vue-pure-admin/dist/static/js/infinite-scroll.js
2023-10-17 11:41:08 +08:00

11 lines
20 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import{a2 as cr,a3 as ur,d as Kt,r as K,c as F,f as Qr,w as V,g as re,h as k,i as U,j as C,t as ee,l as Vt,u as kt}from"./index.js";var W=function(r){return r&&r.Math===Math&&r},y=W(typeof globalThis=="object"&&globalThis)||W(typeof window=="object"&&window)||W(typeof self=="object"&&self)||W(typeof cr=="object"&&cr)||function(){return this}()||cr||Function("return this")(),Nr={},p=function(r){try{return!!r()}catch{return!0}},Ut=p,E=!Ut(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),Wt=p,tr=!Wt(function(){var r=(function(){}).bind();return typeof r!="function"||r.hasOwnProperty("prototype")}),Ht=tr,H=Function.prototype.call,Fr=Ht?H.bind(H):function(){return H.apply(H,arguments)},We={},He={}.propertyIsEnumerable,ze=Object.getOwnPropertyDescriptor,zt=ze&&!He.call({1:2},1);We.f=zt?function(e){var t=ze(this,e);return!!t&&t.enumerable}:He;var ar=function(r,e){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:e}},qe=tr,Xe=Function.prototype,_r=Xe.call,qt=qe&&Xe.bind.bind(_r,_r),s=qe?qt:function(r){return function(){return _r.apply(r,arguments)}},Je=s,Xt=Je({}.toString),Jt=Je("".slice),nr=function(r){return Jt(Xt(r),8,-1)},Yt=s,Zt=p,Qt=nr,lr=Object,ra=Yt("".split),Ye=Zt(function(){return!lr("z").propertyIsEnumerable(0)})?function(r){return Qt(r)==="String"?ra(r,""):lr(r)}:lr,Ze=function(r){return r==null},ea=Ze,ta=TypeError,Qe=function(r){if(ea(r))throw new ta("Can't call method on "+r);return r},aa=Ye,na=Qe,Mr=function(r){return aa(na(r))},Pr=typeof document=="object"&&document.all,oa=typeof Pr>"u"&&Pr!==void 0,rt={all:Pr,IS_HTMLDDA:oa},et=rt,ia=et.all,f=et.IS_HTMLDDA?function(r){return typeof r=="function"||r===ia}:function(r){return typeof r=="function"},te=f,tt=rt,ca=tt.all,h=tt.IS_HTMLDDA?function(r){return typeof r=="object"?r!==null:te(r)||r===ca}:function(r){return typeof r=="object"?r!==null:te(r)},vr=y,ua=f,la=function(r){return ua(r)?r:void 0},or=function(r,e){return arguments.length<2?la(vr[r]):vr[r]&&vr[r][e]},va=s,at=va({}.isPrototypeOf),sa=typeof navigator<"u"&&String(navigator.userAgent)||"",nt=y,sr=sa,ae=nt.process,ne=nt.Deno,oe=ae&&ae.versions||ne&&ne.version,ie=oe&&oe.v8,d,Z;ie&&(d=ie.split("."),Z=d[0]>0&&d[0]<4?1:+(d[0]+d[1]));!Z&&sr&&(d=sr.match(/Edge\/(\d+)/),(!d||d[1]>=74)&&(d=sr.match(/Chrome\/(\d+)/),d&&(Z=+d[1])));var xr=Z,ce=xr,fa=p,pa=y,ya=pa.String,ot=!!Object.getOwnPropertySymbols&&!fa(function(){var r=Symbol("symbol detection");return!ya(r)||!(Object(r)instanceof Symbol)||!Symbol.sham&&ce&&ce<41}),da=ot,it=da&&!Symbol.sham&&typeof Symbol.iterator=="symbol",$a=or,ba=f,ga=at,Sa=it,ha=Object,ct=Sa?function(r){return typeof r=="symbol"}:function(r){var e=$a("Symbol");return ba(e)&&ga(e.prototype,ha(r))},ma=String,Oa=function(r){try{return ma(r)}catch{return"Object"}},Ea=f,Ta=Oa,Ia=TypeError,Br=function(r){if(Ea(r))return r;throw new Ia(Ta(r)+" is not a function")},wa=Br,_a=Ze,Pa=function(r,e){var t=r[e];return _a(t)?void 0:wa(t)},fr=Fr,pr=f,yr=h,Ca=TypeError,ja=function(r,e){var t,a;if(e==="string"&&pr(t=r.toString)&&!yr(a=fr(t,r))||pr(t=r.valueOf)&&!yr(a=fr(t,r))||e!=="string"&&pr(t=r.toString)&&!yr(a=fr(t,r)))return a;throw new Ca("Can't convert object to primitive value")},ut={exports:{}},ue=y,Aa=Object.defineProperty,Gr=function(r,e){try{Aa(ue,r,{value:e,configurable:!0,writable:!0})}catch{ue[r]=e}return e},Ra=y,La=Gr,le="__core-js_shared__",Da=Ra[le]||La(le,{}),Kr=Da,ve=Kr;(ut.exports=function(r,e){return ve[r]||(ve[r]=e!==void 0?e:{})})("versions",[]).push({version:"3.33.0",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.0/LICENSE",source:"https://github.com/zloirock/core-js"});var lt=ut.exports,Na=Qe,Fa=Object,Vr=function(r){return Fa(Na(r))},Ma=s,xa=Vr,Ba=Ma({}.hasOwnProperty),T=Object.hasOwn||function(e,t){return Ba(xa(e),t)},Ga=s,Ka=0,Va=Math.random(),ka=Ga(1 .toString),vt=function(r){return"Symbol("+(r===void 0?"":r)+")_"+ka(++Ka+Va,36)},Ua=y,Wa=lt,se=T,Ha=vt,za=ot,qa=it,A=Ua.Symbol,dr=Wa("wks"),Xa=qa?A.for||A:A&&A.withoutSetter||Ha,R=function(r){return se(dr,r)||(dr[r]=za&&se(A,r)?A[r]:Xa("Symbol."+r)),dr[r]},Ja=Fr,fe=h,pe=ct,Ya=Pa,Za=ja,Qa=R,rn=TypeError,en=Qa("toPrimitive"),tn=function(r,e){if(!fe(r)||pe(r))return r;var t=Ya(r,en),a;if(t){if(e===void 0&&(e="default"),a=Ja(t,r,e),!fe(a)||pe(a))return a;throw new rn("Can't convert object to primitive value")}return e===void 0&&(e="number"),Za(r,e)},an=tn,nn=ct,kr=function(r){var e=an(r,"string");return nn(e)?e:e+""},on=y,ye=h,Cr=on.document,cn=ye(Cr)&&ye(Cr.createElement),st=function(r){return cn?Cr.createElement(r):{}},un=E,ln=p,vn=st,ft=!un&&!ln(function(){return Object.defineProperty(vn("div"),"a",{get:function(){return 7}}).a!==7}),sn=E,fn=Fr,pn=We,yn=ar,dn=Mr,$n=kr,bn=T,gn=ft,de=Object.getOwnPropertyDescriptor;Nr.f=sn?de:function(e,t){if(e=dn(e),t=$n(t),gn)try{return de(e,t)}catch{}if(bn(e,t))return yn(!fn(pn.f,e,t),e[t])};var L={},Sn=E,hn=p,mn=Sn&&hn(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),On=h,En=String,Tn=TypeError,Ur=function(r){if(On(r))return r;throw new Tn(En(r)+" is not an object")},In=E,wn=ft,_n=mn,z=Ur,$e=kr,Pn=TypeError,$r=Object.defineProperty,Cn=Object.getOwnPropertyDescriptor,br="enumerable",gr="configurable",Sr="writable";L.f=In?_n?function(e,t,a){if(z(e),t=$e(t),z(a),typeof e=="function"&&t==="prototype"&&"value"in a&&Sr in a&&!a[Sr]){var n=Cn(e,t);n&&n[Sr]&&(e[t]=a.value,a={configurable:gr in a?a[gr]:n[gr],enumerable:br in a?a[br]:n[br],writable:!1})}return $r(e,t,a)}:$r:function(e,t,a){if(z(e),t=$e(t),z(a),wn)try{return $r(e,t,a)}catch{}if("get"in a||"set"in a)throw new Pn("Accessors not supported");return"value"in a&&(e[t]=a.value),e};var jn=E,An=L,Rn=ar,D=jn?function(r,e,t){return An.f(r,e,Rn(1,t))}:function(r,e,t){return r[e]=t,r},pt={exports:{}},jr=E,Ln=T,yt=Function.prototype,Dn=jr&&Object.getOwnPropertyDescriptor,Wr=Ln(yt,"name"),Nn=Wr&&(function(){}).name==="something",Fn=Wr&&(!jr||jr&&Dn(yt,"name").configurable),Mn={EXISTS:Wr,PROPER:Nn,CONFIGURABLE:Fn},xn=s,Bn=f,Ar=Kr,Gn=xn(Function.toString);Bn(Ar.inspectSource)||(Ar.inspectSource=function(r){return Gn(r)});var dt=Ar.inspectSource,Kn=y,Vn=f,be=Kn.WeakMap,kn=Vn(be)&&/native code/.test(String(be)),Un=lt,Wn=vt,ge=Un("keys"),Hn=function(r){return ge[r]||(ge[r]=Wn(r))},$t={},zn=kn,bt=y,qn=h,Xn=D,hr=T,mr=Kr,Jn=Hn,Yn=$t,Se="Object already initialized",Rr=bt.TypeError,Zn=bt.WeakMap,Q,x,rr,Qn=function(r){return rr(r)?x(r):Q(r,{})},ro=function(r){return function(e){var t;if(!qn(e)||(t=x(e)).type!==r)throw new Rr("Incompatible receiver, "+r+" required");return t}};if(zn||mr.state){var b=mr.state||(mr.state=new Zn);b.get=b.get,b.has=b.has,b.set=b.set,Q=function(r,e){if(b.has(r))throw new Rr(Se);return e.facade=r,b.set(r,e),e},x=function(r){return b.get(r)||{}},rr=function(r){return b.has(r)}}else{var j=Jn("state");Yn[j]=!0,Q=function(r,e){if(hr(r,j))throw new Rr(Se);return e.facade=r,Xn(r,j,e),e},x=function(r){return hr(r,j)?r[j]:{}},rr=function(r){return hr(r,j)}}var eo={set:Q,get:x,has:rr,enforce:Qn,getterFor:ro},Hr=s,to=p,ao=f,q=T,Lr=E,no=Mn.CONFIGURABLE,oo=dt,gt=eo,io=gt.enforce,co=gt.get,he=String,J=Object.defineProperty,uo=Hr("".slice),lo=Hr("".replace),vo=Hr([].join),so=Lr&&!to(function(){return J(function(){},"length",{value:8}).length!==8}),fo=String(String).split("String"),po=pt.exports=function(r,e,t){uo(he(e),0,7)==="Symbol("&&(e="["+lo(he(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),t&&t.getter&&(e="get "+e),t&&t.setter&&(e="set "+e),(!q(r,"name")||no&&r.name!==e)&&(Lr?J(r,"name",{value:e,configurable:!0}):r.name=e),so&&t&&q(t,"arity")&&r.length!==t.arity&&J(r,"length",{value:t.arity});try{t&&q(t,"constructor")&&t.constructor?Lr&&J(r,"prototype",{writable:!1}):r.prototype&&(r.prototype=void 0)}catch{}var a=io(r);return q(a,"source")||(a.source=vo(fo,typeof e=="string"?e:"")),r};Function.prototype.toString=po(function(){return ao(this)&&co(this).source||oo(this)},"toString");var yo=pt.exports,$o=f,bo=L,go=yo,So=Gr,St=function(r,e,t,a){a||(a={});var n=a.enumerable,o=a.name!==void 0?a.name:e;if($o(t)&&go(t,o,a),a.global)n?r[e]=t:So(e,t);else{try{a.unsafe?r[e]&&(n=!0):delete r[e]}catch{}n?r[e]=t:bo.f(r,e,{value:t,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return r},ht={},ho=Math.ceil,mo=Math.floor,Oo=Math.trunc||function(e){var t=+e;return(t>0?mo:ho)(t)},Eo=Oo,mt=function(r){var e=+r;return e!==e||e===0?0:Eo(e)},To=mt,Io=Math.max,wo=Math.min,_o=function(r,e){var t=To(r);return t<0?Io(t+e,0):wo(t,e)},Po=mt,Co=Math.min,jo=function(r){return r>0?Co(Po(r),9007199254740991):0},Ao=jo,zr=function(r){return Ao(r.length)},Ro=Mr,Lo=_o,Do=zr,me=function(r){return function(e,t,a){var n=Ro(e),o=Do(n),i=Lo(a,o),u;if(r&&t!==t){for(;o>i;)if(u=n[i++],u!==u)return!0}else for(;o>i;i++)if((r||i in n)&&n[i]===t)return r||i||0;return!r&&-1}},No={includes:me(!0),indexOf:me(!1)},Fo=s,Or=T,Mo=Mr,xo=No.indexOf,Bo=$t,Oe=Fo([].push),Go=function(r,e){var t=Mo(r),a=0,n=[],o;for(o in t)!Or(Bo,o)&&Or(t,o)&&Oe(n,o);for(;e.length>a;)Or(t,o=e[a++])&&(~xo(n,o)||Oe(n,o));return n},Ko=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Vo=Go,ko=Ko,Uo=ko.concat("length","prototype");ht.f=Object.getOwnPropertyNames||function(e){return Vo(e,Uo)};var Ot={};Ot.f=Object.getOwnPropertySymbols;var Wo=or,Ho=s,zo=ht,qo=Ot,Xo=Ur,Jo=Ho([].concat),Yo=Wo("Reflect","ownKeys")||function(e){var t=zo.f(Xo(e)),a=qo.f;return a?Jo(t,a(e)):t},Ee=T,Zo=Yo,Qo=Nr,ri=L,Et=function(r,e,t){for(var a=Zo(e),n=ri.f,o=Qo.f,i=0;i<a.length;i++){var u=a[i];!Ee(r,u)&&!(t&&Ee(t,u))&&n(r,u,o(e,u))}},ei=p,ti=f,ai=/#|\.prototype\./,B=function(r,e){var t=oi[ni(r)];return t===ci?!0:t===ii?!1:ti(e)?ei(e):!!e},ni=B.normalize=function(r){return String(r).replace(ai,".").toLowerCase()},oi=B.data={},ii=B.NATIVE="N",ci=B.POLYFILL="P",ui=B,Er=y,li=Nr.f,vi=D,si=St,fi=Gr,pi=Et,yi=ui,Tt=function(r,e){var t=r.target,a=r.global,n=r.stat,o,i,u,c,l,$;if(a?i=Er:n?i=Er[t]||fi(t,{}):i=(Er[t]||{}).prototype,i)for(u in e){if(l=e[u],r.dontCallGetSet?($=li(i,u),c=$&&$.value):c=i[u],o=yi(a?u:t+(n?".":"#")+u,r.forced),!o&&c!==void 0){if(typeof l==typeof c)continue;pi(l,c)}(r.sham||c&&c.sham)&&vi(l,"sham",!0),si(i,u,l,r)}},di=tr,It=Function.prototype,Te=It.apply,Ie=It.call,$i=typeof Reflect=="object"&&Reflect.apply||(di?Ie.bind(Te):function(){return Ie.apply(Te,arguments)}),bi=s,gi=Br,Si=function(r,e,t){try{return bi(gi(Object.getOwnPropertyDescriptor(r,e)[t]))}catch{}},hi=f,mi=String,Oi=TypeError,Ei=function(r){if(typeof r=="object"||hi(r))return r;throw new Oi("Can't set "+mi(r)+" as a prototype")},Ti=Si,Ii=Ur,wi=Ei,wt=Object.setPrototypeOf||("__proto__"in{}?function(){var r=!1,e={},t;try{t=Ti(Object.prototype,"__proto__","set"),t(e,[]),r=e instanceof Array}catch{}return function(n,o){return Ii(n),wi(o),r?t(n,o):n.__proto__=o,n}}():void 0),_i=L.f,Pi=function(r,e,t){t in r||_i(r,t,{configurable:!0,get:function(){return e[t]},set:function(a){e[t]=a}})},Ci=f,ji=h,we=wt,Ai=function(r,e,t){var a,n;return we&&Ci(a=e.constructor)&&a!==t&&ji(n=a.prototype)&&n!==t.prototype&&we(r,n),r},Ri=R,Li=Ri("toStringTag"),_t={};_t[Li]="z";var qr=String(_t)==="[object z]",Di=qr,Ni=f,Y=nr,Fi=R,Mi=Fi("toStringTag"),xi=Object,Bi=Y(function(){return arguments}())==="Arguments",Gi=function(r,e){try{return r[e]}catch{}},Xr=Di?Y:function(r){var e,t,a;return r===void 0?"Undefined":r===null?"Null":typeof(t=Gi(e=xi(r),Mi))=="string"?t:Bi?Y(e):(a=Y(e))==="Object"&&Ni(e.callee)?"Arguments":a},Ki=Xr,Vi=String,ki=function(r){if(Ki(r)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return Vi(r)},Ui=ki,Wi=function(r,e){return r===void 0?arguments.length<2?"":e:Ui(r)},Hi=h,zi=D,qi=function(r,e){Hi(e)&&"cause"in e&&zi(r,"cause",e.cause)},Xi=s,Pt=Error,Ji=Xi("".replace),Yi=function(r){return String(new Pt(r).stack)}("zxcasd"),Ct=/\n\s*at [^:]*:[^\n]*/,Zi=Ct.test(Yi),Qi=function(r,e){if(Zi&&typeof r=="string"&&!Pt.prepareStackTrace)for(;e--;)r=Ji(r,Ct,"");return r},rc=p,ec=ar,tc=!rc(function(){var r=new Error("a");return"stack"in r?(Object.defineProperty(r,"stack",ec(1,7)),r.stack!==7):!0}),ac=D,nc=Qi,oc=tc,_e=Error.captureStackTrace,ic=function(r,e,t,a){oc&&(_e?_e(r,e):ac(r,"stack",nc(t,a)))},Pe=or,cc=T,Ce=D,uc=at,je=wt,Ae=Et,Re=Pi,lc=Ai,vc=Wi,sc=qi,fc=ic,pc=E,yc=function(r,e,t,a){var n="stackTraceLimit",o=a?2:1,i=r.split("."),u=i[i.length-1],c=Pe.apply(null,i);if(c){var l=c.prototype;if(cc(l,"cause")&&delete l.cause,!t)return c;var $=Pe("Error"),v=e(function(m,I){var P=vc(a?I:m,void 0),S=a?new c(m):new c;return P!==void 0&&Ce(S,"message",P),fc(S,v,S.stack,2),this&&uc(l,this)&&lc(S,this,v),arguments.length>o&&sc(S,arguments[o]),S});v.prototype=l,u!=="Error"?je?je(v,$):Ae(v,$,{name:!0}):pc&&n in c&&(Re(v,c,n),Re(v,c,"prepareStackTrace")),Ae(v,c);try{l.name!==u&&Ce(l,"name",u),l.constructor=v}catch{}return v}},jt=Tt,dc=y,g=$i,At=yc,Dr="WebAssembly",Le=dc[Dr],er=new Error("e",{cause:7}).cause!==7,_=function(r,e){var t={};t[r]=At(r,e,er),jt({global:!0,constructor:!0,arity:1,forced:er},t)},Jr=function(r,e){if(Le&&Le[r]){var t={};t[r]=At(Dr+"."+r,e,er),jt({target:Dr,stat:!0,constructor:!0,arity:1,forced:er},t)}};_("Error",function(r){return function(t){return g(r,this,arguments)}});_("EvalError",function(r){return function(t){return g(r,this,arguments)}});_("RangeError",function(r){return function(t){return g(r,this,arguments)}});_("ReferenceError",function(r){return function(t){return g(r,this,arguments)}});_("SyntaxError",function(r){return function(t){return g(r,this,arguments)}});_("TypeError",function(r){return function(t){return g(r,this,arguments)}});_("URIError",function(r){return function(t){return g(r,this,arguments)}});Jr("CompileError",function(r){return function(t){return g(r,this,arguments)}});Jr("LinkError",function(r){return function(t){return g(r,this,arguments)}});Jr("RuntimeError",function(r){return function(t){return g(r,this,arguments)}});var $c=nr,Rt=Array.isArray||function(e){return $c(e)==="Array"},bc=TypeError,gc=9007199254740991,Sc=function(r){if(r>gc)throw bc("Maximum allowed index exceeded");return r},hc=kr,mc=L,Oc=ar,Ec=function(r,e,t){var a=hc(e);a in r?mc.f(r,a,Oc(0,t)):r[a]=t},Tc=s,Ic=p,Lt=f,wc=Xr,_c=or,Pc=dt,Dt=function(){},Cc=[],Nt=_c("Reflect","construct"),Yr=/^\s*(?:class|function)\b/,jc=Tc(Yr.exec),Ac=!Yr.test(Dt),M=function(e){if(!Lt(e))return!1;try{return Nt(Dt,Cc,e),!0}catch{return!1}},Ft=function(e){if(!Lt(e))return!1;switch(wc(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Ac||!!jc(Yr,Pc(e))}catch{return!0}};Ft.sham=!0;var Rc=!Nt||Ic(function(){var r;return M(M.call)||!M(Object)||!M(function(){r=!0})||r})?Ft:M,De=Rt,Lc=Rc,Dc=h,Nc=R,Fc=Nc("species"),Ne=Array,Mc=function(r){var e;return De(r)&&(e=r.constructor,Lc(e)&&(e===Ne||De(e.prototype))?e=void 0:Dc(e)&&(e=e[Fc],e===null&&(e=void 0))),e===void 0?Ne:e},xc=Mc,Mt=function(r,e){return new(xc(r))(e===0?0:e)},Bc=p,Gc=R,Kc=xr,Vc=Gc("species"),kc=function(r){return Kc>=51||!Bc(function(){var e=[],t=e.constructor={};return t[Vc]=function(){return{foo:1}},e[r](Boolean).foo!==1})},Uc=Tt,Wc=p,Hc=Rt,zc=h,qc=Vr,Xc=zr,Fe=Sc,Me=Ec,Jc=Mt,Yc=kc,Zc=R,Qc=xr,xt=Zc("isConcatSpreadable"),ru=Qc>=51||!Wc(function(){var r=[];return r[xt]=!1,r.concat()[0]!==r}),eu=function(r){if(!zc(r))return!1;var e=r[xt];return e!==void 0?!!e:Hc(r)},tu=!ru||!Yc("concat");Uc({target:"Array",proto:!0,arity:1,forced:tu},{concat:function(e){var t=qc(this),a=Jc(t,0),n=0,o,i,u,c,l;for(o=-1,u=arguments.length;o<u;o++)if(l=o===-1?t:arguments[o],eu(l))for(c=Xc(l),Fe(n+c),i=0;i<c;i++,n++)i in l&&Me(a,n,l[i]);else Fe(n+1),Me(a,n++,l);return a.length=n,a}});var au=qr,nu=Xr,ou=au?{}.toString:function(){return"[object "+nu(this)+"]"},iu=qr,cu=St,uu=ou;iu||cu(Object.prototype,"toString",uu,{unsafe:!0});var lu={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},vu=st,Tr=vu("span").classList,xe=Tr&&Tr.constructor&&Tr.constructor.prototype,su=xe===Object.prototype?void 0:xe,fu=nr,pu=s,yu=function(r){if(fu(r)==="Function")return pu(r)},Be=yu,du=Br,$u=tr,bu=Be(Be.bind),gu=function(r,e){return du(r),e===void 0?r:$u?bu(r,e):function(){return r.apply(e,arguments)}},Su=gu,hu=s,mu=Ye,Ou=Vr,Eu=zr,Tu=Mt,Ge=hu([].push),O=function(r){var e=r===1,t=r===2,a=r===3,n=r===4,o=r===6,i=r===7,u=r===5||o;return function(c,l,$,v){for(var m=Ou(c),I=mu(m),P=Su(l,$),S=Eu(I),w=0,Zr=v||Tu,G=e?Zr(c,S):t||i?Zr(c,0):void 0,N,ir;S>w;w++)if((u||w in I)&&(N=I[w],ir=P(N,w,m),r))if(e)G[w]=ir;else if(ir)switch(r){case 3:return!0;case 5:return N;case 6:return w;case 2:Ge(G,N)}else switch(r){case 4:return!1;case 7:Ge(G,N)}return o?-1:a||n?n:G}},Iu={forEach:O(0),map:O(1),filter:O(2),some:O(3),every:O(4),find:O(5),findIndex:O(6),filterReject:O(7)},wu=p,_u=function(r,e){var t=[][r];return!!t&&wu(function(){t.call(null,e||function(){return 1},1)})},Pu=Iu.forEach,Cu=_u,ju=Cu("forEach"),Au=ju?[].forEach:function(e){return Pu(this,e,arguments.length>1?arguments[1]:void 0)},Ke=y,Ve=lu,Ru=su,Ir=Au,Lu=D,Bt=function(r){if(r&&r.forEach!==Ir)try{Lu(r,"forEach",Ir)}catch{r.forEach=Ir}};for(var wr in Ve)Ve[wr]&&Bt(Ke[wr]&&Ke[wr].prototype);Bt(Ru);/*!
* el-table-infinite-scroll v3.0.3
* (c) 2019-2023 yujinpan
*/function Du(r,e,t){var a;t.forEach(function(n){a=r.getAttribute(n),a!==null?e.setAttribute(n,a):e.removeAttribute(n)})}/*!
* el-table-infinite-scroll v3.0.3
* (c) 2019-2023 yujinpan
*/var ke="[el-table-infinite-scroll]: ",X=".el-scrollbar__wrap",Nu={mounted:function(e,t,a,n){var o=e.querySelector(X);if(!o)throw new Error("".concat(ke).concat(X," element not found."));o.style.overflowY="auto",setTimeout(function(){e.style.height||(o.style.height="400px",console.warn("".concat(ke,"el-table height required, otherwise will set scrollbar default height: 400px"))),Ue(e,o),ur.mounted(o,t,a,n)},0)},updated:function(e){Ue(e,e.querySelector(X))},unmounted:function(e){for(var t=e.querySelector(X),a=arguments.length,n=new Array(a>1?a-1:0),o=1;o<a;o++)n[o-1]=arguments[o];ur.unmounted.apply(ur,[t].concat(n))}};function Ue(r,e){Du(r,e,["infinite-scroll-disabled","infinite-scroll-delay","infinite-scroll-immediate","infinite-scroll-distance"]);var t="infinite-scroll-distance",a=+(r.getAttribute(t)||0);e.setAttribute(t,(a<1?1:a)+"")}/*!
* el-table-infinite-scroll v3.0.3
* (c) 2019-2023 yujinpan
*/var Gt=Object.assign(Nu,{install:function(e){e.directive("el-table-infinite-scroll",Gt)}});const Fu={class:"font-medium"},Mu={class:"mb-2"},Bu=Kt({name:"InfiniteScroll",__name:"infinite-scroll",setup(r){const e=new Array(10).fill({date:"2022-08-24",name:"RealityBoy",age:"18"}),t=K([]),a=K(!1),n=K(0),o=K(10),i=()=>{a.value||(n.value++,n.value<=o.value&&(t.value=t.value.concat(e)),n.value===o.value&&(a.value=!0))};return(u,c)=>{const l=F("el-link"),$=F("el-switch"),v=F("el-table-column"),m=F("el-table"),I=F("el-card");return re(),Qr(I,{shadow:"never"},{header:V(()=>[k("div",Fu,[U(" 表格无限滚动( "),C(l,{href:"https://github.com/yujinpan/el-table-infinite-scroll",target:"_blank",style:{margin:"0 5px 4px 0","font-size":"16px"}},{default:V(()=>[U(" github地址 ")]),_:1}),U(" ")])]),default:V(()=>[k("div",null,[k("p",Mu,[k("span",null,"loaded page(total: "+ee(o.value)+"): "+ee(n.value)+", ",1),U(" disabled: "),C($,{modelValue:a.value,"onUpdate:modelValue":c[0]||(c[0]=P=>a.value=P),disabled:n.value>=o.value},null,8,["modelValue","disabled"])]),Vt((re(),Qr(m,{data:t.value,"infinite-scroll-disabled":a.value,height:"435px"},{default:V(()=>[C(v,{type:"index"}),C(v,{prop:"date",label:"date"}),C(v,{prop:"name",label:"name"}),C(v,{prop:"age",label:"age"})]),_:1},8,["data","infinite-scroll-disabled"])),[[kt(Gt),i]])])]),_:1})}}});export{Bu as default};