a(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function a(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;t.unstable_now=function(){return i.now()}}else{var l=Date,s=l.now();t.unstable_now=function(){return l.now()-s}}var c=[],u=[],d=1,f=null,p=3,m=!1,g=!1,h=!1,b="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,v="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var t=r(u);null!==t;){if(null===t.callback)o(u);else{if(!(t.startTime<=e))break;o(u),t.sortIndex=t.expirationTime,n(c,t)}t=r(u)}}function E(e){if(h=!1,w(e),!g)if(null!==r(c))g=!0,T(x);else{var t=r(u);null!==t&&A(E,t.startTime-e)}}function x(e,n){g=!1,h&&(h=!1,y(C),C=-1),m=!0;var a=p;try{for(w(n),f=r(c);null!==f&&(!(f.expirationTime>n)||e&&!N());){var i=f.callback;if("function"==typeof i){f.callback=null,p=f.priorityLevel;var l=i(f.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?f.callback=l:f===r(c)&&o(c),w(n)}else o(c);f=r(c)}if(null!==f)var s=!0;else{var d=r(u);null!==d&&A(E,d.startTime-n),s=!1}return s}finally{f=null,p=a,m=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S,k=!1,O=null,C=-1,P=5,D=-1;function N(){return!(t.unstable_now()-De||125i?(e.sortIndex=a,n(u,e),null===r(c)&&e===r(u)&&(h?(y(C),C=-1):h=!0,A(E,a-i))):(e.sortIndex=l,n(c,e),g||m||(g=!0,T(x))),e},t.unstable_shouldYield=N,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},840:(e,t,n)=>{"use strict";e.exports=n(53)},250:(e,t,n)=>{"use strict";var r=n(294),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=r.useState,i=r.useEffect,l=r.useLayoutEffect,s=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),o=r[0].inst,u=r[1];return l((function(){o.value=n,o.getSnapshot=t,c(o)&&u({inst:o})}),[e,n,t]),i((function(){return c(o)&&u({inst:o}),e((function(){c(o)&&u({inst:o})}))}),[e]),s(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},139:(e,t,n)=>{"use strict";var r=n(294),o=n(688),a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=o.useSyncExternalStore,l=r.useRef,s=r.useEffect,c=r.useMemo,u=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var d=l(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=c((function(){function e(e){if(!s){if(s=!0,i=e,e=r(e),void 0!==o&&f.hasValue){var t=f.value;if(o(t,e))return l=t}return l=e}if(t=l,a(i,e))return t;var n=r(e);return void 0!==o&&o(t,n)?t:(i=e,l=n)}var i,l,s=!1,c=void 0===n?null:n;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]}),[t,n,r,o]);var p=i(e,d[0],d[1]);return s((function(){f.hasValue=!0,f.value=p}),[p]),u(p),p}},688:(e,t,n)=>{"use strict";e.exports=n(250)},798:(e,t,n)=>{"use strict";e.exports=n(139)},473:e=>{"use strict";e.exports=function(){}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={exports:{}};return e[r].call(a.exports,a,a.exports,n),a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e=n(294),t=n(745),r=n(935);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function a(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==o(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===o(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;ty,w=Symbol.for("react-redux-context"),E="undefined"!=typeof globalThis?globalThis:{};function x(){var t;if(!e.createContext)return{};const n=null!=(t=E[w])?t:E[w]=new Map;let r=n.get(e.createContext);return r||(r=e.createContext(null),n.set(e.createContext,r)),r}const S=x();let k=null;function O(){return O=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}var P=n(679),D=n.n(P),N=n(366);const I=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function _(e,t,n,r,{areStatesEqual:o,areOwnPropsEqual:a,areStatePropsEqual:i}){let l,s,c,u,d,f=!1;return function(p,m){return f?function(f,p){const m=!a(p,s),g=!o(f,l,p,s);return l=f,s=p,m&&g?(c=e(l,s),t.dependsOnOwnProps&&(u=t(r,s)),d=n(c,u,s),d):m?(e.dependsOnOwnProps&&(c=e(l,s)),t.dependsOnOwnProps&&(u=t(r,s)),d=n(c,u,s),d):g?function(){const t=e(l,s),r=!i(t,c);return c=t,r&&(d=n(c,u,s)),d}():d}(p,m):(l=p,s=m,c=e(l,s),u=t(r,s),d=n(c,u,s),f=!0,d)}}function R(e){return function(t){const n=e(t);function r(){return n}return r.dependsOnOwnProps=!1,r}}function T(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function A(e,t){return function(t,{displayName:n}){const r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e,void 0)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=T(e);let o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=T(o),o=r(t,n)),o},r}}function j(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function L(e,t,n){return O({},n,e,t)}const M={notify(){},get:()=>[]};function B(e,t){let n,r=M,o=0,a=!1;function i(){c.onStateChange&&c.onStateChange()}function l(){o++,n||(n=t?t.addNestedSub(i):e.subscribe(i),r=function(){const e=v();let t=null,n=null;return{clear(){t=null,n=null},notify(){e((()=>{let e=t;for(;e;)e.callback(),e=e.next}))},get(){let e=[],n=t;for(;n;)e.push(n),n=n.next;return e},subscribe(e){let r=!0,o=n={callback:e,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){r&&null!==t&&(r=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}())}function s(){o--,n&&0===o&&(n(),n=void 0,r.clear(),r=M)}const c={addNestedSub:function(e){l();const t=r.subscribe(e);let n=!1;return()=>{n||(n=!0,t(),s())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:i,isSubscribed:function(){return a},trySubscribe:function(){a||(a=!0,l())},tryUnsubscribe:function(){a&&(a=!1,s())},getListeners:()=>r};return c}const F="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?e.useLayoutEffect:e.useEffect;function z(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function U(e,t){if(z(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r{throw new Error("uSES not initialized!")};const H=[null,null];function G(e,t,n,r,o,a){e.current=r,n.current=!1,o.current&&(o.current=null,a())}function V(e,t){return e===t}const q=function(t,n,r,{pure:o,areStatesEqual:a=V,areOwnPropsEqual:i=U,areStatePropsEqual:l=U,areMergedPropsEqual:s=U,forwardRef:c=!1,context:u=S}={}){const d=u,f=function(e){return e?"function"==typeof e?A(e):j(e,"mapStateToProps"):R((()=>({})))}(t),p=function(e){return e&&"object"==typeof e?R((t=>function(e,t){const n={};for(const r in e){const o=e[r];"function"==typeof o&&(n[r]=(...e)=>t(o(...e)))}return n}(e,t))):e?"function"==typeof e?A(e):j(e,"mapDispatchToProps"):R((e=>({dispatch:e})))}(n),m=function(e){return e?"function"==typeof e?function(e){return function(t,{displayName:n,areMergedPropsEqual:r}){let o,a=!1;return function(t,n,i){const l=e(t,n,i);return a?r(l,o)||(o=l):(a=!0,o=l),o}}}(e):j(e,"mergeProps"):()=>L}(r),g=Boolean(t);return t=>{const n=t.displayName||t.name||"Component",r=`Connect(${n})`,o={shouldHandleStateChanges:g,displayName:r,wrappedComponentName:n,WrappedComponent:t,initMapStateToProps:f,initMapDispatchToProps:p,initMergeProps:m,areStatesEqual:a,areStatePropsEqual:l,areOwnPropsEqual:i,areMergedPropsEqual:s};function u(n){const[r,a,i]=e.useMemo((()=>{const{reactReduxForwardedRef:e}=n,t=C(n,$);return[n.context,e,t]}),[n]),l=e.useMemo((()=>r&&r.Consumer&&(0,N.isContextConsumer)(e.createElement(r.Consumer,null))?r:d),[r,d]),s=e.useContext(l),c=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch),u=Boolean(s)&&Boolean(s.store),f=c?n.store:s.store,p=u?s.getServerState:f.getState,m=e.useMemo((()=>function(e,t){let{initMapStateToProps:n,initMapDispatchToProps:r,initMergeProps:o}=t,a=C(t,I);return _(n(e,a),r(e,a),o(e,a),e,a)}(f.dispatch,o)),[f]),[h,b]=e.useMemo((()=>{if(!g)return H;const e=B(f,c?void 0:s.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[f,c,s]),y=e.useMemo((()=>c?s:O({},s,{subscription:h})),[c,s,h]),v=e.useRef(),w=e.useRef(i),E=e.useRef(),x=e.useRef(!1),S=(e.useRef(!1),e.useRef(!1)),k=e.useRef();F((()=>(S.current=!0,()=>{S.current=!1})),[]);const P=e.useMemo((()=>()=>E.current&&i===w.current?E.current:m(f.getState(),i)),[f,i]),D=e.useMemo((()=>e=>h?function(e,t,n,r,o,a,i,l,s,c,u){if(!e)return()=>{};let d=!1,f=null;const p=()=>{if(d||!l.current)return;const e=t.getState();let n,p;try{n=r(e,o.current)}catch(e){p=e,f=e}p||(f=null),n===a.current?i.current||c():(a.current=n,s.current=n,i.current=!0,u())};return n.onStateChange=p,n.trySubscribe(),p(),()=>{if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,f)throw f}}(g,f,h,m,w,v,x,S,E,b,e):()=>{}),[h]);var R,T;let A;R=G,T=[w,v,x,i,E,b],F((()=>R(...T)),undefined);try{A=W(D,P,p?()=>m(p(),i):P)}catch(e){throw k.current&&(e.message+=`\nThe error may be correlated with this previous error:\n${k.current.stack}\n\n`),e}F((()=>{k.current=void 0,E.current=void 0,v.current=A}));const j=e.useMemo((()=>e.createElement(t,O({},A,{ref:a}))),[a,t,A]);return e.useMemo((()=>g?e.createElement(l.Provider,{value:y},j):j),[l,j,y])}const h=e.memo(u);if(h.WrappedComponent=t,h.displayName=u.displayName=r,c){const n=e.forwardRef((function(t,n){return e.createElement(h,O({},t,{reactReduxForwardedRef:n}))}));return n.displayName=r,n.WrappedComponent=t,D()(n,t)}return D()(h,t)}},K=function({store:t,context:n,children:r,serverState:o,stabilityCheck:a="once",noopCheck:i="once"}){const l=e.useMemo((()=>{const e=B(t);return{store:t,subscription:e,getServerState:o?()=>o:void 0,stabilityCheck:a,noopCheck:i}}),[t,o,a,i]),s=e.useMemo((()=>t.getState()),[t]);F((()=>{const{subscription:e}=l;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),s!==t.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}}),[l,s]);const c=n||S;return e.createElement(c.Provider,{value:l},r)};var Q;function Y(t,n){var r=(0,e.useState)((function(){return{inputs:n,result:t()}}))[0],o=(0,e.useRef)(!0),a=(0,e.useRef)(r),i=o.current||Boolean(n&&a.current.inputs&&function(e,t){if(e.length!==t.length)return!1;for(var n=0;n{W=e})(h.useSyncExternalStore),Q=r.unstable_batchedUpdates,y=Q;var X=Y,J=function(e,t){return Y((function(){return e}),t)},Z=function(e){var t=e.top,n=e.right,r=e.bottom,o=e.left;return{top:t,right:n,bottom:r,left:o,width:n-o,height:r-t,x:o,y:t,center:{x:(n+o)/2,y:(r+t)/2}}},ee=function(e,t){return{top:e.top-t.top,left:e.left-t.left,bottom:e.bottom+t.bottom,right:e.right+t.right}},te=function(e,t){return{top:e.top+t.top,left:e.left+t.left,bottom:e.bottom-t.bottom,right:e.right-t.right}},ne={top:0,right:0,bottom:0,left:0},re=function(e){var t=e.borderBox,n=e.margin,r=void 0===n?ne:n,o=e.border,a=void 0===o?ne:o,i=e.padding,l=void 0===i?ne:i,s=Z(ee(t,r)),c=Z(te(t,a)),u=Z(te(c,l));return{marginBox:s,borderBox:Z(t),paddingBox:c,contentBox:u,margin:r,border:a,padding:l}},oe=function(e){var t=e.slice(0,-2);if("px"!==e.slice(-2))return 0;var n=Number(t);return isNaN(n)&&function(e,t){throw new Error("Invariant failed")}(),n},ae=function(e,t){var n,r,o=e.borderBox,a=e.border,i=e.margin,l=e.padding,s=(r=t,{top:(n=o).top+r.y,left:n.left+r.x,bottom:n.bottom+r.y,right:n.right+r.x});return re({borderBox:s,border:a,margin:i,padding:l})},ie=function(e,t){return void 0===t&&(t={x:window.pageXOffset,y:window.pageYOffset}),ae(e,t)},le=function(e,t){var n={top:oe(t.marginTop),right:oe(t.marginRight),bottom:oe(t.marginBottom),left:oe(t.marginLeft)},r={top:oe(t.paddingTop),right:oe(t.paddingRight),bottom:oe(t.paddingBottom),left:oe(t.paddingLeft)},o={top:oe(t.borderTopWidth),right:oe(t.borderRightWidth),bottom:oe(t.borderBottomWidth),left:oe(t.borderLeftWidth)};return re({borderBox:e,margin:n,padding:r,border:o})},se=function(e){var t=e.getBoundingClientRect(),n=window.getComputedStyle(e);return le(t,n)},ce=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function ue(e,t){if(e.length!==t.length)return!1;for(var n=0;n{const r=(o=n,a=t.options,{...o,...a});var o,a;return e.addEventListener(t.eventName,t.fn,r),function(){e.removeEventListener(t.eventName,t.fn,r)}}));return function(){r.forEach((e=>{e()}))}}pe.bind(null,"warn"),pe.bind(null,"error");const he=!0,be="Invariant failed";class ye extends Error{}function ve(e,t){if(!e)throw new ye(he?be:`${be}: ${t||""}`)}ye.prototype.toString=function(){return this.message};class we extends e.Component{constructor(){super(...arguments),this.callbacks=null,this.unbind=me,this.onWindowError=e=>{const t=this.getCallbacks();t.isDragging()&&t.tryAbort(),e.error instanceof ye&&e.preventDefault()},this.getCallbacks=()=>{if(!this.callbacks)throw new Error("Unable to find AppCallbacks in ");return this.callbacks},this.setCallbacks=e=>{this.callbacks=e}}componentDidMount(){this.unbind=ge(window,[{eventName:"error",fn:this.onWindowError}])}componentDidCatch(e){if(!(e instanceof ye))throw e;this.setState({})}componentWillUnmount(){this.unbind()}render(){return this.props.children(this.setCallbacks)}}const Ee=e=>e+1,xe=(e,t)=>{const n=e.droppableId===t.droppableId,r=Ee(e.index),o=Ee(t.index);return n?`\n You have moved the item from position ${r}\n to position ${o}\n `:`\n You have moved the item from position ${r}\n in list ${e.droppableId}\n to list ${t.droppableId}\n in position ${o}\n `},Se=(e,t,n)=>t.droppableId===n.droppableId?`\n The item ${e}\n has been combined with ${n.draggableId}`:`\n The item ${e}\n in list ${t.droppableId}\n has been combined with ${n.draggableId}\n in list ${n.droppableId}\n `,ke=e=>`\n The item has returned to its starting position\n of ${Ee(e.index)}\n`,Oe={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 ${Ee(e.source.index)}\n`,onDragUpdate:e=>{const t=e.destination;if(t)return xe(e.source,t);const n=e.combine;return n?Se(e.draggableId,e.source,n):"You are over an area that cannot be dropped on"},onDragEnd:e=>{if("CANCEL"===e.reason)return`\n Movement cancelled.\n ${ke(e.source)}\n `;const t=e.destination,n=e.combine;return t?`\n You have dropped the item.\n ${xe(e.source,t)}\n `:n?`\n You have dropped the item.\n ${Se(e.draggableId,e.source,n)}\n `:`\n The item has been dropped while not over a drop area.\n ${ke(e.source)}\n `}};var Ce=Oe;const Pe={x:0,y:0},De=(e,t)=>({x:e.x+t.x,y:e.y+t.y}),Ne=(e,t)=>({x:e.x-t.x,y:e.y-t.y}),Ie=(e,t)=>e.x===t.x&&e.y===t.y,_e=e=>({x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}),Re=function(e,t,n){return void 0===n&&(n=0),"x"===e?{x:t,y:n}:{x:n,y:t}},Te=(e,t)=>Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2),Ae=(e,t)=>Math.min(...t.map((t=>Te(e,t)))),je=e=>t=>({x:e(t.x),y:e(t.y)}),Le=(e,t)=>({top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}),Me=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}],Be=(e,t)=>t&&t.shouldClipSubject?((e,t)=>{const n=Z({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 n.width<=0||n.height<=0?null:n})(t.pageMarginBox,e):Z(e);var Fe=e=>{let{page:t,withPlaceholder:n,axis:r,frame:o}=e;const a=((e,t)=>t?Le(e,t.scroll.diff.displacement):e)(t.marginBox,o),i=((e,t,n)=>n&&n.increasedBy?{...e,[t.end]:e[t.end]+n.increasedBy[t.line]}:e)(a,r,n);return{page:t,withPlaceholder:n,active:Be(i,o)}},ze=(e,t)=>{e.frame||ve(!1);const n=e.frame,r=Ne(t,n.scroll.initial),o=_e(r),a={...n,scroll:{initial:n.scroll.initial,current:t,diff:{value:r,displacement:o},max:n.scroll.max}},i=Fe({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:a});return{...e,frame:a,subject:i}};const Ue=de((e=>e.reduce(((e,t)=>(e[t.descriptor.id]=t,e)),{}))),$e=de((e=>e.reduce(((e,t)=>(e[t.descriptor.id]=t,e)),{}))),We=de((e=>Object.values(e))),He=de((e=>Object.values(e)));var Ge=de(((e,t)=>{const n=He(t).filter((t=>e===t.descriptor.droppableId)).sort(((e,t)=>e.descriptor.index-t.descriptor.index));return n}));function Ve(e){return e.at&&"REORDER"===e.at.type?e.at.destination:null}function qe(e){return e.at&&"COMBINE"===e.at.type?e.at.combine:null}var Ke=de(((e,t)=>t.filter((t=>t.descriptor.id!==e.descriptor.id)))),Qe=(e,t)=>e.descriptor.droppableId===t.descriptor.id;const Ye={point:Pe,value:0},Xe={invisible:{},visible:{},all:[]};var Je={displaced:Xe,displacedBy:Ye,at:null},Ze=(e,t)=>n=>e<=n&&n<=t,et=e=>{const t=Ze(e.top,e.bottom),n=Ze(e.left,e.right);return r=>{if(t(r.top)&&t(r.bottom)&&n(r.left)&&n(r.right))return!0;const o=t(r.top)||t(r.bottom),a=n(r.left)||n(r.right);if(o&&a)return!0;const i=r.tope.bottom,l=r.lefte.right;return!(!i||!l)||(i&&a||l&&o)}},tt=e=>{const t=Ze(e.top,e.bottom),n=Ze(e.left,e.right);return e=>t(e.top)&&t(e.bottom)&&n(e.left)&&n(e.right)};const nt={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},rt={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},ot=e=>{let{target:t,destination:n,viewport:r,withDroppableDisplacement:o,isVisibleThroughFrameFn:a}=e;const i=o?((e,t)=>{const n=t.frame?t.frame.scroll.diff.displacement:Pe;return Le(e,n)})(t,n):t;return((e,t,n)=>!!t.subject.active&&n(t.subject.active)(e))(i,n,a)&&((e,t,n)=>n(t)(e))(i,r,a)},at=e=>ot({...e,isVisibleThroughFrameFn:et}),it=e=>ot({...e,isVisibleThroughFrameFn:tt}),lt=(e,t,n)=>{if("boolean"==typeof n)return n;if(!t)return!0;const{invisible:r,visible:o}=t;if(r[e])return!1;const a=o[e];return!a||a.shouldAnimate};function st(e){let{afterDragging:t,destination:n,displacedBy:r,viewport:o,forceShouldAnimate:a,last:i}=e;return t.reduce((function(e,t){const l=function(e,t){const n=e.page.marginBox,r={top:t.point.y,right:0,bottom:0,left:t.point.x};return Z(ee(n,r))}(t,r),s=t.descriptor.id;if(e.all.push(s),!at({target:l,destination:n,viewport:o,withDroppableDisplacement:!0}))return e.invisible[t.descriptor.id]=!0,e;const c={draggableId:s,shouldAnimate:lt(s,i,a)};return e.visible[s]=c,e}),{all:[],visible:{},invisible:{}})}function ct(e){let{insideDestination:t,inHomeList:n,displacedBy:r,destination:o}=e;const a=function(e,t){if(!e.length)return 0;const n=e[e.length-1].descriptor.index;return t.inHomeList?n:n+1}(t,{inHomeList:n});return{displaced:Xe,displacedBy:r,at:{type:"REORDER",destination:{droppableId:o.descriptor.id,index:a}}}}function ut(e){let{draggable:t,insideDestination:n,destination:r,viewport:o,displacedBy:a,last:i,index:l,forceShouldAnimate:s}=e;const c=Qe(t,r);if(null==l)return ct({insideDestination:n,inHomeList:c,displacedBy:a,destination:r});const u=n.find((e=>e.descriptor.index===l));if(!u)return ct({insideDestination:n,inHomeList:c,displacedBy:a,destination:r});const d=Ke(t,n),f=n.indexOf(u);return{displaced:st({afterDragging:d.slice(f),destination:r,displacedBy:a,last:i,viewport:o.frame,forceShouldAnimate:s}),displacedBy:a,at:{type:"REORDER",destination:{droppableId:r.descriptor.id,index:l}}}}function dt(e,t){return Boolean(t.effected[e])}const ft=(e,t)=>t.margin[e.start]+t.borderBox[e.size]/2,pt=(e,t,n)=>t[e.crossAxisStart]+n.margin[e.crossAxisStart]+n.borderBox[e.crossAxisSize]/2,mt=e=>{let{axis:t,moveRelativeTo:n,isMoving:r}=e;return Re(t.line,n.marginBox[t.end]+ft(t,r),pt(t,n.marginBox,r))},gt=e=>{let{axis:t,moveRelativeTo:n,isMoving:r}=e;return Re(t.line,n.marginBox[t.start]-((e,t)=>t.margin[e.end]+t.borderBox[e.size]/2)(t,r),pt(t,n.marginBox,r))};var ht=(e,t)=>{const n=e.frame;return n?De(t,n.scroll.diff.displacement):t},bt=e=>{const t=(e=>{let{impact:t,draggable:n,droppable:r,draggables:o,afterCritical:a}=e;const i=n.page.borderBox.center,l=t.at;return r&&l?"REORDER"===l.type?(e=>{let{impact:t,draggable:n,draggables:r,droppable:o,afterCritical:a}=e;const i=Ge(o.descriptor.id,r),l=n.page,s=o.axis;if(!i.length)return(e=>{let{axis:t,moveInto:n,isMoving:r}=e;return Re(t.line,n.contentBox[t.start]+ft(t,r),pt(t,n.contentBox,r))})({axis:s,moveInto:o.page,isMoving:l});const{displaced:c,displacedBy:u}=t,d=c.all[0];if(d){const e=r[d];if(dt(d,a))return gt({axis:s,moveRelativeTo:e.page,isMoving:l});const t=ae(e.page,u.point);return gt({axis:s,moveRelativeTo:t,isMoving:l})}const f=i[i.length-1];if(f.descriptor.id===n.descriptor.id)return l.borderBox.center;if(dt(f.descriptor.id,a)){const e=ae(f.page,_e(a.displacedBy.point));return mt({axis:s,moveRelativeTo:e,isMoving:l})}return mt({axis:s,moveRelativeTo:f.page,isMoving:l})})({impact:t,draggable:n,draggables:o,droppable:r,afterCritical:a}):(e=>{let{afterCritical:t,impact:n,draggables:r}=e;const o=qe(n);o||ve(!1);const a=o.draggableId,i=r[a].page.borderBox.center,l=(e=>{let{displaced:t,afterCritical:n,combineWith:r,displacedBy:o}=e;const a=Boolean(t.visible[r]||t.invisible[r]);return dt(r,n)?a?Pe:_e(o.point):a?o.point:Pe})({displaced:n.displaced,afterCritical:t,combineWith:a,displacedBy:n.displacedBy});return De(i,l)})({impact:t,draggables:o,afterCritical:a}):i})(e),n=e.droppable;return n?ht(n,t):t},yt=(e,t)=>{const n=Ne(t,e.scroll.initial),r=_e(n);return{frame:Z({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:n,displacement:r}}}};function vt(e,t){return e.map((e=>t[e]))}var wt=e=>{let{pageBorderBoxCenter:t,draggable:n,viewport:r}=e;const o=((e,t)=>De(e.scroll.diff.displacement,t))(r,t),a=Ne(o,n.page.borderBox.center);return De(n.client.borderBox.center,a)},Et=e=>{let{draggable:t,destination:n,newPageBorderBoxCenter:r,viewport:o,withDroppableDisplacement:a,onlyOnMainAxis:i=!1}=e;const l=Ne(r,t.page.borderBox.center),s={target:Le(t.page.borderBox,l),destination:n,withDroppableDisplacement:a,viewport:o};return i?(e=>{return ot({...e,isVisibleThroughFrameFn:(t=e.destination.axis,e=>{const n=Ze(e.top,e.bottom),r=Ze(e.left,e.right);return e=>t===nt?n(e.top)&&n(e.bottom):r(e.left)&&r(e.right)})});var t})(s):it(s)},xt=e=>{let{isMovingForward:t,draggable:n,destination:r,draggables:o,previousImpact:a,viewport:i,previousPageBorderBoxCenter:l,previousClientSelection:s,afterCritical:c}=e;if(!r.isEnabled)return null;const u=Ge(r.descriptor.id,o),d=Qe(n,r),f=(e=>{let{isMovingForward:t,draggable:n,destination:r,insideDestination:o,previousImpact:a}=e;if(!r.isCombineEnabled)return null;if(!Ve(a))return null;function i(e){const t={type:"COMBINE",combine:{draggableId:e,droppableId:r.descriptor.id}};return{...a,at:t}}const l=a.displaced.all,s=l.length?l[0]:null;if(t)return s?i(s):null;const c=Ke(n,o);if(!s)return c.length?i(c[c.length-1].descriptor.id):null;const u=c.findIndex((e=>e.descriptor.id===s));-1===u&&ve(!1);const d=u-1;return d<0?null:i(c[d].descriptor.id)})({isMovingForward:t,draggable:n,destination:r,insideDestination:u,previousImpact:a})||(e=>{let{isMovingForward:t,isInHomeList:n,draggable:r,draggables:o,destination:a,insideDestination:i,previousImpact:l,viewport:s,afterCritical:c}=e;const u=l.at;if(u||ve(!1),"REORDER"===u.type){const e=(e=>{let{isMovingForward:t,isInHomeList:n,insideDestination:r,location:o}=e;if(!r.length)return null;const a=o.index,i=t?a+1:a-1,l=r[0].descriptor.index,s=r[r.length-1].descriptor.index;return i(n?s:s+1)?null:i})({isMovingForward:t,isInHomeList:n,location:u.destination,insideDestination:i});return null==e?null:ut({draggable:r,insideDestination:i,destination:a,viewport:s,last:l.displaced,displacedBy:l.displacedBy,index:e})}const d=(e=>{let{isMovingForward:t,destination:n,draggables:r,combine:o,afterCritical:a}=e;if(!n.isCombineEnabled)return null;const i=o.draggableId,l=r[i].descriptor.index;return dt(i,a)?t?l:l-1:t?l+1:l})({isMovingForward:t,destination:a,displaced:l.displaced,draggables:o,combine:u.combine,afterCritical:c});return null==d?null:ut({draggable:r,insideDestination:i,destination:a,viewport:s,last:l.displaced,displacedBy:l.displacedBy,index:d})})({isMovingForward:t,isInHomeList:d,draggable:n,draggables:o,destination:r,insideDestination:u,previousImpact:a,viewport:i,afterCritical:c});if(!f)return null;const p=bt({impact:f,draggable:n,droppable:r,draggables:o,afterCritical:c});if(Et({draggable:n,destination:r,newPageBorderBoxCenter:p,viewport:i.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:wt({pageBorderBoxCenter:p,draggable:n,viewport:i}),impact:f,scrollJumpRequest:null};const m=Ne(p,l),g=(e=>{let{impact:t,viewport:n,destination:r,draggables:o,maxScrollChange:a}=e;const i=yt(n,De(n.scroll.current,a)),l=r.frame?ze(r,De(r.frame.scroll.current,a)):r,s=t.displaced,c=st({afterDragging:vt(s.all,o),destination:r,displacedBy:t.displacedBy,viewport:i.frame,last:s,forceShouldAnimate:!1}),u=st({afterDragging:vt(s.all,o),destination:l,displacedBy:t.displacedBy,viewport:n.frame,last:s,forceShouldAnimate:!1}),d={},f={},p=[s,c,u];return s.all.forEach((e=>{const t=function(e,t){for(let n=0;n{const t=e.subject.active;return t||ve(!1),t},kt=(e,t)=>{const n=e.page.borderBox.center;return dt(e.descriptor.id,t)?Ne(n,t.displacedBy.point):n},Ot=(e,t)=>{const n=e.page.borderBox;return dt(e.descriptor.id,t)?Le(n,_e(t.displacedBy.point)):n};var Ct=de((function(e,t){const n=t[e.line];return{value:n,point:Re(e.line,n)}}));const Pt=(e,t)=>({...e,scroll:{...e.scroll,max:t}}),Dt=(e,t,n)=>{const r=e.frame;Qe(t,e)&&ve(!1),e.subject.withPlaceholder&&ve(!1);const o=Ct(e.axis,t.displaceBy).point,a=((e,t,n)=>{const r=e.axis;if("virtual"===e.descriptor.mode)return Re(r.line,t[r.line]);const o=e.subject.page.contentBox[r.size],a=Ge(e.descriptor.id,n).reduce(((e,t)=>e+t.client.marginBox[r.size]),0)+t[r.line]-o;return a<=0?null:Re(r.line,a)})(e,o,n),i={placeholderSize:o,increasedBy:a,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!r){const t=Fe({page:e.subject.page,withPlaceholder:i,axis:e.axis,frame:e.frame});return{...e,subject:t}}const l=a?De(r.scroll.max,a):r.scroll.max,s=Pt(r,l),c=Fe({page:e.subject.page,withPlaceholder:i,axis:e.axis,frame:s});return{...e,subject:c,frame:s}};var Nt=e=>{const t=e.at;return t?"REORDER"===t.type?t.destination.droppableId:t.combine.droppableId:null},It=e=>{let{state:t,type:n}=e;const r=((e,t)=>{const n=Nt(e);return n?t[n]:null})(t.impact,t.dimensions.droppables),o=Boolean(r),a=t.dimensions.droppables[t.critical.droppable.id],i=r||a,l=i.axis.direction,s="vertical"===l&&("MOVE_UP"===n||"MOVE_DOWN"===n)||"horizontal"===l&&("MOVE_LEFT"===n||"MOVE_RIGHT"===n);if(s&&!o)return null;const c="MOVE_DOWN"===n||"MOVE_RIGHT"===n,u=t.dimensions.draggables[t.critical.draggable.id],d=t.current.page.borderBoxCenter,{draggables:f,droppables:p}=t.dimensions;return s?xt({isMovingForward:c,previousPageBorderBoxCenter:d,draggable:u,destination:i,draggables:f,viewport:t.viewport,previousClientSelection:t.current.client.selection,previousImpact:t.impact,afterCritical:t.afterCritical}):(e=>{let{isMovingForward:t,previousPageBorderBoxCenter:n,draggable:r,isOver:o,draggables:a,droppables:i,viewport:l,afterCritical:s}=e;const c=(e=>{let{isMovingForward:t,pageBorderBoxCenter:n,source:r,droppables:o,viewport:a}=e;const i=r.subject.active;if(!i)return null;const l=r.axis,s=Ze(i[l.start],i[l.end]),c=We(o).filter((e=>e!==r)).filter((e=>e.isEnabled)).filter((e=>Boolean(e.subject.active))).filter((e=>et(a.frame)(St(e)))).filter((e=>{const n=St(e);return t?i[l.crossAxisEnd]{const t=St(e),n=Ze(t[l.start],t[l.end]);return s(t[l.start])||s(t[l.end])||n(i[l.start])||n(i[l.end])})).sort(((e,n)=>{const r=St(e)[l.crossAxisStart],o=St(n)[l.crossAxisStart];return t?r-o:o-r})).filter(((e,t,n)=>St(e)[l.crossAxisStart]===St(n[0])[l.crossAxisStart]));if(!c.length)return null;if(1===c.length)return c[0];const u=c.filter((e=>Ze(St(e)[l.start],St(e)[l.end])(n[l.line])));return 1===u.length?u[0]:u.length>1?u.sort(((e,t)=>St(e)[l.start]-St(t)[l.start]))[0]:c.sort(((e,t)=>{const r=Ae(n,Me(St(e))),o=Ae(n,Me(St(t)));return r!==o?r-o:St(e)[l.start]-St(t)[l.start]}))[0]})({isMovingForward:t,pageBorderBoxCenter:n,source:o,droppables:i,viewport:l});if(!c)return null;const u=Ge(c.descriptor.id,a),d=(e=>{let{pageBorderBoxCenter:t,viewport:n,destination:r,insideDestination:o,afterCritical:a}=e;const i=o.filter((e=>it({target:Ot(e,a),destination:r,viewport:n.frame,withDroppableDisplacement:!0}))).sort(((e,n)=>{const o=Te(t,ht(r,kt(e,a))),i=Te(t,ht(r,kt(n,a)));return o{let{previousPageBorderBoxCenter:t,moveRelativeTo:n,insideDestination:r,draggable:o,draggables:a,destination:i,viewport:l,afterCritical:s}=e;if(!n){if(r.length)return null;const e={displaced:Xe,displacedBy:Ye,at:{type:"REORDER",destination:{droppableId:i.descriptor.id,index:0}}},t=bt({impact:e,draggable:o,droppable:i,draggables:a,afterCritical:s}),n=Qe(o,i)?i:Dt(i,o,a);return Et({draggable:o,destination:n,newPageBorderBoxCenter:t,viewport:l.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?e:null}const c=Boolean(t[i.axis.line]<=n.page.borderBox.center[i.axis.line]),u=(()=>{const e=n.descriptor.index;return n.descriptor.id===o.descriptor.id||c?e:e+1})(),d=Ct(i.axis,o.displaceBy);return ut({draggable:o,insideDestination:r,destination:i,viewport:l,displacedBy:d,last:Xe,index:u})})({previousPageBorderBoxCenter:n,destination:c,draggable:r,draggables:a,moveRelativeTo:d,insideDestination:u,viewport:l,afterCritical:s});if(!f)return null;const p=bt({impact:f,draggable:r,droppable:c,draggables:a,afterCritical:s});return{clientSelection:wt({pageBorderBoxCenter:p,draggable:r,viewport:l}),impact:f,scrollJumpRequest:null}})({isMovingForward:c,previousPageBorderBoxCenter:d,draggable:u,isOver:i,draggables:f,droppables:p,viewport:t.viewport,afterCritical:t.afterCritical})};function _t(e){return"DRAGGING"===e.phase||"COLLECTING"===e.phase}function Rt(e){const t=Ze(e.top,e.bottom),n=Ze(e.left,e.right);return function(e){return t(e.y)&&n(e.x)}}const Tt=(e,t)=>Z(Le(e,t));function At(e){let{displaced:t,id:n}=e;return Boolean(t.visible[n]||t.invisible[n])}var jt=e=>{let{pageOffset:t,draggable:n,draggables:r,droppables:o,previousImpact:a,viewport:i,afterCritical:l}=e;const s=Tt(n.page.borderBox,t),c=function(e){let{pageBorderBox:t,draggable:n,droppables:r}=e;const o=We(r).filter((e=>{if(!e.isEnabled)return!1;const n=e.subject.active;if(!n)return!1;if(o=n,!((r=t).lefto.left&&r.topo.top))return!1;var r,o;if(Rt(n)(t.center))return!0;const a=e.axis,i=n.center[a.crossAxisLine],l=t[a.crossAxisStart],s=t[a.crossAxisEnd],c=Ze(n[a.crossAxisStart],n[a.crossAxisEnd]),u=c(l),d=c(s);return!u&&!d||(u?li)}));return o.length?1===o.length?o[0].descriptor.id:function(e){let{pageBorderBox:t,draggable:n,candidates:r}=e;const o=n.page.borderBox.center,a=r.map((e=>{const n=e.axis,r=Re(e.axis.line,t.center[n.line],e.page.borderBox.center[n.crossAxisLine]);return{id:e.descriptor.id,distance:Te(o,r)}})).sort(((e,t)=>t.distance-e.distance));return a[0]?a[0].id:null}({pageBorderBox:t,draggable:n,candidates:o}):null}({pageBorderBox:s,draggable:n,droppables:o});if(!c)return Je;const u=o[c],d=Ge(u.descriptor.id,r),f=((e,t)=>{const n=e.frame;return n?Tt(t,n.scroll.diff.value):t})(u,s);return(e=>{let{draggable:t,pageBorderBoxWithDroppableScroll:n,previousImpact:r,destination:o,insideDestination:a,afterCritical:i}=e;if(!o.isCombineEnabled)return null;const l=o.axis,s=Ct(o.axis,t.displaceBy),c=s.value,u=n[l.start],d=n[l.end],f=Ke(t,a).find((e=>{const t=e.descriptor.id,n=e.page.borderBox,o=n[l.size]/4,a=dt(t,i),s=At({displaced:r.displaced,id:t});return a?s?d>n[l.start]+o&&dn[l.start]-c+o&&un[l.start]+c+o&&dn[l.start]+o&&u{let{pageBorderBoxWithDroppableScroll:t,draggable:n,destination:r,insideDestination:o,last:a,viewport:i,afterCritical:l}=e;const s=r.axis,c=Ct(r.axis,n.displaceBy),u=c.value,d=t[s.start],f=t[s.end],p=function(e){let{draggable:t,closest:n,inHomeList:r}=e;return n?r&&n.descriptor.index>t.descriptor.index?n.descriptor.index-1:n.descriptor.index:null}({draggable:n,closest:Ke(n,o).find((e=>{const t=e.descriptor.id,n=e.page.borderBox.center[s.line],r=dt(t,l),o=At({displaced:a,id:t});return r?o?f<=n:d({...e,[t.descriptor.id]:t});var Mt=e=>{let{state:t,clientSelection:n,dimensions:r,viewport:o,impact:a,scrollJumpRequest:i}=e;const l=o||t.viewport,s=r||t.dimensions,c=n||t.current.client.selection,u=Ne(c,t.initial.client.selection),d={offset:u,selection:c,borderBoxCenter:De(t.initial.client.borderBoxCenter,u)},f={selection:De(d.selection,l.scroll.current),borderBoxCenter:De(d.borderBoxCenter,l.scroll.current),offset:De(d.offset,l.scroll.diff.value)},p={client:d,page:f};if("COLLECTING"===t.phase)return{...t,dimensions:s,viewport:l,current:p};const m=s.draggables[t.critical.draggable.id],g=a||jt({pageOffset:f.offset,draggable:m,draggables:s.draggables,droppables:s.droppables,previousImpact:t.impact,viewport:l,afterCritical:t.afterCritical}),h=(e=>{let{draggable:t,draggables:n,droppables:r,previousImpact:o,impact:a}=e;const i=(e=>{let{previousImpact:t,impact:n,droppables:r}=e;const o=Nt(t),a=Nt(n);if(!o)return r;if(o===a)return r;const i=r[o];if(!i.subject.withPlaceholder)return r;const l=(e=>{const t=e.subject.withPlaceholder;t||ve(!1);const n=e.frame;if(!n){const t=Fe({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null});return{...e,subject:t}}const r=t.oldFrameMaxScroll;r||ve(!1);const o=Pt(n,r),a=Fe({page:e.subject.page,axis:e.axis,frame:o,withPlaceholder:null});return{...e,subject:a,frame:o}})(i);return Lt(r,l)})({previousImpact:o,impact:a,droppables:r}),l=Nt(a);if(!l)return i;const s=r[l];if(Qe(t,s))return i;if(s.subject.withPlaceholder)return i;const c=Dt(s,t,n);return Lt(i,c)})({draggable:m,impact:g,previousImpact:t.impact,draggables:s.draggables,droppables:s.droppables});return{...t,current:p,dimensions:{draggables:s.draggables,droppables:h},impact:g,viewport:l,scrollJumpRequest:i||null,forceShouldAnimate:!i&&null}},Bt=e=>{let{impact:t,viewport:n,draggables:r,destination:o,forceShouldAnimate:a}=e;const i=t.displaced,l=function(e,t){return e.map((e=>t[e]))}(i.all,r),s=st({afterDragging:l,destination:o,displacedBy:t.displacedBy,viewport:n.frame,forceShouldAnimate:a,last:i});return{...t,displaced:s}},Ft=e=>{let{impact:t,draggable:n,droppable:r,draggables:o,viewport:a,afterCritical:i}=e;const l=bt({impact:t,draggable:n,draggables:o,droppable:r,afterCritical:i});return wt({pageBorderBoxCenter:l,draggable:n,viewport:a})},zt=e=>{let{state:t,dimensions:n,viewport:r}=e;"SNAP"!==t.movementMode&&ve(!1);const o=t.impact,a=r||t.viewport,i=n||t.dimensions,{draggables:l,droppables:s}=i,c=l[t.critical.draggable.id],u=Nt(o);u||ve(!1);const d=s[u],f=Bt({impact:o,viewport:a,destination:d,draggables:l}),p=Ft({impact:f,draggable:c,droppable:d,draggables:l,viewport:a,afterCritical:t.afterCritical});return Mt({impact:f,clientSelection:p,state:t,dimensions:i,viewport:a})},Ut=e=>{let{draggable:t,home:n,draggables:r,viewport:o}=e;const a=Ct(n.axis,t.displaceBy),i=Ge(n.descriptor.id,r),l=i.indexOf(t);-1===l&&ve(!1);const s=i.slice(l+1),c=s.reduce(((e,t)=>(e[t.descriptor.id]=!0,e)),{}),u={inVirtualList:"virtual"===n.descriptor.mode,displacedBy:a,effected:c};var d;return{impact:{displaced:st({afterDragging:s,destination:n,displacedBy:a,last:null,viewport:o.frame,forceShouldAnimate:!1}),displacedBy:a,at:{type:"REORDER",destination:(d=t.descriptor,{index:d.index,droppableId:d.droppableId})}},afterCritical:u}};const $t=e=>"SNAP"===e.movementMode,Wt=(e,t,n)=>{const r=((e,t)=>({draggables:e.draggables,droppables:Lt(e.droppables,t)}))(e.dimensions,t);return!$t(e)||n?Mt({state:e,dimensions:r}):zt({state:e,dimensions:r})};function Ht(e){return e.isDragging&&"SNAP"===e.movementMode?{...e,scrollJumpRequest:null}:e}const Gt={phase:"IDLE",completed:null,shouldFlush:!1};var Vt=function(e,t){if(void 0===e&&(e=Gt),"FLUSH"===t.type)return{...Gt,shouldFlush:!0};if("INITIAL_PUBLISH"===t.type){"IDLE"!==e.phase&&ve(!1);const{critical:n,clientSelection:r,viewport:o,dimensions:a,movementMode:i}=t.payload,l=a.draggables[n.draggable.id],s=a.droppables[n.droppable.id],c={selection:r,borderBoxCenter:l.client.borderBox.center,offset:Pe},u={client:c,page:{selection:De(c.selection,o.scroll.initial),borderBoxCenter:De(c.selection,o.scroll.initial),offset:De(c.selection,o.scroll.diff.value)}},d=We(a.droppables).every((e=>!e.isFixedOnPage)),{impact:f,afterCritical:p}=Ut({draggable:l,home:s,draggables:a.draggables,viewport:o});return{phase:"DRAGGING",isDragging:!0,critical:n,movementMode:i,dimensions:a,initial:u,current:u,isWindowScrollAllowed:d,impact:f,afterCritical:p,onLiftImpact:f,viewport:o,scrollJumpRequest:null,forceShouldAnimate:null}}if("COLLECTION_STARTING"===t.type)return"COLLECTING"===e.phase||"DROP_PENDING"===e.phase?e:("DRAGGING"!==e.phase&&ve(!1),{...e,phase:"COLLECTING"});if("PUBLISH_WHILE_DRAGGING"===t.type)return"COLLECTING"!==e.phase&&"DROP_PENDING"!==e.phase&&ve(!1),(e=>{let{state:t,published:n}=e;const r=n.modified.map((e=>{const n=t.dimensions.droppables[e.droppableId];return ze(n,e.scroll)})),o={...t.dimensions.droppables,...Ue(r)},a=$e((e=>{let{additions:t,updatedDroppables:n,viewport:r}=e;const o=r.scroll.diff.value;return t.map((e=>{const t=e.descriptor.droppableId,a=(e=>{const t=e.frame;return t||ve(!1),t})(n[t]),i=a.scroll.diff.value,l=(e=>{let{draggable:t,offset:n,initialWindowScroll:r}=e;const o=ae(t.client,n),a=ie(o,r);return{...t,placeholder:{...t.placeholder,client:o},client:o,page:a}})({draggable:e,offset:De(o,i),initialWindowScroll:r.scroll.initial});return l}))})({additions:n.additions,updatedDroppables:o,viewport:t.viewport})),i={...t.dimensions.draggables,...a};n.removals.forEach((e=>{delete i[e]}));const l={droppables:o,draggables:i},s=Nt(t.impact),c=s?l.droppables[s]:null,u=l.draggables[t.critical.draggable.id],d=l.droppables[t.critical.droppable.id],{impact:f,afterCritical:p}=Ut({draggable:u,home:d,draggables:i,viewport:t.viewport}),m=c&&c.isCombineEnabled?t.impact:f,g=jt({pageOffset:t.current.page.offset,draggable:l.draggables[t.critical.draggable.id],draggables:l.draggables,droppables:l.droppables,previousImpact:m,viewport:t.viewport,afterCritical:p}),h={...t,phase:"DRAGGING",impact:g,onLiftImpact:f,dimensions:l,afterCritical:p,forceShouldAnimate:!1};return"COLLECTING"===t.phase?h:{...h,phase:"DROP_PENDING",reason:t.reason,isWaiting:!1}})({state:e,published:t.payload});if("MOVE"===t.type){if("DROP_PENDING"===e.phase)return e;_t(e)||ve(!1);const{client:n}=t.payload;return Ie(n,e.current.client.selection)?e:Mt({state:e,clientSelection:n,impact:$t(e)?e.impact:null})}if("UPDATE_DROPPABLE_SCROLL"===t.type){if("DROP_PENDING"===e.phase)return Ht(e);if("COLLECTING"===e.phase)return Ht(e);_t(e)||ve(!1);const{id:n,newScroll:r}=t.payload,o=e.dimensions.droppables[n];if(!o)return e;const a=ze(o,r);return Wt(e,a,!1)}if("UPDATE_DROPPABLE_IS_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;_t(e)||ve(!1);const{id:n,isEnabled:r}=t.payload,o=e.dimensions.droppables[n];o||ve(!1),o.isEnabled===r&&ve(!1);const a={...o,isEnabled:r};return Wt(e,a,!0)}if("UPDATE_DROPPABLE_IS_COMBINE_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;_t(e)||ve(!1);const{id:n,isCombineEnabled:r}=t.payload,o=e.dimensions.droppables[n];o||ve(!1),o.isCombineEnabled===r&&ve(!1);const a={...o,isCombineEnabled:r};return Wt(e,a,!0)}if("MOVE_BY_WINDOW_SCROLL"===t.type){if("DROP_PENDING"===e.phase||"DROP_ANIMATING"===e.phase)return e;_t(e)||ve(!1),e.isWindowScrollAllowed||ve(!1);const n=t.payload.newScroll;if(Ie(e.viewport.scroll.current,n))return Ht(e);const r=yt(e.viewport,n);return $t(e)?zt({state:e,viewport:r}):Mt({state:e,viewport:r})}if("UPDATE_VIEWPORT_MAX_SCROLL"===t.type){if(!_t(e))return e;const n=t.payload.maxScroll;if(Ie(n,e.viewport.scroll.max))return e;const r={...e.viewport,scroll:{...e.viewport.scroll,max:n}};return{...e,viewport:r}}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&&ve(!1);const n=It({state:e,type:t.type});return n?Mt({state:e,impact:n.impact,clientSelection:n.clientSelection,scrollJumpRequest:n.scrollJumpRequest}):e}if("DROP_PENDING"===t.type){const n=t.payload.reason;return"COLLECTING"!==e.phase&&ve(!1),{...e,phase:"DROP_PENDING",isWaiting:!0,reason:n}}if("DROP_ANIMATE"===t.type){const{completed:n,dropDuration:r,newHomeClientOffset:o}=t.payload;return"DRAGGING"!==e.phase&&"DROP_PENDING"!==e.phase&&ve(!1),{phase:"DROP_ANIMATING",completed:n,dropDuration:r,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 qt=e=>({type:"LIFT",payload:e}),Kt=e=>({type:"PUBLISH_WHILE_DRAGGING",payload:e}),Qt=()=>({type:"COLLECTION_STARTING",payload:null}),Yt=e=>({type:"UPDATE_DROPPABLE_SCROLL",payload:e}),Xt=e=>({type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}),Jt=e=>({type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}),Zt=e=>({type:"MOVE",payload:e}),en=()=>({type:"MOVE_UP",payload:null}),tn=()=>({type:"MOVE_DOWN",payload:null}),nn=()=>({type:"MOVE_RIGHT",payload:null}),rn=()=>({type:"MOVE_LEFT",payload:null}),on=()=>({type:"FLUSH",payload:null}),an=e=>({type:"DROP_COMPLETE",payload:e}),ln=e=>({type:"DROP",payload:e}),sn="cubic-bezier(.2,1,.1,1)",cn=0,un=.7,dn=.75,fn={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},pn=`${fn.outOfTheWay}s cubic-bezier(0.2, 0, 0, 1)`,mn={fluid:`opacity ${pn}`,snap:`transform ${pn}, opacity ${pn}`,drop:e=>{const t=`${e}s ${sn}`;return`transform ${t}, opacity ${t}`},outOfTheWay:`transform ${pn}`,placeholder:`height ${pn}, width ${pn}, margin ${pn}`},gn=e=>Ie(e,Pe)?void 0:`translate(${e.x}px, ${e.y}px)`,hn=gn,bn=(e,t)=>{const n=gn(e);if(n)return t?`${n} scale(${dn})`:n},{minDropTime:yn,maxDropTime:vn}=fn,wn=vn-yn;var En=e=>{let{getState:t,dispatch:n}=e;return e=>r=>{if("DROP"!==r.type)return void e(r);const o=t(),a=r.payload.reason;if("COLLECTING"===o.phase)return void n((i={reason:a},{type:"DROP_PENDING",payload:i}));var i;if("IDLE"===o.phase)return;"DROP_PENDING"===o.phase&&o.isWaiting&&ve(!1),"DRAGGING"!==o.phase&&"DROP_PENDING"!==o.phase&&ve(!1);const l=o.critical,s=o.dimensions,c=s.draggables[o.critical.draggable.id],{impact:u,didDropInsideDroppable:d}=(e=>{let{draggables:t,reason:n,lastImpact:r,home:o,viewport:a,onLiftImpact:i}=e;return r.at&&"DROP"===n?"REORDER"===r.at.type?{impact:r,didDropInsideDroppable:!0}:{impact:{...r,displaced:Xe},didDropInsideDroppable:!0}:{impact:Bt({draggables:t,impact:i,destination:o,viewport:a,forceShouldAnimate:!0}),didDropInsideDroppable:!1}})({reason:a,lastImpact:o.impact,afterCritical:o.afterCritical,onLiftImpact:o.onLiftImpact,home:o.dimensions.droppables[o.critical.droppable.id],viewport:o.viewport,draggables:o.dimensions.draggables}),f=d?Ve(u):null,p=d?qe(u):null,m={index:l.draggable.index,droppableId:l.droppable.id},g={draggableId:c.descriptor.id,type:c.descriptor.type,source:m,reason:a,mode:o.movementMode,destination:f,combine:p},h=(e=>{let{impact:t,draggable:n,dimensions:r,viewport:o,afterCritical:a}=e;const{draggables:i,droppables:l}=r,s=Nt(t),c=s?l[s]:null,u=l[n.descriptor.droppableId],d=Ft({impact:t,draggable:n,draggables:i,afterCritical:a,droppable:c||u,viewport:o});return Ne(d,n.client.borderBox.center)})({impact:u,draggable:c,dimensions:s,viewport:o.viewport,afterCritical:o.afterCritical}),b={critical:o.critical,afterCritical:o.afterCritical,result:g,impact:u};if(Ie(o.current.client.offset,h)&&!Boolean(g.combine))return void n(an({completed:b}));const y=(e=>{let{current:t,destination:n,reason:r}=e;const o=Te(t,n);if(o<=0)return yn;if(o>=1500)return vn;const a=yn+wn*(o/1500);return Number(("CANCEL"===r?.6*a:a).toFixed(2))})({current:o.current.client.offset,destination:h,reason:a});n((e=>({type:"DROP_ANIMATE",payload:e}))({newHomeClientOffset:h,dropDuration:y,completed:b}))}},xn=()=>({x:window.pageXOffset,y:window.pageYOffset});var Sn=e=>{const t=function(e){let{onWindowScroll:t}=e;const n=fe((function(){t(xn())})),r=function(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:t=>{t.target!==window&&t.target!==window.document||e()}}}(n);let o=me;function a(){return o!==me}return{start:function(){a()&&ve(!1),o=ge(window,[r])},stop:function(){a()||ve(!1),n.cancel(),o(),o=me},isActive:a}}({onWindowScroll:t=>{e.dispatch({type:"MOVE_BY_WINDOW_SCROLL",payload:{newScroll:t}})}});return e=>n=>{t.isActive()||"INITIAL_PUBLISH"!==n.type||t.start(),t.isActive()&&(e=>"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type)(n)&&t.stop(),e(n)}};const kn=(e,t)=>{t()},On=(e,t)=>({draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t});function Cn(e,t,n,r){if(!e)return void n(r(t));const o=(e=>{let t=!1,n=!1;const r=setTimeout((()=>{n=!0})),o=o=>{t||n||(t=!0,e(o),clearTimeout(r))};return o.wasCalled=()=>t,o})(n);e(t,{announce:o}),o.wasCalled()||n(r(t))}var Pn=(e,t)=>{const n=((e,t)=>{const n=(()=>{const e=[];return{add:t=>{const n=setTimeout((()=>(t=>{const n=e.findIndex((e=>e.timerId===t));-1===n&&ve(!1);const[r]=e.splice(n,1);r.callback()})(n))),r={timerId:n,callback:t};e.push(r)},flush:()=>{if(!e.length)return;const t=[...e];e.length=0,t.forEach((e=>{clearTimeout(e.timerId),e.callback()}))}}})();let r=null;const o=n=>{r||ve(!1),r=null,kn(0,(()=>Cn(e().onDragEnd,n,t,Ce.onDragEnd)))};return{beforeCapture:(t,n)=>{r&&ve(!1),kn(0,(()=>{const r=e().onBeforeCapture;r&&r({draggableId:t,mode:n})}))},beforeStart:(t,n)=>{r&&ve(!1),kn(0,(()=>{const r=e().onBeforeDragStart;r&&r(On(t,n))}))},start:(o,a)=>{r&&ve(!1);const i=On(o,a);r={mode:a,lastCritical:o,lastLocation:i.source,lastCombine:null},n.add((()=>{kn(0,(()=>Cn(e().onDragStart,i,t,Ce.onDragStart)))}))},update:(o,a)=>{const i=Ve(a),l=qe(a);r||ve(!1);const s=!((e,t)=>{if(e===t)return!0;const n=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,r=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type;return n&&r})(o,r.lastCritical);s&&(r.lastCritical=o);const c=(d=i,!(null==(u=r.lastLocation)&&null==d||null!=u&&null!=d&&u.droppableId===d.droppableId&&u.index===d.index));var u,d;c&&(r.lastLocation=i);const f=!((e,t)=>null==e&&null==t||null!=e&&null!=t&&e.draggableId===t.draggableId&&e.droppableId===t.droppableId)(r.lastCombine,l);if(f&&(r.lastCombine=l),!s&&!c&&!f)return;const p={...On(o,r.mode),combine:l,destination:i};n.add((()=>{kn(0,(()=>Cn(e().onDragUpdate,p,t,Ce.onDragUpdate)))}))},flush:()=>{r||ve(!1),n.flush()},drop:o,abort:()=>{if(!r)return;const e={...On(r.lastCritical,r.mode),combine:null,destination:null,reason:"CANCEL"};o(e)}}})(e,t);return e=>t=>r=>{if("BEFORE_INITIAL_CAPTURE"===r.type)return void n.beforeCapture(r.payload.draggableId,r.payload.movementMode);if("INITIAL_PUBLISH"===r.type){const e=r.payload.critical;return n.beforeStart(e,r.payload.movementMode),t(r),void n.start(e,r.payload.movementMode)}if("DROP_COMPLETE"===r.type){const e=r.payload.completed.result;return n.flush(),t(r),void n.drop(e)}if(t(r),"FLUSH"===r.type)return void n.abort();const o=e.getState();"DRAGGING"===o.phase&&n.update(o.critical,o.impact)}},Dn=e=>t=>n=>{if("DROP_ANIMATION_FINISHED"!==n.type)return void t(n);const r=e.getState();"DROP_ANIMATING"!==r.phase&&ve(!1),e.dispatch(an({completed:r.completed}))},Nn=e=>{let t=null,n=null;return r=>o=>{if("FLUSH"!==o.type&&"DROP_COMPLETE"!==o.type&&"DROP_ANIMATION_FINISHED"!==o.type||(n&&(cancelAnimationFrame(n),n=null),t&&(t(),t=null)),r(o),"DROP_ANIMATE"!==o.type)return;const a={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){"DROP_ANIMATING"===e.getState().phase&&e.dispatch({type:"DROP_ANIMATION_FINISHED",payload:null})}};n=requestAnimationFrame((()=>{n=null,t=ge(window,[a])}))}},In=e=>t=>n=>{if(t(n),"PUBLISH_WHILE_DRAGGING"!==n.type)return;const r=e.getState();"DROP_PENDING"===r.phase&&(r.isWaiting||e.dispatch(ln({reason:r.reason})))};const _n=g;var Rn=e=>{let{dimensionMarshal:t,focusMarshal:n,styleMarshal:r,getResponders:o,announce:a,autoScroller:i}=e;return f(Vt,_n(function(){for(var e=arguments.length,t=new Array(e),n=0;ne=>t=>{"INITIAL_PUBLISH"===t.type&&c.dragging(),"DROP_ANIMATE"===t.type&&c.dropping(t.payload.completed.result.reason),"FLUSH"!==t.type&&"DROP_COMPLETE"!==t.type||c.resting(),e(t)}),(e=>()=>t=>n=>{"DROP_COMPLETE"!==n.type&&"FLUSH"!==n.type&&"DROP_ANIMATE"!==n.type||e.stopPublishing(),t(n)})(t),(e=>t=>{let{getState:n,dispatch:r}=t;return t=>o=>{if("LIFT"!==o.type)return void t(o);const{id:a,clientSelection:i,movementMode:l}=o.payload,s=n();"DROP_ANIMATING"===s.phase&&r(an({completed:s.completed})),"IDLE"!==n().phase&&ve(!1),r(on()),r({type:"BEFORE_INITIAL_CAPTURE",payload:{draggableId:a,movementMode:l}});const c={draggableId:a,scrollOptions:{shouldPublishImmediately:"SNAP"===l}},{critical:u,dimensions:d,viewport:f}=e.startPublishing(c);r({type:"INITIAL_PUBLISH",payload:{critical:u,dimensions:d,clientSelection:i,movementMode:l,viewport:f}})}})(t),En,Dn,Nn,In,(e=>t=>n=>r=>{if((e=>"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type)(r))return e.stop(),void n(r);if("INITIAL_PUBLISH"===r.type){n(r);const o=t.getState();return"DRAGGING"!==o.phase&&ve(!1),void e.start(o)}n(r),e.scroll(t.getState())})(i),Sn,(e=>{let t=!1;return()=>n=>r=>{if("INITIAL_PUBLISH"===r.type)return t=!0,e.tryRecordFocus(r.payload.critical.draggable.id),n(r),void e.tryRestoreFocusRecorded();if(n(r),t){if("FLUSH"===r.type)return t=!1,void e.tryRestoreFocusRecorded();if("DROP_COMPLETE"===r.type){t=!1;const n=r.payload.completed.result;n.combine&&e.tryShiftRecord(n.draggableId,n.combine.draggableId),e.tryRestoreFocusRecorded()}}}})(n),Pn(o,a))));var c},Tn=e=>{let{scrollHeight:t,scrollWidth:n,height:r,width:o}=e;const a=Ne({x:n,y:t},{x:o,y:r});return{x:Math.max(0,a.x),y:Math.max(0,a.y)}},An=()=>{const e=document.documentElement;return e||ve(!1),e},jn=()=>{const e=An();return Tn({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})};function Ln(e,t,n){return n.descriptor.id!==t.id&&(n.descriptor.type===t.type&&"virtual"===e.droppable.getById(n.descriptor.droppableId).descriptor.mode)}var Mn=(e,t)=>{let n=null;const r=function(e){let{registry:t,callbacks:n}=e,r={additions:{},removals:{},modified:{}},o=null;const a=()=>{o||(n.collectionStarting(),o=requestAnimationFrame((()=>{o=null;const{additions:e,removals:a,modified:i}=r,l=Object.keys(e).map((e=>t.draggable.getById(e).getDimension(Pe))).sort(((e,t)=>e.descriptor.index-t.descriptor.index)),s=Object.keys(i).map((e=>({droppableId:e,scroll:t.droppable.getById(e).callbacks.getScrollWhileDragging()}))),c={additions:l,removals:Object.keys(a),modified:s};r={additions:{},removals:{},modified:{}},n.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],a()},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],a()},stop:()=>{o&&(cancelAnimationFrame(o),o=null,r={additions:{},removals:{},modified:{}})}}}({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),o=t=>{n||ve(!1);const o=n.critical.draggable;"ADDITION"===t.type&&Ln(e,o,t.value)&&r.add(t.value),"REMOVAL"===t.type&&Ln(e,o,t.value)&&r.remove(t.value)},a={updateDroppableIsEnabled:(r,o)=>{e.droppable.exists(r)||ve(!1),n&&t.updateDroppableIsEnabled({id:r,isEnabled:o})},updateDroppableIsCombineEnabled:(r,o)=>{n&&(e.droppable.exists(r)||ve(!1),t.updateDroppableIsCombineEnabled({id:r,isCombineEnabled:o}))},scrollDroppable:(t,r)=>{n&&e.droppable.getById(t).callbacks.scroll(r)},updateDroppableScroll:(r,o)=>{n&&(e.droppable.exists(r)||ve(!1),t.updateDroppableScroll({id:r,newScroll:o}))},startPublishing:t=>{n&&ve(!1);const r=e.draggable.getById(t.draggableId),a=e.droppable.getById(r.descriptor.droppableId),i={draggable:r.descriptor,droppable:a.descriptor},l=e.subscribe(o);return n={critical:i,unsubscribe:l},(e=>{let{critical:t,scrollOptions:n,registry:r}=e;const o=(()=>{const e=xn(),t=jn(),n=e.y,r=e.x,o=An(),a=o.clientWidth,i=o.clientHeight;return{frame:Z({top:n,left:r,right:r+a,bottom:n+i}),scroll:{initial:e,current:e,max:t,diff:{value:Pe,displacement:Pe}}}})(),a=o.scroll.current,i=t.droppable,l=r.droppable.getAllByType(i.type).map((e=>e.callbacks.getDimensionAndWatchScroll(a,n))),s=r.draggable.getAllByType(t.draggable.type).map((e=>e.getDimension(a)));return{dimensions:{draggables:$e(s),droppables:Ue(l)},critical:t,viewport:o}})({critical:i,registry:e,scrollOptions:t.scrollOptions})},stopPublishing:()=>{if(!n)return;r.stop();const t=n.critical.droppable;e.droppable.getAllByType(t.type).forEach((e=>e.callbacks.dragStopped())),n.unsubscribe(),n=null}};return a},Bn=(e,t)=>"IDLE"===e.phase||"DROP_ANIMATING"===e.phase&&e.completed.result.draggableId!==t&&"DROP"===e.completed.result.reason,Fn=e=>{window.scrollBy(e.x,e.y)};const zn=de((e=>We(e).filter((e=>!!e.isEnabled&&!!e.frame))));const Un={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:e=>e**2,durationDampening:{stopDampeningAt:1200,accelerateAt:360},disabled:!1};var $n=e=>{let{startOfRange:t,endOfRange:n,current:r}=e;const o=n-t;return 0===o?0:(r-t)/o},Wn=e=>{let{distanceToEdge:t,thresholds:n,dragStartTime:r,shouldUseTimeDampening:o,getAutoScrollerOptions:a}=e;const i=function(e,t,n){void 0===n&&(n=()=>Un);const r=n();if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return r.maxPixelScroll;if(e===t.startScrollingFrom)return 1;const o=1-$n({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),a=r.maxPixelScroll*r.ease(o);return Math.ceil(a)}(t,n,a);return 0===i?0:o?Math.max(((e,t,n)=>{const r=n(),o=r.durationDampening.accelerateAt,a=r.durationDampening.stopDampeningAt,i=t,l=a,s=Date.now()-i;if(s>=a)return e;if(s{let{container:t,distanceToEdges:n,dragStartTime:r,axis:o,shouldUseTimeDampening:a,getAutoScrollerOptions:i}=e;const l=function(e,t,n){void 0===n&&(n=()=>Un);const r=n();return{startScrollingFrom:e[t.size]*r.startFromPercentage,maxScrollValueAt:e[t.size]*r.maxScrollAtPercentage}}(t,o,i);return n[o.end]0===e?0:e));var Vn=e=>{let{dragStartTime:t,container:n,subject:r,center:o,shouldUseTimeDampening:a,getAutoScrollerOptions:i}=e;const l={top:o.y-n.top,right:n.right-o.x,bottom:n.bottom-o.y,left:o.x-n.left},s=Hn({container:n,distanceToEdges:l,dragStartTime:t,axis:nt,shouldUseTimeDampening:a,getAutoScrollerOptions:i}),c=Hn({container:n,distanceToEdges:l,dragStartTime:t,axis:rt,shouldUseTimeDampening:a,getAutoScrollerOptions:i}),u=Gn({x:c,y:s});if(Ie(u,Pe))return null;const d=(e=>{let{container:t,subject:n,proposedScroll:r}=e;const o=n.height>t.height,a=n.width>t.width;return a||o?a&&o?null:{x:a?0:r.x,y:o?0:r.y}:r})({container:n,subject:r,proposedScroll:u});return d?Ie(d,Pe)?null:d:null};const qn=je((e=>0===e?0:e>0?1:-1)),Kn=(()=>{const e=(e,t)=>e<0?e:e>t?e-t:0;return t=>{let{current:n,max:r,change:o}=t;const a=De(n,o),i={x:e(a.x,r.x),y:e(a.y,r.y)};return Ie(i,Pe)?null:i}})(),Qn=e=>{let{max:t,current:n,change:r}=e;const o={x:Math.max(n.x,t.x),y:Math.max(n.y,t.y)},a=qn(r),i=Kn({max:o,current:n,change:a});return!i||0!==a.x&&0===i.x||0!==a.y&&0===i.y},Yn=(e,t)=>Qn({current:e.scroll.current,max:e.scroll.max,change:t}),Xn=(e,t)=>{const n=e.frame;return!!n&&Qn({current:n.scroll.current,max:n.scroll.max,change:t})};var Jn=e=>{let{state:t,dragStartTime:n,shouldUseTimeDampening:r,scrollWindow:o,scrollDroppable:a,getAutoScrollerOptions:i}=e;const l=t.current.page.borderBoxCenter,s=t.dimensions.draggables[t.critical.draggable.id].page.marginBox;if(t.isWindowScrollAllowed){const e=(e=>{let{viewport:t,subject:n,center:r,dragStartTime:o,shouldUseTimeDampening:a,getAutoScrollerOptions:i}=e;const l=Vn({dragStartTime:o,container:t.frame,subject:n,center:r,shouldUseTimeDampening:a,getAutoScrollerOptions:i});return l&&Yn(t,l)?l:null})({dragStartTime:n,viewport:t.viewport,subject:s,center:l,shouldUseTimeDampening:r,getAutoScrollerOptions:i});if(e)return void o(e)}const c=(e=>{let{center:t,destination:n,droppables:r}=e;if(n){const e=r[n];return e.frame?e:null}const o=((e,t)=>{const n=zn(t).find((t=>(t.frame||ve(!1),Rt(t.frame.pageMarginBox)(e))))||null;return n})(t,r);return o})({center:l,destination:Nt(t.impact),droppables:t.dimensions.droppables});if(!c)return;const u=(e=>{let{droppable:t,subject:n,center:r,dragStartTime:o,shouldUseTimeDampening:a,getAutoScrollerOptions:i}=e;const l=t.frame;if(!l)return null;const s=Vn({dragStartTime:o,container:l.pageMarginBox,subject:n,center:r,shouldUseTimeDampening:a,getAutoScrollerOptions:i});return s&&Xn(t,s)?s:null})({dragStartTime:n,droppable:c,subject:s,center:l,shouldUseTimeDampening:r,getAutoScrollerOptions:i});u&&a(c.descriptor.id,u)},Zn=e=>{let{move:t,scrollDroppable:n,scrollWindow:r}=e;return e=>{const o=e.scrollJumpRequest;if(!o)return;const a=Nt(e.impact);a||ve(!1);const i=((e,t)=>{if(!Xn(e,t))return t;const r=((e,t)=>{const n=e.frame;return n&&Xn(e,t)?Kn({current:n.scroll.current,max:n.scroll.max,change:t}):null})(e,t);if(!r)return n(e.descriptor.id,t),null;const o=Ne(t,r);return n(e.descriptor.id,o),Ne(t,o)})(e.dimensions.droppables[a],o);if(!i)return;const l=e.viewport,s=((e,t,n)=>{if(!e)return n;if(!Yn(t,n))return n;const o=((e,t)=>{if(!Yn(e,t))return null;const n=e.scroll.max,r=e.scroll.current;return Kn({current:r,max:n,change:t})})(t,n);if(!o)return r(n),null;const a=Ne(n,o);return r(a),Ne(n,a)})(e.isWindowScrollAllowed,l,i);s&&((e,n)=>{const r=De(e.current.client.selection,n);t({client:r})})(e,s)}},er=e=>{let{scrollDroppable:t,scrollWindow:n,move:r,getAutoScrollerOptions:o}=e;const a=(e=>{let{scrollWindow:t,scrollDroppable:n,getAutoScrollerOptions:r=(()=>Un)}=e;const o=fe(t),a=fe(n);let i=null;const l=e=>{i||ve(!1);const{shouldUseTimeDampening:t,dragStartTime:n}=i;Jn({state:e,scrollWindow:o,scrollDroppable:a,dragStartTime:n,shouldUseTimeDampening:t,getAutoScrollerOptions:r})};return{start:e=>{i&&ve(!1);const t=Date.now();let n=!1;const o=()=>{n=!0};Jn({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:o,scrollDroppable:o,getAutoScrollerOptions:r}),i={dragStartTime:t,shouldUseTimeDampening:n},n&&l(e)},stop:()=>{i&&(o.cancel(),a.cancel(),i=null)},scroll:l}})({scrollWindow:n,scrollDroppable:t,getAutoScrollerOptions:o}),i=Zn({move:r,scrollWindow:n,scrollDroppable:t});return{scroll:e=>{o().disabled||"DRAGGING"!==e.phase||("FLUID"!==e.movementMode?e.scrollJumpRequest&&i(e):a.scroll(e))},start:a.start,stop:a.stop}};const tr="data-rfd",nr=(()=>{const e=`${tr}-drag-handle`;return{base:e,draggableId:`${e}-draggable-id`,contextId:`${e}-context-id`}})(),rr=(()=>{const e=`${tr}-draggable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),or=(()=>{const e=`${tr}-droppable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),ar={contextId:`${tr}-scroll-container-context-id`},ir=(e,t)=>e.map((e=>{const n=e.styles[t];return n?`${e.selector} { ${n} }`:""})).join(" ");var lr=e=>{const t=(e=>t=>`[${t}="${e}"]`)(e),n=(()=>{const e="\n cursor: -webkit-grab;\n cursor: grab;\n ";return{selector:t(nr.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}}})(),r=[(()=>{const e=`\n transition: ${mn.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:ir(r,"always"),resting:ir(r,"resting"),dragging:ir(r,"dragging"),dropAnimating:ir(r,"dropAnimating"),userCancel:ir(r,"userCancel")}},sr="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?e.useLayoutEffect:e.useEffect;const cr=()=>{const e=document.querySelector("head");return e||ve(!1),e},ur=e=>{const t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};function dr(e,t){return Array.from(e.querySelectorAll(t))}var fr=e=>e?.ownerDocument?.defaultView||window;function pr(e){return e instanceof fr(e).HTMLElement}function mr(){const e={draggables:{},droppables:{}},t=[];function n(e){t.length&&t.forEach((t=>t(e)))}function r(t){return e.draggables[t]||null}function o(t){return e.droppables[t]||null}return{draggable:{register:t=>{e.draggables[t.descriptor.id]=t,n({type:"ADDITION",value:t})},update:(t,n)=>{const r=e.draggables[n.descriptor.id];r&&r.uniqueId===t.uniqueId&&(delete e.draggables[n.descriptor.id],e.draggables[t.descriptor.id]=t)},unregister:t=>{const o=t.descriptor.id,a=r(o);a&&t.uniqueId===a.uniqueId&&(delete e.draggables[o],e.droppables[t.descriptor.droppableId]&&n({type:"REMOVAL",value:t}))},getById:function(e){const t=r(e);return t||ve(!1),t},findById:r,exists:e=>Boolean(r(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 n=o(t.descriptor.id);n&&t.uniqueId===n.uniqueId&&delete e.droppables[t.descriptor.id]},getById:function(e){const t=o(e);return t||ve(!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 n=t.indexOf(e);-1!==n&&t.splice(n,1)}},clean:function(){e.draggables={},e.droppables={},t.length=0}}}var gr=e.createContext(null),hr=()=>{const e=document.body;return e||ve(!1),e},br={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 yr=e=>`rfd-announcement-${e}`,vr={separator:"::"};var wr=function(t,n){void 0===n&&(n=vr);const r=e.useId();return X((()=>`${t}${n.separator}${r}`),[n.separator,t,r])},Er=e.createContext(null);function xr(t){const n=(0,e.useRef)(t);return(0,e.useEffect)((()=>{n.current=t})),n}function Sr(e){return"IDLE"!==e.phase&&"DROP_ANIMATING"!==e.phase&&e.isDragging}const kr={13:!0,9:!0};var Or=e=>{kr[e.keyCode]&&e.preventDefault()},Cr=(()=>{const e="visibilitychange";return"undefined"==typeof document?e:[e,`ms${e}`,`webkit${e}`,`moz${e}`,`o${e}`].find((e=>`on${e}`in document))||e})();const Pr={type:"IDLE"};function Dr(){}const Nr={34:!0,33:!0,36:!0,35:!0};const Ir={type:"IDLE"},_r=["input","button","textarea","select","option","optgroup","video","audio"];function Rr(e,t){if(null==t)return!1;if(_r.includes(t.tagName.toLowerCase()))return!0;const n=t.getAttribute("contenteditable");return"true"===n||""===n||t!==e&&Rr(e,t.parentElement)}function Tr(e,t){const n=t.target;return!!pr(n)&&Rr(e,n)}var Ar=e=>Z(e.getBoundingClientRect()).center;const jr=(()=>{const e="matches";return"undefined"==typeof document?e:[e,"msMatchesSelector","webkitMatchesSelector"].find((e=>e in Element.prototype))||e})();function Lr(e,t){return null==e?null:e[jr](t)?e:Lr(e.parentElement,t)}function Mr(e,t){return e.closest?e.closest(t):Lr(e,t)}function Br(e){e.preventDefault()}function Fr(e){let{expected:t,phase:n,isLockActive:r,shouldWarn:o}=e;return!!r()&&t===n}function zr(e){let{lockAPI:t,store:n,registry:r,draggableId:o}=e;if(t.isClaimed())return!1;const a=r.draggable.findById(o);return!!a&&!!a.options.isEnabled&&!!Bn(n.getState(),o)}const Ur=[function(t){const n=(0,e.useRef)(Pr),r=(0,e.useRef)(me),o=X((()=>({eventName:"mousedown",fn:function(e){if(e.defaultPrevented)return;if(0!==e.button)return;if(e.ctrlKey||e.metaKey||e.shiftKey||e.altKey)return;const n=t.findClosestDraggableId(e);if(!n)return;const o=t.tryGetLock(n,l,{sourceEvent:e});if(!o)return;e.preventDefault();const a={x:e.clientX,y:e.clientY};r.current(),u(o,a)}})),[t]),a=X((()=>({eventName:"webkitmouseforcewillbegin",fn:e=>{if(e.defaultPrevented)return;const n=t.findClosestDraggableId(e);if(!n)return;const r=t.findOptionsForDraggable(n);r&&(r.shouldRespectForcePress||t.canGetLock(n)&&e.preventDefault())}})),[t]),i=J((function(){r.current=ge(window,[a,o],{passive:!1,capture:!0})}),[a,o]),l=J((()=>{"IDLE"!==n.current.type&&(n.current=Pr,r.current(),i())}),[i]),s=J((()=>{const e=n.current;l(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[l]),c=J((function(){const e=function(e){let{cancel:t,completed:n,getPhase:r,setPhase:o}=e;return[{eventName:"mousemove",fn:e=>{const{button:t,clientX:n,clientY:a}=e;if(0!==t)return;const i={x:n,y:a},l=r();if("DRAGGING"===l.type)return e.preventDefault(),void l.actions.move(i);if("PENDING"!==l.type&&ve(!1),s=l.point,c=i,!(Math.abs(c.x-s.x)>=5||Math.abs(c.y-s.y)>=5))return;var s,c;e.preventDefault();const u=l.actions.fluidLift(i);o({type:"DRAGGING",actions:u})}},{eventName:"mouseup",fn:e=>{const o=r();"DRAGGING"===o.type?(e.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),n()):t()}},{eventName:"mousedown",fn:e=>{"DRAGGING"===r().type&&e.preventDefault(),t()}},{eventName:"keydown",fn:e=>{if("PENDING"!==r().type)return 27===e.keyCode?(e.preventDefault(),void t()):void Or(e);t()}},{eventName:"resize",fn:t},{eventName:"scroll",options:{passive:!0,capture:!1},fn:()=>{"PENDING"===r().type&&t()}},{eventName:"webkitmouseforcedown",fn:e=>{const n=r();"IDLE"===n.type&&ve(!1),n.actions.shouldRespectForcePress()?t():e.preventDefault()}},{eventName:Cr,fn:t}]}({cancel:s,completed:l,getPhase:()=>n.current,setPhase:e=>{n.current=e}});r.current=ge(window,e,{capture:!0,passive:!1})}),[s,l]),u=J((function(e,t){"IDLE"!==n.current.type&&ve(!1),n.current={type:"PENDING",point:t,actions:e},c()}),[c]);sr((function(){return i(),function(){r.current()}}),[i])},function(t){const n=(0,e.useRef)(Dr),r=X((()=>({eventName:"keydown",fn:function(e){if(e.defaultPrevented)return;if(32!==e.keyCode)return;const r=t.findClosestDraggableId(e);if(!r)return;const a=t.tryGetLock(r,s,{sourceEvent:e});if(!a)return;e.preventDefault();let i=!0;const l=a.snapLift();function s(){i||ve(!1),i=!1,n.current(),o()}n.current(),n.current=ge(window,function(e,t){function n(){t(),e.cancel()}return[{eventName:"keydown",fn:r=>27===r.keyCode?(r.preventDefault(),void n()):32===r.keyCode?(r.preventDefault(),t(),void e.drop()):40===r.keyCode?(r.preventDefault(),void e.moveDown()):38===r.keyCode?(r.preventDefault(),void e.moveUp()):39===r.keyCode?(r.preventDefault(),void e.moveRight()):37===r.keyCode?(r.preventDefault(),void e.moveLeft()):void(Nr[r.keyCode]?r.preventDefault():Or(r))},{eventName:"mousedown",fn:n},{eventName:"mouseup",fn:n},{eventName:"click",fn:n},{eventName:"touchstart",fn:n},{eventName:"resize",fn:n},{eventName:"wheel",fn:n,options:{passive:!0}},{eventName:Cr,fn:n}]}(l,s),{capture:!0,passive:!1})}})),[t]),o=J((function(){n.current=ge(window,[r],{passive:!1,capture:!0})}),[r]);sr((function(){return o(),function(){n.current()}}),[o])},function(t){const n=(0,e.useRef)(Ir),r=(0,e.useRef)(me),o=J((function(){return n.current}),[]),a=J((function(e){n.current=e}),[]),i=X((()=>({eventName:"touchstart",fn:function(e){if(e.defaultPrevented)return;const n=t.findClosestDraggableId(e);if(!n)return;const o=t.tryGetLock(n,s,{sourceEvent:e});if(!o)return;const a=e.touches[0],{clientX:i,clientY:l}=a,c={x:i,y:l};r.current(),f(o,c)}})),[t]),l=J((function(){r.current=ge(window,[i],{capture:!0,passive:!1})}),[i]),s=J((()=>{const e=n.current;"IDLE"!==e.type&&("PENDING"===e.type&&clearTimeout(e.longPressTimerId),a(Ir),r.current(),l())}),[l,a]),c=J((()=>{const e=n.current;s(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[s]),u=J((function(){const e={capture:!0,passive:!1},t={cancel:c,completed:s,getPhase:o},n=ge(window,function(e){let{cancel:t,completed:n,getPhase:r}=e;return[{eventName:"touchmove",options:{capture:!1},fn:e=>{const n=r();if("DRAGGING"!==n.type)return void t();n.hasMoved=!0;const{clientX:o,clientY:a}=e.touches[0],i={x:o,y:a};e.preventDefault(),n.actions.move(i)}},{eventName:"touchend",fn:e=>{const o=r();"DRAGGING"===o.type?(e.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),n()):t()}},{eventName:"touchcancel",fn:e=>{"DRAGGING"===r().type?(e.preventDefault(),t()):t()}},{eventName:"touchforcechange",fn:e=>{const n=r();"IDLE"===n.type&&ve(!1);const o=e.touches[0];if(!o)return;if(!(o.force>=.15))return;const a=n.actions.shouldRespectForcePress();if("PENDING"!==n.type)return a?n.hasMoved?void e.preventDefault():void t():void e.preventDefault();a&&t()}},{eventName:Cr,fn:t}]}(t),e),a=ge(window,function(e){let{cancel:t,getPhase:n}=e;return[{eventName:"orientationchange",fn:t},{eventName:"resize",fn:t},{eventName:"contextmenu",fn:e=>{e.preventDefault()}},{eventName:"keydown",fn:e=>{"DRAGGING"===n().type?(27===e.keyCode&&e.preventDefault(),t()):t()}},{eventName:Cr,fn:t}]}(t),e);r.current=function(){n(),a()}}),[c,o,s]),d=J((function(){const e=o();"PENDING"!==e.type&&ve(!1);const t=e.actions.fluidLift(e.point);a({type:"DRAGGING",actions:t,hasMoved:!1})}),[o,a]),f=J((function(e,t){"IDLE"!==o().type&&ve(!1);const n=setTimeout(d,120);a({type:"PENDING",point:t,actions:e,longPressTimerId:n}),u()}),[u,o,a,d]);sr((function(){return l(),function(){r.current();const e=o();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),a(Ir))}}),[o,l,a]),sr((function(){return ge(window,[{eventName:"touchmove",fn:()=>{},options:{capture:!1,passive:!1}}])}),[])}];function $r(t){let{contextId:n,store:r,registry:o,customSensors:a,enableDefaultSensors:i}=t;const l=[...i?Ur:[],...a||[]],s=(0,e.useState)((()=>function(){let e=null;function t(){e||ve(!1),e=null}return{isClaimed:function(){return Boolean(e)},isActive:function(t){return t===e},claim:function(t){e&&ve(!1);const n={abandon:t};return e=n,n},release:t,tryAbandon:function(){e&&(e.abandon(),t())}}}()))[0],c=J((function(e,t){Sr(e)&&!Sr(t)&&s.tryAbandon()}),[s]);sr((function(){let e=r.getState();return r.subscribe((()=>{const t=r.getState();c(e,t),e=t}))}),[s,r,c]),sr((()=>s.tryAbandon),[s.tryAbandon]);const u=J((e=>zr({lockAPI:s,registry:o,store:r,draggableId:e})),[s,o,r]),d=J(((e,t,a)=>function(e){let{lockAPI:t,contextId:n,store:r,registry:o,draggableId:a,forceSensorStop:i,sourceEvent:l}=e;if(!zr({lockAPI:t,store:r,registry:o,draggableId:a}))return null;const s=o.draggable.getById(a),c=function(e,t){const n=`[${rr.contextId}="${e}"]`,r=dr(document,n).find((e=>e.getAttribute(rr.id)===t));return r&&pr(r)?r:null}(n,s.descriptor.id);if(!c)return null;if(l&&!s.options.canDragInteractiveElements&&Tr(c,l))return null;const u=t.claim(i||me);let d="PRE_DRAG";function f(){return s.options.shouldRespectForcePress}function p(){return t.isActive(u)}const m=function(e,t){Fr({expected:e,phase:d,isLockActive:p,shouldWarn:!0})&&r.dispatch(t())}.bind(null,"DRAGGING");function g(e){function n(){t.release(),d="COMPLETED"}function o(t,o){if(void 0===o&&(o={shouldBlockNextClick:!1}),e.cleanup(),o.shouldBlockNextClick){const e=ge(window,[{eventName:"click",fn:Br,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(e)}n(),r.dispatch(ln({reason:t}))}return"PRE_DRAG"!==d&&(n(),ve(!1)),r.dispatch(qt(e.liftActionArgs)),d="DRAGGING",{isActive:()=>Fr({expected:"DRAGGING",phase:d,isLockActive:p,shouldWarn:!1}),shouldRespectForcePress:f,drop:e=>o("DROP",e),cancel:e=>o("CANCEL",e),...e.actions}}const h={isActive:()=>Fr({expected:"PRE_DRAG",phase:d,isLockActive:p,shouldWarn:!1}),shouldRespectForcePress:f,fluidLift:function(e){const t=fe((e=>{m((()=>Zt({client:e})))}));return{...g({liftActionArgs:{id:a,clientSelection:e,movementMode:"FLUID"},cleanup:()=>t.cancel(),actions:{move:t}}),move:t}},snapLift:function(){const e={moveUp:()=>m(en),moveRight:()=>m(nn),moveDown:()=>m(tn),moveLeft:()=>m(rn)};return g({liftActionArgs:{id:a,clientSelection:Ar(c),movementMode:"SNAP"},cleanup:me,actions:e})},abort:function(){Fr({expected:"PRE_DRAG",phase:d,isLockActive:p,shouldWarn:!0})&&t.release()}};return h}({lockAPI:s,registry:o,contextId:n,store:r,draggableId:e,forceSensorStop:t||null,sourceEvent:a&&a.sourceEvent?a.sourceEvent:null})),[n,s,o,r]),f=J((e=>function(e,t){const n=function(e,t){const n=t.target;if(!((r=n)instanceof fr(r).Element))return null;var r;const o=function(e){return`[${nr.contextId}="${e}"]`}(e),a=Mr(n,o);return a&&pr(a)?a:null}(e,t);return n?n.getAttribute(nr.draggableId):null}(n,e)),[n]),p=J((e=>{const t=o.draggable.findById(e);return t?t.options:null}),[o.draggable]),m=J((function(){s.isClaimed()&&(s.tryAbandon(),"IDLE"!==r.getState().phase&&r.dispatch(on()))}),[s,r]),g=J((()=>s.isClaimed()),[s]),h=X((()=>({canGetLock:u,tryGetLock:d,findClosestDraggableId:f,findOptionsForDraggable:p,tryReleaseLock:m,isLockClaimed:g})),[u,d,f,p,m,g]);for(let e=0;e({onBeforeCapture:n=>{const o=()=>{t.onBeforeCapture&&t.onBeforeCapture(n)};e.version.startsWith("16")||e.version.startsWith("17")?o():(0,r.flushSync)(o)},onBeforeDragStart:t.onBeforeDragStart,onDragStart:t.onDragStart,onDragEnd:t.onDragEnd,onDragUpdate:t.onDragUpdate}),Hr=e=>({...Un,...e.autoScrollerOptions,durationDampening:{...Un.durationDampening,...e.autoScrollerOptions}});function Gr(e){return e.current||ve(!1),e.current}function Vr(t){const{contextId:n,setCallbacks:r,sensors:o,nonce:a,dragHandleUsageInstructions:i}=t,l=(0,e.useRef)(null),s=xr(t),c=J((()=>Wr(s.current)),[s]),u=J((()=>Hr(s.current)),[s]),d=function(t){const n=X((()=>yr(t)),[t]),r=(0,e.useRef)(null);return(0,e.useEffect)((function(){const e=document.createElement("div");return r.current=e,e.id=n,e.setAttribute("aria-live","assertive"),e.setAttribute("aria-atomic","true"),O(e.style,br),hr().appendChild(e),function(){setTimeout((function(){const t=hr();t.contains(e)&&t.removeChild(e),e===r.current&&(r.current=null)}))}}),[n]),J((e=>{const t=r.current;t&&(t.textContent=e)}),[])}(n),f=function(t){let{contextId:n,text:r}=t;const o=wr("hidden-text",{separator:"-"}),a=X((()=>function(e){let{contextId:t,uniqueId:n}=e;return`rfd-hidden-text-${t}-${n}`}({contextId:n,uniqueId:o})),[o,n]);return(0,e.useEffect)((function(){const e=document.createElement("div");return e.id=a,e.textContent=r,e.style.display="none",hr().appendChild(e),function(){const t=hr();t.contains(e)&&t.removeChild(e)}}),[a,r]),a}({contextId:n,text:i}),p=function(t,n){const r=X((()=>lr(t)),[t]),o=(0,e.useRef)(null),a=(0,e.useRef)(null),i=J(de((e=>{const t=a.current;t||ve(!1),t.textContent=e})),[]),l=J((e=>{const t=o.current;t||ve(!1),t.textContent=e}),[]);sr((()=>{(o.current||a.current)&&ve(!1);const e=ur(n),s=ur(n);return o.current=e,a.current=s,e.setAttribute(`${tr}-always`,t),s.setAttribute(`${tr}-dynamic`,t),cr().appendChild(e),cr().appendChild(s),l(r.always),i(r.resting),()=>{const e=e=>{const t=e.current;t||ve(!1),cr().removeChild(t),e.current=null};e(o),e(a)}}),[n,l,i,r.always,r.resting,t]);const s=J((()=>i(r.dragging)),[i,r.dragging]),c=J((e=>{i("DROP"!==e?r.userCancel:r.dropAnimating)}),[i,r.dropAnimating,r.userCancel]),u=J((()=>{a.current&&i(r.resting)}),[i,r.resting]);return X((()=>({dragging:s,dropping:c,resting:u})),[s,c,u])}(n,a),g=J((e=>{Gr(l).dispatch(e)}),[]),h=X((()=>m({publishWhileDragging:Kt,updateDroppableScroll:Yt,updateDroppableIsEnabled:Xt,updateDroppableIsCombineEnabled:Jt,collectionStarting:Qt},g)),[g]),b=function(){const t=X(mr,[]);return(0,e.useEffect)((()=>function(){e.version.startsWith("16")||e.version.startsWith("17")?requestAnimationFrame(t.clean):t.clean()}),[t]),t}(),y=X((()=>Mn(b,h)),[b,h]),v=X((()=>er({scrollWindow:Fn,scrollDroppable:y.scrollDroppable,getAutoScrollerOptions:u,...m({move:Zt},g)})),[y.scrollDroppable,g,u]),w=function(t){const n=(0,e.useRef)({}),r=(0,e.useRef)(null),o=(0,e.useRef)(null),a=(0,e.useRef)(!1),i=J((function(e,t){const r={id:e,focus:t};return n.current[e]=r,function(){const t=n.current;t[e]!==r&&delete t[e]}}),[]),l=J((function(e){const n=function(e,t){const n=`[${nr.contextId}="${e}"]`,r=dr(document,n);if(!r.length)return null;const o=r.find((e=>e.getAttribute(nr.draggableId)===t));return o&&pr(o)?o:null}(t,e);n&&n!==document.activeElement&&n.focus()}),[t]),s=J((function(e,t){r.current===e&&(r.current=t)}),[]),c=J((function(){o.current||a.current&&(o.current=requestAnimationFrame((()=>{o.current=null;const e=r.current;e&&l(e)})))}),[l]),u=J((function(e){r.current=null;const t=document.activeElement;t&&t.getAttribute(nr.draggableId)===e&&(r.current=e)}),[]);return sr((()=>(a.current=!0,function(){a.current=!1;const e=o.current;e&&cancelAnimationFrame(e)})),[]),X((()=>({register:i,tryRecordFocus:u,tryRestoreFocusRecorded:c,tryShiftRecord:s})),[i,u,c,s])}(n),E=X((()=>Rn({announce:d,autoScroller:v,dimensionMarshal:y,focusMarshal:w,getResponders:c,styleMarshal:p})),[d,v,y,w,c,p]);l.current=E;const x=J((()=>{const e=Gr(l);"IDLE"!==e.getState().phase&&e.dispatch(on())}),[]),S=J((()=>{const e=Gr(l).getState();return"DROP_ANIMATING"===e.phase||"IDLE"!==e.phase&&e.isDragging}),[]);r(X((()=>({isDragging:S,tryAbort:x})),[S,x]));const k=J((e=>Bn(Gr(l).getState(),e)),[]),C=J((()=>_t(Gr(l).getState())),[]),P=X((()=>({marshal:y,focus:w,contextId:n,canLift:k,isMovementAllowed:C,dragHandleUsageInstructionsId:f,registry:b})),[n,y,f,w,k,C,b]);return $r({contextId:n,store:E,registry:b,customSensors:o||null,enableDefaultSensors:!1!==t.enableDefaultSensors}),(0,e.useEffect)((()=>x),[x]),e.createElement(Er.Provider,{value:P},e.createElement(K,{context:gr,store:E},t.children))}var qr=function(){return e.useId()};function Kr(t){const n=qr(),r=t.dragHandleUsageInstructions||Ce.dragHandleUsageInstructions;return e.createElement(we,null,(o=>e.createElement(Vr,{nonce:t.nonce,contextId:n,setCallbacks:o,dragHandleUsageInstructions:r,enableDefaultSensors:t.enableDefaultSensors,sensors:t.sensors,onBeforeCapture:t.onBeforeCapture,onBeforeDragStart:t.onBeforeDragStart,onDragStart:t.onDragStart,onDragUpdate:t.onDragUpdate,onDragEnd:t.onDragEnd,autoScrollerOptions:t.autoScrollerOptions},t.children)))}const Qr=5e3,Yr=4500,Xr=(e,t)=>t?mn.drop(t.duration):e?mn.snap:mn.fluid,Jr=(e,t)=>{if(e)return t?cn:un};var Zr=e.createContext(null);function eo(t){const n=(0,e.useContext)(t);return n||ve(!1),n}function to(e){e.preventDefault()}var no=(e,t)=>e===t,ro=e=>{const{combine:t,destination:n}=e;return n?n.droppableId:t?t.droppableId:null};function oo(e){return void 0===e&&(e=null),{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}const ao={mapped:{type:"SECONDARY",offset:Pe,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:oo(null)}},io=q((()=>{const e=function(){const e=de(((e,t)=>({x:e,y:t}))),t=de((function(e,t,n,r,o){return void 0===n&&(n=null),void 0===r&&(r=null),void 0===o&&(o=null),{isDragging:!0,isClone:t,isDropAnimating:Boolean(o),dropAnimation:o,mode:e,draggingOver:n,combineWith:r,combineTargetFor:null}})),n=de((function(e,n,r,o,a,i,l){return void 0===a&&(a=null),void 0===i&&(i=null),void 0===l&&(l=null),{mapped:{type:"DRAGGING",dropping:null,draggingOver:a,combineWith:i,mode:n,offset:e,dimension:r,forceShouldAnimate:l,snapshot:t(n,o,a,i,null)}}}));return(r,o)=>{if(Sr(r)){if(r.critical.draggable.id!==o.draggableId)return null;const t=r.current.client.offset,i=r.dimensions.draggables[o.draggableId],l=Nt(r.impact),s=(a=r.impact).at&&"COMBINE"===a.at.type?a.at.combine.draggableId:null,c=r.forceShouldAnimate;return n(e(t.x,t.y),r.movementMode,i,o.isClone,l,s,c)}var a;if("DROP_ANIMATING"===r.phase){const e=r.completed;if(e.result.draggableId!==o.draggableId)return null;const n=o.isClone,a=r.dimensions.draggables[o.draggableId],i=e.result,l=i.mode,s=ro(i),c=(e=>e.combine?e.combine.draggableId:null)(i),u={duration:r.dropDuration,curve:sn,moveTo:r.newHomeClientOffset,opacity:c?cn:null,scale:c?dn:null};return{mapped:{type:"DRAGGING",offset:r.newHomeClientOffset,dimension:a,dropping:u,draggingOver:s,combineWith:c,mode:l,forceShouldAnimate:null,snapshot:t(l,n,s,c,u)}}}return null}}(),t=function(){const e=de(((e,t)=>({x:e,y:t}))),t=de(oo),n=de((function(e,n,r){return void 0===n&&(n=null),{mapped:{type:"SECONDARY",offset:e,combineTargetFor:n,shouldAnimateDisplacement:r,snapshot:t(n)}}})),r=e=>e?n(Pe,e,!0):null,o=(t,o,a,i)=>{const l=a.displaced.visible[t],s=Boolean(i.inVirtualList&&i.effected[t]),c=qe(a),u=c&&c.draggableId===t?o:null;if(!l){if(!s)return r(u);if(a.displaced.invisible[t])return null;const o=_e(i.displacedBy.point),l=e(o.x,o.y);return n(l,u,!0)}if(s)return r(u);const d=a.displacedBy.point,f=e(d.x,d.y);return n(f,u,l.shouldAnimate)};return(e,t)=>{if(Sr(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 n=e.completed;return n.result.draggableId===t.draggableId?null:o(t.draggableId,n.result.draggableId,n.impact,n.afterCritical)}return null}}();return(n,r)=>e(n,r)||t(n,r)||ao}),{dropAnimationFinished:()=>({type:"DROP_ANIMATION_FINISHED",payload:null})},null,{context:gr,areStatePropsEqual:no})((t=>{const n=(0,e.useRef)(null),o=J((function(e){void 0===e&&(e=null),n.current=e}),[]),a=J((()=>n.current),[]),{contextId:i,dragHandleUsageInstructionsId:l,registry:s}=eo(Er),{type:c,droppableId:u}=eo(Zr),d=X((()=>({id:t.draggableId,index:t.index,type:c,droppableId:u})),[t.draggableId,t.index,c,u]),{children:f,draggableId:p,isEnabled:m,shouldRespectForcePress:g,canDragInteractiveElements:h,isClone:b,mapped:y,dropAnimationFinished:v}=t;b||function(t){const n=wr("draggable"),{descriptor:r,registry:o,getDraggableRef:a,canDragInteractiveElements:i,shouldRespectForcePress:l,isEnabled:s}=t,c=X((()=>({canDragInteractiveElements:i,shouldRespectForcePress:l,isEnabled:s})),[i,s,l]),u=J((e=>{const t=a();return t||ve(!1),function(e,t,n){void 0===n&&(n=Pe);const r=window.getComputedStyle(t),o=t.getBoundingClientRect(),a=le(o,r),i=ie(a,n);return{descriptor:e,placeholder:{client:a,tagName:t.tagName.toLowerCase(),display:r.display},displaceBy:{x:a.marginBox.width,y:a.marginBox.height},client:a,page:i}}(r,t,e)}),[r,a]),d=X((()=>({uniqueId:n,descriptor:r,options:c,getDimension:u})),[r,u,c,n]),f=(0,e.useRef)(d),p=(0,e.useRef)(!0);sr((()=>(o.draggable.register(f.current),()=>o.draggable.unregister(f.current))),[o.draggable]),sr((()=>{if(p.current)return void(p.current=!1);const e=f.current;f.current=d,o.draggable.update(d,e)}),[d,o.draggable])}(X((()=>({descriptor:d,registry:s,getDraggableRef:a,canDragInteractiveElements:h,shouldRespectForcePress:g,isEnabled:m})),[d,s,a,h,g,m]));const w=X((()=>m?{tabIndex:0,role:"button","aria-describedby":l,"data-rfd-drag-handle-draggable-id":p,"data-rfd-drag-handle-context-id":i,draggable:!1,onDragStart:to}:null),[i,l,p,m]),E=J((t=>{"DRAGGING"===y.type&&y.dropping&&"transform"===t.propertyName&&(e.version.startsWith("16")||e.version.startsWith("17")?v():(0,r.flushSync)(v))}),[v,y]),x=X((()=>{const e=function(e){return"DRAGGING"===e.type?function(e){const t=e.dimension.client,{offset:n,combineWith:r,dropping:o}=e,a=Boolean(r),i=(e=>null!=e.forceShouldAnimate?e.forceShouldAnimate:"SNAP"===e.mode)(e),l=Boolean(o),s=l?bn(n,a):hn(n);return{position:"fixed",top:t.marginBox.top,left:t.marginBox.left,boxSizing:"border-box",width:t.borderBox.width,height:t.borderBox.height,transition:Xr(i,o),transform:s,opacity:Jr(a,l),zIndex:l?Yr:Qr,pointerEvents:"none"}}(e):{transform:hn((t=e).offset),transition:t.shouldAnimateDisplacement?void 0:"none"};var t}(y),t="DRAGGING"===y.type&&y.dropping?E:void 0;return{innerRef:o,draggableProps:{"data-rfd-draggable-context-id":i,"data-rfd-draggable-id":p,style:e,onTransitionEnd:t},dragHandleProps:w}}),[i,w,p,y,E,o]),S=X((()=>({draggableId:d.id,type:d.type,source:{index:d.index,droppableId:d.droppableId}})),[d.droppableId,d.id,d.index,d.type]);return e.createElement(e.Fragment,null,f(x,y.snapshot,S))}));var lo=io;function so(t){return eo(Zr).isUsingCloneFor!==t.draggableId||t.isClone?e.createElement(lo,t):null}function co(t){const n="boolean"!=typeof t.isDragDisabled||!t.isDragDisabled,r=Boolean(t.disableInteractiveElementBlocking),o=Boolean(t.shouldRespectForcePress);return e.createElement(so,O({},t,{isClone:!1,isEnabled:n,canDragInteractiveElements:r,shouldRespectForcePress:o}))}const uo=e=>t=>e===t,fo=uo("scroll"),po=uo("auto"),mo=(uo("visible"),(e,t)=>t(e.overflowX)||t(e.overflowY)),go=e=>null==e||e===document.body||e===document.documentElement?null:(e=>{const t=window.getComputedStyle(e),n={overflowX:t.overflowX,overflowY:t.overflowY};return mo(n,fo)||mo(n,po)})(e)?e:go(e.parentElement);var ho=go,bo=e=>({x:e.scrollLeft,y:e.scrollTop});const yo=e=>!!e&&("fixed"===window.getComputedStyle(e).position||yo(e.parentElement));const vo={passive:!1},wo={passive:!0};var Eo=e=>e.shouldPublishImmediately?vo:wo;const xo=e=>e&&e.env.closestScrollable||null;function So(t){const n=(0,e.useRef)(null),r=eo(Er),o=wr("droppable"),{registry:a,marshal:i}=r,l=xr(t),s=X((()=>({id:t.droppableId,type:t.type,mode:t.mode})),[t.droppableId,t.mode,t.type]),c=(0,e.useRef)(s),u=X((()=>de(((e,t)=>{n.current||ve(!1);const r={x:e,y:t};i.updateDroppableScroll(s.id,r)}))),[s.id,i]),d=J((()=>{const e=n.current;return e&&e.env.closestScrollable?bo(e.env.closestScrollable):Pe}),[]),f=J((()=>{const e=d();u(e.x,e.y)}),[d,u]),p=X((()=>fe(f)),[f]),m=J((()=>{const e=n.current,t=xo(e);e&&t||ve(!1),e.scrollOptions.shouldPublishImmediately?f():p()}),[p,f]),g=J(((e,t)=>{n.current&&ve(!1);const o=l.current,a=o.getDroppableRef();a||ve(!1);const i=(e=>({closestScrollable:ho(e),isFixedOnPage:yo(e)}))(a),c={ref:a,descriptor:s,env:i,scrollOptions:t};n.current=c;const u=(e=>{let{ref:t,descriptor:n,env:r,windowScroll:o,direction:a,isDropDisabled:i,isCombineEnabled:l,shouldClipSubject:s}=e;const c=r.closestScrollable,u=((e,t)=>{const n=se(e);if(!t)return n;if(e!==t)return n;const r=n.paddingBox.top-t.scrollTop,o=n.paddingBox.left-t.scrollLeft,a=r+t.scrollHeight,i=o+t.scrollWidth,l=ee({top:r,right:i,bottom:a,left:o},n.border);return re({borderBox:l,margin:n.margin,border:n.border,padding:n.padding})})(t,c),d=ie(u,o),f=(()=>{if(!c)return null;const e=se(c),t={scrollHeight:c.scrollHeight,scrollWidth:c.scrollWidth};return{client:e,page:ie(e,o),scroll:bo(c),scrollSize:t,shouldClipSubject:s}})(),p=(e=>{let{descriptor:t,isEnabled:n,isCombineEnabled:r,isFixedOnPage:o,direction:a,client:i,page:l,closest:s}=e;const c=(()=>{if(!s)return null;const{scrollSize:e,client:t}=s,n=Tn({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:n,diff:{value:Pe,displacement:Pe}}}})(),u="vertical"===a?nt:rt;return{descriptor:t,isCombineEnabled:r,isFixedOnPage:o,axis:u,isEnabled:n,client:i,page:l,frame:c,subject:Fe({page:l,withPlaceholder:null,axis:u,frame:c})}})({descriptor:n,isEnabled:!i,isCombineEnabled:l,isFixedOnPage:r.isFixedOnPage,direction:a,client:u,page:d,closest:f});return p})({ref:a,descriptor:s,env:i,windowScroll:e,direction:o.direction,isDropDisabled:o.isDropDisabled,isCombineEnabled:o.isCombineEnabled,shouldClipSubject:!o.ignoreContainerClipping}),d=i.closestScrollable;return d&&(d.setAttribute(ar.contextId,r.contextId),d.addEventListener("scroll",m,Eo(c.scrollOptions))),u}),[r.contextId,s,m,l]),h=J((()=>{const e=n.current,t=xo(e);return e&&t||ve(!1),bo(t)}),[]),b=J((()=>{const e=n.current;e||ve(!1);const t=xo(e);n.current=null,t&&(p.cancel(),t.removeAttribute(ar.contextId),t.removeEventListener("scroll",m,Eo(e.scrollOptions)))}),[m,p]),y=J((e=>{const t=n.current;t||ve(!1);const r=xo(t);r||ve(!1),r.scrollTop+=e.y,r.scrollLeft+=e.x}),[]),v=X((()=>({getDimensionAndWatchScroll:g,getScrollWhileDragging:h,dragStopped:b,scroll:y})),[b,g,h,y]),w=X((()=>({uniqueId:o,descriptor:s,callbacks:v})),[v,s,o]);sr((()=>(c.current=w.descriptor,a.droppable.register(w),()=>{n.current&&b(),a.droppable.unregister(w)})),[v,s,b,w,i,a.droppable]),sr((()=>{n.current&&i.updateDroppableIsEnabled(c.current.id,!t.isDropDisabled)}),[t.isDropDisabled,i]),sr((()=>{n.current&&i.updateDroppableIsCombineEnabled(c.current.id,t.isCombineEnabled)}),[t.isCombineEnabled,i])}function ko(){}const Oo={width:0,height:0,margin:{top:0,right:0,bottom:0,left:0}};var Co=e.memo((t=>{const n=(0,e.useRef)(null),r=J((()=>{n.current&&(clearTimeout(n.current),n.current=null)}),[]),{animate:o,onTransitionEnd:a,onClose:i,contextId:l}=t,[s,c]=(0,e.useState)("open"===t.animate);(0,e.useEffect)((()=>s?"open"!==o?(r(),c(!1),ko):n.current?ko:(n.current=setTimeout((()=>{n.current=null,c(!1)})),r):ko),[o,s,r]);const u=J((e=>{"height"===e.propertyName&&(a(),"close"===o&&i())}),[o,i,a]),d=(e=>{let{isAnimatingOpenOnMount:t,placeholder:n,animate:r}=e;const o=(e=>{let{isAnimatingOpenOnMount:t,placeholder:n,animate:r}=e;return t||"close"===r?Oo:{height:n.client.borderBox.height,width:n.client.borderBox.width,margin:n.client.margin}})({isAnimatingOpenOnMount:t,placeholder:n,animate:r});return{display:n.display,boxSizing:"border-box",width:o.width,height:o.height,marginTop:o.margin.top,marginRight:o.margin.right,marginBottom:o.margin.bottom,marginLeft:o.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:"none"!==r?mn.placeholder:null}})({isAnimatingOpenOnMount:s,animate:t.animate,placeholder:t.placeholder});return e.createElement(t.placeholder.tagName,{style:d,"data-rfd-placeholder-context-id":l,onTransitionEnd:u,ref:t.innerRef})}));class Po extends e.PureComponent{constructor(){super(...arguments),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)}}const Do={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:function(){return document.body||ve(!1),document.body}},No=e=>{let t,n={...e};for(t in Do)void 0===e[t]&&(n={...n,[t]:Do[t]});return n},Io=(e,t)=>e===t.droppable.type,_o=(e,t)=>t.draggables[e.draggable.id];var Ro=q((()=>{const e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},t={...e,shouldAnimatePlaceholder:!1},n=de((e=>({draggableId:e.id,type:e.type,source:{index:e.index,droppableId:e.droppableId}}))),r=de(((r,o,a,i,l,s)=>{const c=l.descriptor.id;if(l.descriptor.droppableId===r){const e=s?{render:s,dragging:n(l.descriptor)}:null,t={isDraggingOver:a,draggingOverWith:a?c:null,draggingFromThisWith:c,isUsingPlaceholder:!0};return{placeholder:l.placeholder,shouldAnimatePlaceholder:!1,snapshot:t,useClone:e}}if(!o)return t;if(!i)return e;const u={isDraggingOver:a,draggingOverWith:c,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:l.placeholder,shouldAnimatePlaceholder:!0,snapshot:u,useClone:null}}));return(n,o)=>{const a=No(o),i=a.droppableId,l=a.type,s=!a.isDropDisabled,c=a.renderClone;if(Sr(n)){const e=n.critical;if(!Io(l,e))return t;const o=_o(e,n.dimensions),a=Nt(n.impact)===i;return r(i,s,a,a,o,c)}if("DROP_ANIMATING"===n.phase){const e=n.completed;if(!Io(l,e.critical))return t;const o=_o(e.critical,n.dimensions);return r(i,s,ro(e.result)===i,Nt(e.impact)===i,o,c)}if("IDLE"===n.phase&&n.completed&&!n.shouldFlush){const r=n.completed;if(!Io(l,r.critical))return t;const o=Nt(r.impact)===i,a=Boolean(r.impact.at&&"COMBINE"===r.impact.at.type),s=r.critical.droppable.id===i;return o?a?e:t:s?e:t}return t}}),{updateViewportMaxScroll:e=>({type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e})},((e,t,n)=>({...No(n),...e,...t})),{context:gr,areStatePropsEqual:no})((t=>{const n=(0,e.useContext)(Er);n||ve(!1);const{contextId:o,isMovementAllowed:a}=n,i=(0,e.useRef)(null),l=(0,e.useRef)(null),{children:s,droppableId:c,type:u,mode:d,direction:f,ignoreContainerClipping:p,isDropDisabled:m,isCombineEnabled:g,snapshot:h,useClone:b,updateViewportMaxScroll:y,getContainerForClone:v}=t,w=J((()=>i.current),[]),E=J((function(e){void 0===e&&(e=null),i.current=e}),[]),x=(J((()=>l.current),[]),J((function(e){void 0===e&&(e=null),l.current=e}),[])),S=J((()=>{a()&&y({maxScroll:jn()})}),[a,y]);So({droppableId:c,type:u,mode:d,direction:f,isDropDisabled:m,isCombineEnabled:g,ignoreContainerClipping:p,getDroppableRef:w});const k=X((()=>e.createElement(Po,{on:t.placeholder,shouldAnimate:t.shouldAnimatePlaceholder},(t=>{let{onClose:n,data:r,animate:a}=t;return e.createElement(Co,{placeholder:r,onClose:n,innerRef:x,animate:a,contextId:o,onTransitionEnd:S})}))),[o,S,t.placeholder,t.shouldAnimatePlaceholder,x]),O=X((()=>({innerRef:E,placeholder:k,droppableProps:{"data-rfd-droppable-id":c,"data-rfd-droppable-context-id":o}})),[o,c,k,E]),C=b?b.dragging.draggableId:null,P=X((()=>({droppableId:c,type:u,isUsingCloneFor:C})),[c,C,u]);return e.createElement(Zr.Provider,{value:P},s(O,h),function(){if(!b)return null;const{dragging:t,render:n}=b,o=e.createElement(so,{draggableId:t.draggableId,index:t.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},((e,r)=>n(e,r,t)));return r.createPortal(o,v())}())}));const To=e=>{let t;const n=new Set,r=(e,r)=>{const o="function"==typeof e?e(t):e;if(!Object.is(o,t)){const e=t;t=(null!=r?r:"object"!=typeof o||null===o)?o:Object.assign({},t,o),n.forEach((n=>n(t,e)))}},o=()=>t,a={setState:r,getState:o,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}};return t=e(r,o,a),a},{useDebugValue:Ao}=e,{useSyncExternalStoreWithSelector:jo}=b;let Lo=!1;const Mo=e=>{"function"!=typeof e&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t="function"==typeof e?(e=>e?To(e):To)(e):e,n=(e,n)=>function(e,t=e.getState,n){n&&!Lo&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),Lo=!0);const r=jo(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return Ao(r),r}(t,e,n);return Object.assign(n,t),n};function Bo(e){return Bo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bo(e)}function Fo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zo(e){for(var t=1;t5&&void 0!==arguments[5]&&arguments[5],i={opacity:t.isDragging?.7:1,backgroundColor:r||o?"#eae7f7":"initial"};return!a&&null==t.draggingOver&&(!t.isDragging||t.isDragging&&t.isDropAnimating)&&(e.transform="none"),t.isDropAnimating?(n&&(i.transitionDuration="0.001s"),zo(zo({},e),i)):zo(zo({},e),i)},Ho=function(e,t){var n=t.isDraggingOver;return zo(zo({},e),{backgroundColor:n?"#f2f2f2":"#f9f9f9",border:n?"1px dashed #ccc":"0"})};function Go(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:",";try{t=Math.abs(t),t=isNaN(t)?2:t;var o=e<0?"-":"",a=parseInt(e=Math.abs(Number(e)||0).toFixed(t)).toString(),i=a.length>3?a.length%3:0;return o+(i?a.substr(0,i)+r:"")+a.substr(i).replace(/(\d{3})(?=\d)/g,"$1"+r)+(t?n+Math.abs(e-a).toFixed(t).slice(2):"")}catch(t){return e}}var Vo=n(962);function qo(e,t){return e.contains?e.contains(t):e.compareDocumentPosition?e===t||!!(16&e.compareDocumentPosition(t)):void 0}var Ko=n(697),Qo=n.n(Ko);function Yo(){const t=(0,e.useRef)(!0),n=(0,e.useRef)((()=>t.current));return(0,e.useEffect)((()=>(t.current=!0,()=>{t.current=!1})),[]),n.current}function Xo(t){const n=function(t){const n=(0,e.useRef)(t);return n.current=t,n}(t);(0,e.useEffect)((()=>()=>n.current()),[])}const Jo=2**31-1;function Zo(e,t,n){const r=n-Date.now();e.current=r<=Jo?setTimeout(t,r):setTimeout((()=>Zo(e,t,n)),Jo)}function ea(){const t=Yo(),n=(0,e.useRef)();return Xo((()=>clearTimeout(n.current))),(0,e.useMemo)((()=>{const e=()=>clearTimeout(n.current);return{set:function(r,o=0){t()&&(e(),o<=Jo?n.current=setTimeout(r,o):Zo(n,r,Date.now()+o))},clear:e}}),[])}var ta=n(473),na=n.n(ta);function ra(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function oa(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}function aa(t,n,r){var o=(0,e.useRef)(void 0!==t),a=(0,e.useState)(n),i=a[0],l=a[1],s=void 0!==t,c=o.current;return o.current=s,!s&&c&&i!==n&&l(n),[s?t:i,(0,e.useCallback)((function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;oe&&"function"!=typeof e?t=>{e.current=t}:e,la=function(t,n){return(0,e.useMemo)((()=>function(e,t){const n=ia(e),r=ia(t);return e=>{n&&n(e),r&&r(e)}}(t,n)),[t,n])};var sa=n(184),ca=n.n(sa);function ua(){return(0,e.useState)(null)}var da=Object.prototype.hasOwnProperty;function fa(e,t,n){for(n of e.keys())if(pa(n,t))return n}function pa(e,t){var n,r,o;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&pa(e[r],t[r]););return-1===r}if(n===Set){if(e.size!==t.size)return!1;for(r of e){if((o=r)&&"object"==typeof o&&!(o=fa(t,o)))return!1;if(!t.has(o))return!1}return!0}if(n===Map){if(e.size!==t.size)return!1;for(r of e){if((o=r[0])&&"object"==typeof o&&!(o=fa(t,o)))return!1;if(!pa(r[1],t.get(o)))return!1}return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return-1===r}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return-1===r}if(!n||"object"==typeof e){for(n in r=0,e){if(da.call(e,n)&&++r&&!da.call(t,n))return!1;if(!(n in t)||!pa(e[n],t[n]))return!1}return Object.keys(t).length===r}}return e!=e&&t!=t}function ma(e){return e.split("-")[0]}function ga(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ha(e){return e instanceof ga(e).Element||e instanceof Element}function ba(e){return e instanceof ga(e).HTMLElement||e instanceof HTMLElement}function ya(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ga(e).ShadowRoot||e instanceof ShadowRoot)}var va=Math.max,wa=Math.min,Ea=Math.round;function xa(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function Sa(){return!/^((?!chrome|android).)*safari/i.test(xa())}function ka(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,a=1;t&&ba(e)&&(o=e.offsetWidth>0&&Ea(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Ea(r.height)/e.offsetHeight||1);var i=(ha(e)?ga(e):window).visualViewport,l=!Sa()&&n,s=(r.left+(l&&i?i.offsetLeft:0))/o,c=(r.top+(l&&i?i.offsetTop:0))/a,u=r.width/o,d=r.height/a;return{width:u,height:d,top:c,right:s+u,bottom:c+d,left:s,x:s,y:c}}function Oa(e){var t=ka(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Ca(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&ya(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Pa(e){return e?(e.nodeName||"").toLowerCase():null}function Da(e){return ga(e).getComputedStyle(e)}function Na(e){return["table","td","th"].indexOf(Pa(e))>=0}function Ia(e){return((ha(e)?e.ownerDocument:e.document)||window.document).documentElement}function _a(e){return"html"===Pa(e)?e:e.assignedSlot||e.parentNode||(ya(e)?e.host:null)||Ia(e)}function Ra(e){return ba(e)&&"fixed"!==Da(e).position?e.offsetParent:null}function Ta(e){for(var t=ga(e),n=Ra(e);n&&Na(n)&&"static"===Da(n).position;)n=Ra(n);return n&&("html"===Pa(n)||"body"===Pa(n)&&"static"===Da(n).position)?t:n||function(e){var t=/firefox/i.test(xa());if(/Trident/i.test(xa())&&ba(e)&&"fixed"===Da(e).position)return null;var n=_a(e);for(ya(n)&&(n=n.host);ba(n)&&["html","body"].indexOf(Pa(n))<0;){var r=Da(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function Aa(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ja(e,t,n){return va(e,wa(t,n))}function La(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Ma(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var Ba="top",Fa="bottom",za="right",Ua="left",$a="auto",Wa=[Ba,Fa,za,Ua],Ha="start",Ga="end",Va="viewport",qa="popper",Ka=Wa.reduce((function(e,t){return e.concat([t+"-"+Ha,t+"-"+Ga])}),[]),Qa=[].concat(Wa,[$a]).reduce((function(e,t){return e.concat([t,t+"-"+Ha,t+"-"+Ga])}),[]),Ya=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];const Xa={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,i=n.modifiersData.popperOffsets,l=ma(n.placement),s=Aa(l),c=[Ua,za].indexOf(l)>=0?"height":"width";if(a&&i){var u=function(e,t){return La("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Ma(e,Wa))}(o.padding,n),d=Oa(a),f="y"===s?Ba:Ua,p="y"===s?Fa:za,m=n.rects.reference[c]+n.rects.reference[s]-i[s]-n.rects.popper[c],g=i[s]-n.rects.reference[s],h=Ta(a),b=h?"y"===s?h.clientHeight||0:h.clientWidth||0:0,y=m/2-g/2,v=u[f],w=b-d[c]-u[p],E=b/2-d[c]/2+y,x=ja(v,E,w),S=s;n.modifiersData[r]=((t={})[S]=x,t.centerOffset=x-E,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&Ca(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ja(e){return e.split("-")[1]}var Za={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ei(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,l=e.position,s=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=i.x,p=void 0===f?0:f,m=i.y,g=void 0===m?0:m,h="function"==typeof u?u({x:p,y:g}):{x:p,y:g};p=h.x,g=h.y;var b=i.hasOwnProperty("x"),y=i.hasOwnProperty("y"),v=Ua,w=Ba,E=window;if(c){var x=Ta(n),S="clientHeight",k="clientWidth";x===ga(n)&&"static"!==Da(x=Ia(n)).position&&"absolute"===l&&(S="scrollHeight",k="scrollWidth"),(o===Ba||(o===Ua||o===za)&&a===Ga)&&(w=Fa,g-=(d&&x===E&&E.visualViewport?E.visualViewport.height:x[S])-r.height,g*=s?1:-1),o!==Ua&&(o!==Ba&&o!==Fa||a!==Ga)||(v=za,p-=(d&&x===E&&E.visualViewport?E.visualViewport.width:x[k])-r.width,p*=s?1:-1)}var O,C=Object.assign({position:l},c&&Za),P=!0===u?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Ea(n*o)/o||0,y:Ea(r*o)/o||0}}({x:p,y:g},ga(n)):{x:p,y:g};return p=P.x,g=P.y,s?Object.assign({},C,((O={})[w]=y?"0":"",O[v]=b?"0":"",O.transform=(E.devicePixelRatio||1)<=1?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",O)):Object.assign({},C,((t={})[w]=y?g+"px":"",t[v]=b?p+"px":"",t.transform="",t))}const ti={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,a=n.adaptive,i=void 0===a||a,l=n.roundOffsets,s=void 0===l||l,c={placement:ma(t.placement),variation:Ja(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,ei(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,ei(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var ni={passive:!0};const ri={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=void 0===o||o,i=r.resize,l=void 0===i||i,s=ga(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach((function(e){e.addEventListener("scroll",n.update,ni)})),l&&s.addEventListener("resize",n.update,ni),function(){a&&c.forEach((function(e){e.removeEventListener("scroll",n.update,ni)})),l&&s.removeEventListener("resize",n.update,ni)}},data:{}};var oi={left:"right",right:"left",bottom:"top",top:"bottom"};function ai(e){return e.replace(/left|right|bottom|top/g,(function(e){return oi[e]}))}var ii={start:"end",end:"start"};function li(e){return e.replace(/start|end/g,(function(e){return ii[e]}))}function si(e){var t=ga(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function ci(e){return ka(Ia(e)).left+si(e).scrollLeft}function ui(e){var t=Da(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function di(e){return["html","body","#document"].indexOf(Pa(e))>=0?e.ownerDocument.body:ba(e)&&ui(e)?e:di(_a(e))}function fi(e,t){var n;void 0===t&&(t=[]);var r=di(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),a=ga(r),i=o?[a].concat(a.visualViewport||[],ui(r)?r:[]):r,l=t.concat(i);return o?l:l.concat(fi(_a(i)))}function pi(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function mi(e,t,n){return t===Va?pi(function(e,t){var n=ga(e),r=Ia(e),o=n.visualViewport,a=r.clientWidth,i=r.clientHeight,l=0,s=0;if(o){a=o.width,i=o.height;var c=Sa();(c||!c&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}return{width:a,height:i,x:l+ci(e),y:s}}(e,n)):ha(t)?function(e,t){var n=ka(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):pi(function(e){var t,n=Ia(e),r=si(e),o=null==(t=e.ownerDocument)?void 0:t.body,a=va(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=va(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+ci(e),s=-r.scrollTop;return"rtl"===Da(o||n).direction&&(l+=va(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:l,y:s}}(Ia(e)))}function gi(e){var t,n=e.reference,r=e.element,o=e.placement,a=o?ma(o):null,i=o?Ja(o):null,l=n.x+n.width/2-r.width/2,s=n.y+n.height/2-r.height/2;switch(a){case Ba:t={x:l,y:n.y-r.height};break;case Fa:t={x:l,y:n.y+n.height};break;case za:t={x:n.x+n.width,y:s};break;case Ua:t={x:n.x-r.width,y:s};break;default:t={x:n.x,y:n.y}}var c=a?Aa(a):null;if(null!=c){var u="y"===c?"height":"width";switch(i){case Ha:t[c]=t[c]-(n[u]/2-r[u]/2);break;case Ga:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}function hi(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,a=n.strategy,i=void 0===a?e.strategy:a,l=n.boundary,s=void 0===l?"clippingParents":l,c=n.rootBoundary,u=void 0===c?Va:c,d=n.elementContext,f=void 0===d?qa:d,p=n.altBoundary,m=void 0!==p&&p,g=n.padding,h=void 0===g?0:g,b=La("number"!=typeof h?h:Ma(h,Wa)),y=f===qa?"reference":qa,v=e.rects.popper,w=e.elements[m?y:f],E=function(e,t,n,r){var o="clippingParents"===t?function(e){var t=fi(_a(e)),n=["absolute","fixed"].indexOf(Da(e).position)>=0&&ba(e)?Ta(e):e;return ha(n)?t.filter((function(e){return ha(e)&&Ca(e,n)&&"body"!==Pa(e)})):[]}(e):[].concat(t),a=[].concat(o,[n]),i=a[0],l=a.reduce((function(t,n){var o=mi(e,n,r);return t.top=va(o.top,t.top),t.right=wa(o.right,t.right),t.bottom=wa(o.bottom,t.bottom),t.left=va(o.left,t.left),t}),mi(e,i,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}(ha(w)?w:w.contextElement||Ia(e.elements.popper),s,u,i),x=ka(e.elements.reference),S=gi({reference:x,element:v,strategy:"absolute",placement:o}),k=pi(Object.assign({},v,S)),O=f===qa?k:x,C={top:E.top-O.top+b.top,bottom:O.bottom-E.bottom+b.bottom,left:E.left-O.left+b.left,right:O.right-E.right+b.right},P=e.modifiersData.offset;if(f===qa&&P){var D=P[o];Object.keys(C).forEach((function(e){var t=[za,Fa].indexOf(e)>=0?1:-1,n=[Ba,Fa].indexOf(e)>=0?"y":"x";C[e]+=D[n]*t}))}return C}const bi={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=void 0===o||o,i=n.altAxis,l=void 0===i||i,s=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=void 0===p||p,g=n.allowedAutoPlacements,h=t.options.placement,b=ma(h),y=s||(b!==h&&m?function(e){if(ma(e)===$a)return[];var t=ai(e);return[li(e),t,li(t)]}(h):[ai(h)]),v=[h].concat(y).reduce((function(e,n){return e.concat(ma(n)===$a?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,i=n.padding,l=n.flipVariations,s=n.allowedAutoPlacements,c=void 0===s?Qa:s,u=Ja(r),d=u?l?Ka:Ka.filter((function(e){return Ja(e)===u})):Wa,f=d.filter((function(e){return c.indexOf(e)>=0}));0===f.length&&(f=d);var p=f.reduce((function(t,n){return t[n]=hi(e,{placement:n,boundary:o,rootBoundary:a,padding:i})[ma(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:m,allowedAutoPlacements:g}):n)}),[]),w=t.rects.reference,E=t.rects.popper,x=new Map,S=!0,k=v[0],O=0;O=0,I=N?"width":"height",_=hi(t,{placement:C,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),R=N?D?za:Ua:D?Fa:Ba;w[I]>E[I]&&(R=ai(R));var T=ai(R),A=[];if(a&&A.push(_[P]<=0),l&&A.push(_[R]<=0,_[T]<=0),A.every((function(e){return e}))){k=C,S=!1;break}x.set(C,A)}if(S)for(var j=function(e){var t=v.find((function(t){var n=x.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return k=t,"break"},L=m?3:1;L>0&&"break"!==j(L);L--);t.placement!==k&&(t.modifiersData[r]._skip=!0,t.placement=k,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function yi(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function vi(e){return[Ba,za,Fa,Ua].some((function(t){return e[t]>=0}))}const wi={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=hi(t,{elementContext:"reference"}),l=hi(t,{altBoundary:!0}),s=yi(i,r),c=yi(l,o,a),u=vi(s),d=vi(c);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}},Ei={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=void 0===o?[0,0]:o,i=Qa.reduce((function(e,n){return e[n]=function(e,t,n){var r=ma(e),o=[Ua,Ba].indexOf(r)>=0?-1:1,a="function"==typeof n?n(Object.assign({},t,{placement:e})):n,i=a[0],l=a[1];return i=i||0,l=(l||0)*o,[Ua,za].indexOf(r)>=0?{x:l,y:i}:{x:i,y:l}}(n,t.rects,a),e}),{}),l=i[t.placement],s=l.x,c=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=i}},xi={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=gi({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},Si={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=void 0===o||o,i=n.altAxis,l=void 0!==i&&i,s=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=void 0===f||f,m=n.tetherOffset,g=void 0===m?0:m,h=hi(t,{boundary:s,rootBoundary:c,padding:d,altBoundary:u}),b=ma(t.placement),y=Ja(t.placement),v=!y,w=Aa(b),E="x"===w?"y":"x",x=t.modifiersData.popperOffsets,S=t.rects.reference,k=t.rects.popper,O="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,C="number"==typeof O?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),P=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,D={x:0,y:0};if(x){if(a){var N,I="y"===w?Ba:Ua,_="y"===w?Fa:za,R="y"===w?"height":"width",T=x[w],A=T+h[I],j=T-h[_],L=p?-k[R]/2:0,M=y===Ha?S[R]:k[R],B=y===Ha?-k[R]:-S[R],F=t.elements.arrow,z=p&&F?Oa(F):{width:0,height:0},U=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},$=U[I],W=U[_],H=ja(0,S[R],z[R]),G=v?S[R]/2-L-H-$-C.mainAxis:M-H-$-C.mainAxis,V=v?-S[R]/2+L+H+W+C.mainAxis:B+H+W+C.mainAxis,q=t.elements.arrow&&Ta(t.elements.arrow),K=q?"y"===w?q.clientTop||0:q.clientLeft||0:0,Q=null!=(N=null==P?void 0:P[w])?N:0,Y=T+V-Q,X=ja(p?wa(A,T+G-Q-K):A,T,p?va(j,Y):j);x[w]=X,D[w]=X-T}if(l){var J,Z="x"===w?Ba:Ua,ee="x"===w?Fa:za,te=x[E],ne="y"===E?"height":"width",re=te+h[Z],oe=te-h[ee],ae=-1!==[Ba,Ua].indexOf(b),ie=null!=(J=null==P?void 0:P[E])?J:0,le=ae?re:te-S[ne]-k[ne]-ie+C.altAxis,se=ae?te+S[ne]+k[ne]-ie-C.altAxis:oe,ce=p&&ae?function(e,t,n){var r=ja(e,t,n);return r>n?n:r}(le,te,se):ja(p?le:re,te,p?se:oe);x[E]=ce,D[E]=ce-te}t.modifiersData[r]=D}},requiresIfExists:["offset"]};function ki(e,t,n){void 0===n&&(n=!1);var r,o,a=ba(t),i=ba(t)&&function(e){var t=e.getBoundingClientRect(),n=Ea(t.width)/e.offsetWidth||1,r=Ea(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),l=Ia(t),s=ka(e,i,n),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(a||!a&&!n)&&(("body"!==Pa(t)||ui(l))&&(c=(r=t)!==ga(r)&&ba(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:si(r)),ba(t)?((u=ka(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):l&&(u.x=ci(l))),{x:s.left+c.scrollLeft-u.x,y:s.top+c.scrollTop-u.y,width:s.width,height:s.height}}function Oi(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}function Ci(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var Pi={placement:"bottom",modifiers:[],strategy:"absolute"};function Di(){for(var e=arguments.length,t=new Array(e),n=0;n{}},Ri={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:e})=>()=>{const{reference:t,popper:n}=e.elements;if("removeAttribute"in t){const e=(t.getAttribute("aria-describedby")||"").split(",").filter((e=>e.trim()!==n.id));e.length?t.setAttribute("aria-describedby",e.join(",")):t.removeAttribute("aria-describedby")}},fn:({state:e})=>{var t;const{popper:n,reference:r}=e.elements,o=null==(t=n.getAttribute("role"))?void 0:t.toLowerCase();if(n.id&&"tooltip"===o&&"setAttribute"in r){const e=r.getAttribute("aria-describedby");if(e&&-1!==e.split(",").indexOf(n.id))return;r.setAttribute("aria-describedby",e?`${e},${n.id}`:n.id)}}},Ti=[],Ai=function(t,n,r={}){let{enabled:o=!0,placement:a="bottom",strategy:i="absolute",modifiers:l=Ti}=r,s=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(r,Ii);const c=(0,e.useRef)(l),u=(0,e.useRef)(),d=(0,e.useCallback)((()=>{var e;null==(e=u.current)||e.update()}),[]),f=(0,e.useCallback)((()=>{var e;null==(e=u.current)||e.forceUpdate()}),[]),[p,m]=function(t){const n=Yo();return[t[0],(0,e.useCallback)((e=>{if(n())return t[1](e)}),[n,t[1]])]}((0,e.useState)({placement:a,update:d,forceUpdate:f,attributes:{},styles:{popper:{},arrow:{}}})),g=(0,e.useMemo)((()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:e})=>{const t={},n={};Object.keys(e.elements).forEach((r=>{t[r]=e.styles[r],n[r]=e.attributes[r]})),m({state:e,styles:t,attributes:n,update:d,forceUpdate:f,placement:e.placement})}})),[d,f,m]),h=(0,e.useMemo)((()=>(pa(c.current,l)||(c.current=l),c.current)),[l]);return(0,e.useEffect)((()=>{u.current&&o&&u.current.setOptions({placement:a,strategy:i,modifiers:[...h,g,_i]})}),[i,a,g,o,h]),(0,e.useEffect)((()=>{if(o&&null!=t&&null!=n)return u.current=Ni(t,n,Object.assign({},s,{placement:a,strategy:i,modifiers:[...h,Ri,g]})),()=>{null!=u.current&&(u.current.destroy(),u.current=void 0,m((e=>Object.assign({},e,{attributes:{},styles:{popper:{}}}))))}}),[o,t,n]),p},ji=!("undefined"==typeof window||!window.document||!window.document.createElement);var Li=!1,Mi=!1;try{var Bi={get passive(){return Li=!0},get once(){return Mi=Li=!0}};ji&&(window.addEventListener("test",Bi,Bi),window.removeEventListener("test",Bi,!0))}catch(e){}const Fi=function(e,t,n,r){if(r&&"boolean"!=typeof r&&!Mi){var o=r.once,a=r.capture,i=n;!Mi&&o&&(i=n.__once||function e(r){this.removeEventListener(t,e,a),n.call(this,r)},n.__once=i),e.addEventListener(t,i,Li?r:a)}e.addEventListener(t,n,r)},zi=function(e,t,n,r){var o=r&&"boolean"!=typeof r?r.capture:r;e.removeEventListener(t,n,o),n.__once&&e.removeEventListener(t,n.__once,o)},Ui=function(e,t,n,r){return Fi(e,t,n,r),function(){zi(e,t,n,r)}};function $i(e){return e&&e.ownerDocument||document}const Wi=function(t){const n=(0,e.useRef)(t);return(0,e.useEffect)((()=>{n.current=t}),[t]),n};function Hi(t){const n=Wi(t);return(0,e.useCallback)((function(...e){return n.current&&n.current(...e)}),[n])}const Gi=()=>{},Vi=e=>e&&("current"in e?e.current:e),qi={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function Ki(e){return"Escape"===e.code||27===e.keyCode}const Qi=()=>{},Yi=function(t,n,{disabled:r,clickTrigger:o}={}){const a=n||Qi;!function(t,n=Gi,{disabled:r,clickTrigger:o="click"}={}){const a=(0,e.useRef)(!1),i=(0,e.useRef)(!1),l=(0,e.useCallback)((e=>{const n=Vi(t);var r;na()(!!n,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),a.current=!n||!!((r=e).metaKey||r.altKey||r.ctrlKey||r.shiftKey)||!function(e){return 0===e.button}(e)||!!qo(n,e.target)||i.current,i.current=!1}),[t]),s=Hi((e=>{const n=Vi(t);n&&qo(n,e.target)&&(i.current=!0)})),c=Hi((e=>{a.current||n(e)}));(0,e.useEffect)((()=>{var e,n;if(r||null==t)return;const a=$i(Vi(t)),i=a.defaultView||window;let u=null!=(e=i.event)?e:null==(n=i.parent)?void 0:n.event,d=null;qi[o]&&(d=Ui(a,qi[o],s,!0));const f=Ui(a,o,l,!0),p=Ui(a,o,(e=>{e!==u?c(e):u=void 0}));let m=[];return"ontouchstart"in a.documentElement&&(m=[].slice.call(a.body.children).map((e=>Ui(e,"mousemove",Gi)))),()=>{null==d||d(),f(),p(),m.forEach((e=>e()))}}),[t,r,o,l,s,c])}(t,a,{disabled:r,clickTrigger:o});const i=Hi((e=>{Ki(e)&&a(e)}));(0,e.useEffect)((()=>{if(r||null==t)return;const e=$i(Vi(t));let n=(e.defaultView||window).event;const o=Ui(e,"keyup",(e=>{e!==n?i(e):n=void 0}));return()=>{o()}}),[t,r,i])},Xi=(0,e.createContext)(ji?window:void 0);function Ji(){return(0,e.useContext)(Xi)}Xi.Provider;const Zi=(e,t)=>ji?null==e?(t||$i()).body:("function"==typeof e&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function el(t,n){const r=Ji(),[o,a]=(0,e.useState)((()=>Zi(t,null==r?void 0:r.document)));if(!o){const e=Zi(t);e&&a(e)}return(0,e.useEffect)((()=>{n&&o&&n(o)}),[n,o]),(0,e.useEffect)((()=>{const e=Zi(t);e!==o&&a(e)}),[t,o]),o}function tl(e={}){return Array.isArray(e)?e:Object.keys(e).map((t=>(e[t].name=t,e[t])))}const nl=void 0!==n.g&&n.g.navigator&&"ReactNative"===n.g.navigator.product,rl="undefined"!=typeof document||nl?e.useLayoutEffect:e.useEffect,ol=function({children:t,in:n,onExited:r,mountOnEnter:o,unmountOnExit:a}){const i=(0,e.useRef)(null),l=(0,e.useRef)(n),s=Hi(r);(0,e.useEffect)((()=>{n?l.current=!0:s(i.current)}),[n,s]);const c=la(i,t.ref),u=(0,e.cloneElement)(t,{ref:c});return n?u:a||!l.current&&o?null:u};var al=n(893);function il({children:t,in:n,onExited:r,onEntered:o,transition:a}){const[i,l]=(0,e.useState)(!n);n&&i&&l(!1);const s=function({in:t,onTransition:n}){const r=(0,e.useRef)(null),o=(0,e.useRef)(!0),a=Hi(n);return rl((()=>{if(!r.current)return;let e=!1;return a({in:t,element:r.current,initial:o.current,isStale:()=>e}),()=>{e=!0}}),[t,a]),rl((()=>(o.current=!1,()=>{o.current=!0})),[]),r}({in:!!n,onTransition:e=>{Promise.resolve(a(e)).then((()=>{e.isStale()||(e.in?null==o||o(e.element,e.initial):(l(!0),null==r||r(e.element)))}),(t=>{throw e.in||l(!0),t}))}}),c=la(s,t.ref);return i&&!n?null:(0,e.cloneElement)(t,{ref:c})}function ll(e,t,n){return e?(0,al.jsx)(e,Object.assign({},n)):t?(0,al.jsx)(il,Object.assign({},n,{transition:t})):(0,al.jsx)(ol,Object.assign({},n))}const sl=e.forwardRef(((t,n)=>{const{flip:o,offset:a,placement:i,containerPadding:l,popperConfig:s={},transition:c,runTransition:u}=t,[d,f]=ua(),[p,m]=ua(),g=la(f,n),h=el(t.container),b=el(t.target),[y,v]=(0,e.useState)(!t.show),w=Ai(b,d,function({enabled:e,enableEvents:t,placement:n,flip:r,offset:o,fixed:a,containerPadding:i,arrowElement:l,popperConfig:s={}}){var c,u,d,f,p;const m=function(e){const t={};return Array.isArray(e)?(null==e||e.forEach((e=>{t[e.name]=e})),t):e||t}(s.modifiers);return Object.assign({},s,{placement:n,enabled:e,strategy:a?"fixed":s.strategy,modifiers:tl(Object.assign({},m,{eventListeners:{enabled:t,options:null==(c=m.eventListeners)?void 0:c.options},preventOverflow:Object.assign({},m.preventOverflow,{options:i?Object.assign({padding:i},null==(u=m.preventOverflow)?void 0:u.options):null==(d=m.preventOverflow)?void 0:d.options}),offset:{options:Object.assign({offset:o},null==(f=m.offset)?void 0:f.options)},arrow:Object.assign({},m.arrow,{enabled:!!l,options:Object.assign({},null==(p=m.arrow)?void 0:p.options,{element:l})}),flip:Object.assign({enabled:!!r},m.flip)}))})}({placement:i,enableEvents:!!t.show,containerPadding:l||5,flip:o,offset:a,arrowElement:p,popperConfig:s}));t.show&&y&&v(!1);const E=t.show||!y;if(Yi(d,t.onHide,{disabled:!t.rootClose||t.rootCloseDisabled,clickTrigger:t.rootCloseEvent}),!E)return null;const{onExit:x,onExiting:S,onEnter:k,onEntering:O,onEntered:C}=t;let P=t.children(Object.assign({},w.attributes.popper,{style:w.styles.popper,ref:g}),{popper:w,placement:i,show:!!t.show,arrowProps:Object.assign({},w.attributes.arrow,{style:w.styles.arrow,ref:m})});return P=ll(c,u,{in:!!t.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:P,onExit:x,onExiting:S,onExited:(...e)=>{v(!0),t.onExited&&t.onExited(...e)},onEnter:k,onEntering:O,onEntered:C}),h?r.createPortal(P,h):null}));sl.displayName="Overlay";const cl=sl;function ul(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}const dl=e.createContext({prefixes:{},breakpoints:["xxl","xl","lg","md","sm","xs"],minBreakpoint:"xs"}),{Consumer:fl,Provider:pl}=dl;function ml(t,n){const{prefixes:r}=(0,e.useContext)(dl);return t||r[n]||n}function gl(){const{dir:t}=(0,e.useContext)(dl);return"rtl"===t}const hl=e.forwardRef((({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=ml(t,"popover-header"),(0,al.jsx)(n,{ref:o,className:ca()(e,t),...r}))));hl.displayName="PopoverHeader";const bl=hl,yl=e.forwardRef((({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=ml(t,"popover-body"),(0,al.jsx)(n,{ref:o,className:ca()(e,t),...r}))));yl.displayName="PopoverBody";const vl=yl;function wl(e,t){let n=e;return"left"===e?n=t?"end":"start":"right"===e&&(n=t?"start":"end"),n}function El(e="absolute"){return{position:e,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}e.Component;const xl=e.forwardRef((({bsPrefix:e,placement:t="right",className:n,style:r,children:o,body:a,arrowProps:i,hasDoneInitialMeasure:l,popper:s,show:c,...u},d)=>{const f=ml(e,"popover"),p=gl(),[m]=(null==t?void 0:t.split("-"))||[],g=wl(m,p);let h=r;return c&&!l&&(h={...r,...El(null==s?void 0:s.strategy)}),(0,al.jsxs)("div",{ref:d,role:"tooltip",style:h,"x-placement":m,className:ca()(n,f,m&&`bs-popover-${g}`),...u,children:[(0,al.jsx)("div",{className:"popover-arrow",...i}),a?(0,al.jsx)(vl,{children:o}):o]})})),Sl=Object.assign(xl,{Header:bl,Body:vl,POPPER_OFFSET:[0,8]}),kl=e.forwardRef((({bsPrefix:e,placement:t="right",className:n,style:r,children:o,arrowProps:a,hasDoneInitialMeasure:i,popper:l,show:s,...c},u)=>{e=ml(e,"tooltip");const d=gl(),[f]=(null==t?void 0:t.split("-"))||[],p=wl(f,d);let m=r;return s&&!i&&(m={...r,...El(null==l?void 0:l.strategy)}),(0,al.jsxs)("div",{ref:u,style:m,role:"tooltip","x-placement":f,className:ca()(n,e,`bs-tooltip-${p}`),...c,children:[(0,al.jsx)("div",{className:"tooltip-arrow",...a}),(0,al.jsx)("div",{className:`${e}-inner`,children:o})]})}));kl.displayName="Tooltip";const Ol=Object.assign(kl,{TOOLTIP_OFFSET:[0,6]});function Cl(e,t){return Cl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Cl(e,t)}const Pl=e.createContext(null);var Dl="unmounted",Nl="exited",Il="entering",_l="entered",Rl="exiting",Tl=function(t){var n,o;function a(e,n){var r;r=t.call(this,e,n)||this;var o,a=n&&!n.isMounting?e.enter:e.appear;return r.appearStatus=null,e.in?a?(o=Nl,r.appearStatus=Il):o=_l:o=e.unmountOnExit||e.mountOnEnter?Dl:Nl,r.state={status:o},r.nextCallback=null,r}o=t,(n=a).prototype=Object.create(o.prototype),n.prototype.constructor=n,Cl(n,o),a.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Dl?{status:Nl}:null};var i=a.prototype;return i.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},i.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Il&&n!==_l&&(t=Il):n!==Il&&n!==_l||(t=Rl)}this.updateStatus(!1,t)},i.componentWillUnmount=function(){this.cancelNextCallback()},i.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},i.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Il){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:r.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Nl&&this.setState({status:Dl})},i.performEnter=function(e){var t=this,n=this.props.enter,o=this.context?this.context.isMounting:e,a=this.props.nodeRef?[o]:[r.findDOMNode(this),o],i=a[0],l=a[1],s=this.getTimeouts(),c=o?s.appear:s.enter;e||n?(this.props.onEnter(i,l),this.safeSetState({status:Il},(function(){t.props.onEntering(i,l),t.onTransitionEnd(c,(function(){t.safeSetState({status:_l},(function(){t.props.onEntered(i,l)}))}))}))):this.safeSetState({status:_l},(function(){t.props.onEntered(i)}))},i.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),o=this.props.nodeRef?void 0:r.findDOMNode(this);t?(this.props.onExit(o),this.safeSetState({status:Rl},(function(){e.props.onExiting(o),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Nl},(function(){e.props.onExited(o)}))}))}))):this.safeSetState({status:Nl},(function(){e.props.onExited(o)}))},i.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},i.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},i.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},i.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:r.findDOMNode(this),o=null==e&&!this.props.addEndListener;if(n&&!o){if(this.props.addEndListener){var a=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=a[0],l=a[1];this.props.addEndListener(i,l)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},i.render=function(){var t=this.state.status;if(t===Dl)return null;var n=this.props,r=n.children,o=(n.in,n.mountOnEnter,n.unmountOnExit,n.appear,n.enter,n.exit,n.timeout,n.addEndListener,n.onEnter,n.onEntering,n.onEntered,n.onExit,n.onExiting,n.onExited,n.nodeRef,C(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return e.createElement(Pl.Provider,{value:null},"function"==typeof r?r(t,o):e.cloneElement(e.Children.only(r),o))},a}(e.Component);function Al(){}Tl.contextType=Pl,Tl.propTypes={},Tl.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Al,onEntering:Al,onEntered:Al,onExit:Al,onExiting:Al,onExited:Al},Tl.UNMOUNTED=Dl,Tl.EXITED=Nl,Tl.ENTERING=Il,Tl.ENTERED=_l,Tl.EXITING=Rl;const jl=Tl;var Ll=/([A-Z])/g,Ml=/^ms-/;function Bl(e){return function(e){return e.replace(Ll,"-$1").toLowerCase()}(e).replace(Ml,"-ms-")}var Fl=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;const zl=function(e,t){var n="",r="";if("string"==typeof t)return e.style.getPropertyValue(Bl(t))||function(e,t){return function(e){var t=$i(e);return t&&t.defaultView||window}(e).getComputedStyle(e,t)}(e).getPropertyValue(Bl(t));Object.keys(t).forEach((function(o){var a=t[o];a||0===a?function(e){return!(!e||!Fl.test(e))}(o)?r+=o+"("+a+") ":n+=Bl(o)+": "+a+";":e.style.removeProperty(Bl(o))})),r&&(n+="transform: "+r+";"),e.style.cssText+=";"+n};function Ul(e,t,n,r){var o,a;null==n&&(a=-1===(o=zl(e,"transitionDuration")||"").indexOf("ms")?1e3:1,n=parseFloat(o)*a||0);var i=function(e,t,n){void 0===n&&(n=5);var r=!1,o=setTimeout((function(){r||function(e,t,n,r){if(void 0===n&&(n=!1),void 0===r&&(r=!0),e){var o=document.createEvent("HTMLEvents");o.initEvent("transitionend",n,r),e.dispatchEvent(o)}}(e,0,!0)}),t+n),a=Ui(e,"transitionend",(function(){r=!0}),{once:!0});return function(){clearTimeout(o),a()}}(e,n,r),l=Ui(e,"transitionend",t);return function(){i(),l()}}function $l(e,t){const n=zl(e,t)||"",r=-1===n.indexOf("ms")?1e3:1;return parseFloat(n)*r}function Wl(e,t){const n=$l(e,"transitionDuration"),r=$l(e,"transitionDelay"),o=Ul(e,(n=>{n.target===e&&(o(),t(n))}),n+r)}function Hl(e){e.offsetHeight}function Gl(e){return e&&"setState"in e?r.findDOMNode(e):null!=e?e:null}const Vl=e.forwardRef((({onEnter:t,onEntering:n,onEntered:r,onExit:o,onExiting:a,onExited:i,addEndListener:l,children:s,childRef:c,...u},d)=>{const f=(0,e.useRef)(null),p=la(f,c),m=e=>{p(Gl(e))},g=e=>t=>{e&&f.current&&e(f.current,t)},h=(0,e.useCallback)(g(t),[t]),b=(0,e.useCallback)(g(n),[n]),y=(0,e.useCallback)(g(r),[r]),v=(0,e.useCallback)(g(o),[o]),w=(0,e.useCallback)(g(a),[a]),E=(0,e.useCallback)(g(i),[i]),x=(0,e.useCallback)(g(l),[l]);return(0,al.jsx)(jl,{ref:d,...u,onEnter:h,onEntered:y,onEntering:b,onExit:v,onExited:E,onExiting:w,addEndListener:x,nodeRef:f,children:"function"==typeof s?(e,t)=>s(e,{...t,ref:m}):e.cloneElement(s,{ref:m})})})),ql={[Il]:"show",[_l]:"show"},Kl=e.forwardRef((({className:t,children:n,transitionClasses:r={},onEnter:o,...a},i)=>{const l={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...a},s=(0,e.useCallback)(((e,t)=>{Hl(e),null==o||o(e,t)}),[o]);return(0,al.jsx)(Vl,{ref:i,addEndListener:Wl,...l,onEnter:s,childRef:n.ref,children:(o,a)=>e.cloneElement(n,{...a,className:ca()("fade",t,n.props.className,ql[o],r[o])})})}));Kl.displayName="Fade";const Ql=Kl,Yl=e.forwardRef((({children:t,transition:n=Ql,popperConfig:r={},rootClose:o=!1,placement:a="top",show:i=!1,...l},s)=>{const c=(0,e.useRef)({}),[u,d]=(0,e.useState)(null),[f,p]=function(t){const n=(0,e.useRef)(null),r=ml(void 0,"popover"),o=ml(void 0,"tooltip"),a=(0,e.useMemo)((()=>({name:"offset",options:{offset:()=>{if(t)return t;if(n.current){if(ul(n.current,r))return Sl.POPPER_OFFSET;if(ul(n.current,o))return Ol.TOOLTIP_OFFSET}return[0,0]}}})),[t,r,o]);return[n,[a]]}(l.offset),m=la(s,f),g=!0===n?Ql:n||void 0,h=Hi((e=>{d(e),null==r||null==r.onFirstUpdate||r.onFirstUpdate(e)}));return rl((()=>{u&&l.target&&(null==c.current.scheduleUpdate||c.current.scheduleUpdate())}),[u,l.target]),(0,e.useEffect)((()=>{i||d(null)}),[i]),(0,al.jsx)(cl,{...l,ref:m,popperConfig:{...r,modifiers:p.concat(r.modifiers||[]),onFirstUpdate:h},transition:g,rootClose:o,placement:a,show:i,children:(o,{arrowProps:a,popper:i,show:l})=>{var s,d;!function(e,t){const{ref:n}=e,{ref:r}=t;e.ref=n.__wrapped||(n.__wrapped=e=>n(Gl(e))),t.ref=r.__wrapped||(r.__wrapped=e=>r(Gl(e)))}(o,a);const f=null==i?void 0:i.placement,p=Object.assign(c.current,{state:null==i?void 0:i.state,scheduleUpdate:null==i?void 0:i.update,placement:f,outOfBoundaries:(null==i||null==(s=i.state)||null==(d=s.modifiersData.hide)?void 0:d.isReferenceHidden)||!1,strategy:r.strategy}),m=!!u;return"function"==typeof t?t({...o,placement:f,show:l,...!n&&l&&{className:"show"},popper:p,arrowProps:a,hasDoneInitialMeasure:m}):e.cloneElement(t,{...o,placement:f,arrowProps:a,popper:p,hasDoneInitialMeasure:m,className:ca()(t.props.className,!n&&l&&"show"),style:{...t.props.style,...o.style}})}})}));Yl.displayName="Overlay";const Xl=Yl;function Jl(e,t,n){const[r]=t,o=r.currentTarget,a=r.relatedTarget||r.nativeEvent[n];a&&a===o||qo(o,a)||e(...t)}Qo().oneOf(["click","hover","focus"]);const Zl=({trigger:t=["hover","focus"],overlay:n,children:r,popperConfig:o={},show:a,defaultShow:i=!1,onToggle:l,delay:s,placement:c,flip:u=c&&-1!==c.indexOf("auto"),...d})=>{const f=(0,e.useRef)(null),p=la(f,r.ref),m=ea(),g=(0,e.useRef)(""),[h,b]=aa(a,i,l),y=function(e){return e&&"object"==typeof e?e:{show:e,hide:e}}(s),{onFocus:v,onBlur:w,onClick:E}="function"!=typeof r?e.Children.only(r).props:{},x=(0,e.useCallback)((()=>{m.clear(),g.current="show",y.show?m.set((()=>{"show"===g.current&&b(!0)}),y.show):b(!0)}),[y.show,b,m]),S=(0,e.useCallback)((()=>{m.clear(),g.current="hide",y.hide?m.set((()=>{"hide"===g.current&&b(!1)}),y.hide):b(!1)}),[y.hide,b,m]),k=(0,e.useCallback)(((...e)=>{x(),null==v||v(...e)}),[x,v]),O=(0,e.useCallback)(((...e)=>{S(),null==w||w(...e)}),[S,w]),C=(0,e.useCallback)(((...e)=>{b(!h),null==E||E(...e)}),[E,b,h]),P=(0,e.useCallback)(((...e)=>{Jl(x,e,"fromElement")}),[x]),D=(0,e.useCallback)(((...e)=>{Jl(S,e,"toElement")}),[S]),N=null==t?[]:[].concat(t),I={ref:e=>{p(Gl(e))}};return-1!==N.indexOf("click")&&(I.onClick=C),-1!==N.indexOf("focus")&&(I.onFocus=k,I.onBlur=O),-1!==N.indexOf("hover")&&(I.onMouseOver=P,I.onMouseOut=D),(0,al.jsxs)(al.Fragment,{children:["function"==typeof r?r(I):(0,e.cloneElement)(r,I),(0,al.jsx)(Xl,{...d,show:h,onHide:S,flip:u,placement:c,popperConfig:o,target:f.current,children:n})]})};function es(t){var n=t.id,r=t.tip;return e.createElement(Zl,{placement:"auto",trigger:["click","hover","focus"],style:{display:"inline"},overlay:e.createElement(Ol,{id:n},r)},e.createElement("img",{src:"/images/shop/icon-reminder.svg",className:"options-icon"}))}function ts(e){return ts="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ts(e)}function ns(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);no.max}},Js=function(e){return function(t,n,r){return zs[e](t[n])>0&&!function(e,t,n){return e.slice(0,t).find((function(e){return e.resources&&Ys(e.resources,n)}))}(t,n,e)}},Zs={eem_resource:{level:"warning",trigger:Xs("eem"),message:"Insufficient EEM connectors"},no_eem_source:{level:"warning",trigger:Js("eem"),message:"This card needs a card that provides a EEM connector (e.g. Kasli) at its left."},idc_resource:{level:"warning",trigger:Xs("idc"),message:"Insufficient IDC connectors."},no_idc_source:{level:"warning",trigger:Js("idc"),message:"Should be after a Zotino or a HD68-IDC or with another IDC-BNC."},clk_resource:{level:"warning",trigger:Xs("clk"),message:"Insufficient clock connectors."},no_clk_source:{level:"warning",trigger:Js("clk"),message:"This card needs either a card that provides a clock source (e.g. Kasli or Clocker) at its left or use an external clock source."},eem_wiring_constraint:{level:"reminder",trigger:("eem",function(e,t,n){var r=function(e,t,n){return e.slice(t+1).findIndex((function(e){return e.resources&&Ys(e.resources,n)}))+t+1}(e,t,"eem");return r-t==1}),message:"Due to wiring constraints, the carrier can only connect to EEM cards immediately at its right, without crossing another carrier."},default:{level:"warning",trigger:function(e,t,n){return!0},message:"This item has unimplemented warning"}};function ec(e){var t,n={priority:0,icon:null},r=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Gs(e))){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw a}}}}(e);try{for(r.s();!(t=r.n()).done;){var o=t.value;Qs[o.level].priority>n.priority&&(n=Qs[o.level])}}catch(e){r.e(e)}finally{r.f()}return n}function tc(e){var t=Qs[e];return{icon:t.icon,color:t.color}}var nc={overfit:{message:"You have reached the maximum number of slots allowed for this crate. Consider removing cards.",level:"warning",trigger:function(e,t){var n=Cc.getState().crateParams(e.crate_mode).hp;return t>n&&n>0}},underfit_rack:{message:"The selected cards fit in a 42hp desktop crate, consider switching to it for a more compact system",level:"reminder",trigger:function(e,t){var n=Cc.getState().crate_modes.desktop.hp;return e.crate_mode===Cc.getState().crate_modes.rack.id&&t=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw a}}}}function sc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&e.createElement("ul",null,o.specs.map((function(t,n){return e.createElement("li",{key:n},t)}))),s=o.datasheet_file&&o.datasheet_name&&e.createElement("div",{className:"ds"},e.createElement("span",{className:"doc-icon"}),e.createElement("a",{href:o.datasheet_file,target:"_blank",rel:"noopener noreferrer"},o.datasheet_name));return e.createElement("section",{className:"productItem"},e.createElement("div",{className:"content"},e.createElement("h3",{style:{marginBottom:o.name_codename?"5px":"20px"}},o.name),o.name_codename?e.createElement("p",null,o.name_codename):null,e.createElement("div",{className:"price"},"".concat(a," ").concat(Go(o.price))),l,s),e.createElement("div",{className:"content"},e.createElement("button",{onClick:function(){return i(null,n,null)}},e.createElement("img",{src:"/images/shop/icon-add.svg",alt:"add"})),e.createElement(co,{draggableId:o.id,index:n},(function(t,n){return e.createElement(e.Fragment,null,e.createElement("img",Dc({ref:t.innerRef},t.draggableProps,t.dragHandleProps,{style:Wo(t.draggableProps.style,n,!0),src:o.image})),n.isDragging&&e.createElement("img",{className:"simclone",src:o.image}))}))))}function Ic(){return Ic=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);nwindow.innerWidth?u({x:r-f.w-20,y:o-f.h/2}):u({x:r-f.w/2,y:o-f.h-20})}else document.removeEventListener("scroll",y,!0)},y=function(e){e.target!==document.getElementById(n)&&g()};return(0,e.useEffect)((function(){if(i){var e=document.getElementById(n),t=e.offsetWidth,r=e.offsetHeight;p({w:t,h:r}),b()}}),[i]),(0,e.useEffect)((function(){i&&b()}),[i,f]),e.createElement("div",{ref:h},e.createElement("img",{className:"alert-info",src:i?"/images/shop/icon-close.svg":"/images/shop/icon-customize.svg",id:n+"img",onClick:function(e){l(!i),i||document.addEventListener("scroll",y,!0)}}),e.createElement("div",{style:{display:i?"flex":"none",top:c.y,left:c.x},className:"overlayVariant card border rounded",id:n},e.createElement("div",{className:"card-body"},Array.from(Object.entries(m).filter((function(e,t){var n=Tc(e,2),r=n[0];return n[1],"ext_data"!==r})).map((function(t,r){var o=Tc(t,2),a=o[0],i=o[1];return e.createElement("p",{className:"card-text",key:n+a},e.createElement("i",null,a),": ",function(e){var t=Rs(e);if("string"===t)return e;if("object"===t){if(!1===e.checked)return"off";if(!0===e.checked&&e.text)return e.text}return JSON.stringify(e)}(i))}))))))}var Lc,Mc=["arrowProps","hasDoneInitialMeasure","show"];function Bc(){return Bc=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,Mc);return e.createElement("div",Bc({className:"k-popup-warning"},o),n.map((function(t,n){return e.createElement("p",{className:"rule warning",key:"warnmsg_".concat(r,"_").concat(t.name)},e.createElement("i",null,t.message))})))},rootClose:!0},e.createElement("img",{className:"alert-warning",src:o.icon}))}function zc(t){var n=ec(t.warnings);return e.createElement("img",{className:"alert-warning align-self-start",src:n.icon})}function Uc(){var t=Cc((function(e){return{currency:e.currency,crates:e.crates,total_price:e.totalOrderPrice(),crateParams:e.crateParams,deleteCard:e.deleteCard,setHighlight:e.highlightCard,resetHighlight:e.highlightReset,highlighted:e.highlighted,clearAll:e.clearAll,clearCrate:e.clearCrate,delCrate:e.delCrate}})),n=t.currency,r=t.crates,o=t.total_price,a=t.crateParams,i=t.deleteCard,l=t.setHighlight,s=t.resetHighlight,c=t.highlighted,u=t.clearCrate,d=t.delCrate,f=t.clearAll;return e.createElement("div",{className:"summary-price"},e.createElement("table",null,e.createElement("thead",null,e.createElement("tr",null,e.createElement("td",{colSpan:"2",className:"summary-remove-all"},e.createElement("span",{className:"item-card-name"},"Remove all cards"),e.createElement("button",{onClick:f},e.createElement("img",{src:"/images/shop/icon-remove.svg"}))))),r.map((function(t,r){var o=a(t.crate_mode);return e.createElement("tbody",{key:"summary_crate_body"+t.id},e.createElement("tr",{key:"summary_crate_"+t.id},e.createElement("td",{className:"item-card-name"},o.name),e.createElement("td",{className:"price"},e.createElement("div",{className:"d-inline-flex"},"".concat(n," ").concat(Go(o.price)),e.createElement("button",{onClick:function(){return u(t.id)}},e.createElement("img",{src:"/images/shop/icon-clear.svg",alt:"empty crate"})),e.createElement("button",{onClick:function(){return d(t.id)}},e.createElement("img",{src:"/images/shop/icon-remove.svg",alt:"remove crate"}))))),t.items.map((function(r,o){var a=r&&r.options,u=r&&r.options_data,d=r&&r.show_warnings,f=t.id===c.crate&&o===c.card;return e.createElement("tr",{key:"summary_crate_"+t.id+r.id,className:"hoverable ".concat(f?"selected":""),onClick:function(){return l(t.id,o)},onMouseEnter:function(){return l(t.id,o)},onMouseLeave:function(){return s()}},e.createElement("td",{className:"item-card-name"},e.createElement("span",{style:{display:"inline-block",width:"16px"}}," "),e.createElement("div",null,"".concat(r.name_number," ").concat(r.name," ").concat(r.name_codename))),e.createElement("td",{className:"price"},e.createElement("div",{className:"d-inline-flex align-content-center"},"".concat(n," ").concat(Go(r.price)),e.createElement("button",{onClick:function(){return i(t.id,o)}},e.createElement("img",{src:"/images/shop/icon-remove.svg"})),e.createElement("div",{style:{width:"45px",height:"20px"},className:"d-inline-flex align-content-center align-self-center justify-content-evenly"},d&&d.length>0?e.createElement(zc,{warnings:d}):e.createElement("span",{style:{display:"inline-block",width:"20px"}}," "),a&&u?e.createElement(jc,{id:r.id+"options",options:a,data:u}):e.createElement("span",{style:{display:"inline-block",width:"20px"}}," ")))))})))})),e.createElement("tfoot",null,e.createElement("tr",null,e.createElement("td",{className:"item-card-name"},"Price estimate"),e.createElement("td",{className:"price"},e.createElement("div",null,n," ",Go(o),e.createElement("button",{style:{opacity:"0",cursor:"initial"}},e.createElement("img",{src:"/images/shop/icon-remove.svg",alt:"icon remove"}))),e.createElement("span",{style:{display:"inline-block",width:"30px"}}," "))))))}function $c(e){if((!Lc&&0!==Lc||e)&&ji){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),Lc=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Lc}function Wc(e){void 0===e&&(e=$i());try{var t=e.activeElement;return t&&t.nodeName?t:null}catch(t){return e.body}}const Hc="data-rr-ui-modal-open",Gc=class{constructor({ownerDocument:e,handleContainerOverflow:t=!0,isRTL:n=!1}={}){this.handleContainerOverflow=t,this.isRTL=n,this.modals=[],this.ownerDocument=e}getScrollbarWidth(){return function(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(e){}removeModalAttributes(e){}setContainerStyle(e){const t={overflow:"hidden"},n=this.isRTL?"paddingLeft":"paddingRight",r=this.getElement();e.style={overflow:r.style.overflow,[n]:r.style[n]},e.scrollBarWidth&&(t[n]=`${parseInt(zl(r,n)||"0",10)+e.scrollBarWidth}px`),r.setAttribute(Hc,""),zl(r,t)}reset(){[...this.modals].forEach((e=>this.remove(e)))}removeContainerStyle(e){const t=this.getElement();t.removeAttribute(Hc),Object.assign(t.style,e.style)}add(e){let t=this.modals.indexOf(e);return-1!==t||(t=this.modals.length,this.modals.push(e),this.setModalAttributes(e),0!==t||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state))),t}remove(e){const t=this.modals.indexOf(e);-1!==t&&(this.modals.splice(t,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(e))}isTopModal(e){return!!this.modals.length&&this.modals[this.modals.length-1]===e}},Vc=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];let qc;const Kc=(0,e.forwardRef)(((t,n)=>{let{show:o=!1,role:a="dialog",className:i,style:l,children:s,backdrop:c=!0,keyboard:u=!0,onBackdropClick:d,onEscapeKeyDown:f,transition:p,runTransition:m,backdropTransition:g,runBackdropTransition:h,autoFocus:b=!0,enforceFocus:y=!0,restoreFocus:v=!0,restoreFocusOptions:w,renderDialog:E,renderBackdrop:x=(e=>(0,al.jsx)("div",Object.assign({},e))),manager:S,container:k,onShow:O,onHide:C=(()=>{}),onExit:P,onExited:D,onExiting:N,onEnter:I,onEntering:_,onEntered:R}=t,T=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(t,Vc);const A=Ji(),j=el(k),L=function(t){const n=Ji(),r=t||function(e){return qc||(qc=new Gc({ownerDocument:null==e?void 0:e.document})),qc}(n),o=(0,e.useRef)({dialog:null,backdrop:null});return Object.assign(o.current,{add:()=>r.add(o.current),remove:()=>r.remove(o.current),isTopModal:()=>r.isTopModal(o.current),setDialogRef:(0,e.useCallback)((e=>{o.current.dialog=e}),[]),setBackdropRef:(0,e.useCallback)((e=>{o.current.backdrop=e}),[])})}(S),M=Yo(),B=function(t){const n=(0,e.useRef)(null);return(0,e.useEffect)((()=>{n.current=t})),n.current}(o),[F,z]=(0,e.useState)(!o),U=(0,e.useRef)(null);(0,e.useImperativeHandle)(n,(()=>L),[L]),ji&&!B&&o&&(U.current=Wc(null==A?void 0:A.document)),o&&F&&z(!1);const $=Hi((()=>{if(L.add(),K.current=Ui(document,"keydown",V),q.current=Ui(document,"focus",(()=>setTimeout(H)),!0),O&&O(),b){var e,t;const n=Wc(null!=(e=null==(t=L.dialog)?void 0:t.ownerDocument)?e:null==A?void 0:A.document);L.dialog&&n&&!qo(L.dialog,n)&&(U.current=n,L.dialog.focus())}})),W=Hi((()=>{var e;L.remove(),null==K.current||K.current(),null==q.current||q.current(),v&&(null==(e=U.current)||null==e.focus||e.focus(w),U.current=null)}));(0,e.useEffect)((()=>{o&&j&&$()}),[o,j,$]),(0,e.useEffect)((()=>{F&&W()}),[F,W]),Xo((()=>{W()}));const H=Hi((()=>{if(!y||!M()||!L.isTopModal())return;const e=Wc(null==A?void 0:A.document);L.dialog&&e&&!qo(L.dialog,e)&&L.dialog.focus()})),G=Hi((e=>{e.target===e.currentTarget&&(null==d||d(e),!0===c&&C())})),V=Hi((e=>{u&&Ki(e)&&L.isTopModal()&&(null==f||f(e),e.defaultPrevented||C())})),q=(0,e.useRef)(),K=(0,e.useRef)();if(!j)return null;const Q=Object.assign({role:a,ref:L.setDialogRef,"aria-modal":"dialog"===a||void 0},T,{style:l,className:i,tabIndex:-1});let Y=E?E(Q):(0,al.jsx)("div",Object.assign({},Q,{children:e.cloneElement(s,{role:"document"})}));Y=ll(p,m,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!o,onExit:P,onExiting:N,onExited:(...e)=>{z(!0),null==D||D(...e)},onEnter:I,onEntering:_,onEntered:R,children:Y});let X=null;return c&&(X=x({ref:L.setBackdropRef,onClick:G}),X=ll(g,h,{in:!!o,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:X})),(0,al.jsx)(al.Fragment,{children:r.createPortal((0,al.jsxs)(al.Fragment,{children:[X,Y]}),j)})}));Kc.displayName="Modal";const Qc=Object.assign(Kc,{Manager:Gc});var Yc=Function.prototype.bind.call(Function.prototype.call,[].slice);function Xc(e,t){return Yc(e.querySelectorAll(t))}function Jc(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}const Zc=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",eu=".sticky-top",tu=".navbar-toggler";class nu extends Gc{adjustAndStore(e,t,n){const r=t.style[e];t.dataset[e]=r,zl(t,{[e]:`${parseFloat(zl(t,e))+n}px`})}restore(e,t){const n=t.dataset[e];void 0!==n&&(delete t.dataset[e],zl(t,{[e]:n}))}setContainerStyle(e){super.setContainerStyle(e);const t=this.getElement();var n,r;if(r="modal-open",(n=t).classList?n.classList.add(r):ul(n,r)||("string"==typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)),!e.scrollBarWidth)return;const o=this.isRTL?"paddingLeft":"paddingRight",a=this.isRTL?"marginLeft":"marginRight";Xc(t,Zc).forEach((t=>this.adjustAndStore(o,t,e.scrollBarWidth))),Xc(t,eu).forEach((t=>this.adjustAndStore(a,t,-e.scrollBarWidth))),Xc(t,tu).forEach((t=>this.adjustAndStore(a,t,e.scrollBarWidth)))}removeContainerStyle(e){super.removeContainerStyle(e);const t=this.getElement();var n,r;r="modal-open",(n=t).classList?n.classList.remove(r):"string"==typeof n.className?n.className=Jc(n.className,r):n.setAttribute("class",Jc(n.className&&n.className.baseVal||"",r));const o=this.isRTL?"paddingLeft":"paddingRight",a=this.isRTL?"marginLeft":"marginRight";Xc(t,Zc).forEach((e=>this.restore(o,e))),Xc(t,eu).forEach((e=>this.restore(a,e))),Xc(t,tu).forEach((e=>this.restore(a,e)))}}let ru;const ou=e.forwardRef((({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=ml(t,"modal-body"),(0,al.jsx)(n,{ref:o,className:ca()(e,t),...r}))));ou.displayName="ModalBody";const au=ou,iu=e.createContext({onHide(){}}),lu=e.forwardRef((({bsPrefix:e,className:t,contentClassName:n,centered:r,size:o,fullscreen:a,children:i,scrollable:l,...s},c)=>{const u=`${e=ml(e,"modal")}-dialog`,d="string"==typeof a?`${e}-fullscreen-${a}`:`${e}-fullscreen`;return(0,al.jsx)("div",{...s,ref:c,className:ca()(u,t,o&&`${e}-${o}`,r&&`${u}-centered`,l&&`${u}-scrollable`,a&&d),children:(0,al.jsx)("div",{className:ca()(`${e}-content`,n),children:i})})}));lu.displayName="ModalDialog";const su=lu,cu=e.forwardRef((({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=ml(t,"modal-footer"),(0,al.jsx)(n,{ref:o,className:ca()(e,t),...r}))));cu.displayName="ModalFooter";const uu=cu,du={"aria-label":Qo().string,onClick:Qo().func,variant:Qo().oneOf(["white"])},fu=e.forwardRef((({className:e,variant:t,"aria-label":n="Close",...r},o)=>(0,al.jsx)("button",{ref:o,type:"button",className:ca()("btn-close",t&&`btn-close-${t}`,e),"aria-label":n,...r})));fu.displayName="CloseButton",fu.propTypes=du;const pu=fu,mu=e.forwardRef((({closeLabel:t="Close",closeVariant:n,closeButton:r=!1,onHide:o,children:a,...i},l)=>{const s=(0,e.useContext)(iu),c=Hi((()=>{null==s||s.onHide(),null==o||o()}));return(0,al.jsxs)("div",{ref:l,...i,children:[a,r&&(0,al.jsx)(pu,{"aria-label":t,variant:n,onClick:c})]})})),gu=mu,hu=e.forwardRef((({bsPrefix:e,className:t,closeLabel:n="Close",closeButton:r=!1,...o},a)=>(e=ml(e,"modal-header"),(0,al.jsx)(gu,{ref:a,...o,className:ca()(t,e),closeLabel:n,closeButton:r}))));hu.displayName="ModalHeader";const bu=hu,yu=("h4",e.forwardRef(((e,t)=>(0,al.jsx)("div",{...e,ref:t,className:ca()(e.className,"h4")}))));const vu=e.forwardRef((({className:e,bsPrefix:t,as:n=yu,...r},o)=>(t=ml(t,"modal-title"),(0,al.jsx)(n,{ref:o,className:ca()(e,t),...r}))));vu.displayName="ModalTitle";const wu=vu;function Eu(e){return(0,al.jsx)(Ql,{...e,timeout:null})}function xu(e){return(0,al.jsx)(Ql,{...e,timeout:null})}const Su=e.forwardRef((({bsPrefix:t,className:n,style:r,dialogClassName:o,contentClassName:a,children:i,dialogAs:l=su,"aria-labelledby":s,"aria-describedby":c,"aria-label":u,show:d=!1,animation:f=!0,backdrop:p=!0,keyboard:m=!0,onEscapeKeyDown:g,onShow:h,onHide:b,container:y,autoFocus:v=!0,enforceFocus:w=!0,restoreFocus:E=!0,restoreFocusOptions:x,onEntered:S,onExit:k,onExiting:O,onEnter:C,onEntering:P,onExited:D,backdropClassName:N,manager:I,..._},R)=>{const[T,A]=(0,e.useState)({}),[j,L]=(0,e.useState)(!1),M=(0,e.useRef)(!1),B=(0,e.useRef)(!1),F=(0,e.useRef)(null),[z,U]=ua(),$=la(R,U),W=Hi(b),H=gl();t=ml(t,"modal");const G=(0,e.useMemo)((()=>({onHide:W})),[W]);function V(){return I||function(e){return ru||(ru=new nu(e)),ru}({isRTL:H})}function q(e){if(!ji)return;const t=V().getScrollbarWidth()>0,n=e.scrollHeight>$i(e).documentElement.clientHeight;A({paddingRight:t&&!n?$c():void 0,paddingLeft:!t&&n?$c():void 0})}const K=Hi((()=>{z&&q(z.dialog)}));Xo((()=>{zi(window,"resize",K),null==F.current||F.current()}));const Q=()=>{M.current=!0},Y=e=>{M.current&&z&&e.target===z.dialog&&(B.current=!0),M.current=!1},X=()=>{L(!0),F.current=Ul(z.dialog,(()=>{L(!1)}))},J=e=>{"static"!==p?B.current||e.target!==e.currentTarget?B.current=!1:null==b||b():(e=>{e.target===e.currentTarget&&X()})(e)},Z=(0,e.useCallback)((e=>(0,al.jsx)("div",{...e,className:ca()(`${t}-backdrop`,N,!f&&"show")})),[f,N,t]),ee={...r,...T};return ee.display="block",(0,al.jsx)(iu.Provider,{value:G,children:(0,al.jsx)(Qc,{show:d,ref:$,backdrop:p,container:y,keyboard:!0,autoFocus:v,enforceFocus:w,restoreFocus:E,restoreFocusOptions:x,onEscapeKeyDown:e=>{m?null==g||g(e):(e.preventDefault(),"static"===p&&X())},onShow:h,onHide:b,onEnter:(e,t)=>{e&&q(e),null==C||C(e,t)},onEntering:(e,t)=>{null==P||P(e,t),Fi(window,"resize",K)},onEntered:S,onExit:e=>{null==F.current||F.current(),null==k||k(e)},onExiting:O,onExited:e=>{e&&(e.style.display=""),null==D||D(e),zi(window,"resize",K)},manager:V(),transition:f?Eu:void 0,backdropTransition:f?xu:void 0,renderBackdrop:Z,renderDialog:e=>(0,al.jsx)("div",{role:"dialog",...e,style:ee,className:ca()(n,t,j&&`${t}-static`,!f&&"show"),onClick:p?J:void 0,onMouseUp:Y,"aria-label":u,"aria-labelledby":s,"aria-describedby":c,children:(0,al.jsx)(l,{..._,onMouseDown:Q,className:o,contentClassName:a,children:i})})})})}));Su.displayName="Modal";const ku=Object.assign(Su,{Body:au,Header:bu,Title:wu,Footer:uu,Dialog:su,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150});function Ou(){var t=Cc((function(e){return{shouldShow:e.shouldShowDescription,description:e.description,closeDescription:e.closeDescription,showDescription:e.showDescription}})),n=t.shouldShow,r=t.description,o=t.showDescription,a=t.closeDescription,i=Rc((function(e){"mousedown"===e.type&&a()}));return e.createElement(e.Fragment,null,e.createElement("input",{className:"btn btn-outline-primary w-100 m-0 mb-2 mb-sm-0 me-sm-2",style:{cursor:"pointer",fontWeight:"700"},defaultValue:"Show JSON",onClick:o,readOnly:!0}),e.createElement(ku,{show:n,animation:!0,centered:!0},e.createElement(ku.Body,{ref:i,className:"rfqFeedback"},e.createElement("textarea",{value:r,className:"form-control w-100",rows:10,readOnly:!0,placeholder:"There should be description of the crate"}),e.createElement("div",{className:"d-flex flex-column flex-sm-row justify-content-end"},e.createElement("a",{type:"button",onClick:a,className:"btn btn-sm btn-outline-primary m-0 mb-1 mt-2 mb-sm-0 me-sm-2"},"Close")))))}function Cu(){var t=Cc((function(e){return{email:e.email,note:e.note,isProcessing:e.isProcessing,updateEmail:e.updateEmail,updateNote:e.updateNote,submitForm:e.submitForm,submitDisabled:e.submitDisabled,resetEmailValidation:e.resetEmailValidation}})),n=t.email,r=t.note,o=t.isProcessing,a=t.updateEmail,i=t.updateNote,l=t.resetEmailValidation,s=t.submitForm,c=t.submitDisabled;return e.createElement("div",{className:"summary-form"},e.createElement("form",{onSubmit:s,noValidate:!0},e.createElement("input",{className:"".concat(n.error>0?"errorField":""),type:"email",placeholder:"Email",onFocus:l,onChange:function(e){return a(e.target.value)},onBlur:function(e){return a(e.target.value)},value:n.value}),n.error===uc.Empty?e.createElement("div",{className:"error"},e.createElement("small",null,"Required")):null,n.error===uc.Invalid?e.createElement("div",{className:"error"},e.createElement("small",null,"Your email is incomplete")):null,e.createElement("textarea",{onChange:function(e){return i(e.target.value)},defaultValue:r.value,rows:"5",placeholder:"Additional notes"}),e.createElement("div",{className:"d-flex flex-column flex-sm-row justify-content-between"},e.createElement(Ou,null),e.createElement("input",{className:"btn btn-primary w-100 m-0 ms-sm-2",type:"submit",disabled:c(),value:"".concat(o?"Processing ...":"Request quote")}))))}const Pu=function(...e){return e.filter((e=>null!=e)).reduce(((e,t)=>{if("function"!=typeof t)throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return null===e?t:function(...n){e.apply(this,n),t.apply(this,n)}}),null)},Du={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function Nu(e,t){const n=t[`offset${e[0].toUpperCase()}${e.slice(1)}`],r=Du[e];return n+parseInt(zl(t,r[0]),10)+parseInt(zl(t,r[1]),10)}const Iu={[Nl]:"collapse",[Rl]:"collapsing",[Il]:"collapsing",[_l]:"collapse show"},_u=e.forwardRef((({onEnter:t,onEntering:n,onEntered:r,onExit:o,onExiting:a,className:i,children:l,dimension:s="height",in:c=!1,timeout:u=300,mountOnEnter:d=!1,unmountOnExit:f=!1,appear:p=!1,getDimensionValue:m=Nu,...g},h)=>{const b="function"==typeof s?s():s,y=(0,e.useMemo)((()=>Pu((e=>{e.style[b]="0"}),t)),[b,t]),v=(0,e.useMemo)((()=>Pu((e=>{const t=`scroll${b[0].toUpperCase()}${b.slice(1)}`;e.style[b]=`${e[t]}px`}),n)),[b,n]),w=(0,e.useMemo)((()=>Pu((e=>{e.style[b]=null}),r)),[b,r]),E=(0,e.useMemo)((()=>Pu((e=>{e.style[b]=`${m(b,e)}px`,Hl(e)}),o)),[o,m,b]),x=(0,e.useMemo)((()=>Pu((e=>{e.style[b]=null}),a)),[b,a]);return(0,al.jsx)(Vl,{ref:h,addEndListener:Wl,...g,"aria-expanded":g.role?c:null,onEnter:y,onEntering:v,onEntered:w,onExit:E,onExiting:x,childRef:l.ref,in:c,timeout:u,mountOnEnter:d,unmountOnExit:f,appear:p,children:(t,n)=>e.cloneElement(l,{...n,className:ca()(i,l.props.className,Iu[t],"width"===b&&"collapse-horizontal")})})})),Ru=_u;function Tu(e,t){return Array.isArray(e)?e.includes(t):e===t}const Au=e.createContext({});Au.displayName="AccordionContext";const ju=Au,Lu=e.forwardRef((({as:t="div",bsPrefix:n,className:r,children:o,eventKey:a,...i},l)=>{const{activeEventKey:s}=(0,e.useContext)(ju);return n=ml(n,"accordion-collapse"),(0,al.jsx)(Ru,{ref:l,in:Tu(s,a),...i,className:ca()(r,n),children:(0,al.jsx)(t,{children:e.Children.only(o)})})}));Lu.displayName="AccordionCollapse";const Mu=Lu,Bu=e.createContext({eventKey:""});Bu.displayName="AccordionItemContext";const Fu=Bu,zu=e.forwardRef((({as:t="div",bsPrefix:n,className:r,onEnter:o,onEntering:a,onEntered:i,onExit:l,onExiting:s,onExited:c,...u},d)=>{n=ml(n,"accordion-body");const{eventKey:f}=(0,e.useContext)(Fu);return(0,al.jsx)(Mu,{eventKey:f,onEnter:o,onEntering:a,onEntered:i,onExit:l,onExiting:s,onExited:c,children:(0,al.jsx)(t,{ref:d,...u,className:ca()(r,n)})})}));zu.displayName="AccordionBody";const Uu=zu,$u=e.forwardRef((({as:t="button",bsPrefix:n,className:r,onClick:o,...a},i)=>{n=ml(n,"accordion-button");const{eventKey:l}=(0,e.useContext)(Fu),s=function(t,n){const{activeEventKey:r,onSelect:o,alwaysOpen:a}=(0,e.useContext)(ju);return e=>{let i=t===r?null:t;a&&(i=Array.isArray(r)?r.includes(t)?r.filter((e=>e!==t)):[...r,t]:[t]),null==o||o(i,e),null==n||n(e)}}(l,o),{activeEventKey:c}=(0,e.useContext)(ju);return"button"===t&&(a.type="button"),(0,al.jsx)(t,{ref:i,onClick:s,...a,"aria-expanded":Array.isArray(c)?c.includes(l):l===c,className:ca()(r,n,!Tu(c,l)&&"collapsed")})}));$u.displayName="AccordionButton";const Wu=$u,Hu=e.forwardRef((({as:e="h2",bsPrefix:t,className:n,children:r,onClick:o,...a},i)=>(t=ml(t,"accordion-header"),(0,al.jsx)(e,{ref:i,...a,className:ca()(n,t),children:(0,al.jsx)(Wu,{onClick:o,children:r})}))));Hu.displayName="AccordionHeader";const Gu=Hu,Vu=e.forwardRef((({as:t="div",bsPrefix:n,className:r,eventKey:o,...a},i)=>{n=ml(n,"accordion-item");const l=(0,e.useMemo)((()=>({eventKey:o})),[o]);return(0,al.jsx)(Fu.Provider,{value:l,children:(0,al.jsx)(t,{ref:i,...a,className:ca()(r,n)})})}));Vu.displayName="AccordionItem";const qu=Vu,Ku=e.forwardRef(((t,n)=>{const{as:r="div",activeKey:o,bsPrefix:a,className:i,onSelect:l,flush:s,alwaysOpen:c,...u}=function(e,t){return Object.keys(t).reduce((function(n,r){var o,a=n,i=a[ra(r)],l=a[r],s=C(a,[ra(r),r].map(oa)),c=t[r],u=aa(l,i,e[c]),d=u[0],f=u[1];return O({},s,((o={})[r]=d,o[c]=f,o))}),e)}(t,{activeKey:"onSelect"}),d=ml(a,"accordion"),f=(0,e.useMemo)((()=>({activeEventKey:o,onSelect:l,alwaysOpen:c})),[o,l,c]);return(0,al.jsx)(ju.Provider,{value:f,children:(0,al.jsx)(r,{ref:n,...u,className:ca()(i,d,s&&`${d}-flush`)})})}));Ku.displayName="Accordion";const Qu=Object.assign(Ku,{Button:Wu,Collapse:Mu,Item:qu,Header:Gu,Body:Uu});function Yu(t){var n=t.options,r=t.data,o=t.target,a=t.id,i=Rs(n);return"array"===i?Array.from(n.map((function(e,t){return Yu({options:e,data:r,target:o,id:a+t})}))):"object"===i?"string"!==Rs(n.type)||"object"!==Rs(n.args)&&"array"!==Rs(n.items)?Yu({options:(0,Vo.apply)(n,r),data:r,target:o,id:a}):n.type in _s?_s[n.type](o,a+n.type,r,n.args):"Group"===n.type?e.createElement("div",{className:"border rounded",key:a+"group"},Yu({options:(0,Vo.apply)(n.items,r),data:r,target:o,id:a})):_s.Default(n.type,a+"missing"):void 0}function Xu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,Zu);return e.createElement("div",td({className:"k-popup-connectors"},r),e.createElement(sd,{resources:n,library:ld}))},rootClose:!0},e.createElement("div",{className:"progress-container"},e.createElement(sd,{resources:n,library:id})))}function ud(e){return ud="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ud(e)}function dd(){return dd=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&e.createElement(Fc,{warnings:b,prefix:o}),n&&e.createElement(Ju,{options:n,data:r,options_class:u.options_class,key:"popover"+o,id:"popover"+o,big:"big"===u.size,first:l,last:s,target:{construct:function(e,t){r[e]=t},update:function(e,t){e in r&&(r[e]=t),g(d.id,o,md({},e,t))}}})),e.createElement("h6",null,u.name_number),e.createElement("div",{onMouseEnter:function(){return p(d.id,o)},onClick:function(){return p(d.id,o)}},e.createElement("img",{className:"item-cart",src:u.image})),e.createElement("div",{style:{display:f?"flex":"none"},className:"overlayRemove",onClick:function(){return h(d.id,o)}},e.createElement("img",{src:"/images/shop/icon-remove.svg",alt:"rm"}),e.createElement("p",null,"Remove")),y&&e.createElement(cd,{resources:y}))}))}function hd(t){for(var n=t.isDraggingOver,r=[],o=t.nToDraw;o>0;o--)r.push(e.createElement("div",{key:o,style:{display:n?"none":"block",border:"1px dashed #ccc",width:"45px",marginBottom:"5px"}}));return e.createElement(e.Fragment,null,r)}function bd(){return bd=Object.assign?Object.assign.bind():function(e){for(var t=1;t0,has_dds:e.filter((function(e,t){return!("DDS"!==e.name||"4410"!==e.name_number||e.options_data&&e.options_data.mono_eem)})).length>0,has_sampler:e.filter((function(e,t){return!("Sampler"!==e.name||e.options_data&&e.options_data.mono_eem)})).length>0}}(o.items,r);return e.createElement(gd,{card_index:r,crate_index:n,ext_data:a,first:0===r,last:r===o.items.length-1&&i>=l,key:t.id})}));return e.createElement(Ro,{droppableId:o.id,direction:"horizontal"},(function(t,n){return e.createElement("div",bd({ref:t.innerRef},t.droppableProps,{style:Ho(t.droppableProps.style,n),className:"items-cart-list"}),s,t.placeholder&&e.createElement("div",{style:{display:"none"}},t.placeholder),e.createElement(hd,{nToDraw:l-i,isDraggingOver:n.isDraggingOver}))}))}function vd(t){var n=t.crate_index,r=Cc((function(e){return{modes_order:e.modes_order,crate_modes:e.crate_modes,crate:e.crates[n],setMode:e.setCrateMode}})),o=r.modes_order,a=r.crate_modes,i=r.crate,l=r.setMode;return e.createElement("div",{className:"crate-mode"},o.map((function(t,n){return e.createElement("a",{key:t,className:i.crate_mode===t?"active":"",onClick:function(){return l(i.id,t)},href:"#",role:"button"},a[t].name)})))}function wd(t){var n=t.crate_index,r=Cc((function(e){return e.crates[n]})).warnings;return e.createElement("div",{className:"crate-info"},r.map((function(t,n){return e.createElement("p",{key:n,className:"rule",style:{color:tc(t.level).color}},e.createElement("img",{src:tc(t.level).icon})," ",e.createElement("i",null,t.message))})))}function Ed(t){var n=t.crate_index,r=Cc((function(e){return{onDeleteCrate:e.delCrate,crate:e.crates[n]}})),o=r.onDeleteCrate,a=r.crate;return e.createElement("div",{className:"crate"},e.createElement("div",{className:"crate-bar d-inline-flex"},e.createElement(vd,{crate_index:n}),e.createElement("div",{className:"delete-crate align-self-end align-content-end justify-content-end",onClick:function(){return o(a.id)}},"Delete crate ",e.createElement("img",{src:"/images/shop/icon-remove.svg",alt:"remove"}))),e.createElement("div",{className:"crate-products"},e.createElement(yd,{crate_index:n}),e.createElement(wd,{crate_index:n})))}function xd(){var t=Cc((function(e){return{crates:e.crates,active_crate:e.active_crate,onAddCrate:e.newCrate,setActiveCrate:e.setActiveCrate}})),n=t.crates,r=t.active_crate,o=t.onAddCrate,a=t.setActiveCrate;return e.createElement(Qu,{id:"accordion_crates",flush:!0,activeKey:r,onSelect:function(e){a(null!==e?e:"")}},n.map((function(t,n){return e.createElement(Qu.Item,{eventKey:t.id,key:"accordion"+t.id,className:"accordion_crates_item"},e.createElement(Qu.Header,null,"Crate #","".concat(n)),e.createElement(Qu.Body,null,e.createElement(Ed,{crate_index:n})))})),e.createElement(Qu.Item,{eventKey:"last",id:"accordion_crates_add"},e.createElement(Qu.Header,{onClick:o},"Add new crate")))}var Sd=JSON.stringify({items:[{pn:"1124"},{pn:"2118"},{pn:"2118"},{pn:"2128"}],type:"desktop"});function kd(){var t=Cc((function(e){return{shouldShow:e.importShouldOpen,data:e.importValue,loadDescription:e.loadDescription,updateImportDescription:e.updateImportDescription,closeImport:e.closeImport,showImport:e.openImport}})),n=t.shouldShow,r=t.data,o=t.loadDescription,a=t.updateImportDescription,i=t.closeImport,l=t.showImport,s=Rc((function(e){"mousedown"===e.type&&i()}));return e.createElement(e.Fragment,null,e.createElement("button",{className:"btn btn-sm btn-outline-primary m-0 mb-2",style:{cursor:"pointer"},onClick:l},"Import JSON"),e.createElement(ku,{show:n,animation:!0,centered:!0},e.createElement(ku.Body,{ref:s,className:"rfqFeedback"},e.createElement("div",{className:"form-group"},e.createElement("p",{className:"small"},"Input the JSON description below. Should be something like:",e.createElement("br",null),Sd)),e.createElement("div",{className:"form-group w-100"},e.createElement("textarea",{onChange:function(e){a(e.target.value)},value:r.value,className:"form-control w-100",rows:"5",placeholder:"Input JSON description here."})),r.error!==uc.OK?e.createElement("div",{className:"form-group"},e.createElement("p",{className:"text-danger"},r.error===uc.Empty?"Empty input":"Invalid JSON")):null,e.createElement("div",{className:"d-flex flex-column flex-sm-row justify-content-end"},e.createElement("a",{type:"button",onClick:i,className:"btn btn-sm btn-outline-primary m-0 mb-2 mt-2 mb-sm-0 me-sm-2"},"Close"),e.createElement("a",{type:"button",onClick:o,className:"btn btn-sm btn-primary m-0 ms-sm-2 mt-2 ".concat(r.error?"disabled":"")},"Load configuration")))))}function Od(){var t=Cc((function(e){return{closeRFQ:e.closeRFQFeedback,shouldShow:e.shouldShowRFQFeedback,status:e.processingResult}})),n=t.closeRFQ,r=t.shouldShow,o=t.status,a=Rc((function(e){"mousedown"===e.type&&n()}));return e.createElement(ku,{show:r,animation:!0,centered:!0},e.createElement(ku.Body,{ref:a,className:"rfqFeedback"},e.createElement("div",{className:"d-flex"},e.createElement("div",null,o.status===uc.OK?e.createElement("img",{width:"30px",src:"/images/shop/icon-done.svg",alt:"close"}):e.createElement("img",{width:"30px",src:"/images/shop/icon-warning.svg",alt:"close"})),e.createElement("div",{style:{padding:"0 .5em"}},o.message))))}function Cd(t){var n=t.title,r=t.description,o=Cc((function(e){return e.isMobile})),a=Cc((function(e){return e.switchSideMenu}));return e.createElement("section",{className:"panel"},e.createElement("h2",null,n),e.createElement("div",{className:"control"},r),e.createElement("div",null,e.createElement(kd,null)),e.createElement(Od,null),o?e.createElement("div",{className:"mobileBtnDisplaySideMenu"},e.createElement("button",{onClick:a},e.createElement("img",{src:"/images/shop/icon-add.svg",alt:"add"}))):null,e.createElement(xd,null),e.createElement("section",{className:"summary"},e.createElement(Uc,null),e.createElement(Cu,null)))}function Pd(){var t=Cc((function(e){return{addCardFromBacklog:e.addCardFromBacklog,moveCard:e.moveCard,deleteCard:e.deleteCard,cardIndexById:e.cardIndexById}})),n=t.addCardFromBacklog,r=t.moveCard,o=t.deleteCard,a=t.cardIndexById;return(0,e.useEffect)((function(){n(null,[a("eem_pwr_mod"),a("kasli")],-1,!0)}),[]),e.createElement(Kr,{onDragEnd:function(e,t){e.destination?"backlog"===e.source.droppableId?n(e.destination.droppableId,e.source.index,e.destination.index):"backlog"===e.destination.droppableId?o(e.destination.droppableId,e.destination.index):r(e.source.droppableId,e.source.index,e.destination.droppableId,e.destination.index):console.warn("No drop destination")}},e.createElement(Pc,{aside:e.createElement(_c,null),main:e.createElement(Cd,{title:"Order hardware",description:e.createElement("p",{className:"description"},"Drag and drop the cards you want into the crate below to see how the combination would look like. Setup card's configuration by tapping at the top of the card, most of the options can be modified after shipment. If you have any issues with this ordering system, or if you need other configurations, email us directly anytime at ",e.createElement("a",{href:"mailto:sales@m-labs.hk"},"sales@m-labs.hk"),". The price is estimated and must be confirmed by a quote.")})}))}(0,t.s)(document.querySelector("#root-shop")).render(e.createElement(Pd,{data:Uo}))})()})();
\ No newline at end of file
diff --git a/static/js/shop/CrateList.jsx b/static/js/shop/CrateList.jsx
index f99ca71..b1c8a0a 100644
--- a/static/js/shop/CrateList.jsx
+++ b/static/js/shop/CrateList.jsx
@@ -24,7 +24,7 @@ export function CrateList() {
setActiveCrate("")
}}>
{crates.map((crate, index) =>
-
+
Crate #{`${index}`}
diff --git a/static/js/shop/ImportJSON.jsx b/static/js/shop/ImportJSON.jsx
index 3592f74..ace715e 100644
--- a/static/js/shop/ImportJSON.jsx
+++ b/static/js/shop/ImportJSON.jsx
@@ -32,7 +32,7 @@ export function ImportJSON() {
onClick={showImport}>Import JSON
-
+
Input the JSON description below. Should be something like:
@@ -59,9 +59,9 @@ export function ImportJSON() {
diff --git a/static/js/shop/OrderSummary.jsx b/static/js/shop/OrderSummary.jsx
index 2e3f027..1526e78 100644
--- a/static/js/shop/OrderSummary.jsx
+++ b/static/js/shop/OrderSummary.jsx
@@ -20,6 +20,7 @@ export function OrderSummary() {
resetHighlight,
highlighted,
clearCrate,
+ delCrate,
clearAll
} = useShopStore(state =>({
currency: state.currency,
@@ -31,7 +32,8 @@ export function OrderSummary() {
resetHighlight: state.highlightReset,
highlighted: state.highlighted,
clearAll: state.clearAll,
- clearCrate: state.clearCrate
+ clearCrate: state.clearCrate,
+ delCrate: state.delCrate,
}));
return (
@@ -58,18 +60,17 @@ export function OrderSummary() {
{crate_type.name} |
-
+
{`${currency} ${formatMoney(crate_type.price)}`}
+
+
-
-
|
{crate.items.map((item, index) => {
@@ -84,6 +85,10 @@ export function OrderSummary() {
onMouseEnter={() => setHighlight(crate.id, index)}
onMouseLeave={() => resetHighlight()}>
+
{`${item.name_number} ${item.name} ${item.name_codename}`}
|
diff --git a/static/js/shop/RFQFeedback.jsx b/static/js/shop/RFQFeedback.jsx
index 477c8cb..03e48d9 100644
--- a/static/js/shop/RFQFeedback.jsx
+++ b/static/js/shop/RFQFeedback.jsx
@@ -18,7 +18,7 @@ export function RFQFeedback() {
return (
-
+
{status.status === Validation.OK ?
diff --git a/static/js/shop/ShowJSON.jsx b/static/js/shop/ShowJSON.jsx
index a793e15..84987a9 100644
--- a/static/js/shop/ShowJSON.jsx
+++ b/static/js/shop/ShowJSON.jsx
@@ -25,7 +25,7 @@ export function ShowJSON() {
onClick={showDescription}
readOnly={true}/>
-
+
-
+
Close
+ className="btn btn-sm btn-outline-primary m-0 mb-1 mt-2 mb-sm-0 me-sm-2">Close