UNPKG

shu-c-view

Version:

rollup 打包vue组件库框架

7 lines (6 loc) 31.9 kB
/*! * shu-c-view v1.2.87 * (c) 2024-10-22 * @license MIT */ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("jquery"),t=require("lodash/isEmpty"),n=require("lodash/isArray"),r=require("lodash/get"),i=require("lodash/map"),o=require("lodash/toNumber"),a=require("lodash/find"),c=require("lodash/has");function u(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var s=u(e),l=u(t),f=u(n),h=u(r),d=u(i),p=u(o),v=u(a),g=u(c);function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b,m,w="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},x=function(e){try{return!!e()}catch(e){return!0}},S=!x((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),M=function(e){return e&&e.Math==Math&&e},E=M("object"==typeof globalThis&&globalThis)||M("object"==typeof window&&window)||M("object"==typeof self&&self)||M("object"==typeof w&&w)||function(){return this}()||Function("return this")(),C=!x((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),O=C,R=Function.prototype,I=R.call,j=O&&R.bind.bind(I,I),k=O?j:function(e){return function(){return I.apply(e,arguments)}},A="object"==typeof document&&document.all,_={all:A,IS_HTMLDDA:void 0===A&&void 0!==A},T=_.all,z=_.IS_HTMLDDA?function(e){return"function"==typeof e||e===T}:function(e){return"function"==typeof e},N=x,P=z,D=/#|\.prototype\./,L=function(e,t){var n=$[F(e)];return n==U||n!=H&&(P(t)?N(t):!!t)},F=L.normalize=function(e){return String(e).replace(D,".").toLowerCase()},$=L.data={},H=L.NATIVE="N",U=L.POLYFILL="P",W=L,q={},V=z,G=_.all,Y=_.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:V(e)||e===G}:function(e){return"object"==typeof e?null!==e:V(e)},B=Y,K=E.document,X=B(K)&&B(K.createElement),J=function(e){return X?K.createElement(e):{}},Q=J,Z=!S&&!x((function(){return 7!=Object.defineProperty(Q("div"),"a",{get:function(){return 7}}).a})),ee=S&&x((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),te=Y,ne=String,re=TypeError,ie=function(e){if(te(e))return e;throw re(ne(e)+" is not an object")},oe=C,ae=Function.prototype.call,ce=oe?ae.bind(ae):function(){return ae.apply(ae,arguments)},ue=E,se=z,le=function(e){return se(e)?e:void 0},fe=function(e,t){return arguments.length<2?le(ue[e]):ue[e]&&ue[e][t]},he=k({}.isPrototypeOf),de=E,pe=fe("navigator","userAgent")||"",ve=de.process,ge=de.Deno,ye=ve&&ve.versions||ge&&ge.version,be=ye&&ye.v8;be&&(m=(b=be.split("."))[0]>0&&b[0]<4?1:+(b[0]+b[1])),!m&&pe&&(!(b=pe.match(/Edge\/(\d+)/))||b[1]>=74)&&(b=pe.match(/Chrome\/(\d+)/))&&(m=+b[1]);var me=m,we=me,xe=x,Se=!!Object.getOwnPropertySymbols&&!xe((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&we&&we<41})),Me=Se&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Ee=fe,Ce=z,Oe=he,Re=Object,Ie=Me?function(e){return"symbol"==typeof e}:function(e){var t=Ee("Symbol");return Ce(t)&&Oe(t.prototype,Re(e))},je=String,ke=z,Ae=function(e){try{return je(e)}catch(e){return"Object"}},_e=TypeError,Te=function(e){if(ke(e))return e;throw _e(Ae(e)+" is not a function")},ze=function(e){return null==e},Ne=Te,Pe=ze,De=function(e,t){var n=e[t];return Pe(n)?void 0:Ne(n)},Le=ce,Fe=z,$e=Y,He=TypeError,Ue={exports:{}},We=E,qe=Object.defineProperty,Ve=function(e,t){try{qe(We,e,{value:t,configurable:!0,writable:!0})}catch(n){We[e]=t}return t},Ge=Ve,Ye=E["__core-js_shared__"]||Ge("__core-js_shared__",{}),Be=Ye;(Ue.exports=function(e,t){return Be[e]||(Be[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 Ke=ze,Xe=TypeError,Je=function(e){if(Ke(e))throw Xe("Can't call method on "+e);return e},Qe=Je,Ze=Object,et=function(e){return Ze(Qe(e))},tt=et,nt=k({}.hasOwnProperty),rt=Object.hasOwn||function(e,t){return nt(tt(e),t)},it=k,ot=0,at=Math.random(),ct=it(1..toString),ut=function(e){return"Symbol("+(void 0===e?"":e)+")_"+ct(++ot+at,36)},st=E,lt=Ue.exports,ft=rt,ht=ut,dt=Se,pt=Me,vt=lt("wks"),gt=st.Symbol,yt=gt&&gt.for,bt=pt?gt:gt&&gt.withoutSetter||ht,mt=function(e){if(!ft(vt,e)||!dt&&"string"!=typeof vt[e]){var t="Symbol."+e;dt&&ft(gt,e)?vt[e]=gt[e]:vt[e]=pt&&yt?yt(t):bt(t)}return vt[e]},wt=ce,xt=Y,St=Ie,Mt=De,Et=function(e,t){var n,r;if("string"===t&&Fe(n=e.toString)&&!$e(r=Le(n,e)))return r;if(Fe(n=e.valueOf)&&!$e(r=Le(n,e)))return r;if("string"!==t&&Fe(n=e.toString)&&!$e(r=Le(n,e)))return r;throw He("Can't convert object to primitive value")},Ct=TypeError,Ot=mt("toPrimitive"),Rt=function(e,t){if(!xt(e)||St(e))return e;var n,r=Mt(e,Ot);if(r){if(void 0===t&&(t="default"),n=wt(r,e,t),!xt(n)||St(n))return n;throw Ct("Can't convert object to primitive value")}return void 0===t&&(t="number"),Et(e,t)},It=Rt,jt=Ie,kt=function(e){var t=It(e,"string");return jt(t)?t:t+""},At=S,_t=Z,Tt=ee,zt=ie,Nt=kt,Pt=TypeError,Dt=Object.defineProperty,Lt=Object.getOwnPropertyDescriptor;q.f=At?Tt?function(e,t,n){if(zt(e),t=Nt(t),zt(n),"function"==typeof e&&"prototype"===t&&"value"in n&&"writable"in n&&!n.writable){var r=Lt(e,t);r&&r.writable&&(e[t]=n.value,n={configurable:"configurable"in n?n.configurable:r.configurable,enumerable:"enumerable"in n?n.enumerable:r.enumerable,writable:!1})}return Dt(e,t,n)}:Dt:function(e,t,n){if(zt(e),t=Nt(t),zt(n),_t)try{return Dt(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Pt("Accessors not supported");return"value"in n&&(e[t]=n.value),e};var Ft={exports:{}},$t=S,Ht=rt,Ut=Function.prototype,Wt=$t&&Object.getOwnPropertyDescriptor,qt=Ht(Ut,"name"),Vt={EXISTS:qt,PROPER:qt&&"something"===function(){}.name,CONFIGURABLE:qt&&(!$t||$t&&Wt(Ut,"name").configurable)},Gt=z,Yt=Ye,Bt=k(Function.toString);Gt(Yt.inspectSource)||(Yt.inspectSource=function(e){return Bt(e)});var Kt,Xt,Jt,Qt=Yt.inspectSource,Zt=z,en=E.WeakMap,tn=Zt(en)&&/native code/.test(String(en)),nn=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},rn=q,on=nn,an=S?function(e,t,n){return rn.f(e,t,on(1,n))}:function(e,t,n){return e[t]=n,e},cn=Ue.exports,un=ut,sn=cn("keys"),ln=function(e){return sn[e]||(sn[e]=un(e))},fn={},hn=tn,dn=E,pn=Y,vn=an,gn=rt,yn=Ye,bn=ln,mn=fn,wn=dn.TypeError,xn=dn.WeakMap;if(hn||yn.state){var Sn=yn.state||(yn.state=new xn);Sn.get=Sn.get,Sn.has=Sn.has,Sn.set=Sn.set,Kt=function(e,t){if(Sn.has(e))throw wn("Object already initialized");return t.facade=e,Sn.set(e,t),t},Xt=function(e){return Sn.get(e)||{}},Jt=function(e){return Sn.has(e)}}else{var Mn=bn("state");mn[Mn]=!0,Kt=function(e,t){if(gn(e,Mn))throw wn("Object already initialized");return t.facade=e,vn(e,Mn,t),t},Xt=function(e){return gn(e,Mn)?e[Mn]:{}},Jt=function(e){return gn(e,Mn)}}var En={set:Kt,get:Xt,has:Jt,enforce:function(e){return Jt(e)?Xt(e):Kt(e,{})},getterFor:function(e){return function(t){var n;if(!pn(t)||(n=Xt(t)).type!==e)throw wn("Incompatible receiver, "+e+" required");return n}}},Cn=x,On=z,Rn=rt,In=S,jn=Vt.CONFIGURABLE,kn=Qt,An=En.enforce,_n=En.get,Tn=Object.defineProperty,zn=In&&!Cn((function(){return 8!==Tn((function(){}),"length",{value:8}).length})),Nn=String(String).split("String"),Pn=Ft.exports=function(e,t,n){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!Rn(e,"name")||jn&&e.name!==t)&&(In?Tn(e,"name",{value:t,configurable:!0}):e.name=t),zn&&n&&Rn(n,"arity")&&e.length!==n.arity&&Tn(e,"length",{value:n.arity});try{n&&Rn(n,"constructor")&&n.constructor?In&&Tn(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=An(e);return Rn(r,"source")||(r.source=Nn.join("string"==typeof t?t:"")),e};Function.prototype.toString=Pn((function(){return On(this)&&_n(this).source||kn(this)}),"toString");var Dn=z,Ln=q,Fn=Ft.exports,$n=Ve,Hn=function(e,t,n,r){r||(r={});var i=r.enumerable,o=void 0!==r.name?r.name:t;if(Dn(n)&&Fn(n,o,r),r.global)i?e[t]=n:$n(t,n);else{try{r.unsafe?e[t]&&(i=!0):delete e[t]}catch(e){}i?e[t]=n:Ln.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e},Un=z,Wn=String,qn=TypeError,Vn=k,Gn=ie,Yn=function(e){if("object"==typeof e||Un(e))return e;throw qn("Can't set "+Wn(e)+" as a prototype")},Bn=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Vn(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return Gn(n),Yn(r),t?e(n,r):n.__proto__=r,n}}():void 0),Kn=z,Xn=Y,Jn=Bn,Qn=function(e,t,n){var r,i;return Jn&&Kn(r=t.constructor)&&r!==n&&Xn(i=r.prototype)&&i!==n.prototype&&Jn(e,i),e},Zn={},er=k,tr=er({}.toString),nr=er("".slice),rr=function(e){return nr(tr(e),8,-1)},ir=x,or=rr,ar=Object,cr=k("".split),ur=ir((function(){return!ar("z").propertyIsEnumerable(0)}))?function(e){return"String"==or(e)?cr(e,""):ar(e)}:ar,sr=ur,lr=Je,fr=function(e){return sr(lr(e))},hr=Math.ceil,dr=Math.floor,pr=Math.trunc||function(e){var t=+e;return(t>0?dr:hr)(t)},vr=function(e){var t=+e;return t!=t||0===t?0:pr(t)},gr=vr,yr=Math.max,br=Math.min,mr=vr,wr=Math.min,xr=function(e){return e>0?wr(mr(e),9007199254740991):0},Sr=xr,Mr=function(e){return Sr(e.length)},Er=fr,Cr=function(e,t){var n=gr(e);return n<0?yr(n+t,0):br(n,t)},Or=Mr,Rr=function(e){return function(t,n,r){var i,o=Er(t),a=Or(o),c=Cr(r,a);if(e&&n!=n){for(;a>c;)if((i=o[c++])!=i)return!0}else for(;a>c;c++)if((e||c in o)&&o[c]===n)return e||c||0;return!e&&-1}},Ir={includes:Rr(!0),indexOf:Rr(!1)},jr=rt,kr=fr,Ar=Ir.indexOf,_r=fn,Tr=k([].push),zr=function(e,t){var n,r=kr(e),i=0,o=[];for(n in r)!jr(_r,n)&&jr(r,n)&&Tr(o,n);for(;t.length>i;)jr(r,n=t[i++])&&(~Ar(o,n)||Tr(o,n));return o},Nr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Pr=zr,Dr=Nr.concat("length","prototype");Zn.f=Object.getOwnPropertyNames||function(e){return Pr(e,Dr)};var Lr={},Fr={},$r={}.propertyIsEnumerable,Hr=Object.getOwnPropertyDescriptor,Ur=Hr&&!$r.call({1:2},1);Fr.f=Ur?function(e){var t=Hr(this,e);return!!t&&t.enumerable}:$r;var Wr=S,qr=ce,Vr=Fr,Gr=nn,Yr=fr,Br=kt,Kr=rt,Xr=Z,Jr=Object.getOwnPropertyDescriptor;Lr.f=Wr?Jr:function(e,t){if(e=Yr(e),t=Br(t),Xr)try{return Jr(e,t)}catch(e){}if(Kr(e,t))return Gr(!qr(Vr.f,e,t),e[t])};var Qr=k(1..valueOf),Zr={};Zr[mt("toStringTag")]="z";var ei="[object z]"===String(Zr),ti=ei,ni=z,ri=rr,ii=mt("toStringTag"),oi=Object,ai="Arguments"==ri(function(){return arguments}()),ci=ti?ri:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=oi(e),ii))?n:ai?ri(t):"Object"==(r=ri(t))&&ni(t.callee)?"Arguments":r},ui=ci,si=String,li=function(e){if("Symbol"===ui(e))throw TypeError("Cannot convert a Symbol value to a string");return si(e)},fi=Je,hi=li,di=k("".replace),pi="[\t\n\v\f\r                 \u2028\u2029\ufeff]",vi=RegExp("^"+pi+pi+"*"),gi=RegExp(pi+pi+"*$"),yi=function(e){return function(t){var n=hi(fi(t));return 1&e&&(n=di(n,vi,"")),2&e&&(n=di(n,gi,"")),n}},bi={start:yi(1),end:yi(2),trim:yi(3)},mi=S,wi=E,xi=k,Si=W,Mi=Hn,Ei=rt,Ci=Qn,Oi=he,Ri=Ie,Ii=Rt,ji=x,ki=Zn.f,Ai=Lr.f,_i=q.f,Ti=Qr,zi=bi.trim,Ni=wi.Number,Pi=Ni.prototype,Di=wi.TypeError,Li=xi("".slice),Fi=xi("".charCodeAt),$i=function(e){var t=Ii(e,"number");return"bigint"==typeof t?t:Hi(t)},Hi=function(e){var t,n,r,i,o,a,c,u,s=Ii(e,"number");if(Ri(s))throw Di("Cannot convert a Symbol value to a number");if("string"==typeof s&&s.length>2)if(s=zi(s),43===(t=Fi(s,0))||45===t){if(88===(n=Fi(s,2))||120===n)return NaN}else if(48===t){switch(Fi(s,1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+s}for(a=(o=Li(s,2)).length,c=0;c<a;c++)if((u=Fi(o,c))<48||u>i)return NaN;return parseInt(o,r)}return+s};if(Si("Number",!Ni(" 0o1")||!Ni("0b1")||Ni("+0x1"))){for(var Ui,Wi=function(e){var t=arguments.length<1?0:Ni($i(e)),n=this;return Oi(Pi,n)&&ji((function(){Ti(n)}))?Ci(Object(t),n,Wi):t},qi=mi?ki(Ni):"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(","),Vi=0;qi.length>Vi;Vi++)Ei(Ni,Ui=qi[Vi])&&!Ei(Wi,Ui)&&_i(Wi,Ui,Ai(Ni,Ui));Wi.prototype=Pi,Pi.constructor=Wi,Mi(wi,"Number",Wi,{constructor:!0})}var Gi={};Gi.f=Object.getOwnPropertySymbols;var Yi=fe,Bi=Zn,Ki=Gi,Xi=ie,Ji=k([].concat),Qi=Yi("Reflect","ownKeys")||function(e){var t=Bi.f(Xi(e)),n=Ki.f;return n?Ji(t,n(e)):t},Zi=rt,eo=Qi,to=Lr,no=q,ro=E,io=Lr.f,oo=an,ao=Hn,co=Ve,uo=function(e,t,n){for(var r=eo(t),i=no.f,o=to.f,a=0;a<r.length;a++){var c=r[a];Zi(e,c)||n&&Zi(n,c)||i(e,c,o(t,c))}},so=W,lo=function(e,t){var n,r,i,o,a,c=e.target,u=e.global,s=e.stat;if(n=u?ro:s?ro[c]||co(c,{}):(ro[c]||{}).prototype)for(r in t){if(o=t[r],i=e.dontCallGetSet?(a=io(n,r))&&a.value:n[r],!so(u?r:c+(s?".":"#")+r,e.forced)&&void 0!==i){if(typeof o==typeof i)continue;uo(o,i)}(e.sham||i&&i.sham)&&oo(o,"sham",!0),ao(n,r,o,e)}},fo=rr,ho=k,po=function(e){if("Function"===fo(e))return ho(e)},vo=Te,go=C,yo=po(po.bind),bo=rr,mo=Array.isArray||function(e){return"Array"==bo(e)},wo=k,xo=x,So=z,Mo=ci,Eo=Qt,Co=function(){},Oo=[],Ro=fe("Reflect","construct"),Io=/^\s*(?:class|function)\b/,jo=wo(Io.exec),ko=!Io.exec(Co),Ao=function(e){if(!So(e))return!1;try{return Ro(Co,Oo,e),!0}catch(e){return!1}},_o=function(e){if(!So(e))return!1;switch(Mo(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return ko||!!jo(Io,Eo(e))}catch(e){return!0}};_o.sham=!0;var To=!Ro||xo((function(){var e;return Ao(Ao.call)||!Ao(Object)||!Ao((function(){e=!0}))||e}))?_o:Ao,zo=mo,No=To,Po=Y,Do=mt("species"),Lo=Array,Fo=function(e){var t;return zo(e)&&(t=e.constructor,(No(t)&&(t===Lo||zo(t.prototype))||Po(t)&&null===(t=t[Do]))&&(t=void 0)),void 0===t?Lo:t},$o=function(e,t){return new(Fo(e))(0===t?0:t)},Ho=function(e,t){return vo(e),void 0===t?e:go?yo(e,t):function(){return e.apply(t,arguments)}},Uo=ur,Wo=et,qo=Mr,Vo=$o,Go=k([].push),Yo=function(e){var t=1==e,n=2==e,r=3==e,i=4==e,o=6==e,a=7==e,c=5==e||o;return function(u,s,l,f){for(var h,d,p=Wo(u),v=Uo(p),g=Ho(s,l),y=qo(v),b=0,m=f||Vo,w=t?m(u,y):n||a?m(u,0):void 0;y>b;b++)if((c||b in v)&&(d=g(h=v[b],b,p),e))if(t)w[b]=d;else if(d)switch(e){case 3:return!0;case 5:return h;case 6:return b;case 2:Go(w,h)}else switch(e){case 4:return!1;case 7:Go(w,h)}return o?-1:r||i?i:w}},Bo={forEach:Yo(0),map:Yo(1),filter:Yo(2),some:Yo(3),every:Yo(4),find:Yo(5),findIndex:Yo(6),filterReject:Yo(7)},Ko={},Xo=zr,Jo=Nr,Qo=Object.keys||function(e){return Xo(e,Jo)},Zo=S,ea=ee,ta=q,na=ie,ra=fr,ia=Qo;Ko.f=Zo&&!ea?Object.defineProperties:function(e,t){na(e);for(var n,r=ra(t),i=ia(t),o=i.length,a=0;o>a;)ta.f(e,n=i[a++],r[n]);return e};var oa,aa=fe("document","documentElement"),ca=ie,ua=Ko,sa=Nr,la=fn,fa=aa,ha=J,da=ln("IE_PROTO"),pa=function(){},va=function(e){return"<script>"+e+"<\/script>"},ga=function(e){e.write(va("")),e.close();var t=e.parentWindow.Object;return e=null,t},ya=function(){try{oa=new ActiveXObject("htmlfile")}catch(e){}var e,t;ya="undefined"!=typeof document?document.domain&&oa?ga(oa):((t=ha("iframe")).style.display="none",fa.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(va("document.F=Object")),e.close(),e.F):ga(oa);for(var n=sa.length;n--;)delete ya.prototype[sa[n]];return ya()};la[da]=!0;var ba=Object.create||function(e,t){var n;return null!==e?(pa.prototype=ca(e),n=new pa,pa.prototype=null,n[da]=e):n=ya(),void 0===t?n:ua.f(n,t)},ma=mt,wa=ba,xa=q.f,Sa=ma("unscopables"),Ma=Array.prototype;null==Ma[Sa]&&xa(Ma,Sa,{configurable:!0,value:wa(null)});var Ea=lo,Ca=Bo.find,Oa=function(e){Ma[Sa][e]=!0},Ra=!0;"find"in[]&&Array(1).find((function(){Ra=!1})),Ea({target:"Array",proto:!0,forced:Ra},{find:function(e){return Ca(this,e,arguments.length>1?arguments[1]:void 0)}}),Oa("find");var Ia=ci,ja=ei?{}.toString:function(){return"[object "+Ia(this)+"]"};ei||Hn(Object.prototype,"toString",ja,{unsafe:!0});var ka=TypeError,Aa=kt,_a=q,Ta=nn,za=x,Na=me,Pa=mt("species"),Da=lo,La=x,Fa=mo,$a=Y,Ha=et,Ua=Mr,Wa=function(e){if(e>9007199254740991)throw ka("Maximum allowed index exceeded");return e},qa=function(e,t,n){var r=Aa(t);r in e?_a.f(e,r,Ta(0,n)):e[r]=n},Va=$o,Ga=function(e){return Na>=51||!za((function(){var t=[];return(t.constructor={})[Pa]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Ya=me,Ba=mt("isConcatSpreadable"),Ka=Ya>=51||!La((function(){var e=[];return e[Ba]=!1,e.concat()[0]!==e})),Xa=Ga("concat"),Ja=function(e){if(!$a(e))return!1;var t=e[Ba];return void 0!==t?!!t:Fa(e)};Da({target:"Array",proto:!0,arity:1,forced:!Ka||!Xa},{concat:function(e){var t,n,r,i,o,a=Ha(this),c=Va(a,0),u=0;for(t=-1,r=arguments.length;t<r;t++)if(Ja(o=-1===t?a:arguments[t]))for(i=Ua(o),Wa(u+i),n=0;n<i;n++,u++)n in o&&qa(c,u,o[n]);else Wa(u+1),qa(c,u++,o);return c.length=u,c}});var Qa=S,Za=Vt.EXISTS,ec=k,tc=q.f,nc=Function.prototype,rc=ec(nc.toString),ic=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,oc=ec(ic.exec);Qa&&!Za&&tc(nc,"name",{configurable:!0,get:function(){try{return oc(ic,rc(this))[1]}catch(e){return""}}});var ac=ie,cc=function(){var e=ac(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},uc=x,sc=E.RegExp,lc=uc((function(){var e=sc("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),fc=lc||uc((function(){return!sc("a","y").sticky})),hc=lc||uc((function(){var e=sc("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),dc={BROKEN_CARET:hc,MISSED_STICKY:fc,UNSUPPORTED_Y:lc},pc=x,vc=E.RegExp,gc=pc((function(){var e=vc(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),yc=x,bc=E.RegExp,mc=yc((function(){var e=bc("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),wc=ce,xc=k,Sc=li,Mc=cc,Ec=dc,Cc=Ue.exports,Oc=ba,Rc=En.get,Ic=gc,jc=mc,kc=Cc("native-string-replace",String.prototype.replace),Ac=RegExp.prototype.exec,_c=Ac,Tc=xc("".charAt),zc=xc("".indexOf),Nc=xc("".replace),Pc=xc("".slice),Dc=function(){var e=/a/,t=/b*/g;return wc(Ac,e,"a"),wc(Ac,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),Lc=Ec.BROKEN_CARET,Fc=void 0!==/()??/.exec("")[1];(Dc||Fc||Lc||Ic||jc)&&(_c=function(e){var t,n,r,i,o,a,c,u=this,s=Rc(u),l=Sc(e),f=s.raw;if(f)return f.lastIndex=u.lastIndex,t=wc(_c,f,l),u.lastIndex=f.lastIndex,t;var h=s.groups,d=Lc&&u.sticky,p=wc(Mc,u),v=u.source,g=0,y=l;if(d&&(p=Nc(p,"y",""),-1===zc(p,"g")&&(p+="g"),y=Pc(l,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&"\n"!==Tc(l,u.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",p)),Fc&&(n=new RegExp("^"+v+"$(?!\\s)",p)),Dc&&(r=u.lastIndex),i=wc(Ac,d?n:u,y),d?i?(i.input=Pc(i.input,g),i[0]=Pc(i[0],g),i.index=u.lastIndex,u.lastIndex+=i[0].length):u.lastIndex=0:Dc&&i&&(u.lastIndex=u.global?i.index+i[0].length:r),Fc&&i&&i.length>1&&wc(kc,i[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(i[o]=void 0)})),i&&h)for(i.groups=a=Oc(null),o=0;o<h.length;o++)a[(c=h[o])[0]]=i[c[1]];return i});var $c=_c;lo({target:"RegExp",proto:!0,forced:/./.exec!==$c},{exec:$c});var Hc,Uc,Wc=lo,qc=ce,Vc=z,Gc=ie,Yc=li,Bc=(Hc=!1,(Uc=/[ac]/).exec=function(){return Hc=!0,/./.exec.apply(this,arguments)},!0===Uc.test("abc")&&Hc),Kc=/./.test;Wc({target:"RegExp",proto:!0,forced:!Bc},{test:function(e){var t=Gc(this),n=Yc(e),r=t.exec;if(!Vc(r))return qc(Kc,t,n);var i=qc(r,t,n);return null!==i&&(Gc(i),!0)}});var Xc=C,Jc=Function.prototype,Qc=Jc.apply,Zc=Jc.call,eu="object"==typeof Reflect&&Reflect.apply||(Xc?Zc.bind(Qc):function(){return Zc.apply(Qc,arguments)}),tu=po,nu=Hn,ru=$c,iu=x,ou=mt,au=an,cu=ou("species"),uu=RegExp.prototype,su=k,lu=vr,fu=li,hu=Je,du=su("".charAt),pu=su("".charCodeAt),vu=su("".slice),gu=function(e){return function(t,n){var r,i,o=fu(hu(t)),a=lu(n),c=o.length;return a<0||a>=c?e?"":void 0:(r=pu(o,a))<55296||r>56319||a+1===c||(i=pu(o,a+1))<56320||i>57343?e?du(o,a):r:e?vu(o,a,a+2):i-56320+(r-55296<<10)+65536}},yu={codeAt:gu(!1),charAt:gu(!0)}.charAt,bu=k,mu=et,wu=Math.floor,xu=bu("".charAt),Su=bu("".replace),Mu=bu("".slice),Eu=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Cu=/\$([$&'`]|\d{1,2})/g,Ou=ce,Ru=ie,Iu=z,ju=rr,ku=$c,Au=TypeError,_u=eu,Tu=ce,zu=k,Nu=function(e,t,n,r){var i=ou(e),o=!iu((function(){var t={};return t[i]=function(){return 7},7!=""[e](t)})),a=o&&!iu((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[cu]=function(){return n},n.flags="",n[i]=/./[i]),n.exec=function(){return t=!0,null},n[i](""),!t}));if(!o||!a||n){var c=tu(/./[i]),u=t(i,""[e],(function(e,t,n,r,i){var a=tu(e),u=t.exec;return u===ru||u===uu.exec?o&&!i?{done:!0,value:c(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));nu(String.prototype,e,u[0]),nu(uu,i,u[1])}r&&au(uu[i],"sham",!0)},Pu=x,Du=ie,Lu=z,Fu=ze,$u=vr,Hu=xr,Uu=li,Wu=Je,qu=function(e,t,n){return t+(n?yu(e,t).length:1)},Vu=De,Gu=function(e,t,n,r,i,o){var a=n+e.length,c=r.length,u=Cu;return void 0!==i&&(i=mu(i),u=Eu),Su(o,u,(function(o,u){var s;switch(xu(u,0)){case"$":return"$";case"&":return e;case"`":return Mu(t,0,n);case"'":return Mu(t,a);case"<":s=i[Mu(u,1,-1)];break;default:var l=+u;if(0===l)return o;if(l>c){var f=wu(l/10);return 0===f?o:f<=c?void 0===r[f-1]?xu(u,1):r[f-1]+xu(u,1):o}s=r[l-1]}return void 0===s?"":s}))},Yu=function(e,t){var n=e.exec;if(Iu(n)){var r=Ou(n,e,t);return null!==r&&Ru(r),r}if("RegExp"===ju(e))return Ou(ku,e,t);throw Au("RegExp#exec called on incompatible receiver")},Bu=mt("replace"),Ku=Math.max,Xu=Math.min,Ju=zu([].concat),Qu=zu([].push),Zu=zu("".indexOf),es=zu("".slice),ts="$0"==="a".replace(/./,"$0"),ns=!!/./[Bu]&&""===/./[Bu]("a","$0"),rs=!Pu((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}));Nu("replace",(function(e,t,n){var r=ns?"$":"$0";return[function(e,n){var r=Wu(this),i=Fu(e)?void 0:Vu(e,Bu);return i?Tu(i,e,r,n):Tu(t,Uu(r),e,n)},function(e,i){var o=Du(this),a=Uu(e);if("string"==typeof i&&-1===Zu(i,r)&&-1===Zu(i,"$<")){var c=n(t,o,a,i);if(c.done)return c.value}var u=Lu(i);u||(i=Uu(i));var s=o.global;if(s){var l=o.unicode;o.lastIndex=0}for(var f=[];;){var h=Yu(o,a);if(null===h)break;if(Qu(f,h),!s)break;""===Uu(h[0])&&(o.lastIndex=qu(a,Hu(o.lastIndex),l))}for(var d,p="",v=0,g=0;g<f.length;g++){for(var y=Uu((h=f[g])[0]),b=Ku(Xu($u(h.index),a.length),0),m=[],w=1;w<h.length;w++)Qu(m,void 0===(d=h[w])?d:String(d));var x=h.groups;if(u){var S=Ju([y],m,b,a);void 0!==x&&Qu(S,x);var M=Uu(_u(i,void 0,S))}else M=Gu(y,a,b,m,x,i);b>=v&&(p+=es(a,v,b)+M,v=b+y.length)}return p+es(a,v)}]}),!rs||!ts||ns);var is=Y,os=rr,as=mt("match"),cs=ce,us=rt,ss=he,ls=cc,fs=RegExp.prototype,hs=function(e){var t=e.flags;return void 0!==t||"flags"in fs||us(e,"flags")||!ss(fs,e)?t:cs(ls,e)},ds=q.f,ps=fe,vs=q,gs=S,ys=mt("species"),bs=S,ms=E,ws=k,xs=W,Ss=Qn,Ms=an,Es=Zn.f,Cs=he,Os=function(e){var t;return is(e)&&(void 0!==(t=e[as])?!!t:"RegExp"==os(e))},Rs=li,Is=hs,js=dc,ks=function(e,t,n){n in e||ds(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})},As=Hn,_s=x,Ts=rt,zs=En.enforce,Ns=function(e){var t=ps(e),n=vs.f;gs&&t&&!t[ys]&&n(t,ys,{configurable:!0,get:function(){return this}})},Ps=gc,Ds=mc,Ls=mt("match"),Fs=ms.RegExp,$s=Fs.prototype,Hs=ms.SyntaxError,Us=ws($s.exec),Ws=ws("".charAt),qs=ws("".replace),Vs=ws("".indexOf),Gs=ws("".slice),Ys=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,Bs=/a/g,Ks=/a/g,Xs=new Fs(Bs)!==Bs,Js=js.MISSED_STICKY,Qs=js.UNSUPPORTED_Y,Zs=bs&&(!Xs||Js||Ps||Ds||_s((function(){return Ks[Ls]=!1,Fs(Bs)!=Bs||Fs(Ks)==Ks||"/a/i"!=Fs(Bs,"i")})));if(xs("RegExp",Zs)){for(var el=function(e,t){var n,r,i,o,a,c,u=Cs($s,this),s=Os(e),l=void 0===t,f=[],h=e;if(!u&&s&&l&&e.constructor===el)return e;if((s||Cs($s,e))&&(e=e.source,l&&(t=Is(h))),e=void 0===e?"":Rs(e),t=void 0===t?"":Rs(t),h=e,Ps&&"dotAll"in Bs&&(r=!!t&&Vs(t,"s")>-1)&&(t=qs(t,/s/g,"")),n=t,Js&&"sticky"in Bs&&(i=!!t&&Vs(t,"y")>-1)&&Qs&&(t=qs(t,/y/g,"")),Ds&&(o=function(e){for(var t,n=e.length,r=0,i="",o=[],a={},c=!1,u=!1,s=0,l="";r<=n;r++){if("\\"===(t=Ws(e,r)))t+=Ws(e,++r);else if("]"===t)c=!1;else if(!c)switch(!0){case"["===t:c=!0;break;case"("===t:Us(Ys,Gs(e,r+1))&&(r+=2,u=!0),i+=t,s++;continue;case">"===t&&u:if(""===l||Ts(a,l))throw new Hs("Invalid capture group name");a[l]=!0,o[o.length]=[l,s],u=!1,l="";continue}u?l+=t:i+=t}return[i,o]}(e),e=o[0],f=o[1]),a=Ss(Fs(e,t),u?this:$s,el),(r||i||f.length)&&(c=zs(a),r&&(c.dotAll=!0,c.raw=el(function(e){for(var t,n=e.length,r=0,i="",o=!1;r<=n;r++)"\\"!==(t=Ws(e,r))?o||"."!==t?("["===t?o=!0:"]"===t&&(o=!1),i+=t):i+="[\\s\\S]":i+=t+Ws(e,++r);return i}(e),n)),i&&(c.sticky=!0),f.length&&(c.groups=f)),e!==h)try{Ms(a,"source",""===h?"(?:)":h)}catch(e){}return a},tl=Es(Fs),nl=0;tl.length>nl;)ks(el,Fs,tl[nl++]);$s.constructor=el,el.prototype=$s,As(ms,"RegExp",el,{constructor:!0})}Ns("RegExp");var rl=Ft.exports,il=q,ol=S,al=dc.MISSED_STICKY,cl=rr,ul=function(e,t,n){return n.get&&rl(n.get,t,{getter:!0}),n.set&&rl(n.set,t,{setter:!0}),il.f(e,t,n)},sl=En.get,ll=RegExp.prototype,fl=TypeError;ol&&al&&ul(ll,"sticky",{configurable:!0,get:function(){if(this!==ll){if("RegExp"===cl(this))return!!sl(this).sticky;throw fl("Incompatible receiver, RegExp required")}}});var hl=Vt.PROPER,dl=Hn,pl=ie,vl=li,gl=x,yl=hs,bl=RegExp.prototype.toString,ml=gl((function(){return"/a/b"!=bl.call({source:"a",flags:"b"})})),wl=hl&&"toString"!=bl.name;(ml||wl)&&dl(RegExp.prototype,"toString",(function(){var e=pl(this);return"/"+vl(e.source)+"/"+vl(yl(e))}),{unsafe:!0});var xl={name:"BaseHorizontalMenu",inheritAttrs:!1,props:{height:{type:Number,default:40},listGroup:{type:Array,default:function(){return[]}},displayField:{type:String,default:"name"},valueField:{type:String,default:"id"},viewMoreTrigger:{type:String,default:"click",validator:function(e){return-1!==["click","hover"].indexOf(e)}},linkCls:{type:String},viewMoreWrapCls:{type:String},viewMoreDropdownCls:{type:String},activeCls:{type:String,default:"selected"}},data:function(){return this.defaults={mainClassName:"pgwMenu",viewMoreEnabled:!0,viewMoreLabel:"更多"},this.wrapCls="base-horizontal-menu",this.ulLinkCls="base-horizontal-menu__links",this.viewMoreCls="base-horizontal-menu__view-more",this.viewMoreUlCls="base-horizontal-menu__view-more-links",this.horizontalMenuRef=null,this.defaultActive=0,{}},mounted:function(){var e=this,t=s;this.horizontalMenuRef=this.$refs.horizontalMenuRef,window.addEventListener("resize",this.resizeHandle),t(document).on("click",this.disableEvent),"click"===this.viewMoreTrigger&&t(this.horizontalMenuRef).find(".".concat(this.viewMoreCls)).on("click",this.enableViewMoreDropDown),"hover"===this.viewMoreTrigger&&t(this.horizontalMenuRef).find(".".concat(this.viewMoreCls)).hover(this.enableViewMoreDropDown),setTimeout((function(){var t=v(e.listGroup,(function(t,n){return n===e.defaultActive}));t&&e.selectHandle(h(t,e.displayField),h(t,e.valueField),e.defaultActive)}),0)},beforeDestroy:function(){var e=s;window.removeEventListener("resize",this.resizeHandle),e(document).off("click",this.disableEvent)},methods:{resizeHandle:function(){s(this.horizontalMenuRef).css("overflow","hidden"),this.disableEvent(),this.checkLink()},setActive:function(e){this.defaultActive=e;var t=this.setSelectedHandle(e).data(),n=t.display,r=t.value;this.selectHandle(n,r,e)},getActive:function(){return this.defaultActive},enableViewMoreDropDown:function(e){var t=s;return t(this.horizontalMenuRef).find(".".concat(this.viewMoreCls," :first-child")).hasClass("active")?(this.disableViewMoreDropDown(),!1):(t(this.horizontalMenuRef).find(".".concat(this.viewMoreCls," :first-child")).addClass("active"),t(this.horizontalMenuRef).find(".".concat(this.viewMoreCls," > ul")).show(),e.stopPropagation(),e.preventDefault(),!1)},disableViewMoreDropDown:function(){var e=s;e(this.horizontalMenuRef).find(".".concat(this.viewMoreCls," :first-child")).hasClass("active")&&(e(this.horizontalMenuRef).find(".".concat(this.viewMoreCls," :first-child")).removeClass("active"),e(this.horizontalMenuRef).find(".".concat(this.viewMoreCls," > ul")).hide())},disableEvent:function(){this.disableViewMoreDropDown()},createLinks:function(e){var t=this,n=this,r=d(this.listGroup,(function(r,i){var o=h(r,t.displayField),a=h(r,t.valueField),c={"data-display":o,"data-value":a,"data-index":i};return e("li",{attrs:c,class:{selected:i===t.defaultActive,linkCls:t.linkCls},style:{lineHeight:"".concat(t.height,"px")},key:a},[g(n.$scopedSlots,"default")?e({render:function(){return n.$scopedSlots.default(r)}},{attrs:c}):o])}));return setTimeout((function(){t.$nextTick(t.checkLink)}),100),r},checkLink:function(){var e=s(this.horizontalMenuRef),t=e.width(),n=e.find(".".concat(this.viewMoreCls)).outerWidth(!0);this.getContentWidth(e)>t?this.switchMenu("viewMore",e,n,t):this.switchMenu("normal",e),e.css("overflow","")},getContentWidth:function(e){var t=s,n=0;return e.find(".".concat(this.ulLinkCls," > li")).show(),e.find(".".concat(this.ulLinkCls," > li")).each((function(){n+=t(this).outerWidth(!0)})),n},switchMenu:function(e,t,n,r){var i=s,o=this;if("viewMore"===e){var a=n;t.find(".".concat(this.viewMoreCls," > ul > li")).remove(),t.find(".".concat(this.ulLinkCls," > li")).show().each((function(){a+i(this).outerWidth(!0)<r?a+=i(this).outerWidth(!0):(0===t.find(".".concat(o.viewMoreCls," > ul > li")).length&&(a+=i(this).outerWidth(!0)),t.find(".".concat(o.viewMoreUlCls)).append(i(this).clone().show()),i(this).hide())})),"none"===t.find(".".concat(this.viewMoreCls)).css("display")&&t.find(".".concat(this.viewMoreCls)).show()}"normal"===e&&(t.find(".".concat(this.ulLinkCls," > li")).show(),t.find(".".concat(this.ulLinkCls)).show(),t.find(".".concat(this.viewMoreCls,", .").concat(this.viewMoreCls,"> ul")).hide(),t.find(".".concat(this.viewMoreCls,"> ul > li")).remove())},setSelectedHandle:function(e){var t=s,n=null,r=t(this.horizontalMenuRef).find(".".concat(this.ulLinkCls," > li")).eq(e),i=t(this.horizontalMenuRef).find(".".concat(this.ulLinkCls)).find(".".concat(this.activeCls));if(0!==i.length&&i.removeClass(this.activeCls),0!==r.length)if("none"!==r.css("display"))r.addClass(this.activeCls),n=r;else{var o=e-t(this.horizontalMenuRef).find(".".concat(this.ulLinkCls," > li")).not(":hidden").length,a=t(this.horizontalMenuRef).find(".".concat(this.viewMoreUlCls," > li")).eq(o);0!==a.length&&(t(this.horizontalMenuRef).find(".".concat(this.viewMoreUlCls)).find(".".concat(this.activeCls)).removeClass(this.activeCls),a.addClass(this.activeCls),n=a)}return n},selectHandle:function(e,t,n){var r;this.defaultActive=n,this.$emit("select",(y(r={},this.displayField,e),y(r,this.valueField,t),r),p(n))}},render:function(e){var t=this;return e("div",{ref:"horizontalMenuRef",class:this.wrapCls,style:{height:"".concat(this.height,"px")},on:{click:function(e){var n=e.target.dataset,r=n.display,i=n.value,o=n.index;t.setSelectedHandle(o),t.selectHandle(r,i,o)}}},[e("ul",{class:this.ulLinkCls},this.createLinks(e)),e("div",{class:[this.viewMoreCls,this.viewMoreWrapCls],style:{display:"inline-block"}},[g(this.$slots,"moreDesc")?this.$slots.moreDesc:e("a",{attrs:{href:"javascript:void(0)"},style:{lineHeight:"".concat(this.height,"px")}},[this.defaults.viewMoreLabel,e("i",{class:"el-icon-caret-bottom"})]),e("ul",{class:[this.viewMoreUlCls,this.viewMoreDropdownCls],on:{click:function(e){var n=e.target.dataset,r=n.display,i=n.value,o=n.index;t.setSelectedHandle(o),t.selectHandle(r,i,o)}}})])])}};xl.install=function(e,t){var n;if(n="按需加载独立组件:"+xl.name,"development"!==process.env.NODE_ENV&&"dev"!==process.env.NODE_ENV||console.warn(n),f(t)&&!l(t))for(var r=0;r<t.length;r++)t[r].name!==xl.name&&e.use(t[r]);e.component(xl.name,xl)},exports.BaseHorizontalMenu=xl;