hlyc-web-pack 3.6.87 → 3.6.88
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/GenerateTable/index.d.ts +2 -1
- package/lib/index.js +1 -1
- package/package.json +1 -1
|
@@ -39,7 +39,8 @@ export type ScrollXYType = {
|
|
|
39
39
|
y?: string | number | undefined;
|
|
40
40
|
};
|
|
41
41
|
export interface VirtualProps {
|
|
42
|
-
|
|
42
|
+
/** 虚拟滚动高度,该高度必须和table.scroll.y值一样,否则会出现滚动条不显示的问题 */
|
|
43
|
+
height: number | string;
|
|
43
44
|
onReachEnd?: () => void;
|
|
44
45
|
onScroll?: () => void;
|
|
45
46
|
onListRender?: (listInfo: {
|
package/lib/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
* This source code is licensed under the MIT license found in the
|
|
22
22
|
* LICENSE file in the root directory of this source tree.
|
|
23
|
-
*/function uR(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case YI:switch(t=t.type){case QI:case tR:case qI:case XI:case GI:case nR:return t;default:switch(t=t&&t.$$typeof){case JI:case eR:case oR:case rR:case ZI:return t;default:return e}}case $I:return e}}}function dR(t){return uR(t)===tR}var pR={AsyncMode:QI,ConcurrentMode:tR,ContextConsumer:JI,ContextProvider:ZI,Element:YI,ForwardRef:eR,Fragment:qI,Lazy:oR,Memo:rR,Portal:$I,Profiler:XI,StrictMode:GI,Suspense:nR,isAsyncMode:function(t){return dR(t)||uR(t)===QI},isConcurrentMode:dR,isContextConsumer:function(t){return uR(t)===JI},isContextProvider:function(t){return uR(t)===ZI},isElement:function(t){return"object"==typeof t&&null!==t&&t.$$typeof===YI},isForwardRef:function(t){return uR(t)===eR},isFragment:function(t){return uR(t)===qI},isLazy:function(t){return uR(t)===oR},isMemo:function(t){return uR(t)===rR},isPortal:function(t){return uR(t)===$I},isProfiler:function(t){return uR(t)===XI},isStrictMode:function(t){return uR(t)===GI},isSuspense:function(t){return uR(t)===nR},isValidElementType:function(t){return"string"==typeof t||"function"==typeof t||t===qI||t===tR||t===XI||t===GI||t===nR||t===aR||"object"==typeof t&&null!==t&&(t.$$typeof===oR||t.$$typeof===rR||t.$$typeof===ZI||t.$$typeof===JI||t.$$typeof===eR||t.$$typeof===lR||t.$$typeof===cR||t.$$typeof===sR||t.$$typeof===iR)},typeOf:uR},fR=K((function(t,e){"production"!==process.env.NODE_ENV&&function(){var t="function"==typeof Symbol&&Symbol.for,n=t?Symbol.for("react.element"):60103,a=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,l=t?Symbol.for("react.provider"):60109,c=t?Symbol.for("react.context"):60110,s=t?Symbol.for("react.async_mode"):60111,u=t?Symbol.for("react.concurrent_mode"):60111,d=t?Symbol.for("react.forward_ref"):60112,p=t?Symbol.for("react.suspense"):60113,f=t?Symbol.for("react.suspense_list"):60120,m=t?Symbol.for("react.memo"):60115,h=t?Symbol.for("react.lazy"):60116,g=t?Symbol.for("react.block"):60121,b=t?Symbol.for("react.fundamental"):60117,v=t?Symbol.for("react.responder"):60118,y=t?Symbol.for("react.scope"):60119;function x(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case n:var f=t.type;switch(f){case s:case u:case r:case i:case o:case p:return f;default:var g=f&&f.$$typeof;switch(g){case c:case d:case h:case m:case l:return g;default:return e}}case a:return e}}}var w=s,k=u,C=c,E=l,S=n,O=d,N=r,P=h,T=m,D=a,I=i,R=o,j=p,M=!1;function z(t){return x(t)===u}e.AsyncMode=w,e.ConcurrentMode=k,e.ContextConsumer=C,e.ContextProvider=E,e.Element=S,e.ForwardRef=O,e.Fragment=N,e.Lazy=P,e.Memo=T,e.Portal=D,e.Profiler=I,e.StrictMode=R,e.Suspense=j,e.isAsyncMode=function(t){return M||(M=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),z(t)||x(t)===s},e.isConcurrentMode=z,e.isContextConsumer=function(t){return x(t)===c},e.isContextProvider=function(t){return x(t)===l},e.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===n},e.isForwardRef=function(t){return x(t)===d},e.isFragment=function(t){return x(t)===r},e.isLazy=function(t){return x(t)===h},e.isMemo=function(t){return x(t)===m},e.isPortal=function(t){return x(t)===a},e.isProfiler=function(t){return x(t)===i},e.isStrictMode=function(t){return x(t)===o},e.isSuspense=function(t){return x(t)===p},e.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===u||t===i||t===o||t===p||t===f||"object"==typeof t&&null!==t&&(t.$$typeof===h||t.$$typeof===m||t.$$typeof===l||t.$$typeof===c||t.$$typeof===d||t.$$typeof===b||t.$$typeof===v||t.$$typeof===y||t.$$typeof===g)},e.typeOf=x}()})),mR=K((function(t){"production"===process.env.NODE_ENV?t.exports=pR:t.exports=fR})),hR=Object.getOwnPropertySymbols,gR=Object.prototype.hasOwnProperty,bR=Object.prototype.propertyIsEnumerable;var vR=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;var a=Object.getOwnPropertyNames(e).map((function(t){return e[t]}));if("0123456789"!==a.join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(t){r[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var n,a,r=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(t),o=1;o<arguments.length;o++){for(var i in n=Object(arguments[o]))gR.call(n,i)&&(r[i]=n[i]);if(hR){a=hR(n);for(var l=0;l<a.length;l++)bR.call(n,a[l])&&(r[a[l]]=n[a[l]])}}return r},yR=Function.call.bind(Object.prototype.hasOwnProperty),xR="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",wR=yR,kR=function(){};if("production"!==process.env.NODE_ENV){var CR=xR,ER={},SR=wR;kR=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}}}function OR(t,e,n,a,r){if("production"!==process.env.NODE_ENV)for(var o in t)if(SR(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]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name="Invariant Violation",l}i=t[o](e,o,a,n,null,CR)}catch(t){i=t}if(!i||i instanceof Error||kR((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 ER)){ER[i.message]=!0;var c=r?r():"";kR("Failed "+n+" type: "+i.message+(null!=c?c:""))}}}OR.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(ER={})};var NR=OR,PR=function(){};function TR(){return null}"production"!==process.env.NODE_ENV&&(PR=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}});function DR(){}function IR(){}IR.resetWarningCache=DR;var RR=function(t,e){var n="function"==typeof Symbol&&Symbol.iterator;var a="<<anonymous>>",r={array:c("array"),bigint:c("bigint"),bool:c("boolean"),func:c("function"),number:c("number"),object:c("object"),string:c("string"),symbol:c("symbol"),any:l(TR),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 `"+d(l)+"` supplied to `"+a+"`, expected an array.");for(var c=0;c<l.length;c++){var s=t(l,c,a,r,o+"["+c+"]",xR);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 `"+d(l)+"` supplied to `"+a+"`, expected a single ReactElement.")})),elementType:l((function(t,e,n,a,r){var o=t[e];return mR.isValidElementType(o)?null:new i("Invalid "+a+" `"+r+"` of type `"+d(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 u(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=d(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(wR(l,s)){var u=t(l,s,a,r,o+"."+s,xR);if(u instanceof Error)return u}return null}))},oneOf:function(t){if(!Array.isArray(t))return"production"!==process.env.NODE_ENV&&PR(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."),TR;return l((function(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"===p(e)?String(e):e}));return new i("Invalid "+r+" `"+l+"` of value `"+String(c)+"` supplied to `"+a+"`, expected one of "+u+".")}))},oneOfType:function(t){if(!Array.isArray(t))return"production"!==process.env.NODE_ENV&&PR("Invalid argument supplied to oneOfType, expected an instance of array."),TR;for(var e=0;e<t.length;e++){var n=t[e];if("function"!=typeof n)return PR("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+f(n)+" at index "+e+"."),TR}return l((function(e,n,a,r,o){for(var l=[],c=0;c<t.length;c++){var s=(0,t[c])(e,n,a,r,o,xR);if(null==s)return null;s.data&&wR(s.data,"expectedType")&&l.push(s.data.expectedType)}return new i("Invalid "+r+" `"+o+"` supplied to `"+a+"`"+(l.length>0?", expected one of type ["+l.join(", ")+"]":"")+".")}))},shape:function(t){return l((function(e,n,a,r,o){var l=e[n],c=d(l);if("object"!==c)return new i("Invalid "+r+" `"+o+"` of type `"+c+"` supplied to `"+a+"`, expected `object`.");for(var u in t){var f=t[u];if("function"!=typeof f)return s(a,r,o,u,p(f));var m=f(l,u,a,r,o+"."+u,xR);if(m)return m}return null}))},exact:function(t){return l((function(e,n,a,r,o){var l=e[n],c=d(l);if("object"!==c)return new i("Invalid "+r+" `"+o+"` of type `"+c+"` supplied to `"+a+"`, expected `object`.");var u=vR({},e[n],t);for(var f in u){var m=t[f];if(wR(t,f)&&"function"!=typeof m)return s(a,r,o,f,p(m));if(!m)return new i("Invalid "+r+" `"+o+"` key `"+f+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(e[n],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(t),null," "));var h=m(l,f,a,r,o+"."+f,xR);if(h)return h}return null}))}};function o(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function i(t,e){this.message=t,this.data=e&&"object"==typeof e?e:{},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!==xR){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&&(PR("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 d(c)!==t?new i("Invalid "+r+" `"+o+"` of type `"+p(c)+"` supplied to `"+a+"`, expected `"+t+"`.",{expectedType:t}):null}))}function s(t,e,n,a,r){return new i((t||"React class")+": "+e+" type `"+n+"."+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+r+"`.")}function u(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(u);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(!u(r.value))return!1}else for(;!(r=o.next()).done;){var i=r.value;if(i&&!u(i[1]))return!1}return!0;default:return!1}}function d(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 p(t){if(null==t)return""+t;var e=d(t);if("object"===e){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return e}function f(t){var e=p(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=NR,r.resetWarningCache=NR.resetWarningCache,r.PropTypes=r,r},jR=function(){function t(t,e,n,a,r,o){if(o!==xR){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,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:IR,resetWarningCache:DR};return n.PropTypes=n,n},MR=K((function(t){if("production"!==process.env.NODE_ENV){var e=mR;t.exports=RR(e.isElement,!0)}else t.exports=jR()})),zR=K((function(t,e){e.__esModule=!0,e.resizableProps=void 0;var n=function(t){return t&&t.__esModule?t:{default:t}}(MR);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:function(){for(var t=arguments.length,e=new Array(t),a=0;a<t;a++)e[a]=arguments[a];var r,o=e[0];return"both"===o.axis||"y"===o.axis?(r=n.default.number).isRequired.apply(r,e):n.default.number.apply(n.default,e)},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:function(){for(var t=arguments.length,e=new Array(t),a=0;a<t;a++)e[a]=arguments[a];var r,o=e[0];return"both"===o.axis||"x"===o.axis?(r=n.default.number).isRequired.apply(r,e):n.default.number.apply(n.default,e)}};e.resizableProps=a})),LR=K((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}(f.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?Object.assign.bind():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},o.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=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var a=n.call(t,e||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(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?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}var u=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,UI.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(v.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=u,u.propTypes=zR.resizableProps,u.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1}})),AR=K((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}(f.default),a=i(MR),r=i(LR),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?Object.assign.bind():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},c.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 u(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){d(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 d(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var a=n.call(t,e||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function p(t,e){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},p(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,p(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,d=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:d,onResizeStart:i,onResize:this.onResize,onResizeStop:l,resizeHandles:h,transformScale:b,width:this.state.width},n.createElement("div",c({},v,{style:u(u({},g),{},{width:this.state.width+"px",height:this.state.height+"px"})})))},i}(n.Component);e.default=m,m.propTypes=u(u({},zR.resizableProps),{},{children:a.default.element})})),_R=LR.default;AR.default;const FR=t=>{const{onResize:e,width:a,...r}=t;return a?n.jsx(_R,{width:a,height:0,handle:n.jsx("span",{className:"react-resizable-handle",onClick:t=>{t.stopPropagation()}}),onResize:e,draggableOpts:{enableUserSelectHack:!1},children:n.jsx("th",{...r})}):n.jsx("th",{...r})};var VR,KR=t.createContext({dragDropManager:void 0});function HR(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"}(VR||(VR={}));var BR="dnd-core/INIT_COORDS",UR="dnd-core/BEGIN_DRAG",WR="dnd-core/PUBLISH_DRAG_SOURCE",YR="dnd-core/HOVER",$R="dnd-core/DROP",qR="dnd-core/END_DRAG";function GR(t,e){return{type:BR,payload:{sourceClientOffset:e||null,clientOffset:t||null}}}function XR(t){return XR="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},XR(t)}function ZR(t,e,n){return e.split(".").reduce((function(t,e){return t&&t[e]?t[e]:n||null}),t)}function JR(t){return"object"===XR(t)}var QR={type:BR,payload:{clientOffset:null,sourceClientOffset:null}};function tj(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(GR(o)),function(t,e,n){HR(!e.isDragging(),"Cannot call beginDrag while dragging."),t.forEach((function(t){HR(n.getSource(t),"Expected sourceIds to be registered.")}))}(e,l,c);var s=function(t,e){for(var n=null,a=t.length-1;a>=0;a--)if(e.canDragSource(t[a])){n=t[a];break}return n}(e,l);if(null!==s){var u=null;if(o){if(!i)throw new Error("getSourceClientOffset must be defined");!function(t){HR("function"==typeof t,"When clientOffset is provided, getSourceClientOffset must be a function.")}(i),u=i(s)}t.dispatch(GR(o,u));var d=c.getSource(s).beginDrag(l,s);if(null!=d){!function(t){HR(JR(t),"Item must be an object.")}(d),c.pinSource(s);var p=c.getSourceType(s);return{type:UR,payload:{itemType:p,item:d,sourceId:s,clientOffset:o||null,sourceClientOffset:u||null,isSourcePublic:!!r}}}}else t.dispatch(QR)}}function ej(t){return function(){if(t.getMonitor().isDragging())return{type:WR}}}function nj(t,e){return null===e?null===t:Array.isArray(t)?t.some((function(t){return t===e})):t===e}function aj(t){return function(e){var n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).clientOffset;!function(t){HR(Array.isArray(t),"Expected targetIds to be an array.")}(e);var a=e.slice(0),r=t.getMonitor(),o=t.getRegistry();return function(t,e,n){HR(e.isDragging(),"Cannot call hover while not dragging."),HR(!e.didDrop(),"Cannot call hover after drop.");for(var a=0;a<t.length;a++){var r=t[a];HR(t.lastIndexOf(r)===a,"Expected targetIds to be unique in the passed array."),HR(n.getTarget(r),"Expected targetIds to be registered.")}}(a,r,o),function(t,e,n){for(var a=t.length-1;a>=0;a--){var r=t[a];nj(e.getTargetType(r),n)||t.splice(a,1)}}(a,o,r.getItemType()),function(t,e,n){t.forEach((function(t){n.getTarget(t).hover(e,t)}))}(a,r,o),{type:YR,payload:{targetIds:a,clientOffset:n||null}}}}function rj(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 oj(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?rj(Object(n),!0).forEach((function(e){ij(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):rj(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ij(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function lj(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.getMonitor(),a=t.getRegistry();!function(t){HR(t.isDragging(),"Cannot call drop while not dragging."),HR(!t.didDrop(),"Cannot call drop twice during one drag operation.")}(n);var r=function(t){var e=t.getTargetIds().filter(t.canDropOnTarget,t);return e.reverse(),e}(n);r.forEach((function(r,o){var i=function(t,e,n,a){var r=n.getTarget(t),o=r?r.drop(a,t):void 0;(function(t){HR(void 0===t||JR(t),"Drop result must either be an object or undefined.")})(o),void 0===o&&(o=0===e?{}:a.getDropResult());return o}(r,o,a,n),l={type:$R,payload:{dropResult:oj(oj({},e),i)}};t.dispatch(l)}))}}function cj(t){return function(){var e=t.getMonitor(),n=t.getRegistry();!function(t){HR(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:qR}}}function sj(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 uj(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var dj=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),uj(this,"store",void 0),uj(this,"monitor",void 0),uj(this,"backend",void 0),uj(this,"isSetUp",!1),uj(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:tj(t),publishDragSource:ej(t),hover:aj(t),drop:lj(t),endDrag:cj(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)}}],n&&sj(e.prototype,n),a&&sj(e,a),t}();function pj(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 fj="function"==typeof Symbol&&Symbol.observable||"@@observable",mj=function(){return Math.random().toString(36).substring(7).split("").join(".")},hj={INIT:"@@redux/INIT"+mj(),REPLACE:"@@redux/REPLACE"+mj(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+mj()}};function gj(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 bj(t){var e=typeof t;return"production"!==process.env.NODE_ENV&&(e=gj(t)),e}function vj(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?pj(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?pj(1):"Expected the enhancer to be a function. Instead, received: '"+bj(n)+"'");return n(vj)(t,e)}if("function"!=typeof t)throw new Error("production"===process.env.NODE_ENV?pj(2):"Expected the root reducer to be a function. Instead, received: '"+bj(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?pj(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?pj(4):"Expected the listener to be a function. Instead, received: '"+bj(t)+"'");if(c)throw new Error("production"===process.env.NODE_ENV?pj(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?pj(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(!function(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}(t))throw new Error("production"===process.env.NODE_ENV?pj(7):"Actions must be plain objects. Instead, the actual type was: '"+bj(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?pj(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?pj(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}return p({type:hj.INIT}),(a={dispatch:p,subscribe:d,getState:u,replaceReducer:function(t){if("function"!=typeof t)throw new Error("production"===process.env.NODE_ENV?pj(10):"Expected the nextReducer to be a function. Instead, received: '"+bj(t));r=t,p({type:hj.REPLACE})}})[fj]=function(){var t,e=d;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error("production"===process.env.NODE_ENV?pj(11):"Expected the observer to be an object. Instead, received: '"+bj(t)+"'");function n(){t.next&&t.next(u())}return n(),{unsubscribe:e(n)}}})[fj]=function(){return this},t},a}var yj=function(t,e){return t===e};function xj(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 wj(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?xj(Object(n),!0).forEach((function(e){kj(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):xj(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function kj(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Cj={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function Ej(){var t,e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Cj,a=arguments.length>1?arguments[1]:void 0,r=a.payload;switch(a.type){case BR:case UR:return{initialSourceClientOffset:r.sourceClientOffset,initialClientOffset:r.clientOffset,clientOffset:r.clientOffset};case YR:return t=n.clientOffset,e=r.clientOffset,!t&&!e||t&&e&&t.x===e.x&&t.y===e.y?n:wj(wj({},n),{},{clientOffset:r.clientOffset});case qR:case $R:return Cj;default:return n}}var Sj="dnd-core/ADD_SOURCE",Oj="dnd-core/ADD_TARGET",Nj="dnd-core/REMOVE_SOURCE",Pj="dnd-core/REMOVE_TARGET";function Tj(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 Dj(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Tj(Object(n),!0).forEach((function(e){Ij(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Tj(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ij(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Rj={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function jj(){var t,e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Rj,a=arguments.length>1?arguments[1]:void 0,r=a.payload;switch(a.type){case UR:return Dj(Dj({},n),{},{itemType:r.itemType,item:r.item,sourceId:r.sourceId,isSourcePublic:r.isSourcePublic,dropResult:null,didDrop:!1});case WR:return Dj(Dj({},n),{},{isSourcePublic:!0});case YR:return Dj(Dj({},n),{},{targetIds:r.targetIds});case Pj:return-1===n.targetIds.indexOf(r.targetId)?n:Dj(Dj({},n),{},{targetIds:(t=n.targetIds,e=r.targetId,t.filter((function(t){return t!==e})))});case $R:return Dj(Dj({},n),{},{dropResult:r.dropResult,didDrop:!0,targetIds:[]});case qR:return Dj(Dj({},n),{},{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return n}}function Mj(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;switch((arguments.length>1?arguments[1]:void 0).type){case Sj:case Oj:return t+1;case Nj:case Pj:return t-1;default:return t}}var zj=[],Lj=[];function Aj(){var t=arguments.length>1?arguments[1]:void 0;switch(t.type){case YR:break;case Sj:case Oj:case Pj:case Nj:return zj;default:return Lj}var e=t.payload,n=e.targetIds,a=void 0===n?[]:n,r=e.prevTargetIds,o=void 0===r?[]:r,i=function(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}(a,o),l=i.length>0||!function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:yj;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}(a,o);if(!l)return zj;var c=o[o.length-1],s=a[a.length-1];return c!==s&&(c&&i.push(c),s&&i.push(s)),i}function _j(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)+1}function Fj(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 Vj(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Fj(Object(n),!0).forEach((function(e){Kj(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Fj(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Kj(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Hj(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:Aj(t.dirtyHandlerIds,{type:e.type,payload:Vj(Vj({},e.payload),{},{prevTargetIds:ZR(t,"dragOperation.targetIds",[])})}),dragOffset:Ej(t.dragOffset,e),refCount:Mj(t.refCount,e),dragOperation:jj(t.dragOperation,e),stateId:_j(t.stateId)}}function Bj(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Uj(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 Wj(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}zj.__IS_NONE__=!0,Lj.__IS_ALL__=!0;var Yj=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),Wj(this,"store",void 0),Wj(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}).handlerIds;HR("function"==typeof t,"listener must be a function."),HR(void 0===n||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");var a=this.store.getState().stateId;return this.store.subscribe((function(){var r=e.store.getState(),o=r.stateId;try{var i=o===a||o===a+1&&!function(t,e){if(t===zj)return!1;if(t===Lj||void 0===e)return!0;var n,a=(n=t,e.filter((function(t){return n.indexOf(t)>-1})));return a.length>0}(r.dirtyHandlerIds,n);i||t()}finally{a=o}}))}},{key:"subscribeToOffsetChange",value:function(t){var e=this;HR("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 HR(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 HR(e,"Expected to find a valid target. targetId=".concat(t)),!(!this.isDragging()||this.didDrop())&&nj(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 HR(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){if(!t)return!1;var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shallow:!1}).shallow;if(!this.isDragging())return!1;var n=this.registry.getTargetType(t),a=this.getItemType();if(a&&!nj(n,a))return!1;var r=this.getTargetIds();if(!r.length)return!1;var o=r.indexOf(t);return e?o===r.length-1:o>-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?Bj(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?Bj(e,n):null;var t,e,n}}],n&&Uj(e.prototype,n),a&&Uj(e,a),t}(),$j=0;function qj(t){return qj="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},qj(t)}function Gj(t,e){e&&Array.isArray(t)?t.forEach((function(t){return Gj(t,!1)})):HR("string"==typeof t||"symbol"===qj(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 Xj="undefined"!=typeof global?global:self,Zj=Xj.MutationObserver||Xj.WebKitMutationObserver;function Jj(t){return function(){const e=setTimeout(a,0),n=setInterval(a,50);function a(){clearTimeout(e),clearInterval(n),t()}}}const Qj="function"==typeof Zj?function(t){let e=1;const n=new Zj(t),a=document.createTextNode("");return n.observe(a,{characterData:!0}),function(){e=-e,a.data=e}}:Jj;class tM{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 eM=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=Qj(this.flush),this.requestErrorThrow=Jj((()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()}))}},nM=new class{create(t){const e=this.freeTasks,n=e.length?e.pop():new tM(this.onError,(t=>e[e.length]=t));return n.task=t,n}constructor(t){this.onError=t,this.freeTasks=[]}}(eM.registerPendingError);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}function oM(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 iM(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 iM(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 iM(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 lM(t){var e=($j++).toString();switch(t){case VR.SOURCE:return"S".concat(e);case VR.TARGET:return"T".concat(e);default:throw new Error("Unknown Handler Role: ".concat(t))}}function cM(t){switch(t[0]){case"S":return VR.SOURCE;case"T":return VR.TARGET;default:HR(!1,"Cannot parse handler ID: ".concat(t))}}function sM(t,e){var n=t.entries(),a=!1;do{var r=n.next(),o=r.done;if(oM(r.value,2)[1]===e)return!0;a=!!o}while(!a);return!1}var uM=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),rM(this,"types",new Map),rM(this,"dragSources",new Map),rM(this,"dropTargets",new Map),rM(this,"pinnedSourceId",null),rM(this,"pinnedSource",null),rM(this,"store",void 0),this.store=e}var e,n,a;return e=t,n=[{key:"addSource",value:function(t,e){Gj(t),function(t){HR("function"==typeof t.canDrag,"Expected canDrag to be a function."),HR("function"==typeof t.beginDrag,"Expected beginDrag to be a function."),HR("function"==typeof t.endDrag,"Expected endDrag to be a function.")}(e);var n=this.addHandler(VR.SOURCE,t,e);return this.store.dispatch(function(t){return{type:Sj,payload:{sourceId:t}}}(n)),n}},{key:"addTarget",value:function(t,e){Gj(t,!0),function(t){HR("function"==typeof t.canDrop,"Expected canDrop to be a function."),HR("function"==typeof t.hover,"Expected hover to be a function."),HR("function"==typeof t.drop,"Expected beginDrag to be a function.")}(e);var n=this.addHandler(VR.TARGET,t,e);return this.store.dispatch(function(t){return{type:Oj,payload:{targetId:t}}}(n)),n}},{key:"containsHandler",value:function(t){return sM(this.dragSources,t)||sM(this.dropTargets,t)}},{key:"getSource",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return HR(this.isSourceId(t),"Expected a valid source ID."),e&&t===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(t)}},{key:"getTarget",value:function(t){return HR(this.isTargetId(t),"Expected a valid target ID."),this.dropTargets.get(t)}},{key:"getSourceType",value:function(t){return HR(this.isSourceId(t),"Expected a valid source ID."),this.types.get(t)}},{key:"getTargetType",value:function(t){return HR(this.isTargetId(t),"Expected a valid target ID."),this.types.get(t)}},{key:"isSourceId",value:function(t){return cM(t)===VR.SOURCE}},{key:"isTargetId",value:function(t){return cM(t)===VR.TARGET}},{key:"removeSource",value:function(t){var e,n=this;HR(this.getSource(t),"Expected an existing source."),this.store.dispatch(function(t){return{type:Nj,payload:{sourceId:t}}}(t)),e=function(){n.dragSources.delete(t),n.types.delete(t)},eM.enqueueTask(nM.create(e))}},{key:"removeTarget",value:function(t){HR(this.getTarget(t),"Expected an existing target."),this.store.dispatch(function(t){return{type:Pj,payload:{targetId:t}}}(t)),this.dropTargets.delete(t),this.types.delete(t)}},{key:"pinSource",value:function(t){var e=this.getSource(t);HR(e,"Expected an existing source."),this.pinnedSourceId=t,this.pinnedSource=e}},{key:"unpinSource",value:function(){HR(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}},{key:"addHandler",value:function(t,e,n){var a=lM(t);return this.types.set(a,e),t===VR.SOURCE?this.dragSources.set(a,n):t===VR.TARGET&&this.dropTargets.set(a,n),a}}],n&&aM(e.prototype,n),a&&aM(e,a),t}();function dM(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=function(t){var e="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return vj(Hj,t&&e&&e({name:"dnd-core",instanceId:"dnd-core"}))}(arguments.length>3&&void 0!==arguments[3]&&arguments[3]),r=new Yj(a,new uM(a)),o=new dj(a,r),i=t(o,e,n);return o.receiveBackend(i),o}var pM=["children"];function fM(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 mM(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 mM(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 mM(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 hM(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 gM=0,bM=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__"),vM=t.memo((function(e){var a=e.children,r=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]:yM(),n=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,r=e;r[bM]||(r[bM]={dragDropManager:dM(t,e,n,a)});return r[bM]}(t.backend,t.context,t.options,t.debugMode),n=!t.context;return[e,n]}(hM(e,pM)),o=fM(r,2),i=o[0],l=o[1];return t.useEffect((function(){if(l){var t=yM();return++gM,function(){0==--gM&&(t[bM]=null)}}}),[]),n.jsx(KR.Provider,Object.assign({value:i},{children:a}),void 0)}));function yM(){return"undefined"!=typeof global?global:window}function xM(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 wM(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var kM=!1,CM=!1,EM=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),wM(this,"internalMonitor",void 0),wM(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(){HR(!kM,"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 kM=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{kM=!1}}},{key:"isDragging",value:function(){if(!this.sourceId)return!1;HR(!CM,"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 CM=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{CM=!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()}}])&&xM(e.prototype,n),a&&xM(e,a),t}();function SM(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 OM(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var NM=!1,PM=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),OM(this,"internalMonitor",void 0),OM(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;HR(!NM,"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 NM=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{NM=!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()}}])&&SM(e.prototype,n),a&&SM(e,a),t}();function TM(e){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(!t.isValidElement(n)){var r=n;return e(r,a),r}var o=n;!function(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.")}}(o);var i=a?function(t){return e(t,a)}:e;return function(e,n){var a=e.ref;return HR("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?t.cloneElement(e,{ref:function(t){IM(a,t),IM(n,t)}}):t.cloneElement(e,{ref:n})}(o,i)}}function DM(t){var e={};return Object.keys(t).forEach((function(n){var a=t[n];if(n.endsWith("Ref"))e[n]=t[n];else{var r=TM(a);e[n]=function(){return r}}})),e}function IM(t,e){"function"==typeof t?t(e):t.current=e}function RM(t){return RM="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},RM(t)}function jM(t){return null!==t&&"object"===RM(t)&&Object.prototype.hasOwnProperty.call(t,"current")}function MM(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 zM(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 LM(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var AM=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),LM(this,"hooks",DM({dragSource:function(t,e){n.clearDragSource(),n.dragSourceOptions=e||null,jM(t)?n.dragSourceRef=t:n.dragSourceNode=t,n.reconnectDragSource()},dragPreview:function(t,e){n.clearDragPreview(),n.dragPreviewOptions=e||null,jM(t)?n.dragPreviewRef=t:n.dragPreviewNode=t,n.reconnectDragPreview()}})),LM(this,"handlerId",null),LM(this,"dragSourceRef",null),LM(this,"dragSourceNode",void 0),LM(this,"dragSourceOptionsInternal",null),LM(this,"dragSourceUnsubscribe",void 0),LM(this,"dragPreviewRef",null),LM(this,"dragPreviewNode",void 0),LM(this,"dragPreviewOptionsInternal",null),LM(this,"dragPreviewUnsubscribe",void 0),LM(this,"lastConnectedHandlerId",null),LM(this,"lastConnectedDragSource",null),LM(this,"lastConnectedDragSourceOptions",null),LM(this,"lastConnectedDragPreview",null),LM(this,"lastConnectedDragPreviewOptions",null),LM(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!MM(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}},{key:"didDragPreviewOptionsChange",value:function(){return!MM(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}}])&&zM(e.prototype,n),a&&zM(e,a),t}();function _M(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 FM(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var VM=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),FM(this,"hooks",DM({dropTarget:function(t,e){n.clearDropTarget(),n.dropTargetOptions=e,jM(t)?n.dropTargetRef=t:n.dropTargetNode=t,n.reconnect()}})),FM(this,"handlerId",null),FM(this,"dropTargetRef",null),FM(this,"dropTargetNode",void 0),FM(this,"dropTargetOptionsInternal",null),FM(this,"unsubscribeDropTarget",void 0),FM(this,"lastConnectedHandlerId",null),FM(this,"lastConnectedDropTarget",null),FM(this,"lastConnectedDropTargetOptions",null),FM(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!MM(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}}])&&_M(e.prototype,n),a&&_M(e,a),t}();var KM="undefined"!=typeof window?t.useLayoutEffect:t.useEffect;function HM(t){return HM="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},HM(t)}function BM(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 UM(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var WM=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),UM(this,"spec",void 0),UM(this,"monitor",void 0),UM(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"===HM(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()}}])&&BM(e.prototype,n),a&&BM(e,a),t}();function YM(){var e=t.useContext(KR).dragDropManager;return HR(null!=e,"Expected drag drop context"),e}function $M(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 qM(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 qM(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 qM(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 GM(e,n,a){var r=YM(),o=function(e,n,a){var r=t.useMemo((function(){return new WM(e,n,a)}),[n,a]);return t.useEffect((function(){r.spec=e}),[e]),r}(e,n,a),i=function(e){return t.useMemo((function(){var t=e.type;return HR(null!=t,"spec.type must be defined"),t}),[e])}(e);KM((function(){if(null!=i){var t=function(t,e,n){var a=n.getRegistry(),r=a.addSource(t,e);return[r,function(){return a.removeSource(r)}]}(i,o,r),e=$M(t,2),l=e[0],c=e[1];return n.receiveHandlerId(l),a.receiveHandlerId(l),c}}),[r,n,a,o,i])}function XM(t){return function(t){if(Array.isArray(t))return ZM(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 ZM(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 ZM(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 ZM(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 JM(e,n){var a=XM(n||[]);return null==n&&"function"!=typeof e&&a.push(e),t.useMemo((function(){return"function"==typeof e?e():e}),a)}var QM=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 tz(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 ez(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 ez(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 ez(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 nz(e,n,a){var r=tz(t.useState((function(){return n(e)})),2),o=r[0],i=r[1],l=t.useCallback((function(){var t=n(e);QM(o,t)||(i(t),a&&a())}),[o,e,a]);return KM(l),[o,l]}function az(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 rz(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 rz(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 rz(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 oz(t,e,n){return function(t,e,n){var a=az(nz(t,e,n),2),r=a[0],o=a[1];return KM((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 iz(e){return t.useMemo((function(){return e.hooks.dragSource()}),[e])}function lz(e){return t.useMemo((function(){return e.hooks.dragPreview()}),[e])}function cz(e,n){var a=JM(e,n);HR(!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=YM(),t.useMemo((function(){return new EM(r)}),[r])),i=function(e,n){var a=YM(),r=t.useMemo((function(){return new AM(a.getBackend())}),[a]);return KM((function(){return r.dragSourceOptions=e||null,r.reconnect(),function(){return r.disconnectDragSource()}}),[r,e]),KM((function(){return r.dragPreviewOptions=n||null,r.reconnect(),function(){return r.disconnectDragPreview()}}),[r,n]),r}(a.options,a.previewOptions);return GM(a,o,i),[oz(a.collect,o,i),iz(i),lz(i)]}function sz(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 uz(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var dz=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),uz(this,"spec",void 0),uz(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)}}])&&sz(e.prototype,n),a&&sz(e,a),t}();function pz(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 fz(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 fz(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 fz(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 mz(e,n,a){var r=YM(),o=function(e,n){var a=t.useMemo((function(){return new dz(e,n)}),[n]);return t.useEffect((function(){a.spec=e}),[e]),a}(e,n),i=function(e){var n=e.accept;return t.useMemo((function(){return HR(null!=e.accept,"accept must be defined"),Array.isArray(n)?n:[n]}),[n])}(e);KM((function(){var t=function(t,e,n){var a=n.getRegistry(),r=a.addTarget(t,e);return[r,function(){return a.removeTarget(r)}]}(i,o,r),e=pz(t,2),l=e[0],c=e[1];return n.receiveHandlerId(l),a.receiveHandlerId(l),c}),[r,n,o,a,i.map((function(t){return t.toString()})).join("|")])}function hz(e){return t.useMemo((function(){return e.hooks.dropTarget()}),[e])}function gz(e,n){var a,r=JM(e,n),o=(a=YM(),t.useMemo((function(){return new PM(a)}),[a])),i=function(e){var n=YM(),a=t.useMemo((function(){return new VM(n.getBackend())}),[n]);return KM((function(){return a.dropTargetOptions=e||null,a.reconnect(),function(){return a.disconnectDropTarget()}}),[e]),a}(r.options);return mz(r,o,i),[oz(r.collect,o,i),hz(i)]}k('.drop-over-downward td{border-bottom:2px dashed #5860f8!important}.drop-over-upward td{border-top:2px dashed #5860f8!important}.editable-cell-value-wrap{cursor:pointer;min-height:20px;min-width:50px;position:relative}.editable-row:hover .editable-cell-value-wrap:after,[data-theme=dark] .editable-row:hover .editable-cell-value-wrap:after{border:1px dashed #5860f8;bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:1}');const{Option:bz}=Bd,vz=f.default.createContext(null),yz=({vc:e,open:a,index:r,moveRow:o,className:i,style:l,...c})=>{const[s]=xk.useForm(),u=t.useRef(null),[{isOver:d,dropClassName:p},f]=gz({accept:"DraggableBodyRow",collect:t=>{const{index:e}=t.getItem()||{};return e===r?{}:{isOver:t.isOver(),dropClassName:e<r?" drop-over-downward":" drop-over-upward"}},drop:t=>{o(t.index,r)}}),[,m]=cz({type:"DraggableBodyRow",item:{index:r},collect:t=>({isDragging:t.isDragging()})});a&&f(m(u));const h={ref:u,className:`${i}${d?p:""}`,style:{cursor:a?"move":"auto",...l},...c};return n.jsx(xk,{size:"small",component:!1,form:s,children:n.jsx(vz.Provider,{value:s,children:e?e.body.row(h,u):n.jsx("tr",{...h})})})},xz=({vc:e,columns:a,record:r,dataIndex:o,title:i,rowSpanNum:l,colSpanNum:c,rowSpan:s,colSpan:u,editable:d,inputType:p,valueType:f,valueEnum:h,recordSelectField:g,controlRender:b,formChange:v,remoteConfig:x,children:w,formItemProps:k,handleSave:C,...E})=>{const S=t.useContext(vz),[O,N]=t.useState(!1),[P,T]=t.useState(!1),[D,I]=t.useState({}),R=t.useRef(null);t.useEffect((()=>{O&&R.current.focus()}),[O]);const j=(t,e,n,a)=>{a&&(T(!0),a(t,n).then((t=>{T(!1),e&&I({[e]:t})})))},M=()=>{z()},z=()=>{N(!1)},L=()=>{void 0!==r[o]&&null!==r[o]&&""!==r[o]&&("DatePicker"!==f&&"DateTimePicker"!==f||(r[o]=y.default(r[o])),"status"===o&&(r[o]=String(r[o]))),N(!O),S.setFieldsValue({[o]:r[o]})},A=t=>{const e={DateTimePicker:"YYYY-MM-DD HH:mm:ss",DatePicker:"YYYY-MM-DD"};return Object.keys(e).includes(f)&&t[o]&&(t[o]=t[o].format(e[f])),t},_=()=>{if(f&&o){if(h&&("Select"===f||"AutoComplete"===f)||"RemoteSearch"===f)return FD(h,r[o]);if(r[g]&&"RecordSelect"===f)return FD(r[g],r[o]);if(y.default.isMoment(r[o]))return A(r)[o]}return w},F=(t,e)=>{let a=null;const i=(t,e)=>{let n="";const a=function(t){for(let e of t)if(e)if(_D({data:e,type:"String"}))n+=e;else{const t=e.props.children;_D({data:t,type:"Object"})&&a([t]),_D({data:t,type:"Array"})&&a(t),_D({data:t,type:"String"})&&(n+=t)}};return a([e.children]),n.toLowerCase().indexOf(t.toLowerCase())>=0},l=t=>{if(m.default.isArray(t))return t.map(((t,e)=>n.jsx(bz,{value:t.value,children:t.label},e)))};switch(t){case"RecordSelect":a=n.jsx(Bd,{ref:R,open:O,allowClear:!0,showSearch:!0,dropdownMatchSelectWidth:!1,placeholder:e,onChange:V,onBlur:M,optionFilterProp:"children",filterOption:i,children:l(r[g])});break;case"Select":a=n.jsx(Bd,{ref:R,open:O,dropdownMatchSelectWidth:!1,onChange:V,onBlur:M,placeholder:e,children:l(h)});break;case"DatePicker":a=n.jsx(hw,{ref:R,open:O,onChange:V,onBlur:M,placeholder:e});break;case"DateTimePicker":a=n.jsx(hw,{ref:R,open:O,onChange:V,onBlur:M,placeholder:e,showTime:!0});break;case"AutoComplete":a=n.jsx(Bd,{ref:R,open:O,allowClear:!0,showSearch:!0,dropdownMatchSelectWidth:!1,placeholder:e,onChange:V,onBlur:M,optionFilterProp:"children",filterOption:i,children:l(h)});break;case"RemoteSearch":let t=h;D[o]&&(t=D[o]),a=n.jsx(Bd,{ref:R,open:O,mode:x.remoteMode,placeholder:e,notFoundContent:P?n.jsx(nC,{size:"small"}):null,dropdownMatchSelectWidth:!1,filterOption:!1,allowClear:!0,showSearch:!0,onChange:V,onBlur:M,onFocus:()=>j(void 0,o,r,x.remoteApi),onSearch:t=>j(t,o,r,x.remoteApi),children:o&&l(t)});break;default:a=n.jsx(By,{ref:R,onPressEnter:V,onBlur:V,placeholder:e,type:p||"text"})}return a},V=async()=>{try{const t=await S.validateFields();let e={...r,...t};e[o]=e[o]||void 0,e=A(e),v&&(e=await v(e)||e),r[o]!==e[o]&&C(e,o),z()}catch(t){console.log("保存表单字段失败:",t)}};let K=w;K=d?O?n.jsx(xk.Item,{style:{margin:0},name:o,rules:k?k.rules:void 0,children:F(f,i)}):n.jsx("div",{className:"editable-cell-value-wrap",onClick:L,children:_()}):_(),b&&(K=b(r,K));const H=(t,a)=>e?n.jsx(e.body.cell,{...t,children:a}):n.jsx("td",{...t,children:a});return s||u?H({...E,rowSpan:s,colSpan:u,title:r&&r[o]},K):0!==l&&0!==c?H({...E,rowSpan:l,colSpan:s,title:r&&r[o]},K):null};function wz(t){var e=null;return function(){return null==e&&(e=t()),e}}function kz(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 Cz(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Ez=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),Cz(this,"entered",[]),Cz(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=[]}}],n&&kz(e.prototype,n),a&&kz(e,a),t}(),Sz=wz((function(){return/firefox/i.test(navigator.userAgent)})),Oz=wz((function(){return Boolean(window.safari)}));function Nz(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 Pz(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Tz=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),Pz(this,"xs",void 0),Pz(this,"ys",void 0),Pz(this,"c1s",void 0),Pz(this,"c2s",void 0),Pz(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}}],n&&Nz(e.prototype,n),a&&Nz(e,a),t}();function Dz(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 Iz(t){return{x:t.clientX,y:t.clientY}}function Rz(t,e,n,a,r){var o,i,l="IMG"===(o=e).nodeName&&(Sz()||!(null!==(i=document.documentElement)&&void 0!==i&&i.contains(o))),c=Dz(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 Oz()&&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 Tz([0,.5,1],[s.x,s.x/u*h,s.x+h-u]).interpolate(p),y:y?v:function(){var t=new Tz([0,.5,1],[s.y,s.y/d*g,s.y+g-d]).interpolate(f);return Oz()&&l&&(t+=(window.devicePixelRatio-1)*g),t}()}}var jz,Mz="__NATIVE_FILE__",zz="__NATIVE_URL__",Lz="__NATIVE_TEXT__",Az="__NATIVE_HTML__",_z=Object.freeze({__proto__:null,FILE:Mz,URL:zz,TEXT:Lz,HTML:Az});function Fz(t,e,n){var a=e.reduce((function(e,n){return e||t.getData(n)}),"");return null!=a?a:n}function Vz(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Kz=(Vz(jz={},Mz,{exposeProperties:{files:function(t){return Array.prototype.slice.call(t.files)},items:function(t){return t.items},dataTransfer:function(t){return t}},matchesTypes:["Files"]}),Vz(jz,Az,{exposeProperties:{html:function(t,e){return Fz(t,e,"")},dataTransfer:function(t){return t}},matchesTypes:["Html","text/html"]}),Vz(jz,zz,{exposeProperties:{urls:function(t,e){return Fz(t,e,"").split("\n")},dataTransfer:function(t){return t}},matchesTypes:["Url","text/uri-list"]}),Vz(jz,Lz,{exposeProperties:{text:function(t,e){return Fz(t,e,"")},dataTransfer:function(t){return t}},matchesTypes:["Text","text/plain"]}),jz);function Hz(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 Bz(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Uz=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),Bz(this,"item",void 0),Bz(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(){}}])&&Hz(e.prototype,n),a&&Hz(e,a),t}();function Wz(t){if(!t)return null;var e=Array.prototype.slice.call(t.types||[]);return Object.keys(Kz).filter((function(t){return Kz[t].matchesTypes.some((function(t){return e.indexOf(t)>-1}))}))[0]||null}function Yz(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 $z(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var qz=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),$z(this,"ownerDocument",null),$z(this,"globalContext",void 0),$z(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}}])&&Yz(e.prototype,n),a&&Yz(e,a),t}();function Gz(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 Xz(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Gz(Object(n),!0).forEach((function(e){Jz(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Gz(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Zz(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 Jz(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Qz=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),Jz(this,"options",void 0),Jz(this,"actions",void 0),Jz(this,"monitor",void 0),Jz(this,"registry",void 0),Jz(this,"enterLeaveCounter",void 0),Jz(this,"sourcePreviewNodes",new Map),Jz(this,"sourcePreviewNodeOptions",new Map),Jz(this,"sourceNodes",new Map),Jz(this,"sourceNodeOptions",new Map),Jz(this,"dragStartSourceIds",null),Jz(this,"dropTargetIds",[]),Jz(this,"dragEnterTargetIds",[]),Jz(this,"currentNativeSource",null),Jz(this,"currentNativeHandle",null),Jz(this,"currentDragSourceNode",null),Jz(this,"altKeyPressed",!1),Jz(this,"mouseMoveTimeoutTimer",null),Jz(this,"asyncEndDragFrameId",null),Jz(this,"dragOverTargetIds",null),Jz(this,"lastClientOffset",null),Jz(this,"hoverRafId",null),Jz(this,"getSourceClientOffset",(function(t){var e=r.sourceNodes.get(t);return e&&Dz(e)||null})),Jz(this,"endDragNativeItem",(function(){r.isDraggingNativeItem()&&(r.actions.endDrag(),r.currentNativeHandle&&r.registry.removeSource(r.currentNativeHandle),r.currentNativeHandle=null,r.currentNativeSource=null)})),Jz(this,"isNodeInDocument",(function(t){return Boolean(t&&r.document&&r.document.body&&r.document.body.contains(t))})),Jz(this,"endDragIfSourceWasRemovedFromDOM",(function(){var t=r.currentDragSourceNode;null==t||r.isNodeInDocument(t)||r.clearCurrentDragSourceNode()&&r.monitor.isDragging()&&r.actions.endDrag()})),Jz(this,"handleTopDragStartCapture",(function(){r.clearCurrentDragSourceNode(),r.dragStartSourceIds=[]})),Jz(this,"handleTopDragStart",(function(t){if(!t.defaultPrevented){var e=r.dragStartSourceIds;r.dragStartSourceIds=null;var n=Iz(t);r.monitor.isDragging()&&r.actions.endDrag(),r.actions.beginDrag(e||[],{publishSource:!1,getSourceClientOffset:r.getSourceClientOffset,clientOffset:n});var a=t.dataTransfer,o=Wz(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=Rz(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()}}})),Jz(this,"handleTopDragEndCapture",(function(){r.clearCurrentDragSourceNode()&&r.monitor.isDragging()&&r.actions.endDrag()})),Jz(this,"handleTopDragEnterCapture",(function(t){if(r.dragEnterTargetIds=[],r.enterLeaveCounter.enter(t.target)&&!r.monitor.isDragging()){var e=t.dataTransfer,n=Wz(e);n&&r.beginDragNativeItem(n,e)}})),Jz(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:Iz(t)}),e.some((function(t){return r.monitor.canDropOnTarget(t)}))&&(t.preventDefault(),t.dataTransfer&&(t.dataTransfer.dropEffect=r.getCurrentDropEffect())))})),Jz(this,"handleTopDragOverCapture",(function(){r.dragOverTargetIds=[]})),Jz(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=Iz(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"))})),Jz(this,"handleTopDragLeaveCapture",(function(t){r.isDraggingNativeItem()&&t.preventDefault(),r.enterLeaveCounter.leave(t.target)&&r.isDraggingNativeItem()&&setTimeout((function(){return r.endDragNativeItem()}),0)})),Jz(this,"handleTopDropCapture",(function(t){var e;(r.dropTargetIds=[],r.isDraggingNativeItem())?(t.preventDefault(),null===(e=r.currentNativeSource)||void 0===e||e.loadDataTransfer(t.dataTransfer)):Wz(t.dataTransfer)&&t.preventDefault();r.enterLeaveCounter.reset()})),Jz(this,"handleTopDrop",(function(t){var e=r.dropTargetIds;r.dropTargetIds=[],r.actions.hover(e,{clientOffset:Iz(t)}),r.actions.drop({dropEffect:r.getCurrentDropEffect()}),r.isDraggingNativeItem()?r.endDragNativeItem():r.monitor.isDragging()&&r.actions.endDrag()})),Jz(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 qz(n,a),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new Ez(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 Xz({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 Xz({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(t)||{})}},{key:"isDraggingNativeItem",value:function(){var t=this.monitor.getItemType();return Object.keys(_z).some((function(e){return _z[e]===t}))}},{key:"beginDragNativeItem",value:function(t,e){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(t,e){var n=new Uz(Kz[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)}}],n&&Zz(e.prototype,n),a&&Zz(e,a),t}();const tL=function(t,e,n){return new Qz(t,e,n)},eL=t=>n.jsx(vM,{backend:tL,context:window,children:t.children});k(".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{height:26px;width:26px}.ant-table-wrapper .ant-table-pagination.ant-pagination{margin-bottom:10px;margin-top:10px;padding-bottom:10px;padding-top:10px}.ant-table-wrapper .react-resizable{background-clip:padding-box;position:relative}.ant-table-wrapper .react-resizable-handle{bottom:0;cursor:col-resize;height:100%;position:absolute;right:-5px;width:10px;z-index:1}");var nL=t.forwardRef(((e,a)=>{const r=t.useMemo((()=>{const t=e.extra||{};return{tableConfig:t.tableConfig,virtual:t.virtual,rowType:t.rowType,scroll:t.scroll,apiMethod:t.apiMethod,columns:t.columns||[],data:t.data,drag:t.drag,onSelect:t.onSelect,hidSortColumn:t.hidSortColumn,paginationConfig:t.paginationConfig,getCheckboxProps:t.getCheckboxProps,resultFilter:t.resultFilter,getTableSuccessData:t.getTableSuccessData}}),[e.extra]),o=t.useRef(),l=t.useRef(!0),c=t.useRef({position:["bottomCenter"],size:"small",current:1,total:0,pages:0,pageSize:10,showSizeChanger:!0,orderByInfo:void 0}),s=t.useRef([]),[u,d]=t.useState(r.columns),[p,f]=t.useState(!1),[h,g]=t.useState([]),[b,v]=O.useSetState({selectRowIds:[],selectRowArray:[]}),[y,x]=t.useState({x:void 0,y:330}),w=t.useMemo((()=>r.tableConfig&&r.tableConfig.rowKey?r.tableConfig.rowKey:"id"),[r.tableConfig]),k=t.useMemo((()=>{const t=i.v4();if(r.virtual?.open){let e=Number(y.y)||500;r.tableConfig?.scroll?.y&&(e=Number(r.tableConfig?.scroll?.y));const n={...r.virtual.config,vid:r.virtual.config?.vid||t,height:r.virtual.config?.height||e};return n.resetTopWhenDataChange=n.resetTopWhenDataChange||!1,AI(n)}}),[r.tableConfig?.scroll?.y,r.virtual?.config,r.virtual?.open,y.y]),C=t.useMemo((()=>{const t={header:{cell:FR},body:{row:t=>n.jsx(yz,{...t,vc:k}),cell:t=>n.jsx(xz,{...t,vc:k,columns:u})}};try{if(k){const e=t;return{...k,header:e.header,body:{...k.body,cell:e.body.cell,row:e.body.row}}}return t}catch(e){return console.error("虚拟列表配置失败,请检查配置项",e),t}}),[u,k]),E=!(!m.default.isFunction(r.apiMethod)||!l.current)&&{size:"small",position:["bottomCenter"],showTotal:t=>`共${t}条`,showSizeChanger:!0,showQuickJumper:!0,...c.current},S=t.useCallback((async t=>{let e=!0;f(!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 c.current){const e=c.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,c.current.current=t.current),r.apiMethod){delete n.current;const t=await r.apiMethod(m.default.pickBy(n,m.default.identity));let a=[];m.default.isArray(t.data.content)&&(!1!==r.paginationConfig?l.current=!0:l.current=!1,a=t.data.content,c.current.total=t.data.total,c.current.pages=t.data.pages),m.default.isArray(t.data)&&(l.current=!1,a=t.data),r.resultFilter&&(a=await r.resultFilter(a)),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=m.default.unionBy(e),t.selectRowArray=m.default.unionBy(n,w),t})),g(a),r.getTableSuccessData&&r.getTableSuccessData(t)}}catch(t){}f(!1)}),[r,w,v]),N=t=>{!m.default.isEqual(t,c.current)&&l.current&&(c.current={...c.current,...t},S())},P={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=m.default.uniq([...a,...n.map((t=>t[w]))]),o=m.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}))}},T=t=>(e,{size:n})=>{d((e=>{const a=[...e];return a[t]={...a[t],width:n.width},s.current=a,a}))},D=t.useCallback((t=>{g((e=>{let n=JSON.parse(JSON.stringify(e));for(let[e,a]of n.entries())if(a[w]===t[w]){n[e]={...n[e],...t};break}return n}))}),[w]),I=t.useCallback((async(t,e)=>{const n=h[t],a=tI(h,{$splice:[[t,1],[e,0,n]]});f(!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{f(!1)}}),[r.drag,h]);return t.useEffect((()=>{(async()=>{let t=[...r.columns];r.hidSortColumn||t.unshift({width:55,fixed:"left",title:"序号",dataIndex:"sequence",render:(t,e,n)=>{const a=c.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:T(e)}),onCell:(t,e)=>({record:t,dataIndex:n.dataIndex,title:n.title,rowSpanNum:"function"==typeof n.rowSpanNum?n.rowSpanNum(t,e):n.rowSpanNum,colSpanNum:"function"==typeof n.colSpanNum?n.colSpanNum(t,e):n.colSpanNum,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:D})},r=s.current.find((t=>t.dataIndex===n.dataIndex&&t.title===n.title));r&&(a.width=r.width),t[e]=a}d(t)})()}),[r.columns,r.hidSortColumn,D]),t.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=m.default.unionBy([...t.selectRowArray,...e],w)),t.selectRowArray=e,t}))}),[w,h,v,b.selectRowIds]),t.useEffect((()=>{m.default.isArray(r.data)&&g(JSON.parse(JSON.stringify(r.data)))}),[r.data]),t.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]),t.useEffect((()=>{r.paginationConfig&&(c.current={...c.current,...r.paginationConfig})}),[r.paginationConfig]),t.useImperativeHandle(a,(()=>({setTableLoading:t=>{f(t)},getPages:()=>({...c.current}),getTableList:async(t,e)=>{t&&("not-reset"===t.pagination?t.current=c.current.current:void 0===t.current&&(t.current=1),t.clearSelectIds&&(delete t.clearSelectIds,v((t=>(t.selectRowArray=[],t.selectRowIds=[],t))))),await S(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=>{if(!Array.isArray(t)||0===t.length)return;const e=(e,n)=>e.filter((e=>"string"==typeof e?!t.includes(e):!t.includes(e[n])));v({selectRowIds:e(b.selectRowIds,w),selectRowArray:e(b.selectRowArray,w)})},getStaticDataList:()=>{try{return m.default.cloneDeep(h||[])}catch(t){return[]}},setStaticDataList:(t,e)=>{if(t)try{if("object"!=typeof t||Array.isArray(t))Array.isArray(t)&&g(m.default.cloneDeep(t));else{const e=t;g(h.map((t=>t[w]===e[w]?{...t,...e}:t)))}e&&e()}catch(t){}}}))),n.jsx(qD,{children:n.jsx(eL,{children:n.jsx(WO,{bordered:!0,rowKey:"id",rowClassName:"editable-row",loading:p,components:C,onRow:(t,e)=>({index:e,moveRow:I,open:r.drag&&r.drag.open}),columns:u,dataSource:h,rowSelection:r.rowType?P:void 0,pagination:E,onChange:(t,e,n)=>{const{order:a}=n;t.orderByInfo=void 0,a&&(t.orderByInfo=`${n.field}:${"ascend"===a?1:-1}`),N(t)},scroll:y,...r.tableConfig})})})}));k("");const aL=t=>{const e={...t};return delete e.outerHeight,n.jsx(ty,{className:"empty-wrap",style:{minHeight:t&&t.outerHeight?t.outerHeight:400},align:"middle",justify:"center",children:n.jsx(Ea,{description:"暂无数据",...e})})};k(".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:rL,Paragraph:oL}=xT;var iL=t.forwardRef((function(e,a){const r=t.useRef(null),o=t.useRef(),[i,l]=O.useSetState({saveLoading:!1,selectedRows:[]}),c=t.useMemo((()=>e.tableColumnsList&&e.tableColumnsList.tableConfig&&e.tableColumnsList.tableConfig.rowKey||"id"),[e.tableColumnsList]),s=t.useMemo((()=>{const t=e.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}}),[e.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=t.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";y.default(t[e],n,!0).isValid()&&(t[e]=y.default(t[e]).format(n))}t={clearSelectIds:!0,...t},void 0!==e.clearSelectIds&&(t.clearSelectIds=e.clearSelectIds),t.clearSelectIds&&l((t=>(t.selectedRows=[],t))),e.manualParameterChange&&(t=e.manualParameterChange(t)),e.searchCallback?e.searchCallback(t).then((e=>{e&&o.current?.getTableList(t)})):o.current.getTableList(t)}}else o.current?.getTableList()}),[e,l]),p=()=>{if(r.current){let t=[];const n=e.searchNoResetFiled||[];if(e.searchFormList)for(let a of e.searchFormList){if(a.unionConfig)for(let e of a.unionConfig.unionItems)e.name&&!n.includes(e.name)&&t.push(e.name);a.name&&!n.includes(a.name)&&t.push(a.name)}r.current.formReset(t)}d()};return t.useEffect((()=>{e.visible&&(e.autoGetList&&o.current?.getTableList(),e.openSelected&&e.openSelected.visible&&l((t=>(t.selectedRows=e.openSelected?.defaultValues||[],o.current?.setRowSelected(t.selectedRows.map((t=>t[c]))),t))))}),[e.autoGetList,e.openSelected,e.visible,c,l]),t.useImperativeHandle(a,(()=>({...r.current,...o.current,setSavaLoading:t=>{l({saveLoading:t})}}))),n.jsxs(jD,{className:"from-table-modal",forceRender:!0,maskClosable:!1,footer:null,width:e.width,visible:e.visible,title:e.title||"弹窗",onCancel:()=>{e.onCancel&&e.onCancel()},...e.modalConfig,children:[e.topExtra,e.searchFormList?n.jsx(JD,{ref:r,rowGridConfig:{gutter:10},colGirdConfig:s,list:(f=e.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:e.formConfig,render:()=>e.searchFormList&&e.searchFormList.length?n.jsxs(NE,{size:10,children:[n.jsx(af,{type:"primary",onClick:()=>{d()},children:"查询"}),n.jsx(af,{className:"btn-reset",onClick:p,children:"重置"})]}):n.jsx(n.Fragment,{})}):null,n.jsxs(ty,{...e.rowProps,children:[e.leftSlot?n.jsx(ry,{...e.leftSlot.colProps,children:e.leftSlot.jsx}):null,n.jsx(ry,{...e.colProps,children:n.jsxs(ty,{gutter:10,children:[n.jsx(ry,{span:e.openSelected&&e.openSelected.visible?16:24,children:n.jsx(nL,{ref:o,extra:{rowType:e.tableColumnsList.rowType,apiMethod:e.apiMethod,columns:e.tableColumnsList.list,data:e.data,onSelect:(t,n)=>{((t,n)=>{l({selectedRows:n.map((n=>{let a={};const r=t.find((t=>t[c]===n));if(a[c]=n,e.openSelected&&e.openSelected.fileName&&(a[e.openSelected.fileName]=n),r&&(a=r),e.openSelected){const t=e.openSelected.fileName,r=e.openSelected.defaultValues;if(t&&r){const e=r.find((t=>t[c]===n));e&&(a[t]=e[t])}}return a}))})})(t,n),e.onSelect&&e.onSelect(t,n)},getTableSuccessData:e.getTableSuccessData,tableConfig:e.tableColumnsList.tableConfig,scroll:{x:"max-content"}}})}),e.openSelected&&e.openSelected.visible?n.jsx(ry,{span:8,children:n.jsx(ly,{title:"已选列表",size:"small",bodyStyle:{height:e.openSelected.height||330,overflowY:"auto"},extra:n.jsx(rL,{onClick:()=>u("all"),children:"全部移除"}),children:i.selectedRows.length?i.selectedRows.map((t=>{const a=t[c],r=t[e.openSelected?.fileName];return n.jsxs(ty,{gutter:12,children:[n.jsx(ry,{span:11,title:r,children:n.jsx(oL,{ellipsis:!0,children:r})}),n.jsx(ry,{span:9,title:a,children:n.jsx(oL,{ellipsis:!0,children:a})}),n.jsx(ry,{span:4,children:n.jsx(rL,{onClick:()=>u("odd",t),children:"移除"})})]},a)})):n.jsx(aL,{outerHeight:200})})}):null]})}),e.rightSlot?n.jsx(ry,{...e.rightSlot.colProps,children:e.rightSlot.jsx}):null]}),n.jsx(ty,{className:"from-table-modal-foot",justify:"center",children:n.jsx(ry,{children:n.jsxs(NE,{size:20,children:[e.onCancel?n.jsx(af,{onClick:()=>e.onCancel&&e.onCancel(),children:"关闭"}):null,e.onConfirm?n.jsx(af,{type:"primary",loading:i.saveLoading,onClick:()=>{let t=[],n=[];t=e.openSelected&&e.openSelected.visible?i.selectedRows:o.current?.getSelectRowsArray()||[],e.onConfirm&&(o.current&&(n=o.current.getSelectIds()),l({saveLoading:!0}),e.onConfirm(t,n).then((t=>{l({saveLoading:!1}),t&&e.onCancel&&e.onCancel()})).catch((t=>{l({saveLoading:!1}),Fi.warn(t,1.5)})))},children:"确定"}):null]})})})]});var f})),lL={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"},cL=function(t,e){return p.createElement(ti,be(be({},t),{},{ref:e,icon:lL}))},sL=p.forwardRef(cL);"production"!==process.env.NODE_ENV&&(sL.displayName="LeftCircleFilled");var uL=sL,dL={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"},pL=function(t,e){return p.createElement(ti,be(be({},t),{},{ref:e,icon:dL}))},fL=p.forwardRef(pL);"production"!==process.env.NODE_ENV&&(fL.displayName="RightCircleFilled");var mL=fL;k(".quickly-form-modal .ant-modal-body{padding-top:15px}.quickly-form-modal .quickly-form-modal-foot{margin-top:20px}");k(".form-modal .ant-modal-body{padding-top:15px}.form-modal .ant-modal-body .modal-form-height{max-height:580px;overflow-x:hidden;overflow-y:auto;padding-right:5px}.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 hL=t.forwardRef(((e,a)=>{const r=t.useRef(),[o,i]=O.useSetState({loading:!1,saveLoading:!1,disabled:!1}),l=async()=>{let t=await(r.current?.formSubmit());if(t){if(t.endTime&&t.startTime&&y.default(t.endTime).isBefore(t.startTime))return void Fi.warn("生效日期不能大于失效日期",1.5);i({saveLoading:!0});try{let n={};if(t={...t,...e.submitExtraParameters},e.switchTransform)for(let n=0;n<e.switchTransform.length;n++)t[e.switchTransform[n]]?t[e.switchTransform[n]]="1":t[e.switchTransform[n]]="0";if(e.submitRemoveField)for(let n=0;n<e.submitRemoveField.length;n++)t[e.submitRemoveField[n]]&&delete t[e.submitRemoveField[n]];for(let e in t){const n="YYYY-MM-DD HH:mm:ss";y.default(t[e],n,!0).isValid()&&(t[e]=y.default(t[e]).format(n))}if(e.manualParameterChange&&(t=e.manualParameterChange(t)),e.manualVerification&&!e.manualVerification(t))return console.warn("手动验证表单不通过"),void i({saveLoading:!1});if(t=m.default.omitBy(t,m.default.isNil),e.submitApi&&t){if(e.id?(t.id=e.id,n=await e.submitApi(t,"put")):n=await e.submitApi(t,"post"),1===n.code){if(e.onConfirm){if(!1===e.onConfirm(n))return}Fi.success("操作成功",1.5),e.onCancel&&e.onCancel()}i({saveLoading:!1})}else e.onConfirm&&t&&e.onConfirm(t)}catch(t){i({saveLoading:!1})}}};return t.useEffect((()=>{!1===e.visible&&i({saveLoading:!1})}),[e.visible,i]),t.useEffect((()=>{i({disabled:e.disable})}),[e.disable,i]),t.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)},excludeFormSubmitValues:async t=>{if(r.current){const n=e.formList.filter((e=>!t?.includes(e.name)));return await(r.current?.formSubmit(n.map((t=>t.name))))}return{}},getFormSubmitValues:async t=>r.current?await(r.current?.formSubmit(t)):{}}))),n.jsx(jD,{className:`form-modal ${e.className}`,width:e.width?e.width:600,visible:e.visible,title:e.title||"对话框",onCancel:e.onCancel,destroyOnClose:!0,maskClosable:!1,footer:null,children:n.jsxs(nC,{spinning:o.loading,children:[n.jsxs("div",{className:"modal-form-height",children:[e.topRender?e.topRender:null,n.jsx(JD,{ref:r,formConfig:{labelCol:{span:24},...e.formConfig},rowGridConfig:{gutter:[20,0]},colGirdConfig:e.colGirdConfig||{span:12},list:e.formList}),e.children&&e.children]}),(()=>{const a=(()=>{const t=[n.jsx(af,{onClick:()=>e.onCancel&&e.onCancel(),children:"关闭"},-1)];return o.disabled||t.push(n.jsx(af,{type:"primary",loading:o.saveLoading,onClick:l,children:"提交"},-2)),t})(),r=t=>n.jsx(ty,{className:"form-modal-foot",justify:"center",children:n.jsx(ry,{children:n.jsx(NE,{size:20,children:t})})});if(e.footer)return e.footer;if(e.footBtnList){const{model:n,data:o}=e.footBtnList,i=o.map(((e,n)=>{const{children:a,...r}=e;return t.createElement(af,{...r,key:n},a)}));if("new"===n)return r(i);if("before"===n)return r([...i,...a]);if("after"===n)return r([...a,...i])}return r(a)})()]})})}));k('@import "https://at.alicdn.com/t/font_2381668_l6oy3doglyo.css";.icon-selected-modal .avatar-selected{align-items:center;border:2px solid #fff;border-radius:4px;cursor:pointer;display:flex;height:36px;justify-content:center;overflow:hidden;width:36px}.icon-selected-modal .avatar-selected.avatar-selected-bg{border-color:#5860f8}.icon-selected-modal .icon-selected-foot{margin-top:20px}');k(".button-group{align-items:center;background-color:#f2f2f3;background-image:none;border:0;border-radius:4px;box-shadow:0 2px 0 rgba(0,0,0,.015);cursor:pointer;display:inline-flex;font-size:12px;height:30px;justify-content:center;line-height:1.15;outline:none;padding:3px 15px;position:relative;text-align:center;touch-action:manipulation;transition:all .3s cubic-bezier(.645,.045,.355,1);user-select:none;white-space:nowrap}.button-group:hover{background-color:#e3e5e6}.button-group-large{height:40px}.button-group-small{height:26px}.button-group-primary{background-color:#5860f8;color:#fff}.button-group-primary:hover{background-color:#828cff}.button-group .anticon{font-size:12px;margin-left:5px}.button-group .anticon.anticon-close{align-items:center;background-color:#878d99;border-radius:100%;color:#fff;display:inline-flex;font-size:10px;height:16px;justify-content:center;position:absolute;right:-5px;top:-5px;width:16px}");const gL="button-group";var bL=t.forwardRef(((e,a)=>{const[r,o]=O.useSetState({type:"checkbox",deleteOpen:!1,data:[]}),i=t=>{let n=gL;return e.buttonClassName&&(n=`${n} ${e.buttonClassName}`),e.size&&(n=`${n} ${gL}-${e.size}`),t.selected&&(n=`${n} ${gL}-primary`),n};return t.useEffect((()=>{if(e.checkType&&o({type:e.checkType}),e.deleteOpen&&o({deleteOpen:e.deleteOpen}),e.data){const t=e.data.map((t=>(void 0===t.selected&&(t.selected=!1),t)));o({data:t})}}),[e,o]),t.useImperativeHandle(a,(()=>({getButtonGroupSelected:()=>r.data.filter((t=>t.selected))}))),n.jsx(ty,{className:e.className,gutter:[10,10],children:r.data.map(((t,a)=>n.jsx(ry,{children:n.jsxs("div",{className:i(t),onClick:()=>((t,n)=>{let a=[];e.deleteOpen||(r.data&&("checkbox"===r.type&&(r.data[n].selected=!t.selected,a=r.data),"radio"===r.type&&(a=r.data.map(((e,a)=>{let r=!1;return n===a&&(r=!t.selected),{...e,selected:r}})))),e.onChange&&e.onChange(a),o({data:a}))})(t,a),children:[t.name,r.deleteOpen?n.jsx($i,{onClick:()=>(t=>{if(r.data){const n=r.data.filter(((e,n)=>t!==n));e.onChange&&e.onChange(n),o({data:n})}})(a)}):null]})},a)))})}));exports.Affix=t=>{let e={...t},a="";return e.targetId&&(a=e.targetId,delete e.targetId),n.jsx(ql,{target:()=>document.getElementById(a||"router-render")||window,...e})},exports.ButtonGroup=bL,exports.Dialog=jD,exports.Empty=aL,exports.GaoDeMap=MD,exports.GenerateForm=JD,exports.GenerateTable=nL,exports.IconSelectionModal=t=>{const[e,a]=O.useSetState({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 n.jsxs(jD,{className:"icon-selected-modal",width:t.width?t.width:590,visible:t.visible,title:t.title?t.title:"图标选择",onCancel:t.onCancel,destroyOnClose:!0,maskClosable:!1,footer:null,children:[n.jsx(ty,{gutter:[10,10],children:e.iconModal.list.map(((t,o)=>n.jsx(ry,{children:n.jsx("div",{className:`avatar-selected ${o===e.iconModal.selected?"avatar-selected-bg":null}`,onClick:()=>{a((t=>(t.iconModal.selected=o,t)))},children:n.jsx("i",{className:`iconfont ${t}`,title:t,style:r})})},o)))}),n.jsx(ty,{className:"icon-selected-foot",justify:"center",children:n.jsx(ry,{children:n.jsxs(NE,{size:20,children:[n.jsx(af,{onClick:t.onCancel,children:"关闭"}),n.jsx(af,{type:"primary",onClick:()=>{const n=e.iconModal.list[e.iconModal.selected];t.onConfirm&&t.onConfirm(n)},children:"确定"})]})})})]})},exports.LayoutFormModal=hL,exports.LayoutTableModal=iL,exports.QuicklyProcessForms=e=>{const a=t.useRef(),r=t.useRef({page:1,pages:1,size:10}),[o,i]=O.useSetState({id:void 0,saveLoading:!1,data:[]}),l={fontSize:24},c=t.useCallback(((t,e)=>t.map((t=>{if(e)for(let n of e)t[n]&&(t[n]=y.default(t[n]));return t}))),[]),s=t.useCallback((async t=>{if(e.apiMethod)try{let n="";const a=await e.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&&(n=o[o.length-1].id),"down"===t&&(n=o[0].id),i({id:n||e.id,data:o})}catch(t){}}),[e,i]),u=t.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=t.useCallback((async()=>{if(e.apiMethod){if(1===r.current.page&&0===u)return Fi.destroy(),void Fi.warn("已经是第一页啦~",1.5);if(u-1<0)return r.current.page=r.current.page-1,s("up"),void(e.onChange&&e.onChange(o.data[u],r.current))}else if(0===u)return Fi.destroy(),void Fi.warn("已经是第一个啦~",1.5);if(a.current){const t=await a.current.formSubmit();if(t){t.id=o.data[u].id;try{const n=o.data[u-1];console.log("cutIndexObj",n),e.submitApi(t,"put"),e.onChange&&e.onChange(n,r.current),i((e=>(e.id=n.id,e.data[u]={...e.data[u],...t},e)))}catch(t){}}}}),[u,s,e,i,o.data]),p=t.useCallback((async()=>{if(e.apiMethod){if(r.current.page===r.current.pages&&u===o.data.length-1)return Fi.destroy(),void Fi.warn("已经是最后一页啦~",1.5);if(u+1>=o.data.length)return r.current.page=r.current.page+1,s("down"),void(e.onChange&&e.onChange(o.data[u],r.current))}else if(0===o.data.length||u===o.data.length-1)return Fi.destroy(),void Fi.warn("已经是最后一个啦~",1.5);if(a.current){const t=await a.current.formSubmit();if(t){t.id=o.data[u].id;try{const n=o.data[u+1];console.log("cutIndexObj",n),e.submitApi(t,"put"),e.onChange&&e.onChange(n,r.current),i((e=>(e.id=n.id,e.data[u]={...e.data[u],...t},e)))}catch(t){}}}}),[u,s,e,i,o.data]),f=t.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{e.submitApi(t,"put"),Fi.success("保存成功",1.5)}catch(t){}}}),[u,p,d,e,o.data]),m=t.useCallback((async()=>{if(e.methodParams){let t=["page","pages","size"],n={},a=await e.methodParams;for(let e in r.current)for(let a of t)e===a&&(n[a]=r.current[e]);n={...n,...a},n.page=a.page?a.page.current:1,r.current=n}}),[e.methodParams]);return t.useEffect((()=>{e.visible&&setTimeout((()=>{a.current&&a.current.setFormValues(o.data[u])}),100)}),[u,e.visible,o.data]),t.useEffect((()=>{e.visible&&(e.apiMethod?m().then((()=>{s()})):i({id:e.id,data:c(e.data,e.transformTime)}))}),[m,s,e.apiMethod,e.data,e.id,e.transformTime,e.visible,i,c]),t.useEffect((()=>(e.visible?document.addEventListener("keydown",f):document.removeEventListener("keydown",f),()=>{document.removeEventListener("keydown",f)})),[f,e.visible]),n.jsx(jD,{className:"quickly-form-modal",width:e.width?e.width:960,visible:e.visible,title:e.title||"快速编辑信息",onCancel:()=>{e.onCancel&&e.onCancel(r.current)},maskClosable:!1,destroyOnClose:!0,footer:null,children:n.jsxs(ty,{className:"modal-form-height",gutter:16,align:"middle",wrap:!1,children:[n.jsx(ry,{flex:"60px",children:n.jsx(ty,{justify:"center",children:n.jsx(ry,{children:n.jsx(uL,{className:"circle-filled",style:l,onClick:d})})})}),n.jsx(ry,{flex:"auto",children:n.jsx(JD,{ref:a,formConfig:{labelCol:{span:24}},rowGridConfig:{gutter:[20,0]},colGirdConfig:{span:6},list:e.formList})}),n.jsx(ry,{flex:"60px",children:n.jsx(ty,{justify:"center",children:n.jsx(ry,{children:n.jsx(mL,{className:"circle-filled",style:l,onClick:p})})})})]})})},exports.TreeNode=AD,exports.Upload=zD,exports.VirtualList=e=>{const{vl:a,...r}=e,o=t.useRef(a);var i,l;i=a,l=o.current,m.default.isEqualWith(i,l,((t,e)=>{if(m.default.isFunction(t)&&m.default.isFunction(e))return t.toString()===e.toString()}))&&(o.current=a);const c=t.useMemo((()=>{if(o.current)return AI(o.current)}),[]);return n.jsx(qD,{children:n.jsx(WO,{components:c,rowKey:"id",pagination:!1,scroll:{y:500,x:"100%"},...r})})},exports.hooks=O;
|
|
23
|
+
*/function uR(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case YI:switch(t=t.type){case QI:case tR:case qI:case XI:case GI:case nR:return t;default:switch(t=t&&t.$$typeof){case JI:case eR:case oR:case rR:case ZI:return t;default:return e}}case $I:return e}}}function dR(t){return uR(t)===tR}var pR={AsyncMode:QI,ConcurrentMode:tR,ContextConsumer:JI,ContextProvider:ZI,Element:YI,ForwardRef:eR,Fragment:qI,Lazy:oR,Memo:rR,Portal:$I,Profiler:XI,StrictMode:GI,Suspense:nR,isAsyncMode:function(t){return dR(t)||uR(t)===QI},isConcurrentMode:dR,isContextConsumer:function(t){return uR(t)===JI},isContextProvider:function(t){return uR(t)===ZI},isElement:function(t){return"object"==typeof t&&null!==t&&t.$$typeof===YI},isForwardRef:function(t){return uR(t)===eR},isFragment:function(t){return uR(t)===qI},isLazy:function(t){return uR(t)===oR},isMemo:function(t){return uR(t)===rR},isPortal:function(t){return uR(t)===$I},isProfiler:function(t){return uR(t)===XI},isStrictMode:function(t){return uR(t)===GI},isSuspense:function(t){return uR(t)===nR},isValidElementType:function(t){return"string"==typeof t||"function"==typeof t||t===qI||t===tR||t===XI||t===GI||t===nR||t===aR||"object"==typeof t&&null!==t&&(t.$$typeof===oR||t.$$typeof===rR||t.$$typeof===ZI||t.$$typeof===JI||t.$$typeof===eR||t.$$typeof===lR||t.$$typeof===cR||t.$$typeof===sR||t.$$typeof===iR)},typeOf:uR},fR=K((function(t,e){"production"!==process.env.NODE_ENV&&function(){var t="function"==typeof Symbol&&Symbol.for,n=t?Symbol.for("react.element"):60103,a=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,l=t?Symbol.for("react.provider"):60109,c=t?Symbol.for("react.context"):60110,s=t?Symbol.for("react.async_mode"):60111,u=t?Symbol.for("react.concurrent_mode"):60111,d=t?Symbol.for("react.forward_ref"):60112,p=t?Symbol.for("react.suspense"):60113,f=t?Symbol.for("react.suspense_list"):60120,m=t?Symbol.for("react.memo"):60115,h=t?Symbol.for("react.lazy"):60116,g=t?Symbol.for("react.block"):60121,b=t?Symbol.for("react.fundamental"):60117,v=t?Symbol.for("react.responder"):60118,y=t?Symbol.for("react.scope"):60119;function x(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case n:var f=t.type;switch(f){case s:case u:case r:case i:case o:case p:return f;default:var g=f&&f.$$typeof;switch(g){case c:case d:case h:case m:case l:return g;default:return e}}case a:return e}}}var w=s,k=u,C=c,E=l,S=n,O=d,N=r,P=h,T=m,D=a,I=i,R=o,j=p,M=!1;function z(t){return x(t)===u}e.AsyncMode=w,e.ConcurrentMode=k,e.ContextConsumer=C,e.ContextProvider=E,e.Element=S,e.ForwardRef=O,e.Fragment=N,e.Lazy=P,e.Memo=T,e.Portal=D,e.Profiler=I,e.StrictMode=R,e.Suspense=j,e.isAsyncMode=function(t){return M||(M=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),z(t)||x(t)===s},e.isConcurrentMode=z,e.isContextConsumer=function(t){return x(t)===c},e.isContextProvider=function(t){return x(t)===l},e.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===n},e.isForwardRef=function(t){return x(t)===d},e.isFragment=function(t){return x(t)===r},e.isLazy=function(t){return x(t)===h},e.isMemo=function(t){return x(t)===m},e.isPortal=function(t){return x(t)===a},e.isProfiler=function(t){return x(t)===i},e.isStrictMode=function(t){return x(t)===o},e.isSuspense=function(t){return x(t)===p},e.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===u||t===i||t===o||t===p||t===f||"object"==typeof t&&null!==t&&(t.$$typeof===h||t.$$typeof===m||t.$$typeof===l||t.$$typeof===c||t.$$typeof===d||t.$$typeof===b||t.$$typeof===v||t.$$typeof===y||t.$$typeof===g)},e.typeOf=x}()})),mR=K((function(t){"production"===process.env.NODE_ENV?t.exports=pR:t.exports=fR})),hR=Object.getOwnPropertySymbols,gR=Object.prototype.hasOwnProperty,bR=Object.prototype.propertyIsEnumerable;var vR=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;var a=Object.getOwnPropertyNames(e).map((function(t){return e[t]}));if("0123456789"!==a.join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(t){r[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var n,a,r=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(t),o=1;o<arguments.length;o++){for(var i in n=Object(arguments[o]))gR.call(n,i)&&(r[i]=n[i]);if(hR){a=hR(n);for(var l=0;l<a.length;l++)bR.call(n,a[l])&&(r[a[l]]=n[a[l]])}}return r},yR=Function.call.bind(Object.prototype.hasOwnProperty),xR="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",wR=yR,kR=function(){};if("production"!==process.env.NODE_ENV){var CR=xR,ER={},SR=wR;kR=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}}}function OR(t,e,n,a,r){if("production"!==process.env.NODE_ENV)for(var o in t)if(SR(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]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name="Invariant Violation",l}i=t[o](e,o,a,n,null,CR)}catch(t){i=t}if(!i||i instanceof Error||kR((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 ER)){ER[i.message]=!0;var c=r?r():"";kR("Failed "+n+" type: "+i.message+(null!=c?c:""))}}}OR.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(ER={})};var NR=OR,PR=function(){};function TR(){return null}"production"!==process.env.NODE_ENV&&(PR=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}});function DR(){}function IR(){}IR.resetWarningCache=DR;var RR=function(t,e){var n="function"==typeof Symbol&&Symbol.iterator;var a="<<anonymous>>",r={array:c("array"),bigint:c("bigint"),bool:c("boolean"),func:c("function"),number:c("number"),object:c("object"),string:c("string"),symbol:c("symbol"),any:l(TR),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 `"+d(l)+"` supplied to `"+a+"`, expected an array.");for(var c=0;c<l.length;c++){var s=t(l,c,a,r,o+"["+c+"]",xR);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 `"+d(l)+"` supplied to `"+a+"`, expected a single ReactElement.")})),elementType:l((function(t,e,n,a,r){var o=t[e];return mR.isValidElementType(o)?null:new i("Invalid "+a+" `"+r+"` of type `"+d(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 u(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=d(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(wR(l,s)){var u=t(l,s,a,r,o+"."+s,xR);if(u instanceof Error)return u}return null}))},oneOf:function(t){if(!Array.isArray(t))return"production"!==process.env.NODE_ENV&&PR(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."),TR;return l((function(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"===p(e)?String(e):e}));return new i("Invalid "+r+" `"+l+"` of value `"+String(c)+"` supplied to `"+a+"`, expected one of "+u+".")}))},oneOfType:function(t){if(!Array.isArray(t))return"production"!==process.env.NODE_ENV&&PR("Invalid argument supplied to oneOfType, expected an instance of array."),TR;for(var e=0;e<t.length;e++){var n=t[e];if("function"!=typeof n)return PR("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+f(n)+" at index "+e+"."),TR}return l((function(e,n,a,r,o){for(var l=[],c=0;c<t.length;c++){var s=(0,t[c])(e,n,a,r,o,xR);if(null==s)return null;s.data&&wR(s.data,"expectedType")&&l.push(s.data.expectedType)}return new i("Invalid "+r+" `"+o+"` supplied to `"+a+"`"+(l.length>0?", expected one of type ["+l.join(", ")+"]":"")+".")}))},shape:function(t){return l((function(e,n,a,r,o){var l=e[n],c=d(l);if("object"!==c)return new i("Invalid "+r+" `"+o+"` of type `"+c+"` supplied to `"+a+"`, expected `object`.");for(var u in t){var f=t[u];if("function"!=typeof f)return s(a,r,o,u,p(f));var m=f(l,u,a,r,o+"."+u,xR);if(m)return m}return null}))},exact:function(t){return l((function(e,n,a,r,o){var l=e[n],c=d(l);if("object"!==c)return new i("Invalid "+r+" `"+o+"` of type `"+c+"` supplied to `"+a+"`, expected `object`.");var u=vR({},e[n],t);for(var f in u){var m=t[f];if(wR(t,f)&&"function"!=typeof m)return s(a,r,o,f,p(m));if(!m)return new i("Invalid "+r+" `"+o+"` key `"+f+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(e[n],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(t),null," "));var h=m(l,f,a,r,o+"."+f,xR);if(h)return h}return null}))}};function o(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function i(t,e){this.message=t,this.data=e&&"object"==typeof e?e:{},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!==xR){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&&(PR("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 d(c)!==t?new i("Invalid "+r+" `"+o+"` of type `"+p(c)+"` supplied to `"+a+"`, expected `"+t+"`.",{expectedType:t}):null}))}function s(t,e,n,a,r){return new i((t||"React class")+": "+e+" type `"+n+"."+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+r+"`.")}function u(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(u);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(!u(r.value))return!1}else for(;!(r=o.next()).done;){var i=r.value;if(i&&!u(i[1]))return!1}return!0;default:return!1}}function d(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 p(t){if(null==t)return""+t;var e=d(t);if("object"===e){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return e}function f(t){var e=p(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=NR,r.resetWarningCache=NR.resetWarningCache,r.PropTypes=r,r},jR=function(){function t(t,e,n,a,r,o){if(o!==xR){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,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:IR,resetWarningCache:DR};return n.PropTypes=n,n},MR=K((function(t){if("production"!==process.env.NODE_ENV){var e=mR;t.exports=RR(e.isElement,!0)}else t.exports=jR()})),zR=K((function(t,e){e.__esModule=!0,e.resizableProps=void 0;var n=function(t){return t&&t.__esModule?t:{default:t}}(MR);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:function(){for(var t=arguments.length,e=new Array(t),a=0;a<t;a++)e[a]=arguments[a];var r,o=e[0];return"both"===o.axis||"y"===o.axis?(r=n.default.number).isRequired.apply(r,e):n.default.number.apply(n.default,e)},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:function(){for(var t=arguments.length,e=new Array(t),a=0;a<t;a++)e[a]=arguments[a];var r,o=e[0];return"both"===o.axis||"x"===o.axis?(r=n.default.number).isRequired.apply(r,e):n.default.number.apply(n.default,e)}};e.resizableProps=a})),LR=K((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}(f.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?Object.assign.bind():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},o.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=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var a=n.call(t,e||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(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?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}var u=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,UI.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(v.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=u,u.propTypes=zR.resizableProps,u.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1}})),AR=K((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}(f.default),a=i(MR),r=i(LR),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?Object.assign.bind():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},c.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 u(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){d(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 d(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var a=n.call(t,e||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function p(t,e){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},p(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,p(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,d=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:d,onResizeStart:i,onResize:this.onResize,onResizeStop:l,resizeHandles:h,transformScale:b,width:this.state.width},n.createElement("div",c({},v,{style:u(u({},g),{},{width:this.state.width+"px",height:this.state.height+"px"})})))},i}(n.Component);e.default=m,m.propTypes=u(u({},zR.resizableProps),{},{children:a.default.element})})),_R=LR.default;AR.default;const FR=t=>{const{onResize:e,width:a,...r}=t;return a?n.jsx(_R,{width:a,height:0,handle:n.jsx("span",{className:"react-resizable-handle",onClick:t=>{t.stopPropagation()}}),onResize:e,draggableOpts:{enableUserSelectHack:!1},children:n.jsx("th",{...r})}):n.jsx("th",{...r})};var VR,KR=t.createContext({dragDropManager:void 0});function HR(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"}(VR||(VR={}));var BR="dnd-core/INIT_COORDS",UR="dnd-core/BEGIN_DRAG",WR="dnd-core/PUBLISH_DRAG_SOURCE",YR="dnd-core/HOVER",$R="dnd-core/DROP",qR="dnd-core/END_DRAG";function GR(t,e){return{type:BR,payload:{sourceClientOffset:e||null,clientOffset:t||null}}}function XR(t){return XR="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},XR(t)}function ZR(t,e,n){return e.split(".").reduce((function(t,e){return t&&t[e]?t[e]:n||null}),t)}function JR(t){return"object"===XR(t)}var QR={type:BR,payload:{clientOffset:null,sourceClientOffset:null}};function tj(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(GR(o)),function(t,e,n){HR(!e.isDragging(),"Cannot call beginDrag while dragging."),t.forEach((function(t){HR(n.getSource(t),"Expected sourceIds to be registered.")}))}(e,l,c);var s=function(t,e){for(var n=null,a=t.length-1;a>=0;a--)if(e.canDragSource(t[a])){n=t[a];break}return n}(e,l);if(null!==s){var u=null;if(o){if(!i)throw new Error("getSourceClientOffset must be defined");!function(t){HR("function"==typeof t,"When clientOffset is provided, getSourceClientOffset must be a function.")}(i),u=i(s)}t.dispatch(GR(o,u));var d=c.getSource(s).beginDrag(l,s);if(null!=d){!function(t){HR(JR(t),"Item must be an object.")}(d),c.pinSource(s);var p=c.getSourceType(s);return{type:UR,payload:{itemType:p,item:d,sourceId:s,clientOffset:o||null,sourceClientOffset:u||null,isSourcePublic:!!r}}}}else t.dispatch(QR)}}function ej(t){return function(){if(t.getMonitor().isDragging())return{type:WR}}}function nj(t,e){return null===e?null===t:Array.isArray(t)?t.some((function(t){return t===e})):t===e}function aj(t){return function(e){var n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).clientOffset;!function(t){HR(Array.isArray(t),"Expected targetIds to be an array.")}(e);var a=e.slice(0),r=t.getMonitor(),o=t.getRegistry();return function(t,e,n){HR(e.isDragging(),"Cannot call hover while not dragging."),HR(!e.didDrop(),"Cannot call hover after drop.");for(var a=0;a<t.length;a++){var r=t[a];HR(t.lastIndexOf(r)===a,"Expected targetIds to be unique in the passed array."),HR(n.getTarget(r),"Expected targetIds to be registered.")}}(a,r,o),function(t,e,n){for(var a=t.length-1;a>=0;a--){var r=t[a];nj(e.getTargetType(r),n)||t.splice(a,1)}}(a,o,r.getItemType()),function(t,e,n){t.forEach((function(t){n.getTarget(t).hover(e,t)}))}(a,r,o),{type:YR,payload:{targetIds:a,clientOffset:n||null}}}}function rj(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 oj(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?rj(Object(n),!0).forEach((function(e){ij(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):rj(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ij(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function lj(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.getMonitor(),a=t.getRegistry();!function(t){HR(t.isDragging(),"Cannot call drop while not dragging."),HR(!t.didDrop(),"Cannot call drop twice during one drag operation.")}(n);var r=function(t){var e=t.getTargetIds().filter(t.canDropOnTarget,t);return e.reverse(),e}(n);r.forEach((function(r,o){var i=function(t,e,n,a){var r=n.getTarget(t),o=r?r.drop(a,t):void 0;(function(t){HR(void 0===t||JR(t),"Drop result must either be an object or undefined.")})(o),void 0===o&&(o=0===e?{}:a.getDropResult());return o}(r,o,a,n),l={type:$R,payload:{dropResult:oj(oj({},e),i)}};t.dispatch(l)}))}}function cj(t){return function(){var e=t.getMonitor(),n=t.getRegistry();!function(t){HR(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:qR}}}function sj(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 uj(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var dj=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),uj(this,"store",void 0),uj(this,"monitor",void 0),uj(this,"backend",void 0),uj(this,"isSetUp",!1),uj(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:tj(t),publishDragSource:ej(t),hover:aj(t),drop:lj(t),endDrag:cj(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)}}],n&&sj(e.prototype,n),a&&sj(e,a),t}();function pj(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 fj="function"==typeof Symbol&&Symbol.observable||"@@observable",mj=function(){return Math.random().toString(36).substring(7).split("").join(".")},hj={INIT:"@@redux/INIT"+mj(),REPLACE:"@@redux/REPLACE"+mj(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+mj()}};function gj(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 bj(t){var e=typeof t;return"production"!==process.env.NODE_ENV&&(e=gj(t)),e}function vj(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?pj(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?pj(1):"Expected the enhancer to be a function. Instead, received: '"+bj(n)+"'");return n(vj)(t,e)}if("function"!=typeof t)throw new Error("production"===process.env.NODE_ENV?pj(2):"Expected the root reducer to be a function. Instead, received: '"+bj(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?pj(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?pj(4):"Expected the listener to be a function. Instead, received: '"+bj(t)+"'");if(c)throw new Error("production"===process.env.NODE_ENV?pj(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?pj(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(!function(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}(t))throw new Error("production"===process.env.NODE_ENV?pj(7):"Actions must be plain objects. Instead, the actual type was: '"+bj(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?pj(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?pj(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}return p({type:hj.INIT}),(a={dispatch:p,subscribe:d,getState:u,replaceReducer:function(t){if("function"!=typeof t)throw new Error("production"===process.env.NODE_ENV?pj(10):"Expected the nextReducer to be a function. Instead, received: '"+bj(t));r=t,p({type:hj.REPLACE})}})[fj]=function(){var t,e=d;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error("production"===process.env.NODE_ENV?pj(11):"Expected the observer to be an object. Instead, received: '"+bj(t)+"'");function n(){t.next&&t.next(u())}return n(),{unsubscribe:e(n)}}})[fj]=function(){return this},t},a}var yj=function(t,e){return t===e};function xj(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 wj(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?xj(Object(n),!0).forEach((function(e){kj(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):xj(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function kj(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Cj={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function Ej(){var t,e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Cj,a=arguments.length>1?arguments[1]:void 0,r=a.payload;switch(a.type){case BR:case UR:return{initialSourceClientOffset:r.sourceClientOffset,initialClientOffset:r.clientOffset,clientOffset:r.clientOffset};case YR:return t=n.clientOffset,e=r.clientOffset,!t&&!e||t&&e&&t.x===e.x&&t.y===e.y?n:wj(wj({},n),{},{clientOffset:r.clientOffset});case qR:case $R:return Cj;default:return n}}var Sj="dnd-core/ADD_SOURCE",Oj="dnd-core/ADD_TARGET",Nj="dnd-core/REMOVE_SOURCE",Pj="dnd-core/REMOVE_TARGET";function Tj(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 Dj(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Tj(Object(n),!0).forEach((function(e){Ij(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Tj(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ij(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Rj={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function jj(){var t,e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Rj,a=arguments.length>1?arguments[1]:void 0,r=a.payload;switch(a.type){case UR:return Dj(Dj({},n),{},{itemType:r.itemType,item:r.item,sourceId:r.sourceId,isSourcePublic:r.isSourcePublic,dropResult:null,didDrop:!1});case WR:return Dj(Dj({},n),{},{isSourcePublic:!0});case YR:return Dj(Dj({},n),{},{targetIds:r.targetIds});case Pj:return-1===n.targetIds.indexOf(r.targetId)?n:Dj(Dj({},n),{},{targetIds:(t=n.targetIds,e=r.targetId,t.filter((function(t){return t!==e})))});case $R:return Dj(Dj({},n),{},{dropResult:r.dropResult,didDrop:!0,targetIds:[]});case qR:return Dj(Dj({},n),{},{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return n}}function Mj(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;switch((arguments.length>1?arguments[1]:void 0).type){case Sj:case Oj:return t+1;case Nj:case Pj:return t-1;default:return t}}var zj=[],Lj=[];function Aj(){var t=arguments.length>1?arguments[1]:void 0;switch(t.type){case YR:break;case Sj:case Oj:case Pj:case Nj:return zj;default:return Lj}var e=t.payload,n=e.targetIds,a=void 0===n?[]:n,r=e.prevTargetIds,o=void 0===r?[]:r,i=function(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}(a,o),l=i.length>0||!function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:yj;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}(a,o);if(!l)return zj;var c=o[o.length-1],s=a[a.length-1];return c!==s&&(c&&i.push(c),s&&i.push(s)),i}function _j(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)+1}function Fj(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 Vj(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Fj(Object(n),!0).forEach((function(e){Kj(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Fj(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Kj(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Hj(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:Aj(t.dirtyHandlerIds,{type:e.type,payload:Vj(Vj({},e.payload),{},{prevTargetIds:ZR(t,"dragOperation.targetIds",[])})}),dragOffset:Ej(t.dragOffset,e),refCount:Mj(t.refCount,e),dragOperation:jj(t.dragOperation,e),stateId:_j(t.stateId)}}function Bj(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Uj(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 Wj(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}zj.__IS_NONE__=!0,Lj.__IS_ALL__=!0;var Yj=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),Wj(this,"store",void 0),Wj(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}).handlerIds;HR("function"==typeof t,"listener must be a function."),HR(void 0===n||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");var a=this.store.getState().stateId;return this.store.subscribe((function(){var r=e.store.getState(),o=r.stateId;try{var i=o===a||o===a+1&&!function(t,e){if(t===zj)return!1;if(t===Lj||void 0===e)return!0;var n,a=(n=t,e.filter((function(t){return n.indexOf(t)>-1})));return a.length>0}(r.dirtyHandlerIds,n);i||t()}finally{a=o}}))}},{key:"subscribeToOffsetChange",value:function(t){var e=this;HR("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 HR(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 HR(e,"Expected to find a valid target. targetId=".concat(t)),!(!this.isDragging()||this.didDrop())&&nj(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 HR(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){if(!t)return!1;var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shallow:!1}).shallow;if(!this.isDragging())return!1;var n=this.registry.getTargetType(t),a=this.getItemType();if(a&&!nj(n,a))return!1;var r=this.getTargetIds();if(!r.length)return!1;var o=r.indexOf(t);return e?o===r.length-1:o>-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?Bj(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?Bj(e,n):null;var t,e,n}}],n&&Uj(e.prototype,n),a&&Uj(e,a),t}(),$j=0;function qj(t){return qj="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},qj(t)}function Gj(t,e){e&&Array.isArray(t)?t.forEach((function(t){return Gj(t,!1)})):HR("string"==typeof t||"symbol"===qj(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 Xj="undefined"!=typeof global?global:self,Zj=Xj.MutationObserver||Xj.WebKitMutationObserver;function Jj(t){return function(){const e=setTimeout(a,0),n=setInterval(a,50);function a(){clearTimeout(e),clearInterval(n),t()}}}const Qj="function"==typeof Zj?function(t){let e=1;const n=new Zj(t),a=document.createTextNode("");return n.observe(a,{characterData:!0}),function(){e=-e,a.data=e}}:Jj;class tM{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 eM=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=Qj(this.flush),this.requestErrorThrow=Jj((()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()}))}},nM=new class{create(t){const e=this.freeTasks,n=e.length?e.pop():new tM(this.onError,(t=>e[e.length]=t));return n.task=t,n}constructor(t){this.onError=t,this.freeTasks=[]}}(eM.registerPendingError);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}function oM(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 iM(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 iM(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 iM(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 lM(t){var e=($j++).toString();switch(t){case VR.SOURCE:return"S".concat(e);case VR.TARGET:return"T".concat(e);default:throw new Error("Unknown Handler Role: ".concat(t))}}function cM(t){switch(t[0]){case"S":return VR.SOURCE;case"T":return VR.TARGET;default:HR(!1,"Cannot parse handler ID: ".concat(t))}}function sM(t,e){var n=t.entries(),a=!1;do{var r=n.next(),o=r.done;if(oM(r.value,2)[1]===e)return!0;a=!!o}while(!a);return!1}var uM=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),rM(this,"types",new Map),rM(this,"dragSources",new Map),rM(this,"dropTargets",new Map),rM(this,"pinnedSourceId",null),rM(this,"pinnedSource",null),rM(this,"store",void 0),this.store=e}var e,n,a;return e=t,n=[{key:"addSource",value:function(t,e){Gj(t),function(t){HR("function"==typeof t.canDrag,"Expected canDrag to be a function."),HR("function"==typeof t.beginDrag,"Expected beginDrag to be a function."),HR("function"==typeof t.endDrag,"Expected endDrag to be a function.")}(e);var n=this.addHandler(VR.SOURCE,t,e);return this.store.dispatch(function(t){return{type:Sj,payload:{sourceId:t}}}(n)),n}},{key:"addTarget",value:function(t,e){Gj(t,!0),function(t){HR("function"==typeof t.canDrop,"Expected canDrop to be a function."),HR("function"==typeof t.hover,"Expected hover to be a function."),HR("function"==typeof t.drop,"Expected beginDrag to be a function.")}(e);var n=this.addHandler(VR.TARGET,t,e);return this.store.dispatch(function(t){return{type:Oj,payload:{targetId:t}}}(n)),n}},{key:"containsHandler",value:function(t){return sM(this.dragSources,t)||sM(this.dropTargets,t)}},{key:"getSource",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return HR(this.isSourceId(t),"Expected a valid source ID."),e&&t===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(t)}},{key:"getTarget",value:function(t){return HR(this.isTargetId(t),"Expected a valid target ID."),this.dropTargets.get(t)}},{key:"getSourceType",value:function(t){return HR(this.isSourceId(t),"Expected a valid source ID."),this.types.get(t)}},{key:"getTargetType",value:function(t){return HR(this.isTargetId(t),"Expected a valid target ID."),this.types.get(t)}},{key:"isSourceId",value:function(t){return cM(t)===VR.SOURCE}},{key:"isTargetId",value:function(t){return cM(t)===VR.TARGET}},{key:"removeSource",value:function(t){var e,n=this;HR(this.getSource(t),"Expected an existing source."),this.store.dispatch(function(t){return{type:Nj,payload:{sourceId:t}}}(t)),e=function(){n.dragSources.delete(t),n.types.delete(t)},eM.enqueueTask(nM.create(e))}},{key:"removeTarget",value:function(t){HR(this.getTarget(t),"Expected an existing target."),this.store.dispatch(function(t){return{type:Pj,payload:{targetId:t}}}(t)),this.dropTargets.delete(t),this.types.delete(t)}},{key:"pinSource",value:function(t){var e=this.getSource(t);HR(e,"Expected an existing source."),this.pinnedSourceId=t,this.pinnedSource=e}},{key:"unpinSource",value:function(){HR(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}},{key:"addHandler",value:function(t,e,n){var a=lM(t);return this.types.set(a,e),t===VR.SOURCE?this.dragSources.set(a,n):t===VR.TARGET&&this.dropTargets.set(a,n),a}}],n&&aM(e.prototype,n),a&&aM(e,a),t}();function dM(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=function(t){var e="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return vj(Hj,t&&e&&e({name:"dnd-core",instanceId:"dnd-core"}))}(arguments.length>3&&void 0!==arguments[3]&&arguments[3]),r=new Yj(a,new uM(a)),o=new dj(a,r),i=t(o,e,n);return o.receiveBackend(i),o}var pM=["children"];function fM(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 mM(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 mM(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 mM(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 hM(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 gM=0,bM=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__"),vM=t.memo((function(e){var a=e.children,r=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]:yM(),n=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,r=e;r[bM]||(r[bM]={dragDropManager:dM(t,e,n,a)});return r[bM]}(t.backend,t.context,t.options,t.debugMode),n=!t.context;return[e,n]}(hM(e,pM)),o=fM(r,2),i=o[0],l=o[1];return t.useEffect((function(){if(l){var t=yM();return++gM,function(){0==--gM&&(t[bM]=null)}}}),[]),n.jsx(KR.Provider,Object.assign({value:i},{children:a}),void 0)}));function yM(){return"undefined"!=typeof global?global:window}function xM(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 wM(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var kM=!1,CM=!1,EM=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),wM(this,"internalMonitor",void 0),wM(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(){HR(!kM,"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 kM=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{kM=!1}}},{key:"isDragging",value:function(){if(!this.sourceId)return!1;HR(!CM,"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 CM=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{CM=!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()}}])&&xM(e.prototype,n),a&&xM(e,a),t}();function SM(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 OM(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var NM=!1,PM=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),OM(this,"internalMonitor",void 0),OM(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;HR(!NM,"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 NM=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{NM=!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()}}])&&SM(e.prototype,n),a&&SM(e,a),t}();function TM(e){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(!t.isValidElement(n)){var r=n;return e(r,a),r}var o=n;!function(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.")}}(o);var i=a?function(t){return e(t,a)}:e;return function(e,n){var a=e.ref;return HR("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?t.cloneElement(e,{ref:function(t){IM(a,t),IM(n,t)}}):t.cloneElement(e,{ref:n})}(o,i)}}function DM(t){var e={};return Object.keys(t).forEach((function(n){var a=t[n];if(n.endsWith("Ref"))e[n]=t[n];else{var r=TM(a);e[n]=function(){return r}}})),e}function IM(t,e){"function"==typeof t?t(e):t.current=e}function RM(t){return RM="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},RM(t)}function jM(t){return null!==t&&"object"===RM(t)&&Object.prototype.hasOwnProperty.call(t,"current")}function MM(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 zM(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 LM(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var AM=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),LM(this,"hooks",DM({dragSource:function(t,e){n.clearDragSource(),n.dragSourceOptions=e||null,jM(t)?n.dragSourceRef=t:n.dragSourceNode=t,n.reconnectDragSource()},dragPreview:function(t,e){n.clearDragPreview(),n.dragPreviewOptions=e||null,jM(t)?n.dragPreviewRef=t:n.dragPreviewNode=t,n.reconnectDragPreview()}})),LM(this,"handlerId",null),LM(this,"dragSourceRef",null),LM(this,"dragSourceNode",void 0),LM(this,"dragSourceOptionsInternal",null),LM(this,"dragSourceUnsubscribe",void 0),LM(this,"dragPreviewRef",null),LM(this,"dragPreviewNode",void 0),LM(this,"dragPreviewOptionsInternal",null),LM(this,"dragPreviewUnsubscribe",void 0),LM(this,"lastConnectedHandlerId",null),LM(this,"lastConnectedDragSource",null),LM(this,"lastConnectedDragSourceOptions",null),LM(this,"lastConnectedDragPreview",null),LM(this,"lastConnectedDragPreviewOptions",null),LM(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!MM(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}},{key:"didDragPreviewOptionsChange",value:function(){return!MM(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}}])&&zM(e.prototype,n),a&&zM(e,a),t}();function _M(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 FM(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var VM=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),FM(this,"hooks",DM({dropTarget:function(t,e){n.clearDropTarget(),n.dropTargetOptions=e,jM(t)?n.dropTargetRef=t:n.dropTargetNode=t,n.reconnect()}})),FM(this,"handlerId",null),FM(this,"dropTargetRef",null),FM(this,"dropTargetNode",void 0),FM(this,"dropTargetOptionsInternal",null),FM(this,"unsubscribeDropTarget",void 0),FM(this,"lastConnectedHandlerId",null),FM(this,"lastConnectedDropTarget",null),FM(this,"lastConnectedDropTargetOptions",null),FM(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!MM(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}}])&&_M(e.prototype,n),a&&_M(e,a),t}();var KM="undefined"!=typeof window?t.useLayoutEffect:t.useEffect;function HM(t){return HM="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},HM(t)}function BM(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 UM(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var WM=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),UM(this,"spec",void 0),UM(this,"monitor",void 0),UM(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"===HM(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()}}])&&BM(e.prototype,n),a&&BM(e,a),t}();function YM(){var e=t.useContext(KR).dragDropManager;return HR(null!=e,"Expected drag drop context"),e}function $M(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 qM(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 qM(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 qM(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 GM(e,n,a){var r=YM(),o=function(e,n,a){var r=t.useMemo((function(){return new WM(e,n,a)}),[n,a]);return t.useEffect((function(){r.spec=e}),[e]),r}(e,n,a),i=function(e){return t.useMemo((function(){var t=e.type;return HR(null!=t,"spec.type must be defined"),t}),[e])}(e);KM((function(){if(null!=i){var t=function(t,e,n){var a=n.getRegistry(),r=a.addSource(t,e);return[r,function(){return a.removeSource(r)}]}(i,o,r),e=$M(t,2),l=e[0],c=e[1];return n.receiveHandlerId(l),a.receiveHandlerId(l),c}}),[r,n,a,o,i])}function XM(t){return function(t){if(Array.isArray(t))return ZM(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 ZM(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 ZM(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 ZM(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 JM(e,n){var a=XM(n||[]);return null==n&&"function"!=typeof e&&a.push(e),t.useMemo((function(){return"function"==typeof e?e():e}),a)}var QM=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 tz(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 ez(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 ez(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 ez(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 nz(e,n,a){var r=tz(t.useState((function(){return n(e)})),2),o=r[0],i=r[1],l=t.useCallback((function(){var t=n(e);QM(o,t)||(i(t),a&&a())}),[o,e,a]);return KM(l),[o,l]}function az(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 rz(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 rz(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 rz(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 oz(t,e,n){return function(t,e,n){var a=az(nz(t,e,n),2),r=a[0],o=a[1];return KM((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 iz(e){return t.useMemo((function(){return e.hooks.dragSource()}),[e])}function lz(e){return t.useMemo((function(){return e.hooks.dragPreview()}),[e])}function cz(e,n){var a=JM(e,n);HR(!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=YM(),t.useMemo((function(){return new EM(r)}),[r])),i=function(e,n){var a=YM(),r=t.useMemo((function(){return new AM(a.getBackend())}),[a]);return KM((function(){return r.dragSourceOptions=e||null,r.reconnect(),function(){return r.disconnectDragSource()}}),[r,e]),KM((function(){return r.dragPreviewOptions=n||null,r.reconnect(),function(){return r.disconnectDragPreview()}}),[r,n]),r}(a.options,a.previewOptions);return GM(a,o,i),[oz(a.collect,o,i),iz(i),lz(i)]}function sz(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 uz(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var dz=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),uz(this,"spec",void 0),uz(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)}}])&&sz(e.prototype,n),a&&sz(e,a),t}();function pz(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 fz(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 fz(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 fz(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 mz(e,n,a){var r=YM(),o=function(e,n){var a=t.useMemo((function(){return new dz(e,n)}),[n]);return t.useEffect((function(){a.spec=e}),[e]),a}(e,n),i=function(e){var n=e.accept;return t.useMemo((function(){return HR(null!=e.accept,"accept must be defined"),Array.isArray(n)?n:[n]}),[n])}(e);KM((function(){var t=function(t,e,n){var a=n.getRegistry(),r=a.addTarget(t,e);return[r,function(){return a.removeTarget(r)}]}(i,o,r),e=pz(t,2),l=e[0],c=e[1];return n.receiveHandlerId(l),a.receiveHandlerId(l),c}),[r,n,o,a,i.map((function(t){return t.toString()})).join("|")])}function hz(e){return t.useMemo((function(){return e.hooks.dropTarget()}),[e])}function gz(e,n){var a,r=JM(e,n),o=(a=YM(),t.useMemo((function(){return new PM(a)}),[a])),i=function(e){var n=YM(),a=t.useMemo((function(){return new VM(n.getBackend())}),[n]);return KM((function(){return a.dropTargetOptions=e||null,a.reconnect(),function(){return a.disconnectDropTarget()}}),[e]),a}(r.options);return mz(r,o,i),[oz(r.collect,o,i),hz(i)]}k('.drop-over-downward td{border-bottom:2px dashed #5860f8!important}.drop-over-upward td{border-top:2px dashed #5860f8!important}.editable-cell-value-wrap{cursor:pointer;min-height:20px;min-width:50px;position:relative}.editable-row:hover .editable-cell-value-wrap:after,[data-theme=dark] .editable-row:hover .editable-cell-value-wrap:after{border:1px dashed #5860f8;bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:1}');const{Option:bz}=Bd,vz=f.default.createContext(null),yz=({vc:e,open:a,index:r,moveRow:o,className:i,style:l,...c})=>{const[s]=xk.useForm(),u=t.useRef(null),[{isOver:d,dropClassName:p},f]=gz({accept:"DraggableBodyRow",collect:t=>{const{index:e}=t.getItem()||{};return e===r?{}:{isOver:t.isOver(),dropClassName:e<r?" drop-over-downward":" drop-over-upward"}},drop:t=>{o(t.index,r)}}),[,m]=cz({type:"DraggableBodyRow",item:{index:r},collect:t=>({isDragging:t.isDragging()})});a&&f(m(u));const h={ref:u,className:`${i}${d?p:""}`,style:{cursor:a?"move":"auto",...l},...c};return n.jsx(xk,{size:"small",component:!1,form:s,children:n.jsx(vz.Provider,{value:s,children:e?e.body.row(h,u):n.jsx("tr",{...h})})})},xz=({vc:e,columns:a,record:r,dataIndex:o,title:i,rowSpanNum:l,colSpanNum:c,rowSpan:s,colSpan:u,editable:d,inputType:p,valueType:f,valueEnum:h,recordSelectField:g,controlRender:b,formChange:v,remoteConfig:x,children:w,formItemProps:k,handleSave:C,...E})=>{const S=t.useContext(vz),[O,N]=t.useState(!1),[P,T]=t.useState(!1),[D,I]=t.useState({}),R=t.useRef(null);t.useEffect((()=>{O&&R.current.focus()}),[O]);const j=(t,e,n,a)=>{a&&(T(!0),a(t,n).then((t=>{T(!1),e&&I({[e]:t})})))},M=()=>{z()},z=()=>{N(!1)},L=()=>{void 0!==r[o]&&null!==r[o]&&""!==r[o]&&("DatePicker"!==f&&"DateTimePicker"!==f||(r[o]=y.default(r[o])),"status"===o&&(r[o]=String(r[o]))),N(!O),S.setFieldsValue({[o]:r[o]})},A=t=>{const e={DateTimePicker:"YYYY-MM-DD HH:mm:ss",DatePicker:"YYYY-MM-DD"};return Object.keys(e).includes(f)&&t[o]&&(t[o]=t[o].format(e[f])),t},_=()=>{if(f&&o){if(h&&("Select"===f||"AutoComplete"===f)||"RemoteSearch"===f)return FD(h,r[o]);if(r[g]&&"RecordSelect"===f)return FD(r[g],r[o]);if(y.default.isMoment(r[o]))return A(r)[o]}return w},F=(t,e)=>{let a=null;const i=(t,e)=>{let n="";const a=function(t){for(let e of t)if(e)if(_D({data:e,type:"String"}))n+=e;else{const t=e.props.children;_D({data:t,type:"Object"})&&a([t]),_D({data:t,type:"Array"})&&a(t),_D({data:t,type:"String"})&&(n+=t)}};return a([e.children]),n.toLowerCase().indexOf(t.toLowerCase())>=0},l=t=>{if(m.default.isArray(t))return t.map(((t,e)=>n.jsx(bz,{value:t.value,children:t.label},e)))};switch(t){case"RecordSelect":a=n.jsx(Bd,{ref:R,open:O,allowClear:!0,showSearch:!0,dropdownMatchSelectWidth:!1,placeholder:e,onChange:V,onBlur:M,optionFilterProp:"children",filterOption:i,children:l(r[g])});break;case"Select":a=n.jsx(Bd,{ref:R,open:O,dropdownMatchSelectWidth:!1,onChange:V,onBlur:M,placeholder:e,children:l(h)});break;case"DatePicker":a=n.jsx(hw,{ref:R,open:O,onChange:V,onBlur:M,placeholder:e});break;case"DateTimePicker":a=n.jsx(hw,{ref:R,open:O,onChange:V,onBlur:M,placeholder:e,showTime:!0});break;case"AutoComplete":a=n.jsx(Bd,{ref:R,open:O,allowClear:!0,showSearch:!0,dropdownMatchSelectWidth:!1,placeholder:e,onChange:V,onBlur:M,optionFilterProp:"children",filterOption:i,children:l(h)});break;case"RemoteSearch":let t=h;D[o]&&(t=D[o]),a=n.jsx(Bd,{ref:R,open:O,mode:x.remoteMode,placeholder:e,notFoundContent:P?n.jsx(nC,{size:"small"}):null,dropdownMatchSelectWidth:!1,filterOption:!1,allowClear:!0,showSearch:!0,onChange:V,onBlur:M,onFocus:()=>j(void 0,o,r,x.remoteApi),onSearch:t=>j(t,o,r,x.remoteApi),children:o&&l(t)});break;default:a=n.jsx(By,{ref:R,onPressEnter:V,onBlur:V,placeholder:e,type:p||"text"})}return a},V=async()=>{try{const t=await S.validateFields();let e={...r,...t};e[o]=e[o]||void 0,e=A(e),v&&(e=await v(e)||e),r[o]!==e[o]&&C(e,o),z()}catch(t){console.log("保存表单字段失败:",t)}};let K=w;K=d?O?n.jsx(xk.Item,{style:{margin:0},name:o,rules:k?k.rules:void 0,children:F(f,i)}):n.jsx("div",{className:"editable-cell-value-wrap",onClick:L,children:_()}):_(),b&&(K=b(r,K));const H=(t,a)=>e?n.jsx(e.body.cell,{...t,children:a}):n.jsx("td",{...t,children:a});return s||u?H({...E,rowSpan:s,colSpan:u,title:r&&r[o]},K):0!==l&&0!==c?H({...E,rowSpan:l,colSpan:s,title:r&&r[o]},K):null};function wz(t){var e=null;return function(){return null==e&&(e=t()),e}}function kz(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 Cz(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Ez=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),Cz(this,"entered",[]),Cz(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=[]}}],n&&kz(e.prototype,n),a&&kz(e,a),t}(),Sz=wz((function(){return/firefox/i.test(navigator.userAgent)})),Oz=wz((function(){return Boolean(window.safari)}));function Nz(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 Pz(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Tz=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),Pz(this,"xs",void 0),Pz(this,"ys",void 0),Pz(this,"c1s",void 0),Pz(this,"c2s",void 0),Pz(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}}],n&&Nz(e.prototype,n),a&&Nz(e,a),t}();function Dz(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 Iz(t){return{x:t.clientX,y:t.clientY}}function Rz(t,e,n,a,r){var o,i,l="IMG"===(o=e).nodeName&&(Sz()||!(null!==(i=document.documentElement)&&void 0!==i&&i.contains(o))),c=Dz(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 Oz()&&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 Tz([0,.5,1],[s.x,s.x/u*h,s.x+h-u]).interpolate(p),y:y?v:function(){var t=new Tz([0,.5,1],[s.y,s.y/d*g,s.y+g-d]).interpolate(f);return Oz()&&l&&(t+=(window.devicePixelRatio-1)*g),t}()}}var jz,Mz="__NATIVE_FILE__",zz="__NATIVE_URL__",Lz="__NATIVE_TEXT__",Az="__NATIVE_HTML__",_z=Object.freeze({__proto__:null,FILE:Mz,URL:zz,TEXT:Lz,HTML:Az});function Fz(t,e,n){var a=e.reduce((function(e,n){return e||t.getData(n)}),"");return null!=a?a:n}function Vz(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Kz=(Vz(jz={},Mz,{exposeProperties:{files:function(t){return Array.prototype.slice.call(t.files)},items:function(t){return t.items},dataTransfer:function(t){return t}},matchesTypes:["Files"]}),Vz(jz,Az,{exposeProperties:{html:function(t,e){return Fz(t,e,"")},dataTransfer:function(t){return t}},matchesTypes:["Html","text/html"]}),Vz(jz,zz,{exposeProperties:{urls:function(t,e){return Fz(t,e,"").split("\n")},dataTransfer:function(t){return t}},matchesTypes:["Url","text/uri-list"]}),Vz(jz,Lz,{exposeProperties:{text:function(t,e){return Fz(t,e,"")},dataTransfer:function(t){return t}},matchesTypes:["Text","text/plain"]}),jz);function Hz(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 Bz(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Uz=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),Bz(this,"item",void 0),Bz(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(){}}])&&Hz(e.prototype,n),a&&Hz(e,a),t}();function Wz(t){if(!t)return null;var e=Array.prototype.slice.call(t.types||[]);return Object.keys(Kz).filter((function(t){return Kz[t].matchesTypes.some((function(t){return e.indexOf(t)>-1}))}))[0]||null}function Yz(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 $z(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var qz=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),$z(this,"ownerDocument",null),$z(this,"globalContext",void 0),$z(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}}])&&Yz(e.prototype,n),a&&Yz(e,a),t}();function Gz(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 Xz(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Gz(Object(n),!0).forEach((function(e){Jz(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Gz(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Zz(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 Jz(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Qz=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),Jz(this,"options",void 0),Jz(this,"actions",void 0),Jz(this,"monitor",void 0),Jz(this,"registry",void 0),Jz(this,"enterLeaveCounter",void 0),Jz(this,"sourcePreviewNodes",new Map),Jz(this,"sourcePreviewNodeOptions",new Map),Jz(this,"sourceNodes",new Map),Jz(this,"sourceNodeOptions",new Map),Jz(this,"dragStartSourceIds",null),Jz(this,"dropTargetIds",[]),Jz(this,"dragEnterTargetIds",[]),Jz(this,"currentNativeSource",null),Jz(this,"currentNativeHandle",null),Jz(this,"currentDragSourceNode",null),Jz(this,"altKeyPressed",!1),Jz(this,"mouseMoveTimeoutTimer",null),Jz(this,"asyncEndDragFrameId",null),Jz(this,"dragOverTargetIds",null),Jz(this,"lastClientOffset",null),Jz(this,"hoverRafId",null),Jz(this,"getSourceClientOffset",(function(t){var e=r.sourceNodes.get(t);return e&&Dz(e)||null})),Jz(this,"endDragNativeItem",(function(){r.isDraggingNativeItem()&&(r.actions.endDrag(),r.currentNativeHandle&&r.registry.removeSource(r.currentNativeHandle),r.currentNativeHandle=null,r.currentNativeSource=null)})),Jz(this,"isNodeInDocument",(function(t){return Boolean(t&&r.document&&r.document.body&&r.document.body.contains(t))})),Jz(this,"endDragIfSourceWasRemovedFromDOM",(function(){var t=r.currentDragSourceNode;null==t||r.isNodeInDocument(t)||r.clearCurrentDragSourceNode()&&r.monitor.isDragging()&&r.actions.endDrag()})),Jz(this,"handleTopDragStartCapture",(function(){r.clearCurrentDragSourceNode(),r.dragStartSourceIds=[]})),Jz(this,"handleTopDragStart",(function(t){if(!t.defaultPrevented){var e=r.dragStartSourceIds;r.dragStartSourceIds=null;var n=Iz(t);r.monitor.isDragging()&&r.actions.endDrag(),r.actions.beginDrag(e||[],{publishSource:!1,getSourceClientOffset:r.getSourceClientOffset,clientOffset:n});var a=t.dataTransfer,o=Wz(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=Rz(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()}}})),Jz(this,"handleTopDragEndCapture",(function(){r.clearCurrentDragSourceNode()&&r.monitor.isDragging()&&r.actions.endDrag()})),Jz(this,"handleTopDragEnterCapture",(function(t){if(r.dragEnterTargetIds=[],r.enterLeaveCounter.enter(t.target)&&!r.monitor.isDragging()){var e=t.dataTransfer,n=Wz(e);n&&r.beginDragNativeItem(n,e)}})),Jz(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:Iz(t)}),e.some((function(t){return r.monitor.canDropOnTarget(t)}))&&(t.preventDefault(),t.dataTransfer&&(t.dataTransfer.dropEffect=r.getCurrentDropEffect())))})),Jz(this,"handleTopDragOverCapture",(function(){r.dragOverTargetIds=[]})),Jz(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=Iz(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"))})),Jz(this,"handleTopDragLeaveCapture",(function(t){r.isDraggingNativeItem()&&t.preventDefault(),r.enterLeaveCounter.leave(t.target)&&r.isDraggingNativeItem()&&setTimeout((function(){return r.endDragNativeItem()}),0)})),Jz(this,"handleTopDropCapture",(function(t){var e;(r.dropTargetIds=[],r.isDraggingNativeItem())?(t.preventDefault(),null===(e=r.currentNativeSource)||void 0===e||e.loadDataTransfer(t.dataTransfer)):Wz(t.dataTransfer)&&t.preventDefault();r.enterLeaveCounter.reset()})),Jz(this,"handleTopDrop",(function(t){var e=r.dropTargetIds;r.dropTargetIds=[],r.actions.hover(e,{clientOffset:Iz(t)}),r.actions.drop({dropEffect:r.getCurrentDropEffect()}),r.isDraggingNativeItem()?r.endDragNativeItem():r.monitor.isDragging()&&r.actions.endDrag()})),Jz(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 qz(n,a),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new Ez(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 Xz({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 Xz({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(t)||{})}},{key:"isDraggingNativeItem",value:function(){var t=this.monitor.getItemType();return Object.keys(_z).some((function(e){return _z[e]===t}))}},{key:"beginDragNativeItem",value:function(t,e){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(t,e){var n=new Uz(Kz[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)}}],n&&Zz(e.prototype,n),a&&Zz(e,a),t}();const tL=function(t,e,n){return new Qz(t,e,n)},eL=t=>n.jsx(vM,{backend:tL,context:window,children:t.children});k(".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{height:26px;width:26px}.ant-table-wrapper .ant-table-pagination.ant-pagination{margin-bottom:10px;margin-top:10px;padding-bottom:10px;padding-top:10px}.ant-table-wrapper .react-resizable{background-clip:padding-box;position:relative}.ant-table-wrapper .react-resizable-handle{bottom:0;cursor:col-resize;height:100%;position:absolute;right:-5px;width:10px;z-index:1}");var nL=t.forwardRef(((e,a)=>{const r=t.useMemo((()=>{const t=e.extra||{};return{tableConfig:t.tableConfig,virtual:t.virtual,rowType:t.rowType,scroll:t.scroll,apiMethod:t.apiMethod,columns:t.columns||[],data:t.data,drag:t.drag,onSelect:t.onSelect,hidSortColumn:t.hidSortColumn,paginationConfig:t.paginationConfig,getCheckboxProps:t.getCheckboxProps,resultFilter:t.resultFilter,getTableSuccessData:t.getTableSuccessData}}),[e.extra]),o=t.useRef(),l=t.useRef(!0),c=t.useRef({position:["bottomCenter"],size:"small",current:1,total:0,pages:0,pageSize:10,showSizeChanger:!0,orderByInfo:void 0}),s=t.useRef([]),[u,d]=t.useState(r.columns),[p,f]=t.useState(!1),[h,g]=t.useState([]),[b,v]=O.useSetState({selectRowIds:[],selectRowArray:[]}),[y,x]=t.useState({x:void 0,y:330}),w=t.useMemo((()=>r.tableConfig&&r.tableConfig.rowKey?r.tableConfig.rowKey:"id"),[r.tableConfig]),k=t.useMemo((()=>{const t=i.v4();if(r.virtual&&r.virtual.open){const e={...r.virtual.config,vid:r.virtual.config?.vid||t,height:r.virtual.config?.height||500};return e.resetTopWhenDataChange=e.resetTopWhenDataChange||!1,AI(e)}}),[r.virtual]),C=t.useMemo((()=>{const t={header:{cell:FR},body:{row:t=>n.jsx(yz,{...t,vc:k}),cell:t=>n.jsx(xz,{...t,vc:k,columns:u})}};try{if(k){const e=t;return{...k,header:e.header,body:{...k.body,cell:e.body.cell,row:e.body.row}}}return t}catch(e){return console.error("虚拟列表配置失败,请检查配置项",e),t}}),[u,k]),E=!(!m.default.isFunction(r.apiMethod)||!l.current)&&{size:"small",position:["bottomCenter"],showTotal:t=>`共${t}条`,showSizeChanger:!0,showQuickJumper:!0,...c.current},S=t.useCallback((async t=>{let e=!0;f(!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 c.current){const e=c.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,c.current.current=t.current),r.apiMethod){delete n.current;const t=await r.apiMethod(m.default.pickBy(n,m.default.identity));let a=[];m.default.isArray(t.data.content)&&(!1!==r.paginationConfig?l.current=!0:l.current=!1,a=t.data.content,c.current.total=t.data.total,c.current.pages=t.data.pages),m.default.isArray(t.data)&&(l.current=!1,a=t.data),r.resultFilter&&(a=await r.resultFilter(a)),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=m.default.unionBy(e),t.selectRowArray=m.default.unionBy(n,w),t})),g(a),r.getTableSuccessData&&r.getTableSuccessData(t)}}catch(t){}f(!1)}),[r,w,v]),N=t=>{!m.default.isEqual(t,c.current)&&l.current&&(c.current={...c.current,...t},S())},P={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=m.default.uniq([...a,...n.map((t=>t[w]))]),o=m.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}))}},T=t=>(e,{size:n})=>{d((e=>{const a=[...e];return a[t]={...a[t],width:n.width},s.current=a,a}))},D=t.useCallback((t=>{g((e=>{let n=JSON.parse(JSON.stringify(e));for(let[e,a]of n.entries())if(a[w]===t[w]){n[e]={...n[e],...t};break}return n}))}),[w]),I=t.useCallback((async(t,e)=>{const n=h[t],a=tI(h,{$splice:[[t,1],[e,0,n]]});f(!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{f(!1)}}),[r.drag,h]);return t.useEffect((()=>{(async()=>{let t=[...r.columns];r.hidSortColumn||t.unshift({width:55,fixed:"left",title:"序号",dataIndex:"sequence",render:(t,e,n)=>{const a=c.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:T(e)}),onCell:(t,e)=>({record:t,dataIndex:n.dataIndex,title:n.title,rowSpanNum:"function"==typeof n.rowSpanNum?n.rowSpanNum(t,e):n.rowSpanNum,colSpanNum:"function"==typeof n.colSpanNum?n.colSpanNum(t,e):n.colSpanNum,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:D})},r=s.current.find((t=>t.dataIndex===n.dataIndex&&t.title===n.title));r&&(a.width=r.width),t[e]=a}d(t)})()}),[r.columns,r.hidSortColumn,D]),t.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=m.default.unionBy([...t.selectRowArray,...e],w)),t.selectRowArray=e,t}))}),[w,h,v,b.selectRowIds]),t.useEffect((()=>{m.default.isArray(r.data)&&g(JSON.parse(JSON.stringify(r.data)))}),[r.data]),t.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]),t.useEffect((()=>{r.paginationConfig&&(c.current={...c.current,...r.paginationConfig})}),[r.paginationConfig]),t.useImperativeHandle(a,(()=>({setTableLoading:t=>{f(t)},getPages:()=>({...c.current}),getTableList:async(t,e)=>{t&&("not-reset"===t.pagination?t.current=c.current.current:void 0===t.current&&(t.current=1),t.clearSelectIds&&(delete t.clearSelectIds,v((t=>(t.selectRowArray=[],t.selectRowIds=[],t))))),await S(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=>{if(!Array.isArray(t)||0===t.length)return;const e=(e,n)=>e.filter((e=>"string"==typeof e?!t.includes(e):!t.includes(e[n])));v({selectRowIds:e(b.selectRowIds,w),selectRowArray:e(b.selectRowArray,w)})},getStaticDataList:()=>{try{return m.default.cloneDeep(h||[])}catch(t){return[]}},setStaticDataList:(t,e)=>{if(t)try{if("object"!=typeof t||Array.isArray(t))Array.isArray(t)&&g(m.default.cloneDeep(t));else{const e=t;g(h.map((t=>t[w]===e[w]?{...t,...e}:t)))}e&&e()}catch(t){}}}))),n.jsx(qD,{children:n.jsx(eL,{children:n.jsx(WO,{bordered:!0,rowKey:"id",rowClassName:"editable-row",loading:p,components:C,onRow:(t,e)=>({index:e,moveRow:I,open:r.drag&&r.drag.open}),columns:u,dataSource:h,rowSelection:r.rowType?P:void 0,pagination:E,onChange:(t,e,n)=>{const{order:a}=n;t.orderByInfo=void 0,a&&(t.orderByInfo=`${n.field}:${"ascend"===a?1:-1}`),N(t)},scroll:y,...r.tableConfig})})})}));k("");const aL=t=>{const e={...t};return delete e.outerHeight,n.jsx(ty,{className:"empty-wrap",style:{minHeight:t&&t.outerHeight?t.outerHeight:400},align:"middle",justify:"center",children:n.jsx(Ea,{description:"暂无数据",...e})})};k(".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:rL,Paragraph:oL}=xT;var iL=t.forwardRef((function(e,a){const r=t.useRef(null),o=t.useRef(),[i,l]=O.useSetState({saveLoading:!1,selectedRows:[]}),c=t.useMemo((()=>e.tableColumnsList&&e.tableColumnsList.tableConfig&&e.tableColumnsList.tableConfig.rowKey||"id"),[e.tableColumnsList]),s=t.useMemo((()=>{const t=e.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}}),[e.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=t.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";y.default(t[e],n,!0).isValid()&&(t[e]=y.default(t[e]).format(n))}t={clearSelectIds:!0,...t},void 0!==e.clearSelectIds&&(t.clearSelectIds=e.clearSelectIds),t.clearSelectIds&&l((t=>(t.selectedRows=[],t))),e.manualParameterChange&&(t=e.manualParameterChange(t)),e.searchCallback?e.searchCallback(t).then((e=>{e&&o.current?.getTableList(t)})):o.current.getTableList(t)}}else o.current?.getTableList()}),[e,l]),p=()=>{if(r.current){let t=[];const n=e.searchNoResetFiled||[];if(e.searchFormList)for(let a of e.searchFormList){if(a.unionConfig)for(let e of a.unionConfig.unionItems)e.name&&!n.includes(e.name)&&t.push(e.name);a.name&&!n.includes(a.name)&&t.push(a.name)}r.current.formReset(t)}d()};return t.useEffect((()=>{e.visible&&(e.autoGetList&&o.current?.getTableList(),e.openSelected&&e.openSelected.visible&&l((t=>(t.selectedRows=e.openSelected?.defaultValues||[],o.current?.setRowSelected(t.selectedRows.map((t=>t[c]))),t))))}),[e.autoGetList,e.openSelected,e.visible,c,l]),t.useImperativeHandle(a,(()=>({...r.current,...o.current,setSavaLoading:t=>{l({saveLoading:t})}}))),n.jsxs(jD,{className:"from-table-modal",forceRender:!0,maskClosable:!1,footer:null,width:e.width,visible:e.visible,title:e.title||"弹窗",onCancel:()=>{e.onCancel&&e.onCancel()},...e.modalConfig,children:[e.topExtra,e.searchFormList?n.jsx(JD,{ref:r,rowGridConfig:{gutter:10},colGirdConfig:s,list:(f=e.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:e.formConfig,render:()=>e.searchFormList&&e.searchFormList.length?n.jsxs(NE,{size:10,children:[n.jsx(af,{type:"primary",onClick:()=>{d()},children:"查询"}),n.jsx(af,{className:"btn-reset",onClick:p,children:"重置"})]}):n.jsx(n.Fragment,{})}):null,n.jsxs(ty,{...e.rowProps,children:[e.leftSlot?n.jsx(ry,{...e.leftSlot.colProps,children:e.leftSlot.jsx}):null,n.jsx(ry,{...e.colProps,children:n.jsxs(ty,{gutter:10,children:[n.jsx(ry,{span:e.openSelected&&e.openSelected.visible?16:24,children:n.jsx(nL,{ref:o,extra:{rowType:e.tableColumnsList.rowType,apiMethod:e.apiMethod,columns:e.tableColumnsList.list,data:e.data,onSelect:(t,n)=>{((t,n)=>{l({selectedRows:n.map((n=>{let a={};const r=t.find((t=>t[c]===n));if(a[c]=n,e.openSelected&&e.openSelected.fileName&&(a[e.openSelected.fileName]=n),r&&(a=r),e.openSelected){const t=e.openSelected.fileName,r=e.openSelected.defaultValues;if(t&&r){const e=r.find((t=>t[c]===n));e&&(a[t]=e[t])}}return a}))})})(t,n),e.onSelect&&e.onSelect(t,n)},getTableSuccessData:e.getTableSuccessData,tableConfig:e.tableColumnsList.tableConfig,scroll:{x:"max-content"}}})}),e.openSelected&&e.openSelected.visible?n.jsx(ry,{span:8,children:n.jsx(ly,{title:"已选列表",size:"small",bodyStyle:{height:e.openSelected.height||330,overflowY:"auto"},extra:n.jsx(rL,{onClick:()=>u("all"),children:"全部移除"}),children:i.selectedRows.length?i.selectedRows.map((t=>{const a=t[c],r=t[e.openSelected?.fileName];return n.jsxs(ty,{gutter:12,children:[n.jsx(ry,{span:11,title:r,children:n.jsx(oL,{ellipsis:!0,children:r})}),n.jsx(ry,{span:9,title:a,children:n.jsx(oL,{ellipsis:!0,children:a})}),n.jsx(ry,{span:4,children:n.jsx(rL,{onClick:()=>u("odd",t),children:"移除"})})]},a)})):n.jsx(aL,{outerHeight:200})})}):null]})}),e.rightSlot?n.jsx(ry,{...e.rightSlot.colProps,children:e.rightSlot.jsx}):null]}),n.jsx(ty,{className:"from-table-modal-foot",justify:"center",children:n.jsx(ry,{children:n.jsxs(NE,{size:20,children:[e.onCancel?n.jsx(af,{onClick:()=>e.onCancel&&e.onCancel(),children:"关闭"}):null,e.onConfirm?n.jsx(af,{type:"primary",loading:i.saveLoading,onClick:()=>{let t=[],n=[];t=e.openSelected&&e.openSelected.visible?i.selectedRows:o.current?.getSelectRowsArray()||[],e.onConfirm&&(o.current&&(n=o.current.getSelectIds()),l({saveLoading:!0}),e.onConfirm(t,n).then((t=>{l({saveLoading:!1}),t&&e.onCancel&&e.onCancel()})).catch((t=>{l({saveLoading:!1}),Fi.warn(t,1.5)})))},children:"确定"}):null]})})})]});var f})),lL={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"},cL=function(t,e){return p.createElement(ti,be(be({},t),{},{ref:e,icon:lL}))},sL=p.forwardRef(cL);"production"!==process.env.NODE_ENV&&(sL.displayName="LeftCircleFilled");var uL=sL,dL={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"},pL=function(t,e){return p.createElement(ti,be(be({},t),{},{ref:e,icon:dL}))},fL=p.forwardRef(pL);"production"!==process.env.NODE_ENV&&(fL.displayName="RightCircleFilled");var mL=fL;k(".quickly-form-modal .ant-modal-body{padding-top:15px}.quickly-form-modal .quickly-form-modal-foot{margin-top:20px}");k(".form-modal .ant-modal-body{padding-top:15px}.form-modal .ant-modal-body .modal-form-height{max-height:580px;overflow-x:hidden;overflow-y:auto;padding-right:5px}.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 hL=t.forwardRef(((e,a)=>{const r=t.useRef(),[o,i]=O.useSetState({loading:!1,saveLoading:!1,disabled:!1}),l=async()=>{let t=await(r.current?.formSubmit());if(t){if(t.endTime&&t.startTime&&y.default(t.endTime).isBefore(t.startTime))return void Fi.warn("生效日期不能大于失效日期",1.5);i({saveLoading:!0});try{let n={};if(t={...t,...e.submitExtraParameters},e.switchTransform)for(let n=0;n<e.switchTransform.length;n++)t[e.switchTransform[n]]?t[e.switchTransform[n]]="1":t[e.switchTransform[n]]="0";if(e.submitRemoveField)for(let n=0;n<e.submitRemoveField.length;n++)t[e.submitRemoveField[n]]&&delete t[e.submitRemoveField[n]];for(let e in t){const n="YYYY-MM-DD HH:mm:ss";y.default(t[e],n,!0).isValid()&&(t[e]=y.default(t[e]).format(n))}if(e.manualParameterChange&&(t=e.manualParameterChange(t)),e.manualVerification&&!e.manualVerification(t))return console.warn("手动验证表单不通过"),void i({saveLoading:!1});if(t=m.default.omitBy(t,m.default.isNil),e.submitApi&&t){if(e.id?(t.id=e.id,n=await e.submitApi(t,"put")):n=await e.submitApi(t,"post"),1===n.code){if(e.onConfirm){if(!1===e.onConfirm(n))return}Fi.success("操作成功",1.5),e.onCancel&&e.onCancel()}i({saveLoading:!1})}else e.onConfirm&&t&&e.onConfirm(t)}catch(t){i({saveLoading:!1})}}};return t.useEffect((()=>{!1===e.visible&&i({saveLoading:!1})}),[e.visible,i]),t.useEffect((()=>{i({disabled:e.disable})}),[e.disable,i]),t.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)},excludeFormSubmitValues:async t=>{if(r.current){const n=e.formList.filter((e=>!t?.includes(e.name)));return await(r.current?.formSubmit(n.map((t=>t.name))))}return{}},getFormSubmitValues:async t=>r.current?await(r.current?.formSubmit(t)):{}}))),n.jsx(jD,{className:`form-modal ${e.className}`,width:e.width?e.width:600,visible:e.visible,title:e.title||"对话框",onCancel:e.onCancel,destroyOnClose:!0,maskClosable:!1,footer:null,children:n.jsxs(nC,{spinning:o.loading,children:[n.jsxs("div",{className:"modal-form-height",children:[e.topRender?e.topRender:null,n.jsx(JD,{ref:r,formConfig:{labelCol:{span:24},...e.formConfig},rowGridConfig:{gutter:[20,0]},colGirdConfig:e.colGirdConfig||{span:12},list:e.formList}),e.children&&e.children]}),(()=>{const a=(()=>{const t=[n.jsx(af,{onClick:()=>e.onCancel&&e.onCancel(),children:"关闭"},-1)];return o.disabled||t.push(n.jsx(af,{type:"primary",loading:o.saveLoading,onClick:l,children:"提交"},-2)),t})(),r=t=>n.jsx(ty,{className:"form-modal-foot",justify:"center",children:n.jsx(ry,{children:n.jsx(NE,{size:20,children:t})})});if(e.footer)return e.footer;if(e.footBtnList){const{model:n,data:o}=e.footBtnList,i=o.map(((e,n)=>{const{children:a,...r}=e;return t.createElement(af,{...r,key:n},a)}));if("new"===n)return r(i);if("before"===n)return r([...i,...a]);if("after"===n)return r([...a,...i])}return r(a)})()]})})}));k('@import "https://at.alicdn.com/t/font_2381668_l6oy3doglyo.css";.icon-selected-modal .avatar-selected{align-items:center;border:2px solid #fff;border-radius:4px;cursor:pointer;display:flex;height:36px;justify-content:center;overflow:hidden;width:36px}.icon-selected-modal .avatar-selected.avatar-selected-bg{border-color:#5860f8}.icon-selected-modal .icon-selected-foot{margin-top:20px}');k(".button-group{align-items:center;background-color:#f2f2f3;background-image:none;border:0;border-radius:4px;box-shadow:0 2px 0 rgba(0,0,0,.015);cursor:pointer;display:inline-flex;font-size:12px;height:30px;justify-content:center;line-height:1.15;outline:none;padding:3px 15px;position:relative;text-align:center;touch-action:manipulation;transition:all .3s cubic-bezier(.645,.045,.355,1);user-select:none;white-space:nowrap}.button-group:hover{background-color:#e3e5e6}.button-group-large{height:40px}.button-group-small{height:26px}.button-group-primary{background-color:#5860f8;color:#fff}.button-group-primary:hover{background-color:#828cff}.button-group .anticon{font-size:12px;margin-left:5px}.button-group .anticon.anticon-close{align-items:center;background-color:#878d99;border-radius:100%;color:#fff;display:inline-flex;font-size:10px;height:16px;justify-content:center;position:absolute;right:-5px;top:-5px;width:16px}");const gL="button-group";var bL=t.forwardRef(((e,a)=>{const[r,o]=O.useSetState({type:"checkbox",deleteOpen:!1,data:[]}),i=t=>{let n=gL;return e.buttonClassName&&(n=`${n} ${e.buttonClassName}`),e.size&&(n=`${n} ${gL}-${e.size}`),t.selected&&(n=`${n} ${gL}-primary`),n};return t.useEffect((()=>{if(e.checkType&&o({type:e.checkType}),e.deleteOpen&&o({deleteOpen:e.deleteOpen}),e.data){const t=e.data.map((t=>(void 0===t.selected&&(t.selected=!1),t)));o({data:t})}}),[e,o]),t.useImperativeHandle(a,(()=>({getButtonGroupSelected:()=>r.data.filter((t=>t.selected))}))),n.jsx(ty,{className:e.className,gutter:[10,10],children:r.data.map(((t,a)=>n.jsx(ry,{children:n.jsxs("div",{className:i(t),onClick:()=>((t,n)=>{let a=[];e.deleteOpen||(r.data&&("checkbox"===r.type&&(r.data[n].selected=!t.selected,a=r.data),"radio"===r.type&&(a=r.data.map(((e,a)=>{let r=!1;return n===a&&(r=!t.selected),{...e,selected:r}})))),e.onChange&&e.onChange(a),o({data:a}))})(t,a),children:[t.name,r.deleteOpen?n.jsx($i,{onClick:()=>(t=>{if(r.data){const n=r.data.filter(((e,n)=>t!==n));e.onChange&&e.onChange(n),o({data:n})}})(a)}):null]})},a)))})}));exports.Affix=t=>{let e={...t},a="";return e.targetId&&(a=e.targetId,delete e.targetId),n.jsx(ql,{target:()=>document.getElementById(a||"router-render")||window,...e})},exports.ButtonGroup=bL,exports.Dialog=jD,exports.Empty=aL,exports.GaoDeMap=MD,exports.GenerateForm=JD,exports.GenerateTable=nL,exports.IconSelectionModal=t=>{const[e,a]=O.useSetState({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 n.jsxs(jD,{className:"icon-selected-modal",width:t.width?t.width:590,visible:t.visible,title:t.title?t.title:"图标选择",onCancel:t.onCancel,destroyOnClose:!0,maskClosable:!1,footer:null,children:[n.jsx(ty,{gutter:[10,10],children:e.iconModal.list.map(((t,o)=>n.jsx(ry,{children:n.jsx("div",{className:`avatar-selected ${o===e.iconModal.selected?"avatar-selected-bg":null}`,onClick:()=>{a((t=>(t.iconModal.selected=o,t)))},children:n.jsx("i",{className:`iconfont ${t}`,title:t,style:r})})},o)))}),n.jsx(ty,{className:"icon-selected-foot",justify:"center",children:n.jsx(ry,{children:n.jsxs(NE,{size:20,children:[n.jsx(af,{onClick:t.onCancel,children:"关闭"}),n.jsx(af,{type:"primary",onClick:()=>{const n=e.iconModal.list[e.iconModal.selected];t.onConfirm&&t.onConfirm(n)},children:"确定"})]})})})]})},exports.LayoutFormModal=hL,exports.LayoutTableModal=iL,exports.QuicklyProcessForms=e=>{const a=t.useRef(),r=t.useRef({page:1,pages:1,size:10}),[o,i]=O.useSetState({id:void 0,saveLoading:!1,data:[]}),l={fontSize:24},c=t.useCallback(((t,e)=>t.map((t=>{if(e)for(let n of e)t[n]&&(t[n]=y.default(t[n]));return t}))),[]),s=t.useCallback((async t=>{if(e.apiMethod)try{let n="";const a=await e.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&&(n=o[o.length-1].id),"down"===t&&(n=o[0].id),i({id:n||e.id,data:o})}catch(t){}}),[e,i]),u=t.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=t.useCallback((async()=>{if(e.apiMethod){if(1===r.current.page&&0===u)return Fi.destroy(),void Fi.warn("已经是第一页啦~",1.5);if(u-1<0)return r.current.page=r.current.page-1,s("up"),void(e.onChange&&e.onChange(o.data[u],r.current))}else if(0===u)return Fi.destroy(),void Fi.warn("已经是第一个啦~",1.5);if(a.current){const t=await a.current.formSubmit();if(t){t.id=o.data[u].id;try{const n=o.data[u-1];console.log("cutIndexObj",n),e.submitApi(t,"put"),e.onChange&&e.onChange(n,r.current),i((e=>(e.id=n.id,e.data[u]={...e.data[u],...t},e)))}catch(t){}}}}),[u,s,e,i,o.data]),p=t.useCallback((async()=>{if(e.apiMethod){if(r.current.page===r.current.pages&&u===o.data.length-1)return Fi.destroy(),void Fi.warn("已经是最后一页啦~",1.5);if(u+1>=o.data.length)return r.current.page=r.current.page+1,s("down"),void(e.onChange&&e.onChange(o.data[u],r.current))}else if(0===o.data.length||u===o.data.length-1)return Fi.destroy(),void Fi.warn("已经是最后一个啦~",1.5);if(a.current){const t=await a.current.formSubmit();if(t){t.id=o.data[u].id;try{const n=o.data[u+1];console.log("cutIndexObj",n),e.submitApi(t,"put"),e.onChange&&e.onChange(n,r.current),i((e=>(e.id=n.id,e.data[u]={...e.data[u],...t},e)))}catch(t){}}}}),[u,s,e,i,o.data]),f=t.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{e.submitApi(t,"put"),Fi.success("保存成功",1.5)}catch(t){}}}),[u,p,d,e,o.data]),m=t.useCallback((async()=>{if(e.methodParams){let t=["page","pages","size"],n={},a=await e.methodParams;for(let e in r.current)for(let a of t)e===a&&(n[a]=r.current[e]);n={...n,...a},n.page=a.page?a.page.current:1,r.current=n}}),[e.methodParams]);return t.useEffect((()=>{e.visible&&setTimeout((()=>{a.current&&a.current.setFormValues(o.data[u])}),100)}),[u,e.visible,o.data]),t.useEffect((()=>{e.visible&&(e.apiMethod?m().then((()=>{s()})):i({id:e.id,data:c(e.data,e.transformTime)}))}),[m,s,e.apiMethod,e.data,e.id,e.transformTime,e.visible,i,c]),t.useEffect((()=>(e.visible?document.addEventListener("keydown",f):document.removeEventListener("keydown",f),()=>{document.removeEventListener("keydown",f)})),[f,e.visible]),n.jsx(jD,{className:"quickly-form-modal",width:e.width?e.width:960,visible:e.visible,title:e.title||"快速编辑信息",onCancel:()=>{e.onCancel&&e.onCancel(r.current)},maskClosable:!1,destroyOnClose:!0,footer:null,children:n.jsxs(ty,{className:"modal-form-height",gutter:16,align:"middle",wrap:!1,children:[n.jsx(ry,{flex:"60px",children:n.jsx(ty,{justify:"center",children:n.jsx(ry,{children:n.jsx(uL,{className:"circle-filled",style:l,onClick:d})})})}),n.jsx(ry,{flex:"auto",children:n.jsx(JD,{ref:a,formConfig:{labelCol:{span:24}},rowGridConfig:{gutter:[20,0]},colGirdConfig:{span:6},list:e.formList})}),n.jsx(ry,{flex:"60px",children:n.jsx(ty,{justify:"center",children:n.jsx(ry,{children:n.jsx(mL,{className:"circle-filled",style:l,onClick:p})})})})]})})},exports.TreeNode=AD,exports.Upload=zD,exports.VirtualList=e=>{const{vl:a,...r}=e,o=t.useRef(a);var i,l;i=a,l=o.current,m.default.isEqualWith(i,l,((t,e)=>{if(m.default.isFunction(t)&&m.default.isFunction(e))return t.toString()===e.toString()}))&&(o.current=a);const c=t.useMemo((()=>{if(o.current)return AI(o.current)}),[]);return n.jsx(qD,{children:n.jsx(WO,{components:c,rowKey:"id",pagination:!1,scroll:{y:500,x:"100%"},...r})})},exports.hooks=O;
|