PageSourceSearch

https://www.verkkokauppa.com/assets/build/5216.74de85ec63.js

js verkkokauppa.com collected 2026-09-24 08:46:25 UTC 85,509 bytes, 2 lines download raw bytes

1"use strict";(globalThis["__LOADABLE_LOADED_CHUNKS__"]||=[]).push([[5216],{66248(e,t,r){r.d(t,{JY:()=>Pn,sx:()=>Jn,gL:()=>Io});var n=r(96540),o=r(40961),i=r(14644),a=r(71468),l="production"=="production",s="Invariant failed";var c=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}}},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=function(e,t){return{top:e.top+t.top,left:e.left+t.left,bottom:e.bottom-t.bottom,right:e.right-t.right}},u={top:0,right:0,bottom:0,left:0},g=function(e){var t=e.borderBox,r=e.margin,n=void 0===r?u:r,o=e.border,i=void 0===o?u:o,a=e.padding,l=void 0===a?u:a,s=c(d(t,n)),g=c(p(t,i)),f=c(p(g,l));return{marginBox:s,borderBox:c(t),paddingBox:g,contentBox:f,margin:n,border:i,padding:l}},f=function(e){var t=e.slice(0,-2);if("px"!==e.slice(-2))return 0;var r=Number(t);return isNaN(r)&&!0&&function(e,t){if(!e){if(l)throw new Error(s);var r="function"==typeof t?t():t,n=r?"".concat(s,": ").concat(r):s;throw new Error(n)}}(!1),r},m=function(e,t){var r=e.borderBox,n=e.border,o=e.margin,i=e.padding,a=function(e,t){return{top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}}(r,t);return g({borderBox:a,border:n,margin:o,padding:i})},b=function(e,t){return void 0===t&&(t={x:window.pageXOffset,y:window.pageYOffset}),m(e,t)},h=function(e,t){var r={top:f(t.marginTop),right:f(t.marginRight),bottom:f(t.marginBottom),left:f(t.marginLeft)},n={top:f(t.paddingTop),right:f(t.paddingRight),bottom:f(t.paddingBottom),left:f(t.paddingLeft)},o={top:f(t.borderTopWidth),right:f(t.borderRightWidth),bottom:f(t.borderBottomWidth),left:f(t.borderLeftWidth)};return g({borderBox:e,margin:r,padding:n,border:o})},v=function(e){var t=e.getBoundingClientRect(),r=window.getComputedStyle(e);return h(t,r)};const y=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 I=r(58168);function x(e,t){}x.bind(null,"warn"),x.bind(null,"error");function D(){}function E(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 A="Invariant failed";class w extends Error{}function C(e,t){if(1)throw new w(A)}w.prototype.toString=function(){return this.message};class S extends n.Component{constructor(...e){super(...e),this.callbacks=null,this.unbind=D,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=E(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}),H=(e,t,r=0)=>"x"===e?{x:t,y:r}:{x:r,y:t},$=(e,t)=>Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2),j=(e,t)=>Math.min(...t.map(t=>$(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=c({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):c(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||!0&&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 le={point:_,value:0},se={invisible:{},visible:{},all:[]},ce={displaced:se,displacedBy:le,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,l=n.left<e.left&&n.right>e.right;if(a&&l)return!0;return a&&i||l&&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"};var me=e=>t=>{const r=de(t.top,t.bottom),n=de(t.left,t.right);return t=>e===ge?r(t.top)&&r(t.bottom):n(t.left)&&n(t.right)};const be=({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)},he=e=>be({...e,isVisibleThroughFrameFn:ue});function ve({afterDragging:e,destination:t,displacedBy:r,viewport:n,forceShouldAnimate:o,last:i}){return e.reduce(function(e,a){const l=function(e,t){const r=e.page.marginBox,n={top:t.point.y,right:0,bottom:0,left:t.point.x};return c(d(r,n))}(a,r),s=a.descriptor.id;e.all.push(s);if(!(e=>be({...e,isVisibleThroughFrameFn:pe}))({target:l,destination:t,viewport:n,withDroppableDisplacement:!0}))return e.invisible[a.descriptor.id]=!0,e;const p=((e,t,r)=>{if("boolean"==typeof r)return r;if(!t)return!0;
1const{invisible:n,visible:o}=t;if(n[e])return!1;const i=o[e];return!i||i.shouldAnimate})(s,i,o),u={draggableId:s,shouldAnimate:p};return e.visible[s]=u,e},{all:[],visible:{},invisible:{}})}function ye({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:se,displacedBy:r,at:{type:"REORDER",destination:{droppableId:n.descriptor.id,index:o}}}}function Ie({draggable:e,insideDestination:t,destination:r,viewport:n,displacedBy:o,last:i,index:a,forceShouldAnimate:l}){const s=ae(e,r);if(null==a)return ye({insideDestination:t,inHomeList:s,displacedBy:o,destination:r});const c=t.find(e=>e.descriptor.index===a);if(!c)return ye({insideDestination:t,inHomeList:s,displacedBy:o,destination:r});const d=ie(e,t),p=t.indexOf(c);return{displaced:ve({afterDragging:d.slice(p),destination:r,displacedBy:o,last:i,viewport:n.frame,forceShouldAnimate:l}),displacedBy:o,at:{type:"REORDER",destination:{droppableId:r.descriptor.id,index:a}}}}function xe(e,t){return Boolean(t.effected[e])}var De=({isMovingForward:e,isInHomeList:t,draggable:r,draggables:n,destination:o,insideDestination:i,previousImpact:a,viewport:l,afterCritical:s})=>{const c=a.at;if(c||!0&&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,l=r[r.length-1].descriptor.index;return i<a||i>(t?l:l+1)?null:i})({isMovingForward:e,isInHomeList:t,location:c.destination,insideDestination:i});return null==n?null:Ie({draggable:r,insideDestination:i,destination:o,viewport:l,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 xe(i,o)?e?a:a-1:e?a+1:a})({isMovingForward:e,destination:o,displaced:a.displaced,draggables:n,combine:c.combine,afterCritical:s});return null==d?null:Ie({draggable:r,insideDestination:i,destination:o,viewport:l,last:a.displaced,displacedBy:a.displacedBy,index:d})},Ee=({afterCritical:e,impact:t,draggables:r})=>{const n=oe(t);n||!0&&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 xe(r,t)?o?_:U(n.point):o?n.point:_})({displaced:t.displaced,afterCritical:e,combineWith:o,displacedBy:t.displacedBy});return F(i,a)};const Ae=(e,t)=>
1t.margin[e.start]+t.borderBox[e.size]/2,we=(e,t,r)=>t[e.crossAxisStart]+r.margin[e.crossAxisStart]+r.borderBox[e.crossAxisSize]/2,Ce=({axis:e,moveRelativeTo:t,isMoving:r})=>H(e.line,t.marginBox[e.end]+Ae(e,r),we(e,t.marginBox,r)),Se=({axis:e,moveRelativeTo:t,isMoving:r})=>H(e.line,t.marginBox[e.start]-((e,t)=>t.margin[e.end]+t.borderBox[e.size]/2)(e,r),we(e,t.marginBox,r));var Be=({impact:e,draggable:t,draggables:r,droppable:n,afterCritical:o})=>{const i=re(n.descriptor.id,r),a=t.page,l=n.axis;if(!i.length)return(({axis:e,moveInto:t,isMoving:r})=>H(e.line,t.contentBox[e.start]+Ae(e,r),we(e,t.contentBox,r)))({axis:l,moveInto:n.page,isMoving:a});const{displaced:s,displacedBy:c}=e,d=s.all[0];if(d){const e=r[d];if(xe(d,o))return Se({axis:l,moveRelativeTo:e.page,isMoving:a});const t=m(e.page,c.point);return Se({axis:l,moveRelativeTo:t,isMoving:a})}const p=i[i.length-1];if(p.descriptor.id===t.descriptor.id)return a.borderBox.center;if(xe(p.descriptor.id,o)){const e=m(p.page,U(o.displacedBy.point));return Ce({axis:l,moveRelativeTo:e,isMoving:a})}return Ce({axis:l,moveRelativeTo:p.page,isMoving:a})},Re=(e,t)=>{const r=e.frame;return r?F(t,r.scroll.diff.displacement):t};var Ne=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?Be({impact:e,draggable:t,draggables:n,droppable:r,afterCritical:o}):Ee({impact:e,draggables:n,afterCritical:o}):i})(e),r=e.droppable;return r?Re(r,t):t},Oe=(e,t)=>{const r=k(t,e.scroll.initial),n=U(r);return{frame:c({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 Pe(e,t){return e.map(e=>t[e])}var Te=({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)},Le=({draggable:e,destination:t,newPageBorderBoxCenter:r,viewport:n,withDroppableDisplacement:o,onlyOnMainAxis:i=!1})=>{const a=k(r,e.page.borderBox.center),l={target:q(e.page.borderBox,a),destination:t,withDroppableDisplacement:o,viewport:n};return i?(e=>be({...e,isVisibleThroughFrameFn:me(e.destination.axis)}))(l):he(l)},Ge=({isMovingForward:e,draggable:t,destination:r,draggables:n,previousImpact:o,viewport:i,previousPageBorderBoxCenter:a,previousClientSelection:l,afterCritical:s})=>{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,l=a.length?a[0]:null;if(e)return l?i(l):null;const s=ie(t,n);if(!l)return s.length?i(s[s.length-1].descriptor.id):null;const c=s.findIndex(e=>e.descriptor.id===l);-1===c&&!0&&C();const d=c-1;return d<0?null:i(s[d].descriptor.id)})({isMovingForward:e,draggable:t,destination:r,insideDestination:c,previousImpact:o})||De({isMovingForward:e,isInHomeList:d,draggable:t,draggables:n,destination:r,insideDestination:c,previousImpact:o,viewport:i,afterCritical:s});if(!p)return null;const u=Ne({impact:p,draggable:t,droppable:r,draggables:n,afterCritical:s});if(Le({draggable:t,destination:r,newPageBorderBoxCenter:u,viewport:i.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})){return{clientSelection:Te({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=Oe(t,F(t.scroll.current,o)),a=r.frame?X(r,F(r.frame.scroll.current,o)):r,l=e.displaced,s=ve({afterDragging:Pe(l.all,n),destination:r,displacedBy:e.displacedBy,viewport:i.frame,last:l,forceShouldAnimate:!1}),c=ve({afterDragging:Pe(l.all,n),destination:a,displacedBy:e.displacedBy,viewport:t.frame,last:l,forceShouldAnimate:!1}),d={},p={},u=[l,s,c];return l.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:l.all,invisible:d,visible:p}}})({impact:p,viewport:i,destination:r,draggables:n,maxScrollChange:g});return{clientSelection:l,impact:f,scrollJumpRequest:g}};const Me=e=>{const t=e.subject.active;return t||!0&&C(),t};const _e=(e,t)=>
1{const r=e.page.borderBox.center;return xe(e.descriptor.id,t)?k(r,t.displacedBy.point):r},Fe=(e,t)=>{const r=e.page.borderBox;return xe(e.descriptor.id,t)?q(r,U(t.displacedBy.point)):r};var ke=K(function(e,t){const r=t[e.line];return{value:r,point:H(e.line,r)}});const We=(e,t)=>({...e,scroll:{...e.scroll,max:t}}),Ue=(e,t,r)=>{const n=e.frame;ae(t,e)&&!0&&C(),e.subject.withPlaceholder&&!0&&C();const o=ke(e.axis,t.displaceBy).point,i=((e,t,r)=>{const n=e.axis;if("virtual"===e.descriptor.mode)return H(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:H(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 l=i?F(n.scroll.max,i):n.scroll.max,s=We(n,l),c=J({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:s});return{...e,subject:c,frame:s}};var He=({isMovingForward:e,previousPageBorderBoxCenter:t,draggable:r,isOver:n,draggables:o,droppables:i,viewport:a,afterCritical:l})=>{const s=(({isMovingForward:e,pageBorderBoxCenter:t,source:r,droppables:n,viewport:o})=>{const i=r.subject.active;if(!i)return null;const a=r.axis,l=de(i[a.start],i[a.end]),s=ee(n).filter(e=>e!==r).filter(e=>e.isEnabled).filter(e=>Boolean(e.subject.active)).filter(e=>pe(o.frame)(Me(e))).filter(t=>{const r=Me(t);return e?i[a.crossAxisEnd]<r[a.crossAxisEnd]:r[a.crossAxisStart]<i[a.crossAxisStart]}).filter(e=>{const t=Me(e),r=de(t[a.start],t[a.end]);return l(t[a.start])||l(t[a.end])||r(i[a.start])||r(i[a.end])}).sort((t,r)=>{const n=Me(t)[a.crossAxisStart],o=Me(r)[a.crossAxisStart];return e?n-o:o-n}).filter((e,t,r)=>Me(e)[a.crossAxisStart]===Me(r[0])[a.crossAxisStart]);if(!s.length)return null;if(1===s.length)return s[0];const c=s.filter(e=>de(Me(e)[a.start],Me(e)[a.end])(t[a.line]));return 1===c.length?c[0]:c.length>1?c.sort((e,t)=>Me(e)[a.start]-Me(t)[a.start])[0]:s.sort((e,r)=>{const n=j(t,z(Me(e))),o=j(t,z(Me(r)));return n!==o?n-o:Me(e)[a.start]-Me(r)[a.start]})[0]})({isMovingForward:e,pageBorderBoxCenter:t,source:n,droppables:i,viewport:a});if(!s)return null;const c=re(s.descriptor.id,o),d=(({pageBorderBoxCenter:e,viewport:t,destination:r,insideDestination:n,afterCritical:o})=>{const i=n.filter(e=>he({target:Fe(e,o),destination:r,viewport:t.frame,withDroppableDisplacement:!0})).sort((t,n)=>{const i=$(e,Re(r,_e(t,o))),a=$(e,Re(r,_e(n,o)));return i<a?-1:a<i?1:t.descriptor.index-n.descriptor.index});return i[0]||null})({pageBorderBoxCenter:t,viewport:a,destination:s,insideDestination:c,afterCritical:l}),p=(({previousPageBorderBoxCenter:e,moveRelativeTo:t,insideDestination:r,draggable:n,draggables:o,destination:i,viewport:a,afterCritical:l})=>{if(!t){if(r.length)return null;const e={displaced:se,displacedBy:le,at:{type:"REORDER",destination:{droppableId:i.descriptor.id,index:0}}},t=Ne({impact:e,draggable:n,droppable:i,draggables:o,afterCritical:l}),s=ae(n,i)?i:Ue(i,n,o);return Le({draggable:n,destination:s,newPageBorderBoxCenter:t,viewport:a.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?e:null}const s=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||s?e:e+1})(),d=ke(i.axis,n.displaceBy);return Ie({draggable:n,insideDestination:r,destination:i,viewport:a,displacedBy:d,last:se,index:c})})({previousPageBorderBoxCenter:t,destination:s,draggable:r,draggables:o,moveRelativeTo:d,insideDestination:c,viewport:a,afterCritical:l});if(!p)return null;const u=Ne({impact:p,draggable:r,droppable:s,draggables:o,afterCritical:l});return{clientSelection:Te({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 je=({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,l="vertical"===a&&("MOVE_UP"===t||"MOVE_DOWN"===t)||"horizontal"===a&&("MOVE_LEFT"===t||"MOVE_RIGHT"===t);if(l&&!n)return null;const s="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 l?Ge({isMovingForward:s,previousPageBorderBoxCenter:d,draggable:c,destination:i,draggables:p,viewport:e.viewport,previousClientSelection:e.current.client.selection,previousImpact:e.impact,afterCritical:e.afterCritical}):He({isMovingForward:s,previousPageBorderBoxCenter:d,draggable:c,isOver:i,draggables:p,droppables:u,viewport:e.viewport,afterCritical:e.afterCritical})};function Ve(e){return"DRAGGING"===e.phase||"COLLECTING"===e.phase}function qe(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 ze({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(!function(e,t){return e.left<t.right&&e.right>t.left&&e.top<t.bottom&&e.bottom>t.top}(e,r))return!1;if(qe(r)(e.center))return!0;const n=t.axis,o=r.center[n.crossAxisLine],i=e[n.crossAxisStart],a=e[n.crossAxisEnd],l=de(r[n.crossAxisStart],r[n.crossAxisEnd]),s=l(i),c=l(a);return!s&&!c||(s?i<o:a>o)});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=H(t.axis.line,e.center[r.line],t.page.borderBox.center[r.crossAxisLine]);return{id:t.descriptor.id,distance:$(n,o)}}).sort((e,t)=>t.distance-e.distance);return o[0]?o[0].id:null}({pageBorderBox:e,draggable:t,candidates:n}):null}const Ye=(e,t)=>c(q(e,t));function Je({displaced:e,id:t}){return Boolean(e.visible[t]||e.invisible[t])}const Xe=4;var Ke=({pageOffset:e,draggable:t,draggables:r,droppables:n,previousImpact:o,viewport:i,afterCritical:a})=>{const l=Ye(t.page.borderBox,e),s=ze({pageBorderBox:l,draggable:t,droppables:n});if(!s)return ce;const c=n[s],d=re(c.descriptor.id,r),p=((e,t)=>{const r=e.frame;return r?Ye(t,r.scroll.diff.value):t})(c,l);return(({draggable:e,pageBorderBoxWithDroppableScroll:t,previousImpact:r,destination:n,insideDestination:o,afterCritical:i})=>{if(!n.isCombineEnabled)return null;const a=n.axis,l=ke(n.axis,e.displaceBy),s=l.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]/Xe,l=xe(t,i),p=Je({displaced:r.displaced,id:t});return l?p?d>n[a.start]+o&&d<n[a.end]-o:c>n[a.start]-s+o&&c<n[a.end]-s-o:p?d>n[a.start]+s+o&&d<n[a.end]+s-o:c>n[a.start]+o&&c<n[a.end]-o});return p?{displacedBy:l,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 l=r.axis,s=ke(r.axis,t.displaceBy),c=s.value,d=e[l.start],p=e[l.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[l.line],n=xe(t,a),i=Je({displaced:o,id:t});return n?i?p<=r:d<r-c:i?p<=r+c:d<r})||null,inHomeList:ae(t,r)});return Ie({draggable:t,insideDestination:n,destination:r,viewport:i,last:o,displacedBy:s,index:u})})({pageBorderBoxWithDroppableScroll:p,draggable:t,destination:c,insideDestination:d,last:o.displaced,viewport:i,afterCritical:a})},Ze=(e,t)=>({...e,[t.descriptor.id]:t});const Qe=({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||!0&&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||!0&&C();const o=We(r,n),i=J({page:e.subject.page,axis:e.axis,frame:o,withPlaceholder:null});return{...e,subject:i,frame:o}})(i);return Ze(r,a)};var et=({state:e,clientSelection:t,dimensions:r,viewport:n,impact:o,scrollJumpRequest:i})=>{const a=n||e.viewport,l=r||e.dimensions,s=t||e.current.client.selection,c=k(s,e.initial.client.selection),d={offset:c,selection:s,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:l,viewport:a,current:u};const g=l.draggables[e.critical.draggable.id],f=o||Ke({pageOffset:p.offset,draggable:g,draggables:l.draggables,droppables:l.droppables,previousImpact:e.impact,viewport:a,afterCritical:e.afterCritical}),m=(({draggable:e,draggables:t,droppables:r,previousImpact:n,impact:o})=>{const i=Qe({previousImpact:n,impact:o,droppables:r}),a=$e(o);if(!a)return i;const l=r[a];if(ae(e,l))return i;if(l.subject.withPlaceholder)return i;const s=Ue(l,e,t);return Ze(i,s)})({draggable:g,impact:f,previousImpact:e.impact,draggables:l.draggables,droppables:l.droppables});return{...e,current:u,dimensions:{draggables:l.draggables,droppables:m},impact:f,viewport:a,scrollJumpRequest:i||null,forceShouldAnimate:!i&&null}};var tt=({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),l=ve({afterDragging:a,destination:n,displacedBy:e.displacedBy,viewport:t.frame,forceShouldAnimate:o,last:i});return{...e,displaced:l}},rt=({impact:e,draggable:t,droppable:r,draggables:n,viewport:o,afterCritical:i})=>{const a=Ne({impact:e,draggable:t,draggables:n,droppable:r,afterCritical:i});return Te({pageBorderBoxCenter:a,draggable:t,viewport:o})},nt=({state:e,dimensions:t,viewport:r})=>{"SNAP"!==e.movementMode&&!0&&C();const n=e.impact,o=r||e.viewport,i=t||e.dimensions,{draggables:a,droppables:l}=i,s=a[e.critical.draggable.id],c=$e(n);c||!0&&C();const d=l[c],p=tt({impact:n,viewport:o,destination:d,draggables:a}),u=rt({impact:p,draggable:s,droppable:d,draggables:a,viewport:o,afterCritical:e.afterCritical});return et({impact:p,clientSelection:u,state:e,dimensions:i,viewport:o})},ot=e=>({index:e.index,droppableId:e.droppableId}),it=({draggable:e,home:t,draggables:r,viewport:n})=>{const o=ke(t.axis,e.displaceBy),i=re(t.descriptor.id,r),a=i.indexOf(e);-1===a&&!0&&C();const l=i.slice(a+1),s=l.reduce((e,t)=>(e[t.descriptor.id]=!0,e),{}),c={inVirtualList:"virtual"===t.descriptor.mode,displacedBy:o,effected:s};return{impact:{displaced:ve({afterDragging:l,destination:t,displacedBy:o,last:null,viewport:n.frame,forceShouldAnimate:!1}),displacedBy:o,at:{type:"REORDER",destination:ot(e.descriptor)}},afterCritical:c}};var at=({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||!0&&C(),t})(t[o]),a=i.scroll.diff.value,l=(({draggable:e,offset:t,initialWindowScroll:r})=>{const n=m(e.client,t),o=b(n,r);return{...e,placeholder:{...e.placeholder,client:n},client:n,page:o}})({draggable:e,offset:F(n,a),initialWindowScroll:r.scroll.initial});return l})};const lt=e=>"SNAP"===e.movementMode,st=(e,t,r)=>{const n=((e,t)=>({draggables:e.draggables,droppables:Ze(e.droppables,t)}))(e.dimensions,t);return!lt(e)||r?et({state:e,dimensions:n}):nt({state:e,dimensions:n})};function ct(e){return e.isDragging&&"SNAP"===e.movementMode?{...e,scrollJumpRequest:null}:e}const dt={phase:"IDLE",completed:null,shouldFlush:!1};var pt=(e=dt,t)=>{if("FLUSH"===t.type)return{...dt,shouldFlush:!0};if("INITIAL_PUBLISH"===t.type){"IDLE"!==e.phase&&!0&&C();const{critical:r,clientSelection:n,viewport:o,dimensions:i,movementMode:a}=t.payload,l=i.draggables[r.draggable.id],s=i.droppables[r.droppable.id],c={selection:n,borderBoxCenter:l.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}=it({draggable:l,home:s,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&&!0&&C();return{...e,phase:"COLLECTING"}}if("PUBLISH_WHILE_DRAGGING"===t.type)return"COLLECTING"!==e.phase&&"DROP_PENDING"!==e.phase&&!0&&C(),(({state:e,published:t})=>{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(at({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},l=$e(e.impact),s=l?a.droppables[l]:null,c=a.draggables[e.critical.draggable.id],d=a.droppables[e.critical.droppable.id],{impact:p,afterCritical:u}=it({draggable:c,home:d,draggables:i,viewport:e.viewport}),g=s&&s.isCombineEnabled?e.impact:p,f=Ke({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}),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;Ve(e)||!0&&C();const{client:r}=t.payload;return W(r,e.current.client.selection)?e:et({state:e,clientSelection:r,impact:lt(e)?e.impact:null})}if("UPDATE_DROPPABLE_SCROLL"===t.type){if("DROP_PENDING"===e.phase)return ct(e);if("COLLECTING"===e.phase)return ct(e);Ve(e)||!0&&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;Ve(e)||!0&&C();const{id:r,isEnabled:n}=t.payload,o=e.dimensions.droppables[r];o||!0&&C(),o.isEnabled===n&&!0&&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;Ve(e)||!0&&C();const{id:r,isCombineEnabled:n}=t.payload,o=e.dimensions.droppables[r];o||!0&&C(),o.isCombineEnabled===n&&!0&&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;Ve(e)||!0&&C(),e.isWindowScrollAllowed||!0&&C();const r=t.payload.newScroll;if(W(e.viewport.scroll.current,r))return ct(e);const n=Oe(e.viewport,r);return lt(e)?nt({state:e,viewport:n}):et({state:e,viewport:n})}if("UPDATE_VIEWPORT_MAX_SCROLL"===t.type){if(!Ve(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&&!0&&C();const r=je({state:e,type:t.type});return r?et({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&&!0&&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&&!0&&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 ut(e,t){return e instanceof Object&&"type"in e&&e.type===t}const 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=e=>({type:"DROP_COMPLETE",payload:e}),At=e=>({type:"DROP",payload:e}),wt=()=>({type:"DROP_ANIMATION_FINISHED",payload:null});const Ct="cubic-bezier(.2,1,.1,1)",St={drop:0,combining:.7},Bt={drop:.75},Rt={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},Nt=`${Rt.outOfTheWay}s ${"cubic-bezier(0.2, 0, 0, 1)"}`,Ot={fluid:`opacity ${Nt}`,snap:`transform ${Nt}, opacity ${Nt}`,drop:e=>{const t=`${e}s ${Ct}`;return`transform ${t}, opacity ${t}`},outOfTheWay:`transform ${Nt}`,placeholder:`height ${Nt}, width ${Nt}, margin ${Nt}`},Pt=e=>W(e,_)?void 0:`translate(${e.x}px, ${e.y}px)`,Tt=Pt,Lt=(e,t)=>
1{const r=Pt(e);if(r)return t?`${r} scale(${Bt.drop})`:r},{minDropTime:Gt,maxDropTime:Mt}=Rt,_t=Mt-Gt,Ft=1500,kt=.6;const Wt=({getState:e,dispatch:t})=>r=>n=>{if(!ut(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&&!0&&C(),"DRAGGING"!==o.phase&&"DROP_PENDING"!==o.phase&&!0&&C();const a=o.critical,l=o.dimensions,s=l.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:tt({draggables:e,impact:i,destination:n,viewport:o,forceShouldAnimate:!0}),didDropInsideDroppable:!1};return"REORDER"===r.at.type?{impact:r,didDropInsideDroppable:!0}:{impact:{...r,displaced:se},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:s.descriptor.id,type:s.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,l=$e(e),s=l?a[l]:null,c=a[t.descriptor.droppableId],d=rt({impact:e,draggable:t,draggables:i,afterCritical:o,droppable:s||c,viewport:n});return k(d,t.client.borderBox.center)})({impact:c,draggable:s,dimensions:l,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(Et({completed:b}));const h=(({current:e,destination:t,reason:r})=>{const n=$(e,t);if(n<=0)return Gt;if(n>=Ft)return Mt;const o=Gt+_t*(n/Ft);return Number(("CANCEL"===r?o*kt: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 Ut=()=>({x:window.pageXOffset,y:window.pageYOffset});function Ht({onWindowScroll:e}){const t=y(function(){e(Ut())}),r=function(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:t=>{t.target!==window&&t.target!==window.document||e()}}}(t);let n=D;function o(){return n!==D}return{start:function(){o()&&!0&&C(),n=E(window,[r])},stop:function(){o()||!0&&C(),t.cancel(),n(),n=D},isActive:o}}const $t=e=>{const t=Ht({onWindowScroll:t=>{e.dispatch((e=>({type:"MOVE_BY_WINDOW_SCROLL",payload:e}))({newScroll:t}))}});return e=>r=>{!t.isActive()&&ut(r,"INITIAL_PUBLISH")&&t.start(),t.isActive()&&(e=>ut(e,"DROP_COMPLETE")||ut(e,"DROP_ANIMATE")||ut(e,"FLUSH"))(r)&&t.stop(),e(r)}};var jt=()=>{const e=[];return{add:t=>{const r=setTimeout(()=>(t=>{const r=e.findIndex(e=>e.timerId===t);-1===r&&!0&&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 Vt=(e,t)=>{t()},qt=(e,t)=>({draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t});function zt(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 Yt=(e,t)=>{const r=((e,t)=>{const r=jt();let n=null;const o=r=>{n||!0&&C(),n=null,Vt(0,()=>zt(e().onDragEnd,r,t,P.onDragEnd))};return{beforeCapture:(t,r)=>{n&&!0&&C(),Vt(0,()=>{const n=e().onBeforeCapture;n&&n({draggableId:t,mode:r})})},beforeStart:(t,r)=>{n&&!0&&C(),Vt(0,()=>{const n=e().onBeforeDragStart;n&&n(qt(t,r))})},start:(o,i)=>{n&&!0&&C();const a=qt(o,i);n={mode:i,lastCritical:o,lastLocation:a.source,lastCombine:null},r.add(()=>{Vt(0,()=>zt(e().onDragStart,a,t,P.onDragStart))})},update:(o,i)=>{const a=ne(i),l=oe(i);n||!0&&C();const s=!((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);s&&(n.lastCritical=o);const c=!((e,t)=>null==e&&null==t||null!=e&&null!=t&&e.droppableId===t.droppableId&&e.index===t.index)(n.lastLocation,a);c&&(n.lastLocation=a);const d=!((e,t)=>null==e&&null==t||null!=e&&null!=t&&e.draggableId===t.draggableId&&e.droppableId===t.droppableId)(n.lastCombine,l);if(d&&(n.lastCombine=l),!s&&!c&&!d)return;const p={...qt(o,n.mode),combine:l,destination:a};r.add(()=>{Vt(0,()=>zt(e().onDragUpdate,p,t,P.onDragUpdate))})},flush:()=>{n||!0&&C(),r.flush()},drop:o,abort:()=>{if(!n)return;const e={...qt(n.lastCritical,n.mode),combine:null,destination:null,reason:"CANCEL"};o(e)}}})(e,t);return e=>t=>n=>{if(ut(n,"BEFORE_INITIAL_CAPTURE"))return void r.beforeCapture(n.payload.draggableId,n.payload.movementMode);if(ut(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(ut(n,"DROP_COMPLETE")){const e=n.payload.completed.result;return r.flush(),t(n),void r.drop(e)}if(t(n),ut(n,"FLUSH"))return void r.abort();const o=e.getState();"DRAGGING"===o.phase&&r.update(o.critical,o.impact)}};const Jt=e=>t=>r=>{if(!ut(r,"DROP_ANIMATION_FINISHED"))return void t(r);const n=e.getState();"DROP_ANIMATING"!==n.phase&&!0&&C(),e.dispatch(Et({completed:n.completed}))},Xt=e=>{let t=null,r=null;return n=>o=>{if((ut(o,"FLUSH")||ut(o,"DROP_COMPLETE")||ut(o,"DROP_ANIMATION_FINISHED"))&&(r&&(cancelAnimationFrame(r),r=null),t&&(t(),t=null)),n(o),!ut(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=E(window,[i])})}};var Kt=e=>t=>r=>n=>
1{if((e=>ut(e,"DROP_COMPLETE")||ut(e,"DROP_ANIMATE")||ut(e,"FLUSH"))(n))return e.stop(),void r(n);if(ut(n,"INITIAL_PUBLISH")){r(n);const o=t.getState();return"DRAGGING"!==o.phase&&!0&&C(),void e.start(o)}r(n),e.scroll(t.getState())};const Zt=e=>t=>r=>{if(t(r),!ut(r,"PUBLISH_WHILE_DRAGGING"))return;const n=e.getState();"DROP_PENDING"===n.phase&&(n.isWaiting||e.dispatch(At({reason:n.reason})))},Qt=0?0:i.Zz;var er=({dimensionMarshal:e,focusMarshal:t,styleMarshal:r,getResponders:n,announce:o,autoScroller:a})=>(0,i.y$)(pt,Qt((0,i.Tw)((e=>()=>t=>r=>{ut(r,"INITIAL_PUBLISH")&&e.dragging(),ut(r,"DROP_ANIMATE")&&e.dropping(r.payload.completed.result.reason),(ut(r,"FLUSH")||ut(r,"DROP_COMPLETE"))&&e.resting(),t(r)})(r),(e=>()=>t=>r=>{(ut(r,"DROP_COMPLETE")||ut(r,"FLUSH")||ut(r,"DROP_ANIMATE"))&&e.stopPublishing(),t(r)})(e),(e=>({getState:t,dispatch:r})=>n=>o=>{if(!ut(o,"LIFT"))return void n(o);const{id:i,clientSelection:a,movementMode:l}=o.payload,s=t();"DROP_ANIMATING"===s.phase&&r(Et({completed:s.completed})),"IDLE"!==t().phase&&!0&&C(),r({type:"FLUSH",payload:null}),r((e=>({type:"BEFORE_INITIAL_CAPTURE",payload:e}))({draggableId:i,movementMode:l}));const c={draggableId:i,scrollOptions:{shouldPublishImmediately:"SNAP"===l}},{critical:d,dimensions:p,viewport:u}=e.startPublishing(c);r((e=>({type:"INITIAL_PUBLISH",payload:e}))({critical:d,dimensions:p,clientSelection:a,movementMode:l,viewport:u}))})(e),Wt,Jt,Xt,Zt,Kt(a),$t,(e=>{let t=!1;return()=>r=>n=>{if(ut(n,"INITIAL_PUBLISH"))return t=!0,e.tryRecordFocus(n.payload.critical.draggable.id),r(n),void e.tryRestoreFocusRecorded();if(r(n),t){if(ut(n,"FLUSH"))return t=!1,void e.tryRestoreFocusRecorded();if(ut(n,"DROP_COMPLETE")){t=!1;const r=n.payload.completed.result;r.combine&&e.tryShiftRecord(r.draggableId,r.combine.draggableId),e.tryRestoreFocusRecorded()}}}})(t),Yt(n,o))));var tr=({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)}},rr=()=>{const e=document.documentElement;return e||!0&&C(),e},nr=()=>{const e=rr();return tr({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})},or=({critical:e,scrollOptions:t,registry:r})=>{const n=(()=>{const e=Ut(),t=nr(),r=e.y,n=e.x,o=rr(),i=o.clientWidth,a=o.clientHeight;return{frame:c({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)),l=r.draggable.getAllByType(e.draggable.type).map(e=>e.getDimension(o));return{dimensions:{draggables:Q(l),droppables:Z(a)},critical:e,viewport:n}};function ir(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 ar=(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;const{additions:o,removals:i,modified:a}=r,l=Object.keys(o).map(t=>e.draggable.getById(t).getDimension(_)).sort((e,t)=>e.descriptor.index-t.descriptor.index),s=Object.keys(a).map(t=>({droppableId:t,scroll:e.droppable.getById(t).callbacks.getScrollWhileDragging()})),c={additions:l,removals:Object.keys(i),modified:s};r={additions:{},removals:{},modified:{}},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||!0&&C();const o=r.critical.draggable;"ADDITION"===t.type&&ir(e,o,t.value)&&n.add(t.value),"REMOVAL"===t.type&&ir(e,o,t.value)&&n.remove(t.value)},i={updateDroppableIsEnabled:(n,o)=>{e.droppable.exists(n)||!0&&C(),r&&t.updateDroppableIsEnabled({id:n,isEnabled:o})}
1,updateDroppableIsCombineEnabled:(n,o)=>{r&&(e.droppable.exists(n)||!0&&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)||!0&&C(),t.updateDroppableScroll({id:n,newScroll:o}))},startPublishing:t=>{r&&!0&&C();const n=e.draggable.getById(t.draggableId),i=e.droppable.getById(n.descriptor.droppableId),a={draggable:n.descriptor,droppable:i.descriptor},l=e.subscribe(o);return r={critical:a,unsubscribe:l},or({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},lr=(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 cr=K(e=>ee(e).filter(e=>!!e.isEnabled&&!!e.frame));var dr=({center:e,destination:t,droppables:r})=>{if(t){const e=r[t];return e.frame?e:null}const n=((e,t)=>{const r=cr(t).find(t=>(t.frame||!0&&C(),qe(t.frame.pageMarginBox)(e)))||null;return r})(e,r);return n};const pr={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:e=>e**2,durationDampening:{stopDampeningAt:1200,accelerateAt:360},disabled:!1};var ur=({startOfRange:e,endOfRange:t,current:r})=>{const n=t-e;if(0===n)return 0;return(r-e)/n},gr=1,fr=({distanceToEdge:e,thresholds:t,dragStartTime:r,shouldUseTimeDampening:n,getAutoScrollerOptions:o})=>{const i=((e,t,r=()=>pr)=>{const n=r();if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return n.maxPixelScroll;if(e===t.startScrollingFrom)return gr;const o=1-ur({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,l=i,s=Date.now()-a;if(s>=i)return e;if(s<o)return gr;const c=ur({startOfRange:o,endOfRange:l,current:s}),d=e*n.ease(c);return Math.ceil(d)})(i,r,o),gr):i},mr=({container:e,distanceToEdges:t,dragStartTime:r,axis:n,shouldUseTimeDampening:o,getAutoScrollerOptions:i})=>{const a=((e,t,r=()=>pr)=>{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]?fr({distanceToEdge:t[n.end],thresholds:a,dragStartTime:r,shouldUseTimeDampening:o,getAutoScrollerOptions:i}):-1*fr({distanceToEdge:t[n.start],thresholds:a,dragStartTime:r,shouldUseTimeDampening:o,getAutoScrollerOptions:i})};const br=V(e=>0===e?0:e);var hr=({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},l=mr({container:t,distanceToEdges:a,dragStartTime:e,axis:ge,shouldUseTimeDampening:o,getAutoScrollerOptions:i}),s=mr({container:t,distanceToEdges:a,dragStartTime:e,axis:fe,shouldUseTimeDampening:o,getAutoScrollerOptions:i}),c=br({x:s,y:l});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 vr=V(e=>0===e?0:e>0?1:-1),yr=(()=>{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}})(),Ir=({max:e,current:t,change:r})=>{const n={x:Math.max(t.x,e.x),y:Math.max(t.y,e.y)},o=vr(r),i=yr({max:n,current:t,change:o});return!i||(0!==o.x&&0===i.x||0!==o.y&&0===i.y)},xr=(e,t)=>Ir({current:e.scroll.current,max:e.scroll.max,change:t}),Dr=(e,t)=>{const r=e.frame;return!!r&&Ir({current:r.scroll.current,max:r.scroll.max,change:t})};var Er=({state:e,dragStartTime:t,shouldUseTimeDampening:r,scrollWindow:n,scrollDroppable:o,getAutoScrollerOptions:i})=>{const a=e.current.page.borderBoxCenter,l=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=hr({dragStartTime:n,container:e.frame,subject:t,center:r,shouldUseTimeDampening:o,getAutoScrollerOptions:i});return a&&xr(e,a)?a:null})({dragStartTime:t,viewport:e.viewport,subject:l,center:a,shouldUseTimeDampening:r,getAutoScrollerOptions:i});if(o)return void n(o)}const s=dr({center:a,destination:$e(e.impact),droppables:e.dimensions.droppables});if(!s)return;const c=(({droppable:e,subject:t,center:r,dragStartTime:n,shouldUseTimeDampening:o,getAutoScrollerOptions:i})=>{const a=e.frame;if(!a)return null;const l=hr({dragStartTime:n,container:a.pageMarginBox,subject:t,center:r,shouldUseTimeDampening:o,getAutoScrollerOptions:i});return l&&Dr(e,l)?l:null})({dragStartTime:t,droppable:s,subject:l,center:a,shouldUseTimeDampening:r,getAutoScrollerOptions:i});c&&o(s.descriptor.id,c)},Ar=({move:e,scrollDroppable:t,scrollWindow:r})=>{const n=(e,r)=>{if(!Dr(e,r))return r;const n=((e,t)=>{const r=e.frame;return r&&Dr(e,t)?yr({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(!xr(t,n))return n;const o=((e,t)=>{if(!xr(e,t))return null;const r=e.scroll.max,n=e.scroll.current;return yr({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||!0&&C();const a=n(t.dimensions.droppables[i],r);if(!a)return;const l=t.viewport,s=o(t.isWindowScrollAllowed,l,a);s&&((t,r)=>{const n=F(t.current.client.selection,r);e({client:n})})(t,s)}},wr=({scrollDroppable:e,scrollWindow:t,move:r,getAutoScrollerOptions:n})=>{const o=(({scrollWindow:e,scrollDroppable:t,getAutoScrollerOptions:r=()=>pr})=>{const n=y(e),o=y(t);let i=null;const a=e=>{i||!0&&C();const{shouldUseTimeDampening:t,dragStartTime:a}=i;Er({state:e,scrollWindow:n,scrollDroppable:o,dragStartTime:a,shouldUseTimeDampening:t,getAutoScrollerOptions:r})};return{start:e=>{i&&!0&&C();const t=Date.now();let n=!1;const o=()=>{n=!0};Er({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:o,scrollDroppable:o,getAutoScrollerOptions:r}),i={dragStartTime:t,shouldUseTimeDampening:n},n&&a(e)},stop:()=>
1{i&&(n.cancel(),o.cancel(),i=null)},scroll:a}})({scrollWindow:t,scrollDroppable:e,getAutoScrollerOptions:n}),i=Ar({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 Cr="data-rfd",Sr=(()=>{const e=`${Cr}-drag-handle`;return{base:e,draggableId:`${e}-draggable-id`,contextId:`${e}-context-id`}})(),Br=(()=>{const e=`${Cr}-draggable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),Rr=(()=>{const e=`${Cr}-droppable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),Nr={contextId:`${Cr}-scroll-container-context-id`},Or=(e,t)=>e.map(e=>{const r=e.styles[t];return r?`${e.selector} { ${r} }`:""}).join(" "),Pr="pointer-events: none;";const Tr="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?n.useLayoutEffect:n.useEffect,Lr=()=>{const e=document.querySelector("head");return e||!0&&C(),e},Gr=e=>{const t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};function Mr(e,t){const r=G(()=>(e=>{const t=(e=>t=>`[${t}="${e}"]`)(e),r=(()=>{const e=`\n      cursor: -webkit-grab;\n      cursor: grab;\n    `;return{selector:t(Sr.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:Pr,dropAnimating:e}}})(),n=[(()=>{const e=`\n      transition: ${Ot.outOfTheWay};\n    `;return{selector:t(Br.contextId),styles:{dragging:e,dropAnimating:e,userCancel:e}}})(),r,{selector:t(Rr.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:Or(n,"always"),resting:Or(n,"resting"),dragging:Or(n,"dragging"),dropAnimating:Or(n,"dropAnimating"),userCancel:Or(n,"userCancel")}})(e),[e]),o=(0,n.useRef)(null),i=(0,n.useRef)(null),a=M(K(e=>{const t=i.current;t||!0&&C(),t.textContent=e}),[]),l=M(e=>{const t=o.current;t||!0&&C(),t.textContent=e},[]);Tr(()=>{(o.current||i.current)&&!0&&C();const n=Gr(t),s=Gr(t);return o.current=n,i.current=s,n.setAttribute(`${Cr}-always`,e),s.setAttribute(`${Cr}-dynamic`,e),Lr().appendChild(n),Lr().appendChild(s),l(r.always),a(r.resting),()=>{const e=e=>{const t=e.current;t||!0&&C(),Lr().removeChild(t),e.current=null};e(o),e(i)}},[t,l,a,r.always,r.resting,e]);const s=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:s,dropping:c,resting:d}),[s,c,d])}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=`[${Sr.contextId}="${e}"]`,n=_r(document,r);if(!n.length)return null;const o=n.find(e=>e.getAttribute(Sr.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||!0&&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||!0&&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 Hr=n.createContext(null),$r=()=>{const e=document.body;return e||!0&&C(),e};const 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={separator:"::"};function qr(e,t=Vr){const r=n.useId();return G(()=>`${e}${t.separator}${r}`,[t.separator,e,r])}var zr=n.createContext(null);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=27,Kr=32,Zr=37,Qr=38,en=39,tn=40,rn={13:!0,9:!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})(),an=0,ln=5;const sn={type:"IDLE"};function cn({cancel:e,completed:t,getPhase:r,setPhase:n}
1){return[{eventName:"mousemove",fn:e=>{const{button:t,clientX:o,clientY:i}=e;if(t!==an)return;const a={x:o,y:i},l=r();if("DRAGGING"===l.type)return e.preventDefault(),void l.actions.move(a);"PENDING"!==l.type&&!0&&C();if(!function(e,t){return Math.abs(t.x-e.x)>=ln||Math.abs(t.y-e.y)>=ln}(l.point,a))return;e.preventDefault();const s=l.actions.fluidLift(a);n({type:"DRAGGING",actions:s})}},{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 t.keyCode===Xr?(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&&!0&&C(),n.actions.shouldRespectForcePress()?e():t.preventDefault()}},{eventName:on,fn:e}]}function dn(){}const pn={34:!0,33:!0,36:!0,35:!0};function un(e,t){function r(){t(),e.cancel()}return[{eventName:"keydown",fn:n=>n.keyCode===Xr?(n.preventDefault(),void r()):n.keyCode===Kr?(n.preventDefault(),t(),void e.drop()):n.keyCode===tn?(n.preventDefault(),void e.moveDown()):n.keyCode===Qr?(n.preventDefault(),void e.moveUp()):n.keyCode===en?(n.preventDefault(),void e.moveRight()):n.keyCode===Zr?(n.preventDefault(),void e.moveLeft()):void(pn[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 gn={type:"IDLE"},fn=120,mn=.15;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=>c(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(!function(e){return e instanceof Fr(e).Element}(r))return null;const n=function(e){return`[${Sr.contextId}="${e}"]`}(e),o=Dn(r,n);return o&&kr(o)?o: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&&!!lr(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 l=n.draggable.getById(o),s=function(e,t){const r=`[${Br.contextId}="${e}"]`,n=_r(document,r).find(e=>e.getAttribute(Br.id)===t);return n&&kr(n)?n:null}(t,l.descriptor.id);if(!s)return null;if(a&&!l.options.canDragInteractiveElements&&vn(s,a))return null;const c=e.claim(i||D);let d="PRE_DRAG";function p(){return l.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=E(window,[{eventName:"click",fn:An,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(e)}n(),r.dispatch(At({reason:e}))}return"PRE_DRAG"!==d&&(n(),!0&&C()),r.dispatch((e=>({type:"LIFT",payload:e}))(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=y(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:yn(s),movementMode:"SNAP"},cleanup:D,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)(sn),r=(0,n.useRef)(D),o=G(()=>({eventName:"mousedown",fn:function(t){if(t.defaultPrevented)return;if(t.button!==an)return;if(t.ctrlKey||t.metaKey||t.shiftKey||t.altKey)return;const n=e.findClosestDraggableId(t);if(!n)return;const o=e.tryGetLock(n,l,{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=E(window,[i,o],{passive:!1,capture:!0})},[i,o]),l=M(()=>{"IDLE"!==t.current.type&&(t.current=sn,r.current(),a())},[a]),s=M(()=>{const e=t.current;l(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()},[l]),c=M(function(){const e=cn({cancel:s,completed:l,getPhase:()=>t.current,setPhase:e=>{t.current=e}});r.current=E(window,e,{capture:!0,passive:!1})},[s,l]),d=M(function(e,r){"IDLE"!==t.current.type&&!0&&C(),t.current={type:"PENDING",point:r,actions:e},c()},[c]);Tr(function(){return a(),function(){r.current()}},[a])},function(e){const t=(0,n.useRef)(dn),r=G(()=>({eventName:"keydown",fn:function(r){if(r.defaultPrevented)return;if(r.keyCode!==Kr)return;const n=e.findClosestDraggableId(r);if(!n)return;const i=e.tryGetLock(n,s,{sourceEvent:r});if(!i)return;r.preventDefault();let a=!0;const l=i.snapLift();function s(){a||!0&&C(),a=!1,t.current(),o()}t.current(),t.current=E(window,un(l,s),{capture:!0,passive:!1})}}),[e]),o=M(function(){t.current=E(window,[r],{passive:!1,capture:!0})},[r]);Tr(function(){return o(),function(){t.current()}},[o])},function(e){const t=(0,n.useRef)(gn),r=(0,n.useRef)(D),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,s,{sourceEvent:t});if(!o)return;const i=t.touches[0],{clientX:a,clientY:l}=i,c={x:a,y:l};r.current(),u(o,c)}}),[e]),l=M(function(){r.current=E(window,[a],{capture:!0,passive:!1})},[a]),s=M(()=>{const e=t.current;"IDLE"!==e.type&&("PENDING"===e.type&&clearTimeout(e.longPressTimerId),i(gn),r.current(),l())},[l,i]),c=M(()=>{const e=t.current;s(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()},[s]),d=M(function(){const e={capture:!0,passive:!1},t={cancel:c,completed:s,getPhase:o},n=E(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&&!0&&C();const o=t.touches[0];if(!o)return;if(!(o.force>=mn))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=E(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?(r.keyCode===Xr&&r.preventDefault(),e()):e()}},{eventName:on,fn:e}]}(t),e);r.current=function(){n(),i()}},[c,o,s]),p=M(function(){const e=o();"PENDING"!==e.type&&!0&&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&&!0&&C();const r=setTimeout(p,fn);i({type:"PENDING",point:t,actions:e,longPressTimerId:r}),d()},[d,o,i,p]);Tr(function(){return l(),function(){r.current();const e=o();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),i(gn))}},[o,l,i]),Tr(function(){return E(window,[{eventName:"touchmove",fn:()=>{},options:{capture:!1,passive:!1}}])},[])}];function Rn({contextId:e,store:t,registry:r,customSensors:o,enableDefaultSensors:i}
1){const a=[...i?Bn:[],...o||[]],l=(0,n.useState)(()=>function(){let e=null;function t(){e||!0&&C(),e=null}return{isClaimed:function(){return Boolean(e)},isActive:function(t){return t===e},claim:function(t){e&&!0&&C();const r={abandon:t};return e=r,r},release:t,tryAbandon:function(){e&&(e.abandon(),t())}}}())[0],s=M(function(e,t){Jr(e)&&!Jr(t)&&l.tryAbandon()},[l]);Tr(function(){let e=t.getState();return t.subscribe(()=>{const r=t.getState();s(e,r),e=r})},[l,t,s]),Tr(()=>l.tryAbandon,[l.tryAbandon]);const c=M(e=>Cn({lockAPI:l,registry:r,store:t,draggableId:e}),[l,r,t]),d=M((n,o,i)=>Sn({lockAPI:l,registry:r,contextId:e,store:t,draggableId:n,forceSensorStop:o||null,sourceEvent:i&&i.sourceEvent?i.sourceEvent:null}),[e,l,r,t]),p=M(t=>function(e,t){const r=En(e,t);return r?r.getAttribute(Sr.draggableId):null}(e,t),[e]),u=M(e=>{const t=r.draggable.findById(e);return t?t.options:null},[r.draggable]),g=M(function(){l.isClaimed()&&(l.tryAbandon(),"IDLE"!==t.getState().phase&&t.dispatch({type:"FLUSH",payload:null}))},[l,t]),f=M(()=>l.isClaimed(),[l]),m=G(()=>({canGetLock:c,tryGetLock:d,findClosestDraggableId:p,findOptionsForDraggable:u,tryReleaseLock:g,isLockClaimed:f}),[c,d,p,u,g,f]);for(let e=0;e<a.length;e++)a[e](m)}function Nn(e){return e.current||!0&&C(),e.current}function On(e){const{contextId:t,setCallbacks:r,sensors:l,nonce:s,dragHandleUsageInstructions:c}=e,d=(0,n.useRef)(null),p=Yr(e),u=M(()=>(e=>({onBeforeCapture:t=>{(0,o.flushSync)(()=>{e.onBeforeCapture&&e.onBeforeCapture(t)})},onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}))(p.current),[p]),g=M(()=>(e=>({...pr,...e.autoScrollerOptions,durationDampening:{...pr.durationDampening,...e.autoScrollerOptions}}))(p.current),[p]),f=function(e){const t=G(()=>(e=>`rfd-announcement-${e}`)(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,I.A)(e.style,jr),$r().appendChild(e),function(){setTimeout(function(){const t=$r();t.contains(e)&&t.removeChild(e),e===r.current&&(r.current=null)})}},[t]),M(e=>{const t=r.current;t&&(t.textContent=e)},[])}(t),m=function({contextId:e,text:t}){const r=qr("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",$r().appendChild(e),function(){const t=$r();t.contains(e)&&t.removeChild(e)}},[o,t]),o}({contextId:t,text:c}),b=Mr(t,s),h=M(e=>{Nn(d).dispatch(e)},[]),v=G(()=>(0,i.zH)({publishWhileDragging:gt,updateDroppableScroll:mt,updateDroppableIsEnabled:bt,updateDroppableIsCombineEnabled:ht,collectionStarting:ft},h),[h]),y=function(){const e=G(Ur,[]);return(0,n.useEffect)(()=>function(){e.clean()},[e]),e}(),x=G(()=>ar(y,v),[y,v]),D=G(()=>wr({scrollWindow:sr,scrollDroppable:x.scrollDroppable,getAutoScrollerOptions:g,...(0,i.zH)({move:vt},h)}),[x.scrollDroppable,h,g]),E=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]}},[]),l=M(function(t){const r=Wr(e,t);r&&r!==document.activeElement&&r.focus()},[e]),s=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&&l(e)}))},[l]),d=M(function(e){r.current=null;const t=document.activeElement;t&&t.getAttribute(Sr.draggableId)===e&&(r.current=e)},[]);return Tr(()=>(i.current=!0,function(){i.current=!1;const e=o.current;e&&cancelAnimationFrame(e)}),[]),G(()=>({register:a,tryRecordFocus:d,tryRestoreFocusRecorded:c,tryShiftRecord:s}),[a,d,c,s])}(t),A=G(()=>er({announce:f,autoScroller:D,dimensionMarshal:x,focusMarshal:E,getResponders:u,styleMarshal:b}),[f,D,x,E,u,b]);d.current=A;const w=M(()=>{const e=Nn(d);"IDLE"!==e.getState().phase&&e.dispatch({type:"FLUSH",payload:null})},[]),C=M(()=>{const e=Nn(d).getState();return"DROP_ANIMATING"===e.phase||"IDLE"!==e.phase&&e.isDragging},[]);r(G(()=>({isDragging:C,tryAbort:w}),[C,w]));const S=M(e=>lr(Nn(d).getState(),e),[]),B=M(()=>Ve(Nn(d).getState()),[]),R=G(()=>({marshal:x,focus:E,contextId:t,canLift:S,isMovementAllowed:B,dragHandleUsageInstructionsId:m,registry:y}),[t,x,m,E,S,B,y]);return Rn({contextId:t,store:A,registry:y,customSensors:l||null,enableDefaultSensors:!1!==e.enableDefaultSensors}),(0,n.useEffect)(()=>w,[w]),n.createElement(zr.Provider,{value:R},n.createElement(a.Kq,{context:Hr,store:A},e.children))}function Pn(e){const t=n.useId(),r=e.dragHandleUsageInstructions||P.dragHandleUsageInstructions;return n.createElement(S,null,o=>n.createElement(On,{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 Tn=5e3,Ln=4500,Gn=(e,t)=>t?Ot.drop(t.duration):e?Ot.snap:Ot.fluid,Mn=(e,t)=>{if(e)return t?St.drop:St.combining};function _n(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),l=Boolean(o),s=l?Lt(r,i):Tt(r);
1return{position:"fixed",top:t.marginBox.top,left:t.marginBox.left,boxSizing:"border-box",width:t.borderBox.width,height:t.borderBox.height,transition:Gn(a,o),transform:s,opacity:Mn(i,l),zIndex:l?Ln:Tn,pointerEvents:"none"}}(e):function(e){return{transform:Tt(e.offset),transition:e.shouldAnimateDisplacement?void 0:"none"}}(e)}function Fn(e){const t=qr("draggable"),{descriptor:r,registry:o,getDraggableRef:i,canDragInteractiveElements:a,shouldRespectForcePress:l,isEnabled:s}=e,c=G(()=>({canDragInteractiveElements:a,shouldRespectForcePress:l,isEnabled:s}),[a,s,l]),d=M(e=>{const t=i();return t||!0&&C(),function(e,t,r=_){const n=window.getComputedStyle(t),o=t.getBoundingClientRect(),i=h(o,n),a=b(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);Tr(()=>(o.draggable.register(u.current),()=>o.draggable.unregister(u.current)),[o.draggable]),Tr(()=>{if(g.current)return void(g.current=!1);const e=u.current;u.current=p,o.draggable.update(p,e)},[p,o.draggable])}var kn=n.createContext(null);function Wn(e){const t=(0,n.useContext)(e);return t||!0&&C(),t}function Un(e){e.preventDefault()}var Hn=(e,t)=>e===t,$n=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 Vn={mapped:{type:"SECONDARY",offset:_,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:jn(null)}};const qn={dropAnimationFinished:wt},zn=(0,a.Ng)(()=>{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,l=null)=>({mapped:{type:"DRAGGING",dropping:null,draggingOver:i,combineWith:a,mode:r,offset:e,dimension:n,forceShouldAnimate:l,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,i=n.dimensions.draggables[o.draggableId],a=$e(n.impact),l=(e=>e.at&&"COMBINE"===e.at.type?e.at.combine.draggableId:null)(n.impact),s=n.forceShouldAnimate;return r(e(t.x,t.y),n.movementMode,i,o.isClone,a,l,s)}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,l=a.mode,s=$n(a),c=(e=>e.combine?e.combine.draggableId:null)(a),d={duration:n.dropDuration,curve:Ct,moveTo:n.newHomeClientOffset,opacity:c?St.drop:null,scale:c?Bt.drop:null};return{mapped:{type:"DRAGGING",offset:n.newHomeClientOffset,dimension:i,dropping:d,draggingOver:s,combineWith:c,mode:l,forceShouldAnimate:null,snapshot:t(l,r,s,c,d)}}}return null}}(),t=function(){const e=K((e,t)=>({x:e,y:t})),t=K(jn),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 l=i.displaced.visible[t],s=Boolean(a.inVirtualList&&a.effected[t]),c=oe(i),d=c&&c.draggableId===t?o:null;if(!l){if(!s)return n(d);if(i.displaced.invisible[t])return null;const o=U(a.displacedBy.point),l=e(o.x,o.y);return r(l,d,!0)}if(s)return n(d);const p=i.displacedBy.point,u=e(p.x,p.y);return r(u,d,l.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)||Vn},qn,null,{context:Hr,areStatePropsEqual:Hn})(e=>{const t=(0,n.useRef)(null),r=M((e=null)=>{t.current=e},[]),i=M(()=>t.current,[]),{contextId:a,dragHandleUsageInstructionsId:l,registry:s}=Wn(zr),{type:c,droppableId:d}=Wn(kn),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(!h){Fn(G(()=>({descriptor:p,registry:s,getDraggableRef:i,canDragInteractiveElements:b,shouldRespectForcePress:m,isEnabled:f}),[p,s,i,b,m,f]))}const I=G(()=>f?{tabIndex:0,role:"button","aria-describedby":l,"data-rfd-drag-handle-draggable-id":g,"data-rfd-drag-handle-context-id":a,draggable:!1,onDragStart:Un}:null,[a,l,g,f]),x=M(e=>{"DRAGGING"===v.type&&v.dropping&&"transform"===e.propertyName&&(0,o.flushSync)(y)},[y,v]),D=G(()=>{const e=_n(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 Yn(e){return Wn(kn).isUsingCloneFor!==e.draggableId||e.isClone?n.createElement(zn,e):null}function Jn(e){const t="boolean"!=typeof e.isDragDisabled||!e.isDragDisabled,r=Boolean(e.disableInteractiveElementBlocking),o=Boolean(e.shouldRespectForcePress);return n.createElement(Yn,(0,I.A)({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:r,shouldRespectForcePress:o}))}const Xn=e=>t=>e===t,Kn=Xn("scroll"),Zn=Xn("auto"),Qn=(Xn("visible"),(e,t)=>t(e.overflowX)||t(e.overflowY)),eo=e=>null==e?null:e===document.body?(()=>{if(1)return!1})()?e:null:e===document.documentElement?null:(e=>{const t=window.getComputedStyle(e),r={overflowX:t.overflowX,overflowY:t.overflowY};return Qn(r,Kn)||Qn(r,Zn)})(e)?e:eo(e.parentElement);var to=e=>({x:e.scrollLeft,y:e.scrollTop});const ro=e=>{if(!e)return!1;return"fixed"===window.getComputedStyle(e).position||ro(e.parentElement)};var no=({ref:e,descriptor:t,env:r,windowScroll:n,direction:o,isDropDisabled:i,isCombineEnabled:a,shouldClipSubject:l})=>{const s=r.closestScrollable,c=((e,t)=>{const r=v(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,l=d({top:n,right:a,bottom:i,left:o},r.border);return g({borderBox:l,margin:r.margin,border:r.border,padding:r.padding})})(e,s),p=b(c,n),u=(()=>
1{if(!s)return null;const e=v(s),t={scrollHeight:s.scrollHeight,scrollWidth:s.scrollWidth};return{client:e,page:b(e,n),scroll:to(s),scrollSize:t,shouldClipSubject:l}})(),f=(({descriptor:e,isEnabled:t,isCombineEnabled:r,isFixedOnPage:n,direction:o,client:i,page:a,closest:l})=>{const s=(()=>{if(!l)return null;const{scrollSize:e,client:t}=l,r=tr({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,height:t.paddingBox.height,width:t.paddingBox.width});return{pageMarginBox:l.page.marginBox,frameClient:t,scrollSize:e,shouldClipSubject:l.shouldClipSubject,scroll:{initial:l.scroll,current:l.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:s,subject:J({page:a,withPlaceholder:null,axis:c,frame:s})}})({descriptor:t,isEnabled:!i,isCombineEnabled:a,isFixedOnPage:r.isFixedOnPage,direction:o,client:c,page:p,closest:u});return f};const oo={passive:!1},io={passive:!0};var ao=e=>e.shouldPublishImmediately?oo:io;const lo=e=>e&&e.env.closestScrollable||null;function so(e){const t=(0,n.useRef)(null),r=Wn(zr),o=qr("droppable"),{registry:i,marshal:a}=r,l=Yr(e),s=G(()=>({id:e.droppableId,type:e.type,mode:e.mode}),[e.droppableId,e.mode,e.type]),c=(0,n.useRef)(s),d=G(()=>K((e,r)=>{t.current||!0&&C();const n={x:e,y:r};a.updateDroppableScroll(s.id,n)}),[s.id,a]),p=M(()=>{const e=t.current;return e&&e.env.closestScrollable?to(e.env.closestScrollable):_},[]),u=M(()=>{const e=p();d(e.x,e.y)},[p,d]),g=G(()=>y(u),[u]),f=M(()=>{const e=t.current,r=lo(e);e&&r||!0&&C();e.scrollOptions.shouldPublishImmediately?u():g()},[g,u]),m=M((e,n)=>{t.current&&!0&&C();const o=l.current,i=o.getDroppableRef();i||!0&&C();const a=(e=>({closestScrollable:eo(e),isFixedOnPage:ro(e)}))(i),c={ref:i,descriptor:s,env:a,scrollOptions:n};t.current=c;const d=no({ref:i,descriptor:s,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",f,ao(c.scrollOptions))),d},[r.contextId,s,f,l]),b=M(()=>{const e=t.current,r=lo(e);return e&&r||!0&&C(),to(r)},[]),h=M(()=>{const e=t.current;e||!0&&C();const r=lo(e);t.current=null,r&&(g.cancel(),r.removeAttribute(Nr.contextId),r.removeEventListener("scroll",f,ao(e.scrollOptions)))},[f,g]),v=M(e=>{const r=t.current;r||!0&&C();const n=lo(r);n||!0&&C(),n.scrollTop+=e.y,n.scrollLeft+=e.x},[]),I=G(()=>({getDimensionAndWatchScroll:m,getScrollWhileDragging:b,dragStopped:h,scroll:v}),[h,m,b,v]),x=G(()=>({uniqueId:o,descriptor:s,callbacks:I}),[I,s,o]);Tr(()=>(c.current=x.descriptor,i.droppable.register(x),()=>{t.current&&h(),i.droppable.unregister(x)}),[I,s,h,x,a,i.droppable]),Tr(()=>{t.current&&a.updateDroppableIsEnabled(c.current.id,!e.isDropDisabled)},[e.isDropDisabled,a]),Tr(()=>{t.current&&a.updateDroppableIsCombineEnabled(c.current.id,e.isCombineEnabled)},[e.isCombineEnabled,a])}function co(){}const po={width:0,height:0,margin:{top:0,right:0,bottom:0,left:0}},uo=({isAnimatingOpenOnMount:e,placeholder:t,animate:r})=>{const n=(({isAnimatingOpenOnMount:e,placeholder:t,animate:r})=>e||"close"===r?po:{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?Ot.placeholder:null}};var go=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:l}=e,[s,c]=(0,n.useState)("open"===e.animate);(0,n.useEffect)(()=>s?"open"!==o?(r(),c(!1),co):t.current?co:(t.current=setTimeout(()=>{t.current=null,c(!1)}),r):co,[o,s,r]);const d=M(e=>{"height"===e.propertyName&&(i(),"close"===o&&a())},[o,a,i]),p=uo({isAnimatingOpenOnMount:s,animate:e.animate,placeholder:e.placeholder});return n.createElement(e.placeholder.tagName,{style:p,"data-rfd-placeholder-context-id":l,onTransitionEnd:d,ref:e.innerRef})});class fo 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 mo={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:function(){return document.body||!0&&C(),document.body}},bo=e=>{let t,r={...e};for(t in mo)void 0===e[t]&&(r={...r,[t]:mo[t]});return r},ho=(e,t)=>e===t.droppable.type,vo=(e,t)=>t.draggables[e.draggable.id],yo={updateViewportMaxScroll:e=>({type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e})},Io=(0,a.Ng)(()=>{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,l,s)=>{const c=l.descriptor.id;if(l.descriptor.droppableId===n){const e=s?{render:s,dragging:r(l.descriptor)}:null,t={isDraggingOver:i,draggingOverWith:i?c:null,draggingFromThisWith:c,isUsingPlaceholder:!0};return{placeholder:l.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:l.placeholder,shouldAnimatePlaceholder:!0,snapshot:d,useClone:null}});return(r,o)=>{const i=bo(o),a=i.droppableId,l=i.type,s=!i.isDropDisabled,c=i.renderClone;if(Jr(r)){const e=r.critical;if(!ho(l,e))return t;const o=vo(e,r.dimensions),i=$e(r.impact)===a;return n(a,s,i,i,o,c)}if("DROP_ANIMATING"===r.phase){const e=r.completed;if(!ho(l,e.critical))return t;const o=vo(e.critical,r.dimensions);return n(a,s,$n(e.result)===a,$e(e.impact)===a,o,c)}if("IDLE"===r.phase&&r.completed&&!r.shouldFlush){const n=r.completed;if(!ho(l,n.critical))return t;const o=$e(n.impact)===a,i=Boolean(n.impact.at&&"COMBINE"===n.impact.at.type),s=n.critical.droppable.id===a;return o?i?e:t:s?e:t}return t}},yo,(e,t,r)=>({...bo(r),...e,...t}),{context:Hr,areStatePropsEqual:Hn})(e=>{const t=(0,n.useContext)(zr);t||!0&&C();const{contextId:r,isMovementAllowed:i}=t,a=(0,n.useRef)(null),l=(0,n.useRef)(null),{children:s,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(()=>l.current,[]),M((e=null)=>{l.current=e},[])),E=M(()=>{i()&&v({maxScroll:nr()})},[i,v]);so({droppableId:c,type:d,mode:p,direction:u,isDropDisabled:f,isCombineEnabled:m,ignoreContainerClipping:g,getDroppableRef:I});const A=G(()=>n.createElement(fo,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},({onClose:e,data:t,animate:o})=>n.createElement(go,{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(kn.Provider,{value:B},s(w,b),function(){if(!h)return null;const{dragging:e,render:t}=h,r=n.createElement(Yn,{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())}())})},44329(e,t,r){r.d(t,{d_:()=>o});let n=e=>crypto.getRandomValues(new Uint8Array(e)),o=(e,t=21)=>((e,t,r)=>{let n=256-256%e.length;if(256===n){let n=e.length-1;return(o=t)=>{if(!o)return"";let i="";for(;1;){let t=r(o),a=o;for(;a--;)if(i+=e[t[a]&n],i.length>=o)return i}}}let o=Math.ceil(1.6*256*t/n);return(i=t)=>{if(!i)return"";let a="";for(;1;){let t=r(o),l=o;for(;l--;)if(t[l]<n&&(a+=e[t[l]%e.length],a.length>=i))return a}}})(e,0|t,n)}}]);
2//# sourceMappingURL=/assets/maps/5216.fc9754a3c3.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.