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