UNPKG

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