UNPKG

shu-c-view

Version:

rollup 打包vue组件库框架

7 lines (6 loc) 29.2 kB
/*! * shu-c-view v1.2.87 * (c) 2024-10-22 * @license MIT */ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("lodash/isString"),t=require("lodash/isEmpty"),r=require("lodash/has"),n=require("lodash/isBoolean"),o=require("lodash/get"),i=require("lodash/omit"),a=require("lodash/assign"),u=require("lodash/set"),c=require("lodash/isNil"),l=require("lodash/isArray"),s=require("lodash/find"),f=require("lodash/forEach");function p(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var d=p(e),h=p(t),v=p(r),b=p(n),g=p(o),m=p(i),y=p(a),w=p(u),E=p(c),S=p(l),x=p(s),O=p(f);function I(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var j,F,_="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},A=function(e){try{return!!e()}catch(e){return!0}},R=!A((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),T=function(e){return e&&e.Math==Math&&e},C=T("object"==typeof globalThis&&globalThis)||T("object"==typeof window&&window)||T("object"==typeof self&&self)||T("object"==typeof _&&_)||function(){return this}()||Function("return this")(),N=!A((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),P=N,$=Function.prototype,D=$.call,M=P&&$.bind.bind(D,D),k=P?M:function(e){return function(){return D.apply(e,arguments)}},L="object"==typeof document&&document.all,q={all:L,IS_HTMLDDA:void 0===L&&void 0!==L},B=q.all,V=q.IS_HTMLDDA?function(e){return"function"==typeof e||e===B}:function(e){return"function"==typeof e},z=A,U=V,G=/#|\.prototype\./,W=function(e,t){var r=K[Y(e)];return r==J||r!=X&&(U(t)?z(t):!!t)},Y=W.normalize=function(e){return String(e).replace(G,".").toLowerCase()},K=W.data={},X=W.NATIVE="N",J=W.POLYFILL="P",H=W,Q={},Z=V,ee=q.all,te=q.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:Z(e)||e===ee}:function(e){return"object"==typeof e?null!==e:Z(e)},re=te,ne=C.document,oe=re(ne)&&re(ne.createElement),ie=function(e){return oe?ne.createElement(e):{}},ae=ie,ue=!R&&!A((function(){return 7!=Object.defineProperty(ae("div"),"a",{get:function(){return 7}}).a})),ce=R&&A((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),le=te,se=String,fe=TypeError,pe=function(e){if(le(e))return e;throw fe(se(e)+" is not an object")},de=N,he=Function.prototype.call,ve=de?he.bind(he):function(){return he.apply(he,arguments)},be=C,ge=V,me=function(e){return ge(e)?e:void 0},ye=function(e,t){return arguments.length<2?me(be[e]):be[e]&&be[e][t]},we=k({}.isPrototypeOf),Ee=C,Se=ye("navigator","userAgent")||"",xe=Ee.process,Oe=Ee.Deno,Ie=xe&&xe.versions||Oe&&Oe.version,je=Ie&&Ie.v8;je&&(F=(j=je.split("."))[0]>0&&j[0]<4?1:+(j[0]+j[1])),!F&&Se&&(!(j=Se.match(/Edge\/(\d+)/))||j[1]>=74)&&(j=Se.match(/Chrome\/(\d+)/))&&(F=+j[1]);var Fe=F,_e=A,Ae=!!Object.getOwnPropertySymbols&&!_e((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Fe&&Fe<41})),Re=Ae&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Te=ye,Ce=V,Ne=we,Pe=Object,$e=Re?function(e){return"symbol"==typeof e}:function(e){var t=Te("Symbol");return Ce(t)&&Ne(t.prototype,Pe(e))},De=String,Me=V,ke=function(e){try{return De(e)}catch(e){return"Object"}},Le=TypeError,qe=function(e){return null==e},Be=function(e){if(Me(e))return e;throw Le(ke(e)+" is not a function")},Ve=qe,ze=function(e,t){var r=e[t];return Ve(r)?void 0:Be(r)},Ue=ve,Ge=V,We=te,Ye=TypeError,Ke={exports:{}},Xe=C,Je=Object.defineProperty,He=function(e,t){try{Je(Xe,e,{value:t,configurable:!0,writable:!0})}catch(r){Xe[e]=t}return t},Qe=He,Ze=C["__core-js_shared__"]||Qe("__core-js_shared__",{}),et=Ze;(Ke.exports=function(e,t){return et[e]||(et[e]=void 0!==t?t:{})})("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 tt=qe,rt=TypeError,nt=function(e){if(tt(e))throw rt("Can't call method on "+e);return e},ot=nt,it=Object,at=function(e){return it(ot(e))},ut=at,ct=k({}.hasOwnProperty),lt=Object.hasOwn||function(e,t){return ct(ut(e),t)},st=k,ft=0,pt=Math.random(),dt=st(1..toString),ht=function(e){return"Symbol("+(void 0===e?"":e)+")_"+dt(++ft+pt,36)},vt=C,bt=Ke.exports,gt=lt,mt=ht,yt=Ae,wt=Re,Et=bt("wks"),St=vt.Symbol,xt=St&&St.for,Ot=wt?St:St&&St.withoutSetter||mt,It=function(e){if(!gt(Et,e)||!yt&&"string"!=typeof Et[e]){var t="Symbol."+e;yt&&gt(St,e)?Et[e]=St[e]:Et[e]=wt&&xt?xt(t):Ot(t)}return Et[e]},jt=ve,Ft=te,_t=$e,At=ze,Rt=function(e,t){var r,n;if("string"===t&&Ge(r=e.toString)&&!We(n=Ue(r,e)))return n;if(Ge(r=e.valueOf)&&!We(n=Ue(r,e)))return n;if("string"!==t&&Ge(r=e.toString)&&!We(n=Ue(r,e)))return n;throw Ye("Can't convert object to primitive value")},Tt=TypeError,Ct=It("toPrimitive"),Nt=function(e,t){if(!Ft(e)||_t(e))return e;var r,n=At(e,Ct);if(n){if(void 0===t&&(t="default"),r=jt(n,e,t),!Ft(r)||_t(r))return r;throw Tt("Can't convert object to primitive value")}return void 0===t&&(t="number"),Rt(e,t)},Pt=Nt,$t=$e,Dt=function(e){var t=Pt(e,"string");return $t(t)?t:t+""},Mt=R,kt=ue,Lt=ce,qt=pe,Bt=Dt,Vt=TypeError,zt=Object.defineProperty,Ut=Object.getOwnPropertyDescriptor;Q.f=Mt?Lt?function(e,t,r){if(qt(e),t=Bt(t),qt(r),"function"==typeof e&&"prototype"===t&&"value"in r&&"writable"in r&&!r.writable){var n=Ut(e,t);n&&n.writable&&(e[t]=r.value,r={configurable:"configurable"in r?r.configurable:n.configurable,enumerable:"enumerable"in r?r.enumerable:n.enumerable,writable:!1})}return zt(e,t,r)}:zt:function(e,t,r){if(qt(e),t=Bt(t),qt(r),kt)try{return zt(e,t,r)}catch(e){}if("get"in r||"set"in r)throw Vt("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var Gt={exports:{}},Wt=R,Yt=lt,Kt=Function.prototype,Xt=Wt&&Object.getOwnPropertyDescriptor,Jt=Yt(Kt,"name"),Ht={EXISTS:Jt,PROPER:Jt&&"something"===function(){}.name,CONFIGURABLE:Jt&&(!Wt||Wt&&Xt(Kt,"name").configurable)},Qt=V,Zt=Ze,er=k(Function.toString);Qt(Zt.inspectSource)||(Zt.inspectSource=function(e){return er(e)});var tr,rr,nr,or=Zt.inspectSource,ir=V,ar=C.WeakMap,ur=ir(ar)&&/native code/.test(String(ar)),cr=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},lr=Q,sr=cr,fr=R?function(e,t,r){return lr.f(e,t,sr(1,r))}:function(e,t,r){return e[t]=r,e},pr=Ke.exports,dr=ht,hr=pr("keys"),vr=function(e){return hr[e]||(hr[e]=dr(e))},br={},gr=ur,mr=C,yr=te,wr=fr,Er=lt,Sr=Ze,xr=vr,Or=br,Ir=mr.TypeError,jr=mr.WeakMap;if(gr||Sr.state){var Fr=Sr.state||(Sr.state=new jr);Fr.get=Fr.get,Fr.has=Fr.has,Fr.set=Fr.set,tr=function(e,t){if(Fr.has(e))throw Ir("Object already initialized");return t.facade=e,Fr.set(e,t),t},rr=function(e){return Fr.get(e)||{}},nr=function(e){return Fr.has(e)}}else{var _r=xr("state");Or[_r]=!0,tr=function(e,t){if(Er(e,_r))throw Ir("Object already initialized");return t.facade=e,wr(e,_r,t),t},rr=function(e){return Er(e,_r)?e[_r]:{}},nr=function(e){return Er(e,_r)}}var Ar={set:tr,get:rr,has:nr,enforce:function(e){return nr(e)?rr(e):tr(e,{})},getterFor:function(e){return function(t){var r;if(!yr(t)||(r=rr(t)).type!==e)throw Ir("Incompatible receiver, "+e+" required");return r}}},Rr=A,Tr=V,Cr=lt,Nr=R,Pr=Ht.CONFIGURABLE,$r=or,Dr=Ar.enforce,Mr=Ar.get,kr=Object.defineProperty,Lr=Nr&&!Rr((function(){return 8!==kr((function(){}),"length",{value:8}).length})),qr=String(String).split("String"),Br=Gt.exports=function(e,t,r){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!Cr(e,"name")||Pr&&e.name!==t)&&(Nr?kr(e,"name",{value:t,configurable:!0}):e.name=t),Lr&&r&&Cr(r,"arity")&&e.length!==r.arity&&kr(e,"length",{value:r.arity});try{r&&Cr(r,"constructor")&&r.constructor?Nr&&kr(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=Dr(e);return Cr(n,"source")||(n.source=qr.join("string"==typeof t?t:"")),e};Function.prototype.toString=Br((function(){return Tr(this)&&Mr(this).source||$r(this)}),"toString");var Vr=V,zr=Q,Ur=Gt.exports,Gr=He,Wr=function(e,t,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:t;if(Vr(r)&&Ur(r,i,n),n.global)o?e[t]=r:Gr(t,r);else{try{n.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=r:zr.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e},Yr=V,Kr=String,Xr=TypeError,Jr=k,Hr=pe,Qr=function(e){if("object"==typeof e||Yr(e))return e;throw Xr("Can't set "+Kr(e)+" as a prototype")},Zr=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=Jr(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return Hr(r),Qr(n),t?e(r,n):r.__proto__=n,r}}():void 0),en=V,tn=te,rn=Zr,nn=function(e,t,r){var n,o;return rn&&en(n=t.constructor)&&n!==r&&tn(o=n.prototype)&&o!==r.prototype&&rn(e,o),e},on={},an=k,un=an({}.toString),cn=an("".slice),ln=function(e){return cn(un(e),8,-1)},sn=A,fn=ln,pn=Object,dn=k("".split),hn=sn((function(){return!pn("z").propertyIsEnumerable(0)}))?function(e){return"String"==fn(e)?dn(e,""):pn(e)}:pn,vn=nt,bn=function(e){return hn(vn(e))},gn=Math.ceil,mn=Math.floor,yn=Math.trunc||function(e){var t=+e;return(t>0?mn:gn)(t)},wn=function(e){var t=+e;return t!=t||0===t?0:yn(t)},En=wn,Sn=Math.max,xn=Math.min,On=wn,In=Math.min,jn=function(e){return e>0?In(On(e),9007199254740991):0},Fn=jn,_n=bn,An=function(e,t){var r=En(e);return r<0?Sn(r+t,0):xn(r,t)},Rn=function(e){return Fn(e.length)},Tn=function(e){return function(t,r,n){var o,i=_n(t),a=Rn(i),u=An(n,a);if(e&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===r)return e||u||0;return!e&&-1}},Cn={includes:Tn(!0),indexOf:Tn(!1)},Nn=lt,Pn=bn,$n=Cn.indexOf,Dn=br,Mn=k([].push),kn=function(e,t){var r,n=Pn(e),o=0,i=[];for(r in n)!Nn(Dn,r)&&Nn(n,r)&&Mn(i,r);for(;t.length>o;)Nn(n,r=t[o++])&&(~$n(i,r)||Mn(i,r));return i},Ln=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],qn=kn,Bn=Ln.concat("length","prototype");on.f=Object.getOwnPropertyNames||function(e){return qn(e,Bn)};var Vn={},zn={},Un={}.propertyIsEnumerable,Gn=Object.getOwnPropertyDescriptor,Wn=Gn&&!Un.call({1:2},1);zn.f=Wn?function(e){var t=Gn(this,e);return!!t&&t.enumerable}:Un;var Yn=R,Kn=ve,Xn=zn,Jn=cr,Hn=bn,Qn=Dt,Zn=lt,eo=ue,to=Object.getOwnPropertyDescriptor;Vn.f=Yn?to:function(e,t){if(e=Hn(e),t=Qn(t),eo)try{return to(e,t)}catch(e){}if(Zn(e,t))return Jn(!Kn(Xn.f,e,t),e[t])};var ro=k(1..valueOf),no={};no[It("toStringTag")]="z";var oo="[object z]"===String(no),io=V,ao=ln,uo=It("toStringTag"),co=Object,lo="Arguments"==ao(function(){return arguments}()),so=oo?ao:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=co(e),uo))?r:lo?ao(t):"Object"==(n=ao(t))&&io(t.callee)?"Arguments":n},fo=so,po=String,ho=function(e){if("Symbol"===fo(e))throw TypeError("Cannot convert a Symbol value to a string");return po(e)},vo=nt,bo=ho,go=k("".replace),mo="[\t\n\v\f\r                 \u2028\u2029\ufeff]",yo=RegExp("^"+mo+mo+"*"),wo=RegExp(mo+mo+"*$"),Eo=function(e){return function(t){var r=bo(vo(t));return 1&e&&(r=go(r,yo,"")),2&e&&(r=go(r,wo,"")),r}},So={start:Eo(1),end:Eo(2),trim:Eo(3)},xo=R,Oo=C,Io=k,jo=H,Fo=Wr,_o=lt,Ao=nn,Ro=we,To=$e,Co=Nt,No=A,Po=on.f,$o=Vn.f,Do=Q.f,Mo=ro,ko=So.trim,Lo=Oo.Number,qo=Lo.prototype,Bo=Oo.TypeError,Vo=Io("".slice),zo=Io("".charCodeAt),Uo=function(e){var t=Co(e,"number");return"bigint"==typeof t?t:Go(t)},Go=function(e){var t,r,n,o,i,a,u,c,l=Co(e,"number");if(To(l))throw Bo("Cannot convert a Symbol value to a number");if("string"==typeof l&&l.length>2)if(l=ko(l),43===(t=zo(l,0))||45===t){if(88===(r=zo(l,2))||120===r)return NaN}else if(48===t){switch(zo(l,1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+l}for(a=(i=Vo(l,2)).length,u=0;u<a;u++)if((c=zo(i,u))<48||c>o)return NaN;return parseInt(i,n)}return+l};if(jo("Number",!Lo(" 0o1")||!Lo("0b1")||Lo("+0x1"))){for(var Wo,Yo=function(e){var t=arguments.length<1?0:Lo(Uo(e)),r=this;return Ro(qo,r)&&No((function(){Mo(r)}))?Ao(Object(t),r,Yo):t},Ko=xo?Po(Lo):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),Xo=0;Ko.length>Xo;Xo++)_o(Lo,Wo=Ko[Xo])&&!_o(Yo,Wo)&&Do(Yo,Wo,$o(Lo,Wo));Yo.prototype=qo,qo.constructor=Yo,Fo(Oo,"Number",Yo,{constructor:!0})}var Jo=R,Ho=Ht.EXISTS,Qo=k,Zo=Q.f,ei=Function.prototype,ti=Qo(ei.toString),ri=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,ni=Qo(ri.exec);Jo&&!Ho&&Zo(ei,"name",{configurable:!0,get:function(){try{return ni(ri,ti(this))[1]}catch(e){return""}}});var oi={};oi.f=Object.getOwnPropertySymbols;var ii=ye,ai=on,ui=oi,ci=pe,li=k([].concat),si=ii("Reflect","ownKeys")||function(e){var t=ai.f(ci(e)),r=ui.f;return r?li(t,r(e)):t},fi=lt,pi=si,di=Vn,hi=Q,vi=C,bi=Vn.f,gi=fr,mi=Wr,yi=He,wi=function(e,t,r){for(var n=pi(t),o=hi.f,i=di.f,a=0;a<n.length;a++){var u=n[a];fi(e,u)||r&&fi(r,u)||o(e,u,i(t,u))}},Ei=H,Si=function(e,t){var r,n,o,i,a,u=e.target,c=e.global,l=e.stat;if(r=c?vi:l?vi[u]||yi(u,{}):(vi[u]||{}).prototype)for(n in t){if(i=t[n],o=e.dontCallGetSet?(a=bi(r,n))&&a.value:r[n],!Ei(c?n:u+(l?".":"#")+n,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;wi(i,o)}(e.sham||o&&o.sham)&&gi(i,"sham",!0),mi(r,n,i,e)}},xi=N,Oi=Function.prototype,Ii=Oi.apply,ji=Oi.call,Fi="object"==typeof Reflect&&Reflect.apply||(xi?ji.bind(Ii):function(){return ji.apply(Ii,arguments)}),_i=ln,Ai=Array.isArray||function(e){return"Array"==_i(e)},Ri=k([].slice),Ti=Si,Ci=ye,Ni=Fi,Pi=ve,$i=k,Di=A,Mi=Ai,ki=V,Li=te,qi=$e,Bi=Ri,Vi=Ae,zi=Ci("JSON","stringify"),Ui=$i(/./.exec),Gi=$i("".charAt),Wi=$i("".charCodeAt),Yi=$i("".replace),Ki=$i(1..toString),Xi=/[\uD800-\uDFFF]/g,Ji=/^[\uD800-\uDBFF]$/,Hi=/^[\uDC00-\uDFFF]$/,Qi=!Vi||Di((function(){var e=Ci("Symbol")();return"[null]"!=zi([e])||"{}"!=zi({a:e})||"{}"!=zi(Object(e))})),Zi=Di((function(){return'"\\udf06\\ud834"'!==zi("\udf06\ud834")||'"\\udead"'!==zi("\udead")})),ea=function(e,t){var r=Bi(arguments),n=t;if((Li(t)||void 0!==e)&&!qi(e))return Mi(t)||(t=function(e,t){if(ki(n)&&(t=Pi(n,this,e,t)),!qi(t))return t}),r[1]=t,Ni(zi,null,r)},ta=function(e,t,r){var n=Gi(r,t-1),o=Gi(r,t+1);return Ui(Ji,e)&&!Ui(Hi,o)||Ui(Hi,e)&&!Ui(Ji,n)?"\\u"+Ki(Wi(e,0),16):e};zi&&Ti({target:"JSON",stat:!0,arity:3,forced:Qi||Zi},{stringify:function(e,t,r){var n=Bi(arguments),o=Ni(Qi?ea:zi,null,n);return Zi&&"string"==typeof o?Yi(o,Xi,ta):o}});var ra=pe,na=function(){var e=ra(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},oa=A,ia=C.RegExp,aa=oa((function(){var e=ia("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),ua=aa||oa((function(){return!ia("a","y").sticky})),ca=aa||oa((function(){var e=ia("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),la={BROKEN_CARET:ca,MISSED_STICKY:ua,UNSUPPORTED_Y:aa},sa={},fa=kn,pa=Ln,da=Object.keys||function(e){return fa(e,pa)},ha=R,va=ce,ba=Q,ga=pe,ma=bn,ya=da;sa.f=ha&&!va?Object.defineProperties:function(e,t){ga(e);for(var r,n=ma(t),o=ya(t),i=o.length,a=0;i>a;)ba.f(e,r=o[a++],n[r]);return e};var wa,Ea=ye("document","documentElement"),Sa=pe,xa=sa,Oa=Ln,Ia=br,ja=Ea,Fa=ie,_a=vr("IE_PROTO"),Aa=function(){},Ra=function(e){return"<script>"+e+"<\/script>"},Ta=function(e){e.write(Ra("")),e.close();var t=e.parentWindow.Object;return e=null,t},Ca=function(){try{wa=new ActiveXObject("htmlfile")}catch(e){}var e,t;Ca="undefined"!=typeof document?document.domain&&wa?Ta(wa):((t=Fa("iframe")).style.display="none",ja.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Ra("document.F=Object")),e.close(),e.F):Ta(wa);for(var r=Oa.length;r--;)delete Ca.prototype[Oa[r]];return Ca()};Ia[_a]=!0;var Na=Object.create||function(e,t){var r;return null!==e?(Aa.prototype=Sa(e),r=new Aa,Aa.prototype=null,r[_a]=e):r=Ca(),void 0===t?r:xa.f(r,t)},Pa=A,$a=C.RegExp,Da=Pa((function(){var e=$a(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),Ma=A,ka=C.RegExp,La=Ma((function(){var e=ka("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),qa=ve,Ba=k,Va=ho,za=na,Ua=la,Ga=Ke.exports,Wa=Na,Ya=Ar.get,Ka=Da,Xa=La,Ja=Ga("native-string-replace",String.prototype.replace),Ha=RegExp.prototype.exec,Qa=Ha,Za=Ba("".charAt),eu=Ba("".indexOf),tu=Ba("".replace),ru=Ba("".slice),nu=function(){var e=/a/,t=/b*/g;return qa(Ha,e,"a"),qa(Ha,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),ou=Ua.BROKEN_CARET,iu=void 0!==/()??/.exec("")[1];(nu||iu||ou||Ka||Xa)&&(Qa=function(e){var t,r,n,o,i,a,u,c=this,l=Ya(c),s=Va(e),f=l.raw;if(f)return f.lastIndex=c.lastIndex,t=qa(Qa,f,s),c.lastIndex=f.lastIndex,t;var p=l.groups,d=ou&&c.sticky,h=qa(za,c),v=c.source,b=0,g=s;if(d&&(h=tu(h,"y",""),-1===eu(h,"g")&&(h+="g"),g=ru(s,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==Za(s,c.lastIndex-1))&&(v="(?: "+v+")",g=" "+g,b++),r=new RegExp("^(?:"+v+")",h)),iu&&(r=new RegExp("^"+v+"$(?!\\s)",h)),nu&&(n=c.lastIndex),o=qa(Ha,d?r:c,g),d?o?(o.input=ru(o.input,b),o[0]=ru(o[0],b),o.index=c.lastIndex,c.lastIndex+=o[0].length):c.lastIndex=0:nu&&o&&(c.lastIndex=c.global?o.index+o[0].length:n),iu&&o&&o.length>1&&qa(Ja,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=a=Wa(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var au=Qa;Si({target:"RegExp",proto:!0,forced:/./.exec!==au},{exec:au});var uu,cu,lu=Si,su=ve,fu=V,pu=pe,du=ho,hu=(uu=!1,(cu=/[ac]/).exec=function(){return uu=!0,/./.exec.apply(this,arguments)},!0===cu.test("abc")&&uu),vu=/./.test;lu({target:"RegExp",proto:!0,forced:!hu},{test:function(e){var t=pu(this),r=du(e),n=t.exec;if(!fu(n))return su(vu,t,r);var o=su(n,t,r);return null!==o&&(pu(o),!0)}});var bu=ln,gu=k,mu=function(e){if("Function"===bu(e))return gu(e)},yu=Wr,wu=au,Eu=A,Su=It,xu=fr,Ou=Su("species"),Iu=RegExp.prototype,ju=k,Fu=wn,_u=ho,Au=nt,Ru=ju("".charAt),Tu=ju("".charCodeAt),Cu=ju("".slice),Nu=function(e){return function(t,r){var n,o,i=_u(Au(t)),a=Fu(r),u=i.length;return a<0||a>=u?e?"":void 0:(n=Tu(i,a))<55296||n>56319||a+1===u||(o=Tu(i,a+1))<56320||o>57343?e?Ru(i,a):n:e?Cu(i,a,a+2):o-56320+(n-55296<<10)+65536}},Pu={codeAt:Nu(!1),charAt:Nu(!0)}.charAt,$u=k,Du=at,Mu=Math.floor,ku=$u("".charAt),Lu=$u("".replace),qu=$u("".slice),Bu=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Vu=/\$([$&'`]|\d{1,2})/g,zu=ve,Uu=pe,Gu=V,Wu=ln,Yu=au,Ku=TypeError,Xu=Fi,Ju=ve,Hu=k,Qu=function(e,t,r,n){var o=Su(e),i=!Eu((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!Eu((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[Ou]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return t=!0,null},r[o](""),!t}));if(!i||!a||r){var u=mu(/./[o]),c=t(o,""[e],(function(e,t,r,n,o){var a=mu(e),c=t.exec;return c===wu||c===Iu.exec?i&&!o?{done:!0,value:u(t,r,n)}:{done:!0,value:a(r,t,n)}:{done:!1}}));yu(String.prototype,e,c[0]),yu(Iu,o,c[1])}n&&xu(Iu[o],"sham",!0)},Zu=A,ec=pe,tc=V,rc=qe,nc=wn,oc=jn,ic=ho,ac=nt,uc=function(e,t,r){return t+(r?Pu(e,t).length:1)},cc=ze,lc=function(e,t,r,n,o,i){var a=r+e.length,u=n.length,c=Vu;return void 0!==o&&(o=Du(o),c=Bu),Lu(i,c,(function(i,c){var l;switch(ku(c,0)){case"$":return"$";case"&":return e;case"`":return qu(t,0,r);case"'":return qu(t,a);case"<":l=o[qu(c,1,-1)];break;default:var s=+c;if(0===s)return i;if(s>u){var f=Mu(s/10);return 0===f?i:f<=u?void 0===n[f-1]?ku(c,1):n[f-1]+ku(c,1):i}l=n[s-1]}return void 0===l?"":l}))},sc=function(e,t){var r=e.exec;if(Gu(r)){var n=zu(r,e,t);return null!==n&&Uu(n),n}if("RegExp"===Wu(e))return zu(Yu,e,t);throw Ku("RegExp#exec called on incompatible receiver")},fc=It("replace"),pc=Math.max,dc=Math.min,hc=Hu([].concat),vc=Hu([].push),bc=Hu("".indexOf),gc=Hu("".slice),mc="$0"==="a".replace(/./,"$0"),yc=!!/./[fc]&&""===/./[fc]("a","$0"),wc=!Zu((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}));Qu("replace",(function(e,t,r){var n=yc?"$":"$0";return[function(e,r){var n=ac(this),o=rc(e)?void 0:cc(e,fc);return o?Ju(o,e,n,r):Ju(t,ic(n),e,r)},function(e,o){var i=ec(this),a=ic(e);if("string"==typeof o&&-1===bc(o,n)&&-1===bc(o,"$<")){var u=r(t,i,a,o);if(u.done)return u.value}var c=tc(o);c||(o=ic(o));var l=i.global;if(l){var s=i.unicode;i.lastIndex=0}for(var f=[];;){var p=sc(i,a);if(null===p)break;if(vc(f,p),!l)break;""===ic(p[0])&&(i.lastIndex=uc(a,oc(i.lastIndex),s))}for(var d,h="",v=0,b=0;b<f.length;b++){for(var g=ic((p=f[b])[0]),m=pc(dc(nc(p.index),a.length),0),y=[],w=1;w<p.length;w++)vc(y,void 0===(d=p[w])?d:String(d));var E=p.groups;if(c){var S=hc([g],y,m,a);void 0!==E&&vc(S,E);var x=ic(Xu(o,void 0,S))}else x=lc(g,a,m,y,E,o);m>=v&&(h+=gc(a,v,m)+x,v=m+g.length)}return h+gc(a,v)}]}),!wc||!mc||yc);var Ec=te,Sc=ln,xc=It("match"),Oc=ve,Ic=lt,jc=we,Fc=na,_c=RegExp.prototype,Ac=function(e){var t=e.flags;return void 0!==t||"flags"in _c||Ic(e,"flags")||!jc(_c,e)?t:Oc(Fc,e)},Rc=Q.f,Tc=ye,Cc=Q,Nc=R,Pc=It("species"),$c=R,Dc=C,Mc=k,kc=H,Lc=nn,qc=fr,Bc=on.f,Vc=we,zc=function(e){var t;return Ec(e)&&(void 0!==(t=e[xc])?!!t:"RegExp"==Sc(e))},Uc=ho,Gc=Ac,Wc=la,Yc=function(e,t,r){r in e||Rc(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})},Kc=Wr,Xc=A,Jc=lt,Hc=Ar.enforce,Qc=function(e){var t=Tc(e),r=Cc.f;Nc&&t&&!t[Pc]&&r(t,Pc,{configurable:!0,get:function(){return this}})},Zc=Da,el=La,tl=It("match"),rl=Dc.RegExp,nl=rl.prototype,ol=Dc.SyntaxError,il=Mc(nl.exec),al=Mc("".charAt),ul=Mc("".replace),cl=Mc("".indexOf),ll=Mc("".slice),sl=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,fl=/a/g,pl=/a/g,dl=new rl(fl)!==fl,hl=Wc.MISSED_STICKY,vl=Wc.UNSUPPORTED_Y,bl=$c&&(!dl||hl||Zc||el||Xc((function(){return pl[tl]=!1,rl(fl)!=fl||rl(pl)==pl||"/a/i"!=rl(fl,"i")})));if(kc("RegExp",bl)){for(var gl=function(e,t){var r,n,o,i,a,u,c=Vc(nl,this),l=zc(e),s=void 0===t,f=[],p=e;if(!c&&l&&s&&e.constructor===gl)return e;if((l||Vc(nl,e))&&(e=e.source,s&&(t=Gc(p))),e=void 0===e?"":Uc(e),t=void 0===t?"":Uc(t),p=e,Zc&&"dotAll"in fl&&(n=!!t&&cl(t,"s")>-1)&&(t=ul(t,/s/g,"")),r=t,hl&&"sticky"in fl&&(o=!!t&&cl(t,"y")>-1)&&vl&&(t=ul(t,/y/g,"")),el&&(i=function(e){for(var t,r=e.length,n=0,o="",i=[],a={},u=!1,c=!1,l=0,s="";n<=r;n++){if("\\"===(t=al(e,n)))t+=al(e,++n);else if("]"===t)u=!1;else if(!u)switch(!0){case"["===t:u=!0;break;case"("===t:il(sl,ll(e,n+1))&&(n+=2,c=!0),o+=t,l++;continue;case">"===t&&c:if(""===s||Jc(a,s))throw new ol("Invalid capture group name");a[s]=!0,i[i.length]=[s,l],c=!1,s="";continue}c?s+=t:o+=t}return[o,i]}(e),e=i[0],f=i[1]),a=Lc(rl(e,t),c?this:nl,gl),(n||o||f.length)&&(u=Hc(a),n&&(u.dotAll=!0,u.raw=gl(function(e){for(var t,r=e.length,n=0,o="",i=!1;n<=r;n++)"\\"!==(t=al(e,n))?i||"."!==t?("["===t?i=!0:"]"===t&&(i=!1),o+=t):o+="[\\s\\S]":o+=t+al(e,++n);return o}(e),r)),o&&(u.sticky=!0),f.length&&(u.groups=f)),e!==p)try{qc(a,"source",""===p?"(?:)":p)}catch(e){}return a},ml=Bc(rl),yl=0;ml.length>yl;)Yc(gl,rl,ml[yl++]);nl.constructor=gl,gl.prototype=nl,Kc(Dc,"RegExp",gl,{constructor:!0})}Qc("RegExp");var wl=Gt.exports,El=Q,Sl=R,xl=la.MISSED_STICKY,Ol=ln,Il=function(e,t,r){return r.get&&wl(r.get,t,{getter:!0}),r.set&&wl(r.set,t,{setter:!0}),El.f(e,t,r)},jl=Ar.get,Fl=RegExp.prototype,_l=TypeError;Sl&&xl&&Il(Fl,"sticky",{configurable:!0,get:function(){if(this!==Fl){if("RegExp"===Ol(this))return!!jl(this).sticky;throw _l("Incompatible receiver, RegExp required")}}});var Al=Ht.PROPER,Rl=Wr,Tl=pe,Cl=ho,Nl=A,Pl=Ac,$l=RegExp.prototype.toString,Dl=Nl((function(){return"/a/b"!=$l.call({source:"a",flags:"b"})})),Ml=Al&&"toString"!=$l.name;(Dl||Ml)&&Rl(RegExp.prototype,"toString",(function(){var e=Tl(this);return"/"+Cl(e.source)+"/"+Cl(Pl(e))}),{unsafe:!0});var kl=function(e,t){for(var r in t)e[r]=t[r];return e},Ll={name:"BasePropertyGrid",inheritAttrs:!1,props:{labelAlign:{type:String,default:"left"},width:{type:[String,Number],default:"100%"},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},tableData:{type:Array,default:function(){return[]}},ctCls:{type:String},tableAttributes:{type:Object,default:function(){return{}}},customEditors:{type:Object},rules:{type:Object},isOnlyColumnEdit:{type:Boolean,default:!1},inlineMessage:{type:Boolean,default:!1},nameColumnWidth:{type:String}},watch:{tableData:{handler:function(e,t){if(!h(e))for(var r=0,n=this.tableData.length;r<n;r++){var o=this.tableData[r];v(o,"edit")||this.$set(o,"edit",!1),E(this.rules)||this.$set(this.model,o.name,o.value),this.$set(this.bbb,o.name,o.value)}},immediate:!0}},data:function(){return{model:{},bbb:{},allEdit:!1}},methods:{openEdit:function(){O(this.tableData,(function(e){e.edit=!0})),this.allEdit=!0},cancelEdit:function(){O(this.tableData,(function(e){e.edit=!1})),this.allEdit=!1},getForm:function(){return this.$refs.ruleFormRef},validate:function(e){if(!E(this.rules))return this.getForm().validate(e)},filter2DictValue:function(e){var t=this,r=x(this.$dict.get(g(this.customEditors,e.row.name+".filter")),(function(r){return r.paramValue===e.row[t.valueField]||r.paramValue==="".concat(e.row[t.valueField])}));if(!E(r))return r.paramDesc},createInput:function(e){var t=this;return(0,this.$createElement)("el-input",{attrs:{placeholder:"请输入内容"},props:{value:E(this.rules)?e.row[this.valueField]:g(this.model,e.row.name),clearable:!0},on:{input:function(r){e.row[t.valueField]=r,E(t.rules)||w(t.model,e.row.name,r),v(t.bbb,e.row.name)&&w(t.bbb,e.row.name,r),t.$emit("propertyChange",r)}}},[])},createBooleanSelect:function(e){for(var t=this,r=this.$createElement,n=[{value:!0,label:"true"},{value:!1,label:"false"}],o=[],i=0,a=n.length;i<a;i++){var u=n[i];o.push(r("el-option",{props:{key:u.value,label:u.label,value:u.value}},[]))}return r("el-select",{attrs:{placeholder:"请选择"},props:{value:E(this.rules)?e.row[this.valueField]:g(this.model,e.row.name)},on:{input:function(r){e.row[t.valueField]=r,E(t.rules)||w(t.model,e.row.name,r),v(t.bbb,e.row.name)&&w(t.bbb,e.row.name,r),t.$emit("propertyChange",r)}}},o)},createComponent:function(e,t){var r=this;return(0,this.$createElement)(e.el,{attrs:m(e,["el"]),props:y({value:E(this.rules)?t.row[this.valueField]:g(this.model,t.row.name),selectTreeValue:E(this.rules)?t.row[this.valueField]:g(this.model,t.row.name)},m(e,["el"])),on:{input:function(e){t.row[r.valueField]=e,E(r.rules)||w(r.model,t.row.name,e),v(r.bbb,t.row.name)&&w(r.bbb,t.row.name,e),r.$emit("propertyChange",e)},selectChange:function(e){t.row[r.valueField]=e,E(r.rules)||w(r.model,t.row.name,e),v(r.bbb,t.row.name)&&w(r.bbb,t.row.name,e),r.$emit("propertyChange",e)},selectTreeChange:function(e){t.row[r.valueField]=e,E(r.rules)||w(r.model,t.row.name,e),v(r.bbb,t.row.name)&&w(r.bbb,t.row.name,e),r.$emit("propertyChange",e)}}},[])},createTable:function(){var e=this,t=this.$createElement,r={prop:this.labelField,label:"名称",align:this.labelAlign};return E(this.nameColumnWidth)||(r.width=this.nameColumnWidth),t("el-table",{class:I({"base-property-grid":!0},this.ctCls,!E(this.ctCls)),style:{width:d(this.width)?this.width:"".concat(this.width,"px")},props:kl({data:this.tableData},this.tableAttributes),on:{"cell-click":function(t){e.allEdit||O(e.tableData,(function(e){e.edit&&e.name!==t.name&&(e.edit=!1)}))},"cell-dblclick":function(t){e.allEdit||(e.isOnlyColumnEdit&&O(e.tableData,(function(e){e.edit&&(e.edit=!1)})),e.$nextTick((function(){t.edit=!0,e.$emit("afterEdit",JSON.parse(JSON.stringify(t)))})))}}},[t("el-table-column",{props:r},[]),t("el-table-column",{props:{prop:this.valueField,label:"值"},scopedSlots:{default:function(r){var n=r.row[e.valueField];if(r.row.edit){var o=e.createInput(r);if(v(r,"row.name")&&!E(e.customEditors)){var i=r.row.name,a=g(e.customEditors,i);E(a)||(o=e.createComponent(a,r))}return b(n)&&(o=e.createBooleanSelect(r)),E(e.rules)?o:t("el-form-item",{props:{prop:r.row.name}},[o])}if(!E(e.customEditors)&&v(e.customEditors,r.row.name)){if(v(e.customEditors,r.row.name+".asyncLoad"))return e.customEditors[r.row.name].asyncLoad(r).then((function(t){e.$set(e.bbb,r.row.name,t)})).catch((function(e){throw new Error(e)})),e.bbb[r.row.name];if(v(e.customEditors,r.row.name+".filter"))return v(e.$scopedSlots,r.row.name)?e.$scopedSlots[r.row.name](r):e.filter2DictValue(r)}return v(e.$scopedSlots,r.row.name)?e.$scopedSlots[r.row.name](r):n}}},[])])}},render:function(e){var t;return E(this.rules)?this.createTable():e("el-form",{class:(t={"base-property-grid":!0},I(t,this.ctCls,!E(this.ctCls)),I(t,"base-property-grid_form",!!this.inlineMessage),t),ref:"ruleFormRef",props:{model:this.model,rules:this.rules}},[this.createTable()])}};Ll.install=function(e,t){var r;if(r="按需加载独立组件:"+Ll.name,"development"!==process.env.NODE_ENV&&"dev"!==process.env.NODE_ENV||console.warn(r),S(t)&&!h(t))for(var n=0;n<t.length;n++)t[n].name!==Ll.name&&e.use(t[n]);e.component(Ll.name,Ll)},exports.BasePropertyGrid=Ll;