UNPKG

9.35 kBJavaScriptView Raw
1/**
2 * bootstrap-table - An extended table to integration with some of the most widely used CSS frameworks. (Supports Bootstrap, Semantic UI, Bulma, Material Design, Foundation)
3 *
4 * @version v1.16.0
5 * @homepage https://bootstrap-table.com
6 * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)
7 * @license MIT
8 */
9
10!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],e):e((t=t||self).jQuery)}(this,(function(t){"use strict";t=t&&t.hasOwnProperty("default")?t.default:t;var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(t,e){return t(e={exports:{}},e.exports),e.exports}var r=function(t){return t&&t.Math==Math&&t},o=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof e&&e)||Function("return this")(),i=function(t){try{return!!t()}catch(t){return!0}},u=!i((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})),f={}.propertyIsEnumerable,c=Object.getOwnPropertyDescriptor,a={f:c&&!f.call({1:2},1)?function(t){var e=c(this,t);return!!e&&e.enumerable}:f},l=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},p={}.toString,s=function(t){return p.call(t).slice(8,-1)},y="".split,h=i((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==s(t)?y.call(t,""):Object(t)}:Object,d=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},b=function(t){return h(d(t))},g=function(t){return"object"==typeof t?null!==t:"function"==typeof t},v=function(t,e){if(!g(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!g(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!g(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!g(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)},O=o.document,j=g(O)&&g(O.createElement),S=!u&&!i((function(){return 7!=Object.defineProperty((t="div",j?O.createElement(t):{}),"a",{get:function(){return 7}}).a;var t})),P=Object.getOwnPropertyDescriptor,T={f:u?P:function(t,e){if(t=b(t),e=v(e,!0),S)try{return P(t,e)}catch(t){}if(w(t,e))return l(!a.f.call(t,e),t[e])}},_=function(t){if(!g(t))throw TypeError(String(t)+" is not an object");return t},x=Object.defineProperty,E={f:u?x:function(t,e,n){if(_(t),e=v(e,!0),_(n),S)try{return x(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}},M=u?function(t,e,n){return E.f(t,e,l(1,n))}:function(t,e,n){return t[e]=n,t},A=function(t,e){try{M(o,t,e)}catch(n){o[t]=e}return e},k=o["__core-js_shared__"]||A("__core-js_shared__",{}),C=Function.toString;"function"!=typeof k.inspectSource&&(k.inspectSource=function(t){return C.call(t)});var I,F,L,N,R=k.inspectSource,q=o.WeakMap,D="function"==typeof q&&/native code/.test(R(q)),z=n((function(t){(t.exports=function(t,e){return k[t]||(k[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.0",mode:"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})})),B=0,U=Math.random(),G=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++B+U).toString(36)},W=z("keys"),K={},Q=o.WeakMap;if(D){var V=new Q,Y=V.get,H=V.has,J=V.set;I=function(t,e){return J.call(V,t,e),e},F=function(t){return Y.call(V,t)||{}},L=function(t){return H.call(V,t)}}else{var X=W[N="state"]||(W[N]=G(N));K[X]=!0,I=function(t,e){return M(t,X,e),e},F=function(t){return w(t,X)?t[X]:{}},L=function(t){return w(t,X)}}var Z,$,tt={set:I,get:F,has:L,enforce:function(t){return L(t)?F(t):I(t,{})},getterFor:function(t){return function(e){var n;if(!g(e)||(n=F(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}},et=n((function(t){var e=tt.get,n=tt.enforce,r=String(String).split("String");(t.exports=function(t,e,i,u){var f=!!u&&!!u.unsafe,c=!!u&&!!u.enumerable,a=!!u&&!!u.noTargetGet;"function"==typeof i&&("string"!=typeof e||w(i,"name")||M(i,"name",e),n(i).source=r.join("string"==typeof e?e:"")),t!==o?(f?!a&&t[e]&&(c=!0):delete t[e],c?t[e]=i:M(t,e,i)):c?t[e]=i:A(e,i)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||R(this)}))})),nt=o,rt=function(t){return"function"==typeof t?t:void 0},ot=function(t,e){return arguments.length<2?rt(nt[t])||rt(o[t]):nt[t]&&nt[t][e]||o[t]&&o[t][e]},it=Math.ceil,ut=Math.floor,ft=function(t){return isNaN(t=+t)?0:(t>0?ut:it)(t)},ct=Math.min,at=function(t){return t>0?ct(ft(t),9007199254740991):0},lt=Math.max,pt=Math.min,st=function(t){return function(e,n,r){var o,i=b(e),u=at(i.length),f=function(t,e){var n=ft(t);return n<0?lt(n+e,0):pt(n,e)}(r,u);if(t&&n!=n){for(;u>f;)if((o=i[f++])!=o)return!0}else for(;u>f;f++)if((t||f in i)&&i[f]===n)return t||f||0;return!t&&-1}},yt={includes:st(!0),indexOf:st(!1)}.indexOf,ht=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"].concat("length","prototype"),dt={f:Object.getOwnPropertyNames||function(t){return function(t,e){var n,r=b(t),o=0,i=[];for(n in r)!w(K,n)&&w(r,n)&&i.push(n);for(;e.length>o;)w(r,n=e[o++])&&(~yt(i,n)||i.push(n));return i}(t,ht)}},bt={f:Object.getOwnPropertySymbols},gt=ot("Reflect","ownKeys")||function(t){var e=dt.f(_(t)),n=bt.f;return n?e.concat(n(t)):e},vt=function(t,e){for(var n=gt(e),r=E.f,o=T.f,i=0;i<n.length;i++){var u=n[i];w(t,u)||r(t,u,o(e,u))}},mt=/#|\.prototype\./,wt=function(t,e){var n=jt[Ot(t)];return n==Pt||n!=St&&("function"==typeof e?i(e):!!e)},Ot=wt.normalize=function(t){return String(t).replace(mt,".").toLowerCase()},jt=wt.data={},St=wt.NATIVE="N",Pt=wt.POLYFILL="P",Tt=wt,_t=T.f,xt=Array.isArray||function(t){return"Array"==s(t)},Et=function(t){return Object(d(t))},Mt=function(t,e,n){var r=v(e);r in t?E.f(t,r,l(0,n)):t[r]=n},At=!!Object.getOwnPropertySymbols&&!i((function(){return!String(Symbol())})),kt=At&&!Symbol.sham&&"symbol"==typeof Symbol(),Ct=z("wks"),It=o.Symbol,Ft=kt?It:G,Lt=function(t){return w(Ct,t)||(At&&w(It,t)?Ct[t]=It[t]:Ct[t]=Ft("Symbol."+t)),Ct[t]},Nt=Lt("species"),Rt=function(t,e){var n;return xt(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!xt(n.prototype)?g(n)&&null===(n=n[Nt])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)},qt=ot("navigator","userAgent")||"",Dt=o.process,zt=Dt&&Dt.versions,Bt=zt&&zt.v8;Bt?$=(Z=Bt.split("."))[0]+Z[1]:qt&&(!(Z=qt.match(/Edge\/(\d+)/))||Z[1]>=74)&&(Z=qt.match(/Chrome\/(\d+)/))&&($=Z[1]);var Ut,Gt=$&&+$,Wt=Lt("species"),Kt=Lt("isConcatSpreadable"),Qt=Gt>=51||!i((function(){var t=[];return t[Kt]=!1,t.concat()[0]!==t})),Vt=(Ut="concat",Gt>=51||!i((function(){var t=[];return(t.constructor={})[Wt]=function(){return{foo:1}},1!==t[Ut](Boolean).foo}))),Yt=function(t){if(!g(t))return!1;var e=t[Kt];return void 0!==e?!!e:xt(t)};function Ht(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Jt(t){return(Jt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Xt(t,e){return(Xt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Zt(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function $t(t,e,n){return($t="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Jt(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}!function(t,e){var n,r,i,u,f,c=t.target,a=t.global,l=t.stat;if(n=a?o:l?o[c]||A(c,{}):(o[c]||{}).prototype)for(r in e){if(u=e[r],i=t.noTargetGet?(f=_t(n,r))&&f.value:n[r],!Tt(a?r:c+(l?".":"#")+r,t.forced)&&void 0!==i){if(typeof u==typeof i)continue;vt(u,i)}(t.sham||i&&i.sham)&&M(u,"sham",!0),et(n,r,u,t)}}({target:"Array",proto:!0,forced:!Qt||!Vt},{concat:function(t){var e,n,r,o,i,u=Et(this),f=Rt(u,0),c=0;for(e=-1,r=arguments.length;e<r;e++)if(i=-1===e?u:arguments[e],Yt(i)){if(c+(o=at(i.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<o;n++,c++)n in i&&Mt(f,c,i[n])}else{if(c>=9007199254740991)throw TypeError("Maximum allowed index exceeded");Mt(f,c++,i)}return f.length=c,f}}),t.extend(t.fn.bootstrapTable.defaults,{deferUrl:void 0}),t.BootstrapTable=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Zt(this,Jt(e).apply(this,arguments))}var n,r,o;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Xt(t,e)}(e,t),n=e,(r=[{key:"init",value:function(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];(t=$t(Jt(e.prototype),"init",this)).call.apply(t,[this].concat(r)),this.options.deferUrl&&(this.options.url=this.options.deferUrl)}}])&&Ht(n.prototype,r),o&&Ht(n,o),e}(t.BootstrapTable)}));