| 12345678910 |
- /**
- * bootstrap-table - An extended table to integration with some of the most widely used CSS frameworks. (Supports Bootstrap, Semantic UI, Bulma, Material Design, Foundation)
- *
- * @version v1.22.3
- * @homepage https://bootstrap-table.com
- * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)
- * @license MIT
- */
- !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).jQuery)}(this,(function(t){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},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 e&&e)||n("object"==typeof e&&e)||function(){return this}()||Function("return this")(),o={},i=function(t){try{return!!t()}catch(t){return!0}},a=!i((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),s=!i((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),c=s,u=Function.prototype.call,f=c?u.bind(u):function(){return u.apply(u,arguments)},p={},l={}.propertyIsEnumerable,h=Object.getOwnPropertyDescriptor,d=h&&!l.call({1:2},1);p.f=d?function(t){var e=h(this,t);return!!e&&e.enumerable}:l;var y,g,b=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},v=s,m=Function.prototype,w=m.call,S=v&&m.bind.bind(w,w),O=v?S:function(t){return function(){return w.apply(t,arguments)}},j=O,P=j({}.toString),x=j("".slice),C=function(t){return x(P(t),8,-1)},T=i,E=C,A=Object,z=O("".split),W=T((function(){return!A("z").propertyIsEnumerable(0)}))?function(t){return"String"===E(t)?z(t,""):A(t)}:A,N=function(t){return null==t},R=N,F=TypeError,I=function(t){if(R(t))throw new F("Can't call method on "+t);return t},L=W,M=I,k=function(t){return L(M(t))},q="object"==typeof document&&document.all,D=void 0===q&&void 0!==q?function(t){return"function"==typeof t||t===q}:function(t){return"function"==typeof t},_=D,G=function(t){return"object"==typeof t?null!==t:_(t)},J=r,V=D,$=function(t){return V(t)?t:void 0},B=function(t,e){return arguments.length<2?$(J[t]):J[t]&&J[t][e]},H=O({}.isPrototypeOf),U=r,K="undefined"!=typeof navigator&&String(navigator.userAgent)||"",Q=U.process,X=U.Deno,Y=Q&&Q.versions||X&&X.version,Z=Y&&Y.v8;Z&&(g=(y=Z.split("."))[0]>0&&y[0]<4?1:+(y[0]+y[1])),!g&&K&&(!(y=K.match(/Edge\/(\d+)/))||y[1]>=74)&&(y=K.match(/Chrome\/(\d+)/))&&(g=+y[1]);var tt=g,et=tt,nt=i,rt=r.String,ot=!!Object.getOwnPropertySymbols&&!nt((function(){var t=Symbol("symbol detection");return!rt(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&et&&et<41})),it=ot&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,at=B,st=D,ct=H,ut=Object,ft=it?function(t){return"symbol"==typeof t}:function(t){var e=at("Symbol");return st(e)&&ct(e.prototype,ut(t))},pt=String,lt=D,ht=function(t){try{return pt(t)}catch(t){return"Object"}},dt=TypeError,yt=function(t){if(lt(t))return t;throw new dt(ht(t)+" is not a function")},gt=yt,bt=N,vt=f,mt=D,wt=G,St=TypeError,Ot={exports:{}},jt=r,Pt=Object.defineProperty,xt=function(t,e){try{Pt(jt,t,{value:e,configurable:!0,writable:!0})}catch(n){jt[t]=e}return e},Ct=r,Tt=xt,Et="__core-js_shared__",At=Ot.exports=Ct[Et]||Tt(Et,{});(At.versions||(At.versions=[])).push({version:"3.36.0",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.36.0/LICENSE",source:"https://github.com/zloirock/core-js"});var zt=Ot.exports,Wt=zt,Nt=function(t,e){return Wt[t]||(Wt[t]=e||{})},Rt=I,Ft=Object,It=function(t){return Ft(Rt(t))},Lt=It,Mt=O({}.hasOwnProperty),kt=Object.hasOwn||function(t,e){return Mt(Lt(t),e)},qt=O,Dt=0,_t=Math.random(),Gt=qt(1..toString),Jt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Gt(++Dt+_t,36)},Vt=Nt,$t=kt,Bt=Jt,Ht=ot,Ut=it,Kt=r.Symbol,Qt=Vt("wks"),Xt=Ut?Kt.for||Kt:Kt&&Kt.withoutSetter||Bt,Yt=function(t){return $t(Qt,t)||(Qt[t]=Ht&&$t(Kt,t)?Kt[t]:Xt("Symbol."+t)),Qt[t]},Zt=f,te=G,ee=ft,ne=function(t,e){var n=t[e];return bt(n)?void 0:gt(n)},re=function(t,e){var n,r;if("string"===e&&mt(n=t.toString)&&!wt(r=vt(n,t)))return r;if(mt(n=t.valueOf)&&!wt(r=vt(n,t)))return r;if("string"!==e&&mt(n=t.toString)&&!wt(r=vt(n,t)))return r;throw new St("Can't convert object to primitive value")},oe=TypeError,ie=Yt("toPrimitive"),ae=function(t,e){if(!te(t)||ee(t))return t;var n,r=ne(t,ie);if(r){if(void 0===e&&(e="default"),n=Zt(r,t,e),!te(n)||ee(n))return n;throw new oe("Can't convert object to primitive value")}return void 0===e&&(e="number"),re(t,e)},se=ft,ce=function(t){var e=ae(t,"string");return se(e)?e:e+""},ue=G,fe=r.document,pe=ue(fe)&&ue(fe.createElement),le=function(t){return pe?fe.createElement(t):{}},he=!a&&!i((function(){return 7!==Object.defineProperty(le("div"),"a",{get:function(){return 7}}).a})),de=a,ye=f,ge=p,be=b,ve=k,me=ce,we=kt,Se=he,Oe=Object.getOwnPropertyDescriptor;o.f=de?Oe:function(t,e){if(t=ve(t),e=me(e),Se)try{return Oe(t,e)}catch(t){}if(we(t,e))return be(!ye(ge.f,t,e),t[e])};var je={},Pe=a&&i((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),xe=G,Ce=String,Te=TypeError,Ee=function(t){if(xe(t))return t;throw new Te(Ce(t)+" is not an object")},Ae=a,ze=he,We=Pe,Ne=Ee,Re=ce,Fe=TypeError,Ie=Object.defineProperty,Le=Object.getOwnPropertyDescriptor,Me="enumerable",ke="configurable",qe="writable";je.f=Ae?We?function(t,e,n){if(Ne(t),e=Re(e),Ne(n),"function"==typeof t&&"prototype"===e&&"value"in n&&qe in n&&!n.writable){var r=Le(t,e);r&&r.writable&&(t[e]=n.value,n={configurable:ke in n?n.configurable:r.configurable,enumerable:Me in n?n.enumerable:r.enumerable,writable:!1})}return Ie(t,e,n)}:Ie:function(t,e,n){if(Ne(t),e=Re(e),Ne(n),ze)try{return Ie(t,e,n)}catch(t){}if("get"in n||"set"in n)throw new Fe("Accessors not supported");return"value"in n&&(t[e]=n.value),t};var De=je,_e=b,Ge=a?function(t,e,n){return De.f(t,e,_e(1,n))}:function(t,e,n){return t[e]=n,t},Je={exports:{}},Ve=a,$e=kt,Be=Function.prototype,He=Ve&&Object.getOwnPropertyDescriptor,Ue=$e(Be,"name"),Ke={EXISTS:Ue,PROPER:Ue&&"something"===function(){}.name,CONFIGURABLE:Ue&&(!Ve||Ve&&He(Be,"name").configurable)},Qe=D,Xe=zt,Ye=O(Function.toString);Qe(Xe.inspectSource)||(Xe.inspectSource=function(t){return Ye(t)});var Ze,tn,en,nn=Xe.inspectSource,rn=D,on=r.WeakMap,an=rn(on)&&/native code/.test(String(on)),sn=Jt,cn=Nt("keys"),un={},fn=an,pn=r,ln=G,hn=Ge,dn=kt,yn=zt,gn=function(t){return cn[t]||(cn[t]=sn(t))},bn=un,vn="Object already initialized",mn=pn.TypeError,wn=pn.WeakMap;if(fn||yn.state){var Sn=yn.state||(yn.state=new wn);Sn.get=Sn.get,Sn.has=Sn.has,Sn.set=Sn.set,Ze=function(t,e){if(Sn.has(t))throw new mn(vn);return e.facade=t,Sn.set(t,e),e},tn=function(t){return Sn.get(t)||{}},en=function(t){return Sn.has(t)}}else{var On=gn("state");bn[On]=!0,Ze=function(t,e){if(dn(t,On))throw new mn(vn);return e.facade=t,hn(t,On,e),e},tn=function(t){return dn(t,On)?t[On]:{}},en=function(t){return dn(t,On)}}var jn={set:Ze,get:tn,has:en,enforce:function(t){return en(t)?tn(t):Ze(t,{})},getterFor:function(t){return function(e){var n;if(!ln(e)||(n=tn(e)).type!==t)throw new mn("Incompatible receiver, "+t+" required");return n}}},Pn=O,xn=i,Cn=D,Tn=kt,En=a,An=Ke.CONFIGURABLE,zn=nn,Wn=jn.enforce,Nn=jn.get,Rn=String,Fn=Object.defineProperty,In=Pn("".slice),Ln=Pn("".replace),Mn=Pn([].join),kn=En&&!xn((function(){return 8!==Fn((function(){}),"length",{value:8}).length})),qn=String(String).split("String"),Dn=Je.exports=function(t,e,n){"Symbol("===In(Rn(e),0,7)&&(e="["+Ln(Rn(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!Tn(t,"name")||An&&t.name!==e)&&(En?Fn(t,"name",{value:e,configurable:!0}):t.name=e),kn&&n&&Tn(n,"arity")&&t.length!==n.arity&&Fn(t,"length",{value:n.arity});try{n&&Tn(n,"constructor")&&n.constructor?En&&Fn(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var r=Wn(t);return Tn(r,"source")||(r.source=Mn(qn,"string"==typeof e?e:"")),t};Function.prototype.toString=Dn((function(){return Cn(this)&&Nn(this).source||zn(this)}),"toString");var _n=Je.exports,Gn=D,Jn=je,Vn=_n,$n=xt,Bn=function(t,e,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:e;if(Gn(n)&&Vn(n,i,r),r.global)o?t[e]=n:$n(e,n);else{try{r.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=n:Jn.f(t,e,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},Hn={},Un=Math.ceil,Kn=Math.floor,Qn=Math.trunc||function(t){var e=+t;return(e>0?Kn:Un)(e)},Xn=function(t){var e=+t;return e!=e||0===e?0:Qn(e)},Yn=Xn,Zn=Math.max,tr=Math.min,er=function(t,e){var n=Yn(t);return n<0?Zn(n+e,0):tr(n,e)},nr=Xn,rr=Math.min,or=function(t){var e=nr(t);return e>0?rr(e,9007199254740991):0},ir=function(t){return or(t.length)},ar=k,sr=er,cr=ir,ur=function(t){return function(e,n,r){var o=ar(e),i=cr(o);if(0===i)return!t&&-1;var a,s=sr(r,i);if(t&&n!=n){for(;i>s;)if((a=o[s++])!=a)return!0}else for(;i>s;s++)if((t||s in o)&&o[s]===n)return t||s||0;return!t&&-1}},fr={includes:ur(!0),indexOf:ur(!1)},pr=kt,lr=k,hr=fr.indexOf,dr=un,yr=O([].push),gr=function(t,e){var n,r=lr(t),o=0,i=[];for(n in r)!pr(dr,n)&&pr(r,n)&&yr(i,n);for(;e.length>o;)pr(r,n=e[o++])&&(~hr(i,n)||yr(i,n));return i},br=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],vr=gr,mr=br.concat("length","prototype");Hn.f=Object.getOwnPropertyNames||function(t){return vr(t,mr)};var wr={};wr.f=Object.getOwnPropertySymbols;var Sr=B,Or=Hn,jr=wr,Pr=Ee,xr=O([].concat),Cr=Sr("Reflect","ownKeys")||function(t){var e=Or.f(Pr(t)),n=jr.f;return n?xr(e,n(t)):e},Tr=kt,Er=Cr,Ar=o,zr=je,Wr=i,Nr=D,Rr=/#|\.prototype\./,Fr=function(t,e){var n=Lr[Ir(t)];return n===kr||n!==Mr&&(Nr(e)?Wr(e):!!e)},Ir=Fr.normalize=function(t){return String(t).replace(Rr,".").toLowerCase()},Lr=Fr.data={},Mr=Fr.NATIVE="N",kr=Fr.POLYFILL="P",qr=Fr,Dr=r,_r=o.f,Gr=Ge,Jr=Bn,Vr=xt,$r=function(t,e,n){for(var r=Er(e),o=zr.f,i=Ar.f,a=0;a<r.length;a++){var s=r[a];Tr(t,s)||n&&Tr(n,s)||o(t,s,i(e,s))}},Br=qr,Hr=function(t,e){var n,r,o,i,a,s=t.target,c=t.global,u=t.stat;if(n=c?Dr:u?Dr[s]||Vr(s,{}):Dr[s]&&Dr[s].prototype)for(r in e){if(i=e[r],o=t.dontCallGetSet?(a=_r(n,r))&&a.value:n[r],!Br(c?r:s+(u?".":"#")+r,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;$r(i,o)}(t.sham||o&&o.sham)&&Gr(i,"sham",!0),Jr(n,r,i,t)}},Ur=C,Kr=O,Qr=function(t){if("Function"===Ur(t))return Kr(t)},Xr=yt,Yr=s,Zr=Qr(Qr.bind),to=C,eo=Array.isArray||function(t){return"Array"===to(t)},no={};no[Yt("toStringTag")]="z";var ro="[object z]"===String(no),oo=ro,io=D,ao=C,so=Yt("toStringTag"),co=Object,uo="Arguments"===ao(function(){return arguments}()),fo=oo?ao: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=co(t),so))?n:uo?ao(e):"Object"===(r=ao(e))&&io(e.callee)?"Arguments":r},po=O,lo=i,ho=D,yo=fo,go=nn,bo=function(){},vo=B("Reflect","construct"),mo=/^\s*(?:class|function)\b/,wo=po(mo.exec),So=!mo.test(bo),Oo=function(t){if(!ho(t))return!1;try{return vo(bo,[],t),!0}catch(t){return!1}},jo=function(t){if(!ho(t))return!1;switch(yo(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return So||!!wo(mo,go(t))}catch(t){return!0}};jo.sham=!0;var Po=!vo||lo((function(){var t;return Oo(Oo.call)||!Oo(Object)||!Oo((function(){t=!0}))||t}))?jo:Oo,xo=eo,Co=Po,To=G,Eo=Yt("species"),Ao=Array,zo=function(t){var e;return xo(t)&&(e=t.constructor,(Co(e)&&(e===Ao||xo(e.prototype))||To(e)&&null===(e=e[Eo]))&&(e=void 0)),void 0===e?Ao:e},Wo=function(t,e){return Xr(t),void 0===e?t:Yr?Zr(t,e):function(){return t.apply(e,arguments)}},No=W,Ro=It,Fo=ir,Io=function(t,e){return new(zo(t))(0===e?0:e)},Lo=O([].push),Mo=function(t){var e=1===t,n=2===t,r=3===t,o=4===t,i=6===t,a=7===t,s=5===t||i;return function(c,u,f,p){for(var l,h,d=Ro(c),y=No(d),g=Fo(y),b=Wo(u,f),v=0,m=p||Io,w=e?m(c,g):n||a?m(c,0):void 0;g>v;v++)if((s||v in y)&&(h=b(l=y[v],v,d),t))if(e)w[v]=h;else if(h)switch(t){case 3:return!0;case 5:return l;case 6:return v;case 2:Lo(w,l)}else switch(t){case 4:return!1;case 7:Lo(w,l)}return i?-1:r||o?o:w}},ko={forEach:Mo(0),map:Mo(1),filter:Mo(2),some:Mo(3),every:Mo(4),find:Mo(5),findIndex:Mo(6),filterReject:Mo(7)},qo=i,Do=tt,_o=Yt("species"),Go=function(t){return Do>=51||!qo((function(){var e=[];return(e.constructor={})[_o]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Jo=ko.filter;Hr({target:"Array",proto:!0,forced:!Go("filter")},{filter:function(t){return Jo(this,t,arguments.length>1?arguments[1]:void 0)}});var Vo=i,$o=Hr,Bo=fr.indexOf,Ho=function(t,e){var n=[][t];return!!n&&Vo((function(){n.call(null,e||function(){return 1},1)}))},Uo=Qr([].indexOf),Ko=!!Uo&&1/Uo([1],1,-0)<0;$o({target:"Array",proto:!0,forced:Ko||!Ho("indexOf")},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return Ko?Uo(this,t,e)||0:Bo(this,t,e)}});var Qo=a,Xo=je,Yo=b,Zo=O([].slice),ti=Hr,ei=eo,ni=Po,ri=G,oi=er,ii=ir,ai=k,si=function(t,e,n){Qo?Xo.f(t,e,Yo(0,n)):t[e]=n},ci=Yt,ui=Zo,fi=Go("slice"),pi=ci("species"),li=Array,hi=Math.max;ti({target:"Array",proto:!0,forced:!fi},{slice:function(t,e){var n,r,o,i=ai(this),a=ii(i),s=oi(t,a),c=oi(void 0===e?a:e,a);if(ei(i)&&(n=i.constructor,(ni(n)&&(n===li||ei(n.prototype))||ri(n)&&null===(n=n[pi]))&&(n=void 0),n===li||void 0===n))return ui(i,s,c);for(r=new(void 0===n?li:n)(hi(c-s,0)),o=0;s<c;s++,o++)s in i&&si(r,o,i[s]);return r.length=o,r}});var di=gr,yi=br,gi=Object.keys||function(t){return di(t,yi)},bi=a,vi=O,mi=f,wi=i,Si=gi,Oi=wr,ji=p,Pi=It,xi=W,Ci=Object.assign,Ti=Object.defineProperty,Ei=vi([].concat),Ai=!Ci||wi((function(){if(bi&&1!==Ci({b:1},Ci(Ti({},"a",{enumerable:!0,get:function(){Ti(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol("assign detection"),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!==Ci({},t)[n]||Si(Ci({},e)).join("")!==r}))?function(t,e){for(var n=Pi(t),r=arguments.length,o=1,i=Oi.f,a=ji.f;r>o;)for(var s,c=xi(arguments[o++]),u=i?Ei(Si(c),i(c)):Si(c),f=u.length,p=0;f>p;)s=u[p++],bi&&!mi(a,c,s)||(n[s]=c[s]);return n}:Ci,zi=Ai;Hr({target:"Object",stat:!0,arity:2,forced:Object.assign!==zi},{assign:zi});var Wi=fo,Ni=ro?{}.toString:function(){return"[object "+Wi(this)+"]"};ro||Bn(Object.prototype,"toString",Ni,{unsafe:!0});var Ri=fo,Fi=String,Ii=function(t){if("Symbol"===Ri(t))throw new TypeError("Cannot convert a Symbol value to a string");return Fi(t)},Li="\t\n\v\f\r \u2028\u2029\ufeff",Mi=I,ki=Ii,qi=Li,Di=O("".replace),_i=RegExp("^["+qi+"]+"),Gi=RegExp("(^|[^"+qi+"])["+qi+"]+$"),Ji=function(t){return function(e){var n=ki(Mi(e));return 1&t&&(n=Di(n,_i,"")),2&t&&(n=Di(n,Gi,"$1")),n}},Vi={start:Ji(1),end:Ji(2),trim:Ji(3)},$i=r,Bi=i,Hi=O,Ui=Ii,Ki=Vi.trim,Qi=Li,Xi=$i.parseInt,Yi=$i.Symbol,Zi=Yi&&Yi.iterator,ta=/^[+-]?0x/i,ea=Hi(ta.exec),na=8!==Xi(Qi+"08")||22!==Xi(Qi+"0x16")||Zi&&!Bi((function(){Xi(Object(Zi))}))?function(t,e){var n=Ki(Ui(t));return Xi(n,e>>>0||(ea(ta,n)?16:10))}:Xi;Hr({global:!0,forced:parseInt!==na},{parseInt:na});var ra=t.fn.bootstrapTable.utils;Object.assign(t.fn.bootstrapTable.defaults,{usePipeline:!1,pipelineSize:1e3,onCachedDataHit:function(t){return!1},onCachedDataReset:function(t){return!1}}),Object.assign(t.fn.bootstrapTable.events,{"cached-data-hit.bs.table":"onCachedDataHit","cached-data-reset.bs.table":"onCachedDataReset"});var oa=t.fn.bootstrapTable.Constructor,ia=oa.prototype.init,aa=oa.prototype.onSearch,sa=oa.prototype.onSort,ca=oa.prototype.onPageListChange;oa.prototype.init=function(){this.initPipeline();for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];ia.apply(this,Array.prototype.slice.apply(e))},oa.prototype.initPipeline=function(){this.cacheRequestJSON={},this.cacheWindows=[],this.currWindow=0,this.resetCache=!0},oa.prototype.onSearch=function(){this.options.usePipeline&&(this.resetCache=!0),aa.apply(this,Array.prototype.slice.apply(arguments))},oa.prototype.onSort=function(){this.options.usePipeline&&(this.resetCache=!0),sa.apply(this,Array.prototype.slice.apply(arguments))},oa.prototype.onPageListChange=function(e){var n=t(e.currentTarget),r=parseInt(n.text(),10);this.options.pipelineSize=this.calculatePipelineSize(this.options.pipelineSize,r),this.resetCache=!0,ca.apply(this,Array.prototype.slice.apply(arguments))},oa.prototype.calculatePipelineSize=function(t,e){return 0===e?0:Math.ceil(t/e)*e},oa.prototype.setCacheWindows=function(){this.cacheWindows=[];for(var t=this.options.totalRows/this.options.pipelineSize,e=0;e<=t;e++){var n=e*this.options.pipelineSize;this.cacheWindows[e]={lower:n,upper:n+this.options.pipelineSize-1}}},oa.prototype.setCurrWindow=function(t){this.currWindow=0;for(var e=0;e<this.cacheWindows.length;e++)if(this.cacheWindows[e].lower<=t&&t<=this.cacheWindows[e].upper){this.currWindow=e;break}},oa.prototype.drawFromCache=function(t,e){var n=ra.extend(!0,{},this.cacheRequestJSON),r=t-this.cacheWindows[this.currWindow].lower,o=r+e;return n.rows=n.rows.slice(r,o),n},oa.prototype.initServer=function(e,n,r){var o,i={},a=this.header.fields.indexOf(this.options.sortName),s={searchText:this.searchText,sortName:this.options.sortName,sortOrder:this.options.sortOrder};if(this.header.sortNames[a]&&(s.sortName=this.header.sortNames[a]),this.options.pagination&&"server"===this.options.sidePagination&&(s.pageSize=this.options.pageSize===this.options.formatAllRows()?this.options.totalRows:this.options.pageSize,s.pageNumber=this.options.pageNumber),r||this.options.url||this.options.ajax){var c=!0;if("limit"===this.options.queryParamsType&&(s={searchText:s.searchText,sortName:s.sortName,sortOrder:s.sortOrder},this.options.pagination&&"server"===this.options.sidePagination))if(s.limit=this.options.pageSize===this.options.formatAllRows()?this.options.totalRows:this.options.pageSize,s.offset=(this.options.pageSize===this.options.formatAllRows()?this.options.totalRows:this.options.pageSize)*(this.options.pageNumber-1),this.options.usePipeline)if(this.cacheWindows.length){var u=this.cacheWindows[this.currWindow];this.resetCache||s.offset<u.lower||s.offset>u.upper?(c=!0,this.setCurrWindow(s.offset),s.drawOffset=s.offset,s.offset=this.cacheWindows[this.currWindow].lower):c=!1}else c=!0,s.drawOffset=s.offset;else 0===s.limit&&delete s.limit;if(this.resetCache&&(c=!0,this.resetCache=!1),this.options.usePipeline&&c&&(s.drawLimit=s.limit,s.limit=this.options.pipelineSize),!c){var f=this.drawFromCache(s.offset,s.limit);return this.load(f),this.trigger("load-success",f),void this.trigger("cached-data-hit",f)}if(t.isEmptyObject(this.filterColumnsPartial)||(s.filter=JSON.stringify(this.filterColumnsPartial,null)),i=ra.calculateObjectValue(this.options,this.options.queryParams,[s],i),ra.extend(i,n||{}),!1!==i){e||this.$tableLoading.show();var p=this;o=ra.extend({},ra.calculateObjectValue(null,this.options.ajaxOptions),{type:this.options.method,url:r||this.options.url,data:"application/json"===this.options.contentType&&"post"===this.options.method?JSON.stringify(i):i,cache:this.options.cache,contentType:this.options.contentType,dataType:this.options.dataType,success:function(t){t=ra.calculateObjectValue(p.options,p.options.responseHandler,[t],t),p.options.usePipeline&&(p.cacheRequestJSON=ra.extend(!0,{},t),p.options.totalRows=t[p.options.totalField],p.setCacheWindows(),p.setCurrWindow(s.drawOffset),t=p.drawFromCache(s.drawOffset,s.drawLimit),p.trigger("cached-data-reset",t)),p.load(t),p.trigger("load-success",t),e||p.hideLoading()},error:function(t){var n=[];"server"===p.options.sidePagination&&((n={})[p.options.totalField]=0,n[p.options.dataField]=[]),p.load(n),p.trigger("load-error",t.status,t),e||p.hideLoading()}}),this.options.ajax?ra.calculateObjectValue(this,this.options.ajax,[o],null):(this._xhr&&4!==this._xhr.readyState&&this._xhr.abort(),this._xhr=t.ajax(o))}}}}));
|