1
0
mirror of https://github.com/janeczku/calibre-web synced 2024-12-30 12:00:31 +00:00
calibre-web/cps/static/js/libs/bootstrap-table/bootstrap-table-editable.min.js
2021-02-20 20:03:39 +01:00

11 lines
22 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.2
* @homepage https://bootstrap-table.com
* @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)
* @license MIT
*/
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).jQuery)}(this,(function(t){"use strict";function e(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var n=e(t),r="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 i=function(t){return t&&t.Math==Math&&t},a=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof r&&r)||function(){return this}()||Function("return this")(),u=function(t){try{return!!t()}catch(t){return!0}},c=!u((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),f={}.propertyIsEnumerable,l=Object.getOwnPropertyDescriptor,s={f:l&&!f.call({1:2},1)?function(t){var e=l(this,t);return!!e&&e.enumerable}:f},d=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},p={}.toString,v=function(t){return p.call(t).slice(8,-1)},h="".split,y=u((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==v(t)?h.call(t,""):Object(t)}:Object,b=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},g=function(t){return y(b(t))},m=function(t){return"object"==typeof t?null!==t:"function"==typeof t},x=function(t,e){if(!m(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!m(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!m(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!m(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},E={}.hasOwnProperty,S=function(t,e){return E.call(t,e)},w=a.document,O=m(w)&&m(w.createElement),j=function(t){return O?w.createElement(t):{}},T=!c&&!u((function(){return 7!=Object.defineProperty(j("div"),"a",{get:function(){return 7}}).a})),A=Object.getOwnPropertyDescriptor,I={f:c?A:function(t,e){if(t=g(t),e=x(e,!0),T)try{return A(t,e)}catch(t){}if(S(t,e))return d(!s.f.call(t,e),t[e])}},P=function(t){if(!m(t))throw TypeError(String(t)+" is not an object");return t},R=Object.defineProperty,_={f:c?R:function(t,e,n){if(P(t),e=x(e,!0),P(n),T)try{return R(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},C=c?function(t,e,n){return _.f(t,e,d(1,n))}:function(t,e,n){return t[e]=n,t},D=function(t,e){try{C(a,t,e)}catch(n){a[t]=e}return e},k="__core-js_shared__",F=a[k]||D(k,{}),M=Function.toString;"function"!=typeof F.inspectSource&&(F.inspectSource=function(t){return M.call(t)});var $,U,N,L=F.inspectSource,B=a.WeakMap,q="function"==typeof B&&/native code/.test(L(B)),V=o((function(t){(t.exports=function(t,e){return F[t]||(F[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.8.1",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),K=0,G=Math.random(),H=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++K+G).toString(36)},W=V("keys"),z=function(t){return W[t]||(W[t]=H(t))},X={},Y=a.WeakMap;if(q){var Q=F.state||(F.state=new Y),Z=Q.get,J=Q.has,tt=Q.set;$=function(t,e){return e.facade=t,tt.call(Q,t,e),e},U=function(t){return Z.call(Q,t)||{}},N=function(t){return J.call(Q,t)}}else{var et=z("state");X[et]=!0,$=function(t,e){return e.facade=t,C(t,et,e),e},U=function(t){return S(t,et)?t[et]:{}},N=function(t){return S(t,et)}}var nt,rt,ot={set:$,get:U,has:N,enforce:function(t){return N(t)?U(t):$(t,{})},getterFor:function(t){return function(e){var n;if(!m(e)||(n=U(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}},it=o((function(t){var e=ot.get,n=ot.enforce,r=String(String).split("String");(t.exports=function(t,e,o,i){var u,c=!!i&&!!i.unsafe,f=!!i&&!!i.enumerable,l=!!i&&!!i.noTargetGet;"function"==typeof o&&("string"!=typeof e||S(o,"name")||C(o,"name",e),(u=n(o)).source||(u.source=r.join("string"==typeof e?e:""))),t!==a?(c?!l&&t[e]&&(f=!0):delete t[e],f?t[e]=o:C(t,e,o)):f?t[e]=o:D(e,o)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||L(this)}))})),at=a,ut=function(t){return"function"==typeof t?t:void 0},ct=function(t,e){return arguments.length<2?ut(at[t])||ut(a[t]):at[t]&&at[t][e]||a[t]&&a[t][e]},ft=Math.ceil,lt=Math.floor,st=function(t){return isNaN(t=+t)?0:(t>0?lt:ft)(t)},dt=Math.min,pt=function(t){return t>0?dt(st(t),9007199254740991):0},vt=Math.max,ht=Math.min,yt=function(t){return function(e,n,r){var o,i=g(e),a=pt(i.length),u=function(t,e){var n=st(t);return n<0?vt(n+e,0):ht(n,e)}(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},bt={includes:yt(!0),indexOf:yt(!1)},gt=bt.indexOf,mt=function(t,e){var n,r=g(t),o=0,i=[];for(n in r)!S(X,n)&&S(r,n)&&i.push(n);for(;e.length>o;)S(r,n=e[o++])&&(~gt(i,n)||i.push(n));return i},xt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Et=xt.concat("length","prototype"),St={f:Object.getOwnPropertyNames||function(t){return mt(t,Et)}},wt={f:Object.getOwnPropertySymbols},Ot=ct("Reflect","ownKeys")||function(t){var e=St.f(P(t)),n=wt.f;return n?e.concat(n(t)):e},jt=function(t,e){for(var n=Ot(e),r=_.f,o=I.f,i=0;i<n.length;i++){var a=n[i];S(t,a)||r(t,a,o(e,a))}},Tt=/#|\.prototype\./,At=function(t,e){var n=Pt[It(t)];return n==_t||n!=Rt&&("function"==typeof e?u(e):!!e)},It=At.normalize=function(t){return String(t).replace(Tt,".").toLowerCase()},Pt=At.data={},Rt=At.NATIVE="N",_t=At.POLYFILL="P",Ct=At,Dt=I.f,kt=function(t,e){var n,r,o,i,u,c=t.target,f=t.global,l=t.stat;if(n=f?a:l?a[c]||D(c,{}):(a[c]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(u=Dt(n,r))&&u.value:n[r],!Ct(f?r:c+(l?".":"#")+r,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;jt(i,o)}(t.sham||o&&o.sham)&&C(i,"sham",!0),it(n,r,i,t)}},Ft=Array.isArray||function(t){return"Array"==v(t)},Mt=function(t){return Object(b(t))},$t=function(t,e,n){var r=x(e);r in t?_.f(t,r,d(0,n)):t[r]=n},Ut=!!Object.getOwnPropertySymbols&&!u((function(){return!String(Symbol())})),Nt=Ut&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Lt=V("wks"),Bt=a.Symbol,qt=Nt?Bt:Bt&&Bt.withoutSetter||H,Vt=function(t){return S(Lt,t)||(Ut&&S(Bt,t)?Lt[t]=Bt[t]:Lt[t]=qt("Symbol."+t)),Lt[t]},Kt=Vt("species"),Gt=function(t,e){var n;return Ft(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!Ft(n.prototype)?m(n)&&null===(n=n[Kt])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)},Ht=ct("navigator","userAgent")||"",Wt=a.process,zt=Wt&&Wt.versions,Xt=zt&&zt.v8;Xt?rt=(nt=Xt.split("."))[0]+nt[1]:Ht&&(!(nt=Ht.match(/Edge\/(\d+)/))||nt[1]>=74)&&(nt=Ht.match(/Chrome\/(\d+)/))&&(rt=nt[1]);var Yt,Qt=rt&&+rt,Zt=Vt("species"),Jt=Vt("isConcatSpreadable"),te=9007199254740991,ee="Maximum allowed index exceeded",ne=Qt>=51||!u((function(){var t=[];return t[Jt]=!1,t.concat()[0]!==t})),re=(Yt="concat",Qt>=51||!u((function(){var t=[];return(t.constructor={})[Zt]=function(){return{foo:1}},1!==t[Yt](Boolean).foo}))),oe=function(t){if(!m(t))return!1;var e=t[Jt];return void 0!==e?!!e:Ft(t)};kt({target:"Array",proto:!0,forced:!ne||!re},{concat:function(t){var e,n,r,o,i,a=Mt(this),u=Gt(a,0),c=0;for(e=-1,r=arguments.length;e<r;e++)if(oe(i=-1===e?a:arguments[e])){if(c+(o=pt(i.length))>te)throw TypeError(ee);for(n=0;n<o;n++,c++)n in i&&$t(u,c,i[n])}else{if(c>=te)throw TypeError(ee);$t(u,c++,i)}return u.length=c,u}});var ie,ae=function(t,e,n){if(function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function")}(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}},ue=[].push,ce=function(t){var e=1==t,n=2==t,r=3==t,o=4==t,i=6==t,a=7==t,u=5==t||i;return function(c,f,l,s){for(var d,p,v=Mt(c),h=y(v),b=ae(f,l,3),g=pt(h.length),m=0,x=s||Gt,E=e?x(c,g):n||a?x(c,0):void 0;g>m;m++)if((u||m in h)&&(p=b(d=h[m],m,v),t))if(e)E[m]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return m;case 2:ue.call(E,d)}else switch(t){case 4:return!1;case 7:ue.call(E,d)}return i?-1:r||o?o:E}},fe={forEach:ce(0),map:ce(1),filter:ce(2),some:ce(3),every:ce(4),find:ce(5),findIndex:ce(6),filterOut:ce(7)},le=Object.keys||function(t){return mt(t,xt)},se=c?Object.defineProperties:function(t,e){P(t);for(var n,r=le(e),o=r.length,i=0;o>i;)_.f(t,n=r[i++],e[n]);return t},de=ct("document","documentElement"),pe=z("IE_PROTO"),ve=function(){},he=function(t){return"<script>"+t+"</"+"script>"},ye=function(){try{ie=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;ye=ie?function(t){t.write(he("")),t.close();var e=t.parentWindow.Object;return t=null,e}(ie):((e=j("iframe")).style.display="none",de.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(he("document.F=Object")),t.close(),t.F);for(var n=xt.length;n--;)delete ye.prototype[xt[n]];return ye()};X[pe]=!0;var be=Object.create||function(t,e){var n;return null!==t?(ve.prototype=P(t),n=new ve,ve.prototype=null,n[pe]=t):n=ye(),void 0===e?n:se(n,e)},ge=Vt("unscopables"),me=Array.prototype;null==me[ge]&&_.f(me,ge,{configurable:!0,value:be(null)});var xe,Ee=Object.defineProperty,Se={},we=function(t){throw t},Oe=function(t,e){if(S(Se,t))return Se[t];e||(e={});var n=[][t],r=!!S(e,"ACCESSORS")&&e.ACCESSORS,o=S(e,0)?e[0]:we,i=S(e,1)?e[1]:void 0;return Se[t]=!!n&&!u((function(){if(r&&!c)return!0;var t={length:-1};r?Ee(t,1,{enumerable:!0,get:we}):t[1]=1,n.call(t,o,i)}))},je=fe.find,Te="find",Ae=!0,Ie=Oe(Te);Te in[]&&Array(1).find((function(){Ae=!1})),kt({target:"Array",proto:!0,forced:Ae||!Ie},{find:function(t){return je(this,t,arguments.length>1?arguments[1]:void 0)}}),xe=Te,me[ge][xe]=!0;var Pe=function(t,e){var n=[][t];return!!n&&u((function(){n.call(null,e||function(){throw 1},1)}))},Re=bt.indexOf,_e=[].indexOf,Ce=!!_e&&1/[1].indexOf(1,-0)<0,De=Pe("indexOf"),ke=Oe("indexOf",{ACCESSORS:!0,1:0});kt({target:"Array",proto:!0,forced:Ce||!De||!ke},{indexOf:function(t){return Ce?_e.apply(this,arguments)||0:Re(this,t,arguments.length>1?arguments[1]:void 0)}});var Fe=[].join,Me=y!=Object,$e=Pe("join",",");kt({target:"Array",proto:!0,forced:Me||!$e},{join:function(t){return Fe.call(g(this),void 0===t?",":t)}});var Ue=s.f,Ne=function(t){return function(e){for(var n,r=g(e),o=le(r),i=o.length,a=0,u=[];i>a;)n=o[a++],c&&!Ue.call(r,n)||u.push(t?[n,r[n]]:r[n]);return u}},Le={entries:Ne(!0),values:Ne(!1)}.entries;kt({target:"Object",stat:!0},{entries:function(t){return Le(t)}});var Be=function(){var t=P(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 qe(t,e){return RegExp(t,e)}var Ve,Ke,Ge={UNSUPPORTED_Y:u((function(){var t=qe("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),BROKEN_CARET:u((function(){var t=qe("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},He=RegExp.prototype.exec,We=String.prototype.replace,ze=He,Xe=(Ve=/a/,Ke=/b*/g,He.call(Ve,"a"),He.call(Ke,"a"),0!==Ve.lastIndex||0!==Ke.lastIndex),Ye=Ge.UNSUPPORTED_Y||Ge.BROKEN_CARET,Qe=void 0!==/()??/.exec("")[1];(Xe||Qe||Ye)&&(ze=function(t){var e,n,r,o,i=this,a=Ye&&i.sticky,u=Be.call(i),c=i.source,f=0,l=t;return a&&(-1===(u=u.replace("y","")).indexOf("g")&&(u+="g"),l=String(t).slice(i.lastIndex),i.lastIndex>0&&(!i.multiline||i.multiline&&"\n"!==t[i.lastIndex-1])&&(c="(?: "+c+")",l=" "+l,f++),n=new RegExp("^(?:"+c+")",u)),Qe&&(n=new RegExp("^"+c+"$(?!\\s)",u)),Xe&&(e=i.lastIndex),r=He.call(a?n:i,l),a?r?(r.input=r.input.slice(f),r[0]=r[0].slice(f),r.index=i.lastIndex,i.lastIndex+=r[0].length):i.lastIndex=0:Xe&&r&&(i.lastIndex=i.global?r.index+r[0].length:e),Qe&&r&&r.length>1&&We.call(r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r});var Ze=ze;kt({target:"RegExp",proto:!0,forced:/./.exec!==Ze},{exec:Ze});var Je=Vt("species"),tn=!u((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),en="$0"==="a".replace(/./,"$0"),nn=Vt("replace"),rn=!!/./[nn]&&""===/./[nn]("a","$0"),on=!u((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),an=function(t){return function(e,n){var r,o,i=String(b(e)),a=st(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=i.charCodeAt(a))<55296||r>56319||a+1===u||(o=i.charCodeAt(a+1))<56320||o>57343?t?i.charAt(a):r:t?i.slice(a,a+2):o-56320+(r-55296<<10)+65536}},un={codeAt:an(!1),charAt:an(!0)}.charAt,cn=function(t,e,n){return e+(n?un(t,e).length:1)},fn=function(t,e){var n=t.exec;if("function"==typeof n){var r=n.call(t,e);if("object"!=typeof r)throw TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==v(t))throw TypeError("RegExp#exec called on incompatible receiver");return Ze.call(t,e)},ln=Math.max,sn=Math.min,dn=Math.floor,pn=/\$([$&'`]|\d\d?|<[^>]*>)/g,vn=/\$([$&'`]|\d\d?)/g;function hn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function yn(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 bn(t){return(bn=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function gn(t,e){return(gn=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function mn(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function xn(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=bn(t);if(e){var o=bn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return mn(this,n)}}function En(t,e,n){return(En="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=bn(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function Sn(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 n=[],r=!0,o=!1,i=void 0;try{for(var a,u=t[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}(t,e)||wn(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 wn(t,e){if(t){if("string"==typeof t)return On(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?On(t,e):void 0}}function On(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}!function(t,e,n,r){var o=Vt(t),i=!u((function(){var e={};return e[o]=function(){return 7},7!=""[t](e)})),a=i&&!u((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[Je]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return e=!0,null},n[o](""),!e}));if(!i||!a||"replace"===t&&(!tn||!en||rn)||"split"===t&&!on){var c=/./[o],f=n(o,""[t],(function(t,e,n,r,o){return e.exec===Ze?i&&!o?{done:!0,value:c.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}}),{REPLACE_KEEPS_$0:en,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:rn}),l=f[0],s=f[1];it(String.prototype,t,l),it(RegExp.prototype,o,2==e?function(t,e){return s.call(t,this,e)}:function(t){return s.call(t,this)})}r&&C(RegExp.prototype[o],"sham",!0)}("replace",2,(function(t,e,n,r){var o=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,i=r.REPLACE_KEEPS_$0,a=o?"$":"$0";return[function(n,r){var o=b(this),i=null==n?void 0:n[t];return void 0!==i?i.call(n,o,r):e.call(String(o),n,r)},function(t,r){if(!o&&i||"string"==typeof r&&-1===r.indexOf(a)){var c=n(e,t,this,r);if(c.done)return c.value}var f=P(t),l=String(this),s="function"==typeof r;s||(r=String(r));var d=f.global;if(d){var p=f.unicode;f.lastIndex=0}for(var v=[];;){var h=fn(f,l);if(null===h)break;if(v.push(h),!d)break;""===String(h[0])&&(f.lastIndex=cn(l,pt(f.lastIndex),p))}for(var y,b="",g=0,m=0;m<v.length;m++){h=v[m];for(var x=String(h[0]),E=ln(sn(st(h.index),l.length),0),S=[],w=1;w<h.length;w++)S.push(void 0===(y=h[w])?y:String(y));var O=h.groups;if(s){var j=[x].concat(S,E,l);void 0!==O&&j.push(O);var T=String(r.apply(void 0,j))}else T=u(x,l,E,S,O,r);E>=g&&(b+=l.slice(g,E)+T,g=E+x.length)}return b+l.slice(g)}];function u(t,n,r,o,i,a){var u=r+t.length,c=o.length,f=vn;return void 0!==i&&(i=Mt(i),f=pn),e.call(a,f,(function(e,a){var f;switch(a.charAt(0)){case"$":return"$";case"&":return t;case"`":return n.slice(0,r);case"'":return n.slice(u);case"<":f=i[a.slice(1,-1)];break;default:var l=+a;if(0===l)return e;if(l>c){var s=dn(l/10);return 0===s?e:s<=c?void 0===o[s-1]?a.charAt(1):o[s-1]+a.charAt(1):e}f=o[l-1]}return void 0===f?"":f}))}}));var jn=n.default.fn.bootstrapTable.utils;n.default.extend(n.default.fn.bootstrapTable.defaults,{editable:!0,onEditableInit:function(){return!1},onEditableSave:function(t,e,n,r,o){return!1},onEditableShown:function(t,e,n,r){return!1},onEditableHidden:function(t,e,n,r){return!1}}),n.default.extend(n.default.fn.bootstrapTable.columnDefaults,{alwaysUseFormatter:!1}),n.default.extend(n.default.fn.bootstrapTable.Constructor.EVENTS,{"editable-init.bs.table":"onEditableInit","editable-save.bs.table":"onEditableSave","editable-shown.bs.table":"onEditableShown","editable-hidden.bs.table":"onEditableHidden"}),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}}),e&&gn(t,e)}(a,t);var e,r,o,i=xn(a);function a(){return hn(this,a),i.apply(this,arguments)}return e=a,(r=[{key:"initTable",value:function(){var t=this;En(bn(a.prototype),"initTable",this).call(this),this.options.editable&&(this.editedCells=[],n.default.each(this.columns,(function(e,r){if(r.editable){var o={},i=[],a="editable-",u=function(t,e){var n=t.replace(/([A-Z])/g,(function(t){return"-".concat(t.toLowerCase())}));0===n.indexOf(a)&&(o[n.replace(a,"data-")]=e)};n.default.each(t.options,u),r.formatter=r.formatter||function(t){return t},r._formatter=r._formatter?r._formatter:r.formatter,r.formatter=function(e,a,c){var f=jn.calculateObjectValue(r,r._formatter,[e,a,c],e);if(f=null==f?t.options.undefinedText:f,void 0!==t.options.uniqueId&&!r.alwaysUseFormatter){var l=jn.getItemField(a,t.options.uniqueId,!1);-1!==n.default.inArray(r.field+l,t.editedCells)&&(f=e)}n.default.each(r,u),n.default.each(o,(function(t,e){i.push(" ".concat(t,'="').concat(e,'"'))}));var s=!1,d=jn.calculateObjectValue(r,r.editable,[c,a],{});return d.hasOwnProperty("noEditFormatter")&&(s=d.noEditFormatter(e,a,c)),!1===s?'<a href="javascript:void(0)"\n data-name="'.concat(r.field,'"\n data-pk="').concat(a[t.options.idField],'"\n data-value="').concat(f,'"\n ').concat(i.join(""),"></a>"):s}}})))}},{key:"initBody",value:function(t){var e=this;En(bn(a.prototype),"initBody",this).call(this,t),this.options.editable&&(n.default.each(this.columns,(function(t,r){if(r.editable){var o=e.getData({escape:!0}),i=e.$body.find('a[data-name="'.concat(r.field,'"]'));i.each((function(t,e){var i=n.default(e),a=i.closest("tr").data("index"),u=o[a],c=jn.calculateObjectValue(r,r.editable,[a,u,i],{});i.editable(c)})),i.off("save").on("save",(function(t,o){var i=t.currentTarget,a=o.submitValue,u=n.default(i),c=e.getData(),f=u.parents("tr[data-index]").data("index"),l=c[f],s=l[r.field];if(void 0!==e.options.uniqueId&&!r.alwaysUseFormatter){var d=jn.getItemField(l,e.options.uniqueId,!1);-1===n.default.inArray(r.field+d,e.editedCells)&&e.editedCells.push(r.field+d)}a=jn.escapeHTML(a),u.data("value",a),l[r.field]=a,e.trigger("editable-save",r.field,l,f,s,u),e.initBody()})),i.off("shown").on("shown",(function(t,o){var i=t.currentTarget,a=n.default(i),u=e.getData()[a.parents("tr[data-index]").data("index")];e.trigger("editable-shown",r.field,u,a,o)})),i.off("hidden").on("hidden",(function(t,o){var i=t.currentTarget,a=n.default(i),u=e.getData()[a.parents("tr[data-index]").data("index")];e.trigger("editable-hidden",r.field,u,a,o)}))}})),this.trigger("editable-init"))}},{key:"getData",value:function(t){var e=En(bn(a.prototype),"getData",this).call(this,t);if(t&&t.escape){var n,r=function(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=wn(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},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,a=!0,u=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}(e);try{for(r.s();!(n=r.n()).done;)for(var o=n.value,i=0,u=Object.entries(o);i<u.length;i++){var c=Sn(u[i],2),f=c[0],l=c[1];o[f]=jn.unescapeHTML(l)}}catch(t){r.e(t)}finally{r.f()}}return e}}])&&yn(e.prototype,r),o&&yn(e,o),a}(n.default.BootstrapTable)}));