UNPKG

16.1 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.21.3
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="undefined"!=typeof globalThis?globalThis:t||self).jQuery)}(this,(function(t){"use strict";function e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(o=n.key,i=void 0,"symbol"==typeof(i=function(t,e){if("object"!=typeof t||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(o,"string"))?i:String(i)),n)}var o,i}function n(t){return n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},n(t)}function o(t,e){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},o(t,e)}function i(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function u(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,o=n(t);if(e){var u=n(this).constructor;r=Reflect.construct(o,arguments,u)}else r=o.apply(this,arguments);return i(this,r)}}function c(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=n(t)););return t}function f(){return f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=c(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},f.apply(this,arguments)}var a="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},l=function(t){return t&&t.Math==Math&&t},s=l("object"==typeof globalThis&&globalThis)||l("object"==typeof window&&window)||l("object"==typeof self&&self)||l("object"==typeof a&&a)||function(){return this}()||Function("return this")(),p={},y=function(t){try{return!!t()}catch(t){return!0}},b=!y((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),v=!y((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),g=v,h=Function.prototype.call,d=g?h.bind(h):function(){return h.apply(h,arguments)},m={},O={}.propertyIsEnumerable,j=Object.getOwnPropertyDescriptor,w=j&&!O.call({1:2},1);m.f=w?function(t){var e=j(this,t);return!!e&&e.enumerable}:O;var S,P,T=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},E=v,A=Function.prototype,x=A.call,_=E&&A.bind.bind(x,x),M=E?_:function(t){return function(){return x.apply(t,arguments)}},R=M,D=R({}.toString),F=R("".slice),I=function(t){return F(D(t),8,-1)},k=y,C=I,L=Object,z=M("".split),N=k((function(){return!L("z").propertyIsEnumerable(0)}))?function(t){return"String"==C(t)?z(t,""):L(t)}:L,B=function(t){return null==t},U=B,q=TypeError,G=function(t){if(U(t))throw q("Can't call method on "+t);return t},H=N,W=G,K=function(t){return H(W(t))},Q="object"==typeof document&&document.all,V={all:Q,IS_HTMLDDA:void 0===Q&&void 0!==Q},X=V.all,Y=V.IS_HTMLDDA?function(t){return"function"==typeof t||t===X}:function(t){return"function"==typeof t},$=Y,J=V.all,Z=V.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:$(t)||t===J}:function(t){return"object"==typeof t?null!==t:$(t)},tt=s,et=Y,rt=function(t){return et(t)?t:void 0},nt=function(t,e){return arguments.length<2?rt(tt[t]):tt[t]&&tt[t][e]},ot=M({}.isPrototypeOf),it=s,ut="undefined"!=typeof navigator&&String(navigator.userAgent)||"",ct=it.process,ft=it.Deno,at=ct&&ct.versions||ft&&ft.version,lt=at&&at.v8;lt&&(P=(S=lt.split("."))[0]>0&&S[0]<4?1:+(S[0]+S[1])),!P&&ut&&(!(S=ut.match(/Edge\/(\d+)/))||S[1]>=74)&&(S=ut.match(/Chrome\/(\d+)/))&&(P=+S[1]);var st=P,pt=st,yt=y,bt=!!Object.getOwnPropertySymbols&&!yt((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&pt&&pt<41})),vt=bt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,gt=nt,ht=Y,dt=ot,mt=Object,Ot=vt?function(t){return"symbol"==typeof t}:function(t){var e=gt("Symbol");return ht(e)&&dt(e.prototype,mt(t))},jt=String,wt=Y,St=function(t){try{return jt(t)}catch(t){return"Object"}},Pt=TypeError,Tt=function(t){if(wt(t))return t;throw Pt(St(t)+" is not a function")},Et=B,At=d,xt=Y,_t=Z,Mt=TypeError,Rt={},Dt={get exports(){return Rt},set exports(t){Rt=t}},Ft=s,It=Object.defineProperty,kt=function(t,e){try{It(Ft,t,{value:e,configurable:!0,writable:!0})}catch(r){Ft[t]=e}return e},Ct=kt,Lt="__core-js_shared__",zt=s[Lt]||Ct(Lt,{}),Nt=zt;(Dt.exports=function(t,e){return Nt[t]||(Nt[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.29.0",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.29.0/LICENSE",source:"https://github.com/zloirock/core-js"});var Bt=G,Ut=Object,qt=function(t){return Ut(Bt(t))},Gt=qt,Ht=M({}.hasOwnProperty),Wt=Object.hasOwn||function(t,e){return Ht(Gt(t),e)},Kt=M,Qt=0,Vt=Math.random(),Xt=Kt(1..toString),Yt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Xt(++Qt+Vt,36)},$t=Rt,Jt=Wt,Zt=Yt,te=bt,ee=vt,re=s.Symbol,ne=$t("wks"),oe=ee?re.for||re:re&&re.withoutSetter||Zt,ie=function(t){return Jt(ne,t)||(ne[t]=te&&Jt(re,t)?re[t]:oe("Symbol."+t)),ne[t]},ue=d,ce=Z,fe=Ot,ae=function(t,e){var r=t[e];return Et(r)?void 0:Tt(r)},le=function(t,e){var r,n;if("string"===e&&xt(r=t.toString)&&!_t(n=At(r,t)))return n;if(xt(r=t.valueOf)&&!_t(n=At(r,t)))return n;if("string"!==e&&xt(r=t.toString)&&!_t(n=At(r,t)))return n;throw Mt("Can't convert object to primitive value")},se=TypeError,pe=ie("toPrimitive"),ye=function(t,e){if(!ce(t)||fe(t))return t;var r,n=ae(t,pe);if(n){if(void 0===e&&(e="default"),r=ue(n,t,e),!ce(r)||fe(r))return r;throw se("Can't convert object to primitive value")}return void 0===e&&(e="number"),le(t,e)},be=Ot,ve=function(t){var e=ye(t,"string");return be(e)?e:e+""},ge=Z,he=s.document,de=ge(he)&&ge(he.createElement),me=function(t){return de?he.createElement(t):{}},Oe=!b&&!y((function(){return 7!=Object.defineProperty(me("div"),"a",{get:function(){return 7}}).a})),je=b,we=d,Se=m,Pe=T,Te=K,Ee=ve,Ae=Wt,xe=Oe,_e=Object.getOwnPropertyDescriptor;p.f=je?_e:function(t,e){if(t=Te(t),e=Ee(e),xe)try{return _e(t,e)}catch(t){}if(Ae(t,e))return Pe(!we(Se.f,t,e),t[e])};var Me={},Re=b&&y((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),De=Z,Fe=String,Ie=TypeError,ke=function(t){if(De(t))return t;throw Ie(Fe(t)+" is not an object")},Ce=b,Le=Oe,ze=Re,Ne=ke,Be=ve,Ue=TypeError,qe=Object.defineProperty,Ge=Object.getOwnPropertyDescriptor,He="enumerable",We="configurable",Ke="writable";Me.f=Ce?ze?function(t,e,r){if(Ne(t),e=Be(e),Ne(r),"function"==typeof t&&"prototype"===e&&"value"in r&&Ke in r&&!r.writable){var n=Ge(t,e);n&&n.writable&&(t[e]=r.value,r={configurable:We in r?r.configurable:n.configurable,enumerable:He in r?r.enumerable:n.enumerable,writable:!1})}return qe(t,e,r)}:qe:function(t,e,r){if(Ne(t),e=Be(e),Ne(r),Le)try{return qe(t,e,r)}catch(t){}if("get"in r||"set"in r)throw Ue("Accessors not supported");return"value"in r&&(t[e]=r.value),t};var Qe=Me,Ve=T,Xe=b?function(t,e,r){return Qe.f(t,e,Ve(1,r))}:function(t,e,r){return t[e]=r,t},Ye={},$e={get exports(){return Ye},set exports(t){Ye=t}},Je=b,Ze=Wt,tr=Function.prototype,er=Je&&Object.getOwnPropertyDescriptor,rr=Ze(tr,"name"),nr={EXISTS:rr,PROPER:rr&&"something"===function(){}.name,CONFIGURABLE:rr&&(!Je||Je&&er(tr,"name").configurable)},or=Y,ir=zt,ur=M(Function.toString);or(ir.inspectSource)||(ir.inspectSource=function(t){return ur(t)});var cr,fr,ar,lr=ir.inspectSource,sr=Y,pr=s.WeakMap,yr=sr(pr)&&/native code/.test(String(pr)),br=Yt,vr=Rt("keys"),gr={},hr=yr,dr=s,mr=Z,Or=Xe,jr=Wt,wr=zt,Sr=function(t){return vr[t]||(vr[t]=br(t))},Pr=gr,Tr="Object already initialized",Er=dr.TypeError,Ar=dr.WeakMap;if(hr||wr.state){var xr=wr.state||(wr.state=new Ar);xr.get=xr.get,xr.has=xr.has,xr.set=xr.set,cr=function(t,e){if(xr.has(t))throw Er(Tr);return e.facade=t,xr.set(t,e),e},fr=function(t){return xr.get(t)||{}},ar=function(t){return xr.has(t)}}else{var _r=Sr("state");Pr[_r]=!0,cr=function(t,e){if(jr(t,_r))throw Er(Tr);return e.facade=t,Or(t,_r,e),e},fr=function(t){return jr(t,_r)?t[_r]:{}},ar=function(t){return jr(t,_r)}}var Mr={set:cr,get:fr,has:ar,enforce:function(t){return ar(t)?fr(t):cr(t,{})},getterFor:function(t){return function(e){var r;if(!mr(e)||(r=fr(e)).type!==t)throw Er("Incompatible receiver, "+t+" required");return r}}},Rr=M,Dr=y,Fr=Y,Ir=Wt,kr=b,Cr=nr.CONFIGURABLE,Lr=lr,zr=Mr.enforce,Nr=Mr.get,Br=String,Ur=Object.defineProperty,qr=Rr("".slice),Gr=Rr("".replace),Hr=Rr([].join),Wr=kr&&!Dr((function(){return 8!==Ur((function(){}),"length",{value:8}).length})),Kr=String(String).split("String"),Qr=$e.exports=function(t,e,r){"Symbol("===qr(Br(e),0,7)&&(e="["+Gr(Br(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!Ir(t,"name")||Cr&&t.name!==e)&&(kr?Ur(t,"name",{value:e,configurable:!0}):t.name=e),Wr&&r&&Ir(r,"arity")&&t.length!==r.arity&&Ur(t,"length",{value:r.arity});try{r&&Ir(r,"constructor")&&r.constructor?kr&&Ur(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var n=zr(t);return Ir(n,"source")||(n.source=Hr(Kr,"string"==typeof e?e:"")),t};Function.prototype.toString=Qr((function(){return Fr(this)&&Nr(this).source||Lr(this)}),"toString");var Vr=Y,Xr=Me,Yr=Ye,$r=kt,Jr={},Zr=Math.ceil,tn=Math.floor,en=Math.trunc||function(t){var e=+t;return(e>0?tn:Zr)(e)},rn=function(t){var e=+t;return e!=e||0===e?0:en(e)},nn=rn,on=Math.max,un=Math.min,cn=rn,fn=Math.min,an=function(t){return t>0?fn(cn(t),9007199254740991):0},ln=function(t){return an(t.length)},sn=K,pn=function(t,e){var r=nn(t);return r<0?on(r+e,0):un(r,e)},yn=ln,bn=function(t){return function(e,r,n){var o,i=sn(e),u=yn(i),c=pn(n,u);if(t&&r!=r){for(;u>c;)if((o=i[c++])!=o)return!0}else for(;u>c;c++)if((t||c in i)&&i[c]===r)return t||c||0;return!t&&-1}},vn={includes:bn(!0),indexOf:bn(!1)},gn=Wt,hn=K,dn=vn.indexOf,mn=gr,On=M([].push),jn=function(t,e){var r,n=hn(t),o=0,i=[];for(r in n)!gn(mn,r)&&gn(n,r)&&On(i,r);for(;e.length>o;)gn(n,r=e[o++])&&(~dn(i,r)||On(i,r));return i},wn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Sn=jn,Pn=wn.concat("length","prototype");Jr.f=Object.getOwnPropertyNames||function(t){return Sn(t,Pn)};var Tn={};Tn.f=Object.getOwnPropertySymbols;var En=nt,An=Jr,xn=Tn,_n=ke,Mn=M([].concat),Rn=En("Reflect","ownKeys")||function(t){var e=An.f(_n(t)),r=xn.f;return r?Mn(e,r(t)):e},Dn=Wt,Fn=Rn,In=p,kn=Me,Cn=y,Ln=Y,zn=/#|\.prototype\./,Nn=function(t,e){var r=Un[Bn(t)];return r==Gn||r!=qn&&(Ln(e)?Cn(e):!!e)},Bn=Nn.normalize=function(t){return String(t).replace(zn,".").toLowerCase()},Un=Nn.data={},qn=Nn.NATIVE="N",Gn=Nn.POLYFILL="P",Hn=Nn,Wn=s,Kn=p.f,Qn=Xe,Vn=function(t,e,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:e;if(Vr(r)&&Yr(r,i,n),n.global)o?t[e]=r:$r(e,r);else{try{n.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=r:Xr.f(t,e,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return t},Xn=kt,Yn=function(t,e,r){for(var n=Fn(e),o=kn.f,i=In.f,u=0;u<n.length;u++){var c=n[u];Dn(t,c)||r&&Dn(r,c)||o(t,c,i(e,c))}},$n=Hn,Jn=function(t,e){var r,n,o,i,u,c=t.target,f=t.global,a=t.stat;if(r=f?Wn:a?Wn[c]||Xn(c,{}):(Wn[c]||{}).prototype)for(n in e){if(i=e[n],o=t.dontCallGetSet?(u=Kn(r,n))&&u.value:r[n],!$n(f?n:c+(a?".":"#")+n,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Yn(i,o)}(t.sham||o&&o.sham)&&Qn(i,"sham",!0),Vn(r,n,i,t)}},Zn=jn,to=wn,eo=Object.keys||function(t){return Zn(t,to)},ro=b,no=M,oo=d,io=y,uo=eo,co=Tn,fo=m,ao=qt,lo=N,so=Object.assign,po=Object.defineProperty,yo=no([].concat),bo=!so||io((function(){if(ro&&1!==so({b:1},so(po({},"a",{enumerable:!0,get:function(){po(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach((function(t){e[t]=t})),7!=so({},t)[r]||uo(so({},e)).join("")!=n}))?function(t,e){for(var r=ao(t),n=arguments.length,o=1,i=co.f,u=fo.f;n>o;)for(var c,f=lo(arguments[o++]),a=i?yo(uo(f),i(f)):uo(f),l=a.length,s=0;l>s;)c=a[s++],ro&&!oo(u,f,c)||(r[c]=f[c]);return r}:so,vo=bo;Jn({target:"Object",stat:!0,arity:2,forced:Object.assign!==vo},{assign:vo});var go=I,ho=Array.isArray||function(t){return"Array"==go(t)},mo=TypeError,Oo=ve,jo=Me,wo=T,So={};So[ie("toStringTag")]="z";var Po="[object z]"===String(So),To=Y,Eo=I,Ao=ie("toStringTag"),xo=Object,_o="Arguments"==Eo(function(){return arguments}()),Mo=M,Ro=y,Do=Y,Fo=Po?Eo:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=xo(t),Ao))?r:_o?Eo(e):"Object"==(n=Eo(e))&&To(e.callee)?"Arguments":n},Io=lr,ko=function(){},Co=[],Lo=nt("Reflect","construct"),zo=/^\s*(?:class|function)\b/,No=Mo(zo.exec),Bo=!zo.exec(ko),Uo=function(t){if(!Do(t))return!1;try{return Lo(ko,Co,t),!0}catch(t){return!1}},qo=function(t){if(!Do(t))return!1;switch(Fo(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Bo||!!No(zo,Io(t))}catch(t){return!0}};qo.sham=!0;var Go=!Lo||Ro((function(){var t;return Uo(Uo.call)||!Uo(Object)||!Uo((function(){t=!0}))||t}))?qo:Uo,Ho=ho,Wo=Go,Ko=Z,Qo=ie("species"),Vo=Array,Xo=function(t){var e;return Ho(t)&&(e=t.constructor,(Wo(e)&&(e===Vo||Ho(e.prototype))||Ko(e)&&null===(e=e[Qo]))&&(e=void 0)),void 0===e?Vo:e},Yo=y,$o=st,Jo=ie("species"),Zo=Jn,ti=y,ei=ho,ri=Z,ni=qt,oi=ln,ii=function(t){if(t>9007199254740991)throw mo("Maximum allowed index exceeded");return t},ui=function(t,e,r){var n=Oo(e);n in t?jo.f(t,n,wo(0,r)):t[n]=r},ci=function(t,e){return new(Xo(t))(0===e?0:e)},fi=function(t){return $o>=51||!Yo((function(){var e=[];return(e.constructor={})[Jo]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},ai=st,li=ie("isConcatSpreadable"),si=ai>=51||!ti((function(){var t=[];return t[li]=!1,t.concat()[0]!==t})),pi=function(t){if(!ri(t))return!1;var e=t[li];return void 0!==e?!!e:ei(t)};Zo({target:"Array",proto:!0,arity:1,forced:!si||!fi("concat")},{concat:function(t){var e,r,n,o,i,u=ni(this),c=ci(u,0),f=0;for(e=-1,n=arguments.length;e<n;e++)if(pi(i=-1===e?u:arguments[e]))for(o=oi(i),ii(f+o),r=0;r<o;r++,f++)r in i&&ui(c,f,i[r]);else ii(f+1),ui(c,f++,i);return c.length=f,c}}),Object.assign(t.fn.bootstrapTable.defaults,{deferUrl:void 0}),t.BootstrapTable=function(t){!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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&o(t,e)}(s,t);var i,c,a,l=u(s);function s(){return e(this,s),l.apply(this,arguments)}return i=s,c=[{key:"init",value:function(){for(var t,e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];(t=f(n(s.prototype),"init",this)).call.apply(t,[this].concat(r)),this.options.deferUrl&&(this.options.url=this.options.deferUrl)}}],c&&r(i.prototype,c),a&&r(i,a),Object.defineProperty(i,"prototype",{writable:!1}),s}(t.BootstrapTable)}));