1
0
mirror of https://github.com/janeczku/calibre-web synced 2024-11-25 02:57:22 +00:00
calibre-web/cps/static/js/libs/bootstrap-table/bootstrap-table.min.js
2021-02-20 20:03:39 +01:00

11 lines
118 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* 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.18.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?module.exports=e(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],e):(t="undefined"!=typeof globalThis?globalThis:t||self).BootstrapTable=e(t.jQuery)}(this,(function(t){"use strict";function e(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var i=e(t),n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function o(t,e){return t(e={exports:{}},e.exports),e.exports}var a=function(t){return t&&t.Math==Math&&t},s=a("object"==typeof globalThis&&globalThis)||a("object"==typeof window&&window)||a("object"==typeof self&&self)||a("object"==typeof n&&n)||function(){return this}()||Function("return this")(),r=function(t){try{return!!t()}catch(t){return!0}},l=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),c={}.propertyIsEnumerable,h=Object.getOwnPropertyDescriptor,u={f:h&&!c.call({1:2},1)?function(t){var e=h(this,t);return!!e&&e.enumerable}:c},d=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},f={}.toString,p=function(t){return f.call(t).slice(8,-1)},g="".split,v=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==p(t)?g.call(t,""):Object(t)}:Object,b=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},m=function(t){return v(b(t))},y=function(t){return"object"==typeof t?null!==t:"function"==typeof t},w=function(t,e){if(!y(t))return t;var i,n;if(e&&"function"==typeof(i=t.toString)&&!y(n=i.call(t)))return n;if("function"==typeof(i=t.valueOf)&&!y(n=i.call(t)))return n;if(!e&&"function"==typeof(i=t.toString)&&!y(n=i.call(t)))return n;throw TypeError("Can't convert object to primitive value")},S={}.hasOwnProperty,x=function(t,e){return S.call(t,e)},k=s.document,O=y(k)&&y(k.createElement),C=function(t){return O?k.createElement(t):{}},T=!l&&!r((function(){return 7!=Object.defineProperty(C("div"),"a",{get:function(){return 7}}).a})),P=Object.getOwnPropertyDescriptor,A={f:l?P:function(t,e){if(t=m(t),e=w(e,!0),T)try{return P(t,e)}catch(t){}if(x(t,e))return d(!u.f.call(t,e),t[e])}},I=function(t){if(!y(t))throw TypeError(String(t)+" is not an object");return t},$=Object.defineProperty,E={f:l?$:function(t,e,i){if(I(t),e=w(e,!0),I(i),T)try{return $(t,e,i)}catch(t){}if("get"in i||"set"in i)throw TypeError("Accessors not supported");return"value"in i&&(t[e]=i.value),t}},R=l?function(t,e,i){return E.f(t,e,d(1,i))}:function(t,e,i){return t[e]=i,t},j=function(t,e){try{R(s,t,e)}catch(i){s[t]=e}return e},_="__core-js_shared__",N=s[_]||j(_,{}),F=Function.toString;"function"!=typeof N.inspectSource&&(N.inspectSource=function(t){return F.call(t)});var D,V,B,L=N.inspectSource,H=s.WeakMap,M="function"==typeof H&&/native code/.test(L(H)),U=o((function(t){(t.exports=function(t,e){return N[t]||(N[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.8.1",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),z=0,q=Math.random(),W=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++z+q).toString(36)},G=U("keys"),K=function(t){return G[t]||(G[t]=W(t))},Y={},X=s.WeakMap;if(M){var J=N.state||(N.state=new X),Q=J.get,Z=J.has,tt=J.set;D=function(t,e){return e.facade=t,tt.call(J,t,e),e},V=function(t){return Q.call(J,t)||{}},B=function(t){return Z.call(J,t)}}else{var et=K("state");Y[et]=!0,D=function(t,e){return e.facade=t,R(t,et,e),e},V=function(t){return x(t,et)?t[et]:{}},B=function(t){return x(t,et)}}var it,nt,ot={set:D,get:V,has:B,enforce:function(t){return B(t)?V(t):D(t,{})},getterFor:function(t){return function(e){var i;if(!y(e)||(i=V(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return i}}},at=o((function(t){var e=ot.get,i=ot.enforce,n=String(String).split("String");(t.exports=function(t,e,o,a){var r,l=!!a&&!!a.unsafe,c=!!a&&!!a.enumerable,h=!!a&&!!a.noTargetGet;"function"==typeof o&&("string"!=typeof e||x(o,"name")||R(o,"name",e),(r=i(o)).source||(r.source=n.join("string"==typeof e?e:""))),t!==s?(l?!h&&t[e]&&(c=!0):delete t[e],c?t[e]=o:R(t,e,o)):c?t[e]=o:j(e,o)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||L(this)}))})),st=s,rt=function(t){return"function"==typeof t?t:void 0},lt=function(t,e){return arguments.length<2?rt(st[t])||rt(s[t]):st[t]&&st[t][e]||s[t]&&s[t][e]},ct=Math.ceil,ht=Math.floor,ut=function(t){return isNaN(t=+t)?0:(t>0?ht:ct)(t)},dt=Math.min,ft=function(t){return t>0?dt(ut(t),9007199254740991):0},pt=Math.max,gt=Math.min,vt=function(t,e){var i=ut(t);return i<0?pt(i+e,0):gt(i,e)},bt=function(t){return function(e,i,n){var o,a=m(e),s=ft(a.length),r=vt(n,s);if(t&&i!=i){for(;s>r;)if((o=a[r++])!=o)return!0}else for(;s>r;r++)if((t||r in a)&&a[r]===i)return t||r||0;return!t&&-1}},mt={includes:bt(!0),indexOf:bt(!1)},yt=mt.indexOf,wt=function(t,e){var i,n=m(t),o=0,a=[];for(i in n)!x(Y,i)&&x(n,i)&&a.push(i);for(;e.length>o;)x(n,i=e[o++])&&(~yt(a,i)||a.push(i));return a},St=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],xt=St.concat("length","prototype"),kt={f:Object.getOwnPropertyNames||function(t){return wt(t,xt)}},Ot={f:Object.getOwnPropertySymbols},Ct=lt("Reflect","ownKeys")||function(t){var e=kt.f(I(t)),i=Ot.f;return i?e.concat(i(t)):e},Tt=function(t,e){for(var i=Ct(e),n=E.f,o=A.f,a=0;a<i.length;a++){var s=i[a];x(t,s)||n(t,s,o(e,s))}},Pt=/#|\.prototype\./,At=function(t,e){var i=$t[It(t)];return i==Rt||i!=Et&&("function"==typeof e?r(e):!!e)},It=At.normalize=function(t){return String(t).replace(Pt,".").toLowerCase()},$t=At.data={},Et=At.NATIVE="N",Rt=At.POLYFILL="P",jt=At,_t=A.f,Nt=function(t,e){var i,n,o,a,r,l=t.target,c=t.global,h=t.stat;if(i=c?s:h?s[l]||j(l,{}):(s[l]||{}).prototype)for(n in e){if(a=e[n],o=t.noTargetGet?(r=_t(i,n))&&r.value:i[n],!jt(c?n:l+(h?".":"#")+n,t.forced)&&void 0!==o){if(typeof a==typeof o)continue;Tt(a,o)}(t.sham||o&&o.sham)&&R(a,"sham",!0),at(i,n,a,t)}},Ft=Array.isArray||function(t){return"Array"==p(t)},Dt=function(t){return Object(b(t))},Vt=function(t,e,i){var n=w(e);n in t?E.f(t,n,d(0,i)):t[n]=i},Bt=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())})),Lt=Bt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Ht=U("wks"),Mt=s.Symbol,Ut=Lt?Mt:Mt&&Mt.withoutSetter||W,zt=function(t){return x(Ht,t)||(Bt&&x(Mt,t)?Ht[t]=Mt[t]:Ht[t]=Ut("Symbol."+t)),Ht[t]},qt=zt("species"),Wt=function(t,e){var i;return Ft(t)&&("function"!=typeof(i=t.constructor)||i!==Array&&!Ft(i.prototype)?y(i)&&null===(i=i[qt])&&(i=void 0):i=void 0),new(void 0===i?Array:i)(0===e?0:e)},Gt=lt("navigator","userAgent")||"",Kt=s.process,Yt=Kt&&Kt.versions,Xt=Yt&&Yt.v8;Xt?nt=(it=Xt.split("."))[0]+it[1]:Gt&&(!(it=Gt.match(/Edge\/(\d+)/))||it[1]>=74)&&(it=Gt.match(/Chrome\/(\d+)/))&&(nt=it[1]);var Jt=nt&&+nt,Qt=zt("species"),Zt=function(t){return Jt>=51||!r((function(){var e=[];return(e.constructor={})[Qt]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},te=zt("isConcatSpreadable"),ee=9007199254740991,ie="Maximum allowed index exceeded",ne=Jt>=51||!r((function(){var t=[];return t[te]=!1,t.concat()[0]!==t})),oe=Zt("concat"),ae=function(t){if(!y(t))return!1;var e=t[te];return void 0!==e?!!e:Ft(t)};Nt({target:"Array",proto:!0,forced:!ne||!oe},{concat:function(t){var e,i,n,o,a,s=Dt(this),r=Wt(s,0),l=0;for(e=-1,n=arguments.length;e<n;e++)if(ae(a=-1===e?s:arguments[e])){if(l+(o=ft(a.length))>ee)throw TypeError(ie);for(i=0;i<o;i++,l++)i in a&&Vt(r,l,a[i])}else{if(l>=ee)throw TypeError(ie);Vt(r,l++,a)}return r.length=l,r}});var se=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},re=[].push,le=function(t){var e=1==t,i=2==t,n=3==t,o=4==t,a=6==t,s=7==t,r=5==t||a;return function(l,c,h,u){for(var d,f,p=Dt(l),g=v(p),b=function(t,e,i){if(se(t),void 0===e)return t;switch(i){case 0:return function(){return t.call(e)};case 1:return function(i){return t.call(e,i)};case 2:return function(i,n){return t.call(e,i,n)};case 3:return function(i,n,o){return t.call(e,i,n,o)}}return function(){return t.apply(e,arguments)}}(c,h,3),m=ft(g.length),y=0,w=u||Wt,S=e?w(l,m):i||s?w(l,0):void 0;m>y;y++)if((r||y in g)&&(f=b(d=g[y],y,p),t))if(e)S[y]=f;else if(f)switch(t){case 3:return!0;case 5:return d;case 6:return y;case 2:re.call(S,d)}else switch(t){case 4:return!1;case 7:re.call(S,d)}return a?-1:n||o?o:S}},ce={forEach:le(0),map:le(1),filter:le(2),some:le(3),every:le(4),find:le(5),findIndex:le(6),filterOut:le(7)},he=Object.defineProperty,ue={},de=function(t){throw t},fe=function(t,e){if(x(ue,t))return ue[t];e||(e={});var i=[][t],n=!!x(e,"ACCESSORS")&&e.ACCESSORS,o=x(e,0)?e[0]:de,a=x(e,1)?e[1]:void 0;return ue[t]=!!i&&!r((function(){if(n&&!l)return!0;var t={length:-1};n?he(t,1,{enumerable:!0,get:de}):t[1]=1,i.call(t,o,a)}))},pe=ce.filter,ge=Zt("filter"),ve=fe("filter");Nt({target:"Array",proto:!0,forced:!ge||!ve},{filter:function(t){return pe(this,t,arguments.length>1?arguments[1]:void 0)}});var be,me=Object.keys||function(t){return wt(t,St)},ye=l?Object.defineProperties:function(t,e){I(t);for(var i,n=me(e),o=n.length,a=0;o>a;)E.f(t,i=n[a++],e[i]);return t},we=lt("document","documentElement"),Se=K("IE_PROTO"),xe=function(){},ke=function(t){return"<script>"+t+"</"+"script>"},Oe=function(){try{be=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;Oe=be?function(t){t.write(ke("")),t.close();var e=t.parentWindow.Object;return t=null,e}(be):((e=C("iframe")).style.display="none",we.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(ke("document.F=Object")),t.close(),t.F);for(var i=St.length;i--;)delete Oe.prototype[St[i]];return Oe()};Y[Se]=!0;var Ce=Object.create||function(t,e){var i;return null!==t?(xe.prototype=I(t),i=new xe,xe.prototype=null,i[Se]=t):i=Oe(),void 0===e?i:ye(i,e)},Te=zt("unscopables"),Pe=Array.prototype;null==Pe[Te]&&E.f(Pe,Te,{configurable:!0,value:Ce(null)});var Ae=function(t){Pe[Te][t]=!0},Ie=ce.find,$e="find",Ee=!0,Re=fe($e);$e in[]&&Array(1).find((function(){Ee=!1})),Nt({target:"Array",proto:!0,forced:Ee||!Re},{find:function(t){return Ie(this,t,arguments.length>1?arguments[1]:void 0)}}),Ae($e);var je=ce.findIndex,_e="findIndex",Ne=!0,Fe=fe(_e);_e in[]&&Array(1).findIndex((function(){Ne=!1})),Nt({target:"Array",proto:!0,forced:Ne||!Fe},{findIndex:function(t){return je(this,t,arguments.length>1?arguments[1]:void 0)}}),Ae(_e);var De=function(t,e){var i=[][t];return!!i&&r((function(){i.call(null,e||function(){throw 1},1)}))},Ve=ce.forEach,Be=De("forEach"),Le=fe("forEach"),He=Be&&Le?[].forEach:function(t){return Ve(this,t,arguments.length>1?arguments[1]:void 0)};Nt({target:"Array",proto:!0,forced:[].forEach!=He},{forEach:He});var Me=mt.includes,Ue=fe("indexOf",{ACCESSORS:!0,1:0});Nt({target:"Array",proto:!0,forced:!Ue},{includes:function(t){return Me(this,t,arguments.length>1?arguments[1]:void 0)}}),Ae("includes");var ze=mt.indexOf,qe=[].indexOf,We=!!qe&&1/[1].indexOf(1,-0)<0,Ge=De("indexOf"),Ke=fe("indexOf",{ACCESSORS:!0,1:0});Nt({target:"Array",proto:!0,forced:We||!Ge||!Ke},{indexOf:function(t){return We?qe.apply(this,arguments)||0:ze(this,t,arguments.length>1?arguments[1]:void 0)}});var Ye,Xe,Je,Qe=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Ze=K("IE_PROTO"),ti=Object.prototype,ei=Qe?Object.getPrototypeOf:function(t){return t=Dt(t),x(t,Ze)?t[Ze]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?ti:null},ii=zt("iterator"),ni=!1;[].keys&&("next"in(Je=[].keys())?(Xe=ei(ei(Je)))!==Object.prototype&&(Ye=Xe):ni=!0),null==Ye&&(Ye={}),x(Ye,ii)||R(Ye,ii,(function(){return this}));var oi={IteratorPrototype:Ye,BUGGY_SAFARI_ITERATORS:ni},ai=E.f,si=zt("toStringTag"),ri=function(t,e,i){t&&!x(t=i?t:t.prototype,si)&&ai(t,si,{configurable:!0,value:e})},li=oi.IteratorPrototype,ci=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,i={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(i,[]),e=i instanceof Array}catch(t){}return function(i,n){return I(i),function(t){if(!y(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype")}(n),e?t.call(i,n):i.__proto__=n,i}}():void 0),hi=oi.IteratorPrototype,ui=oi.BUGGY_SAFARI_ITERATORS,di=zt("iterator"),fi="keys",pi="values",gi="entries",vi=function(){return this},bi="Array Iterator",mi=ot.set,yi=ot.getterFor(bi),wi=function(t,e,i,n,o,a,s){!function(t,e,i){var n=e+" Iterator";t.prototype=Ce(li,{next:d(1,i)}),ri(t,n,!1)}(i,e,n);var r,l,c,h=function(t){if(t===o&&v)return v;if(!ui&&t in p)return p[t];switch(t){case fi:case pi:case gi:return function(){return new i(this,t)}}return function(){return new i(this)}},u=e+" Iterator",f=!1,p=t.prototype,g=p[di]||p["@@iterator"]||o&&p[o],v=!ui&&g||h(o),b="Array"==e&&p.entries||g;if(b&&(r=ei(b.call(new t)),hi!==Object.prototype&&r.next&&(ei(r)!==hi&&(ci?ci(r,hi):"function"!=typeof r[di]&&R(r,di,vi)),ri(r,u,!0))),o==pi&&g&&g.name!==pi&&(f=!0,v=function(){return g.call(this)}),p[di]!==v&&R(p,di,v),o)if(l={values:h(pi),keys:a?v:h(fi),entries:h(gi)},s)for(c in l)(ui||f||!(c in p))&&at(p,c,l[c]);else Nt({target:e,proto:!0,forced:ui||f},l);return l}(Array,"Array",(function(t,e){mi(this,{type:bi,target:m(t),index:0,kind:e})}),(function(){var t=yi(this),e=t.target,i=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==i?{value:n,done:!1}:"values"==i?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values");Ae("keys"),Ae("values"),Ae("entries");var Si=[].join,xi=v!=Object,ki=De("join",",");Nt({target:"Array",proto:!0,forced:xi||!ki},{join:function(t){return Si.call(m(this),void 0===t?",":t)}});var Oi=ce.map,Ci=Zt("map"),Ti=fe("map");Nt({target:"Array",proto:!0,forced:!Ci||!Ti},{map:function(t){return Oi(this,t,arguments.length>1?arguments[1]:void 0)}});var Pi=[].reverse,Ai=[1,2];Nt({target:"Array",proto:!0,forced:String(Ai)===String(Ai.reverse())},{reverse:function(){return Ft(this)&&(this.length=this.length),Pi.call(this)}});var Ii=Zt("slice"),$i=fe("slice",{ACCESSORS:!0,0:0,1:2}),Ei=zt("species"),Ri=[].slice,ji=Math.max;Nt({target:"Array",proto:!0,forced:!Ii||!$i},{slice:function(t,e){var i,n,o,a=m(this),s=ft(a.length),r=vt(t,s),l=vt(void 0===e?s:e,s);if(Ft(a)&&("function"!=typeof(i=a.constructor)||i!==Array&&!Ft(i.prototype)?y(i)&&null===(i=i[Ei])&&(i=void 0):i=void 0,i===Array||void 0===i))return Ri.call(a,r,l);for(n=new(void 0===i?Array:i)(ji(l-r,0)),o=0;r<l;r++,o++)r in a&&Vt(n,o,a[r]);return n.length=o,n}});var _i=[],Ni=_i.sort,Fi=r((function(){_i.sort(void 0)})),Di=r((function(){_i.sort(null)})),Vi=De("sort");Nt({target:"Array",proto:!0,forced:Fi||!Di||!Vi},{sort:function(t){return void 0===t?Ni.call(Dt(this)):Ni.call(Dt(this),se(t))}});var Bi=Zt("splice"),Li=fe("splice",{ACCESSORS:!0,0:0,1:2}),Hi=Math.max,Mi=Math.min,Ui=9007199254740991,zi="Maximum allowed length exceeded";Nt({target:"Array",proto:!0,forced:!Bi||!Li},{splice:function(t,e){var i,n,o,a,s,r,l=Dt(this),c=ft(l.length),h=vt(t,c),u=arguments.length;if(0===u?i=n=0:1===u?(i=0,n=c-h):(i=u-2,n=Mi(Hi(ut(e),0),c-h)),c+i-n>Ui)throw TypeError(zi);for(o=Wt(l,n),a=0;a<n;a++)(s=h+a)in l&&Vt(o,a,l[s]);if(o.length=n,i<n){for(a=h;a<c-n;a++)r=a+i,(s=a+n)in l?l[r]=l[s]:delete l[r];for(a=c;a>c-n+i;a--)delete l[a-1]}else if(i>n)for(a=c-n;a>h;a--)r=a+i-1,(s=a+n-1)in l?l[r]=l[s]:delete l[r];for(a=0;a<i;a++)l[a+h]=arguments[a+2];return l.length=c-n+i,o}});var qi=function(t,e,i){var n,o;return ci&&"function"==typeof(n=e.constructor)&&n!==i&&y(o=n.prototype)&&o!==i.prototype&&ci(t,o),t},Wi="\t\n\v\f\r    \u2028\u2029\ufeff",Gi="["+Wi+"]",Ki=RegExp("^"+Gi+Gi+"*"),Yi=RegExp(Gi+Gi+"*$"),Xi=function(t){return function(e){var i=String(b(e));return 1&t&&(i=i.replace(Ki,"")),2&t&&(i=i.replace(Yi,"")),i}},Ji={start:Xi(1),end:Xi(2),trim:Xi(3)},Qi=kt.f,Zi=A.f,tn=E.f,en=Ji.trim,nn="Number",on=s.Number,an=on.prototype,sn=p(Ce(an))==nn,rn=function(t){var e,i,n,o,a,s,r,l,c=w(t,!1);if("string"==typeof c&&c.length>2)if(43===(e=(c=en(c)).charCodeAt(0))||45===e){if(88===(i=c.charCodeAt(2))||120===i)return NaN}else if(48===e){switch(c.charCodeAt(1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+c}for(s=(a=c.slice(2)).length,r=0;r<s;r++)if((l=a.charCodeAt(r))<48||l>o)return NaN;return parseInt(a,n)}return+c};if(jt(nn,!on(" 0o1")||!on("0b1")||on("+0x1"))){for(var ln,cn=function(t){var e=arguments.length<1?0:t,i=this;return i instanceof cn&&(sn?r((function(){an.valueOf.call(i)})):p(i)!=nn)?qi(new on(rn(e)),i,cn):rn(e)},hn=l?Qi(on):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),un=0;hn.length>un;un++)x(on,ln=hn[un])&&!x(cn,ln)&&tn(cn,ln,Zi(on,ln));cn.prototype=an,an.constructor=cn,at(s,nn,cn)}var dn=Object.assign,fn=Object.defineProperty,pn=!dn||r((function(){if(l&&1!==dn({b:1},dn(fn({},"a",{enumerable:!0,get:function(){fn(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},i=Symbol(),n="abcdefghijklmnopqrst";return t[i]=7,n.split("").forEach((function(t){e[t]=t})),7!=dn({},t)[i]||me(dn({},e)).join("")!=n}))?function(t,e){for(var i=Dt(t),n=arguments.length,o=1,a=Ot.f,s=u.f;n>o;)for(var r,c=v(arguments[o++]),h=a?me(c).concat(a(c)):me(c),d=h.length,f=0;d>f;)r=h[f++],l&&!s.call(c,r)||(i[r]=c[r]);return i}:dn;Nt({target:"Object",stat:!0,forced:Object.assign!==pn},{assign:pn});var gn=u.f,vn=function(t){return function(e){for(var i,n=m(e),o=me(n),a=o.length,s=0,r=[];a>s;)i=o[s++],l&&!gn.call(n,i)||r.push(t?[i,n[i]]:n[i]);return r}},bn={entries:vn(!0),values:vn(!1)}.entries;Nt({target:"Object",stat:!0},{entries:function(t){return bn(t)}});var mn={};mn[zt("toStringTag")]="z";var yn="[object z]"===String(mn),wn=zt("toStringTag"),Sn="Arguments"==p(function(){return arguments}()),xn=yn?p:function(t){var e,i,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),wn))?i:Sn?p(e):"Object"==(n=p(e))&&"function"==typeof e.callee?"Arguments":n},kn=yn?{}.toString:function(){return"[object "+xn(this)+"]"};yn||at(Object.prototype,"toString",kn,{unsafe:!0});var On=Ji.trim,Cn=s.parseFloat,Tn=1/Cn(Wi+"-0")!=-1/0?function(t){var e=On(String(t)),i=Cn(e);return 0===i&&"-"==e.charAt(0)?-0:i}:Cn;Nt({global:!0,forced:parseFloat!=Tn},{parseFloat:Tn});var Pn=Ji.trim,An=s.parseInt,In=/^[+-]?0[Xx]/,$n=8!==An(Wi+"08")||22!==An(Wi+"0x16")?function(t,e){var i=Pn(String(t));return An(i,e>>>0||(In.test(i)?16:10))}:An;Nt({global:!0,forced:parseInt!=$n},{parseInt:$n});var En=zt("match"),Rn=function(t){var e;return y(t)&&(void 0!==(e=t[En])?!!e:"RegExp"==p(t))},jn=function(){var t=I(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e};function _n(t,e){return RegExp(t,e)}var Nn={UNSUPPORTED_Y:r((function(){var t=_n("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),BROKEN_CARET:r((function(){var t=_n("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},Fn=zt("species"),Dn=E.f,Vn=kt.f,Bn=ot.set,Ln=zt("match"),Hn=s.RegExp,Mn=Hn.prototype,Un=/a/g,zn=/a/g,qn=new Hn(Un)!==Un,Wn=Nn.UNSUPPORTED_Y;if(l&&jt("RegExp",!qn||Wn||r((function(){return zn[Ln]=!1,Hn(Un)!=Un||Hn(zn)==zn||"/a/i"!=Hn(Un,"i")})))){for(var Gn=function(t,e){var i,n=this instanceof Gn,o=Rn(t),a=void 0===e;if(!n&&o&&t.constructor===Gn&&a)return t;qn?o&&!a&&(t=t.source):t instanceof Gn&&(a&&(e=jn.call(t)),t=t.source),Wn&&(i=!!e&&e.indexOf("y")>-1)&&(e=e.replace(/y/g,""));var s=qi(qn?new Hn(t,e):Hn(t,e),n?this:Mn,Gn);return Wn&&i&&Bn(s,{sticky:i}),s},Kn=function(t){t in Gn||Dn(Gn,t,{configurable:!0,get:function(){return Hn[t]},set:function(e){Hn[t]=e}})},Yn=Vn(Hn),Xn=0;Yn.length>Xn;)Kn(Yn[Xn++]);Mn.constructor=Gn,Gn.prototype=Mn,at(s,"RegExp",Gn)}!function(t){var e=lt(t),i=E.f;l&&e&&!e[Fn]&&i(e,Fn,{configurable:!0,get:function(){return this}})}("RegExp");var Jn=RegExp.prototype.exec,Qn=String.prototype.replace,Zn=Jn,to=function(){var t=/a/,e=/b*/g;return Jn.call(t,"a"),Jn.call(e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),eo=Nn.UNSUPPORTED_Y||Nn.BROKEN_CARET,io=void 0!==/()??/.exec("")[1];(to||io||eo)&&(Zn=function(t){var e,i,n,o,a=this,s=eo&&a.sticky,r=jn.call(a),l=a.source,c=0,h=t;return s&&(-1===(r=r.replace("y","")).indexOf("g")&&(r+="g"),h=String(t).slice(a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&"\n"!==t[a.lastIndex-1])&&(l="(?: "+l+")",h=" "+h,c++),i=new RegExp("^(?:"+l+")",r)),io&&(i=new RegExp("^"+l+"$(?!\\s)",r)),to&&(e=a.lastIndex),n=Jn.call(s?i:a,h),s?n?(n.input=n.input.slice(c),n[0]=n[0].slice(c),n.index=a.lastIndex,a.lastIndex+=n[0].length):a.lastIndex=0:to&&n&&(a.lastIndex=a.global?n.index+n[0].length:e),io&&n&&n.length>1&&Qn.call(n[0],i,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(n[o]=void 0)})),n});var no=Zn;Nt({target:"RegExp",proto:!0,forced:/./.exec!==no},{exec:no});var oo="toString",ao=RegExp.prototype,so=ao.toString,ro=r((function(){return"/a/b"!=so.call({source:"a",flags:"b"})})),lo=so.name!=oo;(ro||lo)&&at(RegExp.prototype,oo,(function(){var t=I(this),e=String(t.source),i=t.flags;return"/"+e+"/"+String(void 0===i&&t instanceof RegExp&&!("flags"in ao)?jn.call(t):i)}),{unsafe:!0});var co=function(t){if(Rn(t))throw TypeError("The method doesn't accept regular expressions");return t},ho=zt("match"),uo=function(t){var e=/./;try{"/./"[t](e)}catch(i){try{return e[ho]=!1,"/./"[t](e)}catch(t){}}return!1};Nt({target:"String",proto:!0,forced:!uo("includes")},{includes:function(t){return!!~String(b(this)).indexOf(co(t),arguments.length>1?arguments[1]:void 0)}});var fo=zt("species"),po=!r((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),go="$0"==="a".replace(/./,"$0"),vo=zt("replace"),bo=!!/./[vo]&&""===/./[vo]("a","$0"),mo=!r((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var i="ab".split(t);return 2!==i.length||"a"!==i[0]||"b"!==i[1]})),yo=function(t,e,i,n){var o=zt(t),a=!r((function(){var e={};return e[o]=function(){return 7},7!=""[t](e)})),s=a&&!r((function(){var e=!1,i=/a/;return"split"===t&&((i={}).constructor={},i.constructor[fo]=function(){return i},i.flags="",i[o]=/./[o]),i.exec=function(){return e=!0,null},i[o](""),!e}));if(!a||!s||"replace"===t&&(!po||!go||bo)||"split"===t&&!mo){var l=/./[o],c=i(o,""[t],(function(t,e,i,n,o){return e.exec===no?a&&!o?{done:!0,value:l.call(e,i,n)}:{done:!0,value:t.call(i,e,n)}:{done:!1}}),{REPLACE_KEEPS_$0:go,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:bo}),h=c[0],u=c[1];at(String.prototype,t,h),at(RegExp.prototype,o,2==e?function(t,e){return u.call(t,this,e)}:function(t){return u.call(t,this)})}n&&R(RegExp.prototype[o],"sham",!0)},wo=function(t){return function(e,i){var n,o,a=String(b(e)),s=ut(i),r=a.length;return s<0||s>=r?t?"":void 0:(n=a.charCodeAt(s))<55296||n>56319||s+1===r||(o=a.charCodeAt(s+1))<56320||o>57343?t?a.charAt(s):n:t?a.slice(s,s+2):o-56320+(n-55296<<10)+65536}},So={codeAt:wo(!1),charAt:wo(!0)}.charAt,xo=function(t,e,i){return e+(i?So(t,e).length:1)},ko=function(t,e){var i=t.exec;if("function"==typeof i){var n=i.call(t,e);if("object"!=typeof n)throw TypeError("RegExp exec method returned something other than an Object or null");return n}if("RegExp"!==p(t))throw TypeError("RegExp#exec called on incompatible receiver");return no.call(t,e)},Oo=Math.max,Co=Math.min,To=Math.floor,Po=/\$([$&'`]|\d\d?|<[^>]*>)/g,Ao=/\$([$&'`]|\d\d?)/g;yo("replace",2,(function(t,e,i,n){var o=n.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,a=n.REPLACE_KEEPS_$0,s=o?"$":"$0";return[function(i,n){var o=b(this),a=null==i?void 0:i[t];return void 0!==a?a.call(i,o,n):e.call(String(o),i,n)},function(t,n){if(!o&&a||"string"==typeof n&&-1===n.indexOf(s)){var l=i(e,t,this,n);if(l.done)return l.value}var c=I(t),h=String(this),u="function"==typeof n;u||(n=String(n));var d=c.global;if(d){var f=c.unicode;c.lastIndex=0}for(var p=[];;){var g=ko(c,h);if(null===g)break;if(p.push(g),!d)break;""===String(g[0])&&(c.lastIndex=xo(h,ft(c.lastIndex),f))}for(var v,b="",m=0,y=0;y<p.length;y++){g=p[y];for(var w=String(g[0]),S=Oo(Co(ut(g.index),h.length),0),x=[],k=1;k<g.length;k++)x.push(void 0===(v=g[k])?v:String(v));var O=g.groups;if(u){var C=[w].concat(x,S,h);void 0!==O&&C.push(O);var T=String(n.apply(void 0,C))}else T=r(w,h,S,x,O,n);S>=m&&(b+=h.slice(m,S)+T,m=S+w.length)}return b+h.slice(m)}];function r(t,i,n,o,a,s){var r=n+t.length,l=o.length,c=Ao;return void 0!==a&&(a=Dt(a),c=Po),e.call(s,c,(function(e,s){var c;switch(s.charAt(0)){case"$":return"$";case"&":return t;case"`":return i.slice(0,n);case"'":return i.slice(r);case"<":c=a[s.slice(1,-1)];break;default:var h=+s;if(0===h)return e;if(h>l){var u=To(h/10);return 0===u?e:u<=l?void 0===o[u-1]?s.charAt(1):o[u-1]+s.charAt(1):e}c=o[h-1]}return void 0===c?"":c}))}}));var Io=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e};yo("search",1,(function(t,e,i){return[function(e){var i=b(this),n=null==e?void 0:e[t];return void 0!==n?n.call(e,i):new RegExp(e)[t](String(i))},function(t){var n=i(e,t,this);if(n.done)return n.value;var o=I(t),a=String(this),s=o.lastIndex;Io(s,0)||(o.lastIndex=0);var r=ko(o,a);return Io(o.lastIndex,s)||(o.lastIndex=s),null===r?-1:r.index}]}));var $o=zt("species"),Eo=[].push,Ro=Math.min,jo=4294967295,_o=!r((function(){return!RegExp(jo,"y")}));yo("split",2,(function(t,e,i){var n;return n="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,i){var n=String(b(this)),o=void 0===i?jo:i>>>0;if(0===o)return[];if(void 0===t)return[n];if(!Rn(t))return e.call(n,t,o);for(var a,s,r,l=[],c=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),h=0,u=new RegExp(t.source,c+"g");(a=no.call(u,n))&&!((s=u.lastIndex)>h&&(l.push(n.slice(h,a.index)),a.length>1&&a.index<n.length&&Eo.apply(l,a.slice(1)),r=a[0].length,h=s,l.length>=o));)u.lastIndex===a.index&&u.lastIndex++;return h===n.length?!r&&u.test("")||l.push(""):l.push(n.slice(h)),l.length>o?l.slice(0,o):l}:"0".split(void 0,0).length?function(t,i){return void 0===t&&0===i?[]:e.call(this,t,i)}:e,[function(e,i){var o=b(this),a=null==e?void 0:e[t];return void 0!==a?a.call(e,o,i):n.call(String(o),e,i)},function(t,o){var a=i(n,t,this,o,n!==e);if(a.done)return a.value;var s=I(t),r=String(this),l=function(t,e){var i,n=I(t).constructor;return void 0===n||null==(i=I(n)[$o])?e:se(i)}(s,RegExp),c=s.unicode,h=(s.ignoreCase?"i":"")+(s.multiline?"m":"")+(s.unicode?"u":"")+(_o?"y":"g"),u=new l(_o?s:"^(?:"+s.source+")",h),d=void 0===o?jo:o>>>0;if(0===d)return[];if(0===r.length)return null===ko(u,r)?[r]:[];for(var f=0,p=0,g=[];p<r.length;){u.lastIndex=_o?p:0;var v,b=ko(u,_o?r:r.slice(p));if(null===b||(v=Ro(ft(u.lastIndex+(_o?0:p)),r.length))===f)p=xo(r,p,c);else{if(g.push(r.slice(f,p)),g.length===d)return g;for(var m=1;m<=b.length-1;m++)if(g.push(b[m]),g.length===d)return g;p=f=v}}return g.push(r.slice(f)),g}]}),!_o);var No=Ji.trim;Nt({target:"String",proto:!0,forced:function(t){return r((function(){return!!Wi[t]()||"…"!="…"[t]()||Wi[t].name!==t}))}("trim")},{trim:function(){return No(this)}});var Fo={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0};for(var Do in Fo){var Vo=s[Do],Bo=Vo&&Vo.prototype;if(Bo&&Bo.forEach!==He)try{R(Bo,"forEach",He)}catch(t){Bo.forEach=He}}var Lo=zt("iterator"),Ho=zt("toStringTag"),Mo=wi.values;for(var Uo in Fo){var zo=s[Uo],qo=zo&&zo.prototype;if(qo){if(qo[Lo]!==Mo)try{R(qo,Lo,Mo)}catch(t){qo[Lo]=Mo}if(qo[Ho]||R(qo,Ho,Uo),Fo[Uo])for(var Wo in wi)if(qo[Wo]!==wi[Wo])try{R(qo,Wo,wi[Wo])}catch(t){qo[Wo]=wi[Wo]}}}function Go(t){return(Go="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ko(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Yo(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Xo(t,e,i){return e&&Yo(t.prototype,e),i&&Yo(t,i),t}function Jo(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var i=[],n=!0,o=!1,a=void 0;try{for(var s,r=t[Symbol.iterator]();!(n=(s=r.next()).done)&&(i.push(s.value),!e||i.length!==e);n=!0);}catch(t){o=!0,a=t}finally{try{n||null==r.return||r.return()}finally{if(o)throw a}}return i}(t,e)||Zo(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qo(t){return function(t){if(Array.isArray(t))return ta(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||Zo(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Zo(t,e){if(t){if("string"==typeof t)return ta(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?ta(t,e):void 0}}function ta(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function ea(t,e){var i;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(i=Zo(t))||e&&t&&"number"==typeof t.length){i&&(t=i);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 a,s=!0,r=!1;return{s:function(){i=t[Symbol.iterator]()},n:function(){var t=i.next();return s=t.done,t},e:function(t){r=!0,a=t},f:function(){try{s||null==i.return||i.return()}finally{if(r)throw a}}}}var ia=4;try{var na=i.default.fn.dropdown.Constructor.VERSION;void 0!==na&&(ia=parseInt(na,10))}catch(t){}try{var oa=bootstrap.Tooltip.VERSION;void 0!==oa&&(ia=parseInt(oa,10))}catch(t){}var aa={3:{iconsPrefix:"glyphicon",icons:{paginationSwitchDown:"glyphicon-collapse-down icon-chevron-down",paginationSwitchUp:"glyphicon-collapse-up icon-chevron-up",refresh:"glyphicon-refresh icon-refresh",toggleOff:"glyphicon-list-alt icon-list-alt",toggleOn:"glyphicon-list-alt icon-list-alt",columns:"glyphicon-th icon-th",detailOpen:"glyphicon-plus icon-plus",detailClose:"glyphicon-minus icon-minus",fullscreen:"glyphicon-fullscreen",search:"glyphicon-search",clearSearch:"glyphicon-trash"},classes:{buttonsPrefix:"btn",buttons:"default",buttonsGroup:"btn-group",buttonsDropdown:"btn-group",pull:"pull",inputGroup:"input-group",inputPrefix:"input-",input:"form-control",paginationDropdown:"btn-group dropdown",dropup:"dropup",dropdownActive:"active",paginationActive:"active",buttonActive:"active"},html:{toolbarDropdown:['<ul class="dropdown-menu" role="menu">',"</ul>"],toolbarDropdownItem:'<li class="dropdown-item-marker" role="menuitem"><label>%s</label></li>',toolbarDropdownSeparator:'<li class="divider"></li>',pageDropdown:['<ul class="dropdown-menu" role="menu">',"</ul>"],pageDropdownItem:'<li role="menuitem" class="%s"><a href="#">%s</a></li>',dropdownCaret:'<span class="caret"></span>',pagination:['<ul class="pagination%s">',"</ul>"],paginationItem:'<li class="page-item%s"><a class="page-link" aria-label="%s" href="javascript:void(0)">%s</a></li>',icon:'<i class="%s %s"></i>',inputGroup:'<div class="input-group">%s<span class="input-group-btn">%s</span></div>',searchInput:'<input class="%s%s" type="text" placeholder="%s">',searchButton:'<button class="%s" type="button" name="search" title="%s">%s %s</button>',searchClearButton:'<button class="%s" type="button" name="clearSearch" title="%s">%s %s</button>'}},4:{iconsPrefix:"fa",icons:{paginationSwitchDown:"fa-caret-square-down",paginationSwitchUp:"fa-caret-square-up",refresh:"fa-sync",toggleOff:"fa-toggle-off",toggleOn:"fa-toggle-on",columns:"fa-th-list",detailOpen:"fa-plus",detailClose:"fa-minus",fullscreen:"fa-arrows-alt",search:"fa-search",clearSearch:"fa-trash"},classes:{buttonsPrefix:"btn",buttons:"secondary",buttonsGroup:"btn-group",buttonsDropdown:"btn-group",pull:"float",inputGroup:"btn-group",inputPrefix:"form-control-",input:"form-control",paginationDropdown:"btn-group dropdown",dropup:"dropup",dropdownActive:"active",paginationActive:"active",buttonActive:"active"},html:{toolbarDropdown:['<div class="dropdown-menu dropdown-menu-right">',"</div>"],toolbarDropdownItem:'<label class="dropdown-item dropdown-item-marker">%s</label>',pageDropdown:['<div class="dropdown-menu">',"</div>"],pageDropdownItem:'<a class="dropdown-item %s" href="#">%s</a>',toolbarDropdownSeparator:'<div class="dropdown-divider"></div>',dropdownCaret:'<span class="caret"></span>',pagination:['<ul class="pagination%s">',"</ul>"],paginationItem:'<li class="page-item%s"><a class="page-link" aria-label="%s" href="javascript:void(0)">%s</a></li>',icon:'<i class="%s %s"></i>',inputGroup:'<div class="input-group">%s<div class="input-group-append">%s</div></div>',searchInput:'<input class="%s%s" type="text" placeholder="%s">',searchButton:'<button class="%s" type="button" name="search" title="%s">%s %s</button>',searchClearButton:'<button class="%s" type="button" name="clearSearch" title="%s">%s %s</button>'}},5:{iconsPrefix:"fa",icons:{paginationSwitchDown:"fa-caret-square-down",paginationSwitchUp:"fa-caret-square-up",refresh:"fa-sync",toggleOff:"fa-toggle-off",toggleOn:"fa-toggle-on",columns:"fa-th-list",detailOpen:"fa-plus",detailClose:"fa-minus",fullscreen:"fa-arrows-alt",search:"fa-search",clearSearch:"fa-trash"},classes:{buttonsPrefix:"btn",buttons:"secondary",buttonsGroup:"btn-group",buttonsDropdown:"btn-group",pull:"float",inputGroup:"btn-group",inputPrefix:"form-control-",input:"form-control",paginationDropdown:"btn-group dropdown",dropup:"dropup",dropdownActive:"active",paginationActive:"active",buttonActive:"active"},html:{dataToggle:"data-bs-toggle",toolbarDropdown:['<div class="dropdown-menu dropdown-menu-right">',"</div>"],toolbarDropdownItem:'<label class="dropdown-item dropdown-item-marker">%s</label>',pageDropdown:['<div class="dropdown-menu">',"</div>"],pageDropdownItem:'<a class="dropdown-item %s" href="#">%s</a>',toolbarDropdownSeparator:'<div class="dropdown-divider"></div>',dropdownCaret:'<span class="caret"></span>',pagination:['<ul class="pagination%s">',"</ul>"],paginationItem:'<li class="page-item%s"><a class="page-link" aria-label="%s" href="javascript:void(0)">%s</a></li>',icon:'<i class="%s %s"></i>',inputGroup:'<div class="input-group">%s<div class="input-group-append">%s</div></div>',searchInput:'<input class="%s%s" type="text" placeholder="%s">',searchButton:'<button class="%s" type="button" name="search" title="%s">%s %s</button>',searchClearButton:'<button class="%s" type="button" name="clearSearch" title="%s">%s %s</button>'}}}[ia],sa={height:void 0,classes:"table table-bordered table-hover",buttons:{},theadClasses:"",headerStyle:function(t){return{}},rowStyle:function(t,e){return{}},rowAttributes:function(t,e){return{}},undefinedText:"-",locale:void 0,virtualScroll:!1,virtualScrollItemHeight:void 0,sortable:!0,sortClass:void 0,silentSort:!0,sortName:void 0,sortOrder:void 0,sortReset:!1,sortStable:!1,rememberOrder:!1,serverSort:!0,customSort:void 0,columns:[[]],data:[],url:void 0,method:"get",cache:!0,contentType:"application/json",dataType:"json",ajax:void 0,ajaxOptions:{},queryParams:function(t){return t},queryParamsType:"limit",responseHandler:function(t){return t},totalField:"total",totalNotFilteredField:"totalNotFiltered",dataField:"rows",footerField:"footer",pagination:!1,paginationParts:["pageInfo","pageSize","pageList"],showExtendedPagination:!1,paginationLoop:!0,sidePagination:"client",totalRows:0,totalNotFiltered:0,pageNumber:1,pageSize:10,pageList:[10,25,50,100],paginationHAlign:"right",paginationVAlign:"bottom",paginationDetailHAlign:"left",paginationPreText:"&lsaquo;",paginationNextText:"&rsaquo;",paginationSuccessivelySize:5,paginationPagesBySide:1,paginationUseIntermediate:!1,search:!1,searchHighlight:!1,searchOnEnterKey:!1,strictSearch:!1,searchSelector:!1,visibleSearch:!1,showButtonIcons:!0,showButtonText:!1,showSearchButton:!1,showSearchClearButton:!1,trimOnSearch:!0,searchAlign:"right",searchTimeOut:500,searchText:"",customSearch:void 0,showHeader:!0,showFooter:!1,footerStyle:function(t){return{}},searchAccentNeutralise:!1,showColumns:!1,showColumnsToggleAll:!1,showColumnsSearch:!1,minimumCountColumns:1,showPaginationSwitch:!1,showRefresh:!1,showToggle:!1,showFullscreen:!1,smartDisplay:!0,escape:!1,filterOptions:{filterAlgorithm:"and"},idField:void 0,selectItemName:"btSelectItem",clickToSelect:!1,ignoreClickToSelectOn:function(t){var e=t.tagName;return["A","BUTTON"].includes(e)},singleSelect:!1,checkboxHeader:!0,maintainMetaData:!1,multipleSelectRow:!1,uniqueId:void 0,cardView:!1,detailView:!1,detailViewIcon:!0,detailViewByClick:!1,detailViewAlign:"left",detailFormatter:function(t,e){return""},detailFilter:function(t,e){return!0},toolbar:void 0,toolbarAlign:"left",buttonsToolbar:void 0,buttonsAlign:"right",buttonsOrder:["paginationSwitch","refresh","toggle","fullscreen","columns"],buttonsPrefix:aa.classes.buttonsPrefix,buttonsClass:aa.classes.buttons,icons:aa.icons,iconSize:void 0,iconsPrefix:aa.iconsPrefix,loadingFontSize:"auto",loadingTemplate:function(t){return'<span class="loading-wrap">\n <span class="loading-text">'.concat(t,'</span>\n <span class="animation-wrap"><span class="animation-dot"></span></span>\n </span>\n ')},onAll:function(t,e){return!1},onClickCell:function(t,e,i,n){return!1},onDblClickCell:function(t,e,i,n){return!1},onClickRow:function(t,e){return!1},onDblClickRow:function(t,e){return!1},onSort:function(t,e){return!1},onCheck:function(t){return!1},onUncheck:function(t){return!1},onCheckAll:function(t){return!1},onUncheckAll:function(t){return!1},onCheckSome:function(t){return!1},onUncheckSome:function(t){return!1},onLoadSuccess:function(t){return!1},onLoadError:function(t){return!1},onColumnSwitch:function(t,e){return!1},onPageChange:function(t,e){return!1},onSearch:function(t){return!1},onToggle:function(t){return!1},onPreBody:function(t){return!1},onPostBody:function(){return!1},onPostHeader:function(){return!1},onPostFooter:function(){return!1},onExpandRow:function(t,e,i){return!1},onCollapseRow:function(t,e){return!1},onRefreshOptions:function(t){return!1},onRefresh:function(t){return!1},onResetView:function(){return!1},onScrollBody:function(){return!1}},ra={formatLoadingMessage:function(){return"Loading, please wait"},formatRecordsPerPage:function(t){return"".concat(t," rows per page")},formatShowingRows:function(t,e,i,n){return void 0!==n&&n>0&&n>i?"Showing ".concat(t," to ").concat(e," of ").concat(i," rows (filtered from ").concat(n," total rows)"):"Showing ".concat(t," to ").concat(e," of ").concat(i," rows")},formatSRPaginationPreText:function(){return"previous page"},formatSRPaginationPageText:function(t){return"to page ".concat(t)},formatSRPaginationNextText:function(){return"next page"},formatDetailPagination:function(t){return"Showing ".concat(t," rows")},formatSearch:function(){return"Search"},formatClearSearch:function(){return"Clear Search"},formatNoMatches:function(){return"No matching records found"},formatPaginationSwitch:function(){return"Hide/Show pagination"},formatPaginationSwitchDown:function(){return"Show pagination"},formatPaginationSwitchUp:function(){return"Hide pagination"},formatRefresh:function(){return"Refresh"},formatToggle:function(){return"Toggle"},formatToggleOn:function(){return"Show card view"},formatToggleOff:function(){return"Hide card view"},formatColumns:function(){return"Columns"},formatColumnsToggleAll:function(){return"Toggle all"},formatFullscreen:function(){return"Fullscreen"},formatAllRows:function(){return"All"}},la={field:void 0,title:void 0,titleTooltip:void 0,class:void 0,width:void 0,widthUnit:"px",rowspan:void 0,colspan:void 0,align:void 0,halign:void 0,falign:void 0,valign:void 0,cellStyle:void 0,radio:!1,checkbox:!1,checkboxEnabled:!0,clickToSelect:!0,showSelectTitle:!1,sortable:!1,sortName:void 0,order:"asc",sorter:void 0,visible:!0,switchable:!0,cardVisible:!0,searchable:!0,formatter:void 0,footerFormatter:void 0,detailFormatter:void 0,searchFormatter:!0,searchHighlightFormatter:!1,escape:!1,events:void 0};Object.assign(sa,ra);var ca={VERSION:"1.18.2",THEME:"bootstrap".concat(ia),CONSTANTS:aa,DEFAULTS:sa,COLUMN_DEFAULTS:la,METHODS:["getOptions","refreshOptions","getData","getSelections","load","append","prepend","remove","removeAll","insertRow","updateRow","getRowByUniqueId","updateByUniqueId","removeByUniqueId","updateCell","updateCellByUniqueId","showRow","hideRow","getHiddenRows","showColumn","hideColumn","getVisibleColumns","getHiddenColumns","showAllColumns","hideAllColumns","mergeCells","checkAll","uncheckAll","checkInvert","check","uncheck","checkBy","uncheckBy","refresh","destroy","resetView","showLoading","hideLoading","togglePagination","toggleFullscreen","toggleView","resetSearch","filterBy","scrollTo","getScrollPosition","selectPage","prevPage","nextPage","toggleDetailView","expandRow","collapseRow","expandRowByUniqueId","collapseRowByUniqueId","expandAllRows","collapseAllRows","updateColumnTitle","updateFormatText"],EVENTS:{"all.bs.table":"onAll","click-row.bs.table":"onClickRow","dbl-click-row.bs.table":"onDblClickRow","click-cell.bs.table":"onClickCell","dbl-click-cell.bs.table":"onDblClickCell","sort.bs.table":"onSort","check.bs.table":"onCheck","uncheck.bs.table":"onUncheck","check-all.bs.table":"onCheckAll","uncheck-all.bs.table":"onUncheckAll","check-some.bs.table":"onCheckSome","uncheck-some.bs.table":"onUncheckSome","load-success.bs.table":"onLoadSuccess","load-error.bs.table":"onLoadError","column-switch.bs.table":"onColumnSwitch","page-change.bs.table":"onPageChange","search.bs.table":"onSearch","toggle.bs.table":"onToggle","pre-body.bs.table":"onPreBody","post-body.bs.table":"onPostBody","post-header.bs.table":"onPostHeader","post-footer.bs.table":"onPostFooter","expand-row.bs.table":"onExpandRow","collapse-row.bs.table":"onCollapseRow","refresh-options.bs.table":"onRefreshOptions","reset-view.bs.table":"onResetView","refresh.bs.table":"onRefresh","scroll-body.bs.table":"onScrollBody"},LOCALES:{en:ra,"en-US":ra}},ha=r((function(){me(1)}));Nt({target:"Object",stat:!0,forced:ha},{keys:function(t){return me(Dt(t))}});var ua,da=A.f,fa="".endsWith,pa=Math.min,ga=uo("endsWith"),va=!(ga||(ua=da(String.prototype,"endsWith"),!ua||ua.writable));Nt({target:"String",proto:!0,forced:!va&&!ga},{endsWith:function(t){var e=String(b(this));co(t);var i=arguments.length>1?arguments[1]:void 0,n=ft(e.length),o=void 0===i?n:pa(ft(i),n),a=String(t);return fa?fa.call(e,a,o):e.slice(o-a.length,o)===a}});var ba=A.f,ma="".startsWith,ya=Math.min,wa=uo("startsWith"),Sa=!wa&&!!function(){var t=ba(String.prototype,"startsWith");return t&&!t.writable}();Nt({target:"String",proto:!0,forced:!Sa&&!wa},{startsWith:function(t){var e=String(b(this));co(t);var i=ft(ya(arguments.length>1?arguments[1]:void 0,e.length)),n=String(t);return ma?ma.call(e,n,i):e.slice(i,i+n.length)===n}});var xa={getSearchInput:function(t){return"string"==typeof t.options.searchSelector?i.default(t.options.searchSelector):t.$toolbar.find(".search input")},sprintf:function(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];var o=!0,a=0,s=t.replace(/%s/g,(function(){var t=i[a++];return void 0===t?(o=!1,""):t}));return o?s:""},isObject:function(t){return t instanceof Object&&!Array.isArray(t)},isEmptyObject:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return 0===Object.entries(t).length&&t.constructor===Object},isNumeric:function(t){return!isNaN(parseFloat(t))&&isFinite(t)},getFieldTitle:function(t,e){var i,n=ea(t);try{for(n.s();!(i=n.n()).done;){var o=i.value;if(o.field===e)return o.title}}catch(t){n.e(t)}finally{n.f()}return""},setFieldIndex:function(t){var e,i=0,n=[],o=ea(t[0]);try{for(o.s();!(e=o.n()).done;){i+=e.value.colspan||1}}catch(t){o.e(t)}finally{o.f()}for(var a=0;a<t.length;a++){n[a]=[];for(var s=0;s<i;s++)n[a][s]=!1}for(var r=0;r<t.length;r++){var l,c=ea(t[r]);try{for(c.s();!(l=c.n()).done;){var h=l.value,u=h.rowspan||1,d=h.colspan||1,f=n[r].indexOf(!1);h.colspanIndex=f,1===d?(h.fieldIndex=f,void 0===h.field&&(h.field=f)):h.colspanGroup=h.colspan;for(var p=0;p<u;p++)for(var g=0;g<d;g++)n[r+p][f+g]=!0}}catch(t){c.e(t)}finally{c.f()}}},normalizeAccent:function(t){return"string"!=typeof t?t:t.normalize("NFD").replace(/[\u0300-\u036f]/g,"")},updateFieldGroup:function(t){var e,i,n=(e=[]).concat.apply(e,Qo(t)),o=ea(t);try{for(o.s();!(i=o.n()).done;){var a,s=ea(i.value);try{for(s.s();!(a=s.n()).done;){var r=a.value;if(r.colspanGroup>1){for(var l=0,c=function(t){n.find((function(e){return e.fieldIndex===t})).visible&&l++},h=r.colspanIndex;h<r.colspanIndex+r.colspanGroup;h++)c(h);r.colspan=l,r.visible=l>0}}}catch(t){s.e(t)}finally{s.f()}}}catch(t){o.e(t)}finally{o.f()}},getScrollBarWidth:function(){if(void 0===this.cachedWidth){var t=i.default("<div/>").addClass("fixed-table-scroll-inner"),e=i.default("<div/>").addClass("fixed-table-scroll-outer");e.append(t),i.default("body").append(e);var n=t[0].offsetWidth;e.css("overflow","scroll");var o=t[0].offsetWidth;n===o&&(o=e[0].clientWidth),e.remove(),this.cachedWidth=n-o}return this.cachedWidth},calculateObjectValue:function(t,e,i,n){var o=e;if("string"==typeof e){var a=e.split(".");if(a.length>1){o=window;var s,r=ea(a);try{for(r.s();!(s=r.n()).done;){o=o[s.value]}}catch(t){r.e(t)}finally{r.f()}}else o=window[e]}return null!==o&&"object"===Go(o)?o:"function"==typeof o?o.apply(t,i||[]):!o&&"string"==typeof e&&this.sprintf.apply(this,[e].concat(Qo(i)))?this.sprintf.apply(this,[e].concat(Qo(i))):n},compareObjects:function(t,e,i){var n=Object.keys(t),o=Object.keys(e);if(i&&n.length!==o.length)return!1;for(var a=0,s=n;a<s.length;a++){var r=s[a];if(o.includes(r)&&t[r]!==e[r])return!1}return!0},escapeHTML:function(t){return"string"==typeof t?t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;").replace(/`/g,"&#x60;"):t},unescapeHTML:function(t){return"string"==typeof t?t.replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&#039;/g,"'").replace(/&#x60;/g,"`"):t},getRealDataAttr:function(t){for(var e=0,i=Object.entries(t);e<i.length;e++){var n=Jo(i[e],2),o=n[0],a=n[1],s=o.split(/(?=[A-Z])/).join("-").toLowerCase();s!==o&&(t[s]=a,delete t[o])}return t},getItemField:function(t,e,i){var n=t;if("string"!=typeof e||t.hasOwnProperty(e))return i?this.escapeHTML(t[e]):t[e];var o,a=ea(e.split("."));try{for(a.s();!(o=a.n()).done;){var s=o.value;n=n&&n[s]}}catch(t){a.e(t)}finally{a.f()}return i?this.escapeHTML(n):n},isIEBrowser:function(){return navigator.userAgent.includes("MSIE ")||/Trident.*rv:11\./.test(navigator.userAgent)},findIndex:function(t,e){var i,n=ea(t);try{for(n.s();!(i=n.n()).done;){var o=i.value;if(JSON.stringify(o)===JSON.stringify(e))return t.indexOf(o)}}catch(t){n.e(t)}finally{n.f()}return-1},trToData:function(t,e){var n=this,o=[],a=[];return e.each((function(e,s){var r=i.default(s),l={};l._id=r.attr("id"),l._class=r.attr("class"),l._data=n.getRealDataAttr(r.data()),l._style=r.attr("style"),r.find(">td,>th").each((function(o,s){for(var r=i.default(s),c=+r.attr("colspan")||1,h=+r.attr("rowspan")||1,u=o;a[e]&&a[e][u];u++);for(var d=u;d<u+c;d++)for(var f=e;f<e+h;f++)a[f]||(a[f]=[]),a[f][d]=!0;var p=t[u].field;l[p]=r.html().trim(),l["_".concat(p,"_id")]=r.attr("id"),l["_".concat(p,"_class")]=r.attr("class"),l["_".concat(p,"_rowspan")]=r.attr("rowspan"),l["_".concat(p,"_colspan")]=r.attr("colspan"),l["_".concat(p,"_title")]=r.attr("title"),l["_".concat(p,"_data")]=n.getRealDataAttr(r.data()),l["_".concat(p,"_style")]=r.attr("style")})),o.push(l)})),o},sort:function(t,e,i,n,o,a){return null==t&&(t=""),null==e&&(e=""),n&&t===e&&(t=o,e=a),this.isNumeric(t)&&this.isNumeric(e)?(t=parseFloat(t))<(e=parseFloat(e))?-1*i:t>e?i:0:t===e?0:("string"!=typeof t&&(t=t.toString()),-1===t.localeCompare(e)?-1*i:i)},getEventName:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e=e||"".concat(+new Date).concat(~~(1e6*Math.random())),"".concat(t,"-").concat(e)},hasDetailViewIcon:function(t){return t.detailView&&t.detailViewIcon&&!t.cardView},getDetailViewIndexOffset:function(t){return this.hasDetailViewIcon(t)&&"right"!==t.detailViewAlign?1:0},checkAutoMergeCells:function(t){var e,i=ea(t);try{for(i.s();!(e=i.n()).done;)for(var n=e.value,o=0,a=Object.keys(n);o<a.length;o++){var s=a[o];if(s.startsWith("_")&&(s.endsWith("_rowspan")||s.endsWith("_colspan")))return!0}}catch(t){i.e(t)}finally{i.f()}return!1},deepCopy:function(t){return void 0===t?t:i.default.extend(!0,Array.isArray(t)?[]:{},t)}},ka=function(){function t(e){var i=this;Ko(this,t),this.rows=e.rows,this.scrollEl=e.scrollEl,this.contentEl=e.contentEl,this.callback=e.callback,this.itemHeight=e.itemHeight,this.cache={},this.scrollTop=this.scrollEl.scrollTop,this.initDOM(this.rows,e.fixedScroll),this.scrollEl.scrollTop=this.scrollTop,this.lastCluster=0;var n=function(){i.lastCluster!==(i.lastCluster=i.getNum())&&(i.initDOM(i.rows),i.callback())};this.scrollEl.addEventListener("scroll",n,!1),this.destroy=function(){i.contentEl.innerHtml="",i.scrollEl.removeEventListener("scroll",n,!1)}}return Xo(t,[{key:"initDOM",value:function(t,e){void 0===this.clusterHeight&&(this.cache.scrollTop=this.scrollEl.scrollTop,this.cache.data=this.contentEl.innerHTML=t[0]+t[0]+t[0],this.getRowsHeight(t));var i=this.initData(t,this.getNum(e)),n=i.rows.join(""),o=this.checkChanges("data",n),a=this.checkChanges("top",i.topOffset),s=this.checkChanges("bottom",i.bottomOffset),r=[];o&&a?(i.topOffset&&r.push(this.getExtra("top",i.topOffset)),r.push(n),i.bottomOffset&&r.push(this.getExtra("bottom",i.bottomOffset)),this.contentEl.innerHTML=r.join(""),e&&(this.contentEl.scrollTop=this.cache.scrollTop)):s&&(this.contentEl.lastChild.style.height="".concat(i.bottomOffset,"px"))}},{key:"getRowsHeight",value:function(){if(void 0===this.itemHeight){var t=this.contentEl.children,e=t[Math.floor(t.length/2)];this.itemHeight=e.offsetHeight}this.blockHeight=50*this.itemHeight,this.clusterRows=200,this.clusterHeight=4*this.blockHeight}},{key:"getNum",value:function(t){return this.scrollTop=t?this.cache.scrollTop:this.scrollEl.scrollTop,Math.floor(this.scrollTop/(this.clusterHeight-this.blockHeight))||0}},{key:"initData",value:function(t,e){if(t.length<50)return{topOffset:0,bottomOffset:0,rowsAbove:0,rows:t};var i=Math.max((this.clusterRows-50)*e,0),n=i+this.clusterRows,o=Math.max(i*this.itemHeight,0),a=Math.max((t.length-n)*this.itemHeight,0),s=[],r=i;o<1&&r++;for(var l=i;l<n;l++)t[l]&&s.push(t[l]);return{topOffset:o,bottomOffset:a,rowsAbove:r,rows:s}}},{key:"checkChanges",value:function(t,e){var i=e!==this.cache[t];return this.cache[t]=e,i}},{key:"getExtra",value:function(t,e){var i=document.createElement("tr");return i.className="virtual-scroll-".concat(t),e&&(i.style.height="".concat(e,"px")),i.outerHTML}}]),t}(),Oa=function(){function t(e,n){Ko(this,t),this.options=n,this.$el=i.default(e),this.$el_=this.$el.clone(),this.timeoutId_=0,this.timeoutFooter_=0}return Xo(t,[{key:"init",value:function(){this.initConstants(),this.initLocale(),this.initContainer(),this.initTable(),this.initHeader(),this.initData(),this.initHiddenRows(),this.initToolbar(),this.initPagination(),this.initBody(),this.initSearchText(),this.initServer()}},{key:"initConstants",value:function(){var t=this.options;this.constants=ca.CONSTANTS,this.constants.theme=i.default.fn.bootstrapTable.theme,this.constants.dataToggle=this.constants.html.dataToggle||"data-toggle";var e=t.buttonsPrefix?"".concat(t.buttonsPrefix,"-"):"";this.constants.buttonsClass=[t.buttonsPrefix,e+t.buttonsClass,xa.sprintf("".concat(e,"%s"),t.iconSize)].join(" ").trim(),this.buttons=xa.calculateObjectValue(this,t.buttons,[],{}),"object"!==Go(this.buttons)&&(this.buttons={}),"string"==typeof t.icons&&(t.icons=xa.calculateObjectValue(null,t.icons))}},{key:"initLocale",value:function(){if(this.options.locale){var t=i.default.fn.bootstrapTable.locales,e=this.options.locale.split(/-|_/);e[0]=e[0].toLowerCase(),e[1]&&(e[1]=e[1].toUpperCase()),t[this.options.locale]?i.default.extend(this.options,t[this.options.locale]):t[e.join("-")]?i.default.extend(this.options,t[e.join("-")]):t[e[0]]&&i.default.extend(this.options,t[e[0]])}}},{key:"initContainer",value:function(){var t=["top","both"].includes(this.options.paginationVAlign)?'<div class="fixed-table-pagination clearfix"></div>':"",e=["bottom","both"].includes(this.options.paginationVAlign)?'<div class="fixed-table-pagination"></div>':"",n=xa.calculateObjectValue(this.options,this.options.loadingTemplate,[this.options.formatLoadingMessage()]);this.$container=i.default('\n <div class="bootstrap-table '.concat(this.constants.theme,'">\n <div class="fixed-table-toolbar"></div>\n ').concat(t,'\n <div class="fixed-table-container">\n <div class="fixed-table-header"><table></table></div>\n <div class="fixed-table-body">\n <div class="fixed-table-loading">\n ').concat(n,'\n </div>\n </div>\n <div class="fixed-table-footer"><table><thead><tr></tr></thead></table></div>\n </div>\n ').concat(e,"\n </div>\n ")),this.$container.insertAfter(this.$el),this.$tableContainer=this.$container.find(".fixed-table-container"),this.$tableHeader=this.$container.find(".fixed-table-header"),this.$tableBody=this.$container.find(".fixed-table-body"),this.$tableLoading=this.$container.find(".fixed-table-loading"),this.$tableFooter=this.$el.find("tfoot"),this.options.buttonsToolbar?this.$toolbar=i.default("body").find(this.options.buttonsToolbar):this.$toolbar=this.$container.find(".fixed-table-toolbar"),this.$pagination=this.$container.find(".fixed-table-pagination"),this.$tableBody.append(this.$el),this.$container.after('<div class="clearfix"></div>'),this.$el.addClass(this.options.classes),this.$tableLoading.addClass(this.options.classes),this.options.height&&(this.$tableContainer.addClass("fixed-height"),this.options.showFooter&&this.$tableContainer.addClass("has-footer"),this.options.classes.split(" ").includes("table-bordered")&&(this.$tableBody.append('<div class="fixed-table-border"></div>'),this.$tableBorder=this.$tableBody.find(".fixed-table-border"),this.$tableLoading.addClass("fixed-table-border")),this.$tableFooter=this.$container.find(".fixed-table-footer"))}},{key:"initTable",value:function(){var e=this,n=[];if(this.$header=this.$el.find(">thead"),this.$header.length?this.options.theadClasses&&this.$header.addClass(this.options.theadClasses):this.$header=i.default('<thead class="'.concat(this.options.theadClasses,'"></thead>')).appendTo(this.$el),this._headerTrClasses=[],this._headerTrStyles=[],this.$header.find("tr").each((function(t,o){var a=i.default(o),s=[];a.find("th").each((function(t,e){var n=i.default(e);void 0!==n.data("field")&&n.data("field","".concat(n.data("field"))),s.push(i.default.extend({},{title:n.html(),class:n.attr("class"),titleTooltip:n.attr("title"),rowspan:n.attr("rowspan")?+n.attr("rowspan"):void 0,colspan:n.attr("colspan")?+n.attr("colspan"):void 0},n.data()))})),n.push(s),a.attr("class")&&e._headerTrClasses.push(a.attr("class")),a.attr("style")&&e._headerTrStyles.push(a.attr("style"))})),Array.isArray(this.options.columns[0])||(this.options.columns=[this.options.columns]),this.options.columns=i.default.extend(!0,[],n,this.options.columns),this.columns=[],this.fieldsColumnsIndex=[],xa.setFieldIndex(this.options.columns),this.options.columns.forEach((function(n,o){n.forEach((function(n,a){var s=i.default.extend({},t.COLUMN_DEFAULTS,n);void 0!==s.fieldIndex&&(e.columns[s.fieldIndex]=s,e.fieldsColumnsIndex[s.field]=s.fieldIndex),e.options.columns[o][a]=s}))})),!this.options.data.length){var o=xa.trToData(this.columns,this.$el.find(">tbody>tr"));o.length&&(this.options.data=o,this.fromHtml=!0)}this.options.pagination&&"server"!==this.options.sidePagination||(this.footerData=xa.trToData(this.columns,this.$el.find(">tfoot>tr"))),this.footerData&&this.$el.find("tfoot").html("<tr></tr>"),!this.options.showFooter||this.options.cardView?this.$tableFooter.hide():this.$tableFooter.show()}},{key:"initHeader",value:function(){var t=this,e={},n=[];this.header={fields:[],styles:[],classes:[],formatters:[],detailFormatters:[],events:[],sorters:[],sortNames:[],cellStyles:[],searchables:[]},xa.updateFieldGroup(this.options.columns),this.options.columns.forEach((function(i,o){var a=[];a.push("<tr".concat(xa.sprintf(' class="%s"',t._headerTrClasses[o])," ").concat(xa.sprintf(' style="%s"',t._headerTrStyles[o]),">"));var s="";if(0===o&&xa.hasDetailViewIcon(t.options)){var r=t.options.columns.length>1?' rowspan="'.concat(t.options.columns.length,'"'):"";s='<th class="detail"'.concat(r,'>\n <div class="fht-cell"></div>\n </th>')}s&&"right"!==t.options.detailViewAlign&&a.push(s),i.forEach((function(i,n){var s=xa.sprintf(' class="%s"',i.class),r=i.widthUnit,l=parseFloat(i.width),c=xa.sprintf("text-align: %s; ",i.halign?i.halign:i.align),h=xa.sprintf("text-align: %s; ",i.align),u=xa.sprintf("vertical-align: %s; ",i.valign);if(u+=xa.sprintf("width: %s; ",!i.checkbox&&!i.radio||l?l?l+r:void 0:i.showSelectTitle?void 0:"36px"),void 0!==i.fieldIndex||i.visible){var d=xa.calculateObjectValue(null,t.options.headerStyle,[i]),f=[],p="";if(d&&d.css)for(var g=0,v=Object.entries(d.css);g<v.length;g++){var b=Jo(v[g],2),m=b[0],y=b[1];f.push("".concat(m,": ").concat(y))}if(d&&d.classes&&(p=xa.sprintf(' class="%s"',i.class?[i.class,d.classes].join(" "):d.classes)),void 0!==i.fieldIndex){if(t.header.fields[i.fieldIndex]=i.field,t.header.styles[i.fieldIndex]=h+u,t.header.classes[i.fieldIndex]=s,t.header.formatters[i.fieldIndex]=i.formatter,t.header.detailFormatters[i.fieldIndex]=i.detailFormatter,t.header.events[i.fieldIndex]=i.events,t.header.sorters[i.fieldIndex]=i.sorter,t.header.sortNames[i.fieldIndex]=i.sortName,t.header.cellStyles[i.fieldIndex]=i.cellStyle,t.header.searchables[i.fieldIndex]=i.searchable,!i.visible)return;if(t.options.cardView&&!i.cardVisible)return;e[i.field]=i}a.push("<th".concat(xa.sprintf(' title="%s"',i.titleTooltip)),i.checkbox||i.radio?xa.sprintf(' class="bs-checkbox %s"',i.class||""):p||s,xa.sprintf(' style="%s"',c+u+f.join("; ")),xa.sprintf(' rowspan="%s"',i.rowspan),xa.sprintf(' colspan="%s"',i.colspan),xa.sprintf(' data-field="%s"',i.field),0===n&&o>0?" data-not-first-th":"",">"),a.push(xa.sprintf('<div class="th-inner %s">',t.options.sortable&&i.sortable?"sortable both":""));var w=t.options.escape?xa.escapeHTML(i.title):i.title,S=w;i.checkbox&&(w="",!t.options.singleSelect&&t.options.checkboxHeader&&(w='<label><input name="btSelectAll" type="checkbox" /><span></span></label>'),t.header.stateField=i.field),i.radio&&(w="",t.header.stateField=i.field),!w&&i.showSelectTitle&&(w+=S),a.push(w),a.push("</div>"),a.push('<div class="fht-cell"></div>'),a.push("</div>"),a.push("</th>")}})),s&&"right"===t.options.detailViewAlign&&a.push(s),a.push("</tr>"),a.length>3&&n.push(a.join(""))})),this.$header.html(n.join("")),this.$header.find("th[data-field]").each((function(t,n){i.default(n).data(e[i.default(n).data("field")])})),this.$container.off("click",".th-inner").on("click",".th-inner",(function(e){var n=i.default(e.currentTarget);if(t.options.detailView&&!n.parent().hasClass("bs-checkbox")&&n.closest(".bootstrap-table")[0]!==t.$container[0])return!1;t.options.sortable&&n.parent().data().sortable&&t.onSort(e)})),this.$header.children().children().off("keypress").on("keypress",(function(e){t.options.sortable&&i.default(e.currentTarget).data().sortable&&(13===(e.keyCode||e.which)&&t.onSort(e))}));var o=xa.getEventName("resize.bootstrap-table",this.$el.attr("id"));i.default(window).off(o),!this.options.showHeader||this.options.cardView?(this.$header.hide(),this.$tableHeader.hide(),this.$tableLoading.css("top",0)):(this.$header.show(),this.$tableHeader.show(),this.$tableLoading.css("top",this.$header.outerHeight()+1),this.getCaret(),i.default(window).on(o,(function(){return t.resetView()}))),this.$selectAll=this.$header.find('[name="btSelectAll"]'),this.$selectAll.off("click").on("click",(function(e){e.stopPropagation();var n=i.default(e.currentTarget).prop("checked");t[n?"checkAll":"uncheckAll"](),t.updateSelected()}))}},{key:"initData",value:function(t,e){"append"===e?this.options.data=this.options.data.concat(t):"prepend"===e?this.options.data=[].concat(t).concat(this.options.data):(t=t||xa.deepCopy(this.options.data),this.options.data=Array.isArray(t)?t:t[this.options.dataField]),this.data=Qo(this.options.data),this.options.sortReset&&(this.unsortedData=Qo(this.data)),"server"!==this.options.sidePagination&&this.initSort()}},{key:"initSort",value:function(){var t=this,e=this.options.sortName,i="desc"===this.options.sortOrder?-1:1,n=this.header.fields.indexOf(this.options.sortName),o=0;-1!==n?(this.options.sortStable&&this.data.forEach((function(t,e){t.hasOwnProperty("_position")||(t._position=e)})),this.options.customSort?xa.calculateObjectValue(this.options,this.options.customSort,[this.options.sortName,this.options.sortOrder,this.data]):this.data.sort((function(o,a){t.header.sortNames[n]&&(e=t.header.sortNames[n]);var s=xa.getItemField(o,e,t.options.escape),r=xa.getItemField(a,e,t.options.escape),l=xa.calculateObjectValue(t.header,t.header.sorters[n],[s,r,o,a]);return void 0!==l?t.options.sortStable&&0===l?i*(o._position-a._position):i*l:xa.sort(s,r,i,t.options.sortStable,o._position,a._position)})),void 0!==this.options.sortClass&&(clearTimeout(o),o=setTimeout((function(){t.$el.removeClass(t.options.sortClass);var e=t.$header.find('[data-field="'.concat(t.options.sortName,'"]')).index();t.$el.find("tr td:nth-child(".concat(e+1,")")).addClass(t.options.sortClass)}),250))):this.options.sortReset&&(this.data=Qo(this.unsortedData))}},{key:"onSort",value:function(t){var e=t.type,n=t.currentTarget,o="keypress"===e?i.default(n):i.default(n).parent(),a=this.$header.find("th").eq(o.index());if(this.$header.add(this.$header_).find("span.order").remove(),this.options.sortName===o.data("field")){var s=this.options.sortOrder;void 0===s?this.options.sortOrder="asc":"asc"===s?this.options.sortOrder="desc":"desc"===this.options.sortOrder&&(this.options.sortOrder=this.options.sortReset?void 0:"asc"),void 0===this.options.sortOrder&&(this.options.sortName=void 0)}else this.options.sortName=o.data("field"),this.options.rememberOrder?this.options.sortOrder="asc"===o.data("order")?"desc":"asc":this.options.sortOrder=this.columns[this.fieldsColumnsIndex[o.data("field")]].sortOrder||this.columns[this.fieldsColumnsIndex[o.data("field")]].order;if(this.trigger("sort",this.options.sortName,this.options.sortOrder),o.add(a).data("order",this.options.sortOrder),this.getCaret(),"server"===this.options.sidePagination&&this.options.serverSort)return this.options.pageNumber=1,void this.initServer(this.options.silentSort);this.initSort(),this.initBody()}},{key:"initToolbar",value:function(){var t,e=this,n=this.options,o=[],a=0,s=0;this.$toolbar.find(".bs-bars").children().length&&i.default("body").append(i.default(n.toolbar)),this.$toolbar.html(""),"string"!=typeof n.toolbar&&"object"!==Go(n.toolbar)||i.default(xa.sprintf('<div class="bs-bars %s-%s"></div>',this.constants.classes.pull,n.toolbarAlign)).appendTo(this.$toolbar).append(i.default(n.toolbar)),o=['<div class="'.concat(["columns","columns-".concat(n.buttonsAlign),this.constants.classes.buttonsGroup,"".concat(this.constants.classes.pull,"-").concat(n.buttonsAlign)].join(" "),'">')],"string"==typeof n.buttonsOrder&&(n.buttonsOrder=n.buttonsOrder.replace(/\[|\]| |'/g,"").split(",")),this.buttons=Object.assign(this.buttons,{paginationSwitch:{text:n.pagination?n.formatPaginationSwitchUp():n.formatPaginationSwitchDown(),icon:n.pagination?n.icons.paginationSwitchDown:n.icons.paginationSwitchUp,render:!1,event:this.togglePagination,attributes:{"aria-label":n.formatPaginationSwitch(),title:n.formatPaginationSwitch()}},refresh:{text:n.formatRefresh(),icon:n.icons.refresh,render:!1,event:this.refresh,attributes:{"aria-label":n.formatRefresh(),title:n.formatRefresh()}},toggle:{text:n.formatToggle(),icon:n.icons.toggleOff,render:!1,event:this.toggleView,attributes:{"aria-label":n.formatToggleOn(),title:n.formatToggleOn()}},fullscreen:{text:n.formatFullscreen(),icon:n.icons.fullscreen,render:!1,event:this.toggleFullscreen,attributes:{"aria-label":n.formatFullscreen(),title:n.formatFullscreen()}},columns:{render:!1,html:function(){var t=[];if(t.push('<div class="keep-open '.concat(e.constants.classes.buttonsDropdown,'" title="').concat(n.formatColumns(),'">\n <button class="').concat(e.constants.buttonsClass,' dropdown-toggle" type="button" ').concat(e.constants.dataToggle,'="dropdown"\n aria-label="Columns" title="').concat(n.formatColumns(),'">\n ').concat(n.showButtonIcons?xa.sprintf(e.constants.html.icon,n.iconsPrefix,n.icons.columns):"","\n ").concat(n.showButtonText?n.formatColumns():"","\n ").concat(e.constants.html.dropdownCaret,"\n </button>\n ").concat(e.constants.html.toolbarDropdown[0])),n.showColumnsSearch&&(t.push(xa.sprintf(e.constants.html.toolbarDropdownItem,xa.sprintf('<input type="text" class="%s" name="columnsSearch" placeholder="%s" autocomplete="off">',e.constants.classes.input,n.formatSearch()))),t.push(e.constants.html.toolbarDropdownSeparator)),n.showColumnsToggleAll){var i=e.getVisibleColumns().length===e.columns.filter((function(t){return!e.isSelectionColumn(t)})).length;t.push(xa.sprintf(e.constants.html.toolbarDropdownItem,xa.sprintf('<input type="checkbox" class="toggle-all" %s> <span>%s</span>',i?'checked="checked"':"",n.formatColumnsToggleAll()))),t.push(e.constants.html.toolbarDropdownSeparator)}var o=0;return e.columns.forEach((function(t){t.visible&&o++})),e.columns.forEach((function(i,a){if(!e.isSelectionColumn(i)&&(!n.cardView||i.cardVisible)){var r=i.visible?' checked="checked"':"",l=o<=n.minimumCountColumns&&r?' disabled="disabled"':"";i.switchable&&(t.push(xa.sprintf(e.constants.html.toolbarDropdownItem,xa.sprintf('<input type="checkbox" data-field="%s" value="%s"%s%s> <span>%s</span>',i.field,a,r,l,i.title))),s++)}})),t.push(e.constants.html.toolbarDropdown[1],"</div>"),t.join("")}}});for(var r={},l=0,c=Object.entries(this.buttons);l<c.length;l++){var h=Jo(c[l],2),u=h[0],d=h[1],f=void 0;if(d.hasOwnProperty("html"))"function"==typeof d.html?f=d.html():"string"==typeof d.html&&(f=d.html);else{if(f='<button class="'.concat(this.constants.buttonsClass,'" type="button" name="').concat(u,'"'),d.hasOwnProperty("attributes"))for(var p=0,g=Object.entries(d.attributes);p<g.length;p++){var v=Jo(g[p],2),b=v[0],m=v[1];f+=" ".concat(b,'="').concat(m,'"')}f+=">",n.showButtonIcons&&d.hasOwnProperty("icon")&&(f+="".concat(xa.sprintf(this.constants.html.icon,n.iconsPrefix,d.icon)," ")),n.showButtonText&&d.hasOwnProperty("text")&&(f+=d.text),f+="</button>"}r[u]=f;var y="show".concat(u.charAt(0).toUpperCase()).concat(u.substring(1)),w=n[y];!(!d.hasOwnProperty("render")||d.hasOwnProperty("render")&&d.render)||void 0!==w&&!0!==w||(n[y]=!0),n.buttonsOrder.includes(u)||n.buttonsOrder.push(u)}var S,x=ea(n.buttonsOrder);try{for(x.s();!(S=x.n()).done;){var k=S.value;n["show".concat(k.charAt(0).toUpperCase()).concat(k.substring(1))]&&o.push(r[k])}}catch(t){x.e(t)}finally{x.f()}o.push("</div>"),(this.showToolbar||o.length>2)&&this.$toolbar.append(o.join(""));for(var O=0,C=Object.entries(this.buttons);O<C.length;O++){var T=Jo(C[O],2),P=T[0],A=T[1];if(A.hasOwnProperty("event")){if("function"==typeof A.event||"string"==typeof A.event)if("continue"===function(){var t="string"==typeof A.event?window[A.event]:A.event;return e.$toolbar.find('button[name="'.concat(P,'"]')).off("click").on("click",(function(){return t.call(e)})),"continue"}())continue;for(var I=function(){var t=Jo(E[$],2),i=t[0],n=t[1],o="string"==typeof n?window[n]:n;e.$toolbar.find('button[name="'.concat(P,'"]')).off(i).on(i,(function(){return o.call(e)}))},$=0,E=Object.entries(A.event);$<E.length;$++)I()}}if(n.showColumns){var R=(t=this.$toolbar.find(".keep-open")).find('input[type="checkbox"]:not(".toggle-all")'),j=t.find('input[type="checkbox"].toggle-all');if(s<=n.minimumCountColumns&&t.find("input").prop("disabled",!0),t.find("li, label").off("click").on("click",(function(t){t.stopImmediatePropagation()})),R.off("click").on("click",(function(t){var n=t.currentTarget,o=i.default(n);e._toggleColumn(o.val(),o.prop("checked"),!1),e.trigger("column-switch",o.data("field"),o.prop("checked")),j.prop("checked",R.filter(":checked").length===e.columns.filter((function(t){return!e.isSelectionColumn(t)})).length)})),j.off("click").on("click",(function(t){var n=t.currentTarget;e._toggleAllColumns(i.default(n).prop("checked"))})),n.showColumnsSearch){var _=t.find('[name="columnsSearch"]'),N=t.find(".dropdown-item-marker");_.on("keyup paste change",(function(t){var e=t.currentTarget,n=i.default(e).val().toLowerCase();N.show(),R.each((function(t,e){var o=i.default(e).parents(".dropdown-item-marker");o.text().toLowerCase().includes(n)||o.hide()}))}))}}var F=function(t){var i="keyup drop blur mouseup";t.off(i).on(i,(function(t){n.searchOnEnterKey&&13!==t.keyCode||[37,38,39,40].includes(t.keyCode)||(clearTimeout(a),a=setTimeout((function(){e.onSearch({currentTarget:t.currentTarget})}),n.searchTimeOut))}))};if((n.search||this.showSearchClearButton)&&"string"!=typeof n.searchSelector){o=[];var D=xa.sprintf(this.constants.html.searchButton,this.constants.buttonsClass,n.formatSearch(),n.showButtonIcons?xa.sprintf(this.constants.html.icon,n.iconsPrefix,n.icons.search):"",n.showButtonText?n.formatSearch():""),V=xa.sprintf(this.constants.html.searchClearButton,this.constants.buttonsClass,n.formatClearSearch(),n.showButtonIcons?xa.sprintf(this.constants.html.icon,n.iconsPrefix,n.icons.clearSearch):"",n.showButtonText?n.formatClearSearch():""),B='<input class="'.concat(this.constants.classes.input,"\n ").concat(xa.sprintf(" %s%s",this.constants.classes.inputPrefix,n.iconSize),'\n search-input" type="search" placeholder="').concat(n.formatSearch(),'" autocomplete="off">'),L=B;if(n.showSearchButton||n.showSearchClearButton){var H=(n.showSearchButton?D:"")+(n.showSearchClearButton?V:"");L=n.search?xa.sprintf(this.constants.html.inputGroup,B,H):H}o.push(xa.sprintf('\n <div class="'.concat(this.constants.classes.pull,"-").concat(n.searchAlign," search ").concat(this.constants.classes.inputGroup,'">\n %s\n </div>\n '),L)),this.$toolbar.append(o.join(""));var M=xa.getSearchInput(this);n.showSearchButton?(this.$toolbar.find(".search button[name=search]").off("click").on("click",(function(){clearTimeout(a),a=setTimeout((function(){e.onSearch({currentTarget:M})}),n.searchTimeOut)})),n.searchOnEnterKey&&F(M)):F(M),n.showSearchClearButton&&this.$toolbar.find(".search button[name=clearSearch]").click((function(){e.resetSearch()}))}else if("string"==typeof n.searchSelector){F(xa.getSearchInput(this))}}},{key:"onSearch",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.currentTarget,n=t.firedByInitSearchText,o=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(void 0!==e&&i.default(e).length&&o){var a=i.default(e).val().trim();if(this.options.trimOnSearch&&i.default(e).val()!==a&&i.default(e).val(a),this.searchText===a)return;(e===xa.getSearchInput(this)[0]||i.default(e).hasClass("search-input"))&&(this.searchText=a,this.options.searchText=a)}n||(this.options.pageNumber=1),this.initSearch(),n?"client"===this.options.sidePagination&&this.updatePagination():this.updatePagination(),this.trigger("search",this.searchText)}},{key:"initSearch",value:function(){var t=this;if(this.filterOptions=this.filterOptions||this.options.filterOptions,"server"!==this.options.sidePagination){if(this.options.customSearch)return this.data=xa.calculateObjectValue(this.options,this.options.customSearch,[this.options.data,this.searchText,this.filterColumns]),void(this.options.sortReset&&(this.unsortedData=Qo(this.data)));var e=this.searchText&&(this.fromHtml?xa.escapeHTML(this.searchText):this.searchText).toLowerCase(),i=xa.isEmptyObject(this.filterColumns)?null:this.filterColumns;"function"==typeof this.filterOptions.filterAlgorithm?this.data=this.options.data.filter((function(e){return t.filterOptions.filterAlgorithm.apply(null,[e,i])})):"string"==typeof this.filterOptions.filterAlgorithm&&(this.data=i?this.options.data.filter((function(e){var n=t.filterOptions.filterAlgorithm;if("and"===n){for(var o in i)if(Array.isArray(i[o])&&!i[o].includes(e[o])||!Array.isArray(i[o])&&e[o]!==i[o])return!1}else if("or"===n){var a=!1;for(var s in i)(Array.isArray(i[s])&&i[s].includes(e[s])||!Array.isArray(i[s])&&e[s]===i[s])&&(a=!0);return a}return!0})):Qo(this.options.data));var n=this.getVisibleFields();this.data=e?this.data.filter((function(i,o){for(var a=0;a<t.header.fields.length;a++)if(t.header.searchables[a]&&(!t.options.visibleSearch||-1!==n.indexOf(t.header.fields[a]))){var s=xa.isNumeric(t.header.fields[a])?parseInt(t.header.fields[a],10):t.header.fields[a],r=t.columns[t.fieldsColumnsIndex[s]],l=void 0;if("string"==typeof s){l=i;for(var c=s.split("."),h=0;h<c.length;h++)null!==l[c[h]]&&(l=l[c[h]])}else l=i[s];if(t.options.searchAccentNeutralise&&(l=xa.normalizeAccent(l)),r&&r.searchFormatter&&(l=xa.calculateObjectValue(r,t.header.formatters[a],[l,i,o,r.field],l)),"string"==typeof l||"number"==typeof l)if(t.options.strictSearch){if("".concat(l).toLowerCase()===e)return!0}else{var u=/(?:(<=|=>|=<|>=|>|<)(?:\s+)?(\d+)?|(\d+)?(\s+)?(<=|=>|=<|>=|>|<))/gm.exec(e),d=!1;if(u){var f=u[1]||"".concat(u[5],"l"),p=u[2]||u[3],g=parseInt(l,10),v=parseInt(p,10);switch(f){case">":case"<l":d=g>v;break;case"<":case">l":d=g<v;break;case"<=":case"=<":case">=l":case"=>l":d=g<=v;break;case">=":case"=>":case"<=l":case"=<l":d=g>=v}}if(d||"".concat(l).toLowerCase().includes(e))return!0}}return!1})):this.data,this.options.sortReset&&(this.unsortedData=Qo(this.data)),this.initSort()}}},{key:"initPagination",value:function(){var t=this,e=this.options;if(e.pagination){this.$pagination.show();var i,n,o,a,s,r,l,c=[],h=!1,u=this.getData({includeHiddenRows:!1}),d=e.pageList;if("string"==typeof d&&(d=d.replace(/\[|\]| /g,"").toLowerCase().split(",")),d=d.map((function(t){return"string"==typeof t?t.toLowerCase()===e.formatAllRows().toLowerCase()||["all","unlimited"].includes(t.toLowerCase())?e.formatAllRows():+t:t})),this.paginationParts=e.paginationParts,"string"==typeof this.paginationParts&&(this.paginationParts=this.paginationParts.replace(/\[|\]| |'/g,"").split(",")),"server"!==e.sidePagination&&(e.totalRows=u.length),this.totalPages=0,e.totalRows&&(e.pageSize===e.formatAllRows()&&(e.pageSize=e.totalRows,h=!0),this.totalPages=1+~~((e.totalRows-1)/e.pageSize),e.totalPages=this.totalPages),this.totalPages>0&&e.pageNumber>this.totalPages&&(e.pageNumber=this.totalPages),this.pageFrom=(e.pageNumber-1)*e.pageSize+1,this.pageTo=e.pageNumber*e.pageSize,this.pageTo>e.totalRows&&(this.pageTo=e.totalRows),this.options.pagination&&"server"!==this.options.sidePagination&&(this.options.totalNotFiltered=this.options.data.length),this.options.showExtendedPagination||(this.options.totalNotFiltered=void 0),(this.paginationParts.includes("pageInfo")||this.paginationParts.includes("pageInfoShort")||this.paginationParts.includes("pageSize"))&&c.push('<div class="'.concat(this.constants.classes.pull,"-").concat(e.paginationDetailHAlign,' pagination-detail">')),this.paginationParts.includes("pageInfo")||this.paginationParts.includes("pageInfoShort")){var f=this.paginationParts.includes("pageInfoShort")?e.formatDetailPagination(e.totalRows):e.formatShowingRows(this.pageFrom,this.pageTo,e.totalRows,e.totalNotFiltered);c.push('<span class="pagination-info">\n '.concat(f,"\n </span>"))}if(this.paginationParts.includes("pageSize")){c.push('<span class="page-list">');var p=['<span class="'.concat(this.constants.classes.paginationDropdown,'">\n <button class="').concat(this.constants.buttonsClass,' dropdown-toggle" type="button" ').concat(this.constants.dataToggle,'="dropdown">\n <span class="page-size">\n ').concat(h?e.formatAllRows():e.pageSize,"\n </span>\n ").concat(this.constants.html.dropdownCaret,"\n </button>\n ").concat(this.constants.html.pageDropdown[0])];d.forEach((function(i,n){var o;(!e.smartDisplay||0===n||d[n-1]<e.totalRows||i===e.formatAllRows())&&(o=h?i===e.formatAllRows()?t.constants.classes.dropdownActive:"":i===e.pageSize?t.constants.classes.dropdownActive:"",p.push(xa.sprintf(t.constants.html.pageDropdownItem,o,i)))})),p.push("".concat(this.constants.html.pageDropdown[1],"</span>")),c.push(e.formatRecordsPerPage(p.join("")))}if((this.paginationParts.includes("pageInfo")||this.paginationParts.includes("pageInfoShort")||this.paginationParts.includes("pageSize"))&&c.push("</span></div>"),this.paginationParts.includes("pageList")){c.push('<div class="'.concat(this.constants.classes.pull,"-").concat(e.paginationHAlign,' pagination">'),xa.sprintf(this.constants.html.pagination[0],xa.sprintf(" pagination-%s",e.iconSize)),xa.sprintf(this.constants.html.paginationItem," page-pre",e.formatSRPaginationPreText(),e.paginationPreText)),this.totalPages<e.paginationSuccessivelySize?(n=1,o=this.totalPages):o=(n=e.pageNumber-e.paginationPagesBySide)+2*e.paginationPagesBySide,e.pageNumber<e.paginationSuccessivelySize-1&&(o=e.paginationSuccessivelySize),e.paginationSuccessivelySize>this.totalPages-n&&(n=n-(e.paginationSuccessivelySize-(this.totalPages-n))+1),n<1&&(n=1),o>this.totalPages&&(o=this.totalPages);var g=Math.round(e.paginationPagesBySide/2),v=function(i){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return xa.sprintf(t.constants.html.paginationItem,n+(i===e.pageNumber?" ".concat(t.constants.classes.paginationActive):""),e.formatSRPaginationPageText(i),i)};if(n>1){var b=e.paginationPagesBySide;for(b>=n&&(b=n-1),i=1;i<=b;i++)c.push(v(i));n-1===b+1?(i=n-1,c.push(v(i))):n-1>b&&(n-2*e.paginationPagesBySide>e.paginationPagesBySide&&e.paginationUseIntermediate?(i=Math.round((n-g)/2+g),c.push(v(i," page-intermediate"))):c.push(xa.sprintf(this.constants.html.paginationItem," page-first-separator disabled","","...")))}for(i=n;i<=o;i++)c.push(v(i));if(this.totalPages>o){var m=this.totalPages-(e.paginationPagesBySide-1);for(o>=m&&(m=o+1),o+1===m-1?(i=o+1,c.push(v(i))):m>o+1&&(this.totalPages-o>2*e.paginationPagesBySide&&e.paginationUseIntermediate?(i=Math.round((this.totalPages-g-o)/2+o),c.push(v(i," page-intermediate"))):c.push(xa.sprintf(this.constants.html.paginationItem," page-last-separator disabled","","..."))),i=m;i<=this.totalPages;i++)c.push(v(i))}c.push(xa.sprintf(this.constants.html.paginationItem," page-next",e.formatSRPaginationNextText(),e.paginationNextText)),c.push(this.constants.html.pagination[1],"</div>")}this.$pagination.html(c.join(""));var y=["bottom","both"].includes(e.paginationVAlign)?" ".concat(this.constants.classes.dropup):"";this.$pagination.last().find(".page-list > span").addClass(y),e.onlyInfoPagination||(a=this.$pagination.find(".page-list a"),s=this.$pagination.find(".page-pre"),r=this.$pagination.find(".page-next"),l=this.$pagination.find(".page-item").not(".page-next, .page-pre, .page-last-separator, .page-first-separator"),this.totalPages<=1&&this.$pagination.find("div.pagination").hide(),e.smartDisplay&&(d.length<2||e.totalRows<=d[0])&&this.$pagination.find("span.page-list").hide(),this.$pagination[this.getData().length?"show":"hide"](),e.paginationLoop||(1===e.pageNumber&&s.addClass("disabled"),e.pageNumber===this.totalPages&&r.addClass("disabled")),h&&(e.pageSize=e.formatAllRows()),a.off("click").on("click",(function(e){return t.onPageListChange(e)})),s.off("click").on("click",(function(e){return t.onPagePre(e)})),r.off("click").on("click",(function(e){return t.onPageNext(e)})),l.off("click").on("click",(function(e){return t.onPageNumber(e)})))}else this.$pagination.hide()}},{key:"updatePagination",value:function(t){t&&i.default(t.currentTarget).hasClass("disabled")||(this.options.maintainMetaData||this.resetRows(),this.initPagination(),this.trigger("page-change",this.options.pageNumber,this.options.pageSize),"server"===this.options.sidePagination?this.initServer():this.initBody())}},{key:"onPageListChange",value:function(t){t.preventDefault();var e=i.default(t.currentTarget);return e.parent().addClass(this.constants.classes.dropdownActive).siblings().removeClass(this.constants.classes.dropdownActive),this.options.pageSize=e.text().toUpperCase()===this.options.formatAllRows().toUpperCase()?this.options.formatAllRows():+e.text(),this.$toolbar.find(".page-size").text(this.options.pageSize),this.updatePagination(t),!1}},{key:"onPagePre",value:function(t){return t.preventDefault(),this.options.pageNumber-1==0?this.options.pageNumber=this.options.totalPages:this.options.pageNumber--,this.updatePagination(t),!1}},{key:"onPageNext",value:function(t){return t.preventDefault(),this.options.pageNumber+1>this.options.totalPages?this.options.pageNumber=1:this.options.pageNumber++,this.updatePagination(t),!1}},{key:"onPageNumber",value:function(t){if(t.preventDefault(),this.options.pageNumber!==+i.default(t.currentTarget).text())return this.options.pageNumber=+i.default(t.currentTarget).text(),this.updatePagination(t),!1}},{key:"initRow",value:function(t,e,i,n){var o=this,a=[],s={},r=[],l="",c={},h=[];if(!(xa.findIndex(this.hiddenRows,t)>-1)){if((s=xa.calculateObjectValue(this.options,this.options.rowStyle,[t,e],s))&&s.css)for(var u=0,d=Object.entries(s.css);u<d.length;u++){var f=Jo(d[u],2),p=f[0],g=f[1];r.push("".concat(p,": ").concat(g))}if(c=xa.calculateObjectValue(this.options,this.options.rowAttributes,[t,e],c))for(var v=0,b=Object.entries(c);v<b.length;v++){var m=Jo(b[v],2),y=m[0],w=m[1];h.push("".concat(y,'="').concat(xa.escapeHTML(w),'"'))}if(t._data&&!xa.isEmptyObject(t._data))for(var S=0,x=Object.entries(t._data);S<x.length;S++){var k=Jo(x[S],2),O=k[0],C=k[1];if("index"===O)return;l+=" data-".concat(O,"='").concat("object"===Go(C)?JSON.stringify(C):C,"'")}a.push("<tr",xa.sprintf(" %s",h.length?h.join(" "):void 0),xa.sprintf(' id="%s"',Array.isArray(t)?void 0:t._id),xa.sprintf(' class="%s"',s.classes||(Array.isArray(t)?void 0:t._class)),xa.sprintf(' style="%s"',Array.isArray(t)?void 0:t._style),' data-index="'.concat(e,'"'),xa.sprintf(' data-uniqueid="%s"',xa.getItemField(t,this.options.uniqueId,!1)),xa.sprintf(' data-has-detail-view="%s"',this.options.detailView&&xa.calculateObjectValue(null,this.options.detailFilter,[e,t])?"true":void 0),xa.sprintf("%s",l),">"),this.options.cardView&&a.push('<td colspan="'.concat(this.header.fields.length,'"><div class="card-views">'));var T="";return xa.hasDetailViewIcon(this.options)&&(T="<td>",xa.calculateObjectValue(null,this.options.detailFilter,[e,t])&&(T+='\n <a class="detail-icon" href="#">\n '.concat(xa.sprintf(this.constants.html.icon,this.options.iconsPrefix,this.options.icons.detailOpen),"\n </a>\n ")),T+="</td>"),T&&"right"!==this.options.detailViewAlign&&a.push(T),this.header.fields.forEach((function(i,n){var s="",l=xa.getItemField(t,i,o.options.escape),c="",h="",u={},d="",f=o.header.classes[n],p="",g="",v="",b="",m="",y="",w=o.columns[n];if((!o.fromHtml&&!o.autoMergeCells||void 0!==l||w.checkbox||w.radio)&&w.visible&&(!o.options.cardView||w.cardVisible)){if(w.escape&&(l=xa.escapeHTML(l)),r.concat([o.header.styles[n]]).length&&(g+="".concat(r.concat([o.header.styles[n]]).join("; "))),t["_".concat(i,"_style")]&&(g+="".concat(t["_".concat(i,"_style")])),g&&(p=' style="'.concat(g,'"')),t["_".concat(i,"_id")]&&(d=xa.sprintf(' id="%s"',t["_".concat(i,"_id")])),t["_".concat(i,"_class")]&&(f=xa.sprintf(' class="%s"',t["_".concat(i,"_class")])),t["_".concat(i,"_rowspan")]&&(b=xa.sprintf(' rowspan="%s"',t["_".concat(i,"_rowspan")])),t["_".concat(i,"_colspan")]&&(m=xa.sprintf(' colspan="%s"',t["_".concat(i,"_colspan")])),t["_".concat(i,"_title")]&&(y=xa.sprintf(' title="%s"',t["_".concat(i,"_title")])),(u=xa.calculateObjectValue(o.header,o.header.cellStyles[n],[l,t,e,i],u)).classes&&(f=' class="'.concat(u.classes,'"')),u.css){for(var S=[],x=0,k=Object.entries(u.css);x<k.length;x++){var O=Jo(k[x],2),C=O[0],T=O[1];S.push("".concat(C,": ").concat(T))}p=' style="'.concat(S.concat(o.header.styles[n]).join("; "),'"')}if(c=xa.calculateObjectValue(w,o.header.formatters[n],[l,t,e,i],l),w.checkbox||w.radio||(c=null==c?o.options.undefinedText:c),w.searchable&&o.searchText&&o.options.searchHighlight){var P="",A=new RegExp("(".concat(o.searchText.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),")"),"gim"),I="<mark>$1</mark>";if(c&&/<(?=.*? .*?\/ ?>|br|hr|input|!--|wbr)[a-z]+.*?>|<([a-z]+).*?<\/\1>/i.test(c)){var $=(new DOMParser).parseFromString(c.toString(),"text/html").documentElement.textContent,E=$.replace(A,I);P=c.replace(new RegExp("(>\\s*)(".concat($,")(\\s*)"),"gm"),"$1".concat(E,"$3"))}else P=c.toString().replace(A,I);c=xa.calculateObjectValue(w,w.searchHighlightFormatter,[c,o.searchText],P)}if(t["_".concat(i,"_data")]&&!xa.isEmptyObject(t["_".concat(i,"_data")]))for(var R=0,j=Object.entries(t["_".concat(i,"_data")]);R<j.length;R++){var _=Jo(j[R],2),N=_[0],F=_[1];if("index"===N)return;v+=" data-".concat(N,'="').concat(F,'"')}if(w.checkbox||w.radio){h=w.checkbox?"checkbox":h,h=w.radio?"radio":h;var D=w.class||"",V=xa.isObject(c)&&c.hasOwnProperty("checked")?c.checked:(!0===c||l)&&!1!==c,B=!w.checkboxEnabled||c&&c.disabled;s=[o.options.cardView?'<div class="card-view '.concat(D,'">'):'<td class="bs-checkbox '.concat(D,'"').concat(f).concat(p,">"),'<label>\n <input\n data-index="'.concat(e,'"\n name="').concat(o.options.selectItemName,'"\n type="').concat(h,'"\n ').concat(xa.sprintf('value="%s"',t[o.options.idField]),"\n ").concat(xa.sprintf('checked="%s"',V?"checked":void 0),"\n ").concat(xa.sprintf('disabled="%s"',B?"disabled":void 0)," />\n <span></span>\n </label>"),o.header.formatters[n]&&"string"==typeof c?c:"",o.options.cardView?"</div>":"</td>"].join(""),t[o.header.stateField]=!0===c||!!l||c&&c.checked}else if(o.options.cardView){var L=o.options.showHeader?'<span class="card-view-title '.concat(u.classes,'"').concat(p,">").concat(xa.getFieldTitle(o.columns,i),"</span>"):"";s='<div class="card-view">'.concat(L,'<span class="card-view-value ').concat(u.classes,'"').concat(p,">").concat(c,"</span></div>"),o.options.smartDisplay&&""===c&&(s='<div class="card-view"></div>')}else s="<td".concat(d).concat(f).concat(p).concat(v).concat(b).concat(m).concat(y,">").concat(c,"</td>");a.push(s)}})),T&&"right"===this.options.detailViewAlign&&a.push(T),this.options.cardView&&a.push("</div></td>"),a.push("</tr>"),a.join("")}}},{key:"initBody",value:function(t){var e=this,n=this.getData();this.trigger("pre-body",n),this.$body=this.$el.find(">tbody"),this.$body.length||(this.$body=i.default("<tbody></tbody>").appendTo(this.$el)),this.options.pagination&&"server"!==this.options.sidePagination||(this.pageFrom=1,this.pageTo=n.length);var o=[],a=i.default(document.createDocumentFragment()),s=!1;this.autoMergeCells=xa.checkAutoMergeCells(n.slice(this.pageFrom-1,this.pageTo));for(var r=this.pageFrom-1;r<this.pageTo;r++){var l=n[r],c=this.initRow(l,r,n,a);s=s||!!c,c&&"string"==typeof c&&(this.options.virtualScroll?o.push(c):a.append(c))}s?this.options.virtualScroll?(this.virtualScroll&&this.virtualScroll.destroy(),this.virtualScroll=new ka({rows:o,fixedScroll:t,scrollEl:this.$tableBody[0],contentEl:this.$body[0],itemHeight:this.options.virtualScrollItemHeight,callback:function(){e.fitHeader(),e.initBodyEvent()}})):this.$body.html(a):this.$body.html('<tr class="no-records-found">'.concat(xa.sprintf('<td colspan="%s">%s</td>',this.getVisibleFields().length+xa.getDetailViewIndexOffset(this.options),this.options.formatNoMatches()),"</tr>")),t||this.scrollTo(0),this.initBodyEvent(),this.updateSelected(),this.initFooter(),this.resetView(),"server"!==this.options.sidePagination&&(this.options.totalRows=n.length),this.trigger("post-body",n)}},{key:"initBodyEvent",value:function(){var t=this;this.$body.find("> tr[data-index] > td").off("click dblclick").on("click dblclick",(function(e){var n=i.default(e.currentTarget),o=n.parent(),a=i.default(e.target).parents(".card-views").children(),s=i.default(e.target).parents(".card-view"),r=o.data("index"),l=t.data[r],c=t.options.cardView?a.index(s):n[0].cellIndex,h=t.getVisibleFields()[c-xa.getDetailViewIndexOffset(t.options)],u=t.columns[t.fieldsColumnsIndex[h]],d=xa.getItemField(l,h,t.options.escape);if(!n.find(".detail-icon").length){if(t.trigger("click"===e.type?"click-cell":"dbl-click-cell",h,d,l,n),t.trigger("click"===e.type?"click-row":"dbl-click-row",l,o,h),"click"===e.type&&t.options.clickToSelect&&u.clickToSelect&&!xa.calculateObjectValue(t.options,t.options.ignoreClickToSelectOn,[e.target])){var f=o.find(xa.sprintf('[name="%s"]',t.options.selectItemName));f.length&&f[0].click()}"click"===e.type&&t.options.detailViewByClick&&t.toggleDetailView(r,t.header.detailFormatters[t.fieldsColumnsIndex[h]])}})).off("mousedown").on("mousedown",(function(e){t.multipleSelectRowCtrlKey=e.ctrlKey||e.metaKey,t.multipleSelectRowShiftKey=e.shiftKey})),this.$body.find("> tr[data-index] > td > .detail-icon").off("click").on("click",(function(e){return e.preventDefault(),t.toggleDetailView(i.default(e.currentTarget).parent().parent().data("index")),!1})),this.$selectItem=this.$body.find(xa.sprintf('[name="%s"]',this.options.selectItemName)),this.$selectItem.off("click").on("click",(function(e){e.stopImmediatePropagation();var n=i.default(e.currentTarget);t._toggleCheck(n.prop("checked"),n.data("index"))})),this.header.events.forEach((function(e,n){var o=e;if(o){"string"==typeof o&&(o=xa.calculateObjectValue(null,o));var a=t.header.fields[n],s=t.getVisibleFields().indexOf(a);if(-1!==s){s+=xa.getDetailViewIndexOffset(t.options);var r=function(e){if(!o.hasOwnProperty(e))return"continue";var n=o[e];t.$body.find(">tr:not(.no-records-found)").each((function(o,r){var l=i.default(r),c=l.find(t.options.cardView?".card-views>.card-view":">td").eq(s),h=e.indexOf(" "),u=e.substring(0,h),d=e.substring(h+1);c.find(d).off(u).on(u,(function(e){var i=l.data("index"),o=t.data[i],s=o[a];n.apply(t,[e,s,o,i])}))}))};for(var l in o)r(l)}}}))}},{key:"initServer",value:function(t,e,n){var o=this,a={},s=this.header.fields.indexOf(this.options.sortName),r={searchText:this.searchText,sortName:this.options.sortName,sortOrder:this.options.sortOrder};if(this.header.sortNames[s]&&(r.sortName=this.header.sortNames[s]),this.options.pagination&&"server"===this.options.sidePagination&&(r.pageSize=this.options.pageSize===this.options.formatAllRows()?this.options.totalRows:this.options.pageSize,r.pageNumber=this.options.pageNumber),n||this.options.url||this.options.ajax){if("limit"===this.options.queryParamsType&&(r={search:r.searchText,sort:r.sortName,order:r.sortOrder},this.options.pagination&&"server"===this.options.sidePagination&&(r.offset=this.options.pageSize===this.options.formatAllRows()?0:this.options.pageSize*(this.options.pageNumber-1),r.limit=this.options.pageSize===this.options.formatAllRows()?this.options.totalRows:this.options.pageSize,0===r.limit&&delete r.limit)),this.options.search&&"server"===this.options.sidePagination&&this.columns.filter((function(t){return!t.searchable})).length){r.searchable=[];var l,c=ea(this.columns);try{for(c.s();!(l=c.n()).done;){var h=l.value;!h.checkbox&&h.searchable&&(this.options.visibleSearch&&h.visible||!this.options.visibleSearch)&&r.searchable.push(h.field)}}catch(t){c.e(t)}finally{c.f()}}if(xa.isEmptyObject(this.filterColumnsPartial)||(r.filter=JSON.stringify(this.filterColumnsPartial,null)),i.default.extend(r,e||{}),!1!==(a=xa.calculateObjectValue(this.options,this.options.queryParams,[r],a))){t||this.showLoading();var u=i.default.extend({},xa.calculateObjectValue(null,this.options.ajaxOptions),{type:this.options.method,url:n||this.options.url,data:"application/json"===this.options.contentType&&"post"===this.options.method?JSON.stringify(a):a,cache:this.options.cache,contentType:this.options.contentType,dataType:this.options.dataType,success:function(e,i,n){var a=xa.calculateObjectValue(o.options,o.options.responseHandler,[e,n],e);o.load(a),o.trigger("load-success",a,n&&n.status,n),t||o.hideLoading(),"server"===o.options.sidePagination&&a[o.options.totalField]>0&&!a[o.options.dataField].length&&o.updatePagination()},error:function(e){var i=[];"server"===o.options.sidePagination&&((i={})[o.options.totalField]=0,i[o.options.dataField]=[]),o.load(i),o.trigger("load-error",e&&e.status,e),t||o.$tableLoading.hide()}});return this.options.ajax?xa.calculateObjectValue(this,this.options.ajax,[u],null):(this._xhr&&4!==this._xhr.readyState&&this._xhr.abort(),this._xhr=i.default.ajax(u)),a}}}},{key:"initSearchText",value:function(){if(this.options.search&&(this.searchText="",""!==this.options.searchText)){var t=xa.getSearchInput(this);t.val(this.options.searchText),this.onSearch({currentTarget:t,firedByInitSearchText:!0})}}},{key:"getCaret",value:function(){var t=this;this.$header.find("th").each((function(e,n){i.default(n).find(".sortable").removeClass("desc asc").addClass(i.default(n).data("field")===t.options.sortName?t.options.sortOrder:"both")}))}},{key:"updateSelected",value:function(){var t=this.$selectItem.filter(":enabled").length&&this.$selectItem.filter(":enabled").length===this.$selectItem.filter(":enabled").filter(":checked").length;this.$selectAll.add(this.$selectAll_).prop("checked",t),this.$selectItem.each((function(t,e){i.default(e).closest("tr")[i.default(e).prop("checked")?"addClass":"removeClass"]("selected")}))}},{key:"updateRows",value:function(){var t=this;this.$selectItem.each((function(e,n){t.data[i.default(n).data("index")][t.header.stateField]=i.default(n).prop("checked")}))}},{key:"resetRows",value:function(){var t,e=ea(this.data);try{for(e.s();!(t=e.n()).done;){var i=t.value;this.$selectAll.prop("checked",!1),this.$selectItem.prop("checked",!1),this.header.stateField&&(i[this.header.stateField]=!1)}}catch(t){e.e(t)}finally{e.f()}this.initHiddenRows()}},{key:"trigger",value:function(e){for(var n,o,a="".concat(e,".bs.table"),s=arguments.length,r=new Array(s>1?s-1:0),l=1;l<s;l++)r[l-1]=arguments[l];(n=this.options)[t.EVENTS[a]].apply(n,[].concat(r,[this])),this.$el.trigger(i.default.Event(a,{sender:this}),r),(o=this.options).onAll.apply(o,[a].concat([].concat(r,[this]))),this.$el.trigger(i.default.Event("all.bs.table",{sender:this}),[a,r])}},{key:"resetHeader",value:function(){var t=this;clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout((function(){return t.fitHeader()}),this.$el.is(":hidden")?100:0)}},{key:"fitHeader",value:function(){var t=this;if(this.$el.is(":hidden"))this.timeoutId_=setTimeout((function(){return t.fitHeader()}),100);else{var e=this.$tableBody.get(0),n=e.scrollWidth>e.clientWidth&&e.scrollHeight>e.clientHeight+this.$header.outerHeight()?xa.getScrollBarWidth():0;this.$el.css("margin-top",-this.$header.outerHeight());var o=i.default(":focus");if(o.length>0){var a=o.parents("th");if(a.length>0){var s=a.attr("data-field");if(void 0!==s){var r=this.$header.find("[data-field='".concat(s,"']"));r.length>0&&r.find(":input").addClass("focus-temp")}}}this.$header_=this.$header.clone(!0,!0),this.$selectAll_=this.$header_.find('[name="btSelectAll"]'),this.$tableHeader.css("margin-right",n).find("table").css("width",this.$el.outerWidth()).html("").attr("class",this.$el.attr("class")).append(this.$header_),this.$tableLoading.css("width",this.$el.outerWidth());var l=i.default(".focus-temp:visible:eq(0)");l.length>0&&(l.focus(),this.$header.find(".focus-temp").removeClass("focus-temp")),this.$header.find("th[data-field]").each((function(e,n){t.$header_.find(xa.sprintf('th[data-field="%s"]',i.default(n).data("field"))).data(i.default(n).data())}));for(var c=this.getVisibleFields(),h=this.$header_.find("th"),u=this.$body.find(">tr:not(.no-records-found,.virtual-scroll-top)").eq(0);u.length&&u.find('>td[colspan]:not([colspan="1"])').length;)u=u.next();var d=u.find("> *").length;u.find("> *").each((function(e,n){var o=i.default(n);if(xa.hasDetailViewIcon(t.options)&&(0===e&&"right"!==t.options.detailViewAlign||e===d-1&&"right"===t.options.detailViewAlign)){var a=h.filter(".detail"),s=a.innerWidth()-a.find(".fht-cell").width();a.find(".fht-cell").width(o.innerWidth()-s)}else{var r=e-xa.getDetailViewIndexOffset(t.options),l=t.$header_.find(xa.sprintf('th[data-field="%s"]',c[r]));l.length>1&&(l=i.default(h[o[0].cellIndex]));var u=l.innerWidth()-l.find(".fht-cell").width();l.find(".fht-cell").width(o.innerWidth()-u)}})),this.horizontalScroll(),this.trigger("post-header")}}},{key:"initFooter",value:function(){if(this.options.showFooter&&!this.options.cardView){var t=this.getData(),e=[],i="";xa.hasDetailViewIcon(this.options)&&(i='<th class="detail"><div class="th-inner"></div><div class="fht-cell"></div></th>'),i&&"right"!==this.options.detailViewAlign&&e.push(i);var n,o=ea(this.columns);try{for(o.s();!(n=o.n()).done;){var a,s,r=n.value,l=[],c={},h=xa.sprintf(' class="%s"',r.class);if(!(!r.visible||this.footerData&&this.footerData.length>0&&!(r.field in this.footerData[0]))){if(this.options.cardView&&!r.cardVisible)return;if(a=xa.sprintf("text-align: %s; ",r.falign?r.falign:r.align),s=xa.sprintf("vertical-align: %s; ",r.valign),(c=xa.calculateObjectValue(null,this.options.footerStyle,[r]))&&c.css)for(var u=0,d=Object.entries(c.css);u<d.length;u++){var f=Jo(d[u],2),p=f[0],g=f[1];l.push("".concat(p,": ").concat(g))}c&&c.classes&&(h=xa.sprintf(' class="%s"',r.class?[r.class,c.classes].join(" "):c.classes)),e.push("<th",h,xa.sprintf(' style="%s"',a+s+l.concat().join("; ")));var v=0;this.footerData&&this.footerData.length>0&&(v=this.footerData[0]["_".concat(r.field,"_colspan")]||0),v&&e.push(' colspan="'.concat(v,'" ')),e.push(">"),e.push('<div class="th-inner">');var b="";this.footerData&&this.footerData.length>0&&(b=this.footerData[0][r.field]||""),e.push(xa.calculateObjectValue(r,r.footerFormatter,[t,b],b)),e.push("</div>"),e.push('<div class="fht-cell"></div>'),e.push("</div>"),e.push("</th>")}}}catch(t){o.e(t)}finally{o.f()}i&&"right"===this.options.detailViewAlign&&e.push(i),this.options.height||this.$tableFooter.length||(this.$el.append("<tfoot><tr></tr></tfoot>"),this.$tableFooter=this.$el.find("tfoot")),this.$tableFooter.find("tr").html(e.join("")),this.trigger("post-footer",this.$tableFooter)}}},{key:"fitFooter",value:function(){var t=this;if(this.$el.is(":hidden"))setTimeout((function(){return t.fitFooter()}),100);else{var e=this.$tableBody.get(0),n=e.scrollWidth>e.clientWidth&&e.scrollHeight>e.clientHeight+this.$header.outerHeight()?xa.getScrollBarWidth():0;this.$tableFooter.css("margin-right",n).find("table").css("width",this.$el.outerWidth()).attr("class",this.$el.attr("class"));var o=this.$tableFooter.find("th"),a=this.$body.find(">tr:first-child:not(.no-records-found)");for(o.find(".fht-cell").width("auto");a.length&&a.find('>td[colspan]:not([colspan="1"])').length;)a=a.next();var s=a.find("> *").length;a.find("> *").each((function(e,n){var a=i.default(n);if(xa.hasDetailViewIcon(t.options)&&(0===e&&"left"===t.options.detailViewAlign||e===s-1&&"right"===t.options.detailViewAlign)){var r=o.filter(".detail"),l=r.innerWidth()-r.find(".fht-cell").width();r.find(".fht-cell").width(a.innerWidth()-l)}else{var c=o.eq(e),h=c.innerWidth()-c.find(".fht-cell").width();c.find(".fht-cell").width(a.innerWidth()-h)}})),this.horizontalScroll()}}},{key:"horizontalScroll",value:function(){var t=this;this.$tableBody.off("scroll").on("scroll",(function(){var e=t.$tableBody.scrollLeft();t.options.showHeader&&t.options.height&&t.$tableHeader.scrollLeft(e),t.options.showFooter&&!t.options.cardView&&t.$tableFooter.scrollLeft(e),t.trigger("scroll-body",t.$tableBody)}))}},{key:"getVisibleFields",value:function(){var t,e=[],i=ea(this.header.fields);try{for(i.s();!(t=i.n()).done;){var n=t.value,o=this.columns[this.fieldsColumnsIndex[n]];o&&o.visible&&e.push(n)}}catch(t){i.e(t)}finally{i.f()}return e}},{key:"initHiddenRows",value:function(){this.hiddenRows=[]}},{key:"getOptions",value:function(){var t=i.default.extend({},this.options);return delete t.data,i.default.extend(!0,{},t)}},{key:"refreshOptions",value:function(t){xa.compareObjects(this.options,t,!0)||(this.options=i.default.extend(this.options,t),this.trigger("refresh-options",this.options),this.destroy(),this.init())}},{key:"getData",value:function(t){var e=this,i=this.options.data;if(!(this.searchText||this.options.customSearch||void 0!==this.options.sortName||this.enableCustomSort)&&xa.isEmptyObject(this.filterColumns)&&xa.isEmptyObject(this.filterColumnsPartial)||t&&t.unfiltered||(i=this.data),t&&t.useCurrentPage&&(i=i.slice(this.pageFrom-1,this.pageTo)),t&&!t.includeHiddenRows){var n=this.getHiddenRows();i=i.filter((function(t){return-1===xa.findIndex(n,t)}))}return t&&t.formatted&&i.forEach((function(t){for(var i=0,n=Object.entries(t);i<n.length;i++){var o=Jo(n[i],2),a=o[0],s=o[1],r=e.columns[e.fieldsColumnsIndex[a]];if(!r)return;t[a]=xa.calculateObjectValue(r,e.header.formatters[r.fieldIndex],[s,t,t.index,r.field],s)}})),i}},{key:"getSelections",value:function(){var t=this;return(this.options.maintainMetaData?this.options.data:this.data).filter((function(e){return!0===e[t.header.stateField]}))}},{key:"load",value:function(t){var e,i=t;this.options.pagination&&"server"===this.options.sidePagination&&(this.options.totalRows=i[this.options.totalField],this.options.totalNotFiltered=i[this.options.totalNotFilteredField],this.footerData=i[this.options.footerField]?[i[this.options.footerField]]:void 0),e=i.fixedScroll,i=Array.isArray(i)?i:i[this.options.dataField],this.initData(i),this.initSearch(),this.initPagination(),this.initBody(e)}},{key:"append",value:function(t){this.initData(t,"append"),this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0)}},{key:"prepend",value:function(t){this.initData(t,"prepend"),this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0)}},{key:"remove",value:function(t){for(var e=0,i=this.options.data.length-1;i>=0;i--){var n=this.options.data[i];(n.hasOwnProperty(t.field)||"$index"===t.field)&&((!n.hasOwnProperty(t.field)&&"$index"===t.field&&t.values.includes(i)||t.values.includes(n[t.field]))&&(e++,this.options.data.splice(i,1)))}e&&("server"===this.options.sidePagination&&(this.options.totalRows-=e,this.data=Qo(this.options.data)),this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0))}},{key:"removeAll",value:function(){this.options.data.length>0&&(this.options.data.splice(0,this.options.data.length),this.initSearch(),this.initPagination(),this.initBody(!0))}},{key:"insertRow",value:function(t){t.hasOwnProperty("index")&&t.hasOwnProperty("row")&&(this.options.data.splice(t.index,0,t.row),this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0))}},{key:"updateRow",value:function(t){var e,n=ea(Array.isArray(t)?t:[t]);try{for(n.s();!(e=n.n()).done;){var o=e.value;o.hasOwnProperty("index")&&o.hasOwnProperty("row")&&(o.hasOwnProperty("replace")&&o.replace?this.options.data[o.index]=o.row:i.default.extend(this.options.data[o.index],o.row))}}catch(t){n.e(t)}finally{n.f()}this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0)}},{key:"getRowByUniqueId",value:function(t){var e,i,n,o=this.options.uniqueId,a=t,s=null;for(e=this.options.data.length-1;e>=0;e--){if((i=this.options.data[e]).hasOwnProperty(o))n=i[o];else{if(!i._data||!i._data.hasOwnProperty(o))continue;n=i._data[o]}if("string"==typeof n?a=a.toString():"number"==typeof n&&(Number(n)===n&&n%1==0?a=parseInt(a):n===Number(n)&&0!==n&&(a=parseFloat(a))),n===a){s=i;break}}return s}},{key:"updateByUniqueId",value:function(t){var e,n=ea(Array.isArray(t)?t:[t]);try{for(n.s();!(e=n.n()).done;){var o=e.value;if(o.hasOwnProperty("id")&&o.hasOwnProperty("row")){var a=this.options.data.indexOf(this.getRowByUniqueId(o.id));-1!==a&&(o.hasOwnProperty("replace")&&o.replace?this.options.data[a]=o.row:i.default.extend(this.options.data[a],o.row))}}}catch(t){n.e(t)}finally{n.f()}this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0)}},{key:"removeByUniqueId",value:function(t){var e=this.options.data.length,i=this.getRowByUniqueId(t);i&&this.options.data.splice(this.options.data.indexOf(i),1),e!==this.options.data.length&&("server"===this.options.sidePagination&&(this.options.totalRows-=1,this.data=Qo(this.options.data)),this.initSearch(),this.initPagination(),this.initBody(!0))}},{key:"updateCell",value:function(t){t.hasOwnProperty("index")&&t.hasOwnProperty("field")&&t.hasOwnProperty("value")&&(this.data[t.index][t.field]=t.value,!1!==t.reinit&&(this.initSort(),this.initBody(!0)))}},{key:"updateCellByUniqueId",value:function(t){var e=this;(Array.isArray(t)?t:[t]).forEach((function(t){var i=t.id,n=t.field,o=t.value,a=e.options.data.indexOf(e.getRowByUniqueId(i));-1!==a&&(e.options.data[a][n]=o)})),!1!==t.reinit&&(this.initSort(),this.initBody(!0))}},{key:"showRow",value:function(t){this._toggleRow(t,!0)}},{key:"hideRow",value:function(t){this._toggleRow(t,!1)}},{key:"_toggleRow",value:function(t,e){var i;if(t.hasOwnProperty("index")?i=this.getData()[t.index]:t.hasOwnProperty("uniqueId")&&(i=this.getRowByUniqueId(t.uniqueId)),i){var n=xa.findIndex(this.hiddenRows,i);e||-1!==n?e&&n>-1&&this.hiddenRows.splice(n,1):this.hiddenRows.push(i),this.initBody(!0),this.initPagination()}}},{key:"getHiddenRows",value:function(t){if(t)return this.initHiddenRows(),this.initBody(!0),void this.initPagination();var e,i=[],n=ea(this.getData());try{for(n.s();!(e=n.n()).done;){var o=e.value;this.hiddenRows.includes(o)&&i.push(o)}}catch(t){n.e(t)}finally{n.f()}return this.hiddenRows=i,i}},{key:"showColumn",value:function(t){var e=this;(Array.isArray(t)?t:[t]).forEach((function(t){e._toggleColumn(e.fieldsColumnsIndex[t],!0,!0)}))}},{key:"hideColumn",value:function(t){var e=this;(Array.isArray(t)?t:[t]).forEach((function(t){e._toggleColumn(e.fieldsColumnsIndex[t],!1,!0)}))}},{key:"_toggleColumn",value:function(t,e,i){if(-1!==t&&this.columns[t].visible!==e&&(this.columns[t].visible=e,this.initHeader(),this.initSearch(),this.initPagination(),this.initBody(),this.options.showColumns)){var n=this.$toolbar.find('.keep-open input:not(".toggle-all")').prop("disabled",!1);i&&n.filter(xa.sprintf('[value="%s"]',t)).prop("checked",e),n.filter(":checked").length<=this.options.minimumCountColumns&&n.filter(":checked").prop("disabled",!0)}}},{key:"getVisibleColumns",value:function(){var t=this;return this.columns.filter((function(e){return e.visible&&!t.isSelectionColumn(e)}))}},{key:"getHiddenColumns",value:function(){return this.columns.filter((function(t){return!t.visible}))}},{key:"isSelectionColumn",value:function(t){return t.radio||t.checkbox}},{key:"showAllColumns",value:function(){this._toggleAllColumns(!0)}},{key:"hideAllColumns",value:function(){this._toggleAllColumns(!1)}},{key:"_toggleAllColumns",value:function(t){var e,n=this,o=ea(this.columns.slice().reverse());try{for(o.s();!(e=o.n()).done;){var a=e.value;if(a.switchable){if(!t&&this.options.showColumns&&this.getVisibleColumns().length===this.options.minimumCountColumns)continue;a.visible=t}}}catch(t){o.e(t)}finally{o.f()}if(this.initHeader(),this.initSearch(),this.initPagination(),this.initBody(),this.options.showColumns){var s=this.$toolbar.find('.keep-open input[type="checkbox"]:not(".toggle-all")').prop("disabled",!1);t?s.prop("checked",t):s.get().reverse().forEach((function(e){s.filter(":checked").length>n.options.minimumCountColumns&&i.default(e).prop("checked",t)})),s.filter(":checked").length<=this.options.minimumCountColumns&&s.filter(":checked").prop("disabled",!0)}}},{key:"mergeCells",value:function(t){var e,i,n=t.index,o=this.getVisibleFields().indexOf(t.field),a=t.rowspan||1,s=t.colspan||1,r=this.$body.find(">tr");o+=xa.getDetailViewIndexOffset(this.options);var l=r.eq(n).find(">td").eq(o);if(!(n<0||o<0||n>=this.data.length)){for(e=n;e<n+a;e++)for(i=o;i<o+s;i++)r.eq(e).find(">td").eq(i).hide();l.attr("rowspan",a).attr("colspan",s).show()}}},{key:"checkAll",value:function(){this._toggleCheckAll(!0)}},{key:"uncheckAll",value:function(){this._toggleCheckAll(!1)}},{key:"_toggleCheckAll",value:function(t){var e=this.getSelections();this.$selectAll.add(this.$selectAll_).prop("checked",t),this.$selectItem.filter(":enabled").prop("checked",t),this.updateRows(),this.updateSelected();var i=this.getSelections();t?this.trigger("check-all",i,e):this.trigger("uncheck-all",i,e)}},{key:"checkInvert",value:function(){var t=this.$selectItem.filter(":enabled"),e=t.filter(":checked");t.each((function(t,e){i.default(e).prop("checked",!i.default(e).prop("checked"))})),this.updateRows(),this.updateSelected(),this.trigger("uncheck-some",e),e=this.getSelections(),this.trigger("check-some",e)}},{key:"check",value:function(t){this._toggleCheck(!0,t)}},{key:"uncheck",value:function(t){this._toggleCheck(!1,t)}},{key:"_toggleCheck",value:function(t,e){var i=this.$selectItem.filter('[data-index="'.concat(e,'"]')),n=this.data[e];if(i.is(":radio")||this.options.singleSelect||this.options.multipleSelectRow&&!this.multipleSelectRowCtrlKey&&!this.multipleSelectRowShiftKey){var o,a=ea(this.options.data);try{for(a.s();!(o=a.n()).done;){o.value[this.header.stateField]=!1}}catch(t){a.e(t)}finally{a.f()}this.$selectItem.filter(":checked").not(i).prop("checked",!1)}if(n[this.header.stateField]=t,this.options.multipleSelectRow){if(this.multipleSelectRowShiftKey&&this.multipleSelectRowLastSelectedIndex>=0)for(var s=Jo(this.multipleSelectRowLastSelectedIndex<e?[this.multipleSelectRowLastSelectedIndex,e]:[e,this.multipleSelectRowLastSelectedIndex],2),r=s[0],l=s[1],c=r+1;c<l;c++)this.data[c][this.header.stateField]=!0,this.$selectItem.filter('[data-index="'.concat(c,'"]')).prop("checked",!0);this.multipleSelectRowCtrlKey=!1,this.multipleSelectRowShiftKey=!1,this.multipleSelectRowLastSelectedIndex=t?e:-1}i.prop("checked",t),this.updateSelected(),this.trigger(t?"check":"uncheck",this.data[e],i)}},{key:"checkBy",value:function(t){this._toggleCheckBy(!0,t)}},{key:"uncheckBy",value:function(t){this._toggleCheckBy(!1,t)}},{key:"_toggleCheckBy",value:function(t,e){var i=this;if(e.hasOwnProperty("field")&&e.hasOwnProperty("values")){var n=[];this.data.forEach((function(o,a){if(!o.hasOwnProperty(e.field))return!1;if(e.values.includes(o[e.field])){var s=i.$selectItem.filter(":enabled").filter(xa.sprintf('[data-index="%s"]',a));if(!(s=t?s.not(":checked"):s.filter(":checked")).length)return;s.prop("checked",t),o[i.header.stateField]=t,n.push(o),i.trigger(t?"check":"uncheck",o,s)}})),this.updateSelected(),this.trigger(t?"check-some":"uncheck-some",n)}}},{key:"refresh",value:function(t){t&&t.url&&(this.options.url=t.url),t&&t.pageNumber&&(this.options.pageNumber=t.pageNumber),t&&t.pageSize&&(this.options.pageSize=t.pageSize),this.trigger("refresh",this.initServer(t&&t.silent,t&&t.query,t&&t.url))}},{key:"destroy",value:function(){this.$el.insertBefore(this.$container),i.default(this.options.toolbar).insertBefore(this.$el),this.$container.next().remove(),this.$container.remove(),this.$el.html(this.$el_.html()).css("margin-top","0").attr("class",this.$el_.attr("class")||"")}},{key:"resetView",value:function(t){var e=0;if(t&&t.height&&(this.options.height=t.height),this.$selectAll.prop("checked",this.$selectItem.length>0&&this.$selectItem.length===this.$selectItem.filter(":checked").length),this.$tableContainer.toggleClass("has-card-view",this.options.cardView),!this.options.cardView&&this.options.showHeader&&this.options.height?(this.$tableHeader.show(),this.resetHeader(),e+=this.$header.outerHeight(!0)+1):(this.$tableHeader.hide(),this.trigger("post-header")),!this.options.cardView&&this.options.showFooter&&(this.$tableFooter.show(),this.fitFooter(),this.options.height&&(e+=this.$tableFooter.outerHeight(!0))),this.$container.hasClass("fullscreen"))this.$tableContainer.css("height",""),this.$tableContainer.css("width","");else if(this.options.height){this.$tableBorder&&(this.$tableBorder.css("width",""),this.$tableBorder.css("height",""));var i=this.$toolbar.outerHeight(!0),n=this.$pagination.outerHeight(!0),o=this.options.height-i-n,a=this.$tableBody.find(">table"),s=a.outerHeight();if(this.$tableContainer.css("height","".concat(o,"px")),this.$tableBorder&&a.is(":visible")){var r=o-s-2;this.$tableBody[0].scrollWidth-this.$tableBody.innerWidth()&&(r-=xa.getScrollBarWidth()),this.$tableBorder.css("width","".concat(a.outerWidth(),"px")),this.$tableBorder.css("height","".concat(r,"px"))}}this.options.cardView?(this.$el.css("margin-top","0"),this.$tableContainer.css("padding-bottom","0"),this.$tableFooter.hide()):(this.getCaret(),this.$tableContainer.css("padding-bottom","".concat(e,"px"))),this.trigger("reset-view")}},{key:"showLoading",value:function(){this.$tableLoading.toggleClass("open",!0);var t=this.options.loadingFontSize;"auto"===this.options.loadingFontSize&&(t=.04*this.$tableLoading.width(),t=Math.max(12,t),t=Math.min(32,t),t="".concat(t,"px")),this.$tableLoading.find(".loading-text").css("font-size",t)}},{key:"hideLoading",value:function(){this.$tableLoading.toggleClass("open",!1)}},{key:"togglePagination",value:function(){this.options.pagination=!this.options.pagination;var t=this.options.showButtonIcons?this.options.pagination?this.options.icons.paginationSwitchDown:this.options.icons.paginationSwitchUp:"",e=this.options.showButtonText?this.options.pagination?this.options.formatPaginationSwitchUp():this.options.formatPaginationSwitchDown():"";this.$toolbar.find('button[name="paginationSwitch"]').html("".concat(xa.sprintf(this.constants.html.icon,this.options.iconsPrefix,t)," ").concat(e)),this.updatePagination()}},{key:"toggleFullscreen",value:function(){this.$el.closest(".bootstrap-table").toggleClass("fullscreen"),this.resetView()}},{key:"toggleView",value:function(){this.options.cardView=!this.options.cardView,this.initHeader();var t=this.options.showButtonIcons?this.options.cardView?this.options.icons.toggleOn:this.options.icons.toggleOff:"",e=this.options.showButtonText?this.options.cardView?this.options.formatToggleOff():this.options.formatToggleOn():"";this.$toolbar.find('button[name="toggle"]').html("".concat(xa.sprintf(this.constants.html.icon,this.options.iconsPrefix,t)," ").concat(e)),this.initBody(),this.trigger("toggle",this.options.cardView)}},{key:"resetSearch",value:function(t){var e=xa.getSearchInput(this);e.val(t||""),this.onSearch({currentTarget:e})}},{key:"filterBy",value:function(t,e){this.filterOptions=xa.isEmptyObject(e)?this.options.filterOptions:i.default.extend(this.options.filterOptions,e),this.filterColumns=xa.isEmptyObject(t)?{}:t,this.options.pageNumber=1,this.initSearch(),this.updatePagination()}},{key:"scrollTo",value:function(t){var e={unit:"px",value:0};"object"===Go(t)?e=Object.assign(e,t):"string"==typeof t&&"bottom"===t?e.value=this.$tableBody[0].scrollHeight:"string"!=typeof t&&"number"!=typeof t||(e.value=t);var n=e.value;"rows"===e.unit&&(n=0,this.$body.find("> tr:lt(".concat(e.value,")")).each((function(t,e){n+=i.default(e).outerHeight(!0)}))),this.$tableBody.scrollTop(n)}},{key:"getScrollPosition",value:function(){return this.$tableBody.scrollTop()}},{key:"selectPage",value:function(t){t>0&&t<=this.options.totalPages&&(this.options.pageNumber=t,this.updatePagination())}},{key:"prevPage",value:function(){this.options.pageNumber>1&&(this.options.pageNumber--,this.updatePagination())}},{key:"nextPage",value:function(){this.options.pageNumber<this.options.totalPages&&(this.options.pageNumber++,this.updatePagination())}},{key:"toggleDetailView",value:function(t,e){this.$body.find(xa.sprintf('> tr[data-index="%s"]',t)).next().is("tr.detail-view")?this.collapseRow(t):this.expandRow(t,e),this.resetView()}},{key:"expandRow",value:function(t,e){var i=this.data[t],n=this.$body.find(xa.sprintf('> tr[data-index="%s"][data-has-detail-view]',t));if(!n.next().is("tr.detail-view")){this.options.detailViewIcon&&n.find("a.detail-icon").html(xa.sprintf(this.constants.html.icon,this.options.iconsPrefix,this.options.icons.detailClose)),n.after(xa.sprintf('<tr class="detail-view"><td colspan="%s"></td></tr>',n.children("td").length));var o=n.next().find("td"),a=e||this.options.detailFormatter,s=xa.calculateObjectValue(this.options,a,[t,i,o],"");1===o.length&&o.append(s),this.trigger("expand-row",t,i,o)}}},{key:"expandRowByUniqueId",value:function(t){var e=this.getRowByUniqueId(t);e&&this.expandRow(this.data.indexOf(e))}},{key:"collapseRow",value:function(t){var e=this.data[t],i=this.$body.find(xa.sprintf('> tr[data-index="%s"][data-has-detail-view]',t));i.next().is("tr.detail-view")&&(this.options.detailViewIcon&&i.find("a.detail-icon").html(xa.sprintf(this.constants.html.icon,this.options.iconsPrefix,this.options.icons.detailOpen)),this.trigger("collapse-row",t,e,i.next()),i.next().remove())}},{key:"collapseRowByUniqueId",value:function(t){var e=this.getRowByUniqueId(t);e&&this.collapseRow(this.data.indexOf(e))}},{key:"expandAllRows",value:function(){for(var t=this.$body.find("> tr[data-index][data-has-detail-view]"),e=0;e<t.length;e++)this.expandRow(i.default(t[e]).data("index"))}},{key:"collapseAllRows",value:function(){for(var t=this.$body.find("> tr[data-index][data-has-detail-view]"),e=0;e<t.length;e++)this.collapseRow(i.default(t[e]).data("index"))}},{key:"updateColumnTitle",value:function(t){t.hasOwnProperty("field")&&t.hasOwnProperty("title")&&(this.columns[this.fieldsColumnsIndex[t.field]].title=this.options.escape?xa.escapeHTML(t.title):t.title,this.columns[this.fieldsColumnsIndex[t.field]].visible&&(this.$header.find("th[data-field]").each((function(e,n){if(i.default(n).data("field")===t.field)return i.default(i.default(n).find(".th-inner")[0]).text(t.title),!1})),this.resetView()))}},{key:"updateFormatText",value:function(t,e){/^format/.test(t)&&this.options[t]&&("string"==typeof e?this.options[t]=function(){return e}:"function"==typeof e&&(this.options[t]=e),this.initToolbar(),this.initPagination(),this.initBody())}}]),t}();return Oa.VERSION=ca.VERSION,Oa.DEFAULTS=ca.DEFAULTS,Oa.LOCALES=ca.LOCALES,Oa.COLUMN_DEFAULTS=ca.COLUMN_DEFAULTS,Oa.METHODS=ca.METHODS,Oa.EVENTS=ca.EVENTS,i.default.BootstrapTable=Oa,i.default.fn.bootstrapTable=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),o=1;o<e;o++)n[o-1]=arguments[o];var a;return this.each((function(e,o){var s=i.default(o).data("bootstrap.table"),r=i.default.extend({},Oa.DEFAULTS,i.default(o).data(),"object"===Go(t)&&t);if("string"==typeof t){var l;if(!ca.METHODS.includes(t))throw new Error("Unknown method: ".concat(t));if(!s)return;a=(l=s)[t].apply(l,n),"destroy"===t&&i.default(o).removeData("bootstrap.table")}s||(s=new i.default.BootstrapTable(o,r),i.default(o).data("bootstrap.table",s),s.init())})),void 0===a?this:a},i.default.fn.bootstrapTable.Constructor=Oa,i.default.fn.bootstrapTable.theme=ca.THEME,i.default.fn.bootstrapTable.VERSION=ca.VERSION,i.default.fn.bootstrapTable.defaults=Oa.DEFAULTS,i.default.fn.bootstrapTable.columnDefaults=Oa.COLUMN_DEFAULTS,i.default.fn.bootstrapTable.events=Oa.EVENTS,i.default.fn.bootstrapTable.locales=Oa.LOCALES,i.default.fn.bootstrapTable.methods=Oa.METHODS,i.default.fn.bootstrapTable.utils=xa,i.default((function(){i.default('[data-toggle="table"]').bootstrapTable()})),Oa}));