UNPKG

shu-c-view

Version:

rollup 打包vue@2.7组件库框架

7 lines (6 loc) 25.4 kB
/*! * shu-c-view v2.0.15 * (c) 2025-02-18 * @license MIT */ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("lodash/assign"),e=require("lodash/omit"),n=require("lodash/keys"),r=require("lodash/has"),o=require("lodash/get"),i=require("lodash/isFunction"),c=require("vue");function u(t){return t&&"object"==typeof t&&"default"in t?t.default:t}var a=u(t),s=u(e),f=u(n),l=u(r),p=u(o),d=u(i);function h(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var v="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},y=function(t){return t&&t.Math==Math&&t},m=y("object"==typeof globalThis&&globalThis)||y("object"==typeof window&&window)||y("object"==typeof self&&self)||y("object"==typeof v&&v)||function(){return this}()||Function("return this")(),b={exports:{}},g=m,w=Object.defineProperty,j=function(t,e){try{w(g,t,{value:e,configurable:!0,writable:!0})}catch(n){g[t]=e}return e},O=j,S=m["__core-js_shared__"]||O("__core-js_shared__",{}),T=S;(b.exports=function(t,e){return T[t]||(T[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 C,P,E=function(t){try{return!!t()}catch(t){return!0}},_=!E((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),R=_,x=Function.prototype,D=x.call,N=R&&x.bind.bind(D,D),F=R?N:function(t){return function(){return D.apply(t,arguments)}},I=function(t){return null==t},A=I,M=TypeError,$=function(t){if(A(t))throw M("Can't call method on "+t);return t},k=$,L=Object,U=function(t){return L(k(t))},B=F({}.hasOwnProperty),q=Object.hasOwn||function(t,e){return B(U(t),e)},z=F,G=0,V=Math.random(),H=z(1..toString),W=function(t){return"Symbol("+(void 0===t?"":t)+")_"+H(++G+V,36)},X="object"==typeof document&&document.all,J={all:X,IS_HTMLDDA:void 0===X&&void 0!==X},K=J.all,Y=J.IS_HTMLDDA?function(t){return"function"==typeof t||t===K}:function(t){return"function"==typeof t},Q=m,Z=Y,tt=function(t){return Z(t)?t:void 0},et=function(t,e){return arguments.length<2?tt(Q[t]):Q[t]&&Q[t][e]},nt=et("navigator","userAgent")||"",rt=m,ot=nt,it=rt.process,ct=rt.Deno,ut=it&&it.versions||ct&&ct.version,at=ut&&ut.v8;at&&(P=(C=at.split("."))[0]>0&&C[0]<4?1:+(C[0]+C[1])),!P&&ot&&(!(C=ot.match(/Edge\/(\d+)/))||C[1]>=74)&&(C=ot.match(/Chrome\/(\d+)/))&&(P=+C[1]);var st=P,ft=st,lt=E,pt=!!Object.getOwnPropertySymbols&&!lt((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&ft&&ft<41})),dt=pt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ht=m,vt=b.exports,yt=q,mt=W,bt=pt,gt=dt,wt=vt("wks"),jt=ht.Symbol,Ot=jt&&jt.for,St=gt?jt:jt&&jt.withoutSetter||mt,Tt=function(t){if(!yt(wt,t)||!bt&&"string"!=typeof wt[t]){var e="Symbol."+t;bt&&yt(jt,t)?wt[t]=jt[t]:wt[t]=gt&&Ot?Ot(e):St(e)}return wt[t]},Ct={};Ct[Tt("toStringTag")]="z";var Pt="[object z]"===String(Ct),Et={},_t=!E((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Rt=Y,xt=J.all,Dt=J.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:Rt(t)||t===xt}:function(t){return"object"==typeof t?null!==t:Rt(t)},Nt=Dt,Ft=m.document,It=Nt(Ft)&&Nt(Ft.createElement),At=function(t){return It?Ft.createElement(t):{}},Mt=At,$t=!_t&&!E((function(){return 7!=Object.defineProperty(Mt("div"),"a",{get:function(){return 7}}).a})),kt=_t&&E((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Lt=Dt,Ut=String,Bt=TypeError,qt=function(t){if(Lt(t))return t;throw Bt(Ut(t)+" is not an object")},zt=_,Gt=Function.prototype.call,Vt=zt?Gt.bind(Gt):function(){return Gt.apply(Gt,arguments)},Ht=F({}.isPrototypeOf),Wt=et,Xt=Y,Jt=Ht,Kt=Object,Yt=dt?function(t){return"symbol"==typeof t}:function(t){var e=Wt("Symbol");return Xt(e)&&Jt(e.prototype,Kt(t))},Qt=String,Zt=function(t){try{return Qt(t)}catch(t){return"Object"}},te=Y,ee=Zt,ne=TypeError,re=function(t){if(te(t))return t;throw ne(ee(t)+" is not a function")},oe=re,ie=I,ce=function(t,e){var n=t[e];return ie(n)?void 0:oe(n)},ue=Vt,ae=Y,se=Dt,fe=TypeError,le=Vt,pe=Dt,de=Yt,he=ce,ve=function(t,e){var n,r;if("string"===e&&ae(n=t.toString)&&!se(r=ue(n,t)))return r;if(ae(n=t.valueOf)&&!se(r=ue(n,t)))return r;if("string"!==e&&ae(n=t.toString)&&!se(r=ue(n,t)))return r;throw fe("Can't convert object to primitive value")},ye=TypeError,me=Tt("toPrimitive"),be=function(t,e){if(!pe(t)||de(t))return t;var n,r=he(t,me);if(r){if(void 0===e&&(e="default"),n=le(r,t,e),!pe(n)||de(n))return n;throw ye("Can't convert object to primitive value")}return void 0===e&&(e="number"),ve(t,e)},ge=Yt,we=function(t){var e=be(t,"string");return ge(e)?e:e+""},je=_t,Oe=$t,Se=kt,Te=qt,Ce=we,Pe=TypeError,Ee=Object.defineProperty,_e=Object.getOwnPropertyDescriptor;Et.f=je?Se?function(t,e,n){if(Te(t),e=Ce(e),Te(n),"function"==typeof t&&"prototype"===e&&"value"in n&&"writable"in n&&!n.writable){var r=_e(t,e);r&&r.writable&&(t[e]=n.value,n={configurable:"configurable"in n?n.configurable:r.configurable,enumerable:"enumerable"in n?n.enumerable:r.enumerable,writable:!1})}return Ee(t,e,n)}:Ee:function(t,e,n){if(Te(t),e=Ce(e),Te(n),Oe)try{return Ee(t,e,n)}catch(t){}if("get"in n||"set"in n)throw Pe("Accessors not supported");return"value"in n&&(t[e]=n.value),t};var Re={exports:{}},xe=_t,De=q,Ne=Function.prototype,Fe=xe&&Object.getOwnPropertyDescriptor,Ie=De(Ne,"name"),Ae={EXISTS:Ie,PROPER:Ie&&"something"===function(){}.name,CONFIGURABLE:Ie&&(!xe||xe&&Fe(Ne,"name").configurable)},Me=Y,$e=S,ke=F(Function.toString);Me($e.inspectSource)||($e.inspectSource=function(t){return ke(t)});var Le,Ue,Be,qe=$e.inspectSource,ze=Y,Ge=m.WeakMap,Ve=ze(Ge)&&/native code/.test(String(Ge)),He=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},We=Et,Xe=He,Je=_t?function(t,e,n){return We.f(t,e,Xe(1,n))}:function(t,e,n){return t[e]=n,t},Ke=b.exports,Ye=W,Qe=Ke("keys"),Ze={},tn=Ve,en=m,nn=Dt,rn=Je,on=q,cn=S,un=function(t){return Qe[t]||(Qe[t]=Ye(t))},an=Ze,sn=en.TypeError,fn=en.WeakMap;if(tn||cn.state){var ln=cn.state||(cn.state=new fn);ln.get=ln.get,ln.has=ln.has,ln.set=ln.set,Le=function(t,e){if(ln.has(t))throw sn("Object already initialized");return e.facade=t,ln.set(t,e),e},Ue=function(t){return ln.get(t)||{}},Be=function(t){return ln.has(t)}}else{var pn=un("state");an[pn]=!0,Le=function(t,e){if(on(t,pn))throw sn("Object already initialized");return e.facade=t,rn(t,pn,e),e},Ue=function(t){return on(t,pn)?t[pn]:{}},Be=function(t){return on(t,pn)}}var dn={set:Le,get:Ue,has:Be,enforce:function(t){return Be(t)?Ue(t):Le(t,{})},getterFor:function(t){return function(e){var n;if(!nn(e)||(n=Ue(e)).type!==t)throw sn("Incompatible receiver, "+t+" required");return n}}},hn=E,vn=Y,yn=q,mn=_t,bn=Ae.CONFIGURABLE,gn=qe,wn=dn.enforce,jn=dn.get,On=Object.defineProperty,Sn=mn&&!hn((function(){return 8!==On((function(){}),"length",{value:8}).length})),Tn=String(String).split("String"),Cn=Re.exports=function(t,e,n){"Symbol("===String(e).slice(0,7)&&(e="["+String(e).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!yn(t,"name")||bn&&t.name!==e)&&(mn?On(t,"name",{value:e,configurable:!0}):t.name=e),Sn&&n&&yn(n,"arity")&&t.length!==n.arity&&On(t,"length",{value:n.arity});try{n&&yn(n,"constructor")&&n.constructor?mn&&On(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var r=wn(t);return yn(r,"source")||(r.source=Tn.join("string"==typeof e?e:"")),t};Function.prototype.toString=Cn((function(){return vn(this)&&jn(this).source||gn(this)}),"toString");var Pn=Y,En=Et,_n=Re.exports,Rn=j,xn=function(t,e,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:e;if(Pn(n)&&_n(n,i,r),r.global)o?t[e]=n:Rn(e,n);else{try{r.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=n:En.f(t,e,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},Dn=F,Nn=Dn({}.toString),Fn=Dn("".slice),In=function(t){return Fn(Nn(t),8,-1)},An=Pt,Mn=Y,$n=In,kn=Tt("toStringTag"),Ln=Object,Un="Arguments"==$n(function(){return arguments}()),Bn=An?$n:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Ln(t),kn))?n:Un?$n(e):"Object"==(r=$n(e))&&Mn(e.callee)?"Arguments":r},qn=Bn,zn=Pt?{}.toString:function(){return"[object "+qn(this)+"]"};Pt||xn(Object.prototype,"toString",zn,{unsafe:!0});var Gn={},Vn={},Hn={}.propertyIsEnumerable,Wn=Object.getOwnPropertyDescriptor,Xn=Wn&&!Hn.call({1:2},1);Vn.f=Xn?function(t){var e=Wn(this,t);return!!e&&e.enumerable}:Hn;var Jn=E,Kn=In,Yn=Object,Qn=F("".split),Zn=Jn((function(){return!Yn("z").propertyIsEnumerable(0)}))?function(t){return"String"==Kn(t)?Qn(t,""):Yn(t)}:Yn,tr=$,er=function(t){return Zn(tr(t))},nr=_t,rr=Vt,or=Vn,ir=He,cr=er,ur=we,ar=q,sr=$t,fr=Object.getOwnPropertyDescriptor;Gn.f=nr?fr:function(t,e){if(t=cr(t),e=ur(e),sr)try{return fr(t,e)}catch(t){}if(ar(t,e))return ir(!rr(or.f,t,e),t[e])};var lr={},pr=Math.ceil,dr=Math.floor,hr=Math.trunc||function(t){var e=+t;return(e>0?dr:pr)(e)},vr=function(t){var e=+t;return e!=e||0===e?0:hr(e)},yr=vr,mr=Math.max,br=Math.min,gr=vr,wr=Math.min,jr=function(t){return t>0?wr(gr(t),9007199254740991):0},Or=function(t){return jr(t.length)},Sr=er,Tr=function(t,e){var n=yr(t);return n<0?mr(n+e,0):br(n,e)},Cr=Or,Pr=function(t){return function(e,n,r){var o,i=Sr(e),c=Cr(i),u=Tr(r,c);if(t&&n!=n){for(;c>u;)if((o=i[u++])!=o)return!0}else for(;c>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},Er={includes:Pr(!0),indexOf:Pr(!1)},_r=q,Rr=er,xr=Er.indexOf,Dr=Ze,Nr=F([].push),Fr=function(t,e){var n,r=Rr(t),o=0,i=[];for(n in r)!_r(Dr,n)&&_r(r,n)&&Nr(i,n);for(;e.length>o;)_r(r,n=e[o++])&&(~xr(i,n)||Nr(i,n));return i},Ir=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"].concat("length","prototype");lr.f=Object.getOwnPropertyNames||function(t){return Fr(t,Ir)};var Ar={};Ar.f=Object.getOwnPropertySymbols;var Mr=et,$r=lr,kr=Ar,Lr=qt,Ur=F([].concat),Br=Mr("Reflect","ownKeys")||function(t){var e=$r.f(Lr(t)),n=kr.f;return n?Ur(e,n(t)):e},qr=q,zr=Br,Gr=Gn,Vr=Et,Hr=E,Wr=Y,Xr=/#|\.prototype\./,Jr=function(t,e){var n=Yr[Kr(t)];return n==Zr||n!=Qr&&(Wr(e)?Hr(e):!!e)},Kr=Jr.normalize=function(t){return String(t).replace(Xr,".").toLowerCase()},Yr=Jr.data={},Qr=Jr.NATIVE="N",Zr=Jr.POLYFILL="P",to=Jr,eo=m,no=Gn.f,ro=Je,oo=xn,io=j,co=function(t,e,n){for(var r=zr(e),o=Vr.f,i=Gr.f,c=0;c<r.length;c++){var u=r[c];qr(t,u)||n&&qr(n,u)||o(t,u,i(e,u))}},uo=to,ao=function(t,e){var n,r,o,i,c,u=t.target,a=t.global,s=t.stat;if(n=a?eo:s?eo[u]||io(u,{}):(eo[u]||{}).prototype)for(r in e){if(i=e[r],o=t.dontCallGetSet?(c=no(n,r))&&c.value:n[r],!uo(a?r:u+(s?".":"#")+r,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;co(i,o)}(t.sham||o&&o.sham)&&ro(i,"sham",!0),oo(n,r,i,t)}},so="process"==In(m.process),fo=Y,lo=String,po=TypeError,ho=F,vo=qt,yo=function(t){if("object"==typeof t||fo(t))return t;throw po("Can't set "+lo(t)+" as a prototype")},mo=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=ho(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return vo(n),yo(r),e?t(n,r):n.__proto__=r,n}}():void 0),bo=Et.f,go=q,wo=Tt("toStringTag"),jo=et,Oo=Et,So=_t,To=Tt("species"),Co=Ht,Po=TypeError,Eo=F,_o=E,Ro=Y,xo=Bn,Do=qe,No=function(){},Fo=[],Io=et("Reflect","construct"),Ao=/^\s*(?:class|function)\b/,Mo=Eo(Ao.exec),$o=!Ao.exec(No),ko=function(t){if(!Ro(t))return!1;try{return Io(No,Fo,t),!0}catch(t){return!1}},Lo=function(t){if(!Ro(t))return!1;switch(xo(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return $o||!!Mo(Ao,Do(t))}catch(t){return!0}};Lo.sham=!0;var Uo,Bo,qo,zo,Go=!Io||_o((function(){var t;return ko(ko.call)||!ko(Object)||!ko((function(){t=!0}))||t}))?Lo:ko,Vo=Go,Ho=Zt,Wo=TypeError,Xo=qt,Jo=function(t){if(Vo(t))return t;throw Wo(Ho(t)+" is not a constructor")},Ko=I,Yo=Tt("species"),Qo=_,Zo=Function.prototype,ti=Zo.apply,ei=Zo.call,ni="object"==typeof Reflect&&Reflect.apply||(Qo?ei.bind(ti):function(){return ei.apply(ti,arguments)}),ri=In,oi=F,ii=function(t){if("Function"===ri(t))return oi(t)},ci=re,ui=_,ai=ii(ii.bind),si=function(t,e){return ci(t),void 0===e?t:ui?ai(t,e):function(){return t.apply(e,arguments)}},fi=et("document","documentElement"),li=F([].slice),pi=TypeError,di=/(?:ipad|iphone|ipod).*applewebkit/i.test(nt),hi=m,vi=ni,yi=si,mi=Y,bi=q,gi=E,wi=fi,ji=li,Oi=At,Si=function(t,e){if(t<e)throw pi("Not enough arguments");return t},Ti=di,Ci=so,Pi=hi.setImmediate,Ei=hi.clearImmediate,_i=hi.process,Ri=hi.Dispatch,xi=hi.Function,Di=hi.MessageChannel,Ni=hi.String,Fi=0,Ii={};try{Uo=hi.location}catch(t){}var Ai=function(t){if(bi(Ii,t)){var e=Ii[t];delete Ii[t],e()}},Mi=function(t){return function(){Ai(t)}},$i=function(t){Ai(t.data)},ki=function(t){hi.postMessage(Ni(t),Uo.protocol+"//"+Uo.host)};Pi&&Ei||(Pi=function(t){Si(arguments.length,1);var e=mi(t)?t:xi(t),n=ji(arguments,1);return Ii[++Fi]=function(){vi(e,void 0,n)},Bo(Fi),Fi},Ei=function(t){delete Ii[t]},Ci?Bo=function(t){_i.nextTick(Mi(t))}:Ri&&Ri.now?Bo=function(t){Ri.now(Mi(t))}:Di&&!Ti?(zo=(qo=new Di).port2,qo.port1.onmessage=$i,Bo=yi(zo.postMessage,zo)):hi.addEventListener&&mi(hi.postMessage)&&!hi.importScripts&&Uo&&"file:"!==Uo.protocol&&!gi(ki)?(Bo=ki,hi.addEventListener("message",$i,!1)):Bo="onreadystatechange"in Oi("script")?function(t){wi.appendChild(Oi("script")).onreadystatechange=function(){wi.removeChild(this),Ai(t)}}:function(t){setTimeout(Mi(t),0)});var Li,Ui,Bi,qi,zi,Gi,Vi,Hi,Wi={set:Pi,clear:Ei},Xi=m,Ji=/ipad|iphone|ipod/i.test(nt)&&void 0!==Xi.Pebble,Ki=/web0s(?!.*chrome)/i.test(nt),Yi=m,Qi=si,Zi=Gn.f,tc=Wi.set,ec=di,nc=Ji,rc=Ki,oc=so,ic=Yi.MutationObserver||Yi.WebKitMutationObserver,cc=Yi.document,uc=Yi.process,ac=Yi.Promise,sc=Zi(Yi,"queueMicrotask"),fc=sc&&sc.value;fc||(Li=function(){var t,e;for(oc&&(t=uc.domain)&&t.exit();Ui;){e=Ui.fn,Ui=Ui.next;try{e()}catch(t){throw Ui?qi():Bi=void 0,t}}Bi=void 0,t&&t.enter()},ec||oc||rc||!ic||!cc?!nc&&ac&&ac.resolve?((Vi=ac.resolve(void 0)).constructor=ac,Hi=Qi(Vi.then,Vi),qi=function(){Hi(Li)}):oc?qi=function(){uc.nextTick(Li)}:(tc=Qi(tc,Yi),qi=function(){tc(Li)}):(zi=!0,Gi=cc.createTextNode(""),new ic(Li).observe(Gi,{characterData:!0}),qi=function(){Gi.data=zi=!zi}));var lc=fc||function(t){var e={fn:t,next:void 0};Bi&&(Bi.next=e),Ui||(Ui=e,qi()),Bi=e},pc=m,dc=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},hc=function(){this.head=null,this.tail=null};hc.prototype={add:function(t){var e={item:t,next:null};this.head?this.tail.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return this.head=t.next,this.tail===t&&(this.tail=null),t.item}};var vc=hc,yc=m.Promise,mc="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,bc=!mc&&!so&&"object"==typeof window&&"object"==typeof document,gc=m,wc=yc,jc=Y,Oc=to,Sc=qe,Tc=Tt,Cc=bc,Pc=mc,Ec=st;wc&&wc.prototype;var _c=Tc("species"),Rc=!1,xc=jc(gc.PromiseRejectionEvent),Dc=Oc("Promise",(function(){var t=Sc(wc),e=t!==String(wc);if(!e&&66===Ec)return!0;if(!Ec||Ec<51||!/native code/.test(t)){var n=new wc((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};if((n.constructor={})[_c]=r,!(Rc=n.then((function(){}))instanceof r))return!0}return!e&&(Cc||Pc)&&!xc})),Nc={CONSTRUCTOR:Dc,REJECTION_EVENT:xc,SUBCLASSING:Rc},Fc={},Ic=re,Ac=TypeError,Mc=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw Ac("Bad Promise constructor");e=t,n=r})),this.resolve=Ic(e),this.reject=Ic(n)};Fc.f=function(t){return new Mc(t)};var $c,kc,Lc,Uc=ao,Bc=so,qc=m,zc=Vt,Gc=xn,Vc=mo,Hc=function(t,e,n){t&&!n&&(t=t.prototype),t&&!go(t,wo)&&bo(t,wo,{configurable:!0,value:e})},Wc=function(t){var e=jo(t),n=Oo.f;So&&e&&!e[To]&&n(e,To,{configurable:!0,get:function(){return this}})},Xc=re,Jc=Y,Kc=Dt,Yc=function(t,e){if(Co(e,t))return t;throw Po("Incorrect invocation")},Qc=function(t,e){var n,r=Xo(t).constructor;return void 0===r||Ko(n=Xo(r)[Yo])?e:Jo(n)},Zc=Wi.set,tu=lc,eu=function(t,e){var n=pc.console;n&&n.error&&(1==arguments.length?n.error(t):n.error(t,e))},nu=dc,ru=vc,ou=dn,iu=yc,cu=Fc,uu=Nc.CONSTRUCTOR,au=Nc.REJECTION_EVENT,su=Nc.SUBCLASSING,fu=ou.getterFor("Promise"),lu=ou.set,pu=iu&&iu.prototype,du=iu,hu=pu,vu=qc.TypeError,yu=qc.document,mu=qc.process,bu=cu.f,gu=bu,wu=!!(yu&&yu.createEvent&&qc.dispatchEvent),ju=function(t){var e;return!(!Kc(t)||!Jc(e=t.then))&&e},Ou=function(t,e){var n,r,o,i=e.value,c=1==e.state,u=c?t.ok:t.fail,a=t.resolve,s=t.reject,f=t.domain;try{u?(c||(2===e.rejection&&Eu(e),e.rejection=1),!0===u?n=i:(f&&f.enter(),n=u(i),f&&(f.exit(),o=!0)),n===t.promise?s(vu("Promise-chain cycle")):(r=ju(n))?zc(r,n,a,s):a(n)):s(i)}catch(t){f&&!o&&f.exit(),s(t)}},Su=function(t,e){t.notified||(t.notified=!0,tu((function(){for(var n,r=t.reactions;n=r.get();)Ou(n,t);t.notified=!1,e&&!t.rejection&&Cu(t)})))},Tu=function(t,e,n){var r,o;wu?((r=yu.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),qc.dispatchEvent(r)):r={promise:e,reason:n},!au&&(o=qc["on"+t])?o(r):"unhandledrejection"===t&&eu("Unhandled promise rejection",n)},Cu=function(t){zc(Zc,qc,(function(){var e,n=t.facade,r=t.value;if(Pu(t)&&(e=nu((function(){Bc?mu.emit("unhandledRejection",r,n):Tu("unhandledrejection",n,r)})),t.rejection=Bc||Pu(t)?2:1,e.error))throw e.value}))},Pu=function(t){return 1!==t.rejection&&!t.parent},Eu=function(t){zc(Zc,qc,(function(){var e=t.facade;Bc?mu.emit("rejectionHandled",e):Tu("rejectionhandled",e,t.value)}))},_u=function(t,e,n){return function(r){t(e,r,n)}},Ru=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,Su(t,!0))},xu=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw vu("Promise can't be resolved itself");var r=ju(e);r?tu((function(){var n={done:!1};try{zc(r,e,_u(xu,n,t),_u(Ru,n,t))}catch(e){Ru(n,e,t)}})):(t.value=e,t.state=1,Su(t,!1))}catch(e){Ru({done:!1},e,t)}}};if(uu&&(hu=(du=function(t){Yc(this,hu),Xc(t),zc($c,this);var e=fu(this);try{t(_u(xu,e),_u(Ru,e))}catch(t){Ru(e,t)}}).prototype,($c=function(t){lu(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new ru,rejection:!1,state:0,value:void 0})}).prototype=Gc(hu,"then",(function(t,e){var n=fu(this),r=bu(Qc(this,du));return n.parent=!0,r.ok=!Jc(t)||t,r.fail=Jc(e)&&e,r.domain=Bc?mu.domain:void 0,0==n.state?n.reactions.add(r):tu((function(){Ou(r,n)})),r.promise})),kc=function(){var t=new $c,e=fu(t);this.promise=t,this.resolve=_u(xu,e),this.reject=_u(Ru,e)},cu.f=bu=function(t){return t===du||undefined===t?new kc(t):gu(t)},Jc(iu)&&pu!==Object.prototype)){Lc=pu.then,su||Gc(pu,"then",(function(t,e){var n=this;return new du((function(t,e){zc(Lc,n,t,e)})).then(t,e)}),{unsafe:!0});try{delete pu.constructor}catch(t){}Vc&&Vc(pu,hu)}Uc({global:!0,constructor:!0,wrap:!0,forced:uu},{Promise:du}),Hc(du,"Promise",!1),Wc("Promise");var Du={},Nu=Du,Fu=Tt("iterator"),Iu=Array.prototype,Au=Bn,Mu=ce,$u=I,ku=Du,Lu=Tt("iterator"),Uu=function(t){if(!$u(t))return Mu(t,Lu)||Mu(t,"@@iterator")||ku[Au(t)]},Bu=Vt,qu=re,zu=qt,Gu=Zt,Vu=Uu,Hu=TypeError,Wu=Vt,Xu=qt,Ju=ce,Ku=si,Yu=Vt,Qu=qt,Zu=Zt,ta=function(t){return void 0!==t&&(Nu.Array===t||Iu[Fu]===t)},ea=Or,na=Ht,ra=function(t,e){var n=arguments.length<2?Vu(t):e;if(qu(n))return zu(Bu(n,t));throw Hu(Gu(t)+" is not iterable")},oa=Uu,ia=function(t,e,n){var r,o;Xu(t);try{if(!(r=Ju(t,"return"))){if("throw"===e)throw n;return n}r=Wu(r,t)}catch(t){o=!0,r=t}if("throw"===e)throw n;if(o)throw r;return Xu(r),n},ca=TypeError,ua=function(t,e){this.stopped=t,this.result=e},aa=ua.prototype,sa=function(t,e,n){var r,o,i,c,u,a,s,f=n&&n.that,l=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_RECORD),d=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),v=Ku(e,f),y=function(t){return r&&ia(r,"normal",t),new ua(!0,t)},m=function(t){return l?(Qu(t),h?v(t[0],t[1],y):v(t[0],t[1])):h?v(t,y):v(t)};if(p)r=t.iterator;else if(d)r=t;else{if(!(o=oa(t)))throw ca(Zu(t)+" is not iterable");if(ta(o)){for(i=0,c=ea(t);c>i;i++)if((u=m(t[i]))&&na(aa,u))return u;return new ua(!1)}r=ra(t,o)}for(a=p?t.next:r.next;!(s=Yu(a,r)).done;){try{u=m(s.value)}catch(t){ia(r,"throw",t)}if("object"==typeof u&&u&&na(aa,u))return u}return new ua(!1)},fa=Tt("iterator"),la=!1;try{var pa=0,da={next:function(){return{done:!!pa++}},return:function(){la=!0}};da[fa]=function(){return this},Array.from(da,(function(){throw 2}))}catch(t){}var ha=yc,va=function(t,e){if(!e&&!la)return!1;var n=!1;try{var r={};r[fa]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n},ya=Nc.CONSTRUCTOR||!va((function(t){ha.all(t).then(void 0,(function(){}))})),ma=Vt,ba=re,ga=Fc,wa=dc,ja=sa;ao({target:"Promise",stat:!0,forced:ya},{all:function(t){var e=this,n=ga.f(e),r=n.resolve,o=n.reject,i=wa((function(){var n=ba(e.resolve),i=[],c=0,u=1;ja(t,(function(t){var a=c++,s=!1;u++,ma(n,e,t).then((function(t){s||(s=!0,i[a]=t,--u||r(i))}),o)})),--u||r(i)}));return i.error&&o(i.value),n.promise}});var Oa=ao,Sa=Nc.CONSTRUCTOR,Ta=yc,Ca=et,Pa=Y,Ea=xn,_a=Ta&&Ta.prototype;if(Oa({target:"Promise",proto:!0,forced:Sa,real:!0},{catch:function(t){return this.then(void 0,t)}}),Pa(Ta)){var Ra=Ca("Promise").prototype.catch;_a.catch!==Ra&&Ea(_a,"catch",Ra,{unsafe:!0})}var xa=Vt,Da=re,Na=Fc,Fa=dc,Ia=sa;ao({target:"Promise",stat:!0,forced:ya},{race:function(t){var e=this,n=Na.f(e),r=n.reject,o=Fa((function(){var o=Da(e.resolve);Ia(t,(function(t){xa(o,e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var Aa=Vt,Ma=Fc;ao({target:"Promise",stat:!0,forced:Nc.CONSTRUCTOR},{reject:function(t){var e=Ma.f(this);return Aa(e.reject,void 0,t),e.promise}});var $a=qt,ka=Dt,La=Fc,Ua=ao,Ba=Nc.CONSTRUCTOR,qa=function(t,e){if($a(t),ka(e)&&e.constructor===t)return e;var n=La.f(t);return(0,n.resolve)(e),n.promise};et("Promise"),Ua({target:"Promise",stat:!0,forced:Ba},{resolve:function(t){return qa(this,t)}});function za(t,e,n,r,o,i,c,u,a,s){"boolean"!=typeof c&&(a=u,u=c,c=!1);const f="function"==typeof n?n.options:n;let l;if(t&&t.render&&(f.render=t.render,f.staticRenderFns=t.staticRenderFns,f._compiled=!0,o&&(f.functional=!0)),r&&(f._scopeId=r),i?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,a(t)),t&&t._registeredComponents&&t._registeredComponents.add(i)},f._ssrRegister=l):e&&(l=c?function(t){e.call(this,s(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,u(t))}),l)if(f.functional){const t=f.render;f.render=function(e,n){return l.call(n),t(e,n)}}else{const t=f.beforeCreate;f.beforeCreate=t?[].concat(t,l):[l]}return n}const Ga={};var Va=function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"base-dialog__render"},[t._t("default")],2)};Va._withStripped=!0;const Ha=za({render:Va,staticRenderFns:[]},undefined,Ga,undefined,false,undefined,!1,void 0,void 0,void 0);exports.BaseDrawer=function(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=f(s(e,["$route","$router","slotNode","component","listeners","ctCls","isDestroy","title","customClass","visible","appendToBody","modalAppendToBody","destroyOnClose"])),r=t.extend({provide:function(){return{getDrawer:this}},router:e.$router,route:e.$route,props:n,data:function(){return{visible:!1,curTitle:e.title}},methods:{appendTitle:function(t){return l(e,"slotNode.title")?[e.slotNode.title(t)]:[]},setTitle:function(t){this.curTitle=t}},render:function(t){var n=this;return t("el-drawer",{class:h({"base-drawer":!0},e.ctCls,e.ctCls),props:a({visible:this.visible,customClass:this.curCustomClass,title:this.curTitle,destroyOnClose:!0,appendToBody:!1,modalAppendToBody:!0},this.$props),on:{"update:visible":function(t){n.visible=t},open:function(){l(e,"listeners.open")&&e.listeners.open()},opened:function(){l(e,"listeners.opened")&&e.listeners.opened()},close:function(){l(e,"listeners.close")&&e.listeners.close()},closed:function(){l(e,"listeners.closed")&&e.listeners.closed(),n.destroyedDialog()}}},[this.comFun,t("template",{slot:"title"},this.appendTitle(t))])}}),o=new r({propsData:e,data:function(){return this.readyPromise=null,this.readyPromiseResolve=null,this.curCustomClass="base-el-drawer",this.comFun=null,this.isDestroy=!0,{}},created:function(){var t=this;d(e.component)&&(this.comFun=c.h(Ha,{},[e.component])),l(e.component,"render")&&(this.comFun=c.h(Ha,{},[c.h(e.component)])),l(e,"customClass")&&(this.curCustomClass+=" ".concat(p(e,"customClass",""))),this.readyPromise=new Promise((function(e){t.readyPromiseResolve=e})),this.$nextTick((function(){document.body.appendChild(o.$mount().$el),t.readyPromiseResolve()}))},beforeDestroy:function(){this.readyPromise=void 0,this.readyPromiseResolve=void 0,this.comFun=void 0},methods:{ready:function(){return this.readyPromise},getContentNode:function(){return this.comFun.componentInstance.$children[0]},open:function(){var t=this;this.ready().then((function(){return t.visible=!0,!0})).catch((function(){}))},close:function(){this.$children[0].handleClose()},closeDrawer:function(){this.close()},destroyedDialog:function(){setTimeout((function(){o.$destroy(),l(o,"$el")&&o.$el.remove()}),0)}}});return o}};