@moohng/dui
Version:
基于 Vue 3 的轻量级组件库
2 lines (1 loc) • 22.6 kB
JavaScript
this.pullup=function(){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var e,n=function(t){return t&&t.Math==Math&&t},r=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||function(){return this}()||Function("return this")(),o=function(t){try{return!!t()}catch(t){return!0}},i=!o((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),c={}.propertyIsEnumerable,u=Object.getOwnPropertyDescriptor,a={f:u&&!c.call({1:2},1)?function(t){var e=u(this,t);return!!e&&e.enumerable}:c},s=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},f={}.toString,l=function(t){return f.call(t).slice(8,-1)},p="".split,h=o((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==l(t)?p.call(t,""):Object(t)}:Object,v=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},d=function(t){return h(v(t))},y=function(t){return"object"==typeof t?null!==t:"function"==typeof t},g=function(t,e){if(!y(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!y(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!y(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!y(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},m={}.hasOwnProperty,w=function(t,e){return m.call(t,e)},b=r.document,S=y(b)&&y(b.createElement),j=function(t){return S?b.createElement(t):{}},O=!i&&!o((function(){return 7!=Object.defineProperty(j("div"),"a",{get:function(){return 7}}).a})),T=Object.getOwnPropertyDescriptor,E={f:i?T:function(t,e){if(t=d(t),e=g(e,!0),O)try{return T(t,e)}catch(t){}if(w(t,e))return s(!a.f.call(t,e),t[e])}},P=/#|\.prototype\./,L=function(t,e){var n=_[A(t)];return n==I||n!=M&&("function"==typeof e?o(e):!!e)},A=L.normalize=function(t){return String(t).replace(P,".").toLowerCase()},_=L.data={},M=L.NATIVE="N",I=L.POLYFILL="P",x=L,k={},F=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},C=function(t,e,n){if(F(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}},R=function(t){if(!y(t))throw TypeError(String(t)+" is not an object");return t},D=Object.defineProperty,N={f:i?D:function(t,e,n){if(R(t),e=g(e,!0),R(n),O)try{return D(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},H=i?function(t,e,n){return N.f(t,e,s(1,n))}:function(t,e,n){return t[e]=n,t},G=E.f,V=function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e},q=function(t,e){var n,o,i,c,u,a,s,f,l=t.target,p=t.global,h=t.stat,v=t.proto,d=p?r:h?r[l]:(r[l]||{}).prototype,y=p?k:k[l]||(k[l]={}),g=y.prototype;for(i in e)n=!x(p?i:l+(h?".":"#")+i,t.forced)&&d&&w(d,i),u=y[i],n&&(a=t.noTargetGet?(f=G(d,i))&&f.value:d[i]),c=n&&a?a:e[i],n&&typeof u==typeof c||(s=t.bind&&n?C(c,r):t.wrap&&n?V(c):v&&"function"==typeof c?C(Function.call,c):c,(t.sham||c&&c.sham||u&&u.sham)&&H(s,"sham",!0),y[i]=s,v&&(w(k,o=l+"Prototype")||H(k,o,{}),k[o][i]=c,t.real&&g&&!g[i]&&H(g,i,c)))},z=r["__core-js_shared__"]||function(t,e){try{H(r,t,e)}catch(n){r[t]=e}return e}("__core-js_shared__",{}),U=function(t,e,n){return t(n={path:e,exports:{},require:function(t,e){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==e&&n.path)}},n.exports),n.exports}((function(t){(t.exports=function(t,e){return z[t]||(z[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.7.0",mode:"pure",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),W=0,B=Math.random(),Y=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++W+B).toString(36)},$=U("keys"),K=function(t){return $[t]||($[t]=Y(t))},X=!o((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),J=K("IE_PROTO"),Q=Object.prototype,Z=X?Object.getPrototypeOf:function(t){return t=Object(v(t)),w(t,J)?t[J]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?Q:null},tt=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return R(n),function(t){if(!y(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype")}(r),e?t.call(n,r):n.__proto__=r,n}}():void 0),et=Math.ceil,nt=Math.floor,rt=function(t){return isNaN(t=+t)?0:(t>0?nt:et)(t)},ot=Math.min,it=function(t){return t>0?ot(rt(t),9007199254740991):0},ct=Math.max,ut=Math.min,at=function(t){return function(e,n,r){var o,i=d(e),c=it(i.length),u=function(t,e){var n=rt(t);return n<0?ct(n+e,0):ut(n,e)}(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}},st={includes:at(!0),indexOf:at(!1)},ft={},lt=st.indexOf,pt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ht=Object.keys||function(t){return function(t,e){var n,r=d(t),o=0,i=[];for(n in r)!w(ft,n)&&w(r,n)&&i.push(n);for(;e.length>o;)w(r,n=e[o++])&&(~lt(i,n)||i.push(n));return i}(t,pt)},vt=i?Object.defineProperties:function(t,e){R(t);for(var n,r=ht(e),o=r.length,i=0;o>i;)N.f(t,n=r[i++],e[n]);return t},dt=function(t){return"function"==typeof t?t:void 0},yt=function(t,e){return arguments.length<2?dt(k[t])||dt(r[t]):k[t]&&k[t][e]||r[t]&&r[t][e]},gt=yt("document","documentElement"),mt=K("IE_PROTO"),wt=function(){},bt=function(t){return"<script>"+t+"<\/script>"},St=function(){try{e=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,n;St=e?function(t){t.write(bt("")),t.close();var e=t.parentWindow.Object;return t=null,e}(e):((n=j("iframe")).style.display="none",gt.appendChild(n),n.src=String("javascript:"),(t=n.contentWindow.document).open(),t.write(bt("document.F=Object")),t.close(),t.F);for(var r=pt.length;r--;)delete St.prototype[pt[r]];return St()};ft[mt]=!0;var jt=Object.create||function(t,e){var n;return null!==t?(wt.prototype=R(t),n=new wt,wt.prototype=null,n[mt]=t):n=St(),void 0===e?n:vt(n,e)},Ot=!!Object.getOwnPropertySymbols&&!o((function(){return!String(Symbol())})),Tt=Ot&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Et=U("wks"),Pt=r.Symbol,Lt=Tt?Pt:Pt&&Pt.withoutSetter||Y,At=function(t){return w(Et,t)||(Ot&&w(Pt,t)?Et[t]=Pt[t]:Et[t]=Lt("Symbol."+t)),Et[t]},_t={},Mt=At("iterator"),It=Array.prototype,xt={};xt[At("toStringTag")]="z";var kt="[object z]"===String(xt),Ft=At("toStringTag"),Ct="Arguments"==l(function(){return arguments}()),Rt=kt?l: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=Object(t),Ft))?n:Ct?l(e):"Object"==(r=l(e))&&"function"==typeof e.callee?"Arguments":r},Dt=At("iterator"),Nt=function(t){var e=t.return;if(void 0!==e)return R(e.call(t)).value},Ht=function(t,e){this.stopped=t,this.result=e},Gt=function(t,e,n){var r,o,i,c,u,a,s,f,l=n&&n.that,p=!(!n||!n.AS_ENTRIES),h=!(!n||!n.IS_ITERATOR),v=!(!n||!n.INTERRUPTED),d=C(e,l,1+p+v),y=function(t){return r&&Nt(r),new Ht(!0,t)},g=function(t){return p?(R(t),v?d(t[0],t[1],y):d(t[0],t[1])):v?d(t,y):d(t)};if(h)r=t;else{if("function"!=typeof(o=function(t){if(null!=t)return t[Dt]||t["@@iterator"]||_t[Rt(t)]}(t)))throw TypeError("Target is not iterable");if(void 0!==(f=o)&&(_t.Array===f||It[Mt]===f)){for(i=0,c=it(t.length);c>i;i++)if((u=g(t[i]))&&u instanceof Ht)return u;return new Ht(!1)}r=o.call(t)}for(a=r.next;!(s=a.call(r)).done;){try{u=g(s.value)}catch(t){throw Nt(r),t}if("object"==typeof u&&u&&u instanceof Ht)return u}return new Ht(!1)},Vt=function(t,e){var n=this;if(!(n instanceof Vt))return new Vt(t,e);tt&&(n=tt(new Error(void 0),Z(n))),void 0!==e&&H(n,"message",String(e));var r=[];return Gt(t,r.push,{that:r}),H(n,"errors",r),n};Vt.prototype=jt(Error.prototype,{constructor:s(5,Vt),message:s(5,""),name:s(5,"AggregateError")}),q({global:!0},{AggregateError:Vt});var qt=Object.freeze({__proto__:null}),zt=r.Promise,Ut=function(t,e,n,r){r&&r.enumerable?t[e]=n:H(t,e,n)},Wt=kt?{}.toString:function(){return"[object "+Rt(this)+"]"},Bt=N.f,Yt=At("toStringTag"),$t=function(t,e,n,r){if(t){var o=n?t:t.prototype;w(o,Yt)||Bt(o,Yt,{configurable:!0,value:e}),r&&!kt&&H(o,"toString",Wt)}},Kt=At("species"),Xt=Function.toString;"function"!=typeof z.inspectSource&&(z.inspectSource=function(t){return Xt.call(t)});var Jt=z.inspectSource,Qt=At("iterator"),Zt=!1;try{var te=0,ee={next:function(){return{done:!!te++}},return:function(){Zt=!0}};ee[Qt]=function(){return this},Array.from(ee,(function(){throw 2}))}catch(t){}var ne,re,oe,ie=At("species"),ce=function(t,e){var n,r=R(t).constructor;return void 0===r||null==(n=R(r)[ie])?e:F(n)},ue=yt("navigator","userAgent")||"",ae=/(iphone|ipod|ipad).*applewebkit/i.test(ue),se="process"==l(r.process),fe=r.location,le=r.setImmediate,pe=r.clearImmediate,he=r.process,ve=r.MessageChannel,de=r.Dispatch,ye=0,ge={},me=function(t){if(ge.hasOwnProperty(t)){var e=ge[t];delete ge[t],e()}},we=function(t){return function(){me(t)}},be=function(t){me(t.data)},Se=function(t){r.postMessage(t+"",fe.protocol+"//"+fe.host)};le&&pe||(le=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return ge[++ye]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},ne(ye),ye},pe=function(t){delete ge[t]},se?ne=function(t){he.nextTick(we(t))}:de&&de.now?ne=function(t){de.now(we(t))}:ve&&!ae?(oe=(re=new ve).port2,re.port1.onmessage=be,ne=C(oe.postMessage,oe,1)):r.addEventListener&&"function"==typeof postMessage&&!r.importScripts&&fe&&"file:"!==fe.protocol&&!o(Se)?(ne=Se,r.addEventListener("message",be,!1)):ne="onreadystatechange"in j("script")?function(t){gt.appendChild(j("script")).onreadystatechange=function(){gt.removeChild(this),me(t)}}:function(t){setTimeout(we(t),0)});var je,Oe,Te,Ee,Pe,Le,Ae,_e,Me={set:le,clear:pe},Ie=E.f,xe=Me.set,ke=r.MutationObserver||r.WebKitMutationObserver,Fe=r.document,Ce=r.process,Re=r.Promise,De=Ie(r,"queueMicrotask"),Ne=De&&De.value;Ne||(je=function(){var t,e;for(se&&(t=Ce.domain)&&t.exit();Oe;){e=Oe.fn,Oe=Oe.next;try{e()}catch(t){throw Oe?Ee():Te=void 0,t}}Te=void 0,t&&t.enter()},!ae&&!se&&ke&&Fe?(Pe=!0,Le=Fe.createTextNode(""),new ke(je).observe(Le,{characterData:!0}),Ee=function(){Le.data=Pe=!Pe}):Re&&Re.resolve?(Ae=Re.resolve(void 0),_e=Ae.then,Ee=function(){_e.call(Ae,je)}):Ee=se?function(){Ce.nextTick(je)}:function(){xe.call(r,je)});var He,Ge,Ve,qe=Ne||function(t){var e={fn:t,next:void 0};Te&&(Te.next=e),Oe||(Oe=e,Ee()),Te=e},ze=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=F(e),this.reject=F(n)},Ue={f:function(t){return new ze(t)}},We=function(t,e){if(R(t),y(e)&&e.constructor===t)return e;var n=Ue.f(t);return(0,n.resolve)(e),n.promise},Be=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},Ye=r.WeakMap,$e="function"==typeof Ye&&/native code/.test(Jt(Ye)),Ke=r.WeakMap;if($e){var Xe=z.state||(z.state=new Ke),Je=Xe.get,Qe=Xe.has,Ze=Xe.set;He=function(t,e){return e.facade=t,Ze.call(Xe,t,e),e},Ge=function(t){return Je.call(Xe,t)||{}},Ve=function(t){return Qe.call(Xe,t)}}else{var tn=K("state");ft[tn]=!0,He=function(t,e){return e.facade=t,H(t,tn,e),e},Ge=function(t){return w(t,tn)?t[tn]:{}},Ve=function(t){return w(t,tn)}}var en,nn,rn={set:He,get:Ge,has:Ve,enforce:function(t){return Ve(t)?Ge(t):He(t,{})},getterFor:function(t){return function(e){var n;if(!y(e)||(n=Ge(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}},on=r.process,cn=on&&on.versions,un=cn&&cn.v8;un?nn=(en=un.split("."))[0]+en[1]:ue&&(!(en=ue.match(/Edge\/(\d+)/))||en[1]>=74)&&(en=ue.match(/Chrome\/(\d+)/))&&(nn=en[1]);var an,sn,fn,ln=nn&&+nn,pn=Me.set,hn=At("species"),vn="Promise",dn=rn.get,yn=rn.set,gn=rn.getterFor(vn),mn=zt,wn=r.TypeError,bn=r.document,Sn=r.process,jn=(yt("fetch"),Ue.f),On=jn,Tn=!!(bn&&bn.createEvent&&r.dispatchEvent),En="function"==typeof PromiseRejectionEvent,Pn=x(vn,(function(){if(!(Jt(mn)!==String(mn))){if(66===ln)return!0;if(!se&&!En)return!0}if(!mn.prototype.finally)return!0;if(ln>=51&&/native code/.test(mn))return!1;var t=mn.resolve(1),e=function(t){t((function(){}),(function(){}))};return(t.constructor={})[hn]=e,!(t.then((function(){}))instanceof e)})),Ln=Pn||!function(t,e){if(!e&&!Zt)return!1;var n=!1;try{var r={};r[Qt]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n}((function(t){mn.all(t).catch((function(){}))})),An=function(t){var e;return!(!y(t)||"function"!=typeof(e=t.then))&&e},_n=function(t,e){if(!t.notified){t.notified=!0;var n=t.reactions;qe((function(){for(var r=t.value,o=1==t.state,i=0;n.length>i;){var c,u,a,s=n[i++],f=o?s.ok:s.fail,l=s.resolve,p=s.reject,h=s.domain;try{f?(o||(2===t.rejection&&kn(t),t.rejection=1),!0===f?c=r:(h&&h.enter(),c=f(r),h&&(h.exit(),a=!0)),c===s.promise?p(wn("Promise-chain cycle")):(u=An(c))?u.call(c,l,p):l(c)):p(r)}catch(t){h&&!a&&h.exit(),p(t)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&In(t)}))}},Mn=function(t,e,n){var o,i;Tn?((o=bn.createEvent("Event")).promise=e,o.reason=n,o.initEvent(t,!1,!0),r.dispatchEvent(o)):o={promise:e,reason:n},!En&&(i=r["on"+t])?i(o):"unhandledrejection"===t&&function(t,e){var n=r.console;n&&n.error&&(1===arguments.length?n.error(t):n.error(t,e))}("Unhandled promise rejection",n)},In=function(t){pn.call(r,(function(){var e,n=t.facade,r=t.value;if(xn(t)&&(e=Be((function(){se?Sn.emit("unhandledRejection",r,n):Mn("unhandledrejection",n,r)})),t.rejection=se||xn(t)?2:1,e.error))throw e.value}))},xn=function(t){return 1!==t.rejection&&!t.parent},kn=function(t){pn.call(r,(function(){var e=t.facade;se?Sn.emit("rejectionHandled",e):Mn("rejectionhandled",e,t.value)}))},Fn=function(t,e,n){return function(r){t(e,r,n)}},Cn=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,_n(t,!0))},Rn=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw wn("Promise can't be resolved itself");var r=An(e);r?qe((function(){var n={done:!1};try{r.call(e,Fn(Rn,n,t),Fn(Cn,n,t))}catch(e){Cn(n,e,t)}})):(t.value=e,t.state=1,_n(t,!1))}catch(e){Cn({done:!1},e,t)}}};Pn&&(mn=function(t){!function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation")}(this,mn,vn),F(t),an.call(this);var e=dn(this);try{t(Fn(Rn,e),Fn(Cn,e))}catch(t){Cn(e,t)}},(an=function(t){yn(this,{type:vn,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=function(t,e,n){for(var r in e)n&&n.unsafe&&t[r]?t[r]=e[r]:Ut(t,r,e[r],n);return t}(mn.prototype,{then:function(t,e){var n=gn(this),r=jn(ce(this,mn));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=se?Sn.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&_n(n,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),sn=function(){var t=new an,e=dn(t);this.promise=t,this.resolve=Fn(Rn,e),this.reject=Fn(Cn,e)},Ue.f=jn=function(t){return t===mn||t===fn?new sn(t):On(t)}),q({global:!0,wrap:!0,forced:Pn},{Promise:mn}),$t(mn,vn,!1,!0),function(t){var e=yt(t),n=N.f;i&&e&&!e[Kt]&&n(e,Kt,{configurable:!0,get:function(){return this}})}(vn),fn=yt(vn),q({target:vn,stat:!0,forced:Pn},{reject:function(t){var e=jn(this);return e.reject.call(void 0,t),e.promise}}),q({target:vn,stat:!0,forced:!0},{resolve:function(t){return We(this===fn?mn:this,t)}}),q({target:vn,stat:!0,forced:Ln},{all:function(t){var e=this,n=jn(e),r=n.resolve,o=n.reject,i=Be((function(){var n=F(e.resolve),i=[],c=0,u=1;Gt(t,(function(t){var a=c++,s=!1;i.push(void 0),u++,n.call(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},race:function(t){var e=this,n=jn(e),r=n.reject,o=Be((function(){var o=F(e.resolve);Gt(t,(function(t){o.call(e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}}),q({target:"Promise",stat:!0},{allSettled:function(t){var e=this,n=Ue.f(e),r=n.resolve,o=n.reject,i=Be((function(){var n=F(e.resolve),o=[],i=0,c=1;Gt(t,(function(t){var u=i++,a=!1;o.push(void 0),c++,n.call(e,t).then((function(t){a||(a=!0,o[u]={status:"fulfilled",value:t},--c||r(o))}),(function(t){a||(a=!0,o[u]={status:"rejected",reason:t},--c||r(o))}))})),--c||r(o)}));return i.error&&o(i.value),n.promise}});q({target:"Promise",stat:!0},{any:function(t){var e=this,n=Ue.f(e),r=n.resolve,o=n.reject,i=Be((function(){var n=F(e.resolve),i=[],c=0,u=1,a=!1;Gt(t,(function(t){var s=c++,f=!1;i.push(void 0),u++,n.call(e,t).then((function(t){f||a||(a=!0,r(t))}),(function(t){f||a||(f=!0,i[s]=t,--u||o(new(yt("AggregateError"))(i,"No one promise resolved")))}))})),--u||o(new(yt("AggregateError"))(i,"No one promise resolved"))}));return i.error&&o(i.value),n.promise}});var Dn=!!zt&&o((function(){zt.prototype.finally.call({then:function(){}},(function(){}))}));q({target:"Promise",proto:!0,real:!0,forced:Dn},{finally:function(t){var e=ce(this,yt("Promise")),n="function"==typeof t;return this.then(n?function(n){return We(e,t()).then((function(){return n}))}:t,n?function(n){return We(e,t()).then((function(){throw n}))}:t)}});var Nn,Hn,Gn,Vn=function(t){return function(e,n){var r,o,i=String(v(e)),c=rt(n),u=i.length;return c<0||c>=u?t?"":void 0:(r=i.charCodeAt(c))<55296||r>56319||c+1===u||(o=i.charCodeAt(c+1))<56320||o>57343?t?i.charAt(c):r:t?i.slice(c,c+2):o-56320+(r-55296<<10)+65536}},qn={codeAt:Vn(!1),charAt:Vn(!0)},zn=(At("iterator"),!1);[].keys&&("next"in(Gn=[].keys())?(Hn=Z(Z(Gn)))!==Object.prototype&&(Nn=Hn):zn=!0),null==Nn&&(Nn={});var Un={IteratorPrototype:Nn,BUGGY_SAFARI_ITERATORS:zn},Wn=Un.IteratorPrototype,Bn=function(){return this},Yn=Un.IteratorPrototype,$n=Un.BUGGY_SAFARI_ITERATORS,Kn=At("iterator"),Xn=function(){return this},Jn=function(t,e,n,r,o,i,c){!function(t,e,n){var r=e+" Iterator";t.prototype=jt(Wn,{next:s(1,n)}),$t(t,r,!1,!0),_t[r]=Bn}(n,e,r);var u,a,f,l=function(t){if(t===o&&y)return y;if(!$n&&t in v)return v[t];switch(t){case"keys":case"values":case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},p=e+" Iterator",h=!1,v=t.prototype,d=v[Kn]||v["@@iterator"]||o&&v[o],y=!$n&&d||l(o),g="Array"==e&&v.entries||d;if(g&&(u=Z(g.call(new t)),Yn!==Object.prototype&&u.next&&($t(u,p,!0,!0),_t[p]=Xn)),"values"==o&&d&&"values"!==d.name&&(h=!0,y=function(){return d.call(this)}),c&&v[Kn]!==y&&H(v,Kn,y),_t[e]=y,o)if(a={values:l("values"),keys:i?y:l("keys"),entries:l("entries")},c)for(f in a)($n||h||!(f in v))&&Ut(v,f,a[f]);else q({target:e,proto:!0,forced:$n||h},a);return a},Qn=qn.charAt,Zn=rn.set,tr=rn.getterFor("String Iterator");Jn(String,"String",(function(t){Zn(this,{type:"String Iterator",string:String(t),index:0})}),(function(){var t,e=tr(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=Qn(n,r),e.index+=t.length,{value:t,done:!1})}));var er=rn.set,nr=rn.getterFor("Array Iterator");Jn(Array,"Array",(function(t,e){er(this,{type:"Array Iterator",target:d(t),index:0,kind:e})}),(function(){var t=nr(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values");_t.Arguments=_t.Array;var rr,or=At("toStringTag");for(var ir in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var cr=r[ir],ur=cr&&cr.prototype;ur&&Rt(ur)!==or&&H(ur,or,ir),_t[ir]=_t.Array}(rr=qt)&&rr.default;var ar=k.Promise,sr=[].slice,fr={},lr=function(t,e,n){if(!(e in fr)){for(var r=[],o=0;o<e;o++)r[o]="a["+o+"]";fr[e]=Function("C,a","return new C("+r.join(",")+")")}return fr[e](t,n)},pr=Function.bind||function(t){var e=F(this),n=sr.call(arguments,1),r=function(){var o=n.concat(sr.call(arguments));return this instanceof r?lr(e,o.length,o):e.apply(t,o)};return y(e.prototype)&&(r.prototype=e.prototype),r};q({target:"Function",proto:!0},{bind:pr});var hr,vr=(hr="Function",k[hr+"Prototype"]).bind,dr=Function.prototype,yr=function(t){var e=t.bind;return t===dr||t instanceof Function&&e===dr.bind?vr:e},gr=[].slice,mr=/MSIE .\./.test(ue),wr=function(t){return function(e,n){var r=arguments.length>2,o=r?gr.call(arguments,2):void 0;return t(r?function(){("function"==typeof e?e:Function(e)).apply(this,o)}:e,n)}};q({global:!0,bind:!0,forced:mr},{setTimeout:wr(r.setTimeout),setInterval:wr(r.setInterval)}),q({target:"Date",stat:!0},{now:function(){return(new Date).getTime()}});k.Date.now;function br(){}class Sr{loading=!1;lastPosition=0;constructor(t,{threshold:e,onLoadMore:n=br}){var r;this.threshold=e,this.onLoadMore=n,this.$el=function(t,e){if("function"==typeof t&&(t=t()),t instanceof HTMLElement)return t;try{const e=document.querySelector(t);if(null===e)throw new Error;return e}catch(t){if(void 0!==e)return e;throw new Error("必须提供有效的下拉刷新DOM节点")}}(t,null),this.pullupHeight=this.$el?this.$el.offsetHeight:0,"number"==typeof this.threshold&&(this.pullupHeight=this.threshold),this.handlerScroll=yr(r=this.handlerScroll).call(r,this),window.addEventListener("scroll",this.handlerScroll,!1)}handlerScroll(){const{scrollTop:t,scrollHeight:e,clientHeight:n}=document.scrollingElement||document.documentElement,r=e-t-n;if(!this.loading&&r<this.lastPosition&&r<=this.pullupHeight){var o;this.loading=!0;const t=this.onLoadMore(yr(o=this.finished).call(o,this));var i;if(t instanceof ar)t.then(yr(i=this.finished).call(i,this))}this.loading&&r>this.pullupHeight&&(this.loading=!1),this.lastPosition=r}finished(){this.lastPosition=0}destroy(){window.removeEventListener("scroll",this.handlerScroll,!1)}}return{install:t=>{t.directive("pullup",{mounted:(t,{value:e})=>{t.pullup=new Sr(t,e)},unmounted:t=>{t.pullup.destroy()}})}}}();