mooho-base-admin-plus 2.3.3 → 2.3.4
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/history.md
CHANGED
|
@@ -28,7 +28,7 @@ __p += '`),Je&&(Se+=`' +
|
|
|
28
28
|
function print() { __p += __j.call(arguments, '') }
|
|
29
29
|
`:`;
|
|
30
30
|
`)+Se+`return __p
|
|
31
|
-
}`;var ze=qs(function(){return at(j,Me+"return "+Se).apply(o,K)});if(ze.source=Se,Qn(ze))throw ze;return ze}function $p(S){return nt(S).toLowerCase()}function _p(S){return nt(S).toUpperCase()}function Sp(S,T,I){if(S=nt(S),S&&(I||T===o))return Ui(S);if(!S||!(T=Ot(T)))return S;var V=Zt(S),G=Zt(T),j=zi(V,G),K=Hi(V,G)+1;return yr(V,j,K).join("")}function Cp(S,T,I){if(S=nt(S),S&&(I||T===o))return S.slice(0,ji(S)+1);if(!S||!(T=Ot(T)))return S;var V=Zt(S),G=Hi(V,Zt(T))+1;return yr(V,0,G).join("")}function bp(S,T,I){if(S=nt(S),S&&(I||T===o))return S.replace(Ka,"");if(!S||!(T=Ot(T)))return S;var V=Zt(S),G=zi(V,Zt(T));return yr(V,G).join("")}function wp(S,T){var I=M,V=R;if(pt(T)){var G="separator"in T?T.separator:G;I="length"in T?Ue(T.length):I,V="omission"in T?Ot(T.omission):V}S=nt(S);var j=S.length;if(Mr(S)){var K=Zt(S);j=K.length}if(I>=j)return S;var Q=I-Nr(V);if(Q<1)return V;var oe=K?yr(K,0,Q).join(""):S.slice(0,Q);if(G===o)return oe+V;if(K&&(Q+=oe.length-Q),ei(G)){if(S.slice(Q).search(G)){var ye,_e=oe;for(G.global||(G=vn(G.source,nt(di.exec(G))+"g")),G.lastIndex=0;ye=G.exec(_e);)var Se=ye.index;oe=oe.slice(0,Se===o?Q:Se)}}else if(S.indexOf(Ot(G),Q)!=Q){var Ee=oe.lastIndexOf(G);Ee>-1&&(oe=oe.slice(0,Ee))}return oe+V}function Tp(S){return S=nt(S),S&&wt.test(S)?S.replace(We,Jl):S}var xp=Br(function(S,T,I){return S+(I?" ":"")+T.toUpperCase()}),ai=Lo("toUpperCase");function ks(S,T,I){return S=nt(S),T=I?o:T,T===o?jl(S)?tu(S):Vl(S):S.match(T)||[]}var qs=He(function(S,T){try{return qt(S,o,T)}catch(I){return Qn(I)?I:new Fe(I)}}),Dp=or(function(S,T){return Gt(T,function(I){I=tr(I),nr(S,I,Kn(S[I],S))}),S});function Ep(S){var T=S==null?0:S.length,I=qe();return S=T?ft(S,function(V){if(typeof V[1]!="function")throw new Ut(c);return[I(V[0]),V[1]]}):[],He(function(V){for(var G=-1;++G<T;){var j=S[G];if(qt(j[0],this,V))return qt(j[1],this,V)}})}function Ap(S){return Ju(Ht(S,v))}function ni(S){return function(){return S}}function Ip(S,T){return S==null||S!==S?T:S}var Pp=Vo(),Mp=Vo(!0);function kt(S){return S}function ii(S){return po(typeof S=="function"?S:Ht(S,v))}function Np(S){return vo(Ht(S,v))}function kp(S,T){return go(S,Ht(T,v))}var qp=He(function(S,T){return function(I){return Qr(I,S,T)}}),Lp=He(function(S,T){return function(I){return Qr(S,I,T)}});function oi(S,T,I){var V=_t(T),G=Aa(T,V);I==null&&!(pt(T)&&(G.length||!V.length))&&(I=T,T=S,S=this,G=Aa(T,_t(T)));var j=!(pt(I)&&"chain"in I)||!!I.chain,K=lr(S);return Gt(G,function(Q){var oe=T[Q];S[Q]=oe,K&&(S.prototype[Q]=function(){var ye=this.__chain__;if(j||ye){var _e=S(this.__wrapped__),Se=_e.__actions__=Pt(this.__actions__);return Se.push({func:oe,args:arguments,thisArg:S}),_e.__chain__=ye,_e}return oe.apply(S,fr([this.value()],arguments))})}),S}function Op(){return Ct._===this&&(Ct._=su),this}function si(){}function Vp(S){return S=Ue(S),He(function(T){return yo(T,S)})}var Rp=Vn(ft),Bp=Vn(Vi),Fp=Vn(un);function Ls(S){return Hn(S)?cn(tr(S)):mc(S)}function Gp(S){return function(T){return S==null?o:Tr(S,T)}}var Up=Bo(),zp=Bo(!0);function li(){return[]}function ui(){return!1}function Hp(){return{}}function Wp(){return""}function jp(){return!0}function Yp(S,T){if(S=Ue(S),S<1||S>J)return[];var I=Z,V=Tt(S,Z);T=qe(T),S-=Z;for(var G=hn(V,T);++I<S;)T(I);return G}function Zp(S){return Ge(S)?ft(S,tr):Vt(S)?[S]:Pt(rs(nt(S)))}function Xp(S){var T=++iu;return nt(S)+T}var Kp=qa(function(S,T){return S+T},0),Jp=Rn("ceil"),Qp=qa(function(S,T){return S/T},1),em=Rn("floor");function tm(S){return S&&S.length?Ea(S,kt,wn):o}function rm(S,T){return S&&S.length?Ea(S,qe(T,2),wn):o}function am(S){return Fi(S,kt)}function nm(S,T){return Fi(S,qe(T,2))}function im(S){return S&&S.length?Ea(S,kt,En):o}function om(S,T){return S&&S.length?Ea(S,qe(T,2),En):o}var sm=qa(function(S,T){return S*T},1),lm=Rn("round"),um=qa(function(S,T){return S-T},0);function cm(S){return S&&S.length?fn(S,kt):0}function dm(S,T){return S&&S.length?fn(S,qe(T,2)):0}return z.after=Nf,z.ary=hs,z.assign=_h,z.assignIn=Ds,z.assignInWith=Ya,z.assignWith=Sh,z.at=Ch,z.before=ps,z.bind=Kn,z.bindAll=Dp,z.bindKey=ms,z.castArray=Hf,z.chain=cs,z.chunk=Qc,z.compact=ed,z.concat=td,z.cond=Ep,z.conforms=Ap,z.constant=ni,z.countBy=cf,z.create=bh,z.curry=vs,z.curryRight=gs,z.debounce=ys,z.defaults=wh,z.defaultsDeep=Th,z.defer=kf,z.delay=qf,z.difference=rd,z.differenceBy=ad,z.differenceWith=nd,z.drop=id,z.dropRight=od,z.dropRightWhile=sd,z.dropWhile=ld,z.fill=ud,z.filter=ff,z.flatMap=mf,z.flatMapDeep=vf,z.flatMapDepth=gf,z.flatten=os,z.flattenDeep=cd,z.flattenDepth=dd,z.flip=Lf,z.flow=Pp,z.flowRight=Mp,z.fromPairs=fd,z.functions=Mh,z.functionsIn=Nh,z.groupBy=yf,z.initial=pd,z.intersection=md,z.intersectionBy=vd,z.intersectionWith=gd,z.invert=qh,z.invertBy=Lh,z.invokeMap=_f,z.iteratee=ii,z.keyBy=Sf,z.keys=_t,z.keysIn=Nt,z.map=Ga,z.mapKeys=Vh,z.mapValues=Rh,z.matches=Np,z.matchesProperty=kp,z.memoize=za,z.merge=Bh,z.mergeWith=Es,z.method=qp,z.methodOf=Lp,z.mixin=oi,z.negate=Ha,z.nthArg=Vp,z.omit=Fh,z.omitBy=Gh,z.once=Of,z.orderBy=Cf,z.over=Rp,z.overArgs=Vf,z.overEvery=Bp,z.overSome=Fp,z.partial=Jn,z.partialRight=$s,z.partition=bf,z.pick=Uh,z.pickBy=As,z.property=Ls,z.propertyOf=Gp,z.pull=Sd,z.pullAll=ls,z.pullAllBy=Cd,z.pullAllWith=bd,z.pullAt=wd,z.range=Up,z.rangeRight=zp,z.rearg=Rf,z.reject=xf,z.remove=Td,z.rest=Bf,z.reverse=Zn,z.sampleSize=Ef,z.set=Hh,z.setWith=Wh,z.shuffle=Af,z.slice=xd,z.sortBy=Mf,z.sortedUniq=Nd,z.sortedUniqBy=kd,z.split=mp,z.spread=Ff,z.tail=qd,z.take=Ld,z.takeRight=Od,z.takeRightWhile=Vd,z.takeWhile=Rd,z.tap=ef,z.throttle=Gf,z.thru=Fa,z.toArray=ws,z.toPairs=Is,z.toPairsIn=Ps,z.toPath=Zp,z.toPlainObject=xs,z.transform=jh,z.unary=Uf,z.union=Bd,z.unionBy=Fd,z.unionWith=Gd,z.uniq=Ud,z.uniqBy=zd,z.uniqWith=Hd,z.unset=Yh,z.unzip=Xn,z.unzipWith=us,z.update=Zh,z.updateWith=Xh,z.values=Ur,z.valuesIn=Kh,z.without=Wd,z.words=ks,z.wrap=zf,z.xor=jd,z.xorBy=Yd,z.xorWith=Zd,z.zip=Xd,z.zipObject=Kd,z.zipObjectDeep=Jd,z.zipWith=Qd,z.entries=Is,z.entriesIn=Ps,z.extend=Ds,z.extendWith=Ya,oi(z,z),z.add=Kp,z.attempt=qs,z.camelCase=tp,z.capitalize=Ms,z.ceil=Jp,z.clamp=Jh,z.clone=Wf,z.cloneDeep=Yf,z.cloneDeepWith=Zf,z.cloneWith=jf,z.conformsTo=Xf,z.deburr=Ns,z.defaultTo=Ip,z.divide=Qp,z.endsWith=rp,z.eq=Kt,z.escape=ap,z.escapeRegExp=np,z.every=df,z.find=hf,z.findIndex=ns,z.findKey=xh,z.findLast=pf,z.findLastIndex=is,z.findLastKey=Dh,z.floor=em,z.forEach=ds,z.forEachRight=fs,z.forIn=Eh,z.forInRight=Ah,z.forOwn=Ih,z.forOwnRight=Ph,z.get=ti,z.gt=Kf,z.gte=Jf,z.has=kh,z.hasIn=ri,z.head=ss,z.identity=kt,z.includes=$f,z.indexOf=hd,z.inRange=Qh,z.invoke=Oh,z.isArguments=Er,z.isArray=Ge,z.isArrayBuffer=Qf,z.isArrayLike=Mt,z.isArrayLikeObject=vt,z.isBoolean=eh,z.isBuffer=$r,z.isDate=th,z.isElement=rh,z.isEmpty=ah,z.isEqual=nh,z.isEqualWith=ih,z.isError=Qn,z.isFinite=oh,z.isFunction=lr,z.isInteger=_s,z.isLength=Wa,z.isMap=Ss,z.isMatch=sh,z.isMatchWith=lh,z.isNaN=uh,z.isNative=ch,z.isNil=fh,z.isNull=dh,z.isNumber=Cs,z.isObject=pt,z.isObjectLike=mt,z.isPlainObject=ia,z.isRegExp=ei,z.isSafeInteger=hh,z.isSet=bs,z.isString=ja,z.isSymbol=Vt,z.isTypedArray=Gr,z.isUndefined=ph,z.isWeakMap=mh,z.isWeakSet=vh,z.join=yd,z.kebabCase=ip,z.last=jt,z.lastIndexOf=$d,z.lowerCase=op,z.lowerFirst=sp,z.lt=gh,z.lte=yh,z.max=tm,z.maxBy=rm,z.mean=am,z.meanBy=nm,z.min=im,z.minBy=om,z.stubArray=li,z.stubFalse=ui,z.stubObject=Hp,z.stubString=Wp,z.stubTrue=jp,z.multiply=sm,z.nth=_d,z.noConflict=Op,z.noop=si,z.now=Ua,z.pad=lp,z.padEnd=up,z.padStart=cp,z.parseInt=dp,z.random=ep,z.reduce=wf,z.reduceRight=Tf,z.repeat=fp,z.replace=hp,z.result=zh,z.round=lm,z.runInContext=ne,z.sample=Df,z.size=If,z.snakeCase=pp,z.some=Pf,z.sortedIndex=Dd,z.sortedIndexBy=Ed,z.sortedIndexOf=Ad,z.sortedLastIndex=Id,z.sortedLastIndexBy=Pd,z.sortedLastIndexOf=Md,z.startCase=vp,z.startsWith=gp,z.subtract=um,z.sum=cm,z.sumBy=dm,z.template=yp,z.times=Yp,z.toFinite=ur,z.toInteger=Ue,z.toLength=Ts,z.toLower=$p,z.toNumber=Yt,z.toSafeInteger=$h,z.toString=nt,z.toUpper=_p,z.trim=Sp,z.trimEnd=Cp,z.trimStart=bp,z.truncate=wp,z.unescape=Tp,z.uniqueId=Xp,z.upperCase=xp,z.upperFirst=ai,z.each=ds,z.eachRight=fs,z.first=ss,oi(z,function(){var S={};return Qt(z,function(T,I){it.call(z.prototype,I)||(S[I]=T)}),S}(),{chain:!1}),z.VERSION=s,Gt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(S){z[S].placeholder=z}),Gt(["drop","take"],function(S,T){Xe.prototype[S]=function(I){I=I===o?1:$t(Ue(I),0);var V=this.__filtered__&&!T?new Xe(this):this.clone();return V.__filtered__?V.__takeCount__=Tt(I,V.__takeCount__):V.__views__.push({size:Tt(I,Z),type:S+(V.__dir__<0?"Right":"")}),V},Xe.prototype[S+"Right"]=function(I){return this.reverse()[S](I).reverse()}}),Gt(["filter","map","takeWhile"],function(S,T){var I=T+1,V=I==q||I==F;Xe.prototype[S]=function(G){var j=this.clone();return j.__iteratees__.push({iteratee:qe(G,3),type:I}),j.__filtered__=j.__filtered__||V,j}}),Gt(["head","last"],function(S,T){var I="take"+(T?"Right":"");Xe.prototype[S]=function(){return this[I](1).value()[0]}}),Gt(["initial","tail"],function(S,T){var I="drop"+(T?"":"Right");Xe.prototype[S]=function(){return this.__filtered__?new Xe(this):this[I](1)}}),Xe.prototype.compact=function(){return this.filter(kt)},Xe.prototype.find=function(S){return this.filter(S).head()},Xe.prototype.findLast=function(S){return this.reverse().find(S)},Xe.prototype.invokeMap=He(function(S,T){return typeof S=="function"?new Xe(this):this.map(function(I){return Qr(I,S,T)})}),Xe.prototype.reject=function(S){return this.filter(Ha(qe(S)))},Xe.prototype.slice=function(S,T){S=Ue(S);var I=this;return I.__filtered__&&(S>0||T<0)?new Xe(I):(S<0?I=I.takeRight(-S):S&&(I=I.drop(S)),T!==o&&(T=Ue(T),I=T<0?I.dropRight(-T):I.take(T-S)),I)},Xe.prototype.takeRightWhile=function(S){return this.reverse().takeWhile(S).reverse()},Xe.prototype.toArray=function(){return this.take(Z)},Qt(Xe.prototype,function(S,T){var I=/^(?:filter|find|map|reject)|While$/.test(T),V=/^(?:head|last)$/.test(T),G=z[V?"take"+(T=="last"?"Right":""):T],j=V||/^find/.test(T);!G||(z.prototype[T]=function(){var K=this.__wrapped__,Q=V?[1]:arguments,oe=K instanceof Xe,ye=Q[0],_e=oe||Ge(K),Se=function(je){var Je=G.apply(z,fr([je],Q));return V&&Ee?Je[0]:Je};_e&&I&&typeof ye=="function"&&ye.length!=1&&(oe=_e=!1);var Ee=this.__chain__,Me=!!this.__actions__.length,Le=j&&!Ee,ze=oe&&!Me;if(!j&&_e){K=ze?K:new Xe(this);var Oe=S.apply(K,Q);return Oe.__actions__.push({func:Fa,args:[Se],thisArg:o}),new zt(Oe,Ee)}return Le&&ze?S.apply(this,Q):(Oe=this.thru(Se),Le?V?Oe.value()[0]:Oe.value():Oe)})}),Gt(["pop","push","shift","sort","splice","unshift"],function(S){var T=fa[S],I=/^(?:push|sort|unshift)$/.test(S)?"tap":"thru",V=/^(?:pop|shift)$/.test(S);z.prototype[S]=function(){var G=arguments;if(V&&!this.__chain__){var j=this.value();return T.apply(Ge(j)?j:[],G)}return this[I](function(K){return T.apply(Ge(K)?K:[],G)})}}),Qt(Xe.prototype,function(S,T){var I=z[T];if(I){var V=I.name+"";it.call(Or,V)||(Or[V]=[]),Or[V].push({name:T,func:I})}}),Or[ka(o,b).name]=[{name:"wrapper",func:o}],Xe.prototype.clone=bu,Xe.prototype.reverse=wu,Xe.prototype.value=Tu,z.prototype.at=tf,z.prototype.chain=rf,z.prototype.commit=af,z.prototype.next=nf,z.prototype.plant=sf,z.prototype.reverse=lf,z.prototype.toJSON=z.prototype.valueOf=z.prototype.value=uf,z.prototype.first=z.prototype.head,Wr&&(z.prototype[Wr]=of),z},kr=ru();_r?((_r.exports=kr)._=kr,an._=kr):Ct._=kr}).call(commonjsGlobal)})(lodash$1,lodash$1.exports);const Setting={info:{},appID:"app",titleSuffix:"Admin Plus",routerMode:"history",showProgressBar:!0,cookiesExpires:1,i18n:{default:"zh-CN",auto:!1,refresh:!1},lodop:{name:"\u5357\u4EAC\u6469\u8D6B\u4FE1\u606F\u6280\u672F\u6709\u9650\u516C\u53F8",key:"58C4DF8932E17DEBE409D1E7F683CAFE"},menuSideWidth:256,headerHeight:64,menuSideCollapseWidth:80,layout:{siderTheme:"dark",headerTheme:"light",headerStick:!1,tabs:!1,showTabsIcon:!0,tabsFix:!0,tabsReload:!1,tabsOrder:!0,siderFix:!0,headerFix:!0,headerHide:!0,headerMenu:!1,menuAccordion:!0,showSiderCollapse:!0,menuCollapse:!1,menuSiderReload:!1,menuHeaderReload:!1,menuFilter:!0,showCollapseMenuTitle:!1,showReload:!1,showSearch:!1,showNotice:!1,showFullscreen:!0,showMobileLogo:!0,showBreadcrumb:!0,showBreadcrumbIcon:!1,showLog:!1,showI18n:!1,enableSetting:!1,logoutConfirm:!0,autoFixRatio:!0,maskClosable:!0,draggable:!0,alertStyle:"SweetAlert",filterWidth:125,pageSize:10},page:{opened:[],loadOpenedTabs:!0},waterMark:{show:!1,text:"MOOHO",options:{}},sameRouteForceUpdate:!1};let localSetting=window.setting;localSetting&&(lodash$1.exports.defaultsDeep(localSetting,Setting),lodash$1.exports.assign(Setting,localSetting));const cookies$2={};cookies$2.set=function(a="default",r="",o={}){let s={};Setting.cookiesExpires!==0&&(s.expires=Setting.cookiesExpires),Object.assign(s,o),api.set(`admin-plus-${Setting.appID}-${a}`,r,s)},cookies$2.get=function(a="default"){return api.get(`admin-plus-${Setting.appID}-${a}`)},cookies$2.getAll=function(){return api.get()},cookies$2.remove=function(a="default"){return api.remove(`admin-plus-${Setting.appID}-${a}`)};var isPromise$4={exports:{}};isPromise$4.exports=isPromise$3,isPromise$4.exports.default=isPromise$3;function isPromise$3(a){return!!a&&(typeof a=="object"||typeof a=="function")&&typeof a.then=="function"}var lodash=lodash$1.exports,isPromise$2=isPromise$4.exports,main=function(a){if(typeof a!="object")throw new Error("An adapter must be provided, see https://github.com/typicode/lowdb/#usage");var r=lodash.runInContext(),o=r.chain({});r.prototype.write=r.wrap(r.prototype.value,function(l){var u=l.apply(this);return o.write(u)});function s(l){return o.__wrapped__=l,o}return o._=r,o.read=function(){var l=a.read();return isPromise$2(l)?l.then(s):s(l)},o.write=function(l){var u=a.write(o.getState());return isPromise$2(u)?u.then(function(){return l}):l},o.getState=function(){return o.__wrapped__},o.setState=function(l){return s(l)},o.read()},_stringify=function(r){return JSON.stringify(r,null,2)};function _classCallCheck$1(a,r){if(!(a instanceof r))throw new TypeError("Cannot call a class as a function")}var stringify$1=_stringify,Base$1=function a(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=o.defaultValue,l=s===void 0?{}:s,u=o.serialize,c=u===void 0?stringify$1:u,d=o.deserialize,f=d===void 0?JSON.parse:d;_classCallCheck$1(this,a),this.source=r,this.defaultValue=l,this.serialize=c,this.deserialize=f},Base_1=Base$1,_createClass=function(){function a(r,o){for(var s=0;s<o.length;s++){var l=o[s];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(r,l.key,l)}}return function(r,o,s){return o&&a(r.prototype,o),s&&a(r,s),r}}();function _classCallCheck(a,r){if(!(a instanceof r))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(a,r){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:a}function _inherits(a,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);a.prototype=Object.create(r&&r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(a,r):a.__proto__=r)}var Base=Base_1,LocalStorage=function(a){_inherits(r,a);function r(){return _classCallCheck(this,r),_possibleConstructorReturn(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return _createClass(r,[{key:"read",value:function(){var s=localStorage.getItem(this.source);return s?this.deserialize(s):(localStorage.setItem(this.source,this.serialize(this.defaultValue)),this.defaultValue)}},{key:"write",value:function(s){localStorage.setItem(this.source,this.serialize(s))}}]),r}(Base),LocalStorage_1=LocalStorage;const adapter=new LocalStorage_1(`admin-plus-${Setting.appID}`),db$1=main(adapter);db$1.defaults({sys:{},database:{}}).write();const util$8={cookies:cookies$2,db:db$1};/*!
|
|
31
|
+
}`;var ze=qs(function(){return at(j,Me+"return "+Se).apply(o,K)});if(ze.source=Se,Qn(ze))throw ze;return ze}function $p(S){return nt(S).toLowerCase()}function _p(S){return nt(S).toUpperCase()}function Sp(S,T,I){if(S=nt(S),S&&(I||T===o))return Ui(S);if(!S||!(T=Ot(T)))return S;var V=Zt(S),G=Zt(T),j=zi(V,G),K=Hi(V,G)+1;return yr(V,j,K).join("")}function Cp(S,T,I){if(S=nt(S),S&&(I||T===o))return S.slice(0,ji(S)+1);if(!S||!(T=Ot(T)))return S;var V=Zt(S),G=Hi(V,Zt(T))+1;return yr(V,0,G).join("")}function bp(S,T,I){if(S=nt(S),S&&(I||T===o))return S.replace(Ka,"");if(!S||!(T=Ot(T)))return S;var V=Zt(S),G=zi(V,Zt(T));return yr(V,G).join("")}function wp(S,T){var I=M,V=R;if(pt(T)){var G="separator"in T?T.separator:G;I="length"in T?Ue(T.length):I,V="omission"in T?Ot(T.omission):V}S=nt(S);var j=S.length;if(Mr(S)){var K=Zt(S);j=K.length}if(I>=j)return S;var Q=I-Nr(V);if(Q<1)return V;var oe=K?yr(K,0,Q).join(""):S.slice(0,Q);if(G===o)return oe+V;if(K&&(Q+=oe.length-Q),ei(G)){if(S.slice(Q).search(G)){var ye,_e=oe;for(G.global||(G=vn(G.source,nt(di.exec(G))+"g")),G.lastIndex=0;ye=G.exec(_e);)var Se=ye.index;oe=oe.slice(0,Se===o?Q:Se)}}else if(S.indexOf(Ot(G),Q)!=Q){var Ee=oe.lastIndexOf(G);Ee>-1&&(oe=oe.slice(0,Ee))}return oe+V}function Tp(S){return S=nt(S),S&&wt.test(S)?S.replace(We,Jl):S}var xp=Br(function(S,T,I){return S+(I?" ":"")+T.toUpperCase()}),ai=Lo("toUpperCase");function ks(S,T,I){return S=nt(S),T=I?o:T,T===o?jl(S)?tu(S):Vl(S):S.match(T)||[]}var qs=He(function(S,T){try{return qt(S,o,T)}catch(I){return Qn(I)?I:new Fe(I)}}),Dp=or(function(S,T){return Gt(T,function(I){I=tr(I),nr(S,I,Kn(S[I],S))}),S});function Ep(S){var T=S==null?0:S.length,I=qe();return S=T?ft(S,function(V){if(typeof V[1]!="function")throw new Ut(c);return[I(V[0]),V[1]]}):[],He(function(V){for(var G=-1;++G<T;){var j=S[G];if(qt(j[0],this,V))return qt(j[1],this,V)}})}function Ap(S){return Ju(Ht(S,v))}function ni(S){return function(){return S}}function Ip(S,T){return S==null||S!==S?T:S}var Pp=Vo(),Mp=Vo(!0);function kt(S){return S}function ii(S){return po(typeof S=="function"?S:Ht(S,v))}function Np(S){return vo(Ht(S,v))}function kp(S,T){return go(S,Ht(T,v))}var qp=He(function(S,T){return function(I){return Qr(I,S,T)}}),Lp=He(function(S,T){return function(I){return Qr(S,I,T)}});function oi(S,T,I){var V=_t(T),G=Aa(T,V);I==null&&!(pt(T)&&(G.length||!V.length))&&(I=T,T=S,S=this,G=Aa(T,_t(T)));var j=!(pt(I)&&"chain"in I)||!!I.chain,K=lr(S);return Gt(G,function(Q){var oe=T[Q];S[Q]=oe,K&&(S.prototype[Q]=function(){var ye=this.__chain__;if(j||ye){var _e=S(this.__wrapped__),Se=_e.__actions__=Pt(this.__actions__);return Se.push({func:oe,args:arguments,thisArg:S}),_e.__chain__=ye,_e}return oe.apply(S,fr([this.value()],arguments))})}),S}function Op(){return Ct._===this&&(Ct._=su),this}function si(){}function Vp(S){return S=Ue(S),He(function(T){return yo(T,S)})}var Rp=Vn(ft),Bp=Vn(Vi),Fp=Vn(un);function Ls(S){return Hn(S)?cn(tr(S)):mc(S)}function Gp(S){return function(T){return S==null?o:Tr(S,T)}}var Up=Bo(),zp=Bo(!0);function li(){return[]}function ui(){return!1}function Hp(){return{}}function Wp(){return""}function jp(){return!0}function Yp(S,T){if(S=Ue(S),S<1||S>J)return[];var I=Z,V=Tt(S,Z);T=qe(T),S-=Z;for(var G=hn(V,T);++I<S;)T(I);return G}function Zp(S){return Ge(S)?ft(S,tr):Vt(S)?[S]:Pt(rs(nt(S)))}function Xp(S){var T=++iu;return nt(S)+T}var Kp=qa(function(S,T){return S+T},0),Jp=Rn("ceil"),Qp=qa(function(S,T){return S/T},1),em=Rn("floor");function tm(S){return S&&S.length?Ea(S,kt,wn):o}function rm(S,T){return S&&S.length?Ea(S,qe(T,2),wn):o}function am(S){return Fi(S,kt)}function nm(S,T){return Fi(S,qe(T,2))}function im(S){return S&&S.length?Ea(S,kt,En):o}function om(S,T){return S&&S.length?Ea(S,qe(T,2),En):o}var sm=qa(function(S,T){return S*T},1),lm=Rn("round"),um=qa(function(S,T){return S-T},0);function cm(S){return S&&S.length?fn(S,kt):0}function dm(S,T){return S&&S.length?fn(S,qe(T,2)):0}return z.after=Nf,z.ary=hs,z.assign=_h,z.assignIn=Ds,z.assignInWith=Ya,z.assignWith=Sh,z.at=Ch,z.before=ps,z.bind=Kn,z.bindAll=Dp,z.bindKey=ms,z.castArray=Hf,z.chain=cs,z.chunk=Qc,z.compact=ed,z.concat=td,z.cond=Ep,z.conforms=Ap,z.constant=ni,z.countBy=cf,z.create=bh,z.curry=vs,z.curryRight=gs,z.debounce=ys,z.defaults=wh,z.defaultsDeep=Th,z.defer=kf,z.delay=qf,z.difference=rd,z.differenceBy=ad,z.differenceWith=nd,z.drop=id,z.dropRight=od,z.dropRightWhile=sd,z.dropWhile=ld,z.fill=ud,z.filter=ff,z.flatMap=mf,z.flatMapDeep=vf,z.flatMapDepth=gf,z.flatten=os,z.flattenDeep=cd,z.flattenDepth=dd,z.flip=Lf,z.flow=Pp,z.flowRight=Mp,z.fromPairs=fd,z.functions=Mh,z.functionsIn=Nh,z.groupBy=yf,z.initial=pd,z.intersection=md,z.intersectionBy=vd,z.intersectionWith=gd,z.invert=qh,z.invertBy=Lh,z.invokeMap=_f,z.iteratee=ii,z.keyBy=Sf,z.keys=_t,z.keysIn=Nt,z.map=Ga,z.mapKeys=Vh,z.mapValues=Rh,z.matches=Np,z.matchesProperty=kp,z.memoize=za,z.merge=Bh,z.mergeWith=Es,z.method=qp,z.methodOf=Lp,z.mixin=oi,z.negate=Ha,z.nthArg=Vp,z.omit=Fh,z.omitBy=Gh,z.once=Of,z.orderBy=Cf,z.over=Rp,z.overArgs=Vf,z.overEvery=Bp,z.overSome=Fp,z.partial=Jn,z.partialRight=$s,z.partition=bf,z.pick=Uh,z.pickBy=As,z.property=Ls,z.propertyOf=Gp,z.pull=Sd,z.pullAll=ls,z.pullAllBy=Cd,z.pullAllWith=bd,z.pullAt=wd,z.range=Up,z.rangeRight=zp,z.rearg=Rf,z.reject=xf,z.remove=Td,z.rest=Bf,z.reverse=Zn,z.sampleSize=Ef,z.set=Hh,z.setWith=Wh,z.shuffle=Af,z.slice=xd,z.sortBy=Mf,z.sortedUniq=Nd,z.sortedUniqBy=kd,z.split=mp,z.spread=Ff,z.tail=qd,z.take=Ld,z.takeRight=Od,z.takeRightWhile=Vd,z.takeWhile=Rd,z.tap=ef,z.throttle=Gf,z.thru=Fa,z.toArray=ws,z.toPairs=Is,z.toPairsIn=Ps,z.toPath=Zp,z.toPlainObject=xs,z.transform=jh,z.unary=Uf,z.union=Bd,z.unionBy=Fd,z.unionWith=Gd,z.uniq=Ud,z.uniqBy=zd,z.uniqWith=Hd,z.unset=Yh,z.unzip=Xn,z.unzipWith=us,z.update=Zh,z.updateWith=Xh,z.values=Ur,z.valuesIn=Kh,z.without=Wd,z.words=ks,z.wrap=zf,z.xor=jd,z.xorBy=Yd,z.xorWith=Zd,z.zip=Xd,z.zipObject=Kd,z.zipObjectDeep=Jd,z.zipWith=Qd,z.entries=Is,z.entriesIn=Ps,z.extend=Ds,z.extendWith=Ya,oi(z,z),z.add=Kp,z.attempt=qs,z.camelCase=tp,z.capitalize=Ms,z.ceil=Jp,z.clamp=Jh,z.clone=Wf,z.cloneDeep=Yf,z.cloneDeepWith=Zf,z.cloneWith=jf,z.conformsTo=Xf,z.deburr=Ns,z.defaultTo=Ip,z.divide=Qp,z.endsWith=rp,z.eq=Kt,z.escape=ap,z.escapeRegExp=np,z.every=df,z.find=hf,z.findIndex=ns,z.findKey=xh,z.findLast=pf,z.findLastIndex=is,z.findLastKey=Dh,z.floor=em,z.forEach=ds,z.forEachRight=fs,z.forIn=Eh,z.forInRight=Ah,z.forOwn=Ih,z.forOwnRight=Ph,z.get=ti,z.gt=Kf,z.gte=Jf,z.has=kh,z.hasIn=ri,z.head=ss,z.identity=kt,z.includes=$f,z.indexOf=hd,z.inRange=Qh,z.invoke=Oh,z.isArguments=Er,z.isArray=Ge,z.isArrayBuffer=Qf,z.isArrayLike=Mt,z.isArrayLikeObject=vt,z.isBoolean=eh,z.isBuffer=$r,z.isDate=th,z.isElement=rh,z.isEmpty=ah,z.isEqual=nh,z.isEqualWith=ih,z.isError=Qn,z.isFinite=oh,z.isFunction=lr,z.isInteger=_s,z.isLength=Wa,z.isMap=Ss,z.isMatch=sh,z.isMatchWith=lh,z.isNaN=uh,z.isNative=ch,z.isNil=fh,z.isNull=dh,z.isNumber=Cs,z.isObject=pt,z.isObjectLike=mt,z.isPlainObject=ia,z.isRegExp=ei,z.isSafeInteger=hh,z.isSet=bs,z.isString=ja,z.isSymbol=Vt,z.isTypedArray=Gr,z.isUndefined=ph,z.isWeakMap=mh,z.isWeakSet=vh,z.join=yd,z.kebabCase=ip,z.last=jt,z.lastIndexOf=$d,z.lowerCase=op,z.lowerFirst=sp,z.lt=gh,z.lte=yh,z.max=tm,z.maxBy=rm,z.mean=am,z.meanBy=nm,z.min=im,z.minBy=om,z.stubArray=li,z.stubFalse=ui,z.stubObject=Hp,z.stubString=Wp,z.stubTrue=jp,z.multiply=sm,z.nth=_d,z.noConflict=Op,z.noop=si,z.now=Ua,z.pad=lp,z.padEnd=up,z.padStart=cp,z.parseInt=dp,z.random=ep,z.reduce=wf,z.reduceRight=Tf,z.repeat=fp,z.replace=hp,z.result=zh,z.round=lm,z.runInContext=ne,z.sample=Df,z.size=If,z.snakeCase=pp,z.some=Pf,z.sortedIndex=Dd,z.sortedIndexBy=Ed,z.sortedIndexOf=Ad,z.sortedLastIndex=Id,z.sortedLastIndexBy=Pd,z.sortedLastIndexOf=Md,z.startCase=vp,z.startsWith=gp,z.subtract=um,z.sum=cm,z.sumBy=dm,z.template=yp,z.times=Yp,z.toFinite=ur,z.toInteger=Ue,z.toLength=Ts,z.toLower=$p,z.toNumber=Yt,z.toSafeInteger=$h,z.toString=nt,z.toUpper=_p,z.trim=Sp,z.trimEnd=Cp,z.trimStart=bp,z.truncate=wp,z.unescape=Tp,z.uniqueId=Xp,z.upperCase=xp,z.upperFirst=ai,z.each=ds,z.eachRight=fs,z.first=ss,oi(z,function(){var S={};return Qt(z,function(T,I){it.call(z.prototype,I)||(S[I]=T)}),S}(),{chain:!1}),z.VERSION=s,Gt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(S){z[S].placeholder=z}),Gt(["drop","take"],function(S,T){Xe.prototype[S]=function(I){I=I===o?1:$t(Ue(I),0);var V=this.__filtered__&&!T?new Xe(this):this.clone();return V.__filtered__?V.__takeCount__=Tt(I,V.__takeCount__):V.__views__.push({size:Tt(I,Z),type:S+(V.__dir__<0?"Right":"")}),V},Xe.prototype[S+"Right"]=function(I){return this.reverse()[S](I).reverse()}}),Gt(["filter","map","takeWhile"],function(S,T){var I=T+1,V=I==q||I==F;Xe.prototype[S]=function(G){var j=this.clone();return j.__iteratees__.push({iteratee:qe(G,3),type:I}),j.__filtered__=j.__filtered__||V,j}}),Gt(["head","last"],function(S,T){var I="take"+(T?"Right":"");Xe.prototype[S]=function(){return this[I](1).value()[0]}}),Gt(["initial","tail"],function(S,T){var I="drop"+(T?"":"Right");Xe.prototype[S]=function(){return this.__filtered__?new Xe(this):this[I](1)}}),Xe.prototype.compact=function(){return this.filter(kt)},Xe.prototype.find=function(S){return this.filter(S).head()},Xe.prototype.findLast=function(S){return this.reverse().find(S)},Xe.prototype.invokeMap=He(function(S,T){return typeof S=="function"?new Xe(this):this.map(function(I){return Qr(I,S,T)})}),Xe.prototype.reject=function(S){return this.filter(Ha(qe(S)))},Xe.prototype.slice=function(S,T){S=Ue(S);var I=this;return I.__filtered__&&(S>0||T<0)?new Xe(I):(S<0?I=I.takeRight(-S):S&&(I=I.drop(S)),T!==o&&(T=Ue(T),I=T<0?I.dropRight(-T):I.take(T-S)),I)},Xe.prototype.takeRightWhile=function(S){return this.reverse().takeWhile(S).reverse()},Xe.prototype.toArray=function(){return this.take(Z)},Qt(Xe.prototype,function(S,T){var I=/^(?:filter|find|map|reject)|While$/.test(T),V=/^(?:head|last)$/.test(T),G=z[V?"take"+(T=="last"?"Right":""):T],j=V||/^find/.test(T);!G||(z.prototype[T]=function(){var K=this.__wrapped__,Q=V?[1]:arguments,oe=K instanceof Xe,ye=Q[0],_e=oe||Ge(K),Se=function(je){var Je=G.apply(z,fr([je],Q));return V&&Ee?Je[0]:Je};_e&&I&&typeof ye=="function"&&ye.length!=1&&(oe=_e=!1);var Ee=this.__chain__,Me=!!this.__actions__.length,Le=j&&!Ee,ze=oe&&!Me;if(!j&&_e){K=ze?K:new Xe(this);var Oe=S.apply(K,Q);return Oe.__actions__.push({func:Fa,args:[Se],thisArg:o}),new zt(Oe,Ee)}return Le&&ze?S.apply(this,Q):(Oe=this.thru(Se),Le?V?Oe.value()[0]:Oe.value():Oe)})}),Gt(["pop","push","shift","sort","splice","unshift"],function(S){var T=fa[S],I=/^(?:push|sort|unshift)$/.test(S)?"tap":"thru",V=/^(?:pop|shift)$/.test(S);z.prototype[S]=function(){var G=arguments;if(V&&!this.__chain__){var j=this.value();return T.apply(Ge(j)?j:[],G)}return this[I](function(K){return T.apply(Ge(K)?K:[],G)})}}),Qt(Xe.prototype,function(S,T){var I=z[T];if(I){var V=I.name+"";it.call(Or,V)||(Or[V]=[]),Or[V].push({name:T,func:I})}}),Or[ka(o,b).name]=[{name:"wrapper",func:o}],Xe.prototype.clone=bu,Xe.prototype.reverse=wu,Xe.prototype.value=Tu,z.prototype.at=tf,z.prototype.chain=rf,z.prototype.commit=af,z.prototype.next=nf,z.prototype.plant=sf,z.prototype.reverse=lf,z.prototype.toJSON=z.prototype.valueOf=z.prototype.value=uf,z.prototype.first=z.prototype.head,Wr&&(z.prototype[Wr]=of),z},kr=ru();_r?((_r.exports=kr)._=kr,an._=kr):Ct._=kr}).call(commonjsGlobal)})(lodash$1,lodash$1.exports);const Setting={info:{},appID:"app",titleSuffix:"Admin Plus",routerMode:"history",showProgressBar:!0,cookiesExpires:1,i18n:{default:"zh-CN",auto:!1,refresh:!1},lodop:{name:"\u5357\u4EAC\u6469\u8D6B\u4FE1\u606F\u6280\u672F\u6709\u9650\u516C\u53F8",key:"58C4DF8932E17DEBE409D1E7F683CAFE"},menuSideWidth:256,headerHeight:64,menuSideCollapseWidth:80,layout:{siderTheme:"dark",headerTheme:"light",headerStick:!1,tabs:!1,showTabsIcon:!0,tabsFix:!0,tabsReload:!1,tabsOrder:!0,siderFix:!0,headerFix:!0,headerHide:!0,headerMenu:!1,menuAccordion:!0,showSiderCollapse:!0,menuCollapse:!1,menuSiderReload:!1,menuHeaderReload:!1,menuFilter:!1,showCollapseMenuTitle:!1,showReload:!1,showSearch:!1,showNotice:!1,showFullscreen:!0,showMobileLogo:!0,showBreadcrumb:!0,showBreadcrumbIcon:!1,showLog:!1,showI18n:!1,enableSetting:!1,logoutConfirm:!0,autoFixRatio:!0,maskClosable:!0,draggable:!0,alertStyle:"SweetAlert",filterWidth:125,pageSize:10},page:{opened:[],loadOpenedTabs:!0},waterMark:{show:!1,text:"MOOHO",options:{}},sameRouteForceUpdate:!1};let localSetting=window.setting;localSetting&&(lodash$1.exports.defaultsDeep(localSetting,Setting),lodash$1.exports.assign(Setting,localSetting));const cookies$2={};cookies$2.set=function(a="default",r="",o={}){let s={};Setting.cookiesExpires!==0&&(s.expires=Setting.cookiesExpires),Object.assign(s,o),api.set(`admin-plus-${Setting.appID}-${a}`,r,s)},cookies$2.get=function(a="default"){return api.get(`admin-plus-${Setting.appID}-${a}`)},cookies$2.getAll=function(){return api.get()},cookies$2.remove=function(a="default"){return api.remove(`admin-plus-${Setting.appID}-${a}`)};var isPromise$4={exports:{}};isPromise$4.exports=isPromise$3,isPromise$4.exports.default=isPromise$3;function isPromise$3(a){return!!a&&(typeof a=="object"||typeof a=="function")&&typeof a.then=="function"}var lodash=lodash$1.exports,isPromise$2=isPromise$4.exports,main=function(a){if(typeof a!="object")throw new Error("An adapter must be provided, see https://github.com/typicode/lowdb/#usage");var r=lodash.runInContext(),o=r.chain({});r.prototype.write=r.wrap(r.prototype.value,function(l){var u=l.apply(this);return o.write(u)});function s(l){return o.__wrapped__=l,o}return o._=r,o.read=function(){var l=a.read();return isPromise$2(l)?l.then(s):s(l)},o.write=function(l){var u=a.write(o.getState());return isPromise$2(u)?u.then(function(){return l}):l},o.getState=function(){return o.__wrapped__},o.setState=function(l){return s(l)},o.read()},_stringify=function(r){return JSON.stringify(r,null,2)};function _classCallCheck$1(a,r){if(!(a instanceof r))throw new TypeError("Cannot call a class as a function")}var stringify$1=_stringify,Base$1=function a(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=o.defaultValue,l=s===void 0?{}:s,u=o.serialize,c=u===void 0?stringify$1:u,d=o.deserialize,f=d===void 0?JSON.parse:d;_classCallCheck$1(this,a),this.source=r,this.defaultValue=l,this.serialize=c,this.deserialize=f},Base_1=Base$1,_createClass=function(){function a(r,o){for(var s=0;s<o.length;s++){var l=o[s];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(r,l.key,l)}}return function(r,o,s){return o&&a(r.prototype,o),s&&a(r,s),r}}();function _classCallCheck(a,r){if(!(a instanceof r))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(a,r){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:a}function _inherits(a,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);a.prototype=Object.create(r&&r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(a,r):a.__proto__=r)}var Base=Base_1,LocalStorage=function(a){_inherits(r,a);function r(){return _classCallCheck(this,r),_possibleConstructorReturn(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return _createClass(r,[{key:"read",value:function(){var s=localStorage.getItem(this.source);return s?this.deserialize(s):(localStorage.setItem(this.source,this.serialize(this.defaultValue)),this.defaultValue)}},{key:"write",value:function(s){localStorage.setItem(this.source,this.serialize(s))}}]),r}(Base),LocalStorage_1=LocalStorage;const adapter=new LocalStorage_1(`admin-plus-${Setting.appID}`),db$1=main(adapter);db$1.defaults({sys:{},database:{}}).write();const util$8={cookies:cookies$2,db:db$1};/*!
|
|
32
32
|
* vue-router v4.2.0
|
|
33
33
|
* (c) 2023 Eduardo San Martin Morote
|
|
34
34
|
* @license MIT
|
package/package.json
CHANGED