/** * 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.15.0 * @homepage https://bootstrap-table.com * @author wenzhixin (http://wenzhixin.net.cn/) * @license MIT */ (function(a,b){"object"==typeof exports&&"undefined"!=typeof module?b(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],b):(a=a||self,b(a.jQuery))})(this,function(a){'use strict';var c=Math.max,d=Math.min,e=Math.ceil;function b(a,b){return b={exports:{}},a(b,b.exports),b.exports}a=a&&a.hasOwnProperty("default")?a["default"]:a;var g,h,i,j=function(a){if("function"!=typeof a)throw TypeError(a+" is not a function");return a},k=function(d,e,f){return(j(d),void 0===e)?d:0===f?function(){return d.call(e)}:1===f?function(b){return d.call(e,b)}:2===f?function(c,a){return d.call(e,c,a)}:3===f?function(f,a,b){return d.call(e,f,a,b)}:function(){return d.apply(e,arguments)}},l=function(a){try{return!!a()}catch(a){return!0}},m={}.toString,n=function(a){return m.call(a).slice(8,-1)},o="".split,p=l(function(){return!Object("z").propertyIsEnumerable(0)})?function(a){return"String"==n(a)?o.call(a,""):Object(a)}:Object,q=function(a){if(a==null)throw TypeError("Can't call method on "+a);return a},r=function(a){return Object(q(a))},s=Math.floor,t=function(a){return isNaN(a=+a)?0:(0e?c(e+b,0):d(e,b)},wa=function(a){return function(b,c,d){var e,f=aa(b),g=u(f.length),h=va(d,g);if(a&&c!=c){for(;g>h;)if(e=f[h++],e!=e)return!0;}else for(;g>h;h++)if((a||h in f)&&f[h]===c)return a||h||0;return!a&&-1}},xa=wa(!1),ya=function(a,b){var c,d=aa(a),e=0,f=[];for(c in d)!ca(la,c)&&ca(d,c)&&f.push(c);for(;b.length>e;)ca(d,c=b[e++])&&(~xa(f,c)||f.push(c));return f},za=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"].concat("length","prototype"),Aa=Object.getOwnPropertyNames||function(a){return ya(a,za)},Ba={f:Aa},Ca=Object.getOwnPropertySymbols,Da={f:Ca},Ea=x.Reflect,Fa=Ea&&Ea.ownKeys||function(a){var b=Ba.f(D(a)),c=Da.f;return c?b.concat(c(a)):b},Ga=function(a,b){for(var c,d=Fa(b),e=f.f,g=fa.f,h=0;hq;q++)if((5==a||e||q in m)&&(i=m[q],j=n(i,q,l),a))if(c)s[q]=j;else if(j)switch(a){case 3:return!0;case 5:return i;case 6:return q;case 2:s.push(i);}else if(d)return!1;return e?-1:3==a||d?d:s}}(2),Qa=V("filter");Oa({target:"Array",proto:!0,forced:!Qa},{filter:function(a){return Pa(this,a,arguments[1])}});var Ra=wa(!1),Sa=[].indexOf,Ta=!!Sa&&0>1/[1].indexOf(1,-0),Ua=function(a,b){var c=[][a];return!c||!l(function(){c.call(null,b||function(){throw Error()},1)})}("indexOf");Oa({target:"Array",proto:!0,forced:Ta||Ua},{indexOf:function(a){return Ta?Sa.apply(this,arguments)||0:Ra(this,a,arguments[1])}});var Va=function(a,b,c){var d=E(b);d in a?f.f(a,d,H(0,c)):a[d]=c},Wa=R("species"),Xa=[].slice,Ya=V("slice");Oa({target:"Array",proto:!0,forced:!Ya},{slice:function(a,b){var d,e,f,g=aa(this),h=u(g.length),i=va(a,h),j=va(void 0===b?h:b,h);if(w(g)&&(d=g.constructor,"function"==typeof d&&(d===Array||w(d.prototype))?d=void 0:v(d)&&(d=d[Wa],null===d&&(d=void 0)),d===Array||void 0===d))return Xa.call(g,i,j);for(e=new(void 0===d?Array:d)(c(j-i,0)),f=0;i>>0||(cb.test(c)?16:10))}:bb;Oa({global:!0,forced:parseInt!=eb},{parseInt:eb});var fb=a.fn.bootstrapTable.utils;a.extend(a.fn.bootstrapTable.defaults,{usePipeline:!1,pipelineSize:1e3,onCachedDataHit:function(){return!1},onCachedDataReset:function(){return!1}}),a.extend(a.fn.bootstrapTable.Constructor.EVENTS,{"cached-data-hit.bs.table":"onCachedDataHit","cached-data-reset.bs.table":"onCachedDataReset"});var gb=a.fn.bootstrapTable.Constructor,hb=gb.prototype.init,ib=gb.prototype.initServer,jb=gb.prototype.onSearch,kb=gb.prototype.onSort,lb=gb.prototype.onPageListChange;gb.prototype.init=function(){this.initPipeline();for(var a=arguments.length,b=Array(a),c=0;cj.upper?(i=!0,this.setCurrWindow(g.offset),g.drawOffset=g.offset,g.offset=this.cacheWindows[this.currWindow].lower):i=!1}if(this.resetCache&&(i=!0,this.resetCache=!1),this.options.usePipeline&&i&&(g.drawLimit=g.limit,g.limit=this.options.pipelineSize),!i){var k=this.drawFromCache(g.offset,g.limit);return this.load(k),this.trigger("load-success",k),void this.trigger("cached-data-hit",k)}if(a.isEmptyObject(this.filterColumnsPartial)||(g.filter=JSON.stringify(this.filterColumnsPartial,null)),e=fb.calculateObjectValue(this.options,this.options.queryParams,[g],e),a.extend(e,c||{}),!1!==e){b||this.$tableLoading.show();var l=this;h=a.extend({},fb.calculateObjectValue(null,this.options.ajaxOptions),{type:this.options.method,url:d||this.options.url,data:"application/json"===this.options.contentType&&"post"===this.options.method?JSON.stringify(e):e,cache:this.options.cache,contentType:this.options.contentType,dataType:this.options.dataType,success:function(c){c=fb.calculateObjectValue(l.options,l.options.responseHandler,[c],c),l.options.usePipeline&&(l.cacheRequestJSON=a.extend(!0,{},c),l.options.totalRows=c[l.options.totalField],l.setCacheWindows(),l.setCurrWindow(g.drawOffset),c=l.drawFromCache(g.drawOffset,g.drawLimit),l.trigger("cached-data-reset",c)),l.load(c),l.trigger("load-success",c),b||l.$tableLoading.hide()},error:function(a){var c=[];"server"===l.options.sidePagination&&(c={},c[l.options.totalField]=0,c[l.options.dataField]=[]),l.load(c),l.trigger("load-error",a.status,a),b||l.$tableLoading.hide()}}),this.options.ajax?fb.calculateObjectValue(this,this.options.ajax,[h],null):(this._xhr&&4!==this._xhr.readyState&&this._xhr.abort(),this._xhr=a.ajax(h))}}}});