hlyc-web-pack 3.5.64 → 3.5.65
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.js
CHANGED
|
@@ -16,4 +16,4 @@
|
|
|
16
16
|
object-assign
|
|
17
17
|
(c) Sindre Sorhus
|
|
18
18
|
@license MIT
|
|
19
|
-
*/function uI(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}var dI=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var a={};return"abcdefghijklmnopqrst".split("").forEach((function(t){a[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},a)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var n,a,r=uI(t),o=1;o<arguments.length;o++){for(var i in n=Object(arguments[o]))cI.call(n,i)&&(r[i]=n[i]);if(lI){a=lI(n);for(var l=0;l<a.length;l++)sI.call(n,a[l])&&(r[a[l]]=n[a[l]])}}return r},pI="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",fI=function(){};if("production"!==process.env.NODE_ENV){var mI=pI,hI={},gI=Function.call.bind(Object.prototype.hasOwnProperty);fI=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}}}function bI(t,e,n,a,r){if("production"!==process.env.NODE_ENV)for(var o in t)if(gI(t,o)){var i;try{if("function"!=typeof t[o]){var l=Error((a||"React class")+": "+n+" type `"+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[o]+"`.");throw l.name="Invariant Violation",l}i=t[o](e,o,a,n,null,mI)}catch(t){i=t}if(!i||i instanceof Error||fI((a||"React class")+": type specification of "+n+" `"+o+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof i+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),i instanceof Error&&!(i.message in hI)){hI[i.message]=!0;var c=r?r():"";fI("Failed "+n+" type: "+i.message+(null!=c?c:""))}}}bI.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(hI={})};var vI=bI,yI=Function.call.bind(Object.prototype.hasOwnProperty),xI=function(){};function wI(){return null}"production"!==process.env.NODE_ENV&&(xI=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}});var kI=function(t,e){var n="function"==typeof Symbol&&Symbol.iterator;var a="<<anonymous>>",r={array:c("array"),bool:c("boolean"),func:c("function"),number:c("number"),object:c("object"),string:c("string"),symbol:c("symbol"),any:l(wI),arrayOf:function(t){return l((function(e,n,a,r,o){if("function"!=typeof t)return new i("Property `"+o+"` of component `"+a+"` has invalid PropType notation inside arrayOf.");var l=e[n];if(!Array.isArray(l))return new i("Invalid "+r+" `"+o+"` of type `"+u(l)+"` supplied to `"+a+"`, expected an array.");for(var c=0;c<l.length;c++){var s=t(l,c,a,r,o+"["+c+"]",pI);if(s instanceof Error)return s}return null}))},element:l((function(e,n,a,r,o){var l=e[n];return t(l)?null:new i("Invalid "+r+" `"+o+"` of type `"+u(l)+"` supplied to `"+a+"`, expected a single ReactElement.")})),elementType:l((function(t,e,n,a,r){var o=t[e];return lt.isValidElementType(o)?null:new i("Invalid "+a+" `"+r+"` of type `"+u(o)+"` supplied to `"+n+"`, expected a single ReactElement type.")})),instanceOf:function(t){return l((function(e,n,r,o,l){if(!(e[n]instanceof t)){var c=t.name||a;return new i("Invalid "+o+" `"+l+"` of type `"+(((s=e[n]).constructor&&s.constructor.name?s.constructor.name:a)+"` supplied to `")+r+"`, expected instance of `"+c+"`.")}var s;return null}))},node:l((function(t,e,n,a,r){return s(t[e])?null:new i("Invalid "+a+" `"+r+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(t){return l((function(e,n,a,r,o){if("function"!=typeof t)return new i("Property `"+o+"` of component `"+a+"` has invalid PropType notation inside objectOf.");var l=e[n],c=u(l);if("object"!==c)return new i("Invalid "+r+" `"+o+"` of type `"+c+"` supplied to `"+a+"`, expected an object.");for(var s in l)if(yI(l,s)){var d=t(l,s,a,r,o+"."+s,pI);if(d instanceof Error)return d}return null}))},oneOf:function(t){if(!Array.isArray(t))return"production"!==process.env.NODE_ENV&&xI(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),wI;function e(e,n,a,r,l){for(var c=e[n],s=0;s<t.length;s++)if(o(c,t[s]))return null;var u=JSON.stringify(t,(function(t,e){return"symbol"===d(e)?String(e):e}));return new i("Invalid "+r+" `"+l+"` of value `"+String(c)+"` supplied to `"+a+"`, expected one of "+u+".")}return l(e)},oneOfType:function(t){if(!Array.isArray(t))return"production"!==process.env.NODE_ENV&&xI("Invalid argument supplied to oneOfType, expected an instance of array."),wI;for(var e=0;e<t.length;e++){var n=t[e];if("function"!=typeof n)return xI("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+p(n)+" at index "+e+"."),wI}return l((function(e,n,a,r,o){for(var l=0;l<t.length;l++)if(null==(0,t[l])(e,n,a,r,o,pI))return null;return new i("Invalid "+r+" `"+o+"` supplied to `"+a+"`.")}))},shape:function(t){return l((function(e,n,a,r,o){var l=e[n],c=u(l);if("object"!==c)return new i("Invalid "+r+" `"+o+"` of type `"+c+"` supplied to `"+a+"`, expected `object`.");for(var s in t){var d=t[s];if(d){var p=d(l,s,a,r,o+"."+s,pI);if(p)return p}}return null}))},exact:function(t){return l((function(e,n,a,r,o){var l=e[n],c=u(l);if("object"!==c)return new i("Invalid "+r+" `"+o+"` of type `"+c+"` supplied to `"+a+"`, expected `object`.");var s=dI({},e[n],t);for(var d in s){var p=t[d];if(!p)return new i("Invalid "+r+" `"+o+"` key `"+d+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(e[n],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(t),null," "));var f=p(l,d,a,r,o+"."+d,pI);if(f)return f}return null}))}};function o(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function i(t){this.message=t,this.stack=""}function l(t){if("production"!==process.env.NODE_ENV)var n={},r=0;function o(o,l,c,s,u,d,p){if(s=s||a,d=d||c,p!==pI){if(e){var f=new 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 f.name="Invariant Violation",f}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var m=s+":"+c;!n[m]&&r<3&&(xI("You are manually calling a React.PropTypes validation function for the `"+d+"` prop on `"+s+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),n[m]=!0,r++)}}return null==l[c]?o?null===l[c]?new i("The "+u+" `"+d+"` is marked as required in `"+s+"`, but its value is `null`."):new i("The "+u+" `"+d+"` is marked as required in `"+s+"`, but its value is `undefined`."):null:t(l,c,s,u,d)}var l=o.bind(null,!1);return l.isRequired=o.bind(null,!0),l}function c(t){return l((function(e,n,a,r,o,l){var c=e[n];return u(c)!==t?new i("Invalid "+r+" `"+o+"` of type `"+d(c)+"` supplied to `"+a+"`, expected `"+t+"`."):null}))}function s(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(s);if(null===e||t(e))return!0;var a=function(t){var e=t&&(n&&t[n]||t["@@iterator"]);if("function"==typeof e)return e}(e);if(!a)return!1;var r,o=a.call(e);if(a!==e.entries){for(;!(r=o.next()).done;)if(!s(r.value))return!1}else for(;!(r=o.next()).done;){var i=r.value;if(i&&!s(i[1]))return!1}return!0;default:return!1}}function u(t){var e=typeof t;return Array.isArray(t)?"array":t instanceof RegExp?"object":function(t,e){return"symbol"===t||!!e&&("Symbol"===e["@@toStringTag"]||"function"==typeof Symbol&&e instanceof Symbol)}(e,t)?"symbol":e}function d(t){if(null==t)return""+t;var e=u(t);if("object"===e){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return e}function p(t){var e=d(t);switch(e){case"array":case"object":return"an "+e;case"boolean":case"date":case"regexp":return"a "+e;default:return e}}return i.prototype=Error.prototype,r.checkPropTypes=vI,r.resetWarningCache=vI.resetWarningCache,r.PropTypes=r,r};function CI(){}function EI(){}EI.resetWarningCache=CI;var OI=T((function(t){if("production"!==process.env.NODE_ENV){var e=lt;t.exports=kI(e.isElement,!0)}else t.exports=function(){function t(t,e,n,a,r,o){if(o!==pI){var i=new 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 i.name="Invariant Violation",i}}function e(){return t}t.isRequired=t;var n={array: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:EI,resetWarningCache:CI};return n.PropTypes=n,n}()})),SI=T((function(t,e){e.__esModule=!0,e.resizableProps=void 0;var n=function(t){return t&&t.__esModule?t:{default:t}}(OI);var a={axis:n.default.oneOf(["both","x","y","none"]),className:n.default.string,children:n.default.element.isRequired,draggableOpts:n.default.shape({allowAnyClick:n.default.bool,cancel:n.default.string,children:n.default.node,disabled:n.default.bool,enableUserSelectHack:n.default.bool,offsetParent:n.default.node,grid:n.default.arrayOf(n.default.number),handle:n.default.string,nodeRef:n.default.object,onStart:n.default.func,onDrag:n.default.func,onStop:n.default.func,onMouseDown:n.default.func,scale:n.default.number}),height:n.default.number.isRequired,handle:n.default.oneOfType([n.default.node,n.default.func]),handleSize:n.default.arrayOf(n.default.number),lockAspectRatio:n.default.bool,maxConstraints:n.default.arrayOf(n.default.number),minConstraints:n.default.arrayOf(n.default.number),onResizeStop:n.default.func,onResizeStart:n.default.func,onResize:n.default.func,resizeHandles:n.default.arrayOf(n.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),transformScale:n.default.number,width:n.default.number.isRequired};e.resizableProps=a})),NI=T((function(t,e){e.__esModule=!0,e.default=void 0;var n=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=r(e);if(n&&n.has(t))return n.get(t);var a={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if("default"!==i&&Object.prototype.hasOwnProperty.call(t,i)){var l=o?Object.getOwnPropertyDescriptor(t,i):null;l&&(l.get||l.set)?Object.defineProperty(a,i,l):a[i]=t[i]}a.default=t,n&&n.set(t,a);return a}(u.default),a=["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"];function r(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(r=function(t){return t?n:e})(t)}function o(){return(o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t}).apply(this,arguments)}function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){c(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var d=function(t){var e,r;function i(){for(var e,n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];return(e=t.call.apply(t,[this].concat(a))||this).handleRefs={},e.lastHandleRect=null,e.slack=null,e}r=t,(e=i).prototype=Object.create(r.prototype),e.prototype.constructor=e,s(e,r);var c=i.prototype;return c.componentWillUnmount=function(){this.resetData()},c.resetData=function(){this.lastHandleRect=this.slack=null},c.runConstraints=function(t,e){var n=this.props,a=n.minConstraints,r=n.maxConstraints,o=n.lockAspectRatio;if(!a&&!r&&!o)return[t,e];if(o){var i=this.props.width/this.props.height,l=t-this.props.width,c=e-this.props.height;Math.abs(l)>Math.abs(c*i)?e=t/i:t=e*i}var s=t,u=e,d=this.slack||[0,0],p=d[0],f=d[1];return t+=p,e+=f,a&&(t=Math.max(a[0],t),e=Math.max(a[1],e)),r&&(t=Math.min(r[0],t),e=Math.min(r[1],e)),this.slack=[p+(s-t),f+(u-e)],[t,e]},c.resizeHandler=function(t,e){var n=this;return function(a,r){var o=r.node,i=r.deltaX,l=r.deltaY;"onResizeStart"===t&&n.resetData();var c=("both"===n.props.axis||"x"===n.props.axis)&&"n"!==e&&"s"!==e,s=("both"===n.props.axis||"y"===n.props.axis)&&"e"!==e&&"w"!==e;if(c||s){var u=e[0],d=e[e.length-1],p=o.getBoundingClientRect();if(null!=n.lastHandleRect){if("w"===d)i+=p.left-n.lastHandleRect.left;if("n"===u)l+=p.top-n.lastHandleRect.top}n.lastHandleRect=p,"w"===d&&(i=-i),"n"===u&&(l=-l);var f=n.props.width+(c?i/n.props.transformScale:0),m=n.props.height+(s?l/n.props.transformScale:0),h=n.runConstraints(f,m);f=h[0],m=h[1];var g=f!==n.props.width||m!==n.props.height,b="function"==typeof n.props[t]?n.props[t]:null;b&&!("onResize"===t&&!g)&&(null==a.persist||a.persist(),b(a,{node:o,size:{width:f,height:m},handle:e})),"onResizeStop"===t&&n.resetData()}}},c.renderResizeHandle=function(t,e){var a=this.props.handle;if(!a)return n.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+t,ref:e});if("function"==typeof a)return a(t,e);var r=l({ref:e},"string"==typeof a.type?{}:{handleAxis:t});return n.cloneElement(a,r)},c.render=function(){var t=this,e=this.props,r=e.children,i=e.className,c=e.draggableOpts;e.width,e.height,e.handle,e.handleSize,e.lockAspectRatio,e.axis,e.minConstraints,e.maxConstraints,e.onResize,e.onResizeStop,e.onResizeStart;var s=e.resizeHandles;e.transformScale;var u=function(t,e){if(null==t)return{};var n,a,r={},o=Object.keys(t);for(a=0;a<o.length;a++)n=o[a],e.indexOf(n)>=0||(r[n]=t[n]);return r}(e,a);return(0,iI.cloneElement)(r,l(l({},u),{},{className:(i?i+" ":"")+"react-resizable",children:[].concat(r.props.children,s.map((function(e){var a,r=null!=(a=t.handleRefs[e])?a:t.handleRefs[e]=n.createRef();return n.createElement(p.default.DraggableCore,o({},c,{nodeRef:r,key:"resizableHandle-"+e,onStop:t.resizeHandler("onResizeStop",e),onStart:t.resizeHandler("onResizeStart",e),onDrag:t.resizeHandler("onResize",e)}),t.renderResizeHandle(e,r))})))}))},i}(n.Component);e.default=d,d.propTypes=SI.resizableProps,d.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1}})),PI=T((function(t,e){e.__esModule=!0,e.default=void 0;var n=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=l(e);if(n&&n.has(t))return n.get(t);var a={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var i=r?Object.getOwnPropertyDescriptor(t,o):null;i&&(i.get||i.set)?Object.defineProperty(a,o,i):a[o]=t[o]}a.default=t,n&&n.set(t,a);return a}(u.default),a=i(OI),r=i(NI),o=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function i(t){return t&&t.__esModule?t:{default:t}}function l(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(l=function(t){return t?n:e})(t)}function c(){return(c=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t}).apply(this,arguments)}function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){p(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function p(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var m=function(t){var e,a;function i(){for(var e,n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];return(e=t.call.apply(t,[this].concat(a))||this).state={width:e.props.width,height:e.props.height,propsWidth:e.props.width,propsHeight:e.props.height},e.onResize=function(t,n){var a=n.size;e.props.onResize?(null==t.persist||t.persist(),e.setState(a,(function(){return e.props.onResize&&e.props.onResize(t,n)}))):e.setState(a)},e}return a=t,(e=i).prototype=Object.create(a.prototype),e.prototype.constructor=e,f(e,a),i.getDerivedStateFromProps=function(t,e){return e.propsWidth!==t.width||e.propsHeight!==t.height?{width:t.width,height:t.height,propsWidth:t.width,propsHeight:t.height}:null},i.prototype.render=function(){var t=this.props,e=t.handle,a=t.handleSize;t.onResize;var i=t.onResizeStart,l=t.onResizeStop,s=t.draggableOpts,u=t.minConstraints,p=t.maxConstraints,f=t.lockAspectRatio,m=t.axis;t.width,t.height;var h=t.resizeHandles,g=t.style,b=t.transformScale,v=function(t,e){if(null==t)return{};var n,a,r={},o=Object.keys(t);for(a=0;a<o.length;a++)n=o[a],e.indexOf(n)>=0||(r[n]=t[n]);return r}(t,o);return n.createElement(r.default,{axis:m,draggableOpts:s,handle:e,handleSize:a,height:this.state.height,lockAspectRatio:f,maxConstraints:p,minConstraints:u,onResizeStart:i,onResize:this.onResize,onResizeStop:l,resizeHandles:h,transformScale:b,width:this.state.width},n.createElement("div",c({},v,{style:d(d({},g),{},{width:this.state.width+"px",height:this.state.height+"px"})})))},i}(n.Component);e.default=m,m.propTypes=d(d({},SI.resizableProps),{},{children:a.default.element})})),jI=NI.default;PI.default;const II=e=>{const{onResize:n,width:a,...r}=e;return a?t.jsx(jI,Object.assign({width:a,height:0,handle:t.jsx("span",{className:"react-resizable-handle",onClick:t=>{t.stopPropagation()}},void 0),onResize:n,draggableOpts:{enableUserSelectHack:!1}},{children:t.jsx("th",Object.assign({},r),void 0)}),void 0):t.jsx("th",Object.assign({},r),void 0)};var TI,DI=e.createContext({dragDropManager:void 0});function RI(t,e){for(var n=arguments.length,a=new Array(n>2?n-2:0),r=2;r<n;r++)a[r-2]=arguments[r];if("production"!==process.env.NODE_ENV&&void 0===e)throw new Error("invariant requires an error message argument");if(!t){var o;if(void 0===e)o=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var i=0;(o=new Error(e.replace(/%s/g,(function(){return a[i++]})))).name="Invariant Violation"}throw o.framesToPop=1,o}}!function(t){t.SOURCE="SOURCE",t.TARGET="TARGET"}(TI||(TI={}));var MI="dnd-core/INIT_COORDS",zI="dnd-core/BEGIN_DRAG",AI="dnd-core/PUBLISH_DRAG_SOURCE",LI="dnd-core/HOVER",_I="dnd-core/DROP",FI="dnd-core/END_DRAG";function VI(t,e){return{type:MI,payload:{sourceClientOffset:e||null,clientOffset:t||null}}}function KI(t){return(KI="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function HI(t,e,n){return e.split(".").reduce((function(t,e){return t&&t[e]?t[e]:n||null}),t)}function BI(t,e){return t.filter((function(t){return t!==e}))}function UI(t){return"object"===KI(t)}function WI(t,e){var n=new Map,a=function(t){n.set(t,n.has(t)?n.get(t)+1:1)};t.forEach(a),e.forEach(a);var r=[];return n.forEach((function(t,e){1===t&&r.push(e)})),r}var YI={type:MI,payload:{clientOffset:null,sourceClientOffset:null}};function qI(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{publishSource:!0},a=n.publishSource,r=void 0===a||a,o=n.clientOffset,i=n.getSourceClientOffset,l=t.getMonitor(),c=t.getRegistry();t.dispatch(VI(o)),$I(e,l,c);var s=ZI(e,l);if(null!==s){var u=null;if(o){if(!i)throw new Error("getSourceClientOffset must be defined");GI(i),u=i(s)}t.dispatch(VI(o,u));var d=c.getSource(s),p=d.beginDrag(l,s);if(null!=p){XI(p),c.pinSource(s);var f=c.getSourceType(s);return{type:zI,payload:{itemType:f,item:p,sourceId:s,clientOffset:o||null,sourceClientOffset:u||null,isSourcePublic:!!r}}}}else t.dispatch(YI)}}function $I(t,e,n){RI(!e.isDragging(),"Cannot call beginDrag while dragging."),t.forEach((function(t){RI(n.getSource(t),"Expected sourceIds to be registered.")}))}function GI(t){RI("function"==typeof t,"When clientOffset is provided, getSourceClientOffset must be a function.")}function XI(t){RI(UI(t),"Item must be an object.")}function ZI(t,e){for(var n=null,a=t.length-1;a>=0;a--)if(e.canDragSource(t[a])){n=t[a];break}return n}function JI(t){return function(){if(t.getMonitor().isDragging())return{type:AI}}}function QI(t,e){return null===e?null===t:Array.isArray(t)?t.some((function(t){return t===e})):t===e}function tT(t){return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=n.clientOffset;eT(e);var r=e.slice(0),o=t.getMonitor(),i=t.getRegistry();nT(r,o,i);var l=o.getItemType();return aT(r,i,l),rT(r,o,i),{type:LI,payload:{targetIds:r,clientOffset:a||null}}}}function eT(t){RI(Array.isArray(t),"Expected targetIds to be an array.")}function nT(t,e,n){RI(e.isDragging(),"Cannot call hover while not dragging."),RI(!e.didDrop(),"Cannot call hover after drop.");for(var a=0;a<t.length;a++){var r=t[a];RI(t.lastIndexOf(r)===a,"Expected targetIds to be unique in the passed array."),RI(n.getTarget(r),"Expected targetIds to be registered.")}}function aT(t,e,n){for(var a=t.length-1;a>=0;a--){var r=t[a];QI(e.getTargetType(r),n)||t.splice(a,1)}}function rT(t,e,n){t.forEach((function(t){n.getTarget(t).hover(e,t)}))}function oT(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function iT(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?oT(Object(n),!0).forEach((function(e){lT(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):oT(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function lT(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function cT(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.getMonitor(),a=t.getRegistry();sT(n);var r=dT(n);r.forEach((function(r,o){var i=uT(r,o,a,n),l={type:_I,payload:{dropResult:iT(iT({},e),i)}};t.dispatch(l)}))}}function sT(t){RI(t.isDragging(),"Cannot call drop while not dragging."),RI(!t.didDrop(),"Cannot call drop twice during one drag operation.")}function uT(t,e,n,a){var r=n.getTarget(t),o=r?r.drop(a,t):void 0;return function(t){RI(void 0===t||UI(t),"Drop result must either be an object or undefined.")}(o),void 0===o&&(o=0===e?{}:a.getDropResult()),o}function dT(t){var e=t.getTargetIds().filter(t.canDropOnTarget,t);return e.reverse(),e}function pT(t){return function(){var e=t.getMonitor(),n=t.getRegistry();!function(t){RI(t.isDragging(),"Cannot call endDrag while not dragging.")}(e);var a=e.getSourceId();null!=a&&(n.getSource(a,!0).endDrag(e,a),n.unpinSource());return{type:FI}}}function fT(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function mT(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var hT=function(){function t(e,n){var a=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),mT(this,"store",void 0),mT(this,"monitor",void 0),mT(this,"backend",void 0),mT(this,"isSetUp",!1),mT(this,"handleRefCountChange",(function(){var t=a.store.getState().refCount>0;a.backend&&(t&&!a.isSetUp?(a.backend.setup(),a.isSetUp=!0):!t&&a.isSetUp&&(a.backend.teardown(),a.isSetUp=!1))})),this.store=e,this.monitor=n,e.subscribe(this.handleRefCountChange)}var e,n,a;return e=t,(n=[{key:"receiveBackend",value:function(t){this.backend=t}},{key:"getMonitor",value:function(){return this.monitor}},{key:"getBackend",value:function(){return this.backend}},{key:"getRegistry",value:function(){return this.monitor.registry}},{key:"getActions",value:function(){var t=this,e=this.store.dispatch,n=function(t){return{beginDrag:qI(t),publishDragSource:JI(t),hover:tT(t),drop:cT(t),endDrag:pT(t)}}(this);return Object.keys(n).reduce((function(a,r){var o,i=n[r];return a[r]=(o=i,function(){for(var n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];var i=o.apply(t,a);void 0!==i&&e(i)}),a}),{})}},{key:"dispatch",value:function(t){this.store.dispatch(t)}}])&&fT(e.prototype,n),a&&fT(e,a),t}();function gT(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var bT="function"==typeof Symbol&&Symbol.observable||"@@observable",vT=function(){return Math.random().toString(36).substring(7).split("").join(".")},yT={INIT:"@@redux/INIT"+vT(),REPLACE:"@@redux/REPLACE"+vT(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+vT()}};function xT(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function wT(t){if(void 0===t)return"undefined";if(null===t)return"null";var e=typeof t;switch(e){case"boolean":case"string":case"number":case"symbol":case"function":return e}if(Array.isArray(t))return"array";if(function(t){return t instanceof Date||"function"==typeof t.toDateString&&"function"==typeof t.getDate&&"function"==typeof t.setDate}(t))return"date";if(function(t){return t instanceof Error||"string"==typeof t.message&&t.constructor&&"number"==typeof t.constructor.stackTraceLimit}(t))return"error";var n=function(t){return"function"==typeof t.constructor?t.constructor.name:null}(t);switch(n){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return n}return e.slice(8,-1).toLowerCase().replace(/\s/g,"")}function kT(t){var e=typeof t;return"production"!==process.env.NODE_ENV&&(e=wT(t)),e}function CT(t,e,n){var a;if("function"==typeof e&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error("production"===process.env.NODE_ENV?gT(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if("function"==typeof e&&void 0===n&&(n=e,e=void 0),void 0!==n){if("function"!=typeof n)throw new Error("production"===process.env.NODE_ENV?gT(1):"Expected the enhancer to be a function. Instead, received: '"+kT(n)+"'");return n(CT)(t,e)}if("function"!=typeof t)throw new Error("production"===process.env.NODE_ENV?gT(2):"Expected the root reducer to be a function. Instead, received: '"+kT(t)+"'");var r=t,o=e,i=[],l=i,c=!1;function s(){l===i&&(l=i.slice())}function u(){if(c)throw new Error("production"===process.env.NODE_ENV?gT(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return o}function d(t){if("function"!=typeof t)throw new Error("production"===process.env.NODE_ENV?gT(4):"Expected the listener to be a function. Instead, received: '"+kT(t)+"'");if(c)throw new Error("production"===process.env.NODE_ENV?gT(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var e=!0;return s(),l.push(t),function(){if(e){if(c)throw new Error("production"===process.env.NODE_ENV?gT(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");e=!1,s();var n=l.indexOf(t);l.splice(n,1),i=null}}}function p(t){if(!xT(t))throw new Error("production"===process.env.NODE_ENV?gT(7):"Actions must be plain objects. Instead, the actual type was: '"+kT(t)+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");if(void 0===t.type)throw new Error("production"===process.env.NODE_ENV?gT(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(c)throw new Error("production"===process.env.NODE_ENV?gT(9):"Reducers may not dispatch actions.");try{c=!0,o=r(o,t)}finally{c=!1}for(var e=i=l,n=0;n<e.length;n++){(0,e[n])()}return t}function f(t){if("function"!=typeof t)throw new Error("production"===process.env.NODE_ENV?gT(10):"Expected the nextReducer to be a function. Instead, received: '"+kT(t));r=t,p({type:yT.REPLACE})}function m(){var t,e=d;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error("production"===process.env.NODE_ENV?gT(11):"Expected the observer to be an object. Instead, received: '"+kT(t)+"'");function n(){t.next&&t.next(u())}return n(),{unsubscribe:e(n)}}})[bT]=function(){return this},t}return p({type:yT.INIT}),(a={dispatch:p,subscribe:d,getState:u,replaceReducer:f})[bT]=m,a}function ET(){}"production"!==process.env.NODE_ENV&&"string"==typeof ET.name&&"isCrushed"!==ET.name&&function(t){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(t);try{throw new Error(t)}catch(t){}}('You are currently using minified code outside of NODE_ENV === "production". This means that you are running a slower development build of Redux. You can use loose-envify (https://github.com/zertosh/loose-envify) for browserify or setting mode to production in webpack (https://webpack.js.org/concepts/mode/) to ensure you have the correct code for your production build.');var OT=function(t,e){return t===e};function ST(t,e){return!t&&!e||!(!t||!e)&&(t.x===e.x&&t.y===e.y)}function NT(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:OT;if(t.length!==e.length)return!1;for(var a=0;a<t.length;++a)if(!n(t[a],e[a]))return!1;return!0}function PT(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function jT(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?PT(Object(n),!0).forEach((function(e){IT(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):PT(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function IT(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var TT={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function DT(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:TT,e=arguments.length>1?arguments[1]:void 0,n=e.payload;switch(e.type){case MI:case zI:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case LI:return ST(t.clientOffset,n.clientOffset)?t:jT(jT({},t),{},{clientOffset:n.clientOffset});case FI:case _I:return TT;default:return t}}var RT="dnd-core/ADD_SOURCE",MT="dnd-core/ADD_TARGET",zT="dnd-core/REMOVE_SOURCE",AT="dnd-core/REMOVE_TARGET";function LT(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function _T(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?LT(Object(n),!0).forEach((function(e){FT(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):LT(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function FT(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var VT={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function KT(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:VT,e=arguments.length>1?arguments[1]:void 0,n=e.payload;switch(e.type){case zI:return _T(_T({},t),{},{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case AI:return _T(_T({},t),{},{isSourcePublic:!0});case LI:return _T(_T({},t),{},{targetIds:n.targetIds});case AT:return-1===t.targetIds.indexOf(n.targetId)?t:_T(_T({},t),{},{targetIds:BI(t.targetIds,n.targetId)});case _I:return _T(_T({},t),{},{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case FI:return _T(_T({},t),{},{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return t}}function HT(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case RT:case MT:return t+1;case zT:case AT:return t-1;default:return t}}var BT=[],UT=[];function WT(t,e){return t!==BT&&(t===UT||void 0===e||(n=t,e.filter((function(t){return n.indexOf(t)>-1}))).length>0);var n}function YT(){var t=arguments.length>1?arguments[1]:void 0;switch(t.type){case LI:break;case RT:case MT:case AT:case zT:return BT;case zI:case AI:case FI:case _I:default:return UT}var e=t.payload,n=e.targetIds,a=void 0===n?[]:n,r=e.prevTargetIds,o=void 0===r?[]:r,i=WI(a,o),l=i.length>0||!NT(a,o);if(!l)return BT;var c=o[o.length-1],s=a[a.length-1];return c!==s&&(c&&i.push(c),s&&i.push(s)),i}function qT(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return t+1}function $T(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function GT(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?$T(Object(n),!0).forEach((function(e){XT(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):$T(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function XT(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ZT(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:YT(t.dirtyHandlerIds,{type:e.type,payload:GT(GT({},e.payload),{},{prevTargetIds:HI(t,"dragOperation.targetIds",[])})}),dragOffset:DT(t.dragOffset,e),refCount:HT(t.refCount,e),dragOperation:KT(t.dragOperation,e),stateId:qT(t.stateId)}}function JT(t,e){return{x:t.x-e.x,y:t.y-e.y}}function QT(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function tD(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}BT.__IS_NONE__=!0,UT.__IS_ALL__=!0;var eD=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),tD(this,"store",void 0),tD(this,"registry",void 0),this.store=e,this.registry=n}var e,n,a;return e=t,(n=[{key:"subscribeToStateChange",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{handlerIds:void 0},a=n.handlerIds;RI("function"==typeof t,"listener must be a function."),RI(void 0===a||Array.isArray(a),"handlerIds, when specified, must be an array of strings.");var r=this.store.getState().stateId,o=function(){var n=e.store.getState(),o=n.stateId;try{o===r||o===r+1&&!WT(n.dirtyHandlerIds,a)||t()}finally{r=o}};return this.store.subscribe(o)}},{key:"subscribeToOffsetChange",value:function(t){var e=this;RI("function"==typeof t,"listener must be a function.");var n=this.store.getState().dragOffset;return this.store.subscribe((function(){var a=e.store.getState().dragOffset;a!==n&&(n=a,t())}))}},{key:"canDragSource",value:function(t){if(!t)return!1;var e=this.registry.getSource(t);return RI(e,"Expected to find a valid source. sourceId=".concat(t)),!this.isDragging()&&e.canDrag(this,t)}},{key:"canDropOnTarget",value:function(t){if(!t)return!1;var e=this.registry.getTarget(t);return RI(e,"Expected to find a valid target. targetId=".concat(t)),!(!this.isDragging()||this.didDrop())&&QI(this.registry.getTargetType(t),this.getItemType())&&e.canDrop(this,t)}},{key:"isDragging",value:function(){return Boolean(this.getItemType())}},{key:"isDraggingSource",value:function(t){if(!t)return!1;var e=this.registry.getSource(t,!0);return RI(e,"Expected to find a valid source. sourceId=".concat(t)),!(!this.isDragging()||!this.isSourcePublic())&&this.registry.getSourceType(t)===this.getItemType()&&e.isDragging(this,t)}},{key:"isOverTarget",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shallow:!1};if(!t)return!1;var n=e.shallow;if(!this.isDragging())return!1;var a=this.registry.getTargetType(t),r=this.getItemType();if(r&&!QI(a,r))return!1;var o=this.getTargetIds();if(!o.length)return!1;var i=o.indexOf(t);return n?i===o.length-1:i>-1}},{key:"getItemType",value:function(){return this.store.getState().dragOperation.itemType}},{key:"getItem",value:function(){return this.store.getState().dragOperation.item}},{key:"getSourceId",value:function(){return this.store.getState().dragOperation.sourceId}},{key:"getTargetIds",value:function(){return this.store.getState().dragOperation.targetIds}},{key:"getDropResult",value:function(){return this.store.getState().dragOperation.dropResult}},{key:"didDrop",value:function(){return this.store.getState().dragOperation.didDrop}},{key:"isSourcePublic",value:function(){return Boolean(this.store.getState().dragOperation.isSourcePublic)}},{key:"getInitialClientOffset",value:function(){return this.store.getState().dragOffset.initialClientOffset}},{key:"getInitialSourceClientOffset",value:function(){return this.store.getState().dragOffset.initialSourceClientOffset}},{key:"getClientOffset",value:function(){return this.store.getState().dragOffset.clientOffset}},{key:"getSourceClientOffset",value:function(){return t=this.store.getState().dragOffset,e=t.clientOffset,n=t.initialClientOffset,a=t.initialSourceClientOffset,e&&n&&a?JT(function(t,e){return{x:t.x+e.x,y:t.y+e.y}}(e,a),n):null;var t,e,n,a}},{key:"getDifferenceFromInitialOffset",value:function(){return t=this.store.getState().dragOffset,e=t.clientOffset,n=t.initialClientOffset,e&&n?JT(e,n):null;var t,e,n}}])&&QT(e.prototype,n),a&&QT(e,a),t}(),nD=0;function aD(t){return(aD="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function rD(t,e){e&&Array.isArray(t)?t.forEach((function(t){return rD(t,!1)})):RI("string"==typeof t||"symbol"===aD(t),e?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}const oD="undefined"!=typeof global?global:self,iD=oD.MutationObserver||oD.WebKitMutationObserver;function lD(t){return function(){const e=setTimeout(a,0),n=setInterval(a,50);function a(){clearTimeout(e),clearInterval(n),t()}}}const cD="function"==typeof iD?function(t){let e=1;const n=new iD(t),a=document.createTextNode("");return n.observe(a,{characterData:!0}),function(){e=-e,a.data=e}}:lD;class sD{call(){try{this.task&&this.task()}catch(t){this.onError(t)}finally{this.task=null,this.release(this)}}constructor(t,e){this.onError=t,this.release=e,this.task=null}}const uD=new class{enqueueTask(t){const{queue:e,requestFlush:n}=this;e.length||(n(),this.flushing=!0),e[e.length]=t}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:t}=this;for(;this.index<t.length;){const e=this.index;if(this.index++,t[e].call(),this.index>this.capacity){for(let e=0,n=t.length-this.index;e<n;e++)t[e]=t[e+this.index];t.length-=this.index,this.index=0}}t.length=0,this.index=0,this.flushing=!1},this.registerPendingError=t=>{this.pendingErrors.push(t),this.requestErrorThrow()},this.requestFlush=cD(this.flush),this.requestErrorThrow=lD((()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()}))}},dD=new class{create(t){const e=this.freeTasks,n=e.length?e.pop():new sD(this.onError,(t=>e[e.length]=t));return n.task=t,n}constructor(t){this.onError=t,this.freeTasks=[]}}(uD.registerPendingError);function pD(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function fD(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function mD(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var a,r,o=[],i=!0,l=!1;try{for(n=n.call(t);!(i=(a=n.next()).done)&&(o.push(a.value),!e||o.length!==e);i=!0);}catch(t){l=!0,r=t}finally{try{i||null==n.return||n.return()}finally{if(l)throw r}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return hD(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hD(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function hD(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,a=new Array(e);n<e;n++)a[n]=t[n];return a}function gD(t){var e=(nD++).toString();switch(t){case TI.SOURCE:return"S".concat(e);case TI.TARGET:return"T".concat(e);default:throw new Error("Unknown Handler Role: ".concat(t))}}function bD(t){switch(t[0]){case"S":return TI.SOURCE;case"T":return TI.TARGET;default:RI(!1,"Cannot parse handler ID: ".concat(t))}}function vD(t,e){var n=t.entries(),a=!1;do{var r=n.next(),o=r.done;if(mD(r.value,2)[1]===e)return!0;a=!!o}while(!a);return!1}var yD=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),fD(this,"types",new Map),fD(this,"dragSources",new Map),fD(this,"dropTargets",new Map),fD(this,"pinnedSourceId",null),fD(this,"pinnedSource",null),fD(this,"store",void 0),this.store=e}var e,n,a;return e=t,(n=[{key:"addSource",value:function(t,e){rD(t),function(t){RI("function"==typeof t.canDrag,"Expected canDrag to be a function."),RI("function"==typeof t.beginDrag,"Expected beginDrag to be a function."),RI("function"==typeof t.endDrag,"Expected endDrag to be a function.")}(e);var n=this.addHandler(TI.SOURCE,t,e);return this.store.dispatch(function(t){return{type:RT,payload:{sourceId:t}}}(n)),n}},{key:"addTarget",value:function(t,e){rD(t,!0),function(t){RI("function"==typeof t.canDrop,"Expected canDrop to be a function."),RI("function"==typeof t.hover,"Expected hover to be a function."),RI("function"==typeof t.drop,"Expected beginDrag to be a function.")}(e);var n=this.addHandler(TI.TARGET,t,e);return this.store.dispatch(function(t){return{type:MT,payload:{targetId:t}}}(n)),n}},{key:"containsHandler",value:function(t){return vD(this.dragSources,t)||vD(this.dropTargets,t)}},{key:"getSource",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];RI(this.isSourceId(t),"Expected a valid source ID.");var n=e&&t===this.pinnedSourceId,a=n?this.pinnedSource:this.dragSources.get(t);return a}},{key:"getTarget",value:function(t){return RI(this.isTargetId(t),"Expected a valid target ID."),this.dropTargets.get(t)}},{key:"getSourceType",value:function(t){return RI(this.isSourceId(t),"Expected a valid source ID."),this.types.get(t)}},{key:"getTargetType",value:function(t){return RI(this.isTargetId(t),"Expected a valid target ID."),this.types.get(t)}},{key:"isSourceId",value:function(t){return bD(t)===TI.SOURCE}},{key:"isTargetId",value:function(t){return bD(t)===TI.TARGET}},{key:"removeSource",value:function(t){var e,n=this;RI(this.getSource(t),"Expected an existing source."),this.store.dispatch(function(t){return{type:zT,payload:{sourceId:t}}}(t)),e=function(){n.dragSources.delete(t),n.types.delete(t)},uD.enqueueTask(dD.create(e))}},{key:"removeTarget",value:function(t){RI(this.getTarget(t),"Expected an existing target."),this.store.dispatch(function(t){return{type:AT,payload:{targetId:t}}}(t)),this.dropTargets.delete(t),this.types.delete(t)}},{key:"pinSource",value:function(t){var e=this.getSource(t);RI(e,"Expected an existing source."),this.pinnedSourceId=t,this.pinnedSource=e}},{key:"unpinSource",value:function(){RI(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}},{key:"addHandler",value:function(t,e,n){var a=gD(t);return this.types.set(a,e),t===TI.SOURCE?this.dragSources.set(a,n):t===TI.TARGET&&this.dropTargets.set(a,n),a}}])&&pD(e.prototype,n),a&&pD(e,a),t}();function xD(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=wD(a),o=new eD(r,new yD(r)),i=new hT(r,o),l=t(i,e,n);return i.receiveBackend(l),i}function wD(t){var e="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return CT(ZT,t&&e&&e({name:"dnd-core",instanceId:"dnd-core"}))}var kD=["children"];function CD(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var a,r,o=[],i=!0,l=!1;try{for(n=n.call(t);!(i=(a=n.next()).done)&&(o.push(a.value),!e||o.length!==e);i=!0);}catch(t){l=!0,r=t}finally{try{i||null==n.return||n.return()}finally{if(l)throw r}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return ED(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ED(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ED(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,a=new Array(e);n<e;n++)a[n]=t[n];return a}function OD(t,e){if(null==t)return{};var n,a,r=function(t,e){if(null==t)return{};var n,a,r={},o=Object.keys(t);for(a=0;a<o.length;a++)n=o[a],e.indexOf(n)>=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(a=0;a<o.length;a++)n=o[a],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}var SD=0,ND=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__"),PD=e.memo((function(n){var a=n.children,r=CD(function(t){if("manager"in t){return[{dragDropManager:t.manager},!1]}var e=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:jD(),n=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,r=e;r[ND]||(r[ND]={dragDropManager:xD(t,e,n,a)});return r[ND]}(t.backend,t.context,t.options,t.debugMode),n=!t.context;return[e,n]}(OD(n,kD)),2),o=r[0],i=r[1];return e.useEffect((function(){if(i){var t=jD();return++SD,function(){0==--SD&&(t[ND]=null)}}}),[]),t.jsx(DI.Provider,Object.assign({value:o},{children:a}),void 0)}));function jD(){return"undefined"!=typeof global?global:window}function ID(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function TD(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var DD=!1,RD=!1,MD=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),TD(this,"internalMonitor",void 0),TD(this,"sourceId",null),this.internalMonitor=e.getMonitor()}var e,n,a;return e=t,(n=[{key:"receiveHandlerId",value:function(t){this.sourceId=t}},{key:"getHandlerId",value:function(){return this.sourceId}},{key:"canDrag",value:function(){RI(!DD,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return DD=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{DD=!1}}},{key:"isDragging",value:function(){if(!this.sourceId)return!1;RI(!RD,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return RD=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{RD=!1}}},{key:"subscribeToStateChange",value:function(t,e){return this.internalMonitor.subscribeToStateChange(t,e)}},{key:"isDraggingSource",value:function(t){return this.internalMonitor.isDraggingSource(t)}},{key:"isOverTarget",value:function(t,e){return this.internalMonitor.isOverTarget(t,e)}},{key:"getTargetIds",value:function(){return this.internalMonitor.getTargetIds()}},{key:"isSourcePublic",value:function(){return this.internalMonitor.isSourcePublic()}},{key:"getSourceId",value:function(){return this.internalMonitor.getSourceId()}},{key:"subscribeToOffsetChange",value:function(t){return this.internalMonitor.subscribeToOffsetChange(t)}},{key:"canDragSource",value:function(t){return this.internalMonitor.canDragSource(t)}},{key:"canDropOnTarget",value:function(t){return this.internalMonitor.canDropOnTarget(t)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}])&&ID(e.prototype,n),a&&ID(e,a),t}();function zD(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function AD(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var LD=!1,_D=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),AD(this,"internalMonitor",void 0),AD(this,"targetId",null),this.internalMonitor=e.getMonitor()}var e,n,a;return e=t,(n=[{key:"receiveHandlerId",value:function(t){this.targetId=t}},{key:"getHandlerId",value:function(){return this.targetId}},{key:"subscribeToStateChange",value:function(t,e){return this.internalMonitor.subscribeToStateChange(t,e)}},{key:"canDrop",value:function(){if(!this.targetId)return!1;RI(!LD,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return LD=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{LD=!1}}},{key:"isOver",value:function(t){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,t)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}])&&zD(e.prototype,n),a&&zD(e,a),t}();function FD(t){if("string"!=typeof t.type){var e=t.type.displayName||t.type.name||"the component";throw new Error("Only native element nodes can now be passed to React DnD connectors."+"You can either wrap ".concat(e," into a <div>, or turn it into a ")+"drag source or a drop target itself.")}}function VD(t){var n={};return Object.keys(t).forEach((function(a){var r=t[a];if(a.endsWith("Ref"))n[a]=t[a];else{var o=function(t){return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!e.isValidElement(n)){var r=n;return t(r,a),r}var o=n;return FD(o),HD(o,a?function(e){return t(e,a)}:t)}}(r);n[a]=function(){return o}}})),n}function KD(t,e){"function"==typeof t?t(e):t.current=e}function HD(t,n){var a=t.ref;return RI("string"!=typeof a,"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),a?e.cloneElement(t,{ref:function(t){KD(a,t),KD(n,t)}}):e.cloneElement(t,{ref:n})}function BD(t){return(BD="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function UD(t){return null!==t&&"object"===BD(t)&&Object.prototype.hasOwnProperty.call(t,"current")}function WD(t,e,n,a){var r=n?n.call(a,t,e):void 0;if(void 0!==r)return!!r;if(t===e)return!0;if("object"!=typeof t||!t||"object"!=typeof e||!e)return!1;var o=Object.keys(t),i=Object.keys(e);if(o.length!==i.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(e),c=0;c<o.length;c++){var s=o[c];if(!l(s))return!1;var u=t[s],d=e[s];if(!1===(r=n?n.call(a,u,d,s):void 0)||void 0===r&&u!==d)return!1}return!0}function YD(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function qD(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var $D=function(){function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),qD(this,"hooks",VD({dragSource:function(t,e){n.clearDragSource(),n.dragSourceOptions=e||null,UD(t)?n.dragSourceRef=t:n.dragSourceNode=t,n.reconnectDragSource()},dragPreview:function(t,e){n.clearDragPreview(),n.dragPreviewOptions=e||null,UD(t)?n.dragPreviewRef=t:n.dragPreviewNode=t,n.reconnectDragPreview()}})),qD(this,"handlerId",null),qD(this,"dragSourceRef",null),qD(this,"dragSourceNode",void 0),qD(this,"dragSourceOptionsInternal",null),qD(this,"dragSourceUnsubscribe",void 0),qD(this,"dragPreviewRef",null),qD(this,"dragPreviewNode",void 0),qD(this,"dragPreviewOptionsInternal",null),qD(this,"dragPreviewUnsubscribe",void 0),qD(this,"lastConnectedHandlerId",null),qD(this,"lastConnectedDragSource",null),qD(this,"lastConnectedDragSourceOptions",null),qD(this,"lastConnectedDragPreview",null),qD(this,"lastConnectedDragPreviewOptions",null),qD(this,"backend",void 0),this.backend=e}var e,n,a;return e=t,(n=[{key:"receiveHandlerId",value:function(t){this.handlerId!==t&&(this.handlerId=t,this.reconnect())}},{key:"connectTarget",get:function(){return this.dragSource}},{key:"dragSourceOptions",get:function(){return this.dragSourceOptionsInternal},set:function(t){this.dragSourceOptionsInternal=t}},{key:"dragPreviewOptions",get:function(){return this.dragPreviewOptionsInternal},set:function(t){this.dragPreviewOptionsInternal=t}},{key:"reconnect",value:function(){this.reconnectDragSource(),this.reconnectDragPreview()}},{key:"reconnectDragSource",value:function(){var t=this.dragSource,e=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();e&&this.disconnectDragSource(),this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=t,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,t,this.dragSourceOptions)):this.lastConnectedDragSource=t)}},{key:"reconnectDragPreview",value:function(){var t=this.dragPreview,e=this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();e&&this.disconnectDragPreview(),this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=t,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,t,this.dragPreviewOptions)):this.lastConnectedDragPreview=t)}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didConnectedDragSourceChange",value:function(){return this.lastConnectedDragSource!==this.dragSource}},{key:"didConnectedDragPreviewChange",value:function(){return this.lastConnectedDragPreview!==this.dragPreview}},{key:"didDragSourceOptionsChange",value:function(){return!WD(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}},{key:"didDragPreviewOptionsChange",value:function(){return!WD(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}},{key:"disconnectDragSource",value:function(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}},{key:"disconnectDragPreview",value:function(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}},{key:"dragSource",get:function(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}},{key:"dragPreview",get:function(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}},{key:"clearDragSource",value:function(){this.dragSourceNode=null,this.dragSourceRef=null}},{key:"clearDragPreview",value:function(){this.dragPreviewNode=null,this.dragPreviewRef=null}}])&&YD(e.prototype,n),a&&YD(e,a),t}();function GD(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function XD(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ZD=function(){function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),XD(this,"hooks",VD({dropTarget:function(t,e){n.clearDropTarget(),n.dropTargetOptions=e,UD(t)?n.dropTargetRef=t:n.dropTargetNode=t,n.reconnect()}})),XD(this,"handlerId",null),XD(this,"dropTargetRef",null),XD(this,"dropTargetNode",void 0),XD(this,"dropTargetOptionsInternal",null),XD(this,"unsubscribeDropTarget",void 0),XD(this,"lastConnectedHandlerId",null),XD(this,"lastConnectedDropTarget",null),XD(this,"lastConnectedDropTargetOptions",null),XD(this,"backend",void 0),this.backend=e}var e,n,a;return e=t,(n=[{key:"connectTarget",get:function(){return this.dropTarget}},{key:"reconnect",value:function(){var t=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();t&&this.disconnectDropTarget();var e=this.dropTarget;this.handlerId&&(e?t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=e,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,e,this.dropTargetOptions)):this.lastConnectedDropTarget=e)}},{key:"receiveHandlerId",value:function(t){t!==this.handlerId&&(this.handlerId=t,this.reconnect())}},{key:"dropTargetOptions",get:function(){return this.dropTargetOptionsInternal},set:function(t){this.dropTargetOptionsInternal=t}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didDropTargetChange",value:function(){return this.lastConnectedDropTarget!==this.dropTarget}},{key:"didOptionsChange",value:function(){return!WD(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}},{key:"disconnectDropTarget",value:function(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}},{key:"dropTarget",get:function(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}},{key:"clearDropTarget",value:function(){this.dropTargetRef=null,this.dropTargetNode=null}}])&&GD(e.prototype,n),a&&GD(e,a),t}();var JD="undefined"!=typeof window?e.useLayoutEffect:e.useEffect;function QD(t){return(QD="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function tR(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function eR(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var nR=function(){function t(e,n,a){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),eR(this,"spec",void 0),eR(this,"monitor",void 0),eR(this,"connector",void 0),this.spec=e,this.monitor=n,this.connector=a}var e,n,a;return e=t,(n=[{key:"beginDrag",value:function(){var t,e=this.spec,n=this.monitor;return null!==(t="object"===QD(e.item)?e.item:"function"==typeof e.item?e.item(n):{})&&void 0!==t?t:null}},{key:"canDrag",value:function(){var t=this.spec,e=this.monitor;return"boolean"==typeof t.canDrag?t.canDrag:"function"!=typeof t.canDrag||t.canDrag(e)}},{key:"isDragging",value:function(t,e){var n=this.spec,a=this.monitor,r=n.isDragging;return r?r(a):e===t.getSourceId()}},{key:"endDrag",value:function(){var t=this.spec,e=this.monitor,n=this.connector,a=t.end;a&&a(e.getItem(),e),n.reconnect()}}])&&tR(e.prototype,n),a&&tR(e,a),t}();function aR(){var t=e.useContext(DI).dragDropManager;return RI(null!=t,"Expected drag drop context"),t}function rR(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var a,r,o=[],i=!0,l=!1;try{for(n=n.call(t);!(i=(a=n.next()).done)&&(o.push(a.value),!e||o.length!==e);i=!0);}catch(t){l=!0,r=t}finally{try{i||null==n.return||n.return()}finally{if(l)throw r}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return oR(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return oR(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function oR(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,a=new Array(e);n<e;n++)a[n]=t[n];return a}function iR(t,n,a){var r=aR(),o=function(t,n,a){var r=e.useMemo((function(){return new nR(t,n,a)}),[n,a]);return e.useEffect((function(){r.spec=t}),[t]),r}(t,n,a),i=function(t){return e.useMemo((function(){var e=t.type;return RI(null!=e,"spec.type must be defined"),e}),[t])}(t);JD((function(){if(null!=i){var t=rR(function(t,e,n){var a=n.getRegistry(),r=a.addSource(t,e);return[r,function(){return a.removeSource(r)}]}(i,o,r),2),e=t[0],l=t[1];return n.receiveHandlerId(e),a.receiveHandlerId(e),l}}),[r,n,a,o,i])}function lR(t){return function(t){if(Array.isArray(t))return cR(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return cR(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return cR(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function cR(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,a=new Array(e);n<e;n++)a[n]=t[n];return a}function sR(t,n){var a=lR(n||[]);return null==n&&"function"!=typeof t&&a.push(t),e.useMemo((function(){return"function"==typeof t?t():t}),a)}var uR=function t(e,n){if(e===n)return!0;if(e&&n&&"object"==typeof e&&"object"==typeof n){if(e.constructor!==n.constructor)return!1;var a,r,o;if(Array.isArray(e)){if((a=e.length)!=n.length)return!1;for(r=a;0!=r--;)if(!t(e[r],n[r]))return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if((a=(o=Object.keys(e)).length)!==Object.keys(n).length)return!1;for(r=a;0!=r--;)if(!Object.prototype.hasOwnProperty.call(n,o[r]))return!1;for(r=a;0!=r--;){var i=o[r];if(!t(e[i],n[i]))return!1}return!0}return e!=e&&n!=n};function dR(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var a,r,o=[],i=!0,l=!1;try{for(n=n.call(t);!(i=(a=n.next()).done)&&(o.push(a.value),!e||o.length!==e);i=!0);}catch(t){l=!0,r=t}finally{try{i||null==n.return||n.return()}finally{if(l)throw r}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return pR(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return pR(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pR(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,a=new Array(e);n<e;n++)a[n]=t[n];return a}function fR(t,n,a){var r=dR(e.useState((function(){return n(t)})),2),o=r[0],i=r[1],l=e.useCallback((function(){var e=n(t);uR(o,e)||(i(e),a&&a())}),[o,t,a]);return JD(l),[o,l]}function mR(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var a,r,o=[],i=!0,l=!1;try{for(n=n.call(t);!(i=(a=n.next()).done)&&(o.push(a.value),!e||o.length!==e);i=!0);}catch(t){l=!0,r=t}finally{try{i||null==n.return||n.return()}finally{if(l)throw r}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return hR(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hR(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function hR(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,a=new Array(e);n<e;n++)a[n]=t[n];return a}function gR(t,e,n){return function(t,e,n){var a=mR(fR(t,e,n),2),r=a[0],o=a[1];return JD((function(){var e=t.getHandlerId();if(null!=e)return t.subscribeToStateChange(o,{handlerIds:[e]})}),[t,o]),r}(e,t||function(){return{}},(function(){return n.reconnect()}))}function bR(t){return e.useMemo((function(){return t.hooks.dragSource()}),[t])}function vR(t){return e.useMemo((function(){return t.hooks.dragPreview()}),[t])}function yR(t,n){var a=sR(t,n);RI(!a.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");var r,o=(r=aR(),e.useMemo((function(){return new MD(r)}),[r])),i=function(t,n){var a=aR(),r=e.useMemo((function(){return new $D(a.getBackend())}),[a]);return JD((function(){return r.dragSourceOptions=t||null,r.reconnect(),function(){return r.disconnectDragSource()}}),[r,t]),JD((function(){return r.dragPreviewOptions=n||null,r.reconnect(),function(){return r.disconnectDragPreview()}}),[r,n]),r}(a.options,a.previewOptions);return iR(a,o,i),[gR(a.collect,o,i),bR(i),vR(i)]}function xR(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function wR(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var kR=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),wR(this,"spec",void 0),wR(this,"monitor",void 0),this.spec=e,this.monitor=n}var e,n,a;return e=t,(n=[{key:"canDrop",value:function(){var t=this.spec,e=this.monitor;return!t.canDrop||t.canDrop(e.getItem(),e)}},{key:"hover",value:function(){var t=this.spec,e=this.monitor;t.hover&&t.hover(e.getItem(),e)}},{key:"drop",value:function(){var t=this.spec,e=this.monitor;if(t.drop)return t.drop(e.getItem(),e)}}])&&xR(e.prototype,n),a&&xR(e,a),t}();function CR(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var a,r,o=[],i=!0,l=!1;try{for(n=n.call(t);!(i=(a=n.next()).done)&&(o.push(a.value),!e||o.length!==e);i=!0);}catch(t){l=!0,r=t}finally{try{i||null==n.return||n.return()}finally{if(l)throw r}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return ER(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ER(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ER(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,a=new Array(e);n<e;n++)a[n]=t[n];return a}function OR(t,n,a){var r=aR(),o=function(t,n){var a=e.useMemo((function(){return new kR(t,n)}),[n]);return e.useEffect((function(){a.spec=t}),[t]),a}(t,n),i=function(t){var n=t.accept;return e.useMemo((function(){return RI(null!=t.accept,"accept must be defined"),Array.isArray(n)?n:[n]}),[n])}(t);JD((function(){var t=CR(function(t,e,n){var a=n.getRegistry(),r=a.addTarget(t,e);return[r,function(){return a.removeTarget(r)}]}(i,o,r),2),e=t[0],l=t[1];return n.receiveHandlerId(e),a.receiveHandlerId(e),l}),[r,n,o,a,i.map((function(t){return t.toString()})).join("|")])}function SR(t){return e.useMemo((function(){return t.hooks.dropTarget()}),[t])}function NR(t,n){var a,r=sR(t,n),o=(a=aR(),e.useMemo((function(){return new _D(a)}),[a])),i=function(t){var n=aR(),a=e.useMemo((function(){return new ZD(n.getBackend())}),[n]);return JD((function(){return a.dropTargetOptions=t||null,a.reconnect(),function(){return a.disconnectDropTarget()}}),[t]),a}(r.options);return OR(r,o,i),[gR(r.collect,o,i),SR(i)]}b(".drop-over-downward td{border-bottom:2px dashed #5860f8!important}.drop-over-upward td{border-top:2px dashed #5860f8!important}");const{Option:PR}=Ju,jR=u.default.createContext(null),IR=({open:n,index:a,moveRow:r,className:o,style:i,...l})=>{const[c]=fw.useForm(),s=e.useRef(null),[{isOver:u,dropClassName:d},p]=NR({accept:"DraggableBodyRow",collect:t=>{const{index:e}=t.getItem()||{};return e===a?{}:{isOver:t.isOver(),dropClassName:e<a?" drop-over-downward":" drop-over-upward"}},drop:t=>{r(t.index,a)}}),[,f]=yR({type:"DraggableBodyRow",item:{index:a},collect:t=>({isDragging:t.isDragging()})});return n&&p(f(s)),t.jsx(fw,Object.assign({size:"small",component:!1,form:c},{children:t.jsx(jR.Provider,Object.assign({value:c},{children:t.jsx("tr",Object.assign({ref:s,className:`${o}${u?d:""}`,style:{cursor:n?"move":"auto",...i}},l),void 0)}),void 0)}),void 0)},TR=({record:n,dataIndex:a,title:r,editable:o,inputType:i,valueType:l,valueEnum:c,recordSelectField:s,controlRender:u,formChange:d,remoteConfig:p,children:h,formItemProps:g,handleSave:b,...v})=>{const y=e.useContext(jR),[x,w]=e.useState(!1),[k,C]=e.useState({}),E=(t,e,n,a)=>{a&&(w(!0),a(t,n).then((t=>{w(!1),e&&C({[e]:t})})))};if(o){let t=n[a];"DatePicker"===l&&t&&(t=m.default(t)),"status"===a&&void 0!==t&&(n[a]=String(t)),setTimeout((()=>{y.setFieldsValue({[a]:t})}))}const O=(e,r)=>{let o=null;const l=(t,e)=>{let n="";const a=function(t){for(let e of t)if(e)if(Mj({data:e,type:"String"}))n+=e;else{const t=e.props.children;Mj({data:t,type:"Object"})&&a([t]),Mj({data:t,type:"Array"})&&a(t),Mj({data:t,type:"String"})&&(n+=t)}};return a([e.children]),n.toLowerCase().indexOf(t.toLowerCase())>=0},u=e=>{if(f.default.isArray(e))return e.map(((e,n)=>t.jsx(PR,Object.assign({value:e.value},{children:e.label}),n)))};switch(e){case"RecordSelect":o=t.jsx(Ju,Object.assign({allowClear:!0,showSearch:!0,dropdownMatchSelectWidth:!1,placeholder:r,onChange:S,optionFilterProp:"children",filterOption:l},{children:u(n[s])}),void 0);break;case"Select":o=t.jsx(Ju,Object.assign({dropdownMatchSelectWidth:!1,onChange:S,placeholder:r},{children:u(c)}),void 0);break;case"DatePicker":o=t.jsx(hx,{onChange:S,placeholder:r},void 0);break;case"AutoComplete":o=t.jsx(Ju,Object.assign({allowClear:!0,showSearch:!0,dropdownMatchSelectWidth:!1,placeholder:r,onChange:S,optionFilterProp:"children",filterOption:l},{children:u(c)}),void 0);break;case"RemoteSearch":let e=c;k[a]&&(e=k[a]),o=t.jsx(Ju,Object.assign({mode:p.remoteMode,placeholder:r,notFoundContent:x?t.jsx(Dw,{size:"small"},void 0):null,dropdownMatchSelectWidth:!1,filterOption:!1,allowClear:!0,showSearch:!0,onChange:S,onFocus:()=>E(void 0,a,n,p.remoteApi),onSearch:t=>E(t,a,n,p.remoteApi)},{children:a&&u(e)}),void 0);break;default:o=t.jsx(Wv,{onPressEnter:S,onBlur:S,placeholder:r,type:i||"text"},void 0)}return o},S=async()=>{try{const t=await y.validateFields();let e={...n,...t};for(let t in e)m.default.isMoment(e[t])&&(e[t]=m.default(e[t]).format("YYYY-MM-DD"));d&&(e=await d(e)||e),b(e)}catch(t){console.log("保存表单字段失败:",t)}};let N=h;return o?N=t.jsx(fw.Item,Object.assign({style:{margin:0},name:a,rules:g?g.rules:void 0},{children:O(l,r)}),void 0):l&&(!c||"Select"!==l&&"AutoComplete"!==l||(N=zj(c,n[a])),n[s]&&"RecordSelect"===l&&(N=zj(n[s],n[a]))),u&&(N=u(n,N)),t.jsx("td",Object.assign({},v,{title:r},{children:N}),void 0)};function DR(t){var e=null;return function(){return null==e&&(e=t()),e}}function RR(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function MR(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var zR=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),MR(this,"entered",[]),MR(this,"isNodeInDocument",void 0),this.isNodeInDocument=e}var e,n,a;return e=t,(n=[{key:"enter",value:function(t){var e=this,n=this.entered.length;return this.entered=function(t,e){var n=new Set,a=function(t){return n.add(t)};t.forEach(a),e.forEach(a);var r=[];return n.forEach((function(t){return r.push(t)})),r}(this.entered.filter((function(n){return e.isNodeInDocument(n)&&(!n.contains||n.contains(t))})),[t]),0===n&&this.entered.length>0}},{key:"leave",value:function(t){var e,n,a=this.entered.length;return this.entered=(e=this.entered.filter(this.isNodeInDocument),n=t,e.filter((function(t){return t!==n}))),a>0&&0===this.entered.length}},{key:"reset",value:function(){this.entered=[]}}])&&RR(e.prototype,n),a&&RR(e,a),t}(),AR=DR((function(){return/firefox/i.test(navigator.userAgent)})),LR=DR((function(){return Boolean(window.safari)}));function _R(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function FR(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var VR=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),FR(this,"xs",void 0),FR(this,"ys",void 0),FR(this,"c1s",void 0),FR(this,"c2s",void 0),FR(this,"c3s",void 0);for(var a=e.length,r=[],o=0;o<a;o++)r.push(o);r.sort((function(t,n){return e[t]<e[n]?-1:1}));for(var i,l,c=[],s=[],u=0;u<a-1;u++)i=e[u+1]-e[u],l=n[u+1]-n[u],c.push(i),s.push(l/i);for(var d=[s[0]],p=0;p<c.length-1;p++){var f=s[p],m=s[p+1];if(f*m<=0)d.push(0);else{i=c[p];var h=c[p+1],g=i+h;d.push(3*g/((g+h)/f+(g+i)/m))}}d.push(s[s.length-1]);for(var b,v=[],y=[],x=0;x<d.length-1;x++){b=s[x];var w=d[x],k=1/c[x],C=w+d[x+1]-b-b;v.push((b-w-C)*k),y.push(C*k*k)}this.xs=e,this.ys=n,this.c1s=d,this.c2s=v,this.c3s=y}var e,n,a;return e=t,(n=[{key:"interpolate",value:function(t){var e=this.xs,n=this.ys,a=this.c1s,r=this.c2s,o=this.c3s,i=e.length-1;if(t===e[i])return n[i];for(var l,c=0,s=o.length-1;c<=s;){var u=e[l=Math.floor(.5*(c+s))];if(u<t)c=l+1;else{if(!(u>t))return n[l];s=l-1}}var d=t-e[i=Math.max(0,s)],p=d*d;return n[i]+a[i]*d+r[i]*p+o[i]*d*p}}])&&_R(e.prototype,n),a&&_R(e,a),t}();function KR(t){var e=1===t.nodeType?t:t.parentElement;if(!e)return null;var n=e.getBoundingClientRect(),a=n.top;return{x:n.left,y:a}}function HR(t){return{x:t.clientX,y:t.clientY}}function BR(t,e,n,a,r){var o,i,l="IMG"===(o=e).nodeName&&(AR()||!(null!==(i=document.documentElement)&&void 0!==i&&i.contains(o))),c=KR(l?t:e),s={x:n.x-c.x,y:n.y-c.y},u=t.offsetWidth,d=t.offsetHeight,p=a.anchorX,f=a.anchorY,m=function(t,e,n,a){var r=t?e.width:n,o=t?e.height:a;return LR()&&t&&(o/=window.devicePixelRatio,r/=window.devicePixelRatio),{dragPreviewWidth:r,dragPreviewHeight:o}}(l,e,u,d),h=m.dragPreviewWidth,g=m.dragPreviewHeight,b=r.offsetX,v=r.offsetY,y=0===v||v;return{x:0===b||b?b:new VR([0,.5,1],[s.x,s.x/u*h,s.x+h-u]).interpolate(p),y:y?v:function(){var t=new VR([0,.5,1],[s.y,s.y/d*g,s.y+g-d]).interpolate(f);return LR()&&l&&(t+=(window.devicePixelRatio-1)*g),t}()}}var UR,WR="__NATIVE_FILE__",YR="__NATIVE_URL__",qR="__NATIVE_TEXT__",$R="__NATIVE_HTML__",GR=Object.freeze({__proto__:null,FILE:WR,URL:YR,TEXT:qR,HTML:$R});function XR(t,e,n){var a=e.reduce((function(e,n){return e||t.getData(n)}),"");return null!=a?a:n}function ZR(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var JR=(ZR(UR={},WR,{exposeProperties:{files:function(t){return Array.prototype.slice.call(t.files)},items:function(t){return t.items},dataTransfer:function(t){return t}},matchesTypes:["Files"]}),ZR(UR,$R,{exposeProperties:{html:function(t,e){return XR(t,e,"")},dataTransfer:function(t){return t}},matchesTypes:["Html","text/html"]}),ZR(UR,YR,{exposeProperties:{urls:function(t,e){return XR(t,e,"").split("\n")},dataTransfer:function(t){return t}},matchesTypes:["Url","text/uri-list"]}),ZR(UR,qR,{exposeProperties:{text:function(t,e){return XR(t,e,"")},dataTransfer:function(t){return t}},matchesTypes:["Text","text/plain"]}),UR);function QR(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function tM(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var eM=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),tM(this,"item",void 0),tM(this,"config",void 0),this.config=e,this.item={},this.initializeExposedProperties()}var e,n,a;return e=t,(n=[{key:"initializeExposedProperties",value:function(){var t=this;Object.keys(this.config.exposeProperties).forEach((function(e){Object.defineProperty(t.item,e,{configurable:!0,enumerable:!0,get:function(){return console.warn("Browser doesn't allow reading \"".concat(e,'" until the drop event.')),null}})}))}},{key:"loadDataTransfer",value:function(t){var e=this;if(t){var n={};Object.keys(this.config.exposeProperties).forEach((function(a){n[a]={value:e.config.exposeProperties[a](t,e.config.matchesTypes),configurable:!0,enumerable:!0}})),Object.defineProperties(this.item,n)}}},{key:"canDrag",value:function(){return!0}},{key:"beginDrag",value:function(){return this.item}},{key:"isDragging",value:function(t,e){return e===t.getSourceId()}},{key:"endDrag",value:function(){}}])&&QR(e.prototype,n),a&&QR(e,a),t}();function nM(t){if(!t)return null;var e=Array.prototype.slice.call(t.types||[]);return Object.keys(JR).filter((function(t){return JR[t].matchesTypes.some((function(t){return e.indexOf(t)>-1}))}))[0]||null}function aM(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function rM(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var oM=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),rM(this,"ownerDocument",null),rM(this,"globalContext",void 0),rM(this,"optionsArgs",void 0),this.globalContext=e,this.optionsArgs=n}var e,n,a;return e=t,(n=[{key:"window",get:function(){return this.globalContext?this.globalContext:"undefined"!=typeof window?window:void 0}},{key:"document",get:function(){var t;return null!==(t=this.globalContext)&&void 0!==t&&t.document?this.globalContext.document:this.window?this.window.document:void 0}},{key:"rootElement",get:function(){var t;return(null===(t=this.optionsArgs)||void 0===t?void 0:t.rootElement)||this.window}}])&&aM(e.prototype,n),a&&aM(e,a),t}();function iM(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function lM(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?iM(Object(n),!0).forEach((function(e){sM(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):iM(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function cM(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function sM(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var uM=function(){function t(e,n,a){var r=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),sM(this,"options",void 0),sM(this,"actions",void 0),sM(this,"monitor",void 0),sM(this,"registry",void 0),sM(this,"enterLeaveCounter",void 0),sM(this,"sourcePreviewNodes",new Map),sM(this,"sourcePreviewNodeOptions",new Map),sM(this,"sourceNodes",new Map),sM(this,"sourceNodeOptions",new Map),sM(this,"dragStartSourceIds",null),sM(this,"dropTargetIds",[]),sM(this,"dragEnterTargetIds",[]),sM(this,"currentNativeSource",null),sM(this,"currentNativeHandle",null),sM(this,"currentDragSourceNode",null),sM(this,"altKeyPressed",!1),sM(this,"mouseMoveTimeoutTimer",null),sM(this,"asyncEndDragFrameId",null),sM(this,"dragOverTargetIds",null),sM(this,"lastClientOffset",null),sM(this,"hoverRafId",null),sM(this,"getSourceClientOffset",(function(t){var e=r.sourceNodes.get(t);return e&&KR(e)||null})),sM(this,"endDragNativeItem",(function(){r.isDraggingNativeItem()&&(r.actions.endDrag(),r.currentNativeHandle&&r.registry.removeSource(r.currentNativeHandle),r.currentNativeHandle=null,r.currentNativeSource=null)})),sM(this,"isNodeInDocument",(function(t){return Boolean(t&&r.document&&r.document.body&&r.document.body.contains(t))})),sM(this,"endDragIfSourceWasRemovedFromDOM",(function(){var t=r.currentDragSourceNode;null==t||r.isNodeInDocument(t)||r.clearCurrentDragSourceNode()&&r.monitor.isDragging()&&r.actions.endDrag()})),sM(this,"handleTopDragStartCapture",(function(){r.clearCurrentDragSourceNode(),r.dragStartSourceIds=[]})),sM(this,"handleTopDragStart",(function(t){if(!t.defaultPrevented){var e=r.dragStartSourceIds;r.dragStartSourceIds=null;var n=HR(t);r.monitor.isDragging()&&r.actions.endDrag(),r.actions.beginDrag(e||[],{publishSource:!1,getSourceClientOffset:r.getSourceClientOffset,clientOffset:n});var a=t.dataTransfer,o=nM(a);if(r.monitor.isDragging()){if(a&&"function"==typeof a.setDragImage){var i=r.monitor.getSourceId(),l=r.sourceNodes.get(i),c=r.sourcePreviewNodes.get(i)||l;if(c){var s=r.getCurrentSourcePreviewNodeOptions(),u=BR(l,c,n,{anchorX:s.anchorX,anchorY:s.anchorY},{offsetX:s.offsetX,offsetY:s.offsetY});a.setDragImage(c,u.x,u.y)}}try{null==a||a.setData("application/json",{})}catch(t){}r.setCurrentDragSourceNode(t.target),r.getCurrentSourcePreviewNodeOptions().captureDraggingState?r.actions.publishDragSource():setTimeout((function(){return r.actions.publishDragSource()}),0)}else if(o)r.beginDragNativeItem(o);else{if(a&&!a.types&&(t.target&&!t.target.hasAttribute||!t.target.hasAttribute("draggable")))return;t.preventDefault()}}})),sM(this,"handleTopDragEndCapture",(function(){r.clearCurrentDragSourceNode()&&r.monitor.isDragging()&&r.actions.endDrag()})),sM(this,"handleTopDragEnterCapture",(function(t){if(r.dragEnterTargetIds=[],r.enterLeaveCounter.enter(t.target)&&!r.monitor.isDragging()){var e=t.dataTransfer,n=nM(e);n&&r.beginDragNativeItem(n,e)}})),sM(this,"handleTopDragEnter",(function(t){var e=r.dragEnterTargetIds;(r.dragEnterTargetIds=[],r.monitor.isDragging())&&(r.altKeyPressed=t.altKey,e.length>0&&r.actions.hover(e,{clientOffset:HR(t)}),e.some((function(t){return r.monitor.canDropOnTarget(t)}))&&(t.preventDefault(),t.dataTransfer&&(t.dataTransfer.dropEffect=r.getCurrentDropEffect())))})),sM(this,"handleTopDragOverCapture",(function(){r.dragOverTargetIds=[]})),sM(this,"handleTopDragOver",(function(t){var e=r.dragOverTargetIds;if(r.dragOverTargetIds=[],!r.monitor.isDragging())return t.preventDefault(),void(t.dataTransfer&&(t.dataTransfer.dropEffect="none"));r.altKeyPressed=t.altKey,r.lastClientOffset=HR(t),null===r.hoverRafId&&"undefined"!=typeof requestAnimationFrame&&(r.hoverRafId=requestAnimationFrame((function(){r.monitor.isDragging()&&r.actions.hover(e||[],{clientOffset:r.lastClientOffset}),r.hoverRafId=null}))),(e||[]).some((function(t){return r.monitor.canDropOnTarget(t)}))?(t.preventDefault(),t.dataTransfer&&(t.dataTransfer.dropEffect=r.getCurrentDropEffect())):r.isDraggingNativeItem()?t.preventDefault():(t.preventDefault(),t.dataTransfer&&(t.dataTransfer.dropEffect="none"))})),sM(this,"handleTopDragLeaveCapture",(function(t){r.isDraggingNativeItem()&&t.preventDefault(),r.enterLeaveCounter.leave(t.target)&&r.isDraggingNativeItem()&&setTimeout((function(){return r.endDragNativeItem()}),0)})),sM(this,"handleTopDropCapture",(function(t){var e;(r.dropTargetIds=[],r.isDraggingNativeItem())?(t.preventDefault(),null===(e=r.currentNativeSource)||void 0===e||e.loadDataTransfer(t.dataTransfer)):nM(t.dataTransfer)&&t.preventDefault();r.enterLeaveCounter.reset()})),sM(this,"handleTopDrop",(function(t){var e=r.dropTargetIds;r.dropTargetIds=[],r.actions.hover(e,{clientOffset:HR(t)}),r.actions.drop({dropEffect:r.getCurrentDropEffect()}),r.isDraggingNativeItem()?r.endDragNativeItem():r.monitor.isDragging()&&r.actions.endDrag()})),sM(this,"handleSelectStart",(function(t){var e=t.target;"function"==typeof e.dragDrop&&("INPUT"===e.tagName||"SELECT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable||(t.preventDefault(),e.dragDrop()))})),this.options=new oM(n,a),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new zR(this.isNodeInDocument)}var e,n,a;return e=t,(n=[{key:"profile",value:function(){var t,e;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:(null===(t=this.dragStartSourceIds)||void 0===t?void 0:t.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:(null===(e=this.dragOverTargetIds)||void 0===e?void 0:e.length)||0}}},{key:"window",get:function(){return this.options.window}},{key:"document",get:function(){return this.options.document}},{key:"rootElement",get:function(){return this.options.rootElement}},{key:"setup",value:function(){var t=this.rootElement;if(void 0!==t){if(t.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");t.__isReactDndBackendSetUp=!0,this.addEventListeners(t)}}},{key:"teardown",value:function(){var t,e=this.rootElement;void 0!==e&&(e.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&(null===(t=this.window)||void 0===t||t.cancelAnimationFrame(this.asyncEndDragFrameId)))}},{key:"connectDragPreview",value:function(t,e,n){var a=this;return this.sourcePreviewNodeOptions.set(t,n),this.sourcePreviewNodes.set(t,e),function(){a.sourcePreviewNodes.delete(t),a.sourcePreviewNodeOptions.delete(t)}}},{key:"connectDragSource",value:function(t,e,n){var a=this;this.sourceNodes.set(t,e),this.sourceNodeOptions.set(t,n);var r=function(e){return a.handleDragStart(e,t)},o=function(t){return a.handleSelectStart(t)};return e.setAttribute("draggable","true"),e.addEventListener("dragstart",r),e.addEventListener("selectstart",o),function(){a.sourceNodes.delete(t),a.sourceNodeOptions.delete(t),e.removeEventListener("dragstart",r),e.removeEventListener("selectstart",o),e.setAttribute("draggable","false")}}},{key:"connectDropTarget",value:function(t,e){var n=this,a=function(e){return n.handleDragEnter(e,t)},r=function(e){return n.handleDragOver(e,t)},o=function(e){return n.handleDrop(e,t)};return e.addEventListener("dragenter",a),e.addEventListener("dragover",r),e.addEventListener("drop",o),function(){e.removeEventListener("dragenter",a),e.removeEventListener("dragover",r),e.removeEventListener("drop",o)}}},{key:"addEventListeners",value:function(t){t.addEventListener&&(t.addEventListener("dragstart",this.handleTopDragStart),t.addEventListener("dragstart",this.handleTopDragStartCapture,!0),t.addEventListener("dragend",this.handleTopDragEndCapture,!0),t.addEventListener("dragenter",this.handleTopDragEnter),t.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.addEventListener("dragover",this.handleTopDragOver),t.addEventListener("dragover",this.handleTopDragOverCapture,!0),t.addEventListener("drop",this.handleTopDrop),t.addEventListener("drop",this.handleTopDropCapture,!0))}},{key:"removeEventListeners",value:function(t){t.removeEventListener&&(t.removeEventListener("dragstart",this.handleTopDragStart),t.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),t.removeEventListener("dragend",this.handleTopDragEndCapture,!0),t.removeEventListener("dragenter",this.handleTopDragEnter),t.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.removeEventListener("dragover",this.handleTopDragOver),t.removeEventListener("dragover",this.handleTopDragOverCapture,!0),t.removeEventListener("drop",this.handleTopDrop),t.removeEventListener("drop",this.handleTopDropCapture,!0))}},{key:"getCurrentSourceNodeOptions",value:function(){var t=this.monitor.getSourceId(),e=this.sourceNodeOptions.get(t);return lM({dropEffect:this.altKeyPressed?"copy":"move"},e||{})}},{key:"getCurrentDropEffect",value:function(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}},{key:"getCurrentSourcePreviewNodeOptions",value:function(){var t=this.monitor.getSourceId();return lM({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(t)||{})}},{key:"isDraggingNativeItem",value:function(){var t=this.monitor.getItemType();return Object.keys(GR).some((function(e){return GR[e]===t}))}},{key:"beginDragNativeItem",value:function(t,e){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(t,e){var n=new eM(JR[t]);return n.loadDataTransfer(e),n}(t,e),this.currentNativeHandle=this.registry.addSource(t,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}},{key:"setCurrentDragSourceNode",value:function(t){var e=this;this.clearCurrentDragSourceNode(),this.currentDragSourceNode=t,this.mouseMoveTimeoutTimer=setTimeout((function(){var t;return null===(t=e.rootElement)||void 0===t?void 0:t.addEventListener("mousemove",e.endDragIfSourceWasRemovedFromDOM,!0)}),1e3)}},{key:"clearCurrentDragSourceNode",value:function(){var t;return!!this.currentDragSourceNode&&(this.currentDragSourceNode=null,this.rootElement&&(null===(t=this.window)||void 0===t||t.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)),this.mouseMoveTimeoutTimer=null,!0)}},{key:"handleDragStart",value:function(t,e){t.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(e))}},{key:"handleDragEnter",value:function(t,e){this.dragEnterTargetIds.unshift(e)}},{key:"handleDragOver",value:function(t,e){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(e)}},{key:"handleDrop",value:function(t,e){this.dropTargetIds.unshift(e)}}])&&cM(e.prototype,n),a&&cM(e,a),t}();const dM=function(t,e,n){return new uM(t,e,n)};function pM(n){const a=function(n){const a=e.useRef(dM);return n.children?t.jsx(PD,Object.assign({manager:a.current.dragDropManager},{children:n.children}),void 0):null}(n);return t.jsx(u.default.Fragment,{children:a},void 0)}b(".ant-table-wrapper .ant-table-thead>tr>th{font-weight:700}.ant-table-wrapper .ant-table-tbody>tr>td,.ant-table-wrapper .ant-table-thead>tr>td,.ant-table-wrapper .ant-table-thead>tr>th{padding:6px 8px}.ant-table-wrapper .ant-table-tbody>tr>td.ant-table-cell .ant-form-item .ant-form-item-control-input{min-height:auto}.ant-table-wrapper .ant-table-tbody .btn-operate{width:26px;height:26px}.ant-table-wrapper .ant-table-pagination.ant-pagination{margin-top:10px;margin-bottom:10px;padding-top:10px;padding-bottom:10px}.ant-table-wrapper .react-resizable{position:relative;background-clip:padding-box}.ant-table-wrapper .react-resizable-handle{position:absolute;right:-5px;bottom:0;z-index:1;width:10px;height:100%;cursor:col-resize}");var fM=u.default.memo(e.forwardRef(((n,a)=>{const r=e.useMemo((()=>{const t=n.extra||{};return{tableConfig:t.tableConfig,rowType:t.rowType,scroll:t.scroll,apiMethod:t.apiMethod,columns:t.columns||[],data:t.data,controlled:t.controlled,drag:t.drag,getTableSuccessData:t.getTableSuccessData,onSelect:t.onSelect,paginationConfig:t.paginationConfig,getCheckboxProps:t.getCheckboxProps}}),[n.extra]),o=e.useRef();let i=e.useRef(!0);const l=e.useRef({position:["bottomCenter"],size:"small",current:1,total:0,pages:0,pageSize:10,showSizeChanger:!0,orderByInfo:void 0}),c=e.useRef([]),s=e.useRef([]),[u,d]=e.useState(r.columns),[p,m]=e.useState(!1),[h,g]=e.useState([]),[b,v]=qj({selectRowIds:[],selectRowArray:[]}),[y,x]=e.useState({x:void 0,y:330}),w=e.useMemo((()=>r.tableConfig&&r.tableConfig.rowKey?r.tableConfig.rowKey:"id"),[r.tableConfig]),k=e.useCallback((async t=>{let e=!0;m(!0),t&&(void 0!==t.updateSelected&&(e=t.updateSelected,delete t.updateSelected),"not-reset"===t.pagination&&delete t.pagination,o.current={...o.current,...t});try{const n={...o.current};for(let t in l.current){const e=l.current[t];"orderByInfo"===t&&(n.orderByInfo=e),"current"===t&&(n.page=e),"pageSize"===t&&(n.size=n.size||e)}if(t&&t.current&&(n.page=t.current,l.current.current=t.current),r.apiMethod){delete n.current;const t=await r.apiMethod(f.default.pickBy(n,f.default.identity));let a=[];f.default.isArray(t.data.content)&&(!1!==r.paginationConfig?i.current=!0:i.current=!1,a=t.data.content,l.current.total=t.data.total,l.current.pages=t.data.pages),f.default.isArray(t.data)&&(i.current=!1,a=t.data),e&&v((t=>{let e=[...t.selectRowIds],n=[...t.selectRowArray];const r=a=>{if(t.selectRowIds.length)for(let o of a){for(let a of t.selectRowIds)o[w]===a&&(e.push(a),n.push(o));o.children&&r(o.children)}};return r(a),t.selectRowIds=f.default.unionBy(e),t.selectRowArray=f.default.unionBy(n,w),t})),g(a),r.getTableSuccessData&&r.getTableSuccessData(t)}}catch(t){}m(!1)}),[r,w,v]),C=e.useMemo((()=>({fixed:!0,type:r.rowType,selectedRowKeys:b.selectRowIds,getCheckboxProps:r.getCheckboxProps,onSelectAll:(t,e,n)=>{v((e=>{let a=[...e.selectRowIds],o=[...e.selectRowArray];return t?(a=f.default.uniq([...a,...n.map((t=>t[w]))]),o=f.default.uniqBy([...o,...n],w)):(a=a.filter((t=>!n.some((e=>e[w]===t)))),o=o.filter((t=>!n.some((e=>e[w]===t[w]))))),r.onSelect&&r.onSelect(o,a),e.selectRowIds=a,e.selectRowArray=o,e}))},onSelect:(t,e)=>{v((n=>{let a=[...n.selectRowIds],o=[...n.selectRowArray];return"checkbox"===r.rowType&&(e?(a.push(t[w]),o.push(t)):(a=a.filter((e=>e!==t[w])),o=o.filter((e=>e[w]!==t[w])))),"radio"===r.rowType&&e&&(a=[t[w]],o=[t]),r.onSelect&&r.onSelect(o,a),n.selectRowIds=a,n.selectRowArray=o,n}))}})),[r,w,v,b.selectRowIds]),E=t=>(e,{size:n})=>{d((e=>{const a=[...e];return a[t]={...a[t],width:n.width},c.current=a,a}))},O=e.useCallback((t=>{const e=!1===r.controlled?s.current:[...h],n=e.findIndex((e=>t[w]===e[w])),a=e[n];e.splice(n,1,{...a,...t}),!1===r.controlled?s.current=e:g(e)}),[w,h,r.controlled]),S=e.useCallback((async(t,e)=>{const n=h[t],a=tI(h,{$splice:[[t,1],[e,0,n]]});m(!0);try{if(r.drag){const n=JSON.parse(JSON.stringify(a)),o=JSON.parse(JSON.stringify(h)),i=[t,e].sort();!1!==await r.drag.moveRow(t,e,n,o,n.slice(i[0],i[1]+1))&&g(n)}}finally{m(!1)}}),[r.drag,h]);return e.useEffect((()=>{(async()=>{let t=[...r.columns];t.some((t=>"sequence"===t.dataIndex))||t.unshift({width:55,fixed:"left",title:"序号",dataIndex:"sequence",render:(t,e,n)=>{const a=l.current;return Object.keys(a).length?((a.current||0)-1)*(a.pageSize||0)+n+1:n+1}});for(let[e,n]of t.entries()){"RemoteSearch"===n.valueType&&n.remoteConfig&&n.remoteConfig.remoteApi&&(n.valueEnum=await n.remoteConfig.remoteApi());let a={...n,onHeaderCell:t=>({width:t.width,onResize:E(e)}),onCell:(t,e)=>({record:t,dataIndex:n.dataIndex,title:n.title,editable:"function"==typeof n.editable?n.editable(t,e):n.editable,inputType:n.inputType,valueType:n.valueType,valueEnum:n.valueEnum,recordSelectField:n.recordSelectField,controlRender:n.controlRender,formChange:n.formChange,remoteConfig:n.remoteConfig,formItemProps:n.formItemProps,handleSave:O})},r=c.current.find((t=>t.dataIndex===n.dataIndex&&t.title===n.title));r&&(a.width=r.width),t[e]=a}d(t)})()}),[r.columns,O]),e.useEffect((()=>{v((t=>{let e=[];const n=t=>{for(let a of t){for(let t of b.selectRowIds)a[w]===t&&e.push(a);a.children&&n(a.children)}};return b.selectRowIds.length&&(n(h),e=f.default.unionBy([...t.selectRowArray,...e],w)),t.selectRowArray=e,t}))}),[w,h,v,b.selectRowIds]),e.useEffect((()=>{f.default.isArray(r.data)&&g(r.data||[])}),[r.data]),e.useEffect((()=>{s.current=JSON.parse(JSON.stringify(h))}),[h]),e.useEffect((()=>{const t=document.getElementById("slider-menu"),e=document.getElementById("router-render");if(void 0!==r.scroll?.x||void 0!==r.scroll?.y)x((t=>({...t,...r.scroll})));else if(t&&e){let n=parseInt(window.getComputedStyle(e,null).paddingLeft);x((e=>(e.x=document.body.clientWidth-t.clientWidth-(2*n+43),e)))}}),[r.scroll]),e.useEffect((()=>{r.paginationConfig&&(l.current={...l.current,...r.paginationConfig})}),[r.paginationConfig]),e.useImperativeHandle(a,(()=>({setTableLoading:t=>{m(t)},getPages:()=>({...l.current}),getTableList:async(t,e)=>{t&&("not-reset"===t.pagination?t.current=l.current.current:void 0===t.current&&(t.current=1),t.clearSelectIds&&(delete t.clearSelectIds,v((t=>(t.selectRowArray=[],t.selectRowIds=[],t))))),await k(t),e&&e()},setRowSelected:(t,e)=>{let n=t;!0===e&&(n=Array.from(new Set([...b.selectRowIds,...t]))),v({selectRowIds:n})},getSelectIds:()=>b.selectRowIds,clearSelectIds:()=>{v({selectRowIds:[],selectRowArray:[]})},getSelectRowsArray:()=>b.selectRowArray,removeSelectIds:t=>{v({selectRowIds:b.selectRowIds.filter((e=>{let n=!0;for(let a of t)if(a===e){n=!1;break}return n})),selectRowArray:b.selectRowArray.filter((e=>{let n=!0;for(let a of t)if(a===e[w]){n=!1;break}return n}))})},getStaticDataList:()=>!1===r.controlled?[...s.current]:[...h],setStaticDataList:(t,e)=>{if("[object Object]"===Object.prototype.toString.call(t)){let e=t;g(h.map((n=>(n[w]===e[w]&&(n=t),n))))}"[object Array]"===Object.prototype.toString.call(t)&&g(t),e&&e()}}))),t.jsx(Wj,{children:t.jsx(pM,{children:t.jsx(rS,Object.assign({rowKey:"id",rowClassName:"editable-row",loading:p,bordered:!0,components:{header:{cell:II},body:{row:IR,cell:TR}},onRow:(t,e)=>({index:e,moveRow:S,open:r.drag&&r.drag.open}),columns:u,dataSource:h,rowSelection:r.rowType?C:void 0,pagination:!(!f.default.isFunction(r.apiMethod)||!i.current)&&{size:"small",position:["bottomCenter"],showTotal:t=>`共${t}条`,showSizeChanger:!0,showQuickJumper:!0,...l.current},onChange:(t,e,n)=>{const{order:a}=n;t.orderByInfo=void 0,a&&(t.orderByInfo=`${n.field}:${"ascend"===a?1:-1}`),(t=>{!f.default.isEqual(t,l.current)&&i.current&&(l.current={...l.current,...t},k())})(t)},scroll:y},r.tableConfig),void 0)},void 0)},void 0)})),Rj);b("");var mM=u.default.memo((function(e){const n={...e};return delete n.outerHeight,t.jsx(sv,Object.assign({className:"empty-wrap",style:{minHeight:e&&e.outerHeight?e.outerHeight:400},align:"middle",justify:"center"},{children:t.jsx(da,Object.assign({description:"暂无数据"},n),void 0)}),void 0)}));b(".from-table-modal .ant-modal-body{padding-top:15px}.from-table-modal .ant-modal-body .search-form{margin-bottom:8px}.from-table-modal .ant-modal-body .ant-table-wrapper .ant-pagination{margin-bottom:0}.from-table-modal .from-table-modal-foot{margin-top:20px}");const{Link:hM,Paragraph:gM}=PP;var bM=e.forwardRef((function(n,a){const r=e.useRef(null),o=e.useRef(),[i,l]=qj({saveLoading:!1,selectedRows:[]}),c=e.useMemo((()=>n.tableColumnsList&&n.tableColumnsList.tableConfig&&n.tableColumnsList.tableConfig.rowKey||"id"),[n.tableColumnsList]),s=e.useMemo((()=>{const t=n.width||0;return t>=500&&t<=800?{span:7}:t>800&&t<=1e3?{span:6}:t>1e3&&t<=1200?{span:5}:t>1200?{span:4}:{span:8}}),[n.width]),u=(t,e)=>{if(o.current){let n=[],a=[];"all"===t&&o.current.clearSelectIds(),"odd"===t&&e&&(n=[e[c]],a=i.selectedRows.filter((t=>t[c]!==e[c])),o.current.removeSelectIds(n)),l({selectedRows:a})}},d=e.useCallback((async()=>{if(r.current&&o.current){let t=await r.current.formSubmit();if(t&&Object.keys(t).length){for(let e in t){const n="YYYY-MM-DD HH:mm:ss";m.default(t[e],n,!0).isValid()&&(t[e]=m.default(t[e]).format(n))}t={clearSelectIds:!0,...t},void 0!==n.clearSelectIds&&(t.clearSelectIds=n.clearSelectIds),n.manualParameterChange&&(t=n.manualParameterChange(t)),n.searchCallback?n.searchCallback(t).then((e=>{e&&o.current?.getTableList(t)})):o.current.getTableList(t)}}else o.current?.getTableList()}),[n]),p=()=>{if(r.current){let t=[];const e=n.searchNoResetFiled||[];if(n.searchFormList)for(let a of n.searchFormList){if(a.unionConfig)for(let n of a.unionConfig.unionItems)n.name&&!e.includes(n.name)&&t.push(n.name);a.name&&!e.includes(a.name)&&t.push(a.name)}r.current.formReset(t)}d()};return e.useEffect((()=>{n.visible&&(n.autoGetList&&d(),n.openSelected&&n.openSelected.visible&&l((t=>(t.selectedRows=n.openSelected?.defaultValues||[],o.current?.setRowSelected(t.selectedRows.map((t=>t[c]))),t))))}),[d,n.autoGetList,n.openSelected,n.visible,c,l]),e.useImperativeHandle(a,(()=>({...r.current,...o.current,setSavaLoading:t=>{l({saveLoading:t})}}))),t.jsxs(Dj,Object.assign({className:"from-table-modal",width:n.width,visible:n.visible,title:n.title||"弹窗",onCancel:n.onCancel,forceRender:!0,maskClosable:!1,footer:null},{children:[n.topExtra,n.searchFormList?t.jsx(Qj,{ref:r,rowGridConfig:{gutter:10},colGirdConfig:s,list:(f=n.searchFormList,f?f.map((t=>("Select"===t.componentName&&t.selectData&&t.selectData.length&&(t.selectData.some((t=>"全部"===t.label))||(t.selectData=[{label:"全部",value:""},...t.selectData])),t))):[]),formConfig:n.formConfig,render:()=>n.searchFormList&&n.searchFormList.length?t.jsxs(wC,Object.assign({size:10},{children:[t.jsx(op,Object.assign({type:"primary",onClick:()=>{d()}},{children:"查询"}),void 0),t.jsx(op,Object.assign({className:"btn-reset",onClick:p},{children:"重置"}),void 0)]}),void 0):t.jsx(t.Fragment,{},void 0)},void 0):null,t.jsxs(sv,Object.assign({},n.rowProps,{children:[n.leftSlot?t.jsx(pv,Object.assign({},n.leftSlot.colProps,{children:n.leftSlot.jsx}),void 0):null,t.jsx(pv,Object.assign({},n.colProps,{children:t.jsxs(sv,Object.assign({gutter:10},{children:[t.jsx(pv,Object.assign({span:n.openSelected&&n.openSelected.visible?16:24},{children:t.jsx(fM,{ref:o,extra:{rowType:n.tableColumnsList.rowType,apiMethod:n.apiMethod,columns:n.tableColumnsList.list,data:n.data,onSelect:(t,e)=>{((t,e)=>{l({selectedRows:e.map((e=>{let a={};const r=t.find((t=>t[c]===e));if(a[c]=e,n.openSelected&&n.openSelected.fileName&&(a[n.openSelected.fileName]=e),r&&(a=r),n.openSelected){const t=n.openSelected.fileName,r=n.openSelected.defaultValues;if(t&&r){const n=r.find((t=>t[c]===e));n&&(a[t]=n[t])}}return a}))})})(t,e),n.onSelect&&n.onSelect(t,e)},getTableSuccessData:n.getTableSuccessData,tableConfig:n.tableColumnsList.tableConfig,scroll:{x:"max-content"}}},void 0)}),void 0),n.openSelected&&n.openSelected.visible?t.jsx(pv,Object.assign({span:8},{children:t.jsx(mv,Object.assign({title:"已选列表",size:"small",bodyStyle:{height:n.openSelected.height||330,overflowY:"auto"},extra:t.jsx(hM,Object.assign({onClick:()=>u("all")},{children:"全部移除"}),void 0)},{children:i.selectedRows.length?i.selectedRows.map((e=>{const a=e[c],r=e[n.openSelected?.fileName];return t.jsxs(sv,Object.assign({gutter:12},{children:[t.jsx(pv,Object.assign({span:11,title:r},{children:t.jsx(gM,Object.assign({ellipsis:!0},{children:r}),void 0)}),void 0),t.jsx(pv,Object.assign({span:9,title:a},{children:t.jsx(gM,Object.assign({ellipsis:!0},{children:a}),void 0)}),void 0),t.jsx(pv,Object.assign({span:4},{children:t.jsx(hM,Object.assign({onClick:()=>u("odd",e)},{children:"移除"}),void 0)}),void 0)]}),a)})):t.jsx(mM,{outerHeight:200},void 0)}),void 0)}),void 0):null]}),void 0)}),void 0),n.rightSlot?t.jsx(pv,Object.assign({},n.rightSlot.colProps,{children:n.rightSlot.jsx}),void 0):null]}),void 0),t.jsx(sv,Object.assign({className:"from-table-modal-foot",justify:"center"},{children:t.jsx(pv,{children:t.jsxs(wC,Object.assign({size:20},{children:[n.onCancel?t.jsx(op,Object.assign({onClick:()=>n.onCancel&&n.onCancel()},{children:"关闭"}),void 0):null,n.onConfirm?t.jsx(op,Object.assign({type:"primary",loading:i.saveLoading,onClick:()=>{let t=[],e=[];t=n.openSelected&&n.openSelected.visible?i.selectedRows:o.current?.getSelectRowsArray()||[],n.onConfirm&&(o.current&&(e=o.current.getSelectIds()),l({saveLoading:!0}),n.onConfirm(t,e).then((t=>{l({saveLoading:!1}),t&&n.onCancel&&n.onCancel()})).catch((t=>{l({saveLoading:!1}),ni.warn(t,1.5)})))}},{children:"确定"}),void 0):null]}),void 0)},void 0)}),void 0)]}),void 0);var f})),vM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm104 316.9c0 10.2-4.9 19.9-13.2 25.9L457.4 512l145.4 105.2c8.3 6 13.2 15.6 13.2 25.9V690c0 6.5-7.4 10.3-12.7 6.5l-246-178a7.95 7.95 0 010-12.9l246-178a8 8 0 0112.7 6.5v46.8z"}}]},name:"left-circle",theme:"filled"},yM=function(t,n){return e.createElement(Eo,de(de({},t),{},{ref:n,icon:vM}))};yM.displayName="LeftCircleFilled";var xM=e.forwardRef(yM),wM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm154.7 454.5l-246 178c-5.3 3.8-12.7 0-12.7-6.5v-46.9c0-10.2 4.9-19.9 13.2-25.9L566.6 512 421.2 406.8c-8.3-6-13.2-15.6-13.2-25.9V334c0-6.5 7.4-10.3 12.7-6.5l246 178c4.4 3.2 4.4 9.8 0 13z"}}]},name:"right-circle",theme:"filled"},kM=function(t,n){return e.createElement(Eo,de(de({},t),{},{ref:n,icon:wM}))};kM.displayName="RightCircleFilled";var CM=e.forwardRef(kM);b(".quickly-form-modal .ant-modal-body{padding-top:15px}.quickly-form-modal .quickly-form-modal-foot{margin-top:20px}");var EM=u.default.memo((n=>{const a=e.useRef(),r=e.useRef({page:1,pages:1,size:10}),[o,i]=qj({id:void 0,saveLoading:!1,data:[]}),l={fontSize:24},c=e.useCallback(((t,e)=>t.map((t=>{if(e)for(let n of e)t[n]&&(t[n]=m.default(t[n]));return t}))),[]),s=e.useCallback((async t=>{if(n.apiMethod)try{let e="";const a=await n.apiMethod(r.current);console.log("getList useCallback",a,"queryPagination.current",r.current);const o=a.data.content;r.current.pages=a.data.pages,"up"===t&&(e=o[o.length-1].id),"down"===t&&(e=o[0].id),i({id:e||n.id,data:o})}catch(t){}}),[n,i]),u=e.useMemo((()=>{let t=0;for(let[e,n]of o.data.entries())if(n.id===o.id){t=e;break}return t}),[o.data,o.id]),d=e.useCallback((async()=>{if(n.apiMethod){if(1===r.current.page&&0===u)return ni.destroy(),void ni.warn("已经是第一页啦~",1.5);if(u-1<0)return r.current.page=r.current.page-1,s("up"),void(n.onChange&&n.onChange(o.data[u],r.current))}else if(0===u)return ni.destroy(),void ni.warn("已经是第一个啦~",1.5);if(a.current){const t=await a.current.formSubmit();if(t){t.id=o.data[u].id;try{const e=o.data[u-1];console.log("cutIndexObj",e),n.submitApi(t,"put"),n.onChange&&n.onChange(e,r.current),i((n=>(n.id=e.id,n.data[u]={...n.data[u],...t},n)))}catch(t){}}}}),[u,s,n,i,o.data]),p=e.useCallback((async()=>{if(n.apiMethod){if(r.current.page===r.current.pages&&u===o.data.length-1)return ni.destroy(),void ni.warn("已经是最后一页啦~",1.5);if(u+1>=o.data.length)return r.current.page=r.current.page+1,s("down"),void(n.onChange&&n.onChange(o.data[u],r.current))}else if(0===o.data.length||u===o.data.length-1)return ni.destroy(),void ni.warn("已经是最后一个啦~",1.5);if(a.current){const t=await a.current.formSubmit();if(t){t.id=o.data[u].id;try{const e=o.data[u+1];console.log("cutIndexObj",e),n.submitApi(t,"put"),n.onChange&&n.onChange(e,r.current),i((n=>(n.id=e.id,n.data[u]={...n.data[u],...t},n)))}catch(t){}}}}),[u,s,n,i,o.data]),f=e.useCallback((async t=>{if("PageUp"===t.key&&(d(),t.preventDefault()),"PageDown"===t.key&&(p(),t.preventDefault()),"Enter"===t.key&&a.current){const t=await a.current.formSubmit();t.id=o.data[u].id;try{n.submitApi(t,"put"),ni.success("保存成功",1.5)}catch(t){}}}),[u,p,d,n,o.data]),h=e.useCallback((async()=>{if(n.methodParams){let t=["page","pages","size"],e={},a=await n.methodParams;for(let n in r.current)for(let a of t)n===a&&(e[a]=r.current[n]);e={...e,...a},e.page=a.page?a.page.current:1,r.current=e}}),[n.methodParams]);return e.useEffect((()=>{n.visible&&setTimeout((()=>{a.current&&a.current.setFormValues(o.data[u])}),100)}),[u,n.visible,o.data]),e.useEffect((()=>{n.visible&&(n.apiMethod?h().then((()=>{s()})):i({id:n.id,data:c(n.data,n.transformTime)}))}),[h,s,n.apiMethod,n.data,n.id,n.transformTime,n.visible,i,c]),e.useEffect((()=>(n.visible?document.addEventListener("keydown",f):document.removeEventListener("keydown",f),()=>{document.removeEventListener("keydown",f)})),[f,n.visible]),t.jsx(Dj,Object.assign({className:"quickly-form-modal",width:n.width?n.width:960,visible:n.visible,title:n.title||"快速编辑信息",onCancel:()=>{n.onCancel&&n.onCancel(r.current)},maskClosable:!1,destroyOnClose:!0,footer:null},{children:t.jsxs(sv,Object.assign({className:"modal-form-height",gutter:16,align:"middle",wrap:!1},{children:[t.jsx(pv,Object.assign({flex:"60px"},{children:t.jsx(sv,Object.assign({justify:"center"},{children:t.jsx(pv,{children:t.jsx(xM,{className:"circle-filled",style:l,onClick:d},void 0)},void 0)}),void 0)}),void 0),t.jsx(pv,Object.assign({flex:"auto"},{children:t.jsx(Qj,{ref:a,formConfig:{labelCol:{span:24}},rowGridConfig:{gutter:[20,0]},colGirdConfig:{span:6},list:n.formList},void 0)}),void 0),t.jsx(pv,Object.assign({flex:"60px"},{children:t.jsx(sv,Object.assign({justify:"center"},{children:t.jsx(pv,{children:t.jsx(CM,{className:"circle-filled",style:l,onClick:p},void 0)},void 0)}),void 0)}),void 0)]}),void 0)}),void 0)}),Rj);b(".form-modal .ant-modal-body{padding-top:15px}.form-modal .ant-modal-body .modal-form-height{max-height:580px;padding-right:5px;overflow-x:hidden;overflow-y:auto}.form-modal .ant-modal-body .modal-form-height .generate-form.ant-form-horizontal.ant-form .ant-row.ant-form-item{margin-bottom:4px}.form-modal .form-modal-foot{margin-top:20px}");var OM=e.forwardRef(((n,a)=>{const r=e.useRef(),[o,i]=qj({loading:!1,saveLoading:!1,disabled:!1});return e.useEffect((()=>{!1===n.visible&&i({saveLoading:!1})}),[n.visible,i]),e.useEffect((()=>{i({disabled:n.disable})}),[n.disable,i]),e.useImperativeHandle(a,(()=>({setFormLoading:t=>{i({loading:t})},setFormSaveLoading:t=>{i({saveLoading:t})},setFormFields:t=>{r.current&&r.current.setFormFields(t)},getFormValues:t=>r.current?.getFormValues(t),setFormValues:t=>{r.current&&r.current.setFormValues(t)},getFormSubmitValues:async()=>r.current?await(r.current?.formSubmit()):{}}))),t.jsx(Dj,Object.assign({className:"form-modal",width:n.width?n.width:600,visible:n.visible,title:n.title||"对话框",onCancel:n.onCancel,destroyOnClose:!0,maskClosable:!1,footer:null},{children:t.jsxs(Dw,Object.assign({spinning:o.loading},{children:[t.jsxs("div",Object.assign({className:"modal-form-height"},{children:[n.topRender?n.topRender:null,t.jsx(Qj,{ref:r,formConfig:{labelCol:{span:24},...n.formConfig},rowGridConfig:{gutter:[20,0]},colGirdConfig:n.colGirdConfig||{span:12},list:n.formList},void 0),n.children&&n.children]}),void 0),n.footer?n.footer:t.jsx(sv,Object.assign({className:"form-modal-foot",justify:"center"},{children:t.jsx(pv,{children:t.jsxs(wC,Object.assign({size:20},{children:[t.jsx(op,Object.assign({onClick:()=>n.onCancel&&n.onCancel()},{children:"关闭"}),void 0),!o.disabled&&t.jsx(op,Object.assign({type:"primary",loading:o.saveLoading,onClick:async()=>{let t=await(r.current?.formSubmit());if(t){if(t.endTime&&t.startTime&&m.default(t.endTime).isBefore(t.startTime))return void ni.warn("生效日期不能大于失效日期",1.5);i({saveLoading:!0});try{let e={};if(t={...t,...n.submitExtraParameters},n.switchTransform)for(let e=0;e<n.switchTransform.length;e++)t[n.switchTransform[e]]?t[n.switchTransform[e]]="1":t[n.switchTransform[e]]="0";if(n.submitRemoveField)for(let e=0;e<n.submitRemoveField.length;e++)t[n.submitRemoveField[e]]&&delete t[n.submitRemoveField[e]];for(let e in t){const n="YYYY-MM-DD HH:mm:ss";m.default(t[e],n,!0).isValid()&&(t[e]=m.default(t[e]).format(n))}if(n.manualParameterChange&&(t=n.manualParameterChange(t)),n.manualVerification&&!n.manualVerification(t))return console.warn("手动验证表单不通过"),void i({saveLoading:!1});t=f.default.omitBy(t,f.default.isNil),n.submitApi&&t?(n.id?(t.id=n.id,e=await n.submitApi(t,"put")):e=await n.submitApi(t,"post"),1===e.code&&(n.onConfirm&&n.onConfirm(e),ni.success("操作成功",1.5),n.onCancel&&n.onCancel()),i({saveLoading:!1})):n.onConfirm&&t&&n.onConfirm(t)}catch(t){i({saveLoading:!1})}}}},{children:"提交"}),void 0)]}),void 0)},void 0)}),void 0)]}),void 0)}),void 0)}));b('@import "https://at.alicdn.com/t/font_2381668_l6oy3doglyo.css";.icon-selected-modal .avatar-selected{display:flex;align-items:center;justify-content:center;width:36px;height:36px;overflow:hidden;border:2px solid #fff;border-radius:4px;cursor:pointer}.icon-selected-modal .avatar-selected.avatar-selected-bg{border-color:#5860f8}.icon-selected-modal .icon-selected-foot{margin-top:20px}');var SM=u.default.memo((e=>{const[n,a]=qj({iconModal:{selected:-1,list:["iconmove","iconmap","iconnotice","iconpassword","iconNotvisible1","iconphone","iconpic1","iconpin","iconproduct","iconQRcode1","iconreeor","iconreduce","iconresonserate","iconremind","iconrising1","iconRightarrow","iconrmb1","iconsave","iconscanning","iconseleted","iconsearchcart","iconshare","iconRightbutton","iconsorting","iconsound-Mute","iconsound-filling","iconsuggest","iconsuccess","iconsupplier-features","iconswitch","iconsuspended","iconTop","iconsmile","icontradealert","icontopsales","icontradingvolume","iconupload","iconviewlarger","iconwarning","iconset","iconDaytimemode","iconunlock","iconexchangerate","iconall","iconbussiness-man","iconcomponent","iconcode","iconcopy","icondollar","iconhistory","iconeditor","icondata","icongift","iconintegral","iconnav-list","iconpic","iconNotvisible","iconplay","iconQRcode","iconrmb","iconsimilar-product","iconExportservices","iconsendinquiry","iconcolumn","iconadd-account","iconcolumn1","iconadd","iconadd-cart","iconarrow-right","iconarrow-left","iconall1","iconarrow-up","iconashbin","iconatm","iconbad","iconattachent","iconbrowse","iconcalendar","iconcart-full","iconcalculator","iconcameraswitching","iconcecurity-protection","iconcategory","iconclose","iconcertified-supplier","iconcart-Empty","iconcode1","iconcopy1","iconcoupons","iconconnections","iconcry","iconclock","iconCurrencyConverter","iconcut","icondata1","iconCustomermanagement","icondouble-arro-right","iconcustomization","icondouble-arrow-left","icondiscount","icondownload","icondollar1","icondefault-template","iconeditor1","iconetrical-equipm","iconellipsis","iconemail","iconfalling","iconfilter","iconfolder","iconhelp","icongood","icongift1","iconhot","iconinspection","iconleftbutton","iconleftarrow","iconlink","iconloading","iconphone1"]}}),r={height:34,fontSize:22};return t.jsxs(Dj,Object.assign({className:"icon-selected-modal",width:e.width?e.width:590,visible:e.visible,title:e.title?e.title:"图标选择",onCancel:e.onCancel,destroyOnClose:!0,maskClosable:!1,footer:null},{children:[t.jsx(sv,Object.assign({gutter:[10,10]},{children:n.iconModal.list.map(((e,o)=>t.jsx(pv,{children:t.jsx("div",Object.assign({className:`avatar-selected ${o===n.iconModal.selected?"avatar-selected-bg":null}`,onClick:()=>{a((t=>(t.iconModal.selected=o,t)))}},{children:t.jsx("i",{className:`iconfont ${e}`,title:e,style:r},void 0)}),void 0)},o)))}),void 0),t.jsx(sv,Object.assign({className:"icon-selected-foot",justify:"center"},{children:t.jsx(pv,{children:t.jsxs(wC,Object.assign({size:20},{children:[t.jsx(op,Object.assign({onClick:e.onCancel},{children:"关闭"}),void 0),t.jsx(op,Object.assign({type:"primary",onClick:()=>{const t=n.iconModal.list[n.iconModal.selected];e.onConfirm&&e.onConfirm(t)}},{children:"确定"}),void 0)]}),void 0)},void 0)}),void 0)]}),void 0)}),Rj);b(".button-group{position:relative;display:inline-flex;align-items:center;justify-content:center;height:30px;padding:3px 15px;font-size:12px;line-height:1.15;white-space:nowrap;text-align:center;background-color:#f2f2f3;background-image:none;border:0;border-radius:4px;outline:none;box-shadow:0 2px 0 rgba(0,0,0,.015);cursor:pointer;transition:all .3s cubic-bezier(.645,.045,.355,1);user-select:none;touch-action:manipulation}.button-group:hover{background-color:#e3e5e6}.button-group-large{height:40px}.button-group-small{height:26px}.button-group-primary{color:#fff;background-color:#5860f8}.button-group-primary:hover{background-color:#828cff}.button-group .anticon{margin-left:5px;font-size:12px}.button-group .anticon.anticon-close{position:absolute;top:-5px;right:-5px;display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;color:#fff;font-size:10px;background-color:#878d99;border-radius:100%}");var NM=u.default.memo(e.forwardRef((function(n,a){const[r,o]=qj({type:"checkbox",deleteOpen:!1,data:[]}),i=t=>{let e="button-group";return n.buttonClassName&&(e=`${e} ${n.buttonClassName}`),n.size&&(e=`${e} button-group-${n.size}`),t.selected&&(e=`${e} button-group-primary`),e};return e.useEffect((()=>{if(n.checkType&&o({type:n.checkType}),n.deleteOpen&&o({deleteOpen:n.deleteOpen}),n.data){const t=n.data.map((t=>(void 0===t.selected&&(t.selected=!1),t)));o({data:t})}}),[n,o]),e.useImperativeHandle(a,(()=>({getButtonGroupSelected:()=>r.data.filter((t=>t.selected))}))),t.jsx(sv,Object.assign({className:n.className,gutter:[10,10]},{children:r.data.map(((e,a)=>t.jsx(pv,{children:t.jsxs("div",Object.assign({className:i(e),onClick:()=>((t,e)=>{let a=[];n.deleteOpen||(r.data&&("checkbox"===r.type&&(r.data[e].selected=!t.selected,a=r.data),"radio"===r.type&&(a=r.data.map(((n,a)=>{let r=!1;return e===a&&(r=!t.selected),{...n,selected:r}})))),n.onChange&&n.onChange(a),o({data:a}))})(e,a)},{children:[e.name,r.deleteOpen?t.jsx(li,{onClick:()=>(t=>{if(r.data){const e=r.data.filter(((e,n)=>t!==n));n.onChange&&n.onChange(e),o({data:e})}})(a)},void 0):null]}),void 0)},a)))}),void 0)})),Rj);exports.Affix=Ij,exports.ButtonGroup=NM,exports.Dialog=Dj,exports.Empty=mM,exports.GaoDeMap=Aj,exports.GenerateForm=Qj,exports.GenerateTable=fM,exports.IconSelectionModal=SM,exports.LayoutFormModal=OM,exports.LayoutTableModal=bM,exports.QuicklyProcessForms=EM,exports.TreeNode=Gj,exports.Upload=Yj;
|
|
19
|
+
*/function uI(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}var dI=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var a={};return"abcdefghijklmnopqrst".split("").forEach((function(t){a[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},a)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var n,a,r=uI(t),o=1;o<arguments.length;o++){for(var i in n=Object(arguments[o]))cI.call(n,i)&&(r[i]=n[i]);if(lI){a=lI(n);for(var l=0;l<a.length;l++)sI.call(n,a[l])&&(r[a[l]]=n[a[l]])}}return r},pI="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",fI=function(){};if("production"!==process.env.NODE_ENV){var mI=pI,hI={},gI=Function.call.bind(Object.prototype.hasOwnProperty);fI=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}}}function bI(t,e,n,a,r){if("production"!==process.env.NODE_ENV)for(var o in t)if(gI(t,o)){var i;try{if("function"!=typeof t[o]){var l=Error((a||"React class")+": "+n+" type `"+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[o]+"`.");throw l.name="Invariant Violation",l}i=t[o](e,o,a,n,null,mI)}catch(t){i=t}if(!i||i instanceof Error||fI((a||"React class")+": type specification of "+n+" `"+o+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof i+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),i instanceof Error&&!(i.message in hI)){hI[i.message]=!0;var c=r?r():"";fI("Failed "+n+" type: "+i.message+(null!=c?c:""))}}}bI.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(hI={})};var vI=bI,yI=Function.call.bind(Object.prototype.hasOwnProperty),xI=function(){};function wI(){return null}"production"!==process.env.NODE_ENV&&(xI=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}});var kI=function(t,e){var n="function"==typeof Symbol&&Symbol.iterator;var a="<<anonymous>>",r={array:c("array"),bool:c("boolean"),func:c("function"),number:c("number"),object:c("object"),string:c("string"),symbol:c("symbol"),any:l(wI),arrayOf:function(t){return l((function(e,n,a,r,o){if("function"!=typeof t)return new i("Property `"+o+"` of component `"+a+"` has invalid PropType notation inside arrayOf.");var l=e[n];if(!Array.isArray(l))return new i("Invalid "+r+" `"+o+"` of type `"+u(l)+"` supplied to `"+a+"`, expected an array.");for(var c=0;c<l.length;c++){var s=t(l,c,a,r,o+"["+c+"]",pI);if(s instanceof Error)return s}return null}))},element:l((function(e,n,a,r,o){var l=e[n];return t(l)?null:new i("Invalid "+r+" `"+o+"` of type `"+u(l)+"` supplied to `"+a+"`, expected a single ReactElement.")})),elementType:l((function(t,e,n,a,r){var o=t[e];return lt.isValidElementType(o)?null:new i("Invalid "+a+" `"+r+"` of type `"+u(o)+"` supplied to `"+n+"`, expected a single ReactElement type.")})),instanceOf:function(t){return l((function(e,n,r,o,l){if(!(e[n]instanceof t)){var c=t.name||a;return new i("Invalid "+o+" `"+l+"` of type `"+(((s=e[n]).constructor&&s.constructor.name?s.constructor.name:a)+"` supplied to `")+r+"`, expected instance of `"+c+"`.")}var s;return null}))},node:l((function(t,e,n,a,r){return s(t[e])?null:new i("Invalid "+a+" `"+r+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(t){return l((function(e,n,a,r,o){if("function"!=typeof t)return new i("Property `"+o+"` of component `"+a+"` has invalid PropType notation inside objectOf.");var l=e[n],c=u(l);if("object"!==c)return new i("Invalid "+r+" `"+o+"` of type `"+c+"` supplied to `"+a+"`, expected an object.");for(var s in l)if(yI(l,s)){var d=t(l,s,a,r,o+"."+s,pI);if(d instanceof Error)return d}return null}))},oneOf:function(t){if(!Array.isArray(t))return"production"!==process.env.NODE_ENV&&xI(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),wI;function e(e,n,a,r,l){for(var c=e[n],s=0;s<t.length;s++)if(o(c,t[s]))return null;var u=JSON.stringify(t,(function(t,e){return"symbol"===d(e)?String(e):e}));return new i("Invalid "+r+" `"+l+"` of value `"+String(c)+"` supplied to `"+a+"`, expected one of "+u+".")}return l(e)},oneOfType:function(t){if(!Array.isArray(t))return"production"!==process.env.NODE_ENV&&xI("Invalid argument supplied to oneOfType, expected an instance of array."),wI;for(var e=0;e<t.length;e++){var n=t[e];if("function"!=typeof n)return xI("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+p(n)+" at index "+e+"."),wI}return l((function(e,n,a,r,o){for(var l=0;l<t.length;l++)if(null==(0,t[l])(e,n,a,r,o,pI))return null;return new i("Invalid "+r+" `"+o+"` supplied to `"+a+"`.")}))},shape:function(t){return l((function(e,n,a,r,o){var l=e[n],c=u(l);if("object"!==c)return new i("Invalid "+r+" `"+o+"` of type `"+c+"` supplied to `"+a+"`, expected `object`.");for(var s in t){var d=t[s];if(d){var p=d(l,s,a,r,o+"."+s,pI);if(p)return p}}return null}))},exact:function(t){return l((function(e,n,a,r,o){var l=e[n],c=u(l);if("object"!==c)return new i("Invalid "+r+" `"+o+"` of type `"+c+"` supplied to `"+a+"`, expected `object`.");var s=dI({},e[n],t);for(var d in s){var p=t[d];if(!p)return new i("Invalid "+r+" `"+o+"` key `"+d+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(e[n],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(t),null," "));var f=p(l,d,a,r,o+"."+d,pI);if(f)return f}return null}))}};function o(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function i(t){this.message=t,this.stack=""}function l(t){if("production"!==process.env.NODE_ENV)var n={},r=0;function o(o,l,c,s,u,d,p){if(s=s||a,d=d||c,p!==pI){if(e){var f=new 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 f.name="Invariant Violation",f}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var m=s+":"+c;!n[m]&&r<3&&(xI("You are manually calling a React.PropTypes validation function for the `"+d+"` prop on `"+s+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),n[m]=!0,r++)}}return null==l[c]?o?null===l[c]?new i("The "+u+" `"+d+"` is marked as required in `"+s+"`, but its value is `null`."):new i("The "+u+" `"+d+"` is marked as required in `"+s+"`, but its value is `undefined`."):null:t(l,c,s,u,d)}var l=o.bind(null,!1);return l.isRequired=o.bind(null,!0),l}function c(t){return l((function(e,n,a,r,o,l){var c=e[n];return u(c)!==t?new i("Invalid "+r+" `"+o+"` of type `"+d(c)+"` supplied to `"+a+"`, expected `"+t+"`."):null}))}function s(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(s);if(null===e||t(e))return!0;var a=function(t){var e=t&&(n&&t[n]||t["@@iterator"]);if("function"==typeof e)return e}(e);if(!a)return!1;var r,o=a.call(e);if(a!==e.entries){for(;!(r=o.next()).done;)if(!s(r.value))return!1}else for(;!(r=o.next()).done;){var i=r.value;if(i&&!s(i[1]))return!1}return!0;default:return!1}}function u(t){var e=typeof t;return Array.isArray(t)?"array":t instanceof RegExp?"object":function(t,e){return"symbol"===t||!!e&&("Symbol"===e["@@toStringTag"]||"function"==typeof Symbol&&e instanceof Symbol)}(e,t)?"symbol":e}function d(t){if(null==t)return""+t;var e=u(t);if("object"===e){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return e}function p(t){var e=d(t);switch(e){case"array":case"object":return"an "+e;case"boolean":case"date":case"regexp":return"a "+e;default:return e}}return i.prototype=Error.prototype,r.checkPropTypes=vI,r.resetWarningCache=vI.resetWarningCache,r.PropTypes=r,r};function CI(){}function EI(){}EI.resetWarningCache=CI;var OI=T((function(t){if("production"!==process.env.NODE_ENV){var e=lt;t.exports=kI(e.isElement,!0)}else t.exports=function(){function t(t,e,n,a,r,o){if(o!==pI){var i=new 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 i.name="Invariant Violation",i}}function e(){return t}t.isRequired=t;var n={array: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:EI,resetWarningCache:CI};return n.PropTypes=n,n}()})),SI=T((function(t,e){e.__esModule=!0,e.resizableProps=void 0;var n=function(t){return t&&t.__esModule?t:{default:t}}(OI);var a={axis:n.default.oneOf(["both","x","y","none"]),className:n.default.string,children:n.default.element.isRequired,draggableOpts:n.default.shape({allowAnyClick:n.default.bool,cancel:n.default.string,children:n.default.node,disabled:n.default.bool,enableUserSelectHack:n.default.bool,offsetParent:n.default.node,grid:n.default.arrayOf(n.default.number),handle:n.default.string,nodeRef:n.default.object,onStart:n.default.func,onDrag:n.default.func,onStop:n.default.func,onMouseDown:n.default.func,scale:n.default.number}),height:n.default.number.isRequired,handle:n.default.oneOfType([n.default.node,n.default.func]),handleSize:n.default.arrayOf(n.default.number),lockAspectRatio:n.default.bool,maxConstraints:n.default.arrayOf(n.default.number),minConstraints:n.default.arrayOf(n.default.number),onResizeStop:n.default.func,onResizeStart:n.default.func,onResize:n.default.func,resizeHandles:n.default.arrayOf(n.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),transformScale:n.default.number,width:n.default.number.isRequired};e.resizableProps=a})),NI=T((function(t,e){e.__esModule=!0,e.default=void 0;var n=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=r(e);if(n&&n.has(t))return n.get(t);var a={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if("default"!==i&&Object.prototype.hasOwnProperty.call(t,i)){var l=o?Object.getOwnPropertyDescriptor(t,i):null;l&&(l.get||l.set)?Object.defineProperty(a,i,l):a[i]=t[i]}a.default=t,n&&n.set(t,a);return a}(u.default),a=["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"];function r(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(r=function(t){return t?n:e})(t)}function o(){return(o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t}).apply(this,arguments)}function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){c(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var d=function(t){var e,r;function i(){for(var e,n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];return(e=t.call.apply(t,[this].concat(a))||this).handleRefs={},e.lastHandleRect=null,e.slack=null,e}r=t,(e=i).prototype=Object.create(r.prototype),e.prototype.constructor=e,s(e,r);var c=i.prototype;return c.componentWillUnmount=function(){this.resetData()},c.resetData=function(){this.lastHandleRect=this.slack=null},c.runConstraints=function(t,e){var n=this.props,a=n.minConstraints,r=n.maxConstraints,o=n.lockAspectRatio;if(!a&&!r&&!o)return[t,e];if(o){var i=this.props.width/this.props.height,l=t-this.props.width,c=e-this.props.height;Math.abs(l)>Math.abs(c*i)?e=t/i:t=e*i}var s=t,u=e,d=this.slack||[0,0],p=d[0],f=d[1];return t+=p,e+=f,a&&(t=Math.max(a[0],t),e=Math.max(a[1],e)),r&&(t=Math.min(r[0],t),e=Math.min(r[1],e)),this.slack=[p+(s-t),f+(u-e)],[t,e]},c.resizeHandler=function(t,e){var n=this;return function(a,r){var o=r.node,i=r.deltaX,l=r.deltaY;"onResizeStart"===t&&n.resetData();var c=("both"===n.props.axis||"x"===n.props.axis)&&"n"!==e&&"s"!==e,s=("both"===n.props.axis||"y"===n.props.axis)&&"e"!==e&&"w"!==e;if(c||s){var u=e[0],d=e[e.length-1],p=o.getBoundingClientRect();if(null!=n.lastHandleRect){if("w"===d)i+=p.left-n.lastHandleRect.left;if("n"===u)l+=p.top-n.lastHandleRect.top}n.lastHandleRect=p,"w"===d&&(i=-i),"n"===u&&(l=-l);var f=n.props.width+(c?i/n.props.transformScale:0),m=n.props.height+(s?l/n.props.transformScale:0),h=n.runConstraints(f,m);f=h[0],m=h[1];var g=f!==n.props.width||m!==n.props.height,b="function"==typeof n.props[t]?n.props[t]:null;b&&!("onResize"===t&&!g)&&(null==a.persist||a.persist(),b(a,{node:o,size:{width:f,height:m},handle:e})),"onResizeStop"===t&&n.resetData()}}},c.renderResizeHandle=function(t,e){var a=this.props.handle;if(!a)return n.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+t,ref:e});if("function"==typeof a)return a(t,e);var r=l({ref:e},"string"==typeof a.type?{}:{handleAxis:t});return n.cloneElement(a,r)},c.render=function(){var t=this,e=this.props,r=e.children,i=e.className,c=e.draggableOpts;e.width,e.height,e.handle,e.handleSize,e.lockAspectRatio,e.axis,e.minConstraints,e.maxConstraints,e.onResize,e.onResizeStop,e.onResizeStart;var s=e.resizeHandles;e.transformScale;var u=function(t,e){if(null==t)return{};var n,a,r={},o=Object.keys(t);for(a=0;a<o.length;a++)n=o[a],e.indexOf(n)>=0||(r[n]=t[n]);return r}(e,a);return(0,iI.cloneElement)(r,l(l({},u),{},{className:(i?i+" ":"")+"react-resizable",children:[].concat(r.props.children,s.map((function(e){var a,r=null!=(a=t.handleRefs[e])?a:t.handleRefs[e]=n.createRef();return n.createElement(p.default.DraggableCore,o({},c,{nodeRef:r,key:"resizableHandle-"+e,onStop:t.resizeHandler("onResizeStop",e),onStart:t.resizeHandler("onResizeStart",e),onDrag:t.resizeHandler("onResize",e)}),t.renderResizeHandle(e,r))})))}))},i}(n.Component);e.default=d,d.propTypes=SI.resizableProps,d.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1}})),PI=T((function(t,e){e.__esModule=!0,e.default=void 0;var n=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=l(e);if(n&&n.has(t))return n.get(t);var a={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var i=r?Object.getOwnPropertyDescriptor(t,o):null;i&&(i.get||i.set)?Object.defineProperty(a,o,i):a[o]=t[o]}a.default=t,n&&n.set(t,a);return a}(u.default),a=i(OI),r=i(NI),o=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function i(t){return t&&t.__esModule?t:{default:t}}function l(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(l=function(t){return t?n:e})(t)}function c(){return(c=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t}).apply(this,arguments)}function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){p(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function p(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var m=function(t){var e,a;function i(){for(var e,n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];return(e=t.call.apply(t,[this].concat(a))||this).state={width:e.props.width,height:e.props.height,propsWidth:e.props.width,propsHeight:e.props.height},e.onResize=function(t,n){var a=n.size;e.props.onResize?(null==t.persist||t.persist(),e.setState(a,(function(){return e.props.onResize&&e.props.onResize(t,n)}))):e.setState(a)},e}return a=t,(e=i).prototype=Object.create(a.prototype),e.prototype.constructor=e,f(e,a),i.getDerivedStateFromProps=function(t,e){return e.propsWidth!==t.width||e.propsHeight!==t.height?{width:t.width,height:t.height,propsWidth:t.width,propsHeight:t.height}:null},i.prototype.render=function(){var t=this.props,e=t.handle,a=t.handleSize;t.onResize;var i=t.onResizeStart,l=t.onResizeStop,s=t.draggableOpts,u=t.minConstraints,p=t.maxConstraints,f=t.lockAspectRatio,m=t.axis;t.width,t.height;var h=t.resizeHandles,g=t.style,b=t.transformScale,v=function(t,e){if(null==t)return{};var n,a,r={},o=Object.keys(t);for(a=0;a<o.length;a++)n=o[a],e.indexOf(n)>=0||(r[n]=t[n]);return r}(t,o);return n.createElement(r.default,{axis:m,draggableOpts:s,handle:e,handleSize:a,height:this.state.height,lockAspectRatio:f,maxConstraints:p,minConstraints:u,onResizeStart:i,onResize:this.onResize,onResizeStop:l,resizeHandles:h,transformScale:b,width:this.state.width},n.createElement("div",c({},v,{style:d(d({},g),{},{width:this.state.width+"px",height:this.state.height+"px"})})))},i}(n.Component);e.default=m,m.propTypes=d(d({},SI.resizableProps),{},{children:a.default.element})})),jI=NI.default;PI.default;const II=e=>{const{onResize:n,width:a,...r}=e;return a?t.jsx(jI,Object.assign({width:a,height:0,handle:t.jsx("span",{className:"react-resizable-handle",onClick:t=>{t.stopPropagation()}},void 0),onResize:n,draggableOpts:{enableUserSelectHack:!1}},{children:t.jsx("th",Object.assign({},r),void 0)}),void 0):t.jsx("th",Object.assign({},r),void 0)};var TI,DI=e.createContext({dragDropManager:void 0});function RI(t,e){for(var n=arguments.length,a=new Array(n>2?n-2:0),r=2;r<n;r++)a[r-2]=arguments[r];if("production"!==process.env.NODE_ENV&&void 0===e)throw new Error("invariant requires an error message argument");if(!t){var o;if(void 0===e)o=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var i=0;(o=new Error(e.replace(/%s/g,(function(){return a[i++]})))).name="Invariant Violation"}throw o.framesToPop=1,o}}!function(t){t.SOURCE="SOURCE",t.TARGET="TARGET"}(TI||(TI={}));var MI="dnd-core/INIT_COORDS",zI="dnd-core/BEGIN_DRAG",AI="dnd-core/PUBLISH_DRAG_SOURCE",LI="dnd-core/HOVER",_I="dnd-core/DROP",FI="dnd-core/END_DRAG";function VI(t,e){return{type:MI,payload:{sourceClientOffset:e||null,clientOffset:t||null}}}function KI(t){return(KI="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function HI(t,e,n){return e.split(".").reduce((function(t,e){return t&&t[e]?t[e]:n||null}),t)}function BI(t,e){return t.filter((function(t){return t!==e}))}function UI(t){return"object"===KI(t)}function WI(t,e){var n=new Map,a=function(t){n.set(t,n.has(t)?n.get(t)+1:1)};t.forEach(a),e.forEach(a);var r=[];return n.forEach((function(t,e){1===t&&r.push(e)})),r}var YI={type:MI,payload:{clientOffset:null,sourceClientOffset:null}};function qI(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{publishSource:!0},a=n.publishSource,r=void 0===a||a,o=n.clientOffset,i=n.getSourceClientOffset,l=t.getMonitor(),c=t.getRegistry();t.dispatch(VI(o)),$I(e,l,c);var s=ZI(e,l);if(null!==s){var u=null;if(o){if(!i)throw new Error("getSourceClientOffset must be defined");GI(i),u=i(s)}t.dispatch(VI(o,u));var d=c.getSource(s),p=d.beginDrag(l,s);if(null!=p){XI(p),c.pinSource(s);var f=c.getSourceType(s);return{type:zI,payload:{itemType:f,item:p,sourceId:s,clientOffset:o||null,sourceClientOffset:u||null,isSourcePublic:!!r}}}}else t.dispatch(YI)}}function $I(t,e,n){RI(!e.isDragging(),"Cannot call beginDrag while dragging."),t.forEach((function(t){RI(n.getSource(t),"Expected sourceIds to be registered.")}))}function GI(t){RI("function"==typeof t,"When clientOffset is provided, getSourceClientOffset must be a function.")}function XI(t){RI(UI(t),"Item must be an object.")}function ZI(t,e){for(var n=null,a=t.length-1;a>=0;a--)if(e.canDragSource(t[a])){n=t[a];break}return n}function JI(t){return function(){if(t.getMonitor().isDragging())return{type:AI}}}function QI(t,e){return null===e?null===t:Array.isArray(t)?t.some((function(t){return t===e})):t===e}function tT(t){return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=n.clientOffset;eT(e);var r=e.slice(0),o=t.getMonitor(),i=t.getRegistry();nT(r,o,i);var l=o.getItemType();return aT(r,i,l),rT(r,o,i),{type:LI,payload:{targetIds:r,clientOffset:a||null}}}}function eT(t){RI(Array.isArray(t),"Expected targetIds to be an array.")}function nT(t,e,n){RI(e.isDragging(),"Cannot call hover while not dragging."),RI(!e.didDrop(),"Cannot call hover after drop.");for(var a=0;a<t.length;a++){var r=t[a];RI(t.lastIndexOf(r)===a,"Expected targetIds to be unique in the passed array."),RI(n.getTarget(r),"Expected targetIds to be registered.")}}function aT(t,e,n){for(var a=t.length-1;a>=0;a--){var r=t[a];QI(e.getTargetType(r),n)||t.splice(a,1)}}function rT(t,e,n){t.forEach((function(t){n.getTarget(t).hover(e,t)}))}function oT(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function iT(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?oT(Object(n),!0).forEach((function(e){lT(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):oT(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function lT(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function cT(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.getMonitor(),a=t.getRegistry();sT(n);var r=dT(n);r.forEach((function(r,o){var i=uT(r,o,a,n),l={type:_I,payload:{dropResult:iT(iT({},e),i)}};t.dispatch(l)}))}}function sT(t){RI(t.isDragging(),"Cannot call drop while not dragging."),RI(!t.didDrop(),"Cannot call drop twice during one drag operation.")}function uT(t,e,n,a){var r=n.getTarget(t),o=r?r.drop(a,t):void 0;return function(t){RI(void 0===t||UI(t),"Drop result must either be an object or undefined.")}(o),void 0===o&&(o=0===e?{}:a.getDropResult()),o}function dT(t){var e=t.getTargetIds().filter(t.canDropOnTarget,t);return e.reverse(),e}function pT(t){return function(){var e=t.getMonitor(),n=t.getRegistry();!function(t){RI(t.isDragging(),"Cannot call endDrag while not dragging.")}(e);var a=e.getSourceId();null!=a&&(n.getSource(a,!0).endDrag(e,a),n.unpinSource());return{type:FI}}}function fT(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function mT(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var hT=function(){function t(e,n){var a=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),mT(this,"store",void 0),mT(this,"monitor",void 0),mT(this,"backend",void 0),mT(this,"isSetUp",!1),mT(this,"handleRefCountChange",(function(){var t=a.store.getState().refCount>0;a.backend&&(t&&!a.isSetUp?(a.backend.setup(),a.isSetUp=!0):!t&&a.isSetUp&&(a.backend.teardown(),a.isSetUp=!1))})),this.store=e,this.monitor=n,e.subscribe(this.handleRefCountChange)}var e,n,a;return e=t,(n=[{key:"receiveBackend",value:function(t){this.backend=t}},{key:"getMonitor",value:function(){return this.monitor}},{key:"getBackend",value:function(){return this.backend}},{key:"getRegistry",value:function(){return this.monitor.registry}},{key:"getActions",value:function(){var t=this,e=this.store.dispatch,n=function(t){return{beginDrag:qI(t),publishDragSource:JI(t),hover:tT(t),drop:cT(t),endDrag:pT(t)}}(this);return Object.keys(n).reduce((function(a,r){var o,i=n[r];return a[r]=(o=i,function(){for(var n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];var i=o.apply(t,a);void 0!==i&&e(i)}),a}),{})}},{key:"dispatch",value:function(t){this.store.dispatch(t)}}])&&fT(e.prototype,n),a&&fT(e,a),t}();function gT(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var bT="function"==typeof Symbol&&Symbol.observable||"@@observable",vT=function(){return Math.random().toString(36).substring(7).split("").join(".")},yT={INIT:"@@redux/INIT"+vT(),REPLACE:"@@redux/REPLACE"+vT(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+vT()}};function xT(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function wT(t){if(void 0===t)return"undefined";if(null===t)return"null";var e=typeof t;switch(e){case"boolean":case"string":case"number":case"symbol":case"function":return e}if(Array.isArray(t))return"array";if(function(t){return t instanceof Date||"function"==typeof t.toDateString&&"function"==typeof t.getDate&&"function"==typeof t.setDate}(t))return"date";if(function(t){return t instanceof Error||"string"==typeof t.message&&t.constructor&&"number"==typeof t.constructor.stackTraceLimit}(t))return"error";var n=function(t){return"function"==typeof t.constructor?t.constructor.name:null}(t);switch(n){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return n}return e.slice(8,-1).toLowerCase().replace(/\s/g,"")}function kT(t){var e=typeof t;return"production"!==process.env.NODE_ENV&&(e=wT(t)),e}function CT(t,e,n){var a;if("function"==typeof e&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error("production"===process.env.NODE_ENV?gT(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if("function"==typeof e&&void 0===n&&(n=e,e=void 0),void 0!==n){if("function"!=typeof n)throw new Error("production"===process.env.NODE_ENV?gT(1):"Expected the enhancer to be a function. Instead, received: '"+kT(n)+"'");return n(CT)(t,e)}if("function"!=typeof t)throw new Error("production"===process.env.NODE_ENV?gT(2):"Expected the root reducer to be a function. Instead, received: '"+kT(t)+"'");var r=t,o=e,i=[],l=i,c=!1;function s(){l===i&&(l=i.slice())}function u(){if(c)throw new Error("production"===process.env.NODE_ENV?gT(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return o}function d(t){if("function"!=typeof t)throw new Error("production"===process.env.NODE_ENV?gT(4):"Expected the listener to be a function. Instead, received: '"+kT(t)+"'");if(c)throw new Error("production"===process.env.NODE_ENV?gT(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var e=!0;return s(),l.push(t),function(){if(e){if(c)throw new Error("production"===process.env.NODE_ENV?gT(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");e=!1,s();var n=l.indexOf(t);l.splice(n,1),i=null}}}function p(t){if(!xT(t))throw new Error("production"===process.env.NODE_ENV?gT(7):"Actions must be plain objects. Instead, the actual type was: '"+kT(t)+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");if(void 0===t.type)throw new Error("production"===process.env.NODE_ENV?gT(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(c)throw new Error("production"===process.env.NODE_ENV?gT(9):"Reducers may not dispatch actions.");try{c=!0,o=r(o,t)}finally{c=!1}for(var e=i=l,n=0;n<e.length;n++){(0,e[n])()}return t}function f(t){if("function"!=typeof t)throw new Error("production"===process.env.NODE_ENV?gT(10):"Expected the nextReducer to be a function. Instead, received: '"+kT(t));r=t,p({type:yT.REPLACE})}function m(){var t,e=d;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error("production"===process.env.NODE_ENV?gT(11):"Expected the observer to be an object. Instead, received: '"+kT(t)+"'");function n(){t.next&&t.next(u())}return n(),{unsubscribe:e(n)}}})[bT]=function(){return this},t}return p({type:yT.INIT}),(a={dispatch:p,subscribe:d,getState:u,replaceReducer:f})[bT]=m,a}function ET(){}"production"!==process.env.NODE_ENV&&"string"==typeof ET.name&&"isCrushed"!==ET.name&&function(t){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(t);try{throw new Error(t)}catch(t){}}('You are currently using minified code outside of NODE_ENV === "production". This means that you are running a slower development build of Redux. You can use loose-envify (https://github.com/zertosh/loose-envify) for browserify or setting mode to production in webpack (https://webpack.js.org/concepts/mode/) to ensure you have the correct code for your production build.');var OT=function(t,e){return t===e};function ST(t,e){return!t&&!e||!(!t||!e)&&(t.x===e.x&&t.y===e.y)}function NT(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:OT;if(t.length!==e.length)return!1;for(var a=0;a<t.length;++a)if(!n(t[a],e[a]))return!1;return!0}function PT(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function jT(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?PT(Object(n),!0).forEach((function(e){IT(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):PT(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function IT(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var TT={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function DT(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:TT,e=arguments.length>1?arguments[1]:void 0,n=e.payload;switch(e.type){case MI:case zI:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case LI:return ST(t.clientOffset,n.clientOffset)?t:jT(jT({},t),{},{clientOffset:n.clientOffset});case FI:case _I:return TT;default:return t}}var RT="dnd-core/ADD_SOURCE",MT="dnd-core/ADD_TARGET",zT="dnd-core/REMOVE_SOURCE",AT="dnd-core/REMOVE_TARGET";function LT(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function _T(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?LT(Object(n),!0).forEach((function(e){FT(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):LT(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function FT(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var VT={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function KT(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:VT,e=arguments.length>1?arguments[1]:void 0,n=e.payload;switch(e.type){case zI:return _T(_T({},t),{},{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case AI:return _T(_T({},t),{},{isSourcePublic:!0});case LI:return _T(_T({},t),{},{targetIds:n.targetIds});case AT:return-1===t.targetIds.indexOf(n.targetId)?t:_T(_T({},t),{},{targetIds:BI(t.targetIds,n.targetId)});case _I:return _T(_T({},t),{},{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case FI:return _T(_T({},t),{},{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return t}}function HT(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case RT:case MT:return t+1;case zT:case AT:return t-1;default:return t}}var BT=[],UT=[];function WT(t,e){return t!==BT&&(t===UT||void 0===e||(n=t,e.filter((function(t){return n.indexOf(t)>-1}))).length>0);var n}function YT(){var t=arguments.length>1?arguments[1]:void 0;switch(t.type){case LI:break;case RT:case MT:case AT:case zT:return BT;case zI:case AI:case FI:case _I:default:return UT}var e=t.payload,n=e.targetIds,a=void 0===n?[]:n,r=e.prevTargetIds,o=void 0===r?[]:r,i=WI(a,o),l=i.length>0||!NT(a,o);if(!l)return BT;var c=o[o.length-1],s=a[a.length-1];return c!==s&&(c&&i.push(c),s&&i.push(s)),i}function qT(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return t+1}function $T(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function GT(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?$T(Object(n),!0).forEach((function(e){XT(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):$T(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function XT(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ZT(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:YT(t.dirtyHandlerIds,{type:e.type,payload:GT(GT({},e.payload),{},{prevTargetIds:HI(t,"dragOperation.targetIds",[])})}),dragOffset:DT(t.dragOffset,e),refCount:HT(t.refCount,e),dragOperation:KT(t.dragOperation,e),stateId:qT(t.stateId)}}function JT(t,e){return{x:t.x-e.x,y:t.y-e.y}}function QT(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function tD(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}BT.__IS_NONE__=!0,UT.__IS_ALL__=!0;var eD=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),tD(this,"store",void 0),tD(this,"registry",void 0),this.store=e,this.registry=n}var e,n,a;return e=t,(n=[{key:"subscribeToStateChange",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{handlerIds:void 0},a=n.handlerIds;RI("function"==typeof t,"listener must be a function."),RI(void 0===a||Array.isArray(a),"handlerIds, when specified, must be an array of strings.");var r=this.store.getState().stateId,o=function(){var n=e.store.getState(),o=n.stateId;try{o===r||o===r+1&&!WT(n.dirtyHandlerIds,a)||t()}finally{r=o}};return this.store.subscribe(o)}},{key:"subscribeToOffsetChange",value:function(t){var e=this;RI("function"==typeof t,"listener must be a function.");var n=this.store.getState().dragOffset;return this.store.subscribe((function(){var a=e.store.getState().dragOffset;a!==n&&(n=a,t())}))}},{key:"canDragSource",value:function(t){if(!t)return!1;var e=this.registry.getSource(t);return RI(e,"Expected to find a valid source. sourceId=".concat(t)),!this.isDragging()&&e.canDrag(this,t)}},{key:"canDropOnTarget",value:function(t){if(!t)return!1;var e=this.registry.getTarget(t);return RI(e,"Expected to find a valid target. targetId=".concat(t)),!(!this.isDragging()||this.didDrop())&&QI(this.registry.getTargetType(t),this.getItemType())&&e.canDrop(this,t)}},{key:"isDragging",value:function(){return Boolean(this.getItemType())}},{key:"isDraggingSource",value:function(t){if(!t)return!1;var e=this.registry.getSource(t,!0);return RI(e,"Expected to find a valid source. sourceId=".concat(t)),!(!this.isDragging()||!this.isSourcePublic())&&this.registry.getSourceType(t)===this.getItemType()&&e.isDragging(this,t)}},{key:"isOverTarget",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shallow:!1};if(!t)return!1;var n=e.shallow;if(!this.isDragging())return!1;var a=this.registry.getTargetType(t),r=this.getItemType();if(r&&!QI(a,r))return!1;var o=this.getTargetIds();if(!o.length)return!1;var i=o.indexOf(t);return n?i===o.length-1:i>-1}},{key:"getItemType",value:function(){return this.store.getState().dragOperation.itemType}},{key:"getItem",value:function(){return this.store.getState().dragOperation.item}},{key:"getSourceId",value:function(){return this.store.getState().dragOperation.sourceId}},{key:"getTargetIds",value:function(){return this.store.getState().dragOperation.targetIds}},{key:"getDropResult",value:function(){return this.store.getState().dragOperation.dropResult}},{key:"didDrop",value:function(){return this.store.getState().dragOperation.didDrop}},{key:"isSourcePublic",value:function(){return Boolean(this.store.getState().dragOperation.isSourcePublic)}},{key:"getInitialClientOffset",value:function(){return this.store.getState().dragOffset.initialClientOffset}},{key:"getInitialSourceClientOffset",value:function(){return this.store.getState().dragOffset.initialSourceClientOffset}},{key:"getClientOffset",value:function(){return this.store.getState().dragOffset.clientOffset}},{key:"getSourceClientOffset",value:function(){return t=this.store.getState().dragOffset,e=t.clientOffset,n=t.initialClientOffset,a=t.initialSourceClientOffset,e&&n&&a?JT(function(t,e){return{x:t.x+e.x,y:t.y+e.y}}(e,a),n):null;var t,e,n,a}},{key:"getDifferenceFromInitialOffset",value:function(){return t=this.store.getState().dragOffset,e=t.clientOffset,n=t.initialClientOffset,e&&n?JT(e,n):null;var t,e,n}}])&&QT(e.prototype,n),a&&QT(e,a),t}(),nD=0;function aD(t){return(aD="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function rD(t,e){e&&Array.isArray(t)?t.forEach((function(t){return rD(t,!1)})):RI("string"==typeof t||"symbol"===aD(t),e?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}const oD="undefined"!=typeof global?global:self,iD=oD.MutationObserver||oD.WebKitMutationObserver;function lD(t){return function(){const e=setTimeout(a,0),n=setInterval(a,50);function a(){clearTimeout(e),clearInterval(n),t()}}}const cD="function"==typeof iD?function(t){let e=1;const n=new iD(t),a=document.createTextNode("");return n.observe(a,{characterData:!0}),function(){e=-e,a.data=e}}:lD;class sD{call(){try{this.task&&this.task()}catch(t){this.onError(t)}finally{this.task=null,this.release(this)}}constructor(t,e){this.onError=t,this.release=e,this.task=null}}const uD=new class{enqueueTask(t){const{queue:e,requestFlush:n}=this;e.length||(n(),this.flushing=!0),e[e.length]=t}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:t}=this;for(;this.index<t.length;){const e=this.index;if(this.index++,t[e].call(),this.index>this.capacity){for(let e=0,n=t.length-this.index;e<n;e++)t[e]=t[e+this.index];t.length-=this.index,this.index=0}}t.length=0,this.index=0,this.flushing=!1},this.registerPendingError=t=>{this.pendingErrors.push(t),this.requestErrorThrow()},this.requestFlush=cD(this.flush),this.requestErrorThrow=lD((()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()}))}},dD=new class{create(t){const e=this.freeTasks,n=e.length?e.pop():new sD(this.onError,(t=>e[e.length]=t));return n.task=t,n}constructor(t){this.onError=t,this.freeTasks=[]}}(uD.registerPendingError);function pD(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function fD(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function mD(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var a,r,o=[],i=!0,l=!1;try{for(n=n.call(t);!(i=(a=n.next()).done)&&(o.push(a.value),!e||o.length!==e);i=!0);}catch(t){l=!0,r=t}finally{try{i||null==n.return||n.return()}finally{if(l)throw r}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return hD(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hD(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function hD(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,a=new Array(e);n<e;n++)a[n]=t[n];return a}function gD(t){var e=(nD++).toString();switch(t){case TI.SOURCE:return"S".concat(e);case TI.TARGET:return"T".concat(e);default:throw new Error("Unknown Handler Role: ".concat(t))}}function bD(t){switch(t[0]){case"S":return TI.SOURCE;case"T":return TI.TARGET;default:RI(!1,"Cannot parse handler ID: ".concat(t))}}function vD(t,e){var n=t.entries(),a=!1;do{var r=n.next(),o=r.done;if(mD(r.value,2)[1]===e)return!0;a=!!o}while(!a);return!1}var yD=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),fD(this,"types",new Map),fD(this,"dragSources",new Map),fD(this,"dropTargets",new Map),fD(this,"pinnedSourceId",null),fD(this,"pinnedSource",null),fD(this,"store",void 0),this.store=e}var e,n,a;return e=t,(n=[{key:"addSource",value:function(t,e){rD(t),function(t){RI("function"==typeof t.canDrag,"Expected canDrag to be a function."),RI("function"==typeof t.beginDrag,"Expected beginDrag to be a function."),RI("function"==typeof t.endDrag,"Expected endDrag to be a function.")}(e);var n=this.addHandler(TI.SOURCE,t,e);return this.store.dispatch(function(t){return{type:RT,payload:{sourceId:t}}}(n)),n}},{key:"addTarget",value:function(t,e){rD(t,!0),function(t){RI("function"==typeof t.canDrop,"Expected canDrop to be a function."),RI("function"==typeof t.hover,"Expected hover to be a function."),RI("function"==typeof t.drop,"Expected beginDrag to be a function.")}(e);var n=this.addHandler(TI.TARGET,t,e);return this.store.dispatch(function(t){return{type:MT,payload:{targetId:t}}}(n)),n}},{key:"containsHandler",value:function(t){return vD(this.dragSources,t)||vD(this.dropTargets,t)}},{key:"getSource",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];RI(this.isSourceId(t),"Expected a valid source ID.");var n=e&&t===this.pinnedSourceId,a=n?this.pinnedSource:this.dragSources.get(t);return a}},{key:"getTarget",value:function(t){return RI(this.isTargetId(t),"Expected a valid target ID."),this.dropTargets.get(t)}},{key:"getSourceType",value:function(t){return RI(this.isSourceId(t),"Expected a valid source ID."),this.types.get(t)}},{key:"getTargetType",value:function(t){return RI(this.isTargetId(t),"Expected a valid target ID."),this.types.get(t)}},{key:"isSourceId",value:function(t){return bD(t)===TI.SOURCE}},{key:"isTargetId",value:function(t){return bD(t)===TI.TARGET}},{key:"removeSource",value:function(t){var e,n=this;RI(this.getSource(t),"Expected an existing source."),this.store.dispatch(function(t){return{type:zT,payload:{sourceId:t}}}(t)),e=function(){n.dragSources.delete(t),n.types.delete(t)},uD.enqueueTask(dD.create(e))}},{key:"removeTarget",value:function(t){RI(this.getTarget(t),"Expected an existing target."),this.store.dispatch(function(t){return{type:AT,payload:{targetId:t}}}(t)),this.dropTargets.delete(t),this.types.delete(t)}},{key:"pinSource",value:function(t){var e=this.getSource(t);RI(e,"Expected an existing source."),this.pinnedSourceId=t,this.pinnedSource=e}},{key:"unpinSource",value:function(){RI(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}},{key:"addHandler",value:function(t,e,n){var a=gD(t);return this.types.set(a,e),t===TI.SOURCE?this.dragSources.set(a,n):t===TI.TARGET&&this.dropTargets.set(a,n),a}}])&&pD(e.prototype,n),a&&pD(e,a),t}();function xD(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=wD(a),o=new eD(r,new yD(r)),i=new hT(r,o),l=t(i,e,n);return i.receiveBackend(l),i}function wD(t){var e="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return CT(ZT,t&&e&&e({name:"dnd-core",instanceId:"dnd-core"}))}var kD=["children"];function CD(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var a,r,o=[],i=!0,l=!1;try{for(n=n.call(t);!(i=(a=n.next()).done)&&(o.push(a.value),!e||o.length!==e);i=!0);}catch(t){l=!0,r=t}finally{try{i||null==n.return||n.return()}finally{if(l)throw r}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return ED(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ED(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ED(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,a=new Array(e);n<e;n++)a[n]=t[n];return a}function OD(t,e){if(null==t)return{};var n,a,r=function(t,e){if(null==t)return{};var n,a,r={},o=Object.keys(t);for(a=0;a<o.length;a++)n=o[a],e.indexOf(n)>=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(a=0;a<o.length;a++)n=o[a],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}var SD=0,ND=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__"),PD=e.memo((function(n){var a=n.children,r=CD(function(t){if("manager"in t){return[{dragDropManager:t.manager},!1]}var e=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:jD(),n=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,r=e;r[ND]||(r[ND]={dragDropManager:xD(t,e,n,a)});return r[ND]}(t.backend,t.context,t.options,t.debugMode),n=!t.context;return[e,n]}(OD(n,kD)),2),o=r[0],i=r[1];return e.useEffect((function(){if(i){var t=jD();return++SD,function(){0==--SD&&(t[ND]=null)}}}),[]),t.jsx(DI.Provider,Object.assign({value:o},{children:a}),void 0)}));function jD(){return"undefined"!=typeof global?global:window}function ID(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function TD(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var DD=!1,RD=!1,MD=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),TD(this,"internalMonitor",void 0),TD(this,"sourceId",null),this.internalMonitor=e.getMonitor()}var e,n,a;return e=t,(n=[{key:"receiveHandlerId",value:function(t){this.sourceId=t}},{key:"getHandlerId",value:function(){return this.sourceId}},{key:"canDrag",value:function(){RI(!DD,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return DD=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{DD=!1}}},{key:"isDragging",value:function(){if(!this.sourceId)return!1;RI(!RD,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return RD=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{RD=!1}}},{key:"subscribeToStateChange",value:function(t,e){return this.internalMonitor.subscribeToStateChange(t,e)}},{key:"isDraggingSource",value:function(t){return this.internalMonitor.isDraggingSource(t)}},{key:"isOverTarget",value:function(t,e){return this.internalMonitor.isOverTarget(t,e)}},{key:"getTargetIds",value:function(){return this.internalMonitor.getTargetIds()}},{key:"isSourcePublic",value:function(){return this.internalMonitor.isSourcePublic()}},{key:"getSourceId",value:function(){return this.internalMonitor.getSourceId()}},{key:"subscribeToOffsetChange",value:function(t){return this.internalMonitor.subscribeToOffsetChange(t)}},{key:"canDragSource",value:function(t){return this.internalMonitor.canDragSource(t)}},{key:"canDropOnTarget",value:function(t){return this.internalMonitor.canDropOnTarget(t)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}])&&ID(e.prototype,n),a&&ID(e,a),t}();function zD(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function AD(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var LD=!1,_D=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),AD(this,"internalMonitor",void 0),AD(this,"targetId",null),this.internalMonitor=e.getMonitor()}var e,n,a;return e=t,(n=[{key:"receiveHandlerId",value:function(t){this.targetId=t}},{key:"getHandlerId",value:function(){return this.targetId}},{key:"subscribeToStateChange",value:function(t,e){return this.internalMonitor.subscribeToStateChange(t,e)}},{key:"canDrop",value:function(){if(!this.targetId)return!1;RI(!LD,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return LD=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{LD=!1}}},{key:"isOver",value:function(t){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,t)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}])&&zD(e.prototype,n),a&&zD(e,a),t}();function FD(t){if("string"!=typeof t.type){var e=t.type.displayName||t.type.name||"the component";throw new Error("Only native element nodes can now be passed to React DnD connectors."+"You can either wrap ".concat(e," into a <div>, or turn it into a ")+"drag source or a drop target itself.")}}function VD(t){var n={};return Object.keys(t).forEach((function(a){var r=t[a];if(a.endsWith("Ref"))n[a]=t[a];else{var o=function(t){return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!e.isValidElement(n)){var r=n;return t(r,a),r}var o=n;return FD(o),HD(o,a?function(e){return t(e,a)}:t)}}(r);n[a]=function(){return o}}})),n}function KD(t,e){"function"==typeof t?t(e):t.current=e}function HD(t,n){var a=t.ref;return RI("string"!=typeof a,"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),a?e.cloneElement(t,{ref:function(t){KD(a,t),KD(n,t)}}):e.cloneElement(t,{ref:n})}function BD(t){return(BD="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function UD(t){return null!==t&&"object"===BD(t)&&Object.prototype.hasOwnProperty.call(t,"current")}function WD(t,e,n,a){var r=n?n.call(a,t,e):void 0;if(void 0!==r)return!!r;if(t===e)return!0;if("object"!=typeof t||!t||"object"!=typeof e||!e)return!1;var o=Object.keys(t),i=Object.keys(e);if(o.length!==i.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(e),c=0;c<o.length;c++){var s=o[c];if(!l(s))return!1;var u=t[s],d=e[s];if(!1===(r=n?n.call(a,u,d,s):void 0)||void 0===r&&u!==d)return!1}return!0}function YD(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function qD(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var $D=function(){function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),qD(this,"hooks",VD({dragSource:function(t,e){n.clearDragSource(),n.dragSourceOptions=e||null,UD(t)?n.dragSourceRef=t:n.dragSourceNode=t,n.reconnectDragSource()},dragPreview:function(t,e){n.clearDragPreview(),n.dragPreviewOptions=e||null,UD(t)?n.dragPreviewRef=t:n.dragPreviewNode=t,n.reconnectDragPreview()}})),qD(this,"handlerId",null),qD(this,"dragSourceRef",null),qD(this,"dragSourceNode",void 0),qD(this,"dragSourceOptionsInternal",null),qD(this,"dragSourceUnsubscribe",void 0),qD(this,"dragPreviewRef",null),qD(this,"dragPreviewNode",void 0),qD(this,"dragPreviewOptionsInternal",null),qD(this,"dragPreviewUnsubscribe",void 0),qD(this,"lastConnectedHandlerId",null),qD(this,"lastConnectedDragSource",null),qD(this,"lastConnectedDragSourceOptions",null),qD(this,"lastConnectedDragPreview",null),qD(this,"lastConnectedDragPreviewOptions",null),qD(this,"backend",void 0),this.backend=e}var e,n,a;return e=t,(n=[{key:"receiveHandlerId",value:function(t){this.handlerId!==t&&(this.handlerId=t,this.reconnect())}},{key:"connectTarget",get:function(){return this.dragSource}},{key:"dragSourceOptions",get:function(){return this.dragSourceOptionsInternal},set:function(t){this.dragSourceOptionsInternal=t}},{key:"dragPreviewOptions",get:function(){return this.dragPreviewOptionsInternal},set:function(t){this.dragPreviewOptionsInternal=t}},{key:"reconnect",value:function(){this.reconnectDragSource(),this.reconnectDragPreview()}},{key:"reconnectDragSource",value:function(){var t=this.dragSource,e=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();e&&this.disconnectDragSource(),this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=t,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,t,this.dragSourceOptions)):this.lastConnectedDragSource=t)}},{key:"reconnectDragPreview",value:function(){var t=this.dragPreview,e=this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();e&&this.disconnectDragPreview(),this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=t,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,t,this.dragPreviewOptions)):this.lastConnectedDragPreview=t)}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didConnectedDragSourceChange",value:function(){return this.lastConnectedDragSource!==this.dragSource}},{key:"didConnectedDragPreviewChange",value:function(){return this.lastConnectedDragPreview!==this.dragPreview}},{key:"didDragSourceOptionsChange",value:function(){return!WD(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}},{key:"didDragPreviewOptionsChange",value:function(){return!WD(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}},{key:"disconnectDragSource",value:function(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}},{key:"disconnectDragPreview",value:function(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}},{key:"dragSource",get:function(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}},{key:"dragPreview",get:function(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}},{key:"clearDragSource",value:function(){this.dragSourceNode=null,this.dragSourceRef=null}},{key:"clearDragPreview",value:function(){this.dragPreviewNode=null,this.dragPreviewRef=null}}])&&YD(e.prototype,n),a&&YD(e,a),t}();function GD(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function XD(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ZD=function(){function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),XD(this,"hooks",VD({dropTarget:function(t,e){n.clearDropTarget(),n.dropTargetOptions=e,UD(t)?n.dropTargetRef=t:n.dropTargetNode=t,n.reconnect()}})),XD(this,"handlerId",null),XD(this,"dropTargetRef",null),XD(this,"dropTargetNode",void 0),XD(this,"dropTargetOptionsInternal",null),XD(this,"unsubscribeDropTarget",void 0),XD(this,"lastConnectedHandlerId",null),XD(this,"lastConnectedDropTarget",null),XD(this,"lastConnectedDropTargetOptions",null),XD(this,"backend",void 0),this.backend=e}var e,n,a;return e=t,(n=[{key:"connectTarget",get:function(){return this.dropTarget}},{key:"reconnect",value:function(){var t=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();t&&this.disconnectDropTarget();var e=this.dropTarget;this.handlerId&&(e?t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=e,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,e,this.dropTargetOptions)):this.lastConnectedDropTarget=e)}},{key:"receiveHandlerId",value:function(t){t!==this.handlerId&&(this.handlerId=t,this.reconnect())}},{key:"dropTargetOptions",get:function(){return this.dropTargetOptionsInternal},set:function(t){this.dropTargetOptionsInternal=t}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didDropTargetChange",value:function(){return this.lastConnectedDropTarget!==this.dropTarget}},{key:"didOptionsChange",value:function(){return!WD(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}},{key:"disconnectDropTarget",value:function(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}},{key:"dropTarget",get:function(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}},{key:"clearDropTarget",value:function(){this.dropTargetRef=null,this.dropTargetNode=null}}])&&GD(e.prototype,n),a&&GD(e,a),t}();var JD="undefined"!=typeof window?e.useLayoutEffect:e.useEffect;function QD(t){return(QD="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function tR(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function eR(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var nR=function(){function t(e,n,a){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),eR(this,"spec",void 0),eR(this,"monitor",void 0),eR(this,"connector",void 0),this.spec=e,this.monitor=n,this.connector=a}var e,n,a;return e=t,(n=[{key:"beginDrag",value:function(){var t,e=this.spec,n=this.monitor;return null!==(t="object"===QD(e.item)?e.item:"function"==typeof e.item?e.item(n):{})&&void 0!==t?t:null}},{key:"canDrag",value:function(){var t=this.spec,e=this.monitor;return"boolean"==typeof t.canDrag?t.canDrag:"function"!=typeof t.canDrag||t.canDrag(e)}},{key:"isDragging",value:function(t,e){var n=this.spec,a=this.monitor,r=n.isDragging;return r?r(a):e===t.getSourceId()}},{key:"endDrag",value:function(){var t=this.spec,e=this.monitor,n=this.connector,a=t.end;a&&a(e.getItem(),e),n.reconnect()}}])&&tR(e.prototype,n),a&&tR(e,a),t}();function aR(){var t=e.useContext(DI).dragDropManager;return RI(null!=t,"Expected drag drop context"),t}function rR(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var a,r,o=[],i=!0,l=!1;try{for(n=n.call(t);!(i=(a=n.next()).done)&&(o.push(a.value),!e||o.length!==e);i=!0);}catch(t){l=!0,r=t}finally{try{i||null==n.return||n.return()}finally{if(l)throw r}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return oR(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return oR(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function oR(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,a=new Array(e);n<e;n++)a[n]=t[n];return a}function iR(t,n,a){var r=aR(),o=function(t,n,a){var r=e.useMemo((function(){return new nR(t,n,a)}),[n,a]);return e.useEffect((function(){r.spec=t}),[t]),r}(t,n,a),i=function(t){return e.useMemo((function(){var e=t.type;return RI(null!=e,"spec.type must be defined"),e}),[t])}(t);JD((function(){if(null!=i){var t=rR(function(t,e,n){var a=n.getRegistry(),r=a.addSource(t,e);return[r,function(){return a.removeSource(r)}]}(i,o,r),2),e=t[0],l=t[1];return n.receiveHandlerId(e),a.receiveHandlerId(e),l}}),[r,n,a,o,i])}function lR(t){return function(t){if(Array.isArray(t))return cR(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return cR(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return cR(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function cR(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,a=new Array(e);n<e;n++)a[n]=t[n];return a}function sR(t,n){var a=lR(n||[]);return null==n&&"function"!=typeof t&&a.push(t),e.useMemo((function(){return"function"==typeof t?t():t}),a)}var uR=function t(e,n){if(e===n)return!0;if(e&&n&&"object"==typeof e&&"object"==typeof n){if(e.constructor!==n.constructor)return!1;var a,r,o;if(Array.isArray(e)){if((a=e.length)!=n.length)return!1;for(r=a;0!=r--;)if(!t(e[r],n[r]))return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if((a=(o=Object.keys(e)).length)!==Object.keys(n).length)return!1;for(r=a;0!=r--;)if(!Object.prototype.hasOwnProperty.call(n,o[r]))return!1;for(r=a;0!=r--;){var i=o[r];if(!t(e[i],n[i]))return!1}return!0}return e!=e&&n!=n};function dR(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var a,r,o=[],i=!0,l=!1;try{for(n=n.call(t);!(i=(a=n.next()).done)&&(o.push(a.value),!e||o.length!==e);i=!0);}catch(t){l=!0,r=t}finally{try{i||null==n.return||n.return()}finally{if(l)throw r}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return pR(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return pR(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pR(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,a=new Array(e);n<e;n++)a[n]=t[n];return a}function fR(t,n,a){var r=dR(e.useState((function(){return n(t)})),2),o=r[0],i=r[1],l=e.useCallback((function(){var e=n(t);uR(o,e)||(i(e),a&&a())}),[o,t,a]);return JD(l),[o,l]}function mR(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var a,r,o=[],i=!0,l=!1;try{for(n=n.call(t);!(i=(a=n.next()).done)&&(o.push(a.value),!e||o.length!==e);i=!0);}catch(t){l=!0,r=t}finally{try{i||null==n.return||n.return()}finally{if(l)throw r}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return hR(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hR(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function hR(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,a=new Array(e);n<e;n++)a[n]=t[n];return a}function gR(t,e,n){return function(t,e,n){var a=mR(fR(t,e,n),2),r=a[0],o=a[1];return JD((function(){var e=t.getHandlerId();if(null!=e)return t.subscribeToStateChange(o,{handlerIds:[e]})}),[t,o]),r}(e,t||function(){return{}},(function(){return n.reconnect()}))}function bR(t){return e.useMemo((function(){return t.hooks.dragSource()}),[t])}function vR(t){return e.useMemo((function(){return t.hooks.dragPreview()}),[t])}function yR(t,n){var a=sR(t,n);RI(!a.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");var r,o=(r=aR(),e.useMemo((function(){return new MD(r)}),[r])),i=function(t,n){var a=aR(),r=e.useMemo((function(){return new $D(a.getBackend())}),[a]);return JD((function(){return r.dragSourceOptions=t||null,r.reconnect(),function(){return r.disconnectDragSource()}}),[r,t]),JD((function(){return r.dragPreviewOptions=n||null,r.reconnect(),function(){return r.disconnectDragPreview()}}),[r,n]),r}(a.options,a.previewOptions);return iR(a,o,i),[gR(a.collect,o,i),bR(i),vR(i)]}function xR(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function wR(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var kR=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),wR(this,"spec",void 0),wR(this,"monitor",void 0),this.spec=e,this.monitor=n}var e,n,a;return e=t,(n=[{key:"canDrop",value:function(){var t=this.spec,e=this.monitor;return!t.canDrop||t.canDrop(e.getItem(),e)}},{key:"hover",value:function(){var t=this.spec,e=this.monitor;t.hover&&t.hover(e.getItem(),e)}},{key:"drop",value:function(){var t=this.spec,e=this.monitor;if(t.drop)return t.drop(e.getItem(),e)}}])&&xR(e.prototype,n),a&&xR(e,a),t}();function CR(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var a,r,o=[],i=!0,l=!1;try{for(n=n.call(t);!(i=(a=n.next()).done)&&(o.push(a.value),!e||o.length!==e);i=!0);}catch(t){l=!0,r=t}finally{try{i||null==n.return||n.return()}finally{if(l)throw r}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return ER(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ER(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ER(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,a=new Array(e);n<e;n++)a[n]=t[n];return a}function OR(t,n,a){var r=aR(),o=function(t,n){var a=e.useMemo((function(){return new kR(t,n)}),[n]);return e.useEffect((function(){a.spec=t}),[t]),a}(t,n),i=function(t){var n=t.accept;return e.useMemo((function(){return RI(null!=t.accept,"accept must be defined"),Array.isArray(n)?n:[n]}),[n])}(t);JD((function(){var t=CR(function(t,e,n){var a=n.getRegistry(),r=a.addTarget(t,e);return[r,function(){return a.removeTarget(r)}]}(i,o,r),2),e=t[0],l=t[1];return n.receiveHandlerId(e),a.receiveHandlerId(e),l}),[r,n,o,a,i.map((function(t){return t.toString()})).join("|")])}function SR(t){return e.useMemo((function(){return t.hooks.dropTarget()}),[t])}function NR(t,n){var a,r=sR(t,n),o=(a=aR(),e.useMemo((function(){return new _D(a)}),[a])),i=function(t){var n=aR(),a=e.useMemo((function(){return new ZD(n.getBackend())}),[n]);return JD((function(){return a.dropTargetOptions=t||null,a.reconnect(),function(){return a.disconnectDropTarget()}}),[t]),a}(r.options);return OR(r,o,i),[gR(r.collect,o,i),SR(i)]}b(".drop-over-downward td{border-bottom:2px dashed #5860f8!important}.drop-over-upward td{border-top:2px dashed #5860f8!important}");const{Option:PR}=Ju,jR=u.default.createContext(null),IR=({open:n,index:a,moveRow:r,className:o,style:i,...l})=>{const[c]=fw.useForm(),s=e.useRef(null),[{isOver:u,dropClassName:d},p]=NR({accept:"DraggableBodyRow",collect:t=>{const{index:e}=t.getItem()||{};return e===a?{}:{isOver:t.isOver(),dropClassName:e<a?" drop-over-downward":" drop-over-upward"}},drop:t=>{r(t.index,a)}}),[,f]=yR({type:"DraggableBodyRow",item:{index:a},collect:t=>({isDragging:t.isDragging()})});return n&&p(f(s)),t.jsx(fw,Object.assign({size:"small",component:!1,form:c},{children:t.jsx(jR.Provider,Object.assign({value:c},{children:t.jsx("tr",Object.assign({ref:s,className:`${o}${u?d:""}`,style:{cursor:n?"move":"auto",...i}},l),void 0)}),void 0)}),void 0)},TR=({record:n,dataIndex:a,title:r,editable:o,inputType:i,valueType:l,valueEnum:c,recordSelectField:s,controlRender:u,formChange:d,remoteConfig:p,children:h,formItemProps:g,handleSave:b,...v})=>{const y=e.useContext(jR),[x,w]=e.useState(!1),[k,C]=e.useState({}),E=(t,e,n,a)=>{a&&(w(!0),a(t,n).then((t=>{w(!1),e&&C({[e]:t})})))};if(o){let t=n[a];"DatePicker"===l&&t&&(t=m.default(t)),"status"===a&&void 0!==t&&(n[a]=String(t)),setTimeout((()=>{y.setFieldsValue({[a]:t})}))}const O=(e,r)=>{let o=null;const l=(t,e)=>{let n="";const a=function(t){for(let e of t)if(e)if(Mj({data:e,type:"String"}))n+=e;else{const t=e.props.children;Mj({data:t,type:"Object"})&&a([t]),Mj({data:t,type:"Array"})&&a(t),Mj({data:t,type:"String"})&&(n+=t)}};return a([e.children]),n.toLowerCase().indexOf(t.toLowerCase())>=0},u=e=>{if(f.default.isArray(e))return e.map(((e,n)=>t.jsx(PR,Object.assign({value:e.value},{children:e.label}),n)))};switch(e){case"RecordSelect":o=t.jsx(Ju,Object.assign({allowClear:!0,showSearch:!0,dropdownMatchSelectWidth:!1,placeholder:r,onChange:S,optionFilterProp:"children",filterOption:l},{children:u(n[s])}),void 0);break;case"Select":o=t.jsx(Ju,Object.assign({dropdownMatchSelectWidth:!1,onChange:S,placeholder:r},{children:u(c)}),void 0);break;case"DatePicker":o=t.jsx(hx,{onChange:S,placeholder:r},void 0);break;case"AutoComplete":o=t.jsx(Ju,Object.assign({allowClear:!0,showSearch:!0,dropdownMatchSelectWidth:!1,placeholder:r,onChange:S,optionFilterProp:"children",filterOption:l},{children:u(c)}),void 0);break;case"RemoteSearch":let e=c;k[a]&&(e=k[a]),o=t.jsx(Ju,Object.assign({mode:p.remoteMode,placeholder:r,notFoundContent:x?t.jsx(Dw,{size:"small"},void 0):null,dropdownMatchSelectWidth:!1,filterOption:!1,allowClear:!0,showSearch:!0,onChange:S,onFocus:()=>E(void 0,a,n,p.remoteApi),onSearch:t=>E(t,a,n,p.remoteApi)},{children:a&&u(e)}),void 0);break;default:o=t.jsx(Wv,{onPressEnter:S,onBlur:S,placeholder:r,type:i||"text"},void 0)}return o},S=async()=>{try{const t=await y.validateFields();let e={...n,...t};for(let t in e)m.default.isMoment(e[t])&&(e[t]=m.default(e[t]).format("YYYY-MM-DD"));d&&(e=await d(e)||e),b(e)}catch(t){console.log("保存表单字段失败:",t)}};let N=h;return o?N=t.jsx(fw.Item,Object.assign({style:{margin:0},name:a,rules:g?g.rules:void 0},{children:O(l,r)}),void 0):l&&(!c||"Select"!==l&&"AutoComplete"!==l||(N=zj(c,n[a])),n[s]&&"RecordSelect"===l&&(N=zj(n[s],n[a]))),u&&(N=u(n,N)),t.jsx("td",Object.assign({},v,{title:r},{children:N}),void 0)};function DR(t){var e=null;return function(){return null==e&&(e=t()),e}}function RR(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function MR(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var zR=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),MR(this,"entered",[]),MR(this,"isNodeInDocument",void 0),this.isNodeInDocument=e}var e,n,a;return e=t,(n=[{key:"enter",value:function(t){var e=this,n=this.entered.length;return this.entered=function(t,e){var n=new Set,a=function(t){return n.add(t)};t.forEach(a),e.forEach(a);var r=[];return n.forEach((function(t){return r.push(t)})),r}(this.entered.filter((function(n){return e.isNodeInDocument(n)&&(!n.contains||n.contains(t))})),[t]),0===n&&this.entered.length>0}},{key:"leave",value:function(t){var e,n,a=this.entered.length;return this.entered=(e=this.entered.filter(this.isNodeInDocument),n=t,e.filter((function(t){return t!==n}))),a>0&&0===this.entered.length}},{key:"reset",value:function(){this.entered=[]}}])&&RR(e.prototype,n),a&&RR(e,a),t}(),AR=DR((function(){return/firefox/i.test(navigator.userAgent)})),LR=DR((function(){return Boolean(window.safari)}));function _R(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function FR(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var VR=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),FR(this,"xs",void 0),FR(this,"ys",void 0),FR(this,"c1s",void 0),FR(this,"c2s",void 0),FR(this,"c3s",void 0);for(var a=e.length,r=[],o=0;o<a;o++)r.push(o);r.sort((function(t,n){return e[t]<e[n]?-1:1}));for(var i,l,c=[],s=[],u=0;u<a-1;u++)i=e[u+1]-e[u],l=n[u+1]-n[u],c.push(i),s.push(l/i);for(var d=[s[0]],p=0;p<c.length-1;p++){var f=s[p],m=s[p+1];if(f*m<=0)d.push(0);else{i=c[p];var h=c[p+1],g=i+h;d.push(3*g/((g+h)/f+(g+i)/m))}}d.push(s[s.length-1]);for(var b,v=[],y=[],x=0;x<d.length-1;x++){b=s[x];var w=d[x],k=1/c[x],C=w+d[x+1]-b-b;v.push((b-w-C)*k),y.push(C*k*k)}this.xs=e,this.ys=n,this.c1s=d,this.c2s=v,this.c3s=y}var e,n,a;return e=t,(n=[{key:"interpolate",value:function(t){var e=this.xs,n=this.ys,a=this.c1s,r=this.c2s,o=this.c3s,i=e.length-1;if(t===e[i])return n[i];for(var l,c=0,s=o.length-1;c<=s;){var u=e[l=Math.floor(.5*(c+s))];if(u<t)c=l+1;else{if(!(u>t))return n[l];s=l-1}}var d=t-e[i=Math.max(0,s)],p=d*d;return n[i]+a[i]*d+r[i]*p+o[i]*d*p}}])&&_R(e.prototype,n),a&&_R(e,a),t}();function KR(t){var e=1===t.nodeType?t:t.parentElement;if(!e)return null;var n=e.getBoundingClientRect(),a=n.top;return{x:n.left,y:a}}function HR(t){return{x:t.clientX,y:t.clientY}}function BR(t,e,n,a,r){var o,i,l="IMG"===(o=e).nodeName&&(AR()||!(null!==(i=document.documentElement)&&void 0!==i&&i.contains(o))),c=KR(l?t:e),s={x:n.x-c.x,y:n.y-c.y},u=t.offsetWidth,d=t.offsetHeight,p=a.anchorX,f=a.anchorY,m=function(t,e,n,a){var r=t?e.width:n,o=t?e.height:a;return LR()&&t&&(o/=window.devicePixelRatio,r/=window.devicePixelRatio),{dragPreviewWidth:r,dragPreviewHeight:o}}(l,e,u,d),h=m.dragPreviewWidth,g=m.dragPreviewHeight,b=r.offsetX,v=r.offsetY,y=0===v||v;return{x:0===b||b?b:new VR([0,.5,1],[s.x,s.x/u*h,s.x+h-u]).interpolate(p),y:y?v:function(){var t=new VR([0,.5,1],[s.y,s.y/d*g,s.y+g-d]).interpolate(f);return LR()&&l&&(t+=(window.devicePixelRatio-1)*g),t}()}}var UR,WR="__NATIVE_FILE__",YR="__NATIVE_URL__",qR="__NATIVE_TEXT__",$R="__NATIVE_HTML__",GR=Object.freeze({__proto__:null,FILE:WR,URL:YR,TEXT:qR,HTML:$R});function XR(t,e,n){var a=e.reduce((function(e,n){return e||t.getData(n)}),"");return null!=a?a:n}function ZR(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var JR=(ZR(UR={},WR,{exposeProperties:{files:function(t){return Array.prototype.slice.call(t.files)},items:function(t){return t.items},dataTransfer:function(t){return t}},matchesTypes:["Files"]}),ZR(UR,$R,{exposeProperties:{html:function(t,e){return XR(t,e,"")},dataTransfer:function(t){return t}},matchesTypes:["Html","text/html"]}),ZR(UR,YR,{exposeProperties:{urls:function(t,e){return XR(t,e,"").split("\n")},dataTransfer:function(t){return t}},matchesTypes:["Url","text/uri-list"]}),ZR(UR,qR,{exposeProperties:{text:function(t,e){return XR(t,e,"")},dataTransfer:function(t){return t}},matchesTypes:["Text","text/plain"]}),UR);function QR(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function tM(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var eM=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),tM(this,"item",void 0),tM(this,"config",void 0),this.config=e,this.item={},this.initializeExposedProperties()}var e,n,a;return e=t,(n=[{key:"initializeExposedProperties",value:function(){var t=this;Object.keys(this.config.exposeProperties).forEach((function(e){Object.defineProperty(t.item,e,{configurable:!0,enumerable:!0,get:function(){return console.warn("Browser doesn't allow reading \"".concat(e,'" until the drop event.')),null}})}))}},{key:"loadDataTransfer",value:function(t){var e=this;if(t){var n={};Object.keys(this.config.exposeProperties).forEach((function(a){n[a]={value:e.config.exposeProperties[a](t,e.config.matchesTypes),configurable:!0,enumerable:!0}})),Object.defineProperties(this.item,n)}}},{key:"canDrag",value:function(){return!0}},{key:"beginDrag",value:function(){return this.item}},{key:"isDragging",value:function(t,e){return e===t.getSourceId()}},{key:"endDrag",value:function(){}}])&&QR(e.prototype,n),a&&QR(e,a),t}();function nM(t){if(!t)return null;var e=Array.prototype.slice.call(t.types||[]);return Object.keys(JR).filter((function(t){return JR[t].matchesTypes.some((function(t){return e.indexOf(t)>-1}))}))[0]||null}function aM(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function rM(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var oM=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),rM(this,"ownerDocument",null),rM(this,"globalContext",void 0),rM(this,"optionsArgs",void 0),this.globalContext=e,this.optionsArgs=n}var e,n,a;return e=t,(n=[{key:"window",get:function(){return this.globalContext?this.globalContext:"undefined"!=typeof window?window:void 0}},{key:"document",get:function(){var t;return null!==(t=this.globalContext)&&void 0!==t&&t.document?this.globalContext.document:this.window?this.window.document:void 0}},{key:"rootElement",get:function(){var t;return(null===(t=this.optionsArgs)||void 0===t?void 0:t.rootElement)||this.window}}])&&aM(e.prototype,n),a&&aM(e,a),t}();function iM(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function lM(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?iM(Object(n),!0).forEach((function(e){sM(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):iM(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function cM(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function sM(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var uM=function(){function t(e,n,a){var r=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),sM(this,"options",void 0),sM(this,"actions",void 0),sM(this,"monitor",void 0),sM(this,"registry",void 0),sM(this,"enterLeaveCounter",void 0),sM(this,"sourcePreviewNodes",new Map),sM(this,"sourcePreviewNodeOptions",new Map),sM(this,"sourceNodes",new Map),sM(this,"sourceNodeOptions",new Map),sM(this,"dragStartSourceIds",null),sM(this,"dropTargetIds",[]),sM(this,"dragEnterTargetIds",[]),sM(this,"currentNativeSource",null),sM(this,"currentNativeHandle",null),sM(this,"currentDragSourceNode",null),sM(this,"altKeyPressed",!1),sM(this,"mouseMoveTimeoutTimer",null),sM(this,"asyncEndDragFrameId",null),sM(this,"dragOverTargetIds",null),sM(this,"lastClientOffset",null),sM(this,"hoverRafId",null),sM(this,"getSourceClientOffset",(function(t){var e=r.sourceNodes.get(t);return e&&KR(e)||null})),sM(this,"endDragNativeItem",(function(){r.isDraggingNativeItem()&&(r.actions.endDrag(),r.currentNativeHandle&&r.registry.removeSource(r.currentNativeHandle),r.currentNativeHandle=null,r.currentNativeSource=null)})),sM(this,"isNodeInDocument",(function(t){return Boolean(t&&r.document&&r.document.body&&r.document.body.contains(t))})),sM(this,"endDragIfSourceWasRemovedFromDOM",(function(){var t=r.currentDragSourceNode;null==t||r.isNodeInDocument(t)||r.clearCurrentDragSourceNode()&&r.monitor.isDragging()&&r.actions.endDrag()})),sM(this,"handleTopDragStartCapture",(function(){r.clearCurrentDragSourceNode(),r.dragStartSourceIds=[]})),sM(this,"handleTopDragStart",(function(t){if(!t.defaultPrevented){var e=r.dragStartSourceIds;r.dragStartSourceIds=null;var n=HR(t);r.monitor.isDragging()&&r.actions.endDrag(),r.actions.beginDrag(e||[],{publishSource:!1,getSourceClientOffset:r.getSourceClientOffset,clientOffset:n});var a=t.dataTransfer,o=nM(a);if(r.monitor.isDragging()){if(a&&"function"==typeof a.setDragImage){var i=r.monitor.getSourceId(),l=r.sourceNodes.get(i),c=r.sourcePreviewNodes.get(i)||l;if(c){var s=r.getCurrentSourcePreviewNodeOptions(),u=BR(l,c,n,{anchorX:s.anchorX,anchorY:s.anchorY},{offsetX:s.offsetX,offsetY:s.offsetY});a.setDragImage(c,u.x,u.y)}}try{null==a||a.setData("application/json",{})}catch(t){}r.setCurrentDragSourceNode(t.target),r.getCurrentSourcePreviewNodeOptions().captureDraggingState?r.actions.publishDragSource():setTimeout((function(){return r.actions.publishDragSource()}),0)}else if(o)r.beginDragNativeItem(o);else{if(a&&!a.types&&(t.target&&!t.target.hasAttribute||!t.target.hasAttribute("draggable")))return;t.preventDefault()}}})),sM(this,"handleTopDragEndCapture",(function(){r.clearCurrentDragSourceNode()&&r.monitor.isDragging()&&r.actions.endDrag()})),sM(this,"handleTopDragEnterCapture",(function(t){if(r.dragEnterTargetIds=[],r.enterLeaveCounter.enter(t.target)&&!r.monitor.isDragging()){var e=t.dataTransfer,n=nM(e);n&&r.beginDragNativeItem(n,e)}})),sM(this,"handleTopDragEnter",(function(t){var e=r.dragEnterTargetIds;(r.dragEnterTargetIds=[],r.monitor.isDragging())&&(r.altKeyPressed=t.altKey,e.length>0&&r.actions.hover(e,{clientOffset:HR(t)}),e.some((function(t){return r.monitor.canDropOnTarget(t)}))&&(t.preventDefault(),t.dataTransfer&&(t.dataTransfer.dropEffect=r.getCurrentDropEffect())))})),sM(this,"handleTopDragOverCapture",(function(){r.dragOverTargetIds=[]})),sM(this,"handleTopDragOver",(function(t){var e=r.dragOverTargetIds;if(r.dragOverTargetIds=[],!r.monitor.isDragging())return t.preventDefault(),void(t.dataTransfer&&(t.dataTransfer.dropEffect="none"));r.altKeyPressed=t.altKey,r.lastClientOffset=HR(t),null===r.hoverRafId&&"undefined"!=typeof requestAnimationFrame&&(r.hoverRafId=requestAnimationFrame((function(){r.monitor.isDragging()&&r.actions.hover(e||[],{clientOffset:r.lastClientOffset}),r.hoverRafId=null}))),(e||[]).some((function(t){return r.monitor.canDropOnTarget(t)}))?(t.preventDefault(),t.dataTransfer&&(t.dataTransfer.dropEffect=r.getCurrentDropEffect())):r.isDraggingNativeItem()?t.preventDefault():(t.preventDefault(),t.dataTransfer&&(t.dataTransfer.dropEffect="none"))})),sM(this,"handleTopDragLeaveCapture",(function(t){r.isDraggingNativeItem()&&t.preventDefault(),r.enterLeaveCounter.leave(t.target)&&r.isDraggingNativeItem()&&setTimeout((function(){return r.endDragNativeItem()}),0)})),sM(this,"handleTopDropCapture",(function(t){var e;(r.dropTargetIds=[],r.isDraggingNativeItem())?(t.preventDefault(),null===(e=r.currentNativeSource)||void 0===e||e.loadDataTransfer(t.dataTransfer)):nM(t.dataTransfer)&&t.preventDefault();r.enterLeaveCounter.reset()})),sM(this,"handleTopDrop",(function(t){var e=r.dropTargetIds;r.dropTargetIds=[],r.actions.hover(e,{clientOffset:HR(t)}),r.actions.drop({dropEffect:r.getCurrentDropEffect()}),r.isDraggingNativeItem()?r.endDragNativeItem():r.monitor.isDragging()&&r.actions.endDrag()})),sM(this,"handleSelectStart",(function(t){var e=t.target;"function"==typeof e.dragDrop&&("INPUT"===e.tagName||"SELECT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable||(t.preventDefault(),e.dragDrop()))})),this.options=new oM(n,a),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new zR(this.isNodeInDocument)}var e,n,a;return e=t,(n=[{key:"profile",value:function(){var t,e;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:(null===(t=this.dragStartSourceIds)||void 0===t?void 0:t.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:(null===(e=this.dragOverTargetIds)||void 0===e?void 0:e.length)||0}}},{key:"window",get:function(){return this.options.window}},{key:"document",get:function(){return this.options.document}},{key:"rootElement",get:function(){return this.options.rootElement}},{key:"setup",value:function(){var t=this.rootElement;if(void 0!==t){if(t.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");t.__isReactDndBackendSetUp=!0,this.addEventListeners(t)}}},{key:"teardown",value:function(){var t,e=this.rootElement;void 0!==e&&(e.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&(null===(t=this.window)||void 0===t||t.cancelAnimationFrame(this.asyncEndDragFrameId)))}},{key:"connectDragPreview",value:function(t,e,n){var a=this;return this.sourcePreviewNodeOptions.set(t,n),this.sourcePreviewNodes.set(t,e),function(){a.sourcePreviewNodes.delete(t),a.sourcePreviewNodeOptions.delete(t)}}},{key:"connectDragSource",value:function(t,e,n){var a=this;this.sourceNodes.set(t,e),this.sourceNodeOptions.set(t,n);var r=function(e){return a.handleDragStart(e,t)},o=function(t){return a.handleSelectStart(t)};return e.setAttribute("draggable","true"),e.addEventListener("dragstart",r),e.addEventListener("selectstart",o),function(){a.sourceNodes.delete(t),a.sourceNodeOptions.delete(t),e.removeEventListener("dragstart",r),e.removeEventListener("selectstart",o),e.setAttribute("draggable","false")}}},{key:"connectDropTarget",value:function(t,e){var n=this,a=function(e){return n.handleDragEnter(e,t)},r=function(e){return n.handleDragOver(e,t)},o=function(e){return n.handleDrop(e,t)};return e.addEventListener("dragenter",a),e.addEventListener("dragover",r),e.addEventListener("drop",o),function(){e.removeEventListener("dragenter",a),e.removeEventListener("dragover",r),e.removeEventListener("drop",o)}}},{key:"addEventListeners",value:function(t){t.addEventListener&&(t.addEventListener("dragstart",this.handleTopDragStart),t.addEventListener("dragstart",this.handleTopDragStartCapture,!0),t.addEventListener("dragend",this.handleTopDragEndCapture,!0),t.addEventListener("dragenter",this.handleTopDragEnter),t.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.addEventListener("dragover",this.handleTopDragOver),t.addEventListener("dragover",this.handleTopDragOverCapture,!0),t.addEventListener("drop",this.handleTopDrop),t.addEventListener("drop",this.handleTopDropCapture,!0))}},{key:"removeEventListeners",value:function(t){t.removeEventListener&&(t.removeEventListener("dragstart",this.handleTopDragStart),t.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),t.removeEventListener("dragend",this.handleTopDragEndCapture,!0),t.removeEventListener("dragenter",this.handleTopDragEnter),t.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.removeEventListener("dragover",this.handleTopDragOver),t.removeEventListener("dragover",this.handleTopDragOverCapture,!0),t.removeEventListener("drop",this.handleTopDrop),t.removeEventListener("drop",this.handleTopDropCapture,!0))}},{key:"getCurrentSourceNodeOptions",value:function(){var t=this.monitor.getSourceId(),e=this.sourceNodeOptions.get(t);return lM({dropEffect:this.altKeyPressed?"copy":"move"},e||{})}},{key:"getCurrentDropEffect",value:function(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}},{key:"getCurrentSourcePreviewNodeOptions",value:function(){var t=this.monitor.getSourceId();return lM({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(t)||{})}},{key:"isDraggingNativeItem",value:function(){var t=this.monitor.getItemType();return Object.keys(GR).some((function(e){return GR[e]===t}))}},{key:"beginDragNativeItem",value:function(t,e){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(t,e){var n=new eM(JR[t]);return n.loadDataTransfer(e),n}(t,e),this.currentNativeHandle=this.registry.addSource(t,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}},{key:"setCurrentDragSourceNode",value:function(t){var e=this;this.clearCurrentDragSourceNode(),this.currentDragSourceNode=t,this.mouseMoveTimeoutTimer=setTimeout((function(){var t;return null===(t=e.rootElement)||void 0===t?void 0:t.addEventListener("mousemove",e.endDragIfSourceWasRemovedFromDOM,!0)}),1e3)}},{key:"clearCurrentDragSourceNode",value:function(){var t;return!!this.currentDragSourceNode&&(this.currentDragSourceNode=null,this.rootElement&&(null===(t=this.window)||void 0===t||t.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)),this.mouseMoveTimeoutTimer=null,!0)}},{key:"handleDragStart",value:function(t,e){t.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(e))}},{key:"handleDragEnter",value:function(t,e){this.dragEnterTargetIds.unshift(e)}},{key:"handleDragOver",value:function(t,e){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(e)}},{key:"handleDrop",value:function(t,e){this.dropTargetIds.unshift(e)}}])&&cM(e.prototype,n),a&&cM(e,a),t}(),dM=function(t,e,n){return new uM(t,e,n)};const pM=dM,fM=n=>{const a=e.useRef(pM);return t.jsx(PD,Object.assign({backend:dM,manager:a.current.dragDropManager},{children:n.children}),void 0)};b(".ant-table-wrapper .ant-table-thead>tr>th{font-weight:700}.ant-table-wrapper .ant-table-tbody>tr>td,.ant-table-wrapper .ant-table-thead>tr>td,.ant-table-wrapper .ant-table-thead>tr>th{padding:6px 8px}.ant-table-wrapper .ant-table-tbody>tr>td.ant-table-cell .ant-form-item .ant-form-item-control-input{min-height:auto}.ant-table-wrapper .ant-table-tbody .btn-operate{width:26px;height:26px}.ant-table-wrapper .ant-table-pagination.ant-pagination{margin-top:10px;margin-bottom:10px;padding-top:10px;padding-bottom:10px}.ant-table-wrapper .react-resizable{position:relative;background-clip:padding-box}.ant-table-wrapper .react-resizable-handle{position:absolute;right:-5px;bottom:0;z-index:1;width:10px;height:100%;cursor:col-resize}");var mM=u.default.memo(e.forwardRef(((n,a)=>{const r=e.useMemo((()=>{const t=n.extra||{};return{tableConfig:t.tableConfig,rowType:t.rowType,scroll:t.scroll,apiMethod:t.apiMethod,columns:t.columns||[],data:t.data,controlled:t.controlled,drag:t.drag,getTableSuccessData:t.getTableSuccessData,onSelect:t.onSelect,paginationConfig:t.paginationConfig,getCheckboxProps:t.getCheckboxProps}}),[n.extra]),o=e.useRef();let i=e.useRef(!0);const l=e.useRef({position:["bottomCenter"],size:"small",current:1,total:0,pages:0,pageSize:10,showSizeChanger:!0,orderByInfo:void 0}),c=e.useRef([]),s=e.useRef([]),[u,d]=e.useState(r.columns),[p,m]=e.useState(!1),[h,g]=e.useState([]),[b,v]=qj({selectRowIds:[],selectRowArray:[]}),[y,x]=e.useState({x:void 0,y:330}),w=e.useMemo((()=>r.tableConfig&&r.tableConfig.rowKey?r.tableConfig.rowKey:"id"),[r.tableConfig]),k=e.useCallback((async t=>{let e=!0;m(!0),t&&(void 0!==t.updateSelected&&(e=t.updateSelected,delete t.updateSelected),"not-reset"===t.pagination&&delete t.pagination,o.current={...o.current,...t});try{const n={...o.current};for(let t in l.current){const e=l.current[t];"orderByInfo"===t&&(n.orderByInfo=e),"current"===t&&(n.page=e),"pageSize"===t&&(n.size=n.size||e)}if(t&&t.current&&(n.page=t.current,l.current.current=t.current),r.apiMethod){delete n.current;const t=await r.apiMethod(f.default.pickBy(n,f.default.identity));let a=[];f.default.isArray(t.data.content)&&(!1!==r.paginationConfig?i.current=!0:i.current=!1,a=t.data.content,l.current.total=t.data.total,l.current.pages=t.data.pages),f.default.isArray(t.data)&&(i.current=!1,a=t.data),e&&v((t=>{let e=[...t.selectRowIds],n=[...t.selectRowArray];const r=a=>{if(t.selectRowIds.length)for(let o of a){for(let a of t.selectRowIds)o[w]===a&&(e.push(a),n.push(o));o.children&&r(o.children)}};return r(a),t.selectRowIds=f.default.unionBy(e),t.selectRowArray=f.default.unionBy(n,w),t})),g(a),r.getTableSuccessData&&r.getTableSuccessData(t)}}catch(t){}m(!1)}),[r,w,v]),C=e.useMemo((()=>({fixed:!0,type:r.rowType,selectedRowKeys:b.selectRowIds,getCheckboxProps:r.getCheckboxProps,onSelectAll:(t,e,n)=>{v((e=>{let a=[...e.selectRowIds],o=[...e.selectRowArray];return t?(a=f.default.uniq([...a,...n.map((t=>t[w]))]),o=f.default.uniqBy([...o,...n],w)):(a=a.filter((t=>!n.some((e=>e[w]===t)))),o=o.filter((t=>!n.some((e=>e[w]===t[w]))))),r.onSelect&&r.onSelect(o,a),e.selectRowIds=a,e.selectRowArray=o,e}))},onSelect:(t,e)=>{v((n=>{let a=[...n.selectRowIds],o=[...n.selectRowArray];return"checkbox"===r.rowType&&(e?(a.push(t[w]),o.push(t)):(a=a.filter((e=>e!==t[w])),o=o.filter((e=>e[w]!==t[w])))),"radio"===r.rowType&&e&&(a=[t[w]],o=[t]),r.onSelect&&r.onSelect(o,a),n.selectRowIds=a,n.selectRowArray=o,n}))}})),[r,w,v,b.selectRowIds]),E=t=>(e,{size:n})=>{d((e=>{const a=[...e];return a[t]={...a[t],width:n.width},c.current=a,a}))},O=e.useCallback((t=>{const e=!1===r.controlled?s.current:[...h],n=e.findIndex((e=>t[w]===e[w])),a=e[n];e.splice(n,1,{...a,...t}),!1===r.controlled?s.current=e:g(e)}),[w,h,r.controlled]),S=e.useCallback((async(t,e)=>{const n=h[t],a=tI(h,{$splice:[[t,1],[e,0,n]]});m(!0);try{if(r.drag){const n=JSON.parse(JSON.stringify(a)),o=JSON.parse(JSON.stringify(h)),i=[t,e].sort();!1!==await r.drag.moveRow(t,e,n,o,n.slice(i[0],i[1]+1))&&g(n)}}finally{m(!1)}}),[r.drag,h]);return e.useEffect((()=>{(async()=>{let t=[...r.columns];t.some((t=>"sequence"===t.dataIndex))||t.unshift({width:55,fixed:"left",title:"序号",dataIndex:"sequence",render:(t,e,n)=>{const a=l.current;return Object.keys(a).length?((a.current||0)-1)*(a.pageSize||0)+n+1:n+1}});for(let[e,n]of t.entries()){"RemoteSearch"===n.valueType&&n.remoteConfig&&n.remoteConfig.remoteApi&&(n.valueEnum=await n.remoteConfig.remoteApi());let a={...n,onHeaderCell:t=>({width:t.width,onResize:E(e)}),onCell:(t,e)=>({record:t,dataIndex:n.dataIndex,title:n.title,editable:"function"==typeof n.editable?n.editable(t,e):n.editable,inputType:n.inputType,valueType:n.valueType,valueEnum:n.valueEnum,recordSelectField:n.recordSelectField,controlRender:n.controlRender,formChange:n.formChange,remoteConfig:n.remoteConfig,formItemProps:n.formItemProps,handleSave:O})},r=c.current.find((t=>t.dataIndex===n.dataIndex&&t.title===n.title));r&&(a.width=r.width),t[e]=a}d(t)})()}),[r.columns,O]),e.useEffect((()=>{v((t=>{let e=[];const n=t=>{for(let a of t){for(let t of b.selectRowIds)a[w]===t&&e.push(a);a.children&&n(a.children)}};return b.selectRowIds.length&&(n(h),e=f.default.unionBy([...t.selectRowArray,...e],w)),t.selectRowArray=e,t}))}),[w,h,v,b.selectRowIds]),e.useEffect((()=>{f.default.isArray(r.data)&&g(r.data||[])}),[r.data]),e.useEffect((()=>{s.current=JSON.parse(JSON.stringify(h))}),[h]),e.useEffect((()=>{const t=document.getElementById("slider-menu"),e=document.getElementById("router-render");if(void 0!==r.scroll?.x||void 0!==r.scroll?.y)x((t=>({...t,...r.scroll})));else if(t&&e){let n=parseInt(window.getComputedStyle(e,null).paddingLeft);x((e=>(e.x=document.body.clientWidth-t.clientWidth-(2*n+43),e)))}}),[r.scroll]),e.useEffect((()=>{r.paginationConfig&&(l.current={...l.current,...r.paginationConfig})}),[r.paginationConfig]),e.useImperativeHandle(a,(()=>({setTableLoading:t=>{m(t)},getPages:()=>({...l.current}),getTableList:async(t,e)=>{t&&("not-reset"===t.pagination?t.current=l.current.current:void 0===t.current&&(t.current=1),t.clearSelectIds&&(delete t.clearSelectIds,v((t=>(t.selectRowArray=[],t.selectRowIds=[],t))))),await k(t),e&&e()},setRowSelected:(t,e)=>{let n=t;!0===e&&(n=Array.from(new Set([...b.selectRowIds,...t]))),v({selectRowIds:n})},getSelectIds:()=>b.selectRowIds,clearSelectIds:()=>{v({selectRowIds:[],selectRowArray:[]})},getSelectRowsArray:()=>b.selectRowArray,removeSelectIds:t=>{v({selectRowIds:b.selectRowIds.filter((e=>{let n=!0;for(let a of t)if(a===e){n=!1;break}return n})),selectRowArray:b.selectRowArray.filter((e=>{let n=!0;for(let a of t)if(a===e[w]){n=!1;break}return n}))})},getStaticDataList:()=>!1===r.controlled?[...s.current]:[...h],setStaticDataList:(t,e)=>{if("[object Object]"===Object.prototype.toString.call(t)){let e=t;g(h.map((n=>(n[w]===e[w]&&(n=t),n))))}"[object Array]"===Object.prototype.toString.call(t)&&g(t),e&&e()}}))),t.jsx(Wj,{children:t.jsx(fM,{children:t.jsx(rS,Object.assign({rowKey:"id",rowClassName:"editable-row",loading:p,bordered:!0,components:{header:{cell:II},body:{row:IR,cell:TR}},onRow:(t,e)=>({index:e,moveRow:S,open:r.drag&&r.drag.open}),columns:u,dataSource:h,rowSelection:r.rowType?C:void 0,pagination:!(!f.default.isFunction(r.apiMethod)||!i.current)&&{size:"small",position:["bottomCenter"],showTotal:t=>`共${t}条`,showSizeChanger:!0,showQuickJumper:!0,...l.current},onChange:(t,e,n)=>{const{order:a}=n;t.orderByInfo=void 0,a&&(t.orderByInfo=`${n.field}:${"ascend"===a?1:-1}`),(t=>{!f.default.isEqual(t,l.current)&&i.current&&(l.current={...l.current,...t},k())})(t)},scroll:y},r.tableConfig),void 0)},void 0)},void 0)})),Rj);b("");var hM=u.default.memo((function(e){const n={...e};return delete n.outerHeight,t.jsx(sv,Object.assign({className:"empty-wrap",style:{minHeight:e&&e.outerHeight?e.outerHeight:400},align:"middle",justify:"center"},{children:t.jsx(da,Object.assign({description:"暂无数据"},n),void 0)}),void 0)}));b(".from-table-modal .ant-modal-body{padding-top:15px}.from-table-modal .ant-modal-body .search-form{margin-bottom:8px}.from-table-modal .ant-modal-body .ant-table-wrapper .ant-pagination{margin-bottom:0}.from-table-modal .from-table-modal-foot{margin-top:20px}");const{Link:gM,Paragraph:bM}=PP;var vM=e.forwardRef((function(n,a){const r=e.useRef(null),o=e.useRef(),[i,l]=qj({saveLoading:!1,selectedRows:[]}),c=e.useMemo((()=>n.tableColumnsList&&n.tableColumnsList.tableConfig&&n.tableColumnsList.tableConfig.rowKey||"id"),[n.tableColumnsList]),s=e.useMemo((()=>{const t=n.width||0;return t>=500&&t<=800?{span:7}:t>800&&t<=1e3?{span:6}:t>1e3&&t<=1200?{span:5}:t>1200?{span:4}:{span:8}}),[n.width]),u=(t,e)=>{if(o.current){let n=[],a=[];"all"===t&&o.current.clearSelectIds(),"odd"===t&&e&&(n=[e[c]],a=i.selectedRows.filter((t=>t[c]!==e[c])),o.current.removeSelectIds(n)),l({selectedRows:a})}},d=e.useCallback((async()=>{if(r.current&&o.current){let t=await r.current.formSubmit();if(t&&Object.keys(t).length){for(let e in t){const n="YYYY-MM-DD HH:mm:ss";m.default(t[e],n,!0).isValid()&&(t[e]=m.default(t[e]).format(n))}t={clearSelectIds:!0,...t},void 0!==n.clearSelectIds&&(t.clearSelectIds=n.clearSelectIds),n.manualParameterChange&&(t=n.manualParameterChange(t)),n.searchCallback?n.searchCallback(t).then((e=>{e&&o.current?.getTableList(t)})):o.current.getTableList(t)}}else o.current?.getTableList()}),[n]),p=()=>{if(r.current){let t=[];const e=n.searchNoResetFiled||[];if(n.searchFormList)for(let a of n.searchFormList){if(a.unionConfig)for(let n of a.unionConfig.unionItems)n.name&&!e.includes(n.name)&&t.push(n.name);a.name&&!e.includes(a.name)&&t.push(a.name)}r.current.formReset(t)}d()};return e.useEffect((()=>{n.visible&&(n.autoGetList&&d(),n.openSelected&&n.openSelected.visible&&l((t=>(t.selectedRows=n.openSelected?.defaultValues||[],o.current?.setRowSelected(t.selectedRows.map((t=>t[c]))),t))))}),[d,n.autoGetList,n.openSelected,n.visible,c,l]),e.useImperativeHandle(a,(()=>({...r.current,...o.current,setSavaLoading:t=>{l({saveLoading:t})}}))),t.jsxs(Dj,Object.assign({className:"from-table-modal",width:n.width,visible:n.visible,title:n.title||"弹窗",onCancel:n.onCancel,forceRender:!0,maskClosable:!1,footer:null},{children:[n.topExtra,n.searchFormList?t.jsx(Qj,{ref:r,rowGridConfig:{gutter:10},colGirdConfig:s,list:(f=n.searchFormList,f?f.map((t=>("Select"===t.componentName&&t.selectData&&t.selectData.length&&(t.selectData.some((t=>"全部"===t.label))||(t.selectData=[{label:"全部",value:""},...t.selectData])),t))):[]),formConfig:n.formConfig,render:()=>n.searchFormList&&n.searchFormList.length?t.jsxs(wC,Object.assign({size:10},{children:[t.jsx(op,Object.assign({type:"primary",onClick:()=>{d()}},{children:"查询"}),void 0),t.jsx(op,Object.assign({className:"btn-reset",onClick:p},{children:"重置"}),void 0)]}),void 0):t.jsx(t.Fragment,{},void 0)},void 0):null,t.jsxs(sv,Object.assign({},n.rowProps,{children:[n.leftSlot?t.jsx(pv,Object.assign({},n.leftSlot.colProps,{children:n.leftSlot.jsx}),void 0):null,t.jsx(pv,Object.assign({},n.colProps,{children:t.jsxs(sv,Object.assign({gutter:10},{children:[t.jsx(pv,Object.assign({span:n.openSelected&&n.openSelected.visible?16:24},{children:t.jsx(mM,{ref:o,extra:{rowType:n.tableColumnsList.rowType,apiMethod:n.apiMethod,columns:n.tableColumnsList.list,data:n.data,onSelect:(t,e)=>{((t,e)=>{l({selectedRows:e.map((e=>{let a={};const r=t.find((t=>t[c]===e));if(a[c]=e,n.openSelected&&n.openSelected.fileName&&(a[n.openSelected.fileName]=e),r&&(a=r),n.openSelected){const t=n.openSelected.fileName,r=n.openSelected.defaultValues;if(t&&r){const n=r.find((t=>t[c]===e));n&&(a[t]=n[t])}}return a}))})})(t,e),n.onSelect&&n.onSelect(t,e)},getTableSuccessData:n.getTableSuccessData,tableConfig:n.tableColumnsList.tableConfig,scroll:{x:"max-content"}}},void 0)}),void 0),n.openSelected&&n.openSelected.visible?t.jsx(pv,Object.assign({span:8},{children:t.jsx(mv,Object.assign({title:"已选列表",size:"small",bodyStyle:{height:n.openSelected.height||330,overflowY:"auto"},extra:t.jsx(gM,Object.assign({onClick:()=>u("all")},{children:"全部移除"}),void 0)},{children:i.selectedRows.length?i.selectedRows.map((e=>{const a=e[c],r=e[n.openSelected?.fileName];return t.jsxs(sv,Object.assign({gutter:12},{children:[t.jsx(pv,Object.assign({span:11,title:r},{children:t.jsx(bM,Object.assign({ellipsis:!0},{children:r}),void 0)}),void 0),t.jsx(pv,Object.assign({span:9,title:a},{children:t.jsx(bM,Object.assign({ellipsis:!0},{children:a}),void 0)}),void 0),t.jsx(pv,Object.assign({span:4},{children:t.jsx(gM,Object.assign({onClick:()=>u("odd",e)},{children:"移除"}),void 0)}),void 0)]}),a)})):t.jsx(hM,{outerHeight:200},void 0)}),void 0)}),void 0):null]}),void 0)}),void 0),n.rightSlot?t.jsx(pv,Object.assign({},n.rightSlot.colProps,{children:n.rightSlot.jsx}),void 0):null]}),void 0),t.jsx(sv,Object.assign({className:"from-table-modal-foot",justify:"center"},{children:t.jsx(pv,{children:t.jsxs(wC,Object.assign({size:20},{children:[n.onCancel?t.jsx(op,Object.assign({onClick:()=>n.onCancel&&n.onCancel()},{children:"关闭"}),void 0):null,n.onConfirm?t.jsx(op,Object.assign({type:"primary",loading:i.saveLoading,onClick:()=>{let t=[],e=[];t=n.openSelected&&n.openSelected.visible?i.selectedRows:o.current?.getSelectRowsArray()||[],n.onConfirm&&(o.current&&(e=o.current.getSelectIds()),l({saveLoading:!0}),n.onConfirm(t,e).then((t=>{l({saveLoading:!1}),t&&n.onCancel&&n.onCancel()})).catch((t=>{l({saveLoading:!1}),ni.warn(t,1.5)})))}},{children:"确定"}),void 0):null]}),void 0)},void 0)}),void 0)]}),void 0);var f})),yM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm104 316.9c0 10.2-4.9 19.9-13.2 25.9L457.4 512l145.4 105.2c8.3 6 13.2 15.6 13.2 25.9V690c0 6.5-7.4 10.3-12.7 6.5l-246-178a7.95 7.95 0 010-12.9l246-178a8 8 0 0112.7 6.5v46.8z"}}]},name:"left-circle",theme:"filled"},xM=function(t,n){return e.createElement(Eo,de(de({},t),{},{ref:n,icon:yM}))};xM.displayName="LeftCircleFilled";var wM=e.forwardRef(xM),kM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm154.7 454.5l-246 178c-5.3 3.8-12.7 0-12.7-6.5v-46.9c0-10.2 4.9-19.9 13.2-25.9L566.6 512 421.2 406.8c-8.3-6-13.2-15.6-13.2-25.9V334c0-6.5 7.4-10.3 12.7-6.5l246 178c4.4 3.2 4.4 9.8 0 13z"}}]},name:"right-circle",theme:"filled"},CM=function(t,n){return e.createElement(Eo,de(de({},t),{},{ref:n,icon:kM}))};CM.displayName="RightCircleFilled";var EM=e.forwardRef(CM);b(".quickly-form-modal .ant-modal-body{padding-top:15px}.quickly-form-modal .quickly-form-modal-foot{margin-top:20px}");var OM=u.default.memo((n=>{const a=e.useRef(),r=e.useRef({page:1,pages:1,size:10}),[o,i]=qj({id:void 0,saveLoading:!1,data:[]}),l={fontSize:24},c=e.useCallback(((t,e)=>t.map((t=>{if(e)for(let n of e)t[n]&&(t[n]=m.default(t[n]));return t}))),[]),s=e.useCallback((async t=>{if(n.apiMethod)try{let e="";const a=await n.apiMethod(r.current);console.log("getList useCallback",a,"queryPagination.current",r.current);const o=a.data.content;r.current.pages=a.data.pages,"up"===t&&(e=o[o.length-1].id),"down"===t&&(e=o[0].id),i({id:e||n.id,data:o})}catch(t){}}),[n,i]),u=e.useMemo((()=>{let t=0;for(let[e,n]of o.data.entries())if(n.id===o.id){t=e;break}return t}),[o.data,o.id]),d=e.useCallback((async()=>{if(n.apiMethod){if(1===r.current.page&&0===u)return ni.destroy(),void ni.warn("已经是第一页啦~",1.5);if(u-1<0)return r.current.page=r.current.page-1,s("up"),void(n.onChange&&n.onChange(o.data[u],r.current))}else if(0===u)return ni.destroy(),void ni.warn("已经是第一个啦~",1.5);if(a.current){const t=await a.current.formSubmit();if(t){t.id=o.data[u].id;try{const e=o.data[u-1];console.log("cutIndexObj",e),n.submitApi(t,"put"),n.onChange&&n.onChange(e,r.current),i((n=>(n.id=e.id,n.data[u]={...n.data[u],...t},n)))}catch(t){}}}}),[u,s,n,i,o.data]),p=e.useCallback((async()=>{if(n.apiMethod){if(r.current.page===r.current.pages&&u===o.data.length-1)return ni.destroy(),void ni.warn("已经是最后一页啦~",1.5);if(u+1>=o.data.length)return r.current.page=r.current.page+1,s("down"),void(n.onChange&&n.onChange(o.data[u],r.current))}else if(0===o.data.length||u===o.data.length-1)return ni.destroy(),void ni.warn("已经是最后一个啦~",1.5);if(a.current){const t=await a.current.formSubmit();if(t){t.id=o.data[u].id;try{const e=o.data[u+1];console.log("cutIndexObj",e),n.submitApi(t,"put"),n.onChange&&n.onChange(e,r.current),i((n=>(n.id=e.id,n.data[u]={...n.data[u],...t},n)))}catch(t){}}}}),[u,s,n,i,o.data]),f=e.useCallback((async t=>{if("PageUp"===t.key&&(d(),t.preventDefault()),"PageDown"===t.key&&(p(),t.preventDefault()),"Enter"===t.key&&a.current){const t=await a.current.formSubmit();t.id=o.data[u].id;try{n.submitApi(t,"put"),ni.success("保存成功",1.5)}catch(t){}}}),[u,p,d,n,o.data]),h=e.useCallback((async()=>{if(n.methodParams){let t=["page","pages","size"],e={},a=await n.methodParams;for(let n in r.current)for(let a of t)n===a&&(e[a]=r.current[n]);e={...e,...a},e.page=a.page?a.page.current:1,r.current=e}}),[n.methodParams]);return e.useEffect((()=>{n.visible&&setTimeout((()=>{a.current&&a.current.setFormValues(o.data[u])}),100)}),[u,n.visible,o.data]),e.useEffect((()=>{n.visible&&(n.apiMethod?h().then((()=>{s()})):i({id:n.id,data:c(n.data,n.transformTime)}))}),[h,s,n.apiMethod,n.data,n.id,n.transformTime,n.visible,i,c]),e.useEffect((()=>(n.visible?document.addEventListener("keydown",f):document.removeEventListener("keydown",f),()=>{document.removeEventListener("keydown",f)})),[f,n.visible]),t.jsx(Dj,Object.assign({className:"quickly-form-modal",width:n.width?n.width:960,visible:n.visible,title:n.title||"快速编辑信息",onCancel:()=>{n.onCancel&&n.onCancel(r.current)},maskClosable:!1,destroyOnClose:!0,footer:null},{children:t.jsxs(sv,Object.assign({className:"modal-form-height",gutter:16,align:"middle",wrap:!1},{children:[t.jsx(pv,Object.assign({flex:"60px"},{children:t.jsx(sv,Object.assign({justify:"center"},{children:t.jsx(pv,{children:t.jsx(wM,{className:"circle-filled",style:l,onClick:d},void 0)},void 0)}),void 0)}),void 0),t.jsx(pv,Object.assign({flex:"auto"},{children:t.jsx(Qj,{ref:a,formConfig:{labelCol:{span:24}},rowGridConfig:{gutter:[20,0]},colGirdConfig:{span:6},list:n.formList},void 0)}),void 0),t.jsx(pv,Object.assign({flex:"60px"},{children:t.jsx(sv,Object.assign({justify:"center"},{children:t.jsx(pv,{children:t.jsx(EM,{className:"circle-filled",style:l,onClick:p},void 0)},void 0)}),void 0)}),void 0)]}),void 0)}),void 0)}),Rj);b(".form-modal .ant-modal-body{padding-top:15px}.form-modal .ant-modal-body .modal-form-height{max-height:580px;padding-right:5px;overflow-x:hidden;overflow-y:auto}.form-modal .ant-modal-body .modal-form-height .generate-form.ant-form-horizontal.ant-form .ant-row.ant-form-item{margin-bottom:4px}.form-modal .form-modal-foot{margin-top:20px}");var SM=e.forwardRef(((n,a)=>{const r=e.useRef(),[o,i]=qj({loading:!1,saveLoading:!1,disabled:!1});return e.useEffect((()=>{!1===n.visible&&i({saveLoading:!1})}),[n.visible,i]),e.useEffect((()=>{i({disabled:n.disable})}),[n.disable,i]),e.useImperativeHandle(a,(()=>({setFormLoading:t=>{i({loading:t})},setFormSaveLoading:t=>{i({saveLoading:t})},setFormFields:t=>{r.current&&r.current.setFormFields(t)},getFormValues:t=>r.current?.getFormValues(t),setFormValues:t=>{r.current&&r.current.setFormValues(t)},getFormSubmitValues:async()=>r.current?await(r.current?.formSubmit()):{}}))),t.jsx(Dj,Object.assign({className:"form-modal",width:n.width?n.width:600,visible:n.visible,title:n.title||"对话框",onCancel:n.onCancel,destroyOnClose:!0,maskClosable:!1,footer:null},{children:t.jsxs(Dw,Object.assign({spinning:o.loading},{children:[t.jsxs("div",Object.assign({className:"modal-form-height"},{children:[n.topRender?n.topRender:null,t.jsx(Qj,{ref:r,formConfig:{labelCol:{span:24},...n.formConfig},rowGridConfig:{gutter:[20,0]},colGirdConfig:n.colGirdConfig||{span:12},list:n.formList},void 0),n.children&&n.children]}),void 0),n.footer?n.footer:t.jsx(sv,Object.assign({className:"form-modal-foot",justify:"center"},{children:t.jsx(pv,{children:t.jsxs(wC,Object.assign({size:20},{children:[t.jsx(op,Object.assign({onClick:()=>n.onCancel&&n.onCancel()},{children:"关闭"}),void 0),!o.disabled&&t.jsx(op,Object.assign({type:"primary",loading:o.saveLoading,onClick:async()=>{let t=await(r.current?.formSubmit());if(t){if(t.endTime&&t.startTime&&m.default(t.endTime).isBefore(t.startTime))return void ni.warn("生效日期不能大于失效日期",1.5);i({saveLoading:!0});try{let e={};if(t={...t,...n.submitExtraParameters},n.switchTransform)for(let e=0;e<n.switchTransform.length;e++)t[n.switchTransform[e]]?t[n.switchTransform[e]]="1":t[n.switchTransform[e]]="0";if(n.submitRemoveField)for(let e=0;e<n.submitRemoveField.length;e++)t[n.submitRemoveField[e]]&&delete t[n.submitRemoveField[e]];for(let e in t){const n="YYYY-MM-DD HH:mm:ss";m.default(t[e],n,!0).isValid()&&(t[e]=m.default(t[e]).format(n))}if(n.manualParameterChange&&(t=n.manualParameterChange(t)),n.manualVerification&&!n.manualVerification(t))return console.warn("手动验证表单不通过"),void i({saveLoading:!1});t=f.default.omitBy(t,f.default.isNil),n.submitApi&&t?(n.id?(t.id=n.id,e=await n.submitApi(t,"put")):e=await n.submitApi(t,"post"),1===e.code&&(n.onConfirm&&n.onConfirm(e),ni.success("操作成功",1.5),n.onCancel&&n.onCancel()),i({saveLoading:!1})):n.onConfirm&&t&&n.onConfirm(t)}catch(t){i({saveLoading:!1})}}}},{children:"提交"}),void 0)]}),void 0)},void 0)}),void 0)]}),void 0)}),void 0)}));b('@import "https://at.alicdn.com/t/font_2381668_l6oy3doglyo.css";.icon-selected-modal .avatar-selected{display:flex;align-items:center;justify-content:center;width:36px;height:36px;overflow:hidden;border:2px solid #fff;border-radius:4px;cursor:pointer}.icon-selected-modal .avatar-selected.avatar-selected-bg{border-color:#5860f8}.icon-selected-modal .icon-selected-foot{margin-top:20px}');var NM=u.default.memo((e=>{const[n,a]=qj({iconModal:{selected:-1,list:["iconmove","iconmap","iconnotice","iconpassword","iconNotvisible1","iconphone","iconpic1","iconpin","iconproduct","iconQRcode1","iconreeor","iconreduce","iconresonserate","iconremind","iconrising1","iconRightarrow","iconrmb1","iconsave","iconscanning","iconseleted","iconsearchcart","iconshare","iconRightbutton","iconsorting","iconsound-Mute","iconsound-filling","iconsuggest","iconsuccess","iconsupplier-features","iconswitch","iconsuspended","iconTop","iconsmile","icontradealert","icontopsales","icontradingvolume","iconupload","iconviewlarger","iconwarning","iconset","iconDaytimemode","iconunlock","iconexchangerate","iconall","iconbussiness-man","iconcomponent","iconcode","iconcopy","icondollar","iconhistory","iconeditor","icondata","icongift","iconintegral","iconnav-list","iconpic","iconNotvisible","iconplay","iconQRcode","iconrmb","iconsimilar-product","iconExportservices","iconsendinquiry","iconcolumn","iconadd-account","iconcolumn1","iconadd","iconadd-cart","iconarrow-right","iconarrow-left","iconall1","iconarrow-up","iconashbin","iconatm","iconbad","iconattachent","iconbrowse","iconcalendar","iconcart-full","iconcalculator","iconcameraswitching","iconcecurity-protection","iconcategory","iconclose","iconcertified-supplier","iconcart-Empty","iconcode1","iconcopy1","iconcoupons","iconconnections","iconcry","iconclock","iconCurrencyConverter","iconcut","icondata1","iconCustomermanagement","icondouble-arro-right","iconcustomization","icondouble-arrow-left","icondiscount","icondownload","icondollar1","icondefault-template","iconeditor1","iconetrical-equipm","iconellipsis","iconemail","iconfalling","iconfilter","iconfolder","iconhelp","icongood","icongift1","iconhot","iconinspection","iconleftbutton","iconleftarrow","iconlink","iconloading","iconphone1"]}}),r={height:34,fontSize:22};return t.jsxs(Dj,Object.assign({className:"icon-selected-modal",width:e.width?e.width:590,visible:e.visible,title:e.title?e.title:"图标选择",onCancel:e.onCancel,destroyOnClose:!0,maskClosable:!1,footer:null},{children:[t.jsx(sv,Object.assign({gutter:[10,10]},{children:n.iconModal.list.map(((e,o)=>t.jsx(pv,{children:t.jsx("div",Object.assign({className:`avatar-selected ${o===n.iconModal.selected?"avatar-selected-bg":null}`,onClick:()=>{a((t=>(t.iconModal.selected=o,t)))}},{children:t.jsx("i",{className:`iconfont ${e}`,title:e,style:r},void 0)}),void 0)},o)))}),void 0),t.jsx(sv,Object.assign({className:"icon-selected-foot",justify:"center"},{children:t.jsx(pv,{children:t.jsxs(wC,Object.assign({size:20},{children:[t.jsx(op,Object.assign({onClick:e.onCancel},{children:"关闭"}),void 0),t.jsx(op,Object.assign({type:"primary",onClick:()=>{const t=n.iconModal.list[n.iconModal.selected];e.onConfirm&&e.onConfirm(t)}},{children:"确定"}),void 0)]}),void 0)},void 0)}),void 0)]}),void 0)}),Rj);b(".button-group{position:relative;display:inline-flex;align-items:center;justify-content:center;height:30px;padding:3px 15px;font-size:12px;line-height:1.15;white-space:nowrap;text-align:center;background-color:#f2f2f3;background-image:none;border:0;border-radius:4px;outline:none;box-shadow:0 2px 0 rgba(0,0,0,.015);cursor:pointer;transition:all .3s cubic-bezier(.645,.045,.355,1);user-select:none;touch-action:manipulation}.button-group:hover{background-color:#e3e5e6}.button-group-large{height:40px}.button-group-small{height:26px}.button-group-primary{color:#fff;background-color:#5860f8}.button-group-primary:hover{background-color:#828cff}.button-group .anticon{margin-left:5px;font-size:12px}.button-group .anticon.anticon-close{position:absolute;top:-5px;right:-5px;display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;color:#fff;font-size:10px;background-color:#878d99;border-radius:100%}");var PM=u.default.memo(e.forwardRef((function(n,a){const[r,o]=qj({type:"checkbox",deleteOpen:!1,data:[]}),i=t=>{let e="button-group";return n.buttonClassName&&(e=`${e} ${n.buttonClassName}`),n.size&&(e=`${e} button-group-${n.size}`),t.selected&&(e=`${e} button-group-primary`),e};return e.useEffect((()=>{if(n.checkType&&o({type:n.checkType}),n.deleteOpen&&o({deleteOpen:n.deleteOpen}),n.data){const t=n.data.map((t=>(void 0===t.selected&&(t.selected=!1),t)));o({data:t})}}),[n,o]),e.useImperativeHandle(a,(()=>({getButtonGroupSelected:()=>r.data.filter((t=>t.selected))}))),t.jsx(sv,Object.assign({className:n.className,gutter:[10,10]},{children:r.data.map(((e,a)=>t.jsx(pv,{children:t.jsxs("div",Object.assign({className:i(e),onClick:()=>((t,e)=>{let a=[];n.deleteOpen||(r.data&&("checkbox"===r.type&&(r.data[e].selected=!t.selected,a=r.data),"radio"===r.type&&(a=r.data.map(((n,a)=>{let r=!1;return e===a&&(r=!t.selected),{...n,selected:r}})))),n.onChange&&n.onChange(a),o({data:a}))})(e,a)},{children:[e.name,r.deleteOpen?t.jsx(li,{onClick:()=>(t=>{if(r.data){const e=r.data.filter(((e,n)=>t!==n));n.onChange&&n.onChange(e),o({data:e})}})(a)},void 0):null]}),void 0)},a)))}),void 0)})),Rj);exports.Affix=Ij,exports.ButtonGroup=PM,exports.Dialog=Dj,exports.Empty=hM,exports.GaoDeMap=Aj,exports.GenerateForm=Qj,exports.GenerateTable=mM,exports.IconSelectionModal=NM,exports.LayoutFormModal=SM,exports.LayoutTableModal=vM,exports.QuicklyProcessForms=OM,exports.TreeNode=Gj,exports.Upload=Yj;
|