bootstrap-table
Version:
An extended table to integration with some of the most widely used CSS frameworks. (Supports Bootstrap, Semantic UI, Bulma, Material Design, Foundation)
11 lines (9 loc) • 19.7 kB
JavaScript
/**
* 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.20.2
* @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";function e(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var r=e(t);function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(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,n.key,n)}}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 r,n=i(t);if(e){var o=i(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return c(this,r)}}function f(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=i(t)););return t}function l(){return l="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,r){var n=f(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},l.apply(this,arguments)}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function p(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return s(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,u=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return u=t.done,t},e:function(t){c=!0,i=t},f:function(){try{u||null==r.return||r.return()}finally{if(c)throw i}}}}var y="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},d=function(t){return t&&t.Math==Math&&t},v=d("object"==typeof globalThis&&globalThis)||d("object"==typeof window&&window)||d("object"==typeof self&&self)||d("object"==typeof y&&y)||function(){return this}()||Function("return this")(),h={},b=function(t){try{return!!t()}catch(t){return!0}},g=!b((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),m=!b((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),w=m,j=Function.prototype.call,O=w?j.bind(j):function(){return j.apply(j,arguments)},S={},P={}.propertyIsEnumerable,E=Object.getOwnPropertyDescriptor,T=E&&!P.call({1:2},1);S.f=T?function(t){var e=E(this,t);return!!e&&e.enumerable}:P;var x,A,F=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},I=m,_=Function.prototype,R=_.bind,k=_.call,C=I&&R.bind(k,k),M=I?function(t){return t&&C(t)}:function(t){return t&&function(){return k.apply(t,arguments)}},B=M,z=B({}.toString),D=B("".slice),L=function(t){return D(z(t),8,-1)},N=M,G=b,q=L,U=v.Object,$=N("".split),H=G((function(){return!U("z").propertyIsEnumerable(0)}))?function(t){return"String"==q(t)?$(t,""):U(t)}:U,W=v.TypeError,K=function(t){if(null==t)throw W("Can't call method on "+t);return t},Q=H,V=K,X=function(t){return Q(V(t))},Y=function(t){return"function"==typeof t},J=Y,Z=function(t){return"object"==typeof t?null!==t:J(t)},tt=v,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=v,ut=nt("navigator","userAgent")||"",ct=it.process,at=it.Deno,ft=ct&&ct.versions||at&&at.version,lt=ft&&ft.v8;lt&&(A=(x=lt.split("."))[0]>0&&x[0]<4?1:+(x[0]+x[1])),!A&&ut&&(!(x=ut.match(/Edge\/(\d+)/))||x[1]>=74)&&(x=ut.match(/Chrome\/(\d+)/))&&(A=+x[1]);var st=A,pt=st,yt=b,dt=!!Object.getOwnPropertySymbols&&!yt((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&pt&&pt<41})),vt=dt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ht=nt,bt=Y,gt=ot,mt=vt,wt=v.Object,jt=mt?function(t){return"symbol"==typeof t}:function(t){var e=ht("Symbol");return bt(e)&>(e.prototype,wt(t))},Ot=v.String,St=Y,Pt=function(t){try{return Ot(t)}catch(t){return"Object"}},Et=v.TypeError,Tt=function(t){if(St(t))return t;throw Et(Pt(t)+" is not a function")},xt=Tt,At=O,Ft=Y,It=Z,_t=v.TypeError,Rt={exports:{}},kt=v,Ct=Object.defineProperty,Mt=function(t,e){try{Ct(kt,t,{value:e,configurable:!0,writable:!0})}catch(r){kt[t]=e}return e},Bt=Mt,zt="__core-js_shared__",Dt=v[zt]||Bt(zt,{}),Lt=Dt;(Rt.exports=function(t,e){return Lt[t]||(Lt[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 Nt=K,Gt=v.Object,qt=function(t){return Gt(Nt(t))},Ut=qt,$t=M({}.hasOwnProperty),Ht=Object.hasOwn||function(t,e){return $t(Ut(t),e)},Wt=M,Kt=0,Qt=Math.random(),Vt=Wt(1..toString),Xt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Vt(++Kt+Qt,36)},Yt=v,Jt=Rt.exports,Zt=Ht,te=Xt,ee=dt,re=vt,ne=Jt("wks"),oe=Yt.Symbol,ie=oe&&oe.for,ue=re?oe:oe&&oe.withoutSetter||te,ce=function(t){if(!Zt(ne,t)||!ee&&"string"!=typeof ne[t]){var e="Symbol."+t;ee&&Zt(oe,t)?ne[t]=oe[t]:ne[t]=re&&ie?ie(e):ue(e)}return ne[t]},ae=O,fe=Z,le=jt,se=function(t,e){var r=t[e];return null==r?void 0:xt(r)},pe=function(t,e){var r,n;if("string"===e&&Ft(r=t.toString)&&!It(n=At(r,t)))return n;if(Ft(r=t.valueOf)&&!It(n=At(r,t)))return n;if("string"!==e&&Ft(r=t.toString)&&!It(n=At(r,t)))return n;throw _t("Can't convert object to primitive value")},ye=ce,de=v.TypeError,ve=ye("toPrimitive"),he=function(t,e){if(!fe(t)||le(t))return t;var r,n=se(t,ve);if(n){if(void 0===e&&(e="default"),r=ae(n,t,e),!fe(r)||le(r))return r;throw de("Can't convert object to primitive value")}return void 0===e&&(e="number"),pe(t,e)},be=jt,ge=function(t){var e=he(t,"string");return be(e)?e:e+""},me=Z,we=v.document,je=me(we)&&me(we.createElement),Oe=function(t){return je?we.createElement(t):{}},Se=!g&&!b((function(){return 7!=Object.defineProperty(Oe("div"),"a",{get:function(){return 7}}).a})),Pe=g,Ee=O,Te=S,xe=F,Ae=X,Fe=ge,Ie=Ht,_e=Se,Re=Object.getOwnPropertyDescriptor;h.f=Pe?Re:function(t,e){if(t=Ae(t),e=Fe(e),_e)try{return Re(t,e)}catch(t){}if(Ie(t,e))return xe(!Ee(Te.f,t,e),t[e])};var ke={},Ce=g&&b((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Me=v,Be=Z,ze=Me.String,De=Me.TypeError,Le=function(t){if(Be(t))return t;throw De(ze(t)+" is not an object")},Ne=g,Ge=Se,qe=Ce,Ue=Le,$e=ge,He=v.TypeError,We=Object.defineProperty,Ke=Object.getOwnPropertyDescriptor,Qe="enumerable",Ve="configurable",Xe="writable";ke.f=Ne?qe?function(t,e,r){if(Ue(t),e=$e(e),Ue(r),"function"==typeof t&&"prototype"===e&&"value"in r&&Xe in r&&!r.writable){var n=Ke(t,e);n&&n.writable&&(t[e]=r.value,r={configurable:Ve in r?r.configurable:n.configurable,enumerable:Qe in r?r.enumerable:n.enumerable,writable:!1})}return We(t,e,r)}:We:function(t,e,r){if(Ue(t),e=$e(e),Ue(r),Ge)try{return We(t,e,r)}catch(t){}if("get"in r||"set"in r)throw He("Accessors not supported");return"value"in r&&(t[e]=r.value),t};var Ye=ke,Je=F,Ze=g?function(t,e,r){return Ye.f(t,e,Je(1,r))}:function(t,e,r){return t[e]=r,t},tr={exports:{}},er=g,rr=Ht,nr=Function.prototype,or=er&&Object.getOwnPropertyDescriptor,ir=rr(nr,"name"),ur={EXISTS:ir,PROPER:ir&&"something"===function(){}.name,CONFIGURABLE:ir&&(!er||er&&or(nr,"name").configurable)},cr=Y,ar=Dt,fr=M(Function.toString);cr(ar.inspectSource)||(ar.inspectSource=function(t){return fr(t)});var lr,sr,pr,yr=ar.inspectSource,dr=Y,vr=yr,hr=v.WeakMap,br=dr(hr)&&/native code/.test(vr(hr)),gr=Rt.exports,mr=Xt,wr=gr("keys"),jr={},Or=br,Sr=v,Pr=M,Er=Z,Tr=Ze,xr=Ht,Ar=Dt,Fr=function(t){return wr[t]||(wr[t]=mr(t))},Ir=jr,_r="Object already initialized",Rr=Sr.TypeError,kr=Sr.WeakMap;if(Or||Ar.state){var Cr=Ar.state||(Ar.state=new kr),Mr=Pr(Cr.get),Br=Pr(Cr.has),zr=Pr(Cr.set);lr=function(t,e){if(Br(Cr,t))throw new Rr(_r);return e.facade=t,zr(Cr,t,e),e},sr=function(t){return Mr(Cr,t)||{}},pr=function(t){return Br(Cr,t)}}else{var Dr=Fr("state");Ir[Dr]=!0,lr=function(t,e){if(xr(t,Dr))throw new Rr(_r);return e.facade=t,Tr(t,Dr,e),e},sr=function(t){return xr(t,Dr)?t[Dr]:{}},pr=function(t){return xr(t,Dr)}}var Lr={set:lr,get:sr,has:pr,enforce:function(t){return pr(t)?sr(t):lr(t,{})},getterFor:function(t){return function(e){var r;if(!Er(e)||(r=sr(e)).type!==t)throw Rr("Incompatible receiver, "+t+" required");return r}}},Nr=b,Gr=Y,qr=Ht,Ur=g,$r=ur.CONFIGURABLE,Hr=yr,Wr=Lr.enforce,Kr=Lr.get,Qr=Object.defineProperty,Vr=Ur&&!Nr((function(){return 8!==Qr((function(){}),"length",{value:8}).length})),Xr=String(String).split("String"),Yr=tr.exports=function(t,e,r){if("Symbol("===String(e).slice(0,7)&&(e="["+String(e).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!qr(t,"name")||$r&&t.name!==e)&&Qr(t,"name",{value:e,configurable:!0}),Vr&&r&&qr(r,"arity")&&t.length!==r.arity&&Qr(t,"length",{value:r.arity}),r&&qr(r,"constructor")&&r.constructor){if(Ur)try{Qr(t,"prototype",{writable:!1})}catch(t){}}else t.prototype=void 0;var n=Wr(t);return qr(n,"source")||(n.source=Xr.join("string"==typeof e?e:"")),t};Function.prototype.toString=Yr((function(){return Gr(this)&&Kr(this).source||Hr(this)}),"toString");var Jr=v,Zr=Y,tn=Ze,en=tr.exports,rn=Mt,nn=function(t,e,r,n){var o=!!n&&!!n.unsafe,i=!!n&&!!n.enumerable,u=!!n&&!!n.noTargetGet,c=n&&void 0!==n.name?n.name:e;return Zr(r)&&en(r,c,n),t===Jr?(i?t[e]=r:rn(e,r),t):(o?!u&&t[e]&&(i=!0):delete t[e],i?t[e]=r:tn(t,e,r),t)},on={},un=Math.ceil,cn=Math.floor,an=function(t){var e=+t;return e!=e||0===e?0:(e>0?cn:un)(e)},fn=an,ln=Math.max,sn=Math.min,pn=an,yn=Math.min,dn=function(t){return t>0?yn(pn(t),9007199254740991):0},vn=function(t){return dn(t.length)},hn=X,bn=function(t,e){var r=fn(t);return r<0?ln(r+e,0):sn(r,e)},gn=vn,mn=function(t){return function(e,r,n){var o,i=hn(e),u=gn(i),c=bn(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}},wn={includes:mn(!0),indexOf:mn(!1)},jn=Ht,On=X,Sn=wn.indexOf,Pn=jr,En=M([].push),Tn=function(t,e){var r,n=On(t),o=0,i=[];for(r in n)!jn(Pn,r)&&jn(n,r)&&En(i,r);for(;e.length>o;)jn(n,r=e[o++])&&(~Sn(i,r)||En(i,r));return i},xn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"].concat("length","prototype");on.f=Object.getOwnPropertyNames||function(t){return Tn(t,xn)};var An={};An.f=Object.getOwnPropertySymbols;var Fn=nt,In=on,_n=An,Rn=Le,kn=M([].concat),Cn=Fn("Reflect","ownKeys")||function(t){var e=In.f(Rn(t)),r=_n.f;return r?kn(e,r(t)):e},Mn=Ht,Bn=Cn,zn=h,Dn=ke,Ln=b,Nn=Y,Gn=/#|\.prototype\./,qn=function(t,e){var r=$n[Un(t)];return r==Wn||r!=Hn&&(Nn(e)?Ln(e):!!e)},Un=qn.normalize=function(t){return String(t).replace(Gn,".").toLowerCase()},$n=qn.data={},Hn=qn.NATIVE="N",Wn=qn.POLYFILL="P",Kn=qn,Qn=v,Vn=h.f,Xn=Ze,Yn=nn,Jn=Mt,Zn=function(t,e,r){for(var n=Bn(e),o=Dn.f,i=zn.f,u=0;u<n.length;u++){var c=n[u];Mn(t,c)||r&&Mn(r,c)||o(t,c,i(e,c))}},to=Kn,eo=function(t,e){var r,n,o,i,u,c=t.target,a=t.global,f=t.stat;if(r=a?Qn:f?Qn[c]||Jn(c,{}):(Qn[c]||{}).prototype)for(n in e){if(i=e[n],o=t.noTargetGet?(u=Vn(r,n))&&u.value:r[n],!to(a?n:c+(f?".":"#")+n,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Zn(i,o)}(t.sham||o&&o.sham)&&Xn(i,"sham",!0),Yn(r,n,i,t)}},ro=L,no=Array.isArray||function(t){return"Array"==ro(t)},oo=ge,io=ke,uo=F,co={};co[ce("toStringTag")]="z";var ao="[object z]"===String(co),fo=v,lo=ao,so=Y,po=L,yo=ce("toStringTag"),vo=fo.Object,ho="Arguments"==po(function(){return arguments}()),bo=lo?po: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=vo(t),yo))?r:ho?po(e):"Object"==(n=po(e))&&so(e.callee)?"Arguments":n},go=M,mo=b,wo=Y,jo=bo,Oo=yr,So=function(){},Po=[],Eo=nt("Reflect","construct"),To=/^\s*(?:class|function)\b/,xo=go(To.exec),Ao=!To.exec(So),Fo=function(t){if(!wo(t))return!1;try{return Eo(So,Po,t),!0}catch(t){return!1}},Io=function(t){if(!wo(t))return!1;switch(jo(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Ao||!!xo(To,Oo(t))}catch(t){return!0}};Io.sham=!0;var _o=!Eo||mo((function(){var t;return Fo(Fo.call)||!Fo(Object)||!Fo((function(){t=!0}))||t}))?Io:Fo,Ro=v,ko=no,Co=_o,Mo=Z,Bo=ce("species"),zo=Ro.Array,Do=function(t){var e;return ko(t)&&(e=t.constructor,(Co(e)&&(e===zo||ko(e.prototype))||Mo(e)&&null===(e=e[Bo]))&&(e=void 0)),void 0===e?zo:e},Lo=function(t,e){return new(Do(t))(0===e?0:e)},No=b,Go=st,qo=ce("species"),Uo=function(t){return Go>=51||!No((function(){var e=[];return(e.constructor={})[qo]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},$o=eo,Ho=v,Wo=b,Ko=no,Qo=Z,Vo=qt,Xo=vn,Yo=function(t,e,r){var n=oo(e);n in t?io.f(t,n,uo(0,r)):t[n]=r},Jo=Lo,Zo=Uo,ti=st,ei=ce("isConcatSpreadable"),ri=9007199254740991,ni="Maximum allowed index exceeded",oi=Ho.TypeError,ii=ti>=51||!Wo((function(){var t=[];return t[ei]=!1,t.concat()[0]!==t})),ui=Zo("concat"),ci=function(t){if(!Qo(t))return!1;var e=t[ei];return void 0!==e?!!e:Ko(t)};$o({target:"Array",proto:!0,arity:1,forced:!ii||!ui},{concat:function(t){var e,r,n,o,i,u=Vo(this),c=Jo(u,0),a=0;for(e=-1,n=arguments.length;e<n;e++)if(ci(i=-1===e?u:arguments[e])){if(a+(o=Xo(i))>ri)throw oi(ni);for(r=0;r<o;r++,a++)r in i&&Yo(c,a,i[r])}else{if(a>=ri)throw oi(ni);Yo(c,a++,i)}return c.length=a,c}});var ai=Tt,fi=m,li=M(M.bind),si=function(t,e){return ai(t),void 0===e?t:fi?li(t,e):function(){return t.apply(e,arguments)}},pi=H,yi=qt,di=vn,vi=Lo,hi=M([].push),bi=function(t){var e=1==t,r=2==t,n=3==t,o=4==t,i=6==t,u=7==t,c=5==t||i;return function(a,f,l,s){for(var p,y,d=yi(a),v=pi(d),h=si(f,l),b=di(v),g=0,m=s||vi,w=e?m(a,b):r||u?m(a,0):void 0;b>g;g++)if((c||g in v)&&(y=h(p=v[g],g,d),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:hi(w,p)}else switch(t){case 4:return!1;case 7:hi(w,p)}return i?-1:n||o?o:w}},gi={forEach:bi(0),map:bi(1),filter:bi(2),some:bi(3),every:bi(4),find:bi(5),findIndex:bi(6),filterReject:bi(7)}.filter;eo({target:"Array",proto:!0,forced:!Uo("filter")},{filter:function(t){return gi(this,t,arguments.length>1?arguments[1]:void 0)}});var mi=bo,wi=ao?{}.toString:function(){return"[object "+mi(this)+"]"};ao||nn(Object.prototype,"toString",wi,{unsafe:!0});var ji=b,Oi=eo,Si=H,Pi=X,Ei=function(t,e){var r=[][t];return!!r&&ji((function(){r.call(null,e||function(){return 1},1)}))},Ti=M([].join),xi=Si!=Object,Ai=Ei("join",",");Oi({target:"Array",proto:!0,forced:xi||!Ai},{join:function(t){return Ti(Pi(this),void 0===t?",":t)}});var Fi=bo,Ii=v.String,_i=function(t){if("Symbol"===Fi(t))throw TypeError("Cannot convert a Symbol value to a string");return Ii(t)},Ri="\t\n\v\f\r \u2028\u2029\ufeff",ki=K,Ci=_i,Mi=M("".replace),Bi="[\t\n\v\f\r \u2028\u2029\ufeff]",zi=RegExp("^"+Bi+Bi+"*"),Di=RegExp(Bi+Bi+"*$"),Li=function(t){return function(e){var r=Ci(ki(e));return 1&t&&(r=Mi(r,zi,"")),2&t&&(r=Mi(r,Di,"")),r}},Ni={start:Li(1),end:Li(2),trim:Li(3)},Gi=v,qi=b,Ui=M,$i=_i,Hi=Ni.trim,Wi=Ri,Ki=Gi.parseInt,Qi=Gi.Symbol,Vi=Qi&&Qi.iterator,Xi=/^[+-]?0x/i,Yi=Ui(Xi.exec),Ji=8!==Ki(Wi+"08")||22!==Ki(Wi+"0x16")||Vi&&!qi((function(){Ki(Object(Vi))}))?function(t,e){var r=Hi($i(t));return Ki(r,e>>>0||(Yi(Xi,r)?16:10))}:Ki;eo({global:!0,forced:parseInt!=Ji},{parseInt:Ji}),r.default.extend(r.default.fn.bootstrapTable.defaults,{treeEnable:!1,treeShowField:null,idField:"id",parentIdField:"pid",rootParentId:null}),r.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)}(y,t);var e,c,f,s=a(y);function y(){return n(this,y),s.apply(this,arguments)}return e=y,c=[{key:"init",value:function(){var t;this._rowStyle=this.options.rowStyle;for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];(t=l(i(y.prototype),"init",this)).call.apply(t,[this].concat(r))}},{key:"initHeader",value:function(){for(var t,e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];(t=l(i(y.prototype),"initHeader",this)).call.apply(t,[this].concat(r));var o=this.options.treeShowField;if(o){var u,c=p(this.header.fields);try{for(c.s();!(u=c.n()).done;){var a=u.value;if(o===a){this.treeEnable=!0;break}}}catch(t){c.e(t)}finally{c.f()}}}},{key:"initBody",value:function(){var t;this.treeEnable&&(this.options.virtualScroll=!1);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];(t=l(i(y.prototype),"initBody",this)).call.apply(t,[this].concat(r))}},{key:"initTr",value:function(t,e,n,o){var u=this,c=n.filter((function(e){return t[u.options.idField]===e[u.options.parentIdField]}));o.append(l(i(y.prototype),"initRow",this).call(this,t,e,n,o));for(var a=c.length-1,f=0;f<=a;f++){var s=c[f],p=r.default.extend(!0,{},t);s._level=p._level+1,s._parent=p,f===a&&(s._last=1),this.options.rowStyle=function(t,e){var r=u._rowStyle(t,e),n=t[u.options.idField]?t[u.options.idField]:0,o=t[u.options.parentIdField]?t[u.options.parentIdField]:0;return r.classes=[r.classes||"","treegrid-".concat(n),"treegrid-parent-".concat(o)].join(" "),r},this.initTr(s,r.default.inArray(s,n),n,o)}}},{key:"initRow",value:function(t,e,r,n){var o=this;if(this.treeEnable){var u=parseInt(t[this.options.parentIdField],10);return!(this.options.rootParentId!==u&&u||(void 0===t._level&&(t._level=0),this.options.rowStyle=function(t,e){var r=o._rowStyle(t,e),n=t[o.options.idField]?t[o.options.idField]:0;return r.classes=[r.classes||"","treegrid-".concat(n)].join(" "),r},this.initTr(t,e,r,n),0))}return l(i(y.prototype),"initRow",this).call(this,t,e,r,n)}},{key:"destroy",value:function(){for(var t,e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];(t=l(i(y.prototype),"destroy",this)).call.apply(t,[this].concat(r)),this.options.rowStyle=this._rowStyle}}],c&&o(e.prototype,c),f&&o(e,f),Object.defineProperty(e,"prototype",{writable:!1}),y}(r.default.BootstrapTable)}));