shu-c-view
Version:
rollup 打包vue组件库框架
7 lines (6 loc) • 32.7 kB
JavaScript
/*!
* shu-c-view v1.2.87
* (c) 2024-10-22
* @license MIT
*/
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("lodash/isEqual"),e=require("lodash/pick"),r=require("lodash/assign"),n=require("lodash/set"),i=require("lodash/filter"),o=require("lodash/isNil"),a=require("lodash/map"),c=require("lodash/findIndex"),u=require("lodash/debounce"),s=require("lodash/omit"),l=require("lodash/isArray"),f=require("lodash/isEmpty"),h=require("lodash/get"),p=require("lodash/has"),d=require("lodash/keys");function v(t){return t&&"object"==typeof t&&"default"in t?t.default:t}var g=v(t),y=v(e),b=v(r),m=v(n),x=v(i),S=v(o),E=v(a),w=v(c),O=v(u),T=v(s),j=v(l),A=v(f),$=v(h),k=v(p),R=v(d);function C(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var I="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},_=function(t){return t&&t.Math==Math&&t},D=_("object"==typeof globalThis&&globalThis)||_("object"==typeof window&&window)||_("object"==typeof self&&self)||_("object"==typeof I&&I)||function(){return this}()||Function("return this")(),P={},N=function(t){try{return!!t()}catch(t){return!0}},F=!N((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),L=!N((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),M=L,q=Function.prototype.call,B=M?q.bind(q):function(){return q.apply(q,arguments)},W={},z={}.propertyIsEnumerable,K=Object.getOwnPropertyDescriptor,H=K&&!z.call({1:2},1);W.f=H?function(t){var e=K(this,t);return!!e&&e.enumerable}:z;var U,Y,G=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},V=L,X=Function.prototype,J=X.call,Q=V&&X.bind.bind(J,J),Z=V?Q:function(t){return function(){return J.apply(t,arguments)}},tt=Z,et=tt({}.toString),rt=tt("".slice),nt=function(t){return rt(et(t),8,-1)},it=N,ot=nt,at=Object,ct=Z("".split),ut=it((function(){return!at("z").propertyIsEnumerable(0)}))?function(t){return"String"==ot(t)?ct(t,""):at(t)}:at,st=function(t){return null==t},lt=st,ft=TypeError,ht=function(t){if(lt(t))throw ft("Can't call method on "+t);return t},pt=ut,dt=ht,vt=function(t){return pt(dt(t))},gt="object"==typeof document&&document.all,yt={all:gt,IS_HTMLDDA:void 0===gt&&void 0!==gt},bt=yt.all,mt=yt.IS_HTMLDDA?function(t){return"function"==typeof t||t===bt}:function(t){return"function"==typeof t},xt=mt,St=yt.all,Et=yt.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:xt(t)||t===St}:function(t){return"object"==typeof t?null!==t:xt(t)},wt=D,Ot=mt,Tt=function(t){return Ot(t)?t:void 0},jt=function(t,e){return arguments.length<2?Tt(wt[t]):wt[t]&&wt[t][e]},At=Z({}.isPrototypeOf),$t=D,kt=jt("navigator","userAgent")||"",Rt=$t.process,Ct=$t.Deno,It=Rt&&Rt.versions||Ct&&Ct.version,_t=It&&It.v8;_t&&(Y=(U=_t.split("."))[0]>0&&U[0]<4?1:+(U[0]+U[1])),!Y&&kt&&(!(U=kt.match(/Edge\/(\d+)/))||U[1]>=74)&&(U=kt.match(/Chrome\/(\d+)/))&&(Y=+U[1]);var Dt=Y,Pt=Dt,Nt=N,Ft=!!Object.getOwnPropertySymbols&&!Nt((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Pt&&Pt<41})),Lt=Ft&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Mt=jt,qt=mt,Bt=At,Wt=Object,zt=Lt?function(t){return"symbol"==typeof t}:function(t){var e=Mt("Symbol");return qt(e)&&Bt(e.prototype,Wt(t))},Kt=String,Ht=function(t){try{return Kt(t)}catch(t){return"Object"}},Ut=mt,Yt=Ht,Gt=TypeError,Vt=function(t){if(Ut(t))return t;throw Gt(Yt(t)+" is not a function")},Xt=Vt,Jt=st,Qt=function(t,e){var r=t[e];return Jt(r)?void 0:Xt(r)},Zt=B,te=mt,ee=Et,re=TypeError,ne={exports:{}},ie=D,oe=Object.defineProperty,ae=function(t,e){try{oe(ie,t,{value:e,configurable:!0,writable:!0})}catch(r){ie[t]=e}return e},ce=ae,ue=D["__core-js_shared__"]||ce("__core-js_shared__",{}),se=ue;(ne.exports=function(t,e){return se[t]||(se[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 le=ht,fe=Object,he=function(t){return fe(le(t))},pe=he,de=Z({}.hasOwnProperty),ve=Object.hasOwn||function(t,e){return de(pe(t),e)},ge=Z,ye=0,be=Math.random(),me=ge(1..toString),xe=function(t){return"Symbol("+(void 0===t?"":t)+")_"+me(++ye+be,36)},Se=D,Ee=ne.exports,we=ve,Oe=xe,Te=Ft,je=Lt,Ae=Ee("wks"),$e=Se.Symbol,ke=$e&&$e.for,Re=je?$e:$e&&$e.withoutSetter||Oe,Ce=function(t){if(!we(Ae,t)||!Te&&"string"!=typeof Ae[t]){var e="Symbol."+t;Te&&we($e,t)?Ae[t]=$e[t]:Ae[t]=je&&ke?ke(e):Re(e)}return Ae[t]},Ie=B,_e=Et,De=zt,Pe=Qt,Ne=function(t,e){var r,n;if("string"===e&&te(r=t.toString)&&!ee(n=Zt(r,t)))return n;if(te(r=t.valueOf)&&!ee(n=Zt(r,t)))return n;if("string"!==e&&te(r=t.toString)&&!ee(n=Zt(r,t)))return n;throw re("Can't convert object to primitive value")},Fe=TypeError,Le=Ce("toPrimitive"),Me=function(t,e){if(!_e(t)||De(t))return t;var r,n=Pe(t,Le);if(n){if(void 0===e&&(e="default"),r=Ie(n,t,e),!_e(r)||De(r))return r;throw Fe("Can't convert object to primitive value")}return void 0===e&&(e="number"),Ne(t,e)},qe=zt,Be=function(t){var e=Me(t,"string");return qe(e)?e:e+""},We=Et,ze=D.document,Ke=We(ze)&&We(ze.createElement),He=function(t){return Ke?ze.createElement(t):{}},Ue=He,Ye=!F&&!N((function(){return 7!=Object.defineProperty(Ue("div"),"a",{get:function(){return 7}}).a})),Ge=F,Ve=B,Xe=W,Je=G,Qe=vt,Ze=Be,tr=ve,er=Ye,rr=Object.getOwnPropertyDescriptor;P.f=Ge?rr:function(t,e){if(t=Qe(t),e=Ze(e),er)try{return rr(t,e)}catch(t){}if(tr(t,e))return Je(!Ve(Xe.f,t,e),t[e])};var nr={},ir=F&&N((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),or=Et,ar=String,cr=TypeError,ur=function(t){if(or(t))return t;throw cr(ar(t)+" is not an object")},sr=F,lr=Ye,fr=ir,hr=ur,pr=Be,dr=TypeError,vr=Object.defineProperty,gr=Object.getOwnPropertyDescriptor;nr.f=sr?fr?function(t,e,r){if(hr(t),e=pr(e),hr(r),"function"==typeof t&&"prototype"===e&&"value"in r&&"writable"in r&&!r.writable){var n=gr(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 vr(t,e,r)}:vr:function(t,e,r){if(hr(t),e=pr(e),hr(r),lr)try{return vr(t,e,r)}catch(t){}if("get"in r||"set"in r)throw dr("Accessors not supported");return"value"in r&&(t[e]=r.value),t};var yr=nr,br=G,mr=F?function(t,e,r){return yr.f(t,e,br(1,r))}:function(t,e,r){return t[e]=r,t},xr={exports:{}},Sr=F,Er=ve,wr=Function.prototype,Or=Sr&&Object.getOwnPropertyDescriptor,Tr=Er(wr,"name"),jr={EXISTS:Tr,PROPER:Tr&&"something"===function(){}.name,CONFIGURABLE:Tr&&(!Sr||Sr&&Or(wr,"name").configurable)},Ar=mt,$r=ue,kr=Z(Function.toString);Ar($r.inspectSource)||($r.inspectSource=function(t){return kr(t)});var Rr,Cr,Ir,_r=$r.inspectSource,Dr=mt,Pr=D.WeakMap,Nr=Dr(Pr)&&/native code/.test(String(Pr)),Fr=ne.exports,Lr=xe,Mr=Fr("keys"),qr=function(t){return Mr[t]||(Mr[t]=Lr(t))},Br={},Wr=Nr,zr=D,Kr=Et,Hr=mr,Ur=ve,Yr=ue,Gr=qr,Vr=Br,Xr=zr.TypeError,Jr=zr.WeakMap;if(Wr||Yr.state){var Qr=Yr.state||(Yr.state=new Jr);Qr.get=Qr.get,Qr.has=Qr.has,Qr.set=Qr.set,Rr=function(t,e){if(Qr.has(t))throw Xr("Object already initialized");return e.facade=t,Qr.set(t,e),e},Cr=function(t){return Qr.get(t)||{}},Ir=function(t){return Qr.has(t)}}else{var Zr=Gr("state");Vr[Zr]=!0,Rr=function(t,e){if(Ur(t,Zr))throw Xr("Object already initialized");return e.facade=t,Hr(t,Zr,e),e},Cr=function(t){return Ur(t,Zr)?t[Zr]:{}},Ir=function(t){return Ur(t,Zr)}}var tn={set:Rr,get:Cr,has:Ir,enforce:function(t){return Ir(t)?Cr(t):Rr(t,{})},getterFor:function(t){return function(e){var r;if(!Kr(e)||(r=Cr(e)).type!==t)throw Xr("Incompatible receiver, "+t+" required");return r}}},en=N,rn=mt,nn=ve,on=F,an=jr.CONFIGURABLE,cn=_r,un=tn.enforce,sn=tn.get,ln=Object.defineProperty,fn=on&&!en((function(){return 8!==ln((function(){}),"length",{value:8}).length})),hn=String(String).split("String"),pn=xr.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),(!nn(t,"name")||an&&t.name!==e)&&(on?ln(t,"name",{value:e,configurable:!0}):t.name=e),fn&&r&&nn(r,"arity")&&t.length!==r.arity&&ln(t,"length",{value:r.arity});try{r&&nn(r,"constructor")&&r.constructor?on&&ln(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var n=un(t);return nn(n,"source")||(n.source=hn.join("string"==typeof e?e:"")),t};Function.prototype.toString=pn((function(){return rn(this)&&sn(this).source||cn(this)}),"toString");var dn=mt,vn=nr,gn=xr.exports,yn=ae,bn=function(t,e,r,n){n||(n={});var i=n.enumerable,o=void 0!==n.name?n.name:e;if(dn(r)&&gn(r,o,n),n.global)i?t[e]=r:yn(e,r);else{try{n.unsafe?t[e]&&(i=!0):delete t[e]}catch(t){}i?t[e]=r:vn.f(t,e,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return t},mn={},xn=Math.ceil,Sn=Math.floor,En=Math.trunc||function(t){var e=+t;return(e>0?Sn:xn)(e)},wn=function(t){var e=+t;return e!=e||0===e?0:En(e)},On=wn,Tn=Math.max,jn=Math.min,An=function(t,e){var r=On(t);return r<0?Tn(r+e,0):jn(r,e)},$n=wn,kn=Math.min,Rn=function(t){return t>0?kn($n(t),9007199254740991):0},Cn=Rn,In=function(t){return Cn(t.length)},_n=vt,Dn=An,Pn=In,Nn=function(t){return function(e,r,n){var i,o=_n(e),a=Pn(o),c=Dn(n,a);if(t&&r!=r){for(;a>c;)if((i=o[c++])!=i)return!0}else for(;a>c;c++)if((t||c in o)&&o[c]===r)return t||c||0;return!t&&-1}},Fn={includes:Nn(!0),indexOf:Nn(!1)},Ln=ve,Mn=vt,qn=Fn.indexOf,Bn=Br,Wn=Z([].push),zn=function(t,e){var r,n=Mn(t),i=0,o=[];for(r in n)!Ln(Bn,r)&&Ln(n,r)&&Wn(o,r);for(;e.length>i;)Ln(n,r=e[i++])&&(~qn(o,r)||Wn(o,r));return o},Kn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Hn=zn,Un=Kn.concat("length","prototype");mn.f=Object.getOwnPropertyNames||function(t){return Hn(t,Un)};var Yn={};Yn.f=Object.getOwnPropertySymbols;var Gn=jt,Vn=mn,Xn=Yn,Jn=ur,Qn=Z([].concat),Zn=Gn("Reflect","ownKeys")||function(t){var e=Vn.f(Jn(t)),r=Xn.f;return r?Qn(e,r(t)):e},ti=ve,ei=Zn,ri=P,ni=nr,ii=N,oi=mt,ai=/#|\.prototype\./,ci=function(t,e){var r=si[ui(t)];return r==fi||r!=li&&(oi(e)?ii(e):!!e)},ui=ci.normalize=function(t){return String(t).replace(ai,".").toLowerCase()},si=ci.data={},li=ci.NATIVE="N",fi=ci.POLYFILL="P",hi=ci,pi=D,di=P.f,vi=mr,gi=bn,yi=ae,bi=function(t,e,r){for(var n=ei(e),i=ni.f,o=ri.f,a=0;a<n.length;a++){var c=n[a];ti(t,c)||r&&ti(r,c)||i(t,c,o(e,c))}},mi=hi,xi=function(t,e){var r,n,i,o,a,c=t.target,u=t.global,s=t.stat;if(r=u?pi:s?pi[c]||yi(c,{}):(pi[c]||{}).prototype)for(n in e){if(o=e[n],i=t.dontCallGetSet?(a=di(r,n))&&a.value:r[n],!mi(u?n:c+(s?".":"#")+n,t.forced)&&void 0!==i){if(typeof o==typeof i)continue;bi(o,i)}(t.sham||i&&i.sham)&&vi(o,"sham",!0),gi(r,n,o,t)}},Si=nt,Ei=Z,wi=function(t){if("Function"===Si(t))return Ei(t)},Oi=Vt,Ti=L,ji=wi(wi.bind),Ai=nt,$i=Array.isArray||function(t){return"Array"==Ai(t)},ki={};ki[Ce("toStringTag")]="z";var Ri="[object z]"===String(ki),Ci=Ri,Ii=mt,_i=nt,Di=Ce("toStringTag"),Pi=Object,Ni="Arguments"==_i(function(){return arguments}()),Fi=Ci?_i: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=Pi(t),Di))?r:Ni?_i(e):"Object"==(n=_i(e))&&Ii(e.callee)?"Arguments":n},Li=Z,Mi=N,qi=mt,Bi=Fi,Wi=_r,zi=function(){},Ki=[],Hi=jt("Reflect","construct"),Ui=/^\s*(?:class|function)\b/,Yi=Li(Ui.exec),Gi=!Ui.exec(zi),Vi=function(t){if(!qi(t))return!1;try{return Hi(zi,Ki,t),!0}catch(t){return!1}},Xi=function(t){if(!qi(t))return!1;switch(Bi(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Gi||!!Yi(Ui,Wi(t))}catch(t){return!0}};Xi.sham=!0;var Ji=!Hi||Mi((function(){var t;return Vi(Vi.call)||!Vi(Object)||!Vi((function(){t=!0}))||t}))?Xi:Vi,Qi=$i,Zi=Ji,to=Et,eo=Ce("species"),ro=Array,no=function(t){var e;return Qi(t)&&(e=t.constructor,(Zi(e)&&(e===ro||Qi(e.prototype))||to(e)&&null===(e=e[eo]))&&(e=void 0)),void 0===e?ro:e},io=function(t,e){return new(no(t))(0===e?0:e)},oo=function(t,e){return Oi(t),void 0===e?t:Ti?ji(t,e):function(){return t.apply(e,arguments)}},ao=ut,co=he,uo=In,so=io,lo=Z([].push),fo=function(t){var e=1==t,r=2==t,n=3==t,i=4==t,o=6==t,a=7==t,c=5==t||o;return function(u,s,l,f){for(var h,p,d=co(u),v=ao(d),g=oo(s,l),y=uo(v),b=0,m=f||so,x=e?m(u,y):r||a?m(u,0):void 0;y>b;b++)if((c||b in v)&&(p=g(h=v[b],b,d),t))if(e)x[b]=p;else if(p)switch(t){case 3:return!0;case 5:return h;case 6:return b;case 2:lo(x,h)}else switch(t){case 4:return!1;case 7:lo(x,h)}return o?-1:n||i?i:x}},ho={forEach:fo(0),map:fo(1),filter:fo(2),some:fo(3),every:fo(4),find:fo(5),findIndex:fo(6),filterReject:fo(7)},po=N,vo=Dt,go=Ce("species"),yo=function(t){return vo>=51||!po((function(){var e=[];return(e.constructor={})[go]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},bo=ho.filter;xi({target:"Array",proto:!0,forced:!yo("filter")},{filter:function(t){return bo(this,t,arguments.length>1?arguments[1]:void 0)}});var mo=Fi,xo=Ri?{}.toString:function(){return"[object "+mo(this)+"]"};Ri||bn(Object.prototype,"toString",xo,{unsafe:!0});var So=F,Eo=jr.EXISTS,wo=Z,Oo=nr.f,To=Function.prototype,jo=wo(To.toString),Ao=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,$o=wo(Ao.exec);So&&!Eo&&Oo(To,"name",{configurable:!0,get:function(){try{return $o(Ao,jo(this))[1]}catch(t){return""}}});var ko=F,Ro=$i,Co=TypeError,Io=Object.getOwnPropertyDescriptor,_o=ko&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}(),Do=TypeError,Po=Be,No=nr,Fo=G,Lo=Ht,Mo=TypeError,qo=xi,Bo=he,Wo=An,zo=wn,Ko=In,Ho=_o?function(t,e){if(Ro(t)&&!Io(t,"length").writable)throw Co("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e},Uo=function(t){if(t>9007199254740991)throw Do("Maximum allowed index exceeded");return t},Yo=io,Go=function(t,e,r){var n=Po(e);n in t?No.f(t,n,Fo(0,r)):t[n]=r},Vo=function(t,e){if(!delete t[e])throw Mo("Cannot delete property "+Lo(e)+" of "+Lo(t))},Xo=yo("splice"),Jo=Math.max,Qo=Math.min;qo({target:"Array",proto:!0,forced:!Xo},{splice:function(t,e){var r,n,i,o,a,c,u=Bo(this),s=Ko(u),l=Wo(t,s),f=arguments.length;for(0===f?r=n=0:1===f?(r=0,n=s-l):(r=f-2,n=Qo(Jo(zo(e),0),s-l)),Uo(s+r-n),i=Yo(u,n),o=0;o<n;o++)(a=l+o)in u&&Go(i,o,u[a]);if(i.length=n,r<n){for(o=l;o<s-n;o++)c=o+r,(a=o+n)in u?u[c]=u[a]:Vo(u,c);for(o=s;o>s-n+r;o--)Vo(u,o-1)}else if(r>n)for(o=s-n;o>l;o--)c=o+r-1,(a=o+n-1)in u?u[c]=u[a]:Vo(u,c);for(o=0;o<r;o++)u[o+l]=arguments[o+2];return Ho(u,s-n+r),i}});var Zo=Fi,ta=String,ea=function(t){if("Symbol"===Zo(t))throw TypeError("Cannot convert a Symbol value to a string");return ta(t)},ra=ur,na=function(){var t=ra(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},ia=N,oa=D.RegExp,aa=ia((function(){var t=oa("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),ca=aa||ia((function(){return!oa("a","y").sticky})),ua=aa||ia((function(){var t=oa("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),sa={BROKEN_CARET:ua,MISSED_STICKY:ca,UNSUPPORTED_Y:aa},la={},fa=zn,ha=Kn,pa=Object.keys||function(t){return fa(t,ha)},da=F,va=ir,ga=nr,ya=ur,ba=vt,ma=pa;la.f=da&&!va?Object.defineProperties:function(t,e){ya(t);for(var r,n=ba(e),i=ma(e),o=i.length,a=0;o>a;)ga.f(t,r=i[a++],n[r]);return t};var xa,Sa=jt("document","documentElement"),Ea=ur,wa=la,Oa=Kn,Ta=Br,ja=Sa,Aa=He,$a=qr("IE_PROTO"),ka=function(){},Ra=function(t){return"<script>"+t+"<\/script>"},Ca=function(t){t.write(Ra("")),t.close();var e=t.parentWindow.Object;return t=null,e},Ia=function(){try{xa=new ActiveXObject("htmlfile")}catch(t){}var t,e;Ia="undefined"!=typeof document?document.domain&&xa?Ca(xa):((e=Aa("iframe")).style.display="none",ja.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(Ra("document.F=Object")),t.close(),t.F):Ca(xa);for(var r=Oa.length;r--;)delete Ia.prototype[Oa[r]];return Ia()};Ta[$a]=!0;var _a=Object.create||function(t,e){var r;return null!==t?(ka.prototype=Ea(t),r=new ka,ka.prototype=null,r[$a]=t):r=Ia(),void 0===e?r:wa.f(r,e)},Da=N,Pa=D.RegExp,Na=Da((function(){var t=Pa(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),Fa=N,La=D.RegExp,Ma=Fa((function(){var t=La("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),qa=B,Ba=Z,Wa=ea,za=na,Ka=sa,Ha=ne.exports,Ua=_a,Ya=tn.get,Ga=Na,Va=Ma,Xa=Ha("native-string-replace",String.prototype.replace),Ja=RegExp.prototype.exec,Qa=Ja,Za=Ba("".charAt),tc=Ba("".indexOf),ec=Ba("".replace),rc=Ba("".slice),nc=function(){var t=/a/,e=/b*/g;return qa(Ja,t,"a"),qa(Ja,e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),ic=Ka.BROKEN_CARET,oc=void 0!==/()??/.exec("")[1];(nc||oc||ic||Ga||Va)&&(Qa=function(t){var e,r,n,i,o,a,c,u=this,s=Ya(u),l=Wa(t),f=s.raw;if(f)return f.lastIndex=u.lastIndex,e=qa(Qa,f,l),u.lastIndex=f.lastIndex,e;var h=s.groups,p=ic&&u.sticky,d=qa(za,u),v=u.source,g=0,y=l;if(p&&(d=ec(d,"y",""),-1===tc(d,"g")&&(d+="g"),y=rc(l,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&"\n"!==Za(l,u.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),r=new RegExp("^(?:"+v+")",d)),oc&&(r=new RegExp("^"+v+"$(?!\\s)",d)),nc&&(n=u.lastIndex),i=qa(Ja,p?r:u,y),p?i?(i.input=rc(i.input,g),i[0]=rc(i[0],g),i.index=u.lastIndex,u.lastIndex+=i[0].length):u.lastIndex=0:nc&&i&&(u.lastIndex=u.global?i.index+i[0].length:n),oc&&i&&i.length>1&&qa(Xa,i[0],r,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(i[o]=void 0)})),i&&h)for(i.groups=a=Ua(null),o=0;o<h.length;o++)a[(c=h[o])[0]]=i[c[1]];return i});var ac=Qa;xi({target:"RegExp",proto:!0,forced:/./.exec!==ac},{exec:ac});var cc,uc,sc=xi,lc=B,fc=mt,hc=ur,pc=ea,dc=(cc=!1,(uc=/[ac]/).exec=function(){return cc=!0,/./.exec.apply(this,arguments)},!0===uc.test("abc")&&cc),vc=/./.test;sc({target:"RegExp",proto:!0,forced:!dc},{test:function(t){var e=hc(this),r=pc(t),n=e.exec;if(!fc(n))return lc(vc,e,r);var i=lc(n,e,r);return null!==i&&(hc(i),!0)}});var gc=L,yc=Function.prototype,bc=yc.apply,mc=yc.call,xc="object"==typeof Reflect&&Reflect.apply||(gc?mc.bind(bc):function(){return mc.apply(bc,arguments)}),Sc=wi,Ec=bn,wc=ac,Oc=N,Tc=Ce,jc=mr,Ac=Tc("species"),$c=RegExp.prototype,kc=Z,Rc=wn,Cc=ea,Ic=ht,_c=kc("".charAt),Dc=kc("".charCodeAt),Pc=kc("".slice),Nc=function(t){return function(e,r){var n,i,o=Cc(Ic(e)),a=Rc(r),c=o.length;return a<0||a>=c?t?"":void 0:(n=Dc(o,a))<55296||n>56319||a+1===c||(i=Dc(o,a+1))<56320||i>57343?t?_c(o,a):n:t?Pc(o,a,a+2):i-56320+(n-55296<<10)+65536}},Fc={codeAt:Nc(!1),charAt:Nc(!0)}.charAt,Lc=Z,Mc=he,qc=Math.floor,Bc=Lc("".charAt),Wc=Lc("".replace),zc=Lc("".slice),Kc=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Hc=/\$([$&'`]|\d{1,2})/g,Uc=B,Yc=ur,Gc=mt,Vc=nt,Xc=ac,Jc=TypeError,Qc=xc,Zc=B,tu=Z,eu=function(t,e,r,n){var i=Tc(t),o=!Oc((function(){var e={};return e[i]=function(){return 7},7!=""[t](e)})),a=o&&!Oc((function(){var e=!1,r=/a/;return"split"===t&&((r={}).constructor={},r.constructor[Ac]=function(){return r},r.flags="",r[i]=/./[i]),r.exec=function(){return e=!0,null},r[i](""),!e}));if(!o||!a||r){var c=Sc(/./[i]),u=e(i,""[t],(function(t,e,r,n,i){var a=Sc(t),u=e.exec;return u===wc||u===$c.exec?o&&!i?{done:!0,value:c(e,r,n)}:{done:!0,value:a(r,e,n)}:{done:!1}}));Ec(String.prototype,t,u[0]),Ec($c,i,u[1])}n&&jc($c[i],"sham",!0)},ru=N,nu=ur,iu=mt,ou=st,au=wn,cu=Rn,uu=ea,su=ht,lu=function(t,e,r){return e+(r?Fc(t,e).length:1)},fu=Qt,hu=function(t,e,r,n,i,o){var a=r+t.length,c=n.length,u=Hc;return void 0!==i&&(i=Mc(i),u=Kc),Wc(o,u,(function(o,u){var s;switch(Bc(u,0)){case"$":return"$";case"&":return t;case"`":return zc(e,0,r);case"'":return zc(e,a);case"<":s=i[zc(u,1,-1)];break;default:var l=+u;if(0===l)return o;if(l>c){var f=qc(l/10);return 0===f?o:f<=c?void 0===n[f-1]?Bc(u,1):n[f-1]+Bc(u,1):o}s=n[l-1]}return void 0===s?"":s}))},pu=function(t,e){var r=t.exec;if(Gc(r)){var n=Uc(r,t,e);return null!==n&&Yc(n),n}if("RegExp"===Vc(t))return Uc(Xc,t,e);throw Jc("RegExp#exec called on incompatible receiver")},du=Ce("replace"),vu=Math.max,gu=Math.min,yu=tu([].concat),bu=tu([].push),mu=tu("".indexOf),xu=tu("".slice),Su="$0"==="a".replace(/./,"$0"),Eu=!!/./[du]&&""===/./[du]("a","$0"),wu=!ru((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}));eu("replace",(function(t,e,r){var n=Eu?"$":"$0";return[function(t,r){var n=su(this),i=ou(t)?void 0:fu(t,du);return i?Zc(i,t,n,r):Zc(e,uu(n),t,r)},function(t,i){var o=nu(this),a=uu(t);if("string"==typeof i&&-1===mu(i,n)&&-1===mu(i,"$<")){var c=r(e,o,a,i);if(c.done)return c.value}var u=iu(i);u||(i=uu(i));var s=o.global;if(s){var l=o.unicode;o.lastIndex=0}for(var f=[];;){var h=pu(o,a);if(null===h)break;if(bu(f,h),!s)break;""===uu(h[0])&&(o.lastIndex=lu(a,cu(o.lastIndex),l))}for(var p,d="",v=0,g=0;g<f.length;g++){for(var y=uu((h=f[g])[0]),b=vu(gu(au(h.index),a.length),0),m=[],x=1;x<h.length;x++)bu(m,void 0===(p=h[x])?p:String(p));var S=h.groups;if(u){var E=yu([y],m,b,a);void 0!==S&&bu(E,S);var w=uu(Qc(i,void 0,E))}else w=hu(y,a,b,m,S,i);b>=v&&(d+=xu(a,v,b)+w,v=b+y.length)}return d+xu(a,v)}]}),!wu||!Su||Eu);var Ou=mt,Tu=String,ju=TypeError,Au=Z,$u=ur,ku=function(t){if("object"==typeof t||Ou(t))return t;throw ju("Can't set "+Tu(t)+" as a prototype")},Ru=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=Au(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return $u(r),ku(n),e?t(r,n):r.__proto__=n,r}}():void 0),Cu=mt,Iu=Et,_u=Ru,Du=Et,Pu=nt,Nu=Ce("match"),Fu=B,Lu=ve,Mu=At,qu=na,Bu=RegExp.prototype,Wu=function(t){var e=t.flags;return void 0!==e||"flags"in Bu||Lu(t,"flags")||!Mu(Bu,t)?e:Fu(qu,t)},zu=nr.f,Ku=jt,Hu=nr,Uu=F,Yu=Ce("species"),Gu=F,Vu=D,Xu=Z,Ju=hi,Qu=function(t,e,r){var n,i;return _u&&Cu(n=e.constructor)&&n!==r&&Iu(i=n.prototype)&&i!==r.prototype&&_u(t,i),t},Zu=mr,ts=mn.f,es=At,rs=function(t){var e;return Du(t)&&(void 0!==(e=t[Nu])?!!e:"RegExp"==Pu(t))},ns=ea,is=Wu,os=sa,as=function(t,e,r){r in t||zu(t,r,{configurable:!0,get:function(){return e[r]},set:function(t){e[r]=t}})},cs=bn,us=N,ss=ve,ls=tn.enforce,fs=function(t){var e=Ku(t),r=Hu.f;Uu&&e&&!e[Yu]&&r(e,Yu,{configurable:!0,get:function(){return this}})},hs=Na,ps=Ma,ds=Ce("match"),vs=Vu.RegExp,gs=vs.prototype,ys=Vu.SyntaxError,bs=Xu(gs.exec),ms=Xu("".charAt),xs=Xu("".replace),Ss=Xu("".indexOf),Es=Xu("".slice),ws=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,Os=/a/g,Ts=/a/g,js=new vs(Os)!==Os,As=os.MISSED_STICKY,$s=os.UNSUPPORTED_Y,ks=Gu&&(!js||As||hs||ps||us((function(){return Ts[ds]=!1,vs(Os)!=Os||vs(Ts)==Ts||"/a/i"!=vs(Os,"i")})));if(Ju("RegExp",ks)){for(var Rs=function(t,e){var r,n,i,o,a,c,u=es(gs,this),s=rs(t),l=void 0===e,f=[],h=t;if(!u&&s&&l&&t.constructor===Rs)return t;if((s||es(gs,t))&&(t=t.source,l&&(e=is(h))),t=void 0===t?"":ns(t),e=void 0===e?"":ns(e),h=t,hs&&"dotAll"in Os&&(n=!!e&&Ss(e,"s")>-1)&&(e=xs(e,/s/g,"")),r=e,As&&"sticky"in Os&&(i=!!e&&Ss(e,"y")>-1)&&$s&&(e=xs(e,/y/g,"")),ps&&(o=function(t){for(var e,r=t.length,n=0,i="",o=[],a={},c=!1,u=!1,s=0,l="";n<=r;n++){if("\\"===(e=ms(t,n)))e+=ms(t,++n);else if("]"===e)c=!1;else if(!c)switch(!0){case"["===e:c=!0;break;case"("===e:bs(ws,Es(t,n+1))&&(n+=2,u=!0),i+=e,s++;continue;case">"===e&&u:if(""===l||ss(a,l))throw new ys("Invalid capture group name");a[l]=!0,o[o.length]=[l,s],u=!1,l="";continue}u?l+=e:i+=e}return[i,o]}(t),t=o[0],f=o[1]),a=Qu(vs(t,e),u?this:gs,Rs),(n||i||f.length)&&(c=ls(a),n&&(c.dotAll=!0,c.raw=Rs(function(t){for(var e,r=t.length,n=0,i="",o=!1;n<=r;n++)"\\"!==(e=ms(t,n))?o||"."!==e?("["===e?o=!0:"]"===e&&(o=!1),i+=e):i+="[\\s\\S]":i+=e+ms(t,++n);return i}(t),r)),i&&(c.sticky=!0),f.length&&(c.groups=f)),t!==h)try{Zu(a,"source",""===h?"(?:)":h)}catch(t){}return a},Cs=ts(vs),Is=0;Cs.length>Is;)as(Rs,vs,Cs[Is++]);gs.constructor=Rs,Rs.prototype=gs,cs(Vu,"RegExp",Rs,{constructor:!0})}fs("RegExp");var _s=xr.exports,Ds=nr,Ps=F,Ns=sa.MISSED_STICKY,Fs=nt,Ls=function(t,e,r){return r.get&&_s(r.get,e,{getter:!0}),r.set&&_s(r.set,e,{setter:!0}),Ds.f(t,e,r)},Ms=tn.get,qs=RegExp.prototype,Bs=TypeError;Ps&&Ns&&Ls(qs,"sticky",{configurable:!0,get:function(){if(this!==qs){if("RegExp"===Fs(this))return!!Ms(this).sticky;throw Bs("Incompatible receiver, RegExp required")}}});var Ws=jr.PROPER,zs=bn,Ks=ur,Hs=ea,Us=N,Ys=Wu,Gs=RegExp.prototype.toString,Vs=Us((function(){return"/a/b"!=Gs.call({source:"a",flags:"b"})})),Xs=Ws&&"toString"!=Gs.name;(Vs||Xs)&&zs(RegExp.prototype,"toString",(function(){var t=Ks(this);return"/"+Hs(t.source)+"/"+Hs(Ys(t))}),{unsafe:!0});var Js={name:"BaseTransferTree",inheritAttrs:!1,model:{prop:"value",event:"transferChange"},props:{value:{type:Array},treeAttribute:{type:Object,default:function(){return{}}},ctStyle:{type:Object,default:function(){return{}}},ctCls:{type:Object,default:function(){return{}}},isRender:{type:Boolean,default:!0},isDisplay:{type:Boolean,default:!0},width:{type:String,default:"auto"},title:{type:String},activeName:{type:String},filter:{type:Function},itemDisplayField:{type:String,default:"name"}},watch:{filterText:{handler:function(t,e){t===e||""===t&&null===t||(S(this.filter)||S(this.debouncedLoadListData)||!k(this.$slots,"expand")||this.debouncedLoadListData(t,this.activeName),k(this.$slots,"expand")||S(this.$refs["".concat(this._uid,"-transfer-tree-ref")])||this.$refs["".concat(this._uid,"-transfer-tree-ref")].getTree().filter(t))},immediate:!0},activeName:function(t,e){t!==e&&(this.curActiveName=t,this.tabActiveName=t,S(this.filter)||S(this.debouncedLoadListData)||this.debouncedLoadListData(this.filterText,this.activeName))},value:{handler:function(){if(!S(this.value)&&!A(this.value)&&k(this.$slots,"expand"))for(var t=0,e=this.value.length;t<e;t++){var r=R(this.value[t])[0];m(this.rightSlotExpandData,r,$(this.value[t],r))}S(this.value)||A(this.value)||k(this.$slots,"expand")||(this.leftTreeCheckedStore=this.value)},immediate:!0,deep:!0}},data:function(){return this.displayField="name",this.valueField="id",this.childrenField="children",this.events={removeItem:"removeItem",treeLoadSuccess:"treeLoadSuccess"},{filterText:"",leftTreeCheckedStore:[],curActiveName:null,rightSlotExpandData:{},tabActiveName:null}},created:function(){if(this.displayField=$(this.treeAttribute,"displayField","name"),this.valueField=$(this.treeAttribute,"valueField","id"),this.childrenField=$(this.treeAttribute,"props.children","children"),k(this.$slots,"expand")&&k(this.$slots,"expand[0].data.attrs.name")){this.curActiveName=$(this.$slots,"expand[0].data.attrs.name"),this.tabActiveName=this.curActiveName;for(var t=0,e=this.$slots.expand.length;t<e;t++){var r=$(this.$slots.expand[t],"data.attrs.name");this.$set(this.rightSlotExpandData,r,null)}}this.debouncedLoadListData=O(S(this.filter)?this.filterNode:this.filter,500)},methods:{getTree:function(){return this.$refs["".concat(this._uid,"-transfer-tree-ref")].getTree()},getBaseTree:function(){return this.$refs["".concat(this._uid,"-transfer-tree-ref")]},createLeftBox:function(){var t=this,e=this.$createElement,r=[];return k(this.$slots,"expand")?r.push(e("base-view-collapse",{props:{activeName:this.curActiveName},on:{changeActiveName:function(e){t.curActiveName=e}}},E(this.$slots.expand,(function(t){return e("div",{attrs:T(t.data.attrs,["title"]),style:{height:"100%"}},[t.children[0]])})))):r.push(this.createLeftTree()),e("div",{class:{"left-tree":!0}},[e("base-border-layout",{props:{northHeight:"60px",westWidth:"0px",eastWidth:"0px",southHeight:"0px",isPadding:!1,ctCls:"base-transfer-tree-left-cls"}},[e("div",{class:{"search-north-bar":!0},slot:"north",props:{}},[e("div",{},[this.title]),e("div",{},[e("el-input",{attrs:{placeholder:"请输入关键字进行过滤",maxlength:"40"},props:{value:this.filterText,showWordLimit:!0,clearable:!0},on:{input:function(e){t.filterText=e}}})])]),e("div",{class:{"show-tree-center":!0},slot:"center",props:{}},r)])])},createRightBox:function(){var t=this,e=this.$createElement;return e("div",{class:{"right-tree":!0}},[e("base-border-layout",{props:{northHeight:k(this.$slots,"expand")?"0":"15px",westWidth:"0px",eastWidth:"0px",southHeight:"0px",isPadding:!1,ctCls:"base-transfer-tree-left-cls"}},[e("div",{class:{"search-north-bar":!0},slot:"north",props:{}},[k(this.$slots,"expand")?e():e("el-popconfirm",{props:{title:"确认清空?"},on:{confirm:function(){var e=t.$refs["".concat(t._uid,"-transfer-tree-ref")];S(e)||(t.leftTreeCheckedStore=[],e.clearChecked(),t.$emit("transferChange",[]))}}},[e("span",{slot:"reference"},["清空",e("i",{class:"el-icon-delete"})])])]),e("div",{class:{"right-show-tree-center":!0},slot:"center"},[k(this.$slots,"expand")?this.createRightSlotExpandBox():this.createRightTree()])])])},createOperationBox:function(){var t=this.$createElement;return t("div",{class:{"operation-box":!0}},[t("el-button",{props:{type:"primary",icon:"el-icon-back"}}),t("el-button",{props:{type:"primary",icon:"el-icon-right"}})])},createLeftTree:function(){var t=this,e=(0,this.$createElement)("base-tree",{ref:"".concat(this._uid,"-transfer-tree-ref"),props:this.treeAttribute,attrs:b({"filter-node-method":this.filterNode},y(this.treeAttribute,["default-expanded-keys","defaultExpandedKeys","default-checked-keys","defaultCheckedKeys","show-checkbox","showCheckbox","check-strictly","checkStrictly"])),on:{treeChange:function(e,r,n){S(r)||S(n)||(t.leftTreeCheckedStore=x(E(n.checkedNodes,(function(e){if(!k(e,t.childrenField)||(k(t.treeAttribute,"check-strictly")||k(t.treeAttribute,"checkStrictly"))&&t.treeAttribute.checkStrictly){var r,n=t.$refs["".concat(t._uid,"-transfer-tree-ref")].getDefaultProps();return C(r={},n.label,e[n.label]),C(r,n.value,e[n.value]),r}})),(function(t){return!S(t)})),t.$emit("transferChange",t.leftTreeCheckedStore))},afterLoadStore:function(e){t.$emit("treeLoadSuccess",e)}}},[]);return e},createRightSlotExpandBox:function(){for(var t=this,e=[],r=this.$createElement,n=0,i=this.$slots.expand.length;n<i;n++){var o=$(this.$slots.expand[n],"data.attrs"),a=o.title,c=o.name,u=r("el-tab-pane",{props:{label:a,name:c}},[r("div",{class:{"right-slot-expand-tab-inner":!0}},[this.createRightSlotExpandList($(this.rightSlotExpandData,c,[]),c)])]);e.push(u)}return[r("el-tabs",{props:{value:this.tabActiveName},on:{input:function(e){t.tabActiveName=e},tabClick:function(t,e){}}},[e])]},createRightTree:function(){var t=this,e=this.$createElement,r=e();return A(this.leftTreeCheckedStore)?[e("div",{class:"no-slot-empty"},["请先选择数据"])]:(r=E(this.leftTreeCheckedStore,(function(r){return e("li",{},[e("span",{},[$(r,t.itemDisplayField)]),e("i",{class:"el-icon-remove-outline",on:{click:function(e){var n=w(t.leftTreeCheckedStore,(function(e){return e[t.valueField]===r[t.valueField]}));-1!==n&&(t.leftTreeCheckedStore.splice(n,1),t.$nextTick((function(){t.$refs["".concat(t._uid,"-transfer-tree-ref")].setCheckedKeys(E(t.leftTreeCheckedStore,(function(e){return e[t.valueField]})))})),t.$emit("transferChange",t.leftTreeCheckedStore))}}})])})),e("ul",{},r))},createRightSlotExpandList:function(t,e){var r=this,n=this.$createElement,i=n();return A(t)?[n("div",{class:"empty"},["请先选择数据"])]:(i=E(t,(function(t){return n("li",{},[n("span",{},[$(t,r.itemDisplayField)]),n("i",{class:"el-icon-remove-outline",on:{click:function(n){$(r.rightSlotExpandData,e),r.$emit(r.events.removeItem,$(r.rightSlotExpandData,e),t,e,n)}}})])})),n("ul",{},i))},filterNode:function(t,e){return!t||-1!==$(e,this.treeAttribute.displayField,"name").indexOf(t)},setActivateTabData:function(t){k(this.rightSlotExpandData,this.activeName)||m(this.rightSlotExpandData,this.activeName,[]),this.rightSlotExpandData[this.activeName]=t;for(var e=[],r=0,n=R(this.rightSlotExpandData).length;r<n;r++){var i=R(this.rightSlotExpandData)[r],o=m({},i,null===$(this.rightSlotExpandData,i,[])?[]:$(this.rightSlotExpandData,i,[]));e.push(o)}this.$emit("transferChange",e)}},render:function(t){if(g(this.isRender,!1))return t();var e=b({width:this.width},$(this.$props,"ctStyle",{}));return"auto"!==this.width&&(e.width=this.width),g(this.isDisplay,!1)&&m(e,"display","none"),t("div",{ref:"".concat(this._uid,"-el-transfer-tree-ref"),class:b({"base-transfer-tree":!0},$(this.$props,"ctCls",{})),style:e},[this.createLeftBox(),this.createRightBox()])}};Js.install=function(t,e){var r;if(r="按需加载独立组件:"+Js.name,"development"!==process.env.NODE_ENV&&"dev"!==process.env.NODE_ENV||console.warn(r),j(e)&&!A(e))for(var n=0;n<e.length;n++)e[n].name!==Js.name&&t.use(e[n]);t.component(Js.name,Js)},exports.BaseTransferTree=Js;