easy-soft-utility 2.4.27 → 2.4.29
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/License.txt +21 -0
- package/es/index.js +2 -2
- package/es/utils/applicationAssist.d.ts +1 -0
- package/package.json +3 -2
package/License.txt
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2021 luzhitao
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above footerDescription notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/es/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import t from"node-cache";import e from"lodash/isBoolean";import n from"lodash/isDate";import r from"lodash/isEqual";import o from"lodash/isFunction";import a from"lodash/isNull";import i from"lodash/isNumber";import u from"lodash/isObject";import c from"lodash/isString";import l from"lodash/isUndefined";import s from"lodash/replace";import f from"lodash/assign";import d from"lodash/assignWith";import h from"lodash/difference";import p from"lodash/dropRight";import m from"lodash/endsWith";import v from"lodash/filter";import g from"lodash/find";import y from"lodash/findIndex";import w from"lodash/first";import b from"lodash/floor";import x from"lodash/forEach";import S from"lodash/get";import C from"lodash/gte";import A from"lodash/map";import D from"lodash/memoize";import E from"lodash/remove";import M from"lodash/reverse";import k from"lodash/round";import I from"lodash/set";import O from"lodash/size";import j from"lodash/sortBy";import N from"lodash/sortedUniq";import F from"lodash/split";import R from"lodash/startsWith";import P from"lodash/trim";import T from"lodash/uniqBy";import L from"lodash/toNumber";import H from"lodash/toString";import W from"object-hash";import q from"dayjs";import{stringify as G,parse as Y}from"qs";function B(t){return B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},B(t)}function U(t){var e=function(t,e){if("object"!==B(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==B(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===B(e)?e:String(e)}function _(t,e,n){return(e=U(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function z(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function V(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?z(Object(n),!0).forEach((function(e){_(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function J(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return S(t,e,n)}function K(t,e){return k(t,e)}function Q(t,e,n){return m(t,e,n)}function Z(t){return N(t)}function $(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3;return F(t,e,n)}function X(t,e){return f(t,e)}function tt(t,e,n){return d(t,e,n)}function et(t){return M(t)}function nt(t,e){return x(t,e)}function rt(t,e){return C(t,e)}function ot(t){return D(t)}function at(t,e){return b(t,e)}function it(t){return w(t)}function ut(t,e){return R(t,e)}function ct(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return p(t,e)}function lt(t,e){return T(t,e)}function st(t){return P(t)}function ft(t,e,n){return s(t,e,n)}function dt(t,e){return E(t,e)}function ht(t,e){return A(t,e)}function pt(t,e,n){return I(t,e,n)}function mt(t){return O(t)}function vt(t,e){return h(t,e)}function gt(t,e){return v(t,e)}function yt(t,e){return j(t,e)}function wt(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return y(t,e,n)}function bt(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return g(t,e,n)}function xt(t){return It(t)}function St(t){var e="".concat(It(t)?null:t).match(/^(\d{1,4})(-|\/)(\d{1,2})\2(\d{1,2})$/);if(null==e)return!1;var n=new Date(e[1],e[3]-1,e[4]);return n.getFullYear()===parseInt(e[1],10)&&n.getMonth()+1===parseInt(e[3],10)&&n.getDate()===parseInt(e[4],10)}function Ct(t){return i(t)}function At(t){var e="".concat(It(t)?null:t);if(""===e)return!1;return new RegExp(/^([1-9][\d]{0,15}|0)(\.[\d]{1,2})?$/).test(e)}function Dt(t,e){return r(t,e)}function Et(t,e){return JSON.stringify(t||{})===JSON.stringify(e||{})}function Mt(t){return o(t)}function kt(t){return e(t)}function It(t){return l(t)}function Ot(t){return a(t)}function jt(t){return n(t)}function Nt(t){return c(t)}function Ft(t){return Array.isArray(t)}function Rt(t){return u(t)}function Pt(t){return null!==t&&"object"===B(t)&&!Ft(t)}function Tt(t){return Pt(t)&&Mt(t.then)&&Mt(t.catch)}function Lt(t){return new RegExp(/(http|https):\/\/([\w.]+\/?)\S*/).test(t)}function Ht(t){return new RegExp(/(data):image\/([\w.]+\/?)\S*/).test(t)}function Wt(t){return""===st(s(t||""," ",""))}function qt(t,e){var n=!1;return Ft(t)?(t.some((function(t){return t===e&&(n=!0,!0)})),n):n}var Gt={super:{permission:"super"}},Yt={WEAPP:"WEAPP",WEB:"WEB",RN:"RN",SWAN:"SWAN",ALIPAY:"ALIPAY",TT:"TT",QQ:"QQ",JD:"JD",UNKNOWN:"UNKNOWN"},Bt={loadApiPath:"",firstLoadSuccess:!1,loadSuccess:!1,registering:!1,dataLoading:!1,reloading:!1,searching:!1,refreshing:!1,paging:!1,processing:!1,dispatchComplete:!0,metaData:null,metaExtra:null,metaListData:[],metaOriginalData:null,urlParams:null,externalData:null},Ut={dataLoading:!0},_t={real:"real",simulation:"simulation"},zt={get:"GET",post:"POST",put:"PUT",delete:"DELETE",trace:"TRACE",connect:"CONNECT"},Vt="0",Jt=0,Kt="1970-01-01 00:00",Qt={number:"number",datetime:"datetime",string:"string",moment:"moment",money:"money",array:"array",boolean:"boolean"},Zt={money:"money",datetime:"datetime",chineseMoney:"chineseMoney",percentage:"percentage"},$t={yearMonthDayHourMinuteSecond:"YYYY-MM-DD HH:mm:ss",yearMonthDayHourMinute:"YYYY-MM-DD HH:mm",yearMonthDay:"YYYY-MM-DD",yearMonth:"YYYY-MM",year:"YYYY",monthDayHourMinuteSecond:"YYYY-MM-DD HH:mm:ss",monthDayHourMinute:"MM-DD HH:mm",monthDay:"MM-DD",hourMinute:"HH:mm",hourMinuteSecond:"HH:mm:ss",month:"MM",day:"DD",hour:"HH",minute:"mm",second:"ss"},Xt={moveUp:"moveUp",moveDown:"moveDown"},te={no:"0",yes:"1"},ee={no:0,yes:1},ne={trace:"trace",debug:"debug",warn:"warn",error:"error",exception:"exception",info:"info",config:"config",execute:"execute",stack:"stack"},re={auto:"auto",text:"text",object:"object"},oe={open:"open",loading:"loading",info:"info",warning:"warning",warn:"warn",success:"success",error:"error"},ae={open:"open",loading:"loading",info:"info",warning:"warning",warn:"warn",success:"success",error:"error"},ie="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABLCAYAAACGGCK3AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAA0SURBVHhe7cExAQAAAMKg9U9tDQ8gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIA3NXV7AAHfw7zWAAAAAElFTkSuQmCC",ue=ie,ce="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var le=function(t,e,n){var r=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(n=n>o?o:n)<0&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var a=Array(o);++r<o;)a[r]=t[r+e];return a};var se=function(t,e,n){var r=t.length;return n=void 0===n?r:n,!e&&n>=r?t:le(t,e,n)},fe=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var de=function(t){return fe.test(t)};var he=function(t){return t.split("")},pe="\\ud800-\\udfff",me="["+pe+"]",ve="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",ge="\\ud83c[\\udffb-\\udfff]",ye="[^"+pe+"]",we="(?:\\ud83c[\\udde6-\\uddff]){2}",be="[\\ud800-\\udbff][\\udc00-\\udfff]",xe="(?:"+ve+"|"+ge+")"+"?",Se="[\\ufe0e\\ufe0f]?",Ce=Se+xe+("(?:\\u200d(?:"+[ye,we,be].join("|")+")"+Se+xe+")*"),Ae="(?:"+[ye+ve+"?",ve,we,be,me].join("|")+")",De=RegExp(ge+"(?="+ge+")|"+Ae+Ce,"g");var Ee=he,Me=de,ke=function(t){return t.match(De)||[]};var Ie=function(t){return Me(t)?ke(t):Ee(t)},Oe="object"==B(ce)&&ce&&ce.Object===Object&&ce,je="object"==("undefined"==typeof self?"undefined":B(self))&&self&&self.Object===Object&&self,Ne=(Oe||je||Function("return this")()).Symbol;var Fe=function(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o},Re=Array.isArray,Pe=Ne,Te=Object.prototype,Le=Te.hasOwnProperty,He=Te.toString,We=Pe?Pe.toStringTag:void 0;var qe=function(t){var e=Le.call(t,We),n=t[We];try{t[We]=void 0;var r=!0}catch(t){}var o=He.call(t);return r&&(e?t[We]=n:delete t[We]),o},Ge=Object.prototype.toString;var Ye=qe,Be=function(t){return Ge.call(t)},Ue=Ne?Ne.toStringTag:void 0;var _e=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Ue&&Ue in Object(t)?Ye(t):Be(t)},ze=function(t){return null!=t&&"object"==B(t)};var Ve=Fe,Je=Re,Ke=function(t){return"symbol"==B(t)||ze(t)&&"[object Symbol]"==_e(t)},Qe=Ne?Ne.prototype:void 0,Ze=Qe?Qe.toString:void 0;var $e=function t(e){if("string"==typeof e)return e;if(Je(e))return Ve(e,t)+"";if(Ke(e))return Ze?Ze.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n},Xe=$e;var tn=se,en=de,nn=Ie,rn=function(t){return null==t?"":Xe(t)};var on=function(t){return function(e){e=rn(e);var n=en(e)?nn(e):void 0,r=n?n[0]:e.charAt(0),o=n?tn(n,1).join(""):e.slice(1);return r[t]()+o}},an=on("toLowerCase"),un=on("toUpperCase");function cn(t){return W(t,{algorithm:"sha1"})}function ln(t){return W(t,{algorithm:"md5"})}function sn(t,e){var n=Math.pow(10,e+1),r=Math.floor(fn(t)*n);return 10*Math.round(r/10)/n}function fn(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=L(t),r=Number.isNaN(n)?0:n;return null==(e||null)?r:sn(r,e)}function dn(t,e,n){if(!Ct(t))throw new Error("value must be number value");var r=fn(t);return void 0!==e&&(r=Math.max(t,e)),void 0!==n&&(r=Math.min(r,n)),r}function hn(t){return At(t)?parseFloat(t,10):0}function pn(t){return"".concat(hn(1e3*fn(t)/10),"%")}function mn(t){return H(t)}function vn(t){return!!t}function gn(t){return mn(t).toUpperCase()}function yn(t){return un(t)}function wn(t){return mn(t).toLowerCase()}function bn(t){return an(t)}function xn(t){if(null==(t||null))return null;if(jt(t))return t;if(Nt(t)&&t.indexOf("T")<0){var e=t.replace(/\-/g,"/");return new Date(e)}return new Date(t)}function Sn(t){return Tt(t)?t:Promise.resolve(t)}function Cn(t,e){return K(t,e)}function An(t){var e=t.target,n=t.convert;if(Mt(n))return n(e);if(Nt(n))switch(n){case Qt.number:return fn(e);case Qt.datetime:return xn(e);case Qt.string:return mn(e);case Qt.money:return hn(e);case Qt.array:return null==(e||null)?[]:Ft(e)?e:[e];default:return e}return e}var Dn="easy-soft-utility";function En(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Mn(t,e){if(t){if("string"==typeof t)return En(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?En(t,e):void 0}}function kn(t){return function(t){if(Array.isArray(t))return En(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Mn(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function In(t){return new Function("return ".concat(t))()}function On(){return"undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement}function jn(){var t=navigator.userAgent;return{trident:t.indexOf("Trident")>-1,presto:t.indexOf("Presto")>-1,webKit:t.indexOf("AppleWebKit")>-1,gecko:t.indexOf("Gecko")>-1&&-1===t.indexOf("KHTML"),mobile:!!t.match(/AppleWebKit.*Mobile.*/),ios:!!t.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),android:t.indexOf("Android")>-1||t.indexOf("Linux")>-1,iPhone:t.indexOf("iPhone")>-1,iPad:t.indexOf("iPad")>-1,webApp:-1===t.indexOf("Safari")}}function Nn(){var t;return{versions:jn(),language:(null!==(t=navigator.browserLanguage||navigator.language)&&void 0!==t?t:"").toLowerCase()}}function Fn(t){var e=t.seed,n=t.min||0;return n+(9301*e+49297)%233280/233280*((t.max||1)-n)}function Rn(t){return null==t?null:JSON.parse(JSON.stringify(t))}function Pn(t,e,n){var r=[];return null!=t&&(r=kn(t)),null!=n&&(r=[].concat(kn(r),kn(n))),null!=e&&(r=[e].concat(kn(r))),r}function Tn(t,e,n,r,o){var a=r,i=void 0===n?null:n;return null!=e&&("function"==typeof convertValue?a.initialValue=o(t)||i:a.initialValue=t||i),a}function Ln(t,e,n){var r=null;return null==e||(n||[]).forEach((function(n){n[t]===e&&(r=n)})),r}function Hn(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:16,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),o=[],a=0;if(n=n||r.length,e)for(a=0;a<e;a++)o[a]=r[0|Math.random()*n];else for(o[8]=o[13]=o[18]=o[23]="-",o[14]="4",a=0;a<36;a++)o[a]||(t=0|16*Math.random(),o[a]=r[19===a?3&t|8:t]);return o.join("")}function Wn(t){var e=t.pageNo,n=t.pageSize,r=t.total;return!((r||0)<=0)&&(e||0)*(n||0)<(r||0)}function qn(){return"development"===process.env.NODE_ENV}function Gn(t){return Object.keys(t).map((function(e){return t[e]})).join(",")}function Yn(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var a=[t].concat(r).filter((function(t){return Nt(t)&&!Wt(t)}));return"".concat(a.join("::"),"::").concat(Wt(e)?"":e)}var Bn="loggerAssist",Un={loggerDisplaySwitchPromptSetInformationComplete:!1,loggerDisplaySwitchSetComplete:!1,display:!1},_n={config:"#F8C471",execute:"#C39BD3",info:"#89CA78",warn:"#F16F17",debug:"#00768F",trace:"#596032",error:"#E33F3E",exception:"#DC428E",stack:"#81977c"};function zn(t,e){return"".concat(mn(t)).concat(Wt(e)?"":" -> ".concat(e))}function Vn(t){var e=t.text,n=t.color,r=void 0===n?"":n,o=t.dataDescription,a=void 0===o?"":o,i=t.ancillaryInformation,u=void 0===i?"":i,c=zn(Nt(e)?e:JSON.stringify(e),u);Wt(Vn)||console.log("%c%s","color:".concat(r,";"),"".concat(Wt(a)?"":"[".concat(gn(a),"] ")).concat(c))}function Jn(t){var e=t.data,n=t.color,r=void 0===n?"":n,o=t.dataDescription,a=void 0===o?"":o,i=t.ancillaryInformation;Vn({text:"check the following object data",color:r,dataDescription:a,ancillaryInformation:void 0===i?"":i}),console.log(e)}function Kn(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:re.auto,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ne.debug,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=ur();if(!Un.loggerDisplaySwitchSetComplete&&!Un.loggerDisplaySwitchPromptSetInformationComplete){var a=Yn(Dn,"logData -> logger display switch default is false, if want to display log, please set it before first log, use setLoggerDisplaySwitch to set it, this message only show once",Bn);Vn({text:a,color:"#08BBEE",dataDescription:"hint",ancillaryInformation:""});try{throw new Error("please set use setLoggerDisplaySwitch")}catch(t){console.error(t)}Un.loggerDisplaySwitchPromptSetInformationComplete=!0}if(o||n===ne.exception){var i=null==(e||null)||Wt(e)?re.auto:e;if(!qt([re.auto,re.text,re.object],i))throw new Error("Invalid log display mode -> ".concat(i));if(i===re.auto&&(i=Nt(t)?re.text:re.object),n!==ne.exception){if(o){if(n===ne.trace&&(i===re.text&&Vn({text:t,color:_n.trace,dataDescription:"trace",ancillaryInformation:r}),i===re.object&&Jn({data:t,color:_n.trace,dataDescription:"trace",ancillaryInformation:r})),n===ne.debug&&(i===re.text&&Vn({text:t,color:_n.debug,dataDescription:"debug",ancillaryInformation:r}),i===re.object&&Jn({data:t,color:_n.debug,dataDescription:"debug",ancillaryInformation:r})),n===ne.warn&&(i===re.text&&Vn({text:t,color:_n.warn,dataDescription:"warn",ancillaryInformation:r}),i===re.object&&Jn({data:t,color:_n.warn,dataDescription:"warn",ancillaryInformation:r})),n===ne.info&&(i===re.text&&Vn({text:t,color:_n.info,dataDescription:"info",ancillaryInformation:r}),i===re.object&&Jn({data:t,color:_n.info,dataDescription:"info",ancillaryInformation:r})),n===ne.execute&&(i===re.text&&Vn({text:t,color:_n.execute,dataDescription:"execute",ancillaryInformation:r}),i===re.object&&Jn({data:t,color:_n.execute,dataDescription:"execute",ancillaryInformation:r})),n===ne.config&&(i===re.text&&Vn({text:t,color:_n.config,dataDescription:"config",ancillaryInformation:r}),i===re.object&&Jn({data:t,color:_n.config,dataDescription:"config",ancillaryInformation:r})),n===ne.stack){i===re.text&&Vn({text:t,color:_n.stack,dataDescription:"stack",ancillaryInformation:r}),i===re.object&&Jn({data:t,color:_n.stack,dataDescription:"stack",ancillaryInformation:r});try{throw new Error("stack call trace as bellow")}catch(t){var u=t.stack;console.log(ft(u,"Error:","Stack:"))}}n===ne.error&&(i===re.text&&Vn({text:t,color:_n.error,dataDescription:"error",ancillaryInformation:r}),i===re.object&&Jn({data:t,color:_n.error,dataDescription:"error",ancillaryInformation:r}))}}else{i===re.text&&Vn({text:t,color:_n.exception,dataDescription:"exception",ancillaryInformation:r}),i===re.object&&Jn({data:t,color:_n.exception,dataDescription:"exception",ancillaryInformation:r});try{throw new Error("an error occur, check the above error message, the stack information is as follows")}catch(t){console.error(t)}}}}function Qn(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";Nt(t)?ar(t,ne.warn,e):ir(t,ne.warn,e)}function Zn(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";Nt(t)?ar(t,ne.info,e):ir(t,ne.info,e)}function $n(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";Nt(t)?ar(t,ne.config,e):ir(t,ne.config,e)}function Xn(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";Nt(t)?ar(t,ne.stack,e):ir(t,ne.stack,e)}function tr(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";Nt(t)?ar(t,ne.trace,e):ir(t,ne.trace,e)}function er(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";Nt(t)?ar(t,ne.debug,e):ir(t,ne.debug,e)}function nr(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";Nt(t)?ar(t,ne.execute,e):ir(t,ne.execute,e)}function rr(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";Nt(t)?ar(t,ne.error,e):ir(t,ne.error,e)}function or(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";Nt(t)?ar(t,ne.exception,e):ir(t,ne.exception,e)}function ar(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ne.trace,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";Kn(t,re.text,e,n)}function ir(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ne.trace,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";Kn(t,re.object,e,n)}function ur(){return vn(Un.display)}function cr(t){qn()&&Vn({text:"setLoggerDisplaySwitch",color:_n.execute,dataDescription:"execute",ancillaryInformation:""}),Un.display=vn(t),Un.loggerDisplaySwitchSetComplete=!0}var lr="runtimeAssist",sr={runtimeDataStorage:null,runtimeDataStorageSetComplete:!1};function fr(e){if(qn()&&Vn({text:"setDataStorage",color:_n.execute,dataDescription:"execute",ancillaryInformation:""}),!Rt(e))throw er(e),new Error(Yn(Dn,"setDataStorage -> data storage mount target must be a object, current type is ".concat("undefined"==typeof target?"undefined":B(target)),lr));e.runtimeDataStorage={},sr.runtimeDataStorage=e.runtimeDataStorage,sr.runtimeDataStorageSetComplete=!0,function(e){if(null==(e||null))throw new Error("runtimeDataStorage has not set complete");e.localRuntimeCache=new t,e.applicationInitialConfig={},e.applicationConfigMergeComplete=!1,e.applicationMergeConfig={},e.lastRequestExceptionMessage={code:-1,message:"",time:(new Date).getTime()}}(sr.runtimeDataStorage)}function dr(){if(Ot(sr.runtimeDataStorage)||!sr.runtimeDataStorageSetComplete)throw new Error(Yn(Dn,"runtimeDataStorage has not set,use setDataStorage to set it",lr));return sr.runtimeDataStorage}function hr(){return sr.runtimeDataStorage.lastRequestExceptionMessage||{code:-1,message:"",time:(new Date).getTime()}}function pr(t){var e=t.code,n=t.message,r=t.time;sr.runtimeDataStorage.lastRequestExceptionMessage={code:e,message:n,time:r}}function mr(t){return Wt(t)?(or("checkKey -> cache key is null or empty"),!1):!(!Nt(t)&&!Ct(t))||(or("cache key must be string or number, current type id ".concat(B(t))),!1)}function vr(){var e=dr();return e.localRuntimeCache||(e.localRuntimeCache=new t),e.localRuntimeCache}function gr(t){var e=t.key,n=vr();if(null==n)throw new Error("cache pool not exist");return n.has(e)}function yr(t){var e=t.key,n=t.value,r=t.expiration,o=void 0===r?0:r;if(mr(e)){var a=vr();if(null==a)throw new Error("cache pool not exist");return a.set(e,n,o)}}function wr(t){if(!Ft(t))throw new Error("setMultiCache: list must be array");if(t.length<=0)return!0;var e=[];if(t.forEach((function(t){var n=V(V({},{key:"",value:"",expiration:0}),t),r=n.key,o=n.value,a=n.expiration;if(!Wt(r)){if(!mr(r))return;e.push({key:r,value:o,ttl:a})}})),e.length<=0)return!1;var n=vr();if(null==n)throw new Error("cache pool not exist");return n.mset(e)}function br(t){var e=t.key,n=vr();if(null==n)throw new Error("cache pool not exist");return n.getTtl(e)}function xr(t){var e=t.key,n=t.expiration,r=vr();if(null==r)throw new Error("cache pool not exist");return r.ttl(e,n)}function Sr(t){var e=t.key,n=vr();if(null==n)throw new Error("cache pool not exist");return n.get(e)}function Cr(){var t=vr();if(null==t)throw new Error("cache pool not exist");return t.keys()}function Ar(t){if(!Ft(t))throw new Error("getMultiCache: list must be array");var e=vr();if(null==e)throw new Error("cache pool not exist");return e.mget(t)}function Dr(t){var e=t.key,n=vr();if(null==n)throw new Error("cache pool not exist");return n.take(e)}function Er(t){var e=t.key;if(mr(e)){var n=vr();if(null==n)throw new Error("cache pool not exist");return n.del(e)}}function Mr(t){if(!Ft(t))throw new Error("deleteMultiCache: list must be array");var e=vr();if(null==e)throw new Error("cache pool not exist");return e.del(t)}function kr(){var t=vr();if(null==t)throw new Error("cache pool not exist");return t.flushAll()}function Ir(){var t=vr();if(null==t)throw new Error("cache pool not exist");return t.getStats()}var Or="localStorageAssist",jr={getStorage:function(t){or(Yn(Dn,"setStorageGetter need config, use setStorageGetter to set it",Or))},setStorage:function(t,e){or(Yn(Dn,"setStorageSetter need config, use setStorageSetter to set it",Or))},removeStorage:function(t){or(Yn(Dn,"setStorageRemover need config, use setStorageRemover to set it",Or))},flushStorage:function(){or(Yn(Dn,"setStorageFlusher need config, use setStorageFlusher to set it",Or))}};function Nr(t){jr.getStorage=t}function Fr(t){jr.setStorage=t}function Rr(t){jr.removeStorage=t}function Pr(t){jr.flushStorage=t}function Tr(t){try{return jr.getStorage(t)}catch(e){throw or({key:t,e:e}),e}}function Lr(t){var e=Tr(t);return Wt(e)?null:JSON.parse(e||"{}")}function Hr(t,e){jr.setStorage(t,e)}function Wr(t,e){jr.setStorage(t,JSON.stringify(e||{}))}function qr(t){jr.removeStorage(t)}function Gr(){jr.flushStorage()}var Yr={accessWayCollection:"accessWayCollection"};function Br(){var t={},e=Yr.accessWayCollection;if(gr({key:e})&&Ft(t=Sr({key:e})))return t;var n=Lr(e);return null==(n||null)?V({},Gt||{}):(yr({key:e,value:t=V(V({},n||null),Gt||{})}),t)}function Ur(t){Wr(Yr.accessWayCollection,t||{})}var _r="applicationAssist",zr={initialConfigSetComplete:!1,handleMergeConfiguration:function(t){return t}};function Vr(t){qn()&&Vn({text:"setInitialConfig",color:_n.execute,dataDescription:"execute",ancillaryInformation:""}),Rt(t)||Qn(Yn(Dn,"setInitialConfig -> config must be object",_r)),dr().applicationInitialConfig=t,zr.initialConfigSetComplete=!0}function Jr(){if(!zr.initialConfigSetComplete)throw new Error(Yn(Dn,"applicationInitialConfig has not set,use setApplicationInitialConfig to set it",_r));return dr().applicationInitialConfig||{}}function Kr(t){zr.handleMergeConfiguration=t}function Qr(){var t=dr();return t.applicationConfigMergeComplete||(er("merge application config"),t.applicationMergeConfig=zr.handleMergeConfiguration(Jr()),t.applicationConfigMergeComplete=!0),t.applicationMergeConfig||{}}function Zr(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,a,i,u=[],c=!0,l=!1;try{if(a=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(u.push(r.value),u.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(l)throw o}}return u}}(t,e)||Mn(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $r(t,e){return q(t,e)}function Xr(t,e){var n=xn(t);return n.setHours(n.getHours()+e)}function to(t,e){var n=xn(t);return n.setMinutes(n.getMinutes()+e)}function eo(t,e){var n=xn(t);return n.setSeconds(n.getSeconds()+e)}function no(){return new Date}function ro(t,e){var n=t.getTime(),r=(e.getTime()-n)/1e3,o=parseInt(r/86400),a=parseInt((r-24*o*60*60)/3600),i=parseInt((r-24*o*60*60-60*a*60)/60);return{day:o,hour:a,minute:i,second:r-24*o*60*60-60*a*60-60*i}}var oo=function(t,e,n){var r=xn(t),o=e?xn(e):new Date,a=o.getTime()-r.getTime();return"second"===n&&a/1e3||"minute"===n&&a/1e3/60||"hour"===n&&a/1e3/60/60||"day"===n&&a/1e3/60/60/24||"week"===n&&a/1e3/60/60/24/7||"month"===n&&ao(r,o)||"quarter"===n&&ao(r,o)/3||"year"===n&&ao(r,o)/12||a},ao=function(t,e){var n=xn(t),r=xn(e);return 12*(n.getFullYear()-r.getFullYear())+n.getMonth()-r.getMonth()};function io(t){var e=t.data;return q(e).day()}function uo(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=q().day();if(!t)return e;var n="";switch(fn(e)){case 0:n="日";break;case 1:n="一";break;case 2:n="二";break;case 3:n="三";break;case 4:n="四";break;case 5:n="五";break;case 6:n="六";break;default:n=""}return Wt(n)?"":"星期".concat(n)}function co(t){var e=t.data,n=t.places,r=void 0===n?2:n,o=t.thousand,a=void 0===o?",":o,i=t.decimal;return lo({data:e,places:r,symbol:"",thousand:a,decimal:void 0===i?".":i})}function lo(t){var e=t.data,n=t.places,r=void 0===n?2:n,o=t.symbol,a=void 0===o?"¥":o,i=t.thousand,u=void 0===i?",":i,c=t.decimal,l=void 0===c?".":c,s=e||0,f=isNaN(r=Math.abs(r))?2:r,d=void 0!==a?a:"¥",h=u||",",p=l||".",m=s<0?"-":"",v=parseInt(s=Math.abs(+s||0).toFixed(f),10)+"",g=v.length;return d+m+((g=g>3?g%3:0)?v.substr(0,g)+h:"")+v.substr(g).replace(/(\d{3})(?=\d)/g,a+"1"+h)+(f?p+Math.abs(s-fn(v)).toFixed(f).slice(2):"")}function so(t){var e,n,r,o=t.target,a=["零","壹","贰","叁","肆","伍","陆","柒","捌","玖"],i=["","拾","佰","仟"],u=["","万","亿","兆"],c=["角","分","毫","厘"],l="";if(""===o)return"";if((o=parseFloat(o))>=1e15)return"超出最大处理数字";if(0===o)return l=a[0]+"元";if(-1===(o=o.toString()).indexOf("."))e=o,n="";else{var s=Zr(r=o.split("."),2);e=s[0],n=s[1],n=r[1].substr(0,4)}if(parseInt(e,10)>0){for(var f=0,d=e.length,h=0;h<d;h+=1){var p=e.substr(h,1),m=d-h-1,v=m/4,g=m%4;"0"===p?f+=1:(f>0&&(l+=a[0]),f=0,l+=a[parseInt(p,10)]+i[g]),0===g&&f<4&&(l+=u[v])}l+="元"}if(""!==n)for(var y=n.length,w=0;w<y;w+=1){var b=n.substr(w,1);"0"!==b&&(l+=a[Number(b)]+c[w])}return""===l&&(l+=a[0]+"元"),l}function fo(t){var e=t.data,n=t.fmt,r=void 0===n?$t.yearMonthDayHourMinuteSecond:n;return null==(e||null)?"":q(e).format(r)}function ho(t){var e=t.target,n=t.format,r=t.option,o=void 0===r?{}:r;if(Mt(n))return n(e);if(Nt(n))switch(n){case Zt.money:return lo({data:e});case Zt.datetime:return fo({data:e});case Zt.chineseMoney:return so({target:e,option:o});case Zt.percentage:return"".concat(Cn(100*e,1),"%");default:return e}return e}function po(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=V(V({},{second:["刚刚","片刻后"],seconds:["%d 秒前","%d 秒后"],minute:["大约 1 分钟前","大约 1 分钟后"],minutes:["%d 分钟前","%d 分钟后"],hour:["大约 1 小时前","大约 1 小时后"],hours:["%d 小时前","%d 小时后"],day:["1 天前","1 天后"],days:["%d 天前","%d 天后"],month:["大约 1 个月前","大约 1 个月后"],months:["%d 月前","%d 月后"],year:["大约 1 年前","大约 1 年后"],years:["%d 年前","%d 年后"]}),n||{}),o=oo(t,e),a=o<0?1:0,i=Math.abs(o)/1e3,u=i/60,c=u/60,l=c/24,s=l/365,f=function(t,e){return t.replace(/%d/i,e)};return i<10&&f(r.second[a],parseInt(i))||i<45&&f(r.seconds[a],parseInt(i))||i<90&&f(r.minute[a],1)||u<45&&f(r.minutes[a],parseInt(u))||u<90&&f(r.hour[a],1)||c<24&&f(r.hours[a],parseInt(c))||c<42&&f(r.day[a],1)||l<30&&f(r.days[a],parseInt(l))||l<45&&f(r.month[a],1)||l<365&&f(r.months[a],parseInt(l/30))||s<1.5&&f(r.year[a],1)||f(r.years[a],parseInt(s))}function mo(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return po(t,no(),e)}function vo(t){return Wt(t.text||null)&&Qn(Yn(Dn,"checkMessagePromptData option text disallow empty","loggerAssist")),!0}var go={showOpenMessage:function(t){var e=t.text;t.duration,t.onClose,Zn(e)},showLoadingMessage:function(t){var e=t.text;t.duration,t.onClose,Zn(e)},showInfoMessage:function(t){var e=t.text;t.duration,t.onClose,Zn(e)},showSuccessMessage:function(t){var e=t.text;t.duration,t.onClose,Zn(e)},showWarnMessage:function(t){var e=t.text;t.duration,t.onClose,Qn(e)},showWarningMessage:function(t){var e=t.text;t.duration,t.onClose,Qn(e)},showErrorMessage:function(t){var e=t.text;t.duration,t.onClose,rr(e)},setErrorMessageDisplayMonitorComplete:!1};function yo(t){go.showOpenMessage=t}function wo(t){go.showLoadingMessage=t}function bo(t){go.showInfoMessage=t}function xo(t){go.showSuccessMessage=t}function So(t){go.showWarnMessage=t}function Co(t){go.showWarningMessage=t}function Ao(t){go.showErrorMessage=t,go.setErrorMessageDisplayMonitorComplete=!0}function Do(t){Eo({text:t})}function Eo(t){var e=t.text,n=t.duration,r=void 0===n?1500:n,o=t.onClose,a=void 0===o?function(){}:o;Mt(go.showOpenMessage)&&(vo({text:e}),go.showOpenMessage({text:e,duration:r,onClose:a}))}function Mo(t){ko({text:t})}function ko(t){var e=t.text,n=t.duration,r=void 0===n?1500:n,o=t.onClose,a=void 0===o?function(){}:o;Mt(go.showLoadingMessage)&&(vo({text:e}),go.showLoadingMessage({text:e,duration:r,onClose:a}))}function Io(t){Oo({text:t})}function Oo(t){var e=t.text,n=t.duration,r=void 0===n?1500:n,o=t.onClose,a=void 0===o?function(){}:o;Mt(go.showInfoMessage)&&(vo({text:e}),go.showInfoMessage({text:e,duration:r,onClose:a}))}function jo(t){No({text:t})}function No(t){var e=t.text,n=t.duration,r=void 0===n?1500:n,o=t.onClose,a=void 0===o?function(){}:o;Mt(go.showSuccessMessage)&&(vo({text:e}),go.showSuccessMessage({text:e,duration:r,onClose:a}))}function Fo(t){Ro({text:t})}function Ro(t){var e=t.text,n=t.duration,r=void 0===n?1500:n,o=t.onClose,a=void 0===o?function(){}:o;Mt(go.showWarnMessage)&&(vo({text:e}),go.showWarnMessage({text:e,duration:r,onClose:a}))}function Po(t){To({text:t})}function To(t){var e=t.text,n=t.duration,r=void 0===n?1500:n,o=t.onClose,a=void 0===o?function(){}:o;Mt(go.showWarningMessage)&&(vo({text:e}),go.showWarningMessage({text:e,duration:r,onClose:a}))}function Lo(t){Ho({text:t})}function Ho(t){var e=t.text,n=t.duration,r=void 0===n?1500:n,o=t.onClose,a=void 0===o?function(){}:o;Mt(go.showErrorMessage)&&(vo({text:e}),go.showErrorMessage({text:e,duration:r,onClose:a}))}function Wo(t){qo({text:t})}function qo(t){var e=t.text;Wt(e||"")||(go.setErrorMessageDisplayMonitorComplete&&Ho({text:e}),or({text:e}))}function Go(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"...";return t&&t.length>e?"".concat(mn(t).substring(0,e)).concat(n):mn(t)}function Yo(t,e,n,r){var o=mn(t),a=(t||"").length;a>0&&(n>=0||r>=0)&&(o=n>=a||r>=a||(n||0)+(r||0)>=a?t:t.substr(0,n)+e+t.substr(a-r,r));return o||""}function Bo(t,e){for(var n=(new Date).getTime();!((new Date).getTime()-n>t););Mt(e)&&e()}function Uo(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(It(t))return n;if(null==t)return n;if(!Nt(e)){var r="getPathValue Function param path must be string";return qo({message:r}),null}var o=J(t,e,n);return It(n)||Ot(n)?o:o||n}function _o(t,e){if(!Nt(t))throw new Error("removeEndMatch only use for string target");if(!Nt(e))throw new Error("removeEndMatch only use for string match");if(Wt(t))return t;if(Wt(e))return t;var n=t.lastIndexOf(e);return n>=0&&t.length===n+e.length?t.substr(n,e.length):t}function zo(t,e){if(!Nt(t))throw new Error("removeEndMatch only use for string source");if(!Nt(e))throw new Error("removeEndMatch only use for string target");if(Wt(t))return t;if(Wt(e))return t;var n=t.lastIndexOf(e);return n>=0?t.substr(n,e.length):t}function Vo(t){var e=t.data,n=t.key,r=t.defaultValue,o=void 0===r?null:r,a=t.convert,i=void 0===a?null:a,u=t.convertBuilder,c=void 0===u?null:u,l=t.format,s=void 0===l?null:l,f=t.formatBuilder,d=void 0===f?null:f,h=Uo(e,n,o),p=h;return null==(c||null)&&null==(i||null)||(p=Mt(c)?An({target:h,convert:c}):An({target:h,convert:i})),null==(d||null)&&null==(s||null)||(p=Mt(d)?ho({target:p,format:d}):ho({target:p,format:s})),p}function Jo(t){var e=t.operate,n=t.item,r=t.list,o=t.key,a=t.sortInitialValue,i=void 0===a?0:a;if(null==(n||null))return r;var u=[],c=[],l=[];if((r||[]).length<=1){return Ro({message:"无需排序!"}),r}var s=Vo({data:n,key:o,convert:Qt.number});switch((r||[]).forEach((function(t){var e=Vo({data:t,key:o,convert:Qt.number});e<s&&u.push(t),e>s&&c.push(t)})),e){case Xt.moveUp:if(s===i){return Ro({message:"已经排在首位!"}),r}(u||[]).forEach((function(t,e){if(e<u.length-1)l.push(t);else{var r=n;r[o]-=1,l.push(r);var a=t;a[o]+=1,l.push(a)}})),l=l.concat(c);break;case Xt.moveDown:if(s===(r||[]).length+i-1){return Ro({message:"已经排在末位!"}),r}l=l.concat(u),(c||[]).forEach((function(t,e){if(0===e){var r=t;r[o]-=1,l.push(r);var a=n;a[o]+=1,l.push(a)}else l.push(t)}));break;default:Ro({message:"不符合的操作, 允许的操作为['".concat(Xt.moveUp,"','").concat(Xt.moveDown,"']!")})}return l}function Ko(t){var e=t.list,n=void 0===e?[]:e,r=t.convert,o=void 0===r?null:r,a=t.recursiveKey,i=void 0===a?"children":a;return(Ft(n)?n:[n]).map((function(t){return Qo({data:t,convert:o,target:i})}))}function Qo(t){var e=t.data,n=t.convert,r=void 0===n?null:n,o=t.recursiveKey,a=void 0===o?"children":o;if(!Mt(r))return e;var i=r(e),u=e[a],c=[];return Ft(u)&&(c=u.map((function(t){return Qo({data:t,convert:r,target:a})}))),i[a]=c,i}function Zo(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=bt(t,e,n);return!It(r)}function $o(t){var e=t.target,n=t.value,r=t.compareValueHandler,o=t.handler;if(null==(e||null))throw new Error("handleItem: target not allow null");if(null==(e.state||null))throw new Error("handleItem: target.state not allow null");var a=e.state.metaOriginalData;if(null==(a||null))throw new Error("handleItem: target.state.metaOriginalData not allow null");var i=-1;if(Mt(r))if(Mt(o)){if(null==(a.list||null))throw new Error("handleItem: target.state.metaOriginalData.list must be array");a.list.forEach((function(t,e){r(t)===n&&(i=e)})),i>=0&&(a.list[i]=o(a.list[i]),e.setState({metaOriginalData:a}))}else{qo({message:"handler mast be function"})}else{qo({message:"compareDataIdHandler mast be function"})}}var Xo="authorityCollectionCache",ta="hasSuperPermission";function ea(t){Wr(Yr.authorityCollection,"string"==typeof t?[t]:t),kr()}function na(t){var e,n=void 0===t?Tr(Yr.authorityCollection):t;try{n&&(e=JSON.parse(n))}catch(t){e=n}return"string"==typeof e?[e]:Ft(e)?e:[]}function ra(){return function(){var t=[];if(gr({key:Xo})&&Ft(t=Sr({key:Xo})))return t;var e,n=Tr(Yr.authorityCollection);try{e=JSON.parse(n)}catch(t){e=n}return"string"==typeof e?t.push(e):t=Ft(e)?e:[],yr({key:Xo,value:t}),t}()}function oa(){if(gr({key:ta})){var t=Sr({key:ta});if(void 0!==t)return!!t}var e=function(){var t="",e=Br();if(!Rt(e))return t;var n=Vo({data:e,key:"super"});if(Rt(n)){var r=Vo({data:n,key:"permission"});Nt(r)&&(t=r)}return t}();if(!Wt(e)&&((ra()||[]).find((function(t){return t===e}))||"")===e)return yr({key:ta,value:!0}),!0;return yr({key:ta,value:!1}),!1}function aa(t){if(oa())return!0;var e="0";if(gr({key:t})&&void 0!==(e=Sr({key:t})))return"0"!==e;var n=ra(),r=Br(),o=(n||[]).find((function(e){return e===t}));return null==(null!=o?o:null)&&ir({checkAuthority:t,listAuthority:n,accessWayCollection:r}),yr({key:t,value:e=void 0!==o?"1":"0"}),"0"!==e}function ia(t){if(Ft(t))return n=!1,Ft(e=t)?n=e.some((function(t){return aa(t)})):Nt(e)?n=aa(e):(Lo("无效的待验证权限"),rr('auth fail on "'.concat(e.join(),'"')),n);var e,n;if(Nt(t))return aa(t);throw ir({auth:t}),new Error("auth need string or string array, please check in console.")}var ua,ca="function"==typeof atob,la="function"==typeof btoa,sa="function"==typeof Buffer,fa="function"==typeof TextDecoder?new TextDecoder:void 0,da="function"==typeof TextEncoder?new TextEncoder:void 0,ha=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),pa=(ua={},ha.forEach((function(t,e){return ua[t]=e})),ua),ma=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,va=String.fromCharCode.bind(String),ga="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(t){return t};return new Uint8Array(Array.prototype.slice.call(t,0).map(e))},ya=function(t){return t.replace(/=/g,"").replace(/[+\/]/g,(function(t){return"+"==t?"-":"_"}))},wa=function(t){return t.replace(/[^A-Za-z0-9\+\/]/g,"")},ba=la?function(t){return btoa(t)}:sa?function(t){return Buffer.from(t,"binary").toString("base64")}:function(t){for(var e,n,r,o,a="",i=t.length%3,u=0;u<t.length;){if((n=t.charCodeAt(u++))>255||(r=t.charCodeAt(u++))>255||(o=t.charCodeAt(u++))>255)throw new TypeError("invalid character found");a+=ha[(e=n<<16|r<<8|o)>>18&63]+ha[e>>12&63]+ha[e>>6&63]+ha[63&e]}return i?a.slice(0,i-3)+"===".substring(i):a},xa=sa?function(t){return Buffer.from(t).toString("base64")}:function(t){for(var e=[],n=0,r=t.length;n<r;n+=4096)e.push(va.apply(null,t.subarray(n,n+4096)));return ba(e.join(""))},Sa=function(t){if(t.length<2)return(e=t.charCodeAt(0))<128?t:e<2048?va(192|e>>>6)+va(128|63&e):va(224|e>>>12&15)+va(128|e>>>6&63)+va(128|63&e);var e=65536+1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320);return va(240|e>>>18&7)+va(128|e>>>12&63)+va(128|e>>>6&63)+va(128|63&e)},Ca=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,Aa=sa?function(t){return Buffer.from(t,"utf8").toString("base64")}:da?function(t){return xa(da.encode(t))}:function(t){return ba(t.replace(Ca,Sa))},Da=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,Ea=function(t){switch(t.length){case 4:var e=((7&t.charCodeAt(0))<<18|(63&t.charCodeAt(1))<<12|(63&t.charCodeAt(2))<<6|63&t.charCodeAt(3))-65536;return va(55296+(e>>>10))+va(56320+(1023&e));case 3:return va((15&t.charCodeAt(0))<<12|(63&t.charCodeAt(1))<<6|63&t.charCodeAt(2));default:return va((31&t.charCodeAt(0))<<6|63&t.charCodeAt(1))}},Ma=ca?function(t){return atob(wa(t))}:sa?function(t){return Buffer.from(t,"base64").toString("binary")}:function(t){if(t=t.replace(/\s+/g,""),!ma.test(t))throw new TypeError("malformed base64.");t+="==".slice(2-(3&t.length));for(var e,n,r,o="",a=0;a<t.length;)e=pa[t.charAt(a++)]<<18|pa[t.charAt(a++)]<<12|(n=pa[t.charAt(a++)])<<6|(r=pa[t.charAt(a++)]),o+=64===n?va(e>>16&255):64===r?va(e>>16&255,e>>8&255):va(e>>16&255,e>>8&255,255&e);return o},ka=sa?function(t){return ga(Buffer.from(t,"base64"))}:function(t){return ga(Ma(t),(function(t){return t.charCodeAt(0)}))},Ia=sa?function(t){return Buffer.from(t,"base64").toString("utf8")}:fa?function(t){return fa.decode(ka(t))}:function(t){return Ma(t).replace(Da,Ea)},Oa=function(t){return Ia(wa(t.replace(/[-_]/g,(function(t){return"-"==t?"+":"/"}))))};function ja(t){return Oa(t)}function Na(t){return function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e?ya(Aa(t)):Aa(t)}(t)}function Fa(t){return 1*t<10?"0".concat(t):t}function Ra(t){var e=t.seed;return"#".concat("00000".concat((16777216*Fn({seed:e})<<0).toString(16)).substring(-6))}function Pa(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"RGB",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/,o=(null!=t?t:"").toLowerCase();if(r.test(o)){if(4===o.length){for(var a="#",i=1;i<4;i+=1)a+=o.slice(i,i+1).concat(o.slice(i,i+1));o=a}for(var u=[],c=1;c<7;c+=2)u.push(parseInt("0x"+o.slice(c,c+2)));return e?"".concat(e,"(").concat(u.join(","),")"):n?u:u.join(",")}return or("Invalid hex color -> ".concat(t)),o}function Ta(t){var e=t.progress,n=t.startColor,r=t.endColor,o=Pa(n,null,!0),a=Pa(r,null,!0),i=Zr(o,3),u=i[0],c=i[1],l=i[2],s=Zr(a,3),f=s[0],d=s[1],h=s[2],p=[(u+Math.round((f-u)*e)).toString(16),(c+Math.round((d-c)*e)).toString(16),(l+Math.round((h-l)*e)).toString(16)];return"#".concat(p.join("").toUpperCase())}function La(t){var e=t.direct,n=t.list,r=void 0===n?[]:n,o=Ct(e)?"".concat(e,"deg"):e;return"linear-gradient(".concat(o,", ").concat(r.join(),")")}function Ha(){function t(t,e){return It(e)?t:e}for(var e=X({},arguments.length<=0?void 0:arguments[0]),n=1;n<arguments.length;n++)e=tt(e,n<0||arguments.length<=n?void 0:arguments[n],t);return e}function Wa(t){if(t&&"object"===B(t)){var e="";return Object.keys(t).forEach((function(n){var r,o=(null!==(r=n.replace(/([A-Z])/g,"-$1"))&&void 0!==r?r:"").toLowerCase();e+="".concat(o,":").concat(t[n],";")})),e}return t&&"string"==typeof t?t:""}function qa(t,e){return t&&"object"===B(t)&&e&&"object"===B(e)?Object.assign({},t,e):Wa(t)+Wa(e)}function Ga(t,e){var n=t;for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);return n}var Ya="htmlAssist";function Ba(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(!Ct(t))return t;if(!Ct(e)||e<=0)throw new Error(Yn(Dn,"pxToRem -> root value must be number and greater than 0, current root value [".concat(e,"] is invalid"),Ya));var o=parseFloat(t);if(o<r)return t;var a=fn(o/e,n);return 0===a?"0":a+"rem"}var Ua="localMetaData";function _a(){nr("getLocalMetaData");var t=Lr(Ua);return null==(t||null)||null==(t.dataVersion||null)?null:V(V({},{data:null}),t).data||null}function za(t){return nr("setLocalMetaData"),Wr(Ua,{data:t,dataVersion:parseInt((new Date).getTime()/1e3/60/30,10)})}function Va(){qr(Ua)}var Ja="navigationAssist",Ka={navigateTo:function(t){or(Yn(Dn,"setNavigator need config, use setNavigator to set it",Ja))},redirectTo:function(t,e){or(Yn(Dn,"setRedirector need config, use setRedirector to set it",Ja))}};function Qa(t){Ka.navigateTo=t}function Za(t){Ka.redirectTo=t}function $a(t){if(Nt(t)||Rt(t))Ka.redirectTo(t);else{Lo("invalid parameter, params need string or object")}}function Xa(t){if(Nt(t)||Rt(t))Ka.navigateTo(t);else{Lo("invalid parameter, params need string or object")}}var ti={showOpenNotification:function(t){var e=t.title,n=t.description,r=void 0===n?"":n;t.placement,t.duration,t.onClose,Zn(zn(e,r))},showLoadingNotification:function(t){var e=t.title,n=t.description,r=void 0===n?"":n;t.placement,t.duration,t.onClose,Zn(zn(e,r))},showInfoNotification:function(t){var e=t.title,n=t.description,r=void 0===n?"":n;t.placement,t.duration,t.onClose,Zn(zn(e,r))},showSuccessNotification:function(t){var e=t.title,n=t.description,r=void 0===n?"":n;t.placement,t.duration,t.onClose,Zn(zn(e,r))},showWarnNotification:function(t){var e=t.title,n=t.description,r=void 0===n?"":n;t.placement,t.duration,t.onClose,Qn(zn(e,r))},showWarningNotification:function(t){var e=t.title,n=t.description,r=void 0===n?"":n;t.placement,t.duration,t.onClose,Qn(zn(e,r))},showErrorNotification:function(t){var e=t.title,n=t.description,r=void 0===n?"":n;t.placement,t.duration,t.onClose,rr(zn(e,r))}};function ei(t){ti.showOpenNotification=t}function ni(t){ti.showLoadingNotification=t}function ri(t){ti.showInfoNotification=t}function oi(t){ti.showSuccessNotification=t}function ai(t){ti.showWarnNotification=t}function ii(t){ti.showWarningNotification=t}function ui(t){ti.showErrorNotification=t}function ci(t){li({description:t})}function li(t){var e=t.title,n=t.description,r=void 0===n?"":n,o=t.placement,a=void 0===o?"":o,i=t.duration,u=void 0===i?3e3:i,c=t.onClose,l=void 0===c?function(){}:c;Mt(ti.showOpenNotification)&&ti.showOpenNotification({title:e,description:r,placement:a,duration:u,onClose:l})}function si(t){fi({description:t})}function fi(t){var e=t.title,n=t.description,r=void 0===n?"":n,o=t.placement,a=void 0===o?"":o,i=t.duration,u=void 0===i?3e3:i,c=t.onClose,l=void 0===c?function(){}:c;Mt(ti.showLoadingNotification)&&ti.showLoadingNotification({title:e,description:r,placement:a,duration:u,onClose:l})}function di(t){hi({description:t})}function hi(t){var e=t.title,n=t.description,r=void 0===n?"":n,o=t.placement,a=void 0===o?"":o,i=t.duration,u=void 0===i?3e3:i,c=t.onClose,l=void 0===c?function(){}:c;Mt(ti.showInfoNotification)&&ti.showInfoNotification({title:e,description:r,placement:a,duration:u,onClose:l})}function pi(t){mi({description:t})}function mi(t){var e=t.title,n=t.description,r=void 0===n?"":n,o=t.placement,a=void 0===o?"":o,i=t.duration,u=void 0===i?3e3:i,c=t.onClose,l=void 0===c?function(){}:c;Mt(ti.showWarnNotification)&&ti.showWarnNotification({title:e,description:r,placement:a,duration:u,onClose:l})}function vi(t){gi({description:t})}function gi(t){var e=t.title,n=t.description,r=void 0===n?"":n,o=t.placement,a=void 0===o?"":o,i=t.duration,u=void 0===i?3e3:i,c=t.onClose,l=void 0===c?function(){}:c;Mt(ti.showWarningNotification)&&ti.showWarningNotification({title:e,description:r,placement:a,duration:u,onClose:l})}function yi(t){wi({description:t})}function wi(t){var e=t.title,n=t.description,r=void 0===n?"":n,o=t.placement,a=void 0===o?"":o,i=t.duration,u=void 0===i?3e3:i,c=t.onClose,l=void 0===c?function(){}:c;Mt(ti.showSuccessNotification)&&ti.showSuccessNotification({title:e,description:r,placement:a,duration:u,onClose:l})}function bi(t){xi({description:t})}function xi(t){var e=t.title,n=t.description,r=void 0===n?"":n,o=t.placement,a=void 0===o?"":o,i=t.duration,u=void 0===i?3e3:i,c=t.onClose,l=void 0===c?function(){}:c;Mt(ti.showErrorNotification)&&ti.showErrorNotification({title:e,description:r,placement:a,duration:u,onClose:l})}var Si="nearestLocalhostNotify";function Ci(){var t=Lr(Si);return null==(t||null)||null==(t.nearestTime||null)?null:t||null}function Ai(){return Wr(Si,{nearestTime:parseInt((new Date).getTime()/1e3,10)})}function Di(){qr(Si)}function Ei(t){var e=t.text,n=!1,r=0,o=Ci()||null;null==o?n=!0:r=o.nearestTime||0;var a=parseInt((new Date).getTime()/1e3,10);try{if(r+30<a&&(n=!0),n){var i="当前接口域名: ".concat(e,". ");hi({text:i}),ar({message:i}),Ai()}}catch(t){Kn(t)}}function Mi(t){qr(t)}function ki(t){var e=Lr(t);if(null==(e||null))return Mi(t),null;if(""===(e.dataVersion||""))return Mi(t),null;var n=parseInt((new Date).getTime()/1e3/60/30,10);return e.dataVersion<n?(Mi(t),null):e.useParamsData||null}function Ii(t,e){return Wr(t,{useParamsData:e||null,dataVersion:parseInt((new Date).getTime()/1e3/60/30,10)})}function Oi(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=G(t);if(Wt(e))return n;if(Wt(n))return e;var r=e.lastIndexOf("?")>=0?"&":"?";return"".concat(e).concat(r).concat(n)}function ji(t){return Y(t)}function Ni(){
|
|
1
|
+
import t from"node-cache";import e from"lodash/isBoolean";import n from"lodash/isDate";import r from"lodash/isEqual";import o from"lodash/isFunction";import a from"lodash/isNull";import i from"lodash/isNumber";import u from"lodash/isObject";import c from"lodash/isString";import l from"lodash/isUndefined";import s from"lodash/replace";import f from"lodash/assign";import d from"lodash/assignWith";import h from"lodash/difference";import p from"lodash/dropRight";import m from"lodash/endsWith";import v from"lodash/filter";import g from"lodash/find";import y from"lodash/findIndex";import w from"lodash/first";import b from"lodash/floor";import S from"lodash/forEach";import x from"lodash/get";import C from"lodash/gte";import A from"lodash/map";import D from"lodash/memoize";import E from"lodash/remove";import M from"lodash/reverse";import k from"lodash/round";import I from"lodash/set";import O from"lodash/size";import j from"lodash/sortBy";import N from"lodash/sortedUniq";import F from"lodash/split";import R from"lodash/startsWith";import P from"lodash/trim";import T from"lodash/uniqBy";import L from"lodash/toNumber";import H from"lodash/toString";import W from"object-hash";import q from"dayjs";import{stringify as G,parse as Y}from"qs";function B(t){return B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},B(t)}function U(t){var e=function(t,e){if("object"!==B(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==B(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===B(e)?e:String(e)}function _(t,e,n){return(e=U(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function z(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function V(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?z(Object(n),!0).forEach((function(e){_(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function J(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return x(t,e,n)}function K(t,e){return k(t,e)}function Q(t,e,n){return m(t,e,n)}function Z(t){return N(t)}function $(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3;return F(t,e,n)}function X(t,e){return f(t,e)}function tt(t,e,n){return d(t,e,n)}function et(t){return M(t)}function nt(t,e){return S(t,e)}function rt(t,e){return C(t,e)}function ot(t){return D(t)}function at(t,e){return b(t,e)}function it(t){return w(t)}function ut(t,e){return R(t,e)}function ct(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return p(t,e)}function lt(t,e){return T(t,e)}function st(t){return P(t)}function ft(t,e,n){return s(t,e,n)}function dt(t,e){return E(t,e)}function ht(t,e){return A(t,e)}function pt(t,e,n){return I(t,e,n)}function mt(t){return O(t)}function vt(t,e){return h(t,e)}function gt(t,e){return v(t,e)}function yt(t,e){return j(t,e)}function wt(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return y(t,e,n)}function bt(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return g(t,e,n)}function St(t){return It(t)}function xt(t){var e="".concat(It(t)?null:t).match(/^(\d{1,4})(-|\/)(\d{1,2})\2(\d{1,2})$/);if(null==e)return!1;var n=new Date(e[1],e[3]-1,e[4]);return n.getFullYear()===parseInt(e[1],10)&&n.getMonth()+1===parseInt(e[3],10)&&n.getDate()===parseInt(e[4],10)}function Ct(t){return i(t)}function At(t){var e="".concat(It(t)?null:t);if(""===e)return!1;return new RegExp(/^([1-9][\d]{0,15}|0)(\.[\d]{1,2})?$/).test(e)}function Dt(t,e){return r(t,e)}function Et(t,e){return JSON.stringify(t||{})===JSON.stringify(e||{})}function Mt(t){return o(t)}function kt(t){return e(t)}function It(t){return l(t)}function Ot(t){return a(t)}function jt(t){return n(t)}function Nt(t){return c(t)}function Ft(t){return Array.isArray(t)}function Rt(t){return u(t)}function Pt(t){return null!==t&&"object"===B(t)&&!Ft(t)}function Tt(t){return Pt(t)&&Mt(t.then)&&Mt(t.catch)}function Lt(t){return new RegExp(/(http|https):\/\/([\w.]+\/?)\S*/).test(t)}function Ht(t){return new RegExp(/(data):image\/([\w.]+\/?)\S*/).test(t)}function Wt(t){return""===st(s(t||""," ",""))}function qt(t,e){var n=!1;return Ft(t)?(t.some((function(t){return t===e&&(n=!0,!0)})),n):n}var Gt={super:{permission:"super"}},Yt={WEAPP:"WEAPP",WEB:"WEB",RN:"RN",SWAN:"SWAN",ALIPAY:"ALIPAY",TT:"TT",QQ:"QQ",JD:"JD",UNKNOWN:"UNKNOWN"},Bt={loadApiPath:"",firstLoadSuccess:!1,loadSuccess:!1,registering:!1,dataLoading:!1,reloading:!1,searching:!1,refreshing:!1,paging:!1,processing:!1,dispatchComplete:!0,metaData:null,metaExtra:null,metaListData:[],metaOriginalData:null,urlParams:null,externalData:null},Ut={dataLoading:!0},_t={real:"real",simulation:"simulation"},zt={get:"GET",post:"POST",put:"PUT",delete:"DELETE",trace:"TRACE",connect:"CONNECT"},Vt="0",Jt=0,Kt="1970-01-01 00:00",Qt={number:"number",datetime:"datetime",string:"string",moment:"moment",money:"money",array:"array",boolean:"boolean"},Zt={money:"money",datetime:"datetime",chineseMoney:"chineseMoney",percentage:"percentage"},$t={yearMonthDayHourMinuteSecond:"YYYY-MM-DD HH:mm:ss",yearMonthDayHourMinute:"YYYY-MM-DD HH:mm",yearMonthDay:"YYYY-MM-DD",yearMonth:"YYYY-MM",year:"YYYY",monthDayHourMinuteSecond:"YYYY-MM-DD HH:mm:ss",monthDayHourMinute:"MM-DD HH:mm",monthDay:"MM-DD",hourMinute:"HH:mm",hourMinuteSecond:"HH:mm:ss",month:"MM",day:"DD",hour:"HH",minute:"mm",second:"ss"},Xt={moveUp:"moveUp",moveDown:"moveDown"},te={no:"0",yes:"1"},ee={no:0,yes:1},ne={trace:"trace",debug:"debug",warn:"warn",error:"error",exception:"exception",info:"info",config:"config",execute:"execute",stack:"stack"},re={auto:"auto",text:"text",object:"object"},oe={open:"open",loading:"loading",info:"info",warning:"warning",warn:"warn",success:"success",error:"error"},ae={open:"open",loading:"loading",info:"info",warning:"warning",warn:"warn",success:"success",error:"error"},ie="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABLCAYAAACGGCK3AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAA0SURBVHhe7cExAQAAAMKg9U9tDQ8gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIA3NXV7AAHfw7zWAAAAAElFTkSuQmCC",ue=ie,ce="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var le=function(t,e,n){var r=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(n=n>o?o:n)<0&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var a=Array(o);++r<o;)a[r]=t[r+e];return a};var se=function(t,e,n){var r=t.length;return n=void 0===n?r:n,!e&&n>=r?t:le(t,e,n)},fe=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var de=function(t){return fe.test(t)};var he=function(t){return t.split("")},pe="\\ud800-\\udfff",me="["+pe+"]",ve="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",ge="\\ud83c[\\udffb-\\udfff]",ye="[^"+pe+"]",we="(?:\\ud83c[\\udde6-\\uddff]){2}",be="[\\ud800-\\udbff][\\udc00-\\udfff]",Se="(?:"+ve+"|"+ge+")"+"?",xe="[\\ufe0e\\ufe0f]?",Ce=xe+Se+("(?:\\u200d(?:"+[ye,we,be].join("|")+")"+xe+Se+")*"),Ae="(?:"+[ye+ve+"?",ve,we,be,me].join("|")+")",De=RegExp(ge+"(?="+ge+")|"+Ae+Ce,"g");var Ee=he,Me=de,ke=function(t){return t.match(De)||[]};var Ie=function(t){return Me(t)?ke(t):Ee(t)},Oe="object"==B(ce)&&ce&&ce.Object===Object&&ce,je="object"==("undefined"==typeof self?"undefined":B(self))&&self&&self.Object===Object&&self,Ne=(Oe||je||Function("return this")()).Symbol;var Fe=function(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o},Re=Array.isArray,Pe=Ne,Te=Object.prototype,Le=Te.hasOwnProperty,He=Te.toString,We=Pe?Pe.toStringTag:void 0;var qe=function(t){var e=Le.call(t,We),n=t[We];try{t[We]=void 0;var r=!0}catch(t){}var o=He.call(t);return r&&(e?t[We]=n:delete t[We]),o},Ge=Object.prototype.toString;var Ye=qe,Be=function(t){return Ge.call(t)},Ue=Ne?Ne.toStringTag:void 0;var _e=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Ue&&Ue in Object(t)?Ye(t):Be(t)},ze=function(t){return null!=t&&"object"==B(t)};var Ve=Fe,Je=Re,Ke=function(t){return"symbol"==B(t)||ze(t)&&"[object Symbol]"==_e(t)},Qe=Ne?Ne.prototype:void 0,Ze=Qe?Qe.toString:void 0;var $e=function t(e){if("string"==typeof e)return e;if(Je(e))return Ve(e,t)+"";if(Ke(e))return Ze?Ze.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n},Xe=$e;var tn=se,en=de,nn=Ie,rn=function(t){return null==t?"":Xe(t)};var on=function(t){return function(e){e=rn(e);var n=en(e)?nn(e):void 0,r=n?n[0]:e.charAt(0),o=n?tn(n,1).join(""):e.slice(1);return r[t]()+o}},an=on("toLowerCase"),un=on("toUpperCase");function cn(t){return W(t,{algorithm:"sha1"})}function ln(t){return W(t,{algorithm:"md5"})}function sn(t,e){var n=Math.pow(10,e+1),r=Math.floor(fn(t)*n);return 10*Math.round(r/10)/n}function fn(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=L(t),r=Number.isNaN(n)?0:n;return null==(e||null)?r:sn(r,e)}function dn(t,e,n){if(!Ct(t))throw new Error("value must be number value");var r=fn(t);return void 0!==e&&(r=Math.max(t,e)),void 0!==n&&(r=Math.min(r,n)),r}function hn(t){return At(t)?parseFloat(t,10):0}function pn(t){return"".concat(hn(1e3*fn(t)/10),"%")}function mn(t){return H(t)}function vn(t){return!!t}function gn(t){return mn(t).toUpperCase()}function yn(t){return un(t)}function wn(t){return mn(t).toLowerCase()}function bn(t){return an(t)}function Sn(t){if(null==(t||null))return null;if(jt(t))return t;if(Nt(t)&&t.indexOf("T")<0){var e=t.replace(/\-/g,"/");return new Date(e)}return new Date(t)}function xn(t){return Tt(t)?t:Promise.resolve(t)}function Cn(t,e){return K(t,e)}function An(t){var e=t.target,n=t.convert;if(Mt(n))return n(e);if(Nt(n))switch(n){case Qt.number:return fn(e);case Qt.datetime:return Sn(e);case Qt.string:return mn(e);case Qt.money:return hn(e);case Qt.array:return null==(e||null)?[]:Ft(e)?e:[e];default:return e}return e}var Dn="easy-soft-utility";function En(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Mn(t,e){if(t){if("string"==typeof t)return En(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?En(t,e):void 0}}function kn(t){return function(t){if(Array.isArray(t))return En(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Mn(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function In(t){return new Function("return ".concat(t))()}function On(){return"undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement}function jn(){var t=navigator.userAgent;return{trident:t.indexOf("Trident")>-1,presto:t.indexOf("Presto")>-1,webKit:t.indexOf("AppleWebKit")>-1,gecko:t.indexOf("Gecko")>-1&&-1===t.indexOf("KHTML"),mobile:!!t.match(/AppleWebKit.*Mobile.*/),ios:!!t.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),android:t.indexOf("Android")>-1||t.indexOf("Linux")>-1,iPhone:t.indexOf("iPhone")>-1,iPad:t.indexOf("iPad")>-1,webApp:-1===t.indexOf("Safari")}}function Nn(){var t;return{versions:jn(),language:(null!==(t=navigator.browserLanguage||navigator.language)&&void 0!==t?t:"").toLowerCase()}}function Fn(t){var e=t.seed,n=t.min||0;return n+(9301*e+49297)%233280/233280*((t.max||1)-n)}function Rn(t){return null==t?null:JSON.parse(JSON.stringify(t))}function Pn(t,e,n){var r=[];return null!=t&&(r=kn(t)),null!=n&&(r=[].concat(kn(r),kn(n))),null!=e&&(r=[e].concat(kn(r))),r}function Tn(t,e,n,r,o){var a=r,i=void 0===n?null:n;return null!=e&&("function"==typeof convertValue?a.initialValue=o(t)||i:a.initialValue=t||i),a}function Ln(t,e,n){var r=null;return null==e||(n||[]).forEach((function(n){n[t]===e&&(r=n)})),r}function Hn(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:16,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),o=[],a=0;if(n=n||r.length,e)for(a=0;a<e;a++)o[a]=r[0|Math.random()*n];else for(o[8]=o[13]=o[18]=o[23]="-",o[14]="4",a=0;a<36;a++)o[a]||(t=0|16*Math.random(),o[a]=r[19===a?3&t|8:t]);return o.join("")}function Wn(t){var e=t.pageNo,n=t.pageSize,r=t.total;return!((r||0)<=0)&&(e||0)*(n||0)<(r||0)}function qn(){return"development"===process.env.NODE_ENV}function Gn(t){return Object.keys(t).map((function(e){return t[e]})).join(",")}function Yn(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var a=[t].concat(r).filter((function(t){return Nt(t)&&!Wt(t)}));return"".concat(a.join("::"),"::").concat(Wt(e)?"":e)}var Bn="loggerAssist",Un={loggerDisplaySwitchPromptSetInformationComplete:!1,loggerDisplaySwitchSetComplete:!1,display:!1},_n={config:"#F8C471",execute:"#C39BD3",info:"#89CA78",warn:"#F16F17",debug:"#00768F",trace:"#596032",error:"#E33F3E",exception:"#DC428E",stack:"#81977c"};function zn(t,e){return"".concat(mn(t)).concat(Wt(e)?"":" -> ".concat(e))}function Vn(t){var e=t.text,n=t.color,r=void 0===n?"":n,o=t.dataDescription,a=void 0===o?"":o,i=t.ancillaryInformation,u=void 0===i?"":i,c=zn(Nt(e)?e:JSON.stringify(e),u);Wt(Vn)||console.log("%c%s","color:".concat(r,";"),"".concat(Wt(a)?"":"[".concat(gn(a),"] ")).concat(c))}function Jn(t){var e=t.data,n=t.color,r=void 0===n?"":n,o=t.dataDescription,a=void 0===o?"":o,i=t.ancillaryInformation;Vn({text:"check the following object data",color:r,dataDescription:a,ancillaryInformation:void 0===i?"":i}),console.log(e)}function Kn(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:re.auto,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ne.debug,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=ur();if(!Un.loggerDisplaySwitchSetComplete&&!Un.loggerDisplaySwitchPromptSetInformationComplete){var a=Yn(Dn,"logData -> logger display switch default is false, if want to display log, please set it before first log, use setLoggerDisplaySwitch to set it, this message only show once",Bn);Vn({text:a,color:"#08BBEE",dataDescription:"hint",ancillaryInformation:""});try{throw new Error("please set use setLoggerDisplaySwitch")}catch(t){console.error(t)}Un.loggerDisplaySwitchPromptSetInformationComplete=!0}if(o||n===ne.exception){var i=null==(e||null)||Wt(e)?re.auto:e;if(!qt([re.auto,re.text,re.object],i))throw new Error("Invalid log display mode -> ".concat(i));if(i===re.auto&&(i=Nt(t)?re.text:re.object),n!==ne.exception){if(o){if(n===ne.trace&&(i===re.text&&Vn({text:t,color:_n.trace,dataDescription:"trace",ancillaryInformation:r}),i===re.object&&Jn({data:t,color:_n.trace,dataDescription:"trace",ancillaryInformation:r})),n===ne.debug&&(i===re.text&&Vn({text:t,color:_n.debug,dataDescription:"debug",ancillaryInformation:r}),i===re.object&&Jn({data:t,color:_n.debug,dataDescription:"debug",ancillaryInformation:r})),n===ne.warn&&(i===re.text&&Vn({text:t,color:_n.warn,dataDescription:"warn",ancillaryInformation:r}),i===re.object&&Jn({data:t,color:_n.warn,dataDescription:"warn",ancillaryInformation:r})),n===ne.info&&(i===re.text&&Vn({text:t,color:_n.info,dataDescription:"info",ancillaryInformation:r}),i===re.object&&Jn({data:t,color:_n.info,dataDescription:"info",ancillaryInformation:r})),n===ne.execute&&(i===re.text&&Vn({text:t,color:_n.execute,dataDescription:"execute",ancillaryInformation:r}),i===re.object&&Jn({data:t,color:_n.execute,dataDescription:"execute",ancillaryInformation:r})),n===ne.config&&(i===re.text&&Vn({text:t,color:_n.config,dataDescription:"config",ancillaryInformation:r}),i===re.object&&Jn({data:t,color:_n.config,dataDescription:"config",ancillaryInformation:r})),n===ne.stack){i===re.text&&Vn({text:t,color:_n.stack,dataDescription:"stack",ancillaryInformation:r}),i===re.object&&Jn({data:t,color:_n.stack,dataDescription:"stack",ancillaryInformation:r});try{throw new Error("stack call trace as bellow")}catch(t){var u=t.stack;console.log(ft(u,"Error:","Stack:"))}}n===ne.error&&(i===re.text&&Vn({text:t,color:_n.error,dataDescription:"error",ancillaryInformation:r}),i===re.object&&Jn({data:t,color:_n.error,dataDescription:"error",ancillaryInformation:r}))}}else{i===re.text&&Vn({text:t,color:_n.exception,dataDescription:"exception",ancillaryInformation:r}),i===re.object&&Jn({data:t,color:_n.exception,dataDescription:"exception",ancillaryInformation:r});try{throw new Error("an error occur, check the above error message, the stack information is as follows")}catch(t){console.error(t)}}}}function Qn(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";Nt(t)?ar(t,ne.warn,e):ir(t,ne.warn,e)}function Zn(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";Nt(t)?ar(t,ne.info,e):ir(t,ne.info,e)}function $n(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";Nt(t)?ar(t,ne.config,e):ir(t,ne.config,e)}function Xn(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";Nt(t)?ar(t,ne.stack,e):ir(t,ne.stack,e)}function tr(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";Nt(t)?ar(t,ne.trace,e):ir(t,ne.trace,e)}function er(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";Nt(t)?ar(t,ne.debug,e):ir(t,ne.debug,e)}function nr(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";Nt(t)?ar(t,ne.execute,e):ir(t,ne.execute,e)}function rr(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";Nt(t)?ar(t,ne.error,e):ir(t,ne.error,e)}function or(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";Nt(t)?ar(t,ne.exception,e):ir(t,ne.exception,e)}function ar(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ne.trace,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";Kn(t,re.text,e,n)}function ir(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ne.trace,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";Kn(t,re.object,e,n)}function ur(){return vn(Un.display)}function cr(t){qn()&&Vn({text:"setLoggerDisplaySwitch",color:_n.execute,dataDescription:"execute",ancillaryInformation:""}),Un.display=vn(t),Un.loggerDisplaySwitchSetComplete=!0}var lr="runtimeAssist",sr={runtimeDataStorage:null,runtimeDataStorageSetComplete:!1};function fr(e){if(qn()&&Vn({text:"setDataStorage",color:_n.execute,dataDescription:"execute",ancillaryInformation:""}),!Rt(e))throw er(e),new Error(Yn(Dn,"setDataStorage -> data storage mount target must be a object, current type is ".concat("undefined"==typeof target?"undefined":B(target)),lr));e.runtimeDataStorage={},sr.runtimeDataStorage=e.runtimeDataStorage,sr.runtimeDataStorageSetComplete=!0,function(e){if(null==(e||null))throw new Error("runtimeDataStorage has not set complete");e.localRuntimeCache=new t,e.applicationInitialConfig={},e.applicationConfigMergeComplete=!1,e.applicationMergeConfig={},e.lastRequestExceptionMessage={code:-1,message:"",time:(new Date).getTime()}}(sr.runtimeDataStorage)}function dr(){if(Ot(sr.runtimeDataStorage)||!sr.runtimeDataStorageSetComplete)throw new Error(Yn(Dn,"runtimeDataStorage has not set,use setDataStorage to set it",lr));return sr.runtimeDataStorage}function hr(){return sr.runtimeDataStorage.lastRequestExceptionMessage||{code:-1,message:"",time:(new Date).getTime()}}function pr(t){var e=t.code,n=t.message,r=t.time;sr.runtimeDataStorage.lastRequestExceptionMessage={code:e,message:n,time:r}}function mr(t){return Wt(t)?(or("checkKey -> cache key is null or empty"),!1):!(!Nt(t)&&!Ct(t))||(or("cache key must be string or number, current type id ".concat(B(t))),!1)}function vr(){var e=dr();return e.localRuntimeCache||(e.localRuntimeCache=new t),e.localRuntimeCache}function gr(t){var e=t.key,n=vr();if(null==n)throw new Error("cache pool not exist");return n.has(e)}function yr(t){var e=t.key,n=t.value,r=t.expiration,o=void 0===r?0:r;if(mr(e)){var a=vr();if(null==a)throw new Error("cache pool not exist");return a.set(e,n,o)}}function wr(t){if(!Ft(t))throw new Error("setMultiCache: list must be array");if(t.length<=0)return!0;var e=[];if(t.forEach((function(t){var n=V(V({},{key:"",value:"",expiration:0}),t),r=n.key,o=n.value,a=n.expiration;if(!Wt(r)){if(!mr(r))return;e.push({key:r,value:o,ttl:a})}})),e.length<=0)return!1;var n=vr();if(null==n)throw new Error("cache pool not exist");return n.mset(e)}function br(t){var e=t.key,n=vr();if(null==n)throw new Error("cache pool not exist");return n.getTtl(e)}function Sr(t){var e=t.key,n=t.expiration,r=vr();if(null==r)throw new Error("cache pool not exist");return r.ttl(e,n)}function xr(t){var e=t.key,n=vr();if(null==n)throw new Error("cache pool not exist");return n.get(e)}function Cr(){var t=vr();if(null==t)throw new Error("cache pool not exist");return t.keys()}function Ar(t){if(!Ft(t))throw new Error("getMultiCache: list must be array");var e=vr();if(null==e)throw new Error("cache pool not exist");return e.mget(t)}function Dr(t){var e=t.key,n=vr();if(null==n)throw new Error("cache pool not exist");return n.take(e)}function Er(t){var e=t.key;if(mr(e)){var n=vr();if(null==n)throw new Error("cache pool not exist");return n.del(e)}}function Mr(t){if(!Ft(t))throw new Error("deleteMultiCache: list must be array");var e=vr();if(null==e)throw new Error("cache pool not exist");return e.del(t)}function kr(){var t=vr();if(null==t)throw new Error("cache pool not exist");return t.flushAll()}function Ir(){var t=vr();if(null==t)throw new Error("cache pool not exist");return t.getStats()}var Or="localStorageAssist",jr={getStorage:function(t){or(Yn(Dn,"setStorageGetter need config, use setStorageGetter to set it",Or))},setStorage:function(t,e){or(Yn(Dn,"setStorageSetter need config, use setStorageSetter to set it",Or))},removeStorage:function(t){or(Yn(Dn,"setStorageRemover need config, use setStorageRemover to set it",Or))},flushStorage:function(){or(Yn(Dn,"setStorageFlusher need config, use setStorageFlusher to set it",Or))}};function Nr(t){jr.getStorage=t}function Fr(t){jr.setStorage=t}function Rr(t){jr.removeStorage=t}function Pr(t){jr.flushStorage=t}function Tr(t){try{return jr.getStorage(t)}catch(e){throw or({key:t,e:e}),e}}function Lr(t){var e=Tr(t);return Wt(e)?null:JSON.parse(e||"{}")}function Hr(t,e){jr.setStorage(t,e)}function Wr(t,e){jr.setStorage(t,JSON.stringify(e||{}))}function qr(t){jr.removeStorage(t)}function Gr(){jr.flushStorage()}var Yr={accessWayCollection:"accessWayCollection"};function Br(){var t={},e=Yr.accessWayCollection;if(gr({key:e})&&Ft(t=xr({key:e})))return t;var n=Lr(e);return null==(n||null)?V({},Gt||{}):(yr({key:e,value:t=V(V({},n||null),Gt||{})}),t)}function Ur(t){Wr(Yr.accessWayCollection,t||{})}var _r="applicationAssist",zr={initialConfigSetComplete:!1,handleMergeConfiguration:function(t){return t},handleMergeConfigurationSetComplete:!1};function Vr(t){qn()&&Vn({text:"setInitialConfig",color:_n.execute,dataDescription:"execute",ancillaryInformation:""}),Rt(t)||Qn(Yn(Dn,"setInitialConfig -> config must be object",_r)),dr().applicationInitialConfig=t,zr.initialConfigSetComplete=!0}function Jr(){if(!zr.initialConfigSetComplete)throw new Error(Yn(Dn,"applicationInitialConfig has not set,use setApplicationInitialConfig to set it",_r));return dr().applicationInitialConfig||{}}function Kr(t){zr.handleMergeConfigurationSetComplete?Qn(Yn(Dn,"setRequestHandler -> reset is not allowed, it can be set only once",_r)):(zr.handleMergeConfiguration=t,zr.handleMergeConfigurationSetComplete=!0)}function Qr(){var t=dr();return t.applicationConfigMergeComplete||(er("merge application config"),t.applicationMergeConfig=zr.handleMergeConfiguration(Jr()),t.applicationConfigMergeComplete=!0),t.applicationMergeConfig||{}}function Zr(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,a,i,u=[],c=!0,l=!1;try{if(a=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(u.push(r.value),u.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(l)throw o}}return u}}(t,e)||Mn(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $r(t,e){return q(t,e)}function Xr(t,e){var n=Sn(t);return n.setHours(n.getHours()+e)}function to(t,e){var n=Sn(t);return n.setMinutes(n.getMinutes()+e)}function eo(t,e){var n=Sn(t);return n.setSeconds(n.getSeconds()+e)}function no(){return new Date}function ro(t,e){var n=t.getTime(),r=(e.getTime()-n)/1e3,o=parseInt(r/86400),a=parseInt((r-24*o*60*60)/3600),i=parseInt((r-24*o*60*60-60*a*60)/60);return{day:o,hour:a,minute:i,second:r-24*o*60*60-60*a*60-60*i}}var oo=function(t,e,n){var r=Sn(t),o=e?Sn(e):new Date,a=o.getTime()-r.getTime();return"second"===n&&a/1e3||"minute"===n&&a/1e3/60||"hour"===n&&a/1e3/60/60||"day"===n&&a/1e3/60/60/24||"week"===n&&a/1e3/60/60/24/7||"month"===n&&ao(r,o)||"quarter"===n&&ao(r,o)/3||"year"===n&&ao(r,o)/12||a},ao=function(t,e){var n=Sn(t),r=Sn(e);return 12*(n.getFullYear()-r.getFullYear())+n.getMonth()-r.getMonth()};function io(t){var e=t.data;return q(e).day()}function uo(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=q().day();if(!t)return e;var n="";switch(fn(e)){case 0:n="日";break;case 1:n="一";break;case 2:n="二";break;case 3:n="三";break;case 4:n="四";break;case 5:n="五";break;case 6:n="六";break;default:n=""}return Wt(n)?"":"星期".concat(n)}function co(t){var e=t.data,n=t.places,r=void 0===n?2:n,o=t.thousand,a=void 0===o?",":o,i=t.decimal;return lo({data:e,places:r,symbol:"",thousand:a,decimal:void 0===i?".":i})}function lo(t){var e=t.data,n=t.places,r=void 0===n?2:n,o=t.symbol,a=void 0===o?"¥":o,i=t.thousand,u=void 0===i?",":i,c=t.decimal,l=void 0===c?".":c,s=e||0,f=isNaN(r=Math.abs(r))?2:r,d=void 0!==a?a:"¥",h=u||",",p=l||".",m=s<0?"-":"",v=parseInt(s=Math.abs(+s||0).toFixed(f),10)+"",g=v.length;return d+m+((g=g>3?g%3:0)?v.substr(0,g)+h:"")+v.substr(g).replace(/(\d{3})(?=\d)/g,a+"1"+h)+(f?p+Math.abs(s-fn(v)).toFixed(f).slice(2):"")}function so(t){var e,n,r,o=t.target,a=["零","壹","贰","叁","肆","伍","陆","柒","捌","玖"],i=["","拾","佰","仟"],u=["","万","亿","兆"],c=["角","分","毫","厘"],l="";if(""===o)return"";if((o=parseFloat(o))>=1e15)return"超出最大处理数字";if(0===o)return l=a[0]+"元";if(-1===(o=o.toString()).indexOf("."))e=o,n="";else{var s=Zr(r=o.split("."),2);e=s[0],n=s[1],n=r[1].substr(0,4)}if(parseInt(e,10)>0){for(var f=0,d=e.length,h=0;h<d;h+=1){var p=e.substr(h,1),m=d-h-1,v=m/4,g=m%4;"0"===p?f+=1:(f>0&&(l+=a[0]),f=0,l+=a[parseInt(p,10)]+i[g]),0===g&&f<4&&(l+=u[v])}l+="元"}if(""!==n)for(var y=n.length,w=0;w<y;w+=1){var b=n.substr(w,1);"0"!==b&&(l+=a[Number(b)]+c[w])}return""===l&&(l+=a[0]+"元"),l}function fo(t){var e=t.data,n=t.fmt,r=void 0===n?$t.yearMonthDayHourMinuteSecond:n;return null==(e||null)?"":q(e).format(r)}function ho(t){var e=t.target,n=t.format,r=t.option,o=void 0===r?{}:r;if(Mt(n))return n(e);if(Nt(n))switch(n){case Zt.money:return lo({data:e});case Zt.datetime:return fo({data:e});case Zt.chineseMoney:return so({target:e,option:o});case Zt.percentage:return"".concat(Cn(100*e,1),"%");default:return e}return e}function po(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=V(V({},{second:["刚刚","片刻后"],seconds:["%d 秒前","%d 秒后"],minute:["大约 1 分钟前","大约 1 分钟后"],minutes:["%d 分钟前","%d 分钟后"],hour:["大约 1 小时前","大约 1 小时后"],hours:["%d 小时前","%d 小时后"],day:["1 天前","1 天后"],days:["%d 天前","%d 天后"],month:["大约 1 个月前","大约 1 个月后"],months:["%d 月前","%d 月后"],year:["大约 1 年前","大约 1 年后"],years:["%d 年前","%d 年后"]}),n||{}),o=oo(t,e),a=o<0?1:0,i=Math.abs(o)/1e3,u=i/60,c=u/60,l=c/24,s=l/365,f=function(t,e){return t.replace(/%d/i,e)};return i<10&&f(r.second[a],parseInt(i))||i<45&&f(r.seconds[a],parseInt(i))||i<90&&f(r.minute[a],1)||u<45&&f(r.minutes[a],parseInt(u))||u<90&&f(r.hour[a],1)||c<24&&f(r.hours[a],parseInt(c))||c<42&&f(r.day[a],1)||l<30&&f(r.days[a],parseInt(l))||l<45&&f(r.month[a],1)||l<365&&f(r.months[a],parseInt(l/30))||s<1.5&&f(r.year[a],1)||f(r.years[a],parseInt(s))}function mo(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return po(t,no(),e)}function vo(t){return Wt(t.text||null)&&Qn(Yn(Dn,"checkMessagePromptData option text disallow empty","loggerAssist")),!0}var go={showOpenMessage:function(t){var e=t.text;t.duration,t.onClose,Zn(e)},showLoadingMessage:function(t){var e=t.text;t.duration,t.onClose,Zn(e)},showInfoMessage:function(t){var e=t.text;t.duration,t.onClose,Zn(e)},showSuccessMessage:function(t){var e=t.text;t.duration,t.onClose,Zn(e)},showWarnMessage:function(t){var e=t.text;t.duration,t.onClose,Qn(e)},showWarningMessage:function(t){var e=t.text;t.duration,t.onClose,Qn(e)},showErrorMessage:function(t){var e=t.text;t.duration,t.onClose,rr(e)},setErrorMessageDisplayMonitorComplete:!1};function yo(t){go.showOpenMessage=t}function wo(t){go.showLoadingMessage=t}function bo(t){go.showInfoMessage=t}function So(t){go.showSuccessMessage=t}function xo(t){go.showWarnMessage=t}function Co(t){go.showWarningMessage=t}function Ao(t){go.showErrorMessage=t,go.setErrorMessageDisplayMonitorComplete=!0}function Do(t){Eo({text:t})}function Eo(t){var e=t.text,n=t.duration,r=void 0===n?1500:n,o=t.onClose,a=void 0===o?function(){}:o;Mt(go.showOpenMessage)&&(vo({text:e}),go.showOpenMessage({text:e,duration:r,onClose:a}))}function Mo(t){ko({text:t})}function ko(t){var e=t.text,n=t.duration,r=void 0===n?1500:n,o=t.onClose,a=void 0===o?function(){}:o;Mt(go.showLoadingMessage)&&(vo({text:e}),go.showLoadingMessage({text:e,duration:r,onClose:a}))}function Io(t){Oo({text:t})}function Oo(t){var e=t.text,n=t.duration,r=void 0===n?1500:n,o=t.onClose,a=void 0===o?function(){}:o;Mt(go.showInfoMessage)&&(vo({text:e}),go.showInfoMessage({text:e,duration:r,onClose:a}))}function jo(t){No({text:t})}function No(t){var e=t.text,n=t.duration,r=void 0===n?1500:n,o=t.onClose,a=void 0===o?function(){}:o;Mt(go.showSuccessMessage)&&(vo({text:e}),go.showSuccessMessage({text:e,duration:r,onClose:a}))}function Fo(t){Ro({text:t})}function Ro(t){var e=t.text,n=t.duration,r=void 0===n?1500:n,o=t.onClose,a=void 0===o?function(){}:o;Mt(go.showWarnMessage)&&(vo({text:e}),go.showWarnMessage({text:e,duration:r,onClose:a}))}function Po(t){To({text:t})}function To(t){var e=t.text,n=t.duration,r=void 0===n?1500:n,o=t.onClose,a=void 0===o?function(){}:o;Mt(go.showWarningMessage)&&(vo({text:e}),go.showWarningMessage({text:e,duration:r,onClose:a}))}function Lo(t){Ho({text:t})}function Ho(t){var e=t.text,n=t.duration,r=void 0===n?1500:n,o=t.onClose,a=void 0===o?function(){}:o;Mt(go.showErrorMessage)&&(vo({text:e}),go.showErrorMessage({text:e,duration:r,onClose:a}))}function Wo(t){qo({text:t})}function qo(t){var e=t.text;Wt(e||"")||(go.setErrorMessageDisplayMonitorComplete&&Ho({text:e}),or({text:e}))}function Go(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"...";return t&&t.length>e?"".concat(mn(t).substring(0,e)).concat(n):mn(t)}function Yo(t,e,n,r){var o=mn(t),a=(t||"").length;a>0&&(n>=0||r>=0)&&(o=n>=a||r>=a||(n||0)+(r||0)>=a?t:t.substr(0,n)+e+t.substr(a-r,r));return o||""}function Bo(t,e){for(var n=(new Date).getTime();!((new Date).getTime()-n>t););Mt(e)&&e()}function Uo(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(It(t))return n;if(null==t)return n;if(!Nt(e)){var r="getPathValue Function param path must be string";return qo({message:r}),null}var o=J(t,e,n);return It(n)||Ot(n)?o:o||n}function _o(t,e){if(!Nt(t))throw new Error("removeEndMatch only use for string target");if(!Nt(e))throw new Error("removeEndMatch only use for string match");if(Wt(t))return t;if(Wt(e))return t;var n=t.lastIndexOf(e);return n>=0&&t.length===n+e.length?t.substr(n,e.length):t}function zo(t,e){if(!Nt(t))throw new Error("removeEndMatch only use for string source");if(!Nt(e))throw new Error("removeEndMatch only use for string target");if(Wt(t))return t;if(Wt(e))return t;var n=t.lastIndexOf(e);return n>=0?t.substr(n,e.length):t}function Vo(t){var e=t.data,n=t.key,r=t.defaultValue,o=void 0===r?null:r,a=t.convert,i=void 0===a?null:a,u=t.convertBuilder,c=void 0===u?null:u,l=t.format,s=void 0===l?null:l,f=t.formatBuilder,d=void 0===f?null:f,h=Uo(e,n,o),p=h;return null==(c||null)&&null==(i||null)||(p=Mt(c)?An({target:h,convert:c}):An({target:h,convert:i})),null==(d||null)&&null==(s||null)||(p=Mt(d)?ho({target:p,format:d}):ho({target:p,format:s})),p}function Jo(t){var e=t.operate,n=t.item,r=t.list,o=t.key,a=t.sortInitialValue,i=void 0===a?0:a;if(null==(n||null))return r;var u=[],c=[],l=[];if((r||[]).length<=1){return Ro({message:"无需排序!"}),r}var s=Vo({data:n,key:o,convert:Qt.number});switch((r||[]).forEach((function(t){var e=Vo({data:t,key:o,convert:Qt.number});e<s&&u.push(t),e>s&&c.push(t)})),e){case Xt.moveUp:if(s===i){return Ro({message:"已经排在首位!"}),r}(u||[]).forEach((function(t,e){if(e<u.length-1)l.push(t);else{var r=n;r[o]-=1,l.push(r);var a=t;a[o]+=1,l.push(a)}})),l=l.concat(c);break;case Xt.moveDown:if(s===(r||[]).length+i-1){return Ro({message:"已经排在末位!"}),r}l=l.concat(u),(c||[]).forEach((function(t,e){if(0===e){var r=t;r[o]-=1,l.push(r);var a=n;a[o]+=1,l.push(a)}else l.push(t)}));break;default:Ro({message:"不符合的操作, 允许的操作为['".concat(Xt.moveUp,"','").concat(Xt.moveDown,"']!")})}return l}function Ko(t){var e=t.list,n=void 0===e?[]:e,r=t.convert,o=void 0===r?null:r,a=t.recursiveKey,i=void 0===a?"children":a;return(Ft(n)?n:[n]).map((function(t){return Qo({data:t,convert:o,target:i})}))}function Qo(t){var e=t.data,n=t.convert,r=void 0===n?null:n,o=t.recursiveKey,a=void 0===o?"children":o;if(!Mt(r))return e;var i=r(e),u=e[a],c=[];return Ft(u)&&(c=u.map((function(t){return Qo({data:t,convert:r,target:a})}))),i[a]=c,i}function Zo(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=bt(t,e,n);return!It(r)}function $o(t){var e=t.target,n=t.value,r=t.compareValueHandler,o=t.handler;if(null==(e||null))throw new Error("handleItem: target not allow null");if(null==(e.state||null))throw new Error("handleItem: target.state not allow null");var a=e.state.metaOriginalData;if(null==(a||null))throw new Error("handleItem: target.state.metaOriginalData not allow null");var i=-1;if(Mt(r))if(Mt(o)){if(null==(a.list||null))throw new Error("handleItem: target.state.metaOriginalData.list must be array");a.list.forEach((function(t,e){r(t)===n&&(i=e)})),i>=0&&(a.list[i]=o(a.list[i]),e.setState({metaOriginalData:a}))}else{qo({message:"handler mast be function"})}else{qo({message:"compareDataIdHandler mast be function"})}}var Xo="authorityCollectionCache",ta="hasSuperPermission";function ea(t){Wr(Yr.authorityCollection,"string"==typeof t?[t]:t),kr()}function na(t){var e,n=void 0===t?Tr(Yr.authorityCollection):t;try{n&&(e=JSON.parse(n))}catch(t){e=n}return"string"==typeof e?[e]:Ft(e)?e:[]}function ra(){return function(){var t=[];if(gr({key:Xo})&&Ft(t=xr({key:Xo})))return t;var e,n=Tr(Yr.authorityCollection);try{e=JSON.parse(n)}catch(t){e=n}return"string"==typeof e?t.push(e):t=Ft(e)?e:[],yr({key:Xo,value:t}),t}()}function oa(){if(gr({key:ta})){var t=xr({key:ta});if(void 0!==t)return!!t}var e=function(){var t="",e=Br();if(!Rt(e))return t;var n=Vo({data:e,key:"super"});if(Rt(n)){var r=Vo({data:n,key:"permission"});Nt(r)&&(t=r)}return t}();if(!Wt(e)&&((ra()||[]).find((function(t){return t===e}))||"")===e)return yr({key:ta,value:!0}),!0;return yr({key:ta,value:!1}),!1}function aa(t){if(oa())return!0;var e="0";if(gr({key:t})&&void 0!==(e=xr({key:t})))return"0"!==e;var n=ra(),r=Br(),o=(n||[]).find((function(e){return e===t}));return null==(null!=o?o:null)&&ir({checkAuthority:t,listAuthority:n,accessWayCollection:r}),yr({key:t,value:e=void 0!==o?"1":"0"}),"0"!==e}function ia(t){if(Ft(t))return n=!1,Ft(e=t)?n=e.some((function(t){return aa(t)})):Nt(e)?n=aa(e):(Lo("无效的待验证权限"),rr('auth fail on "'.concat(e.join(),'"')),n);var e,n;if(Nt(t))return aa(t);throw ir({auth:t}),new Error("auth need string or string array, please check in console.")}var ua,ca="function"==typeof atob,la="function"==typeof btoa,sa="function"==typeof Buffer,fa="function"==typeof TextDecoder?new TextDecoder:void 0,da="function"==typeof TextEncoder?new TextEncoder:void 0,ha=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),pa=(ua={},ha.forEach((function(t,e){return ua[t]=e})),ua),ma=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,va=String.fromCharCode.bind(String),ga="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(t){return t};return new Uint8Array(Array.prototype.slice.call(t,0).map(e))},ya=function(t){return t.replace(/=/g,"").replace(/[+\/]/g,(function(t){return"+"==t?"-":"_"}))},wa=function(t){return t.replace(/[^A-Za-z0-9\+\/]/g,"")},ba=la?function(t){return btoa(t)}:sa?function(t){return Buffer.from(t,"binary").toString("base64")}:function(t){for(var e,n,r,o,a="",i=t.length%3,u=0;u<t.length;){if((n=t.charCodeAt(u++))>255||(r=t.charCodeAt(u++))>255||(o=t.charCodeAt(u++))>255)throw new TypeError("invalid character found");a+=ha[(e=n<<16|r<<8|o)>>18&63]+ha[e>>12&63]+ha[e>>6&63]+ha[63&e]}return i?a.slice(0,i-3)+"===".substring(i):a},Sa=sa?function(t){return Buffer.from(t).toString("base64")}:function(t){for(var e=[],n=0,r=t.length;n<r;n+=4096)e.push(va.apply(null,t.subarray(n,n+4096)));return ba(e.join(""))},xa=function(t){if(t.length<2)return(e=t.charCodeAt(0))<128?t:e<2048?va(192|e>>>6)+va(128|63&e):va(224|e>>>12&15)+va(128|e>>>6&63)+va(128|63&e);var e=65536+1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320);return va(240|e>>>18&7)+va(128|e>>>12&63)+va(128|e>>>6&63)+va(128|63&e)},Ca=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,Aa=sa?function(t){return Buffer.from(t,"utf8").toString("base64")}:da?function(t){return Sa(da.encode(t))}:function(t){return ba(t.replace(Ca,xa))},Da=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,Ea=function(t){switch(t.length){case 4:var e=((7&t.charCodeAt(0))<<18|(63&t.charCodeAt(1))<<12|(63&t.charCodeAt(2))<<6|63&t.charCodeAt(3))-65536;return va(55296+(e>>>10))+va(56320+(1023&e));case 3:return va((15&t.charCodeAt(0))<<12|(63&t.charCodeAt(1))<<6|63&t.charCodeAt(2));default:return va((31&t.charCodeAt(0))<<6|63&t.charCodeAt(1))}},Ma=ca?function(t){return atob(wa(t))}:sa?function(t){return Buffer.from(t,"base64").toString("binary")}:function(t){if(t=t.replace(/\s+/g,""),!ma.test(t))throw new TypeError("malformed base64.");t+="==".slice(2-(3&t.length));for(var e,n,r,o="",a=0;a<t.length;)e=pa[t.charAt(a++)]<<18|pa[t.charAt(a++)]<<12|(n=pa[t.charAt(a++)])<<6|(r=pa[t.charAt(a++)]),o+=64===n?va(e>>16&255):64===r?va(e>>16&255,e>>8&255):va(e>>16&255,e>>8&255,255&e);return o},ka=sa?function(t){return ga(Buffer.from(t,"base64"))}:function(t){return ga(Ma(t),(function(t){return t.charCodeAt(0)}))},Ia=sa?function(t){return Buffer.from(t,"base64").toString("utf8")}:fa?function(t){return fa.decode(ka(t))}:function(t){return Ma(t).replace(Da,Ea)},Oa=function(t){return Ia(wa(t.replace(/[-_]/g,(function(t){return"-"==t?"+":"/"}))))};function ja(t){return Oa(t)}function Na(t){return function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e?ya(Aa(t)):Aa(t)}(t)}function Fa(t){return 1*t<10?"0".concat(t):t}function Ra(t){var e=t.seed;return"#".concat("00000".concat((16777216*Fn({seed:e})<<0).toString(16)).substring(-6))}function Pa(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"RGB",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/,o=(null!=t?t:"").toLowerCase();if(r.test(o)){if(4===o.length){for(var a="#",i=1;i<4;i+=1)a+=o.slice(i,i+1).concat(o.slice(i,i+1));o=a}for(var u=[],c=1;c<7;c+=2)u.push(parseInt("0x"+o.slice(c,c+2)));return e?"".concat(e,"(").concat(u.join(","),")"):n?u:u.join(",")}return or("Invalid hex color -> ".concat(t)),o}function Ta(t){var e=t.progress,n=t.startColor,r=t.endColor,o=Pa(n,null,!0),a=Pa(r,null,!0),i=Zr(o,3),u=i[0],c=i[1],l=i[2],s=Zr(a,3),f=s[0],d=s[1],h=s[2],p=[(u+Math.round((f-u)*e)).toString(16),(c+Math.round((d-c)*e)).toString(16),(l+Math.round((h-l)*e)).toString(16)];return"#".concat(p.join("").toUpperCase())}function La(t){var e=t.direct,n=t.list,r=void 0===n?[]:n,o=Ct(e)?"".concat(e,"deg"):e;return"linear-gradient(".concat(o,", ").concat(r.join(),")")}function Ha(){function t(t,e){return It(e)?t:e}for(var e=X({},arguments.length<=0?void 0:arguments[0]),n=1;n<arguments.length;n++)e=tt(e,n<0||arguments.length<=n?void 0:arguments[n],t);return e}function Wa(t){if(t&&"object"===B(t)){var e="";return Object.keys(t).forEach((function(n){var r,o=(null!==(r=n.replace(/([A-Z])/g,"-$1"))&&void 0!==r?r:"").toLowerCase();e+="".concat(o,":").concat(t[n],";")})),e}return t&&"string"==typeof t?t:""}function qa(t,e){return t&&"object"===B(t)&&e&&"object"===B(e)?Object.assign({},t,e):Wa(t)+Wa(e)}function Ga(t,e){var n=t;for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);return n}var Ya="htmlAssist";function Ba(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(!Ct(t))return t;if(!Ct(e)||e<=0)throw new Error(Yn(Dn,"pxToRem -> root value must be number and greater than 0, current root value [".concat(e,"] is invalid"),Ya));var o=parseFloat(t);if(o<r)return t;var a=fn(o/e,n);return 0===a?"0":a+"rem"}var Ua="localMetaData";function _a(){nr("getLocalMetaData");var t=Lr(Ua);return null==(t||null)||null==(t.dataVersion||null)?null:V(V({},{data:null}),t).data||null}function za(t){return nr("setLocalMetaData"),Wr(Ua,{data:t,dataVersion:parseInt((new Date).getTime()/1e3/60/30,10)})}function Va(){qr(Ua)}var Ja="navigationAssist",Ka={navigateTo:function(t){or(Yn(Dn,"setNavigator need config, use setNavigator to set it",Ja))},redirectTo:function(t,e){or(Yn(Dn,"setRedirector need config, use setRedirector to set it",Ja))}};function Qa(t){Ka.navigateTo=t}function Za(t){Ka.redirectTo=t}function $a(t){if(Nt(t)||Rt(t))Ka.redirectTo(t);else{Lo("invalid parameter, params need string or object")}}function Xa(t){if(Nt(t)||Rt(t))Ka.navigateTo(t);else{Lo("invalid parameter, params need string or object")}}var ti={showOpenNotification:function(t){var e=t.title,n=t.description,r=void 0===n?"":n;t.placement,t.duration,t.onClose,Zn(zn(e,r))},showLoadingNotification:function(t){var e=t.title,n=t.description,r=void 0===n?"":n;t.placement,t.duration,t.onClose,Zn(zn(e,r))},showInfoNotification:function(t){var e=t.title,n=t.description,r=void 0===n?"":n;t.placement,t.duration,t.onClose,Zn(zn(e,r))},showSuccessNotification:function(t){var e=t.title,n=t.description,r=void 0===n?"":n;t.placement,t.duration,t.onClose,Zn(zn(e,r))},showWarnNotification:function(t){var e=t.title,n=t.description,r=void 0===n?"":n;t.placement,t.duration,t.onClose,Qn(zn(e,r))},showWarningNotification:function(t){var e=t.title,n=t.description,r=void 0===n?"":n;t.placement,t.duration,t.onClose,Qn(zn(e,r))},showErrorNotification:function(t){var e=t.title,n=t.description,r=void 0===n?"":n;t.placement,t.duration,t.onClose,rr(zn(e,r))}};function ei(t){ti.showOpenNotification=t}function ni(t){ti.showLoadingNotification=t}function ri(t){ti.showInfoNotification=t}function oi(t){ti.showSuccessNotification=t}function ai(t){ti.showWarnNotification=t}function ii(t){ti.showWarningNotification=t}function ui(t){ti.showErrorNotification=t}function ci(t){li({description:t})}function li(t){var e=t.title,n=t.description,r=void 0===n?"":n,o=t.placement,a=void 0===o?"":o,i=t.duration,u=void 0===i?3e3:i,c=t.onClose,l=void 0===c?function(){}:c;Mt(ti.showOpenNotification)&&ti.showOpenNotification({title:e,description:r,placement:a,duration:u,onClose:l})}function si(t){fi({description:t})}function fi(t){var e=t.title,n=t.description,r=void 0===n?"":n,o=t.placement,a=void 0===o?"":o,i=t.duration,u=void 0===i?3e3:i,c=t.onClose,l=void 0===c?function(){}:c;Mt(ti.showLoadingNotification)&&ti.showLoadingNotification({title:e,description:r,placement:a,duration:u,onClose:l})}function di(t){hi({description:t})}function hi(t){var e=t.title,n=t.description,r=void 0===n?"":n,o=t.placement,a=void 0===o?"":o,i=t.duration,u=void 0===i?3e3:i,c=t.onClose,l=void 0===c?function(){}:c;Mt(ti.showInfoNotification)&&ti.showInfoNotification({title:e,description:r,placement:a,duration:u,onClose:l})}function pi(t){mi({description:t})}function mi(t){var e=t.title,n=t.description,r=void 0===n?"":n,o=t.placement,a=void 0===o?"":o,i=t.duration,u=void 0===i?3e3:i,c=t.onClose,l=void 0===c?function(){}:c;Mt(ti.showWarnNotification)&&ti.showWarnNotification({title:e,description:r,placement:a,duration:u,onClose:l})}function vi(t){gi({description:t})}function gi(t){var e=t.title,n=t.description,r=void 0===n?"":n,o=t.placement,a=void 0===o?"":o,i=t.duration,u=void 0===i?3e3:i,c=t.onClose,l=void 0===c?function(){}:c;Mt(ti.showWarningNotification)&&ti.showWarningNotification({title:e,description:r,placement:a,duration:u,onClose:l})}function yi(t){wi({description:t})}function wi(t){var e=t.title,n=t.description,r=void 0===n?"":n,o=t.placement,a=void 0===o?"":o,i=t.duration,u=void 0===i?3e3:i,c=t.onClose,l=void 0===c?function(){}:c;Mt(ti.showSuccessNotification)&&ti.showSuccessNotification({title:e,description:r,placement:a,duration:u,onClose:l})}function bi(t){Si({description:t})}function Si(t){var e=t.title,n=t.description,r=void 0===n?"":n,o=t.placement,a=void 0===o?"":o,i=t.duration,u=void 0===i?3e3:i,c=t.onClose,l=void 0===c?function(){}:c;Mt(ti.showErrorNotification)&&ti.showErrorNotification({title:e,description:r,placement:a,duration:u,onClose:l})}var xi="nearestLocalhostNotify";function Ci(){var t=Lr(xi);return null==(t||null)||null==(t.nearestTime||null)?null:t||null}function Ai(){return Wr(xi,{nearestTime:parseInt((new Date).getTime()/1e3,10)})}function Di(){qr(xi)}function Ei(t){var e=t.text,n=!1,r=0,o=Ci()||null;null==o?n=!0:r=o.nearestTime||0;var a=parseInt((new Date).getTime()/1e3,10);try{if(r+30<a&&(n=!0),n){var i="当前接口域名: ".concat(e,". ");hi({text:i}),ar({message:i}),Ai()}}catch(t){Kn(t)}}function Mi(t){qr(t)}function ki(t){var e=Lr(t);if(null==(e||null))return Mi(t),null;if(""===(e.dataVersion||""))return Mi(t),null;var n=parseInt((new Date).getTime()/1e3/60/30,10);return e.dataVersion<n?(Mi(t),null):e.useParamsData||null}function Ii(t,e){return Wr(t,{useParamsData:e||null,dataVersion:parseInt((new Date).getTime()/1e3/60/30,10)})}function Oi(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=G(t);if(Wt(e))return n;if(Wt(n))return e;var r=e.lastIndexOf("?")>=0?"&":"?";return"".concat(e).concat(r).concat(n)}function ji(t){return Y(t)}function Ni(){
|
|
2
2
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
3
|
-
Ni=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function l(t,e,n,o){var a=e&&e.prototype instanceof d?e:d,i=Object.create(a.prototype),u=new D(o||[]);return r(i,"_invoke",{value:x(t,n,u)}),i}function s(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var f={};function d(){}function h(){}function p(){}var m={};c(m,a,(function(){return this}));var v=Object.getPrototypeOf,g=v&&v(v(E([])));g&&g!==e&&n.call(g,a)&&(m=g);var y=p.prototype=d.prototype=Object.create(m);function w(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){function o(r,a,i,u){var c=s(t[r],t,a);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==B(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,i,u)}),(function(t){o("throw",t,i,u)})):e.resolve(f).then((function(t){l.value=t,i(l)}),(function(t){return o("throw",t,i,u)}))}u(c.arg)}var a;r(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,r){o(t,n,e,r)}))}return a=a?a.then(r,r):r()}})}function x(t,e,n){var r="suspendedStart";return function(o,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw a;return M()}for(n.method=o,n.arg=a;;){var i=n.delegate;if(i){var u=S(i,n);if(u){if(u===f)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=s(t,e,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function S(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,S(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=s(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function D(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function E(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:M}}function M(){return{value:void 0,done:!0}}return h.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=c(p,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,u,"GeneratorFunction")),t.prototype=Object.create(y),t},t.awrap=function(t){return{__await:t}},w(b.prototype),c(b.prototype,i,(function(){return this})),t.AsyncIterator=b,t.async=function(e,n,r,o,a){void 0===a&&(a=Promise);var i=new b(l(e,n,r,o),a);return t.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},w(y),c(y,u,"Generator"),c(y,a,(function(){return this})),c(y,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=E,D.prototype={constructor:D,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(A),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return i.type="throw",i.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(u&&c){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(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,f):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),A(n),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;A(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:E(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},t}function Fi(t,e,n,r,o,a,i){try{var u=t[a](i),c=u.value}catch(t){return void n(t)}u.done?e(c):Promise.resolve(c).then(r,o)}function Ri(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function i(t){Fi(a,r,o,i,u,"next",t)}function u(t){Fi(a,r,o,i,u,"throw",t)}i(void 0)}))}}var Pi="token";function Ti(){return Pi}function Li(){return Tr(Pi)}function Hi(t){return Hr(Pi,t)}function Wi(){return qr(Pi)}function qi(){var t={};return t["".concat(Ti())]=Li()||"",t}var Gi={successCodeSetComplete:!1,authenticationFailCodeSetComplete:!1,successCode:200,authenticationFailCode:2001,promptSimulation:!1,promptSimulationSetComplete:!1,urlGlobalPrefix:"",displayRequestInfo:!1,displayRequestInfoSetComplete:!1,handleSupplementGlobalHeader:function(){return{}},handleSupplementGlobalHeaderSetComplete:!1,handleRequest:function(t){t.url;t.method;t.data,t.header,t.option},handleRequestSetComplete:!1,handleAuthenticationFail:function(){},handleAuthenticationFailSetComplete:!1};function Yi(t){qn()&&!Wt(t)&&Vn({text:t,color:_n.execute,dataDescription:"execute",ancillaryInformation:""})}function Bi(t){return Yn(Dn,t,"requestAssist")}function Ui(t){Gi.successCodeSetComplete?Qn(Bi("setSuccessCode -> reset is not allowed, it can be set only once")):(Yi("setSuccessCode"),Ct(t)||Qn(Bi("setSuccessCode -> code must be number")),Gi.successCode=fn(t),Gi.successCodeSetComplete=!0)}function _i(t){Gi.authenticationFailCodeSetComplete?Qn(Bi("setAuthenticationFailCode -> reset is not allowed, it can be set only once")):(Yi("setAuthenticationFailCode"),Ct(t)||Qn(Bi("setAuthenticationFailCode -> code must be number")),Gi.authenticationFailCode=fn(t),Gi.authenticationFailCodeSetComplete=!0)}function zi(t){Gi.promptSimulationSetComplete?Qn(Bi("setPromptSimulation -> reset is not allowed, it can be set only once")):(Yi("setPromptSimulation"),kt(t)||Qn(Bi("setPromptSimulation -> code must be bool")),Gi.promptSimulation=vn(t),Gi.promptSimulationSetComplete=!0)}function Vi(t){if(!Nt(t))throw new Error(Bi("setUrlGlobalPrefix param globalPrefix need string, current is ".concat(B(t))));Gi.urlGlobalPrefix=t}function Ji(t){Gi.handleRequestSetComplete?Qn(Bi("setRequestHandler -> reset is not allowed, it can be set only once")):(Yi("setRequestHandler"),Gi.handleRequest=t,Gi.handleRequestSetComplete=!0)}function Ki(t){Gi.handleAuthenticationFailSetComplete?Qn(Bi("setAuthenticationFailHandler -> reset is not allowed, it can be set only once")):(Yi("setAuthenticationFailHandler"),Gi.handleAuthenticationFail=t,Gi.handleAuthenticationFailSetComplete=!0)}function Qi(t){Gi.handleSupplementGlobalHeaderSetComplete?Qn(Bi("setGlobalHeaderSupplementHandler -> reset is not allowed, it can be set only once")):(Yi("setGlobalHeaderSupplementHandler"),Gi.handleSupplementGlobalHeader=t,Gi.handleSupplementGlobalHeaderSetComplete=!0)}function Zi(t){Gi.displayRequestInfoSetComplete?Qn(Bi("setRequestInfoDisplaySwitch -> reset is not allowed, it can be set only once")):(Yi("setRequestInfoDisplaySwitch"),Gi.displayRequestInfo=vn(t),Gi.displayRequestInfoSetComplete=!0)}function $i(t){var e=t.code,n=t.message,r={code:-1,message:"",data:null,list:[],extra:null},o=hr(),a=fn(e);if(a!==r.code){var i=(new Date).getTime();a!==Gi.authenticationFailCode?(Qn("api call failed, code: ".concat(a,", message: ").concat(n)),a===fn(o.code)?i-o.time>800&&(Lo(n),pr({code:a,message:n,time:i})):(Lo(n),pr({code:a,message:n,time:i}))):er("api call failed, authentication fail"),a===Gi.authenticationFailCode&&iu()}}function Xi(t){var e=t.source,n=t.pretreatment,r=void 0===n?null:n,o=t.successCallback,a=void 0===o?null:o,i=t.failCallback,u=void 0===i?null:i,c=e||{code:-1,message:"",data:null,list:[],extra:null},l=c.code,s=c.message,f={},d=fn(l);if(d===fn(Gi.successCode)){var h=e.data,p=e.extra;Mt(r)&&(f=r(e)),f={code:d,message:s,data:h||{},extra:p||{},dataSuccess:!0},Mt(a)&&a(f)}else f={code:d,message:s||"网络异常",data:null,extra:null,dataSuccess:!1},Mt(u)&&u(f),$i(f);return f}function tu(t){var e=t.source,n=t.pretreatment,r=void 0===n?null:n,o=t.itemPretreatment,a=void 0===o?null:o,i=t.successCallback,u=void 0===i?null:i,c=t.failCallback,l=void 0===c?null:c,s=e||{code:-1,message:"",data:null,list:[],extra:null},f=s.code,d=s.message,h={},p=fn(f);if(p===fn(Gi.successCode)){var m=e;Mt(r)&&(m=r(e));var v=m,g=v.list,y=v.extra,w=(g||[]).map((function(t,e){var n=t;return null==(n.key||null)&&(n.key="list-".concat(e)),Mt(a)&&(n=a(n)),n}));h={code:p,message:d,count:(w||[]).length,list:w,extra:y,dataSuccess:!0},Mt(u)&&u(h)}else h={code:p,message:d||"网络异常",count:0,list:[],extra:null,dataSuccess:!1},Mt(l)&&l(h),$i(h);return h}function eu(t){var e=t.source,n=t.pretreatment,r=void 0===n?null:n,o=t.itemPretreatment,a=void 0===o?null:o,i=t.successCallback,u=void 0===i?null:i,c=t.failCallback,l=void 0===c?null:c,s=e||{code:-1,message:"",data:null,list:[],extra:null},f=s.code,d=s.message,h={},p=fn(f);if(p===fn(Gi.successCode)){var m=e;Mt(r)&&(m=r(e));var v=m,g=v.list,y=v.extra,w=y.pageNo,b=(g||[]).map((function(t,e){var n=t;return null==(n.key||null)&&(n.key="".concat(w,"-").concat(e)),Mt(a)&&(n=a(n)),n}));h={code:p,message:d,count:(b||[]).length,list:b,pagination:{total:y.total,pageSize:y.pageSize,current:parseInt(w||1,10)||1},extra:y,dataSuccess:!0},Mt(u)&&u(h)}else h={code:p,message:d||"网络异常",count:0,list:[],extra:null,pagination:{total:0,pageSize:10,current:1},dataSuccess:!1},Mt(l)&&l(h),$i(h);return h}function nu(t,e){var n=t||{};return"function"==typeof e&&(n=e(n)),n}function ru(t,e,n){var r=e.payload,o=e.callback;e.pretreatment;var a=e.alias,i=e.cacheData,u=tu(r);Mt(o)&&(u=o(u));var c=null;if(It(a)||!Nt(a))return V(V({},t),{},{data:u,fromRemote:!0});if((c=V(V({},t),{},{fromRemote:!0}))[a]=u,i){var l=yr({key:"".concat(n,"_").concat(a||"data"),value:u});er("modal ".concat(n," cache data, key is ").concat(n,"_").concat(a||"data",", ").concat(l?"cache success":"cache fail","."))}return c}function ou(t,e,n){var r=e.payload,o=e.callback;e.pretreatment;var a=e.alias,i=e.cacheData,u=eu(r);Mt(o)&&(u=o(u));var c=null;if(It(a)||!Nt(a))return V(V({},t),{},{data:u,fromRemote:!0});if((c=V(V({},t),{},{fromRemote:!0}))[a]=u,i){var l=yr({key:"".concat(n,"_").concat(a||"data"),value:u});er("modal ".concat(n," cache data, key is ").concat(n,"_").concat(a||"data",", ").concat(l?"cache success":"cache fail","."))}return c}function au(t){var e=t.url,n=t.method,r=void 0===n?zt.post:n,o=t.data,a=void 0===o?{}:o,i=t.header,u=void 0===i?[]:i,c=t.option,l=void 0===c?{}:c,s=u;if(Gi.handleSupplementGlobalHeaderSetComplete&&Mt(Gi.handleSupplementGlobalHeader)){var f=Gi.handleSupplementGlobalHeader();Rt(f)&&(s=V(V({},u),f))}if(!Gi.handleRequestSetComplete)throw new Error(Bi("realRequest -> handleRequest has not set, please use setRequestHandler to set it"));Gi.handleRequest({url:e,method:r,data:a,header:s,option:l})}function iu(){if(!Gi.handleAuthenticationFailSetComplete)throw new Error(Yn("doWhenAuthenticationFail -> handleAuthenticationFail has not set, please use setAuthenticationFailHandler to set it"));Gi.handleAuthenticationFail()}function uu(t){return cu.apply(this,arguments)}function cu(){return(cu=Ri(Ni().mark((function t(e){var n,r,o,a,i,u,c,l,s,f,d,h,p,m,v,g,y,w,b,x,S,C,A,D,E,M,k,I,O,j,N;return Ni().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.api,r=e.urlParams,o=void 0===r?null:r,a=e.params,i=void 0===a?{}:a,u=e.header,c=void 0===u?{}:u,l=e.method,s=void 0===l?zt.post:l,f=e.mode,d=void 0===f?_t.real:f,h=e.promptSimulation,p=void 0===h?Gi.promptSimulation:h,m=e.promptSimulationDelay,v=void 0===m?500:m,g=e.simulateRequestDelay,y=void 0===g?0:g,w=e.simulativeSuccessResponse,b=void 0===w?{}:w,x=e.simulativeFailResponse,S=void 0===x?{code:1001,message:"虚拟未知错误"}:x,C=e.simulateRequestResult,A=void 0===C||C,D=e.simulativeAuthorize,E=void 0!==D&&D,Nt(M=Gi.urlGlobalPrefix)){t.next=5;break}throw ar(M),new Error("url global prefix is not string");case 5:if(Nt(n)){t.next=8;break}throw ar(n),new Error("api is not string");case 8:if(wn(k=n).startsWith("http://")||wn(k).startsWith("https://")?k=n:(Wt(M)||(M="/".concat(M,"/")),k="".concat(M).concat(n).replace("//","/")),null!=(o||null)&&(Nt(o)&&(k="".concat(k,"?").concat(o)),Rt(o)&&(k="".concat(k,"?").concat(Oi(o)))),I=Gi.displayRequestInfo,d!==_t.real){t.next=27;break}if(tr("api request is virtual: simulation start,".concat(y>0?" delay ".concat(y,"ms,"):""," api is ").concat(n,".")),p&&setTimeout((function(){Io("由虚拟访问返回")}),v>0?v:0),O={},j=!1,E&&(Wt(Li())||(j=!0)),!E||j){t.next=22;break}iu(),t.next=25;break;case 22:return t.next=24,vu({simulateRequestDelay:y,dataBuild:function(t){t(A?fu({response:b,needAuthorize:E}):su({response:S,needAuthorize:E}))}});case 24:O=t.sent;case 25:return I&&ir({url:k,mode:d,response:O,params:i}),t.abrupt("return",O);case 27:if(I&&ir({api:n,apiVersion:M,apiChange:k,params:i}),N=st(gn(s)),!qt([zt.get,zt.post],N)){t.next=31;break}return t.abrupt("return",au({url:k,data:i,header:V({},c||{}),option:{},method:zt.post}));case 31:throw new Error("unsupported method:".concat(s));case 32:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function lu(){return Wt(Li())}function su(t){var e=t.response,n=t.code,r=t.message,o=t.needAuthorize;return void 0===o||o?lu()?(Wo(r),V({code:n,message:r,success:!1},e)):{code:Gi.authenticationFailCode,message:"登录失效, 请重新登录",success:!1}:(Wo(r),V({code:n,message:r,success:!1},e))}function fu(t){var e=t.response,n=t.needAuthorize;return void 0===n||n?lu()?V({code:Gi.successCode,message:"success",success:!0},e):{code:Gi.authenticationFailCode,message:"登录失效, 请重新登录",success:!1}:V({code:Gi.successCode,message:"success",success:!0},e)}function du(t){return hu.apply(this,arguments)}function hu(){return(hu=Ri(Ni().mark((function t(e){var n,r,o,a;return Ni().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.remoteResponse,r=e.needAuthorize,o=void 0===r||r,a={},t.next=4,new Promise((function(t){setTimeout((function(){t(fu({remoteResponse:n,needAuthorize:o}))}),300)})).then((function(t){return a=t,t})).catch((function(t){rr(t)}));case 4:return a.code===Gi.authenticationFailCode&&iu(),t.abrupt("return",a);case 7:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function pu(t){return mu.apply(this,arguments)}function mu(){return(mu=Ri(Ni().mark((function t(e){var n,r,o,a,i;return Ni().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.remoteResponse,e.needAuthorize,r={},t.next=4,new Promise((function(t){setTimeout((function(){t(su(n))}),300)})).then((function(t){return r=t,t})).catch((function(t){rr(t)}));case 4:return a=(o=r).code,i=o.message,a===Gi.authenticationFailCode?iu():a!==Gi.successCode&&Fo(i),t.abrupt("return",r);case 7:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function vu(t){return gu.apply(this,arguments)}function gu(){return(gu=Ri(Ni().mark((function t(e){var n,r,o,a,i,u,c;return Ni().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.simulateRequestDelay,r=void 0===n?200:n,o=e.dataBuild,a={},t.next=4,new Promise((function(t){Mt(o)&&setTimeout((function(){o(t)}),r>0?r:0)})).then((function(t){return tr("api request is virtual: simulation completed."),a=t,t})).catch((function(t){rr(t)}));case 4:return u=(i=a).code,c=i.message,u!==Gi.successCode&&Po(c),t.abrupt("return",a);case 7:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var yu="sessionStorageAssist",wu={getStorage:function(t){or(Yn(Dn,"setStorageGetter need config, use setStorageGetter to set it",yu))},setStorage:function(t,e){or(Yn(Dn,"setStorageSetter need config, use setStorageSetter to set it",yu))},removeStorage:function(t){or(Yn(Dn,"setStorageRemover need config, use setStorageRemover to set it",yu))},flushStorage:function(){or(Yn(Dn,"setStorageFlusher need config, use setStorageFlusher to set it",yu))}};function bu(t){wu.getStorage=t}function xu(t){wu.setStorage=t}function Su(t){wu.removeStorage=t}function Cu(t){wu.flushStorage=t}function Au(t){try{return wu.getStorage(t)}catch(e){throw or({key:t,e:e}),e}}function Du(t){var e=Au(t);return Wt(e)?null:JSON.parse(e||"{}")}function Eu(t,e){wu.setStorage(t,e)}function Mu(t,e){wu.setStorage(t,JSON.stringify(e||{}))}function ku(t){wu.removeStorage(t)}function Iu(){wu.flushStorage()}function Ou(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return"请".concat(e||"输入").concat(t).concat(Wt(n)?"":",".concat(n))}function ju(t){var e=t.label,n=t.name,r=t.helper,o="",a="",i="";if(Nt(e))o=e;else{Qn({label:e,name:n,helper:r}),qo({message:"label必须为文本"})}if(Nt(n))a=n;else{Qn({label:e,name:n,helper:r}),qo({message:"name必须为文本"})}if(Nt(r))i=r;else{Qn({label:e,name:n,helper:r}),qo({message:"helper必须为文本"})}return{label:o,name:a,helper:i}}function Nu(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"注: ";return"".concat(e).concat(t,". ")}export{Gt as accessWaySpecialCollection,Xr as addHour,to as addMinute,eo as addSecond,zr as applicationConfiguration,X as assign,tt as assignWith,Ga as attachPropertiesToComponent,Ou as buildFieldDescription,Nu as buildFieldHelper,Ta as buildHexColor,La as buildLinearGradient,Yn as buildPromptModuleInfo,Oi as buildQueryStringify,Pa as buildRGBColorFromHexColor,Ra as buildRandomHexColor,su as buildSimulateRequestFailResponse,fu as buildSimulateRequestSuccessResponse,Wa as buildStringStyle,qi as buildTokenData,oo as calculateDateInterval,ao as calculateMonthInterval,ro as calculateTimeInterval,Zo as checkExist,ju as checkFromConfig,ia as checkHasAuthority,Wn as checkHasMore,qt as checkInCollection,oa as checkIsSuper,vo as checkMessagePromptData,Wt as checkStringIsNullOrWhiteSpace,qn as checkWhetherDevelopmentEnvironment,Rn as cloneWithoutMethod,Qt as convertCollection,Ba as convertPixelToRem,$r as createDayJsDatetime,$t as datetimeFormat,ja as decodeBase64,Er as deleteCache,Mr as deleteMultiCache,vt as difference,Jn as displayObjectMessage,Vn as displayTextMessage,ct as dropRight,Go as ellipsis,Kt as emptyDatetime,Na as encodeBase64,Q as endsWith,Yt as envCollection,ue as errorImage,In as evil,gt as filter,bt as find,wt as findIndex,it as first,Fa as fixedZero,at as floor,kr as flushAllCache,Gr as flushLocalStorage,Iu as flushSessionStorage,nt as forEach,Zt as formatCollection,po as formatDateInterval,mo as formatDateIntervalWithNow,fo as formatDatetime,co as formatDecimal,lo as formatMoney,so as formatMoneyToChinese,ho as formatTarget,J as get,Br as getAccessWayCollectionCache,Jr as getApplicationInitialConfig,Qr as getApplicationMergeConfig,na as getAuthority,Nn as getBrowserInfo,jn as getBrowserVersion,Sr as getCache,vr as getCachePool,io as getDayOfWeek,br as getExpiration,Hn as getGuid,Lr as getJsonFromLocalStorage,Du as getJsonFromSessionStorage,hr as getLastRequestExceptionMessage,_a as getLocalMetaData,ur as getLoggerDisplaySwitch,Ar as getMultiCache,Ci as getNearestLocalhostNotifyCache,no as getNow,ki as getParamsDataCache,Uo as getPathValue,dr as getRuntimeDataStorage,Tr as getStringFromLocalStorage,Au as getStringFromSessionStorage,uo as getTodayOfWeek,Li as getToken,Ti as getTokenKeyName,Gn as getValue,Vo as getValueByKey,rt as gte,$o as handleItem,ru as handleListDataAssist,ou as handlePageListDataAssist,gr as hasCache,Ft as isArray,kt as isBoolean,On as isBrowser,jt as isDate,St as isDatetime,Dt as isEqual,Et as isEqualBySerialize,Mt as isFunction,Ht as isImageBase4,xt as isInvalid,At as isMoney,Ot as isNull,Ct as isNumber,Rt as isObject,Pt as isPlainObject,Tt as isPromise,Nt as isString,It as isUndefined,Lt as isUrl,Cr as keys,jr as localStorageAssist,_n as logColorCollection,$n as logConfig,Kn as logData,er as logDebug,re as logDisplay,rr as logError,or as logException,nr as logExecute,Zn as logInfo,ne as logLevel,ir as logObject,Xn as logStack,ar as logText,tr as logTrace,Qn as logWarn,Un as loggerSwitch,ht as map,ot as memoize,Ha as mergeProps,qa as mergeStyle,zn as mergeTextMessage,go as messagePromptAssist,ae as messageTypeCollection,Xa as navigateTo,Ka as navigationAssist,ti as notificationPromptAssist,oe as notificationTypeCollection,ji as parseQueryString,tu as pretreatmentRemoteListData,eu as pretreatmentRemotePageListData,Xi as pretreatmentRemoteSingleData,nu as pretreatmentRequestParams,$a as redirectTo,Pn as refitCommonData,Tn as refitFieldDecoratorOption,_o as removeEndMatch,dt as removeFromArray,zo as removeLastMatch,Va as removeLocalMetaData,qr as removeLocalStorage,Di as removeNearestLocalhostNotifyCache,Mi as removeParamsDataCache,ku as removeSessionStorage,Wi as removeToken,ft as replace,Yo as replaceWithKeep,uu as request,Gi as requestConfiguration,zt as requestMethod,_t as requestMode,et as reverse,K as round,sr as runtimeConfiguration,Wr as saveJsonToLocalStorage,Mu as saveJsonToSessionStorage,Hr as saveStringToLocalStorage,Eu as saveStringToSessionStorage,Ln as searchFromList,Fn as seededRandom,wu as sessionStorageAssist,pt as set,Ur as setAccessWayCollectionCache,Vr as setApplicationInitialConfig,_i as setAuthenticationFailCode,Ki as setAuthenticationFailHandler,ea as setAuthority,yr as setCache,Kr as setConfigurationMergeHandler,Ao as setErrorMessageDisplayMonitor,ui as setErrorNotificationDisplayMonitor,xr as setExpiration,Qi as setGlobalHeaderSupplementHandler,bo as setInfoMessageDisplayMonitor,ri as setInfoNotificationDisplayMonitor,pr as setLastRequestExceptionMessage,wo as setLoadingMessageDisplayMonitor,ni as setLoadingNotificationDisplayMonitor,za as setLocalMetaData,Pr as setLocalStorageFlusher,Nr as setLocalStorageGetter,Rr as setLocalStorageRemover,Fr as setLocalStorageSetter,cr as setLoggerDisplaySwitch,wr as setMultiCache,Qa as setNavigator,Ai as setNearestLocalhostNotifyCache,yo as setOpenMessageDisplayMonitor,ei as setOpenNotificationDisplayMonitor,Ii as setParamsDataCache,zi as setPromptSimulation,Za as setRedirector,Ji as setRequestHandler,Zi as setRequestInfoDisplaySwitch,fr as setRuntimeDataStorage,Cu as setSessionStorageFlusher,bu as setSessionStorageGetter,Su as setSessionStorageRemover,xu as setSessionStorageSetter,Ui as setSuccessCode,xo as setSuccessMessageDisplayMonitor,oi as setSuccessNotificationDisplayMonitor,Hi as setToken,Vi as setUrlGlobalPrefix,So as setWarnMessageDisplayMonitor,ai as setWarnNotificationDisplayMonitor,Co as setWarningMessageDisplayMonitor,ii as setWarningNotificationDisplayMonitor,Ho as showErrorMessage,xi as showErrorNotification,Oo as showInfoMessage,hi as showInfoNotification,ko as showLoadingMessage,fi as showLoadingNotification,Eo as showOpenMessage,li as showOpenNotification,qo as showRuntimeError,Lo as showSimpleErrorMessage,bi as showSimpleErrorNotification,Io as showSimpleInfoMessage,di as showSimpleInfoNotification,Mo as showSimpleLoadingMessage,si as showSimpleLoadingNotification,Do as showSimpleOpenMessage,ci as showSimpleOpenNotification,Wo as showSimpleRuntimeError,jo as showSimpleSuccessMessage,yi as showSimpleSuccessNotification,Fo as showSimpleWarnMessage,pi as showSimpleWarnNotification,Po as showSimpleWarningMessage,vi as showSimpleWarningNotification,No as showSuccessMessage,wi as showSuccessNotification,Ro as showWarnMessage,mi as showWarnNotification,To as showWarningMessage,gi as showWarningNotification,pu as simulateFailRequest,vu as simulateRequest,du as simulateSuccessRequest,mt as size,Bo as sleep,yt as sortBy,Jo as sortCollectionByKey,Xt as sortOperate,Z as sortedUnique,$ as split,ut as startsWith,Ir as statisticsCache,Yr as storageKeyCollection,Dr as takeCache,An as to,vn as toBoolean,dn as toBoundary,xn as toDatetime,wn as toLower,bn as toLowerFirst,ln as toMd5,hn as toMoney,fn as toNumber,pn as toPercentage,Sn as toPromise,Cn as toRound,cn as toSha1,mn as toString,gn as toUpper,yn as toUpperFirst,Qo as transformData,Ko as transformListData,ie as transparentImage,st as trim,Ei as trySendNearestLocalhostNotify,Ut as underlyingExtensionState,Bt as underlyingState,lt as uniqBy,ee as whetherNumber,te as whetherString,Jt as zeroInt,Vt as zeroString};
|
|
3
|
+
Ni=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function l(t,e,n,o){var a=e&&e.prototype instanceof d?e:d,i=Object.create(a.prototype),u=new D(o||[]);return r(i,"_invoke",{value:S(t,n,u)}),i}function s(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var f={};function d(){}function h(){}function p(){}var m={};c(m,a,(function(){return this}));var v=Object.getPrototypeOf,g=v&&v(v(E([])));g&&g!==e&&n.call(g,a)&&(m=g);var y=p.prototype=d.prototype=Object.create(m);function w(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){function o(r,a,i,u){var c=s(t[r],t,a);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==B(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,i,u)}),(function(t){o("throw",t,i,u)})):e.resolve(f).then((function(t){l.value=t,i(l)}),(function(t){return o("throw",t,i,u)}))}u(c.arg)}var a;r(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,r){o(t,n,e,r)}))}return a=a?a.then(r,r):r()}})}function S(t,e,n){var r="suspendedStart";return function(o,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw a;return M()}for(n.method=o,n.arg=a;;){var i=n.delegate;if(i){var u=x(i,n);if(u){if(u===f)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=s(t,e,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function x(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=s(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function D(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function E(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:M}}function M(){return{value:void 0,done:!0}}return h.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=c(p,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,u,"GeneratorFunction")),t.prototype=Object.create(y),t},t.awrap=function(t){return{__await:t}},w(b.prototype),c(b.prototype,i,(function(){return this})),t.AsyncIterator=b,t.async=function(e,n,r,o,a){void 0===a&&(a=Promise);var i=new b(l(e,n,r,o),a);return t.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},w(y),c(y,u,"Generator"),c(y,a,(function(){return this})),c(y,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=E,D.prototype={constructor:D,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(A),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return i.type="throw",i.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(u&&c){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(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,f):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),A(n),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;A(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:E(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},t}function Fi(t,e,n,r,o,a,i){try{var u=t[a](i),c=u.value}catch(t){return void n(t)}u.done?e(c):Promise.resolve(c).then(r,o)}function Ri(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function i(t){Fi(a,r,o,i,u,"next",t)}function u(t){Fi(a,r,o,i,u,"throw",t)}i(void 0)}))}}var Pi="token";function Ti(){return Pi}function Li(){return Tr(Pi)}function Hi(t){return Hr(Pi,t)}function Wi(){return qr(Pi)}function qi(){var t={};return t["".concat(Ti())]=Li()||"",t}var Gi={successCodeSetComplete:!1,authenticationFailCodeSetComplete:!1,successCode:200,authenticationFailCode:2001,promptSimulation:!1,promptSimulationSetComplete:!1,urlGlobalPrefix:"",displayRequestInfo:!1,displayRequestInfoSetComplete:!1,handleSupplementGlobalHeader:function(){return{}},handleSupplementGlobalHeaderSetComplete:!1,handleRequest:function(t){t.url;t.method;t.data,t.header,t.option},handleRequestSetComplete:!1,handleAuthenticationFail:function(){},handleAuthenticationFailSetComplete:!1};function Yi(t){qn()&&!Wt(t)&&Vn({text:t,color:_n.execute,dataDescription:"execute",ancillaryInformation:""})}function Bi(t){return Yn(Dn,t,"requestAssist")}function Ui(t){Gi.successCodeSetComplete?Qn(Bi("setSuccessCode -> reset is not allowed, it can be set only once")):(Yi("setSuccessCode"),Ct(t)||Qn(Bi("setSuccessCode -> code must be number")),Gi.successCode=fn(t),Gi.successCodeSetComplete=!0)}function _i(t){Gi.authenticationFailCodeSetComplete?Qn(Bi("setAuthenticationFailCode -> reset is not allowed, it can be set only once")):(Yi("setAuthenticationFailCode"),Ct(t)||Qn(Bi("setAuthenticationFailCode -> code must be number")),Gi.authenticationFailCode=fn(t),Gi.authenticationFailCodeSetComplete=!0)}function zi(t){Gi.promptSimulationSetComplete?Qn(Bi("setPromptSimulation -> reset is not allowed, it can be set only once")):(Yi("setPromptSimulation"),kt(t)||Qn(Bi("setPromptSimulation -> code must be bool")),Gi.promptSimulation=vn(t),Gi.promptSimulationSetComplete=!0)}function Vi(t){if(!Nt(t))throw new Error(Bi("setUrlGlobalPrefix param globalPrefix need string, current is ".concat(B(t))));Gi.urlGlobalPrefix=t}function Ji(t){Gi.handleRequestSetComplete?Qn(Bi("setRequestHandler -> reset is not allowed, it can be set only once")):(Yi("setRequestHandler"),Gi.handleRequest=t,Gi.handleRequestSetComplete=!0)}function Ki(t){Gi.handleAuthenticationFailSetComplete?Qn(Bi("setAuthenticationFailHandler -> reset is not allowed, it can be set only once")):(Yi("setAuthenticationFailHandler"),Gi.handleAuthenticationFail=t,Gi.handleAuthenticationFailSetComplete=!0)}function Qi(t){Gi.handleSupplementGlobalHeaderSetComplete?Qn(Bi("setGlobalHeaderSupplementHandler -> reset is not allowed, it can be set only once")):(Yi("setGlobalHeaderSupplementHandler"),Gi.handleSupplementGlobalHeader=t,Gi.handleSupplementGlobalHeaderSetComplete=!0)}function Zi(t){Gi.displayRequestInfoSetComplete?Qn(Bi("setRequestInfoDisplaySwitch -> reset is not allowed, it can be set only once")):(Yi("setRequestInfoDisplaySwitch"),Gi.displayRequestInfo=vn(t),Gi.displayRequestInfoSetComplete=!0)}function $i(t){var e=t.code,n=t.message,r={code:-1,message:"",data:null,list:[],extra:null},o=hr(),a=fn(e);if(a!==r.code){var i=(new Date).getTime();a!==Gi.authenticationFailCode?(Qn("api call failed, code: ".concat(a,", message: ").concat(n)),a===fn(o.code)?i-o.time>800&&(Lo(n),pr({code:a,message:n,time:i})):(Lo(n),pr({code:a,message:n,time:i}))):er("api call failed, authentication fail"),a===Gi.authenticationFailCode&&iu()}}function Xi(t){var e=t.source,n=t.pretreatment,r=void 0===n?null:n,o=t.successCallback,a=void 0===o?null:o,i=t.failCallback,u=void 0===i?null:i,c=e||{code:-1,message:"",data:null,list:[],extra:null},l=c.code,s=c.message,f={},d=fn(l);if(d===fn(Gi.successCode)){var h=e.data,p=e.extra;Mt(r)&&(f=r(e)),f={code:d,message:s,data:h||{},extra:p||{},dataSuccess:!0},Mt(a)&&a(f)}else f={code:d,message:s||"网络异常",data:null,extra:null,dataSuccess:!1},Mt(u)&&u(f),$i(f);return f}function tu(t){var e=t.source,n=t.pretreatment,r=void 0===n?null:n,o=t.itemPretreatment,a=void 0===o?null:o,i=t.successCallback,u=void 0===i?null:i,c=t.failCallback,l=void 0===c?null:c,s=e||{code:-1,message:"",data:null,list:[],extra:null},f=s.code,d=s.message,h={},p=fn(f);if(p===fn(Gi.successCode)){var m=e;Mt(r)&&(m=r(e));var v=m,g=v.list,y=v.extra,w=(g||[]).map((function(t,e){var n=t;return null==(n.key||null)&&(n.key="list-".concat(e)),Mt(a)&&(n=a(n)),n}));h={code:p,message:d,count:(w||[]).length,list:w,extra:y,dataSuccess:!0},Mt(u)&&u(h)}else h={code:p,message:d||"网络异常",count:0,list:[],extra:null,dataSuccess:!1},Mt(l)&&l(h),$i(h);return h}function eu(t){var e=t.source,n=t.pretreatment,r=void 0===n?null:n,o=t.itemPretreatment,a=void 0===o?null:o,i=t.successCallback,u=void 0===i?null:i,c=t.failCallback,l=void 0===c?null:c,s=e||{code:-1,message:"",data:null,list:[],extra:null},f=s.code,d=s.message,h={},p=fn(f);if(p===fn(Gi.successCode)){var m=e;Mt(r)&&(m=r(e));var v=m,g=v.list,y=v.extra,w=y.pageNo,b=(g||[]).map((function(t,e){var n=t;return null==(n.key||null)&&(n.key="".concat(w,"-").concat(e)),Mt(a)&&(n=a(n)),n}));h={code:p,message:d,count:(b||[]).length,list:b,pagination:{total:y.total,pageSize:y.pageSize,current:parseInt(w||1,10)||1},extra:y,dataSuccess:!0},Mt(u)&&u(h)}else h={code:p,message:d||"网络异常",count:0,list:[],extra:null,pagination:{total:0,pageSize:10,current:1},dataSuccess:!1},Mt(l)&&l(h),$i(h);return h}function nu(t,e){var n=t||{};return"function"==typeof e&&(n=e(n)),n}function ru(t,e,n){var r=e.payload,o=e.callback;e.pretreatment;var a=e.alias,i=e.cacheData,u=tu(r);Mt(o)&&(u=o(u));var c=null;if(It(a)||!Nt(a))return V(V({},t),{},{data:u,fromRemote:!0});if((c=V(V({},t),{},{fromRemote:!0}))[a]=u,i){var l=yr({key:"".concat(n,"_").concat(a||"data"),value:u});er("modal ".concat(n," cache data, key is ").concat(n,"_").concat(a||"data",", ").concat(l?"cache success":"cache fail","."))}return c}function ou(t,e,n){var r=e.payload,o=e.callback;e.pretreatment;var a=e.alias,i=e.cacheData,u=eu(r);Mt(o)&&(u=o(u));var c=null;if(It(a)||!Nt(a))return V(V({},t),{},{data:u,fromRemote:!0});if((c=V(V({},t),{},{fromRemote:!0}))[a]=u,i){var l=yr({key:"".concat(n,"_").concat(a||"data"),value:u});er("modal ".concat(n," cache data, key is ").concat(n,"_").concat(a||"data",", ").concat(l?"cache success":"cache fail","."))}return c}function au(t){var e=t.url,n=t.method,r=void 0===n?zt.post:n,o=t.data,a=void 0===o?{}:o,i=t.header,u=void 0===i?[]:i,c=t.option,l=void 0===c?{}:c,s=u;if(Gi.handleSupplementGlobalHeaderSetComplete&&Mt(Gi.handleSupplementGlobalHeader)){var f=Gi.handleSupplementGlobalHeader();Rt(f)&&(s=V(V({},u),f))}if(!Gi.handleRequestSetComplete)throw new Error(Bi("realRequest -> handleRequest has not set, please use setRequestHandler to set it"));Gi.handleRequest({url:e,method:r,data:a,header:s,option:l})}function iu(){if(!Gi.handleAuthenticationFailSetComplete)throw new Error(Yn("doWhenAuthenticationFail -> handleAuthenticationFail has not set, please use setAuthenticationFailHandler to set it"));Gi.handleAuthenticationFail()}function uu(t){return cu.apply(this,arguments)}function cu(){return(cu=Ri(Ni().mark((function t(e){var n,r,o,a,i,u,c,l,s,f,d,h,p,m,v,g,y,w,b,S,x,C,A,D,E,M,k,I,O,j,N;return Ni().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.api,r=e.urlParams,o=void 0===r?null:r,a=e.params,i=void 0===a?{}:a,u=e.header,c=void 0===u?{}:u,l=e.method,s=void 0===l?zt.post:l,f=e.mode,d=void 0===f?_t.real:f,h=e.promptSimulation,p=void 0===h?Gi.promptSimulation:h,m=e.promptSimulationDelay,v=void 0===m?500:m,g=e.simulateRequestDelay,y=void 0===g?0:g,w=e.simulativeSuccessResponse,b=void 0===w?{}:w,S=e.simulativeFailResponse,x=void 0===S?{code:1001,message:"虚拟未知错误"}:S,C=e.simulateRequestResult,A=void 0===C||C,D=e.simulativeAuthorize,E=void 0!==D&&D,Nt(M=Gi.urlGlobalPrefix)){t.next=5;break}throw ar(M),new Error("url global prefix is not string");case 5:if(Nt(n)){t.next=8;break}throw ar(n),new Error("api is not string");case 8:if(wn(k=n).startsWith("http://")||wn(k).startsWith("https://")?k=n:(Wt(M)||(M="/".concat(M,"/")),k="".concat(M).concat(n).replace("//","/")),null!=(o||null)&&(Nt(o)&&(k="".concat(k,"?").concat(o)),Rt(o)&&(k="".concat(k,"?").concat(Oi(o)))),I=Gi.displayRequestInfo,d!==_t.simulation){t.next=27;break}if(tr("api request is simulation mode, simulate start,".concat(y>0?" delay ".concat(y,"ms,"):""," api is ").concat(n,".")),p&&setTimeout((function(){Io("由虚拟访问返回")}),v>0?v:0),O={},j=!1,E&&(Wt(Li())||(j=!0)),!E||j){t.next=22;break}iu(),t.next=25;break;case 22:return t.next=24,vu({simulateRequestDelay:y,dataBuild:function(t){t(A?fu({response:b,needAuthorize:E}):su({response:x,needAuthorize:E}))}});case 24:O=t.sent;case 25:return I&&ir({url:k,mode:d,response:O,params:i}),t.abrupt("return",O);case 27:if(I&&ir({api:n,apiVersion:M,apiChange:k,params:i}),N=st(gn(s)),!qt([zt.get,zt.post],N)){t.next=31;break}return t.abrupt("return",au({url:k,data:i,header:V({},c||{}),option:{},method:zt.post}));case 31:throw new Error("unsupported method:".concat(s));case 32:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function lu(){return Wt(Li())}function su(t){var e=t.response,n=t.code,r=t.message,o=t.needAuthorize;return void 0===o||o?lu()?(Wo(r),V({code:n,message:r,success:!1},e)):{code:Gi.authenticationFailCode,message:"登录失效, 请重新登录",success:!1}:(Wo(r),V({code:n,message:r,success:!1},e))}function fu(t){var e=t.response,n=t.needAuthorize;return void 0===n||n?lu()?V({code:Gi.successCode,message:"success",success:!0},e):{code:Gi.authenticationFailCode,message:"登录失效, 请重新登录",success:!1}:V({code:Gi.successCode,message:"success",success:!0},e)}function du(t){return hu.apply(this,arguments)}function hu(){return(hu=Ri(Ni().mark((function t(e){var n,r,o,a;return Ni().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.remoteResponse,r=e.needAuthorize,o=void 0===r||r,a={},t.next=4,new Promise((function(t){setTimeout((function(){t(fu({remoteResponse:n,needAuthorize:o}))}),300)})).then((function(t){return a=t,t})).catch((function(t){rr(t)}));case 4:return a.code===Gi.authenticationFailCode&&iu(),t.abrupt("return",a);case 7:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function pu(t){return mu.apply(this,arguments)}function mu(){return(mu=Ri(Ni().mark((function t(e){var n,r,o,a,i;return Ni().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.remoteResponse,e.needAuthorize,r={},t.next=4,new Promise((function(t){setTimeout((function(){t(su(n))}),300)})).then((function(t){return r=t,t})).catch((function(t){rr(t)}));case 4:return a=(o=r).code,i=o.message,a===Gi.authenticationFailCode?iu():a!==Gi.successCode&&Fo(i),t.abrupt("return",r);case 7:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function vu(t){return gu.apply(this,arguments)}function gu(){return(gu=Ri(Ni().mark((function t(e){var n,r,o,a,i,u,c;return Ni().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.simulateRequestDelay,r=void 0===n?200:n,o=e.dataBuild,a={},t.next=4,new Promise((function(t){Mt(o)&&setTimeout((function(){o(t)}),r>0?r:0)})).then((function(t){return tr("api request is simulation mode, simulate completed."),a=t,t})).catch((function(t){rr(t)}));case 4:return u=(i=a).code,c=i.message,u!==Gi.successCode&&Po(c),t.abrupt("return",a);case 7:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var yu="sessionStorageAssist",wu={getStorage:function(t){or(Yn(Dn,"setStorageGetter need config, use setStorageGetter to set it",yu))},setStorage:function(t,e){or(Yn(Dn,"setStorageSetter need config, use setStorageSetter to set it",yu))},removeStorage:function(t){or(Yn(Dn,"setStorageRemover need config, use setStorageRemover to set it",yu))},flushStorage:function(){or(Yn(Dn,"setStorageFlusher need config, use setStorageFlusher to set it",yu))}};function bu(t){wu.getStorage=t}function Su(t){wu.setStorage=t}function xu(t){wu.removeStorage=t}function Cu(t){wu.flushStorage=t}function Au(t){try{return wu.getStorage(t)}catch(e){throw or({key:t,e:e}),e}}function Du(t){var e=Au(t);return Wt(e)?null:JSON.parse(e||"{}")}function Eu(t,e){wu.setStorage(t,e)}function Mu(t,e){wu.setStorage(t,JSON.stringify(e||{}))}function ku(t){wu.removeStorage(t)}function Iu(){wu.flushStorage()}function Ou(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return"请".concat(e||"输入").concat(t).concat(Wt(n)?"":",".concat(n))}function ju(t){var e=t.label,n=t.name,r=t.helper,o="",a="",i="";if(Nt(e))o=e;else{Qn({label:e,name:n,helper:r}),qo({message:"label必须为文本"})}if(Nt(n))a=n;else{Qn({label:e,name:n,helper:r}),qo({message:"name必须为文本"})}if(Nt(r))i=r;else{Qn({label:e,name:n,helper:r}),qo({message:"helper必须为文本"})}return{label:o,name:a,helper:i}}function Nu(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"注: ";return"".concat(e).concat(t,". ")}export{Gt as accessWaySpecialCollection,Xr as addHour,to as addMinute,eo as addSecond,zr as applicationConfiguration,X as assign,tt as assignWith,Ga as attachPropertiesToComponent,Ou as buildFieldDescription,Nu as buildFieldHelper,Ta as buildHexColor,La as buildLinearGradient,Yn as buildPromptModuleInfo,Oi as buildQueryStringify,Pa as buildRGBColorFromHexColor,Ra as buildRandomHexColor,su as buildSimulateRequestFailResponse,fu as buildSimulateRequestSuccessResponse,Wa as buildStringStyle,qi as buildTokenData,oo as calculateDateInterval,ao as calculateMonthInterval,ro as calculateTimeInterval,Zo as checkExist,ju as checkFromConfig,ia as checkHasAuthority,Wn as checkHasMore,qt as checkInCollection,oa as checkIsSuper,vo as checkMessagePromptData,Wt as checkStringIsNullOrWhiteSpace,qn as checkWhetherDevelopmentEnvironment,Rn as cloneWithoutMethod,Qt as convertCollection,Ba as convertPixelToRem,$r as createDayJsDatetime,$t as datetimeFormat,ja as decodeBase64,Er as deleteCache,Mr as deleteMultiCache,vt as difference,Jn as displayObjectMessage,Vn as displayTextMessage,ct as dropRight,Go as ellipsis,Kt as emptyDatetime,Na as encodeBase64,Q as endsWith,Yt as envCollection,ue as errorImage,In as evil,gt as filter,bt as find,wt as findIndex,it as first,Fa as fixedZero,at as floor,kr as flushAllCache,Gr as flushLocalStorage,Iu as flushSessionStorage,nt as forEach,Zt as formatCollection,po as formatDateInterval,mo as formatDateIntervalWithNow,fo as formatDatetime,co as formatDecimal,lo as formatMoney,so as formatMoneyToChinese,ho as formatTarget,J as get,Br as getAccessWayCollectionCache,Jr as getApplicationInitialConfig,Qr as getApplicationMergeConfig,na as getAuthority,Nn as getBrowserInfo,jn as getBrowserVersion,xr as getCache,vr as getCachePool,io as getDayOfWeek,br as getExpiration,Hn as getGuid,Lr as getJsonFromLocalStorage,Du as getJsonFromSessionStorage,hr as getLastRequestExceptionMessage,_a as getLocalMetaData,ur as getLoggerDisplaySwitch,Ar as getMultiCache,Ci as getNearestLocalhostNotifyCache,no as getNow,ki as getParamsDataCache,Uo as getPathValue,dr as getRuntimeDataStorage,Tr as getStringFromLocalStorage,Au as getStringFromSessionStorage,uo as getTodayOfWeek,Li as getToken,Ti as getTokenKeyName,Gn as getValue,Vo as getValueByKey,rt as gte,$o as handleItem,ru as handleListDataAssist,ou as handlePageListDataAssist,gr as hasCache,Ft as isArray,kt as isBoolean,On as isBrowser,jt as isDate,xt as isDatetime,Dt as isEqual,Et as isEqualBySerialize,Mt as isFunction,Ht as isImageBase4,St as isInvalid,At as isMoney,Ot as isNull,Ct as isNumber,Rt as isObject,Pt as isPlainObject,Tt as isPromise,Nt as isString,It as isUndefined,Lt as isUrl,Cr as keys,jr as localStorageAssist,_n as logColorCollection,$n as logConfig,Kn as logData,er as logDebug,re as logDisplay,rr as logError,or as logException,nr as logExecute,Zn as logInfo,ne as logLevel,ir as logObject,Xn as logStack,ar as logText,tr as logTrace,Qn as logWarn,Un as loggerSwitch,ht as map,ot as memoize,Ha as mergeProps,qa as mergeStyle,zn as mergeTextMessage,go as messagePromptAssist,ae as messageTypeCollection,Xa as navigateTo,Ka as navigationAssist,ti as notificationPromptAssist,oe as notificationTypeCollection,ji as parseQueryString,tu as pretreatmentRemoteListData,eu as pretreatmentRemotePageListData,Xi as pretreatmentRemoteSingleData,nu as pretreatmentRequestParams,$a as redirectTo,Pn as refitCommonData,Tn as refitFieldDecoratorOption,_o as removeEndMatch,dt as removeFromArray,zo as removeLastMatch,Va as removeLocalMetaData,qr as removeLocalStorage,Di as removeNearestLocalhostNotifyCache,Mi as removeParamsDataCache,ku as removeSessionStorage,Wi as removeToken,ft as replace,Yo as replaceWithKeep,uu as request,Gi as requestConfiguration,zt as requestMethod,_t as requestMode,et as reverse,K as round,sr as runtimeConfiguration,Wr as saveJsonToLocalStorage,Mu as saveJsonToSessionStorage,Hr as saveStringToLocalStorage,Eu as saveStringToSessionStorage,Ln as searchFromList,Fn as seededRandom,wu as sessionStorageAssist,pt as set,Ur as setAccessWayCollectionCache,Vr as setApplicationInitialConfig,_i as setAuthenticationFailCode,Ki as setAuthenticationFailHandler,ea as setAuthority,yr as setCache,Kr as setConfigurationMergeHandler,Ao as setErrorMessageDisplayMonitor,ui as setErrorNotificationDisplayMonitor,Sr as setExpiration,Qi as setGlobalHeaderSupplementHandler,bo as setInfoMessageDisplayMonitor,ri as setInfoNotificationDisplayMonitor,pr as setLastRequestExceptionMessage,wo as setLoadingMessageDisplayMonitor,ni as setLoadingNotificationDisplayMonitor,za as setLocalMetaData,Pr as setLocalStorageFlusher,Nr as setLocalStorageGetter,Rr as setLocalStorageRemover,Fr as setLocalStorageSetter,cr as setLoggerDisplaySwitch,wr as setMultiCache,Qa as setNavigator,Ai as setNearestLocalhostNotifyCache,yo as setOpenMessageDisplayMonitor,ei as setOpenNotificationDisplayMonitor,Ii as setParamsDataCache,zi as setPromptSimulation,Za as setRedirector,Ji as setRequestHandler,Zi as setRequestInfoDisplaySwitch,fr as setRuntimeDataStorage,Cu as setSessionStorageFlusher,bu as setSessionStorageGetter,xu as setSessionStorageRemover,Su as setSessionStorageSetter,Ui as setSuccessCode,So as setSuccessMessageDisplayMonitor,oi as setSuccessNotificationDisplayMonitor,Hi as setToken,Vi as setUrlGlobalPrefix,xo as setWarnMessageDisplayMonitor,ai as setWarnNotificationDisplayMonitor,Co as setWarningMessageDisplayMonitor,ii as setWarningNotificationDisplayMonitor,Ho as showErrorMessage,Si as showErrorNotification,Oo as showInfoMessage,hi as showInfoNotification,ko as showLoadingMessage,fi as showLoadingNotification,Eo as showOpenMessage,li as showOpenNotification,qo as showRuntimeError,Lo as showSimpleErrorMessage,bi as showSimpleErrorNotification,Io as showSimpleInfoMessage,di as showSimpleInfoNotification,Mo as showSimpleLoadingMessage,si as showSimpleLoadingNotification,Do as showSimpleOpenMessage,ci as showSimpleOpenNotification,Wo as showSimpleRuntimeError,jo as showSimpleSuccessMessage,yi as showSimpleSuccessNotification,Fo as showSimpleWarnMessage,pi as showSimpleWarnNotification,Po as showSimpleWarningMessage,vi as showSimpleWarningNotification,No as showSuccessMessage,wi as showSuccessNotification,Ro as showWarnMessage,mi as showWarnNotification,To as showWarningMessage,gi as showWarningNotification,pu as simulateFailRequest,vu as simulateRequest,du as simulateSuccessRequest,mt as size,Bo as sleep,yt as sortBy,Jo as sortCollectionByKey,Xt as sortOperate,Z as sortedUnique,$ as split,ut as startsWith,Ir as statisticsCache,Yr as storageKeyCollection,Dr as takeCache,An as to,vn as toBoolean,dn as toBoundary,Sn as toDatetime,wn as toLower,bn as toLowerFirst,ln as toMd5,hn as toMoney,fn as toNumber,pn as toPercentage,xn as toPromise,Cn as toRound,cn as toSha1,mn as toString,gn as toUpper,yn as toUpperFirst,Qo as transformData,Ko as transformListData,ie as transparentImage,st as trim,Ei as trySendNearestLocalhostNotify,Ut as underlyingExtensionState,Bt as underlyingState,lt as uniqBy,ee as whetherNumber,te as whetherString,Jt as zeroInt,Vt as zeroString};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "easy-soft-utility",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.29",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "easy-soft-utility",
|
|
6
6
|
"keywords": [
|
|
@@ -135,5 +135,6 @@
|
|
|
135
135
|
"stylelint-config-standard": "^29.0.0",
|
|
136
136
|
"stylelint-declaration-block-no-ignored-properties": "^2.6.0",
|
|
137
137
|
"webpack": "^5.75.0"
|
|
138
|
-
}
|
|
138
|
+
},
|
|
139
|
+
"gitHead": "95235969d114a9aaed342b00efa0983aedfee14d"
|
|
139
140
|
}
|