(function(e,t){'object'==typeofexports&&'object'==typeofmodule?module.exports=t(require('xmldom'),function(){try{returnrequire('jszip')}catch(t){}}()):'function'==typeofdefine&&define.amd?define(['xmldom','jszip'],t):'object'==typeofexports?exports.ePub=t(require('xmldom'),function(){try{returnrequire('jszip')}catch(t){}}()):e.ePub=t(e.xmldom,e.jszip)})(this,function(e,t){varn=String.prototype,a=Math.ceil,i=Math.round,o=Math.max,s=Math.floor;returnfunction(e){functiont(a){if(n[a])returnn[a].exports;vari=n[a]={i:a,l:!1,exports:{}};returne[a].call(i.exports,i,i.exports,t),i.l=!0,i.exports}varn={};returnt.m=e,t.c=n,t.d=function(e,n,a){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:a})},t.n=function(e){varn=e&&e.__esModule?function(){returne['default']}:function(){returne};returnt.d(n,'a',n),n},t.o=function(e,t){returnObject.prototype.hasOwnProperty.call(e,t)},t.p='/dist/',t(t.s=25)}([function(e,t,n){'use strict';functiona(e,t){if(!(einstanceoft))thrownewTypeError('Cannot call a class as a function')}functioni(){vare=newDate().getTime(),t='xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g,function(t){varn=0|(e+16*Math.random())%16;returne=s(e/16),('x'==t?n:8|7&n).toString(16)});returnt}functionr(e){return!isNaN(parseFloat(e))&&isFinite(e)}functionl(e,t,n,a,i){varo=a||0,s=i||t.length,r=parseInt(o+(s-o)/2),d;return(n||(n=function(e,t){returne>t?1:e<t?-1:e==t?0:void0}),0>=s-o)?r:(d=n(t[r],e),1==s-o?0<=d?r:r+1:0===d?r:-1===d?l(e,t,n,r,s):l(e,t,n,o,r))}functiond(e,t,n,a,i){varo=a||0,s=i||t.length,r=parseInt(o+(s-o)/2),l;return(n||(n=function(e,t){returne>t?1:e<t?-1:e==t?0:void0}),0>=s-o)?-1:(l=n(t[r],e),1==s-o?0===l?r:-1:0===l?r:-1===l?d(e,t,n,r,s):d(e,t,n,o,r))}functionu(e,t){for(varn=e.parentNode,a=n.childNodes,o=-1,s=0,i;s<a.length&&(i=a[s],i.nodeType===t&&o++,i!=e);s++);returno}functionc(e,t){returnnewBlob([e],{type:t})}functionp(e,t){return'undefined'==typeofe.querySelector?e.getElementsByTagName(t):e.querySelectorAll(t)}functionh(e,t,n){for(vara=document.createTreeWalker(e,n,null,!1),i;i=a.nextNode();)t(i)}functiong(e,t){if(t(e))return!0;if(e=e.firstChild,e)do{varn=g(e,t);if(n)return!0;e=e.nextSibling}while(e)}functionf(e){for(vart=[e];e;e=e.parentNode)t.unshift(e);returnt}Object.defineProperty(t,'__esModule',{value:!0});varm=function(){functione(e,t){for(varn=0,a;n<t.length;n++)a=t[n],a.enumerable=a.enumerable||!1,a.configurable=!0,'value'ina&&(a.writable=!0),Object.defineProperty(e,a.key,a)}returnfunction(t,n,a){returnn&&e(t.prototype,n),a&&e(t,a),t}}();t.uuid=i,t.documentHeight=function(){returno(document.documentElement.clientHeight,document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight)},t.isElement=function(e){return!!(e&&1==e.nodeType)},t.isNumber=r,t.isFloat=function(e){vart=parseFloat(e);returnt===e&&r(e)&&s(t)!==e},t.prefixed=function(e){vart=['Webkit','webkit','Moz','O','ms'],n=['-webkit-','-webkit-','-moz-','-o-','-ms-'],a=e[0].toUpperCase()+e.slice(1),o=t.length;if('undefined'==typeofdocument||'undefined'!=typeofdocument.body.style[e])returne;for(vars=0;s<o;s++)if('undefined'!=typeofdocument.body.style[t[s]+a])returnn[s]+e;returne},t.defaults=function(e){for(vart=1,n=arguments.length,a;t<n;t++)for(variina=arguments[t],a)void0===e[i]&&(e[i]=a[i]);returne},t.extend=function(e){vart=[].slice.call(arguments,1);returnt.forEach(function(t){t&&Object.getOwnPropertyNames(t).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}),e},t.insert=function(e,t,n){vara=l(e,t,n);returnt.splice(a,0,e),a},t.locationOf=l,t.indexOfSorted=d,t.bounds=function(e){vart=window.getComputedStyle(e),n=0,a=0;return['width','paddingRight','paddingLeft','marginRight','marginLeft','borderRightWidth','borderLeftWidth'].forEach(function(e){n+=parseFloat(t[e])||0}),['height','paddingTop','paddingBottom','marginTop','marginBottom','borderTopWidth','borderBottomWidth'].forEach(function(e){a+=parseFloat(t[e])||0}),{height:a,width:n}},t