shu-c-view
Version:
rollup 打包vue@2.7组件库框架
7 lines (6 loc) • 24.5 kB
JavaScript
/*!
* shu-c-view v2.0.0
* (c) 2024-04-23
* @license MIT
*/
;Object.defineProperty(exports,"__esModule",{value:!0});var t=require("lodash/isEqual"),e=require("lodash/set"),r=require("lodash/assign"),n=require("lodash/isNil"),o=require("lodash/get"),i=require("lodash/has"),u=require("lodash/isArray"),a=require("lodash/isEmpty");function c(t){return t&&"object"==typeof t&&"default"in t?t.default:t}var l=c(t),f=c(e),s=c(r),p=c(n),g=c(o),h=c(i),d=c(u),v=c(a);var y="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},b=function(t){return t&&t.Math==Math&&t},m=b("object"==typeof globalThis&&globalThis)||b("object"==typeof window&&window)||b("object"==typeof self&&self)||b("object"==typeof y&&y)||function(){return this}()||Function("return this")(),x={},O=function(t){try{return!!t()}catch(t){return!0}},S=!O((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),E=!O((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),w=E,j=Function.prototype.call,P=w?j.bind(j):function(){return j.apply(j,arguments)},I={},R={}.propertyIsEnumerable,k=Object.getOwnPropertyDescriptor,_=k&&!R.call({1:2},1);I.f=_?function(t){var e=k(this,t);return!!e&&e.enumerable}:R;var A,T,C=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},D=E,F=Function.prototype,$=F.call,M=D&&F.bind.bind($,$),N=D?M:function(t){return function(){return $.apply(t,arguments)}},q=N,B=q({}.toString),G=q("".slice),L=function(t){return G(B(t),8,-1)},V=O,z=L,U=Object,K=N("".split),Y=V((function(){return!U("z").propertyIsEnumerable(0)}))?function(t){return"String"==z(t)?K(t,""):U(t)}:U,Q=function(t){return null==t},W=Q,H=TypeError,X=function(t){if(W(t))throw H("Can't call method on "+t);return t},J=Y,Z=X,tt=function(t){return J(Z(t))},et="object"==typeof document&&document.all,rt={all:et,IS_HTMLDDA:void 0===et&&void 0!==et},nt=rt.all,ot=rt.IS_HTMLDDA?function(t){return"function"==typeof t||t===nt}:function(t){return"function"==typeof t},it=ot,ut=rt.all,at=rt.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:it(t)||t===ut}:function(t){return"object"==typeof t?null!==t:it(t)},ct=m,lt=ot,ft=function(t){return lt(t)?t:void 0},st=function(t,e){return arguments.length<2?ft(ct[t]):ct[t]&&ct[t][e]},pt=N({}.isPrototypeOf),gt=m,ht=st("navigator","userAgent")||"",dt=gt.process,vt=gt.Deno,yt=dt&&dt.versions||vt&&vt.version,bt=yt&&yt.v8;bt&&(T=(A=bt.split("."))[0]>0&&A[0]<4?1:+(A[0]+A[1])),!T&&ht&&(!(A=ht.match(/Edge\/(\d+)/))||A[1]>=74)&&(A=ht.match(/Chrome\/(\d+)/))&&(T=+A[1]);var mt=T,xt=O,Ot=!!Object.getOwnPropertySymbols&&!xt((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&mt&&mt<41})),St=Ot&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Et=st,wt=ot,jt=pt,Pt=Object,It=St?function(t){return"symbol"==typeof t}:function(t){var e=Et("Symbol");return wt(e)&&jt(e.prototype,Pt(t))},Rt=String,kt=ot,_t=function(t){try{return Rt(t)}catch(t){return"Object"}},At=TypeError,Tt=function(t){if(kt(t))return t;throw At(_t(t)+" is not a function")},Ct=Q,Dt=function(t,e){var r=t[e];return Ct(r)?void 0:Tt(r)},Ft=P,$t=ot,Mt=at,Nt=TypeError,qt={exports:{}},Bt=m,Gt=Object.defineProperty,Lt=function(t,e){try{Gt(Bt,t,{value:e,configurable:!0,writable:!0})}catch(r){Bt[t]=e}return e},Vt=Lt,zt=m["__core-js_shared__"]||Vt("__core-js_shared__",{}),Ut=zt;(qt.exports=function(t,e){return Ut[t]||(Ut[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.26.1",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.26.1/LICENSE",source:"https://github.com/zloirock/core-js"});var Kt=X,Yt=Object,Qt=function(t){return Yt(Kt(t))},Wt=Qt,Ht=N({}.hasOwnProperty),Xt=Object.hasOwn||function(t,e){return Ht(Wt(t),e)},Jt=N,Zt=0,te=Math.random(),ee=Jt(1..toString),re=function(t){return"Symbol("+(void 0===t?"":t)+")_"+ee(++Zt+te,36)},ne=m,oe=qt.exports,ie=Xt,ue=re,ae=Ot,ce=St,le=oe("wks"),fe=ne.Symbol,se=fe&&fe.for,pe=ce?fe:fe&&fe.withoutSetter||ue,ge=function(t){if(!ie(le,t)||!ae&&"string"!=typeof le[t]){var e="Symbol."+t;ae&&ie(fe,t)?le[t]=fe[t]:le[t]=ce&&se?se(e):pe(e)}return le[t]},he=P,de=at,ve=It,ye=Dt,be=function(t,e){var r,n;if("string"===e&&$t(r=t.toString)&&!Mt(n=Ft(r,t)))return n;if($t(r=t.valueOf)&&!Mt(n=Ft(r,t)))return n;if("string"!==e&&$t(r=t.toString)&&!Mt(n=Ft(r,t)))return n;throw Nt("Can't convert object to primitive value")},me=TypeError,xe=ge("toPrimitive"),Oe=function(t,e){if(!de(t)||ve(t))return t;var r,n=ye(t,xe);if(n){if(void 0===e&&(e="default"),r=he(n,t,e),!de(r)||ve(r))return r;throw me("Can't convert object to primitive value")}return void 0===e&&(e="number"),be(t,e)},Se=It,Ee=function(t){var e=Oe(t,"string");return Se(e)?e:e+""},we=at,je=m.document,Pe=we(je)&&we(je.createElement),Ie=function(t){return Pe?je.createElement(t):{}},Re=Ie,ke=!S&&!O((function(){return 7!=Object.defineProperty(Re("div"),"a",{get:function(){return 7}}).a})),_e=S,Ae=P,Te=I,Ce=C,De=tt,Fe=Ee,$e=Xt,Me=ke,Ne=Object.getOwnPropertyDescriptor;x.f=_e?Ne:function(t,e){if(t=De(t),e=Fe(e),Me)try{return Ne(t,e)}catch(t){}if($e(t,e))return Ce(!Ae(Te.f,t,e),t[e])};var qe={},Be=S&&O((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Ge=at,Le=String,Ve=TypeError,ze=function(t){if(Ge(t))return t;throw Ve(Le(t)+" is not an object")},Ue=S,Ke=ke,Ye=Be,Qe=ze,We=Ee,He=TypeError,Xe=Object.defineProperty,Je=Object.getOwnPropertyDescriptor;qe.f=Ue?Ye?function(t,e,r){if(Qe(t),e=We(e),Qe(r),"function"==typeof t&&"prototype"===e&&"value"in r&&"writable"in r&&!r.writable){var n=Je(t,e);n&&n.writable&&(t[e]=r.value,r={configurable:"configurable"in r?r.configurable:n.configurable,enumerable:"enumerable"in r?r.enumerable:n.enumerable,writable:!1})}return Xe(t,e,r)}:Xe:function(t,e,r){if(Qe(t),e=We(e),Qe(r),Ke)try{return Xe(t,e,r)}catch(t){}if("get"in r||"set"in r)throw He("Accessors not supported");return"value"in r&&(t[e]=r.value),t};var Ze=qe,tr=C,er=S?function(t,e,r){return Ze.f(t,e,tr(1,r))}:function(t,e,r){return t[e]=r,t},rr={exports:{}},nr=S,or=Xt,ir=Function.prototype,ur=nr&&Object.getOwnPropertyDescriptor,ar=or(ir,"name"),cr={EXISTS:ar,PROPER:ar&&"something"===function(){}.name,CONFIGURABLE:ar&&(!nr||nr&&ur(ir,"name").configurable)},lr=ot,fr=zt,sr=N(Function.toString);lr(fr.inspectSource)||(fr.inspectSource=function(t){return sr(t)});var pr,gr,hr,dr=fr.inspectSource,vr=ot,yr=m.WeakMap,br=vr(yr)&&/native code/.test(String(yr)),mr=qt.exports,xr=re,Or=mr("keys"),Sr=function(t){return Or[t]||(Or[t]=xr(t))},Er={},wr=br,jr=m,Pr=at,Ir=er,Rr=Xt,kr=zt,_r=Sr,Ar=Er,Tr=jr.TypeError,Cr=jr.WeakMap;if(wr||kr.state){var Dr=kr.state||(kr.state=new Cr);Dr.get=Dr.get,Dr.has=Dr.has,Dr.set=Dr.set,pr=function(t,e){if(Dr.has(t))throw Tr("Object already initialized");return e.facade=t,Dr.set(t,e),e},gr=function(t){return Dr.get(t)||{}},hr=function(t){return Dr.has(t)}}else{var Fr=_r("state");Ar[Fr]=!0,pr=function(t,e){if(Rr(t,Fr))throw Tr("Object already initialized");return e.facade=t,Ir(t,Fr,e),e},gr=function(t){return Rr(t,Fr)?t[Fr]:{}},hr=function(t){return Rr(t,Fr)}}var $r={set:pr,get:gr,has:hr,enforce:function(t){return hr(t)?gr(t):pr(t,{})},getterFor:function(t){return function(e){var r;if(!Pr(e)||(r=gr(e)).type!==t)throw Tr("Incompatible receiver, "+t+" required");return r}}},Mr=O,Nr=ot,qr=Xt,Br=S,Gr=cr.CONFIGURABLE,Lr=dr,Vr=$r.enforce,zr=$r.get,Ur=Object.defineProperty,Kr=Br&&!Mr((function(){return 8!==Ur((function(){}),"length",{value:8}).length})),Yr=String(String).split("String"),Qr=rr.exports=function(t,e,r){"Symbol("===String(e).slice(0,7)&&(e="["+String(e).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!qr(t,"name")||Gr&&t.name!==e)&&(Br?Ur(t,"name",{value:e,configurable:!0}):t.name=e),Kr&&r&&qr(r,"arity")&&t.length!==r.arity&&Ur(t,"length",{value:r.arity});try{r&&qr(r,"constructor")&&r.constructor?Br&&Ur(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var n=Vr(t);return qr(n,"source")||(n.source=Yr.join("string"==typeof e?e:"")),t};Function.prototype.toString=Qr((function(){return Nr(this)&&zr(this).source||Lr(this)}),"toString");var Wr=ot,Hr=qe,Xr=rr.exports,Jr=Lt,Zr=function(t,e,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:e;if(Wr(r)&&Xr(r,i,n),n.global)o?t[e]=r:Jr(e,r);else{try{n.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=r:Hr.f(t,e,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return t},tn={},en=Math.ceil,rn=Math.floor,nn=Math.trunc||function(t){var e=+t;return(e>0?rn:en)(e)},on=function(t){var e=+t;return e!=e||0===e?0:nn(e)},un=on,an=Math.max,cn=Math.min,ln=on,fn=Math.min,sn=function(t){return t>0?fn(ln(t),9007199254740991):0},pn=sn,gn=tt,hn=function(t,e){var r=un(t);return r<0?an(r+e,0):cn(r,e)},dn=function(t){return pn(t.length)},vn=function(t){return function(e,r,n){var o,i=gn(e),u=dn(i),a=hn(n,u);if(t&&r!=r){for(;u>a;)if((o=i[a++])!=o)return!0}else for(;u>a;a++)if((t||a in i)&&i[a]===r)return t||a||0;return!t&&-1}},yn={includes:vn(!0),indexOf:vn(!1)},bn=Xt,mn=tt,xn=yn.indexOf,On=Er,Sn=N([].push),En=function(t,e){var r,n=mn(t),o=0,i=[];for(r in n)!bn(On,r)&&bn(n,r)&&Sn(i,r);for(;e.length>o;)bn(n,r=e[o++])&&(~xn(i,r)||Sn(i,r));return i},wn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],jn=En,Pn=wn.concat("length","prototype");tn.f=Object.getOwnPropertyNames||function(t){return jn(t,Pn)};var In={};In.f=Object.getOwnPropertySymbols;var Rn=st,kn=tn,_n=In,An=ze,Tn=N([].concat),Cn=Rn("Reflect","ownKeys")||function(t){var e=kn.f(An(t)),r=_n.f;return r?Tn(e,r(t)):e},Dn=Xt,Fn=Cn,$n=x,Mn=qe,Nn=O,qn=ot,Bn=/#|\.prototype\./,Gn=function(t,e){var r=Vn[Ln(t)];return r==Un||r!=zn&&(qn(e)?Nn(e):!!e)},Ln=Gn.normalize=function(t){return String(t).replace(Bn,".").toLowerCase()},Vn=Gn.data={},zn=Gn.NATIVE="N",Un=Gn.POLYFILL="P",Kn=Gn,Yn=m,Qn=x.f,Wn=er,Hn=Zr,Xn=Lt,Jn=function(t,e,r){for(var n=Fn(e),o=Mn.f,i=$n.f,u=0;u<n.length;u++){var a=n[u];Dn(t,a)||r&&Dn(r,a)||o(t,a,i(e,a))}},Zn=Kn,to=function(t,e){var r,n,o,i,u,a=t.target,c=t.global,l=t.stat;if(r=c?Yn:l?Yn[a]||Xn(a,{}):(Yn[a]||{}).prototype)for(n in e){if(i=e[n],o=t.dontCallGetSet?(u=Qn(r,n))&&u.value:r[n],!Zn(c?n:a+(l?".":"#")+n,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Jn(i,o)}(t.sham||o&&o.sham)&&Wn(i,"sham",!0),Hn(r,n,i,t)}},eo=En,ro=wn,no=Object.keys||function(t){return eo(t,ro)},oo=S,io=N,uo=P,ao=O,co=no,lo=In,fo=I,so=Qt,po=Y,go=Object.assign,ho=Object.defineProperty,vo=io([].concat),yo=!go||ao((function(){if(oo&&1!==go({b:1},go(ho({},"a",{enumerable:!0,get:function(){ho(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach((function(t){e[t]=t})),7!=go({},t)[r]||co(go({},e)).join("")!=n}))?function(t,e){for(var r=so(t),n=arguments.length,o=1,i=lo.f,u=fo.f;n>o;)for(var a,c=po(arguments[o++]),l=i?vo(co(c),i(c)):co(c),f=l.length,s=0;f>s;)a=l[s++],oo&&!uo(u,c,a)||(r[a]=c[a]);return r}:go,bo=yo;to({target:"Object",stat:!0,arity:2,forced:Object.assign!==bo},{assign:bo});var mo=S,xo=cr.EXISTS,Oo=N,So=qe.f,Eo=Function.prototype,wo=Oo(Eo.toString),jo=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Po=Oo(jo.exec);mo&&!xo&&So(Eo,"name",{configurable:!0,get:function(){try{return Po(jo,wo(this))[1]}catch(t){return""}}});var Io={};Io[ge("toStringTag")]="z";var Ro="[object z]"===String(Io),ko=ot,_o=L,Ao=ge("toStringTag"),To=Object,Co="Arguments"==_o(function(){return arguments}()),Do=Ro?_o:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=To(t),Ao))?r:Co?_o(e):"Object"==(n=_o(e))&&ko(e.callee)?"Arguments":n},Fo=String,$o=function(t){if("Symbol"===Do(t))throw TypeError("Cannot convert a Symbol value to a string");return Fo(t)},Mo=ze,No=function(){var t=Mo(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e},qo=O,Bo=m.RegExp,Go=qo((function(){var t=Bo("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),Lo=Go||qo((function(){return!Bo("a","y").sticky})),Vo=Go||qo((function(){var t=Bo("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),zo={BROKEN_CARET:Vo,MISSED_STICKY:Lo,UNSUPPORTED_Y:Go},Uo={},Ko=S,Yo=Be,Qo=qe,Wo=ze,Ho=tt,Xo=no;Uo.f=Ko&&!Yo?Object.defineProperties:function(t,e){Wo(t);for(var r,n=Ho(e),o=Xo(e),i=o.length,u=0;i>u;)Qo.f(t,r=o[u++],n[r]);return t};var Jo,Zo=st("document","documentElement"),ti=ze,ei=Uo,ri=wn,ni=Er,oi=Zo,ii=Ie,ui=Sr("IE_PROTO"),ai=function(){},ci=function(t){return"<script>"+t+"<\/script>"},li=function(t){t.write(ci("")),t.close();var e=t.parentWindow.Object;return t=null,e},fi=function(){try{Jo=new ActiveXObject("htmlfile")}catch(t){}var t,e;fi="undefined"!=typeof document?document.domain&&Jo?li(Jo):((e=ii("iframe")).style.display="none",oi.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(ci("document.F=Object")),t.close(),t.F):li(Jo);for(var r=ri.length;r--;)delete fi.prototype[ri[r]];return fi()};ni[ui]=!0;var si=Object.create||function(t,e){var r;return null!==t?(ai.prototype=ti(t),r=new ai,ai.prototype=null,r[ui]=t):r=fi(),void 0===e?r:ei.f(r,e)},pi=O,gi=m.RegExp,hi=pi((function(){var t=gi(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),di=O,vi=m.RegExp,yi=di((function(){var t=vi("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),bi=P,mi=N,xi=$o,Oi=No,Si=zo,Ei=qt.exports,wi=si,ji=$r.get,Pi=hi,Ii=yi,Ri=Ei("native-string-replace",String.prototype.replace),ki=RegExp.prototype.exec,_i=ki,Ai=mi("".charAt),Ti=mi("".indexOf),Ci=mi("".replace),Di=mi("".slice),Fi=function(){var t=/a/,e=/b*/g;return bi(ki,t,"a"),bi(ki,e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),$i=Si.BROKEN_CARET,Mi=void 0!==/()??/.exec("")[1];(Fi||Mi||$i||Pi||Ii)&&(_i=function(t){var e,r,n,o,i,u,a,c=this,l=ji(c),f=xi(t),s=l.raw;if(s)return s.lastIndex=c.lastIndex,e=bi(_i,s,f),c.lastIndex=s.lastIndex,e;var p=l.groups,g=$i&&c.sticky,h=bi(Oi,c),d=c.source,v=0,y=f;if(g&&(h=Ci(h,"y",""),-1===Ti(h,"g")&&(h+="g"),y=Di(f,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==Ai(f,c.lastIndex-1))&&(d="(?: "+d+")",y=" "+y,v++),r=new RegExp("^(?:"+d+")",h)),Mi&&(r=new RegExp("^"+d+"$(?!\\s)",h)),Fi&&(n=c.lastIndex),o=bi(ki,g?r:c,y),g?o?(o.input=Di(o.input,v),o[0]=Di(o[0],v),o.index=c.lastIndex,c.lastIndex+=o[0].length):c.lastIndex=0:Fi&&o&&(c.lastIndex=c.global?o.index+o[0].length:n),Mi&&o&&o.length>1&&bi(Ri,o[0],r,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&p)for(o.groups=u=wi(null),i=0;i<p.length;i++)u[(a=p[i])[0]]=o[a[1]];return o});var Ni=_i;to({target:"RegExp",proto:!0,forced:/./.exec!==Ni},{exec:Ni});var qi,Bi,Gi=to,Li=P,Vi=ot,zi=ze,Ui=$o,Ki=(qi=!1,(Bi=/[ac]/).exec=function(){return qi=!0,/./.exec.apply(this,arguments)},!0===Bi.test("abc")&&qi),Yi=/./.test;Gi({target:"RegExp",proto:!0,forced:!Ki},{test:function(t){var e=zi(this),r=Ui(t),n=e.exec;if(!Vi(n))return Li(Yi,e,r);var o=Li(n,e,r);return null!==o&&(zi(o),!0)}});var Qi=E,Wi=Function.prototype,Hi=Wi.apply,Xi=Wi.call,Ji="object"==typeof Reflect&&Reflect.apply||(Qi?Xi.bind(Hi):function(){return Xi.apply(Hi,arguments)}),Zi=L,tu=N,eu=function(t){if("Function"===Zi(t))return tu(t)},ru=Zr,nu=Ni,ou=O,iu=ge,uu=er,au=iu("species"),cu=RegExp.prototype,lu=N,fu=on,su=$o,pu=X,gu=lu("".charAt),hu=lu("".charCodeAt),du=lu("".slice),vu=function(t){return function(e,r){var n,o,i=su(pu(e)),u=fu(r),a=i.length;return u<0||u>=a?t?"":void 0:(n=hu(i,u))<55296||n>56319||u+1===a||(o=hu(i,u+1))<56320||o>57343?t?gu(i,u):n:t?du(i,u,u+2):o-56320+(n-55296<<10)+65536}},yu={codeAt:vu(!1),charAt:vu(!0)}.charAt,bu=N,mu=Qt,xu=Math.floor,Ou=bu("".charAt),Su=bu("".replace),Eu=bu("".slice),wu=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,ju=/\$([$&'`]|\d{1,2})/g,Pu=P,Iu=ze,Ru=ot,ku=L,_u=Ni,Au=TypeError,Tu=Ji,Cu=P,Du=N,Fu=function(t,e,r,n){var o=iu(t),i=!ou((function(){var e={};return e[o]=function(){return 7},7!=""[t](e)})),u=i&&!ou((function(){var e=!1,r=/a/;return"split"===t&&((r={}).constructor={},r.constructor[au]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return e=!0,null},r[o](""),!e}));if(!i||!u||r){var a=eu(/./[o]),c=e(o,""[t],(function(t,e,r,n,o){var u=eu(t),c=e.exec;return c===nu||c===cu.exec?i&&!o?{done:!0,value:a(e,r,n)}:{done:!0,value:u(r,e,n)}:{done:!1}}));ru(String.prototype,t,c[0]),ru(cu,o,c[1])}n&&uu(cu[o],"sham",!0)},$u=O,Mu=ze,Nu=ot,qu=Q,Bu=on,Gu=sn,Lu=$o,Vu=X,zu=function(t,e,r){return e+(r?yu(t,e).length:1)},Uu=Dt,Ku=function(t,e,r,n,o,i){var u=r+t.length,a=n.length,c=ju;return void 0!==o&&(o=mu(o),c=wu),Su(i,c,(function(i,c){var l;switch(Ou(c,0)){case"$":return"$";case"&":return t;case"`":return Eu(e,0,r);case"'":return Eu(e,u);case"<":l=o[Eu(c,1,-1)];break;default:var f=+c;if(0===f)return i;if(f>a){var s=xu(f/10);return 0===s?i:s<=a?void 0===n[s-1]?Ou(c,1):n[s-1]+Ou(c,1):i}l=n[f-1]}return void 0===l?"":l}))},Yu=function(t,e){var r=t.exec;if(Ru(r)){var n=Pu(r,t,e);return null!==n&&Iu(n),n}if("RegExp"===ku(t))return Pu(_u,t,e);throw Au("RegExp#exec called on incompatible receiver")},Qu=ge("replace"),Wu=Math.max,Hu=Math.min,Xu=Du([].concat),Ju=Du([].push),Zu=Du("".indexOf),ta=Du("".slice),ea="$0"==="a".replace(/./,"$0"),ra=!!/./[Qu]&&""===/./[Qu]("a","$0"),na=!$u((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}));Fu("replace",(function(t,e,r){var n=ra?"$":"$0";return[function(t,r){var n=Vu(this),o=qu(t)?void 0:Uu(t,Qu);return o?Cu(o,t,n,r):Cu(e,Lu(n),t,r)},function(t,o){var i=Mu(this),u=Lu(t);if("string"==typeof o&&-1===Zu(o,n)&&-1===Zu(o,"$<")){var a=r(e,i,u,o);if(a.done)return a.value}var c=Nu(o);c||(o=Lu(o));var l=i.global;if(l){var f=i.unicode;i.lastIndex=0}for(var s=[];;){var p=Yu(i,u);if(null===p)break;if(Ju(s,p),!l)break;""===Lu(p[0])&&(i.lastIndex=zu(u,Gu(i.lastIndex),f))}for(var g,h="",d=0,v=0;v<s.length;v++){for(var y=Lu((p=s[v])[0]),b=Wu(Hu(Bu(p.index),u.length),0),m=[],x=1;x<p.length;x++)Ju(m,void 0===(g=p[x])?g:String(g));var O=p.groups;if(c){var S=Xu([y],m,b,u);void 0!==O&&Ju(S,O);var E=Lu(Tu(o,void 0,S))}else E=Ku(y,u,b,m,O,o);b>=d&&(h+=ta(u,d,b)+E,d=b+y.length)}return h+ta(u,d)}]}),!na||!ea||ra);var oa=ot,ia=String,ua=TypeError,aa=N,ca=ze,la=function(t){if("object"==typeof t||oa(t))return t;throw ua("Can't set "+ia(t)+" as a prototype")},fa=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=aa(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return ca(r),la(n),e?t(r,n):r.__proto__=n,r}}():void 0),sa=ot,pa=at,ga=fa,ha=at,da=L,va=ge("match"),ya=P,ba=Xt,ma=pt,xa=No,Oa=RegExp.prototype,Sa=function(t){var e=t.flags;return void 0!==e||"flags"in Oa||ba(t,"flags")||!ma(Oa,t)?e:ya(xa,t)},Ea=qe.f,wa=st,ja=qe,Pa=S,Ia=ge("species"),Ra=S,ka=m,_a=N,Aa=Kn,Ta=function(t,e,r){var n,o;return ga&&sa(n=e.constructor)&&n!==r&&pa(o=n.prototype)&&o!==r.prototype&&ga(t,o),t},Ca=er,Da=tn.f,Fa=pt,$a=function(t){var e;return ha(t)&&(void 0!==(e=t[va])?!!e:"RegExp"==da(t))},Ma=$o,Na=Sa,qa=zo,Ba=function(t,e,r){r in t||Ea(t,r,{configurable:!0,get:function(){return e[r]},set:function(t){e[r]=t}})},Ga=Zr,La=O,Va=Xt,za=$r.enforce,Ua=function(t){var e=wa(t),r=ja.f;Pa&&e&&!e[Ia]&&r(e,Ia,{configurable:!0,get:function(){return this}})},Ka=hi,Ya=yi,Qa=ge("match"),Wa=ka.RegExp,Ha=Wa.prototype,Xa=ka.SyntaxError,Ja=_a(Ha.exec),Za=_a("".charAt),tc=_a("".replace),ec=_a("".indexOf),rc=_a("".slice),nc=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,oc=/a/g,ic=/a/g,uc=new Wa(oc)!==oc,ac=qa.MISSED_STICKY,cc=qa.UNSUPPORTED_Y,lc=Ra&&(!uc||ac||Ka||Ya||La((function(){return ic[Qa]=!1,Wa(oc)!=oc||Wa(ic)==ic||"/a/i"!=Wa(oc,"i")})));if(Aa("RegExp",lc)){for(var fc=function(t,e){var r,n,o,i,u,a,c=Fa(Ha,this),l=$a(t),f=void 0===e,s=[],p=t;if(!c&&l&&f&&t.constructor===fc)return t;if((l||Fa(Ha,t))&&(t=t.source,f&&(e=Na(p))),t=void 0===t?"":Ma(t),e=void 0===e?"":Ma(e),p=t,Ka&&"dotAll"in oc&&(n=!!e&&ec(e,"s")>-1)&&(e=tc(e,/s/g,"")),r=e,ac&&"sticky"in oc&&(o=!!e&&ec(e,"y")>-1)&&cc&&(e=tc(e,/y/g,"")),Ya&&(i=function(t){for(var e,r=t.length,n=0,o="",i=[],u={},a=!1,c=!1,l=0,f="";n<=r;n++){if("\\"===(e=Za(t,n)))e+=Za(t,++n);else if("]"===e)a=!1;else if(!a)switch(!0){case"["===e:a=!0;break;case"("===e:Ja(nc,rc(t,n+1))&&(n+=2,c=!0),o+=e,l++;continue;case">"===e&&c:if(""===f||Va(u,f))throw new Xa("Invalid capture group name");u[f]=!0,i[i.length]=[f,l],c=!1,f="";continue}c?f+=e:o+=e}return[o,i]}(t),t=i[0],s=i[1]),u=Ta(Wa(t,e),c?this:Ha,fc),(n||o||s.length)&&(a=za(u),n&&(a.dotAll=!0,a.raw=fc(function(t){for(var e,r=t.length,n=0,o="",i=!1;n<=r;n++)"\\"!==(e=Za(t,n))?i||"."!==e?("["===e?i=!0:"]"===e&&(i=!1),o+=e):o+="[\\s\\S]":o+=e+Za(t,++n);return o}(t),r)),o&&(a.sticky=!0),s.length&&(a.groups=s)),t!==p)try{Ca(u,"source",""===p?"(?:)":p)}catch(t){}return u},sc=Da(Wa),pc=0;sc.length>pc;)Ba(fc,Wa,sc[pc++]);Ha.constructor=fc,fc.prototype=Ha,Ga(ka,"RegExp",fc,{constructor:!0})}Ua("RegExp");var gc=rr.exports,hc=qe,dc=S,vc=zo.MISSED_STICKY,yc=L,bc=function(t,e,r){return r.get&&gc(r.get,e,{getter:!0}),r.set&&gc(r.set,e,{setter:!0}),hc.f(t,e,r)},mc=$r.get,xc=RegExp.prototype,Oc=TypeError;dc&&vc&&bc(xc,"sticky",{configurable:!0,get:function(){if(this!==xc){if("RegExp"===yc(this))return!!mc(this).sticky;throw Oc("Incompatible receiver, RegExp required")}}});var Sc=cr.PROPER,Ec=Zr,wc=ze,jc=$o,Pc=O,Ic=Sa,Rc=RegExp.prototype.toString,kc=Pc((function(){return"/a/b"!=Rc.call({source:"a",flags:"b"})})),_c=Sc&&"toString"!=Rc.name;(kc||_c)&&Ec(RegExp.prototype,"toString",(function(){var t=wc(this);return"/"+jc(t.source)+"/"+jc(Ic(t))}),{unsafe:!0});var Ac={name:"BaseCheckboxGroup",inheritAttrs:!1,model:{prop:"checkBoxGroupValue",event:"checkBoxGroupChange"},props:{api:{type:String,default:""},queryParams:{type:Object,default:function(){return{}}},options:{type:Array},checkBoxGroupValue:{type:Array,default:function(){return[]}},ctCls:{type:String},listeners:{type:Object,default:function(){return{}}},displayField:{type:String,default:"name"},valueField:{type:String,default:"id"},isRender:{type:Boolean,default:!0},isDisplay:{type:Boolean,default:!0},loadFilter:{type:Function,default:null},checkboxAttributes:{type:Object,default:function(){return{}}}},data:function(){return this.curQueryParams={},{curValue:this.checkBoxGroupValue,curOptions:this.options||[]}},watch:{checkBoxGroupValue:function(t){this.curValue=t},options:function(t){this.curOptions=t}},mounted:function(){p(this.options)&&this.loadData()},methods:{loadData:function(){var t=this;if(this.api){var e=s({},this.queryParams,this.curQueryParams);this.$api[this.api]({params:e}).then((function(e){return t.tableData=p(t.loadFilter)?e:t.loadFilter(e),t.curOptions=g(e,g(t["$base-global-options"],"checkboxGroup.data","data")),!0})).catch((function(t){throw new Error(t)}))}},setQueryParams:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.curQueryParams={},Object.assign(this.curQueryParams,t)},getStore:function(){return this.curOptions},reload:function(){this.loadData()},createElCheckbox:function(){for(var t=[],e=0,r=this.curOptions.length;e<r;e+=1){var n=this.curOptions[e],o=this.$createElement("el-checkbox",{props:s({},{label:g(n,this.valueField),key:g(n,this.valueField)},this.checkboxAttributes)},[g(n,this.displayField)]);t.push(o)}return t}},render:function(t){var e=this;if(l(this.isRender,!1))return t();var r,n,o,i={};return l(this.isDisplay,!1)&&f(i,"display","none"),t("el-checkbox-group",{ref:"".concat(this._uid,"-el-checkbox-group"),class:(r={"base-checkbox-group":!0},n=this.ctCls,o=this.ctCls,n in r?Object.defineProperty(r,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[n]=o,r),style:i,props:s({},{value:this.curValue},this.$attrs),on:{change:function(t){l(p(e.listeners),!1)&&h(e.listeners,"change")?e.listeners.change(t):e.$emit("change",t)},input:function(t){e.curValue=t,e.$emit("checkBoxGroupChange",t)}}},this.createElCheckbox())}};Ac.install=function(t,e){var r;if(r="按需加载独立组件:".concat(Ac.name),"development"!==process.env.NODE_ENV&&"dev"!==process.env.NODE_ENV||console.warn(r),d(e)&&!v(e))for(var n=0;n<e.length;n+=1)e[n].name!==Ac.name&&t.use(e[n]);t.component(Ac.name,Ac)},exports.BaseCheckboxGroup=Ac;