hlyc-web-pack 3.6.47 → 3.6.49
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 -0
- package/lib/index.js +1 -1
- package/package.json +1 -1
|
@@ -77,6 +77,8 @@ export interface GenerateTableProp {
|
|
|
77
77
|
paginationConfig?: false | TablePaginationConfig;
|
|
78
78
|
/** 选择框的默认属性配置 */
|
|
79
79
|
getCheckboxProps?: (record: AnyObjectType) => AnyObjectType;
|
|
80
|
+
/** 数据结果过滤 */
|
|
81
|
+
resultFilter?: (data: any) => Promise<AnyObjectType[]> | AnyObjectType[];
|
|
80
82
|
/** 数据调用成功回调 */
|
|
81
83
|
getTableSuccessData?: (data: AnyObjectType) => void;
|
|
82
84
|
};
|
package/lib/index.js
CHANGED
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
*
|
|
36
36
|
* This source code is licensed under the MIT license found in the
|
|
37
37
|
* LICENSE file in the root directory of this source tree.
|
|
38
|
-
*/function cD(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case UI:switch(t=t.type){case ZI:case QI:case YI:case qI:case $I:case tD:return t;default:switch(t=t&&t.$$typeof){case XI:case JI:case rD:case nD:case GI:return t;default:return e}}case WI:return e}}}function sD(t){return cD(t)===QI}var uD={AsyncMode:ZI,ConcurrentMode:QI,ContextConsumer:XI,ContextProvider:GI,Element:UI,ForwardRef:JI,Fragment:YI,Lazy:rD,Memo:nD,Portal:WI,Profiler:qI,StrictMode:$I,Suspense:tD,isAsyncMode:function(t){return sD(t)||cD(t)===ZI},isConcurrentMode:sD,isContextConsumer:function(t){return cD(t)===XI},isContextProvider:function(t){return cD(t)===GI},isElement:function(t){return"object"==typeof t&&null!==t&&t.$$typeof===UI},isForwardRef:function(t){return cD(t)===JI},isFragment:function(t){return cD(t)===YI},isLazy:function(t){return cD(t)===rD},isMemo:function(t){return cD(t)===nD},isPortal:function(t){return cD(t)===WI},isProfiler:function(t){return cD(t)===qI},isStrictMode:function(t){return cD(t)===$I},isSuspense:function(t){return cD(t)===tD},isValidElementType:function(t){return"string"==typeof t||"function"==typeof t||t===YI||t===QI||t===qI||t===$I||t===tD||t===eD||"object"==typeof t&&null!==t&&(t.$$typeof===rD||t.$$typeof===nD||t.$$typeof===GI||t.$$typeof===XI||t.$$typeof===JI||t.$$typeof===oD||t.$$typeof===iD||t.$$typeof===lD||t.$$typeof===aD)},typeOf:cD},dD=F((function(t,e){"production"!==process.env.NODE_ENV&&function(){var t="function"==typeof Symbol&&Symbol.for,n=t?Symbol.for("react.element"):60103,r=t?Symbol.for("react.portal"):60106,a=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 a: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 r:return e}}}var w=s,k=u,C=c,E=l,O=n,S=d,P=a,N=h,j=m,T=r,I=i,D=o,R=p,M=!1;function z(t){return x(t)===u}e.AsyncMode=w,e.ConcurrentMode=k,e.ContextConsumer=C,e.ContextProvider=E,e.Element=O,e.ForwardRef=S,e.Fragment=P,e.Lazy=N,e.Memo=j,e.Portal=T,e.Profiler=I,e.StrictMode=D,e.Suspense=R,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)===a},e.isLazy=function(t){return x(t)===h},e.isMemo=function(t){return x(t)===m},e.isPortal=function(t){return x(t)===r},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===a||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}()})),pD=F((function(t){"production"===process.env.NODE_ENV?t.exports=uD:t.exports=dD})),fD=Object.getOwnPropertySymbols,mD=Object.prototype.hasOwnProperty,hD=Object.prototype.propertyIsEnumerable;function gD(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}var bD=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var 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,r,a=gD(t),o=1;o<arguments.length;o++){for(var i in n=Object(arguments[o]))mD.call(n,i)&&(a[i]=n[i]);if(fD){r=fD(n);for(var l=0;l<r.length;l++)hD.call(n,r[l])&&(a[r[l]]=n[r[l]])}}return a},vD="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",yD=function(){};if("production"!==process.env.NODE_ENV){var xD=vD,wD={},kD=Function.call.bind(Object.prototype.hasOwnProperty);yD=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}}}function CD(t,e,n,r,a){if("production"!==process.env.NODE_ENV)for(var o in t)if(kD(t,o)){var i;try{if("function"!=typeof t[o]){var l=Error((r||"React class")+": "+n+" type `"+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[o]+"`.");throw l.name="Invariant Violation",l}i=t[o](e,o,r,n,null,xD)}catch(t){i=t}if(!i||i instanceof Error||yD((r||"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 wD)){wD[i.message]=!0;var c=a?a():"";yD("Failed "+n+" type: "+i.message+(null!=c?c:""))}}}CD.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(wD={})};var ED=CD,OD=Function.call.bind(Object.prototype.hasOwnProperty),SD=function(){};function PD(){return null}"production"!==process.env.NODE_ENV&&(SD=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}});var ND=function(t,e){var n="function"==typeof Symbol&&Symbol.iterator;var r="<<anonymous>>",a={array:c("array"),bool:c("boolean"),func:c("function"),number:c("number"),object:c("object"),string:c("string"),symbol:c("symbol"),any:l(PD),arrayOf:function(t){return l((function(e,n,r,a,o){if("function"!=typeof t)return new i("Property `"+o+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var l=e[n];if(!Array.isArray(l))return new i("Invalid "+a+" `"+o+"` of type `"+u(l)+"` supplied to `"+r+"`, expected an array.");for(var c=0;c<l.length;c++){var s=t(l,c,r,a,o+"["+c+"]",vD);if(s instanceof Error)return s}return null}))},element:l((function(e,n,r,a,o){var l=e[n];return t(l)?null:new i("Invalid "+a+" `"+o+"` of type `"+u(l)+"` supplied to `"+r+"`, expected a single ReactElement.")})),elementType:l((function(t,e,n,r,a){var o=t[e];return pD.isValidElementType(o)?null:new i("Invalid "+r+" `"+a+"` of type `"+u(o)+"` supplied to `"+n+"`, expected a single ReactElement type.")})),instanceOf:function(t){return l((function(e,n,a,o,l){if(!(e[n]instanceof t)){var c=t.name||r;return new i("Invalid "+o+" `"+l+"` of type `"+(((s=e[n]).constructor&&s.constructor.name?s.constructor.name:r)+"` supplied to `")+a+"`, expected instance of `"+c+"`.")}var s;return null}))},node:l((function(t,e,n,r,a){return s(t[e])?null:new i("Invalid "+r+" `"+a+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(t){return l((function(e,n,r,a,o){if("function"!=typeof t)return new i("Property `"+o+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var l=e[n],c=u(l);if("object"!==c)return new i("Invalid "+a+" `"+o+"` of type `"+c+"` supplied to `"+r+"`, expected an object.");for(var s in l)if(OD(l,s)){var d=t(l,s,r,a,o+"."+s,vD);if(d instanceof Error)return d}return null}))},oneOf:function(t){if(!Array.isArray(t))return"production"!==process.env.NODE_ENV&&SD(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."),PD;function e(e,n,r,a,l){for(var c=e[n],s=0;s<t.length;s++)if(o(c,t[s]))return null;var u=JSON.stringify(t,(function(t,e){return"symbol"===d(e)?String(e):e}));return new i("Invalid "+a+" `"+l+"` of value `"+String(c)+"` supplied to `"+r+"`, expected one of "+u+".")}return l(e)},oneOfType:function(t){if(!Array.isArray(t))return"production"!==process.env.NODE_ENV&&SD("Invalid argument supplied to oneOfType, expected an instance of array."),PD;for(var e=0;e<t.length;e++){var n=t[e];if("function"!=typeof n)return SD("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+p(n)+" at index "+e+"."),PD}return l((function(e,n,r,a,o){for(var l=0;l<t.length;l++)if(null==(0,t[l])(e,n,r,a,o,vD))return null;return new i("Invalid "+a+" `"+o+"` supplied to `"+r+"`.")}))},shape:function(t){return l((function(e,n,r,a,o){var l=e[n],c=u(l);if("object"!==c)return new i("Invalid "+a+" `"+o+"` of type `"+c+"` supplied to `"+r+"`, expected `object`.");for(var s in t){var d=t[s];if(d){var p=d(l,s,r,a,o+"."+s,vD);if(p)return p}}return null}))},exact:function(t){return l((function(e,n,r,a,o){var l=e[n],c=u(l);if("object"!==c)return new i("Invalid "+a+" `"+o+"` of type `"+c+"` supplied to `"+r+"`, expected `object`.");var s=bD({},e[n],t);for(var d in s){var p=t[d];if(!p)return new i("Invalid "+a+" `"+o+"` key `"+d+"` supplied to `"+r+"`.\nBad object: "+JSON.stringify(e[n],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(t),null," "));var f=p(l,d,r,a,o+"."+d,vD);if(f)return f}return null}))}};function o(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function i(t){this.message=t,this.stack=""}function l(t){if("production"!==process.env.NODE_ENV)var n={},a=0;function o(o,l,c,s,u,d,p){if(s=s||r,d=d||c,p!==vD){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]&&a<3&&(SD("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,a++)}}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,r,a,o,l){var c=e[n];return u(c)!==t?new i("Invalid "+a+" `"+o+"` of type `"+d(c)+"` supplied to `"+r+"`, expected `"+t+"`."):null}))}function s(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(s);if(null===e||t(e))return!0;var r=function(t){var e=t&&(n&&t[n]||t["@@iterator"]);if("function"==typeof e)return e}(e);if(!r)return!1;var a,o=r.call(e);if(r!==e.entries){for(;!(a=o.next()).done;)if(!s(a.value))return!1}else for(;!(a=o.next()).done;){var i=a.value;if(i&&!s(i[1]))return!1}return!0;default:return!1}}function u(t){var e=typeof t;return Array.isArray(t)?"array":t instanceof RegExp?"object":function(t,e){return"symbol"===t||!!e&&("Symbol"===e["@@toStringTag"]||"function"==typeof Symbol&&e instanceof Symbol)}(e,t)?"symbol":e}function d(t){if(null==t)return""+t;var e=u(t);if("object"===e){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return e}function p(t){var e=d(t);switch(e){case"array":case"object":return"an "+e;case"boolean":case"date":case"regexp":return"a "+e;default:return e}}return i.prototype=Error.prototype,a.checkPropTypes=ED,a.resetWarningCache=ED.resetWarningCache,a.PropTypes=a,a};function jD(){}function TD(){}TD.resetWarningCache=jD;var ID=F((function(t){if("production"!==process.env.NODE_ENV){var e=pD;t.exports=ND(e.isElement,!0)}else t.exports=function(){function t(t,e,n,r,a,o){if(o!==vD){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:TD,resetWarningCache:jD};return n.PropTypes=n,n}()})),DD=F((function(t,e){e.__esModule=!0,e.resizableProps=void 0;var n=function(t){return t&&t.__esModule?t:{default:t}}(ID);var r={axis:n.default.oneOf(["both","x","y","none"]),className:n.default.string,children:n.default.element.isRequired,draggableOpts:n.default.shape({allowAnyClick:n.default.bool,cancel:n.default.string,children:n.default.node,disabled:n.default.bool,enableUserSelectHack:n.default.bool,offsetParent:n.default.node,grid:n.default.arrayOf(n.default.number),handle:n.default.string,nodeRef:n.default.object,onStart:n.default.func,onDrag:n.default.func,onStop:n.default.func,onMouseDown:n.default.func,scale:n.default.number}),height:n.default.number.isRequired,handle:n.default.oneOfType([n.default.node,n.default.func]),handleSize:n.default.arrayOf(n.default.number),lockAspectRatio:n.default.bool,maxConstraints:n.default.arrayOf(n.default.number),minConstraints:n.default.arrayOf(n.default.number),onResizeStop:n.default.func,onResizeStart:n.default.func,onResize:n.default.func,resizeHandles:n.default.arrayOf(n.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),transformScale:n.default.number,width:n.default.number.isRequired};e.resizableProps=r})),RD=F((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=a(e);if(n&&n.has(t))return n.get(t);var r={},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(r,i,l):r[i]=t[i]}r.default=t,n&&n.set(t,r);return r}(d.default),r=["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"];function a(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(a=function(t){return t?n:e})(t)}function o(){return(o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){c(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var u=function(t){var e,a;function i(){for(var e,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r))||this).handleRefs={},e.lastHandleRect=null,e.slack=null,e}a=t,(e=i).prototype=Object.create(a.prototype),e.prototype.constructor=e,s(e,a);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,r=n.minConstraints,a=n.maxConstraints,o=n.lockAspectRatio;if(!r&&!a&&!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,r&&(t=Math.max(r[0],t),e=Math.max(r[1],e)),a&&(t=Math.min(a[0],t),e=Math.min(a[1],e)),this.slack=[p+(s-t),f+(u-e)],[t,e]},c.resizeHandler=function(t,e){var n=this;return function(r,a){var o=a.node,i=a.deltaX,l=a.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==r.persist||r.persist(),b(r,{node:o,size:{width:f,height:m},handle:e})),"onResizeStop"===t&&n.resetData()}}},c.renderResizeHandle=function(t,e){var r=this.props.handle;if(!r)return n.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+t,ref:e});if("function"==typeof r)return r(t,e);var a=l({ref:e},"string"==typeof r.type?{}:{handleAxis:t});return n.cloneElement(r,a)},c.render=function(){var t=this,e=this.props,a=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,r,a={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(a[n]=t[n]);return a}(e,r);return(0,HI.cloneElement)(a,l(l({},u),{},{className:(i?i+" ":"")+"react-resizable",children:[].concat(a.props.children,s.map((function(e){var r,a=null!=(r=t.handleRefs[e])?r:t.handleRefs[e]=n.createRef();return n.createElement(h.default.DraggableCore,o({},c,{nodeRef:a,key:"resizableHandle-"+e,onStop:t.resizeHandler("onResizeStop",e),onStart:t.resizeHandler("onResizeStart",e),onDrag:t.resizeHandler("onResize",e)}),t.renderResizeHandle(e,a))})))}))},i}(n.Component);e.default=u,u.propTypes=DD.resizableProps,u.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1}})),MD=F((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 r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var i=a?Object.getOwnPropertyDescriptor(t,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=t[o]}r.default=t,n&&n.set(t,r);return r}(d.default),r=i(ID),a=i(RD),o=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function i(t){return t&&t.__esModule?t:{default:t}}function l(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(l=function(t){return t?n:e})(t)}function c(){return(c=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}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){p(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function p(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var m=function(t){var e,r;function i(){for(var e,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r))||this).state={width:e.props.width,height:e.props.height,propsWidth:e.props.width,propsHeight:e.props.height},e.onResize=function(t,n){var r=n.size;e.props.onResize?(null==t.persist||t.persist(),e.setState(r,(function(){return e.props.onResize&&e.props.onResize(t,n)}))):e.setState(r)},e}return r=t,(e=i).prototype=Object.create(r.prototype),e.prototype.constructor=e,f(e,r),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,r=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,r,a={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(a[n]=t[n]);return a}(t,o);return n.createElement(a.default,{axis:m,draggableOpts:s,handle:e,handleSize:r,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({},DD.resizableProps),{},{children:r.default.element})})),zD=RD.default;MD.default;const AD=t=>{const{onResize:e,width:r,...a}=t;return r?n.jsx(zD,Object.assign({width:r,height:0,handle:n.jsx("span",{className:"react-resizable-handle",onClick:t=>{t.stopPropagation()}},void 0),onResize:e,draggableOpts:{enableUserSelectHack:!1}},{children:n.jsx("th",Object.assign({},a),void 0)}),void 0):n.jsx("th",Object.assign({},a),void 0)};var LD,_D=t.createContext({dragDropManager:void 0});function FD(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),a=2;a<n;a++)r[a-2]=arguments[a];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 r[i++]})))).name="Invariant Violation"}throw o.framesToPop=1,o}}!function(t){t.SOURCE="SOURCE",t.TARGET="TARGET"}(LD||(LD={}));var VD="dnd-core/INIT_COORDS",KD="dnd-core/BEGIN_DRAG",HD="dnd-core/PUBLISH_DRAG_SOURCE",BD="dnd-core/HOVER",UD="dnd-core/DROP",WD="dnd-core/END_DRAG";function YD(t,e){return{type:VD,payload:{sourceClientOffset:e||null,clientOffset:t||null}}}function $D(t){return($D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function qD(t,e,n){return e.split(".").reduce((function(t,e){return t&&t[e]?t[e]:n||null}),t)}function GD(t,e){return t.filter((function(t){return t!==e}))}function XD(t){return"object"===$D(t)}function ZD(t,e){var n=new Map,r=function(t){n.set(t,n.has(t)?n.get(t)+1:1)};t.forEach(r),e.forEach(r);var a=[];return n.forEach((function(t,e){1===t&&a.push(e)})),a}var QD={type:VD,payload:{clientOffset:null,sourceClientOffset:null}};function JD(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},r=n.publishSource,a=void 0===r||r,o=n.clientOffset,i=n.getSourceClientOffset,l=t.getMonitor(),c=t.getRegistry();t.dispatch(YD(o)),tR(e,l,c);var s=rR(e,l);if(null!==s){var u=null;if(o){if(!i)throw new Error("getSourceClientOffset must be defined");eR(i),u=i(s)}t.dispatch(YD(o,u));var d=c.getSource(s),p=d.beginDrag(l,s);if(null!=p){nR(p),c.pinSource(s);var f=c.getSourceType(s);return{type:KD,payload:{itemType:f,item:p,sourceId:s,clientOffset:o||null,sourceClientOffset:u||null,isSourcePublic:!!a}}}}else t.dispatch(QD)}}function tR(t,e,n){FD(!e.isDragging(),"Cannot call beginDrag while dragging."),t.forEach((function(t){FD(n.getSource(t),"Expected sourceIds to be registered.")}))}function eR(t){FD("function"==typeof t,"When clientOffset is provided, getSourceClientOffset must be a function.")}function nR(t){FD(XD(t),"Item must be an object.")}function rR(t,e){for(var n=null,r=t.length-1;r>=0;r--)if(e.canDragSource(t[r])){n=t[r];break}return n}function aR(t){return function(){if(t.getMonitor().isDragging())return{type:HD}}}function oR(t,e){return null===e?null===t:Array.isArray(t)?t.some((function(t){return t===e})):t===e}function iR(t){return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.clientOffset;lR(e);var a=e.slice(0),o=t.getMonitor(),i=t.getRegistry();cR(a,o,i);var l=o.getItemType();return sR(a,i,l),uR(a,o,i),{type:BD,payload:{targetIds:a,clientOffset:r||null}}}}function lR(t){FD(Array.isArray(t),"Expected targetIds to be an array.")}function cR(t,e,n){FD(e.isDragging(),"Cannot call hover while not dragging."),FD(!e.didDrop(),"Cannot call hover after drop.");for(var r=0;r<t.length;r++){var a=t[r];FD(t.lastIndexOf(a)===r,"Expected targetIds to be unique in the passed array."),FD(n.getTarget(a),"Expected targetIds to be registered.")}}function sR(t,e,n){for(var r=t.length-1;r>=0;r--){var a=t[r];oR(e.getTargetType(a),n)||t.splice(r,1)}}function uR(t,e,n){t.forEach((function(t){n.getTarget(t).hover(e,t)}))}function dR(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function pR(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?dR(Object(n),!0).forEach((function(e){fR(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):dR(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function fR(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function mR(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.getMonitor(),r=t.getRegistry();hR(n);var a=bR(n);a.forEach((function(a,o){var i=gR(a,o,r,n),l={type:UD,payload:{dropResult:pR(pR({},e),i)}};t.dispatch(l)}))}}function hR(t){FD(t.isDragging(),"Cannot call drop while not dragging."),FD(!t.didDrop(),"Cannot call drop twice during one drag operation.")}function gR(t,e,n,r){var a=n.getTarget(t),o=a?a.drop(r,t):void 0;return function(t){FD(void 0===t||XD(t),"Drop result must either be an object or undefined.")}(o),void 0===o&&(o=0===e?{}:r.getDropResult()),o}function bR(t){var e=t.getTargetIds().filter(t.canDropOnTarget,t);return e.reverse(),e}function vR(t){return function(){var e=t.getMonitor(),n=t.getRegistry();!function(t){FD(t.isDragging(),"Cannot call endDrag while not dragging.")}(e);var r=e.getSourceId();null!=r&&(n.getSource(r,!0).endDrag(e,r),n.unpinSource());return{type:WD}}}function yR(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function xR(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var wR=function(){function t(e,n){var r=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),xR(this,"store",void 0),xR(this,"monitor",void 0),xR(this,"backend",void 0),xR(this,"isSetUp",!1),xR(this,"handleRefCountChange",(function(){var t=r.store.getState().refCount>0;r.backend&&(t&&!r.isSetUp?(r.backend.setup(),r.isSetUp=!0):!t&&r.isSetUp&&(r.backend.teardown(),r.isSetUp=!1))})),this.store=e,this.monitor=n,e.subscribe(this.handleRefCountChange)}var e,n,r;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:JD(t),publishDragSource:aR(t),hover:iR(t),drop:mR(t),endDrag:vR(t)}}(this);return Object.keys(n).reduce((function(r,a){var o,i=n[a];return r[a]=(o=i,function(){for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];var i=o.apply(t,r);void 0!==i&&e(i)}),r}),{})}},{key:"dispatch",value:function(t){this.store.dispatch(t)}}])&&yR(e.prototype,n),r&&yR(e,r),t}();function kR(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 CR="function"==typeof Symbol&&Symbol.observable||"@@observable",ER=function(){return Math.random().toString(36).substring(7).split("").join(".")},OR={INIT:"@@redux/INIT"+ER(),REPLACE:"@@redux/REPLACE"+ER(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ER()}};function SR(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function PR(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 NR(t){var e=typeof t;return"production"!==process.env.NODE_ENV&&(e=PR(t)),e}function jR(t,e,n){var r;if("function"==typeof e&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error("production"===process.env.NODE_ENV?kR(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?kR(1):"Expected the enhancer to be a function. Instead, received: '"+NR(n)+"'");return n(jR)(t,e)}if("function"!=typeof t)throw new Error("production"===process.env.NODE_ENV?kR(2):"Expected the root reducer to be a function. Instead, received: '"+NR(t)+"'");var a=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?kR(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?kR(4):"Expected the listener to be a function. Instead, received: '"+NR(t)+"'");if(c)throw new Error("production"===process.env.NODE_ENV?kR(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?kR(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(!SR(t))throw new Error("production"===process.env.NODE_ENV?kR(7):"Actions must be plain objects. Instead, the actual type was: '"+NR(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?kR(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?kR(9):"Reducers may not dispatch actions.");try{c=!0,o=a(o,t)}finally{c=!1}for(var e=i=l,n=0;n<e.length;n++){(0,e[n])()}return t}function f(t){if("function"!=typeof t)throw new Error("production"===process.env.NODE_ENV?kR(10):"Expected the nextReducer to be a function. Instead, received: '"+NR(t));a=t,p({type:OR.REPLACE})}function m(){var t,e=d;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error("production"===process.env.NODE_ENV?kR(11):"Expected the observer to be an object. Instead, received: '"+NR(t)+"'");function n(){t.next&&t.next(u())}return n(),{unsubscribe:e(n)}}})[CR]=function(){return this},t}return p({type:OR.INIT}),(r={dispatch:p,subscribe:d,getState:u,replaceReducer:f})[CR]=m,r}function TR(){}"production"!==process.env.NODE_ENV&&"string"==typeof TR.name&&"isCrushed"!==TR.name&&function(t){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(t);try{throw new Error(t)}catch(t){}}('You are currently using minified code outside of NODE_ENV === "production". This means that you are running a slower development build of Redux. You can use loose-envify (https://github.com/zertosh/loose-envify) for browserify or setting mode to production in webpack (https://webpack.js.org/concepts/mode/) to ensure you have the correct code for your production build.');var IR=function(t,e){return t===e};function DR(t,e){return!t&&!e||!(!t||!e)&&(t.x===e.x&&t.y===e.y)}function RR(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:IR;if(t.length!==e.length)return!1;for(var r=0;r<t.length;++r)if(!n(t[r],e[r]))return!1;return!0}function MR(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function zR(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?MR(Object(n),!0).forEach((function(e){AR(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):MR(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function AR(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var LR={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function _R(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:LR,e=arguments.length>1?arguments[1]:void 0,n=e.payload;switch(e.type){case VD:case KD:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case BD:return DR(t.clientOffset,n.clientOffset)?t:zR(zR({},t),{},{clientOffset:n.clientOffset});case WD:case UD:return LR;default:return t}}var FR="dnd-core/ADD_SOURCE",VR="dnd-core/ADD_TARGET",KR="dnd-core/REMOVE_SOURCE",HR="dnd-core/REMOVE_TARGET";function BR(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function UR(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?BR(Object(n),!0).forEach((function(e){WR(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):BR(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function WR(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var YR={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function $R(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:YR,e=arguments.length>1?arguments[1]:void 0,n=e.payload;switch(e.type){case KD:return UR(UR({},t),{},{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case HD:return UR(UR({},t),{},{isSourcePublic:!0});case BD:return UR(UR({},t),{},{targetIds:n.targetIds});case HR:return-1===t.targetIds.indexOf(n.targetId)?t:UR(UR({},t),{},{targetIds:GD(t.targetIds,n.targetId)});case UD:return UR(UR({},t),{},{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case WD:return UR(UR({},t),{},{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return t}}function qR(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case FR:case VR:return t+1;case KR:case HR:return t-1;default:return t}}var GR=[],XR=[];function ZR(t,e){return t!==GR&&(t===XR||void 0===e||(n=t,e.filter((function(t){return n.indexOf(t)>-1}))).length>0);var n}function QR(){var t=arguments.length>1?arguments[1]:void 0;switch(t.type){case BD:break;case FR:case VR:case HR:case KR:return GR;case KD:case HD:case WD:case UD:default:return XR}var e=t.payload,n=e.targetIds,r=void 0===n?[]:n,a=e.prevTargetIds,o=void 0===a?[]:a,i=ZD(r,o),l=i.length>0||!RR(r,o);if(!l)return GR;var c=o[o.length-1],s=r[r.length-1];return c!==s&&(c&&i.push(c),s&&i.push(s)),i}function JR(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return t+1}function tM(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function eM(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?tM(Object(n),!0).forEach((function(e){nM(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):tM(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function nM(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function rM(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:QR(t.dirtyHandlerIds,{type:e.type,payload:eM(eM({},e.payload),{},{prevTargetIds:qD(t,"dragOperation.targetIds",[])})}),dragOffset:_R(t.dragOffset,e),refCount:qR(t.refCount,e),dragOperation:$R(t.dragOperation,e),stateId:JR(t.stateId)}}function aM(t,e){return{x:t.x-e.x,y:t.y-e.y}}function oM(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function iM(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}GR.__IS_NONE__=!0,XR.__IS_ALL__=!0;var lM=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),iM(this,"store",void 0),iM(this,"registry",void 0),this.store=e,this.registry=n}var e,n,r;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},r=n.handlerIds;FD("function"==typeof t,"listener must be a function."),FD(void 0===r||Array.isArray(r),"handlerIds, when specified, must be an array of strings.");var a=this.store.getState().stateId,o=function(){var n=e.store.getState(),o=n.stateId;try{o===a||o===a+1&&!ZR(n.dirtyHandlerIds,r)||t()}finally{a=o}};return this.store.subscribe(o)}},{key:"subscribeToOffsetChange",value:function(t){var e=this;FD("function"==typeof t,"listener must be a function.");var n=this.store.getState().dragOffset;return this.store.subscribe((function(){var r=e.store.getState().dragOffset;r!==n&&(n=r,t())}))}},{key:"canDragSource",value:function(t){if(!t)return!1;var e=this.registry.getSource(t);return FD(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 FD(e,"Expected to find a valid target. targetId=".concat(t)),!(!this.isDragging()||this.didDrop())&&oR(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 FD(e,"Expected to find a valid source. sourceId=".concat(t)),!(!this.isDragging()||!this.isSourcePublic())&&this.registry.getSourceType(t)===this.getItemType()&&e.isDragging(this,t)}},{key:"isOverTarget",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shallow:!1};if(!t)return!1;var n=e.shallow;if(!this.isDragging())return!1;var r=this.registry.getTargetType(t),a=this.getItemType();if(a&&!oR(r,a))return!1;var o=this.getTargetIds();if(!o.length)return!1;var i=o.indexOf(t);return n?i===o.length-1:i>-1}},{key:"getItemType",value:function(){return this.store.getState().dragOperation.itemType}},{key:"getItem",value:function(){return this.store.getState().dragOperation.item}},{key:"getSourceId",value:function(){return this.store.getState().dragOperation.sourceId}},{key:"getTargetIds",value:function(){return this.store.getState().dragOperation.targetIds}},{key:"getDropResult",value:function(){return this.store.getState().dragOperation.dropResult}},{key:"didDrop",value:function(){return this.store.getState().dragOperation.didDrop}},{key:"isSourcePublic",value:function(){return Boolean(this.store.getState().dragOperation.isSourcePublic)}},{key:"getInitialClientOffset",value:function(){return this.store.getState().dragOffset.initialClientOffset}},{key:"getInitialSourceClientOffset",value:function(){return this.store.getState().dragOffset.initialSourceClientOffset}},{key:"getClientOffset",value:function(){return this.store.getState().dragOffset.clientOffset}},{key:"getSourceClientOffset",value:function(){return t=this.store.getState().dragOffset,e=t.clientOffset,n=t.initialClientOffset,r=t.initialSourceClientOffset,e&&n&&r?aM(function(t,e){return{x:t.x+e.x,y:t.y+e.y}}(e,r),n):null;var t,e,n,r}},{key:"getDifferenceFromInitialOffset",value:function(){return t=this.store.getState().dragOffset,e=t.clientOffset,n=t.initialClientOffset,e&&n?aM(e,n):null;var t,e,n}}])&&oM(e.prototype,n),r&&oM(e,r),t}(),cM=0;function sM(t){return(sM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function uM(t,e){e&&Array.isArray(t)?t.forEach((function(t){return uM(t,!1)})):FD("string"==typeof t||"symbol"===sM(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 dM="undefined"!=typeof global?global:self,pM=dM.MutationObserver||dM.WebKitMutationObserver;function fM(t){return function(){const e=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(e),clearInterval(n),t()}}}const mM="function"==typeof pM?function(t){let e=1;const n=new pM(t),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){e=-e,r.data=e}}:fM;class hM{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 gM=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=mM(this.flush),this.requestErrorThrow=fM((()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()}))}},bM=new class{create(t){const e=this.freeTasks,n=e.length?e.pop():new hM(this.onError,(t=>e[e.length]=t));return n.task=t,n}constructor(t){this.onError=t,this.freeTasks=[]}}(gM.registerPendingError);function vM(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function yM(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function xM(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 r,a,o=[],i=!0,l=!1;try{for(n=n.call(t);!(i=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);i=!0);}catch(t){l=!0,a=t}finally{try{i||null==n.return||n.return()}finally{if(l)throw a}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return wM(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 wM(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 wM(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function kM(t){var e=(cM++).toString();switch(t){case LD.SOURCE:return"S".concat(e);case LD.TARGET:return"T".concat(e);default:throw new Error("Unknown Handler Role: ".concat(t))}}function CM(t){switch(t[0]){case"S":return LD.SOURCE;case"T":return LD.TARGET;default:FD(!1,"Cannot parse handler ID: ".concat(t))}}function EM(t,e){var n=t.entries(),r=!1;do{var a=n.next(),o=a.done;if(xM(a.value,2)[1]===e)return!0;r=!!o}while(!r);return!1}var OM=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),yM(this,"types",new Map),yM(this,"dragSources",new Map),yM(this,"dropTargets",new Map),yM(this,"pinnedSourceId",null),yM(this,"pinnedSource",null),yM(this,"store",void 0),this.store=e}var e,n,r;return e=t,(n=[{key:"addSource",value:function(t,e){uM(t),function(t){FD("function"==typeof t.canDrag,"Expected canDrag to be a function."),FD("function"==typeof t.beginDrag,"Expected beginDrag to be a function."),FD("function"==typeof t.endDrag,"Expected endDrag to be a function.")}(e);var n=this.addHandler(LD.SOURCE,t,e);return this.store.dispatch(function(t){return{type:FR,payload:{sourceId:t}}}(n)),n}},{key:"addTarget",value:function(t,e){uM(t,!0),function(t){FD("function"==typeof t.canDrop,"Expected canDrop to be a function."),FD("function"==typeof t.hover,"Expected hover to be a function."),FD("function"==typeof t.drop,"Expected beginDrag to be a function.")}(e);var n=this.addHandler(LD.TARGET,t,e);return this.store.dispatch(function(t){return{type:VR,payload:{targetId:t}}}(n)),n}},{key:"containsHandler",value:function(t){return EM(this.dragSources,t)||EM(this.dropTargets,t)}},{key:"getSource",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];FD(this.isSourceId(t),"Expected a valid source ID.");var n=e&&t===this.pinnedSourceId,r=n?this.pinnedSource:this.dragSources.get(t);return r}},{key:"getTarget",value:function(t){return FD(this.isTargetId(t),"Expected a valid target ID."),this.dropTargets.get(t)}},{key:"getSourceType",value:function(t){return FD(this.isSourceId(t),"Expected a valid source ID."),this.types.get(t)}},{key:"getTargetType",value:function(t){return FD(this.isTargetId(t),"Expected a valid target ID."),this.types.get(t)}},{key:"isSourceId",value:function(t){return CM(t)===LD.SOURCE}},{key:"isTargetId",value:function(t){return CM(t)===LD.TARGET}},{key:"removeSource",value:function(t){var e,n=this;FD(this.getSource(t),"Expected an existing source."),this.store.dispatch(function(t){return{type:KR,payload:{sourceId:t}}}(t)),e=function(){n.dragSources.delete(t),n.types.delete(t)},gM.enqueueTask(bM.create(e))}},{key:"removeTarget",value:function(t){FD(this.getTarget(t),"Expected an existing target."),this.store.dispatch(function(t){return{type:HR,payload:{targetId:t}}}(t)),this.dropTargets.delete(t),this.types.delete(t)}},{key:"pinSource",value:function(t){var e=this.getSource(t);FD(e,"Expected an existing source."),this.pinnedSourceId=t,this.pinnedSource=e}},{key:"unpinSource",value:function(){FD(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}},{key:"addHandler",value:function(t,e,n){var r=kM(t);return this.types.set(r,e),t===LD.SOURCE?this.dragSources.set(r,n):t===LD.TARGET&&this.dropTargets.set(r,n),r}}])&&vM(e.prototype,n),r&&vM(e,r),t}();function SM(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=PM(r),o=new lM(a,new OM(a)),i=new wR(a,o),l=t(i,e,n);return i.receiveBackend(l),i}function PM(t){var e="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return jR(rM,t&&e&&e({name:"dnd-core",instanceId:"dnd-core"}))}var NM=["children"];function jM(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 r,a,o=[],i=!0,l=!1;try{for(n=n.call(t);!(i=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);i=!0);}catch(t){l=!0,a=t}finally{try{i||null==n.return||n.return()}finally{if(l)throw a}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return TM(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 TM(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 TM(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function IM(t,e){if(null==t)return{};var n,r,a=function(t,e){if(null==t)return{};var n,r,a={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(a[n]=t[n]);return a}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}var DM=0,RM=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__"),MM=t.memo((function(e){var r=e.children,a=jM(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]:zM(),n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,a=e;a[RM]||(a[RM]={dragDropManager:SM(t,e,n,r)});return a[RM]}(t.backend,t.context,t.options,t.debugMode),n=!t.context;return[e,n]}(IM(e,NM)),2),o=a[0],i=a[1];return t.useEffect((function(){if(i){var t=zM();return++DM,function(){0==--DM&&(t[RM]=null)}}}),[]),n.jsx(_D.Provider,Object.assign({value:o},{children:r}),void 0)}));function zM(){return"undefined"!=typeof global?global:window}function AM(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}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 _M=!1,FM=!1,VM=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),LM(this,"internalMonitor",void 0),LM(this,"sourceId",null),this.internalMonitor=e.getMonitor()}var e,n,r;return e=t,(n=[{key:"receiveHandlerId",value:function(t){this.sourceId=t}},{key:"getHandlerId",value:function(){return this.sourceId}},{key:"canDrag",value:function(){FD(!_M,"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 _M=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{_M=!1}}},{key:"isDragging",value:function(){if(!this.sourceId)return!1;FD(!FM,"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 FM=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{FM=!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()}}])&&AM(e.prototype,n),r&&AM(e,r),t}();function KM(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function HM(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var BM=!1,UM=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),HM(this,"internalMonitor",void 0),HM(this,"targetId",null),this.internalMonitor=e.getMonitor()}var e,n,r;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;FD(!BM,"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 BM=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{BM=!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()}}])&&KM(e.prototype,n),r&&KM(e,r),t}();function WM(t){if("string"!=typeof t.type){var e=t.type.displayName||t.type.name||"the component";throw new Error("Only native element nodes can now be passed to React DnD connectors."+"You can either wrap ".concat(e," into a <div>, or turn it into a ")+"drag source or a drop target itself.")}}function YM(e){var n={};return Object.keys(e).forEach((function(r){var a=e[r];if(r.endsWith("Ref"))n[r]=e[r];else{var o=function(e){return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!t.isValidElement(n)){var a=n;return e(a,r),a}var o=n;return WM(o),qM(o,r?function(t){return e(t,r)}:e)}}(a);n[r]=function(){return o}}})),n}function $M(t,e){"function"==typeof t?t(e):t.current=e}function qM(e,n){var r=e.ref;return FD("string"!=typeof r,"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"),r?t.cloneElement(e,{ref:function(t){$M(r,t),$M(n,t)}}):t.cloneElement(e,{ref:n})}function GM(t){return(GM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function XM(t){return null!==t&&"object"===GM(t)&&Object.prototype.hasOwnProperty.call(t,"current")}function ZM(t,e,n,r){var a=n?n.call(r,t,e):void 0;if(void 0!==a)return!!a;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===(a=n?n.call(r,u,d,s):void 0)||void 0===a&&u!==d)return!1}return!0}function QM(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function JM(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){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),JM(this,"hooks",YM({dragSource:function(t,e){n.clearDragSource(),n.dragSourceOptions=e||null,XM(t)?n.dragSourceRef=t:n.dragSourceNode=t,n.reconnectDragSource()},dragPreview:function(t,e){n.clearDragPreview(),n.dragPreviewOptions=e||null,XM(t)?n.dragPreviewRef=t:n.dragPreviewNode=t,n.reconnectDragPreview()}})),JM(this,"handlerId",null),JM(this,"dragSourceRef",null),JM(this,"dragSourceNode",void 0),JM(this,"dragSourceOptionsInternal",null),JM(this,"dragSourceUnsubscribe",void 0),JM(this,"dragPreviewRef",null),JM(this,"dragPreviewNode",void 0),JM(this,"dragPreviewOptionsInternal",null),JM(this,"dragPreviewUnsubscribe",void 0),JM(this,"lastConnectedHandlerId",null),JM(this,"lastConnectedDragSource",null),JM(this,"lastConnectedDragSourceOptions",null),JM(this,"lastConnectedDragPreview",null),JM(this,"lastConnectedDragPreviewOptions",null),JM(this,"backend",void 0),this.backend=e}var e,n,r;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!ZM(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}},{key:"didDragPreviewOptionsChange",value:function(){return!ZM(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}}])&&QM(e.prototype,n),r&&QM(e,r),t}();function ez(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function nz(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var rz=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),nz(this,"hooks",YM({dropTarget:function(t,e){n.clearDropTarget(),n.dropTargetOptions=e,XM(t)?n.dropTargetRef=t:n.dropTargetNode=t,n.reconnect()}})),nz(this,"handlerId",null),nz(this,"dropTargetRef",null),nz(this,"dropTargetNode",void 0),nz(this,"dropTargetOptionsInternal",null),nz(this,"unsubscribeDropTarget",void 0),nz(this,"lastConnectedHandlerId",null),nz(this,"lastConnectedDropTarget",null),nz(this,"lastConnectedDropTargetOptions",null),nz(this,"backend",void 0),this.backend=e}var e,n,r;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!ZM(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}}])&&ez(e.prototype,n),r&&ez(e,r),t}();var az="undefined"!=typeof window?t.useLayoutEffect:t.useEffect;function oz(t){return(oz="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function iz(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function lz(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var cz=function(){function t(e,n,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),lz(this,"spec",void 0),lz(this,"monitor",void 0),lz(this,"connector",void 0),this.spec=e,this.monitor=n,this.connector=r}var e,n,r;return e=t,(n=[{key:"beginDrag",value:function(){var t,e=this.spec,n=this.monitor;return null!==(t="object"===oz(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,r=this.monitor,a=n.isDragging;return a?a(r):e===t.getSourceId()}},{key:"endDrag",value:function(){var t=this.spec,e=this.monitor,n=this.connector,r=t.end;r&&r(e.getItem(),e),n.reconnect()}}])&&iz(e.prototype,n),r&&iz(e,r),t}();function sz(){var e=t.useContext(_D).dragDropManager;return FD(null!=e,"Expected drag drop context"),e}function uz(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 r,a,o=[],i=!0,l=!1;try{for(n=n.call(t);!(i=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);i=!0);}catch(t){l=!0,a=t}finally{try{i||null==n.return||n.return()}finally{if(l)throw a}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return dz(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 dz(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 dz(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function pz(e,n,r){var a=sz(),o=function(e,n,r){var a=t.useMemo((function(){return new cz(e,n,r)}),[n,r]);return t.useEffect((function(){a.spec=e}),[e]),a}(e,n,r),i=function(e){return t.useMemo((function(){var t=e.type;return FD(null!=t,"spec.type must be defined"),t}),[e])}(e);az((function(){if(null!=i){var t=uz(function(t,e,n){var r=n.getRegistry(),a=r.addSource(t,e);return[a,function(){return r.removeSource(a)}]}(i,o,a),2),e=t[0],l=t[1];return n.receiveHandlerId(e),r.receiveHandlerId(e),l}}),[a,n,r,o,i])}function fz(t){return function(t){if(Array.isArray(t))return mz(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 mz(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 mz(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 mz(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function hz(e,n){var r=fz(n||[]);return null==n&&"function"!=typeof e&&r.push(e),t.useMemo((function(){return"function"==typeof e?e():e}),r)}var gz=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 r,a,o;if(Array.isArray(e)){if((r=e.length)!=n.length)return!1;for(a=r;0!=a--;)if(!t(e[a],n[a]))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((r=(o=Object.keys(e)).length)!==Object.keys(n).length)return!1;for(a=r;0!=a--;)if(!Object.prototype.hasOwnProperty.call(n,o[a]))return!1;for(a=r;0!=a--;){var i=o[a];if(!t(e[i],n[i]))return!1}return!0}return e!=e&&n!=n};function bz(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 r,a,o=[],i=!0,l=!1;try{for(n=n.call(t);!(i=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);i=!0);}catch(t){l=!0,a=t}finally{try{i||null==n.return||n.return()}finally{if(l)throw a}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return vz(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 vz(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 vz(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function yz(e,n,r){var a=bz(t.useState((function(){return n(e)})),2),o=a[0],i=a[1],l=t.useCallback((function(){var t=n(e);gz(o,t)||(i(t),r&&r())}),[o,e,r]);return az(l),[o,l]}function xz(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 r,a,o=[],i=!0,l=!1;try{for(n=n.call(t);!(i=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);i=!0);}catch(t){l=!0,a=t}finally{try{i||null==n.return||n.return()}finally{if(l)throw a}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return wz(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 wz(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 wz(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function kz(t,e,n){return function(t,e,n){var r=xz(yz(t,e,n),2),a=r[0],o=r[1];return az((function(){var e=t.getHandlerId();if(null!=e)return t.subscribeToStateChange(o,{handlerIds:[e]})}),[t,o]),a}(e,t||function(){return{}},(function(){return n.reconnect()}))}function Cz(e){return t.useMemo((function(){return e.hooks.dragSource()}),[e])}function Ez(e){return t.useMemo((function(){return e.hooks.dragPreview()}),[e])}function Oz(e,n){var r=hz(e,n);FD(!r.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 a,o=(a=sz(),t.useMemo((function(){return new VM(a)}),[a])),i=function(e,n){var r=sz(),a=t.useMemo((function(){return new tz(r.getBackend())}),[r]);return az((function(){return a.dragSourceOptions=e||null,a.reconnect(),function(){return a.disconnectDragSource()}}),[a,e]),az((function(){return a.dragPreviewOptions=n||null,a.reconnect(),function(){return a.disconnectDragPreview()}}),[a,n]),a}(r.options,r.previewOptions);return pz(r,o,i),[kz(r.collect,o,i),Cz(i),Ez(i)]}function Sz(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}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 Nz=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,"spec",void 0),Pz(this,"monitor",void 0),this.spec=e,this.monitor=n}var e,n,r;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),r&&Sz(e,r),t}();function jz(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 r,a,o=[],i=!0,l=!1;try{for(n=n.call(t);!(i=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);i=!0);}catch(t){l=!0,a=t}finally{try{i||null==n.return||n.return()}finally{if(l)throw a}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Tz(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 Tz(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 Tz(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Iz(e,n,r){var a=sz(),o=function(e,n){var r=t.useMemo((function(){return new Nz(e,n)}),[n]);return t.useEffect((function(){r.spec=e}),[e]),r}(e,n),i=function(e){var n=e.accept;return t.useMemo((function(){return FD(null!=e.accept,"accept must be defined"),Array.isArray(n)?n:[n]}),[n])}(e);az((function(){var t=jz(function(t,e,n){var r=n.getRegistry(),a=r.addTarget(t,e);return[a,function(){return r.removeTarget(a)}]}(i,o,a),2),e=t[0],l=t[1];return n.receiveHandlerId(e),r.receiveHandlerId(e),l}),[a,n,o,r,i.map((function(t){return t.toString()})).join("|")])}function Dz(e){return t.useMemo((function(){return e.hooks.dropTarget()}),[e])}function Rz(e,n){var r,a=hz(e,n),o=(r=sz(),t.useMemo((function(){return new UM(r)}),[r])),i=function(e){var n=sz(),r=t.useMemo((function(){return new rz(n.getBackend())}),[n]);return az((function(){return r.dropTargetOptions=e||null,r.reconnect(),function(){return r.disconnectDropTarget()}}),[e]),r}(a.options);return Iz(a,o,i),[kz(a.collect,o,i),Dz(i)]}y(".drop-over-downward td{border-bottom:2px dashed #5860f8!important}.drop-over-upward td{border-top:2px dashed #5860f8!important}");const{Option:Mz}=Vd,zz=d.default.createContext(null),Az=({open:e,index:r,moveRow:a,className:o,style:i,...l})=>{const[c]=Mk.useForm(),s=t.useRef(null),[{isOver:u,dropClassName:d},p]=Rz({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=>{a(t.index,r)}}),[,f]=Oz({type:"DraggableBodyRow",item:{index:r},collect:t=>({isDragging:t.isDragging()})});return e&&p(f(s)),n.jsx(Mk,Object.assign({size:"small",component:!1,form:c},{children:n.jsx(zz.Provider,Object.assign({value:c},{children:n.jsx("tr",Object.assign({ref:s,className:`${o}${u?d:""}`,style:{cursor:e?"move":"auto",...i}},l),void 0)}),void 0)}),void 0)},Lz=({columns:e,record:r,dataIndex:a,title:o,editable:i,inputType:l,valueType:c,valueEnum:s,recordSelectField:u,controlRender:d,formChange:f,remoteConfig:m,children:h,formItemProps:b,handleSave:v,...y})=>{const x=t.useContext(zz),[w,k]=t.useState(!1),[C,E]=t.useState({}),O=(t,e,n,r)=>{r&&(k(!0),r(t,n).then((t=>{k(!1),e&&E({[e]:t})})))};if(i){let t=r[a];"DatePicker"!==c&&"DateTimePicker"!==c||t&&(t=g.default(t)),"status"===a&&void 0!==t&&(r[a]=String(t)),setTimeout((()=>{x.setFieldsValue({[a]:t})}))}const S=(t,e)=>{let o=null;const i=(t,e)=>{let n="";const r=function(t){for(let e of t)if(e)if(wI({data:e,type:"String"}))n+=e;else{const t=e.props.children;wI({data:t,type:"Object"})&&r([t]),wI({data:t,type:"Array"})&&r(t),wI({data:t,type:"String"})&&(n+=t)}};return r([e.children]),n.toLowerCase().indexOf(t.toLowerCase())>=0},c=t=>{if(p.default.isArray(t))return t.map(((t,e)=>n.jsx(Mz,Object.assign({value:t.value},{children:t.label}),e)))};switch(t){case"RecordSelect":o=n.jsx(Vd,Object.assign({allowClear:!0,showSearch:!0,dropdownMatchSelectWidth:!1,placeholder:e,onChange:P,optionFilterProp:"children",filterOption:i},{children:c(r[u])}),void 0);break;case"Select":o=n.jsx(Vd,Object.assign({dropdownMatchSelectWidth:!1,onChange:P,placeholder:e},{children:c(s)}),void 0);break;case"DatePicker":o=n.jsx(Mw,{onChange:P,placeholder:e},void 0);break;case"DateTimePicker":o=n.jsx(Mw,{onChange:P,placeholder:e,showTime:!0},void 0);break;case"AutoComplete":o=n.jsx(Vd,Object.assign({allowClear:!0,showSearch:!0,dropdownMatchSelectWidth:!1,placeholder:e,onChange:P,optionFilterProp:"children",filterOption:i},{children:c(s)}),void 0);break;case"RemoteSearch":let t=s;C[a]&&(t=C[a]),o=n.jsx(Vd,Object.assign({mode:m.remoteMode,placeholder:e,notFoundContent:w?n.jsx(eC,{size:"small"},void 0):null,dropdownMatchSelectWidth:!1,filterOption:!1,allowClear:!0,showSearch:!0,onChange:P,onFocus:()=>O(void 0,a,r,m.remoteApi),onSearch:t=>O(t,a,r,m.remoteApi)},{children:a&&c(t)}),void 0);break;default:o=n.jsx(cx,{onPressEnter:P,onBlur:P,placeholder:e,type:l||"text"},void 0)}return o},P=async()=>{try{const t=await x.validateFields();let n={...r,...t};const a={DateTimePicker:"YYYY-MM-DD HH:mm:ss",DatePicker:"YYYY-MM-DD"};for(let t of e)t.valueType&&Object.keys(a).includes(t.valueType)&&"string"==typeof t.dataIndex&&n[t.dataIndex]&&(n[t.dataIndex]=g.default(n[t.dataIndex]).format(a[t.valueType]));f&&(n=await f(n)||n),v(n)}catch(t){console.log("保存表单字段失败:",t)}};let N=h;return i?N=n.jsx(Mk.Item,Object.assign({style:{margin:0},name:a,rules:b?b.rules:void 0},{children:S(c,o)}),void 0):c&&(!s||"Select"!==c&&"AutoComplete"!==c||(N=kI(s,r[a])),r[u]&&"RecordSelect"===c&&(N=kI(r[u],r[a]))),d&&(N=d(r,N)),n.jsx("td",Object.assign({},y,{title:r&&r[a]},{children:N}),void 0)};function _z(t){var e=null;return function(){return null==e&&(e=t()),e}}function Fz(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}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=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),Vz(this,"entered",[]),Vz(this,"isNodeInDocument",void 0),this.isNodeInDocument=e}var e,n,r;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,r=function(t){return n.add(t)};t.forEach(r),e.forEach(r);var a=[];return n.forEach((function(t){return a.push(t)})),a}(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,r=this.entered.length;return this.entered=(e=this.entered.filter(this.isNodeInDocument),n=t,e.filter((function(t){return t!==n}))),r>0&&0===this.entered.length}},{key:"reset",value:function(){this.entered=[]}}])&&Fz(e.prototype,n),r&&Fz(e,r),t}(),Hz=_z((function(){return/firefox/i.test(navigator.userAgent)})),Bz=_z((function(){return Boolean(window.safari)}));function Uz(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Wz(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Yz=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),Wz(this,"xs",void 0),Wz(this,"ys",void 0),Wz(this,"c1s",void 0),Wz(this,"c2s",void 0),Wz(this,"c3s",void 0);for(var r=e.length,a=[],o=0;o<r;o++)a.push(o);a.sort((function(t,n){return e[t]<e[n]?-1:1}));for(var i,l,c=[],s=[],u=0;u<r-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,r;return e=t,(n=[{key:"interpolate",value:function(t){var e=this.xs,n=this.ys,r=this.c1s,a=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]+r[i]*d+a[i]*p+o[i]*d*p}}])&&Uz(e.prototype,n),r&&Uz(e,r),t}();function $z(t){var e=1===t.nodeType?t:t.parentElement;if(!e)return null;var n=e.getBoundingClientRect(),r=n.top;return{x:n.left,y:r}}function qz(t){return{x:t.clientX,y:t.clientY}}function Gz(t,e,n,r,a){var o,i,l="IMG"===(o=e).nodeName&&(Hz()||!(null!==(i=document.documentElement)&&void 0!==i&&i.contains(o))),c=$z(l?t:e),s={x:n.x-c.x,y:n.y-c.y},u=t.offsetWidth,d=t.offsetHeight,p=r.anchorX,f=r.anchorY,m=function(t,e,n,r){var a=t?e.width:n,o=t?e.height:r;return Bz()&&t&&(o/=window.devicePixelRatio,a/=window.devicePixelRatio),{dragPreviewWidth:a,dragPreviewHeight:o}}(l,e,u,d),h=m.dragPreviewWidth,g=m.dragPreviewHeight,b=a.offsetX,v=a.offsetY,y=0===v||v;return{x:0===b||b?b:new Yz([0,.5,1],[s.x,s.x/u*h,s.x+h-u]).interpolate(p),y:y?v:function(){var t=new Yz([0,.5,1],[s.y,s.y/d*g,s.y+g-d]).interpolate(f);return Bz()&&l&&(t+=(window.devicePixelRatio-1)*g),t}()}}var Xz,Zz="__NATIVE_FILE__",Qz="__NATIVE_URL__",Jz="__NATIVE_TEXT__",tA="__NATIVE_HTML__",eA=Object.freeze({__proto__:null,FILE:Zz,URL:Qz,TEXT:Jz,HTML:tA});function nA(t,e,n){var r=e.reduce((function(e,n){return e||t.getData(n)}),"");return null!=r?r:n}function rA(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var aA=(rA(Xz={},Zz,{exposeProperties:{files:function(t){return Array.prototype.slice.call(t.files)},items:function(t){return t.items},dataTransfer:function(t){return t}},matchesTypes:["Files"]}),rA(Xz,tA,{exposeProperties:{html:function(t,e){return nA(t,e,"")},dataTransfer:function(t){return t}},matchesTypes:["Html","text/html"]}),rA(Xz,Qz,{exposeProperties:{urls:function(t,e){return nA(t,e,"").split("\n")},dataTransfer:function(t){return t}},matchesTypes:["Url","text/uri-list"]}),rA(Xz,Jz,{exposeProperties:{text:function(t,e){return nA(t,e,"")},dataTransfer:function(t){return t}},matchesTypes:["Text","text/plain"]}),Xz);function oA(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function iA(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var lA=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),iA(this,"item",void 0),iA(this,"config",void 0),this.config=e,this.item={},this.initializeExposedProperties()}var e,n,r;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(r){n[r]={value:e.config.exposeProperties[r](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(){}}])&&oA(e.prototype,n),r&&oA(e,r),t}();function cA(t){if(!t)return null;var e=Array.prototype.slice.call(t.types||[]);return Object.keys(aA).filter((function(t){return aA[t].matchesTypes.some((function(t){return e.indexOf(t)>-1}))}))[0]||null}function sA(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function uA(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var dA=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),uA(this,"ownerDocument",null),uA(this,"globalContext",void 0),uA(this,"optionsArgs",void 0),this.globalContext=e,this.optionsArgs=n}var e,n,r;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}}])&&sA(e.prototype,n),r&&sA(e,r),t}();function pA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function fA(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?pA(Object(n),!0).forEach((function(e){hA(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):pA(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function mA(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function hA(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var gA=function(){function t(e,n,r){var a=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),hA(this,"options",void 0),hA(this,"actions",void 0),hA(this,"monitor",void 0),hA(this,"registry",void 0),hA(this,"enterLeaveCounter",void 0),hA(this,"sourcePreviewNodes",new Map),hA(this,"sourcePreviewNodeOptions",new Map),hA(this,"sourceNodes",new Map),hA(this,"sourceNodeOptions",new Map),hA(this,"dragStartSourceIds",null),hA(this,"dropTargetIds",[]),hA(this,"dragEnterTargetIds",[]),hA(this,"currentNativeSource",null),hA(this,"currentNativeHandle",null),hA(this,"currentDragSourceNode",null),hA(this,"altKeyPressed",!1),hA(this,"mouseMoveTimeoutTimer",null),hA(this,"asyncEndDragFrameId",null),hA(this,"dragOverTargetIds",null),hA(this,"lastClientOffset",null),hA(this,"hoverRafId",null),hA(this,"getSourceClientOffset",(function(t){var e=a.sourceNodes.get(t);return e&&$z(e)||null})),hA(this,"endDragNativeItem",(function(){a.isDraggingNativeItem()&&(a.actions.endDrag(),a.currentNativeHandle&&a.registry.removeSource(a.currentNativeHandle),a.currentNativeHandle=null,a.currentNativeSource=null)})),hA(this,"isNodeInDocument",(function(t){return Boolean(t&&a.document&&a.document.body&&a.document.body.contains(t))})),hA(this,"endDragIfSourceWasRemovedFromDOM",(function(){var t=a.currentDragSourceNode;null==t||a.isNodeInDocument(t)||a.clearCurrentDragSourceNode()&&a.monitor.isDragging()&&a.actions.endDrag()})),hA(this,"handleTopDragStartCapture",(function(){a.clearCurrentDragSourceNode(),a.dragStartSourceIds=[]})),hA(this,"handleTopDragStart",(function(t){if(!t.defaultPrevented){var e=a.dragStartSourceIds;a.dragStartSourceIds=null;var n=qz(t);a.monitor.isDragging()&&a.actions.endDrag(),a.actions.beginDrag(e||[],{publishSource:!1,getSourceClientOffset:a.getSourceClientOffset,clientOffset:n});var r=t.dataTransfer,o=cA(r);if(a.monitor.isDragging()){if(r&&"function"==typeof r.setDragImage){var i=a.monitor.getSourceId(),l=a.sourceNodes.get(i),c=a.sourcePreviewNodes.get(i)||l;if(c){var s=a.getCurrentSourcePreviewNodeOptions(),u=Gz(l,c,n,{anchorX:s.anchorX,anchorY:s.anchorY},{offsetX:s.offsetX,offsetY:s.offsetY});r.setDragImage(c,u.x,u.y)}}try{null==r||r.setData("application/json",{})}catch(t){}a.setCurrentDragSourceNode(t.target),a.getCurrentSourcePreviewNodeOptions().captureDraggingState?a.actions.publishDragSource():setTimeout((function(){return a.actions.publishDragSource()}),0)}else if(o)a.beginDragNativeItem(o);else{if(r&&!r.types&&(t.target&&!t.target.hasAttribute||!t.target.hasAttribute("draggable")))return;t.preventDefault()}}})),hA(this,"handleTopDragEndCapture",(function(){a.clearCurrentDragSourceNode()&&a.monitor.isDragging()&&a.actions.endDrag()})),hA(this,"handleTopDragEnterCapture",(function(t){if(a.dragEnterTargetIds=[],a.enterLeaveCounter.enter(t.target)&&!a.monitor.isDragging()){var e=t.dataTransfer,n=cA(e);n&&a.beginDragNativeItem(n,e)}})),hA(this,"handleTopDragEnter",(function(t){var e=a.dragEnterTargetIds;(a.dragEnterTargetIds=[],a.monitor.isDragging())&&(a.altKeyPressed=t.altKey,e.length>0&&a.actions.hover(e,{clientOffset:qz(t)}),e.some((function(t){return a.monitor.canDropOnTarget(t)}))&&(t.preventDefault(),t.dataTransfer&&(t.dataTransfer.dropEffect=a.getCurrentDropEffect())))})),hA(this,"handleTopDragOverCapture",(function(){a.dragOverTargetIds=[]})),hA(this,"handleTopDragOver",(function(t){var e=a.dragOverTargetIds;if(a.dragOverTargetIds=[],!a.monitor.isDragging())return t.preventDefault(),void(t.dataTransfer&&(t.dataTransfer.dropEffect="none"));a.altKeyPressed=t.altKey,a.lastClientOffset=qz(t),null===a.hoverRafId&&"undefined"!=typeof requestAnimationFrame&&(a.hoverRafId=requestAnimationFrame((function(){a.monitor.isDragging()&&a.actions.hover(e||[],{clientOffset:a.lastClientOffset}),a.hoverRafId=null}))),(e||[]).some((function(t){return a.monitor.canDropOnTarget(t)}))?(t.preventDefault(),t.dataTransfer&&(t.dataTransfer.dropEffect=a.getCurrentDropEffect())):a.isDraggingNativeItem()?t.preventDefault():(t.preventDefault(),t.dataTransfer&&(t.dataTransfer.dropEffect="none"))})),hA(this,"handleTopDragLeaveCapture",(function(t){a.isDraggingNativeItem()&&t.preventDefault(),a.enterLeaveCounter.leave(t.target)&&a.isDraggingNativeItem()&&setTimeout((function(){return a.endDragNativeItem()}),0)})),hA(this,"handleTopDropCapture",(function(t){var e;(a.dropTargetIds=[],a.isDraggingNativeItem())?(t.preventDefault(),null===(e=a.currentNativeSource)||void 0===e||e.loadDataTransfer(t.dataTransfer)):cA(t.dataTransfer)&&t.preventDefault();a.enterLeaveCounter.reset()})),hA(this,"handleTopDrop",(function(t){var e=a.dropTargetIds;a.dropTargetIds=[],a.actions.hover(e,{clientOffset:qz(t)}),a.actions.drop({dropEffect:a.getCurrentDropEffect()}),a.isDraggingNativeItem()?a.endDragNativeItem():a.monitor.isDragging()&&a.actions.endDrag()})),hA(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 dA(n,r),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new Kz(this.isNodeInDocument)}var e,n,r;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 r=this;return this.sourcePreviewNodeOptions.set(t,n),this.sourcePreviewNodes.set(t,e),function(){r.sourcePreviewNodes.delete(t),r.sourcePreviewNodeOptions.delete(t)}}},{key:"connectDragSource",value:function(t,e,n){var r=this;this.sourceNodes.set(t,e),this.sourceNodeOptions.set(t,n);var a=function(e){return r.handleDragStart(e,t)},o=function(t){return r.handleSelectStart(t)};return e.setAttribute("draggable","true"),e.addEventListener("dragstart",a),e.addEventListener("selectstart",o),function(){r.sourceNodes.delete(t),r.sourceNodeOptions.delete(t),e.removeEventListener("dragstart",a),e.removeEventListener("selectstart",o),e.setAttribute("draggable","false")}}},{key:"connectDropTarget",value:function(t,e){var n=this,r=function(e){return n.handleDragEnter(e,t)},a=function(e){return n.handleDragOver(e,t)},o=function(e){return n.handleDrop(e,t)};return e.addEventListener("dragenter",r),e.addEventListener("dragover",a),e.addEventListener("drop",o),function(){e.removeEventListener("dragenter",r),e.removeEventListener("dragover",a),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 fA({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 fA({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(t)||{})}},{key:"isDraggingNativeItem",value:function(){var t=this.monitor.getItemType();return Object.keys(eA).some((function(e){return eA[e]===t}))}},{key:"beginDragNativeItem",value:function(t,e){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(t,e){var n=new lA(aA[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)}}])&&mA(e.prototype,n),r&&mA(e,r),t}();const bA=function(t,e,n){return new gA(t,e,n)},vA=t=>n.jsx(MM,Object.assign({backend:bA,context:window},{children:t.children}),void 0);y(".ant-table-wrapper .ant-table-thead>tr>th{font-weight:700}.ant-table-wrapper .ant-table-tbody>tr>td,.ant-table-wrapper .ant-table-thead>tr>td,.ant-table-wrapper .ant-table-thead>tr>th{padding:6px 8px}.ant-table-wrapper .ant-table-tbody>tr>td.ant-table-cell .ant-form-item .ant-form-item-control-input{min-height:auto}.ant-table-wrapper .ant-table-tbody .btn-operate{width:26px;height:26px}.ant-table-wrapper .ant-table-pagination.ant-pagination{margin-top:10px;margin-bottom:10px;padding-top:10px;padding-bottom:10px}.ant-table-wrapper .react-resizable{position:relative;background-clip:padding-box}.ant-table-wrapper .react-resizable-handle{position:absolute;right:-5px;bottom:0;z-index:1;width:10px;height:100%;cursor:col-resize}");var yA=t.forwardRef(((e,r)=>{const a=t.useMemo((()=>{const t=e.extra||{};return{tableConfig:t.tableConfig,rowType:t.rowType,scroll:t.scroll,apiMethod:t.apiMethod,columns:t.columns||[],data:t.data,controlled:t.controlled,drag:t.drag,getTableSuccessData:t.getTableSuccessData,onSelect:t.onSelect,paginationConfig:t.paginationConfig,getCheckboxProps:t.getCheckboxProps}}),[e.extra]),o=t.useRef();let i=t.useRef(!0);const l=t.useRef({position:["bottomCenter"],size:"small",current:1,total:0,pages:0,pageSize:10,showSizeChanger:!0,orderByInfo:void 0}),c=t.useRef([]),s=t.useRef([]),[u,d]=t.useState(a.columns),[f,m]=t.useState(!1),[h,g]=t.useState([]),[b,v]=C.useSetState({selectRowIds:[],selectRowArray:[]}),[y,x]=t.useState({x:void 0,y:330}),w=t.useMemo((()=>a.tableConfig&&a.tableConfig.rowKey?a.tableConfig.rowKey:"id"),[a.tableConfig]),k=t.useCallback((async t=>{let e=!0;m(!0),t&&(void 0!==t.updateSelected&&(e=t.updateSelected,delete t.updateSelected),"not-reset"===t.pagination&&delete t.pagination,o.current={...o.current,...t});try{const n={...o.current};for(let t in l.current){const e=l.current[t];"orderByInfo"===t&&(n.orderByInfo=e),"current"===t&&(n.page=e),"pageSize"===t&&(n.size=n.size||e)}if(t&&t.current&&(n.page=t.current,l.current.current=t.current),a.apiMethod){delete n.current;const t=await a.apiMethod(p.default.pickBy(n,p.default.identity));let r=[];p.default.isArray(t.data.content)&&(!1!==a.paginationConfig?i.current=!0:i.current=!1,r=t.data.content,l.current.total=t.data.total,l.current.pages=t.data.pages),p.default.isArray(t.data)&&(i.current=!1,r=t.data),e&&v((t=>{let e=[...t.selectRowIds],n=[...t.selectRowArray];const a=r=>{if(t.selectRowIds.length)for(let o of r){for(let r of t.selectRowIds)o[w]===r&&(e.push(r),n.push(o));o.children&&a(o.children)}};return a(r),t.selectRowIds=p.default.unionBy(e),t.selectRowArray=p.default.unionBy(n,w),t})),g(r),a.getTableSuccessData&&a.getTableSuccessData(t)}}catch(t){}m(!1)}),[a,w,v]),E=t.useMemo((()=>({fixed:!0,type:a.rowType,selectedRowKeys:b.selectRowIds,getCheckboxProps:a.getCheckboxProps,onSelectAll:(t,e,n)=>{v((e=>{let r=[...e.selectRowIds],o=[...e.selectRowArray];return t?(r=p.default.uniq([...r,...n.map((t=>t[w]))]),o=p.default.uniqBy([...o,...n],w)):(r=r.filter((t=>!n.some((e=>e[w]===t)))),o=o.filter((t=>!n.some((e=>e[w]===t[w]))))),a.onSelect&&a.onSelect(o,r),e.selectRowIds=r,e.selectRowArray=o,e}))},onSelect:(t,e)=>{v((n=>{let r=[...n.selectRowIds],o=[...n.selectRowArray];return"checkbox"===a.rowType&&(e?(r.push(t[w]),o.push(t)):(r=r.filter((e=>e!==t[w])),o=o.filter((e=>e[w]!==t[w])))),"radio"===a.rowType&&e&&(r=[t[w]],o=[t]),a.onSelect&&a.onSelect(o,r),n.selectRowIds=r,n.selectRowArray=o,n}))}})),[a,w,v,b.selectRowIds]),O=t.useCallback((t=>n.jsx(Lz,Object.assign({},t,{columns:u}),void 0)),[u]),S=t=>(e,{size:n})=>{d((e=>{const r=[...e];return r[t]={...r[t],width:n.width},c.current=r,r}))},P=t.useCallback((t=>{const e=!1===a.controlled?s.current:[...h],n=e.findIndex((e=>t[w]===e[w])),r=e[n];e.splice(n,1,{...r,...t}),!1===a.controlled?s.current=e:g(e)}),[w,h,a.controlled]),N=t.useCallback((async(t,e)=>{const n=h[t],r=AI(h,{$splice:[[t,1],[e,0,n]]});m(!0);try{if(a.drag){const n=JSON.parse(JSON.stringify(r)),o=JSON.parse(JSON.stringify(h)),i=[t,e].sort();!1!==await a.drag.moveRow(t,e,n,o,n.slice(i[0],i[1]+1))&&g(n)}}finally{m(!1)}}),[a.drag,h]);return t.useEffect((()=>{(async()=>{let t=[...a.columns];t.some((t=>"sequence"===t.dataIndex))||t.unshift({width:55,fixed:"left",title:"序号",dataIndex:"sequence",render:(t,e,n)=>{const r=l.current;return Object.keys(r).length?((r.current||0)-1)*(r.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 r={...n,onHeaderCell:t=>({width:t.width,onResize:S(e)}),onCell:(t,e)=>({record:t,dataIndex:n.dataIndex,title:n.title,editable:"function"==typeof n.editable?n.editable(t,e):n.editable,inputType:n.inputType,valueType:n.valueType,valueEnum:n.valueEnum,recordSelectField:n.recordSelectField,controlRender:n.controlRender,formChange:n.formChange,remoteConfig:n.remoteConfig,formItemProps:n.formItemProps,handleSave:P})},a=c.current.find((t=>t.dataIndex===n.dataIndex&&t.title===n.title));a&&(r.width=a.width),t[e]=r}d(t)})()}),[a.columns,P]),t.useEffect((()=>{v((t=>{let e=[];const n=t=>{for(let r of t){for(let t of b.selectRowIds)r[w]===t&&e.push(r);r.children&&n(r.children)}};return b.selectRowIds.length&&(n(h),e=p.default.unionBy([...t.selectRowArray,...e],w)),t.selectRowArray=e,t}))}),[w,h,v,b.selectRowIds]),t.useEffect((()=>{p.default.isArray(a.data)&&g(a.data||[])}),[a.data]),t.useEffect((()=>{s.current=JSON.parse(JSON.stringify(h))}),[h]),t.useEffect((()=>{const t=document.getElementById("slider-menu"),e=document.getElementById("router-render");if(void 0!==a.scroll?.x||void 0!==a.scroll?.y)x((t=>({...t,...a.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)))}}),[a.scroll]),t.useEffect((()=>{a.paginationConfig&&(l.current={...l.current,...a.paginationConfig})}),[a.paginationConfig]),t.useImperativeHandle(r,(()=>({setTableLoading:t=>{m(t)},getPages:()=>({...l.current}),getTableList:async(t,e)=>{t&&("not-reset"===t.pagination?t.current=l.current.current:void 0===t.current&&(t.current=1),t.clearSelectIds&&(delete t.clearSelectIds,v((t=>(t.selectRowArray=[],t.selectRowIds=[],t))))),await k(t),e&&e()},setRowSelected:(t,e)=>{let n=t;!0===e&&(n=Array.from(new Set([...b.selectRowIds,...t]))),v({selectRowIds:n})},getSelectIds:()=>b.selectRowIds,clearSelectIds:()=>{v({selectRowIds:[],selectRowArray:[]})},getSelectRowsArray:()=>b.selectRowArray,removeSelectIds:t=>{v({selectRowIds:b.selectRowIds.filter((e=>{let n=!0;for(let r of t)if(r===e){n=!1;break}return n})),selectRowArray:b.selectRowArray.filter((e=>{let n=!0;for(let r of t)if(r===e[w]){n=!1;break}return n}))})},getStaticDataList:()=>!1===a.controlled?[...s.current]:[...h],setStaticDataList:(t,e)=>{if("[object Object]"===Object.prototype.toString.call(t)){let e=t;g(h.map((n=>(n[w]===e[w]&&(n=t),n))))}"[object Array]"===Object.prototype.toString.call(t)&&g(t),e&&e()}}))),n.jsx(II,{children:n.jsx(vA,{children:n.jsx(FP,Object.assign({rowKey:"id",rowClassName:"editable-row",loading:f,bordered:!0,components:{header:{cell:AD},body:{row:Az,cell:O}},onRow:(t,e)=>({index:e,moveRow:N,open:a.drag&&a.drag.open}),columns:u,dataSource:h,rowSelection:a.rowType?E:void 0,pagination:!(!p.default.isFunction(a.apiMethod)||!i.current)&&{size:"small",position:["bottomCenter"],showTotal:t=>`共${t}条`,showSizeChanger:!0,showQuickJumper:!0,...l.current},onChange:(t,e,n)=>{const{order:r}=n;t.orderByInfo=void 0,r&&(t.orderByInfo=`${n.field}:${"ascend"===r?1:-1}`),(t=>{!p.default.isEqual(t,l.current)&&i.current&&(l.current={...l.current,...t},k())})(t)},scroll:y},a.tableConfig),void 0)},void 0)},void 0)}));y("");const xA=t=>{const e={...t};return delete e.outerHeight,n.jsx(Ey,Object.assign({className:"empty-wrap",style:{minHeight:t&&t.outerHeight?t.outerHeight:400},align:"middle",justify:"center"},{children:n.jsx(br,Object.assign({description:"暂无数据"},e),void 0)}),void 0)};y(".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:wA,Paragraph:kA}=uT;var CA=t.forwardRef((function(e,r){const a=t.useRef(null),o=t.useRef(),[i,l]=C.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=[],r=[];"all"===t&&o.current.clearSelectIds(),"odd"===t&&e&&(n=[e[c]],r=i.selectedRows.filter((t=>t[c]!==e[c])),o.current.removeSelectIds(n)),l({selectedRows:r})}},d=t.useCallback((async()=>{if(a.current&&o.current){let t=await a.current.formSubmit();if(t&&Object.keys(t).length){for(let e in t){const n="YYYY-MM-DD HH:mm:ss";g.default(t[e],n,!0).isValid()&&(t[e]=g.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(a.current){let t=[];const n=e.searchNoResetFiled||[];if(e.searchFormList)for(let r of e.searchFormList){if(r.unionConfig)for(let e of r.unionConfig.unionItems)e.name&&!n.includes(e.name)&&t.push(e.name);r.name&&!n.includes(r.name)&&t.push(r.name)}a.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(r,(()=>({...a.current,...o.current,setSavaLoading:t=>{l({saveLoading:t})}}))),n.jsxs(gI,Object.assign({className:"from-table-modal",width:e.width,visible:e.visible,title:e.title||"弹窗",onCancel:e.onCancel,forceRender:!0,maskClosable:!1,footer:null},{children:[e.topExtra,e.searchFormList?n.jsx(zI,{ref:a,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(XE,Object.assign({size:10},{children:[n.jsx(Jp,Object.assign({type:"primary",onClick:()=>{d()}},{children:"查询"}),void 0),n.jsx(Jp,Object.assign({className:"btn-reset",onClick:p},{children:"重置"}),void 0)]}),void 0):n.jsx(n.Fragment,{},void 0)},void 0):null,n.jsxs(Ey,Object.assign({},e.rowProps,{children:[e.leftSlot?n.jsx(Py,Object.assign({},e.leftSlot.colProps,{children:e.leftSlot.jsx}),void 0):null,n.jsx(Py,Object.assign({},e.colProps,{children:n.jsxs(Ey,Object.assign({gutter:10},{children:[n.jsx(Py,Object.assign({span:e.openSelected&&e.openSelected.visible?16:24},{children:n.jsx(yA,{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 r={};const a=t.find((t=>t[c]===n));if(r[c]=n,e.openSelected&&e.openSelected.fileName&&(r[e.openSelected.fileName]=n),a&&(r=a),e.openSelected){const t=e.openSelected.fileName,a=e.openSelected.defaultValues;if(t&&a){const e=a.find((t=>t[c]===n));e&&(r[t]=e[t])}}return r}))})})(t,n),e.onSelect&&e.onSelect(t,n)},getTableSuccessData:e.getTableSuccessData,tableConfig:e.tableColumnsList.tableConfig,scroll:{x:"max-content"}}},void 0)}),void 0),e.openSelected&&e.openSelected.visible?n.jsx(Py,Object.assign({span:8},{children:n.jsx(jy,Object.assign({title:"已选列表",size:"small",bodyStyle:{height:e.openSelected.height||330,overflowY:"auto"},extra:n.jsx(wA,Object.assign({onClick:()=>u("all")},{children:"全部移除"}),void 0)},{children:i.selectedRows.length?i.selectedRows.map((t=>{const r=t[c],a=t[e.openSelected?.fileName];return n.jsxs(Ey,Object.assign({gutter:12},{children:[n.jsx(Py,Object.assign({span:11,title:a},{children:n.jsx(kA,Object.assign({ellipsis:!0},{children:a}),void 0)}),void 0),n.jsx(Py,Object.assign({span:9,title:r},{children:n.jsx(kA,Object.assign({ellipsis:!0},{children:r}),void 0)}),void 0),n.jsx(Py,Object.assign({span:4},{children:n.jsx(wA,Object.assign({onClick:()=>u("odd",t)},{children:"移除"}),void 0)}),void 0)]}),r)})):n.jsx(xA,{outerHeight:200},void 0)}),void 0)}),void 0):null]}),void 0)}),void 0),e.rightSlot?n.jsx(Py,Object.assign({},e.rightSlot.colProps,{children:e.rightSlot.jsx}),void 0):null]}),void 0),n.jsx(Ey,Object.assign({className:"from-table-modal-foot",justify:"center"},{children:n.jsx(Py,{children:n.jsxs(XE,Object.assign({size:20},{children:[e.onCancel?n.jsx(Jp,Object.assign({onClick:()=>e.onCancel&&e.onCancel()},{children:"关闭"}),void 0):null,e.onConfirm?n.jsx(Jp,Object.assign({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}),Ei.warn(t,1.5)})))}},{children:"确定"}),void 0):null]}),void 0)},void 0)}),void 0)]}),void 0);var f})),EA={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"},OA=function(e,n){return t.createElement(Yo,ye(ye({},e),{},{ref:n,icon:EA}))};OA.displayName="LeftCircleFilled";var SA=t.forwardRef(OA),PA={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"},NA=function(e,n){return t.createElement(Yo,ye(ye({},e),{},{ref:n,icon:PA}))};NA.displayName="RightCircleFilled";var jA=t.forwardRef(NA);y(".quickly-form-modal .ant-modal-body{padding-top:15px}.quickly-form-modal .quickly-form-modal-foot{margin-top:20px}");y(".form-modal .ant-modal-body{padding-top:15px}.form-modal .ant-modal-body .modal-form-height{max-height:580px;padding-right:5px;overflow-x:hidden;overflow-y:auto}.form-modal .ant-modal-body .modal-form-height .generate-form.ant-form-horizontal.ant-form .ant-row.ant-form-item{margin-bottom:4px}.form-modal .form-modal-foot{margin-top:20px}");var TA=t.forwardRef(((e,r)=>{const a=t.useRef(),[o,i]=C.useSetState({loading:!1,saveLoading:!1,disabled:!1}),l=async()=>{let t=await(a.current?.formSubmit());if(t){if(t.endTime&&t.startTime&&g.default(t.endTime).isBefore(t.startTime))return void Ei.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";g.default(t[e],n,!0).isValid()&&(t[e]=g.default(t[e]).format(n))}if(e.manualParameterChange&&(t=e.manualParameterChange(t)),e.manualVerification&&!e.manualVerification(t))return console.warn("手动验证表单不通过"),void i({saveLoading:!1});t=p.default.omitBy(t,p.default.isNil),e.submitApi&&t?(e.id?(t.id=e.id,n=await e.submitApi(t,"put")):n=await e.submitApi(t,"post"),1===n.code&&(e.onConfirm&&e.onConfirm(n),Ei.success("操作成功",1.5),e.onCancel&&e.onCancel()),i({saveLoading:!1})):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(r,(()=>({setFormLoading:t=>{i({loading:t})},setFormSaveLoading:t=>{i({saveLoading:t})},setFormFields:t=>{a.current&&a.current.setFormFields(t)},getFormValues:t=>a.current?.getFormValues(t),setFormValues:t=>{a.current&&a.current.setFormValues(t)},excludeFormSubmitValues:async t=>{if(a.current){const n=e.formList.filter((e=>!t?.includes(e.name)));return await(a.current?.formSubmit(n.map((t=>t.name))))}return{}},getFormSubmitValues:async t=>a.current?await(a.current?.formSubmit(t)):{}}))),n.jsx(gI,Object.assign({className:"form-modal",width:e.width?e.width:600,visible:e.visible,title:e.title||"对话框",onCancel:e.onCancel,destroyOnClose:!0,maskClosable:!1,footer:null},{children:n.jsxs(eC,Object.assign({spinning:o.loading},{children:[n.jsxs("div",Object.assign({className:"modal-form-height"},{children:[e.topRender?e.topRender:null,n.jsx(zI,{ref:a,formConfig:{labelCol:{span:24},...e.formConfig},rowGridConfig:{gutter:[20,0]},colGirdConfig:e.colGirdConfig||{span:12},list:e.formList},void 0),e.children&&e.children]}),void 0),(()=>{const r=(()=>{const t=[n.jsx(Jp,Object.assign({onClick:()=>e.onCancel&&e.onCancel()},{children:"关闭"}),-1)];return o.disabled||t.push(n.jsx(Jp,Object.assign({type:"primary",loading:o.saveLoading,onClick:l},{children:"提交"}),-2)),t})(),a=t=>n.jsx(Ey,Object.assign({className:"form-modal-foot",justify:"center"},{children:n.jsx(Py,{children:n.jsx(XE,Object.assign({size:20},{children:t}),void 0)},void 0)}),void 0);if(e.footer)return e.footer;if(e.footBtnList){const{model:n,data:o}=e.footBtnList,i=o.map(((e,n)=>{const{children:r,...a}=e;return t.createElement(Jp,{...a,key:n},r)}));if("new"===n)return a(i);if("before"===n)return a([...i,...r]);if("after"===n)return a([...r,...i])}return a(r)})()]}),void 0)}),void 0)}));y('@import "https://at.alicdn.com/t/font_2381668_l6oy3doglyo.css";.icon-selected-modal .avatar-selected{display:flex;align-items:center;justify-content:center;width:36px;height:36px;overflow:hidden;border:2px solid #fff;border-radius:4px;cursor:pointer}.icon-selected-modal .avatar-selected.avatar-selected-bg{border-color:#5860f8}.icon-selected-modal .icon-selected-foot{margin-top:20px}');
|
|
38
|
+
*/function cD(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case UI:switch(t=t.type){case ZI:case QI:case YI:case qI:case $I:case tD:return t;default:switch(t=t&&t.$$typeof){case XI:case JI:case rD:case nD:case GI:return t;default:return e}}case WI:return e}}}function sD(t){return cD(t)===QI}var uD={AsyncMode:ZI,ConcurrentMode:QI,ContextConsumer:XI,ContextProvider:GI,Element:UI,ForwardRef:JI,Fragment:YI,Lazy:rD,Memo:nD,Portal:WI,Profiler:qI,StrictMode:$I,Suspense:tD,isAsyncMode:function(t){return sD(t)||cD(t)===ZI},isConcurrentMode:sD,isContextConsumer:function(t){return cD(t)===XI},isContextProvider:function(t){return cD(t)===GI},isElement:function(t){return"object"==typeof t&&null!==t&&t.$$typeof===UI},isForwardRef:function(t){return cD(t)===JI},isFragment:function(t){return cD(t)===YI},isLazy:function(t){return cD(t)===rD},isMemo:function(t){return cD(t)===nD},isPortal:function(t){return cD(t)===WI},isProfiler:function(t){return cD(t)===qI},isStrictMode:function(t){return cD(t)===$I},isSuspense:function(t){return cD(t)===tD},isValidElementType:function(t){return"string"==typeof t||"function"==typeof t||t===YI||t===QI||t===qI||t===$I||t===tD||t===eD||"object"==typeof t&&null!==t&&(t.$$typeof===rD||t.$$typeof===nD||t.$$typeof===GI||t.$$typeof===XI||t.$$typeof===JI||t.$$typeof===oD||t.$$typeof===iD||t.$$typeof===lD||t.$$typeof===aD)},typeOf:cD},dD=F((function(t,e){"production"!==process.env.NODE_ENV&&function(){var t="function"==typeof Symbol&&Symbol.for,n=t?Symbol.for("react.element"):60103,r=t?Symbol.for("react.portal"):60106,a=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 a: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 r:return e}}}var w=s,k=u,C=c,E=l,O=n,S=d,P=a,N=h,j=m,T=r,I=i,D=o,R=p,M=!1;function z(t){return x(t)===u}e.AsyncMode=w,e.ConcurrentMode=k,e.ContextConsumer=C,e.ContextProvider=E,e.Element=O,e.ForwardRef=S,e.Fragment=P,e.Lazy=N,e.Memo=j,e.Portal=T,e.Profiler=I,e.StrictMode=D,e.Suspense=R,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)===a},e.isLazy=function(t){return x(t)===h},e.isMemo=function(t){return x(t)===m},e.isPortal=function(t){return x(t)===r},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===a||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}()})),pD=F((function(t){"production"===process.env.NODE_ENV?t.exports=uD:t.exports=dD})),fD=Object.getOwnPropertySymbols,mD=Object.prototype.hasOwnProperty,hD=Object.prototype.propertyIsEnumerable;function gD(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}var bD=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var 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,r,a=gD(t),o=1;o<arguments.length;o++){for(var i in n=Object(arguments[o]))mD.call(n,i)&&(a[i]=n[i]);if(fD){r=fD(n);for(var l=0;l<r.length;l++)hD.call(n,r[l])&&(a[r[l]]=n[r[l]])}}return a},vD="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",yD=function(){};if("production"!==process.env.NODE_ENV){var xD=vD,wD={},kD=Function.call.bind(Object.prototype.hasOwnProperty);yD=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}}}function CD(t,e,n,r,a){if("production"!==process.env.NODE_ENV)for(var o in t)if(kD(t,o)){var i;try{if("function"!=typeof t[o]){var l=Error((r||"React class")+": "+n+" type `"+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[o]+"`.");throw l.name="Invariant Violation",l}i=t[o](e,o,r,n,null,xD)}catch(t){i=t}if(!i||i instanceof Error||yD((r||"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 wD)){wD[i.message]=!0;var c=a?a():"";yD("Failed "+n+" type: "+i.message+(null!=c?c:""))}}}CD.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(wD={})};var ED=CD,OD=Function.call.bind(Object.prototype.hasOwnProperty),SD=function(){};function PD(){return null}"production"!==process.env.NODE_ENV&&(SD=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}});var ND=function(t,e){var n="function"==typeof Symbol&&Symbol.iterator;var r="<<anonymous>>",a={array:c("array"),bool:c("boolean"),func:c("function"),number:c("number"),object:c("object"),string:c("string"),symbol:c("symbol"),any:l(PD),arrayOf:function(t){return l((function(e,n,r,a,o){if("function"!=typeof t)return new i("Property `"+o+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var l=e[n];if(!Array.isArray(l))return new i("Invalid "+a+" `"+o+"` of type `"+u(l)+"` supplied to `"+r+"`, expected an array.");for(var c=0;c<l.length;c++){var s=t(l,c,r,a,o+"["+c+"]",vD);if(s instanceof Error)return s}return null}))},element:l((function(e,n,r,a,o){var l=e[n];return t(l)?null:new i("Invalid "+a+" `"+o+"` of type `"+u(l)+"` supplied to `"+r+"`, expected a single ReactElement.")})),elementType:l((function(t,e,n,r,a){var o=t[e];return pD.isValidElementType(o)?null:new i("Invalid "+r+" `"+a+"` of type `"+u(o)+"` supplied to `"+n+"`, expected a single ReactElement type.")})),instanceOf:function(t){return l((function(e,n,a,o,l){if(!(e[n]instanceof t)){var c=t.name||r;return new i("Invalid "+o+" `"+l+"` of type `"+(((s=e[n]).constructor&&s.constructor.name?s.constructor.name:r)+"` supplied to `")+a+"`, expected instance of `"+c+"`.")}var s;return null}))},node:l((function(t,e,n,r,a){return s(t[e])?null:new i("Invalid "+r+" `"+a+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(t){return l((function(e,n,r,a,o){if("function"!=typeof t)return new i("Property `"+o+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var l=e[n],c=u(l);if("object"!==c)return new i("Invalid "+a+" `"+o+"` of type `"+c+"` supplied to `"+r+"`, expected an object.");for(var s in l)if(OD(l,s)){var d=t(l,s,r,a,o+"."+s,vD);if(d instanceof Error)return d}return null}))},oneOf:function(t){if(!Array.isArray(t))return"production"!==process.env.NODE_ENV&&SD(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."),PD;function e(e,n,r,a,l){for(var c=e[n],s=0;s<t.length;s++)if(o(c,t[s]))return null;var u=JSON.stringify(t,(function(t,e){return"symbol"===d(e)?String(e):e}));return new i("Invalid "+a+" `"+l+"` of value `"+String(c)+"` supplied to `"+r+"`, expected one of "+u+".")}return l(e)},oneOfType:function(t){if(!Array.isArray(t))return"production"!==process.env.NODE_ENV&&SD("Invalid argument supplied to oneOfType, expected an instance of array."),PD;for(var e=0;e<t.length;e++){var n=t[e];if("function"!=typeof n)return SD("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+p(n)+" at index "+e+"."),PD}return l((function(e,n,r,a,o){for(var l=0;l<t.length;l++)if(null==(0,t[l])(e,n,r,a,o,vD))return null;return new i("Invalid "+a+" `"+o+"` supplied to `"+r+"`.")}))},shape:function(t){return l((function(e,n,r,a,o){var l=e[n],c=u(l);if("object"!==c)return new i("Invalid "+a+" `"+o+"` of type `"+c+"` supplied to `"+r+"`, expected `object`.");for(var s in t){var d=t[s];if(d){var p=d(l,s,r,a,o+"."+s,vD);if(p)return p}}return null}))},exact:function(t){return l((function(e,n,r,a,o){var l=e[n],c=u(l);if("object"!==c)return new i("Invalid "+a+" `"+o+"` of type `"+c+"` supplied to `"+r+"`, expected `object`.");var s=bD({},e[n],t);for(var d in s){var p=t[d];if(!p)return new i("Invalid "+a+" `"+o+"` key `"+d+"` supplied to `"+r+"`.\nBad object: "+JSON.stringify(e[n],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(t),null," "));var f=p(l,d,r,a,o+"."+d,vD);if(f)return f}return null}))}};function o(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function i(t){this.message=t,this.stack=""}function l(t){if("production"!==process.env.NODE_ENV)var n={},a=0;function o(o,l,c,s,u,d,p){if(s=s||r,d=d||c,p!==vD){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]&&a<3&&(SD("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,a++)}}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,r,a,o,l){var c=e[n];return u(c)!==t?new i("Invalid "+a+" `"+o+"` of type `"+d(c)+"` supplied to `"+r+"`, expected `"+t+"`."):null}))}function s(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(s);if(null===e||t(e))return!0;var r=function(t){var e=t&&(n&&t[n]||t["@@iterator"]);if("function"==typeof e)return e}(e);if(!r)return!1;var a,o=r.call(e);if(r!==e.entries){for(;!(a=o.next()).done;)if(!s(a.value))return!1}else for(;!(a=o.next()).done;){var i=a.value;if(i&&!s(i[1]))return!1}return!0;default:return!1}}function u(t){var e=typeof t;return Array.isArray(t)?"array":t instanceof RegExp?"object":function(t,e){return"symbol"===t||!!e&&("Symbol"===e["@@toStringTag"]||"function"==typeof Symbol&&e instanceof Symbol)}(e,t)?"symbol":e}function d(t){if(null==t)return""+t;var e=u(t);if("object"===e){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return e}function p(t){var e=d(t);switch(e){case"array":case"object":return"an "+e;case"boolean":case"date":case"regexp":return"a "+e;default:return e}}return i.prototype=Error.prototype,a.checkPropTypes=ED,a.resetWarningCache=ED.resetWarningCache,a.PropTypes=a,a};function jD(){}function TD(){}TD.resetWarningCache=jD;var ID=F((function(t){if("production"!==process.env.NODE_ENV){var e=pD;t.exports=ND(e.isElement,!0)}else t.exports=function(){function t(t,e,n,r,a,o){if(o!==vD){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:TD,resetWarningCache:jD};return n.PropTypes=n,n}()})),DD=F((function(t,e){e.__esModule=!0,e.resizableProps=void 0;var n=function(t){return t&&t.__esModule?t:{default:t}}(ID);var r={axis:n.default.oneOf(["both","x","y","none"]),className:n.default.string,children:n.default.element.isRequired,draggableOpts:n.default.shape({allowAnyClick:n.default.bool,cancel:n.default.string,children:n.default.node,disabled:n.default.bool,enableUserSelectHack:n.default.bool,offsetParent:n.default.node,grid:n.default.arrayOf(n.default.number),handle:n.default.string,nodeRef:n.default.object,onStart:n.default.func,onDrag:n.default.func,onStop:n.default.func,onMouseDown:n.default.func,scale:n.default.number}),height:n.default.number.isRequired,handle:n.default.oneOfType([n.default.node,n.default.func]),handleSize:n.default.arrayOf(n.default.number),lockAspectRatio:n.default.bool,maxConstraints:n.default.arrayOf(n.default.number),minConstraints:n.default.arrayOf(n.default.number),onResizeStop:n.default.func,onResizeStart:n.default.func,onResize:n.default.func,resizeHandles:n.default.arrayOf(n.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),transformScale:n.default.number,width:n.default.number.isRequired};e.resizableProps=r})),RD=F((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=a(e);if(n&&n.has(t))return n.get(t);var r={},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(r,i,l):r[i]=t[i]}r.default=t,n&&n.set(t,r);return r}(d.default),r=["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"];function a(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(a=function(t){return t?n:e})(t)}function o(){return(o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){c(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var u=function(t){var e,a;function i(){for(var e,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r))||this).handleRefs={},e.lastHandleRect=null,e.slack=null,e}a=t,(e=i).prototype=Object.create(a.prototype),e.prototype.constructor=e,s(e,a);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,r=n.minConstraints,a=n.maxConstraints,o=n.lockAspectRatio;if(!r&&!a&&!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,r&&(t=Math.max(r[0],t),e=Math.max(r[1],e)),a&&(t=Math.min(a[0],t),e=Math.min(a[1],e)),this.slack=[p+(s-t),f+(u-e)],[t,e]},c.resizeHandler=function(t,e){var n=this;return function(r,a){var o=a.node,i=a.deltaX,l=a.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==r.persist||r.persist(),b(r,{node:o,size:{width:f,height:m},handle:e})),"onResizeStop"===t&&n.resetData()}}},c.renderResizeHandle=function(t,e){var r=this.props.handle;if(!r)return n.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+t,ref:e});if("function"==typeof r)return r(t,e);var a=l({ref:e},"string"==typeof r.type?{}:{handleAxis:t});return n.cloneElement(r,a)},c.render=function(){var t=this,e=this.props,a=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,r,a={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(a[n]=t[n]);return a}(e,r);return(0,HI.cloneElement)(a,l(l({},u),{},{className:(i?i+" ":"")+"react-resizable",children:[].concat(a.props.children,s.map((function(e){var r,a=null!=(r=t.handleRefs[e])?r:t.handleRefs[e]=n.createRef();return n.createElement(h.default.DraggableCore,o({},c,{nodeRef:a,key:"resizableHandle-"+e,onStop:t.resizeHandler("onResizeStop",e),onStart:t.resizeHandler("onResizeStart",e),onDrag:t.resizeHandler("onResize",e)}),t.renderResizeHandle(e,a))})))}))},i}(n.Component);e.default=u,u.propTypes=DD.resizableProps,u.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1}})),MD=F((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 r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var i=a?Object.getOwnPropertyDescriptor(t,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=t[o]}r.default=t,n&&n.set(t,r);return r}(d.default),r=i(ID),a=i(RD),o=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function i(t){return t&&t.__esModule?t:{default:t}}function l(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(l=function(t){return t?n:e})(t)}function c(){return(c=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}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){p(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function p(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var m=function(t){var e,r;function i(){for(var e,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r))||this).state={width:e.props.width,height:e.props.height,propsWidth:e.props.width,propsHeight:e.props.height},e.onResize=function(t,n){var r=n.size;e.props.onResize?(null==t.persist||t.persist(),e.setState(r,(function(){return e.props.onResize&&e.props.onResize(t,n)}))):e.setState(r)},e}return r=t,(e=i).prototype=Object.create(r.prototype),e.prototype.constructor=e,f(e,r),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,r=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,r,a={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(a[n]=t[n]);return a}(t,o);return n.createElement(a.default,{axis:m,draggableOpts:s,handle:e,handleSize:r,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({},DD.resizableProps),{},{children:r.default.element})})),zD=RD.default;MD.default;const AD=t=>{const{onResize:e,width:r,...a}=t;return r?n.jsx(zD,Object.assign({width:r,height:0,handle:n.jsx("span",{className:"react-resizable-handle",onClick:t=>{t.stopPropagation()}},void 0),onResize:e,draggableOpts:{enableUserSelectHack:!1}},{children:n.jsx("th",Object.assign({},a),void 0)}),void 0):n.jsx("th",Object.assign({},a),void 0)};var LD,_D=t.createContext({dragDropManager:void 0});function FD(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),a=2;a<n;a++)r[a-2]=arguments[a];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 r[i++]})))).name="Invariant Violation"}throw o.framesToPop=1,o}}!function(t){t.SOURCE="SOURCE",t.TARGET="TARGET"}(LD||(LD={}));var VD="dnd-core/INIT_COORDS",KD="dnd-core/BEGIN_DRAG",HD="dnd-core/PUBLISH_DRAG_SOURCE",BD="dnd-core/HOVER",UD="dnd-core/DROP",WD="dnd-core/END_DRAG";function YD(t,e){return{type:VD,payload:{sourceClientOffset:e||null,clientOffset:t||null}}}function $D(t){return($D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function qD(t,e,n){return e.split(".").reduce((function(t,e){return t&&t[e]?t[e]:n||null}),t)}function GD(t,e){return t.filter((function(t){return t!==e}))}function XD(t){return"object"===$D(t)}function ZD(t,e){var n=new Map,r=function(t){n.set(t,n.has(t)?n.get(t)+1:1)};t.forEach(r),e.forEach(r);var a=[];return n.forEach((function(t,e){1===t&&a.push(e)})),a}var QD={type:VD,payload:{clientOffset:null,sourceClientOffset:null}};function JD(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},r=n.publishSource,a=void 0===r||r,o=n.clientOffset,i=n.getSourceClientOffset,l=t.getMonitor(),c=t.getRegistry();t.dispatch(YD(o)),tR(e,l,c);var s=rR(e,l);if(null!==s){var u=null;if(o){if(!i)throw new Error("getSourceClientOffset must be defined");eR(i),u=i(s)}t.dispatch(YD(o,u));var d=c.getSource(s),p=d.beginDrag(l,s);if(null!=p){nR(p),c.pinSource(s);var f=c.getSourceType(s);return{type:KD,payload:{itemType:f,item:p,sourceId:s,clientOffset:o||null,sourceClientOffset:u||null,isSourcePublic:!!a}}}}else t.dispatch(QD)}}function tR(t,e,n){FD(!e.isDragging(),"Cannot call beginDrag while dragging."),t.forEach((function(t){FD(n.getSource(t),"Expected sourceIds to be registered.")}))}function eR(t){FD("function"==typeof t,"When clientOffset is provided, getSourceClientOffset must be a function.")}function nR(t){FD(XD(t),"Item must be an object.")}function rR(t,e){for(var n=null,r=t.length-1;r>=0;r--)if(e.canDragSource(t[r])){n=t[r];break}return n}function aR(t){return function(){if(t.getMonitor().isDragging())return{type:HD}}}function oR(t,e){return null===e?null===t:Array.isArray(t)?t.some((function(t){return t===e})):t===e}function iR(t){return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.clientOffset;lR(e);var a=e.slice(0),o=t.getMonitor(),i=t.getRegistry();cR(a,o,i);var l=o.getItemType();return sR(a,i,l),uR(a,o,i),{type:BD,payload:{targetIds:a,clientOffset:r||null}}}}function lR(t){FD(Array.isArray(t),"Expected targetIds to be an array.")}function cR(t,e,n){FD(e.isDragging(),"Cannot call hover while not dragging."),FD(!e.didDrop(),"Cannot call hover after drop.");for(var r=0;r<t.length;r++){var a=t[r];FD(t.lastIndexOf(a)===r,"Expected targetIds to be unique in the passed array."),FD(n.getTarget(a),"Expected targetIds to be registered.")}}function sR(t,e,n){for(var r=t.length-1;r>=0;r--){var a=t[r];oR(e.getTargetType(a),n)||t.splice(r,1)}}function uR(t,e,n){t.forEach((function(t){n.getTarget(t).hover(e,t)}))}function dR(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function pR(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?dR(Object(n),!0).forEach((function(e){fR(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):dR(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function fR(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function mR(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.getMonitor(),r=t.getRegistry();hR(n);var a=bR(n);a.forEach((function(a,o){var i=gR(a,o,r,n),l={type:UD,payload:{dropResult:pR(pR({},e),i)}};t.dispatch(l)}))}}function hR(t){FD(t.isDragging(),"Cannot call drop while not dragging."),FD(!t.didDrop(),"Cannot call drop twice during one drag operation.")}function gR(t,e,n,r){var a=n.getTarget(t),o=a?a.drop(r,t):void 0;return function(t){FD(void 0===t||XD(t),"Drop result must either be an object or undefined.")}(o),void 0===o&&(o=0===e?{}:r.getDropResult()),o}function bR(t){var e=t.getTargetIds().filter(t.canDropOnTarget,t);return e.reverse(),e}function vR(t){return function(){var e=t.getMonitor(),n=t.getRegistry();!function(t){FD(t.isDragging(),"Cannot call endDrag while not dragging.")}(e);var r=e.getSourceId();null!=r&&(n.getSource(r,!0).endDrag(e,r),n.unpinSource());return{type:WD}}}function yR(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function xR(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var wR=function(){function t(e,n){var r=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),xR(this,"store",void 0),xR(this,"monitor",void 0),xR(this,"backend",void 0),xR(this,"isSetUp",!1),xR(this,"handleRefCountChange",(function(){var t=r.store.getState().refCount>0;r.backend&&(t&&!r.isSetUp?(r.backend.setup(),r.isSetUp=!0):!t&&r.isSetUp&&(r.backend.teardown(),r.isSetUp=!1))})),this.store=e,this.monitor=n,e.subscribe(this.handleRefCountChange)}var e,n,r;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:JD(t),publishDragSource:aR(t),hover:iR(t),drop:mR(t),endDrag:vR(t)}}(this);return Object.keys(n).reduce((function(r,a){var o,i=n[a];return r[a]=(o=i,function(){for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];var i=o.apply(t,r);void 0!==i&&e(i)}),r}),{})}},{key:"dispatch",value:function(t){this.store.dispatch(t)}}])&&yR(e.prototype,n),r&&yR(e,r),t}();function kR(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 CR="function"==typeof Symbol&&Symbol.observable||"@@observable",ER=function(){return Math.random().toString(36).substring(7).split("").join(".")},OR={INIT:"@@redux/INIT"+ER(),REPLACE:"@@redux/REPLACE"+ER(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ER()}};function SR(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function PR(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 NR(t){var e=typeof t;return"production"!==process.env.NODE_ENV&&(e=PR(t)),e}function jR(t,e,n){var r;if("function"==typeof e&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error("production"===process.env.NODE_ENV?kR(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?kR(1):"Expected the enhancer to be a function. Instead, received: '"+NR(n)+"'");return n(jR)(t,e)}if("function"!=typeof t)throw new Error("production"===process.env.NODE_ENV?kR(2):"Expected the root reducer to be a function. Instead, received: '"+NR(t)+"'");var a=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?kR(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?kR(4):"Expected the listener to be a function. Instead, received: '"+NR(t)+"'");if(c)throw new Error("production"===process.env.NODE_ENV?kR(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?kR(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(!SR(t))throw new Error("production"===process.env.NODE_ENV?kR(7):"Actions must be plain objects. Instead, the actual type was: '"+NR(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?kR(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?kR(9):"Reducers may not dispatch actions.");try{c=!0,o=a(o,t)}finally{c=!1}for(var e=i=l,n=0;n<e.length;n++){(0,e[n])()}return t}function f(t){if("function"!=typeof t)throw new Error("production"===process.env.NODE_ENV?kR(10):"Expected the nextReducer to be a function. Instead, received: '"+NR(t));a=t,p({type:OR.REPLACE})}function m(){var t,e=d;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error("production"===process.env.NODE_ENV?kR(11):"Expected the observer to be an object. Instead, received: '"+NR(t)+"'");function n(){t.next&&t.next(u())}return n(),{unsubscribe:e(n)}}})[CR]=function(){return this},t}return p({type:OR.INIT}),(r={dispatch:p,subscribe:d,getState:u,replaceReducer:f})[CR]=m,r}function TR(){}"production"!==process.env.NODE_ENV&&"string"==typeof TR.name&&"isCrushed"!==TR.name&&function(t){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(t);try{throw new Error(t)}catch(t){}}('You are currently using minified code outside of NODE_ENV === "production". This means that you are running a slower development build of Redux. You can use loose-envify (https://github.com/zertosh/loose-envify) for browserify or setting mode to production in webpack (https://webpack.js.org/concepts/mode/) to ensure you have the correct code for your production build.');var IR=function(t,e){return t===e};function DR(t,e){return!t&&!e||!(!t||!e)&&(t.x===e.x&&t.y===e.y)}function RR(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:IR;if(t.length!==e.length)return!1;for(var r=0;r<t.length;++r)if(!n(t[r],e[r]))return!1;return!0}function MR(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function zR(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?MR(Object(n),!0).forEach((function(e){AR(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):MR(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function AR(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var LR={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function _R(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:LR,e=arguments.length>1?arguments[1]:void 0,n=e.payload;switch(e.type){case VD:case KD:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case BD:return DR(t.clientOffset,n.clientOffset)?t:zR(zR({},t),{},{clientOffset:n.clientOffset});case WD:case UD:return LR;default:return t}}var FR="dnd-core/ADD_SOURCE",VR="dnd-core/ADD_TARGET",KR="dnd-core/REMOVE_SOURCE",HR="dnd-core/REMOVE_TARGET";function BR(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function UR(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?BR(Object(n),!0).forEach((function(e){WR(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):BR(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function WR(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var YR={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function $R(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:YR,e=arguments.length>1?arguments[1]:void 0,n=e.payload;switch(e.type){case KD:return UR(UR({},t),{},{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case HD:return UR(UR({},t),{},{isSourcePublic:!0});case BD:return UR(UR({},t),{},{targetIds:n.targetIds});case HR:return-1===t.targetIds.indexOf(n.targetId)?t:UR(UR({},t),{},{targetIds:GD(t.targetIds,n.targetId)});case UD:return UR(UR({},t),{},{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case WD:return UR(UR({},t),{},{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return t}}function qR(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case FR:case VR:return t+1;case KR:case HR:return t-1;default:return t}}var GR=[],XR=[];function ZR(t,e){return t!==GR&&(t===XR||void 0===e||(n=t,e.filter((function(t){return n.indexOf(t)>-1}))).length>0);var n}function QR(){var t=arguments.length>1?arguments[1]:void 0;switch(t.type){case BD:break;case FR:case VR:case HR:case KR:return GR;case KD:case HD:case WD:case UD:default:return XR}var e=t.payload,n=e.targetIds,r=void 0===n?[]:n,a=e.prevTargetIds,o=void 0===a?[]:a,i=ZD(r,o),l=i.length>0||!RR(r,o);if(!l)return GR;var c=o[o.length-1],s=r[r.length-1];return c!==s&&(c&&i.push(c),s&&i.push(s)),i}function JR(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return t+1}function tM(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function eM(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?tM(Object(n),!0).forEach((function(e){nM(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):tM(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function nM(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function rM(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:QR(t.dirtyHandlerIds,{type:e.type,payload:eM(eM({},e.payload),{},{prevTargetIds:qD(t,"dragOperation.targetIds",[])})}),dragOffset:_R(t.dragOffset,e),refCount:qR(t.refCount,e),dragOperation:$R(t.dragOperation,e),stateId:JR(t.stateId)}}function aM(t,e){return{x:t.x-e.x,y:t.y-e.y}}function oM(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function iM(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}GR.__IS_NONE__=!0,XR.__IS_ALL__=!0;var lM=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),iM(this,"store",void 0),iM(this,"registry",void 0),this.store=e,this.registry=n}var e,n,r;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},r=n.handlerIds;FD("function"==typeof t,"listener must be a function."),FD(void 0===r||Array.isArray(r),"handlerIds, when specified, must be an array of strings.");var a=this.store.getState().stateId,o=function(){var n=e.store.getState(),o=n.stateId;try{o===a||o===a+1&&!ZR(n.dirtyHandlerIds,r)||t()}finally{a=o}};return this.store.subscribe(o)}},{key:"subscribeToOffsetChange",value:function(t){var e=this;FD("function"==typeof t,"listener must be a function.");var n=this.store.getState().dragOffset;return this.store.subscribe((function(){var r=e.store.getState().dragOffset;r!==n&&(n=r,t())}))}},{key:"canDragSource",value:function(t){if(!t)return!1;var e=this.registry.getSource(t);return FD(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 FD(e,"Expected to find a valid target. targetId=".concat(t)),!(!this.isDragging()||this.didDrop())&&oR(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 FD(e,"Expected to find a valid source. sourceId=".concat(t)),!(!this.isDragging()||!this.isSourcePublic())&&this.registry.getSourceType(t)===this.getItemType()&&e.isDragging(this,t)}},{key:"isOverTarget",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shallow:!1};if(!t)return!1;var n=e.shallow;if(!this.isDragging())return!1;var r=this.registry.getTargetType(t),a=this.getItemType();if(a&&!oR(r,a))return!1;var o=this.getTargetIds();if(!o.length)return!1;var i=o.indexOf(t);return n?i===o.length-1:i>-1}},{key:"getItemType",value:function(){return this.store.getState().dragOperation.itemType}},{key:"getItem",value:function(){return this.store.getState().dragOperation.item}},{key:"getSourceId",value:function(){return this.store.getState().dragOperation.sourceId}},{key:"getTargetIds",value:function(){return this.store.getState().dragOperation.targetIds}},{key:"getDropResult",value:function(){return this.store.getState().dragOperation.dropResult}},{key:"didDrop",value:function(){return this.store.getState().dragOperation.didDrop}},{key:"isSourcePublic",value:function(){return Boolean(this.store.getState().dragOperation.isSourcePublic)}},{key:"getInitialClientOffset",value:function(){return this.store.getState().dragOffset.initialClientOffset}},{key:"getInitialSourceClientOffset",value:function(){return this.store.getState().dragOffset.initialSourceClientOffset}},{key:"getClientOffset",value:function(){return this.store.getState().dragOffset.clientOffset}},{key:"getSourceClientOffset",value:function(){return t=this.store.getState().dragOffset,e=t.clientOffset,n=t.initialClientOffset,r=t.initialSourceClientOffset,e&&n&&r?aM(function(t,e){return{x:t.x+e.x,y:t.y+e.y}}(e,r),n):null;var t,e,n,r}},{key:"getDifferenceFromInitialOffset",value:function(){return t=this.store.getState().dragOffset,e=t.clientOffset,n=t.initialClientOffset,e&&n?aM(e,n):null;var t,e,n}}])&&oM(e.prototype,n),r&&oM(e,r),t}(),cM=0;function sM(t){return(sM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function uM(t,e){e&&Array.isArray(t)?t.forEach((function(t){return uM(t,!1)})):FD("string"==typeof t||"symbol"===sM(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 dM="undefined"!=typeof global?global:self,pM=dM.MutationObserver||dM.WebKitMutationObserver;function fM(t){return function(){const e=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(e),clearInterval(n),t()}}}const mM="function"==typeof pM?function(t){let e=1;const n=new pM(t),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){e=-e,r.data=e}}:fM;class hM{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 gM=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=mM(this.flush),this.requestErrorThrow=fM((()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()}))}},bM=new class{create(t){const e=this.freeTasks,n=e.length?e.pop():new hM(this.onError,(t=>e[e.length]=t));return n.task=t,n}constructor(t){this.onError=t,this.freeTasks=[]}}(gM.registerPendingError);function vM(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function yM(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function xM(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 r,a,o=[],i=!0,l=!1;try{for(n=n.call(t);!(i=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);i=!0);}catch(t){l=!0,a=t}finally{try{i||null==n.return||n.return()}finally{if(l)throw a}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return wM(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 wM(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 wM(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function kM(t){var e=(cM++).toString();switch(t){case LD.SOURCE:return"S".concat(e);case LD.TARGET:return"T".concat(e);default:throw new Error("Unknown Handler Role: ".concat(t))}}function CM(t){switch(t[0]){case"S":return LD.SOURCE;case"T":return LD.TARGET;default:FD(!1,"Cannot parse handler ID: ".concat(t))}}function EM(t,e){var n=t.entries(),r=!1;do{var a=n.next(),o=a.done;if(xM(a.value,2)[1]===e)return!0;r=!!o}while(!r);return!1}var OM=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),yM(this,"types",new Map),yM(this,"dragSources",new Map),yM(this,"dropTargets",new Map),yM(this,"pinnedSourceId",null),yM(this,"pinnedSource",null),yM(this,"store",void 0),this.store=e}var e,n,r;return e=t,(n=[{key:"addSource",value:function(t,e){uM(t),function(t){FD("function"==typeof t.canDrag,"Expected canDrag to be a function."),FD("function"==typeof t.beginDrag,"Expected beginDrag to be a function."),FD("function"==typeof t.endDrag,"Expected endDrag to be a function.")}(e);var n=this.addHandler(LD.SOURCE,t,e);return this.store.dispatch(function(t){return{type:FR,payload:{sourceId:t}}}(n)),n}},{key:"addTarget",value:function(t,e){uM(t,!0),function(t){FD("function"==typeof t.canDrop,"Expected canDrop to be a function."),FD("function"==typeof t.hover,"Expected hover to be a function."),FD("function"==typeof t.drop,"Expected beginDrag to be a function.")}(e);var n=this.addHandler(LD.TARGET,t,e);return this.store.dispatch(function(t){return{type:VR,payload:{targetId:t}}}(n)),n}},{key:"containsHandler",value:function(t){return EM(this.dragSources,t)||EM(this.dropTargets,t)}},{key:"getSource",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];FD(this.isSourceId(t),"Expected a valid source ID.");var n=e&&t===this.pinnedSourceId,r=n?this.pinnedSource:this.dragSources.get(t);return r}},{key:"getTarget",value:function(t){return FD(this.isTargetId(t),"Expected a valid target ID."),this.dropTargets.get(t)}},{key:"getSourceType",value:function(t){return FD(this.isSourceId(t),"Expected a valid source ID."),this.types.get(t)}},{key:"getTargetType",value:function(t){return FD(this.isTargetId(t),"Expected a valid target ID."),this.types.get(t)}},{key:"isSourceId",value:function(t){return CM(t)===LD.SOURCE}},{key:"isTargetId",value:function(t){return CM(t)===LD.TARGET}},{key:"removeSource",value:function(t){var e,n=this;FD(this.getSource(t),"Expected an existing source."),this.store.dispatch(function(t){return{type:KR,payload:{sourceId:t}}}(t)),e=function(){n.dragSources.delete(t),n.types.delete(t)},gM.enqueueTask(bM.create(e))}},{key:"removeTarget",value:function(t){FD(this.getTarget(t),"Expected an existing target."),this.store.dispatch(function(t){return{type:HR,payload:{targetId:t}}}(t)),this.dropTargets.delete(t),this.types.delete(t)}},{key:"pinSource",value:function(t){var e=this.getSource(t);FD(e,"Expected an existing source."),this.pinnedSourceId=t,this.pinnedSource=e}},{key:"unpinSource",value:function(){FD(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}},{key:"addHandler",value:function(t,e,n){var r=kM(t);return this.types.set(r,e),t===LD.SOURCE?this.dragSources.set(r,n):t===LD.TARGET&&this.dropTargets.set(r,n),r}}])&&vM(e.prototype,n),r&&vM(e,r),t}();function SM(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=PM(r),o=new lM(a,new OM(a)),i=new wR(a,o),l=t(i,e,n);return i.receiveBackend(l),i}function PM(t){var e="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return jR(rM,t&&e&&e({name:"dnd-core",instanceId:"dnd-core"}))}var NM=["children"];function jM(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 r,a,o=[],i=!0,l=!1;try{for(n=n.call(t);!(i=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);i=!0);}catch(t){l=!0,a=t}finally{try{i||null==n.return||n.return()}finally{if(l)throw a}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return TM(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 TM(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 TM(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function IM(t,e){if(null==t)return{};var n,r,a=function(t,e){if(null==t)return{};var n,r,a={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(a[n]=t[n]);return a}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}var DM=0,RM=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__"),MM=t.memo((function(e){var r=e.children,a=jM(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]:zM(),n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,a=e;a[RM]||(a[RM]={dragDropManager:SM(t,e,n,r)});return a[RM]}(t.backend,t.context,t.options,t.debugMode),n=!t.context;return[e,n]}(IM(e,NM)),2),o=a[0],i=a[1];return t.useEffect((function(){if(i){var t=zM();return++DM,function(){0==--DM&&(t[RM]=null)}}}),[]),n.jsx(_D.Provider,Object.assign({value:o},{children:r}),void 0)}));function zM(){return"undefined"!=typeof global?global:window}function AM(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}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 _M=!1,FM=!1,VM=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),LM(this,"internalMonitor",void 0),LM(this,"sourceId",null),this.internalMonitor=e.getMonitor()}var e,n,r;return e=t,(n=[{key:"receiveHandlerId",value:function(t){this.sourceId=t}},{key:"getHandlerId",value:function(){return this.sourceId}},{key:"canDrag",value:function(){FD(!_M,"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 _M=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{_M=!1}}},{key:"isDragging",value:function(){if(!this.sourceId)return!1;FD(!FM,"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 FM=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{FM=!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()}}])&&AM(e.prototype,n),r&&AM(e,r),t}();function KM(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function HM(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var BM=!1,UM=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),HM(this,"internalMonitor",void 0),HM(this,"targetId",null),this.internalMonitor=e.getMonitor()}var e,n,r;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;FD(!BM,"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 BM=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{BM=!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()}}])&&KM(e.prototype,n),r&&KM(e,r),t}();function WM(t){if("string"!=typeof t.type){var e=t.type.displayName||t.type.name||"the component";throw new Error("Only native element nodes can now be passed to React DnD connectors."+"You can either wrap ".concat(e," into a <div>, or turn it into a ")+"drag source or a drop target itself.")}}function YM(e){var n={};return Object.keys(e).forEach((function(r){var a=e[r];if(r.endsWith("Ref"))n[r]=e[r];else{var o=function(e){return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!t.isValidElement(n)){var a=n;return e(a,r),a}var o=n;return WM(o),qM(o,r?function(t){return e(t,r)}:e)}}(a);n[r]=function(){return o}}})),n}function $M(t,e){"function"==typeof t?t(e):t.current=e}function qM(e,n){var r=e.ref;return FD("string"!=typeof r,"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"),r?t.cloneElement(e,{ref:function(t){$M(r,t),$M(n,t)}}):t.cloneElement(e,{ref:n})}function GM(t){return(GM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function XM(t){return null!==t&&"object"===GM(t)&&Object.prototype.hasOwnProperty.call(t,"current")}function ZM(t,e,n,r){var a=n?n.call(r,t,e):void 0;if(void 0!==a)return!!a;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===(a=n?n.call(r,u,d,s):void 0)||void 0===a&&u!==d)return!1}return!0}function QM(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function JM(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){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),JM(this,"hooks",YM({dragSource:function(t,e){n.clearDragSource(),n.dragSourceOptions=e||null,XM(t)?n.dragSourceRef=t:n.dragSourceNode=t,n.reconnectDragSource()},dragPreview:function(t,e){n.clearDragPreview(),n.dragPreviewOptions=e||null,XM(t)?n.dragPreviewRef=t:n.dragPreviewNode=t,n.reconnectDragPreview()}})),JM(this,"handlerId",null),JM(this,"dragSourceRef",null),JM(this,"dragSourceNode",void 0),JM(this,"dragSourceOptionsInternal",null),JM(this,"dragSourceUnsubscribe",void 0),JM(this,"dragPreviewRef",null),JM(this,"dragPreviewNode",void 0),JM(this,"dragPreviewOptionsInternal",null),JM(this,"dragPreviewUnsubscribe",void 0),JM(this,"lastConnectedHandlerId",null),JM(this,"lastConnectedDragSource",null),JM(this,"lastConnectedDragSourceOptions",null),JM(this,"lastConnectedDragPreview",null),JM(this,"lastConnectedDragPreviewOptions",null),JM(this,"backend",void 0),this.backend=e}var e,n,r;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!ZM(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}},{key:"didDragPreviewOptionsChange",value:function(){return!ZM(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}}])&&QM(e.prototype,n),r&&QM(e,r),t}();function ez(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function nz(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var rz=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),nz(this,"hooks",YM({dropTarget:function(t,e){n.clearDropTarget(),n.dropTargetOptions=e,XM(t)?n.dropTargetRef=t:n.dropTargetNode=t,n.reconnect()}})),nz(this,"handlerId",null),nz(this,"dropTargetRef",null),nz(this,"dropTargetNode",void 0),nz(this,"dropTargetOptionsInternal",null),nz(this,"unsubscribeDropTarget",void 0),nz(this,"lastConnectedHandlerId",null),nz(this,"lastConnectedDropTarget",null),nz(this,"lastConnectedDropTargetOptions",null),nz(this,"backend",void 0),this.backend=e}var e,n,r;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!ZM(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}}])&&ez(e.prototype,n),r&&ez(e,r),t}();var az="undefined"!=typeof window?t.useLayoutEffect:t.useEffect;function oz(t){return(oz="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function iz(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function lz(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var cz=function(){function t(e,n,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),lz(this,"spec",void 0),lz(this,"monitor",void 0),lz(this,"connector",void 0),this.spec=e,this.monitor=n,this.connector=r}var e,n,r;return e=t,(n=[{key:"beginDrag",value:function(){var t,e=this.spec,n=this.monitor;return null!==(t="object"===oz(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,r=this.monitor,a=n.isDragging;return a?a(r):e===t.getSourceId()}},{key:"endDrag",value:function(){var t=this.spec,e=this.monitor,n=this.connector,r=t.end;r&&r(e.getItem(),e),n.reconnect()}}])&&iz(e.prototype,n),r&&iz(e,r),t}();function sz(){var e=t.useContext(_D).dragDropManager;return FD(null!=e,"Expected drag drop context"),e}function uz(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 r,a,o=[],i=!0,l=!1;try{for(n=n.call(t);!(i=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);i=!0);}catch(t){l=!0,a=t}finally{try{i||null==n.return||n.return()}finally{if(l)throw a}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return dz(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 dz(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 dz(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function pz(e,n,r){var a=sz(),o=function(e,n,r){var a=t.useMemo((function(){return new cz(e,n,r)}),[n,r]);return t.useEffect((function(){a.spec=e}),[e]),a}(e,n,r),i=function(e){return t.useMemo((function(){var t=e.type;return FD(null!=t,"spec.type must be defined"),t}),[e])}(e);az((function(){if(null!=i){var t=uz(function(t,e,n){var r=n.getRegistry(),a=r.addSource(t,e);return[a,function(){return r.removeSource(a)}]}(i,o,a),2),e=t[0],l=t[1];return n.receiveHandlerId(e),r.receiveHandlerId(e),l}}),[a,n,r,o,i])}function fz(t){return function(t){if(Array.isArray(t))return mz(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 mz(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 mz(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 mz(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function hz(e,n){var r=fz(n||[]);return null==n&&"function"!=typeof e&&r.push(e),t.useMemo((function(){return"function"==typeof e?e():e}),r)}var gz=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 r,a,o;if(Array.isArray(e)){if((r=e.length)!=n.length)return!1;for(a=r;0!=a--;)if(!t(e[a],n[a]))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((r=(o=Object.keys(e)).length)!==Object.keys(n).length)return!1;for(a=r;0!=a--;)if(!Object.prototype.hasOwnProperty.call(n,o[a]))return!1;for(a=r;0!=a--;){var i=o[a];if(!t(e[i],n[i]))return!1}return!0}return e!=e&&n!=n};function bz(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 r,a,o=[],i=!0,l=!1;try{for(n=n.call(t);!(i=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);i=!0);}catch(t){l=!0,a=t}finally{try{i||null==n.return||n.return()}finally{if(l)throw a}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return vz(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 vz(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 vz(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function yz(e,n,r){var a=bz(t.useState((function(){return n(e)})),2),o=a[0],i=a[1],l=t.useCallback((function(){var t=n(e);gz(o,t)||(i(t),r&&r())}),[o,e,r]);return az(l),[o,l]}function xz(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 r,a,o=[],i=!0,l=!1;try{for(n=n.call(t);!(i=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);i=!0);}catch(t){l=!0,a=t}finally{try{i||null==n.return||n.return()}finally{if(l)throw a}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return wz(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 wz(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 wz(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function kz(t,e,n){return function(t,e,n){var r=xz(yz(t,e,n),2),a=r[0],o=r[1];return az((function(){var e=t.getHandlerId();if(null!=e)return t.subscribeToStateChange(o,{handlerIds:[e]})}),[t,o]),a}(e,t||function(){return{}},(function(){return n.reconnect()}))}function Cz(e){return t.useMemo((function(){return e.hooks.dragSource()}),[e])}function Ez(e){return t.useMemo((function(){return e.hooks.dragPreview()}),[e])}function Oz(e,n){var r=hz(e,n);FD(!r.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 a,o=(a=sz(),t.useMemo((function(){return new VM(a)}),[a])),i=function(e,n){var r=sz(),a=t.useMemo((function(){return new tz(r.getBackend())}),[r]);return az((function(){return a.dragSourceOptions=e||null,a.reconnect(),function(){return a.disconnectDragSource()}}),[a,e]),az((function(){return a.dragPreviewOptions=n||null,a.reconnect(),function(){return a.disconnectDragPreview()}}),[a,n]),a}(r.options,r.previewOptions);return pz(r,o,i),[kz(r.collect,o,i),Cz(i),Ez(i)]}function Sz(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}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 Nz=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,"spec",void 0),Pz(this,"monitor",void 0),this.spec=e,this.monitor=n}var e,n,r;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),r&&Sz(e,r),t}();function jz(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 r,a,o=[],i=!0,l=!1;try{for(n=n.call(t);!(i=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);i=!0);}catch(t){l=!0,a=t}finally{try{i||null==n.return||n.return()}finally{if(l)throw a}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Tz(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 Tz(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 Tz(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Iz(e,n,r){var a=sz(),o=function(e,n){var r=t.useMemo((function(){return new Nz(e,n)}),[n]);return t.useEffect((function(){r.spec=e}),[e]),r}(e,n),i=function(e){var n=e.accept;return t.useMemo((function(){return FD(null!=e.accept,"accept must be defined"),Array.isArray(n)?n:[n]}),[n])}(e);az((function(){var t=jz(function(t,e,n){var r=n.getRegistry(),a=r.addTarget(t,e);return[a,function(){return r.removeTarget(a)}]}(i,o,a),2),e=t[0],l=t[1];return n.receiveHandlerId(e),r.receiveHandlerId(e),l}),[a,n,o,r,i.map((function(t){return t.toString()})).join("|")])}function Dz(e){return t.useMemo((function(){return e.hooks.dropTarget()}),[e])}function Rz(e,n){var r,a=hz(e,n),o=(r=sz(),t.useMemo((function(){return new UM(r)}),[r])),i=function(e){var n=sz(),r=t.useMemo((function(){return new rz(n.getBackend())}),[n]);return az((function(){return r.dropTargetOptions=e||null,r.reconnect(),function(){return r.disconnectDropTarget()}}),[e]),r}(a.options);return Iz(a,o,i),[kz(a.collect,o,i),Dz(i)]}y(".drop-over-downward td{border-bottom:2px dashed #5860f8!important}.drop-over-upward td{border-top:2px dashed #5860f8!important}");const{Option:Mz}=Vd,zz=d.default.createContext(null),Az=({open:e,index:r,moveRow:a,className:o,style:i,...l})=>{const[c]=Mk.useForm(),s=t.useRef(null),[{isOver:u,dropClassName:d},p]=Rz({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=>{a(t.index,r)}}),[,f]=Oz({type:"DraggableBodyRow",item:{index:r},collect:t=>({isDragging:t.isDragging()})});return e&&p(f(s)),n.jsx(Mk,Object.assign({size:"small",component:!1,form:c},{children:n.jsx(zz.Provider,Object.assign({value:c},{children:n.jsx("tr",Object.assign({ref:s,className:`${o}${u?d:""}`,style:{cursor:e?"move":"auto",...i}},l),void 0)}),void 0)}),void 0)},Lz=({columns:e,record:r,dataIndex:a,title:o,editable:i,inputType:l,valueType:c,valueEnum:s,recordSelectField:u,controlRender:d,formChange:f,remoteConfig:m,children:h,formItemProps:b,handleSave:v,...y})=>{const x=t.useContext(zz),[w,k]=t.useState(!1),[C,E]=t.useState({}),O=(t,e,n,r)=>{r&&(k(!0),r(t,n).then((t=>{k(!1),e&&E({[e]:t})})))};if(i){let t=r[a];"DatePicker"!==c&&"DateTimePicker"!==c||t&&(t=g.default(t)),"status"===a&&void 0!==t&&(r[a]=String(t)),setTimeout((()=>{x.setFieldsValue({[a]:t})}))}const S=(t,e)=>{let o=null;const i=(t,e)=>{let n="";const r=function(t){for(let e of t)if(e)if(wI({data:e,type:"String"}))n+=e;else{const t=e.props.children;wI({data:t,type:"Object"})&&r([t]),wI({data:t,type:"Array"})&&r(t),wI({data:t,type:"String"})&&(n+=t)}};return r([e.children]),n.toLowerCase().indexOf(t.toLowerCase())>=0},c=t=>{if(p.default.isArray(t))return t.map(((t,e)=>n.jsx(Mz,Object.assign({value:t.value},{children:t.label}),e)))};switch(t){case"RecordSelect":o=n.jsx(Vd,Object.assign({allowClear:!0,showSearch:!0,dropdownMatchSelectWidth:!1,placeholder:e,onChange:P,optionFilterProp:"children",filterOption:i},{children:c(r[u])}),void 0);break;case"Select":o=n.jsx(Vd,Object.assign({dropdownMatchSelectWidth:!1,onChange:P,placeholder:e},{children:c(s)}),void 0);break;case"DatePicker":o=n.jsx(Mw,{onChange:P,placeholder:e},void 0);break;case"DateTimePicker":o=n.jsx(Mw,{onChange:P,placeholder:e,showTime:!0},void 0);break;case"AutoComplete":o=n.jsx(Vd,Object.assign({allowClear:!0,showSearch:!0,dropdownMatchSelectWidth:!1,placeholder:e,onChange:P,optionFilterProp:"children",filterOption:i},{children:c(s)}),void 0);break;case"RemoteSearch":let t=s;C[a]&&(t=C[a]),o=n.jsx(Vd,Object.assign({mode:m.remoteMode,placeholder:e,notFoundContent:w?n.jsx(eC,{size:"small"},void 0):null,dropdownMatchSelectWidth:!1,filterOption:!1,allowClear:!0,showSearch:!0,onChange:P,onFocus:()=>O(void 0,a,r,m.remoteApi),onSearch:t=>O(t,a,r,m.remoteApi)},{children:a&&c(t)}),void 0);break;default:o=n.jsx(cx,{onPressEnter:P,onBlur:P,placeholder:e,type:l||"text"},void 0)}return o},P=async()=>{try{const t=await x.validateFields();let n={...r,...t};const a={DateTimePicker:"YYYY-MM-DD HH:mm:ss",DatePicker:"YYYY-MM-DD"};for(let t of e)t.valueType&&Object.keys(a).includes(t.valueType)&&"string"==typeof t.dataIndex&&n[t.dataIndex]&&(n[t.dataIndex]=g.default(n[t.dataIndex]).format(a[t.valueType]));f&&(n=await f(n)||n),v(n)}catch(t){console.log("保存表单字段失败:",t)}};let N=h;return i?N=n.jsx(Mk.Item,Object.assign({style:{margin:0},name:a,rules:b?b.rules:void 0},{children:S(c,o)}),void 0):c&&(!s||"Select"!==c&&"AutoComplete"!==c||(N=kI(s,r[a])),r[u]&&"RecordSelect"===c&&(N=kI(r[u],r[a]))),d&&(N=d(r,N)),n.jsx("td",Object.assign({},y,{title:r&&r[a]},{children:N}),void 0)};function _z(t){var e=null;return function(){return null==e&&(e=t()),e}}function Fz(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}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=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),Vz(this,"entered",[]),Vz(this,"isNodeInDocument",void 0),this.isNodeInDocument=e}var e,n,r;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,r=function(t){return n.add(t)};t.forEach(r),e.forEach(r);var a=[];return n.forEach((function(t){return a.push(t)})),a}(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,r=this.entered.length;return this.entered=(e=this.entered.filter(this.isNodeInDocument),n=t,e.filter((function(t){return t!==n}))),r>0&&0===this.entered.length}},{key:"reset",value:function(){this.entered=[]}}])&&Fz(e.prototype,n),r&&Fz(e,r),t}(),Hz=_z((function(){return/firefox/i.test(navigator.userAgent)})),Bz=_z((function(){return Boolean(window.safari)}));function Uz(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Wz(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Yz=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),Wz(this,"xs",void 0),Wz(this,"ys",void 0),Wz(this,"c1s",void 0),Wz(this,"c2s",void 0),Wz(this,"c3s",void 0);for(var r=e.length,a=[],o=0;o<r;o++)a.push(o);a.sort((function(t,n){return e[t]<e[n]?-1:1}));for(var i,l,c=[],s=[],u=0;u<r-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,r;return e=t,(n=[{key:"interpolate",value:function(t){var e=this.xs,n=this.ys,r=this.c1s,a=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]+r[i]*d+a[i]*p+o[i]*d*p}}])&&Uz(e.prototype,n),r&&Uz(e,r),t}();function $z(t){var e=1===t.nodeType?t:t.parentElement;if(!e)return null;var n=e.getBoundingClientRect(),r=n.top;return{x:n.left,y:r}}function qz(t){return{x:t.clientX,y:t.clientY}}function Gz(t,e,n,r,a){var o,i,l="IMG"===(o=e).nodeName&&(Hz()||!(null!==(i=document.documentElement)&&void 0!==i&&i.contains(o))),c=$z(l?t:e),s={x:n.x-c.x,y:n.y-c.y},u=t.offsetWidth,d=t.offsetHeight,p=r.anchorX,f=r.anchorY,m=function(t,e,n,r){var a=t?e.width:n,o=t?e.height:r;return Bz()&&t&&(o/=window.devicePixelRatio,a/=window.devicePixelRatio),{dragPreviewWidth:a,dragPreviewHeight:o}}(l,e,u,d),h=m.dragPreviewWidth,g=m.dragPreviewHeight,b=a.offsetX,v=a.offsetY,y=0===v||v;return{x:0===b||b?b:new Yz([0,.5,1],[s.x,s.x/u*h,s.x+h-u]).interpolate(p),y:y?v:function(){var t=new Yz([0,.5,1],[s.y,s.y/d*g,s.y+g-d]).interpolate(f);return Bz()&&l&&(t+=(window.devicePixelRatio-1)*g),t}()}}var Xz,Zz="__NATIVE_FILE__",Qz="__NATIVE_URL__",Jz="__NATIVE_TEXT__",tA="__NATIVE_HTML__",eA=Object.freeze({__proto__:null,FILE:Zz,URL:Qz,TEXT:Jz,HTML:tA});function nA(t,e,n){var r=e.reduce((function(e,n){return e||t.getData(n)}),"");return null!=r?r:n}function rA(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var aA=(rA(Xz={},Zz,{exposeProperties:{files:function(t){return Array.prototype.slice.call(t.files)},items:function(t){return t.items},dataTransfer:function(t){return t}},matchesTypes:["Files"]}),rA(Xz,tA,{exposeProperties:{html:function(t,e){return nA(t,e,"")},dataTransfer:function(t){return t}},matchesTypes:["Html","text/html"]}),rA(Xz,Qz,{exposeProperties:{urls:function(t,e){return nA(t,e,"").split("\n")},dataTransfer:function(t){return t}},matchesTypes:["Url","text/uri-list"]}),rA(Xz,Jz,{exposeProperties:{text:function(t,e){return nA(t,e,"")},dataTransfer:function(t){return t}},matchesTypes:["Text","text/plain"]}),Xz);function oA(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function iA(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var lA=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),iA(this,"item",void 0),iA(this,"config",void 0),this.config=e,this.item={},this.initializeExposedProperties()}var e,n,r;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(r){n[r]={value:e.config.exposeProperties[r](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(){}}])&&oA(e.prototype,n),r&&oA(e,r),t}();function cA(t){if(!t)return null;var e=Array.prototype.slice.call(t.types||[]);return Object.keys(aA).filter((function(t){return aA[t].matchesTypes.some((function(t){return e.indexOf(t)>-1}))}))[0]||null}function sA(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function uA(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var dA=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),uA(this,"ownerDocument",null),uA(this,"globalContext",void 0),uA(this,"optionsArgs",void 0),this.globalContext=e,this.optionsArgs=n}var e,n,r;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}}])&&sA(e.prototype,n),r&&sA(e,r),t}();function pA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function fA(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?pA(Object(n),!0).forEach((function(e){hA(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):pA(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function mA(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function hA(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var gA=function(){function t(e,n,r){var a=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),hA(this,"options",void 0),hA(this,"actions",void 0),hA(this,"monitor",void 0),hA(this,"registry",void 0),hA(this,"enterLeaveCounter",void 0),hA(this,"sourcePreviewNodes",new Map),hA(this,"sourcePreviewNodeOptions",new Map),hA(this,"sourceNodes",new Map),hA(this,"sourceNodeOptions",new Map),hA(this,"dragStartSourceIds",null),hA(this,"dropTargetIds",[]),hA(this,"dragEnterTargetIds",[]),hA(this,"currentNativeSource",null),hA(this,"currentNativeHandle",null),hA(this,"currentDragSourceNode",null),hA(this,"altKeyPressed",!1),hA(this,"mouseMoveTimeoutTimer",null),hA(this,"asyncEndDragFrameId",null),hA(this,"dragOverTargetIds",null),hA(this,"lastClientOffset",null),hA(this,"hoverRafId",null),hA(this,"getSourceClientOffset",(function(t){var e=a.sourceNodes.get(t);return e&&$z(e)||null})),hA(this,"endDragNativeItem",(function(){a.isDraggingNativeItem()&&(a.actions.endDrag(),a.currentNativeHandle&&a.registry.removeSource(a.currentNativeHandle),a.currentNativeHandle=null,a.currentNativeSource=null)})),hA(this,"isNodeInDocument",(function(t){return Boolean(t&&a.document&&a.document.body&&a.document.body.contains(t))})),hA(this,"endDragIfSourceWasRemovedFromDOM",(function(){var t=a.currentDragSourceNode;null==t||a.isNodeInDocument(t)||a.clearCurrentDragSourceNode()&&a.monitor.isDragging()&&a.actions.endDrag()})),hA(this,"handleTopDragStartCapture",(function(){a.clearCurrentDragSourceNode(),a.dragStartSourceIds=[]})),hA(this,"handleTopDragStart",(function(t){if(!t.defaultPrevented){var e=a.dragStartSourceIds;a.dragStartSourceIds=null;var n=qz(t);a.monitor.isDragging()&&a.actions.endDrag(),a.actions.beginDrag(e||[],{publishSource:!1,getSourceClientOffset:a.getSourceClientOffset,clientOffset:n});var r=t.dataTransfer,o=cA(r);if(a.monitor.isDragging()){if(r&&"function"==typeof r.setDragImage){var i=a.monitor.getSourceId(),l=a.sourceNodes.get(i),c=a.sourcePreviewNodes.get(i)||l;if(c){var s=a.getCurrentSourcePreviewNodeOptions(),u=Gz(l,c,n,{anchorX:s.anchorX,anchorY:s.anchorY},{offsetX:s.offsetX,offsetY:s.offsetY});r.setDragImage(c,u.x,u.y)}}try{null==r||r.setData("application/json",{})}catch(t){}a.setCurrentDragSourceNode(t.target),a.getCurrentSourcePreviewNodeOptions().captureDraggingState?a.actions.publishDragSource():setTimeout((function(){return a.actions.publishDragSource()}),0)}else if(o)a.beginDragNativeItem(o);else{if(r&&!r.types&&(t.target&&!t.target.hasAttribute||!t.target.hasAttribute("draggable")))return;t.preventDefault()}}})),hA(this,"handleTopDragEndCapture",(function(){a.clearCurrentDragSourceNode()&&a.monitor.isDragging()&&a.actions.endDrag()})),hA(this,"handleTopDragEnterCapture",(function(t){if(a.dragEnterTargetIds=[],a.enterLeaveCounter.enter(t.target)&&!a.monitor.isDragging()){var e=t.dataTransfer,n=cA(e);n&&a.beginDragNativeItem(n,e)}})),hA(this,"handleTopDragEnter",(function(t){var e=a.dragEnterTargetIds;(a.dragEnterTargetIds=[],a.monitor.isDragging())&&(a.altKeyPressed=t.altKey,e.length>0&&a.actions.hover(e,{clientOffset:qz(t)}),e.some((function(t){return a.monitor.canDropOnTarget(t)}))&&(t.preventDefault(),t.dataTransfer&&(t.dataTransfer.dropEffect=a.getCurrentDropEffect())))})),hA(this,"handleTopDragOverCapture",(function(){a.dragOverTargetIds=[]})),hA(this,"handleTopDragOver",(function(t){var e=a.dragOverTargetIds;if(a.dragOverTargetIds=[],!a.monitor.isDragging())return t.preventDefault(),void(t.dataTransfer&&(t.dataTransfer.dropEffect="none"));a.altKeyPressed=t.altKey,a.lastClientOffset=qz(t),null===a.hoverRafId&&"undefined"!=typeof requestAnimationFrame&&(a.hoverRafId=requestAnimationFrame((function(){a.monitor.isDragging()&&a.actions.hover(e||[],{clientOffset:a.lastClientOffset}),a.hoverRafId=null}))),(e||[]).some((function(t){return a.monitor.canDropOnTarget(t)}))?(t.preventDefault(),t.dataTransfer&&(t.dataTransfer.dropEffect=a.getCurrentDropEffect())):a.isDraggingNativeItem()?t.preventDefault():(t.preventDefault(),t.dataTransfer&&(t.dataTransfer.dropEffect="none"))})),hA(this,"handleTopDragLeaveCapture",(function(t){a.isDraggingNativeItem()&&t.preventDefault(),a.enterLeaveCounter.leave(t.target)&&a.isDraggingNativeItem()&&setTimeout((function(){return a.endDragNativeItem()}),0)})),hA(this,"handleTopDropCapture",(function(t){var e;(a.dropTargetIds=[],a.isDraggingNativeItem())?(t.preventDefault(),null===(e=a.currentNativeSource)||void 0===e||e.loadDataTransfer(t.dataTransfer)):cA(t.dataTransfer)&&t.preventDefault();a.enterLeaveCounter.reset()})),hA(this,"handleTopDrop",(function(t){var e=a.dropTargetIds;a.dropTargetIds=[],a.actions.hover(e,{clientOffset:qz(t)}),a.actions.drop({dropEffect:a.getCurrentDropEffect()}),a.isDraggingNativeItem()?a.endDragNativeItem():a.monitor.isDragging()&&a.actions.endDrag()})),hA(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 dA(n,r),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new Kz(this.isNodeInDocument)}var e,n,r;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 r=this;return this.sourcePreviewNodeOptions.set(t,n),this.sourcePreviewNodes.set(t,e),function(){r.sourcePreviewNodes.delete(t),r.sourcePreviewNodeOptions.delete(t)}}},{key:"connectDragSource",value:function(t,e,n){var r=this;this.sourceNodes.set(t,e),this.sourceNodeOptions.set(t,n);var a=function(e){return r.handleDragStart(e,t)},o=function(t){return r.handleSelectStart(t)};return e.setAttribute("draggable","true"),e.addEventListener("dragstart",a),e.addEventListener("selectstart",o),function(){r.sourceNodes.delete(t),r.sourceNodeOptions.delete(t),e.removeEventListener("dragstart",a),e.removeEventListener("selectstart",o),e.setAttribute("draggable","false")}}},{key:"connectDropTarget",value:function(t,e){var n=this,r=function(e){return n.handleDragEnter(e,t)},a=function(e){return n.handleDragOver(e,t)},o=function(e){return n.handleDrop(e,t)};return e.addEventListener("dragenter",r),e.addEventListener("dragover",a),e.addEventListener("drop",o),function(){e.removeEventListener("dragenter",r),e.removeEventListener("dragover",a),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 fA({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 fA({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(t)||{})}},{key:"isDraggingNativeItem",value:function(){var t=this.monitor.getItemType();return Object.keys(eA).some((function(e){return eA[e]===t}))}},{key:"beginDragNativeItem",value:function(t,e){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(t,e){var n=new lA(aA[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)}}])&&mA(e.prototype,n),r&&mA(e,r),t}();const bA=function(t,e,n){return new gA(t,e,n)},vA=t=>n.jsx(MM,Object.assign({backend:bA,context:window},{children:t.children}),void 0);y(".ant-table-wrapper .ant-table-thead>tr>th{font-weight:700}.ant-table-wrapper .ant-table-tbody>tr>td,.ant-table-wrapper .ant-table-thead>tr>td,.ant-table-wrapper .ant-table-thead>tr>th{padding:6px 8px}.ant-table-wrapper .ant-table-tbody>tr>td.ant-table-cell .ant-form-item .ant-form-item-control-input{min-height:auto}.ant-table-wrapper .ant-table-tbody .btn-operate{width:26px;height:26px}.ant-table-wrapper .ant-table-pagination.ant-pagination{margin-top:10px;margin-bottom:10px;padding-top:10px;padding-bottom:10px}.ant-table-wrapper .react-resizable{position:relative;background-clip:padding-box}.ant-table-wrapper .react-resizable-handle{position:absolute;right:-5px;bottom:0;z-index:1;width:10px;height:100%;cursor:col-resize}");var yA=t.forwardRef(((e,r)=>{const a=t.useMemo((()=>{const t=e.extra||{};return{tableConfig:t.tableConfig,rowType:t.rowType,scroll:t.scroll,apiMethod:t.apiMethod,columns:t.columns||[],data:t.data,controlled:t.controlled,drag:t.drag,onSelect:t.onSelect,paginationConfig:t.paginationConfig,getCheckboxProps:t.getCheckboxProps,resultFilter:t.resultFilter,getTableSuccessData:t.getTableSuccessData}}),[e.extra]),o=t.useRef();let i=t.useRef(!0);const l=t.useRef({position:["bottomCenter"],size:"small",current:1,total:0,pages:0,pageSize:10,showSizeChanger:!0,orderByInfo:void 0}),c=t.useRef([]),s=t.useRef([]),[u,d]=t.useState(a.columns),[f,m]=t.useState(!1),[h,g]=t.useState([]),[b,v]=C.useSetState({selectRowIds:[],selectRowArray:[]}),[y,x]=t.useState({x:void 0,y:330}),w=t.useMemo((()=>a.tableConfig&&a.tableConfig.rowKey?a.tableConfig.rowKey:"id"),[a.tableConfig]),k=t.useCallback((async t=>{let e=!0;m(!0),t&&(void 0!==t.updateSelected&&(e=t.updateSelected,delete t.updateSelected),"not-reset"===t.pagination&&delete t.pagination,o.current={...o.current,...t});try{const n={...o.current};for(let t in l.current){const e=l.current[t];"orderByInfo"===t&&(n.orderByInfo=e),"current"===t&&(n.page=e),"pageSize"===t&&(n.size=n.size||e)}if(t&&t.current&&(n.page=t.current,l.current.current=t.current),a.apiMethod){delete n.current;const t=await a.apiMethod(p.default.pickBy(n,p.default.identity));let r=[];p.default.isArray(t.data.content)&&(!1!==a.paginationConfig?i.current=!0:i.current=!1,r=t.data.content,l.current.total=t.data.total,l.current.pages=t.data.pages),p.default.isArray(t.data)&&(i.current=!1,r=t.data),a.resultFilter&&(r=await a.resultFilter(r)),e&&v((t=>{let e=[...t.selectRowIds],n=[...t.selectRowArray];const a=r=>{if(t.selectRowIds.length)for(let o of r){for(let r of t.selectRowIds)o[w]===r&&(e.push(r),n.push(o));o.children&&a(o.children)}};return a(r),t.selectRowIds=p.default.unionBy(e),t.selectRowArray=p.default.unionBy(n,w),t})),g(r),a.getTableSuccessData&&a.getTableSuccessData(t)}}catch(t){}m(!1)}),[a,w,v]),E={fixed:!0,type:a.rowType,selectedRowKeys:b.selectRowIds,getCheckboxProps:a.getCheckboxProps,onSelectAll:(t,e,n)=>{v((e=>{let r=[...e.selectRowIds],o=[...e.selectRowArray];return t?(r=p.default.uniq([...r,...n.map((t=>t[w]))]),o=p.default.uniqBy([...o,...n],w)):(r=r.filter((t=>!n.some((e=>e[w]===t)))),o=o.filter((t=>!n.some((e=>e[w]===t[w]))))),a.onSelect&&a.onSelect(o,r),e.selectRowIds=r,e.selectRowArray=o,e}))},onSelect:(t,e)=>{v((n=>{let r=[...n.selectRowIds],o=[...n.selectRowArray];return"checkbox"===a.rowType&&(e?(r.push(t[w]),o.push(t)):(r=r.filter((e=>e!==t[w])),o=o.filter((e=>e[w]!==t[w])))),"radio"===a.rowType&&e&&(r=[t[w]],o=[t]),a.onSelect&&a.onSelect(o,r),n.selectRowIds=r,n.selectRowArray=o,n}))}},O=t.useCallback((t=>n.jsx(Lz,Object.assign({},t,{columns:u}),void 0)),[u]),S=t=>(e,{size:n})=>{d((e=>{const r=[...e];return r[t]={...r[t],width:n.width},c.current=r,r}))},P=t.useCallback((t=>{const e=!1===a.controlled?s.current:[...h],n=e.findIndex((e=>t[w]===e[w])),r=e[n];e.splice(n,1,{...r,...t}),!1===a.controlled?s.current=e:g(e)}),[w,h,a.controlled]),N=t.useCallback((async(t,e)=>{const n=h[t],r=AI(h,{$splice:[[t,1],[e,0,n]]});m(!0);try{if(a.drag){const n=JSON.parse(JSON.stringify(r)),o=JSON.parse(JSON.stringify(h)),i=[t,e].sort();!1!==await a.drag.moveRow(t,e,n,o,n.slice(i[0],i[1]+1))&&g(n)}}finally{m(!1)}}),[a.drag,h]);return t.useEffect((()=>{(async()=>{let t=[...a.columns];t.some((t=>"sequence"===t.dataIndex))||t.unshift({width:55,fixed:"left",title:"序号",dataIndex:"sequence",render:(t,e,n)=>{const r=l.current;return Object.keys(r).length?((r.current||0)-1)*(r.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 r={...n,onHeaderCell:t=>({width:t.width,onResize:S(e)}),onCell:(t,e)=>({record:t,dataIndex:n.dataIndex,title:n.title,editable:"function"==typeof n.editable?n.editable(t,e):n.editable,inputType:n.inputType,valueType:n.valueType,valueEnum:n.valueEnum,recordSelectField:n.recordSelectField,controlRender:n.controlRender,formChange:n.formChange,remoteConfig:n.remoteConfig,formItemProps:n.formItemProps,handleSave:P})},a=c.current.find((t=>t.dataIndex===n.dataIndex&&t.title===n.title));a&&(r.width=a.width),t[e]=r}d(t)})()}),[a.columns,P]),t.useEffect((()=>{v((t=>{let e=[];const n=t=>{for(let r of t){for(let t of b.selectRowIds)r[w]===t&&e.push(r);r.children&&n(r.children)}};return b.selectRowIds.length&&(n(h),e=p.default.unionBy([...t.selectRowArray,...e],w)),t.selectRowArray=e,t}))}),[w,h,v,b.selectRowIds]),t.useEffect((()=>{p.default.isArray(a.data)&&g(a.data||[])}),[a.data]),t.useEffect((()=>{s.current=JSON.parse(JSON.stringify(h))}),[h]),t.useEffect((()=>{const t=document.getElementById("slider-menu"),e=document.getElementById("router-render");if(void 0!==a.scroll?.x||void 0!==a.scroll?.y)x((t=>({...t,...a.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)))}}),[a.scroll]),t.useEffect((()=>{a.paginationConfig&&(l.current={...l.current,...a.paginationConfig})}),[a.paginationConfig]),t.useImperativeHandle(r,(()=>({setTableLoading:t=>{m(t)},getPages:()=>({...l.current}),getTableList:async(t,e)=>{t&&("not-reset"===t.pagination?t.current=l.current.current:void 0===t.current&&(t.current=1),t.clearSelectIds&&(delete t.clearSelectIds,v((t=>(t.selectRowArray=[],t.selectRowIds=[],t))))),await k(t),e&&e()},setRowSelected:(t,e)=>{let n=t;!0===e&&(n=Array.from(new Set([...b.selectRowIds,...t]))),v({selectRowIds:n})},getSelectIds:()=>b.selectRowIds,clearSelectIds:()=>{v({selectRowIds:[],selectRowArray:[]})},getSelectRowsArray:()=>b.selectRowArray,removeSelectIds:t=>{v({selectRowIds:b.selectRowIds.filter((e=>{let n=!0;for(let r of t)if(r===e){n=!1;break}return n})),selectRowArray:b.selectRowArray.filter((e=>{let n=!0;for(let r of t)if(r===e[w]){n=!1;break}return n}))})},getStaticDataList:()=>!1===a.controlled?[...s.current]:[...h],setStaticDataList:(t,e)=>{if("[object Object]"===Object.prototype.toString.call(t)){let e=t;g(h.map((n=>(n[w]===e[w]&&(n=t),n))))}"[object Array]"===Object.prototype.toString.call(t)&&g(t),e&&e()}}))),n.jsx(II,{children:n.jsx(vA,{children:n.jsx(FP,Object.assign({rowKey:"id",rowClassName:"editable-row",loading:f,bordered:!0,components:{header:{cell:AD},body:{row:Az,cell:O}},onRow:(t,e)=>({index:e,moveRow:N,open:a.drag&&a.drag.open}),columns:u,dataSource:h,rowSelection:a.rowType?E:void 0,pagination:!(!p.default.isFunction(a.apiMethod)||!i.current)&&{size:"small",position:["bottomCenter"],showTotal:t=>`共${t}条`,showSizeChanger:!0,showQuickJumper:!0,...l.current},onChange:(t,e,n)=>{const{order:r}=n;t.orderByInfo=void 0,r&&(t.orderByInfo=`${n.field}:${"ascend"===r?1:-1}`),(t=>{!p.default.isEqual(t,l.current)&&i.current&&(l.current={...l.current,...t},k())})(t)},scroll:y},a.tableConfig),void 0)},void 0)},void 0)}));y("");const xA=t=>{const e={...t};return delete e.outerHeight,n.jsx(Ey,Object.assign({className:"empty-wrap",style:{minHeight:t&&t.outerHeight?t.outerHeight:400},align:"middle",justify:"center"},{children:n.jsx(br,Object.assign({description:"暂无数据"},e),void 0)}),void 0)};y(".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:wA,Paragraph:kA}=uT;var CA=t.forwardRef((function(e,r){const a=t.useRef(null),o=t.useRef(),[i,l]=C.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=[],r=[];"all"===t&&o.current.clearSelectIds(),"odd"===t&&e&&(n=[e[c]],r=i.selectedRows.filter((t=>t[c]!==e[c])),o.current.removeSelectIds(n)),l({selectedRows:r})}},d=t.useCallback((async()=>{if(a.current&&o.current){let t=await a.current.formSubmit();if(t&&Object.keys(t).length){for(let e in t){const n="YYYY-MM-DD HH:mm:ss";g.default(t[e],n,!0).isValid()&&(t[e]=g.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(a.current){let t=[];const n=e.searchNoResetFiled||[];if(e.searchFormList)for(let r of e.searchFormList){if(r.unionConfig)for(let e of r.unionConfig.unionItems)e.name&&!n.includes(e.name)&&t.push(e.name);r.name&&!n.includes(r.name)&&t.push(r.name)}a.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(r,(()=>({...a.current,...o.current,setSavaLoading:t=>{l({saveLoading:t})}}))),n.jsxs(gI,Object.assign({className:"from-table-modal",width:e.width,visible:e.visible,title:e.title||"弹窗",onCancel:e.onCancel,forceRender:!0,maskClosable:!1,footer:null},{children:[e.topExtra,e.searchFormList?n.jsx(zI,{ref:a,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(XE,Object.assign({size:10},{children:[n.jsx(Jp,Object.assign({type:"primary",onClick:()=>{d()}},{children:"查询"}),void 0),n.jsx(Jp,Object.assign({className:"btn-reset",onClick:p},{children:"重置"}),void 0)]}),void 0):n.jsx(n.Fragment,{},void 0)},void 0):null,n.jsxs(Ey,Object.assign({},e.rowProps,{children:[e.leftSlot?n.jsx(Py,Object.assign({},e.leftSlot.colProps,{children:e.leftSlot.jsx}),void 0):null,n.jsx(Py,Object.assign({},e.colProps,{children:n.jsxs(Ey,Object.assign({gutter:10},{children:[n.jsx(Py,Object.assign({span:e.openSelected&&e.openSelected.visible?16:24},{children:n.jsx(yA,{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 r={};const a=t.find((t=>t[c]===n));if(r[c]=n,e.openSelected&&e.openSelected.fileName&&(r[e.openSelected.fileName]=n),a&&(r=a),e.openSelected){const t=e.openSelected.fileName,a=e.openSelected.defaultValues;if(t&&a){const e=a.find((t=>t[c]===n));e&&(r[t]=e[t])}}return r}))})})(t,n),e.onSelect&&e.onSelect(t,n)},getTableSuccessData:e.getTableSuccessData,tableConfig:e.tableColumnsList.tableConfig,scroll:{x:"max-content"}}},void 0)}),void 0),e.openSelected&&e.openSelected.visible?n.jsx(Py,Object.assign({span:8},{children:n.jsx(jy,Object.assign({title:"已选列表",size:"small",bodyStyle:{height:e.openSelected.height||330,overflowY:"auto"},extra:n.jsx(wA,Object.assign({onClick:()=>u("all")},{children:"全部移除"}),void 0)},{children:i.selectedRows.length?i.selectedRows.map((t=>{const r=t[c],a=t[e.openSelected?.fileName];return n.jsxs(Ey,Object.assign({gutter:12},{children:[n.jsx(Py,Object.assign({span:11,title:a},{children:n.jsx(kA,Object.assign({ellipsis:!0},{children:a}),void 0)}),void 0),n.jsx(Py,Object.assign({span:9,title:r},{children:n.jsx(kA,Object.assign({ellipsis:!0},{children:r}),void 0)}),void 0),n.jsx(Py,Object.assign({span:4},{children:n.jsx(wA,Object.assign({onClick:()=>u("odd",t)},{children:"移除"}),void 0)}),void 0)]}),r)})):n.jsx(xA,{outerHeight:200},void 0)}),void 0)}),void 0):null]}),void 0)}),void 0),e.rightSlot?n.jsx(Py,Object.assign({},e.rightSlot.colProps,{children:e.rightSlot.jsx}),void 0):null]}),void 0),n.jsx(Ey,Object.assign({className:"from-table-modal-foot",justify:"center"},{children:n.jsx(Py,{children:n.jsxs(XE,Object.assign({size:20},{children:[e.onCancel?n.jsx(Jp,Object.assign({onClick:()=>e.onCancel&&e.onCancel()},{children:"关闭"}),void 0):null,e.onConfirm?n.jsx(Jp,Object.assign({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}),Ei.warn(t,1.5)})))}},{children:"确定"}),void 0):null]}),void 0)},void 0)}),void 0)]}),void 0);var f})),EA={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"},OA=function(e,n){return t.createElement(Yo,ye(ye({},e),{},{ref:n,icon:EA}))};OA.displayName="LeftCircleFilled";var SA=t.forwardRef(OA),PA={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"},NA=function(e,n){return t.createElement(Yo,ye(ye({},e),{},{ref:n,icon:PA}))};NA.displayName="RightCircleFilled";var jA=t.forwardRef(NA);y(".quickly-form-modal .ant-modal-body{padding-top:15px}.quickly-form-modal .quickly-form-modal-foot{margin-top:20px}");y(".form-modal .ant-modal-body{padding-top:15px}.form-modal .ant-modal-body .modal-form-height{max-height:580px;padding-right:5px;overflow-x:hidden;overflow-y:auto}.form-modal .ant-modal-body .modal-form-height .generate-form.ant-form-horizontal.ant-form .ant-row.ant-form-item{margin-bottom:4px}.form-modal .form-modal-foot{margin-top:20px}");var TA=t.forwardRef(((e,r)=>{const a=t.useRef(),[o,i]=C.useSetState({loading:!1,saveLoading:!1,disabled:!1}),l=async()=>{let t=await(a.current?.formSubmit());if(t){if(t.endTime&&t.startTime&&g.default(t.endTime).isBefore(t.startTime))return void Ei.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";g.default(t[e],n,!0).isValid()&&(t[e]=g.default(t[e]).format(n))}if(e.manualParameterChange&&(t=e.manualParameterChange(t)),e.manualVerification&&!e.manualVerification(t))return console.warn("手动验证表单不通过"),void i({saveLoading:!1});t=p.default.omitBy(t,p.default.isNil),e.submitApi&&t?(e.id?(t.id=e.id,n=await e.submitApi(t,"put")):n=await e.submitApi(t,"post"),1===n.code&&(e.onConfirm&&e.onConfirm(n),Ei.success("操作成功",1.5),e.onCancel&&e.onCancel()),i({saveLoading:!1})):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(r,(()=>({setFormLoading:t=>{i({loading:t})},setFormSaveLoading:t=>{i({saveLoading:t})},setFormFields:t=>{a.current&&a.current.setFormFields(t)},getFormValues:t=>a.current?.getFormValues(t),setFormValues:t=>{a.current&&a.current.setFormValues(t)},excludeFormSubmitValues:async t=>{if(a.current){const n=e.formList.filter((e=>!t?.includes(e.name)));return await(a.current?.formSubmit(n.map((t=>t.name))))}return{}},getFormSubmitValues:async t=>a.current?await(a.current?.formSubmit(t)):{}}))),n.jsx(gI,Object.assign({className:"form-modal",width:e.width?e.width:600,visible:e.visible,title:e.title||"对话框",onCancel:e.onCancel,destroyOnClose:!0,maskClosable:!1,footer:null},{children:n.jsxs(eC,Object.assign({spinning:o.loading},{children:[n.jsxs("div",Object.assign({className:"modal-form-height"},{children:[e.topRender?e.topRender:null,n.jsx(zI,{ref:a,formConfig:{labelCol:{span:24},...e.formConfig},rowGridConfig:{gutter:[20,0]},colGirdConfig:e.colGirdConfig||{span:12},list:e.formList},void 0),e.children&&e.children]}),void 0),(()=>{const r=(()=>{const t=[n.jsx(Jp,Object.assign({onClick:()=>e.onCancel&&e.onCancel()},{children:"关闭"}),-1)];return o.disabled||t.push(n.jsx(Jp,Object.assign({type:"primary",loading:o.saveLoading,onClick:l},{children:"提交"}),-2)),t})(),a=t=>n.jsx(Ey,Object.assign({className:"form-modal-foot",justify:"center"},{children:n.jsx(Py,{children:n.jsx(XE,Object.assign({size:20},{children:t}),void 0)},void 0)}),void 0);if(e.footer)return e.footer;if(e.footBtnList){const{model:n,data:o}=e.footBtnList,i=o.map(((e,n)=>{const{children:r,...a}=e;return t.createElement(Jp,{...a,key:n},r)}));if("new"===n)return a(i);if("before"===n)return a([...i,...r]);if("after"===n)return a([...r,...i])}return a(r)})()]}),void 0)}),void 0)}));y('@import "https://at.alicdn.com/t/font_2381668_l6oy3doglyo.css";.icon-selected-modal .avatar-selected{display:flex;align-items:center;justify-content:center;width:36px;height:36px;overflow:hidden;border:2px solid #fff;border-radius:4px;cursor:pointer}.icon-selected-modal .avatar-selected.avatar-selected-bg{border-color:#5860f8}.icon-selected-modal .icon-selected-foot{margin-top:20px}');
|
|
39
39
|
/*! *****************************************************************************
|
|
40
40
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
41
41
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|