diff --git a/assets/foliate-js/dist/bundle.js b/assets/foliate-js/dist/bundle.js index f716cf90..0b52a164 100644 --- a/assets/foliate-js/dist/bundle.js +++ b/assets/foliate-js/dist/bundle.js @@ -1,2 +1,2 @@ /*! For license information please see bundle.js.LICENSE.txt */ -!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.FoliateJS=e():t.FoliateJS=e()}("undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:this,(function(){return function(){var t,e,n,r,i={122:function(t,e,n){"use strict";var r=n(46518),i=n(44576),o=n(91955),a=n(79306),s=n(22812),u=n(79039),c=n(43724);r({global:!0,enumerable:!0,dontCallGetSet:!0,forced:u((function(){return c&&1!==Object.getOwnPropertyDescriptor(i,"queueMicrotask").value.length}))},{queueMicrotask:function(t){s(arguments.length,1),o(a(t))}})},221:function(t,e,n){"use strict";var r=n(46518),i=n(79039),o=n(20034),a=n(22195),s=n(15652),u=Object.isSealed;r({target:"Object",stat:!0,forced:s||i((function(){u(1)}))},{isSealed:function(t){return!o(t)||!(!s||"ArrayBuffer"!==a(t))||!!u&&u(t)}})},373:function(t,e,n){"use strict";var r=n(44576),i=n(27476),o=n(79039),a=n(79306),s=n(74488),u=n(94644),c=n(13709),l=n(13763),f=n(39519),h=n(3607),d=u.aTypedArray,p=u.exportTypedArrayMethod,v=r.Uint16Array,g=v&&i(v.prototype.sort),y=!(!g||o((function(){g(new v(2),null)}))&&o((function(){g(new v(2),{})}))),m=!!g&&!o((function(){if(f)return f<74;if(c)return c<67;if(l)return!0;if(h)return h<602;var t,e,n=new v(516),r=Array(516);for(t=0;t<516;t++)e=t%4,n[t]=515-t,r[t]=t-2*e+3;for(g(n,(function(t,e){return(t/4|0)-(e/4|0)})),t=0;t<516;t++)if(n[t]!==r[t])return!0}));p("sort",(function(t){return void 0!==t&&a(t),m?g(this,t):s(d(this),function(t){return function(e,n){return void 0!==t?+t(e,n)||0:n!=n?-1:e!=e?1:0===e&&0===n?1/e>0&&1/n<0?1:-1:e>n}}(t))}),!m||y)},655:function(t,e,n){"use strict";var r=n(36955),i=String;t.exports=function(t){if("Symbol"===r(t))throw new TypeError("Cannot convert a Symbol value to a string");return i(t)}},887:function(t,e,n){var r=n(16993),i=n(11791);t.exports=function(t,e,n,o,a){return new i(r().w(t,e,n,o),a||Promise)},t.exports.__esModule=!0,t.exports.default=t.exports},1103:function(t){"use strict";t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},1469:function(t,e,n){"use strict";var r=n(87433);t.exports=function(t,e){return new(r(t))(0===e?0:e)}},1480:function(t,e,n){"use strict";var r=n(46518),i=n(79039),o=n(10298).f;r({target:"Object",stat:!0,forced:i((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:o})},1548:function(t,e,n){"use strict";var r=n(44576),i=n(79039),o=n(39519),a=n(84215),s=r.structuredClone;t.exports=!!s&&!i((function(){if("DENO"===a&&o>92||"NODE"===a&&o>94||"BROWSER"===a&&o>97)return!1;var t=new ArrayBuffer(8),e=s(t,{transfer:[t]});return 0!==t.byteLength||8!==e.byteLength}))},1625:function(t,e,n){"use strict";var r=n(79504);t.exports=r({}.isPrototypeOf)},1688:function(t,e,n){"use strict";var r=n(46518),i=n(70380);r({target:"Date",proto:!0,forced:Date.prototype.toISOString!==i},{toISOString:i})},1767:function(t){"use strict";t.exports=function(t){return{iterator:t,next:t.next,done:!1}}},1886:function(t,e,n){"use strict";var r=n(69565),i=n(24074),o=n(28551),a=n(70081),s=n(1767),u=n(55966),c=n(78227)("asyncIterator");t.exports=function(t,e){var n=arguments.length<2?u(t,c):e;return n?o(r(n,t)):new i(s(a(t)))}},1951:function(t,e,n){"use strict";var r=n(78227);e.f=r},2008:function(t,e,n){"use strict";var r=n(46518),i=n(59213).filter;r({target:"Array",proto:!0,forced:!n(70597)("filter")},{filter:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},2087:function(t,e,n){"use strict";var r=n(20034),i=Math.floor;t.exports=Number.isInteger||function(t){return!r(t)&&isFinite(t)&&i(t)===t}},2222:function(t,e,n){"use strict";var r=n(46518),i=n(97751),o=n(79039),a=n(22812),s=n(655),u=n(67416),c=i("URL"),l=u&&o((function(){c.canParse()})),f=o((function(){return 1!==c.canParse.length}));r({target:"URL",stat:!0,forced:!l||f},{canParse:function(t){var e=a(arguments.length,1),n=s(t),r=e<2||void 0===arguments[1]?void 0:s(arguments[1]);try{return!!new c(n,r)}catch(t){return!1}}})},2259:function(t,e,n){"use strict";n(70511)("iterator")},2293:function(t,e,n){"use strict";var r=n(28551),i=n(35548),o=n(64117),a=n(78227)("species");t.exports=function(t,e){var n,s=r(t).constructor;return void 0===s||o(n=r(s)[a])?e:i(n)}},2360:function(t,e,n){"use strict";var r,i=n(28551),o=n(96801),a=n(88727),s=n(30421),u=n(20397),c=n(4055),l=n(66119),f="prototype",h="script",d=l("IE_PROTO"),p=function(){},v=function(t){return"<"+h+">"+t+""},g=function(t){t.write(v("")),t.close();var e=t.parentWindow.Object;return t=null,e},y=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;y="undefined"!=typeof document?document.domain&&r?g(r):(e=c("iframe"),n="java"+h+":",e.style.display="none",u.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(v("document.F=Object")),t.close(),t.F):g(r);for(var i=a.length;i--;)delete y[f][a[i]];return y()};s[d]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(p[f]=i(t),n=new p,p[f]=null,n[d]=t):n=y(),void 0===e?n:o.f(n,e)}},2419:function(t,e,n){"use strict";n.d(e,{k:function(){return d},r:function(){return v}});var r=n(80296),i=n(10467),o=n(23029),a=n(92901),s=n(54756),u=n.n(s);function c(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return l(t,e);var n={}.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)?l(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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 o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n0)return null!==(f=null===(h=a[p-1])||void 0===h?void 0:h.item)&&void 0!==f?f:o}}catch(t){l.e(t)}finally{l.f()}return a[a.length-1].item}}}]);var t}(),p=new WeakSet,v=function(){return(0,a.A)((function t(e,n,r){var i,a;(0,o.A)(this,t),function(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}(i=this,a=p),a.add(i),this.sizes=e.map((function(t){return"no"!=t.linear&&t.size>0?t.size:0})),this.sizePerLoc=n,this.sizePerTimeUnit=r,this.sizeTotal=this.sizes.reduce((function(t,e){return t+e}),0),this.sectionFractions=function(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}(p,this,g).call(this)}),[{key:"getProgress",value:function(t,e){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=this.sizes,o=this.sizePerLoc,a=this.sizePerTimeUnit,s=this.sizeTotal,u=null!==(n=i[t])&&void 0!==n?n:0,c=i.slice(0,t).reduce((function(t,e){return t+e}),0)+e*u,l=c+r*u,f=s-c,h=(1-e)*u;return{fraction:l/s,section:{current:t,total:i.length},location:{current:Math.floor(c/o),next:Math.floor(l/o),total:Math.ceil(s/o)},time:{section:h/a,total:f/a}}}},{key:"getSection",value:function(t){if(t<=0)return[0,0];if(t>=1)return[this.sizes.length-1,1];t+=Number.EPSILON;var e=this.sizeTotal,n=this.sectionFractions.findIndex((function(e){return e>t}))-1;if(n<0)return[0,0];for(;!this.sizes[n];)n++;return[n,(t-this.sectionFractions[n])/(this.sizes[n]/e)]}}])}();function g(){var t,e=this.sizeTotal,n=[0],r=0,i=c(this.sizes);try{for(i.s();!(t=i.n()).done;){var o=t.value;n.push((r+=o)/e)}}catch(t){i.e(t)}finally{i.f()}return n}},2478:function(t,e,n){"use strict";var r=n(79504),i=n(48981),o=Math.floor,a=r("".charAt),s=r("".replace),u=r("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,n,r,f,h){var d=n+t.length,p=r.length,v=l;return void 0!==f&&(f=i(f),v=c),s(h,v,(function(i,s){var c;switch(a(s,0)){case"$":return"$";case"&":return t;case"`":return u(e,0,n);case"'":return u(e,d);case"<":c=f[u(s,1,-1)];break;default:var l=+s;if(0===l)return i;if(l>p){var h=o(l/10);return 0===h?i:h<=p?void 0===r[h-1]?a(s,1):r[h-1]+a(s,1):i}c=r[l-1]}return void 0===c?"":c}))}},2892:function(t,e,n){"use strict";var r=n(46518),i=n(96395),o=n(43724),a=n(44576),s=n(19167),u=n(79504),c=n(92796),l=n(39297),f=n(23167),h=n(1625),d=n(10757),p=n(72777),v=n(79039),g=n(38480).f,y=n(77347).f,m=n(24913).f,b=n(31240),w=n(43802).trim,x="Number",k=a[x],A=s[x],S=k.prototype,E=a.TypeError,T=u("".slice),_=u("".charCodeAt),O=c(x,!k(" 0o1")||!k("0b1")||k("+0x1")),M=function(t){var e,n=arguments.length<1?0:k(function(t){var e=p(t,"number");return"bigint"==typeof e?e:function(t){var e,n,r,i,o,a,s,u,c=p(t,"number");if(d(c))throw new E("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=w(c),43===(e=_(c,0))||45===e){if(88===(n=_(c,2))||120===n)return NaN}else if(48===e){switch(_(c,1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+c}for(a=(o=T(c,2)).length,s=0;si)return NaN;return parseInt(o,r)}return+c}(e)}(t));return h(S,e=this)&&v((function(){b(e)}))?f(Object(n),this,M):n};M.prototype=S,O&&!i&&(S.constructor=M),r({global:!0,constructor:!0,wrap:!0,forced:O},{Number:M});var C=function(t,e){for(var n,r=o?g(e):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),i=0;r.length>i;i++)l(e,n=r[i])&&!l(t,n)&&m(t,n,y(e,n))};i&&A&&C(s[x],A),(O||i)&&C(s[x],k)},2945:function(t,e,n){"use strict";var r=n(46518),i=n(44576),o=n(97751),a=n(79504),s=n(69565),u=n(79039),c=n(655),l=n(22812),f=n(92804).c2i,h=/[^\d+/a-z]/i,d=/[\t\n\f\r ]+/g,p=/[=]{1,2}$/,v=o("atob"),g=String.fromCharCode,y=a("".charAt),m=a("".replace),b=a(h.exec),w=!!v&&!u((function(){return"hi"!==v("aGk=")})),x=w&&u((function(){return""!==v(" ")})),k=w&&!u((function(){v("a")})),A=w&&!u((function(){v()})),S=w&&1!==v.length;r({global:!0,bind:!0,enumerable:!0,forced:!w||x||k||A||S},{atob:function(t){if(l(arguments.length,1),w&&!x&&!k)return s(v,i,t);var e,n,r,a=m(c(t),d,""),u="",A=0,S=0;if(a.length%4==0&&(a=m(a,p,"")),(e=a.length)%4==1||b(h,a))throw new(o("DOMException"))("The string is not correctly encoded","InvalidCharacterError");for(;A>(-2*S&6)));return u}})},3238:function(t,e,n){"use strict";var r=n(44576),i=n(77811),o=n(67394),a=r.DataView;t.exports=function(t){if(!i||0!==o(t))return!1;try{return new a(t),!1}catch(t){return!0}}},3296:function(t,e,n){"use strict";n(45806)},3362:function(t,e,n){"use strict";n(10436),n(16499),n(82003),n(7743),n(51481),n(40280)},3451:function(t,e,n){"use strict";var r=n(46518),i=n(79504),o=n(30421),a=n(20034),s=n(39297),u=n(24913).f,c=n(38480),l=n(10298),f=n(34124),h=n(33392),d=n(92744),p=!1,v=h("meta"),g=0,y=function(t){u(t,v,{value:{objectID:"O"+g++,weakData:{}}})},m=t.exports={enable:function(){m.enable=function(){},p=!0;var t=c.f,e=i([].splice),n={};n[v]=1,t(n).length&&(c.f=function(n){for(var r=t(n),i=0,o=r.length;i>1,t+=l(t/e);t>455;)t=l(t/35),r+=36;return l(r+36*t/(t+38))},w=function(t){var e=[];t=function(t){for(var e=[],n=0,r=t.length;n=55296&&i<=56319&&n=a&&rl((i-c)/x))throw new u(s);for(c+=(w-a)*x,a=w,n=0;ni)throw new u(s);if(r===a){for(var k=c,A=36;;){var S=A<=v?1:A>=v+26?26:A-v;if(k=65520)return e<<15|31744;if(t<61005353927612305e-21)return e<<15|u(16777216*t);var n=0|s(t);if(-15===n)return e<<15|l;var r=u((t*c(2,-n)-1)*l);return r===l?e<<15|n+16<<10:e<<15|n+15<<10|r}(+e),arguments.length>2&&arguments[2])}})},4055:function(t,e,n){"use strict";var r=n(44576),i=n(20034),o=r.document,a=i(o)&&i(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},4294:function(t,e,n){"use strict";var r=n(46518),i=n(97751),o=n(18745),a=n(79039),s=n(14601),u="AggregateError",c=i(u),l=!a((function(){return 1!==c([1]).errors[0]}))&&a((function(){return 7!==c([1],u,{cause:7}).cause}));r({global:!0,constructor:!0,arity:2,forced:l},{AggregateError:s(u,(function(t){return function(e,n){return o(t,this,arguments)}}),l,!0)})},4360:function(t,e,n){"use strict";var r=n(46518),i=n(33164);r({target:"Math",stat:!0},{f16round:function(t){return i(t,.0009765625,65504,6103515625e-14)}})},4373:function(t){t.exports=function(t){var e=Object(t),n=[];for(var r in e)n.unshift(r);return function t(){for(;n.length;)if((r=n.pop())in e)return t.value=r,t.done=!1,t;return t.done=!0,t}},t.exports.__esModule=!0,t.exports.default=t.exports},4495:function(t,e,n){"use strict";var r=n(39519),i=n(79039),o=n(44576).String;t.exports=!!Object.getOwnPropertySymbols&&!i((function(){var t=Symbol("symbol detection");return!o(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},4633:function(t,e,n){var r=n(25172),i=n(16993),o=n(55869),a=n(887),s=n(11791),u=n(4373),c=n(30579);function l(){"use strict";var e=i(),n=e.m(l),f=(Object.getPrototypeOf?Object.getPrototypeOf(n):n.__proto__).constructor;function h(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))}var d={throw:1,return:2,break:3,continue:3};function p(t){var e,n;return function(r){e||(e={stop:function(){return n(r.a,2)},catch:function(){return r.v},abrupt:function(t,e){return n(r.a,d[t],e)},delegateYield:function(t,i,o){return e.resultName=i,n(r.d,c(t),o)},finish:function(t){return n(r.f,t)}},n=function(t,n,i){r.p=e.prev,r.n=e.next;try{return t(n,i)}finally{e.next=r.n}}),e.resultName&&(e[e.resultName]=r.v,e.resultName=void 0),e.sent=r.v,e.next=r.n;try{return t.call(this,e)}finally{r.p=e.prev,r.n=e.next}}}return(t.exports=l=function(){return{wrap:function(t,n,r,i){return e.w(p(t),n,r,i&&i.reverse())},isGeneratorFunction:h,mark:e.m,awrap:function(t,e){return new r(t,e)},AsyncIterator:s,async:function(t,e,n,r,i){return(h(e)?a:o)(p(t),e,n,r,i)},keys:u,values:c}},t.exports.__esModule=!0,t.exports.default=t.exports)()}t.exports=l,t.exports.__esModule=!0,t.exports.default=t.exports},4731:function(t,e,n){"use strict";var r=n(44576);n(10687)(r.JSON,"JSON",!0)},5240:function(t,e,n){"use strict";n(16468)("WeakSet",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),n(91625))},5457:function(t,e,n){"use strict";n.a(t,(async function(t,e){try{var r=n(80545),i=n(80296),o=n(10467),a=n(64467),s=n(23029),u=n(92901),c=n(56822),l=n(53954),f=n(85501),h=n(28614),d=n(56218),p=n(10600),v=n(54756),g=n.n(v),y=n(62248),m=n(2419),b=n(49557),w=n(79570),x=n(81234);function N(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=B(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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 o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function B(t,e){if(t){if("string"==typeof t)return z(t,e);var n={}.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)?z(t,e):void 0}}function z(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n=X(S,this).length-1)){var e={state:X(S,this)[t+1]};G(E,this,t+1),this.dispatchEvent(new CustomEvent("popstate",{detail:e})),this.dispatchEvent(new Event("index-change"))}}},{key:"canGoBack",get:function(){return X(E,this)>0}},{key:"canGoForward",get:function(){return X(E,this)window.innerWidth;)window.innerWidth,(0,r.A)("clientX");Y(F,e,Z).call(e,"click-view",{x:n,y:i})}))}function it(t){return this.renderer.getContents().find((function(e){return e.index===t&&e.overlayer}))}function ot(t){var e=this,n=t.doc,r=t.index,o=new b.u(n);n.addEventListener("click",(function(t){var n=o.hitTest(t),a=(0,i.A)(n,2),s=a[0],u=a[1];s&&!s.startsWith(A)&&(t.preventDefault(),t.stopPropagation(),Y(F,e,Z).call(e,"show-annotation",{value:s,index:r,range:u}))}),!0);var a=X(R,this).get(r);if(a){var s,u=N(a);try{for(u.s();!(s=u.n()).done;){var c=s.value;this.addAnnotation(c)}}catch(t){u.e(t)}finally{u.f()}}return Y(F,this,Z).call(this,"create-overlay",{index:r}),o}function at(t,e,n){var r=this;return(0,p.A)(g().mark((function i(){var o,a,s,u,c,l,f;return g().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=1,(0,d.A)(r.book.sections[n].createDocument());case 1:o=i.sent,a=N(t(o,e)),i.prev=2,a.s();case 3:if((s=a.n()).done){i.next=5;break}return u=s.value,c=u.range,l=u.excerpt,i.next=4,{cfi:r.getCFI(n,c),excerpt:l};case 4:i.next=3;break;case 5:i.next=7;break;case 6:i.prev=6,f=i.catch(2),a.e(f);case 7:return i.prev=7,a.f(),i.finish(7);case 8:case"end":return i.stop()}}),i,null,[[2,6,7,8]])})))()}function st(t,e){var n=this;return(0,p.A)(g().mark((function r(){var o,a,s,u,c;return g().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:o=n.book.sections,a=N(o.entries()),r.prev=1,u=g().mark((function r(){var a,u,c,l,f,h;return g().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(a=(0,i.A)(s.value,2),u=a[0],c=a[1].createDocument){r.next=1;break}return r.abrupt("return",1);case 1:return r.next=2,(0,d.A)(c());case 2:return l=r.sent,f=Array.from(t(l,e),(function(t){var e=t.range,r=t.excerpt;return{cfi:n.getCFI(u,e),excerpt:r}})),h=(u+1)/o.length,r.next=3,{progress:h};case 3:if(!f.length){r.next=4;break}return r.next=4,{index:u,subitems:f};case 4:case"end":return r.stop()}}),r)})),a.s();case 2:if((s=a.n()).done){r.next=5;break}return r.delegateYield(u(),"t0",3);case 3:if(!r.t0){r.next=4;break}return r.abrupt("continue",4);case 4:r.next=2;break;case 5:r.next=7;break;case 6:r.prev=6,c=r.catch(1),a.e(c);case 7:return r.prev=7,a.f(),r.finish(7);case 8:case"end":return r.stop()}}),r,null,[[1,6,7,8]])})))()}customElements.define("foliate-view",D),e()}catch(ut){e(ut)}}),1)},5506:function(t,e,n){"use strict";var r=n(46518),i=n(32357).entries;r({target:"Object",stat:!0},{entries:function(t){return i(t)}})},5745:function(t,e,n){"use strict";var r=n(46518),i=n(77240);r({target:"String",proto:!0,forced:n(23061)("bold")},{bold:function(){return i(this,"b","","")}})},5746:function(t,e,n){"use strict";var r=n(69565),i=n(89228),o=n(28551),a=n(20034),s=n(67750),u=n(3470),c=n(655),l=n(55966),f=n(56682);i("search",(function(t,e,n){return[function(e){var n=s(this),i=a(e)?l(e,t):void 0;return i?r(i,e,n):new RegExp(e)[t](c(n))},function(t){var r=o(this),i=c(t),a=n(e,r,i);if(a.done)return a.value;var s=r.lastIndex;u(s,0)||(r.lastIndex=0);var l=f(r,i);return u(r.lastIndex,s)||(r.lastIndex=s),null===l?-1:l.index}]}))},5914:function(t,e,n){"use strict";n(46518)({target:"Math",stat:!0},{sign:n(77782)})},6372:function(t,e,n){"use strict";var r=n(46518),i=n(97751),o=n(20034),a=n(36955),s=n(79039),u="Error",c="DOMException",l=Object.setPrototypeOf||{}.__proto__,f=i(c),h=Error,d=h.isError;r({target:"Error",stat:!0,sham:!0,forced:!d||!l||s((function(){return f&&!d(new f(c))||!d(new h(u,{cause:function(){}}))||d(i("Object","create")(h.prototype))}))},{isError:function(t){if(!o(t))return!1;var e=a(t);return e===u||e===c}})},6469:function(t,e,n){"use strict";var r=n(78227),i=n(2360),o=n(24913).f,a=r("unscopables"),s=Array.prototype;void 0===s[a]&&o(s,a,{configurable:!0,value:i(null)}),t.exports=function(t){s[a][t]=!0}},6761:function(t,e,n){"use strict";var r=n(46518),i=n(44576),o=n(69565),a=n(79504),s=n(96395),u=n(43724),c=n(4495),l=n(79039),f=n(39297),h=n(1625),d=n(28551),p=n(25397),v=n(56969),g=n(655),y=n(6980),m=n(2360),b=n(71072),w=n(38480),x=n(10298),k=n(33717),A=n(77347),S=n(24913),E=n(96801),T=n(48773),_=n(36840),O=n(62106),M=n(25745),C=n(66119),L=n(30421),R=n(33392),I=n(78227),P=n(1951),j=n(70511),F=n(58242),D=n(10687),N=n(91181),B=n(59213).forEach,z=C("hidden"),U="Symbol",W="prototype",H=N.set,q=N.getterFor(U),V=Object[W],$=i.Symbol,G=$&&$[W],X=i.RangeError,Y=i.TypeError,K=i.QObject,J=A.f,Z=S.f,Q=x.f,tt=T.f,et=a([].push),nt=M("symbols"),rt=M("op-symbols"),it=M("wks"),ot=!K||!K[W]||!K[W].findChild,at=function(t,e,n){var r=J(V,e);r&&delete V[e],Z(t,e,n),r&&t!==V&&Z(V,e,r)},st=u&&l((function(){return 7!==m(Z({},"a",{get:function(){return Z(this,"a",{value:7}).a}})).a}))?at:Z,ut=function(t,e){var n=nt[t]=m(G);return H(n,{type:U,tag:t,description:e}),u||(n.description=e),n},ct=function(t,e,n){t===V&&ct(rt,e,n),d(t);var r=v(e);return d(n),f(nt,r)?(n.enumerable?(f(t,z)&&t[z][r]&&(t[z][r]=!1),n=m(n,{enumerable:y(0,!1)})):(f(t,z)||Z(t,z,y(1,m(null))),t[z][r]=!0),st(t,r,n)):Z(t,r,n)},lt=function(t,e){d(t);var n=p(e),r=b(n).concat(pt(n));return B(r,(function(e){u&&!o(ft,n,e)||ct(t,e,n[e])})),t},ft=function(t){var e=v(t),n=o(tt,this,e);return!(this===V&&f(nt,e)&&!f(rt,e))&&(!(n||!f(this,e)||!f(nt,e)||f(this,z)&&this[z][e])||n)},ht=function(t,e){var n=p(t),r=v(e);if(n!==V||!f(nt,r)||f(rt,r)){var i=J(n,r);return!i||!f(nt,r)||f(n,z)&&n[z][r]||(i.enumerable=!0),i}},dt=function(t){var e=Q(p(t)),n=[];return B(e,(function(t){f(nt,t)||f(L,t)||et(n,t)})),n},pt=function(t){var e=t===V,n=Q(e?rt:p(t)),r=[];return B(n,(function(t){!f(nt,t)||e&&!f(V,t)||et(r,nt[t])})),r};c||($=function(){if(h(G,this))throw new Y("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?g(arguments[0]):void 0,e=R(t),n=function(t){var r=void 0===this?i:this;r===V&&o(n,rt,t),f(r,z)&&f(r[z],e)&&(r[z][e]=!1);var a=y(1,t);try{st(r,e,a)}catch(t){if(!(t instanceof X))throw t;at(r,e,a)}};return u&&ot&&st(V,e,{configurable:!0,set:n}),ut(e,t)},_(G=$[W],"toString",(function(){return q(this).tag})),_($,"withoutSetter",(function(t){return ut(R(t),t)})),T.f=ft,S.f=ct,E.f=lt,A.f=ht,w.f=x.f=dt,k.f=pt,P.f=function(t){return ut(I(t),t)},u&&(O(G,"description",{configurable:!0,get:function(){return q(this).description}}),s||_(V,"propertyIsEnumerable",ft,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!c,sham:!c},{Symbol:$}),B(b(it),(function(t){j(t)})),r({target:U,stat:!0,forced:!c},{useSetter:function(){ot=!0},useSimple:function(){ot=!1}}),r({target:"Object",stat:!0,forced:!c,sham:!u},{create:function(t,e){return void 0===e?m(t):lt(m(t),e)},defineProperty:ct,defineProperties:lt,getOwnPropertyDescriptor:ht}),r({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:dt}),F(),D($,U),L[z]=!0},6980:function(t){"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},7040:function(t,e,n){"use strict";var r=n(4495);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},7588:function(t,e,n){"use strict";var r=n(46518),i=n(69565),o=n(72652),a=n(79306),s=n(28551),u=n(1767),c=n(9539),l=n(84549)("forEach",TypeError);r({target:"Iterator",proto:!0,real:!0,forced:l},{forEach:function(t){s(this);try{a(t)}catch(t){c(this,"throw",t)}if(l)return i(l,this,t);var e=u(this),n=0;o(e,(function(e){t(e,n++)}),{IS_RECORD:!0})}})},7740:function(t){"use strict";var e=Math.log;t.exports=Math.log1p||function(t){var n=+t;return n>-1e-8&&n<1e-8?n-n*n/2:e(1+n)}},7743:function(t,e,n){"use strict";var r=n(46518),i=n(69565),o=n(79306),a=n(36043),s=n(1103),u=n(72652);r({target:"Promise",stat:!0,forced:n(90537)},{race:function(t){var e=this,n=a.f(e),r=n.reject,c=s((function(){var a=o(e.resolve);u(t,(function(t){i(a,e,t).then(n.resolve,r)}))}));return c.error&&r(c.value),n.promise}})},7860:function(t,e,n){"use strict";var r=n(82839);t.exports=/web0s(?!.*chrome)/i.test(r)},7904:function(t,e,n){"use strict";var r=n(46518),i=n(43724),o=n(42551),a=n(48981),s=n(56969),u=n(42787),c=n(77347).f;i&&r({target:"Object",proto:!0,forced:o},{__lookupSetter__:function(t){var e,n=a(this),r=s(t);do{if(e=c(n,r))return e.set}while(n=u(n))}})},8045:function(t,e,n){"use strict";var r=n(76080),i=n(79504),o=n(48981),a=n(33517),s=n(1886),u=n(70081),c=n(1767),l=n(50851),f=n(55966),h=n(97751),d=n(44124),p=n(78227),v=n(24074),g=n(36639).toArray,y=p("asyncIterator"),m=i(d("Array","values")),b=i(m([]).next),w=function(){return new x(this)},x=function(t){this.iterator=m(t)};x.prototype.next=function(){return b(this.iterator)},t.exports=function(t){var e=this,n=arguments.length,i=n>1?arguments[1]:void 0,d=n>2?arguments[2]:void 0;return new(h("Promise"))((function(n){var h=o(t);void 0!==i&&(i=r(i,d));var p=f(h,y),m=p?void 0:l(h)||w,b=a(e)?new e:[],x=p?s(h,p):new v(c(u(h,m)));n(g(x,i,b))}))}},8085:function(t,e,n){"use strict";var r=n(46518),i=Math.floor,o=Math.log,a=Math.LOG2E;r({target:"Math",stat:!0},{clz32:function(t){var e=t>>>0;return e?31-i(o(e+.5)*a):32}})},8379:function(t,e,n){"use strict";var r=n(18745),i=n(25397),o=n(91291),a=n(26198),s=n(34598),u=Math.min,c=[].lastIndexOf,l=!!c&&1/[1].lastIndexOf(1,-0)<0,f=s("lastIndexOf"),h=l||!f;t.exports=h?function(t){if(l)return r(c,this,arguments)||0;var e=i(this),n=a(e);if(0===n)return-1;var s=n-1;for(arguments.length>1&&(s=u(s,o(arguments[1]))),s<0&&(s=n+s);s>=0;s--)if(s in e&&e[s]===t)return s||0;return-1}:c},8921:function(t,e,n){"use strict";var r=n(46518),i=n(8379);r({target:"Array",proto:!0,forced:i!==[].lastIndexOf},{lastIndexOf:i})},8995:function(t,e,n){"use strict";var r=n(94644),i=n(59213).map,o=r.aTypedArray,a=r.getTypedArrayConstructor;(0,r.exportTypedArrayMethod)("map",(function(t){return i(o(this),t,arguments.length>1?arguments[1]:void 0,(function(t,e){return new(a(t))(e)}))}))},9065:function(t,e,n){"use strict";var r=n(46518),i=n(43724),o=n(28551),a=n(77347);r({target:"Reflect",stat:!0,sham:!i},{getOwnPropertyDescriptor:function(t,e){return a.f(o(t),e)}})},9220:function(t,e,n){"use strict";var r=n(46518),i=n(43724),o=n(42551),a=n(48981),s=n(56969),u=n(42787),c=n(77347).f;i&&r({target:"Object",proto:!0,forced:o},{__lookupGetter__:function(t){var e,n=a(this),r=s(t);do{if(e=c(n,r))return e.get}while(n=u(n))}})},9391:function(t,e,n){"use strict";var r=n(46518),i=n(96395),o=n(80550),a=n(79039),s=n(97751),u=n(94901),c=n(2293),l=n(93438),f=n(36840),h=o&&o.prototype;if(r({target:"Promise",proto:!0,real:!0,forced:!!o&&a((function(){h.finally.call({then:function(){}},(function(){}))}))},{finally:function(t){var e=c(this,s("Promise")),n=u(t);return this.then(n?function(n){return l(e,t()).then((function(){return n}))}:t,n?function(n){return l(e,t()).then((function(){throw n}))}:t)}}),!i&&u(o)){var d=s("Promise").prototype.finally;h.finally!==d&&f(h,"finally",d,{unsafe:!0})}},9417:function(t,e,n){"use strict";function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}n.d(e,{A:function(){return r}})},9539:function(t,e,n){"use strict";var r=n(69565),i=n(28551),o=n(55966);t.exports=function(t,e,n){var a,s;i(t);try{if(!(a=o(t,"return"))){if("throw"===e)throw n;return n}a=r(a,t)}catch(t){s=!0,a=t}if("throw"===e)throw n;if(s)throw a;return i(a),n}},9678:function(t,e,n){"use strict";var r=n(46518),i=n(37628),o=n(25397),a=n(6469),s=Array;r({target:"Array",proto:!0},{toReversed:function(){return i(o(this),s)}}),a("toReversed")},9868:function(t,e,n){"use strict";var r=n(46518),i=n(79504),o=n(91291),a=n(31240),s=n(72333),u=n(79039),c=RangeError,l=String,f=Math.floor,h=i(s),d=i("".slice),p=i(1.1.toFixed),v=function(t,e,n){return 0===e?n:e%2==1?v(t,e-1,n*t):v(t*t,e/2,n)},g=function(t,e,n){for(var r=-1,i=n;++r<6;)i+=e*t[r],t[r]=i%1e7,i=f(i/1e7)},y=function(t,e){for(var n=6,r=0;--n>=0;)r+=t[n],t[n]=f(r/e),r=r%e*1e7},m=function(t){for(var e=6,n="";--e>=0;)if(""!==n||0===e||0!==t[e]){var r=l(t[e]);n=""===n?r:n+h("0",7-r.length)+r}return n};r({target:"Number",proto:!0,forced:u((function(){return"0.000"!==p(8e-5,3)||"1"!==p(.9,0)||"1.25"!==p(1.255,2)||"1000000000000000128"!==p(0xde0b6b3a7640080,0)}))||!u((function(){p({})}))},{toFixed:function(t){var e,n,r,i,s=a(this),u=o(t),f=[0,0,0,0,0,0],p="",b="0";if(u<0||u>20)throw new c("Incorrect fraction digits");if(s!=s)return"NaN";if(s<=-1e21||s>=1e21)return l(s);if(s<0&&(p="-",s=-s),s>1e-21)if(n=(e=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e}(s*v(2,69,1))-69)<0?s*v(2,-e,1):s/v(2,e,1),n*=4503599627370496,(e=52-e)>0){for(g(f,0,n),r=u;r>=7;)g(f,1e7,0),r-=7;for(g(f,v(10,r,1),0),r=e-1;r>=23;)y(f,1<<23),r-=23;y(f,1<0?p+((i=b.length)<=u?"0."+h("0",u-i)+b:d(b,0,i-u)+"."+d(b,i-u)):p+b}})},10255:function(t,e,n){"use strict";var r=n(46518),i=n(79504),o=Math.pow,a=o(2,-24),s=.0009765625,u=i(DataView.prototype.getUint16);r({target:"DataView",proto:!0},{getFloat16:function(t){return n=(e=u(this,t,arguments.length>1&&arguments[1]))>>>15,i=1023&e,31==(r=e>>>10&31)?0===i?0===n?1/0:-1/0:NaN:0===r?i*(0===n?a:-a):o(2,r-15)*(0===n?1+i*s:-1-i*s);var e,n,r,i}})},10287:function(t,e,n){"use strict";n(46518)({target:"Object",stat:!0},{setPrototypeOf:n(52967)})},10298:function(t,e,n){"use strict";var r=n(22195),i=n(25397),o=n(38480).f,a=n(67680),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return s&&"Window"===r(t)?function(t){try{return o(t)}catch(t){return a(s)}}(t):o(i(t))}},10350:function(t,e,n){"use strict";var r=n(43724),i=n(39297),o=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=i(o,"name"),u=s&&"something"===function(){}.name,c=s&&(!r||r&&a(o,"name").configurable);t.exports={EXISTS:s,PROPER:u,CONFIGURABLE:c}},10436:function(t,e,n){"use strict";var r,i,o,a,s=n(46518),u=n(96395),c=n(38574),l=n(44576),f=n(19167),h=n(69565),d=n(36840),p=n(52967),v=n(10687),g=n(87633),y=n(79306),m=n(94901),b=n(20034),w=n(90679),x=n(2293),k=n(59225).set,A=n(91955),S=n(90757),E=n(1103),T=n(18265),_=n(91181),O=n(80550),M=n(10916),C=n(36043),L="Promise",R=M.CONSTRUCTOR,I=M.REJECTION_EVENT,P=M.SUBCLASSING,j=_.getterFor(L),F=_.set,D=O&&O.prototype,N=O,B=D,z=l.TypeError,U=l.document,W=l.process,H=C.f,q=H,V=!!(U&&U.createEvent&&l.dispatchEvent),$="unhandledrejection",G=function(t){var e;return!(!b(t)||!m(e=t.then))&&e},X=function(t,e){var n,r,i,o=e.value,a=1===e.state,s=a?t.ok:t.fail,u=t.resolve,c=t.reject,l=t.domain;try{s?(a||(2===e.rejection&&Q(e),e.rejection=1),!0===s?n=o:(l&&l.enter(),n=s(o),l&&(l.exit(),i=!0)),n===t.promise?c(new z("Promise-chain cycle")):(r=G(n))?h(r,n,u,c):u(n)):c(o)}catch(t){l&&!i&&l.exit(),c(t)}},Y=function(t,e){t.notified||(t.notified=!0,A((function(){for(var n,r=t.reactions;n=r.get();)X(n,t);t.notified=!1,e&&!t.rejection&&J(t)})))},K=function(t,e,n){var r,i;V?((r=U.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),l.dispatchEvent(r)):r={promise:e,reason:n},!I&&(i=l["on"+t])?i(r):t===$&&S("Unhandled promise rejection",n)},J=function(t){h(k,l,(function(){var e,n=t.facade,r=t.value;if(Z(t)&&(e=E((function(){c?W.emit("unhandledRejection",r,n):K($,n,r)})),t.rejection=c||Z(t)?2:1,e.error))throw e.value}))},Z=function(t){return 1!==t.rejection&&!t.parent},Q=function(t){h(k,l,(function(){var e=t.facade;c?W.emit("rejectionHandled",e):K("rejectionhandled",e,t.value)}))},tt=function(t,e,n){return function(r){t(e,r,n)}},et=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,Y(t,!0))},nt=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw new z("Promise can't be resolved itself");var r=G(e);r?A((function(){var n={done:!1};try{h(r,e,tt(nt,n,t),tt(et,n,t))}catch(e){et(n,e,t)}})):(t.value=e,t.state=1,Y(t,!1))}catch(e){et({done:!1},e,t)}}};if(R&&(B=(N=function(t){w(this,B),y(t),h(r,this);var e=j(this);try{t(tt(nt,e),tt(et,e))}catch(t){et(e,t)}}).prototype,(r=function(t){F(this,{type:L,done:!1,notified:!1,parent:!1,reactions:new T,rejection:!1,state:0,value:null})}).prototype=d(B,"then",(function(t,e){var n=j(this),r=H(x(this,N));return n.parent=!0,r.ok=!m(t)||t,r.fail=m(e)&&e,r.domain=c?W.domain:void 0,0===n.state?n.reactions.add(r):A((function(){X(r,n)})),r.promise})),i=function(){var t=new r,e=j(t);this.promise=t,this.resolve=tt(nt,e),this.reject=tt(et,e)},C.f=H=function(t){return t===N||t===o?new i(t):q(t)},!u&&m(O)&&D!==Object.prototype)){a=D.then,P||d(D,"then",(function(t,e){var n=this;return new N((function(t,e){h(a,n,t,e)})).then(t,e)}),{unsafe:!0});try{delete D.constructor}catch(t){}p&&p(D,B)}s({global:!0,constructor:!0,wrap:!0,forced:R},{Promise:N}),o=f.Promise,v(N,L,!1,!0),g(L)},10467:function(t,e,n){"use strict";function r(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function i(t){return function(){var e=this,n=arguments;return new Promise((function(i,o){var a=t.apply(e,n);function s(t){r(a,i,o,s,u,"next",t)}function u(t){r(a,i,o,s,u,"throw",t)}s(void 0)}))}}n.d(e,{A:function(){return i}})},10600:function(t,e,n){"use strict";n.d(e,{A:function(){return i}});var r=n(27106);function i(t){return function(){return new o(t.apply(this,arguments))}}function o(t){var e,n;function i(e,n){try{var a=t[e](n),s=a.value,u=s instanceof r.A;Promise.resolve(u?s.v:s).then((function(n){if(u){var r="return"===e?"return":"next";if(!s.k||n.done)return i(r,n);n=t[r](n).value}o(a.done?"return":"normal",n)}),(function(t){i("throw",t)}))}catch(t){o("throw",t)}}function o(t,r){switch(t){case"return":e.resolve({value:r,done:!0});break;case"throw":e.reject(r);break;default:e.resolve({value:r,done:!1})}(e=e.next)?i(e.key,e.arg):n=null}this._invoke=function(t,r){return new Promise((function(o,a){var s={key:t,arg:r,resolve:o,reject:a,next:null};n?n=n.next=s:(e=n=s,i(t,r))}))},"function"!=typeof t.return&&(this.return=void 0)}o.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},o.prototype.next=function(t){return this._invoke("next",t)},o.prototype.throw=function(t){return this._invoke("throw",t)},o.prototype.return=function(t){return this._invoke("return",t)}},10687:function(t,e,n){"use strict";var r=n(24913).f,i=n(39297),o=n(78227)("toStringTag");t.exports=function(t,e,n){t&&!n&&(t=t.prototype),t&&!i(t,o)&&r(t,o,{configurable:!0,value:e})}},10757:function(t,e,n){"use strict";var r=n(97751),i=n(94901),o=n(1625),a=n(7040),s=Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return i(e)&&o(e.prototype,s(t))}},10838:function(t,e,n){"use strict";var r=n(46518),i=n(43839).findLast,o=n(6469);r({target:"Array",proto:!0},{findLast:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),o("findLast")},10916:function(t,e,n){"use strict";var r=n(44576),i=n(80550),o=n(94901),a=n(92796),s=n(33706),u=n(78227),c=n(84215),l=n(96395),f=n(39519),h=i&&i.prototype,d=u("species"),p=!1,v=o(r.PromiseRejectionEvent),g=a("Promise",(function(){var t=s(i),e=t!==String(i);if(!e&&66===f)return!0;if(l&&(!h.catch||!h.finally))return!0;if(!f||f<51||!/native code/.test(t)){var n=new i((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};if((n.constructor={})[d]=r,!(p=n.then((function(){}))instanceof r))return!0}return!(e||"BROWSER"!==c&&"DENO"!==c||v)}));t.exports={CONSTRUCTOR:g,REJECTION_EVENT:v,SUBCLASSING:p}},11056:function(t,e,n){"use strict";var r=n(24913).f;t.exports=function(t,e,n){n in t||r(t,n,{configurable:!0,get:function(){return e[n]},set:function(t){e[n]=t}})}},11367:function(t,e,n){"use strict";n(46518)({target:"Math",stat:!0},{log2:n(67787)})},11392:function(t,e,n){"use strict";var r,i=n(46518),o=n(27476),a=n(77347).f,s=n(18014),u=n(655),c=n(60511),l=n(67750),f=n(41436),h=n(96395),d=o("".slice),p=Math.min,v=f("startsWith");i({target:"String",proto:!0,forced:!(!h&&!v&&(r=a(String.prototype,"startsWith"),r&&!r.writable)||v)},{startsWith:function(t){var e=u(l(this));c(t);var n=s(p(arguments.length>1?arguments[1]:void 0,e.length)),r=u(t);return d(e,n,n+r.length)===r}})},11558:function(t,e,n){"use strict";var r=n(46518),i=n(39928),o=n(25397),a=Array;r({target:"Array",proto:!0,forced:function(){try{[].with({valueOf:function(){throw 4}},null)}catch(t){return 4!==t}}()},{with:function(t,e){return i(o(this),a,t,e)}})},11745:function(t,e,n){"use strict";var r=n(46518),i=n(27476),o=n(79039),a=n(66346),s=n(28551),u=n(35610),c=n(18014),l=a.ArrayBuffer,f=a.DataView,h=f.prototype,d=i(l.prototype.slice),p=i(h.getUint8),v=i(h.setUint8);r({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:o((function(){return!new l(2).slice(1,void 0).byteLength}))},{slice:function(t,e){if(d&&void 0===e)return d(s(this),t);for(var n=s(this).byteLength,r=u(t,n),i=u(void 0===e?n:e,n),o=new l(c(i-r)),a=new f(this),h=new f(o),g=0;r>>1|(21845&v)<<1;g=(61680&(g=(52428&g)>>>2|(13107&g)<<2))>>>4|(3855&g)<<4,p[v]=((65280&g)>>>8|(255&g)<<8)>>>1}var y=function(t,e,n){for(var r=t.length,o=0,a=new i(e);o>>c]=l}else for(s=new i(r),o=0;o>>15-t[o]);return s},m=new r(288);for(v=0;v<144;++v)m[v]=8;for(v=144;v<256;++v)m[v]=9;for(v=256;v<280;++v)m[v]=7;for(v=280;v<288;++v)m[v]=8;var b=new r(32);for(v=0;v<32;++v)b[v]=5;var w=y(m,9,1),x=y(b,5,1),k=function(t){for(var e=t[0],n=1;ne&&(e=t[n]);return e},A=function(t,e,n){var r=e/8|0;return(t[r]|t[r+1]<<8)>>(7&e)&n},S=function(t,e){var n=e/8|0;return(t[n]|t[n+1]<<8|t[n+2]<<16)>>(7&e)},E=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],T=function(t,e,n){var r=new Error(e||E[t]);if(r.code=t,Error.captureStackTrace&&Error.captureStackTrace(r,T),!n)throw r;return r},_=function(t,e,n){var c=t.length;if(!c||n&&n.f&&!n.l)return e||new r(0);var l=!e||n,h=!n||n.i;n||(n={}),e||(e=new r(3*c));var p=function(t){var n=e.length;if(t>n){var i=new r(Math.max(2*n,t));i.set(e),e=i}},v=n.f||0,g=n.p||0,m=n.b||0,b=n.l,E=n.d,_=n.m,O=n.n,M=8*c;do{if(!b){v=A(t,g,1);var C=A(t,g+1,3);if(g+=3,!C){var L=t[(W=4+((g+7)/8|0))-4]|t[W-3]<<8,R=W+L;if(R>c){h&&T(0);break}l&&p(m+L),e.set(t.subarray(W,R),m),n.b=m+=L,n.p=g=8*R,n.f=v;continue}if(1==C)b=w,E=x,_=9,O=5;else if(2==C){var I=A(t,g,31)+257,P=A(t,g+10,15)+4,j=I+A(t,g+5,31)+1;g+=14;for(var F=new r(j),D=new r(19),N=0;N>>4)<16)F[N++]=W;else{var q=0,V=0;for(16==W?(V=3+A(t,g,3),g+=2,q=F[N-1]):17==W?(V=3+A(t,g,7),g+=3):18==W&&(V=11+A(t,g,127),g+=7);V--;)F[N++]=q}}var $=F.subarray(0,I),G=F.subarray(I);_=k($),O=k(G),b=y($,_,1),E=y(G,O,1)}else T(1);if(g>M){h&&T(0);break}}l&&p(m+131072);for(var X=(1<<_)-1,Y=(1<>>4;if((g+=15&q)>M){h&&T(0);break}if(q||T(2),J<256)e[m++]=J;else{if(256==J){K=g,b=null;break}var Z=J-254;if(J>264){var Q=a[N=J-257];Z=A(t,g,(1<>>4;if(tt||T(3),g+=15&tt,G=d[et],et>3&&(Q=s[et],G+=S(t,g)&(1<M){h&&T(0);break}l&&p(m+131072);for(var nt=m+Z;mt.length)&&(n=t.length);var a=new(2==t.BYTES_PER_ELEMENT?i:4==t.BYTES_PER_ELEMENT?o:r)(n-e);return a.set(t.subarray(e,n)),a}(e,0,m)},O=new r(0);function M(t,e){return _(((8!=(15&(n=t)[0])||n[0]>>>4>7||(n[0]<<8|n[1])%31)&&T(6,"invalid zlib data"),32&n[1]&&T(6,"invalid zlib data: preset dictionaries not supported"),t.subarray(2,-4)),e);var n}var C="undefined"!=typeof TextDecoder&&new TextDecoder;try{C.decode(O,{stream:!0})}catch(r){}},12887:function(t,e,n){"use strict";var r=n(44576),i=n(79039),o=n(79504),a=n(94644),s=n(23792),u=n(78227)("iterator"),c=r.Uint8Array,l=o(s.values),f=o(s.keys),h=o(s.entries),d=a.aTypedArray,p=a.exportTypedArrayMethod,v=c&&c.prototype,g=!i((function(){v[u].call([1])})),y=!!v&&v.values&&v[u]===v.values&&"values"===v.values.name,m=function(){return l(d(this))};p("entries",(function(){return h(d(this))}),g),p("keys",(function(){return f(d(this))}),g),p("values",m,g||!y,{name:"values"}),p(u,m,g||!y,{name:"values"})},13451:function(t,e,n){"use strict";var r=n(46518),i=n(43839).findLastIndex,o=n(6469);r({target:"Array",proto:!0},{findLastIndex:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),o("findLastIndex")},13579:function(t,e,n){"use strict";var r=n(46518),i=n(69565),o=n(72652),a=n(79306),s=n(28551),u=n(1767),c=n(9539),l=n(84549)("some",TypeError);r({target:"Iterator",proto:!0,real:!0,forced:l},{some:function(t){s(this);try{a(t)}catch(t){c(this,"throw",t)}if(l)return i(l,this,t);var e=u(this),n=0;return o(e,(function(e,r){if(t(e,n++))return r()}),{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},13609:function(t,e,n){"use strict";var r=n(46518),i=n(48981),o=n(26198),a=n(34527),s=n(84606),u=n(96837);r({target:"Array",proto:!0,arity:1,forced:1!==[].unshift(0)||!function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(t){return t instanceof TypeError}}()},{unshift:function(t){var e=i(this),n=o(e),r=arguments.length;if(r){u(n+r);for(var c=n;c--;){var l=c+r;c in e?e[l]=e[c]:s(e,l)}for(var f=0;fm&&h(r,arguments[m]),r}));if(S.prototype=k,"Error"!==w?s?s(S,A):u(S,A,{name:!0}):p&&y in x&&(c(S,x,y),c(S,x,"prepareStackTrace")),u(S,x),!v)try{k.name!==w&&o(k,"name",w),k.constructor=S}catch(t){}return S}}},14603:function(t,e,n){"use strict";var r=n(36840),i=n(79504),o=n(655),a=n(22812),s=URLSearchParams,u=s.prototype,c=i(u.append),l=i(u.delete),f=i(u.forEach),h=i([].push),d=new s("a=1&a=2&b=3");d.delete("a",1),d.delete("b",void 0),d+""!="a=2"&&r(u,"delete",(function(t){var e=arguments.length,n=e<2?void 0:arguments[1];if(e&&void 0===n)return l(this,t);var r=[];f(this,(function(t,e){h(r,{key:e,value:t})})),a(e,1);for(var i,s=o(t),u=o(n),d=0,p=0,v=!1,g=r.length;d1?arguments[1]:void 0)}})},15472:function(t,e,n){"use strict";var r=n(46518),i=n(44576),o=n(10687);r({global:!0},{Reflect:{}}),o(i.Reflect,"Reflect",!0)},15575:function(t,e,n){"use strict";var r=n(46518),i=n(44576),o=n(79472)(i.setInterval,!0);r({global:!0,bind:!0,forced:i.setInterval!==o},{setInterval:o})},15617:function(t,e,n){"use strict";var r=n(33164);t.exports=Math.fround||function(t){return r(t,1.1920928955078125e-7,34028234663852886e22,11754943508222875e-54)}},15652:function(t,e,n){"use strict";var r=n(79039);t.exports=r((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}))},15823:function(t,e,n){"use strict";var r=n(46518),i=n(44576),o=n(69565),a=n(43724),s=n(72805),u=n(94644),c=n(66346),l=n(90679),f=n(6980),h=n(66699),d=n(2087),p=n(18014),v=n(57696),g=n(58229),y=n(58319),m=n(56969),b=n(39297),w=n(36955),x=n(20034),k=n(10757),A=n(2360),S=n(1625),E=n(52967),T=n(38480).f,_=n(43251),O=n(59213).forEach,M=n(87633),C=n(62106),L=n(24913),R=n(77347),I=n(35370),P=n(91181),j=n(23167),F=P.get,D=P.set,N=P.enforce,B=L.f,z=R.f,U=i.RangeError,W=c.ArrayBuffer,H=W.prototype,q=c.DataView,V=u.NATIVE_ARRAY_BUFFER_VIEWS,$=u.TYPED_ARRAY_TAG,G=u.TypedArray,X=u.TypedArrayPrototype,Y=u.isTypedArray,K="BYTES_PER_ELEMENT",J="Wrong length",Z=function(t,e){C(t,e,{configurable:!0,get:function(){return F(this)[e]}})},Q=function(t){var e;return S(H,t)||"ArrayBuffer"===(e=w(t))||"SharedArrayBuffer"===e},tt=function(t,e){return Y(t)&&!k(e)&&e in t&&d(+e)&&e>=0},et=function(t,e){return e=m(e),tt(t,e)?f(2,t[e]):z(t,e)},nt=function(t,e,n){return e=m(e),!(tt(t,e)&&x(n)&&b(n,"value"))||b(n,"get")||b(n,"set")||n.configurable||b(n,"writable")&&!n.writable||b(n,"enumerable")&&!n.enumerable?B(t,e,n):(t[e]=n.value,t)};a?(V||(R.f=et,L.f=nt,Z(X,"buffer"),Z(X,"byteOffset"),Z(X,"byteLength"),Z(X,"length")),r({target:"Object",stat:!0,forced:!V},{getOwnPropertyDescriptor:et,defineProperty:nt}),t.exports=function(t,e,n){var a=t.match(/\d+/)[0]/8,u=t+(n?"Clamped":"")+"Array",c="get"+t,f="set"+t,d=i[u],m=d,b=m&&m.prototype,w={},k=function(t,e){B(t,e,{get:function(){return function(t,e){var n=F(t);return n.view[c](e*a+n.byteOffset,!0)}(this,e)},set:function(t){return function(t,e,r){var i=F(t);i.view[f](e*a+i.byteOffset,n?y(r):r,!0)}(this,e,t)},enumerable:!0})};V?s&&(m=e((function(t,e,n,r){return l(t,b),j(x(e)?Q(e)?void 0!==r?new d(e,g(n,a),r):void 0!==n?new d(e,g(n,a)):new d(e):Y(e)?I(m,e):o(_,m,e):new d(v(e)),t,m)})),E&&E(m,G),O(T(d),(function(t){t in m||h(m,t,d[t])})),m.prototype=b):(m=e((function(t,e,n,r){l(t,b);var i,s,u,c=0,f=0;if(x(e)){if(!Q(e))return Y(e)?I(m,e):o(_,m,e);i=e,f=g(n,a);var h=e.byteLength;if(void 0===r){if(h%a)throw new U(J);if((s=h-f)<0)throw new U(J)}else if((s=p(r)*a)+f>h)throw new U(J);u=s/a}else u=v(e),i=new W(s=u*a);for(D(t,{buffer:i,byteOffset:f,byteLength:s,length:u,view:new q(i)});c\n \n \n \n ').concat(h.outerHTML,"\n ").concat(d.outerHTML,"\n ")],{type:"text/html"})),t.abrupt("return",v);case 8:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}(),s=function(t){return{label:t.title,href:JSON.stringify(t.dest),subitems:t.items.length?t.items.map(s):null}},u=function(){var t=(0,r.A)(o().mark((function t(e){var n,i,u,c,l,f,h,d,p,v,g,y;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return d=Uint8Array,t.next=1,e.arrayBuffer();case 1:return p=t.sent,i=new d(p),t.next=2,pdfjsLib.getDocument({data:i}).promise;case 2:return u=t.sent,c={rendition:{layout:"pre-paginated"}},t.next=3,u.getMetadata();case 3:if(g=n=t.sent,v=null===g){t.next=4;break}v=void 0===n;case 4:if(!v){t.next=5;break}y=void 0,t.next=6;break;case 5:y=n.info;case 6:return l=y,c.metadata={title:null==l?void 0:l.Title,author:null==l?void 0:l.Author},t.next=7,u.getOutline();case 7:return f=t.sent,c.toc=null==f?void 0:f.map(s),h=new Map,c.sections=Array.from({length:u.numPages}).map((function(t,e){return{id:e,load:(n=(0,r.A)(o().mark((function t(){var n,r,i,s;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(n=h.get(e))){t.next=1;break}return t.abrupt("return",n);case 1:return i=a,t.next=2,u.getPage(e+1);case 2:return s=t.sent,t.next=3,i(s);case 3:return r=t.sent,h.set(e,r),t.abrupt("return",r);case 4:case"end":return t.stop()}}),t)}))),function(){return n.apply(this,arguments)}),size:1e3};var n})),c.sections[0].pageSpread="right",c.isExternal=function(t){return/^\w+:/i.test(t)},c.resolveHref=function(){var t=(0,r.A)(o().mark((function t(e){var n,r,i,a;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("string"!=typeof(n=JSON.parse(e))){t.next=2;break}return t.next=1,u.getDestination(n);case 1:a=t.sent,t.next=3;break;case 2:a=n;case 3:if((r=a)&&r[0]){t.next=4;break}return t.abrupt("return",{index:0});case 4:return t.next=5,u.getPageIndex(r[0]);case 5:return i=t.sent,t.abrupt("return",{index:i});case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),c.splitTOCHref=function(){var t=(0,r.A)(o().mark((function t(e){var n,r,i,a;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("string"!=typeof(n=JSON.parse(e))){t.next=2;break}return t.next=1,u.getDestination(n);case 1:a=t.sent,t.next=3;break;case 2:a=n;case 3:if((r=a)&&r[0]){t.next=4;break}return t.abrupt("return",[0,null]);case 4:return t.next=5,u.getPageIndex(r[0]);case 5:return i=t.sent,t.abrupt("return",[i,null]);case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),c.getTOCFragment=function(t){return t.documentElement},c.getCover=(0,r.A)(o().mark((function t(){var e,n;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=a,t.next=1,u.getPage(1);case 1:return n=t.sent,t.abrupt("return",e(n,!0));case 2:case"end":return t.stop()}}),t)}))),t.abrupt("return",c);case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},16823:function(t){"use strict";var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},16993:function(t,e,n){var r=n(75546);function i(){var e,n,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.toStringTag||"@@toStringTag";function u(t,i,o,a){var s=i&&i.prototype instanceof l?i:l,u=Object.create(s.prototype);return r(u,"_invoke",function(t,r,i){var o,a,s,u=0,l=i||[],f=!1,h={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return o=t,a=0,s=e,h.n=n,c}};function d(t,r){for(a=t,s=r,n=0;!f&&u&&!i&&n3?(i=p===r)&&(s=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=e):o[0]<=d&&((i=t<2&&dr||r>p)&&(o[4]=t,o[5]=r,h.n=p,a=0))}if(i||t>1)return c;throw f=!0,r}return function(i,l,p){if(u>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,p),a=l,s=p;(n=a<2?e:s)||!f;){o||(a?a<3?(a>1&&(h.n=-1),d(a,s)):h.n=s:h.v=s);try{if(u=2,o){if(a||(i="next"),n=o[i]){if(!(n=n.call(o,s)))throw TypeError("iterator result is not an object");if(!n.done)return n;s=n.value,a<2&&(a=0)}else 1===a&&(n=o.return)&&n.call(o),a<2&&(s=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=e}else if((n=(f=h.n<0)?s:t.call(r,h))!==c)break}catch(t){o=e,a=1,s=t}finally{u=1}}return{value:n,done:f}}}(t,o,a),!0),u}var c={};function l(){}function f(){}function h(){}n=Object.getPrototypeOf;var d=[][a]?n(n([][a]())):(r(n={},a,(function(){return this})),n),p=h.prototype=l.prototype=Object.create(d);function v(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,r(t,s,"GeneratorFunction")),t.prototype=Object.create(p),t}return f.prototype=h,r(p,"constructor",h),r(h,"constructor",f),f.displayName="GeneratorFunction",r(h,s,"GeneratorFunction"),r(p),r(p,s,"Generator"),r(p,a,(function(){return this})),r(p,"toString",(function(){return"[object Generator]"})),(t.exports=i=function(){return{w:u,m:v}},t.exports.__esModule=!0,t.exports.default=t.exports)()}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports},17145:function(t,e,n){"use strict";var r=n(46518),i=n(1625),o=n(42787),a=n(52967),s=n(77740),u=n(2360),c=n(66699),l=n(6980),f=n(77584),h=n(80747),d=n(72652),p=n(32603),v=n(78227)("toStringTag"),g=Error,y=[].push,m=function(t,e){var n,r=i(b,this);a?n=a(new g,r?o(this):b):(n=r?this:u(b),c(n,v,"Error")),void 0!==e&&c(n,"message",p(e)),h(n,m,n.stack,1),arguments.length>2&&f(n,arguments[2]);var s=[];return d(t,y,{that:s}),c(n,"errors",s),n};a?a(m,g):s(m,g,{name:!0});var b=m.prototype=u(g.prototype,{constructor:l(1,m),message:l(1,""),name:l(1,"AggregateError")});r({global:!0,constructor:!0,arity:2},{AggregateError:m})},17427:function(t,e,n){"use strict";var r=n(46518),i=n(43724),o=n(42551),a=n(79306),s=n(48981),u=n(24913);i&&r({target:"Object",proto:!0,forced:o},{__defineGetter__:function(t,e){u.f(s(this),t,{get:a(e),enumerable:!0,configurable:!0})}})},17642:function(t,e,n){"use strict";var r=n(46518),i=n(83440),o=n(79039);r({target:"Set",proto:!0,real:!0,forced:!n(84916)("difference",(function(t){return 0===t.size}))||o((function(){var t={size:1,has:function(){return!0},keys:function(){var t=0;return{next:function(){var n=t++>1;return e.has(1)&&e.clear(),{done:n,value:2}}}}},e=new Set([1,2,3,4]);return 3!==e.difference(t).size}))},{difference:i})},18014:function(t,e,n){"use strict";var r=n(91291),i=Math.min;t.exports=function(t){var e=r(t);return e>0?i(e,9007199254740991):0}},18107:function(t,e,n){"use strict";var r=n(46518),i=n(48981),o=n(26198),a=n(91291),s=n(6469);r({target:"Array",proto:!0},{at:function(t){var e=i(this),n=o(e),r=a(t),s=r>=0?r:n+r;return s<0||s>=n?void 0:e[s]}}),s("at")},18111:function(t,e,n){"use strict";var r=n(46518),i=n(44576),o=n(90679),a=n(28551),s=n(94901),u=n(42787),c=n(62106),l=n(97040),f=n(79039),h=n(39297),d=n(78227),p=n(57657).IteratorPrototype,v=n(43724),g=n(96395),y="constructor",m="Iterator",b=d("toStringTag"),w=TypeError,x=i[m],k=g||!s(x)||x.prototype!==p||!f((function(){x({})})),A=function(){if(o(this,p),u(this)===p)throw new w("Abstract class Iterator not directly constructable")},S=function(t,e){v?c(p,t,{configurable:!0,get:function(){return e},set:function(e){if(a(this),this===p)throw new w("You can't redefine this property");h(this,t)?this[t]=e:l(this,t,e)}}):p[t]=e};h(p,b)||S(b,m),!k&&h(p,y)&&p[y]!==Object||S(y,A),A.prototype=p,r({global:!0,constructor:!0,forced:k},{Iterator:A})},18237:function(t,e,n){"use strict";var r=n(46518),i=n(72652),o=n(79306),a=n(28551),s=n(1767),u=n(9539),c=n(84549),l=n(18745),f=n(79039),h=TypeError,d=f((function(){[].keys().reduce((function(){}),void 0)})),p=!d&&c("reduce",h);r({target:"Iterator",proto:!0,real:!0,forced:d||p},{reduce:function(t){a(this);try{o(t)}catch(t){u(this,"throw",t)}var e=arguments.length<2,n=e?void 0:arguments[1];if(p)return l(p,this,e?[t]:[t,n]);var r=s(this),c=0;if(i(r,(function(r){e?(e=!1,n=r):n=t(n,r,c),c++}),{IS_RECORD:!0}),e)throw new h("Reduce of empty iterator with no initial value");return n}})},18265:function(t){"use strict";var e=function(){this.head=null,this.tail=null};e.prototype={add:function(t){var e={item:t,next:null},n=this.tail;n?n.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}},t.exports=e},18727:function(t,e,n){"use strict";var r=n(36955);t.exports=function(t){var e=r(t);return"BigInt64Array"===e||"BigUint64Array"===e}},18745:function(t,e,n){"use strict";var r=n(40616),i=Function.prototype,o=i.apply,a=i.call;t.exports="object"==typeof Reflect&&Reflect.apply||(r?a.bind(o):function(){return a.apply(o,arguments)})},18814:function(t,e,n){"use strict";var r=n(79039),i=n(44576).RegExp;t.exports=r((function(){var t=i("(?b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$c")}))},18863:function(t,e,n){"use strict";var r=n(46518),i=n(80926).right,o=n(34598),a=n(39519);r({target:"Array",proto:!0,forced:!n(38574)&&a>79&&a<83||!o("reduceRight")},{reduceRight:function(t){return i(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}})},18866:function(t,e,n){"use strict";var r=n(43802).end,i=n(60706);t.exports=i("trimEnd")?function(){return r(this)}:"".trimEnd},19167:function(t,e,n){"use strict";var r=n(44576);t.exports=r},19369:function(t,e,n){"use strict";var r=n(94644),i=n(79504),o=r.aTypedArray,a=r.exportTypedArrayMethod,s=i([].join);a("join",(function(t){return s(o(this),t)}))},19462:function(t,e,n){"use strict";var r=n(69565),i=n(2360),o=n(66699),a=n(56279),s=n(78227),u=n(91181),c=n(55966),l=n(57657).IteratorPrototype,f=n(62529),h=n(9539),d=n(91385),p=s("toStringTag"),v="IteratorHelper",g="WrapForValidIterator",y="normal",m="throw",b=u.set,w=function(t){var e=u.getterFor(t?g:v);return a(i(l),{next:function(){var n=e(this);if(t)return n.nextHandler();if(n.done)return f(void 0,!0);try{var r=n.nextHandler();return n.returnHandlerResult?r:f(r,n.done)}catch(t){throw n.done=!0,t}},return:function(){var n=e(this),i=n.iterator;if(n.done=!0,t){var o=c(i,"return");return o?r(o,i):f(void 0,!0)}if(n.inner)try{h(n.inner.iterator,y)}catch(t){return h(i,m,t)}if(n.openIters)try{d(n.openIters,y)}catch(t){return h(i,m,t)}return i&&h(i,y),f(void 0,!0)}})},x=w(!0),k=w(!1);o(k,p,"Iterator Helper"),t.exports=function(t,e,n){var r=function(r,i){i?(i.iterator=r.iterator,i.next=r.next):i=r,i.type=e?g:v,i.returnHandlerResult=!!n,i.nextHandler=t,i.counter=0,i.done=!1,b(this,i)};return r.prototype=e?x:k,r}},19617:function(t,e,n){"use strict";var r=n(25397),i=n(35610),o=n(26198),a=function(t){return function(e,n,a){var s=r(e),u=o(s);if(0===u)return!t&&-1;var c,l=i(a,u);if(t&&n!=n){for(;u>l;)if((c=s[l++])!=c)return!0}else for(;u>l;l++)if((t||l in s)&&s[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},20034:function(t,e,n){"use strict";var r=n(94901);t.exports=function(t){return"object"==typeof t?null!==t:r(t)}},20116:function(t,e,n){"use strict";var r=n(46518),i=n(69565),o=n(72652),a=n(79306),s=n(28551),u=n(1767),c=n(9539),l=n(84549)("find",TypeError);r({target:"Iterator",proto:!0,real:!0,forced:l},{find:function(t){s(this);try{a(t)}catch(t){c(this,"throw",t)}if(l)return i(l,this,t);var e=u(this),n=0;return o(e,(function(e,r){if(t(e,n++))return r(e)}),{IS_RECORD:!0,INTERRUPTED:!0}).result}})},20326:function(t,e,n){"use strict";n(70511)("unscopables")},20397:function(t,e,n){"use strict";var r=n(97751);t.exports=r("document","documentElement")},20772:function(t,e,n){"use strict";var r=n(69565),i=n(97751),o=n(55966);t.exports=function(t,e,n,a){try{var s=o(t,"return");if(s)return i("Promise").resolve(r(s,t)).then((function(){e(n)}),(function(t){a(t)}))}catch(t){return a(t)}e(n)}},20781:function(t,e,n){"use strict";var r=n(46518),i=n(77240);r({target:"String",proto:!0,forced:n(23061)("italics")},{italics:function(){return i(this,"i","","")}})},20816:function(t,e,n){"use strict";n.d(e,{A:function(){return i}});var r=n(82284);function i(t){var e=function(t){if("object"!=(0,r.A)(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=(0,r.A)(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==(0,r.A)(e)?e:e+""}},21211:function(t,e,n){"use strict";var r=n(46518),i=n(28551),o=n(77347).f;r({target:"Reflect",stat:!0},{deleteProperty:function(t,e){var n=o(i(t),e);return!(n&&!n.configurable)&&delete t[e]}})},21489:function(t,e,n){"use strict";n(15823)("Uint8",(function(t){return function(e,n,r){return t(this,e,n,r)}}))},21699:function(t,e,n){"use strict";var r=n(46518),i=n(79504),o=n(60511),a=n(67750),s=n(655),u=n(41436),c=i("".indexOf);r({target:"String",proto:!0,forced:!u("includes")},{includes:function(t){return!!~c(s(a(this)),s(o(t)),arguments.length>1?arguments[1]:void 0)}})},21903:function(t,e,n){"use strict";var r=n(94644),i=n(43839).findLast,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("findLast",(function(t){return i(o(this),t,arguments.length>1?arguments[1]:void 0)}))},22134:function(t,e,n){"use strict";n(15823)("Uint8",(function(t){return function(e,n,r){return t(this,e,n,r)}}),!0)},22195:function(t,e,n){"use strict";var r=n(79504),i=r({}.toString),o=r("".slice);t.exports=function(t){return o(i(t),8,-1)}},22489:function(t,e,n){"use strict";var r=n(46518),i=n(69565),o=n(79306),a=n(28551),s=n(1767),u=n(19462),c=n(96319),l=n(96395),f=n(9539),h=n(30684),d=n(84549),p=!l&&!h("filter",(function(){})),v=!l&&!p&&d("filter",TypeError),g=l||p||v,y=u((function(){for(var t,e,n=this.iterator,r=this.predicate,o=this.next;;){if(t=a(i(o,n)),this.done=!!t.done)return;if(e=t.value,c(n,r,[e,this.counter++],!0))return e}}));r({target:"Iterator",proto:!0,real:!0,forced:g},{filter:function(t){a(this);try{o(t)}catch(t){f(this,"throw",t)}return v?i(v,this,t):new y(s(this),{predicate:t})}})},22812:function(t){"use strict";var e=TypeError;t.exports=function(t,n){if(t3}))}},23167:function(t,e,n){"use strict";var r=n(94901),i=n(20034),o=n(52967);t.exports=function(t,e,n){var a,s;return o&&r(a=e.constructor)&&a!==n&&i(s=a.prototype)&&s!==n.prototype&&o(t,s),t}},23288:function(t,e,n){"use strict";var r=n(79504),i=n(36840),o=Date.prototype,a="Invalid Date",s="toString",u=r(o[s]),c=r(o.getTime);String(new Date(NaN))!==a&&i(o,s,(function(){var t=c(this);return t==t?u(this):a}))},23418:function(t,e,n){"use strict";var r=n(46518),i=n(97916);r({target:"Array",stat:!0,forced:!n(84428)((function(t){Array.from(t)}))},{from:i})},23500:function(t,e,n){"use strict";var r=n(44576),i=n(67400),o=n(79296),a=n(90235),s=n(66699),u=function(t){if(t&&t.forEach!==a)try{s(t,"forEach",a)}catch(e){t.forEach=a}};for(var c in i)i[c]&&u(r[c]&&r[c].prototype);u(o)},23792:function(t,e,n){"use strict";var r=n(25397),i=n(6469),o=n(26269),a=n(91181),s=n(24913).f,u=n(51088),c=n(62529),l=n(96395),f=n(43724),h="Array Iterator",d=a.set,p=a.getterFor(h);t.exports=u(Array,"Array",(function(t,e){d(this,{type:h,target:r(t),index:0,kind:e})}),(function(){var t=p(this),e=t.target,n=t.index++;if(!e||n>=e.length)return t.target=null,c(void 0,!0);switch(t.kind){case"keys":return c(n,!1);case"values":return c(e[n],!1)}return c([n,e[n]],!1)}),"values");var v=o.Arguments=o.Array;if(i("keys"),i("values"),i("entries"),!l&&f&&"values"!==v.name)try{s(v,"name",{value:"values"})}catch(t){}},23860:function(t,e,n){"use strict";var r=n(46518),i=n(68183).codeAt;r({target:"String",proto:!0},{codePointAt:function(t){return i(this,t)}})},24074:function(t,e,n){"use strict";var r=n(69565),i=n(28551),o=n(2360),a=n(55966),s=n(56279),u=n(91181),c=n(9539),l=n(97751),f=n(53982),h=n(62529),d=l("Promise"),p="AsyncFromSyncIterator",v=u.set,g=u.getterFor(p),y=function(t,e,n,r,i){var o=t.done;d.resolve(t.value).then((function(t){e(h(t,o))}),(function(t){if(!o&&i)try{c(r,"throw",t)}catch(e){t=e}n(t)}))},m=function(t){t.type=p,v(this,t)};m.prototype=s(o(f),{next:function(){var t=g(this);return new d((function(e,n){var o=i(r(t.next,t.iterator));y(o,e,n,t.iterator,!0)}))},return:function(){var t=g(this).iterator;return new d((function(e,n){var o=a(t,"return");if(void 0===o)return e(h(void 0,!0));var s=i(r(o,t));y(s,e,n,t)}))}}),t.exports=m},24149:function(t){"use strict";var e=RangeError;t.exports=function(t){if(t==t)return t;throw new e("NaN is not allowed")}},24194:function(t,e,n){"use strict";var r=n(36955),i=TypeError;t.exports=function(t){if("DataView"===r(t))return t;throw new i("Argument is not a DataView")}},24359:function(t,e,n){"use strict";var r=n(46518),i=n(66346);r({global:!0,constructor:!0,forced:!n(77811)},{DataView:i.DataView})},24599:function(t,e,n){"use strict";var r=n(46518),i=n(44576),o=n(79472)(i.setTimeout,!0);r({global:!0,bind:!0,forced:i.setTimeout!==o},{setTimeout:o})},24659:function(t,e,n){"use strict";var r=n(79039),i=n(6980);t.exports=!r((function(){var t=new Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",i(1,7)),7!==t.stack)}))},24793:function(t,e,n){"use strict";var r=n(46518),i=n(43724),o=n(97751),a=n(79306),s=n(90679),u=n(36840),c=n(56279),l=n(62106),f=n(78227),h=n(91181),d=n(91021),p=n(39519),v=o("Promise"),g=o("SuppressedError"),y=ReferenceError,m=f("asyncDispose"),b=f("toStringTag"),w="AsyncDisposableStack",x=h.set,k=h.getterFor(w),A="async-dispose",S="disposed",E=function(t){var e=k(t);if(e.state===S)throw new y(w+" already disposed");return e},T=function(){x(s(this,_),{type:w,state:"pending",stack:[]}),i||(this.disposed=!1)},_=T.prototype;c(_,{disposeAsync:function(){var t=this;return new v((function(e,n){var r=k(t);if(r.state===S)return e(void 0);r.state=S,i||(t.disposed=!0);var o,a=r.stack,s=a.length,u=!1,c=function(t){u?o=new g(t,o):(u=!0,o=t),l()},l=function(){if(s){var t=a[--s];a[s]=null;try{v.resolve(t()).then(l,c)}catch(t){c(t)}}else r.stack=null,u?n(o):e(void 0)};l()}))},use:function(t){return d(E(this),t,A),t},adopt:function(t,e){var n=E(this);return a(e),d(n,void 0,A,(function(){return e(t)})),t},defer:function(t){var e=E(this);a(t),d(e,void 0,A,t)},move:function(){var t=E(this),e=new T;return k(e).stack=t.stack,t.stack=[],t.state=S,i||(this.disposed=!0),e}}),i&&l(_,"disposed",{configurable:!0,get:function(){return k(this).state===S}}),u(_,m,_.disposeAsync,{name:"disposeAsync"}),u(_,b,w,{nonWritable:!0}),r({global:!0,constructor:!0,forced:p&&p<136},{AsyncDisposableStack:T})},24913:function(t,e,n){"use strict";var r=n(43724),i=n(35917),o=n(48686),a=n(28551),s=n(56969),u=TypeError,c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,f="enumerable",h="configurable",d="writable";e.f=r?o?function(t,e,n){if(a(t),e=s(e),a(n),"function"==typeof t&&"prototype"===e&&"value"in n&&d in n&&!n[d]){var r=l(t,e);r&&r[d]&&(t[e]=n.value,n={configurable:h in n?n[h]:r[h],enumerable:f in n?n[f]:r[f],writable:!1})}return c(t,e,n)}:c:function(t,e,n){if(a(t),e=s(e),a(n),i)try{return c(t,e,n)}catch(t){}if("get"in n||"set"in n)throw new u("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},25170:function(t,e,n){"use strict";var r=n(46706),i=n(94402);t.exports=r(i.proto,"size","get")||function(t){return t.size}},25172:function(t){t.exports=function(t,e){this.v=t,this.k=e},t.exports.__esModule=!0,t.exports.default=t.exports},25276:function(t,e,n){"use strict";var r=n(46518),i=n(27476),o=n(19617).indexOf,a=n(34598),s=i([].indexOf),u=!!s&&1/s([1],1,-0)<0;r({target:"Array",proto:!0,forced:u||!a("indexOf")},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return u?s(this,t,e)||0:o(this,t,e)}})},25397:function(t,e,n){"use strict";var r=n(47055),i=n(67750);t.exports=function(t){return r(i(t))}},25428:function(t,e,n){"use strict";n(46518)({target:"Number",stat:!0},{isFinite:n(50360)})},25440:function(t,e,n){"use strict";var r=n(18745),i=n(69565),o=n(79504),a=n(89228),s=n(79039),u=n(28551),c=n(94901),l=n(20034),f=n(91291),h=n(18014),d=n(655),p=n(67750),v=n(57829),g=n(55966),y=n(2478),m=n(61034),b=n(56682),w=n(78227)("replace"),x=Math.max,k=Math.min,A=o([].concat),S=o([].push),E=o("".indexOf),T=o("".slice),_="$0"==="a".replace(/./,"$0"),O=!!/./[w]&&""===/./[w]("a","$0");a("replace",(function(t,e,n){var o=O?"$":"$0";return[function(t,n){var r=p(this),o=l(t)?g(t,w):void 0;return o?i(o,t,r,n):i(e,d(r),t,n)},function(t,i){var a=u(this),s=d(t);if("string"==typeof i&&-1===E(i,o)&&-1===E(i,"$<")){var l=n(e,a,s,i);if(l.done)return l.value}var p=c(i);p||(i=d(i));var g,w=d(m(a)),_=-1!==E(w,"g");_&&(g=-1!==E(w,"u"),a.lastIndex=0);for(var O,M=[];null!==(O=b(a,s))&&(S(M,O),_);)""===d(O[0])&&(a.lastIndex=v(s,h(a.lastIndex),g));for(var C,L="",R=0,I=0;I=R&&(L+=T(s,R,F)+P,R=F+j.length)}return L+T(s,R)}]}),!!s((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$")}))||!_||O)},25745:function(t,e,n){"use strict";var r=n(77629);t.exports=function(t,e){return r[t]||(r[t]=e||{})}},25843:function(t,e,n){"use strict";var r=n(46518),i=n(52703);r({target:"Number",stat:!0,forced:Number.parseInt!==i},{parseInt:i})},26099:function(t,e,n){"use strict";var r=n(92140),i=n(36840),o=n(53179);r||i(Object.prototype,"toString",o,{unsafe:!0})},26198:function(t,e,n){"use strict";var r=n(18014);t.exports=function(t){return r(t.length)}},26269:function(t){"use strict";t.exports={}},26561:function(t,e,n){"use strict";n.a(t,(async function(t,e){try{var r=n(23029),i=n(92901),o=n(10467),a=n(64467),s=n(80296),u=n(54756),c=n.n(u),l=n(5457),f=n(92407),h=n(49557),d=n(62248),p=t([l]);function zt(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=Ut(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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 o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Ut(t,e){if(t){if("string"==typeof t)return Wt(t,e);var n={}.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)?Wt(t,e):void 0}}function Wt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;return{left:n*e.left+t.left,right:n*e.right+t.left,top:r*e.top+t.top,bottom:r*e.bottom+t.top}}(g,t,f,h)})),b=m.reduce((function(t,e){return{left:Math.min(t.left,e.left),top:Math.min(t.top,e.top),right:Math.max(t.right,e.right),bottom:Math.max(t.bottom,e.bottom)}}),Yt({},m[0])),w=window.innerWidth,x=window.innerHeight;return{left:u(b.left/w),top:u(b.top/x),right:u(b.right/w),bottom:u(b.bottom/x)}},S=function(t){if(null==t||!t.rangeCount)return null;var e=t.getRangeAt(0);return e.collapsed?null:e},E=120,T=function(t){return"string"==typeof t?t.replace(/\s+/g," ").trim():""},_=function(t,e,n){if(!t)return"";var r=Math.max(0,Math.min(t.length,e)),i=Math.max(r,Math.min(t.length,n));return t.slice(r,i)},O=function(t){var e,n;if(!t)return"";var r=t.toString().trim(),i=t.startContainer,o=t.endContainer,a=null!==(e=null==i?void 0:i.textContent)&&void 0!==e?e:"",s=null!==(n=null==o?void 0:o.textContent)&&void 0!==n?n:"",u="";if(i===o){var c=_(a,t.startOffset-E,t.endOffset+E);u=T(c)}else u=[T(_(a,t.startOffset-E,t.startOffset+E)),r,T(_(s,t.endOffset-E,t.endOffset+E))].filter(Boolean).join(" ");return!u&&r&&(u=r),(u=T(u)).length>600?u.slice(0,600):u},M=function(t,e,n){var r=e.getSelection(),i=S(r);if(i){var o=A(i),a=t.getCFI(n,i),s=r.toString();if(!s){var u=i.startContainer.ownerDocument.getSelection();u.removeAllRanges(),u.addRange(i),s=u.toString()}var c=O(i);gt({index:n,range:i,lang:"en-US",cfi:a,pos:o,text:s,contextText:c})}},C=function(t,e,n){var r=!1,i=null;e.__anxSelectionClearedAt=0,e.__anxSuppressClick=!1,e.addEventListener("selectionchange",(function(){if(S(e.getSelection()))return r=!0,e.__anxSelectionClearedAt=0,void(e.__anxSuppressClick=!1);r&&(r=!1,i=null,e.__anxSelectionClearedAt=Date.now(),e.__anxSuppressClick=!0,st("onSelectionCleared"))}));var a=function(){var t,n,r=S(e.getSelection());return!(!r||(!i||(n=r,(t=i).startContainer!==n.startContainer||t.startOffset!==n.startOffset||t.endContainer!==n.endContainer||t.endOffset!==n.endOffset))&&(i=r.cloneRange(),1))};if(navigator.platform.includes("Mac")||navigator.platform.includes("iPhone")||navigator.platform.includes("iPad"))e.addEventListener("pointerup",(function(){a()||M(t,e,n)}));else if(navigator.platform.includes("Win"))if(e.addEventListener("contextmenu",(function(t){t.preventDefault()})),navigator.maxTouchPoints>0){e.addEventListener("pointerup",(function(r){"touch"!==r.pointerType&&(a()||M(t,e,n))}));var s=!1;e.addEventListener("pointerdown",(function(t){"mouse"===t.pointerType&&(s=!0)})),e.addEventListener("pointerup",(function(t){"mouse"===t.pointerType&&(s=!1)}));var u=void 0;e.addEventListener("selectionchange",(function(){!s&&S(e.getSelection())&&(clearTimeout(u),u=setTimeout((function(){M(t,e,n)}),500))}))}else e.addEventListener("pointerup",(function(){a()||M(t,e,n)}));else if(navigator.userAgent.includes("Phone; OpenHarmony"))e.addEventListener("contextmenu",(function(t){t.preventDefault()})),u=void 0,e.addEventListener("selectionchange",(function(){S(e.getSelection())&&(clearTimeout(u),u=setTimeout((function(){M(t,e,n)}),600))}));else{var l=!1;e.addEventListener("pointerdown",(function(){l=!1})),e.addEventListener("pointercancel",(function(){l=!0})),e.addEventListener("contextmenu",(function(r){"mouse"!==r.pointerType?l?M(t,e,n):r.preventDefault():M(t,e,n)}))}t.isFixedLayout||(e.addEventListener("selectstart",(function(){var e=t.shadowRoot.querySelector("foliate-paginator").shadowRoot.querySelector("#container");e&&(globalThis.originalScrollLeft=e.scrollLeft)})),e.addEventListener("selectionchange",(function(){if("paginated"===t.renderer.getAttribute("flow")){var n=t.lastLocation;if(n){var r=S(e.getSelection());if(r){globalThis.pageDebounceTimer&&(clearTimeout(globalThis.pageDebounceTimer),globalThis.pageDebounceTimer=null);var i=t.shadowRoot.querySelector("foliate-paginator").shadowRoot.querySelector("#container");if(r.compareBoundaryPoints(Range.END_TO_END,n.range)>=0)globalThis.pageDebounceTimer=setTimeout((0,o.A)(c().mark((function e(){return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,t.next();case 1:globalThis.originalScrollLeft=i.scrollLeft,globalThis.pageDebounceTimer=null;case 2:case"end":return e.stop()}}),e)}))),1e3);else{var a=function(){var n=S(e.getSelection());n&&t.lastLocation&&t.lastLocation.range&&t.lastLocation.range.startContainer===n.endContainer&&(i.scrollLeft=globalThis.originalScrollLeft)};i.addEventListener("scroll",a),e.addEventListener("pointerup",(function(){i.removeEventListener("scroll",a)}),{once:!0})}}}}})))},L=function(){var t=(0,o.A)(c().mark((function t(e){var n,r,i;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=Uint8Array,t.next=1,e.slice(0,4).arrayBuffer();case 1:return i=t.sent,n=new r(i),t.abrupt("return",80===n[0]&&75===n[1]&&3===n[2]&&4===n[3]);case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),R=function(){var t=(0,o.A)(c().mark((function t(e){var n,r,i;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=Uint8Array,t.next=1,e.slice(0,5).arrayBuffer();case 1:return i=t.sent,n=new r(i),t.abrupt("return",37===n[0]&&80===n[1]&&68===n[2]&&70===n[3]&&45===n[4]);case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),I=function(){var t=(0,o.A)(c().mark((function t(e){var n,r,i,o,a,s,u;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return g({useWebWorkers:!1}),n=new y(new m(e)),t.next=1,n.getEntries();case 1:return r=t.sent,i=new Map(r.map((function(t){return[t.filename,t]}))),o=function(t){return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o div:only-of-type,\n body > div:only-of-type > div:only-of-type {\n overflow: visible !important;\n }\n\n img, svg {\n // height: auto !important;\n // width: auto !important;\n object-fit: contain !important;\n break-inside: avoid !important;\n box-sizing: border-box !important;\n font-size: initial !important;\n // height: initial !important;\n // width: initial !important;\n }\n\n a:link {\n color:rgb(167, 96, 52) !important;\n }\n \n a > img {\n font-size: ").concat(e,"em !important;\n }\n\n * {\n // line-height: ").concat(a,"em !important;\n ").concat(m,"\n }\n\n ").concat(g?"":"\n h1 { \n font-size: calc(2em * ".concat(y,") !important; \n line-height: ").concat(a," !important;\n }\n h2 { \n font-size: calc(1.5em * ").concat(y,") !important; \n line-height: ").concat(a," !important;\n }\n h3 { \n font-size: calc(1.17em * ").concat(y,") !important; \n line-height: ").concat(a," !important;\n }\n h4 { \n font-size: calc(1em * ").concat(y,") !important; \n line-height: ").concat(a," !important;\n }\n h5 { \n font-size: calc(0.83em * ").concat(y,") !important; \n line-height: ").concat(a," !important;\n }\n h6 { \n font-size: calc(0.67em * ").concat(y,") !important; \n line-height: ").concat(a," !important;\n }\n "),"\n\n p, li, blockquote, dd, div:not(:has(*:not(b, a, em, i, strong, u, span))), font {\n color: ").concat(c," !important;\n ").concat(g?"":"line-height: ".concat(a," !important;"),"\n ").concat(g?"":"font-weight: ".concat(i," !important;"),"\n ").concat(g?"":"text-align: ".concat("auto"===f?l?"justify":"start":f,";"),"\n ").concat(g||s<0?"":"text-indent: "+s+"em !important;","\n -webkit-hyphens: ").concat(h?"auto":"manual",";\n hyphens: ").concat(h?"auto":"manual",";\n -webkit-hyphenate-limit-before: 3;\n -webkit-hyphenate-limit-after: 2;\n -webkit-hyphenate-limit-lines: 2;\n hanging-punctuation: allow-end last;\n widows: 2;\n ").concat(g?"":"margin-block-start: ".concat(u/2,"em !important;"),"\n ").concat(g?"":"margin-block-end: ".concat(u/2,"em !important;"),'\n }\n\n .anx-text-center,\n [align="center"],\n [style*="text-align: center"],\n [style*="text-align:center"] {\n text-indent: 0 !important;\n }\n\n\n /* Paragraphs containing only an image — don\'t change */\n p:has(> img:only-child),\n p:has(> span:only-child > img:only-child),\n p:has(> img:not(.has-text-siblings)),\n p:has(> a:first-child + img:last-child),\n div:has(> img:only-child),\n div:has(> span:only-child > img:only-child),\n div:has(> img:not(.has-text-siblings)),\n div:has(> a:first-child + img:last-child) {\n text-indent: initial !important;\n font-size: initial !important;\n height: initial !important;\n width: initial !important;\n }\n\n /* Paragraphs inside list items — prevent double indentation */\n li > p,\n ol > p,\n ul > p {\n text-indent: 0 !important;\n }\n \n /* prevent the above from overriding the align attribute */\n [align="left"] { text-align: left; }\n [align="right"] { text-align: right; }\n [align="center"] { text-align: center; }\n [align="justify"] { text-align: justify; }\n\n /* Code highlighting styles */\n pre {\n white-space: pre-wrap !important;\n background: rgba(128, 128, 128, 0.1) !important;\n border-radius: 6px !important;\n padding: 1em !important;\n overflow: visible !important;\n font-family: \'Consolas\', \'Monaco\', \'Courier New\', monospace !important;\n font-size: 0.9em !important;\n line-height: 1.5 !important;\n margin: 0.5em 0 !important;\n /* Allow code blocks to be split across columns/pages in WebKit */\n break-inside: auto !important;\n page-break-inside: auto !important;\n -webkit-column-break-inside: auto !important;\n /* Force block formatting context to allow proper column breaks */\n display: block !important;\n /* Remove any max-height constraints */\n max-height: none !important;\n height: auto !important;\n }\n \n /* Individual lines within code can break across columns */\n pre code {\n display: block !important;\n break-inside: auto !important;\n page-break-inside: auto !important;\n -webkit-column-break-inside: auto !important;\n overflow: visible !important;\n max-height: none !important;\n height: auto !important;\n white-space: pre-wrap !important;\n }\n \n /* Line wrapper for Safari column breaking */\n .anx-code-line {\n display: block !important;\n break-inside: avoid !important;\n page-break-inside: avoid !important;\n -webkit-column-break-inside: avoid !important;\n }\n \n code {\n font-family: \'Consolas\', \'Monaco\', \'Courier New\', monospace !important;\n font-size: 0.9em !important;\n background: rgba(128, 128, 128, 0.15) !important;\n padding: 0.2em 0.4em !important;\n border-radius: 3px !important;\n }\n \n pre > code {\n background: transparent !important;\n padding: 0 !important;\n border-radius: 0 !important;\n font-size: 1em !important;\n }\n \n aside[epub|type~="endnote"],\n aside[epub|type~="footnote"],\n aside[epub|type~="note"],\n aside[epub|type~="rearnote"] {\n display: none;\n }\n \n ').concat(v&&p?p:"","\n")},z=function(t){if("none"!==Et.convertChineseMode&&function(t,e){console.log("convertChinese",t);var n="皑蔼碍爱翱袄奥坝罢摆败颁办绊帮绑镑谤剥饱宝报鲍辈贝钡狈备惫绷笔毕毙闭边编贬变辩辫鳖瘪濒滨宾摈饼拨钵铂驳卜补参蚕残惭惨灿苍舱仓沧厕侧册测层诧搀掺蝉馋谗缠铲产阐颤场尝长偿肠厂畅钞车彻尘陈衬撑称惩诚骋痴迟驰耻齿炽冲虫宠畴踌筹绸丑橱厨锄雏础储触处传疮闯创锤纯绰辞词赐聪葱囱从丛凑窜错达带贷担单郸掸胆惮诞弹当挡党荡档捣岛祷导盗灯邓敌涤递缔点垫电淀钓调迭谍叠钉顶锭订东动栋冻斗犊独读赌镀锻断缎兑队对吨顿钝夺鹅额讹恶饿儿尔饵贰发罚阀珐矾钒烦范贩饭访纺飞废费纷坟奋愤粪丰枫锋风疯冯缝讽凤肤辐抚辅赋复负讣妇缚该钙盖干赶秆赣冈刚钢纲岗皋镐搁鸽阁铬个给龚宫巩贡钩沟构购够蛊顾剐关观馆惯贯广规硅归龟闺轨诡柜贵刽辊滚锅国过骇韩汉阂鹤贺横轰鸿红后壶护沪户哗华画划话怀坏欢环还缓换唤痪焕涣黄谎挥辉毁贿秽会烩汇讳诲绘荤浑伙获货祸击机积饥讥鸡绩缉极辑级挤几蓟剂济计记际继纪夹荚颊贾钾价驾歼监坚笺间艰缄茧检碱硷拣捡简俭减荐槛鉴践贱见键舰剑饯渐溅涧浆蒋桨奖讲酱胶浇骄娇搅铰矫侥脚饺缴绞轿较秸阶节茎惊经颈静镜径痉竞净纠厩旧驹举据锯惧剧鹃绢杰洁结诫届紧锦仅谨进晋烬尽劲荆觉决诀绝钧军骏开凯颗壳课垦恳抠库裤夸块侩宽矿旷况亏岿窥馈溃扩阔蜡腊莱来赖蓝栏拦篮阑兰澜谰揽览懒缆烂滥捞劳涝乐镭垒类泪篱离里鲤礼丽厉励砾历沥隶俩联莲连镰怜涟帘敛脸链恋炼练粮凉两辆谅疗辽镣猎临邻鳞凛赁龄铃凌灵岭领馏刘龙聋咙笼垄拢陇楼娄搂篓芦卢颅庐炉掳卤虏鲁赂禄录陆驴吕铝侣屡缕虑滤绿峦挛孪滦乱抡轮伦仑沦纶论萝罗逻锣箩骡骆络妈玛码蚂马骂吗买麦卖迈脉瞒馒蛮满谩猫锚铆贸么霉没镁门闷们锰梦谜弥觅绵缅庙灭悯闽鸣铭谬谋亩钠纳难挠脑恼闹馁腻撵捻酿鸟聂啮镊镍柠狞宁拧泞钮纽脓浓农疟诺欧鸥殴呕沤盘庞国爱赔喷鹏骗飘频贫苹凭评泼颇扑铺朴谱脐齐骑岂启气弃讫牵扦钎铅迁签谦钱钳潜浅谴堑枪呛墙蔷强抢锹桥乔侨翘窍窃钦亲轻氢倾顷请庆琼穷趋区躯驱龋颧权劝却鹊让饶扰绕热韧认纫荣绒软锐闰润洒萨鳃赛伞丧骚扫涩杀纱筛晒闪陕赡缮伤赏烧绍赊摄慑设绅审婶肾渗声绳胜圣师狮湿诗尸时蚀实识驶势释饰视试寿兽枢输书赎属术树竖数帅双谁税顺说硕烁丝饲耸怂颂讼诵擞苏诉肃虽绥岁孙损笋缩琐锁獭挞抬摊贪瘫滩坛谭谈叹汤烫涛绦腾誊锑题体屉条贴铁厅听烃铜统头图涂团颓蜕脱鸵驮驼椭洼袜弯湾顽万网韦违围为潍维苇伟伪纬谓卫温闻纹稳问瓮挝蜗涡窝呜钨乌诬无芜吴坞雾务误锡牺袭习铣戏细虾辖峡侠狭厦锨鲜纤咸贤衔闲显险现献县馅羡宪线厢镶乡详响项萧销晓啸蝎协挟携胁谐写泻谢锌衅兴汹锈绣虚嘘须许绪续轩悬选癣绚学勋询寻驯训讯逊压鸦鸭哑亚讶阉烟盐严颜阎艳厌砚彦谚验鸯杨扬疡阳痒养样瑶摇尧遥窑谣药爷页业叶医铱颐遗仪彝蚁艺亿忆义诣议谊译异绎荫阴银饮樱婴鹰应缨莹萤营荧蝇颖哟拥佣痈踊咏涌优忧邮铀犹游诱舆鱼渔娱与屿语吁御狱誉预驭鸳渊辕园员圆缘远愿约跃钥岳粤悦阅云郧匀陨运蕴酝晕韵杂灾载攒暂赞赃脏凿枣灶责择则泽贼赠扎札轧铡闸诈斋债毡盏斩辗崭栈战绽张涨帐账胀赵蛰辙锗这贞针侦诊镇阵挣睁狰帧郑证织职执纸挚掷帜质钟终种肿众诌轴皱昼骤猪诸诛烛瞩嘱贮铸筑驻专砖转赚桩庄装妆壮状锥赘坠缀谆浊兹资渍踪综总纵邹诅组钻致钟么为只凶准启板里雳余链泄",r="皚藹礙愛翺襖奧壩罷擺敗頒辦絆幫綁鎊謗剝飽寶報鮑輩貝鋇狽備憊繃筆畢斃閉邊編貶變辯辮鼈癟瀕濱賓擯餅撥缽鉑駁蔔補參蠶殘慚慘燦蒼艙倉滄廁側冊測層詫攙摻蟬饞讒纏鏟産闡顫場嘗長償腸廠暢鈔車徹塵陳襯撐稱懲誠騁癡遲馳恥齒熾沖蟲寵疇躊籌綢醜櫥廚鋤雛礎儲觸處傳瘡闖創錘純綽辭詞賜聰蔥囪從叢湊竄錯達帶貸擔單鄲撣膽憚誕彈當擋黨蕩檔搗島禱導盜燈鄧敵滌遞締點墊電澱釣調叠諜疊釘頂錠訂東動棟凍鬥犢獨讀賭鍍鍛斷緞兌隊對噸頓鈍奪鵝額訛惡餓兒爾餌貳發罰閥琺礬釩煩範販飯訪紡飛廢費紛墳奮憤糞豐楓鋒風瘋馮縫諷鳳膚輻撫輔賦複負訃婦縛該鈣蓋幹趕稈贛岡剛鋼綱崗臯鎬擱鴿閣鉻個給龔宮鞏貢鈎溝構購夠蠱顧剮關觀館慣貫廣規矽歸龜閨軌詭櫃貴劊輥滾鍋國過駭韓漢閡鶴賀橫轟鴻紅後壺護滬戶嘩華畫劃話懷壞歡環還緩換喚瘓煥渙黃謊揮輝毀賄穢會燴彙諱誨繪葷渾夥獲貨禍擊機積饑譏雞績緝極輯級擠幾薊劑濟計記際繼紀夾莢頰賈鉀價駕殲監堅箋間艱緘繭檢堿鹼揀撿簡儉減薦檻鑒踐賤見鍵艦劍餞漸濺澗漿蔣槳獎講醬膠澆驕嬌攪鉸矯僥腳餃繳絞轎較稭階節莖驚經頸靜鏡徑痙競淨糾廄舊駒舉據鋸懼劇鵑絹傑潔結誡屆緊錦僅謹進晉燼盡勁荊覺決訣絕鈞軍駿開凱顆殼課墾懇摳庫褲誇塊儈寬礦曠況虧巋窺饋潰擴闊蠟臘萊來賴藍欄攔籃闌蘭瀾讕攬覽懶纜爛濫撈勞澇樂鐳壘類淚籬離裏鯉禮麗厲勵礫曆瀝隸倆聯蓮連鐮憐漣簾斂臉鏈戀煉練糧涼兩輛諒療遼鐐獵臨鄰鱗凜賃齡鈴淩靈嶺領餾劉龍聾嚨籠壟攏隴樓婁摟簍蘆盧顱廬爐擄鹵虜魯賂祿錄陸驢呂鋁侶屢縷慮濾綠巒攣孿灤亂掄輪倫侖淪綸論蘿羅邏鑼籮騾駱絡媽瑪碼螞馬罵嗎買麥賣邁脈瞞饅蠻滿謾貓錨鉚貿麽黴沒鎂門悶們錳夢謎彌覓綿緬廟滅憫閩鳴銘謬謀畝鈉納難撓腦惱鬧餒膩攆撚釀鳥聶齧鑷鎳檸獰甯擰濘鈕紐膿濃農瘧諾歐鷗毆嘔漚盤龐國愛賠噴鵬騙飄頻貧蘋憑評潑頗撲鋪樸譜臍齊騎豈啓氣棄訖牽扡釺鉛遷簽謙錢鉗潛淺譴塹槍嗆牆薔強搶鍬橋喬僑翹竅竊欽親輕氫傾頃請慶瓊窮趨區軀驅齲顴權勸卻鵲讓饒擾繞熱韌認紉榮絨軟銳閏潤灑薩鰓賽傘喪騷掃澀殺紗篩曬閃陝贍繕傷賞燒紹賒攝懾設紳審嬸腎滲聲繩勝聖師獅濕詩屍時蝕實識駛勢釋飾視試壽獸樞輸書贖屬術樹豎數帥雙誰稅順說碩爍絲飼聳慫頌訟誦擻蘇訴肅雖綏歲孫損筍縮瑣鎖獺撻擡攤貪癱灘壇譚談歎湯燙濤縧騰謄銻題體屜條貼鐵廳聽烴銅統頭圖塗團頹蛻脫鴕馱駝橢窪襪彎灣頑萬網韋違圍爲濰維葦偉僞緯謂衛溫聞紋穩問甕撾蝸渦窩嗚鎢烏誣無蕪吳塢霧務誤錫犧襲習銑戲細蝦轄峽俠狹廈鍁鮮纖鹹賢銜閑顯險現獻縣餡羨憲線廂鑲鄉詳響項蕭銷曉嘯蠍協挾攜脅諧寫瀉謝鋅釁興洶鏽繡虛噓須許緒續軒懸選癬絢學勳詢尋馴訓訊遜壓鴉鴨啞亞訝閹煙鹽嚴顔閻豔厭硯彥諺驗鴦楊揚瘍陽癢養樣瑤搖堯遙窯謠藥爺頁業葉醫銥頤遺儀彜蟻藝億憶義詣議誼譯異繹蔭陰銀飲櫻嬰鷹應纓瑩螢營熒蠅穎喲擁傭癰踴詠湧優憂郵鈾猶遊誘輿魚漁娛與嶼語籲禦獄譽預馭鴛淵轅園員圓緣遠願約躍鑰嶽粵悅閱雲鄖勻隕運蘊醞暈韻雜災載攢暫贊贓髒鑿棗竈責擇則澤賊贈紮劄軋鍘閘詐齋債氈盞斬輾嶄棧戰綻張漲帳賬脹趙蟄轍鍺這貞針偵診鎮陣掙睜猙幀鄭證織職執紙摯擲幟質鍾終種腫衆謅軸皺晝驟豬諸誅燭矚囑貯鑄築駐專磚轉賺樁莊裝妝壯狀錐贅墜綴諄濁茲資漬蹤綜總縱鄒詛組鑽緻鐘麼為隻兇準啟闆裡靂餘鍊洩",i="s2t"===t?n:r,o="s2t"===t?r:n,a=function(t,e,n){t.nodeType===Node.TEXT_NODE?t.textContent=t.textContent.replace(/[\u4e00-\u9fa5]/g,(function(t){var r;return null!==(r=n[e.indexOf(t)])&&void 0!==r?r:t})):t.childNodes.forEach((function(t){return a(t,e,n)}))};e.body.childNodes.forEach((function(t){a(t,i,o)}))}(Et.convertChineseMode,t),Et.bionicReadingMode,St.textIndent>0&&t.querySelectorAll("p, div, li, blockquote, dd, font").forEach((function(t){"center"===window.getComputedStyle(t).textAlign&&t.classList.add("anx-text-center")})),St.writingMode.startsWith("vertical")||reader.view.renderer.writingMode.startsWith("vertical")){var e=function(t){t.nodeType===Node.TEXT_NODE?t.textContent=t.textContent.replace(/“/g,"『").replace(/”/g,"』").replace(/‘/g,"「").replace(/’/g,"」"):t.childNodes.forEach((function(t){return e(t)}))};t.body.childNodes.forEach((function(t){e(t)}))}},U=document.getElementById("footnote-dialog");U.style.display="none",U.addEventListener("click",(function(){U.style.display="none",st("onFootnoteClose")})),U.addEventListener("click",(function(t){return t.target===U?U.close():null}));var W=new WeakMap,H=new WeakMap,q=new WeakMap,V=new WeakMap,$=new WeakMap,G=new WeakMap,X=new WeakMap,Y=new WeakMap,K=new WeakSet,J=new WeakMap,Z=new WeakMap,Q=new WeakMap,tt=new WeakMap,et=new WeakMap,nt=new WeakMap,rt=new WeakMap,it=new WeakMap,ot=function(){return(0,i.A)((function t(){var e,n=this;(0,r.A)(this,t),qt(this,e=K),e.add(this),(0,a.A)(this,"annotations",new Map),(0,a.A)(this,"annotationsByValue",new Map),Ht(this,W,new f.F),Ht(this,H,void 0),Ht(this,q,void 0),Ht(this,V,void 0),Ht(this,$,!1),Ht(this,G,!1),Ht(this,X,{exists:!1,cfi:null,id:null}),Ht(this,Y,!1),Ht(this,J,(function(){Vt(V,n,[]);for(var t=document.createTreeWalker($t(H,n).body,NodeFilter.SHOW_TEXT,null,!1);t.nextNode();)$t(V,n).push(t.currentNode.textContent)})),Ht(this,Z,(function(){for(var t,e=document.createTreeWalker($t(H,n).body,NodeFilter.SHOW_TEXT,null,!1),r=0;t=e.nextNode();)t.textContent=$t(V,n)[r++]})),(0,a.A)(this,"readingFeatures",(function(){$t(Z,n).call(n),z($t(H,n))})),(0,a.A)(this,"getChapterContent",(function(){return $t(H,n).body.textContent})),(0,a.A)(this,"getChapterContentByHref",function(){var t=(0,o.A)(c().mark((function t(e){var r,i,o,a,s,u,l,f,h,d,p,v,g,y=arguments;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(u=y.length>1&&void 0!==y[1]?y[1]:{},e){t.next=1;break}return t.abrupt("return","");case 1:if(null!==(r=n.view)&&void 0!==r&&null!==(r=r.book)&&void 0!==r&&r.sections){t.next=2;break}return t.abrupt("return","");case 2:if((l=null===(i=(o=n.view).resolveNavigation)||void 0===i?void 0:i.call(o,e))&&null!=l.index){t.next=3;break}return t.abrupt("return","");case 3:if(null!=(f=n.view.book.sections[l.index])&&f.createDocument){t.next=4;break}return t.abrupt("return","");case 4:return t.next=5,f.createDocument();case 5:if(h=t.sent,d=null!==(a=null==h||null===(s=h.body)||void 0===s?void 0:s.textContent)&&void 0!==a?a:""){t.next=6;break}return t.abrupt("return","");case 6:return p=null==u?void 0:u.maxChars,v=null==p?null:Number(p),null!=(g=Number.isFinite(v)&&v>0?Math.floor(v):null)&&d.length>g&&(d=d.slice(0,g)),t.abrupt("return",d);case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),(0,a.A)(this,"getPreviousContent",(function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:2e3,r=null===(t=n.view.lastLocation)||void 0===t||null===(t=t.range)||void 0===t||null===(t=t.endContainer)||void 0===t?void 0:t.parentElement;if(!r)return"";for(var i="";i.length0?$t(Y,n)||(r.style.transform="translateY(".concat(Math.sqrt(50*i),"px)"),$t(rt,n).call(n,i)):i<-60&&($t(G,n)||(Vt(G,n,!0),window.pullUp()))}}})),Ht(this,nt,(function(t){var e=t.detail;if($t(Q,n).call(n)&&"vertical"===e.touchState.direction){var r=n.view.renderer,i=r.shadowRoot.querySelector("#container").scrollTop,o=e.touchState.delta.y;o>60&&i<=1?(r.shadowRoot.querySelector("#container").scrollTop=0,prevPage()):o<-60&&r.viewSize-r.end<=1&&nextPage()}else{var a=n.view.shadowRoot.children[0];if("vertical"===e.touchState.direction){var s=e.touchState.delta.y;s<-60||(s>60?$t(Y,n)||($t($,n)?($t(it,n).call(n),n.handleBookmark(!0)):($t(rt,n).call(n,s),n.handleBookmark(!1))):$t(it,n).call(n)),a.style.transition="transform 0.3s ease-out",a.style.transform="translateY(0px)",setTimeout((function(){a.style.transition=""}),300)}}})),Ht(this,rt,(function(t){var e=document.getElementById("bookmark-icon");e||((e=document.createElement("div")).id="bookmark-icon",e.innerHTML='',e.style.cssText="\n height: 80px;\n width: 26px;\n position: fixed;\n top: -16px;\n right: 20px;\n font-size: 24px;\n opacity: 0;\n transition: opacity 0.2s ease;\n z-index: 1000;\n pointer-events: none;\n ",document.body.appendChild(e));var n=Math.min(t/60,1);e.style.opacity=n})),Ht(this,it,(function(){var t=document.getElementById("bookmark-icon");t&&(t.style.transition="opacity 0.3s ease-out",t.style.opacity="0",setTimeout((function(){t&&t.parentNode&&t.parentNode.removeChild(t)}),300))})),(0,a.A)(this,"handleBookmark",(function(t){var e,r,i=t?$t(X,n).cfi:null===(e=n.view.lastLocation)||void 0===e?void 0:e.cfi,o=null!==(r=n.view.lastLocation.range.startContainer.data)&&void 0!==r?r:n.view.lastLocation.range.startContainer.innerText;(o=o.trim()).length>200&&(o=o.slice(0,200)+"...");var a=n.view.lastLocation.fraction;st("handleBookmark",{remove:t,detail:{cfi:i,content:o,percentage:a}})})),$t(W,this).addEventListener("before-render",(function(t){var e=t.detail.view;n.setView(e),function(t){clearSelection(),U.querySelector("main").replaceChildren(t),t.addEventListener("load",(function(e){var n=e.detail,r=n.doc,i=n.index;globalThis.footnoteSelection=function(){return M(t,r,i)},C(t,r,i),z(r),r.__isFootNote=!0,setTimeout((function(){var t=document.getElementById("footnote-dialog");document.querySelector("#footnote-dialog > main > foliate-view").shadowRoot.querySelector("foliate-paginator").shadowRoot.querySelector("#container > div > iframe"),t.style.display="block"}),0)}));var e=t.renderer;e.setAttribute("flow","scrolled"),e.setAttribute("gap","5%"),e.setAttribute("top-margin","0px"),e.setAttribute("bottom-margin","0px");var n={fontSize:St.fontSize,fontName:St.fontName,fontPath:St.fontPath,letterSpacing:St.letterSpacing,spacing:St.spacing,textIndent:St.textIndent,fontColor:St.fontColor,backgroundColor:"transparent",justify:!0,textAlign:St.textAlign,hyphenate:!0,customCSS:St.customCSS,customCSSEnabled:St.customCSSEnabled,writingMode:St.writingMode,useBookStyles:St.useBookStyles,headingFontSize:St.headingFontSize};e.setStyles(B(n)),U.style.backgroundColor=St.backgroundColor.slice(0,7)+"33"}(e)})),$t(W,this).addEventListener("render",(function(t){t.detail.view,U.showModal()})),Vt(V,this,null)}),[{key:"open",value:(t=(0,o.A)(c().mark((function t(e,n){return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,N(e,n);case 1:if(this.view=t.sent,!xt){t.next=2;break}return t.abrupt("return");case 2:return this.view.addEventListener("load",Gt(K,this,te).bind(this)),this.view.addEventListener("relocate",Gt(K,this,ee).bind(this)),this.view.addEventListener("click-view",Gt(K,this,ne).bind(this)),this.view.addEventListener("doctouchstart",$t(tt,this).bind(this)),this.view.addEventListener("doctouchmove",$t(et,this).bind(this)),this.view.addEventListener("doctouchend",$t(nt,this).bind(this)),ut(),n||this.view.renderer.next(),this.setView(this.view),t.next=3,this.view.init({lastLocation:n});case 3:document.documentElement.style.backgroundColor="grey";case 4:case"end":return t.stop()}}),t,this)}))),function(e,n){return t.apply(this,arguments)})},{key:"setView",value:function(t){var e=this;t.addEventListener("create-overlay",(function(n){var r=n.detail.index,i=e.annotations.get(r);if(i){var o,a=zt(i);try{for(a.s();!(o=a.n()).done;){var s=o.value;e.view.addAnnotation(s)}}catch(t){a.e(t)}finally{a.f()}}if(St&&St.codeHighlightTheme&&"off"!==St.codeHighlightTheme){var u,c=null===(u=t.renderer)||void 0===u||null===(u=u.getContents())||void 0===u?void 0:u.find((function(t){return t.index===r&&t.overlayer}));c&&c.doc&&mt(St.codeHighlightTheme,c.doc)}})),t.addEventListener("draw-annotation",(function(t){var n=t.detail,r=n.draw,i=n.annotation,o=i.color,a=i.type,s={color:o,writingMode:e.view.renderer.writingMode};"highlight"===a?r(h.u.highlight,Yt({},s)):"underline"===a&&r(h.u.underline,Yt({},s))})),t.addEventListener("show-annotation",(function(t){var n,r=e.annotationsByValue.get(t.detail.value),i=A(t.detail.range);if(null===(n=window.getSelection())||void 0===n||!n.toString()){var o=O(t.detail.range);ft({annotation:r,pos:i,contextText:o})}})),t.addEventListener("external-link",(function(t){t.preventDefault(),dt(t.detail)})),t.addEventListener("link",(function(t){var n;return null===(n=$t(W,e).handle(e.view.book,t))||void 0===n?void 0:n.catch((function(n){console.warn(n),e.view.goTo(t.detail.href)}))})),t.history.addEventListener("pushstate",(function(e){st("onPushState",{canGoBack:t.history.canGoBack,canGoForward:t.history.canGoForward})})),t.addEventListener("click-image",function(){var t=(0,o.A)(c().mark((function t(e){var n,r,i;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.detail.img.src,t.next=1,fetch(n).then((function(t){return t.blob()}));case 1:return r=t.sent,t.next=2,new Promise((function(t,e){var n=new FileReader;n.onloadend=function(){return t(n.result)},n.onerror=e,n.readAsDataURL(r)}));case 2:i=t.sent,st("onImageClick",i);case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())}},{key:"renderAnnotation",value:function(t){var e,n,r=zt(null!==(e=null!=t?t:allAnnotations)&&void 0!==e?e:[]);try{for(r.s();!(n=r.n()).done;){var i=n.value,o=i.value,a=i.type,s=i.color,u=i.note,c={id:i.id,value:o,type:a,color:s,note:u};this.addAnnotation(c)}}catch(t){r.e(t)}finally{r.f()}}},{key:"showContextMenu",value:function(){return M(this.view,$t(H,this),$t(q,this))}},{key:"addAnnotation",value:function(t){var e=t.value,n=(e.split("/")[2].split("!")[0]-2)/2,r=this.annotations.get(n);r?r.push(t):this.annotations.set(n,[t]),this.annotationsByValue.set(e,t),"bookmark"===t.type?Gt(K,this,Qt).call(this,t)&&($t(rt,this).call(this,60),Vt(X,this,{exists:!0,cfi:t.value,id:t.id})):this.view.addAnnotation(t)}},{key:"removeAnnotation",value:function(t){var e=this.annotationsByValue.get(t);if(e){var n=e.value,r=(n.split("/")[2].split("!")[0]-2)/2,i=this.annotations.get(r);if(i){var o=i.findIndex((function(t){return t.id===e.id}));-1!==o&&i.splice(o,1)}this.annotationsByValue.delete(n),this.view.addAnnotation(e,!0),"bookmark"===e.type&&Gt(K,this,Qt).call(this,e)&&($t(it,this).call(this),this.handleBookmark(!0),Vt(X,this,{exists:!1,cfi:null,id:null}))}}},{key:"index",get:function(){return $t(q,this)}},{key:"toc",get:function(){var t,e,n,r,i,o=this.view.getSectionFractions(),a=null!==(t=null===(e=this.view.lastLocation)||void 0===e||null===(e=e.tocItem)||void 0===e?void 0:e.href.split("#")[0])&&void 0!==t?t:"Not Found",s=o.findIndex((function(t){return t.href===a}));-1===s&&(s=0);var u=(null===(n=o[s])||void 0===n?void 0:n.fraction)||0,c=(null===(r=o[s+1])||void 0===r?void 0:r.fraction)||1,l=((null===(i=this.view.lastLocation)||void 0===i?void 0:i.chapterLocation.total)||1)/(c-u),f=function(t){if(!t)return 0;t=t.split("#")[0];var e=o.find((function(e){return e.href===t}));return e?e.fraction:0},h=function(t,e){return(null==t?void 0:t.map((function(t){return{label:t.label,href:t.href,id:t.id,level:e,startPercentage:f(t.href),startPage:Math.ceil(f(t.href)*l),subitems:h(t.subitems,e+1)}})))||[]};return h(this.view.book.toc,1)}}]);var t}();function Zt(){var t=$t(q,this),e=this.annotations.get(t),n=!1,r=null;if(e){var i,o=zt(e);try{for(o.s();!(i=o.n()).done;){var a=i.value;if("bookmark"===a.type&&(n=!!Gt(K,this,Qt).call(this,a)||n)){r=a,$t(rt,this).call(this,60);break}}}catch(t){o.e(t)}finally{o.f()}}Vt(X,this,{exists:n,cfi:n?r.value:null,id:n?r.id:null}),n||$t(it,this).call(this)}function Qt(t){var e,n=null===(e=this.view.lastLocation)||void 0===e?void 0:e.cfi,r=(0,d.ap)(n),i=(0,d.ap)(n,!0),o=t.value,a=(0,d.ap)(o);if((0,d.UD)(r,a)<=0&&(0,d.UD)(i,a)>0)return!0}function te(t){var e=t.detail,n=e.doc,r=e.index;Vt(H,this,n),Vt(q,this,r),C(this.view,n,r),$t(J,this).call(this),this.readingFeatures(Et),St&&St.codeHighlightTheme&&"off"!==St.codeHighlightTheme&&mt(St.codeHighlightTheme,n)}function ee(t){var e=t.detail,n=e.cfi,r=e.fraction,i=e.location,o=e.tocItem,a=e.pageItem,s=e.chapterLocation,u=a?"Page ".concat(a.label):"Loc ".concat(i.current);Gt(K,this,Zt).call(this),lt({cfi:n,fraction:r,loc:u,tocItem:o,pageItem:a,location:i,chapterLocation:s,bookmark:$t(X,this)})}function ne(t){var e,n,r,i,o,a=t.detail,s=a.x,u=a.y,c=null===(e=$t(H,this))||void 0===e||null===(n=e.getSelection)||void 0===n?void 0:n.call(e);if(!c||!S(c))if(null!==(r=$t(H,this))&&void 0!==r&&r.__anxSuppressClick)$t(H,this).__anxSuppressClick=!1;else{var l=null!==(i=null===(o=$t(H,this))||void 0===o?void 0:o.__anxSelectionClearedAt)&&void 0!==i?i:0;if(!(l&&Date.now()-l<200)){var f=s/window.innerWidth,h=u/window.innerHeight;ht(f,h)}}}var at=function(){var t=(0,o.A)(c().mark((function t(e,n){var r;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=new ot,globalThis.reader=r,t.next=1,r.open(e,n);case 1:St.codeHighlightTheme&&"off"!==St.codeHighlightTheme&&bt(St.codeHighlightTheme),xt?vt():(st("onLoadEnd"),pt(),st("renderAnnotations"));case 2:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}(),st=function(t,e){window.flutter_inappwebview.callHandler(t,e)},ut=function(t){var e,n,r,i,o,a={scroll:!1,animated:!0};switch(St.pageTurnStyle){case"slide":a.scroll=!1,a.animated=!0;break;case"scroll":a.scroll=!0,a.animated=!0;break;case"noAnimation":a.scroll=!1,a.animated=!1}reader.view.renderer.setAttribute("flow",a.scroll?"scrolled":"paginated"),reader.view.renderer.setAttribute("top-margin","".concat(St.topMargin,"px")),reader.view.renderer.setAttribute("bottom-margin","".concat(St.bottomMargin,"px")),reader.view.renderer.setAttribute("gap","".concat(St.sideMargin,"%")),reader.view.renderer.setAttribute("background-color",St.backgroundColor),reader.view.renderer.setAttribute("max-column-count",St.maxColumnCount),reader.view.renderer.setAttribute("column-threshold","".concat(St.columnThreshold,"px")),reader.view.renderer.setAttribute("bgimg-url",St.backgroundImage),reader.view.renderer.setAttribute("bgimg-blur",null!==(e=St.bgimgBlur)&&void 0!==e?e:0),reader.view.renderer.setAttribute("bgimg-opacity",null!==(n=St.bgimgOpacity)&&void 0!==n?n:1),reader.view.renderer.setAttribute("bgimg-fit",null!==(r=St.bgimgFit)&&void 0!==r?r:"cover"),a.animated?reader.view.renderer.setAttribute("animated","true"):reader.view.renderer.removeAttribute("animated");var s,u,c,l={fontSize:St.fontSize,fontName:St.fontName,fontPath:St.fontPath,fontWeight:St.fontWeight,letterSpacing:St.letterSpacing,spacing:St.spacing,paragraphSpacing:St.paragraphSpacing,textIndent:St.textIndent,fontColor:St.fontColor,backgroundColor:St.backgroundColor,justify:St.justify,textAlign:St.textAlign,hyphenate:St.hyphenate,writingMode:St.writingMode,backgroundImage:St.backgroundImage,flow:a.scroll,customCSS:St.customCSS,customCSSEnabled:St.customCSSEnabled,useBookStyles:St.useBookStyles,headingFontSize:St.headingFontSize};null===(i=(o=reader.view.renderer).setStyles)||void 0===i||i.call(o,B(l)),!St.useBookStyles&&St.fontColor&&(s=St.fontColor,u=document.querySelectorAll("h1, h2, h3, h4, h5, h6"),c=[/^#000000?$/i,/^rgb\(\s*0\s*,\s*0\s*,\s*0\s*\)$/i,/^rgba\(\s*0\s*,\s*0\s*,\s*0\s*,\s*1\s*\)$/i,/^black$/i],u.forEach((function(t){var e=window.getComputedStyle(t).color;c.some((function(t){return t.test(e.trim())}))&&t.style.setProperty("color",s,"important")}))),t&&((null==t?void 0:t.writingMode)!==St.writingMode||(null==t?void 0:t.pageTurnStyle)!==St.pageTurnStyle&&[null==t?void 0:t.pageTurnStyle,St.pageTurnStyle].includes("scroll"))&&ct()},ct=function(){var t,e=null===(t=reader.view.lastLocation)||void 0===t?void 0:t.cfi;window.nextSection().then((function(){e&&setTimeout((function(){window.goToCfi(e)}),0)}))},lt=function(t){var e,n,r=null===(e=t.tocItem)||void 0===e?void 0:e.label,i=null===(n=t.tocItem)||void 0===n?void 0:n.href,o=t.chapterLocation.total,a=t.chapterLocation.current,s=t.location.total,u=t.location.current,c=t.cfi,l=t.fraction;st("onRelocated",{chapterTitle:r,chapterHref:i,chapterTotalPages:o,chapterCurrentPage:a,bookTotalPages:s,bookCurrentPage:u,cfi:c,percentage:l,bookmark:t.bookmark,writingMode:reader.view.renderer.writingMode})},ft=function(t){return st("onAnnotationClick",t)},ht=function(t,e){return st("onClick",{x:t,y:e})},dt=function(t){return st("onExternalLink",t)},pt=function(){return st("onSetToc",reader.toc)},vt=function(){var t=(0,o.A)(c().mark((function t(){var e,n;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,reader.view.book.getCover();case 1:(e=t.sent)?((n=new FileReader).readAsDataURL(e),n.onloadend=function(){st("onMetadata",Yt(Yt({},reader.view.book.metadata),{},{cover:n.result}))}):st("onMetadata",Yt(Yt({},reader.view.book.metadata),{},{cover:null}));case 2:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();window.refreshToc=function(){return pt()},window.changeStyle=function(t){var e=St;St=Yt(Yt({},St),t),console.log("changeStyle",JSON.stringify(St)),ut(e),void 0!==t.codeHighlightTheme&&bt(t.codeHighlightTheme)},window.goToHref=function(t){return reader.view.goTo(t)},window.goToCfi=function(t){return reader.view.goTo(t)},window.goToPercent=function(t){return reader.view.goToFraction(t)},window.nextPage=function(){return reader.view.next()},window.prevPage=function(){return reader.view.prev()},window.setScroll=function(){St.scroll=!0,St.animated=!0,ut()},window.setPaginated=function(){St.scroll=!1,St.animated=!0,ut()},window.setNoAnimation=function(){St.scroll=!1,St.animated=!1,ut()};var gt=function(t){window.isFootNoteOpen()||k?st("onSelectionEnd",Yt(Yt({},t),{},{footnote:!0})):st("onSelectionEnd",Yt(Yt({},t),{},{footnote:!1}))};window.showContextMenu=function(){window.isFootNoteOpen()?footnoteSelection():reader.showContextMenu()},window.getSelection=function(){return reader.getSelection()},window.clearSelection=function(){return reader.view.deselect()},window.addAnnotation=function(t){return reader.addAnnotation(t)},window.addBookmarkHere=function(){return reader.handleBookmark(!1)},window.removeAnnotation=function(t){return reader.removeAnnotation(t)},window.prevSection=function(){return reader.view.renderer.prevSection()},window.nextSection=function(){return reader.view.renderer.nextSection()},window.initTts=function(){return reader.view.initTTS()},window.ttsStop=function(){return reader.view.initTTS(!0)},window.ttsHere=function(){return initTts(),reader.view.tts.from(reader.view.lastLocation.range)},window.ttsFromCfi=function(){var t=(0,o.A)(c().mark((function t(e){var n,r,i,o,a;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return initTts(),t.prev=1,t.next=2,reader.view.resolveNavigation(e);case 2:if(!(n=t.sent)||!n.anchor){t.next=3;break}if(r=reader.view.renderer.getContents(),!(i=r.find((function(t){return t.index===n.index}))||r[0])||!i.doc){t.next=3;break}return o=n.anchor(i.doc),t.abrupt("return",reader.view.tts.from(o));case 3:t.next=5;break;case 4:t.prev=4,a=t.catch(1),console.error(a);case 5:return t.abrupt("return",reader.view.tts.from(reader.view.lastLocation.range));case 6:case"end":return t.stop()}}),t,null,[[1,4]])})));return function(e){return t.apply(this,arguments)}}(),window.ttsCurrentDetail=function(){return initTts(),reader.view.tts.currentDetail()},window.ttsCollectDetails=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return initTts(),reader.view.tts.collectDetails(t,{includeCurrent:e,offset:n})},window.ttsHighlightByCfi=function(t){return initTts(),reader.view.tts.highlightCfi(t)},window.ttsNextSection=(0,o.A)(c().mark((function t(){return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,nextSection();case 1:return initTts(),t.abrupt("return",ttsNext());case 2:case"end":return t.stop()}}),t)}))),window.ttsPrevSection=function(){var t=(0,o.A)(c().mark((function t(e){return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,prevSection();case 1:return initTts(),t.abrupt("return",e?reader.view.tts.end():ttsNext());case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),window.ttsNext=(0,o.A)(c().mark((function t(){var e;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(e=reader.view.tts.next(!0))){t.next=1;break}return t.abrupt("return",e);case 1:return t.next=2,ttsNextSection();case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)}))),window.ttsPrev=function(){return reader.view.tts.prev(!0)||ttsPrevSection(!0)},window.ttsPrepare=function(){return reader.view.tts.prepare()},window.clearSearch=function(){return reader.view.clearSearch()},window.search=function(){var t=(0,o.A)(c().mark((function t(e,n){var r,i,o,a,s,u,l,f,h;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null==n&&(n={scope:"book",matchCase:!1,matchDiacritics:!1,matchWholeWords:!1}),r=e.trim()){t.next=1;break}return t.abrupt("return");case 1:i="section"===n.scope?reader.index:null,o=!1,a=!1,t.prev=2,u=Kt(reader.view.search(Yt(Yt({},n),{},{query:r,index:i})));case 3:return t.next=4,u.next();case 4:if(!(o=!(l=t.sent).done)){t.next=6;break}f=l.value,st("onSearch","done"===f?{process:1}:"progress"in f?{process:f.progress}:f);case 5:o=!1,t.next=3;break;case 6:t.next=8;break;case 7:t.prev=7,h=t.catch(2),a=!0,s=h;case 8:if(t.prev=8,t.prev=9,!o||null==u.return){t.next=10;break}return t.next=10,u.return();case 10:if(t.prev=10,!a){t.next=11;break}throw s;case 11:return t.finish(10);case 12:return t.finish(8);case 13:case"end":return t.stop()}}),t,null,[[2,7,8,13],[9,,10,12]])})));return function(e,n){return t.apply(this,arguments)}}(),window.back=function(){return reader.view.history.back()},window.forward=function(){return reader.view.history.forward()},window.renderAnnotations=function(t){return reader.renderAnnotation(t)},window.theChapterContent=function(){return reader.getChapterContent()},window.previousContent=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:2e3;return reader.getPreviousContent(t)},window.getChapterContentByHref=function(){var t=(0,o.A)(c().mark((function t(e,n){return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",reader.getChapterContentByHref(e,n));case 1:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}(),window.isFootNoteOpen=function(){return U.getAttribute("style").includes("display: block")},window.closeFootNote=function(){U.style.display="none",st("onFootnoteClose")},window.readingFeatures=function(t){Et=Yt(Yt({},Et),t),reader.readingFeatures()},window.pullUp=function(){st("onPullUp")};var yt=(Tt=null,_t=!1,Ot=null,Mt="/foliate-js/src/vendor/prism",Ct=new WeakSet,Lt=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e4;return new Promise((function(n,r){var i=document.createElement("script");i.src=t;var o=setTimeout((function(){r(new Error("Script load timeout: ".concat(t)))}),e);i.onload=function(){clearTimeout(o),n()},i.onerror=function(e){clearTimeout(o),r(new Error("Failed to load script: ".concat(t)))},document.head.appendChild(i)}))},Rt=function(){var t=(0,o.A)(c().mark((function t(){var e,n=arguments;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=n.length>0&&void 0!==n[0]?n[0]:0,!_t){t.next=1;break}return t.abrupt("return",!0);case 1:if(!Ot){t.next=2;break}return t.abrupt("return",Ot);case 2:return Ot=(0,o.A)(c().mark((function t(){var n,r;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=1,Lt("".concat(Mt,"/prism-core.min.js"));case 1:return t.next=2,Lt("".concat(Mt,"/prism-autoloader.min.js"));case 2:if(null===(n=window.Prism)||void 0===n||null===(n=n.plugins)||void 0===n||!n.autoloader){t.next=3;break}window.Prism.plugins.autoloader.languages_path="".concat(Mt,"/components/"),t.next=4;break;case 3:throw new Error("Prism autoloader not available after loading");case 4:return _t=!0,t.abrupt("return",!0);case 5:if(t.prev=5,r=t.catch(0),console.error("[CodeHighlighter] Load error:",r.message),!(e<2)){t.next=6;break}return Ot=null,t.abrupt("return",Rt(e+1));case 6:return console.error("[CodeHighlighter] Max retries reached, giving up"),Ot=null,t.abrupt("return",!1);case 7:case"end":return t.stop()}}),t,null,[[0,5]])})))(),t.abrupt("return",Ot);case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),It=function(t,e){if(null==t||!t.head)return!1;var n=t.getElementById("prism-theme");if(n&&n.remove(),!e||"off"===e)return!0;var r=function(t){if(!t||"off"===t)return null;var e="default"===t?"prism-default.min.css":"prism-".concat(t,".min.css");return new URL("".concat(Mt,"/themes/").concat(e),window.location.origin).href}(e);if(!r)return!1;var i=t.createElement("link");return i.id="prism-theme",i.rel="stylesheet",i.href=r,t.head.appendChild(i),!0},Pt=function(t){var e=t.getAttribute("data-language");if(e)return e.toLowerCase();var n=t.className.match(/(?:^|\s)(?:language|lang)-(\w+)/);if(n)return n[1].toLowerCase();var r=t.getAttribute("type");if(r){var i=r.match(/(?:text|application)\/(\w+)/);if(i)return i[1].toLowerCase()}var o=t.parentElement;if(o){var a,s=o.getAttribute("data-language")||(null===(a=o.className.match(/(?:^|\s)(?:language|lang)-(\w+)/))||void 0===a?void 0:a[1]);if(s)return s.toLowerCase()}return null},jt=function(t,e){if(t.classList.contains("prism-highlighted"))return!1;try{var n=Pt(t);return n&&!t.classList.contains("language-".concat(n))&&t.classList.add("language-".concat(n)),window.Prism.highlightElement(t),t.classList.add("prism-highlighted"),!0}catch(t){return console.warn("[CodeHighlighter] Failed to highlight block:",t.message),!1}},Ft=function(t,e){if(t.querySelector("code"))return null;if(t.classList.contains("prism-highlighted"))return null;var n=Pt(t)||"plaintext",r=e.createElement("code");return r.className="language-".concat(n),r.innerHTML=t.innerHTML,t.innerHTML="",t.appendChild(r),t.classList.add("language-".concat(n)),r},Dt=function(){var t=(0,o.A)(c().mark((function t(e){var n,r,i,o,a,s,u,l,f,h,d,p,v,g=arguments;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=g.length>1&&void 0!==g[1]?g[1]:document,e&&"off"!==e&&n){t.next=1;break}return t.abrupt("return");case 1:if(!Ct.has(n)||e!==Tt){t.next=2;break}return t.abrupt("return");case 2:if(r=Array.from(n.querySelectorAll("pre code")),i=Array.from(n.querySelectorAll('pre.snippet, pre.code, pre[class*="language-"], pre[data-language]')),0!==r.length+i.length){t.next=3;break}return Ct.add(n),t.abrupt("return");case 3:return n!==document&&It(n,e),t.next=4,Rt();case 4:if(t.sent&&window.Prism){t.next=5;break}return console.error("[CodeHighlighter] Prism not available, skipping highlighting"),t.abrupt("return");case 5:for(o=0,a=i;ol&&f+l3)){if(p)return!0;if(g)return g<603;var t,e,n,r,i="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)y.push({k:e+r,v:n})}for(y.sort((function(t,e){return e.v-t.v})),r=0;rc(n)?1:-1}}(t)),n=s(i),r=0;ri;){if(e=+arguments[i++],o(e,1114111)!==e)throw new a(e+" is not a valid code point");n[i]=e<65536?s(e):s(55296+((e-=65536)>>10),e%1024+56320)}return c(n,"")}})},27476:function(t,e,n){"use strict";var r=n(22195),i=n(79504);t.exports=function(t){if("Function"===r(t))return i(t)}},27495:function(t,e,n){"use strict";var r=n(46518),i=n(57323);r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},27800:function(t,e,n){"use strict";n.d(e,{A:function(){return i}});var r=n(43145);function i(t,e){if(t){if("string"==typeof t)return(0,r.A)(t,e);var n={}.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)?(0,r.A)(t,e):void 0}}},28527:function(t,e,n){"use strict";var r=n(97080),i=n(94402).has,o=n(25170),a=n(83789),s=n(40507),u=n(9539);t.exports=function(t){var e=r(this),n=a(t);if(o(e)=51||!i((function(){var t=[];return t[v]=!1,t.concat()[0]!==t})),y=function(t){if(!a(t))return!1;var e=t[v];return void 0!==e?!!e:o(t)};r({target:"Array",proto:!0,arity:1,forced:!g||!h("concat")},{concat:function(t){var e,n,r,i,o,a=s(this),h=f(a,0),d=0;for(e=-1,r=arguments.length;e1?arguments[1]:void 0,1),n=u(t);if(g)return i(d,this,n,e);var r=this.length,o=a(n),c=0;if(o+e>r)throw new l("Wrong length");for(;ci;)c[i]=n[i++];return c}),i((function(){new Int8Array(1).slice()})))},29833:function(t,e,n){"use strict";n(15823)("Float64",(function(t){return function(e,n,r){return t(this,e,n,r)}}))},29908:function(t,e,n){"use strict";n(46518)({target:"Object",stat:!0},{is:n(3470)})},29948:function(t,e,n){"use strict";var r=n(35370),i=n(94644).getTypedArrayConstructor;t.exports=function(t,e){return r(i(t),e)}},30067:function(t,e,n){"use strict";n(17145)},30237:function(t,e,n){"use strict";n(6469)("flatMap")},30421:function(t){"use strict";t.exports={}},30531:function(t,e,n){"use strict";var r=n(46518),i=n(69565),o=n(79306),a=n(28551),s=n(1767),u=n(48646),c=n(19462),l=n(9539),f=n(96395),h=n(30684),d=n(84549),p=!f&&!h("flatMap",(function(){})),v=!f&&!p&&d("flatMap",TypeError),g=f||p||v,y=c((function(){for(var t,e,n=this.iterator,r=this.mapper;;){if(e=this.inner)try{if(!(t=a(i(e.next,e.iterator))).done)return t.value;this.inner=null}catch(t){l(n,"throw",t)}if(t=a(i(this.next,n)),this.done=!!t.done)return;try{this.inner=u(r(t.value,this.counter++),!1)}catch(t){l(n,"throw",t)}}}));r({target:"Iterator",proto:!0,real:!0,forced:g},{flatMap:function(t){a(this);try{o(t)}catch(t){l(this,"throw",t)}return v?i(v,this,t):new y(s(this),{mapper:t,inner:null})}})},30566:function(t,e,n){"use strict";var r=n(79504),i=n(79306),o=n(20034),a=n(39297),s=n(67680),u=n(40616),c=Function,l=r([].concat),f=r([].join),h={};t.exports=u?c.bind:function(t){var e=i(this),n=e.prototype,r=s(arguments,1),u=function(){var n=l(r,s(arguments));return this instanceof u?function(t,e,n){if(!a(h,e)){for(var r=[],i=0;i=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}throw new TypeError(r(t)+" is not iterable")},t.exports.__esModule=!0,t.exports.default=t.exports},30684:function(t){"use strict";t.exports=function(t,e){var n="function"==typeof Iterator&&Iterator.prototype[t];if(n)try{n.call({next:null},e).next()}catch(t){return!0}}},30958:function(t,e,n){"use strict";n(5240)},30985:function(t,e,n){"use strict";var r=n(46518),i=n(97751),o=n(28551);r({target:"Reflect",stat:!0,sham:!n(92744)},{preventExtensions:function(t){o(t);try{var e=i("Object","preventExtensions");return e&&e(t),!0}catch(t){return!1}}})},31051:function(t,e,n){"use strict";var r=n(46518),i=n(79039),o=n(33517),a=n(97040),s=Array;r({target:"Array",stat:!0,forced:i((function(){function t(){}return!(s.of.call(t)instanceof t)}))},{of:function(){for(var t=0,e=arguments.length,n=new(o(this)?this:s)(e);e>t;)a(n,t,arguments[t++]);return n.length=e,n}})},31073:function(t,e,n){"use strict";n(70511)("split")},31240:function(t,e,n){"use strict";var r=n(79504);t.exports=r(1.1.valueOf)},31330:function(t,e,n){"use strict";n.r(e),n.d(e,{EPUB:function(){return Pt}});var r=n(23029),i=n(92901),o=n(56822),a=n(53954),s=n(85501),u=n(28614),c=n(80296),l=n(64467),f=n(10467),h=n(45458),d=n(54756),p=n.n(d),v=n(62248);function g(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(g=function(){return!!t})()}function y(t,e){b(t,e),e.add(t)}function m(t,e,n){b(t,e),e.set(t,n)}function b(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function w(t,e,n){return n(A(t,e))}function x(t,e,n){return t.set(A(t,e),n),n}function k(t,e){return t.get(A(t,e))}function A(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}function S(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return E(t,e);var n={}.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)?E(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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 o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function E(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n1&&void 0!==arguments[1]?arguments[1]:function(t){return t},r=N(t,"http://www.w3.org/1999/xhtml"),i=r.$,o=r.$$,a=r.$$$,s=function(t,e){return t?o(t,"li").map(function(t){return function(e){var r,o,a=null!==(r=i(e,"a"))&&void 0!==r?r:i(e,"span"),u=i(e,"ol"),c=function(t){return t?decodeURI(n(t)):null}(null==a?void 0:a.getAttribute("href")),l={label:D(a)||(null==a?void 0:a.getAttribute("title")),href:c,subitems:s(u)};return t&&(l.type=null==a||null===(o=a.getAttributeNS(M,"type"))||void 0===o?void 0:o.split(/\s/)),l}}(e)):null},u=function(t,e){return s(i(t,"ol"),e)},c=null,l=null,f=null,h=[],d=S(a(t,"nav"));try{for(d.s();!(e=d.n()).done;){var p,v,g=e.value,y=null!==(p=null===(v=g.getAttributeNS(M,"type"))||void 0===v?void 0:v.split(/\s/))&&void 0!==p?p:[];y.includes("toc")?null!=c||(c=u(g)):y.includes("page-list")?null!=l||(l=u(g)):y.includes("landmarks")?null!=f||(f=u(g,!0)):h.push({label:D(g.firstElementChild),type:y,list:u(g)})}}catch(t){d.e(t)}finally{d.f()}return{toc:c,pageList:l,landmarks:f,others:h}},Y=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(t){return t},n=N(t,"http://www.daisy.org/z3986/2005/ncx/"),r=n.$,i=n.$$,o=function(t){var n=r(t,"navLabel"),a=r(t,"content"),s=D(n),u=function(t){return t?decodeURI(e(t)):null}(a.getAttribute("src"));if("navPoint"===t.localName){var c=i(t,"navPoint");return{label:s,href:u,subitems:c.length?c.map(o):null}}return{label:s,href:u}},a=function(t,e){return i(t,e).map(o)},s=function(e,n){var i=r(t.documentElement,e);return i?a(i,n):null};return{toc:s("navMap","navPoint"),pageList:s("pageList","pageTarget"),others:i(t.documentElement,"navList").map((function(t){return{label:D(r(t,"navLabel")),list:a(t,"navTarget")}}))}},K=function(t){if(t){var e=t.split(":").map((function(t){return parseFloat(t)}));if(3===e.length){var n=(0,c.A)(e,3);return 60*n[0]*60+60*n[1]+n[2]}if(2===e.length){var r=(0,c.A)(e,2);return 60*r[0]+r[1]}var i=t.split(/(?=[^\d.])/),o=(0,c.A)(i,2),a=o[0],s=o[1];return parseFloat(a)*("h"===s?3600:"min"===s?60:"ms"===s?.001:1)}},J=new WeakMap,Z=new WeakMap,Q=new WeakMap,tt=new WeakMap,et=new WeakMap,nt=new WeakMap,rt=new WeakMap,it=new WeakMap,ot=new WeakSet,at=function(t){function e(t,n){var i,s,u,c;return(0,r.A)(this,e),s=this,u=e,u=(0,a.A)(u),y(i=(0,o.A)(s,g()?Reflect.construct(u,[],(0,a.A)(s).constructor):u.apply(s,c)),ot),m(i,J,void 0),m(i,Z,void 0),m(i,Q,void 0),m(i,tt,void 0),m(i,et,void 0),m(i,nt,void 0),m(i,rt,1),m(i,it,1),i.book=t,i.loadXML=n,i}return(0,s.A)(e,t),(0,i.A)(e,[{key:"start",value:(n=(0,f.A)(p().mark((function t(e){var n,r,i,o,a,s,u,c,l=this,f=arguments;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=f.length>1&&void 0!==f[1]?f[1]:function(){return!0},null===(n=k(nt,this))||void 0===n||n.pause(),i=this.book.sections[e],o=null==i?void 0:i.id){t.next=1;break}return t.abrupt("return");case 1:if(a=i.mediaOverlay){t.next=2;break}return t.abrupt("return",this.start(e+1));case 2:return x(Q,this,e),t.next=3,A(ot,this,st).call(this,a);case 3:s=0;case 4:if(!(s0?A(ot,this,pt).call(this,k(tt,this),k(et,this)-1):k(tt,this)>0?A(ot,this,pt).call(this,k(tt,this)-1,k(J,this)[k(tt,this)-1].items.length-1):k(Q,this)>0&&this.start(k(Q,this)-1,(function(t,e,n){return e===n.length-1}))}},{key:"next",value:function(){A(ot,this,pt).call(this,k(tt,this),k(et,this)+1)}},{key:"setVolume",value:function(t){x(rt,this,t),k(nt,this)&&(k(nt,this).volume=t)}},{key:"setRate",value:function(t){x(it,this,t),k(nt,this)&&(k(nt,this).playbackRate=t)}}]);var n}((0,u.A)(EventTarget));function st(t){return ut.apply(this,arguments)}function ut(){return(ut=(0,f.A)(p().mark((function t(e){var n,r,i,o,a;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(k(Z,this)!==e){t.next=1;break}return t.abrupt("return");case 1:return t.next=2,this.loadXML(e.href);case 2:n=t.sent,r=function(t){return t?B(t,e.href):null},i=N(n,"http://www.w3.org/ns/SMIL"),o=i.$,a=i.$$$,x(tt,this,-1),x(et,this,-1),x(J,this,a(n,"par").reduce((function(t,e){var n,i=r(null===(n=o(e,"text"))||void 0===n?void 0:n.getAttribute("src")),a=o(e,"audio");if(!i||!a)return t;var s=r(a.getAttribute("src")),u=K(a.getAttribute("clipBegin")),c=K(a.getAttribute("clipEnd")),l=t.at(-1);return(null==l?void 0:l.src)===s?l.items.push({text:i,begin:u,end:c}):t.push({src:s,items:[{text:i,begin:u,end:c}]}),t}),[])),x(Z,this,e);case 3:case"end":return t.stop()}}),t,this)})))).apply(this,arguments)}function ct(t){return k(J,t)[k(tt,t)]}function lt(t){var e;return null===(e=w(ot,t,ct))||void 0===e||null===(e=e.items)||void 0===e?void 0:e[k(et,t)]}function ft(t){console.error(t),this.dispatchEvent(new CustomEvent("error",{detail:t}))}function ht(){this.dispatchEvent(new CustomEvent("highlight",{detail:w(ot,this,lt)}))}function dt(){this.dispatchEvent(new CustomEvent("unhighlight",{detail:w(ot,this,lt)}))}function pt(t,e){return vt.apply(this,arguments)}function vt(){return(vt=(0,f.A)(p().mark((function t(e,n){var r,i,o,a,s,u,c=this;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(k(nt,this)&&(k(nt,this).pause(),URL.revokeObjectURL(k(nt,this).src),x(nt,this,null)),x(tt,this,e),x(et,this,n),(i=null===(r=w(ot,this,ct))||void 0===r?void 0:r.src)&&w(ot,this,lt)){t.next=1;break}return t.abrupt("return",this.start(k(Q,this)+1));case 1:return s=URL,t.next=2,this.book.loadBlob(i);case 2:u=t.sent,o=s.createObjectURL.call(s,u),a=new Audio(o),x(nt,this,a),a.addEventListener("timeupdate",(function(){var t;if(!a.paused){var e=a.currentTime,n=w(ot,c,ct).items;if(e>(null===(t=w(ot,c,lt))||void 0===t?void 0:t.end)&&(A(ot,c,dt).call(c),k(et,c)===n.length-1))A(ot,c,pt).call(c,k(tt,c)+1,0).catch((function(t){return A(ot,c,ft).call(c,t)}));else{for(var r=k(et,c);(null===(o=n[k(et,c)+1])||void 0===o?void 0:o.begin)<=e;){var i,o;x(et,c,(i=k(et,c),++i))}k(et,c)!==r&&A(ot,c,ht).call(c)}}})),a.addEventListener("error",(function(){return A(ot,c,ft).call(c,new Error("Failed to load ".concat(i)))})),a.addEventListener("playing",(function(){return A(ot,c,ht).call(c)})),a.addEventListener("pause",(function(){return A(ot,c,dt).call(c)})),a.addEventListener("ended",(function(){A(ot,c,dt).call(c),URL.revokeObjectURL(o),x(nt,c,null),A(ot,c,pt).call(c,e+1,0).catch((function(t){return A(ot,c,ft).call(c,t)}))})),a.addEventListener("canplaythrough",(function(){var t;a.currentTime=null!==(t=w(ot,c,lt).begin)&&void 0!==t?t:0,a.volume=k(rt,c),a.playbackRate=k(it,c),a.play().catch((function(t){return A(ot,c,ft).call(c,t)}))}));case 3:case"end":return t.stop()}}),t,this)})))).apply(this,arguments)}var gt=/([0-9a-f]{8})-([0-9a-f]{4})-([0-9a-f]{4})-([0-9a-f]{4})-([0-9a-f]{12})/,yt=function(t){var e;return D(null!==(e=t.getElementById(t.documentElement.getAttribute("unique-identifier")))&&void 0!==e?e:t.getElementsByTagNameNS(C,"identifier")[0])},mt=function(){var t=(0,f.A)(p().mark((function t(e,n,r){var i,o,a,s;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=Uint8Array,t.next=1,r.slice(0,n).arrayBuffer();case 1:for(s=t.sent,i=new a(s),n=Math.min(n,i.length),o=0;o1&&void 0!==y[1]?y[1]:[],e){t.next=1;break}return t.abrupt("return",null);case 1:if(s=e.href,u=e.mediaType,c=I.JS.test(u),l=!(c&&!this.allowScript),f={name:s,type:u,isScript:c,allow:l},this.eventTarget.dispatchEvent(new CustomEvent("load",{detail:f})),u=null!==(n=f.type)&&void 0!==n?n:u,c=null!==(r=f.isScript)&&void 0!==r?r:I.JS.test(u),l=null!==(i=f.allow)&&void 0!==i?i:l){t.next=2;break}return t.abrupt("return",null);case 2:if(h=a[a.length-1],!k(Et,this).has(s)){t.next=3;break}return t.abrupt("return",this.ref(s,h));case 3:if(d=u===e.mediaType?e:_(_({},e),{},{mediaType:u}),!c&&![I.XHTML,I.HTML,I.CSS,I.SVG].includes(u)||!a.every((function(t){return t!==s}))){t.next=4;break}return t.abrupt("return",this.loadReplaced(d,a));case 4:return v=null!==(o=f.data)&&void 0!==o?o:Promise.resolve().then((function(){return g.loadBlob(s)})),t.abrupt("return",this.createURL(s,v,u,h));case 5:case"end":return t.stop()}}),t,this)}))),function(t){return o.apply(this,arguments)})},{key:"loadHref",value:(n=(0,f.A)(p().mark((function t(e,n){var r,i,o,a,s,u,c,l,f,h=arguments;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=h.length>2&&void 0!==h[2]?h[2]:[],!z(e)){t.next=1;break}return t.abrupt("return",e);case 1:if(i=B(e,n),o=this.manifest.find((function(t){return t.href===i}))){t.next=7;break}if(a=r[r.length-1],!k(Et,this).has(i)){t.next=2;break}return t.abrupt("return",this.ref(i,a));case 2:return t.prev=2,t.next=3,this.loadBlob(i);case 3:if(!(s=t.sent)){t.next=4;break}return c=null===(u=i.split(".").pop())||void 0===u?void 0:u.toLowerCase(),l="jpg"===c||"jpeg"===c?"image/jpeg":"png"===c?"image/png":"gif"===c?"image/gif":"svg"===c?"image/svg+xml":"webp"===c?"image/webp":"css"===c?"text/css":"application/octet-stream",t.abrupt("return",this.createURL(i,s,l,a));case 4:t.next=6;break;case 5:t.prev=5,f=t.catch(2),console.warn("Failed to load resource not in manifest: ".concat(i),f);case 6:return t.abrupt("return",e);case 7:return t.abrupt("return",this.loadItem(o,r.concat(n)));case 8:case"end":return t.stop()}}),t,this,[[2,5]])}))),function(t,e){return n.apply(this,arguments)})},{key:"loadReplaced",value:(e=(0,f.A)(p().mark((function t(e){var n,r,i,o,a,s,u,c,l,h,d,v,g,y,m,b,w,x,k,A,E,T,_,O,M,C,L,P,j,F,D,N,B,z,W,H,q,V,$,G,X,Y,K,J,Z,Q,tt,et,nt=this,rt=arguments;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=rt.length>1&&void 0!==rt[1]?rt[1]:[],r=e.href,i=e.mediaType,o=n[n.length-1],t.next=1,this.loadText(r);case 1:if(a=t.sent){t.next=2;break}return t.abrupt("return",null);case 2:if(![I.XHTML,I.HTML,I.SVG].includes(i)){t.next=59;break}if(u=(new DOMParser).parseFromString(a,i),i!==I.XHTML||!u.querySelector("parsererror")&&null!==(s=u.documentElement)&&void 0!==s&&s.namespaceURI||(console.warn(null!==(c=null===(l=u.querySelector("parsererror"))||void 0===l?void 0:l.innerText)&&void 0!==c?c:"Invalid XHTML"),e.mediaType=I.HTML,u=(new DOMParser).parseFromString(a,e.mediaType)),![I.XHTML,I.SVG].includes(e.mediaType)){t.next=6;break}h=u.firstChild;case 3:if(!(h instanceof ProcessingInstruction)){t.next=6;break}if(!h.data){t.next=5;break}return t.next=4,U(h.data,/(?:^|\s*)(href\s*=\s*['"])([^'"]*)(['"])/i,(function(t,e,i,o){return nt.loadHref(i,r,n).then((function(t){return"".concat(e).concat(t).concat(o)}))}));case 4:d=t.sent,h.replaceWith(u.createProcessingInstruction(h.target,d));case 5:h=h.nextSibling,t.next=3;break;case 6:v=function(){var t=(0,f.A)(p().mark((function t(e,i){var o,a,s;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=e,a=i,t.next=1,nt.loadHref(e.getAttribute(i),r,n);case 1:return s=t.sent,t.abrupt("return",o.setAttribute.call(o,a,s));case 2:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}(),g=S(u.querySelectorAll("link[href]")),t.prev=7,g.s();case 8:if((y=g.n()).done){t.next=10;break}return m=y.value,t.next=9,v(m,"href");case 9:t.next=8;break;case 10:t.next=12;break;case 11:t.prev=11,H=t.catch(7),g.e(H);case 12:return t.prev=12,g.f(),t.finish(12);case 13:b=S(u.querySelectorAll("[src]")),t.prev=14,b.s();case 15:if((w=b.n()).done){t.next=17;break}return x=w.value,t.next=16,v(x,"src");case 16:t.next=15;break;case 17:t.next=19;break;case 18:t.prev=18,q=t.catch(14),b.e(q);case 19:return t.prev=19,b.f(),t.finish(19);case 20:k=S(u.querySelectorAll("[poster]")),t.prev=21,k.s();case 22:if((A=k.n()).done){t.next=24;break}return E=A.value,t.next=23,v(E,"poster");case 23:t.next=22;break;case 24:t.next=26;break;case 25:t.prev=25,V=t.catch(21),k.e(V);case 26:return t.prev=26,k.f(),t.finish(26);case 27:T=S(u.querySelectorAll("object[data]")),t.prev=28,T.s();case 29:if((_=T.n()).done){t.next=31;break}return O=_.value,t.next=30,v(O,"data");case 30:t.next=29;break;case 31:t.next=33;break;case 32:t.prev=32,$=t.catch(28),T.e($);case 33:return t.prev=33,T.f(),t.finish(33);case 34:M=S(u.querySelectorAll("[*|href]:not([href])")),t.prev=35,M.s();case 36:if((C=M.n()).done){t.next=39;break}return L=C.value,G=L,X=R,t.next=37,this.loadHref(L.getAttributeNS(R,"href"),r,n);case 37:Y=t.sent,G.setAttributeNS.call(G,X,"href",Y);case 38:t.next=36;break;case 39:t.next=41;break;case 40:t.prev=40,K=t.catch(35),M.e(K);case 41:return t.prev=41,M.f(),t.finish(41);case 42:P=S(u.querySelectorAll("style")),t.prev=43,P.s();case 44:if((j=P.n()).done){t.next=47;break}if(!(F=j.value).textContent){t.next=46;break}return t.next=45,this.replaceCSS(F.textContent,r,n);case 45:F.textContent=t.sent;case 46:t.next=44;break;case 47:t.next=49;break;case 48:t.prev=48,J=t.catch(43),P.e(J);case 49:return t.prev=49,P.f(),t.finish(49);case 50:D=S(u.querySelectorAll("[style]")),t.prev=51,D.s();case 52:if((N=D.n()).done){t.next=55;break}return B=N.value,Z=B,t.next=53,this.replaceCSS(B.getAttribute("style"),r,n);case 53:Q=t.sent,Z.setAttribute.call(Z,"style",Q);case 54:t.next=52;break;case 55:t.next=57;break;case 56:t.prev=56,tt=t.catch(51),D.e(tt);case 57:return t.prev=57,D.f(),t.finish(57);case 58:return z=(new XMLSerializer).serializeToString(u),t.abrupt("return",this.createURL(r,z,e.mediaType,o));case 59:if(i!==I.CSS){t.next=61;break}return t.next=60,this.replaceCSS(a,r,n);case 60:et=t.sent,t.next=63;break;case 61:return t.next=62,this.replaceString(a,r,n);case 62:et=t.sent;case 63:return W=et,t.abrupt("return",this.createURL(r,W,i,o));case 64:case"end":return t.stop()}}),t,this,[[7,11,12,13],[14,18,19,20],[21,25,26,27],[28,32,33,34],[35,40,41,42],[43,48,49,50],[51,56,57,58]])}))),function(t){return e.apply(this,arguments)})},{key:"replaceCSS",value:(t=(0,f.A)(p().mark((function t(e,n){var r,i,o,a,s,u,c,l,f,h=this,d=arguments;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return s=d.length>2&&void 0!==d[2]?d[2]:[],t.next=1,U(e,/url\(\s*["']?([^'"\n]*?)\s*["']?\s*\)/gi,(function(t,e){return h.loadHref(e,n,s).then((function(t){return'url("'.concat(t,'")')}))}));case 1:return u=t.sent,t.next=2,U(u,/@import\s*["']([^"'\n]*?)["']/gi,(function(t,e){return h.loadHref(e,n,s).then((function(t){return'@import "'.concat(t,'"')}))}));case 2:return c=t.sent,l=null!==(r=null===(i=window)||void 0===i?void 0:i.innerWidth)&&void 0!==r?r:800,f=null!==(o=null===(a=window)||void 0===a?void 0:a.innerHeight)&&void 0!==o?o:600,t.abrupt("return",c.replace(/([{\s;])-epub-/gi,"$1").replace(/(\d*\.?\d+)vw/gi,(function(t,e){return parseFloat(e)*l/100+"px"})).replace(/(\d*\.?\d+)vh/gi,(function(t,e){return parseFloat(e)*f/100+"px"})).replace(/font-size\s*:\s*(xx-small|x-small|small|medium|large|x-large|xx-large|xxx-large|smaller|larger)\s*([;!])/gi,(function(t,e,n){return"font-size: ".concat({"xx-small":"9px","x-small":"10px",small:"13px",medium:"16px",large:"18px","x-large":"24px","xx-large":"32px","xxx-large":"48px",smaller:"13px",larger:"18px"}[e.toLowerCase()]).concat(n)})).replace(/(\d*\.?\d+)px/gi,(function(t,e){return"".concat(parseFloat(e)/16,"em")})));case 3:case"end":return t.stop()}}),t)}))),function(e,n){return t.apply(this,arguments)})},{key:"replaceString",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=new Map,o=this.assets.map((function(t){if(t.href!==e){var n,r=function(t,e){if(!t)return e;var n=t.replace(/\/$/,"").split("/"),r=e.replace(/\/$/,"").split("/"),i=(n.length>r.length?n:r).findIndex((function(t,e){return n[e]!==r[e]}));return i<0?"":Array(n.length-i).fill("..").concat(r.slice(i)).join("/")}(function(t){return t.slice(0,t.lastIndexOf("/")+1)}(e),t.href),o=encodeURI(r),a="/"+t.href,s=encodeURI(a),u=new Set([r,o,a,s]),c=S(u);try{for(c.s();!(n=c.n()).done;){var l=n.value;i.set(l,t)}}catch(t){c.e(t)}finally{c.f()}return Array.from(u)}})).flat().filter((function(t){return t}));if(!o.length)return t;var a=new RegExp(o.map(W).join("|"),"g");return U(t,a,function(){var t=(0,f.A)(p().mark((function t(o){return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",n.loadItem(i.get(o.replace(/^\//,"")),r.concat(e)));case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())}},{key:"unloadItem",value:function(t){this.unref(null==t?void 0:t.href)}},{key:"destroy",value:function(){var t,e=S(k(Et,this).values());try{for(e.s();!(t=e.n()).done;){var n=t.value;URL.revokeObjectURL(n)}}catch(t){e.e(t)}finally{e.f()}}}]);var t,e,n,o,a}(),Mt=function(t){var e,n=S(t);try{for(n.s();!(e=n.n()).done;){var r=e.value;if("page-spread-left"===r||"rendition:page-spread-left"===r)return"left";if("page-spread-right"===r||"rendition:page-spread-right"===r)return"right";if("rendition:page-spread-center"===r)return"center"}}catch(t){n.e(t)}finally{n.f()}},Ct=function(t){return t?{fixedLayout:D(t.querySelector('option[name="fixed-layout"]')),openToSpread:D(t.querySelector('option[name="open-to-spread"]'))}:null},Lt=new WeakMap,Rt=new WeakMap,It=new WeakSet,Pt=function(){return(0,i.A)((function t(e){var n=e.loadText,i=e.loadBlob,o=e.getSize,a=e.sha1;(0,r.A)(this,t),y(this,It),(0,l.A)(this,"parser",new DOMParser),m(this,Lt,void 0),m(this,Rt,void 0),this.loadText=n,this.loadBlob=i,this.getSize=o,x(Rt,this,new At(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:bt;return{"http://www.idpf.org/2008/embedding":{key:function(e){return t(yt(e).replaceAll(/[\u0020\u0009\u000d\u000a]/g,""))},decode:function(t,e){return mt(t,1040,e)}},"http://ns.adobe.com/pdf/enc#RC":{key:function(t){var e=function(t){var e,n=S(t.getElementsByTagNameNS(C,"identifier"));try{for(n.s();!(e=n.n()).done;){var r=e.value,i=D(r).split(":").slice(-1),o=(0,c.A)(i,1)[0];if(gt.test(o))return o}}catch(t){n.e(t)}finally{n.f()}return""}(t).replaceAll("-","");return Uint8Array.from({length:16},(function(t,n){return parseInt(e.slice(2*n,2*n+2),16)}))},decode:function(t,e){return mt(t,1024,e)}}}}(a)))}),[{key:"init",value:(o=(0,f.A)(p().mark((function t(){var e,n,r,i,o,a,s,u,l,f,d,v,g,y,m,b,w,S,E,T,_,O,M,C,L,R,I,P,j,D,N,z,U,W,H,q,V,$,K,J,Z,Q,tt,et,nt,rt=this;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,A(It,this,jt).call(this,"META-INF/container.xml");case 1:if(v=t.sent){t.next=2;break}throw new Error("Failed to load container file");case 2:if((g=Array.from(v.getElementsByTagNameNS("urn:oasis:names:tc:opendocument:xmlns:container","rootfile"),F("full-path","media-type")).filter((function(t){return"application/oebps-package+xml"===t.mediaType}))).length){t.next=3;break}throw new Error("No package document defined in container");case 3:return y=g[0].fullPath,t.next=4,A(It,this,jt).call(this,y);case 4:if(m=t.sent){t.next=5;break}throw new Error("Failed to load package document");case 5:return t.next=6,A(It,this,jt).call(this,"META-INF/encryption.xml");case 6:return b=t.sent,t.next=7,k(Rt,this).init(b,m);case 7:if(this.resources=new St({opf:m,resolveHref:function(t){return B(t,y)}}),x(Lt,this,new Ot({loadText:this.loadText,loadBlob:function(t){return Promise.resolve(rt.loadBlob(t)).then(k(Rt,rt).getDecoder(t))},resources:this.resources})),this.transformTarget=k(Lt,this).eventTarget,this.sections=this.resources.spine.map((function(t,e){var n=t.idref,r=t.linear,i=t.properties,o=void 0===i?[]:i,a=rt.resources.getItemByID(n);return a?{id:a.href,load:function(){return k(Lt,rt).loadItem(a)},unload:function(){return k(Lt,rt).unloadItem(a)},createDocument:function(){return rt.loadDocument(a)},size:rt.getSize(a.href),cfi:rt.resources.cfis[e],linear:r,pageSpread:Mt(o),resolveHref:function(t){return B(t,a.href)},mediaOverlay:a.mediaOverlay?rt.resources.getItemByID(a.mediaOverlay):null}:(console.warn('Could not find item with ID "'.concat(n,'" in manifest')),null)})).filter((function(t){return t})),w=this.resources,S=w.navPath,E=w.ncxPath,!S){t.next=11;break}return t.prev=8,T=function(t){return B(t,S)},q=X,t.next=9,A(It,this,jt).call(this,S);case 9:V=t.sent,_=q(V,T),this.toc=_.toc,this.pageList=_.pageList,this.landmarks=_.landmarks,t.next=11;break;case 10:t.prev=10,$=t.catch(8),console.warn($);case 11:if(this.toc||!E){t.next=15;break}return t.prev=12,O=function(t){return B(t,E)},K=Y,t.next=13,A(It,this,jt).call(this,E);case 13:J=t.sent,M=K(J,O),this.toc=M.toc,this.pageList=M.pageList,t.next=15;break;case 14:t.prev=14,Z=t.catch(12),console.warn(Z);case 15:return null!==(e=this.landmarks)&&void 0!==e||(this.landmarks=this.resources.guide),C=G(m),L=C.metadata,R=C.rendition,I=C.media,this.rendition=R,this.media=I,this.dir=this.resources.pageProgressionDirection,Q=Ct,t.next=16,A(It,this,jt).call(this,"META-INF/com.apple.ibooks.display-options.xml");case 16:if(et=n=t.sent,!(tt=null!==et)){t.next=17;break}tt=void 0!==n;case 17:if(!tt){t.next=18;break}nt=n,t.next=20;break;case 18:return t.next=19,A(It,this,jt).call(this,"META-INF/com.kobobooks.display-options.xml");case 19:nt=t.sent;case 20:return(P=Q(nt))&&("true"===P.fixedLayout&&(null!==(D=(j=this.rendition).layout)&&void 0!==D||(j.layout="pre-paginated")),"false"===P.openToSpread&&(null!==(z=(N=this.sections.find((function(t){return"no"!==t.linear}))).pageSpread)&&void 0!==z||(N.pageSpread="rtl"===this.dir?"left":"right"))),this.parsedMetadata=L,U=null==L||null===(r=L.title)||void 0===r?void 0:r[0],this.metadata={title:null==U?void 0:U.value,subtitle:null==L||null===(i=L.title)||void 0===i||null===(i=i.find((function(t){return"subtitle"===t.titleType})))||void 0===i?void 0:i.value,sortAs:null==U?void 0:U.fileAs,language:null==L?void 0:L.language,identifier:yt(m),description:null==L||null===(o=L.description)||void 0===o?void 0:o.value,publisher:null==L||null===(a=L.publisher)||void 0===a?void 0:a.value,published:null==L?void 0:L.date,modified:null==L?void 0:L.dctermsModified,subject:null==L||null===(s=L.subject)||void 0===s||null===(s=s.filter((function(t){var e=t.value,n=t.term;return e||n})))||void 0===s?void 0:s.map((function(t){return{name:t.value,code:t.term,scheme:t.authority}})),rights:null==L||null===(u=L.rights)||void 0===u?void 0:u.value},W={art:"artist",aut:"author",bkp:"producer",clr:"colorist",edt:"editor",ill:"illustrator",nrt:"narrator",trl:"translator",pbl:"publisher"},H=function(t){return function(e){var n,r=(0,h.A)(new Set(null===(n=e.role)||void 0===n?void 0:n.map((function(e){var n,r=e.value,i=e.scheme;return null!==(n=i&&"marc:relators"!==i?null:W[r])&&void 0!==n?n:t})))),i={name:e.value,sortAs:e.fileAs};return[null!=r&&r.length?r:[t],i]}},null==L||null===(l=L.creator)||void 0===l||null===(l=l.map(H("author")))||void 0===l||null===(l=l.concat(null==L||null===(f=L.contributor)||void 0===f||null===(d=f.map)||void 0===d?void 0:d.call(f,H("contributor"))))||void 0===l||l.forEach((function(t){var e=(0,c.A)(t,2),n=e[0],r=e[1];return n.forEach((function(t){rt.metadata[t]?rt.metadata[t].push(r):rt.metadata[t]=[r]}))})),t.abrupt("return",this);case 21:case"end":return t.stop()}}),t,this,[[8,10],[12,14]])}))),function(){return o.apply(this,arguments)})},{key:"loadDocument",value:(n=(0,f.A)(p().mark((function t(e){var n;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,this.loadText(e.href);case 1:return n=t.sent,t.abrupt("return",this.parser.parseFromString(n,e.mediaType));case 2:case"end":return t.stop()}}),t,this)}))),function(t){return n.apply(this,arguments)})},{key:"getMediaOverlay",value:function(){return new at(this,A(It,this,jt).bind(this))}},{key:"resolveCFI",value:function(t){return this.resources.resolveCFI(t)}},{key:"resolveHref",value:function(t){var e=t.split("#"),n=(0,c.A)(e,2),r=n[0],i=n[1],o=this.resources.getItemByHref(decodeURI(r));return o?{index:this.resources.spine.findIndex((function(t){return t.idref===o.id})),anchor:i?function(t){return function(t,e){var n;return null!==(n=t.getElementById(e))&&void 0!==n?n:t.querySelector('[name="'.concat(CSS.escape(e),'"]'))}(t,i)}:function(){return 0}}:null}},{key:"splitTOCHref",value:function(t){var e;return null!==(e=null==t?void 0:t.split("#"))&&void 0!==e?e:[]}},{key:"getTOCFragment",value:function(t,e){var n;return null!==(n=t.getElementById(e))&&void 0!==n?n:t.querySelector('[name="'.concat(CSS.escape(e),'"]'))}},{key:"isExternal",value:function(t){return z(t)}},{key:"getCover",value:(e=(0,f.A)(p().mark((function t(){var e,n,r,i,o,a,s,u,c,l,f,h,d,v,g,y,m,b,w,x,k,A,S,E,T,_,O,M,C,L,R,I,P;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null==(r=null===(e=this.resources)||void 0===e?void 0:e.cover)||!r.href){t.next=2;break}return k=Blob,t.next=1,this.loadBlob(r.href);case 1:return A=t.sent,S=[A],E={type:r.mediaType},t.abrupt("return",new k(S,E));case 2:if(null==(i=null===(n=this.resources)||void 0===n?void 0:n.coverPage)||!i.href){t.next=10;break}return t.prev=3,t.next=4,this.loadText(i.href);case 4:if(o=t.sent,a=new DOMParser,s=a.parseFromString(o,"application/xhtml+xml"),!(u=s.querySelector("img"))){t.next=6;break}if(!(c=u.getAttribute("src"))){t.next=6;break}if(l=B(c,i.href),!(f=this.resources.getItemByHref(l))){t.next=6;break}return T=Blob,t.next=5,this.loadBlob(f.href);case 5:return _=t.sent,O=[_],M={type:f.mediaType},t.abrupt("return",new T(O,M));case 6:if(!(h=s.querySelector("image"))){t.next=8;break}if(!(d=h.getAttribute("href")||h.getAttributeNS("http://www.w3.org/1999/xlink","href"))){t.next=8;break}if(v=B(d,i.href),!(g=this.resources.getItemByHref(v))){t.next=8;break}return C=Blob,t.next=7,this.loadBlob(g.href);case 7:return L=t.sent,R=[L],I={type:g.mediaType},t.abrupt("return",new C(R,I));case 8:t.next=10;break;case 9:t.prev=9,P=t.catch(3),console.warn("Failed to extract cover from XHTML page:",P);case 10:y=0,m=["iTunesArtwork","cover.jpg","cover.jpeg","cover.png","cover.gif"];case 11:if(!(y0)){t.next=14;break}return x="iTunesArtwork"===b?"image/jpeg":b.endsWith(".png")?"image/png":b.endsWith(".gif")?"image/gif":"image/jpeg",t.abrupt("return",new Blob([w],{type:x}));case 14:t.next=16;break;case 15:t.prev=15,t.catch(12);case 16:y++,t.next=11;break;case 17:return t.abrupt("return",null);case 18:case"end":return t.stop()}}),t,this,[[3,9],[12,15]])}))),function(){return e.apply(this,arguments)})},{key:"getCalibreBookmarks",value:(t=(0,f.A)(p().mark((function t(){var e,n;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,this.loadText("META-INF/calibre_bookmarks.txt");case 1:if(e=t.sent,null==e||!e.startsWith("encoding=json+base64:")){t.next=2;break}return n=atob(e.slice(21)),t.abrupt("return",JSON.parse(n));case 2:case"end":return t.stop()}}),t,this)}))),function(){return t.apply(this,arguments)})},{key:"destroy",value:function(){var t;null===(t=k(Lt,this))||void 0===t||t.destroy()}}]);var t,e,n,o}();function jt(t){return Ft.apply(this,arguments)}function Ft(){return(Ft=(0,f.A)(p().mark((function t(e){var n,r;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,this.loadText(e);case 1:if(n=t.sent){t.next=2;break}return t.abrupt("return",null);case 2:if(!(r=this.parser.parseFromString(n,I.XML)).querySelector("parsererror")){t.next=3;break}throw new Error("XML parsing error: ".concat(e,"\n").concat(r.querySelector("parsererror").innerText));case 3:return t.abrupt("return",r);case 4:case"end":return t.stop()}}),t,this)})))).apply(this,arguments)}},31415:function(t,e,n){"use strict";n(92405)},31575:function(t,e,n){"use strict";var r=n(94644),i=n(80926).left,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("reduce",(function(t){var e=arguments.length;return i(o(this),t,e,e>1?arguments[1]:void 0)}))},31689:function(t,e,n){"use strict";var r=n(46518),i=n(44576),o=n(18745),a=n(67680),s=n(36043),u=n(79306),c=n(1103),l=i.Promise,f=!1;r({target:"Promise",stat:!0,forced:!l||!l.try||c((function(){l.try((function(t){f=8===t}),8)})).error||!f},{try:function(t){var e=arguments.length>1?a(arguments,1):[],n=s.f(this),r=c((function(){return o(u(t),void 0,e)}));return(r.error?n.reject:n.resolve)(r.value),n.promise}})},31694:function(t,e,n){"use strict";var r=n(94644),i=n(59213).find,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("find",(function(t){return i(o(this),t,arguments.length>1?arguments[1]:void 0)}))},31698:function(t,e,n){"use strict";var r=n(46518),i=n(44204),o=n(39835);r({target:"Set",proto:!0,real:!0,forced:!n(84916)("union")||!o("union")},{union:i})},32357:function(t,e,n){"use strict";var r=n(43724),i=n(79039),o=n(79504),a=n(42787),s=n(71072),u=n(25397),c=o(n(48773).f),l=o([].push),f=r&&i((function(){var t=Object.create(null);return t[2]=2,!c(t,2)})),h=function(t){return function(e){for(var n,i=u(e),o=s(i),h=f&&null===a(i),d=o.length,p=0,v=[];d>p;)n=o[p++],r&&!(h?n in i:c(i,n))||l(v,t?[n,i[n]]:i[n]);return v}};t.exports={entries:h(!0),values:h(!1)}},32475:function(t,e,n){"use strict";var r=n(46518),i=n(28527);r({target:"Set",proto:!0,real:!0,forced:!n(84916)("isSupersetOf",(function(t){return!t}))},{isSupersetOf:i})},32603:function(t,e,n){"use strict";var r=n(655);t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:r(t)}},32637:function(t,e,n){"use strict";n(46518)({target:"Number",stat:!0},{isInteger:n(2087)})},32812:function(t,e,n){"use strict";n(46518)({target:"Reflect",stat:!0},{has:function(t,e){return e in t}})},33110:function(t,e,n){"use strict";var r=n(46518),i=n(97751),o=n(18745),a=n(69565),s=n(79504),u=n(79039),c=n(94901),l=n(10757),f=n(67680),h=n(66933),d=n(4495),p=String,v=i("JSON","stringify"),g=s(/./.exec),y=s("".charAt),m=s("".charCodeAt),b=s("".replace),w=s(1.1.toString),x=/[\uD800-\uDFFF]/g,k=/^[\uD800-\uDBFF]$/,A=/^[\uDC00-\uDFFF]$/,S=!d||u((function(){var t=i("Symbol")("stringify detection");return"[null]"!==v([t])||"{}"!==v({a:t})||"{}"!==v(Object(t))})),E=u((function(){return'"\\udf06\\ud834"'!==v("\udf06\ud834")||'"\\udead"'!==v("\udead")})),T=function(t,e){var n=f(arguments),r=h(e);if(c(r)||void 0!==t&&!l(t))return n[1]=function(t,e){if(c(r)&&(e=a(r,this,p(t),e)),!l(e))return e},o(v,null,n)},_=function(t,e,n){var r=y(n,e-1),i=y(n,e+1);return g(k,t)&&!g(A,i)||g(A,t)&&!g(k,r)?"\\u"+w(m(t,0),16):t};v&&r({target:"JSON",stat:!0,arity:3,forced:S||E},{stringify:function(t,e,n){var r=f(arguments),i=o(S?T:v,null,r);return E&&"string"==typeof i?b(i,x,_):i}})},33164:function(t,e,n){"use strict";var r=n(77782),i=n(53602),o=Math.abs;t.exports=function(t,e,n,a){var s=+t,u=o(s),c=r(s);if(un||f!=f?c*(1/0):c*f}},33206:function(t,e,n){"use strict";var r=n(94644),i=n(59213).forEach,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("forEach",(function(t){i(o(this),t,arguments.length>1?arguments[1]:void 0)}))},33313:function(t,e,n){"use strict";var r=n(46518),i=n(18866);r({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==i},{trimRight:i})},33392:function(t,e,n){"use strict";var r=n(79504),i=0,o=Math.random(),a=r(1.1.toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++i+o,36)}},33517:function(t,e,n){"use strict";var r=n(79504),i=n(79039),o=n(94901),a=n(36955),s=n(97751),u=n(33706),c=function(){},l=s("Reflect","construct"),f=/^\s*(?:class|function)\b/,h=r(f.exec),d=!f.test(c),p=function(t){if(!o(t))return!1;try{return l(c,[],t),!0}catch(t){return!1}},v=function(t){if(!o(t))return!1;switch(a(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return d||!!h(f,u(t))}catch(t){return!0}};v.sham=!0,t.exports=!l||i((function(){var t;return p(p.call)||!p(Object)||!p((function(){t=!0}))||t}))?v:p},33684:function(t,e,n){"use strict";var r=n(94644).exportTypedArrayMethod,i=n(79039),o=n(44576),a=n(79504),s=o.Uint8Array,u=s&&s.prototype||{},c=[].toString,l=a([].join);i((function(){c.call({})}))&&(c=function(){return l(this)});var f=u.toString!==c;r("toString",c,f)},33706:function(t,e,n){"use strict";var r=n(79504),i=n(94901),o=n(77629),a=r(Function.toString);i(o.inspectSource)||(o.inspectSource=function(t){return a(t)}),t.exports=o.inspectSource},33717:function(t,e){"use strict";e.f=Object.getOwnPropertySymbols},33771:function(t,e,n){"use strict";var r=n(46518),i=n(84373),o=n(6469);r({target:"Array",proto:!0},{fill:i}),o("fill")},33853:function(t,e,n){"use strict";var r=n(46518),i=n(64449);r({target:"Set",proto:!0,real:!0,forced:!n(84916)("isDisjointFrom",(function(t){return!t}))},{isDisjointFrom:i})},33904:function(t,e,n){"use strict";var r=n(44576),i=n(79039),o=n(79504),a=n(655),s=n(43802).trim,u=n(47452),c=o("".charAt),l=r.parseFloat,f=r.Symbol,h=f&&f.iterator,d=1/l(u+"-0")!=-1/0||h&&!i((function(){l(Object(h))}));t.exports=d?function(t){var e=s(a(t)),n=l(e);return 0===n&&"-"===c(e,0)?-0:n}:l},33994:function(t,e,n){"use strict";var r=n(57657).IteratorPrototype,i=n(2360),o=n(6980),a=n(10687),s=n(26269),u=function(){return this};t.exports=function(t,e,n,c){var l=e+" Iterator";return t.prototype=i(r,{next:o(+!c,n)}),a(t,l,!1,!0),s[l]=u,t}},34113:function(t,e,n){"use strict";var r=n(44576),i=n(70511),o=n(24913).f,a=n(77347).f,s=r.Symbol;if(i("asyncDispose"),s){var u=a(s,"asyncDispose");u.enumerable&&u.configurable&&u.writable&&o(s,"asyncDispose",{value:u.value,enumerable:!1,configurable:!1,writable:!1})}},34124:function(t,e,n){"use strict";var r=n(79039),i=n(20034),o=n(22195),a=n(15652),s=Object.isExtensible,u=r((function(){s(1)}));t.exports=u||a?function(t){return!!i(t)&&(!a||"ArrayBuffer"!==o(t))&&(!s||s(t))}:s},34268:function(t,e,n){"use strict";var r=n(46518),i=n(69565),o=n(28551),a=n(20034),s=n(16575),u=n(79039),c=n(24913),l=n(77347),f=n(42787),h=n(6980);r({target:"Reflect",stat:!0,forced:u((function(){var t=function(){},e=c.f(new t,"a",{configurable:!0});return!1!==Reflect.set(t.prototype,"a",1,e)}))},{set:function t(e,n,r){var u,d,p,v=arguments.length<4?e:arguments[3],g=l.f(o(e),n);if(!g){if(a(d=f(e)))return t(d,n,r,v);g=h(0)}if(s(g)){if(!1===g.writable||!a(v))return!1;if(u=l.f(v,n)){if(u.get||u.set||!1===u.writable)return!1;u.value=r,c.f(v,n,u)}else c.f(v,n,h(0,r))}else{if(void 0===(p=g.set))return!1;i(p,v,r)}return!0}})},34376:function(t,e,n){"use strict";var r=n(22195);t.exports=Array.isArray||function(t){return"Array"===r(t)}},34527:function(t,e,n){"use strict";var r=n(43724),i=n(34376),o=TypeError,a=Object.getOwnPropertyDescriptor,s=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=s?function(t,e){if(i(t)&&!a(t,"length").writable)throw new o("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},34594:function(t,e,n){"use strict";n(15823)("Float32",(function(t){return function(e,n,r){return t(this,e,n,r)}}))},34598:function(t,e,n){"use strict";var r=n(79039);t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){return 1},1)}))}},34782:function(t,e,n){"use strict";var r=n(46518),i=n(34376),o=n(33517),a=n(20034),s=n(35610),u=n(26198),c=n(25397),l=n(97040),f=n(78227),h=n(70597),d=n(67680),p=h("slice"),v=f("species"),g=Array,y=Math.max;r({target:"Array",proto:!0,forced:!p},{slice:function(t,e){var n,r,f,h=c(this),p=u(h),m=s(t,p),b=s(void 0===e?p:e,p);if(i(h)&&(n=h.constructor,(o(n)&&(n===g||i(n.prototype))||a(n)&&null===(n=n[v]))&&(n=void 0),n===g||void 0===n))return d(h,m,b);for(r=new(void 0===n?g:n)(y(b-m,0)),f=0;m=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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 o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function T(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n1&&void 0!==arguments[1]?arguments[1]:0,r=0,i=0,o=E(t.subarray(n,n+4));try{for(o.s();!(e=o.n()).done;){var a=e.value;if(r=r<<7|(127&a)>>>0,i++,128&a)break}}catch(t){o.e(t)}finally{o.f()}return{value:r,length:i}},J=function(t){var e,n=0,r=E(t.subarray(-4));try{for(r.s();!(e=r.n()).done;){var i=e.value;128&i&&(n=0),n=n<<7|127&i}}catch(t){r.e(t)}finally{r.f()}return n},Z=function(t){for(var e=0;t>0;t>>=1)1&~t||e++;return e},Q=function(t){for(var e=0;!(1&t);)t>>=1,e++;return e},tt=function(t){for(var e=[],n=0;n>>3,c=3+(7&s),l=0;l>3,i=0n,o=e>>3;o<=r;o++){var a;i=i<<8n|BigInt(null!==(a=t[o])&&void 0!==a?a:0)}return i>>8n-BigInt(7&n)&0xffffffffn},nt=function(){var t=(0,f.A)(p().mark((function t(e,n){var r,i,o,a,s,u,c,l,f,d,v,g,y,m,b,w,x,k,A,S;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,n(e.huffcdic);case 1:if(r=t.sent,i=X(F,r),o=i.magic,a=i.offset1,s=i.offset2,"HUFF"===o){t.next=2;break}throw new Error("Invalid HUFF record");case 2:u=Array.from({length:256},(function(t,e){return a+4*e})).map((function(t){return G(r.slice(t,t+4))})).map((function(t){return[128&t,31&t,t>>>8]})),c=[null].concat(Array.from({length:32},(function(t,e){return s+8*e})).map((function(t){return[G(r.slice(t,t+4)),G(r.slice(t+4,t+8))]}))),l=[],f=1;case 3:if(!(f>>24],3),a=o[0],s=o[1],f=o[2];if(!a){for(;i>>>32-sn)break;var d=f-(i>>>32-s),p=(0,h.A)(l[d],2),v=p[0];p[1]||(v=S(v),l[d]=[v,!0]),e=H(e,v)}return e},t.abrupt("return",S);case 8:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}(),rt=function(){var t=(0,f.A)(p().mark((function t(e,n){var r,i,o,a,s,u,c,l,f,d,v,g,y,m,b,w,x,k,A,S,T,_,O,M,C,L,R,I,F,D,N,B,z,U,W,H,q,V,J,tt,et,nt,rt,it,ot,at,st,ut,ct,lt,ft,ht,dt,pt,vt,gt,yt,mt,bt,wt,xt;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,n(e);case 1:if(r=t.sent,"INDX"===(i=X(P,r)).magic){t.next=2;break}throw new Error("Invalid INDX record");case 2:if(o=Y(i.encoding),a=r.slice(i.length),"TAGX"===(s=X(j,a)).magic){t.next=3;break}throw new Error("Invalid TAGX section");case 3:u=(s.length-12)/4,c=Array.from({length:u},(function(t,e){return new Uint8Array(a.slice(12+4*e,12+4*e+4))})),l={},f=0,d=0;case 4:if(!(d1?(et=K(_,B),nt=et.value,rt=et.length,F.push([H,null,nt,q]),B+=rt):F.push([H,1,null,q]):F.push([H,tt>>Q(V),null,q]);case 15:t.next=13;break;case 16:t.next=18;break;case 17:t.prev=17,xt=t.catch(12),z.e(xt);case 18:return t.prev=18,z.f(),t.finish(18);case 19:for(it={},ot=0,at=F;ot=8){t.next=6;break}if(!((o=null===(i=this.headers.exth)||void 0===i?void 0:i.boundary)<4294967295)){t.next=6;break}return t.prev=3,c=S(gt,this,mt),l=this,t.next=4,m(e,"loadRecord",this,3)([o]);case 4:f=t.sent,this.headers=c.call.call(c,l,f),A(lt,this,o),r=!0,t.next=6;break;case 5:t.prev=5,h=t.catch(3),console.warn(h),console.warn("Failed to open KF8; falling back to MOBI");case 6:return t.next=7,S(gt,this,bt).call(this);case 7:return t.abrupt("return",r?new Zt(this).init():new Ct(this).init());case 8:case"end":return t.stop()}}),t,this,[[3,5]])}))),function(t){return s.apply(this,arguments)})},{key:"decode",value:function(){var t;return(t=k(ht,this)).decode.apply(t,arguments)}},{key:"encode",value:function(){var t;return(t=k(dt,this)).encode.apply(t,arguments)}},{key:"loadRecord",value:function(t){return m(e,"loadRecord",this,3)([k(lt,this)+t])}},{key:"loadMagic",value:function(t){return m(e,"loadMagic",this,3)([k(lt,this)+t])}},{key:"loadText",value:function(t){return this.loadRecord(t+1).then((function(t){return new Uint8Array(t)})).then(k(vt,this)).then(k(pt,this))}},{key:"loadResource",value:(o=(0,f.A)(p().mark((function t(n){var r,i;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,m(e,"loadRecord",this,3)([k(ft,this)+n]);case 1:if(r=t.sent,"FONT"!==(i=$(r.slice(0,4)))){t.next=2;break}return t.abrupt("return",ot(r,this.unzlib));case 2:if("VIDE"!==i&&"AUDI"!==i){t.next=3;break}return t.abrupt("return",r.slice(12));case 3:return t.abrupt("return",r);case 4:case"end":return t.stop()}}),t,this)}))),function(t){return o.apply(this,arguments)})},{key:"getNCX",value:function(){var t=this.headers.mobi.indx;if(t<4294967295)return it(t,this.loadRecord.bind(this))}},{key:"getMetadata",value:function(){var t,e,n,r=this.headers,i=r.mobi,o=r.exth;return{identifier:i.uid.toString(),title:_((null==o?void 0:o.title)||this.decode(i.title)),author:null==o||null===(t=o.creator)||void 0===t?void 0:t.map(_),publisher:_(null==o?void 0:o.publisher),language:null!==(e=null==o?void 0:o.language)&&void 0!==e?e:i.language,published:null==o?void 0:o.date,description:_(null==o?void 0:o.description),subject:null==o||null===(n=o.subject)||void 0===n?void 0:n.map(_),rights:_(null==o?void 0:o.rights),contributor:null==o?void 0:o.contributor}}},{key:"getCover",value:(n=(0,f.A)(p().mark((function t(){var e,n,r;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=this.headers.exth,null==(n=(null==e?void 0:e.coverOffset)<4294967295?null==e?void 0:e.coverOffset:(null==e?void 0:e.thumbnailOffset)<4294967295?null==e?void 0:e.thumbnailOffset:null)){t.next=2;break}return t.next=1,this.loadResource(n);case 1:return r=t.sent,t.abrupt("return",new Blob([r]));case 2:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})}]);var n,o,s}(ct);function mt(t){var e,n=X(C,t),r=X(L,t);if("MOBI"!==r.magic)throw new Error("Missing MOBI header");var i=r.titleOffset,o=r.titleLength,a=r.localeLanguage,s=r.localeRegion;r.title=t.slice(i,i+o);var u=W[a];r.language=null!==(e=null==u?void 0:u[s>>2])&&void 0!==e?e:null==u?void 0:u[0];var c=64&r.exthFlag?function(t,e){var n=X(I,t),r=n.magic,i=n.count;if("EXTH"!==r)throw new Error("Invalid EXTH header");for(var o=Y(e),a={},s=12,u=0;u=8?X(R,t):null}}function bt(){return wt.apply(this,arguments)}function wt(){return(wt=(0,f.A)(p().mark((function t(){var e,n,r,i,o,a,s,u,c,l,f,h,d;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=this.headers,n=e.palmdoc,r=e.mobi,A(ht,this,Y(r.encoding)),A(dt,this,new TextEncoder),i=n.compression,u=A,c=pt,l=this,1!==i){t.next=1;break}f=function(t){return t},t.next=7;break;case 1:if(2!==i){t.next=2;break}h=tt,t.next=6;break;case 2:if(17480!==i){t.next=4;break}return t.next=3,nt(r,this.loadRecord.bind(this));case 3:d=t.sent,t.next=5;break;case 4:d=null;case 5:h=d;case 6:f=h;case 7:if(u(c,l,f),k(pt,this)){t.next=8;break}throw new Error("Unknown compression type");case 8:o=r.trailingFlags,a=1&o,s=Z(o>>>1),A(vt,this,(function(t){for(var e=0;e]*>/gi,kt=/<[^<>]+filepos=['"]{0,1}(\d+)[^<>]*>/gi,At=function(t){for(var e=0;t;){var n=t.parentElement;if(n){var r=n.tagName.toLowerCase();"p"===r?e+=1.5:"blockquote"===r&&(e+=2)}t=n}return e},St=new WeakMap,Et=new WeakMap,Tt=new WeakMap,_t=new WeakMap,Ot=new WeakMap,Mt=new WeakMap,Ct=function(){return(0,c.A)((function t(e){(0,u.A)(this,t),(0,l.A)(this,"parser",new DOMParser),(0,l.A)(this,"serializer",new XMLSerializer),w(this,St,new Map),w(this,Et,new Map),w(this,Tt,new Map),w(this,_t,void 0),w(this,Ot,[]),w(this,Mt,O.HTML),this.mobi=e}),[{key:"init",value:(h=(0,f.A)(p().mark((function t(){var e,n,r,i,o,a,u,c,l,f,h,d,v,g,y,m,b,w=this;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=new Uint8Array,n=0;case 1:if(!(nh?f+1:o===h?f:null!==(i=d.get(o))&&void 0!==i?i:Math.max(0,f-1);if(s>f){var u,c;l?(null!==(c=(u=l).subitems)&&void 0!==c||(u.subitems=[]),l.subitems.push(a),v.set(s,l)):t.push(a)}else{var p=v.get(s);p?p.subitems.push(a):t.push(a)}return l=a,f=s,h=o,d.set(o,s),t}),[]);case 8:t.next=10;break;case 9:t.prev=9,b=t.catch(5),console.warn(b);case 10:return A(Ot,this,(0,s.A)(new Set(Array.from(r.matchAll(kt),(function(t){return t[1]})))).map((function(t){return{filepos:t,number:Number(t)}})).sort((function(t,e){return t.number-e.number}))),this.metadata=this.mobi.getMetadata(),this.getCover=this.mobi.getCover.bind(this.mobi),t.abrupt("return",this);case 11:case"end":return t.stop()}}),t,this,[[5,9]])}))),function(){return h.apply(this,arguments)})},{key:"getGuide",value:(a=(0,f.A)(p().mark((function t(){var e;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,this.createDocument(k(_t,this)[0]);case 1:return e=t.sent,t.abrupt("return",Array.from(e.getElementsByTagName("reference"),(function(t){var e;return{label:t.getAttribute("title"),type:null===(e=t.getAttribute("type"))||void 0===e?void 0:e.split(/\s/),href:"filepos:".concat(t.getAttribute("filepos"))}})));case 2:case"end":return t.stop()}}),t,this)}))),function(){return a.apply(this,arguments)})},{key:"loadResource",value:(o=(0,f.A)(p().mark((function t(e){var n,r;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!k(St,this).has(e)){t.next=1;break}return t.abrupt("return",k(St,this).get(e));case 1:return t.next=2,this.mobi.loadResource(e);case 2:return n=t.sent,r=URL.createObjectURL(new Blob([n])),k(St,this).set(e,r),t.abrupt("return",r);case 3:case"end":return t.stop()}}),t,this)}))),function(t){return o.apply(this,arguments)})},{key:"loadRecindex",value:(i=(0,f.A)(p().mark((function t(e){return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.loadResource(Number(e)-1));case 1:case"end":return t.stop()}}),t,this)}))),function(t){return i.apply(this,arguments)})},{key:"replaceResources",value:(r=(0,f.A)(p().mark((function t(e){var n,r,i,o,a,s,u,c,l,f,h,d,v,g,y;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=E(e.querySelectorAll("img[recindex]")),t.prev=1,n.s();case 2:if((r=n.n()).done){t.next=7;break}return i=r.value,o=i.getAttribute("recindex"),t.prev=3,t.next=4,this.loadRecindex(o);case 4:i.src=t.sent,t.next=6;break;case 5:t.prev=5,t.catch(3),console.warn("Failed to load image ".concat(o));case 6:t.next=2;break;case 7:t.next=9;break;case 8:t.prev=8,g=t.catch(1),n.e(g);case 9:return t.prev=9,n.f(),t.finish(9);case 10:a=E(e.querySelectorAll("[mediarecindex]")),t.prev=11,a.s();case 12:if((s=a.n()).done){t.next=19;break}return u=s.value,c=u.getAttribute("mediarecindex"),l=u.getAttribute("recindex"),t.prev=13,t.next=14,this.loadRecindex(c);case 14:if(u.src=t.sent,!l){t.next=16;break}return t.next=15,this.loadRecindex(l);case 15:u.poster=t.sent;case 16:t.next=18;break;case 17:t.prev=17,t.catch(13),console.warn("Failed to load media ".concat(c));case 18:t.next=12;break;case 19:t.next=21;break;case 20:t.prev=20,y=t.catch(11),a.e(y);case 21:return t.prev=21,a.f(),t.finish(21);case 22:f=E(e.querySelectorAll("[filepos]"));try{for(f.s();!(h=f.n()).done;)d=h.value,v=d.getAttribute("filepos"),d.href="filepos:".concat(v)}catch(t){f.e(t)}finally{f.f()}case 23:case"end":return t.stop()}}),t,this,[[1,8,9,10],[3,5],[11,20,21,22],[13,17]])}))),function(t){return r.apply(this,arguments)})},{key:"loadText",value:(n=(0,f.A)(p().mark((function t(e){var n,r,i,o,a=this;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!k(Et,this).has(e)){t.next=1;break}return t.abrupt("return",k(Et,this).get(e));case 1:return n=e.raw,r=k(Ot,this).filter((function(t){var n=t.number;return n>=e.start&&n'));i=q(i,c,n.subarray(s,null==u?void 0:u.offset))}))),o=this.mobi.decode(i).replaceAll(xt,""),k(Et,this).set(e,o),t.abrupt("return",o);case 2:case"end":return t.stop()}}),t,this)}))),function(t){return n.apply(this,arguments)})},{key:"createDocument",value:(e=(0,f.A)(p().mark((function t(e){var n;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,this.loadText(e);case 1:return n=t.sent,t.abrupt("return",this.parser.parseFromString(n,k(Mt,this)));case 2:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})},{key:"loadSection",value:(t=(0,f.A)(p().mark((function t(e){var n,r,i,o;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!k(Tt,this).has(e)){t.next=1;break}return t.abrupt("return",k(Tt,this).get(e));case 1:return t.next=2,this.createDocument(e);case 2:return n=t.sent,r=n.createElement("style"),n.head.append(r),r.append(n.createTextNode("blockquote {\n margin-block-start: 0;\n margin-block-end: 0;\n margin-inline-start: 1em;\n margin-inline-end: 0;\n }")),t.next=3,this.replaceResources(n);case 3:return i=this.serializer.serializeToString(n),o=URL.createObjectURL(new Blob([i],{type:k(Mt,this)})),k(Tt,this).set(e,o),t.abrupt("return",o);case 4:case"end":return t.stop()}}),t,this)}))),function(e){return t.apply(this,arguments)})},{key:"resolveHref",value:function(t){var e=t.match(/filepos:(.*)/)[1],n=Number(e);return{index:k(_t,this).findIndex((function(t){return t.end>n})),anchor:function(t){return t.getElementById("filepos".concat(e))}}}},{key:"splitTOCHref",value:function(t){var e=t.match(/filepos:(.*)/)[1],n=Number(e);return[k(_t,this).findIndex((function(t){return t.end>n})),"filepos".concat(e)]}},{key:"getTOCFragment",value:function(t,e){return t.getElementById(e)}},{key:"isExternal",value:function(t){return/^(?!blob|filepos)\w+:/i.test(t)}},{key:"destroy",value:function(){var t,e=E(k(St,this).values());try{for(e.s();!(t=e.n()).done;){var n=t.value;URL.revokeObjectURL(n)}}catch(t){e.e(t)}finally{e.f()}var r,i=E(k(Tt,this).values());try{for(i.s();!(r=i.n()).done;){var o=r.value;URL.revokeObjectURL(o)}}catch(t){i.e(t)}finally{i.f()}}}]);var t,e,n,r,i,o,a,h}(),Lt=/kindle:(flow|embed):(\w+)(?:\?mime=(\w+\/[-+.\w]+))?/,Rt=/kindle:pos:fid:(\w+):off:(\w+)/,It=function(t){var e=t.match(Lt).slice(1),n=(0,h.A)(e,3),r=n[0],i=n[1],o=n[2];return{resourceType:r,id:parseInt(i,32),type:o}},Pt=function(t){var e=t.match(Rt).slice(1),n=(0,h.A)(e,2),r=n[0],i=n[1];return{fid:parseInt(r,32),off:parseInt(i,32)}},jt=function(){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"kindle:pos:fid:".concat((arguments.length>0&&void 0!==arguments[0]?arguments[0]:0).toString(32).toUpperCase().padStart(4,"0"),":off:").concat(t.toString(32).toUpperCase().padStart(10,"0"))},Ft=function(t){var e=t.match(/\s(id|name|aid)\s*=\s*['"]([^'"]*)['"]/i);if(e){var n=(0,h.A)(e,3),r=n[1],i=n[2];return"[".concat(r,'="').concat(CSS.escape(i),'"]')}},Dt=function(){var t=(0,f.A)(p().mark((function t(e,n,r){var i,o,a,u,c,l,f;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:i=[],e.replace(n,(function(){for(var t=arguments.length,e=new Array(t),n=0;n/),m="".concat(g.slice(y),""),b=this.parser.parseFromString(m,O.XML),w=E(b.querySelectorAll("spine > itemref"));try{for(w.s();!(x=w.n()).done;)M=x.value,C=parseInt(M.getAttribute("skelid")),d.set(C,Nt(null!==(S=null===(T=M.getAttribute("properties"))||void 0===T?void 0:T.split(" "))&&void 0!==S?S:[]))}catch(t){w.e(t)}finally{w.f()}case 10:return this.sections=k(Ht,this).map((function(t,e){return t.frags.length?{id:e,load:function(){return j.loadSection(t)},createDocument:function(){return j.createDocument(t)},size:t.length,pageSpread:d.get(e)}:{linear:"no"}})),t.prev=11,t.next=12,this.mobi.getNCX();case 12:return L=t.sent,R=function(t){var e=t.label,n=t.pos,r=t.children,i=(0,h.A)(n,2),o=i[0],a=i[1],s=jt(o,a),u=k(zt,j).get(o);return u?u.push(a):k(zt,j).set(o,[a]),{label:_(e),href:s,subitems:null==r?void 0:r.map(R)}},this.toc=null==L?void 0:L.map(R),t.next=13,this.getGuide();case 13:this.landmarks=t.sent,t.next=15;break;case 14:t.prev=14,P=t.catch(11),console.warn(P);case 15:return I=this.mobi.headers.exth,this.dir=I.pageProgressionDirection,this.rendition={layout:"true"===I.fixedLayout?"pre-paginated":"reflowable",viewport:Object.fromEntries(null!==(e=null===(n=I.originalResolution)||void 0===n||null===(n=n.split("x"))||void 0===n||null===(n=n.slice(0,2))||void 0===n?void 0:n.map((function(t,e){return[e?"height":"width",t]})))&&void 0!==e?e:[])},this.metadata=this.mobi.getMetadata(),this.getCover=this.mobi.getCover.bind(this.mobi),t.abrupt("return",this);case 16:case"end":return t.stop()}}),t,this,[[1,4],[11,14]])}))),function(){return g.apply(this,arguments)})},{key:"getResourcesByMagic",value:(v=(0,f.A)(p().mark((function t(e){var n,r,i,o,a,s=this;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n={},r=this.mobi.headers.kf8.resourceStart,i=this.mobi.pdb.numRecords,o=p().mark((function t(){var r,i;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=1,s.mobi.loadMagic(a);case 1:r=t.sent,(i=e.find((function(t){return t===r})))&&(n[i]=a),t.next=3;break;case 2:t.prev=2,t.catch(0);case 3:case"end":return t.stop()}}),t,null,[[0,2]])})),a=r;case 1:if(!(ae)){t.next=6;break}return c=this.mobi.headers.palmdoc.numTextRecords-1-A(Xt,this,(u=k(Xt,this),++u)),t.next=5,this.mobi.loadText(c);case 5:l=t.sent,A($t,this,H(l,k($t,this))),t.next=4;break;case 6:return f=k(qt,this)-k($t,this).length,t.abrupt("return",k($t,this).slice(e-f,n-f));case 7:case"end":return t.stop()}}),t,this)}))),function(t,e){return i.apply(this,arguments)})},{key:"loadFlow",value:function(t){if(t<4294967295)return this.loadRaw.apply(this,(0,s.A)(k(Wt,this).fdstTable[t]))}},{key:"loadText",value:(r=(0,f.A)(p().mark((function t(e){var n,r,i,o,a,s,u,c,l,f,h,d,v,g,y,m,b;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.skel,r=e.frags,i=e.length,t.next=1,this.loadRaw(n.offset,n.offset+i);case 1:o=t.sent,a=o.slice(0,n.length),s=E(r);try{for(s.s();!(u=s.n()).done;)if(c=u.value,l=c.insertOffset-n.offset,f=n.length+c.offset,h=o.slice(f,f+c.length),a=q(a.slice(0,l),h,a.slice(l)),d=k(zt,this).get(c.index)){v=E(d);try{for(v.s();!(g=v.n()).done;)y=g.value,m=this.mobi.decode(h).slice(y),b=Ft(m),S(Jt,this,Qt).call(this,c.index,y,b)}catch(t){v.e(t)}finally{v.f()}}}catch(t){s.e(t)}finally{s.f()}return t.abrupt("return",this.mobi.decode(a));case 2:case"end":return t.stop()}}),t,this)}))),function(t){return r.apply(this,arguments)})},{key:"createDocument",value:(n=(0,f.A)(p().mark((function t(e){var n;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,this.loadText(e);case 1:return n=t.sent,t.abrupt("return",this.parser.parseFromString(n,k(Yt,this)));case 2:case"end":return t.stop()}}),t,this)}))),function(t){return n.apply(this,arguments)})},{key:"loadSection",value:(e=(0,f.A)(p().mark((function t(e){var n,r,i,o,a,s,u,c,l,f,d,v;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!k(Bt,this).has(e)){t.next=1;break}return t.abrupt("return",k(Bt,this).get(e));case 1:return t.next=2,this.loadText(e);case 2:return r=t.sent,t.next=3,this.replaceResources(r);case 3:i=t.sent,!(o=this.parser.parseFromString(i,k(Yt,this))).querySelector("parsererror")&&null!==(n=o.documentElement)&&void 0!==n&&n.namespaceURI||(A(Yt,this,O.HTML),o=this.parser.parseFromString(i,k(Yt,this))),a=E(k(Kt,this));try{for(a.s();!(s=a.n()).done;){u=(0,h.A)(s.value,2),c=u[0],l=u[1],f=E(o.querySelectorAll('img[src="'.concat(c,'"]')));try{for(f.s();!(d=f.n()).done;)d.value.replaceWith(l)}catch(t){f.e(t)}finally{f.f()}}}catch(t){a.e(t)}finally{a.f()}return v=URL.createObjectURL(new Blob([this.serializer.serializeToString(o)],{type:k(Yt,this)})),k(Bt,this).set(e,v),t.abrupt("return",v);case 4:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})},{key:"getIndexByFID",value:function(t){return k(Ht,this).findIndex((function(e){return e.frags.some((function(e){return e.index===t}))}))}},{key:"resolveHref",value:(t=(0,f.A)(p().mark((function t(e){var n,r,i,o,a,s,u,c,l,f,h,d,v,g,y;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=Pt(e),i=r.fid,o=r.off,!((a=this.getIndexByFID(i))<0)){t.next=1;break}return t.abrupt("return");case 1:if(!(s=null===(n=k(Ut,this).get(i))||void 0===n?void 0:n.get(o))){t.next=2;break}return t.abrupt("return",{index:a,anchor:function(t){return t.querySelector(s)}});case 2:return u=k(Ht,this)[a],c=u.skel,l=u.frags,f=l.find((function(t){return t.index===i})),h=c.offset+c.length+f.offset,t.next=3,this.loadRaw(h,h+f.length);case 3:return d=t.sent,v=this.mobi.decode(d.slice(o)),g=Ft(v),S(Jt,this,Qt).call(this,i,o,g),y=function(t){return t.querySelector(g)},t.abrupt("return",{index:a,anchor:y});case 4:case"end":return t.stop()}}),t,this)}))),function(e){return t.apply(this,arguments)})},{key:"splitTOCHref",value:function(t){var e=Pt(t);return[this.getIndexByFID(e.fid),e]}},{key:"getTOCFragment",value:function(t,e){var n,r=e.fid,i=e.off,o=null===(n=k(Ut,this).get(r))||void 0===n?void 0:n.get(i);return t.querySelector(o)}},{key:"isExternal",value:function(t){return/^(?!blob|kindle)\w+:/i.test(t)}},{key:"destroy",value:function(){var t,e=E(k(Bt,this).values());try{for(e.s();!(t=e.n()).done;){var n=t.value;URL.revokeObjectURL(n)}}catch(t){e.e(t)}finally{e.f()}}}]);var t,e,n,r,i,o,a,d,v,g}();function Qt(t,e,n){var r=k(Ut,this).get(t);if(r)r.set(e,n);else{var i=new Map;k(Ut,this).set(t,i),i.set(e,n)}}},35031:function(t,e,n){"use strict";var r=n(97751),i=n(79504),o=n(38480),a=n(33717),s=n(28551),u=i([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=o.f(s(t)),n=a.f;return n?u(e,n(t)):e}},35370:function(t,e,n){"use strict";var r=n(26198);t.exports=function(t,e,n){for(var i=0,o=arguments.length>2?n:r(e),a=new t(o);o>i;)a[i]=e[i++];return a}},35490:function(t,e,n){"use strict";var r=n(46518),i=n(77240);r({target:"String",proto:!0,forced:n(23061)("blink")},{blink:function(){return i(this,"blink","","")}})},35548:function(t,e,n){"use strict";var r=n(33517),i=n(16823),o=TypeError;t.exports=function(t){if(r(t))return t;throw new o(i(t)+" is not a constructor")}},35610:function(t,e,n){"use strict";var r=n(91291),i=Math.max,o=Math.min;t.exports=function(t,e){var n=r(t);return n<0?i(n+e,0):o(n,e)}},35701:function(t,e,n){"use strict";var r=n(46518),i=n(60533).end;r({target:"String",proto:!0,forced:n(83063)},{padEnd:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},35917:function(t,e,n){"use strict";var r=n(43724),i=n(79039),o=n(4055);t.exports=!r&&!i((function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},36033:function(t,e,n){"use strict";n(48523)},36043:function(t,e,n){"use strict";var r=n(79306),i=TypeError,o=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw new i("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)};t.exports.f=function(t){return new o(t)}},36072:function(t,e,n){"use strict";var r=n(94644),i=n(80926).right,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("reduceRight",(function(t){var e=arguments.length;return i(o(this),t,e,e>1?arguments[1]:void 0)}))},36389:function(t,e,n){"use strict";var r=n(46518),i=Math.atanh,o=Math.log;r({target:"Math",stat:!0,forced:!(i&&1/i(-0)<0)},{atanh:function(t){var e=+t;return 0===e?e:o((1+e)/(1-e))/2}})},36456:function(t,e,n){"use strict";var r=n(46518),i=n(79504),o=n(655),a=i("".charAt),s=i("".charCodeAt),u=i(/./.exec),c=i(1.1.toString),l=i("".toUpperCase),f=/[\w*+\-./@]/,h=function(t,e){for(var n=c(t,16);n.length0?(r=n/c)*r:n;return c===1/0?1/0:c*a(i)}})},39519:function(t,e,n){"use strict";var r,i,o=n(44576),a=n(82839),s=o.process,u=o.Deno,c=s&&s.versions||u&&u.version,l=c&&c.v8;l&&(i=(r=l.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(i=+r[1]),t.exports=i},39796:function(t,e,n){"use strict";var r=n(46518),i=n(18745),o=n(79306),a=n(28551);r({target:"Reflect",stat:!0,forced:!n(79039)((function(){Reflect.apply((function(){}))}))},{apply:function(t,e,n){return i(o(t),e,a(n))}})},39835:function(t){"use strict";t.exports=function(t){try{var e=new Set,n={size:0,has:function(){return!0},keys:function(){return Object.defineProperty({},"next",{get:function(){return e.clear(),e.add(4),function(){return{done:!0}}}})}},r=e[t](n);return 1!==r.size||4!==r.values().next().value}catch(t){return!1}}},39928:function(t,e,n){"use strict";var r=n(26198),i=n(91291),o=RangeError;t.exports=function(t,e,n,a){var s=r(t),u=i(n),c=u<0?s+u:u;if(c>=s||c<0)throw new o("Incorrect index");for(var l=new e(s),f=0;f=56320||++n>=e||56320!=(64512&s(t,n))))return!1}return!0}})},42207:function(t,e,n){"use strict";var r=n(46518),i=n(44576),o=n(97751),a=n(79504),s=n(69565),u=n(79039),c=n(655),l=n(22812),f=n(92804).i2c,h=o("btoa"),d=a("".charAt),p=a("".charCodeAt),v=!!h&&!u((function(){return"aGk="!==h("hi")})),g=v&&!u((function(){h()})),y=v&&u((function(){return"bnVsbA=="!==h(null)})),m=v&&1!==h.length;r({global:!0,bind:!0,enumerable:!0,forced:!v||g||y||m},{btoa:function(t){if(l(arguments.length,1),v)return s(h,i,c(t));for(var e,n,r=c(t),a="",u=0,g=f;d(r,u)||(g="=",u%1);){if((n=p(r,u+=3/4))>255)throw new(o("DOMException"))("The string contains characters outside of the Latin1 range","InvalidCharacterError");a+=d(g,63&(e=e<<8|n)>>8-u%1*8)}return a}})},42551:function(t,e,n){"use strict";var r=n(96395),i=n(44576),o=n(79039),a=n(3607);t.exports=r||!o((function(){if(!(a&&a<535)){var t=Math.random();__defineSetter__.call(null,t,(function(){})),delete i[t]}}))},42762:function(t,e,n){"use strict";var r=n(46518),i=n(43802).trim;r({target:"String",proto:!0,forced:n(60706)("trim")},{trim:function(){return i(this)}})},42781:function(t,e,n){"use strict";n(46518)({target:"String",proto:!0},{repeat:n(72333)})},42787:function(t,e,n){"use strict";var r=n(39297),i=n(94901),o=n(48981),a=n(66119),s=n(12211),u=a("IE_PROTO"),c=Object,l=c.prototype;t.exports=s?c.getPrototypeOf:function(t){var e=o(t);if(r(e,u))return e[u];var n=e.constructor;return i(n)&&e instanceof n?n.prototype:e instanceof c?l:null}},43145:function(t,e,n){"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n1?arguments[1]:void 0,S=void 0!==A,E=c(x);if(E&&!l(E))for(b=(m=u(x,E)).next,x=[];!(y=i(b,m)).done;)x.push(y.value);for(S&&k>2&&(A=r(A,arguments[2])),n=s(x),p=new(h(w))(n),v=f(p),e=0;n>e;e++)g=S?A(x[e],e):x[e],p[e]=v?d(g):+g;return p}},43359:function(t,e,n){"use strict";n(58934);var r=n(46518),i=n(53487);r({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==i},{trimStart:i})},43724:function(t,e,n){"use strict";var r=n(79039);t.exports=!r((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},43802:function(t,e,n){"use strict";var r=n(79504),i=n(67750),o=n(655),a=n(47452),s=r("".replace),u=RegExp("^["+a+"]+"),c=RegExp("(^|[^"+a+"])["+a+"]+$"),l=function(t){return function(e){var n=o(i(e));return 1&t&&(n=s(n,u,"")),2&t&&(n=s(n,c,"$1")),n}};t.exports={start:l(1),end:l(2),trim:l(3)}},43839:function(t,e,n){"use strict";var r=n(76080),i=n(47055),o=n(48981),a=n(26198),s=function(t){var e=1===t;return function(n,s,u){for(var c,l=o(n),f=i(l),h=a(f),d=r(s,u);h-- >0;)if(d(c=f[h],h,l))switch(t){case 0:return c;case 1:return h}return e?-1:void 0}};t.exports={findLast:s(0),findLastIndex:s(1)}},44114:function(t,e,n){"use strict";var r=n(46518),i=n(48981),o=n(26198),a=n(34527),s=n(96837);r({target:"Array",proto:!0,arity:1,forced:n(79039)((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}()},{push:function(t){var e=i(this),n=o(e),r=arguments.length;s(n+r);for(var u=0;ua;)for(var v,g=f(arguments[a++]),y=h?p(s(g),h(g)):s(g),m=y.length,b=0;m>b;)v=y[b++],r&&!o(d,g,v)||(n[v]=g[v]);return n}:h},44265:function(t,e,n){"use strict";var r=n(82839);t.exports=/ipad|iphone|ipod/i.test(r)&&"undefined"!=typeof Pebble},44435:function(t,e,n){"use strict";n(46518)({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991})},44496:function(t,e,n){"use strict";var r=n(94644),i=n(19617).includes,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("includes",(function(t){return i(o(this),t,arguments.length>1?arguments[1]:void 0)}))},44576:function(t,e,n){"use strict";var r=function(t){return t&&t.Math===Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")()},44732:function(t,e,n){"use strict";var r=n(94644),i=n(79504),o=n(79306),a=n(35370),s=r.aTypedArray,u=r.getTypedArrayConstructor,c=r.exportTypedArrayMethod,l=i(r.TypedArrayPrototype.sort);c("toSorted",(function(t){void 0!==t&&o(t);var e=s(this),n=a(u(e),e);return l(n,t)}))},45374:function(t,e,n){"use strict";n(46518)({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)})},45458:function(t,e,n){"use strict";n.d(e,{A:function(){return o}});var r=n(43145),i=n(27800);function o(t){return function(t){if(Array.isArray(t))return(0,r.A)(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||(0,i.A)(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},45700:function(t,e,n){"use strict";var r=n(70511),i=n(58242);r("toPrimitive"),i()},45781:function(t,e,n){"use strict";var r=n(46518),i=n(97751),o=n(22812),a=n(655),s=n(67416),u=i("URL");r({target:"URL",stat:!0,forced:!s},{parse:function(t){var e=o(arguments.length,1),n=a(t),r=e<2||void 0===arguments[1]?void 0:a(arguments[1]);try{return new u(n,r)}catch(t){return null}}})},45806:function(t,e,n){"use strict";n(47764);var r,i=n(46518),o=n(43724),a=n(67416),s=n(44576),u=n(76080),c=n(79504),l=n(36840),f=n(62106),h=n(90679),d=n(39297),p=n(44213),v=n(97916),g=n(67680),y=n(68183).codeAt,m=n(3717),b=n(655),w=n(10687),x=n(22812),k=n(98406),A=n(91181),S=A.set,E=A.getterFor("URL"),T=k.URLSearchParams,_=k.getState,O=s.URL,M=s.TypeError,C=s.parseInt,L=Math.floor,R=Math.pow,I=c("".charAt),P=c(/./.exec),j=c([].join),F=c(1.1.toString),D=c([].pop),N=c([].push),B=c("".replace),z=c([].shift),U=c("".split),W=c("".slice),H=c("".toLowerCase),q=c([].unshift),V="Invalid scheme",$="Invalid host",G="Invalid port",X=/[a-z]/i,Y=/[\d+-.a-z]/i,K=/\d/,J=/^0x/i,Z=/^[0-7]+$/,Q=/^\d+$/,tt=/^[\da-f]+$/i,et=/[\0\t\n\r #%/:<>?@[\\\]^|]/,nt=/[\0\t\n\r #/:<>?@[\\\]^|]/,rt=/^[\u0000-\u0020]+/,it=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,ot=/[\t\n\r]/g,at=function(t){var e,n,r,i;if("number"==typeof t){for(e=[],n=0;n<4;n++)q(e,t%256),t=L(t/256);return j(e,".")}if("object"==typeof t){for(e="",r=function(t){for(var e=null,n=1,r=null,i=0,o=0;o<8;o++)0!==t[o]?(i>n&&(e=r,n=i),r=null,i=0):(null===r&&(r=o),++i);return i>n?r:e}(t),n=0;n<8;n++)i&&0===t[n]||(i&&(i=!1),r===n?(e+=n?":":"::",i=!0):(e+=F(t[n],16),n<7&&(e+=":")));return"["+e+"]"}return t},st={},ut=p({},st,{" ":1,'"':1,"<":1,">":1,"`":1}),ct=p({},ut,{"#":1,"?":1,"{":1,"}":1}),lt=p({},ct,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),ft=function(t,e){var n=y(t,0);return n>32&&n<127&&!d(e,t)?t:encodeURIComponent(t)},ht={ftp:21,file:null,http:80,https:443,ws:80,wss:443},dt=function(t,e){var n;return 2===t.length&&P(X,I(t,0))&&(":"===(n=I(t,1))||!e&&"|"===n)},pt=function(t){var e;return t.length>1&&dt(W(t,0,2))&&(2===t.length||"/"===(e=I(t,2))||"\\"===e||"?"===e||"#"===e)},vt=function(t){return"."===t||"%2e"===H(t)},gt={},yt={},mt={},bt={},wt={},xt={},kt={},At={},St={},Et={},Tt={},_t={},Ot={},Mt={},Ct={},Lt={},Rt={},It={},Pt={},jt={},Ft={},Dt=function(t,e,n){var r,i,o,a=b(t);if(e){if(i=this.parse(a))throw new M(i);this.searchParams=null}else{if(void 0!==n&&(r=new Dt(n,!0)),i=this.parse(a,null,r))throw new M(i);(o=_(new T)).bindURL(this),this.searchParams=o}};Dt.prototype={type:"URL",parse:function(t,e,n){var i,o,a,s,u,c=this,l=e||gt,f=0,h="",p=!1,y=!1,m=!1;for(t=b(t),e||(c.scheme="",c.username="",c.password="",c.host=null,c.port=null,c.path=[],c.query=null,c.fragment=null,c.cannotBeABaseURL=!1,t=B(t,rt,""),t=B(t,it,"$1")),t=B(t,ot,""),i=v(t);f<=i.length;){switch(o=i[f],l){case gt:if(!o||!P(X,o)){if(e)return V;l=mt;continue}h+=H(o),l=yt;break;case yt:if(o&&(P(Y,o)||"+"===o||"-"===o||"."===o))h+=H(o);else{if(":"!==o){if(e)return V;h="",l=mt,f=0;continue}if(e&&(c.isSpecial()!==d(ht,h)||"file"===h&&(c.includesCredentials()||null!==c.port)||"file"===c.scheme&&!c.host))return;if(c.scheme=h,e)return void(c.isSpecial()&&ht[c.scheme]===c.port&&(c.port=null));h="","file"===c.scheme?l=Mt:c.isSpecial()&&n&&n.scheme===c.scheme?l=bt:c.isSpecial()?l=At:"/"===i[f+1]?(l=wt,f++):(c.cannotBeABaseURL=!0,N(c.path,""),l=Pt)}break;case mt:if(!n||n.cannotBeABaseURL&&"#"!==o)return V;if(n.cannotBeABaseURL&&"#"===o){c.scheme=n.scheme,c.path=g(n.path),c.query=n.query,c.fragment="",c.cannotBeABaseURL=!0,l=Ft;break}l="file"===n.scheme?Mt:xt;continue;case bt:if("/"!==o||"/"!==i[f+1]){l=xt;continue}l=St,f++;break;case wt:if("/"===o){l=Et;break}l=It;continue;case xt:if(c.scheme=n.scheme,o===r)c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=g(n.path),c.query=n.query;else if("/"===o||"\\"===o&&c.isSpecial())l=kt;else if("?"===o)c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=g(n.path),c.query="",l=jt;else{if("#"!==o){c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=g(n.path),c.path.length--,l=It;continue}c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=g(n.path),c.query=n.query,c.fragment="",l=Ft}break;case kt:if(!c.isSpecial()||"/"!==o&&"\\"!==o){if("/"!==o){c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,l=It;continue}l=Et}else l=St;break;case At:if(l=St,"/"!==o||"/"!==I(h,f+1))continue;f++;break;case St:if("/"!==o&&"\\"!==o){l=Et;continue}break;case Et:if("@"===o){p&&(h="%40"+h),p=!0,a=v(h);for(var w=0;w65535)return G;c.port=c.isSpecial()&&A===ht[c.scheme]?null:A,h=""}if(e)return;l=Rt;continue}return G}h+=o;break;case Mt:if(c.scheme="file","/"===o||"\\"===o)l=Ct;else{if(!n||"file"!==n.scheme){l=It;continue}switch(o){case r:c.host=n.host,c.path=g(n.path),c.query=n.query;break;case"?":c.host=n.host,c.path=g(n.path),c.query="",l=jt;break;case"#":c.host=n.host,c.path=g(n.path),c.query=n.query,c.fragment="",l=Ft;break;default:pt(j(g(i,f),""))||(c.host=n.host,c.path=g(n.path),c.shortenPath()),l=It;continue}}break;case Ct:if("/"===o||"\\"===o){l=Lt;break}n&&"file"===n.scheme&&!pt(j(g(i,f),""))&&(dt(n.path[0],!0)?N(c.path,n.path[0]):c.host=n.host),l=It;continue;case Lt:if(o===r||"/"===o||"\\"===o||"?"===o||"#"===o){if(!e&&dt(h))l=It;else if(""===h){if(c.host="",e)return;l=Rt}else{if(s=c.parseHost(h))return s;if("localhost"===c.host&&(c.host=""),e)return;h="",l=Rt}continue}h+=o;break;case Rt:if(c.isSpecial()){if(l=It,"/"!==o&&"\\"!==o)continue}else if(e||"?"!==o)if(e||"#"!==o){if(o!==r&&(l=It,"/"!==o))continue}else c.fragment="",l=Ft;else c.query="",l=jt;break;case It:if(o===r||"/"===o||"\\"===o&&c.isSpecial()||!e&&("?"===o||"#"===o)){if(".."===(u=H(u=h))||"%2e."===u||".%2e"===u||"%2e%2e"===u?(c.shortenPath(),"/"===o||"\\"===o&&c.isSpecial()||N(c.path,"")):vt(h)?"/"===o||"\\"===o&&c.isSpecial()||N(c.path,""):("file"===c.scheme&&!c.path.length&&dt(h)&&(c.host&&(c.host=""),h=I(h,0)+":"),N(c.path,h)),h="","file"===c.scheme&&(o===r||"?"===o||"#"===o))for(;c.path.length>1&&""===c.path[0];)z(c.path);"?"===o?(c.query="",l=jt):"#"===o&&(c.fragment="",l=Ft)}else h+=ft(o,ct);break;case Pt:"?"===o?(c.query="",l=jt):"#"===o?(c.fragment="",l=Ft):o!==r&&(c.path[0]+=ft(o,st));break;case jt:e||"#"!==o?o!==r&&("'"===o&&c.isSpecial()?c.query+="%27":c.query+="#"===o?"%23":ft(o,st)):(c.fragment="",l=Ft);break;case Ft:o!==r&&(c.fragment+=ft(o,ut))}f++}},parseHost:function(t){var e,n,r;if("["===I(t,0)){if("]"!==I(t,t.length-1))return $;if(e=function(t){var e,n,r,i,o,a,s,u=[0,0,0,0,0,0,0,0],c=0,l=null,f=0,h=function(){return I(t,f)};if(":"===h()){if(":"!==I(t,1))return;f+=2,l=++c}for(;h();){if(8===c)return;if(":"!==h()){for(e=n=0;n<4&&P(tt,h());)e=16*e+C(h(),16),f++,n++;if("."===h()){if(0===n)return;if(f-=n,c>6)return;for(r=0;h();){if(i=null,r>0){if(!("."===h()&&r<4))return;f++}if(!P(K,h()))return;for(;P(K,h());){if(o=C(h(),10),null===i)i=o;else{if(0===i)return;i=10*i+o}if(i>255)return;f++}u[c]=256*u[c]+i,2!=++r&&4!==r||c++}if(4!==r)return;break}if(":"===h()){if(f++,!h())return}else if(h())return;u[c++]=e}else{if(null!==l)return;f++,l=++c}}if(null!==l)for(a=c-l,c=7;0!==c&&a>0;)s=u[c],u[c--]=u[l+a-1],u[l+--a]=s;else if(8!==c)return;return u}(W(t,1,-1)),!e)return $;this.host=e}else if(this.isSpecial()){if(t=m(t),P(et,t))return $;if(e=function(t){var e,n,r,i,o,a,s,u=U(t,".");if(u.length&&""===u[u.length-1]&&u.length--,(e=u.length)>4)return t;for(n=[],r=0;r1&&"0"===I(i,0)&&(o=P(J,i)?16:8,i=W(i,8===o?1:2)),""===i)a=0;else{if(!P(10===o?Q:8===o?Z:tt,i))return t;a=C(i,o)}N(n,a)}for(r=0;r=R(256,5-e))return null}else if(a>255)return null;for(s=D(n),r=0;r1?arguments[1]:void 0,r=S(e,new Dt(t,!1,n));o||(e.href=r.serialize(),e.origin=r.getOrigin(),e.protocol=r.getProtocol(),e.username=r.getUsername(),e.password=r.getPassword(),e.host=r.getHost(),e.hostname=r.getHostname(),e.port=r.getPort(),e.pathname=r.getPathname(),e.search=r.getSearch(),e.searchParams=r.getSearchParams(),e.hash=r.getHash())},Bt=Nt.prototype,zt=function(t,e){return{get:function(){return E(this)[t]()},set:e&&function(t){return E(this)[e](t)},configurable:!0,enumerable:!0}};if(o&&(f(Bt,"href",zt("serialize","setHref")),f(Bt,"origin",zt("getOrigin")),f(Bt,"protocol",zt("getProtocol","setProtocol")),f(Bt,"username",zt("getUsername","setUsername")),f(Bt,"password",zt("getPassword","setPassword")),f(Bt,"host",zt("getHost","setHost")),f(Bt,"hostname",zt("getHostname","setHostname")),f(Bt,"port",zt("getPort","setPort")),f(Bt,"pathname",zt("getPathname","setPathname")),f(Bt,"search",zt("getSearch","setSearch")),f(Bt,"searchParams",zt("getSearchParams")),f(Bt,"hash",zt("getHash","setHash"))),l(Bt,"toJSON",(function(){return E(this).serialize()}),{enumerable:!0}),l(Bt,"toString",(function(){return E(this).serialize()}),{enumerable:!0}),O){var Ut=O.createObjectURL,Wt=O.revokeObjectURL;Ut&&l(Nt,"createObjectURL",u(Ut,O)),Wt&&l(Nt,"revokeObjectURL",u(Wt,O))}w(Nt,"URL"),i({global:!0,constructor:!0,forced:!a,sham:!o},{URL:Nt})},45876:function(t,e,n){"use strict";var r=n(46518),i=n(53838);r({target:"Set",proto:!0,real:!0,forced:!n(84916)("isSubsetOf",(function(t){return t}))},{isSubsetOf:i})},46276:function(t,e,n){"use strict";var r=n(46518),i=n(77240);r({target:"String",proto:!0,forced:n(23061)("strike")},{strike:function(){return i(this,"strike","","")}})},46449:function(t,e,n){"use strict";var r=n(46518),i=n(70259),o=n(48981),a=n(26198),s=n(91291),u=n(1469);r({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,e=o(this),n=a(e),r=u(e,0);return r.length=i(r,e,e,n,0,void 0===t?1:s(t)),r}})},46518:function(t,e,n){"use strict";var r=n(44576),i=n(77347).f,o=n(66699),a=n(36840),s=n(39433),u=n(77740),c=n(92796);t.exports=function(t,e){var n,l,f,h,d,p=t.target,v=t.global,g=t.stat;if(n=v?r:g?r[p]||s(p,{}):r[p]&&r[p].prototype)for(l in e){if(h=e[l],f=t.dontCallGetSet?(d=i(n,l))&&d.value:n[l],!c(v?l:p+(g?".":"#")+l,t.forced)&&void 0!==f){if(typeof h==typeof f)continue;u(h,f)}(t.sham||f&&f.sham)&&o(h,"sham",!0),a(n,l,h,t)}}},46594:function(t,e,n){"use strict";n(15823)("Int8",(function(t){return function(e,n,r){return t(this,e,n,r)}}))},46706:function(t,e,n){"use strict";var r=n(79504),i=n(79306);t.exports=function(t,e,n){try{return r(i(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(t){}}},46761:function(t,e,n){"use strict";var r=n(46518),i=n(94644);r({target:"ArrayBuffer",stat:!0,forced:!i.NATIVE_ARRAY_BUFFER_VIEWS},{isView:i.isView})},47055:function(t,e,n){"use strict";var r=n(79504),i=n(79039),o=n(22195),a=Object,s=r("".split);t.exports=i((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"===o(t)?s(t,""):a(t)}:a},47072:function(t,e,n){"use strict";var r=n(46518),i=n(79504),o=n(79306),a=n(67750),s=n(72652),u=n(72248),c=n(96395),l=n(79039),f=u.Map,h=u.has,d=u.get,p=u.set,v=i([].push),g=c||l((function(){return 1!==f.groupBy("ab",(function(t){return t})).get("a").length}));r({target:"Map",stat:!0,forced:c||g},{groupBy:function(t,e){a(t),o(e);var n=new f,r=0;return s(t,(function(t){var i=e(t,r++);h(n,i)?v(d(n,i),t):p(n,i,[t])})),n}})},47452:function(t){"use strict";t.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},47566:function(t,e,n){"use strict";var r=n(36840),i=n(79504),o=n(655),a=n(22812),s=URLSearchParams,u=s.prototype,c=i(u.getAll),l=i(u.has),f=new s("a=1");!f.has("a",2)&&f.has("a",void 0)||r(u,"has",(function(t){var e=arguments.length,n=e<2?void 0:arguments[1];if(e&&void 0===n)return l(this,t);var r=c(this,t);a(e,1);for(var i=o(n),s=0;s=n.length?s(void 0,!0):(t=r(n,i),e.index+=t.length,s(t,!1))}))},48140:function(t,e,n){"use strict";var r=n(94644),i=n(26198),o=n(91291),a=r.aTypedArray;(0,r.exportTypedArrayMethod)("at",(function(t){var e=a(this),n=i(e),r=o(t),s=r>=0?r:n+r;return s<0||s>=n?void 0:e[s]}))},48345:function(t,e,n){"use strict";var r=n(72805);(0,n(94644).exportTypedArrayStaticMethod)("from",n(43251),r)},48408:function(t,e,n){"use strict";n(98406)},48523:function(t,e,n){"use strict";n(16468)("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),n(86938))},48598:function(t,e,n){"use strict";var r=n(46518),i=n(79504),o=n(47055),a=n(25397),s=n(34598),u=i([].join);r({target:"Array",proto:!0,forced:o!==Object||!s("join",",")},{join:function(t){return u(a(this),void 0===t?",":t)}})},48646:function(t,e,n){"use strict";var r=n(69565),i=n(28551),o=n(1767),a=n(50851);t.exports=function(t,e){e&&"string"==typeof t||i(t);var n=a(t);return o(i(void 0!==n?r(n,t):t))}},48686:function(t,e,n){"use strict";var r=n(43724),i=n(79039);t.exports=r&&i((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},48718:function(t,e,n){"use strict";var r=n(46518),i=n(77240);r({target:"String",proto:!0,forced:n(23061)("sub")},{sub:function(){return i(this,"sub","","")}})},48773:function(t,e){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,i=r&&!n.call({1:2},1);e.f=i?function(t){var e=r(this,t);return!!e&&e.enumerable}:n},48922:function(t,e,n){"use strict";var r=n(46518),i=n(43724),o=n(97751),a=n(79306),s=n(90679),u=n(36840),c=n(56279),l=n(62106),f=n(78227),h=n(91181),d=n(91021),p=o("SuppressedError"),v=ReferenceError,g=f("dispose"),y=f("toStringTag"),m="DisposableStack",b=h.set,w=h.getterFor(m),x="sync-dispose",k="disposed",A=function(t){var e=w(t);if(e.state===k)throw new v(m+" already disposed");return e},S=function(){b(s(this,E),{type:m,state:"pending",stack:[]}),i||(this.disposed=!1)},E=S.prototype;c(E,{dispose:function(){var t=w(this);if(t.state!==k){t.state=k,i||(this.disposed=!0);for(var e,n=t.stack,r=n.length,o=!1;r;){var a=n[--r];n[r]=null;try{a()}catch(t){o?e=new p(t,e):(o=!0,e=t)}}if(t.stack=null,o)throw e}},use:function(t){return d(A(this),t,x),t},adopt:function(t,e){var n=A(this);return a(e),d(n,void 0,x,(function(){e(t)})),t},defer:function(t){var e=A(this);a(t),d(e,void 0,x,t)},move:function(){var t=A(this),e=new S;return w(e).stack=t.stack,t.stack=[],t.state=k,i||(this.disposed=!0),e}}),i&&l(E,"disposed",{configurable:!0,get:function(){return w(this).state===k}}),u(E,g,E.dispose,{name:"dispose"}),u(E,y,m,{nonWritable:!0}),r({global:!0,constructor:!0},{DisposableStack:S})},48957:function(t,e,n){"use strict";var r=n(94901),i=n(20034),o=n(24913),a=n(1625),s=n(78227),u=n(50283),c=s("hasInstance"),l=Function.prototype;c in l||o.f(l,c,{value:u((function(t){if(!r(this)||!i(t))return!1;var e=this.prototype;return i(e)?a(e,t):t instanceof this}),c)})},48980:function(t,e,n){"use strict";var r=n(46518),i=n(59213).findIndex,o=n(6469),a="findIndex",s=!0;a in[]&&Array(1)[a]((function(){s=!1})),r({target:"Array",proto:!0,forced:s},{findIndex:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),o(a)},48981:function(t,e,n){"use strict";var r=n(67750),i=Object;t.exports=function(t){return i(r(t))}},49072:function(t,e,n){"use strict";n.r(e),n.d(e,{search:function(){return c},searchMatcher:function(){return l}});var r=n(54756),i=n.n(r);function o(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return a(t,e);var n={}.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)?a(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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 o,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw o}}}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n2&&void 0!==arguments[2]?arguments[2]:{};return i().mark((function r(){var o,a,s,c,l,f,h,d,p,v,g,y,m,b,w,x,k,A,S,E,T,_,O,M,C;return i().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:o=n.locales,a=void 0===o?"en":o,s=n.granularity,c=void 0===s?"word":s,l=n.sensitivity,f=void 0===l?"base":l;try{h=new Intl.Segmenter(a,{usage:"search",granularity:c}),d=new Intl.Collator(a,{sensitivity:f})}catch(t){console.warn(t),h=new Intl.Segmenter("en",{usage:"search",granularity:c}),d=new Intl.Collator("en",{sensitivity:f})}p=Array.from(h.segment(e)).length,v=[],g=0,y=h.segment(t[g])[Symbol.iterator]();case 1:if(!(g2&&void 0!==arguments[2]?arguments[2]:{};return i().mark((function r(){var o,a,s,c,l,f,h,d,p,v,g,y,m,b,w,x,k;return i().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:o=n.locales,a=void 0===o?"en":o,s=n.sensitivity,c="variant"===s,l=t.join(""),f=c?l:l.toLocaleLowerCase(a),h=c?e:e.toLocaleLowerCase(a),d=h.length,p=-1,v=-1,g=0;case 1:if(!((p=f.indexOf(h,p+1))>-1)){r.next=2;break}for(;g<=p;)g+=t[++v].length;for(y=v,m=p-(g-t[v].length),b=p+d;g<=b;)g+=t[++v].length;return w=v,x=b-(g-t[v].length),k={startIndex:y,startOffset:m,endIndex:w,endOffset:x},r.next=2,{range:k,excerpt:u(t,k)};case 2:if(p>-1){r.next=1;break}case 3:case"end":return r.stop()}}),r)}))()}(t,e,n)},l=function(t,e){var n=e.defalutLocale,r=e.matchCase,a=e.matchDiacritics,s=e.matchWholeWords;return i().mark((function e(u,l){var f,h,d,p,v;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:f=t(u,i().mark((function t(e,f){var h,d,p,v,g,y,m,b,w;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:h=o(c(e,l,{locales:u.body.lang||u.documentElement.lang||n||"en",granularity:s?"word":"grapheme",sensitivity:a&&r?"variant":a&&!r?"accent":!a&&r?"case":"base"})),t.prev=1,h.s();case 2:if((d=h.n()).done){t.next=4;break}return p=d.value,v=p.range,g=v.startIndex,y=v.startOffset,m=v.endIndex,b=v.endOffset,p.range=f(g,y,m,b),t.next=3,p;case 3:t.next=2;break;case 4:t.next=6;break;case 5:t.prev=5,w=t.catch(1),h.e(w);case 6:return t.prev=6,h.f(),t.finish(6);case 7:case"end":return t.stop()}}),t,null,[[1,5,6,7]])}))),h=o(f),e.prev=1,h.s();case 2:if((d=h.n()).done){e.next=4;break}return p=d.value,e.next=3,p;case 3:e.next=2;break;case 4:e.next=6;break;case 5:e.prev=5,v=e.catch(1),h.e(v);case 6:return e.prev=6,h.f(),e.finish(6);case 7:case"end":return e.stop()}}),e,null,[[1,5,6,7]])}))}},49340:function(t){"use strict";var e=Math.log,n=Math.LOG10E;t.exports=Math.log10||function(t){return e(t)*n}},49557:function(t,e,n){"use strict";n.d(e,{u:function(){return m}});var r=n(80296),i=n(23029),o=n(92901);function a(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return s(t,e);var n={}.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)?s(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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 o,a=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw o}}}}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n=0;o--){var s,u=(0,r.A)(i[o],2),c=u[0],l=u[1],h=a(l.rects);try{for(h.s();!(s=h.n()).done;){var d=s.value,p=d.left,g=d.top,y=d.right,m=d.bottom;if(g<=n&&p<=e&&m>n&&y>e)return[c,l.range]}}catch(t){h.e(t)}finally{h.f()}}return[]}}],[{key:"underline",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.color,r=void 0===n?"red":n,i=e.width,o=void 0===i?2:i,s=e.padding,u=void 0===s?0:s,c=e.writingMode,l=d("g");if(l.setAttribute("fill",r),"vertical-rl"===c||"vertical-lr"===c){var f,h=a(t);try{for(h.s();!(f=h.n()).done;){var p=f.value,v=p.right,g=p.top,y=p.height,m=d("rect");m.setAttribute("x",v-o/2+u),m.setAttribute("y",g),m.setAttribute("height",y),m.setAttribute("width",o),l.append(m)}}catch(t){h.e(t)}finally{h.f()}}else{var b,w=a(t);try{for(w.s();!(b=w.n()).done;){var x=b.value,k=x.left,A=x.bottom,S=x.width,E=d("rect");E.setAttribute("x",k),E.setAttribute("y",A-o/2+u),E.setAttribute("height",o),E.setAttribute("width",S),l.append(E)}}catch(t){w.e(t)}finally{w.f()}}return l}},{key:"strikethrough",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.color,r=void 0===n?"red":n,i=e.width,o=void 0===i?2:i,s=e.writingMode,u=d("g");if(u.setAttribute("fill",r),"vertical-rl"===s||"vertical-lr"===s){var c,l=a(t);try{for(l.s();!(c=l.n()).done;){var f=c.value,h=f.right,p=f.left,v=f.top,g=f.height,y=d("rect");y.setAttribute("x",(h+p)/2),y.setAttribute("y",v),y.setAttribute("height",g),y.setAttribute("width",o),u.append(y)}}catch(t){l.e(t)}finally{l.f()}}else{var m,b=a(t);try{for(b.s();!(m=b.n()).done;){var w=m.value,x=w.left,k=w.top,A=w.bottom,S=w.width,E=d("rect");E.setAttribute("x",x),E.setAttribute("y",(k+A)/2),E.setAttribute("height",o),E.setAttribute("width",S),u.append(E)}}catch(t){b.e(t)}finally{b.f()}}return u}},{key:"squiggly",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.color,r=void 0===n?"red":n,i=e.width,o=void 0===i?2:i,s=e.padding,u=void 0===s?0:s,c=e.writingMode,l=d("g");l.setAttribute("fill","none"),l.setAttribute("stroke",r),l.setAttribute("stroke-width",o);var f=1.5*o;if("vertical-rl"===c||"vertical-lr"===c){var h,p=a(t);try{var v=function(){var t=h.value,e=t.right,n=t.top,r=t.height,i=d("path"),a=Math.round(r/f/1.5),s=r/a,c=Array.from({length:a},(function(t,e){return"l".concat(e%2?-f:f," ").concat(s)})).join("");i.setAttribute("d","M".concat(e-o/2+u," ").concat(n).concat(c)),l.append(i)};for(p.s();!(h=p.n()).done;)v()}catch(t){p.e(t)}finally{p.f()}}else{var g,y=a(t);try{var m=function(){var t=g.value,e=t.left,n=t.bottom,r=t.width,i=d("path"),a=Math.round(r/f/1.5),s=r/a,c=Array.from({length:a},(function(t,e){return"l".concat(s," ").concat(e%2?f:-f)})).join("");i.setAttribute("d","M".concat(e," ").concat(n+o/2+u).concat(c)),l.append(i)};for(y.s();!(g=y.n()).done;)m()}catch(t){y.e(t)}finally{y.f()}}return l}},{key:"highlight",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.color,r=void 0===n?"red":n,i=e.padding,o=void 0===i?0:i,s=d("g");s.setAttribute("fill",r),s.style.opacity="var(--overlayer-highlight-opacity, .3)",s.style.mixBlendMode="var(--overlayer-highlight-blend-mode, normal)";var u,c=a(t);try{for(c.s();!(u=c.n()).done;){var l=u.value,f=l.left,h=l.top,p=l.height,v=l.width,g=d("rect");g.setAttribute("x",f-o),g.setAttribute("y",h-o),g.setAttribute("height",p+2*o),g.setAttribute("width",v+2*o),s.append(g)}}catch(t){c.e(t)}finally{c.f()}return s}},{key:"outline",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.color,r=void 0===n?"red":n,i=e.width,o=void 0===i?3:i,s=e.padding,u=void 0===s?0:s,c=e.radius,l=void 0===c?3:c,f=d("g");f.setAttribute("fill","none"),f.setAttribute("stroke",r),f.setAttribute("stroke-width",o);var h,p=a(t);try{for(p.s();!(h=p.n()).done;){var v=h.value,g=v.left,y=v.top,m=v.height,b=v.width,w=d("rect");w.setAttribute("x",g-u),w.setAttribute("y",y-u),w.setAttribute("height",m+2*u),w.setAttribute("width",b+2*u),w.setAttribute("rx",l),f.append(w)}}catch(t){p.e(t)}finally{p.f()}return f}},{key:"copyImage",value:function(t){var e=(0,r.A)(t,1)[0],n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).src,i=d("image"),o=e.left,a=e.top,s=e.height,u=e.width;return i.setAttribute("href",n),i.setAttribute("x",o),i.setAttribute("y",a),i.setAttribute("height",s),i.setAttribute("width",u),i}}])}();function b(t){return/^((?!chrome|android).)*AppleWebKit/i.test(navigator.userAgent)&&!window.chrome&&window.getComputedStyle(f(g,t).body).zoom||1}function w(t){var e,n=t.commonAncestorContainer,r=Array.from((null===(e=n.querySelectorAll)||void 0===e?void 0:e.call(n,"p, h1, h2, h3, h4"))||[]),i=[];return r.forEach((function(e){var n=document.createRange();t.intersectsNode(e)&&(n.selectNodeContents(e),n.compareBoundaryPoints(Range.START_TO_START,t)<0&&n.setStart(t.startContainer,t.startOffset),n.compareBoundaryPoints(Range.END_TO_END,t)>0&&n.setEnd(t.endContainer,t.endOffset),i.push(n))})),0===i.length?[t]:i}},49603:function(t,e,n){"use strict";var r=n(46518),i=n(69565),o=n(48981),a=n(1625),s=n(57657).IteratorPrototype,u=n(19462),c=n(48646),l=n(96395)||function(){try{Iterator.from({return:null}).return()}catch(t){return!0}}(),f=u((function(){return i(this.next,this.iterator)}),!0);r({target:"Iterator",stat:!0,forced:l},{from:function(t){var e=c("string"==typeof t?o(t):t,!0);return a(s,e.iterator)?e.iterator:new f(e)}})},49773:function(t,e,n){"use strict";var r=n(46518),i=n(4495),o=n(79039),a=n(33717),s=n(48981);r({target:"Object",stat:!0,forced:!i||o((function(){a.f(1)}))},{getOwnPropertySymbols:function(t){var e=a.f;return e?e(s(t)):[]}})},50113:function(t,e,n){"use strict";var r=n(46518),i=n(59213).find,o=n(6469),a="find",s=!0;a in[]&&Array(1)[a]((function(){s=!1})),r({target:"Array",proto:!0,forced:s},{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),o(a)},50283:function(t,e,n){"use strict";var r=n(79504),i=n(79039),o=n(94901),a=n(39297),s=n(43724),u=n(10350).CONFIGURABLE,c=n(33706),l=n(91181),f=l.enforce,h=l.get,d=String,p=Object.defineProperty,v=r("".slice),g=r("".replace),y=r([].join),m=s&&!i((function(){return 8!==p((function(){}),"length",{value:8}).length})),b=String(String).split("String"),w=t.exports=function(t,e,n){"Symbol("===v(d(e),0,7)&&(e="["+g(d(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!a(t,"name")||u&&t.name!==e)&&(s?p(t,"name",{value:e,configurable:!0}):t.name=e),m&&n&&a(n,"arity")&&t.length!==n.arity&&p(t,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?s&&p(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var r=f(t);return a(r,"source")||(r.source=y(b,"string"==typeof e?e:"")),t};Function.prototype.toString=w((function(){return o(this)&&h(this).source||c(this)}),"toString")},50360:function(t,e,n){"use strict";var r=n(44576).isFinite;t.exports=Number.isFinite||function(t){return"number"==typeof t&&r(t)}},50375:function(t,e,n){"use strict";var r=n(46518),i=n(79504),o=n(67750),a=n(91291),s=n(655),u=i("".slice),c=Math.max,l=Math.min;r({target:"String",proto:!0,forced:!"".substr||"b"!=="ab".substr(-1)},{substr:function(t,e){var n,r,i=s(o(this)),f=i.length,h=a(t);return h===1/0&&(h=0),h<0&&(h=c(f+h,0)),(n=void 0===e?f:a(e))<=0||n===1/0||h>=(r=l(h+n,f))?"":u(i,h,r)}})},50452:function(t,e,n){"use strict";var r=n(69565),i=n(36840),o=n(97751),a=n(55966),s=n(39297),u=n(78227),c=n(53982),l=u("asyncDispose"),f=o("Promise");s(c,l)||i(c,l,(function(){var t=this;return new f((function(e,n){var i=a(t,"return");i?f.resolve(r(i,t)).then((function(){e(void 0)}),n):e(void 0)}))}))},50778:function(t,e,n){"use strict";var r=n(46518),i=n(77240);r({target:"String",proto:!0,forced:n(23061)("link")},{link:function(t){return i(this,"a","href",t)}})},50851:function(t,e,n){"use strict";var r=n(36955),i=n(55966),o=n(64117),a=n(26269),s=n(78227)("iterator");t.exports=function(t){if(!o(t))return i(t,s)||i(t,"@@iterator")||a[r(t)]}},51088:function(t,e,n){"use strict";var r=n(46518),i=n(69565),o=n(96395),a=n(10350),s=n(94901),u=n(33994),c=n(42787),l=n(52967),f=n(10687),h=n(66699),d=n(36840),p=n(78227),v=n(26269),g=n(57657),y=a.PROPER,m=a.CONFIGURABLE,b=g.IteratorPrototype,w=g.BUGGY_SAFARI_ITERATORS,x=p("iterator"),k="keys",A="values",S="entries",E=function(){return this};t.exports=function(t,e,n,a,p,g,T){u(n,e,a);var _,O,M,C=function(t){if(t===p&&j)return j;if(!w&&t&&t in I)return I[t];switch(t){case k:case A:case S:return function(){return new n(this,t)}}return function(){return new n(this)}},L=e+" Iterator",R=!1,I=t.prototype,P=I[x]||I["@@iterator"]||p&&I[p],j=!w&&P||C(p),F="Array"===e&&I.entries||P;if(F&&(_=c(F.call(new t)))!==Object.prototype&&_.next&&(o||c(_)===b||(l?l(_,b):s(_[x])||d(_,x,E)),f(_,L,!0,!0),o&&(v[L]=E)),y&&p===A&&P&&P.name!==A&&(!o&&m?h(I,"name",A):(R=!0,j=function(){return i(P,this)})),p)if(O={values:C(A),keys:g?j:C(k),entries:C(S)},T)for(M in O)(w||R||!(M in I))&&d(I,M,O[M]);else r({target:e,proto:!0,forced:w||R},O);return o&&!T||I[x]===j||d(I,x,j,{name:p}),v[e]=j,O}},51481:function(t,e,n){"use strict";var r=n(46518),i=n(36043);r({target:"Promise",stat:!0,forced:n(10916).CONSTRUCTOR},{reject:function(t){var e=i.f(this);return(0,e.reject)(t),e.promise}})},51629:function(t,e,n){"use strict";var r=n(46518),i=n(90235);r({target:"Array",proto:!0,forced:[].forEach!==i},{forEach:i})},52407:function(t,e,n){"use strict";var r=n(46518),i=n(8045),o=n(79039),a=Array.fromAsync;r({target:"Array",stat:!0,forced:!a||o((function(){var t=0;return a.call((function(){return t++,[]}),{length:0}),1!==t}))},{fromAsync:i})},52568:function(t,e,n){"use strict";var r=n(94644),i=n(72805),o=r.aTypedArrayConstructor;(0,r.exportTypedArrayStaticMethod)("of",(function(){for(var t=0,e=arguments.length,n=new(o(this))(e);e>t;)n[t]=arguments[t++];return n}),i)},52675:function(t,e,n){"use strict";n(6761),n(81510),n(97812),n(33110),n(49773)},52703:function(t,e,n){"use strict";var r=n(44576),i=n(79039),o=n(79504),a=n(655),s=n(43802).trim,u=n(47452),c=r.parseInt,l=r.Symbol,f=l&&l.iterator,h=/^[+-]?0x/i,d=o(h.exec),p=8!==c(u+"08")||22!==c(u+"0x16")||f&&!i((function(){c(Object(f))}));t.exports=p?function(t,e){var n=s(a(t));return c(n,e>>>0||(d(h,n)?16:10))}:c},52811:function(t,e,n){"use strict";var r=n(46518),i=n(92744),o=n(79039),a=n(20034),s=n(3451).onFreeze,u=Object.freeze;r({target:"Object",stat:!0,forced:o((function(){u(1)})),sham:!i},{freeze:function(t){return u&&a(t)?u(s(t)):t}})},52967:function(t,e,n){"use strict";var r=n(46706),i=n(20034),o=n(67750),a=n(73506);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=r(Object.prototype,"__proto__","set"))(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return o(n),a(r),i(n)?(e?t(n,r):n.__proto__=r,n):n}}():void 0)},53179:function(t,e,n){"use strict";var r=n(92140),i=n(36955);t.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},53250:function(t){"use strict";var e=Math.expm1,n=Math.exp;t.exports=!e||e(10)>22025.465794806718||e(10)<22025.465794806718||-2e-17!==e(-2e-17)?function(t){var e=+t;return 0===e?e:e>-1e-6&&e<1e-6?e+e*e/2:n(e)-1}:e},53487:function(t,e,n){"use strict";var r=n(43802).start,i=n(60706);t.exports=i("trimStart")?function(){return r(this)}:"".trimStart},53602:function(t){"use strict";var e=4503599627370496;t.exports=function(t){return t+e-e}},53640:function(t,e,n){"use strict";var r=n(28551),i=n(84270),o=TypeError;t.exports=function(t){if(r(this),"string"===t||"default"===t)t="string";else if("number"!==t)throw new o("Incorrect hint");return i(this,t)}},53838:function(t,e,n){"use strict";var r=n(97080),i=n(25170),o=n(38469),a=n(83789);t.exports=function(t){var e=r(this),n=a(t);return!(i(e)>n.size)&&!1!==o(e,(function(t){if(!n.includes(t))return!1}),!0)}},53921:function(t,e,n){"use strict";var r=n(46518),i=n(72652),o=n(97040);r({target:"Object",stat:!0},{fromEntries:function(t){var e={};return i(t,(function(t,n){o(e,t,n)}),{AS_ENTRIES:!0}),e}})},53954:function(t,e,n){"use strict";function r(t){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},r(t)}n.d(e,{A:function(){return r}})},53982:function(t,e,n){"use strict";var r,i,o=n(44576),a=n(77629),s=n(94901),u=n(2360),c=n(42787),l=n(36840),f=n(78227),h=n(96395),d="USE_FUNCTION_CONSTRUCTOR",p=f("asyncIterator"),v=o.AsyncIterator,g=a.AsyncIteratorPrototype;if(g)r=g;else if(s(v))r=v.prototype;else if(a[d]||o[d])try{i=c(c(c(Function("return async function*(){}()")()))),c(i)===Object.prototype&&(r=i)}catch(t){}r?h&&(r=u(r)):r={},s(r[p])||l(r,p,(function(){return this})),t.exports=r},54554:function(t,e,n){"use strict";var r=n(46518),i=n(48981),o=n(35610),a=n(91291),s=n(26198),u=n(34527),c=n(96837),l=n(1469),f=n(97040),h=n(84606),d=n(70597)("splice"),p=Math.max,v=Math.min;r({target:"Array",proto:!0,forced:!d},{splice:function(t,e){var n,r,d,g,y,m,b=i(this),w=s(b),x=o(t,w),k=arguments.length;for(0===k?n=r=0:1===k?(n=0,r=w-x):(n=k-2,r=v(p(a(e),0),w-x)),c(w+n-r),d=l(b,r),g=0;gw-r+n;g--)h(b,g-1)}else if(n>r)for(g=w-r;g>x;g--)m=g+n-1,(y=g+r-1)in b?b[m]=b[y]:h(b,m);for(g=0;g2?arguments[2]:void 0,h=s((void 0===f?u:i(f,u))-l,u-c),d=1;for(l0;)l in n?n[c]=n[l]:a(n,c),c+=d,l+=d;return n}},57145:function(t,e,n){"use strict";var r=n(46518),i=n(79504),o=n(79306),a=n(25397),s=n(35370),u=n(44124),c=n(6469),l=Array,f=i(u("Array","sort"));r({target:"Array",proto:!0},{toSorted:function(t){void 0!==t&&o(t);var e=a(this),n=s(l,e);return f(n,t)}}),c("toSorted")},57301:function(t,e,n){"use strict";var r=n(94644),i=n(59213).some,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("some",(function(t){return i(o(this),t,arguments.length>1?arguments[1]:void 0)}))},57323:function(t,e,n){"use strict";var r,i,o=n(69565),a=n(79504),s=n(655),u=n(67979),c=n(58429),l=n(25745),f=n(2360),h=n(91181).get,d=n(83635),p=n(18814),v=l("native-string-replace",String.prototype.replace),g=RegExp.prototype.exec,y=g,m=a("".charAt),b=a("".indexOf),w=a("".replace),x=a("".slice),k=(i=/b*/g,o(g,r=/a/,"a"),o(g,i,"a"),0!==r.lastIndex||0!==i.lastIndex),A=c.BROKEN_CARET,S=void 0!==/()??/.exec("")[1];(k||S||A||d||p)&&(y=function(t){var e,n,r,i,a,c,l,d=this,p=h(d),E=s(t),T=p.raw;if(T)return T.lastIndex=d.lastIndex,e=o(y,T,E),d.lastIndex=T.lastIndex,e;var _=p.groups,O=A&&d.sticky,M=o(u,d),C=d.source,L=0,R=E;if(O&&(M=w(M,"y",""),-1===b(M,"g")&&(M+="g"),R=x(E,d.lastIndex),d.lastIndex>0&&(!d.multiline||d.multiline&&"\n"!==m(E,d.lastIndex-1))&&(C="(?: "+C+")",R=" "+R,L++),n=new RegExp("^(?:"+C+")",M)),S&&(n=new RegExp("^"+C+"$(?!\\s)",M)),k&&(r=d.lastIndex),i=o(g,O?n:d,R),O?i?(i.input=x(i.input,L),i[0]=x(i[0],L),i.index=d.lastIndex,d.lastIndex+=i[0].length):d.lastIndex=0:k&&i&&(d.lastIndex=d.global?i.index+i[0].length:r),S&&i&&i.length>1&&o(v,i[0],n,(function(){for(a=1;at.length)&&(e=t.length);for(var n=0,r=Array(e);n1))return n.parentNode;t.setStart(n,e-1)}return t},O=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n,i=t.createRange();return i.setStart(e,n),i.setEnd(e,r),i},M=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:e.nodeValue.length;if(i-r==1)return n(O(t,e,r),O(t,e,i))<0?r:i;var o=Math.floor(r+(i-r)/2),a=n(O(t,e,r,o),O(t,e,o,i));return a<0?M(t,e,n,r,o):a>0?M(t,e,n,o,i):o},C=NodeFilter,L=C.SHOW_ELEMENT,R=C.SHOW_TEXT,I=C.SHOW_CDATA_SECTION,P=C.FILTER_ACCEPT,j=C.FILTER_REJECT,F=C.FILTER_SKIP,D=L|R|I,N=function(t,e,n,r){var i,o;if(t){for(var a=t.createTreeWalker(t.body,D,{acceptNode:function(i){var o,a=null===(o=i.localName)||void 0===o?void 0:o.toLowerCase();if("script"===a||"style"===a)return j;if(1===i.nodeType){var s=r(i.getBoundingClientRect()),u=s.left,c=s.right;if(cn)return j;if(u>=e&&c<=n)return P}else{var l;if(null===(l=i.nodeValue)||void 0===l||!l.trim())return j;var f=t.createRange();f.selectNodeContents(i);var h=r(f.getBoundingClientRect()),d=h.left;if(h.right>=e&&d<=n)return P}return F}}),s=[],u=a.nextNode();u;u=a.nextNode())s.push(u);var c=null!==(i=s[0])&&void 0!==i?i:t.body,l=null!==(o=s[s.length-1])&&void 0!==o?o:c,f=1===c.nodeType?0:M(t,c,(function(t,n){var i=r(t.getBoundingClientRect()),o=r(n.getBoundingClientRect());return i.righte?0:o.left>e?-1:1})),h=1===l.nodeType?0:M(t,l,(function(t,e){var i=r(t.getBoundingClientRect()),o=r(e.getBoundingClientRect());return i.rightn?0:o.left>n?-1:1})),d=t.createRange();return d.setStart(c,f),d.setEnd(l,h),d}},B=function(t){var e=t.defaultView.getComputedStyle(t.body),n=e.writingMode,r=e.direction;return{vertical:"vertical-rl"===n||"vertical-lr"===n,rtl:"rtl"===t.body.dir||"rtl"===r||"rtl"===t.documentElement.dir,writingMode:n}},z=function(t,e){return Array.from({length:t},(function(){var t=document.createElement("div"),n=document.createElement("div");return t.append(n),n.setAttribute("part",e),t}))},U=function(t,e){for(var n=t.style,r=0,i=Object.entries(e);r=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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 o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}(s.body.querySelectorAll("img, svg, video"));try{for(u.s();!(t=u.n()).done;){var c=t.value,l=s.defaultView.getComputedStyle(c),f=l.maxHeight,h=l.maxWidth,d=a?"".concat(n-2*i,"px"):o?"".concat(o,"px"):"none"!==h&&"0px"!==h?h:"100%";U(c,{"max-height":a?"none"!==f&&"0px"!==f?f:"100%":"".concat(r-2*i,"px"),"max-width":d,"object-fit":"contain","page-break-inside":"avoid","break-inside":"avoid","box-sizing":"border-box"})}}catch(t){u.e(t)}finally{u.f()}}},{key:"expand",value:function(){var t=this.document.documentElement;if(k(K,this)){var e=k(G,this)?"height":"width",n=k(G,this)?"width":"height";k(V,this).selectNodeContents(this.document.body);var r=k(V,this).getBoundingClientRect(),i=t.getBoundingClientRect(),o=(k(G,this)?0:k(X,this)?i.right-r.right:r.left-i.left)+r[e],a=Math.ceil(o/k(J,this))*k(J,this);k(H,this).style.padding="0",k(q,this).style[e]="".concat(a,"px"),k(H,this).style[e]="".concat(a+2*k(J,this),"px"),k(q,this).style[n]="100%",k(H,this).style[n]="100%",t.style[e]="".concat(k(J,this),"px"),k($,this)&&(k($,this).element.style.margin="0",k($,this).element.style.left=k(G,this)?"0":"".concat(k(J,this),"px"),k($,this).element.style.top=k(G,this)?"".concat(k(J,this),"px"):"0",k($,this).element.style[e]="".concat(a,"px"),k($,this).redraw())}else{var s=k(G,this)?"width":"height",u=k(G,this)?"height":"width",c=t.getBoundingClientRect()[s],l=k(Z,this).margin,f=k(G,this)?"0 ".concat(l,"px"):"".concat(l,"px 0");k(H,this).style.padding=f,k(q,this).style[s]="".concat(c,"px"),k(H,this).style[s]="".concat(c,"px"),k(q,this).style[u]="100%",k(H,this).style[u]="100%",k($,this)&&(k($,this).element.style.margin=f,k($,this).element.style.left="0",k($,this).element.style.top="0",k($,this).element.style[s]="".concat(c,"px"),k($,this).redraw())}this.onExpand()}},{key:"overlayer",get:function(){return k($,this)},set:function(t){x($,this,t),k(H,this).append(t.element)}},{key:"writingMode",get:function(){return k(Y,this)}},{key:"destroy",value:function(){this.document&&k(W,this).unobserve(this.document.body)}}]);var t}(),tt=new WeakMap,et=new WeakMap,nt=new WeakMap,rt=new WeakMap,it=new WeakMap,ot=new WeakMap,at=new WeakMap,st=new WeakMap,ut=new WeakMap,ct=new WeakMap,lt=new WeakMap,ft=new WeakMap,ht=new WeakMap,dt=new WeakMap,pt=new WeakMap,vt=new WeakMap,gt=new WeakMap,yt=new WeakMap,mt=new WeakMap,bt=new WeakMap,wt=new WeakMap,xt=new WeakMap,kt=new WeakMap,At=new WeakMap,St=new WeakMap,Et=new WeakSet,Tt=function(t){function e(){var t,n,r,a;(0,l.A)(this,e),n=this,r=e,r=(0,o.A)(r),function(t,e){w(t,e),e.add(t)}(t=(0,i.A)(n,v()?Reflect.construct(r,[],(0,o.A)(n).constructor):r.apply(n,a)),Et),b(t,tt,t.attachShadow({mode:"open"})),b(t,et,new ResizeObserver((function(){return t.render()}))),b(t,nt,void 0),b(t,rt,void 0),b(t,it,void 0),b(t,ot,void 0),b(t,at,!1),b(t,st,!1),b(t,ut,0),b(t,ct,-1),b(t,lt,0),b(t,ft,!1),b(t,ht,!1),b(t,dt,void 0),b(t,pt,new WeakMap),b(t,vt,matchMedia("(prefers-color-scheme: dark)")),b(t,gt,void 0),b(t,yt,!1),b(t,mt,null),b(t,bt,void 0),b(t,wt,void 0),b(t,xt,!1),b(t,kt,!1),b(t,At,null),b(t,St,!1),k(tt,t).innerHTML='\n
\n
\n
\n
\n ',x(nt,t,k(tt,t).getElementById("top")),x(rt,t,k(tt,t).getElementById("background")),x(it,t,k(tt,t).getElementById("container")),k(et,t).observe(k(it,t)),k(it,t).addEventListener("scroll",(function(){k(yt,t)||(k(ft,t)?x(ft,t,!1):(k(mt,t)&&cancelAnimationFrame(k(mt,t)),x(mt,t,requestAnimationFrame((function(){x(mt,t,null),A(Et,t,Wt).call(t,"scroll"),t.scrolled&&A(Et,t,Ht).call(t)})))))}));var s={passive:!1};return t.addEventListener("touchstart",A(Et,t,Ct).bind(t),s),t.addEventListener("touchmove",A(Et,t,Lt).bind(t),s),t.addEventListener("touchend",A(Et,t,Rt).bind(t),s),t.addEventListener("load",(function(e){var n=e.detail.doc;n.addEventListener("touchstart",A(Et,t,Ct).bind(t),s),n.addEventListener("touchmove",A(Et,t,Lt).bind(t),s),n.addEventListener("touchend",A(Et,t,Rt).bind(t),s)})),x(gt,t,(function(){k(ot,t)&&A(Et,t,_t).call(t)})),k(vt,t).addEventListener("change",k(gt,t)),t}return(0,a.A)(e,t),(0,f.A)(e,[{key:"attributeChangedCallback",value:function(t,e,n){switch(t){case"flow":this.render();break;case"top-margin":case"max-block-size":case"background-color":k(nt,this).style.setProperty("--_"+t,n);break;case"bottom-margin":case"gap":case"max-column-count":case"column-threshold":case"max-inline-size":k(nt,this).style.setProperty("--_"+t,n),this.render();break;case"bgimg-url":case"bgimg-blur":case"bgimg-opacity":case"bgimg-fit":k(rt,this)&&A(Et,this,_t).call(this)}}},{key:"open",value:function(t){this.bookDir=t.dir,this.sections=t.sections}},{key:"render",value:function(){k(ot,this)&&(k(ot,this).render(A(Et,this,Mt).call(this,{vertical:k(at,this),rtl:k(st,this)})),this.scrollToAnchor(k(lt,this)))}},{key:"scrolled",get:function(){return"scrolled"===this.getAttribute("flow")}},{key:"scrollProp",get:function(){var t=this.scrolled;return k(at,this)?t?"scrollLeft":"scrollTop":t?"scrollTop":"scrollLeft"}},{key:"sideProp",get:function(){var t=this.scrolled;return k(at,this)?t?"width":"height":t?"height":"width"}},{key:"vertical",get:function(){return k(at,this)}},{key:"size",get:function(){return k(it,this).getBoundingClientRect()[this.sideProp]}},{key:"viewSize",get:function(){return k(ot,this).element.getBoundingClientRect()[this.sideProp]}},{key:"start",get:function(){return Math.abs(k(it,this)[this.scrollProp])}},{key:"end",get:function(){return this.start+this.size}},{key:"page",get:function(){return Math.floor((this.start+this.end)/2/this.size)}},{key:"pages",get:function(){return Math.round(this.viewSize/this.size)}},{key:"scrollBy",value:function(t,e){var n=k(it,this),r="scrollLeft"===this.scrollProp,i=r?t:e;r?n.scrollBy({left:i,top:0,behavior:"auto"}):n.scrollBy({left:0,top:i,behavior:"auto"})}},{key:"snap",value:function(t,e,n){var r,i=this;if(!k(St,this)){var o=null!=n?n:k(bt,this),a=k(at,this)?e:t,s=this.pages,u=this.size;if(s&&0!==u){var c=k(it,this),l=this.scrollProp,f="scrollLeft"===l,h=c[l],d=f?"overflowX":"overflowY",p=c.style[d];c.style[d]="hidden",c[l]=h;var v=Math.abs(h),g=Math.round(v/u),y=g;Math.abs(a)>.3&&(y+=a>0?1:-1);var m=null!==(r=null==o?void 0:o.startPage)&&void 0!==r?r:g;if(!this.scrolled){var b=y-m;b>1?y=m+1:b<-1&&(y=m-1)}var w=(y=Math.max(0,Math.min(s-1,y)))*u,S=Math.abs(w-v),E=Math.max(200,Math.min(300,S/(u||1)*250)),T=k(st,this)?-y:y;return x(St,this,!0),A(Et,this,Nt).call(this,T,"snap",{animate:!0,duration:E}).then((function(){var t=y<=0?-1:y>=s-1?1:null;if(t)return A(Et,i,Gt).call(i,{index:A(Et,i,Jt).call(i,t),anchor:t<0?function(){return 1}:function(){return 0}})})).finally((function(){x(St,i,!1),c.style[d]=p}))}}}},{key:"scrollToAnchor",value:(r=(0,c.A)(p().mark((function t(e,n){var r,i,o,a,s,u,c;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(x(lt,this,e),!(o=null===(r=_(e))||void 0===r||null===(i=r.getClientRects)||void 0===i?void 0:i.call(r))){t.next=3;break}if(a=Array.from(o).find((function(t){return t.width>0&&t.height>0}))||o[0]){t.next=1;break}return t.abrupt("return");case 1:return t.next=2,A(Et,this,Pt).call(this,a,"anchor");case 2:return n&&A(Et,this,zt).call(this),t.abrupt("return");case 3:if(!this.scrolled){t.next=5;break}return t.next=4,A(Et,this,Ft).call(this,e*this.viewSize,"anchor");case 4:return t.abrupt("return");case 5:if(s=this.pages){t.next=6;break}return t.abrupt("return");case 6:return u=s-2,c=Math.round(e*(u-1)),t.next=7,A(Et,this,Nt).call(this,c+1,"anchor");case 7:case"end":return t.stop()}}),t,this)}))),function(t,e){return r.apply(this,arguments)})},{key:"goTo",value:(n=(0,c.A)(p().mark((function t(e){var n;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!k(ht,this)){t.next=1;break}return t.abrupt("return");case 1:return t.next=2,e;case 2:if(n=t.sent,!A(Et,this,$t).call(this,n.index)){t.next=3;break}return t.abrupt("return",A(Et,this,Gt).call(this,n));case 3:case"end":return t.stop()}}),t,this)}))),function(t){return n.apply(this,arguments)})},{key:"atStart",get:function(){return null==A(Et,this,Jt).call(this,-1)&&this.page<=1}},{key:"atEnd",get:function(){return null==A(Et,this,Jt).call(this,1)&&this.page>=this.pages-2}},{key:"prev",value:function(t){return A(Et,this,Zt).call(this,-1,t)}},{key:"next",value:function(t){return A(Et,this,Zt).call(this,1,t)}},{key:"prevSection",value:function(){return this.goTo({index:A(Et,this,Jt).call(this,-1)})}},{key:"nextSection",value:function(){return this.goTo({index:A(Et,this,Jt).call(this,1)})}},{key:"firstSection",value:function(){var t=this.sections.findIndex((function(t){return"no"!==t.linear}));return this.goTo({index:t})}},{key:"lastSection",value:function(){var t=this.sections.findLastIndex((function(t){return"no"!==t.linear}));return this.goTo({index:t})}},{key:"getContents",value:function(){return k(ot,this)?[{index:k(ct,this),overlayer:k(ot,this).overlayer,doc:k(ot,this).document}]:[]}},{key:"setStyles",value:function(t){var e,n,r=this;x(dt,this,t);var i=k(pt,this).get(null===(e=k(ot,this))||void 0===e?void 0:e.document);if(i){var o=(0,h.A)(i,2),a=o[0],s=o[1];if(Array.isArray(t)){var u=(0,h.A)(t,2),c=u[0],l=u[1];a.textContent=c,s.textContent=l}else s.textContent=t;A(Et,this,_t).call(this),null===(n=k(ot,this))||void 0===n||null===(n=n.document)||void 0===n||null===(n=n.fonts)||void 0===n||null===(n=n.ready)||void 0===n||n.then((function(){return k(ot,r).expand()}))}}},{key:"writingMode",get:function(){var t;return null===(t=k(ot,this))||void 0===t?void 0:t.writingMode}},{key:"destroy",value:function(){var t,e;k(et,this).unobserve(this),k(ot,this).destroy(),x(ot,this,null),null===(t=this.sections[k(ct,this)])||void 0===t||null===(e=t.unload)||void 0===e||e.call(t),k(vt,this).removeEventListener("change",k(gt,this)),k(mt,this)&&(cancelAnimationFrame(k(mt,this)),x(mt,this,null)),x(At,this,null)}}]);var n,r}((0,s.A)(HTMLElement));function _t(){var t,e,n,r,i=null!==(t=this.getAttribute("bgimg-url"))&&void 0!==t?t:"none",o=parseFloat(null!==(e=this.getAttribute("bgimg-blur"))&&void 0!==e?e:"0"),a=parseFloat(null!==(n=this.getAttribute("bgimg-opacity"))&&void 0!==n?n:"1"),s=null!==(r=this.getAttribute("bgimg-fit"))&&void 0!==r?r:"cover";!function(t,e,n,r,i){if(t.style.background=function(t){return"none"===t?"none":"url(".concat(t,")")}(e),t.style.backgroundPosition="center center",t.style.backgroundRepeat="no-repeat",t.style.backgroundAttachment="scroll",t.style.backgroundSize="stretch"===i?"100% 100%":"cover",t.style.filter=n&&n>0?"blur(".concat(n,"px)"):"",t.style.opacity=null!=r?r:1,n&&n>0){var o="".concat(2*n,"px");t.style.margin="-".concat(o),t.style.width="calc(100% + ".concat(o," * 2)"),t.style.height="calc(100% + ".concat(o," * 2)")}else t.style.margin="",t.style.width="",t.style.height=""}(k(rt,this),i,o,a,s)}function Ot(){var t=this;return k(ot,this)&&(k(ot,this).destroy(),k(it,this).removeChild(k(ot,this).element)),x(ot,this,new Q({container:this,onExpand:function(){return t.scrollToAnchor(k(lt,t))}})),k(it,this).append(k(ot,this).element),k(ot,this)}function Mt(t){var e=t.vertical,n=t.rtl;x(at,this,e),x(st,this,n),k(nt,this).classList.toggle("vertical",e),A(Et,this,_t).call(this);var r=k(it,this).getBoundingClientRect(),i=r.width,o=r.height,a=e?o:i,s=getComputedStyle(k(nt,this)),u=parseFloat(s.getPropertyValue("--_column-threshold"))||parseFloat(s.getPropertyValue("--_max-inline-size")),c=parseInt(s.getPropertyValue("--_max-column-count")),l=parseFloat(s.getPropertyValue("--_top-margin"));x(ut,this,l);var f=parseFloat(s.getPropertyValue("--_gap"))/100,h=-f/(f-1)*a,d=parseFloat(s.getPropertyValue("--_top-margin")),p=parseFloat(s.getPropertyValue("--_bottom-margin")),v=this.getAttribute("flow");if("scrolled"===v?(k(it,this).style.overflowX="auto",k(it,this).style.overflowY="auto"):e?(k(it,this).style.overflowX="hidden",k(it,this).style.overflowY="auto"):(k(it,this).style.overflowX="auto",k(it,this).style.overflowY="hidden"),"scrolled"===v){this.setAttribute("dir",e?"rtl":"ltr"),k(nt,this).style.padding="0";var g=u;return this.heads=null,this.feet=null,{flow:v,margin:l,gap:h,columnWidth:g,topMargin:d,bottomMargin:p}}var y=0==c?Math.min(2,Math.ceil(a/u)):c,m=a/y-h;this.setAttribute("dir",n?"rtl":"ltr");var b=e?Math.min(2,Math.ceil(i/u)):y,w=("repeat(".concat(b,", 1fr)"),"".concat(h,"px"),this.bookDir,z(b,"head")),S=z(b,"foot");return this.heads=w.map((function(t){return t.children[0]})),this.feet=S.map((function(t){return t.children[0]})),{height:o,width:i,margin:l,gap:h,columnWidth:m,topMargin:d,bottomMargin:p}}function Ct(t){var e=t.changedTouches[0],n=this.scrollProp;x(bt,this,{x:null==e?void 0:e.screenX,y:null==e?void 0:e.screenY,t:t.timeStamp,vx:0,vy:0,pinched:!1,direction:"none",startTouch:{x:t.touches[0].screenX,y:t.touches[0].screenY},delta:{x:0,y:0},startScroll:k(it,this)[n],startPage:this.page,lockedOffset:null,axis:n}),this.dispatchEvent(new CustomEvent("doctouchstart",{detail:{touch:t.changedTouches[0],touchState:k(bt,this)},bubbles:!0,composed:!0}))}function Lt(t){var e;if(null===(e=window.getSelection())||void 0===e||!e.toString()){var n=t.changedTouches[0],r=k(bt,this);if(r){var i=n.screenX-r.startTouch.x,o=n.screenY-r.startTouch.y,a=Math.abs(i),s=Math.abs(o);r.delta.x=i,r.delta.y=o;var u="horizontal"===r.direction&&s>a,c="vertical"===r.direction&&a>s;if(!(("none"!==r.direction||u&&c)&&a<5&&s<5)){var l;(a>5||s>5)&&"none"===r.direction&&(a>s?r.direction="horizontal":(r.direction="vertical","scrollLeft"===this.scrollProp&&null==r.lockedOffset&&(r.lockedOffset=null!==(l=r.startScroll)&&void 0!==l?l:k(it,this).scrollLeft)));var f=this.scrollProp;r.axis=f;var h="scrollLeft"===f,d="scrollTop"===f,p="horizontal"===r.direction,v="vertical"===r.direction,g=new CustomEvent("doctouchmove",{detail:{touch:n,touchState:r},preventDefault:function(){return t.preventDefault()},bubbles:!0,composed:!0});if(this.dispatchEvent(g),!r.pinched&&(r.pinched=globalThis.visualViewport.scale>1,!r.pinched))if(t.touches.length>1)k(wt,this)&&t.preventDefault();else{var y=t.timeStamp-r.t||16.7,m=r.x-n.screenX,b=r.y-n.screenY;if(r.x=n.screenX,r.y=n.screenY,r.t=t.timeStamp,r.vx=m/y,r.vy=b/y,!this.scrolled){var w;if(v&&h)return t.preventDefault(),null==r.lockedOffset&&(r.lockedOffset=null!==(w=r.startScroll)&&void 0!==w?w:k(it,this).scrollLeft),void(k(it,this).scrollLeft=r.lockedOffset);(v&&d||p&&h)&&x(wt,this,!0)}}}}}}function Rt(t){var e=this,n=k(bt,this);if(this.dispatchEvent(new CustomEvent("doctouchend",{detail:{touch:t.changedTouches[0],touchState:n},bubbles:!0,composed:!0})),x(wt,this,!1),this.scrolled)x(bt,this,null);else if("vertical"===(null==n?void 0:n.direction)&&"scrollLeft"===n.axis&&null!=n.lockedOffset){if(k(it,this).scrollLeft=n.lockedOffset,x(bt,this,null),k(At,this)){var r=k(At,this);x(At,this,null),this.dispatchEvent(new CustomEvent("relocate",{detail:r}))}}else requestAnimationFrame((function(){1===globalThis.visualViewport.scale&&n?Promise.resolve(e.snap(n.vx,n.vy,n)).finally((function(){x(bt,e,null)})):x(bt,e,null)}))}function It(){if(this.scrolled){var t=this.viewSize,e=k(ut,this);return k(at,this)?function(n){var r=n.left,i=n.right;return{left:t-i-e,right:t-r-e}}:function(t){var n=t.top,r=t.bottom;return{left:n+e,right:r+e}}}var n=this.pages*this.size;return k(st,this)?function(t){var e=t.left,r=t.right;return{left:n-r,right:n-e}}:k(at,this)?function(t){return{left:t.top,right:t.bottom}}:function(t){return t}}function Pt(t,e){return jt.apply(this,arguments)}function jt(){return(jt=(0,c.A)(p().mark((function t(e,n){var r,i,o,a,s,u,c,l;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.scrolled){t.next=1;break}return r=A(Et,this,It).call(this)(e).left-k(ut,this),t.abrupt("return",A(Et,this,Ft).call(this,r,n));case 1:return i=A(Et,this,It).call(this)(e),o=i.left,a=Math.floor(o/this.size),s=a*this.size,u=s+this.size,c=Math.min(o+k(ut,this)/2,u-1),l=Math.max(s,c),t.abrupt("return",A(Et,this,Nt).call(this,Math.floor(l/this.size)+(k(st,this)?-1:1),n));case 2:case"end":return t.stop()}}),t,this)})))).apply(this,arguments)}function Ft(t,e,n){return Dt.apply(this,arguments)}function Dt(){return(Dt=(0,c.A)(p().mark((function t(e,n,i){var o,a,s,u,c,l,f,h,d,v,g,y,m=this;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(s=k(it,this),u=this.scrollProp,c=this.size,x(yt,this,!0),l="object"===(0,r.A)(i)&&null!=i?i:{},f=null!==(o=l.animate)&&void 0!==o?o:"snap"===n||!0===i,h=null!==(a=l.easing)&&void 0!==a?a:E,d=function(){A(Et,m,Wt).call(m,n),x(yt,m,!1)},!(Math.abs(s[u]-e)<1)){t.next=1;break}return d(),t.abrupt("return");case 1:if(this.scrolled&&k(at,this)&&(e=-e),!f||!this.hasAttribute("animated")){t.next=2;break}return g=Math.abs(s[u]-e),y=null!==(v=l.duration)&&void 0!==v?v:Math.max(200,Math.min(300,g/(c||1)*250)),x(ft,this,!0),t.abrupt("return",T(s[u],e,y,h,(function(t){return s[u]=t})).then((function(){s[u]=e,d()})).catch((function(){x(yt,m,!1)})));case 2:s[u]=e,d();case 3:case"end":return t.stop()}}),t,this)})))).apply(this,arguments)}function Nt(t,e,n){return Bt.apply(this,arguments)}function Bt(){return(Bt=(0,c.A)(p().mark((function t(e,n,r){var i;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=this.size*(k(st,this)?-e:e),t.abrupt("return",A(Et,this,Ft).call(this,i,n,r));case 1:case"end":return t.stop()}}),t,this)})))).apply(this,arguments)}function zt(){var t=k(ot,this).document.defaultView;if(k(lt,this).startContainer){var e=t.getSelection();e.removeAllRanges(),e.addRange(k(lt,this))}}function Ut(){if(this.scrolled)return N(k(ot,this).document,this.start+k(ut,this),this.end-k(ut,this),A(Et,this,It).call(this));var t=k(st,this)?-this.size:this.size;return N(k(ot,this).document,this.start-t,this.end-t,A(Et,this,It).call(this))}function Wt(t){var e=A(Et,this,Ut).call(this);"anchor"!==t?x(lt,this,e):x(ft,this,!0);var n={reason:t,range:e,index:k(ct,this)};if(this.scrolled)n.fraction=this.start/this.viewSize;else if(this.pages>0){var r=this.page,i=this.pages;n.fraction=(r-1)/(i-2),n.size=1/(i-2)}this.scrolled||"scroll"!==t||!k(bt,this)&&!k(wt,this)?(x(At,this,null),this.dispatchEvent(new CustomEvent("relocate",{detail:n}))):x(At,this,n)}function Ht(){}function qt(t){return Vt.apply(this,arguments)}function Vt(){return(Vt=(0,c.A)(p().mark((function t(e){var n,r,i,o,a,s,u,c,l,f,h=this;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,e;case 1:if(r=t.sent,i=r.index,o=r.src,a=r.anchor,s=r.onLoad,u=r.select,x(ct,this,i),!o){t.next=3;break}return c=A(Et,this,Ot).call(this),l=function(t){if(t.head){var e=t.createElement("style");t.head.prepend(e);var n=t.createElement("style");t.head.append(n),k(pt,h).set(t,[e,n])}null==s||s({doc:t,index:i})},f=A(Et,this,Mt).bind(this),t.next=2,c.load(o,l,f);case 2:this.dispatchEvent(new CustomEvent("create-overlayer",{detail:{doc:c.document,index:i,attach:function(t){return c.overlayer=t}}})),x(ot,this,c);case 3:return t.next=4,this.scrollToAnchor(null!==(n="function"==typeof a?a(k(ot,this).document):a)&&void 0!==n?n:0,u);case 4:case"end":return t.stop()}}),t,this)})))).apply(this,arguments)}function $t(t){return t>=0&&t<=this.sections.length-1}function Gt(t){return Xt.apply(this,arguments)}function Xt(){return(Xt=(0,c.A)(p().mark((function t(e){var n,r,i,o,a,s=this;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.index,r=e.anchor,i=e.select,n!==k(ct,this)){t.next=2;break}return t.next=1,A(Et,this,qt).call(this,{index:n,anchor:r,select:i});case 1:t.next=3;break;case 2:return o=k(ct,this),a=function(t){var e,n;null===(e=s.sections[o])||void 0===e||null===(n=e.unload)||void 0===n||n.call(e),s.setStyles(k(dt,s)),s.dispatchEvent(new CustomEvent("load",{detail:t}))},t.next=3,A(Et,this,qt).call(this,Promise.resolve(this.sections[n].load()).then((function(t){return{index:n,src:t,anchor:r,onLoad:a,select:i}})).catch((function(t){return console.warn(t),console.warn(new Error("Failed to load section ".concat(n))),{}})));case 3:case"end":return t.stop()}}),t,this)})))).apply(this,arguments)}function Yt(t){if(!k(ot,this))return!0;if(this.scrolled)return!(this.start>0)||A(Et,this,Ft).call(this,Math.max(0,this.start-(null!=t?t:this.size)),null,{animate:!0});if(!this.atStart){var e=this.page-1;return A(Et,this,Nt).call(this,e,"page",{animate:!0}).then((function(){return e<=0}))}}function Kt(t){if(!k(ot,this))return!0;if(this.scrolled)return!(this.viewSize-this.end>2)||A(Et,this,Ft).call(this,Math.min(this.viewSize,t?this.start+t:this.end),null,{animate:!0});if(!this.atEnd){var e=this.page+1,n=this.pages;return A(Et,this,Nt).call(this,e,"page",{animate:!0}).then((function(){return e>=n-1}))}}function Jt(t){for(var e=k(ct,this)+t;A(Et,this,$t).call(this,e);e+=t){var n;if("no"!==(null===(n=this.sections[e])||void 0===n?void 0:n.linear))return e}}function Zt(t,e){return Qt.apply(this,arguments)}function Qt(){return(Qt=(0,c.A)(p().mark((function t(e,n){var r,i;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return x(ht,this,!0),r=-1===e,t.next=1,r?A(Et,this,Yt).call(this,n):A(Et,this,Kt).call(this,n);case 1:if(!(i=t.sent)){t.next=2;break}return t.next=2,A(Et,this,Gt).call(this,{index:A(Et,this,Jt).call(this,e),anchor:r?function(){return 1}:function(){return 0}});case 2:if(!i&&this.hasAttribute("animated")){t.next=3;break}return t.next=3,S(100);case 3:x(ht,this,!1);case 4:case"end":return t.stop()}}),t,this)})))).apply(this,arguments)}(0,u.A)(Tt,"observedAttributes",["flow","gap","top-margin","bottom-margin","background-color","max-inline-size","max-block-size","max-column-count","column-threshold","bgimg-url","bgimg-blur","bgimg-opacity","bgimg-fit"]),customElements.define("foliate-paginator",Tt)},57657:function(t,e,n){"use strict";var r,i,o,a=n(79039),s=n(94901),u=n(20034),c=n(2360),l=n(42787),f=n(36840),h=n(78227),d=n(96395),p=h("iterator"),v=!1;[].keys&&("next"in(o=[].keys())?(i=l(l(o)))!==Object.prototype&&(r=i):v=!0),!u(r)||a((function(){var t={};return r[p].call(t)!==t}))?r={}:d&&(r=c(r)),s(r[p])||f(r,p,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:v}},57696:function(t,e,n){"use strict";var r=n(91291),i=n(18014),o=RangeError;t.exports=function(t){if(void 0===t)return 0;var e=r(t),n=i(e);if(e!==n)throw new o("Wrong length or index");return n}},57829:function(t,e,n){"use strict";var r=n(68183).charAt;t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},58004:function(t,e,n){"use strict";var r=n(46518),i=n(79039),o=n(68750);r({target:"Set",proto:!0,real:!0,forced:!n(84916)("intersection",(function(t){return 2===t.size&&t.has(1)&&t.has(2)}))||i((function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))}))},{intersection:o})},58229:function(t,e,n){"use strict";var r=n(99590),i=RangeError;t.exports=function(t,e){var n=r(t);if(n%e)throw new i("Wrong offset");return n}},58242:function(t,e,n){"use strict";var r=n(69565),i=n(97751),o=n(78227),a=n(36840);t.exports=function(){var t=i("Symbol"),e=t&&t.prototype,n=e&&e.valueOf,s=o("toPrimitive");e&&!e[s]&&a(e,s,(function(t){return r(n,this)}),{arity:1})}},58319:function(t){"use strict";var e=Math.round;t.exports=function(t){var n=e(t);return n<0?0:n>255?255:255&n}},58429:function(t,e,n){"use strict";var r=n(79039),i=n(44576).RegExp,o=r((function(){var t=i("a","y");return t.lastIndex=2,null!==t.exec("abcd")})),a=o||r((function(){return!i("a","y").sticky})),s=o||r((function(){var t=i("^r","gy");return t.lastIndex=2,null!==t.exec("str")}));t.exports={BROKEN_CARET:s,MISSED_STICKY:a,UNSUPPORTED_Y:o}},58622:function(t,e,n){"use strict";var r=n(44576),i=n(94901),o=r.WeakMap;t.exports=i(o)&&/native code/.test(String(o))},58934:function(t,e,n){"use strict";var r=n(46518),i=n(53487);r({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==i},{trimLeft:i})},58940:function(t,e,n){"use strict";var r=n(46518),i=n(52703);r({global:!0,forced:parseInt!==i},{parseInt:i})},59089:function(t,e,n){"use strict";var r=n(46518),i=n(79504),o=Date,a=i(o.prototype.getTime);r({target:"Date",stat:!0},{now:function(){return a(new o)}})},59149:function(t,e,n){"use strict";var r=n(46518),i=n(2087),o=Math.abs;r({target:"Number",stat:!0},{isSafeInteger:function(t){return i(t)&&o(t)<=9007199254740991}})},59213:function(t,e,n){"use strict";var r=n(76080),i=n(79504),o=n(47055),a=n(48981),s=n(26198),u=n(1469),c=i([].push),l=function(t){var e=1===t,n=2===t,i=3===t,l=4===t,f=6===t,h=7===t,d=5===t||f;return function(p,v,g,y){for(var m,b,w=a(p),x=o(w),k=s(x),A=r(v,g),S=0,E=y||u,T=e?E(p,k):n||h?E(p,0):void 0;k>S;S++)if((d||S in x)&&(b=A(m=x[S],S,w),t))if(e)T[S]=b;else if(b)switch(t){case 3:return!0;case 5:return m;case 6:return S;case 2:c(T,m)}else switch(t){case 4:return!1;case 7:c(T,m)}return f?-1:i||l?l:T}};t.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}},59225:function(t,e,n){"use strict";var r,i,o,a,s=n(44576),u=n(18745),c=n(76080),l=n(94901),f=n(39297),h=n(79039),d=n(20397),p=n(67680),v=n(4055),g=n(22812),y=n(89544),m=n(38574),b=s.setImmediate,w=s.clearImmediate,x=s.process,k=s.Dispatch,A=s.Function,S=s.MessageChannel,E=s.String,T=0,_={},O="onreadystatechange";h((function(){r=s.location}));var M=function(t){if(f(_,t)){var e=_[t];delete _[t],e()}},C=function(t){return function(){M(t)}},L=function(t){M(t.data)},R=function(t){s.postMessage(E(t),r.protocol+"//"+r.host)};b&&w||(b=function(t){g(arguments.length,1);var e=l(t)?t:A(t),n=p(arguments,1);return _[++T]=function(){u(e,void 0,n)},i(T),T},w=function(t){delete _[t]},m?i=function(t){x.nextTick(C(t))}:k&&k.now?i=function(t){k.now(C(t))}:S&&!y?(a=(o=new S).port2,o.port1.onmessage=L,i=c(a.postMessage,a)):s.addEventListener&&l(s.postMessage)&&!s.importScripts&&r&&"file:"!==r.protocol&&!h(R)?(i=R,s.addEventListener("message",L,!1)):i=O in v("script")?function(t){d.appendChild(v("script"))[O]=function(){d.removeChild(this),M(t)}}:function(t){setTimeout(C(t),0)}),t.exports={set:b,clear:w}},59848:function(t,e,n){"use strict";n(86368),n(29309)},59904:function(t,e,n){"use strict";n(46518)({target:"Object",stat:!0,sham:!n(43724)},{create:n(2360)})},60193:function(t,e,n){"use strict";n(70511)("hasInstance")},60268:function(t,e,n){"use strict";var r=n(46518),i=n(77240);r({target:"String",proto:!0,forced:n(23061)("fontcolor")},{fontcolor:function(t){return i(this,"font","color",t)}})},60479:function(t,e,n){"use strict";n(10687)(Math,"Math",!0)},60511:function(t,e,n){"use strict";var r=n(60788),i=TypeError;t.exports=function(t){if(r(t))throw new i("The method doesn't accept regular expressions");return t}},60533:function(t,e,n){"use strict";var r=n(79504),i=n(18014),o=n(655),a=n(72333),s=n(67750),u=r(a),c=r("".slice),l=Math.ceil,f=function(t){return function(e,n,r){var a,f,h=o(s(e)),d=i(n),p=h.length,v=void 0===r?" ":o(r);return d<=p||""===v?h:((f=u(v,l((a=d-p)/v.length))).length>a&&(f=c(f,0,a)),t?h+f:f+h)}};t.exports={start:f(!1),end:f(!0)}},60605:function(t,e,n){"use strict";n(46518)({target:"Math",stat:!0},{fround:n(15617)})},60706:function(t,e,n){"use strict";var r=n(10350).PROPER,i=n(79039),o=n(47452);t.exports=function(t){return i((function(){return!!o[t]()||"​…᠎"!=="​…᠎"[t]()||r&&o[t].name!==t}))}},60739:function(t,e,n){"use strict";var r=n(46518),i=n(79039),o=n(48981),a=n(72777);r({target:"Date",proto:!0,arity:1,forced:i((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}))},{toJSON:function(t){var e=o(this),n=a(e,"number");return"number"!=typeof n||isFinite(n)?e.toISOString():null}})},60740:function(t,e,n){"use strict";n.r(e),n.d(e,{makeFB2:function(){return T}});var r=n(45458),i=n(10467),o=n(23029),a=n(92901),s=n(80296),u=n(54756),c=n.n(u);function l(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return f(t,e);var n={}.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)?f(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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 o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n img, section > img {\n display: block;\n margin: auto;\n}\n.title h1 {\n text-align: center;\n}\nbody > section > .title, body.notesBodyType > .title {\n margin: 3em 0;\n}\nbody.notesBodyType > section .title h1 {\n text-align: start;\n}\nbody.notesBodyType > section .title {\n margin: 1em 0;\n}\np {\n text-indent: 1em;\n margin: 0;\n}\n:not(p) + p, p:first-child {\n text-indent: 0;\n}\n.poem p {\n text-indent: 0;\n margin: 1em 0;\n}\n.text-author, .date {\n text-align: end;\n}\n.text-author:before {\n content: "—";\n}\ntable {\n border-collapse: collapse;\n}\ntd, th {\n padding: .25em;\n}\na[epub|type~="noteref"] {\n font-size: .75em;\n vertical-align: super;\n}\nbody:not(.notesBodyType) > .title, body:not(.notesBodyType) > .epigraph {\n margin: 3em 0;\n}\n'],{type:"text/css"})),E="data-foliate-id",T=function(){var t=(0,i.A)(c().mark((function t(e){var n,i,o,a,u,f,p,v,y,m,T,_,O;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n={},t.next=1,A(e);case 1:return i=t.sent,o=new k(i),u=function(t){return(0,r.A)(i.querySelectorAll(t))},f=function(t){var e=d(t.querySelector("nickname"));if(e)return e;var n=d(t.querySelector("first-name")),r=d(t.querySelector("middle-name")),i=d(t.querySelector("last-name"));return{name:[n,r,i].filter((function(t){return t})).join(" "),sortAs:i?[i,[n,r].filter((function(t){return t})).join(" ")].join(", "):null}},p=function(t){var e;return null!==(e=null==t?void 0:t.getAttribute("value"))&&void 0!==e?e:d(t)},v=(a=function(t){return i.querySelector(t)})("title-info annotation"),n.metadata={title:d(a("title-info book-title")),identifier:d(a("document-info id")),language:d(a("title-info lang")),author:u("title-info author").map(f),translator:u("title-info translator").map(f),producer:u("document-info author").map(f).concat(u("document-info program-used").map(d)),publisher:d(a("publish-info publisher")),published:p(a("title-info date")),modified:p(a("document-info date")),description:v?o.convert(v,{annotation:["div",b]}).innerHTML:null,subject:u("title-info genre").map(d)},a("coverpage image")?(y=x(a("coverpage image")),n.getCover=function(){return fetch(y).then((function(t){return t.blob()}))}):n.getCover=function(){return null},m=Array.from(i.querySelectorAll("body"),(function(t){var e=o.convert(t,{body:["body",w]});return[Array.from(e.children,(function(t){var e=[t].concat((0,r.A)(t.querySelectorAll("[id]"))).map((function(t){return t.id}));return{el:t,ids:e}})),e]})),T=[],_=m[0][0].map((function(t){var e=t.el;return{ids:t.ids,titles:Array.from(e.querySelectorAll(":scope > section > .title"),(function(t,e){return t.setAttribute(E,e),{title:d(t),index:e}})),el:e}})).concat(m.slice(1).map((function(t){var e=(0,s.A)(t,2),n=e[0],r=e[1],i=n.map((function(t){return t.ids})).flat();return r.classList.add("notesBodyType"),{ids:i,el:r,linear:"no"}}))).map((function(t){var e,n,r,i=t.ids,o=t.titles,a=t.el,s=t.linear,u=(r=a.outerHTML,'\n\n \n ').concat(r,"\n")),c=new Blob([u],{type:g}),l=URL.createObjectURL(c);return T.push(l),{ids:i,title:h(null!==(e=null===(n=a.querySelector(".title, .subtitle, p"))||void 0===n?void 0:n.textContent)&&void 0!==e?e:a.classList.contains("title")?a.textContent:""),titles:o,load:function(){return l},createDocument:function(){return(new DOMParser).parseFromString(u,g)},size:c.size-Array.from(a.querySelectorAll("[src]"),(function(t){var e,n;return null!==(e=null===(n=t.getAttribute("src"))||void 0===n?void 0:n.length)&&void 0!==e?e:0})).reduce((function(t,e){return t+e}),0),linear:s}})),O=new Map,n.sections=_.map((function(t,e){var n,r=t.ids,i=t.load,o=t.createDocument,a=t.size,s=t.linear,u=l(r);try{for(u.s();!(n=u.n()).done;){var c=n.value;c&&O.set(c,e)}}catch(t){u.e(t)}finally{u.f()}return{id:e,load:i,createDocument:o,size:a,linear:s}})),n.toc=_.map((function(t,e){var n=t.title,r=t.titles,i=e.toString();return{label:n,href:i,subitems:null!=r&&r.length?r.map((function(t){var e=t.title,n=t.index;return{label:e,href:"".concat(i,"#").concat(n)}})):null}})).filter((function(t){return t})),n.resolveHref=function(t){var e=t.split("#"),n=(0,s.A)(e,2),r=n[0],i=n[1];return r?{index:Number(r),anchor:function(t){return t.querySelector("[".concat(E,'="').concat(i,'"]'))}}:{index:O.get(i),anchor:function(t){return t.getElementById(i)}}},n.splitTOCHref=function(t){var e,n;return null!==(e=null==t||null===(n=t.split("#"))||void 0===n?void 0:n.map((function(t){return Number(t)})))&&void 0!==e?e:[]},n.getTOCFragment=function(t,e){return t.querySelector("[".concat(E,'="').concat(e,'"]'))},n.destroy=function(){for(var t=0,e=T;tc;)i(r,n=e[c++])&&(~a(l,n)||u(l,n));return l}},61833:function(t,e,n){"use strict";n(70511)("search")},62010:function(t,e,n){"use strict";var r=n(43724),i=n(10350).EXISTS,o=n(79504),a=n(62106),s=Function.prototype,u=o(s.toString),c=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,l=o(c.exec);r&&!i&&a(s,"name",{configurable:!0,get:function(){try{return l(c,u(this))[1]}catch(t){return""}}})},62062:function(t,e,n){"use strict";var r=n(46518),i=n(59213).map;r({target:"Array",proto:!0,forced:!n(70597)("map")},{map:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},62106:function(t,e,n){"use strict";var r=n(50283),i=n(24913);t.exports=function(t,e,n){return n.get&&r(n.get,e,{getter:!0}),n.set&&r(n.set,e,{setter:!0}),i.f(t,e,n)}},62248:function(t,e,n){"use strict";n.d(e,{EL:function(){return I},Lu:function(){return l},RK:function(){return d},UD:function(){return k},Xp:function(){return C},ap:function(){return x},ob:function(){return L},qg:function(){return y},wT:function(){return R},yT:function(){return M}});var r=n(80296),i=n(45458);function o(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return a(t,e);var n={}.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)?a(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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 o,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw o}}}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);nu.index)return 1;if(s.indexu.offset)return 1;if(s.offset=h)return{node:g,offset:h-p};p+=y}}catch(t){v.e(t)}finally{v.f()}},O=function(t,e,n){var r=t.parentNode,i=t.id,a=T(r,n),s=a.findIndex((function(e){return Array.isArray(e)?e.some((function(e){return e===t})):e===t})),u=a[s];if(Array.isArray(u)){var c,l=0,f=o(u);try{for(f.s();!(c=f.n()).done;){var h=c.value;if(h===t){l+=e;break}l+=h.nodeValue.length}}catch(t){f.e(t)}finally{f.f()}e=l}var d={id:i,index:s,offset:e};return(r!==t.ownerDocument.documentElement?O(r,null,n).concat(d):[d]).filter((function(t){return-1!==t.index}))},M=function(t,e){var n=t.startContainer,r=t.startOffset,i=t.endContainer,o=t.endOffset,a=O(n,r,e);return t.collapsed?w([a]):function(t,e){"string"==typeof t&&(t=y(t)),"string"==typeof e&&(e=y(e)),t=x(t),e=x(e,!0);for(var n=t[t.length-1],r=e[e.length-1],i=[],o=[],a=[],s=!0,u=Math.max(n.length,r.length),c=0;c20)throw new l("Incorrect fraction digits");if(w)return y(e,n);var r,i,s,c,x="";if(e<0&&(x="-",e=-e),0===e)i=0,r=m("0",n+1);else{var k=u(e);i=p(k);var A=v(10,i-n),S=g(e/A);2*e>=(2*S+1)*A&&(S+=1),S>=v(10,n+1)&&(S/=10,i+=1),r=f(S)}return 0!==n&&(r=b(r,0,1)+"."+b(r,1)),0===i?(s="+",c="0"):(s=i>0?"+":"-",c=f(d(i))),x+(r+"e")+s+c}})},62529:function(t){"use strict";t.exports=function(t,e){return{value:t,done:e}}},62953:function(t,e,n){"use strict";var r=n(44576),i=n(67400),o=n(79296),a=n(23792),s=n(66699),u=n(10687),c=n(78227)("iterator"),l=a.values,f=function(t,e){if(t){if(t[c]!==l)try{s(t,c,l)}catch(e){t[c]=l}if(u(t,e,!0),i[e])for(var n in a)if(t[n]!==a[n])try{s(t,n,a[n])}catch(e){t[n]=a[n]}}};for(var h in i)f(r[h]&&r[h].prototype,h);f(o,"DOMTokenList")},63463:function(t){"use strict";var e=TypeError;t.exports=function(t){if("string"==typeof t)return t;throw new e("Argument is not a string")}},63548:function(t,e,n){"use strict";var r=n(43724),i=n(62106),o=n(20034),a=n(13925),s=n(48981),u=n(67750),c=Object.getPrototypeOf,l=Object.setPrototypeOf,f=Object.prototype,h="__proto__";if(r&&c&&l&&!(h in f))try{i(f,h,{configurable:!0,get:function(){return c(s(this))},set:function(t){var e=u(this);a(t)&&o(e)&&l(e,t)}})}catch(t){}},63662:function(t,e,n){"use strict";function r(t,e){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},r(t,e)}n.d(e,{A:function(){return r}})},64117:function(t){"use strict";t.exports=function(t){return null==t}},64346:function(t,e,n){"use strict";n(46518)({target:"Array",stat:!0},{isArray:n(34376)})},64444:function(t,e,n){"use strict";var r=n(46518),i=n(77782),o=Math.abs,a=Math.pow;r({target:"Math",stat:!0},{cbrt:function(t){var e=+t;return i(e)*a(o(e),1/3)}})},64449:function(t,e,n){"use strict";var r=n(97080),i=n(94402).has,o=n(25170),a=n(83789),s=n(38469),u=n(40507),c=n(9539);t.exports=function(t){var e=r(this),n=a(t);if(o(e)<=n.size)return!1!==s(e,(function(t){if(n.includes(t))return!1}),!0);var l=n.getIterator();return!1!==u(l,(function(t){if(i(e,t))return c(l,"normal",!1)}))}},64467:function(t,e,n){"use strict";n.d(e,{A:function(){return i}});var r=n(20816);function i(t,e,n){return(e=(0,r.A)(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},64601:function(t,e,n){"use strict";n(46518)({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})},64979:function(t,e,n){"use strict";var r=n(46518),i=n(44576),o=n(97751),a=n(6980),s=n(24913).f,u=n(39297),c=n(90679),l=n(23167),f=n(32603),h=n(55002),d=n(16193),p=n(43724),v=n(96395),g="DOMException",y=o("Error"),m=o(g),b=function(){c(this,w);var t=arguments.length,e=f(t<1?void 0:arguments[0]),n=f(t<2?void 0:arguments[1],"Error"),r=new m(e,n),i=new y(e);return i.name=g,s(r,"stack",a(1,d(i.stack,1))),l(r,this,b),r},w=b.prototype=m.prototype,x="stack"in new y(g),k="stack"in new m(1,2),A=m&&p&&Object.getOwnPropertyDescriptor(i,g),S=!(!A||A.writable&&A.configurable),E=x&&!S&&!k;r({global:!0,constructor:!0,forced:v||E},{DOMException:E?b:m});var T=o(g),_=T.prototype;if(_.constructor!==T)for(var O in v||s(_,"constructor",a(1,T)),h)if(u(h,O)){var M=h[O],C=M.s;u(T,C)||s(T,C,a(6,M.c))}},65070:function(t,e,n){"use strict";var r=n(46518),i=n(53250);r({target:"Math",stat:!0,forced:i!==Math.expm1},{expm1:i})},65213:function(t,e,n){"use strict";var r=n(44576),i=n(79039),o=r.RegExp,a=!i((function(){var t=!0;try{o(".","d")}catch(e){t=!1}var e={},n="",r=t?"dgimsy":"gimsy",i=function(t,r){Object.defineProperty(e,t,{get:function(){return n+=r,!0}})},a={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var s in t&&(a.hasIndices="d"),a)i(s,a[s]);return Object.getOwnPropertyDescriptor(o.prototype,"flags").get.call(e)!==r||n!==r}));t.exports={correct:a}},65746:function(t,e,n){"use strict";var r,i=n(92744),o=n(44576),a=n(79504),s=n(56279),u=n(3451),c=n(16468),l=n(91625),f=n(20034),h=n(91181).enforce,d=n(79039),p=n(58622),v=Object,g=Array.isArray,y=v.isExtensible,m=v.isFrozen,b=v.isSealed,w=v.freeze,x=v.seal,k=!o.ActiveXObject&&"ActiveXObject"in o,A=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},S=c("WeakMap",A,l),E=S.prototype,T=a(E.set);if(p)if(k){r=l.getConstructor(A,"WeakMap",!0),u.enable();var _=a(E.delete),O=a(E.has),M=a(E.get);s(E,{delete:function(t){if(f(t)&&!y(t)){var e=h(this);return e.frozen||(e.frozen=new r),_(this,t)||e.frozen.delete(t)}return _(this,t)},has:function(t){if(f(t)&&!y(t)){var e=h(this);return e.frozen||(e.frozen=new r),O(this,t)||e.frozen.has(t)}return O(this,t)},get:function(t){if(f(t)&&!y(t)){var e=h(this);return e.frozen||(e.frozen=new r),O(this,t)?M(this,t):e.frozen.get(t)}return M(this,t)},set:function(t,e){if(f(t)&&!y(t)){var n=h(this);n.frozen||(n.frozen=new r),O(this,t)?T(this,t,e):n.frozen.set(t,e)}else T(this,t,e);return this}})}else i&&d((function(){var t=w([]);return T(new S,t,1),!m(t)}))&&s(E,{set:function(t,e){var n;return g(t)&&(m(t)?n=w:b(t)&&(n=x)),T(this,t,e),n&&n(t),this}})},66119:function(t,e,n){"use strict";var r=n(25745),i=n(33392),o=r("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},66346:function(t,e,n){"use strict";var r=n(44576),i=n(79504),o=n(43724),a=n(77811),s=n(10350),u=n(66699),c=n(62106),l=n(56279),f=n(79039),h=n(90679),d=n(91291),p=n(18014),v=n(57696),g=n(15617),y=n(88490),m=n(42787),b=n(52967),w=n(84373),x=n(67680),k=n(23167),A=n(77740),S=n(10687),E=n(91181),T=s.PROPER,_=s.CONFIGURABLE,O="ArrayBuffer",M="DataView",C="prototype",L="Wrong index",R=E.getterFor(O),I=E.getterFor(M),P=E.set,j=r[O],F=j,D=F&&F[C],N=r[M],B=N&&N[C],z=Object.prototype,U=r.Array,W=r.RangeError,H=i(w),q=i([].reverse),V=y.pack,$=y.unpack,G=function(t){return[255&t]},X=function(t){return[255&t,t>>8&255]},Y=function(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]},K=function(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]},J=function(t){return V(g(t),23,4)},Z=function(t){return V(t,52,8)},Q=function(t,e,n){c(t[C],e,{configurable:!0,get:function(){return n(this)[e]}})},tt=function(t,e,n,r){var i=I(t),o=v(n),a=!!r;if(o+e>i.byteLength)throw new W(L);var s=i.bytes,u=o+i.byteOffset,c=x(s,u,u+e);return a?c:q(c)},et=function(t,e,n,r,i,o){var a=I(t),s=v(n),u=r(+i),c=!!o;if(s+e>a.byteLength)throw new W(L);for(var l=a.bytes,f=s+a.byteOffset,h=0;h>24)},setUint8:function(t,e){it(this,t,e<<24>>24)}},{unsafe:!0})}else D=(F=function(t){h(this,D);var e=v(t);P(this,{type:O,bytes:H(U(e),0),byteLength:e}),o||(this.byteLength=e,this.detached=!1)})[C],B=(N=function(t,e,n){h(this,B),h(t,D);var r=R(t),i=r.byteLength,a=d(e);if(a<0||a>i)throw new W("Wrong offset");if(a+(n=void 0===n?i-a:p(n))>i)throw new W("Wrong length");P(this,{type:M,buffer:t,byteLength:n,byteOffset:a,bytes:r.bytes}),o||(this.buffer=t,this.byteLength=n,this.byteOffset=a)})[C],o&&(Q(F,"byteLength",R),Q(N,"buffer",I),Q(N,"byteLength",I),Q(N,"byteOffset",I)),l(B,{getInt8:function(t){return tt(this,1,t)[0]<<24>>24},getUint8:function(t){return tt(this,1,t)[0]},getInt16:function(t){var e=tt(this,2,t,arguments.length>1&&arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=tt(this,2,t,arguments.length>1&&arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return K(tt(this,4,t,arguments.length>1&&arguments[1]))},getUint32:function(t){return K(tt(this,4,t,arguments.length>1&&arguments[1]))>>>0},getFloat32:function(t){return $(tt(this,4,t,arguments.length>1&&arguments[1]),23)},getFloat64:function(t){return $(tt(this,8,t,arguments.length>1&&arguments[1]),52)},setInt8:function(t,e){et(this,1,t,G,e)},setUint8:function(t,e){et(this,1,t,G,e)},setInt16:function(t,e){et(this,2,t,X,e,arguments.length>2&&arguments[2])},setUint16:function(t,e){et(this,2,t,X,e,arguments.length>2&&arguments[2])},setInt32:function(t,e){et(this,4,t,Y,e,arguments.length>2&&arguments[2])},setUint32:function(t,e){et(this,4,t,Y,e,arguments.length>2&&arguments[2])},setFloat32:function(t,e){et(this,4,t,J,e,arguments.length>2&&arguments[2])},setFloat64:function(t,e){et(this,8,t,Z,e,arguments.length>2&&arguments[2])}});S(F,O),S(N,M),t.exports={ArrayBuffer:F,DataView:N}},66412:function(t,e,n){"use strict";n(70511)("asyncIterator")},66651:function(t,e,n){"use strict";var r=n(94644),i=n(19617).indexOf,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("indexOf",(function(t){return i(o(this),t,arguments.length>1?arguments[1]:void 0)}))},66699:function(t,e,n){"use strict";var r=n(43724),i=n(24913),o=n(6980);t.exports=r?function(t,e,n){return i.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},66812:function(t,e,n){"use strict";var r=n(94644),i=n(18745),o=n(8379),a=r.aTypedArray;(0,r.exportTypedArrayMethod)("lastIndexOf",(function(t){var e=arguments.length;return i(o,a(this),e>1?[t,arguments[1]]:[t])}))},66933:function(t,e,n){"use strict";var r=n(79504),i=n(34376),o=n(94901),a=n(22195),s=n(655),u=r([].push);t.exports=function(t){if(o(t))return t;if(i(t)){for(var e=t.length,n=[],r=0;r=0?r:n+r;return i<0||i>=n?void 0:c(e,i)}})},67394:function(t,e,n){"use strict";var r=n(44576),i=n(46706),o=n(22195),a=r.ArrayBuffer,s=r.TypeError;t.exports=a&&i(a.prototype,"byteLength","get")||function(t){if("ArrayBuffer"!==o(t))throw new s("ArrayBuffer expected");return t.byteLength}},67400:function(t){"use strict";t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},67416:function(t,e,n){"use strict";var r=n(79039),i=n(78227),o=n(43724),a=n(96395),s=i("iterator");t.exports=!r((function(){var t=new URL("b?a=1&b=2&c=3","https://a"),e=t.searchParams,n=new URLSearchParams("a=1&a=2&b=3"),r="";return t.pathname="c%20d",e.forEach((function(t,n){e.delete("b"),r+=n+t})),n.delete("a",2),n.delete("b",void 0),a&&(!t.toJSON||!n.has("a",1)||n.has("a",2)||!n.has("a",void 0)||n.has("b"))||!e.size&&(a||!o)||!e.sort||"https://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[s]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("https://тест").host||"#%D0%B1"!==new URL("https://a#б").hash||"a1c3"!==r||"x"!==new URL("https://x",void 0).host}))},67438:function(t,e,n){"use strict";var r=n(46518),i=n(69565),o=n(79504),a=n(67750),s=n(655),u=n(79039),c=Array,l=o("".charAt),f=o("".charCodeAt),h=o([].join),d="".toWellFormed,p=d&&u((function(){return"1"!==i(d,1)}));r({target:"String",proto:!0,forced:p},{toWellFormed:function(){var t=s(a(this));if(p)return i(d,t);for(var e=t.length,n=c(e),r=0;r=56320||r+1>=e||56320!=(64512&f(t,r+1))?n[r]="�":(n[r]=l(t,r),n[++r]=l(t,r))}return h(n,"")}})},67680:function(t,e,n){"use strict";var r=n(79504);t.exports=r([].slice)},67750:function(t,e,n){"use strict";var r=n(64117),i=TypeError;t.exports=function(t){if(r(t))throw new i("Can't call method on "+t);return t}},67787:function(t){"use strict";var e=Math.log,n=Math.LN2;t.exports=Math.log2||function(t){return e(t)/n}},67945:function(t,e,n){"use strict";var r=n(46518),i=n(43724),o=n(96801).f;r({target:"Object",stat:!0,forced:Object.defineProperties!==o,sham:!i},{defineProperties:o})},67947:function(t,e,n){"use strict";n(70511)("species")},67979:function(t,e,n){"use strict";var r=n(28551);t.exports=function(){var t=r(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e}},68156:function(t,e,n){"use strict";var r=n(46518),i=n(60533).start;r({target:"String",proto:!0,forced:n(83063)},{padStart:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},68183:function(t,e,n){"use strict";var r=n(79504),i=n(91291),o=n(655),a=n(67750),s=r("".charAt),u=r("".charCodeAt),c=r("".slice),l=function(t){return function(e,n){var r,l,f=o(a(e)),h=i(n),d=f.length;return h<0||h>=d?t?"":void 0:(r=u(f,h))<55296||r>56319||h+1===d||(l=u(f,h+1))<56320||l>57343?t?s(f,h):r:t?c(f,h,h+2):l-56320+(r-55296<<10)+65536}};t.exports={codeAt:l(!1),charAt:l(!0)}},68750:function(t,e,n){"use strict";var r=n(97080),i=n(94402),o=n(25170),a=n(83789),s=n(38469),u=n(40507),c=i.Set,l=i.add,f=i.has;t.exports=function(t){var e=r(this),n=a(t),i=new c;return o(e)>n.size?u(n.getIterator(),(function(t){f(e,t)&&l(i,t)})):s(e,(function(t){n.includes(t)&&l(i,t)})),i}},69085:function(t,e,n){"use strict";var r=n(46518),i=n(44213);r({target:"Object",stat:!0,arity:2,forced:Object.assign!==i},{assign:i})},69479:function(t,e,n){"use strict";var r=n(43724),i=n(62106),o=n(65213),a=n(67979);r&&!o.correct&&(i(RegExp.prototype,"flags",{configurable:!0,get:a}),o.correct=!0)},69539:function(t,e,n){"use strict";var r=n(94644),i=n(59213).filter,o=n(29948),a=r.aTypedArray;(0,r.exportTypedArrayMethod)("filter",(function(t){var e=i(a(this),t,arguments.length>1?arguments[1]:void 0);return o(this,e)}))},69546:function(t,e,n){"use strict";var r=n(46518),i=n(77240);r({target:"String",proto:!0,forced:n(23061)("fontsize")},{fontsize:function(t){return i(this,"font","size",t)}})},69565:function(t,e,n){"use strict";var r=n(40616),i=Function.prototype.call;t.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},70081:function(t,e,n){"use strict";var r=n(69565),i=n(79306),o=n(28551),a=n(16823),s=n(50851),u=TypeError;t.exports=function(t,e){var n=arguments.length<2?s(t):e;if(i(n))return o(r(n,t));throw new u(a(t)+" is not iterable")}},70259:function(t,e,n){"use strict";var r=n(34376),i=n(26198),o=n(96837),a=n(76080),s=function(t,e,n,u,c,l,f,h){for(var d,p,v=c,g=0,y=!!f&&a(f,h);g0&&r(d)?(p=i(d),v=s(t,e,d,p,v,l-1)-1):(o(v+1),t[v]=d),v++),g++;return v};t.exports=s},70380:function(t,e,n){"use strict";var r=n(79504),i=n(79039),o=n(60533).start,a=RangeError,s=isFinite,u=Math.abs,c=Date.prototype,l=c.toISOString,f=r(c.getTime),h=r(c.getUTCDate),d=r(c.getUTCFullYear),p=r(c.getUTCHours),v=r(c.getUTCMilliseconds),g=r(c.getUTCMinutes),y=r(c.getUTCMonth),m=r(c.getUTCSeconds);t.exports=i((function(){return"0385-07-25T07:06:39.999Z"!==l.call(new Date(-50000000000001))}))||!i((function(){l.call(new Date(NaN))}))?function(){if(!s(f(this)))throw new a("Invalid time value");var t=this,e=d(t),n=v(t),r=e<0?"-":e>9999?"+":"";return r+o(u(e),r?6:4,0)+"-"+o(y(t)+1,2,0)+"-"+o(h(t),2,0)+"T"+o(p(t),2,0)+":"+o(g(t),2,0)+":"+o(m(t),2,0)+"."+o(n,3,0)+"Z"}:l},70511:function(t,e,n){"use strict";var r=n(19167),i=n(39297),o=n(1951),a=n(24913).f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});i(e,t)||a(e,t,{value:o.f(t)})}},70597:function(t,e,n){"use strict";var r=n(79039),i=n(78227),o=n(39519),a=i("species");t.exports=function(t){return o>=51||!r((function(){var e=[];return(e.constructor={})[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},70761:function(t,e,n){"use strict";n(46518)({target:"Math",stat:!0},{trunc:n(80741)})},71072:function(t,e,n){"use strict";var r=n(61828),i=n(88727);t.exports=Object.keys||function(t){return r(t,i)}},71137:function(t,e,n){"use strict";n(46518)({target:"Reflect",stat:!0},{ownKeys:n(35031)})},71658:function(t,e,n){"use strict";var r=n(46518),i=n(6469),o=n(96837),a=n(26198),s=n(35610),u=n(25397),c=n(91291),l=Array,f=Math.max,h=Math.min;r({target:"Array",proto:!0},{toSpliced:function(t,e){var n,r,i,d,p=u(this),v=a(p),g=s(t,v),y=arguments.length,m=0;for(0===y?n=r=0:1===y?(n=0,r=v-g):(n=y-2,r=h(f(c(e),0),v-g)),i=o(v+n-r),d=l(i);m1&&!d(arguments[1])?y(arguments[1]):void 0,i=r?r.transfer:void 0;void 0!==i&&(n=function(t,e){if(!p(t))throw new j("Transfer option cannot be converted to a sequence");var n=[];g(t,(function(t){$(n,y(t))}));for(var r,i,o,s,u,c=0,l=k(n),d=new W;c>>16)*a+o*(n&i>>>16)<<16>>>0)}})},72170:function(t,e,n){"use strict";var r=n(94644),i=n(59213).every,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("every",(function(t){return i(o(this),t,arguments.length>1?arguments[1]:void 0)}))},72248:function(t,e,n){"use strict";var r=n(79504),i=Map.prototype;t.exports={Map:Map,set:r(i.set),get:r(i.get),has:r(i.has),remove:r(i.delete),proto:i}},72333:function(t,e,n){"use strict";var r=n(91291),i=n(655),o=n(67750),a=RangeError;t.exports=function(t){var e=i(o(this)),n="",s=r(t);if(s<0||s===1/0)throw new a("Wrong number of repetitions");for(;s>0;(s>>>=1)&&(e+=e))1&s&&(n+=e);return n}},72652:function(t,e,n){"use strict";var r=n(76080),i=n(69565),o=n(28551),a=n(16823),s=n(44209),u=n(26198),c=n(1625),l=n(70081),f=n(50851),h=n(9539),d=TypeError,p=function(t,e){this.stopped=t,this.result=e},v=p.prototype;t.exports=function(t,e,n){var g,y,m,b,w,x,k,A=n&&n.that,S=!(!n||!n.AS_ENTRIES),E=!(!n||!n.IS_RECORD),T=!(!n||!n.IS_ITERATOR),_=!(!n||!n.INTERRUPTED),O=r(e,A),M=function(t){return g&&h(g,"normal"),new p(!0,t)},C=function(t){return S?(o(t),_?O(t[0],t[1],M):O(t[0],t[1])):_?O(t,M):O(t)};if(E)g=t.iterator;else if(T)g=t;else{if(!(y=f(t)))throw new d(a(t)+" is not iterable");if(s(y)){for(m=0,b=u(t);b>m;m++)if((w=C(t[m]))&&c(v,w))return w;return new p(!1)}g=l(t,y)}for(x=E?t.next:g.next;!(k=i(x,g)).done;){try{w=C(k.value)}catch(t){h(g,"throw",t)}if("object"==typeof w&&w&&c(v,w))return w}return new p(!1)}},72712:function(t,e,n){"use strict";var r=n(46518),i=n(80926).left,o=n(34598),a=n(39519);r({target:"Array",proto:!0,forced:!n(38574)&&a>79&&a<83||!o("reduce")},{reduce:function(t){var e=arguments.length;return i(this,t,e,e>1?arguments[1]:void 0)}})},72777:function(t,e,n){"use strict";var r=n(69565),i=n(20034),o=n(10757),a=n(55966),s=n(84270),u=n(78227),c=TypeError,l=u("toPrimitive");t.exports=function(t,e){if(!i(t)||o(t))return t;var n,u=a(t,l);if(u){if(void 0===e&&(e="default"),n=r(u,t,e),!i(n)||o(n))return n;throw new c("Can't convert object to primitive value")}return void 0===e&&(e="number"),s(t,e)}},72805:function(t,e,n){"use strict";var r=n(44576),i=n(79039),o=n(84428),a=n(94644).NATIVE_ARRAY_BUFFER_VIEWS,s=r.ArrayBuffer,u=r.Int8Array;t.exports=!a||!i((function(){u(1)}))||!i((function(){new u(-1)}))||!o((function(t){new u,new u(null),new u(1.5),new u(t)}),!0)||i((function(){return 1!==new u(new s(2),1,void 0).length}))},73506:function(t,e,n){"use strict";var r=n(13925),i=String,o=TypeError;t.exports=function(t){if(r(t))return t;throw new o("Can't set "+i(t)+" as a prototype")}},73738:function(t){function e(n){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},73772:function(t,e,n){"use strict";n(65746)},74423:function(t,e,n){"use strict";var r=n(46518),i=n(19617).includes,o=n(79039),a=n(6469);r({target:"Array",proto:!0,forced:o((function(){return!Array(1).includes()}))},{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),a("includes")},74488:function(t,e,n){"use strict";var r=n(67680),i=Math.floor,o=function(t,e){var n=t.length;if(n<8)for(var a,s,u=1;u0;)t[s]=t[--s];s!==u++&&(t[s]=a)}else for(var c=i(n/2),l=o(r(t,0,c),e),f=o(r(t,c),e),h=l.length,d=f.length,p=0,v=0;p1?arguments[1]:void 0,e>2?arguments[2]:void 0)}),c((function(){var t=0;return new Int8Array(2).fill({valueOf:function(){return t++}}),1!==t})))},75376:function(t,e,n){"use strict";n(46518)({target:"Math",stat:!0},{log10:n(49340)})},75546:function(t){function e(n,r,i,o){var a=Object.defineProperty;try{a({},"",{})}catch(n){a=0}t.exports=e=function(t,n,r,i){if(n)a?a(t,n,{value:r,enumerable:!i,configurable:!i,writable:!i}):t[n]=r;else{var o=function(n,r){e(t,n,(function(t){return this._invoke(n,r,t)}))};o("next",0),o("throw",1),o("return",2)}},t.exports.__esModule=!0,t.exports.default=t.exports,e(n,r,i,o)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},75854:function(t,e,n){"use strict";var r=n(72777),i=TypeError;t.exports=function(t){var e=r(t,"number");if("number"==typeof e)throw new i("Can't convert number to bigint");return BigInt(e)}},76031:function(t,e,n){"use strict";n(15575),n(24599)},76080:function(t,e,n){"use strict";var r=n(27476),i=n(79306),o=n(40616),a=r(r.bind);t.exports=function(t,e){return i(t),void 0===e?t:o?a(t,e):function(){return t.apply(e,arguments)}}},76382:function(t,e,n){"use strict";var r=n(69565),i=n(36840),o=n(55966),a=n(39297),s=n(78227),u=n(57657).IteratorPrototype,c=s("dispose");a(u,c)||i(u,c,(function(){var t=o(this,"return");t&&r(t,this)}))},76918:function(t,e,n){"use strict";var r=n(36840),i=n(77536),o=Error.prototype;o.toString!==i&&r(o,"toString",i)},76973:function(t,e,n){"use strict";n.r(e),n.d(e,{makeComicBook:function(){return u}});var r=n(10467),i=n(54756),o=n.n(i);function a(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return s(t,e);var n={}.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)?s(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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 o,a=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw o}}}}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n')],{type:"text/html"})),c.set(e,[n,r]),u.set(e,r),t.abrupt("return",r);case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),f=[".jpg",".jpeg",".png",".gif",".bmp",".webp",".svg",".jxl",".avif"],h=n.map((function(t){return t.filename})).filter((function(t){return f.some((function(e){return t.endsWith(e)}))})).sort();if(!h.length)throw new Error("No supported image files in archive");var d={getCover:function(){return i(h[0])}};return d.metadata={title:e.name},d.sections=h.map((function(t){return{id:t,load:function(){return l(t)},unload:function(){return function(t){var e,n;null===(e=c.get(t))||void 0===e||null===(n=e.forEach)||void 0===n||n.call(e,(function(t){return URL.revokeObjectURL(t)})),c.delete(t),u.delete(t)}(t)},size:s(t)}})),d.toc=h.map((function(t){return{label:t,href:t}})),d.rendition={layout:"pre-paginated"},d.resolveHref=function(t){return{index:d.sections.findIndex((function(e){return e.id===t}))}},d.splitTOCHref=function(t){return[t,null]},d.getTOCFragment=function(t){return t.documentElement},d.destroy=function(){var t,e=a(c.values());try{for(e.s();!(t=e.n()).done;){var n,r=a(t.value);try{for(r.s();!(n=r.n()).done;){var i=n.value;URL.revokeObjectURL(i)}}catch(t){r.e(t)}finally{r.f()}}}catch(t){e.e(t)}finally{e.f()}},d}},77240:function(t,e,n){"use strict";var r=n(79504),i=n(67750),o=n(655),a=/"/g,s=r("".replace);t.exports=function(t,e,n,r){var u=o(i(t)),c="<"+e;return""!==n&&(c+=" "+n+'="'+s(o(r),a,""")+'"'),c+">"+u+""}},77347:function(t,e,n){"use strict";var r=n(43724),i=n(69565),o=n(48773),a=n(6980),s=n(25397),u=n(56969),c=n(39297),l=n(35917),f=Object.getOwnPropertyDescriptor;e.f=r?f:function(t,e){if(t=s(t),e=u(e),l)try{return f(t,e)}catch(t){}if(c(t,e))return a(!i(o.f,t,e),t[e])}},77536:function(t,e,n){"use strict";var r=n(43724),i=n(79039),o=n(28551),a=n(32603),s=Error.prototype.toString,u=i((function(){if(r){var t=Object.create(Object.defineProperty({},"name",{get:function(){return this===t}}));if("true"!==s.call(t))return!0}return"2: 1"!==s.call({message:1,name:2})||"Error"!==s.call({})}));t.exports=u?function(){var t=o(this),e=a(t.name,"Error"),n=a(t.message);return e?n?e+": "+n:e:n}:s},77584:function(t,e,n){"use strict";var r=n(20034),i=n(66699);t.exports=function(t,e){r(e)&&"cause"in e&&i(t,"cause",e.cause)}},77629:function(t,e,n){"use strict";var r=n(96395),i=n(44576),o=n(39433),a="__core-js_shared__",s=t.exports=i[a]||o(a,{});(s.versions||(s.versions=[])).push({version:"3.43.0",mode:r?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.43.0/LICENSE",source:"https://github.com/zloirock/core-js"})},77691:function(t,e,n){"use strict";var r=n(46518),i=n(97751),o=n(79504),a=n(79306),s=n(67750),u=n(56969),c=n(72652),l=n(79039),f=Object.groupBy,h=i("Object","create"),d=o([].push);r({target:"Object",stat:!0,forced:!f||l((function(){return 1!==f("ab",(function(t){return t})).a.length}))},{groupBy:function(t,e){s(t),a(e);var n=h(null),r=0;return c(t,(function(t){var i=u(e(t,r++));i in n?d(n[i],t):n[i]=[t]})),n}})},77740:function(t,e,n){"use strict";var r=n(39297),i=n(35031),o=n(77347),a=n(24913);t.exports=function(t,e,n){for(var s=i(e),u=a.f,c=o.f,l=0;l1?arguments[1]:void 0),e}})},78459:function(t,e,n){"use strict";var r=n(46518),i=n(33904);r({global:!0,forced:parseFloat!==i},{parseFloat:i})},78553:function(t,e,n){"use strict";var r=n(46518),i=n(79039),o=n(53250),a=Math.abs,s=Math.exp,u=Math.E;r({target:"Math",stat:!0,forced:i((function(){return-2e-17!==Math.sinh(-2e-17)}))},{sinh:function(t){var e=+t;return a(e)<1?(o(e)-o(-e))/2:(s(e-1)-s(-e-1))*(u/2)}})},79039:function(t){"use strict";t.exports=function(t){try{return!!t()}catch(t){return!0}}},79296:function(t,e,n){"use strict";var r=n(4055)("span").classList,i=r&&r.constructor&&r.constructor.prototype;t.exports=i===Object.prototype?void 0:i},79306:function(t,e,n){"use strict";var r=n(94901),i=n(16823),o=TypeError;t.exports=function(t){if(r(t))return t;throw new o(i(t)+" is not a function")}},79432:function(t,e,n){"use strict";var r=n(46518),i=n(48981),o=n(71072);r({target:"Object",stat:!0,forced:n(79039)((function(){o(1)}))},{keys:function(t){return o(i(t))}})},79472:function(t,e,n){"use strict";var r,i=n(44576),o=n(18745),a=n(94901),s=n(84215),u=n(82839),c=n(67680),l=n(22812),f=i.Function,h=/MSIE .\./.test(u)||"BUN"===s&&((r=i.Bun.version.split(".")).length<3||"0"===r[0]&&(r[1]<3||"3"===r[1]&&"0"===r[2]));t.exports=function(t,e){var n=e?2:1;return h?function(r,i){var s=l(arguments.length,1)>n,u=a(r)?r:f(r),h=s?c(arguments,n):[],d=s?function(){o(u,this,h)}:u;return e?t(d,i):t(d)}:t}},79504:function(t,e,n){"use strict";var r=n(40616),i=Function.prototype,o=i.call,a=r&&i.bind.bind(o,o);t.exports=r?a:function(t){return function(){return o.apply(t,arguments)}}},79570:function(t,e,n){"use strict";n.d(e,{u:function(){return f}});var r=n(54756),i=n.n(r);function o(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return a(t,e);var n={}.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)?a(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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 o,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw o}}}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n0)break}return n},u=function(t,e){for(var n=[],r=e.nextNode();r;r=e.nextNode())n.push(r);return n},c=NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT|NodeFilter.SHOW_CDATA_SECTION,l=function(t){if(1===t.nodeType){var e=t.tagName.toLowerCase();return"script"===e||"style"===e||t.classList&&t.classList.contains("translated-text")?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_SKIP}return NodeFilter.FILTER_ACCEPT},f=i().mark((function t(e,n){var r,a,f,h,d,p,v,g,y,m,b;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:f=null!==(r=null!==(a=e.commonAncestorContainer)&&void 0!==a?a:e.body)&&void 0!==r?r:e,h=document.createTreeWalker(f,c,{acceptNode:l}),d=e.commonAncestorContainer?s:u,p=d(e,h),v=p.map((function(t){return t.nodeValue})),g=o(n(v,(function(t,e,n,r){var i=document.createRange();return i.setStart(p[t],e),i.setEnd(p[n],r),i}))),t.prev=1,g.s();case 2:if((y=g.n()).done){t.next=4;break}return m=y.value,t.next=3,m;case 3:t.next=2;break;case 4:t.next=6;break;case 5:t.prev=5,b=t.catch(1),g.e(b);case 6:return t.prev=6,g.f(),t.finish(6);case 7:case"end":return t.stop()}}),t,null,[[1,5,6,7]])}))},79577:function(t,e,n){"use strict";var r=n(39928),i=n(94644),o=n(18727),a=n(91291),s=n(75854),u=i.aTypedArray,c=i.getTypedArrayConstructor,l=i.exportTypedArrayMethod,f=function(){try{new Int8Array(1).with(2,{valueOf:function(){throw 8}})}catch(t){return 8===t}}(),h=f&&function(){try{new Int8Array(1).with(-.5,1)}catch(t){return!0}}();l("with",{with:function(t,e){var n=u(this),i=a(t),l=o(n)?s(e):+e;return r(n,c(n),i,l)}}.with,!f||h)},79739:function(t,e,n){"use strict";var r=n(97751),i="DOMException";n(10687)(r(i),i)},79978:function(t,e,n){"use strict";var r=n(46518),i=n(69565),o=n(79504),a=n(67750),s=n(94901),u=n(20034),c=n(60788),l=n(655),f=n(55966),h=n(61034),d=n(2478),p=n(78227),v=n(96395),g=p("replace"),y=TypeError,m=o("".indexOf),b=o("".replace),w=o("".slice),x=Math.max;r({target:"String",proto:!0},{replaceAll:function(t,e){var n,r,o,p,k,A,S,E,T,_,O=a(this),M=0,C="";if(u(t)){if((n=c(t))&&(r=l(a(h(t))),!~m(r,"g")))throw new y("`.replaceAll` does not allow non-global regexes");if(o=f(t,g))return i(o,t,O,e);if(v&&n)return b(l(O),t,e)}for(p=l(O),k=l(t),(A=s(e))||(e=l(e)),S=k.length,E=x(1,S),T=m(p,k);-1!==T;)_=A?l(e(k,T,p)):d(k,p,T,[],void 0,e),C+=w(p,M,T)+_,M=T+S,T=T+E>p.length?-1:m(p,k,T+E);return M0?n:e)(r)}},80747:function(t,e,n){"use strict";var r=n(66699),i=n(16193),o=n(24659),a=Error.captureStackTrace;t.exports=function(t,e,n,s){o&&(a?a(t,e):r(t,"stack",i(n,s)))}},80823:function(t,e,n){"use strict";n.r(e),n.d(e,{FixedLayout:function(){return R}});var r=n(10467),i=n(23029),o=n(92901),a=n(56822),s=n(53954),u=n(85501),c=n(28614),l=n(64467),f=n(80296),h=n(54756),d=n.n(h);function p(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(p=function(){return!!t})()}function v(t,e,n){g(t,e),e.set(t,n)}function g(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function y(t,e,n){return t.set(b(t,e),n),n}function m(t,e){return t.get(b(t,e))}function b(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}var w=function(t){var e;return null==t||null===(e=t.split(/[,;\s]/))||void 0===e||null===(e=e.filter((function(t){return t})))||void 0===e?void 0:e.map((function(t){return t.split("=").map((function(t){return t.trim()}))}))},x=function(t,e){var n;if("svg"===t.documentElement.localName){var r,i,o=null!==(r=null===(i=t.documentElement.getAttribute("viewBox"))||void 0===i?void 0:i.split(/\s/))&&void 0!==r?r:[],a=(0,f.A)(o,4);return{width:a[2],height:a[3]}}var s=w(null===(n=t.querySelector('meta[name="viewport"]'))||void 0===n?void 0:n.getAttribute("content"));if(s)return Object.fromEntries(s);if("string"==typeof e)return w(e);if(e)return e;var u=t.querySelector("img");return u?{width:u.naturalWidth,height:u.naturalHeight}:(console.warn(new Error("Missing viewport properties")),{width:1e3,height:2e3})},k=new WeakMap,A=new WeakMap,S=new WeakMap,E=new WeakMap,T=new WeakMap,_=new WeakMap,O=new WeakMap,M=new WeakMap,C=new WeakMap,L=new WeakSet,R=function(t){function e(){var t,n,r,o;(0,i.A)(this,e),n=this,r=e,r=(0,s.A)(r),function(t,e){g(t,e),e.add(t)}(t=(0,a.A)(n,p()?Reflect.construct(r,[],(0,s.A)(n).constructor):r.apply(n,o)),L),v(t,k,t.attachShadow({mode:"closed"})),v(t,A,new ResizeObserver((function(){return b(L,t,j).call(t)}))),v(t,S,void 0),v(t,E,-1),(0,l.A)(t,"defaultViewport",void 0),(0,l.A)(t,"spread",void 0),v(t,T,!1),v(t,_,void 0),v(t,O,void 0),v(t,M,void 0),v(t,C,void 0);var u=new CSSStyleSheet;return m(k,t).adoptedStyleSheets=[u],u.replaceSync(":host {\n width: 100%;\n height: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n }"),m(A,t).observe(t),t}return(0,u.A)(e,t),(0,o.A)(e,[{key:"open",value:function(t){this.book=t;var e=t.rendition;this.spread=null==e?void 0:e.spread,this.defaultViewport=null==e?void 0:e.viewport;var n="rtl"===t.dir,r=!n;this.rtl=n,"none"===(null==e?void 0:e.spread)?y(S,this,t.sections.map((function(t){return{center:t}}))):y(S,this,t.sections.reduce((function(t,e){var i=t[t.length-1],o=e.linear,a=e.pageSpread;if("no"===o)return t;var s=function(){var e={};return t.push(e),e};return"center"===a?(i.left||i.right?s():i).center=e:"left"===a?(i.center||i.left||r?s():i).left=e:"right"===a?(i.center||i.right||n?s():i).right=e:r?i.center||i.right?s().left=e:i.left?i.right=e:i.left=e:i.center||i.left?s().right=e:i.right?i.left=e:i.right=e,t}),[{}]))}},{key:"index",get:function(){var t,e,n,r=m(S,this)[m(E,this)],i=null!==(t=null==r?void 0:r.center)&&void 0!==t?t:"left"===this.side?null!==(e=r.left)&&void 0!==e?e:r.right:null!==(n=r.right)&&void 0!==n?n:r.left;return this.book.sections.indexOf(i)}},{key:"getSpreadOf",value:function(t){for(var e=m(S,this),n=0;nm(S,this).length-1)){t.next=1;break}return t.abrupt("return");case 1:if(e!==m(E,this)){t.next=2;break}return b(L,this,j).call(this,n),t.abrupt("return");case 2:if(y(E,this,e),!(i=m(S,this)[e]).center){t.next=5;break}return s=this.book.sections.indexOf(i.center),t.next=3,null===(o=i.center)||void 0===o||null===(a=o.load)||void 0===a?void 0:a.call(o);case 3:return u=t.sent,t.next=4,b(L,this,F).call(this,{center:{index:s,src:u}});case 4:t.next=8;break;case 5:return p=this.book.sections.indexOf(i.left),v=this.book.sections.indexOf(i.right),t.next=6,null===(c=i.left)||void 0===c||null===(l=c.load)||void 0===l?void 0:l.call(c);case 6:return g=t.sent,t.next=7,null===(f=i.right)||void 0===f||null===(h=f.load)||void 0===h?void 0:h.call(f);case 7:return w=t.sent,x={index:p,src:g},k={index:v,src:w},t.next=8,b(L,this,F).call(this,{left:x,right:k,side:n});case 8:b(L,this,z).call(this,r);case 9:case"end":return t.stop()}}),t,this)}))),function(t,e,n){return w.apply(this,arguments)})},{key:"select",value:(h=(0,r.A)(d().mark((function t(e){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,this.goTo(e);case 1:case"end":return t.stop()}}),t,this)}))),function(t){return h.apply(this,arguments)})},{key:"goTo",value:(f=(0,r.A)(d().mark((function t(e){var n,r,i,o,a,s;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=this.book,t.next=1,e;case 1:if(r=t.sent,i=n.sections[r.index]){t.next=2;break}return t.abrupt("return");case 2:return o=this.getSpreadOf(i),a=o.index,s=o.side,t.next=3,this.goToSpread(a,s);case 3:case"end":return t.stop()}}),t,this)}))),function(t){return f.apply(this,arguments)})},{key:"next",value:(c=(0,r.A)(d().mark((function t(){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(this.rtl?b(L,this,N).call(this):b(L,this,B).call(this))){t.next=1;break}b(L,this,z).call(this,"page"),t.next=2;break;case 1:return t.abrupt("return",this.goToSpread(m(E,this)+1,this.rtl?"right":"left","page"));case 2:case"end":return t.stop()}}),t,this)}))),function(){return c.apply(this,arguments)})},{key:"prev",value:(n=(0,r.A)(d().mark((function t(){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(this.rtl?b(L,this,B).call(this):b(L,this,N).call(this))){t.next=1;break}b(L,this,z).call(this,"page"),t.next=2;break;case 1:return t.abrupt("return",this.goToSpread(m(E,this)-1,this.rtl?"left":"right","page"));case 2:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"getContents",value:function(){return Array.from(m(k,this).querySelectorAll("iframe"),(function(t){return{doc:t.contentDocument}}))}},{key:"destroy",value:function(){m(A,this).unobserve(this)}}]);var n,c,f,h,w}((0,c.A)(HTMLElement));function I(t,e){return P.apply(this,arguments)}function P(){return(P=(0,r.A)(d().mark((function t(e,n){var r,i,o,a,s=this;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=n.index,i=n.src,o=document.createElement("div"),a=document.createElement("iframe"),o.append(a),Object.assign(a.style,{border:"0",display:"none",overflow:"hidden"}),a.setAttribute("sandbox","allow-same-origin allow-scripts"),a.setAttribute("scrolling","no"),a.setAttribute("part","filter"),m(k,this).append(o),i){t.next=1;break}return t.abrupt("return",{blank:!0,element:o,iframe:a});case 1:return t.abrupt("return",new Promise((function(t){var n=function(){a.removeEventListener("load",n);var i=a.contentDocument;i.position=e,s.dispatchEvent(new CustomEvent("load",{detail:{doc:i,index:r}}));var u=x(i,s.defaultViewport),c=u.width,l=u.height;t({element:o,iframe:a,width:parseFloat(c),height:parseFloat(l)})};a.addEventListener("load",n),a.src=i})));case 2:case"end":return t.stop()}}),t,this)})))).apply(this,arguments)}function j(){var t,e,n,r,i,o,a,s,u,c,l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:m(C,this);if(l){var f=null!==(t=m(_,this))&&void 0!==t?t:{},h=null!==(e=m(M,this))&&void 0!==e?e:m(O,this),d="left"===l?f:h,p=this.getBoundingClientRect(),v=p.width,g=p.height,b="both"!==this.spread&&"portrait"!==this.spread&&g>v;y(T,this,b);var w=null!==(n=f.width)&&void 0!==n?n:h.width,x=null!==(r=f.height)&&void 0!==r?r:h.height,k=b||m(M,this)?Math.min(v/(null!==(i=d.width)&&void 0!==i?i:w),g/(null!==(o=d.height)&&void 0!==o?o:x)):Math.min(v/((null!==(a=f.width)&&void 0!==a?a:w)+(null!==(s=h.width)&&void 0!==s?s:w)),g/Math.max(null!==(u=f.height)&&void 0!==u?u:x,null!==(c=h.height)&&void 0!==c?c:x)),A=function(t){var e=t.element,n=t.iframe,r=t.width,i=t.height,o=t.blank;n.contentDocument.scale=k,Object.assign(n.style,{width:"".concat(r,"px"),height:"".concat(i,"px"),transform:"scale(".concat(k,")"),transformOrigin:"top left",display:o?"none":"block"}),Object.assign(e.style,{width:"".concat((null!=r?r:w)*k,"px"),height:"".concat((null!=i?i:x)*k,"px"),overflow:"hidden",display:"block"}),b&&t!==d&&(e.style.display="none")};m(M,this)?A(m(M,this)):(A(f),A(h))}}function F(t){return D.apply(this,arguments)}function D(){return(D=(0,r.A)(d().mark((function t(e){var n,r,i,o,a,s,u,c,l,f,h,p,v,g,w,x;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.left,r=e.right,i=e.center,o=e.side,m(k,this).replaceChildren(),y(_,this,null),y(O,this,null),y(M,this,null),!i){t.next=2;break}return a=y,s=M,u=this,t.next=1,b(L,this,I).call(this,"center",i);case 1:c=t.sent,a(s,u,c),y(C,this,"center"),b(L,this,j).call(this),t.next=5;break;case 2:return l=y,f=_,h=this,t.next=3,b(L,this,I).call(this,"left",n);case 3:return p=t.sent,l(f,h,p),v=y,g=O,w=this,t.next=4,b(L,this,I).call(this,"right",r);case 4:x=t.sent,v(g,w,x),y(C,this,m(_,this).blank?"right":m(O,this).blank?"left":o),b(L,this,j).call(this);case 5:case"end":return t.stop()}}),t,this)})))).apply(this,arguments)}function N(){var t,e;if(!(m(M,this)||null!==(t=m(_,this))&&void 0!==t&&t.blank))return m(T,this)&&"none"===(null===(e=m(_,this))||void 0===e||null===(e=e.element)||void 0===e||null===(e=e.style)||void 0===e?void 0:e.display)?(m(O,this).element.style.display="none",m(_,this).element.style.display="block",y(C,this,"left"),!0):void 0}function B(){var t,e;if(!(m(M,this)||null!==(t=m(O,this))&&void 0!==t&&t.blank))return m(T,this)&&"none"===(null===(e=m(O,this))||void 0===e||null===(e=e.element)||void 0===e||null===(e=e.style)||void 0===e?void 0:e.display)?(m(_,this).element.style.display="none",m(O,this).element.style.display="block",y(C,this,"right"),!0):void 0}function z(t){this.dispatchEvent(new CustomEvent("relocate",{detail:{reason:t,range:null,index:this.index,fraction:0,size:1}}))}customElements.define("foliate-fxl",R)},80926:function(t,e,n){"use strict";var r=n(79306),i=n(48981),o=n(47055),a=n(26198),s=TypeError,u="Reduce of empty array with no initial value",c=function(t){return function(e,n,c,l){var f=i(e),h=o(f),d=a(f);if(r(n),0===d&&c<2)throw new s(u);var p=t?d-1:0,v=t?-1:1;if(c<2)for(;;){if(p in h){l=h[p],p+=v;break}if(p+=v,t?p<0:d<=p)throw new s(u)}for(;t?p>=0:d>p;p+=v)p in h&&(l=n(l,h[p],p,f));return l}};t.exports={left:c(!1),right:c(!0)}},81148:function(t,e,n){"use strict";var r=n(46518),i=n(69565),o=n(72652),a=n(79306),s=n(28551),u=n(1767),c=n(9539),l=n(84549)("every",TypeError);r({target:"Iterator",proto:!0,real:!0,forced:l},{every:function(t){s(this);try{a(t)}catch(t){c(this,"throw",t)}if(l)return i(l,this,t);var e=u(this),n=0;return!o(e,(function(e,r){if(!t(e,n++))return r()}),{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},81234:function(t,e,n){"use strict";n.d(e,{r:function(){return w}});var r=n(23029),i=n(92901),o=n(64467),a=n(10467),s=n(54756),u=n.n(s);function c(t,e,n){l(t,e),e.set(t,n)}function l(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function f(t,e){return t.get(d(t,e))}function h(t,e,n){return t.set(d(t,e),n),n}function d(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}var p={OFF:"off",TRANSLATION_ONLY:"translation-only",ORIGINAL_ONLY:"original-only",BILINGUAL:"bilingual"};"undefined"!=typeof window&&(window.TranslationMode=p);var v=function(){var t=(0,a.A)(u().mark((function t(e){var n,r;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=1,window.flutter_inappwebview.callHandler("translateText",e);case 1:return n=t.sent,t.abrupt("return",n||"Translation failed: ".concat(e));case 2:return t.prev=2,r=t.catch(0),console.error("Translation failed:",r),t.abrupt("return","Translation error: ".concat(e));case 3:case"end":return t.stop()}}),t,null,[[0,2]])})));return function(e){return t.apply(this,arguments)}}(),g=new WeakMap,y=new WeakMap,m=new WeakMap,b=new WeakSet,w=function(){return(0,i.A)((function t(){var e;(0,r.A)(this,t),l(this,e=b),e.add(this),c(this,g,p.OFF),(0,o.A)(this,"observedElements",new Set),c(this,y,new WeakMap),c(this,m,null),d(b,this,x).call(this)}),[{key:"setTranslationMode",value:(t=(0,a.A)(u().mark((function t(e){var n,r;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(Object.values(p).includes(e)){t.next=1;break}return console.warn("Invalid translation mode: ".concat(e)),t.abrupt("return");case 1:if(n=f(g,this),h(g,this,e),n===e){t.next=5;break}if(e!==p.OFF){t.next=2;break}d(b,this,L).call(this),t.next=5;break;case 2:if(n!==p.OFF){t.next=4;break}return t.next=3,d(b,this,M).call(this);case 3:t.next=5;break;case 4:d(b,this,L).call(this);case 5:window.reader&&window.reader.annotationsByValue&&(r=Array.from(window.reader.annotationsByValue.values())).length>0&&window.renderAnnotations(r);case 6:case"end":return t.stop()}}),t,this)}))),function(e){return t.apply(this,arguments)})},{key:"getTranslationMode",value:function(){return f(g,this)}},{key:"observeDocument",value:function(t){var e=this;t?d(b,this,k).call(this,t.body||t.documentElement).forEach((function(t){e.observedElements.has(t)||(f(m,e).observe(t),e.observedElements.add(t))})):console.warn("No document provided to observeDocument")}},{key:"clearTranslations",value:function(){var t=this;this.observedElements.forEach((function(e){e.querySelectorAll(".translated-text").forEach((function(t){return t.remove()})),d(b,t,O).call(t,e)})),f(m,this).disconnect(),this.observedElements.clear(),h(y,this,new WeakMap),d(b,this,x).call(this)}},{key:"destroy",value:function(){this.clearTranslations(),h(m,this,null)}}]);var t}();function x(){var t=this;h(m,this,new IntersectionObserver((function(e){e.forEach((function(e){e.isIntersecting&&d(b,t,A).call(t,e.target).catch((function(t){return console.warn("Translation failed in observer:",t)}))}))}),{rootMargin:"1280px",threshold:0}))}function k(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["pre","code","math","style","script"],n=[],r=function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!(i>15))for(var o=0,a=Array.from(t.children||[]);o0&&r(u,i+1)}}};return r(t),n}function A(t){return S.apply(this,arguments)}function S(){return(S=(0,a.A)(u().mark((function t(e){var n,r,i,o;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(f(g,this)!==p.OFF){t.next=1;break}return t.abrupt("return");case 1:if(!f(y,this).has(e)){t.next=2;break}return t.abrupt("return");case 2:if(r=null===(n=e.innerText)||void 0===n?void 0:n.trim()){t.next=3;break}return t.abrupt("return");case 3:return t.prev=3,t.next=4,v(r);case 4:i=t.sent,f(y,this).set(e,{originalText:r,translatedText:i}),d(b,this,E).call(this,e,i),t.next=6;break;case 5:t.prev=5,o=t.catch(3),console.warn("Translation failed:",o);case 6:case"end":return t.stop()}}),t,this,[[3,5]])})))).apply(this,arguments)}function E(t,e){var n=t.querySelector(".translated-text");n&&n.remove();var r=document.createElement("span");r.className="translated-text",r.setAttribute("data-translation-mark","1"),r.style.display="block",r.style.marginTop="0.2em",r.textContent=e,d(b,this,T).call(this,t,r),t.appendChild(r)}function T(t,e){if(f(y,this).get(t))switch(f(g,this)){case p.TRANSLATION_ONLY:d(b,this,_).call(this,t),e.style.display="block";break;case p.ORIGINAL_ONLY:d(b,this,O).call(this,t),e.style.display="none";break;case p.BILINGUAL:d(b,this,O).call(this,t),e.style.display="block";break;default:d(b,this,O).call(this,t),e.style.display="none"}}function _(t){t.hasAttribute("data-original-visibility")||(t.setAttribute("data-original-visibility","hidden"),Array.from(t.childNodes).forEach((function(t){if(t.nodeType===Node.ELEMENT_NODE){var e=t;e.classList&&e.classList.contains("translated-text")||e.hasAttribute("data-original-display")||(e.setAttribute("data-original-display",e.style.display||"initial"),e.style.display="none")}else t.nodeType===Node.TEXT_NODE&&(t.__originalContent||(t.__originalContent=t.textContent,t.textContent=""))}))),t.classList.add("translation-source-hidden")}function O(t){t.hasAttribute("data-original-visibility")&&(Array.from(t.childNodes).forEach((function(t){if(t.nodeType===Node.ELEMENT_NODE){var e=t;if((!e.classList||!e.classList.contains("translated-text"))&&e.hasAttribute("data-original-display")){var n=e.getAttribute("data-original-display");e.style.display="initial"===n?"":n,e.removeAttribute("data-original-display")}}else t.nodeType===Node.TEXT_NODE&&void 0!==t.__originalContent&&(t.textContent=t.__originalContent,delete t.__originalContent)})),t.removeAttribute("data-original-visibility")),t.classList.remove("translation-source-hidden")}function M(){return C.apply(this,arguments)}function C(){return(C=(0,a.A)(u().mark((function t(){var e,n=this;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=[],this.observedElements.forEach((function(t){var r=t.getBoundingClientRect(),i=r.top0;if(i&&!f(y,n).has(t)){var o=d(b,n,A).call(n,t).catch((function(t){console.warn("Force translation failed:",t)}));e.push(o)}else if(i&&f(y,n).has(t)){var a=t.querySelector(".translated-text");a&&d(b,n,T).call(n,t,a)}})),!(e.length>0)){t.next=1;break}return t.next=1,Promise.allSettled(e);case 1:case"end":return t.stop()}}),t,this)})))).apply(this,arguments)}function L(){var t=this;this.observedElements.forEach((function(e){var n=e.querySelector(".translated-text");n&&d(b,t,T).call(t,e,n)}))}},81278:function(t,e,n){"use strict";var r=n(46518),i=n(43724),o=n(35031),a=n(25397),s=n(77347),u=n(97040);r({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(t){for(var e,n,r=a(t),i=s.f,c=o(r),l={},f=0;c.length>f;)void 0!==(n=i(r,e=c[f++]))&&u(l,e,n);return l}})},81510:function(t,e,n){"use strict";var r=n(46518),i=n(97751),o=n(39297),a=n(655),s=n(25745),u=n(91296),c=s("string-to-symbol-registry"),l=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!u},{for:function(t){var e=a(t);if(o(c,e))return c[e];var n=i("Symbol")(e);return c[e]=n,l[n]=e,n}})},81630:function(t,e,n){"use strict";var r=n(79504),i=n(94644),o=r(n(57029)),a=i.aTypedArray;(0,i.exportTypedArrayMethod)("copyWithin",(function(t,e){return o(a(this),t,e,arguments.length>2?arguments[2]:void 0)}))},82003:function(t,e,n){"use strict";var r=n(46518),i=n(96395),o=n(10916).CONSTRUCTOR,a=n(80550),s=n(97751),u=n(94901),c=n(36840),l=a&&a.prototype;if(r({target:"Promise",proto:!0,forced:o,real:!0},{catch:function(t){return this.then(void 0,t)}}),!i&&u(a)){var f=s("Promise").prototype.catch;l.catch!==f&&c(l,"catch",f,{unsafe:!0})}},82284:function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}n.d(e,{A:function(){return r}})},82326:function(t,e,n){"use strict";var r=n(46518),i=Math.asinh,o=Math.log,a=Math.sqrt;r({target:"Math",stat:!0,forced:!(i&&1/i(0)>0)},{asinh:function t(e){var n=+e;return isFinite(n)&&0!==n?n<0?-t(-n):o(n+a(n*n+1)):n}})},82839:function(t,e,n){"use strict";var r=n(44576).navigator,i=r&&r.userAgent;t.exports=i?String(i):""},83063:function(t,e,n){"use strict";var r=n(82839);t.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(r)},83142:function(t,e,n){"use strict";n(70511)("matchAll")},83234:function(t,e,n){"use strict";n.r(e),n.d(e,{BlobReader:function(){return Me},BlobWriter:function(){return Ce},TextWriter:function(){return Le},ZipReader:function(){return cn},configure:function(){return Z}});var r=n(64467),i=n(90991),o=n(80296),a=n(10467),s=n(9417),u=n(82284),c=n(56822),l=n(53954),f=n(85501),h=n(92901),d=n(23029),p=n(56218),v=n(10600),g=n(54756),y=n.n(g);function m(t,e,n,r){var o=(0,i.A)((0,l.A)(1&r?t.prototype:t),e,n);return 2&r&&"function"==typeof o?function(t){return o.apply(n,t)}:o}function b(t,e,n){return e=(0,l.A)(e),(0,c.A)(t,w()?Reflect.construct(e,n||[],(0,l.A)(t).constructor):e.apply(t,n))}function w(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(w=function(){return!!t})()}function x(t){var e,n,r,i=2;for("undefined"!=typeof Symbol&&(n=Symbol.asyncIterator,r=Symbol.iterator);i--;){if(n&&null!=(e=t[n]))return e.call(t);if(r&&null!=(e=t[r]))return new k(e.call(t));n="@@asyncIterator",r="@@iterator"}throw new TypeError("Object is not async iterable")}function k(t){function e(t){if(Object(t)!==t)return Promise.reject(new TypeError(t+" is not an object."));var e=t.done;return Promise.resolve(t.value).then((function(t){return{value:t,done:e}}))}return k=function(t){this.s=t,this.n=t.next},k.prototype={s:null,n:null,next:function(){return e(this.n.apply(this.s,arguments))},return:function(t){var n=this.s.return;return void 0===n?Promise.resolve({value:t,done:!0}):e(n.apply(this.s,arguments))},throw:function(t){var n=this.s.return;return void 0===n?Promise.reject(t):e(n.apply(this.s,arguments))}},new k(t)}var A=-2,S=-3,E=-5,T=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],_=[96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,192,80,7,10,0,8,96,0,8,32,0,9,160,0,8,0,0,8,128,0,8,64,0,9,224,80,7,6,0,8,88,0,8,24,0,9,144,83,7,59,0,8,120,0,8,56,0,9,208,81,7,17,0,8,104,0,8,40,0,9,176,0,8,8,0,8,136,0,8,72,0,9,240,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,200,81,7,13,0,8,100,0,8,36,0,9,168,0,8,4,0,8,132,0,8,68,0,9,232,80,7,8,0,8,92,0,8,28,0,9,152,84,7,83,0,8,124,0,8,60,0,9,216,82,7,23,0,8,108,0,8,44,0,9,184,0,8,12,0,8,140,0,8,76,0,9,248,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,196,81,7,11,0,8,98,0,8,34,0,9,164,0,8,2,0,8,130,0,8,66,0,9,228,80,7,7,0,8,90,0,8,26,0,9,148,84,7,67,0,8,122,0,8,58,0,9,212,82,7,19,0,8,106,0,8,42,0,9,180,0,8,10,0,8,138,0,8,74,0,9,244,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,204,81,7,15,0,8,102,0,8,38,0,9,172,0,8,6,0,8,134,0,8,70,0,9,236,80,7,9,0,8,94,0,8,30,0,9,156,84,7,99,0,8,126,0,8,62,0,9,220,82,7,27,0,8,110,0,8,46,0,9,188,0,8,14,0,8,142,0,8,78,0,9,252,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,194,80,7,10,0,8,97,0,8,33,0,9,162,0,8,1,0,8,129,0,8,65,0,9,226,80,7,6,0,8,89,0,8,25,0,9,146,83,7,59,0,8,121,0,8,57,0,9,210,81,7,17,0,8,105,0,8,41,0,9,178,0,8,9,0,8,137,0,8,73,0,9,242,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,202,81,7,13,0,8,101,0,8,37,0,9,170,0,8,5,0,8,133,0,8,69,0,9,234,80,7,8,0,8,93,0,8,29,0,9,154,84,7,83,0,8,125,0,8,61,0,9,218,82,7,23,0,8,109,0,8,45,0,9,186,0,8,13,0,8,141,0,8,77,0,9,250,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,198,81,7,11,0,8,99,0,8,35,0,9,166,0,8,3,0,8,131,0,8,67,0,9,230,80,7,7,0,8,91,0,8,27,0,9,150,84,7,67,0,8,123,0,8,59,0,9,214,82,7,19,0,8,107,0,8,43,0,9,182,0,8,11,0,8,139,0,8,75,0,9,246,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,206,81,7,15,0,8,103,0,8,39,0,9,174,0,8,7,0,8,135,0,8,71,0,9,238,80,7,9,0,8,95,0,8,31,0,9,158,84,7,99,0,8,127,0,8,63,0,9,222,82,7,27,0,8,111,0,8,47,0,9,190,0,8,15,0,8,143,0,8,79,0,9,254,96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,193,80,7,10,0,8,96,0,8,32,0,9,161,0,8,0,0,8,128,0,8,64,0,9,225,80,7,6,0,8,88,0,8,24,0,9,145,83,7,59,0,8,120,0,8,56,0,9,209,81,7,17,0,8,104,0,8,40,0,9,177,0,8,8,0,8,136,0,8,72,0,9,241,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,201,81,7,13,0,8,100,0,8,36,0,9,169,0,8,4,0,8,132,0,8,68,0,9,233,80,7,8,0,8,92,0,8,28,0,9,153,84,7,83,0,8,124,0,8,60,0,9,217,82,7,23,0,8,108,0,8,44,0,9,185,0,8,12,0,8,140,0,8,76,0,9,249,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,197,81,7,11,0,8,98,0,8,34,0,9,165,0,8,2,0,8,130,0,8,66,0,9,229,80,7,7,0,8,90,0,8,26,0,9,149,84,7,67,0,8,122,0,8,58,0,9,213,82,7,19,0,8,106,0,8,42,0,9,181,0,8,10,0,8,138,0,8,74,0,9,245,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,205,81,7,15,0,8,102,0,8,38,0,9,173,0,8,6,0,8,134,0,8,70,0,9,237,80,7,9,0,8,94,0,8,30,0,9,157,84,7,99,0,8,126,0,8,62,0,9,221,82,7,27,0,8,110,0,8,46,0,9,189,0,8,14,0,8,142,0,8,78,0,9,253,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,195,80,7,10,0,8,97,0,8,33,0,9,163,0,8,1,0,8,129,0,8,65,0,9,227,80,7,6,0,8,89,0,8,25,0,9,147,83,7,59,0,8,121,0,8,57,0,9,211,81,7,17,0,8,105,0,8,41,0,9,179,0,8,9,0,8,137,0,8,73,0,9,243,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,203,81,7,13,0,8,101,0,8,37,0,9,171,0,8,5,0,8,133,0,8,69,0,9,235,80,7,8,0,8,93,0,8,29,0,9,155,84,7,83,0,8,125,0,8,61,0,9,219,82,7,23,0,8,109,0,8,45,0,9,187,0,8,13,0,8,141,0,8,77,0,9,251,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,199,81,7,11,0,8,99,0,8,35,0,9,167,0,8,3,0,8,131,0,8,67,0,9,231,80,7,7,0,8,91,0,8,27,0,9,151,84,7,67,0,8,123,0,8,59,0,9,215,82,7,19,0,8,107,0,8,43,0,9,183,0,8,11,0,8,139,0,8,75,0,9,247,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,207,81,7,15,0,8,103,0,8,39,0,9,175,0,8,7,0,8,135,0,8,71,0,9,239,80,7,9,0,8,95,0,8,31,0,9,159,84,7,99,0,8,127,0,8,63,0,9,223,82,7,27,0,8,111,0,8,47,0,9,191,0,8,15,0,8,143,0,8,79,0,9,255],O=[80,5,1,87,5,257,83,5,17,91,5,4097,81,5,5,89,5,1025,85,5,65,93,5,16385,80,5,3,88,5,513,84,5,33,92,5,8193,82,5,9,90,5,2049,86,5,129,192,5,24577,80,5,2,87,5,385,83,5,25,91,5,6145,81,5,7,89,5,1537,85,5,97,93,5,24577,80,5,4,88,5,769,84,5,49,92,5,12289,82,5,13,90,5,3073,86,5,193,192,5,24577],M=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],C=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,112,112],L=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577],R=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13];function I(){var t,e,n,r,i,o;function a(t,e,a,s,u,c,l,f,h,d,p){var v,g,y,m,b,w,x,k,A,T,_,O,M,C,L;T=0,b=a;do{n[t[e+T]]++,T++,b--}while(0!==b);if(n[0]==a)return l[0]=-1,f[0]=0,0;for(k=f[0],w=1;w<=15&&0===n[w];w++);for(x=w,kb&&(k=b),f[0]=k,C=1<O+k;){if(m++,L=(L=y-(O+=k))>k?k:L,(g=1<<(w=x-O))>v+1&&(g-=v+1,M=x,w1440)return S;i[m]=_=d[0],d[0]+=L,0!==m?(o[m]=b,r[0]=w,r[1]=k,w=b>>>O-k,r[2]=_-i[m-1]-w,h.set(r,3*(i[m-1]+w))):l[0]=_}for(r[1]=x-O,T>=a?r[0]=192:p[T]>>O;w>>=1)b^=w;for(b^=w,A=(1<257?(d==S?h.msg="oversubscribed distance tree":d==E?(h.msg="incomplete distance tree",d=S):-4!=d&&(h.msg="empty distance tree with lengths",d=S),d):0)}}function P(){var t,e,n,r,i=this,o=0,a=0,s=0,u=0,c=0,l=0,f=0,h=0,d=0,p=0;function v(t,e,n,r,i,o,a,s){var u,c,l,f,h,d,p,v,g,y,m,b,w,x,k,A;p=s.next_in_index,v=s.avail_in,h=a.bitb,d=a.bitk,y=(g=a.write)>=c[A+1],d-=c[A+1],16&f){for(f&=15,w=c[A+2]+(h&T[f]),h>>=f,d-=f;d<15;)v--,h|=(255&s.read_byte(p++))<>=c[A+1],d-=c[A+1],16&f){for(f&=15;d>=f,d-=f,y-=w,g>=x)g-(k=g-x)>0&&2>g-k?(a.win[g++]=a.win[k++],a.win[g++]=a.win[k++],w-=2):(a.win.set(a.win.subarray(k,k+2),g),g+=2,k+=2,w-=2);else{k=g-x;do{k+=a.end}while(k<0);if(w>(f=a.end-k)){if(w-=f,g-k>0&&f>g-k)do{a.win[g++]=a.win[k++]}while(0!=--f);else a.win.set(a.win.subarray(k,k+f),g),g+=f,k+=f,f=0;k=0}}if(g-k>0&&w>g-k)do{a.win[g++]=a.win[k++]}while(0!=--w);else a.win.set(a.win.subarray(k,k+w),g),g+=w,k+=w,w=0;break}if(64&f)return s.msg="invalid distance code",v+=w=d>>3<(w=s.avail_in-v)?d>>3:w,p-=w,d-=w<<3,a.bitb=h,a.bitk=d,s.avail_in=v,s.total_in+=p-s.next_in_index,s.next_in_index=p,a.write=g,S;u+=c[A+2],f=c[A=3*(l+(u+=h&T[f]))]}break}if(64&f)return 32&f?(v+=w=d>>3<(w=s.avail_in-v)?d>>3:w,p-=w,d-=w<<3,a.bitb=h,a.bitk=d,s.avail_in=v,s.total_in+=p-s.next_in_index,s.next_in_index=p,a.write=g,1):(s.msg="invalid literal/length code",v+=w=d>>3<(w=s.avail_in-v)?d>>3:w,p-=w,d-=w<<3,a.bitb=h,a.bitk=d,s.avail_in=v,s.total_in+=p-s.next_in_index,s.next_in_index=p,a.write=g,S);if(u+=c[A+2],0===(f=c[A=3*(l+(u+=h&T[f]))])){h>>=c[A+1],d-=c[A+1],a.win[g++]=c[A+2],y--;break}}else h>>=c[A+1],d-=c[A+1],a.win[g++]=c[A+2],y--}while(y>=258&&v>=10);return v+=w=d>>3<(w=s.avail_in-v)?d>>3:w,p-=w,d-=w<<3,a.bitb=h,a.bitk=d,s.avail_in=v,s.total_in+=p-s.next_in_index,s.next_in_index=p,a.write=g,0}i.init=function(i,o,a,s,u,c){t=0,f=i,h=o,n=a,d=s,r=u,p=c,e=null},i.proc=function(i,g,y){var m,b,w,x,k,E,_,O=0,M=0,C=0;for(C=g.next_in_index,x=g.avail_in,O=i.bitb,M=i.bitk,E=(k=i.write)=258&&x>=10&&(i.bitb=O,i.bitk=M,g.avail_in=x,g.total_in+=C-g.next_in_index,g.next_in_index=C,i.write=k,y=v(f,h,n,d,r,p,i,g),C=g.next_in_index,x=g.avail_in,O=i.bitb,M=i.bitk,E=(k=i.write)>>=e[1+(b=3*(a+(O&T[m])))],M-=e[b+1],0===(w=e[b])){u=e[b+2],t=6;break}if(16&w){c=15&w,o=e[b+2],t=2;break}if(!(64&w)){s=w,a=b/3+e[b+2];break}if(32&w){t=7;break}return t=9,g.msg="invalid literal/length code",y=S,i.bitb=O,i.bitk=M,g.avail_in=x,g.total_in+=C-g.next_in_index,g.next_in_index=C,i.write=k,i.inflate_flush(g,y);case 2:for(m=c;M>=m,M-=m,s=h,e=r,a=p,t=3;case 3:for(m=s;M>=e[1+(b=3*(a+(O&T[m])))],M-=e[b+1],16&(w=e[b])){c=15&w,l=e[b+2],t=4;break}if(!(64&w)){s=w,a=b/3+e[b+2];break}return t=9,g.msg="invalid distance code",y=S,i.bitb=O,i.bitk=M,g.avail_in=x,g.total_in+=C-g.next_in_index,g.next_in_index=C,i.write=k,i.inflate_flush(g,y);case 4:for(m=c;M>=m,M-=m,t=5;case 5:for(_=k-l;_<0;)_+=i.end;for(;0!==o;){if(0===E&&(k==i.end&&0!==i.read&&(E=(k=0)7&&(M-=8,x++,C--),i.write=k,y=i.inflate_flush(g,y),E=(k=i.write)t.avail_out&&(n=t.avail_out),0!==n&&e==E&&(e=0),t.avail_out-=n,t.total_out+=n,t.next_out.set(r.win.subarray(o,o+n),i),i+=n,(o+=n)==r.end&&(o=0,r.write==r.end&&(r.write=0),(n=r.write-o)>t.avail_out&&(n=t.avail_out),0!==n&&e==E&&(e=0),t.avail_out-=n,t.total_out+=n,t.next_out.set(r.win.subarray(o,o+n),i),i+=n,o+=n),t.next_out_index=i,r.read=o,e},r.proc=function(t,e){var p,v,g,y,m,b,w,x;for(y=t.next_in_index,m=t.avail_in,v=r.bitb,g=r.bitk,w=(b=r.write)>>1){case 0:v>>>=3,v>>>=p=7&(g-=3),g-=p,i=1;break;case 1:k=[],E=[],_=[[]],O=[[]],I.inflate_trees_fixed(k,E,_,O),l.init(k[0],E[0],_[0],0,O[0],0),v>>>=3,g-=3,i=6;break;case 2:v>>>=3,g-=3,i=3;break;case 3:return v>>>=3,g-=3,i=9,t.msg="invalid block type",e=S,r.bitb=v,r.bitk=g,t.avail_in=m,t.total_in+=y-t.next_in_index,t.next_in_index=y,r.write=b,r.inflate_flush(t,e)}break;case 1:for(;g<32;){if(0===m)return r.bitb=v,r.bitk=g,t.avail_in=m,t.total_in+=y-t.next_in_index,t.next_in_index=y,r.write=b,r.inflate_flush(t,e);e=0,m--,v|=(255&t.read_byte(y++))<>>16&65535)!=(65535&v))return i=9,t.msg="invalid stored block lengths",e=S,r.bitb=v,r.bitk=g,t.avail_in=m,t.total_in+=y-t.next_in_index,t.next_in_index=y,r.write=b,r.inflate_flush(t,e);o=65535&v,v=g=0,i=0!==o?2:0!==f?7:0;break;case 2:if(0===m)return r.bitb=v,r.bitk=g,t.avail_in=m,t.total_in+=y-t.next_in_index,t.next_in_index=y,r.write=b,r.inflate_flush(t,e);if(0===w&&(b==r.end&&0!==r.read&&(w=(b=0)m&&(p=m),p>w&&(p=w),r.win.set(t.read_buf(y,p),b),y+=p,m-=p,b+=p,w-=p,0!=(o-=p))break;i=0!==f?7:0;break;case 3:for(;g<14;){if(0===m)return r.bitb=v,r.bitk=g,t.avail_in=m,t.total_in+=y-t.next_in_index,t.next_in_index=y,r.write=b,r.inflate_flush(t,e);e=0,m--,v|=(255&t.read_byte(y++))<29||(p>>5&31)>29)return i=9,t.msg="too many length or distance symbols",e=S,r.bitb=v,r.bitk=g,t.avail_in=m,t.total_in+=y-t.next_in_index,t.next_in_index=y,r.write=b,r.inflate_flush(t,e);if(p=258+(31&p)+(p>>5&31),!n||n.length>>=14,g-=14,s=0,i=4;case 4:for(;s<4+(a>>>10);){for(;g<3;){if(0===m)return r.bitb=v,r.bitk=g,t.avail_in=m,t.total_in+=y-t.next_in_index,t.next_in_index=y,r.write=b,r.inflate_flush(t,e);e=0,m--,v|=(255&t.read_byte(y++))<>>=3,g-=3}for(;s<19;)n[j[s++]]=0;if(u[0]=7,0!=(p=d.inflate_trees_bits(n,u,c,h,t)))return(e=p)==S&&(n=null,i=9),r.bitb=v,r.bitk=g,t.avail_in=m,t.total_in+=y-t.next_in_index,t.next_in_index=y,r.write=b,r.inflate_flush(t,e);s=0,i=5;case 5:for(;!(s>=258+(31&(p=a))+(p>>5&31));){var P=void 0,F=void 0;for(p=u[0];g>>=p,g-=p,n[s++]=F;else{for(x=18==F?7:F-14,P=18==F?11:3;g>>=p)&T[x],v>>>=x,g-=x,(x=s)+P>258+(31&(p=a))+(p>>5&31)||16==F&&x<1)return n=null,i=9,t.msg="invalid bit length repeat",e=S,r.bitb=v,r.bitk=g,t.avail_in=m,t.total_in+=y-t.next_in_index,t.next_in_index=y,r.write=b,r.inflate_flush(t,e);F=16==F?n[x-1]:0;do{n[x++]=F}while(0!=--P);s=x}}if(c[0]=-1,C=[],L=[],R=[],(M=[])[0]=9,C[0]=6,p=a,0!=(p=d.inflate_trees_dynamic(257+(31&p),1+(p>>5&31),n,M,C,L,R,h,t)))return p==S&&(n=null,i=9),e=p,r.bitb=v,r.bitk=g,t.avail_in=m,t.total_in+=y-t.next_in_index,t.next_in_index=y,r.write=b,r.inflate_flush(t,e);l.init(M[0],C[0],h,L[0],h,R[0]),i=6;case 6:if(r.bitb=v,r.bitk=g,t.avail_in=m,t.total_in+=y-t.next_in_index,t.next_in_index=y,r.write=b,1!=(e=l.proc(r,t,e)))return r.inflate_flush(t,e);if(e=0,l.free(t),y=t.next_in_index,m=t.avail_in,v=r.bitb,g=r.bitk,w=(b=r.write)15?(t.inflateEnd(n),A):(t.wbits=r,n.istate.blocks=new F(n,1<>4)>i.wbits){i.mode=D,t.msg="invalid win size",i.marker=5;break}i.mode=1;case 1:if(0===t.avail_in)return n;if(n=e,t.avail_in--,t.total_in++,r=255&t.read_byte(t.next_in_index++),((i.method<<8)+r)%31!=0){i.mode=D,t.msg="incorrect header check",i.marker=5;break}if(!(32&r)){i.mode=7;break}i.mode=2;case 2:if(0===t.avail_in)return n;n=e,t.avail_in--,t.total_in++,i.need=(255&t.read_byte(t.next_in_index++))<<24&4278190080,i.mode=3;case 3:if(0===t.avail_in)return n;n=e,t.avail_in--,t.total_in++,i.need+=(255&t.read_byte(t.next_in_index++))<<16&16711680,i.mode=4;case 4:if(0===t.avail_in)return n;n=e,t.avail_in--,t.total_in++,i.need+=(255&t.read_byte(t.next_in_index++))<<8&65280,i.mode=5;case 5:return 0===t.avail_in?n:(n=e,t.avail_in--,t.total_in++,i.need+=255&t.read_byte(t.next_in_index++),i.mode=6,2);case 6:return i.mode=D,t.msg="need dictionary",i.marker=0,A;case 7:if((n=i.blocks.proc(t,n))==S){i.mode=D,i.marker=0;break}if(0==n&&(n=e),1!=n)return n;n=e,i.blocks.reset(t,i.was),i.mode=12;case 12:return t.avail_in=0,1;case D:return S;default:return A}},t.inflateSetDictionary=function(t,e,n){var r=0,i=n;if(!t||!t.istate||6!=t.istate.mode)return A;var o=t.istate;return i>=1<>>1^3988292384:nt>>>=1;tt[et]=nt}var it=function(){return(0,h.A)((function t(e){(0,d.A)(this,t),this.crc=e||-1}),[{key:"append",value:function(t){for(var e=0|this.crc,n=0,r=0|t.length;n>>8^tt[255&(e^t[n])];this.crc=e}},{key:"get",value:function(){return~this.crc}}])}(),ot=function(t){function e(){var t,n;(0,d.A)(this,e);var r=new it;return t=b(this,e,[{transform:function(t,e){r.append(t),e.enqueue(t)},flush:function(){var t=new Uint8Array(4);new DataView(t.buffer).setUint32(0,r.get()),n.value=t}}]),n=(0,s.A)(t),t}return(0,f.A)(e,t),(0,h.A)(e)}(TransformStream),at={concat:function(t,e){if(0===t.length||0===e.length)return t.concat(e);var n=t[t.length-1],r=at.getPartial(n);return 32===r?t.concat(e):at._shiftRight(e,r,0|n,t.slice(0,t.length-1))},bitLength:function(t){var e=t.length;if(0===e)return 0;var n=t[e-1];return 32*(e-1)+at.getPartial(n)},clamp:function(t,e){if(32*t.length0&&e&&(t[n-1]=at.partial(e,t[n-1]&2147483648>>e-1,1)),t},partial:function(t,e,n){return 32===t?e:(n?0|e:e<<32-t)+1099511627776*t},getPartial:function(t){return Math.round(t/1099511627776)||32},_shiftRight:function(t,e,n,r){for(void 0===r&&(r=[]);e>=32;e-=32)r.push(n),n=0;if(0===e)return r.concat(t);for(var i=0;i>>e),n=t[i]<<32-e;var o=t.length?t[t.length-1]:0,a=at.getPartial(o);return r.push(at.partial(e+a&31,e+a>32?n:r.pop(),1)),r}},st={bytes:{fromBits:function(t){for(var e,n=at.bitLength(t)/8,r=new Uint8Array(n),i=0;i>>24,e<<=8;return r},toBits:function(t){var e,n=[],r=0;for(e=0;e9007199254740991)throw new Error("Cannot hash more than 2^53 - 1 bits");for(var o=new Uint32Array(n),a=0,s=e.blockSize+r-(e.blockSize+r&e.blockSize-1);s<=i;s+=e.blockSize)e._block(o.subarray(16*a,16*(a+1))),a+=1;return n.splice(0,16*a),e}},{key:"finalize",value:function(){for(var t=this,e=t._buffer,n=t._h,r=(e=at.concat(e,[at.partial(1,1)])).length+2;15&r;r++)e.push(0);for(e.push(Math.floor(t._length/4294967296)),e.push(0|t._length);e.length;)t._block(e.splice(0,16));return t.reset(),n}},{key:"_f",value:function(t,e,n,r){return t<=19?e&n|~e&r:t<=39?e^n^r:t<=59?e&n|e&r|n&r:t<=79?e^n^r:void 0}},{key:"_S",value:function(t,e){return e<>>32-t}},{key:"_block",value:function(t){for(var e=this,n=e._h,r=Array(80),i=0;i<16;i++)r[i]=t[i];for(var o=n[0],a=n[1],s=n[2],u=n[3],c=n[4],l=0;l<=79;l++){l>=16&&(r[l]=e._S(1,r[l-3]^r[l-8]^r[l-14]^r[l-16]));var f=e._S(5,o)+e._f(l,a,s,u)+c+r[l]+e._key[Math.floor(l/20)]|0;c=u,u=s,s=e._S(30,a),a=o,o=f}n[0]=n[0]+o|0,n[1]=n[1]+a|0,n[2]=n[2]+s|0,n[3]=n[3]+u|0,n[4]=n[4]+c|0}}])}()},ct={aes:function(){return(0,h.A)((function t(e){(0,d.A)(this,t);var n=this;n._tables=[[[],[],[],[],[]],[[],[],[],[],[]]],n._tables[0][0][0]||n._precompute();var r,i,o,a=n._tables[0][4],s=n._tables[1],u=e.length,c=1;if(4!==u&&6!==u&&8!==u)throw new Error("invalid aes key size");for(n._key=[i=e.slice(0),o=[]],r=u;r<4*u+28;r++){var l=i[r-1];(r%u==0||8===u&&r%u==4)&&(l=a[l>>>24]<<24^a[l>>16&255]<<16^a[l>>8&255]<<8^a[255&l],r%u==0&&(l=l<<8^l>>>24^c<<24,c=c<<1^283*(c>>7))),i[r]=i[r-u]^l}for(var f=0;r;f++,r--){var h=i[3&f?r:r-4];o[f]=r<=4||f<4?h:s[0][a[h>>>24]]^s[1][a[h>>16&255]]^s[2][a[h>>8&255]]^s[3][a[255&h]]}}),[{key:"encrypt",value:function(t){return this._crypt(t,0)}},{key:"decrypt",value:function(t){return this._crypt(t,1)}},{key:"_precompute",value:function(){for(var t,e,n,r=this._tables[0],i=this._tables[1],o=r[4],a=i[4],s=[],u=[],c=0;c<256;c++)u[(s[c]=c<<1^283*(c>>7))^c]=c;for(var l=t=0;!o[l];l^=e||1,t=u[t]||1){var f=t^t<<1^t<<2^t<<3^t<<4;f=f>>8^255&f^99,o[l]=f,a[f]=l;for(var h=16843009*s[n=s[e=s[l]]]^65537*n^257*e^16843008*l,d=257*s[f]^16843008*f,p=0;p<4;p++)r[p][l]=d=d<<24^d>>>8,i[p][f]=h=h<<24^h>>>8}for(var v=0;v<5;v++)r[v]=r[v].slice(0),i[v]=i[v].slice(0)}},{key:"_crypt",value:function(t,e){if(4!==t.length)throw new Error("invalid aes block size");for(var n,r,i,o=this._key[e],a=o.length/4-2,s=[0,0,0,0],u=this._tables[e],c=u[0],l=u[1],f=u[2],h=u[3],d=u[4],p=t[0]^o[0],v=t[e?3:1]^o[1],g=t[2]^o[2],y=t[e?1:3]^o[3],m=4,b=0;b>>24]^l[v>>16&255]^f[g>>8&255]^h[255&y]^o[m],r=c[v>>>24]^l[g>>16&255]^f[y>>8&255]^h[255&p]^o[m+1],i=c[g>>>24]^l[y>>16&255]^f[p>>8&255]^h[255&v]^o[m+2],y=c[y>>>24]^l[p>>16&255]^f[v>>8&255]^h[255&g]^o[m+3],m+=4,p=n,v=r,g=i;for(var w=0;w<4;w++)s[e?3&-w:w]=d[p>>>24]<<24^d[v>>16&255]<<16^d[g>>8&255]<<8^d[255&y]^o[m++],n=p,p=v,v=g,g=y,y=n;return s}}])}()},lt={ctrGladman:function(){return(0,h.A)((function t(e,n){(0,d.A)(this,t),this._prf=e,this._initIv=n,this._iv=n}),[{key:"reset",value:function(){this._iv=this._initIv}},{key:"update",value:function(t){return this.calculate(this._prf,t,this._iv)}},{key:"incWord",value:function(t){if(255&~(t>>24))t+=1<<24;else{var e=t>>16&255,n=t>>8&255,r=255&t;255===e?(e=0,255===n?(n=0,255===r?r=0:++r):++n):++e,t=0,t+=e<<16,t+=n<<8,t+=r}return t}},{key:"incCounter",value:function(t){0===(t[0]=this.incWord(t[0]))&&(t[1]=this.incWord(t[1]))}},{key:"calculate",value:function(t,e,n){var r;if(!(r=e.length))return[];for(var i=at.bitLength(e),o=0;o>5)<<2,l=new ArrayBuffer(c),f=new DataView(l),h=0,d=at;for(e=st.bytes.toBits(e),u=1;h<(c||1);u++){for(i=o=t.encrypt(d.concat(e,[u])),a=1;ao&&(e=(new r).update(e).finalize());for(var a=0;a>16)&n)<<16)+(t=18e3*(65535&t)+(t>>16)&n)&n)/4294967296+.5)*(Math.random()>.5?1:-1)}},i=0;it.length){var n=t;(t=new Uint8Array(e)).set(n,0)}return t}(n,l-l%yt)),a=0;a<=l-yt;a+=yt){var f=Vt(Lt,Ht(e,a,a+yt));o&&u.update(f);var h=s.update(f);o||u.update(h),n.set(qt(Lt,h),a+r)}return t.pending=Ht(e,a),n}function zt(t,e,n,r){return Ut.apply(this,arguments)}function Ut(){return Ut=(0,a.A)(y().mark((function t(e,n,r,i){var o,s,u,c,l,f,h;return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.password=null,o=function(t){if("undefined"==typeof TextEncoder){t=unescape(encodeURIComponent(t));for(var e=new Uint8Array(t.length),n=0;n>>24]),a=~t.crcKey2.get(),t.keys=[r,i,a]}function Zt(t){var e=2|t.keys[2];return Qt(Math.imul(e,1^e)>>>8)}function Qt(t){return 255&t}function te(t){return 4294967295&t}var ee="deflate-raw",ne=function(t){function e(t,n){var r,i=n.chunkSize,o=n.CompressionStream,a=n.CompressionStreamNative;(0,d.A)(this,e),r=b(this,e,[{}]);var s,u,c=t.compressed,l=t.encrypted,f=t.useCompressionStream,h=t.zipCrypto,p=t.signed,v=t.level,g=r,y=ie(m(e,"readable",r,1));return l&&!h||!p||(y=se(y,s=new ot)),c&&(y=ae(y,f,{level:v,chunkSize:i},a,o)),l&&(y=se(y,h?new Gt(t):u=new Nt(t))),oe(g,y,(function(){var t;l&&!h&&(t=u.signature),l&&!h||!p||(t=new DataView(s.value.buffer).getUint32(0)),g.signature=t})),r}return(0,f.A)(e,t),(0,h.A)(e)}(TransformStream),re=function(t){function e(t,n){var r,i=n.chunkSize,o=n.DecompressionStream,a=n.DecompressionStreamNative;(0,d.A)(this,e),r=b(this,e,[{}]);var s,u=t.zipCrypto,c=t.encrypted,l=t.signed,f=t.signature,h=t.compressed,p=t.useCompressionStream,v=ie(m(e,"readable",r,1));return c&&(v=se(v,u?new $t(t):new Dt(t))),h&&(v=ae(v,p,{chunkSize:i},a,o)),c&&!u||!l||(v=se(v,s=new ot)),oe(r,v,(function(){if((!c||u)&&l){var t=new DataView(s.value.buffer);if(f!=t.getUint32(0,!1))throw new Error(pt)}})),r}return(0,f.A)(e,t),(0,h.A)(e)}(TransformStream);function ie(t){return se(t,new TransformStream({transform:function(t,e){t&&t.length&&e.enqueue(t)}}))}function oe(t,e,n){e=se(e,new TransformStream({flush:n})),Object.defineProperty(t,"readable",{get:function(){return e}})}function ae(t,e,n,r,i){try{t=se(t,new(e&&r?r:i)(ee,n))}catch(r){if(!e)throw r;t=se(t,new i(ee,n))}return t}function se(t,e){return t.pipeThrough(e)}var ue="data",ce="inflate",le=function(t){function e(t,n){var r;(0,d.A)(this,e);var i,o=r=b(this,e,[{}]),a=t.codecType;a.startsWith("deflate")?i=ne:a.startsWith(ce)&&(i=re);var s=0,u=new i(t,n),c=m(e,"readable",r,1),l=new TransformStream({transform:function(t,e){t&&t.length&&(s+=t.length,e.enqueue(t))},flush:function(){var t=u.signature;Object.assign(o,{signature:t,size:s})}});return Object.defineProperty(o,"readable",{get:function(){return c.pipeThrough(u).pipeThrough(l)}}),r}return(0,f.A)(e,t),(0,h.A)(e)}(TransformStream),fe=("undefined"==typeof Worker?"undefined":(0,u.A)(Worker))!=$,he=(0,h.A)((function t(e,n,r,i){var o=n.readable,a=n.writable,s=r.options,u=r.config,c=r.streamOptions,l=r.useWebWorkers,f=r.transferStreams,h=r.scripts;(0,d.A)(this,t);var p=c.signal;return Object.assign(e,{busy:!0,readable:o.pipeThrough(new de(o,c,u),{signal:p}),writable:a,options:Object.assign({},s),scripts:h,transferStreams:f,terminate:function(){var t=e.worker,n=e.busy;t&&!n&&(t.terminate(),e.interface=null)},onTaskFinished:function(){e.busy=!1,i(e)}}),(l&&fe?ye:ge)(e,u)})),de=function(t){function e(t,n,r){var i=n.onstart,o=n.onprogress,s=n.size,u=n.onend,c=r.chunkSize;(0,d.A)(this,e);var l=0;return b(this,e,[{start:function(){i&&pe(i,s)},transform:function(t,e){return(0,a.A)(y().mark((function n(){return y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(l+=t.length,!o){n.next=1;break}return n.next=1,pe(o,l,s);case 1:e.enqueue(t);case 2:case"end":return n.stop()}}),n)})))()},flush:function(){t.size=l,u&&pe(u,l)}},{highWaterMark:1,size:function(){return c}}])}return(0,f.A)(e,t),(0,h.A)(e)}(TransformStream);function pe(t){return ve.apply(this,arguments)}function ve(){return ve=(0,a.A)(y().mark((function t(e){var n,r,i,o=arguments;return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(t.prev=0,n=o.length,r=new Array(n>1?n-1:0),i=1;iu?e.close():i.chunkOffset+=n;case 2:case"end":return o.stop()}}),o)})))()}});return r}}])}(_e),Me=function(t){function e(t){var n;return(0,d.A)(this,e),n=b(this,e),Object.assign((0,s.A)(n),{blob:t,size:t.size}),n}return(0,f.A)(e,t),(0,h.A)(e,[{key:"readUint8Array",value:(n=(0,a.A)(y().mark((function t(e,n){var r,i,o,a;return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=this,i=e+n,o=e||in&&(a=a.slice(e,i)),new Uint8Array(a)));case 2:case"end":return t.stop()}}),t,this)}))),function(t,e){return n.apply(this,arguments)})}]);var n}(Oe),Ce=function(t){function e(t){var n;(0,d.A)(this,e),n=b(this,e);var r=new TransformStream,i=[];return t&&i.push(["Content-Type",t]),Object.defineProperty(n,Te,{get:function(){return r.writable}}),n.blob=new Response(r.readable,{headers:i}).blob(),n}return(0,f.A)(e,t),(0,h.A)(e,[{key:"getData",value:function(){return this.blob}}])}(_e),Le=function(t){function e(t){var n;return(0,d.A)(this,e),n=b(this,e,[t]),Object.assign((0,s.A)(n),{encoding:t,utf8:!t||"utf-8"==t.toLowerCase()}),n}return(0,f.A)(e,t),(0,h.A)(e,[{key:"getData",value:(n=(0,a.A)(y().mark((function t(){var n,r,i,o;return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=this.encoding,r=this.utf8,t.next=1,m(e,"getData",this,3)([]);case 1:if(!(i=t.sent).text||!r){t.next=2;break}return t.abrupt("return",i.text());case 2:return o=new FileReader,t.abrupt("return",new Promise((function(t,e){Object.assign(o,{onload:function(e){var n=e.target;return t(n.result)},onerror:function(){return e(o.error)}}),o.readAsText(i,n)})));case 3:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})}]);var n}(Ce),Re=function(t){function e(t){var n;return(0,d.A)(this,e),(n=b(this,e)).readers=t,n}return(0,f.A)(e,t),(0,h.A)(e,[{key:"init",value:(r=(0,a.A)(y().mark((function t(){var n,r;return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=(n=this).readers,n.lastDiskNumber=0,n.lastDiskOffset=0,t.next=1,Promise.all(r.map(function(){var t=(0,a.A)(y().mark((function t(e,i){return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,e.init();case 1:i!=r.length-1&&(n.lastDiskOffset+=e.size),n.size+=e.size;case 2:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}()));case 1:m(e,"init",this,3)([]);case 2:case"end":return t.stop()}}),t,this)}))),function(){return r.apply(this,arguments)})},{key:"readUint8Array",value:(n=(0,a.A)(y().mark((function t(e,n){var r,i,o,a,s,u,c,l,f,h,d,p,v,g,m=arguments;return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(r=m.length>2&&void 0!==m[2]?m[2]:0,i=this,o=this.readers,-1==(s=r)&&(s=o.length-1),u=e;u>=o[s].size;)u-=o[s].size,s++;if(c=o[s],l=c.size,!(u+n<=l)){t.next=2;break}return t.next=1,De(c,u,n);case 1:a=t.sent,t.next=5;break;case 2:return f=l-u,a=new Uint8Array(n),h=a,t.next=3,De(c,u,f);case 3:return d=t.sent,h.set.call(h,d),p=a,t.next=4,i.readUint8Array(e+f,n-f,r);case 4:v=t.sent,g=f,p.set.call(p,v,g);case 5:return t.abrupt("return",(i.lastDiskNumber=Math.max(s,i.lastDiskNumber),a));case 6:case"end":return t.stop()}}),t,this)}))),function(t,e){return n.apply(this,arguments)})}]);var n,r}(Oe),Ie=function(t){function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4294967295;(0,d.A)(this,e);var i,o,s,u=n=b(this,e);Object.assign(u,{diskNumber:0,diskOffset:0,size:0,maxSize:r,availableSize:r});var c=new WritableStream({write:function(e){var n=this;return(0,a.A)(y().mark((function r(){var a,c,f;return y().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(a=u.availableSize,!s){r.next=6;break}if(!(e.length>=a)){r.next=4;break}return r.next=1,l(e.slice(0,a));case 1:return r.next=2,h();case 2:return u.diskOffset+=i.size,u.diskNumber++,s=null,r.next=3,n.write(e.slice(a));case 3:r.next=5;break;case 4:return r.next=5,l(e);case 5:r.next=10;break;case 6:return r.next=7,t.next();case 7:if(c=r.sent,f=c.value,!c.done||f){r.next=8;break}throw new Error("Writer iterator completed too soon");case 8:return(i=f).size=0,i.maxSize&&(u.maxSize=i.maxSize),u.availableSize=u.maxSize,r.next=9,Pe(i);case 9:return o=f.writable,s=o.getWriter(),r.next=10,n.write(e);case 10:case"end":return r.stop()}}),r)})))()},close:function(){return(0,a.A)(y().mark((function t(){return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,s.ready;case 1:return t.next=2,h();case 2:case"end":return t.stop()}}),t)})))()}});function l(t){return f.apply(this,arguments)}function f(){return f=(0,a.A)(y().mark((function t(e){var n;return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(n=e.length)){t.next=3;break}return t.next=1,s.ready;case 1:return t.next=2,s.write(e);case 2:i.size+=n,u.size+=n,u.availableSize-=n;case 3:case"end":return t.stop()}}),t)}))),f.apply(this,arguments)}function h(){return p.apply(this,arguments)}function p(){return(p=(0,a.A)(y().mark((function t(){return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o.size=i.size,t.next=1,s.close();case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return Object.defineProperty(u,Te,{get:function(){return c}}),n}return(0,f.A)(e,t),(0,h.A)(e)}(_e);function Pe(t,e){return je.apply(this,arguments)}function je(){return(je=(0,a.A)(y().mark((function t(e,n){return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.init||e.initialized){t.next=1;break}return t.next=1,e.init(n);case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Fe(t){return Array.isArray(t)&&(t=new Re(t)),t instanceof ReadableStream&&(t={readable:t}),t}function De(t,e,n,r){return t.readUint8Array(e,n,r)}var Ne="\0☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ ".split(""),Be=256==Ne.length;function ze(t,e){return e&&"cp437"==e.trim().toLowerCase()?function(t){if(Be){for(var e="",n=0;n1&&void 0!==arguments[1]?arguments[1]:{};(0,d.A)(this,t),Object.assign(this,{reader:Fe(e),options:n,config:J})}),[{key:"getEntriesGenerator",value:function(){var t=this;return(0,v.A)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return y().mark((function n(){var r,i,s,u,c,l,f,h,d,v,g,m,b,w,x,k,A,S,E,T,_,O,M,C,L,R,I,P,j,F,D,N,B,z,$,G,X,Y,K,J,Z,Q,tt,et,nt;return y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=(r=t).reader,s=r.config,n.next=1,(0,p.A)(Pe(i));case 1:if(i.size!==V&&i.readUint8Array){n.next=3;break}return z=Me,n.next=2,(0,p.A)(new Response(i.readable).blob());case 2:return $=n.sent,i=new z($),n.next=3,(0,p.A)(Pe(i));case 3:if(!(i.size<22)){n.next=4;break}throw new Error(en);case 4:return i.chunkSize=function(t){return Math.max(t.chunkSize,64)}(s),n.next=5,(0,p.A)(function(){var t=(0,a.A)(y().mark((function t(e,n,r,i,o){var s,u,c,l,f;return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return l=function(){return l=(0,a.A)(y().mark((function t(n){var o,a,u;return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=r-n,t.next=1,De(e,o,n);case 1:a=t.sent,u=a.length-i;case 2:if(!(u>=0)){t.next=4;break}if(a[u]!=s[0]||a[u+1]!=s[1]||a[u+2]!=s[2]||a[u+3]!=s[3]){t.next=3;break}return t.abrupt("return",{offset:o+u,buffer:a.slice(u,u+i).buffer});case 3:u--,t.next=2;break;case 4:case"end":return t.stop()}}),t)}))),l.apply(this,arguments)},c=function(t){return l.apply(this,arguments)},function(t,e,n){t.setUint32(0,n,!0)}(An(s=new Uint8Array(4)),0,n),u=i+o,t.next=1,c(i);case 1:if(f=t.sent){t.next=3;break}return t.next=2,c(Math.min(u,r));case 2:f=t.sent;case 3:return t.abrupt("return",f);case 4:case"end":return t.stop()}}),t)})));return function(e,n,r,i,o){return t.apply(this,arguments)}}()(i,101010256,i.size,22,1048560));case 5:if(u=n.sent){n.next=9;break}return G=xn,X=An,n.next=6,(0,p.A)(De(i,0,4));case 6:if(Y=n.sent,K=X(Y),134695760!=G(K)){n.next=7;break}J=new Error(rn),n.next=8;break;case 7:J=new Error("End of central directory not found");case 8:throw J;case 9:if(c=An(u),l=xn(c,12),f=xn(c,16),h=u.offset,d=wn(c,20),v=h+22+d,g=wn(c,4),m=i.lastDiskNumber||0,b=wn(c,6),w=wn(c,8),x=0,k=0,f!=U&&l!=U&&w!=W&&b!=W){n.next=16;break}return Z=An,n.next=10,(0,p.A)(De(i,u.offset-20,20));case 10:if(Q=n.sent,117853008==xn(A=Z(Q),0)){n.next=11;break}throw new Error("End of Zip64 central directory not found");case 11:return f=kn(A,8),n.next=12,(0,p.A)(De(i,f,56,-1));case 12:if(S=n.sent,E=An(S),T=u.offset-20-56,xn(E,0)==q||f==T){n.next=14;break}return _=f,x=(f=T)-_,n.next=13,(0,p.A)(De(i,f,56,-1));case 13:S=n.sent,E=An(S);case 14:if(xn(E,0)==q){n.next=15;break}throw new Error("End of Zip64 central directory locator not found");case 15:g==W&&(g=xn(E,16)),b==W&&(b=xn(E,20)),w==W&&(w=kn(E,32)),l==U&&(l=kn(E,40)),f-=l;case 16:if(m==g){n.next=17;break}throw new Error(rn);case 17:if(!(f<0||f>=i.size)){n.next=18;break}throw new Error(en);case 18:return O=0,n.next=19,(0,p.A)(De(i,f,l,b));case 19:if(M=n.sent,C=An(M),!l){n.next=21;break}if(L=u.offset-l,xn(C,O)==H||f==L){n.next=21;break}return R=f,x=(f=L)-R,n.next=20,(0,p.A)(De(i,f,l,b));case 20:M=n.sent,C=An(M);case 21:if(I=u.offset-f-(i.lastDiskOffset||0),!(l!=I&&I>=0)){n.next=23;break}return l=I,n.next=22,(0,p.A)(De(i,f,l,b));case 22:M=n.sent,C=An(M);case 23:if(!(f<0||f>=i.size)){n.next=24;break}throw new Error(en);case 24:P=gn(r,e,"filenameEncoding"),j=gn(r,e,"commentEncoding"),F=y().mark((function t(){var n,a,u,c,l,f,h,d,v,g,m,b,A,S,E,T,_,L,R,I;return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=new ln(i,s,r.options),xn(C,O)==H){t.next=1;break}throw new Error("Central directory header not found");case 1:return fn(n,C,O+6),a=Boolean(n.bitFlag.languageEncodingFlag),c=(u=O+46)+n.filenameLength,l=c+n.extraFieldLength,f=wn(C,O+4),h=M.subarray(u,c),d=wn(C,O+32),v=l+d,g=M.subarray(l,v),m=a,b=a,A=!(16&~bn(C,O+38)),S=xn(C,O+42)+x,Object.assign(n,{versionMadeBy:f,msDosCompatible:true,compressedSize:0,uncompressedSize:0,commentLength:d,directory:A,offset:S,diskNumberStart:wn(C,O+34),internalFileAttribute:wn(C,O+36),externalFileAttribute:xn(C,O+38),rawFilename:h,filenameUTF8:m,commentUTF8:b,rawExtraField:M.subarray(c,l)}),t.next=2,(0,p.A)(Promise.all([ze(h,m?on:P||an),ze(g,b?on:j||an)]));case 2:return E=t.sent,T=(0,o.A)(E,2),_=T[0],L=T[1],Object.assign(n,{rawComment:g,filename:_,comment:L,directory:A||_.endsWith("/")}),k=Math.max(S,k),t.next=3,(0,p.A)(hn(n,n,C,O+6));case 3:if((R=new tn(n)).getData=function(t,e){return n.getData(t,R,e)},O=v,!(I=e.onprogress)){t.next=7;break}return t.prev=4,t.next=5,(0,p.A)(I(D+1,w,new tn(n)));case 5:t.next=7;break;case 6:t.prev=6,t.catch(4);case 7:return t.next=8,R;case 8:case"end":return t.stop()}}),t,null,[[4,6]])})),D=0;case 25:if(!(D0)){n.next=29;break}return n.next=28,(0,p.A)(De(i,0,k));case 28:tt=n.sent,n.next=30;break;case 29:tt=new Uint8Array;case 30:r.prependedData=tt;case 31:if(!d){n.next=33;break}return n.next=32,(0,p.A)(De(i,h+22,d));case 32:et=n.sent,n.next=34;break;case 33:et=new Uint8Array;case 34:if(r.comment=et,!B){n.next=38;break}if(!(v0&&void 0!==l[0]?l[0]:{},n=[],r=!1,i=!1,t.prev=1,a=x(this.getEntriesGenerator(e));case 2:return t.next=3,a.next();case 3:if(!(r=!(s=t.sent).done)){t.next=5;break}u=s.value,n.push(u);case 4:r=!1,t.next=2;break;case 5:t.next=7;break;case 6:t.prev=6,c=t.catch(1),i=!0,o=c;case 7:if(t.prev=7,t.prev=8,!r||null==a.return){t.next=9;break}return t.next=9,a.return();case 9:if(t.prev=9,!i){t.next=10;break}throw o;case 10:return t.finish(9);case 11:return t.finish(7);case 12:return t.abrupt("return",n);case 13:case"end":return t.stop()}}),t,this,[[1,6,7,12],[8,,9,11]])}))),function(){return e.apply(this,arguments)})},{key:"close",value:(t=(0,a.A)(y().mark((function t(){return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)}))),function(){return t.apply(this,arguments)})}]);var t,e}(),ln=function(){return(0,h.A)((function t(e,n,r){(0,d.A)(this,t),Object.assign(this,{reader:e,config:n,options:r})}),[{key:"getData",value:(t=(0,a.A)(y().mark((function t(e,n){var r,i,s,c,l,f,h,d,p,v,g,m,b,w,x,k,A,S,E,T,_,O,M,C,L,R,I,P,j,F,D,N,B,z,U,W=arguments;return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=W.length>2&&void 0!==W[2]?W[2]:{},s=(i=this).reader,c=i.offset,l=i.diskNumberStart,f=i.extraFieldAES,h=i.compressionMethod,d=i.config,p=i.bitFlag,v=i.signature,g=i.rawLastModDate,m=i.uncompressedSize,b=i.compressedSize,w=n.localDirectory={},N=An,t.next=1,De(s,c,30,l);case 1:if(B=t.sent,x=N(B),k=(k=gn(i,r,"password"))&&k.length&&k,!f||99==f.originalCompressionMethod){t.next=2;break}throw new Error(nn);case 2:if(0==h||8==h){t.next=3;break}throw new Error(nn);case 3:if(67324752==xn(x,0)){t.next=4;break}throw new Error("Local file header not found");case 4:if(fn(w,x,4),!w.extraFieldLength){t.next=6;break}return t.next=5,De(s,c+30+w.filenameLength,w.extraFieldLength,l);case 5:z=t.sent,t.next=7;break;case 6:z=new Uint8Array;case 7:return w.rawExtraField=z,t.next=8,hn(i,w,x,4,!0);case 8:if(Object.assign(n,{lastAccessDate:w.lastAccessDate,creationDate:w.creationDate}),A=i.encrypted&&w.encrypted,S=A&&!f,!A){t.next=10;break}if(S||f.strength!==V){t.next=9;break}throw new Error("Encryption method not supported");case 9:if(k){t.next=10;break}throw new Error("File contains encrypted entry");case 10:return E=c+30+w.filenameLength+w.extraFieldLength,T=b,_=s.readable,Object.assign(_,{diskNumberStart:l,offset:E,size:T}),O=gn(i,r,"signal"),(M=gn(i,r,"checkPasswordOnly"))&&(e=new WritableStream),e=function(t){t.writable===V&&(0,u.A)(t.next)==G&&(t=new Ie(t)),t instanceof WritableStream&&(t={writable:t});var e=t.writable;return e.size===V&&(e.size=0),t instanceof Ie||Object.assign(t,{diskNumber:0,diskOffset:0,availableSize:1/0,maxSize:1/0}),t}(e),t.next=11,Pe(e,m);case 11:return C=e.writable,L=r.onstart,R=r.onprogress,I=r.onend,P={options:{codecType:ce,password:k,zipCrypto:S,encryptionStrength:f&&f.strength,signed:gn(i,r,"checkSignature"),passwordVerification:S&&(p.dataDescriptor?g>>>8&255:v>>>24&255),signature:v,compressed:0!=h,encrypted:A,useWebWorkers:gn(i,r,"useWebWorkers"),useCompressionStream:gn(i,r,"useCompressionStream"),transferStreams:gn(i,r,"transferStreams"),checkPasswordOnly:M},config:d,streamOptions:{signal:O,size:T,onstart:L,onprogress:R,onend:I}},j=0,t.prev=12,t.next=13,function(){var t=(0,a.A)(y().mark((function t(e,n){var r,i,a,s,u,c,l,f,h,d,p,v,g,m,b,w,x;return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(x=function(t){if(Ae.length){var e=Ae.splice(0,1),n=(0,o.A)(e,1)[0],r=n.resolve,i=n.stream,a=n.workerOptions;r(new he(t,i,a,x))}else t.worker?(Ee(t),Number.isFinite(v)&&v>=0&&(t.terminateTimeout=setTimeout((function(){ke=ke.filter((function(e){return e!=t})),t.terminate()}),v))):ke=ke.filter((function(e){return e!=t}))},r=n.options,i=n.config,a=r.transferStreams,s=r.useWebWorkers,u=r.useCompressionStream,c=r.codecType,l=r.compressed,f=r.signed,h=r.encrypted,d=i.workerScripts,p=i.maxWorkers,v=i.terminateWorkerTimeout,n.transferStreams=a||a===V,g=!(l||f||h||n.transferStreams),n.useWebWorkers=!g&&(s||s===V&&i.useWebWorkers),n.scripts=n.useWebWorkers&&d?d[c]:[],r.useCompressionStream=u||u===V&&i.useCompressionStream,b=ke.find((function(t){return!t.busy})),!b){t.next=1;break}Ee(b),m=new he(b,e,n,x),t.next=4;break;case 1:if(!(ke.length>1,dataDescriptor:!(8&~r),languageEncodingFlag:!(2048&~r)},rawLastModDate:o,lastModDate:yn(o),filenameLength:wn(e,n+22),extraFieldLength:wn(e,n+24)})}function hn(t,e,n,r,i){return dn.apply(this,arguments)}function dn(){return dn=(0,a.A)(y().mark((function t(e,n,r,i,a){var s,u,c,l,f,h,d,p,v,g,m,b,w,x;return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:s=n.rawExtraField,u=n.extraField=new Map,c=An(new Uint8Array(s)),l=0;try{for(;l=5&&(o.push(Ye),a.push(Ke));var s=1;o.forEach((function(n,i){if(t.data.length>=s+4){var o=xn(r,s);e[n]=t[n]=new Date(1e3*o);var u=a[i];t[u]=o}s+=4}))}(w,n,a),n.extraFieldExtendedTimestamp=w),(x=u.get(6534))&&(n.extraFieldUSDZ=x);case 5:case"end":return t.stop()}}),t)}))),dn.apply(this,arguments)}function pn(t,e,n,r,i){return vn.apply(this,arguments)}function vn(){return vn=(0,a.A)(y().mark((function t(e,n,i,o,a){var s,u,c,l;return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:s=An(e.data),(u=new it).append(a[i]),(c=An(new Uint8Array(4))).setUint32(0,u.get(),!0),l=xn(s,1),Object.assign(e,(0,r.A)((0,r.A)({version:bn(s,0)},n,ze(e.data.subarray(5))),"valid",!a.bitFlag.languageEncodingFlag&&l==xn(c,0))),e.valid&&(o[n]=e[n],o[n+"UTF8"]=!0);case 1:case"end":return t.stop()}}),t)}))),vn.apply(this,arguments)}function gn(t,e,n){return e[n]===V?t.options[n]:e[n]}function yn(t){var e=(4294901760&t)>>16,n=65535&t;try{return new Date(1980+((65024&e)>>9),((480&e)>>5)-1,31&e,(63488&n)>>11,(2016&n)>>5,2*(31&n),0)}catch(t){}}function mn(t){return new Date(Number(t/BigInt(1e4)-BigInt(116444736e5)))}function bn(t,e){return t.getUint8(e)}function wn(t,e){return t.getUint16(e,!0)}function xn(t,e){return t.getUint32(e,!0)}function kn(t,e){return Number(t.getBigUint64(e,!0))}function An(t){return new DataView(t.buffer)}Z({Inflate:function(t){var e=new z,n=t&&t.chunkSize?Math.floor(2*t.chunkSize):131072,r=new Uint8Array(n),i=!1;e.inflateInit(),e.next_out=r,this.append=function(t,o){var a,s,u=[],c=0,l=0,f=0;if(0!==t.length){e.next_in_index=0,e.next_in=t,e.avail_in=t.length;do{if(e.next_out_index=0,e.avail_out=n,0!==e.avail_in||i||(e.next_in_index=0,i=!0),a=e.inflate(0),i&&a===E){if(0!==e.avail_in)throw new Error("inflating: bad input")}else if(0!==a&&1!==a)throw new Error("inflating: "+e.msg);if((i||1===a)&&e.avail_in===t.length)throw new Error("inflating: bad input");e.next_out_index&&(e.next_out_index===n?u.push(new Uint8Array(r)):u.push(r.subarray(0,e.next_out_index))),f+=e.next_out_index,o&&e.next_in_index>0&&e.next_in_index!=c&&(o(e.next_in_index),c=e.next_in_index)}while(e.avail_in>0||0===e.avail_out);return u.length>1?(s=new Uint8Array(f),u.forEach((function(t){s.set(t,l),l+=t.length}))):s=u[0]?new Uint8Array(u[0]):new Uint8Array,s}},this.flush=function(){e.inflateEnd()}}})},83237:function(t,e,n){"use strict";n(70511)("replace")},83440:function(t,e,n){"use strict";var r=n(97080),i=n(94402),o=n(89286),a=n(25170),s=n(83789),u=n(38469),c=n(40507),l=i.has,f=i.remove;t.exports=function(t){var e=r(this),n=s(t),i=o(e);return a(e)<=n.size?u(e,(function(t){n.includes(t)&&f(i,t)})):c(n.getIterator(),(function(t){l(i,t)&&f(i,t)})),i}},83635:function(t,e,n){"use strict";var r=n(79039),i=n(44576).RegExp;t.exports=r((function(){var t=i(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)}))},83650:function(t,e,n){"use strict";var r=n(97080),i=n(94402),o=n(89286),a=n(83789),s=n(40507),u=i.add,c=i.has,l=i.remove;t.exports=function(t){var e=r(this),n=a(t).getIterator(),i=o(e);return s(n,(function(t){c(e,t)?l(i,t):u(i,t)})),i}},83789:function(t,e,n){"use strict";var r=n(79306),i=n(28551),o=n(69565),a=n(91291),s=n(1767),u="Invalid size",c=RangeError,l=TypeError,f=Math.max,h=function(t,e){this.set=t,this.size=f(e,0),this.has=r(t.has),this.keys=r(t.keys)};h.prototype={getIterator:function(){return s(i(o(this.keys,this.set)))},includes:function(t){return o(this.has,this.set,t)}},t.exports=function(t){i(t);var e=+t.size;if(e!=e)throw new l(u);var n=a(e);if(n<0)throw new c(u);return new h(t,n)}},83851:function(t,e,n){"use strict";var r=n(46518),i=n(79039),o=n(25397),a=n(77347).f,s=n(43724);r({target:"Object",stat:!0,forced:!s||i((function(){a(1)})),sham:!s},{getOwnPropertyDescriptor:function(t,e){return a(o(t),e)}})},84185:function(t,e,n){"use strict";var r=n(46518),i=n(43724),o=n(24913).f;r({target:"Object",stat:!0,forced:Object.defineProperty!==o,sham:!i},{defineProperty:o})},84215:function(t,e,n){"use strict";var r=n(44576),i=n(82839),o=n(22195),a=function(t){return i.slice(0,t.length)===t};t.exports=a("Bun/")?"BUN":a("Cloudflare-Workers")?"CLOUDFLARE":a("Deno/")?"DENO":a("Node.js/")?"NODE":r.Bun&&"string"==typeof Bun.version?"BUN":r.Deno&&"object"==typeof Deno.version?"DENO":"process"===o(r.process)?"NODE":r.window&&r.document?"BROWSER":"REST"},84270:function(t,e,n){"use strict";var r=n(69565),i=n(94901),o=n(20034),a=TypeError;t.exports=function(t,e){var n,s;if("string"===e&&i(n=t.toString)&&!o(s=r(n,t)))return s;if(i(n=t.valueOf)&&!o(s=r(n,t)))return s;if("string"!==e&&i(n=t.toString)&&!o(s=r(n,t)))return s;throw new a("Can't convert object to primitive value")}},84315:function(t,e,n){"use strict";n(52675),n(89463),n(34113),n(66412),n(97324),n(60193),n(92168),n(2259),n(86964),n(83142),n(83237),n(61833),n(67947),n(31073),n(45700),n(78125),n(20326),n(16280),n(6372),n(76918),n(30067),n(4294),n(88940),n(18107),n(28706),n(26835),n(88431),n(33771),n(2008),n(50113),n(48980),n(10838),n(13451),n(46449),n(78350),n(51629),n(23418),n(74423),n(25276),n(64346),n(23792),n(48598),n(8921),n(62062),n(31051),n(44114),n(72712),n(18863),n(94490),n(34782),n(15086),n(26910),n(87478),n(54554),n(9678),n(57145),n(71658),n(93514),n(30237),n(13609),n(11558),n(54743),n(46761),n(11745),n(38309),n(10255),n(3995),n(16573),n(78100),n(77936),n(61699),n(59089),n(91191),n(93515),n(1688),n(60739),n(89572),n(23288),n(48922),n(36456),n(94170),n(48957),n(62010),n(55081),n(18111),n(76382),n(29314),n(81148),n(22489),n(20116),n(30531),n(7588),n(49603),n(61701),n(18237),n(13579),n(54972),n(61806),n(33110),n(4731),n(36033),n(47072),n(93153),n(82326),n(36389),n(64444),n(8085),n(77762),n(65070),n(60605),n(4360),n(39469),n(72152),n(75376),n(56624),n(11367),n(5914),n(78553),n(98690),n(60479),n(70761),n(2892),n(45374),n(25428),n(32637),n(40150),n(59149),n(64601),n(44435),n(87220),n(25843),n(62337),n(9868),n(80630),n(69085),n(59904),n(17427),n(67945),n(84185),n(87607),n(5506),n(52811),n(53921),n(83851),n(81278),n(1480),n(40875),n(77691),n(78347),n(29908),n(94052),n(94003),n(221),n(79432),n(9220),n(7904),n(93967),n(63548),n(93941),n(10287),n(26099),n(16034),n(78459),n(58940),n(3362),n(96167),n(93518),n(9391),n(31689),n(14628),n(52407),n(24793),n(50452),n(39796),n(60825),n(87411),n(21211),n(40888),n(9065),n(86565),n(32812),n(84634),n(71137),n(30985),n(34268),n(34873),n(15472),n(84864),n(96069),n(57465),n(27495),n(69479),n(87745),n(90906),n(38781),n(31415),n(17642),n(58004),n(33853),n(45876),n(32475),n(15024),n(31698),n(67357),n(23860),n(99449),n(27337),n(21699),n(42043),n(47764),n(71761),n(28543),n(35701),n(68156),n(85906),n(42781),n(25440),n(79978),n(5746),n(90744),n(11392),n(50375),n(67438),n(42762),n(39202),n(43359),n(89907),n(11898),n(35490),n(5745),n(94298),n(60268),n(69546),n(20781),n(50778),n(89195),n(46276),n(48718),n(16308),n(34594),n(29833),n(46594),n(72107),n(95477),n(21489),n(22134),n(3690),n(61740),n(48140),n(81630),n(72170),n(75044),n(69539),n(31694),n(89955),n(21903),n(91134),n(33206),n(48345),n(44496),n(66651),n(12887),n(19369),n(66812),n(8995),n(52568),n(31575),n(36072),n(88747),n(28845),n(29423),n(57301),n(373),n(86614),n(41405),n(37467),n(44732),n(33684),n(79577),n(88267),n(73772),n(30958),n(2945),n(42207),n(23500),n(62953),n(55815),n(64979),n(79739),n(59848),n(122),n(13611),n(71678),n(76031),n(3296),n(2222),n(45781),n(27208),n(48408),n(14603),n(47566),n(98721),n(19167)},84373:function(t,e,n){"use strict";var r=n(48981),i=n(35610),o=n(26198);t.exports=function(t){for(var e=r(this),n=o(e),a=arguments.length,s=i(a>1?arguments[1]:void 0,n),u=a>2?arguments[2]:void 0,c=void 0===u?n:i(u,n);c>s;)e[s++]=t;return e}},84428:function(t,e,n){"use strict";var r=n(78227)("iterator"),i=!1;try{var o=0,a={next:function(){return{done:!!o++}},return:function(){i=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(t){}t.exports=function(t,e){try{if(!e&&!i)return!1}catch(t){return!1}var n=!1;try{var o={};o[r]=function(){return{next:function(){return{done:n=!0}}}},t(o)}catch(t){}return n}},84549:function(t,e,n){"use strict";var r=n(44576);t.exports=function(t,e){var n=r.Iterator,i=n&&n.prototype,o=i&&i[t],a=!1;if(o)try{o.call({next:function(){return{done:!0}},return:function(){a=!0}},-1)}catch(t){t instanceof e||(a=!1)}if(!a)return o}},84606:function(t,e,n){"use strict";var r=n(16823),i=TypeError;t.exports=function(t,e){if(!delete t[e])throw new i("Cannot delete property "+r(e)+" of "+r(t))}},84634:function(t,e,n){"use strict";var r=n(46518),i=n(28551),o=n(34124);r({target:"Reflect",stat:!0},{isExtensible:function(t){return i(t),o(t)}})},84864:function(t,e,n){"use strict";var r=n(43724),i=n(44576),o=n(79504),a=n(92796),s=n(23167),u=n(66699),c=n(2360),l=n(38480).f,f=n(1625),h=n(60788),d=n(655),p=n(61034),v=n(58429),g=n(11056),y=n(36840),m=n(79039),b=n(39297),w=n(91181).enforce,x=n(87633),k=n(78227),A=n(83635),S=n(18814),E=k("match"),T=i.RegExp,_=T.prototype,O=i.SyntaxError,M=o(_.exec),C=o("".charAt),L=o("".replace),R=o("".indexOf),I=o("".slice),P=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,j=/a/g,F=/a/g,D=new T(j)!==j,N=v.MISSED_STICKY,B=v.UNSUPPORTED_Y;if(a("RegExp",r&&(!D||N||A||S||m((function(){return F[E]=!1,T(j)!==j||T(F)===F||"/a/i"!==String(T(j,"i"))}))))){for(var z=function(t,e){var n,r,i,o,a,l,v=f(_,this),g=h(t),y=void 0===e,m=[],x=t;if(!v&&g&&y&&t.constructor===z)return t;if((g||f(_,t))&&(t=t.source,y&&(e=p(x))),t=void 0===t?"":d(t),e=void 0===e?"":d(e),x=t,A&&"dotAll"in j&&(r=!!e&&R(e,"s")>-1)&&(e=L(e,/s/g,"")),n=e,N&&"sticky"in j&&(i=!!e&&R(e,"y")>-1)&&B&&(e=L(e,/y/g,"")),S&&(o=function(t){for(var e,n=t.length,r=0,i="",o=[],a=c(null),s=!1,u=!1,l=0,f="";r<=n;r++){if("\\"===(e=C(t,r)))e+=C(t,++r);else if("]"===e)s=!1;else if(!s)switch(!0){case"["===e:s=!0;break;case"("===e:if(i+=e,"?:"===I(t,r+1,r+3))continue;M(P,I(t,r+1))&&(r+=2,u=!0),l++;continue;case">"===e&&u:if(""===f||b(a,f))throw new O("Invalid capture group name");a[f]=!0,o[o.length]=[f,l],u=!1,f="";continue}u?f+=e:i+=e}return[i,o]}(t),t=o[0],m=o[1]),a=s(T(t,e),v?this:_,z),(r||i||m.length)&&(l=w(a),r&&(l.dotAll=!0,l.raw=z(function(t){for(var e,n=t.length,r=0,i="",o=!1;r<=n;r++)"\\"!==(e=C(t,r))?o||"."!==e?("["===e?o=!0:"]"===e&&(o=!1),i+=e):i+="[\\s\\S]":i+=e+C(t,++r);return i}(t),n)),i&&(l.sticky=!0),m.length&&(l.groups=m)),t!==x)try{u(a,"source",""===x?"(?:)":x)}catch(t){}return a},U=l(T),W=0;U.length>W;)g(z,T,U[W++]);_.constructor=z,z.prototype=_,y(i,"RegExp",z,{constructor:!0})}x("RegExp")},84916:function(t,e,n){"use strict";var r=n(97751),i=function(t){return{size:t,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},o=function(t){return{size:t,has:function(){return!0},keys:function(){throw new Error("e")}}};t.exports=function(t,e){var n=r("Set");try{(new n)[t](i(0));try{return(new n)[t](i(-1)),!1}catch(r){if(!e)return!0;try{return(new n)[t](o(-1/0)),!1}catch(r){var a=new n;return a.add(1),a.add(2),e(a[t](o(1/0)))}}}catch(t){return!1}}},85501:function(t,e,n){"use strict";n.d(e,{A:function(){return i}});var r=n(63662);function i(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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&(0,r.A)(t,e)}},85906:function(t,e,n){"use strict";var r=n(46518),i=n(79504),o=n(25397),a=n(48981),s=n(655),u=n(26198),c=i([].push),l=i([].join);r({target:"String",stat:!0},{raw:function(t){var e=o(a(t).raw),n=u(e);if(!n)return"";for(var r=arguments.length,i=[],f=0;;){if(c(i,s(e[f++])),f===n)return l(i,"");f1?arguments[1]:void 0);e=e?e.next:n.first;)for(r(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!b(this,t)}}),o(h,n?{get:function(t){var e=b(this,t);return e&&e.value},set:function(t,e){return m(this,0===t?0:t,e)}}:{add:function(t){return m(this,t=0===t?0:t,t)}}),d&&i(h,"size",{configurable:!0,get:function(){return v(this).size}}),f},setStrong:function(t,e,n){var r=e+" Iterator",i=y(e),o=y(r);l(t,e,(function(t,e){g(this,{type:r,target:t,state:i(t),kind:e,last:null})}),(function(){for(var t=o(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?f("keys"===e?n.key:"values"===e?n.value:[n.key,n.value],!1):(t.target=null,f(void 0,!0))}),n?"entries":"values",!n,!0),h(e)}}},86964:function(t,e,n){"use strict";n(70511)("match")},87220:function(t,e,n){"use strict";var r=n(46518),i=n(33904);r({target:"Number",stat:!0,forced:Number.parseFloat!==i},{parseFloat:i})},87411:function(t,e,n){"use strict";var r=n(46518),i=n(43724),o=n(28551),a=n(56969),s=n(24913);r({target:"Reflect",stat:!0,forced:n(79039)((function(){Reflect.defineProperty(s.f({},1,{value:1}),1,{value:2})})),sham:!i},{defineProperty:function(t,e,n){o(t);var r=a(e);o(n);try{return s.f(t,r,n),!0}catch(t){return!1}}})},87433:function(t,e,n){"use strict";var r=n(34376),i=n(33517),o=n(20034),a=n(78227)("species"),s=Array;t.exports=function(t){var e;return r(t)&&(e=t.constructor,(i(e)&&(e===s||r(e.prototype))||o(e)&&null===(e=e[a]))&&(e=void 0)),void 0===e?s:e}},87478:function(t,e,n){"use strict";n(87633)("Array")},87607:function(t,e,n){"use strict";var r=n(46518),i=n(43724),o=n(42551),a=n(79306),s=n(48981),u=n(24913);i&&r({target:"Object",proto:!0,forced:o},{__defineSetter__:function(t,e){u.f(s(this),t,{set:a(e),enumerable:!0,configurable:!0})}})},87631:function(t,e,n){"use strict";n.r(e),n.d(e,{TTS:function(){return D}});var r=n(80296),i=n(23029),o=n(92901),a=n(54756),s=n.n(a);function u(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return c(t,e);var n={}.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)?c(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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 o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n1&&void 0!==arguments[1]?arguments[1]:function(t){return t};(0,i.A)(this,t),l(this,C),f(this,T,[]),f(this,_,void 0),f(this,O,-1),f(this,M,void 0),p(_,this,e),p(M,this,n)}),[{key:"current",value:function(){if(d(T,this)[d(O,this)])return d(M,this).call(this,d(T,this)[d(O,this)])}},{key:"first",value:function(){if(d(T,this)[0])return p(O,this,0),d(M,this).call(this,d(T,this)[0])}},{key:"last",value:function(){var t,e=u(d(_,this));try{for(e.s();!(t=e.n()).done;){var n=t.value;d(T,this).push(n)}}catch(t){e.e(t)}finally{e.f()}var r=d(T,this).length-1;if(d(T,this)[r])return p(O,this,r),d(M,this).call(this,d(T,this)[r])}},{key:"prev",value:function(){var t=d(O,this)-1;if(d(T,this)[t])return p(O,this,t),d(M,this).call(this,d(T,this)[t])}},{key:"next",value:function(){var t=d(O,this)+1;if(d(T,this)[t])return p(O,this,t),d(M,this).call(this,d(T,this)[t]);for(;;){var e=d(_,this).next(),n=e.done,r=e.value;if(n)break;if(d(T,this).push(r),d(T,this)[t])return p(O,this,t),d(M,this).call(this,d(T,this)[t])}}},{key:"prepare",value:function(){var t=d(O,this)+1;if(d(T,this)[t])return d(M,this).call(this,d(T,this)[t]);for(;;){var e=d(_,this).next(),n=e.done,r=e.value;if(n)break;if(d(T,this).push(r),d(T,this)[t])return d(M,this).call(this,d(T,this)[t])}}},{key:"peek",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(t<=0)return[];for(var n=Math.max(d(O,this)+e,0),r=[],i=n+t,o=n;o-1)return p(O,this,e),d(M,this).call(this,d(T,this)[e]);for(;;){var n=d(_,this).next(),r=n.done,i=n.value;if(r)break;if(d(T,this).push(i),t(i))return p(O,this,d(T,this).length-1),d(M,this).call(this,i)}}}])}();function R(t){for(;null==d(T,this)[t];){var e=d(_,this).next(),n=e.done,r=e.value;if(n)break;if(d(T,this).push(r),d(T,this).length-1>=t)break}return d(T,this)[t]}var I=new WeakMap,P=new WeakMap,j=new WeakMap,F=new WeakSet,D=function(){return(0,o.A)((function t(e,n,r,o){(0,i.A)(this,t),l(this,F),f(this,I,void 0),f(this,P,void 0),f(this,j,void 0),this.doc=e,this.highlight=r,p(j,this,o),p(I,this,new L(E(e),(function(t){return[x(t),t]})))}),[{key:"start",value:function(){var t;p(P,this,null);var e=d(I,this).first();return e?null===(t=v(F,this,z).call(this,e,{highlight:!0}))||void 0===t?void 0:t.text:this.next()}},{key:"end",value:function(){var t;p(P,this,null);var e=d(I,this).last();return e?null===(t=v(F,this,z).call(this,e,{highlight:!0}))||void 0===t?void 0:t.text:this.next()}},{key:"resume",value:function(){var t,e=d(I,this).current();return e?null===(t=v(F,this,z).call(this,e))||void 0===t?void 0:t.text:this.next()}},{key:"prev",value:function(t){var e;p(P,this,null);var n=d(I,this).prev();return t&&null!=n&&n[1]&&this.highlight(n[1].cloneRange()),null===(e=v(F,this,z).call(this,n))||void 0===e?void 0:e.text}},{key:"next",value:function(t){var e;p(P,this,null);var n=d(I,this).next();return t&&null!=n&&n[1]&&this.highlight(n[1].cloneRange()),null===(e=v(F,this,z).call(this,n))||void 0===e?void 0:e.text}},{key:"prepare",value:function(){var t,e=d(I,this).prepare();return null===(t=v(F,this,z).call(this,e))||void 0===t?void 0:t.text}},{key:"from",value:function(t){var e;p(P,this,null);var n=d(I,this).find((function(e){return t.compareBoundaryPoints(Range.END_TO_START,e)<=0}));return null!=n&&n[1]&&this.highlight(n[1].cloneRange()),null===(e=v(F,this,z).call(this,n))||void 0===e?void 0:e.text}},{key:"currentDetail",value:function(){var t=v(F,this,B).call(this);return v(F,this,z).call(this,t)}},{key:"collectDetails",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.includeCurrent,r=void 0!==n&&n,i=e.offset,o=void 0===i?1:i;if(!Number.isFinite(t)||t<=0)return[];var a=[];if(r){var s=v(F,this,B).call(this),c=v(F,this,z).call(this,s);c&&a.push(c)}var l=t-a.length;if(l<=0)return a;var f,h=u(d(I,this).peek(l,o));try{for(h.s();!(f=h.n()).done;){var p=f.value,g=v(F,this,z).call(this,p);g&&a.push(g)}}catch(t){h.e(t)}finally{h.f()}return a}},{key:"highlightCfi",value:function(t){var e=this;if(!t)return null;var n=d(I,this).find((function(n){var r,i;return(null===(r=d(j,e))||void 0===r?void 0:r.call(e,null===(i=n.cloneRange)||void 0===i?void 0:i.call(n)))===t}));return n?v(F,this,z).call(this,n,{highlight:!0}):null}}])}();function N(t,e){var n;if(!t)return"";if(!e)return t;var r=document.createElement("div");r.innerHTML=t;for(var i=null===(n=e(r))||void 0===n?void 0:n.previousSibling;i;){var o,a,s=null!==(o=i.previousSibling)&&void 0!==o?o:null===(a=i.parentNode)||void 0===a?void 0:a.previousSibling;i.parentNode.removeChild(i),i=s}return r.textContent}function B(){var t;return d(I,this).current()||(null!==(t=d(I,this).first())&&void 0!==t?t:d(I,this).next())}function z(t){var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).highlight,n=void 0!==e&&e;if(!t)return null;var i=(0,r.A)(t,2),o=i[0],a=i[1];if(!o||!a)return null;var s,u=v(F,this,N).call(this,o),c=null;return n&&this.highlight&&a.cloneRange&&(c=null!==(s=this.highlight(a.cloneRange()))&&void 0!==s?s:null),!c&&d(j,this)&&a.cloneRange&&(c=d(j,this).call(this,a.cloneRange())),{text:u,cfi:c}}},87633:function(t,e,n){"use strict";var r=n(97751),i=n(62106),o=n(78227),a=n(43724),s=o("species");t.exports=function(t){var e=r(t);a&&e&&!e[s]&&i(e,s,{configurable:!0,get:function(){return this}})}},87745:function(t,e,n){"use strict";var r=n(43724),i=n(58429).MISSED_STICKY,o=n(22195),a=n(62106),s=n(91181).get,u=RegExp.prototype,c=TypeError;r&&i&&a(u,"sticky",{configurable:!0,get:function(){if(this!==u){if("RegExp"===o(this))return!!s(this).sticky;throw new c("Incompatible receiver, RegExp required")}}})},88267:function(t,e,n){"use strict";var r=n(46518),i=n(79504),o=n(655),a=String.fromCharCode,s=i("".charAt),u=i(/./.exec),c=i("".slice),l=/^[\da-f]{2}$/i,f=/^[\da-f]{4}$/i;r({global:!0},{unescape:function(t){for(var e,n,r=o(t),i="",h=r.length,d=0;d1?arguments[1]:void 0)}})},88490:function(t){"use strict";var e=Array,n=Math.abs,r=Math.pow,i=Math.floor,o=Math.log,a=Math.LN2;t.exports={pack:function(t,s,u){var c,l,f,h=e(u),d=8*u-s-1,p=(1<>1,g=23===s?r(2,-24)-r(2,-77):0,y=t<0||0===t&&1/t<0?1:0,m=0;for((t=n(t))!=t||t===1/0?(l=t!=t?1:0,c=p):(c=i(o(t)/a),t*(f=r(2,-c))<1&&(c--,f*=2),(t+=c+v>=1?g/f:g*r(2,1-v))*f>=2&&(c++,f/=2),c+v>=p?(l=0,c=p):c+v>=1?(l=(t*f-1)*r(2,s),c+=v):(l=t*r(2,v-1)*r(2,s),c=0));s>=8;)h[m++]=255&l,l/=256,s-=8;for(c=c<0;)h[m++]=255&c,c/=256,d-=8;return h[m-1]|=128*y,h},unpack:function(t,e){var n,i=t.length,o=8*i-e-1,a=(1<>1,u=o-7,c=i-1,l=t[c--],f=127&l;for(l>>=7;u>0;)f=256*f+t[c--],u-=8;for(n=f&(1<<-u)-1,f>>=-u,u+=e;u>0;)n=256*n+t[c--],u-=8;if(0===f)f=1-s;else{if(f===a)return n?NaN:l?-1/0:1/0;n+=r(2,e),f-=s}return(l?-1:1)*n*r(2,f-e)}}},88727:function(t){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},88747:function(t,e,n){"use strict";var r=n(94644),i=r.aTypedArray,o=r.exportTypedArrayMethod,a=Math.floor;o("reverse",(function(){for(var t,e=this,n=i(e).length,r=a(n/2),o=0;o1?arguments[1]:void 0)}))},90235:function(t,e,n){"use strict";var r=n(59213).forEach,i=n(34598)("forEach");t.exports=i?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},90537:function(t,e,n){"use strict";var r=n(80550),i=n(84428),o=n(10916).CONSTRUCTOR;t.exports=o||!i((function(t){r.all(t).then(void 0,(function(){}))}))},90679:function(t,e,n){"use strict";var r=n(1625),i=TypeError;t.exports=function(t,e){if(r(e,t))return t;throw new i("Incorrect invocation")}},90744:function(t,e,n){"use strict";var r=n(69565),i=n(79504),o=n(89228),a=n(28551),s=n(20034),u=n(67750),c=n(2293),l=n(57829),f=n(18014),h=n(655),d=n(55966),p=n(56682),v=n(58429),g=n(79039),y=v.UNSUPPORTED_Y,m=Math.min,b=i([].push),w=i("".slice),x=!g((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]})),k="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length;o("split",(function(t,e,n){var i="0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:r(e,this,t,n)}:e;return[function(e,n){var o=u(this),a=s(e)?d(e,t):void 0;return a?r(a,e,o,n):r(i,h(o),e,n)},function(t,r){var o=a(this),s=h(t);if(!k){var u=n(i,o,s,r,i!==e);if(u.done)return u.value}var d=c(o,RegExp),v=o.unicode,g=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(y?"g":"y"),x=new d(y?"^(?:"+o.source+")":o,g),A=void 0===r?4294967295:r>>>0;if(0===A)return[];if(0===s.length)return null===p(x,s)?[s]:[];for(var S=0,E=0,T=[];E1?arguments[1]:void 0)}))},91181:function(t,e,n){"use strict";var r,i,o,a=n(58622),s=n(44576),u=n(20034),c=n(66699),l=n(39297),f=n(77629),h=n(66119),d=n(30421),p="Object already initialized",v=s.TypeError,g=s.WeakMap;if(a||f.state){var y=f.state||(f.state=new g);y.get=y.get,y.has=y.has,y.set=y.set,r=function(t,e){if(y.has(t))throw new v(p);return e.facade=t,y.set(t,e),e},i=function(t){return y.get(t)||{}},o=function(t){return y.has(t)}}else{var m=h("state");d[m]=!0,r=function(t,e){if(l(t,m))throw new v(p);return e.facade=t,c(t,m,e),e},i=function(t){return l(t,m)?t[m]:{}},o=function(t){return l(t,m)}}t.exports={set:r,get:i,has:o,enforce:function(t){return o(t)?i(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!u(e)||(n=i(e)).type!==t)throw new v("Incompatible receiver, "+t+" required");return n}}}},91191:function(t,e,n){"use strict";var r=n(46518),i=n(79504),o=n(91291),a=Date.prototype,s=i(a.getTime),u=i(a.setFullYear);r({target:"Date",proto:!0},{setYear:function(t){s(this);var e=o(t);return u(this,e>=0&&e<=99?e+1900:e)}})},91291:function(t,e,n){"use strict";var r=n(80741);t.exports=function(t){var e=+t;return e!=e||0===e?0:r(e)}},91296:function(t,e,n){"use strict";var r=n(4495);t.exports=r&&!!Symbol.for&&!!Symbol.keyFor},91385:function(t,e,n){"use strict";var r=n(9539);t.exports=function(t,e,n){for(var i=t.length-1;i>=0;i--)if(void 0!==t[i])try{n=r(t[i].iterator,e,n)}catch(t){e="throw",n=t}if("throw"===e)throw n;return n}},91625:function(t,e,n){"use strict";var r=n(79504),i=n(56279),o=n(3451).getWeakData,a=n(90679),s=n(28551),u=n(64117),c=n(20034),l=n(72652),f=n(59213),h=n(39297),d=n(91181),p=d.set,v=d.getterFor,g=f.find,y=f.findIndex,m=r([].splice),b=0,w=function(t){return t.frozen||(t.frozen=new x)},x=function(){this.entries=[]},k=function(t,e){return g(t.entries,(function(t){return t[0]===e}))};x.prototype={get:function(t){var e=k(this,t);if(e)return e[1]},has:function(t){return!!k(this,t)},set:function(t,e){var n=k(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=y(this.entries,(function(e){return e[0]===t}));return~e&&m(this.entries,e,1),!!~e}},t.exports={getConstructor:function(t,e,n,r){var f=t((function(t,i){a(t,d),p(t,{type:e,id:b++,frozen:null}),u(i)||l(i,t[r],{that:t,AS_ENTRIES:n})})),d=f.prototype,g=v(e),y=function(t,e,n){var r=g(t),i=o(s(e),!0);return!0===i?w(r).set(e,n):i[r.id]=n,t};return i(d,{delete:function(t){var e=g(this);if(!c(t))return!1;var n=o(t);return!0===n?w(e).delete(t):n&&h(n,e.id)&&delete n[e.id]},has:function(t){var e=g(this);if(!c(t))return!1;var n=o(t);return!0===n?w(e).has(t):n&&h(n,e.id)}}),i(d,n?{get:function(t){var e=g(this);if(c(t)){var n=o(t);if(!0===n)return w(e).get(t);if(n)return n[e.id]}},set:function(t,e){return y(this,t,e)}}:{add:function(t){return y(this,t,!0)}}),f}}},91955:function(t,e,n){"use strict";var r,i,o,a,s,u=n(44576),c=n(93389),l=n(76080),f=n(59225).set,h=n(18265),d=n(89544),p=n(44265),v=n(7860),g=n(38574),y=u.MutationObserver||u.WebKitMutationObserver,m=u.document,b=u.process,w=u.Promise,x=c("queueMicrotask");if(!x){var k=new h,A=function(){var t,e;for(g&&(t=b.domain)&&t.exit();e=k.get();)try{e()}catch(t){throw k.head&&r(),t}t&&t.enter()};d||g||v||!y||!m?!p&&w&&w.resolve?((a=w.resolve(void 0)).constructor=w,s=l(a.then,a),r=function(){s(A)}):g?r=function(){b.nextTick(A)}:(f=l(f,u),r=function(){f(A)}):(i=!0,o=m.createTextNode(""),new y(A).observe(o,{characterData:!0}),r=function(){o.data=i=!i}),x=function(t){k.head||r(),k.add(t)}}t.exports=x},92140:function(t,e,n){"use strict";var r={};r[n(78227)("toStringTag")]="z",t.exports="[object z]"===String(r)},92168:function(t,e,n){"use strict";n(70511)("isConcatSpreadable")},92405:function(t,e,n){"use strict";n(16468)("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),n(86938))},92407:function(t,e,n){"use strict";n.d(e,{F:function(){return b}});var r=n(23029),i=n(92901),o=n(56822),a=n(53954),s=n(85501),u=n(28614),c=n(64467);function l(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(l=function(){return!!t})()}function f(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}var h=function(t){var e;return new Set(null==t||null===(e=t.getAttributeNS)||void 0===e||null===(e=e.call(t,"http://www.idpf.org/2007/ops","type"))||void 0===e?void 0:e.split(" "))},d=function(t){var e;return new Set(null==t||null===(e=t.getAttribute)||void 0===e||null===(e=e.call(t,"role"))||void 0===e?void 0:e.split(" "))},p=function(t){var e=getComputedStyle(t).verticalAlign;return"super"===e||/^\d/.test(e)},v=["biblioref","glossref","noteref"],g=["doc-biblioref","doc-glossref","doc-noteref"],y="a, span, sup, sub, em, strong, i, b, small, big",m=new WeakSet,b=function(t){function e(){var t,n,i,s;(0,r.A)(this,e);for(var u=arguments.length,f=new Array(u),h=0;h94906265.62425156?a(e)+u:i(e-1+s(e-1)*s(e+1))}})},93389:function(t,e,n){"use strict";var r=n(44576),i=n(43724),o=Object.getOwnPropertyDescriptor;t.exports=function(t){if(!i)return r[t];var e=o(r,t);return e&&e.value}},93438:function(t,e,n){"use strict";var r=n(28551),i=n(20034),o=n(36043);t.exports=function(t,e){if(r(t),i(e)&&e.constructor===t)return e;var n=o.f(t);return(0,n.resolve)(e),n.promise}},93514:function(t,e,n){"use strict";n(6469)("flat")},93515:function(t,e,n){"use strict";n(46518)({target:"Date",proto:!0},{toGMTString:Date.prototype.toUTCString})},93518:function(t,e,n){"use strict";var r=n(46518),i=n(69565),o=n(79306),a=n(97751),s=n(36043),u=n(1103),c=n(72652),l=n(90537),f="No one promise resolved";r({target:"Promise",stat:!0,forced:l},{any:function(t){var e=this,n=a("AggregateError"),r=s.f(e),l=r.resolve,h=r.reject,d=u((function(){var r=o(e.resolve),a=[],s=0,u=1,d=!1;c(t,(function(t){var o=s++,c=!1;u++,i(r,e,t).then((function(t){c||d||(d=!0,l(t))}),(function(t){c||d||(c=!0,a[o]=t,--u||h(new n(a,f)))}))})),--u||h(new n(a,f))}));return d.error&&h(d.value),r.promise}})},93941:function(t,e,n){"use strict";var r=n(46518),i=n(20034),o=n(3451).onFreeze,a=n(92744),s=n(79039),u=Object.seal;r({target:"Object",stat:!0,forced:s((function(){u(1)})),sham:!a},{seal:function(t){return u&&i(t)?u(o(t)):t}})},93967:function(t,e,n){"use strict";var r=n(46518),i=n(20034),o=n(3451).onFreeze,a=n(92744),s=n(79039),u=Object.preventExtensions;r({target:"Object",stat:!0,forced:s((function(){u(1)})),sham:!a},{preventExtensions:function(t){return u&&i(t)?u(o(t)):t}})},94003:function(t,e,n){"use strict";var r=n(46518),i=n(79039),o=n(20034),a=n(22195),s=n(15652),u=Object.isFrozen;r({target:"Object",stat:!0,forced:s||i((function(){u(1)}))},{isFrozen:function(t){return!o(t)||!(!s||"ArrayBuffer"!==a(t))||!!u&&u(t)}})},94052:function(t,e,n){"use strict";var r=n(46518),i=n(34124);r({target:"Object",stat:!0,forced:Object.isExtensible!==i},{isExtensible:i})},94170:function(t,e,n){"use strict";var r=n(46518),i=n(30566);r({target:"Function",proto:!0,forced:Function.bind!==i},{bind:i})},94298:function(t,e,n){"use strict";var r=n(46518),i=n(77240);r({target:"String",proto:!0,forced:n(23061)("fixed")},{fixed:function(){return i(this,"tt","","")}})},94402:function(t,e,n){"use strict";var r=n(79504),i=Set.prototype;t.exports={Set:Set,add:r(i.add),has:r(i.has),remove:r(i.delete),proto:i}},94483:function(t,e,n){"use strict";var r,i,o,a,s=n(44576),u=n(89429),c=n(1548),l=s.structuredClone,f=s.ArrayBuffer,h=s.MessageChannel,d=!1;if(c)d=function(t){l(t,{transfer:[t]})};else if(f)try{h||(r=u("worker_threads"))&&(h=r.MessageChannel),h&&(i=new h,o=new f(2),a=function(t){i.port1.postMessage(null,[t])},2===o.byteLength&&(a(o),0===o.byteLength&&(d=a)))}catch(t){}t.exports=d},94490:function(t,e,n){"use strict";var r=n(46518),i=n(79504),o=n(34376),a=i([].reverse),s=[1,2];r({target:"Array",proto:!0,forced:String(s)===String(s.reverse())},{reverse:function(){return o(this)&&(this.length=this.length),a(this)}})},94644:function(t,e,n){"use strict";var r,i,o,a=n(77811),s=n(43724),u=n(44576),c=n(94901),l=n(20034),f=n(39297),h=n(36955),d=n(16823),p=n(66699),v=n(36840),g=n(62106),y=n(1625),m=n(42787),b=n(52967),w=n(78227),x=n(33392),k=n(91181),A=k.enforce,S=k.get,E=u.Int8Array,T=E&&E.prototype,_=u.Uint8ClampedArray,O=_&&_.prototype,M=E&&m(E),C=T&&m(T),L=Object.prototype,R=u.TypeError,I=w("toStringTag"),P=x("TYPED_ARRAY_TAG"),j="TypedArrayConstructor",F=a&&!!b&&"Opera"!==h(u.opera),D=!1,N={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},B={BigInt64Array:8,BigUint64Array:8},z=function(t){var e=m(t);if(l(e)){var n=S(e);return n&&f(n,j)?n[j]:z(e)}},U=function(t){if(!l(t))return!1;var e=h(t);return f(N,e)||f(B,e)};for(r in N)(o=(i=u[r])&&i.prototype)?A(o)[j]=i:F=!1;for(r in B)(o=(i=u[r])&&i.prototype)&&(A(o)[j]=i);if((!F||!c(M)||M===Function.prototype)&&(M=function(){throw new R("Incorrect invocation")},F))for(r in N)u[r]&&b(u[r],M);if((!F||!C||C===L)&&(C=M.prototype,F))for(r in N)u[r]&&b(u[r].prototype,C);if(F&&m(O)!==C&&b(O,C),s&&!f(C,I))for(r in D=!0,g(C,I,{configurable:!0,get:function(){return l(this)?this[P]:void 0}}),N)u[r]&&p(u[r],P,r);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:F,TYPED_ARRAY_TAG:D&&P,aTypedArray:function(t){if(U(t))return t;throw new R("Target is not a typed array")},aTypedArrayConstructor:function(t){if(c(t)&&(!b||y(M,t)))return t;throw new R(d(t)+" is not a typed array constructor")},exportTypedArrayMethod:function(t,e,n,r){if(s){if(n)for(var i in N){var o=u[i];if(o&&f(o.prototype,t))try{delete o.prototype[t]}catch(n){try{o.prototype[t]=e}catch(t){}}}C[t]&&!n||v(C,t,n?e:F&&T[t]||e,r)}},exportTypedArrayStaticMethod:function(t,e,n){var r,i;if(s){if(b){if(n)for(r in N)if((i=u[r])&&f(i,t))try{delete i[t]}catch(t){}if(M[t]&&!n)return;try{return v(M,t,n?e:F&&M[t]||e)}catch(t){}}for(r in N)!(i=u[r])||i[t]&&!n||v(i,t,e)}},getTypedArrayConstructor:z,isView:function(t){if(!l(t))return!1;var e=h(t);return"DataView"===e||f(N,e)||f(B,e)},isTypedArray:U,TypedArray:M,TypedArrayPrototype:C}},94901:function(t){"use strict";var e="object"==typeof document&&document.all;t.exports=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(t){return"function"==typeof t}},95477:function(t,e,n){"use strict";n(15823)("Int32",(function(t){return function(e,n,r){return t(this,e,n,r)}}))},95636:function(t,e,n){"use strict";var r=n(44576),i=n(79504),o=n(46706),a=n(57696),s=n(55169),u=n(67394),c=n(94483),l=n(1548),f=r.structuredClone,h=r.ArrayBuffer,d=r.DataView,p=Math.min,v=h.prototype,g=d.prototype,y=i(v.slice),m=o(v,"resizable","get"),b=o(v,"maxByteLength","get"),w=i(g.getInt8),x=i(g.setInt8);t.exports=(l||c)&&function(t,e,n){var r,i=u(t),o=void 0===e?i:a(e),v=!m||!m(t);if(s(t),l&&(t=f(t,{transfer:[t]}),i===o&&(n||v)))return t;if(i>=o&&(!n||v))r=y(t,0,o);else{var g=n&&!v&&b?{maxByteLength:b(t)}:void 0;r=new h(o,g);for(var k=new d(t),A=new d(r),S=p(o,i),E=0;E@`~"+u+"]"),m=i(v.exec),b={"\t":"t","\n":"n","\v":"v","\f":"f","\r":"r"},w=function(t){var e=d(h(t,0),16);return e.length<3?"\\x"+s(e,2,"0"):"\\u"+s(e,4,"0")};r({target:"RegExp",stat:!0,forced:!l||"\\x61b"!==l("ab")},{escape:function(t){o(t);for(var e=t.length,n=c(e),r=0;r=56320||r+1>=e||56320!=(64512&h(t,r+1))?n[r]=w(i):(n[r]=i,n[++r]=f(t,r))}}return p(n,"")}})},96167:function(t,e,n){"use strict";var r=n(46518),i=n(69565),o=n(79306),a=n(36043),s=n(1103),u=n(72652);r({target:"Promise",stat:!0,forced:n(90537)},{allSettled:function(t){var e=this,n=a.f(e),r=n.resolve,c=n.reject,l=s((function(){var n=o(e.resolve),a=[],s=0,c=1;u(t,(function(t){var o=s++,u=!1;c++,i(n,e,t).then((function(t){u||(u=!0,a[o]={status:"fulfilled",value:t},--c||r(a))}),(function(t){u||(u=!0,a[o]={status:"rejected",reason:t},--c||r(a))}))})),--c||r(a)}));return l.error&&c(l.value),n.promise}})},96319:function(t,e,n){"use strict";var r=n(28551),i=n(9539);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){i(t,"throw",e)}}},96395:function(t){"use strict";t.exports=!1},96801:function(t,e,n){"use strict";var r=n(43724),i=n(48686),o=n(24913),a=n(28551),s=n(25397),u=n(71072);e.f=r&&!i?Object.defineProperties:function(t,e){a(t);for(var n,r=s(e),i=u(e),c=i.length,l=0;c>l;)o.f(t,n=i[l++],r[n]);return t}},96837:function(t){"use strict";var e=TypeError;t.exports=function(t){if(t>9007199254740991)throw e("Maximum allowed index exceeded");return t}},97040:function(t,e,n){"use strict";var r=n(43724),i=n(24913),o=n(6980);t.exports=function(t,e,n){r?i.f(t,e,o(0,n)):t[e]=n}},97080:function(t,e,n){"use strict";var r=n(94402).has;t.exports=function(t){return r(t),t}},97324:function(t,e,n){"use strict";var r=n(44576),i=n(70511),o=n(24913).f,a=n(77347).f,s=r.Symbol;if(i("dispose"),s){var u=a(s,"dispose");u.enumerable&&u.configurable&&u.writable&&o(s,"dispose",{value:u.value,enumerable:!1,configurable:!1,writable:!1})}},97751:function(t,e,n){"use strict";var r=n(44576),i=n(94901);t.exports=function(t,e){return arguments.length<2?(n=r[t],i(n)?n:void 0):r[t]&&r[t][e];var n}},97812:function(t,e,n){"use strict";var r=n(46518),i=n(39297),o=n(10757),a=n(16823),s=n(25745),u=n(91296),c=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!u},{keyFor:function(t){if(!o(t))throw new TypeError(a(t)+" is not a symbol");if(i(c,t))return c[t]}})},97916:function(t,e,n){"use strict";var r=n(76080),i=n(69565),o=n(48981),a=n(96319),s=n(44209),u=n(33517),c=n(26198),l=n(97040),f=n(70081),h=n(50851),d=Array;t.exports=function(t){var e=o(t),n=u(this),p=arguments.length,v=p>1?arguments[1]:void 0,g=void 0!==v;g&&(v=r(v,p>2?arguments[2]:void 0));var y,m,b,w,x,k,A=h(e),S=0;if(!A||this===d&&s(A))for(y=c(e),m=n?new this(y):d(y);y>S;S++)k=g?v(e[S],S):e[S],l(m,S,k);else for(m=n?new this:[],x=(w=f(e,A)).next;!(b=i(x,w)).done;S++)k=g?a(w,v,[b.value,S],!0):b.value,l(m,S,k);return m.length=S,m}},98406:function(t,e,n){"use strict";n(23792),n(27337);var r=n(46518),i=n(44576),o=n(93389),a=n(97751),s=n(69565),u=n(79504),c=n(43724),l=n(67416),f=n(36840),h=n(62106),d=n(56279),p=n(10687),v=n(33994),g=n(91181),y=n(90679),m=n(94901),b=n(39297),w=n(76080),x=n(36955),k=n(28551),A=n(20034),S=n(655),E=n(2360),T=n(6980),_=n(70081),O=n(50851),M=n(62529),C=n(22812),L=n(78227),R=n(74488),I=L("iterator"),P="URLSearchParams",j=P+"Iterator",F=g.set,D=g.getterFor(P),N=g.getterFor(j),B=o("fetch"),z=o("Request"),U=o("Headers"),W=z&&z.prototype,H=U&&U.prototype,q=i.TypeError,V=i.encodeURIComponent,$=String.fromCharCode,G=a("String","fromCodePoint"),X=parseInt,Y=u("".charAt),K=u([].join),J=u([].push),Z=u("".replace),Q=u([].shift),tt=u([].splice),et=u("".split),nt=u("".slice),rt=u(/./.exec),it=/\+/g,ot=/^[0-9a-f]+$/i,at=function(t,e){var n=nt(t,e,e+2);return rt(ot,n)?X(n,16):NaN},st=function(t){for(var e=0,n=128;n>0&&t&n;n>>=1)e++;return e},ut=function(t){var e=null;switch(t.length){case 1:e=t[0];break;case 2:e=(31&t[0])<<6|63&t[1];break;case 3:e=(15&t[0])<<12|(63&t[1])<<6|63&t[2];break;case 4:e=(7&t[0])<<18|(63&t[1])<<12|(63&t[2])<<6|63&t[3]}return e>1114111?null:e},ct=function(t){for(var e=(t=Z(t,it," ")).length,n="",r=0;re){n+="%",r++;continue}var o=at(t,r+1);if(o!=o){n+=i,r++;continue}r+=2;var a=st(o);if(0===a)i=$(o);else{if(1===a||a>4){n+="�",r++;continue}for(var s=[o],u=1;ue||"%"!==Y(t,r));){var c=at(t,r+1);if(c!=c){r+=3;break}if(c>191||c<128)break;J(s,c),r+=2,u++}if(s.length!==a){n+="�";continue}var l=ut(s);null===l?n+="�":i=G(l)}}n+=i,r++}return n},lt=/[!'()~]|%20/g,ft={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},ht=function(t){return ft[t]},dt=function(t){return Z(V(t),lt,ht)},pt=v((function(t,e){F(this,{type:j,target:D(t).entries,index:0,kind:e})}),P,(function(){var t=N(this),e=t.target,n=t.index++;if(!e||n>=e.length)return t.target=null,M(void 0,!0);var r=e[n];switch(t.kind){case"keys":return M(r.key,!1);case"values":return M(r.value,!1)}return M([r.key,r.value],!1)}),!0),vt=function(t){this.entries=[],this.url=null,void 0!==t&&(A(t)?this.parseObject(t):this.parseQuery("string"==typeof t?"?"===Y(t,0)?nt(t,1):t:S(t)))};vt.prototype={type:P,bindURL:function(t){this.url=t,this.update()},parseObject:function(t){var e,n,r,i,o,a,u,c=this.entries,l=O(t);if(l)for(n=(e=_(t,l)).next;!(r=s(n,e)).done;){if(o=(i=_(k(r.value))).next,(a=s(o,i)).done||(u=s(o,i)).done||!s(o,i).done)throw new q("Expected sequence with length 2");J(c,{key:S(a.value),value:S(u.value)})}else for(var f in t)b(t,f)&&J(c,{key:f,value:S(t[f])})},parseQuery:function(t){if(t)for(var e,n,r=this.entries,i=et(t,"&"),o=0;o0?arguments[0]:void 0));c||(this.size=t.entries.length)},yt=gt.prototype;if(d(yt,{append:function(t,e){var n=D(this);C(arguments.length,2),J(n.entries,{key:S(t),value:S(e)}),c||this.length++,n.updateURL()},delete:function(t){for(var e=D(this),n=C(arguments.length,1),r=e.entries,i=S(t),o=n<2?void 0:arguments[1],a=void 0===o?o:S(o),s=0;se.key?1:-1})),t.updateURL()},forEach:function(t){for(var e,n=D(this).entries,r=w(t,arguments.length>1?arguments[1]:void 0),i=0;i1?wt(arguments[1]):{})}}),m(z)){var xt=function(t){return y(this,W),new z(t,arguments.length>1?wt(arguments[1]):{})};W.constructor=xt,xt.prototype=W,r({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:xt})}}t.exports={URLSearchParams:gt,getState:D}},98690:function(t,e,n){"use strict";var r=n(46518),i=n(53250),o=Math.exp;r({target:"Math",stat:!0},{tanh:function(t){var e=+t,n=i(e),r=i(-e);return n===1/0?1:r===1/0?-1:(n-r)/(o(e)+o(-e))}})},98721:function(t,e,n){"use strict";var r=n(43724),i=n(79504),o=n(62106),a=URLSearchParams.prototype,s=i(a.forEach);r&&!("size"in a)&&o(a,"size",{get:function(){var t=0;return s(this,(function(){t++})),t},configurable:!0,enumerable:!0})},99449:function(t,e,n){"use strict";var r,i=n(46518),o=n(27476),a=n(77347).f,s=n(18014),u=n(655),c=n(60511),l=n(67750),f=n(41436),h=n(96395),d=o("".slice),p=Math.min,v=f("endsWith");i({target:"String",proto:!0,forced:!(!h&&!v&&(r=a(String.prototype,"endsWith"),r&&!r.writable)||v)},{endsWith:function(t){var e=u(l(this));c(t);var n=arguments.length>1?arguments[1]:void 0,r=e.length,i=void 0===n?r:p(s(n),r),o=u(t);return d(e,i-o.length,i)===o}})},99590:function(t,e,n){"use strict";var r=n(91291),i=RangeError;t.exports=function(t){var e=r(t);if(e<0)throw new i("The argument can't be less than 0");return e}}},o={};function a(t){var e=o[t];if(void 0!==e)return e.exports;var n=o[t]={exports:{}};return i[t].call(n.exports,n,n.exports,a),n.exports}t="function"==typeof Symbol?Symbol("webpack queues"):"__webpack_queues__",e="function"==typeof Symbol?Symbol("webpack exports"):"__webpack_exports__",n="function"==typeof Symbol?Symbol("webpack error"):"__webpack_error__",r=function(t){t&&t.d<1&&(t.d=1,t.forEach((function(t){t.r--})),t.forEach((function(t){t.r--?t.r++:t()})))},a.a=function(i,o,a){var s;a&&((s=[]).d=-1);var u,c,l,f=new Set,h=i.exports,d=new Promise((function(t,e){l=e,c=t}));d[e]=h,d[t]=function(t){s&&t(s),f.forEach(t),d.catch((function(){}))},i.exports=d,o((function(i){var o;u=function(i){return i.map((function(i){if(null!==i&&"object"==typeof i){if(i[t])return i;if(i.then){var o=[];o.d=0,i.then((function(t){a[e]=t,r(o)}),(function(t){a[n]=t,r(o)}));var a={};return a[t]=function(t){t(o)},a}}var s={};return s[t]=function(){},s[e]=i,s}))}(i);var a=function(){return u.map((function(t){if(t[n])throw t[n];return t[e]}))},c=new Promise((function(e){(o=function(){e(a)}).r=0;var n=function(t){t!==s&&!f.has(t)&&(f.add(t),t&&!t.d&&(o.r++,t.push(o)))};u.map((function(e){e[t](n)}))}));return o.r?c:a()}),(function(t){t?l(d[n]=t):c(h),r(s)})),s&&s.d<0&&(s.d=0)},a.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return a.d(e,{a:e}),e},a.d=function(t,e){for(var n in e)a.o(e,n)&&!a.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},a.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},a(84315);var s=a(26561);return s.default}()})); \ No newline at end of file +!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.FoliateJS=e():t.FoliateJS=e()}("undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:this,(function(){return function(){var t,e,n,r,i={122:function(t,e,n){"use strict";var r=n(46518),i=n(44576),o=n(91955),a=n(79306),s=n(22812),u=n(79039),c=n(43724);r({global:!0,enumerable:!0,dontCallGetSet:!0,forced:u((function(){return c&&1!==Object.getOwnPropertyDescriptor(i,"queueMicrotask").value.length}))},{queueMicrotask:function(t){s(arguments.length,1),o(a(t))}})},221:function(t,e,n){"use strict";var r=n(46518),i=n(79039),o=n(20034),a=n(22195),s=n(15652),u=Object.isSealed;r({target:"Object",stat:!0,forced:s||i((function(){u(1)}))},{isSealed:function(t){return!o(t)||!(!s||"ArrayBuffer"!==a(t))||!!u&&u(t)}})},373:function(t,e,n){"use strict";var r=n(44576),i=n(27476),o=n(79039),a=n(79306),s=n(74488),u=n(94644),c=n(13709),l=n(13763),f=n(39519),h=n(3607),d=u.aTypedArray,p=u.exportTypedArrayMethod,v=r.Uint16Array,g=v&&i(v.prototype.sort),y=!(!g||o((function(){g(new v(2),null)}))&&o((function(){g(new v(2),{})}))),m=!!g&&!o((function(){if(f)return f<74;if(c)return c<67;if(l)return!0;if(h)return h<602;var t,e,n=new v(516),r=Array(516);for(t=0;t<516;t++)e=t%4,n[t]=515-t,r[t]=t-2*e+3;for(g(n,(function(t,e){return(t/4|0)-(e/4|0)})),t=0;t<516;t++)if(n[t]!==r[t])return!0}));p("sort",(function(t){return void 0!==t&&a(t),m?g(this,t):s(d(this),function(t){return function(e,n){return void 0!==t?+t(e,n)||0:n!=n?-1:e!=e?1:0===e&&0===n?1/e>0&&1/n<0?1:-1:e>n}}(t))}),!m||y)},655:function(t,e,n){"use strict";var r=n(36955),i=String;t.exports=function(t){if("Symbol"===r(t))throw new TypeError("Cannot convert a Symbol value to a string");return i(t)}},887:function(t,e,n){var r=n(16993),i=n(11791);t.exports=function(t,e,n,o,a){return new i(r().w(t,e,n,o),a||Promise)},t.exports.__esModule=!0,t.exports.default=t.exports},1103:function(t){"use strict";t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},1469:function(t,e,n){"use strict";var r=n(87433);t.exports=function(t,e){return new(r(t))(0===e?0:e)}},1480:function(t,e,n){"use strict";var r=n(46518),i=n(79039),o=n(10298).f;r({target:"Object",stat:!0,forced:i((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:o})},1548:function(t,e,n){"use strict";var r=n(44576),i=n(79039),o=n(39519),a=n(84215),s=r.structuredClone;t.exports=!!s&&!i((function(){if("DENO"===a&&o>92||"NODE"===a&&o>94||"BROWSER"===a&&o>97)return!1;var t=new ArrayBuffer(8),e=s(t,{transfer:[t]});return 0!==t.byteLength||8!==e.byteLength}))},1625:function(t,e,n){"use strict";var r=n(79504);t.exports=r({}.isPrototypeOf)},1688:function(t,e,n){"use strict";var r=n(46518),i=n(70380);r({target:"Date",proto:!0,forced:Date.prototype.toISOString!==i},{toISOString:i})},1767:function(t){"use strict";t.exports=function(t){return{iterator:t,next:t.next,done:!1}}},1886:function(t,e,n){"use strict";var r=n(69565),i=n(24074),o=n(28551),a=n(70081),s=n(1767),u=n(55966),c=n(78227)("asyncIterator");t.exports=function(t,e){var n=arguments.length<2?u(t,c):e;return n?o(r(n,t)):new i(s(a(t)))}},1951:function(t,e,n){"use strict";var r=n(78227);e.f=r},2008:function(t,e,n){"use strict";var r=n(46518),i=n(59213).filter;r({target:"Array",proto:!0,forced:!n(70597)("filter")},{filter:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},2087:function(t,e,n){"use strict";var r=n(20034),i=Math.floor;t.exports=Number.isInteger||function(t){return!r(t)&&isFinite(t)&&i(t)===t}},2222:function(t,e,n){"use strict";var r=n(46518),i=n(97751),o=n(79039),a=n(22812),s=n(655),u=n(67416),c=i("URL"),l=u&&o((function(){c.canParse()})),f=o((function(){return 1!==c.canParse.length}));r({target:"URL",stat:!0,forced:!l||f},{canParse:function(t){var e=a(arguments.length,1),n=s(t),r=e<2||void 0===arguments[1]?void 0:s(arguments[1]);try{return!!new c(n,r)}catch(t){return!1}}})},2259:function(t,e,n){"use strict";n(70511)("iterator")},2293:function(t,e,n){"use strict";var r=n(28551),i=n(35548),o=n(64117),a=n(78227)("species");t.exports=function(t,e){var n,s=r(t).constructor;return void 0===s||o(n=r(s)[a])?e:i(n)}},2360:function(t,e,n){"use strict";var r,i=n(28551),o=n(96801),a=n(88727),s=n(30421),u=n(20397),c=n(4055),l=n(66119),f="prototype",h="script",d=l("IE_PROTO"),p=function(){},v=function(t){return"<"+h+">"+t+""},g=function(t){t.write(v("")),t.close();var e=t.parentWindow.Object;return t=null,e},y=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;y="undefined"!=typeof document?document.domain&&r?g(r):(e=c("iframe"),n="java"+h+":",e.style.display="none",u.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(v("document.F=Object")),t.close(),t.F):g(r);for(var i=a.length;i--;)delete y[f][a[i]];return y()};s[d]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(p[f]=i(t),n=new p,p[f]=null,n[d]=t):n=y(),void 0===e?n:o.f(n,e)}},2419:function(t,e,n){"use strict";n.d(e,{k:function(){return d},r:function(){return v}});var r=n(3453),i=n(10467),o=n(23029),a=n(92901),s=n(54756),u=n.n(s);function c(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return l(t,e);var n={}.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)?l(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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 o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n0)return null!==(f=null===(h=a[p-1])||void 0===h?void 0:h.item)&&void 0!==f?f:o}}catch(t){l.e(t)}finally{l.f()}return a[a.length-1].item}}}]);var t}(),p=new WeakSet,v=function(){return(0,a.A)((function t(e,n,r){var i,a;(0,o.A)(this,t),function(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}(i=this,a=p),a.add(i),this.sizes=e.map((function(t){return"no"!=t.linear&&t.size>0?t.size:0})),this.sizePerLoc=n,this.sizePerTimeUnit=r,this.sizeTotal=this.sizes.reduce((function(t,e){return t+e}),0),this.sectionFractions=function(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}(p,this,g).call(this)}),[{key:"getProgress",value:function(t,e){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=this.sizes,o=this.sizePerLoc,a=this.sizePerTimeUnit,s=this.sizeTotal,u=null!==(n=i[t])&&void 0!==n?n:0,c=i.slice(0,t).reduce((function(t,e){return t+e}),0)+e*u,l=c+r*u,f=s-c,h=(1-e)*u;return{fraction:l/s,section:{current:t,total:i.length},location:{current:Math.floor(c/o),next:Math.floor(l/o),total:Math.ceil(s/o)},time:{section:h/a,total:f/a}}}},{key:"getSection",value:function(t){if(t<=0)return[0,0];if(t>=1)return[this.sizes.length-1,1];t+=Number.EPSILON;var e=this.sizeTotal,n=this.sectionFractions.findIndex((function(e){return e>t}))-1;if(n<0)return[0,0];for(;!this.sizes[n];)n++;return[n,(t-this.sectionFractions[n])/(this.sizes[n]/e)]}}])}();function g(){var t,e=this.sizeTotal,n=[0],r=0,i=c(this.sizes);try{for(i.s();!(t=i.n()).done;){var o=t.value;n.push((r+=o)/e)}}catch(t){i.e(t)}finally{i.f()}return n}},2478:function(t,e,n){"use strict";var r=n(79504),i=n(48981),o=Math.floor,a=r("".charAt),s=r("".replace),u=r("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,n,r,f,h){var d=n+t.length,p=r.length,v=l;return void 0!==f&&(f=i(f),v=c),s(h,v,(function(i,s){var c;switch(a(s,0)){case"$":return"$";case"&":return t;case"`":return u(e,0,n);case"'":return u(e,d);case"<":c=f[u(s,1,-1)];break;default:var l=+s;if(0===l)return i;if(l>p){var h=o(l/10);return 0===h?i:h<=p?void 0===r[h-1]?a(s,1):r[h-1]+a(s,1):i}c=r[l-1]}return void 0===c?"":c}))}},2892:function(t,e,n){"use strict";var r=n(46518),i=n(96395),o=n(43724),a=n(44576),s=n(19167),u=n(79504),c=n(92796),l=n(39297),f=n(23167),h=n(1625),d=n(10757),p=n(72777),v=n(79039),g=n(38480).f,y=n(77347).f,m=n(24913).f,b=n(31240),w=n(43802).trim,x="Number",k=a[x],A=s[x],S=k.prototype,E=a.TypeError,T=u("".slice),_=u("".charCodeAt),O=c(x,!k(" 0o1")||!k("0b1")||k("+0x1")),M=function(t){var e,n=arguments.length<1?0:k(function(t){var e=p(t,"number");return"bigint"==typeof e?e:function(t){var e,n,r,i,o,a,s,u,c=p(t,"number");if(d(c))throw new E("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=w(c),43===(e=_(c,0))||45===e){if(88===(n=_(c,2))||120===n)return NaN}else if(48===e){switch(_(c,1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+c}for(a=(o=T(c,2)).length,s=0;si)return NaN;return parseInt(o,r)}return+c}(e)}(t));return h(S,e=this)&&v((function(){b(e)}))?f(Object(n),this,M):n};M.prototype=S,O&&!i&&(S.constructor=M),r({global:!0,constructor:!0,wrap:!0,forced:O},{Number:M});var C=function(t,e){for(var n,r=o?g(e):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),i=0;r.length>i;i++)l(e,n=r[i])&&!l(t,n)&&m(t,n,y(e,n))};i&&A&&C(s[x],A),(O||i)&&C(s[x],k)},2945:function(t,e,n){"use strict";var r=n(46518),i=n(44576),o=n(97751),a=n(79504),s=n(69565),u=n(79039),c=n(655),l=n(22812),f=n(92804).c2i,h=/[^\d+/a-z]/i,d=/[\t\n\f\r ]+/g,p=/[=]{1,2}$/,v=o("atob"),g=String.fromCharCode,y=a("".charAt),m=a("".replace),b=a(h.exec),w=!!v&&!u((function(){return"hi"!==v("aGk=")})),x=w&&u((function(){return""!==v(" ")})),k=w&&!u((function(){v("a")})),A=w&&!u((function(){v()})),S=w&&1!==v.length;r({global:!0,bind:!0,enumerable:!0,forced:!w||x||k||A||S},{atob:function(t){if(l(arguments.length,1),w&&!x&&!k)return s(v,i,t);var e,n,r,a=m(c(t),d,""),u="",A=0,S=0;if(a.length%4==0&&(a=m(a,p,"")),(e=a.length)%4==1||b(h,a))throw new(o("DOMException"))("The string is not correctly encoded","InvalidCharacterError");for(;A>(-2*S&6)));return u}})},3238:function(t,e,n){"use strict";var r=n(44576),i=n(77811),o=n(67394),a=r.DataView;t.exports=function(t){if(!i||0!==o(t))return!1;try{return new a(t),!1}catch(t){return!0}}},3296:function(t,e,n){"use strict";n(45806)},3362:function(t,e,n){"use strict";n(10436),n(16499),n(82003),n(7743),n(51481),n(40280)},3451:function(t,e,n){"use strict";var r=n(46518),i=n(79504),o=n(30421),a=n(20034),s=n(39297),u=n(24913).f,c=n(38480),l=n(10298),f=n(34124),h=n(33392),d=n(92744),p=!1,v=h("meta"),g=0,y=function(t){u(t,v,{value:{objectID:"O"+g++,weakData:{}}})},m=t.exports={enable:function(){m.enable=function(){},p=!0;var t=c.f,e=i([].splice),n={};n[v]=1,t(n).length&&(c.f=function(n){for(var r=t(n),i=0,o=r.length;i>1,t+=l(t/e);t>455;)t=l(t/35),r+=36;return l(r+36*t/(t+38))},w=function(t){var e=[];t=function(t){for(var e=[],n=0,r=t.length;n=55296&&i<=56319&&n=a&&rl((i-c)/x))throw new u(s);for(c+=(w-a)*x,a=w,n=0;ni)throw new u(s);if(r===a){for(var k=c,A=36;;){var S=A<=v?1:A>=v+26?26:A-v;if(k=65520)return e<<15|31744;if(t<61005353927612305e-21)return e<<15|u(16777216*t);var n=0|s(t);if(-15===n)return e<<15|l;var r=u((t*c(2,-n)-1)*l);return r===l?e<<15|n+16<<10:e<<15|n+15<<10|r}(+e),arguments.length>2&&arguments[2])}})},4055:function(t,e,n){"use strict";var r=n(44576),i=n(20034),o=r.document,a=i(o)&&i(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},4294:function(t,e,n){"use strict";var r=n(46518),i=n(97751),o=n(18745),a=n(79039),s=n(14601),u="AggregateError",c=i(u),l=!a((function(){return 1!==c([1]).errors[0]}))&&a((function(){return 7!==c([1],u,{cause:7}).cause}));r({global:!0,constructor:!0,arity:2,forced:l},{AggregateError:s(u,(function(t){return function(e,n){return o(t,this,arguments)}}),l,!0)})},4360:function(t,e,n){"use strict";var r=n(46518),i=n(33164);r({target:"Math",stat:!0},{f16round:function(t){return i(t,.0009765625,65504,6103515625e-14)}})},4373:function(t){t.exports=function(t){var e=Object(t),n=[];for(var r in e)n.unshift(r);return function t(){for(;n.length;)if((r=n.pop())in e)return t.value=r,t.done=!1,t;return t.done=!0,t}},t.exports.__esModule=!0,t.exports.default=t.exports},4495:function(t,e,n){"use strict";var r=n(39519),i=n(79039),o=n(44576).String;t.exports=!!Object.getOwnPropertySymbols&&!i((function(){var t=Symbol("symbol detection");return!o(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},4633:function(t,e,n){var r=n(25172),i=n(16993),o=n(55869),a=n(887),s=n(11791),u=n(4373),c=n(30579);function l(){"use strict";var e=i(),n=e.m(l),f=(Object.getPrototypeOf?Object.getPrototypeOf(n):n.__proto__).constructor;function h(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))}var d={throw:1,return:2,break:3,continue:3};function p(t){var e,n;return function(r){e||(e={stop:function(){return n(r.a,2)},catch:function(){return r.v},abrupt:function(t,e){return n(r.a,d[t],e)},delegateYield:function(t,i,o){return e.resultName=i,n(r.d,c(t),o)},finish:function(t){return n(r.f,t)}},n=function(t,n,i){r.p=e.prev,r.n=e.next;try{return t(n,i)}finally{e.next=r.n}}),e.resultName&&(e[e.resultName]=r.v,e.resultName=void 0),e.sent=r.v,e.next=r.n;try{return t.call(this,e)}finally{r.p=e.prev,r.n=e.next}}}return(t.exports=l=function(){return{wrap:function(t,n,r,i){return e.w(p(t),n,r,i&&i.reverse())},isGeneratorFunction:h,mark:e.m,awrap:function(t,e){return new r(t,e)},AsyncIterator:s,async:function(t,e,n,r,i){return(h(e)?a:o)(p(t),e,n,r,i)},keys:u,values:c}},t.exports.__esModule=!0,t.exports.default=t.exports)()}t.exports=l,t.exports.__esModule=!0,t.exports.default=t.exports},4731:function(t,e,n){"use strict";var r=n(44576);n(10687)(r.JSON,"JSON",!0)},5240:function(t,e,n){"use strict";n(16468)("WeakSet",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),n(91625))},5457:function(t,e,n){"use strict";n.a(t,(async function(t,e){try{var r=n(80545),i=n(3453),o=n(10467),a=n(64467),s=n(23029),u=n(92901),c=n(56822),l=n(53954),f=n(85501),h=n(28614),d=n(56218),p=n(10600),v=n(54756),g=n.n(v),y=n(62248),m=n(2419),b=n(49557),w=n(79570),x=n(81234);function D(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=B(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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 o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function B(t,e){if(t){if("string"==typeof t)return z(t,e);var n={}.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)?z(t,e):void 0}}function z(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n=X(S,this).length-1)){var e={state:X(S,this)[t+1]};G(E,this,t+1),this.dispatchEvent(new CustomEvent("popstate",{detail:e})),this.dispatchEvent(new Event("index-change"))}}},{key:"canGoBack",get:function(){return X(E,this)>0}},{key:"canGoForward",get:function(){return X(E,this)window.innerWidth;)window.innerWidth,(0,r.A)("clientX");Y(F,e,Z).call(e,"click-view",{x:n,y:i})}))}function it(t){return this.renderer.getContents().find((function(e){return e.index===t&&e.overlayer}))}function ot(t){var e=this,n=t.doc,r=t.index,o=new b.u(n);n.addEventListener("click",(function(t){var n=o.hitTest(t),a=(0,i.A)(n,2),s=a[0],u=a[1];s&&!s.startsWith(A)&&(t.preventDefault(),t.stopPropagation(),Y(F,e,Z).call(e,"show-annotation",{value:s,index:r,range:u}))}),!0);var a=X(R,this).get(r);if(a){var s,u=D(a);try{for(u.s();!(s=u.n()).done;){var c=s.value;this.addAnnotation(c)}}catch(t){u.e(t)}finally{u.f()}}return Y(F,this,Z).call(this,"create-overlay",{index:r}),o}function at(t,e,n){var r=this;return(0,p.A)(g().mark((function i(){var o,a,s,u,c,l,f;return g().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=1,(0,d.A)(r.book.sections[n].createDocument());case 1:o=i.sent,a=D(t(o,e)),i.prev=2,a.s();case 3:if((s=a.n()).done){i.next=5;break}return u=s.value,c=u.range,l=u.excerpt,i.next=4,{cfi:r.getCFI(n,c),excerpt:l};case 4:i.next=3;break;case 5:i.next=7;break;case 6:i.prev=6,f=i.catch(2),a.e(f);case 7:return i.prev=7,a.f(),i.finish(7);case 8:case"end":return i.stop()}}),i,null,[[2,6,7,8]])})))()}function st(t,e){var n=this;return(0,p.A)(g().mark((function r(){var o,a,s,u,c;return g().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:o=n.book.sections,a=D(o.entries()),r.prev=1,u=g().mark((function r(){var a,u,c,l,f,h;return g().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(a=(0,i.A)(s.value,2),u=a[0],c=a[1].createDocument){r.next=1;break}return r.abrupt("return",1);case 1:return r.next=2,(0,d.A)(c());case 2:return l=r.sent,f=Array.from(t(l,e),(function(t){var e=t.range,r=t.excerpt;return{cfi:n.getCFI(u,e),excerpt:r}})),h=(u+1)/o.length,r.next=3,{progress:h};case 3:if(!f.length){r.next=4;break}return r.next=4,{index:u,subitems:f};case 4:case"end":return r.stop()}}),r)})),a.s();case 2:if((s=a.n()).done){r.next=5;break}return r.delegateYield(u(),"t0",3);case 3:if(!r.t0){r.next=4;break}return r.abrupt("continue",4);case 4:r.next=2;break;case 5:r.next=7;break;case 6:r.prev=6,c=r.catch(1),a.e(c);case 7:return r.prev=7,a.f(),r.finish(7);case 8:case"end":return r.stop()}}),r,null,[[1,6,7,8]])})))()}customElements.define("foliate-view",N),e()}catch(ut){e(ut)}}),1)},5506:function(t,e,n){"use strict";var r=n(46518),i=n(32357).entries;r({target:"Object",stat:!0},{entries:function(t){return i(t)}})},5745:function(t,e,n){"use strict";var r=n(46518),i=n(77240);r({target:"String",proto:!0,forced:n(23061)("bold")},{bold:function(){return i(this,"b","","")}})},5746:function(t,e,n){"use strict";var r=n(69565),i=n(89228),o=n(28551),a=n(20034),s=n(67750),u=n(3470),c=n(655),l=n(55966),f=n(56682);i("search",(function(t,e,n){return[function(e){var n=s(this),i=a(e)?l(e,t):void 0;return i?r(i,e,n):new RegExp(e)[t](c(n))},function(t){var r=o(this),i=c(t),a=n(e,r,i);if(a.done)return a.value;var s=r.lastIndex;u(s,0)||(r.lastIndex=0);var l=f(r,i);return u(r.lastIndex,s)||(r.lastIndex=s),null===l?-1:l.index}]}))},5914:function(t,e,n){"use strict";n(46518)({target:"Math",stat:!0},{sign:n(77782)})},6372:function(t,e,n){"use strict";var r=n(46518),i=n(97751),o=n(20034),a=n(36955),s=n(79039),u="Error",c="DOMException",l=Object.setPrototypeOf||{}.__proto__,f=i(c),h=Error,d=h.isError;r({target:"Error",stat:!0,sham:!0,forced:!d||!l||s((function(){return f&&!d(new f(c))||!d(new h(u,{cause:function(){}}))||d(i("Object","create")(h.prototype))}))},{isError:function(t){if(!o(t))return!1;var e=a(t);return e===u||e===c}})},6469:function(t,e,n){"use strict";var r=n(78227),i=n(2360),o=n(24913).f,a=r("unscopables"),s=Array.prototype;void 0===s[a]&&o(s,a,{configurable:!0,value:i(null)}),t.exports=function(t){s[a][t]=!0}},6761:function(t,e,n){"use strict";var r=n(46518),i=n(44576),o=n(69565),a=n(79504),s=n(96395),u=n(43724),c=n(4495),l=n(79039),f=n(39297),h=n(1625),d=n(28551),p=n(25397),v=n(56969),g=n(655),y=n(6980),m=n(2360),b=n(71072),w=n(38480),x=n(10298),k=n(33717),A=n(77347),S=n(24913),E=n(96801),T=n(48773),_=n(36840),O=n(62106),M=n(25745),C=n(66119),L=n(30421),R=n(33392),I=n(78227),P=n(1951),j=n(70511),F=n(58242),N=n(10687),D=n(91181),B=n(59213).forEach,z=C("hidden"),U="Symbol",W="prototype",H=D.set,q=D.getterFor(U),V=Object[W],$=i.Symbol,G=$&&$[W],X=i.RangeError,Y=i.TypeError,K=i.QObject,J=A.f,Z=S.f,Q=x.f,tt=T.f,et=a([].push),nt=M("symbols"),rt=M("op-symbols"),it=M("wks"),ot=!K||!K[W]||!K[W].findChild,at=function(t,e,n){var r=J(V,e);r&&delete V[e],Z(t,e,n),r&&t!==V&&Z(V,e,r)},st=u&&l((function(){return 7!==m(Z({},"a",{get:function(){return Z(this,"a",{value:7}).a}})).a}))?at:Z,ut=function(t,e){var n=nt[t]=m(G);return H(n,{type:U,tag:t,description:e}),u||(n.description=e),n},ct=function(t,e,n){t===V&&ct(rt,e,n),d(t);var r=v(e);return d(n),f(nt,r)?(n.enumerable?(f(t,z)&&t[z][r]&&(t[z][r]=!1),n=m(n,{enumerable:y(0,!1)})):(f(t,z)||Z(t,z,y(1,m(null))),t[z][r]=!0),st(t,r,n)):Z(t,r,n)},lt=function(t,e){d(t);var n=p(e),r=b(n).concat(pt(n));return B(r,(function(e){u&&!o(ft,n,e)||ct(t,e,n[e])})),t},ft=function(t){var e=v(t),n=o(tt,this,e);return!(this===V&&f(nt,e)&&!f(rt,e))&&(!(n||!f(this,e)||!f(nt,e)||f(this,z)&&this[z][e])||n)},ht=function(t,e){var n=p(t),r=v(e);if(n!==V||!f(nt,r)||f(rt,r)){var i=J(n,r);return!i||!f(nt,r)||f(n,z)&&n[z][r]||(i.enumerable=!0),i}},dt=function(t){var e=Q(p(t)),n=[];return B(e,(function(t){f(nt,t)||f(L,t)||et(n,t)})),n},pt=function(t){var e=t===V,n=Q(e?rt:p(t)),r=[];return B(n,(function(t){!f(nt,t)||e&&!f(V,t)||et(r,nt[t])})),r};c||($=function(){if(h(G,this))throw new Y("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?g(arguments[0]):void 0,e=R(t),n=function(t){var r=void 0===this?i:this;r===V&&o(n,rt,t),f(r,z)&&f(r[z],e)&&(r[z][e]=!1);var a=y(1,t);try{st(r,e,a)}catch(t){if(!(t instanceof X))throw t;at(r,e,a)}};return u&&ot&&st(V,e,{configurable:!0,set:n}),ut(e,t)},_(G=$[W],"toString",(function(){return q(this).tag})),_($,"withoutSetter",(function(t){return ut(R(t),t)})),T.f=ft,S.f=ct,E.f=lt,A.f=ht,w.f=x.f=dt,k.f=pt,P.f=function(t){return ut(I(t),t)},u&&(O(G,"description",{configurable:!0,get:function(){return q(this).description}}),s||_(V,"propertyIsEnumerable",ft,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!c,sham:!c},{Symbol:$}),B(b(it),(function(t){j(t)})),r({target:U,stat:!0,forced:!c},{useSetter:function(){ot=!0},useSimple:function(){ot=!1}}),r({target:"Object",stat:!0,forced:!c,sham:!u},{create:function(t,e){return void 0===e?m(t):lt(m(t),e)},defineProperty:ct,defineProperties:lt,getOwnPropertyDescriptor:ht}),r({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:dt}),F(),N($,U),L[z]=!0},6980:function(t){"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},6986:function(t,e,n){"use strict";function r(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}n.d(e,{A:function(){return r}})},7040:function(t,e,n){"use strict";var r=n(4495);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},7588:function(t,e,n){"use strict";var r=n(46518),i=n(69565),o=n(72652),a=n(79306),s=n(28551),u=n(1767),c=n(9539),l=n(84549)("forEach",TypeError);r({target:"Iterator",proto:!0,real:!0,forced:l},{forEach:function(t){s(this);try{a(t)}catch(t){c(this,"throw",t)}if(l)return i(l,this,t);var e=u(this),n=0;o(e,(function(e){t(e,n++)}),{IS_RECORD:!0})}})},7740:function(t){"use strict";var e=Math.log;t.exports=Math.log1p||function(t){var n=+t;return n>-1e-8&&n<1e-8?n-n*n/2:e(1+n)}},7743:function(t,e,n){"use strict";var r=n(46518),i=n(69565),o=n(79306),a=n(36043),s=n(1103),u=n(72652);r({target:"Promise",stat:!0,forced:n(90537)},{race:function(t){var e=this,n=a.f(e),r=n.reject,c=s((function(){var a=o(e.resolve);u(t,(function(t){i(a,e,t).then(n.resolve,r)}))}));return c.error&&r(c.value),n.promise}})},7860:function(t,e,n){"use strict";var r=n(82839);t.exports=/web0s(?!.*chrome)/i.test(r)},7904:function(t,e,n){"use strict";var r=n(46518),i=n(43724),o=n(42551),a=n(48981),s=n(56969),u=n(42787),c=n(77347).f;i&&r({target:"Object",proto:!0,forced:o},{__lookupSetter__:function(t){var e,n=a(this),r=s(t);do{if(e=c(n,r))return e.set}while(n=u(n))}})},8045:function(t,e,n){"use strict";var r=n(76080),i=n(79504),o=n(48981),a=n(33517),s=n(1886),u=n(70081),c=n(1767),l=n(50851),f=n(55966),h=n(97751),d=n(44124),p=n(78227),v=n(24074),g=n(36639).toArray,y=p("asyncIterator"),m=i(d("Array","values")),b=i(m([]).next),w=function(){return new x(this)},x=function(t){this.iterator=m(t)};x.prototype.next=function(){return b(this.iterator)},t.exports=function(t){var e=this,n=arguments.length,i=n>1?arguments[1]:void 0,d=n>2?arguments[2]:void 0;return new(h("Promise"))((function(n){var h=o(t);void 0!==i&&(i=r(i,d));var p=f(h,y),m=p?void 0:l(h)||w,b=a(e)?new e:[],x=p?s(h,p):new v(c(u(h,m)));n(g(x,i,b))}))}},8085:function(t,e,n){"use strict";var r=n(46518),i=Math.floor,o=Math.log,a=Math.LOG2E;r({target:"Math",stat:!0},{clz32:function(t){var e=t>>>0;return e?31-i(o(e+.5)*a):32}})},8379:function(t,e,n){"use strict";var r=n(18745),i=n(25397),o=n(91291),a=n(26198),s=n(34598),u=Math.min,c=[].lastIndexOf,l=!!c&&1/[1].lastIndexOf(1,-0)<0,f=s("lastIndexOf"),h=l||!f;t.exports=h?function(t){if(l)return r(c,this,arguments)||0;var e=i(this),n=a(e);if(0===n)return-1;var s=n-1;for(arguments.length>1&&(s=u(s,o(arguments[1]))),s<0&&(s=n+s);s>=0;s--)if(s in e&&e[s]===t)return s||0;return-1}:c},8921:function(t,e,n){"use strict";var r=n(46518),i=n(8379);r({target:"Array",proto:!0,forced:i!==[].lastIndexOf},{lastIndexOf:i})},8995:function(t,e,n){"use strict";var r=n(94644),i=n(59213).map,o=r.aTypedArray,a=r.getTypedArrayConstructor;(0,r.exportTypedArrayMethod)("map",(function(t){return i(o(this),t,arguments.length>1?arguments[1]:void 0,(function(t,e){return new(a(t))(e)}))}))},9065:function(t,e,n){"use strict";var r=n(46518),i=n(43724),o=n(28551),a=n(77347);r({target:"Reflect",stat:!0,sham:!i},{getOwnPropertyDescriptor:function(t,e){return a.f(o(t),e)}})},9220:function(t,e,n){"use strict";var r=n(46518),i=n(43724),o=n(42551),a=n(48981),s=n(56969),u=n(42787),c=n(77347).f;i&&r({target:"Object",proto:!0,forced:o},{__lookupGetter__:function(t){var e,n=a(this),r=s(t);do{if(e=c(n,r))return e.get}while(n=u(n))}})},9391:function(t,e,n){"use strict";var r=n(46518),i=n(96395),o=n(80550),a=n(79039),s=n(97751),u=n(94901),c=n(2293),l=n(93438),f=n(36840),h=o&&o.prototype;if(r({target:"Promise",proto:!0,real:!0,forced:!!o&&a((function(){h.finally.call({then:function(){}},(function(){}))}))},{finally:function(t){var e=c(this,s("Promise")),n=u(t);return this.then(n?function(n){return l(e,t()).then((function(){return n}))}:t,n?function(n){return l(e,t()).then((function(){throw n}))}:t)}}),!i&&u(o)){var d=s("Promise").prototype.finally;h.finally!==d&&f(h,"finally",d,{unsafe:!0})}},9417:function(t,e,n){"use strict";function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}n.d(e,{A:function(){return r}})},9539:function(t,e,n){"use strict";var r=n(69565),i=n(28551),o=n(55966);t.exports=function(t,e,n){var a,s;i(t);try{if(!(a=o(t,"return"))){if("throw"===e)throw n;return n}a=r(a,t)}catch(t){s=!0,a=t}if("throw"===e)throw n;if(s)throw a;return i(a),n}},9678:function(t,e,n){"use strict";var r=n(46518),i=n(37628),o=n(25397),a=n(6469),s=Array;r({target:"Array",proto:!0},{toReversed:function(){return i(o(this),s)}}),a("toReversed")},9868:function(t,e,n){"use strict";var r=n(46518),i=n(79504),o=n(91291),a=n(31240),s=n(72333),u=n(79039),c=RangeError,l=String,f=Math.floor,h=i(s),d=i("".slice),p=i(1.1.toFixed),v=function(t,e,n){return 0===e?n:e%2==1?v(t,e-1,n*t):v(t*t,e/2,n)},g=function(t,e,n){for(var r=-1,i=n;++r<6;)i+=e*t[r],t[r]=i%1e7,i=f(i/1e7)},y=function(t,e){for(var n=6,r=0;--n>=0;)r+=t[n],t[n]=f(r/e),r=r%e*1e7},m=function(t){for(var e=6,n="";--e>=0;)if(""!==n||0===e||0!==t[e]){var r=l(t[e]);n=""===n?r:n+h("0",7-r.length)+r}return n};r({target:"Number",proto:!0,forced:u((function(){return"0.000"!==p(8e-5,3)||"1"!==p(.9,0)||"1.25"!==p(1.255,2)||"1000000000000000128"!==p(0xde0b6b3a7640080,0)}))||!u((function(){p({})}))},{toFixed:function(t){var e,n,r,i,s=a(this),u=o(t),f=[0,0,0,0,0,0],p="",b="0";if(u<0||u>20)throw new c("Incorrect fraction digits");if(s!=s)return"NaN";if(s<=-1e21||s>=1e21)return l(s);if(s<0&&(p="-",s=-s),s>1e-21)if(n=(e=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e}(s*v(2,69,1))-69)<0?s*v(2,-e,1):s/v(2,e,1),n*=4503599627370496,(e=52-e)>0){for(g(f,0,n),r=u;r>=7;)g(f,1e7,0),r-=7;for(g(f,v(10,r,1),0),r=e-1;r>=23;)y(f,1<<23),r-=23;y(f,1<0?p+((i=b.length)<=u?"0."+h("0",u-i)+b:d(b,0,i-u)+"."+d(b,i-u)):p+b}})},10255:function(t,e,n){"use strict";var r=n(46518),i=n(79504),o=Math.pow,a=o(2,-24),s=.0009765625,u=i(DataView.prototype.getUint16);r({target:"DataView",proto:!0},{getFloat16:function(t){return n=(e=u(this,t,arguments.length>1&&arguments[1]))>>>15,i=1023&e,31==(r=e>>>10&31)?0===i?0===n?1/0:-1/0:NaN:0===r?i*(0===n?a:-a):o(2,r-15)*(0===n?1+i*s:-1-i*s);var e,n,r,i}})},10287:function(t,e,n){"use strict";n(46518)({target:"Object",stat:!0},{setPrototypeOf:n(52967)})},10298:function(t,e,n){"use strict";var r=n(22195),i=n(25397),o=n(38480).f,a=n(67680),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return s&&"Window"===r(t)?function(t){try{return o(t)}catch(t){return a(s)}}(t):o(i(t))}},10350:function(t,e,n){"use strict";var r=n(43724),i=n(39297),o=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=i(o,"name"),u=s&&"something"===function(){}.name,c=s&&(!r||r&&a(o,"name").configurable);t.exports={EXISTS:s,PROPER:u,CONFIGURABLE:c}},10436:function(t,e,n){"use strict";var r,i,o,a,s=n(46518),u=n(96395),c=n(38574),l=n(44576),f=n(19167),h=n(69565),d=n(36840),p=n(52967),v=n(10687),g=n(87633),y=n(79306),m=n(94901),b=n(20034),w=n(90679),x=n(2293),k=n(59225).set,A=n(91955),S=n(90757),E=n(1103),T=n(18265),_=n(91181),O=n(80550),M=n(10916),C=n(36043),L="Promise",R=M.CONSTRUCTOR,I=M.REJECTION_EVENT,P=M.SUBCLASSING,j=_.getterFor(L),F=_.set,N=O&&O.prototype,D=O,B=N,z=l.TypeError,U=l.document,W=l.process,H=C.f,q=H,V=!!(U&&U.createEvent&&l.dispatchEvent),$="unhandledrejection",G=function(t){var e;return!(!b(t)||!m(e=t.then))&&e},X=function(t,e){var n,r,i,o=e.value,a=1===e.state,s=a?t.ok:t.fail,u=t.resolve,c=t.reject,l=t.domain;try{s?(a||(2===e.rejection&&Q(e),e.rejection=1),!0===s?n=o:(l&&l.enter(),n=s(o),l&&(l.exit(),i=!0)),n===t.promise?c(new z("Promise-chain cycle")):(r=G(n))?h(r,n,u,c):u(n)):c(o)}catch(t){l&&!i&&l.exit(),c(t)}},Y=function(t,e){t.notified||(t.notified=!0,A((function(){for(var n,r=t.reactions;n=r.get();)X(n,t);t.notified=!1,e&&!t.rejection&&J(t)})))},K=function(t,e,n){var r,i;V?((r=U.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),l.dispatchEvent(r)):r={promise:e,reason:n},!I&&(i=l["on"+t])?i(r):t===$&&S("Unhandled promise rejection",n)},J=function(t){h(k,l,(function(){var e,n=t.facade,r=t.value;if(Z(t)&&(e=E((function(){c?W.emit("unhandledRejection",r,n):K($,n,r)})),t.rejection=c||Z(t)?2:1,e.error))throw e.value}))},Z=function(t){return 1!==t.rejection&&!t.parent},Q=function(t){h(k,l,(function(){var e=t.facade;c?W.emit("rejectionHandled",e):K("rejectionhandled",e,t.value)}))},tt=function(t,e,n){return function(r){t(e,r,n)}},et=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,Y(t,!0))},nt=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw new z("Promise can't be resolved itself");var r=G(e);r?A((function(){var n={done:!1};try{h(r,e,tt(nt,n,t),tt(et,n,t))}catch(e){et(n,e,t)}})):(t.value=e,t.state=1,Y(t,!1))}catch(e){et({done:!1},e,t)}}};if(R&&(B=(D=function(t){w(this,B),y(t),h(r,this);var e=j(this);try{t(tt(nt,e),tt(et,e))}catch(t){et(e,t)}}).prototype,(r=function(t){F(this,{type:L,done:!1,notified:!1,parent:!1,reactions:new T,rejection:!1,state:0,value:null})}).prototype=d(B,"then",(function(t,e){var n=j(this),r=H(x(this,D));return n.parent=!0,r.ok=!m(t)||t,r.fail=m(e)&&e,r.domain=c?W.domain:void 0,0===n.state?n.reactions.add(r):A((function(){X(r,n)})),r.promise})),i=function(){var t=new r,e=j(t);this.promise=t,this.resolve=tt(nt,e),this.reject=tt(et,e)},C.f=H=function(t){return t===D||t===o?new i(t):q(t)},!u&&m(O)&&N!==Object.prototype)){a=N.then,P||d(N,"then",(function(t,e){var n=this;return new D((function(t,e){h(a,n,t,e)})).then(t,e)}),{unsafe:!0});try{delete N.constructor}catch(t){}p&&p(N,B)}s({global:!0,constructor:!0,wrap:!0,forced:R},{Promise:D}),o=f.Promise,v(D,L,!1,!0),g(L)},10467:function(t,e,n){"use strict";function r(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function i(t){return function(){var e=this,n=arguments;return new Promise((function(i,o){var a=t.apply(e,n);function s(t){r(a,i,o,s,u,"next",t)}function u(t){r(a,i,o,s,u,"throw",t)}s(void 0)}))}}n.d(e,{A:function(){return i}})},10600:function(t,e,n){"use strict";n.d(e,{A:function(){return i}});var r=n(27106);function i(t){return function(){return new o(t.apply(this,arguments))}}function o(t){var e,n;function i(e,n){try{var a=t[e](n),s=a.value,u=s instanceof r.A;Promise.resolve(u?s.v:s).then((function(n){if(u){var r="return"===e?"return":"next";if(!s.k||n.done)return i(r,n);n=t[r](n).value}o(a.done?"return":"normal",n)}),(function(t){i("throw",t)}))}catch(t){o("throw",t)}}function o(t,r){switch(t){case"return":e.resolve({value:r,done:!0});break;case"throw":e.reject(r);break;default:e.resolve({value:r,done:!1})}(e=e.next)?i(e.key,e.arg):n=null}this._invoke=function(t,r){return new Promise((function(o,a){var s={key:t,arg:r,resolve:o,reject:a,next:null};n?n=n.next=s:(e=n=s,i(t,r))}))},"function"!=typeof t.return&&(this.return=void 0)}o.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},o.prototype.next=function(t){return this._invoke("next",t)},o.prototype.throw=function(t){return this._invoke("throw",t)},o.prototype.return=function(t){return this._invoke("return",t)}},10687:function(t,e,n){"use strict";var r=n(24913).f,i=n(39297),o=n(78227)("toStringTag");t.exports=function(t,e,n){t&&!n&&(t=t.prototype),t&&!i(t,o)&&r(t,o,{configurable:!0,value:e})}},10757:function(t,e,n){"use strict";var r=n(97751),i=n(94901),o=n(1625),a=n(7040),s=Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return i(e)&&o(e.prototype,s(t))}},10838:function(t,e,n){"use strict";var r=n(46518),i=n(43839).findLast,o=n(6469);r({target:"Array",proto:!0},{findLast:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),o("findLast")},10916:function(t,e,n){"use strict";var r=n(44576),i=n(80550),o=n(94901),a=n(92796),s=n(33706),u=n(78227),c=n(84215),l=n(96395),f=n(39519),h=i&&i.prototype,d=u("species"),p=!1,v=o(r.PromiseRejectionEvent),g=a("Promise",(function(){var t=s(i),e=t!==String(i);if(!e&&66===f)return!0;if(l&&(!h.catch||!h.finally))return!0;if(!f||f<51||!/native code/.test(t)){var n=new i((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};if((n.constructor={})[d]=r,!(p=n.then((function(){}))instanceof r))return!0}return!(e||"BROWSER"!==c&&"DENO"!==c||v)}));t.exports={CONSTRUCTOR:g,REJECTION_EVENT:v,SUBCLASSING:p}},11056:function(t,e,n){"use strict";var r=n(24913).f;t.exports=function(t,e,n){n in t||r(t,n,{configurable:!0,get:function(){return e[n]},set:function(t){e[n]=t}})}},11367:function(t,e,n){"use strict";n(46518)({target:"Math",stat:!0},{log2:n(67787)})},11392:function(t,e,n){"use strict";var r,i=n(46518),o=n(27476),a=n(77347).f,s=n(18014),u=n(655),c=n(60511),l=n(67750),f=n(41436),h=n(96395),d=o("".slice),p=Math.min,v=f("startsWith");i({target:"String",proto:!0,forced:!(!h&&!v&&(r=a(String.prototype,"startsWith"),r&&!r.writable)||v)},{startsWith:function(t){var e=u(l(this));c(t);var n=s(p(arguments.length>1?arguments[1]:void 0,e.length)),r=u(t);return d(e,n,n+r.length)===r}})},11558:function(t,e,n){"use strict";var r=n(46518),i=n(39928),o=n(25397),a=Array;r({target:"Array",proto:!0,forced:function(){try{[].with({valueOf:function(){throw 4}},null)}catch(t){return 4!==t}}()},{with:function(t,e){return i(o(this),a,t,e)}})},11745:function(t,e,n){"use strict";var r=n(46518),i=n(27476),o=n(79039),a=n(66346),s=n(28551),u=n(35610),c=n(18014),l=a.ArrayBuffer,f=a.DataView,h=f.prototype,d=i(l.prototype.slice),p=i(h.getUint8),v=i(h.setUint8);r({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:o((function(){return!new l(2).slice(1,void 0).byteLength}))},{slice:function(t,e){if(d&&void 0===e)return d(s(this),t);for(var n=s(this).byteLength,r=u(t,n),i=u(void 0===e?n:e,n),o=new l(c(i-r)),a=new f(this),h=new f(o),g=0;r>>1|(21845&v)<<1;g=(61680&(g=(52428&g)>>>2|(13107&g)<<2))>>>4|(3855&g)<<4,p[v]=((65280&g)>>>8|(255&g)<<8)>>>1}var y=function(t,e,n){for(var r=t.length,o=0,a=new i(e);o>>c]=l}else for(s=new i(r),o=0;o>>15-t[o]);return s},m=new r(288);for(v=0;v<144;++v)m[v]=8;for(v=144;v<256;++v)m[v]=9;for(v=256;v<280;++v)m[v]=7;for(v=280;v<288;++v)m[v]=8;var b=new r(32);for(v=0;v<32;++v)b[v]=5;var w=y(m,9,1),x=y(b,5,1),k=function(t){for(var e=t[0],n=1;ne&&(e=t[n]);return e},A=function(t,e,n){var r=e/8|0;return(t[r]|t[r+1]<<8)>>(7&e)&n},S=function(t,e){var n=e/8|0;return(t[n]|t[n+1]<<8|t[n+2]<<16)>>(7&e)},E=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],T=function(t,e,n){var r=new Error(e||E[t]);if(r.code=t,Error.captureStackTrace&&Error.captureStackTrace(r,T),!n)throw r;return r},_=function(t,e,n){var c=t.length;if(!c||n&&n.f&&!n.l)return e||new r(0);var l=!e||n,h=!n||n.i;n||(n={}),e||(e=new r(3*c));var p=function(t){var n=e.length;if(t>n){var i=new r(Math.max(2*n,t));i.set(e),e=i}},v=n.f||0,g=n.p||0,m=n.b||0,b=n.l,E=n.d,_=n.m,O=n.n,M=8*c;do{if(!b){v=A(t,g,1);var C=A(t,g+1,3);if(g+=3,!C){var L=t[(W=4+((g+7)/8|0))-4]|t[W-3]<<8,R=W+L;if(R>c){h&&T(0);break}l&&p(m+L),e.set(t.subarray(W,R),m),n.b=m+=L,n.p=g=8*R,n.f=v;continue}if(1==C)b=w,E=x,_=9,O=5;else if(2==C){var I=A(t,g,31)+257,P=A(t,g+10,15)+4,j=I+A(t,g+5,31)+1;g+=14;for(var F=new r(j),N=new r(19),D=0;D>>4)<16)F[D++]=W;else{var q=0,V=0;for(16==W?(V=3+A(t,g,3),g+=2,q=F[D-1]):17==W?(V=3+A(t,g,7),g+=3):18==W&&(V=11+A(t,g,127),g+=7);V--;)F[D++]=q}}var $=F.subarray(0,I),G=F.subarray(I);_=k($),O=k(G),b=y($,_,1),E=y(G,O,1)}else T(1);if(g>M){h&&T(0);break}}l&&p(m+131072);for(var X=(1<<_)-1,Y=(1<>>4;if((g+=15&q)>M){h&&T(0);break}if(q||T(2),J<256)e[m++]=J;else{if(256==J){K=g,b=null;break}var Z=J-254;if(J>264){var Q=a[D=J-257];Z=A(t,g,(1<>>4;if(tt||T(3),g+=15&tt,G=d[et],et>3&&(Q=s[et],G+=S(t,g)&(1<M){h&&T(0);break}l&&p(m+131072);for(var nt=m+Z;mt.length)&&(n=t.length);var a=new(2==t.BYTES_PER_ELEMENT?i:4==t.BYTES_PER_ELEMENT?o:r)(n-e);return a.set(t.subarray(e,n)),a}(e,0,m)},O=new r(0);function M(t,e){return _(((8!=(15&(n=t)[0])||n[0]>>>4>7||(n[0]<<8|n[1])%31)&&T(6,"invalid zlib data"),32&n[1]&&T(6,"invalid zlib data: preset dictionaries not supported"),t.subarray(2,-4)),e);var n}var C="undefined"!=typeof TextDecoder&&new TextDecoder;try{C.decode(O,{stream:!0})}catch(r){}},12887:function(t,e,n){"use strict";var r=n(44576),i=n(79039),o=n(79504),a=n(94644),s=n(23792),u=n(78227)("iterator"),c=r.Uint8Array,l=o(s.values),f=o(s.keys),h=o(s.entries),d=a.aTypedArray,p=a.exportTypedArrayMethod,v=c&&c.prototype,g=!i((function(){v[u].call([1])})),y=!!v&&v.values&&v[u]===v.values&&"values"===v.values.name,m=function(){return l(d(this))};p("entries",(function(){return h(d(this))}),g),p("keys",(function(){return f(d(this))}),g),p("values",m,g||!y,{name:"values"}),p(u,m,g||!y,{name:"values"})},13451:function(t,e,n){"use strict";var r=n(46518),i=n(43839).findLastIndex,o=n(6469);r({target:"Array",proto:!0},{findLastIndex:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),o("findLastIndex")},13579:function(t,e,n){"use strict";var r=n(46518),i=n(69565),o=n(72652),a=n(79306),s=n(28551),u=n(1767),c=n(9539),l=n(84549)("some",TypeError);r({target:"Iterator",proto:!0,real:!0,forced:l},{some:function(t){s(this);try{a(t)}catch(t){c(this,"throw",t)}if(l)return i(l,this,t);var e=u(this),n=0;return o(e,(function(e,r){if(t(e,n++))return r()}),{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},13609:function(t,e,n){"use strict";var r=n(46518),i=n(48981),o=n(26198),a=n(34527),s=n(84606),u=n(96837);r({target:"Array",proto:!0,arity:1,forced:1!==[].unshift(0)||!function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(t){return t instanceof TypeError}}()},{unshift:function(t){var e=i(this),n=o(e),r=arguments.length;if(r){u(n+r);for(var c=n;c--;){var l=c+r;c in e?e[l]=e[c]:s(e,l)}for(var f=0;fm&&h(r,arguments[m]),r}));if(S.prototype=k,"Error"!==w?s?s(S,A):u(S,A,{name:!0}):p&&y in x&&(c(S,x,y),c(S,x,"prepareStackTrace")),u(S,x),!v)try{k.name!==w&&o(k,"name",w),k.constructor=S}catch(t){}return S}}},14603:function(t,e,n){"use strict";var r=n(36840),i=n(79504),o=n(655),a=n(22812),s=URLSearchParams,u=s.prototype,c=i(u.append),l=i(u.delete),f=i(u.forEach),h=i([].push),d=new s("a=1&a=2&b=3");d.delete("a",1),d.delete("b",void 0),d+""!="a=2"&&r(u,"delete",(function(t){var e=arguments.length,n=e<2?void 0:arguments[1];if(e&&void 0===n)return l(this,t);var r=[];f(this,(function(t,e){h(r,{key:e,value:t})})),a(e,1);for(var i,s=o(t),u=o(n),d=0,p=0,v=!1,g=r.length;d1?arguments[1]:void 0)}})},15472:function(t,e,n){"use strict";var r=n(46518),i=n(44576),o=n(10687);r({global:!0},{Reflect:{}}),o(i.Reflect,"Reflect",!0)},15575:function(t,e,n){"use strict";var r=n(46518),i=n(44576),o=n(79472)(i.setInterval,!0);r({global:!0,bind:!0,forced:i.setInterval!==o},{setInterval:o})},15617:function(t,e,n){"use strict";var r=n(33164);t.exports=Math.fround||function(t){return r(t,1.1920928955078125e-7,34028234663852886e22,11754943508222875e-54)}},15652:function(t,e,n){"use strict";var r=n(79039);t.exports=r((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}))},15823:function(t,e,n){"use strict";var r=n(46518),i=n(44576),o=n(69565),a=n(43724),s=n(72805),u=n(94644),c=n(66346),l=n(90679),f=n(6980),h=n(66699),d=n(2087),p=n(18014),v=n(57696),g=n(58229),y=n(58319),m=n(56969),b=n(39297),w=n(36955),x=n(20034),k=n(10757),A=n(2360),S=n(1625),E=n(52967),T=n(38480).f,_=n(43251),O=n(59213).forEach,M=n(87633),C=n(62106),L=n(24913),R=n(77347),I=n(35370),P=n(91181),j=n(23167),F=P.get,N=P.set,D=P.enforce,B=L.f,z=R.f,U=i.RangeError,W=c.ArrayBuffer,H=W.prototype,q=c.DataView,V=u.NATIVE_ARRAY_BUFFER_VIEWS,$=u.TYPED_ARRAY_TAG,G=u.TypedArray,X=u.TypedArrayPrototype,Y=u.isTypedArray,K="BYTES_PER_ELEMENT",J="Wrong length",Z=function(t,e){C(t,e,{configurable:!0,get:function(){return F(this)[e]}})},Q=function(t){var e;return S(H,t)||"ArrayBuffer"===(e=w(t))||"SharedArrayBuffer"===e},tt=function(t,e){return Y(t)&&!k(e)&&e in t&&d(+e)&&e>=0},et=function(t,e){return e=m(e),tt(t,e)?f(2,t[e]):z(t,e)},nt=function(t,e,n){return e=m(e),!(tt(t,e)&&x(n)&&b(n,"value"))||b(n,"get")||b(n,"set")||n.configurable||b(n,"writable")&&!n.writable||b(n,"enumerable")&&!n.enumerable?B(t,e,n):(t[e]=n.value,t)};a?(V||(R.f=et,L.f=nt,Z(X,"buffer"),Z(X,"byteOffset"),Z(X,"byteLength"),Z(X,"length")),r({target:"Object",stat:!0,forced:!V},{getOwnPropertyDescriptor:et,defineProperty:nt}),t.exports=function(t,e,n){var a=t.match(/\d+/)[0]/8,u=t+(n?"Clamped":"")+"Array",c="get"+t,f="set"+t,d=i[u],m=d,b=m&&m.prototype,w={},k=function(t,e){B(t,e,{get:function(){return function(t,e){var n=F(t);return n.view[c](e*a+n.byteOffset,!0)}(this,e)},set:function(t){return function(t,e,r){var i=F(t);i.view[f](e*a+i.byteOffset,n?y(r):r,!0)}(this,e,t)},enumerable:!0})};V?s&&(m=e((function(t,e,n,r){return l(t,b),j(x(e)?Q(e)?void 0!==r?new d(e,g(n,a),r):void 0!==n?new d(e,g(n,a)):new d(e):Y(e)?I(m,e):o(_,m,e):new d(v(e)),t,m)})),E&&E(m,G),O(T(d),(function(t){t in m||h(m,t,d[t])})),m.prototype=b):(m=e((function(t,e,n,r){l(t,b);var i,s,u,c=0,f=0;if(x(e)){if(!Q(e))return Y(e)?I(m,e):o(_,m,e);i=e,f=g(n,a);var h=e.byteLength;if(void 0===r){if(h%a)throw new U(J);if((s=h-f)<0)throw new U(J)}else if((s=p(r)*a)+f>h)throw new U(J);u=s/a}else u=v(e),i=new W(s=u*a);for(N(t,{buffer:i,byteOffset:f,byteLength:s,length:u,view:new q(i)});c\n \n \n \n ').concat(h.outerHTML,"\n ").concat(d.outerHTML,"\n ")],{type:"text/html"})),t.abrupt("return",v);case 8:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}(),s=function(t){return{label:t.title,href:JSON.stringify(t.dest),subitems:t.items.length?t.items.map(s):null}},u=function(){var t=(0,r.A)(o().mark((function t(e){var n,i,u,c,l,f,h,d,p,v,g,y;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return d=Uint8Array,t.next=1,e.arrayBuffer();case 1:return p=t.sent,i=new d(p),t.next=2,pdfjsLib.getDocument({data:i}).promise;case 2:return u=t.sent,c={rendition:{layout:"pre-paginated"}},t.next=3,u.getMetadata();case 3:if(g=n=t.sent,v=null===g){t.next=4;break}v=void 0===n;case 4:if(!v){t.next=5;break}y=void 0,t.next=6;break;case 5:y=n.info;case 6:return l=y,c.metadata={title:null==l?void 0:l.Title,author:null==l?void 0:l.Author},t.next=7,u.getOutline();case 7:return f=t.sent,c.toc=null==f?void 0:f.map(s),h=new Map,c.sections=Array.from({length:u.numPages}).map((function(t,e){return{id:e,load:(n=(0,r.A)(o().mark((function t(){var n,r,i,s;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(n=h.get(e))){t.next=1;break}return t.abrupt("return",n);case 1:return i=a,t.next=2,u.getPage(e+1);case 2:return s=t.sent,t.next=3,i(s);case 3:return r=t.sent,h.set(e,r),t.abrupt("return",r);case 4:case"end":return t.stop()}}),t)}))),function(){return n.apply(this,arguments)}),size:1e3};var n})),c.sections[0].pageSpread="right",c.isExternal=function(t){return/^\w+:/i.test(t)},c.resolveHref=function(){var t=(0,r.A)(o().mark((function t(e){var n,r,i,a;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("string"!=typeof(n=JSON.parse(e))){t.next=2;break}return t.next=1,u.getDestination(n);case 1:a=t.sent,t.next=3;break;case 2:a=n;case 3:if((r=a)&&r[0]){t.next=4;break}return t.abrupt("return",{index:0});case 4:return t.next=5,u.getPageIndex(r[0]);case 5:return i=t.sent,t.abrupt("return",{index:i});case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),c.splitTOCHref=function(){var t=(0,r.A)(o().mark((function t(e){var n,r,i,a;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("string"!=typeof(n=JSON.parse(e))){t.next=2;break}return t.next=1,u.getDestination(n);case 1:a=t.sent,t.next=3;break;case 2:a=n;case 3:if((r=a)&&r[0]){t.next=4;break}return t.abrupt("return",[0,null]);case 4:return t.next=5,u.getPageIndex(r[0]);case 5:return i=t.sent,t.abrupt("return",[i,null]);case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),c.getTOCFragment=function(t){return t.documentElement},c.getCover=(0,r.A)(o().mark((function t(){var e,n;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=a,t.next=1,u.getPage(1);case 1:return n=t.sent,t.abrupt("return",e(n,!0));case 2:case"end":return t.stop()}}),t)}))),t.abrupt("return",c);case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},16823:function(t){"use strict";var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},16993:function(t,e,n){var r=n(75546);function i(){var e,n,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.toStringTag||"@@toStringTag";function u(t,i,o,a){var s=i&&i.prototype instanceof l?i:l,u=Object.create(s.prototype);return r(u,"_invoke",function(t,r,i){var o,a,s,u=0,l=i||[],f=!1,h={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return o=t,a=0,s=e,h.n=n,c}};function d(t,r){for(a=t,s=r,n=0;!f&&u&&!i&&n3?(i=p===r)&&(s=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=e):o[0]<=d&&((i=t<2&&dr||r>p)&&(o[4]=t,o[5]=r,h.n=p,a=0))}if(i||t>1)return c;throw f=!0,r}return function(i,l,p){if(u>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,p),a=l,s=p;(n=a<2?e:s)||!f;){o||(a?a<3?(a>1&&(h.n=-1),d(a,s)):h.n=s:h.v=s);try{if(u=2,o){if(a||(i="next"),n=o[i]){if(!(n=n.call(o,s)))throw TypeError("iterator result is not an object");if(!n.done)return n;s=n.value,a<2&&(a=0)}else 1===a&&(n=o.return)&&n.call(o),a<2&&(s=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=e}else if((n=(f=h.n<0)?s:t.call(r,h))!==c)break}catch(t){o=e,a=1,s=t}finally{u=1}}return{value:n,done:f}}}(t,o,a),!0),u}var c={};function l(){}function f(){}function h(){}n=Object.getPrototypeOf;var d=[][a]?n(n([][a]())):(r(n={},a,(function(){return this})),n),p=h.prototype=l.prototype=Object.create(d);function v(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,r(t,s,"GeneratorFunction")),t.prototype=Object.create(p),t}return f.prototype=h,r(p,"constructor",h),r(h,"constructor",f),f.displayName="GeneratorFunction",r(h,s,"GeneratorFunction"),r(p),r(p,s,"Generator"),r(p,a,(function(){return this})),r(p,"toString",(function(){return"[object Generator]"})),(t.exports=i=function(){return{w:u,m:v}},t.exports.__esModule=!0,t.exports.default=t.exports)()}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports},17145:function(t,e,n){"use strict";var r=n(46518),i=n(1625),o=n(42787),a=n(52967),s=n(77740),u=n(2360),c=n(66699),l=n(6980),f=n(77584),h=n(80747),d=n(72652),p=n(32603),v=n(78227)("toStringTag"),g=Error,y=[].push,m=function(t,e){var n,r=i(b,this);a?n=a(new g,r?o(this):b):(n=r?this:u(b),c(n,v,"Error")),void 0!==e&&c(n,"message",p(e)),h(n,m,n.stack,1),arguments.length>2&&f(n,arguments[2]);var s=[];return d(t,y,{that:s}),c(n,"errors",s),n};a?a(m,g):s(m,g,{name:!0});var b=m.prototype=u(g.prototype,{constructor:l(1,m),message:l(1,""),name:l(1,"AggregateError")});r({global:!0,constructor:!0,arity:2},{AggregateError:m})},17427:function(t,e,n){"use strict";var r=n(46518),i=n(43724),o=n(42551),a=n(79306),s=n(48981),u=n(24913);i&&r({target:"Object",proto:!0,forced:o},{__defineGetter__:function(t,e){u.f(s(this),t,{get:a(e),enumerable:!0,configurable:!0})}})},17642:function(t,e,n){"use strict";var r=n(46518),i=n(83440),o=n(79039);r({target:"Set",proto:!0,real:!0,forced:!n(84916)("difference",(function(t){return 0===t.size}))||o((function(){var t={size:1,has:function(){return!0},keys:function(){var t=0;return{next:function(){var n=t++>1;return e.has(1)&&e.clear(),{done:n,value:2}}}}},e=new Set([1,2,3,4]);return 3!==e.difference(t).size}))},{difference:i})},18014:function(t,e,n){"use strict";var r=n(91291),i=Math.min;t.exports=function(t){var e=r(t);return e>0?i(e,9007199254740991):0}},18107:function(t,e,n){"use strict";var r=n(46518),i=n(48981),o=n(26198),a=n(91291),s=n(6469);r({target:"Array",proto:!0},{at:function(t){var e=i(this),n=o(e),r=a(t),s=r>=0?r:n+r;return s<0||s>=n?void 0:e[s]}}),s("at")},18111:function(t,e,n){"use strict";var r=n(46518),i=n(44576),o=n(90679),a=n(28551),s=n(94901),u=n(42787),c=n(62106),l=n(97040),f=n(79039),h=n(39297),d=n(78227),p=n(57657).IteratorPrototype,v=n(43724),g=n(96395),y="constructor",m="Iterator",b=d("toStringTag"),w=TypeError,x=i[m],k=g||!s(x)||x.prototype!==p||!f((function(){x({})})),A=function(){if(o(this,p),u(this)===p)throw new w("Abstract class Iterator not directly constructable")},S=function(t,e){v?c(p,t,{configurable:!0,get:function(){return e},set:function(e){if(a(this),this===p)throw new w("You can't redefine this property");h(this,t)?this[t]=e:l(this,t,e)}}):p[t]=e};h(p,b)||S(b,m),!k&&h(p,y)&&p[y]!==Object||S(y,A),A.prototype=p,r({global:!0,constructor:!0,forced:k},{Iterator:A})},18237:function(t,e,n){"use strict";var r=n(46518),i=n(72652),o=n(79306),a=n(28551),s=n(1767),u=n(9539),c=n(84549),l=n(18745),f=n(79039),h=TypeError,d=f((function(){[].keys().reduce((function(){}),void 0)})),p=!d&&c("reduce",h);r({target:"Iterator",proto:!0,real:!0,forced:d||p},{reduce:function(t){a(this);try{o(t)}catch(t){u(this,"throw",t)}var e=arguments.length<2,n=e?void 0:arguments[1];if(p)return l(p,this,e?[t]:[t,n]);var r=s(this),c=0;if(i(r,(function(r){e?(e=!1,n=r):n=t(n,r,c),c++}),{IS_RECORD:!0}),e)throw new h("Reduce of empty iterator with no initial value");return n}})},18265:function(t){"use strict";var e=function(){this.head=null,this.tail=null};e.prototype={add:function(t){var e={item:t,next:null},n=this.tail;n?n.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}},t.exports=e},18727:function(t,e,n){"use strict";var r=n(36955);t.exports=function(t){var e=r(t);return"BigInt64Array"===e||"BigUint64Array"===e}},18745:function(t,e,n){"use strict";var r=n(40616),i=Function.prototype,o=i.apply,a=i.call;t.exports="object"==typeof Reflect&&Reflect.apply||(r?a.bind(o):function(){return a.apply(o,arguments)})},18814:function(t,e,n){"use strict";var r=n(79039),i=n(44576).RegExp;t.exports=r((function(){var t=i("(?b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$c")}))},18863:function(t,e,n){"use strict";var r=n(46518),i=n(80926).right,o=n(34598),a=n(39519);r({target:"Array",proto:!0,forced:!n(38574)&&a>79&&a<83||!o("reduceRight")},{reduceRight:function(t){return i(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}})},18866:function(t,e,n){"use strict";var r=n(43802).end,i=n(60706);t.exports=i("trimEnd")?function(){return r(this)}:"".trimEnd},19167:function(t,e,n){"use strict";var r=n(44576);t.exports=r},19369:function(t,e,n){"use strict";var r=n(94644),i=n(79504),o=r.aTypedArray,a=r.exportTypedArrayMethod,s=i([].join);a("join",(function(t){return s(o(this),t)}))},19462:function(t,e,n){"use strict";var r=n(69565),i=n(2360),o=n(66699),a=n(56279),s=n(78227),u=n(91181),c=n(55966),l=n(57657).IteratorPrototype,f=n(62529),h=n(9539),d=n(91385),p=s("toStringTag"),v="IteratorHelper",g="WrapForValidIterator",y="normal",m="throw",b=u.set,w=function(t){var e=u.getterFor(t?g:v);return a(i(l),{next:function(){var n=e(this);if(t)return n.nextHandler();if(n.done)return f(void 0,!0);try{var r=n.nextHandler();return n.returnHandlerResult?r:f(r,n.done)}catch(t){throw n.done=!0,t}},return:function(){var n=e(this),i=n.iterator;if(n.done=!0,t){var o=c(i,"return");return o?r(o,i):f(void 0,!0)}if(n.inner)try{h(n.inner.iterator,y)}catch(t){return h(i,m,t)}if(n.openIters)try{d(n.openIters,y)}catch(t){return h(i,m,t)}return i&&h(i,y),f(void 0,!0)}})},x=w(!0),k=w(!1);o(k,p,"Iterator Helper"),t.exports=function(t,e,n){var r=function(r,i){i?(i.iterator=r.iterator,i.next=r.next):i=r,i.type=e?g:v,i.returnHandlerResult=!!n,i.nextHandler=t,i.counter=0,i.done=!1,b(this,i)};return r.prototype=e?x:k,r}},19617:function(t,e,n){"use strict";var r=n(25397),i=n(35610),o=n(26198),a=function(t){return function(e,n,a){var s=r(e),u=o(s);if(0===u)return!t&&-1;var c,l=i(a,u);if(t&&n!=n){for(;u>l;)if((c=s[l++])!=c)return!0}else for(;u>l;l++)if((t||l in s)&&s[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},20034:function(t,e,n){"use strict";var r=n(94901);t.exports=function(t){return"object"==typeof t?null!==t:r(t)}},20116:function(t,e,n){"use strict";var r=n(46518),i=n(69565),o=n(72652),a=n(79306),s=n(28551),u=n(1767),c=n(9539),l=n(84549)("find",TypeError);r({target:"Iterator",proto:!0,real:!0,forced:l},{find:function(t){s(this);try{a(t)}catch(t){c(this,"throw",t)}if(l)return i(l,this,t);var e=u(this),n=0;return o(e,(function(e,r){if(t(e,n++))return r(e)}),{IS_RECORD:!0,INTERRUPTED:!0}).result}})},20326:function(t,e,n){"use strict";n(70511)("unscopables")},20397:function(t,e,n){"use strict";var r=n(97751);t.exports=r("document","documentElement")},20772:function(t,e,n){"use strict";var r=n(69565),i=n(97751),o=n(55966);t.exports=function(t,e,n,a){try{var s=o(t,"return");if(s)return i("Promise").resolve(r(s,t)).then((function(){e(n)}),(function(t){a(t)}))}catch(t){return a(t)}e(n)}},20781:function(t,e,n){"use strict";var r=n(46518),i=n(77240);r({target:"String",proto:!0,forced:n(23061)("italics")},{italics:function(){return i(this,"i","","")}})},21211:function(t,e,n){"use strict";var r=n(46518),i=n(28551),o=n(77347).f;r({target:"Reflect",stat:!0},{deleteProperty:function(t,e){var n=o(i(t),e);return!(n&&!n.configurable)&&delete t[e]}})},21489:function(t,e,n){"use strict";n(15823)("Uint8",(function(t){return function(e,n,r){return t(this,e,n,r)}}))},21699:function(t,e,n){"use strict";var r=n(46518),i=n(79504),o=n(60511),a=n(67750),s=n(655),u=n(41436),c=i("".indexOf);r({target:"String",proto:!0,forced:!u("includes")},{includes:function(t){return!!~c(s(a(this)),s(o(t)),arguments.length>1?arguments[1]:void 0)}})},21903:function(t,e,n){"use strict";var r=n(94644),i=n(43839).findLast,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("findLast",(function(t){return i(o(this),t,arguments.length>1?arguments[1]:void 0)}))},22134:function(t,e,n){"use strict";n(15823)("Uint8",(function(t){return function(e,n,r){return t(this,e,n,r)}}),!0)},22195:function(t,e,n){"use strict";var r=n(79504),i=r({}.toString),o=r("".slice);t.exports=function(t){return o(i(t),8,-1)}},22489:function(t,e,n){"use strict";var r=n(46518),i=n(69565),o=n(79306),a=n(28551),s=n(1767),u=n(19462),c=n(96319),l=n(96395),f=n(9539),h=n(30684),d=n(84549),p=!l&&!h("filter",(function(){})),v=!l&&!p&&d("filter",TypeError),g=l||p||v,y=u((function(){for(var t,e,n=this.iterator,r=this.predicate,o=this.next;;){if(t=a(i(o,n)),this.done=!!t.done)return;if(e=t.value,c(n,r,[e,this.counter++],!0))return e}}));r({target:"Iterator",proto:!0,real:!0,forced:g},{filter:function(t){a(this);try{o(t)}catch(t){f(this,"throw",t)}return v?i(v,this,t):new y(s(this),{predicate:t})}})},22812:function(t){"use strict";var e=TypeError;t.exports=function(t,n){if(t3}))}},23167:function(t,e,n){"use strict";var r=n(94901),i=n(20034),o=n(52967);t.exports=function(t,e,n){var a,s;return o&&r(a=e.constructor)&&a!==n&&i(s=a.prototype)&&s!==n.prototype&&o(t,s),t}},23288:function(t,e,n){"use strict";var r=n(79504),i=n(36840),o=Date.prototype,a="Invalid Date",s="toString",u=r(o[s]),c=r(o.getTime);String(new Date(NaN))!==a&&i(o,s,(function(){var t=c(this);return t==t?u(this):a}))},23418:function(t,e,n){"use strict";var r=n(46518),i=n(97916);r({target:"Array",stat:!0,forced:!n(84428)((function(t){Array.from(t)}))},{from:i})},23500:function(t,e,n){"use strict";var r=n(44576),i=n(67400),o=n(79296),a=n(90235),s=n(66699),u=function(t){if(t&&t.forEach!==a)try{s(t,"forEach",a)}catch(e){t.forEach=a}};for(var c in i)i[c]&&u(r[c]&&r[c].prototype);u(o)},23792:function(t,e,n){"use strict";var r=n(25397),i=n(6469),o=n(26269),a=n(91181),s=n(24913).f,u=n(51088),c=n(62529),l=n(96395),f=n(43724),h="Array Iterator",d=a.set,p=a.getterFor(h);t.exports=u(Array,"Array",(function(t,e){d(this,{type:h,target:r(t),index:0,kind:e})}),(function(){var t=p(this),e=t.target,n=t.index++;if(!e||n>=e.length)return t.target=null,c(void 0,!0);switch(t.kind){case"keys":return c(n,!1);case"values":return c(e[n],!1)}return c([n,e[n]],!1)}),"values");var v=o.Arguments=o.Array;if(i("keys"),i("values"),i("entries"),!l&&f&&"values"!==v.name)try{s(v,"name",{value:"values"})}catch(t){}},23860:function(t,e,n){"use strict";var r=n(46518),i=n(68183).codeAt;r({target:"String",proto:!0},{codePointAt:function(t){return i(this,t)}})},24074:function(t,e,n){"use strict";var r=n(69565),i=n(28551),o=n(2360),a=n(55966),s=n(56279),u=n(91181),c=n(9539),l=n(97751),f=n(53982),h=n(62529),d=l("Promise"),p="AsyncFromSyncIterator",v=u.set,g=u.getterFor(p),y=function(t,e,n,r,i){var o=t.done;d.resolve(t.value).then((function(t){e(h(t,o))}),(function(t){if(!o&&i)try{c(r,"throw",t)}catch(e){t=e}n(t)}))},m=function(t){t.type=p,v(this,t)};m.prototype=s(o(f),{next:function(){var t=g(this);return new d((function(e,n){var o=i(r(t.next,t.iterator));y(o,e,n,t.iterator,!0)}))},return:function(){var t=g(this).iterator;return new d((function(e,n){var o=a(t,"return");if(void 0===o)return e(h(void 0,!0));var s=i(r(o,t));y(s,e,n,t)}))}}),t.exports=m},24149:function(t){"use strict";var e=RangeError;t.exports=function(t){if(t==t)return t;throw new e("NaN is not allowed")}},24194:function(t,e,n){"use strict";var r=n(36955),i=TypeError;t.exports=function(t){if("DataView"===r(t))return t;throw new i("Argument is not a DataView")}},24359:function(t,e,n){"use strict";var r=n(46518),i=n(66346);r({global:!0,constructor:!0,forced:!n(77811)},{DataView:i.DataView})},24599:function(t,e,n){"use strict";var r=n(46518),i=n(44576),o=n(79472)(i.setTimeout,!0);r({global:!0,bind:!0,forced:i.setTimeout!==o},{setTimeout:o})},24659:function(t,e,n){"use strict";var r=n(79039),i=n(6980);t.exports=!r((function(){var t=new Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",i(1,7)),7!==t.stack)}))},24793:function(t,e,n){"use strict";var r=n(46518),i=n(43724),o=n(97751),a=n(79306),s=n(90679),u=n(36840),c=n(56279),l=n(62106),f=n(78227),h=n(91181),d=n(91021),p=n(39519),v=o("Promise"),g=o("SuppressedError"),y=ReferenceError,m=f("asyncDispose"),b=f("toStringTag"),w="AsyncDisposableStack",x=h.set,k=h.getterFor(w),A="async-dispose",S="disposed",E=function(t){var e=k(t);if(e.state===S)throw new y(w+" already disposed");return e},T=function(){x(s(this,_),{type:w,state:"pending",stack:[]}),i||(this.disposed=!1)},_=T.prototype;c(_,{disposeAsync:function(){var t=this;return new v((function(e,n){var r=k(t);if(r.state===S)return e(void 0);r.state=S,i||(t.disposed=!0);var o,a=r.stack,s=a.length,u=!1,c=function(t){u?o=new g(t,o):(u=!0,o=t),l()},l=function(){if(s){var t=a[--s];a[s]=null;try{v.resolve(t()).then(l,c)}catch(t){c(t)}}else r.stack=null,u?n(o):e(void 0)};l()}))},use:function(t){return d(E(this),t,A),t},adopt:function(t,e){var n=E(this);return a(e),d(n,void 0,A,(function(){return e(t)})),t},defer:function(t){var e=E(this);a(t),d(e,void 0,A,t)},move:function(){var t=E(this),e=new T;return k(e).stack=t.stack,t.stack=[],t.state=S,i||(this.disposed=!0),e}}),i&&l(_,"disposed",{configurable:!0,get:function(){return k(this).state===S}}),u(_,m,_.disposeAsync,{name:"disposeAsync"}),u(_,b,w,{nonWritable:!0}),r({global:!0,constructor:!0,forced:p&&p<136},{AsyncDisposableStack:T})},24913:function(t,e,n){"use strict";var r=n(43724),i=n(35917),o=n(48686),a=n(28551),s=n(56969),u=TypeError,c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,f="enumerable",h="configurable",d="writable";e.f=r?o?function(t,e,n){if(a(t),e=s(e),a(n),"function"==typeof t&&"prototype"===e&&"value"in n&&d in n&&!n[d]){var r=l(t,e);r&&r[d]&&(t[e]=n.value,n={configurable:h in n?n[h]:r[h],enumerable:f in n?n[f]:r[f],writable:!1})}return c(t,e,n)}:c:function(t,e,n){if(a(t),e=s(e),a(n),i)try{return c(t,e,n)}catch(t){}if("get"in n||"set"in n)throw new u("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},25170:function(t,e,n){"use strict";var r=n(46706),i=n(94402);t.exports=r(i.proto,"size","get")||function(t){return t.size}},25172:function(t){t.exports=function(t,e){this.v=t,this.k=e},t.exports.__esModule=!0,t.exports.default=t.exports},25276:function(t,e,n){"use strict";var r=n(46518),i=n(27476),o=n(19617).indexOf,a=n(34598),s=i([].indexOf),u=!!s&&1/s([1],1,-0)<0;r({target:"Array",proto:!0,forced:u||!a("indexOf")},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return u?s(this,t,e)||0:o(this,t,e)}})},25397:function(t,e,n){"use strict";var r=n(47055),i=n(67750);t.exports=function(t){return r(i(t))}},25428:function(t,e,n){"use strict";n(46518)({target:"Number",stat:!0},{isFinite:n(50360)})},25440:function(t,e,n){"use strict";var r=n(18745),i=n(69565),o=n(79504),a=n(89228),s=n(79039),u=n(28551),c=n(94901),l=n(20034),f=n(91291),h=n(18014),d=n(655),p=n(67750),v=n(57829),g=n(55966),y=n(2478),m=n(61034),b=n(56682),w=n(78227)("replace"),x=Math.max,k=Math.min,A=o([].concat),S=o([].push),E=o("".indexOf),T=o("".slice),_="$0"==="a".replace(/./,"$0"),O=!!/./[w]&&""===/./[w]("a","$0");a("replace",(function(t,e,n){var o=O?"$":"$0";return[function(t,n){var r=p(this),o=l(t)?g(t,w):void 0;return o?i(o,t,r,n):i(e,d(r),t,n)},function(t,i){var a=u(this),s=d(t);if("string"==typeof i&&-1===E(i,o)&&-1===E(i,"$<")){var l=n(e,a,s,i);if(l.done)return l.value}var p=c(i);p||(i=d(i));var g,w=d(m(a)),_=-1!==E(w,"g");_&&(g=-1!==E(w,"u"),a.lastIndex=0);for(var O,M=[];null!==(O=b(a,s))&&(S(M,O),_);)""===d(O[0])&&(a.lastIndex=v(s,h(a.lastIndex),g));for(var C,L="",R=0,I=0;I=R&&(L+=T(s,R,F)+P,R=F+j.length)}return L+T(s,R)}]}),!!s((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$")}))||!_||O)},25745:function(t,e,n){"use strict";var r=n(77629);t.exports=function(t,e){return r[t]||(r[t]=e||{})}},25843:function(t,e,n){"use strict";var r=n(46518),i=n(52703);r({target:"Number",stat:!0,forced:Number.parseInt!==i},{parseInt:i})},26099:function(t,e,n){"use strict";var r=n(92140),i=n(36840),o=n(53179);r||i(Object.prototype,"toString",o,{unsafe:!0})},26198:function(t,e,n){"use strict";var r=n(18014);t.exports=function(t){return r(t.length)}},26269:function(t){"use strict";t.exports={}},26561:function(t,e,n){"use strict";n.a(t,(async function(t,e){try{var r=n(23029),i=n(92901),o=n(10467),a=n(64467),s=n(3453),u=n(54756),c=n.n(u),l=n(5457),f=n(92407),h=n(49557),d=n(62248),p=t([l]);function Vt(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=$t(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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 o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function $t(t,e){if(t){if("string"==typeof t)return Gt(t,e);var n={}.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)?Gt(t,e):void 0}}function Gt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;return{left:n*e.left+t.left,right:n*e.right+t.left,top:r*e.top+t.top,bottom:r*e.bottom+t.top}}(g,t,f,h)})),b=m.reduce((function(t,e){return{left:Math.min(t.left,e.left),top:Math.min(t.top,e.top),right:Math.max(t.right,e.right),bottom:Math.max(t.bottom,e.bottom)}}),te({},m[0])),w=window.innerWidth,x=window.innerHeight;return{left:u(b.left/w),top:u(b.top/x),right:u(b.right/w),bottom:u(b.bottom/x)}},S=function(t){if(null==t||!t.rangeCount)return null;var e=t.getRangeAt(0);return e.collapsed?null:e},E=120,T=function(t){return"string"==typeof t?t.replace(/\s+/g," ").trim():""},_=function(t,e,n){if(!t)return"";var r=Math.max(0,Math.min(t.length,e)),i=Math.max(r,Math.min(t.length,n));return t.slice(r,i)},O=function(t){var e,n;if(!t)return"";var r=t.toString().trim(),i=t.startContainer,o=t.endContainer,a=null!==(e=null==i?void 0:i.textContent)&&void 0!==e?e:"",s=null!==(n=null==o?void 0:o.textContent)&&void 0!==n?n:"",u="";if(i===o){var c=_(a,t.startOffset-E,t.endOffset+E);u=T(c)}else u=[T(_(a,t.startOffset-E,t.startOffset+E)),r,T(_(s,t.endOffset-E,t.endOffset+E))].filter(Boolean).join(" ");return!u&&r&&(u=r),(u=T(u)).length>600?u.slice(0,600):u},M=function(t,e,n){var r=e.getSelection(),i=S(r);if(i){var o=A(i),a=t.getCFI(n,i),s=r.toString();if(!s){var u=i.startContainer.ownerDocument.getSelection();u.removeAllRanges(),u.addRange(i),s=u.toString()}var c=O(i);xt({index:n,range:i,lang:"en-US",cfi:a,pos:o,text:s,contextText:c})}},C=function(t){return t.__anxAutoPageState||(t.__anxAutoPageState={sessionId:0,currentPageKey:null,triggeredPages:new Set,pendingFromPageKey:null,pendingTimer:null,postNextRecheckTimer:null,postNextRecheckAttempts:0,awaitingPageAdvanceFromKey:null}),t.__anxAutoPageState},L=function(t){t.pendingTimer&&(clearTimeout(t.pendingTimer),t.pendingTimer=null)},R=function(t){t.postNextRecheckTimer&&(clearTimeout(t.postNextRecheckTimer),t.postNextRecheckTimer=null)},I=function(t){t.currentPageKey=null,t.triggeredPages.clear(),t.pendingFromPageKey=null,t.postNextRecheckAttempts=0,t.awaitingPageAdvanceFromKey=null},P=function(t){var e=C(t);return L(e),R(e),e.sessionId+=1,I(e),e},j=function(t,e,n){var r=!1,i=null;e.__anxSelectionClearedAt=0,e.__anxSuppressClick=!1,e.addEventListener("selectionchange",(function(){if(S(e.getSelection()))return r=!0,e.__anxSelectionClearedAt=0,void(e.__anxSuppressClick=!1);r&&(r=!1,i=null,e.__anxSelectionClearedAt=Date.now(),e.__anxSuppressClick=!0,function(t){var e=C(t);L(e),R(e),I(e)}(t),ht("onSelectionCleared"))}));var a=function(){var t,n,r=S(e.getSelection());return!(!r||(!i||(n=r,(t=i).startContainer!==n.startContainer||t.startOffset!==n.startOffset||t.endContainer!==n.endContainer||t.endOffset!==n.endOffset))&&(i=r.cloneRange(),1))};if(navigator.platform.includes("Mac")||navigator.platform.includes("iPhone")||navigator.platform.includes("iPad"))e.addEventListener("pointerup",(function(){a()||M(t,e,n)}));else if(navigator.platform.includes("Win"))if(e.addEventListener("contextmenu",(function(t){t.preventDefault()})),navigator.maxTouchPoints>0){e.addEventListener("pointerup",(function(r){"touch"!==r.pointerType&&(a()||M(t,e,n))}));var s=!1;e.addEventListener("pointerdown",(function(t){"mouse"===t.pointerType&&(s=!0)})),e.addEventListener("pointerup",(function(t){"mouse"===t.pointerType&&(s=!1)}));var u=void 0;e.addEventListener("selectionchange",(function(){!s&&S(e.getSelection())&&(clearTimeout(u),u=setTimeout((function(){M(t,e,n)}),500))}))}else e.addEventListener("pointerup",(function(){a()||M(t,e,n)}));else if(navigator.userAgent.includes("Phone; OpenHarmony"))e.addEventListener("contextmenu",(function(t){t.preventDefault()})),u=void 0,e.addEventListener("selectionchange",(function(){S(e.getSelection())&&(clearTimeout(u),u=setTimeout((function(){M(t,e,n)}),600))}));else{var l=!1;e.addEventListener("pointerdown",(function(){l=!1})),e.addEventListener("pointercancel",(function(){l=!0})),e.addEventListener("contextmenu",(function(r){"mouse"!==r.pointerType?l?M(t,e,n):r.preventDefault():M(t,e,n)}))}t.isFixedLayout||(e.addEventListener("selectstart",(function(){var e=t.shadowRoot.querySelector("foliate-paginator").shadowRoot.querySelector("#container");e&&(globalThis.originalScrollLeft=e.scrollLeft,P(t))})),e.addEventListener("selectionchange",(function(){if("paginated"===t.renderer.getAttribute("flow")){var r=t.lastLocation;if(r){var i=S(e.getSelection());if(i&&r.range){var a=t.shadowRoot.querySelector("foliate-paginator").shadowRoot.querySelector("#container");if(a){var s=C(t);0===s.sessionId&&P(t);var u,l=function(t,e){var n,r,i,o,a;if(!t)return"index:".concat(e,":none");var s=null!==(n=t.cfi)&&void 0!==n?n:"",u=null!==(r=null===(i=t.location)||void 0===i?void 0:i.current)&&void 0!==r?r:"",c=null!==(o=null===(a=t.chapterLocation)||void 0===a?void 0:a.current)&&void 0!==o?o:"";return"index:".concat(e,"|cfi:").concat(s,"|loc:").concat(u,"|chapter:").concat(c)}(r,n);s.currentPageKey!==l&&(s.awaitingPageAdvanceFromKey&&s.awaitingPageAdvanceFromKey!==l&&(s.awaitingPageAdvanceFromKey=null,s.postNextRecheckAttempts=0,R(s)),s.currentPageKey=l),s.pendingFromPageKey&&s.pendingFromPageKey!==l&&(L(s),s.pendingFromPageKey=null);try{u=i.compareBoundaryPoints(Range.END_TO_END,r.range)}catch(t){return}var f=u>=0,h=A(i).bottom>=.9,d=f&&h;if(d||s.pendingFromPageKey!==l||(L(s),s.pendingFromPageKey=null),d){if(s.pendingFromPageKey===l){if(s.pendingTimer)return;s.pendingFromPageKey=null}if(s.triggeredPages.has(l))return;s.pendingFromPageKey=l,R(s),s.awaitingPageAdvanceFromKey=null,s.postNextRecheckAttempts=0,L(s);var p=s.sessionId;s.pendingTimer=setTimeout((0,o.A)(c().mark((function n(){var r,i;return c().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(s.pendingTimer=null,p===s.sessionId){n.next=1;break}return n.abrupt("return");case 1:return s.triggeredPages.add(l),n.prev=2,n.next=3,t.next();case 3:(r=t.shadowRoot.querySelector("foliate-paginator").shadowRoot.querySelector("#container"))&&(globalThis.originalScrollLeft=r.scrollLeft);case 4:return n.prev=4,s.pendingFromPageKey===l&&(s.pendingFromPageKey=null),s.awaitingPageAdvanceFromKey=l,s.postNextRecheckAttempts=0,R(s),i=function(){if(s.postNextRecheckTimer=null,p===s.sessionId&&s.awaitingPageAdvanceFromKey===l){s.postNextRecheckAttempts+=1;try{e.dispatchEvent(new Event("selectionchange"))}catch(t){return}s.postNextRecheckAttempts>=12||(s.postNextRecheckTimer=setTimeout(i,120))}},s.postNextRecheckTimer=setTimeout(i,80),n.finish(4);case 5:case"end":return n.stop()}}),n,null,[[2,,4,5]])}))),1e3)}else{var v=function(){var n=S(e.getSelection());n&&t.lastLocation&&t.lastLocation.range&&t.lastLocation.range.startContainer===n.endContainer&&(a.scrollLeft=globalThis.originalScrollLeft)};a.addEventListener("scroll",v),e.addEventListener("pointerup",(function(){a.removeEventListener("scroll",v)}),{once:!0})}}}}}})))},F=function(){var t=(0,o.A)(c().mark((function t(e){var n,r,i;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=Uint8Array,t.next=1,e.slice(0,4).arrayBuffer();case 1:return i=t.sent,n=new r(i),t.abrupt("return",80===n[0]&&75===n[1]&&3===n[2]&&4===n[3]);case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),N=function(){var t=(0,o.A)(c().mark((function t(e){var n,r,i;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=Uint8Array,t.next=1,e.slice(0,5).arrayBuffer();case 1:return i=t.sent,n=new r(i),t.abrupt("return",37===n[0]&&80===n[1]&&68===n[2]&&70===n[3]&&45===n[4]);case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),D=function(){var t=(0,o.A)(c().mark((function t(e){var n,r,i,o,a,s,u;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return g({useWebWorkers:!1}),n=new y(new m(e)),t.next=1,n.getEntries();case 1:return r=t.sent,i=new Map(r.map((function(t){return[t.filename,t]}))),o=function(t){return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o div:only-of-type,\n body > div:only-of-type > div:only-of-type {\n overflow: visible !important;\n }\n\n img, svg {\n // height: auto !important;\n // width: auto !important;\n object-fit: contain !important;\n break-inside: avoid !important;\n box-sizing: border-box !important;\n font-size: initial !important;\n // height: initial !important;\n // width: initial !important;\n }\n\n a:link {\n color:rgb(167, 96, 52) !important;\n }\n \n a > img {\n font-size: ").concat(e,"em !important;\n }\n\n * {\n // line-height: ").concat(a,"em !important;\n ").concat(m,"\n }\n\n ").concat(g?"":"\n h1 { \n font-size: calc(2em * ".concat(y,") !important; \n line-height: ").concat(a," !important;\n }\n h2 { \n font-size: calc(1.5em * ").concat(y,") !important; \n line-height: ").concat(a," !important;\n }\n h3 { \n font-size: calc(1.17em * ").concat(y,") !important; \n line-height: ").concat(a," !important;\n }\n h4 { \n font-size: calc(1em * ").concat(y,") !important; \n line-height: ").concat(a," !important;\n }\n h5 { \n font-size: calc(0.83em * ").concat(y,") !important; \n line-height: ").concat(a," !important;\n }\n h6 { \n font-size: calc(0.67em * ").concat(y,") !important; \n line-height: ").concat(a," !important;\n }\n "),"\n\n p, li, blockquote, dd, div:not(:has(*:not(b, a, em, i, strong, u, span))), font {\n color: ").concat(c," !important;\n ").concat(g?"":"line-height: ".concat(a," !important;"),"\n ").concat(g?"":"font-weight: ".concat(i," !important;"),"\n ").concat(g?"":"text-align: ".concat("auto"===f?l?"justify":"start":f,";"),"\n ").concat(g||s<0?"":"text-indent: "+s+"em !important;","\n -webkit-hyphens: ").concat(h?"auto":"manual",";\n hyphens: ").concat(h?"auto":"manual",";\n -webkit-hyphenate-limit-before: 3;\n -webkit-hyphenate-limit-after: 2;\n -webkit-hyphenate-limit-lines: 2;\n hanging-punctuation: allow-end last;\n widows: 2;\n ").concat(g?"":"margin-block-start: ".concat(u/2,"em !important;"),"\n ").concat(g?"":"margin-block-end: ".concat(u/2,"em !important;"),'\n }\n\n .anx-text-center,\n [align="center"],\n [style*="text-align: center"],\n [style*="text-align:center"] {\n text-indent: 0 !important;\n }\n\n\n /* Paragraphs containing only an image — don\'t change */\n p:has(> img:only-child),\n p:has(> span:only-child > img:only-child),\n p:has(> img:not(.has-text-siblings)),\n p:has(> a:first-child + img:last-child),\n div:has(> img:only-child),\n div:has(> span:only-child > img:only-child),\n div:has(> img:not(.has-text-siblings)),\n div:has(> a:first-child + img:last-child) {\n text-indent: initial !important;\n font-size: initial !important;\n height: initial !important;\n width: initial !important;\n }\n\n /* Paragraphs inside list items — prevent double indentation */\n li > p,\n ol > p,\n ul > p {\n text-indent: 0 !important;\n }\n \n /* prevent the above from overriding the align attribute */\n [align="left"] { text-align: left; }\n [align="right"] { text-align: right; }\n [align="center"] { text-align: center; }\n [align="justify"] { text-align: justify; }\n\n /* Code highlighting styles */\n pre {\n white-space: pre-wrap !important;\n background: rgba(128, 128, 128, 0.1) !important;\n border-radius: 6px !important;\n padding: 1em !important;\n overflow: visible !important;\n font-family: \'Consolas\', \'Monaco\', \'Courier New\', monospace !important;\n font-size: 0.9em !important;\n line-height: 1.5 !important;\n margin: 0.5em 0 !important;\n /* Allow code blocks to be split across columns/pages in WebKit */\n break-inside: auto !important;\n page-break-inside: auto !important;\n -webkit-column-break-inside: auto !important;\n /* Force block formatting context to allow proper column breaks */\n display: block !important;\n /* Remove any max-height constraints */\n max-height: none !important;\n height: auto !important;\n }\n \n /* Individual lines within code can break across columns */\n pre code {\n display: block !important;\n break-inside: auto !important;\n page-break-inside: auto !important;\n -webkit-column-break-inside: auto !important;\n overflow: visible !important;\n max-height: none !important;\n height: auto !important;\n white-space: pre-wrap !important;\n }\n \n /* Line wrapper for Safari column breaking */\n .anx-code-line {\n display: block !important;\n break-inside: avoid !important;\n page-break-inside: avoid !important;\n -webkit-column-break-inside: avoid !important;\n }\n \n code {\n font-family: \'Consolas\', \'Monaco\', \'Courier New\', monospace !important;\n font-size: 0.9em !important;\n background: rgba(128, 128, 128, 0.15) !important;\n padding: 0.2em 0.4em !important;\n border-radius: 3px !important;\n }\n \n pre > code {\n background: transparent !important;\n padding: 0 !important;\n border-radius: 0 !important;\n font-size: 1em !important;\n }\n \n aside[epub|type~="endnote"],\n aside[epub|type~="footnote"],\n aside[epub|type~="note"],\n aside[epub|type~="rearnote"] {\n display: none;\n }\n \n ').concat(v&&p?p:"","\n")},V=function(t){if("none"!==Ct.convertChineseMode&&function(t,e){console.log("convertChinese",t);var n="皑蔼碍爱翱袄奥坝罢摆败颁办绊帮绑镑谤剥饱宝报鲍辈贝钡狈备惫绷笔毕毙闭边编贬变辩辫鳖瘪濒滨宾摈饼拨钵铂驳卜补参蚕残惭惨灿苍舱仓沧厕侧册测层诧搀掺蝉馋谗缠铲产阐颤场尝长偿肠厂畅钞车彻尘陈衬撑称惩诚骋痴迟驰耻齿炽冲虫宠畴踌筹绸丑橱厨锄雏础储触处传疮闯创锤纯绰辞词赐聪葱囱从丛凑窜错达带贷担单郸掸胆惮诞弹当挡党荡档捣岛祷导盗灯邓敌涤递缔点垫电淀钓调迭谍叠钉顶锭订东动栋冻斗犊独读赌镀锻断缎兑队对吨顿钝夺鹅额讹恶饿儿尔饵贰发罚阀珐矾钒烦范贩饭访纺飞废费纷坟奋愤粪丰枫锋风疯冯缝讽凤肤辐抚辅赋复负讣妇缚该钙盖干赶秆赣冈刚钢纲岗皋镐搁鸽阁铬个给龚宫巩贡钩沟构购够蛊顾剐关观馆惯贯广规硅归龟闺轨诡柜贵刽辊滚锅国过骇韩汉阂鹤贺横轰鸿红后壶护沪户哗华画划话怀坏欢环还缓换唤痪焕涣黄谎挥辉毁贿秽会烩汇讳诲绘荤浑伙获货祸击机积饥讥鸡绩缉极辑级挤几蓟剂济计记际继纪夹荚颊贾钾价驾歼监坚笺间艰缄茧检碱硷拣捡简俭减荐槛鉴践贱见键舰剑饯渐溅涧浆蒋桨奖讲酱胶浇骄娇搅铰矫侥脚饺缴绞轿较秸阶节茎惊经颈静镜径痉竞净纠厩旧驹举据锯惧剧鹃绢杰洁结诫届紧锦仅谨进晋烬尽劲荆觉决诀绝钧军骏开凯颗壳课垦恳抠库裤夸块侩宽矿旷况亏岿窥馈溃扩阔蜡腊莱来赖蓝栏拦篮阑兰澜谰揽览懒缆烂滥捞劳涝乐镭垒类泪篱离里鲤礼丽厉励砾历沥隶俩联莲连镰怜涟帘敛脸链恋炼练粮凉两辆谅疗辽镣猎临邻鳞凛赁龄铃凌灵岭领馏刘龙聋咙笼垄拢陇楼娄搂篓芦卢颅庐炉掳卤虏鲁赂禄录陆驴吕铝侣屡缕虑滤绿峦挛孪滦乱抡轮伦仑沦纶论萝罗逻锣箩骡骆络妈玛码蚂马骂吗买麦卖迈脉瞒馒蛮满谩猫锚铆贸么霉没镁门闷们锰梦谜弥觅绵缅庙灭悯闽鸣铭谬谋亩钠纳难挠脑恼闹馁腻撵捻酿鸟聂啮镊镍柠狞宁拧泞钮纽脓浓农疟诺欧鸥殴呕沤盘庞国爱赔喷鹏骗飘频贫苹凭评泼颇扑铺朴谱脐齐骑岂启气弃讫牵扦钎铅迁签谦钱钳潜浅谴堑枪呛墙蔷强抢锹桥乔侨翘窍窃钦亲轻氢倾顷请庆琼穷趋区躯驱龋颧权劝却鹊让饶扰绕热韧认纫荣绒软锐闰润洒萨鳃赛伞丧骚扫涩杀纱筛晒闪陕赡缮伤赏烧绍赊摄慑设绅审婶肾渗声绳胜圣师狮湿诗尸时蚀实识驶势释饰视试寿兽枢输书赎属术树竖数帅双谁税顺说硕烁丝饲耸怂颂讼诵擞苏诉肃虽绥岁孙损笋缩琐锁獭挞抬摊贪瘫滩坛谭谈叹汤烫涛绦腾誊锑题体屉条贴铁厅听烃铜统头图涂团颓蜕脱鸵驮驼椭洼袜弯湾顽万网韦违围为潍维苇伟伪纬谓卫温闻纹稳问瓮挝蜗涡窝呜钨乌诬无芜吴坞雾务误锡牺袭习铣戏细虾辖峡侠狭厦锨鲜纤咸贤衔闲显险现献县馅羡宪线厢镶乡详响项萧销晓啸蝎协挟携胁谐写泻谢锌衅兴汹锈绣虚嘘须许绪续轩悬选癣绚学勋询寻驯训讯逊压鸦鸭哑亚讶阉烟盐严颜阎艳厌砚彦谚验鸯杨扬疡阳痒养样瑶摇尧遥窑谣药爷页业叶医铱颐遗仪彝蚁艺亿忆义诣议谊译异绎荫阴银饮樱婴鹰应缨莹萤营荧蝇颖哟拥佣痈踊咏涌优忧邮铀犹游诱舆鱼渔娱与屿语吁御狱誉预驭鸳渊辕园员圆缘远愿约跃钥岳粤悦阅云郧匀陨运蕴酝晕韵杂灾载攒暂赞赃脏凿枣灶责择则泽贼赠扎札轧铡闸诈斋债毡盏斩辗崭栈战绽张涨帐账胀赵蛰辙锗这贞针侦诊镇阵挣睁狰帧郑证织职执纸挚掷帜质钟终种肿众诌轴皱昼骤猪诸诛烛瞩嘱贮铸筑驻专砖转赚桩庄装妆壮状锥赘坠缀谆浊兹资渍踪综总纵邹诅组钻致钟么为只凶准启板里雳余链泄",r="皚藹礙愛翺襖奧壩罷擺敗頒辦絆幫綁鎊謗剝飽寶報鮑輩貝鋇狽備憊繃筆畢斃閉邊編貶變辯辮鼈癟瀕濱賓擯餅撥缽鉑駁蔔補參蠶殘慚慘燦蒼艙倉滄廁側冊測層詫攙摻蟬饞讒纏鏟産闡顫場嘗長償腸廠暢鈔車徹塵陳襯撐稱懲誠騁癡遲馳恥齒熾沖蟲寵疇躊籌綢醜櫥廚鋤雛礎儲觸處傳瘡闖創錘純綽辭詞賜聰蔥囪從叢湊竄錯達帶貸擔單鄲撣膽憚誕彈當擋黨蕩檔搗島禱導盜燈鄧敵滌遞締點墊電澱釣調叠諜疊釘頂錠訂東動棟凍鬥犢獨讀賭鍍鍛斷緞兌隊對噸頓鈍奪鵝額訛惡餓兒爾餌貳發罰閥琺礬釩煩範販飯訪紡飛廢費紛墳奮憤糞豐楓鋒風瘋馮縫諷鳳膚輻撫輔賦複負訃婦縛該鈣蓋幹趕稈贛岡剛鋼綱崗臯鎬擱鴿閣鉻個給龔宮鞏貢鈎溝構購夠蠱顧剮關觀館慣貫廣規矽歸龜閨軌詭櫃貴劊輥滾鍋國過駭韓漢閡鶴賀橫轟鴻紅後壺護滬戶嘩華畫劃話懷壞歡環還緩換喚瘓煥渙黃謊揮輝毀賄穢會燴彙諱誨繪葷渾夥獲貨禍擊機積饑譏雞績緝極輯級擠幾薊劑濟計記際繼紀夾莢頰賈鉀價駕殲監堅箋間艱緘繭檢堿鹼揀撿簡儉減薦檻鑒踐賤見鍵艦劍餞漸濺澗漿蔣槳獎講醬膠澆驕嬌攪鉸矯僥腳餃繳絞轎較稭階節莖驚經頸靜鏡徑痙競淨糾廄舊駒舉據鋸懼劇鵑絹傑潔結誡屆緊錦僅謹進晉燼盡勁荊覺決訣絕鈞軍駿開凱顆殼課墾懇摳庫褲誇塊儈寬礦曠況虧巋窺饋潰擴闊蠟臘萊來賴藍欄攔籃闌蘭瀾讕攬覽懶纜爛濫撈勞澇樂鐳壘類淚籬離裏鯉禮麗厲勵礫曆瀝隸倆聯蓮連鐮憐漣簾斂臉鏈戀煉練糧涼兩輛諒療遼鐐獵臨鄰鱗凜賃齡鈴淩靈嶺領餾劉龍聾嚨籠壟攏隴樓婁摟簍蘆盧顱廬爐擄鹵虜魯賂祿錄陸驢呂鋁侶屢縷慮濾綠巒攣孿灤亂掄輪倫侖淪綸論蘿羅邏鑼籮騾駱絡媽瑪碼螞馬罵嗎買麥賣邁脈瞞饅蠻滿謾貓錨鉚貿麽黴沒鎂門悶們錳夢謎彌覓綿緬廟滅憫閩鳴銘謬謀畝鈉納難撓腦惱鬧餒膩攆撚釀鳥聶齧鑷鎳檸獰甯擰濘鈕紐膿濃農瘧諾歐鷗毆嘔漚盤龐國愛賠噴鵬騙飄頻貧蘋憑評潑頗撲鋪樸譜臍齊騎豈啓氣棄訖牽扡釺鉛遷簽謙錢鉗潛淺譴塹槍嗆牆薔強搶鍬橋喬僑翹竅竊欽親輕氫傾頃請慶瓊窮趨區軀驅齲顴權勸卻鵲讓饒擾繞熱韌認紉榮絨軟銳閏潤灑薩鰓賽傘喪騷掃澀殺紗篩曬閃陝贍繕傷賞燒紹賒攝懾設紳審嬸腎滲聲繩勝聖師獅濕詩屍時蝕實識駛勢釋飾視試壽獸樞輸書贖屬術樹豎數帥雙誰稅順說碩爍絲飼聳慫頌訟誦擻蘇訴肅雖綏歲孫損筍縮瑣鎖獺撻擡攤貪癱灘壇譚談歎湯燙濤縧騰謄銻題體屜條貼鐵廳聽烴銅統頭圖塗團頹蛻脫鴕馱駝橢窪襪彎灣頑萬網韋違圍爲濰維葦偉僞緯謂衛溫聞紋穩問甕撾蝸渦窩嗚鎢烏誣無蕪吳塢霧務誤錫犧襲習銑戲細蝦轄峽俠狹廈鍁鮮纖鹹賢銜閑顯險現獻縣餡羨憲線廂鑲鄉詳響項蕭銷曉嘯蠍協挾攜脅諧寫瀉謝鋅釁興洶鏽繡虛噓須許緒續軒懸選癬絢學勳詢尋馴訓訊遜壓鴉鴨啞亞訝閹煙鹽嚴顔閻豔厭硯彥諺驗鴦楊揚瘍陽癢養樣瑤搖堯遙窯謠藥爺頁業葉醫銥頤遺儀彜蟻藝億憶義詣議誼譯異繹蔭陰銀飲櫻嬰鷹應纓瑩螢營熒蠅穎喲擁傭癰踴詠湧優憂郵鈾猶遊誘輿魚漁娛與嶼語籲禦獄譽預馭鴛淵轅園員圓緣遠願約躍鑰嶽粵悅閱雲鄖勻隕運蘊醞暈韻雜災載攢暫贊贓髒鑿棗竈責擇則澤賊贈紮劄軋鍘閘詐齋債氈盞斬輾嶄棧戰綻張漲帳賬脹趙蟄轍鍺這貞針偵診鎮陣掙睜猙幀鄭證織職執紙摯擲幟質鍾終種腫衆謅軸皺晝驟豬諸誅燭矚囑貯鑄築駐專磚轉賺樁莊裝妝壯狀錐贅墜綴諄濁茲資漬蹤綜總縱鄒詛組鑽緻鐘麼為隻兇準啟闆裡靂餘鍊洩",i="s2t"===t?n:r,o="s2t"===t?r:n,a=function(t,e,n){t.nodeType===Node.TEXT_NODE?t.textContent=t.textContent.replace(/[\u4e00-\u9fa5]/g,(function(t){var r;return null!==(r=n[e.indexOf(t)])&&void 0!==r?r:t})):t.childNodes.forEach((function(t){return a(t,e,n)}))};e.body.childNodes.forEach((function(t){a(t,i,o)}))}(Ct.convertChineseMode,t),Ct.bionicReadingMode,Mt.textIndent>0&&t.querySelectorAll("p, div, li, blockquote, dd, font").forEach((function(t){"center"===window.getComputedStyle(t).textAlign&&t.classList.add("anx-text-center")})),Mt.writingMode.startsWith("vertical")||reader.view.renderer.writingMode.startsWith("vertical")){var e=function(t){t.nodeType===Node.TEXT_NODE?t.textContent=t.textContent.replace(/“/g,"『").replace(/”/g,"』").replace(/‘/g,"「").replace(/’/g,"」"):t.childNodes.forEach((function(t){return e(t)}))};t.body.childNodes.forEach((function(t){e(t)}))}},$=document.getElementById("footnote-dialog");$.style.display="none",$.addEventListener("click",(function(){$.style.display="none",ht("onFootnoteClose")})),$.addEventListener("click",(function(t){return t.target===$?$.close():null}));var G=new WeakMap,X=new WeakMap,Y=new WeakMap,K=new WeakMap,J=new WeakMap,Z=new WeakMap,Q=new WeakMap,tt=new WeakMap,et=new WeakSet,nt=new WeakMap,rt=new WeakMap,it=new WeakMap,ot=new WeakMap,at=new WeakMap,st=new WeakMap,ut=new WeakMap,ct=new WeakMap,lt=function(){return(0,i.A)((function t(){var e,n=this;(0,r.A)(this,t),Yt(this,e=et),e.add(this),(0,a.A)(this,"annotations",new Map),(0,a.A)(this,"annotationsByValue",new Map),Xt(this,G,new f.F),Xt(this,X,void 0),Xt(this,Y,void 0),Xt(this,K,void 0),Xt(this,J,!1),Xt(this,Z,!1),Xt(this,Q,{exists:!1,cfi:null,id:null}),Xt(this,tt,!1),Xt(this,nt,(function(){Kt(K,n,[]);for(var t=document.createTreeWalker(Jt(X,n).body,NodeFilter.SHOW_TEXT,null,!1);t.nextNode();)Jt(K,n).push(t.currentNode.textContent)})),Xt(this,rt,(function(){for(var t,e=document.createTreeWalker(Jt(X,n).body,NodeFilter.SHOW_TEXT,null,!1),r=0;t=e.nextNode();)t.textContent=Jt(K,n)[r++]})),(0,a.A)(this,"readingFeatures",(function(){Jt(rt,n).call(n),V(Jt(X,n))})),(0,a.A)(this,"getChapterContent",(function(){return Jt(X,n).body.textContent})),(0,a.A)(this,"getChapterContentByHref",function(){var t=(0,o.A)(c().mark((function t(e){var r,i,o,a,s,u,l,f,h,d,p,v,g,y=arguments;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(u=y.length>1&&void 0!==y[1]?y[1]:{},e){t.next=1;break}return t.abrupt("return","");case 1:if(null!==(r=n.view)&&void 0!==r&&null!==(r=r.book)&&void 0!==r&&r.sections){t.next=2;break}return t.abrupt("return","");case 2:if((l=null===(i=(o=n.view).resolveNavigation)||void 0===i?void 0:i.call(o,e))&&null!=l.index){t.next=3;break}return t.abrupt("return","");case 3:if(null!=(f=n.view.book.sections[l.index])&&f.createDocument){t.next=4;break}return t.abrupt("return","");case 4:return t.next=5,f.createDocument();case 5:if(h=t.sent,d=null!==(a=null==h||null===(s=h.body)||void 0===s?void 0:s.textContent)&&void 0!==a?a:""){t.next=6;break}return t.abrupt("return","");case 6:return p=null==u?void 0:u.maxChars,v=null==p?null:Number(p),null!=(g=Number.isFinite(v)&&v>0?Math.floor(v):null)&&d.length>g&&(d=d.slice(0,g)),t.abrupt("return",d);case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),(0,a.A)(this,"getPreviousContent",(function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:2e3,r=null===(t=n.view.lastLocation)||void 0===t||null===(t=t.range)||void 0===t||null===(t=t.endContainer)||void 0===t?void 0:t.parentElement;if(!r)return"";for(var i="";i.length0?Jt(tt,n)||(r.style.transform="translateY(".concat(Math.sqrt(50*i),"px)"),Jt(ut,n).call(n,i)):i<-60&&(Jt(Z,n)||(Kt(Z,n,!0),window.pullUp()))}}})),Xt(this,st,(function(t){var e=t.detail;if(Jt(it,n).call(n)&&"vertical"===e.touchState.direction){var r=n.view.renderer,i=r.shadowRoot.querySelector("#container").scrollTop,o=e.touchState.delta.y;o>60&&i<=1?(r.shadowRoot.querySelector("#container").scrollTop=0,prevPage()):o<-60&&r.viewSize-r.end<=1&&nextPage()}else{var a=n.view.shadowRoot.children[0];if("vertical"===e.touchState.direction){var s=e.touchState.delta.y;s<-60||(s>60?Jt(tt,n)||(Jt(J,n)?(Jt(ct,n).call(n),n.handleBookmark(!0)):(Jt(ut,n).call(n,s),n.handleBookmark(!1))):Jt(ct,n).call(n)),a.style.transition="transform 0.3s ease-out",a.style.transform="translateY(0px)",setTimeout((function(){a.style.transition=""}),300)}}})),Xt(this,ut,(function(t){var e=document.getElementById("bookmark-icon");e||((e=document.createElement("div")).id="bookmark-icon",e.innerHTML='',e.style.cssText="\n height: 80px;\n width: 26px;\n position: fixed;\n top: -16px;\n right: 20px;\n font-size: 24px;\n opacity: 0;\n transition: opacity 0.2s ease;\n z-index: 1000;\n pointer-events: none;\n ",document.body.appendChild(e));var n=Math.min(t/60,1);e.style.opacity=n})),Xt(this,ct,(function(){var t=document.getElementById("bookmark-icon");t&&(t.style.transition="opacity 0.3s ease-out",t.style.opacity="0",setTimeout((function(){t&&t.parentNode&&t.parentNode.removeChild(t)}),300))})),(0,a.A)(this,"handleBookmark",(function(t){var e,r,i=t?Jt(Q,n).cfi:null===(e=n.view.lastLocation)||void 0===e?void 0:e.cfi,o=null!==(r=n.view.lastLocation.range.startContainer.data)&&void 0!==r?r:n.view.lastLocation.range.startContainer.innerText;(o=o.trim()).length>200&&(o=o.slice(0,200)+"...");var a=n.view.lastLocation.fraction;ht("handleBookmark",{remove:t,detail:{cfi:i,content:o,percentage:a}})})),Jt(G,this).addEventListener("before-render",(function(t){var e=t.detail.view;n.setView(e),function(t){clearSelection(),$.querySelector("main").replaceChildren(t),t.addEventListener("load",(function(e){var n=e.detail,r=n.doc,i=n.index;globalThis.footnoteSelection=function(){return M(t,r,i)},j(t,r,i),V(r),r.__isFootNote=!0,setTimeout((function(){var t=document.getElementById("footnote-dialog");document.querySelector("#footnote-dialog > main > foliate-view").shadowRoot.querySelector("foliate-paginator").shadowRoot.querySelector("#container > div > iframe"),t.style.display="block"}),0)}));var e=t.renderer;e.setAttribute("flow","scrolled"),e.setAttribute("gap","5%"),e.setAttribute("top-margin","0px"),e.setAttribute("bottom-margin","0px");var n={fontSize:Mt.fontSize,fontName:Mt.fontName,fontPath:Mt.fontPath,letterSpacing:Mt.letterSpacing,spacing:Mt.spacing,textIndent:Mt.textIndent,fontColor:Mt.fontColor,backgroundColor:"transparent",justify:!0,textAlign:Mt.textAlign,hyphenate:!0,customCSS:Mt.customCSS,customCSSEnabled:Mt.customCSSEnabled,writingMode:Mt.writingMode,useBookStyles:Mt.useBookStyles,headingFontSize:Mt.headingFontSize};e.setStyles(q(n)),$.style.backgroundColor=Mt.backgroundColor.slice(0,7)+"33"}(e)})),Jt(G,this).addEventListener("render",(function(t){t.detail.view,$.showModal()})),Kt(K,this,null)}),[{key:"open",value:(t=(0,o.A)(c().mark((function t(e,n){return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,H(e,n);case 1:if(this.view=t.sent,!Tt){t.next=2;break}return t.abrupt("return");case 2:return this.view.addEventListener("load",Zt(et,this,oe).bind(this)),this.view.addEventListener("relocate",Zt(et,this,ae).bind(this)),this.view.addEventListener("click-view",Zt(et,this,se).bind(this)),this.view.addEventListener("doctouchstart",Jt(ot,this).bind(this)),this.view.addEventListener("doctouchmove",Jt(at,this).bind(this)),this.view.addEventListener("doctouchend",Jt(st,this).bind(this)),dt(),n||this.view.renderer.next(),this.setView(this.view),t.next=3,this.view.init({lastLocation:n});case 3:document.documentElement.style.backgroundColor="grey";case 4:case"end":return t.stop()}}),t,this)}))),function(e,n){return t.apply(this,arguments)})},{key:"setView",value:function(t){var e=this;t.addEventListener("create-overlay",(function(n){var r=n.detail.index,i=e.annotations.get(r);if(i){var o,a=Vt(i);try{for(a.s();!(o=a.n()).done;){var s=o.value;e.view.addAnnotation(s)}}catch(t){a.e(t)}finally{a.f()}}if(Mt&&Mt.codeHighlightTheme&&"off"!==Mt.codeHighlightTheme){var u,c=null===(u=t.renderer)||void 0===u||null===(u=u.getContents())||void 0===u?void 0:u.find((function(t){return t.index===r&&t.overlayer}));c&&c.doc&&At(Mt.codeHighlightTheme,c.doc)}})),t.addEventListener("draw-annotation",(function(t){var n=t.detail,r=n.draw,i=n.annotation,o=i.color,a=i.type,s={color:o,writingMode:e.view.renderer.writingMode};"highlight"===a?r(h.u.highlight,te({},s)):"underline"===a&&r(h.u.underline,te({},s))})),t.addEventListener("show-annotation",(function(t){var n,r=e.annotationsByValue.get(t.detail.value),i=A(t.detail.range);if(null===(n=window.getSelection())||void 0===n||!n.toString()){var o=O(t.detail.range);gt({annotation:r,pos:i,contextText:o})}})),t.addEventListener("external-link",(function(t){t.preventDefault(),mt(t.detail)})),t.addEventListener("link",(function(t){var n;return null===(n=Jt(G,e).handle(e.view.book,t))||void 0===n?void 0:n.catch((function(n){console.warn(n),e.view.goTo(t.detail.href)}))})),t.history.addEventListener("pushstate",(function(e){ht("onPushState",{canGoBack:t.history.canGoBack,canGoForward:t.history.canGoForward})})),t.addEventListener("click-image",function(){var t=(0,o.A)(c().mark((function t(e){var n,r,i;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.detail.img.src,t.next=1,fetch(n).then((function(t){return t.blob()}));case 1:return r=t.sent,t.next=2,new Promise((function(t,e){var n=new FileReader;n.onloadend=function(){return t(n.result)},n.onerror=e,n.readAsDataURL(r)}));case 2:i=t.sent,ht("onImageClick",i);case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())}},{key:"renderAnnotation",value:function(t){var e,n,r=Vt(null!==(e=null!=t?t:allAnnotations)&&void 0!==e?e:[]);try{for(r.s();!(n=r.n()).done;){var i=n.value,o=i.value,a=i.type,s=i.color,u=i.note,c={id:i.id,value:o,type:a,color:s,note:u};this.addAnnotation(c)}}catch(t){r.e(t)}finally{r.f()}}},{key:"showContextMenu",value:function(){return M(this.view,Jt(X,this),Jt(Y,this))}},{key:"addAnnotation",value:function(t){var e=t.value,n=(e.split("/")[2].split("!")[0]-2)/2,r=this.annotations.get(n);r?r.push(t):this.annotations.set(n,[t]),this.annotationsByValue.set(e,t),"bookmark"===t.type?Zt(et,this,ie).call(this,t)&&(Jt(ut,this).call(this,60),Kt(Q,this,{exists:!0,cfi:t.value,id:t.id})):this.view.addAnnotation(t)}},{key:"removeAnnotation",value:function(t){var e=this.annotationsByValue.get(t);if(e){var n=e.value,r=(n.split("/")[2].split("!")[0]-2)/2,i=this.annotations.get(r);if(i){var o=i.findIndex((function(t){return t.id===e.id}));-1!==o&&i.splice(o,1)}this.annotationsByValue.delete(n),this.view.addAnnotation(e,!0),"bookmark"===e.type&&Zt(et,this,ie).call(this,e)&&(Jt(ct,this).call(this),this.handleBookmark(!0),Kt(Q,this,{exists:!1,cfi:null,id:null}))}}},{key:"index",get:function(){return Jt(Y,this)}},{key:"toc",get:function(){var t,e,n,r,i,o=this.view.getSectionFractions(),a=null!==(t=null===(e=this.view.lastLocation)||void 0===e||null===(e=e.tocItem)||void 0===e?void 0:e.href.split("#")[0])&&void 0!==t?t:"Not Found",s=o.findIndex((function(t){return t.href===a}));-1===s&&(s=0);var u=(null===(n=o[s])||void 0===n?void 0:n.fraction)||0,c=(null===(r=o[s+1])||void 0===r?void 0:r.fraction)||1,l=((null===(i=this.view.lastLocation)||void 0===i?void 0:i.chapterLocation.total)||1)/(c-u),f=function(t){if(!t)return 0;t=t.split("#")[0];var e=o.find((function(e){return e.href===t}));return e?e.fraction:0},h=function(t,e){return(null==t?void 0:t.map((function(t){return{label:t.label,href:t.href,id:t.id,level:e,startPercentage:f(t.href),startPage:Math.ceil(f(t.href)*l),subitems:h(t.subitems,e+1)}})))||[]};return h(this.view.book.toc,1)}}]);var t}();function re(){var t=Jt(Y,this),e=this.annotations.get(t),n=!1,r=null;if(e){var i,o=Vt(e);try{for(o.s();!(i=o.n()).done;){var a=i.value;if("bookmark"===a.type&&(n=!!Zt(et,this,ie).call(this,a)||n)){r=a,Jt(ut,this).call(this,60);break}}}catch(t){o.e(t)}finally{o.f()}}Kt(Q,this,{exists:n,cfi:n?r.value:null,id:n?r.id:null}),n||Jt(ct,this).call(this)}function ie(t){var e,n=null===(e=this.view.lastLocation)||void 0===e?void 0:e.cfi,r=(0,d.ap)(n),i=(0,d.ap)(n,!0),o=t.value,a=(0,d.ap)(o);if((0,d.UD)(r,a)<=0&&(0,d.UD)(i,a)>0)return!0}function oe(t){var e=t.detail,n=e.doc,r=e.index;Kt(X,this,n),Kt(Y,this,r),j(this.view,n,r),Jt(nt,this).call(this),this.readingFeatures(Ct),Mt&&Mt.codeHighlightTheme&&"off"!==Mt.codeHighlightTheme&&At(Mt.codeHighlightTheme,n)}function ae(t){var e=t.detail,n=e.cfi,r=e.fraction,i=e.location,o=e.tocItem,a=e.pageItem,s=e.chapterLocation,u=a?"Page ".concat(a.label):"Loc ".concat(i.current);Zt(et,this,re).call(this),vt({cfi:n,fraction:r,loc:u,tocItem:o,pageItem:a,location:i,chapterLocation:s,bookmark:Jt(Q,this)})}function se(t){var e,n,r,i,o,a=t.detail,s=a.x,u=a.y,c=null===(e=Jt(X,this))||void 0===e||null===(n=e.getSelection)||void 0===n?void 0:n.call(e);if(!c||!S(c))if(null!==(r=Jt(X,this))&&void 0!==r&&r.__anxSuppressClick)Jt(X,this).__anxSuppressClick=!1;else{var l=null!==(i=null===(o=Jt(X,this))||void 0===o?void 0:o.__anxSelectionClearedAt)&&void 0!==i?i:0;if(!(l&&Date.now()-l<200)){var f=s/window.innerWidth,h=u/window.innerHeight;yt(f,h)}}}var ft=function(){var t=(0,o.A)(c().mark((function t(e,n){var r;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=new lt,globalThis.reader=r,t.next=1,r.open(e,n);case 1:Mt.codeHighlightTheme&&"off"!==Mt.codeHighlightTheme&&St(Mt.codeHighlightTheme),Tt?wt():(ht("onLoadEnd"),bt(),ht("renderAnnotations"));case 2:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}(),ht=function(t,e){window.flutter_inappwebview.callHandler(t,e)},dt=function(t){var e,n,r,i,o,a={scroll:!1,animated:!0};switch(Mt.pageTurnStyle){case"slide":a.scroll=!1,a.animated=!0;break;case"scroll":a.scroll=!0,a.animated=!0;break;case"noAnimation":a.scroll=!1,a.animated=!1}reader.view.renderer.setAttribute("flow",a.scroll?"scrolled":"paginated"),reader.view.renderer.setAttribute("top-margin","".concat(Mt.topMargin,"px")),reader.view.renderer.setAttribute("bottom-margin","".concat(Mt.bottomMargin,"px")),reader.view.renderer.setAttribute("gap","".concat(Mt.sideMargin,"%")),reader.view.renderer.setAttribute("background-color",Mt.backgroundColor),reader.view.renderer.setAttribute("max-column-count",Mt.maxColumnCount),reader.view.renderer.setAttribute("column-threshold","".concat(Mt.columnThreshold,"px")),reader.view.renderer.setAttribute("bgimg-url",Mt.backgroundImage),reader.view.renderer.setAttribute("bgimg-blur",null!==(e=Mt.bgimgBlur)&&void 0!==e?e:0),reader.view.renderer.setAttribute("bgimg-opacity",null!==(n=Mt.bgimgOpacity)&&void 0!==n?n:1),reader.view.renderer.setAttribute("bgimg-fit",null!==(r=Mt.bgimgFit)&&void 0!==r?r:"cover"),a.animated?reader.view.renderer.setAttribute("animated","true"):reader.view.renderer.removeAttribute("animated");var s,u,c,l={fontSize:Mt.fontSize,fontName:Mt.fontName,fontPath:Mt.fontPath,fontWeight:Mt.fontWeight,letterSpacing:Mt.letterSpacing,spacing:Mt.spacing,paragraphSpacing:Mt.paragraphSpacing,textIndent:Mt.textIndent,fontColor:Mt.fontColor,backgroundColor:Mt.backgroundColor,justify:Mt.justify,textAlign:Mt.textAlign,hyphenate:Mt.hyphenate,writingMode:Mt.writingMode,backgroundImage:Mt.backgroundImage,flow:a.scroll,customCSS:Mt.customCSS,customCSSEnabled:Mt.customCSSEnabled,useBookStyles:Mt.useBookStyles,headingFontSize:Mt.headingFontSize};null===(i=(o=reader.view.renderer).setStyles)||void 0===i||i.call(o,q(l)),!Mt.useBookStyles&&Mt.fontColor&&(s=Mt.fontColor,u=document.querySelectorAll("h1, h2, h3, h4, h5, h6"),c=[/^#000000?$/i,/^rgb\(\s*0\s*,\s*0\s*,\s*0\s*\)$/i,/^rgba\(\s*0\s*,\s*0\s*,\s*0\s*,\s*1\s*\)$/i,/^black$/i],u.forEach((function(t){var e=window.getComputedStyle(t).color;c.some((function(t){return t.test(e.trim())}))&&t.style.setProperty("color",s,"important")}))),t&&((null==t?void 0:t.writingMode)!==Mt.writingMode||(null==t?void 0:t.pageTurnStyle)!==Mt.pageTurnStyle&&[null==t?void 0:t.pageTurnStyle,Mt.pageTurnStyle].includes("scroll"))&&pt()},pt=function(){var t,e=null===(t=reader.view.lastLocation)||void 0===t?void 0:t.cfi;window.nextSection().then((function(){e&&setTimeout((function(){window.goToCfi(e)}),0)}))},vt=function(t){var e,n,r=null===(e=t.tocItem)||void 0===e?void 0:e.label,i=null===(n=t.tocItem)||void 0===n?void 0:n.href,o=t.chapterLocation.total,a=t.chapterLocation.current,s=t.location.total,u=t.location.current,c=t.cfi,l=t.fraction;ht("onRelocated",{chapterTitle:r,chapterHref:i,chapterTotalPages:o,chapterCurrentPage:a,bookTotalPages:s,bookCurrentPage:u,cfi:c,percentage:l,bookmark:t.bookmark,writingMode:reader.view.renderer.writingMode})},gt=function(t){return ht("onAnnotationClick",t)},yt=function(t,e){return ht("onClick",{x:t,y:e})},mt=function(t){return ht("onExternalLink",t)},bt=function(){return ht("onSetToc",reader.toc)},wt=function(){var t=(0,o.A)(c().mark((function t(){var e,n;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,reader.view.book.getCover();case 1:(e=t.sent)?((n=new FileReader).readAsDataURL(e),n.onloadend=function(){ht("onMetadata",te(te({},reader.view.book.metadata),{},{cover:n.result}))}):ht("onMetadata",te(te({},reader.view.book.metadata),{},{cover:null}));case 2:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();window.refreshToc=function(){return bt()},window.changeStyle=function(t){var e=Mt;Mt=te(te({},Mt),t),console.log("changeStyle",JSON.stringify(Mt)),dt(e),void 0!==t.codeHighlightTheme&&St(t.codeHighlightTheme)},window.goToHref=function(t){return reader.view.goTo(t)},window.goToCfi=function(t){return reader.view.goTo(t)},window.goToPercent=function(t){return reader.view.goToFraction(t)},window.nextPage=function(){return reader.view.next()},window.prevPage=function(){return reader.view.prev()},window.setScroll=function(){Mt.scroll=!0,Mt.animated=!0,dt()},window.setPaginated=function(){Mt.scroll=!1,Mt.animated=!0,dt()},window.setNoAnimation=function(){Mt.scroll=!1,Mt.animated=!1,dt()};var xt=function(t){window.isFootNoteOpen()||k?ht("onSelectionEnd",te(te({},t),{},{footnote:!0})):ht("onSelectionEnd",te(te({},t),{},{footnote:!1}))};window.showContextMenu=function(){window.isFootNoteOpen()?footnoteSelection():reader.showContextMenu()},window.getSelection=function(){return reader.getSelection()},window.clearSelection=function(){return reader.view.deselect()},window.addAnnotation=function(t){return reader.addAnnotation(t)},window.addBookmarkHere=function(){return reader.handleBookmark(!1)},window.removeAnnotation=function(t){return reader.removeAnnotation(t)},window.prevSection=function(){return reader.view.renderer.prevSection()},window.nextSection=function(){return reader.view.renderer.nextSection()},window.initTts=function(){return reader.view.initTTS()},window.ttsStop=function(){return reader.view.initTTS(!0)},window.ttsHere=function(){return initTts(),reader.view.tts.from(reader.view.lastLocation.range)},window.ttsFromCfi=function(){var t=(0,o.A)(c().mark((function t(e){var n,r,i,o,a;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return initTts(),t.prev=1,t.next=2,reader.view.resolveNavigation(e);case 2:if(!(n=t.sent)||!n.anchor){t.next=3;break}if(r=reader.view.renderer.getContents(),!(i=r.find((function(t){return t.index===n.index}))||r[0])||!i.doc){t.next=3;break}return o=n.anchor(i.doc),t.abrupt("return",reader.view.tts.from(o));case 3:t.next=5;break;case 4:t.prev=4,a=t.catch(1),console.error(a);case 5:return t.abrupt("return",reader.view.tts.from(reader.view.lastLocation.range));case 6:case"end":return t.stop()}}),t,null,[[1,4]])})));return function(e){return t.apply(this,arguments)}}(),window.ttsCurrentDetail=function(){return initTts(),reader.view.tts.currentDetail()},window.ttsCollectDetails=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return initTts(),reader.view.tts.collectDetails(t,{includeCurrent:e,offset:n})},window.ttsHighlightByCfi=function(t){return initTts(),reader.view.tts.highlightCfi(t)},window.ttsNextSection=(0,o.A)(c().mark((function t(){return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,nextSection();case 1:return initTts(),t.abrupt("return",ttsNext());case 2:case"end":return t.stop()}}),t)}))),window.ttsPrevSection=function(){var t=(0,o.A)(c().mark((function t(e){return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,prevSection();case 1:return initTts(),t.abrupt("return",e?reader.view.tts.end():ttsNext());case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),window.ttsNext=(0,o.A)(c().mark((function t(){var e;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(e=reader.view.tts.next(!0))){t.next=1;break}return t.abrupt("return",e);case 1:return t.next=2,ttsNextSection();case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)}))),window.ttsPrev=function(){return reader.view.tts.prev(!0)||ttsPrevSection(!0)},window.ttsPrepare=function(){return reader.view.tts.prepare()},window.clearSearch=function(){return reader.view.clearSearch()},window.search=function(){var t=(0,o.A)(c().mark((function t(e,n){var r,i,o,a,s,u,l,f,h;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null==n&&(n={scope:"book",matchCase:!1,matchDiacritics:!1,matchWholeWords:!1}),r=e.trim()){t.next=1;break}return t.abrupt("return");case 1:i="section"===n.scope?reader.index:null,o=!1,a=!1,t.prev=2,u=ee(reader.view.search(te(te({},n),{},{query:r,index:i})));case 3:return t.next=4,u.next();case 4:if(!(o=!(l=t.sent).done)){t.next=6;break}f=l.value,ht("onSearch","done"===f?{process:1}:"progress"in f?{process:f.progress}:f);case 5:o=!1,t.next=3;break;case 6:t.next=8;break;case 7:t.prev=7,h=t.catch(2),a=!0,s=h;case 8:if(t.prev=8,t.prev=9,!o||null==u.return){t.next=10;break}return t.next=10,u.return();case 10:if(t.prev=10,!a){t.next=11;break}throw s;case 11:return t.finish(10);case 12:return t.finish(8);case 13:case"end":return t.stop()}}),t,null,[[2,7,8,13],[9,,10,12]])})));return function(e,n){return t.apply(this,arguments)}}(),window.back=function(){return reader.view.history.back()},window.forward=function(){return reader.view.history.forward()},window.renderAnnotations=function(t){return reader.renderAnnotation(t)},window.theChapterContent=function(){return reader.getChapterContent()},window.previousContent=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:2e3;return reader.getPreviousContent(t)},window.getChapterContentByHref=function(){var t=(0,o.A)(c().mark((function t(e,n){return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",reader.getChapterContentByHref(e,n));case 1:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}(),window.isFootNoteOpen=function(){return $.getAttribute("style").includes("display: block")},window.closeFootNote=function(){$.style.display="none",ht("onFootnoteClose")},window.readingFeatures=function(t){Ct=te(te({},Ct),t),reader.readingFeatures()},window.pullUp=function(){ht("onPullUp")};var kt=(Lt=null,Rt=!1,It=null,Pt="/foliate-js/src/vendor/prism",jt=new WeakSet,Ft=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e4;return new Promise((function(n,r){var i=document.createElement("script");i.src=t;var o=setTimeout((function(){r(new Error("Script load timeout: ".concat(t)))}),e);i.onload=function(){clearTimeout(o),n()},i.onerror=function(e){clearTimeout(o),r(new Error("Failed to load script: ".concat(t)))},document.head.appendChild(i)}))},Nt=function(){var t=(0,o.A)(c().mark((function t(){var e,n=arguments;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=n.length>0&&void 0!==n[0]?n[0]:0,!Rt){t.next=1;break}return t.abrupt("return",!0);case 1:if(!It){t.next=2;break}return t.abrupt("return",It);case 2:return It=(0,o.A)(c().mark((function t(){var n,r;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=1,Ft("".concat(Pt,"/prism-core.min.js"));case 1:return t.next=2,Ft("".concat(Pt,"/prism-autoloader.min.js"));case 2:if(null===(n=window.Prism)||void 0===n||null===(n=n.plugins)||void 0===n||!n.autoloader){t.next=3;break}window.Prism.plugins.autoloader.languages_path="".concat(Pt,"/components/"),t.next=4;break;case 3:throw new Error("Prism autoloader not available after loading");case 4:return Rt=!0,t.abrupt("return",!0);case 5:if(t.prev=5,r=t.catch(0),console.error("[CodeHighlighter] Load error:",r.message),!(e<2)){t.next=6;break}return It=null,t.abrupt("return",Nt(e+1));case 6:return console.error("[CodeHighlighter] Max retries reached, giving up"),It=null,t.abrupt("return",!1);case 7:case"end":return t.stop()}}),t,null,[[0,5]])})))(),t.abrupt("return",It);case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),Dt=function(t,e){if(null==t||!t.head)return!1;var n=t.getElementById("prism-theme");if(n&&n.remove(),!e||"off"===e)return!0;var r=function(t){if(!t||"off"===t)return null;var e="default"===t?"prism-default.min.css":"prism-".concat(t,".min.css");return new URL("".concat(Pt,"/themes/").concat(e),window.location.origin).href}(e);if(!r)return!1;var i=t.createElement("link");return i.id="prism-theme",i.rel="stylesheet",i.href=r,t.head.appendChild(i),!0},Bt=function(t){var e=t.getAttribute("data-language");if(e)return e.toLowerCase();var n=t.className.match(/(?:^|\s)(?:language|lang)-(\w+)/);if(n)return n[1].toLowerCase();var r=t.getAttribute("type");if(r){var i=r.match(/(?:text|application)\/(\w+)/);if(i)return i[1].toLowerCase()}var o=t.parentElement;if(o){var a,s=o.getAttribute("data-language")||(null===(a=o.className.match(/(?:^|\s)(?:language|lang)-(\w+)/))||void 0===a?void 0:a[1]);if(s)return s.toLowerCase()}return null},zt=function(t,e){if(t.classList.contains("prism-highlighted"))return!1;try{var n=Bt(t);return n&&!t.classList.contains("language-".concat(n))&&t.classList.add("language-".concat(n)),window.Prism.highlightElement(t),t.classList.add("prism-highlighted"),!0}catch(t){return console.warn("[CodeHighlighter] Failed to highlight block:",t.message),!1}},Ut=function(t,e){if(t.querySelector("code"))return null;if(t.classList.contains("prism-highlighted"))return null;var n=Bt(t)||"plaintext",r=e.createElement("code");return r.className="language-".concat(n),r.innerHTML=t.innerHTML,t.innerHTML="",t.appendChild(r),t.classList.add("language-".concat(n)),r},Wt=function(){var t=(0,o.A)(c().mark((function t(e){var n,r,i,o,a,s,u,l,f,h,d,p,v,g=arguments;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=g.length>1&&void 0!==g[1]?g[1]:document,e&&"off"!==e&&n){t.next=1;break}return t.abrupt("return");case 1:if(!jt.has(n)||e!==Lt){t.next=2;break}return t.abrupt("return");case 2:if(r=Array.from(n.querySelectorAll("pre code")),i=Array.from(n.querySelectorAll('pre.snippet, pre.code, pre[class*="language-"], pre[data-language]')),0!==r.length+i.length){t.next=3;break}return jt.add(n),t.abrupt("return");case 3:return n!==document&&Dt(n,e),t.next=4,Nt();case 4:if(t.sent&&window.Prism){t.next=5;break}return console.error("[CodeHighlighter] Prism not available, skipping highlighting"),t.abrupt("return");case 5:for(o=0,a=i;ol&&f+l3)){if(p)return!0;if(g)return g<603;var t,e,n,r,i="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)y.push({k:e+r,v:n})}for(y.sort((function(t,e){return e.v-t.v})),r=0;rc(n)?1:-1}}(t)),n=s(i),r=0;ri;){if(e=+arguments[i++],o(e,1114111)!==e)throw new a(e+" is not a valid code point");n[i]=e<65536?s(e):s(55296+((e-=65536)>>10),e%1024+56320)}return c(n,"")}})},27476:function(t,e,n){"use strict";var r=n(22195),i=n(79504);t.exports=function(t){if("Function"===r(t))return i(t)}},27495:function(t,e,n){"use strict";var r=n(46518),i=n(57323);r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},27800:function(t,e,n){"use strict";n.d(e,{A:function(){return i}});var r=n(43145);function i(t,e){if(t){if("string"==typeof t)return(0,r.A)(t,e);var n={}.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)?(0,r.A)(t,e):void 0}}},28527:function(t,e,n){"use strict";var r=n(97080),i=n(94402).has,o=n(25170),a=n(83789),s=n(40507),u=n(9539);t.exports=function(t){var e=r(this),n=a(t);if(o(e)=51||!i((function(){var t=[];return t[v]=!1,t.concat()[0]!==t})),y=function(t){if(!a(t))return!1;var e=t[v];return void 0!==e?!!e:o(t)};r({target:"Array",proto:!0,arity:1,forced:!g||!h("concat")},{concat:function(t){var e,n,r,i,o,a=s(this),h=f(a,0),d=0;for(e=-1,r=arguments.length;e1?arguments[1]:void 0,1),n=u(t);if(g)return i(d,this,n,e);var r=this.length,o=a(n),c=0;if(o+e>r)throw new l("Wrong length");for(;ci;)c[i]=n[i++];return c}),i((function(){new Int8Array(1).slice()})))},29833:function(t,e,n){"use strict";n(15823)("Float64",(function(t){return function(e,n,r){return t(this,e,n,r)}}))},29908:function(t,e,n){"use strict";n(46518)({target:"Object",stat:!0},{is:n(3470)})},29948:function(t,e,n){"use strict";var r=n(35370),i=n(94644).getTypedArrayConstructor;t.exports=function(t,e){return r(i(t),e)}},30067:function(t,e,n){"use strict";n(17145)},30237:function(t,e,n){"use strict";n(6469)("flatMap")},30421:function(t){"use strict";t.exports={}},30531:function(t,e,n){"use strict";var r=n(46518),i=n(69565),o=n(79306),a=n(28551),s=n(1767),u=n(48646),c=n(19462),l=n(9539),f=n(96395),h=n(30684),d=n(84549),p=!f&&!h("flatMap",(function(){})),v=!f&&!p&&d("flatMap",TypeError),g=f||p||v,y=c((function(){for(var t,e,n=this.iterator,r=this.mapper;;){if(e=this.inner)try{if(!(t=a(i(e.next,e.iterator))).done)return t.value;this.inner=null}catch(t){l(n,"throw",t)}if(t=a(i(this.next,n)),this.done=!!t.done)return;try{this.inner=u(r(t.value,this.counter++),!1)}catch(t){l(n,"throw",t)}}}));r({target:"Iterator",proto:!0,real:!0,forced:g},{flatMap:function(t){a(this);try{o(t)}catch(t){l(this,"throw",t)}return v?i(v,this,t):new y(s(this),{mapper:t,inner:null})}})},30566:function(t,e,n){"use strict";var r=n(79504),i=n(79306),o=n(20034),a=n(39297),s=n(67680),u=n(40616),c=Function,l=r([].concat),f=r([].join),h={};t.exports=u?c.bind:function(t){var e=i(this),n=e.prototype,r=s(arguments,1),u=function(){var n=l(r,s(arguments));return this instanceof u?function(t,e,n){if(!a(h,e)){for(var r=[],i=0;i=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}throw new TypeError(r(t)+" is not iterable")},t.exports.__esModule=!0,t.exports.default=t.exports},30684:function(t){"use strict";t.exports=function(t,e){var n="function"==typeof Iterator&&Iterator.prototype[t];if(n)try{n.call({next:null},e).next()}catch(t){return!0}}},30958:function(t,e,n){"use strict";n(5240)},30985:function(t,e,n){"use strict";var r=n(46518),i=n(97751),o=n(28551);r({target:"Reflect",stat:!0,sham:!n(92744)},{preventExtensions:function(t){o(t);try{var e=i("Object","preventExtensions");return e&&e(t),!0}catch(t){return!1}}})},31051:function(t,e,n){"use strict";var r=n(46518),i=n(79039),o=n(33517),a=n(97040),s=Array;r({target:"Array",stat:!0,forced:i((function(){function t(){}return!(s.of.call(t)instanceof t)}))},{of:function(){for(var t=0,e=arguments.length,n=new(o(this)?this:s)(e);e>t;)a(n,t,arguments[t++]);return n.length=e,n}})},31073:function(t,e,n){"use strict";n(70511)("split")},31240:function(t,e,n){"use strict";var r=n(79504);t.exports=r(1.1.valueOf)},31330:function(t,e,n){"use strict";n.r(e),n.d(e,{EPUB:function(){return Pt}});var r=n(23029),i=n(92901),o=n(56822),a=n(53954),s=n(85501),u=n(28614),c=n(3453),l=n(64467),f=n(10467),h=n(89394),d=n(54756),p=n.n(d),v=n(62248);function g(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(g=function(){return!!t})()}function y(t,e){b(t,e),e.add(t)}function m(t,e,n){b(t,e),e.set(t,n)}function b(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function w(t,e,n){return n(A(t,e))}function x(t,e,n){return t.set(A(t,e),n),n}function k(t,e){return t.get(A(t,e))}function A(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}function S(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return E(t,e);var n={}.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)?E(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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 o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function E(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n1&&void 0!==arguments[1]?arguments[1]:function(t){return t},r=D(t,"http://www.w3.org/1999/xhtml"),i=r.$,o=r.$$,a=r.$$$,s=function(t,e){return t?o(t,"li").map(function(t){return function(e){var r,o,a=null!==(r=i(e,"a"))&&void 0!==r?r:i(e,"span"),u=i(e,"ol"),c=function(t){return t?decodeURI(n(t)):null}(null==a?void 0:a.getAttribute("href")),l={label:N(a)||(null==a?void 0:a.getAttribute("title")),href:c,subitems:s(u)};return t&&(l.type=null==a||null===(o=a.getAttributeNS(M,"type"))||void 0===o?void 0:o.split(/\s/)),l}}(e)):null},u=function(t,e){return s(i(t,"ol"),e)},c=null,l=null,f=null,h=[],d=S(a(t,"nav"));try{for(d.s();!(e=d.n()).done;){var p,v,g=e.value,y=null!==(p=null===(v=g.getAttributeNS(M,"type"))||void 0===v?void 0:v.split(/\s/))&&void 0!==p?p:[];y.includes("toc")?null!=c||(c=u(g)):y.includes("page-list")?null!=l||(l=u(g)):y.includes("landmarks")?null!=f||(f=u(g,!0)):h.push({label:N(g.firstElementChild),type:y,list:u(g)})}}catch(t){d.e(t)}finally{d.f()}return{toc:c,pageList:l,landmarks:f,others:h}},Y=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(t){return t},n=D(t,"http://www.daisy.org/z3986/2005/ncx/"),r=n.$,i=n.$$,o=function(t){var n=r(t,"navLabel"),a=r(t,"content"),s=N(n),u=function(t){return t?decodeURI(e(t)):null}(a.getAttribute("src"));if("navPoint"===t.localName){var c=i(t,"navPoint");return{label:s,href:u,subitems:c.length?c.map(o):null}}return{label:s,href:u}},a=function(t,e){return i(t,e).map(o)},s=function(e,n){var i=r(t.documentElement,e);return i?a(i,n):null};return{toc:s("navMap","navPoint"),pageList:s("pageList","pageTarget"),others:i(t.documentElement,"navList").map((function(t){return{label:N(r(t,"navLabel")),list:a(t,"navTarget")}}))}},K=function(t){if(t){var e=t.split(":").map((function(t){return parseFloat(t)}));if(3===e.length){var n=(0,c.A)(e,3);return 60*n[0]*60+60*n[1]+n[2]}if(2===e.length){var r=(0,c.A)(e,2);return 60*r[0]+r[1]}var i=t.split(/(?=[^\d.])/),o=(0,c.A)(i,2),a=o[0],s=o[1];return parseFloat(a)*("h"===s?3600:"min"===s?60:"ms"===s?.001:1)}},J=new WeakMap,Z=new WeakMap,Q=new WeakMap,tt=new WeakMap,et=new WeakMap,nt=new WeakMap,rt=new WeakMap,it=new WeakMap,ot=new WeakSet,at=function(t){function e(t,n){var i,s,u,c;return(0,r.A)(this,e),s=this,u=e,u=(0,a.A)(u),y(i=(0,o.A)(s,g()?Reflect.construct(u,[],(0,a.A)(s).constructor):u.apply(s,c)),ot),m(i,J,void 0),m(i,Z,void 0),m(i,Q,void 0),m(i,tt,void 0),m(i,et,void 0),m(i,nt,void 0),m(i,rt,1),m(i,it,1),i.book=t,i.loadXML=n,i}return(0,s.A)(e,t),(0,i.A)(e,[{key:"start",value:(n=(0,f.A)(p().mark((function t(e){var n,r,i,o,a,s,u,c,l=this,f=arguments;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=f.length>1&&void 0!==f[1]?f[1]:function(){return!0},null===(n=k(nt,this))||void 0===n||n.pause(),i=this.book.sections[e],o=null==i?void 0:i.id){t.next=1;break}return t.abrupt("return");case 1:if(a=i.mediaOverlay){t.next=2;break}return t.abrupt("return",this.start(e+1));case 2:return x(Q,this,e),t.next=3,A(ot,this,st).call(this,a);case 3:s=0;case 4:if(!(s0?A(ot,this,pt).call(this,k(tt,this),k(et,this)-1):k(tt,this)>0?A(ot,this,pt).call(this,k(tt,this)-1,k(J,this)[k(tt,this)-1].items.length-1):k(Q,this)>0&&this.start(k(Q,this)-1,(function(t,e,n){return e===n.length-1}))}},{key:"next",value:function(){A(ot,this,pt).call(this,k(tt,this),k(et,this)+1)}},{key:"setVolume",value:function(t){x(rt,this,t),k(nt,this)&&(k(nt,this).volume=t)}},{key:"setRate",value:function(t){x(it,this,t),k(nt,this)&&(k(nt,this).playbackRate=t)}}]);var n}((0,u.A)(EventTarget));function st(t){return ut.apply(this,arguments)}function ut(){return(ut=(0,f.A)(p().mark((function t(e){var n,r,i,o,a;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(k(Z,this)!==e){t.next=1;break}return t.abrupt("return");case 1:return t.next=2,this.loadXML(e.href);case 2:n=t.sent,r=function(t){return t?B(t,e.href):null},i=D(n,"http://www.w3.org/ns/SMIL"),o=i.$,a=i.$$$,x(tt,this,-1),x(et,this,-1),x(J,this,a(n,"par").reduce((function(t,e){var n,i=r(null===(n=o(e,"text"))||void 0===n?void 0:n.getAttribute("src")),a=o(e,"audio");if(!i||!a)return t;var s=r(a.getAttribute("src")),u=K(a.getAttribute("clipBegin")),c=K(a.getAttribute("clipEnd")),l=t.at(-1);return(null==l?void 0:l.src)===s?l.items.push({text:i,begin:u,end:c}):t.push({src:s,items:[{text:i,begin:u,end:c}]}),t}),[])),x(Z,this,e);case 3:case"end":return t.stop()}}),t,this)})))).apply(this,arguments)}function ct(t){return k(J,t)[k(tt,t)]}function lt(t){var e;return null===(e=w(ot,t,ct))||void 0===e||null===(e=e.items)||void 0===e?void 0:e[k(et,t)]}function ft(t){console.error(t),this.dispatchEvent(new CustomEvent("error",{detail:t}))}function ht(){this.dispatchEvent(new CustomEvent("highlight",{detail:w(ot,this,lt)}))}function dt(){this.dispatchEvent(new CustomEvent("unhighlight",{detail:w(ot,this,lt)}))}function pt(t,e){return vt.apply(this,arguments)}function vt(){return(vt=(0,f.A)(p().mark((function t(e,n){var r,i,o,a,s,u,c=this;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(k(nt,this)&&(k(nt,this).pause(),URL.revokeObjectURL(k(nt,this).src),x(nt,this,null)),x(tt,this,e),x(et,this,n),(i=null===(r=w(ot,this,ct))||void 0===r?void 0:r.src)&&w(ot,this,lt)){t.next=1;break}return t.abrupt("return",this.start(k(Q,this)+1));case 1:return s=URL,t.next=2,this.book.loadBlob(i);case 2:u=t.sent,o=s.createObjectURL.call(s,u),a=new Audio(o),x(nt,this,a),a.addEventListener("timeupdate",(function(){var t;if(!a.paused){var e=a.currentTime,n=w(ot,c,ct).items;if(e>(null===(t=w(ot,c,lt))||void 0===t?void 0:t.end)&&(A(ot,c,dt).call(c),k(et,c)===n.length-1))A(ot,c,pt).call(c,k(tt,c)+1,0).catch((function(t){return A(ot,c,ft).call(c,t)}));else{for(var r=k(et,c);(null===(o=n[k(et,c)+1])||void 0===o?void 0:o.begin)<=e;){var i,o;x(et,c,(i=k(et,c),++i))}k(et,c)!==r&&A(ot,c,ht).call(c)}}})),a.addEventListener("error",(function(){return A(ot,c,ft).call(c,new Error("Failed to load ".concat(i)))})),a.addEventListener("playing",(function(){return A(ot,c,ht).call(c)})),a.addEventListener("pause",(function(){return A(ot,c,dt).call(c)})),a.addEventListener("ended",(function(){A(ot,c,dt).call(c),URL.revokeObjectURL(o),x(nt,c,null),A(ot,c,pt).call(c,e+1,0).catch((function(t){return A(ot,c,ft).call(c,t)}))})),a.addEventListener("canplaythrough",(function(){var t;a.currentTime=null!==(t=w(ot,c,lt).begin)&&void 0!==t?t:0,a.volume=k(rt,c),a.playbackRate=k(it,c),a.play().catch((function(t){return A(ot,c,ft).call(c,t)}))}));case 3:case"end":return t.stop()}}),t,this)})))).apply(this,arguments)}var gt=/([0-9a-f]{8})-([0-9a-f]{4})-([0-9a-f]{4})-([0-9a-f]{4})-([0-9a-f]{12})/,yt=function(t){var e;return N(null!==(e=t.getElementById(t.documentElement.getAttribute("unique-identifier")))&&void 0!==e?e:t.getElementsByTagNameNS(C,"identifier")[0])},mt=function(){var t=(0,f.A)(p().mark((function t(e,n,r){var i,o,a,s;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=Uint8Array,t.next=1,r.slice(0,n).arrayBuffer();case 1:for(s=t.sent,i=new a(s),n=Math.min(n,i.length),o=0;o1&&void 0!==y[1]?y[1]:[],e){t.next=1;break}return t.abrupt("return",null);case 1:if(s=e.href,u=e.mediaType,c=I.JS.test(u),l=!(c&&!this.allowScript),f={name:s,type:u,isScript:c,allow:l},this.eventTarget.dispatchEvent(new CustomEvent("load",{detail:f})),u=null!==(n=f.type)&&void 0!==n?n:u,c=null!==(r=f.isScript)&&void 0!==r?r:I.JS.test(u),l=null!==(i=f.allow)&&void 0!==i?i:l){t.next=2;break}return t.abrupt("return",null);case 2:if(h=a[a.length-1],!k(Et,this).has(s)){t.next=3;break}return t.abrupt("return",this.ref(s,h));case 3:if(d=u===e.mediaType?e:_(_({},e),{},{mediaType:u}),!c&&![I.XHTML,I.HTML,I.CSS,I.SVG].includes(u)||!a.every((function(t){return t!==s}))){t.next=4;break}return t.abrupt("return",this.loadReplaced(d,a));case 4:return v=null!==(o=f.data)&&void 0!==o?o:Promise.resolve().then((function(){return g.loadBlob(s)})),t.abrupt("return",this.createURL(s,v,u,h));case 5:case"end":return t.stop()}}),t,this)}))),function(t){return o.apply(this,arguments)})},{key:"loadHref",value:(n=(0,f.A)(p().mark((function t(e,n){var r,i,o,a,s,u,c,l,f,h=arguments;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=h.length>2&&void 0!==h[2]?h[2]:[],!z(e)){t.next=1;break}return t.abrupt("return",e);case 1:if(i=B(e,n),o=this.manifest.find((function(t){return t.href===i}))){t.next=7;break}if(a=r[r.length-1],!k(Et,this).has(i)){t.next=2;break}return t.abrupt("return",this.ref(i,a));case 2:return t.prev=2,t.next=3,this.loadBlob(i);case 3:if(!(s=t.sent)){t.next=4;break}return c=null===(u=i.split(".").pop())||void 0===u?void 0:u.toLowerCase(),l="jpg"===c||"jpeg"===c?"image/jpeg":"png"===c?"image/png":"gif"===c?"image/gif":"svg"===c?"image/svg+xml":"webp"===c?"image/webp":"css"===c?"text/css":"application/octet-stream",t.abrupt("return",this.createURL(i,s,l,a));case 4:t.next=6;break;case 5:t.prev=5,f=t.catch(2),console.warn("Failed to load resource not in manifest: ".concat(i),f);case 6:return t.abrupt("return",e);case 7:return t.abrupt("return",this.loadItem(o,r.concat(n)));case 8:case"end":return t.stop()}}),t,this,[[2,5]])}))),function(t,e){return n.apply(this,arguments)})},{key:"loadReplaced",value:(e=(0,f.A)(p().mark((function t(e){var n,r,i,o,a,s,u,c,l,h,d,v,g,y,m,b,w,x,k,A,E,T,_,O,M,C,L,P,j,F,N,D,B,z,W,H,q,V,$,G,X,Y,K,J,Z,Q,tt,et,nt=this,rt=arguments;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=rt.length>1&&void 0!==rt[1]?rt[1]:[],r=e.href,i=e.mediaType,o=n[n.length-1],t.next=1,this.loadText(r);case 1:if(a=t.sent){t.next=2;break}return t.abrupt("return",null);case 2:if(![I.XHTML,I.HTML,I.SVG].includes(i)){t.next=59;break}if(u=(new DOMParser).parseFromString(a,i),i!==I.XHTML||!u.querySelector("parsererror")&&null!==(s=u.documentElement)&&void 0!==s&&s.namespaceURI||(console.warn(null!==(c=null===(l=u.querySelector("parsererror"))||void 0===l?void 0:l.innerText)&&void 0!==c?c:"Invalid XHTML"),e.mediaType=I.HTML,u=(new DOMParser).parseFromString(a,e.mediaType)),![I.XHTML,I.SVG].includes(e.mediaType)){t.next=6;break}h=u.firstChild;case 3:if(!(h instanceof ProcessingInstruction)){t.next=6;break}if(!h.data){t.next=5;break}return t.next=4,U(h.data,/(?:^|\s*)(href\s*=\s*['"])([^'"]*)(['"])/i,(function(t,e,i,o){return nt.loadHref(i,r,n).then((function(t){return"".concat(e).concat(t).concat(o)}))}));case 4:d=t.sent,h.replaceWith(u.createProcessingInstruction(h.target,d));case 5:h=h.nextSibling,t.next=3;break;case 6:v=function(){var t=(0,f.A)(p().mark((function t(e,i){var o,a,s;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=e,a=i,t.next=1,nt.loadHref(e.getAttribute(i),r,n);case 1:return s=t.sent,t.abrupt("return",o.setAttribute.call(o,a,s));case 2:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}(),g=S(u.querySelectorAll("link[href]")),t.prev=7,g.s();case 8:if((y=g.n()).done){t.next=10;break}return m=y.value,t.next=9,v(m,"href");case 9:t.next=8;break;case 10:t.next=12;break;case 11:t.prev=11,H=t.catch(7),g.e(H);case 12:return t.prev=12,g.f(),t.finish(12);case 13:b=S(u.querySelectorAll("[src]")),t.prev=14,b.s();case 15:if((w=b.n()).done){t.next=17;break}return x=w.value,t.next=16,v(x,"src");case 16:t.next=15;break;case 17:t.next=19;break;case 18:t.prev=18,q=t.catch(14),b.e(q);case 19:return t.prev=19,b.f(),t.finish(19);case 20:k=S(u.querySelectorAll("[poster]")),t.prev=21,k.s();case 22:if((A=k.n()).done){t.next=24;break}return E=A.value,t.next=23,v(E,"poster");case 23:t.next=22;break;case 24:t.next=26;break;case 25:t.prev=25,V=t.catch(21),k.e(V);case 26:return t.prev=26,k.f(),t.finish(26);case 27:T=S(u.querySelectorAll("object[data]")),t.prev=28,T.s();case 29:if((_=T.n()).done){t.next=31;break}return O=_.value,t.next=30,v(O,"data");case 30:t.next=29;break;case 31:t.next=33;break;case 32:t.prev=32,$=t.catch(28),T.e($);case 33:return t.prev=33,T.f(),t.finish(33);case 34:M=S(u.querySelectorAll("[*|href]:not([href])")),t.prev=35,M.s();case 36:if((C=M.n()).done){t.next=39;break}return L=C.value,G=L,X=R,t.next=37,this.loadHref(L.getAttributeNS(R,"href"),r,n);case 37:Y=t.sent,G.setAttributeNS.call(G,X,"href",Y);case 38:t.next=36;break;case 39:t.next=41;break;case 40:t.prev=40,K=t.catch(35),M.e(K);case 41:return t.prev=41,M.f(),t.finish(41);case 42:P=S(u.querySelectorAll("style")),t.prev=43,P.s();case 44:if((j=P.n()).done){t.next=47;break}if(!(F=j.value).textContent){t.next=46;break}return t.next=45,this.replaceCSS(F.textContent,r,n);case 45:F.textContent=t.sent;case 46:t.next=44;break;case 47:t.next=49;break;case 48:t.prev=48,J=t.catch(43),P.e(J);case 49:return t.prev=49,P.f(),t.finish(49);case 50:N=S(u.querySelectorAll("[style]")),t.prev=51,N.s();case 52:if((D=N.n()).done){t.next=55;break}return B=D.value,Z=B,t.next=53,this.replaceCSS(B.getAttribute("style"),r,n);case 53:Q=t.sent,Z.setAttribute.call(Z,"style",Q);case 54:t.next=52;break;case 55:t.next=57;break;case 56:t.prev=56,tt=t.catch(51),N.e(tt);case 57:return t.prev=57,N.f(),t.finish(57);case 58:return z=(new XMLSerializer).serializeToString(u),t.abrupt("return",this.createURL(r,z,e.mediaType,o));case 59:if(i!==I.CSS){t.next=61;break}return t.next=60,this.replaceCSS(a,r,n);case 60:et=t.sent,t.next=63;break;case 61:return t.next=62,this.replaceString(a,r,n);case 62:et=t.sent;case 63:return W=et,t.abrupt("return",this.createURL(r,W,i,o));case 64:case"end":return t.stop()}}),t,this,[[7,11,12,13],[14,18,19,20],[21,25,26,27],[28,32,33,34],[35,40,41,42],[43,48,49,50],[51,56,57,58]])}))),function(t){return e.apply(this,arguments)})},{key:"replaceCSS",value:(t=(0,f.A)(p().mark((function t(e,n){var r,i,o,a,s,u,c,l,f,h=this,d=arguments;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return s=d.length>2&&void 0!==d[2]?d[2]:[],t.next=1,U(e,/url\(\s*["']?([^'"\n]*?)\s*["']?\s*\)/gi,(function(t,e){return h.loadHref(e,n,s).then((function(t){return'url("'.concat(t,'")')}))}));case 1:return u=t.sent,t.next=2,U(u,/@import\s*["']([^"'\n]*?)["']/gi,(function(t,e){return h.loadHref(e,n,s).then((function(t){return'@import "'.concat(t,'"')}))}));case 2:return c=t.sent,l=null!==(r=null===(i=window)||void 0===i?void 0:i.innerWidth)&&void 0!==r?r:800,f=null!==(o=null===(a=window)||void 0===a?void 0:a.innerHeight)&&void 0!==o?o:600,t.abrupt("return",c.replace(/([{\s;])-epub-/gi,"$1").replace(/(\d*\.?\d+)vw/gi,(function(t,e){return parseFloat(e)*l/100+"px"})).replace(/(\d*\.?\d+)vh/gi,(function(t,e){return parseFloat(e)*f/100+"px"})).replace(/font-size\s*:\s*(xx-small|x-small|small|medium|large|x-large|xx-large|xxx-large|smaller|larger)\s*([;!])/gi,(function(t,e,n){return"font-size: ".concat({"xx-small":"9px","x-small":"10px",small:"13px",medium:"16px",large:"18px","x-large":"24px","xx-large":"32px","xxx-large":"48px",smaller:"13px",larger:"18px"}[e.toLowerCase()]).concat(n)})).replace(/(\d*\.?\d+)px/gi,(function(t,e){return"".concat(parseFloat(e)/16,"em")})));case 3:case"end":return t.stop()}}),t)}))),function(e,n){return t.apply(this,arguments)})},{key:"replaceString",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=new Map,o=this.assets.map((function(t){if(t.href!==e){var n,r=function(t,e){if(!t)return e;var n=t.replace(/\/$/,"").split("/"),r=e.replace(/\/$/,"").split("/"),i=(n.length>r.length?n:r).findIndex((function(t,e){return n[e]!==r[e]}));return i<0?"":Array(n.length-i).fill("..").concat(r.slice(i)).join("/")}(function(t){return t.slice(0,t.lastIndexOf("/")+1)}(e),t.href),o=encodeURI(r),a="/"+t.href,s=encodeURI(a),u=new Set([r,o,a,s]),c=S(u);try{for(c.s();!(n=c.n()).done;){var l=n.value;i.set(l,t)}}catch(t){c.e(t)}finally{c.f()}return Array.from(u)}})).flat().filter((function(t){return t}));if(!o.length)return t;var a=new RegExp(o.map(W).join("|"),"g");return U(t,a,function(){var t=(0,f.A)(p().mark((function t(o){return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",n.loadItem(i.get(o.replace(/^\//,"")),r.concat(e)));case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())}},{key:"unloadItem",value:function(t){this.unref(null==t?void 0:t.href)}},{key:"destroy",value:function(){var t,e=S(k(Et,this).values());try{for(e.s();!(t=e.n()).done;){var n=t.value;URL.revokeObjectURL(n)}}catch(t){e.e(t)}finally{e.f()}}}]);var t,e,n,o,a}(),Mt=function(t){var e,n=S(t);try{for(n.s();!(e=n.n()).done;){var r=e.value;if("page-spread-left"===r||"rendition:page-spread-left"===r)return"left";if("page-spread-right"===r||"rendition:page-spread-right"===r)return"right";if("rendition:page-spread-center"===r)return"center"}}catch(t){n.e(t)}finally{n.f()}},Ct=function(t){return t?{fixedLayout:N(t.querySelector('option[name="fixed-layout"]')),openToSpread:N(t.querySelector('option[name="open-to-spread"]'))}:null},Lt=new WeakMap,Rt=new WeakMap,It=new WeakSet,Pt=function(){return(0,i.A)((function t(e){var n=e.loadText,i=e.loadBlob,o=e.getSize,a=e.sha1;(0,r.A)(this,t),y(this,It),(0,l.A)(this,"parser",new DOMParser),m(this,Lt,void 0),m(this,Rt,void 0),this.loadText=n,this.loadBlob=i,this.getSize=o,x(Rt,this,new At(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:bt;return{"http://www.idpf.org/2008/embedding":{key:function(e){return t(yt(e).replaceAll(/[\u0020\u0009\u000d\u000a]/g,""))},decode:function(t,e){return mt(t,1040,e)}},"http://ns.adobe.com/pdf/enc#RC":{key:function(t){var e=function(t){var e,n=S(t.getElementsByTagNameNS(C,"identifier"));try{for(n.s();!(e=n.n()).done;){var r=e.value,i=N(r).split(":").slice(-1),o=(0,c.A)(i,1)[0];if(gt.test(o))return o}}catch(t){n.e(t)}finally{n.f()}return""}(t).replaceAll("-","");return Uint8Array.from({length:16},(function(t,n){return parseInt(e.slice(2*n,2*n+2),16)}))},decode:function(t,e){return mt(t,1024,e)}}}}(a)))}),[{key:"init",value:(o=(0,f.A)(p().mark((function t(){var e,n,r,i,o,a,s,u,l,f,d,v,g,y,m,b,w,S,E,T,_,O,M,C,L,R,I,P,j,N,D,z,U,W,H,q,V,$,K,J,Z,Q,tt,et,nt,rt=this;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,A(It,this,jt).call(this,"META-INF/container.xml");case 1:if(v=t.sent){t.next=2;break}throw new Error("Failed to load container file");case 2:if((g=Array.from(v.getElementsByTagNameNS("urn:oasis:names:tc:opendocument:xmlns:container","rootfile"),F("full-path","media-type")).filter((function(t){return"application/oebps-package+xml"===t.mediaType}))).length){t.next=3;break}throw new Error("No package document defined in container");case 3:return y=g[0].fullPath,t.next=4,A(It,this,jt).call(this,y);case 4:if(m=t.sent){t.next=5;break}throw new Error("Failed to load package document");case 5:return t.next=6,A(It,this,jt).call(this,"META-INF/encryption.xml");case 6:return b=t.sent,t.next=7,k(Rt,this).init(b,m);case 7:if(this.resources=new St({opf:m,resolveHref:function(t){return B(t,y)}}),x(Lt,this,new Ot({loadText:this.loadText,loadBlob:function(t){return Promise.resolve(rt.loadBlob(t)).then(k(Rt,rt).getDecoder(t))},resources:this.resources})),this.transformTarget=k(Lt,this).eventTarget,this.sections=this.resources.spine.map((function(t,e){var n=t.idref,r=t.linear,i=t.properties,o=void 0===i?[]:i,a=rt.resources.getItemByID(n);return a?{id:a.href,load:function(){return k(Lt,rt).loadItem(a)},unload:function(){return k(Lt,rt).unloadItem(a)},createDocument:function(){return rt.loadDocument(a)},size:rt.getSize(a.href),cfi:rt.resources.cfis[e],linear:r,pageSpread:Mt(o),resolveHref:function(t){return B(t,a.href)},mediaOverlay:a.mediaOverlay?rt.resources.getItemByID(a.mediaOverlay):null}:(console.warn('Could not find item with ID "'.concat(n,'" in manifest')),null)})).filter((function(t){return t})),w=this.resources,S=w.navPath,E=w.ncxPath,!S){t.next=11;break}return t.prev=8,T=function(t){return B(t,S)},q=X,t.next=9,A(It,this,jt).call(this,S);case 9:V=t.sent,_=q(V,T),this.toc=_.toc,this.pageList=_.pageList,this.landmarks=_.landmarks,t.next=11;break;case 10:t.prev=10,$=t.catch(8),console.warn($);case 11:if(this.toc||!E){t.next=15;break}return t.prev=12,O=function(t){return B(t,E)},K=Y,t.next=13,A(It,this,jt).call(this,E);case 13:J=t.sent,M=K(J,O),this.toc=M.toc,this.pageList=M.pageList,t.next=15;break;case 14:t.prev=14,Z=t.catch(12),console.warn(Z);case 15:return null!==(e=this.landmarks)&&void 0!==e||(this.landmarks=this.resources.guide),C=G(m),L=C.metadata,R=C.rendition,I=C.media,this.rendition=R,this.media=I,this.dir=this.resources.pageProgressionDirection,Q=Ct,t.next=16,A(It,this,jt).call(this,"META-INF/com.apple.ibooks.display-options.xml");case 16:if(et=n=t.sent,!(tt=null!==et)){t.next=17;break}tt=void 0!==n;case 17:if(!tt){t.next=18;break}nt=n,t.next=20;break;case 18:return t.next=19,A(It,this,jt).call(this,"META-INF/com.kobobooks.display-options.xml");case 19:nt=t.sent;case 20:return(P=Q(nt))&&("true"===P.fixedLayout&&(null!==(N=(j=this.rendition).layout)&&void 0!==N||(j.layout="pre-paginated")),"false"===P.openToSpread&&(null!==(z=(D=this.sections.find((function(t){return"no"!==t.linear}))).pageSpread)&&void 0!==z||(D.pageSpread="rtl"===this.dir?"left":"right"))),this.parsedMetadata=L,U=null==L||null===(r=L.title)||void 0===r?void 0:r[0],this.metadata={title:null==U?void 0:U.value,subtitle:null==L||null===(i=L.title)||void 0===i||null===(i=i.find((function(t){return"subtitle"===t.titleType})))||void 0===i?void 0:i.value,sortAs:null==U?void 0:U.fileAs,language:null==L?void 0:L.language,identifier:yt(m),description:null==L||null===(o=L.description)||void 0===o?void 0:o.value,publisher:null==L||null===(a=L.publisher)||void 0===a?void 0:a.value,published:null==L?void 0:L.date,modified:null==L?void 0:L.dctermsModified,subject:null==L||null===(s=L.subject)||void 0===s||null===(s=s.filter((function(t){var e=t.value,n=t.term;return e||n})))||void 0===s?void 0:s.map((function(t){return{name:t.value,code:t.term,scheme:t.authority}})),rights:null==L||null===(u=L.rights)||void 0===u?void 0:u.value},W={art:"artist",aut:"author",bkp:"producer",clr:"colorist",edt:"editor",ill:"illustrator",nrt:"narrator",trl:"translator",pbl:"publisher"},H=function(t){return function(e){var n,r=(0,h.A)(new Set(null===(n=e.role)||void 0===n?void 0:n.map((function(e){var n,r=e.value,i=e.scheme;return null!==(n=i&&"marc:relators"!==i?null:W[r])&&void 0!==n?n:t})))),i={name:e.value,sortAs:e.fileAs};return[null!=r&&r.length?r:[t],i]}},null==L||null===(l=L.creator)||void 0===l||null===(l=l.map(H("author")))||void 0===l||null===(l=l.concat(null==L||null===(f=L.contributor)||void 0===f||null===(d=f.map)||void 0===d?void 0:d.call(f,H("contributor"))))||void 0===l||l.forEach((function(t){var e=(0,c.A)(t,2),n=e[0],r=e[1];return n.forEach((function(t){rt.metadata[t]?rt.metadata[t].push(r):rt.metadata[t]=[r]}))})),t.abrupt("return",this);case 21:case"end":return t.stop()}}),t,this,[[8,10],[12,14]])}))),function(){return o.apply(this,arguments)})},{key:"loadDocument",value:(n=(0,f.A)(p().mark((function t(e){var n;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,this.loadText(e.href);case 1:return n=t.sent,t.abrupt("return",this.parser.parseFromString(n,e.mediaType));case 2:case"end":return t.stop()}}),t,this)}))),function(t){return n.apply(this,arguments)})},{key:"getMediaOverlay",value:function(){return new at(this,A(It,this,jt).bind(this))}},{key:"resolveCFI",value:function(t){return this.resources.resolveCFI(t)}},{key:"resolveHref",value:function(t){var e=t.split("#"),n=(0,c.A)(e,2),r=n[0],i=n[1],o=this.resources.getItemByHref(decodeURI(r));return o?{index:this.resources.spine.findIndex((function(t){return t.idref===o.id})),anchor:i?function(t){return function(t,e){var n;return null!==(n=t.getElementById(e))&&void 0!==n?n:t.querySelector('[name="'.concat(CSS.escape(e),'"]'))}(t,i)}:function(){return 0}}:null}},{key:"splitTOCHref",value:function(t){var e;return null!==(e=null==t?void 0:t.split("#"))&&void 0!==e?e:[]}},{key:"getTOCFragment",value:function(t,e){var n;return null!==(n=t.getElementById(e))&&void 0!==n?n:t.querySelector('[name="'.concat(CSS.escape(e),'"]'))}},{key:"isExternal",value:function(t){return z(t)}},{key:"getCover",value:(e=(0,f.A)(p().mark((function t(){var e,n,r,i,o,a,s,u,c,l,f,h,d,v,g,y,m,b,w,x,k,A,S,E,T,_,O,M,C,L,R,I,P;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null==(r=null===(e=this.resources)||void 0===e?void 0:e.cover)||!r.href){t.next=2;break}return k=Blob,t.next=1,this.loadBlob(r.href);case 1:return A=t.sent,S=[A],E={type:r.mediaType},t.abrupt("return",new k(S,E));case 2:if(null==(i=null===(n=this.resources)||void 0===n?void 0:n.coverPage)||!i.href){t.next=10;break}return t.prev=3,t.next=4,this.loadText(i.href);case 4:if(o=t.sent,a=new DOMParser,s=a.parseFromString(o,"application/xhtml+xml"),!(u=s.querySelector("img"))){t.next=6;break}if(!(c=u.getAttribute("src"))){t.next=6;break}if(l=B(c,i.href),!(f=this.resources.getItemByHref(l))){t.next=6;break}return T=Blob,t.next=5,this.loadBlob(f.href);case 5:return _=t.sent,O=[_],M={type:f.mediaType},t.abrupt("return",new T(O,M));case 6:if(!(h=s.querySelector("image"))){t.next=8;break}if(!(d=h.getAttribute("href")||h.getAttributeNS("http://www.w3.org/1999/xlink","href"))){t.next=8;break}if(v=B(d,i.href),!(g=this.resources.getItemByHref(v))){t.next=8;break}return C=Blob,t.next=7,this.loadBlob(g.href);case 7:return L=t.sent,R=[L],I={type:g.mediaType},t.abrupt("return",new C(R,I));case 8:t.next=10;break;case 9:t.prev=9,P=t.catch(3),console.warn("Failed to extract cover from XHTML page:",P);case 10:y=0,m=["iTunesArtwork","cover.jpg","cover.jpeg","cover.png","cover.gif"];case 11:if(!(y0)){t.next=14;break}return x="iTunesArtwork"===b?"image/jpeg":b.endsWith(".png")?"image/png":b.endsWith(".gif")?"image/gif":"image/jpeg",t.abrupt("return",new Blob([w],{type:x}));case 14:t.next=16;break;case 15:t.prev=15,t.catch(12);case 16:y++,t.next=11;break;case 17:return t.abrupt("return",null);case 18:case"end":return t.stop()}}),t,this,[[3,9],[12,15]])}))),function(){return e.apply(this,arguments)})},{key:"getCalibreBookmarks",value:(t=(0,f.A)(p().mark((function t(){var e,n;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,this.loadText("META-INF/calibre_bookmarks.txt");case 1:if(e=t.sent,null==e||!e.startsWith("encoding=json+base64:")){t.next=2;break}return n=atob(e.slice(21)),t.abrupt("return",JSON.parse(n));case 2:case"end":return t.stop()}}),t,this)}))),function(){return t.apply(this,arguments)})},{key:"destroy",value:function(){var t;null===(t=k(Lt,this))||void 0===t||t.destroy()}}]);var t,e,n,o}();function jt(t){return Ft.apply(this,arguments)}function Ft(){return(Ft=(0,f.A)(p().mark((function t(e){var n,r;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,this.loadText(e);case 1:if(n=t.sent){t.next=2;break}return t.abrupt("return",null);case 2:if(!(r=this.parser.parseFromString(n,I.XML)).querySelector("parsererror")){t.next=3;break}throw new Error("XML parsing error: ".concat(e,"\n").concat(r.querySelector("parsererror").innerText));case 3:return t.abrupt("return",r);case 4:case"end":return t.stop()}}),t,this)})))).apply(this,arguments)}},31415:function(t,e,n){"use strict";n(92405)},31575:function(t,e,n){"use strict";var r=n(94644),i=n(80926).left,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("reduce",(function(t){var e=arguments.length;return i(o(this),t,e,e>1?arguments[1]:void 0)}))},31689:function(t,e,n){"use strict";var r=n(46518),i=n(44576),o=n(18745),a=n(67680),s=n(36043),u=n(79306),c=n(1103),l=i.Promise,f=!1;r({target:"Promise",stat:!0,forced:!l||!l.try||c((function(){l.try((function(t){f=8===t}),8)})).error||!f},{try:function(t){var e=arguments.length>1?a(arguments,1):[],n=s.f(this),r=c((function(){return o(u(t),void 0,e)}));return(r.error?n.reject:n.resolve)(r.value),n.promise}})},31694:function(t,e,n){"use strict";var r=n(94644),i=n(59213).find,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("find",(function(t){return i(o(this),t,arguments.length>1?arguments[1]:void 0)}))},31698:function(t,e,n){"use strict";var r=n(46518),i=n(44204),o=n(39835);r({target:"Set",proto:!0,real:!0,forced:!n(84916)("union")||!o("union")},{union:i})},32357:function(t,e,n){"use strict";var r=n(43724),i=n(79039),o=n(79504),a=n(42787),s=n(71072),u=n(25397),c=o(n(48773).f),l=o([].push),f=r&&i((function(){var t=Object.create(null);return t[2]=2,!c(t,2)})),h=function(t){return function(e){for(var n,i=u(e),o=s(i),h=f&&null===a(i),d=o.length,p=0,v=[];d>p;)n=o[p++],r&&!(h?n in i:c(i,n))||l(v,t?[n,i[n]]:i[n]);return v}};t.exports={entries:h(!0),values:h(!1)}},32475:function(t,e,n){"use strict";var r=n(46518),i=n(28527);r({target:"Set",proto:!0,real:!0,forced:!n(84916)("isSupersetOf",(function(t){return!t}))},{isSupersetOf:i})},32603:function(t,e,n){"use strict";var r=n(655);t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:r(t)}},32637:function(t,e,n){"use strict";n(46518)({target:"Number",stat:!0},{isInteger:n(2087)})},32812:function(t,e,n){"use strict";n(46518)({target:"Reflect",stat:!0},{has:function(t,e){return e in t}})},33110:function(t,e,n){"use strict";var r=n(46518),i=n(97751),o=n(18745),a=n(69565),s=n(79504),u=n(79039),c=n(94901),l=n(10757),f=n(67680),h=n(66933),d=n(4495),p=String,v=i("JSON","stringify"),g=s(/./.exec),y=s("".charAt),m=s("".charCodeAt),b=s("".replace),w=s(1.1.toString),x=/[\uD800-\uDFFF]/g,k=/^[\uD800-\uDBFF]$/,A=/^[\uDC00-\uDFFF]$/,S=!d||u((function(){var t=i("Symbol")("stringify detection");return"[null]"!==v([t])||"{}"!==v({a:t})||"{}"!==v(Object(t))})),E=u((function(){return'"\\udf06\\ud834"'!==v("\udf06\ud834")||'"\\udead"'!==v("\udead")})),T=function(t,e){var n=f(arguments),r=h(e);if(c(r)||void 0!==t&&!l(t))return n[1]=function(t,e){if(c(r)&&(e=a(r,this,p(t),e)),!l(e))return e},o(v,null,n)},_=function(t,e,n){var r=y(n,e-1),i=y(n,e+1);return g(k,t)&&!g(A,i)||g(A,t)&&!g(k,r)?"\\u"+w(m(t,0),16):t};v&&r({target:"JSON",stat:!0,arity:3,forced:S||E},{stringify:function(t,e,n){var r=f(arguments),i=o(S?T:v,null,r);return E&&"string"==typeof i?b(i,x,_):i}})},33164:function(t,e,n){"use strict";var r=n(77782),i=n(53602),o=Math.abs;t.exports=function(t,e,n,a){var s=+t,u=o(s),c=r(s);if(un||f!=f?c*(1/0):c*f}},33206:function(t,e,n){"use strict";var r=n(94644),i=n(59213).forEach,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("forEach",(function(t){i(o(this),t,arguments.length>1?arguments[1]:void 0)}))},33313:function(t,e,n){"use strict";var r=n(46518),i=n(18866);r({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==i},{trimRight:i})},33392:function(t,e,n){"use strict";var r=n(79504),i=0,o=Math.random(),a=r(1.1.toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++i+o,36)}},33517:function(t,e,n){"use strict";var r=n(79504),i=n(79039),o=n(94901),a=n(36955),s=n(97751),u=n(33706),c=function(){},l=s("Reflect","construct"),f=/^\s*(?:class|function)\b/,h=r(f.exec),d=!f.test(c),p=function(t){if(!o(t))return!1;try{return l(c,[],t),!0}catch(t){return!1}},v=function(t){if(!o(t))return!1;switch(a(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return d||!!h(f,u(t))}catch(t){return!0}};v.sham=!0,t.exports=!l||i((function(){var t;return p(p.call)||!p(Object)||!p((function(){t=!0}))||t}))?v:p},33684:function(t,e,n){"use strict";var r=n(94644).exportTypedArrayMethod,i=n(79039),o=n(44576),a=n(79504),s=o.Uint8Array,u=s&&s.prototype||{},c=[].toString,l=a([].join);i((function(){c.call({})}))&&(c=function(){return l(this)});var f=u.toString!==c;r("toString",c,f)},33706:function(t,e,n){"use strict";var r=n(79504),i=n(94901),o=n(77629),a=r(Function.toString);i(o.inspectSource)||(o.inspectSource=function(t){return a(t)}),t.exports=o.inspectSource},33717:function(t,e){"use strict";e.f=Object.getOwnPropertySymbols},33771:function(t,e,n){"use strict";var r=n(46518),i=n(84373),o=n(6469);r({target:"Array",proto:!0},{fill:i}),o("fill")},33853:function(t,e,n){"use strict";var r=n(46518),i=n(64449);r({target:"Set",proto:!0,real:!0,forced:!n(84916)("isDisjointFrom",(function(t){return!t}))},{isDisjointFrom:i})},33904:function(t,e,n){"use strict";var r=n(44576),i=n(79039),o=n(79504),a=n(655),s=n(43802).trim,u=n(47452),c=o("".charAt),l=r.parseFloat,f=r.Symbol,h=f&&f.iterator,d=1/l(u+"-0")!=-1/0||h&&!i((function(){l(Object(h))}));t.exports=d?function(t){var e=s(a(t)),n=l(e);return 0===n&&"-"===c(e,0)?-0:n}:l},33994:function(t,e,n){"use strict";var r=n(57657).IteratorPrototype,i=n(2360),o=n(6980),a=n(10687),s=n(26269),u=function(){return this};t.exports=function(t,e,n,c){var l=e+" Iterator";return t.prototype=i(r,{next:o(+!c,n)}),a(t,l,!1,!0),s[l]=u,t}},34113:function(t,e,n){"use strict";var r=n(44576),i=n(70511),o=n(24913).f,a=n(77347).f,s=r.Symbol;if(i("asyncDispose"),s){var u=a(s,"asyncDispose");u.enumerable&&u.configurable&&u.writable&&o(s,"asyncDispose",{value:u.value,enumerable:!1,configurable:!1,writable:!1})}},34124:function(t,e,n){"use strict";var r=n(79039),i=n(20034),o=n(22195),a=n(15652),s=Object.isExtensible,u=r((function(){s(1)}));t.exports=u||a?function(t){return!!i(t)&&(!a||"ArrayBuffer"!==o(t))&&(!s||s(t))}:s},34268:function(t,e,n){"use strict";var r=n(46518),i=n(69565),o=n(28551),a=n(20034),s=n(16575),u=n(79039),c=n(24913),l=n(77347),f=n(42787),h=n(6980);r({target:"Reflect",stat:!0,forced:u((function(){var t=function(){},e=c.f(new t,"a",{configurable:!0});return!1!==Reflect.set(t.prototype,"a",1,e)}))},{set:function t(e,n,r){var u,d,p,v=arguments.length<4?e:arguments[3],g=l.f(o(e),n);if(!g){if(a(d=f(e)))return t(d,n,r,v);g=h(0)}if(s(g)){if(!1===g.writable||!a(v))return!1;if(u=l.f(v,n)){if(u.get||u.set||!1===u.writable)return!1;u.value=r,c.f(v,n,u)}else c.f(v,n,h(0,r))}else{if(void 0===(p=g.set))return!1;i(p,v,r)}return!0}})},34376:function(t,e,n){"use strict";var r=n(22195);t.exports=Array.isArray||function(t){return"Array"===r(t)}},34527:function(t,e,n){"use strict";var r=n(43724),i=n(34376),o=TypeError,a=Object.getOwnPropertyDescriptor,s=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=s?function(t,e){if(i(t)&&!a(t,"length").writable)throw new o("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},34594:function(t,e,n){"use strict";n(15823)("Float32",(function(t){return function(e,n,r){return t(this,e,n,r)}}))},34598:function(t,e,n){"use strict";var r=n(79039);t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){return 1},1)}))}},34782:function(t,e,n){"use strict";var r=n(46518),i=n(34376),o=n(33517),a=n(20034),s=n(35610),u=n(26198),c=n(25397),l=n(97040),f=n(78227),h=n(70597),d=n(67680),p=h("slice"),v=f("species"),g=Array,y=Math.max;r({target:"Array",proto:!0,forced:!p},{slice:function(t,e){var n,r,f,h=c(this),p=u(h),m=s(t,p),b=s(void 0===e?p:e,p);if(i(h)&&(n=h.constructor,(o(n)&&(n===g||i(n.prototype))||a(n)&&null===(n=n[v]))&&(n=void 0),n===g||void 0===n))return d(h,m,b);for(r=new(void 0===n?g:n)(y(b-m,0)),f=0;m=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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 o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function T(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n1&&void 0!==arguments[1]?arguments[1]:0,r=0,i=0,o=E(t.subarray(n,n+4));try{for(o.s();!(e=o.n()).done;){var a=e.value;if(r=r<<7|(127&a)>>>0,i++,128&a)break}}catch(t){o.e(t)}finally{o.f()}return{value:r,length:i}},J=function(t){var e,n=0,r=E(t.subarray(-4));try{for(r.s();!(e=r.n()).done;){var i=e.value;128&i&&(n=0),n=n<<7|127&i}}catch(t){r.e(t)}finally{r.f()}return n},Z=function(t){for(var e=0;t>0;t>>=1)1&~t||e++;return e},Q=function(t){for(var e=0;!(1&t);)t>>=1,e++;return e},tt=function(t){for(var e=[],n=0;n>>3,c=3+(7&s),l=0;l>3,i=0n,o=e>>3;o<=r;o++){var a;i=i<<8n|BigInt(null!==(a=t[o])&&void 0!==a?a:0)}return i>>8n-BigInt(7&n)&0xffffffffn},nt=function(){var t=(0,f.A)(p().mark((function t(e,n){var r,i,o,a,s,u,c,l,f,d,v,g,y,m,b,w,x,k,A,S;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,n(e.huffcdic);case 1:if(r=t.sent,i=X(F,r),o=i.magic,a=i.offset1,s=i.offset2,"HUFF"===o){t.next=2;break}throw new Error("Invalid HUFF record");case 2:u=Array.from({length:256},(function(t,e){return a+4*e})).map((function(t){return G(r.slice(t,t+4))})).map((function(t){return[128&t,31&t,t>>>8]})),c=[null].concat(Array.from({length:32},(function(t,e){return s+8*e})).map((function(t){return[G(r.slice(t,t+4)),G(r.slice(t+4,t+8))]}))),l=[],f=1;case 3:if(!(f>>24],3),a=o[0],s=o[1],f=o[2];if(!a){for(;i>>>32-sn)break;var d=f-(i>>>32-s),p=(0,h.A)(l[d],2),v=p[0];p[1]||(v=S(v),l[d]=[v,!0]),e=H(e,v)}return e},t.abrupt("return",S);case 8:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}(),rt=function(){var t=(0,f.A)(p().mark((function t(e,n){var r,i,o,a,s,u,c,l,f,d,v,g,y,m,b,w,x,k,A,S,T,_,O,M,C,L,R,I,F,N,D,B,z,U,W,H,q,V,J,tt,et,nt,rt,it,ot,at,st,ut,ct,lt,ft,ht,dt,pt,vt,gt,yt,mt,bt,wt,xt;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,n(e);case 1:if(r=t.sent,"INDX"===(i=X(P,r)).magic){t.next=2;break}throw new Error("Invalid INDX record");case 2:if(o=Y(i.encoding),a=r.slice(i.length),"TAGX"===(s=X(j,a)).magic){t.next=3;break}throw new Error("Invalid TAGX section");case 3:u=(s.length-12)/4,c=Array.from({length:u},(function(t,e){return new Uint8Array(a.slice(12+4*e,12+4*e+4))})),l={},f=0,d=0;case 4:if(!(d1?(et=K(_,B),nt=et.value,rt=et.length,F.push([H,null,nt,q]),B+=rt):F.push([H,1,null,q]):F.push([H,tt>>Q(V),null,q]);case 15:t.next=13;break;case 16:t.next=18;break;case 17:t.prev=17,xt=t.catch(12),z.e(xt);case 18:return t.prev=18,z.f(),t.finish(18);case 19:for(it={},ot=0,at=F;ot=8){t.next=6;break}if(!((o=null===(i=this.headers.exth)||void 0===i?void 0:i.boundary)<4294967295)){t.next=6;break}return t.prev=3,c=S(gt,this,mt),l=this,t.next=4,m(e,"loadRecord",this,3)([o]);case 4:f=t.sent,this.headers=c.call.call(c,l,f),A(lt,this,o),r=!0,t.next=6;break;case 5:t.prev=5,h=t.catch(3),console.warn(h),console.warn("Failed to open KF8; falling back to MOBI");case 6:return t.next=7,S(gt,this,bt).call(this);case 7:return t.abrupt("return",r?new Zt(this).init():new Ct(this).init());case 8:case"end":return t.stop()}}),t,this,[[3,5]])}))),function(t){return s.apply(this,arguments)})},{key:"decode",value:function(){var t;return(t=k(ht,this)).decode.apply(t,arguments)}},{key:"encode",value:function(){var t;return(t=k(dt,this)).encode.apply(t,arguments)}},{key:"loadRecord",value:function(t){return m(e,"loadRecord",this,3)([k(lt,this)+t])}},{key:"loadMagic",value:function(t){return m(e,"loadMagic",this,3)([k(lt,this)+t])}},{key:"loadText",value:function(t){return this.loadRecord(t+1).then((function(t){return new Uint8Array(t)})).then(k(vt,this)).then(k(pt,this))}},{key:"loadResource",value:(o=(0,f.A)(p().mark((function t(n){var r,i;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,m(e,"loadRecord",this,3)([k(ft,this)+n]);case 1:if(r=t.sent,"FONT"!==(i=$(r.slice(0,4)))){t.next=2;break}return t.abrupt("return",ot(r,this.unzlib));case 2:if("VIDE"!==i&&"AUDI"!==i){t.next=3;break}return t.abrupt("return",r.slice(12));case 3:return t.abrupt("return",r);case 4:case"end":return t.stop()}}),t,this)}))),function(t){return o.apply(this,arguments)})},{key:"getNCX",value:function(){var t=this.headers.mobi.indx;if(t<4294967295)return it(t,this.loadRecord.bind(this))}},{key:"getMetadata",value:function(){var t,e,n,r=this.headers,i=r.mobi,o=r.exth;return{identifier:i.uid.toString(),title:_((null==o?void 0:o.title)||this.decode(i.title)),author:null==o||null===(t=o.creator)||void 0===t?void 0:t.map(_),publisher:_(null==o?void 0:o.publisher),language:null!==(e=null==o?void 0:o.language)&&void 0!==e?e:i.language,published:null==o?void 0:o.date,description:_(null==o?void 0:o.description),subject:null==o||null===(n=o.subject)||void 0===n?void 0:n.map(_),rights:_(null==o?void 0:o.rights),contributor:null==o?void 0:o.contributor}}},{key:"getCover",value:(n=(0,f.A)(p().mark((function t(){var e,n,r;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=this.headers.exth,null==(n=(null==e?void 0:e.coverOffset)<4294967295?null==e?void 0:e.coverOffset:(null==e?void 0:e.thumbnailOffset)<4294967295?null==e?void 0:e.thumbnailOffset:null)){t.next=2;break}return t.next=1,this.loadResource(n);case 1:return r=t.sent,t.abrupt("return",new Blob([r]));case 2:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})}]);var n,o,s}(ct);function mt(t){var e,n=X(C,t),r=X(L,t);if("MOBI"!==r.magic)throw new Error("Missing MOBI header");var i=r.titleOffset,o=r.titleLength,a=r.localeLanguage,s=r.localeRegion;r.title=t.slice(i,i+o);var u=W[a];r.language=null!==(e=null==u?void 0:u[s>>2])&&void 0!==e?e:null==u?void 0:u[0];var c=64&r.exthFlag?function(t,e){var n=X(I,t),r=n.magic,i=n.count;if("EXTH"!==r)throw new Error("Invalid EXTH header");for(var o=Y(e),a={},s=12,u=0;u=8?X(R,t):null}}function bt(){return wt.apply(this,arguments)}function wt(){return(wt=(0,f.A)(p().mark((function t(){var e,n,r,i,o,a,s,u,c,l,f,h,d;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=this.headers,n=e.palmdoc,r=e.mobi,A(ht,this,Y(r.encoding)),A(dt,this,new TextEncoder),i=n.compression,u=A,c=pt,l=this,1!==i){t.next=1;break}f=function(t){return t},t.next=7;break;case 1:if(2!==i){t.next=2;break}h=tt,t.next=6;break;case 2:if(17480!==i){t.next=4;break}return t.next=3,nt(r,this.loadRecord.bind(this));case 3:d=t.sent,t.next=5;break;case 4:d=null;case 5:h=d;case 6:f=h;case 7:if(u(c,l,f),k(pt,this)){t.next=8;break}throw new Error("Unknown compression type");case 8:o=r.trailingFlags,a=1&o,s=Z(o>>>1),A(vt,this,(function(t){for(var e=0;e]*>/gi,kt=/<[^<>]+filepos=['"]{0,1}(\d+)[^<>]*>/gi,At=function(t){for(var e=0;t;){var n=t.parentElement;if(n){var r=n.tagName.toLowerCase();"p"===r?e+=1.5:"blockquote"===r&&(e+=2)}t=n}return e},St=new WeakMap,Et=new WeakMap,Tt=new WeakMap,_t=new WeakMap,Ot=new WeakMap,Mt=new WeakMap,Ct=function(){return(0,c.A)((function t(e){(0,u.A)(this,t),(0,l.A)(this,"parser",new DOMParser),(0,l.A)(this,"serializer",new XMLSerializer),w(this,St,new Map),w(this,Et,new Map),w(this,Tt,new Map),w(this,_t,void 0),w(this,Ot,[]),w(this,Mt,O.HTML),this.mobi=e}),[{key:"init",value:(h=(0,f.A)(p().mark((function t(){var e,n,r,i,o,a,u,c,l,f,h,d,v,g,y,m,b,w=this;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=new Uint8Array,n=0;case 1:if(!(nh?f+1:o===h?f:null!==(i=d.get(o))&&void 0!==i?i:Math.max(0,f-1);if(s>f){var u,c;l?(null!==(c=(u=l).subitems)&&void 0!==c||(u.subitems=[]),l.subitems.push(a),v.set(s,l)):t.push(a)}else{var p=v.get(s);p?p.subitems.push(a):t.push(a)}return l=a,f=s,h=o,d.set(o,s),t}),[]);case 8:t.next=10;break;case 9:t.prev=9,b=t.catch(5),console.warn(b);case 10:return A(Ot,this,(0,s.A)(new Set(Array.from(r.matchAll(kt),(function(t){return t[1]})))).map((function(t){return{filepos:t,number:Number(t)}})).sort((function(t,e){return t.number-e.number}))),this.metadata=this.mobi.getMetadata(),this.getCover=this.mobi.getCover.bind(this.mobi),t.abrupt("return",this);case 11:case"end":return t.stop()}}),t,this,[[5,9]])}))),function(){return h.apply(this,arguments)})},{key:"getGuide",value:(a=(0,f.A)(p().mark((function t(){var e;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,this.createDocument(k(_t,this)[0]);case 1:return e=t.sent,t.abrupt("return",Array.from(e.getElementsByTagName("reference"),(function(t){var e;return{label:t.getAttribute("title"),type:null===(e=t.getAttribute("type"))||void 0===e?void 0:e.split(/\s/),href:"filepos:".concat(t.getAttribute("filepos"))}})));case 2:case"end":return t.stop()}}),t,this)}))),function(){return a.apply(this,arguments)})},{key:"loadResource",value:(o=(0,f.A)(p().mark((function t(e){var n,r;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!k(St,this).has(e)){t.next=1;break}return t.abrupt("return",k(St,this).get(e));case 1:return t.next=2,this.mobi.loadResource(e);case 2:return n=t.sent,r=URL.createObjectURL(new Blob([n])),k(St,this).set(e,r),t.abrupt("return",r);case 3:case"end":return t.stop()}}),t,this)}))),function(t){return o.apply(this,arguments)})},{key:"loadRecindex",value:(i=(0,f.A)(p().mark((function t(e){return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.loadResource(Number(e)-1));case 1:case"end":return t.stop()}}),t,this)}))),function(t){return i.apply(this,arguments)})},{key:"replaceResources",value:(r=(0,f.A)(p().mark((function t(e){var n,r,i,o,a,s,u,c,l,f,h,d,v,g,y;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=E(e.querySelectorAll("img[recindex]")),t.prev=1,n.s();case 2:if((r=n.n()).done){t.next=7;break}return i=r.value,o=i.getAttribute("recindex"),t.prev=3,t.next=4,this.loadRecindex(o);case 4:i.src=t.sent,t.next=6;break;case 5:t.prev=5,t.catch(3),console.warn("Failed to load image ".concat(o));case 6:t.next=2;break;case 7:t.next=9;break;case 8:t.prev=8,g=t.catch(1),n.e(g);case 9:return t.prev=9,n.f(),t.finish(9);case 10:a=E(e.querySelectorAll("[mediarecindex]")),t.prev=11,a.s();case 12:if((s=a.n()).done){t.next=19;break}return u=s.value,c=u.getAttribute("mediarecindex"),l=u.getAttribute("recindex"),t.prev=13,t.next=14,this.loadRecindex(c);case 14:if(u.src=t.sent,!l){t.next=16;break}return t.next=15,this.loadRecindex(l);case 15:u.poster=t.sent;case 16:t.next=18;break;case 17:t.prev=17,t.catch(13),console.warn("Failed to load media ".concat(c));case 18:t.next=12;break;case 19:t.next=21;break;case 20:t.prev=20,y=t.catch(11),a.e(y);case 21:return t.prev=21,a.f(),t.finish(21);case 22:f=E(e.querySelectorAll("[filepos]"));try{for(f.s();!(h=f.n()).done;)d=h.value,v=d.getAttribute("filepos"),d.href="filepos:".concat(v)}catch(t){f.e(t)}finally{f.f()}case 23:case"end":return t.stop()}}),t,this,[[1,8,9,10],[3,5],[11,20,21,22],[13,17]])}))),function(t){return r.apply(this,arguments)})},{key:"loadText",value:(n=(0,f.A)(p().mark((function t(e){var n,r,i,o,a=this;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!k(Et,this).has(e)){t.next=1;break}return t.abrupt("return",k(Et,this).get(e));case 1:return n=e.raw,r=k(Ot,this).filter((function(t){var n=t.number;return n>=e.start&&n'));i=q(i,c,n.subarray(s,null==u?void 0:u.offset))}))),o=this.mobi.decode(i).replaceAll(xt,""),k(Et,this).set(e,o),t.abrupt("return",o);case 2:case"end":return t.stop()}}),t,this)}))),function(t){return n.apply(this,arguments)})},{key:"createDocument",value:(e=(0,f.A)(p().mark((function t(e){var n;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,this.loadText(e);case 1:return n=t.sent,t.abrupt("return",this.parser.parseFromString(n,k(Mt,this)));case 2:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})},{key:"loadSection",value:(t=(0,f.A)(p().mark((function t(e){var n,r,i,o;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!k(Tt,this).has(e)){t.next=1;break}return t.abrupt("return",k(Tt,this).get(e));case 1:return t.next=2,this.createDocument(e);case 2:return n=t.sent,r=n.createElement("style"),n.head.append(r),r.append(n.createTextNode("blockquote {\n margin-block-start: 0;\n margin-block-end: 0;\n margin-inline-start: 1em;\n margin-inline-end: 0;\n }")),t.next=3,this.replaceResources(n);case 3:return i=this.serializer.serializeToString(n),o=URL.createObjectURL(new Blob([i],{type:k(Mt,this)})),k(Tt,this).set(e,o),t.abrupt("return",o);case 4:case"end":return t.stop()}}),t,this)}))),function(e){return t.apply(this,arguments)})},{key:"resolveHref",value:function(t){var e=t.match(/filepos:(.*)/)[1],n=Number(e);return{index:k(_t,this).findIndex((function(t){return t.end>n})),anchor:function(t){return t.getElementById("filepos".concat(e))}}}},{key:"splitTOCHref",value:function(t){var e=t.match(/filepos:(.*)/)[1],n=Number(e);return[k(_t,this).findIndex((function(t){return t.end>n})),"filepos".concat(e)]}},{key:"getTOCFragment",value:function(t,e){return t.getElementById(e)}},{key:"isExternal",value:function(t){return/^(?!blob|filepos)\w+:/i.test(t)}},{key:"destroy",value:function(){var t,e=E(k(St,this).values());try{for(e.s();!(t=e.n()).done;){var n=t.value;URL.revokeObjectURL(n)}}catch(t){e.e(t)}finally{e.f()}var r,i=E(k(Tt,this).values());try{for(i.s();!(r=i.n()).done;){var o=r.value;URL.revokeObjectURL(o)}}catch(t){i.e(t)}finally{i.f()}}}]);var t,e,n,r,i,o,a,h}(),Lt=/kindle:(flow|embed):(\w+)(?:\?mime=(\w+\/[-+.\w]+))?/,Rt=/kindle:pos:fid:(\w+):off:(\w+)/,It=function(t){var e=t.match(Lt).slice(1),n=(0,h.A)(e,3),r=n[0],i=n[1],o=n[2];return{resourceType:r,id:parseInt(i,32),type:o}},Pt=function(t){var e=t.match(Rt).slice(1),n=(0,h.A)(e,2),r=n[0],i=n[1];return{fid:parseInt(r,32),off:parseInt(i,32)}},jt=function(){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"kindle:pos:fid:".concat((arguments.length>0&&void 0!==arguments[0]?arguments[0]:0).toString(32).toUpperCase().padStart(4,"0"),":off:").concat(t.toString(32).toUpperCase().padStart(10,"0"))},Ft=function(t){var e=t.match(/\s(id|name|aid)\s*=\s*['"]([^'"]*)['"]/i);if(e){var n=(0,h.A)(e,3),r=n[1],i=n[2];return"[".concat(r,'="').concat(CSS.escape(i),'"]')}},Nt=function(){var t=(0,f.A)(p().mark((function t(e,n,r){var i,o,a,u,c,l,f;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:i=[],e.replace(n,(function(){for(var t=arguments.length,e=new Array(t),n=0;n/),m="".concat(g.slice(y),""),b=this.parser.parseFromString(m,O.XML),w=E(b.querySelectorAll("spine > itemref"));try{for(w.s();!(x=w.n()).done;)M=x.value,C=parseInt(M.getAttribute("skelid")),d.set(C,Dt(null!==(S=null===(T=M.getAttribute("properties"))||void 0===T?void 0:T.split(" "))&&void 0!==S?S:[]))}catch(t){w.e(t)}finally{w.f()}case 10:return this.sections=k(Ht,this).map((function(t,e){return t.frags.length?{id:e,load:function(){return j.loadSection(t)},createDocument:function(){return j.createDocument(t)},size:t.length,pageSpread:d.get(e)}:{linear:"no"}})),t.prev=11,t.next=12,this.mobi.getNCX();case 12:return L=t.sent,R=function(t){var e=t.label,n=t.pos,r=t.children,i=(0,h.A)(n,2),o=i[0],a=i[1],s=jt(o,a),u=k(zt,j).get(o);return u?u.push(a):k(zt,j).set(o,[a]),{label:_(e),href:s,subitems:null==r?void 0:r.map(R)}},this.toc=null==L?void 0:L.map(R),t.next=13,this.getGuide();case 13:this.landmarks=t.sent,t.next=15;break;case 14:t.prev=14,P=t.catch(11),console.warn(P);case 15:return I=this.mobi.headers.exth,this.dir=I.pageProgressionDirection,this.rendition={layout:"true"===I.fixedLayout?"pre-paginated":"reflowable",viewport:Object.fromEntries(null!==(e=null===(n=I.originalResolution)||void 0===n||null===(n=n.split("x"))||void 0===n||null===(n=n.slice(0,2))||void 0===n?void 0:n.map((function(t,e){return[e?"height":"width",t]})))&&void 0!==e?e:[])},this.metadata=this.mobi.getMetadata(),this.getCover=this.mobi.getCover.bind(this.mobi),t.abrupt("return",this);case 16:case"end":return t.stop()}}),t,this,[[1,4],[11,14]])}))),function(){return g.apply(this,arguments)})},{key:"getResourcesByMagic",value:(v=(0,f.A)(p().mark((function t(e){var n,r,i,o,a,s=this;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n={},r=this.mobi.headers.kf8.resourceStart,i=this.mobi.pdb.numRecords,o=p().mark((function t(){var r,i;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=1,s.mobi.loadMagic(a);case 1:r=t.sent,(i=e.find((function(t){return t===r})))&&(n[i]=a),t.next=3;break;case 2:t.prev=2,t.catch(0);case 3:case"end":return t.stop()}}),t,null,[[0,2]])})),a=r;case 1:if(!(ae)){t.next=6;break}return c=this.mobi.headers.palmdoc.numTextRecords-1-A(Xt,this,(u=k(Xt,this),++u)),t.next=5,this.mobi.loadText(c);case 5:l=t.sent,A($t,this,H(l,k($t,this))),t.next=4;break;case 6:return f=k(qt,this)-k($t,this).length,t.abrupt("return",k($t,this).slice(e-f,n-f));case 7:case"end":return t.stop()}}),t,this)}))),function(t,e){return i.apply(this,arguments)})},{key:"loadFlow",value:function(t){if(t<4294967295)return this.loadRaw.apply(this,(0,s.A)(k(Wt,this).fdstTable[t]))}},{key:"loadText",value:(r=(0,f.A)(p().mark((function t(e){var n,r,i,o,a,s,u,c,l,f,h,d,v,g,y,m,b;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.skel,r=e.frags,i=e.length,t.next=1,this.loadRaw(n.offset,n.offset+i);case 1:o=t.sent,a=o.slice(0,n.length),s=E(r);try{for(s.s();!(u=s.n()).done;)if(c=u.value,l=c.insertOffset-n.offset,f=n.length+c.offset,h=o.slice(f,f+c.length),a=q(a.slice(0,l),h,a.slice(l)),d=k(zt,this).get(c.index)){v=E(d);try{for(v.s();!(g=v.n()).done;)y=g.value,m=this.mobi.decode(h).slice(y),b=Ft(m),S(Jt,this,Qt).call(this,c.index,y,b)}catch(t){v.e(t)}finally{v.f()}}}catch(t){s.e(t)}finally{s.f()}return t.abrupt("return",this.mobi.decode(a));case 2:case"end":return t.stop()}}),t,this)}))),function(t){return r.apply(this,arguments)})},{key:"createDocument",value:(n=(0,f.A)(p().mark((function t(e){var n;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,this.loadText(e);case 1:return n=t.sent,t.abrupt("return",this.parser.parseFromString(n,k(Yt,this)));case 2:case"end":return t.stop()}}),t,this)}))),function(t){return n.apply(this,arguments)})},{key:"loadSection",value:(e=(0,f.A)(p().mark((function t(e){var n,r,i,o,a,s,u,c,l,f,d,v;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!k(Bt,this).has(e)){t.next=1;break}return t.abrupt("return",k(Bt,this).get(e));case 1:return t.next=2,this.loadText(e);case 2:return r=t.sent,t.next=3,this.replaceResources(r);case 3:i=t.sent,!(o=this.parser.parseFromString(i,k(Yt,this))).querySelector("parsererror")&&null!==(n=o.documentElement)&&void 0!==n&&n.namespaceURI||(A(Yt,this,O.HTML),o=this.parser.parseFromString(i,k(Yt,this))),a=E(k(Kt,this));try{for(a.s();!(s=a.n()).done;){u=(0,h.A)(s.value,2),c=u[0],l=u[1],f=E(o.querySelectorAll('img[src="'.concat(c,'"]')));try{for(f.s();!(d=f.n()).done;)d.value.replaceWith(l)}catch(t){f.e(t)}finally{f.f()}}}catch(t){a.e(t)}finally{a.f()}return v=URL.createObjectURL(new Blob([this.serializer.serializeToString(o)],{type:k(Yt,this)})),k(Bt,this).set(e,v),t.abrupt("return",v);case 4:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})},{key:"getIndexByFID",value:function(t){return k(Ht,this).findIndex((function(e){return e.frags.some((function(e){return e.index===t}))}))}},{key:"resolveHref",value:(t=(0,f.A)(p().mark((function t(e){var n,r,i,o,a,s,u,c,l,f,h,d,v,g,y;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=Pt(e),i=r.fid,o=r.off,!((a=this.getIndexByFID(i))<0)){t.next=1;break}return t.abrupt("return");case 1:if(!(s=null===(n=k(Ut,this).get(i))||void 0===n?void 0:n.get(o))){t.next=2;break}return t.abrupt("return",{index:a,anchor:function(t){return t.querySelector(s)}});case 2:return u=k(Ht,this)[a],c=u.skel,l=u.frags,f=l.find((function(t){return t.index===i})),h=c.offset+c.length+f.offset,t.next=3,this.loadRaw(h,h+f.length);case 3:return d=t.sent,v=this.mobi.decode(d.slice(o)),g=Ft(v),S(Jt,this,Qt).call(this,i,o,g),y=function(t){return t.querySelector(g)},t.abrupt("return",{index:a,anchor:y});case 4:case"end":return t.stop()}}),t,this)}))),function(e){return t.apply(this,arguments)})},{key:"splitTOCHref",value:function(t){var e=Pt(t);return[this.getIndexByFID(e.fid),e]}},{key:"getTOCFragment",value:function(t,e){var n,r=e.fid,i=e.off,o=null===(n=k(Ut,this).get(r))||void 0===n?void 0:n.get(i);return t.querySelector(o)}},{key:"isExternal",value:function(t){return/^(?!blob|kindle)\w+:/i.test(t)}},{key:"destroy",value:function(){var t,e=E(k(Bt,this).values());try{for(e.s();!(t=e.n()).done;){var n=t.value;URL.revokeObjectURL(n)}}catch(t){e.e(t)}finally{e.f()}}}]);var t,e,n,r,i,o,a,d,v,g}();function Qt(t,e,n){var r=k(Ut,this).get(t);if(r)r.set(e,n);else{var i=new Map;k(Ut,this).set(t,i),i.set(e,n)}}},35031:function(t,e,n){"use strict";var r=n(97751),i=n(79504),o=n(38480),a=n(33717),s=n(28551),u=i([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=o.f(s(t)),n=a.f;return n?u(e,n(t)):e}},35370:function(t,e,n){"use strict";var r=n(26198);t.exports=function(t,e,n){for(var i=0,o=arguments.length>2?n:r(e),a=new t(o);o>i;)a[i]=e[i++];return a}},35490:function(t,e,n){"use strict";var r=n(46518),i=n(77240);r({target:"String",proto:!0,forced:n(23061)("blink")},{blink:function(){return i(this,"blink","","")}})},35548:function(t,e,n){"use strict";var r=n(33517),i=n(16823),o=TypeError;t.exports=function(t){if(r(t))return t;throw new o(i(t)+" is not a constructor")}},35610:function(t,e,n){"use strict";var r=n(91291),i=Math.max,o=Math.min;t.exports=function(t,e){var n=r(t);return n<0?i(n+e,0):o(n,e)}},35701:function(t,e,n){"use strict";var r=n(46518),i=n(60533).end;r({target:"String",proto:!0,forced:n(83063)},{padEnd:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},35917:function(t,e,n){"use strict";var r=n(43724),i=n(79039),o=n(4055);t.exports=!r&&!i((function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},36033:function(t,e,n){"use strict";n(48523)},36043:function(t,e,n){"use strict";var r=n(79306),i=TypeError,o=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw new i("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)};t.exports.f=function(t){return new o(t)}},36072:function(t,e,n){"use strict";var r=n(94644),i=n(80926).right,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("reduceRight",(function(t){var e=arguments.length;return i(o(this),t,e,e>1?arguments[1]:void 0)}))},36389:function(t,e,n){"use strict";var r=n(46518),i=Math.atanh,o=Math.log;r({target:"Math",stat:!0,forced:!(i&&1/i(-0)<0)},{atanh:function(t){var e=+t;return 0===e?e:o((1+e)/(1-e))/2}})},36456:function(t,e,n){"use strict";var r=n(46518),i=n(79504),o=n(655),a=i("".charAt),s=i("".charCodeAt),u=i(/./.exec),c=i(1.1.toString),l=i("".toUpperCase),f=/[\w*+\-./@]/,h=function(t,e){for(var n=c(t,16);n.length0?(r=n/c)*r:n;return c===1/0?1/0:c*a(i)}})},39519:function(t,e,n){"use strict";var r,i,o=n(44576),a=n(82839),s=o.process,u=o.Deno,c=s&&s.versions||u&&u.version,l=c&&c.v8;l&&(i=(r=l.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(i=+r[1]),t.exports=i},39796:function(t,e,n){"use strict";var r=n(46518),i=n(18745),o=n(79306),a=n(28551);r({target:"Reflect",stat:!0,forced:!n(79039)((function(){Reflect.apply((function(){}))}))},{apply:function(t,e,n){return i(o(t),e,a(n))}})},39835:function(t){"use strict";t.exports=function(t){try{var e=new Set,n={size:0,has:function(){return!0},keys:function(){return Object.defineProperty({},"next",{get:function(){return e.clear(),e.add(4),function(){return{done:!0}}}})}},r=e[t](n);return 1!==r.size||4!==r.values().next().value}catch(t){return!1}}},39928:function(t,e,n){"use strict";var r=n(26198),i=n(91291),o=RangeError;t.exports=function(t,e,n,a){var s=r(t),u=i(n),c=u<0?s+u:u;if(c>=s||c<0)throw new o("Incorrect index");for(var l=new e(s),f=0;f=56320||++n>=e||56320!=(64512&s(t,n))))return!1}return!0}})},42207:function(t,e,n){"use strict";var r=n(46518),i=n(44576),o=n(97751),a=n(79504),s=n(69565),u=n(79039),c=n(655),l=n(22812),f=n(92804).i2c,h=o("btoa"),d=a("".charAt),p=a("".charCodeAt),v=!!h&&!u((function(){return"aGk="!==h("hi")})),g=v&&!u((function(){h()})),y=v&&u((function(){return"bnVsbA=="!==h(null)})),m=v&&1!==h.length;r({global:!0,bind:!0,enumerable:!0,forced:!v||g||y||m},{btoa:function(t){if(l(arguments.length,1),v)return s(h,i,c(t));for(var e,n,r=c(t),a="",u=0,g=f;d(r,u)||(g="=",u%1);){if((n=p(r,u+=3/4))>255)throw new(o("DOMException"))("The string contains characters outside of the Latin1 range","InvalidCharacterError");a+=d(g,63&(e=e<<8|n)>>8-u%1*8)}return a}})},42551:function(t,e,n){"use strict";var r=n(96395),i=n(44576),o=n(79039),a=n(3607);t.exports=r||!o((function(){if(!(a&&a<535)){var t=Math.random();__defineSetter__.call(null,t,(function(){})),delete i[t]}}))},42762:function(t,e,n){"use strict";var r=n(46518),i=n(43802).trim;r({target:"String",proto:!0,forced:n(60706)("trim")},{trim:function(){return i(this)}})},42781:function(t,e,n){"use strict";n(46518)({target:"String",proto:!0},{repeat:n(72333)})},42787:function(t,e,n){"use strict";var r=n(39297),i=n(94901),o=n(48981),a=n(66119),s=n(12211),u=a("IE_PROTO"),c=Object,l=c.prototype;t.exports=s?c.getPrototypeOf:function(t){var e=o(t);if(r(e,u))return e[u];var n=e.constructor;return i(n)&&e instanceof n?n.prototype:e instanceof c?l:null}},43145:function(t,e,n){"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n1?arguments[1]:void 0,S=void 0!==A,E=c(x);if(E&&!l(E))for(b=(m=u(x,E)).next,x=[];!(y=i(b,m)).done;)x.push(y.value);for(S&&k>2&&(A=r(A,arguments[2])),n=s(x),p=new(h(w))(n),v=f(p),e=0;n>e;e++)g=S?A(x[e],e):x[e],p[e]=v?d(g):+g;return p}},43359:function(t,e,n){"use strict";n(58934);var r=n(46518),i=n(53487);r({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==i},{trimStart:i})},43724:function(t,e,n){"use strict";var r=n(79039);t.exports=!r((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},43802:function(t,e,n){"use strict";var r=n(79504),i=n(67750),o=n(655),a=n(47452),s=r("".replace),u=RegExp("^["+a+"]+"),c=RegExp("(^|[^"+a+"])["+a+"]+$"),l=function(t){return function(e){var n=o(i(e));return 1&t&&(n=s(n,u,"")),2&t&&(n=s(n,c,"$1")),n}};t.exports={start:l(1),end:l(2),trim:l(3)}},43839:function(t,e,n){"use strict";var r=n(76080),i=n(47055),o=n(48981),a=n(26198),s=function(t){var e=1===t;return function(n,s,u){for(var c,l=o(n),f=i(l),h=a(f),d=r(s,u);h-- >0;)if(d(c=f[h],h,l))switch(t){case 0:return c;case 1:return h}return e?-1:void 0}};t.exports={findLast:s(0),findLastIndex:s(1)}},44114:function(t,e,n){"use strict";var r=n(46518),i=n(48981),o=n(26198),a=n(34527),s=n(96837);r({target:"Array",proto:!0,arity:1,forced:n(79039)((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}()},{push:function(t){var e=i(this),n=o(e),r=arguments.length;s(n+r);for(var u=0;ua;)for(var v,g=f(arguments[a++]),y=h?p(s(g),h(g)):s(g),m=y.length,b=0;m>b;)v=y[b++],r&&!o(d,g,v)||(n[v]=g[v]);return n}:h},44265:function(t,e,n){"use strict";var r=n(82839);t.exports=/ipad|iphone|ipod/i.test(r)&&"undefined"!=typeof Pebble},44435:function(t,e,n){"use strict";n(46518)({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991})},44496:function(t,e,n){"use strict";var r=n(94644),i=n(19617).includes,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("includes",(function(t){return i(o(this),t,arguments.length>1?arguments[1]:void 0)}))},44576:function(t,e,n){"use strict";var r=function(t){return t&&t.Math===Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")()},44732:function(t,e,n){"use strict";var r=n(94644),i=n(79504),o=n(79306),a=n(35370),s=r.aTypedArray,u=r.getTypedArrayConstructor,c=r.exportTypedArrayMethod,l=i(r.TypedArrayPrototype.sort);c("toSorted",(function(t){void 0!==t&&o(t);var e=s(this),n=a(u(e),e);return l(n,t)}))},45374:function(t,e,n){"use strict";n(46518)({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)})},45700:function(t,e,n){"use strict";var r=n(70511),i=n(58242);r("toPrimitive"),i()},45781:function(t,e,n){"use strict";var r=n(46518),i=n(97751),o=n(22812),a=n(655),s=n(67416),u=i("URL");r({target:"URL",stat:!0,forced:!s},{parse:function(t){var e=o(arguments.length,1),n=a(t),r=e<2||void 0===arguments[1]?void 0:a(arguments[1]);try{return new u(n,r)}catch(t){return null}}})},45806:function(t,e,n){"use strict";n(47764);var r,i=n(46518),o=n(43724),a=n(67416),s=n(44576),u=n(76080),c=n(79504),l=n(36840),f=n(62106),h=n(90679),d=n(39297),p=n(44213),v=n(97916),g=n(67680),y=n(68183).codeAt,m=n(3717),b=n(655),w=n(10687),x=n(22812),k=n(98406),A=n(91181),S=A.set,E=A.getterFor("URL"),T=k.URLSearchParams,_=k.getState,O=s.URL,M=s.TypeError,C=s.parseInt,L=Math.floor,R=Math.pow,I=c("".charAt),P=c(/./.exec),j=c([].join),F=c(1.1.toString),N=c([].pop),D=c([].push),B=c("".replace),z=c([].shift),U=c("".split),W=c("".slice),H=c("".toLowerCase),q=c([].unshift),V="Invalid scheme",$="Invalid host",G="Invalid port",X=/[a-z]/i,Y=/[\d+-.a-z]/i,K=/\d/,J=/^0x/i,Z=/^[0-7]+$/,Q=/^\d+$/,tt=/^[\da-f]+$/i,et=/[\0\t\n\r #%/:<>?@[\\\]^|]/,nt=/[\0\t\n\r #/:<>?@[\\\]^|]/,rt=/^[\u0000-\u0020]+/,it=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,ot=/[\t\n\r]/g,at=function(t){var e,n,r,i;if("number"==typeof t){for(e=[],n=0;n<4;n++)q(e,t%256),t=L(t/256);return j(e,".")}if("object"==typeof t){for(e="",r=function(t){for(var e=null,n=1,r=null,i=0,o=0;o<8;o++)0!==t[o]?(i>n&&(e=r,n=i),r=null,i=0):(null===r&&(r=o),++i);return i>n?r:e}(t),n=0;n<8;n++)i&&0===t[n]||(i&&(i=!1),r===n?(e+=n?":":"::",i=!0):(e+=F(t[n],16),n<7&&(e+=":")));return"["+e+"]"}return t},st={},ut=p({},st,{" ":1,'"':1,"<":1,">":1,"`":1}),ct=p({},ut,{"#":1,"?":1,"{":1,"}":1}),lt=p({},ct,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),ft=function(t,e){var n=y(t,0);return n>32&&n<127&&!d(e,t)?t:encodeURIComponent(t)},ht={ftp:21,file:null,http:80,https:443,ws:80,wss:443},dt=function(t,e){var n;return 2===t.length&&P(X,I(t,0))&&(":"===(n=I(t,1))||!e&&"|"===n)},pt=function(t){var e;return t.length>1&&dt(W(t,0,2))&&(2===t.length||"/"===(e=I(t,2))||"\\"===e||"?"===e||"#"===e)},vt=function(t){return"."===t||"%2e"===H(t)},gt={},yt={},mt={},bt={},wt={},xt={},kt={},At={},St={},Et={},Tt={},_t={},Ot={},Mt={},Ct={},Lt={},Rt={},It={},Pt={},jt={},Ft={},Nt=function(t,e,n){var r,i,o,a=b(t);if(e){if(i=this.parse(a))throw new M(i);this.searchParams=null}else{if(void 0!==n&&(r=new Nt(n,!0)),i=this.parse(a,null,r))throw new M(i);(o=_(new T)).bindURL(this),this.searchParams=o}};Nt.prototype={type:"URL",parse:function(t,e,n){var i,o,a,s,u,c=this,l=e||gt,f=0,h="",p=!1,y=!1,m=!1;for(t=b(t),e||(c.scheme="",c.username="",c.password="",c.host=null,c.port=null,c.path=[],c.query=null,c.fragment=null,c.cannotBeABaseURL=!1,t=B(t,rt,""),t=B(t,it,"$1")),t=B(t,ot,""),i=v(t);f<=i.length;){switch(o=i[f],l){case gt:if(!o||!P(X,o)){if(e)return V;l=mt;continue}h+=H(o),l=yt;break;case yt:if(o&&(P(Y,o)||"+"===o||"-"===o||"."===o))h+=H(o);else{if(":"!==o){if(e)return V;h="",l=mt,f=0;continue}if(e&&(c.isSpecial()!==d(ht,h)||"file"===h&&(c.includesCredentials()||null!==c.port)||"file"===c.scheme&&!c.host))return;if(c.scheme=h,e)return void(c.isSpecial()&&ht[c.scheme]===c.port&&(c.port=null));h="","file"===c.scheme?l=Mt:c.isSpecial()&&n&&n.scheme===c.scheme?l=bt:c.isSpecial()?l=At:"/"===i[f+1]?(l=wt,f++):(c.cannotBeABaseURL=!0,D(c.path,""),l=Pt)}break;case mt:if(!n||n.cannotBeABaseURL&&"#"!==o)return V;if(n.cannotBeABaseURL&&"#"===o){c.scheme=n.scheme,c.path=g(n.path),c.query=n.query,c.fragment="",c.cannotBeABaseURL=!0,l=Ft;break}l="file"===n.scheme?Mt:xt;continue;case bt:if("/"!==o||"/"!==i[f+1]){l=xt;continue}l=St,f++;break;case wt:if("/"===o){l=Et;break}l=It;continue;case xt:if(c.scheme=n.scheme,o===r)c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=g(n.path),c.query=n.query;else if("/"===o||"\\"===o&&c.isSpecial())l=kt;else if("?"===o)c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=g(n.path),c.query="",l=jt;else{if("#"!==o){c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=g(n.path),c.path.length--,l=It;continue}c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=g(n.path),c.query=n.query,c.fragment="",l=Ft}break;case kt:if(!c.isSpecial()||"/"!==o&&"\\"!==o){if("/"!==o){c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,l=It;continue}l=Et}else l=St;break;case At:if(l=St,"/"!==o||"/"!==I(h,f+1))continue;f++;break;case St:if("/"!==o&&"\\"!==o){l=Et;continue}break;case Et:if("@"===o){p&&(h="%40"+h),p=!0,a=v(h);for(var w=0;w65535)return G;c.port=c.isSpecial()&&A===ht[c.scheme]?null:A,h=""}if(e)return;l=Rt;continue}return G}h+=o;break;case Mt:if(c.scheme="file","/"===o||"\\"===o)l=Ct;else{if(!n||"file"!==n.scheme){l=It;continue}switch(o){case r:c.host=n.host,c.path=g(n.path),c.query=n.query;break;case"?":c.host=n.host,c.path=g(n.path),c.query="",l=jt;break;case"#":c.host=n.host,c.path=g(n.path),c.query=n.query,c.fragment="",l=Ft;break;default:pt(j(g(i,f),""))||(c.host=n.host,c.path=g(n.path),c.shortenPath()),l=It;continue}}break;case Ct:if("/"===o||"\\"===o){l=Lt;break}n&&"file"===n.scheme&&!pt(j(g(i,f),""))&&(dt(n.path[0],!0)?D(c.path,n.path[0]):c.host=n.host),l=It;continue;case Lt:if(o===r||"/"===o||"\\"===o||"?"===o||"#"===o){if(!e&&dt(h))l=It;else if(""===h){if(c.host="",e)return;l=Rt}else{if(s=c.parseHost(h))return s;if("localhost"===c.host&&(c.host=""),e)return;h="",l=Rt}continue}h+=o;break;case Rt:if(c.isSpecial()){if(l=It,"/"!==o&&"\\"!==o)continue}else if(e||"?"!==o)if(e||"#"!==o){if(o!==r&&(l=It,"/"!==o))continue}else c.fragment="",l=Ft;else c.query="",l=jt;break;case It:if(o===r||"/"===o||"\\"===o&&c.isSpecial()||!e&&("?"===o||"#"===o)){if(".."===(u=H(u=h))||"%2e."===u||".%2e"===u||"%2e%2e"===u?(c.shortenPath(),"/"===o||"\\"===o&&c.isSpecial()||D(c.path,"")):vt(h)?"/"===o||"\\"===o&&c.isSpecial()||D(c.path,""):("file"===c.scheme&&!c.path.length&&dt(h)&&(c.host&&(c.host=""),h=I(h,0)+":"),D(c.path,h)),h="","file"===c.scheme&&(o===r||"?"===o||"#"===o))for(;c.path.length>1&&""===c.path[0];)z(c.path);"?"===o?(c.query="",l=jt):"#"===o&&(c.fragment="",l=Ft)}else h+=ft(o,ct);break;case Pt:"?"===o?(c.query="",l=jt):"#"===o?(c.fragment="",l=Ft):o!==r&&(c.path[0]+=ft(o,st));break;case jt:e||"#"!==o?o!==r&&("'"===o&&c.isSpecial()?c.query+="%27":c.query+="#"===o?"%23":ft(o,st)):(c.fragment="",l=Ft);break;case Ft:o!==r&&(c.fragment+=ft(o,ut))}f++}},parseHost:function(t){var e,n,r;if("["===I(t,0)){if("]"!==I(t,t.length-1))return $;if(e=function(t){var e,n,r,i,o,a,s,u=[0,0,0,0,0,0,0,0],c=0,l=null,f=0,h=function(){return I(t,f)};if(":"===h()){if(":"!==I(t,1))return;f+=2,l=++c}for(;h();){if(8===c)return;if(":"!==h()){for(e=n=0;n<4&&P(tt,h());)e=16*e+C(h(),16),f++,n++;if("."===h()){if(0===n)return;if(f-=n,c>6)return;for(r=0;h();){if(i=null,r>0){if(!("."===h()&&r<4))return;f++}if(!P(K,h()))return;for(;P(K,h());){if(o=C(h(),10),null===i)i=o;else{if(0===i)return;i=10*i+o}if(i>255)return;f++}u[c]=256*u[c]+i,2!=++r&&4!==r||c++}if(4!==r)return;break}if(":"===h()){if(f++,!h())return}else if(h())return;u[c++]=e}else{if(null!==l)return;f++,l=++c}}if(null!==l)for(a=c-l,c=7;0!==c&&a>0;)s=u[c],u[c--]=u[l+a-1],u[l+--a]=s;else if(8!==c)return;return u}(W(t,1,-1)),!e)return $;this.host=e}else if(this.isSpecial()){if(t=m(t),P(et,t))return $;if(e=function(t){var e,n,r,i,o,a,s,u=U(t,".");if(u.length&&""===u[u.length-1]&&u.length--,(e=u.length)>4)return t;for(n=[],r=0;r1&&"0"===I(i,0)&&(o=P(J,i)?16:8,i=W(i,8===o?1:2)),""===i)a=0;else{if(!P(10===o?Q:8===o?Z:tt,i))return t;a=C(i,o)}D(n,a)}for(r=0;r=R(256,5-e))return null}else if(a>255)return null;for(s=N(n),r=0;r1?arguments[1]:void 0,r=S(e,new Nt(t,!1,n));o||(e.href=r.serialize(),e.origin=r.getOrigin(),e.protocol=r.getProtocol(),e.username=r.getUsername(),e.password=r.getPassword(),e.host=r.getHost(),e.hostname=r.getHostname(),e.port=r.getPort(),e.pathname=r.getPathname(),e.search=r.getSearch(),e.searchParams=r.getSearchParams(),e.hash=r.getHash())},Bt=Dt.prototype,zt=function(t,e){return{get:function(){return E(this)[t]()},set:e&&function(t){return E(this)[e](t)},configurable:!0,enumerable:!0}};if(o&&(f(Bt,"href",zt("serialize","setHref")),f(Bt,"origin",zt("getOrigin")),f(Bt,"protocol",zt("getProtocol","setProtocol")),f(Bt,"username",zt("getUsername","setUsername")),f(Bt,"password",zt("getPassword","setPassword")),f(Bt,"host",zt("getHost","setHost")),f(Bt,"hostname",zt("getHostname","setHostname")),f(Bt,"port",zt("getPort","setPort")),f(Bt,"pathname",zt("getPathname","setPathname")),f(Bt,"search",zt("getSearch","setSearch")),f(Bt,"searchParams",zt("getSearchParams")),f(Bt,"hash",zt("getHash","setHash"))),l(Bt,"toJSON",(function(){return E(this).serialize()}),{enumerable:!0}),l(Bt,"toString",(function(){return E(this).serialize()}),{enumerable:!0}),O){var Ut=O.createObjectURL,Wt=O.revokeObjectURL;Ut&&l(Dt,"createObjectURL",u(Ut,O)),Wt&&l(Dt,"revokeObjectURL",u(Wt,O))}w(Dt,"URL"),i({global:!0,constructor:!0,forced:!a,sham:!o},{URL:Dt})},45876:function(t,e,n){"use strict";var r=n(46518),i=n(53838);r({target:"Set",proto:!0,real:!0,forced:!n(84916)("isSubsetOf",(function(t){return t}))},{isSubsetOf:i})},46276:function(t,e,n){"use strict";var r=n(46518),i=n(77240);r({target:"String",proto:!0,forced:n(23061)("strike")},{strike:function(){return i(this,"strike","","")}})},46449:function(t,e,n){"use strict";var r=n(46518),i=n(70259),o=n(48981),a=n(26198),s=n(91291),u=n(1469);r({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,e=o(this),n=a(e),r=u(e,0);return r.length=i(r,e,e,n,0,void 0===t?1:s(t)),r}})},46518:function(t,e,n){"use strict";var r=n(44576),i=n(77347).f,o=n(66699),a=n(36840),s=n(39433),u=n(77740),c=n(92796);t.exports=function(t,e){var n,l,f,h,d,p=t.target,v=t.global,g=t.stat;if(n=v?r:g?r[p]||s(p,{}):r[p]&&r[p].prototype)for(l in e){if(h=e[l],f=t.dontCallGetSet?(d=i(n,l))&&d.value:n[l],!c(v?l:p+(g?".":"#")+l,t.forced)&&void 0!==f){if(typeof h==typeof f)continue;u(h,f)}(t.sham||f&&f.sham)&&o(h,"sham",!0),a(n,l,h,t)}}},46594:function(t,e,n){"use strict";n(15823)("Int8",(function(t){return function(e,n,r){return t(this,e,n,r)}}))},46706:function(t,e,n){"use strict";var r=n(79504),i=n(79306);t.exports=function(t,e,n){try{return r(i(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(t){}}},46761:function(t,e,n){"use strict";var r=n(46518),i=n(94644);r({target:"ArrayBuffer",stat:!0,forced:!i.NATIVE_ARRAY_BUFFER_VIEWS},{isView:i.isView})},47055:function(t,e,n){"use strict";var r=n(79504),i=n(79039),o=n(22195),a=Object,s=r("".split);t.exports=i((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"===o(t)?s(t,""):a(t)}:a},47072:function(t,e,n){"use strict";var r=n(46518),i=n(79504),o=n(79306),a=n(67750),s=n(72652),u=n(72248),c=n(96395),l=n(79039),f=u.Map,h=u.has,d=u.get,p=u.set,v=i([].push),g=c||l((function(){return 1!==f.groupBy("ab",(function(t){return t})).get("a").length}));r({target:"Map",stat:!0,forced:c||g},{groupBy:function(t,e){a(t),o(e);var n=new f,r=0;return s(t,(function(t){var i=e(t,r++);h(n,i)?v(d(n,i),t):p(n,i,[t])})),n}})},47452:function(t){"use strict";t.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},47566:function(t,e,n){"use strict";var r=n(36840),i=n(79504),o=n(655),a=n(22812),s=URLSearchParams,u=s.prototype,c=i(u.getAll),l=i(u.has),f=new s("a=1");!f.has("a",2)&&f.has("a",void 0)||r(u,"has",(function(t){var e=arguments.length,n=e<2?void 0:arguments[1];if(e&&void 0===n)return l(this,t);var r=c(this,t);a(e,1);for(var i=o(n),s=0;s=n.length?s(void 0,!0):(t=r(n,i),e.index+=t.length,s(t,!1))}))},48140:function(t,e,n){"use strict";var r=n(94644),i=n(26198),o=n(91291),a=r.aTypedArray;(0,r.exportTypedArrayMethod)("at",(function(t){var e=a(this),n=i(e),r=o(t),s=r>=0?r:n+r;return s<0||s>=n?void 0:e[s]}))},48345:function(t,e,n){"use strict";var r=n(72805);(0,n(94644).exportTypedArrayStaticMethod)("from",n(43251),r)},48408:function(t,e,n){"use strict";n(98406)},48523:function(t,e,n){"use strict";n(16468)("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),n(86938))},48598:function(t,e,n){"use strict";var r=n(46518),i=n(79504),o=n(47055),a=n(25397),s=n(34598),u=i([].join);r({target:"Array",proto:!0,forced:o!==Object||!s("join",",")},{join:function(t){return u(a(this),void 0===t?",":t)}})},48646:function(t,e,n){"use strict";var r=n(69565),i=n(28551),o=n(1767),a=n(50851);t.exports=function(t,e){e&&"string"==typeof t||i(t);var n=a(t);return o(i(void 0!==n?r(n,t):t))}},48686:function(t,e,n){"use strict";var r=n(43724),i=n(79039);t.exports=r&&i((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},48718:function(t,e,n){"use strict";var r=n(46518),i=n(77240);r({target:"String",proto:!0,forced:n(23061)("sub")},{sub:function(){return i(this,"sub","","")}})},48773:function(t,e){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,i=r&&!n.call({1:2},1);e.f=i?function(t){var e=r(this,t);return!!e&&e.enumerable}:n},48922:function(t,e,n){"use strict";var r=n(46518),i=n(43724),o=n(97751),a=n(79306),s=n(90679),u=n(36840),c=n(56279),l=n(62106),f=n(78227),h=n(91181),d=n(91021),p=o("SuppressedError"),v=ReferenceError,g=f("dispose"),y=f("toStringTag"),m="DisposableStack",b=h.set,w=h.getterFor(m),x="sync-dispose",k="disposed",A=function(t){var e=w(t);if(e.state===k)throw new v(m+" already disposed");return e},S=function(){b(s(this,E),{type:m,state:"pending",stack:[]}),i||(this.disposed=!1)},E=S.prototype;c(E,{dispose:function(){var t=w(this);if(t.state!==k){t.state=k,i||(this.disposed=!0);for(var e,n=t.stack,r=n.length,o=!1;r;){var a=n[--r];n[r]=null;try{a()}catch(t){o?e=new p(t,e):(o=!0,e=t)}}if(t.stack=null,o)throw e}},use:function(t){return d(A(this),t,x),t},adopt:function(t,e){var n=A(this);return a(e),d(n,void 0,x,(function(){e(t)})),t},defer:function(t){var e=A(this);a(t),d(e,void 0,x,t)},move:function(){var t=A(this),e=new S;return w(e).stack=t.stack,t.stack=[],t.state=k,i||(this.disposed=!0),e}}),i&&l(E,"disposed",{configurable:!0,get:function(){return w(this).state===k}}),u(E,g,E.dispose,{name:"dispose"}),u(E,y,m,{nonWritable:!0}),r({global:!0,constructor:!0},{DisposableStack:S})},48957:function(t,e,n){"use strict";var r=n(94901),i=n(20034),o=n(24913),a=n(1625),s=n(78227),u=n(50283),c=s("hasInstance"),l=Function.prototype;c in l||o.f(l,c,{value:u((function(t){if(!r(this)||!i(t))return!1;var e=this.prototype;return i(e)?a(e,t):t instanceof this}),c)})},48980:function(t,e,n){"use strict";var r=n(46518),i=n(59213).findIndex,o=n(6469),a="findIndex",s=!0;a in[]&&Array(1)[a]((function(){s=!1})),r({target:"Array",proto:!0,forced:s},{findIndex:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),o(a)},48981:function(t,e,n){"use strict";var r=n(67750),i=Object;t.exports=function(t){return i(r(t))}},49072:function(t,e,n){"use strict";n.r(e),n.d(e,{search:function(){return c},searchMatcher:function(){return l}});var r=n(54756),i=n.n(r);function o(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return a(t,e);var n={}.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)?a(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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 o,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw o}}}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n2&&void 0!==arguments[2]?arguments[2]:{};return i().mark((function r(){var o,a,s,c,l,f,h,d,p,v,g,y,m,b,w,x,k,A,S,E,T,_,O,M,C;return i().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:o=n.locales,a=void 0===o?"en":o,s=n.granularity,c=void 0===s?"word":s,l=n.sensitivity,f=void 0===l?"base":l;try{h=new Intl.Segmenter(a,{usage:"search",granularity:c}),d=new Intl.Collator(a,{sensitivity:f})}catch(t){console.warn(t),h=new Intl.Segmenter("en",{usage:"search",granularity:c}),d=new Intl.Collator("en",{sensitivity:f})}p=Array.from(h.segment(e)).length,v=[],g=0,y=h.segment(t[g])[Symbol.iterator]();case 1:if(!(g2&&void 0!==arguments[2]?arguments[2]:{};return i().mark((function r(){var o,a,s,c,l,f,h,d,p,v,g,y,m,b,w,x,k;return i().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:o=n.locales,a=void 0===o?"en":o,s=n.sensitivity,c="variant"===s,l=t.join(""),f=c?l:l.toLocaleLowerCase(a),h=c?e:e.toLocaleLowerCase(a),d=h.length,p=-1,v=-1,g=0;case 1:if(!((p=f.indexOf(h,p+1))>-1)){r.next=2;break}for(;g<=p;)g+=t[++v].length;for(y=v,m=p-(g-t[v].length),b=p+d;g<=b;)g+=t[++v].length;return w=v,x=b-(g-t[v].length),k={startIndex:y,startOffset:m,endIndex:w,endOffset:x},r.next=2,{range:k,excerpt:u(t,k)};case 2:if(p>-1){r.next=1;break}case 3:case"end":return r.stop()}}),r)}))()}(t,e,n)},l=function(t,e){var n=e.defalutLocale,r=e.matchCase,a=e.matchDiacritics,s=e.matchWholeWords;return i().mark((function e(u,l){var f,h,d,p,v;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:f=t(u,i().mark((function t(e,f){var h,d,p,v,g,y,m,b,w;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:h=o(c(e,l,{locales:u.body.lang||u.documentElement.lang||n||"en",granularity:s?"word":"grapheme",sensitivity:a&&r?"variant":a&&!r?"accent":!a&&r?"case":"base"})),t.prev=1,h.s();case 2:if((d=h.n()).done){t.next=4;break}return p=d.value,v=p.range,g=v.startIndex,y=v.startOffset,m=v.endIndex,b=v.endOffset,p.range=f(g,y,m,b),t.next=3,p;case 3:t.next=2;break;case 4:t.next=6;break;case 5:t.prev=5,w=t.catch(1),h.e(w);case 6:return t.prev=6,h.f(),t.finish(6);case 7:case"end":return t.stop()}}),t,null,[[1,5,6,7]])}))),h=o(f),e.prev=1,h.s();case 2:if((d=h.n()).done){e.next=4;break}return p=d.value,e.next=3,p;case 3:e.next=2;break;case 4:e.next=6;break;case 5:e.prev=5,v=e.catch(1),h.e(v);case 6:return e.prev=6,h.f(),e.finish(6);case 7:case"end":return e.stop()}}),e,null,[[1,5,6,7]])}))}},49340:function(t){"use strict";var e=Math.log,n=Math.LOG10E;t.exports=Math.log10||function(t){return e(t)*n}},49557:function(t,e,n){"use strict";n.d(e,{u:function(){return m}});var r=n(3453),i=n(23029),o=n(92901);function a(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return s(t,e);var n={}.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)?s(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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 o,a=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw o}}}}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n=0;o--){var s,u=(0,r.A)(i[o],2),c=u[0],l=u[1],h=a(l.rects);try{for(h.s();!(s=h.n()).done;){var d=s.value,p=d.left,g=d.top,y=d.right,m=d.bottom;if(g<=n&&p<=e&&m>n&&y>e)return[c,l.range]}}catch(t){h.e(t)}finally{h.f()}}return[]}}],[{key:"underline",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.color,r=void 0===n?"red":n,i=e.width,o=void 0===i?2:i,s=e.padding,u=void 0===s?0:s,c=e.writingMode,l=d("g");if(l.setAttribute("fill",r),"vertical-rl"===c||"vertical-lr"===c){var f,h=a(t);try{for(h.s();!(f=h.n()).done;){var p=f.value,v=p.right,g=p.top,y=p.height,m=d("rect");m.setAttribute("x",v-o/2+u),m.setAttribute("y",g),m.setAttribute("height",y),m.setAttribute("width",o),l.append(m)}}catch(t){h.e(t)}finally{h.f()}}else{var b,w=a(t);try{for(w.s();!(b=w.n()).done;){var x=b.value,k=x.left,A=x.bottom,S=x.width,E=d("rect");E.setAttribute("x",k),E.setAttribute("y",A-o/2+u),E.setAttribute("height",o),E.setAttribute("width",S),l.append(E)}}catch(t){w.e(t)}finally{w.f()}}return l}},{key:"strikethrough",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.color,r=void 0===n?"red":n,i=e.width,o=void 0===i?2:i,s=e.writingMode,u=d("g");if(u.setAttribute("fill",r),"vertical-rl"===s||"vertical-lr"===s){var c,l=a(t);try{for(l.s();!(c=l.n()).done;){var f=c.value,h=f.right,p=f.left,v=f.top,g=f.height,y=d("rect");y.setAttribute("x",(h+p)/2),y.setAttribute("y",v),y.setAttribute("height",g),y.setAttribute("width",o),u.append(y)}}catch(t){l.e(t)}finally{l.f()}}else{var m,b=a(t);try{for(b.s();!(m=b.n()).done;){var w=m.value,x=w.left,k=w.top,A=w.bottom,S=w.width,E=d("rect");E.setAttribute("x",x),E.setAttribute("y",(k+A)/2),E.setAttribute("height",o),E.setAttribute("width",S),u.append(E)}}catch(t){b.e(t)}finally{b.f()}}return u}},{key:"squiggly",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.color,r=void 0===n?"red":n,i=e.width,o=void 0===i?2:i,s=e.padding,u=void 0===s?0:s,c=e.writingMode,l=d("g");l.setAttribute("fill","none"),l.setAttribute("stroke",r),l.setAttribute("stroke-width",o);var f=1.5*o;if("vertical-rl"===c||"vertical-lr"===c){var h,p=a(t);try{var v=function(){var t=h.value,e=t.right,n=t.top,r=t.height,i=d("path"),a=Math.round(r/f/1.5),s=r/a,c=Array.from({length:a},(function(t,e){return"l".concat(e%2?-f:f," ").concat(s)})).join("");i.setAttribute("d","M".concat(e-o/2+u," ").concat(n).concat(c)),l.append(i)};for(p.s();!(h=p.n()).done;)v()}catch(t){p.e(t)}finally{p.f()}}else{var g,y=a(t);try{var m=function(){var t=g.value,e=t.left,n=t.bottom,r=t.width,i=d("path"),a=Math.round(r/f/1.5),s=r/a,c=Array.from({length:a},(function(t,e){return"l".concat(s," ").concat(e%2?f:-f)})).join("");i.setAttribute("d","M".concat(e," ").concat(n+o/2+u).concat(c)),l.append(i)};for(y.s();!(g=y.n()).done;)m()}catch(t){y.e(t)}finally{y.f()}}return l}},{key:"highlight",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.color,r=void 0===n?"red":n,i=e.padding,o=void 0===i?0:i,s=d("g");s.setAttribute("fill",r),s.style.opacity="var(--overlayer-highlight-opacity, .3)",s.style.mixBlendMode="var(--overlayer-highlight-blend-mode, normal)";var u,c=a(t);try{for(c.s();!(u=c.n()).done;){var l=u.value,f=l.left,h=l.top,p=l.height,v=l.width,g=d("rect");g.setAttribute("x",f-o),g.setAttribute("y",h-o),g.setAttribute("height",p+2*o),g.setAttribute("width",v+2*o),s.append(g)}}catch(t){c.e(t)}finally{c.f()}return s}},{key:"outline",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.color,r=void 0===n?"red":n,i=e.width,o=void 0===i?3:i,s=e.padding,u=void 0===s?0:s,c=e.radius,l=void 0===c?3:c,f=d("g");f.setAttribute("fill","none"),f.setAttribute("stroke",r),f.setAttribute("stroke-width",o);var h,p=a(t);try{for(p.s();!(h=p.n()).done;){var v=h.value,g=v.left,y=v.top,m=v.height,b=v.width,w=d("rect");w.setAttribute("x",g-u),w.setAttribute("y",y-u),w.setAttribute("height",m+2*u),w.setAttribute("width",b+2*u),w.setAttribute("rx",l),f.append(w)}}catch(t){p.e(t)}finally{p.f()}return f}},{key:"copyImage",value:function(t){var e=(0,r.A)(t,1)[0],n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).src,i=d("image"),o=e.left,a=e.top,s=e.height,u=e.width;return i.setAttribute("href",n),i.setAttribute("x",o),i.setAttribute("y",a),i.setAttribute("height",s),i.setAttribute("width",u),i}}])}();function b(t){return/^((?!chrome|android).)*AppleWebKit/i.test(navigator.userAgent)&&!window.chrome&&window.getComputedStyle(f(g,t).body).zoom||1}function w(t){var e,n=t.commonAncestorContainer,r=Array.from((null===(e=n.querySelectorAll)||void 0===e?void 0:e.call(n,"p, h1, h2, h3, h4"))||[]),i=[];return r.forEach((function(e){var n=document.createRange();t.intersectsNode(e)&&(n.selectNodeContents(e),n.compareBoundaryPoints(Range.START_TO_START,t)<0&&n.setStart(t.startContainer,t.startOffset),n.compareBoundaryPoints(Range.END_TO_END,t)>0&&n.setEnd(t.endContainer,t.endOffset),i.push(n))})),0===i.length?[t]:i}},49603:function(t,e,n){"use strict";var r=n(46518),i=n(69565),o=n(48981),a=n(1625),s=n(57657).IteratorPrototype,u=n(19462),c=n(48646),l=n(96395)||function(){try{Iterator.from({return:null}).return()}catch(t){return!0}}(),f=u((function(){return i(this.next,this.iterator)}),!0);r({target:"Iterator",stat:!0,forced:l},{from:function(t){var e=c("string"==typeof t?o(t):t,!0);return a(s,e.iterator)?e.iterator:new f(e)}})},49773:function(t,e,n){"use strict";var r=n(46518),i=n(4495),o=n(79039),a=n(33717),s=n(48981);r({target:"Object",stat:!0,forced:!i||o((function(){a.f(1)}))},{getOwnPropertySymbols:function(t){var e=a.f;return e?e(s(t)):[]}})},49922:function(t,e,n){"use strict";n.d(e,{A:function(){return o}});var r=n(82284),i=n(92327);function o(t){var e=(0,i.A)(t,"string");return"symbol"==(0,r.A)(e)?e:e+""}},50113:function(t,e,n){"use strict";var r=n(46518),i=n(59213).find,o=n(6469),a="find",s=!0;a in[]&&Array(1)[a]((function(){s=!1})),r({target:"Array",proto:!0,forced:s},{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),o(a)},50283:function(t,e,n){"use strict";var r=n(79504),i=n(79039),o=n(94901),a=n(39297),s=n(43724),u=n(10350).CONFIGURABLE,c=n(33706),l=n(91181),f=l.enforce,h=l.get,d=String,p=Object.defineProperty,v=r("".slice),g=r("".replace),y=r([].join),m=s&&!i((function(){return 8!==p((function(){}),"length",{value:8}).length})),b=String(String).split("String"),w=t.exports=function(t,e,n){"Symbol("===v(d(e),0,7)&&(e="["+g(d(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!a(t,"name")||u&&t.name!==e)&&(s?p(t,"name",{value:e,configurable:!0}):t.name=e),m&&n&&a(n,"arity")&&t.length!==n.arity&&p(t,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?s&&p(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var r=f(t);return a(r,"source")||(r.source=y(b,"string"==typeof e?e:"")),t};Function.prototype.toString=w((function(){return o(this)&&h(this).source||c(this)}),"toString")},50360:function(t,e,n){"use strict";var r=n(44576).isFinite;t.exports=Number.isFinite||function(t){return"number"==typeof t&&r(t)}},50375:function(t,e,n){"use strict";var r=n(46518),i=n(79504),o=n(67750),a=n(91291),s=n(655),u=i("".slice),c=Math.max,l=Math.min;r({target:"String",proto:!0,forced:!"".substr||"b"!=="ab".substr(-1)},{substr:function(t,e){var n,r,i=s(o(this)),f=i.length,h=a(t);return h===1/0&&(h=0),h<0&&(h=c(f+h,0)),(n=void 0===e?f:a(e))<=0||n===1/0||h>=(r=l(h+n,f))?"":u(i,h,r)}})},50452:function(t,e,n){"use strict";var r=n(69565),i=n(36840),o=n(97751),a=n(55966),s=n(39297),u=n(78227),c=n(53982),l=u("asyncDispose"),f=o("Promise");s(c,l)||i(c,l,(function(){var t=this;return new f((function(e,n){var i=a(t,"return");i?f.resolve(r(i,t)).then((function(){e(void 0)}),n):e(void 0)}))}))},50778:function(t,e,n){"use strict";var r=n(46518),i=n(77240);r({target:"String",proto:!0,forced:n(23061)("link")},{link:function(t){return i(this,"a","href",t)}})},50851:function(t,e,n){"use strict";var r=n(36955),i=n(55966),o=n(64117),a=n(26269),s=n(78227)("iterator");t.exports=function(t){if(!o(t))return i(t,s)||i(t,"@@iterator")||a[r(t)]}},51088:function(t,e,n){"use strict";var r=n(46518),i=n(69565),o=n(96395),a=n(10350),s=n(94901),u=n(33994),c=n(42787),l=n(52967),f=n(10687),h=n(66699),d=n(36840),p=n(78227),v=n(26269),g=n(57657),y=a.PROPER,m=a.CONFIGURABLE,b=g.IteratorPrototype,w=g.BUGGY_SAFARI_ITERATORS,x=p("iterator"),k="keys",A="values",S="entries",E=function(){return this};t.exports=function(t,e,n,a,p,g,T){u(n,e,a);var _,O,M,C=function(t){if(t===p&&j)return j;if(!w&&t&&t in I)return I[t];switch(t){case k:case A:case S:return function(){return new n(this,t)}}return function(){return new n(this)}},L=e+" Iterator",R=!1,I=t.prototype,P=I[x]||I["@@iterator"]||p&&I[p],j=!w&&P||C(p),F="Array"===e&&I.entries||P;if(F&&(_=c(F.call(new t)))!==Object.prototype&&_.next&&(o||c(_)===b||(l?l(_,b):s(_[x])||d(_,x,E)),f(_,L,!0,!0),o&&(v[L]=E)),y&&p===A&&P&&P.name!==A&&(!o&&m?h(I,"name",A):(R=!0,j=function(){return i(P,this)})),p)if(O={values:C(A),keys:g?j:C(k),entries:C(S)},T)for(M in O)(w||R||!(M in I))&&d(I,M,O[M]);else r({target:e,proto:!0,forced:w||R},O);return o&&!T||I[x]===j||d(I,x,j,{name:p}),v[e]=j,O}},51481:function(t,e,n){"use strict";var r=n(46518),i=n(36043);r({target:"Promise",stat:!0,forced:n(10916).CONSTRUCTOR},{reject:function(t){var e=i.f(this);return(0,e.reject)(t),e.promise}})},51629:function(t,e,n){"use strict";var r=n(46518),i=n(90235);r({target:"Array",proto:!0,forced:[].forEach!==i},{forEach:i})},52407:function(t,e,n){"use strict";var r=n(46518),i=n(8045),o=n(79039),a=Array.fromAsync;r({target:"Array",stat:!0,forced:!a||o((function(){var t=0;return a.call((function(){return t++,[]}),{length:0}),1!==t}))},{fromAsync:i})},52568:function(t,e,n){"use strict";var r=n(94644),i=n(72805),o=r.aTypedArrayConstructor;(0,r.exportTypedArrayStaticMethod)("of",(function(){for(var t=0,e=arguments.length,n=new(o(this))(e);e>t;)n[t]=arguments[t++];return n}),i)},52675:function(t,e,n){"use strict";n(6761),n(81510),n(97812),n(33110),n(49773)},52703:function(t,e,n){"use strict";var r=n(44576),i=n(79039),o=n(79504),a=n(655),s=n(43802).trim,u=n(47452),c=r.parseInt,l=r.Symbol,f=l&&l.iterator,h=/^[+-]?0x/i,d=o(h.exec),p=8!==c(u+"08")||22!==c(u+"0x16")||f&&!i((function(){c(Object(f))}));t.exports=p?function(t,e){var n=s(a(t));return c(n,e>>>0||(d(h,n)?16:10))}:c},52811:function(t,e,n){"use strict";var r=n(46518),i=n(92744),o=n(79039),a=n(20034),s=n(3451).onFreeze,u=Object.freeze;r({target:"Object",stat:!0,forced:o((function(){u(1)})),sham:!i},{freeze:function(t){return u&&a(t)?u(s(t)):t}})},52967:function(t,e,n){"use strict";var r=n(46706),i=n(20034),o=n(67750),a=n(73506);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=r(Object.prototype,"__proto__","set"))(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return o(n),a(r),i(n)?(e?t(n,r):n.__proto__=r,n):n}}():void 0)},53179:function(t,e,n){"use strict";var r=n(92140),i=n(36955);t.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},53250:function(t){"use strict";var e=Math.expm1,n=Math.exp;t.exports=!e||e(10)>22025.465794806718||e(10)<22025.465794806718||-2e-17!==e(-2e-17)?function(t){var e=+t;return 0===e?e:e>-1e-6&&e<1e-6?e+e*e/2:n(e)-1}:e},53487:function(t,e,n){"use strict";var r=n(43802).start,i=n(60706);t.exports=i("trimStart")?function(){return r(this)}:"".trimStart},53602:function(t){"use strict";var e=4503599627370496;t.exports=function(t){return t+e-e}},53640:function(t,e,n){"use strict";var r=n(28551),i=n(84270),o=TypeError;t.exports=function(t){if(r(this),"string"===t||"default"===t)t="string";else if("number"!==t)throw new o("Incorrect hint");return i(this,t)}},53838:function(t,e,n){"use strict";var r=n(97080),i=n(25170),o=n(38469),a=n(83789);t.exports=function(t){var e=r(this),n=a(t);return!(i(e)>n.size)&&!1!==o(e,(function(t){if(!n.includes(t))return!1}),!0)}},53921:function(t,e,n){"use strict";var r=n(46518),i=n(72652),o=n(97040);r({target:"Object",stat:!0},{fromEntries:function(t){var e={};return i(t,(function(t,n){o(e,t,n)}),{AS_ENTRIES:!0}),e}})},53954:function(t,e,n){"use strict";function r(t){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},r(t)}n.d(e,{A:function(){return r}})},53982:function(t,e,n){"use strict";var r,i,o=n(44576),a=n(77629),s=n(94901),u=n(2360),c=n(42787),l=n(36840),f=n(78227),h=n(96395),d="USE_FUNCTION_CONSTRUCTOR",p=f("asyncIterator"),v=o.AsyncIterator,g=a.AsyncIteratorPrototype;if(g)r=g;else if(s(v))r=v.prototype;else if(a[d]||o[d])try{i=c(c(c(Function("return async function*(){}()")()))),c(i)===Object.prototype&&(r=i)}catch(t){}r?h&&(r=u(r)):r={},s(r[p])||l(r,p,(function(){return this})),t.exports=r},54554:function(t,e,n){"use strict";var r=n(46518),i=n(48981),o=n(35610),a=n(91291),s=n(26198),u=n(34527),c=n(96837),l=n(1469),f=n(97040),h=n(84606),d=n(70597)("splice"),p=Math.max,v=Math.min;r({target:"Array",proto:!0,forced:!d},{splice:function(t,e){var n,r,d,g,y,m,b=i(this),w=s(b),x=o(t,w),k=arguments.length;for(0===k?n=r=0:1===k?(n=0,r=w-x):(n=k-2,r=v(p(a(e),0),w-x)),c(w+n-r),d=l(b,r),g=0;gw-r+n;g--)h(b,g-1)}else if(n>r)for(g=w-r;g>x;g--)m=g+n-1,(y=g+r-1)in b?b[m]=b[y]:h(b,m);for(g=0;g2?arguments[2]:void 0,h=s((void 0===f?u:i(f,u))-l,u-c),d=1;for(l0;)l in n?n[c]=n[l]:a(n,c),c+=d,l+=d;return n}},57145:function(t,e,n){"use strict";var r=n(46518),i=n(79504),o=n(79306),a=n(25397),s=n(35370),u=n(44124),c=n(6469),l=Array,f=i(u("Array","sort"));r({target:"Array",proto:!0},{toSorted:function(t){void 0!==t&&o(t);var e=a(this),n=s(l,e);return f(n,t)}}),c("toSorted")},57301:function(t,e,n){"use strict";var r=n(94644),i=n(59213).some,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("some",(function(t){return i(o(this),t,arguments.length>1?arguments[1]:void 0)}))},57323:function(t,e,n){"use strict";var r,i,o=n(69565),a=n(79504),s=n(655),u=n(67979),c=n(58429),l=n(25745),f=n(2360),h=n(91181).get,d=n(83635),p=n(18814),v=l("native-string-replace",String.prototype.replace),g=RegExp.prototype.exec,y=g,m=a("".charAt),b=a("".indexOf),w=a("".replace),x=a("".slice),k=(i=/b*/g,o(g,r=/a/,"a"),o(g,i,"a"),0!==r.lastIndex||0!==i.lastIndex),A=c.BROKEN_CARET,S=void 0!==/()??/.exec("")[1];(k||S||A||d||p)&&(y=function(t){var e,n,r,i,a,c,l,d=this,p=h(d),E=s(t),T=p.raw;if(T)return T.lastIndex=d.lastIndex,e=o(y,T,E),d.lastIndex=T.lastIndex,e;var _=p.groups,O=A&&d.sticky,M=o(u,d),C=d.source,L=0,R=E;if(O&&(M=w(M,"y",""),-1===b(M,"g")&&(M+="g"),R=x(E,d.lastIndex),d.lastIndex>0&&(!d.multiline||d.multiline&&"\n"!==m(E,d.lastIndex-1))&&(C="(?: "+C+")",R=" "+R,L++),n=new RegExp("^(?:"+C+")",M)),S&&(n=new RegExp("^"+C+"$(?!\\s)",M)),k&&(r=d.lastIndex),i=o(g,O?n:d,R),O?i?(i.input=x(i.input,L),i[0]=x(i[0],L),i.index=d.lastIndex,d.lastIndex+=i[0].length):d.lastIndex=0:k&&i&&(d.lastIndex=d.global?i.index+i[0].length:r),S&&i&&i.length>1&&o(v,i[0],n,(function(){for(a=1;at.length)&&(e=t.length);for(var n=0,r=Array(e);n1))return n.parentNode;t.setStart(n,e-1)}return t},O=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n,i=t.createRange();return i.setStart(e,n),i.setEnd(e,r),i},M=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:e.nodeValue.length;if(i-r==1)return n(O(t,e,r),O(t,e,i))<0?r:i;var o=Math.floor(r+(i-r)/2),a=n(O(t,e,r,o),O(t,e,o,i));return a<0?M(t,e,n,r,o):a>0?M(t,e,n,o,i):o},C=NodeFilter,L=C.SHOW_ELEMENT,R=C.SHOW_TEXT,I=C.SHOW_CDATA_SECTION,P=C.FILTER_ACCEPT,j=C.FILTER_REJECT,F=C.FILTER_SKIP,N=L|R|I,D=function(t,e,n,r){var i,o;if(t){for(var a=t.createTreeWalker(t.body,N,{acceptNode:function(i){var o,a=null===(o=i.localName)||void 0===o?void 0:o.toLowerCase();if("script"===a||"style"===a)return j;if(1===i.nodeType){var s=r(i.getBoundingClientRect()),u=s.left,c=s.right;if(cn)return j;if(u>=e&&c<=n)return P}else{var l;if(null===(l=i.nodeValue)||void 0===l||!l.trim())return j;var f=t.createRange();f.selectNodeContents(i);var h=r(f.getBoundingClientRect()),d=h.left;if(h.right>=e&&d<=n)return P}return F}}),s=[],u=a.nextNode();u;u=a.nextNode())s.push(u);var c=null!==(i=s[0])&&void 0!==i?i:t.body,l=null!==(o=s[s.length-1])&&void 0!==o?o:c,f=1===c.nodeType?0:M(t,c,(function(t,n){var i=r(t.getBoundingClientRect()),o=r(n.getBoundingClientRect());return i.righte?0:o.left>e?-1:1})),h=1===l.nodeType?0:M(t,l,(function(t,e){var i=r(t.getBoundingClientRect()),o=r(e.getBoundingClientRect());return i.rightn?0:o.left>n?-1:1})),d=t.createRange();return d.setStart(c,f),d.setEnd(l,h),d}},B=function(t){var e=t.defaultView.getComputedStyle(t.body),n=e.writingMode,r=e.direction;return{vertical:"vertical-rl"===n||"vertical-lr"===n,rtl:"rtl"===t.body.dir||"rtl"===r||"rtl"===t.documentElement.dir,writingMode:n}},z=function(t,e){return Array.from({length:t},(function(){var t=document.createElement("div"),n=document.createElement("div");return t.append(n),n.setAttribute("part",e),t}))},U=function(t,e){for(var n=t.style,r=0,i=Object.entries(e);r=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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 o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}(s.body.querySelectorAll("img, svg, video"));try{for(u.s();!(t=u.n()).done;){var c=t.value,l=s.defaultView.getComputedStyle(c),f=l.maxHeight,h=l.maxWidth,d=a?"".concat(n-2*i,"px"):o?"".concat(o,"px"):"none"!==h&&"0px"!==h?h:"100%";U(c,{"max-height":a?"none"!==f&&"0px"!==f?f:"100%":"".concat(r-2*i,"px"),"max-width":d,"object-fit":"contain","page-break-inside":"avoid","break-inside":"avoid","box-sizing":"border-box"})}}catch(t){u.e(t)}finally{u.f()}}},{key:"expand",value:function(){var t=this.document.documentElement;if(k(K,this)){var e=k(G,this)?"height":"width",n=k(G,this)?"width":"height";k(V,this).selectNodeContents(this.document.body);var r=k(V,this).getBoundingClientRect(),i=t.getBoundingClientRect(),o=(k(G,this)?0:k(X,this)?i.right-r.right:r.left-i.left)+r[e],a=Math.ceil(o/k(J,this))*k(J,this);k(H,this).style.padding="0",k(q,this).style[e]="".concat(a,"px"),k(H,this).style[e]="".concat(a+2*k(J,this),"px"),k(q,this).style[n]="100%",k(H,this).style[n]="100%",t.style[e]="".concat(k(J,this),"px"),k($,this)&&(k($,this).element.style.margin="0",k($,this).element.style.left=k(G,this)?"0":"".concat(k(J,this),"px"),k($,this).element.style.top=k(G,this)?"".concat(k(J,this),"px"):"0",k($,this).element.style[e]="".concat(a,"px"),k($,this).redraw())}else{var s=k(G,this)?"width":"height",u=k(G,this)?"height":"width",c=t.getBoundingClientRect()[s],l=k(Z,this).margin,f=k(G,this)?"0 ".concat(l,"px"):"".concat(l,"px 0");k(H,this).style.padding=f,k(q,this).style[s]="".concat(c,"px"),k(H,this).style[s]="".concat(c,"px"),k(q,this).style[u]="100%",k(H,this).style[u]="100%",k($,this)&&(k($,this).element.style.margin=f,k($,this).element.style.left="0",k($,this).element.style.top="0",k($,this).element.style[s]="".concat(c,"px"),k($,this).redraw())}this.onExpand()}},{key:"overlayer",get:function(){return k($,this)},set:function(t){x($,this,t),k(H,this).append(t.element)}},{key:"writingMode",get:function(){return k(Y,this)}},{key:"destroy",value:function(){this.document&&k(W,this).unobserve(this.document.body)}}]);var t}(),tt=new WeakMap,et=new WeakMap,nt=new WeakMap,rt=new WeakMap,it=new WeakMap,ot=new WeakMap,at=new WeakMap,st=new WeakMap,ut=new WeakMap,ct=new WeakMap,lt=new WeakMap,ft=new WeakMap,ht=new WeakMap,dt=new WeakMap,pt=new WeakMap,vt=new WeakMap,gt=new WeakMap,yt=new WeakMap,mt=new WeakMap,bt=new WeakMap,wt=new WeakMap,xt=new WeakMap,kt=new WeakMap,At=new WeakMap,St=new WeakMap,Et=new WeakSet,Tt=function(t){function e(){var t,n,r,a;(0,l.A)(this,e),n=this,r=e,r=(0,o.A)(r),function(t,e){w(t,e),e.add(t)}(t=(0,i.A)(n,v()?Reflect.construct(r,[],(0,o.A)(n).constructor):r.apply(n,a)),Et),b(t,tt,t.attachShadow({mode:"open"})),b(t,et,new ResizeObserver((function(){return t.render()}))),b(t,nt,void 0),b(t,rt,void 0),b(t,it,void 0),b(t,ot,void 0),b(t,at,!1),b(t,st,!1),b(t,ut,0),b(t,ct,-1),b(t,lt,0),b(t,ft,!1),b(t,ht,!1),b(t,dt,void 0),b(t,pt,new WeakMap),b(t,vt,matchMedia("(prefers-color-scheme: dark)")),b(t,gt,void 0),b(t,yt,!1),b(t,mt,null),b(t,bt,void 0),b(t,wt,void 0),b(t,xt,!1),b(t,kt,!1),b(t,At,null),b(t,St,!1),k(tt,t).innerHTML='\n
\n
\n
\n
\n ',x(nt,t,k(tt,t).getElementById("top")),x(rt,t,k(tt,t).getElementById("background")),x(it,t,k(tt,t).getElementById("container")),k(et,t).observe(k(it,t)),k(it,t).addEventListener("scroll",(function(){k(yt,t)||(k(ft,t)?x(ft,t,!1):(k(mt,t)&&cancelAnimationFrame(k(mt,t)),x(mt,t,requestAnimationFrame((function(){x(mt,t,null),A(Et,t,Wt).call(t,"scroll"),t.scrolled&&A(Et,t,Ht).call(t)})))))}));var s={passive:!1};return t.addEventListener("touchstart",A(Et,t,Ct).bind(t),s),t.addEventListener("touchmove",A(Et,t,Lt).bind(t),s),t.addEventListener("touchend",A(Et,t,Rt).bind(t),s),t.addEventListener("load",(function(e){var n=e.detail.doc;n.addEventListener("touchstart",A(Et,t,Ct).bind(t),s),n.addEventListener("touchmove",A(Et,t,Lt).bind(t),s),n.addEventListener("touchend",A(Et,t,Rt).bind(t),s)})),x(gt,t,(function(){k(ot,t)&&A(Et,t,_t).call(t)})),k(vt,t).addEventListener("change",k(gt,t)),t}return(0,a.A)(e,t),(0,f.A)(e,[{key:"attributeChangedCallback",value:function(t,e,n){switch(t){case"flow":this.render();break;case"top-margin":case"max-block-size":case"background-color":k(nt,this).style.setProperty("--_"+t,n);break;case"bottom-margin":case"gap":case"max-column-count":case"column-threshold":case"max-inline-size":k(nt,this).style.setProperty("--_"+t,n),this.render();break;case"bgimg-url":case"bgimg-blur":case"bgimg-opacity":case"bgimg-fit":k(rt,this)&&A(Et,this,_t).call(this)}}},{key:"open",value:function(t){this.bookDir=t.dir,this.sections=t.sections}},{key:"render",value:function(){k(ot,this)&&(k(ot,this).render(A(Et,this,Mt).call(this,{vertical:k(at,this),rtl:k(st,this)})),this.scrollToAnchor(k(lt,this)))}},{key:"scrolled",get:function(){return"scrolled"===this.getAttribute("flow")}},{key:"scrollProp",get:function(){var t=this.scrolled;return k(at,this)?t?"scrollLeft":"scrollTop":t?"scrollTop":"scrollLeft"}},{key:"sideProp",get:function(){var t=this.scrolled;return k(at,this)?t?"width":"height":t?"height":"width"}},{key:"vertical",get:function(){return k(at,this)}},{key:"size",get:function(){return k(it,this).getBoundingClientRect()[this.sideProp]}},{key:"viewSize",get:function(){return k(ot,this).element.getBoundingClientRect()[this.sideProp]}},{key:"start",get:function(){return Math.abs(k(it,this)[this.scrollProp])}},{key:"end",get:function(){return this.start+this.size}},{key:"page",get:function(){return Math.floor((this.start+this.end)/2/this.size)}},{key:"pages",get:function(){return Math.round(this.viewSize/this.size)}},{key:"scrollBy",value:function(t,e){var n=k(it,this),r="scrollLeft"===this.scrollProp,i=r?t:e;r?n.scrollBy({left:i,top:0,behavior:"auto"}):n.scrollBy({left:0,top:i,behavior:"auto"})}},{key:"snap",value:function(t,e,n){var r,i=this;if(!k(St,this)){var o=null!=n?n:k(bt,this),a=k(at,this)?e:t,s=this.pages,u=this.size;if(s&&0!==u){var c=k(it,this),l=this.scrollProp,f="scrollLeft"===l,h=c[l],d=f?"overflowX":"overflowY",p=c.style[d];c.style[d]="hidden",c[l]=h;var v=Math.abs(h),g=Math.round(v/u),y=g;Math.abs(a)>.3&&(y+=a>0?1:-1);var m=null!==(r=null==o?void 0:o.startPage)&&void 0!==r?r:g;if(!this.scrolled){var b=y-m;b>1?y=m+1:b<-1&&(y=m-1)}var w=(y=Math.max(0,Math.min(s-1,y)))*u,S=Math.abs(w-v),E=Math.max(200,Math.min(300,S/(u||1)*250)),T=k(st,this)?-y:y;return x(St,this,!0),A(Et,this,Dt).call(this,T,"snap",{animate:!0,duration:E}).then((function(){var t=y<=0?-1:y>=s-1?1:null;if(t)return A(Et,i,Gt).call(i,{index:A(Et,i,Jt).call(i,t),anchor:t<0?function(){return 1}:function(){return 0}})})).finally((function(){x(St,i,!1),c.style[d]=p}))}}}},{key:"scrollToAnchor",value:(r=(0,c.A)(p().mark((function t(e,n){var r,i,o,a,s,u,c;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(x(lt,this,e),!(o=null===(r=_(e))||void 0===r||null===(i=r.getClientRects)||void 0===i?void 0:i.call(r))){t.next=3;break}if(a=Array.from(o).find((function(t){return t.width>0&&t.height>0}))||o[0]){t.next=1;break}return t.abrupt("return");case 1:return t.next=2,A(Et,this,Pt).call(this,a,"anchor");case 2:return n&&A(Et,this,zt).call(this),t.abrupt("return");case 3:if(!this.scrolled){t.next=5;break}return t.next=4,A(Et,this,Ft).call(this,e*this.viewSize,"anchor");case 4:return t.abrupt("return");case 5:if(s=this.pages){t.next=6;break}return t.abrupt("return");case 6:return u=s-2,c=Math.round(e*(u-1)),t.next=7,A(Et,this,Dt).call(this,c+1,"anchor");case 7:case"end":return t.stop()}}),t,this)}))),function(t,e){return r.apply(this,arguments)})},{key:"goTo",value:(n=(0,c.A)(p().mark((function t(e){var n;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!k(ht,this)){t.next=1;break}return t.abrupt("return");case 1:return t.next=2,e;case 2:if(n=t.sent,!A(Et,this,$t).call(this,n.index)){t.next=3;break}return t.abrupt("return",A(Et,this,Gt).call(this,n));case 3:case"end":return t.stop()}}),t,this)}))),function(t){return n.apply(this,arguments)})},{key:"atStart",get:function(){return null==A(Et,this,Jt).call(this,-1)&&this.page<=1}},{key:"atEnd",get:function(){return null==A(Et,this,Jt).call(this,1)&&this.page>=this.pages-2}},{key:"prev",value:function(t){return A(Et,this,Zt).call(this,-1,t)}},{key:"next",value:function(t){return A(Et,this,Zt).call(this,1,t)}},{key:"prevSection",value:function(){return this.goTo({index:A(Et,this,Jt).call(this,-1)})}},{key:"nextSection",value:function(){return this.goTo({index:A(Et,this,Jt).call(this,1)})}},{key:"firstSection",value:function(){var t=this.sections.findIndex((function(t){return"no"!==t.linear}));return this.goTo({index:t})}},{key:"lastSection",value:function(){var t=this.sections.findLastIndex((function(t){return"no"!==t.linear}));return this.goTo({index:t})}},{key:"getContents",value:function(){return k(ot,this)?[{index:k(ct,this),overlayer:k(ot,this).overlayer,doc:k(ot,this).document}]:[]}},{key:"setStyles",value:function(t){var e,n,r=this;x(dt,this,t);var i=k(pt,this).get(null===(e=k(ot,this))||void 0===e?void 0:e.document);if(i){var o=(0,h.A)(i,2),a=o[0],s=o[1];if(Array.isArray(t)){var u=(0,h.A)(t,2),c=u[0],l=u[1];a.textContent=c,s.textContent=l}else s.textContent=t;A(Et,this,_t).call(this),null===(n=k(ot,this))||void 0===n||null===(n=n.document)||void 0===n||null===(n=n.fonts)||void 0===n||null===(n=n.ready)||void 0===n||n.then((function(){return k(ot,r).expand()}))}}},{key:"writingMode",get:function(){var t;return null===(t=k(ot,this))||void 0===t?void 0:t.writingMode}},{key:"destroy",value:function(){var t,e;k(et,this).unobserve(this),k(ot,this).destroy(),x(ot,this,null),null===(t=this.sections[k(ct,this)])||void 0===t||null===(e=t.unload)||void 0===e||e.call(t),k(vt,this).removeEventListener("change",k(gt,this)),k(mt,this)&&(cancelAnimationFrame(k(mt,this)),x(mt,this,null)),x(At,this,null)}}]);var n,r}((0,s.A)(HTMLElement));function _t(){var t,e,n,r,i=null!==(t=this.getAttribute("bgimg-url"))&&void 0!==t?t:"none",o=parseFloat(null!==(e=this.getAttribute("bgimg-blur"))&&void 0!==e?e:"0"),a=parseFloat(null!==(n=this.getAttribute("bgimg-opacity"))&&void 0!==n?n:"1"),s=null!==(r=this.getAttribute("bgimg-fit"))&&void 0!==r?r:"cover";!function(t,e,n,r,i){if(t.style.background=function(t){return"none"===t?"none":"url(".concat(t,")")}(e),t.style.backgroundPosition="center center",t.style.backgroundRepeat="no-repeat",t.style.backgroundAttachment="scroll",t.style.backgroundSize="stretch"===i?"100% 100%":"cover",t.style.filter=n&&n>0?"blur(".concat(n,"px)"):"",t.style.opacity=null!=r?r:1,n&&n>0){var o="".concat(2*n,"px");t.style.margin="-".concat(o),t.style.width="calc(100% + ".concat(o," * 2)"),t.style.height="calc(100% + ".concat(o," * 2)")}else t.style.margin="",t.style.width="",t.style.height=""}(k(rt,this),i,o,a,s)}function Ot(){var t=this;return k(ot,this)&&(k(ot,this).destroy(),k(it,this).removeChild(k(ot,this).element)),x(ot,this,new Q({container:this,onExpand:function(){return t.scrollToAnchor(k(lt,t))}})),k(it,this).append(k(ot,this).element),k(ot,this)}function Mt(t){var e=t.vertical,n=t.rtl;x(at,this,e),x(st,this,n),k(nt,this).classList.toggle("vertical",e),A(Et,this,_t).call(this);var r=k(it,this).getBoundingClientRect(),i=r.width,o=r.height,a=e?o:i,s=getComputedStyle(k(nt,this)),u=parseFloat(s.getPropertyValue("--_column-threshold"))||parseFloat(s.getPropertyValue("--_max-inline-size")),c=parseInt(s.getPropertyValue("--_max-column-count")),l=parseFloat(s.getPropertyValue("--_top-margin"));x(ut,this,l);var f=parseFloat(s.getPropertyValue("--_gap"))/100,h=-f/(f-1)*a,d=parseFloat(s.getPropertyValue("--_top-margin")),p=parseFloat(s.getPropertyValue("--_bottom-margin")),v=this.getAttribute("flow");if("scrolled"===v?(k(it,this).style.overflowX="auto",k(it,this).style.overflowY="auto"):e?(k(it,this).style.overflowX="hidden",k(it,this).style.overflowY="auto"):(k(it,this).style.overflowX="auto",k(it,this).style.overflowY="hidden"),"scrolled"===v){this.setAttribute("dir",e?"rtl":"ltr"),k(nt,this).style.padding="0";var g=u;return this.heads=null,this.feet=null,{flow:v,margin:l,gap:h,columnWidth:g,topMargin:d,bottomMargin:p}}var y=0==c?Math.min(2,Math.ceil(a/u)):c,m=a/y-h;this.setAttribute("dir",n?"rtl":"ltr");var b=e?Math.min(2,Math.ceil(i/u)):y,w=("repeat(".concat(b,", 1fr)"),"".concat(h,"px"),this.bookDir,z(b,"head")),S=z(b,"foot");return this.heads=w.map((function(t){return t.children[0]})),this.feet=S.map((function(t){return t.children[0]})),{height:o,width:i,margin:l,gap:h,columnWidth:m,topMargin:d,bottomMargin:p}}function Ct(t){var e=t.changedTouches[0],n=this.scrollProp;x(bt,this,{x:null==e?void 0:e.screenX,y:null==e?void 0:e.screenY,t:t.timeStamp,vx:0,vy:0,pinched:!1,direction:"none",startTouch:{x:t.touches[0].screenX,y:t.touches[0].screenY},delta:{x:0,y:0},startScroll:k(it,this)[n],startPage:this.page,lockedOffset:null,axis:n}),this.dispatchEvent(new CustomEvent("doctouchstart",{detail:{touch:t.changedTouches[0],touchState:k(bt,this)},bubbles:!0,composed:!0}))}function Lt(t){var e;if(null===(e=window.getSelection())||void 0===e||!e.toString()){var n=t.changedTouches[0],r=k(bt,this);if(r){var i=n.screenX-r.startTouch.x,o=n.screenY-r.startTouch.y,a=Math.abs(i),s=Math.abs(o);r.delta.x=i,r.delta.y=o;var u="horizontal"===r.direction&&s>a,c="vertical"===r.direction&&a>s;if(!(("none"!==r.direction||u&&c)&&a<5&&s<5)){var l;(a>5||s>5)&&"none"===r.direction&&(a>s?r.direction="horizontal":(r.direction="vertical","scrollLeft"===this.scrollProp&&null==r.lockedOffset&&(r.lockedOffset=null!==(l=r.startScroll)&&void 0!==l?l:k(it,this).scrollLeft)));var f=this.scrollProp;r.axis=f;var h="scrollLeft"===f,d="scrollTop"===f,p="horizontal"===r.direction,v="vertical"===r.direction,g=new CustomEvent("doctouchmove",{detail:{touch:n,touchState:r},preventDefault:function(){return t.preventDefault()},bubbles:!0,composed:!0});if(this.dispatchEvent(g),!r.pinched&&(r.pinched=globalThis.visualViewport.scale>1,!r.pinched))if(t.touches.length>1)k(wt,this)&&t.preventDefault();else{var y=t.timeStamp-r.t||16.7,m=r.x-n.screenX,b=r.y-n.screenY;if(r.x=n.screenX,r.y=n.screenY,r.t=t.timeStamp,r.vx=m/y,r.vy=b/y,!this.scrolled){var w;if(v&&h)return t.preventDefault(),null==r.lockedOffset&&(r.lockedOffset=null!==(w=r.startScroll)&&void 0!==w?w:k(it,this).scrollLeft),void(k(it,this).scrollLeft=r.lockedOffset);(v&&d||p&&h)&&x(wt,this,!0)}}}}}}function Rt(t){var e=this,n=k(bt,this);if(this.dispatchEvent(new CustomEvent("doctouchend",{detail:{touch:t.changedTouches[0],touchState:n},bubbles:!0,composed:!0})),x(wt,this,!1),this.scrolled)x(bt,this,null);else if("vertical"===(null==n?void 0:n.direction)&&"scrollLeft"===n.axis&&null!=n.lockedOffset){if(k(it,this).scrollLeft=n.lockedOffset,x(bt,this,null),k(At,this)){var r=k(At,this);x(At,this,null),this.dispatchEvent(new CustomEvent("relocate",{detail:r}))}}else requestAnimationFrame((function(){1===globalThis.visualViewport.scale&&n?Promise.resolve(e.snap(n.vx,n.vy,n)).finally((function(){x(bt,e,null)})):x(bt,e,null)}))}function It(){if(this.scrolled){var t=this.viewSize,e=k(ut,this);return k(at,this)?function(n){var r=n.left,i=n.right;return{left:t-i-e,right:t-r-e}}:function(t){var n=t.top,r=t.bottom;return{left:n+e,right:r+e}}}var n=this.pages*this.size;return k(st,this)?function(t){var e=t.left,r=t.right;return{left:n-r,right:n-e}}:k(at,this)?function(t){return{left:t.top,right:t.bottom}}:function(t){return t}}function Pt(t,e){return jt.apply(this,arguments)}function jt(){return(jt=(0,c.A)(p().mark((function t(e,n){var r,i,o,a,s,u,c,l;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.scrolled){t.next=1;break}return r=A(Et,this,It).call(this)(e).left-k(ut,this),t.abrupt("return",A(Et,this,Ft).call(this,r,n));case 1:return i=A(Et,this,It).call(this)(e),o=i.left,a=Math.floor(o/this.size),s=a*this.size,u=s+this.size,c=Math.min(o+k(ut,this)/2,u-1),l=Math.max(s,c),t.abrupt("return",A(Et,this,Dt).call(this,Math.floor(l/this.size)+(k(st,this)?-1:1),n));case 2:case"end":return t.stop()}}),t,this)})))).apply(this,arguments)}function Ft(t,e,n){return Nt.apply(this,arguments)}function Nt(){return(Nt=(0,c.A)(p().mark((function t(e,n,i){var o,a,s,u,c,l,f,h,d,v,g,y,m=this;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(s=k(it,this),u=this.scrollProp,c=this.size,x(yt,this,!0),l="object"===(0,r.A)(i)&&null!=i?i:{},f=null!==(o=l.animate)&&void 0!==o?o:"snap"===n||!0===i,h=null!==(a=l.easing)&&void 0!==a?a:E,d=function(){A(Et,m,Wt).call(m,n),x(yt,m,!1)},!(Math.abs(s[u]-e)<1)){t.next=1;break}return d(),t.abrupt("return");case 1:if(this.scrolled&&k(at,this)&&(e=-e),!f||!this.hasAttribute("animated")){t.next=2;break}return g=Math.abs(s[u]-e),y=null!==(v=l.duration)&&void 0!==v?v:Math.max(200,Math.min(300,g/(c||1)*250)),x(ft,this,!0),t.abrupt("return",T(s[u],e,y,h,(function(t){return s[u]=t})).then((function(){s[u]=e,d()})).catch((function(){x(yt,m,!1)})));case 2:s[u]=e,d();case 3:case"end":return t.stop()}}),t,this)})))).apply(this,arguments)}function Dt(t,e,n){return Bt.apply(this,arguments)}function Bt(){return(Bt=(0,c.A)(p().mark((function t(e,n,r){var i;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=this.size*(k(st,this)?-e:e),t.abrupt("return",A(Et,this,Ft).call(this,i,n,r));case 1:case"end":return t.stop()}}),t,this)})))).apply(this,arguments)}function zt(){var t=k(ot,this).document.defaultView;if(k(lt,this).startContainer){var e=t.getSelection();e.removeAllRanges(),e.addRange(k(lt,this))}}function Ut(){if(this.scrolled)return D(k(ot,this).document,this.start+k(ut,this),this.end-k(ut,this),A(Et,this,It).call(this));var t=k(st,this)?-this.size:this.size;return D(k(ot,this).document,this.start-t,this.end-t,A(Et,this,It).call(this))}function Wt(t){var e=A(Et,this,Ut).call(this);"anchor"!==t?x(lt,this,e):x(ft,this,!0);var n={reason:t,range:e,index:k(ct,this)};if(this.scrolled)n.fraction=this.start/this.viewSize;else if(this.pages>0){var r=this.page,i=this.pages;n.fraction=(r-1)/(i-2),n.size=1/(i-2)}this.scrolled||"scroll"!==t||!k(bt,this)&&!k(wt,this)?(x(At,this,null),this.dispatchEvent(new CustomEvent("relocate",{detail:n}))):x(At,this,n)}function Ht(){}function qt(t){return Vt.apply(this,arguments)}function Vt(){return(Vt=(0,c.A)(p().mark((function t(e){var n,r,i,o,a,s,u,c,l,f,h=this;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,e;case 1:if(r=t.sent,i=r.index,o=r.src,a=r.anchor,s=r.onLoad,u=r.select,x(ct,this,i),!o){t.next=3;break}return c=A(Et,this,Ot).call(this),l=function(t){if(t.head){var e=t.createElement("style");t.head.prepend(e);var n=t.createElement("style");t.head.append(n),k(pt,h).set(t,[e,n])}null==s||s({doc:t,index:i})},f=A(Et,this,Mt).bind(this),t.next=2,c.load(o,l,f);case 2:this.dispatchEvent(new CustomEvent("create-overlayer",{detail:{doc:c.document,index:i,attach:function(t){return c.overlayer=t}}})),x(ot,this,c);case 3:return t.next=4,this.scrollToAnchor(null!==(n="function"==typeof a?a(k(ot,this).document):a)&&void 0!==n?n:0,u);case 4:case"end":return t.stop()}}),t,this)})))).apply(this,arguments)}function $t(t){return t>=0&&t<=this.sections.length-1}function Gt(t){return Xt.apply(this,arguments)}function Xt(){return(Xt=(0,c.A)(p().mark((function t(e){var n,r,i,o,a,s=this;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.index,r=e.anchor,i=e.select,n!==k(ct,this)){t.next=2;break}return t.next=1,A(Et,this,qt).call(this,{index:n,anchor:r,select:i});case 1:t.next=3;break;case 2:return o=k(ct,this),a=function(t){var e,n;null===(e=s.sections[o])||void 0===e||null===(n=e.unload)||void 0===n||n.call(e),s.setStyles(k(dt,s)),s.dispatchEvent(new CustomEvent("load",{detail:t}))},t.next=3,A(Et,this,qt).call(this,Promise.resolve(this.sections[n].load()).then((function(t){return{index:n,src:t,anchor:r,onLoad:a,select:i}})).catch((function(t){return console.warn(t),console.warn(new Error("Failed to load section ".concat(n))),{}})));case 3:case"end":return t.stop()}}),t,this)})))).apply(this,arguments)}function Yt(t){if(!k(ot,this))return!0;if(this.scrolled)return!(this.start>0)||A(Et,this,Ft).call(this,Math.max(0,this.start-(null!=t?t:this.size)),null,{animate:!0});if(!this.atStart){var e=this.page-1;return A(Et,this,Dt).call(this,e,"page",{animate:!0}).then((function(){return e<=0}))}}function Kt(t){if(!k(ot,this))return!0;if(this.scrolled)return!(this.viewSize-this.end>2)||A(Et,this,Ft).call(this,Math.min(this.viewSize,t?this.start+t:this.end),null,{animate:!0});if(!this.atEnd){var e=this.page+1,n=this.pages;return A(Et,this,Dt).call(this,e,"page",{animate:!0}).then((function(){return e>=n-1}))}}function Jt(t){for(var e=k(ct,this)+t;A(Et,this,$t).call(this,e);e+=t){var n;if("no"!==(null===(n=this.sections[e])||void 0===n?void 0:n.linear))return e}}function Zt(t,e){return Qt.apply(this,arguments)}function Qt(){return(Qt=(0,c.A)(p().mark((function t(e,n){var r,i;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return x(ht,this,!0),r=-1===e,t.next=1,r?A(Et,this,Yt).call(this,n):A(Et,this,Kt).call(this,n);case 1:if(!(i=t.sent)){t.next=2;break}return t.next=2,A(Et,this,Gt).call(this,{index:A(Et,this,Jt).call(this,e),anchor:r?function(){return 1}:function(){return 0}});case 2:if(!i&&this.hasAttribute("animated")){t.next=3;break}return t.next=3,S(100);case 3:x(ht,this,!1);case 4:case"end":return t.stop()}}),t,this)})))).apply(this,arguments)}(0,u.A)(Tt,"observedAttributes",["flow","gap","top-margin","bottom-margin","background-color","max-inline-size","max-block-size","max-column-count","column-threshold","bgimg-url","bgimg-blur","bgimg-opacity","bgimg-fit"]),customElements.define("foliate-paginator",Tt)},57657:function(t,e,n){"use strict";var r,i,o,a=n(79039),s=n(94901),u=n(20034),c=n(2360),l=n(42787),f=n(36840),h=n(78227),d=n(96395),p=h("iterator"),v=!1;[].keys&&("next"in(o=[].keys())?(i=l(l(o)))!==Object.prototype&&(r=i):v=!0),!u(r)||a((function(){var t={};return r[p].call(t)!==t}))?r={}:d&&(r=c(r)),s(r[p])||f(r,p,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:v}},57696:function(t,e,n){"use strict";var r=n(91291),i=n(18014),o=RangeError;t.exports=function(t){if(void 0===t)return 0;var e=r(t),n=i(e);if(e!==n)throw new o("Wrong length or index");return n}},57829:function(t,e,n){"use strict";var r=n(68183).charAt;t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},58004:function(t,e,n){"use strict";var r=n(46518),i=n(79039),o=n(68750);r({target:"Set",proto:!0,real:!0,forced:!n(84916)("intersection",(function(t){return 2===t.size&&t.has(1)&&t.has(2)}))||i((function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))}))},{intersection:o})},58229:function(t,e,n){"use strict";var r=n(99590),i=RangeError;t.exports=function(t,e){var n=r(t);if(n%e)throw new i("Wrong offset");return n}},58242:function(t,e,n){"use strict";var r=n(69565),i=n(97751),o=n(78227),a=n(36840);t.exports=function(){var t=i("Symbol"),e=t&&t.prototype,n=e&&e.valueOf,s=o("toPrimitive");e&&!e[s]&&a(e,s,(function(t){return r(n,this)}),{arity:1})}},58319:function(t){"use strict";var e=Math.round;t.exports=function(t){var n=e(t);return n<0?0:n>255?255:255&n}},58429:function(t,e,n){"use strict";var r=n(79039),i=n(44576).RegExp,o=r((function(){var t=i("a","y");return t.lastIndex=2,null!==t.exec("abcd")})),a=o||r((function(){return!i("a","y").sticky})),s=o||r((function(){var t=i("^r","gy");return t.lastIndex=2,null!==t.exec("str")}));t.exports={BROKEN_CARET:s,MISSED_STICKY:a,UNSUPPORTED_Y:o}},58622:function(t,e,n){"use strict";var r=n(44576),i=n(94901),o=r.WeakMap;t.exports=i(o)&&/native code/.test(String(o))},58934:function(t,e,n){"use strict";var r=n(46518),i=n(53487);r({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==i},{trimLeft:i})},58940:function(t,e,n){"use strict";var r=n(46518),i=n(52703);r({global:!0,forced:parseInt!==i},{parseInt:i})},59089:function(t,e,n){"use strict";var r=n(46518),i=n(79504),o=Date,a=i(o.prototype.getTime);r({target:"Date",stat:!0},{now:function(){return a(new o)}})},59149:function(t,e,n){"use strict";var r=n(46518),i=n(2087),o=Math.abs;r({target:"Number",stat:!0},{isSafeInteger:function(t){return i(t)&&o(t)<=9007199254740991}})},59213:function(t,e,n){"use strict";var r=n(76080),i=n(79504),o=n(47055),a=n(48981),s=n(26198),u=n(1469),c=i([].push),l=function(t){var e=1===t,n=2===t,i=3===t,l=4===t,f=6===t,h=7===t,d=5===t||f;return function(p,v,g,y){for(var m,b,w=a(p),x=o(w),k=s(x),A=r(v,g),S=0,E=y||u,T=e?E(p,k):n||h?E(p,0):void 0;k>S;S++)if((d||S in x)&&(b=A(m=x[S],S,w),t))if(e)T[S]=b;else if(b)switch(t){case 3:return!0;case 5:return m;case 6:return S;case 2:c(T,m)}else switch(t){case 4:return!1;case 7:c(T,m)}return f?-1:i||l?l:T}};t.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}},59225:function(t,e,n){"use strict";var r,i,o,a,s=n(44576),u=n(18745),c=n(76080),l=n(94901),f=n(39297),h=n(79039),d=n(20397),p=n(67680),v=n(4055),g=n(22812),y=n(89544),m=n(38574),b=s.setImmediate,w=s.clearImmediate,x=s.process,k=s.Dispatch,A=s.Function,S=s.MessageChannel,E=s.String,T=0,_={},O="onreadystatechange";h((function(){r=s.location}));var M=function(t){if(f(_,t)){var e=_[t];delete _[t],e()}},C=function(t){return function(){M(t)}},L=function(t){M(t.data)},R=function(t){s.postMessage(E(t),r.protocol+"//"+r.host)};b&&w||(b=function(t){g(arguments.length,1);var e=l(t)?t:A(t),n=p(arguments,1);return _[++T]=function(){u(e,void 0,n)},i(T),T},w=function(t){delete _[t]},m?i=function(t){x.nextTick(C(t))}:k&&k.now?i=function(t){k.now(C(t))}:S&&!y?(a=(o=new S).port2,o.port1.onmessage=L,i=c(a.postMessage,a)):s.addEventListener&&l(s.postMessage)&&!s.importScripts&&r&&"file:"!==r.protocol&&!h(R)?(i=R,s.addEventListener("message",L,!1)):i=O in v("script")?function(t){d.appendChild(v("script"))[O]=function(){d.removeChild(this),M(t)}}:function(t){setTimeout(C(t),0)}),t.exports={set:b,clear:w}},59848:function(t,e,n){"use strict";n(86368),n(29309)},59904:function(t,e,n){"use strict";n(46518)({target:"Object",stat:!0,sham:!n(43724)},{create:n(2360)})},60193:function(t,e,n){"use strict";n(70511)("hasInstance")},60268:function(t,e,n){"use strict";var r=n(46518),i=n(77240);r({target:"String",proto:!0,forced:n(23061)("fontcolor")},{fontcolor:function(t){return i(this,"font","color",t)}})},60479:function(t,e,n){"use strict";n(10687)(Math,"Math",!0)},60511:function(t,e,n){"use strict";var r=n(60788),i=TypeError;t.exports=function(t){if(r(t))throw new i("The method doesn't accept regular expressions");return t}},60519:function(t,e,n){"use strict";function r(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(e,{A:function(){return r}})},60533:function(t,e,n){"use strict";var r=n(79504),i=n(18014),o=n(655),a=n(72333),s=n(67750),u=r(a),c=r("".slice),l=Math.ceil,f=function(t){return function(e,n,r){var a,f,h=o(s(e)),d=i(n),p=h.length,v=void 0===r?" ":o(r);return d<=p||""===v?h:((f=u(v,l((a=d-p)/v.length))).length>a&&(f=c(f,0,a)),t?h+f:f+h)}};t.exports={start:f(!1),end:f(!0)}},60605:function(t,e,n){"use strict";n(46518)({target:"Math",stat:!0},{fround:n(15617)})},60706:function(t,e,n){"use strict";var r=n(10350).PROPER,i=n(79039),o=n(47452);t.exports=function(t){return i((function(){return!!o[t]()||"​…᠎"!=="​…᠎"[t]()||r&&o[t].name!==t}))}},60739:function(t,e,n){"use strict";var r=n(46518),i=n(79039),o=n(48981),a=n(72777);r({target:"Date",proto:!0,arity:1,forced:i((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}))},{toJSON:function(t){var e=o(this),n=a(e,"number");return"number"!=typeof n||isFinite(n)?e.toISOString():null}})},60740:function(t,e,n){"use strict";n.r(e),n.d(e,{makeFB2:function(){return T}});var r=n(89394),i=n(10467),o=n(23029),a=n(92901),s=n(3453),u=n(54756),c=n.n(u);function l(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return f(t,e);var n={}.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)?f(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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 o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n img, section > img {\n display: block;\n margin: auto;\n}\n.title h1 {\n text-align: center;\n}\nbody > section > .title, body.notesBodyType > .title {\n margin: 3em 0;\n}\nbody.notesBodyType > section .title h1 {\n text-align: start;\n}\nbody.notesBodyType > section .title {\n margin: 1em 0;\n}\np {\n text-indent: 1em;\n margin: 0;\n}\n:not(p) + p, p:first-child {\n text-indent: 0;\n}\n.poem p {\n text-indent: 0;\n margin: 1em 0;\n}\n.text-author, .date {\n text-align: end;\n}\n.text-author:before {\n content: "—";\n}\ntable {\n border-collapse: collapse;\n}\ntd, th {\n padding: .25em;\n}\na[epub|type~="noteref"] {\n font-size: .75em;\n vertical-align: super;\n}\nbody:not(.notesBodyType) > .title, body:not(.notesBodyType) > .epigraph {\n margin: 3em 0;\n}\n'],{type:"text/css"})),E="data-foliate-id",T=function(){var t=(0,i.A)(c().mark((function t(e){var n,i,o,a,u,f,p,v,y,m,T,_,O;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n={},t.next=1,A(e);case 1:return i=t.sent,o=new k(i),u=function(t){return(0,r.A)(i.querySelectorAll(t))},f=function(t){var e=d(t.querySelector("nickname"));if(e)return e;var n=d(t.querySelector("first-name")),r=d(t.querySelector("middle-name")),i=d(t.querySelector("last-name"));return{name:[n,r,i].filter((function(t){return t})).join(" "),sortAs:i?[i,[n,r].filter((function(t){return t})).join(" ")].join(", "):null}},p=function(t){var e;return null!==(e=null==t?void 0:t.getAttribute("value"))&&void 0!==e?e:d(t)},v=(a=function(t){return i.querySelector(t)})("title-info annotation"),n.metadata={title:d(a("title-info book-title")),identifier:d(a("document-info id")),language:d(a("title-info lang")),author:u("title-info author").map(f),translator:u("title-info translator").map(f),producer:u("document-info author").map(f).concat(u("document-info program-used").map(d)),publisher:d(a("publish-info publisher")),published:p(a("title-info date")),modified:p(a("document-info date")),description:v?o.convert(v,{annotation:["div",b]}).innerHTML:null,subject:u("title-info genre").map(d)},a("coverpage image")?(y=x(a("coverpage image")),n.getCover=function(){return fetch(y).then((function(t){return t.blob()}))}):n.getCover=function(){return null},m=Array.from(i.querySelectorAll("body"),(function(t){var e=o.convert(t,{body:["body",w]});return[Array.from(e.children,(function(t){var e=[t].concat((0,r.A)(t.querySelectorAll("[id]"))).map((function(t){return t.id}));return{el:t,ids:e}})),e]})),T=[],_=m[0][0].map((function(t){var e=t.el;return{ids:t.ids,titles:Array.from(e.querySelectorAll(":scope > section > .title"),(function(t,e){return t.setAttribute(E,e),{title:d(t),index:e}})),el:e}})).concat(m.slice(1).map((function(t){var e=(0,s.A)(t,2),n=e[0],r=e[1],i=n.map((function(t){return t.ids})).flat();return r.classList.add("notesBodyType"),{ids:i,el:r,linear:"no"}}))).map((function(t){var e,n,r,i=t.ids,o=t.titles,a=t.el,s=t.linear,u=(r=a.outerHTML,'\n\n \n ').concat(r,"\n")),c=new Blob([u],{type:g}),l=URL.createObjectURL(c);return T.push(l),{ids:i,title:h(null!==(e=null===(n=a.querySelector(".title, .subtitle, p"))||void 0===n?void 0:n.textContent)&&void 0!==e?e:a.classList.contains("title")?a.textContent:""),titles:o,load:function(){return l},createDocument:function(){return(new DOMParser).parseFromString(u,g)},size:c.size-Array.from(a.querySelectorAll("[src]"),(function(t){var e,n;return null!==(e=null===(n=t.getAttribute("src"))||void 0===n?void 0:n.length)&&void 0!==e?e:0})).reduce((function(t,e){return t+e}),0),linear:s}})),O=new Map,n.sections=_.map((function(t,e){var n,r=t.ids,i=t.load,o=t.createDocument,a=t.size,s=t.linear,u=l(r);try{for(u.s();!(n=u.n()).done;){var c=n.value;c&&O.set(c,e)}}catch(t){u.e(t)}finally{u.f()}return{id:e,load:i,createDocument:o,size:a,linear:s}})),n.toc=_.map((function(t,e){var n=t.title,r=t.titles,i=e.toString();return{label:n,href:i,subitems:null!=r&&r.length?r.map((function(t){var e=t.title,n=t.index;return{label:e,href:"".concat(i,"#").concat(n)}})):null}})).filter((function(t){return t})),n.resolveHref=function(t){var e=t.split("#"),n=(0,s.A)(e,2),r=n[0],i=n[1];return r?{index:Number(r),anchor:function(t){return t.querySelector("[".concat(E,'="').concat(i,'"]'))}}:{index:O.get(i),anchor:function(t){return t.getElementById(i)}}},n.splitTOCHref=function(t){var e,n;return null!==(e=null==t||null===(n=t.split("#"))||void 0===n?void 0:n.map((function(t){return Number(t)})))&&void 0!==e?e:[]},n.getTOCFragment=function(t,e){return t.querySelector("[".concat(E,'="').concat(e,'"]'))},n.destroy=function(){for(var t=0,e=T;tc;)i(r,n=e[c++])&&(~a(l,n)||u(l,n));return l}},61833:function(t,e,n){"use strict";n(70511)("search")},62010:function(t,e,n){"use strict";var r=n(43724),i=n(10350).EXISTS,o=n(79504),a=n(62106),s=Function.prototype,u=o(s.toString),c=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,l=o(c.exec);r&&!i&&a(s,"name",{configurable:!0,get:function(){try{return l(c,u(this))[1]}catch(t){return""}}})},62062:function(t,e,n){"use strict";var r=n(46518),i=n(59213).map;r({target:"Array",proto:!0,forced:!n(70597)("map")},{map:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},62106:function(t,e,n){"use strict";var r=n(50283),i=n(24913);t.exports=function(t,e,n){return n.get&&r(n.get,e,{getter:!0}),n.set&&r(n.set,e,{setter:!0}),i.f(t,e,n)}},62248:function(t,e,n){"use strict";n.d(e,{EL:function(){return I},Lu:function(){return l},RK:function(){return d},UD:function(){return k},Xp:function(){return C},ap:function(){return x},ob:function(){return L},qg:function(){return y},wT:function(){return R},yT:function(){return M}});var r=n(3453),i=n(89394);function o(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return a(t,e);var n={}.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)?a(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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 o,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw o}}}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);nu.index)return 1;if(s.indexu.offset)return 1;if(s.offset=h)return{node:g,offset:h-p};p+=y}}catch(t){v.e(t)}finally{v.f()}},O=function(t,e,n){var r=t.parentNode,i=t.id,a=T(r,n),s=a.findIndex((function(e){return Array.isArray(e)?e.some((function(e){return e===t})):e===t})),u=a[s];if(Array.isArray(u)){var c,l=0,f=o(u);try{for(f.s();!(c=f.n()).done;){var h=c.value;if(h===t){l+=e;break}l+=h.nodeValue.length}}catch(t){f.e(t)}finally{f.f()}e=l}var d={id:i,index:s,offset:e};return(r!==t.ownerDocument.documentElement?O(r,null,n).concat(d):[d]).filter((function(t){return-1!==t.index}))},M=function(t,e){var n=t.startContainer,r=t.startOffset,i=t.endContainer,o=t.endOffset,a=O(n,r,e);return t.collapsed?w([a]):function(t,e){"string"==typeof t&&(t=y(t)),"string"==typeof e&&(e=y(e)),t=x(t),e=x(e,!0);for(var n=t[t.length-1],r=e[e.length-1],i=[],o=[],a=[],s=!0,u=Math.max(n.length,r.length),c=0;c20)throw new l("Incorrect fraction digits");if(w)return y(e,n);var r,i,s,c,x="";if(e<0&&(x="-",e=-e),0===e)i=0,r=m("0",n+1);else{var k=u(e);i=p(k);var A=v(10,i-n),S=g(e/A);2*e>=(2*S+1)*A&&(S+=1),S>=v(10,n+1)&&(S/=10,i+=1),r=f(S)}return 0!==n&&(r=b(r,0,1)+"."+b(r,1)),0===i?(s="+",c="0"):(s=i>0?"+":"-",c=f(d(i))),x+(r+"e")+s+c}})},62529:function(t){"use strict";t.exports=function(t,e){return{value:t,done:e}}},62953:function(t,e,n){"use strict";var r=n(44576),i=n(67400),o=n(79296),a=n(23792),s=n(66699),u=n(10687),c=n(78227)("iterator"),l=a.values,f=function(t,e){if(t){if(t[c]!==l)try{s(t,c,l)}catch(e){t[c]=l}if(u(t,e,!0),i[e])for(var n in a)if(t[n]!==a[n])try{s(t,n,a[n])}catch(e){t[n]=a[n]}}};for(var h in i)f(r[h]&&r[h].prototype,h);f(o,"DOMTokenList")},63463:function(t){"use strict";var e=TypeError;t.exports=function(t){if("string"==typeof t)return t;throw new e("Argument is not a string")}},63548:function(t,e,n){"use strict";var r=n(43724),i=n(62106),o=n(20034),a=n(13925),s=n(48981),u=n(67750),c=Object.getPrototypeOf,l=Object.setPrototypeOf,f=Object.prototype,h="__proto__";if(r&&c&&l&&!(h in f))try{i(f,h,{configurable:!0,get:function(){return c(s(this))},set:function(t){var e=u(this);a(t)&&o(e)&&l(e,t)}})}catch(t){}},63662:function(t,e,n){"use strict";function r(t,e){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},r(t,e)}n.d(e,{A:function(){return r}})},64117:function(t){"use strict";t.exports=function(t){return null==t}},64243:function(t,e,n){"use strict";n.d(e,{A:function(){return i}});var r=n(43145);function i(t){if(Array.isArray(t))return(0,r.A)(t)}},64346:function(t,e,n){"use strict";n(46518)({target:"Array",stat:!0},{isArray:n(34376)})},64444:function(t,e,n){"use strict";var r=n(46518),i=n(77782),o=Math.abs,a=Math.pow;r({target:"Math",stat:!0},{cbrt:function(t){var e=+t;return i(e)*a(o(e),1/3)}})},64449:function(t,e,n){"use strict";var r=n(97080),i=n(94402).has,o=n(25170),a=n(83789),s=n(38469),u=n(40507),c=n(9539);t.exports=function(t){var e=r(this),n=a(t);if(o(e)<=n.size)return!1!==s(e,(function(t){if(n.includes(t))return!1}),!0);var l=n.getIterator();return!1!==u(l,(function(t){if(i(e,t))return c(l,"normal",!1)}))}},64467:function(t,e,n){"use strict";n.d(e,{A:function(){return i}});var r=n(49922);function i(t,e,n){return(e=(0,r.A)(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},64601:function(t,e,n){"use strict";n(46518)({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})},64979:function(t,e,n){"use strict";var r=n(46518),i=n(44576),o=n(97751),a=n(6980),s=n(24913).f,u=n(39297),c=n(90679),l=n(23167),f=n(32603),h=n(55002),d=n(16193),p=n(43724),v=n(96395),g="DOMException",y=o("Error"),m=o(g),b=function(){c(this,w);var t=arguments.length,e=f(t<1?void 0:arguments[0]),n=f(t<2?void 0:arguments[1],"Error"),r=new m(e,n),i=new y(e);return i.name=g,s(r,"stack",a(1,d(i.stack,1))),l(r,this,b),r},w=b.prototype=m.prototype,x="stack"in new y(g),k="stack"in new m(1,2),A=m&&p&&Object.getOwnPropertyDescriptor(i,g),S=!(!A||A.writable&&A.configurable),E=x&&!S&&!k;r({global:!0,constructor:!0,forced:v||E},{DOMException:E?b:m});var T=o(g),_=T.prototype;if(_.constructor!==T)for(var O in v||s(_,"constructor",a(1,T)),h)if(u(h,O)){var M=h[O],C=M.s;u(T,C)||s(T,C,a(6,M.c))}},65070:function(t,e,n){"use strict";var r=n(46518),i=n(53250);r({target:"Math",stat:!0,forced:i!==Math.expm1},{expm1:i})},65213:function(t,e,n){"use strict";var r=n(44576),i=n(79039),o=r.RegExp,a=!i((function(){var t=!0;try{o(".","d")}catch(e){t=!1}var e={},n="",r=t?"dgimsy":"gimsy",i=function(t,r){Object.defineProperty(e,t,{get:function(){return n+=r,!0}})},a={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var s in t&&(a.hasIndices="d"),a)i(s,a[s]);return Object.getOwnPropertyDescriptor(o.prototype,"flags").get.call(e)!==r||n!==r}));t.exports={correct:a}},65746:function(t,e,n){"use strict";var r,i=n(92744),o=n(44576),a=n(79504),s=n(56279),u=n(3451),c=n(16468),l=n(91625),f=n(20034),h=n(91181).enforce,d=n(79039),p=n(58622),v=Object,g=Array.isArray,y=v.isExtensible,m=v.isFrozen,b=v.isSealed,w=v.freeze,x=v.seal,k=!o.ActiveXObject&&"ActiveXObject"in o,A=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},S=c("WeakMap",A,l),E=S.prototype,T=a(E.set);if(p)if(k){r=l.getConstructor(A,"WeakMap",!0),u.enable();var _=a(E.delete),O=a(E.has),M=a(E.get);s(E,{delete:function(t){if(f(t)&&!y(t)){var e=h(this);return e.frozen||(e.frozen=new r),_(this,t)||e.frozen.delete(t)}return _(this,t)},has:function(t){if(f(t)&&!y(t)){var e=h(this);return e.frozen||(e.frozen=new r),O(this,t)||e.frozen.has(t)}return O(this,t)},get:function(t){if(f(t)&&!y(t)){var e=h(this);return e.frozen||(e.frozen=new r),O(this,t)?M(this,t):e.frozen.get(t)}return M(this,t)},set:function(t,e){if(f(t)&&!y(t)){var n=h(this);n.frozen||(n.frozen=new r),O(this,t)?T(this,t,e):n.frozen.set(t,e)}else T(this,t,e);return this}})}else i&&d((function(){var t=w([]);return T(new S,t,1),!m(t)}))&&s(E,{set:function(t,e){var n;return g(t)&&(m(t)?n=w:b(t)&&(n=x)),T(this,t,e),n&&n(t),this}})},66119:function(t,e,n){"use strict";var r=n(25745),i=n(33392),o=r("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},66346:function(t,e,n){"use strict";var r=n(44576),i=n(79504),o=n(43724),a=n(77811),s=n(10350),u=n(66699),c=n(62106),l=n(56279),f=n(79039),h=n(90679),d=n(91291),p=n(18014),v=n(57696),g=n(15617),y=n(88490),m=n(42787),b=n(52967),w=n(84373),x=n(67680),k=n(23167),A=n(77740),S=n(10687),E=n(91181),T=s.PROPER,_=s.CONFIGURABLE,O="ArrayBuffer",M="DataView",C="prototype",L="Wrong index",R=E.getterFor(O),I=E.getterFor(M),P=E.set,j=r[O],F=j,N=F&&F[C],D=r[M],B=D&&D[C],z=Object.prototype,U=r.Array,W=r.RangeError,H=i(w),q=i([].reverse),V=y.pack,$=y.unpack,G=function(t){return[255&t]},X=function(t){return[255&t,t>>8&255]},Y=function(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]},K=function(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]},J=function(t){return V(g(t),23,4)},Z=function(t){return V(t,52,8)},Q=function(t,e,n){c(t[C],e,{configurable:!0,get:function(){return n(this)[e]}})},tt=function(t,e,n,r){var i=I(t),o=v(n),a=!!r;if(o+e>i.byteLength)throw new W(L);var s=i.bytes,u=o+i.byteOffset,c=x(s,u,u+e);return a?c:q(c)},et=function(t,e,n,r,i,o){var a=I(t),s=v(n),u=r(+i),c=!!o;if(s+e>a.byteLength)throw new W(L);for(var l=a.bytes,f=s+a.byteOffset,h=0;h>24)},setUint8:function(t,e){it(this,t,e<<24>>24)}},{unsafe:!0})}else N=(F=function(t){h(this,N);var e=v(t);P(this,{type:O,bytes:H(U(e),0),byteLength:e}),o||(this.byteLength=e,this.detached=!1)})[C],B=(D=function(t,e,n){h(this,B),h(t,N);var r=R(t),i=r.byteLength,a=d(e);if(a<0||a>i)throw new W("Wrong offset");if(a+(n=void 0===n?i-a:p(n))>i)throw new W("Wrong length");P(this,{type:M,buffer:t,byteLength:n,byteOffset:a,bytes:r.bytes}),o||(this.buffer=t,this.byteLength=n,this.byteOffset=a)})[C],o&&(Q(F,"byteLength",R),Q(D,"buffer",I),Q(D,"byteLength",I),Q(D,"byteOffset",I)),l(B,{getInt8:function(t){return tt(this,1,t)[0]<<24>>24},getUint8:function(t){return tt(this,1,t)[0]},getInt16:function(t){var e=tt(this,2,t,arguments.length>1&&arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=tt(this,2,t,arguments.length>1&&arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return K(tt(this,4,t,arguments.length>1&&arguments[1]))},getUint32:function(t){return K(tt(this,4,t,arguments.length>1&&arguments[1]))>>>0},getFloat32:function(t){return $(tt(this,4,t,arguments.length>1&&arguments[1]),23)},getFloat64:function(t){return $(tt(this,8,t,arguments.length>1&&arguments[1]),52)},setInt8:function(t,e){et(this,1,t,G,e)},setUint8:function(t,e){et(this,1,t,G,e)},setInt16:function(t,e){et(this,2,t,X,e,arguments.length>2&&arguments[2])},setUint16:function(t,e){et(this,2,t,X,e,arguments.length>2&&arguments[2])},setInt32:function(t,e){et(this,4,t,Y,e,arguments.length>2&&arguments[2])},setUint32:function(t,e){et(this,4,t,Y,e,arguments.length>2&&arguments[2])},setFloat32:function(t,e){et(this,4,t,J,e,arguments.length>2&&arguments[2])},setFloat64:function(t,e){et(this,8,t,Z,e,arguments.length>2&&arguments[2])}});S(F,O),S(D,M),t.exports={ArrayBuffer:F,DataView:D}},66412:function(t,e,n){"use strict";n(70511)("asyncIterator")},66651:function(t,e,n){"use strict";var r=n(94644),i=n(19617).indexOf,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("indexOf",(function(t){return i(o(this),t,arguments.length>1?arguments[1]:void 0)}))},66699:function(t,e,n){"use strict";var r=n(43724),i=n(24913),o=n(6980);t.exports=r?function(t,e,n){return i.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},66812:function(t,e,n){"use strict";var r=n(94644),i=n(18745),o=n(8379),a=r.aTypedArray;(0,r.exportTypedArrayMethod)("lastIndexOf",(function(t){var e=arguments.length;return i(o,a(this),e>1?[t,arguments[1]]:[t])}))},66933:function(t,e,n){"use strict";var r=n(79504),i=n(34376),o=n(94901),a=n(22195),s=n(655),u=r([].push);t.exports=function(t){if(o(t))return t;if(i(t)){for(var e=t.length,n=[],r=0;r=0?r:n+r;return i<0||i>=n?void 0:c(e,i)}})},67394:function(t,e,n){"use strict";var r=n(44576),i=n(46706),o=n(22195),a=r.ArrayBuffer,s=r.TypeError;t.exports=a&&i(a.prototype,"byteLength","get")||function(t){if("ArrayBuffer"!==o(t))throw new s("ArrayBuffer expected");return t.byteLength}},67400:function(t){"use strict";t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},67416:function(t,e,n){"use strict";var r=n(79039),i=n(78227),o=n(43724),a=n(96395),s=i("iterator");t.exports=!r((function(){var t=new URL("b?a=1&b=2&c=3","https://a"),e=t.searchParams,n=new URLSearchParams("a=1&a=2&b=3"),r="";return t.pathname="c%20d",e.forEach((function(t,n){e.delete("b"),r+=n+t})),n.delete("a",2),n.delete("b",void 0),a&&(!t.toJSON||!n.has("a",1)||n.has("a",2)||!n.has("a",void 0)||n.has("b"))||!e.size&&(a||!o)||!e.sort||"https://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[s]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("https://тест").host||"#%D0%B1"!==new URL("https://a#б").hash||"a1c3"!==r||"x"!==new URL("https://x",void 0).host}))},67438:function(t,e,n){"use strict";var r=n(46518),i=n(69565),o=n(79504),a=n(67750),s=n(655),u=n(79039),c=Array,l=o("".charAt),f=o("".charCodeAt),h=o([].join),d="".toWellFormed,p=d&&u((function(){return"1"!==i(d,1)}));r({target:"String",proto:!0,forced:p},{toWellFormed:function(){var t=s(a(this));if(p)return i(d,t);for(var e=t.length,n=c(e),r=0;r=56320||r+1>=e||56320!=(64512&f(t,r+1))?n[r]="�":(n[r]=l(t,r),n[++r]=l(t,r))}return h(n,"")}})},67680:function(t,e,n){"use strict";var r=n(79504);t.exports=r([].slice)},67750:function(t,e,n){"use strict";var r=n(64117),i=TypeError;t.exports=function(t){if(r(t))throw new i("Can't call method on "+t);return t}},67787:function(t){"use strict";var e=Math.log,n=Math.LN2;t.exports=Math.log2||function(t){return e(t)/n}},67945:function(t,e,n){"use strict";var r=n(46518),i=n(43724),o=n(96801).f;r({target:"Object",stat:!0,forced:Object.defineProperties!==o,sham:!i},{defineProperties:o})},67947:function(t,e,n){"use strict";n(70511)("species")},67979:function(t,e,n){"use strict";var r=n(28551);t.exports=function(){var t=r(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e}},68156:function(t,e,n){"use strict";var r=n(46518),i=n(60533).start;r({target:"String",proto:!0,forced:n(83063)},{padStart:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},68183:function(t,e,n){"use strict";var r=n(79504),i=n(91291),o=n(655),a=n(67750),s=r("".charAt),u=r("".charCodeAt),c=r("".slice),l=function(t){return function(e,n){var r,l,f=o(a(e)),h=i(n),d=f.length;return h<0||h>=d?t?"":void 0:(r=u(f,h))<55296||r>56319||h+1===d||(l=u(f,h+1))<56320||l>57343?t?s(f,h):r:t?c(f,h,h+2):l-56320+(r-55296<<10)+65536}};t.exports={codeAt:l(!1),charAt:l(!0)}},68750:function(t,e,n){"use strict";var r=n(97080),i=n(94402),o=n(25170),a=n(83789),s=n(38469),u=n(40507),c=i.Set,l=i.add,f=i.has;t.exports=function(t){var e=r(this),n=a(t),i=new c;return o(e)>n.size?u(n.getIterator(),(function(t){f(e,t)&&l(i,t)})):s(e,(function(t){n.includes(t)&&l(i,t)})),i}},69085:function(t,e,n){"use strict";var r=n(46518),i=n(44213);r({target:"Object",stat:!0,arity:2,forced:Object.assign!==i},{assign:i})},69479:function(t,e,n){"use strict";var r=n(43724),i=n(62106),o=n(65213),a=n(67979);r&&!o.correct&&(i(RegExp.prototype,"flags",{configurable:!0,get:a}),o.correct=!0)},69539:function(t,e,n){"use strict";var r=n(94644),i=n(59213).filter,o=n(29948),a=r.aTypedArray;(0,r.exportTypedArrayMethod)("filter",(function(t){var e=i(a(this),t,arguments.length>1?arguments[1]:void 0);return o(this,e)}))},69546:function(t,e,n){"use strict";var r=n(46518),i=n(77240);r({target:"String",proto:!0,forced:n(23061)("fontsize")},{fontsize:function(t){return i(this,"font","size",t)}})},69565:function(t,e,n){"use strict";var r=n(40616),i=Function.prototype.call;t.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},70081:function(t,e,n){"use strict";var r=n(69565),i=n(79306),o=n(28551),a=n(16823),s=n(50851),u=TypeError;t.exports=function(t,e){var n=arguments.length<2?s(t):e;if(i(n))return o(r(n,t));throw new u(a(t)+" is not iterable")}},70259:function(t,e,n){"use strict";var r=n(34376),i=n(26198),o=n(96837),a=n(76080),s=function(t,e,n,u,c,l,f,h){for(var d,p,v=c,g=0,y=!!f&&a(f,h);g0&&r(d)?(p=i(d),v=s(t,e,d,p,v,l-1)-1):(o(v+1),t[v]=d),v++),g++;return v};t.exports=s},70380:function(t,e,n){"use strict";var r=n(79504),i=n(79039),o=n(60533).start,a=RangeError,s=isFinite,u=Math.abs,c=Date.prototype,l=c.toISOString,f=r(c.getTime),h=r(c.getUTCDate),d=r(c.getUTCFullYear),p=r(c.getUTCHours),v=r(c.getUTCMilliseconds),g=r(c.getUTCMinutes),y=r(c.getUTCMonth),m=r(c.getUTCSeconds);t.exports=i((function(){return"0385-07-25T07:06:39.999Z"!==l.call(new Date(-50000000000001))}))||!i((function(){l.call(new Date(NaN))}))?function(){if(!s(f(this)))throw new a("Invalid time value");var t=this,e=d(t),n=v(t),r=e<0?"-":e>9999?"+":"";return r+o(u(e),r?6:4,0)+"-"+o(y(t)+1,2,0)+"-"+o(h(t),2,0)+"T"+o(p(t),2,0)+":"+o(g(t),2,0)+":"+o(m(t),2,0)+"."+o(n,3,0)+"Z"}:l},70511:function(t,e,n){"use strict";var r=n(19167),i=n(39297),o=n(1951),a=n(24913).f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});i(e,t)||a(e,t,{value:o.f(t)})}},70597:function(t,e,n){"use strict";var r=n(79039),i=n(78227),o=n(39519),a=i("species");t.exports=function(t){return o>=51||!r((function(){var e=[];return(e.constructor={})[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},70761:function(t,e,n){"use strict";n(46518)({target:"Math",stat:!0},{trunc:n(80741)})},71072:function(t,e,n){"use strict";var r=n(61828),i=n(88727);t.exports=Object.keys||function(t){return r(t,i)}},71137:function(t,e,n){"use strict";n(46518)({target:"Reflect",stat:!0},{ownKeys:n(35031)})},71658:function(t,e,n){"use strict";var r=n(46518),i=n(6469),o=n(96837),a=n(26198),s=n(35610),u=n(25397),c=n(91291),l=Array,f=Math.max,h=Math.min;r({target:"Array",proto:!0},{toSpliced:function(t,e){var n,r,i,d,p=u(this),v=a(p),g=s(t,v),y=arguments.length,m=0;for(0===y?n=r=0:1===y?(n=0,r=v-g):(n=y-2,r=h(f(c(e),0),v-g)),i=o(v+n-r),d=l(i);m1&&!d(arguments[1])?y(arguments[1]):void 0,i=r?r.transfer:void 0;void 0!==i&&(n=function(t,e){if(!p(t))throw new j("Transfer option cannot be converted to a sequence");var n=[];g(t,(function(t){$(n,y(t))}));for(var r,i,o,s,u,c=0,l=k(n),d=new W;c>>16)*a+o*(n&i>>>16)<<16>>>0)}})},72170:function(t,e,n){"use strict";var r=n(94644),i=n(59213).every,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("every",(function(t){return i(o(this),t,arguments.length>1?arguments[1]:void 0)}))},72248:function(t,e,n){"use strict";var r=n(79504),i=Map.prototype;t.exports={Map:Map,set:r(i.set),get:r(i.get),has:r(i.has),remove:r(i.delete),proto:i}},72333:function(t,e,n){"use strict";var r=n(91291),i=n(655),o=n(67750),a=RangeError;t.exports=function(t){var e=i(o(this)),n="",s=r(t);if(s<0||s===1/0)throw new a("Wrong number of repetitions");for(;s>0;(s>>>=1)&&(e+=e))1&s&&(n+=e);return n}},72652:function(t,e,n){"use strict";var r=n(76080),i=n(69565),o=n(28551),a=n(16823),s=n(44209),u=n(26198),c=n(1625),l=n(70081),f=n(50851),h=n(9539),d=TypeError,p=function(t,e){this.stopped=t,this.result=e},v=p.prototype;t.exports=function(t,e,n){var g,y,m,b,w,x,k,A=n&&n.that,S=!(!n||!n.AS_ENTRIES),E=!(!n||!n.IS_RECORD),T=!(!n||!n.IS_ITERATOR),_=!(!n||!n.INTERRUPTED),O=r(e,A),M=function(t){return g&&h(g,"normal"),new p(!0,t)},C=function(t){return S?(o(t),_?O(t[0],t[1],M):O(t[0],t[1])):_?O(t,M):O(t)};if(E)g=t.iterator;else if(T)g=t;else{if(!(y=f(t)))throw new d(a(t)+" is not iterable");if(s(y)){for(m=0,b=u(t);b>m;m++)if((w=C(t[m]))&&c(v,w))return w;return new p(!1)}g=l(t,y)}for(x=E?t.next:g.next;!(k=i(x,g)).done;){try{w=C(k.value)}catch(t){h(g,"throw",t)}if("object"==typeof w&&w&&c(v,w))return w}return new p(!1)}},72712:function(t,e,n){"use strict";var r=n(46518),i=n(80926).left,o=n(34598),a=n(39519);r({target:"Array",proto:!0,forced:!n(38574)&&a>79&&a<83||!o("reduce")},{reduce:function(t){var e=arguments.length;return i(this,t,e,e>1?arguments[1]:void 0)}})},72777:function(t,e,n){"use strict";var r=n(69565),i=n(20034),o=n(10757),a=n(55966),s=n(84270),u=n(78227),c=TypeError,l=u("toPrimitive");t.exports=function(t,e){if(!i(t)||o(t))return t;var n,u=a(t,l);if(u){if(void 0===e&&(e="default"),n=r(u,t,e),!i(n)||o(n))return n;throw new c("Can't convert object to primitive value")}return void 0===e&&(e="number"),s(t,e)}},72805:function(t,e,n){"use strict";var r=n(44576),i=n(79039),o=n(84428),a=n(94644).NATIVE_ARRAY_BUFFER_VIEWS,s=r.ArrayBuffer,u=r.Int8Array;t.exports=!a||!i((function(){u(1)}))||!i((function(){new u(-1)}))||!o((function(t){new u,new u(null),new u(1.5),new u(t)}),!0)||i((function(){return 1!==new u(new s(2),1,void 0).length}))},73506:function(t,e,n){"use strict";var r=n(13925),i=String,o=TypeError;t.exports=function(t){if(r(t))return t;throw new o("Can't set "+i(t)+" as a prototype")}},73738:function(t){function e(n){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},73772:function(t,e,n){"use strict";n(65746)},73893:function(t,e,n){"use strict";function r(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}n.d(e,{A:function(){return r}})},74423:function(t,e,n){"use strict";var r=n(46518),i=n(19617).includes,o=n(79039),a=n(6469);r({target:"Array",proto:!0,forced:o((function(){return!Array(1).includes()}))},{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),a("includes")},74488:function(t,e,n){"use strict";var r=n(67680),i=Math.floor,o=function(t,e){var n=t.length;if(n<8)for(var a,s,u=1;u0;)t[s]=t[--s];s!==u++&&(t[s]=a)}else for(var c=i(n/2),l=o(r(t,0,c),e),f=o(r(t,c),e),h=l.length,d=f.length,p=0,v=0;p1?arguments[1]:void 0,e>2?arguments[2]:void 0)}),c((function(){var t=0;return new Int8Array(2).fill({valueOf:function(){return t++}}),1!==t})))},75376:function(t,e,n){"use strict";n(46518)({target:"Math",stat:!0},{log10:n(49340)})},75546:function(t){function e(n,r,i,o){var a=Object.defineProperty;try{a({},"",{})}catch(n){a=0}t.exports=e=function(t,n,r,i){if(n)a?a(t,n,{value:r,enumerable:!i,configurable:!i,writable:!i}):t[n]=r;else{var o=function(n,r){e(t,n,(function(t){return this._invoke(n,r,t)}))};o("next",0),o("throw",1),o("return",2)}},t.exports.__esModule=!0,t.exports.default=t.exports,e(n,r,i,o)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},75854:function(t,e,n){"use strict";var r=n(72777),i=TypeError;t.exports=function(t){var e=r(t,"number");if("number"==typeof e)throw new i("Can't convert number to bigint");return BigInt(e)}},76031:function(t,e,n){"use strict";n(15575),n(24599)},76080:function(t,e,n){"use strict";var r=n(27476),i=n(79306),o=n(40616),a=r(r.bind);t.exports=function(t,e){return i(t),void 0===e?t:o?a(t,e):function(){return t.apply(e,arguments)}}},76382:function(t,e,n){"use strict";var r=n(69565),i=n(36840),o=n(55966),a=n(39297),s=n(78227),u=n(57657).IteratorPrototype,c=s("dispose");a(u,c)||i(u,c,(function(){var t=o(this,"return");t&&r(t,this)}))},76562:function(t,e,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(e,{A:function(){return r}})},76918:function(t,e,n){"use strict";var r=n(36840),i=n(77536),o=Error.prototype;o.toString!==i&&r(o,"toString",i)},76973:function(t,e,n){"use strict";n.r(e),n.d(e,{makeComicBook:function(){return u}});var r=n(10467),i=n(54756),o=n.n(i);function a(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return s(t,e);var n={}.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)?s(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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 o,a=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw o}}}}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n')],{type:"text/html"})),c.set(e,[n,r]),u.set(e,r),t.abrupt("return",r);case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),f=[".jpg",".jpeg",".png",".gif",".bmp",".webp",".svg",".jxl",".avif"],h=n.map((function(t){return t.filename})).filter((function(t){return f.some((function(e){return t.endsWith(e)}))})).sort();if(!h.length)throw new Error("No supported image files in archive");var d={getCover:function(){return i(h[0])}};return d.metadata={title:e.name},d.sections=h.map((function(t){return{id:t,load:function(){return l(t)},unload:function(){return function(t){var e,n;null===(e=c.get(t))||void 0===e||null===(n=e.forEach)||void 0===n||n.call(e,(function(t){return URL.revokeObjectURL(t)})),c.delete(t),u.delete(t)}(t)},size:s(t)}})),d.toc=h.map((function(t){return{label:t,href:t}})),d.rendition={layout:"pre-paginated"},d.resolveHref=function(t){return{index:d.sections.findIndex((function(e){return e.id===t}))}},d.splitTOCHref=function(t){return[t,null]},d.getTOCFragment=function(t){return t.documentElement},d.destroy=function(){var t,e=a(c.values());try{for(e.s();!(t=e.n()).done;){var n,r=a(t.value);try{for(r.s();!(n=r.n()).done;){var i=n.value;URL.revokeObjectURL(i)}}catch(t){r.e(t)}finally{r.f()}}}catch(t){e.e(t)}finally{e.f()}},d}},77240:function(t,e,n){"use strict";var r=n(79504),i=n(67750),o=n(655),a=/"/g,s=r("".replace);t.exports=function(t,e,n,r){var u=o(i(t)),c="<"+e;return""!==n&&(c+=" "+n+'="'+s(o(r),a,""")+'"'),c+">"+u+""}},77347:function(t,e,n){"use strict";var r=n(43724),i=n(69565),o=n(48773),a=n(6980),s=n(25397),u=n(56969),c=n(39297),l=n(35917),f=Object.getOwnPropertyDescriptor;e.f=r?f:function(t,e){if(t=s(t),e=u(e),l)try{return f(t,e)}catch(t){}if(c(t,e))return a(!i(o.f,t,e),t[e])}},77536:function(t,e,n){"use strict";var r=n(43724),i=n(79039),o=n(28551),a=n(32603),s=Error.prototype.toString,u=i((function(){if(r){var t=Object.create(Object.defineProperty({},"name",{get:function(){return this===t}}));if("true"!==s.call(t))return!0}return"2: 1"!==s.call({message:1,name:2})||"Error"!==s.call({})}));t.exports=u?function(){var t=o(this),e=a(t.name,"Error"),n=a(t.message);return e?n?e+": "+n:e:n}:s},77584:function(t,e,n){"use strict";var r=n(20034),i=n(66699);t.exports=function(t,e){r(e)&&"cause"in e&&i(t,"cause",e.cause)}},77629:function(t,e,n){"use strict";var r=n(96395),i=n(44576),o=n(39433),a="__core-js_shared__",s=t.exports=i[a]||o(a,{});(s.versions||(s.versions=[])).push({version:"3.43.0",mode:r?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.43.0/LICENSE",source:"https://github.com/zloirock/core-js"})},77691:function(t,e,n){"use strict";var r=n(46518),i=n(97751),o=n(79504),a=n(79306),s=n(67750),u=n(56969),c=n(72652),l=n(79039),f=Object.groupBy,h=i("Object","create"),d=o([].push);r({target:"Object",stat:!0,forced:!f||l((function(){return 1!==f("ab",(function(t){return t})).a.length}))},{groupBy:function(t,e){s(t),a(e);var n=h(null),r=0;return c(t,(function(t){var i=u(e(t,r++));i in n?d(n[i],t):n[i]=[t]})),n}})},77740:function(t,e,n){"use strict";var r=n(39297),i=n(35031),o=n(77347),a=n(24913);t.exports=function(t,e,n){for(var s=i(e),u=a.f,c=o.f,l=0;l1?arguments[1]:void 0),e}})},78459:function(t,e,n){"use strict";var r=n(46518),i=n(33904);r({global:!0,forced:parseFloat!==i},{parseFloat:i})},78553:function(t,e,n){"use strict";var r=n(46518),i=n(79039),o=n(53250),a=Math.abs,s=Math.exp,u=Math.E;r({target:"Math",stat:!0,forced:i((function(){return-2e-17!==Math.sinh(-2e-17)}))},{sinh:function(t){var e=+t;return a(e)<1?(o(e)-o(-e))/2:(s(e-1)-s(-e-1))*(u/2)}})},79039:function(t){"use strict";t.exports=function(t){try{return!!t()}catch(t){return!0}}},79296:function(t,e,n){"use strict";var r=n(4055)("span").classList,i=r&&r.constructor&&r.constructor.prototype;t.exports=i===Object.prototype?void 0:i},79306:function(t,e,n){"use strict";var r=n(94901),i=n(16823),o=TypeError;t.exports=function(t){if(r(t))return t;throw new o(i(t)+" is not a function")}},79432:function(t,e,n){"use strict";var r=n(46518),i=n(48981),o=n(71072);r({target:"Object",stat:!0,forced:n(79039)((function(){o(1)}))},{keys:function(t){return o(i(t))}})},79472:function(t,e,n){"use strict";var r,i=n(44576),o=n(18745),a=n(94901),s=n(84215),u=n(82839),c=n(67680),l=n(22812),f=i.Function,h=/MSIE .\./.test(u)||"BUN"===s&&((r=i.Bun.version.split(".")).length<3||"0"===r[0]&&(r[1]<3||"3"===r[1]&&"0"===r[2]));t.exports=function(t,e){var n=e?2:1;return h?function(r,i){var s=l(arguments.length,1)>n,u=a(r)?r:f(r),h=s?c(arguments,n):[],d=s?function(){o(u,this,h)}:u;return e?t(d,i):t(d)}:t}},79504:function(t,e,n){"use strict";var r=n(40616),i=Function.prototype,o=i.call,a=r&&i.bind.bind(o,o);t.exports=r?a:function(t){return function(){return o.apply(t,arguments)}}},79570:function(t,e,n){"use strict";n.d(e,{u:function(){return f}});var r=n(54756),i=n.n(r);function o(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return a(t,e);var n={}.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)?a(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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 o,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw o}}}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n0)break}return n},u=function(t,e){for(var n=[],r=e.nextNode();r;r=e.nextNode())n.push(r);return n},c=NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT|NodeFilter.SHOW_CDATA_SECTION,l=function(t){if(1===t.nodeType){var e=t.tagName.toLowerCase();return"script"===e||"style"===e||t.classList&&t.classList.contains("translated-text")?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_SKIP}return NodeFilter.FILTER_ACCEPT},f=i().mark((function t(e,n){var r,a,f,h,d,p,v,g,y,m,b;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:f=null!==(r=null!==(a=e.commonAncestorContainer)&&void 0!==a?a:e.body)&&void 0!==r?r:e,h=document.createTreeWalker(f,c,{acceptNode:l}),d=e.commonAncestorContainer?s:u,p=d(e,h),v=p.map((function(t){return t.nodeValue})),g=o(n(v,(function(t,e,n,r){var i=document.createRange();return i.setStart(p[t],e),i.setEnd(p[n],r),i}))),t.prev=1,g.s();case 2:if((y=g.n()).done){t.next=4;break}return m=y.value,t.next=3,m;case 3:t.next=2;break;case 4:t.next=6;break;case 5:t.prev=5,b=t.catch(1),g.e(b);case 6:return t.prev=6,g.f(),t.finish(6);case 7:case"end":return t.stop()}}),t,null,[[1,5,6,7]])}))},79577:function(t,e,n){"use strict";var r=n(39928),i=n(94644),o=n(18727),a=n(91291),s=n(75854),u=i.aTypedArray,c=i.getTypedArrayConstructor,l=i.exportTypedArrayMethod,f=function(){try{new Int8Array(1).with(2,{valueOf:function(){throw 8}})}catch(t){return 8===t}}(),h=f&&function(){try{new Int8Array(1).with(-.5,1)}catch(t){return!0}}();l("with",{with:function(t,e){var n=u(this),i=a(t),l=o(n)?s(e):+e;return r(n,c(n),i,l)}}.with,!f||h)},79739:function(t,e,n){"use strict";var r=n(97751),i="DOMException";n(10687)(r(i),i)},79978:function(t,e,n){"use strict";var r=n(46518),i=n(69565),o=n(79504),a=n(67750),s=n(94901),u=n(20034),c=n(60788),l=n(655),f=n(55966),h=n(61034),d=n(2478),p=n(78227),v=n(96395),g=p("replace"),y=TypeError,m=o("".indexOf),b=o("".replace),w=o("".slice),x=Math.max;r({target:"String",proto:!0},{replaceAll:function(t,e){var n,r,o,p,k,A,S,E,T,_,O=a(this),M=0,C="";if(u(t)){if((n=c(t))&&(r=l(a(h(t))),!~m(r,"g")))throw new y("`.replaceAll` does not allow non-global regexes");if(o=f(t,g))return i(o,t,O,e);if(v&&n)return b(l(O),t,e)}for(p=l(O),k=l(t),(A=s(e))||(e=l(e)),S=k.length,E=x(1,S),T=m(p,k);-1!==T;)_=A?l(e(k,T,p)):d(k,p,T,[],void 0,e),C+=w(p,M,T)+_,M=T+S,T=T+E>p.length?-1:m(p,k,T+E);return M0?n:e)(r)}},80747:function(t,e,n){"use strict";var r=n(66699),i=n(16193),o=n(24659),a=Error.captureStackTrace;t.exports=function(t,e,n,s){o&&(a?a(t,e):r(t,"stack",i(n,s)))}},80823:function(t,e,n){"use strict";n.r(e),n.d(e,{FixedLayout:function(){return R}});var r=n(10467),i=n(23029),o=n(92901),a=n(56822),s=n(53954),u=n(85501),c=n(28614),l=n(64467),f=n(3453),h=n(54756),d=n.n(h);function p(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(p=function(){return!!t})()}function v(t,e,n){g(t,e),e.set(t,n)}function g(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function y(t,e,n){return t.set(b(t,e),n),n}function m(t,e){return t.get(b(t,e))}function b(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}var w=function(t){var e;return null==t||null===(e=t.split(/[,;\s]/))||void 0===e||null===(e=e.filter((function(t){return t})))||void 0===e?void 0:e.map((function(t){return t.split("=").map((function(t){return t.trim()}))}))},x=function(t,e){var n;if("svg"===t.documentElement.localName){var r,i,o=null!==(r=null===(i=t.documentElement.getAttribute("viewBox"))||void 0===i?void 0:i.split(/\s/))&&void 0!==r?r:[],a=(0,f.A)(o,4);return{width:a[2],height:a[3]}}var s=w(null===(n=t.querySelector('meta[name="viewport"]'))||void 0===n?void 0:n.getAttribute("content"));if(s)return Object.fromEntries(s);if("string"==typeof e)return w(e);if(e)return e;var u=t.querySelector("img");return u?{width:u.naturalWidth,height:u.naturalHeight}:(console.warn(new Error("Missing viewport properties")),{width:1e3,height:2e3})},k=new WeakMap,A=new WeakMap,S=new WeakMap,E=new WeakMap,T=new WeakMap,_=new WeakMap,O=new WeakMap,M=new WeakMap,C=new WeakMap,L=new WeakSet,R=function(t){function e(){var t,n,r,o;(0,i.A)(this,e),n=this,r=e,r=(0,s.A)(r),function(t,e){g(t,e),e.add(t)}(t=(0,a.A)(n,p()?Reflect.construct(r,[],(0,s.A)(n).constructor):r.apply(n,o)),L),v(t,k,t.attachShadow({mode:"closed"})),v(t,A,new ResizeObserver((function(){return b(L,t,j).call(t)}))),v(t,S,void 0),v(t,E,-1),(0,l.A)(t,"defaultViewport",void 0),(0,l.A)(t,"spread",void 0),v(t,T,!1),v(t,_,void 0),v(t,O,void 0),v(t,M,void 0),v(t,C,void 0);var u=new CSSStyleSheet;return m(k,t).adoptedStyleSheets=[u],u.replaceSync(":host {\n width: 100%;\n height: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n }"),m(A,t).observe(t),t}return(0,u.A)(e,t),(0,o.A)(e,[{key:"open",value:function(t){this.book=t;var e=t.rendition;this.spread=null==e?void 0:e.spread,this.defaultViewport=null==e?void 0:e.viewport;var n="rtl"===t.dir,r=!n;this.rtl=n,"none"===(null==e?void 0:e.spread)?y(S,this,t.sections.map((function(t){return{center:t}}))):y(S,this,t.sections.reduce((function(t,e){var i=t[t.length-1],o=e.linear,a=e.pageSpread;if("no"===o)return t;var s=function(){var e={};return t.push(e),e};return"center"===a?(i.left||i.right?s():i).center=e:"left"===a?(i.center||i.left||r?s():i).left=e:"right"===a?(i.center||i.right||n?s():i).right=e:r?i.center||i.right?s().left=e:i.left?i.right=e:i.left=e:i.center||i.left?s().right=e:i.right?i.left=e:i.right=e,t}),[{}]))}},{key:"index",get:function(){var t,e,n,r=m(S,this)[m(E,this)],i=null!==(t=null==r?void 0:r.center)&&void 0!==t?t:"left"===this.side?null!==(e=r.left)&&void 0!==e?e:r.right:null!==(n=r.right)&&void 0!==n?n:r.left;return this.book.sections.indexOf(i)}},{key:"getSpreadOf",value:function(t){for(var e=m(S,this),n=0;nm(S,this).length-1)){t.next=1;break}return t.abrupt("return");case 1:if(e!==m(E,this)){t.next=2;break}return b(L,this,j).call(this,n),t.abrupt("return");case 2:if(y(E,this,e),!(i=m(S,this)[e]).center){t.next=5;break}return s=this.book.sections.indexOf(i.center),t.next=3,null===(o=i.center)||void 0===o||null===(a=o.load)||void 0===a?void 0:a.call(o);case 3:return u=t.sent,t.next=4,b(L,this,F).call(this,{center:{index:s,src:u}});case 4:t.next=8;break;case 5:return p=this.book.sections.indexOf(i.left),v=this.book.sections.indexOf(i.right),t.next=6,null===(c=i.left)||void 0===c||null===(l=c.load)||void 0===l?void 0:l.call(c);case 6:return g=t.sent,t.next=7,null===(f=i.right)||void 0===f||null===(h=f.load)||void 0===h?void 0:h.call(f);case 7:return w=t.sent,x={index:p,src:g},k={index:v,src:w},t.next=8,b(L,this,F).call(this,{left:x,right:k,side:n});case 8:b(L,this,z).call(this,r);case 9:case"end":return t.stop()}}),t,this)}))),function(t,e,n){return w.apply(this,arguments)})},{key:"select",value:(h=(0,r.A)(d().mark((function t(e){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,this.goTo(e);case 1:case"end":return t.stop()}}),t,this)}))),function(t){return h.apply(this,arguments)})},{key:"goTo",value:(f=(0,r.A)(d().mark((function t(e){var n,r,i,o,a,s;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=this.book,t.next=1,e;case 1:if(r=t.sent,i=n.sections[r.index]){t.next=2;break}return t.abrupt("return");case 2:return o=this.getSpreadOf(i),a=o.index,s=o.side,t.next=3,this.goToSpread(a,s);case 3:case"end":return t.stop()}}),t,this)}))),function(t){return f.apply(this,arguments)})},{key:"next",value:(c=(0,r.A)(d().mark((function t(){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(this.rtl?b(L,this,D).call(this):b(L,this,B).call(this))){t.next=1;break}b(L,this,z).call(this,"page"),t.next=2;break;case 1:return t.abrupt("return",this.goToSpread(m(E,this)+1,this.rtl?"right":"left","page"));case 2:case"end":return t.stop()}}),t,this)}))),function(){return c.apply(this,arguments)})},{key:"prev",value:(n=(0,r.A)(d().mark((function t(){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(this.rtl?b(L,this,B).call(this):b(L,this,D).call(this))){t.next=1;break}b(L,this,z).call(this,"page"),t.next=2;break;case 1:return t.abrupt("return",this.goToSpread(m(E,this)-1,this.rtl?"left":"right","page"));case 2:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"getContents",value:function(){return Array.from(m(k,this).querySelectorAll("iframe"),(function(t){return{doc:t.contentDocument}}))}},{key:"destroy",value:function(){m(A,this).unobserve(this)}}]);var n,c,f,h,w}((0,c.A)(HTMLElement));function I(t,e){return P.apply(this,arguments)}function P(){return(P=(0,r.A)(d().mark((function t(e,n){var r,i,o,a,s=this;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=n.index,i=n.src,o=document.createElement("div"),a=document.createElement("iframe"),o.append(a),Object.assign(a.style,{border:"0",display:"none",overflow:"hidden"}),a.setAttribute("sandbox","allow-same-origin allow-scripts"),a.setAttribute("scrolling","no"),a.setAttribute("part","filter"),m(k,this).append(o),i){t.next=1;break}return t.abrupt("return",{blank:!0,element:o,iframe:a});case 1:return t.abrupt("return",new Promise((function(t){var n=function(){a.removeEventListener("load",n);var i=a.contentDocument;i.position=e,s.dispatchEvent(new CustomEvent("load",{detail:{doc:i,index:r}}));var u=x(i,s.defaultViewport),c=u.width,l=u.height;t({element:o,iframe:a,width:parseFloat(c),height:parseFloat(l)})};a.addEventListener("load",n),a.src=i})));case 2:case"end":return t.stop()}}),t,this)})))).apply(this,arguments)}function j(){var t,e,n,r,i,o,a,s,u,c,l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:m(C,this);if(l){var f=null!==(t=m(_,this))&&void 0!==t?t:{},h=null!==(e=m(M,this))&&void 0!==e?e:m(O,this),d="left"===l?f:h,p=this.getBoundingClientRect(),v=p.width,g=p.height,b="both"!==this.spread&&"portrait"!==this.spread&&g>v;y(T,this,b);var w=null!==(n=f.width)&&void 0!==n?n:h.width,x=null!==(r=f.height)&&void 0!==r?r:h.height,k=b||m(M,this)?Math.min(v/(null!==(i=d.width)&&void 0!==i?i:w),g/(null!==(o=d.height)&&void 0!==o?o:x)):Math.min(v/((null!==(a=f.width)&&void 0!==a?a:w)+(null!==(s=h.width)&&void 0!==s?s:w)),g/Math.max(null!==(u=f.height)&&void 0!==u?u:x,null!==(c=h.height)&&void 0!==c?c:x)),A=function(t){var e=t.element,n=t.iframe,r=t.width,i=t.height,o=t.blank;n.contentDocument.scale=k,Object.assign(n.style,{width:"".concat(r,"px"),height:"".concat(i,"px"),transform:"scale(".concat(k,")"),transformOrigin:"top left",display:o?"none":"block"}),Object.assign(e.style,{width:"".concat((null!=r?r:w)*k,"px"),height:"".concat((null!=i?i:x)*k,"px"),overflow:"hidden",display:"block"}),b&&t!==d&&(e.style.display="none")};m(M,this)?A(m(M,this)):(A(f),A(h))}}function F(t){return N.apply(this,arguments)}function N(){return(N=(0,r.A)(d().mark((function t(e){var n,r,i,o,a,s,u,c,l,f,h,p,v,g,w,x;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.left,r=e.right,i=e.center,o=e.side,m(k,this).replaceChildren(),y(_,this,null),y(O,this,null),y(M,this,null),!i){t.next=2;break}return a=y,s=M,u=this,t.next=1,b(L,this,I).call(this,"center",i);case 1:c=t.sent,a(s,u,c),y(C,this,"center"),b(L,this,j).call(this),t.next=5;break;case 2:return l=y,f=_,h=this,t.next=3,b(L,this,I).call(this,"left",n);case 3:return p=t.sent,l(f,h,p),v=y,g=O,w=this,t.next=4,b(L,this,I).call(this,"right",r);case 4:x=t.sent,v(g,w,x),y(C,this,m(_,this).blank?"right":m(O,this).blank?"left":o),b(L,this,j).call(this);case 5:case"end":return t.stop()}}),t,this)})))).apply(this,arguments)}function D(){var t,e;if(!(m(M,this)||null!==(t=m(_,this))&&void 0!==t&&t.blank))return m(T,this)&&"none"===(null===(e=m(_,this))||void 0===e||null===(e=e.element)||void 0===e||null===(e=e.style)||void 0===e?void 0:e.display)?(m(O,this).element.style.display="none",m(_,this).element.style.display="block",y(C,this,"left"),!0):void 0}function B(){var t,e;if(!(m(M,this)||null!==(t=m(O,this))&&void 0!==t&&t.blank))return m(T,this)&&"none"===(null===(e=m(O,this))||void 0===e||null===(e=e.element)||void 0===e||null===(e=e.style)||void 0===e?void 0:e.display)?(m(_,this).element.style.display="none",m(O,this).element.style.display="block",y(C,this,"right"),!0):void 0}function z(t){this.dispatchEvent(new CustomEvent("relocate",{detail:{reason:t,range:null,index:this.index,fraction:0,size:1}}))}customElements.define("foliate-fxl",R)},80926:function(t,e,n){"use strict";var r=n(79306),i=n(48981),o=n(47055),a=n(26198),s=TypeError,u="Reduce of empty array with no initial value",c=function(t){return function(e,n,c,l){var f=i(e),h=o(f),d=a(f);if(r(n),0===d&&c<2)throw new s(u);var p=t?d-1:0,v=t?-1:1;if(c<2)for(;;){if(p in h){l=h[p],p+=v;break}if(p+=v,t?p<0:d<=p)throw new s(u)}for(;t?p>=0:d>p;p+=v)p in h&&(l=n(l,h[p],p,f));return l}};t.exports={left:c(!1),right:c(!0)}},80966:function(t,e,n){"use strict";n.d(e,{A:function(){return i}});var r=n(53954);function i(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=(0,r.A)(t)););return t}},81148:function(t,e,n){"use strict";var r=n(46518),i=n(69565),o=n(72652),a=n(79306),s=n(28551),u=n(1767),c=n(9539),l=n(84549)("every",TypeError);r({target:"Iterator",proto:!0,real:!0,forced:l},{every:function(t){s(this);try{a(t)}catch(t){c(this,"throw",t)}if(l)return i(l,this,t);var e=u(this),n=0;return!o(e,(function(e,r){if(!t(e,n++))return r()}),{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},81234:function(t,e,n){"use strict";n.d(e,{r:function(){return w}});var r=n(23029),i=n(92901),o=n(64467),a=n(10467),s=n(54756),u=n.n(s);function c(t,e,n){l(t,e),e.set(t,n)}function l(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function f(t,e){return t.get(d(t,e))}function h(t,e,n){return t.set(d(t,e),n),n}function d(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}var p={OFF:"off",TRANSLATION_ONLY:"translation-only",ORIGINAL_ONLY:"original-only",BILINGUAL:"bilingual"};"undefined"!=typeof window&&(window.TranslationMode=p);var v=function(){var t=(0,a.A)(u().mark((function t(e){var n,r;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=1,window.flutter_inappwebview.callHandler("translateText",e);case 1:return n=t.sent,t.abrupt("return",n||"Translation failed: ".concat(e));case 2:return t.prev=2,r=t.catch(0),console.error("Translation failed:",r),t.abrupt("return","Translation error: ".concat(e));case 3:case"end":return t.stop()}}),t,null,[[0,2]])})));return function(e){return t.apply(this,arguments)}}(),g=new WeakMap,y=new WeakMap,m=new WeakMap,b=new WeakSet,w=function(){return(0,i.A)((function t(){var e;(0,r.A)(this,t),l(this,e=b),e.add(this),c(this,g,p.OFF),(0,o.A)(this,"observedElements",new Set),c(this,y,new WeakMap),c(this,m,null),d(b,this,x).call(this)}),[{key:"setTranslationMode",value:(t=(0,a.A)(u().mark((function t(e){var n,r;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(Object.values(p).includes(e)){t.next=1;break}return console.warn("Invalid translation mode: ".concat(e)),t.abrupt("return");case 1:if(n=f(g,this),h(g,this,e),n===e){t.next=5;break}if(e!==p.OFF){t.next=2;break}d(b,this,L).call(this),t.next=5;break;case 2:if(n!==p.OFF){t.next=4;break}return t.next=3,d(b,this,M).call(this);case 3:t.next=5;break;case 4:d(b,this,L).call(this);case 5:window.reader&&window.reader.annotationsByValue&&(r=Array.from(window.reader.annotationsByValue.values())).length>0&&window.renderAnnotations(r);case 6:case"end":return t.stop()}}),t,this)}))),function(e){return t.apply(this,arguments)})},{key:"getTranslationMode",value:function(){return f(g,this)}},{key:"observeDocument",value:function(t){var e=this;t?d(b,this,k).call(this,t.body||t.documentElement).forEach((function(t){e.observedElements.has(t)||(f(m,e).observe(t),e.observedElements.add(t))})):console.warn("No document provided to observeDocument")}},{key:"clearTranslations",value:function(){var t=this;this.observedElements.forEach((function(e){e.querySelectorAll(".translated-text").forEach((function(t){return t.remove()})),d(b,t,O).call(t,e)})),f(m,this).disconnect(),this.observedElements.clear(),h(y,this,new WeakMap),d(b,this,x).call(this)}},{key:"destroy",value:function(){this.clearTranslations(),h(m,this,null)}}]);var t}();function x(){var t=this;h(m,this,new IntersectionObserver((function(e){e.forEach((function(e){e.isIntersecting&&d(b,t,A).call(t,e.target).catch((function(t){return console.warn("Translation failed in observer:",t)}))}))}),{rootMargin:"1280px",threshold:0}))}function k(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["pre","code","math","style","script"],n=[],r=function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!(i>15))for(var o=0,a=Array.from(t.children||[]);o0&&r(u,i+1)}}};return r(t),n}function A(t){return S.apply(this,arguments)}function S(){return(S=(0,a.A)(u().mark((function t(e){var n,r,i,o;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(f(g,this)!==p.OFF){t.next=1;break}return t.abrupt("return");case 1:if(!f(y,this).has(e)){t.next=2;break}return t.abrupt("return");case 2:if(r=null===(n=e.innerText)||void 0===n?void 0:n.trim()){t.next=3;break}return t.abrupt("return");case 3:return t.prev=3,t.next=4,v(r);case 4:i=t.sent,f(y,this).set(e,{originalText:r,translatedText:i}),d(b,this,E).call(this,e,i),t.next=6;break;case 5:t.prev=5,o=t.catch(3),console.warn("Translation failed:",o);case 6:case"end":return t.stop()}}),t,this,[[3,5]])})))).apply(this,arguments)}function E(t,e){var n=t.querySelector(".translated-text");n&&n.remove();var r=document.createElement("span");r.className="translated-text",r.setAttribute("data-translation-mark","1"),r.style.display="block",r.style.marginTop="0.2em",r.textContent=e,d(b,this,T).call(this,t,r),t.appendChild(r)}function T(t,e){if(f(y,this).get(t))switch(f(g,this)){case p.TRANSLATION_ONLY:d(b,this,_).call(this,t),e.style.display="block";break;case p.ORIGINAL_ONLY:d(b,this,O).call(this,t),e.style.display="none";break;case p.BILINGUAL:d(b,this,O).call(this,t),e.style.display="block";break;default:d(b,this,O).call(this,t),e.style.display="none"}}function _(t){t.hasAttribute("data-original-visibility")||(t.setAttribute("data-original-visibility","hidden"),Array.from(t.childNodes).forEach((function(t){if(t.nodeType===Node.ELEMENT_NODE){var e=t;e.classList&&e.classList.contains("translated-text")||e.hasAttribute("data-original-display")||(e.setAttribute("data-original-display",e.style.display||"initial"),e.style.display="none")}else t.nodeType===Node.TEXT_NODE&&(t.__originalContent||(t.__originalContent=t.textContent,t.textContent=""))}))),t.classList.add("translation-source-hidden")}function O(t){t.hasAttribute("data-original-visibility")&&(Array.from(t.childNodes).forEach((function(t){if(t.nodeType===Node.ELEMENT_NODE){var e=t;if((!e.classList||!e.classList.contains("translated-text"))&&e.hasAttribute("data-original-display")){var n=e.getAttribute("data-original-display");e.style.display="initial"===n?"":n,e.removeAttribute("data-original-display")}}else t.nodeType===Node.TEXT_NODE&&void 0!==t.__originalContent&&(t.textContent=t.__originalContent,delete t.__originalContent)})),t.removeAttribute("data-original-visibility")),t.classList.remove("translation-source-hidden")}function M(){return C.apply(this,arguments)}function C(){return(C=(0,a.A)(u().mark((function t(){var e,n=this;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=[],this.observedElements.forEach((function(t){var r=t.getBoundingClientRect(),i=r.top0;if(i&&!f(y,n).has(t)){var o=d(b,n,A).call(n,t).catch((function(t){console.warn("Force translation failed:",t)}));e.push(o)}else if(i&&f(y,n).has(t)){var a=t.querySelector(".translated-text");a&&d(b,n,T).call(n,t,a)}})),!(e.length>0)){t.next=1;break}return t.next=1,Promise.allSettled(e);case 1:case"end":return t.stop()}}),t,this)})))).apply(this,arguments)}function L(){var t=this;this.observedElements.forEach((function(e){var n=e.querySelector(".translated-text");n&&d(b,t,T).call(t,e,n)}))}},81278:function(t,e,n){"use strict";var r=n(46518),i=n(43724),o=n(35031),a=n(25397),s=n(77347),u=n(97040);r({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(t){for(var e,n,r=a(t),i=s.f,c=o(r),l={},f=0;c.length>f;)void 0!==(n=i(r,e=c[f++]))&&u(l,e,n);return l}})},81510:function(t,e,n){"use strict";var r=n(46518),i=n(97751),o=n(39297),a=n(655),s=n(25745),u=n(91296),c=s("string-to-symbol-registry"),l=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!u},{for:function(t){var e=a(t);if(o(c,e))return c[e];var n=i("Symbol")(e);return c[e]=n,l[n]=e,n}})},81630:function(t,e,n){"use strict";var r=n(79504),i=n(94644),o=r(n(57029)),a=i.aTypedArray;(0,i.exportTypedArrayMethod)("copyWithin",(function(t,e){return o(a(this),t,e,arguments.length>2?arguments[2]:void 0)}))},82003:function(t,e,n){"use strict";var r=n(46518),i=n(96395),o=n(10916).CONSTRUCTOR,a=n(80550),s=n(97751),u=n(94901),c=n(36840),l=a&&a.prototype;if(r({target:"Promise",proto:!0,forced:o,real:!0},{catch:function(t){return this.then(void 0,t)}}),!i&&u(a)){var f=s("Promise").prototype.catch;l.catch!==f&&c(l,"catch",f,{unsafe:!0})}},82284:function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}n.d(e,{A:function(){return r}})},82326:function(t,e,n){"use strict";var r=n(46518),i=Math.asinh,o=Math.log,a=Math.sqrt;r({target:"Math",stat:!0,forced:!(i&&1/i(0)>0)},{asinh:function t(e){var n=+e;return isFinite(n)&&0!==n?n<0?-t(-n):o(n+a(n*n+1)):n}})},82839:function(t,e,n){"use strict";var r=n(44576).navigator,i=r&&r.userAgent;t.exports=i?String(i):""},83063:function(t,e,n){"use strict";var r=n(82839);t.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(r)},83142:function(t,e,n){"use strict";n(70511)("matchAll")},83234:function(t,e,n){"use strict";n.r(e),n.d(e,{BlobReader:function(){return Me},BlobWriter:function(){return Ce},TextWriter:function(){return Le},ZipReader:function(){return cn},configure:function(){return Z}});var r=n(64467),i=n(96045),o=n(3453),a=n(10467),s=n(9417),u=n(82284),c=n(56822),l=n(53954),f=n(85501),h=n(92901),d=n(23029),p=n(56218),v=n(10600),g=n(54756),y=n.n(g);function m(t,e,n,r){var o=(0,i.A)((0,l.A)(1&r?t.prototype:t),e,n);return 2&r&&"function"==typeof o?function(t){return o.apply(n,t)}:o}function b(t,e,n){return e=(0,l.A)(e),(0,c.A)(t,w()?Reflect.construct(e,n||[],(0,l.A)(t).constructor):e.apply(t,n))}function w(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(w=function(){return!!t})()}function x(t){var e,n,r,i=2;for("undefined"!=typeof Symbol&&(n=Symbol.asyncIterator,r=Symbol.iterator);i--;){if(n&&null!=(e=t[n]))return e.call(t);if(r&&null!=(e=t[r]))return new k(e.call(t));n="@@asyncIterator",r="@@iterator"}throw new TypeError("Object is not async iterable")}function k(t){function e(t){if(Object(t)!==t)return Promise.reject(new TypeError(t+" is not an object."));var e=t.done;return Promise.resolve(t.value).then((function(t){return{value:t,done:e}}))}return k=function(t){this.s=t,this.n=t.next},k.prototype={s:null,n:null,next:function(){return e(this.n.apply(this.s,arguments))},return:function(t){var n=this.s.return;return void 0===n?Promise.resolve({value:t,done:!0}):e(n.apply(this.s,arguments))},throw:function(t){var n=this.s.return;return void 0===n?Promise.reject(t):e(n.apply(this.s,arguments))}},new k(t)}var A=-2,S=-3,E=-5,T=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],_=[96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,192,80,7,10,0,8,96,0,8,32,0,9,160,0,8,0,0,8,128,0,8,64,0,9,224,80,7,6,0,8,88,0,8,24,0,9,144,83,7,59,0,8,120,0,8,56,0,9,208,81,7,17,0,8,104,0,8,40,0,9,176,0,8,8,0,8,136,0,8,72,0,9,240,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,200,81,7,13,0,8,100,0,8,36,0,9,168,0,8,4,0,8,132,0,8,68,0,9,232,80,7,8,0,8,92,0,8,28,0,9,152,84,7,83,0,8,124,0,8,60,0,9,216,82,7,23,0,8,108,0,8,44,0,9,184,0,8,12,0,8,140,0,8,76,0,9,248,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,196,81,7,11,0,8,98,0,8,34,0,9,164,0,8,2,0,8,130,0,8,66,0,9,228,80,7,7,0,8,90,0,8,26,0,9,148,84,7,67,0,8,122,0,8,58,0,9,212,82,7,19,0,8,106,0,8,42,0,9,180,0,8,10,0,8,138,0,8,74,0,9,244,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,204,81,7,15,0,8,102,0,8,38,0,9,172,0,8,6,0,8,134,0,8,70,0,9,236,80,7,9,0,8,94,0,8,30,0,9,156,84,7,99,0,8,126,0,8,62,0,9,220,82,7,27,0,8,110,0,8,46,0,9,188,0,8,14,0,8,142,0,8,78,0,9,252,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,194,80,7,10,0,8,97,0,8,33,0,9,162,0,8,1,0,8,129,0,8,65,0,9,226,80,7,6,0,8,89,0,8,25,0,9,146,83,7,59,0,8,121,0,8,57,0,9,210,81,7,17,0,8,105,0,8,41,0,9,178,0,8,9,0,8,137,0,8,73,0,9,242,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,202,81,7,13,0,8,101,0,8,37,0,9,170,0,8,5,0,8,133,0,8,69,0,9,234,80,7,8,0,8,93,0,8,29,0,9,154,84,7,83,0,8,125,0,8,61,0,9,218,82,7,23,0,8,109,0,8,45,0,9,186,0,8,13,0,8,141,0,8,77,0,9,250,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,198,81,7,11,0,8,99,0,8,35,0,9,166,0,8,3,0,8,131,0,8,67,0,9,230,80,7,7,0,8,91,0,8,27,0,9,150,84,7,67,0,8,123,0,8,59,0,9,214,82,7,19,0,8,107,0,8,43,0,9,182,0,8,11,0,8,139,0,8,75,0,9,246,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,206,81,7,15,0,8,103,0,8,39,0,9,174,0,8,7,0,8,135,0,8,71,0,9,238,80,7,9,0,8,95,0,8,31,0,9,158,84,7,99,0,8,127,0,8,63,0,9,222,82,7,27,0,8,111,0,8,47,0,9,190,0,8,15,0,8,143,0,8,79,0,9,254,96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,193,80,7,10,0,8,96,0,8,32,0,9,161,0,8,0,0,8,128,0,8,64,0,9,225,80,7,6,0,8,88,0,8,24,0,9,145,83,7,59,0,8,120,0,8,56,0,9,209,81,7,17,0,8,104,0,8,40,0,9,177,0,8,8,0,8,136,0,8,72,0,9,241,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,201,81,7,13,0,8,100,0,8,36,0,9,169,0,8,4,0,8,132,0,8,68,0,9,233,80,7,8,0,8,92,0,8,28,0,9,153,84,7,83,0,8,124,0,8,60,0,9,217,82,7,23,0,8,108,0,8,44,0,9,185,0,8,12,0,8,140,0,8,76,0,9,249,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,197,81,7,11,0,8,98,0,8,34,0,9,165,0,8,2,0,8,130,0,8,66,0,9,229,80,7,7,0,8,90,0,8,26,0,9,149,84,7,67,0,8,122,0,8,58,0,9,213,82,7,19,0,8,106,0,8,42,0,9,181,0,8,10,0,8,138,0,8,74,0,9,245,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,205,81,7,15,0,8,102,0,8,38,0,9,173,0,8,6,0,8,134,0,8,70,0,9,237,80,7,9,0,8,94,0,8,30,0,9,157,84,7,99,0,8,126,0,8,62,0,9,221,82,7,27,0,8,110,0,8,46,0,9,189,0,8,14,0,8,142,0,8,78,0,9,253,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,195,80,7,10,0,8,97,0,8,33,0,9,163,0,8,1,0,8,129,0,8,65,0,9,227,80,7,6,0,8,89,0,8,25,0,9,147,83,7,59,0,8,121,0,8,57,0,9,211,81,7,17,0,8,105,0,8,41,0,9,179,0,8,9,0,8,137,0,8,73,0,9,243,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,203,81,7,13,0,8,101,0,8,37,0,9,171,0,8,5,0,8,133,0,8,69,0,9,235,80,7,8,0,8,93,0,8,29,0,9,155,84,7,83,0,8,125,0,8,61,0,9,219,82,7,23,0,8,109,0,8,45,0,9,187,0,8,13,0,8,141,0,8,77,0,9,251,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,199,81,7,11,0,8,99,0,8,35,0,9,167,0,8,3,0,8,131,0,8,67,0,9,231,80,7,7,0,8,91,0,8,27,0,9,151,84,7,67,0,8,123,0,8,59,0,9,215,82,7,19,0,8,107,0,8,43,0,9,183,0,8,11,0,8,139,0,8,75,0,9,247,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,207,81,7,15,0,8,103,0,8,39,0,9,175,0,8,7,0,8,135,0,8,71,0,9,239,80,7,9,0,8,95,0,8,31,0,9,159,84,7,99,0,8,127,0,8,63,0,9,223,82,7,27,0,8,111,0,8,47,0,9,191,0,8,15,0,8,143,0,8,79,0,9,255],O=[80,5,1,87,5,257,83,5,17,91,5,4097,81,5,5,89,5,1025,85,5,65,93,5,16385,80,5,3,88,5,513,84,5,33,92,5,8193,82,5,9,90,5,2049,86,5,129,192,5,24577,80,5,2,87,5,385,83,5,25,91,5,6145,81,5,7,89,5,1537,85,5,97,93,5,24577,80,5,4,88,5,769,84,5,49,92,5,12289,82,5,13,90,5,3073,86,5,193,192,5,24577],M=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],C=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,112,112],L=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577],R=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13];function I(){var t,e,n,r,i,o;function a(t,e,a,s,u,c,l,f,h,d,p){var v,g,y,m,b,w,x,k,A,T,_,O,M,C,L;T=0,b=a;do{n[t[e+T]]++,T++,b--}while(0!==b);if(n[0]==a)return l[0]=-1,f[0]=0,0;for(k=f[0],w=1;w<=15&&0===n[w];w++);for(x=w,kb&&(k=b),f[0]=k,C=1<O+k;){if(m++,L=(L=y-(O+=k))>k?k:L,(g=1<<(w=x-O))>v+1&&(g-=v+1,M=x,w1440)return S;i[m]=_=d[0],d[0]+=L,0!==m?(o[m]=b,r[0]=w,r[1]=k,w=b>>>O-k,r[2]=_-i[m-1]-w,h.set(r,3*(i[m-1]+w))):l[0]=_}for(r[1]=x-O,T>=a?r[0]=192:p[T]>>O;w>>=1)b^=w;for(b^=w,A=(1<257?(d==S?h.msg="oversubscribed distance tree":d==E?(h.msg="incomplete distance tree",d=S):-4!=d&&(h.msg="empty distance tree with lengths",d=S),d):0)}}function P(){var t,e,n,r,i=this,o=0,a=0,s=0,u=0,c=0,l=0,f=0,h=0,d=0,p=0;function v(t,e,n,r,i,o,a,s){var u,c,l,f,h,d,p,v,g,y,m,b,w,x,k,A;p=s.next_in_index,v=s.avail_in,h=a.bitb,d=a.bitk,y=(g=a.write)>=c[A+1],d-=c[A+1],16&f){for(f&=15,w=c[A+2]+(h&T[f]),h>>=f,d-=f;d<15;)v--,h|=(255&s.read_byte(p++))<>=c[A+1],d-=c[A+1],16&f){for(f&=15;d>=f,d-=f,y-=w,g>=x)g-(k=g-x)>0&&2>g-k?(a.win[g++]=a.win[k++],a.win[g++]=a.win[k++],w-=2):(a.win.set(a.win.subarray(k,k+2),g),g+=2,k+=2,w-=2);else{k=g-x;do{k+=a.end}while(k<0);if(w>(f=a.end-k)){if(w-=f,g-k>0&&f>g-k)do{a.win[g++]=a.win[k++]}while(0!=--f);else a.win.set(a.win.subarray(k,k+f),g),g+=f,k+=f,f=0;k=0}}if(g-k>0&&w>g-k)do{a.win[g++]=a.win[k++]}while(0!=--w);else a.win.set(a.win.subarray(k,k+w),g),g+=w,k+=w,w=0;break}if(64&f)return s.msg="invalid distance code",v+=w=d>>3<(w=s.avail_in-v)?d>>3:w,p-=w,d-=w<<3,a.bitb=h,a.bitk=d,s.avail_in=v,s.total_in+=p-s.next_in_index,s.next_in_index=p,a.write=g,S;u+=c[A+2],f=c[A=3*(l+(u+=h&T[f]))]}break}if(64&f)return 32&f?(v+=w=d>>3<(w=s.avail_in-v)?d>>3:w,p-=w,d-=w<<3,a.bitb=h,a.bitk=d,s.avail_in=v,s.total_in+=p-s.next_in_index,s.next_in_index=p,a.write=g,1):(s.msg="invalid literal/length code",v+=w=d>>3<(w=s.avail_in-v)?d>>3:w,p-=w,d-=w<<3,a.bitb=h,a.bitk=d,s.avail_in=v,s.total_in+=p-s.next_in_index,s.next_in_index=p,a.write=g,S);if(u+=c[A+2],0===(f=c[A=3*(l+(u+=h&T[f]))])){h>>=c[A+1],d-=c[A+1],a.win[g++]=c[A+2],y--;break}}else h>>=c[A+1],d-=c[A+1],a.win[g++]=c[A+2],y--}while(y>=258&&v>=10);return v+=w=d>>3<(w=s.avail_in-v)?d>>3:w,p-=w,d-=w<<3,a.bitb=h,a.bitk=d,s.avail_in=v,s.total_in+=p-s.next_in_index,s.next_in_index=p,a.write=g,0}i.init=function(i,o,a,s,u,c){t=0,f=i,h=o,n=a,d=s,r=u,p=c,e=null},i.proc=function(i,g,y){var m,b,w,x,k,E,_,O=0,M=0,C=0;for(C=g.next_in_index,x=g.avail_in,O=i.bitb,M=i.bitk,E=(k=i.write)=258&&x>=10&&(i.bitb=O,i.bitk=M,g.avail_in=x,g.total_in+=C-g.next_in_index,g.next_in_index=C,i.write=k,y=v(f,h,n,d,r,p,i,g),C=g.next_in_index,x=g.avail_in,O=i.bitb,M=i.bitk,E=(k=i.write)>>=e[1+(b=3*(a+(O&T[m])))],M-=e[b+1],0===(w=e[b])){u=e[b+2],t=6;break}if(16&w){c=15&w,o=e[b+2],t=2;break}if(!(64&w)){s=w,a=b/3+e[b+2];break}if(32&w){t=7;break}return t=9,g.msg="invalid literal/length code",y=S,i.bitb=O,i.bitk=M,g.avail_in=x,g.total_in+=C-g.next_in_index,g.next_in_index=C,i.write=k,i.inflate_flush(g,y);case 2:for(m=c;M>=m,M-=m,s=h,e=r,a=p,t=3;case 3:for(m=s;M>=e[1+(b=3*(a+(O&T[m])))],M-=e[b+1],16&(w=e[b])){c=15&w,l=e[b+2],t=4;break}if(!(64&w)){s=w,a=b/3+e[b+2];break}return t=9,g.msg="invalid distance code",y=S,i.bitb=O,i.bitk=M,g.avail_in=x,g.total_in+=C-g.next_in_index,g.next_in_index=C,i.write=k,i.inflate_flush(g,y);case 4:for(m=c;M>=m,M-=m,t=5;case 5:for(_=k-l;_<0;)_+=i.end;for(;0!==o;){if(0===E&&(k==i.end&&0!==i.read&&(E=(k=0)7&&(M-=8,x++,C--),i.write=k,y=i.inflate_flush(g,y),E=(k=i.write)t.avail_out&&(n=t.avail_out),0!==n&&e==E&&(e=0),t.avail_out-=n,t.total_out+=n,t.next_out.set(r.win.subarray(o,o+n),i),i+=n,(o+=n)==r.end&&(o=0,r.write==r.end&&(r.write=0),(n=r.write-o)>t.avail_out&&(n=t.avail_out),0!==n&&e==E&&(e=0),t.avail_out-=n,t.total_out+=n,t.next_out.set(r.win.subarray(o,o+n),i),i+=n,o+=n),t.next_out_index=i,r.read=o,e},r.proc=function(t,e){var p,v,g,y,m,b,w,x;for(y=t.next_in_index,m=t.avail_in,v=r.bitb,g=r.bitk,w=(b=r.write)>>1){case 0:v>>>=3,v>>>=p=7&(g-=3),g-=p,i=1;break;case 1:k=[],E=[],_=[[]],O=[[]],I.inflate_trees_fixed(k,E,_,O),l.init(k[0],E[0],_[0],0,O[0],0),v>>>=3,g-=3,i=6;break;case 2:v>>>=3,g-=3,i=3;break;case 3:return v>>>=3,g-=3,i=9,t.msg="invalid block type",e=S,r.bitb=v,r.bitk=g,t.avail_in=m,t.total_in+=y-t.next_in_index,t.next_in_index=y,r.write=b,r.inflate_flush(t,e)}break;case 1:for(;g<32;){if(0===m)return r.bitb=v,r.bitk=g,t.avail_in=m,t.total_in+=y-t.next_in_index,t.next_in_index=y,r.write=b,r.inflate_flush(t,e);e=0,m--,v|=(255&t.read_byte(y++))<>>16&65535)!=(65535&v))return i=9,t.msg="invalid stored block lengths",e=S,r.bitb=v,r.bitk=g,t.avail_in=m,t.total_in+=y-t.next_in_index,t.next_in_index=y,r.write=b,r.inflate_flush(t,e);o=65535&v,v=g=0,i=0!==o?2:0!==f?7:0;break;case 2:if(0===m)return r.bitb=v,r.bitk=g,t.avail_in=m,t.total_in+=y-t.next_in_index,t.next_in_index=y,r.write=b,r.inflate_flush(t,e);if(0===w&&(b==r.end&&0!==r.read&&(w=(b=0)m&&(p=m),p>w&&(p=w),r.win.set(t.read_buf(y,p),b),y+=p,m-=p,b+=p,w-=p,0!=(o-=p))break;i=0!==f?7:0;break;case 3:for(;g<14;){if(0===m)return r.bitb=v,r.bitk=g,t.avail_in=m,t.total_in+=y-t.next_in_index,t.next_in_index=y,r.write=b,r.inflate_flush(t,e);e=0,m--,v|=(255&t.read_byte(y++))<29||(p>>5&31)>29)return i=9,t.msg="too many length or distance symbols",e=S,r.bitb=v,r.bitk=g,t.avail_in=m,t.total_in+=y-t.next_in_index,t.next_in_index=y,r.write=b,r.inflate_flush(t,e);if(p=258+(31&p)+(p>>5&31),!n||n.length>>=14,g-=14,s=0,i=4;case 4:for(;s<4+(a>>>10);){for(;g<3;){if(0===m)return r.bitb=v,r.bitk=g,t.avail_in=m,t.total_in+=y-t.next_in_index,t.next_in_index=y,r.write=b,r.inflate_flush(t,e);e=0,m--,v|=(255&t.read_byte(y++))<>>=3,g-=3}for(;s<19;)n[j[s++]]=0;if(u[0]=7,0!=(p=d.inflate_trees_bits(n,u,c,h,t)))return(e=p)==S&&(n=null,i=9),r.bitb=v,r.bitk=g,t.avail_in=m,t.total_in+=y-t.next_in_index,t.next_in_index=y,r.write=b,r.inflate_flush(t,e);s=0,i=5;case 5:for(;!(s>=258+(31&(p=a))+(p>>5&31));){var P=void 0,F=void 0;for(p=u[0];g>>=p,g-=p,n[s++]=F;else{for(x=18==F?7:F-14,P=18==F?11:3;g>>=p)&T[x],v>>>=x,g-=x,(x=s)+P>258+(31&(p=a))+(p>>5&31)||16==F&&x<1)return n=null,i=9,t.msg="invalid bit length repeat",e=S,r.bitb=v,r.bitk=g,t.avail_in=m,t.total_in+=y-t.next_in_index,t.next_in_index=y,r.write=b,r.inflate_flush(t,e);F=16==F?n[x-1]:0;do{n[x++]=F}while(0!=--P);s=x}}if(c[0]=-1,C=[],L=[],R=[],(M=[])[0]=9,C[0]=6,p=a,0!=(p=d.inflate_trees_dynamic(257+(31&p),1+(p>>5&31),n,M,C,L,R,h,t)))return p==S&&(n=null,i=9),e=p,r.bitb=v,r.bitk=g,t.avail_in=m,t.total_in+=y-t.next_in_index,t.next_in_index=y,r.write=b,r.inflate_flush(t,e);l.init(M[0],C[0],h,L[0],h,R[0]),i=6;case 6:if(r.bitb=v,r.bitk=g,t.avail_in=m,t.total_in+=y-t.next_in_index,t.next_in_index=y,r.write=b,1!=(e=l.proc(r,t,e)))return r.inflate_flush(t,e);if(e=0,l.free(t),y=t.next_in_index,m=t.avail_in,v=r.bitb,g=r.bitk,w=(b=r.write)15?(t.inflateEnd(n),A):(t.wbits=r,n.istate.blocks=new F(n,1<>4)>i.wbits){i.mode=N,t.msg="invalid win size",i.marker=5;break}i.mode=1;case 1:if(0===t.avail_in)return n;if(n=e,t.avail_in--,t.total_in++,r=255&t.read_byte(t.next_in_index++),((i.method<<8)+r)%31!=0){i.mode=N,t.msg="incorrect header check",i.marker=5;break}if(!(32&r)){i.mode=7;break}i.mode=2;case 2:if(0===t.avail_in)return n;n=e,t.avail_in--,t.total_in++,i.need=(255&t.read_byte(t.next_in_index++))<<24&4278190080,i.mode=3;case 3:if(0===t.avail_in)return n;n=e,t.avail_in--,t.total_in++,i.need+=(255&t.read_byte(t.next_in_index++))<<16&16711680,i.mode=4;case 4:if(0===t.avail_in)return n;n=e,t.avail_in--,t.total_in++,i.need+=(255&t.read_byte(t.next_in_index++))<<8&65280,i.mode=5;case 5:return 0===t.avail_in?n:(n=e,t.avail_in--,t.total_in++,i.need+=255&t.read_byte(t.next_in_index++),i.mode=6,2);case 6:return i.mode=N,t.msg="need dictionary",i.marker=0,A;case 7:if((n=i.blocks.proc(t,n))==S){i.mode=N,i.marker=0;break}if(0==n&&(n=e),1!=n)return n;n=e,i.blocks.reset(t,i.was),i.mode=12;case 12:return t.avail_in=0,1;case N:return S;default:return A}},t.inflateSetDictionary=function(t,e,n){var r=0,i=n;if(!t||!t.istate||6!=t.istate.mode)return A;var o=t.istate;return i>=1<>>1^3988292384:nt>>>=1;tt[et]=nt}var it=function(){return(0,h.A)((function t(e){(0,d.A)(this,t),this.crc=e||-1}),[{key:"append",value:function(t){for(var e=0|this.crc,n=0,r=0|t.length;n>>8^tt[255&(e^t[n])];this.crc=e}},{key:"get",value:function(){return~this.crc}}])}(),ot=function(t){function e(){var t,n;(0,d.A)(this,e);var r=new it;return t=b(this,e,[{transform:function(t,e){r.append(t),e.enqueue(t)},flush:function(){var t=new Uint8Array(4);new DataView(t.buffer).setUint32(0,r.get()),n.value=t}}]),n=(0,s.A)(t),t}return(0,f.A)(e,t),(0,h.A)(e)}(TransformStream),at={concat:function(t,e){if(0===t.length||0===e.length)return t.concat(e);var n=t[t.length-1],r=at.getPartial(n);return 32===r?t.concat(e):at._shiftRight(e,r,0|n,t.slice(0,t.length-1))},bitLength:function(t){var e=t.length;if(0===e)return 0;var n=t[e-1];return 32*(e-1)+at.getPartial(n)},clamp:function(t,e){if(32*t.length0&&e&&(t[n-1]=at.partial(e,t[n-1]&2147483648>>e-1,1)),t},partial:function(t,e,n){return 32===t?e:(n?0|e:e<<32-t)+1099511627776*t},getPartial:function(t){return Math.round(t/1099511627776)||32},_shiftRight:function(t,e,n,r){for(void 0===r&&(r=[]);e>=32;e-=32)r.push(n),n=0;if(0===e)return r.concat(t);for(var i=0;i>>e),n=t[i]<<32-e;var o=t.length?t[t.length-1]:0,a=at.getPartial(o);return r.push(at.partial(e+a&31,e+a>32?n:r.pop(),1)),r}},st={bytes:{fromBits:function(t){for(var e,n=at.bitLength(t)/8,r=new Uint8Array(n),i=0;i>>24,e<<=8;return r},toBits:function(t){var e,n=[],r=0;for(e=0;e9007199254740991)throw new Error("Cannot hash more than 2^53 - 1 bits");for(var o=new Uint32Array(n),a=0,s=e.blockSize+r-(e.blockSize+r&e.blockSize-1);s<=i;s+=e.blockSize)e._block(o.subarray(16*a,16*(a+1))),a+=1;return n.splice(0,16*a),e}},{key:"finalize",value:function(){for(var t=this,e=t._buffer,n=t._h,r=(e=at.concat(e,[at.partial(1,1)])).length+2;15&r;r++)e.push(0);for(e.push(Math.floor(t._length/4294967296)),e.push(0|t._length);e.length;)t._block(e.splice(0,16));return t.reset(),n}},{key:"_f",value:function(t,e,n,r){return t<=19?e&n|~e&r:t<=39?e^n^r:t<=59?e&n|e&r|n&r:t<=79?e^n^r:void 0}},{key:"_S",value:function(t,e){return e<>>32-t}},{key:"_block",value:function(t){for(var e=this,n=e._h,r=Array(80),i=0;i<16;i++)r[i]=t[i];for(var o=n[0],a=n[1],s=n[2],u=n[3],c=n[4],l=0;l<=79;l++){l>=16&&(r[l]=e._S(1,r[l-3]^r[l-8]^r[l-14]^r[l-16]));var f=e._S(5,o)+e._f(l,a,s,u)+c+r[l]+e._key[Math.floor(l/20)]|0;c=u,u=s,s=e._S(30,a),a=o,o=f}n[0]=n[0]+o|0,n[1]=n[1]+a|0,n[2]=n[2]+s|0,n[3]=n[3]+u|0,n[4]=n[4]+c|0}}])}()},ct={aes:function(){return(0,h.A)((function t(e){(0,d.A)(this,t);var n=this;n._tables=[[[],[],[],[],[]],[[],[],[],[],[]]],n._tables[0][0][0]||n._precompute();var r,i,o,a=n._tables[0][4],s=n._tables[1],u=e.length,c=1;if(4!==u&&6!==u&&8!==u)throw new Error("invalid aes key size");for(n._key=[i=e.slice(0),o=[]],r=u;r<4*u+28;r++){var l=i[r-1];(r%u==0||8===u&&r%u==4)&&(l=a[l>>>24]<<24^a[l>>16&255]<<16^a[l>>8&255]<<8^a[255&l],r%u==0&&(l=l<<8^l>>>24^c<<24,c=c<<1^283*(c>>7))),i[r]=i[r-u]^l}for(var f=0;r;f++,r--){var h=i[3&f?r:r-4];o[f]=r<=4||f<4?h:s[0][a[h>>>24]]^s[1][a[h>>16&255]]^s[2][a[h>>8&255]]^s[3][a[255&h]]}}),[{key:"encrypt",value:function(t){return this._crypt(t,0)}},{key:"decrypt",value:function(t){return this._crypt(t,1)}},{key:"_precompute",value:function(){for(var t,e,n,r=this._tables[0],i=this._tables[1],o=r[4],a=i[4],s=[],u=[],c=0;c<256;c++)u[(s[c]=c<<1^283*(c>>7))^c]=c;for(var l=t=0;!o[l];l^=e||1,t=u[t]||1){var f=t^t<<1^t<<2^t<<3^t<<4;f=f>>8^255&f^99,o[l]=f,a[f]=l;for(var h=16843009*s[n=s[e=s[l]]]^65537*n^257*e^16843008*l,d=257*s[f]^16843008*f,p=0;p<4;p++)r[p][l]=d=d<<24^d>>>8,i[p][f]=h=h<<24^h>>>8}for(var v=0;v<5;v++)r[v]=r[v].slice(0),i[v]=i[v].slice(0)}},{key:"_crypt",value:function(t,e){if(4!==t.length)throw new Error("invalid aes block size");for(var n,r,i,o=this._key[e],a=o.length/4-2,s=[0,0,0,0],u=this._tables[e],c=u[0],l=u[1],f=u[2],h=u[3],d=u[4],p=t[0]^o[0],v=t[e?3:1]^o[1],g=t[2]^o[2],y=t[e?1:3]^o[3],m=4,b=0;b>>24]^l[v>>16&255]^f[g>>8&255]^h[255&y]^o[m],r=c[v>>>24]^l[g>>16&255]^f[y>>8&255]^h[255&p]^o[m+1],i=c[g>>>24]^l[y>>16&255]^f[p>>8&255]^h[255&v]^o[m+2],y=c[y>>>24]^l[p>>16&255]^f[v>>8&255]^h[255&g]^o[m+3],m+=4,p=n,v=r,g=i;for(var w=0;w<4;w++)s[e?3&-w:w]=d[p>>>24]<<24^d[v>>16&255]<<16^d[g>>8&255]<<8^d[255&y]^o[m++],n=p,p=v,v=g,g=y,y=n;return s}}])}()},lt={ctrGladman:function(){return(0,h.A)((function t(e,n){(0,d.A)(this,t),this._prf=e,this._initIv=n,this._iv=n}),[{key:"reset",value:function(){this._iv=this._initIv}},{key:"update",value:function(t){return this.calculate(this._prf,t,this._iv)}},{key:"incWord",value:function(t){if(255&~(t>>24))t+=1<<24;else{var e=t>>16&255,n=t>>8&255,r=255&t;255===e?(e=0,255===n?(n=0,255===r?r=0:++r):++n):++e,t=0,t+=e<<16,t+=n<<8,t+=r}return t}},{key:"incCounter",value:function(t){0===(t[0]=this.incWord(t[0]))&&(t[1]=this.incWord(t[1]))}},{key:"calculate",value:function(t,e,n){var r;if(!(r=e.length))return[];for(var i=at.bitLength(e),o=0;o>5)<<2,l=new ArrayBuffer(c),f=new DataView(l),h=0,d=at;for(e=st.bytes.toBits(e),u=1;h<(c||1);u++){for(i=o=t.encrypt(d.concat(e,[u])),a=1;ao&&(e=(new r).update(e).finalize());for(var a=0;a>16)&n)<<16)+(t=18e3*(65535&t)+(t>>16)&n)&n)/4294967296+.5)*(Math.random()>.5?1:-1)}},i=0;it.length){var n=t;(t=new Uint8Array(e)).set(n,0)}return t}(n,l-l%yt)),a=0;a<=l-yt;a+=yt){var f=Vt(Lt,Ht(e,a,a+yt));o&&u.update(f);var h=s.update(f);o||u.update(h),n.set(qt(Lt,h),a+r)}return t.pending=Ht(e,a),n}function zt(t,e,n,r){return Ut.apply(this,arguments)}function Ut(){return Ut=(0,a.A)(y().mark((function t(e,n,r,i){var o,s,u,c,l,f,h;return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.password=null,o=function(t){if("undefined"==typeof TextEncoder){t=unescape(encodeURIComponent(t));for(var e=new Uint8Array(t.length),n=0;n>>24]),a=~t.crcKey2.get(),t.keys=[r,i,a]}function Zt(t){var e=2|t.keys[2];return Qt(Math.imul(e,1^e)>>>8)}function Qt(t){return 255&t}function te(t){return 4294967295&t}var ee="deflate-raw",ne=function(t){function e(t,n){var r,i=n.chunkSize,o=n.CompressionStream,a=n.CompressionStreamNative;(0,d.A)(this,e),r=b(this,e,[{}]);var s,u,c=t.compressed,l=t.encrypted,f=t.useCompressionStream,h=t.zipCrypto,p=t.signed,v=t.level,g=r,y=ie(m(e,"readable",r,1));return l&&!h||!p||(y=se(y,s=new ot)),c&&(y=ae(y,f,{level:v,chunkSize:i},a,o)),l&&(y=se(y,h?new Gt(t):u=new Dt(t))),oe(g,y,(function(){var t;l&&!h&&(t=u.signature),l&&!h||!p||(t=new DataView(s.value.buffer).getUint32(0)),g.signature=t})),r}return(0,f.A)(e,t),(0,h.A)(e)}(TransformStream),re=function(t){function e(t,n){var r,i=n.chunkSize,o=n.DecompressionStream,a=n.DecompressionStreamNative;(0,d.A)(this,e),r=b(this,e,[{}]);var s,u=t.zipCrypto,c=t.encrypted,l=t.signed,f=t.signature,h=t.compressed,p=t.useCompressionStream,v=ie(m(e,"readable",r,1));return c&&(v=se(v,u?new $t(t):new Nt(t))),h&&(v=ae(v,p,{chunkSize:i},a,o)),c&&!u||!l||(v=se(v,s=new ot)),oe(r,v,(function(){if((!c||u)&&l){var t=new DataView(s.value.buffer);if(f!=t.getUint32(0,!1))throw new Error(pt)}})),r}return(0,f.A)(e,t),(0,h.A)(e)}(TransformStream);function ie(t){return se(t,new TransformStream({transform:function(t,e){t&&t.length&&e.enqueue(t)}}))}function oe(t,e,n){e=se(e,new TransformStream({flush:n})),Object.defineProperty(t,"readable",{get:function(){return e}})}function ae(t,e,n,r,i){try{t=se(t,new(e&&r?r:i)(ee,n))}catch(r){if(!e)throw r;t=se(t,new i(ee,n))}return t}function se(t,e){return t.pipeThrough(e)}var ue="data",ce="inflate",le=function(t){function e(t,n){var r;(0,d.A)(this,e);var i,o=r=b(this,e,[{}]),a=t.codecType;a.startsWith("deflate")?i=ne:a.startsWith(ce)&&(i=re);var s=0,u=new i(t,n),c=m(e,"readable",r,1),l=new TransformStream({transform:function(t,e){t&&t.length&&(s+=t.length,e.enqueue(t))},flush:function(){var t=u.signature;Object.assign(o,{signature:t,size:s})}});return Object.defineProperty(o,"readable",{get:function(){return c.pipeThrough(u).pipeThrough(l)}}),r}return(0,f.A)(e,t),(0,h.A)(e)}(TransformStream),fe=("undefined"==typeof Worker?"undefined":(0,u.A)(Worker))!=$,he=(0,h.A)((function t(e,n,r,i){var o=n.readable,a=n.writable,s=r.options,u=r.config,c=r.streamOptions,l=r.useWebWorkers,f=r.transferStreams,h=r.scripts;(0,d.A)(this,t);var p=c.signal;return Object.assign(e,{busy:!0,readable:o.pipeThrough(new de(o,c,u),{signal:p}),writable:a,options:Object.assign({},s),scripts:h,transferStreams:f,terminate:function(){var t=e.worker,n=e.busy;t&&!n&&(t.terminate(),e.interface=null)},onTaskFinished:function(){e.busy=!1,i(e)}}),(l&&fe?ye:ge)(e,u)})),de=function(t){function e(t,n,r){var i=n.onstart,o=n.onprogress,s=n.size,u=n.onend,c=r.chunkSize;(0,d.A)(this,e);var l=0;return b(this,e,[{start:function(){i&&pe(i,s)},transform:function(t,e){return(0,a.A)(y().mark((function n(){return y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(l+=t.length,!o){n.next=1;break}return n.next=1,pe(o,l,s);case 1:e.enqueue(t);case 2:case"end":return n.stop()}}),n)})))()},flush:function(){t.size=l,u&&pe(u,l)}},{highWaterMark:1,size:function(){return c}}])}return(0,f.A)(e,t),(0,h.A)(e)}(TransformStream);function pe(t){return ve.apply(this,arguments)}function ve(){return ve=(0,a.A)(y().mark((function t(e){var n,r,i,o=arguments;return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(t.prev=0,n=o.length,r=new Array(n>1?n-1:0),i=1;iu?e.close():i.chunkOffset+=n;case 2:case"end":return o.stop()}}),o)})))()}});return r}}])}(_e),Me=function(t){function e(t){var n;return(0,d.A)(this,e),n=b(this,e),Object.assign((0,s.A)(n),{blob:t,size:t.size}),n}return(0,f.A)(e,t),(0,h.A)(e,[{key:"readUint8Array",value:(n=(0,a.A)(y().mark((function t(e,n){var r,i,o,a;return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=this,i=e+n,o=e||in&&(a=a.slice(e,i)),new Uint8Array(a)));case 2:case"end":return t.stop()}}),t,this)}))),function(t,e){return n.apply(this,arguments)})}]);var n}(Oe),Ce=function(t){function e(t){var n;(0,d.A)(this,e),n=b(this,e);var r=new TransformStream,i=[];return t&&i.push(["Content-Type",t]),Object.defineProperty(n,Te,{get:function(){return r.writable}}),n.blob=new Response(r.readable,{headers:i}).blob(),n}return(0,f.A)(e,t),(0,h.A)(e,[{key:"getData",value:function(){return this.blob}}])}(_e),Le=function(t){function e(t){var n;return(0,d.A)(this,e),n=b(this,e,[t]),Object.assign((0,s.A)(n),{encoding:t,utf8:!t||"utf-8"==t.toLowerCase()}),n}return(0,f.A)(e,t),(0,h.A)(e,[{key:"getData",value:(n=(0,a.A)(y().mark((function t(){var n,r,i,o;return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=this.encoding,r=this.utf8,t.next=1,m(e,"getData",this,3)([]);case 1:if(!(i=t.sent).text||!r){t.next=2;break}return t.abrupt("return",i.text());case 2:return o=new FileReader,t.abrupt("return",new Promise((function(t,e){Object.assign(o,{onload:function(e){var n=e.target;return t(n.result)},onerror:function(){return e(o.error)}}),o.readAsText(i,n)})));case 3:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})}]);var n}(Ce),Re=function(t){function e(t){var n;return(0,d.A)(this,e),(n=b(this,e)).readers=t,n}return(0,f.A)(e,t),(0,h.A)(e,[{key:"init",value:(r=(0,a.A)(y().mark((function t(){var n,r;return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=(n=this).readers,n.lastDiskNumber=0,n.lastDiskOffset=0,t.next=1,Promise.all(r.map(function(){var t=(0,a.A)(y().mark((function t(e,i){return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,e.init();case 1:i!=r.length-1&&(n.lastDiskOffset+=e.size),n.size+=e.size;case 2:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}()));case 1:m(e,"init",this,3)([]);case 2:case"end":return t.stop()}}),t,this)}))),function(){return r.apply(this,arguments)})},{key:"readUint8Array",value:(n=(0,a.A)(y().mark((function t(e,n){var r,i,o,a,s,u,c,l,f,h,d,p,v,g,m=arguments;return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(r=m.length>2&&void 0!==m[2]?m[2]:0,i=this,o=this.readers,-1==(s=r)&&(s=o.length-1),u=e;u>=o[s].size;)u-=o[s].size,s++;if(c=o[s],l=c.size,!(u+n<=l)){t.next=2;break}return t.next=1,Ne(c,u,n);case 1:a=t.sent,t.next=5;break;case 2:return f=l-u,a=new Uint8Array(n),h=a,t.next=3,Ne(c,u,f);case 3:return d=t.sent,h.set.call(h,d),p=a,t.next=4,i.readUint8Array(e+f,n-f,r);case 4:v=t.sent,g=f,p.set.call(p,v,g);case 5:return t.abrupt("return",(i.lastDiskNumber=Math.max(s,i.lastDiskNumber),a));case 6:case"end":return t.stop()}}),t,this)}))),function(t,e){return n.apply(this,arguments)})}]);var n,r}(Oe),Ie=function(t){function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4294967295;(0,d.A)(this,e);var i,o,s,u=n=b(this,e);Object.assign(u,{diskNumber:0,diskOffset:0,size:0,maxSize:r,availableSize:r});var c=new WritableStream({write:function(e){var n=this;return(0,a.A)(y().mark((function r(){var a,c,f;return y().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(a=u.availableSize,!s){r.next=6;break}if(!(e.length>=a)){r.next=4;break}return r.next=1,l(e.slice(0,a));case 1:return r.next=2,h();case 2:return u.diskOffset+=i.size,u.diskNumber++,s=null,r.next=3,n.write(e.slice(a));case 3:r.next=5;break;case 4:return r.next=5,l(e);case 5:r.next=10;break;case 6:return r.next=7,t.next();case 7:if(c=r.sent,f=c.value,!c.done||f){r.next=8;break}throw new Error("Writer iterator completed too soon");case 8:return(i=f).size=0,i.maxSize&&(u.maxSize=i.maxSize),u.availableSize=u.maxSize,r.next=9,Pe(i);case 9:return o=f.writable,s=o.getWriter(),r.next=10,n.write(e);case 10:case"end":return r.stop()}}),r)})))()},close:function(){return(0,a.A)(y().mark((function t(){return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,s.ready;case 1:return t.next=2,h();case 2:case"end":return t.stop()}}),t)})))()}});function l(t){return f.apply(this,arguments)}function f(){return f=(0,a.A)(y().mark((function t(e){var n;return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(n=e.length)){t.next=3;break}return t.next=1,s.ready;case 1:return t.next=2,s.write(e);case 2:i.size+=n,u.size+=n,u.availableSize-=n;case 3:case"end":return t.stop()}}),t)}))),f.apply(this,arguments)}function h(){return p.apply(this,arguments)}function p(){return(p=(0,a.A)(y().mark((function t(){return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o.size=i.size,t.next=1,s.close();case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return Object.defineProperty(u,Te,{get:function(){return c}}),n}return(0,f.A)(e,t),(0,h.A)(e)}(_e);function Pe(t,e){return je.apply(this,arguments)}function je(){return(je=(0,a.A)(y().mark((function t(e,n){return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.init||e.initialized){t.next=1;break}return t.next=1,e.init(n);case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Fe(t){return Array.isArray(t)&&(t=new Re(t)),t instanceof ReadableStream&&(t={readable:t}),t}function Ne(t,e,n,r){return t.readUint8Array(e,n,r)}var De="\0☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ ".split(""),Be=256==De.length;function ze(t,e){return e&&"cp437"==e.trim().toLowerCase()?function(t){if(Be){for(var e="",n=0;n1&&void 0!==arguments[1]?arguments[1]:{};(0,d.A)(this,t),Object.assign(this,{reader:Fe(e),options:n,config:J})}),[{key:"getEntriesGenerator",value:function(){var t=this;return(0,v.A)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return y().mark((function n(){var r,i,s,u,c,l,f,h,d,v,g,m,b,w,x,k,A,S,E,T,_,O,M,C,L,R,I,P,j,F,N,D,B,z,$,G,X,Y,K,J,Z,Q,tt,et,nt;return y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=(r=t).reader,s=r.config,n.next=1,(0,p.A)(Pe(i));case 1:if(i.size!==V&&i.readUint8Array){n.next=3;break}return z=Me,n.next=2,(0,p.A)(new Response(i.readable).blob());case 2:return $=n.sent,i=new z($),n.next=3,(0,p.A)(Pe(i));case 3:if(!(i.size<22)){n.next=4;break}throw new Error(en);case 4:return i.chunkSize=function(t){return Math.max(t.chunkSize,64)}(s),n.next=5,(0,p.A)(function(){var t=(0,a.A)(y().mark((function t(e,n,r,i,o){var s,u,c,l,f;return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return l=function(){return l=(0,a.A)(y().mark((function t(n){var o,a,u;return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=r-n,t.next=1,Ne(e,o,n);case 1:a=t.sent,u=a.length-i;case 2:if(!(u>=0)){t.next=4;break}if(a[u]!=s[0]||a[u+1]!=s[1]||a[u+2]!=s[2]||a[u+3]!=s[3]){t.next=3;break}return t.abrupt("return",{offset:o+u,buffer:a.slice(u,u+i).buffer});case 3:u--,t.next=2;break;case 4:case"end":return t.stop()}}),t)}))),l.apply(this,arguments)},c=function(t){return l.apply(this,arguments)},function(t,e,n){t.setUint32(0,n,!0)}(An(s=new Uint8Array(4)),0,n),u=i+o,t.next=1,c(i);case 1:if(f=t.sent){t.next=3;break}return t.next=2,c(Math.min(u,r));case 2:f=t.sent;case 3:return t.abrupt("return",f);case 4:case"end":return t.stop()}}),t)})));return function(e,n,r,i,o){return t.apply(this,arguments)}}()(i,101010256,i.size,22,1048560));case 5:if(u=n.sent){n.next=9;break}return G=xn,X=An,n.next=6,(0,p.A)(Ne(i,0,4));case 6:if(Y=n.sent,K=X(Y),134695760!=G(K)){n.next=7;break}J=new Error(rn),n.next=8;break;case 7:J=new Error("End of central directory not found");case 8:throw J;case 9:if(c=An(u),l=xn(c,12),f=xn(c,16),h=u.offset,d=wn(c,20),v=h+22+d,g=wn(c,4),m=i.lastDiskNumber||0,b=wn(c,6),w=wn(c,8),x=0,k=0,f!=U&&l!=U&&w!=W&&b!=W){n.next=16;break}return Z=An,n.next=10,(0,p.A)(Ne(i,u.offset-20,20));case 10:if(Q=n.sent,117853008==xn(A=Z(Q),0)){n.next=11;break}throw new Error("End of Zip64 central directory not found");case 11:return f=kn(A,8),n.next=12,(0,p.A)(Ne(i,f,56,-1));case 12:if(S=n.sent,E=An(S),T=u.offset-20-56,xn(E,0)==q||f==T){n.next=14;break}return _=f,x=(f=T)-_,n.next=13,(0,p.A)(Ne(i,f,56,-1));case 13:S=n.sent,E=An(S);case 14:if(xn(E,0)==q){n.next=15;break}throw new Error("End of Zip64 central directory locator not found");case 15:g==W&&(g=xn(E,16)),b==W&&(b=xn(E,20)),w==W&&(w=kn(E,32)),l==U&&(l=kn(E,40)),f-=l;case 16:if(m==g){n.next=17;break}throw new Error(rn);case 17:if(!(f<0||f>=i.size)){n.next=18;break}throw new Error(en);case 18:return O=0,n.next=19,(0,p.A)(Ne(i,f,l,b));case 19:if(M=n.sent,C=An(M),!l){n.next=21;break}if(L=u.offset-l,xn(C,O)==H||f==L){n.next=21;break}return R=f,x=(f=L)-R,n.next=20,(0,p.A)(Ne(i,f,l,b));case 20:M=n.sent,C=An(M);case 21:if(I=u.offset-f-(i.lastDiskOffset||0),!(l!=I&&I>=0)){n.next=23;break}return l=I,n.next=22,(0,p.A)(Ne(i,f,l,b));case 22:M=n.sent,C=An(M);case 23:if(!(f<0||f>=i.size)){n.next=24;break}throw new Error(en);case 24:P=gn(r,e,"filenameEncoding"),j=gn(r,e,"commentEncoding"),F=y().mark((function t(){var n,a,u,c,l,f,h,d,v,g,m,b,A,S,E,T,_,L,R,I;return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=new ln(i,s,r.options),xn(C,O)==H){t.next=1;break}throw new Error("Central directory header not found");case 1:return fn(n,C,O+6),a=Boolean(n.bitFlag.languageEncodingFlag),c=(u=O+46)+n.filenameLength,l=c+n.extraFieldLength,f=wn(C,O+4),h=M.subarray(u,c),d=wn(C,O+32),v=l+d,g=M.subarray(l,v),m=a,b=a,A=!(16&~bn(C,O+38)),S=xn(C,O+42)+x,Object.assign(n,{versionMadeBy:f,msDosCompatible:true,compressedSize:0,uncompressedSize:0,commentLength:d,directory:A,offset:S,diskNumberStart:wn(C,O+34),internalFileAttribute:wn(C,O+36),externalFileAttribute:xn(C,O+38),rawFilename:h,filenameUTF8:m,commentUTF8:b,rawExtraField:M.subarray(c,l)}),t.next=2,(0,p.A)(Promise.all([ze(h,m?on:P||an),ze(g,b?on:j||an)]));case 2:return E=t.sent,T=(0,o.A)(E,2),_=T[0],L=T[1],Object.assign(n,{rawComment:g,filename:_,comment:L,directory:A||_.endsWith("/")}),k=Math.max(S,k),t.next=3,(0,p.A)(hn(n,n,C,O+6));case 3:if((R=new tn(n)).getData=function(t,e){return n.getData(t,R,e)},O=v,!(I=e.onprogress)){t.next=7;break}return t.prev=4,t.next=5,(0,p.A)(I(N+1,w,new tn(n)));case 5:t.next=7;break;case 6:t.prev=6,t.catch(4);case 7:return t.next=8,R;case 8:case"end":return t.stop()}}),t,null,[[4,6]])})),N=0;case 25:if(!(N0)){n.next=29;break}return n.next=28,(0,p.A)(Ne(i,0,k));case 28:tt=n.sent,n.next=30;break;case 29:tt=new Uint8Array;case 30:r.prependedData=tt;case 31:if(!d){n.next=33;break}return n.next=32,(0,p.A)(Ne(i,h+22,d));case 32:et=n.sent,n.next=34;break;case 33:et=new Uint8Array;case 34:if(r.comment=et,!B){n.next=38;break}if(!(v0&&void 0!==l[0]?l[0]:{},n=[],r=!1,i=!1,t.prev=1,a=x(this.getEntriesGenerator(e));case 2:return t.next=3,a.next();case 3:if(!(r=!(s=t.sent).done)){t.next=5;break}u=s.value,n.push(u);case 4:r=!1,t.next=2;break;case 5:t.next=7;break;case 6:t.prev=6,c=t.catch(1),i=!0,o=c;case 7:if(t.prev=7,t.prev=8,!r||null==a.return){t.next=9;break}return t.next=9,a.return();case 9:if(t.prev=9,!i){t.next=10;break}throw o;case 10:return t.finish(9);case 11:return t.finish(7);case 12:return t.abrupt("return",n);case 13:case"end":return t.stop()}}),t,this,[[1,6,7,12],[8,,9,11]])}))),function(){return e.apply(this,arguments)})},{key:"close",value:(t=(0,a.A)(y().mark((function t(){return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)}))),function(){return t.apply(this,arguments)})}]);var t,e}(),ln=function(){return(0,h.A)((function t(e,n,r){(0,d.A)(this,t),Object.assign(this,{reader:e,config:n,options:r})}),[{key:"getData",value:(t=(0,a.A)(y().mark((function t(e,n){var r,i,s,c,l,f,h,d,p,v,g,m,b,w,x,k,A,S,E,T,_,O,M,C,L,R,I,P,j,F,N,D,B,z,U,W=arguments;return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=W.length>2&&void 0!==W[2]?W[2]:{},s=(i=this).reader,c=i.offset,l=i.diskNumberStart,f=i.extraFieldAES,h=i.compressionMethod,d=i.config,p=i.bitFlag,v=i.signature,g=i.rawLastModDate,m=i.uncompressedSize,b=i.compressedSize,w=n.localDirectory={},D=An,t.next=1,Ne(s,c,30,l);case 1:if(B=t.sent,x=D(B),k=(k=gn(i,r,"password"))&&k.length&&k,!f||99==f.originalCompressionMethod){t.next=2;break}throw new Error(nn);case 2:if(0==h||8==h){t.next=3;break}throw new Error(nn);case 3:if(67324752==xn(x,0)){t.next=4;break}throw new Error("Local file header not found");case 4:if(fn(w,x,4),!w.extraFieldLength){t.next=6;break}return t.next=5,Ne(s,c+30+w.filenameLength,w.extraFieldLength,l);case 5:z=t.sent,t.next=7;break;case 6:z=new Uint8Array;case 7:return w.rawExtraField=z,t.next=8,hn(i,w,x,4,!0);case 8:if(Object.assign(n,{lastAccessDate:w.lastAccessDate,creationDate:w.creationDate}),A=i.encrypted&&w.encrypted,S=A&&!f,!A){t.next=10;break}if(S||f.strength!==V){t.next=9;break}throw new Error("Encryption method not supported");case 9:if(k){t.next=10;break}throw new Error("File contains encrypted entry");case 10:return E=c+30+w.filenameLength+w.extraFieldLength,T=b,_=s.readable,Object.assign(_,{diskNumberStart:l,offset:E,size:T}),O=gn(i,r,"signal"),(M=gn(i,r,"checkPasswordOnly"))&&(e=new WritableStream),e=function(t){t.writable===V&&(0,u.A)(t.next)==G&&(t=new Ie(t)),t instanceof WritableStream&&(t={writable:t});var e=t.writable;return e.size===V&&(e.size=0),t instanceof Ie||Object.assign(t,{diskNumber:0,diskOffset:0,availableSize:1/0,maxSize:1/0}),t}(e),t.next=11,Pe(e,m);case 11:return C=e.writable,L=r.onstart,R=r.onprogress,I=r.onend,P={options:{codecType:ce,password:k,zipCrypto:S,encryptionStrength:f&&f.strength,signed:gn(i,r,"checkSignature"),passwordVerification:S&&(p.dataDescriptor?g>>>8&255:v>>>24&255),signature:v,compressed:0!=h,encrypted:A,useWebWorkers:gn(i,r,"useWebWorkers"),useCompressionStream:gn(i,r,"useCompressionStream"),transferStreams:gn(i,r,"transferStreams"),checkPasswordOnly:M},config:d,streamOptions:{signal:O,size:T,onstart:L,onprogress:R,onend:I}},j=0,t.prev=12,t.next=13,function(){var t=(0,a.A)(y().mark((function t(e,n){var r,i,a,s,u,c,l,f,h,d,p,v,g,m,b,w,x;return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(x=function(t){if(Ae.length){var e=Ae.splice(0,1),n=(0,o.A)(e,1)[0],r=n.resolve,i=n.stream,a=n.workerOptions;r(new he(t,i,a,x))}else t.worker?(Ee(t),Number.isFinite(v)&&v>=0&&(t.terminateTimeout=setTimeout((function(){ke=ke.filter((function(e){return e!=t})),t.terminate()}),v))):ke=ke.filter((function(e){return e!=t}))},r=n.options,i=n.config,a=r.transferStreams,s=r.useWebWorkers,u=r.useCompressionStream,c=r.codecType,l=r.compressed,f=r.signed,h=r.encrypted,d=i.workerScripts,p=i.maxWorkers,v=i.terminateWorkerTimeout,n.transferStreams=a||a===V,g=!(l||f||h||n.transferStreams),n.useWebWorkers=!g&&(s||s===V&&i.useWebWorkers),n.scripts=n.useWebWorkers&&d?d[c]:[],r.useCompressionStream=u||u===V&&i.useCompressionStream,b=ke.find((function(t){return!t.busy})),!b){t.next=1;break}Ee(b),m=new he(b,e,n,x),t.next=4;break;case 1:if(!(ke.length>1,dataDescriptor:!(8&~r),languageEncodingFlag:!(2048&~r)},rawLastModDate:o,lastModDate:yn(o),filenameLength:wn(e,n+22),extraFieldLength:wn(e,n+24)})}function hn(t,e,n,r,i){return dn.apply(this,arguments)}function dn(){return dn=(0,a.A)(y().mark((function t(e,n,r,i,a){var s,u,c,l,f,h,d,p,v,g,m,b,w,x;return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:s=n.rawExtraField,u=n.extraField=new Map,c=An(new Uint8Array(s)),l=0;try{for(;l=5&&(o.push(Ye),a.push(Ke));var s=1;o.forEach((function(n,i){if(t.data.length>=s+4){var o=xn(r,s);e[n]=t[n]=new Date(1e3*o);var u=a[i];t[u]=o}s+=4}))}(w,n,a),n.extraFieldExtendedTimestamp=w),(x=u.get(6534))&&(n.extraFieldUSDZ=x);case 5:case"end":return t.stop()}}),t)}))),dn.apply(this,arguments)}function pn(t,e,n,r,i){return vn.apply(this,arguments)}function vn(){return vn=(0,a.A)(y().mark((function t(e,n,i,o,a){var s,u,c,l;return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:s=An(e.data),(u=new it).append(a[i]),(c=An(new Uint8Array(4))).setUint32(0,u.get(),!0),l=xn(s,1),Object.assign(e,(0,r.A)((0,r.A)({version:bn(s,0)},n,ze(e.data.subarray(5))),"valid",!a.bitFlag.languageEncodingFlag&&l==xn(c,0))),e.valid&&(o[n]=e[n],o[n+"UTF8"]=!0);case 1:case"end":return t.stop()}}),t)}))),vn.apply(this,arguments)}function gn(t,e,n){return e[n]===V?t.options[n]:e[n]}function yn(t){var e=(4294901760&t)>>16,n=65535&t;try{return new Date(1980+((65024&e)>>9),((480&e)>>5)-1,31&e,(63488&n)>>11,(2016&n)>>5,2*(31&n),0)}catch(t){}}function mn(t){return new Date(Number(t/BigInt(1e4)-BigInt(116444736e5)))}function bn(t,e){return t.getUint8(e)}function wn(t,e){return t.getUint16(e,!0)}function xn(t,e){return t.getUint32(e,!0)}function kn(t,e){return Number(t.getBigUint64(e,!0))}function An(t){return new DataView(t.buffer)}Z({Inflate:function(t){var e=new z,n=t&&t.chunkSize?Math.floor(2*t.chunkSize):131072,r=new Uint8Array(n),i=!1;e.inflateInit(),e.next_out=r,this.append=function(t,o){var a,s,u=[],c=0,l=0,f=0;if(0!==t.length){e.next_in_index=0,e.next_in=t,e.avail_in=t.length;do{if(e.next_out_index=0,e.avail_out=n,0!==e.avail_in||i||(e.next_in_index=0,i=!0),a=e.inflate(0),i&&a===E){if(0!==e.avail_in)throw new Error("inflating: bad input")}else if(0!==a&&1!==a)throw new Error("inflating: "+e.msg);if((i||1===a)&&e.avail_in===t.length)throw new Error("inflating: bad input");e.next_out_index&&(e.next_out_index===n?u.push(new Uint8Array(r)):u.push(r.subarray(0,e.next_out_index))),f+=e.next_out_index,o&&e.next_in_index>0&&e.next_in_index!=c&&(o(e.next_in_index),c=e.next_in_index)}while(e.avail_in>0||0===e.avail_out);return u.length>1?(s=new Uint8Array(f),u.forEach((function(t){s.set(t,l),l+=t.length}))):s=u[0]?new Uint8Array(u[0]):new Uint8Array,s}},this.flush=function(){e.inflateEnd()}}})},83237:function(t,e,n){"use strict";n(70511)("replace")},83440:function(t,e,n){"use strict";var r=n(97080),i=n(94402),o=n(89286),a=n(25170),s=n(83789),u=n(38469),c=n(40507),l=i.has,f=i.remove;t.exports=function(t){var e=r(this),n=s(t),i=o(e);return a(e)<=n.size?u(e,(function(t){n.includes(t)&&f(i,t)})):c(n.getIterator(),(function(t){l(i,t)&&f(i,t)})),i}},83635:function(t,e,n){"use strict";var r=n(79039),i=n(44576).RegExp;t.exports=r((function(){var t=i(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)}))},83650:function(t,e,n){"use strict";var r=n(97080),i=n(94402),o=n(89286),a=n(83789),s=n(40507),u=i.add,c=i.has,l=i.remove;t.exports=function(t){var e=r(this),n=a(t).getIterator(),i=o(e);return s(n,(function(t){c(e,t)?l(i,t):u(i,t)})),i}},83789:function(t,e,n){"use strict";var r=n(79306),i=n(28551),o=n(69565),a=n(91291),s=n(1767),u="Invalid size",c=RangeError,l=TypeError,f=Math.max,h=function(t,e){this.set=t,this.size=f(e,0),this.has=r(t.has),this.keys=r(t.keys)};h.prototype={getIterator:function(){return s(i(o(this.keys,this.set)))},includes:function(t){return o(this.has,this.set,t)}},t.exports=function(t){i(t);var e=+t.size;if(e!=e)throw new l(u);var n=a(e);if(n<0)throw new c(u);return new h(t,n)}},83851:function(t,e,n){"use strict";var r=n(46518),i=n(79039),o=n(25397),a=n(77347).f,s=n(43724);r({target:"Object",stat:!0,forced:!s||i((function(){a(1)})),sham:!s},{getOwnPropertyDescriptor:function(t,e){return a(o(t),e)}})},84185:function(t,e,n){"use strict";var r=n(46518),i=n(43724),o=n(24913).f;r({target:"Object",stat:!0,forced:Object.defineProperty!==o,sham:!i},{defineProperty:o})},84215:function(t,e,n){"use strict";var r=n(44576),i=n(82839),o=n(22195),a=function(t){return i.slice(0,t.length)===t};t.exports=a("Bun/")?"BUN":a("Cloudflare-Workers")?"CLOUDFLARE":a("Deno/")?"DENO":a("Node.js/")?"NODE":r.Bun&&"string"==typeof Bun.version?"BUN":r.Deno&&"object"==typeof Deno.version?"DENO":"process"===o(r.process)?"NODE":r.window&&r.document?"BROWSER":"REST"},84270:function(t,e,n){"use strict";var r=n(69565),i=n(94901),o=n(20034),a=TypeError;t.exports=function(t,e){var n,s;if("string"===e&&i(n=t.toString)&&!o(s=r(n,t)))return s;if(i(n=t.valueOf)&&!o(s=r(n,t)))return s;if("string"!==e&&i(n=t.toString)&&!o(s=r(n,t)))return s;throw new a("Can't convert object to primitive value")}},84315:function(t,e,n){"use strict";n(52675),n(89463),n(34113),n(66412),n(97324),n(60193),n(92168),n(2259),n(86964),n(83142),n(83237),n(61833),n(67947),n(31073),n(45700),n(78125),n(20326),n(16280),n(6372),n(76918),n(30067),n(4294),n(88940),n(18107),n(28706),n(26835),n(88431),n(33771),n(2008),n(50113),n(48980),n(10838),n(13451),n(46449),n(78350),n(51629),n(23418),n(74423),n(25276),n(64346),n(23792),n(48598),n(8921),n(62062),n(31051),n(44114),n(72712),n(18863),n(94490),n(34782),n(15086),n(26910),n(87478),n(54554),n(9678),n(57145),n(71658),n(93514),n(30237),n(13609),n(11558),n(54743),n(46761),n(11745),n(38309),n(10255),n(3995),n(16573),n(78100),n(77936),n(61699),n(59089),n(91191),n(93515),n(1688),n(60739),n(89572),n(23288),n(48922),n(36456),n(94170),n(48957),n(62010),n(55081),n(18111),n(76382),n(29314),n(81148),n(22489),n(20116),n(30531),n(7588),n(49603),n(61701),n(18237),n(13579),n(54972),n(61806),n(33110),n(4731),n(36033),n(47072),n(93153),n(82326),n(36389),n(64444),n(8085),n(77762),n(65070),n(60605),n(4360),n(39469),n(72152),n(75376),n(56624),n(11367),n(5914),n(78553),n(98690),n(60479),n(70761),n(2892),n(45374),n(25428),n(32637),n(40150),n(59149),n(64601),n(44435),n(87220),n(25843),n(62337),n(9868),n(80630),n(69085),n(59904),n(17427),n(67945),n(84185),n(87607),n(5506),n(52811),n(53921),n(83851),n(81278),n(1480),n(40875),n(77691),n(78347),n(29908),n(94052),n(94003),n(221),n(79432),n(9220),n(7904),n(93967),n(63548),n(93941),n(10287),n(26099),n(16034),n(78459),n(58940),n(3362),n(96167),n(93518),n(9391),n(31689),n(14628),n(52407),n(24793),n(50452),n(39796),n(60825),n(87411),n(21211),n(40888),n(9065),n(86565),n(32812),n(84634),n(71137),n(30985),n(34268),n(34873),n(15472),n(84864),n(96069),n(57465),n(27495),n(69479),n(87745),n(90906),n(38781),n(31415),n(17642),n(58004),n(33853),n(45876),n(32475),n(15024),n(31698),n(67357),n(23860),n(99449),n(27337),n(21699),n(42043),n(47764),n(71761),n(28543),n(35701),n(68156),n(85906),n(42781),n(25440),n(79978),n(5746),n(90744),n(11392),n(50375),n(67438),n(42762),n(39202),n(43359),n(89907),n(11898),n(35490),n(5745),n(94298),n(60268),n(69546),n(20781),n(50778),n(89195),n(46276),n(48718),n(16308),n(34594),n(29833),n(46594),n(72107),n(95477),n(21489),n(22134),n(3690),n(61740),n(48140),n(81630),n(72170),n(75044),n(69539),n(31694),n(89955),n(21903),n(91134),n(33206),n(48345),n(44496),n(66651),n(12887),n(19369),n(66812),n(8995),n(52568),n(31575),n(36072),n(88747),n(28845),n(29423),n(57301),n(373),n(86614),n(41405),n(37467),n(44732),n(33684),n(79577),n(88267),n(73772),n(30958),n(2945),n(42207),n(23500),n(62953),n(55815),n(64979),n(79739),n(59848),n(122),n(13611),n(71678),n(76031),n(3296),n(2222),n(45781),n(27208),n(48408),n(14603),n(47566),n(98721),n(19167)},84373:function(t,e,n){"use strict";var r=n(48981),i=n(35610),o=n(26198);t.exports=function(t){for(var e=r(this),n=o(e),a=arguments.length,s=i(a>1?arguments[1]:void 0,n),u=a>2?arguments[2]:void 0,c=void 0===u?n:i(u,n);c>s;)e[s++]=t;return e}},84428:function(t,e,n){"use strict";var r=n(78227)("iterator"),i=!1;try{var o=0,a={next:function(){return{done:!!o++}},return:function(){i=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(t){}t.exports=function(t,e){try{if(!e&&!i)return!1}catch(t){return!1}var n=!1;try{var o={};o[r]=function(){return{next:function(){return{done:n=!0}}}},t(o)}catch(t){}return n}},84549:function(t,e,n){"use strict";var r=n(44576);t.exports=function(t,e){var n=r.Iterator,i=n&&n.prototype,o=i&&i[t],a=!1;if(o)try{o.call({next:function(){return{done:!0}},return:function(){a=!0}},-1)}catch(t){t instanceof e||(a=!1)}if(!a)return o}},84606:function(t,e,n){"use strict";var r=n(16823),i=TypeError;t.exports=function(t,e){if(!delete t[e])throw new i("Cannot delete property "+r(e)+" of "+r(t))}},84634:function(t,e,n){"use strict";var r=n(46518),i=n(28551),o=n(34124);r({target:"Reflect",stat:!0},{isExtensible:function(t){return i(t),o(t)}})},84864:function(t,e,n){"use strict";var r=n(43724),i=n(44576),o=n(79504),a=n(92796),s=n(23167),u=n(66699),c=n(2360),l=n(38480).f,f=n(1625),h=n(60788),d=n(655),p=n(61034),v=n(58429),g=n(11056),y=n(36840),m=n(79039),b=n(39297),w=n(91181).enforce,x=n(87633),k=n(78227),A=n(83635),S=n(18814),E=k("match"),T=i.RegExp,_=T.prototype,O=i.SyntaxError,M=o(_.exec),C=o("".charAt),L=o("".replace),R=o("".indexOf),I=o("".slice),P=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,j=/a/g,F=/a/g,N=new T(j)!==j,D=v.MISSED_STICKY,B=v.UNSUPPORTED_Y;if(a("RegExp",r&&(!N||D||A||S||m((function(){return F[E]=!1,T(j)!==j||T(F)===F||"/a/i"!==String(T(j,"i"))}))))){for(var z=function(t,e){var n,r,i,o,a,l,v=f(_,this),g=h(t),y=void 0===e,m=[],x=t;if(!v&&g&&y&&t.constructor===z)return t;if((g||f(_,t))&&(t=t.source,y&&(e=p(x))),t=void 0===t?"":d(t),e=void 0===e?"":d(e),x=t,A&&"dotAll"in j&&(r=!!e&&R(e,"s")>-1)&&(e=L(e,/s/g,"")),n=e,D&&"sticky"in j&&(i=!!e&&R(e,"y")>-1)&&B&&(e=L(e,/y/g,"")),S&&(o=function(t){for(var e,n=t.length,r=0,i="",o=[],a=c(null),s=!1,u=!1,l=0,f="";r<=n;r++){if("\\"===(e=C(t,r)))e+=C(t,++r);else if("]"===e)s=!1;else if(!s)switch(!0){case"["===e:s=!0;break;case"("===e:if(i+=e,"?:"===I(t,r+1,r+3))continue;M(P,I(t,r+1))&&(r+=2,u=!0),l++;continue;case">"===e&&u:if(""===f||b(a,f))throw new O("Invalid capture group name");a[f]=!0,o[o.length]=[f,l],u=!1,f="";continue}u?f+=e:i+=e}return[i,o]}(t),t=o[0],m=o[1]),a=s(T(t,e),v?this:_,z),(r||i||m.length)&&(l=w(a),r&&(l.dotAll=!0,l.raw=z(function(t){for(var e,n=t.length,r=0,i="",o=!1;r<=n;r++)"\\"!==(e=C(t,r))?o||"."!==e?("["===e?o=!0:"]"===e&&(o=!1),i+=e):i+="[\\s\\S]":i+=e+C(t,++r);return i}(t),n)),i&&(l.sticky=!0),m.length&&(l.groups=m)),t!==x)try{u(a,"source",""===x?"(?:)":x)}catch(t){}return a},U=l(T),W=0;U.length>W;)g(z,T,U[W++]);_.constructor=z,z.prototype=_,y(i,"RegExp",z,{constructor:!0})}x("RegExp")},84916:function(t,e,n){"use strict";var r=n(97751),i=function(t){return{size:t,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},o=function(t){return{size:t,has:function(){return!0},keys:function(){throw new Error("e")}}};t.exports=function(t,e){var n=r("Set");try{(new n)[t](i(0));try{return(new n)[t](i(-1)),!1}catch(r){if(!e)return!0;try{return(new n)[t](o(-1/0)),!1}catch(r){var a=new n;return a.add(1),a.add(2),e(a[t](o(1/0)))}}}catch(t){return!1}}},85501:function(t,e,n){"use strict";n.d(e,{A:function(){return i}});var r=n(63662);function i(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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&(0,r.A)(t,e)}},85906:function(t,e,n){"use strict";var r=n(46518),i=n(79504),o=n(25397),a=n(48981),s=n(655),u=n(26198),c=i([].push),l=i([].join);r({target:"String",stat:!0},{raw:function(t){var e=o(a(t).raw),n=u(e);if(!n)return"";for(var r=arguments.length,i=[],f=0;;){if(c(i,s(e[f++])),f===n)return l(i,"");f1?arguments[1]:void 0);e=e?e.next:n.first;)for(r(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!b(this,t)}}),o(h,n?{get:function(t){var e=b(this,t);return e&&e.value},set:function(t,e){return m(this,0===t?0:t,e)}}:{add:function(t){return m(this,t=0===t?0:t,t)}}),d&&i(h,"size",{configurable:!0,get:function(){return v(this).size}}),f},setStrong:function(t,e,n){var r=e+" Iterator",i=y(e),o=y(r);l(t,e,(function(t,e){g(this,{type:r,target:t,state:i(t),kind:e,last:null})}),(function(){for(var t=o(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?f("keys"===e?n.key:"values"===e?n.value:[n.key,n.value],!1):(t.target=null,f(void 0,!0))}),n?"entries":"values",!n,!0),h(e)}}},86964:function(t,e,n){"use strict";n(70511)("match")},87220:function(t,e,n){"use strict";var r=n(46518),i=n(33904);r({target:"Number",stat:!0,forced:Number.parseFloat!==i},{parseFloat:i})},87411:function(t,e,n){"use strict";var r=n(46518),i=n(43724),o=n(28551),a=n(56969),s=n(24913);r({target:"Reflect",stat:!0,forced:n(79039)((function(){Reflect.defineProperty(s.f({},1,{value:1}),1,{value:2})})),sham:!i},{defineProperty:function(t,e,n){o(t);var r=a(e);o(n);try{return s.f(t,r,n),!0}catch(t){return!1}}})},87433:function(t,e,n){"use strict";var r=n(34376),i=n(33517),o=n(20034),a=n(78227)("species"),s=Array;t.exports=function(t){var e;return r(t)&&(e=t.constructor,(i(e)&&(e===s||r(e.prototype))||o(e)&&null===(e=e[a]))&&(e=void 0)),void 0===e?s:e}},87478:function(t,e,n){"use strict";n(87633)("Array")},87607:function(t,e,n){"use strict";var r=n(46518),i=n(43724),o=n(42551),a=n(79306),s=n(48981),u=n(24913);i&&r({target:"Object",proto:!0,forced:o},{__defineSetter__:function(t,e){u.f(s(this),t,{set:a(e),enumerable:!0,configurable:!0})}})},87631:function(t,e,n){"use strict";n.r(e),n.d(e,{TTS:function(){return N}});var r=n(3453),i=n(23029),o=n(92901),a=n(54756),s=n.n(a);function u(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return c(t,e);var n={}.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)?c(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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 o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n1&&void 0!==arguments[1]?arguments[1]:function(t){return t};(0,i.A)(this,t),l(this,C),f(this,T,[]),f(this,_,void 0),f(this,O,-1),f(this,M,void 0),p(_,this,e),p(M,this,n)}),[{key:"current",value:function(){if(d(T,this)[d(O,this)])return d(M,this).call(this,d(T,this)[d(O,this)])}},{key:"first",value:function(){if(d(T,this)[0])return p(O,this,0),d(M,this).call(this,d(T,this)[0])}},{key:"last",value:function(){var t,e=u(d(_,this));try{for(e.s();!(t=e.n()).done;){var n=t.value;d(T,this).push(n)}}catch(t){e.e(t)}finally{e.f()}var r=d(T,this).length-1;if(d(T,this)[r])return p(O,this,r),d(M,this).call(this,d(T,this)[r])}},{key:"prev",value:function(){var t=d(O,this)-1;if(d(T,this)[t])return p(O,this,t),d(M,this).call(this,d(T,this)[t])}},{key:"next",value:function(){var t=d(O,this)+1;if(d(T,this)[t])return p(O,this,t),d(M,this).call(this,d(T,this)[t]);for(;;){var e=d(_,this).next(),n=e.done,r=e.value;if(n)break;if(d(T,this).push(r),d(T,this)[t])return p(O,this,t),d(M,this).call(this,d(T,this)[t])}}},{key:"prepare",value:function(){var t=d(O,this)+1;if(d(T,this)[t])return d(M,this).call(this,d(T,this)[t]);for(;;){var e=d(_,this).next(),n=e.done,r=e.value;if(n)break;if(d(T,this).push(r),d(T,this)[t])return d(M,this).call(this,d(T,this)[t])}}},{key:"peek",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(t<=0)return[];for(var n=Math.max(d(O,this)+e,0),r=[],i=n+t,o=n;o-1)return p(O,this,e),d(M,this).call(this,d(T,this)[e]);for(;;){var n=d(_,this).next(),r=n.done,i=n.value;if(r)break;if(d(T,this).push(i),t(i))return p(O,this,d(T,this).length-1),d(M,this).call(this,i)}}}])}();function R(t){for(;null==d(T,this)[t];){var e=d(_,this).next(),n=e.done,r=e.value;if(n)break;if(d(T,this).push(r),d(T,this).length-1>=t)break}return d(T,this)[t]}var I=new WeakMap,P=new WeakMap,j=new WeakMap,F=new WeakSet,N=function(){return(0,o.A)((function t(e,n,r,o){(0,i.A)(this,t),l(this,F),f(this,I,void 0),f(this,P,void 0),f(this,j,void 0),this.doc=e,this.highlight=r,p(j,this,o),p(I,this,new L(E(e),(function(t){return[x(t),t]})))}),[{key:"start",value:function(){var t;p(P,this,null);var e=d(I,this).first();return e?null===(t=v(F,this,z).call(this,e,{highlight:!0}))||void 0===t?void 0:t.text:this.next()}},{key:"end",value:function(){var t;p(P,this,null);var e=d(I,this).last();return e?null===(t=v(F,this,z).call(this,e,{highlight:!0}))||void 0===t?void 0:t.text:this.next()}},{key:"resume",value:function(){var t,e=d(I,this).current();return e?null===(t=v(F,this,z).call(this,e))||void 0===t?void 0:t.text:this.next()}},{key:"prev",value:function(t){var e;p(P,this,null);var n=d(I,this).prev();return t&&null!=n&&n[1]&&this.highlight(n[1].cloneRange()),null===(e=v(F,this,z).call(this,n))||void 0===e?void 0:e.text}},{key:"next",value:function(t){var e;p(P,this,null);var n=d(I,this).next();return t&&null!=n&&n[1]&&this.highlight(n[1].cloneRange()),null===(e=v(F,this,z).call(this,n))||void 0===e?void 0:e.text}},{key:"prepare",value:function(){var t,e=d(I,this).prepare();return null===(t=v(F,this,z).call(this,e))||void 0===t?void 0:t.text}},{key:"from",value:function(t){var e;p(P,this,null);var n=d(I,this).find((function(e){return t.compareBoundaryPoints(Range.END_TO_START,e)<=0}));return null!=n&&n[1]&&this.highlight(n[1].cloneRange()),null===(e=v(F,this,z).call(this,n))||void 0===e?void 0:e.text}},{key:"currentDetail",value:function(){var t=v(F,this,B).call(this);return v(F,this,z).call(this,t)}},{key:"collectDetails",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.includeCurrent,r=void 0!==n&&n,i=e.offset,o=void 0===i?1:i;if(!Number.isFinite(t)||t<=0)return[];var a=[];if(r){var s=v(F,this,B).call(this),c=v(F,this,z).call(this,s);c&&a.push(c)}var l=t-a.length;if(l<=0)return a;var f,h=u(d(I,this).peek(l,o));try{for(h.s();!(f=h.n()).done;){var p=f.value,g=v(F,this,z).call(this,p);g&&a.push(g)}}catch(t){h.e(t)}finally{h.f()}return a}},{key:"highlightCfi",value:function(t){var e=this;if(!t)return null;var n=d(I,this).find((function(n){var r,i;return(null===(r=d(j,e))||void 0===r?void 0:r.call(e,null===(i=n.cloneRange)||void 0===i?void 0:i.call(n)))===t}));return n?v(F,this,z).call(this,n,{highlight:!0}):null}}])}();function D(t,e){var n;if(!t)return"";if(!e)return t;var r=document.createElement("div");r.innerHTML=t;for(var i=null===(n=e(r))||void 0===n?void 0:n.previousSibling;i;){var o,a,s=null!==(o=i.previousSibling)&&void 0!==o?o:null===(a=i.parentNode)||void 0===a?void 0:a.previousSibling;i.parentNode.removeChild(i),i=s}return r.textContent}function B(){var t;return d(I,this).current()||(null!==(t=d(I,this).first())&&void 0!==t?t:d(I,this).next())}function z(t){var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).highlight,n=void 0!==e&&e;if(!t)return null;var i=(0,r.A)(t,2),o=i[0],a=i[1];if(!o||!a)return null;var s,u=v(F,this,D).call(this,o),c=null;return n&&this.highlight&&a.cloneRange&&(c=null!==(s=this.highlight(a.cloneRange()))&&void 0!==s?s:null),!c&&d(j,this)&&a.cloneRange&&(c=d(j,this).call(this,a.cloneRange())),{text:u,cfi:c}}},87633:function(t,e,n){"use strict";var r=n(97751),i=n(62106),o=n(78227),a=n(43724),s=o("species");t.exports=function(t){var e=r(t);a&&e&&!e[s]&&i(e,s,{configurable:!0,get:function(){return this}})}},87745:function(t,e,n){"use strict";var r=n(43724),i=n(58429).MISSED_STICKY,o=n(22195),a=n(62106),s=n(91181).get,u=RegExp.prototype,c=TypeError;r&&i&&a(u,"sticky",{configurable:!0,get:function(){if(this!==u){if("RegExp"===o(this))return!!s(this).sticky;throw new c("Incompatible receiver, RegExp required")}}})},88267:function(t,e,n){"use strict";var r=n(46518),i=n(79504),o=n(655),a=String.fromCharCode,s=i("".charAt),u=i(/./.exec),c=i("".slice),l=/^[\da-f]{2}$/i,f=/^[\da-f]{4}$/i;r({global:!0},{unescape:function(t){for(var e,n,r=o(t),i="",h=r.length,d=0;d1?arguments[1]:void 0)}})},88490:function(t){"use strict";var e=Array,n=Math.abs,r=Math.pow,i=Math.floor,o=Math.log,a=Math.LN2;t.exports={pack:function(t,s,u){var c,l,f,h=e(u),d=8*u-s-1,p=(1<>1,g=23===s?r(2,-24)-r(2,-77):0,y=t<0||0===t&&1/t<0?1:0,m=0;for((t=n(t))!=t||t===1/0?(l=t!=t?1:0,c=p):(c=i(o(t)/a),t*(f=r(2,-c))<1&&(c--,f*=2),(t+=c+v>=1?g/f:g*r(2,1-v))*f>=2&&(c++,f/=2),c+v>=p?(l=0,c=p):c+v>=1?(l=(t*f-1)*r(2,s),c+=v):(l=t*r(2,v-1)*r(2,s),c=0));s>=8;)h[m++]=255&l,l/=256,s-=8;for(c=c<0;)h[m++]=255&c,c/=256,d-=8;return h[m-1]|=128*y,h},unpack:function(t,e){var n,i=t.length,o=8*i-e-1,a=(1<>1,u=o-7,c=i-1,l=t[c--],f=127&l;for(l>>=7;u>0;)f=256*f+t[c--],u-=8;for(n=f&(1<<-u)-1,f>>=-u,u+=e;u>0;)n=256*n+t[c--],u-=8;if(0===f)f=1-s;else{if(f===a)return n?NaN:l?-1/0:1/0;n+=r(2,e),f-=s}return(l?-1:1)*n*r(2,f-e)}}},88727:function(t){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},88747:function(t,e,n){"use strict";var r=n(94644),i=r.aTypedArray,o=r.exportTypedArrayMethod,a=Math.floor;o("reverse",(function(){for(var t,e=this,n=i(e).length,r=a(n/2),o=0;o1?arguments[1]:void 0)}))},90235:function(t,e,n){"use strict";var r=n(59213).forEach,i=n(34598)("forEach");t.exports=i?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},90537:function(t,e,n){"use strict";var r=n(80550),i=n(84428),o=n(10916).CONSTRUCTOR;t.exports=o||!i((function(t){r.all(t).then(void 0,(function(){}))}))},90679:function(t,e,n){"use strict";var r=n(1625),i=TypeError;t.exports=function(t,e){if(r(e,t))return t;throw new i("Incorrect invocation")}},90744:function(t,e,n){"use strict";var r=n(69565),i=n(79504),o=n(89228),a=n(28551),s=n(20034),u=n(67750),c=n(2293),l=n(57829),f=n(18014),h=n(655),d=n(55966),p=n(56682),v=n(58429),g=n(79039),y=v.UNSUPPORTED_Y,m=Math.min,b=i([].push),w=i("".slice),x=!g((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]})),k="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length;o("split",(function(t,e,n){var i="0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:r(e,this,t,n)}:e;return[function(e,n){var o=u(this),a=s(e)?d(e,t):void 0;return a?r(a,e,o,n):r(i,h(o),e,n)},function(t,r){var o=a(this),s=h(t);if(!k){var u=n(i,o,s,r,i!==e);if(u.done)return u.value}var d=c(o,RegExp),v=o.unicode,g=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(y?"g":"y"),x=new d(y?"^(?:"+o.source+")":o,g),A=void 0===r?4294967295:r>>>0;if(0===A)return[];if(0===s.length)return null===p(x,s)?[s]:[];for(var S=0,E=0,T=[];E1?arguments[1]:void 0)}))},91181:function(t,e,n){"use strict";var r,i,o,a=n(58622),s=n(44576),u=n(20034),c=n(66699),l=n(39297),f=n(77629),h=n(66119),d=n(30421),p="Object already initialized",v=s.TypeError,g=s.WeakMap;if(a||f.state){var y=f.state||(f.state=new g);y.get=y.get,y.has=y.has,y.set=y.set,r=function(t,e){if(y.has(t))throw new v(p);return e.facade=t,y.set(t,e),e},i=function(t){return y.get(t)||{}},o=function(t){return y.has(t)}}else{var m=h("state");d[m]=!0,r=function(t,e){if(l(t,m))throw new v(p);return e.facade=t,c(t,m,e),e},i=function(t){return l(t,m)?t[m]:{}},o=function(t){return l(t,m)}}t.exports={set:r,get:i,has:o,enforce:function(t){return o(t)?i(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!u(e)||(n=i(e)).type!==t)throw new v("Incompatible receiver, "+t+" required");return n}}}},91191:function(t,e,n){"use strict";var r=n(46518),i=n(79504),o=n(91291),a=Date.prototype,s=i(a.getTime),u=i(a.setFullYear);r({target:"Date",proto:!0},{setYear:function(t){s(this);var e=o(t);return u(this,e>=0&&e<=99?e+1900:e)}})},91291:function(t,e,n){"use strict";var r=n(80741);t.exports=function(t){var e=+t;return e!=e||0===e?0:r(e)}},91296:function(t,e,n){"use strict";var r=n(4495);t.exports=r&&!!Symbol.for&&!!Symbol.keyFor},91385:function(t,e,n){"use strict";var r=n(9539);t.exports=function(t,e,n){for(var i=t.length-1;i>=0;i--)if(void 0!==t[i])try{n=r(t[i].iterator,e,n)}catch(t){e="throw",n=t}if("throw"===e)throw n;return n}},91625:function(t,e,n){"use strict";var r=n(79504),i=n(56279),o=n(3451).getWeakData,a=n(90679),s=n(28551),u=n(64117),c=n(20034),l=n(72652),f=n(59213),h=n(39297),d=n(91181),p=d.set,v=d.getterFor,g=f.find,y=f.findIndex,m=r([].splice),b=0,w=function(t){return t.frozen||(t.frozen=new x)},x=function(){this.entries=[]},k=function(t,e){return g(t.entries,(function(t){return t[0]===e}))};x.prototype={get:function(t){var e=k(this,t);if(e)return e[1]},has:function(t){return!!k(this,t)},set:function(t,e){var n=k(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=y(this.entries,(function(e){return e[0]===t}));return~e&&m(this.entries,e,1),!!~e}},t.exports={getConstructor:function(t,e,n,r){var f=t((function(t,i){a(t,d),p(t,{type:e,id:b++,frozen:null}),u(i)||l(i,t[r],{that:t,AS_ENTRIES:n})})),d=f.prototype,g=v(e),y=function(t,e,n){var r=g(t),i=o(s(e),!0);return!0===i?w(r).set(e,n):i[r.id]=n,t};return i(d,{delete:function(t){var e=g(this);if(!c(t))return!1;var n=o(t);return!0===n?w(e).delete(t):n&&h(n,e.id)&&delete n[e.id]},has:function(t){var e=g(this);if(!c(t))return!1;var n=o(t);return!0===n?w(e).has(t):n&&h(n,e.id)}}),i(d,n?{get:function(t){var e=g(this);if(c(t)){var n=o(t);if(!0===n)return w(e).get(t);if(n)return n[e.id]}},set:function(t,e){return y(this,t,e)}}:{add:function(t){return y(this,t,!0)}}),f}}},91955:function(t,e,n){"use strict";var r,i,o,a,s,u=n(44576),c=n(93389),l=n(76080),f=n(59225).set,h=n(18265),d=n(89544),p=n(44265),v=n(7860),g=n(38574),y=u.MutationObserver||u.WebKitMutationObserver,m=u.document,b=u.process,w=u.Promise,x=c("queueMicrotask");if(!x){var k=new h,A=function(){var t,e;for(g&&(t=b.domain)&&t.exit();e=k.get();)try{e()}catch(t){throw k.head&&r(),t}t&&t.enter()};d||g||v||!y||!m?!p&&w&&w.resolve?((a=w.resolve(void 0)).constructor=w,s=l(a.then,a),r=function(){s(A)}):g?r=function(){b.nextTick(A)}:(f=l(f,u),r=function(){f(A)}):(i=!0,o=m.createTextNode(""),new y(A).observe(o,{characterData:!0}),r=function(){o.data=i=!i}),x=function(t){k.head||r(),k.add(t)}}t.exports=x},92140:function(t,e,n){"use strict";var r={};r[n(78227)("toStringTag")]="z",t.exports="[object z]"===String(r)},92168:function(t,e,n){"use strict";n(70511)("isConcatSpreadable")},92327:function(t,e,n){"use strict";n.d(e,{A:function(){return i}});var r=n(82284);function i(t,e){if("object"!=(0,r.A)(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=(0,r.A)(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}},92405:function(t,e,n){"use strict";n(16468)("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),n(86938))},92407:function(t,e,n){"use strict";n.d(e,{F:function(){return b}});var r=n(23029),i=n(92901),o=n(56822),a=n(53954),s=n(85501),u=n(28614),c=n(64467);function l(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(l=function(){return!!t})()}function f(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}var h=function(t){var e;return new Set(null==t||null===(e=t.getAttributeNS)||void 0===e||null===(e=e.call(t,"http://www.idpf.org/2007/ops","type"))||void 0===e?void 0:e.split(" "))},d=function(t){var e;return new Set(null==t||null===(e=t.getAttribute)||void 0===e||null===(e=e.call(t,"role"))||void 0===e?void 0:e.split(" "))},p=function(t){var e=getComputedStyle(t).verticalAlign;return"super"===e||/^\d/.test(e)},v=["biblioref","glossref","noteref"],g=["doc-biblioref","doc-glossref","doc-noteref"],y="a, span, sup, sub, em, strong, i, b, small, big",m=new WeakSet,b=function(t){function e(){var t,n,i,s;(0,r.A)(this,e);for(var u=arguments.length,f=new Array(u),h=0;h94906265.62425156?a(e)+u:i(e-1+s(e-1)*s(e+1))}})},93389:function(t,e,n){"use strict";var r=n(44576),i=n(43724),o=Object.getOwnPropertyDescriptor;t.exports=function(t){if(!i)return r[t];var e=o(r,t);return e&&e.value}},93438:function(t,e,n){"use strict";var r=n(28551),i=n(20034),o=n(36043);t.exports=function(t,e){if(r(t),i(e)&&e.constructor===t)return e;var n=o.f(t);return(0,n.resolve)(e),n.promise}},93514:function(t,e,n){"use strict";n(6469)("flat")},93515:function(t,e,n){"use strict";n(46518)({target:"Date",proto:!0},{toGMTString:Date.prototype.toUTCString})},93518:function(t,e,n){"use strict";var r=n(46518),i=n(69565),o=n(79306),a=n(97751),s=n(36043),u=n(1103),c=n(72652),l=n(90537),f="No one promise resolved";r({target:"Promise",stat:!0,forced:l},{any:function(t){var e=this,n=a("AggregateError"),r=s.f(e),l=r.resolve,h=r.reject,d=u((function(){var r=o(e.resolve),a=[],s=0,u=1,d=!1;c(t,(function(t){var o=s++,c=!1;u++,i(r,e,t).then((function(t){c||d||(d=!0,l(t))}),(function(t){c||d||(c=!0,a[o]=t,--u||h(new n(a,f)))}))})),--u||h(new n(a,f))}));return d.error&&h(d.value),r.promise}})},93941:function(t,e,n){"use strict";var r=n(46518),i=n(20034),o=n(3451).onFreeze,a=n(92744),s=n(79039),u=Object.seal;r({target:"Object",stat:!0,forced:s((function(){u(1)})),sham:!a},{seal:function(t){return u&&i(t)?u(o(t)):t}})},93967:function(t,e,n){"use strict";var r=n(46518),i=n(20034),o=n(3451).onFreeze,a=n(92744),s=n(79039),u=Object.preventExtensions;r({target:"Object",stat:!0,forced:s((function(){u(1)})),sham:!a},{preventExtensions:function(t){return u&&i(t)?u(o(t)):t}})},94003:function(t,e,n){"use strict";var r=n(46518),i=n(79039),o=n(20034),a=n(22195),s=n(15652),u=Object.isFrozen;r({target:"Object",stat:!0,forced:s||i((function(){u(1)}))},{isFrozen:function(t){return!o(t)||!(!s||"ArrayBuffer"!==a(t))||!!u&&u(t)}})},94052:function(t,e,n){"use strict";var r=n(46518),i=n(34124);r({target:"Object",stat:!0,forced:Object.isExtensible!==i},{isExtensible:i})},94170:function(t,e,n){"use strict";var r=n(46518),i=n(30566);r({target:"Function",proto:!0,forced:Function.bind!==i},{bind:i})},94298:function(t,e,n){"use strict";var r=n(46518),i=n(77240);r({target:"String",proto:!0,forced:n(23061)("fixed")},{fixed:function(){return i(this,"tt","","")}})},94402:function(t,e,n){"use strict";var r=n(79504),i=Set.prototype;t.exports={Set:Set,add:r(i.add),has:r(i.has),remove:r(i.delete),proto:i}},94483:function(t,e,n){"use strict";var r,i,o,a,s=n(44576),u=n(89429),c=n(1548),l=s.structuredClone,f=s.ArrayBuffer,h=s.MessageChannel,d=!1;if(c)d=function(t){l(t,{transfer:[t]})};else if(f)try{h||(r=u("worker_threads"))&&(h=r.MessageChannel),h&&(i=new h,o=new f(2),a=function(t){i.port1.postMessage(null,[t])},2===o.byteLength&&(a(o),0===o.byteLength&&(d=a)))}catch(t){}t.exports=d},94490:function(t,e,n){"use strict";var r=n(46518),i=n(79504),o=n(34376),a=i([].reverse),s=[1,2];r({target:"Array",proto:!0,forced:String(s)===String(s.reverse())},{reverse:function(){return o(this)&&(this.length=this.length),a(this)}})},94644:function(t,e,n){"use strict";var r,i,o,a=n(77811),s=n(43724),u=n(44576),c=n(94901),l=n(20034),f=n(39297),h=n(36955),d=n(16823),p=n(66699),v=n(36840),g=n(62106),y=n(1625),m=n(42787),b=n(52967),w=n(78227),x=n(33392),k=n(91181),A=k.enforce,S=k.get,E=u.Int8Array,T=E&&E.prototype,_=u.Uint8ClampedArray,O=_&&_.prototype,M=E&&m(E),C=T&&m(T),L=Object.prototype,R=u.TypeError,I=w("toStringTag"),P=x("TYPED_ARRAY_TAG"),j="TypedArrayConstructor",F=a&&!!b&&"Opera"!==h(u.opera),N=!1,D={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},B={BigInt64Array:8,BigUint64Array:8},z=function(t){var e=m(t);if(l(e)){var n=S(e);return n&&f(n,j)?n[j]:z(e)}},U=function(t){if(!l(t))return!1;var e=h(t);return f(D,e)||f(B,e)};for(r in D)(o=(i=u[r])&&i.prototype)?A(o)[j]=i:F=!1;for(r in B)(o=(i=u[r])&&i.prototype)&&(A(o)[j]=i);if((!F||!c(M)||M===Function.prototype)&&(M=function(){throw new R("Incorrect invocation")},F))for(r in D)u[r]&&b(u[r],M);if((!F||!C||C===L)&&(C=M.prototype,F))for(r in D)u[r]&&b(u[r].prototype,C);if(F&&m(O)!==C&&b(O,C),s&&!f(C,I))for(r in N=!0,g(C,I,{configurable:!0,get:function(){return l(this)?this[P]:void 0}}),D)u[r]&&p(u[r],P,r);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:F,TYPED_ARRAY_TAG:N&&P,aTypedArray:function(t){if(U(t))return t;throw new R("Target is not a typed array")},aTypedArrayConstructor:function(t){if(c(t)&&(!b||y(M,t)))return t;throw new R(d(t)+" is not a typed array constructor")},exportTypedArrayMethod:function(t,e,n,r){if(s){if(n)for(var i in D){var o=u[i];if(o&&f(o.prototype,t))try{delete o.prototype[t]}catch(n){try{o.prototype[t]=e}catch(t){}}}C[t]&&!n||v(C,t,n?e:F&&T[t]||e,r)}},exportTypedArrayStaticMethod:function(t,e,n){var r,i;if(s){if(b){if(n)for(r in D)if((i=u[r])&&f(i,t))try{delete i[t]}catch(t){}if(M[t]&&!n)return;try{return v(M,t,n?e:F&&M[t]||e)}catch(t){}}for(r in D)!(i=u[r])||i[t]&&!n||v(i,t,e)}},getTypedArrayConstructor:z,isView:function(t){if(!l(t))return!1;var e=h(t);return"DataView"===e||f(D,e)||f(B,e)},isTypedArray:U,TypedArray:M,TypedArrayPrototype:C}},94901:function(t){"use strict";var e="object"==typeof document&&document.all;t.exports=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(t){return"function"==typeof t}},95477:function(t,e,n){"use strict";n(15823)("Int32",(function(t){return function(e,n,r){return t(this,e,n,r)}}))},95636:function(t,e,n){"use strict";var r=n(44576),i=n(79504),o=n(46706),a=n(57696),s=n(55169),u=n(67394),c=n(94483),l=n(1548),f=r.structuredClone,h=r.ArrayBuffer,d=r.DataView,p=Math.min,v=h.prototype,g=d.prototype,y=i(v.slice),m=o(v,"resizable","get"),b=o(v,"maxByteLength","get"),w=i(g.getInt8),x=i(g.setInt8);t.exports=(l||c)&&function(t,e,n){var r,i=u(t),o=void 0===e?i:a(e),v=!m||!m(t);if(s(t),l&&(t=f(t,{transfer:[t]}),i===o&&(n||v)))return t;if(i>=o&&(!n||v))r=y(t,0,o);else{var g=n&&!v&&b?{maxByteLength:b(t)}:void 0;r=new h(o,g);for(var k=new d(t),A=new d(r),S=p(o,i),E=0;E@`~"+u+"]"),m=i(v.exec),b={"\t":"t","\n":"n","\v":"v","\f":"f","\r":"r"},w=function(t){var e=d(h(t,0),16);return e.length<3?"\\x"+s(e,2,"0"):"\\u"+s(e,4,"0")};r({target:"RegExp",stat:!0,forced:!l||"\\x61b"!==l("ab")},{escape:function(t){o(t);for(var e=t.length,n=c(e),r=0;r=56320||r+1>=e||56320!=(64512&h(t,r+1))?n[r]=w(i):(n[r]=i,n[++r]=f(t,r))}}return p(n,"")}})},96167:function(t,e,n){"use strict";var r=n(46518),i=n(69565),o=n(79306),a=n(36043),s=n(1103),u=n(72652);r({target:"Promise",stat:!0,forced:n(90537)},{allSettled:function(t){var e=this,n=a.f(e),r=n.resolve,c=n.reject,l=s((function(){var n=o(e.resolve),a=[],s=0,c=1;u(t,(function(t){var o=s++,u=!1;c++,i(n,e,t).then((function(t){u||(u=!0,a[o]={status:"fulfilled",value:t},--c||r(a))}),(function(t){u||(u=!0,a[o]={status:"rejected",reason:t},--c||r(a))}))})),--c||r(a)}));return l.error&&c(l.value),n.promise}})},96319:function(t,e,n){"use strict";var r=n(28551),i=n(9539);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){i(t,"throw",e)}}},96369:function(t,e,n){"use strict";function r(t){if(Array.isArray(t))return t}n.d(e,{A:function(){return r}})},96395:function(t){"use strict";t.exports=!1},96801:function(t,e,n){"use strict";var r=n(43724),i=n(48686),o=n(24913),a=n(28551),s=n(25397),u=n(71072);e.f=r&&!i?Object.defineProperties:function(t,e){a(t);for(var n,r=s(e),i=u(e),c=i.length,l=0;c>l;)o.f(t,n=i[l++],r[n]);return t}},96837:function(t){"use strict";var e=TypeError;t.exports=function(t){if(t>9007199254740991)throw e("Maximum allowed index exceeded");return t}},97040:function(t,e,n){"use strict";var r=n(43724),i=n(24913),o=n(6980);t.exports=function(t,e,n){r?i.f(t,e,o(0,n)):t[e]=n}},97080:function(t,e,n){"use strict";var r=n(94402).has;t.exports=function(t){return r(t),t}},97324:function(t,e,n){"use strict";var r=n(44576),i=n(70511),o=n(24913).f,a=n(77347).f,s=r.Symbol;if(i("dispose"),s){var u=a(s,"dispose");u.enumerable&&u.configurable&&u.writable&&o(s,"dispose",{value:u.value,enumerable:!1,configurable:!1,writable:!1})}},97751:function(t,e,n){"use strict";var r=n(44576),i=n(94901);t.exports=function(t,e){return arguments.length<2?(n=r[t],i(n)?n:void 0):r[t]&&r[t][e];var n}},97812:function(t,e,n){"use strict";var r=n(46518),i=n(39297),o=n(10757),a=n(16823),s=n(25745),u=n(91296),c=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!u},{keyFor:function(t){if(!o(t))throw new TypeError(a(t)+" is not a symbol");if(i(c,t))return c[t]}})},97916:function(t,e,n){"use strict";var r=n(76080),i=n(69565),o=n(48981),a=n(96319),s=n(44209),u=n(33517),c=n(26198),l=n(97040),f=n(70081),h=n(50851),d=Array;t.exports=function(t){var e=o(t),n=u(this),p=arguments.length,v=p>1?arguments[1]:void 0,g=void 0!==v;g&&(v=r(v,p>2?arguments[2]:void 0));var y,m,b,w,x,k,A=h(e),S=0;if(!A||this===d&&s(A))for(y=c(e),m=n?new this(y):d(y);y>S;S++)k=g?v(e[S],S):e[S],l(m,S,k);else for(m=n?new this:[],x=(w=f(e,A)).next;!(b=i(x,w)).done;S++)k=g?a(w,v,[b.value,S],!0):b.value,l(m,S,k);return m.length=S,m}},98406:function(t,e,n){"use strict";n(23792),n(27337);var r=n(46518),i=n(44576),o=n(93389),a=n(97751),s=n(69565),u=n(79504),c=n(43724),l=n(67416),f=n(36840),h=n(62106),d=n(56279),p=n(10687),v=n(33994),g=n(91181),y=n(90679),m=n(94901),b=n(39297),w=n(76080),x=n(36955),k=n(28551),A=n(20034),S=n(655),E=n(2360),T=n(6980),_=n(70081),O=n(50851),M=n(62529),C=n(22812),L=n(78227),R=n(74488),I=L("iterator"),P="URLSearchParams",j=P+"Iterator",F=g.set,N=g.getterFor(P),D=g.getterFor(j),B=o("fetch"),z=o("Request"),U=o("Headers"),W=z&&z.prototype,H=U&&U.prototype,q=i.TypeError,V=i.encodeURIComponent,$=String.fromCharCode,G=a("String","fromCodePoint"),X=parseInt,Y=u("".charAt),K=u([].join),J=u([].push),Z=u("".replace),Q=u([].shift),tt=u([].splice),et=u("".split),nt=u("".slice),rt=u(/./.exec),it=/\+/g,ot=/^[0-9a-f]+$/i,at=function(t,e){var n=nt(t,e,e+2);return rt(ot,n)?X(n,16):NaN},st=function(t){for(var e=0,n=128;n>0&&t&n;n>>=1)e++;return e},ut=function(t){var e=null;switch(t.length){case 1:e=t[0];break;case 2:e=(31&t[0])<<6|63&t[1];break;case 3:e=(15&t[0])<<12|(63&t[1])<<6|63&t[2];break;case 4:e=(7&t[0])<<18|(63&t[1])<<12|(63&t[2])<<6|63&t[3]}return e>1114111?null:e},ct=function(t){for(var e=(t=Z(t,it," ")).length,n="",r=0;re){n+="%",r++;continue}var o=at(t,r+1);if(o!=o){n+=i,r++;continue}r+=2;var a=st(o);if(0===a)i=$(o);else{if(1===a||a>4){n+="�",r++;continue}for(var s=[o],u=1;ue||"%"!==Y(t,r));){var c=at(t,r+1);if(c!=c){r+=3;break}if(c>191||c<128)break;J(s,c),r+=2,u++}if(s.length!==a){n+="�";continue}var l=ut(s);null===l?n+="�":i=G(l)}}n+=i,r++}return n},lt=/[!'()~]|%20/g,ft={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},ht=function(t){return ft[t]},dt=function(t){return Z(V(t),lt,ht)},pt=v((function(t,e){F(this,{type:j,target:N(t).entries,index:0,kind:e})}),P,(function(){var t=D(this),e=t.target,n=t.index++;if(!e||n>=e.length)return t.target=null,M(void 0,!0);var r=e[n];switch(t.kind){case"keys":return M(r.key,!1);case"values":return M(r.value,!1)}return M([r.key,r.value],!1)}),!0),vt=function(t){this.entries=[],this.url=null,void 0!==t&&(A(t)?this.parseObject(t):this.parseQuery("string"==typeof t?"?"===Y(t,0)?nt(t,1):t:S(t)))};vt.prototype={type:P,bindURL:function(t){this.url=t,this.update()},parseObject:function(t){var e,n,r,i,o,a,u,c=this.entries,l=O(t);if(l)for(n=(e=_(t,l)).next;!(r=s(n,e)).done;){if(o=(i=_(k(r.value))).next,(a=s(o,i)).done||(u=s(o,i)).done||!s(o,i).done)throw new q("Expected sequence with length 2");J(c,{key:S(a.value),value:S(u.value)})}else for(var f in t)b(t,f)&&J(c,{key:f,value:S(t[f])})},parseQuery:function(t){if(t)for(var e,n,r=this.entries,i=et(t,"&"),o=0;o0?arguments[0]:void 0));c||(this.size=t.entries.length)},yt=gt.prototype;if(d(yt,{append:function(t,e){var n=N(this);C(arguments.length,2),J(n.entries,{key:S(t),value:S(e)}),c||this.length++,n.updateURL()},delete:function(t){for(var e=N(this),n=C(arguments.length,1),r=e.entries,i=S(t),o=n<2?void 0:arguments[1],a=void 0===o?o:S(o),s=0;se.key?1:-1})),t.updateURL()},forEach:function(t){for(var e,n=N(this).entries,r=w(t,arguments.length>1?arguments[1]:void 0),i=0;i1?wt(arguments[1]):{})}}),m(z)){var xt=function(t){return y(this,W),new z(t,arguments.length>1?wt(arguments[1]):{})};W.constructor=xt,xt.prototype=W,r({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:xt})}}t.exports={URLSearchParams:gt,getState:N}},98690:function(t,e,n){"use strict";var r=n(46518),i=n(53250),o=Math.exp;r({target:"Math",stat:!0},{tanh:function(t){var e=+t,n=i(e),r=i(-e);return n===1/0?1:r===1/0?-1:(n-r)/(o(e)+o(-e))}})},98721:function(t,e,n){"use strict";var r=n(43724),i=n(79504),o=n(62106),a=URLSearchParams.prototype,s=i(a.forEach);r&&!("size"in a)&&o(a,"size",{get:function(){var t=0;return s(this,(function(){t++})),t},configurable:!0,enumerable:!0})},99449:function(t,e,n){"use strict";var r,i=n(46518),o=n(27476),a=n(77347).f,s=n(18014),u=n(655),c=n(60511),l=n(67750),f=n(41436),h=n(96395),d=o("".slice),p=Math.min,v=f("endsWith");i({target:"String",proto:!0,forced:!(!h&&!v&&(r=a(String.prototype,"endsWith"),r&&!r.writable)||v)},{endsWith:function(t){var e=u(l(this));c(t);var n=arguments.length>1?arguments[1]:void 0,r=e.length,i=void 0===n?r:p(s(n),r),o=u(t);return d(e,i-o.length,i)===o}})},99590:function(t,e,n){"use strict";var r=n(91291),i=RangeError;t.exports=function(t){var e=r(t);if(e<0)throw new i("The argument can't be less than 0");return e}}},o={};function a(t){var e=o[t];if(void 0!==e)return e.exports;var n=o[t]={exports:{}};return i[t].call(n.exports,n,n.exports,a),n.exports}t="function"==typeof Symbol?Symbol("webpack queues"):"__webpack_queues__",e="function"==typeof Symbol?Symbol("webpack exports"):"__webpack_exports__",n="function"==typeof Symbol?Symbol("webpack error"):"__webpack_error__",r=function(t){t&&t.d<1&&(t.d=1,t.forEach((function(t){t.r--})),t.forEach((function(t){t.r--?t.r++:t()})))},a.a=function(i,o,a){var s;a&&((s=[]).d=-1);var u,c,l,f=new Set,h=i.exports,d=new Promise((function(t,e){l=e,c=t}));d[e]=h,d[t]=function(t){s&&t(s),f.forEach(t),d.catch((function(){}))},i.exports=d,o((function(i){var o;u=function(i){return i.map((function(i){if(null!==i&&"object"==typeof i){if(i[t])return i;if(i.then){var o=[];o.d=0,i.then((function(t){a[e]=t,r(o)}),(function(t){a[n]=t,r(o)}));var a={};return a[t]=function(t){t(o)},a}}var s={};return s[t]=function(){},s[e]=i,s}))}(i);var a=function(){return u.map((function(t){if(t[n])throw t[n];return t[e]}))},c=new Promise((function(e){(o=function(){e(a)}).r=0;var n=function(t){t!==s&&!f.has(t)&&(f.add(t),t&&!t.d&&(o.r++,t.push(o)))};u.map((function(e){e[t](n)}))}));return o.r?c:a()}),(function(t){t?l(d[n]=t):c(h),r(s)})),s&&s.d<0&&(s.d=0)},a.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return a.d(e,{a:e}),e},a.d=function(t,e){for(var n in e)a.o(e,n)&&!a.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},a.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},a(84315);var s=a(26561);return s.default}()})); \ No newline at end of file diff --git a/assets/foliate-js/src/book.js b/assets/foliate-js/src/book.js index dc41ca5c..bbd1661d 100644 --- a/assets/foliate-js/src/book.js +++ b/assets/foliate-js/src/book.js @@ -171,6 +171,72 @@ const handleSelection = (view, doc, index) => { }); }; +const AUTO_PAGE_DELAY_MS = 1000; +const AUTO_PAGE_SCREEN_BOTTOM_THRESHOLD = 0.9; +const AUTO_PAGE_POST_NEXT_RECHECK_INTERVAL_MS = 120; +const AUTO_PAGE_POST_NEXT_RECHECK_MAX_ATTEMPTS = 12; +const AUTO_PAGE_POST_NEXT_RECHECK_INITIAL_DELAY_MS = 80; + +const getAutoPageState = (view) => { + if (!view.__anxAutoPageState) { + view.__anxAutoPageState = { + sessionId: 0, + currentPageKey: null, + triggeredPages: new Set(), + pendingFromPageKey: null, + pendingTimer: null, + postNextRecheckTimer: null, + postNextRecheckAttempts: 0, + awaitingPageAdvanceFromKey: null, + }; + } + return view.__anxAutoPageState; +}; + +const clearAutoPageTimer = (state) => { + if (!state.pendingTimer) return; + clearTimeout(state.pendingTimer); + state.pendingTimer = null; +}; + +const clearAutoPagePostNextRecheck = (state) => { + if (!state.postNextRecheckTimer) return; + clearTimeout(state.postNextRecheckTimer); + state.postNextRecheckTimer = null; +}; + +const resetAutoPageSessionState = (state) => { + state.currentPageKey = null; + state.triggeredPages.clear(); + state.pendingFromPageKey = null; + state.postNextRecheckAttempts = 0; + state.awaitingPageAdvanceFromKey = null; +}; + +const startAutoPageSession = (view) => { + const state = getAutoPageState(view); + clearAutoPageTimer(state); + clearAutoPagePostNextRecheck(state); + state.sessionId += 1; + resetAutoPageSessionState(state); + return state; +}; + +const stopAutoPageSession = (view) => { + const state = getAutoPageState(view); + clearAutoPageTimer(state); + clearAutoPagePostNextRecheck(state); + resetAutoPageSessionState(state); +}; + +const getAutoPageLocationKey = (lastLocation, index) => { + if (!lastLocation) return `index:${index}:none`; + const cfi = lastLocation.cfi ?? ''; + const current = lastLocation.location?.current ?? ''; + const chapter = lastLocation.chapterLocation?.current ?? ''; + return `index:${index}|cfi:${cfi}|loc:${current}|chapter:${chapter}`; +}; + const setSelectionHandler = (view, doc, index) => { let hasActiveSelection = false; let lastPointerUpRange = null; @@ -192,6 +258,7 @@ const setSelectionHandler = (view, doc, index) => { lastPointerUpRange = null; doc.__anxSelectionClearedAt = Date.now(); doc.__anxSuppressClick = true; + stopAutoPageSession(view); callFlutter('onSelectionCleared'); }; @@ -346,6 +413,7 @@ const setSelectionHandler = (view, doc, index) => { const container = view.shadowRoot.querySelector('foliate-paginator').shadowRoot.querySelector("#container"); if (!container) return; globalThis.originalScrollLeft = container.scrollLeft; + startAutoPageSession(view); }); @@ -356,21 +424,103 @@ const setSelectionHandler = (view, doc, index) => { const selRange = getSelectionRange(doc.getSelection()) if (!selRange) return + if (!lastLocation.range) return; - if (globalThis.pageDebounceTimer) { - clearTimeout(globalThis.pageDebounceTimer); - globalThis.pageDebounceTimer = null; + const container = view.shadowRoot.querySelector('foliate-paginator').shadowRoot.querySelector("#container"); + if (!container) return; + + const state = getAutoPageState(view); + if (state.sessionId === 0) { + startAutoPageSession(view); } - const container = view.shadowRoot.querySelector('foliate-paginator').shadowRoot.querySelector("#container"); + const pageKey = getAutoPageLocationKey(lastLocation, index); + if (state.currentPageKey !== pageKey) { + if ( + state.awaitingPageAdvanceFromKey + && state.awaitingPageAdvanceFromKey !== pageKey + ) { + state.awaitingPageAdvanceFromKey = null; + state.postNextRecheckAttempts = 0; + clearAutoPagePostNextRecheck(state); + } + state.currentPageKey = pageKey; + } + + if (state.pendingFromPageKey && state.pendingFromPageKey !== pageKey) { + clearAutoPageTimer(state); + state.pendingFromPageKey = null; + } - if (selRange.compareBoundaryPoints(Range.END_TO_END, lastLocation.range) >= 0) { - globalThis.pageDebounceTimer = setTimeout(async () => { - await view.next(); - globalThis.originalScrollLeft = container.scrollLeft; - globalThis.pageDebounceTimer = null; - }, 1000); - return + let compareToPageEnd; + try { + compareToPageEnd = selRange.compareBoundaryPoints(Range.END_TO_END, lastLocation.range); + } catch { + return; + } + const rangeReachedPageEnd = compareToPageEnd >= 0; + const selectionPos = getPosition(selRange); + const nearScreenBottom = selectionPos.bottom >= AUTO_PAGE_SCREEN_BOTTOM_THRESHOLD; + const reachedCurrentPageBottom = rangeReachedPageEnd && nearScreenBottom; + + if (!reachedCurrentPageBottom && state.pendingFromPageKey === pageKey) { + clearAutoPageTimer(state); + state.pendingFromPageKey = null; + } + + if (reachedCurrentPageBottom) { + if (state.pendingFromPageKey === pageKey) { + if (state.pendingTimer) return; + state.pendingFromPageKey = null; + } + if (state.triggeredPages.has(pageKey)) return; + + state.pendingFromPageKey = pageKey; + clearAutoPagePostNextRecheck(state); + state.awaitingPageAdvanceFromKey = null; + state.postNextRecheckAttempts = 0; + clearAutoPageTimer(state); + const scheduledSessionId = state.sessionId; + state.pendingTimer = setTimeout(async () => { + state.pendingTimer = null; + if (scheduledSessionId !== state.sessionId) return; + state.triggeredPages.add(pageKey); + try { + await view.next(); + const latestContainer = view.shadowRoot.querySelector('foliate-paginator').shadowRoot.querySelector("#container"); + if (latestContainer) { + globalThis.originalScrollLeft = latestContainer.scrollLeft; + } + } finally { + if (state.pendingFromPageKey === pageKey) { + state.pendingFromPageKey = null; + } + state.awaitingPageAdvanceFromKey = pageKey; + state.postNextRecheckAttempts = 0; + clearAutoPagePostNextRecheck(state); + const runPostNextSelectionRecheck = () => { + state.postNextRecheckTimer = null; + if (scheduledSessionId !== state.sessionId) return; + if (state.awaitingPageAdvanceFromKey !== pageKey) return; + state.postNextRecheckAttempts += 1; + try { + doc.dispatchEvent(new Event('selectionchange')); + } catch { + return; + } + if (state.postNextRecheckAttempts >= AUTO_PAGE_POST_NEXT_RECHECK_MAX_ATTEMPTS) return; + state.postNextRecheckTimer = setTimeout( + runPostNextSelectionRecheck, + AUTO_PAGE_POST_NEXT_RECHECK_INTERVAL_MS, + ); + }; + state.postNextRecheckTimer = setTimeout( + runPostNextSelectionRecheck, + AUTO_PAGE_POST_NEXT_RECHECK_INITIAL_DELAY_MS, + ); + } + }, AUTO_PAGE_DELAY_MS); + return; } const preventScroll = () => {