1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2474],{12758:(t,e,i)=>{t.exports=i(19298)()},19298:(t,e,i)=>{"use strict";var o=i(53341);function r(){}function s(){}s.resetWarningCache=r,t.exports=function(){function t(t,e,i,r,s,n){if(n!==o){var a=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function e(){return t}t.isRequired=t;var i={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:s,resetWarningCache:r};return i.PropTypes=i,i}},21786:(t,e,i)=>{"use strict";i.d(e,{A:()=>o});let o=(0,i(71847).A)("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]])},28364:(t,e,i)=>{"use strict";i.d(e,{p:()=>O});var o=i(12115),r=i(34328),s=i.n(r),n=i(95155),a=i(47650),h=function(){return(h=Object.assign||function(t){for(var e,i=1,o=arguments.length;i<o;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},l={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},p={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},u={width:"20px",height:"20px",position:"absolute",zIndex:1},d={top:h(h({},l),{top:"-5px"}),right:h(h({},p),{left:void 0,right:"-5px"}),bottom:h(h({},l),{top:void 0,bottom:"-5px"}),left:h(h({},p),{left:"-5px"}),topRight:h(h({},u),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:h(h({},u),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:h(h({},u),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:h(h({},u),{left:"-10px",top:"-10px",cursor:"nw-resize"})},c=(0,o.memo)(function(t){var e=t.onResizeStart,i=t.direction,r=t.children,s=t.replaceStyles,a=t.className,l=(0,o.useCallback)(function(t){e(t,i)},[e,i]),p=(0,o.useCallback)(function(t){e(t,i)},[e,i]),u=(0,o.useMemo)(function(){return h(h({position:"absolute",userSelect:"none"},d[i]),null!=s?s:{})},[s,i]);return(0,n.jsx)("div",{className:a||void 0,style:u,onMouseDown:l,onTouchStart:p,children:r})}),f=function(){var t=function(e,i){return(t=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw TypeError("Class extends value "+String(i)+" is not a constructor or null");function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),g=function(){return(g=Object.assign||function(t){for(var e,i=1,o=arguments.length;i<o;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},m={width:"auto",height:"auto"},b=function(t,e,i){return Math.max(Math.min(t,i),e)},y=function(t,e,i){var o=Math.round(t/e);return o*e+i*(o-1)},v=function(t,e){return RegExp(t,"i").test(e)},w=function(t){return!!(t.touches&&t.touches.length)},S=function(t,e,i){void 0===i&&(i=0);var o=e.reduce(function(i,o,r){return Math.abs(o-t)<Math.abs(e[i]-t)?r:i},0),r=Math.abs(e[o]-t);return 0===i||r<i?e[o]:t},x=function(t){return"auto"===(t=t.toString())||t.endsWith("px")||t.endsWith("%")||t.endsWith("vh")||t.endsWith("vw")||t.endsWith("vmax")||t.endsWith("vmin")?t:"".concat(t,"px")},z=function(t,e,i,o){if(t&&"string"==typeof t){if(t.endsWith("px"))return Number(t.replace("px",""));if(t.endsWith("%")){var r=Number(t.replace("%",""))/100;return e*r}if(t.endsWith("vw")){var r=Number(t.replace("vw",""))/100;return i*r}if(t.endsWith("vh")){var r=Number(t.replace("vh",""))/100;return o*r}}return t},D=["as","ref","style","className","grid","gridGap","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],P="__resizable_base__",R=function(t){function e(e){var i,o,r,s,n=t.call(this,e)||this;return n.ratio=1,n.resizable=null,n.parentLeft=0,n.parentTop=0,n.resizableLeft=0,n.resizableRight=0,n.resizableTop=0,n.resizableBottom=0,n.targetLeft=0,n.targetTop=0,n.delta={width:0,height:0},n.appendBase=function(){if(!n.resizable||!n.window)return null;var t=n.parentNode;if(!t)return null;var e=n.window.document.createElement("div");return e.style.width="100%",e.style.height="100%",e.style.position="absolute",e.style.transform="scale(0, 0)",e.style.left="0",e.style.flex="0 0 100%",e.classList?e.classList.add(P):e.className+=P,t.appendChild(e),e},n.removeBase=function(t){var e=n.parentNode;e&&e.removeChild(t)},n.state={isResizing:!1,width:null!=(o=null==(i=n.propsSize)?void 0:i.width)?o:"auto",height:null!=(s=null==(r=n.propsSize)?void 0:r.height)?s:"auto",direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},n.onResizeStart=n.onResizeStart.bind(n),n.onMouseMove=n.onMouseMove.bind(n),n.onMouseUp=n.onMouseUp.bind(n),n}return f(e,t),Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null}
vendor: 4,129 bytes, line 1
1,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"window",{get:function(){return this.resizable&&this.resizable.ownerDocument?this.resizable.ownerDocument.defaultView:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||m},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){var t=0,e=0;if(this.resizable&&this.window){var i=this.resizable.offsetWidth,o=this.resizable.offsetHeight,r=this.resizable.style.position;"relative"!==r&&(this.resizable.style.position="relative"),t="auto"!==this.resizable.style.width?this.resizable.offsetWidth:i,e="auto"!==this.resizable.style.height?this.resizable.offsetHeight:o,this.resizable.style.position=r}return{width:t,height:e}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sizeStyle",{get:function(){var t=this,e=this.props.size,i=function(e){var i;if(void 0===t.state[e]||"auto"===t.state[e])return"auto";if(t.propsSize&&t.propsSize[e]&&(null==(i=t.propsSize[e])?void 0:i.toString().endsWith("%"))){if(t.state[e].toString().endsWith("%"))return t.state[e].toString();var o=t.getParentSize(),r=Number(t.state[e].toString().replace("px",""))/o[e]*100;return"".concat(r,"%")}return x(t.state[e])};return{width:e&&void 0!==e.width&&!this.state.isResizing?x(e.width):i("width"),height:e&&void 0!==e.height&&!this.state.isResizing?x(e.height):i("height")}},enumerable:!1,configurable:!0}),e.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var t=this.appendBase();if(!t)return{width:0,height:0};var e=!1,i=this.parentNode.style.flexWrap;"wrap"!==i&&(e=!0,this.parentNode.style.flexWrap="wrap"),t.style.position="relative",t.style.minWidth="100%",t.style.minHeight="100%";var o={width:t.offsetWidth,height:t.offsetHeight};return e&&(this.parentNode.style.flexWrap=i),this.removeBase(t),o},e.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},e.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},e.prototype.componentDidMount=function(){if(this.resizable&&this.window){var t=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:"auto"!==t.flexBasis?t.flexBasis:void 0})}},e.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},e.prototype.createSizeForCssProperty=function(t,e){var i=this.propsSize&&this.propsSize[e];return"auto"===this.state[e]&&this.state.original[e]===t&&(void 0===i||"auto"===i)?"auto":t},e.prototype.calculateNewMaxFromBoundary=function(t,e){var i,o,r=this.props.boundsByDirection,s=this.state.direction,n=r&&v("left",s),a=r&&v("top",s);if("parent"===this.props.bounds){var h=this.parentNode;h&&(i=n?this.resizableRight-this.parentLeft:h.offsetWidth+(this.parentLeft-this.resizableLeft),o=a?this.resizableBottom-this.parentTop:h.offsetHeight+(this.parentTop-this.resizableTop))}else"window"===this.props.bounds?this.window&&(i=n?this.resizableRight:this.window.innerWidth-this.resizableLeft,o=a?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(i=n?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),o=a?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return i&&Number.isFinite(i)&&(t=t&&t<i?t:i),o&&Number.isFinite(o)&&
1(e=e&&e<o?e:o),{maxWidth:t,maxHeight:e}},e.prototype.calculateNewSizeFromDirection=function(t,e){var i,o=this.props.scale||1,r=Array.isArray(i=this.props.resizeRatio||1)?i:[i,i],s=r[0],n=r[1],a=this.state,h=a.direction,l=a.original,p=this.props,u=p.lockAspectRatio,d=p.lockAspectRatioExtraHeight,c=p.lockAspectRatioExtraWidth,f=l.width,g=l.height,m=d||0,b=c||0;return v("right",h)&&(f=l.width+(t-l.x)*s/o,u&&(g=(f-b)/this.ratio+m)),v("left",h)&&(f=l.width-(t-l.x)*s/o,u&&(g=(f-b)/this.ratio+m)),v("bottom",h)&&(g=l.height+(e-l.y)*n/o,u&&(f=(g-m)*this.ratio+b)),v("top",h)&&(g=l.height-(e-l.y)*n/o,u&&(f=(g-m)*this.ratio+b)),{newWidth:f,newHeight:g}},e.prototype.calculateNewSizeFromAspectRatio=function(t,e,i,o){var r=this.props,s=r.lockAspectRatio,n=r.lockAspectRatioExtraHeight,a=r.lockAspectRatioExtraWidth,h=void 0===o.width?10:o.width,l=void 0===i.width||i.width<0?t:i.width,p=void 0===o.height?10:o.height,u=void 0===i.height||i.height<0?e:i.height,d=n||0,c=a||0;if(s){var f=(p-d)*this.ratio+c,g=(u-d)*this.ratio+c,m=(h-c)/this.ratio+d,y=(l-c)/this.ratio+d,v=Math.max(p,m),w=Math.min(u,y);t=b(t,Math.max(h,f),Math.min(l,g)),e=b(e,v,w)}else t=b(t,h,l),e=b(e,p,u);return{newWidth:t,newHeight:e}},e.prototype.setBoundingClientRect=function(){var t=1/(this.props.scale||1);if("parent"===this.props.bounds){var e=this.parentNode;if(e){var i=e.getBoundingClientRect();this.parentLeft=i.left*t,this.parentTop=i.top*t}}if(this.props.bounds&&"string"!=typeof this.props.bounds){var o=this.props.bounds.getBoundingClientRect();this.targetLeft=o.left*t,this.targetTop=o.top*t}if(this.resizable){var r=this.resizable.getBoundingClientRect(),s=r.left,n=r.top,a=r.right,h=r.bottom;this.resizableLeft=s*t,this.resizableRight=a*t,this.resizableTop=n*t,this.resizableBottom=h*t}},e.prototype.onResizeStart=function(t,e){if(this.resizable&&this.window){var i,o,r=0,s=0;if(t.nativeEvent&&((i=t.nativeEvent).clientX||0===i.clientX)&&(i.clientY||0===i.clientY)?(r=t.nativeEvent.clientX,s=t.nativeEvent.clientY):t.nativeEvent&&w(t.nativeEvent)&&(r=t.nativeEvent.touches[0].clientX,s=t.nativeEvent.touches[0].clientY),!this.props.onResizeStart||!this.resizable||!1!==this.props.onResizeStart(t,e,this.resizable)){this.props.size&&(void 0!==this.props.size.height&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),void 0!==this.props.size.width&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio="number"==typeof this.props.lockAspectRatio?this.props.lockAspectRatio:this.size.width/this.size.height;var n=this.window.getComputedStyle(this.resizable);if("auto"!==n.flexBasis){var a=this.parentNode;if(a){var h=this.window.getComputedStyle(a).flexDirection;this.flexDir=h.startsWith("row")?"row":"column",o=n.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var l={original:{x:r,y:s,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:g(g({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(t.target).cursor||"auto"}),direction:e,flexBasis:o};this.setState(l)}}},e.prototype.onMouseMove=function(t){var e=this;if(this.state.isResizing&&this.resizable&&this.window){if(this.window.TouchEvent&&w(t))try{t.preventDefault(),t.stopPropagation()}catch(t){}var i,o,r,s,n,h,l=this.props,p=l.maxWidth,u=l.maxHeight,d=l.minWidth,c=l.minHeight,f=w(t)?t.touches[0].clientX:t.clientX,g=w(t)?t.touches[0].clientY:t.clientY,m=this.state,b=m.direction,v=m.original,x=m.width,D=m.height,P=this.getParentSize(),R=(i=this.window.innerWidth,o=this.window.innerHeight,r=p,s=u,n=d,h=c,r=z(r,P.width,i,o),s=z(s,P.height,i,o),n=z(n,P.width,i,o),h=z(h,P.height,i,o),{maxWidth:void 0===r?void 0:Number(r),maxHeight:void 0===s?void 0:Number(s),minWidth:void 0===n?void 0:Number(n),minHeight:void 0===h?void 0:Number(h)});p=R.maxWidth,u=R.maxHeight,d=R.minWidth,c=R.minHeight;var M=this.calculateNewSizeFromDirection(f,g),W=M.newHeight,E=M.newWidth,O=this.calculateNewMaxFromBoundary(p,u);this.props.snap&&this.props.snap.x&&(E=S(E,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(W=S(W,this.props.snap.y,this.props.snapGap));var N=this.calculateNewSizeFromAspectRatio(E,W,{width:O.maxWidth,height:O.maxHeight},{width:d,height:c});if(E=N.newWidth,W=N.newHeight,this.props.grid){var C=y(E,this.props.grid[0],this.props.gridGap?this.props.gridGap[0]:0),H=y(W,this.props.grid[1],this.props.gridGap?this.props.gridGap[1]:0),k=this.props.snapGap||0,T=0===k||Math.abs(C-E)<=k?C:E,j=0===k||Math.abs(H-W)<=k?H:W;E=T,W=j}var A={width:E-v.width,height:W-v.height};if(this.delta=A,x&&"string"==typeof x){if(x.endsWith("%")){var L=E/P.width*100;E="".concat(L,"%")}else if(x.endsWith("vw")){var _=E/this.window.innerWidth*100;E="".concat(_,"vw")}else if(x.endsWith("vh")){var B=E/this.window.innerHeight*100;E="".concat(B,"vh")}}if(D&&"string"==typeof D){if(D.endsWith("%")){var L=W/P.height*100;W="".concat(L,"%")}else if(D.endsWith("vw")){var _=W/this.window.innerWidth*100;W="".concat(_,"vw")}else if(D.endsWith("vh")){var B=W/this.window.innerHeight*100;W="".concat(B,"vh")}}var X={width:this.createSizeForCssProperty(E,"width"),height:this.createSizeForCssProperty(W,"height")};"row"===this.flexDir?X.flexBasis=X.width:"column"===this.flexDir&&(X.flexBasis=X.height);var F=this.state.width!==X.width,Y=this.state.height!==X.height,U=this.state.flexBasis!==X.flexBasis,G=F||Y||U;G&&(0,a.flushSync)(function(){e.setState(X)}),this.props.onResize&&G&&this.props.onResize(t,b,this.resizable,A)}},e.prototype.onMouseUp=function(t){var e,i,o=this.state,r=o.isResizing,s=o.direction;o.original,r&&this.resizable&&(this.props.onResizeStop&&this.props.onResizeStop(t,s,this.resizable,this.delta),this.props.size&&this.setState({width:null!=(e=this.props.size.width)?e:"auto",height:null!=(i=this.props.size.height)?i:"auto"}),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:g(g({},this.state.backgroundStyle),{cursor:"auto"})}))},e.prototype.updateSize=function(t){var e,i;this.setState({width:null!=(e=t.width)?e:"auto",height:null!=(i=t.height)?i:"auto"})},e.prototype.renderResizer=function(){var t=this,e=this.props,i=e.enable,o=e.handleStyles,r=e.handleClasses,s=e.handleWrapperStyle,a=e.handleWrapperClass,h=e.handleComponent;if(!i)return null;var l=Object.keys(i).map(function(e){return!1!==i[e]?(0,n.jsx)(c,{direction:e,onResizeStart:t.onResizeStart,replaceStyles:o&&o[e],className:r&&r[e],children:h&&h[e]?h[e]:null},e):null});return(0,n.jsx)("div",{className:a,style:s,children:l})},e.prototype.render=function(){var t=this,e=Object.keys(this.props).reduce(function(e,i){return -1!==D.indexOf(i)||(e[i]=t.props[i]),e},{}),i=g(g(g({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(i.flexBasis=this.state.flexBasis);var o=this.props.as||"div";return(0,n.jsxs)(o,g({style:i,className:this.props.className},e,{ref:function(e){e&&(t.resizable=e)},children:[this.state.isResizing&&(0,n.jsx)("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer()]}))},e.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{}
1,grid:[1,1],gridGap:[0,0],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},e}(o.PureComponent),M=function(t,e){return(M=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},W=function(){return(W=Object.assign||function(t){for(var e,i=1,o=arguments.length;i<o;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},E={width:"auto",height:"auto",display:"inline-block",position:"absolute",top:0,left:0},O=function(t){function e(){this.constructor=i}function i(e){var i=t.call(this,e)||this;return i.resizingPosition={x:0,y:0},i.offsetFromParent={left:0,top:0},i.resizableElement={current:null},i.originalPosition={x:0,y:0},i.state={resizing:!1,bounds:{top:0,right:0,bottom:0,left:0},maxWidth:e.maxWidth,maxHeight:e.maxHeight},i.onResizeStart=i.onResizeStart.bind(i),i.onResize=i.onResize.bind(i),i.onResizeStop=i.onResizeStop.bind(i),i.onDragStart=i.onDragStart.bind(i),i.onDrag=i.onDrag.bind(i),i.onDragStop=i.onDragStop.bind(i),i.getMaxSizesFromProps=i.getMaxSizesFromProps.bind(i),i}return M(i,t),i.prototype=null===t?Object.create(t):(e.prototype=t.prototype,new e),i.prototype.componentDidMount=function(){this.updateOffsetFromParent();var t=this.offsetFromParent,e=t.left,i=t.top,o=this.getDraggablePosition(),r=o.x,s=o.y;this.draggable.setState({x:r-e,y:s-i}),this.forceUpdate()},i.prototype.getDraggablePosition=function(){var t=this.draggable.state;return{x:t.x,y:t.y}},i.prototype.getParent=function(){return this.resizable&&this.resizable.parentNode},i.prototype.getParentSize=function(){return this.resizable.getParentSize()},i.prototype.getMaxSizesFromProps=function(){return{maxWidth:void 0===this.props.maxWidth?Number.MAX_SAFE_INTEGER:this.props.maxWidth,maxHeight:void 0===this.props.maxHeight?Number.MAX_SAFE_INTEGER:this.props.maxHeight}},i.prototype.getSelfElement=function(){return this.resizable&&this.resizable.resizable},i.prototype.getOffsetHeight=function(t){var e=this.props.scale;switch(this.props.bounds){case"window":return window.innerHeight/e;case"body":return document.body.offsetHeight/e;default:return t.offsetHeight}},i.prototype.getOffsetWidth=function(t){var e=this.props.scale;switch(this.props.bounds){case"window":return window.innerWidth/e;case"body":return document.body.offsetWidth/e;default:return t.offsetWidth}},i.prototype.onDragStart=function(t,e){this.props.onDragStart&&this.props.onDragStart(t,e);var i,o=this.getDraggablePosition();if(this.originalPosition=o,this.props.bounds){var r=this.getParent(),s=this.props.scale;if("parent"===this.props.bounds)i=r;else if("body"===this.props.bounds){var n=r.getBoundingClientRect(),a=n.left,h=n.top,l=document.body.getBoundingClientRect(),p=-(a-r.offsetLeft*s-l.left)/s,u=-(h-r.offsetTop*s-l.top)/s,d=(document.body.offsetWidth-this.resizable.size.width*s)/s+p,c=(document.body.offsetHeight-this.resizable.size.height*s)/s+u;return this.setState({bounds:{top:u,right:d,bottom:c,left:p}})}else if("window"===this.props.bounds){if(!this.resizable)return;var f=r.getBoundingClientRect(),g=f.left,m=f.top,b=-(g-r.offsetLeft*s)/s,y=-(m-r.offsetTop*s)/s,d=(window.innerWidth-this.resizable.size.width*s)/s+b,c=(window.innerHeight-this.resizable.size.height*s)/s+y;return this.setState({bounds:{top:y,right:d,bottom:c,left:b}})}else"string"==typeof this.props.bounds?i=document.querySelector(this.props.bounds):this.props.bounds instanceof HTMLElement&&(i=this.props.bounds);if(i instanceof HTMLElement&&r instanceof HTMLElement){var v=i.getBoundingClientRect(),w=v.left,S=v.top,x=r.getBoundingClientRect(),z=x.left,D=x.top,P=(w-z)/s,R=S-D;if(this.resizable){this.updateOffsetFromParent();var M=this.offsetFromParent;this.setState({bounds:{top:R-M.top,right:P+(i.offsetWidth-this.resizable.size.width)-M.left/s,bottom:R+(i.offsetHeight-this.resizable.size.height)-M.top,left:P-M.left/s}})}}}},i.prototype.onDrag=function(t,e){if(this.props.onDrag){var i=this.offsetFromParent,o=i.left,r=i.top;if(!this.props.dragAxis||"both"===this.props.dragAxis)return this.props.onDrag(t,W(W({},e),{x:e.x+o,y:e.y+r}));if("x"===this.props.dragAxis)return this.props.onDrag(t,W(W({},e),{x:e.x+o,y:this.originalPosition.y+r,deltaY:0}));if("y"===this.props.dragAxis)return this.props.onDrag(t,W(W({},e),{x:this.originalPosition.x+o,y:e.y+r,deltaX:0}))}},i.prototype.onDragStop=function(t,e){if(this.props.onDragStop){var i=this.offsetFromParent,o=i.left,r=i.top;if(!this.props.dragAxis||"both"===this.props.dragAxis)return this.props.onDragStop(t,W(W({},e),{x:e.x+o,y:e.y+r}));if("x"===this.props.dragAxis)return this.props.onDragStop(t,W(W({},e),{x:e.x+o,y:this.originalPosition.y+r,deltaY:0}));if("y"===this.props.dragAxis)return this.props.onDragStop(t,W(W({},e),{x:this.originalPosition.x+o,y:e.y+r,deltaX:0}))}}
vendor: 2,200 bytes, line 1
1,i.prototype.onResizeStart=function(t,e,i){t.stopPropagation(),this.setState({resizing:!0});var o=this.props.scale,r=this.offsetFromParent,s=this.getDraggablePosition();if(this.resizingPosition={x:s.x+r.left,y:s.y+r.top},this.originalPosition=s,this.props.bounds){var n=this.getParent(),a=void 0;"parent"===this.props.bounds?a=n:"body"===this.props.bounds?a=document.body:"window"===this.props.bounds?a=window:"string"==typeof this.props.bounds?a=document.querySelector(this.props.bounds):this.props.bounds instanceof HTMLElement&&(a=this.props.bounds);var h=this.getSelfElement();if(h instanceof Element&&(a instanceof HTMLElement||a===window)&&n instanceof HTMLElement){var l=this.getMaxSizesFromProps(),p=l.maxWidth,u=l.maxHeight,d=this.getParentSize();if(p&&"string"==typeof p)if(p.endsWith("%")){var c=Number(p.replace("%",""))/100;p=d.width*c}else p.endsWith("px")&&(p=Number(p.replace("px","")));if(u&&"string"==typeof u)if(u.endsWith("%")){var c=Number(u.replace("%",""))/100;u=d.height*c}else u.endsWith("px")&&(u=Number(u.replace("px","")));var f=h.getBoundingClientRect(),g=f.left,m=f.top,b="window"===this.props.bounds?{left:0,top:0}:a.getBoundingClientRect(),y=b.left,v=b.top,w=this.getOffsetWidth(a),S=this.getOffsetHeight(a),x=e.toLowerCase().endsWith("left"),z=e.toLowerCase().endsWith("right"),D=e.startsWith("top"),P=e.startsWith("bottom");if((x||D)&&this.resizable){var R=(g-y)/o+this.resizable.size.width;this.setState({maxWidth:R>Number(p)?p:R})}if(z||this.props.lockAspectRatio&&!x&&!D){var R=w+(y-g)/o;this.setState({maxWidth:R>Number(p)?p:R})}if((D||x)&&this.resizable){var R=(m-v)/o+this.resizable.size.height;this.setState({maxHeight:R>Number(u)?u:R})}if(P||this.props.lockAspectRatio&&!D&&!x){var R=S+(v-m)/o;this.setState({maxHeight:R>Number(u)?u:R})}}}else this.setState({maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight});this.props.onResizeStart&&this.props.onResizeStart(t,e,i)},i.prototype.onResize=function(t,e,i,o){var r=this,s={x:this.originalPosition.x,y:this.originalPosition.y},n=-o.width,h=-o.height;["top","left","topLeft","bottomLeft","topRight"].includes(e)&&("bottomLeft"===e?s.x+=n:("topRight"===e||(s.x+=n),s.y+=h));var l=this.draggable.state;
1(s.x!==l.x||s.y!==l.y)&&(0,a.flushSync)(function(){r.draggable.setState(s)}),this.updateOffsetFromParent();var p=this.offsetFromParent,u=this.getDraggablePosition().x+p.left,d=this.getDraggablePosition().y+p.top;this.resizingPosition={x:u,y:d},this.props.onResize&&this.props.onResize(t,e,i,o,{x:u,y:d})},i.prototype.onResizeStop=function(t,e,i,o){this.setState({resizing:!1});var r=this.getMaxSizesFromProps(),s=r.maxWidth,n=r.maxHeight;this.setState({maxWidth:s,maxHeight:n}),this.props.onResizeStop&&this.props.onResizeStop(t,e,i,o,this.resizingPosition)},i.prototype.updateSize=function(t){this.resizable&&this.resizable.updateSize({width:t.width,height:t.height})},i.prototype.updatePosition=function(t){this.draggable.setState(t)},i.prototype.updateOffsetFromParent=function(){var t=this.props.scale,e=this.getParent(),i=this.getSelfElement();if(!e||null===i)return{top:0,left:0};var o=e.getBoundingClientRect(),r=o.left,s=o.top,n=i.getBoundingClientRect(),a=this.getDraggablePosition(),h=e.scrollLeft,l=e.scrollTop;this.offsetFromParent={left:n.left-r+h-a.x*t,top:n.top-s+l-a.y*t}},i.prototype.render=function(){var t,e=this,i=this.props,r=i.disableDragging,n=i.style,a=i.dragHandleClassName,h=i.position,l=i.onMouseDown,p=i.onMouseUp,u=i.dragAxis,d=i.dragGrid,c=i.bounds,f=i.enableUserSelectHack,g=i.cancel,m=i.children,b=(i.onResizeStart,i.onResize,i.onResizeStop,i.onDragStart,i.onDrag,i.onDragStop,i.resizeHandleStyles),y=i.resizeHandleClasses,v=i.resizeHandleComponent,w=i.enableResizing,S=i.resizeGrid,x=i.resizeHandleWrapperClass,z=i.resizeHandleWrapperStyle,D=i.scale,P=i.allowAnyClick,M=i.dragPositionOffset,O=function(t,e){var i={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&0>e.indexOf(o)&&(i[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,o=Object.getOwnPropertySymbols(t);r<o.length;r++)0>e.indexOf(o[r])&&Object.prototype.propertyIsEnumerable.call(t,o[r])&&(i[o[r]]=t[o[r]]);return i}(i,["disableDragging","style","dragHandleClassName","position","onMouseDown","onMouseUp","dragAxis","dragGrid","bounds","enableUserSelectHack","cancel","children","onResizeStart","onResize","onResizeStop","onDragStart","onDrag","onDragStop","resizeHandleStyles","resizeHandleClasses","resizeHandleComponent","enableResizing","resizeGrid","resizeHandleWrapperClass","resizeHandleWrapperStyle","scale","allowAnyClick","dragPositionOffset"]),N=this.props.default?W({},this.props.default):void 0;delete O.default;var C=W(W(W({},E),r||a?{cursor:"auto"}:{cursor:"move"}),n),H=this.offsetFromParent,k=H.left,T=H.top;h&&(t={x:h.x-k,y:h.y-T});var j=this.state.resizing?void 0:t,A=this.state.resizing?"both":u;return(0,o.createElement)(s(),{ref:function(t){t&&(e.draggable=t)},handle:a?".".concat(a):void 0,defaultPosition:N,onMouseDown:l,onMouseUp:p,onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop,axis:A,disabled:r,grid:d,bounds:c?this.state.bounds:void 0,position:j,enableUserSelectHack:f,cancel:g,scale:D,allowAnyClick:P,nodeRef:this.resizableElement,positionOffset:M},(0,o.createElement)(R,W({},O,{ref:function(t){t&&(e.resizable=t,e.resizableElement.current=t.resizable)},defaultSize:N,size:this.props.size,enable:"boolean"==typeof w?{bottom:w,bottomLeft:w,bottomRight:w,left:w,right:w,top:w,topLeft:w,topRight:w}:w,onResizeStart:this.onResizeStart,onResize:this.onResize,onResizeStop:this.onResizeStop,style:C,minWidth:this.props.minWidth,minHeight:this.props.minHeight,maxWidth:this.state.resizing?this.state.maxWidth:this.props.maxWidth,maxHeight:this.state.resizing?this.state.maxHeight:this.props.maxHeight,grid:S,handleWrapperClass:x,handleWrapperStyle:z,lockAspectRatio:this.props.lockAspectRatio,lockAspectRatioExtraWidth:this.props.lockAspectRatioExtraWidth,lockAspectRatioExtraHeight:this.props.lockAspectRatioExtraHeight,handleStyles:b,handleClasses:y,handleComponent:v,scale:this.props.scale}),m))},i.defaultProps={maxWidth:Number.MAX_SAFE_INTEGER,maxHeight:Number.MAX_SAFE_INTEGER,scale:1,onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},onDragStart:function(){},onDrag:function(){},onDragStop:function(){}},i}
1(o.PureComponent)},34328:(t,e,i)=>{"use strict";let{default:o,DraggableCore:r}=i(35569);t.exports=o,t.exports.default=o,t.exports.DraggableCore=r},35569:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return p.default}}),e.default=void 0;var o=function(t,e){if(t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var i=c(e);if(i&&i.has(t))return i.get(t);var o={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if("default"!==s&&Object.prototype.hasOwnProperty.call(t,s)){var n=r?Object.getOwnPropertyDescriptor(t,s):null;n&&(n.get||n.set)?Object.defineProperty(o,s,n):o[s]=t[s]}return o.default=t,i&&i.set(t,o),o}(i(12115)),r=d(i(12758)),s=d(i(47650)),n=d(i(75993)),a=i(63757),h=i(53168),l=i(60838),p=d(i(70654)),u=d(i(41330));function d(t){return t&&t.__esModule?t:{default:t}}function c(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,i=new WeakMap;return(c=function(t){return t?i:e})(t)}function f(){return(f=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])}return t}).apply(this,arguments)}function g(t,e,i){var o;return(e="symbol"==typeof(o=function(t,e){if("object"!=typeof t||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var o=i.call(t,e||"default");if("object"!=typeof o)return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"))?o:String(o))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}class m extends o.Component{static getDerivedStateFromProps(t,e){let{position:i}=t,{prevPropsPosition:o}=e;return i&&(!o||i.x!==o.x||i.y!==o.y)?((0,u.default)("Draggable: getDerivedStateFromProps %j",{position:i,prevPropsPosition:o}),{x:i.x,y:i.y,prevPropsPosition:{...i}}):null}constructor(t){super(t),g(this,"onDragStart",(t,e)=>{if((0,u.default)("Draggable: onDragStart: %j",e),!1===this.props.onStart(t,(0,h.createDraggableData)(this,e)))return!1;this.setState({dragging:!0,dragged:!0})}),g(this,"onDrag",(t,e)=>{if(!this.state.dragging)return!1;(0,u.default)("Draggable: onDrag: %j",e);let i=(0,h.createDraggableData)(this,e),o={x:i.x,y:i.y,slackX:0,slackY:0};if(this.props.bounds){let{x:t,y:e}=o;o.x+=this.state.slackX,o.y+=this.state.slackY;let[r,s]=(0,h.getBoundPosition)(this,o.x,o.y);o.x=r,o.y=s,o.slackX=this.state.slackX+(t-o.x),o.slackY=this.state.slackY+(e-o.y),i.x=o.x,i.y=o.y,i.deltaX=o.x-this.state.x,i.deltaY=o.y-this.state.y}if(!1===this.props.onDrag(t,i))return!1;this.setState(o)}),g(this,"onDragStop",(t,e)=>{if(!this.state.dragging||!1===this.props.onStop(t,(0,h.createDraggableData)(this,e)))return!1;(0,u.default)("Draggable: onDragStop: %j",e);let i={dragging:!1,slackX:0,slackY:0};if(this.props.position){let{x:t,y:e}=this.props.position;i.x=t,i.y=e}this.setState(i)}),this.state={dragging:!1,dragged:!1,x:t.position?t.position.x:t.defaultPosition.x,y:t.position?t.position.y:t.defaultPosition.y,prevPropsPosition:{...t.position},slackX:0,slackY:0,isElementSVG:!1},t.position&&!(t.onDrag||t.onStop)&&console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){void 0!==window.SVGElement&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var t,e;return null!=(t=null==(e=this.props)||null==(e=e.nodeRef)?void 0:e.current)?t:s.default.findDOMNode(this)}render(){let{axis:t,bounds:e,children:i,defaultPosition:r,defaultClassName:s,defaultClassNameDragging:l,defaultClassNameDragged:u,position:d,positionOffset:c,scale:g,...m}=this.props,b={},y=null,v=!d||this.state.dragging,w=d||r,S={x:(0,h.canDragX)(this)&&v?this.state.x:w.x,y:(0,h.canDragY)(this)&&v?this.state.y:w.y};this.state.isElementSVG?y=(0,a.createSVGTransform)(S,c):b=(0,a.createCSSTransform)(S,c);let x=(0,n.default)(i.props.className||"",s,{[l]:this.state.dragging,[u]:this.state.dragged});return o.createElement(p.default,f({},m,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),o.cloneElement(o.Children.only(i),{className:x,style:{...i.props.style,...b},transform:y}))}}e.default=m,g(m,"displayName","Draggable"),g(m,"propTypes",{...p.default.propT
1ypes,axis:r.default.oneOf(["both","x","y","none"]),bounds:r.default.oneOfType([r.default.shape({left:r.default.number,right:r.default.number,top:r.default.number,bottom:r.default.number}),r.default.string,r.default.oneOf([!1])]),defaultClassName:r.default.string,defaultClassNameDragging:r.default.string,defaultClassNameDragged:r.default.string,defaultPosition:r.default.shape({x:r.default.number,y:r.default.number}),positionOffset:r.default.shape({x:r.default.oneOfType([r.default.number,r.default.string]),y:r.default.oneOfType([r.default.number,r.default.string])}),position:r.default.shape({x:r.default.number,y:r.default.number}),className:l.dontSetMe,style:l.dontSetMe,transform:l.dontSetMe}),g(m,"defaultProps",{...p.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})},41330:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){}},53168:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.canDragX=function(t){return"both"===t.props.axis||"x"===t.props.axis},e.canDragY=function(t){return"both"===t.props.axis||"y"===t.props.axis},e.createCoreData=function(t,e,i){let r=!(0,o.isNum)(t.lastX),n=s(t);return r?{node:n,deltaX:0,deltaY:0,lastX:e,lastY:i,x:e,y:i}:{node:n,deltaX:e-t.lastX,deltaY:i-t.lastY,lastX:t.lastX,lastY:t.lastY,x:e,y:i}},e.createDraggableData=function(t,e){let i=t.props.scale;return{node:e.node,x:t.state.x+e.deltaX/i,y:t.state.y+e.deltaY/i,deltaX:e.deltaX/i,deltaY:e.deltaY/i,lastX:t.state.x,lastY:t.state.y}},e.getBoundPosition=function(t,e,i){var n;if(!t.props.bounds)return[e,i];let{bounds:a}=t.props;a="string"==typeof a?a:{left:(n=a).left,top:n.top,right:n.right,bottom:n.bottom};let h=s(t);if("string"==typeof a){let t,{ownerDocument:e}=h,i=e.defaultView;if(!((t="parent"===a?h.parentNode:e.querySelector(a))instanceof i.HTMLElement))throw Error('Bounds selector "'+a+'" could not find an element.');let s=i.getComputedStyle(h),n=i.getComputedStyle(t);a={left:-h.offsetLeft+(0,o.int)(n.paddingLeft)+(0,o.int)(s.marginLeft),top:-h.offsetTop+(0,o.int)(n.paddingTop)+(0,o.int)(s.marginTop),right:(0,r.innerWidth)(t)-(0,r.outerWidth)(h)-h.offsetLeft+(0,o.int)(n.paddingRight)-(0,o.int)(s.marginRight),bottom:(0,r.innerHeight)(t)-(0,r.outerHeight)(h)-h.offsetTop+(0,o.int)(n.paddingBottom)-(0,o.int)(s.marginBottom)}}return(0,o.isNum)(a.right)&&(e=Math.min(e,a.right)),(0,o.isNum)(a.bottom)&&(i=Math.min(i,a.bottom)),(0,o.isNum)(a.left)&&(e=Math.max(e,a.left)),(0,o.isNum)(a.top)&&(i=Math.max(i,a.top)),[e,i]},e.getControlPosition=function(t,e,i){let o="number"==typeof e?(0,r.getTouch)(t,e):null;if("number"==typeof e&&!o)return null;let n=s(i),a=i.props.offsetParent||n.offsetParent||n.ownerDocument.body;return(0,r.offsetXYFromParent)(o||t,a,i.props.scale)},e.snapToGrid=function(t,e,i){return[Math.round(e/t[0])*t[0],Math.round(i/t[1])*t[1]]};var o=i(60838),r=i(63757);function s(t){let e=t.findDOMNode();if(!e)throw Error("<DraggableCore>: Unmounted during event!");return e}},53341:t=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},54291:(t,e,i)=>{"use strict";i.d(e,{A:()=>o});let o=(0,i(71847).A)("AlignCenterVertical",[["path",{d:"M12 2v20",key:"t6zp3m"}],["path",{d:"M8 10H4a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h4",key:"14d6g8"}],["path",{d:"M16 10h4a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-4",key:"1e2lrw"}],["path",{d:"M8 20H7a2 2 0 0 1-2-2v-2c0-1.1.9-2 2-2h1",key:"1fkdwx"}],["path",{d:"M16 14h1a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2h-1",key:"1euafb"}]])},60838:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.dontSetMe=function(t,e,i){if(t[e])return Error("Invalid prop ".concat(e," passed to ").concat(i," - do not set this, set it on the child."))},e.findInArray=function(t,e){for(let i=0,o=t.length;i<o;i++)if(e.apply(e,[t[i],i,t]))return t[i]},e.int=function(t){return parseInt(t,10)},e.isFunction=function(t){return"function"==typeof t||"[object Function]"===Object.prototype.toString.call(t)},e.isNum=function(t){return"number"==typeof t&&!isNaN(t)}},61362:(t,e,i)=>{"use strict";i.d(e,{A:()=>
1o});let o=(0,i(71847).A)("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},63757:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.addClassName=l,e.addEvent=function(t,e,i,o){if(!t)return;let r={capture:!0,...o};t.addEventListener?t.addEventListener(e,i,r):t.attachEvent?t.attachEvent("on"+e,i):t["on"+e]=i},e.addUserSelectStyles=function(t){if(!t)return;let e=t.getElementById("react-draggable-style-el");e||((e=t.createElement("style")).type="text/css",e.id="react-draggable-style-el",e.innerHTML=".react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n",e.innerHTML+=".react-draggable-transparent-selection *::selection {all: inherit;}\n",t.getElementsByTagName("head")[0].appendChild(e)),t.body&&l(t.body,"react-draggable-transparent-selection")},e.createCSSTransform=function(t,e){let i=h(t,e,"px");return{[(0,r.browserPrefixToKey)("transform",r.default)]:i}},e.createSVGTransform=function(t,e){return h(t,e,"")},e.getTouch=function(t,e){return t.targetTouches&&(0,o.findInArray)(t.targetTouches,t=>e===t.identifier)||t.changedTouches&&(0,o.findInArray)(t.changedTouches,t=>e===t.identifier)},e.getTouchIdentifier=function(t){return t.targetTouches&&t.targetTouches[0]?t.targetTouches[0].identifier:t.changedTouches&&t.changedTouches[0]?t.changedTouches[0].identifier:void 0},e.getTranslation=h,e.innerHeight=function(t){let e=t.clientHeight,i=t.ownerDocument.defaultView.getComputedStyle(t);return e-=(0,o.int)(i.paddingTop),e-=(0,o.int)(i.paddingBottom)},e.innerWidth=function(t){let e=t.clientWidth,i=t.ownerDocument.defaultView.getComputedStyle(t);return e-=(0,o.int)(i.paddingLeft),e-=(0,o.int)(i.paddingRight)},e.matchesSelector=a,e.matchesSelectorAndParentsTo=function(t,e,i){let o=t;do{if(a(o,e))return!0;if(o===i)break;o=o.parentNode}while(o);return!1},e.offsetXYFromParent=function(t,e,i){let o=e===e.ownerDocument.body?{left:0,top:0}:e.getBoundingClientRect();return{x:(t.clientX+e.scrollLeft-o.left)/i,y:(t.clientY+e.scrollTop-o.top)/i}},e.outerHeight=function(t){let e=t.clientHeight,i=t.ownerDocument.defaultView.getComputedStyle(t);return e+=(0,o.int)(i.borderTopWidth),e+=(0,o.int)(i.borderBottomWidth)},e.outerWidth=function(t){let e=t.clientWidth,i=t.ownerDocument.defaultView.getComputedStyle(t);return e+=(0,o.int)(i.borderLeftWidth),e+=(0,o.int)(i.borderRightWidth)},e.removeClassName=p,e.removeEvent=function(t,e,i,o){if(!t)return;let r={capture:!0,...o};t.removeEventListener?t.removeEventListener(e,i,r):t.detachEvent?t.detachEvent("on"+e,i):t["on"+e]=null},e.removeUserSelectStyles=function(t){if(t)try{if(t.body&&p(t.body,"react-draggable-transparent-selection"),t.selection)t.selection.empty();else{let e=(t.defaultView||window).getSelection();e&&"Caret"!==e.type&&e.removeAllRanges()}}catch(t){}};var o=i(60838),r=function(t,e){if(t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var i=s(e);if(i&&i.has(t))return i.get(t);var o={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in t)if("default"!==n&&Object.prototype.hasOwnProperty.call(t,n)){var a=r?Object.getOwnPropertyDescriptor(t,n):null;a&&(a.get||a.set)?Object.defineProperty(o,n,a):o[n]=t[n]}return o.default=t,i&&i.set(t,o),o}(i(84320));function s(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,i=new WeakMap;return(s=function(t){return t?i:e})(t)}let n="";function a(t,e){return n||(n=(0,o.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(e){return(0,o.isFunction)(t[e])})),!!(0,o.isFunction)(t[n])&&t[n](e)}function h(t,e,i){let{x:o,y:r}=t,s="translate(".concat(o).concat(i,",").concat(r).concat(i,")");if(e){let t="".concat("string"==typeof e.x?e.x:e.x+i),o="".concat("string"==typeof e.y?e.y:e.y+i);s="translate(".concat(t,", ").concat(o,")")+s}return s}function l(t,e){t.classList?t.classList.add(e):t.className.match(new RegExp("(?:^|\\s)".concat(e,"(?!\\S)")))||(t.className+=" ".concat(e))}function p(t,e){t.classList?t.classList.remove(e):t.className=t.className.replace(RegExp("(?:^|\\s)".concat(e,"(?!\\S)"),"g"),"")}},70654:(t,e,i)=>{"use strict";
1Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=function(t,e){if(t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var i=u(e);if(i&&i.has(t))return i.get(t);var o={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if("default"!==s&&Object.prototype.hasOwnProperty.call(t,s)){var n=r?Object.getOwnPropertyDescriptor(t,s):null;n&&(n.get||n.set)?Object.defineProperty(o,s,n):o[s]=t[s]}return o.default=t,i&&i.set(t,o),o}(i(12115)),r=p(i(12758)),s=p(i(47650)),n=i(63757),a=i(53168),h=i(60838),l=p(i(41330));function p(t){return t&&t.__esModule?t:{default:t}}function u(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,i=new WeakMap;return(u=function(t){return t?i:e})(t)}function d(t,e,i){var o;return(e="symbol"==typeof(o=function(t,e){if("object"!=typeof t||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var o=i.call(t,e||"default");if("object"!=typeof o)return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"))?o:String(o))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}let c={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}},f=c.mouse;class g extends o.Component{constructor(){super(...arguments),d(this,"dragging",!1),d(this,"lastX",NaN),d(this,"lastY",NaN),d(this,"touchIdentifier",null),d(this,"mounted",!1),d(this,"handleDragStart",t=>{if(this.props.onMouseDown(t),!this.props.allowAnyClick&&"number"==typeof t.button&&0!==t.button)return!1;let e=this.findDOMNode();if(!e||!e.ownerDocument||!e.ownerDocument.body)throw Error("<DraggableCore> not mounted on DragStart!");let{ownerDocument:i}=e;if(this.props.disabled||!(t.target instanceof i.defaultView.Node)||this.props.handle&&!(0,n.matchesSelectorAndParentsTo)(t.target,this.props.handle,e)||this.props.cancel&&(0,n.matchesSelectorAndParentsTo)(t.target,this.props.cancel,e))return;"touchstart"===t.type&&t.preventDefault();let o=(0,n.getTouchIdentifier)(t);this.touchIdentifier=o;let r=(0,a.getControlPosition)(t,o,this);if(null==r)return;let{x:s,y:h}=r,p=(0,a.createCoreData)(this,s,h);(0,l.default)("DraggableCore: handleDragStart: %j",p),(0,l.default)("calling",this.props.onStart),!1!==this.props.onStart(t,p)&&!1!==this.mounted&&(this.props.enableUserSelectHack&&(0,n.addUserSelectStyles)(i),this.dragging=!0,this.lastX=s,this.lastY=h,(0,n.addEvent)(i,f.move,this.handleDrag),(0,n.addEvent)(i,f.stop,this.handleDragStop))}),d(this,"handleDrag",t=>{let e=(0,a.getControlPosition)(t,this.touchIdentifier,this);if(null==e)return;let{x:i,y:o}=e;if(Array.isArray(this.props.grid)){let t=i-this.lastX,e=o-this.lastY;
1if([t,e]=(0,a.snapToGrid)(this.props.grid,t,e),!t&&!e)return;i=this.lastX+t,o=this.lastY+e}let r=(0,a.createCoreData)(this,i,o);if((0,l.default)("DraggableCore: handleDrag: %j",r),!1===this.props.onDrag(t,r)||!1===this.mounted){try{this.handleDragStop(new MouseEvent("mouseup"))}catch(e){let t=document.createEvent("MouseEvents");t.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(t)}return}this.lastX=i,this.lastY=o}),d(this,"handleDragStop",t=>{if(!this.dragging)return;let e=(0,a.getControlPosition)(t,this.touchIdentifier,this);if(null==e)return;let{x:i,y:o}=e;if(Array.isArray(this.props.grid)){let t=i-this.lastX||0,e=o-this.lastY||0;[t,e]=(0,a.snapToGrid)(this.props.grid,t,e),i=this.lastX+t,o=this.lastY+e}let r=(0,a.createCoreData)(this,i,o);if(!1===this.props.onStop(t,r)||!1===this.mounted)return!1;let s=this.findDOMNode();s&&this.props.enableUserSelectHack&&(0,n.removeUserSelectStyles)(s.ownerDocument),(0,l.default)("DraggableCore: handleDragStop: %j",r),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,s&&((0,l.default)("DraggableCore: Removing handlers"),(0,n.removeEvent)(s.ownerDocument,f.move,this.handleDrag),(0,n.removeEvent)(s.ownerDocument,f.stop,this.handleDragStop))}),d(this,"onMouseDown",t=>(f=c.mouse,this.handleDragStart(t))),d(this,"onMouseUp",t=>(f=c.mouse,this.handleDragStop(t))),d(this,"onTouchStart",t=>(f=c.touch,this.handleDragStart(t))),d(this,"onTouchEnd",t=>(f=c.touch,this.handleDragStop(t)))}componentDidMount(){this.mounted=!0;let t=this.findDOMNode();t&&(0,n.addEvent)(t,c.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;let t=this.findDOMNode();if(t){let{ownerDocument:e}=t;(0,n.removeEvent)(e,c.mouse.move,this.handleDrag),(0,n.removeEvent)(e,c.touch.move,this.handleDrag),(0,n.removeEvent)(e,c.mouse.stop,this.handleDragStop),(0,n.removeEvent)(e,c.touch.stop,this.handleDragStop),(0,n.removeEvent)(t,c.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,n.removeUserSelectStyles)(e)}}findDOMNode(){var t,e;return null!=(t=this.props)&&t.nodeRef?null==(e=this.props)||null==(e=e.nodeRef)?void 0:e.current:s.default.findDOMNode(this)}render(){return o.cloneElement(o.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}e.default=g,d(g,"displayName","DraggableCore"),d(g,"propTypes",{allowAnyClick:r.default.bool,children:r.default.node.isRequired,disabled:r.default.bool,enableUserSelectHack:r.default.bool,offsetParent:function(t,e){if(t[e]&&1!==t[e].nodeType)throw Error("Draggable's offsetParent must be a DOM Node.")},grid:r.default.arrayOf(r.default.number),handle:r.default.string,cancel:r.default.string,nodeRef:r.default.object,onStart:r.default.func,onDrag:r.default.func,onStop:r.default.func,onMouseDown:r.default.func,scale:r.default.number,className:h.dontSetMe,style:h.dontSetMe,transform:h.dontSetMe}),d(g,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1})},75993:(t,e,i)=>{"use strict";function o(){for(var t,e,i=0,o="";i<arguments.length;)(t=arguments[i++])&&(e=function t(e){var i,o,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(i=0;i<e.length;i++)e[i]&&(o=t(e[i]))&&(r&&(r+=" "),r+=o);else for(i in e)e[i]&&(r&&(r+=" "),r+=i);return r}(t))&&(o&&(o+=" "),o+=e);return o}i.r(e),i.d(e,{clsx:()=>o,default:()=>r});let r=o},84320:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.browserPrefixToKey=r,e.browserPrefixToStyle=function(t,e){return e?"-".concat(e.toLowerCase(),"-").concat(t):t},e.default=void 0,e.getPrefix=o;let i=["Moz","Webkit","O","ms"];function o(){var t;let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";if("undefined"==typeof window)return"";let o=null==(t=window.document)||null==(t=t.documentElement)?void 0:t.style;if(!o||e in o)return"";for(let t=0;t<i.length;t++)if(r(e,i[t])in o)return i[t];return""}function r(t,e){return e?"".concat(e).concat(function(t){let e="",i=!0;for(let o=0;o<t.length;o++)i?(e+=t[o].toUpperCase(),i=!1):"-"===t[o]?i=!0:e+=t[o];return e}(t)):t}e.default=o()}}]);
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.