shu-c-view
Version:
rollup 打包vue组件库框架
7 lines (6 loc) • 21.5 kB
JavaScript
/*!
* shu-c-view v1.2.37
* (c) 2022-09-22
* @license MIT
*/
;Object.defineProperty(exports,"__esModule",{value:!0});var t=require("lodash/isEmpty"),e=require("lodash/isArray"),r=require("lodash/get"),n=require("lodash/has"),o=require("lodash/isNil"),i=require("lodash/findIndex");function c(t){return t&&"object"==typeof t&&"default"in t?t.default:t}var a=c(t),u=c(e),l=c(r),f=c(n),s=c(o),p=c(i);function v(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var d="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},h=function(t){try{return!!t()}catch(t){return!0}},g=!h((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),y=function(t){return t&&t.Math==Math&&t},b=y("object"==typeof globalThis&&globalThis)||y("object"==typeof window&&window)||y("object"==typeof self&&self)||y("object"==typeof d&&d)||function(){return this}()||Function("return this")(),m=h,E=/#|\.prototype\./,x=function(t,e){var r=O[S(t)];return r==w||r!=A&&("function"==typeof e?m(e):!!e)},S=x.normalize=function(t){return String(t).replace(E,".").toLowerCase()},O=x.data={},A=x.NATIVE="N",w=x.POLYFILL="P",_=x,j={exports:{}},I={},N=function(t){return"object"==typeof t?null!==t:"function"==typeof t},P=N,T=b.document,R=P(T)&&P(T.createElement),C=function(t){return R?T.createElement(t):{}},F=C,M=!g&&!h((function(){return 7!=Object.defineProperty(F("div"),"a",{get:function(){return 7}}).a})),k=N,U=function(t){if(!k(t))throw TypeError(String(t)+" is not an object");return t},$=N,D=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")},L=g,V=M,B=U,q=D,G=Object.defineProperty;I.f=L?G:function(t,e,r){if(B(t),e=q(e,!0),B(r),V)try{return G(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 Y=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},K=I,X=Y,W=g?function(t,e,r){return K.f(t,e,X(1,r))}:function(t,e,r){return t[e]=r,t},z={}.hasOwnProperty,H=function(t,e){return z.call(t,e)},J=b,Q=W,Z=function(t,e){try{Q(J,t,e)}catch(r){J[t]=e}return e},tt=Z,et=b["__core-js_shared__"]||tt("__core-js_shared__",{}),rt=et,nt=Function.toString;"function"!=typeof rt.inspectSource&&(rt.inspectSource=function(t){return nt.call(t)});var ot=rt.inspectSource,it=ot,ct=b.WeakMap,at="function"==typeof ct&&/native code/.test(it(ct)),ut={exports:{}},lt=et;(ut.exports=function(t,e){return lt[t]||(lt[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.9.1",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"});var ft,st,pt,vt=0,dt=Math.random(),ht=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++vt+dt).toString(36)},gt=ut.exports,yt=ht,bt=gt("keys"),mt=function(t){return bt[t]||(bt[t]=yt(t))},Et={},xt=at,St=N,Ot=W,At=H,wt=et,_t=mt,jt=Et,It=b.WeakMap;if(xt){var Nt=wt.state||(wt.state=new It),Pt=Nt.get,Tt=Nt.has,Rt=Nt.set;ft=function(t,e){return e.facade=t,Rt.call(Nt,t,e),e},st=function(t){return Pt.call(Nt,t)||{}},pt=function(t){return Tt.call(Nt,t)}}else{var Ct=_t("state");jt[Ct]=!0,ft=function(t,e){return e.facade=t,Ot(t,Ct,e),e},st=function(t){return At(t,Ct)?t[Ct]:{}},pt=function(t){return At(t,Ct)}}var Ft={set:ft,get:st,has:pt,enforce:function(t){return pt(t)?st(t):ft(t,{})},getterFor:function(t){return function(e){var r;if(!St(e)||(r=st(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return r}}},Mt=b,kt=W,Ut=H,$t=Z,Dt=ot,Lt=Ft.get,Vt=Ft.enforce,Bt=String(String).split("String");(j.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||Ut(r,"name")||kt(r,"name",e),(o=Vt(r)).source||(o.source=Bt.join("string"==typeof e?e:""))),t!==Mt?(i?!a&&t[e]&&(c=!0):delete t[e],c?t[e]=r:kt(t,e,r)):c?t[e]=r:$t(e,r)})(Function.prototype,"toString",(function(){return"function"==typeof this&&Lt(this).source||Dt(this)}));var qt,Gt={}.toString,Yt=function(t){return Gt.call(t).slice(8,-1)},Kt=N,Xt=U,Wt=function(t){if(!Kt(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t},zt=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 Xt(r),Wt(n),e?t.call(r,n):r.__proto__=n,r}}():void 0),Ht=N,Jt=zt,Qt=function(t,e,r){var n,o;return Jt&&"function"==typeof(n=e.constructor)&&n!==r&&Ht(o=n.prototype)&&o!==r.prototype&&Jt(t,o),t},Zt=Yt,te="".split,ee=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},re=h((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==Zt(t)?te.call(t,""):Object(t)}:Object,ne=ee,oe=function(t){return re(ne(t))},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,ve=Math.min,de=function(t,e){var r=se(t);return r<0?pe(r+e,0):ve(r,e)},he=oe,ge=fe,ye=de,be=function(t){return function(e,r,n){var o,i=he(e),c=ge(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}},me={includes:be(!0),indexOf:be(!1)},Ee=H,xe=oe,Se=me.indexOf,Oe=Et,Ae=function(t,e){var r,n=xe(t),o=0,i=[];for(r in n)!Ee(Oe,r)&&Ee(n,r)&&i.push(r);for(;e.length>o;)Ee(n,r=e[o++])&&(~Se(i,r)||i.push(r));return i},we=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],_e=Ae,je=we,Ie=Object.keys||function(t){return _e(t,je)},Ne=I,Pe=U,Te=Ie,Re=g?Object.defineProperties:function(t,e){Pe(t);for(var r,n=Te(e),o=n.length,i=0;o>i;)Ne.f(t,r=n[i++],e[r]);return t},Ce=b,Fe=b,Me=function(t){return"function"==typeof t?t:void 0},ke=function(t,e){return arguments.length<2?Me(Ce[t])||Me(Fe[t]):Ce[t]&&Ce[t][e]||Fe[t]&&Fe[t][e]},Ue=ke("document","documentElement"),$e=U,De=Re,Le=we,Ve=Et,Be=Ue,qe=C,Ge=mt("IE_PROTO"),Ye=function(){},Ke=function(t){return"<script>"+t+"<\/script>"},Xe=function(){try{qt=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;Xe=qt?function(t){t.write(Ke("")),t.close();var e=t.parentWindow.Object;return t=null,e}(qt):((e=qe("iframe")).style.display="none",Be.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(Ke("document.F=Object")),t.close(),t.F);for(var r=Le.length;r--;)delete Xe.prototype[Le[r]];return Xe()};Ve[Ge]=!0;var We=Object.create||function(t,e){var r;return null!==t?(Ye.prototype=$e(t),r=new Ye,Ye.prototype=null,r[Ge]=t):r=Xe(),void 0===e?r:De(r,e)},ze={},He=Ae,Je=we.concat("length","prototype");ze.f=Object.getOwnPropertyNames||function(t){return He(t,Je)};var Qe={},Ze={},tr={}.propertyIsEnumerable,er=Object.getOwnPropertyDescriptor,rr=er&&!tr.call({1:2},1);Ze.f=rr?function(t){var e=er(this,t);return!!e&&e.enumerable}:tr;var nr=g,or=Ze,ir=Y,cr=oe,ar=D,ur=H,lr=M,fr=Object.getOwnPropertyDescriptor;Qe.f=nr?fr:function(t,e){if(t=cr(t),e=ar(e,!0),lr)try{return fr(t,e)}catch(t){}if(ur(t,e))return ir(!or.f.call(t,e),t[e])};var sr=ee,pr="[\t\n\v\f\r \u2028\u2029\ufeff]",vr=RegExp("^"+pr+pr+"*"),dr=RegExp(pr+pr+"*$"),hr=function(t){return function(e){var r=String(sr(e));return 1&t&&(r=r.replace(vr,"")),2&t&&(r=r.replace(dr,"")),r}},gr={start:hr(1),end:hr(2),trim:hr(3)},yr=g,br=b,mr=_,Er=j.exports,xr=H,Sr=Yt,Or=Qt,Ar=D,wr=h,_r=We,jr=ze.f,Ir=Qe.f,Nr=I.f,Pr=gr.trim,Tr=br.Number,Rr=Tr.prototype,Cr="Number"==Sr(_r(Rr)),Fr=function(t){var e,r,n,o,i,c,a,u,l=Ar(t,!1);if("string"==typeof l&&l.length>2)if(43===(e=(l=Pr(l)).charCodeAt(0))||45===e){if(88===(r=l.charCodeAt(2))||120===r)return NaN}else if(48===e){switch(l.charCodeAt(1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+l}for(c=(i=l.slice(2)).length,a=0;a<c;a++)if((u=i.charCodeAt(a))<48||u>o)return NaN;return parseInt(i,n)}return+l};if(mr("Number",!Tr(" 0o1")||!Tr("0b1")||Tr("+0x1"))){for(var Mr,kr=function(t){var e=arguments.length<1?0:t,r=this;return r instanceof kr&&(Cr?wr((function(){Rr.valueOf.call(r)})):"Number"!=Sr(r))?Or(new Tr(Fr(e)),r,kr):Fr(e)},Ur=yr?jr(Tr):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),$r=0;Ur.length>$r;$r++)xr(Tr,Mr=Ur[$r])&&!xr(kr,Mr)&&Nr(kr,Mr,Ir(Tr,Mr));kr.prototype=Rr,Rr.constructor=kr,Er(br,"Number",kr)}var Dr={};Dr.f=Object.getOwnPropertySymbols;var Lr,Vr,Br=ze,qr=Dr,Gr=U,Yr=ke("Reflect","ownKeys")||function(t){var e=Br.f(Gr(t)),r=qr.f;return r?e.concat(r(t)):e},Kr=H,Xr=Yr,Wr=Qe,zr=I,Hr=b,Jr=Qe.f,Qr=W,Zr=j.exports,tn=Z,en=function(t,e){for(var r=Xr(e),n=zr.f,o=Wr.f,i=0;i<r.length;i++){var c=r[i];Kr(t,c)||n(t,c,o(e,c))}},rn=_,nn=function(t,e){var r,n,o,i,c,a=t.target,u=t.global,l=t.stat;if(r=u?Hr:l?Hr[a]||tn(a,{}):(Hr[a]||{}).prototype)for(n in e){if(i=e[n],o=t.noTargetGet?(c=Jr(r,n))&&c.value:r[n],!rn(u?n:a+(l?".":"#")+n,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;en(i,o)}(t.sham||o&&o.sham)&&Qr(i,"sham",!0),Zr(r,n,i,t)}},on="process"==Yt(b.process),cn=ke("navigator","userAgent")||"",an=b.process,un=an&&an.versions,ln=un&&un.v8;ln?Vr=(Lr=ln.split("."))[0]+Lr[1]:cn&&(!(Lr=cn.match(/Edge\/(\d+)/))||Lr[1]>=74)&&(Lr=cn.match(/Chrome\/(\d+)/))&&(Vr=Lr[1]);var fn=Vr&&+Vr,sn=on,pn=fn,vn=h,dn=!!Object.getOwnPropertySymbols&&!vn((function(){return!Symbol.sham&&(sn?38===pn:pn>37&&pn<41)})),hn=dn&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,gn=b,yn=ut.exports,bn=H,mn=ht,En=dn,xn=hn,Sn=yn("wks"),On=gn.Symbol,An=xn?On:On&&On.withoutSetter||mn,wn=function(t){return bn(Sn,t)&&(En||"string"==typeof Sn[t])||(En&&bn(On,t)?Sn[t]=On[t]:Sn[t]=An("Symbol."+t)),Sn[t]},_n=We,jn=I,In=wn("unscopables"),Nn=Array.prototype;null==Nn[In]&&jn.f(Nn,In,{configurable:!0,value:_n(null)});var Pn=me.includes,Tn=function(t){Nn[In][t]=!0};nn({target:"Array",proto:!0},{includes:function(t){return Pn(this,t,arguments.length>1?arguments[1]:void 0)}}),Tn("includes");var Rn=N,Cn=Yt,Fn=wn("match"),Mn=function(t){var e;return Rn(t)&&(void 0!==(e=t[Fn])?!!e:"RegExp"==Cn(t))},kn=Mn,Un=wn("match"),$n=function(t){if(kn(t))throw TypeError("The method doesn't accept regular expressions");return t},Dn=ee;nn({target:"String",proto:!0,forced:!function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[Un]=!1,"/./"[t](e)}catch(t){}}return!1}("includes")},{includes:function(t){return!!~String(Dn(this)).indexOf($n(t),arguments.length>1?arguments[1]:void 0)}});var Ln=ee,Vn=function(t){return Object(Ln(t))},Bn=Yt,qn=Array.isArray||function(t){return"Array"==Bn(t)},Gn=N,Yn=qn,Kn=wn("species"),Xn=D,Wn=I,zn=Y,Hn=h,Jn=fn,Qn=wn("species"),Zn=nn,to=de,eo=ae,ro=fe,no=Vn,oo=function(t,e){var r;return Yn(t)&&("function"!=typeof(r=t.constructor)||r!==Array&&!Yn(r.prototype)?Gn(r)&&null===(r=r[Kn])&&(r=void 0):r=void 0),new(void 0===r?Array:r)(0===e?0:e)},io=function(t,e,r){var n=Xn(e);n in t?Wn.f(t,n,zn(0,r)):t[n]=r},co=function(t){return Jn>=51||!Hn((function(){var e=[];return(e.constructor={})[Qn]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}("splice"),ao=Math.max,uo=Math.min;Zn({target:"Array",proto:!0,forced:!co},{splice:function(t,e){var r,n,o,i,c,a,u=no(this),l=ro(u.length),f=to(t,l),s=arguments.length;if(0===s?r=n=0:1===s?(r=0,n=l-f):(r=s-2,n=uo(ao(eo(e),0),l-f)),l+r-n>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(o=oo(u,n),i=0;i<n;i++)(c=f+i)in u&&io(o,i,u[c]);if(o.length=n,r<n){for(i=f;i<l-n;i++)a=i+r,(c=i+n)in u?u[a]=u[c]:delete u[a];for(i=l;i>l-n+r;i--)delete u[i-1]}else if(r>n)for(i=l-n;i>f;i--)a=i+r-1,(c=i+n-1)in u?u[a]=u[c]:delete u[a];for(i=0;i<r;i++)u[i+f]=arguments[i+2];return u.length=l-n+r,o}});var lo=g,fo=I.f,so=Function.prototype,po=so.toString,vo=/^\s*function ([^ (]*)/;lo&&!("name"in so)&&fo(so,"name",{configurable:!0,get:function(){try{return po.call(this).match(vo)[1]}catch(t){return""}}});var ho="object"==typeof d&&d&&d.Object===Object&&d,go="object"==typeof self&&self&&self.Object===Object&&self,yo=(ho||go||Function("return this")()).Symbol,bo=yo,mo=Object.prototype,Eo=mo.hasOwnProperty,xo=mo.toString,So=bo?bo.toStringTag:void 0;var Oo=function(t){var e=Eo.call(t,So),r=t[So];try{t[So]=void 0;var n=!0}catch(t){}var o=xo.call(t);return n&&(e?t[So]=r:delete t[So]),o},Ao=Object.prototype.toString;var wo=Oo,_o=function(t){return Ao.call(t)},jo=yo?yo.toStringTag:void 0;var Io=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":jo&&jo in Object(t)?wo(t):_o(t)},No=function(t){return null!=t&&"object"==typeof t};var Po=function(t){return"number"==typeof t||No(t)&&"[object Number]"==Io(t)};var To=function(t){return Po(t)&&t!=+t},Ro=U,Co=function(){var t=Ro(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},Fo={},Mo=h;function ko(t,e){return RegExp(t,e)}Fo.UNSUPPORTED_Y=Mo((function(){var t=ko("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),Fo.BROKEN_CARET=Mo((function(){var t=ko("^r","gy");return t.lastIndex=2,null!=t.exec("str")}));var Uo=Co,$o=Fo,Do=RegExp.prototype.exec,Lo=String.prototype.replace,Vo=Do,Bo=function(){var t=/a/,e=/b*/g;return Do.call(t,"a"),Do.call(e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),qo=$o.UNSUPPORTED_Y||$o.BROKEN_CARET,Go=void 0!==/()??/.exec("")[1];(Bo||Go||qo)&&(Vo=function(t){var e,r,n,o,i=this,c=qo&&i.sticky,a=Uo.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)),Go&&(r=new RegExp("^"+u+"$(?!\\s)",a)),Bo&&(e=i.lastIndex),n=Do.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:Bo&&n&&(i.lastIndex=i.global?n.index+n[0].length:e),Go&&n&&n.length>1&&Lo.call(n[0],r,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(n[o]=void 0)})),n});var Yo=Vo;nn({target:"RegExp",proto:!0,forced:/./.exec!==Yo},{exec:Yo});var Ko=j.exports,Xo=h,Wo=wn,zo=Yo,Ho=W,Jo=Wo("species"),Qo=!Xo((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),Zo="$0"==="a".replace(/./,"$0"),ti=Wo("replace"),ei=!!/./[ti]&&""===/./[ti]("a","$0"),ri=!Xo((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]})),ni=ae,oi=ee,ii=function(t){return function(e,r){var n,o,i=String(oi(e)),c=ni(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}},ci={codeAt:ii(!1),charAt:ii(!0)}.charAt,ai=Vn,ui=Math.floor,li="".replace,fi=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,si=/\$([$&'`]|\d{1,2})/g,pi=Yt,vi=Yo,di=function(t,e,r,n){var o=Wo(t),i=!Xo((function(){var e={};return e[o]=function(){return 7},7!=""[t](e)})),c=i&&!Xo((function(){var e=!1,r=/a/;return"split"===t&&((r={}).constructor={},r.constructor[Jo]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return e=!0,null},r[o](""),!e}));if(!i||!c||"replace"===t&&(!Qo||!Zo||ei)||"split"===t&&!ri){var a=/./[o],u=r(o,""[t],(function(t,e,r,n,o){return e.exec===zo?i&&!o?{done:!0,value:a.call(e,r,n)}:{done:!0,value:t.call(r,e,n)}:{done:!1}}),{REPLACE_KEEPS_$0:Zo,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:ei}),l=u[0],f=u[1];Ko(String.prototype,t,l),Ko(RegExp.prototype,o,2==e?function(t,e){return f.call(t,this,e)}:function(t){return f.call(t,this)})}n&&Ho(RegExp.prototype[o],"sham",!0)},hi=U,gi=fe,yi=ae,bi=ee,mi=function(t,e,r){return e+(r?ci(t,e).length:1)},Ei=function(t,e,r,n,o,i){var c=r+t.length,a=n.length,u=si;return void 0!==o&&(o=ai(o),u=fi),li.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=ui(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}))},xi=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"!==pi(t))throw TypeError("RegExp#exec called on incompatible receiver");return vi.call(t,e)},Si=Math.max,Oi=Math.min;di("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=bi(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=hi(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 v=[];;){var d=xi(u,l);if(null===d)break;if(v.push(d),!s)break;""===String(d[0])&&(u.lastIndex=mi(l,gi(u.lastIndex),p))}for(var h,g="",y=0,b=0;b<v.length;b++){d=v[b];for(var m=String(d[0]),E=Si(Oi(yi(d.index),l.length),0),x=[],S=1;S<d.length;S++)x.push(void 0===(h=d[S])?h:String(h));var O=d.groups;if(f){var A=[m].concat(x,E,l);void 0!==O&&A.push(O);var w=String(n.apply(void 0,A))}else w=Ei(m,l,E,x,O,n);E>=y&&(g+=l.slice(y,E)+w,y=E+m.length)}return g+l.slice(y)}]}));var Ai=ke,wi=I,_i=g,ji=wn("species"),Ii=g,Ni=b,Pi=_,Ti=Qt,Ri=I.f,Ci=ze.f,Fi=Mn,Mi=Co,ki=Fo,Ui=j.exports,$i=h,Di=Ft.set,Li=function(t){var e=Ai(t),r=wi.f;_i&&e&&!e[ji]&&r(e,ji,{configurable:!0,get:function(){return this}})},Vi=wn("match"),Bi=Ni.RegExp,qi=Bi.prototype,Gi=/a/g,Yi=/a/g,Ki=new Bi(Gi)!==Gi,Xi=ki.UNSUPPORTED_Y;if(Ii&&Pi("RegExp",!Ki||Xi||$i((function(){return Yi[Vi]=!1,Bi(Gi)!=Gi||Bi(Yi)==Yi||"/a/i"!=Bi(Gi,"i")})))){for(var Wi=function(t,e){var r,n=this instanceof Wi,o=Fi(t),i=void 0===e;if(!n&&o&&t.constructor===Wi&&i)return t;Ki?o&&!i&&(t=t.source):t instanceof Wi&&(i&&(e=Mi.call(t)),t=t.source),Xi&&(r=!!e&&e.indexOf("y")>-1)&&(e=e.replace(/y/g,""));var c=Ti(Ki?new Bi(t,e):Bi(t,e),n?this:qi,Wi);return Xi&&r&&Di(c,{sticky:r}),c},zi=function(t){t in Wi||Ri(Wi,t,{configurable:!0,get:function(){return Bi[t]},set:function(e){Bi[t]=e}})},Hi=Ci(Bi),Ji=0;Hi.length>Ji;)zi(Hi[Ji++]);qi.constructor=Wi,Wi.prototype=qi,Ui(Ni,"RegExp",Wi)}Li("RegExp");var Qi=j.exports,Zi=U,tc=h,ec=Co,rc=RegExp.prototype,nc=rc.toString,oc=tc((function(){return"/a/b"!=nc.call({source:"a",flags:"b"})})),ic="toString"!=nc.name;(oc||ic)&&Qi(RegExp.prototype,"toString",(function(){var t=Zi(this),e=String(t.source),r=t.flags;return"/"+e+"/"+String(void 0===r&&t instanceof RegExp&&!("flags"in rc)?ec.call(t):r)}),{unsafe:!0});var cc={name:"BaseSelectPopover",inheritAttrs:!1,model:{prop:"actives",event:"input"},props:{title:{type:String,default:""},actives:{type:[Array,String,Number],default:function(){return[]}},dataList:{type:Array,default:function(){return[]}},displayField:{type:String,default:"name"},valueField:{type:String,default:"code"},multiple:{type:Boolean,default:!1},ctCls:{type:String},popperClass:{type:String,default:""},width:{type:Number,default:150},trigger:{type:String,default:"hover",validator:function(t){return-1!==["hover","click"].indexOf(t)}},placement:{type:String,default:"bottom"},isCancelDefaultActive:{type:Boolean,default:!1}},data:function(){return{curActives:this.actives,popoverValue:!1}},watch:{actives:function(t){this.curActives=t}},methods:{onClick:function(t){if("DIV"===t.target.nodeName){var e=t.target.dataset.id;if(To(e)||s(e))return;if(this.multiple||(this.curActives=[]),this.curActives.includes(e)){var r=p(this.curActives,(function(t){return t===e}));-1!==r&&this.curActives.splice(r,1)}else this.curActives.push(e);this.$emit("input",this.curActives)}this.multiple||(this.popoverValue=!1)},createItemElement:function(){return[]}},render:function(t){for(var e=this,r=[],n=0,o=this.dataList.length;n<o;n++){var i=this.dataList[n];if(f(i,this.displayField)&&f(i,this.valueField)){var c=t();this.curActives.includes(l(i,this.valueField))&&!this.isCancelDefaultActive&&(c=t("i",{class:"el-icon-check"},[]));var a=t("div",{attrs:{"data-id":l(i,this.valueField)},class:{"xl-label":!0,active:this.curActives.includes(l(i,this.valueField))}},[l(i,this.displayField),c]);r.push(a)}}return t("div",{class:v({"base-select-popover":!0},this.ctCls,!s(this.ctCls))},[t("el-popover",{props:{placement:this.placement,width:this.width,trigger:this.trigger,value:this.popoverValue,popperClass:"base-select-popover_popover ".concat(this.popperClass)},on:{input:function(t){e.popoverValue=t}}},[t("template",{slot:"default"},[t("div",{on:{click:this.onClick}},r)]),t("template",{slot:"reference"},[t("div",{},[this.title,t("i",{class:"el-icon-arrow-down"},[])])])])])}};cc.install=function(t,e){var r;if(r="按需加载独立组件:"+cc.name,"development"!==process.env.NODE_ENV&&"dev"!==process.env.NODE_ENV||console.warn(r),u(e)&&!a(e))for(var n=0;n<e.length;n++)e[n].name!==cc.name&&t.use(e[n]);t.component(cc.name,cc)},exports.BaseSelectPopover=cc;