zoneminder/web/skins/classic/js/bootstrap-table-cookie.min.js

11 lines
34 KiB
JavaScript

/**
* bootstrap-table - An extended table to integration with some of the most widely used CSS frameworks. (Supports Bootstrap, Semantic UI, Bulma, Material Design, Foundation)
*
* @version v1.18.0
* @homepage https://bootstrap-table.com
* @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)
* @license MIT
*/
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).jQuery)}(this,(function(e){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=t(e),r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(e,t){return e(t={exports:{}},t.exports),t.exports}var i=function(e){return e&&e.Math==Math&&e},a=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof r&&r)||Function("return this")(),c=function(e){try{return!!e()}catch(e){return!0}},l=!c((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),s={}.propertyIsEnumerable,u=Object.getOwnPropertyDescriptor,f={f:u&&!s.call({1:2},1)?function(e){var t=u(this,e);return!!t&&t.enumerable}:s},p=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},h={}.toString,d=function(e){return h.call(e).slice(8,-1)},g="".split,v=c((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==d(e)?g.call(e,""):Object(e)}:Object,y=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},b=function(e){return v(y(e))},m=function(e){return"object"==typeof e?null!==e:"function"==typeof e},k=function(e,t){if(!m(e))return e;var o,r;if(t&&"function"==typeof(o=e.toString)&&!m(r=o.call(e)))return r;if("function"==typeof(o=e.valueOf)&&!m(r=o.call(e)))return r;if(!t&&"function"==typeof(o=e.toString)&&!m(r=o.call(e)))return r;throw TypeError("Can't convert object to primitive value")},S={}.hasOwnProperty,C=function(e,t){return S.call(e,t)},x=a.document,E=m(x)&&m(x.createElement),w=function(e){return E?x.createElement(e):{}},I=!l&&!c((function(){return 7!=Object.defineProperty(w("div"),"a",{get:function(){return 7}}).a})),T=Object.getOwnPropertyDescriptor,O={f:l?T:function(e,t){if(e=b(e),t=k(t,!0),I)try{return T(e,t)}catch(e){}if(C(e,t))return p(!f.f.call(e,t),e[t])}},j=function(e){if(!m(e))throw TypeError(String(e)+" is not an object");return e},A=Object.defineProperty,N={f:l?A:function(e,t,o){if(j(e),t=k(t,!0),j(o),I)try{return A(e,t,o)}catch(e){}if("get"in o||"set"in o)throw TypeError("Accessors not supported");return"value"in o&&(e[t]=o.value),e}},P=l?function(e,t,o){return N.f(e,t,p(1,o))}:function(e,t,o){return e[t]=o,e},L=function(e,t){try{P(a,e,t)}catch(o){a[e]=t}return t},R="__core-js_shared__",_=a[R]||L(R,{}),D=Function.toString;"function"!=typeof _.inspectSource&&(_.inspectSource=function(e){return D.call(e)});var M,G,U,$=_.inspectSource,B=a.WeakMap,V="function"==typeof B&&/native code/.test($(B)),F=n((function(e){(e.exports=function(e,t){return _[e]||(_[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),J=0,z=Math.random(),H=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++J+z).toString(36)},q=F("keys"),K=function(e){return q[e]||(q[e]=H(e))},W={},X=a.WeakMap;if(V){var Y=new X,Q=Y.get,Z=Y.has,ee=Y.set;M=function(e,t){return ee.call(Y,e,t),t},G=function(e){return Q.call(Y,e)||{}},U=function(e){return Z.call(Y,e)}}else{var te=K("state");W[te]=!0,M=function(e,t){return P(e,te,t),t},G=function(e){return C(e,te)?e[te]:{}},U=function(e){return C(e,te)}}var oe,re,ne={set:M,get:G,has:U,enforce:function(e){return U(e)?G(e):M(e,{})},getterFor:function(e){return function(t){var o;if(!m(t)||(o=G(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return o}}},ie=n((function(e){var t=ne.get,o=ne.enforce,r=String(String).split("String");(e.exports=function(e,t,n,i){var c=!!i&&!!i.unsafe,l=!!i&&!!i.enumerable,s=!!i&&!!i.noTargetGet;"function"==typeof n&&("string"!=typeof t||C(n,"name")||P(n,"name",t),o(n).source=r.join("string"==typeof t?t:"")),e!==a?(c?!s&&e[t]&&(l=!0):delete e[t],l?e[t]=n:P(e,t,n)):l?e[t]=n:L(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&t(this).source||$(this)}))})),ae=a,ce=function(e){return"function"==typeof e?e:void 0},le=function(e,t){return arguments.length<2?ce(ae[e])||ce(a[e]):ae[e]&&ae[e][t]||a[e]&&a[e][t]},se=Math.ceil,ue=Math.floor,fe=function(e){return isNaN(e=+e)?0:(e>0?ue:se)(e)},pe=Math.min,he=function(e){return e>0?pe(fe(e),9007199254740991):0},de=Math.max,ge=Math.min,ve=function(e){return function(t,o,r){var n,i=b(t),a=he(i.length),c=function(e,t){var o=fe(e);return o<0?de(o+t,0):ge(o,t)}(r,a);if(e&&o!=o){for(;a>c;)if((n=i[c++])!=n)return!0}else for(;a>c;c++)if((e||c in i)&&i[c]===o)return e||c||0;return!e&&-1}},ye={includes:ve(!0),indexOf:ve(!1)}.indexOf,be=function(e,t){var o,r=b(e),n=0,i=[];for(o in r)!C(W,o)&&C(r,o)&&i.push(o);for(;t.length>n;)C(r,o=t[n++])&&(~ye(i,o)||i.push(o));return i},me=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ke=me.concat("length","prototype"),Se={f:Object.getOwnPropertyNames||function(e){return be(e,ke)}},Ce={f:Object.getOwnPropertySymbols},xe=le("Reflect","ownKeys")||function(e){var t=Se.f(j(e)),o=Ce.f;return o?t.concat(o(e)):t},Ee=function(e,t){for(var o=xe(t),r=N.f,n=O.f,i=0;i<o.length;i++){var a=o[i];C(e,a)||r(e,a,n(t,a))}},we=/#|\.prototype\./,Ie=function(e,t){var o=Oe[Te(e)];return o==Ae||o!=je&&("function"==typeof t?c(t):!!t)},Te=Ie.normalize=function(e){return String(e).replace(we,".").toLowerCase()},Oe=Ie.data={},je=Ie.NATIVE="N",Ae=Ie.POLYFILL="P",Ne=Ie,Pe=O.f,Le=function(e,t){var o,r,n,i,c,l=e.target,s=e.global,u=e.stat;if(o=s?a:u?a[l]||L(l,{}):(a[l]||{}).prototype)for(r in t){if(i=t[r],n=e.noTargetGet?(c=Pe(o,r))&&c.value:o[r],!Ne(s?r:l+(u?".":"#")+r,e.forced)&&void 0!==n){if(typeof i==typeof n)continue;Ee(i,n)}(e.sham||n&&n.sham)&&P(i,"sham",!0),ie(o,r,i,e)}},Re=Array.isArray||function(e){return"Array"==d(e)},_e=function(e){return Object(y(e))},De=function(e,t,o){var r=k(t);r in e?N.f(e,r,p(0,o)):e[r]=o},Me=!!Object.getOwnPropertySymbols&&!c((function(){return!String(Symbol())})),Ge=Me&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Ue=F("wks"),$e=a.Symbol,Be=Ge?$e:$e&&$e.withoutSetter||H,Ve=function(e){return C(Ue,e)||(Me&&C($e,e)?Ue[e]=$e[e]:Ue[e]=Be("Symbol."+e)),Ue[e]},Fe=Ve("species"),Je=function(e,t){var o;return Re(e)&&("function"!=typeof(o=e.constructor)||o!==Array&&!Re(o.prototype)?m(o)&&null===(o=o[Fe])&&(o=void 0):o=void 0),new(void 0===o?Array:o)(0===t?0:t)},ze=le("navigator","userAgent")||"",He=a.process,qe=He&&He.versions,Ke=qe&&qe.v8;Ke?re=(oe=Ke.split("."))[0]+oe[1]:ze&&(!(oe=ze.match(/Edge\/(\d+)/))||oe[1]>=74)&&(oe=ze.match(/Chrome\/(\d+)/))&&(re=oe[1]);var We=re&&+re,Xe=Ve("species"),Ye=function(e){return We>=51||!c((function(){var t=[];return(t.constructor={})[Xe]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Qe=Ve("isConcatSpreadable"),Ze=9007199254740991,et="Maximum allowed index exceeded",tt=We>=51||!c((function(){var e=[];return e[Qe]=!1,e.concat()[0]!==e})),ot=Ye("concat"),rt=function(e){if(!m(e))return!1;var t=e[Qe];return void 0!==t?!!t:Re(e)};Le({target:"Array",proto:!0,forced:!tt||!ot},{concat:function(e){var t,o,r,n,i,a=_e(this),c=Je(a,0),l=0;for(t=-1,r=arguments.length;t<r;t++)if(rt(i=-1===t?a:arguments[t])){if(l+(n=he(i.length))>Ze)throw TypeError(et);for(o=0;o<n;o++,l++)o in i&&De(c,l,i[o])}else{if(l>=Ze)throw TypeError(et);De(c,l++,i)}return c.length=l,c}});var nt=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e},it=[].push,at=function(e){var t=1==e,o=2==e,r=3==e,n=4==e,i=6==e,a=5==e||i;return function(c,l,s,u){for(var f,p,h=_e(c),d=v(h),g=function(e,t,o){if(nt(e),void 0===t)return e;switch(o){case 0:return function(){return e.call(t)};case 1:return function(o){return e.call(t,o)};case 2:return function(o,r){return e.call(t,o,r)};case 3:return function(o,r,n){return e.call(t,o,r,n)}}return function(){return e.apply(t,arguments)}}(l,s,3),y=he(d.length),b=0,m=u||Je,k=t?m(c,y):o?m(c,0):void 0;y>b;b++)if((a||b in d)&&(p=g(f=d[b],b,h),e))if(t)k[b]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return b;case 2:it.call(k,f)}else if(n)return!1;return i?-1:r||n?n:k}},ct={forEach:at(0),map:at(1),filter:at(2),some:at(3),every:at(4),find:at(5),findIndex:at(6)},lt=Object.defineProperty,st={},ut=function(e){throw e},ft=function(e,t){if(C(st,e))return st[e];t||(t={});var o=[][e],r=!!C(t,"ACCESSORS")&&t.ACCESSORS,n=C(t,0)?t[0]:ut,i=C(t,1)?t[1]:void 0;return st[e]=!!o&&!c((function(){if(r&&!l)return!0;var e={length:-1};r?lt(e,1,{enumerable:!0,get:ut}):e[1]=1,o.call(e,n,i)}))},pt=ct.filter,ht=Ye("filter"),dt=ft("filter");Le({target:"Array",proto:!0,forced:!ht||!dt},{filter:function(e){return pt(this,e,arguments.length>1?arguments[1]:void 0)}});var gt,vt=Object.keys||function(e){return be(e,me)},yt=l?Object.defineProperties:function(e,t){j(e);for(var o,r=vt(t),n=r.length,i=0;n>i;)N.f(e,o=r[i++],t[o]);return e},bt=le("document","documentElement"),mt=K("IE_PROTO"),kt=function(){},St=function(e){return"<script>"+e+"</"+"script>"},Ct=function(){try{gt=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;Ct=gt?function(e){e.write(St("")),e.close();var t=e.parentWindow.Object;return e=null,t}(gt):((t=w("iframe")).style.display="none",bt.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(St("document.F=Object")),e.close(),e.F);for(var o=me.length;o--;)delete Ct.prototype[me[o]];return Ct()};W[mt]=!0;var xt=Object.create||function(e,t){var o;return null!==e?(kt.prototype=j(e),o=new kt,kt.prototype=null,o[mt]=e):o=Ct(),void 0===t?o:yt(o,t)},Et=Ve("unscopables"),wt=Array.prototype;null==wt[Et]&&N.f(wt,Et,{configurable:!0,value:xt(null)});var It,Tt=ct.find,Ot="find",jt=!0,At=ft(Ot);Ot in[]&&Array(1).find((function(){jt=!1})),Le({target:"Array",proto:!0,forced:jt||!At},{find:function(e){return Tt(this,e,arguments.length>1?arguments[1]:void 0)}}),It=Ot,wt[Et][It]=!0;var Nt=function(e,t){var o=[][e];return!!o&&c((function(){o.call(null,t||function(){throw 1},1)}))},Pt=ct.forEach,Lt=Nt("forEach"),Rt=ft("forEach"),_t=Lt&&Rt?[].forEach:function(e){return Pt(this,e,arguments.length>1?arguments[1]:void 0)};Le({target:"Array",proto:!0,forced:[].forEach!=_t},{forEach:_t});var Dt=[].join,Mt=v!=Object,Gt=Nt("join",",");Le({target:"Array",proto:!0,forced:Mt||!Gt},{join:function(e){return Dt.call(b(this),void 0===e?",":e)}});var Ut=ct.map,$t=Ye("map"),Bt=ft("map");Le({target:"Array",proto:!0,forced:!$t||!Bt},{map:function(e){return Ut(this,e,arguments.length>1?arguments[1]:void 0)}});var Vt={};Vt[Ve("toStringTag")]="z";var Ft="[object z]"===String(Vt),Jt=Ve("toStringTag"),zt="Arguments"==d(function(){return arguments}()),Ht=Ft?d:function(e){var t,o,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(o=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),Jt))?o:zt?d(t):"Object"==(r=d(t))&&"function"==typeof t.callee?"Arguments":r},qt=Ft?{}.toString:function(){return"[object "+Ht(this)+"]"};Ft||ie(Object.prototype,"toString",qt,{unsafe:!0});var Kt=function(){var e=j(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t};function Wt(e,t){return RegExp(e,t)}var Xt,Yt,Qt={UNSUPPORTED_Y:c((function(){var e=Wt("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),BROKEN_CARET:c((function(){var e=Wt("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},Zt=RegExp.prototype.exec,eo=String.prototype.replace,to=Zt,oo=(Xt=/a/,Yt=/b*/g,Zt.call(Xt,"a"),Zt.call(Yt,"a"),0!==Xt.lastIndex||0!==Yt.lastIndex),ro=Qt.UNSUPPORTED_Y||Qt.BROKEN_CARET,no=void 0!==/()??/.exec("")[1];(oo||no||ro)&&(to=function(e){var t,o,r,n,i=this,a=ro&&i.sticky,c=Kt.call(i),l=i.source,s=0,u=e;return a&&(-1===(c=c.replace("y","")).indexOf("g")&&(c+="g"),u=String(e).slice(i.lastIndex),i.lastIndex>0&&(!i.multiline||i.multiline&&"\n"!==e[i.lastIndex-1])&&(l="(?: "+l+")",u=" "+u,s++),o=new RegExp("^(?:"+l+")",c)),no&&(o=new RegExp("^"+l+"$(?!\\s)",c)),oo&&(t=i.lastIndex),r=Zt.call(a?o:i,u),a?r?(r.input=r.input.slice(s),r[0]=r[0].slice(s),r.index=i.lastIndex,i.lastIndex+=r[0].length):i.lastIndex=0:oo&&r&&(i.lastIndex=i.global?r.index+r[0].length:t),no&&r&&r.length>1&&eo.call(r[0],o,(function(){for(n=1;n<arguments.length-2;n++)void 0===arguments[n]&&(r[n]=void 0)})),r});var io=to;Le({target:"RegExp",proto:!0,forced:/./.exec!==io},{exec:io});var ao="toString",co=RegExp.prototype,lo=co.toString,so=c((function(){return"/a/b"!=lo.call({source:"a",flags:"b"})})),uo=lo.name!=ao;(so||uo)&&ie(RegExp.prototype,ao,(function(){var e=j(this),t=String(e.source),o=e.flags;return"/"+t+"/"+String(void 0===o&&e instanceof RegExp&&!("flags"in co)?Kt.call(e):o)}),{unsafe:!0});var fo=Ve("species"),po=!c((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),ho="$0"==="a".replace(/./,"$0"),go=Ve("replace"),vo=!!/./[go]&&""===/./[go]("a","$0"),yo=!c((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var o="ab".split(e);return 2!==o.length||"a"!==o[0]||"b"!==o[1]})),bo=function(e,t,o,r){var n=Ve(e),i=!c((function(){var t={};return t[n]=function(){return 7},7!=""[e](t)})),a=i&&!c((function(){var t=!1,o=/a/;return"split"===e&&((o={}).constructor={},o.constructor[fo]=function(){return o},o.flags="",o[n]=/./[n]),o.exec=function(){return t=!0,null},o[n](""),!t}));if(!i||!a||"replace"===e&&(!po||!ho||vo)||"split"===e&&!yo){var l=/./[n],s=o(n,""[e],(function(e,t,o,r,n){return t.exec===io?i&&!n?{done:!0,value:l.call(t,o,r)}:{done:!0,value:e.call(o,t,r)}:{done:!1}}),{REPLACE_KEEPS_$0:ho,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:vo}),u=s[0],f=s[1];ie(String.prototype,e,u),ie(RegExp.prototype,n,2==t?function(e,t){return f.call(e,this,t)}:function(e){return f.call(e,this)})}r&&P(RegExp.prototype[n],"sham",!0)},mo=function(e){return function(t,o){var r,n,i=String(y(t)),a=fe(o),c=i.length;return a<0||a>=c?e?"":void 0:(r=i.charCodeAt(a))<55296||r>56319||a+1===c||(n=i.charCodeAt(a+1))<56320||n>57343?e?i.charAt(a):r:e?i.slice(a,a+2):n-56320+(r-55296<<10)+65536}},ko={codeAt:mo(!1),charAt:mo(!0)}.charAt,So=function(e,t,o){return t+(o?ko(e,t).length:1)},Co=function(e,t){var o=e.exec;if("function"==typeof o){var r=o.call(e,t);if("object"!=typeof r)throw TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==d(e))throw TypeError("RegExp#exec called on incompatible receiver");return io.call(e,t)},xo=Math.max,Eo=Math.min,wo=Math.floor,Io=/\$([$&'`]|\d\d?|<[^>]*>)/g,To=/\$([$&'`]|\d\d?)/g;bo("replace",2,(function(e,t,o,r){var n=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,i=r.REPLACE_KEEPS_$0,a=n?"$":"$0";return[function(o,r){var n=y(this),i=null==o?void 0:o[e];return void 0!==i?i.call(o,n,r):t.call(String(n),o,r)},function(e,r){if(!n&&i||"string"==typeof r&&-1===r.indexOf(a)){var l=o(t,e,this,r);if(l.done)return l.value}var s=j(e),u=String(this),f="function"==typeof r;f||(r=String(r));var p=s.global;if(p){var h=s.unicode;s.lastIndex=0}for(var d=[];;){var g=Co(s,u);if(null===g)break;if(d.push(g),!p)break;""===String(g[0])&&(s.lastIndex=So(u,he(s.lastIndex),h))}for(var v,y="",b=0,m=0;m<d.length;m++){g=d[m];for(var k=String(g[0]),S=xo(Eo(fe(g.index),u.length),0),C=[],x=1;x<g.length;x++)C.push(void 0===(v=g[x])?v:String(v));var E=g.groups;if(f){var w=[k].concat(C,S,u);void 0!==E&&w.push(E);var I=String(r.apply(void 0,w))}else I=c(k,u,S,C,E,r);S>=b&&(y+=u.slice(b,S)+I,b=S+k.length)}return y+u.slice(b)}];function c(e,o,r,n,i,a){var c=r+e.length,l=n.length,s=To;return void 0!==i&&(i=_e(i),s=Io),t.call(a,s,(function(t,a){var s;switch(a.charAt(0)){case"$":return"$";case"&":return e;case"`":return o.slice(0,r);case"'":return o.slice(c);case"<":s=i[a.slice(1,-1)];break;default:var u=+a;if(0===u)return t;if(u>l){var f=wo(u/10);return 0===f?t:f<=l?void 0===n[f-1]?a.charAt(1):n[f-1]+a.charAt(1):t}s=n[u-1]}return void 0===s?"":s}))}}));var Oo=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};bo("search",1,(function(e,t,o){return[function(t){var o=y(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,o):new RegExp(t)[e](String(o))},function(e){var r=o(t,e,this);if(r.done)return r.value;var n=j(e),i=String(this),a=n.lastIndex;Oo(a,0)||(n.lastIndex=0);var c=Co(n,i);return Oo(n.lastIndex,a)||(n.lastIndex=a),null===c?-1:c.index}]}));var jo=Ve("match"),Ao=Ve("species"),No=[].push,Po=Math.min,Lo=4294967295,Ro=!c((function(){return!RegExp(Lo,"y")}));bo("split",2,(function(e,t,o){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,o){var r,n,i=String(y(this)),a=void 0===o?Lo:o>>>0;if(0===a)return[];if(void 0===e)return[i];if(!m(r=e)||!(void 0!==(n=r[jo])?n:"RegExp"==d(r)))return t.call(i,e,a);for(var c,l,s,u=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),p=0,h=new RegExp(e.source,f+"g");(c=io.call(h,i))&&!((l=h.lastIndex)>p&&(u.push(i.slice(p,c.index)),c.length>1&&c.index<i.length&&No.apply(u,c.slice(1)),s=c[0].length,p=l,u.length>=a));)h.lastIndex===c.index&&h.lastIndex++;return p===i.length?!s&&h.test("")||u.push(""):u.push(i.slice(p)),u.length>a?u.slice(0,a):u}:"0".split(void 0,0).length?function(e,o){return void 0===e&&0===o?[]:t.call(this,e,o)}:t,[function(t,o){var n=y(this),i=null==t?void 0:t[e];return void 0!==i?i.call(t,n,o):r.call(String(n),t,o)},function(e,n){var i=o(r,e,this,n,r!==t);if(i.done)return i.value;var a=j(e),c=String(this),l=function(e,t){var o,r=j(e).constructor;return void 0===r||null==(o=j(r)[Ao])?t:nt(o)}(a,RegExp),s=a.unicode,u=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Ro?"y":"g"),f=new l(Ro?a:"^(?:"+a.source+")",u),p=void 0===n?Lo:n>>>0;if(0===p)return[];if(0===c.length)return null===Co(f,c)?[c]:[];for(var h=0,d=0,g=[];d<c.length;){f.lastIndex=Ro?d:0;var v,y=Co(f,Ro?c:c.slice(d));if(null===y||(v=Po(he(f.lastIndex+(Ro?0:d)),c.length))===h)d=So(c,d,s);else{if(g.push(c.slice(h,d)),g.length===p)return g;for(var b=1;b<=y.length-1;b++)if(g.push(y[b]),g.length===p)return g;d=h=v}}return g.push(c.slice(h)),g}]}),!Ro);for(var _o in{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}){var Do=a[_o],Mo=Do&&Do.prototype;if(Mo&&Mo.forEach!==_t)try{P(Mo,"forEach",_t)}catch(e){Mo.forEach=_t}}function Go(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Uo(e,t){for(var o=0;o<t.length;o++){var r=t[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function $o(e){return($o=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Bo(e,t){return(Bo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Vo(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Fo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var o,r=$o(e);if(t){var n=$o(this).constructor;o=Reflect.construct(r,arguments,n)}else o=r.apply(this,arguments);return Vo(this,o)}}function Jo(e,t,o){return(Jo="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,o){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=$o(e)););return e}(e,t);if(r){var n=Object.getOwnPropertyDescriptor(r,t);return n.get?n.get.call(o):n.value}})(e,t,o||e)}function zo(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,r=new Array(t);o<t;o++)r[o]=e[o];return r}function Ho(e,t){var o;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(o=function(e,t){if(e){if("string"==typeof e)return zo(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?zo(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){o&&(e=o);var r=0,n=function(){};return{s:n,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:n}}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,a=!0,c=!1;return{s:function(){o=e[Symbol.iterator]()},n:function(){var e=o.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==o.return||o.return()}finally{if(c)throw i}}}}var qo=o.default.fn.bootstrapTable.utils,Ko={cookieIds:{sortOrder:"bs.table.sortOrder",sortName:"bs.table.sortName",pageNumber:"bs.table.pageNumber",pageList:"bs.table.pageList",columns:"bs.table.columns",searchText:"bs.table.searchText",reorderColumns:"bs.table.reorderColumns",filterControl:"bs.table.filterControl",filterBy:"bs.table.filterBy"},getCurrentHeader:function(e){var t=e.$header;return e.options.height&&(t=e.$tableHeader),t},getCurrentSearchControls:function(e){var t="select, input";return e.options.height&&(t="table select, table input"),t},cookieEnabled:function(){return!!navigator.cookieEnabled},inArrayCookiesEnabled:function(e,t){for(var o=-1,r=0;r<t.length;r++)if(e.toLowerCase()===t[r].toLowerCase()){o=r;break}return o},setCookie:function(e,t,o){if(e.options.cookie&&Ko.cookieEnabled()&&""!==e.options.cookieIdTable&&-1!==Ko.inArrayCookiesEnabled(t,e.options.cookiesEnabled)){switch(t="".concat(e.options.cookieIdTable,".").concat(t),e.options.cookieStorage){case"cookieStorage":document.cookie=[t,"=",encodeURIComponent(o),"; expires=".concat(Ko.calculateExpiration(e.options.cookieExpire)),e.options.cookiePath?"; path=".concat(e.options.cookiePath):"",e.options.cookieDomain?"; domain=".concat(e.options.cookieDomain):"",e.options.cookieSecure?"; secure":"",";SameSite=".concat(e.options.cookieSameSite)].join("");break;case"localStorage":localStorage.setItem(t,o);break;case"sessionStorage":sessionStorage.setItem(t,o);break;case"customStorage":if(!e.options.cookieCustomStorageSet||!e.options.cookieCustomStorageGet||!e.options.cookieCustomStorageDelete)throw new Error("The following options must be set while using the customStorage: cookieCustomStorageSet, cookieCustomStorageGet and cookieCustomStorageDelete");qo.calculateObjectValue(e.options,e.options.cookieCustomStorageSet,[t,o],"");break;default:return!1}return!0}},getCookie:function(e,t,o){if(!o)return null;if(-1===Ko.inArrayCookiesEnabled(o,e.options.cookiesEnabled))return null;switch(o="".concat(t,".").concat(o),e.options.cookieStorage){case"cookieStorage":var r="; ".concat(document.cookie).split("; ".concat(o,"="));return 2===r.length?decodeURIComponent(r.pop().split(";").shift()):null;case"localStorage":return localStorage.getItem(o);case"sessionStorage":return sessionStorage.getItem(o);case"customStorage":if(!e.options.cookieCustomStorageSet||!e.options.cookieCustomStorageGet||!e.options.cookieCustomStorageDelete)throw new Error("The following options must be set while using the customStorage: cookieCustomStorageSet, cookieCustomStorageGet and cookieCustomStorageDelete");return qo.calculateObjectValue(e.options,e.options.cookieCustomStorageGet,[o],"");default:return null}},deleteCookie:function(e,t,o){switch(o="".concat(t,".").concat(o),e.options.cookieStorage){case"cookieStorage":document.cookie=[encodeURIComponent(o),"=","; expires=Thu, 01 Jan 1970 00:00:00 GMT",e.options.cookiePath?"; path=".concat(e.options.cookiePath):"",e.options.cookieDomain?"; domain=".concat(e.options.cookieDomain):""].join("");break;case"localStorage":localStorage.removeItem(o);break;case"sessionStorage":sessionStorage.removeItem(o);break;case"customStorage":if(!e.options.cookieCustomStorageSet||!e.options.cookieCustomStorageGet||!e.options.cookieCustomStorageDelete)throw new Error("The following options must be set while using the customStorage: cookieCustomStorageSet, cookieCustomStorageGet and cookieCustomStorageDelete");qo.calculateObjectValue(e.options,e.options.cookieCustomStorageDelete,[o],"");break;default:return!1}return!0},calculateExpiration:function(e){var t=e.replace(/[0-9]*/,"");switch(e=e.replace(/[A-Za-z]{1,2}/,""),t.toLowerCase()){case"s":e=+e;break;case"mi":e*=60;break;case"h":e=60*e*60;break;case"d":e=24*e*60*60;break;case"m":e=30*e*24*60*60;break;case"y":e=365*e*24*60*60;break;default:e=void 0}if(!e)return"";var o=new Date;return o.setTime(o.getTime()+1e3*e),o.toGMTString()},initCookieFilters:function(e){setTimeout((function(){var t=JSON.parse(Ko.getCookie(e,e.options.cookieIdTable,Ko.cookieIds.filterControl));if(!e.options.filterControlValuesLoaded&&t){var r={},n=Ko.getCurrentHeader(e),i=Ko.getCurrentSearchControls(e),a=n;e.options.filterControlContainer&&(a=o.default("".concat(e.options.filterControlContainer))),a.find(i).each((function(){var n=o.default(this).closest("[data-field]").data("field");!function(t,o){o.forEach((function(o){if(""!==o.text&&("radio"!==t.type||t.value.toString()===o.text.toString()))if("INPUT"===t.tagName&&"radio"===t.type&&t.value.toString()===o.text.toString())t.checked=!0,r[o.field]=o.text;else if("INPUT"===t.tagName)t.value=o.text,r[o.field]=o.text;else if("SELECT"===t.tagName&&e.options.filterControlContainer)t.value=o.text,r[o.field]=o.text;else if(""!==o.text&&"SELECT"===t.tagName){for(var n=0;n<t.length;n++){var i=t[n];if(i.value===o.text)return void(i.selected=!0)}var a=document.createElement("option");a.value=o.text,a.text=o.text,t.add(a,t[1]),t.selectedIndex=1,r[o.field]=o.text}}))}(this,t.filter((function(e){return e.field===n})))})),e.initColumnSearch(r),e.options.filterControlValuesLoaded=!0,e.initServer()}}),250)}};o.default.extend(o.default.fn.bootstrapTable.defaults,{cookie:!1,cookieExpire:"2h",cookiePath:null,cookieDomain:null,cookieSecure:null,cookieSameSite:"Lax",cookieIdTable:"",cookiesEnabled:["bs.table.sortOrder","bs.table.sortName","bs.table.pageNumber","bs.table.pageList","bs.table.columns","bs.table.searchText","bs.table.filterControl","bs.table.filterBy","bs.table.reorderColumns"],cookieStorage:"cookieStorage",cookieCustomStorageGet:null,cookieCustomStorageSet:null,cookieCustomStorageDelete:null,filterControls:[],filterControlValuesLoaded:!1}),o.default.fn.bootstrapTable.methods.push("getCookies"),o.default.fn.bootstrapTable.methods.push("deleteCookie"),o.default.extend(o.default.fn.bootstrapTable.utils,{setCookie:Ko.setCookie,getCookie:Ko.getCookie}),o.default.BootstrapTable=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Bo(e,t)}(a,e);var t,r,n,i=Fo(a);function a(){return Go(this,a),i.apply(this,arguments)}return t=a,(r=[{key:"init",value:function(){if(this.options.cookie){var e=Ko.getCookie(this,this.options.cookieIdTable,Ko.cookieIds.filterBy);if("boolean"==typeof e&&!e)throw new Error("The cookie value of filterBy must be a json!");var t={};try{t=JSON.parse(e)}catch(e){throw new Error("Could not parse the json of the filterBy cookie!")}if(this.filterColumns=t||{},this.options.filterControls=[],this.options.filterControlValuesLoaded=!1,this.options.cookiesEnabled="string"==typeof this.options.cookiesEnabled?this.options.cookiesEnabled.replace("[","").replace("]","").replace(/'/g,"").replace(/ /g,"").toLowerCase().split(","):this.options.cookiesEnabled,this.options.filterControl){var o=this;this.$el.on("column-search.bs.table",(function(e,t,r){for(var n=!0,i=0;i<o.options.filterControls.length;i++)if(o.options.filterControls[i].field===t){o.options.filterControls[i].text=r,n=!1;break}n&&o.options.filterControls.push({field:t,text:r}),Ko.setCookie(o,Ko.cookieIds.filterControl,JSON.stringify(o.options.filterControls))})).on("created-controls.bs.table",Ko.initCookieFilters(o))}}Jo($o(a.prototype),"init",this).call(this)}},{key:"initServer",value:function(){var e;if(this.options.cookie&&this.options.filterControl&&!this.options.filterControlValuesLoaded){var t=JSON.parse(Ko.getCookie(this,this.options.cookieIdTable,Ko.cookieIds.filterControl));if(t)return}for(var o=arguments.length,r=new Array(o),n=0;n<o;n++)r[n]=arguments[n];(e=Jo($o(a.prototype),"initServer",this)).call.apply(e,[this].concat(r))}},{key:"initTable",value:function(){for(var e,t=arguments.length,o=new Array(t),r=0;r<t;r++)o[r]=arguments[r];(e=Jo($o(a.prototype),"initTable",this)).call.apply(e,[this].concat(o)),this.initCookie()}},{key:"onSort",value:function(){for(var e,t=arguments.length,o=new Array(t),r=0;r<t;r++)o[r]=arguments[r];(e=Jo($o(a.prototype),"onSort",this)).call.apply(e,[this].concat(o)),Ko.setCookie(this,Ko.cookieIds.sortOrder,this.options.sortOrder),Ko.setCookie(this,Ko.cookieIds.sortName,this.options.sortName)}},{key:"onPageNumber",value:function(){for(var e,t=arguments.length,o=new Array(t),r=0;r<t;r++)o[r]=arguments[r];(e=Jo($o(a.prototype),"onPageNumber",this)).call.apply(e,[this].concat(o)),Ko.setCookie(this,Ko.cookieIds.pageNumber,this.options.pageNumber)}},{key:"onPageListChange",value:function(){for(var e,t=arguments.length,o=new Array(t),r=0;r<t;r++)o[r]=arguments[r];(e=Jo($o(a.prototype),"onPageListChange",this)).call.apply(e,[this].concat(o)),Ko.setCookie(this,Ko.cookieIds.pageList,this.options.pageSize),Ko.setCookie(this,Ko.cookieIds.pageNumber,this.options.pageNumber)}},{key:"onPagePre",value:function(){for(var e,t=arguments.length,o=new Array(t),r=0;r<t;r++)o[r]=arguments[r];(e=Jo($o(a.prototype),"onPagePre",this)).call.apply(e,[this].concat(o)),Ko.setCookie(this,Ko.cookieIds.pageNumber,this.options.pageNumber)}},{key:"onPageNext",value:function(){for(var e,t=arguments.length,o=new Array(t),r=0;r<t;r++)o[r]=arguments[r];(e=Jo($o(a.prototype),"onPageNext",this)).call.apply(e,[this].concat(o)),Ko.setCookie(this,Ko.cookieIds.pageNumber,this.options.pageNumber)}},{key:"_toggleColumn",value:function(){for(var e,t=arguments.length,o=new Array(t),r=0;r<t;r++)o[r]=arguments[r];(e=Jo($o(a.prototype),"_toggleColumn",this)).call.apply(e,[this].concat(o)),Ko.setCookie(this,Ko.cookieIds.columns,JSON.stringify(this.getVisibleColumns().map((function(e){return e.field}))))}},{key:"_toggleAllColumns",value:function(){for(var e,t=arguments.length,o=new Array(t),r=0;r<t;r++)o[r]=arguments[r];(e=Jo($o(a.prototype),"_toggleAllColumns",this)).call.apply(e,[this].concat(o)),Ko.setCookie(this,Ko.cookieIds.columns,JSON.stringify(this.getVisibleColumns().map((function(e){return e.field}))))}},{key:"selectPage",value:function(e){Jo($o(a.prototype),"selectPage",this).call(this,e),Ko.setCookie(this,Ko.cookieIds.pageNumber,e)}},{key:"onSearch",value:function(e){Jo($o(a.prototype),"onSearch",this).call(this,e),this.options.search&&Ko.setCookie(this,Ko.cookieIds.searchText,this.searchText),Ko.setCookie(this,Ko.cookieIds.pageNumber,this.options.pageNumber)}},{key:"initHeader",value:function(){var e;this.options.reorderableColumns&&(this.columnsSortOrder=JSON.parse(Ko.getCookie(this,this.options.cookieIdTable,Ko.cookieIds.reorderColumns)));for(var t=arguments.length,o=new Array(t),r=0;r<t;r++)o[r]=arguments[r];(e=Jo($o(a.prototype),"initHeader",this)).call.apply(e,[this].concat(o))}},{key:"persistReorderColumnsState",value:function(e){Ko.setCookie(e,Ko.cookieIds.reorderColumns,JSON.stringify(e.columnsSortOrder))}},{key:"filterBy",value:function(){for(var e,t=arguments.length,o=new Array(t),r=0;r<t;r++)o[r]=arguments[r];(e=Jo($o(a.prototype),"filterBy",this)).call.apply(e,[this].concat(o)),Ko.setCookie(this,Ko.cookieIds.filterBy,JSON.stringify(this.filterColumns))}},{key:"initCookie",value:function(){var e=this;if(this.options.cookie){if(""===this.options.cookieIdTable||""===this.options.cookieExpire||!Ko.cookieEnabled())return console.error("Configuration error. Please review the cookieIdTable and the cookieExpire property. If the properties are correct, then this browser does not support cookies."),void(this.options.cookie=!1);var t=Ko.getCookie(this,this.options.cookieIdTable,Ko.cookieIds.sortOrder),o=Ko.getCookie(this,this.options.cookieIdTable,Ko.cookieIds.sortName),r=Ko.getCookie(this,this.options.cookieIdTable,Ko.cookieIds.pageNumber),n=Ko.getCookie(this,this.options.cookieIdTable,Ko.cookieIds.pageList),i=Ko.getCookie(this,this.options.cookieIdTable,Ko.cookieIds.searchText),a=Ko.getCookie(this,this.options.cookieIdTable,Ko.cookieIds.columns);if("boolean"==typeof a&&!a)throw new Error("The cookie value of filterBy must be a json!");var c={};try{c=JSON.parse(a)}catch(e){throw new Error("Could not parse the json of the columns cookie!",a)}if(this.options.sortOrder=t||this.options.sortOrder,this.options.sortName=o||this.options.sortName,this.options.pageNumber=r?+r:this.options.pageNumber,this.options.pageSize=n?n===this.options.formatAllRows()?n:+n:this.options.pageSize,this.options.searchText=i||"",c){var l,s=Ho(this.columns);try{var u=function(){var t=l.value;t.visible=c.filter((function(o){return!!e.isSelectionColumn(t)||(o instanceof Object?o.field===t.field:o===t.field)})).length>0||!t.switchable};for(s.s();!(l=s.n()).done;)u()}catch(e){s.e(e)}finally{s.f()}}}}},{key:"getCookies",value:function(){var e=this,t={};return o.default.each(Ko.cookieIds,(function(o,r){t[o]=Ko.getCookie(e,e.options.cookieIdTable,r),"columns"===o&&(t[o]=JSON.parse(t[o]))})),t}},{key:"deleteCookie",value:function(e){""!==e&&Ko.cookieEnabled()&&Ko.deleteCookie(this,this.options.cookieIdTable,Ko.cookieIds[e])}}])&&Uo(t.prototype,r),n&&Uo(t,n),a}(o.default.BootstrapTable)}));