1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1786],{701:(e,t,r)=>{r.d(t,{qi:()=>g});var n,i,s=r(85454);(n=i||(i={})).mouse="mouse",n.touch="touch",n.keyboard="keyboard";class o{get delay(){var e;return null!=(e=this.args.delay)?e:0}get scrollAngleRanges(){return this.args.scrollAngleRanges}get getDropTargetElementsAtPoint(){return this.args.getDropTargetElementsAtPoint}get ignoreContextMenu(){var e;return null!=(e=this.args.ignoreContextMenu)&&e}get enableHoverOutsideTarget(){var e;return null!=(e=this.args.enableHoverOutsideTarget)&&e}get enableKeyboardEvents(){var e;return null!=(e=this.args.enableKeyboardEvents)&&e}get enableMouseEvents(){var e;return null!=(e=this.args.enableMouseEvents)&&e}get enableTouchEvents(){var e;return null==(e=this.args.enableTouchEvents)||e}get touchSlop(){return this.args.touchSlop||0}get delayTouchStart(){var e,t,r,n;return null!=(n=null!=(r=null==(e=this.args)?void 0:e.delayTouchStart)?r:null==(t=this.args)?void 0:t.delay)?n:0}get delayMouseStart(){var e,t,r,n;return null!=(n=null!=(r=null==(e=this.args)?void 0:e.delayMouseStart)?r:null==(t=this.args)?void 0:t.delay)?n:0}get window(){return this.context&&this.context.window?this.context.window:"u">typeof window?window:void 0}get document(){var e;return(null==(e=this.context)?void 0:e.document)?this.context.document:this.window?this.window.document:void 0}get rootElement(){var e;return(null==(e=this.args)?void 0:e.rootElement)||this.document}constructor(e,t){this.args=e,this.context=t}}function a(e){return void 0===e.button||0===e.button}function l(e){return!!e.targetTouches}function u(e,t){return l(e)?1===e.targetTouches.length?u(e.targetTouches[0]):t&&1===e.touches.length&&e.touches[0].target===t.target?u(e.touches[0]):void 0:{x:e.clientX,y:e.clientY}}let h=(()=>{let e=!1;try{addEventListener("test",()=>{},Object.defineProperty({},"passive",{get:()=>(e=!0,!0)}))}catch(e){}return e})(),d={[i.mouse]:{start:"mousedown",move:"mousemove",end:"mouseup",contextmenu:"contextmenu"},[i.touch]:{start:"touchstart",move:"touchmove",end:"touchend"},[i.keyboard]:{keydown:"keydown"}};class c{profile(){var e;return{sourceNodes:this.sourceNodes.size,sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,targetNodes:this.targetNodes.size,dragOverTargetIds:(null==(e=this.dragOverTargetIds)?void 0:e.length)||0}}get document(){return this.options.document}setup(){let e=this.options.rootElement;e&&((0,s.V)(!c.isSetUp,"Cannot have two Touch backends at the same time."),c.isSetUp=!0,this.addEventListener(e,"start",this.getTopMoveStartHandler()),this.addEventListener(e,"start",this.handleTopMoveStartCapture,!0),this.addEventListener(e,"move",this.handleTopMove),this.addEventListener(e,"move",this.handleTopMoveCapture,!0),this.addEventListener(e,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.addEventListener(e,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.addEventListener(e,"keydown",this.handleCancelOnEscape,!0))}teardown(){let e=this.options.rootElement;e&&(c.isSetUp=!1,this._mouseClientOffset={},this.removeEventListener(e,"start",this.handleTopMoveStartCapture,!0),this.removeEventListener(e,"start",this.handleTopMoveStart),this.removeEventListener(e,"move",this.handleTopMoveCapture,!0),this.removeEventListener(e,"move",this.handleTopMove),this.removeEventListener(e,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.removeEventListener(e,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.removeEventListener(e,"keydown",this.handleCancelOnEscape,!0),this.uninstallSourceNodeRemovalObserver())}addEventListener(e,t,r,n=!1){let i=h?{capture:n,passive:!1}:n;this.listenerTypes.forEach(function(n){let s=d[n][t];s&&e.addEventListener(s,r,i)})}removeEventListener(e,t,r,n=!1){let i=h?{capture:n,passive:!1}:n;this.listenerTypes.forEach(function(n){let s=d[n][t];s&&e.removeEventListener(s,r,i)})}connectDragSource(e,t){let r=this.handleMoveStart.bind(this,e);return this.sourceNodes.set(e,t),this.addEventListener(t,"start",r),()=>{this.sourceNodes.delete(e),this.removeEventListener(t,"start",r)}}connectDragPreview(e,t,r){return this.sourcePreviewNodeOptions.set(e,r),this.sourcePreviewNodes.set(e,t),()=>{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDropTarget(e,t){let r=this.options.rootElement;if(!this.document||!r)return()=>{};let n=n=>{let i;if(!this.document||!r||!this.monitor.isDragging())return;switch(n.type){case d.mouse.move:i={x:n.clientX,y:n.clientY};break;case d.touch.move:var s,o;i={x:(null==(s=n.touches[0])?void 0:s.clientX)||0,y:(null==(o=n.touches[0])?void 0:o.clientY)||0}}let a=null!=i?this.document.elementFromPoint(i.x,i.y):void 0,l=a&&t.contains(a);if(a===t||l)return this.handleMove(n,e)};return this.addEventListener(this.document.body,"move",n),this.targetNodes.set(e,t),()=>{this.document&&(this.targetNodes.delete(e),this.removeEventListener(this.document.body,"move",n))}}
1getTopMoveStartHandler(){return this.options.delayTouchStart||this.options.delayMouseStart?this.handleTopMoveStartDelay:this.handleTopMoveStart}installSourceNodeRemovalObserver(e){this.uninstallSourceNodeRemovalObserver(),this.draggedSourceNode=e,this.draggedSourceNodeRemovalObserver=new MutationObserver(()=>{e&&!e.parentElement&&(this.resurrectSourceNode(),this.uninstallSourceNodeRemovalObserver())}),e&&e.parentElement&&this.draggedSourceNodeRemovalObserver.observe(e.parentElement,{childList:!0})}resurrectSourceNode(){this.document&&this.draggedSourceNode&&(this.draggedSourceNode.style.display="none",this.draggedSourceNode.removeAttribute("data-reactid"),this.document.body.appendChild(this.draggedSourceNode))}uninstallSourceNodeRemovalObserver(){this.draggedSourceNodeRemovalObserver&&this.draggedSourceNodeRemovalObserver.disconnect(),this.draggedSourceNodeRemovalObserver=void 0,this.draggedSourceNode=void 0}constructor(e,t,r){this.getSourceClientOffset=e=>{let t=this.sourceNodes.get(e);return t&&function(e){let t=1===e.nodeType?e:e.parentElement;if(!t)return;let{top:r,left:n}=t.getBoundingClientRect();return{x:n,y:r}}(t)},this.handleTopMoveStartCapture=e=>{a(e)&&(this.moveStartSourceIds=[])},this.handleMoveStart=e=>{Array.isArray(this.moveStartSourceIds)&&this.moveStartSourceIds.unshift(e)},this.handleTopMoveStart=e=>{if(!a(e))return;let t=u(e);t&&(l(e)&&(this.lastTargetTouchFallback=e.targetTouches[0]),this._mouseClientOffset=t),this.waitingForDelay=!1},this.handleTopMoveStartDelay=e=>{if(!a(e))return;let t=e.type===d.touch.start?this.options.delayTouchStart:this.options.delayMouseStart;this.timeout=setTimeout(this.handleTopMoveStart.bind(this,e),t),this.waitingForDelay=!0},this.handleTopMoveCapture=()=>{this.dragOverTargetIds=[]},this.handleMove=(e,t)=>{this.dragOverTargetIds&&this.dragOverTargetIds.unshift(t)},this.handleTopMove=e=>{var t,r;if(this.timeout&&clearTimeout(this.timeout),!this.document||this.waitingForDelay)return;let{moveStartSourceIds:n,dragOverTargetIds:i}=this,s=this.options.enableHoverOutsideTarget,o=u(e,this.lastTargetTouchFallback);if(!o)return;if(this._isScrolling||!this.monitor.isDragging()&&function(e,t,r,n,i){if(!i)return!1;let s=180*Math.atan2(n-t,r-e)/Math.PI+180;for(let e=0;e<i.length;++e){let t=i[e];if(t&&(null==t.start||s>=t.start)&&(null==t.end||s<=t.end))return!0}return!1}
1(this._mouseClientOffset.x||0,this._mouseClientOffset.y||0,o.x,o.y,this.options.scrollAngleRanges)){this._isScrolling=!0;return}if(!this.monitor.isDragging()&&this._mouseClientOffset.hasOwnProperty("x")&&n&&(t=this._mouseClientOffset.x||0,r=this._mouseClientOffset.y||0,Math.sqrt(Math.pow(Math.abs(o.x-t),2)+Math.pow(Math.abs(o.y-r),2))>(this.options.touchSlop?this.options.touchSlop:0))&&(this.moveStartSourceIds=void 0,this.actions.beginDrag(n,{clientOffset:this._mouseClientOffset,getSourceClientOffset:this.getSourceClientOffset,publishSource:!1})),!this.monitor.isDragging())return;let a=this.sourceNodes.get(this.monitor.getSourceId());this.installSourceNodeRemovalObserver(a),this.actions.publishDragSource(),e.cancelable&&e.preventDefault();let l=(i||[]).map(e=>this.targetNodes.get(e)).filter(e=>!!e),h=this.options.getDropTargetElementsAtPoint?this.options.getDropTargetElementsAtPoint(o.x,o.y,l):this.document.elementsFromPoint(o.x,o.y),d=[];for(let e in h){if(!h.hasOwnProperty(e))continue;let t=h[e];for(null!=t&&d.push(t);t;)(t=t.parentElement)&&-1===d.indexOf(t)&&d.push(t)}let c=d.filter(e=>l.indexOf(e)>-1).map(e=>this._getDropTargetId(e)).filter(e=>!!e).filter((e,t,r)=>r.indexOf(e)===t);if(s)for(let e in this.targetNodes){let t=this.targetNodes.get(e);if(a&&t&&t.contains(a)&&-1===c.indexOf(e)){c.unshift(e);break}}c.reverse(),this.actions.hover(c,{clientOffset:o})},this._getDropTargetId=e=>{let t=this.targetNodes.keys(),r=t.next();for(;!1===r.done;){let n=r.value;if(e===this.targetNodes.get(n))return n;r=t.next()}},this.handleTopMoveEndCapture=e=>{if(this._isScrolling=!1,this.lastTargetTouchFallback=void 0,void 0===e.buttons||(1&e.buttons)==0){if(!this.monitor.isDragging()||this.monitor.didDrop()){this.moveStartSourceIds=void 0;return}e.cancelable&&e.preventDefault(),this._mouseClientOffset={},this.uninstallSourceNodeRemovalObserver(),this.actions.drop(),this.actions.endDrag()}},this.handleCancelOnEscape=e=>{"Escape"===e.key&&this.monitor.isDragging()&&(this._mouseClientOffset={},this.uninstallSourceNodeRemovalObserver(),this.actions.endDrag())},this.options=new o(r,t),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.sourceNodes=new Map,this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.targetNodes=new Map,this.listenerTypes=[],this._mouseClientOffset={},this._isScrolling=!1,this.options.enableMouseEvents&&this.listenerTypes.push(i.mouse),this.options.enableTouchEvents&&this.listenerTypes.push(i.touch),this.options.enableKeyboardEvents&&this.listenerTypes.push(i.keyboard)}}let g=function(e,t={},r={}){return new c(e,t,r)}},35308:(e,t,r)=>{r.d(t,{t2:()=>E});var n={};function i(e){let t=null;return()=>(null==t&&(t=e()),t)}r.r(n),r.d(n,{FILE:()=>a,HTML:()=>h,TEXT:()=>u,URL:()=>l});class s{enter(e){var t,r;let n,i,s,o=this.entered.length,a=t=>this.isNodeInDocument(t)&&(!t.contains||t.contains(e));return this.entered=(t=this.entered.filter(a),r=[e],n=new Set,i=e=>n.add(e),t.forEach(i),r.forEach(i),s=[],n.forEach(e=>s.push(e)),s),0===o&&this.entered.length>0}leave(e){var t;let r=this.entered.length;return this.entered=(t=this.entered.filter(this.isNodeInDocument),t.filter(t=>t!==e)),r>0&&0===this.entered.length}reset(){this.entered=[]}constructor(e){this.entered=[],this.isNodeInDocument=e}}class o{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(e=>{Object.defineProperty(this.item,e,{configurable:!0,enumerable:!0,get:()=>(console.warn(`Browser doesn't allow reading "${e}" until the drop event.`),null)})})}loadDataTransfer(e){if(e){let t={};Object.keys(this.config.exposeProperties).forEach(r=>{let n=this.config.exposeProperties[r];null!=n&&(t[r]={value:n(e,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,t)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(e,t){return t===e.getSourceId()}endDrag(){}constructor(e){this.config=e,this.item={},this.initializeExposedProperties()}}let a="__NATIVE_FILE__",l="__NATIVE_URL__",u="__NATIVE_TEXT__",h="__NATIVE_HTML__";function d(e,t,r){let n=t.reduce((t,r)=>t||e.getData(r),"");return null!=n?n:r}let c={[a]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[h]:{exposeProperties:{html:(e,t)=>
1d(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[l]:{exposeProperties:{urls:(e,t)=>d(e,t,"").split("\n"),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[u]:{exposeProperties:{text:(e,t)=>d(e,t,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}};function g(e){if(!e)return null;let t=Array.prototype.slice.call(e.types||[]);return Object.keys(c).filter(e=>{let r=c[e];return!!(null==r?void 0:r.matchesTypes)&&r.matchesTypes.some(e=>t.indexOf(e)>-1)})[0]||null}let p=i(()=>/firefox/i.test(navigator.userAgent)),f=i(()=>!!window.safari);class v{interpolate(e){let t,{xs:r,ys:n,c1s:i,c2s:s,c3s:o}=this,a=r.length-1;if(e===r[a])return n[a];let l=0,u=o.length-1;for(;l<=u;){let i=r[t=Math.floor(.5*(l+u))];if(i<e)l=t+1;else{if(!(i>e))return n[t];u=t-1}}let h=e-r[a=Math.max(0,u)],d=h*h;return n[a]+i[a]*h+s[a]*d+o[a]*h*d}constructor(e,t){let r,n,i;const{length:s}=e,o=[];for(let e=0;e<s;e++)o.push(e);o.sort((t,r)=>e[t]<e[r]?-1:1);const a=[],l=[],u=[];for(let i=0;i<s-1;i++)r=e[i+1]-e[i],n=t[i+1]-t[i],l.push(r),a.push(n),u.push(n/r);const h=[u[0]];for(let e=0;e<l.length-1;e++){const t=u[e],n=u[e+1];if(t*n<=0)h.push(0);else{r=l[e];const i=l[e+1],s=r+i;h.push(3*s/((s+i)/t+(s+r)/n))}}h.push(u[u.length-1]);const d=[],c=[];for(let e=0;e<h.length-1;e++){i=u[e];const t=h[e],r=1/l[e],n=t+h[e+1]-i-i;d.push((i-t-n)*r),c.push(n*r*r)}this.xs=e,this.ys=t,this.c1s=h,this.c2s=d,this.c3s=c}}function m(e){let t=1===e.nodeType?e:e.parentElement;if(!t)return null;let{top:r,left:n}=t.getBoundingClientRect();return{x:n,y:r}}function y(e){return{x:e.clientX,y:e.clientY}}class S{get window(){return this.globalContext?this.globalContext:"u">typeof window?window:void 0}get document(){var e;return(null==(e=this.globalContext)?void 0:e.document)?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var e;return(null==(e=this.optionsArgs)?void 0:e.rootElement)||this.window}constructor(e,t){this.ownerDocument=null,this.globalContext=e,this.optionsArgs=t}}function T(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}class b{profile(){var e,t;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:(null==(e=this.dragStartSourceIds)?void 0:e.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:(null==(t=this.dragOverTargetIds)?void 0:t.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){let e=this.rootElement;if(void 0!==e){if(e.__isReactDndBackendSetUp)throw Error("Cannot have two HTML5 backends at the same time.");e.__isReactDndBackendSetUp=!0,this.addEventListeners(e)}}teardown(){let e=this.rootElement;if(void 0!==e&&(e.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId)){var t;null==(t=this.window)||t.cancelAnimationFrame(this.asyncEndDragFrameId)}}connectDragPreview(e,t,r){return this.sourcePreviewNodeOptions.set(e,r),this.sourcePreviewNodes.set(e,t),()=>{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDragSource(e,t,r){this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,r);let n=t=>this.handleDragStart(t,e),i=e=>this.handleSelectStart(e);return t.setAttribute("draggable","true"),t.addEventListener("dragstart",n),t.addEventListener("selectstart",i),()=>{this.sourceNodes.delete(e),this.sourceNodeOptions.delete(e),t.removeEventListener("dragstart",n),t.removeEventListener("selectstart",i),t.setAttribute("draggable","false")}}connectDropTarget(e,t){let r=t=>this.handleDragEnter(t,e),n=t=>this.handleDragOver(t,e),i=t=>this.handleDrop(t,e);return t.addEventListener("dragenter",r),t.addEventListener("dragover",n
1),t.addEventListener("drop",i),()=>{t.removeEventListener("dragenter",r),t.removeEventListener("dragover",n),t.removeEventListener("drop",i)}}addEventListeners(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){let e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return T({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){let e=this.monitor.getSourceId();return T({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(e)||{})}isDraggingNativeItem(){let e=this.monitor.getItemType();return Object.keys(n).some(t=>n[t]===e)}beginDragNativeItem(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(e,t){let r=c[e];if(!r)throw Error(`native type ${e} has no configuration`);let n=new o(r);return n.loadDataTransfer(t),n}(e,t),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(e){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e,this.mouseMoveTimeoutTimer=setTimeout(()=>{var e;return null==(e=this.rootElement)?void 0:e.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},1e3)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var e;null==(e=this.window)||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(e,t){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(t))}handleDragEnter(e,t){this.dragEnterTargetIds.unshift(t)}handleDragOver(e,t){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)}handleDrop(e,t){this.dropTargetIds.unshift(t)}constructor(e,t,r){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=e=>{let t=this.sourceNodes.get(e);return t&&m(t)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=e=>!!(e&&this.document&&this.document.body&&this.document.body.contains(e)),this.endDragIfSourceWasRemovedFromDOM=()=>{let e=this.currentDragSourceNode;null==e||this.isNodeInDocument(e)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(
1),this.cancelHover())},this.scheduleHover=e=>{null===this.hoverRafId&&"u">typeof requestAnimationFrame&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(e||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{null!==this.hoverRafId&&"u">typeof cancelAnimationFrame&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=e=>{if(e.defaultPrevented)return;let{dragStartSourceIds:t}=this;this.dragStartSourceIds=null;let r=y(e);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(t||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:r});let{dataTransfer:n}=e,i=g(n);if(this.monitor.isDragging()){if(n&&"function"==typeof n.setDragImage){let e=this.monitor.getSourceId(),t=this.sourceNodes.get(e),i=this.sourcePreviewNodes.get(e)||t;if(i){let{anchorX:e,anchorY:s,offsetX:o,offsetY:a}=this.getCurrentSourcePreviewNodeOptions(),l=function(e,t,r,n,i){var s;let o,a,l,u="IMG"===t.nodeName&&(p()||!(null==(s=document.documentElement)?void 0:s.contains(t))),h=m(u?e:t),d={x:r.x-h.x,y:r.y-h.y},{offsetWidth:c,offsetHeight:g}=e,{anchorX:y,anchorY:S}=n,{dragPreviewWidth:T,dragPreviewHeight:b}=(o=u?t.width:c,a=u?t.height:g,f()&&u&&(a/=window.devicePixelRatio,o/=window.devicePixelRatio),{dragPreviewWidth:o,dragPreviewHeight:a}),{offsetX:E,offsetY:D}=i;return{x:0===E||E?E:new v([0,.5,1],[d.x,d.x/c*T,d.x+T-c]).interpolate(y),y:0===D||D?D:(l=new v([0,.5,1],[d.y,d.y/g*b,d.y+b-g]).interpolate(S),f()&&u&&(l+=(window.devicePixelRatio-1)*b),l)}}(t,i,r,{anchorX:e,anchorY:s},{offsetX:o,offsetY:a});n.setDragImage(i,l.x,l.y)}}try{null==n||n.setData("application/json",{})}catch(e){}this.setCurrentDragSourceNode(e.target);let{captureDraggingState:t}=this.getCurrentSourcePreviewNodeOptions();t?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(i)this.beginDragNativeItem(i);else{if(n&&!n.types&&(e.target&&!e.target.hasAttribute||!e.target.hasAttribute("draggable")))return;e.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=e=>{if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()){var t;null==(t=this.currentNativeSource)||t.loadDataTransfer(e.dataTransfer)}if(!this.enterLeaveCounter.enter(e.target)||this.monitor.isDragging())return;let{dataTransfer:r}=e,n=g(r);n&&this.beginDragNativeItem(n,r)},this.handleTopDragEnter=e=>{let{dragEnterTargetIds:t}=this;this.dragEnterTargetIds=[],!this.monitor.isDragging()||(this.altKeyPressed=e.altKey,t.length>0&&this.actions.hover(t,{clientOffset:y(e)}),t.some(e=>this.monitor.canDropOnTarget(e))&&(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=this.getCurrentDropEffect())))},this.handleTopDragOverCapture=e=>{if(this.dragOverTargetIds=[],this.isDraggingNativeItem()){var t;null==(t=this.currentNativeSource)||t.loadDataTransfer(e.dataTransfer)}},this.handleTopDragOver=e=>{let{dragOverTargetIds:t}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging()){e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="none");return}this.altKeyPressed=e.altKey,this.lastClientOffset=y(e),this.scheduleHover(t),(t||[]).some(e=>this.monitor.canDropOnTarget(e))?(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?e.preventDefault():(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=e=>{this.isDraggingNativeItem()&&e.preventDefault(),this.enterLeaveCounter.leave(e.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=e=>{if(this.dropTargetIds=[],this.isDraggingNativeItem()){var t;e.preventDefault(),null==(t=this.currentNativeSource)||t.loadDataTransfer(e.dataTransfer)}else g(e.dataTransfer)&&e.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=e=>{let{dropTargetIds:t}=this;this.dropTargetIds=[],this.actions.hover(t,{clientOffset:y(e)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(
1),this.cancelHover()},this.handleSelectStart=e=>{let t=e.target;"function"!=typeof t.dragDrop||"INPUT"===t.tagName||"SELECT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable||(e.preventDefault(),t.dragDrop())},this.options=new S(t,r),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new s(this.isNodeInDocument)}}let E=function(e,t,r){return new b(e,t,r)}},49502:(e,t,r)=>{r.d(t,{U2:()=>E,lr:()=>O,v8:()=>w});var n,i=e=>{throw TypeError(e)},s=(e,t,r)=>t.has(e)||i("Cannot "+r),o=(e,t,r)=>(s(e,t,"read from private field"),r?r.call(e):t.get(e)),a=(e,t,r)=>t.has(e)?i("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),l=(e,t,r,n)=>(s(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),u=class{constructor(){a(this,n),this.register=e=>{o(this,n).push(e)},this.unregister=e=>{for(;-1!==o(this,n).indexOf(e);)o(this,n).splice(o(this,n).indexOf(e),1)},this.backendChanged=e=>{for(let t of o(this,n))t.backendChanged(e)},l(this,n,[])}};n=new WeakMap;var h,d,c,g,p,f,v,m,y,S,T,b=class e{constructor(t,r,n){if(a(this,h),a(this,d),a(this,c),a(this,g),a(this,p),a(this,f,(e,t,r)=>{if(!r.backend)throw Error(`You must specify a 'backend' property in your Backend entry: ${JSON.stringify(r)}`);let n=r.backend(e,t,r.options),i=r.id,s=!r.id&&n&&n.constructor;if(s&&(i=n.constructor.name),!i)throw Error(`You must specify an 'id' property in your Backend entry: ${JSON.stringify(r)} 2 see this guide: https://github.com/louisbrunner/dnd-multi-backend/tree/master/packages/react-dnd-multi-backend#migrating-from-5xx`);if(s&&console.warn(`Deprecation notice: You are using a pipeline which doesn't include backends' 'id'. 3 This might be unsupported in the future, please specify 'id' explicitely for every backend.`),o(this,c)[i])throw Error(`You must specify a unique 'id' property in your Backend entry: 4 ${JSON.stringify(r)} (conflicts with: ${JSON.stringify(o(this,c)[i])})`);return{id:i,instance:n,preview:r.preview??!1,transition:r.transition,skipDispatchOnTransition:r.skipDispatchOnTransition??!1}}),this.setup=()=>{if(!(typeof window>"u")){if(e.isSetUp)throw Error("Cannot have two MultiBackends at the same time.");e.isSetUp=!0,o(this,v).call(this,window),o(this,c)[o(this,h)].instance.setup()}},this.teardown=()=>{typeof window>"u"||(e.isSetUp=!1,o(this,m).call(this,window),o(this,c)[o(this,h)].instance.teardown())},this.connectDragSource=(e,t,r)=>o(this,T).call(this,"connectDragSource",e,t,r),this.connectDragPreview=(e,t,r)=>o(this,T).call(this,"connectDragPreview",e,t,r),this.connectDropTarget=(e,t,r)=>o(this,T).call(this,"connectDropTarget",e,t,r),this.profile=()=>o(this,c)[o(this,h)].instance.profile(),this.previewEnabled=()=>o(this,c)[o(this,h)].preview,this.previewsList=()=>o(this,d),this.backendsList=()=>o(this,g),a(this,v,e=>{for(let t of o(this,g))t.transition&&e.addEventListener(t.transition.event,o(this,y))}),a(this,m,e=>{for(let t of o(this,g))t.transition&&e.removeEventListener(t.transition.event,o(this,y))}),a(this,y,e=>{let t=o(this,h);if(o(this,g).some(t=>!!(t.id!==o(this,h)&&t.transition&&t.transition.check(e))&&(l(this,h,t.id),!0)),o(this,h)!==t){for(let[e,r]of(o(this,c)[t].instance.teardown(),Object.entries(o(this,p))))r.unsubscribe(),r.unsubscribe=o(this,S).call(this,r.func,...r.args);o(this,d).backendChanged(this);let r=o(this,c)[o(this,h)];if(r.instance.setup(),r.skipDispatchOnTransition)return;let n=new e.constructor(e.type,e);e.target?.dispatchEvent(n)}}),a(this,S,(e,t,r,n)=>o(this,c)[o(this,h)].instance[e](t,r,n)),a(this,T,(e,t,r,n)=>{let i=`${e}_${t}`,s=o(this,S).call(this,e,t,r,n);return o(this,p)[i]={func:e,args:[t,r,n],unsubscribe:s},()=>{o(this,p)[i].unsubscribe(),delete o(this,p)[i]}}),!n||!n.backends||n.backends.length<1)throw Error(`You must specify at least one Backend, if you are coming from 2.x.x (or don't understand this error) 5 see this guide: https://github.com/louisbrunner/dnd-multi-backend/tree/master/packages/react-dnd-multi-backend#migrating-from-2xx`);for(let e of(l(this,d,new u),l(this,c,{}),l(this,g,[]),n.backends)){let n=o(this,f).call(this,t,r,e);o(this,c)[n.id]=n,o(this,g).push(n)}l(this,h,o(this,g)[0].id),l(this,p,{})}};h=new WeakMap,d=new WeakMap,c=new WeakMap,g=new WeakMap,p=new WeakMap,f=new WeakMap,v=new WeakMap,m=new WeakMap,y=new WeakMap,S=new WeakMap,T=new WeakMap,b.isSetUp=!1;var E=(e,t,r)=>new b(e,t,r),D=(e,t)=>({event:e,check:t}),O=D("touchstart",e=>null!==e.touches&&void 0!==e.touches),w=(D("dragstart",e=>-1!==e.type.indexOf("drag")||-1!==e.type.indexOf("drop")),D("mousedown",e=>
5-1===e.type.indexOf("touch")&&-1!==e.type.indexOf("mouse")));D("pointerdown",e=>"mouse"===e.pointerType)},67574:(e,t,r)=>{r.d(t,{Q:()=>z});var n,i,s=r(75038),o=r(65385),a=r(85454);function l(e){return"object"==typeof e}let u="dnd-core/INIT_COORDS",h="dnd-core/BEGIN_DRAG",d="dnd-core/PUBLISH_DRAG_SOURCE",c="dnd-core/HOVER",g="dnd-core/DROP",p="dnd-core/END_DRAG";function f(e,t){return{type:u,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}let v={type:u,payload:{clientOffset:null,sourceClientOffset:null}};function m(e,t){return null===t?null===e:Array.isArray(e)?e.some(e=>e===t):e===t}class y{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){var e,t,r,n,i;let s=this,{dispatch:o}=this.store,u={beginDrag:(e=this,function(t=[],r={publishSource:!0}){var n,i,s,o,u;let{publishSource:d=!0,clientOffset:c,getSourceClientOffset:g}=r,p=e.getMonitor(),m=e.getRegistry();e.dispatch(f(c)),n=t,i=p,s=m,(0,a.V)(!i.isDragging(),"Cannot call beginDrag while dragging."),n.forEach(function(e){(0,a.V)(s.getSource(e),"Expected sourceIds to be registered.")});let y=function(e,t){let r=null;for(let n=e.length-1;n>=0;n--)if(t.canDragSource(e[n])){r=e[n];break}return r}(t,p);if(null==y)return void e.dispatch(v);let S=null;if(c){if(!g)throw Error("getSourceClientOffset must be defined");o=g,(0,a.V)("function"==typeof o,"When clientOffset is provided, getSourceClientOffset must be a function."),S=g(y)}e.dispatch(f(c,S));let T=m.getSource(y).beginDrag(p,y);if(null!=T){return u=T,(0,a.V)(l(u),"Item must be an object."),m.pinSource(y),{type:h,payload:{itemType:m.getSourceType(y),item:T,sourceId:y,clientOffset:c||null,sourceClientOffset:S||null,isSourcePublic:!!d}}}}),publishDragSource:(t=this,function(){if(t.getMonitor().isDragging())return{type:d}}),hover:(r=this,function(e,{clientOffset:t}={}){var n,i,s,o;n=e,(0,a.V)(Array.isArray(n),"Expected targetIds to be an array.");let l=e.slice(0),u=r.getMonitor(),h=r.getRegistry();return function(e,t,r){for(let n=e.length-1;n>=0;n--){let i=e[n];m(t.getTargetType(i),r)||e.splice(n,1)}}(l,h,u.getItemType()),function(e,t,r){(0,a.V)(t.isDragging(),"Cannot call hover while not dragging."),(0,a.V)(!t.didDrop(),"Cannot call hover after drop.");for(let t=0;t<e.length;t++){let n=e[t];(0,a.V)(e.lastIndexOf(n)===t,"Expected targetIds to be unique in the passed array.");let i=r.getTarget(n);(0,a.V)(i,"Expected targetIds to be registered.")}}(l,u,h),i=l,s=u,o=h,i.forEach(function(e){o.getTarget(e).hover(s,e)}),{type:c,payload:{targetIds:l,clientOffset:t||null}}}),drop:(n=this,function(e={}){var t,r;let i,s=n.getMonitor(),o=n.getRegistry();t=s,(0,a.V)(t.isDragging(),"Cannot call drop while not dragging."),(0,a.V)(!t.didDrop(),"Cannot call drop twice during one drag operation."),((i=(r=s).getTargetIds().filter(r.canDropOnTarget,r)).reverse(),i).forEach((t,r)=>{var i,u,h,d,c;let p,f,v={type:g,payload:{dropResult:function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({},e,(i=t,u=r,h=o,d=s,c=f=(p=h.getTarget(i))?p.drop(d,i):void 0,(0,a.V)(void 0===c||l(c),"Drop result must either be an object or undefined."),void 0===f&&(f=0===u?{}:d.getDropResult()),f))}};n.dispatch(v)})}),endDrag:(i=this,function(){var e;let t=i.getMonitor(),r=i.getRegistry();e=t,(0,a.V)(e.isDragging(),"Cannot call endDrag while not dragging.");let n=t.getSourceId();return null!=n&&(r.getSource(n,!0).endDrag(t,n),r.unpinSource()),{type:p}})};return Object.keys(u).reduce((e,t)=>{let r=u[t];return e[t]=(...e)=>{let t=r.apply(s,e);void 0!==t&&o(t)},e},{})}dispatch(e){this.store.dispatch(e)}constructor(e,t){this.isSetUp=!1,this.handleRefCountChange=()=>{let e=this.store.getState().refCount>0;this.backend&&(e&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!e&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))}
5,this.store=e,this.monitor=t,e.subscribe(this.handleRefCountChange)}}function S(e,t){return{x:e.x-t.x,y:e.y-t.y}}let T=[],b=[];T.__IS_NONE__=!0,b.__IS_ALL__=!0;class E{subscribeToStateChange(e,t={}){let{handlerIds:r}=t;(0,a.V)("function"==typeof e,"listener must be a function."),(0,a.V)(void 0===r||Array.isArray(r),"handlerIds, when specified, must be an array of strings.");let n=this.store.getState().stateId,i=()=>{let t=this.store.getState(),i=t.stateId;try{i===n||i===n+1&&!function(e,t){return e!==T&&(e===b||void 0===t||t.filter(t=>e.indexOf(t)>-1).length>0)}(t.dirtyHandlerIds,r)||e()}finally{n=i}};return this.store.subscribe(i)}subscribeToOffsetChange(e){(0,a.V)("function"==typeof e,"listener must be a function.");let t=this.store.getState().dragOffset,r=()=>{let r=this.store.getState().dragOffset;r!==t&&(t=r,e())};return this.store.subscribe(r)}canDragSource(e){if(!e)return!1;let t=this.registry.getSource(e);return(0,a.V)(t,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()&&t.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;let t=this.registry.getTarget(e);return(0,a.V)(t,`Expected to find a valid target. targetId=${e}`),!(!this.isDragging()||this.didDrop())&&m(this.registry.getTargetType(e),this.getItemType())&&t.canDrop(this,e)}isDragging(){return!!this.getItemType()}isDraggingSource(e){if(!e)return!1;let t=this.registry.getSource(e,!0);return(0,a.V)(t,`Expected to find a valid source. sourceId=${e}`),!!this.isDragging()&&!!this.isSourcePublic()&&this.registry.getSourceType(e)===this.getItemType()&&t.isDragging(this,e)}isOverTarget(e,t={shallow:!1}){if(!e)return!1;let{shallow:r}=t;if(!this.isDragging())return!1;let n=this.registry.getTargetType(e),i=this.getItemType();if(i&&!m(n,i))return!1;let s=this.getTargetIds();if(!s.length)return!1;let o=s.indexOf(e);return r?o===s.length-1:o>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return function(e){let{clientOffset:t,initialClientOffset:r,initialSourceClientOffset:n}=e;return t&&r&&n?S({x:t.x+n.x,y:t.y+n.y},r):null}(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return function(e){let{clientOffset:t,initialClientOffset:r}=e;return t&&r?S(t,r):null}(this.store.getState().dragOffset)}constructor(e,t){this.store=e,this.registry=t}}let D="u">typeof global?global:self,O=D.MutationObserver||D.WebKitMutationObserver;function w(e){return function(){let t=setTimeout(n,0),r=setInterval(n,50);function n(){clearTimeout(t),clearInterval(r),e()}}}let I="function"==typeof O?function(e){let t=1,r=new O(e),n=document.createTextNode("");return r.observe(n,{characterData:!0}),function(){n.data=t=-t}}:w;class N{enqueueTask(e){let{queue:t,requestFlush:r}=this;t.length||(r(),this.flushing=!0),t[t.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{let{queue:e}=this;for(;this.index<e.length;){let t=this.index;if(this.index++,e[t].call(),this.index>this.capacity){for(let t=0,r=e.length-this.index;t<r;t++)e[t]=e[t+this.index];e.length-=this.index,this.index=0}}e.length=0,this.index=0,this.flushing=!1},this.registerPendingError=e=>{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=I(this.flush),this.requestErrorThrow=w(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class C{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,t){this.onError=e,this.release=t,this.task=null}}class x{create(e){let t=this.freeTasks,r=t.length?t.pop():new C(this.onError,e=>t[t.length]=e);return r.task=e,r}constructor(e){this.onError=e,this.freeTasks=[]}}let M=new N,k=new x(M.registerPendingError),P="dnd-core/ADD_SOURCE",L="dnd-core/ADD_TARGET",R="dnd-core/REMOVE_SOURCE",_="dnd-core/REMOVE_TARGET";
5function A(e,t){t&&Array.isArray(e)?e.forEach(e=>A(e,!1)):(0,a.V)("string"==typeof e||"symbol"==typeof e,t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}(n=i||(i={})).SOURCE="SOURCE",n.TARGET="TARGET";let j=0;function V(e){switch(e[0]){case"S":return i.SOURCE;case"T":return i.TARGET;default:throw Error(`Cannot parse handler ID: ${e}`)}}function H(e,t){let r=e.entries(),n=!1;do{let{done:e,value:[,i]}=r.next();if(i===t)return!0;n=!!e}while(!n);return!1}class U{addSource(e,t){A(e),(0,a.V)("function"==typeof t.canDrag,"Expected canDrag to be a function."),(0,a.V)("function"==typeof t.beginDrag,"Expected beginDrag to be a function."),(0,a.V)("function"==typeof t.endDrag,"Expected endDrag to be a function.");let r=this.addHandler(i.SOURCE,e,t);return this.store.dispatch({type:P,payload:{sourceId:r}}),r}addTarget(e,t){A(e,!0),(0,a.V)("function"==typeof t.canDrop,"Expected canDrop to be a function."),(0,a.V)("function"==typeof t.hover,"Expected hover to be a function."),(0,a.V)("function"==typeof t.drop,"Expected beginDrag to be a function.");let r=this.addHandler(i.TARGET,e,t);return this.store.dispatch({type:L,payload:{targetId:r}}),r}containsHandler(e){return H(this.dragSources,e)||H(this.dropTargets,e)}getSource(e,t=!1){return(0,a.V)(this.isSourceId(e),"Expected a valid source ID."),t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return(0,a.V)(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return(0,a.V)(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return(0,a.V)(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return V(e)===i.SOURCE}isTargetId(e){return V(e)===i.TARGET}removeSource(e){var t;(0,a.V)(this.getSource(e),"Expected an existing source."),this.store.dispatch({type:R,payload:{sourceId:e}}),t=()=>{this.dragSources.delete(e),this.types.delete(e)},M.enqueueTask(k.create(t))}removeTarget(e){(0,a.V)(this.getTarget(e),"Expected an existing target."),this.store.dispatch({type:_,payload:{targetId:e}}),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){let t=this.getSource(e);(0,a.V)(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}unpinSource(){(0,a.V)(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,t,r){let n=function(e){let t=(j++).toString();switch(e){case i.SOURCE:return`S${t}`;case i.TARGET:return`T${t}`;default:throw Error(`Unknown Handler Role: ${e}`)}}(e);return this.types.set(n,t),e===i.SOURCE?this.dragSources.set(n,r):e===i.TARGET&&this.dropTargets.set(n,r),n}constructor(e){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}}let F={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function W(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}let B={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function $(e={},t){var r;return{dirtyHandlerIds:function(e=T,t){let r,n,i;switch(t.type){case c:break;case P:case L:case _:case R:return T;default:return b}let{targetIds:s=[],prevTargetIds:o=[]}=t.payload,a=(r=new Map,n=e=>{r.set(e,r.has(e)?r.get(e)+1:1)},s.forEach(n),o.forEach(n),i=[],r.forEach((e,t)=>{1===e&&i.push(t)}),i);if(!(a.length>0||!function(e,t,r=(e,t)=>e===t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(!r(e[n],t[n]))return!1;return!0}(s,o)))return T;let l=o[o.length-1],u=s[s.length-1];return l!==u&&(l&&a.push(l),u&&a.push(u)),a}(e.dirtyHandlerIds,{type:t.type,payload:function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}
5))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({},t.payload,{prevTargetIds:(r=[],"dragOperation.targetIds".split(".").reduce((e,t)=>e&&e[t]?e[t]:r||null,e))})}),dragOffset:function(e=F,t){let{payload:r}=t;switch(t.type){case u:case h:return{initialSourceClientOffset:r.sourceClientOffset,initialClientOffset:r.clientOffset,clientOffset:r.clientOffset};case c:var n,i;if(n=e.clientOffset,i=r.clientOffset,!n&&!i||n&&i&&n.x===i.x&&n.y===i.y)return e;return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({},e,{clientOffset:r.clientOffset});case p:case g:return F;default:return e}}(e.dragOffset,t),refCount:function(e=0,t){switch(t.type){case P:case L:return e+1;case R:case _:return e-1;default:return e}}(e.refCount,t),dragOperation:function(e=B,t){let{payload:r}=t;switch(t.type){case h:return W({},e,{itemType:r.itemType,item:r.item,sourceId:r.sourceId,isSourcePublic:r.isSourcePublic,dropResult:null,didDrop:!1});case d:return W({},e,{isSourcePublic:!0});case c:return W({},e,{targetIds:r.targetIds});case _:var n,i;if(-1===e.targetIds.indexOf(r.targetId))return e;return W({},e,{targetIds:(n=e.targetIds,i=r.targetId,n.filter(e=>e!==i))});case g:return W({},e,{dropResult:r.dropResult,didDrop:!0,targetIds:[]});case p:return W({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}(e.dragOperation,t),stateId:function(e=0){return e+1}(e.stateId)}}var q=r(76430),G=r(9239);let K=0,X=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var z=(0,q.memo)(function(e){var t,{children:r}=e;let[n,i]="manager"in(t=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},s=Object.keys(e);for(n=0;n<s.length;n++)r=s[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(n=0;n<s.length;n++)r=s[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,["children"]))?[{dragDropManager:t.manager},!1]:[function(e,t=Y(),r,n){return t[X]||(t[X]={dragDropManager:function(e,t,r={},n=!1){var i;let s,a=(i=n,s="u">typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__,(0,o.y$)($,i&&s&&s({name:"dnd-core",instanceId:"dnd-core"}))),l=new E(a,new U(a)),u=new y(a,l),h=e(u,t,r);return u.receiveBackend(h),u}(e,t,r,n)}),t[X]}(t.backend,t.context,t.options,t.debugMode),!t.context];return(0,q.useEffect)(()=>{if(i){let e=Y();return++K,()=>{0==--K&&(e[X]=null)}}},[]),(0,s.jsx)(G.M.Provider,{value:n,children:r})});function Y(){return"u">typeof global?global:window}}}]); 6//# sourceMappingURL=1786-4dc477563c2a11ab.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.