xinsi_book/public/static/epubjs/js/chunk-vendors.9aae0e0a.js

27 lines
608 KiB
JavaScript
Raw Permalink Normal View History

2025-01-08 11:00:20 +00:00
(self["webpackChunkxml_reader"]=self["webpackChunkxml_reader"]||[]).push([[998],{2262:function(e,t,n){"use strict";n.d(t,{BK:function(){return Ue},Bj:function(){return a},Fl:function(){return Ze},IU:function(){return Te},Jd:function(){return k},PG:function(){return ze},SU:function(){return je},Um:function(){return _e},WL:function(){return Me},X$:function(){return C},X3:function(){return Ce},XI:function(){return Pe},Xl:function(){return Ne},dq:function(){return De},iH:function(){return Le},j:function(){return E},lk:function(){return z},qj:function(){return we},qq:function(){return y},yT:function(){return Se}});var i=n(3577);let r;class a{constructor(e=!1){this.detached=e,this.active=!0,this.effects=[],this.cleanups=[],this.parent=r,!e&&r&&(this.index=(r.scopes||(r.scopes=[])).push(this)-1)}run(e){if(this.active){const t=r;try{return r=this,e()}finally{r=t}}else 0}on(){r=this}off(){r=this.parent}stop(e){if(this.active){let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);if(!this.detached&&this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0,this.active=!1}}}function o(e,t=r){t&&t.active&&t.effects.push(e)}const s=e=>{const t=new Set(e);return t.w=0,t.n=0,t},l=e=>(e.w&p)>0,c=e=>(e.n&p)>0,d=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=p},h=e=>{const{deps:t}=e;if(t.length){let n=0;for(let i=0;i<t.length;i++){const r=t[i];l(r)&&!c(r)?r.delete(e):t[n++]=r,r.w&=~p,r.n&=~p}t.length=n}},u=new WeakMap;let v=0,p=1;const f=30;let g;const m=Symbol(""),b=Symbol("");class y{constructor(e,t=null,n){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],this.parent=void 0,o(this,n)}run(){if(!this.active)return this.fn();let e=g,t=_;while(e){if(e===this)return;e=e.parent}try{return this.parent=g,g=this,_=!0,p=1<<++v,v<=f?d(this):w(this),this.fn()}finally{v<=f&&h(this),p=1<<--v,g=this.parent,_=t,this.parent=void 0,this.deferStop&&this.stop()}}stop(){g===this?this.deferStop=!0:this.active&&(w(this),this.onStop&&this.onStop(),this.active=!1)}}function w(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let _=!0;const x=[];function k(){x.push(_),_=!1}function z(){const e=x.pop();_=void 0===e||e}function E(e,t,n){if(_&&g){let t=u.get(e);t||u.set(e,t=new Map);let i=t.get(n);i||t.set(n,i=s());const r=void 0;S(i,r)}}function S(e,t){let n=!1;v<=f?c(e)||(e.n|=p,n=!l(e)):n=!e.has(g),n&&(e.add(g),g.deps.push(e))}function C(e,t,n,r,a,o){const l=u.get(e);if(!l)return;let c=[];if("clear"===t)c=[...l.values()];else if("length"===n&&(0,i.kJ)(e)){const e=(0,i.He)(r);l.forEach(((t,n)=>{("length"===n||n>=e)&&c.push(t)}))}else switch(void 0!==n&&c.push(l.get(n)),t){case"add":(0,i.kJ)(e)?(0,i.S0)(n)&&c.push(l.get("length")):(c.push(l.get(m)),(0,i._N)(e)&&c.push(l.get(b)));break;case"delete":(0,i.kJ)(e)||(c.push(l.get(m)),(0,i._N)(e)&&c.push(l.get(b)));break;case"set":(0,i._N)(e)&&c.push(l.get(m));break}if(1===c.length)c[0]&&T(c[0]);else{const e=[];for(const t of c)t&&e.push(...t);T(s(e))}}function T(e,t){const n=(0,i.kJ)(e)?e:[...e];for(const i of n)i.computed&&N(i,t);for(const i of n)i.computed||N(i,t)}function N(e,t){(e!==g||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const I=(0,i.fY)("__proto__,__v_isRef,__isVue"),O=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(i.yk)),A=B(),R=B(!1,!0),D=B(!0),L=P();function P(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=Te(this);for(let t=0,r=this.length;t<r;t++)E(n,"get",t+"");const i=n[t](...e);return-1===i||!1===i?n[t](...e.map(Te)):i}})),["push","pop","shift","unshift","splice"].forEach((t=>{e[t]=function(...e){k();const n=Te(this)[t].apply(this,e);return z(),n}})),e}function B(e=!1,t=!1){return function(n,r,a){if("__v_isReactive"===r)return!e;if("__v_isReadonly"===r)return e;if("__v_isShallow"===r)return t;if("__v
/*!
JSZip v3.10.1 - A JavaScript class for generating and reading zip files
<http://stuartk.com/jszip>
(c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.
JSZip uses the library pako released under the MIT license :
https://github.com/nodeca/pako/blob/main/LICENSE
*/
(function(t){e.exports=t()})((function(){return function e(t,n,i){function r(o,s){if(!n[o]){if(!t[o]){var l=void 0;if(!s&&l)return require(o,!0);if(a)return a(o,!0);var c=new Error("Cannot find module '"+o+"'");throw c.code="MODULE_NOT_FOUND",c}var d=n[o]={exports:{}};t[o][0].call(d.exports,(function(e){var n=t[o][1][e];return r(n||e)}),d,d.exports,e,t,n,i)}return n[o].exports}for(var a=void 0,o=0;o<i.length;o++)r(i[o]);return r}({1:[function(e,t,n){"use strict";var i=e("./utils"),r=e("./support"),a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.encode=function(e){var t,n,r,o,s,l,c,d=[],h=0,u=e.length,v=u,p="string"!==i.getTypeOf(e);while(h<e.length)v=u-h,p?(t=e[h++],n=h<u?e[h++]:0,r=h<u?e[h++]:0):(t=e.charCodeAt(h++),n=h<u?e.charCodeAt(h++):0,r=h<u?e.charCodeAt(h++):0),o=t>>2,s=(3&t)<<4|n>>4,l=v>1?(15&n)<<2|r>>6:64,c=v>2?63&r:64,d.push(a.charAt(o)+a.charAt(s)+a.charAt(l)+a.charAt(c));return d.join("")},n.decode=function(e){var t,n,i,o,s,l,c,d=0,h=0,u="data:";if(e.substr(0,u.length)===u)throw new Error("Invalid base64 input, it looks like a data url.");e=e.replace(/[^A-Za-z0-9+/=]/g,"");var v,p=3*e.length/4;if(e.charAt(e.length-1)===a.charAt(64)&&p--,e.charAt(e.length-2)===a.charAt(64)&&p--,p%1!==0)throw new Error("Invalid base64 input, bad content length.");v=r.uint8array?new Uint8Array(0|p):new Array(0|p);while(d<e.length)o=a.indexOf(e.charAt(d++)),s=a.indexOf(e.charAt(d++)),l=a.indexOf(e.charAt(d++)),c=a.indexOf(e.charAt(d++)),t=o<<2|s>>4,n=(15&s)<<4|l>>2,i=(3&l)<<6|c,v[h++]=t,64!==l&&(v[h++]=n),64!==c&&(v[h++]=i);return v}},{"./support":30,"./utils":32}],2:[function(e,t,n){"use strict";var i=e("./external"),r=e("./stream/DataWorker"),a=e("./stream/Crc32Probe"),o=e("./stream/DataLengthProbe");function s(e,t,n,i,r){this.compressedSize=e,this.uncompressedSize=t,this.crc32=n,this.compression=i,this.compressedContent=r}s.prototype={getContentWorker:function(){var e=new r(i.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new o("data_length")),t=this;return e.on("end",(function(){if(this.streamInfo["data_length"]!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),e},getCompressedWorker:function(){return new r(i.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},s.createWorkerFrom=function(e,t,n){return e.pipe(new a).pipe(new o("uncompressedSize")).pipe(t.compressWorker(n)).pipe(new o("compressedSize")).withStreamInfo("compression",t)},t.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,t,n){"use strict";var i=e("./stream/GenericWorker");n.STORE={magic:"\0\0",compressWorker:function(){return new i("STORE compression")},uncompressWorker:function(){return new i("STORE decompression")}},n.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,t,n){"use strict";var i=e("./utils");function r(){for(var e,t=[],n=0;n<256;n++){e=n;for(var i=0;i<8;i++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}var a=r();function o(e,t,n,i){var r=a,o=i+n;e^=-1;for(var s=i;s<o;s++)e=e>>>8^r[255&(e^t[s])];return-1^e}function s(e,t,n,i){var r=a,o=i+n;e^=-1;for(var s=i;s<o;s++)e=e>>>8^r[255&(e^t.charCodeAt(s))];return-1^e}t.exports=function(e,t){if("undefined"===typeof e||!e.length)return 0;var n="string"!==i.getTypeOf(e);return n?o(0|t,e,e.length,0):s(0|t,e,e.length,0)}},{"./utils":32}],5:[function(e,t,n){"use strict";n.base64=!1,n.binary=!1,n.dir=!1,n.createFolders=!0,n.date=null,n.compression=null,n.compressionOptions=null,n.comment=null,n.unixPermissions=null,n.dosPermissions=null},{}],6:[function(e,t,n){"use strict";var i=null;i="undefined"!==typeof Promise?Promise:e("lie"),t.exports={Promise:i}},{lie:37}],7:[function(e,t,n){"use strict";var i="undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint16Array&&"undefined"!==typeof Uint32Array,r=e("pako"),a=e("./utils"),o=e("./stream
/*!
localForage -- Offline Storage, Improved
Version 1.10.0
https://localforage.github.io/localForage
(c) 2013-2017 Mozilla, Apache License 2.0
*/
(function(t){e.exports=t()})((function(){return function e(t,n,i){function r(o,s){if(!n[o]){if(!t[o]){var l=void 0;if(!s&&l)return require(o,!0);if(a)return a(o,!0);var c=new Error("Cannot find module '"+o+"'");throw c.code="MODULE_NOT_FOUND",c}var d=n[o]={exports:{}};t[o][0].call(d.exports,(function(e){var n=t[o][1][e];return r(n||e)}),d,d.exports,e,t,n,i)}return n[o].exports}for(var a=void 0,o=0;o<i.length;o++)r(i[o]);return r}({1:[function(e,t,i){(function(e){"use strict";var n,i,r=e.MutationObserver||e.WebKitMutationObserver;if(r){var a=0,o=new r(d),s=e.document.createTextNode("");o.observe(s,{characterData:!0}),n=function(){s.data=a=++a%2}}else if(e.setImmediate||"undefined"===typeof e.MessageChannel)n="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){d(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(d,0)};else{var l=new e.MessageChannel;l.port1.onmessage=d,n=function(){l.port2.postMessage(0)}}var c=[];function d(){var e,t;i=!0;var n=c.length;while(n){t=c,c=[],e=-1;while(++e<n)t[e]();n=c.length}i=!1}function h(e){1!==c.push(e)||i||n()}t.exports=h}).call(this,"undefined"!==typeof n.g?n.g:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{}],2:[function(e,t,n){"use strict";var i=e(1);function r(){}var a={},o=["REJECTED"],s=["FULFILLED"],l=["PENDING"];function c(e){if("function"!==typeof e)throw new TypeError("resolver must be a function");this.state=l,this.queue=[],this.outcome=void 0,e!==r&&v(this,e)}function d(e,t,n){this.promise=e,"function"===typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"===typeof n&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function h(e,t,n){i((function(){var i;try{i=t(n)}catch(r){return a.reject(e,r)}i===e?a.reject(e,new TypeError("Cannot resolve promise with itself")):a.resolve(e,i)}))}function u(e){var t=e&&e.then;if(e&&("object"===typeof e||"function"===typeof e)&&"function"===typeof t)return function(){t.apply(e,arguments)}}function v(e,t){var n=!1;function i(t){n||(n=!0,a.reject(e,t))}function r(t){n||(n=!0,a.resolve(e,t))}function o(){t(r,i)}var s=p(o);"error"===s.status&&i(s.value)}function p(e,t){var n={};try{n.value=e(t),n.status="success"}catch(i){n.status="error",n.value=i}return n}function f(e){return e instanceof this?e:a.resolve(new this(r),e)}function g(e){var t=new this(r);return a.reject(t,e)}function m(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n=e.length,i=!1;if(!n)return this.resolve([]);var o=new Array(n),s=0,l=-1,c=new this(r);while(++l<n)d(e[l],l);return c;function d(e,r){function l(e){o[r]=e,++s!==n||i||(i=!0,a.resolve(c,o))}t.resolve(e).then(l,(function(e){i||(i=!0,a.reject(c,e))}))}}function b(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n=e.length,i=!1;if(!n)return this.resolve([]);var o=-1,s=new this(r);while(++o<n)l(e[o]);return s;function l(e){t.resolve(e).then((function(e){i||(i=!0,a.resolve(s,e))}),(function(e){i||(i=!0,a.reject(s,e))}))}}t.exports=c,c.prototype["catch"]=function(e){return this.then(null,e)},c.prototype.then=function(e,t){if("function"!==typeof e&&this.state===s||"function"!==typeof t&&this.state===o)return this;var n=new this.constructor(r);if(this.state!==l){var i=this.state===s?e:t;h(n,i,this.outcome)}else this.queue.push(new d(n,e,t));return n},d.prototype.callFulfilled=function(e){a.resolve(this.promise,e)},d.prototype.otherCallFulfilled=function(e){h(this.promise,this.onFulfilled,e)},d.prototype.callRejected=function(e){a.reject(this.promise,e)},d.prototype.otherCallRejected=function(e){h(this.promise,this.onRejected,e)},a.resolve=function(e,t){var n=p(u,t);if("error"===n.status)return a.reject(e,n.value);var i=n.value;if(i)v(e,i);else{e.state=s,e.outcome=t;var r=-1,o=e.queue.length;while(++r<o)e.queue[r].callFulf
/*!
* vue-router v4.1.6
* (c) 2022 Eduardo San Martin Morote
* @license MIT
*/
const a="undefined"!==typeof window;function o(e){return e.__esModule||"Module"===e[Symbol.toStringTag]}const s=Object.assign;function l(e,t){const n={};for(const i in t){const r=t[i];n[i]=d(r)?r.map(e):e(r)}return n}const c=()=>{},d=Array.isArray;const h=/\/$/,u=e=>e.replace(h,"");function v(e,t,n="/"){let i,r={},a="",o="";const s=t.indexOf("#");let l=t.indexOf("?");return s<l&&s>=0&&(l=-1),l>-1&&(i=t.slice(0,l),a=t.slice(l+1,s>-1?s:t.length),r=e(a)),s>-1&&(i=i||t.slice(0,s),o=t.slice(s,t.length)),i=_(null!=i?i:t,n),{fullPath:i+(a&&"?")+a+o,path:i,query:r,hash:o}}function p(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function f(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function g(e,t,n){const i=t.matched.length-1,r=n.matched.length-1;return i>-1&&i===r&&m(t.matched[i],n.matched[r])&&b(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function m(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function b(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!y(e[n],t[n]))return!1;return!0}function y(e,t){return d(e)?w(e,t):d(t)?w(t,e):e===t}function w(e,t){return d(t)?e.length===t.length&&e.every(((e,n)=>e===t[n])):1===e.length&&e[0]===t}function _(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),i=e.split("/");let r,a,o=n.length-1;for(r=0;r<i.length;r++)if(a=i[r],"."!==a){if(".."!==a)break;o>1&&o--}return n.slice(0,o).join("/")+"/"+i.slice(r-(r===i.length?1:0)).join("/")}var x,k;(function(e){e["pop"]="pop",e["push"]="push"})(x||(x={})),function(e){e["back"]="back",e["forward"]="forward",e["unknown"]=""}(k||(k={}));function z(e){if(!e)if(a){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),u(e)}const E=/^[^#]+#/;function S(e,t){return e.replace(E,"#")+t}function C(e,t){const n=document.documentElement.getBoundingClientRect(),i=e.getBoundingClientRect();return{behavior:t.behavior,left:i.left-n.left-(t.left||0),top:i.top-n.top-(t.top||0)}}const T=()=>({left:window.pageXOffset,top:window.pageYOffset});function N(e){let t;if("el"in e){const n=e.el,i="string"===typeof n&&n.startsWith("#");0;const r="string"===typeof n?i?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=C(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.pageXOffset,null!=t.top?t.top:window.pageYOffset)}function I(e,t){const n=history.state?history.state.position-t:-1;return n+e}const O=new Map;function A(e,t){O.set(e,t)}function R(e){const t=O.get(e);return O.delete(e),t}let D=()=>location.protocol+"//"+location.host;function L(e,t){const{pathname:n,search:i,hash:r}=t,a=e.indexOf("#");if(a>-1){let t=r.includes(e.slice(a))?e.slice(a).length:1,n=r.slice(t);return"/"!==n[0]&&(n="/"+n),f(n,"")}const o=f(n,e);return o+i+r}function P(e,t,n,i){let r=[],a=[],o=null;const l=({state:a})=>{const s=L(e,location),l=n.value,c=t.value;let d=0;if(a){if(n.value=s,t.value=a,o&&o===l)return void(o=null);d=c?a.position-c.position:0}else i(s);r.forEach((e=>{e(n.value,l,{delta:d,type:x.pop,direction:d?d>0?k.forward:k.back:k.unknown})}))};function c(){o=n.value}function d(e){r.push(e);const t=()=>{const t=r.indexOf(e);t>-1&&r.splice(t,1)};return a.push(t),t}function h(){const{history:e}=window;e.state&&e.replaceState(s({},e.state,{scroll:T()}),"")}function u(){for(const e of a)e();a=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",h)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",h),{pauseListeners:c,listen:d,destroy:u}}function B(e,t,n,i=!1,r=!1){return{back:e,current:t,forward:n,replaced:i,position:window.history.length,scroll:r?T():null}}function F(e){const{history:t,location:n}=window,i={value:L(e,n)},r={value:t.state};function a(i,a,o){const s=e.indexOf("#"),l=s>-1?(n.host&&document.querySelector("base")?e:e.slice(s))+i:D()+e+i;try{t[o?"replaceState":"pushState"](a,"",l)
//# sourceMappingURL=chunk-vendors.9aae0e0a.js.map