Files
fad_oa/ruoyi-ui/public/file-viewer/assets/src-CmLfrMFg.js

5 lines
309 KiB
JavaScript
Raw Normal View History

import{A as e,D as t,M as n,k as r}from"./package-Bop5TfAT.js";var i=t(((e,t)=>{var n=void 0;t.exports=function(e){return e!==n&&e!==null}})),a=t(((e,t)=>{var n=i(),r={object:!0,function:!0,undefined:!0};t.exports=function(e){return n(e)?hasOwnProperty.call(r,typeof e):!1}})),o=t(((e,t)=>{var n=a();t.exports=function(e){if(!n(e))return!1;try{return e.constructor?e.constructor.prototype===e:!1}catch{return!1}}})),s=t(((e,t)=>{var n=o();t.exports=function(e){if(typeof e!=`function`||!hasOwnProperty.call(e,`length`))return!1;try{if(typeof e.length!=`number`||typeof e.call!=`function`||typeof e.apply!=`function`)return!1}catch{return!1}return!n(e)}})),c=t(((e,t)=>{var n=s(),r=/^\s*class[\s{/}]/,i=Function.prototype.toString;t.exports=function(e){return!(!n(e)||r.test(i.call(e)))}})),l=t(((e,t)=>{t.exports=function(){var e=Object.assign,t;return typeof e==`function`?(t={foo:`raz`},e(t,{bar:`dwa`},{trzy:`trzy`}),t.foo+t.bar+t.trzy===`razdwatrzy`):!1}})),u=t(((e,t)=>{t.exports=function(){try{return!0}catch{return!1}}})),d=t(((e,t)=>{t.exports=function(){}})),f=t(((e,t)=>{var n=d()();t.exports=function(e){return e!==n&&e!==null}})),p=t(((e,t)=>{var n=f(),r=Object.keys;t.exports=function(e){return r(n(e)?Object(e):e)}})),m=t(((e,t)=>{t.exports=u()()?Object.keys:p()})),h=t(((e,t)=>{var n=f();t.exports=function(e){if(!n(e))throw TypeError(`Cannot use null or undefined`);return e}})),g=t(((e,t)=>{var n=m(),r=h(),i=Math.max;t.exports=function(e,t){var a,o,s=i(arguments.length,2),c;for(e=Object(r(e)),c=function(n){try{e[n]=t[n]}catch(e){a||=e}},o=1;o<s;++o)t=arguments[o],n(t).forEach(c);if(a!==void 0)throw a;return e}})),_=t(((e,t)=>{t.exports=l()()?Object.assign:g()})),v=t(((e,t)=>{var n=f(),r=Array.prototype.forEach,i=Object.create,a=function(e,t){for(var n in e)t[n]=e[n]};t.exports=function(e){var t=i(null);return r.call(arguments,function(e){n(e)&&a(Object(e),t)}),t}})),y=t(((e,t)=>{var n=`razdwatrzy`;t.exports=function(){return typeof n.contains==`function`?n.contains(`dwa`)===!0&&n.contains(`foo`)===!1:!1}})),b=t(((e,t)=>{var n=String.prototype.indexOf;t.exports=function(e){return n.call(this,e,arguments[1])>-1}})),x=t(((e,t)=>{t.exports=y()()?String.prototype.contains:b()})),S=t(((e,t)=>{var n=i(),r=c(),a=_(),o=v(),s=x(),l=t.exports=function(e,t){var r,i,c,l,u;return arguments.length<2||typeof e!=`string`?(l=t,t=e,e=null):l=arguments[2],n(e)?(r=s.call(e,`c`),i=s.call(e,`e`),c=s.call(e,`w`)):(r=c=!0,i=!1),u={value:t,configurable:r,enumerable:i,writable:c},l?a(o(l),u):u};l.gs=function(e,t,i){var c,l,u,d;return typeof e==`string`?u=arguments[3]:(u=i,i=t,t=e,e=null),n(t)?r(t)?n(i)?r(i)||(u=i,i=void 0):i=void 0:(u=t,t=i=void 0):t=void 0,n(e)?(c=s.call(e,`c`),l=s.call(e,`e`)):(c=!0,l=!1),d={get:t,set:i,configurable:c,enumerable:l},u?a(o(u),d):d}})),C=t(((e,t)=>{t.exports=function(e){if(typeof e!=`function`)throw TypeError(e+` is not a function`);return e}})),w=t(((e,t)=>{var n=S(),r=C(),i=Function.prototype.apply,a=Function.prototype.call,o=Object.create,s=Object.defineProperty,c=Object.defineProperties,l=Object.prototype.hasOwnProperty,u={configurable:!0,enumerable:!1,writable:!0},d=function(e,t){var n;return r(t),l.call(this,`__ee__`)?n=this.__ee__:(n=u.value=o(null),s(this,`__ee__`,u),u.value=null),n[e]?typeof n[e]==`object`?n[e].push(t):n[e]=[n[e],t]:n[e]=t,this},f=function(e,t){var n,a;return r(t),a=this,d.call(this,e,n=function(){p.call(a,e,n),i.call(t,this,arguments)}),n.__eeOnceListener__=t,this},p=function(e,t){var n,i,a,o;if(r(t),!l.call(this,`__ee__`)||(n=this.__ee__,!n[e]))return this;if(i=n[e],typeof i==`object`)for(o=0;a=i[o];++o)(a===t||a.__eeOnceListener__===t)&&(i.length===2?n[e]=i[+!o]:i.splice(o,1));else (i===t||i.__eeOnceListener__===t)&&delete n[e];return this},m=function(e){var t,n,r,o,s;if(l.call(this,`__ee__`)&&(o=this.__ee__[e],o))if(typeof o==`object`){for(n=arguments.length,s=Array(n-1),t=1;t<n;++t)s[t-1]=arguments[t];for(o=o.slice(),t=0;r=o[t];++t)i.call(r,this,s)}else switch(arguments.length){case 1:a.call(o,this);break;case 2:a.call(o,this,arguments[1]);break;case 3:a.call(o,this,arguments[1],arguments[
@`+(e.systemId||``)+`#[line:`+e.lineNumber+`,col:`+e.columnNumber+`]`}function m(e,t,n){return typeof e==`string`?e.substr(t,n):e.length>=t+n||t?new java.lang.String(e,t,n)+``:e}`endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl`.replace(/\w+/g,function(e){d.prototype[e]=function(){return null}});function h(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}e.__DOMHandler=d,e.DOMParser=l,e.DOMImplementation=n.DOMImplementation,e.XMLSerializer=n.XMLSerializer})),A=t((e=>{var t=E();e.DOMImplementation=t.DOMImplementation,e.XMLSerializer=t.XMLSerializer,e.DOMParser=k().DOMParser})),j=n(w()),M=r({RangeObject:()=>Te,blob2base64:()=>be,borders:()=>fe,bounds:()=>de,createBase64Url:()=>U,createBlob:()=>he,createBlobUrl:()=>ge,defaults:()=>se,defer:()=>Y,documentHeight:()=>re,extend:()=>L,filterChildren:()=>Ce,findChildren:()=>xe,getParentByTagName:()=>we,indexOfElementNode:()=>B,indexOfNode:()=>me,indexOfSorted:()=>ue,indexOfTextNode:()=>z,insert:()=>ce,isElement:()=>ie,isFloat:()=>ae,isNumber:()=>I,isXml:()=>V,locationOf:()=>le,nodeBounds:()=>R,parents:()=>Se,parse:()=>G,prefixed:()=>oe,qs:()=>K,qsa:()=>q,qsp:()=>J,querySelectorByType:()=>X,requestAnimationFrame:()=>N,revokeBlobUrl:()=>H,sprint:()=>_e,treeWalker:()=>ve,type:()=>W,uuid:()=>ne,walk:()=>ye,windowBounds:()=>pe}),ee=A(),N=typeof window<`u`?window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame:!1,P=1,te=3,F=typeof URL<`u`?URL:typeof window<`u`?window.URL||window.webkitURL||window.mozURL:void 0;function ne(){var e=new Date().getTime();return`xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx`.replace(/[xy]/g,function(t){var n=(e+Math.random()*16)%16|0;return e=Math.floor(e/16),(t==`x`?n:n&7|8).toString(16)})}function re(){return Math.max(document.documentElement.clientHeight,document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight)}function ie(e){return!!(e&&e.nodeType==1)}function I(e){return!isNaN(parseFloat(e))&&isFinite(e)}function ae(e){let t=parseFloat(e);return I(e)===!1?!1:typeof e==`string`&&e.indexOf(`.`)>-1?!0:Math.floor(t)!==t}function oe(e){var t=[`Webkit`,`webkit`,`Moz`,`O`,`ms`],n=[`-webkit-`,`-webkit-`,`-moz-`,`-o-`,`-ms-`],r=e.toLowerCase(),i=t.length;if(typeof document>`u`||document.body.style[r]!==void 0)return e;for(var a=0;a<i;a++)if(document.body.style[n[a]+r]!==void 0)return n[a]+r;return e}function se(e){for(var t=1,n=arguments.length;t<n;t++){var r=arguments[t];for(var i in r)e[i]===void 0&&(e[i]=r[i])}return e}function L(e){return[].slice.call(arguments,1).forEach(function(t){t&&Object.getOwnPropertyNames(t).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}),e}function ce(e,t,n){var r=le(e,t,n);return t.splice(r,0,e),r}function le(e,t,n,r,i){var a=r||0,o=i||t.length,s=parseInt(a+(o-a)/2),c;return n||=function(e,t){if(e>t)return 1;if(e<t)return-1;if(e==t)return 0},o-a<=0?s:(c=n(t[s],e),o-a===1?c>=0?s:s+1:c===0?s:c===-1?le(e,t,n,s,o):le(e,t,n,a,s))}function ue(e,t,n,r,i){var a=r||0,o=i||t.length,s=parseInt(a+(o-a)/2),c;return n||=function(e,t){if(e>t)return 1;if(e<t)return-1;if(e==t)return 0},o-a<=0?-1:(c=n(t[s],e),o-a===1?c===0?s:-1:c===0?s:c===-1?ue(e,t,n,s,o):ue(e,t,n,a,s))}function de(e){var t=window.getComputedStyle(e),n=[`width`,`paddingRight`,`paddingLeft`,`marginRight`,`marginLeft`,`borderRightWidth`,`borderLeftWidth`],r=[`height`,`paddingTop`,`paddingBottom`,`marginTop`,`marginBottom`,`borderTopWidth`,`borderBottomWidth`],i=0,a=0;return n.forEach(function(e){i+=parseFloat(t[e])||0}),r.forEach(function(e){a+=parseFloat(t[e])||0}),{height:a,width:i}}function fe(e){var t=window.getComputedStyle(e),n=[`paddingRight`,`paddingLeft`,`marginRight`,`marginLeft`,`borderRightWidth`,`borderLeftWidth`],r=[`paddingTop`,`paddingBottom`,`marginTop`,`marginBottom`,`borderTopWidth`,`borderBottomWidth`],i=0,a=0;return n.forEach(function(e){i+=parseFloat(t[
`),e.split(` `).length}parseWords(e,t,n,r){var i=t.cfiBase,a=[],o=e.ownerDocument,s=K(o,`body`),c=n,l=r?r.spinePos!==t.index:!0,u;return r&&t.index===r.spinePos&&(u=r.findNode(r.range?r.path.steps.concat(r.start.steps):r.path.steps,e.ownerDocument)),_e(s,function(e){if(!l)if(e===u)l=!0;else return!1;if(e.textContent.length<10&&e.textContent.trim().length===0)return!1;var t=this.countWords(e.textContent),n,r=0;if(t===0)return!1;for(n=c-this._wordCounter,n>t&&(this._wordCounter+=t,r=t);r<t;)if(n=c-this._wordCounter,r+n>=t)this._wordCounter+=t-r,r=t;else{r+=n;let t=new Q(e,i);a.push({cfi:t.toString(),wordCount:this._wordCounter}),this._wordCounter=0}}.bind(this)),a}locationFromCfi(e){let t;return Q.prototype.isCfiString(e)&&(e=new Q(e)),this._locations.length===0?-1:(t=le(e,this._locations,this.epubcfi.compare),t>this.total?this.total:t)}percentageFromCfi(e){if(this._locations.length===0)return null;var t=this.locationFromCfi(e);return this.percentageFromLocation(t)}percentageFromLocation(e){return!e||!this.total?0:e/this.total}cfiFromLocation(e){var t=-1;return typeof e!=`number`&&(e=parseInt(e)),e>=0&&e<this._locations.length&&(t=this._locations[e]),t}cfiFromPercentage(e){let t;if(e>1&&console.warn(`Normalize cfiFromPercentage value to between 0 - 1`),e>=1){let e=new Q(this._locations[this.total]);return e.collapse(),e.toString()}return t=Math.ceil(this.total*e),this.cfiFromLocation(t)}load(e){return typeof e==`string`?this._locations=JSON.parse(e):this._locations=e,this.total=this._locations.length-1,this._locations}save(){return JSON.stringify(this._locations)}getCurrent(){return this._current}setCurrent(e){var t;if(typeof e==`string`)this._currentCfi=e;else if(typeof e==`number`)this._current=e;else return;this._locations.length!==0&&(typeof e==`string`?(t=this.locationFromCfi(e),this._current=t):t=e,this.emit($.LOCATIONS.CHANGED,{percentage:this.percentageFromLocation(t)}))}get currentLocation(){return this._current}set currentLocation(e){this.setCurrent(e)}length(){return this._locations.length}destroy(){this.spine=void 0,this.request=void 0,this.pause=void 0,this.q.stop(),this.q=void 0,this.epubcfi=void 0,this._locations=void 0,this.total=void 0,this.break=void 0,this._current=void 0,this.currentLocation=void 0,this._currentCfi=void 0,clearTimeout(this.processingTimeout)}};(0,j.default)(He.prototype);var Ue=class{constructor(e){this.packagePath=``,this.directory=``,this.encoding=``,e&&this.parse(e)}parse(e){var t;if(!e)throw Error(`Container File Not Found`);if(t=K(e,`rootfile`),!t)throw Error(`No RootFile Found`);this.packagePath=t.getAttribute(`full-path`),this.directory=Z.default.dirname(this.packagePath),this.encoding=e.xmlEncoding}destroy(){this.packagePath=void 0,this.directory=void 0,this.encoding=void 0}},We=class{constructor(e){this.manifest={},this.navPath=``,this.ncxPath=``,this.coverPath=``,this.spineNodeIndex=0,this.spine=[],this.metadata={},e&&this.parse(e)}parse(e){var t,n,r;if(!e)throw Error(`Package File Not Found`);if(t=K(e,`metadata`),!t)throw Error(`No Metadata Found`);if(n=K(e,`manifest`),!n)throw Error(`No Manifest Found`);if(r=K(e,`spine`),!r)throw Error(`No Spine Found`);return this.manifest=this.parseManifest(n),this.navPath=this.findNavPath(n),this.ncxPath=this.findNcxPath(n,r),this.coverPath=this.findCoverPath(e),this.spineNodeIndex=B(r),this.spine=this.parseSpine(r,this.manifest),this.uniqueIdentifier=this.findUniqueIdentifier(e),this.metadata=this.parseMetadata(t),this.metadata.direction=r.getAttribute(`page-progression-direction`),{metadata:this.metadata,spine:this.spine,manifest:this.manifest,navPath:this.navPath,ncxPath:this.ncxPath,coverPath:this.coverPath,spineNodeIndex:this.spineNodeIndex}}parseMetadata(e){var t={};return t.title=this.getElementText(e,`title`),t.creator=this.getElementText(e,`creator`),t.description=this.getElementText(e,`description`),t.pubdate=this.getElementText(e,`date`),t.publisher=this.getElementText(e,`publisher`),t.identifier=this.getElementText(e,`identifier`),t.language=this.getElementText(e,`language`),t.rights=this.getElementText(e,`rights`),t.modified
`}n.insertRule(s+`{`+c+`}`,n.cssRules.length)}else Object.keys(e).forEach(t=>{let r=e[t];if(Array.isArray(r))r.forEach(e=>{let r=Object.keys(e).map(t=>`${t}:${e[t]}`).join(`;`);n.insertRule(`${t}{${r}}`,n.cssRules.length)});else{let e=Object.keys(r).map(e=>`${e}:${r[e]}`).join(`;`);n.insertRule(`${t}{${e}}`,n.cssRules.length)}})}addScript(e){return new Promise(function(t,n){var r,i=!1;if(!this.document){t(!1);return}r=this.document.createElement(`script`),r.type=`text/javascript`,r.async=!0,r.src=e,r.onload=r.onreadystatechange=function(){!i&&(!this.readyState||this.readyState==`complete`)&&(i=!0,setTimeout(function(){t(!0)},1))},this.document.head.appendChild(r)}.bind(this))}addClass(e){var t;this.document&&(t=this.content||this.document.body,t&&t.classList.add(e))}removeClass(e){var t;this.document&&(t=this.content||this.document.body,t&&t.classList.remove(e))}addEventListeners(){this.document&&(this._triggerEvent=this.triggerEvent.bind(this),Ve.forEach(function(e){this.document.addEventListener(e,this._triggerEvent,{passive:!0})},this))}removeEventListeners(){this.document&&(Ve.forEach(function(e){this.document.removeEventListener(e,this._triggerEvent,{passive:!0})},this),this._triggerEvent=void 0)}triggerEvent(e){this.emit(e.type,e)}addSelectionListeners(){this.document&&(this._onSelectionChange=this.onSelectionChange.bind(this),this.document.addEventListener(`selectionchange`,this._onSelectionChange,{passive:!0}))}removeSelectionListeners(){this.document&&(this.document.removeEventListener(`selectionchange`,this._onSelectionChange,{passive:!0}),this._onSelectionChange=void 0)}onSelectionChange(e){this.selectionEndTimeout&&clearTimeout(this.selectionEndTimeout),this.selectionEndTimeout=setTimeout(function(){var e=this.window.getSelection();this.triggerSelectedEvent(e)}.bind(this),250)}triggerSelectedEvent(e){var t,n;e&&e.rangeCount>0&&(t=e.getRangeAt(0),t.collapsed||(n=new Q(t,this.cfiBase).toString(),this.emit($.CONTENTS.SELECTED,n),this.emit($.CONTENTS.SELECTED_RANGE,t)))}range(e,t){return new Q(e).toRange(this.document,t)}cfiFromRange(e,t){return new Q(e,this.cfiBase,t).toString()}cfiFromNode(e,t){return new Q(e,this.cfiBase,t).toString()}map(e){return new tt(e).section()}size(e,t){var n={scale:1,scalable:`no`};this.layoutStyle(`scrolling`),e>=0&&(this.width(e),n.width=e,this.css(`padding`,`0 `+e/12+`px`)),t>=0&&(this.height(t),n.height=t),this.css(`margin`,`0`),this.css(`box-sizing`,`border-box`),this.viewport(n)}columns(e,t,n,r,i){let a=oe(`column-axis`),o=oe(`column-gap`),s=oe(`column-width`),c=oe(`column-fill`),l=this.writingMode().indexOf(`vertical`)===0?`vertical`:`horizontal`;this.layoutStyle(`paginated`),i===`rtl`&&l===`horizontal`&&this.direction(i),this.width(e),this.height(t),this.viewport({width:e,height:t,scale:1,scalable:`no`}),this.css(`overflow-y`,`hidden`),this.css(`margin`,`0`,!0),l===`vertical`?(this.css(`padding-top`,r/2+`px`,!0),this.css(`padding-bottom`,r/2+`px`,!0),this.css(`padding-left`,`20px`),this.css(`padding-right`,`20px`),this.css(a,`vertical`)):(this.css(`padding-top`,`20px`),this.css(`padding-bottom`,`20px`),this.css(`padding-left`,r/2+`px`,!0),this.css(`padding-right`,r/2+`px`,!0),this.css(a,`horizontal`)),this.css(`box-sizing`,`border-box`),this.css(`max-width`,`inherit`),this.css(c,`auto`),this.css(o,r+`px`),this.css(s,n+`px`),this.css(`-webkit-line-box-contain`,`block glyphs replaced`)}scaler(e,t,n){var r=`scale(`+e+`)`,i=``;this.css(`transform-origin`,`top left`),(t>=0||n>=0)&&(i=` translate(`+(t||0)+`px, `+(n||0)+`px )`),this.css(`transform`,r+i)}fit(e,t,n){var r=this.viewport(),i=parseInt(r.width),a=parseInt(r.height),o=e/i,s=t/a,c=o<s?o:s;if(this.layoutStyle(`paginated`),this.width(i),this.height(a),this.overflow(`hidden`),this.scaler(c,0,0),this.css(`background-size`,i*c+`px `+a*c+`px`),this.css(`background-color`,`transparent`),n&&n.properties.includes(`page-spread-left`)){var l=e-i*c;this.css(`margin-left`,l+`px`)}}direction(e){this.documentElement&&(this.documentElement.style.direction=e)}mapPage(e,t,n,r,i){return new tt(t,i).page(this,e,n,r)}linksHandler(){Fe(this.cont
\0`,N+=c(j,2),N+=m.magic,N+=c(C,2),N+=c(w,2),N+=c(A.crc32,4),N+=c(A.compressedSize,4),N+=c(A.uncompressedSize,4),N+=c(g.length,2),N+=c(T.length,2),{fileRecord:s.LOCAL_FILE_HEADER+N+g+T,dirRecord:s.CENTRAL_FILE_HEADER+c(ee,2)+N+c(y.length,2)+`\0\0\0\0`+c(M,4)+c(i,4)+g+T+y}},f=function(e,t,n,i,a){var o=``,l=r.transformTo(`string`,a(i));return o=s.CENTRAL_DIRECTORY_END+`\0\0\0\0`+c(e,2)+c(e,2)+c(t,4)+c(n,4)+c(l.length,2)+l,o},p=function(e){var t=``;return t=s.DATA_DESCRIPTOR+c(e.crc32,4)+c(e.compressedSize,4)+c(e.uncompressedSize,4),t};function m(e,t,n,r){i.call(this,`ZipFileWorker`),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=n,this.encodeFileName=r,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}r.inherits(m,i),m.prototype.push=function(e){var t=e.meta.percent||0,n=this.entriesCount,r=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,i.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:n?(t+100*(n-r-1))/n:100}}))},m.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var n=d(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:n.fileRecord,meta:{percent:0}})}else this.accumulate=!0},m.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,n=d(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(n.dirRecord),t)this.push({data:p(e),meta:{percent:100}});else for(this.push({data:n.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},m.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t<this.dirRecords.length;t++)this.push({data:this.dirRecords[t],meta:{percent:100}});var n=this.bytesWritten-e,r=f(this.dirRecords.length,n,e,this.zipComment,this.encodeFileName);this.push({data:r,meta:{percent:100}})},m.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},m.prototype.registerPrevious=function(e){this._sources.push(e);var t=this;return e.on(`data`,function(e){t.processChunk(e)}),e.on(`end`,function(){t.closedSource(t.previous.streamInfo),t._sources.length?t.prepareNextSource():t.end()}),e.on(`error`,function(e){t.error(e)}),this},m.prototype.resume=function(){if(!i.prototype.resume.call(this))return!1;if(!this.previous&&this._sources.length)return this.prepareNextSource(),!0;if(!this.previous&&!this._sources.length&&!this.generatedError)return this.end(),!0},m.prototype.error=function(e){var t=this._sources;if(!i.prototype.error.call(this,e))return!1;for(var n=0;n<t.length;n++)try{t[n].error(e)}catch{}return!0},m.prototype.lock=function(){i.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()},t.exports=m},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(e,t,n){var r=e("../compressions"),i=e("./ZipFileWorker"),a=function(e,t){var n=e||t,i=r[n];if(!i)throw Error(n+` is not a valid compression method !`);return i};n.generateWorker=function(e,t,n){var r=new i(t.streamFiles,n,t.platform,t.encodeFileName),o=0;try{e.forEach(function(e,n){o++;var i=a(n.options.compression,t.compression),s=n.options.compressionOptions||t.compressionOptions||{},c=n.dir,l=n.date;n._compressWorker(i,s).withStreamInfo(`file`,{name:e,dir:c,date:l,comment:n.comment||``,unixPermissions:n.unixPermissions,dosPermissions:n.dosPermissions}).pipe(r)}),r.entriesCount=o}catch(e){r.error(e)}return r}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(e,t,n){function r(){if(!(this instanceof r))return new r;if(arguments.length)throw Error(`The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.`);this.files=Object.create(null),this.comment=null,