Files
HX_KI_com-Com1/grafana/plugins/grafana-lokiexplore-app/755.js
2026-03-06 14:37:04 +00:00

2 lines
84 KiB
JavaScript

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