![]() System : Linux absol.cf 5.4.0-198-generic #218-Ubuntu SMP Fri Sep 27 20:18:53 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, Directory : /proc/self/root/opt/mattermost/client/ |
Upload File : |
"use strict";(self.webpackChunkmattermost_webapp=self.webpackChunkmattermost_webapp||[]).push([[8550],{68550:(e,r,t)=>{t.r(r),t.d(r,{DragDropContext:()=>Cn,Draggable:()=>ri,Droppable:()=>ai,resetServerContext:()=>wn,useKeyboardSensor:()=>nn,useMouseSensor:()=>en,useTouchSensor:()=>cn});var n=t(97023),i=t.n(n),a=t(51449),o=t(68102),l=t(52602),c=t(1457);function u(e,r){var t=(0,n.useState)((function(){return{inputs:r,result:e()}}))[0],i=(0,n.useRef)(!0),a=(0,n.useRef)(t),o=i.current||Boolean(r&&a.current.inputs&&function(e,r){if(e.length!==r.length)return!1;for(var t=0;t<e.length;t++)if(e[t]!==r[t])return!1;return!0}(r,a.current.inputs))?a.current:{inputs:r,result:e()};return(0,n.useEffect)((function(){i.current=!1,a.current=o}),[o]),o.result}var d=u,s=function(e,r){return u((function(){return e}),r)},p=t(56143),f=function(e){var r=e.top,t=e.right,n=e.bottom,i=e.left;return{top:r,right:t,bottom:n,left:i,width:t-i,height:n-r,x:i,y:r,center:{x:(t+i)/2,y:(n+r)/2}}},g=function(e,r){return{top:e.top-r.top,left:e.left-r.left,bottom:e.bottom+r.bottom,right:e.right+r.right}},v=function(e,r){return{top:e.top+r.top,left:e.left+r.left,bottom:e.bottom-r.bottom,right:e.right-r.right}},m={top:0,right:0,bottom:0,left:0},b=function(e){var r=e.borderBox,t=e.margin,n=void 0===t?m:t,i=e.border,a=void 0===i?m:i,o=e.padding,l=void 0===o?m:o,c=f(g(r,n)),u=f(v(r,a)),d=f(v(u,l));return{marginBox:c,borderBox:f(r),paddingBox:u,contentBox:d,margin:n,border:a,padding:l}},h=function(e){var r=e.slice(0,-2);if("px"!==e.slice(-2))return 0;var t=Number(r);return isNaN(t)&&(0,p.A)(!1),t},y=function(e,r){var t,n,i=e.borderBox,a=e.border,o=e.margin,l=e.padding,c=(n=r,{top:(t=i).top+n.y,left:t.left+n.x,bottom:t.bottom+n.y,right:t.right+n.x});return b({borderBox:c,border:a,margin:o,padding:l})},I=function(e,r){return void 0===r&&(r={x:window.pageXOffset,y:window.pageYOffset}),y(e,r)},D=function(e,r){var t={top:h(r.marginTop),right:h(r.marginRight),bottom:h(r.marginBottom),left:h(r.marginLeft)},n={top:h(r.paddingTop),right:h(r.paddingRight),bottom:h(r.paddingBottom),left:h(r.paddingLeft)},i={top:h(r.borderTopWidth),right:h(r.borderRightWidth),bottom:h(r.borderBottomWidth),left:h(r.borderLeftWidth)};return b({borderBox:e,margin:t,padding:n,border:i})},x=function(e){var r=e.getBoundingClientRect(),t=window.getComputedStyle(e);return D(r,t)},A=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function E(e,r){if(e.length!==r.length)return!1;for(var t=0;t<e.length;t++)if(!((n=e[t])===(i=r[t])||A(n)&&A(i)))return!1;var n,i;return!0}const w=function(e,r){var t;void 0===r&&(r=E);var n,i=[],a=!1;return function(){for(var o=[],l=0;l<arguments.length;l++)o[l]=arguments[l];return a&&t===this&&r(o,i)||(n=e.apply(this,o),a=!0,t=this,i=o),n}},C=function(e){var r=[],t=null,n=function(){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];r=i,t||(t=requestAnimationFrame((function(){t=null,e.apply(void 0,r)})))};return n.cancel=function(){t&&(cancelAnimationFrame(t),t=null)},n};var B=t(51565),R=t.n(B);function S(e,r){}function N(){}function P(e,r,t){var n=r.map((function(r){var n,i,a=(n=t,i=r.options,(0,o.A)({},n,{},i));return e.addEventListener(r.eventName,r.fn,a),function(){e.removeEventListener(r.eventName,r.fn,a)}}));return function(){n.forEach((function(e){e()}))}}S.bind(null,"warn"),S.bind(null,"error");var O=!0,L="Invariant failed";function T(e){this.message=e}function G(e,r){if(!e)throw new T(O?L:L+": "+(r||""))}T.prototype.toString=function(){return this.message};var M=function(e){function r(){for(var r,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return(r=e.call.apply(e,[this].concat(n))||this).callbacks=null,r.unbind=N,r.onWindowError=function(e){var t=r.getCallbacks();t.isDragging()&&t.tryAbort(),e.error instanceof T&&e.preventDefault()},r.getCallbacks=function(){if(!r.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return r.callbacks},r.setCallbacks=function(e){r.callbacks=e},r}(0,a.A)(r,e);var t=r.prototype;return t.componentDidMount=function(){this.unbind=P(window,[{eventName:"error",fn:this.onWindowError}])},t.componentDidCatch=function(e){if(!(e instanceof T))throw e;this.setState({})},t.componentWillUnmount=function(){this.unbind()},t.render=function(){return this.props.children(this.setCallbacks)},r}(i().Component),_=function(e){return e+1},F=function(e,r){var t=e.droppableId===r.droppableId,n=_(e.index),i=_(r.index);return t?"\n You have moved the item from position "+n+"\n to position "+i+"\n ":"\n You have moved the item from position "+n+"\n in list "+e.droppableId+"\n to list "+r.droppableId+"\n in position "+i+"\n "},k=function(e,r,t){return r.droppableId===t.droppableId?"\n The item "+e+"\n has been combined with "+t.draggableId:"\n The item "+e+"\n in list "+r.droppableId+"\n has been combined with "+t.draggableId+"\n in list "+t.droppableId+"\n "},W=function(e){return"\n The item has returned to its starting position\n of "+_(e.index)+"\n"},U={dragHandleUsageInstructions:"\n Press space bar to start a drag.\n When dragging you can use the arrow keys to move the item around and escape to cancel.\n Some screen readers may require you to be in focus mode or to use your pass through key\n",onDragStart:function(e){return"\n You have lifted an item in position "+_(e.source.index)+"\n"},onDragUpdate:function(e){var r=e.destination;if(r)return F(e.source,r);var t=e.combine;return t?k(e.draggableId,e.source,t):"You are over an area that cannot be dropped on"},onDragEnd:function(e){if("CANCEL"===e.reason)return"\n Movement cancelled.\n "+W(e.source)+"\n ";var r=e.destination,t=e.combine;return r?"\n You have dropped the item.\n "+F(e.source,r)+"\n ":t?"\n You have dropped the item.\n "+k(e.draggableId,e.source,t)+"\n ":"\n The item has been dropped while not over a drop area.\n "+W(e.source)+"\n "}},H={x:0,y:0},j=function(e,r){return{x:e.x+r.x,y:e.y+r.y}},V=function(e,r){return{x:e.x-r.x,y:e.y-r.y}},q=function(e,r){return e.x===r.x&&e.y===r.y},z=function(e){return{x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}},Y=function(e,r,t){var n;return void 0===t&&(t=0),(n={})[e]=r,n["x"===e?"y":"x"]=t,n},J=function(e,r){return Math.sqrt(Math.pow(r.x-e.x,2)+Math.pow(r.y-e.y,2))},X=function(e,r){return Math.min.apply(Math,r.map((function(r){return J(e,r)})))},K=function(e){return function(r){return{x:e(r.x),y:e(r.y)}}},Q=function(e,r){return{top:e.top+r.y,left:e.left+r.x,bottom:e.bottom+r.y,right:e.right+r.x}},Z=function(e){return[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}]},$=function(e,r){return r&&r.shouldClipSubject?function(e,r){var t=f({top:Math.max(r.top,e.top),right:Math.min(r.right,e.right),bottom:Math.min(r.bottom,e.bottom),left:Math.max(r.left,e.left)});return t.width<=0||t.height<=0?null:t}(r.pageMarginBox,e):f(e)},ee=function(e){var r=e.page,t=e.withPlaceholder,n=e.axis,i=e.frame,a=function(e,r){return r?Q(e,r.scroll.diff.displacement):e}(r.marginBox,i),l=function(e,r,t){var n;return t&&t.increasedBy?(0,o.A)({},e,((n={})[r.end]=e[r.end]+t.increasedBy[r.line],n)):e}(a,n,t);return{page:r,withPlaceholder:t,active:$(l,i)}},re=function(e,r){e.frame||G(!1);var t=e.frame,n=V(r,t.scroll.initial),i=z(n),a=(0,o.A)({},t,{scroll:{initial:t.scroll.initial,current:r,diff:{value:n,displacement:i},max:t.scroll.max}}),l=ee({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:a});return(0,o.A)({},e,{frame:a,subject:l})};function te(e){return Object.values?Object.values(e):Object.keys(e).map((function(r){return e[r]}))}function ne(e,r){if(e.findIndex)return e.findIndex(r);for(var t=0;t<e.length;t++)if(r(e[t]))return t;return-1}function ie(e,r){if(e.find)return e.find(r);var t=ne(e,r);return-1!==t?e[t]:void 0}function ae(e){return Array.prototype.slice.call(e)}var oe=w((function(e){return e.reduce((function(e,r){return e[r.descriptor.id]=r,e}),{})})),le=w((function(e){return e.reduce((function(e,r){return e[r.descriptor.id]=r,e}),{})})),ce=w((function(e){return te(e)})),ue=w((function(e){return te(e)})),de=w((function(e,r){var t=ue(r).filter((function(r){return e===r.descriptor.droppableId})).sort((function(e,r){return e.descriptor.index-r.descriptor.index}));return t}));function se(e){return e.at&&"REORDER"===e.at.type?e.at.destination:null}function pe(e){return e.at&&"COMBINE"===e.at.type?e.at.combine:null}var fe=w((function(e,r){return r.filter((function(r){return r.descriptor.id!==e.descriptor.id}))})),ge=function(e,r){return e.descriptor.droppableId===r.descriptor.id},ve={point:H,value:0},me={invisible:{},visible:{},all:[]},be={displaced:me,displacedBy:ve,at:null},he=function(e,r){return function(t){return e<=t&&t<=r}},ye=function(e){var r=he(e.top,e.bottom),t=he(e.left,e.right);return function(n){if(r(n.top)&&r(n.bottom)&&t(n.left)&&t(n.right))return!0;var i=r(n.top)||r(n.bottom),a=t(n.left)||t(n.right);if(i&&a)return!0;var o=n.top<e.top&&n.bottom>e.bottom,l=n.left<e.left&&n.right>e.right;return!(!o||!l)||o&&a||l&&i}},Ie=function(e){var r=he(e.top,e.bottom),t=he(e.left,e.right);return function(e){return r(e.top)&&r(e.bottom)&&t(e.left)&&t(e.right)}},De={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},xe={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},Ae=function(e){var r=e.target,t=e.destination,n=e.viewport,i=e.withDroppableDisplacement,a=e.isVisibleThroughFrameFn,o=i?function(e,r){var t=r.frame?r.frame.scroll.diff.displacement:H;return Q(e,t)}(r,t):r;return function(e,r,t){return!!r.subject.active&&t(r.subject.active)(e)}(o,t,a)&&function(e,r,t){return t(r)(e)}(o,n,a)},Ee=function(e){return Ae((0,o.A)({},e,{isVisibleThroughFrameFn:Ie}))};function we(e){var r=e.afterDragging,t=e.destination,n=e.displacedBy,i=e.viewport,a=e.forceShouldAnimate,l=e.last;return r.reduce((function(e,r){var c,u=function(e,r){var t=e.page.marginBox,n={top:r.point.y,right:0,bottom:0,left:r.point.x};return f(g(t,n))}(r,n),d=r.descriptor.id;if(e.all.push(d),c={target:u,destination:t,viewport:i,withDroppableDisplacement:!0},!Ae((0,o.A)({},c,{isVisibleThroughFrameFn:ye})))return e.invisible[r.descriptor.id]=!0,e;var s=function(e,r,t){if("boolean"==typeof t)return t;if(!r)return!0;var n=r.invisible,i=r.visible;if(n[e])return!1;var a=i[e];return!a||a.shouldAnimate}(d,l,a),p={draggableId:d,shouldAnimate:s};return e.visible[d]=p,e}),{all:[],visible:{},invisible:{}})}function Ce(e){var r=e.insideDestination,t=e.inHomeList,n=e.displacedBy,i=e.destination,a=function(e,r){if(!e.length)return 0;var t=e[e.length-1].descriptor.index;return r.inHomeList?t:t+1}(r,{inHomeList:t});return{displaced:me,displacedBy:n,at:{type:"REORDER",destination:{droppableId:i.descriptor.id,index:a}}}}function Be(e){var r=e.draggable,t=e.insideDestination,n=e.destination,i=e.viewport,a=e.displacedBy,o=e.last,l=e.index,c=e.forceShouldAnimate,u=ge(r,n);if(null==l)return Ce({insideDestination:t,inHomeList:u,displacedBy:a,destination:n});var d=ie(t,(function(e){return e.descriptor.index===l}));if(!d)return Ce({insideDestination:t,inHomeList:u,displacedBy:a,destination:n});var s=fe(r,t),p=t.indexOf(d);return{displaced:we({afterDragging:s.slice(p),destination:n,displacedBy:a,last:o,viewport:i.frame,forceShouldAnimate:c}),displacedBy:a,at:{type:"REORDER",destination:{droppableId:n.descriptor.id,index:l}}}}function Re(e,r){return Boolean(r.effected[e])}var Se=function(e,r){return r.margin[e.start]+r.borderBox[e.size]/2},Ne=function(e,r,t){return r[e.crossAxisStart]+t.margin[e.crossAxisStart]+t.borderBox[e.crossAxisSize]/2},Pe=function(e){var r=e.axis,t=e.moveRelativeTo,n=e.isMoving;return Y(r.line,t.marginBox[r.end]+Se(r,n),Ne(r,t.marginBox,n))},Oe=function(e){var r=e.axis,t=e.moveRelativeTo,n=e.isMoving;return Y(r.line,t.marginBox[r.start]-function(e,r){return r.margin[e.end]+r.borderBox[e.size]/2}(r,n),Ne(r,t.marginBox,n))},Le=function(e,r){var t=e.frame;return t?j(r,t.scroll.diff.displacement):r},Te=function(e){var r=function(e){var r=e.impact,t=e.draggable,n=e.droppable,i=e.draggables,a=e.afterCritical,o=t.page.borderBox.center,l=r.at;return n&&l?"REORDER"===l.type?function(e){var r=e.impact,t=e.draggable,n=e.draggables,i=e.droppable,a=e.afterCritical,o=de(i.descriptor.id,n),l=t.page,c=i.axis;if(!o.length)return function(e){var r=e.axis,t=e.moveInto,n=e.isMoving;return Y(r.line,t.contentBox[r.start]+Se(r,n),Ne(r,t.contentBox,n))}({axis:c,moveInto:i.page,isMoving:l});var u=r.displaced,d=r.displacedBy,s=u.all[0];if(s){var p=n[s];if(Re(s,a))return Oe({axis:c,moveRelativeTo:p.page,isMoving:l});var f=y(p.page,d.point);return Oe({axis:c,moveRelativeTo:f,isMoving:l})}var g=o[o.length-1];if(g.descriptor.id===t.descriptor.id)return l.borderBox.center;if(Re(g.descriptor.id,a)){var v=y(g.page,z(a.displacedBy.point));return Pe({axis:c,moveRelativeTo:v,isMoving:l})}return Pe({axis:c,moveRelativeTo:g.page,isMoving:l})}({impact:r,draggable:t,draggables:i,droppable:n,afterCritical:a}):function(e){var r=e.afterCritical,t=e.impact,n=e.draggables,i=pe(t);i||G(!1);var a=i.draggableId,o=n[a].page.borderBox.center,l=function(e){var r=e.displaced,t=e.afterCritical,n=e.combineWith,i=e.displacedBy,a=Boolean(r.visible[n]||r.invisible[n]);return Re(n,t)?a?H:z(i.point):a?i.point:H}({displaced:t.displaced,afterCritical:r,combineWith:a,displacedBy:t.displacedBy});return j(o,l)}({impact:r,draggables:i,afterCritical:a}):o}(e),t=e.droppable;return t?Le(t,r):r},Ge=function(e,r){var t=V(r,e.scroll.initial),n=z(t);return{frame:f({top:r.y,bottom:r.y+e.frame.height,left:r.x,right:r.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:r,diff:{value:t,displacement:n}}}};function Me(e,r){return e.map((function(e){return r[e]}))}var _e=function(e){var r,t,n=e.pageBorderBoxCenter,i=e.draggable,a=(r=e.viewport,t=n,j(r.scroll.diff.displacement,t)),o=V(a,i.page.borderBox.center);return j(i.client.borderBox.center,o)},Fe=function(e){var r=e.draggable,t=e.destination,n=e.newPageBorderBoxCenter,i=e.viewport,a=e.withDroppableDisplacement,l=e.onlyOnMainAxis,c=void 0!==l&&l,u=V(n,r.page.borderBox.center),d={target:Q(r.page.borderBox,u),destination:t,withDroppableDisplacement:a,viewport:i};return c?function(e){return Ae((0,o.A)({},e,{isVisibleThroughFrameFn:(r=e.destination.axis,function(e){var t=he(e.top,e.bottom),n=he(e.left,e.right);return function(e){return r===De?t(e.top)&&t(e.bottom):n(e.left)&&n(e.right)}})}));var r}(d):Ee(d)},ke=function(e){var r=e.isMovingForward,t=e.draggable,n=e.destination,i=e.draggables,a=e.previousImpact,l=e.viewport,c=e.previousPageBorderBoxCenter,u=e.previousClientSelection,d=e.afterCritical;if(!n.isEnabled)return null;var s=de(n.descriptor.id,i),p=ge(t,n),f=function(e){var r=e.isMovingForward,t=e.draggable,n=e.destination,i=e.insideDestination,a=e.previousImpact;if(!n.isCombineEnabled)return null;if(!se(a))return null;function l(e){var r={type:"COMBINE",combine:{draggableId:e,droppableId:n.descriptor.id}};return(0,o.A)({},a,{at:r})}var c=a.displaced.all,u=c.length?c[0]:null;if(r)return u?l(u):null;var d=fe(t,i);if(!u)return d.length?l(d[d.length-1].descriptor.id):null;var s=ne(d,(function(e){return e.descriptor.id===u}));-1===s&&G(!1);var p=s-1;return p<0?null:l(d[p].descriptor.id)}({isMovingForward:r,draggable:t,destination:n,insideDestination:s,previousImpact:a})||function(e){var r=e.isMovingForward,t=e.isInHomeList,n=e.draggable,i=e.draggables,a=e.destination,o=e.insideDestination,l=e.previousImpact,c=e.viewport,u=e.afterCritical,d=l.at;if(d||G(!1),"REORDER"===d.type){var s=function(e){var r=e.isMovingForward,t=e.isInHomeList,n=e.insideDestination,i=e.location;if(!n.length)return null;var a=i.index,o=r?a+1:a-1,l=n[0].descriptor.index,c=n[n.length-1].descriptor.index;return o<l||o>(t?c:c+1)?null:o}({isMovingForward:r,isInHomeList:t,location:d.destination,insideDestination:o});return null==s?null:Be({draggable:n,insideDestination:o,destination:a,viewport:c,last:l.displaced,displacedBy:l.displacedBy,index:s})}var p=function(e){var r=e.isMovingForward,t=e.draggables,n=e.combine,i=e.afterCritical;if(!e.destination.isCombineEnabled)return null;var a=n.draggableId,o=t[a].descriptor.index;return Re(a,i)?r?o:o-1:r?o+1:o}({isMovingForward:r,destination:a,displaced:l.displaced,draggables:i,combine:d.combine,afterCritical:u});return null==p?null:Be({draggable:n,insideDestination:o,destination:a,viewport:c,last:l.displaced,displacedBy:l.displacedBy,index:p})}({isMovingForward:r,isInHomeList:p,draggable:t,draggables:i,destination:n,insideDestination:s,previousImpact:a,viewport:l,afterCritical:d});if(!f)return null;var g=Te({impact:f,draggable:t,droppable:n,draggables:i,afterCritical:d});if(Fe({draggable:t,destination:n,newPageBorderBoxCenter:g,viewport:l.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:_e({pageBorderBoxCenter:g,draggable:t,viewport:l}),impact:f,scrollJumpRequest:null};var v=V(g,c),m=function(e){var r=e.impact,t=e.viewport,n=e.destination,i=e.draggables,a=e.maxScrollChange,l=Ge(t,j(t.scroll.current,a)),c=n.frame?re(n,j(n.frame.scroll.current,a)):n,u=r.displaced,d=we({afterDragging:Me(u.all,i),destination:n,displacedBy:r.displacedBy,viewport:l.frame,last:u,forceShouldAnimate:!1}),s=we({afterDragging:Me(u.all,i),destination:c,displacedBy:r.displacedBy,viewport:t.frame,last:u,forceShouldAnimate:!1}),p={},f={},g=[u,d,s];return u.all.forEach((function(e){var r=function(e,r){for(var t=0;t<r.length;t++){var n=r[t].visible[e];if(n)return n}return null}(e,g);r?f[e]=r:p[e]=!0})),(0,o.A)({},r,{displaced:{all:u.all,invisible:p,visible:f}})}({impact:f,viewport:l,destination:n,draggables:i,maxScrollChange:v});return{clientSelection:u,impact:m,scrollJumpRequest:v}},We=function(e){var r=e.subject.active;return r||G(!1),r},Ue=function(e,r){var t=e.page.borderBox.center;return Re(e.descriptor.id,r)?V(t,r.displacedBy.point):t},He=function(e,r){var t=e.page.borderBox;return Re(e.descriptor.id,r)?Q(t,z(r.displacedBy.point)):t},je=w((function(e,r){var t=r[e.line];return{value:t,point:Y(e.line,t)}})),Ve=function(e,r){return(0,o.A)({},e,{scroll:(0,o.A)({},e.scroll,{max:r})})},qe=function(e,r,t){var n=e.frame;ge(r,e)&&G(!1),e.subject.withPlaceholder&&G(!1);var i=je(e.axis,r.displaceBy).point,a=function(e,r,t){var n=e.axis;if("virtual"===e.descriptor.mode)return Y(n.line,r[n.line]);var i=e.subject.page.contentBox[n.size],a=de(e.descriptor.id,t).reduce((function(e,r){return e+r.client.marginBox[n.size]}),0)+r[n.line]-i;return a<=0?null:Y(n.line,a)}(e,i,t),l={placeholderSize:i,increasedBy:a,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!n){var c=ee({page:e.subject.page,withPlaceholder:l,axis:e.axis,frame:e.frame});return(0,o.A)({},e,{subject:c})}var u=a?j(n.scroll.max,a):n.scroll.max,d=Ve(n,u),s=ee({page:e.subject.page,withPlaceholder:l,axis:e.axis,frame:d});return(0,o.A)({},e,{subject:s,frame:d})},ze=function(e){var r=e.at;return r?"REORDER"===r.type?r.destination.droppableId:r.combine.droppableId:null},Ye=function(e){var r=e.state,t=e.type,n=function(e,r){var t=ze(e);return t?r[t]:null}(r.impact,r.dimensions.droppables),i=Boolean(n),a=r.dimensions.droppables[r.critical.droppable.id],o=n||a,l=o.axis.direction,c="vertical"===l&&("MOVE_UP"===t||"MOVE_DOWN"===t)||"horizontal"===l&&("MOVE_LEFT"===t||"MOVE_RIGHT"===t);if(c&&!i)return null;var u="MOVE_DOWN"===t||"MOVE_RIGHT"===t,d=r.dimensions.draggables[r.critical.draggable.id],s=r.current.page.borderBoxCenter,p=r.dimensions,f=p.draggables,g=p.droppables;return c?ke({isMovingForward:u,previousPageBorderBoxCenter:s,draggable:d,destination:o,draggables:f,viewport:r.viewport,previousClientSelection:r.current.client.selection,previousImpact:r.impact,afterCritical:r.afterCritical}):function(e){var r=e.isMovingForward,t=e.previousPageBorderBoxCenter,n=e.draggable,i=e.isOver,a=e.draggables,o=e.droppables,l=e.viewport,c=e.afterCritical,u=function(e){var r=e.isMovingForward,t=e.pageBorderBoxCenter,n=e.source,i=e.droppables,a=e.viewport,o=n.subject.active;if(!o)return null;var l=n.axis,c=he(o[l.start],o[l.end]),u=ce(i).filter((function(e){return e!==n})).filter((function(e){return e.isEnabled})).filter((function(e){return Boolean(e.subject.active)})).filter((function(e){return ye(a.frame)(We(e))})).filter((function(e){var t=We(e);return r?o[l.crossAxisEnd]<t[l.crossAxisEnd]:t[l.crossAxisStart]<o[l.crossAxisStart]})).filter((function(e){var r=We(e),t=he(r[l.start],r[l.end]);return c(r[l.start])||c(r[l.end])||t(o[l.start])||t(o[l.end])})).sort((function(e,t){var n=We(e)[l.crossAxisStart],i=We(t)[l.crossAxisStart];return r?n-i:i-n})).filter((function(e,r,t){return We(e)[l.crossAxisStart]===We(t[0])[l.crossAxisStart]}));if(!u.length)return null;if(1===u.length)return u[0];var d=u.filter((function(e){return he(We(e)[l.start],We(e)[l.end])(t[l.line])}));return 1===d.length?d[0]:d.length>1?d.sort((function(e,r){return We(e)[l.start]-We(r)[l.start]}))[0]:u.sort((function(e,r){var n=X(t,Z(We(e))),i=X(t,Z(We(r)));return n!==i?n-i:We(e)[l.start]-We(r)[l.start]}))[0]}({isMovingForward:r,pageBorderBoxCenter:t,source:i,droppables:o,viewport:l});if(!u)return null;var d=de(u.descriptor.id,a),s=function(e){var r=e.pageBorderBoxCenter,t=e.viewport,n=e.destination,i=e.afterCritical,a=e.insideDestination.filter((function(e){return Ee({target:He(e,i),destination:n,viewport:t.frame,withDroppableDisplacement:!0})})).sort((function(e,t){var a=J(r,Le(n,Ue(e,i))),o=J(r,Le(n,Ue(t,i)));return a<o?-1:o<a?1:e.descriptor.index-t.descriptor.index}));return a[0]||null}({pageBorderBoxCenter:t,viewport:l,destination:u,insideDestination:d,afterCritical:c}),p=function(e){var r=e.previousPageBorderBoxCenter,t=e.moveRelativeTo,n=e.insideDestination,i=e.draggable,a=e.draggables,o=e.destination,l=e.viewport,c=e.afterCritical;if(!t){if(n.length)return null;var u={displaced:me,displacedBy:ve,at:{type:"REORDER",destination:{droppableId:o.descriptor.id,index:0}}},d=Te({impact:u,draggable:i,droppable:o,draggables:a,afterCritical:c}),s=ge(i,o)?o:qe(o,i,a);return Fe({draggable:i,destination:s,newPageBorderBoxCenter:d,viewport:l.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?u:null}var p,f=Boolean(r[o.axis.line]<=t.page.borderBox.center[o.axis.line]),g=(p=t.descriptor.index,t.descriptor.id===i.descriptor.id||f?p:p+1);return Be({draggable:i,insideDestination:n,destination:o,viewport:l,displacedBy:je(o.axis,i.displaceBy),last:me,index:g})}({previousPageBorderBoxCenter:t,destination:u,draggable:n,draggables:a,moveRelativeTo:s,insideDestination:d,viewport:l,afterCritical:c});if(!p)return null;var f=Te({impact:p,draggable:n,droppable:u,draggables:a,afterCritical:c});return{clientSelection:_e({pageBorderBoxCenter:f,draggable:n,viewport:l}),impact:p,scrollJumpRequest:null}}({isMovingForward:u,previousPageBorderBoxCenter:s,draggable:d,isOver:o,draggables:f,droppables:g,viewport:r.viewport,afterCritical:r.afterCritical})};function Je(e){return"DRAGGING"===e.phase||"COLLECTING"===e.phase}function Xe(e){var r=he(e.top,e.bottom),t=he(e.left,e.right);return function(e){return r(e.y)&&t(e.x)}}var Ke=function(e,r){return f(Q(e,r))};function Qe(e){var r=e.displaced,t=e.id;return Boolean(r.visible[t]||r.invisible[t])}var Ze=function(e){var r=e.pageOffset,t=e.draggable,n=e.draggables,i=e.droppables,a=e.previousImpact,o=e.viewport,l=e.afterCritical,c=Ke(t.page.borderBox,r),u=function(e){var r=e.pageBorderBox,t=e.draggable,n=e.droppables,i=ce(n).filter((function(e){if(!e.isEnabled)return!1;var t,n,i=e.subject.active;if(!i)return!1;if(n=i,!((t=r).left<n.right&&t.right>n.left&&t.top<n.bottom&&t.bottom>n.top))return!1;if(Xe(i)(r.center))return!0;var a=e.axis,o=i.center[a.crossAxisLine],l=r[a.crossAxisStart],c=r[a.crossAxisEnd],u=he(i[a.crossAxisStart],i[a.crossAxisEnd]),d=u(l),s=u(c);return!d&&!s||(d?l<o:c>o)}));return i.length?1===i.length?i[0].descriptor.id:function(e){var r=e.pageBorderBox,t=e.candidates,n=e.draggable.page.borderBox.center,i=t.map((function(e){var t=e.axis,i=Y(e.axis.line,r.center[t.line],e.page.borderBox.center[t.crossAxisLine]);return{id:e.descriptor.id,distance:J(n,i)}})).sort((function(e,r){return r.distance-e.distance}));return i[0]?i[0].id:null}({pageBorderBox:r,draggable:t,candidates:i}):null}({pageBorderBox:c,draggable:t,droppables:i});if(!u)return be;var d=i[u],s=de(d.descriptor.id,n),p=function(e,r){var t=e.frame;return t?Ke(r,t.scroll.diff.value):r}(d,c);return function(e){var r=e.draggable,t=e.pageBorderBoxWithDroppableScroll,n=e.previousImpact,i=e.destination,a=e.insideDestination,o=e.afterCritical;if(!i.isCombineEnabled)return null;var l=i.axis,c=je(i.axis,r.displaceBy),u=c.value,d=t[l.start],s=t[l.end],p=ie(fe(r,a),(function(e){var r=e.descriptor.id,t=e.page.borderBox,i=t[l.size]/4,a=Re(r,o),c=Qe({displaced:n.displaced,id:r});return a?c?s>t[l.start]+i&&s<t[l.end]-i:d>t[l.start]-u+i&&d<t[l.end]-u-i:c?s>t[l.start]+u+i&&s<t[l.end]+u-i:d>t[l.start]+i&&d<t[l.end]-i}));return p?{displacedBy:c,displaced:n.displaced,at:{type:"COMBINE",combine:{draggableId:p.descriptor.id,droppableId:i.descriptor.id}}}:null}({pageBorderBoxWithDroppableScroll:p,draggable:t,previousImpact:a,destination:d,insideDestination:s,afterCritical:l})||function(e){var r=e.pageBorderBoxWithDroppableScroll,t=e.draggable,n=e.destination,i=e.insideDestination,a=e.last,o=e.viewport,l=e.afterCritical,c=n.axis,u=je(n.axis,t.displaceBy),d=u.value,s=r[c.start],p=r[c.end],f=function(e){var r=e.draggable,t=e.closest;return t?e.inHomeList&&t.descriptor.index>r.descriptor.index?t.descriptor.index-1:t.descriptor.index:null}({draggable:t,closest:ie(fe(t,i),(function(e){var r=e.descriptor.id,t=e.page.borderBox.center[c.line],n=Re(r,l),i=Qe({displaced:a,id:r});return n?i?p<=t:s<t-d:i?p<=t+d:s<t})),inHomeList:ge(t,n)});return Be({draggable:t,insideDestination:i,destination:n,viewport:o,last:a,displacedBy:u,index:f})}({pageBorderBoxWithDroppableScroll:p,draggable:t,destination:d,insideDestination:s,last:a.displaced,viewport:o,afterCritical:l})},$e=function(e,r){var t;return(0,o.A)({},e,((t={})[r.descriptor.id]=r,t))},er=function(e){var r=e.state,t=e.clientSelection,n=e.dimensions,i=e.viewport,a=e.impact,l=e.scrollJumpRequest,c=i||r.viewport,u=n||r.dimensions,d=t||r.current.client.selection,s=V(d,r.initial.client.selection),p={offset:s,selection:d,borderBoxCenter:j(r.initial.client.borderBoxCenter,s)},f={selection:j(p.selection,c.scroll.current),borderBoxCenter:j(p.borderBoxCenter,c.scroll.current),offset:j(p.offset,c.scroll.diff.value)},g={client:p,page:f};if("COLLECTING"===r.phase)return(0,o.A)({phase:"COLLECTING"},r,{dimensions:u,viewport:c,current:g});var v=u.draggables[r.critical.draggable.id],m=a||Ze({pageOffset:f.offset,draggable:v,draggables:u.draggables,droppables:u.droppables,previousImpact:r.impact,viewport:c,afterCritical:r.afterCritical}),b=function(e){var r=e.draggable,t=e.draggables,n=e.droppables,i=e.impact,a=function(e){var r=e.previousImpact,t=e.impact,n=e.droppables,i=ze(r),a=ze(t);if(!i)return n;if(i===a)return n;var l=n[i];if(!l.subject.withPlaceholder)return n;var c=function(e){var r=e.subject.withPlaceholder;r||G(!1);var t=e.frame;if(!t){var n=ee({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null});return(0,o.A)({},e,{subject:n})}var i=r.oldFrameMaxScroll;i||G(!1);var a=Ve(t,i),l=ee({page:e.subject.page,axis:e.axis,frame:a,withPlaceholder:null});return(0,o.A)({},e,{subject:l,frame:a})}(l);return $e(n,c)}({previousImpact:e.previousImpact,impact:i,droppables:n}),l=ze(i);if(!l)return a;var c=n[l];if(ge(r,c))return a;if(c.subject.withPlaceholder)return a;var u=qe(c,r,t);return $e(a,u)}({draggable:v,impact:m,previousImpact:r.impact,draggables:u.draggables,droppables:u.droppables});return(0,o.A)({},r,{current:g,dimensions:{draggables:u.draggables,droppables:b},impact:m,viewport:c,scrollJumpRequest:l||null,forceShouldAnimate:!l&&null})},rr=function(e){var r=e.impact,t=e.viewport,n=e.draggables,i=e.destination,a=e.forceShouldAnimate,l=r.displaced,c=function(e,r){return e.map((function(e){return r[e]}))}(l.all,n),u=we({afterDragging:c,destination:i,displacedBy:r.displacedBy,viewport:t.frame,forceShouldAnimate:a,last:l});return(0,o.A)({},r,{displaced:u})},tr=function(e){var r=e.impact,t=e.draggable,n=e.droppable,i=e.draggables,a=e.viewport,o=e.afterCritical,l=Te({impact:r,draggable:t,draggables:i,droppable:n,afterCritical:o});return _e({pageBorderBoxCenter:l,draggable:t,viewport:a})},nr=function(e){var r=e.state,t=e.dimensions,n=e.viewport;"SNAP"!==r.movementMode&&G(!1);var i=r.impact,a=n||r.viewport,o=t||r.dimensions,l=o.draggables,c=o.droppables,u=l[r.critical.draggable.id],d=ze(i);d||G(!1);var s=c[d],p=rr({impact:i,viewport:a,destination:s,draggables:l}),f=tr({impact:p,draggable:u,droppable:s,draggables:l,viewport:a,afterCritical:r.afterCritical});return er({impact:p,clientSelection:f,state:r,dimensions:o,viewport:a})},ir=function(e){var r=e.draggable,t=e.home,n=e.draggables,i=e.viewport,a=je(t.axis,r.displaceBy),o=de(t.descriptor.id,n),l=o.indexOf(r);-1===l&&G(!1);var c,u=o.slice(l+1),d=u.reduce((function(e,r){return e[r.descriptor.id]=!0,e}),{}),s={inVirtualList:"virtual"===t.descriptor.mode,displacedBy:a,effected:d};return{impact:{displaced:we({afterDragging:u,destination:t,displacedBy:a,last:null,viewport:i.frame,forceShouldAnimate:!1}),displacedBy:a,at:{type:"REORDER",destination:(c=r.descriptor,{index:c.index,droppableId:c.droppableId})}},afterCritical:s}},ar=function(e){return"SNAP"===e.movementMode},or=function(e,r,t){var n=function(e,r){return{draggables:e.draggables,droppables:$e(e.droppables,r)}}(e.dimensions,r);return!ar(e)||t?er({state:e,dimensions:n}):nr({state:e,dimensions:n})};function lr(e){return e.isDragging&&"SNAP"===e.movementMode?(0,o.A)({phase:"DRAGGING"},e,{scrollJumpRequest:null}):e}var cr={phase:"IDLE",completed:null,shouldFlush:!1},ur=function(e,r){if(void 0===e&&(e=cr),"FLUSH"===r.type)return(0,o.A)({},cr,{shouldFlush:!0});if("INITIAL_PUBLISH"===r.type){"IDLE"!==e.phase&&G(!1);var t=r.payload,n=t.critical,i=t.clientSelection,a=t.viewport,l=t.dimensions,c=t.movementMode,u=l.draggables[n.draggable.id],d=l.droppables[n.droppable.id],s={selection:i,borderBoxCenter:u.client.borderBox.center,offset:H},p={client:s,page:{selection:j(s.selection,a.scroll.initial),borderBoxCenter:j(s.selection,a.scroll.initial),offset:j(s.selection,a.scroll.diff.value)}},f=ce(l.droppables).every((function(e){return!e.isFixedOnPage})),g=ir({draggable:u,home:d,draggables:l.draggables,viewport:a}),v=g.impact;return{phase:"DRAGGING",isDragging:!0,critical:n,movementMode:c,dimensions:l,initial:p,current:p,isWindowScrollAllowed:f,impact:v,afterCritical:g.afterCritical,onLiftImpact:v,viewport:a,scrollJumpRequest:null,forceShouldAnimate:null}}if("COLLECTION_STARTING"===r.type)return"COLLECTING"===e.phase||"DROP_PENDING"===e.phase?e:("DRAGGING"!==e.phase&&G(!1),(0,o.A)({phase:"COLLECTING"},e,{phase:"COLLECTING"}));if("PUBLISH_WHILE_DRAGGING"===r.type)return"COLLECTING"!==e.phase&&"DROP_PENDING"!==e.phase&&G(!1),function(e){var r=e.state,t=e.published,n=t.modified.map((function(e){var t=r.dimensions.droppables[e.droppableId];return re(t,e.scroll)})),i=(0,o.A)({},r.dimensions.droppables,{},oe(n)),a=le(function(e){var r=e.additions,t=e.updatedDroppables,n=e.viewport,i=n.scroll.diff.value;return r.map((function(e){var r=e.descriptor.droppableId,a=function(e){var r=e.frame;return r||G(!1),r}(t[r]),l=a.scroll.diff.value,c=function(e){var r=e.draggable,t=e.offset,n=e.initialWindowScroll,i=y(r.client,t),a=I(i,n);return(0,o.A)({},r,{placeholder:(0,o.A)({},r.placeholder,{client:i}),client:i,page:a})}({draggable:e,offset:j(i,l),initialWindowScroll:n.scroll.initial});return c}))}({additions:t.additions,updatedDroppables:i,viewport:r.viewport})),l=(0,o.A)({},r.dimensions.draggables,{},a);t.removals.forEach((function(e){delete l[e]}));var c={droppables:i,draggables:l},u=ze(r.impact),d=u?c.droppables[u]:null,s=c.draggables[r.critical.draggable.id],p=c.droppables[r.critical.droppable.id],f=ir({draggable:s,home:p,draggables:l,viewport:r.viewport}),g=f.impact,v=f.afterCritical,m=d&&d.isCombineEnabled?r.impact:g,b=Ze({pageOffset:r.current.page.offset,draggable:c.draggables[r.critical.draggable.id],draggables:c.draggables,droppables:c.droppables,previousImpact:m,viewport:r.viewport,afterCritical:v}),h=(0,o.A)({phase:"DRAGGING"},r,{phase:"DRAGGING",impact:b,onLiftImpact:g,dimensions:c,afterCritical:v,forceShouldAnimate:!1});return"COLLECTING"===r.phase?h:(0,o.A)({phase:"DROP_PENDING"},h,{phase:"DROP_PENDING",reason:r.reason,isWaiting:!1})}({state:e,published:r.payload});if("MOVE"===r.type){if("DROP_PENDING"===e.phase)return e;Je(e)||G(!1);var m=r.payload.client;return q(m,e.current.client.selection)?e:er({state:e,clientSelection:m,impact:ar(e)?e.impact:null})}if("UPDATE_DROPPABLE_SCROLL"===r.type){if("DROP_PENDING"===e.phase)return lr(e);if("COLLECTING"===e.phase)return lr(e);Je(e)||G(!1);var b=r.payload,h=b.id,D=b.newScroll,x=e.dimensions.droppables[h];if(!x)return e;var A=re(x,D);return or(e,A,!1)}if("UPDATE_DROPPABLE_IS_ENABLED"===r.type){if("DROP_PENDING"===e.phase)return e;Je(e)||G(!1);var E=r.payload,w=E.id,C=E.isEnabled,B=e.dimensions.droppables[w];B||G(!1),B.isEnabled===C&&G(!1);var R=(0,o.A)({},B,{isEnabled:C});return or(e,R,!0)}if("UPDATE_DROPPABLE_IS_COMBINE_ENABLED"===r.type){if("DROP_PENDING"===e.phase)return e;Je(e)||G(!1);var S=r.payload,N=S.id,P=S.isCombineEnabled,O=e.dimensions.droppables[N];O||G(!1),O.isCombineEnabled===P&&G(!1);var L=(0,o.A)({},O,{isCombineEnabled:P});return or(e,L,!0)}if("MOVE_BY_WINDOW_SCROLL"===r.type){if("DROP_PENDING"===e.phase||"DROP_ANIMATING"===e.phase)return e;Je(e)||G(!1),e.isWindowScrollAllowed||G(!1);var T=r.payload.newScroll;if(q(e.viewport.scroll.current,T))return lr(e);var M=Ge(e.viewport,T);return ar(e)?nr({state:e,viewport:M}):er({state:e,viewport:M})}if("UPDATE_VIEWPORT_MAX_SCROLL"===r.type){if(!Je(e))return e;var _=r.payload.maxScroll;if(q(_,e.viewport.scroll.max))return e;var F=(0,o.A)({},e.viewport,{scroll:(0,o.A)({},e.viewport.scroll,{max:_})});return(0,o.A)({phase:"DRAGGING"},e,{viewport:F})}if("MOVE_UP"===r.type||"MOVE_DOWN"===r.type||"MOVE_LEFT"===r.type||"MOVE_RIGHT"===r.type){if("COLLECTING"===e.phase||"DROP_PENDING"===e.phase)return e;"DRAGGING"!==e.phase&&G(!1);var k=Ye({state:e,type:r.type});return k?er({state:e,impact:k.impact,clientSelection:k.clientSelection,scrollJumpRequest:k.scrollJumpRequest}):e}if("DROP_PENDING"===r.type){var W=r.payload.reason;return"COLLECTING"!==e.phase&&G(!1),(0,o.A)({phase:"DROP_PENDING"},e,{phase:"DROP_PENDING",isWaiting:!0,reason:W})}if("DROP_ANIMATE"===r.type){var U=r.payload,V=U.completed,z=U.dropDuration,Y=U.newHomeClientOffset;return"DRAGGING"!==e.phase&&"DROP_PENDING"!==e.phase&&G(!1),{phase:"DROP_ANIMATING",completed:V,dropDuration:z,newHomeClientOffset:Y,dimensions:e.dimensions}}return"DROP_COMPLETE"===r.type?{phase:"IDLE",completed:r.payload.completed,shouldFlush:!1}:e},dr=function(e){return{type:"LIFT",payload:e}},sr=function(e){return{type:"PUBLISH_WHILE_DRAGGING",payload:e}},pr=function(){return{type:"COLLECTION_STARTING",payload:null}},fr=function(e){return{type:"UPDATE_DROPPABLE_SCROLL",payload:e}},gr=function(e){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}},vr=function(e){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}},mr=function(e){return{type:"MOVE",payload:e}},br=function(){return{type:"MOVE_UP",payload:null}},hr=function(){return{type:"MOVE_DOWN",payload:null}},yr=function(){return{type:"MOVE_RIGHT",payload:null}},Ir=function(){return{type:"MOVE_LEFT",payload:null}},Dr=function(){return{type:"FLUSH",payload:null}},xr=function(e){return{type:"DROP_COMPLETE",payload:e}},Ar=function(e){return{type:"DROP",payload:e}},Er="cubic-bezier(.2,1,.1,1)",wr=0,Cr=.7,Br=.75,Rr="0.2s cubic-bezier(0.2, 0, 0, 1)",Sr={fluid:"opacity "+Rr,snap:"transform "+Rr+", opacity "+Rr,drop:function(e){var r=e+"s "+Er;return"transform "+r+", opacity "+r},outOfTheWay:"transform "+Rr,placeholder:"height "+Rr+", width "+Rr+", margin "+Rr},Nr=function(e){return q(e,H)?null:"translate("+e.x+"px, "+e.y+"px)"},Pr=Nr,Or=.33,Lr=.55-Or,Tr=function(e){var r=e.getState,t=e.dispatch;return function(e){return function(n){if("DROP"===n.type){var i=r(),a=n.payload.reason;if("COLLECTING"!==i.phase){if("IDLE"!==i.phase){"DROP_PENDING"===i.phase&&i.isWaiting&&G(!1),"DRAGGING"!==i.phase&&"DROP_PENDING"!==i.phase&&G(!1);var l=i.critical,c=i.dimensions,u=c.draggables[i.critical.draggable.id],d=function(e){var r=e.draggables,t=e.reason,n=e.lastImpact,i=e.home,a=e.viewport,l=e.onLiftImpact;return n.at&&"DROP"===t?"REORDER"===n.at.type?{impact:n,didDropInsideDroppable:!0}:{impact:(0,o.A)({},n,{displaced:me}),didDropInsideDroppable:!0}:{impact:rr({draggables:r,impact:l,destination:i,viewport:a,forceShouldAnimate:!0}),didDropInsideDroppable:!1}}({reason:a,lastImpact:i.impact,afterCritical:i.afterCritical,onLiftImpact:i.onLiftImpact,home:i.dimensions.droppables[i.critical.droppable.id],viewport:i.viewport,draggables:i.dimensions.draggables}),s=d.impact,p=d.didDropInsideDroppable,f=p?se(s):null,g=p?pe(s):null,v={index:l.draggable.index,droppableId:l.droppable.id},m={draggableId:u.descriptor.id,type:u.descriptor.type,source:v,reason:a,mode:i.movementMode,destination:f,combine:g},b=function(e){var r=e.impact,t=e.draggable,n=e.dimensions,i=e.viewport,a=e.afterCritical,o=n.draggables,l=n.droppables,c=ze(r),u=c?l[c]:null,d=l[t.descriptor.droppableId],s=tr({impact:r,draggable:t,draggables:o,afterCritical:a,droppable:u||d,viewport:i});return V(s,t.client.borderBox.center)}({impact:s,draggable:u,dimensions:c,viewport:i.viewport,afterCritical:i.afterCritical}),h={critical:i.critical,afterCritical:i.afterCritical,result:m,impact:s};if(!q(i.current.client.offset,b)||Boolean(m.combine)){var y=function(e){var r=e.reason,t=J(e.current,e.destination);if(t<=0)return Or;if(t>=1500)return.55;var n=Or+Lr*(t/1500);return Number(("CANCEL"===r?.6*n:n).toFixed(2))}({current:i.current.client.offset,destination:b,reason:a});t({type:"DROP_ANIMATE",payload:{newHomeClientOffset:b,dropDuration:y,completed:h}})}else t(xr({completed:h}))}}else t(function(e){return{type:"DROP_PENDING",payload:e}}({reason:a}))}else e(n)}}},Gr=function(){return{x:window.pageXOffset,y:window.pageYOffset}};var Mr=function(e){var r=function(e){var r=e.onWindowScroll,t=C((function(){r(Gr())})),n=function(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(r){r.target!==window&&r.target!==window.document||e()}}}(t),i=N;function a(){return i!==N}return{start:function(){a()&&G(!1),i=P(window,[n])},stop:function(){a()||G(!1),t.cancel(),i(),i=N},isActive:a}}({onWindowScroll:function(r){e.dispatch({type:"MOVE_BY_WINDOW_SCROLL",payload:{newScroll:r}})}});return function(e){return function(t){r.isActive()||"INITIAL_PUBLISH"!==t.type||r.start(),r.isActive()&&function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(t)&&r.stop(),e(t)}}},_r=function(e,r){r()},Fr=function(e,r){return{draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:r}},kr=function(e,r,t,n){if(e){var i=function(e){var r=!1,t=!1,n=setTimeout((function(){t=!0})),i=function(i){r||t||(r=!0,e(i),clearTimeout(n))};return i.wasCalled=function(){return r},i}(t);e(r,{announce:i}),i.wasCalled()||t(n(r))}else t(n(r))},Wr=function(e,r){var t=function(e,r){var t,n=(t=[],{add:function(e){var r=setTimeout((function(){return function(e){var r=ne(t,(function(r){return r.timerId===e}));-1===r&&G(!1),t.splice(r,1)[0].callback()}(r)})),n={timerId:r,callback:e};t.push(n)},flush:function(){if(t.length){var e=[].concat(t);t.length=0,e.forEach((function(e){clearTimeout(e.timerId),e.callback()}))}}}),i=null,a=function(t){i||G(!1),i=null,_r(0,(function(){return kr(e().onDragEnd,t,r,U.onDragEnd)}))};return{beforeCapture:function(r,t){i&&G(!1),_r(0,(function(){var n=e().onBeforeCapture;n&&n({draggableId:r,mode:t})}))},beforeStart:function(r,t){i&&G(!1),_r(0,(function(){var n=e().onBeforeDragStart;n&&n(Fr(r,t))}))},start:function(t,a){i&&G(!1);var o=Fr(t,a);i={mode:a,lastCritical:t,lastLocation:o.source,lastCombine:null},n.add((function(){_r(0,(function(){return kr(e().onDragStart,o,r,U.onDragStart)}))}))},update:function(t,a){var l=se(a),c=pe(a);i||G(!1);var u=!function(e,r){if(e===r)return!0;var t=e.draggable.id===r.draggable.id&&e.draggable.droppableId===r.draggable.droppableId&&e.draggable.type===r.draggable.type&&e.draggable.index===r.draggable.index,n=e.droppable.id===r.droppable.id&&e.droppable.type===r.droppable.type;return t&&n}(t,i.lastCritical);u&&(i.lastCritical=t);var d,s,p=(s=l,!(null==(d=i.lastLocation)&&null==s||null!=d&&null!=s&&d.droppableId===s.droppableId&&d.index===s.index));p&&(i.lastLocation=l);var f=!function(e,r){return null==e&&null==r||null!=e&&null!=r&&e.draggableId===r.draggableId&&e.droppableId===r.droppableId}(i.lastCombine,c);if(f&&(i.lastCombine=c),u||p||f){var g=(0,o.A)({},Fr(t,i.mode),{combine:c,destination:l});n.add((function(){_r(0,(function(){return kr(e().onDragUpdate,g,r,U.onDragUpdate)}))}))}},flush:function(){i||G(!1),n.flush()},drop:a,abort:function(){if(i){var e=(0,o.A)({},Fr(i.lastCritical,i.mode),{combine:null,destination:null,reason:"CANCEL"});a(e)}}}}(e,r);return function(e){return function(r){return function(n){if("BEFORE_INITIAL_CAPTURE"!==n.type){if("INITIAL_PUBLISH"===n.type){var i=n.payload.critical;return t.beforeStart(i,n.payload.movementMode),r(n),void t.start(i,n.payload.movementMode)}if("DROP_COMPLETE"===n.type){var a=n.payload.completed.result;return t.flush(),r(n),void t.drop(a)}if(r(n),"FLUSH"!==n.type){var o=e.getState();"DRAGGING"===o.phase&&t.update(o.critical,o.impact)}else t.abort()}else t.beforeCapture(n.payload.draggableId,n.payload.movementMode)}}}},Ur=function(e){return function(r){return function(t){if("DROP_ANIMATION_FINISHED"===t.type){var n=e.getState();"DROP_ANIMATING"!==n.phase&&G(!1),e.dispatch(xr({completed:n.completed}))}else r(t)}}},Hr=function(e){var r=null,t=null;return function(n){return function(i){if("FLUSH"!==i.type&&"DROP_COMPLETE"!==i.type&&"DROP_ANIMATION_FINISHED"!==i.type||(t&&(cancelAnimationFrame(t),t=null),r&&(r(),r=null)),n(i),"DROP_ANIMATE"===i.type){var a={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){"DROP_ANIMATING"===e.getState().phase&&e.dispatch({type:"DROP_ANIMATION_FINISHED",payload:null})}};t=requestAnimationFrame((function(){t=null,r=P(window,[a])}))}}}},jr=function(e){return function(r){return function(t){if(r(t),"PUBLISH_WHILE_DRAGGING"===t.type){var n=e.getState();"DROP_PENDING"===n.phase&&(n.isWaiting||e.dispatch(Ar({reason:n.reason})))}}}},Vr=l.compose,qr=function(e){var r,t=e.dimensionMarshal,n=e.focusMarshal,i=e.styleMarshal,a=e.getResponders,o=e.announce,c=e.autoScroller;return(0,l.createStore)(ur,Vr((0,l.applyMiddleware)((r=i,function(){return function(e){return function(t){"INITIAL_PUBLISH"===t.type&&r.dragging(),"DROP_ANIMATE"===t.type&&r.dropping(t.payload.completed.result.reason),"FLUSH"!==t.type&&"DROP_COMPLETE"!==t.type||r.resting(),e(t)}}}),function(e){return function(){return function(r){return function(t){"DROP_COMPLETE"!==t.type&&"FLUSH"!==t.type&&"DROP_ANIMATE"!==t.type||e.stopPublishing(),r(t)}}}}(t),function(e){return function(r){var t=r.getState,n=r.dispatch;return function(r){return function(i){if("LIFT"===i.type){var a=i.payload,o=a.id,l=a.clientSelection,c=a.movementMode,u=t();"DROP_ANIMATING"===u.phase&&n(xr({completed:u.completed})),"IDLE"!==t().phase&&G(!1),n(Dr()),n({type:"BEFORE_INITIAL_CAPTURE",payload:{draggableId:o,movementMode:c}});var d={draggableId:o,scrollOptions:{shouldPublishImmediately:"SNAP"===c}},s=e.startPublishing(d),p=s.critical,f=s.dimensions,g=s.viewport;n({type:"INITIAL_PUBLISH",payload:{critical:p,dimensions:f,clientSelection:l,movementMode:c,viewport:g}})}else r(i)}}}}(t),Tr,Ur,Hr,jr,function(e){return function(r){return function(t){return function(n){if(function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(n))return e.stop(),void t(n);if("INITIAL_PUBLISH"===n.type){t(n);var i=r.getState();return"DRAGGING"!==i.phase&&G(!1),void e.start(i)}t(n),e.scroll(r.getState())}}}}(c),Mr,function(e){var r=!1;return function(){return function(t){return function(n){if("INITIAL_PUBLISH"===n.type)return r=!0,e.tryRecordFocus(n.payload.critical.draggable.id),t(n),void e.tryRestoreFocusRecorded();if(t(n),r){if("FLUSH"===n.type)return r=!1,void e.tryRestoreFocusRecorded();if("DROP_COMPLETE"===n.type){r=!1;var i=n.payload.completed.result;i.combine&&e.tryShiftRecord(i.draggableId,i.combine.draggableId),e.tryRestoreFocusRecorded()}}}}}}(n),Wr(a,o))))},zr=function(e){var r=e.scrollHeight,t=e.scrollWidth,n=e.height,i=e.width,a=V({x:t,y:r},{x:i,y:n});return{x:Math.max(0,a.x),y:Math.max(0,a.y)}},Yr=function(){var e=document.documentElement;return e||G(!1),e},Jr=function(){var e=Yr();return zr({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})};function Xr(e,r,t){return t.descriptor.id!==r.id&&t.descriptor.type===r.type&&"virtual"===e.droppable.getById(t.descriptor.droppableId).descriptor.mode}var Kr,Qr,Zr=function(e,r){var t=null,n=function(e){var r=e.registry,t=e.callbacks,n={additions:{},removals:{},modified:{}},i=null,a=function(){i||(t.collectionStarting(),i=requestAnimationFrame((function(){i=null;var e=n,a=e.additions,o=e.removals,l=e.modified,c=Object.keys(a).map((function(e){return r.draggable.getById(e).getDimension(H)})).sort((function(e,r){return e.descriptor.index-r.descriptor.index})),u=Object.keys(l).map((function(e){return{droppableId:e,scroll:r.droppable.getById(e).callbacks.getScrollWhileDragging()}})),d={additions:c,removals:Object.keys(o),modified:u};n={additions:{},removals:{},modified:{}},t.publish(d)})))};return{add:function(e){var r=e.descriptor.id;n.additions[r]=e,n.modified[e.descriptor.droppableId]=!0,n.removals[r]&&delete n.removals[r],a()},remove:function(e){var r=e.descriptor;n.removals[r.id]=!0,n.modified[r.droppableId]=!0,n.additions[r.id]&&delete n.additions[r.id],a()},stop:function(){i&&(cancelAnimationFrame(i),i=null,n={additions:{},removals:{},modified:{}})}}}({callbacks:{publish:r.publishWhileDragging,collectionStarting:r.collectionStarting},registry:e}),i=function(r){t||G(!1);var i=t.critical.draggable;"ADDITION"===r.type&&Xr(e,i,r.value)&&n.add(r.value),"REMOVAL"===r.type&&Xr(e,i,r.value)&&n.remove(r.value)};return{updateDroppableIsEnabled:function(n,i){e.droppable.exists(n)||G(!1),t&&r.updateDroppableIsEnabled({id:n,isEnabled:i})},updateDroppableIsCombineEnabled:function(n,i){t&&(e.droppable.exists(n)||G(!1),r.updateDroppableIsCombineEnabled({id:n,isCombineEnabled:i}))},scrollDroppable:function(r,n){t&&e.droppable.getById(r).callbacks.scroll(n)},updateDroppableScroll:function(n,i){t&&(e.droppable.exists(n)||G(!1),r.updateDroppableScroll({id:n,newScroll:i}))},startPublishing:function(r){t&&G(!1);var n=e.draggable.getById(r.draggableId),a=e.droppable.getById(n.descriptor.droppableId),o={draggable:n.descriptor,droppable:a.descriptor},l=e.subscribe(i);return t={critical:o,unsubscribe:l},function(e){var r,t,n,i,a,o,l,c=e.critical,u=e.scrollOptions,d=e.registry,s=(r=Gr(),t=Jr(),n=r.y,i=r.x,o=(a=Yr()).clientWidth,l=a.clientHeight,{frame:f({top:n,left:i,right:i+o,bottom:n+l}),scroll:{initial:r,current:r,max:t,diff:{value:H,displacement:H}}}),p=s.scroll.current,g=c.droppable,v=d.droppable.getAllByType(g.type).map((function(e){return e.callbacks.getDimensionAndWatchScroll(p,u)})),m=d.draggable.getAllByType(c.draggable.type).map((function(e){return e.getDimension(p)}));return{dimensions:{draggables:le(m),droppables:oe(v)},critical:c,viewport:s}}({critical:o,registry:e,scrollOptions:r.scrollOptions})},stopPublishing:function(){if(t){n.stop();var r=t.critical.droppable;e.droppable.getAllByType(r.type).forEach((function(e){return e.callbacks.dragStopped()})),t.unsubscribe(),t=null}}}},$r=function(e,r){return"IDLE"===e.phase||"DROP_ANIMATING"===e.phase&&e.completed.result.draggableId!==r&&"DROP"===e.completed.result.reason},et=function(e){window.scrollBy(e.x,e.y)},rt=w((function(e){return ce(e).filter((function(e){return!!e.isEnabled&&!!e.frame}))})),tt=function(e){return Math.pow(e,2)},nt=function(e){var r=e.startOfRange,t=e.endOfRange,n=e.current,i=t-r;return 0===i?0:(n-r)/i},it=360,at=1200,ot=function(e){var r=e.distanceToEdge,t=e.thresholds,n=e.dragStartTime,i=e.shouldUseTimeDampening,a=function(e,r){if(e>r.startScrollingFrom)return 0;if(e<=r.maxScrollValueAt)return 28;if(e===r.startScrollingFrom)return 1;var t=nt({startOfRange:r.maxScrollValueAt,endOfRange:r.startScrollingFrom,current:e}),n=28*tt(1-t);return Math.ceil(n)}(r,t);return 0===a?0:i?Math.max(function(e,r){var t=r,n=at,i=Date.now()-t;if(i>=at)return e;if(i<it)return 1;var a=nt({startOfRange:it,endOfRange:n,current:i}),o=e*tt(a);return Math.ceil(o)}(a,n),1):a},lt=function(e){var r=e.container,t=e.distanceToEdges,n=e.dragStartTime,i=e.axis,a=e.shouldUseTimeDampening,o=function(e,r){return{startScrollingFrom:.25*e[r.size],maxScrollValueAt:.05*e[r.size]}}(r,i);return t[i.end]<t[i.start]?ot({distanceToEdge:t[i.end],thresholds:o,dragStartTime:n,shouldUseTimeDampening:a}):-1*ot({distanceToEdge:t[i.start],thresholds:o,dragStartTime:n,shouldUseTimeDampening:a})},ct=K((function(e){return 0===e?0:e})),ut=function(e){var r=e.dragStartTime,t=e.container,n=e.subject,i=e.center,a=e.shouldUseTimeDampening,o={top:i.y-t.top,right:t.right-i.x,bottom:t.bottom-i.y,left:i.x-t.left},l=lt({container:t,distanceToEdges:o,dragStartTime:r,axis:De,shouldUseTimeDampening:a}),c=lt({container:t,distanceToEdges:o,dragStartTime:r,axis:xe,shouldUseTimeDampening:a}),u=ct({x:c,y:l});if(q(u,H))return null;var d=function(e){var r=e.container,t=e.subject,n=e.proposedScroll,i=t.height>r.height,a=t.width>r.width;return a||i?a&&i?null:{x:a?0:n.x,y:i?0:n.y}:n}({container:t,subject:n,proposedScroll:u});return d?q(d,H)?null:d:null},dt=K((function(e){return 0===e?0:e>0?1:-1})),st=(Kr=function(e,r){return e<0?e:e>r?e-r:0},function(e){var r=e.current,t=e.max,n=e.change,i=j(r,n),a={x:Kr(i.x,t.x),y:Kr(i.y,t.y)};return q(a,H)?null:a}),pt=function(e){var r=e.max,t=e.current,n=e.change,i={x:Math.max(t.x,r.x),y:Math.max(t.y,r.y)},a=dt(n),o=st({max:i,current:t,change:a});return!o||0!==a.x&&0===o.x||0!==a.y&&0===o.y},ft=function(e,r){return pt({current:e.scroll.current,max:e.scroll.max,change:r})},gt=function(e,r){var t=e.frame;return!!t&&pt({current:t.scroll.current,max:t.scroll.max,change:r})},vt=function(e){var r=e.state,t=e.dragStartTime,n=e.shouldUseTimeDampening,i=e.scrollWindow,a=e.scrollDroppable,o=r.current.page.borderBoxCenter,l=r.dimensions.draggables[r.critical.draggable.id].page.marginBox;if(r.isWindowScrollAllowed){var c=function(e){var r=e.viewport,t=e.subject,n=e.center,i=e.shouldUseTimeDampening,a=ut({dragStartTime:e.dragStartTime,container:r.frame,subject:t,center:n,shouldUseTimeDampening:i});return a&&ft(r,a)?a:null}({dragStartTime:t,viewport:r.viewport,subject:l,center:o,shouldUseTimeDampening:n});if(c)return void i(c)}var u=function(e){var r=e.center,t=e.destination,n=e.droppables;if(t){var i=n[t];return i.frame?i:null}var a=function(e,r){var t=ie(rt(r),(function(r){return r.frame||G(!1),Xe(r.frame.pageMarginBox)(e)}));return t}(r,n);return a}({center:o,destination:ze(r.impact),droppables:r.dimensions.droppables});if(u){var d=function(e){var r=e.droppable,t=e.subject,n=e.center,i=e.dragStartTime,a=e.shouldUseTimeDampening,o=r.frame;if(!o)return null;var l=ut({dragStartTime:i,container:o.pageMarginBox,subject:t,center:n,shouldUseTimeDampening:a});return l&>(r,l)?l:null}({dragStartTime:t,droppable:u,subject:l,center:o,shouldUseTimeDampening:n});d&&a(u.descriptor.id,d)}},mt=function(e){var r=e.move,t=e.scrollDroppable,n=e.scrollWindow;return function(e){var i=e.scrollJumpRequest;if(i){var a=ze(e.impact);a||G(!1);var o=function(e,r){if(!gt(e,r))return r;var n=function(e,r){var t=e.frame;return t&>(e,r)?st({current:t.scroll.current,max:t.scroll.max,change:r}):null}(e,r);if(!n)return t(e.descriptor.id,r),null;var i=V(r,n);return t(e.descriptor.id,i),V(r,i)}(e.dimensions.droppables[a],i);if(o){var l=e.viewport,c=function(e,r,t){if(!e)return t;if(!ft(r,t))return t;var i=function(e,r){if(!ft(e,r))return null;var t=e.scroll.max,n=e.scroll.current;return st({current:n,max:t,change:r})}(r,t);if(!i)return n(t),null;var a=V(t,i);return n(a),V(t,a)}(e.isWindowScrollAllowed,l,o);c&&function(e,t){var n=j(e.current.client.selection,t);r({client:n})}(e,c)}}}},bt=function(e){var r=e.scrollDroppable,t=e.scrollWindow,n=e.move,i=function(e){var r=e.scrollDroppable,t=C(e.scrollWindow),n=C(r),i=null,a=function(e){i||G(!1);var r=i,a=r.shouldUseTimeDampening,o=r.dragStartTime;vt({state:e,scrollWindow:t,scrollDroppable:n,dragStartTime:o,shouldUseTimeDampening:a})};return{start:function(e){i&&G(!1);var r=Date.now(),t=!1,n=function(){t=!0};vt({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:n,scrollDroppable:n}),i={dragStartTime:r,shouldUseTimeDampening:t},t&&a(e)},stop:function(){i&&(t.cancel(),n.cancel(),i=null)},scroll:a}}({scrollWindow:t,scrollDroppable:r}),a=mt({move:n,scrollWindow:t,scrollDroppable:r});return{scroll:function(e){"DRAGGING"===e.phase&&("FLUID"!==e.movementMode?e.scrollJumpRequest&&a(e):i.scroll(e))},start:i.start,stop:i.stop}},ht="data-rbd",yt={base:Qr=ht+"-drag-handle",draggableId:Qr+"-draggable-id",contextId:Qr+"-context-id"},It=function(){var e=ht+"-draggable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),Dt=function(){var e=ht+"-droppable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),xt={contextId:ht+"-scroll-container-context-id"},At=function(e,r){return e.map((function(e){var t=e.styles[r];return t?e.selector+" { "+t+" }":""})).join(" ")},Et=function(e){var r,t,n,i=(r=e,function(e){return"["+e+'="'+r+'"]'}),a=(t="\n cursor: -webkit-grab;\n cursor: grab;\n ",{selector:i(yt.contextId),styles:{always:"\n -webkit-touch-callout: none;\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n touch-action: manipulation;\n ",resting:t,dragging:"pointer-events: none;",dropAnimating:t}}),o=[(n="\n transition: "+Sr.outOfTheWay+";\n ",{selector:i(It.contextId),styles:{dragging:n,dropAnimating:n,userCancel:n}}),a,{selector:i(Dt.contextId),styles:{always:"overflow-anchor: none;"}},{selector:"body",styles:{dragging:"\n cursor: grabbing;\n cursor: -webkit-grabbing;\n user-select: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n overflow-anchor: none;\n "}}];return{always:At(o,"always"),resting:At(o,"resting"),dragging:At(o,"dragging"),dropAnimating:At(o,"dropAnimating"),userCancel:At(o,"userCancel")}},wt="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?n.useLayoutEffect:n.useEffect,Ct=function(){var e=document.querySelector("head");return e||G(!1),e},Bt=function(e){var r=document.createElement("style");return e&&r.setAttribute("nonce",e),r.type="text/css",r},Rt=function(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:window};function St(e){return e instanceof Rt(e).HTMLElement}function Nt(){var e={draggables:{},droppables:{}},r=[];function t(e){r.length&&r.forEach((function(r){return r(e)}))}function n(r){return e.draggables[r]||null}function i(r){return e.droppables[r]||null}return{draggable:{register:function(r){e.draggables[r.descriptor.id]=r,t({type:"ADDITION",value:r})},update:function(r,t){var n=e.draggables[t.descriptor.id];n&&n.uniqueId===r.uniqueId&&(delete e.draggables[t.descriptor.id],e.draggables[r.descriptor.id]=r)},unregister:function(r){var i=r.descriptor.id,a=n(i);a&&r.uniqueId===a.uniqueId&&(delete e.draggables[i],t({type:"REMOVAL",value:r}))},getById:function(e){var r=n(e);return r||G(!1),r},findById:n,exists:function(e){return Boolean(n(e))},getAllByType:function(r){return te(e.draggables).filter((function(e){return e.descriptor.type===r}))}},droppable:{register:function(r){e.droppables[r.descriptor.id]=r},unregister:function(r){var t=i(r.descriptor.id);t&&r.uniqueId===t.uniqueId&&delete e.droppables[r.descriptor.id]},getById:function(e){var r=i(e);return r||G(!1),r},findById:i,exists:function(e){return Boolean(i(e))},getAllByType:function(r){return te(e.droppables).filter((function(e){return e.descriptor.type===r}))}},subscribe:function(e){return r.push(e),function(){var t=r.indexOf(e);-1!==t&&r.splice(t,1)}},clean:function(){e.draggables={},e.droppables={},r.length=0}}}var Pt=i().createContext(null),Ot=function(){var e=document.body;return e||G(!1),e},Lt={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},Tt=function(e){return"rbd-announcement-"+e},Gt=0,Mt={separator:"::"};function _t(e,r){return void 0===r&&(r=Mt),d((function(){return""+e+r.separator+Gt++}),[r.separator,e])}var Ft=i().createContext(null);function kt(e){var r=(0,n.useRef)(e);return(0,n.useEffect)((function(){r.current=e})),r}var Wt,Ut,Ht=27,jt=32,Vt=37,qt=38,zt=39,Yt=40,Jt=((Wt={})[13]=!0,Wt[9]=!0,Wt),Xt=function(e){Jt[e.keyCode]&&e.preventDefault()},Kt=function(){var e="visibilitychange";return"undefined"==typeof document?e:ie([e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],(function(e){return"on"+e in document}))||e}(),Qt=0,Zt=5,$t={type:"IDLE"};function en(e){var r=(0,n.useRef)($t),t=(0,n.useRef)(N),i=d((function(){return{eventName:"mousedown",fn:function(r){if(!r.defaultPrevented&&r.button===Qt&&!(r.ctrlKey||r.metaKey||r.shiftKey||r.altKey)){var n=e.findClosestDraggableId(r);if(n){var i=e.tryGetLock(n,l,{sourceEvent:r});if(i){r.preventDefault();var a={x:r.clientX,y:r.clientY};t.current(),p(i,a)}}}}}}),[e]),a=d((function(){return{eventName:"webkitmouseforcewillbegin",fn:function(r){if(!r.defaultPrevented){var t=e.findClosestDraggableId(r);if(t){var n=e.findOptionsForDraggable(t);n&&(n.shouldRespectForcePress||e.canGetLock(t)&&r.preventDefault())}}}}}),[e]),o=s((function(){t.current=P(window,[a,i],{passive:!1,capture:!0})}),[a,i]),l=s((function(){"IDLE"!==r.current.type&&(r.current=$t,t.current(),o())}),[o]),c=s((function(){var e=r.current;l(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[l]),u=s((function(){var e=function(e){var r=e.cancel,t=e.completed,n=e.getPhase,i=e.setPhase;return[{eventName:"mousemove",fn:function(e){var r=e.button,t=e.clientX,a=e.clientY;if(r===Qt){var o={x:t,y:a},l=n();if("DRAGGING"===l.type)return e.preventDefault(),void l.actions.move(o);if("PENDING"!==l.type&&G(!1),c=l.point,u=o,Math.abs(u.x-c.x)>=Zt||Math.abs(u.y-c.y)>=Zt){var c,u;e.preventDefault();var d=l.actions.fluidLift(o);i({type:"DRAGGING",actions:d})}}}},{eventName:"mouseup",fn:function(e){var i=n();"DRAGGING"===i.type?(e.preventDefault(),i.actions.drop({shouldBlockNextClick:!0}),t()):r()}},{eventName:"mousedown",fn:function(e){"DRAGGING"===n().type&&e.preventDefault(),r()}},{eventName:"keydown",fn:function(e){if("PENDING"!==n().type)return e.keyCode===Ht?(e.preventDefault(),void r()):void Xt(e);r()}},{eventName:"resize",fn:r},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){"PENDING"===n().type&&r()}},{eventName:"webkitmouseforcedown",fn:function(e){var t=n();"IDLE"===t.type&&G(!1),t.actions.shouldRespectForcePress()?r():e.preventDefault()}},{eventName:Kt,fn:r}]}({cancel:c,completed:l,getPhase:function(){return r.current},setPhase:function(e){r.current=e}});t.current=P(window,e,{capture:!0,passive:!1})}),[c,l]),p=s((function(e,t){"IDLE"!==r.current.type&&G(!1),r.current={type:"PENDING",point:t,actions:e},u()}),[u]);wt((function(){return o(),function(){t.current()}}),[o])}function rn(){}var tn=((Ut={})[34]=!0,Ut[33]=!0,Ut[36]=!0,Ut[35]=!0,Ut);function nn(e){var r=(0,n.useRef)(rn),t=d((function(){return{eventName:"keydown",fn:function(t){if(!t.defaultPrevented&&t.keyCode===jt){var n=e.findClosestDraggableId(t);if(n){var a=e.tryGetLock(n,c,{sourceEvent:t});if(a){t.preventDefault();var o=!0,l=a.snapLift();r.current(),r.current=P(window,function(e,r){function t(){r(),e.cancel()}return[{eventName:"keydown",fn:function(n){return n.keyCode===Ht?(n.preventDefault(),void t()):n.keyCode===jt?(n.preventDefault(),r(),void e.drop()):n.keyCode===Yt?(n.preventDefault(),void e.moveDown()):n.keyCode===qt?(n.preventDefault(),void e.moveUp()):n.keyCode===zt?(n.preventDefault(),void e.moveRight()):n.keyCode===Vt?(n.preventDefault(),void e.moveLeft()):void(tn[n.keyCode]?n.preventDefault():Xt(n))}},{eventName:"mousedown",fn:t},{eventName:"mouseup",fn:t},{eventName:"click",fn:t},{eventName:"touchstart",fn:t},{eventName:"resize",fn:t},{eventName:"wheel",fn:t,options:{passive:!0}},{eventName:Kt,fn:t}]}(l,c),{capture:!0,passive:!1})}}}function c(){o||G(!1),o=!1,r.current(),i()}}}}),[e]),i=s((function(){r.current=P(window,[t],{passive:!1,capture:!0})}),[t]);wt((function(){return i(),function(){r.current()}}),[i])}var an={type:"IDLE"},on=120,ln=.15;function cn(e){var r=(0,n.useRef)(an),t=(0,n.useRef)(N),i=s((function(){return r.current}),[]),a=s((function(e){r.current=e}),[]),o=d((function(){return{eventName:"touchstart",fn:function(r){if(!r.defaultPrevented){var n=e.findClosestDraggableId(r);if(n){var i=e.tryGetLock(n,c,{sourceEvent:r});if(i){var a=r.touches[0],o={x:a.clientX,y:a.clientY};t.current(),g(i,o)}}}}}}),[e]),l=s((function(){t.current=P(window,[o],{capture:!0,passive:!1})}),[o]),c=s((function(){var e=r.current;"IDLE"!==e.type&&("PENDING"===e.type&&clearTimeout(e.longPressTimerId),a(an),t.current(),l())}),[l,a]),u=s((function(){var e=r.current;c(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[c]),p=s((function(){var e={capture:!0,passive:!1},r={cancel:u,completed:c,getPhase:i},n=P(window,function(e){var r=e.cancel,t=e.completed,n=e.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(e){var t=n();if("DRAGGING"===t.type){t.hasMoved=!0;var i=e.touches[0],a={x:i.clientX,y:i.clientY};e.preventDefault(),t.actions.move(a)}else r()}},{eventName:"touchend",fn:function(e){var i=n();"DRAGGING"===i.type?(e.preventDefault(),i.actions.drop({shouldBlockNextClick:!0}),t()):r()}},{eventName:"touchcancel",fn:function(e){"DRAGGING"===n().type?(e.preventDefault(),r()):r()}},{eventName:"touchforcechange",fn:function(e){var t=n();"IDLE"===t.type&&G(!1);var i=e.touches[0];if(i&&i.force>=ln){var a=t.actions.shouldRespectForcePress();if("PENDING"!==t.type)return a?t.hasMoved?void e.preventDefault():void r():void e.preventDefault();a&&r()}}},{eventName:Kt,fn:r}]}(r),e),a=P(window,function(e){var r=e.cancel,t=e.getPhase;return[{eventName:"orientationchange",fn:r},{eventName:"resize",fn:r},{eventName:"contextmenu",fn:function(e){e.preventDefault()}},{eventName:"keydown",fn:function(e){"DRAGGING"===t().type?(e.keyCode===Ht&&e.preventDefault(),r()):r()}},{eventName:Kt,fn:r}]}(r),e);t.current=function(){n(),a()}}),[u,i,c]),f=s((function(){var e=i();"PENDING"!==e.type&&G(!1);var r=e.actions.fluidLift(e.point);a({type:"DRAGGING",actions:r,hasMoved:!1})}),[i,a]),g=s((function(e,r){"IDLE"!==i().type&&G(!1);var t=setTimeout(f,on);a({type:"PENDING",point:r,actions:e,longPressTimerId:t}),p()}),[p,i,a,f]);wt((function(){return l(),function(){t.current();var e=i();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),a(an))}}),[i,l,a]),wt((function(){return P(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}])}),[])}var un={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function dn(e,r){if(null==r)return!1;if(Boolean(un[r.tagName.toLowerCase()]))return!0;var t=r.getAttribute("contenteditable");return"true"===t||""===t||r!==e&&dn(e,r.parentElement)}function sn(e,r){var t=r.target;return!!St(t)&&dn(e,t)}var pn=function(e){return f(e.getBoundingClientRect()).center},fn=function(){var e="matches";return"undefined"==typeof document?e:ie([e,"msMatchesSelector","webkitMatchesSelector"],(function(e){return e in Element.prototype}))||e}();function gn(e,r){return null==e?null:e[fn](r)?e:gn(e.parentElement,r)}function vn(e,r){return e.closest?e.closest(r):gn(e,r)}function mn(e){e.preventDefault()}function bn(e){var r=e.expected,t=e.phase,n=e.isLockActive;return e.shouldWarn,!!n()&&r===t}function hn(e){var r=e.lockAPI,t=e.store,n=e.registry,i=e.draggableId;if(r.isClaimed())return!1;var a=n.draggable.findById(i);return!!a&&!!a.options.isEnabled&&!!$r(t.getState(),i)}var yn=[en,nn,cn];function In(e){var r=e.contextId,t=e.store,i=e.registry,a=e.customSensors,l=e.enableDefaultSensors,c=[].concat(l?yn:[],a||[]),u=(0,n.useState)((function(){return function(){var e=null;function r(){e||G(!1),e=null}return{isClaimed:function(){return Boolean(e)},isActive:function(r){return r===e},claim:function(r){e&&G(!1);var t={abandon:r};return e=t,t},release:r,tryAbandon:function(){e&&(e.abandon(),r())}}}()}))[0],p=s((function(e,r){e.isDragging&&!r.isDragging&&u.tryAbandon()}),[u]);wt((function(){var e=t.getState();return t.subscribe((function(){var r=t.getState();p(e,r),e=r}))}),[u,t,p]),wt((function(){return u.tryAbandon}),[u.tryAbandon]);for(var f=s((function(e){return hn({lockAPI:u,registry:i,store:t,draggableId:e})}),[u,i,t]),g=s((function(e,n,a){return function(e){var r=e.lockAPI,t=e.contextId,n=e.store,i=e.registry,a=e.draggableId,l=e.forceSensorStop,c=e.sourceEvent;if(!hn({lockAPI:r,store:n,registry:i,draggableId:a}))return null;var u=i.draggable.getById(a),d=function(e,r){var t="["+It.contextId+'="'+e+'"]',n=ie(ae(document.querySelectorAll(t)),(function(e){return e.getAttribute(It.id)===r}));return n&&St(n)?n:null}(t,u.descriptor.id);if(!d)return null;if(c&&!u.options.canDragInteractiveElements&&sn(d,c))return null;var s=r.claim(l||N),p="PRE_DRAG";function f(){return u.options.shouldRespectForcePress}function g(){return r.isActive(s)}var v=function(e,r){bn({expected:e,phase:p,isLockActive:g,shouldWarn:!0})&&n.dispatch(r())}.bind(null,"DRAGGING");function m(e){function t(){r.release(),p="COMPLETED"}function i(r,i){if(void 0===i&&(i={shouldBlockNextClick:!1}),e.cleanup(),i.shouldBlockNextClick){var a=P(window,[{eventName:"click",fn:mn,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(a)}t(),n.dispatch(Ar({reason:r}))}return"PRE_DRAG"!==p&&(t(),"PRE_DRAG"!==p&&G(!1)),n.dispatch(dr(e.liftActionArgs)),p="DRAGGING",(0,o.A)({isActive:function(){return bn({expected:"DRAGGING",phase:p,isLockActive:g,shouldWarn:!1})},shouldRespectForcePress:f,drop:function(e){return i("DROP",e)},cancel:function(e){return i("CANCEL",e)}},e.actions)}return{isActive:function(){return bn({expected:"PRE_DRAG",phase:p,isLockActive:g,shouldWarn:!1})},shouldRespectForcePress:f,fluidLift:function(e){var r=C((function(e){v((function(){return mr({client:e})}))})),t=m({liftActionArgs:{id:a,clientSelection:e,movementMode:"FLUID"},cleanup:function(){return r.cancel()},actions:{move:r}});return(0,o.A)({},t,{move:r})},snapLift:function(){var e={moveUp:function(){return v(br)},moveRight:function(){return v(yr)},moveDown:function(){return v(hr)},moveLeft:function(){return v(Ir)}};return m({liftActionArgs:{id:a,clientSelection:pn(d),movementMode:"SNAP"},cleanup:N,actions:e})},abort:function(){bn({expected:"PRE_DRAG",phase:p,isLockActive:g,shouldWarn:!0})&&r.release()}}}({lockAPI:u,registry:i,contextId:r,store:t,draggableId:e,forceSensorStop:n,sourceEvent:a&&a.sourceEvent?a.sourceEvent:null})}),[r,u,i,t]),v=s((function(e){return function(e,r){var t=function(e,r){var t,n=r.target;if(!((t=n)instanceof Rt(t).Element))return null;var i=function(e){return"["+yt.contextId+'="'+e+'"]'}(e),a=vn(n,i);return a&&St(a)?a:null}(e,r);return t?t.getAttribute(yt.draggableId):null}(r,e)}),[r]),m=s((function(e){var r=i.draggable.findById(e);return r?r.options:null}),[i.draggable]),b=s((function(){u.isClaimed()&&(u.tryAbandon(),"IDLE"!==t.getState().phase&&t.dispatch(Dr()))}),[u,t]),h=s(u.isClaimed,[u]),y=d((function(){return{canGetLock:f,tryGetLock:g,findClosestDraggableId:v,findOptionsForDraggable:m,tryReleaseLock:b,isLockClaimed:h}}),[f,g,v,m,b,h]),I=0;I<c.length;I++)c[I](y)}var Dn=function(e){return{onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}};function xn(e){return e.current||G(!1),e.current}function An(e){var r=e.contextId,t=e.setCallbacks,a=e.sensors,u=e.nonce,p=e.dragHandleUsageInstructions,f=(0,n.useRef)(null),g=kt(e),v=s((function(){return Dn(g.current)}),[g]),m=function(e){var r=d((function(){return Tt(e)}),[e]),t=(0,n.useRef)(null);return(0,n.useEffect)((function(){var e=document.createElement("div");return t.current=e,e.id=r,e.setAttribute("aria-live","assertive"),e.setAttribute("aria-atomic","true"),(0,o.A)(e.style,Lt),Ot().appendChild(e),function(){setTimeout((function(){var r=Ot();r.contains(e)&&r.removeChild(e),e===t.current&&(t.current=null)}))}}),[r]),s((function(e){var r=t.current;r&&(r.textContent=e)}),[])}(r),b=function(e){var r=e.contextId,t=e.text,i=_t("hidden-text",{separator:"-"}),a=d((function(){return"rbd-hidden-text-"+(e={contextId:r,uniqueId:i}).contextId+"-"+e.uniqueId;var e}),[i,r]);return(0,n.useEffect)((function(){var e=document.createElement("div");return e.id=a,e.textContent=t,e.style.display="none",Ot().appendChild(e),function(){var r=Ot();r.contains(e)&&r.removeChild(e)}}),[a,t]),a}({contextId:r,text:p}),h=function(e,r){var t=d((function(){return Et(e)}),[e]),i=(0,n.useRef)(null),a=(0,n.useRef)(null),o=s(w((function(e){var r=a.current;r||G(!1),r.textContent=e})),[]),l=s((function(e){var r=i.current;r||G(!1),r.textContent=e}),[]);wt((function(){(i.current||a.current)&&G(!1);var n=Bt(r),c=Bt(r);return i.current=n,a.current=c,n.setAttribute(ht+"-always",e),c.setAttribute(ht+"-dynamic",e),Ct().appendChild(n),Ct().appendChild(c),l(t.always),o(t.resting),function(){var e=function(e){var r=e.current;r||G(!1),Ct().removeChild(r),e.current=null};e(i),e(a)}}),[r,l,o,t.always,t.resting,e]);var c=s((function(){return o(t.dragging)}),[o,t.dragging]),u=s((function(e){o("DROP"!==e?t.userCancel:t.dropAnimating)}),[o,t.dropAnimating,t.userCancel]),p=s((function(){a.current&&o(t.resting)}),[o,t.resting]);return d((function(){return{dragging:c,dropping:u,resting:p}}),[c,u,p])}(r,u),y=s((function(e){xn(f).dispatch(e)}),[]),I=d((function(){return(0,l.bindActionCreators)({publishWhileDragging:sr,updateDroppableScroll:fr,updateDroppableIsEnabled:gr,updateDroppableIsCombineEnabled:vr,collectionStarting:pr},y)}),[y]),D=function(){var e=d(Nt,[]);return(0,n.useEffect)((function(){return function(){requestAnimationFrame(e.clean)}}),[e]),e}(),x=d((function(){return Zr(D,I)}),[D,I]),A=d((function(){return bt((0,o.A)({scrollWindow:et,scrollDroppable:x.scrollDroppable},(0,l.bindActionCreators)({move:mr},y)))}),[x.scrollDroppable,y]),E=function(e){var r=(0,n.useRef)({}),t=(0,n.useRef)(null),i=(0,n.useRef)(null),a=(0,n.useRef)(!1),o=s((function(e,t){var n={id:e,focus:t};return r.current[e]=n,function(){var t=r.current;t[e]!==n&&delete t[e]}}),[]),l=s((function(r){var t=function(e,r){var t="["+yt.contextId+'="'+e+'"]',n=ae(document.querySelectorAll(t));if(!n.length)return null;var i=ie(n,(function(e){return e.getAttribute(yt.draggableId)===r}));return i&&St(i)?i:null}(e,r);t&&t!==document.activeElement&&t.focus()}),[e]),c=s((function(e,r){t.current===e&&(t.current=r)}),[]),u=s((function(){i.current||a.current&&(i.current=requestAnimationFrame((function(){i.current=null;var e=t.current;e&&l(e)})))}),[l]),p=s((function(e){t.current=null;var r=document.activeElement;r&&r.getAttribute(yt.draggableId)===e&&(t.current=e)}),[]);return wt((function(){return a.current=!0,function(){a.current=!1;var e=i.current;e&&cancelAnimationFrame(e)}}),[]),d((function(){return{register:o,tryRecordFocus:p,tryRestoreFocusRecorded:u,tryShiftRecord:c}}),[o,p,u,c])}(r),C=d((function(){return qr({announce:m,autoScroller:A,dimensionMarshal:x,focusMarshal:E,getResponders:v,styleMarshal:h})}),[m,A,x,E,v,h]);f.current=C;var B=s((function(){var e=xn(f);"IDLE"!==e.getState().phase&&e.dispatch(Dr())}),[]),R=s((function(){var e=xn(f).getState();return e.isDragging||"DROP_ANIMATING"===e.phase}),[]);t(d((function(){return{isDragging:R,tryAbort:B}}),[R,B]));var S=s((function(e){return $r(xn(f).getState(),e)}),[]),N=s((function(){return Je(xn(f).getState())}),[]),P=d((function(){return{marshal:x,focus:E,contextId:r,canLift:S,isMovementAllowed:N,dragHandleUsageInstructionsId:b,registry:D}}),[r,x,b,E,S,N,D]);return In({contextId:r,store:C,registry:D,customSensors:a,enableDefaultSensors:!1!==e.enableDefaultSensors}),(0,n.useEffect)((function(){return B}),[B]),i().createElement(Ft.Provider,{value:P},i().createElement(c.Provider,{context:Pt,store:C},e.children))}var En=0;function wn(){En=0,Gt=0}function Cn(e){var r=d((function(){return""+En++}),[]),t=e.dragHandleUsageInstructions||U.dragHandleUsageInstructions;return i().createElement(M,null,(function(n){return i().createElement(An,{nonce:e.nonce,contextId:r,setCallbacks:n,dragHandleUsageInstructions:t,enableDefaultSensors:e.enableDefaultSensors,sensors:e.sensors,onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragUpdate:e.onDragUpdate,onDragEnd:e.onDragEnd},e.children)}))}var Bn=function(e){return function(r){return e===r}},Rn=Bn("scroll"),Sn=Bn("auto"),Nn=(Bn("visible"),function(e,r){return r(e.overflowX)||r(e.overflowY)}),Pn=function e(r){return null==r||r===document.body||r===document.documentElement?null:function(e){var r=window.getComputedStyle(e),t={overflowX:r.overflowX,overflowY:r.overflowY};return Nn(t,Rn)||Nn(t,Sn)}(r)?r:e(r.parentElement)},On=function(e){return{x:e.scrollLeft,y:e.scrollTop}},Ln=function e(r){return!!r&&("fixed"===window.getComputedStyle(r).position||e(r.parentElement))},Tn={passive:!1},Gn={passive:!0},Mn=function(e){return e.shouldPublishImmediately?Tn:Gn};function _n(e){var r=(0,n.useContext)(e);return r||G(!1),r}var Fn=function(e){return e&&e.env.closestScrollable||null};function kn(){}var Wn={width:0,height:0,margin:{top:0,right:0,bottom:0,left:0}},Un=i().memo((function(e){var r=(0,n.useRef)(null),t=s((function(){r.current&&(clearTimeout(r.current),r.current=null)}),[]),a=e.animate,o=e.onTransitionEnd,l=e.onClose,c=e.contextId,u=(0,n.useState)("open"===e.animate),d=u[0],p=u[1];(0,n.useEffect)((function(){return d?"open"!==a?(t(),p(!1),kn):r.current?kn:(r.current=setTimeout((function(){r.current=null,p(!1)})),t):kn}),[a,d,t]);var f=s((function(e){"height"===e.propertyName&&(o(),"close"===a&&l())}),[a,l,o]),g=function(e){var r=e.isAnimatingOpenOnMount,t=e.placeholder,n=e.animate,i=function(e){var r=e.placeholder;return e.isAnimatingOpenOnMount||"close"===e.animate?Wn:{height:r.client.borderBox.height,width:r.client.borderBox.width,margin:r.client.margin}}({isAnimatingOpenOnMount:r,placeholder:t,animate:n});return{display:t.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?Sr.placeholder:null}}({isAnimatingOpenOnMount:d,animate:e.animate,placeholder:e.placeholder});return i().createElement(e.placeholder.tagName,{style:g,"data-rbd-placeholder-context-id":c,onTransitionEnd:f,ref:e.innerRef})})),Hn=i().createContext(null),jn=function(e){function r(){for(var r,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return(r=e.call.apply(e,[this].concat(n))||this).state={isVisible:Boolean(r.props.on),data:r.props.on,animate:r.props.shouldAnimate&&r.props.on?"open":"none"},r.onClose=function(){"close"===r.state.animate&&r.setState({isVisible:!1})},r}return(0,a.A)(r,e),r.getDerivedStateFromProps=function(e,r){return e.shouldAnimate?e.on?{isVisible:!0,data:e.on,animate:"open"}:r.isVisible?{isVisible:!0,data:r.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(e.on),data:e.on,animate:"none"}},r.prototype.render=function(){if(!this.state.isVisible)return null;var e={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(e)},r}(i().PureComponent),Vn=function(e,r){return r?Sr.drop(r.duration):e?Sr.snap:Sr.fluid},qn=function(e,r){return e?r?wr:Cr:null};function zn(e){return"DRAGGING"===e.type?function(e){var r=e.dimension.client,t=e.offset,n=e.combineWith,i=e.dropping,a=Boolean(n),o=function(e){return null!=e.forceShouldAnimate?e.forceShouldAnimate:"SNAP"===e.mode}(e),l=Boolean(i),c=l?function(e,r){var t=Nr(e);return t?r?t+" scale("+Br+")":t:null}(t,a):Pr(t);return{position:"fixed",top:r.marginBox.top,left:r.marginBox.left,boxSizing:"border-box",width:r.borderBox.width,height:r.borderBox.height,transition:Vn(o,i),transform:c,opacity:qn(a,l),zIndex:l?4500:5e3,pointerEvents:"none"}}(e):{transform:Pr((r=e).offset),transition:r.shouldAnimateDisplacement?null:"none"};var r}function Yn(e){e.preventDefault()}var Jn=function(e,r){return e===r},Xn=function(e){var r=e.combine,t=e.destination;return t?t.droppableId:r?r.droppableId:null};function Kn(e){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}var Qn={mapped:{type:"SECONDARY",offset:H,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:Kn(null)}},Zn={dropAnimationFinished:function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}}},$n=(0,c.connect)((function(){var e,r,t,n=(e=w((function(e,r){return{x:e,y:r}})),r=w((function(e,r,t,n,i){return{isDragging:!0,isClone:r,isDropAnimating:Boolean(i),dropAnimation:i,mode:e,draggingOver:t,combineWith:n,combineTargetFor:null}})),t=w((function(e,t,n,i,a,o,l){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:a,combineWith:o,mode:t,offset:e,dimension:n,forceShouldAnimate:l,snapshot:r(t,i,a,o,null)}}})),function(n,i){if(n.isDragging){if(n.critical.draggable.id!==i.draggableId)return null;var a=n.current.client.offset,o=n.dimensions.draggables[i.draggableId],l=ze(n.impact),c=(d=n.impact).at&&"COMBINE"===d.at.type?d.at.combine.draggableId:null,u=n.forceShouldAnimate;return t(e(a.x,a.y),n.movementMode,o,i.isClone,l,c,u)}var d;if("DROP_ANIMATING"===n.phase){var s=n.completed;if(s.result.draggableId!==i.draggableId)return null;var p=i.isClone,f=n.dimensions.draggables[i.draggableId],g=s.result,v=g.mode,m=Xn(g),b=function(e){return e.combine?e.combine.draggableId:null}(g),h={duration:n.dropDuration,curve:Er,moveTo:n.newHomeClientOffset,opacity:b?wr:null,scale:b?Br:null};return{mapped:{type:"DRAGGING",offset:n.newHomeClientOffset,dimension:f,dropping:h,draggingOver:m,combineWith:b,mode:v,forceShouldAnimate:null,snapshot:r(v,p,m,b,h)}}}return null}),i=function(){var e=w((function(e,r){return{x:e,y:r}})),r=w(Kn),t=w((function(e,t,n){return void 0===t&&(t=null),{mapped:{type:"SECONDARY",offset:e,combineTargetFor:t,shouldAnimateDisplacement:n,snapshot:r(t)}}})),n=function(e){return e?t(H,e,!0):null},i=function(r,i,a,o){var l=a.displaced.visible[r],c=Boolean(o.inVirtualList&&o.effected[r]),u=pe(a),d=u&&u.draggableId===r?i:null;if(!l){if(!c)return n(d);if(a.displaced.invisible[r])return null;var s=z(o.displacedBy.point),p=e(s.x,s.y);return t(p,d,!0)}if(c)return n(d);var f=a.displacedBy.point,g=e(f.x,f.y);return t(g,d,l.shouldAnimate)};return function(e,r){if(e.isDragging)return e.critical.draggable.id===r.draggableId?null:i(r.draggableId,e.critical.draggable.id,e.impact,e.afterCritical);if("DROP_ANIMATING"===e.phase){var t=e.completed;return t.result.draggableId===r.draggableId?null:i(r.draggableId,t.result.draggableId,t.impact,t.afterCritical)}return null}}();return function(e,r){return n(e,r)||i(e,r)||Qn}}),Zn,null,{context:Pt,pure:!0,areStatePropsEqual:Jn})((function(e){var r=(0,n.useRef)(null),t=s((function(e){r.current=e}),[]),i=s((function(){return r.current}),[]),a=_n(Ft),o=a.contextId,l=a.dragHandleUsageInstructionsId,c=a.registry,u=_n(Hn),p=u.type,f=u.droppableId,g=d((function(){return{id:e.draggableId,index:e.index,type:p,droppableId:f}}),[e.draggableId,e.index,p,f]),v=e.children,m=e.draggableId,b=e.isEnabled,h=e.shouldRespectForcePress,y=e.canDragInteractiveElements,x=e.isClone,A=e.mapped,E=e.dropAnimationFinished;x||function(e){var r=_t("draggable"),t=e.descriptor,i=e.registry,a=e.getDraggableRef,o=e.canDragInteractiveElements,l=e.shouldRespectForcePress,c=e.isEnabled,u=d((function(){return{canDragInteractiveElements:o,shouldRespectForcePress:l,isEnabled:c}}),[o,c,l]),p=s((function(e){var r=a();return r||G(!1),function(e,r,t){void 0===t&&(t=H);var n=window.getComputedStyle(r),i=r.getBoundingClientRect(),a=D(i,n),o=I(a,t);return{descriptor:e,placeholder:{client:a,tagName:r.tagName.toLowerCase(),display:n.display},displaceBy:{x:a.marginBox.width,y:a.marginBox.height},client:a,page:o}}(t,r,e)}),[t,a]),f=d((function(){return{uniqueId:r,descriptor:t,options:u,getDimension:p}}),[t,p,u,r]),g=(0,n.useRef)(f),v=(0,n.useRef)(!0);wt((function(){return i.draggable.register(g.current),function(){return i.draggable.unregister(g.current)}}),[i.draggable]),wt((function(){if(v.current)v.current=!1;else{var e=g.current;g.current=f,i.draggable.update(f,e)}}),[f,i.draggable])}(d((function(){return{descriptor:g,registry:c,getDraggableRef:i,canDragInteractiveElements:y,shouldRespectForcePress:h,isEnabled:b}}),[g,c,i,y,h,b]));var w=d((function(){return b?{tabIndex:0,role:"button","aria-describedby":l,"data-rbd-drag-handle-draggable-id":m,"data-rbd-drag-handle-context-id":o,draggable:!1,onDragStart:Yn}:null}),[o,l,m,b]),C=s((function(e){"DRAGGING"===A.type&&A.dropping&&"transform"===e.propertyName&&E()}),[E,A]),B=d((function(){var e=zn(A),r="DRAGGING"===A.type&&A.dropping?C:null;return{innerRef:t,draggableProps:{"data-rbd-draggable-context-id":o,"data-rbd-draggable-id":m,style:e,onTransitionEnd:r},dragHandleProps:w}}),[o,w,m,A,C,t]),R=d((function(){return{draggableId:g.id,type:g.type,source:{index:g.index,droppableId:g.droppableId}}}),[g.droppableId,g.id,g.index,g.type]);return v(B,A.snapshot,R)}));function ei(e){return _n(Hn).isUsingCloneFor!==e.draggableId||e.isClone?i().createElement($n,e):null}function ri(e){var r="boolean"!=typeof e.isDragDisabled||!e.isDragDisabled,t=Boolean(e.disableInteractiveElementBlocking),n=Boolean(e.shouldRespectForcePress);return i().createElement(ei,(0,o.A)({},e,{isClone:!1,isEnabled:r,canDragInteractiveElements:t,shouldRespectForcePress:n}))}var ti=function(e,r){return e===r.droppable.type},ni=function(e,r){return r.draggables[e.draggable.id]},ii={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:function(){return document.body||G(!1),document.body}},ai=(0,c.connect)((function(){var e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},r=(0,o.A)({},e,{shouldAnimatePlaceholder:!1}),t=w((function(e){return{draggableId:e.id,type:e.type,source:{index:e.index,droppableId:e.droppableId}}})),n=w((function(n,i,a,o,l,c){var u=l.descriptor.id;if(l.descriptor.droppableId===n){var d=c?{render:c,dragging:t(l.descriptor)}:null,s={isDraggingOver:a,draggingOverWith:a?u:null,draggingFromThisWith:u,isUsingPlaceholder:!0};return{placeholder:l.placeholder,shouldAnimatePlaceholder:!1,snapshot:s,useClone:d}}if(!i)return r;if(!o)return e;var p={isDraggingOver:a,draggingOverWith:u,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:l.placeholder,shouldAnimatePlaceholder:!0,snapshot:p,useClone:null}}));return function(t,i){var a=i.droppableId,o=i.type,l=!i.isDropDisabled,c=i.renderClone;if(t.isDragging){var u=t.critical;if(!ti(o,u))return r;var d=ni(u,t.dimensions),s=ze(t.impact)===a;return n(a,l,s,s,d,c)}if("DROP_ANIMATING"===t.phase){var p=t.completed;if(!ti(o,p.critical))return r;var f=ni(p.critical,t.dimensions);return n(a,l,Xn(p.result)===a,ze(p.impact)===a,f,c)}if("IDLE"===t.phase&&t.completed&&!t.shouldFlush){var g=t.completed;if(!ti(o,g.critical))return r;var v=ze(g.impact)===a,m=Boolean(g.impact.at&&"COMBINE"===g.impact.at.type),b=g.critical.droppable.id===a;return v?m?e:r:b?e:r}return r}}),{updateViewportMaxScroll:function(e){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e}}},null,{context:Pt,pure:!0,areStatePropsEqual:Jn})((function(e){var r=(0,n.useContext)(Ft);r||G(!1);var t=r.contextId,a=r.isMovementAllowed,o=(0,n.useRef)(null),l=(0,n.useRef)(null),c=e.children,u=e.droppableId,p=e.type,f=e.mode,v=e.direction,m=e.ignoreContainerClipping,h=e.isDropDisabled,y=e.isCombineEnabled,D=e.snapshot,A=e.useClone,E=e.updateViewportMaxScroll,B=e.getContainerForClone,S=s((function(){return o.current}),[]),N=s((function(e){o.current=e}),[]),P=(s((function(){return l.current}),[]),s((function(e){l.current=e}),[])),O=s((function(){a()&&E({maxScroll:Jr()})}),[a,E]);!function(e){var r=(0,n.useRef)(null),t=_n(Ft),i=_t("droppable"),a=t.registry,o=t.marshal,l=kt(e),c=d((function(){return{id:e.droppableId,type:e.type,mode:e.mode}}),[e.droppableId,e.mode,e.type]),u=(0,n.useRef)(c),p=d((function(){return w((function(e,t){r.current||G(!1);var n={x:e,y:t};o.updateDroppableScroll(c.id,n)}))}),[c.id,o]),f=s((function(){var e=r.current;return e&&e.env.closestScrollable?On(e.env.closestScrollable):H}),[]),v=s((function(){var e=f();p(e.x,e.y)}),[f,p]),m=d((function(){return C(v)}),[v]),h=s((function(){var e=r.current,t=Fn(e);e&&t||G(!1),e.scrollOptions.shouldPublishImmediately?v():m()}),[m,v]),y=s((function(e,n){r.current&&G(!1);var i=l.current,a=i.getDroppableRef();a||G(!1);var o=function(e){return{closestScrollable:Pn(e),isFixedOnPage:Ln(e)}}(a),u={ref:a,descriptor:c,env:o,scrollOptions:n};r.current=u;var d=function(e){var r=e.ref,t=e.descriptor,n=e.env,i=e.windowScroll,a=e.direction,o=e.isDropDisabled,l=e.isCombineEnabled,c=e.shouldClipSubject,u=n.closestScrollable,d=function(e,r){var t=x(e);if(!r)return t;if(e!==r)return t;var n=t.paddingBox.top-r.scrollTop,i=t.paddingBox.left-r.scrollLeft,a=n+r.scrollHeight,o=i+r.scrollWidth,l=g({top:n,right:o,bottom:a,left:i},t.border);return b({borderBox:l,margin:t.margin,border:t.border,padding:t.padding})}(r,u),s=I(d,i),p=function(){if(!u)return null;var e=x(u),r={scrollHeight:u.scrollHeight,scrollWidth:u.scrollWidth};return{client:e,page:I(e,i),scroll:On(u),scrollSize:r,shouldClipSubject:c}}(),f=function(e){var r=e.descriptor,t=e.isEnabled,n=e.isCombineEnabled,i=e.isFixedOnPage,a=e.direction,o=e.client,l=e.page,c=e.closest,u=function(){if(!c)return null;var e=c.scrollSize,r=c.client,t=zr({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,height:r.paddingBox.height,width:r.paddingBox.width});return{pageMarginBox:c.page.marginBox,frameClient:r,scrollSize:e,shouldClipSubject:c.shouldClipSubject,scroll:{initial:c.scroll,current:c.scroll,max:t,diff:{value:H,displacement:H}}}}(),d="vertical"===a?De:xe;return{descriptor:r,isCombineEnabled:n,isFixedOnPage:i,axis:d,isEnabled:t,client:o,page:l,frame:u,subject:ee({page:l,withPlaceholder:null,axis:d,frame:u})}}({descriptor:t,isEnabled:!o,isCombineEnabled:l,isFixedOnPage:n.isFixedOnPage,direction:a,client:d,page:s,closest:p});return f}({ref:a,descriptor:c,env:o,windowScroll:e,direction:i.direction,isDropDisabled:i.isDropDisabled,isCombineEnabled:i.isCombineEnabled,shouldClipSubject:!i.ignoreContainerClipping}),s=o.closestScrollable;return s&&(s.setAttribute(xt.contextId,t.contextId),s.addEventListener("scroll",h,Mn(u.scrollOptions))),d}),[t.contextId,c,h,l]),D=s((function(){var e=r.current,t=Fn(e);return e&&t||G(!1),On(t)}),[]),A=s((function(){var e=r.current;e||G(!1);var t=Fn(e);r.current=null,t&&(m.cancel(),t.removeAttribute(xt.contextId),t.removeEventListener("scroll",h,Mn(e.scrollOptions)))}),[h,m]),E=s((function(e){var t=r.current;t||G(!1);var n=Fn(t);n||G(!1),n.scrollTop+=e.y,n.scrollLeft+=e.x}),[]),B=d((function(){return{getDimensionAndWatchScroll:y,getScrollWhileDragging:D,dragStopped:A,scroll:E}}),[A,y,D,E]),R=d((function(){return{uniqueId:i,descriptor:c,callbacks:B}}),[B,c,i]);wt((function(){return u.current=R.descriptor,a.droppable.register(R),function(){r.current&&A(),a.droppable.unregister(R)}}),[B,c,A,R,o,a.droppable]),wt((function(){r.current&&o.updateDroppableIsEnabled(u.current.id,!e.isDropDisabled)}),[e.isDropDisabled,o]),wt((function(){r.current&&o.updateDroppableIsCombineEnabled(u.current.id,e.isCombineEnabled)}),[e.isCombineEnabled,o])}({droppableId:u,type:p,mode:f,direction:v,isDropDisabled:h,isCombineEnabled:y,ignoreContainerClipping:m,getDroppableRef:S});var L=i().createElement(jn,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},(function(e){var r=e.onClose,n=e.data,a=e.animate;return i().createElement(Un,{placeholder:n,onClose:r,innerRef:P,animate:a,contextId:t,onTransitionEnd:O})})),T=d((function(){return{innerRef:N,placeholder:L,droppableProps:{"data-rbd-droppable-id":u,"data-rbd-droppable-context-id":t}}}),[t,u,L,N]),M=A?A.dragging.draggableId:null,_=d((function(){return{droppableId:u,type:p,isUsingCloneFor:M}}),[u,M,p]);return i().createElement(Hn.Provider,{value:_},c(T,D),function(){if(!A)return null;var e=A.dragging,r=A.render,t=i().createElement(ei,{draggableId:e.draggableId,index:e.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(function(t,n){return r(t,n,e)}));return R().createPortal(t,B())}())}));ai.defaultProps=ii},56143:(e,r,t)=>{t.d(r,{A:()=>a});var n=!0,i="Invariant failed";function a(e,r){if(!e){if(n)throw new Error(i);var t="function"==typeof r?r():r,a=t?"".concat(i,": ").concat(t):i;throw new Error(a)}}}}]); //# sourceMappingURL=8550.8a0ac4cac7e6d9feb464.js.map