"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[5201],{28048:(e,r,t)=>{t.d(r,{JY:()=>Zt,gL:()=>Ln,sx:()=>Nn});var n=t(40099),i=t(7449),a=t(92198),o=t(76323),l=t(69342),c=t(33719),u=t(98838),d=t(71304),s=t(30804),p=t(18499);function f(e,r){}function g(){}function v(e,r,t){var n=r.map((function(r){var n,i,o=(n=t,i=r.options,(0,a.A)({},n,{},i));return e.addEventListener(r.eventName,r.fn,o),function(){e.removeEventListener(r.eventName,r.fn,o)}}));return function(){n.forEach((function(e){e()}))}}f.bind(null,"warn"),f.bind(null,"error");var b=!0,m="Invariant failed";function h(e){this.message=e}function y(e,r){if(!e)throw new h(b?m:m+": "+(r||""))}h.prototype.toString=function(){return this.message};var I=function(e){function r(){for(var r,t=arguments.length,n=new Array(t),i=0;i");return r.callbacks},r.setCallbacks=function(e){r.callbacks=e},r}(0,i.A)(r,e);var t=r.prototype;return t.componentDidMount=function(){this.unbind=v(window,[{eventName:"error",fn:this.onWindowError}])},t.componentDidCatch=function(e){if(!(e instanceof h))throw e;this.setState({})},t.componentWillUnmount=function(){this.unbind()},t.render=function(){return this.props.children(this.setCallbacks)},r}(n.Component),D=function(e){return e+1},x=function(e,r){var t=e.droppableId===r.droppableId,n=D(e.index),i=D(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 "},A=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 "},E=function(e){return"\n The item has returned to its starting position\n of "+D(e.index)+"\n"},w={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 "+D(e.source.index)+"\n"},onDragUpdate:function(e){var r=e.destination;if(r)return x(e.source,r);var t=e.combine;return t?A(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 "+E(e.source)+"\n ";var r=e.destination,t=e.combine;return r?"\n You have dropped the item.\n "+x(e.source,r)+"\n ":t?"\n You have dropped the item.\n "+A(e.draggableId,e.source,t)+"\n ":"\n The item has been dropped while not over a drop area.\n "+E(e.source)+"\n "}},C={x:0,y:0},S=function(e,r){return{x:e.x+r.x,y:e.y+r.y}},B=function(e,r){return{x:e.x-r.x,y:e.y-r.y}},N=function(e,r){return e.x===r.x&&e.y===r.y},R=function(e){return{x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}},P=function(e,r,t){var n;return void 0===t&&(t=0),(n={})[e]=r,n["x"===e?"y":"x"]=t,n},O=function(e,r){return Math.sqrt(Math.pow(r.x-e.x,2)+Math.pow(r.y-e.y,2))},L=function(e,r){return Math.min.apply(Math,r.map((function(r){return O(e,r)})))},T=function(e){return function(r){return{x:e(r.x),y:e(r.y)}}},G=function(e,r){return{top:e.top+r.y,left:e.left+r.x,bottom:e.bottom+r.y,right:e.right+r.x}},M=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=(0,u.l)({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):(0,u.l)(e)},F=function(e){var r=e.page,t=e.withPlaceholder,n=e.axis,i=e.frame,o=function(e,r){return r?G(e,r.scroll.diff.displacement):e}(r.marginBox,i),l=function(e,r,t){var n;return t&&t.increasedBy?(0,a.A)({},e,((n={})[r.end]=e[r.end]+t.increasedBy[r.line],n)):e}(o,n,t);return{page:r,withPlaceholder:t,active:_(l,i)}},k=function(e,r){e.frame||y(!1);var t=e.frame,n=B(r,t.scroll.initial),i=R(n),o=(0,a.A)({},t,{scroll:{initial:t.scroll.initial,current:r,diff:{value:n,displacement:i},max:t.scroll.max}}),l=F({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:o});return(0,a.A)({},e,{frame:o,subject:l})};function U(e){return Object.values?Object.values(e):Object.keys(e).map((function(r){return e[r]}))}function W(e,r){if(e.findIndex)return e.findIndex(r);for(var t=0;te.bottom,l=n.lefte.right;return!(!o||!l)||o&&a||l&&i}},ie=function(e){var r=te(e.top,e.bottom),t=te(e.left,e.right);return function(e){return r(e.top)&&r(e.bottom)&&t(e.left)&&t(e.right)}},ae={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},oe={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},le=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:C;return G(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)},ce=function(e){return le((0,a.A)({},e,{isVisibleThroughFrameFn:ne}))},ue=function(e){return le((0,a.A)({},e,{isVisibleThroughFrameFn:ie}))},de=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};function se(e){var r=e.afterDragging,t=e.destination,n=e.displacedBy,i=e.viewport,a=e.forceShouldAnimate,o=e.last;return r.reduce((function(e,r){var l=function(e,r){var t=e.page.marginBox,n={top:r.point.y,right:0,bottom:0,left:r.point.x};return(0,u.l)((0,u.fT)(t,n))}(r,n),c=r.descriptor.id;if(e.all.push(c),!ce({target:l,destination:t,viewport:i,withDroppableDisplacement:!0}))return e.invisible[r.descriptor.id]=!0,e;var d={draggableId:c,shouldAnimate:de(c,o,a)};return e.visible[c]=d,e}),{all:[],visible:{},invisible:{}})}function pe(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:ee,displacedBy:n,at:{type:"REORDER",destination:{droppableId:i.descriptor.id,index:a}}}}function fe(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=Z(r,n);if(null==l)return pe({insideDestination:t,inHomeList:u,displacedBy:a,destination:n});var d=H(t,(function(e){return e.descriptor.index===l}));if(!d)return pe({insideDestination:t,inHomeList:u,displacedBy:a,destination:n});var s=Q(r,t),p=t.indexOf(d);return{displaced:se({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 ge(e,r){return Boolean(r.effected[e])}var ve=function(e,r){return r.margin[e.start]+r.borderBox[e.size]/2},be=function(e,r,t){return r[e.crossAxisStart]+t.margin[e.crossAxisStart]+t.borderBox[e.crossAxisSize]/2},me=function(e){var r=e.axis,t=e.moveRelativeTo,n=e.isMoving;return P(r.line,t.marginBox[r.end]+ve(r,n),be(r,t.marginBox,n))},he=function(e){var r=e.axis,t=e.moveRelativeTo,n=e.isMoving;return P(r.line,t.marginBox[r.start]-function(e,r){return r.margin[e.end]+r.borderBox[e.size]/2}(r,n),be(r,t.marginBox,n))},ye=function(e,r){var t=e.frame;return t?S(r,t.scroll.diff.displacement):r},Ie=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=Y(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 P(r.line,t.contentBox[r.start]+ve(r,n),be(r,t.contentBox,n))}({axis:c,moveInto:i.page,isMoving:l});var d=r.displaced,s=r.displacedBy,p=d.all[0];if(p){var f=n[p];if(ge(p,a))return he({axis:c,moveRelativeTo:f.page,isMoving:l});var g=(0,u.cY)(f.page,s.point);return he({axis:c,moveRelativeTo:g,isMoving:l})}var v=o[o.length-1];if(v.descriptor.id===t.descriptor.id)return l.borderBox.center;if(ge(v.descriptor.id,a)){var b=(0,u.cY)(v.page,R(a.displacedBy.point));return me({axis:c,moveRelativeTo:b,isMoving:l})}return me({axis:c,moveRelativeTo:v.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=X(t);i||y(!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 ge(n,t)?a?C:R(i.point):a?i.point:C}({displaced:t.displaced,afterCritical:r,combineWith:a,displacedBy:t.displacedBy});return S(o,l)}({impact:r,draggables:i,afterCritical:a}):o}(e),t=e.droppable;return t?ye(t,r):r},De=function(e,r){var t=B(r,e.scroll.initial),n=R(t);return{frame:(0,u.l)({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 xe(e,r){return e.map((function(e){return r[e]}))}var Ae=function(e){var r,t,n=e.pageBorderBoxCenter,i=e.draggable,a=(r=e.viewport,t=n,S(r.scroll.diff.displacement,t)),o=B(a,i.page.borderBox.center);return S(i.client.borderBox.center,o)},Ee=function(e){var r=e.draggable,t=e.destination,n=e.newPageBorderBoxCenter,i=e.viewport,o=e.withDroppableDisplacement,l=e.onlyOnMainAxis,c=void 0!==l&&l,u=B(n,r.page.borderBox.center),d={target:G(r.page.borderBox,u),destination:t,withDroppableDisplacement:o,viewport:i};return c?function(e){return le((0,a.A)({},e,{isVisibleThroughFrameFn:(r=e.destination.axis,function(e){var t=te(e.top,e.bottom),n=te(e.left,e.right);return function(e){return r===ae?t(e.top)&&t(e.bottom):n(e.left)&&n(e.right)}})}));var r}(d):ue(d)},we=function(e){var r=e.isMovingForward,t=e.draggable,n=e.destination,i=e.draggables,o=e.previousImpact,l=e.viewport,c=e.previousPageBorderBoxCenter,u=e.previousClientSelection,d=e.afterCritical;if(!n.isEnabled)return null;var s=Y(n.descriptor.id,i),p=Z(t,n),f=function(e){var r=e.isMovingForward,t=e.draggable,n=e.destination,i=e.insideDestination,o=e.previousImpact;if(!n.isCombineEnabled)return null;if(!J(o))return null;function l(e){var r={type:"COMBINE",combine:{draggableId:e,droppableId:n.descriptor.id}};return(0,a.A)({},o,{at:r})}var c=o.displaced.all,u=c.length?c[0]:null;if(r)return u?l(u):null;var d=Q(t,i);if(!u)return d.length?l(d[d.length-1].descriptor.id):null;var s=W(d,(function(e){return e.descriptor.id===u}));-1===s&&y(!1);var p=s-1;return p<0?null:l(d[p].descriptor.id)}({isMovingForward:r,draggable:t,destination:n,insideDestination:s,previousImpact:o})||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||y(!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(t?c:c+1)?null:o}({isMovingForward:r,isInHomeList:t,location:d.destination,insideDestination:o});return null==s?null:fe({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 ge(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:fe({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:o,viewport:l,afterCritical:d});if(!f)return null;var g=Ie({impact:f,draggable:t,droppable:n,draggables:i,afterCritical:d});if(Ee({draggable:t,destination:n,newPageBorderBoxCenter:g,viewport:l.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:Ae({pageBorderBoxCenter:g,draggable:t,viewport:l}),impact:f,scrollJumpRequest:null};var v=B(g,c),b=function(e){var r=e.impact,t=e.viewport,n=e.destination,i=e.draggables,o=e.maxScrollChange,l=De(t,S(t.scroll.current,o)),c=n.frame?k(n,S(n.frame.scroll.current,o)):n,u=r.displaced,d=se({afterDragging:xe(u.all,i),destination:n,displacedBy:r.displacedBy,viewport:l.frame,last:u,forceShouldAnimate:!1}),s=se({afterDragging:xe(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;t1?d.sort((function(e,r){return Ce(e)[l.start]-Ce(r)[l.start]}))[0]:u.sort((function(e,r){var n=L(t,M(Ce(e))),i=L(t,M(Ce(r)));return n!==i?n-i:Ce(e)[l.start]-Ce(r)[l.start]}))[0]}({isMovingForward:r,pageBorderBoxCenter:t,source:i,droppables:o,viewport:l});if(!u)return null;var d=Y(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 ue({target:Be(e,i),destination:n,viewport:t.frame,withDroppableDisplacement:!0})})).sort((function(e,t){var a=O(r,ye(n,Se(e,i))),o=O(r,ye(n,Se(t,i)));return an.left&&t.topn.top))return!1;if(Ge(i)(r.center))return!0;var a=e.axis,o=i.center[a.crossAxisLine],l=r[a.crossAxisStart],c=r[a.crossAxisEnd],u=te(i[a.crossAxisStart],i[a.crossAxisEnd]),d=u(l),s=u(c);return!d&&!s||(d?lo)}));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=P(e.axis.line,r.center[t.line],e.page.borderBox.center[t.crossAxisLine]);return{id:e.descriptor.id,distance:O(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 re;var d=i[u],s=Y(d.descriptor.id,n),p=function(e,r){var t=e.frame;return t?Me(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=Ne(i.axis,r.displaceBy),u=c.value,d=t[l.start],s=t[l.end],p=H(Q(r,a),(function(e){var r=e.descriptor.id,t=e.page.borderBox,i=t[l.size]/4,a=ge(r,o),c=_e({displaced:n.displaced,id:r});return a?c?s>t[l.start]+i&&st[l.start]-u+i&&dt[l.start]+u+i&&st[l.start]+i&&dr.descriptor.index?t.descriptor.index-1:t.descriptor.index:null}({draggable:t,closest:H(Q(t,i),(function(e){var r=e.descriptor.id,t=e.page.borderBox.center[c.line],n=ge(r,l),i=_e({displaced:a,id:r});return n?i?p<=t:s=1500)return.55;var n=yr+Ir*(t/1500);return Number(("CANCEL"===r?.6*n:n).toFixed(2))}({current:i.current.client.offset,destination:m,reason:o});t({type:"DROP_ANIMATE",payload:{newHomeClientOffset:m,dropDuration:I,completed:h}})}else t(cr({completed:h}))}}else t(function(e){return{type:"DROP_PENDING",payload:e}}({reason:o}))}else e(n)}}},xr=function(){return{x:window.pageXOffset,y:window.pageYOffset}};var Ar=function(e){var r=function(e){var r=e.onWindowScroll,t=(0,s.A)((function(){r(xr())})),n=function(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(r){r.target!==window&&r.target!==window.document||e()}}}(t),i=g;function a(){return i!==g}return{start:function(){a()&&y(!1),i=v(window,[n])},stop:function(){a()||y(!1),t.cancel(),i(),i=g},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)}}},Er=function(e,r){r()},wr=function(e,r){return{draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:r}},Cr=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))},Sr=function(e,r){var t=function(e,r){var t,n=(t=[],{add:function(e){var r=setTimeout((function(){return function(e){var r=W(t,(function(r){return r.timerId===e}));-1===r&&y(!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,o=function(t){i||y(!1),i=null,Er(0,(function(){return Cr(e().onDragEnd,t,r,w.onDragEnd)}))};return{beforeCapture:function(r,t){i&&y(!1),Er(0,(function(){var n=e().onBeforeCapture;n&&n({draggableId:r,mode:t})}))},beforeStart:function(r,t){i&&y(!1),Er(0,(function(){var n=e().onBeforeDragStart;n&&n(wr(r,t))}))},start:function(t,a){i&&y(!1);var o=wr(t,a);i={mode:a,lastCritical:t,lastLocation:o.source,lastCombine:null},n.add((function(){Er(0,(function(){return Cr(e().onDragStart,o,r,w.onDragStart)}))}))},update:function(t,o){var l=J(o),c=X(o);i||y(!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,a.A)({},wr(t,i.mode),{combine:c,destination:l});n.add((function(){Er(0,(function(){return Cr(e().onDragUpdate,g,r,w.onDragUpdate)}))}))}},flush:function(){i||y(!1),n.flush()},drop:o,abort:function(){if(i){var e=(0,a.A)({},wr(i.lastCritical,i.mode),{combine:null,destination:null,reason:"CANCEL"});o(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)}}}},Br=function(e){return function(r){return function(t){if("DROP_ANIMATION_FINISHED"===t.type){var n=e.getState();"DROP_ANIMATING"!==n.phase&&y(!1),e.dispatch(cr({completed:n.completed}))}else r(t)}}},Nr=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=v(window,[a])}))}}}},Rr=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(ur({reason:n.reason})))}}}},Pr=o.Zz,Or=function(e){var r,t=e.dimensionMarshal,n=e.focusMarshal,i=e.styleMarshal,a=e.getResponders,l=e.announce,c=e.autoScroller;return(0,o.y$)(Je,Pr((0,o.Tw)((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(cr({completed:u.completed})),"IDLE"!==t().phase&&y(!1),n(lr()),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),Dr,Br,Nr,Rr,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&&y(!1),void e.start(i)}t(n),e.scroll(r.getState())}}}}(c),Ar,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),Sr(a,l))))},Lr=function(e){var r=e.scrollHeight,t=e.scrollWidth,n=e.height,i=e.width,a=B({x:t,y:r},{x:i,y:n});return{x:Math.max(0,a.x),y:Math.max(0,a.y)}},Tr=function(){var e=document.documentElement;return e||y(!1),e},Gr=function(){var e=Tr();return Lr({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})};function Mr(e,r,t){return t.descriptor.id!==r.id&&t.descriptor.type===r.type&&"virtual"===e.droppable.getById(t.descriptor.droppableId).descriptor.mode}var _r,Fr,kr=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(C)})).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||y(!1);var i=t.critical.draggable;"ADDITION"===r.type&&Mr(e,i,r.value)&&n.add(r.value),"REMOVAL"===r.type&&Mr(e,i,r.value)&&n.remove(r.value)};return{updateDroppableIsEnabled:function(n,i){e.droppable.exists(n)||y(!1),t&&r.updateDroppableIsEnabled({id:n,isEnabled:i})},updateDroppableIsCombineEnabled:function(n,i){t&&(e.droppable.exists(n)||y(!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)||y(!1),r.updateDroppableScroll({id:n,newScroll:i}))},startPublishing:function(r){t&&y(!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,d=e.scrollOptions,s=e.registry,p=(r=xr(),t=Gr(),n=r.y,i=r.x,a=Tr(),o=i+a.clientWidth,l=n+a.clientHeight,{frame:(0,u.l)({top:n,left:i,right:o,bottom:l}),scroll:{initial:r,current:r,max:t,diff:{value:C,displacement:C}}}),f=p.scroll.current,g=c.droppable,v=s.droppable.getAllByType(g.type).map((function(e){return e.callbacks.getDimensionAndWatchScroll(f,d)})),b=s.draggable.getAllByType(c.draggable.type).map((function(e){return e.getDimension(f)}));return{dimensions:{draggables:K(b),droppables:V(v)},critical:c,viewport:p}}({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}}}},Ur=function(e,r){return"IDLE"===e.phase||"DROP_ANIMATING"===e.phase&&e.completed.result.draggableId!==r&&"DROP"===e.completed.result.reason},Wr=function(e){window.scrollBy(e.x,e.y)},Hr=(0,d.A)((function(e){return q(e).filter((function(e){return!!e.isEnabled&&!!e.frame}))})),jr=function(e){return Math.pow(e,2)},Vr=function(e){var r=e.startOfRange,t=e.endOfRange,n=e.current,i=t-r;return 0===i?0:(n-r)/i},Kr=360,qr=1200,zr=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=Vr({startOfRange:r.maxScrollValueAt,endOfRange:r.startScrollingFrom,current:e}),n=28*jr(1-t);return Math.ceil(n)}(r,t);return 0===a?0:i?Math.max(function(e,r){var t=r,n=qr,i=Date.now()-t;if(i>=qr)return e;if(ir.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?N(d,C)?null:d:null},Qr=T((function(e){return 0===e?0:e>0?1:-1})),Zr=(_r=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=S(r,n),a={x:_r(i.x,t.x),y:_r(i.y,t.y)};return N(a,C)?null:a}),$r=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=Qr(n),o=Zr({max:i,current:t,change:a});return!o||0!==a.x&&0===o.x||0!==a.y&&0===o.y},et=function(e,r){return $r({current:e.scroll.current,max:e.scroll.max,change:r})},rt=function(e,r){var t=e.frame;return!!t&&$r({current:t.scroll.current,max:t.scroll.max,change:r})},tt=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=Xr({dragStartTime:e.dragStartTime,container:r.frame,subject:t,center:n,shouldUseTimeDampening:i});return a&&et(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=H(Hr(r),(function(r){return r.frame||y(!1),Ge(r.frame.pageMarginBox)(e)}));return t}(r,n);return a}({center:o,destination:Oe(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=Xr({dragStartTime:i,container:o.pageMarginBox,subject:t,center:n,shouldUseTimeDampening:a});return l&&rt(r,l)?l:null}({dragStartTime:t,droppable:u,subject:l,center:o,shouldUseTimeDampening:n});d&&a(u.descriptor.id,d)}},nt=function(e){var r=e.move,t=e.scrollDroppable,n=e.scrollWindow;return function(e){var i=e.scrollJumpRequest;if(i){var a=Oe(e.impact);a||y(!1);var o=function(e,r){if(!rt(e,r))return r;var n=function(e,r){var t=e.frame;return t&&rt(e,r)?Zr({current:t.scroll.current,max:t.scroll.max,change:r}):null}(e,r);if(!n)return t(e.descriptor.id,r),null;var i=B(r,n);return t(e.descriptor.id,i),B(r,i)}(e.dimensions.droppables[a],i);if(o){var l=e.viewport,c=function(e,r,t){if(!e)return t;if(!et(r,t))return t;var i=function(e,r){if(!et(e,r))return null;var t=e.scroll.max,n=e.scroll.current;return Zr({current:n,max:t,change:r})}(r,t);if(!i)return n(t),null;var a=B(t,i);return n(a),B(t,a)}(e.isWindowScrollAllowed,l,o);c&&function(e,t){var n=S(e.current.client.selection,t);r({client:n})}(e,c)}}}},it=function(e){var r=e.scrollDroppable,t=e.scrollWindow,n=e.move,i=function(e){var r=e.scrollWindow,t=e.scrollDroppable,n=(0,s.A)(r),i=(0,s.A)(t),a=null,o=function(e){a||y(!1);var r=a,t=r.shouldUseTimeDampening,o=r.dragStartTime;tt({state:e,scrollWindow:n,scrollDroppable:i,dragStartTime:o,shouldUseTimeDampening:t})};return{start:function(e){a&&y(!1);var r=Date.now(),t=!1,n=function(){t=!0};tt({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:n,scrollDroppable:n}),a={dragStartTime:r,shouldUseTimeDampening:t},t&&o(e)},stop:function(){a&&(n.cancel(),i.cancel(),a=null)},scroll:o}}({scrollWindow:t,scrollDroppable:r}),a=nt({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}},at="data-rbd",ot={base:Fr=at+"-drag-handle",draggableId:Fr+"-draggable-id",contextId:Fr+"-context-id"},lt=function(){var e=at+"-draggable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),ct=function(){var e=at+"-droppable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),ut={contextId:at+"-scroll-container-context-id"},dt=function(e,r){return e.map((function(e){var t=e.styles[r];return t?e.selector+" { "+t+" }":""})).join(" ")},st=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(ot.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: "+vr.outOfTheWay+";\n ",{selector:i(lt.contextId),styles:{dragging:n,dropAnimating:n,userCancel:n}}),a,{selector:i(ct.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:dt(o,"always"),resting:dt(o,"resting"),dragging:dt(o,"dragging"),dropAnimating:dt(o,"dropAnimating"),userCancel:dt(o,"userCancel")}},pt="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?n.useLayoutEffect:n.useEffect,ft=function(){var e=document.querySelector("head");return e||y(!1),e},gt=function(e){var r=document.createElement("style");return e&&r.setAttribute("nonce",e),r.type="text/css",r},vt=function(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:window};function bt(e){return e instanceof vt(e).HTMLElement}function mt(){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||y(!1),r},findById:n,exists:function(e){return Boolean(n(e))},getAllByType:function(r){return U(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||y(!1),r},findById:i,exists:function(e){return Boolean(i(e))},getAllByType:function(r){return U(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 ht=n.createContext(null),yt=function(){var e=document.body;return e||y(!1),e},It={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},Dt=function(e){return"rbd-announcement-"+e},xt=0,At={separator:"::"};function Et(e,r){return void 0===r&&(r=At),(0,c.Kr)((function(){return""+e+r.separator+xt++}),[r.separator,e])}var wt=n.createContext(null);function Ct(e){var r=(0,n.useRef)(e);return(0,n.useEffect)((function(){r.current=e})),r}var St,Bt,Nt=((St={})[13]=!0,St[9]=!0,St),Rt=function(e){Nt[e.keyCode]&&e.preventDefault()},Pt=function(){var e="visibilitychange";return"undefined"==typeof document?e:H([e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],(function(e){return"on"+e in document}))||e}(),Ot={type:"IDLE"};function Lt(){}var Tt=((Bt={})[34]=!0,Bt[33]=!0,Bt[36]=!0,Bt[35]=!0,Bt);var Gt={type:"IDLE"},Mt={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function _t(e,r){if(null==r)return!1;if(Boolean(Mt[r.tagName.toLowerCase()]))return!0;var t=r.getAttribute("contenteditable");return"true"===t||""===t||r!==e&&_t(e,r.parentElement)}function Ft(e,r){var t=r.target;return!!bt(t)&&_t(e,t)}var kt=function(e){return(0,u.l)(e.getBoundingClientRect()).center},Ut=function(){var e="matches";return"undefined"==typeof document?e:H([e,"msMatchesSelector","webkitMatchesSelector"],(function(e){return e in Element.prototype}))||e}();function Wt(e,r){return null==e?null:e[Ut](r)?e:Wt(e.parentElement,r)}function Ht(e,r){return e.closest?e.closest(r):Wt(e,r)}function jt(e){e.preventDefault()}function Vt(e){var r=e.expected,t=e.phase,n=e.isLockActive;return e.shouldWarn,!!n()&&r===t}function Kt(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&&!!Ur(t.getState(),i)}var qt=[function(e){var r=(0,n.useRef)(Ot),t=(0,n.useRef)(g),i=(0,c.Kr)((function(){return{eventName:"mousedown",fn:function(r){if(!r.defaultPrevented&&0===r.button&&!(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(),s(i,a)}}}}}}),[e]),a=(0,c.Kr)((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=(0,c.hb)((function(){t.current=v(window,[a,i],{passive:!1,capture:!0})}),[a,i]),l=(0,c.hb)((function(){"IDLE"!==r.current.type&&(r.current=Ot,t.current(),o())}),[o]),u=(0,c.hb)((function(){var e=r.current;l(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[l]),d=(0,c.hb)((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(0===r){var o={x:t,y:a},l=n();if("DRAGGING"===l.type)return e.preventDefault(),void l.actions.move(o);if("PENDING"!==l.type&&y(!1),c=l.point,u=o,Math.abs(u.x-c.x)>=5||Math.abs(u.y-c.y)>=5){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 27===e.keyCode?(e.preventDefault(),void r()):void Rt(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&&y(!1),t.actions.shouldRespectForcePress()?r():e.preventDefault()}},{eventName:Pt,fn:r}]}({cancel:u,completed:l,getPhase:function(){return r.current},setPhase:function(e){r.current=e}});t.current=v(window,e,{capture:!0,passive:!1})}),[u,l]),s=(0,c.hb)((function(e,t){"IDLE"!==r.current.type&&y(!1),r.current={type:"PENDING",point:t,actions:e},d()}),[d]);pt((function(){return o(),function(){t.current()}}),[o])},function(e){var r=(0,n.useRef)(Lt),t=(0,c.Kr)((function(){return{eventName:"keydown",fn:function(t){if(!t.defaultPrevented&&32===t.keyCode){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=v(window,function(e,r){function t(){r(),e.cancel()}return[{eventName:"keydown",fn:function(n){return 27===n.keyCode?(n.preventDefault(),void t()):32===n.keyCode?(n.preventDefault(),r(),void e.drop()):40===n.keyCode?(n.preventDefault(),void e.moveDown()):38===n.keyCode?(n.preventDefault(),void e.moveUp()):39===n.keyCode?(n.preventDefault(),void e.moveRight()):37===n.keyCode?(n.preventDefault(),void e.moveLeft()):void(Tt[n.keyCode]?n.preventDefault():Rt(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:Pt,fn:t}]}(l,c),{capture:!0,passive:!1})}}}function c(){o||y(!1),o=!1,r.current(),i()}}}}),[e]),i=(0,c.hb)((function(){r.current=v(window,[t],{passive:!1,capture:!0})}),[t]);pt((function(){return i(),function(){r.current()}}),[i])},function(e){var r=(0,n.useRef)(Gt),t=(0,n.useRef)(g),i=(0,c.hb)((function(){return r.current}),[]),a=(0,c.hb)((function(e){r.current=e}),[]),o=(0,c.Kr)((function(){return{eventName:"touchstart",fn:function(r){if(!r.defaultPrevented){var n=e.findClosestDraggableId(r);if(n){var i=e.tryGetLock(n,u,{sourceEvent:r});if(i){var a=r.touches[0],o={x:a.clientX,y:a.clientY};t.current(),f(i,o)}}}}}}),[e]),l=(0,c.hb)((function(){t.current=v(window,[o],{capture:!0,passive:!1})}),[o]),u=(0,c.hb)((function(){var e=r.current;"IDLE"!==e.type&&("PENDING"===e.type&&clearTimeout(e.longPressTimerId),a(Gt),t.current(),l())}),[l,a]),d=(0,c.hb)((function(){var e=r.current;u(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[u]),s=(0,c.hb)((function(){var e={capture:!0,passive:!1},r={cancel:d,completed:u,getPhase:i},n=v(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&&y(!1);var i=e.touches[0];if(i&&i.force>=.15){var a=t.actions.shouldRespectForcePress();if("PENDING"!==t.type)return a?t.hasMoved?void e.preventDefault():void r():void e.preventDefault();a&&r()}}},{eventName:Pt,fn:r}]}(r),e),a=v(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?(27===e.keyCode&&e.preventDefault(),r()):r()}},{eventName:Pt,fn:r}]}(r),e);t.current=function(){n(),a()}}),[d,i,u]),p=(0,c.hb)((function(){var e=i();"PENDING"!==e.type&&y(!1);var r=e.actions.fluidLift(e.point);a({type:"DRAGGING",actions:r,hasMoved:!1})}),[i,a]),f=(0,c.hb)((function(e,r){"IDLE"!==i().type&&y(!1);var t=setTimeout(p,120);a({type:"PENDING",point:r,actions:e,longPressTimerId:t}),s()}),[s,i,a,p]);pt((function(){return l(),function(){t.current();var e=i();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),a(Gt))}}),[i,l,a]),pt((function(){return v(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}])}),[])}];function zt(e){var r=e.contextId,t=e.store,i=e.registry,o=e.customSensors,l=e.enableDefaultSensors,u=[].concat(l?qt:[],o||[]),d=(0,n.useState)((function(){return function(){var e=null;function r(){e||y(!1),e=null}return{isClaimed:function(){return Boolean(e)},isActive:function(r){return r===e},claim:function(r){e&&y(!1);var t={abandon:r};return e=t,t},release:r,tryAbandon:function(){e&&(e.abandon(),r())}}}()}))[0],p=(0,c.hb)((function(e,r){e.isDragging&&!r.isDragging&&d.tryAbandon()}),[d]);pt((function(){var e=t.getState();return t.subscribe((function(){var r=t.getState();p(e,r),e=r}))}),[d,t,p]),pt((function(){return d.tryAbandon}),[d.tryAbandon]);for(var f=(0,c.hb)((function(e){return Kt({lockAPI:d,registry:i,store:t,draggableId:e})}),[d,i,t]),b=(0,c.hb)((function(e,n,o){return function(e){var r=e.lockAPI,t=e.contextId,n=e.store,i=e.registry,o=e.draggableId,l=e.forceSensorStop,c=e.sourceEvent;if(!Kt({lockAPI:r,store:n,registry:i,draggableId:o}))return null;var u=i.draggable.getById(o),d=function(e,r){var t="["+lt.contextId+'="'+e+'"]',n=H(j(document.querySelectorAll(t)),(function(e){return e.getAttribute(lt.id)===r}));return n&&bt(n)?n:null}(t,u.descriptor.id);if(!d)return null;if(c&&!u.options.canDragInteractiveElements&&Ft(d,c))return null;var p=r.claim(l||g),f="PRE_DRAG";function b(){return u.options.shouldRespectForcePress}function m(){return r.isActive(p)}var h=function(e,r){Vt({expected:e,phase:f,isLockActive:m,shouldWarn:!0})&&n.dispatch(r())}.bind(null,"DRAGGING");function I(e){function t(){r.release(),f="COMPLETED"}function i(r,i){if(void 0===i&&(i={shouldBlockNextClick:!1}),e.cleanup(),i.shouldBlockNextClick){var a=v(window,[{eventName:"click",fn:jt,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(a)}t(),n.dispatch(ur({reason:r}))}return"PRE_DRAG"!==f&&(t(),"PRE_DRAG"!==f&&y(!1)),n.dispatch(Xe(e.liftActionArgs)),f="DRAGGING",(0,a.A)({isActive:function(){return Vt({expected:"DRAGGING",phase:f,isLockActive:m,shouldWarn:!1})},shouldRespectForcePress:b,drop:function(e){return i("DROP",e)},cancel:function(e){return i("CANCEL",e)}},e.actions)}return{isActive:function(){return Vt({expected:"PRE_DRAG",phase:f,isLockActive:m,shouldWarn:!1})},shouldRespectForcePress:b,fluidLift:function(e){var r=(0,s.A)((function(e){h((function(){return tr({client:e})}))})),t=I({liftActionArgs:{id:o,clientSelection:e,movementMode:"FLUID"},cleanup:function(){return r.cancel()},actions:{move:r}});return(0,a.A)({},t,{move:r})},snapLift:function(){var e={moveUp:function(){return h(nr)},moveRight:function(){return h(ar)},moveDown:function(){return h(ir)},moveLeft:function(){return h(or)}};return I({liftActionArgs:{id:o,clientSelection:kt(d),movementMode:"SNAP"},cleanup:g,actions:e})},abort:function(){Vt({expected:"PRE_DRAG",phase:f,isLockActive:m,shouldWarn:!0})&&r.release()}}}({lockAPI:d,registry:i,contextId:r,store:t,draggableId:e,forceSensorStop:n,sourceEvent:o&&o.sourceEvent?o.sourceEvent:null})}),[r,d,i,t]),m=(0,c.hb)((function(e){return function(e,r){var t=function(e,r){var t,n=r.target;if(!((t=n)instanceof vt(t).Element))return null;var i=function(e){return"["+ot.contextId+'="'+e+'"]'}(e),a=Ht(n,i);return a&&bt(a)?a:null}(e,r);return t?t.getAttribute(ot.draggableId):null}(r,e)}),[r]),h=(0,c.hb)((function(e){var r=i.draggable.findById(e);return r?r.options:null}),[i.draggable]),I=(0,c.hb)((function(){d.isClaimed()&&(d.tryAbandon(),"IDLE"!==t.getState().phase&&t.dispatch(lr()))}),[d,t]),D=(0,c.hb)(d.isClaimed,[d]),x=(0,c.Kr)((function(){return{canGetLock:f,tryGetLock:b,findClosestDraggableId:m,findOptionsForDraggable:h,tryReleaseLock:I,isLockClaimed:D}}),[f,b,m,h,I,D]),A=0;A