"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[11414],{11414:function(e,r,t){t.d(r,{Z5:function(){return Di},_l:function(){return io},bK:function(){return uo}});var n=t(59301),i=t(18773);function o(e,r){e.prototype=Object.create(r.prototype),e.prototype.constructor=e,(0,i.Z)(e,r)}var a=t(54476),l=t(59781),u=n.createContext(null);var c=function(e){e()},d=function(){return c};var s={notify:function(){},get:function(){return[]}};function p(e,r){var t,n=s;function i(){a.onStateChange&&a.onStateChange()}function o(){t||(t=r?r.addNestedSub(i):e.subscribe(i),n=function(){var e=d(),r=null,t=null;return{clear:function(){r=null,t=null},notify:function(){e((function(){for(var e=r;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],t=r;t;)e.push(t),t=t.next;return e},subscribe:function(e){var n=!0,i=t={callback:e,next:null,prev:t};return i.prev?i.prev.next=i:r=i,function(){n&&null!==r&&(n=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:r=i.next)}}}}())}var a={addNestedSub:function(e){return o(),n.subscribe(e)},notifyNestedSubs:function(){n.notify()},handleChangeWrapper:i,isSubscribed:function(){return Boolean(t)},trySubscribe:o,tryUnsubscribe:function(){t&&(t(),t=void 0,n.clear(),n=s)},getListeners:function(){return n}};return a}var f="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?n.useLayoutEffect:n.useEffect;var g=function(e){var r=e.store,t=e.context,i=e.children,o=(0,n.useMemo)((function(){var e=p(r);return{store:r,subscription:e}}),[r]),a=(0,n.useMemo)((function(){return r.getState()}),[r]);f((function(){var e=o.subscription;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),a!==r.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[o,a]);var l=t||u;return n.createElement(l.Provider,{value:o},i)},v=t(85377),m=t(94266),b=t.n(m),h=t(53410),y=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],I=["reactReduxForwardedRef"],x=[],D=[null,null];function E(e,r){var t=e[1];return[r.payload,t+1]}function w(e,r,t){f((function(){return e.apply(void 0,r)}),t)}function C(e,r,t,n,i,o,a){e.current=n,r.current=i,t.current=!1,o.current&&(o.current=null,a())}function A(e,r,t,n,i,o,a,l,u,c){if(e){var d=!1,s=null,p=function(){if(!d){var e,t,p=r.getState();try{e=n(p,i.current)}catch(e){t=e,s=e}t||(s=null),e===o.current?a.current||u():(o.current=e,l.current=e,a.current=!0,c({type:"STORE_UPDATED",payload:{error:t}}))}};t.onStateChange=p,t.trySubscribe(),p();return function(){if(d=!0,t.tryUnsubscribe(),t.onStateChange=null,s)throw s}}}var S=function(){return[null,0]};function P(e,r){void 0===r&&(r={});var t=r,i=t.getDisplayName,o=void 0===i?function(e){return"ConnectAdvanced("+e+")"}:i,l=t.methodName,c=void 0===l?"connectAdvanced":l,d=t.renderCountProp,s=void 0===d?void 0:d,f=t.shouldHandleStateChanges,g=void 0===f||f,m=t.storeKey,P=void 0===m?"store":m,N=(t.withRef,t.forwardRef),R=void 0!==N&&N,B=t.context,O=void 0===B?u:B,T=(0,v.Z)(t,y),L=O;return function(r){var t=r.displayName||r.name||"Component",i=o(t),l=(0,a.Z)({},T,{getDisplayName:o,methodName:c,renderCountProp:s,shouldHandleStateChanges:g,storeKey:P,displayName:i,wrappedComponentName:t,WrappedComponent:r}),u=T.pure;var d=u?n.useMemo:function(e){return e()};function f(t){var i=(0,n.useMemo)((function(){var e=t.reactReduxForwardedRef,r=(0,v.Z)(t,I);return[t.context,e,r]}),[t]),o=i[0],u=i[1],c=i[2],s=(0,n.useMemo)((function(){return o&&o.Consumer&&(0,h.isContextConsumer)(n.createElement(o.Consumer,null))?o:L}),[o,L]),f=(0,n.useContext)(s),m=Boolean(t.store)&&Boolean(t.store.getState)&&Boolean(t.store.dispatch);Boolean(f)&&Boolean(f.store);var b=m?t.store:f.store,y=(0,n.useMemo)((function(){return function(r){return e(r.dispatch,l)}(b)}),[b]),P=(0,n.useMemo)((function(){if(!g)return D;var e=p(b,m?null:f.subscription),r=e.notifyNestedSubs.bind(e);return[e,r]}),[b,m,f]),N=P[0],R=P[1],B=(0,n.useMemo)((function(){return m?f:(0,a.Z)({},f,{subscription:N})}),[m,f,N]),O=(0,n.useReducer)(E,x,S),T=O[0][0],G=O[1];if(T&&T.error)throw T.error;var M=(0,n.useRef)(),_=(0,n.useRef)(c),F=(0,n.useRef)(),k=(0,n.useRef)(!1),W=d((function(){return F.current&&c===_.current?F.current:y(b.getState(),c)}),[b,T,c]);w(C,[_,M,k,c,W,F,R]),w(A,[g,b,N,y,_,M,k,F,R,G],[b,N,y]);var U=(0,n.useMemo)((function(){return n.createElement(r,(0,a.Z)({},W,{ref:u}))}),[u,r,W]);return(0,n.useMemo)((function(){return g?n.createElement(s.Provider,{value:B},U):U}),[s,U,B])}var m=u?n.memo(f):f;if(m.WrappedComponent=r,m.displayName=f.displayName=i,R){var y=n.forwardRef((function(e,r){return n.createElement(m,(0,a.Z)({},e,{reactReduxForwardedRef:r}))}));return y.displayName=i,y.WrappedComponent=r,b()(y,r)}return b()(m,r)}}function N(e,r){return e===r?0!==e||0!==r||1/e==1/r:e!=e&&r!=r}function R(e,r){if(N(e,r))return!0;if("object"!=typeof e||null===e||"object"!=typeof r||null===r)return!1;var t=Object.keys(e),n=Object.keys(r);if(t.length!==n.length)return!1;for(var i=0;i=0;n--){var i=r[n](e);if(i)return i}return function(r,n){throw new Error("Invalid value of type "+typeof e+" for "+t+" argument when connecting component "+n.wrappedComponentName+".")}}function j(e,r){return e===r}function q(e){var r=void 0===e?{}:e,t=r.connectHOC,n=void 0===t?P:t,i=r.mapStateToPropsFactories,o=void 0===i?G:i,l=r.mapDispatchToPropsFactories,u=void 0===l?L:l,c=r.mergePropsFactories,d=void 0===c?_:c,s=r.selectorFactory,p=void 0===s?U:s;return function(e,r,t,i){void 0===i&&(i={});var l=i,c=l.pure,s=void 0===c||c,f=l.areStatesEqual,g=void 0===f?j:f,m=l.areOwnPropsEqual,b=void 0===m?R:m,h=l.areStatePropsEqual,y=void 0===h?R:h,I=l.areMergedPropsEqual,x=void 0===I?R:I,D=(0,v.Z)(l,H),E=Z(e,o,"mapStateToProps"),w=Z(r,u,"mapDispatchToProps"),C=Z(t,d,"mergeProps");return n(p,(0,a.Z)({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:E,initMapDispatchToProps:w,initMergeProps:C,pure:s,areStatesEqual:g,areOwnPropsEqual:b,areStatePropsEqual:y,areMergedPropsEqual:x},D))}}var V=q();var z,Y=t(4676);function J(e,r){var t=(0,n.useState)((function(){return{inputs:r,result:e()}}))[0],i=(0,n.useRef)(!0),o=(0,n.useRef)(t),a=i.current||Boolean(r&&o.current.inputs&&function(e,r){if(e.length!==r.length)return!1;for(var t=0;t");return r.callbacks},r.setCallbacks=function(e){r.callbacks=e},r}o(r,e);var t=r.prototype;return t.componentDidMount=function(){this.unbind=ve(window,[{eventName:"error",fn:this.onWindowError}])},t.componentWillUnmount=function(){this.unbind()},t.componentDidCatch=function(e){if(!(e instanceof be))throw e;this.setState({})},t.render=function(){return this.props.children(this.setCallbacks)},r}(n.Component),Ie=function(e){return e+1},xe=function(e,r){var t=e.droppableId===r.droppableId,n=Ie(e.index),i=Ie(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 "},De=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 "},Ee=function(e){return"\n The item has returned to its starting position\n of "+Ie(e.index)+"\n"},we="\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",Ce=function(e){return"\n You have lifted an item in position "+Ie(e.source.index)+"\n"},Ae=function(e){var r=e.destination;if(r)return xe(e.source,r);var t=e.combine;return t?De(e.draggableId,e.source,t):"You are over an area that cannot be dropped on"},Se=function(e){if("CANCEL"===e.reason)return"\n Movement cancelled.\n "+Ee(e.source)+"\n ";var r=e.destination,t=e.combine;return r?"\n You have dropped the item.\n "+xe(e.source,r)+"\n ":t?"\n You have dropped the item.\n "+De(e.draggableId,e.source,t)+"\n ":"\n The item has been dropped while not over a drop area.\n "+Ee(e.source)+"\n "},Pe={x:0,y:0},Ne=function(e,r){return{x:e.x+r.x,y:e.y+r.y}},Re=function(e,r){return{x:e.x-r.x,y:e.y-r.y}},Be=function(e,r){return e.x===r.x&&e.y===r.y},Oe=function(e){return{x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}},Te=function(e,r,t){var n;return void 0===t&&(t=0),(n={})[e]=r,n["x"===e?"y":"x"]=t,n},Le=function(e,r){return Math.sqrt(Math.pow(r.x-e.x,2)+Math.pow(r.y-e.y,2))},Ge=function(e,r){return Math.min.apply(Math,r.map((function(r){return Le(e,r)})))},Me=function(e){return function(r){return{x:e(r.x),y:e(r.y)}}},_e=function(e,r){return{top:e.top+r.y,left:e.left+r.x,bottom:e.bottom+r.y,right:e.right+r.x}},Fe=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}]},ke=function(e,r){return r&&r.shouldClipSubject?function(e,r){var t=Q({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):Q(e)},We=function(e){var r=e.page,t=e.withPlaceholder,n=e.axis,i=e.frame,o=function(e,r){return r?_e(e,r.scroll.diff.displacement):e}(r.marginBox,i),l=function(e,r,t){var n;return t&&t.increasedBy?(0,a.Z)({},e,((n={})[r.end]=e[r.end]+t.increasedBy[r.line],n)):e}(o,n,t);return{page:r,withPlaceholder:t,active:ke(l,i)}},Ue=function(e,r){e.frame||he(!1);var t=e.frame,n=Re(r,t.scroll.initial),i=Oe(n),o=(0,a.Z)({},t,{scroll:{initial:t.scroll.initial,current:r,diff:{value:n,displacement:i},max:t.scroll.max}}),l=We({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:o});return(0,a.Z)({},e,{frame:o,subject:l})};function He(e){return Object.values?Object.values(e):Object.keys(e).map((function(r){return e[r]}))}function Ze(e,r){if(e.findIndex)return e.findIndex(r);for(var t=0;te.bottom,l=n.lefte.right;return!(!a||!l)||(a&&o||l&&i)}},ar=function(e){var r=ir(e.top,e.bottom),t=ir(e.left,e.right);return function(e){return r(e.top)&&r(e.bottom)&&t(e.left)&&t(e.right)}},lr={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},ur={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},cr=function(e){var r=e.target,t=e.destination,n=e.viewport,i=e.withDroppableDisplacement,o=e.isVisibleThroughFrameFn,a=i?function(e,r){var t=r.frame?r.frame.scroll.diff.displacement:Pe;return _e(e,t)}(r,t):r;return function(e,r,t){return!!r.subject.active&&t(r.subject.active)(e)}(a,t,o)&&function(e,r,t){return t(r)(e)}(a,n,o)},dr=function(e){return cr((0,a.Z)({},e,{isVisibleThroughFrameFn:or}))},sr=function(e){return cr((0,a.Z)({},e,{isVisibleThroughFrameFn:ar}))};function pr(e){var r=e.afterDragging,t=e.destination,n=e.displacedBy,i=e.viewport,o=e.forceShouldAnimate,a=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 Q(ee(t,n))}(r,n),u=r.descriptor.id;if(e.all.push(u),!dr({target:l,destination:t,viewport:i,withDroppableDisplacement:!0}))return e.invisible[r.descriptor.id]=!0,e;var c=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 o=i[e];return!o||o.shouldAnimate}(u,a,o),d={draggableId:u,shouldAnimate:c};return e.visible[u]=d,e}),{all:[],visible:{},invisible:{}})}function fr(e){var r=e.insideDestination,t=e.inHomeList,n=e.displacedBy,i=e.destination,o=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:tr,displacedBy:n,at:{type:"REORDER",destination:{droppableId:i.descriptor.id,index:o}}}}function gr(e){var r=e.draggable,t=e.insideDestination,n=e.destination,i=e.viewport,o=e.displacedBy,a=e.last,l=e.index,u=e.forceShouldAnimate,c=er(r,n);if(null==l)return fr({insideDestination:t,inHomeList:c,displacedBy:o,destination:n});var d=je(t,(function(e){return e.descriptor.index===l}));if(!d)return fr({insideDestination:t,inHomeList:c,displacedBy:o,destination:n});var s=Qe(r,t),p=t.indexOf(d);return{displaced:pr({afterDragging:s.slice(p),destination:n,displacedBy:o,last:a,viewport:i.frame,forceShouldAnimate:u}),displacedBy:o,at:{type:"REORDER",destination:{droppableId:n.descriptor.id,index:l}}}}function vr(e,r){return Boolean(r.effected[e])}var mr=function(e){var r=e.isMovingForward,t=e.isInHomeList,n=e.draggable,i=e.draggables,o=e.destination,a=e.insideDestination,l=e.previousImpact,u=e.viewport,c=e.afterCritical,d=l.at;if(d||he(!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 o=i.index,a=r?o+1:o-1,l=n[0].descriptor.index,u=n[n.length-1].descriptor.index;return a(t?u:u+1)?null:a}({isMovingForward:r,isInHomeList:t,location:d.destination,insideDestination:a});return null==s?null:gr({draggable:n,insideDestination:a,destination:o,viewport:u,last:l.displaced,displacedBy:l.displacedBy,index:s})}var p=function(e){var r=e.isMovingForward,t=e.destination,n=e.draggables,i=e.combine,o=e.afterCritical;if(!t.isCombineEnabled)return null;var a=i.draggableId,l=n[a].descriptor.index;return vr(a,o)?r?l:l-1:r?l+1:l}({isMovingForward:r,destination:o,displaced:l.displaced,draggables:i,combine:d.combine,afterCritical:c});return null==p?null:gr({draggable:n,insideDestination:a,destination:o,viewport:u,last:l.displaced,displacedBy:l.displacedBy,index:p})},br=function(e){var r=e.afterCritical,t=e.impact,n=e.draggables,i=$e(t);i||he(!1);var o=i.draggableId,a=n[o].page.borderBox.center,l=function(e){var r=e.displaced,t=e.afterCritical,n=e.combineWith,i=e.displacedBy,o=Boolean(r.visible[n]||r.invisible[n]);return vr(n,t)?o?Pe:Oe(i.point):o?i.point:Pe}({displaced:t.displaced,afterCritical:r,combineWith:o,displacedBy:t.displacedBy});return Ne(a,l)},hr=function(e,r){return r.margin[e.start]+r.borderBox[e.size]/2},yr=function(e,r,t){return r[e.crossAxisStart]+t.margin[e.crossAxisStart]+t.borderBox[e.crossAxisSize]/2},Ir=function(e){var r=e.axis,t=e.moveRelativeTo,n=e.isMoving;return Te(r.line,t.marginBox[r.end]+hr(r,n),yr(r,t.marginBox,n))},xr=function(e){var r=e.axis,t=e.moveRelativeTo,n=e.isMoving;return Te(r.line,t.marginBox[r.start]-function(e,r){return r.margin[e.end]+r.borderBox[e.size]/2}(r,n),yr(r,t.marginBox,n))},Dr=function(e){var r=e.impact,t=e.draggable,n=e.draggables,i=e.droppable,o=e.afterCritical,a=Xe(i.descriptor.id,n),l=t.page,u=i.axis;if(!a.length)return function(e){var r=e.axis,t=e.moveInto,n=e.isMoving;return Te(r.line,t.contentBox[r.start]+hr(r,n),yr(r,t.contentBox,n))}({axis:u,moveInto:i.page,isMoving:l});var c=r.displaced,d=r.displacedBy,s=c.all[0];if(s){var p=n[s];if(vr(s,o))return xr({axis:u,moveRelativeTo:p.page,isMoving:l});var f=oe(p.page,d.point);return xr({axis:u,moveRelativeTo:f,isMoving:l})}var g=a[a.length-1];if(g.descriptor.id===t.descriptor.id)return l.borderBox.center;if(vr(g.descriptor.id,o)){var v=oe(g.page,Oe(o.displacedBy.point));return Ir({axis:u,moveRelativeTo:v,isMoving:l})}return Ir({axis:u,moveRelativeTo:g.page,isMoving:l})},Er=function(e,r){var t=e.frame;return t?Ne(r,t.scroll.diff.displacement):r},wr=function(e){var r=function(e){var r=e.impact,t=e.draggable,n=e.droppable,i=e.draggables,o=e.afterCritical,a=t.page.borderBox.center,l=r.at;return n&&l?"REORDER"===l.type?Dr({impact:r,draggable:t,draggables:i,droppable:n,afterCritical:o}):br({impact:r,draggables:i,afterCritical:o}):a}(e),t=e.droppable;return t?Er(t,r):r},Cr=function(e,r){var t=Re(r,e.scroll.initial),n=Oe(t);return{frame:Q({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 Ar(e,r){return e.map((function(e){return r[e]}))}var Sr=function(e){var r=e.pageBorderBoxCenter,t=e.draggable,n=function(e,r){return Ne(e.scroll.diff.displacement,r)}(e.viewport,r),i=Re(n,t.page.borderBox.center);return Ne(t.client.borderBox.center,i)},Pr=function(e){var r=e.draggable,t=e.destination,n=e.newPageBorderBoxCenter,i=e.viewport,o=e.withDroppableDisplacement,l=e.onlyOnMainAxis,u=void 0!==l&&l,c=Re(n,r.page.borderBox.center),d={target:_e(r.page.borderBox,c),destination:t,withDroppableDisplacement:o,viewport:i};return u?function(e){return cr((0,a.Z)({},e,{isVisibleThroughFrameFn:(r=e.destination.axis,function(e){var t=ir(e.top,e.bottom),n=ir(e.left,e.right);return function(e){return r===lr?t(e.top)&&t(e.bottom):n(e.left)&&n(e.right)}})}));var r}(d):sr(d)},Nr=function(e){var r=e.isMovingForward,t=e.draggable,n=e.destination,i=e.draggables,o=e.previousImpact,l=e.viewport,u=e.previousPageBorderBoxCenter,c=e.previousClientSelection,d=e.afterCritical;if(!n.isEnabled)return null;var s=Xe(n.descriptor.id,i),p=er(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(!Ke(o))return null;function l(e){var r={type:"COMBINE",combine:{draggableId:e,droppableId:n.descriptor.id}};return(0,a.Z)({},o,{at:r})}var u=o.displaced.all,c=u.length?u[0]:null;if(r)return c?l(c):null;var d=Qe(t,i);if(!c)return d.length?l(d[d.length-1].descriptor.id):null;var s=Ze(d,(function(e){return e.descriptor.id===c}));-1===s&&he(!1);var p=s-1;return p<0?null:l(d[p].descriptor.id)}({isMovingForward:r,draggable:t,destination:n,insideDestination:s,previousImpact:o})||mr({isMovingForward:r,isInHomeList:p,draggable:t,draggables:i,destination:n,insideDestination:s,previousImpact:o,viewport:l,afterCritical:d});if(!f)return null;var g=wr({impact:f,draggable:t,droppable:n,draggables:i,afterCritical:d});if(Pr({draggable:t,destination:n,newPageBorderBoxCenter:g,viewport:l.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:Sr({pageBorderBoxCenter:g,draggable:t,viewport:l}),impact:f,scrollJumpRequest:null};var v=Re(g,u),m=function(e){var r=e.impact,t=e.viewport,n=e.destination,i=e.draggables,o=e.maxScrollChange,l=Cr(t,Ne(t.scroll.current,o)),u=n.frame?Ue(n,Ne(n.frame.scroll.current,o)):n,c=r.displaced,d=pr({afterDragging:Ar(c.all,i),destination:n,displacedBy:r.displacedBy,viewport:l.frame,last:c,forceShouldAnimate:!1}),s=pr({afterDragging:Ar(c.all,i),destination:u,displacedBy:r.displacedBy,viewport:t.frame,last:c,forceShouldAnimate:!1}),p={},f={},g=[c,d,s];return c.all.forEach((function(e){var r=function(e,r){for(var t=0;t1?d.sort((function(e,r){return Rr(e)[l.start]-Rr(r)[l.start]}))[0]:c.sort((function(e,r){var n=Ge(t,Fe(Rr(e))),i=Ge(t,Fe(Rr(r)));return n!==i?n-i:Rr(e)[l.start]-Rr(r)[l.start]}))[0]}({isMovingForward:r,pageBorderBoxCenter:t,source:i,droppables:a,viewport:l});if(!c)return null;var d=Xe(c.descriptor.id,o),s=function(e){var r=e.pageBorderBoxCenter,t=e.viewport,n=e.destination,i=e.insideDestination,o=e.afterCritical,a=i.filter((function(e){return sr({target:Or(e,o),destination:n,viewport:t.frame,withDroppableDisplacement:!0})})).sort((function(e,t){var i=Le(r,Er(n,Br(e,o))),a=Le(r,Er(n,Br(t,o)));return in.left&&t.topn.top))return!1;if(Wr(i)(r.center))return!0;var o=e.axis,a=i.center[o.crossAxisLine],l=r[o.crossAxisStart],u=r[o.crossAxisEnd],c=ir(i[o.crossAxisStart],i[o.crossAxisEnd]),d=c(l),s=c(u);return!d&&!s||(d?la)}));return i.length?1===i.length?i[0].descriptor.id:function(e){var r=e.pageBorderBox,t=e.draggable,n=e.candidates,i=t.page.borderBox.center,o=n.map((function(e){var t=e.axis,n=Te(e.axis.line,r.center[t.line],e.page.borderBox.center[t.crossAxisLine]);return{id:e.descriptor.id,distance:Le(i,n)}})).sort((function(e,r){return r.distance-e.distance}));return o[0]?o[0].id:null}({pageBorderBox:r,draggable:t,candidates:i}):null}var Hr=function(e,r){return Q(_e(e,r))};function Zr(e){var r=e.displaced,t=e.id;return Boolean(r.visible[t]||r.invisible[t])}var jr=function(e){var r=e.pageOffset,t=e.draggable,n=e.draggables,i=e.droppables,o=e.previousImpact,a=e.viewport,l=e.afterCritical,u=Hr(t.page.borderBox,r),c=Ur({pageBorderBox:u,draggable:t,droppables:i});if(!c)return nr;var d=i[c],s=Xe(d.descriptor.id,n),p=function(e,r){var t=e.frame;return t?Hr(r,t.scroll.diff.value):r}(d,u);return function(e){var r=e.draggable,t=e.pageBorderBoxWithDroppableScroll,n=e.previousImpact,i=e.destination,o=e.insideDestination,a=e.afterCritical;if(!i.isCombineEnabled)return null;var l=i.axis,u=Tr(i.axis,r.displaceBy),c=u.value,d=t[l.start],s=t[l.end],p=je(Qe(r,o),(function(e){var r=e.descriptor.id,t=e.page.borderBox,i=t[l.size]/4,o=vr(r,a),u=Zr({displaced:n.displaced,id:r});return o?u?s>t[l.start]+i&&st[l.start]-c+i&&dt[l.start]+c+i&&st[l.start]+i&&dr.descriptor.index?t.descriptor.index-1:t.descriptor.index:null}({draggable:t,closest:je(Qe(t,i),(function(e){var r=e.descriptor.id,t=e.page.borderBox.center[u.line],n=vr(r,l),i=Zr({displaced:o,id:r});return n?i?p<=t:s=1500)return Pt;var o=St+Nt*(i/1500);return Number(("CANCEL"===n?.6*o:o).toFixed(2))}({current:i.current.client.offset,destination:b,reason:o});t(function(e){return{type:"DROP_ANIMATE",payload:e}}({newHomeClientOffset:b,dropDuration:y,completed:h}))}else t(mt({completed:h}))}}else t(function(e){return{type:"DROP_PENDING",payload:e}}({reason:o}))}else e(n)}}},Bt=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function Ot(e){var r=e.onWindowScroll;var t=pe((function(){r(Bt())})),n=function(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(r){r.target!==window&&r.target!==window.document||e()}}}(t),i=ge;function o(){return i!==ge}return{start:function(){o()&&he(!1),i=ve(window,[n])},stop:function(){o()||he(!1),t.cancel(),i(),i=ge},isActive:o}}var Tt=function(e){var r=Ot({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)}}},Lt=function(){var e=[];return{add:function(r){var t=setTimeout((function(){return function(r){var t=Ze(e,(function(e){return e.timerId===r}));-1===t&&he(!1),e.splice(t,1)[0].callback()}(t)})),n={timerId:t,callback:r};e.push(n)},flush:function(){if(e.length){var r=[].concat(e);e.length=0,r.forEach((function(e){clearTimeout(e.timerId),e.callback()}))}}}},Gt=function(e,r){$r(),r(),Qr()},Mt=function(e,r){return{draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:r}},_t=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))},Ft=function(e,r){var t=function(e,r){var t=Lt(),n=null,i=function(t){n||he(!1),n=null,Gt(0,(function(){return _t(e().onDragEnd,t,r,Se)}))};return{beforeCapture:function(r,t){n&&he(!1),Gt(0,(function(){var n=e().onBeforeCapture;n&&n({draggableId:r,mode:t})}))},beforeStart:function(r,t){n&&he(!1),Gt(0,(function(){var n=e().onBeforeDragStart;n&&n(Mt(r,t))}))},start:function(i,o){n&&he(!1);var a=Mt(i,o);n={mode:o,lastCritical:i,lastLocation:a.source,lastCombine:null},t.add((function(){Gt(0,(function(){return _t(e().onDragStart,a,r,Ce)}))}))},update:function(i,o){var l=Ke(o),u=$e(o);n||he(!1);var c=!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}(i,n.lastCritical);c&&(n.lastCritical=i);var d,s,p=(s=l,!(null==(d=n.lastLocation)&&null==s||null!=d&&null!=s&&d.droppableId===s.droppableId&&d.index===s.index));p&&(n.lastLocation=l);var f=!function(e,r){return null==e&&null==r||null!=e&&null!=r&&e.draggableId===r.draggableId&&e.droppableId===r.droppableId}(n.lastCombine,u);if(f&&(n.lastCombine=u),c||p||f){var g=(0,a.Z)({},Mt(i,n.mode),{combine:u,destination:l});t.add((function(){Gt(0,(function(){return _t(e().onDragUpdate,g,r,Ae)}))}))}},flush:function(){n||he(!1),t.flush()},drop:i,abort:function(){if(n){var e=(0,a.Z)({},Mt(n.lastCritical,n.mode),{combine:null,destination:null,reason:"CANCEL"});i(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 o=n.payload.completed.result;return t.flush(),r(n),void t.drop(o)}if(r(n),"FLUSH"!==n.type){var a=e.getState();"DRAGGING"===a.phase&&t.update(a.critical,a.impact)}else t.abort()}else t.beforeCapture(n.payload.draggableId,n.payload.movementMode)}}}},kt=function(e){return function(r){return function(t){if("DROP_ANIMATION_FINISHED"===t.type){var n=e.getState();"DROP_ANIMATING"!==n.phase&&he(!1),e.dispatch(mt({completed:n.completed}))}else r(t)}}},Wt=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 o={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=ve(window,[o])}))}}}},Ut=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(bt({reason:n.reason})))}}}},Ht=l.qC,Zt=function(e){var r,t=e.dimensionMarshal,n=e.focusMarshal,i=e.styleMarshal,o=e.getResponders,a=e.announce,u=e.autoScroller;return(0,l.MT)(ot,Ht((0,l.md)((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 o=i.payload,a=o.id,l=o.clientSelection,u=o.movementMode,c=t();"DROP_ANIMATING"===c.phase&&n(mt({completed:c.completed})),"IDLE"!==t().phase&&he(!1),n({type:"FLUSH",payload:null}),n({type:"BEFORE_INITIAL_CAPTURE",payload:{draggableId:a,movementMode:u}});var d={draggableId:a,scrollOptions:{shouldPublishImmediately:"SNAP"===u}},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:u,viewport:g}})}else r(i)}}}}(t),Rt,kt,Wt,Ut,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&&he(!1),void e.start(i)}t(n),e.scroll(r.getState())}}}}(u),Tt,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),Ft(o,a))))};var jt=function(e){var r=e.scrollHeight,t=e.scrollWidth,n=e.height,i=e.width,o=Re({x:t,y:r},{x:i,y:n});return{x:Math.max(0,o.x),y:Math.max(0,o.y)}},qt=function(){var e=document.documentElement;return e||he(!1),e},Vt=function(){var e=qt();return jt({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})},zt=function(e){var r=e.critical,t=e.scrollOptions,n=e.registry;$r();var i,o,a,l,u,c,d,s=(i=Bt(),o=Vt(),a=i.y,l=i.x,u=qt(),c=u.clientWidth,d=u.clientHeight,{frame:Q({top:a,left:l,right:l+c,bottom:a+d}),scroll:{initial:i,current:i,max:o,diff:{value:Pe,displacement:Pe}}}),p=s.scroll.current,f=r.droppable,g=n.droppable.getAllByType(f.type).map((function(e){return e.callbacks.getDimensionAndWatchScroll(p,t)})),v=n.draggable.getAllByType(r.draggable.type).map((function(e){return e.getDimension(p)})),m={draggables:ze(v),droppables:Ve(g)};return Qr(),{dimensions:m,critical:r,viewport:s}};function Yt(e,r,t){return t.descriptor.id!==r.id&&(t.descriptor.type===r.type&&"virtual"===e.droppable.getById(t.descriptor.droppableId).descriptor.mode)}var Jt,Xt,Kt=function(e,r){var t=null,n=function(e){var r=e.registry,t=e.callbacks,n={additions:{},removals:{},modified:{}},i=null,o=function(){i||(t.collectionStarting(),i=requestAnimationFrame((function(){i=null,$r();var e=n,o=e.additions,a=e.removals,l=e.modified,u=Object.keys(o).map((function(e){return r.draggable.getById(e).getDimension(Pe)})).sort((function(e,r){return e.descriptor.index-r.descriptor.index})),c=Object.keys(l).map((function(e){return{droppableId:e,scroll:r.droppable.getById(e).callbacks.getScrollWhileDragging()}})),d={additions:u,removals:Object.keys(a),modified:c};n={additions:{},removals:{},modified:{}},Qr(),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],o()},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],o()},stop:function(){i&&(cancelAnimationFrame(i),i=null,n={additions:{},removals:{},modified:{}})}}}({callbacks:{publish:r.publishWhileDragging,collectionStarting:r.collectionStarting},registry:e}),i=function(r){t||he(!1);var i=t.critical.draggable;"ADDITION"===r.type&&Yt(e,i,r.value)&&n.add(r.value),"REMOVAL"===r.type&&Yt(e,i,r.value)&&n.remove(r.value)},o={updateDroppableIsEnabled:function(n,i){e.droppable.exists(n)||he(!1),t&&r.updateDroppableIsEnabled({id:n,isEnabled:i})},updateDroppableIsCombineEnabled:function(n,i){t&&(e.droppable.exists(n)||he(!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)||he(!1),r.updateDroppableScroll({id:n,newScroll:i}))},startPublishing:function(r){t&&he(!1);var n=e.draggable.getById(r.draggableId),o=e.droppable.getById(n.descriptor.droppableId),a={draggable:n.descriptor,droppable:o.descriptor},l=e.subscribe(i);return t={critical:a,unsubscribe:l},zt({critical:a,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}}};return o},$t=function(e,r){return"IDLE"===e.phase||"DROP_ANIMATING"===e.phase&&(e.completed.result.draggableId!==r&&"DROP"===e.completed.result.reason)},Qt=function(e){window.scrollBy(e.x,e.y)},en=se((function(e){return Ye(e).filter((function(e){return!!e.isEnabled&&!!e.frame}))})),rn=function(e){var r=e.center,t=e.destination,n=e.droppables;if(t){var i=n[t];return i.frame?i:null}var o=function(e,r){var t=je(en(r),(function(r){return r.frame||he(!1),Wr(r.frame.pageMarginBox)(e)}));return t}(r,n);return o},tn=.25,nn=.05,on=28,an=function(e){return Math.pow(e,2)},ln={stopDampeningAt:1200,accelerateAt:360},un=function(e){var r=e.startOfRange,t=e.endOfRange,n=e.current,i=t-r;return 0===i?0:(n-r)/i},cn=ln.accelerateAt,dn=ln.stopDampeningAt,sn=function(e){var r=e.distanceToEdge,t=e.thresholds,n=e.dragStartTime,i=e.shouldUseTimeDampening,o=function(e,r){if(e>r.startScrollingFrom)return 0;if(e<=r.maxScrollValueAt)return on;if(e===r.startScrollingFrom)return 1;var t=un({startOfRange:r.maxScrollValueAt,endOfRange:r.startScrollingFrom,current:e}),n=on*an(1-t);return Math.ceil(n)}(r,t);return 0===o?0:i?Math.max(function(e,r){var t=r,n=dn,i=Date.now()-t;if(i>=dn)return e;if(ir.height,o=t.width>r.width;return o||i?o&&i?null:{x:o?0:n.x,y:i?0:n.y}:n}({container:t,subject:n,proposedScroll:c});return d?Be(d,Pe)?null:d:null},vn=Me((function(e){return 0===e?0:e>0?1:-1})),mn=(Jt=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=Ne(r,n),o={x:Jt(i.x,t.x),y:Jt(i.y,t.y)};return Be(o,Pe)?null:o}),bn=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)},o=vn(n),a=mn({max:i,current:t,change:o});return!a||(0!==o.x&&0===a.x||0!==o.y&&0===a.y)},hn=function(e,r){return bn({current:e.scroll.current,max:e.scroll.max,change:r})},yn=function(e,r){var t=e.frame;return!!t&&bn({current:t.scroll.current,max:t.scroll.max,change:r})},In=function(e){var r=e.state,t=e.dragStartTime,n=e.shouldUseTimeDampening,i=e.scrollWindow,o=e.scrollDroppable,a=r.current.page.borderBoxCenter,l=r.dimensions.draggables[r.critical.draggable.id].page.marginBox;if(r.isWindowScrollAllowed){var u=function(e){var r=e.viewport,t=e.subject,n=e.center,i=e.dragStartTime,o=e.shouldUseTimeDampening,a=gn({dragStartTime:i,container:r.frame,subject:t,center:n,shouldUseTimeDampening:o});return a&&hn(r,a)?a:null}({dragStartTime:t,viewport:r.viewport,subject:l,center:a,shouldUseTimeDampening:n});if(u)return void i(u)}var c=rn({center:a,destination:_r(r.impact),droppables:r.dimensions.droppables});if(c){var d=function(e){var r=e.droppable,t=e.subject,n=e.center,i=e.dragStartTime,o=e.shouldUseTimeDampening,a=r.frame;if(!a)return null;var l=gn({dragStartTime:i,container:a.pageMarginBox,subject:t,center:n,shouldUseTimeDampening:o});return l&&yn(r,l)?l:null}({dragStartTime:t,droppable:c,subject:l,center:a,shouldUseTimeDampening:n});d&&o(c.descriptor.id,d)}},xn=function(e){var r=e.move,t=e.scrollDroppable,n=e.scrollWindow,i=function(e,r){if(!yn(e,r))return r;var n=function(e,r){var t=e.frame;return t&&yn(e,r)?mn({current:t.scroll.current,max:t.scroll.max,change:r}):null}(e,r);if(!n)return t(e.descriptor.id,r),null;var i=Re(r,n);return t(e.descriptor.id,i),Re(r,i)},o=function(e,r,t){if(!e)return t;if(!hn(r,t))return t;var i=function(e,r){if(!hn(e,r))return null;var t=e.scroll.max,n=e.scroll.current;return mn({current:n,max:t,change:r})}(r,t);if(!i)return n(t),null;var o=Re(t,i);return n(o),Re(t,o)};return function(e){var t=e.scrollJumpRequest;if(t){var n=_r(e.impact);n||he(!1);var a=i(e.dimensions.droppables[n],t);if(a){var l=e.viewport,u=o(e.isWindowScrollAllowed,l,a);u&&function(e,t){var n=Ne(e.current.client.selection,t);r({client:n})}(e,u)}}}},Dn=function(e){var r=e.scrollDroppable,t=e.scrollWindow,n=e.move,i=function(e){var r=e.scrollWindow,t=e.scrollDroppable,n=pe(r),i=pe(t),o=null,a=function(e){o||he(!1);var r=o,t=r.shouldUseTimeDampening,a=r.dragStartTime;In({state:e,scrollWindow:n,scrollDroppable:i,dragStartTime:a,shouldUseTimeDampening:t})};return{start:function(e){$r(),o&&he(!1);var r=Date.now(),t=!1,n=function(){t=!0};In({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:n,scrollDroppable:n}),o={dragStartTime:r,shouldUseTimeDampening:t},Qr(),t&&a(e)},stop:function(){o&&(n.cancel(),i.cancel(),o=null)},scroll:a}}({scrollWindow:t,scrollDroppable:r}),o=xn({move:n,scrollWindow:t,scrollDroppable:r});return{scroll:function(e){"DRAGGING"===e.phase&&("FLUID"!==e.movementMode?e.scrollJumpRequest&&o(e):i.scroll(e))},start:i.start,stop:i.stop}},En="data-rbd",wn={base:Xt=En+"-drag-handle",draggableId:Xt+"-draggable-id",contextId:Xt+"-context-id"},Cn=function(){var e=En+"-draggable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),An=function(){var e=En+"-droppable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),Sn={contextId:En+"-scroll-container-context-id"},Pn=function(e,r){return e.map((function(e){var t=e.styles[r];return t?e.selector+" { "+t+" }":""})).join(" ")},Nn="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?n.useLayoutEffect:n.useEffect,Rn=function(){var e=document.querySelector("head");return e||he(!1),e},Bn=function(e){var r=document.createElement("style");return e&&r.setAttribute("nonce",e),r.type="text/css",r};function On(e,r){var t=X((function(){return function(e){var r,t,n,i=(r=e,function(e){return"["+e+'="'+r+'"]'}),o=(t="\n cursor: -webkit-grab;\n cursor: grab;\n ",{selector:i(wn.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}}),a=[(n="\n transition: "+Et.outOfTheWay+";\n ",{selector:i(Cn.contextId),styles:{dragging:n,dropAnimating:n,userCancel:n}}),o,{selector:i(An.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:Pn(a,"always"),resting:Pn(a,"resting"),dragging:Pn(a,"dragging"),dropAnimating:Pn(a,"dropAnimating"),userCancel:Pn(a,"userCancel")}}(e)}),[e]),i=(0,n.useRef)(null),o=(0,n.useRef)(null),a=K(se((function(e){var r=o.current;r||he(!1),r.textContent=e})),[]),l=K((function(e){var r=i.current;r||he(!1),r.textContent=e}),[]);Nn((function(){(i.current||o.current)&&he(!1);var n=Bn(r),u=Bn(r);return i.current=n,o.current=u,n.setAttribute(En+"-always",e),u.setAttribute(En+"-dynamic",e),Rn().appendChild(n),Rn().appendChild(u),l(t.always),a(t.resting),function(){var e=function(e){var r=e.current;r||he(!1),Rn().removeChild(r),e.current=null};e(i),e(o)}}),[r,l,a,t.always,t.resting,e]);var u=K((function(){return a(t.dragging)}),[a,t.dragging]),c=K((function(e){a("DROP"!==e?t.userCancel:t.dropAnimating)}),[a,t.dropAnimating,t.userCancel]),d=K((function(){o.current&&a(t.resting)}),[a,t.resting]);return X((function(){return{dragging:u,dropping:c,resting:d}}),[u,c,d])}var Tn=function(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:window};function Ln(e){return e instanceof Tn(e).HTMLElement}function Gn(e,r){var t="["+wn.contextId+'="'+e+'"]',n=qe(document.querySelectorAll(t));if(!n.length)return null;var i=je(n,(function(e){return e.getAttribute(wn.draggableId)===r}));return i&&Ln(i)?i:null}function Mn(){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,o=n(i);o&&r.uniqueId===o.uniqueId&&(delete e.draggables[i],t({type:"REMOVAL",value:r}))},getById:function(e){var r=n(e);return r||he(!1),r},findById:n,exists:function(e){return Boolean(n(e))},getAllByType:function(r){return He(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||he(!1),r},findById:i,exists:function(e){return Boolean(i(e))},getAllByType:function(r){return He(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 _n=n.createContext(null),Fn=function(){var e=document.body;return e||he(!1),e},kn={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"};var Wn=0,Un={separator:"::"};function Hn(e,r){return void 0===r&&(r=Un),X((function(){return""+e+r.separator+Wn++}),[r.separator,e])}var Zn=n.createContext(null);function jn(e){0}function qn(e,r){jn()}function Vn(){qn()}function zn(e){var r=(0,n.useRef)(e);return(0,n.useEffect)((function(){r.current=e})),r}var Yn,Jn=((Yn={})[13]=!0,Yn[9]=!0,Yn),Xn=function(e){Jn[e.keyCode]&&e.preventDefault()},Kn=function(){var e="visibilitychange";return"undefined"==typeof document?e:je([e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],(function(e){return"on"+e in document}))||e}();var $n,Qn={type:"IDLE"};function ei(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,o=e.clientY;if(0===r){var a={x:t,y:o},l=n();if("DRAGGING"===l.type)return e.preventDefault(),void l.actions.move(a);"PENDING"!==l.type&&he(!1);var u=l.point;if(c=u,d=a,Math.abs(d.x-c.x)>=5||Math.abs(d.y-c.y)>=5){var c,d;e.preventDefault();var s=l.actions.fluidLift(a);i({type:"DRAGGING",actions:s})}}}},{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 Xn(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&&he(!1),t.actions.shouldRespectForcePress()?r():e.preventDefault()}},{eventName:Kn,fn:r}]}function ri(){}var ti=(($n={})[34]=!0,$n[33]=!0,$n[36]=!0,$n[35]=!0,$n);function ni(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(ti[n.keyCode]?n.preventDefault():Xn(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:Kn,fn:t}]}var ii={type:"IDLE"};var oi={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function ai(e,r){if(null==r)return!1;if(Boolean(oi[r.tagName.toLowerCase()]))return!0;var t=r.getAttribute("contenteditable");return"true"===t||""===t||r!==e&&ai(e,r.parentElement)}function li(e,r){var t=r.target;return!!Ln(t)&&ai(e,t)}var ui=function(e){return Q(e.getBoundingClientRect()).center};var ci=function(){var e="matches";return"undefined"==typeof document?e:je([e,"msMatchesSelector","webkitMatchesSelector"],(function(e){return e in Element.prototype}))||e}();function di(e,r){return null==e?null:e[ci](r)?e:di(e.parentElement,r)}function si(e,r){return e.closest?e.closest(r):di(e,r)}function pi(e,r){var t,n=r.target;if(!((t=n)instanceof Tn(t).Element))return null;var i=function(e){return"["+wn.contextId+'="'+e+'"]'}(e),o=si(n,i);return o&&Ln(o)?o:null}function fi(e){e.preventDefault()}function gi(e){var r=e.expected,t=e.phase,n=e.isLockActive;e.shouldWarn;return!!n()&&r===t}function vi(e){var r=e.lockAPI,t=e.store,n=e.registry,i=e.draggableId;if(r.isClaimed())return!1;var o=n.draggable.findById(i);return!!o&&(!!o.options.isEnabled&&!!$t(t.getState(),i))}function mi(e){var r=e.lockAPI,t=e.contextId,n=e.store,i=e.registry,o=e.draggableId,l=e.forceSensorStop,u=e.sourceEvent;if(!vi({lockAPI:r,store:n,registry:i,draggableId:o}))return null;var c=i.draggable.getById(o),d=function(e,r){var t="["+Cn.contextId+'="'+e+'"]',n=je(qe(document.querySelectorAll(t)),(function(e){return e.getAttribute(Cn.id)===r}));return n&&Ln(n)?n:null}(t,c.descriptor.id);if(!d)return null;if(u&&!c.options.canDragInteractiveElements&&li(d,u))return null;var s=r.claim(l||ge),p="PRE_DRAG";function f(){return c.options.shouldRespectForcePress}function g(){return r.isActive(s)}var v=function(e,r){gi({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 o=ve(window,[{eventName:"click",fn:fi,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(o)}t(),n.dispatch(bt({reason:r}))}return"PRE_DRAG"!==p&&(t(),"PRE_DRAG"!==p&&he(!1)),n.dispatch(function(e){return{type:"LIFT",payload:e}}(e.liftActionArgs)),p="DRAGGING",(0,a.Z)({isActive:function(){return gi({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 gi({expected:"PRE_DRAG",phase:p,isLockActive:g,shouldWarn:!1})},shouldRespectForcePress:f,fluidLift:function(e){var r=pe((function(e){v((function(){return st({client:e})}))})),t=m({liftActionArgs:{id:o,clientSelection:e,movementMode:"FLUID"},cleanup:function(){return r.cancel()},actions:{move:r}});return(0,a.Z)({},t,{move:r})},snapLift:function(){var e={moveUp:function(){return v(pt)},moveRight:function(){return v(gt)},moveDown:function(){return v(ft)},moveLeft:function(){return v(vt)}};return m({liftActionArgs:{id:o,clientSelection:ui(d),movementMode:"SNAP"},cleanup:ge,actions:e})},abort:function(){gi({expected:"PRE_DRAG",phase:p,isLockActive:g,shouldWarn:!0})&&r.release()}}}var bi=[function(e){var r=(0,n.useRef)(Qn),t=(0,n.useRef)(ge),i=X((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 o={x:r.clientX,y:r.clientY};t.current(),d(i,o)}}}}}}),[e]),o=X((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]),a=K((function(){t.current=ve(window,[o,i],{passive:!1,capture:!0})}),[o,i]),l=K((function(){"IDLE"!==r.current.type&&(r.current=Qn,t.current(),a())}),[a]),u=K((function(){var e=r.current;l(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[l]),c=K((function(){var e=ei({cancel:u,completed:l,getPhase:function(){return r.current},setPhase:function(e){r.current=e}});t.current=ve(window,e,{capture:!0,passive:!1})}),[u,l]),d=K((function(e,t){"IDLE"!==r.current.type&&he(!1),r.current={type:"PENDING",point:t,actions:e},c()}),[c]);Nn((function(){return a(),function(){t.current()}}),[a])},function(e){var r=(0,n.useRef)(ri),t=X((function(){return{eventName:"keydown",fn:function(t){if(!t.defaultPrevented&&32===t.keyCode){var n=e.findClosestDraggableId(t);if(n){var o=e.tryGetLock(n,u,{sourceEvent:t});if(o){t.preventDefault();var a=!0,l=o.snapLift();r.current(),r.current=ve(window,ni(l,u),{capture:!0,passive:!1})}}}function u(){a||he(!1),a=!1,r.current(),i()}}}}),[e]),i=K((function(){r.current=ve(window,[t],{passive:!1,capture:!0})}),[t]);Nn((function(){return i(),function(){r.current()}}),[i])},function(e){var r=(0,n.useRef)(ii),t=(0,n.useRef)(ge),i=K((function(){return r.current}),[]),o=K((function(e){r.current=e}),[]),a=X((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 o=r.touches[0],a={x:o.clientX,y:o.clientY};t.current(),p(i,a)}}}}}}),[e]),l=K((function(){t.current=ve(window,[a],{capture:!0,passive:!1})}),[a]),u=K((function(){var e=r.current;"IDLE"!==e.type&&("PENDING"===e.type&&clearTimeout(e.longPressTimerId),o(ii),t.current(),l())}),[l,o]),c=K((function(){var e=r.current;u(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[u]),d=K((function(){var e={capture:!0,passive:!1},r={cancel:c,completed:u,getPhase:i},n=ve(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],o={x:i.clientX,y:i.clientY};e.preventDefault(),t.actions.move(o)}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&&he(!1);var i=e.touches[0];if(i&&i.force>=.15){var o=t.actions.shouldRespectForcePress();if("PENDING"!==t.type)return o?t.hasMoved?void e.preventDefault():void r():void e.preventDefault();o&&r()}}},{eventName:Kn,fn:r}]}(r),e),o=ve(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:Kn,fn:r}]}(r),e);t.current=function(){n(),o()}}),[c,i,u]),s=K((function(){var e=i();"PENDING"!==e.type&&he(!1);var r=e.actions.fluidLift(e.point);o({type:"DRAGGING",actions:r,hasMoved:!1})}),[i,o]),p=K((function(e,r){"IDLE"!==i().type&&he(!1);var t=setTimeout(s,120);o({type:"PENDING",point:r,actions:e,longPressTimerId:t}),d()}),[d,i,o,s]);Nn((function(){return l(),function(){t.current();var e=i();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),o(ii))}}),[i,l,o]),Nn((function(){return ve(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}])}),[])}];function hi(e){var r=e.contextId,t=e.store,i=e.registry,o=e.customSensors,a=e.enableDefaultSensors,l=[].concat(a?bi:[],o||[]),u=(0,n.useState)((function(){return function(){var e=null;function r(){e||he(!1),e=null}return{isClaimed:function(){return Boolean(e)},isActive:function(r){return r===e},claim:function(r){e&&he(!1);var t={abandon:r};return e=t,t},release:r,tryAbandon:function(){e&&(e.abandon(),r())}}}()}))[0],c=K((function(e,r){e.isDragging&&!r.isDragging&&u.tryAbandon()}),[u]);Nn((function(){var e=t.getState();return t.subscribe((function(){var r=t.getState();c(e,r),e=r}))}),[u,t,c]),Nn((function(){return u.tryAbandon}),[u.tryAbandon]);var d=K((function(e){return vi({lockAPI:u,registry:i,store:t,draggableId:e})}),[u,i,t]),s=K((function(e,n,o){return mi({lockAPI:u,registry:i,contextId:r,store:t,draggableId:e,forceSensorStop:n,sourceEvent:o&&o.sourceEvent?o.sourceEvent:null})}),[r,u,i,t]),p=K((function(e){return function(e,r){var t=pi(e,r);return t?t.getAttribute(wn.draggableId):null}(r,e)}),[r]),f=K((function(e){var r=i.draggable.findById(e);return r?r.options:null}),[i.draggable]),g=K((function(){u.isClaimed()&&(u.tryAbandon(),"IDLE"!==t.getState().phase&&t.dispatch({type:"FLUSH",payload:null}))}),[u,t]),v=K(u.isClaimed,[u]),m=X((function(){return{canGetLock:d,tryGetLock:s,findClosestDraggableId:p,findOptionsForDraggable:f,tryReleaseLock:g,isLockClaimed:v}}),[d,s,p,f,g,v]);jn();for(var b=0;b