bootstrap-table-treegrid.min.js 20 KB

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