UNPKG

20.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.20.2
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){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var n=e(t);function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(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 i(t){return i=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},i(t)}function u(t,e){return u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},u(t,e)}function c(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 a(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 n,r=i(t);if(e){var o=i(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function f(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=i(t)););return t}function s(){return s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=f(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},s.apply(this,arguments)}var l="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},p=function(t){return t&&t.Math==Math&&t},y=p("object"==typeof globalThis&&globalThis)||p("object"==typeof window&&window)||p("object"==typeof self&&self)||p("object"==typeof l&&l)||function(){return this}()||Function("return this")(),b={},d=function(t){try{return!!t()}catch(t){return!0}},h=!d((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),v=!d((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),g=v,m=Function.prototype.call,w=g?m.bind(m):function(){return m.apply(m,arguments)},O={},j={}.propertyIsEnumerable,S=Object.getOwnPropertyDescriptor,T=S&&!j.call({1:2},1);O.f=T?function(t){var e=S(this,t);return!!e&&e.enumerable}:j;var P,C,E=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},V=v,x=Function.prototype,A=x.bind,B=x.call,R=V&&A.bind(B,B),_=V?function(t){return t&&R(t)}:function(t){return t&&function(){return B.apply(t,arguments)}},F=_,k=F({}.toString),I=F("".slice),M=function(t){return I(k(t),8,-1)},z=_,D=d,L=M,N=y.Object,G=z("".split),q=D((function(){return!N("z").propertyIsEnumerable(0)}))?function(t){return"String"==L(t)?G(t,""):N(t)}:N,W=y.TypeError,$=function(t){if(null==t)throw W("Can't call method on "+t);return t},U=q,X=$,K=function(t){return U(X(t))},Q=function(t){return"function"==typeof t},Y=Q,H=function(t){return"object"==typeof t?null!==t:Y(t)},J=y,Z=Q,tt=function(t){return Z(t)?t:void 0},et=function(t,e){return arguments.length<2?tt(J[t]):J[t]&&J[t][e]},nt=_({}.isPrototypeOf),rt=y,ot=et("navigator","userAgent")||"",it=rt.process,ut=rt.Deno,ct=it&&it.versions||ut&&ut.version,at=ct&&ct.v8;at&&(C=(P=at.split("."))[0]>0&&P[0]<4?1:+(P[0]+P[1])),!C&&ot&&(!(P=ot.match(/Edge\/(\d+)/))||P[1]>=74)&&(P=ot.match(/Chrome\/(\d+)/))&&(C=+P[1]);var ft=C,st=ft,lt=d,pt=!!Object.getOwnPropertySymbols&&!lt((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&st&&st<41})),yt=pt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,bt=et,dt=Q,ht=nt,vt=yt,gt=y.Object,mt=vt?function(t){return"symbol"==typeof t}:function(t){var e=bt("Symbol");return dt(e)&&ht(e.prototype,gt(t))},wt=y.String,Ot=Q,jt=function(t){try{return wt(t)}catch(t){return"Object"}},St=y.TypeError,Tt=function(t){if(Ot(t))return t;throw St(jt(t)+" is not a function")},Pt=Tt,Ct=w,Et=Q,Vt=H,xt=y.TypeError,At={exports:{}},Bt=y,Rt=Object.defineProperty,_t=function(t,e){try{Rt(Bt,t,{value:e,configurable:!0,writable:!0})}catch(n){Bt[t]=e}return e},Ft=_t,kt="__core-js_shared__",It=y[kt]||Ft(kt,{}),Mt=It;(At.exports=function(t,e){return Mt[t]||(Mt[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.22.5",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.22.5/LICENSE",source:"https://github.com/zloirock/core-js"});var zt=$,Dt=y.Object,Lt=function(t){return Dt(zt(t))},Nt=Lt,Gt=_({}.hasOwnProperty),qt=Object.hasOwn||function(t,e){return Gt(Nt(t),e)},Wt=_,$t=0,Ut=Math.random(),Xt=Wt(1..toString),Kt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Xt(++$t+Ut,36)},Qt=y,Yt=At.exports,Ht=qt,Jt=Kt,Zt=pt,te=yt,ee=Yt("wks"),ne=Qt.Symbol,re=ne&&ne.for,oe=te?ne:ne&&ne.withoutSetter||Jt,ie=function(t){if(!Ht(ee,t)||!Zt&&"string"!=typeof ee[t]){var e="Symbol."+t;Zt&&Ht(ne,t)?ee[t]=ne[t]:ee[t]=te&&re?re(e):oe(e)}return ee[t]},ue=w,ce=H,ae=mt,fe=function(t,e){var n=t[e];return null==n?void 0:Pt(n)},se=function(t,e){var n,r;if("string"===e&&Et(n=t.toString)&&!Vt(r=Ct(n,t)))return r;if(Et(n=t.valueOf)&&!Vt(r=Ct(n,t)))return r;if("string"!==e&&Et(n=t.toString)&&!Vt(r=Ct(n,t)))return r;throw xt("Can't convert object to primitive value")},le=ie,pe=y.TypeError,ye=le("toPrimitive"),be=function(t,e){if(!ce(t)||ae(t))return t;var n,r=fe(t,ye);if(r){if(void 0===e&&(e="default"),n=ue(r,t,e),!ce(n)||ae(n))return n;throw pe("Can't convert object to primitive value")}return void 0===e&&(e="number"),se(t,e)},de=mt,he=function(t){var e=be(t,"string");return de(e)?e:e+""},ve=H,ge=y.document,me=ve(ge)&&ve(ge.createElement),we=function(t){return me?ge.createElement(t):{}},Oe=we,je=!h&&!d((function(){return 7!=Object.defineProperty(Oe("div"),"a",{get:function(){return 7}}).a})),Se=h,Te=w,Pe=O,Ce=E,Ee=K,Ve=he,xe=qt,Ae=je,Be=Object.getOwnPropertyDescriptor;b.f=Se?Be:function(t,e){if(t=Ee(t),e=Ve(e),Ae)try{return Be(t,e)}catch(t){}if(xe(t,e))return Ce(!Te(Pe.f,t,e),t[e])};var Re={},_e=h&&d((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Fe=y,ke=H,Ie=Fe.String,Me=Fe.TypeError,ze=function(t){if(ke(t))return t;throw Me(Ie(t)+" is not an object")},De=h,Le=je,Ne=_e,Ge=ze,qe=he,We=y.TypeError,$e=Object.defineProperty,Ue=Object.getOwnPropertyDescriptor,Xe="enumerable",Ke="configurable",Qe="writable";Re.f=De?Ne?function(t,e,n){if(Ge(t),e=qe(e),Ge(n),"function"==typeof t&&"prototype"===e&&"value"in n&&Qe in n&&!n.writable){var r=Ue(t,e);r&&r.writable&&(t[e]=n.value,n={configurable:Ke in n?n.configurable:r.configurable,enumerable:Xe in n?n.enumerable:r.enumerable,writable:!1})}return $e(t,e,n)}:$e:function(t,e,n){if(Ge(t),e=qe(e),Ge(n),Le)try{return $e(t,e,n)}catch(t){}if("get"in n||"set"in n)throw We("Accessors not supported");return"value"in n&&(t[e]=n.value),t};var Ye=Re,He=E,Je=h?function(t,e,n){return Ye.f(t,e,He(1,n))}:function(t,e,n){return t[e]=n,t},Ze={exports:{}},tn=h,en=qt,nn=Function.prototype,rn=tn&&Object.getOwnPropertyDescriptor,on=en(nn,"name"),un={EXISTS:on,PROPER:on&&"something"===function(){}.name,CONFIGURABLE:on&&(!tn||tn&&rn(nn,"name").configurable)},cn=Q,an=It,fn=_(Function.toString);cn(an.inspectSource)||(an.inspectSource=function(t){return fn(t)});var sn,ln,pn,yn=an.inspectSource,bn=Q,dn=yn,hn=y.WeakMap,vn=bn(hn)&&/native code/.test(dn(hn)),gn=At.exports,mn=Kt,wn=gn("keys"),On=function(t){return wn[t]||(wn[t]=mn(t))},jn={},Sn=vn,Tn=y,Pn=_,Cn=H,En=Je,Vn=qt,xn=It,An=On,Bn=jn,Rn="Object already initialized",_n=Tn.TypeError,Fn=Tn.WeakMap;if(Sn||xn.state){var kn=xn.state||(xn.state=new Fn),In=Pn(kn.get),Mn=Pn(kn.has),zn=Pn(kn.set);sn=function(t,e){if(Mn(kn,t))throw new _n(Rn);return e.facade=t,zn(kn,t,e),e},ln=function(t){return In(kn,t)||{}},pn=function(t){return Mn(kn,t)}}else{var Dn=An("state");Bn[Dn]=!0,sn=function(t,e){if(Vn(t,Dn))throw new _n(Rn);return e.facade=t,En(t,Dn,e),e},ln=function(t){return Vn(t,Dn)?t[Dn]:{}},pn=function(t){return Vn(t,Dn)}}var Ln={set:sn,get:ln,has:pn,enforce:function(t){return pn(t)?ln(t):sn(t,{})},getterFor:function(t){return function(e){var n;if(!Cn(e)||(n=ln(e)).type!==t)throw _n("Incompatible receiver, "+t+" required");return n}}},Nn=d,Gn=Q,qn=qt,Wn=h,$n=un.CONFIGURABLE,Un=yn,Xn=Ln.enforce,Kn=Ln.get,Qn=Object.defineProperty,Yn=Wn&&!Nn((function(){return 8!==Qn((function(){}),"length",{value:8}).length})),Hn=String(String).split("String"),Jn=Ze.exports=function(t,e,n){if("Symbol("===String(e).slice(0,7)&&(e="["+String(e).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!qn(t,"name")||$n&&t.name!==e)&&Qn(t,"name",{value:e,configurable:!0}),Yn&&n&&qn(n,"arity")&&t.length!==n.arity&&Qn(t,"length",{value:n.arity}),n&&qn(n,"constructor")&&n.constructor){if(Wn)try{Qn(t,"prototype",{writable:!1})}catch(t){}}else t.prototype=void 0;var r=Xn(t);return qn(r,"source")||(r.source=Hn.join("string"==typeof e?e:"")),t};Function.prototype.toString=Jn((function(){return Gn(this)&&Kn(this).source||Un(this)}),"toString");var Zn=y,tr=Q,er=Je,nr=Ze.exports,rr=_t,or=function(t,e,n,r){var o=!!r&&!!r.unsafe,i=!!r&&!!r.enumerable,u=!!r&&!!r.noTargetGet,c=r&&void 0!==r.name?r.name:e;return tr(n)&&nr(n,c,r),t===Zn?(i?t[e]=n:rr(e,n),t):(o?!u&&t[e]&&(i=!0):delete t[e],i?t[e]=n:er(t,e,n),t)},ir={},ur=Math.ceil,cr=Math.floor,ar=function(t){var e=+t;return e!=e||0===e?0:(e>0?cr:ur)(e)},fr=ar,sr=Math.max,lr=Math.min,pr=function(t,e){var n=fr(t);return n<0?sr(n+e,0):lr(n,e)},yr=ar,br=Math.min,dr=function(t){return t>0?br(yr(t),9007199254740991):0},hr=function(t){return dr(t.length)},vr=K,gr=pr,mr=hr,wr=function(t){return function(e,n,r){var o,i=vr(e),u=mr(i),c=gr(r,u);if(t&&n!=n){for(;u>c;)if((o=i[c++])!=o)return!0}else for(;u>c;c++)if((t||c in i)&&i[c]===n)return t||c||0;return!t&&-1}},Or={includes:wr(!0),indexOf:wr(!1)},jr=qt,Sr=K,Tr=Or.indexOf,Pr=jn,Cr=_([].push),Er=function(t,e){var n,r=Sr(t),o=0,i=[];for(n in r)!jr(Pr,n)&&jr(r,n)&&Cr(i,n);for(;e.length>o;)jr(r,n=e[o++])&&(~Tr(i,n)||Cr(i,n));return i},Vr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],xr=Er,Ar=Vr.concat("length","prototype");ir.f=Object.getOwnPropertyNames||function(t){return xr(t,Ar)};var Br={};Br.f=Object.getOwnPropertySymbols;var Rr=et,_r=ir,Fr=Br,kr=ze,Ir=_([].concat),Mr=Rr("Reflect","ownKeys")||function(t){var e=_r.f(kr(t)),n=Fr.f;return n?Ir(e,n(t)):e},zr=qt,Dr=Mr,Lr=b,Nr=Re,Gr=d,qr=Q,Wr=/#|\.prototype\./,$r=function(t,e){var n=Xr[Ur(t)];return n==Qr||n!=Kr&&(qr(e)?Gr(e):!!e)},Ur=$r.normalize=function(t){return String(t).replace(Wr,".").toLowerCase()},Xr=$r.data={},Kr=$r.NATIVE="N",Qr=$r.POLYFILL="P",Yr=$r,Hr=y,Jr=b.f,Zr=Je,to=or,eo=_t,no=function(t,e,n){for(var r=Dr(e),o=Nr.f,i=Lr.f,u=0;u<r.length;u++){var c=r[u];zr(t,c)||n&&zr(n,c)||o(t,c,i(e,c))}},ro=Yr,oo=function(t,e){var n,r,o,i,u,c=t.target,a=t.global,f=t.stat;if(n=a?Hr:f?Hr[c]||eo(c,{}):(Hr[c]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(u=Jr(n,r))&&u.value:n[r],!ro(a?r:c+(f?".":"#")+r,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;no(i,o)}(t.sham||o&&o.sham)&&Zr(i,"sham",!0),to(n,r,i,t)}},io=Er,uo=Vr,co=Object.keys||function(t){return io(t,uo)},ao=h,fo=_,so=w,lo=d,po=co,yo=Br,bo=O,ho=Lt,vo=q,go=Object.assign,mo=Object.defineProperty,wo=fo([].concat),Oo=!go||lo((function(){if(ao&&1!==go({b:1},go(mo({},"a",{enumerable:!0,get:function(){mo(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=go({},t)[n]||po(go({},e)).join("")!=r}))?function(t,e){for(var n=ho(t),r=arguments.length,o=1,i=yo.f,u=bo.f;r>o;)for(var c,a=vo(arguments[o++]),f=i?wo(po(a),i(a)):po(a),s=f.length,l=0;s>l;)c=f[l++],ao&&!so(u,a,c)||(n[c]=a[c]);return n}:go,jo=Oo;oo({target:"Object",stat:!0,arity:2,forced:Object.assign!==jo},{assign:jo});var So=M,To=Array.isArray||function(t){return"Array"==So(t)},Po=he,Co=Re,Eo=E,Vo=function(t,e,n){var r=Po(e);r in t?Co.f(t,r,Eo(0,n)):t[r]=n},xo={};xo[ie("toStringTag")]="z";var Ao="[object z]"===String(xo),Bo=y,Ro=Ao,_o=Q,Fo=M,ko=ie("toStringTag"),Io=Bo.Object,Mo="Arguments"==Fo(function(){return arguments}()),zo=Ro?Fo: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=Io(t),ko))?n:Mo?Fo(e):"Object"==(r=Fo(e))&&_o(e.callee)?"Arguments":r},Do=_,Lo=d,No=Q,Go=zo,qo=yn,Wo=function(){},$o=[],Uo=et("Reflect","construct"),Xo=/^\s*(?:class|function)\b/,Ko=Do(Xo.exec),Qo=!Xo.exec(Wo),Yo=function(t){if(!No(t))return!1;try{return Uo(Wo,$o,t),!0}catch(t){return!1}},Ho=function(t){if(!No(t))return!1;switch(Go(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Qo||!!Ko(Xo,qo(t))}catch(t){return!0}};Ho.sham=!0;var Jo=!Uo||Lo((function(){var t;return Yo(Yo.call)||!Yo(Object)||!Yo((function(){t=!0}))||t}))?Ho:Yo,Zo=y,ti=To,ei=Jo,ni=H,ri=ie("species"),oi=Zo.Array,ii=function(t){var e;return ti(t)&&(e=t.constructor,(ei(e)&&(e===oi||ti(e.prototype))||ni(e)&&null===(e=e[ri]))&&(e=void 0)),void 0===e?oi:e},ui=function(t,e){return new(ii(t))(0===e?0:e)},ci=d,ai=ft,fi=ie("species"),si=function(t){return ai>=51||!ci((function(){var e=[];return(e.constructor={})[fi]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},li=oo,pi=y,yi=d,bi=To,di=H,hi=Lt,vi=hr,gi=Vo,mi=ui,wi=si,Oi=ft,ji=ie("isConcatSpreadable"),Si=9007199254740991,Ti="Maximum allowed index exceeded",Pi=pi.TypeError,Ci=Oi>=51||!yi((function(){var t=[];return t[ji]=!1,t.concat()[0]!==t})),Ei=wi("concat"),Vi=function(t){if(!di(t))return!1;var e=t[ji];return void 0!==e?!!e:bi(t)};li({target:"Array",proto:!0,arity:1,forced:!Ci||!Ei},{concat:function(t){var e,n,r,o,i,u=hi(this),c=mi(u,0),a=0;for(e=-1,r=arguments.length;e<r;e++)if(Vi(i=-1===e?u:arguments[e])){if(a+(o=vi(i))>Si)throw Pi(Ti);for(n=0;n<o;n++,a++)n in i&&gi(c,a,i[n])}else{if(a>=Si)throw Pi(Ti);gi(c,a++,i)}return c.length=a,c}});var xi=Tt,Ai=v,Bi=_(_.bind),Ri=function(t,e){return xi(t),void 0===e?t:Ai?Bi(t,e):function(){return t.apply(e,arguments)}},_i=q,Fi=Lt,ki=hr,Ii=ui,Mi=_([].push),zi=function(t){var e=1==t,n=2==t,r=3==t,o=4==t,i=6==t,u=7==t,c=5==t||i;return function(a,f,s,l){for(var p,y,b=Fi(a),d=_i(b),h=Ri(f,s),v=ki(d),g=0,m=l||Ii,w=e?m(a,v):n||u?m(a,0):void 0;v>g;g++)if((c||g in d)&&(y=h(p=d[g],g,b),t))if(e)w[g]=y;else if(y)switch(t){case 3:return!0;case 5:return p;case 6:return g;case 2:Mi(w,p)}else switch(t){case 4:return!1;case 7:Mi(w,p)}return i?-1:r||o?o:w}},Di={forEach:zi(0),map:zi(1),filter:zi(2),some:zi(3),every:zi(4),find:zi(5),findIndex:zi(6),filterReject:zi(7)},Li={},Ni=h,Gi=_e,qi=Re,Wi=ze,$i=K,Ui=co;Li.f=Ni&&!Gi?Object.defineProperties:function(t,e){Wi(t);for(var n,r=$i(e),o=Ui(e),i=o.length,u=0;i>u;)qi.f(t,n=o[u++],r[n]);return t};var Xi,Ki=et("document","documentElement"),Qi=ze,Yi=Li,Hi=Vr,Ji=jn,Zi=Ki,tu=we,eu=On("IE_PROTO"),nu=function(){},ru=function(t){return"<script>"+t+"</"+"script>"},ou=function(t){t.write(ru("")),t.close();var e=t.parentWindow.Object;return t=null,e},iu=function(){try{Xi=new ActiveXObject("htmlfile")}catch(t){}var t,e;iu="undefined"!=typeof document?document.domain&&Xi?ou(Xi):((e=tu("iframe")).style.display="none",Zi.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(ru("document.F=Object")),t.close(),t.F):ou(Xi);for(var n=Hi.length;n--;)delete iu.prototype[Hi[n]];return iu()};Ji[eu]=!0;var uu=Object.create||function(t,e){var n;return null!==t?(nu.prototype=Qi(t),n=new nu,nu.prototype=null,n[eu]=t):n=iu(),void 0===e?n:Yi.f(n,e)},cu=Re,au=ie("unscopables"),fu=Array.prototype;null==fu[au]&&cu.f(fu,au,{configurable:!0,value:uu(null)});var su=oo,lu=Di.find,pu=function(t){fu[au][t]=!0},yu="find",bu=!0;yu in[]&&Array(1).find((function(){bu=!1})),su({target:"Array",proto:!0,forced:bu},{find:function(t){return lu(this,t,arguments.length>1?arguments[1]:void 0)}}),pu(yu);var du=zo,hu=Ao?{}.toString:function(){return"[object "+du(this)+"]"};Ao||or(Object.prototype,"toString",hu,{unsafe:!0});var vu=_([].slice),gu=oo,mu=y,wu=To,Ou=Jo,ju=H,Su=pr,Tu=hr,Pu=K,Cu=Vo,Eu=ie,Vu=vu,xu=si("slice"),Au=Eu("species"),Bu=mu.Array,Ru=Math.max;gu({target:"Array",proto:!0,forced:!xu},{slice:function(t,e){var n,r,o,i=Pu(this),u=Tu(i),c=Su(t,u),a=Su(void 0===e?u:e,u);if(wu(i)&&(n=i.constructor,(Ou(n)&&(n===Bu||wu(n.prototype))||ju(n)&&null===(n=n[Au]))&&(n=void 0),n===Bu||void 0===n))return Vu(i,c,a);for(r=new(void 0===n?Bu:n)(Ru(a-c,0)),o=0;c<a;c++,o++)c in i&&Cu(r,o,i[c]);return r.length=o,r}});var _u=n.default.fn.bootstrapTable.utils;n.default.extend(n.default.fn.bootstrapTable.defaults,{customView:!1,showCustomView:!1,showCustomViewButton:!1}),n.default.extend(n.default.fn.bootstrapTable.defaults.icons,{customView:{bootstrap3:"glyphicon glyphicon-eye-open",bootstrap5:"bi-eye",bootstrap4:"fa fa-eye",semantic:"fa fa-eye",foundation:"fa fa-eye",bulma:"fa fa-eye",materialize:"remove_red_eye"}[n.default.fn.bootstrapTable.theme]||"fa-eye"}),n.default.extend(n.default.fn.bootstrapTable.defaults,{onCustomViewPostBody:function(){return!1},onCustomViewPreBody:function(){return!1}}),n.default.extend(n.default.fn.bootstrapTable.locales,{formatToggleCustomView:function(){return"Toggle custom view"}}),n.default.extend(n.default.fn.bootstrapTable.defaults,n.default.fn.bootstrapTable.locales),n.default.fn.bootstrapTable.methods.push("toggleCustomView"),n.default.extend(n.default.fn.bootstrapTable.Constructor.EVENTS,{"custom-view-post-body.bs.table":"onCustomViewPostBody","custom-view-pre-body.bs.table":"onCustomViewPreBody"}),n.default.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&&u(t,e)}(l,t);var e,n,c,f=a(l);function l(){return r(this,l),f.apply(this,arguments)}return e=l,n=[{key:"init",value:function(){this.showCustomView=this.options.showCustomView,s(i(l.prototype),"init",this).call(this)}},{key:"initToolbar",value:function(){var t;this.options.customView&&this.options.showCustomViewButton&&(this.buttons=Object.assign(this.buttons,{customView:{text:this.options.formatToggleCustomView(),icon:this.options.icons.customView,event:this.toggleCustomView,attributes:{"aria-label":this.options.formatToggleCustomView(),title:this.options.formatToggleCustomView()}}}));for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];(t=s(i(l.prototype),"initToolbar",this)).call.apply(t,[this].concat(n))}},{key:"initBody",value:function(){if(s(i(l.prototype),"initBody",this).call(this),this.options.customView){var t=this.$el,e=this.$container.find(".fixed-table-custom-view");if(t.hide(),e.hide(),this.options.customView&&this.showCustomView){var n=this.getData().slice(this.pageFrom-1,this.pageTo),r=_u.calculateObjectValue(this,this.options.customView,[n],"");this.trigger("custom-view-pre-body",n,r),1===e.length?e.show().html(r):this.$tableBody.after('<div class="fixed-table-custom-view">'.concat(r,"</div>")),this.trigger("custom-view-post-body",n,r)}else t.show()}}},{key:"toggleCustomView",value:function(){this.showCustomView=!this.showCustomView,this.initBody()}}],n&&o(e.prototype,n),c&&o(e,c),Object.defineProperty(e,"prototype",{writable:!1}),l}(n.default.BootstrapTable)}));