@kordar/easyui 1.0.0
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/dist/7f4f2d68782a7faf.png +0 -0
- package/dist/icons-ext/add.png +0 -0
- package/dist/icons-ext/add2.png +0 -0
- package/dist/icons-ext/add3.png +0 -0
- package/dist/icons-ext/cancel.png +0 -0
- package/dist/icons-ext/captcha.png +0 -0
- package/dist/icons-ext/captcha2.png +0 -0
- package/dist/icons-ext/del.png +0 -0
- package/dist/icons-ext/del2.png +0 -0
- package/dist/icons-ext/del3.png +0 -0
- package/dist/icons-ext/del4.png +0 -0
- package/dist/icons-ext/diaoseban.png +0 -0
- package/dist/icons-ext/diaoseban1.png +0 -0
- package/dist/icons-ext/download-excel.png +0 -0
- package/dist/icons-ext/download-excel2.png +0 -0
- package/dist/icons-ext/download.png +0 -0
- package/dist/icons-ext/edit.png +0 -0
- package/dist/icons-ext/edit2.png +0 -0
- package/dist/icons-ext/edit3.png +0 -0
- package/dist/icons-ext/language.png +0 -0
- package/dist/icons-ext/language2.png +0 -0
- package/dist/icons-ext/language3.png +0 -0
- package/dist/icons-ext/list.png +0 -0
- package/dist/icons-ext/list1.png +0 -0
- package/dist/icons-ext/list2.png +0 -0
- package/dist/icons-ext/list3.png +0 -0
- package/dist/icons-ext/list4.png +0 -0
- package/dist/icons-ext/list5.png +0 -0
- package/dist/icons-ext/logout.png +0 -0
- package/dist/icons-ext/logout1.png +0 -0
- package/dist/icons-ext/logout2.png +0 -0
- package/dist/icons-ext/menu.png +0 -0
- package/dist/icons-ext/menu2.png +0 -0
- package/dist/icons-ext/msg-alert.png +0 -0
- package/dist/icons-ext/msg-error.png +0 -0
- package/dist/icons-ext/msg-info.png +0 -0
- package/dist/icons-ext/msg-question.png +0 -0
- package/dist/icons-ext/msg-success.png +0 -0
- package/dist/icons-ext/msg-warn.png +0 -0
- package/dist/icons-ext/ok.png +0 -0
- package/dist/icons-ext/ok2.png +0 -0
- package/dist/icons-ext/password.png +0 -0
- package/dist/icons-ext/password3.png +0 -0
- package/dist/icons-ext/permissions.png +0 -0
- package/dist/icons-ext/refresh.png +0 -0
- package/dist/icons-ext/refresh2.png +0 -0
- package/dist/icons-ext/roles.png +0 -0
- package/dist/icons-ext/roles1.png +0 -0
- package/dist/icons-ext/save.png +0 -0
- package/dist/icons-ext/save1.png +0 -0
- package/dist/icons-ext/save2.png +0 -0
- package/dist/icons-ext/search.png +0 -0
- package/dist/icons-ext/search1.png +0 -0
- package/dist/icons-ext/setting.png +0 -0
- package/dist/icons-ext/setting1.png +0 -0
- package/dist/icons-ext/setting2.png +0 -0
- package/dist/icons-ext/setting3.png +0 -0
- package/dist/icons-ext/tianchongxing-.png +0 -0
- package/dist/icons-ext/upload-excel.png +0 -0
- package/dist/icons-ext/upload-excel2.png +0 -0
- package/dist/icons-ext/upload.png +0 -0
- package/dist/icons-ext/upload2.png +0 -0
- package/dist/icons-ext/upload3.png +0 -0
- package/dist/icons-ext/user.png +0 -0
- package/dist/icons-ext/user1.png +0 -0
- package/dist/icons-ext/user2.png +0 -0
- package/dist/icons-ext/user3.png +0 -0
- package/dist/icons-ext/user4.png +0 -0
- package/dist/icons-ext/username.png +0 -0
- package/dist/icons-ext/username2.png +0 -0
- package/dist/icons-ext/warn.png +0 -0
- package/dist/icons-ext/warn1.png +0 -0
- package/dist/icons-ext/zidianxiang.png +0 -0
- package/dist/icons-ext/zidianxiang2.png +0 -0
- package/dist/icons-ext/zidianxiang3.png +0 -0
- package/dist/index.js +10 -0
- package/dist/index.min.css +1 -0
- package/dist/index.umd.cjs +10 -0
- package/dist/types/components/access.d.ts +3 -0
- package/dist/types/components/layouts/admin-layout.d.ts +23 -0
- package/dist/types/components/message/alert-messager.d.ts +9 -0
- package/dist/types/components/message/interactive-messager.d.ts +9 -0
- package/dist/types/components/message/notification.d.ts +9 -0
- package/dist/types/components/message/toast.d.ts +8 -0
- package/dist/types/components/panel/breadcrumb.d.ts +17 -0
- package/dist/types/components/panel/default-panel.d.ts +9 -0
- package/dist/types/components/panel/drawer.d.ts +9 -0
- package/dist/types/components/panel/tabs.d.ts +21 -0
- package/dist/types/composable/useLocale.d.ts +5 -0
- package/dist/types/composable/useRefDialog.d.ts +2 -0
- package/dist/types/composable/useTheme.d.ts +5 -0
- package/dist/types/index.d.ts +18 -0
- package/dist/types/util/easyui.d.ts +8 -0
- package/dist/types/util/inter.d.ts +11 -0
- package/dist/types/util/message.d.ts +8 -0
- package/package.json +66 -0
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
var e=["reducerPath"];function t(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */t=function(){return n};var e,n={},r=Object.prototype,o=r.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},c=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function f(e,t,n,r){var o=t&&t.prototype instanceof b?t:b,a=Object.create(o.prototype),c=new T(r||[]);return i(a,"_invoke",{value:j(e,n,c)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}n.wrap=f;var p="suspendedStart",h="suspendedYield",v="executing",y="completed",m={};function b(){}function g(){}function w(){}var E={};l(E,c,(function(){return this}));var _=Object.getPrototypeOf,N=_&&_(_(A([])));N&&N!==r&&o.call(N,c)&&(E=N);var S=w.prototype=b.prototype=Object.create(E);function k(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function D(e,t){function n(r,i,a,c){var u=d(e[r],e,i);if("throw"!==u.type){var s=u.arg,l=s.value;return l&&"object"==O(l)&&o.call(l,"__await")?t.resolve(l.__await).then((function(e){n("next",e,a,c)}),(function(e){n("throw",e,a,c)})):t.resolve(l).then((function(e){s.value=e,a(s)}),(function(e){return n("throw",e,a,c)}))}c(u.arg)}var r;i(this,"_invoke",{value:function(e,o){function i(){return new t((function(t,r){n(e,o,t,r)}))}return r=r?r.then(i,i):i()}})}function j(t,n,r){var o=p;return function(i,a){if(o===v)throw Error("Generator is already running");if(o===y){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var c=r.delegate;if(c){var u=x(c,r);if(u){if(u===m)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=v;var s=d(t,n,r);if("normal"===s.type){if(o=r.done?y:h,s.arg===m)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=y,r.method="throw",r.arg=s.arg)}}}function x(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,x(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var i=d(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function C(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function A(t){if(t||""===t){var n=t[c];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function n(){for(;++r<t.length;)if(o.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(O(t)+" is not iterable")}return g.prototype=w,i(S,"constructor",{value:w,configurable:!0}),i(w,"constructor",{value:g,configurable:!0}),g.displayName=l(w,s,"GeneratorFunction"),n.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,l(e,s,"GeneratorFunction")),e.prototype=Object.create(S),e},n.awrap=function(e){return{__await:e}},k(D.prototype),l(D.prototype,u,(function(){return this})),n.AsyncIterator=D,n.async=function(e,t,r,o,i){void 0===i&&(i=Promise);var a=new D(f(e,t,r,o),i);return n.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},k(S),l(S,s,"Generator"),l(S,c,(function(){return this})),l(S,"toString",(function(){return"[object Generator]"})),n.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},n.values=A,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(r,o){return c.type="throw",c.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var u=o.call(a,"catchLoc"),s=o.call(a,"finallyLoc");if(u&&s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:A(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),m}},n}function n(e,t,n,r,o,i,a){try{var c=e[i](a),u=c.value}catch(e){return void n(e)}c.done?t(u):Promise.resolve(u).then(r,o)}function r(e){return function(){var t=this,r=arguments;return new Promise((function(o,i){var a=e.apply(t,r);function c(e){n(a,o,i,c,u,"next",e)}function u(e){n(a,o,i,c,u,"throw",e)}c(void 0)}))}}function o(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=g(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}function i(e,t,n){return t=f(t),function(e,t){if(t&&("object"==O(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,s()?Reflect.construct(t,n||[],f(e).constructor):t.apply(e,n))}function a(){return a="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=f(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},a.apply(null,arguments)}function c(e){var t="function"==typeof Map?new Map:void 0;return c=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return u(e,arguments,f(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),l(n,e)},c(e)}function u(e,t,n){if(s())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&l(o,n.prototype),o}function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(s=function(){return!!e})()}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_(r.key),r)}}function h(e,t,n){return t&&p(e.prototype,t),n&&p(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,c=[],u=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(e,t)||g(e,t)||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 y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){E(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function b(e){return function(e){if(Array.isArray(e))return w(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||g(e)||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 g(e,t){if(e){if("string"==typeof e)return w(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?w(e,t):void 0}}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function E(e,t,n){return(t=_(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _(e){var t=function(e,t){if("object"!=O(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=O(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==O(t)?t:t+""}function O(e){return O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},O(e)}import*as N from"react";import S,{useRef as k,useState as D,forwardRef as j,useImperativeHandle as x,useEffect as C}from"react";import{setLanguage as P}from"@kordar-lib/i18n";import{get as T}from"lodash-es";import{SwitchListImagesHooks as A,CheckAccessHooks as V,FormDataHooks as R,TableSelectionHooks as I,CheckboxAllHooks as L,DialogHooks as z,RefDialogHooks as M,FormDialogHooks as F,SwitchListImagesHookType as B,CheckAccessEleType as H,CheckboxAllHookState as q,FormDialogHookType as W,DefaultTableContext as G,executeCondition as U,Mutex as K}from"@kordar-lib/base";import{MenuTree as Y}from"@kordar-lib/menus";import{Messager as X,SideMenu as $,Tabs as J,TabPanel as Q,Panel as Z}from"rc-easyui";import ee from"react-dom";import te from"rc-drawer";var ne=S.createRef(),re=S.createRef(),oe=S.createRef();function ie(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Alert",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Here is a message!",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"warn",o=arguments.length>3?arguments[3]:void 0;return null===(e=ne.current)||void 0===e?void 0:e.alert({title:t,msg:n,icon:"k iconfont icon-msg-"+r,content:o})}function ae(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Confirm",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Are you confirm this?",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"warn",o=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0;return null===(e=re.current)||void 0===e?void 0:e.prompt({title:t,msg:n,icon:"k iconfont icon-msg-"+r,content:o,result:function(e){e?i&&i():a&&a()}})}function ce(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Prompt",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Please type something",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"warn",o=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0;return null===(e=oe.current)||void 0===e?void 0:e.confirm({title:t,msg:n,icon:"k iconfont icon-msg-"+r,content:o,result:function(e){e?i&&i(e):a&&a()}})}function ue(e,t){return e.forEach((function(e){-1!==t.findIndex((function(t){return t==e.id}))?(e.state="open",e.selected=!0):(e.state="closed",e.selected=!1)})),e}function se(e,t,n){for(var r=[],o=0;o<e.length;o++){var i=e[o];r.push({value:i[t],text:i[n]})}return r}function le(e){return"Minified Redux error #".concat(e,"; visit https://redux.js.org/Errors?code=").concat(e," for the full message or use the non-minified dev environment for full errors. ")}var fe=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}(),de=function(){return Math.random().toString(36).substring(7).split("").join(".")},pe={INIT:"@@redux/INIT".concat(de()),REPLACE:"@@redux/REPLACE".concat(de()),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION".concat(de())}};function he(e){if("object"!==O(e)||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function ve(e){if(void 0===e)return"undefined";if(null===e)return"null";var t=O(e);switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(function(e){return e instanceof Date||"function"==typeof e.toDateString&&"function"==typeof e.getDate&&"function"==typeof e.setDate}(e))return"date";if(function(e){return e instanceof Error||"string"==typeof e.message&&e.constructor&&"number"==typeof e.constructor.stackTraceLimit}(e))return"error";var n=function(e){return"function"==typeof e.constructor?e.constructor.name:null}(e);switch(n){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return n}return Object.prototype.toString.call(e).slice(8,-1).toLowerCase().replace(/\s/g,"")}function ye(e){var t=O(e);return"production"!==process.env.NODE_ENV&&(t=ve(e)),t}function me(e,t,n){if("function"!=typeof e)throw new Error("production"===process.env.NODE_ENV?le(2):"Expected the root reducer to be a function. Instead, received: '".concat(ye(e),"'"));if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error("production"===process.env.NODE_ENV?le(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 t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error("production"===process.env.NODE_ENV?le(1):"Expected the enhancer to be a function. Instead, received: '".concat(ye(n),"'"));return n(me)(e,t)}var r=e,o=t,i=new Map,a=i,c=0,u=!1;function s(){a===i&&(a=new Map,i.forEach((function(e,t){a.set(t,e)})))}function l(){if(u)throw new Error("production"===process.env.NODE_ENV?le(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 f(e){if("function"!=typeof e)throw new Error("production"===process.env.NODE_ENV?le(4):"Expected the listener to be a function. Instead, received: '".concat(ye(e),"'"));if(u)throw new Error("production"===process.env.NODE_ENV?le(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 t=!0;s();var n=c++;return a.set(n,e),function(){if(t){if(u)throw new Error("production"===process.env.NODE_ENV?le(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.");t=!1,s(),a.delete(n),i=null}}}function d(e){if(!he(e))throw new Error("production"===process.env.NODE_ENV?le(7):"Actions must be plain objects. Instead, the actual type was: '".concat(ye(e),"'. 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===e.type)throw new Error("production"===process.env.NODE_ENV?le(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if("string"!=typeof e.type)throw new Error("production"===process.env.NODE_ENV?le(17):'Action "type" property must be a string. Instead, the actual type was: \''.concat(ye(e.type),"'. Value was: '").concat(e.type,"' (stringified)"));if(u)throw new Error("production"===process.env.NODE_ENV?le(9):"Reducers may not dispatch actions.");try{u=!0,o=r(o,e)}finally{u=!1}return(i=a).forEach((function(e){e()})),e}return d({type:pe.INIT}),E({dispatch:d,subscribe:f,getState:l,replaceReducer:function(e){if("function"!=typeof e)throw new Error("production"===process.env.NODE_ENV?le(10):"Expected the nextReducer to be a function. Instead, received: '".concat(ye(e)));r=e,d({type:pe.REPLACE})}},fe,(function(){var e=f;return E({subscribe:function(t){if("object"!==O(t)||null===t)throw new Error("production"===process.env.NODE_ENV?le(11):"Expected the observer to be an object. Instead, received: '".concat(ye(t),"'"));function n(){var e=t;e.next&&e.next(l())}return n(),{unsubscribe:e(n)}}},fe,(function(){return this}))}))}function be(e){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(e);try{throw new Error(e)}catch(e){}}function ge(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var o=t[r];"production"!==process.env.NODE_ENV&&void 0===e[o]&&be('No reducer provided for key "'.concat(o,'"')),"function"==typeof e[o]&&(n[o]=e[o])}var i,a,c=Object.keys(n);"production"!==process.env.NODE_ENV&&(i={});try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if(void 0===n(void 0,{type:pe.INIT}))throw new Error("production"===process.env.NODE_ENV?le(12):'The slice reducer for key "'.concat(t,"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined."));if(void 0===n(void 0,{type:pe.PROBE_UNKNOWN_ACTION()}))throw new Error("production"===process.env.NODE_ENV?le(13):'The slice reducer for key "'.concat(t,"\" returned undefined when probed with a random type. Don't try to handle '").concat(pe.INIT,'\' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.'))}))}(n)}catch(e){a=e}return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(a)throw a;if("production"!==process.env.NODE_ENV){var r=function(e,t,n,r){var o=Object.keys(t),i=n&&n.type===pe.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(0===o.length)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!he(e))return"The ".concat(i,' has unexpected type of "').concat(ye(e),'". Expected argument to be an object with the following keys: "').concat(o.join('", "'),'"');var a=Object.keys(e).filter((function(e){return!t.hasOwnProperty(e)&&!r[e]}));return a.forEach((function(e){r[e]=!0})),n&&n.type===pe.REPLACE?void 0:a.length>0?"Unexpected ".concat(a.length>1?"keys":"key",' "').concat(a.join('", "'),'" found in ').concat(i,'. Expected to find one of the known reducer keys instead: "').concat(o.join('", "'),'". Unexpected keys will be ignored.'):void 0}(e,n,t,i);r&&be(r)}for(var o=!1,u={},s=0;s<c.length;s++){var l=c[s],f=n[l],d=e[l],p=f(d,t);if(void 0===p){var h=t&&t.type;throw new Error("production"===process.env.NODE_ENV?le(14):"When called with an action of type ".concat(h?'"'.concat(String(h),'"'):"(unknown type)",', the slice reducer for key "').concat(l,'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'))}u[l]=p,o=o||p!==d}return(o=o||c.length!==Object.keys(e).length)?u:e}}function we(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function Ee(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(n,r){var o=e(n,r),i=function(){throw new Error("production"===process.env.NODE_ENV?le(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},a={getState:o.getState,dispatch:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return i.apply(void 0,[e].concat(n))}},c=t.map((function(e){return e(a)}));return i=we.apply(void 0,b(c))(o.dispatch),m(m({},o),{},{dispatch:i})}}}function _e(e){return he(e)&&"type"in e&&"string"==typeof e.type}var Oe=Symbol.for("immer-nothing"),Ne=Symbol.for("immer-draftable"),Se=Symbol.for("immer-state"),ke="production"!==process.env.NODE_ENV?[function(e){return"The plugin for '".concat(e,"' has not been loaded into Immer. To enable the plugin, import and call `enable").concat(e,"()` when initializing your application.")},function(e){return"produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '".concat(e,"'")},"This object has been frozen and should not be mutated",function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return"'current' expects a draft, got: ".concat(e)},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(e){return"'original' expects a draft, got: ".concat(e)}]:[];function De(e){if("production"!==process.env.NODE_ENV){for(var t=ke[e],n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var i="function"==typeof t?t.apply(null,r):t;throw new Error("[Immer] ".concat(i))}throw new Error("[Immer] minified error nr: ".concat(e,". Full error at: https://bit.ly/3cXEKWf"))}var je=Object.getPrototypeOf;function xe(e){return!!e&&!!e[Se]}function Ce(e){var t;return!!e&&(Te(e)||Array.isArray(e)||!!e[Ne]||!(null===(t=e.constructor)||void 0===t||!t[Ne])||Le(e)||ze(e))}var Pe=Object.prototype.constructor.toString();function Te(e){if(!e||"object"!==O(e))return!1;var t=je(e);if(null===t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===Pe}function Ae(e,t){0===Ve(e)?Reflect.ownKeys(e).forEach((function(n){t(n,e[n],e)})):e.forEach((function(n,r){return t(r,n,e)}))}function Ve(e){var t=e[Se];return t?t.type_:Array.isArray(e)?1:Le(e)?2:ze(e)?3:0}function Re(e,t){return 2===Ve(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Ie(e,t,n){var r=Ve(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function Le(e){return e instanceof Map}function ze(e){return e instanceof Set}function Me(e){return e.copy_||e.base_}function Fe(e,t){if(Le(e))return new Map(e);if(ze(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);var n=Te(e);if(!0===t||"class_only"===t&&!n){var r=Object.getOwnPropertyDescriptors(e);delete r[Se];for(var o=Reflect.ownKeys(r),i=0;i<o.length;i++){var a=o[i],c=r[a];!1===c.writable&&(c.writable=!0,c.configurable=!0),(c.get||c.set)&&(r[a]={configurable:!0,writable:!0,enumerable:c.enumerable,value:e[a]})}return Object.create(je(e),r)}var u=je(e);if(null!==u&&n)return m({},e);var s=Object.create(u);return Object.assign(s,e)}function Be(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return qe(e)||xe(e)||!Ce(e)||(Ve(e)>1&&(e.set=e.add=e.clear=e.delete=He),Object.freeze(e),t&&Object.entries(e).forEach((function(e){var t=v(e,2);t[0];return Be(t[1],!0)}))),e}function He(){De(2)}function qe(e){return Object.isFrozen(e)}var We,Ge={};function Ue(e){var t=Ge[e];return t||De(0,e),t}function Ke(){return We}function Ye(e,t){t&&(Ue("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Xe(e){$e(e),e.drafts_.forEach(Qe),e.drafts_=null}function $e(e){e===We&&(We=e.parent_)}function Je(e){return We={drafts_:[],parent_:We,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Qe(e){var t=e[Se];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function Ze(e,t){t.unfinalizedDrafts_=t.drafts_.length;var n=t.drafts_[0];return void 0!==e&&e!==n?(n[Se].modified_&&(Xe(t),De(4)),Ce(e)&&(e=et(t,e),t.parent_||nt(t,e)),t.patches_&&Ue("Patches").generateReplacementPatches_(n[Se].base_,e,t.patches_,t.inversePatches_)):e=et(t,n,[]),Xe(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Oe?e:void 0}function et(e,t,n){if(qe(t))return t;var r=t[Se];if(!r)return Ae(t,(function(o,i){return tt(e,r,t,o,i,n)})),t;if(r.scope_!==e)return t;if(!r.modified_)return nt(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;var o=r.copy_,i=o,a=!1;3===r.type_&&(i=new Set(o),o.clear(),a=!0),Ae(i,(function(t,i){return tt(e,r,o,t,i,n,a)})),nt(e,o,!1),n&&e.patches_&&Ue("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function tt(e,t,n,r,o,i,a){if("production"!==process.env.NODE_ENV&&o===n&&De(5),xe(o)){var c=et(e,o,i&&t&&3!==t.type_&&!Re(t.assigned_,r)?i.concat(r):void 0);if(Ie(n,r,c),!xe(c))return;e.canAutoFreeze_=!1}else a&&n.add(o);if(Ce(o)&&!qe(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;et(e,o),t&&t.scope_.parent_||"symbol"===O(r)||!Object.prototype.propertyIsEnumerable.call(n,r)||nt(e,o)}}function nt(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Be(t,n)}var rt={get:function(e,t){if(t===Se)return e;var n=Me(e);if(!Re(n,t))return function(e,t,n){var r,o=at(t,n);return o?"value"in o?o.value:null===(r=o.get)||void 0===r?void 0:r.call(e.draft_):void 0}(e,n,t);var r=n[t];return e.finalized_||!Ce(r)?r:r===it(e.base_,t)?(ut(e),e.copy_[t]=lt(r,e)):r},has:function(e,t){return t in Me(e)},ownKeys:function(e){return Reflect.ownKeys(Me(e))},set:function(e,t,n){var r=at(Me(e),t);if(null!=r&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){var o=it(Me(e),t),i=null==o?void 0:o[Se];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}(n,o)&&(void 0!==n||Re(e.base_,t)))return!0;ut(e),ct(e)}return e.copy_[t]===n&&(void 0!==n||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty:function(e,t){return void 0!==it(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,ut(e),ct(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor:function(e,t){var n=Me(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){De(11)},getPrototypeOf:function(e){return je(e.base_)},setPrototypeOf:function(){De(12)}},ot={};function it(e,t){var n=e[Se];return(n?Me(n):e)[t]}function at(e,t){if(t in e)for(var n=je(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=je(n)}}function ct(e){e.modified_||(e.modified_=!0,e.parent_&&ct(e.parent_))}function ut(e){e.copy_||(e.copy_=Fe(e.base_,e.scope_.immer_.useStrictShallowCopy_))}Ae(rt,(function(e,t){ot[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),ot.deleteProperty=function(e,t){return"production"!==process.env.NODE_ENV&&isNaN(parseInt(t))&&De(13),ot.set.call(this,e,t,void 0)},ot.set=function(e,t,n){return"production"!==process.env.NODE_ENV&&"length"!==t&&isNaN(parseInt(t))&&De(14),rt.set.call(this,e[0],t,n,e[0])};var st=function(){return h((function e(t){var n=this;d(this,e),this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=function(e,t,r){if("function"==typeof e&&"function"!=typeof t){var o=t;t=e;var i=n;return function(){for(var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o,r=arguments.length,a=new Array(r>1?r-1:0),c=1;c<r;c++)a[c-1]=arguments[c];return i.produce(n,(function(n){var r;return(r=t).call.apply(r,[e,n].concat(a))}))}}var a;if("function"!=typeof t&&De(6),void 0!==r&&"function"!=typeof r&&De(7),Ce(e)){var c=Je(n),u=lt(e,void 0),s=!0;try{a=t(u),s=!1}finally{s?Xe(c):$e(c)}return Ye(c,r),Ze(a,c)}if(!e||"object"!==O(e)){if(void 0===(a=t(e))&&(a=e),a===Oe&&(a=void 0),n.autoFreeze_&&Be(a,!0),r){var l=[],f=[];Ue("Patches").generateReplacementPatches_(e,a,l,f),r(l,f)}return a}De(1,e)},this.produceWithPatches=function(e,t){return"function"==typeof e?function(t){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return n.produceWithPatches(t,(function(t){return e.apply(void 0,[t].concat(o))}))}:[n.produce(e,t,(function(e,t){r=e,o=t})),r,o];var r,o},"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),"boolean"==typeof(null==t?void 0:t.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy)}),[{key:"createDraft",value:function(e){Ce(e)||De(8),xe(e)&&(e=function(e){xe(e)||De(10,e);return ft(e)}(e));var t=Je(this),n=lt(e,void 0);return n[Se].isManual_=!0,$e(t),n}},{key:"finishDraft",value:function(e,t){var n=e&&e[Se];n&&n.isManual_||De(9);var r=n.scope_;return Ye(r,t),Ze(void 0,r)}},{key:"setAutoFreeze",value:function(e){this.autoFreeze_=e}},{key:"setUseStrictShallowCopy",value:function(e){this.useStrictShallowCopy_=e}},{key:"applyPatches",value:function(e,t){var n;for(n=t.length-1;n>=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));var o=Ue("Patches").applyPatches_;return xe(e)?o(e,t):this.produce(e,(function(e){return o(e,t)}))}}])}();function lt(e,t){var n=Le(e)?Ue("MapSet").proxyMap_(e,t):ze(e)?Ue("MapSet").proxySet_(e,t):function(e,t){var n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:Ke(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1},o=r,i=rt;n&&(o=[r],i=ot);var a=Proxy.revocable(o,i),c=a.revoke,u=a.proxy;return r.draft_=u,r.revoke_=c,u}(e,t);return(t?t.scope_:Ke()).drafts_.push(n),n}function ft(e){if(!Ce(e)||qe(e))return e;var t,n=e[Se];if(n){if(!n.modified_)return n.base_;n.finalized_=!0,t=Fe(e,n.scope_.immer_.useStrictShallowCopy_)}else t=Fe(e,!0);return Ae(t,(function(e,n){Ie(t,e,ft(n))})),n&&(n.finalized_=!1),t}var dt=new st,pt=dt.produce;function ht(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(o){return"function"==typeof o?o(n,r,e):t(o)}}}}dt.produceWithPatches.bind(dt),dt.setAutoFreeze.bind(dt),dt.setUseStrictShallowCopy.bind(dt),dt.applyPatches.bind(dt),dt.createDraft.bind(dt),dt.finishDraft.bind(dt);var vt=ht(),yt=ht,mt="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"===O(arguments[0])?we:we.apply(null,arguments)};function bt(e,t){function n(){if(t){var n=t.apply(void 0,arguments);if(!n)throw new Error("production"===process.env.NODE_ENV?qt(0):"prepareAction did not return an object");return m(m({type:e,payload:n.payload},"meta"in n&&{meta:n.meta}),"error"in n&&{error:n.error})}return{type:e,payload:arguments.length<=0?void 0:arguments[0]}}return n.toString=function(){return"".concat(e)},n.type=e,n.match=function(t){return _e(t)&&t.type===e},n}function gt(e){return"function"==typeof e&&"type"in e&&function(e){return e&&"function"==typeof e.match}(e)}function wt(e,t){var n=0;return{measureTime:function(e){var t=Date.now();try{return e()}finally{var r=Date.now();n+=r-t}},warnIfExceeded:function(){n>e&&console.warn("".concat(t," took ").concat(n,"ms, which is more than the warning threshold of ").concat(e,"ms. \nIf your state or actions are very large, you may want to disable the middleware as it might cause too much of a slowdown in development mode. See https://redux-toolkit.js.org/api/getDefaultMiddleware for instructions.\nIt is disabled in production builds, so you don't need to worry about that."))}}}var Et=function(){function e(){var t;d(this,e);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t=i(this,e,[].concat(r)),Object.setPrototypeOf(t,e.prototype),t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(e,c(Array)),h(e,[{key:"concat",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e,t,n,r){var o=a(f(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof o?function(e){return o.apply(n,e)}:o}(e,"concat",this,1).apply(this,n)}},{key:"prepend",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return 1===n.length&&Array.isArray(n[0])?u(e,b(n[0].concat(this))):u(e,b(n.concat(this)))}}],[{key:Symbol.species,get:function(){return e}}])}();function _t(e){return Ce(e)?pt(e,(function(){})):e}function Ot(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function Nt(e){return"object"!==O(e)||null==e||Object.isFrozen(e)}function St(e,t,n){var r=kt(e,t,n);return{detectMutations:function(){return Dt(e,t,r,n)}}}function kt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new Set,i={value:n};if(!e(n)&&!o.has(n))for(var a in o.add(n),i.children={},n){var c=r?r+"."+a:a;t.length&&-1!==t.indexOf(c)||(i.children[a]=kt(e,t,n[a],c))}return i}function Dt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"",a=n?n.value:void 0,c=a===r;if(o&&!c&&!Number.isNaN(r))return{wasMutated:!0,path:i};if(e(a)||e(r))return{wasMutated:!1};var u={};for(var s in n.children)u[s]=!0;for(var l in r)u[l]=!0;var f,d=t.length>0,p=function(){var o=i?i+"."+h:h;if(d&&t.some((function(e){return e instanceof RegExp?e.test(o):o===e})))return 0;var a=Dt(e,t,n.children[h],r[h],c,o);if(a.wasMutated)return{v:a}};for(var h in u)if(0!==(f=p())&&f)return f.v;return{wasMutated:!1}}function jt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("production"===process.env.NODE_ENV)return function(){return function(e){return function(t){return e(t)}}};var t=function(e,t){var n=[],r=[];return t||(t=function(e,t){return n[0]===t?"[Circular ~]":"[Circular ~."+r.slice(0,n.indexOf(t)).join(".")+"]"}),function(o,i){if(n.length>0){var a=n.indexOf(this);~a?n.splice(a+1):n.push(this),~a?r.splice(a,1/0,o):r.push(o),~n.indexOf(i)&&(i=t.call(this,o,i))}else n.push(i);return null==e?i:e.call(this,o,i)}},n=e.isImmutable,r=void 0===n?Nt:n,o=e.ignoredPaths,i=e.warnAfter,a=void 0===i?32:i,c=St.bind(null,r,o);return function(e){var n,r=e.getState,o=r(),i=c(o);return function(e){return function(u){var s=wt(a,"ImmutableStateInvariantMiddleware");s.measureTime((function(){if(o=r(),n=i.detectMutations(),i=c(o),n.wasMutated)throw new Error("production"===process.env.NODE_ENV?qt(19):"A state mutation was detected between dispatches, in the path '".concat(n.path||"","'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)"))}));var l=e(u);return s.measureTime((function(){if(o=r(),n=i.detectMutations(),i=c(o),n.wasMutated)throw new Error("production"===process.env.NODE_ENV?qt(20):"A state mutation was detected inside a dispatch, in the path: ".concat(n.path||"",". Take a look at the reducer(s) handling the action ").concat((e=u,JSON.stringify(e,t(a,l),s)),". (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)"));var e,a,s,l})),s.warnIfExceeded(),l}}}}function xt(e){var t=O(e);return null==e||"string"===t||"boolean"===t||"number"===t||Array.isArray(e)||he(e)}function Ct(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:xt,i=arguments.length>3?arguments[3]:void 0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],c=arguments.length>5?arguments[5]:void 0;if(!r(e))return{keyPath:n||"<root>",value:e};if("object"!==O(e)||null===e)return!1;if(null!=c&&c.has(e))return!1;var u,s=null!=i?i(e):Object.entries(e),l=a.length>0,f=o(s);try{var d,p=function(){var e=v(u.value,2),o=e[0],s=e[1],f=n?n+"."+o:o;if(l&&a.some((function(e){return e instanceof RegExp?e.test(f):f===e})))return 0;return r(s)?"object"===O(s)&&(t=Ct(s,f,r,i,a,c))?{v:t}:void 0:{v:{keyPath:f,value:s}}};for(f.s();!(u=f.n()).done;)if(0!==(d=p())&&d)return d.v}catch(e){f.e(e)}finally{f.f()}return c&&Pt(e)&&c.add(e),!1}function Pt(e){if(!Object.isFrozen(e))return!1;for(var t=0,n=Object.values(e);t<n.length;t++){var r=n[t];if("object"===O(r)&&null!==r&&!Pt(r))return!1}return!0}function Tt(e){return"boolean"==typeof e}var At=function(){return function(e){var t=null!=e?e:{},n=t.thunk,r=void 0===n||n,o=t.immutableCheck,i=void 0===o||o,a=t.serializableCheck,c=void 0===a||a,u=t.actionCreatorCheck,s=void 0===u||u,l=new Et;if(r&&(Tt(r)?l.push(vt):l.push(yt(r.extraArgument))),"production"!==process.env.NODE_ENV){if(i){var f={};Tt(i)||(f=i),l.unshift(jt(f))}if(c){var d={};Tt(c)||(d=c),l.push(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("production"===process.env.NODE_ENV)return function(){return function(e){return function(t){return e(t)}}};var t=e.isSerializable,n=void 0===t?xt:t,r=e.getEntries,o=e.ignoredActions,i=void 0===o?[]:o,a=e.ignoredActionPaths,c=void 0===a?["meta.arg","meta.baseQueryMeta"]:a,u=e.ignoredPaths,s=void 0===u?[]:u,l=e.warnAfter,f=void 0===l?32:l,d=e.ignoreState,p=void 0!==d&&d,h=e.ignoreActions,v=void 0!==h&&h,y=e.disableCache,m=void 0!==y&&y||!WeakSet?void 0:new WeakSet;return function(e){return function(t){return function(o){if(!_e(o))return t(o);var a=t(o),u=wt(f,"SerializableStateInvariantMiddleware");return v||i.length&&-1!==i.indexOf(o.type)||u.measureTime((function(){var e=Ct(o,"",n,r,c,m);if(e){var t=e.keyPath,i=e.value;console.error("A non-serializable value was detected in an action, in the path: `".concat(t,"`. Value:"),i,"\nTake a look at the logic that dispatched this action: ",o,"\n(See https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants)","\n(To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)")}})),p||(u.measureTime((function(){var t=Ct(e.getState(),"",n,r,s,m);if(t){var i=t.keyPath,a=t.value;console.error("A non-serializable value was detected in the state, in the path: `".concat(i,"`. Value:"),a,"\nTake a look at the reducer(s) handling this action type: ".concat(o.type,".\n(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)"))}})),u.warnIfExceeded()),a}}}}(d))}if(s){var p={};Tt(s)||(p=s),l.unshift(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("production"===process.env.NODE_ENV)return function(){return function(e){return function(t){return e(t)}}};var t=e.isActionCreator,n=void 0===t?gt:t;return function(){return function(e){return function(t){var r,o,i;return n(t)&&console.warn((i=(o=(r=t.type)?"".concat(r).split("/"):[])[o.length-1]||"actionCreator",'Detected an action creator with type "'.concat(r||"unknown","\" being dispatched. \nMake sure you're calling the action creator before dispatching, i.e. `dispatch(").concat(i,"())` instead of `dispatch(").concat(i,")`. This is necessary even if the action has no payload."))),e(t)}}}}(p))}}return l}},Vt=function(e){return function(t){setTimeout(t,e)}},Rt=function(e){return function(t){var n=(null!=t?t:{}).autoBatch,r=void 0===n||n,o=new Et(e);return r&&o.push(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{type:"raf"};return function(t){return function(){var n=t.apply(void 0,arguments),r=!0,o=!1,i=!1,a=new Set,c="tick"===e.type?queueMicrotask:"raf"===e.type?"undefined"!=typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:Vt(10):"callback"===e.type?e.queueNotification:Vt(e.timeout),u=function(){i=!1,o&&(o=!1,a.forEach((function(e){return e()})))};return Object.assign({},n,{subscribe:function(e){var t=n.subscribe((function(){return r&&e()}));return a.add(e),function(){t(),a.delete(e)}},dispatch:function(e){try{var t;return r=!(null!=e&&null!==(t=e.meta)&&void 0!==t&&t.RTK_autoBatch),(o=!r)&&(i||(i=!0,c(u))),n.dispatch(e)}finally{r=!0}}})}}}("object"===O(r)?r:void 0)),o}};function It(e){var t,n={},r=[],o={addCase:function(e,i){if("production"!==process.env.NODE_ENV){if(r.length>0)throw new Error("production"===process.env.NODE_ENV?qt(26):"`builder.addCase` should only be called before calling `builder.addMatcher`");if(t)throw new Error("production"===process.env.NODE_ENV?qt(27):"`builder.addCase` should only be called before calling `builder.addDefaultCase`")}var a="string"==typeof e?e:e.type;if(!a)throw new Error("production"===process.env.NODE_ENV?qt(28):"`builder.addCase` cannot be called with an empty action type");if(a in n)throw new Error("production"===process.env.NODE_ENV?qt(29):"`builder.addCase` cannot be called with two reducers for the same action type '".concat(a,"'"));return n[a]=i,o},addMatcher:function(e,n){if("production"!==process.env.NODE_ENV&&t)throw new Error("production"===process.env.NODE_ENV?qt(30):"`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return r.push({matcher:e,reducer:n}),o},addDefaultCase:function(e){if("production"!==process.env.NODE_ENV&&t)throw new Error("production"===process.env.NODE_ENV?qt(31):"`builder.addDefaultCase` can only be called once");return t=e,o}};return e(o),[n,r,t]}var Lt=Symbol.for("rtk-slice-createasyncthunk");function zt(e,t){return"".concat(e,"/").concat(t)}function Mt(){var t,n=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).creators,r=null==n||null===(t=n.asyncThunk)||void 0===t?void 0:t[Lt];return function(t){var n=t.name,i=t.reducerPath,a=void 0===i?n:i;if(!n)throw new Error("production"===process.env.NODE_ENV?qt(11):"`name` is a required option for createSlice");"undefined"!=typeof process&&"development"===process.env.NODE_ENV&&void 0===t.initialState&&console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");var c=("function"==typeof t.reducers?t.reducers(function(){function e(e,t){return m({_reducerDefinitionType:"asyncThunk",payloadCreator:e},t)}return e.withTypes=function(){return e},{reducer:function(e){return Object.assign(E({},e.name,(function(){return e.apply(void 0,arguments)}))[e.name],{_reducerDefinitionType:"reducer"})},preparedReducer:function(e,t){return{_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:t}},asyncThunk:e}}()):t.reducers)||{},u=Object.keys(c),s={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},l={addCase:function(e,t){var n="string"==typeof e?e:e.type;if(!n)throw new Error("production"===process.env.NODE_ENV?qt(12):"`context.addCase` cannot be called with an empty action type");if(n in s.sliceCaseReducersByType)throw new Error("production"===process.env.NODE_ENV?qt(13):"`context.addCase` cannot be called with two reducers for the same action type: "+n);return s.sliceCaseReducersByType[n]=t,l},addMatcher:function(e,t){return s.sliceMatchers.push({matcher:e,reducer:t}),l},exposeAction:function(e,t){return s.actionCreators[e]=t,l},exposeCaseReducer:function(e,t){return s.sliceCaseReducersByName[e]=t,l}};function f(){if("production"!==process.env.NODE_ENV&&"object"===O(t.extraReducers))throw new Error("production"===process.env.NODE_ENV?qt(14):"The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");var e=v("function"==typeof t.extraReducers?It(t.extraReducers):[t.extraReducers],3),n=e[0],r=void 0===n?{}:n,i=e[1],a=void 0===i?[]:i,c=e[2],u=void 0===c?void 0:c,l=m(m({},r),s.sliceCaseReducersByType);return function(e,t){if("production"!==process.env.NODE_ENV&&"object"===O(t))throw new Error("production"===process.env.NODE_ENV?qt(8):"The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");var n,r=v(It(t),3),o=r[0],i=r[1],a=r[2];if(function(e){return"function"==typeof e}(e))n=function(){return _t(e())};else{var c=_t(e);n=function(){return c}}function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n(),t=arguments.length>1?arguments[1]:void 0,r=[o[t.type]].concat(b(i.filter((function(e){return(0,e.matcher)(t)})).map((function(e){return e.reducer}))));return 0===r.filter((function(e){return!!e})).length&&(r=[a]),r.reduce((function(e,n){if(n){if(xe(e)){var r=n(e,t);return void 0===r?e:r}if(Ce(e))return pt(e,(function(e){return n(e,t)}));var o=n(e,t);if(void 0===o){if(null===e)return e;throw Error("A case reducer on a non-draftable value must not return undefined")}return o}return e}),e)}return u.getInitialState=n,u}(t.initialState,(function(e){for(var t in l)e.addCase(t,l[t]);var n,r=o(s.sliceMatchers);try{for(r.s();!(n=r.n()).done;){var i=n.value;e.addMatcher(i.matcher,i.reducer)}}catch(e){r.e(e)}finally{r.f()}var c,f=o(a);try{for(f.s();!(c=f.n()).done;){var d=c.value;e.addMatcher(d.matcher,d.reducer)}}catch(e){f.e(e)}finally{f.f()}u&&e.addDefaultCase(u)}))}u.forEach((function(e){var o=c[e],i={reducerName:e,type:zt(n,e),createNotation:"function"==typeof t.reducers};!function(e){return"asyncThunk"===e._reducerDefinitionType}(o)?function(e,t,n){var r,o,i=e.type,a=e.reducerName,c=e.createNotation;if("reducer"in t){if(c&&!function(e){return"reducerWithPrepare"===e._reducerDefinitionType}(t))throw new Error("production"===process.env.NODE_ENV?qt(17):"Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");r=t.reducer,o=t.prepare}else r=t;n.addCase(i,r).exposeCaseReducer(a,r).exposeAction(a,o?bt(i,o):bt(i))}(i,o,l):function(e,t,n,r){var o=e.type,i=e.reducerName;if(!r)throw new Error("production"===process.env.NODE_ENV?qt(18):"Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");var a=t.payloadCreator,c=t.fulfilled,u=t.pending,s=t.rejected,l=t.settled,f=t.options,d=r(o,a,f);n.exposeAction(i,d),c&&n.addCase(d.fulfilled,c);u&&n.addCase(d.pending,u);s&&n.addCase(d.rejected,s);l&&n.addMatcher(d.settled,l);n.exposeCaseReducer(i,{fulfilled:c||Ht,pending:u||Ht,rejected:s||Ht,settled:l||Ht})}(i,o,l,r)}));var d,p=function(e){return e},h=new Map;function y(e,t){return d||(d=f()),d(e,t)}function g(){return d||(d=f()),d.getInitialState()}function w(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];function r(t){var r=t[e];if(void 0===r)if(n)r=g();else if("production"!==process.env.NODE_ENV)throw new Error("production"===process.env.NODE_ENV?qt(15):"selectSlice returned undefined for an uninjected slice reducer");return r}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p,r=Ot(h,n,(function(){return new WeakMap}));return Ot(r,e,(function(){for(var r={},o=0,i=Object.entries(null!==(a=t.selectors)&&void 0!==a?a:{});o<i.length;o++){var a,c=v(i[o],2),u=c[0],s=c[1];r[u]=Ft(s,e,g,n)}return r}))}return{reducerPath:e,getSelectors:o,get selectors(){return o(r)},selectSlice:r}}var _=m(m({name:n,reducer:y,actions:s.actionCreators,caseReducers:s.sliceCaseReducersByName,getInitialState:g},w(a)),{},{injectInto:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.reducerPath,o=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(n,e),i=null!=r?r:a;return t.inject({reducerPath:i,reducer:y},o),m(m({},_),w(i,!0))}});return _}}function Ft(e,t,n,r){function o(o){var i=t(o);if(void 0===i)if(r)i=n();else if("production"!==process.env.NODE_ENV)throw new Error("production"===process.env.NODE_ENV?qt(16):"selectState returned undefined for an uninjected slice reducer");for(var a=arguments.length,c=new Array(a>1?a-1:0),u=1;u<a;u++)c[u-1]=arguments[u];return e.apply(void 0,[i].concat(c))}return o.unwrapped=e,o}var Bt=Mt();function Ht(){}function qt(e){return"Minified Redux Toolkit error #".concat(e,"; visit https://redux-toolkit.js.org/Errors?code=").concat(e," for the full message or use the non-minified dev environment for full errors. ")}var Wt,Gt={exports:{}},Ut={};var Kt,Yt,Xt={};
|
|
2
|
+
/**
|
|
3
|
+
* @license React
|
|
4
|
+
* use-sync-external-store-with-selector.development.js
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the MIT license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*/var $t=(Yt||(Yt=1,"production"===process.env.NODE_ENV?Gt.exports=function(){if(Wt)return Ut;Wt=1;var e=S,t="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},n=e.useSyncExternalStore,r=e.useRef,o=e.useEffect,i=e.useMemo,a=e.useDebugValue;return Ut.useSyncExternalStoreWithSelector=function(e,c,u,s,l){var f=r(null);if(null===f.current){var d={hasValue:!1,value:null};f.current=d}else d=f.current;f=i((function(){function e(e){if(!o){if(o=!0,n=e,e=s(e),void 0!==l&&d.hasValue){var i=d.value;if(l(i,e))return r=i}return r=e}if(i=r,t(n,e))return i;var a=s(e);return void 0!==l&&l(i,a)?(n=e,i):(n=e,r=a)}var n,r,o=!1,i=void 0===u?null:u;return[function(){return e(c())},null===i?void 0:function(){return e(i())}]}),[c,u,s,l]);var p=n(e,f[0],f[1]);return o((function(){d.hasValue=!0,d.value=p}),[p]),a(p),p},Ut}():Gt.exports=(Kt||(Kt=1,"production"!==process.env.NODE_ENV&&function(){"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var e=S,t="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},n=e.useSyncExternalStore,r=e.useRef,o=e.useEffect,i=e.useMemo,a=e.useDebugValue;Xt.useSyncExternalStoreWithSelector=function(e,c,u,s,l){var f=r(null);if(null===f.current){var d={hasValue:!1,value:null};f.current=d}else d=f.current;f=i((function(){function e(e){if(!o){if(o=!0,n=e,e=s(e),void 0!==l&&d.hasValue){var i=d.value;if(l(i,e))return r=i}return r=e}if(i=r,t(n,e))return i;var a=s(e);return void 0!==l&&l(i,a)?(n=e,i):(n=e,r=a)}var n,r,o=!1,i=void 0===u?null:u;return[function(){return e(c())},null===i?void 0:function(){return e(i())}]}),[c,u,s,l]);var p=n(e,f[0],f[1]);return o((function(){d.hasValue=!0,d.value=p}),[p]),a(p),p},"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Xt)),Gt.exports),Jt=Symbol.for("react-redux-context"),Qt="undefined"!=typeof globalThis?globalThis:{};function Zt(){var e;if(!N.createContext)return{};var t=null!==(e=Qt[Jt])&&void 0!==e?e:Qt[Jt]=new Map,n=t.get(N.createContext);return n||(n=N.createContext(null),"production"!==process.env.NODE_ENV&&(n.displayName="ReactRedux"),t.set(N.createContext,n)),n}var en=Zt();function tn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:en;return function(){var t=N.useContext(e);if("production"!==process.env.NODE_ENV&&!t)throw new Error("could not find react-redux context value; please ensure the component is wrapped in a <Provider>");return t}}var nn=tn();function rn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:en,t=e===en?nn:tn(e),n=function(){return t().store};return Object.assign(n,{withTypes:function(){return n}}),n}var on=rn();function an(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:en,t=e===en?on:rn(e),n=function(){return t().dispatch};return Object.assign(n,{withTypes:function(){return n}}),n}var cn=an(),un=function(e,t){return e===t};function sn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:en,t=e===en?nn:tn(e),n=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=("function"==typeof n?{equalityFn:n}:n).equalityFn,o=void 0===r?un:r;if("production"!==process.env.NODE_ENV){if(!e)throw new Error("You must pass a selector to useSelector");if("function"!=typeof e)throw new Error("You must pass a function as a selector to useSelector");if("function"!=typeof o)throw new Error("You must pass a function as an equality function to useSelector")}var i=t(),a=i.store,c=i.subscription,u=i.getServerState,s=N.useRef(!0),l=N.useCallback(E({},e.name,(function(t){var r=e(t);if("production"!==process.env.NODE_ENV){var a=("function"==typeof n?{}:n).devModeChecks,c=void 0===a?{}:a,u=i.identityFunctionCheck,l=m({stabilityCheck:i.stabilityCheck,identityFunctionCheck:u},c),f=l.identityFunctionCheck,d=l.stabilityCheck;if("always"===d||"once"===d&&s.current){var p=e(t);if(!o(r,p)){var h=void 0;try{throw new Error}catch(e){h=e.stack}console.warn("Selector "+(e.name||"unknown")+" returned a different result when called with the same parameters. This can lead to unnecessary rerenders.\nSelectors that return a new reference (such as an object or an array) should be memoized: https://redux.js.org/usage/deriving-data-selectors#optimizing-selectors-with-memoization",{state:t,selected:r,selected2:p,stack:h})}}if(("always"===f||"once"===f&&s.current)&&r===t){var v=void 0;try{throw new Error}catch(e){v=e.stack}console.warn("Selector "+(e.name||"unknown")+" returned the root state when called. This can lead to unnecessary rerenders.\nSelectors that return the entire state are almost certainly a mistake, as they will cause a rerender whenever *anything* in state changes.",{stack:v})}s.current&&(s.current=!1)}return r}))[e.name],[e]),f=$t.useSyncExternalStoreWithSelector(c.addNestedSub,a.getState,u||a.getState,l,o);return N.useDebugValue(f),f};return Object.assign(n,{withTypes:function(){return n}}),n}var ln,fn,dn=sn(),pn=function(e){var t,n,r=At(),o=e.reducer,i=void 0===o?void 0:o,a=e.middleware,c=e.devTools,u=void 0===c||c,s=e.preloadedState,l=void 0===s?void 0:s,f=e.enhancers,d=void 0===f?void 0:f;if("function"==typeof i)t=i;else{if(!he(i))throw new Error("production"===process.env.NODE_ENV?qt(1):"`reducer` is a required argument, and must be a function or an object of functions that can be passed to combineReducers");t=ge(i)}if("production"!==process.env.NODE_ENV&&a&&"function"!=typeof a)throw new Error("production"===process.env.NODE_ENV?qt(2):"`middleware` field must be a callback");if("function"==typeof a){if(n=a(r),"production"!==process.env.NODE_ENV&&!Array.isArray(n))throw new Error("production"===process.env.NODE_ENV?qt(3):"when using a middleware builder function, an array of middleware must be returned")}else n=r();if("production"!==process.env.NODE_ENV&&n.some((function(e){return"function"!=typeof e})))throw new Error("production"===process.env.NODE_ENV?qt(4):"each middleware provided to configureStore must be a function");var p=we;u&&(p=mt(m({trace:"production"!==process.env.NODE_ENV},"object"===O(u)&&u)));var h=Ee.apply(void 0,b(n)),v=Rt(h);if("production"!==process.env.NODE_ENV&&d&&"function"!=typeof d)throw new Error("production"===process.env.NODE_ENV?qt(5):"`enhancers` field must be a callback");var y="function"==typeof d?d(v):v();if("production"!==process.env.NODE_ENV&&!Array.isArray(y))throw new Error("production"===process.env.NODE_ENV?qt(6):"`enhancers` callback must return an array");if("production"!==process.env.NODE_ENV&&y.some((function(e){return"function"!=typeof e})))throw new Error("production"===process.env.NODE_ENV?qt(7):"each enhancer provided to configureStore must be a function");return"production"!==process.env.NODE_ENV&&n.length&&!y.includes(h)&&console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`"),me(t,l,p.apply(void 0,b(y)))}({reducer:{},middleware:function(e){return e({serializableCheck:!1})}}),hn=cn,vn=dn,yn=Bt({name:"user",initialState:{token:"",info:{},permissions:{},version:0},reducers:{login:function(e,t){var n=t.payload,r=n.token,o=n.info,i=n.success,a=n.error;if(r)return e.token=r,e.info=o,void(i&&i());a&&a()},logout:function(e,t){e.token="",e.info={},t.payload&&t.payload()},loadPermissions:function(e,t){for(var n in t.payload){var r=t.payload[n];e.permissions[r.name]=r}e.version+=1},incrementVersion:function(e,t){e.version+=1}}}),mn=yn.actions;mn.login;var bn=mn.logout,gn=mn.loadPermissions,wn=mn.incrementVersion,En=Bt({name:"app",initialState:{sidebarCollapsed:!1,locale:"zh-CN",theme:"default",localeOptions:{en:"English"},historyLocation:{hash:"",search:"",pathname:""}},reducers:{setSidebarCollapsed:function(e,t){e.sidebarCollapsed=t.payload},setLocale:function(e,t){var n=t.payload,r=n.locale,o=n.callback;e.locale=r,o&&o()},setAppTheme:function(e,t){e.theme=t.payload},setLocaleOptions:function(e,t){e.localeOptions=t.payload},saveHistoryLocation:function(e,t){var n=t.payload,r=n.pathname;n.hash,n.search,"/login"!==r&&(e.historyLocation=t.payload)}}}),_n=En.actions;_n.setSidebarCollapsed;var On=_n.setLocale,Nn=_n.setLocaleOptions,Sn=_n.saveHistoryLocation,kn=_n.setAppTheme,Dn=Bt({name:"layout",initialState:{choices:[],tabs:[],choiceId:0},reducers:{sidebarChoice:function(e,t){var n=t.payload,r=n.id,o=n.choices;-1===e.tabs.findIndex((function(e){return e==r}))&&e.tabs.push(r),null!==o&&(e.choices=o),e.choiceId=r},justSaveChoice:function(e,t){var n=t.payload.choiceId;e.choices=[],e.choiceId=n},saveTabs:function(e,t){var n=t.payload.newTabs;e.tabs=null!=n?n:[]},saveChoice:function(e,t){var n=t.payload.choices;e.choices=n},removeTab:function(e,t){var n=t.payload.id,r=void 0,o=void 0,i=e.tabs.findIndex((function(e){return e==n}));-1!==i&&(r=e.tabs[i-1],o=e.tabs[i+1]),void 0!==o?e.choiceId=o:void 0!==r&&(e.choiceId=r),e.tabs=e.tabs.filter((function(e){return e!==n}))},clearLayoutData:function(e,t){e.choiceId="",e.choices=[],e.tabs=[]}}}),jn=Dn.actions;jn.sidebarChoice,jn.saveTabs,jn.saveChoice,jn.removeTab;var xn,Cn=jn.clearLayoutData;function Pn(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=hn(),n=vn((function(e){return e.app.localeOptions}));return{locale:vn((function(e){return e.app.locale})),localeOptions:n,changeLocale:function(n){t(On({locale:n,callback:function(){P(n,(function(t){e&&setTimeout((function(){window.location.reload()}),500)}))}}))}}}function Tn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"//unpkg.com/rc-easyui@1.2.9/dist/themes/",t=vn((function(e){return e.app.theme})),n=hn(),r=function(e){var t=document.createElement("link");t.rel="stylesheet",t.type="text/css",t.href=e,document.getElementsByTagName("head")[0].appendChild(t)};return{changeTheme:function(e){n(kn(e)),window.location.reload()},themeOptions:[{name:"default",key:"default"},{name:"black",key:"black"},{name:"gray",key:"gray"},{name:"bootstrap",key:"bootstrap"},{name:"material",key:"material"},{name:"material-blue",key:"material-blue"},{name:"material-teal",key:"material-teal"},{name:"metro",key:"metro"}],loadHtmlTheme:function(){t?(r(e+t+"/easyui.css"),window.onload=function(){document.querySelector("html").setAttribute("theme",t)}):(r(e+"/default/easyui.css"),window.onload=function(){document.querySelector("html").setAttribute("theme",t)}),r(e+"/icon.css"),r(e+"/react.css")}}}function An(e){return(An="function"==typeof Symbol&&"symbol"==O(Symbol.iterator)?function(e){return O(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":O(e)})(e)}function Vn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Rn(e,t,n){return t=Mn(t),function(e,t){if(t&&("object"==An(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Bn()?Reflect.construct(t,n||[],Mn(e).constructor):t.apply(e,n))}function In(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ln(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Un(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function zn(e,t,n){return(t=Un(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mn(e){return Mn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Mn(e)}function Fn(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Wn(e,t)}function Bn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Bn=function(){return!!e})()}function Hn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hn(Object(n),!0).forEach((function(t){zn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Wn(e,t){return Wn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Wn(e,t)}function Gn(e){return function(e){if(Array.isArray(e))return Vn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Vn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Vn(e,t):void 0}}(e)||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 Un(e){var t=function(e){if("object"!=An(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=An(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==An(t)?t:t+""}jn.justSaveChoice,function(e){function t(){var e,t,n=null!==(e=null===(t=pn.getState().user)||void 0===t?void 0:t.info)&&void 0!==e?e:{};return 9==T(n,"type",0)}e.isGuest=function(){var e,t=null===(e=pn.getState().user)||void 0===e?void 0:e.token;return!t||0===t.length},e.isSuper=t,e.token=function(){var e=pn.getState().user;return T(e,"token","")},e.info=function(){var e=pn.getState().user;return T(e,"info",{})},e.logout=function(e){pn.dispatch(bn(e))},e.permissions=function(){return pn.getState().user.permissions},e.loadPermissions=function(e){pn.dispatch(gn(e||[]))},e.incrementVersion=function(){pn.dispatch(wn({}))},e.can=function(){var e;if(t())return!0;var n=null===(e=pn.getState().user)||void 0===e?void 0:e.permissions;if(!n)return!1;for(var r=0;r<arguments.length;r++)if(!n.hasOwnProperty(r<0||arguments.length<=r?void 0:arguments[r]))return!1;return!0},e.orCan=function(){var e;if(t())return!0;var n=null===(e=pn.getState().user)||void 0===e?void 0:e.permissions;if(!n)return!1;for(var r=0;r<arguments.length;r++)if(n.hasOwnProperty(r<0||arguments.length<=r?void 0:arguments[r]))return!0;return!1},e.clear=function(){pn.dispatch(Cn({})),pn.dispatch(Sn({pathname:"/",hash:"",search:""}))}}(ln||(ln={})),(xn=fn||(fn={})).locale=function(){var e;return null!==(e=pn.getState().app.locale)&&void 0!==e?e:"en"},xn.loadLanguageOptions=function(e){pn.dispatch(Nn(e))},xn.saveHistoryLocation=function(e){pn.dispatch(Sn({pathname:e.pathname,hash:e.hash,search:e.search}))},Ln((function e(t,n){In(this,e),this.options=t,this.navigate=n,this.autoRedirect.bind(this),this.toHistory.bind(this),this.toLogin.bind(this),this.saveHistoryLocation.bind(this)}),[{key:"autoRedirect",value:function(){this.options.isGuest()?"/login"!==this.options.location.pathname&&this.toLogin():"/login"===this.options.location.pathname&&this.toHistory()}},{key:"toHistory",value:function(){var e=this.options.history;null==e||""===e.pathname?this.navigate("/"):this.navigate(e)}},{key:"toLogin",value:function(){this.navigate("/login")}},{key:"saveHistoryLocation",value:function(){this.options.saveHistoryLocation(this.options.location)}}]),function(){function e(t,n,r){var o;return In(this,e),(o=Rn(this,e,[t])).setState=n,o.callback=r,o.callback&&o.callback.bind(o),o.setState.bind(o),o}Fn(e,A.AbstractHook),Ln(e,[{key:"toggle",value:function(){var e;this.state===B.List?this.setState(B.Image):this.setState(B.List),null===(e=this.callback)||void 0===e||e.call(this,this.state)}}])}(),function(){function e(t,n){var r;return In(this,e),(r=Rn(this,e,[t])).options=n,r}Fn(e,V.AbstractHook),Ln(e,[{key:"can",value:function(e){var t;if(!this.items.has(e))return!1;var n=this.options.AndCan,r=this.options.OrCan,o=this.options.Permissions,i=this.items.get(e);if(null!=i)switch(i.type){case H.AND:return n.apply(void 0,Gn(i.value));case H.OR:return r.apply(void 0,Gn(i.value));case H.FUNC:return null===(t=i.func)||void 0===t?void 0:t.call(i,{type:i.type,value:i.value,key:i.key},o())}return!1}}])}(),function(){function e(t,n){var r;return In(this,e),(r=Rn(this,e,[t])).setFormData=n,r.setFormData.bind(r),r}Fn(e,R.AbstractHook),Ln(e,[{key:"load",value:function(e){var t={};for(var n in this.data)t[n]=e[n];this.setFormData(t)}}])}(),function(){function e(t,n,r){var o;return In(this,e),(o=Rn(this,e,[t])).valueFn=r||function(e){return e.id},o.setValues=n,o}Fn(e,I.AbstractHook),Ln(e,[{key:"selectionChange",value:function(e){var t=this,n=[];e.forEach((function(e){return n.push(t.valueFn(e))})),this.setValues(n)}},{key:"confirmValues",value:function(e){e&&e(this.values)}}])}(),function(){function e(t,n,r,o){var i;return In(this,e),(i=Rn(this,e,[t,r])).setItems=n,i.setState=o,i.setItems.bind(i),i.setState.bind(i),i}Fn(e,L.AbstractHook),Ln(e,[{key:"selectAll",value:function(){this.setState(q.ALL)}},{key:"unSelectAll",value:function(){this.setState(q.NONE),this.setItems({})}},{key:"setValue",value:function(e,t){}},{key:"toggle",value:function(){this.state===q.NONE?this.selectAll():this.unSelectAll()}},{key:"selectBetween",value:function(e,t){}}])}(),function(){function e(t,n,r,o,i){var a;return In(this,e),(a=Rn(this,e,[t,i,r])).setSize=o,a.setVisible=n,a.setSize.bind(a),a.setVisible.bind(a),a}Fn(e,z.AbstractHook),Ln(e,[{key:"open",value:function(){this.setVisible(!0)}},{key:"close",value:function(){this.setVisible(!1)}},{key:"refreshWidth",value:function(e){this.setSize(e)}}])}();var Kn=function(){function e(t,n,r){var o;return In(this,e),(o=Rn(this,e,[t])).openCallback=n,o.closeCallback=r,o.openCallback&&o.openCallback.bind(o),o.closeCallback&&o.closeCallback.bind(o),o}return Fn(e,M.AbstractHook),Ln(e,[{key:"open",value:function(){var e,t,n;null===(e=(t=this.ref.current).open)||void 0===e||e.call(t),null===(n=this.openCallback)||void 0===n||n.call(this)}},{key:"close",value:function(){var e,t,n;null===(e=(t=this.ref.current).close)||void 0===e||e.call(t),null===(n=this.closeCallback)||void 0===n||n.call(this)}}])}();!function(){function e(t,n,r,o,i,a,c){var u,s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{};return In(this,e),(u=Rn(this,e,[t,r,i,a])).defaultData=s,u.setSize=c,u.setVisible=o,u.setSize.bind(u),u.setVisible.bind(u),u.setFormData=n,u.setFormData.bind(u),u}Fn(e,F.AbstractHook),Ln(e,[{key:"open",value:function(){var e={};for(var t in this.defaultData)e[t]=this.defaultData[t];this.setFormData(e),this.setVisible(!0)}},{key:"close",value:function(){this.setVisible(!1)}},{key:"refreshWidth",value:function(e){this.setSize(e)}},{key:"load",value:function(e,t,n){if(n&&this.refreshWidth(n),e==W.UPDATE){var r={};for(var o in t)r[o]=t[o];this.setFormData(r)}}}])}();var Yn=function(){function e(){var t;In(this,e);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return zn(t=Rn(this,e,[].concat(r)),"initSearch",!1),zn(t,"isTreeData",!1),zn(t,"largeSize",999999),t}return Fn(e,G),Ln(e,[{key:"search",value:function(e){var t=this;this.initSearch?(this.publish("reload:start"),this.renderData(e)):(e&&(this.tableRequest=qn(qn({},this.tableRequest),e)),this.loading||(this.publish("reload:start",{loading:!0}),this.query.query(qn(qn({},this.tableRequest),{},{page:1,pageSize:this.largeSize}),this.config.fixedSorts,this.config.fixedConditions).then((function(n){t.publish("fetch",n),t.publish("reload:end",{loading:!1}),t.renderData(e)})),this.loading=!1),this.initSearch=!0)}},{key:"refresh",value:function(e){var t=this;this.loading||(this.publish("reload:start",{loading:!0}),this.query.query(qn(qn({},this.tableRequest),{},{page:1,pageSize:this.largeSize}),this.config.fixedSorts,this.config.fixedConditions).then((function(e){t.publish("fetch:reload",e),t.renderData()})),this.loading=!1)}},{key:"renderDataData",value:function(e){this.publish("search:local",{conditions:e.conditions,page:e.page||this.config.defaultPageNumber,pageSize:e.pageSize||this.config.defaultPageSize})}},{key:"renderTreeData",value:function(e){this.publish("search:local-tree",{conditions:e.conditions,page:e.page||this.config.defaultPageNumber,pageSize:e.pageSize||this.config.defaultPageSize})}},{key:"renderData",value:function(e){e?this.tableRequest=qn(qn({},this.tableRequest),e):e=this.tableRequest,this.isTreeData?this.renderTreeData(e):this.renderDataData(e)}}])}(),Xn=Ln((function e(t,n,r){In(this,e),zn(this,"version",0),this.ctx=t,this.ctxState=n,this.version=r}),[{key:"toArray",value:function(){return[this]}}]);Ln((function e(t,n){var r=this;In(this,e),zn(this,"originData",[]),zn(this,"dependency",""),this.tableContext=new Yn(t,n),this.tableContext.isTreeData=!!t.isTreeData,this.tableContext.setMethod("getOriginalData",(function(){return r.originData})),t.largeSize&&(this.tableContext.largeSize=t.largeSize)}),[{key:"load",value:function(e,t,n,r){var o=this;return this.tableContext.registerEvent("fetch:reload",(function(e){var r=e.data;o.originData=r,n(qn(qn({},t),{},{data:r,loading:!1,selectionValues:[]}))})),this.tableContext.registerEvent("search:local",(function(e){var r=e.conditions,i=e.page,a=e.pageSize,c=U(o.originData,r,i,a);n(qn(qn({},t),{},{data:c.data,loading:!1,total:c.count,pageNumber:i,selectionValues:[]}))})),this.tableContext.registerEvent("search:local-tree",(function(r){var i=r.conditions,a=r.page,c=r.pageSize,u=e.treeItemCallback;void 0===u&&(u=function(e){return e});var s=new Y(o.originData).tree(0,u),l=U(s,i,a,c);n(qn(qn({},t),{},{data:l.data,loading:!1,total:l.count,pageNumber:a}))})),this.tableContext.registerEvent("reload:start",(function(){t.loading=!0,n(qn({},t))})),this.tableContext.registerEvent("table-version:incr",(function(e){e.value})),this.tableContext.registerEvent("checkbox:values",(function(e){})),this.tableContext.registerEvent("checkbox:clean",(function(e){})),this.tableContext.registerEvent("page:change",(function(e){e.number,e.size})),new Xn(this.tableContext,t,r)}}]);var $n=Ln((function e(t,n,r){In(this,e),zn(this,"version",0),this.ctx=t,this.ctxState=n,this.version=r}),[{key:"toArray",value:function(){return[this]}}]);function Jn(){var e=v(D(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),2),t=e[0],n=e[1],r=function(e,t){var n=k(null);return new Kn(n,e,t)}();return{value:r,props:t,open:function(e){n(m(m({},t),e)),console.log(r,r.ref),r.open()},close:function(e){n(m(m({},t),e)),r.close()}}}Ln((function e(t,n){In(this,e),this.dependency="",this.tableContext=new G(t,n)}),[{key:"load",value:function(e,t,n,r){return this.tableContext.registerEvent("fetch:save",(function(r){var o,i=r.data,a=r.count;setTimeout((function(){t.selectionValues=[],t.data=i,t.total=a,t.loading=!1,n(qn({},t))}),null!==(o=e.loadingTime)&&void 0!==o?o:200)})),this.tableContext.registerEvent("reload:start",(function(){t.loading=!0,t.selectionValues=[],n(qn({},t))})),this.tableContext.registerEvent("checkbox:values",(function(e){})),this.tableContext.registerEvent("checkbox:clean",(function(e){})),this.tableContext.registerEvent("page:change",(function(e){e.number,e.size})),new $n(this.tableContext,t,r)}}]);var Qn,Zn={};var er=function(){if(Qn)return Zn;Qn=1;var e=ee;if("production"===process.env.NODE_ENV)Zn.createRoot=e.createRoot,Zn.hydrateRoot=e.hydrateRoot;else{var t=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Zn.createRoot=function(n,r){t.usingClientEntryPoint=!0;try{return e.createRoot(n,r)}finally{t.usingClientEntryPoint=!1}},Zn.hydrateRoot=function(n,r,o){t.usingClientEntryPoint=!0;try{return e.hydrateRoot(n,r,o)}finally{t.usingClientEntryPoint=!1}}}return Zn}(),tr=S.createRef();var nr=function(e,t,n){var r;return null===(r=tr.current)||void 0===r?void 0:r.alert({title:n,icon:e,msg:t})};!function(){if(null===tr.current){var e=document.createElement("div");document.body.appendChild(e),er.createRoot(e).render(S.createElement(X,{ref:tr}))}}();var rr={info:function(e,t){return nr("info",t,e)},warning:function(e,t){return nr("warning",t,e)},error:function(e,t){return nr("error",t,e)},question:function(e,t){return nr("question",t,e)}},or=S.createRef();var ir=function(e,t,n,r,o){var i,a;return"confirm"===e?null===(i=or.current)||void 0===i?void 0:i.confirm({title:n,msg:t,result:function(e){e?null==r||r():null==o||o()}}):"prompt"===e?null===(a=or.current)||void 0===a?void 0:a.prompt({title:n,msg:t,result:function(e){e?r(e):null==o||o()}}):void 0};!function(){if(null===or.current){var e=document.createElement("div");document.body.appendChild(e),er.createRoot(e).render(S.createElement(X,{ref:or}))}}();var ar=function(e,t,n,r){return ir("confirm",t,e,n,r)},cr=function(e,t,n,r){return ir("prompt",t,e,n,r)},ur={confirm:function(e,t,n,r){return ir("confirm",t,e,n,r)},prompt:function(e,t,n,r){return ir("prompt",t,e,n,r)}},sr=function(e){var t=e.title,n=e.message,r=e.type,o=e.duration,i=void 0===o?5e3:o,a=e.onClose;return C((function(){var e=setTimeout((function(){a&&a()}),i);return function(){return clearTimeout(e)}}),[i,a]),S.createElement("div",{className:"notification ".concat(r)},S.createElement("div",{className:"notification-title"},S.createElement("h2",{className:"notification-title-head"},t),S.createElement("span",{onClick:function(){return a()},className:"notification-title-close iconfont icon-cancel"})),S.createElement("div",{className:"notification-content"},n))},lr=new K,fr=j((function(e,n){var o=v(D([]),2),i=o[0],a=o[1],c=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"info",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:3e3,o=Date.now();a((function(i){return[].concat(b(i),[{id:o,title:e,message:t,type:n,duration:r}])}))},u=function(e){a((function(t){return t.filter((function(t){return t.id!==e}))}))};x(n,(function(){return{show:function(e,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"info",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:3e3;r(t().mark((function r(){var a;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,lr.lock();case 2:a=t.sent;try{c(e,n,o,i)}finally{a()}case 4:case"end":return t.stop()}}),r)})))()},close:function(e){r(t().mark((function n(){var r;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,lr.lock();case 2:r=t.sent;try{u(e)}finally{r()}case 4:case"end":return t.stop()}}),n)})))()}}}));return S.createElement("div",{className:"notification-container"},i.map((function(e){return S.createElement(sr,{key:e.id,id:e.id,title:e.title,message:e.message,type:e.type,duration:(t=e.id,n=e.duration,n-(Date.now()-t)),onClose:function(){return u(e.id)}});var t,n})))})),dr=S.createRef();var pr=function(e,t,n,r){var o;return null===(o=dr.current)||void 0===o?void 0:o.show(n,t,e,r)};!function(){if(null===dr.current){var e=document.createElement("div");document.body.appendChild(e),er.createRoot(e).render(S.createElement(fr,{ref:dr}))}}();var hr={info:function(e,t,n){return pr("info",e,t,n)},warning:function(e,t,n){return pr("warning",e,t,n)},error:function(e,t,n){return pr("error",e,t,n)},success:function(e,t,n){return pr("success",e,t,n)},validate:function(e,t,n){return pr("error",(r=e,S.createElement("div",{className:"notification-validate"},r.map((function(e,t){return S.createElement("p",{key:t},e)})))),t,n);var r}},vr=function(e){var t=e.message,n=e.type,r=e.duration,o=void 0===r?5e3:r,i=e.onClose;return C((function(){var e=setTimeout((function(){i&&i()}),o);return function(){return clearTimeout(e)}}),[o,i]),S.createElement("div",{className:"toast ".concat(n)},S.createElement("div",{className:"toast-content"},S.createElement("span",null,t),S.createElement("span",{onClick:function(){return i()},className:"toast-content-close iconfont icon-cancel"})))},yr=new K,mr=j((function(e,n){var o=v(D([]),2),i=o[0],a=o[1],c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"info",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3e3,r=Date.now();a((function(o){return[].concat(b(o),[{id:r,message:e,type:t,duration:n}])}))},u=function(e){a((function(t){return t.filter((function(t){return t.id!==e}))}))};x(n,(function(){return{show:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"info",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3e3;r(t().mark((function r(){var i;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,yr.lock();case 2:i=t.sent;try{c(e,n,o)}finally{i()}case 4:case"end":return t.stop()}}),r)})))()},close:function(e){r(t().mark((function n(){var r;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,yr.lock();case 2:r=t.sent;try{u(e)}finally{r()}case 4:case"end":return t.stop()}}),n)})))()}}}));return S.createElement("div",{className:"toast-container"},i.map((function(e){return S.createElement(vr,{key:e.id,id:e.id,message:e.message,type:e.type,duration:(t=e.id,n=e.duration,n-(Date.now()-t)),onClose:function(){return u(e.id)}});var t,n})))})),br=S.createRef();var gr=function(e,t,n){var r;return null===(r=br.current)||void 0===r?void 0:r.show(t,e,n)};!function(){if(null===br.current){var e=document.createElement("div");document.body.appendChild(e),er.createRoot(e).render(S.createElement(mr,{ref:br}))}}();var wr={info:function(e,t){return gr("info",e,t)},warning:function(e,t){return gr("warning",e,t)},error:function(e,t){return gr("error",e,t)},success:function(e,t){return gr("success",e,t)}},Er=function(e){var t=e.children,n=e.collapsed,r=e.logo,o=e.title,i=e.slots,a=e.menus,c=e.sidebarCfg,u=e.toggle,s=e.onSideMenuSelection,l=e.selection,f=v(D(600),2),d=f[0],p=f[1],h=k(null),y=function(){return{width:n?50:200}};return C((function(){window.onload=function(e){var t=h.current.clientHeight;p(t)}}),[]),S.createElement("div",{className:"admin-layout f-column"},S.createElement("div",{className:"admin-layout-header f-row"},S.createElement("div",{className:"f-row f-full"},S.createElement("div",{className:"main-title f-animate f-row",style:y()},null!=i&&i.title?i.title:S.createElement(S.Fragment,null,S.createElement("img",{className:"app-logo",src:null!=r?r:"7f4f2d68782a7faf.png"}),n?"":null!=o?o:"App Layout")),S.createElement("div",{className:"main-bar f-full f-row"},S.createElement("div",{className:"f-inline-row f-content-center"},S.createElement("span",{className:"main-toggle label-icon icon-list ",onClick:function(){u&&u(!n)}})),S.createElement("div",{className:"f-row"},null==i?void 0:i.barLeft),S.createElement("div",{className:"f-row f-full main-bar-right"},null==i?void 0:i.barRight)))),S.createElement("div",{className:"admin-layout-body f-full"},S.createElement("div",{className:"sidebar-body f-animate",style:y()},!n&&(null==i?void 0:i.userPanel),S.createElement($,m(m({style:y(),menuCls:"admin-sidemenu",data:a||[],collapsed:n,selection:l},c),{},{onSelectionChange:function(e){return function(e){s&&s(e)}(e)}}))),S.createElement("div",{className:"main-body",ref:h},S.createElement("div",{className:"f-column admin-layout-container",style:{height:d-46}},t),S.createElement("div",{className:"f-column admin-layout-footer",style:{height:45}},null==i?void 0:i.footer))))},_r=j((function(e,t){var n=e.tabsCfg,r=void 0===n?{}:n,o=e.tabPanelCfg,i=void 0===o?{}:o,a=e.data,c=void 0===a?[]:a,u=e.onTabClosed,s=e.onTabSelect;return S.createElement(S.Fragment,null,S.createElement(J,m(m({className:"admin-tabs-panel tabs-inner",ref:t},r),{},{onTabSelect:function(e){var t=e.props,n=t.id,r=t.title,o=t.path,i=t.type;s&&s({id:n,text:r,path:o,type:i})},onTabClose:function(e){u&&u(e)}}),c.map((function(e,t){return S.createElement(Q,m(m({key:t},i),e))}))))})),Or=function(e){var t=e.items,n=e.hasBack,r=e.toBack,o=e.to,i=e.separator,a=void 0===i?"/":i,c=e.backLabel,u=void 0===c?"Back":c,s=function(e,t){e.path&&o&&o(e,t)},l=function(e){var t=[];return e.path&&t.push("link"),e.iconCls&&t.push(e.iconCls),t.join(" ")};return S.createElement("div",{className:"admin-breadcrumb-layout"},S.createElement("div",{className:"admin-breadcrumb-plane"},function(){if(n)return S.createElement("div",{className:"admin-breadcrumb-back",onClick:r},S.createElement("span",{className:"iconfont icon-back"}),S.createElement("span",{className:"admin-breadcrumb-back-title"},u),S.createElement("span",{className:"admin-breadcrumb-back-s"},"|"))}(),S.createElement("div",{className:"admin-breadcrumb"},null==t?void 0:t.map((function(e,n){return function(e,t,n){var r;return n?S.createElement("div",{key:t,className:"admin-breadcrumb-item"},S.createElement("span",{className:l(e),onClick:function(t){return s(e,t)}},e.label),S.createElement("span",{className:"admin-breadcrumb-separator"},null!==(r=e.separator)&&void 0!==r?r:a)):S.createElement("div",{key:t,className:"admin-breadcrumb-item"},S.createElement("span",{className:l(e),onClick:function(t){return s(e,t)}},e.label))}(e,n,!!t&&n<t.length-1)})))))},Nr={maskMotion:{motionAppear:!0,motionName:"rc-drawer-mask-motion",onAppearEnd:console.warn},motion:function(e){return{motionAppear:!0,motionName:"rc-drawer-panel-motion-".concat(e)}}},Sr=j((function(e,t){var n=v(S.useState(!1),2),r=n[0],o=n[1];return x(t,(function(){return{toggle:function(){o(!r)}}})),S.createElement(te,m({open:r,onClose:function(){o(!1)},afterOpenChange:e.afterOpenChange,placement:e.placement,width:e.width},Nr),e.children)})),kr=function(e){var t=e.mode,n=e.children,r=e.header,o=e.footer;return S.createElement(Z,{className:"admin-default-panel "+(null!=t?t:"none"),showHeader:!!r,showFooter:!!o,collapsible:!1,bodyCls:["admin-panel-body"].join(" "),border:!1,header:r,footer:o,headerCls:"admin-panel-header",footerCls:"admin-panel-footer"},S.createElement("div",{className:"admin-panel-body-content"},n))},Dr=function(e){var t=e.children,n=e.ctx,r=e.point;return S.createElement(S.Fragment,null,null!=n&&n.can(r)?t:null)};export{rr as $alert,ar as $confirm,ur as $interactive,hr as $notice,cr as $prompt,wr as $toast,Dr as Access,Er as AdminLayout,ie as Alert,Or as Breadcrumb,ae as Confirm,kr as DefaultPanel,Sr as DrawerPanel,ce as Prompt,_r as TabsPanel,tr as alertMessagerRef,or as interactiveMessagerRef,ne as messagerAlertRef,re as messagerConfirmRef,oe as messagerPromptRef,dr as notificationRef,ue as setSideMenuState,se as toComboBox,br as toastRef,Pn as useLocale,Jn as useRefDialog,Tn as useTheme};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
html[theme=default] .admin-layout-container{background:#fafafa}html[theme=black] .admin-layout{background-color:#3d3d3d;color:#fff}html[theme=black] .admin-layout-container{background:#555}html[theme=black] .admin-layout .admin-layout-footer{color:#ccc}.label-icon{height:18px;width:18px}.l-label-icon{height:32px;width:32px}.icon-list{background:url(icons-ext/list.png) no-repeat 50%;background-size:cover}.admin-layout{height:100%;width:100%}.admin-layout-footer{line-height:45px;text-align:center}.admin-layout-header{height:50px;line-height:50px}.admin-layout-header .app-logo{height:24px;margin:13px 10px;width:24px}.admin-layout-header .main-title{font-size:20px;overflow:hidden;text-align:center}.admin-layout-header .main-bar .main-bar-right{align-items:center;justify-content:end;padding:0 16px}.admin-layout-header .main-bar .main-toggle{cursor:pointer;display:inline-block;margin:0 10px;position:relative}.admin-layout-body{width:100%}.admin-layout-body .sidebar-body{float:left;height:100%}.admin-layout-body .main-body{height:100%;width:100%}.admin-tabs-panel{display:flex;min-height:35px;width:100%}.admin-tabs-panel-body{display:flex;flex-grow:1;height:auto;width:auto}.admin-default-panel{padding:5px;width:100%}.admin-default-panel .admin-panel-body .admin-panel-body-content{min-height:200px}.admin-default-panel .admin-panel-footer{padding:3px 2px}.admin-default-panel .admin-search-panel{display:flex;flex-direction:row;padding:5px;width:100%}.admin-default-panel .admin-search-panel .form-field{margin:0 3px}.admin-default-panel.cover .admin-panel-body{display:flex;flex-direction:column;height:100%}.admin-default-panel.cover .admin-panel-body .admin-panel-body-content{flex-grow:2;height:300px}.admin-breadcrumb-layout,.admin-breadcrumb-plane{display:flex;flex-direction:row}.admin-breadcrumb-plane{align-items:center;justify-items:center;padding:5px 3px}.admin-breadcrumb-separator{margin:0 5px}.admin-breadcrumb{display:flex}.admin-breadcrumb-item .link{cursor:pointer;font-weight:700}.admin-breadcrumb-item .link:hover{color:#00f}.admin-breadcrumb-back{align-items:center;cursor:pointer;display:flex;font-size:14px;font-weight:500;justify-items:center}.admin-breadcrumb-back-title{margin:0 3px}.admin-breadcrumb-back-s{color:#1d1e1f;margin:0 6px}.admin-breadcrumb-back:hover{color:#00f}.toast-container{left:50%;position:fixed;right:auto;top:20px;transform:translateX(-50%);z-index:9999}.toast{background-color:#f0f0f0;border-radius:4px;box-shadow:0 4px 6px rgba(0,0,0,.1);display:flex;flex-direction:column;margin-bottom:10px;padding:12px 20px;transition:transform .3s ease-in-out;width:600px}.toast-content{align-items:center;display:flex;flex-direction:row;font-size:12px;justify-content:space-between;padding:5px 3px}.toast-content-close{cursor:pointer}.toast.success{background-color:#f0f9eb;color:#67c23a}.toast.error{background-color:#fef0f0;color:#f56c6c}.toast.info{background-color:#e8f4fd;color:#409eff}.toast span{font-size:14px}.notification-container{position:fixed;right:10px;top:10px;z-index:9999}.notification{background-color:#f0f0f0;border-radius:4px;box-shadow:0 4px 6px rgba(0,0,0,.1);display:flex;flex-direction:column;margin-bottom:10px;padding:12px;transition:transform .3s ease-in-out;width:280px}.notification-title{align-items:center;display:flex;flex-direction:row;justify-content:space-between}.notification-title-head{margin:0;padding:0}.notification-title-close{cursor:pointer}.notification-content{font-size:12px}.notification-validate{margin:5px 0}.notification.success{background-color:#f0f9eb;color:#67c23a}.notification.error{background-color:#fef0f0;color:#f56c6c}.notification.info{background-color:#e8f4fd;color:#409eff}.notification span{font-size:14px}.color-black{color:#000}.color-navy{color:navy}.color-dark-blue{color:#00008b}.color-medium-blue{color:#0000cd}.color-blue{color:#00f}.color-dark-green{color:#006400}.color-green{color:green}.color-teal{color:teal}.color-dark-cyan{color:#008b8b}.color-deep-sky-blue{color:#00bfff}.color-dark-turquoise{color:#00ced1}.color-medium-spring-green{color:#00fa9a}.color-lime{color:#0f0}.color-spring-green{color:#00ff7f}.color-cyan{color:#0ff}.color-mid-night-blue{color:#191970}.color-dodger-blue{color:#1e90ff}.color-light-sea-green{color:#20b2aa}.color-forest-green{color:#228b22}.color-sea-green{color:#2e8b57}.color-dark-slate-gray{color:#2f4f4f}.color-lime-green{color:#32cd32}.color-medium-sea-green{color:#3cb371}.color-turquoise{color:#40e0d0}.color-royal-blue{color:#4169e1}.color-steel-blue{color:#4682b4}.color-dark-slate-blue{color:#483d8b}.color-medium-turquoise{color:#48d1cc}.color-indigo{color:indigo}.color-dark-olive-green{color:#556b2f}.color-cadet-blue{color:#5f9ea0}.color-corn-flower-blue{color:#6495ed}.color-medium-aqua-marine{color:#66cdaa}.color-dim-gray{color:#696969}.color-slate-blue{color:#6a5acd}.color-olive-drab{color:#6b8e23}.color-slate-gray{color:#708090}.color-light-slate-gray{color:#789}.color-medium-slate-blue{color:#7b68ee}.color-lawn-green{color:#7cfc00}.color-chart-reuse{color:#7fff00}.color-aqua-marine{color:#7fffd4}.color-maroon{color:maroon}.color-purple{color:purple}.color-olive{color:olive}.color-gray{color:grey}.color-sky-blue{color:#87ceeb}.color-light-sky-blue{color:#87cefa}.color-blue-violet{color:#8a2be2}.color-dark-red{color:#8b0000}.color-dark-magenta{color:#8b008b}.color-saddle-brown{color:#8b4513}.color-dark-sea-green{color:#8fbc8f}.color-light-green{color:#90ee90}.color-medium-purple{color:#9370d8}.color-dark-violet{color:#9400d3}.color-pale-green{color:#98fb98}.color-dark-orchid{color:#9932cc}.color-yellow-green{color:#9acd32}.color-sienna{color:sienna}.color-brown{color:brown}.color-dark-gray{color:#a9a9a9}.color-light-blue{color:#add8e6}.color-green-yellow{color:#adff2f}.color-pale-turquoise{color:#afeeee}.color-light-steel-blue{color:#b0c4de}.color-powder-blue{color:#b0e0e6}.color-fire-brick{color:#b22222}.color-dark-golden-rod{color:#b8860b}.color-medium-orchid{color:#ba55d3}.color-rosy-brown{color:#bc8f8f}.color-dark-khaki{color:#bdb76b}.color-silver{color:silver}.color-medium-violet-red{color:#c71585}.color-indian-red{color:#cd5c5c}.color-peru{color:peru}.color-chocolate{color:#d2691e}.color-tan{color:tan}.color-light-gray{color:#d3d3d3}.color-pale-violet-red{color:#d87093}.color-thistle{color:#d8bfd8}.color-orchid{color:orchid}.color-golden-rod{color:#daa520}.color-crimson{color:#dc143c}.color-gains-boro{color:#dcdcdc}.color-plum{color:plum}.color-burly-wood{color:#deb887}.color-light-cyan{color:#e0ffff}.color-lavender{color:#e6e6fa}.color-dark-salmon{color:#e9967a}.color-violet{color:violet}.color-pale-golden-rod{color:#eee8aa}.color-light-coral{color:#f08080}.color-khaki{color:khaki}.color-alice-blue{color:#f0f8ff}.color-honey-dew{color:#f0fff0}.color-azure{color:azure}.color-sandy-brown{color:#f4a460}.color-wheat{color:wheat}.color-beige{color:beige}.color-white-smoke{color:#f5f5f5}.color-mint-cream{color:#f5fffa}.color-ghost-white{color:#f8f8ff}.color-salmon{color:salmon}.color-antique-white{color:#faebd7}.color-linen{color:linen}.color-light-golden-rod-yellow{color:#fafad2}.color-old-lace{color:#fdf5e6}.color-red{color:red}.color-magenta{color:#f0f}.color-deep-pink{color:#ff1493}.color-orange-red{color:#ff4500}.color-tomato{color:tomato}.color-hot-pink{color:#ff69b4}.color-coral{color:coral}.color-dark-orange{color:#ff8c00}.color-light-salmon{color:#ffa07a}.color-orange{color:orange}.color-light-pink{color:#ffb6c1}.color-pink{color:pink}.color-gold{color:gold}.color-peach-puff{color:#ffdab9}.color-navajo-white{color:#ffdead}.color-moccasin{color:#ffe4b5}.color-bisque{color:bisque}.color-misty-rose{color:#ffe4e1}.color-blanched-almond{color:#ffebcd}.color-papaya-whip{color:#ffefd5}.k-color-warn{color:#ffb800}.k-color-success{color:#5fb878}.k-color-info{color:#31bdec}.k-color-alert,.k-color-error{color:#ff5722}.k-color-question{color:#1e9fff}.layui-badge,.layui-badge-dot,.layui-badge-rim{background-color:#ff5722;border-radius:2px;color:#fff;display:inline-block;font-size:12px;padding:0 6px;position:relative;text-align:center}.layui-badge{height:18px;line-height:18px}.layui-bg-red{background-color:#ff5722!important;color:#fff!important}.layui-bg-orange{background-color:#ffb800!important;color:#fff!important}.layui-bg-green{background-color:#16baaa!important;color:#fff!important}.layui-bg-cyan{background-color:#2f4056!important;color:#fff!important}.layui-bg-blue{background-color:#1e9fff!important;color:#fff!important}.layui-bg-purple{background-color:#a233c6!important;color:#fff!important}.layui-bg-black{background-color:#2f363c!important;color:#fff!important}.layui-bg-gray{background-color:#fafafa!important;color:#5f5f5f!important}.layui-border{color:#5f5f5f!important}.layui-border,.layui-border-red{border-style:solid;border-width:1px}.layui-border-red{border-color:#ff5722!important;color:#ff5722!important}.layui-border-orange{border-color:#ffb800!important;border-style:solid;border-width:1px;color:#ffb800!important}.layui-border-green{border-color:#16baaa!important;border-style:solid;border-width:1px;color:#16baaa!important}.layui-border-cyan{border-color:#2f4056!important;border-style:solid;border-width:1px;color:#2f4056!important}.layui-border-blue{border-color:#1e9fff!important;border-style:solid;border-width:1px;color:#1e9fff!important}.layui-border-purple{border-color:#a233c6!important;border-style:solid;border-width:1px;color:#a233c6!important}.layui-border-black{border-color:#2f363c!important;border-style:solid;border-width:1px;color:#2f363c!important}hr.layui-border-black,hr.layui-border-blue,hr.layui-border-cyan,hr.layui-border-green,hr.layui-border-orange,hr.layui-border-purple,hr.layui-border-red{border-width:0 0 1px}.layui-timeline-item:before{background-color:#eee}.rc-drawer{bottom:0;left:0;pointer-events:none;position:fixed;right:0;top:0;z-index:1050}.rc-drawer-inline{position:absolute}.rc-drawer-mask{background:rgba(0,0,0,.5);bottom:0;left:0;pointer-events:auto;position:absolute;right:0;top:0;z-index:1050}.rc-drawer-content-wrapper{overflow:hidden;position:absolute;transition:transform .3s;z-index:1050}.rc-drawer-content-wrapper-hidden{display:none}.rc-drawer-left .rc-drawer-content-wrapper{bottom:0;left:0;top:0}.rc-drawer-right .rc-drawer-content-wrapper{bottom:0;right:0;top:0}.rc-drawer-content{background:var(--k-pager-bg);height:100%;overflow:auto;pointer-events:auto;width:100%}.rc-drawer-mask-motion-appear-active,.rc-drawer-mask-motion-enter-active,.rc-drawer-mask-motion-leave-active{transition:all .3s}.rc-drawer-mask-motion-appear,.rc-drawer-mask-motion-enter{opacity:0}.rc-drawer-mask-motion-appear-active,.rc-drawer-mask-motion-enter-active,.rc-drawer-mask-motion-leave{opacity:1}.rc-drawer-mask-motion-leave-active{opacity:0}.rc-drawer-panel-motion-appear-start,.rc-drawer-panel-motion-enter-start,.rc-drawer-panel-motion-leave-start{transition:none!important}.rc-drawer-panel-motion-appear-active,.rc-drawer-panel-motion-enter-active,.rc-drawer-panel-motion-leave-active{transition:all .3s}.rc-drawer-panel-motion-left-appear,.rc-drawer-panel-motion-left-enter{transform:translateX(-100%)}.rc-drawer-panel-motion-left-appear-active,.rc-drawer-panel-motion-left-enter-active,.rc-drawer-panel-motion-left-leave{transform:translateX(0)}.rc-drawer-panel-motion-left-leave-active{transform:translateX(-100%)!important}.rc-drawer-panel-motion-right-appear,.rc-drawer-panel-motion-right-enter{transform:translateX(100%)}.rc-drawer-panel-motion-right-appear-active,.rc-drawer-panel-motion-right-enter-active,.rc-drawer-panel-motion-right-leave{transform:translateX(0)}.rc-drawer-panel-motion-right-leave-active{transform:translateX(100%)!important}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";var e=["reducerPath"];function t(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */t=function(){return n};var e,n={},r=Object.prototype,o=r.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},c=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function f(e,t,n,r){var o=t&&t.prototype instanceof b?t:b,a=Object.create(o.prototype),c=new T(r||[]);return i(a,"_invoke",{value:D(e,n,c)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}n.wrap=f;var p="suspendedStart",h="suspendedYield",v="executing",y="completed",m={};function b(){}function g(){}function w(){}var E={};l(E,c,(function(){return this}));var _=Object.getPrototypeOf,N=_&&_(_(A([])));N&&N!==r&&o.call(N,c)&&(E=N);var k=w.prototype=b.prototype=Object.create(E);function S(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function n(r,i,a,c){var u=d(e[r],e,i);if("throw"!==u.type){var s=u.arg,l=s.value;return l&&"object"==O(l)&&o.call(l,"__await")?t.resolve(l.__await).then((function(e){n("next",e,a,c)}),(function(e){n("throw",e,a,c)})):t.resolve(l).then((function(e){s.value=e,a(s)}),(function(e){return n("throw",e,a,c)}))}c(u.arg)}var r;i(this,"_invoke",{value:function(e,o){function i(){return new t((function(t,r){n(e,o,t,r)}))}return r=r?r.then(i,i):i()}})}function D(t,n,r){var o=p;return function(i,a){if(o===v)throw Error("Generator is already running");if(o===y){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var c=r.delegate;if(c){var u=C(c,r);if(u){if(u===m)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=v;var s=d(t,n,r);if("normal"===s.type){if(o=r.done?y:h,s.arg===m)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=y,r.method="throw",r.arg=s.arg)}}}function C(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,C(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var i=d(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function A(t){if(t||""===t){var n=t[c];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function n(){for(;++r<t.length;)if(o.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(O(t)+" is not iterable")}return g.prototype=w,i(k,"constructor",{value:w,configurable:!0}),i(w,"constructor",{value:g,configurable:!0}),g.displayName=l(w,s,"GeneratorFunction"),n.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,l(e,s,"GeneratorFunction")),e.prototype=Object.create(k),e},n.awrap=function(e){return{__await:e}},S(x.prototype),l(x.prototype,u,(function(){return this})),n.AsyncIterator=x,n.async=function(e,t,r,o,i){void 0===i&&(i=Promise);var a=new x(f(e,t,r,o),i);return n.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},S(k),l(k,s,"Generator"),l(k,c,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),n.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},n.values=A,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(r,o){return c.type="throw",c.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var u=o.call(a,"catchLoc"),s=o.call(a,"finallyLoc");if(u&&s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:A(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),m}},n}function n(e,t,n,r,o,i,a){try{var c=e[i](a),u=c.value}catch(e){return void n(e)}c.done?t(u):Promise.resolve(u).then(r,o)}function r(e){return function(){var t=this,r=arguments;return new Promise((function(o,i){var a=e.apply(t,r);function c(e){n(a,o,i,c,u,"next",e)}function u(e){n(a,o,i,c,u,"throw",e)}c(void 0)}))}}function o(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=g(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}function i(e,t,n){return t=f(t),function(e,t){if(t&&("object"==O(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,s()?Reflect.construct(t,n||[],f(e).constructor):t.apply(e,n))}function a(){return a="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=f(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},a.apply(null,arguments)}function c(e){var t="function"==typeof Map?new Map:void 0;return c=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return u(e,arguments,f(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),l(n,e)},c(e)}function u(e,t,n){if(s())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&l(o,n.prototype),o}function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(s=function(){return!!e})()}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_(r.key),r)}}function h(e,t,n){return t&&p(e.prototype,t),n&&p(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,c=[],u=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(e,t)||g(e,t)||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 y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){E(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function b(e){return function(e){if(Array.isArray(e))return w(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||g(e)||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 g(e,t){if(e){if("string"==typeof e)return w(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?w(e,t):void 0}}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function E(e,t,n){return(t=_(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _(e){var t=function(e,t){if("object"!=O(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=O(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==O(t)?t:t+""}function O(e){return O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},O(e)}var N=require("react"),k=require("@kordar-lib/i18n"),S=require("lodash-es"),x=require("@kordar-lib/base"),D=require("@kordar-lib/menus"),C=require("rc-easyui"),j=require("react-dom"),P=require("rc-drawer");function T(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var A=T(N),V=N.createRef(),R=N.createRef(),I=N.createRef();function L(e){return"Minified Redux error #".concat(e,"; visit https://redux.js.org/Errors?code=").concat(e," for the full message or use the non-minified dev environment for full errors. ")}var z=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}(),M=function(){return Math.random().toString(36).substring(7).split("").join(".")},F={INIT:"@@redux/INIT".concat(M()),REPLACE:"@@redux/REPLACE".concat(M()),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION".concat(M())}};function H(e){if("object"!==O(e)||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function q(e){if(void 0===e)return"undefined";if(null===e)return"null";var t=O(e);switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(function(e){return e instanceof Date||"function"==typeof e.toDateString&&"function"==typeof e.getDate&&"function"==typeof e.setDate}(e))return"date";if(function(e){return e instanceof Error||"string"==typeof e.message&&e.constructor&&"number"==typeof e.constructor.stackTraceLimit}(e))return"error";var n=function(e){return"function"==typeof e.constructor?e.constructor.name:null}(e);switch(n){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return n}return Object.prototype.toString.call(e).slice(8,-1).toLowerCase().replace(/\s/g,"")}function B(e){var t=O(e);return"production"!==process.env.NODE_ENV&&(t=q(e)),t}function W(e,t,n){if("function"!=typeof e)throw new Error("production"===process.env.NODE_ENV?L(2):"Expected the root reducer to be a function. Instead, received: '".concat(B(e),"'"));if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error("production"===process.env.NODE_ENV?L(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 t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error("production"===process.env.NODE_ENV?L(1):"Expected the enhancer to be a function. Instead, received: '".concat(B(n),"'"));return n(W)(e,t)}var r=e,o=t,i=new Map,a=i,c=0,u=!1;function s(){a===i&&(a=new Map,i.forEach((function(e,t){a.set(t,e)})))}function l(){if(u)throw new Error("production"===process.env.NODE_ENV?L(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 f(e){if("function"!=typeof e)throw new Error("production"===process.env.NODE_ENV?L(4):"Expected the listener to be a function. Instead, received: '".concat(B(e),"'"));if(u)throw new Error("production"===process.env.NODE_ENV?L(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 t=!0;s();var n=c++;return a.set(n,e),function(){if(t){if(u)throw new Error("production"===process.env.NODE_ENV?L(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.");t=!1,s(),a.delete(n),i=null}}}function d(e){if(!H(e))throw new Error("production"===process.env.NODE_ENV?L(7):"Actions must be plain objects. Instead, the actual type was: '".concat(B(e),"'. 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===e.type)throw new Error("production"===process.env.NODE_ENV?L(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if("string"!=typeof e.type)throw new Error("production"===process.env.NODE_ENV?L(17):'Action "type" property must be a string. Instead, the actual type was: \''.concat(B(e.type),"'. Value was: '").concat(e.type,"' (stringified)"));if(u)throw new Error("production"===process.env.NODE_ENV?L(9):"Reducers may not dispatch actions.");try{u=!0,o=r(o,e)}finally{u=!1}return(i=a).forEach((function(e){e()})),e}return d({type:F.INIT}),E({dispatch:d,subscribe:f,getState:l,replaceReducer:function(e){if("function"!=typeof e)throw new Error("production"===process.env.NODE_ENV?L(10):"Expected the nextReducer to be a function. Instead, received: '".concat(B(e)));r=e,d({type:F.REPLACE})}},z,(function(){var e=f;return E({subscribe:function(t){if("object"!==O(t)||null===t)throw new Error("production"===process.env.NODE_ENV?L(11):"Expected the observer to be an object. Instead, received: '".concat(B(t),"'"));function n(){var e=t;e.next&&e.next(l())}return n(),{unsubscribe:e(n)}}},z,(function(){return this}))}))}function G(e){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(e);try{throw new Error(e)}catch(e){}}function U(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var o=t[r];"production"!==process.env.NODE_ENV&&void 0===e[o]&&G('No reducer provided for key "'.concat(o,'"')),"function"==typeof e[o]&&(n[o]=e[o])}var i,a,c=Object.keys(n);"production"!==process.env.NODE_ENV&&(i={});try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if(void 0===n(void 0,{type:F.INIT}))throw new Error("production"===process.env.NODE_ENV?L(12):'The slice reducer for key "'.concat(t,"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined."));if(void 0===n(void 0,{type:F.PROBE_UNKNOWN_ACTION()}))throw new Error("production"===process.env.NODE_ENV?L(13):'The slice reducer for key "'.concat(t,"\" returned undefined when probed with a random type. Don't try to handle '").concat(F.INIT,'\' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.'))}))}(n)}catch(e){a=e}return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(a)throw a;if("production"!==process.env.NODE_ENV){var r=function(e,t,n,r){var o=Object.keys(t),i=n&&n.type===F.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(0===o.length)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!H(e))return"The ".concat(i,' has unexpected type of "').concat(B(e),'". Expected argument to be an object with the following keys: "').concat(o.join('", "'),'"');var a=Object.keys(e).filter((function(e){return!t.hasOwnProperty(e)&&!r[e]}));return a.forEach((function(e){r[e]=!0})),n&&n.type===F.REPLACE?void 0:a.length>0?"Unexpected ".concat(a.length>1?"keys":"key",' "').concat(a.join('", "'),'" found in ').concat(i,'. Expected to find one of the known reducer keys instead: "').concat(o.join('", "'),'". Unexpected keys will be ignored.'):void 0}(e,n,t,i);r&&G(r)}for(var o=!1,u={},s=0;s<c.length;s++){var l=c[s],f=n[l],d=e[l],p=f(d,t);if(void 0===p){var h=t&&t.type;throw new Error("production"===process.env.NODE_ENV?L(14):"When called with an action of type ".concat(h?'"'.concat(String(h),'"'):"(unknown type)",', the slice reducer for key "').concat(l,'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'))}u[l]=p,o=o||p!==d}return(o=o||c.length!==Object.keys(e).length)?u:e}}function K(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function Y(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(n,r){var o=e(n,r),i=function(){throw new Error("production"===process.env.NODE_ENV?L(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},a={getState:o.getState,dispatch:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return i.apply(void 0,[e].concat(n))}},c=t.map((function(e){return e(a)}));return i=K.apply(void 0,b(c))(o.dispatch),m(m({},o),{},{dispatch:i})}}}function $(e){return H(e)&&"type"in e&&"string"==typeof e.type}var X=Symbol.for("immer-nothing"),J=Symbol.for("immer-draftable"),Q=Symbol.for("immer-state"),Z="production"!==process.env.NODE_ENV?[function(e){return"The plugin for '".concat(e,"' has not been loaded into Immer. To enable the plugin, import and call `enable").concat(e,"()` when initializing your application.")},function(e){return"produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '".concat(e,"'")},"This object has been frozen and should not be mutated",function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return"'current' expects a draft, got: ".concat(e)},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(e){return"'original' expects a draft, got: ".concat(e)}]:[];function ee(e){if("production"!==process.env.NODE_ENV){for(var t=Z[e],n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var i="function"==typeof t?t.apply(null,r):t;throw new Error("[Immer] ".concat(i))}throw new Error("[Immer] minified error nr: ".concat(e,". Full error at: https://bit.ly/3cXEKWf"))}var te=Object.getPrototypeOf;function ne(e){return!!e&&!!e[Q]}function re(e){var t;return!!e&&(ie(e)||Array.isArray(e)||!!e[J]||!(null===(t=e.constructor)||void 0===t||!t[J])||le(e)||fe(e))}var oe=Object.prototype.constructor.toString();function ie(e){if(!e||"object"!==O(e))return!1;var t=te(e);if(null===t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===oe}function ae(e,t){0===ce(e)?Reflect.ownKeys(e).forEach((function(n){t(n,e[n],e)})):e.forEach((function(n,r){return t(r,n,e)}))}function ce(e){var t=e[Q];return t?t.type_:Array.isArray(e)?1:le(e)?2:fe(e)?3:0}function ue(e,t){return 2===ce(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function se(e,t,n){var r=ce(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function le(e){return e instanceof Map}function fe(e){return e instanceof Set}function de(e){return e.copy_||e.base_}function pe(e,t){if(le(e))return new Map(e);if(fe(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);var n=ie(e);if(!0===t||"class_only"===t&&!n){var r=Object.getOwnPropertyDescriptors(e);delete r[Q];for(var o=Reflect.ownKeys(r),i=0;i<o.length;i++){var a=o[i],c=r[a];!1===c.writable&&(c.writable=!0,c.configurable=!0),(c.get||c.set)&&(r[a]={configurable:!0,writable:!0,enumerable:c.enumerable,value:e[a]})}return Object.create(te(e),r)}var u=te(e);if(null!==u&&n)return m({},e);var s=Object.create(u);return Object.assign(s,e)}function he(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return ye(e)||ne(e)||!re(e)||(ce(e)>1&&(e.set=e.add=e.clear=e.delete=ve),Object.freeze(e),t&&Object.entries(e).forEach((function(e){var t=v(e,2);t[0];return he(t[1],!0)}))),e}function ve(){ee(2)}function ye(e){return Object.isFrozen(e)}var me,be={};function ge(e){var t=be[e];return t||ee(0,e),t}function we(){return me}function Ee(e,t){t&&(ge("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function _e(e){Oe(e),e.drafts_.forEach(ke),e.drafts_=null}function Oe(e){e===me&&(me=e.parent_)}function Ne(e){return me={drafts_:[],parent_:me,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function ke(e){var t=e[Q];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function Se(e,t){t.unfinalizedDrafts_=t.drafts_.length;var n=t.drafts_[0];return void 0!==e&&e!==n?(n[Q].modified_&&(_e(t),ee(4)),re(e)&&(e=xe(t,e),t.parent_||Ce(t,e)),t.patches_&&ge("Patches").generateReplacementPatches_(n[Q].base_,e,t.patches_,t.inversePatches_)):e=xe(t,n,[]),_e(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==X?e:void 0}function xe(e,t,n){if(ye(t))return t;var r=t[Q];if(!r)return ae(t,(function(o,i){return De(e,r,t,o,i,n)})),t;if(r.scope_!==e)return t;if(!r.modified_)return Ce(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;var o=r.copy_,i=o,a=!1;3===r.type_&&(i=new Set(o),o.clear(),a=!0),ae(i,(function(t,i){return De(e,r,o,t,i,n,a)})),Ce(e,o,!1),n&&e.patches_&&ge("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function De(e,t,n,r,o,i,a){if("production"!==process.env.NODE_ENV&&o===n&&ee(5),ne(o)){var c=xe(e,o,i&&t&&3!==t.type_&&!ue(t.assigned_,r)?i.concat(r):void 0);if(se(n,r,c),!ne(c))return;e.canAutoFreeze_=!1}else a&&n.add(o);if(re(o)&&!ye(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;xe(e,o),t&&t.scope_.parent_||"symbol"===O(r)||!Object.prototype.propertyIsEnumerable.call(n,r)||Ce(e,o)}}function Ce(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&he(t,n)}var je={get:function(e,t){if(t===Q)return e;var n=de(e);if(!ue(n,t))return function(e,t,n){var r,o=Ae(t,n);return o?"value"in o?o.value:null===(r=o.get)||void 0===r?void 0:r.call(e.draft_):void 0}(e,n,t);var r=n[t];return e.finalized_||!re(r)?r:r===Te(e.base_,t)?(Re(e),e.copy_[t]=Le(r,e)):r},has:function(e,t){return t in de(e)},ownKeys:function(e){return Reflect.ownKeys(de(e))},set:function(e,t,n){var r=Ae(de(e),t);if(null!=r&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){var o=Te(de(e),t),i=null==o?void 0:o[Q];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}(n,o)&&(void 0!==n||ue(e.base_,t)))return!0;Re(e),Ve(e)}return e.copy_[t]===n&&(void 0!==n||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty:function(e,t){return void 0!==Te(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,Re(e),Ve(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor:function(e,t){var n=de(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){ee(11)},getPrototypeOf:function(e){return te(e.base_)},setPrototypeOf:function(){ee(12)}},Pe={};function Te(e,t){var n=e[Q];return(n?de(n):e)[t]}function Ae(e,t){if(t in e)for(var n=te(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=te(n)}}function Ve(e){e.modified_||(e.modified_=!0,e.parent_&&Ve(e.parent_))}function Re(e){e.copy_||(e.copy_=pe(e.base_,e.scope_.immer_.useStrictShallowCopy_))}ae(je,(function(e,t){Pe[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),Pe.deleteProperty=function(e,t){return"production"!==process.env.NODE_ENV&&isNaN(parseInt(t))&&ee(13),Pe.set.call(this,e,t,void 0)},Pe.set=function(e,t,n){return"production"!==process.env.NODE_ENV&&"length"!==t&&isNaN(parseInt(t))&&ee(14),je.set.call(this,e[0],t,n,e[0])};var Ie=function(){return h((function e(t){var n=this;d(this,e),this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=function(e,t,r){if("function"==typeof e&&"function"!=typeof t){var o=t;t=e;var i=n;return function(){for(var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o,r=arguments.length,a=new Array(r>1?r-1:0),c=1;c<r;c++)a[c-1]=arguments[c];return i.produce(n,(function(n){var r;return(r=t).call.apply(r,[e,n].concat(a))}))}}var a;if("function"!=typeof t&&ee(6),void 0!==r&&"function"!=typeof r&&ee(7),re(e)){var c=Ne(n),u=Le(e,void 0),s=!0;try{a=t(u),s=!1}finally{s?_e(c):Oe(c)}return Ee(c,r),Se(a,c)}if(!e||"object"!==O(e)){if(void 0===(a=t(e))&&(a=e),a===X&&(a=void 0),n.autoFreeze_&&he(a,!0),r){var l=[],f=[];ge("Patches").generateReplacementPatches_(e,a,l,f),r(l,f)}return a}ee(1,e)},this.produceWithPatches=function(e,t){return"function"==typeof e?function(t){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return n.produceWithPatches(t,(function(t){return e.apply(void 0,[t].concat(o))}))}:[n.produce(e,t,(function(e,t){r=e,o=t})),r,o];var r,o},"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),"boolean"==typeof(null==t?void 0:t.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy)}),[{key:"createDraft",value:function(e){re(e)||ee(8),ne(e)&&(e=function(e){ne(e)||ee(10,e);return ze(e)}(e));var t=Ne(this),n=Le(e,void 0);return n[Q].isManual_=!0,Oe(t),n}},{key:"finishDraft",value:function(e,t){var n=e&&e[Q];n&&n.isManual_||ee(9);var r=n.scope_;return Ee(r,t),Se(void 0,r)}},{key:"setAutoFreeze",value:function(e){this.autoFreeze_=e}},{key:"setUseStrictShallowCopy",value:function(e){this.useStrictShallowCopy_=e}},{key:"applyPatches",value:function(e,t){var n;for(n=t.length-1;n>=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));var o=ge("Patches").applyPatches_;return ne(e)?o(e,t):this.produce(e,(function(e){return o(e,t)}))}}])}();function Le(e,t){var n=le(e)?ge("MapSet").proxyMap_(e,t):fe(e)?ge("MapSet").proxySet_(e,t):function(e,t){var n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:we(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1},o=r,i=je;n&&(o=[r],i=Pe);var a=Proxy.revocable(o,i),c=a.revoke,u=a.proxy;return r.draft_=u,r.revoke_=c,u}(e,t);return(t?t.scope_:we()).drafts_.push(n),n}function ze(e){if(!re(e)||ye(e))return e;var t,n=e[Q];if(n){if(!n.modified_)return n.base_;n.finalized_=!0,t=pe(e,n.scope_.immer_.useStrictShallowCopy_)}else t=pe(e,!0);return ae(t,(function(e,n){se(t,e,ze(n))})),n&&(n.finalized_=!1),t}var Me=new Ie,Fe=Me.produce;function He(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(o){return"function"==typeof o?o(n,r,e):t(o)}}}}Me.produceWithPatches.bind(Me),Me.setAutoFreeze.bind(Me),Me.setUseStrictShallowCopy.bind(Me),Me.applyPatches.bind(Me),Me.createDraft.bind(Me),Me.finishDraft.bind(Me);var qe=He(),Be=He,We="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"===O(arguments[0])?K:K.apply(null,arguments)};function Ge(e,t){function n(){if(t){var n=t.apply(void 0,arguments);if(!n)throw new Error("production"===process.env.NODE_ENV?yt(0):"prepareAction did not return an object");return m(m({type:e,payload:n.payload},"meta"in n&&{meta:n.meta}),"error"in n&&{error:n.error})}return{type:e,payload:arguments.length<=0?void 0:arguments[0]}}return n.toString=function(){return"".concat(e)},n.type=e,n.match=function(t){return $(t)&&t.type===e},n}function Ue(e){return"function"==typeof e&&"type"in e&&function(e){return e&&"function"==typeof e.match}(e)}function Ke(e,t){var n=0;return{measureTime:function(e){var t=Date.now();try{return e()}finally{var r=Date.now();n+=r-t}},warnIfExceeded:function(){n>e&&console.warn("".concat(t," took ").concat(n,"ms, which is more than the warning threshold of ").concat(e,"ms. \nIf your state or actions are very large, you may want to disable the middleware as it might cause too much of a slowdown in development mode. See https://redux-toolkit.js.org/api/getDefaultMiddleware for instructions.\nIt is disabled in production builds, so you don't need to worry about that."))}}}var Ye=function(){function e(){var t;d(this,e);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t=i(this,e,[].concat(r)),Object.setPrototypeOf(t,e.prototype),t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(e,c(Array)),h(e,[{key:"concat",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e,t,n,r){var o=a(f(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof o?function(e){return o.apply(n,e)}:o}(e,"concat",this,1).apply(this,n)}},{key:"prepend",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return 1===n.length&&Array.isArray(n[0])?u(e,b(n[0].concat(this))):u(e,b(n.concat(this)))}}],[{key:Symbol.species,get:function(){return e}}])}();function $e(e){return re(e)?Fe(e,(function(){})):e}function Xe(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function Je(e){return"object"!==O(e)||null==e||Object.isFrozen(e)}function Qe(e,t,n){var r=Ze(e,t,n);return{detectMutations:function(){return et(e,t,r,n)}}}function Ze(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new Set,i={value:n};if(!e(n)&&!o.has(n))for(var a in o.add(n),i.children={},n){var c=r?r+"."+a:a;t.length&&-1!==t.indexOf(c)||(i.children[a]=Ze(e,t,n[a],c))}return i}function et(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"",a=n?n.value:void 0,c=a===r;if(o&&!c&&!Number.isNaN(r))return{wasMutated:!0,path:i};if(e(a)||e(r))return{wasMutated:!1};var u={};for(var s in n.children)u[s]=!0;for(var l in r)u[l]=!0;var f,d=t.length>0,p=function(){var o=i?i+"."+h:h;if(d&&t.some((function(e){return e instanceof RegExp?e.test(o):o===e})))return 0;var a=et(e,t,n.children[h],r[h],c,o);if(a.wasMutated)return{v:a}};for(var h in u)if(0!==(f=p())&&f)return f.v;return{wasMutated:!1}}function tt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("production"===process.env.NODE_ENV)return function(){return function(e){return function(t){return e(t)}}};var t=function(e,t){var n=[],r=[];return t||(t=function(e,t){return n[0]===t?"[Circular ~]":"[Circular ~."+r.slice(0,n.indexOf(t)).join(".")+"]"}),function(o,i){if(n.length>0){var a=n.indexOf(this);~a?n.splice(a+1):n.push(this),~a?r.splice(a,1/0,o):r.push(o),~n.indexOf(i)&&(i=t.call(this,o,i))}else n.push(i);return null==e?i:e.call(this,o,i)}},n=e.isImmutable,r=void 0===n?Je:n,o=e.ignoredPaths,i=e.warnAfter,a=void 0===i?32:i,c=Qe.bind(null,r,o);return function(e){var n,r=e.getState,o=r(),i=c(o);return function(e){return function(u){var s=Ke(a,"ImmutableStateInvariantMiddleware");s.measureTime((function(){if(o=r(),n=i.detectMutations(),i=c(o),n.wasMutated)throw new Error("production"===process.env.NODE_ENV?yt(19):"A state mutation was detected between dispatches, in the path '".concat(n.path||"","'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)"))}));var l=e(u);return s.measureTime((function(){if(o=r(),n=i.detectMutations(),i=c(o),n.wasMutated)throw new Error("production"===process.env.NODE_ENV?yt(20):"A state mutation was detected inside a dispatch, in the path: ".concat(n.path||"",". Take a look at the reducer(s) handling the action ").concat((e=u,JSON.stringify(e,t(a,l),s)),". (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)"));var e,a,s,l})),s.warnIfExceeded(),l}}}}function nt(e){var t=O(e);return null==e||"string"===t||"boolean"===t||"number"===t||Array.isArray(e)||H(e)}function rt(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:nt,i=arguments.length>3?arguments[3]:void 0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],c=arguments.length>5?arguments[5]:void 0;if(!r(e))return{keyPath:n||"<root>",value:e};if("object"!==O(e)||null===e)return!1;if(null!=c&&c.has(e))return!1;var u,s=null!=i?i(e):Object.entries(e),l=a.length>0,f=o(s);try{var d,p=function(){var e=v(u.value,2),o=e[0],s=e[1],f=n?n+"."+o:o;if(l&&a.some((function(e){return e instanceof RegExp?e.test(f):f===e})))return 0;return r(s)?"object"===O(s)&&(t=rt(s,f,r,i,a,c))?{v:t}:void 0:{v:{keyPath:f,value:s}}};for(f.s();!(u=f.n()).done;)if(0!==(d=p())&&d)return d.v}catch(e){f.e(e)}finally{f.f()}return c&&ot(e)&&c.add(e),!1}function ot(e){if(!Object.isFrozen(e))return!1;for(var t=0,n=Object.values(e);t<n.length;t++){var r=n[t];if("object"===O(r)&&null!==r&&!ot(r))return!1}return!0}function it(e){return"boolean"==typeof e}var at=function(){return function(e){var t=null!=e?e:{},n=t.thunk,r=void 0===n||n,o=t.immutableCheck,i=void 0===o||o,a=t.serializableCheck,c=void 0===a||a,u=t.actionCreatorCheck,s=void 0===u||u,l=new Ye;if(r&&(it(r)?l.push(qe):l.push(Be(r.extraArgument))),"production"!==process.env.NODE_ENV){if(i){var f={};it(i)||(f=i),l.unshift(tt(f))}if(c){var d={};it(c)||(d=c),l.push(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("production"===process.env.NODE_ENV)return function(){return function(e){return function(t){return e(t)}}};var t=e.isSerializable,n=void 0===t?nt:t,r=e.getEntries,o=e.ignoredActions,i=void 0===o?[]:o,a=e.ignoredActionPaths,c=void 0===a?["meta.arg","meta.baseQueryMeta"]:a,u=e.ignoredPaths,s=void 0===u?[]:u,l=e.warnAfter,f=void 0===l?32:l,d=e.ignoreState,p=void 0!==d&&d,h=e.ignoreActions,v=void 0!==h&&h,y=e.disableCache,m=void 0!==y&&y||!WeakSet?void 0:new WeakSet;return function(e){return function(t){return function(o){if(!$(o))return t(o);var a=t(o),u=Ke(f,"SerializableStateInvariantMiddleware");return v||i.length&&-1!==i.indexOf(o.type)||u.measureTime((function(){var e=rt(o,"",n,r,c,m);if(e){var t=e.keyPath,i=e.value;console.error("A non-serializable value was detected in an action, in the path: `".concat(t,"`. Value:"),i,"\nTake a look at the logic that dispatched this action: ",o,"\n(See https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants)","\n(To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)")}})),p||(u.measureTime((function(){var t=rt(e.getState(),"",n,r,s,m);if(t){var i=t.keyPath,a=t.value;console.error("A non-serializable value was detected in the state, in the path: `".concat(i,"`. Value:"),a,"\nTake a look at the reducer(s) handling this action type: ".concat(o.type,".\n(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)"))}})),u.warnIfExceeded()),a}}}}(d))}if(s){var p={};it(s)||(p=s),l.unshift(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("production"===process.env.NODE_ENV)return function(){return function(e){return function(t){return e(t)}}};var t=e.isActionCreator,n=void 0===t?Ue:t;return function(){return function(e){return function(t){var r,o,i;return n(t)&&console.warn((i=(o=(r=t.type)?"".concat(r).split("/"):[])[o.length-1]||"actionCreator",'Detected an action creator with type "'.concat(r||"unknown","\" being dispatched. \nMake sure you're calling the action creator before dispatching, i.e. `dispatch(").concat(i,"())` instead of `dispatch(").concat(i,")`. This is necessary even if the action has no payload."))),e(t)}}}}(p))}}return l}},ct=function(e){return function(t){setTimeout(t,e)}},ut=function(e){return function(t){var n=(null!=t?t:{}).autoBatch,r=void 0===n||n,o=new Ye(e);return r&&o.push(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{type:"raf"};return function(t){return function(){var n=t.apply(void 0,arguments),r=!0,o=!1,i=!1,a=new Set,c="tick"===e.type?queueMicrotask:"raf"===e.type?"undefined"!=typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:ct(10):"callback"===e.type?e.queueNotification:ct(e.timeout),u=function(){i=!1,o&&(o=!1,a.forEach((function(e){return e()})))};return Object.assign({},n,{subscribe:function(e){var t=n.subscribe((function(){return r&&e()}));return a.add(e),function(){t(),a.delete(e)}},dispatch:function(e){try{var t;return r=!(null!=e&&null!==(t=e.meta)&&void 0!==t&&t.RTK_autoBatch),(o=!r)&&(i||(i=!0,c(u))),n.dispatch(e)}finally{r=!0}}})}}}("object"===O(r)?r:void 0)),o}};function st(e){var t,n={},r=[],o={addCase:function(e,i){if("production"!==process.env.NODE_ENV){if(r.length>0)throw new Error("production"===process.env.NODE_ENV?yt(26):"`builder.addCase` should only be called before calling `builder.addMatcher`");if(t)throw new Error("production"===process.env.NODE_ENV?yt(27):"`builder.addCase` should only be called before calling `builder.addDefaultCase`")}var a="string"==typeof e?e:e.type;if(!a)throw new Error("production"===process.env.NODE_ENV?yt(28):"`builder.addCase` cannot be called with an empty action type");if(a in n)throw new Error("production"===process.env.NODE_ENV?yt(29):"`builder.addCase` cannot be called with two reducers for the same action type '".concat(a,"'"));return n[a]=i,o},addMatcher:function(e,n){if("production"!==process.env.NODE_ENV&&t)throw new Error("production"===process.env.NODE_ENV?yt(30):"`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return r.push({matcher:e,reducer:n}),o},addDefaultCase:function(e){if("production"!==process.env.NODE_ENV&&t)throw new Error("production"===process.env.NODE_ENV?yt(31):"`builder.addDefaultCase` can only be called once");return t=e,o}};return e(o),[n,r,t]}var lt=Symbol.for("rtk-slice-createasyncthunk");function ft(e,t){return"".concat(e,"/").concat(t)}function dt(){var t,n=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).creators,r=null==n||null===(t=n.asyncThunk)||void 0===t?void 0:t[lt];return function(t){var n=t.name,i=t.reducerPath,a=void 0===i?n:i;if(!n)throw new Error("production"===process.env.NODE_ENV?yt(11):"`name` is a required option for createSlice");"undefined"!=typeof process&&"development"===process.env.NODE_ENV&&void 0===t.initialState&&console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");var c=("function"==typeof t.reducers?t.reducers(function(){function e(e,t){return m({_reducerDefinitionType:"asyncThunk",payloadCreator:e},t)}return e.withTypes=function(){return e},{reducer:function(e){return Object.assign(E({},e.name,(function(){return e.apply(void 0,arguments)}))[e.name],{_reducerDefinitionType:"reducer"})},preparedReducer:function(e,t){return{_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:t}},asyncThunk:e}}()):t.reducers)||{},u=Object.keys(c),s={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},l={addCase:function(e,t){var n="string"==typeof e?e:e.type;if(!n)throw new Error("production"===process.env.NODE_ENV?yt(12):"`context.addCase` cannot be called with an empty action type");if(n in s.sliceCaseReducersByType)throw new Error("production"===process.env.NODE_ENV?yt(13):"`context.addCase` cannot be called with two reducers for the same action type: "+n);return s.sliceCaseReducersByType[n]=t,l},addMatcher:function(e,t){return s.sliceMatchers.push({matcher:e,reducer:t}),l},exposeAction:function(e,t){return s.actionCreators[e]=t,l},exposeCaseReducer:function(e,t){return s.sliceCaseReducersByName[e]=t,l}};function f(){if("production"!==process.env.NODE_ENV&&"object"===O(t.extraReducers))throw new Error("production"===process.env.NODE_ENV?yt(14):"The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");var e=v("function"==typeof t.extraReducers?st(t.extraReducers):[t.extraReducers],3),n=e[0],r=void 0===n?{}:n,i=e[1],a=void 0===i?[]:i,c=e[2],u=void 0===c?void 0:c,l=m(m({},r),s.sliceCaseReducersByType);return function(e,t){if("production"!==process.env.NODE_ENV&&"object"===O(t))throw new Error("production"===process.env.NODE_ENV?yt(8):"The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");var n,r=v(st(t),3),o=r[0],i=r[1],a=r[2];if(function(e){return"function"==typeof e}(e))n=function(){return $e(e())};else{var c=$e(e);n=function(){return c}}function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n(),t=arguments.length>1?arguments[1]:void 0,r=[o[t.type]].concat(b(i.filter((function(e){return(0,e.matcher)(t)})).map((function(e){return e.reducer}))));return 0===r.filter((function(e){return!!e})).length&&(r=[a]),r.reduce((function(e,n){if(n){if(ne(e)){var r=n(e,t);return void 0===r?e:r}if(re(e))return Fe(e,(function(e){return n(e,t)}));var o=n(e,t);if(void 0===o){if(null===e)return e;throw Error("A case reducer on a non-draftable value must not return undefined")}return o}return e}),e)}return u.getInitialState=n,u}(t.initialState,(function(e){for(var t in l)e.addCase(t,l[t]);var n,r=o(s.sliceMatchers);try{for(r.s();!(n=r.n()).done;){var i=n.value;e.addMatcher(i.matcher,i.reducer)}}catch(e){r.e(e)}finally{r.f()}var c,f=o(a);try{for(f.s();!(c=f.n()).done;){var d=c.value;e.addMatcher(d.matcher,d.reducer)}}catch(e){f.e(e)}finally{f.f()}u&&e.addDefaultCase(u)}))}u.forEach((function(e){var o=c[e],i={reducerName:e,type:ft(n,e),createNotation:"function"==typeof t.reducers};!function(e){return"asyncThunk"===e._reducerDefinitionType}(o)?function(e,t,n){var r,o,i=e.type,a=e.reducerName,c=e.createNotation;if("reducer"in t){if(c&&!function(e){return"reducerWithPrepare"===e._reducerDefinitionType}(t))throw new Error("production"===process.env.NODE_ENV?yt(17):"Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");r=t.reducer,o=t.prepare}else r=t;n.addCase(i,r).exposeCaseReducer(a,r).exposeAction(a,o?Ge(i,o):Ge(i))}(i,o,l):function(e,t,n,r){var o=e.type,i=e.reducerName;if(!r)throw new Error("production"===process.env.NODE_ENV?yt(18):"Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");var a=t.payloadCreator,c=t.fulfilled,u=t.pending,s=t.rejected,l=t.settled,f=t.options,d=r(o,a,f);n.exposeAction(i,d),c&&n.addCase(d.fulfilled,c);u&&n.addCase(d.pending,u);s&&n.addCase(d.rejected,s);l&&n.addMatcher(d.settled,l);n.exposeCaseReducer(i,{fulfilled:c||vt,pending:u||vt,rejected:s||vt,settled:l||vt})}(i,o,l,r)}));var d,p=function(e){return e},h=new Map;function y(e,t){return d||(d=f()),d(e,t)}function g(){return d||(d=f()),d.getInitialState()}function w(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];function r(t){var r=t[e];if(void 0===r)if(n)r=g();else if("production"!==process.env.NODE_ENV)throw new Error("production"===process.env.NODE_ENV?yt(15):"selectSlice returned undefined for an uninjected slice reducer");return r}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p,r=Xe(h,n,(function(){return new WeakMap}));return Xe(r,e,(function(){for(var r={},o=0,i=Object.entries(null!==(a=t.selectors)&&void 0!==a?a:{});o<i.length;o++){var a,c=v(i[o],2),u=c[0],s=c[1];r[u]=pt(s,e,g,n)}return r}))}return{reducerPath:e,getSelectors:o,get selectors(){return o(r)},selectSlice:r}}var _=m(m({name:n,reducer:y,actions:s.actionCreators,caseReducers:s.sliceCaseReducersByName,getInitialState:g},w(a)),{},{injectInto:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.reducerPath,o=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(n,e),i=null!=r?r:a;return t.inject({reducerPath:i,reducer:y},o),m(m({},_),w(i,!0))}});return _}}function pt(e,t,n,r){function o(o){var i=t(o);if(void 0===i)if(r)i=n();else if("production"!==process.env.NODE_ENV)throw new Error("production"===process.env.NODE_ENV?yt(16):"selectState returned undefined for an uninjected slice reducer");for(var a=arguments.length,c=new Array(a>1?a-1:0),u=1;u<a;u++)c[u-1]=arguments[u];return e.apply(void 0,[i].concat(c))}return o.unwrapped=e,o}var ht=dt();function vt(){}function yt(e){return"Minified Redux Toolkit error #".concat(e,"; visit https://redux-toolkit.js.org/Errors?code=").concat(e," for the full message or use the non-minified dev environment for full errors. ")}var mt,bt={exports:{}},gt={};var wt,Et,_t={};
|
|
2
|
+
/**
|
|
3
|
+
* @license React
|
|
4
|
+
* use-sync-external-store-with-selector.development.js
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the MIT license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*/var Ot=(Et||(Et=1,"production"===process.env.NODE_ENV?bt.exports=function(){if(mt)return gt;mt=1;var e=N,t="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},n=e.useSyncExternalStore,r=e.useRef,o=e.useEffect,i=e.useMemo,a=e.useDebugValue;return gt.useSyncExternalStoreWithSelector=function(e,c,u,s,l){var f=r(null);if(null===f.current){var d={hasValue:!1,value:null};f.current=d}else d=f.current;f=i((function(){function e(e){if(!o){if(o=!0,n=e,e=s(e),void 0!==l&&d.hasValue){var i=d.value;if(l(i,e))return r=i}return r=e}if(i=r,t(n,e))return i;var a=s(e);return void 0!==l&&l(i,a)?(n=e,i):(n=e,r=a)}var n,r,o=!1,i=void 0===u?null:u;return[function(){return e(c())},null===i?void 0:function(){return e(i())}]}),[c,u,s,l]);var p=n(e,f[0],f[1]);return o((function(){d.hasValue=!0,d.value=p}),[p]),a(p),p},gt}():bt.exports=(wt||(wt=1,"production"!==process.env.NODE_ENV&&function(){"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var e=N,t="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},n=e.useSyncExternalStore,r=e.useRef,o=e.useEffect,i=e.useMemo,a=e.useDebugValue;_t.useSyncExternalStoreWithSelector=function(e,c,u,s,l){var f=r(null);if(null===f.current){var d={hasValue:!1,value:null};f.current=d}else d=f.current;f=i((function(){function e(e){if(!o){if(o=!0,n=e,e=s(e),void 0!==l&&d.hasValue){var i=d.value;if(l(i,e))return r=i}return r=e}if(i=r,t(n,e))return i;var a=s(e);return void 0!==l&&l(i,a)?(n=e,i):(n=e,r=a)}var n,r,o=!1,i=void 0===u?null:u;return[function(){return e(c())},null===i?void 0:function(){return e(i())}]}),[c,u,s,l]);var p=n(e,f[0],f[1]);return o((function(){d.hasValue=!0,d.value=p}),[p]),a(p),p},"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),_t)),bt.exports),Nt=Symbol.for("react-redux-context"),kt="undefined"!=typeof globalThis?globalThis:{};function St(){var e;if(!A.createContext)return{};var t=null!==(e=kt[Nt])&&void 0!==e?e:kt[Nt]=new Map,n=t.get(A.createContext);return n||(n=A.createContext(null),"production"!==process.env.NODE_ENV&&(n.displayName="ReactRedux"),t.set(A.createContext,n)),n}var xt=St();function Dt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:xt;return function(){var t=A.useContext(e);if("production"!==process.env.NODE_ENV&&!t)throw new Error("could not find react-redux context value; please ensure the component is wrapped in a <Provider>");return t}}var Ct=Dt();function jt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:xt,t=e===xt?Ct:Dt(e),n=function(){return t().store};return Object.assign(n,{withTypes:function(){return n}}),n}var Pt=jt();function Tt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:xt,t=e===xt?Pt:jt(e),n=function(){return t().dispatch};return Object.assign(n,{withTypes:function(){return n}}),n}var At=Tt(),Vt=function(e,t){return e===t};function Rt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:xt,t=e===xt?Ct:Dt(e),n=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=("function"==typeof n?{equalityFn:n}:n).equalityFn,o=void 0===r?Vt:r;if("production"!==process.env.NODE_ENV){if(!e)throw new Error("You must pass a selector to useSelector");if("function"!=typeof e)throw new Error("You must pass a function as a selector to useSelector");if("function"!=typeof o)throw new Error("You must pass a function as an equality function to useSelector")}var i=t(),a=i.store,c=i.subscription,u=i.getServerState,s=A.useRef(!0),l=A.useCallback(E({},e.name,(function(t){var r=e(t);if("production"!==process.env.NODE_ENV){var a=("function"==typeof n?{}:n).devModeChecks,c=void 0===a?{}:a,u=i.identityFunctionCheck,l=m({stabilityCheck:i.stabilityCheck,identityFunctionCheck:u},c),f=l.identityFunctionCheck,d=l.stabilityCheck;if("always"===d||"once"===d&&s.current){var p=e(t);if(!o(r,p)){var h=void 0;try{throw new Error}catch(e){h=e.stack}console.warn("Selector "+(e.name||"unknown")+" returned a different result when called with the same parameters. This can lead to unnecessary rerenders.\nSelectors that return a new reference (such as an object or an array) should be memoized: https://redux.js.org/usage/deriving-data-selectors#optimizing-selectors-with-memoization",{state:t,selected:r,selected2:p,stack:h})}}if(("always"===f||"once"===f&&s.current)&&r===t){var v=void 0;try{throw new Error}catch(e){v=e.stack}console.warn("Selector "+(e.name||"unknown")+" returned the root state when called. This can lead to unnecessary rerenders.\nSelectors that return the entire state are almost certainly a mistake, as they will cause a rerender whenever *anything* in state changes.",{stack:v})}s.current&&(s.current=!1)}return r}))[e.name],[e]),f=Ot.useSyncExternalStoreWithSelector(c.addNestedSub,a.getState,u||a.getState,l,o);return A.useDebugValue(f),f};return Object.assign(n,{withTypes:function(){return n}}),n}var It,Lt,zt=Rt(),Mt=function(e){var t,n,r=at(),o=e.reducer,i=void 0===o?void 0:o,a=e.middleware,c=e.devTools,u=void 0===c||c,s=e.preloadedState,l=void 0===s?void 0:s,f=e.enhancers,d=void 0===f?void 0:f;if("function"==typeof i)t=i;else{if(!H(i))throw new Error("production"===process.env.NODE_ENV?yt(1):"`reducer` is a required argument, and must be a function or an object of functions that can be passed to combineReducers");t=U(i)}if("production"!==process.env.NODE_ENV&&a&&"function"!=typeof a)throw new Error("production"===process.env.NODE_ENV?yt(2):"`middleware` field must be a callback");if("function"==typeof a){if(n=a(r),"production"!==process.env.NODE_ENV&&!Array.isArray(n))throw new Error("production"===process.env.NODE_ENV?yt(3):"when using a middleware builder function, an array of middleware must be returned")}else n=r();if("production"!==process.env.NODE_ENV&&n.some((function(e){return"function"!=typeof e})))throw new Error("production"===process.env.NODE_ENV?yt(4):"each middleware provided to configureStore must be a function");var p=K;u&&(p=We(m({trace:"production"!==process.env.NODE_ENV},"object"===O(u)&&u)));var h=Y.apply(void 0,b(n)),v=ut(h);if("production"!==process.env.NODE_ENV&&d&&"function"!=typeof d)throw new Error("production"===process.env.NODE_ENV?yt(5):"`enhancers` field must be a callback");var y="function"==typeof d?d(v):v();if("production"!==process.env.NODE_ENV&&!Array.isArray(y))throw new Error("production"===process.env.NODE_ENV?yt(6):"`enhancers` callback must return an array");if("production"!==process.env.NODE_ENV&&y.some((function(e){return"function"!=typeof e})))throw new Error("production"===process.env.NODE_ENV?yt(7):"each enhancer provided to configureStore must be a function");return"production"!==process.env.NODE_ENV&&n.length&&!y.includes(h)&&console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`"),W(t,l,p.apply(void 0,b(y)))}({reducer:{},middleware:function(e){return e({serializableCheck:!1})}}),Ft=At,Ht=zt,qt=ht({name:"user",initialState:{token:"",info:{},permissions:{},version:0},reducers:{login:function(e,t){var n=t.payload,r=n.token,o=n.info,i=n.success,a=n.error;if(r)return e.token=r,e.info=o,void(i&&i());a&&a()},logout:function(e,t){e.token="",e.info={},t.payload&&t.payload()},loadPermissions:function(e,t){for(var n in t.payload){var r=t.payload[n];e.permissions[r.name]=r}e.version+=1},incrementVersion:function(e,t){e.version+=1}}}),Bt=qt.actions;Bt.login;var Wt=Bt.logout,Gt=Bt.loadPermissions,Ut=Bt.incrementVersion,Kt=ht({name:"app",initialState:{sidebarCollapsed:!1,locale:"zh-CN",theme:"default",localeOptions:{en:"English"},historyLocation:{hash:"",search:"",pathname:""}},reducers:{setSidebarCollapsed:function(e,t){e.sidebarCollapsed=t.payload},setLocale:function(e,t){var n=t.payload,r=n.locale,o=n.callback;e.locale=r,o&&o()},setAppTheme:function(e,t){e.theme=t.payload},setLocaleOptions:function(e,t){e.localeOptions=t.payload},saveHistoryLocation:function(e,t){var n=t.payload,r=n.pathname;n.hash,n.search,"/login"!==r&&(e.historyLocation=t.payload)}}}),Yt=Kt.actions;Yt.setSidebarCollapsed;var $t=Yt.setLocale,Xt=Yt.setLocaleOptions,Jt=Yt.saveHistoryLocation,Qt=Yt.setAppTheme,Zt=ht({name:"layout",initialState:{choices:[],tabs:[],choiceId:0},reducers:{sidebarChoice:function(e,t){var n=t.payload,r=n.id,o=n.choices;-1===e.tabs.findIndex((function(e){return e==r}))&&e.tabs.push(r),null!==o&&(e.choices=o),e.choiceId=r},justSaveChoice:function(e,t){var n=t.payload.choiceId;e.choices=[],e.choiceId=n},saveTabs:function(e,t){var n=t.payload.newTabs;e.tabs=null!=n?n:[]},saveChoice:function(e,t){var n=t.payload.choices;e.choices=n},removeTab:function(e,t){var n=t.payload.id,r=void 0,o=void 0,i=e.tabs.findIndex((function(e){return e==n}));-1!==i&&(r=e.tabs[i-1],o=e.tabs[i+1]),void 0!==o?e.choiceId=o:void 0!==r&&(e.choiceId=r),e.tabs=e.tabs.filter((function(e){return e!==n}))},clearLayoutData:function(e,t){e.choiceId="",e.choices=[],e.tabs=[]}}}),en=Zt.actions;en.sidebarChoice,en.saveTabs,en.saveChoice,en.removeTab;var tn,nn=en.clearLayoutData;function rn(e){return(rn="function"==typeof Symbol&&"symbol"==O(Symbol.iterator)?function(e){return O(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":O(e)})(e)}function on(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function an(e,t,n){return t=ln(t),function(e,t){if(t&&("object"==rn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,dn()?Reflect.construct(t,n||[],ln(e).constructor):t.apply(e,n))}function cn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function un(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,mn(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function sn(e,t,n){return(t=mn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ln(e){return ln=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ln(e)}function fn(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&vn(e,t)}function dn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(dn=function(){return!!e})()}function pn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pn(Object(n),!0).forEach((function(t){sn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function vn(e,t){return vn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},vn(e,t)}function yn(e){return function(e){if(Array.isArray(e))return on(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return on(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?on(e,t):void 0}}(e)||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 mn(e){var t=function(e){if("object"!=rn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=rn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==rn(t)?t:t+""}en.justSaveChoice,function(e){function t(){var e,t,n=null!==(e=null===(t=Mt.getState().user)||void 0===t?void 0:t.info)&&void 0!==e?e:{};return 9==S.get(n,"type",0)}e.isGuest=function(){var e,t=null===(e=Mt.getState().user)||void 0===e?void 0:e.token;return!t||0===t.length},e.isSuper=t,e.token=function(){var e=Mt.getState().user;return S.get(e,"token","")},e.info=function(){var e=Mt.getState().user;return S.get(e,"info",{})},e.logout=function(e){Mt.dispatch(Wt(e))},e.permissions=function(){return Mt.getState().user.permissions},e.loadPermissions=function(e){Mt.dispatch(Gt(e||[]))},e.incrementVersion=function(){Mt.dispatch(Ut({}))},e.can=function(){var e;if(t())return!0;var n=null===(e=Mt.getState().user)||void 0===e?void 0:e.permissions;if(!n)return!1;for(var r=0;r<arguments.length;r++)if(!n.hasOwnProperty(r<0||arguments.length<=r?void 0:arguments[r]))return!1;return!0},e.orCan=function(){var e;if(t())return!0;var n=null===(e=Mt.getState().user)||void 0===e?void 0:e.permissions;if(!n)return!1;for(var r=0;r<arguments.length;r++)if(n.hasOwnProperty(r<0||arguments.length<=r?void 0:arguments[r]))return!0;return!1},e.clear=function(){Mt.dispatch(nn({})),Mt.dispatch(Jt({pathname:"/",hash:"",search:""}))}}(It||(It={})),(tn=Lt||(Lt={})).locale=function(){var e;return null!==(e=Mt.getState().app.locale)&&void 0!==e?e:"en"},tn.loadLanguageOptions=function(e){Mt.dispatch(Xt(e))},tn.saveHistoryLocation=function(e){Mt.dispatch(Jt({pathname:e.pathname,hash:e.hash,search:e.search}))},un((function e(t,n){cn(this,e),this.options=t,this.navigate=n,this.autoRedirect.bind(this),this.toHistory.bind(this),this.toLogin.bind(this),this.saveHistoryLocation.bind(this)}),[{key:"autoRedirect",value:function(){this.options.isGuest()?"/login"!==this.options.location.pathname&&this.toLogin():"/login"===this.options.location.pathname&&this.toHistory()}},{key:"toHistory",value:function(){var e=this.options.history;null==e||""===e.pathname?this.navigate("/"):this.navigate(e)}},{key:"toLogin",value:function(){this.navigate("/login")}},{key:"saveHistoryLocation",value:function(){this.options.saveHistoryLocation(this.options.location)}}]),function(){function e(t,n,r){var o;return cn(this,e),(o=an(this,e,[t])).setState=n,o.callback=r,o.callback&&o.callback.bind(o),o.setState.bind(o),o}fn(e,x.SwitchListImagesHooks.AbstractHook),un(e,[{key:"toggle",value:function(){var e;this.state===x.SwitchListImagesHookType.List?this.setState(x.SwitchListImagesHookType.Image):this.setState(x.SwitchListImagesHookType.List),null===(e=this.callback)||void 0===e||e.call(this,this.state)}}])}(),function(){function e(t,n){var r;return cn(this,e),(r=an(this,e,[t])).options=n,r}fn(e,x.CheckAccessHooks.AbstractHook),un(e,[{key:"can",value:function(e){var t;if(!this.items.has(e))return!1;var n=this.options.AndCan,r=this.options.OrCan,o=this.options.Permissions,i=this.items.get(e);if(null!=i)switch(i.type){case x.CheckAccessEleType.AND:return n.apply(void 0,yn(i.value));case x.CheckAccessEleType.OR:return r.apply(void 0,yn(i.value));case x.CheckAccessEleType.FUNC:return null===(t=i.func)||void 0===t?void 0:t.call(i,{type:i.type,value:i.value,key:i.key},o())}return!1}}])}(),function(){function e(t,n){var r;return cn(this,e),(r=an(this,e,[t])).setFormData=n,r.setFormData.bind(r),r}fn(e,x.FormDataHooks.AbstractHook),un(e,[{key:"load",value:function(e){var t={};for(var n in this.data)t[n]=e[n];this.setFormData(t)}}])}(),function(){function e(t,n,r){var o;return cn(this,e),(o=an(this,e,[t])).valueFn=r||function(e){return e.id},o.setValues=n,o}fn(e,x.TableSelectionHooks.AbstractHook),un(e,[{key:"selectionChange",value:function(e){var t=this,n=[];e.forEach((function(e){return n.push(t.valueFn(e))})),this.setValues(n)}},{key:"confirmValues",value:function(e){e&&e(this.values)}}])}(),function(){function e(t,n,r,o){var i;return cn(this,e),(i=an(this,e,[t,r])).setItems=n,i.setState=o,i.setItems.bind(i),i.setState.bind(i),i}fn(e,x.CheckboxAllHooks.AbstractHook),un(e,[{key:"selectAll",value:function(){this.setState(x.CheckboxAllHookState.ALL)}},{key:"unSelectAll",value:function(){this.setState(x.CheckboxAllHookState.NONE),this.setItems({})}},{key:"setValue",value:function(e,t){}},{key:"toggle",value:function(){this.state===x.CheckboxAllHookState.NONE?this.selectAll():this.unSelectAll()}},{key:"selectBetween",value:function(e,t){}}])}(),function(){function e(t,n,r,o,i){var a;return cn(this,e),(a=an(this,e,[t,i,r])).setSize=o,a.setVisible=n,a.setSize.bind(a),a.setVisible.bind(a),a}fn(e,x.DialogHooks.AbstractHook),un(e,[{key:"open",value:function(){this.setVisible(!0)}},{key:"close",value:function(){this.setVisible(!1)}},{key:"refreshWidth",value:function(e){this.setSize(e)}}])}();var bn=function(){function e(t,n,r){var o;return cn(this,e),(o=an(this,e,[t])).openCallback=n,o.closeCallback=r,o.openCallback&&o.openCallback.bind(o),o.closeCallback&&o.closeCallback.bind(o),o}return fn(e,x.RefDialogHooks.AbstractHook),un(e,[{key:"open",value:function(){var e,t,n;null===(e=(t=this.ref.current).open)||void 0===e||e.call(t),null===(n=this.openCallback)||void 0===n||n.call(this)}},{key:"close",value:function(){var e,t,n;null===(e=(t=this.ref.current).close)||void 0===e||e.call(t),null===(n=this.closeCallback)||void 0===n||n.call(this)}}])}();!function(){function e(t,n,r,o,i,a,c){var u,s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{};return cn(this,e),(u=an(this,e,[t,r,i,a])).defaultData=s,u.setSize=c,u.setVisible=o,u.setSize.bind(u),u.setVisible.bind(u),u.setFormData=n,u.setFormData.bind(u),u}fn(e,x.FormDialogHooks.AbstractHook),un(e,[{key:"open",value:function(){var e={};for(var t in this.defaultData)e[t]=this.defaultData[t];this.setFormData(e),this.setVisible(!0)}},{key:"close",value:function(){this.setVisible(!1)}},{key:"refreshWidth",value:function(e){this.setSize(e)}},{key:"load",value:function(e,t,n){if(n&&this.refreshWidth(n),e==x.FormDialogHookType.UPDATE){var r={};for(var o in t)r[o]=t[o];this.setFormData(r)}}}])}();var gn=function(){function e(){var t;cn(this,e);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return sn(t=an(this,e,[].concat(r)),"initSearch",!1),sn(t,"isTreeData",!1),sn(t,"largeSize",999999),t}return fn(e,x.DefaultTableContext),un(e,[{key:"search",value:function(e){var t=this;this.initSearch?(this.publish("reload:start"),this.renderData(e)):(e&&(this.tableRequest=hn(hn({},this.tableRequest),e)),this.loading||(this.publish("reload:start",{loading:!0}),this.query.query(hn(hn({},this.tableRequest),{},{page:1,pageSize:this.largeSize}),this.config.fixedSorts,this.config.fixedConditions).then((function(n){t.publish("fetch",n),t.publish("reload:end",{loading:!1}),t.renderData(e)})),this.loading=!1),this.initSearch=!0)}},{key:"refresh",value:function(e){var t=this;this.loading||(this.publish("reload:start",{loading:!0}),this.query.query(hn(hn({},this.tableRequest),{},{page:1,pageSize:this.largeSize}),this.config.fixedSorts,this.config.fixedConditions).then((function(e){t.publish("fetch:reload",e),t.renderData()})),this.loading=!1)}},{key:"renderDataData",value:function(e){this.publish("search:local",{conditions:e.conditions,page:e.page||this.config.defaultPageNumber,pageSize:e.pageSize||this.config.defaultPageSize})}},{key:"renderTreeData",value:function(e){this.publish("search:local-tree",{conditions:e.conditions,page:e.page||this.config.defaultPageNumber,pageSize:e.pageSize||this.config.defaultPageSize})}},{key:"renderData",value:function(e){e?this.tableRequest=hn(hn({},this.tableRequest),e):e=this.tableRequest,this.isTreeData?this.renderTreeData(e):this.renderDataData(e)}}])}(),wn=un((function e(t,n,r){cn(this,e),sn(this,"version",0),this.ctx=t,this.ctxState=n,this.version=r}),[{key:"toArray",value:function(){return[this]}}]);un((function e(t,n){var r=this;cn(this,e),sn(this,"originData",[]),sn(this,"dependency",""),this.tableContext=new gn(t,n),this.tableContext.isTreeData=!!t.isTreeData,this.tableContext.setMethod("getOriginalData",(function(){return r.originData})),t.largeSize&&(this.tableContext.largeSize=t.largeSize)}),[{key:"load",value:function(e,t,n,r){var o=this;return this.tableContext.registerEvent("fetch:reload",(function(e){var r=e.data;o.originData=r,n(hn(hn({},t),{},{data:r,loading:!1,selectionValues:[]}))})),this.tableContext.registerEvent("search:local",(function(e){var r=e.conditions,i=e.page,a=e.pageSize,c=x.executeCondition(o.originData,r,i,a);n(hn(hn({},t),{},{data:c.data,loading:!1,total:c.count,pageNumber:i,selectionValues:[]}))})),this.tableContext.registerEvent("search:local-tree",(function(r){var i=r.conditions,a=r.page,c=r.pageSize,u=e.treeItemCallback;void 0===u&&(u=function(e){return e});var s=new D.MenuTree(o.originData).tree(0,u),l=x.executeCondition(s,i,a,c);n(hn(hn({},t),{},{data:l.data,loading:!1,total:l.count,pageNumber:a}))})),this.tableContext.registerEvent("reload:start",(function(){t.loading=!0,n(hn({},t))})),this.tableContext.registerEvent("table-version:incr",(function(e){e.value})),this.tableContext.registerEvent("checkbox:values",(function(e){})),this.tableContext.registerEvent("checkbox:clean",(function(e){})),this.tableContext.registerEvent("page:change",(function(e){e.number,e.size})),new wn(this.tableContext,t,r)}}]);var En=un((function e(t,n,r){cn(this,e),sn(this,"version",0),this.ctx=t,this.ctxState=n,this.version=r}),[{key:"toArray",value:function(){return[this]}}]);un((function e(t,n){cn(this,e),this.dependency="",this.tableContext=new x.DefaultTableContext(t,n)}),[{key:"load",value:function(e,t,n,r){return this.tableContext.registerEvent("fetch:save",(function(r){var o,i=r.data,a=r.count;setTimeout((function(){t.selectionValues=[],t.data=i,t.total=a,t.loading=!1,n(hn({},t))}),null!==(o=e.loadingTime)&&void 0!==o?o:200)})),this.tableContext.registerEvent("reload:start",(function(){t.loading=!0,t.selectionValues=[],n(hn({},t))})),this.tableContext.registerEvent("checkbox:values",(function(e){})),this.tableContext.registerEvent("checkbox:clean",(function(e){})),this.tableContext.registerEvent("page:change",(function(e){e.number,e.size})),new En(this.tableContext,t,r)}}]);var _n,On={};var Nn=function(){if(_n)return On;_n=1;var e=j;if("production"===process.env.NODE_ENV)On.createRoot=e.createRoot,On.hydrateRoot=e.hydrateRoot;else{var t=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;On.createRoot=function(n,r){t.usingClientEntryPoint=!0;try{return e.createRoot(n,r)}finally{t.usingClientEntryPoint=!1}},On.hydrateRoot=function(n,r,o){t.usingClientEntryPoint=!0;try{return e.hydrateRoot(n,r,o)}finally{t.usingClientEntryPoint=!1}}}return On}(),kn=N.createRef();var Sn=function(e,t,n){var r;return null===(r=kn.current)||void 0===r?void 0:r.alert({title:n,icon:e,msg:t})};!function(){if(null===kn.current){var e=document.createElement("div");document.body.appendChild(e),Nn.createRoot(e).render(N.createElement(C.Messager,{ref:kn}))}}();var xn={info:function(e,t){return Sn("info",t,e)},warning:function(e,t){return Sn("warning",t,e)},error:function(e,t){return Sn("error",t,e)},question:function(e,t){return Sn("question",t,e)}},Dn=N.createRef();var Cn=function(e,t,n,r,o){var i,a;return"confirm"===e?null===(i=Dn.current)||void 0===i?void 0:i.confirm({title:n,msg:t,result:function(e){e?null==r||r():null==o||o()}}):"prompt"===e?null===(a=Dn.current)||void 0===a?void 0:a.prompt({title:n,msg:t,result:function(e){e?r(e):null==o||o()}}):void 0};!function(){if(null===Dn.current){var e=document.createElement("div");document.body.appendChild(e),Nn.createRoot(e).render(N.createElement(C.Messager,{ref:Dn}))}}();var jn={confirm:function(e,t,n,r){return Cn("confirm",t,e,n,r)},prompt:function(e,t,n,r){return Cn("prompt",t,e,n,r)}},Pn=function(e){var t=e.title,n=e.message,r=e.type,o=e.duration,i=void 0===o?5e3:o,a=e.onClose;return N.useEffect((function(){var e=setTimeout((function(){a&&a()}),i);return function(){return clearTimeout(e)}}),[i,a]),N.createElement("div",{className:"notification ".concat(r)},N.createElement("div",{className:"notification-title"},N.createElement("h2",{className:"notification-title-head"},t),N.createElement("span",{onClick:function(){return a()},className:"notification-title-close iconfont icon-cancel"})),N.createElement("div",{className:"notification-content"},n))},Tn=new x.Mutex,An=N.forwardRef((function(e,n){var o=v(N.useState([]),2),i=o[0],a=o[1],c=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"info",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:3e3,o=Date.now();a((function(i){return[].concat(b(i),[{id:o,title:e,message:t,type:n,duration:r}])}))},u=function(e){a((function(t){return t.filter((function(t){return t.id!==e}))}))};N.useImperativeHandle(n,(function(){return{show:function(e,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"info",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:3e3;r(t().mark((function r(){var a;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Tn.lock();case 2:a=t.sent;try{c(e,n,o,i)}finally{a()}case 4:case"end":return t.stop()}}),r)})))()},close:function(e){r(t().mark((function n(){var r;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Tn.lock();case 2:r=t.sent;try{u(e)}finally{r()}case 4:case"end":return t.stop()}}),n)})))()}}}));return N.createElement("div",{className:"notification-container"},i.map((function(e){return N.createElement(Pn,{key:e.id,id:e.id,title:e.title,message:e.message,type:e.type,duration:(t=e.id,n=e.duration,n-(Date.now()-t)),onClose:function(){return u(e.id)}});var t,n})))})),Vn=N.createRef();var Rn=function(e,t,n,r){var o;return null===(o=Vn.current)||void 0===o?void 0:o.show(n,t,e,r)};!function(){if(null===Vn.current){var e=document.createElement("div");document.body.appendChild(e),Nn.createRoot(e).render(N.createElement(An,{ref:Vn}))}}();var In={info:function(e,t,n){return Rn("info",e,t,n)},warning:function(e,t,n){return Rn("warning",e,t,n)},error:function(e,t,n){return Rn("error",e,t,n)},success:function(e,t,n){return Rn("success",e,t,n)},validate:function(e,t,n){return Rn("error",(r=e,N.createElement("div",{className:"notification-validate"},r.map((function(e,t){return N.createElement("p",{key:t},e)})))),t,n);var r}},Ln=function(e){var t=e.message,n=e.type,r=e.duration,o=void 0===r?5e3:r,i=e.onClose;return N.useEffect((function(){var e=setTimeout((function(){i&&i()}),o);return function(){return clearTimeout(e)}}),[o,i]),N.createElement("div",{className:"toast ".concat(n)},N.createElement("div",{className:"toast-content"},N.createElement("span",null,t),N.createElement("span",{onClick:function(){return i()},className:"toast-content-close iconfont icon-cancel"})))},zn=new x.Mutex,Mn=N.forwardRef((function(e,n){var o=v(N.useState([]),2),i=o[0],a=o[1],c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"info",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3e3,r=Date.now();a((function(o){return[].concat(b(o),[{id:r,message:e,type:t,duration:n}])}))},u=function(e){a((function(t){return t.filter((function(t){return t.id!==e}))}))};N.useImperativeHandle(n,(function(){return{show:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"info",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3e3;r(t().mark((function r(){var i;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,zn.lock();case 2:i=t.sent;try{c(e,n,o)}finally{i()}case 4:case"end":return t.stop()}}),r)})))()},close:function(e){r(t().mark((function n(){var r;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,zn.lock();case 2:r=t.sent;try{u(e)}finally{r()}case 4:case"end":return t.stop()}}),n)})))()}}}));return N.createElement("div",{className:"toast-container"},i.map((function(e){return N.createElement(Ln,{key:e.id,id:e.id,message:e.message,type:e.type,duration:(t=e.id,n=e.duration,n-(Date.now()-t)),onClose:function(){return u(e.id)}});var t,n})))})),Fn=N.createRef();var Hn=function(e,t,n){var r;return null===(r=Fn.current)||void 0===r?void 0:r.show(t,e,n)};!function(){if(null===Fn.current){var e=document.createElement("div");document.body.appendChild(e),Nn.createRoot(e).render(N.createElement(Mn,{ref:Fn}))}}();var qn={info:function(e,t){return Hn("info",e,t)},warning:function(e,t){return Hn("warning",e,t)},error:function(e,t){return Hn("error",e,t)},success:function(e,t){return Hn("success",e,t)}},Bn=N.forwardRef((function(e,t){var n=e.tabsCfg,r=void 0===n?{}:n,o=e.tabPanelCfg,i=void 0===o?{}:o,a=e.data,c=void 0===a?[]:a,u=e.onTabClosed,s=e.onTabSelect;return N.createElement(N.Fragment,null,N.createElement(C.Tabs,m(m({className:"admin-tabs-panel tabs-inner",ref:t},r),{},{onTabSelect:function(e){var t=e.props,n=t.id,r=t.title,o=t.path,i=t.type;s&&s({id:n,text:r,path:o,type:i})},onTabClose:function(e){u&&u(e)}}),c.map((function(e,t){return N.createElement(C.TabPanel,m(m({key:t},i),e))}))))})),Wn={maskMotion:{motionAppear:!0,motionName:"rc-drawer-mask-motion",onAppearEnd:console.warn},motion:function(e){return{motionAppear:!0,motionName:"rc-drawer-panel-motion-".concat(e)}}},Gn=N.forwardRef((function(e,t){var n=v(N.useState(!1),2),r=n[0],o=n[1];return N.useImperativeHandle(t,(function(){return{toggle:function(){o(!r)}}})),N.createElement(P,m({open:r,onClose:function(){o(!1)},afterOpenChange:e.afterOpenChange,placement:e.placement,width:e.width},Wn),e.children)}));exports.$alert=xn,exports.$confirm=function(e,t,n,r){return Cn("confirm",t,e,n,r)},exports.$interactive=jn,exports.$notice=In,exports.$prompt=function(e,t,n,r){return Cn("prompt",t,e,n,r)},exports.$toast=qn,exports.Access=function(e){var t=e.children,n=e.ctx,r=e.point;return N.createElement(N.Fragment,null,null!=n&&n.can(r)?t:null)},exports.AdminLayout=function(e){var t=e.children,n=e.collapsed,r=e.logo,o=e.title,i=e.slots,a=e.menus,c=e.sidebarCfg,u=e.toggle,s=e.onSideMenuSelection,l=e.selection,f=v(N.useState(600),2),d=f[0],p=f[1],h=N.useRef(null),y=function(){return{width:n?50:200}};return N.useEffect((function(){window.onload=function(e){var t=h.current.clientHeight;p(t)}}),[]),N.createElement("div",{className:"admin-layout f-column"},N.createElement("div",{className:"admin-layout-header f-row"},N.createElement("div",{className:"f-row f-full"},N.createElement("div",{className:"main-title f-animate f-row",style:y()},null!=i&&i.title?i.title:N.createElement(N.Fragment,null,N.createElement("img",{className:"app-logo",src:null!=r?r:"7f4f2d68782a7faf.png"}),n?"":null!=o?o:"App Layout")),N.createElement("div",{className:"main-bar f-full f-row"},N.createElement("div",{className:"f-inline-row f-content-center"},N.createElement("span",{className:"main-toggle label-icon icon-list ",onClick:function(){u&&u(!n)}})),N.createElement("div",{className:"f-row"},null==i?void 0:i.barLeft),N.createElement("div",{className:"f-row f-full main-bar-right"},null==i?void 0:i.barRight)))),N.createElement("div",{className:"admin-layout-body f-full"},N.createElement("div",{className:"sidebar-body f-animate",style:y()},!n&&(null==i?void 0:i.userPanel),N.createElement(C.SideMenu,m(m({style:y(),menuCls:"admin-sidemenu",data:a||[],collapsed:n,selection:l},c),{},{onSelectionChange:function(e){return function(e){s&&s(e)}(e)}}))),N.createElement("div",{className:"main-body",ref:h},N.createElement("div",{className:"f-column admin-layout-container",style:{height:d-46}},t),N.createElement("div",{className:"f-column admin-layout-footer",style:{height:45}},null==i?void 0:i.footer))))},exports.Alert=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Alert",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Here is a message!",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"warn",o=arguments.length>3?arguments[3]:void 0;return null===(e=V.current)||void 0===e?void 0:e.alert({title:t,msg:n,icon:"k iconfont icon-msg-"+r,content:o})},exports.Breadcrumb=function(e){var t=e.items,n=e.hasBack,r=e.toBack,o=e.to,i=e.separator,a=void 0===i?"/":i,c=e.backLabel,u=void 0===c?"Back":c,s=function(e,t){e.path&&o&&o(e,t)},l=function(e){var t=[];return e.path&&t.push("link"),e.iconCls&&t.push(e.iconCls),t.join(" ")};return N.createElement("div",{className:"admin-breadcrumb-layout"},N.createElement("div",{className:"admin-breadcrumb-plane"},function(){if(n)return N.createElement("div",{className:"admin-breadcrumb-back",onClick:r},N.createElement("span",{className:"iconfont icon-back"}),N.createElement("span",{className:"admin-breadcrumb-back-title"},u),N.createElement("span",{className:"admin-breadcrumb-back-s"},"|"))}(),N.createElement("div",{className:"admin-breadcrumb"},null==t?void 0:t.map((function(e,n){return function(e,t,n){var r;return n?N.createElement("div",{key:t,className:"admin-breadcrumb-item"},N.createElement("span",{className:l(e),onClick:function(t){return s(e,t)}},e.label),N.createElement("span",{className:"admin-breadcrumb-separator"},null!==(r=e.separator)&&void 0!==r?r:a)):N.createElement("div",{key:t,className:"admin-breadcrumb-item"},N.createElement("span",{className:l(e),onClick:function(t){return s(e,t)}},e.label))}(e,n,!!t&&n<t.length-1)})))))},exports.Confirm=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Confirm",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Are you confirm this?",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"warn",o=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0;return null===(e=R.current)||void 0===e?void 0:e.prompt({title:t,msg:n,icon:"k iconfont icon-msg-"+r,content:o,result:function(e){e?i&&i():a&&a()}})},exports.DefaultPanel=function(e){var t=e.mode,n=e.children,r=e.header,o=e.footer;return N.createElement(C.Panel,{className:"admin-default-panel "+(null!=t?t:"none"),showHeader:!!r,showFooter:!!o,collapsible:!1,bodyCls:["admin-panel-body"].join(" "),border:!1,header:r,footer:o,headerCls:"admin-panel-header",footerCls:"admin-panel-footer"},N.createElement("div",{className:"admin-panel-body-content"},n))},exports.DrawerPanel=Gn,exports.Prompt=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Prompt",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Please type something",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"warn",o=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0;return null===(e=I.current)||void 0===e?void 0:e.confirm({title:t,msg:n,icon:"k iconfont icon-msg-"+r,content:o,result:function(e){e?i&&i(e):a&&a()}})},exports.TabsPanel=Bn,exports.alertMessagerRef=kn,exports.interactiveMessagerRef=Dn,exports.messagerAlertRef=V,exports.messagerConfirmRef=R,exports.messagerPromptRef=I,exports.notificationRef=Vn,exports.setSideMenuState=function(e,t){return e.forEach((function(e){-1!==t.findIndex((function(t){return t==e.id}))?(e.state="open",e.selected=!0):(e.state="closed",e.selected=!1)})),e},exports.toComboBox=function(e,t,n){for(var r=[],o=0;o<e.length;o++){var i=e[o];r.push({value:i[t],text:i[n]})}return r},exports.toastRef=Fn,exports.useLocale=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=Ft(),n=Ht((function(e){return e.app.localeOptions}));return{locale:Ht((function(e){return e.app.locale})),localeOptions:n,changeLocale:function(n){t($t({locale:n,callback:function(){k.setLanguage(n,(function(t){e&&setTimeout((function(){window.location.reload()}),500)}))}}))}}},exports.useRefDialog=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=v(N.useState(e),2),n=t[0],r=t[1],o=function(e,t){var n=N.useRef(null);return new bn(n,e,t)}();return{value:o,props:n,open:function(e){r(m(m({},n),e)),console.log(o,o.ref),o.open()},close:function(e){r(m(m({},n),e)),o.close()}}},exports.useTheme=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"//unpkg.com/rc-easyui@1.2.9/dist/themes/",t=Ht((function(e){return e.app.theme})),n=Ft(),r=function(e){var t=document.createElement("link");t.rel="stylesheet",t.type="text/css",t.href=e,document.getElementsByTagName("head")[0].appendChild(t)};return{changeTheme:function(e){n(Qt(e)),window.location.reload()},themeOptions:[{name:"default",key:"default"},{name:"black",key:"black"},{name:"gray",key:"gray"},{name:"bootstrap",key:"bootstrap"},{name:"material",key:"material"},{name:"material-blue",key:"material-blue"},{name:"material-teal",key:"material-teal"},{name:"metro",key:"metro"}],loadHtmlTheme:function(){t?(r(e+t+"/easyui.css"),window.onload=function(){document.querySelector("html").setAttribute("theme",t)}):(r(e+"/default/easyui.css"),window.onload=function(){document.querySelector("html").setAttribute("theme",t)}),r(e+"/icon.css"),r(e+"/react.css")}}};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
|
+
export interface AdminLayoutProps {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
collapsed: boolean;
|
|
5
|
+
logo?: string;
|
|
6
|
+
title?: string;
|
|
7
|
+
selection?: object;
|
|
8
|
+
menus: Array<any>;
|
|
9
|
+
sidebarCfg?: {
|
|
10
|
+
[key: string]: any;
|
|
11
|
+
};
|
|
12
|
+
toggle?(value: boolean): void;
|
|
13
|
+
slots?: {
|
|
14
|
+
barLeft?: ReactNode;
|
|
15
|
+
barRight?: ReactNode;
|
|
16
|
+
title?: ReactNode;
|
|
17
|
+
userPanel?: ReactNode;
|
|
18
|
+
footer?: ReactNode;
|
|
19
|
+
};
|
|
20
|
+
onSideMenuSelection?(selection: any): void;
|
|
21
|
+
}
|
|
22
|
+
declare const AdminLayout: React.FC<AdminLayoutProps>;
|
|
23
|
+
export default AdminLayout;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Messager } from "rc-easyui";
|
|
2
|
+
import React from "react";
|
|
3
|
+
export declare const alertMessagerRef: React.RefObject<Messager | null>;
|
|
4
|
+
export declare const $alert: {
|
|
5
|
+
info(title: string, content: any): void | undefined;
|
|
6
|
+
warning(title: string, content: any): void | undefined;
|
|
7
|
+
error(title: string, content: any): void | undefined;
|
|
8
|
+
question(title: string, content: any): void | undefined;
|
|
9
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Messager } from "rc-easyui";
|
|
2
|
+
import React from "react";
|
|
3
|
+
export declare const interactiveMessagerRef: React.RefObject<Messager | null>;
|
|
4
|
+
export declare const $confirm: (title: string, content: any, ok: Function, cancel?: Function) => void;
|
|
5
|
+
export declare const $prompt: (title: string, content: any, ok: Function, cancel?: Function) => void;
|
|
6
|
+
export declare const $interactive: {
|
|
7
|
+
confirm(title: string, content: any, ok: Function, cancel?: Function): void;
|
|
8
|
+
prompt(title: string, content: any, ok: Function, cancel?: Function): void;
|
|
9
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const notificationRef: React.RefObject<any>;
|
|
3
|
+
export declare const $notice: {
|
|
4
|
+
info(content: any, title?: string, timeout?: number): any;
|
|
5
|
+
warning(content: any, title?: string, timeout?: number): any;
|
|
6
|
+
error(content: any, title?: string, timeout?: number): any;
|
|
7
|
+
success(content: any, title?: string, timeout?: number): any;
|
|
8
|
+
validate(content: any, title?: string, timeout?: number): any;
|
|
9
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const toastRef: React.RefObject<any>;
|
|
3
|
+
export declare const $toast: {
|
|
4
|
+
info(content: any, timeout?: number): any;
|
|
5
|
+
warning(content: any, timeout?: number): any;
|
|
6
|
+
error(content: any, timeout?: number): any;
|
|
7
|
+
success(content: any, timeout?: number): any;
|
|
8
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface BreadcrumbItem {
|
|
3
|
+
label: string;
|
|
4
|
+
path?: any;
|
|
5
|
+
iconCls?: string;
|
|
6
|
+
separator?: any;
|
|
7
|
+
}
|
|
8
|
+
export interface BreadcrumbProps {
|
|
9
|
+
toBack?(): void;
|
|
10
|
+
to?(item: BreadcrumbItem, e: any): void;
|
|
11
|
+
hasBack?: boolean;
|
|
12
|
+
items?: Array<BreadcrumbItem>;
|
|
13
|
+
separator?: string;
|
|
14
|
+
backLabel?: string;
|
|
15
|
+
}
|
|
16
|
+
declare const Breadcrumb: React.FC<BreadcrumbProps>;
|
|
17
|
+
export default Breadcrumb;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface DrawerPanelProps {
|
|
3
|
+
afterOpenChange?(c: boolean): void;
|
|
4
|
+
placement: 'left' | 'right' | 'top' | 'bottom';
|
|
5
|
+
width: string;
|
|
6
|
+
children?: any;
|
|
7
|
+
}
|
|
8
|
+
declare const DrawerPanel: React.FC<DrawerPanelProps | any>;
|
|
9
|
+
export default DrawerPanel;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface TabPanelItem {
|
|
3
|
+
title: string;
|
|
4
|
+
path: any;
|
|
5
|
+
id: string | number;
|
|
6
|
+
closable: boolean;
|
|
7
|
+
type: string | number;
|
|
8
|
+
}
|
|
9
|
+
export interface TabPanelProps {
|
|
10
|
+
data: TabPanelItem[];
|
|
11
|
+
onTabSelect?: Function;
|
|
12
|
+
onTabClosed?: Function;
|
|
13
|
+
tabsCfg?: {
|
|
14
|
+
[key: string]: any;
|
|
15
|
+
};
|
|
16
|
+
tabPanelCfg?: {
|
|
17
|
+
[key: string]: any;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
declare const TabsPanel: React.FC<any>;
|
|
21
|
+
export default TabsPanel;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import './assets/index.scss';
|
|
2
|
+
export * from "./util/message";
|
|
3
|
+
export * from "./util/easyui";
|
|
4
|
+
export * from "./util/inter";
|
|
5
|
+
export { default as useLocale } from "./composable/useLocale";
|
|
6
|
+
export { default as useTheme } from "./composable/useTheme";
|
|
7
|
+
export { default as useRefDialog } from "./composable/useRefDialog";
|
|
8
|
+
export * from './components/message/alert-messager';
|
|
9
|
+
export * from './components/message/interactive-messager';
|
|
10
|
+
export * from './components/message/notification';
|
|
11
|
+
export * from './components/message/toast';
|
|
12
|
+
export { default as AdminLayout } from "./components/layouts/admin-layout";
|
|
13
|
+
export { default as TabsPanel } from "./components/panel/tabs";
|
|
14
|
+
export { default as Breadcrumb } from "./components/panel/breadcrumb";
|
|
15
|
+
export { default as DrawerPanel } from "./components/panel/drawer";
|
|
16
|
+
export { default as DefaultPanel } from "./components/panel/default-panel";
|
|
17
|
+
import Access from "./components/access";
|
|
18
|
+
export { Access };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Messager } from "rc-easyui";
|
|
3
|
+
export declare const messagerAlertRef: React.RefObject<Messager | null>;
|
|
4
|
+
export declare const messagerConfirmRef: React.RefObject<Messager | null>;
|
|
5
|
+
export declare const messagerPromptRef: React.RefObject<Messager | null>;
|
|
6
|
+
export declare function Alert(title?: string, msg?: string, icon?: string, content?: any): void | undefined;
|
|
7
|
+
export declare function Confirm(title?: string, msg?: string, icon?: string, content?: any, ok?: any, cancel?: any): void | undefined;
|
|
8
|
+
export declare function Prompt(title?: string, msg?: string, icon?: string, content?: any, ok?: any, cancel?: any): void | undefined;
|
package/package.json
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@kordar/easyui",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"main": "dist/index.umd.cjs",
|
|
6
|
+
"module": "dist/index.js",
|
|
7
|
+
"types": "dist/types/index.d.ts",
|
|
8
|
+
"type": "module",
|
|
9
|
+
"scripts": {
|
|
10
|
+
"build": "rollup -c",
|
|
11
|
+
"dev": "vite",
|
|
12
|
+
"test": "jest"
|
|
13
|
+
},
|
|
14
|
+
"dependencies": {
|
|
15
|
+
},
|
|
16
|
+
"peerDependencies": {
|
|
17
|
+
"@kordar-lib/base": "^1.0.0",
|
|
18
|
+
"@kordar-lib/crud": "^1.0.0",
|
|
19
|
+
"@kordar-lib/i18n": "^1.0.0",
|
|
20
|
+
"@kordar-lib/common": "^1.0.0",
|
|
21
|
+
"@kordar-lib/iconfont": "^1.0.0",
|
|
22
|
+
"@kordar-lib/menus": "^1.0.0",
|
|
23
|
+
"@kordar-lib/request": "^1.0.0",
|
|
24
|
+
"lodash-es": "^4.17.21",
|
|
25
|
+
"react": "^18.2.0",
|
|
26
|
+
"react-dom": "^18.2.0"
|
|
27
|
+
},
|
|
28
|
+
"devDependencies": {
|
|
29
|
+
"@babel/core": "^7.26.0",
|
|
30
|
+
"@babel/preset-env": "^7.26.0",
|
|
31
|
+
"@babel/preset-react": "^7.16.7",
|
|
32
|
+
"@babel/preset-typescript": "^7.26.0",
|
|
33
|
+
"@kordar-components/react": "^1.0.0",
|
|
34
|
+
"@rollup/plugin-babel": "^6.0.4",
|
|
35
|
+
"@rollup/plugin-commonjs": "^28.0.2",
|
|
36
|
+
"@rollup/plugin-image": "^3.0.3",
|
|
37
|
+
"@rollup/plugin-json": "^6.1.0",
|
|
38
|
+
"@rollup/plugin-node-resolve": "^16.0.0",
|
|
39
|
+
"@rollup/plugin-typescript": "^12.1.2",
|
|
40
|
+
"@types/react": "^19.0.2",
|
|
41
|
+
"@types/react-dom": "^19.0.2",
|
|
42
|
+
"@vitejs/plugin-react": "^4.0.0-beta.0",
|
|
43
|
+
"lodash-es": "^4.17.21",
|
|
44
|
+
"postcss-url": "^10.1.3",
|
|
45
|
+
"rc-drawer": "^6.1.5",
|
|
46
|
+
"rc-easyui": "^1.2.9",
|
|
47
|
+
"react": "^18.2.0",
|
|
48
|
+
"react-dom": "^18.2.0",
|
|
49
|
+
"react-resize-detector": "^12.0.2",
|
|
50
|
+
"rollup": "^4.29.1",
|
|
51
|
+
"rollup-plugin-clear": "^2.0.7",
|
|
52
|
+
"rollup-plugin-copy": "^3.5.0",
|
|
53
|
+
"rollup-plugin-postcss": "^4.0.2",
|
|
54
|
+
"rollup-plugin-terser": "^7.0.2",
|
|
55
|
+
"rollup-plugin-url": "^3.0.1",
|
|
56
|
+
"rollup-plugin-visualizer": "^5.13.1",
|
|
57
|
+
"sass": "^1.83.0",
|
|
58
|
+
"styled-jsx": "^5.1.6",
|
|
59
|
+
"tslib": "^2.8.1",
|
|
60
|
+
"typescript": "^5.1.6",
|
|
61
|
+
"vite": "^6.0.6"
|
|
62
|
+
},
|
|
63
|
+
"files": [
|
|
64
|
+
"dist"
|
|
65
|
+
]
|
|
66
|
+
}
|