shu-c-view
Version:
rollup 打包vue组件库框架
7 lines (6 loc) • 14.5 kB
JavaScript
/*!
* shu-c-view v1.2.37
* (c) 2022-09-22
* @license MIT
*/
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("lodash/set"),e=require("lodash/isArray"),r=require("lodash/isEmpty"),n=require("lodash/isNil");function o(t){return t&&"object"==typeof t&&"default"in t?t.default:t}var i=o(t),c=o(e),a=o(r),u=o(n),l="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},f=function(t){try{return!!t()}catch(t){return!0}},s=!f((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),p={},g=function(t){return t&&t.Math==Math&&t},v=g("object"==typeof globalThis&&globalThis)||g("object"==typeof window&&window)||g("object"==typeof self&&self)||g("object"==typeof l&&l)||function(){return this}()||Function("return this")(),h=function(t){return"object"==typeof t?null!==t:"function"==typeof t},y=h,d=v.document,b=y(d)&&y(d.createElement),x=function(t){return b?d.createElement(t):{}},E=!s&&!f((function(){return 7!=Object.defineProperty(x("div"),"a",{get:function(){return 7}}).a})),m=h,S=function(t){if(!m(t))throw TypeError(String(t)+" is not an object");return t},_=h,O=function(t,e){if(!_(t))return t;var r,n;if(e&&"function"==typeof(r=t.toString)&&!_(n=r.call(t)))return n;if("function"==typeof(r=t.valueOf)&&!_(n=r.call(t)))return n;if(!e&&"function"==typeof(r=t.toString)&&!_(n=r.call(t)))return n;throw TypeError("Can't convert object to primitive value")},w=s,R=E,P=S,j=O,T=Object.defineProperty;p.f=w?T:function(t,e,r){if(P(t),e=j(e,!0),P(r),R)try{return T(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(t[e]=r.value),t};var I=s,A=p.f,C=Function.prototype,N=C.toString,$=/^\s*function ([^ (]*)/;I&&!("name"in C)&&A(C,"name",{configurable:!0,get:function(){try{return N.call(this).match($)[1]}catch(t){return""}}});var M={},U={},D={}.propertyIsEnumerable,k=Object.getOwnPropertyDescriptor,L=k&&!D.call({1:2},1);U.f=L?function(t){var e=k(this,t);return!!e&&e.enumerable}:D;var F=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},B={}.toString,q=function(t){return B.call(t).slice(8,-1)},K=q,G="".split,Y=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},z=f((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==K(t)?G.call(t,""):Object(t)}:Object,V=Y,W=function(t){return z(V(t))},X={}.hasOwnProperty,H=function(t,e){return X.call(t,e)},J=s,Q=U,Z=F,tt=W,et=O,rt=H,nt=E,ot=Object.getOwnPropertyDescriptor;M.f=J?ot:function(t,e){if(t=tt(t),e=et(e,!0),nt)try{return ot(t,e)}catch(t){}if(rt(t,e))return Z(!Q.f.call(t,e),t[e])};var it=p,ct=F,at=s?function(t,e,r){return it.f(t,e,ct(1,r))}:function(t,e,r){return t[e]=r,t},ut={exports:{}},lt=v,ft=at,st=function(t,e){try{ft(lt,t,e)}catch(r){lt[t]=e}return e},pt=st,gt=v["__core-js_shared__"]||pt("__core-js_shared__",{}),vt=gt,ht=Function.toString;"function"!=typeof vt.inspectSource&&(vt.inspectSource=function(t){return ht.call(t)});var yt=vt.inspectSource,dt=yt,bt=v.WeakMap,xt="function"==typeof bt&&/native code/.test(dt(bt)),Et={exports:{}},mt=gt;(Et.exports=function(t,e){return mt[t]||(mt[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.9.1",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"});var St,_t,Ot,wt=0,Rt=Math.random(),Pt=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++wt+Rt).toString(36)},jt=Et.exports,Tt=Pt,It=jt("keys"),At={},Ct=xt,Nt=h,$t=at,Mt=H,Ut=gt,Dt=function(t){return It[t]||(It[t]=Tt(t))},kt=At,Lt=v.WeakMap;if(Ct){var Ft=Ut.state||(Ut.state=new Lt),Bt=Ft.get,qt=Ft.has,Kt=Ft.set;St=function(t,e){return e.facade=t,Kt.call(Ft,t,e),e},_t=function(t){return Bt.call(Ft,t)||{}},Ot=function(t){return qt.call(Ft,t)}}else{var Gt=Dt("state");kt[Gt]=!0,St=function(t,e){return e.facade=t,$t(t,Gt,e),e},_t=function(t){return Mt(t,Gt)?t[Gt]:{}},Ot=function(t){return Mt(t,Gt)}}var Yt={set:St,get:_t,has:Ot,enforce:function(t){return Ot(t)?_t(t):St(t,{})},getterFor:function(t){return function(e){var r;if(!Nt(e)||(r=_t(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return r}}},zt=v,Vt=at,Wt=H,Xt=st,Ht=yt,Jt=Yt.get,Qt=Yt.enforce,Zt=String(String).split("String");(ut.exports=function(t,e,r,n){var o,i=!!n&&!!n.unsafe,c=!!n&&!!n.enumerable,a=!!n&&!!n.noTargetGet;"function"==typeof r&&("string"!=typeof e||Wt(r,"name")||Vt(r,"name",e),(o=Qt(r)).source||(o.source=Zt.join("string"==typeof e?e:""))),t!==zt?(i?!a&&t[e]&&(c=!0):delete t[e],c?t[e]=r:Vt(t,e,r)):c?t[e]=r:Xt(e,r)})(Function.prototype,"toString",(function(){return"function"==typeof this&&Jt(this).source||Ht(this)}));var te=v,ee=v,re=function(t){return"function"==typeof t?t:void 0},ne=function(t,e){return arguments.length<2?re(te[t])||re(ee[t]):te[t]&&te[t][e]||ee[t]&&ee[t][e]},oe={},ie=Math.ceil,ce=Math.floor,ae=function(t){return isNaN(t=+t)?0:(t>0?ce:ie)(t)},ue=ae,le=Math.min,fe=function(t){return t>0?le(ue(t),9007199254740991):0},se=ae,pe=Math.max,ge=Math.min,ve=W,he=fe,ye=function(t,e){var r=se(t);return r<0?pe(r+e,0):ge(r,e)},de=function(t){return function(e,r,n){var o,i=ve(e),c=he(i.length),a=ye(n,c);if(t&&r!=r){for(;c>a;)if((o=i[a++])!=o)return!0}else for(;c>a;a++)if((t||a in i)&&i[a]===r)return t||a||0;return!t&&-1}},be={includes:de(!0),indexOf:de(!1)},xe=H,Ee=W,me=be.indexOf,Se=At,_e=function(t,e){var r,n=Ee(t),o=0,i=[];for(r in n)!xe(Se,r)&&xe(n,r)&&i.push(r);for(;e.length>o;)xe(n,r=e[o++])&&(~me(i,r)||i.push(r));return i},Oe=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"].concat("length","prototype");oe.f=Object.getOwnPropertyNames||function(t){return _e(t,Oe)};var we={};we.f=Object.getOwnPropertySymbols;var Re=oe,Pe=we,je=S,Te=ne("Reflect","ownKeys")||function(t){var e=Re.f(je(t)),r=Pe.f;return r?e.concat(r(t)):e},Ie=H,Ae=Te,Ce=M,Ne=p,$e=f,Me=/#|\.prototype\./,Ue=function(t,e){var r=ke[De(t)];return r==Fe||r!=Le&&("function"==typeof e?$e(e):!!e)},De=Ue.normalize=function(t){return String(t).replace(Me,".").toLowerCase()},ke=Ue.data={},Le=Ue.NATIVE="N",Fe=Ue.POLYFILL="P",Be=Ue,qe=v,Ke=M.f,Ge=at,Ye=ut.exports,ze=st,Ve=function(t,e){for(var r=Ae(e),n=Ne.f,o=Ce.f,i=0;i<r.length;i++){var c=r[i];Ie(t,c)||n(t,c,o(e,c))}},We=Be,Xe=S,He=function(){var t=Xe(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},Je={},Qe=f;function Ze(t,e){return RegExp(t,e)}Je.UNSUPPORTED_Y=Qe((function(){var t=Ze("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),Je.BROKEN_CARET=Qe((function(){var t=Ze("^r","gy");return t.lastIndex=2,null!=t.exec("str")}));var tr=He,er=Je,rr=RegExp.prototype.exec,nr=String.prototype.replace,or=rr,ir=function(){var t=/a/,e=/b*/g;return rr.call(t,"a"),rr.call(e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),cr=er.UNSUPPORTED_Y||er.BROKEN_CARET,ar=void 0!==/()??/.exec("")[1];(ir||ar||cr)&&(or=function(t){var e,r,n,o,i=this,c=cr&&i.sticky,a=tr.call(i),u=i.source,l=0,f=t;return c&&(-1===(a=a.replace("y","")).indexOf("g")&&(a+="g"),f=String(t).slice(i.lastIndex),i.lastIndex>0&&(!i.multiline||i.multiline&&"\n"!==t[i.lastIndex-1])&&(u="(?: "+u+")",f=" "+f,l++),r=new RegExp("^(?:"+u+")",a)),ar&&(r=new RegExp("^"+u+"$(?!\\s)",a)),ir&&(e=i.lastIndex),n=rr.call(c?r:i,f),c?n?(n.input=n.input.slice(l),n[0]=n[0].slice(l),n.index=i.lastIndex,i.lastIndex+=n[0].length):i.lastIndex=0:ir&&n&&(i.lastIndex=i.global?n.index+n[0].length:e),ar&&n&&n.length>1&&nr.call(n[0],r,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(n[o]=void 0)})),n});var ur=or;(function(t,e){var r,n,o,i,c,a=t.target,u=t.global,l=t.stat;if(r=u?qe:l?qe[a]||ze(a,{}):(qe[a]||{}).prototype)for(n in e){if(i=e[n],o=t.noTargetGet?(c=Ke(r,n))&&c.value:r[n],!We(u?n:a+(l?".":"#")+n,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Ve(i,o)}(t.sham||o&&o.sham)&&Ge(i,"sham",!0),Ye(r,n,i,t)}})({target:"RegExp",proto:!0,forced:/./.exec!==ur},{exec:ur});var lr,fr,sr="process"==q(v.process),pr=ne("navigator","userAgent")||"",gr=v.process,vr=gr&&gr.versions,hr=vr&&vr.v8;hr?fr=(lr=hr.split("."))[0]+lr[1]:pr&&(!(lr=pr.match(/Edge\/(\d+)/))||lr[1]>=74)&&(lr=pr.match(/Chrome\/(\d+)/))&&(fr=lr[1]);var yr=sr,dr=fr&&+fr,br=f,xr=!!Object.getOwnPropertySymbols&&!br((function(){return!Symbol.sham&&(yr?38===dr:dr>37&&dr<41)})),Er=xr&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,mr=v,Sr=Et.exports,_r=H,Or=Pt,wr=xr,Rr=Er,Pr=Sr("wks"),jr=mr.Symbol,Tr=Rr?jr:jr&&jr.withoutSetter||Or,Ir=function(t){return _r(Pr,t)&&(wr||"string"==typeof Pr[t])||(wr&&_r(jr,t)?Pr[t]=jr[t]:Pr[t]=Tr("Symbol."+t)),Pr[t]},Ar=ut.exports,Cr=f,Nr=Ir,$r=ur,Mr=at,Ur=Nr("species"),Dr=!Cr((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),kr="$0"==="a".replace(/./,"$0"),Lr=Nr("replace"),Fr=!!/./[Lr]&&""===/./[Lr]("a","$0"),Br=!Cr((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return 2!==r.length||"a"!==r[0]||"b"!==r[1]})),qr=ae,Kr=Y,Gr=function(t){return function(e,r){var n,o,i=String(Kr(e)),c=qr(r),a=i.length;return c<0||c>=a?t?"":void 0:(n=i.charCodeAt(c))<55296||n>56319||c+1===a||(o=i.charCodeAt(c+1))<56320||o>57343?t?i.charAt(c):n:t?i.slice(c,c+2):o-56320+(n-55296<<10)+65536}},Yr={codeAt:Gr(!1),charAt:Gr(!0)}.charAt,zr=Y,Vr=function(t){return Object(zr(t))},Wr=Math.floor,Xr="".replace,Hr=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Jr=/\$([$&'`]|\d{1,2})/g,Qr=q,Zr=ur,tn=function(t,e,r,n){var o=Nr(t),i=!Cr((function(){var e={};return e[o]=function(){return 7},7!=""[t](e)})),c=i&&!Cr((function(){var e=!1,r=/a/;return"split"===t&&((r={}).constructor={},r.constructor[Ur]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return e=!0,null},r[o](""),!e}));if(!i||!c||"replace"===t&&(!Dr||!kr||Fr)||"split"===t&&!Br){var a=/./[o],u=r(o,""[t],(function(t,e,r,n,o){return e.exec===$r?i&&!o?{done:!0,value:a.call(e,r,n)}:{done:!0,value:t.call(r,e,n)}:{done:!1}}),{REPLACE_KEEPS_$0:kr,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:Fr}),l=u[0],f=u[1];Ar(String.prototype,t,l),Ar(RegExp.prototype,o,2==e?function(t,e){return f.call(t,this,e)}:function(t){return f.call(t,this)})}n&&Mr(RegExp.prototype[o],"sham",!0)},en=S,rn=fe,nn=ae,on=Y,cn=function(t,e,r){return e+(r?Yr(t,e).length:1)},an=function(t,e,r,n,o,i){var c=r+t.length,a=n.length,u=Jr;return void 0!==o&&(o=Vr(o),u=Hr),Xr.call(i,u,(function(i,u){var l;switch(u.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,r);case"'":return e.slice(c);case"<":l=o[u.slice(1,-1)];break;default:var f=+u;if(0===f)return i;if(f>a){var s=Wr(f/10);return 0===s?i:s<=a?void 0===n[s-1]?u.charAt(1):n[s-1]+u.charAt(1):i}l=n[f-1]}return void 0===l?"":l}))},un=function(t,e){var r=t.exec;if("function"==typeof r){var n=r.call(t,e);if("object"!=typeof n)throw TypeError("RegExp exec method returned something other than an Object or null");return n}if("RegExp"!==Qr(t))throw TypeError("RegExp#exec called on incompatible receiver");return Zr.call(t,e)},ln=Math.max,fn=Math.min;tn("replace",2,(function(t,e,r,n){var o=n.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,i=n.REPLACE_KEEPS_$0,c=o?"$":"$0";return[function(r,n){var o=on(this),i=null==r?void 0:r[t];return void 0!==i?i.call(r,o,n):e.call(String(o),r,n)},function(t,n){if(!o&&i||"string"==typeof n&&-1===n.indexOf(c)){var a=r(e,t,this,n);if(a.done)return a.value}var u=en(t),l=String(this),f="function"==typeof n;f||(n=String(n));var s=u.global;if(s){var p=u.unicode;u.lastIndex=0}for(var g=[];;){var v=un(u,l);if(null===v)break;if(g.push(v),!s)break;""===String(v[0])&&(u.lastIndex=cn(l,rn(u.lastIndex),p))}for(var h,y="",d=0,b=0;b<g.length;b++){v=g[b];for(var x=String(v[0]),E=ln(fn(nn(v.index),l.length),0),m=[],S=1;S<v.length;S++)m.push(void 0===(h=v[S])?h:String(h));var _=v.groups;if(f){var O=[x].concat(m,E,l);void 0!==_&&O.push(_);var w=String(n.apply(void 0,O))}else w=an(x,l,E,m,_,n);E>=d&&(y+=l.slice(d,E)+w,d=E+x.length)}return y+l.slice(d)}]}));var sn=h,pn=S,gn=function(t){if(!sn(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t},vn=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return pn(r),gn(n),e?t.call(r,n):r.__proto__=n,r}}():void 0),hn=h,yn=vn,dn=h,bn=q,xn=Ir("match"),En=ne,mn=p,Sn=s,_n=Ir("species"),On=s,wn=v,Rn=Be,Pn=function(t,e,r){var n,o;return yn&&"function"==typeof(n=e.constructor)&&n!==r&&hn(o=n.prototype)&&o!==r.prototype&&yn(t,o),t},jn=p.f,Tn=oe.f,In=function(t){var e;return dn(t)&&(void 0!==(e=t[xn])?!!e:"RegExp"==bn(t))},An=He,Cn=Je,Nn=ut.exports,$n=f,Mn=Yt.set,Un=function(t){var e=En(t),r=mn.f;Sn&&e&&!e[_n]&&r(e,_n,{configurable:!0,get:function(){return this}})},Dn=Ir("match"),kn=wn.RegExp,Ln=kn.prototype,Fn=/a/g,Bn=/a/g,qn=new kn(Fn)!==Fn,Kn=Cn.UNSUPPORTED_Y;if(On&&Rn("RegExp",!qn||Kn||$n((function(){return Bn[Dn]=!1,kn(Fn)!=Fn||kn(Bn)==Bn||"/a/i"!=kn(Fn,"i")})))){for(var Gn=function(t,e){var r,n=this instanceof Gn,o=In(t),i=void 0===e;if(!n&&o&&t.constructor===Gn&&i)return t;qn?o&&!i&&(t=t.source):t instanceof Gn&&(i&&(e=An.call(t)),t=t.source),Kn&&(r=!!e&&e.indexOf("y")>-1)&&(e=e.replace(/y/g,""));var c=Pn(qn?new kn(t,e):kn(t,e),n?this:Ln,Gn);return Kn&&r&&Mn(c,{sticky:r}),c},Yn=function(t){t in Gn||jn(Gn,t,{configurable:!0,get:function(){return kn[t]},set:function(e){kn[t]=e}})},zn=Tn(kn),Vn=0;zn.length>Vn;)Yn(zn[Vn++]);Ln.constructor=Gn,Gn.prototype=Ln,Nn(wn,"RegExp",Gn)}Un("RegExp");var Wn=ut.exports,Xn=S,Hn=f,Jn=He,Qn=RegExp.prototype,Zn=Qn.toString,to=Hn((function(){return"/a/b"!=Zn.call({source:"a",flags:"b"})})),eo="toString"!=Zn.name;(to||eo)&&Wn(RegExp.prototype,"toString",(function(){var t=Xn(this),e=String(t.source),r=t.flags;return"/"+e+"/"+String(void 0===r&&t instanceof RegExp&&!("flags"in Qn)?Jn.call(t):r)}),{unsafe:!0});var ro={name:"BaseScrollbar",inheritAttrs:!1,props:{ctCls:{type:String}},render:function(t){var e={};return u(this.ctCls)||i(e,this.ctCls,this.ctCls),t("el-scrollbar",{style:{height:"100%"},class:e},[t("template",{slot:"default"},[this.$slots.default])])}};ro.install=function(t,e){var r;if(r="按需加载独立组件:"+ro.name,"development"!==process.env.NODE_ENV&&"dev"!==process.env.NODE_ENV||console.warn(r),c(e)&&!a(e))for(var n=0;n<e.length;n++)e[n].name!==ro.name&&t.use(e[n]);t.component(ro.name,ro)},exports.BaseScrollbar=ro;