mirror of
https://github.com/janeczku/calibre-web
synced 2024-12-01 13:59:57 +00:00
7ba014ba49
Fix metadata excration of comic books updated bootstrap table updated handling of upload formats restrictions
11 lines
9.2 KiB
JavaScript
11 lines
9.2 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.16.0
|
|
* @homepage https://bootstrap-table.com
|
|
* @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)
|
|
* @license MIT
|
|
*/
|
|
|
|
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],n):n((t=t||self).jQuery)}(this,(function(t){"use strict";t=t&&t.hasOwnProperty("default")?t.default:t;var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(t,n){return t(n={exports:{}},n.exports),n.exports}var e=function(t){return t&&t.Math==Math&&t},o=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof n&&n)||Function("return this")(),u=function(t){try{return!!t()}catch(t){return!0}},i=!u((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})),f={}.propertyIsEnumerable,c=Object.getOwnPropertyDescriptor,a={f:c&&!f.call({1:2},1)?function(t){var n=c(this,t);return!!n&&n.enumerable}:f},l=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}},s={}.toString,p=function(t){return s.call(t).slice(8,-1)},y="".split,g=u((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==p(t)?y.call(t,""):Object(t)}:Object,m=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},d=function(t){return g(m(t))},h=function(t){return"object"==typeof t?null!==t:"function"==typeof t},v=function(t,n){if(!h(t))return t;var r,e;if(n&&"function"==typeof(r=t.toString)&&!h(e=r.call(t)))return e;if("function"==typeof(r=t.valueOf)&&!h(e=r.call(t)))return e;if(!n&&"function"==typeof(r=t.toString)&&!h(e=r.call(t)))return e;throw TypeError("Can't convert object to primitive value")},b={}.hasOwnProperty,w=function(t,n){return b.call(t,n)},S=o.document,O=h(S)&&h(S.createElement),T=!i&&!u((function(){return 7!=Object.defineProperty((t="div",O?S.createElement(t):{}),"a",{get:function(){return 7}}).a;var t})),j=Object.getOwnPropertyDescriptor,P={f:i?j:function(t,n){if(t=d(t),n=v(n,!0),T)try{return j(t,n)}catch(t){}if(w(t,n))return l(!a.f.call(t,n),t[n])}},x=function(t){if(!h(t))throw TypeError(String(t)+" is not an object");return t},E=Object.defineProperty,A={f:i?E:function(t,n,r){if(x(t),n=v(n,!0),x(r),T)try{return E(t,n,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(t[n]=r.value),t}},M=i?function(t,n,r){return A.f(t,n,l(1,r))}:function(t,n,r){return t[n]=r,t},_=function(t,n){try{M(o,t,n)}catch(r){o[t]=n}return n},C=o["__core-js_shared__"]||_("__core-js_shared__",{}),R=Function.toString;"function"!=typeof C.inspectSource&&(C.inspectSource=function(t){return R.call(t)});var N,k,F,I,L=C.inspectSource,z=o.WeakMap,D="function"==typeof z&&/native code/.test(L(z)),q=r((function(t){(t.exports=function(t,n){return C[t]||(C[t]=void 0!==n?n:{})})("versions",[]).push({version:"3.6.0",mode:"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})})),W=0,B=Math.random(),G=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++W+B).toString(36)},J=q("keys"),K={},Q=o.WeakMap;if(D){var U=new Q,V=U.get,Y=U.has,H=U.set;N=function(t,n){return H.call(U,t,n),n},k=function(t){return V.call(U,t)||{}},F=function(t){return Y.call(U,t)}}else{var X=J[I="state"]||(J[I]=G(I));K[X]=!0,N=function(t,n){return M(t,X,n),n},k=function(t){return w(t,X)?t[X]:{}},F=function(t){return w(t,X)}}var Z,$,tt={set:N,get:k,has:F,enforce:function(t){return F(t)?k(t):N(t,{})},getterFor:function(t){return function(n){var r;if(!h(n)||(r=k(n)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return r}}},nt=r((function(t){var n=tt.get,r=tt.enforce,e=String(String).split("String");(t.exports=function(t,n,u,i){var f=!!i&&!!i.unsafe,c=!!i&&!!i.enumerable,a=!!i&&!!i.noTargetGet;"function"==typeof u&&("string"!=typeof n||w(u,"name")||M(u,"name",n),r(u).source=e.join("string"==typeof n?n:"")),t!==o?(f?!a&&t[n]&&(c=!0):delete t[n],c?t[n]=u:M(t,n,u)):c?t[n]=u:_(n,u)})(Function.prototype,"toString",(function(){return"function"==typeof this&&n(this).source||L(this)}))})),rt=o,et=function(t){return"function"==typeof t?t:void 0},ot=function(t,n){return arguments.length<2?et(rt[t])||et(o[t]):rt[t]&&rt[t][n]||o[t]&&o[t][n]},ut=Math.ceil,it=Math.floor,ft=function(t){return isNaN(t=+t)?0:(t>0?it:ut)(t)},ct=Math.min,at=function(t){return t>0?ct(ft(t),9007199254740991):0},lt=Math.max,st=Math.min,pt=function(t){return function(n,r,e){var o,u=d(n),i=at(u.length),f=function(t,n){var r=ft(t);return r<0?lt(r+n,0):st(r,n)}(e,i);if(t&&r!=r){for(;i>f;)if((o=u[f++])!=o)return!0}else for(;i>f;f++)if((t||f in u)&&u[f]===r)return t||f||0;return!t&&-1}},yt={includes:pt(!0),indexOf:pt(!1)}.indexOf,gt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"].concat("length","prototype"),mt={f:Object.getOwnPropertyNames||function(t){return function(t,n){var r,e=d(t),o=0,u=[];for(r in e)!w(K,r)&&w(e,r)&&u.push(r);for(;n.length>o;)w(e,r=n[o++])&&(~yt(u,r)||u.push(r));return u}(t,gt)}},dt={f:Object.getOwnPropertySymbols},ht=ot("Reflect","ownKeys")||function(t){var n=mt.f(x(t)),r=dt.f;return r?n.concat(r(t)):n},vt=function(t,n){for(var r=ht(n),e=A.f,o=P.f,u=0;u<r.length;u++){var i=r[u];w(t,i)||e(t,i,o(n,i))}},bt=/#|\.prototype\./,wt=function(t,n){var r=Ot[St(t)];return r==jt||r!=Tt&&("function"==typeof n?u(n):!!n)},St=wt.normalize=function(t){return String(t).replace(bt,".").toLowerCase()},Ot=wt.data={},Tt=wt.NATIVE="N",jt=wt.POLYFILL="P",Pt=wt,xt=P.f,Et=Array.isArray||function(t){return"Array"==p(t)},At=function(t){return Object(m(t))},Mt=function(t,n,r){var e=v(n);e in t?A.f(t,e,l(0,r)):t[e]=r},_t=!!Object.getOwnPropertySymbols&&!u((function(){return!String(Symbol())})),Ct=_t&&!Symbol.sham&&"symbol"==typeof Symbol(),Rt=q("wks"),Nt=o.Symbol,kt=Ct?Nt:G,Ft=function(t){return w(Rt,t)||(_t&&w(Nt,t)?Rt[t]=Nt[t]:Rt[t]=kt("Symbol."+t)),Rt[t]},It=Ft("species"),Lt=function(t,n){var r;return Et(t)&&("function"!=typeof(r=t.constructor)||r!==Array&&!Et(r.prototype)?h(r)&&null===(r=r[It])&&(r=void 0):r=void 0),new(void 0===r?Array:r)(0===n?0:n)},zt=ot("navigator","userAgent")||"",Dt=o.process,qt=Dt&&Dt.versions,Wt=qt&&qt.v8;Wt?$=(Z=Wt.split("."))[0]+Z[1]:zt&&(!(Z=zt.match(/Edge\/(\d+)/))||Z[1]>=74)&&(Z=zt.match(/Chrome\/(\d+)/))&&($=Z[1]);var Bt,Gt=$&&+$,Jt=Ft("species"),Kt=Ft("isConcatSpreadable"),Qt=Gt>=51||!u((function(){var t=[];return t[Kt]=!1,t.concat()[0]!==t})),Ut=(Bt="concat",Gt>=51||!u((function(){var t=[];return(t.constructor={})[Jt]=function(){return{foo:1}},1!==t[Bt](Boolean).foo}))),Vt=function(t){if(!h(t))return!1;var n=t[Kt];return void 0!==n?!!n:Et(t)};!function(t,n){var r,e,u,i,f,c=t.target,a=t.global,l=t.stat;if(r=a?o:l?o[c]||_(c,{}):(o[c]||{}).prototype)for(e in n){if(i=n[e],u=t.noTargetGet?(f=xt(r,e))&&f.value:r[e],!Pt(a?e:c+(l?".":"#")+e,t.forced)&&void 0!==u){if(typeof i==typeof u)continue;vt(i,u)}(t.sham||u&&u.sham)&&M(i,"sham",!0),nt(r,e,i,t)}}({target:"Array",proto:!0,forced:!Qt||!Ut},{concat:function(t){var n,r,e,o,u,i=At(this),f=Lt(i,0),c=0;for(n=-1,e=arguments.length;n<e;n++)if(u=-1===n?i:arguments[n],Vt(u)){if(c+(o=at(u.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(r=0;r<o;r++,c++)r in u&&Mt(f,c,u[r])}else{if(c>=9007199254740991)throw TypeError("Maximum allowed index exceeded");Mt(f,c++,u)}return f.length=c,f}}),t.fn.bootstrapTable.locales["zh-TW"]={formatLoadingMessage:function(){return"正在努力地載入資料,請稍候"},formatRecordsPerPage:function(t){return"每頁顯示 ".concat(t," 項記錄")},formatShowingRows:function(t,n,r,e){return void 0!==e&&e>0&&e>r?"顯示第 ".concat(t," 到第 ").concat(n," 項記錄,總共 ").concat(r," 項記錄(從 ").concat(e," 總記錄中過濾)"):"顯示第 ".concat(t," 到第 ").concat(n," 項記錄,總共 ").concat(r," 項記錄")},formatSRPaginationPreText:function(){return"上一頁"},formatSRPaginationPageText:function(t){return"第".concat(t,"頁")},formatSRPaginationNextText:function(){return"下一頁"},formatDetailPagination:function(t){return"總共 ".concat(t," 項記錄")},formatClearSearch:function(){return"清空過濾"},formatSearch:function(){return"搜尋"},formatNoMatches:function(){return"沒有找到符合的結果"},formatPaginationSwitch:function(){return"隱藏/顯示分頁"},formatPaginationSwitchDown:function(){return"顯示分頁"},formatPaginationSwitchUp:function(){return"隱藏分頁"},formatRefresh:function(){return"重新整理"},formatToggle:function(){return"切換"},formatToggleOn:function(){return"顯示卡片視圖"},formatToggleOff:function(){return"隱藏卡片視圖"},formatColumns:function(){return"列"},formatColumnsToggleAll:function(){return"切換所有"},formatFullscreen:function(){return"全屏"},formatAllRows:function(){return"所有"},formatAutoRefresh:function(){return"自動刷新"},formatExport:function(){return"導出數據"},formatJumpTo:function(){return"跳轉"},formatAdvancedSearch:function(){return"高級搜尋"},formatAdvancedCloseButton:function(){return"關閉"}},t.extend(t.fn.bootstrapTable.defaults,t.fn.bootstrapTable.locales["zh-TW"])}));
|