Files
MookNote/assets/foliate-js/dist/bundle.js
2026-06-20 00:54:40 +08:00

2 lines
582 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/*! 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+"</"+h+">"},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);n<e;n++)r[n]=t[n];return r}var f=function(t){var e,n=0,r=function(t){if(t.id=n++,t.subitems){var e,i=c(t.subitems);try{for(i.s();!(e=i.n()).done;){var o=e.value;r(o)}}catch(t){i.e(t)}finally{i.f()}}},i=c(t);try{for(i.s();!(e=i.n()).done;){var o=e.value;r(o)}}catch(t){i.e(t)}finally{i.f()}return t},h=function(t){return t.map((function(t){var e;return null!==(e=t.subitems)&&void 0!==e&&e.length?[t,h(t.subitems)].flat():t})).flat()},d=function(){return(0,a.A)((function t(){(0,o.A)(this,t)}),[{key:"init",value:(t=(0,i.A)(u().mark((function t(e){var n,i,o,a,s,l,d,p,v,g,y,m,b,w,x,k,A,S,E,T,_,O,M,C,L,R,I;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=e.toc,i=e.ids,o=e.splitHref,a=e.getFragment,f(n),s=h(n),l=new Map,d=c(s.entries()),t.prev=1,d.s();case 2:if((p=d.n()).done){t.next=8;break}return g=(0,r.A)(p.value,2),y=g[0],m=g[1],t.next=3,o(null==m?void 0:m.href);case 3:if(L=v=t.sent,!(C=null!==L)){t.next=4;break}C=void 0!==v;case 4:if(!C){t.next=5;break}R=v,t.next=6;break;case 5:R=[];case 6:b=R,w=(0,r.A)(b,2),x=w[0],k=w[1],A={fragment:k,item:m},l.has(x)?l.get(x).items.push(A):l.set(x,{prev:s[y-1],items:[A]});case 7:t.next=2;break;case 8:t.next=10;break;case 9:t.prev=9,I=t.catch(1),d.e(I);case 10:return t.prev=10,d.f(),t.finish(10);case 11:S=new Map,E=c(i.entries());try{for(E.s();!(T=E.n()).done;)_=(0,r.A)(T.value,2),O=_[0],M=_[1],l.has(M)?S.set(M,l.get(M)):S.set(M,S.get(i[O-1]))}catch(t){E.e(t)}finally{E.f()}this.ids=i,this.map=S,this.getFragment=a;case 12:case"end":return t.stop()}}),t,this,[[1,9,10,11]])}))),function(e){return t.apply(this,arguments)})},{key:"getProgress",value:function(t,e){if(this.ids){var n=this.ids[t],i=this.map.get(n);if(!i)return null;var o=i.prev,a=i.items;if(!a)return o;if(!e||1===a.length&&!a[0].fragment)return a[0].item;var s,u=e.startContainer.getRootNode(),l=c(a.entries());try{for(l.s();!(s=l.n()).done;){var f,h,d=(0,r.A)(s.value,2),p=d[0],v=d[1].fragment,g=this.getFragment(u,v);if(g&&e.comparePoint(g,0)>0)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;s<a;s++)if((u=_(o,s))<48||u>i)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<e;)n=y(a,A++),r=S%4?64*r+f[n]:f[n],S++%4&&(u+=g(255&r>>(-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<o;i++)if(r[i]===v){e(r,i,1);break}return r},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:l.f}))},fastKey:function(t,e){if(!a(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!s(t,v)){if(!f(t))return"F";if(!e)return"E";y(t)}return t[v].objectID},getWeakData:function(t,e){if(!s(t,v)){if(!f(t))return!0;if(!e)return!1;y(t)}return t[v].weakData},onFreeze:function(t){return d&&p&&f(t)&&!s(t,v)&&y(t),t}};o[v]=!0},3453:function(t,e,n){"use strict";n.d(e,{A:function(){return s}});var r=n(96369),i=n(6986),o=n(27800),a=n(76562);function s(t,e){return(0,r.A)(t)||(0,i.A)(t,e)||(0,o.A)(t,e)||(0,a.A)()}},3470:function(t){"use strict";t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},3607:function(t,e,n){"use strict";var r=n(82839).match(/AppleWebKit\/(\d+)\./);t.exports=!!r&&+r[1]},3690:function(t,e,n){"use strict";n(15823)("Uint16",(function(t){return function(e,n,r){return t(this,e,n,r)}}))},3717:function(t,e,n){"use strict";var r=n(79504),i=2147483647,o=/[^\0-\u007E]/,a=/[.\u3002\uFF0E\uFF61]/g,s="Overflow: input needs wider integers to process",u=RangeError,c=r(a.exec),l=Math.floor,f=String.fromCharCode,h=r("".charCodeAt),d=r([].join),p=r([].push),v=r("".replace),g=r("".split),y=r("".toLowerCase),m=function(t){return t+22+75*(t<26)},b=function(t,e,n){var r=0;for(t=n?l(t/700):t>>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<r;){var i=h(t,n++);if(i>=55296&&i<=56319&&n<r){var o=h(t,n++);56320==(64512&o)?p(e,((1023&i)<<10)+(1023&o)+65536):(p(e,i),n--)}else p(e,i)}return e}(t);var n,r,o=t.length,a=128,c=0,v=72;for(n=0;n<t.length;n++)(r=t[n])<128&&p(e,f(r));var g=e.length,y=g;for(g&&p(e,"-");y<o;){var w=i;for(n=0;n<t.length;n++)(r=t[n])>=a&&r<w&&(w=r);var x=y+1;if(w-a>l((i-c)/x))throw new u(s);for(c+=(w-a)*x,a=w,n=0;n<t.length;n++){if((r=t[n])<a&&++c>i)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<S)break;var E=k-S,T=36-S;p(e,f(m(S+E%T))),k=l(E/T),A+=36}p(e,f(m(k))),v=b(c,x,y===g),c=0,y++}}c++,a++}return d(e,"")};t.exports=function(t){var e,n,r=[],i=g(v(y(t),a,"."),".");for(e=0;e<i.length;e++)n=i[e],p(r,c(o,n)?"xn--"+w(n):n);return d(r,".")}},3995:function(t,e,n){"use strict";var r=n(46518),i=n(79504),o=n(24194),a=n(57696),s=n(67787),u=n(53602),c=Math.pow,l=1024,f=i(DataView.prototype.setUint16);r({target:"DataView",proto:!0},{setFloat16:function(t,e){f(o(this),a(t),function(t){if(t!=t)return 32256;if(0===t)return(1/t==-1/0)<<15;var e=t<0;if(e&&(t=-t),t>=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<e;n++)r[n]=t[n];return r}function U(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function W(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?U(Object(n),!0).forEach((function(e){(0,a.A)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):U(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function H(t,e,n){return e=(0,l.A)(e),(0,c.A)(t,q()?Reflect.construct(e,n||[],(0,l.A)(t).constructor):e.apply(t,n))}function q(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(q=function(){return!!t})()}function V(t,e,n){$(t,e),e.set(t,n)}function $(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function G(t,e,n){return t.set(Y(t,e),n),n}function X(t,e){return t.get(Y(t,e))}function Y(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 K(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 J(e.call(t));n="@@asyncIterator",r="@@iterator"}throw new TypeError("Object is not async iterable")}function J(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 J=function(t){this.s=t,this.n=t.next},J.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 J(t)}var k=(await Promise.resolve().then(n.bind(n,87631))).TTS,A="foliate-search:",S=new WeakMap,E=new WeakMap,T=function(t){function e(){var t;(0,s.A)(this,e);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return V(t=H(this,e,[].concat(r)),S,[]),V(t,E,-1),t}return(0,f.A)(e,t),(0,u.A)(e,[{key:"pushState",value:function(t){var e,n=X(S,this)[X(E,this)];n===t||null!=n&&n.fraction&&n.fraction===t.fraction||(X(S,this)[G(E,this,(e=X(E,this),++e))]=t,X(S,this).length=X(E,this)+1,this.dispatchEvent(new Event("index-change")),this.dispatchEvent(new CustomEvent("pushstate",{detail:t})))}},{key:"replaceState",value:function(t){var e=X(E,this);X(S,this)[e]=t}},{key:"back",value:function(){var t=X(E,this);if(!(t<=0)){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:"forward",value:function(){var t=X(E,this);if(!(t>=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)<X(S,this).length-1}},{key:"clear",value:function(){G(S,this,[]),G(E,this,-1)}}])}((0,h.A)(EventTarget)),_=function(t){if(!t)return{};try{var e,n,r,i,o=null!==(e=Intl.getCanonicalLocales(t)[0])&&void 0!==e?e:"en",a=new Intl.Locale(o);return{canonical:o,locale:a,isCJK:["zh","ja","kr"].includes(a.language),direction:null===(n=null!==(r=null===(i=a.getTextInfo)||void 0===i?void 0:i.call(a))&&void 0!==r?r:a.textInfo)||void 0===n?void 0:n.direction}}catch(t){return console.warn(t),{}}},O=new WeakMap,M=new WeakMap,C=new WeakMap,L=new WeakMap,R=new WeakMap,I=new WeakMap,P=new WeakMap,j=new WeakMap,F=new WeakSet,N=function(t){function e(){var t,n,r;return(0,s.A)(this,e),$(n=t=H(this,e),r=F),r.add(n),V(t,O,t.attachShadow({mode:"open"})),V(t,M,void 0),V(t,C,void 0),V(t,L,void 0),V(t,R,new Map),V(t,I,void 0),(0,a.A)(t,"isFixedLayout",!1),(0,a.A)(t,"lastLocation",void 0),(0,a.A)(t,"history",new T),V(t,P,null),V(t,j,new x.r),(0,a.A)(t,"oldValue",null),t.history.addEventListener("popstate",(function(e){var n=e.detail,r=t.resolveNavigation(n.state);t.renderer.goTo(r)})),t}return(0,f.A)(e,t),(0,u.A)(e,[{key:"open",value:(z=(0,o.A)(g().mark((function t(e){var r,i,o,a,s,u,c,l,f,h,d=this;return g().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.book=e,this.language=_(null===(r=e.metadata)||void 0===r?void 0:r.language),!e.splitTOCHref||!e.getTOCFragment){t.next=2;break}return s=e.sections.map((function(t){return t.id})),G(M,this,new m.r(e.sections,1500,1600)),u=e.splitTOCHref.bind(e),c=e.getTOCFragment.bind(e),G(C,this,new m.k),t.next=1,X(C,this).init({toc:null!==(o=e.toc)&&void 0!==o?o:[],ids:s,splitHref:u,getFragment:c});case 1:return G(L,this,new m.k),t.next=2,X(L,this).init({toc:null!==(a=e.pageList)&&void 0!==a?a:[],ids:s,splitHref:u,getFragment:c});case 2:if(this.isFixedLayout="pre-paginated"===(null===(i=this.book.rendition)||void 0===i?void 0:i.layout),!this.isFixedLayout){t.next=4;break}return t.next=3,Promise.resolve().then(n.bind(n,80823));case 3:this.renderer=document.createElement("foliate-fxl"),t.next=6;break;case 4:return t.next=5,Promise.resolve().then(n.bind(n,57541));case 5:this.renderer=document.createElement("foliate-paginator");case 6:this.renderer.setAttribute("exportparts","head,foot,filter"),this.renderer.addEventListener("load",(function(t){return Y(F,d,tt).call(d,t.detail)})),this.renderer.addEventListener("relocate",(function(t){return Y(F,d,Q).call(d,t.detail)})),this.renderer.addEventListener("create-overlayer",(function(t){return t.detail.attach(Y(F,d,ot).call(d,t.detail))})),this.renderer.open(e),X(O,this).append(this.renderer),e.sections.some((function(t){return t.mediaOverlay}))&&((l=e.media).activeClass||(l.activeClass="-epub-media-overlay-active"),f=e.media.activeClass,this.mediaOverlay=e.getMediaOverlay(),this.mediaOverlay.addEventListener("highlight",(function(t){var e=d.resolveNavigation(t.detail.text);d.renderer.goTo(e).then((function(){var t=d.renderer.getContents().find((function(t){return t.index=e.index})).doc,n=e.anchor(t);n.classList.add(f),h=new WeakRef(n)}))})),this.mediaOverlay.addEventListener("unhighlight",(function(){var t;null===(t=h)||void 0===t||null===(t=t.deref())||void 0===t||null===(t=t.classList)||void 0===t||t.remove(f)})));case 7:case"end":return t.stop()}}),t,this)}))),function(t){return z.apply(this,arguments)})},{key:"close",value:function(){var t,e,n;null===(t=this.renderer)||void 0===t||t.destroy(),null===(e=this.renderer)||void 0===e||e.remove(),G(M,this,null),G(C,this,null),G(L,this,null),G(R,this,new Map),this.lastLocation=null,this.history.clear(),this.tts=null,this.mediaOverlay=null,null===(n=X(j,this))||void 0===n||n.destroy()}},{key:"goToTextStart",value:function(){var t,e;return this.goTo(null!==(t=null===(e=this.book.landmarks)||void 0===e||null===(e=e.find((function(t){return t.type.includes("bodymatter")||t.type.includes("text")})))||void 0===e?void 0:e.href)&&void 0!==t?t:this.book.sections.findIndex((function(t){return"no"!==t.linear})))}},{key:"init",value:(B=(0,o.A)(g().mark((function t(e){var n,r,i;return g().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.lastLocation,r=e.showTextStart,!(i=n?this.resolveNavigation(n):null)){t.next=2;break}return t.next=1,this.renderer.goTo(i);case 1:this.history.pushState(n),t.next=5;break;case 2:if(!r){t.next=4;break}return t.next=3,this.goToTextStart();case 3:t.next=5;break;case 4:return this.history.pushState(0),t.next=5,this.next();case 5:case"end":return t.stop()}}),t,this)}))),function(t){return B.apply(this,arguments)})},{key:"addAnnotation",value:(N=(0,o.A)(g().mark((function t(e,n){var r,i,o,a,s,u,c,l,f,h,d,p,v,y,m,w,x,k,S,E;return g().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(o=e.value).startsWith(A)){t.next=4;break}return a=o.replace(A,""),t.next=1,this.resolveNavigation(a);case 1:if(s=t.sent,u=s.index,c=s.anchor,!(l=Y(F,this,it).call(this,u))){t.next=3;break}if(f=l.overlayer,h=l.doc,!n){t.next=2;break}return f.remove(o),t.abrupt("return");case 2:d=h?c(h):c,f.add(o,d,b.u.outline,{color:"#39c5bbaa"});case 3:return t.abrupt("return");case 4:return t.next=5,this.resolveNavigation(o);case 5:return p=t.sent,v=p.index,y=p.anchor,(m=Y(F,this,it).call(this,v))&&(w=m.overlayer,x=m.doc,w.remove(o),n||(k=x?y(x):y,S=function(t,e){return w.add(o,k,t,e)},Y(F,this,Z).call(this,"draw-annotation",{draw:S,annotation:e,doc:x,range:k}))),E=null!==(r=null===(i=X(C,this).getProgress(v))||void 0===i?void 0:i.label)&&void 0!==r?r:"",t.abrupt("return",{index:v,label:E});case 6:case"end":return t.stop()}}),t,this)}))),function(t,e){return N.apply(this,arguments)})},{key:"deleteAnnotation",value:function(t){return this.addAnnotation(t,!0)}},{key:"showAnnotation",value:(E=(0,o.A)(g().mark((function t(e){var n,r,i,o,a,s,u;return g().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.value,t.next=1,this.goTo(n);case 1:(r=t.sent)&&(i=r.index,o=r.anchor,a=Y(F,this,it).call(this,i),s=a.doc,u=o(s),Y(F,this,Z).call(this,"show-annotation",{value:n,index:i,range:u}));case 2:case"end":return t.stop()}}),t,this)}))),function(t){return E.apply(this,arguments)})},{key:"getCFI",value:function(t,e){var n,r=null!==(n=this.book.sections[t].cfi)&&void 0!==n?n:y.EL.fromIndex(t);return e?y.RK(r,y.yT(e)):r}},{key:"resolveCFI",value:function(t){if(this.book.resolveCFI)return this.book.resolveCFI(t);var e,n=y.qg(t);return{index:y.EL.toIndex((null!==(e=n.parent)&&void 0!==e?e:n).shift()),anchor:function(t){return y.Xp(t,n)}}}},{key:"resolveNavigation",value:function(t){try{if("number"==typeof t)return{index:t};if("number"==typeof t.fraction){var e=X(M,this).getSection(t.fraction),n=(0,i.A)(e,2);return{index:n[0],anchor:n[1]}}return y.Lu.test(t)?this.resolveCFI(t):this.book.resolveHref(t)}catch(e){console.error(e),console.error("Could not resolve target ".concat(t))}}},{key:"goTo",value:(S=(0,o.A)(g().mark((function t(e){var n,r;return g().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=this.resolveNavigation(e),t.prev=1,t.next=2,this.renderer.goTo(n);case 2:return this.history.pushState(e),t.abrupt("return",n);case 3:t.prev=3,r=t.catch(1),console.error(r),console.error("Could not go to ".concat(e));case 4:case"end":return t.stop()}}),t,this,[[1,3]])}))),function(t){return S.apply(this,arguments)})},{key:"goToFraction",value:(v=(0,o.A)(g().mark((function t(e){var n,r,o,a;return g().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=X(M,this).getSection(e),r=(0,i.A)(n,2),o=r[0],a=r[1],t.next=1,this.renderer.goTo({index:o,anchor:a});case 1:this.history.pushState({fraction:e});case 2:case"end":return t.stop()}}),t,this)}))),function(t){return v.apply(this,arguments)})},{key:"select",value:(h=(0,o.A)(g().mark((function t(e){var n,r;return g().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=1,this.resolveNavigation(e);case 1:return n=t.sent,t.next=2,this.renderer.goTo(W(W({},n),{},{select:!0}));case 2:this.history.pushState(e),t.next=4;break;case 3:t.prev=3,r=t.catch(0),console.error(r),console.error("Could not go to ".concat(e));case 4:case"end":return t.stop()}}),t,this,[[0,3]])}))),function(t){return h.apply(this,arguments)})},{key:"deselect",value:function(){var t,e=D(this.renderer.getContents());try{for(e.s();!(t=e.n()).done;)t.value.doc.defaultView.getSelection().removeAllRanges()}catch(t){e.e(t)}finally{e.f()}}},{key:"getSectionFractions",value:function(){var t,e,n,r,i=null!==(t=null===(e=X(C,this))||void 0===e?void 0:e.ids)&&void 0!==t?t:[];return(null!==(n=null===(r=X(M,this))||void 0===r?void 0:r.sectionFractions)&&void 0!==n?n:[]).map((function(t,e){var n;return{fraction:t,href:null!==(n=i[e])&&void 0!==n?n:"",index:e}}))}},{key:"getProgressOf",value:function(t,e){var n,r;return{tocItem:null===(n=X(C,this))||void 0===n?void 0:n.getProgress(t,e),pageItem:null===(r=X(L,this))||void 0===r?void 0:r.getProgress(t,e)}}},{key:"getTOCItemOf",value:(l=(0,o.A)(g().mark((function t(e){var n,r,i,o,a,s,u,c;return g().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=1,this.resolveNavigation(e);case 1:return n=t.sent,r=n.index,i=n.anchor,t.next=2,this.book.sections[r].createDocument();case 2:return o=t.sent,a=i(o),s=a instanceof Range,u=s?a:o.createRange(),s||u.selectNodeContents(a),t.abrupt("return",X(C,this).getProgress(r,u));case 3:t.prev=3,c=t.catch(0),console.error(c),console.error("Could not get ".concat(e));case 4:case"end":return t.stop()}}),t,this,[[0,3]])}))),function(t){return l.apply(this,arguments)})},{key:"prev",value:(c=(0,o.A)(g().mark((function t(e){return g().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,this.renderer.prev(e);case 1:case"end":return t.stop()}}),t,this)}))),function(t){return c.apply(this,arguments)})},{key:"next",value:(r=(0,o.A)(g().mark((function t(e){return g().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,this.renderer.next(e);case 1:case"end":return t.stop()}}),t,this)}))),function(t){return r.apply(this,arguments)})},{key:"goLeft",value:function(){return"rtl"===this.book.dir?this.next():this.prev()}},{key:"goRight",value:function(){return"rtl"===this.book.dir?this.prev():this.next()}},{key:"search",value:function(t){var e=this;return(0,p.A)(g().mark((function r(){var i,o,a,s,u,c,l,f,h,p,v,y,m,b,x,k,S,E,T,_,O;return g().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return console.log("search",t),e.clearSearch(),r.next=1,(0,d.A)(Promise.resolve().then(n.bind(n,49072)));case 1:i=r.sent,o=i.searchMatcher,a=t.query,s=t.index,u=o(w.u,W({defaultLocale:e.language},t)),c=null!=s?Y(F,e,at).call(e,u,a,s):Y(F,e,st).call(e,u,a),l=[],X(R,e).set(s,l),f=!1,h=!1,r.prev=2,v=K(c);case 3:return r.next=4,(0,d.A)(v.next());case 4:if(!(f=!(y=r.sent).done)){r.next=8;break}if(!(m=y.value).subitems){r.next=6;break}k=m.subitems.map((function(t){var e=t.cfi;return{value:A+e}})),X(R,e).set(m.index,k),S=D(k);try{for(S.s();!(E=S.n()).done;)T=E.value,e.addAnnotation(T)}catch(t){S.e(t)}finally{S.f()}return r.next=5,{label:null!==(b=null===(x=X(C,e).getProgress(m.index))||void 0===x?void 0:x.label)&&void 0!==b?b:"",subitems:m.subitems};case 5:r.next=7;break;case 6:return m.cfi&&(_={value:A+m.cfi},l.push(_),e.addAnnotation(_)),r.next=7,m;case 7:f=!1,r.next=3;break;case 8:r.next=10;break;case 9:r.prev=9,O=r.catch(2),h=!0,p=O;case 10:if(r.prev=10,r.prev=11,!f||null==v.return){r.next=12;break}return r.next=12,(0,d.A)(v.return());case 12:if(r.prev=12,!h){r.next=13;break}throw p;case 13:return r.finish(12);case 14:return r.finish(10);case 15:return r.next=16,"done";case 16:case"end":return r.stop()}}),r,null,[[2,9,10,15],[11,,12,14]])})))()}},{key:"clearSearch",value:function(){var t,e=D(X(R,this).values());try{for(e.s();!(t=e.n()).done;){var n,r=D(t.value);try{for(r.s();!(n=r.n()).done;){var i=n.value;this.deleteAnnotation(i)}}catch(t){r.e(t)}finally{r.f()}}}catch(t){e.e(t)}finally{e.f()}X(R,this).clear()}},{key:"initTTS",value:function(t){var e,n=this;if(t)return null===(e=Y(F,this,it).call(this,X(I,this)))||void 0===e?void 0:e.overlayer.remove(this.oldValue);var r=this.renderer.getContents()[0].doc;this.tts&&this.tts.doc===r||(this.tts=new k(r,w.u,(function(t){var e=Y(F,n,it).call(n,X(I,n)),r=null;if(e){var i=e.overlayer;n.oldValue&&i.remove(n.oldValue),r=n.getCFI(X(I,n),t),i.add(r,t,b.u.highlight,{color:"#39c5bc83"}),n.oldValue=r}return n.renderer.scrollToAnchor(t),r}),(function(t){return n.getCFI(X(I,n),t)})))}},{key:"startMediaOverlay",value:function(){var t=this.renderer.getContents()[0].index;return this.mediaOverlay.start(t)}},{key:"setTranslationMode",value:function(t){X(j,this).setTranslationMode(t)}},{key:"getTranslationMode",value:function(){return X(j,this).getTranslationMode()}},{key:"clearTranslations",value:function(){X(j,this).clearTranslations()}}]);var r,c,l,h,v,S,E,N,B,z}((0,h.A)(HTMLElement));function Z(t,e,n){return this.dispatchEvent(new CustomEvent(t,{detail:e,cancelable:n}))}function Q(t){var e,n,r,i,o,a=t.reason,s=t.range,u=t.index,c=t.fraction,l=t.size;G(I,this,u);var f=null!==(e=null===(n=X(M,this))||void 0===n?void 0:n.getProgress(u,c,l))&&void 0!==e?e:{},h=null===(r=X(C,this))||void 0===r?void 0:r.getProgress(u,s),d=null===(i=X(L,this))||void 0===i?void 0:i.getProgress(u,s),p=this.getCFI(u,s),v=this.renderer.pages?this.renderer.pages-2:f.section.total,g={current:null!==(o=this.renderer.page)&&void 0!==o?o:f.section.current,total:v};this.lastLocation=W(W({},f),{},{tocItem:h,pageItem:d,cfi:p,range:s,chapterLocation:g}),"snap"!==a&&"page"!==a&&"scroll"!==a||this.history.replaceState(p),!p||X(P,this)&&p===X(P,this)||(G(P,this,p),Y(F,this,Z).call(this,"relocate",this.lastLocation))}function tt(t){var e,n,r,i,o=t.doc,a=t.index;(e=o.documentElement).lang||(e.lang=null!==(n=this.language.canonical)&&void 0!==n?n:""),this.language.isCJK||(r=o.documentElement).dir||(r.dir=null!==(i=this.language.direction)&&void 0!==i?i:""),Y(F,this,et).call(this,o,a),Y(F,this,rt).call(this,o),Y(F,this,nt).call(this,o),X(j,this).observeDocument(o),Y(F,this,Z).call(this,"load",{doc:o,index:a})}function et(t,e){var n,r=this,i=this.book,o=i.sections[e],a=D(t.querySelectorAll("a[href]"));try{var s=function(){var t=n.value;t.addEventListener("click",(function(e){var n,a,s;e.preventDefault(),e.stopPropagation();var u=t.getAttribute("href"),c=null!==(n=null==o||null===(a=o.resolveHref)||void 0===a?void 0:a.call(o,u))&&void 0!==n?n:u;null!=i&&null!==(s=i.isExternal)&&void 0!==s&&s.call(i,c)?Promise.resolve(Y(F,r,Z).call(r,"external-link",{a:t,href:c},!0)).then((function(t){return t?globalThis.open(c,"_blank"):null})).catch((function(t){return console.error(t)})):Promise.resolve(Y(F,r,Z).call(r,"link",{a:t,href:c},!0)).then((function(t){return t?r.goTo(c):null})).catch((function(t){return console.error(t)}))}))};for(a.s();!(n=a.n()).done;)s()}catch(t){a.e(t)}finally{a.f()}}function nt(t){var e,n=this,r=D(t.querySelectorAll("img"));try{var i=function(){var t=e.value;if(t.closest("a[href]"))return 1;if(t.style.webkitTouchCallout="none",t.style.webkitUserSelect="none",t.style.userSelect="none",t.style.webkitUserDrag="none",t.draggable=!1,t.addEventListener("contextmenu",(function(t){t.preventDefault(),t.stopPropagation()}),!0),"ontouchstart"in window){var r,i=!1;t.addEventListener("touchstart",(function(e){i=!1,r=setTimeout((function(){i=!0,Y(F,n,Z).call(n,"click-image",{img:t})}),500)})),t.addEventListener("touchend",(function(t){clearTimeout(r)})),t.addEventListener("touchmove",(function(t){clearTimeout(r)})),t.addEventListener("click",(function(t){i&&(t.preventDefault(),t.stopPropagation(),i=!1)}),!0)}else t.addEventListener("click",(function(e){e.preventDefault(),e.stopPropagation(),Y(F,n,Z).call(n,"click-image",{img:t})}))};for(r.s();!(e=r.n()).done;)i()}catch(t){r.e(t)}finally{r.f()}}function rt(t){var e=this;t.addEventListener("click",(function(n){var r;if(!window.isFootNoteOpen()||n.currentTarget.__isFootNote){if("Range"!==t.getSelection().type){var i=t.position,o=t.scale,a=n.clientX,s=n.clientY;if(i){a*=o,s*=o;var u=t.documentElement.getBoundingClientRect().width*o;return"right"===i&&2.2*u<window.innerWidth&&(a+=.5*window.innerWidth),void Y(F,e,Z).call(e,"click-view",{x:a,y:s})}var c=null===(r=t.defaultView)||void 0===r?void 0:r.frameElement;if(c){var l=c.getBoundingClientRect();a+=l.left,s+=l.top}Y(F,e,Z).call(e,"click-view",{x:a,y:s})}}else window.closeFootNote()})),this.renderer.addEventListener("click",(function(t){for(var n=t.clientX,i=t.clientY;n>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<<r),g(f,1,1),y(f,2),b=m(f)}else g(f,0,n),g(f,1<<-e,0),b=m(f)+h("0",u);return u>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<i;)v(h,g++,p(a,r++));return o}})},11791:function(t,e,n){var r=n(25172),i=n(75546);t.exports=function t(e,n){function o(t,i,a,s){try{var u=e[t](i),c=u.value;return c instanceof r?n.resolve(c.v).then((function(t){o("next",t,a,s)}),(function(t){o("throw",t,a,s)})):n.resolve(c).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,s)}))}catch(t){s(t)}}var a;this.next||(i(t.prototype),i(t.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",(function(){return this}))),i(this,"_invoke",(function(t,e,r){function i(){return new n((function(e,n){o(t,r,e,n)}))}return a=a?a.then(i,i):i()}),!0)},t.exports.__esModule=!0,t.exports.default=t.exports},11898:function(t,e,n){"use strict";var r=n(46518),i=n(77240);r({target:"String",proto:!0,forced:n(23061)("big")},{big:function(){return i(this,"big","","")}})},12211:function(t,e,n){"use strict";var r=n(79039);t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},12725:function(t,e,n){"use strict";n.r(e),n.d(e,{unzlibSync:function(){return M}});var r=Uint8Array,i=Uint16Array,o=Uint32Array,a=new r([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,0,0,0]),s=new 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,0,0]),u=new r([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),c=function(t,e){for(var n=new i(31),r=0;r<31;++r)n[r]=e+=1<<t[r-1];var a=new o(n[30]);for(r=1;r<30;++r)for(var s=n[r];s<n[r+1];++s)a[s]=s-n[r]<<5|r;return[n,a]},l=c(a,2),f=l[0],h=l[1];f[28]=258,h[258]=28;for(var d=c(s,0)[0],p=new i(32768),v=0;v<32768;++v){var g=(43690&v)>>>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<r;++o)t[o]&&++a[t[o]-1];var s,u=new i(e);for(o=0;o<e;++o)u[o]=u[o-1]+a[o-1]<<1;if(n){s=new i(1<<e);var c=15-e;for(o=0;o<r;++o)if(t[o])for(var l=o<<4|t[o],f=e-t[o],h=u[t[o]-1]++<<f,d=h|(1<<f)-1;h<=d;++h)s[p[h]>>>c]=l}else for(s=new i(r),o=0;o<r;++o)t[o]&&(s[o]=p[u[t[o]-1]++]>>>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;n<t.length;++n)t[n]>e&&(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<P;++D)N[u[D]]=A(t,g+3*D,7);g+=3*P;var B=k(N),z=(1<<B)-1,U=y(N,B,1);for(D=0;D<j;){var W,H=U[A(t,g,z)];if(g+=15&H,(W=H>>>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<<O)-1,K=g;;K=g){var J=(q=b[S(t,g)&X])>>>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<<Q)-1)+f[D],g+=Q}var tt=E[S(t,g)&Y],et=tt>>>4;if(tt||T(3),g+=15&tt,G=d[et],et>3&&(Q=s[et],G+=S(t,g)&(1<<Q)-1,g+=Q),g>M){h&&T(0);break}l&&p(m+131072);for(var nt=m+Z;m<nt;m+=4)e[m]=e[m-G],e[m+1]=e[m+1-G],e[m+2]=e[m+2-G],e[m+3]=e[m+3-G];m=nt}}n.l=b,n.p=K,n.b=m,n.f=v,b&&(v=1,n.m=_,n.d=E,n.n=O)}while(!v);return m==e.length?e:function(t,e,n){(null==e||e<0)&&(e=0),(null==n||n>t.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;f<r;f++)e[f]=arguments[f]}return a(e,n+r)}})},13611:function(t,e,n){"use strict";var r=n(46518),i=n(44576),o=n(62106),a=n(43724),s=TypeError,u=Object.defineProperty,c=i.self!==i;try{if(a){var l=Object.getOwnPropertyDescriptor(i,"self");!c&&l&&l.get&&l.enumerable||o(i,"self",{get:function(){return i},set:function(t){if(this!==i)throw new s("Illegal invocation");u(i,"self",{value:t,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}else r({global:!0,simple:!0,forced:c},{self:i})}catch(t){}},13709:function(t,e,n){"use strict";var r=n(82839).match(/firefox\/(\d+)/i);t.exports=!!r&&+r[1]},13763:function(t,e,n){"use strict";var r=n(82839);t.exports=/MSIE|Trident/.test(r)},13925:function(t,e,n){"use strict";var r=n(20034);t.exports=function(t){return r(t)||null===t}},14601:function(t,e,n){"use strict";var r=n(97751),i=n(39297),o=n(66699),a=n(1625),s=n(52967),u=n(77740),c=n(11056),l=n(23167),f=n(32603),h=n(77584),d=n(80747),p=n(43724),v=n(96395);t.exports=function(t,e,n,g){var y="stackTraceLimit",m=g?2:1,b=t.split("."),w=b[b.length-1],x=r.apply(null,b);if(x){var k=x.prototype;if(!v&&i(k,"cause")&&delete k.cause,!n)return x;var A=r("Error"),S=e((function(t,e){var n=f(g?e:t,void 0),r=g?new x(t):new x;return void 0!==n&&o(r,"message",n),d(r,S,r.stack,2),this&&a(k,this)&&l(r,this,S),arguments.length>m&&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;d<g;)i=r[d++],v||i.key===s?(v=!0,l(this,i.key)):p++;for(;p<g;)(i=r[p++]).key===s&&i.value===u||c(this,i.key,i.value)}),{enumerable:!0,unsafe:!0})},14628:function(t,e,n){"use strict";var r=n(46518),i=n(36043);r({target:"Promise",stat:!0},{withResolvers:function(){var t=i.f(this);return{promise:t.promise,resolve:t.resolve,reject:t.reject}}})},15024:function(t,e,n){"use strict";var r=n(46518),i=n(83650),o=n(39835);r({target:"Set",proto:!0,real:!0,forced:!n(84916)("symmetricDifference")||!o("symmetricDifference")},{symmetricDifference:i})},15086:function(t,e,n){"use strict";var r=n(46518),i=n(59213).some;r({target:"Array",proto:!0,forced:!n(34598)("some")},{some:function(t){return i(this,t,arguments.length>1?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<u;)k(t,c++)})),E&&E(m,G),b=m.prototype=A(X)),b.constructor!==m&&h(b,"constructor",m),D(b).TypedArrayConstructor=m,$&&h(b,$,u);var S=m!==d;w[u]=m,r({global:!0,constructor:!0,forced:S,sham:!V},w),K in m||h(m,K,a),K in b||h(b,K,a),M(u)}):t.exports=function(){}},16034:function(t,e,n){"use strict";var r=n(46518),i=n(32357).values;r({target:"Object",stat:!0},{values:function(t){return i(t)}})},16193:function(t,e,n){"use strict";var r=n(79504),i=Error,o=r("".replace),a=String(new i("zxcasd").stack),s=/\n\s*at [^:]*:[^\n]*/,u=s.test(a);t.exports=function(t,e){if(u&&"string"==typeof t&&!i.prepareStackTrace)for(;e--;)t=o(t,s,"");return t}},16280:function(t,e,n){"use strict";var r=n(46518),i=n(44576),o=n(18745),a=n(14601),s="WebAssembly",u=i[s],c=7!==new Error("e",{cause:7}).cause,l=function(t,e){var n={};n[t]=a(t,e,c),r({global:!0,constructor:!0,arity:1,forced:c},n)},f=function(t,e){if(u&&u[t]){var n={};n[t]=a(s+"."+t,e,c),r({target:s,stat:!0,constructor:!0,arity:1,forced:c},n)}};l("Error",(function(t){return function(e){return o(t,this,arguments)}})),l("EvalError",(function(t){return function(e){return o(t,this,arguments)}})),l("RangeError",(function(t){return function(e){return o(t,this,arguments)}})),l("ReferenceError",(function(t){return function(e){return o(t,this,arguments)}})),l("SyntaxError",(function(t){return function(e){return o(t,this,arguments)}})),l("TypeError",(function(t){return function(e){return o(t,this,arguments)}})),l("URIError",(function(t){return function(e){return o(t,this,arguments)}})),f("CompileError",(function(t){return function(e){return o(t,this,arguments)}})),f("LinkError",(function(t){return function(e){return o(t,this,arguments)}})),f("RuntimeError",(function(t){return function(e){return o(t,this,arguments)}}))},16308:function(t,e,n){"use strict";var r=n(46518),i=n(77240);r({target:"String",proto:!0,forced:n(23061)("sup")},{sup:function(){return i(this,"sup","","")}})},16468:function(t,e,n){"use strict";var r=n(46518),i=n(44576),o=n(79504),a=n(92796),s=n(36840),u=n(3451),c=n(72652),l=n(90679),f=n(94901),h=n(64117),d=n(20034),p=n(79039),v=n(84428),g=n(10687),y=n(23167);t.exports=function(t,e,n){var m=-1!==t.indexOf("Map"),b=-1!==t.indexOf("Weak"),w=m?"set":"add",x=i[t],k=x&&x.prototype,A=x,S={},E=function(t){var e=o(k[t]);s(k,t,"add"===t?function(t){return e(this,0===t?0:t),this}:"delete"===t?function(t){return!(b&&!d(t))&&e(this,0===t?0:t)}:"get"===t?function(t){return b&&!d(t)?void 0:e(this,0===t?0:t)}:"has"===t?function(t){return!(b&&!d(t))&&e(this,0===t?0:t)}:function(t,n){return e(this,0===t?0:t,n),this})};if(a(t,!f(x)||!(b||k.forEach&&!p((function(){(new x).entries().next()})))))A=n.getConstructor(e,t,m,w),u.enable();else if(a(t,!0)){var T=new A,_=T[w](b?{}:-0,1)!==T,O=p((function(){T.has(1)})),M=v((function(t){new x(t)})),C=!b&&p((function(){for(var t=new x,e=5;e--;)t[w](e,e);return!t.has(-0)}));M||((A=e((function(t,e){l(t,k);var n=y(new x,t,A);return h(e)||c(e,n[w],{that:n,AS_ENTRIES:m}),n}))).prototype=k,k.constructor=A),(O||C)&&(E("delete"),E("has"),m&&E("get")),(C||_)&&E(w),b&&k.clear&&delete k.clear}return S[t]=A,r({global:!0,constructor:!0,forced:A!==x},S),g(A,t),b||n.setStrong(A,t,m),A}},16499: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)},{all: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,l=1;u(t,(function(t){var o=s++,u=!1;l++,i(n,e,t).then((function(t){u||(u=!0,a[o]=t,--l||r(a))}),c)})),--l||r(a)}));return l.error&&c(l.value),n.promise}})},16573:function(t,e,n){"use strict";var r=n(43724),i=n(62106),o=n(3238),a=ArrayBuffer.prototype;r&&!("detached"in a)&&i(a,"detached",{configurable:!0,get:function(){return o(this)}})},16575:function(t,e,n){"use strict";var r=n(39297);t.exports=function(t){return void 0!==t&&(r(t,"value")||r(t,"writable"))}},16648:function(t,e,n){"use strict";n.r(e),n.d(e,{makePDF:function(){return u}});var r=n(10467),i=n(54756),o=n.n(i),a=function(){var t=(0,r.A)(o().mark((function t(e,n){var r,i,a,s,u,c,l,f,h,d,p,v,g,y,m,b,w,x,k;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.getViewport({scale:1}),i=r.width/r.height,a=innerWidth/innerHeight,s=devicePixelRatio*(a/i),u=e.getViewport({scale:s}),(c=document.createElement("canvas")).height=u.height,c.width=u.width,l=c.getContext("2d"),t.next=1,e.render({canvasContext:l,viewport:u}).promise;case 1:return t.next=2,new Promise((function(t){return c.toBlob(t)}));case 2:if(f=t.sent,!n){t.next=3;break}return t.abrupt("return",f);case 3:return(h=document.createElement("div")).classList.add("textLayer"),g=pdfjsLib,t.next=4,e.getTextContent();case 4:return y=t.sent,m={textContentSource:y,container:h,viewport:u},t.next=5,g.renderTextLayer.call(g,m).promise;case 5:return(d=document.createElement("div")).classList.add("annotationLayer"),b=new pdfjsLib.AnnotationLayer({page:e,viewport:u,div:d}),t.next=6,e.getAnnotations();case 6:return w=t.sent,x={getDestinationHash:function(t){return JSON.stringify(t)},addLinkAttributes:function(t,e){return t.href=e}},k={annotations:w,linkService:x},t.next=7,b.render.call(b,k);case 7:return p=URL.createObjectURL(f),v=URL.createObjectURL(new Blob(['\n <!DOCTYPE html>\n <meta charset="utf-8">\n <style>\n :root {\n --scale-factor: '.concat(s,";\n }\n html, body {\n margin: 0;\n padding: 0;\n }\n ").concat('\n/* Copyright 2014 Mozilla Foundation\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n:root {\n --highlight-bg-color: rgb(180 0 170);\n --highlight-selected-bg-color: rgb(0 100 0);\n}\n\n@media screen and (forced-colors: active) {\n :root {\n --highlight-bg-color: Highlight;\n --highlight-selected-bg-color: ButtonText;\n }\n}\n\n.textLayer {\n position: absolute;\n text-align: initial;\n inset: 0;\n overflow: hidden;\n opacity: 0.25;\n line-height: 1;\n text-size-adjust: none;\n forced-color-adjust: none;\n transform-origin: 0 0;\n z-index: 2;\n}\n\n.textLayer :is(span, br) {\n color: transparent;\n position: absolute;\n white-space: pre;\n cursor: text;\n transform-origin: 0% 0%;\n}\n\n/* Only necessary in Google Chrome, see issue 14205, and most unfortunately\n * the problem doesn\'t show up in "text" reference tests. */\n/*#if !MOZCENTRAL*/\n.textLayer span.markedContent {\n top: 0;\n height: 0;\n}\n/*#endif*/\n\n.textLayer .highlight {\n margin: -1px;\n padding: 1px;\n background-color: var(--highlight-bg-color);\n border-radius: 4px;\n}\n\n.textLayer .highlight.appended {\n position: initial;\n}\n\n.textLayer .highlight.begin {\n border-radius: 4px 0 0 4px;\n}\n\n.textLayer .highlight.end {\n border-radius: 0 4px 4px 0;\n}\n\n.textLayer .highlight.middle {\n border-radius: 0;\n}\n\n.textLayer .highlight.selected {\n background-color: var(--highlight-selected-bg-color);\n}\n\n.textLayer ::selection {\n /*#if !MOZCENTRAL*/\n background: blue;\n /*#endif*/\n background: AccentColor; /* stylelint-disable-line declaration-block-no-duplicate-properties */\n}\n\n/* Avoids https://github.com/mozilla/pdf.js/issues/13840 in Chrome */\n/*#if !MOZCENTRAL*/\n.textLayer br::selection {\n background: transparent;\n}\n/*#endif*/\n\n.textLayer .endOfContent {\n display: block;\n position: absolute;\n inset: 100% 0 0;\n z-index: -1;\n cursor: default;\n user-select: none;\n}\n\n.textLayer .endOfContent.active {\n top: 0;\n}\n',"\n ").concat('\n/* Copyright 2014 Mozilla Foundation\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n:root {\n --annotation-unfocused-field-background: url("data:image/svg+xml;charset=UTF-8,<svg width=\'1px\' height=\'1px\' xmlns=\'http://www.w3.org/2000/svg\'><rect width=\'100%\' height=\'100%\' style=\'fill:rgba(0, 54, 255, 0.13);\'/></svg>");\n --input-focus-border-color: Highlight;\n --input-focus-outline: 1px solid Canvas;\n --input-unfocused-border-color: transparent;\n --input-disabled-border-color: transparent;\n --input-hover-border-color: black;\n --link-outline: none;\n}\n\n@media screen and (forced-colors: active) {\n :root {\n --input-focus-border-color: CanvasText;\n --input-unfocused-border-color: ActiveText;\n --input-disabled-border-color: GrayText;\n --input-hover-border-color: Highlight;\n --link-outline: 1.5px solid LinkText;\n --hcm-highligh-filter: invert(100%);\n }\n .annotationLayer .textWidgetAnnotation :is(input, textarea):required,\n .annotationLayer .choiceWidgetAnnotation select:required,\n .annotationLayer\n .buttonWidgetAnnotation:is(.checkBox, .radioButton)\n input:required {\n outline: 1.5px solid selectedItem;\n }\n\n .annotationLayer .linkAnnotation:hover {\n backdrop-filter: var(--hcm-highligh-filter);\n }\n\n .annotationLayer .linkAnnotation > a:hover {\n opacity: 0 !important;\n background: none !important;\n box-shadow: none;\n }\n\n .annotationLayer .popupAnnotation .popup {\n outline: calc(1.5px * var(--scale-factor)) solid CanvasText !important;\n background-color: ButtonFace !important;\n color: ButtonText !important;\n }\n\n .annotationLayer .highlightArea:hover::after {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n backdrop-filter: var(--hcm-highligh-filter);\n content: "";\n pointer-events: none;\n }\n\n .annotationLayer .popupAnnotation.focused .popup {\n outline: calc(3px * var(--scale-factor)) solid Highlight !important;\n }\n}\n\n.annotationLayer {\n position: absolute;\n top: 0;\n left: 0;\n pointer-events: none;\n transform-origin: 0 0;\n z-index: 3;\n}\n\n.annotationLayer[data-main-rotation="90"] .norotate {\n transform: rotate(270deg) translateX(-100%);\n}\n.annotationLayer[data-main-rotation="180"] .norotate {\n transform: rotate(180deg) translate(-100%, -100%);\n}\n.annotationLayer[data-main-rotation="270"] .norotate {\n transform: rotate(90deg) translateY(-100%);\n}\n\n.annotationLayer canvas {\n position: absolute;\n width: 100%;\n height: 100%;\n pointer-events: none;\n}\n\n.annotationLayer section {\n position: absolute;\n text-align: initial;\n pointer-events: auto;\n box-sizing: border-box;\n transform-origin: 0 0;\n}\n\n.annotationLayer .linkAnnotation {\n outline: var(--link-outline);\n}\n\n.annotationLayer :is(.linkAnnotation, .buttonWidgetAnnotation.pushButton) > a {\n position: absolute;\n font-size: 1em;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n}\n\n.annotationLayer\n :is(.linkAnnotation, .buttonWidgetAnnotation.pushButton):not(.hasBorder)\n > a:hover {\n opacity: 0.2;\n background-color: rgb(255 255 0);\n box-shadow: 0 2px 10px rgb(255 255 0);\n}\n\n.annotationLayer .linkAnnotation.hasBorder:hover {\n background-color: rgb(255 255 0 / 0.2);\n}\n\n.annotationLayer .hasBorder {\n background-size: 100% 100%;\n}\n\n.annotationLayer .textAnnotation img {\n position: absolute;\n cursor: pointer;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n}\n\n.annotationLayer .textWidgetAnnotation :is(input, textarea),\n.annotationLayer .choiceWidgetAnnotation select,\n.annotationLayer .buttonWidgetAnnotation:is(.checkBox, .radioButton) input {\n background-image: var(--annotation-unfocused-field-background);\n border: 2px solid var(--input-unfocused-border-color);\n box-sizing: border-box;\n font: calc(9px * var(--scale-factor)) sans-serif;\n height: 100%;\n margin: 0;\n vertical-align: top;\n width: 100%;\n}\n\n.annotationLayer .textWidgetAnnotation :is(input, textarea):required,\n.annotationLayer .choiceWidgetAnnotation select:required,\n.annotationLayer\n .buttonWidgetAnnotation:is(.checkBox, .radioButton)\n input:required {\n outline: 1.5px solid red;\n}\n\n.annotationLayer .choiceWidgetAnnotation select option {\n padding: 0;\n}\n\n.annotationLayer .buttonWidgetAnnotation.radioButton input {\n border-radius: 50%;\n}\n\n.annotationLayer .textWidgetAnnotation textarea {\n resize: none;\n}\n\n.annotationLayer .textWidgetAnnotation :is(input, textarea)[disabled],\n.annotationLayer .choiceWidgetAnnotation select[disabled],\n.annotationLayer\n .buttonWidgetAnnotation:is(.checkBox, .radioButton)\n input[disabled] {\n background: none;\n border: 2px solid var(--input-disabled-border-color);\n cursor: not-allowed;\n}\n\n.annotationLayer .textWidgetAnnotation :is(input, textarea):hover,\n.annotationLayer .choiceWidgetAnnotation select:hover,\n.annotationLayer\n .buttonWidgetAnnotation:is(.checkBox, .radioButton)\n input:hover {\n border: 2px solid var(--input-hover-border-color);\n}\n.annotationLayer .textWidgetAnnotation :is(input, textarea):hover,\n.annotationLayer .choiceWidgetAnnotation select:hover,\n.annotationLayer .buttonWidgetAnnotation.checkBox input:hover {\n border-radius: 2px;\n}\n\n.annotationLayer .textWidgetAnnotation :is(input, textarea):focus,\n.annotationLayer .choiceWidgetAnnotation select:focus {\n background: none;\n border: 2px solid var(--input-focus-border-color);\n border-radius: 2px;\n outline: var(--input-focus-outline);\n}\n\n.annotationLayer .buttonWidgetAnnotation:is(.checkBox, .radioButton) :focus {\n background-image: none;\n background-color: transparent;\n}\n\n.annotationLayer .buttonWidgetAnnotation.checkBox :focus {\n border: 2px solid var(--input-focus-border-color);\n border-radius: 2px;\n outline: var(--input-focus-outline);\n}\n\n.annotationLayer .buttonWidgetAnnotation.radioButton :focus {\n border: 2px solid var(--input-focus-border-color);\n outline: var(--input-focus-outline);\n}\n\n.annotationLayer .buttonWidgetAnnotation.checkBox input:checked::before,\n.annotationLayer .buttonWidgetAnnotation.checkBox input:checked::after,\n.annotationLayer .buttonWidgetAnnotation.radioButton input:checked::before {\n background-color: CanvasText;\n content: "";\n display: block;\n position: absolute;\n}\n\n.annotationLayer .buttonWidgetAnnotation.checkBox input:checked::before,\n.annotationLayer .buttonWidgetAnnotation.checkBox input:checked::after {\n height: 80%;\n left: 45%;\n width: 1px;\n}\n\n.annotationLayer .buttonWidgetAnnotation.checkBox input:checked::before {\n transform: rotate(45deg);\n}\n\n.annotationLayer .buttonWidgetAnnotation.checkBox input:checked::after {\n transform: rotate(-45deg);\n}\n\n.annotationLayer .buttonWidgetAnnotation.radioButton input:checked::before {\n border-radius: 50%;\n height: 50%;\n left: 30%;\n top: 20%;\n width: 50%;\n}\n\n.annotationLayer .textWidgetAnnotation input.comb {\n font-family: monospace;\n padding-left: 2px;\n padding-right: 0;\n}\n\n.annotationLayer .textWidgetAnnotation input.comb:focus {\n /*\n * Letter spacing is placed on the right side of each character. Hence, the\n * letter spacing of the last character may be placed outside the visible\n * area, causing horizontal scrolling. We avoid this by extending the width\n * when the element has focus and revert this when it loses focus.\n */\n width: 103%;\n}\n\n.annotationLayer .buttonWidgetAnnotation:is(.checkBox, .radioButton) input {\n appearance: none;\n}\n\n.annotationLayer .fileAttachmentAnnotation .popupTriggerArea {\n height: 100%;\n width: 100%;\n}\n\n.annotationLayer .popupAnnotation {\n position: absolute;\n font-size: calc(9px * var(--scale-factor));\n pointer-events: none;\n width: max-content;\n max-width: 45%;\n height: auto;\n}\n\n.annotationLayer .popup {\n background-color: rgb(255 255 153);\n box-shadow: 0 calc(2px * var(--scale-factor)) calc(5px * var(--scale-factor))\n rgb(136 136 136);\n border-radius: calc(2px * var(--scale-factor));\n outline: 1.5px solid rgb(255 255 74);\n padding: calc(6px * var(--scale-factor));\n cursor: pointer;\n font: message-box;\n white-space: normal;\n word-wrap: break-word;\n pointer-events: auto;\n}\n\n.annotationLayer .popupAnnotation.focused .popup {\n outline-width: 3px;\n}\n\n.annotationLayer .popup * {\n font-size: calc(9px * var(--scale-factor));\n}\n\n.annotationLayer .popup > .header {\n display: inline-block;\n}\n\n.annotationLayer .popup > .header h1 {\n display: inline;\n}\n\n.annotationLayer .popup > .header .popupDate {\n display: inline-block;\n margin-left: calc(5px * var(--scale-factor));\n width: fit-content;\n}\n\n.annotationLayer .popupContent {\n border-top: 1px solid rgb(51 51 51);\n margin-top: calc(2px * var(--scale-factor));\n padding-top: calc(2px * var(--scale-factor));\n}\n\n.annotationLayer .richText > * {\n white-space: pre-wrap;\n font-size: calc(9px * var(--scale-factor));\n}\n\n.annotationLayer .popupTriggerArea {\n cursor: pointer;\n}\n\n.annotationLayer section svg {\n position: absolute;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n}\n\n.annotationLayer .annotationTextContent {\n position: absolute;\n width: 100%;\n height: 100%;\n opacity: 0;\n color: transparent;\n user-select: none;\n pointer-events: none;\n}\n\n.annotationLayer .annotationTextContent span {\n width: 100%;\n display: inline-block;\n}\n\n.annotationLayer svg.quadrilateralsContainer {\n contain: strict;\n width: 0;\n height: 0;\n position: absolute;\n top: 0;\n left: 0;\n z-index: -1;\n}\n','\n </style>\n <img src="').concat(p,'">\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&&n<l.length;n++){var i,o=l[n],d=h.p,p=o[2];t>3?(i=p===r)&&(s=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=e):o[0]<=d&&((i=t<2&&d<o[1])?(a=0,h.v=r,h.n=o[1]):d<p&&(i=t<3||o[0]>r||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("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>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(t<n)throw new e("Not enough arguments");return t}},23029:function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.d(e,{A:function(){return r}})},23061:function(t,e,n){"use strict";var r=n(79039);t.exports=function(t){return r((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}))}},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<M.length;I++){for(var P,j=d((O=M[I])[0]),F=x(k(f(O.index),s.length),0),N=[],D=1;D<O.length;D++)S(N,void 0===(C=O[D])?C:String(C));var B=O.groups;if(p){var z=A([j],N,F,s);void 0!==B&&S(z,B),P=d(r(i,void 0,z))}else P=y(j,s,F,N,B,i);F>=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,"$<a>")}))||!_||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);n<e;n++)r[n]=t[n];return r}function Xt(t,e,n){Yt(t,e),e.set(t,n)}function Yt(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Kt(t,e,n){return t.set(Zt(t,e),n),n}function Jt(t,e){return t.get(Zt(t,e))}function Zt(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 Qt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function te(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Qt(Object(n),!0).forEach((function(e){(0,a.A)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Qt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ee(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 ne(e.call(t));n="@@asyncIterator",r="@@iterator"}throw new TypeError("Object is not async iterable")}function ne(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 ne=function(t){this.s=t,this.n=t.next},ne.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 ne(t)}l=(p.then?(await p)():p)[0],console.log("book.js"),console.log("AnxUA",navigator.userAgent);var v=await Promise.resolve().then(n.bind(n,83234)),g=v.configure,y=v.ZipReader,m=v.BlobReader,b=v.TextWriter,w=v.BlobWriter,x=(await Promise.resolve().then(n.bind(n,31330))).EPUB,k=!1,A=function(t){var e,n,r,i,o,a,u=function(t){return Math.min(Math.max(t,0),1)},c=null!==(e=null===(n=t.getRootNode)||void 0===n?void 0:n.call(t))&&void 0!==e?e:null==t||null===(r=t.endContainer)||void 0===r||null===(i=r.getRootNode)||void 0===i?void 0:i.call(r),l=null==c||null===(o=c.defaultView)||void 0===o?void 0:o.frameElement,f=1,h=1;if(l){var d=getComputedStyle(l).transform.match(/matrix\((.+)\)/);if(d){var p=d[1].split(/\s*,\s*/).map(Number),v=(0,s.A)(p,4);f=v[0],h=v[3]}}var g=null!==(a=null==l?void 0:l.getBoundingClientRect())&&void 0!==a?a:{top:0,left:0},y=Array.from(t.getClientRects());if(!y.length)return{left:0,top:0,right:0,bottom:0};var m=y.map((function(t){return function(t,e){var n=arguments.length>2&&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<n;o++)r[o-1]=arguments[o];return i.has(e)?t.apply(void 0,[i.get(e)].concat(r)):null}},a=o((function(t){return t.getData(new b)})),s=o((function(t,e){return t.getData(new w(e))})),u=function(t){var e,n;return null!==(e=null===(n=i.get(t))||void 0===n?void 0:n.uncompressedSize)&&void 0!==e?e:0},t.abrupt("return",{entries:r,loadText:a,loadBlob:s,getSize:u});case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),B=function(){var t=(0,o.A)(c().mark((function t(e){var n,r,i,o,a,s;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.isFile){t.next=1;break}n=e,t.next=4;break;case 1:return r=Promise,i=Array,t.next=2,new Promise((function(t,n){return e.createReader().readEntries((function(e){return t(e)}),(function(t){return n(t)}))}));case 2:return o=t.sent,a=B,s=i.from.call(i,o,a),t.next=3,r.all.call(r,s);case 3:n=t.sent.flat();case 4:return t.abrupt("return",n);case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),z=function(){var t=(0,o.A)(c().mark((function t(e){var n,r,i,a,u,l,f,h,d;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,B(e);case 1:return n=t.sent,t.next=2,Promise.all(n.map((function(t){return new Promise((function(e,n){return t.file((function(n){return e([n,t.fullPath])}),(function(t){return n(t)}))}))})));case 2:return r=t.sent,i=new Map(r.map((function(t){var n=(0,s.A)(t,2),r=n[0];return[n[1].replace(e.fullPath+"/",""),r]}))),a=new TextDecoder,u=function(t){return t?a.decode(t):null},l=function(t){var e,n;return null!==(e=null===(n=i.get(t))||void 0===n?void 0:n.arrayBuffer())&&void 0!==e?e:null},f=function(){var t=(0,o.A)(c().mark((function t(e){var n,r;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=u,t.next=1,l(e);case 1:return r=t.sent,t.abrupt("return",n(r));case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),h=function(t){return i.get(t)},d=function(t){var e,n;return null!==(e=null===(n=i.get(t))||void 0===n?void 0:n.size)&&void 0!==e?e:0},t.abrupt("return",{loadText:f,loadBlob:h,getSize:d});case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),U=function(t){var e=t.name;return"application/x-fictionbook+xml"===t.type||e.endsWith(".fb2")},W=function(t){var e=t.name;return"application/x-zip-compressed-fb2"===t.type||e.endsWith(".fb2.zip")||e.endsWith(".fbz")},H=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,m,b,w,A,S,E,T;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.isDirectory){t.next=4;break}return t.next=1,z(e);case 1:return i=t.sent,t.next=2,Promise.resolve().then(n.bind(n,31330));case 2:return o=t.sent,a=o.EPUB,t.next=3,new a(i).init();case 3:r=t.sent,t.next=28;break;case 4:if(e.size){t.next=5;break}throw new Error("File not found");case 5:return t.next=6,F(e);case 6:if(!t.sent){t.next=16;break}return t.next=7,D(e);case 7:if(s=t.sent,_=void 0,_=(c=e).name,"application/vnd.comicbook+zip"!==c.type&&!_.endsWith(".cbz")){t.next=9;break}return t.next=8,Promise.resolve().then(n.bind(n,76973));case 8:u=t.sent,l=u.makeComicBook,r=l(s,e),t.next=15;break;case 9:if(!W(e)){t.next=13;break}return t.next=10,Promise.resolve().then(n.bind(n,60740));case 10:return f=t.sent,h=f.makeFB2,d=s.entries,p=d.find((function(t){return t.filename.endsWith(".fb2")})),t.next=11,s.loadBlob((null!=p?p:d[0]).filename);case 11:return v=t.sent,t.next=12,h(v);case 12:r=t.sent,t.next=15;break;case 13:return t.next=14,new x(s).init();case 14:r=t.sent;case 15:t.next=28;break;case 16:return t.next=17,N(e);case 17:if(!t.sent){t.next=20;break}return k=!0,t.next=18,Promise.resolve().then(n.bind(n,16648));case 18:return g=t.sent,y=g.makePDF,t.next=19,y(e);case 19:r=t.sent,t.next=28;break;case 20:return t.next=21,Promise.resolve().then(n.bind(n,34885));case 21:return m=t.sent,b=m.isMOBI,w=m.MOBI,t.next=22,b(e);case 22:if(!t.sent){t.next=25;break}return t.next=23,Promise.resolve().then(n.bind(n,12725));case 23:return A=t.sent,t.next=24,new w({unzlib:A.unzlibSync}).open(e);case 24:r=t.sent,t.next=28;break;case 25:if(!U(e)){t.next=28;break}return t.next=26,Promise.resolve().then(n.bind(n,60740));case 26:return S=t.sent,E=S.makeFB2,t.next=27,E(e);case 27:r=t.sent;case 28:if(r){t.next=29;break}throw new Error("File type not supported");case 29:return T=document.createElement("foliate-view"),document.body.append(T),t.next=30,T.open(r);case 30:return t.abrupt("return",T);case 31:case"end":return t.stop()}var c,_}),t)})));return function(e){return t.apply(this,arguments)}}(),q=function(t){var e=t.fontSize,n=t.fontName,r=t.fontPath,i=t.fontWeight,o=t.letterSpacing,a=t.spacing,s=t.textIndent,u=t.paragraphSpacing,c=t.fontColor,l=(t.backgroundColor,t.justify),f=t.textAlign,h=t.hyphenate,d=t.writingMode,p=(t.backgroundImage,t.flow,t.customCSS),v=t.customCSSEnabled,g=t.useBookStyles,y=t.headingFontSize,m=(t.codeHighlightTheme,"book"===n?"":"system"===n?"font-family: system-ui !important;":"font-family: ".concat(n," !important;")),b="auto"===d?"":"writing-mode: ".concat(d," !important;");return'\n @namespace epub "http://www.idpf.org/2007/ops";\n @font-face {\n font-family: '.concat(n,";\n src: url('").concat(r,"');\n font-display: swap;\n }\n\n html {\n ").concat(b,"\n color: ").concat(c," !important;\n ").concat("background: none !important;","\n background-color: transparent !important;\n ").concat(g?"":"letter-spacing: ".concat(o,"px;"),"\n ").concat(g?"":"font-size: ".concat(e,"em;"),"\n orphans: 1; \n widows: 1;\n }\n\n body {\n background: none !important;\n background-color: transparent;\n padding: 0;\n }\n\n body > 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.length<e&&r;)i=r.textContent+i,r=r.previousSibling;return i})),(0,a.A)(this,"getSelection",(function(){var t=Jt(X,n).getSelection();return S(t)})),Xt(this,it,(function(){return"scrollTop"===n.view.renderer.scrollProp})),Xt(this,ot,(function(t){var e,r,i=t.detail;if(!Jt(it,n).call(n)){Kt(J,n,!!document.getElementById("bookmark-icon")),Kt(Z,n,!1);var o=i.touch,a=window.innerHeight,s=null!==(e=null!==(r=null==o?void 0:o.screenY)&&void 0!==r?r:null==o?void 0:o.clientY)&&void 0!==e?e:0;Kt(tt,n,s<.1*a)}})),Xt(this,at,(function(t){var e=t.detail;if(!Jt(it,n).call(n)){var r=n.view.shadowRoot.children[0];if("vertical"===e.touchState.direction){var i=e.touchState.delta.y;i>0?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='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 8 24"><g data-name="Layer 2"><g data-name="bookmark"><rect width="8" height="24" opacity="0"/><path d="M2 21a1 1 0 0 1-.49-.13A1 1 0 0 1 1 20V5.33A2.28 2.28 0 0 1 3.2 3h1.6A2.28 2.28 0 0 1 7 5.33V20a1 1 0 0 1-.5.86 1 1 0 0 1-1 0L4 19.07l-1.5 1.79A1 1 0 0 1 2 21z" fill="#215a8f"/></g></g></svg>',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;o<a.length;o++)s=a[o],(u=Ut(s,n))&&r.push(u);l=10,f=0;case 6:if(!(f<r.length)){t.next=8;break}h=r.slice(f,f+l),d=Vt(h);try{for(d.s();!(p=d.n()).done;)v=p.value,zt(v)}catch(t){d.e(t)}finally{d.f()}if(!(r.length>l&&f+l<r.length)){t.next=7;break}return t.next=7,new Promise((function(t){return setTimeout(t,0)}));case 7:f+=l,t.next=6;break;case 8:jt.add(n);case 9:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Ht=function(){var t,e=[];return null!==(t=globalThis.reader)&&void 0!==t&&null!==(t=t.view)&&void 0!==t&&null!==(t=t.renderer)&&void 0!==t&&t.getContents&&(globalThis.reader.view.renderer.getContents()||[]).forEach((function(t,n){null!=t&&t.doc&&e.push({doc:t.doc,name:"view-content-".concat(n)})})),document.querySelectorAll("iframe").forEach((function(t,n){try{var r,i=t.contentDocument||(null===(r=t.contentWindow)||void 0===r?void 0:r.document);i&&!e.find((function(t){return t.doc===i}))&&e.push({doc:i,name:"iframe-".concat(n)})}catch(t){}})),e},qt=function(){var t=(0,o.A)(c().mark((function t(e){var n,r,i,o,a,s;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e!==Lt){t.next=1;break}return t.abrupt("return");case 1:if(Lt=e,Dt(document,e),"off"!==e){t.next=2;break}return t.abrupt("return");case 2:n=Ht(),r=Vt(n),t.prev=3,r.s();case 4:if((i=r.n()).done){t.next=6;break}return o=i.value,a=o.doc,o.name,Dt(a,e),jt.delete(a),a.querySelectorAll(".prism-highlighted").forEach((function(t){t.classList.remove("prism-highlighted")})),t.next=5,Wt(e,a);case 5:t.next=4;break;case 6:t.next=8;break;case 7:t.prev=7,s=t.catch(3),r.e(s);case 8:return t.prev=8,r.f(),t.finish(8);case 9:case"end":return t.stop()}}),t,null,[[3,7,8,9]])})));return function(e){return t.apply(this,arguments)}}(),{loadPrismLibrary:Nt,applyHighlighting:Wt,changeTheme:qt,getTheme:function(){return Lt},isLoaded:function(){return Rt},resetDocument:function(t){jt.delete(t)},injectThemeCss:Dt}),At=function(t,e){return kt.applyHighlighting(t,e)},St=function(t){return kt.changeTheme(t)};window.initCodeHighlighting=function(t){St(t)};var Et=new URLSearchParams(window.location.search),Tt=JSON.parse(Et.get("importing")),_t=JSON.parse(Et.get("url")),Ot=JSON.parse(Et.get("initialCfi")),Mt=JSON.parse(Et.get("style")),Ct=JSON.parse(Et.get("readingRules"));fetch(_t).then((function(t){return t.blob()})).then((function(t){return ft(new File([t],new URL(_t,window.location.origin).pathname),Ot)})).catch((function(t){return console.error(t)})),e()}catch(ue){e(ue)}var Lt,Rt,It,Pt,jt,Ft,Nt,Dt,Bt,zt,Ut,Wt,Ht,qt}),1)},26835:function(t,e,n){"use strict";var r=n(46518),i=n(57029),o=n(6469);r({target:"Array",proto:!0},{copyWithin:i}),o("copyWithin")},26910:function(t,e,n){"use strict";var r=n(46518),i=n(79504),o=n(79306),a=n(48981),s=n(26198),u=n(84606),c=n(655),l=n(79039),f=n(74488),h=n(34598),d=n(13709),p=n(13763),v=n(39519),g=n(3607),y=[],m=i(y.sort),b=i(y.push),w=l((function(){y.sort(void 0)})),x=l((function(){y.sort(null)})),k=h("sort"),A=!l((function(){if(v)return v<70;if(!(d&&d>3)){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;r<y.length;r++)e=y[r].k.charAt(0),i.charAt(i.length-1)!==e&&(i+=e);return"DGBEFHACIJK"!==i}}));r({target:"Array",proto:!0,forced:w||!x||!k||!A},{sort:function(t){void 0!==t&&o(t);var e=a(this);if(A)return void 0===t?m(e):m(e,t);var n,r,i=[],l=s(e);for(r=0;r<l;r++)r in e&&b(i,e[r]);for(f(i,function(t){return function(e,n){return void 0===n?-1:void 0===e?1:void 0!==t?+t(e,n)||0:c(e)>c(n)?1:-1}}(t)),n=s(i),r=0;r<n;)e[r]=i[r++];for(;r<l;)u(e,r++);return e}})},27106:function(t,e,n){"use strict";function r(t,e){this.v=t,this.k=e}n.d(e,{A:function(){return r}})},27208:function(t,e,n){"use strict";var r=n(46518),i=n(69565);r({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return i(URL.prototype.toString,this)}})},27337:function(t,e,n){"use strict";var r=n(46518),i=n(79504),o=n(35610),a=RangeError,s=String.fromCharCode,u=String.fromCodePoint,c=i([].join);r({target:"String",stat:!0,arity:1,forced:!!u&&1!==u.length},{fromCodePoint:function(t){for(var e,n=[],r=arguments.length,i=0;r>i;){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)<n.size)return!1;var c=n.getIterator();return!1!==s(c,(function(t){if(!i(e,t))return u(c,"normal",!1)}))}},28543:function(t,e,n){"use strict";var r=n(46518),i=n(69565),o=n(27476),a=n(33994),s=n(62529),u=n(67750),c=n(18014),l=n(655),f=n(28551),h=n(20034),d=n(22195),p=n(60788),v=n(61034),g=n(55966),y=n(36840),m=n(79039),b=n(78227),w=n(2293),x=n(57829),k=n(56682),A=n(91181),S=n(96395),E=b("matchAll"),T="RegExp String",_=T+" Iterator",O=A.set,M=A.getterFor(_),C=RegExp.prototype,L=TypeError,R=o("".indexOf),I=o("".matchAll),P=!!I&&!m((function(){I("a",/./)})),j=a((function(t,e,n,r){O(this,{type:_,regexp:t,string:e,global:n,unicode:r,done:!1})}),T,(function(){var t=M(this);if(t.done)return s(void 0,!0);var e=t.regexp,n=t.string,r=k(e,n);return null===r?(t.done=!0,s(void 0,!0)):t.global?(""===l(r[0])&&(e.lastIndex=x(n,c(e.lastIndex),t.unicode)),s(r,!1)):(t.done=!0,s(r,!1))})),F=function(t){var e,n,r,i=f(this),o=l(t),a=w(i,RegExp),s=l(v(i));return e=new a(a===RegExp?i.source:i,s),n=!!~R(s,"g"),r=!!~R(s,"u"),e.lastIndex=c(i.lastIndex),new j(e,o,n,r)};r({target:"String",proto:!0,forced:P},{matchAll:function(t){var e,n,r,o,a=u(this);if(h(t)){if(p(t)&&(e=l(u(v(t))),!~R(e,"g")))throw new L("`.matchAll` does not allow non-global regexes");if(P)return I(a,t);if(void 0===(r=g(t,E))&&S&&"RegExp"===d(t)&&(r=F),r)return i(r,t,a)}else if(P)return I(a,t);return n=l(a),o=new RegExp(t,"g"),S?i(F,o,n):o[E](n)}}),S||E in C||y(C,E,F)},28551:function(t,e,n){"use strict";var r=n(20034),i=String,o=TypeError;t.exports=function(t){if(r(t))return t;throw new o(i(t)+" is not an object")}},28614:function(t,e,n){"use strict";n.d(e,{A:function(){return a}});var r=n(53954),i=n(63662);function o(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(o=function(){return!!t})()}function a(t){var e="function"==typeof Map?new Map:void 0;return a=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return function(t,e,n){if(o())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,e);var a=new(t.bind.apply(t,r));return n&&(0,i.A)(a,n.prototype),a}(t,arguments,(0,r.A)(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),(0,i.A)(n,t)},a(t)}},28706:function(t,e,n){"use strict";var r=n(46518),i=n(79039),o=n(34376),a=n(20034),s=n(48981),u=n(26198),c=n(96837),l=n(97040),f=n(1469),h=n(70597),d=n(78227),p=n(39519),v=d("isConcatSpreadable"),g=p>=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;e<r;e++)if(y(o=-1===e?a:arguments[e]))for(i=u(o),c(d+i),n=0;n<i;n++,d++)n in o&&l(h,d,o[n]);else c(d+1),l(h,d++,o);return h.length=d,h}})},28845:function(t,e,n){"use strict";var r=n(44576),i=n(69565),o=n(94644),a=n(26198),s=n(58229),u=n(48981),c=n(79039),l=r.RangeError,f=r.Int8Array,h=f&&f.prototype,d=h&&h.set,p=o.aTypedArray,v=o.exportTypedArrayMethod,g=!c((function(){var t=new Uint8ClampedArray(2);return i(d,t,{length:1,0:3},1),3!==t[1]})),y=g&&o.NATIVE_ARRAY_BUFFER_VIEWS&&c((function(){var t=new f(2);return t.set(1),t.set("2",1),0!==t[0]||2!==t[1]}));v("set",(function(t){p(this);var e=s(arguments.length>1?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(;c<o;)this[e+c]=n[c++]}),!g||y)},29309:function(t,e,n){"use strict";var r=n(46518),i=n(44576),o=n(59225).set,a=n(79472),s=i.setImmediate?a(o,!1):o;r({global:!0,bind:!0,enumerable:!0,forced:i.setImmediate!==s},{setImmediate:s})},29314:function(t,e,n){"use strict";var r=n(46518),i=n(69565),o=n(28551),a=n(1767),s=n(24149),u=n(99590),c=n(9539),l=n(19462),f=n(30684),h=n(84549),d=n(96395),p=!d&&!f("drop",0),v=!d&&!p&&h("drop",RangeError),g=d||p||v,y=l((function(){for(var t,e=this.iterator,n=this.next;this.remaining;)if(this.remaining--,t=o(i(n,e)),this.done=!!t.done)return;if(t=o(i(n,e)),!(this.done=!!t.done))return t.value}));r({target:"Iterator",proto:!0,real:!0,forced:g},{drop:function(t){var e;o(this);try{e=u(s(+t))}catch(t){c(this,"throw",t)}return v?i(v,this,e):new y(a(this),{remaining:e})}})},29423:function(t,e,n){"use strict";var r=n(94644),i=n(79039),o=n(67680),a=r.aTypedArray,s=r.getTypedArrayConstructor;(0,r.exportTypedArrayMethod)("slice",(function(t,e){for(var n=o(a(this),t,e),r=s(this),i=0,u=n.length,c=new r(u);u>i;)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<e;i++)r[i]="a["+i+"]";h[e]=c("C,a","return new C("+f(r,",")+")")}return h[e](t,n)}(e,n.length,n):e.apply(t,n)};return o(n)&&(u.prototype=n),u}},30579:function(t,e,n){var r=n(73738).default;t.exports=function(t){if(null!=t){var e=t["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return{next:function(){return t&&n>=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);n<e;n++)r[n]=t[n];return r}function T(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function _(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?T(Object(n),!0).forEach((function(e){(0,l.A)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var O="http://www.idpf.org/2007/opf",M="http://www.idpf.org/2007/ops",C="http://purl.org/dc/elements/1.1/",L="http://www.w3.org/2001/04/xmlenc#",R="http://www.w3.org/1999/xlink",I={XML:"application/xml",NCX:"application/x-dtbncx+xml",XHTML:"application/xhtml+xml",HTML:"text/html",CSS:"text/css",SVG:"image/svg+xml",JS:/\/(x-)?(javascript|ecmascript)/},P=function(t){return t.toLowerCase().replace(/[-:](.)/g,(function(t,e){return e.toUpperCase()}))},j=function(t,e,n){return n?function(n){var r;return null===(r=n.getAttribute(t))||void 0===r||null===(r=r.split(/\s/))||void 0===r?void 0:r.includes(e)}:"function"==typeof e?function(n){return e(n.getAttribute(t))}:function(n){return n.getAttribute(t)===e}},F=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t){return t?Object.fromEntries(e.map((function(e){return[P(e),t.getAttribute(e)]}))):null}},N=function(t){return(e=null==t?void 0:t.textContent)?e.replace(/[\t\n\f\r ]+/g," ").replace(/^[\t\n\f\r ]+/,"").replace(/[\t\n\f\r ]+$/,""):"";var e},D=function(t,e){var n=t.lookupNamespaceURI(null)===e||t.lookupPrefix(e),r=n?function(t,n){return function(t){return t.namespaceURI===e&&t.localName===n}}:function(t,e){return function(t){return t.localName===e}};return{$:function(t,e){return(0,h.A)(t.children).find(r(t,e))},$$:function(t,e){return(0,h.A)(t.children).filter(r(t,e))},$$$:n?function(t,n){return(0,h.A)(t.getElementsByTagNameNS(e,n))}:function(t,e){return(0,h.A)(t.getElementsByTagName(e))}}},B=function(t,e){try{if(t=t.replace(/%2c/gi,",").replace(/%3a/gi,":"),e.includes(":")&&!e.startsWith("OEBPS"))return new URL(t,e);var n="https://invalid.invalid/",r=new URL(t,n+e);return r.search="",decodeURI(r.href.replace(n,""))}catch(e){return console.warn(e),t}},z=function(t){return/^(?!blob)\w+:/i.test(t)},U=function(){var t=(0,f.A)(p().mark((function t(e,n,r){var i,o,a,s,u,c,l;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<t;n++)e[n]=arguments[n];return i.push(e),null})),o=[],a=0,s=i;case 1:if(!(a<s.length)){t.next=4;break}return u=s[a],c=o,t.next=2,r.apply(void 0,(0,h.A)(u));case 2:l=t.sent,c.push.call(c,l);case 3:a++,t.next=1;break;case 4:return t.abrupt("return",e.replace(n,(function(){return o.shift()})));case 5:case"end":return t.stop()}}),t)})));return function(e,n,r){return t.apply(this,arguments)}}(),W=function(t){return t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")},H={attrs:["dir","xml:lang"]},q=_(_({name:"alternate-script",many:!0},H),{},{props:["file-as"]}),V=_(_({many:!0},H),{},{props:[{name:"role",many:!0,attrs:["scheme"]},"file-as",q],setLegacyAttrs:function(t,e){var n,r;if(null===(n=t.role)||void 0===n||!n.length){var i=e.getAttributeNS(O,"role");i&&(t.role=[{value:i}])}null!==(r=t.fileAs)&&void 0!==r||(t.fileAs=e.getAttributeNS(O,"file-as"))}}),$=[_(_({name:"title",many:!0},H),{},{props:["title-type","display-seq","file-as",q]}),{name:"identifier",many:!0,props:[{name:"identifier-type",attrs:["scheme"]}],setLegacyAttrs:function(t,e){if(!t.identifierType){var n=e.getAttributeNS(O,"scheme");n&&(t.identifierType={value:n})}}},{name:"language",many:!0},_({name:"creator"},V),_({name:"contributor"},V),_(_({name:"publisher"},H),{},{props:["file-as",q]}),_(_({name:"description"},H),{},{props:[q]}),_(_({name:"rights"},H),{},{props:[q]}),{name:"date"},{name:"dcterms:modified",type:"meta"},_(_({name:"subject",many:!0},H),{},{props:["term","authority",q],setLegacyAttrs:function(t,e){var n,r;null!==(n=t.term)&&void 0!==n||(t.term=e.getAttributeNS(O,"term")),null!==(r=t.authority)&&void 0!==r||(t.authority=e.getAttributeNS(O,"authority"))}}),{name:"source",many:!0},_(_({name:"belongs-to-collection",type:"meta",many:!0},H),{},{props:["collection-type","group-position","dcterms:identifier","file-as",q,{name:"belongs-to-collection",recursive:!0}]})],G=function(t){var e,n=D(t,O),r=n.$,i=n.$$,o=r(t.documentElement,"metadata"),a=Array.from(o.children),s=function(t,e){var n;if(!e)return null;var r=t.props,i=void 0===r?[]:r,o=t.attrs,u=void 0===o?[]:o,c=N(e);if(!i.length&&!u.length)return c;var l=e.getAttribute("id"),f=l?a.filter(j("refines","#"+l)):[],h=Object.fromEntries([["value",c]].concat(i.map((function(e){var n=e.many,r=e.recursive,i="string"==typeof e?e:e.name,o=j("property",i),a=r?t:e;return[P(i),n?f.filter(o).map((function(t){return s(a,t)})):s(a,f.find(o))]}))).concat(u.map((function(t){return[P(t),e.getAttribute(t)]}))));return null===(n=t.setLegacyAttrs)||void 0===n||n.call(t,h,e),h},u=a.filter(j("refines",null)),l=Object.fromEntries($.map((function(t){var e=t.type,n=t.name,r=t.many,i="meta"===e?function(t){return t.namespaceURI===O&&t.getAttribute("property")===n}:function(t){return t.namespaceURI===C&&t.localName===n};return[P(n),r?u.filter(i).map((function(e){return s(t,e)})):s(t,u.find(i))]}))),f=i(o,"meta"),h=function(t){return f.filter(j("property",(function(e){return null==e?void 0:e.startsWith(t)}))).map((function(e){return[e.getAttribute("property").replace(t,""),e]}))},d=Object.fromEntries(h("rendition:").map((function(t){var e=(0,c.A)(t,2),n=e[0],r=e[1];return[n,N(r)]}))),p={narrator:[],duration:{}},v=S(h("media:"));try{for(v.s();!(e=v.n()).done;){var g,y,m=(0,c.A)(e.value,2),b=m[0],w=m[1],x=N(w);"duration"===b?p.duration[null!==(g=null===(y=w.getAttribute("refines"))||void 0===y||null===(y=y.split("#"))||void 0===y?void 0:y[1])&&void 0!==g?g:""]=K(x):"active-class"===b?p.activeClass=x:"narrator"===b?p.narrator.push(x):"playback-active-class"===b&&(p.playbackActiveClass=x)}}catch(t){v.e(t)}finally{v.f()}return{metadata:l,rendition:d,media:p}},X=function(t){var e,n=arguments.length>1&&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(!(s<k(J,this).length)){t.next=8;break}u=k(J,this)[s].items,c=0;case 5:if(!(c<u.length)){t.next=7;break}if(u[c].text.split("#")[0]!==o||!r(u[c],c,u)){t.next=6;break}return t.abrupt("return",A(ot,this,pt).call(this,s,c).catch((function(t){return A(ot,l,ft).call(l,t)})));case 6:c++,t.next=5;break;case 7:s++,t.next=4;break;case 8:case"end":return t.stop()}}),t,this)}))),function(t){return n.apply(this,arguments)})},{key:"pause",value:function(){var t;null===(t=k(nt,this))||void 0===t||t.pause()}},{key:"resume",value:function(){var t,e=this;null===(t=k(nt,this))||void 0===t||t.play().catch((function(t){return A(ot,e,ft).call(e,t)}))}},{key:"prev",value:function(){k(et,this)>0?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;o<n;o++)i[o]=i[o]^e[o%e.length];return t.abrupt("return",new Blob([i,r.slice(n)],{type:r.type}));case 2:case"end":return t.stop()}}),t)})));return function(e,n,r){return t.apply(this,arguments)}}(),bt=function(){var t=(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 n=(new TextEncoder).encode(e),t.next=1,globalThis.crypto.subtle.digest("SHA-1",n);case 1:return r=t.sent,t.abrupt("return",new Uint8Array(r));case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),wt=new WeakMap,xt=new WeakMap,kt=new WeakMap,At=function(){return(0,i.A)((function t(e){(0,r.A)(this,t),m(this,wt,new Map),m(this,xt,new Map),m(this,kt,void 0),x(kt,this,e)}),[{key:"init",value:(t=(0,f.A)(p().mark((function t(e,n){var r,i,o,a,s=this;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e){t.next=1;break}return t.abrupt("return");case 1:r=Array.from(e.getElementsByTagNameNS(L,"EncryptedData"),(function(t){var e,n;return{algorithm:null===(e=t.getElementsByTagNameNS(L,"EncryptionMethod")[0])||void 0===e?void 0:e.getAttribute("Algorithm"),uri:null===(n=t.getElementsByTagNameNS(L,"CipherReference")[0])||void 0===n?void 0:n.getAttribute("URI")}})),i=p().mark((function t(){var e,r,i,u,c;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=a[o],r=e.algorithm,i=e.uri,k(xt,s).has(r)){t.next=3;break}if(u=k(kt,s)[r]){t.next=1;break}return console.warn("Unknown encryption algorithm"),t.abrupt("return",1);case 1:return t.next=2,u.key(n);case 2:c=t.sent,k(xt,s).set(r,(function(t){return u.decode(c,t)}));case 3:k(wt,s).set(i,r);case 4:case"end":return t.stop()}}),t)})),o=0,a=r;case 2:if(!(o<a.length)){t.next=5;break}return t.delegateYield(i(),"t0",3);case 3:if(!t.t0){t.next=4;break}return t.abrupt("continue",4);case 4:o++,t.next=2;break;case 5:case"end":return t.stop()}}),t)}))),function(e,n){return t.apply(this,arguments)})},{key:"getDecoder",value:function(t){var e;return null!==(e=k(xt,this).get(k(wt,this).get(t)))&&void 0!==e?e:function(t){return t}}}]);var t}(),St=function(){return(0,i.A)((function t(e){var n,i,o,a,s,u,c,l,f,h,d,p,g=e.opf,y=e.resolveHref;(0,r.A)(this,t),this.opf=g;var m=D(g,O),b=m.$,w=m.$$,x=m.$$$,k=b(g.documentElement,"manifest"),A=b(g.documentElement,"spine"),S=w(A,"itemref");this.manifest=w(k,"item").map(F("href","id","media-type","properties","media-overlay")).map((function(t){var e;return t.href=y(t.href),t.properties=null===(e=t.properties)||void 0===e?void 0:e.split(/\s/),t})),this.spine=S.map(F("idref","id","linear","properties")).map((function(t){var e;return t.properties=null===(e=t.properties)||void 0===e?void 0:e.split(/\s/),t})),this.pageProgressionDirection=A.getAttribute("page-progression-direction"),this.navPath=null===(n=this.getItemByProperty("nav"))||void 0===n?void 0:n.href,this.ncxPath=null===(i=null!==(o=this.getItemByID(A.getAttribute("toc")))&&void 0!==o?o:this.manifest.find((function(t){return t.mediaType===I.NCX})))||void 0===i?void 0:i.href;var E=b(g.documentElement,"guide");E&&(this.guide=w(E,"reference").map(F("type","title","href")).map((function(t){var e=t.type,n=t.title,r=t.href;return{label:n,type:e.split(/\s/),href:y(r)}})));var T=null!==(a=null!==(s=null!==(u=null!==(c=null!==(l=null!==(f=this.getItemByProperty("cover-image"))&&void 0!==f?f:this.getItemByID(null===(h=x(g,"meta").find(j("name","cover")))||void 0===h?void 0:h.getAttribute("content")))&&void 0!==l?l:this.getItemByHref(null===(d=this.guide)||void 0===d||null===(d=d.find((function(t){return t.type.includes("cover")})))||void 0===d?void 0:d.href))&&void 0!==c?c:this.manifest.find((function(t){var e,n;return["cover","cover-image","coverimage"].includes(null===(e=t.id)||void 0===e?void 0:e.toLowerCase())&&(null===(n=t.mediaType)||void 0===n?void 0:n.startsWith("image/"))})))&&void 0!==u?u:this.manifest.find((function(t){var e,n,r=null===(e=t.href)||void 0===e?void 0:e.toLowerCase();return r&&(null===(n=t.mediaType)||void 0===n?void 0:n.startsWith("image/"))&&(r.includes("/cover.")||r.includes("/cover_")||r.endsWith("cover.jpg")||r.endsWith("cover.png")||r.endsWith("cover.jpeg")||r.endsWith("cover.gif"))})))&&void 0!==s?s:this.manifest.find((function(t){var e,n;return(null===(e=t.id)||void 0===e?void 0:e.toLowerCase().includes("titlepage"))&&(null===(n=t.mediaType)||void 0===n?void 0:n.startsWith("image/"))})))&&void 0!==a?a:this.manifest.find((function(t){var e;return null===(e=t.mediaType)||void 0===e?void 0:e.startsWith("image/")}));null!=T&&null!==(p=T.mediaType)&&void 0!==p&&p.includes("html")?(this.coverPage=T,this.cover=null):(this.cover=T,this.coverPage=null),this.cfis=v.ob(S)}),[{key:"getItemByID",value:function(t){return this.manifest.find((function(e){return e.id===t}))}},{key:"getItemByHref",value:function(t){return this.manifest.find((function(e){return e.href===t}))}},{key:"getItemByProperty",value:function(t){return this.manifest.find((function(e){var n;return null===(n=e.properties)||void 0===n?void 0:n.includes(t)}))}},{key:"resolveCFI",value:function(t){var e,n,r=v.qg(t),i=(null!==(e=r.parent)&&void 0!==e?e:r).shift(),o=v.wT(this.opf,i);o&&"idref"!==o.nodeName&&(i[i.length-1].id=null,o=v.wT(this.opf,i));var a=null===(n=o)||void 0===n?void 0:n.getAttribute("idref");return{index:this.spine.findIndex((function(t){return t.idref===a})),anchor:function(t){return v.Xp(t,r)}}}}])}(),Et=new WeakMap,Tt=new WeakMap,_t=new WeakMap,Ot=function(){return(0,i.A)((function t(e){var n=e.loadText,i=e.loadBlob,o=e.resources;(0,r.A)(this,t),m(this,Et,new Map),m(this,Tt,new Map),m(this,_t,new Map),(0,l.A)(this,"eventTarget",new EventTarget),(0,l.A)(this,"allowScript",!1),this.loadText=n,this.loadBlob=i,this.manifest=o.manifest,this.assets=o.manifest;var a=new URLSearchParams(window.location.search);this.allowScript=JSON.parse(a.get("style")).allowScript}),[{key:"createURL",value:(a=(0,f.A)(p().mark((function t(e,n,r,i){var o,a,s,u,c,l,f;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n){t.next=1;break}return t.abrupt("return","");case 1:return a={name:e,data:n,type:r},this.eventTarget.dispatchEvent(new CustomEvent("data",{detail:a})),t.next=2,a.data;case 2:return s=t.sent,u=null!==(o=a.type)&&void 0!==o?o:r,c=s instanceof Blob?s:new Blob([s],{type:u}),a.type=c.type||u,a.data=c,l=URL.createObjectURL(c),k(Et,this).set(e,l),k(_t,this).set(e,1),i&&((f=k(Tt,this).get(i))?f.push(e):k(Tt,this).set(i,[e])),t.abrupt("return",l);case 3:case"end":return t.stop()}}),t,this)}))),function(t,e,n,r){return a.apply(this,arguments)})},{key:"ref",value:function(t,e){var n=k(Tt,this).get(e);return null!=n&&n.includes(t)||(k(_t,this).set(t,k(_t,this).get(t)+1),n?n.push(t):k(Tt,this).set(e,[t])),k(Et,this).get(t)}},{key:"unref",value:function(t){if(k(_t,this).has(t)){var e=k(_t,this).get(t)-1;if(e<1){URL.revokeObjectURL(k(Et,this).get(t)),k(Et,this).delete(t),k(_t,this).delete(t);var n=k(Tt,this).get(t);if(n)for(;n.length;)this.unref(n.pop());k(Tt,this).delete(t)}else k(_t,this).set(t,e)}}},{key:"loadItem",value:(o=(0,f.A)(p().mark((function t(e){var n,r,i,o,a,s,u,c,l,f,h,d,v,g=this,y=arguments;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=y.length>1&&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(!(y<m.length)){t.next=17;break}return b=m[y],t.prev=12,t.next=13,this.loadBlob(b);case 13:if(!((w=t.sent)&&w.size>0)){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(u<a)return c*i(u/a/e)*a*e;var l=(1+e/2220446049250313e-31)*u,f=l-(l-u);return f>n||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<b;m++,f++)m in h&&l(r,f,h[m]);return r.length=f,r}})},34873:function(t,e,n){"use strict";var r=n(46518),i=n(28551),o=n(73506),a=n(52967);a&&r({target:"Reflect",stat:!0},{setPrototypeOf:function(t,e){i(t),o(e);try{return a(t,e),!0}catch(t){return!1}}})},34885:function(t,e,n){"use strict";n.r(e),n.d(e,{MOBI:function(){return yt},isMOBI:function(){return at}});var r=n(56822),i=n(53954),o=n(96045),a=n(85501),s=n(89394),u=n(23029),c=n(92901),l=n(64467),f=n(10467),h=n(3453),d=n(54756),p=n.n(d);function v(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function g(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?v(Object(n),!0).forEach((function(e){(0,l.A)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function y(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(y=function(){return!!t})()}function m(t,e,n,r){var a=(0,o.A)((0,i.A)(1&r?t.prototype:t),e,n);return 2&r&&"function"==typeof a?function(t){return a.apply(n,t)}:a}function b(t,e){x(t,e),e.add(t)}function w(t,e,n){x(t,e),e.set(t,n)}function x(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function k(t,e){return t.get(S(t,e))}function A(t,e,n){return t.set(S(t,e),n),n}function S(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 E(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 T(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)?T(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 T(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var _=function(t){if(!t)return"";var e=document.createElement("textarea");return e.innerHTML=t,e.value},O={XML:"application/xml",XHTML:"application/xhtml+xml",HTML:"text/html",CSS:"text/css",SVG:"image/svg+xml"},M={name:[0,32,"string"],type:[60,4,"string"],creator:[64,4,"string"],numRecords:[76,2,"uint"]},C={compression:[0,2,"uint"],numTextRecords:[8,2,"uint"],recordSize:[10,2,"uint"],encryption:[12,2,"uint"]},L={magic:[16,4,"string"],length:[20,4,"uint"],type:[24,4,"uint"],encoding:[28,4,"uint"],uid:[32,4,"uint"],version:[36,4,"uint"],titleOffset:[84,4,"uint"],titleLength:[88,4,"uint"],localeRegion:[94,1,"uint"],localeLanguage:[95,1,"uint"],resourceStart:[108,4,"uint"],huffcdic:[112,4,"uint"],numHuffcdic:[116,4,"uint"],exthFlag:[128,4,"uint"],trailingFlags:[240,4,"uint"],indx:[244,4,"uint"]},R={resourceStart:[108,4,"uint"],fdst:[192,4,"uint"],numFdst:[196,4,"uint"],frag:[248,4,"uint"],skel:[252,4,"uint"],guide:[260,4,"uint"]},I={magic:[0,4,"string"],length:[4,4,"uint"],count:[8,4,"uint"]},P={magic:[0,4,"string"],length:[4,4,"uint"],type:[8,4,"uint"],idxt:[20,4,"uint"],numRecords:[24,4,"uint"],encoding:[28,4,"uint"],language:[32,4,"uint"],total:[36,4,"uint"],ordt:[40,4,"uint"],ligt:[44,4,"uint"],numLigt:[48,4,"uint"],numCncx:[52,4,"uint"]},j={magic:[0,4,"string"],length:[4,4,"uint"],numControlBytes:[8,4,"uint"]},F={magic:[0,4,"string"],offset1:[8,4,"uint"],offset2:[12,4,"uint"]},N={magic:[0,4,"string"],length:[4,4,"uint"],numEntries:[8,4,"uint"],codeLength:[12,4,"uint"]},D={magic:[0,4,"string"],numEntries:[8,4,"uint"]},B={flags:[8,4,"uint"],dataStart:[12,4,"uint"],keyLength:[16,4,"uint"],keyStart:[20,4,"uint"]},z={1252:"windows-1252",65001:"utf-8"},U={100:["creator","string",!0],101:["publisher"],103:["description"],104:["isbn"],105:["subject","string",!0],106:["date"],108:["contributor","string",!0],109:["rights"],110:["subjectCode","string",!0],112:["source","string",!0],113:["asin"],121:["boundary","uint"],122:["fixedLayout"],125:["numResources","uint"],126:["originalResolution"],127:["zeroGutter"],128:["zeroMargin"],129:["coverURI"],132:["regionMagnification"],201:["coverOffset","uint"],202:["thumbnailOffset","uint"],503:["title"],524:["language","string",!0],527:["pageProgressionDirection"]},W={1:["ar","ar-SA","ar-IQ","ar-EG","ar-LY","ar-DZ","ar-MA","ar-TN","ar-OM","ar-YE","ar-SY","ar-JO","ar-LB","ar-KW","ar-AE","ar-BH","ar-QA"],2:["bg"],3:["ca"],4:["zh","zh-TW","zh-CN","zh-HK","zh-SG"],5:["cs"],6:["da"],7:["de","de-DE","de-CH","de-AT","de-LU","de-LI"],8:["el"],9:["en","en-US","en-GB","en-AU","en-CA","en-NZ","en-IE","en-ZA","en-JM",null,"en-BZ","en-TT","en-ZW","en-PH"],10:["es","es-ES","es-MX",null,"es-GT","es-CR","es-PA","es-DO","es-VE","es-CO","es-PE","es-AR","es-EC","es-CL","es-UY","es-PY","es-BO","es-SV","es-HN","es-NI","es-PR"],11:["fi"],12:["fr","fr-FR","fr-BE","fr-CA","fr-CH","fr-LU","fr-MC"],13:["he"],14:["hu"],15:["is"],16:["it","it-IT","it-CH"],17:["ja"],18:["ko"],19:["nl","nl-NL","nl-BE"],20:["no","nb","nn"],21:["pl"],22:["pt","pt-BR","pt-PT"],23:["rm"],24:["ro"],25:["ru"],26:["hr",null,"sr"],27:["sk"],28:["sq"],29:["sv","sv-SE","sv-FI"],30:["th"],31:["tr"],32:["ur"],33:["id"],34:["uk"],35:["be"],36:["sl"],37:["et"],38:["lv"],39:["lt"],41:["fa"],42:["vi"],43:["hy"],44:["az"],45:["eu"],46:["hsb"],47:["mk"],48:["st"],49:["ts"],50:["tn"],52:["xh"],53:["zu"],54:["af"],55:["ka"],56:["fo"],57:["hi"],58:["mt"],59:["se"],62:["ms"],63:["kk"],65:["sw"],67:["uz",null,"uz-UZ"],68:["tt"],69:["bn"],70:["pa"],71:["gu"],72:["or"],73:["ta"],74:["te"],75:["kn"],76:["ml"],77:["as"],78:["mr"],79:["sa"],82:["cy","cy-GB"],83:["gl","gl-ES"],87:["kok"],97:["ne"],98:["fy"]},H=function(t,e){var n=new t.constructor(t.length+e.length);return n.set(t),n.set(e,t.length),n},q=function(t,e,n){var r=new t.constructor(t.length+e.length+n.length);return r.set(t),r.set(e,t.length),r.set(n,t.length+e.length),r},V=new TextDecoder,$=function(t){return V.decode(t)},G=function(t){if(t){var e=t.byteLength,n=4===e?"getUint32":2===e?"getUint16":"getUint8";return new DataView(t)[n](0)}},X=function(t,e){return Object.fromEntries(Array.from(Object.entries(t)).map((function(t){var n=(0,h.A)(t,2),r=n[0],i=(0,h.A)(n[1],3),o=i[0],a=i[1];return[r,("string"===i[2]?$:G)(e.slice(o,o+a))]})))},Y=function(t){return new TextDecoder(z[t])},K=function(t){var e,n=arguments.length>1&&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<t.length;n++){var r=t[n];if(0===r)e.push(0);else if(r<=8){var i,o=E(t.subarray(n+1,(n+=r)+1));try{for(o.s();!(i=o.n()).done;){var a=i.value;e.push(a)}}catch(t){o.e(t)}finally{o.f()}}else if(r<=127)e.push(r);else if(r<=191)for(var s=r<<8|t[1+n++],u=(16383&s)>>>3,c=3+(7&s),l=0;l<c;l++)e.push(e[e.length-u]);else e.push(32,128^r)}return Uint8Array.from(e)},et=function(t,e){for(var n=e+32,r=n>>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<e.numHuffcdic)){t.next=7;break}return t.next=4,n(e.huffcdic+f);case 4:if(d=t.sent,"CDIC"===(v=X(N,d)).magic){t.next=5;break}throw new Error("Invalid CDIC record");case 5:for(g=Math.min(1<<v.codeLength,v.numEntries-l.length),y=d.slice(v.length),m=0;m<g;m++)b=G(y.slice(2*m,2*m+2)),w=G(y.slice(b,b+2)),x=32767&w,k=32768&w,A=new Uint8Array(y.slice(b+2,b+2+x)),l.push([A,k]);case 6:f++,t.next=3;break;case 7:return S=function(t){for(var e=new Uint8Array,n=8*t.byteLength,r=0;r<n;){var i=Number(et(t,r)),o=(0,h.A)(u[i>>>24],3),a=o[0],s=o[1],f=o[2];if(!a){for(;i>>>32-s<c[s][0];)s+=1;f=c[s][1]}if((r+=s)>n)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(!(d<i.numCncx)){t.next=7;break}return t.next=5,n(e+i.numRecords+d+1);case 5:for(v=t.sent,g=new Uint8Array(v),y=0;y<g.byteLength;)m=y,b=K(g,y),w=b.value,x=b.length,y+=x,k=v.slice(y,y+w),y+=w,l[f+m]=o.decode(k);f+=65536;case 6:d++,t.next=4;break;case 7:A=[],S=0;case 8:if(!(S<i.numRecords)){t.next=22;break}return t.next=9,n(e+1+S);case 9:if(T=t.sent,_=new Uint8Array(T),"INDX"===(O=X(P,T)).magic){t.next=10;break}throw new Error("Invalid INDX record");case 10:M=0;case 11:if(!(M<O.numRecords)){t.next=21;break}C=O.idxt+4+2*M,L=G(T.slice(C,C+2)),R=G(T.slice(L,L+1)),I=$(T.slice(L+1,L+1+R)),F=[],D=0,B=(N=L+1+R)+s.numControlBytes,z=E(c),t.prev=12,z.s();case 13:if((U=z.n()).done){t.next=16;break}if(W=(0,h.A)(U.value,4),H=W[0],q=W[1],V=W[2],!(1&W[3])){t.next=14;break}return D++,t.abrupt("continue",15);case 14:J=N+D,(tt=G(T.slice(J,J+1))&V)===V?Z(V)>1?(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<at.length;ot++){if(st=(0,h.A)(at[ot],4),ut=st[0],ct=st[1],lt=st[2],ft=st[3],ht=[],null!=ct)for(dt=0;dt<ct*ft;dt++)pt=K(_,B),vt=pt.value,gt=pt.length,ht.push(vt),B+=gt;else for(yt=0;yt<lt;)mt=K(_,B),bt=mt.value,wt=mt.length,ht.push(bt),B+=wt,yt+=wt;it[ut]=ht}A.push({name:I,tagMap:it});case 20:M++,t.next=11;break;case 21:S++,t.next=8;break;case 22:return t.abrupt("return",{table:A,cncx:l});case 23:case"end":return t.stop()}}),t,null,[[12,17,18,19]])})));return function(e,n){return t.apply(this,arguments)}}(),it=function(){var t=(0,f.A)(p().mark((function t(e,n){var r,i,o,a,s;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,rt(e,n);case 1:return r=t.sent,i=r.table,o=r.cncx,a=i.map((function(t,e){var n,r,i,a,s,u,c,l=t.tagMap;return{index:e,offset:null===(n=l[1])||void 0===n?void 0:n[0],size:null===(r=l[2])||void 0===r?void 0:r[0],label:null!==(i=o[l[3]])&&void 0!==i?i:"",headingLevel:null===(a=l[4])||void 0===a?void 0:a[0],pos:l[6],parent:null===(s=l[21])||void 0===s?void 0:s[0],firstChild:null===(u=l[22])||void 0===u?void 0:u[0],lastChild:null===(c=l[23])||void 0===c?void 0:c[0]}})),s=function(t){return null==t.firstChild||(t.children=a.filter((function(e){return e.parent===t.index})).map(s)),t},t.abrupt("return",a.filter((function(t){return 0===t.headingLevel})).map(s));case 2:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}(),ot=function(){var t=(0,f.A)(p().mark((function t(e,n){var 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(r=X(B,e),i=r.flags,o=r.dataStart,a=r.keyLength,s=r.keyStart,u=new Uint8Array(e.slice(o)),2&i)for(c=16===a?1024:1040,l=new Uint8Array(e.slice(s,s+a)),f=Math.min(c,u.length),h=0;h<f;h++)u[h]=u[h]^l[h%l.length];if(!(1&i)){t.next=4;break}return t.prev=1,t.next=2,n(u);case 2:return t.abrupt("return",t.sent);case 3:t.prev=3,d=t.catch(1),console.warn(d),console.warn("Failed to decompress font");case 4:return t.abrupt("return",u);case 5:case"end":return t.stop()}}),t,null,[[1,3]])})));return function(e,n){return t.apply(this,arguments)}}(),at=function(){var t=(0,f.A)(p().mark((function t(e){var n,r,i;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=$,t.next=1,e.slice(60,68).arrayBuffer();case 1:return i=t.sent,n=r(i),t.abrupt("return","BOOKMOBI"===n);case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),st=new WeakMap,ut=new WeakMap,ct=function(){return(0,c.A)((function t(){(0,u.A)(this,t),w(this,st,void 0),w(this,ut,void 0),(0,l.A)(this,"pdb",void 0)}),[{key:"open",value:(e=(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:return A(st,this,e),i=X,o=M,t.next=1,e.slice(0,78).arrayBuffer();case 1:return a=t.sent,n=i(o,a),this.pdb=n,t.next=2,e.slice(78,78+8*n.numRecords).arrayBuffer();case 2:r=t.sent,A(ut,this,Array.from({length:n.numRecords},(function(t,e){return G(r.slice(8*e,8*e+4))})).map((function(t,e,n){return[t,n[e+1]]})));case 3:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})},{key:"loadRecord",value:function(t){var e,n=k(ut,this)[t];if(!n)throw new RangeError("Record index out of bounds");return(e=k(st,this)).slice.apply(e,(0,s.A)(n)).arrayBuffer()}},{key:"loadMagic",value:(t=(0,f.A)(p().mark((function t(e){var n,r,i;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=k(ut,this)[e][0],r=$,t.next=1,k(st,this).slice(n,n+4).arrayBuffer();case 1:return i=t.sent,t.abrupt("return",r(i));case 2:case"end":return t.stop()}}),t,this)}))),function(e){return t.apply(this,arguments)})}]);var t,e}(),lt=new WeakMap,ft=new WeakMap,ht=new WeakMap,dt=new WeakMap,pt=new WeakMap,vt=new WeakMap,gt=new WeakSet,yt=function(t){function e(t){var n,o,a,s,c=t.unzlib;return(0,u.A)(this,e),o=this,a=e,a=(0,i.A)(a),b(n=(0,r.A)(o,y()?Reflect.construct(a,[],(0,i.A)(o).constructor):a.apply(o,s)),gt),w(n,lt,0),w(n,ft,void 0),w(n,ht,void 0),w(n,dt,void 0),w(n,pt,void 0),w(n,vt,void 0),n.unzlib=c,n}return(0,a.A)(e,t),(0,c.A)(e,[{key:"open",value:(s=(0,f.A)(p().mark((function t(n){var r,i,o,a,s,u,c,l,f,h;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,m(e,"open",this,3)([n]);case 1:return a=S(gt,this,mt),s=this,t.next=2,m(e,"loadRecord",this,3)([0]);case 2:if(u=t.sent,this.headers=a.call.call(a,s,u),A(ft,this,this.headers.mobi.resourceStart),r=this.headers.mobi.version>=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<i;u++){var c=G(t.slice(s,s+4)),l=G(t.slice(s+4,s+8));if(c in U){var f,d=(0,h.A)(U[c],3),p=d[0],v=d[1],g=d[2],y=t.slice(s+8,s+l),m="uint"===v?G(y):o.decode(y);g?(null!==(f=a[p])&&void 0!==f||(a[p]=[]),a[p].push(m)):a[p]=m}s+=l}return a}(t.slice(r.length+16),r.encoding):null;return{palmdoc:n,mobi:r,exth:c,kf8:r.version>=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<s;e++){var n=J(t);t=t.subarray(0,-n)}if(a){var r=1+(3&t[t.length-1]);t=t.subarray(0,-r)}return t}));case 9:case"end":return t.stop()}}),t,this)})))).apply(this,arguments)}var xt=/<\s*(?:mbp:)?pagebreak[^>]*>/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(!(n<this.mobi.headers.palmdoc.numTextRecords)){t.next=4;break}return g=H,y=e,t.next=2,this.mobi.loadText(n);case 2:m=t.sent,e=g(y,m);case 3:n++,t.next=1;break;case 4:return r=Array.from(new Uint8Array(e),(function(t){return String.fromCharCode(t)})).join(""),A(_t,this,[0].concat(Array.from(r.matchAll(xt),(function(t){return t.index}))).map((function(t,e,n){return r.slice(t,n[e+1])})).map((function(t){return Uint8Array.from(t,(function(t){return t.charCodeAt(0)}))})).map((function(t){return{book:w,raw:t}})).reduce((function(t,e){var n,r=t[t.length-1];return e.start=null!==(n=null==r?void 0:r.end)&&void 0!==n?n:0,e.end=e.start+e.raw.byteLength,t.concat(e)}),[])),this.sections=k(_t,this).map((function(t,e){return{id:e,load:function(){return w.loadSection(t)},createDocument:function(){return w.createDocument(t)},size:t.end-t.start}})),t.prev=5,t.next=6,this.getGuide();case 6:if(this.landmarks=t.sent,!(o=null===(i=this.landmarks.find((function(t){var e=t.type;return null==e?void 0:e.includes("toc")})))||void 0===i?void 0:i.href)){t.next=8;break}return a=this.resolveHref(o),u=a.index,t.next=7,this.sections[u].createDocument();case 7:c=t.sent,f=0,h=0,d=new Map,v=new Map,this.toc=Array.from(c.querySelectorAll("a[filepos]")).reduce((function(t,e){var n,r,i,o=At(e),a={label:null!==(n=null===(r=e.innerText)||void 0===r?void 0:r.trim())&&void 0!==n?n:"",href:"filepos:".concat(e.getAttribute("filepos"))},s=o>h?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<e.end})).map((function(t){return g(g({},t),{},{offset:t.number-e.start})})),i=n,r.length&&(i=n.subarray(0,r[0].offset),r.forEach((function(t,e){var o=t.filepos,s=t.offset,u=r[e+1],c=a.mobi.encode('<a id="filepos'.concat(o,'"></a>'));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<t;n++)e[n]=arguments[n];return i.push(e),null})),o=[],a=0,u=i;case 1:if(!(a<u.length)){t.next=4;break}return c=u[a],l=o,t.next=2,r.apply(void 0,(0,s.A)(c));case 2:f=t.sent,l.push.call(l,f);case 3:a++,t.next=1;break;case 4:return t.abrupt("return",e.replace(n,(function(){return o.shift()})));case 5:case"end":return t.stop()}}),t)})));return function(e,n,r){return t.apply(this,arguments)}}(),Dt=function(t){var e,n=E(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()}},Bt=new WeakMap,zt=new WeakMap,Ut=new WeakMap,Wt=new WeakMap,Ht=new WeakMap,qt=new WeakMap,Vt=new WeakMap,$t=new WeakMap,Gt=new WeakMap,Xt=new WeakMap,Yt=new WeakMap,Kt=new WeakMap,Jt=new WeakSet,Zt=function(){return(0,c.A)((function t(e){(0,u.A)(this,t),b(this,Jt),(0,l.A)(this,"parser",new DOMParser),(0,l.A)(this,"serializer",new XMLSerializer),w(this,Bt,new Map),w(this,zt,new Map),w(this,Ut,new Map),w(this,Wt,{}),w(this,Ht,void 0),w(this,qt,void 0),w(this,Vt,new Uint8Array),w(this,$t,new Uint8Array),w(this,Gt,-1),w(this,Xt,-1),w(this,Yt,O.XHTML),w(this,Kt,new Map),this.mobi=e}),[{key:"init",value:(g=(0,f.A)(p().mark((function t(){var e,n,r,i,o,a,s,u,c,l,f,d,v,g,y,m,b,w,x,S,T,M,C,L,R,I,P,j=this;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=this.mobi.loadRecord.bind(this.mobi),i=this.mobi.headers.kf8,t.prev=1,t.next=2,r(i.fdst);case 2:if(o=t.sent,"FDST"===(a=X(D,o)).magic){t.next=3;break}throw new Error("Missing FDST record");case 3:s=Array.from({length:a.numEntries},(function(t,e){return 12+8*e})).map((function(t){return[G(o.slice(t,t+4)),G(o.slice(t+4,t+8))]})),k(Wt,this).fdstTable=s,A(qt,this,s[s.length-1][1]),t.next=5;break;case 4:t.prev=4,t.catch(1);case 5:return t.next=6,rt(i.skel,r);case 6:return u=t.sent.table.map((function(t,e){var n=t.name,r=t.tagMap;return{index:e,name:n,numFrag:r[1][0],offset:r[6][0],length:r[6][1]}})),t.next=7,rt(i.frag,r);case 7:return c=t.sent,l=c.table.map((function(t){var e=t.name,n=t.tagMap;return{insertOffset:parseInt(e),selector:c.cncx[n[2][0]],index:n[4][0],offset:n[6][0],length:n[6][1]}})),k(Wt,this).skelTable=u,k(Wt,this).fragTable=l,A(Ht,this,u.reduce((function(t,e){var n,r,i=t[t.length-1],o=null!==(n=null==i?void 0:i.fragEnd)&&void 0!==n?n:0,a=o+e.numFrag,s=l.slice(o,a),u=e.length+s.map((function(t){return t.length})).reduce((function(t,e){return t+e})),c=(null!==(r=null==i?void 0:i.totalLength)&&void 0!==r?r:0)+u;return t.concat({skel:e,frags:s,fragEnd:a,length:u,totalLength:c})}),[])),t.next=8,this.getResourcesByMagic(["RESC","PAGE"]);case 8:if(f=t.sent,d=new Map,!f.RESC){t.next=10;break}return t.next=9,this.mobi.loadRecord(f.RESC);case 9:v=t.sent,g=this.mobi.decode(v.slice(16)).replace(/\0/g,""),y=g.search(/\?>/),m="<package>".concat(g.slice(y),"</package>"),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(!(a<i)){t.next=3;break}return t.delegateYield(o(),"t0",2);case 2:a++,t.next=1;break;case 3:return t.abrupt("return",n);case 4:case"end":return t.stop()}}),t,this)}))),function(t){return v.apply(this,arguments)})},{key:"getGuide",value:(d=(0,f.A)(p().mark((function t(){var e,n,r,i,o;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!((e=this.mobi.headers.kf8.guide)<4294967295)){t.next=2;break}return n=this.mobi.loadRecord.bind(this.mobi),t.next=1,rt(e,n);case 1:return r=t.sent,i=r.table,o=r.cncx,t.abrupt("return",i.map((function(t){var e,n,r,i,a=t.name,s=t.tagMap;return{label:null!==(e=o[s[1][0]])&&void 0!==e?e:"",type:null==a?void 0:a.split(/\s/),href:jt(null!==(n=null===(r=s[6])||void 0===r?void 0:r[0])&&void 0!==n?n:null===(i=s[3])||void 0===i?void 0:i[0])}})));case 2:case"end":return t.stop()}}),t,this)}))),function(){return d.apply(this,arguments)})},{key:"loadResourceBlob",value:(a=(0,f.A)(p().mark((function t(e){var n,r,i,o,a,s,u,c,l,f;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=It(e),i=r.resourceType,o=r.id,a=r.type,"flow"!==i){t.next=2;break}return t.next=1,this.loadFlow(o);case 1:l=t.sent,t.next=4;break;case 2:return t.next=3,this.mobi.loadResource(o-1);case 3:l=t.sent;case 4:if(s=l,![O.XHTML,O.HTML,O.CSS,O.SVG].includes(a)){t.next=6;break}return t.next=5,this.replaceResources(this.mobi.decode(s));case 5:f=t.sent,t.next=7;break;case 6:f=s;case 7:return u=f,c=a===O.SVG?this.parser.parseFromString(u,a):null,t.abrupt("return",[new Blob([u],{type:a}),null!=c&&null!==(n=c.getElementsByTagNameNS("http://www.w3.org/2000/svg","image"))&&void 0!==n&&n.length?c.documentElement:null]);case 8:case"end":return t.stop()}}),t,this)}))),function(t){return a.apply(this,arguments)})},{key:"loadResource",value:(o=(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(Bt,this).has(e)){t.next=1;break}return t.abrupt("return",k(Bt,this).get(e));case 1:return t.next=2,this.loadResourceBlob(e);case 2:return n=t.sent,r=(0,h.A)(n,2),i=r[0],o=r[1],a=o?e:URL.createObjectURL(i),o&&k(Kt,this).set(a,o),k(Bt,this).set(e,a),t.abrupt("return",a);case 3:case"end":return t.stop()}}),t,this)}))),function(t){return o.apply(this,arguments)})},{key:"replaceResources",value:function(t){var e=new RegExp(Lt,"g");return Nt(t,e,this.loadResource.bind(this))}},{key:"loadRaw",value:(i=(0,f.A)(p().mark((function t(e,n){var r,i,o,a,s,u,c,l,f;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=n-k(Vt,this).length,i=null==k(qt,this)?1/0:k(qt,this)-k($t,this).length-e,!(r<0||r<i)){t.next=4;break}case 1:if(!(k(Vt,this).length<n)){t.next=3;break}return a=A(Gt,this,(o=k(Gt,this),++o)),t.next=2,this.mobi.loadText(a);case 2:s=t.sent,A(Vt,this,H(k(Vt,this),s)),t.next=1;break;case 3:return t.abrupt("return",k(Vt,this).slice(e,n));case 4:if(!(k(qt,this)-k($t,this).length>e)){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.length<e;)n="0"+n;return n};r({global:!0},{escape:function(t){for(var e,n,r=o(t),i="",c=r.length,d=0;d<c;)e=a(r,d++),u(f,e)?i+=e:i+=(n=s(e,0))<256?"%"+h(n,2):"%u"+l(h(n,4));return i}})},36639:function(t,e,n){"use strict";var r=n(69565),i=n(79306),o=n(28551),a=n(20034),s=n(96837),u=n(97751),c=n(1767),l=n(20772),f=function(t){var e=0===t,n=1===t,f=2===t,h=3===t;return function(t,d,p){o(t);var v=void 0!==d;!v&&e||i(d);var g=c(t),y=u("Promise"),m=g.iterator,b=g.next,w=0;return new y((function(t,i){var u=function(t){l(m,i,t,i)},c=function(){try{if(v)try{s(w)}catch(t){u(t)}y.resolve(o(r(b,m))).then((function(r){try{if(o(r).done)e?(p.length=w,t(p)):t(!h&&(f||void 0));else{var s=r.value;try{if(v){var g=d(s,w),b=function(r){if(n)c();else if(f)r?c():l(m,t,!1,i);else if(e)try{p[w++]=r,c()}catch(t){u(t)}else r?l(m,t,h||s,i):c()};a(g)?y.resolve(g).then(b,u):b(g)}else p[w++]=s,c()}catch(t){u(t)}}}catch(t){i(t)}}),i)}catch(t){i(t)}};c()}))}};t.exports={toArray:f(0),forEach:f(1),every:f(2),some:f(3),find:f(4)}},36840:function(t,e,n){"use strict";var r=n(94901),i=n(24913),o=n(50283),a=n(39433);t.exports=function(t,e,n,s){s||(s={});var u=s.enumerable,c=void 0!==s.name?s.name:e;if(r(n)&&o(n,c,s),s.global)u?t[e]=n:a(e,n);else{try{s.unsafe?t[e]&&(u=!0):delete t[e]}catch(t){}u?t[e]=n:i.f(t,e,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return t}},36955:function(t,e,n){"use strict";var r=n(92140),i=n(94901),o=n(22195),a=n(78227)("toStringTag"),s=Object,u="Arguments"===o(function(){return arguments}());t.exports=r?o:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=s(t),a))?n:u?o(e):"Object"===(r=o(e))&&i(e.callee)?"Arguments":r}},37467:function(t,e,n){"use strict";var r=n(37628),i=n(94644),o=i.aTypedArray,a=i.exportTypedArrayMethod,s=i.getTypedArrayConstructor;a("toReversed",(function(){return r(o(this),s(this))}))},37628:function(t,e,n){"use strict";var r=n(26198);t.exports=function(t,e){for(var n=r(t),i=new e(n),o=0;o<n;o++)i[o]=t[n-o-1];return i}},38309:function(t,e,n){"use strict";n(24359)},38469:function(t,e,n){"use strict";var r=n(79504),i=n(40507),o=n(94402),a=o.Set,s=o.proto,u=r(s.forEach),c=r(s.keys),l=c(new a).next;t.exports=function(t,e,n){return n?i({iterator:c(t),next:l},e):u(t,e)}},38480:function(t,e,n){"use strict";var r=n(61828),i=n(88727).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},38574:function(t,e,n){"use strict";var r=n(84215);t.exports="NODE"===r},38781:function(t,e,n){"use strict";var r=n(10350).PROPER,i=n(36840),o=n(28551),a=n(655),s=n(79039),u=n(61034),c="toString",l=RegExp.prototype,f=l[c],h=s((function(){return"/a/b"!==f.call({source:"a",flags:"b"})})),d=r&&f.name!==c;(h||d)&&i(l,c,(function(){var t=o(this);return"/"+a(t.source)+"/"+a(u(t))}),{unsafe:!0})},39202:function(t,e,n){"use strict";n(33313);var r=n(46518),i=n(18866);r({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==i},{trimEnd:i})},39297:function(t,e,n){"use strict";var r=n(79504),i=n(48981),o=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(i(t),e)}},39433:function(t,e,n){"use strict";var r=n(44576),i=Object.defineProperty;t.exports=function(t,e){try{i(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},39469:function(t,e,n){"use strict";var r=n(46518),i=Math.hypot,o=Math.abs,a=Math.sqrt;r({target:"Math",stat:!0,arity:2,forced:!!i&&i(1/0,NaN)!==1/0},{hypot:function(t,e){for(var n,r,i=0,s=0,u=arguments.length,c=0;s<u;)c<(n=o(arguments[s++]))?(i=i*(r=c/n)*r+1,c=n):i+=n>0?(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<s;f++)l[f]=f===c?a:t[f];return l}},40150:function(t,e,n){"use strict";n(46518)({target:"Number",stat:!0},{isNaN:function(t){return t!=t}})},40280:function(t,e,n){"use strict";var r=n(46518),i=n(97751),o=n(96395),a=n(80550),s=n(10916).CONSTRUCTOR,u=n(93438),c=i("Promise"),l=o&&!s;r({target:"Promise",stat:!0,forced:o||s},{resolve:function(t){return u(l&&this===c?a:this,t)}})},40507:function(t,e,n){"use strict";var r=n(69565);t.exports=function(t,e,n){for(var i,o,a=n?t:t.iterator,s=t.next;!(i=r(s,a)).done;)if(void 0!==(o=e(i.value)))return o}},40616:function(t,e,n){"use strict";var r=n(79039);t.exports=!r((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},40875:function(t,e,n){"use strict";var r=n(46518),i=n(79039),o=n(48981),a=n(42787),s=n(12211);r({target:"Object",stat:!0,forced:i((function(){a(1)})),sham:!s},{getPrototypeOf:function(t){return a(o(t))}})},40888:function(t,e,n){"use strict";var r=n(46518),i=n(69565),o=n(20034),a=n(28551),s=n(16575),u=n(77347),c=n(42787);r({target:"Reflect",stat:!0},{get:function t(e,n){var r,l,f=arguments.length<3?e:arguments[2];return a(e)===f?e[n]:(r=u.f(e,n))?s(r)?r.value:void 0===r.get?void 0:i(r.get,f):o(l=c(e))?t(l,n,f):void 0}})},41405:function(t,e,n){"use strict";var r=n(44576),i=n(18745),o=n(94644),a=n(79039),s=n(67680),u=r.Int8Array,c=o.aTypedArray,l=o.exportTypedArrayMethod,f=[].toLocaleString,h=!!u&&a((function(){f.call(new u(1))}));l("toLocaleString",(function(){return i(f,h?s(c(this)):c(this),s(arguments))}),a((function(){return[1,2].toLocaleString()!==new u([1,2]).toLocaleString()}))||!a((function(){u.prototype.toLocaleString.call([1,2])})))},41436:function(t,e,n){"use strict";var r=n(78227)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,"/./"[t](e)}catch(t){}}return!1}},42043:function(t,e,n){"use strict";var r=n(46518),i=n(79504),o=n(67750),a=n(655),s=i("".charCodeAt);r({target:"String",proto:!0},{isWellFormed:function(){for(var t=a(o(this)),e=t.length,n=0;n<e;n++){var r=s(t,n);if(55296==(63488&r)&&(r>=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);n<e;n++)r[n]=t[n];return r}n.d(e,{A:function(){return r}})},43251:function(t,e,n){"use strict";var r=n(76080),i=n(69565),o=n(35548),a=n(48981),s=n(26198),u=n(70081),c=n(50851),l=n(44209),f=n(18727),h=n(94644).aTypedArrayConstructor,d=n(75854);t.exports=function(t){var e,n,p,v,g,y,m,b,w=o(this),x=a(t),k=arguments.length,A=k>1?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;u<r;u++)e[n]=arguments[u],n++;return a(e,n),n}})},44124:function(t,e,n){"use strict";var r=n(44576);t.exports=function(t,e){var n=r[t],i=n&&n.prototype;return i&&i[e]}},44204:function(t,e,n){"use strict";var r=n(97080),i=n(94402).add,o=n(89286),a=n(83789),s=n(40507);t.exports=function(t){var e=r(this),n=a(t).getIterator(),u=o(e);return s(n,(function(t){i(u,t)})),u}},44209:function(t,e,n){"use strict";var r=n(78227),i=n(26269),o=r("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||a[o]===t)}},44213:function(t,e,n){"use strict";var r=n(43724),i=n(79504),o=n(69565),a=n(79039),s=n(71072),u=n(33717),c=n(48773),l=n(48981),f=n(47055),h=Object.assign,d=Object.defineProperty,p=i([].concat);t.exports=!h||a((function(){if(r&&1!==h({b:1},h(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol("assign detection"),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach((function(t){e[t]=t})),7!==h({},t)[n]||s(h({},e)).join("")!==i}))?function(t,e){for(var n=l(t),i=arguments.length,a=1,h=u.f,d=c.f;i>a;)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;w<a.length;w++){var x=a[w];if(":"!==x||m){var k=ft(x,lt);m?c.password+=k:c.username+=k}else m=!0}h=""}else if(o===r||"/"===o||"?"===o||"#"===o||"\\"===o&&c.isSpecial()){if(p&&""===h)return"Invalid authority";f-=v(h).length+1,h="",l=Tt}else h+=o;break;case Tt:case _t:if(e&&"file"===c.scheme){l=Lt;continue}if(":"!==o||y){if(o===r||"/"===o||"?"===o||"#"===o||"\\"===o&&c.isSpecial()){if(c.isSpecial()&&""===h)return $;if(e&&""===h&&(c.includesCredentials()||null!==c.port))return;if(s=c.parseHost(h))return s;if(h="",l=Rt,e)return;continue}"["===o?y=!0:"]"===o&&(y=!1),h+=o}else{if(""===h)return $;if(s=c.parseHost(h))return s;if(h="",l=Ot,e===_t)return}break;case Ot:if(!P(K,o)){if(o===r||"/"===o||"?"===o||"#"===o||"\\"===o&&c.isSpecial()||e){if(""!==h){var A=C(h,10);if(A>65535)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;r<e;r++){if(""===(i=u[r]))return t;if(o=10,i.length>1&&"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<e;r++)if(a=n[r],r===e-1){if(a>=R(256,5-e))return null}else if(a>255)return null;for(s=N(n),r=0;r<n.length;r++)s+=n[r]*R(256,3-r);return s}(t),null===e)return $;this.host=e}else{if(P(nt,t))return $;for(e="",n=v(t),r=0;r<n.length;r++)e+=ft(n[r],st);this.host=e}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return d(ht,this.scheme)},shortenPath:function(){var t=this.path,e=t.length;!e||"file"===this.scheme&&1===e&&dt(t[0],!0)||t.length--},serialize:function(){var t=this,e=t.scheme,n=t.username,r=t.password,i=t.host,o=t.port,a=t.path,s=t.query,u=t.fragment,c=e+":";return null!==i?(c+="//",t.includesCredentials()&&(c+=n+(r?":"+r:"")+"@"),c+=at(i),null!==o&&(c+=":"+o)):"file"===e&&(c+="//"),c+=t.cannotBeABaseURL?a[0]:a.length?"/"+j(a,"/"):"",null!==s&&(c+="?"+s),null!==u&&(c+="#"+u),c},setHref:function(t){var e=this.parse(t);if(e)throw new M(e);this.searchParams.update()},getOrigin:function(){var t=this.scheme,e=this.port;if("blob"===t)try{return new Dt(t.path[0]).origin}catch(t){return"null"}return"file"!==t&&this.isSpecial()?t+"://"+at(this.host)+(null!==e?":"+e:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(t){this.parse(b(t)+":",gt)},getUsername:function(){return this.username},setUsername:function(t){var e=v(b(t));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var n=0;n<e.length;n++)this.username+=ft(e[n],lt)}},getPassword:function(){return this.password},setPassword:function(t){var e=v(b(t));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var n=0;n<e.length;n++)this.password+=ft(e[n],lt)}},getHost:function(){var t=this.host,e=this.port;return null===t?"":null===e?at(t):at(t)+":"+e},setHost:function(t){this.cannotBeABaseURL||this.parse(t,Tt)},getHostname:function(){var t=this.host;return null===t?"":at(t)},setHostname:function(t){this.cannotBeABaseURL||this.parse(t,_t)},getPort:function(){var t=this.port;return null===t?"":b(t)},setPort:function(t){this.cannotHaveUsernamePasswordPort()||(""===(t=b(t))?this.port=null:this.parse(t,Ot))},getPathname:function(){var t=this.path;return this.cannotBeABaseURL?t[0]:t.length?"/"+j(t,"/"):""},setPathname:function(t){this.cannotBeABaseURL||(this.path=[],this.parse(t,Rt))},getSearch:function(){var t=this.query;return t?"?"+t:""},setSearch:function(t){""===(t=b(t))?this.query=null:("?"===I(t,0)&&(t=W(t,1)),this.query="",this.parse(t,jt)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var t=this.fragment;return t?"#"+t:""},setHash:function(t){""!==(t=b(t))?("#"===I(t,0)&&(t=W(t,1)),this.fragment="",this.parse(t,Ft)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var Dt=function(t){var e=h(this,Bt),n=x(arguments.length,1)>1?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<r.length;)if(r[s++]===i)return!0;return!1}),{enumerable:!0,unsafe:!0})},47764:function(t,e,n){"use strict";var r=n(68183).charAt,i=n(655),o=n(91181),a=n(51088),s=n(62529),u="String Iterator",c=o.set,l=o.getterFor(u);a(String,"String",(function(t){c(this,{type:u,string:i(t),index:0})}),(function(){var t,e=l(this),n=e.string,i=e.index;return i>=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);n<e;n++)r[n]=t[n];return r}var s=function(t){return t.replace(/\s+/g," ")},u=function(t,e){var n=e.startIndex,r=e.startOffset,i=e.endIndex,o=e.endOffset,a=t[n],u=t[i],c=a===u?a.slice(r,o):a.slice(r)+t.slice(a+1,u).join("")+u.slice(0,o),l=s(a.slice(0,r)).trimStart(),f=s(u.slice(o)).trimEnd(),h=l.length<50?"":"…",d=f.length<50?"":"…";return{pre:"".concat(h).concat(l.slice(-50)),match:c,post:"".concat(f.slice(0,50)).concat(d)}},c=function(t,e,n){var r,o=n.granularity,a=void 0===o?"grapheme":o,s=n.sensitivity,c=void 0===s?"base":s;return null!==(r=Intl)&&void 0!==r&&r.Segmenter&&("grapheme"!==a||"variant"!==c&&"accent"!==c)?function(t,e){var n=arguments.length>2&&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(!(g<t.length)){r.next=9;break}case 2:if(!(v.length<p)){r.next=7;break}if(m=y.next(),b=m.done,w=m.value,!b){r.next=4;break}if(!(++g<t.length)){r.next=3;break}return y=h.segment(t[g])[Symbol.iterator](),r.abrupt("continue",2);case 3:return r.abrupt("continue",9);case 4:if(x=w.index,k=w.segment,/(?:[\0-\xAC\xAE-\u05FF\u0606-\u061B\u061D-\u06DC\u06DE-\u070E\u0710-\u088F\u0892-\u08E1\u08E3-\u180D\u180F-\u200A\u2010-\u2029\u202F-\u205F\u2065\u2070-\uD7FF\uE000-\uFEFE\uFF00-\uFFF8\uFFFC-\uFFFF]|[\uD800-\uD803\uD805-\uD80C\uD80E-\uD82E\uD830-\uD833\uD835-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD804[\uDC00-\uDCBC\uDCBE-\uDCCC\uDCCE-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC40-\uDFFF]|\uD82F[\uDC00-\uDC9F\uDCA4-\uDFFF]|\uD834[\uDC00-\uDD72\uDD7B-\uDFFF]|\uDB40[\uDC00\uDC02-\uDC1F\uDC80-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/.test(k)){r.next=5;break}return r.abrupt("continue",2);case 5:if(!/[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]/.test(k)){r.next=6;break}return/[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]/.test(null===(A=v[v.length-1])||void 0===A?void 0:A.segment)||v.push({strIndex:g,index:x,segment:" "}),r.abrupt("continue",2);case 6:w.strIndex=g,v.push(w),r.next=2;break;case 7:if(S=v.map((function(t){return t.segment})).join(""),0!==d.compare(e,S)){r.next=8;break}return E=g,T=v[v.length-1],_=T.index+T.segment.length,O=v[0].strIndex,M=v[0].index,C={startIndex:O,startOffset:M,endIndex:E,endOffset:_},r.next=8,{range:C,excerpt:u(t,C)};case 8:v.shift(),r.next=1;break;case 9:case"end":return r.stop()}}),r)}))()}(t,e,n):function(t,e){var n=arguments.length>2&&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<e;n++)r[n]=t[n];return r}function u(t,e,n){c(t,e),e.set(t,n)}function c(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function l(t,e,n){return n(h(t,e))}function f(t,e){return t.get(h(t,e))}function h(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 d=function(t){return document.createElementNS("http://www.w3.org/2000/svg",t)},p=new WeakMap,v=new WeakMap,g=new WeakMap,y=new WeakSet,m=function(){return(0,o.A)((function t(e){var n;(0,i.A)(this,t),c(this,n=y),n.add(this),u(this,p,d("svg")),u(this,v,new Map),u(this,g,null),function(t,e,n){t.set(h(t,e),n)}(g,this,e),Object.assign(f(p,this).style,{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",pointerEvents:"none"})}),[{key:"element",get:function(){return f(p,this)}},{key:"add",value:function(t,e,n,r){f(v,this).has(t)&&this.remove(t),"function"==typeof e&&(e=e(f(p,this).getRootNode()));var i=l(y,this,b),o=[];h(y,this,w).call(this,e).forEach((function(t){var e=Array.from(t.getClientRects()).map((function(t){return{left:t.left*i,top:t.top*i,right:t.right*i,bottom:t.bottom*i,width:t.width*i,height:t.height*i}}));o=o.concat(e)}));var a=n(o,r);f(p,this).append(a),f(v,this).set(t,{range:e,draw:n,options:r,element:a,rects:o})}},{key:"remove",value:function(t){f(v,this).has(t)&&(f(p,this).removeChild(f(v,this).get(t).element),f(v,this).delete(t))}},{key:"redraw",value:function(){var t,e=this,n=a(f(v,this).values());try{var r=function(){var n=t.value,r=n.range,i=n.draw,o=n.options,a=n.element;f(p,e).removeChild(a);var s=l(y,e,b),u=[];h(y,e,w).call(e,r).forEach((function(t){var e=Array.from(t.getClientRects()).map((function(t){return{left:t.left*s,top:t.top*s,right:t.right*s,bottom:t.bottom*s,width:t.width*s,height:t.height*s}}));u=u.concat(e)}));var c=i(u,o);f(p,e).append(c),n.element=c,n.rects=u};for(n.s();!(t=n.n()).done;)r()}catch(t){n.e(t)}finally{n.f()}}},{key:"hitTest",value:function(t){for(var e=t.x,n=t.y,i=Array.from(f(v,this).entries()),o=i.length-1;o>=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;g<r;g++)(y=x+g)in b&&f(d,g,b[y]);if(d.length=r,n<r){for(g=x;g<w-r;g++)m=g+n,(y=g+r)in b?b[m]=b[y]:h(b,m);for(g=w;g>w-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;g<n;g++)b[g+x]=arguments[g+2];return u(b,w-r+n),d}})},54743:function(t,e,n){"use strict";var r=n(46518),i=n(44576),o=n(66346),a=n(87633),s="ArrayBuffer",u=o[s];r({global:!0,constructor:!0,forced:i[s]!==u},{ArrayBuffer:u}),a(s)},54756:function(t,e,n){var r=n(4633)();t.exports=r;try{regeneratorRuntime=r}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},54972:function(t,e,n){"use strict";var r=n(46518),i=n(69565),o=n(28551),a=n(1767),s=n(24149),u=n(99590),c=n(19462),l=n(9539),f=n(84549),h=n(96395),d=!h&&f("take",RangeError),p=c((function(){var t=this.iterator;if(!this.remaining--)return this.done=!0,l(t,"normal",void 0);var e=o(i(this.next,t));return(this.done=!!e.done)?void 0:e.value}));r({target:"Iterator",proto:!0,real:!0,forced:h||d},{take:function(t){var e;o(this);try{e=u(s(+t))}catch(t){l(this,"throw",t)}return d?i(d,this,e):new p(a(this),{remaining:e})}})},55002:function(t){"use strict";t.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},55081:function(t,e,n){"use strict";var r=n(46518),i=n(44576);r({global:!0,forced:i.globalThis!==i},{globalThis:i})},55169:function(t,e,n){"use strict";var r=n(3238),i=TypeError;t.exports=function(t){if(r(t))throw new i("ArrayBuffer is detached");return t}},55815:function(t,e,n){"use strict";var r=n(46518),i=n(97751),o=n(89429),a=n(79039),s=n(2360),u=n(6980),c=n(24913).f,l=n(36840),f=n(62106),h=n(39297),d=n(90679),p=n(28551),v=n(77536),g=n(32603),y=n(55002),m=n(16193),b=n(91181),w=n(43724),x=n(96395),k="DOMException",A="DATA_CLONE_ERR",S=i("Error"),E=i(k)||function(){try{(new(i("MessageChannel")||o("worker_threads").MessageChannel)).port1.postMessage(new WeakMap)}catch(t){if(t.name===A&&25===t.code)return t.constructor}}(),T=E&&E.prototype,_=S.prototype,O=b.set,M=b.getterFor(k),C="stack"in new S(k),L=function(t){return h(y,t)&&y[t].m?y[t].c:0},R=function(){d(this,I);var t=arguments.length,e=g(t<1?void 0:arguments[0]),n=g(t<2?void 0:arguments[1],"Error"),r=L(n);if(O(this,{type:k,name:n,message:e,code:r}),w||(this.name=n,this.message=e,this.code=r),C){var i=new S(e);i.name=k,c(this,"stack",u(1,m(i.stack,1)))}},I=R.prototype=s(_),P=function(t){return{enumerable:!0,configurable:!0,get:t}},j=function(t){return P((function(){return M(this)[t]}))};w&&(f(I,"code",j("code")),f(I,"message",j("message")),f(I,"name",j("name"))),c(I,"constructor",u(1,R));var F=a((function(){return!(new E instanceof S)})),N=F||a((function(){return _.toString!==v||"2: 1"!==String(new E(1,2))})),D=F||a((function(){return 25!==new E(1,"DataCloneError").code})),B=F||25!==E[A]||25!==T[A],z=x?N||D||B:F;r({global:!0,constructor:!0,forced:z},{DOMException:z?R:E});var U=i(k),W=U.prototype;for(var H in N&&(x||E===U)&&l(W,"toString",v),D&&w&&E===U&&f(W,"code",P((function(){return L(p(this).name)}))),y)if(h(y,H)){var q=y[H],V=q.s,$=u(6,q.c);h(U,V)||c(U,V,$),h(W,V)||c(W,V,$)}},55869:function(t,e,n){var r=n(887);t.exports=function(t,e,n,i,o){var a=r(t,e,n,i,o);return a.next().then((function(t){return t.done?t.value:a.next()}))},t.exports.__esModule=!0,t.exports.default=t.exports},55966:function(t,e,n){"use strict";var r=n(79306),i=n(64117);t.exports=function(t,e){var n=t[e];return i(n)?void 0:r(n)}},56218:function(t,e,n){"use strict";n.d(e,{A:function(){return i}});var r=n(27106);function i(t){return new r.A(t,0)}},56279:function(t,e,n){"use strict";var r=n(36840);t.exports=function(t,e,n){for(var i in e)r(t,i,e[i],n);return t}},56624:function(t,e,n){"use strict";n(46518)({target:"Math",stat:!0},{log1p:n(7740)})},56682:function(t,e,n){"use strict";var r=n(69565),i=n(28551),o=n(94901),a=n(22195),s=n(57323),u=TypeError;t.exports=function(t,e){var n=t.exec;if(o(n)){var c=r(n,t,e);return null!==c&&i(c),c}if("RegExp"===a(t))return r(s,t,e);throw new u("RegExp#exec called on incompatible receiver")}},56822:function(t,e,n){"use strict";n.d(e,{A:function(){return o}});var r=n(82284),i=n(9417);function o(t,e){if(e&&("object"==(0,r.A)(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return(0,i.A)(t)}},56969:function(t,e,n){"use strict";var r=n(72777),i=n(10757);t.exports=function(t){var e=r(t,"string");return i(e)?e:e+""}},57029:function(t,e,n){"use strict";var r=n(48981),i=n(35610),o=n(26198),a=n(84606),s=Math.min;t.exports=[].copyWithin||function(t,e){var n=r(this),u=o(n),c=i(t,u),l=i(e,u),f=arguments.length>2?arguments[2]:void 0,h=s((void 0===f?u:i(f,u))-l,u-c),d=1;for(l<c&&c<l+h&&(d=-1,l+=h-1,c+=h-1);h-- >0;)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;a<arguments.length-2;a++)void 0===arguments[a]&&(i[a]=void 0)})),i&&_)for(i.groups=c=f(null),a=0;a<_.length;a++)c[(l=_[a])[0]]=i[l[1]];return i}),t.exports=y},57465:function(t,e,n){"use strict";var r=n(43724),i=n(83635),o=n(22195),a=n(62106),s=n(91181).get,u=RegExp.prototype,c=TypeError;r&&i&&a(u,"dotAll",{configurable:!0,get:function(){if(this!==u){if("RegExp"===o(this))return!!s(this).dotAll;throw new c("Incompatible receiver, RegExp required")}}})},57541:function(t,e,n){"use strict";n.r(e),n.d(e,{Paginator:function(){return Tt}});var r=n(82284),i=n(56822),o=n(53954),a=n(85501),s=n(28614),u=n(64467),c=n(10467),l=n(23029),f=n(92901),h=n(3453),d=n(54756),p=n.n(d);function v(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(v=function(){return!!t})()}function g(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function y(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function m(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?y(Object(n),!0).forEach((function(e){(0,u.A)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function b(t,e,n){w(t,e),e.set(t,n)}function w(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}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")}var S=function(t){return new Promise((function(e){return setTimeout(e,t)}))},E=function(t){return Math.sin(t*Math.PI/2)},T=function(t,e,n,r,i){return new Promise((function(o){var a,s=function(u){null!=a||(a=u);var c,l,f=Math.min(1,(u-a)/n);i((c=t,l=e,r(f)*(l-c)+c)),f<1?requestAnimationFrame(s):o()};requestAnimationFrame(s)}))},_=function(t){if(null==t||!t.collapsed)return t;var e=t.endOffset,n=t.endContainer;if(1===n.nodeType)return n;if(e+1<n.length)t.setEnd(n,e+1);else{if(!(e>1))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(c<e||u>n)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.right<e&&o.left>e?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.right<n&&o.left>n?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<i.length;r++){var o=(0,h.A)(i[r],2),a=o[0],s=o[1];n.setProperty(a,s,"important")}},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 WeakMap,J=new WeakMap,Z=new WeakMap,Q=function(){return(0,f.A)((function t(e){var n=this,r=e.container,i=e.onExpand;(0,l.A)(this,t),b(this,W,new ResizeObserver((function(){return n.expand()}))),b(this,H,document.createElement("div")),b(this,q,document.createElement("iframe")),b(this,V,document.createRange()),b(this,$,void 0),b(this,G,!1),b(this,X,!1),b(this,Y,"horizontal-ltr"),b(this,K,!0),b(this,J,void 0),b(this,Z,{}),this.container=r,this.onExpand=i,k(q,this).setAttribute("part","filter"),k(H,this).append(k(q,this)),Object.assign(k(H,this).style,{boxSizing:"content-box",position:"relative",overflow:"hidden",flex:"0 0 auto",width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",contain:"layout paint size",contentVisibility:"auto",willChange:"transform"}),Object.assign(k(q,this).style,{overflow:"hidden",border:"0",display:"none",width:"100%",height:"100%"}),k(q,this).setAttribute("sandbox","allow-same-origin allow-scripts"),k(q,this).setAttribute("scrolling","no")}),[{key:"element",get:function(){return k(H,this)}},{key:"document",get:function(){return k(q,this).contentDocument}},{key:"load",value:(t=(0,c.A)(p().mark((function t(e,n,r){var i=this;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("string"==typeof e){t.next=1;break}throw new Error("".concat(e," is not string"));case 1:return t.abrupt("return",new Promise((function(t){k(q,i).addEventListener("load",(function(){var e=i.document;null==n||n(e),k(q,i).style.display="block";var o=B(e),a=o.vertical,s=o.rtl,u=o.writingMode;k(q,i).style.display="none",x(G,i,a),x(X,i,s),x(Y,i,u),k(V,i).selectNodeContents(e.body);var c=null==r?void 0:r({vertical:a,rtl:s});k(q,i).style.display="block",i.render(c),k(W,i).observe(e.body),e.fonts.ready.then((function(){return i.expand()})),t()}),{once:!0}),k(q,i).src=e})));case 2:case"end":return t.stop()}}),t)}))),function(e,n,r){return t.apply(this,arguments)})},{key:"render",value:function(t){t&&(x(K,this,"scrolled"!==t.flow),x(Z,this,t),k(K,this)?this.columnize(t):this.scrolled(t))}},{key:"scrolled",value:function(t){var e=t.gap,n=t.columnWidth,r=k(G,this),i=this.document;i&&(U(i.documentElement,{"box-sizing":"border-box",padding:r?"".concat(e,"px 0"):"0 ".concat(e,"px"),"column-width":"auto",height:"auto",width:"auto"}),U(i.body,(0,u.A)((0,u.A)({},r?"max-height":"max-width","".concat(n,"px")),"margin","auto")),this.setImageSize(),this.expand())}},{key:"columnize",value:function(t){var e=t.width,n=t.height,r=t.gap,i=t.columnWidth,o=t.topMargin,a=t.bottomMargin,s=k(G,this);x(J,this,s?n:e);var u=this.document,c="".concat(r/2,"px ").concat(o,"px ").concat(r/2,"px ").concat(a,"px"),l="".concat(o,"px ").concat(r/2,"px ").concat(a,"px ").concat(r/2,"px");U(u.documentElement,m(m({"box-sizing":"border-box","column-width":"".concat(Math.trunc(i),"px"),"column-gap":"".concat(r,"px"),"column-fill":"auto"},s?{width:"".concat(e,"px")}:{height:"".concat(n,"px")}),{},{padding:s?c:l,overflow:"hidden","overflow-wrap":"break-word",position:"static",border:"0",margin:"0","max-height":"none","max-width":"none","min-height":"none","min-width":"none","-webkit-line-box-contain":"block glyphs replaced"})),U(u.body,{"max-height":"none","max-width":"none",margin:"0"}),this.setImageSize(),this.expand()}},{key:"setImageSize",value:function(){var t,e=k(Z,this),n=e.width,r=e.height,i=e.margin,o=e.columnWidth,a=k(G,this),s=this.document,u=function(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 g(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)?g(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}}}}(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='<style>\n :host {\n display: block;\n container-type: size;\n }\n :host, #top {\n box-sizing: border-box;\n position: relative;\n overflow: hidden;\n width: 100%;\n height: 100%;\n }\n #top {\n height: 100%;\n // --_gap: 7%;\n background-color: var(--_background-color);\n --_max-inline-size: 720px;\n --_max-block-size: 1440px;\n --_max-column-count: 2;\n --_max-column-count-portrait: 1;\n --_max-column-count-spread: var(--_max-column-count);\n --_half-gap: calc(var(--_gap) / 2);\n --_max-width: calc(var(--_max-inline-size) * var(--_max-column-count-spread));\n --_max-height: var(--_max-block-size);\n display: grid;\n grid-template-columns:\n minmax(var(--_half-gap), 1fr)\n var(--_half-gap)\n minmax(0, calc(var(--_max-width) - var(--_gap)))\n var(--_half-gap)\n minmax(var(--_half-gap), 1fr);\n grid-template-rows:\n var(--_top-margin)\n 1fr\n var(--_bottom-margin);\n &.vertical {\n --_max-column-count-spread: var(--_max-column-count-portrait);\n --_max-width: var(--_max-block-size);\n --_max-height: calc(var(--_max-inline-size) * var(--_max-column-count-spread));\n }\n @container (orientation: portrait) {\n & {\n --_max-column-count-spread: var(--_max-column-count-portrait);\n }\n &.vertical {\n --_max-column-count-spread: var(--_max-column-count);\n }\n }\n }\n #background {\n grid-column: 1 / -1;\n grid-row: 1 / -1;\n }\n #container {\n grid-column: 1 / -1;\n grid-row: 1 / -1;\n overflow-x: auto;\n overflow-y: hidden;\n -webkit-overflow-scrolling: touch;\n -ms-overflow-style: none; /* Internet Explorer 10+ */\n scrollbar-width: none; /* Firefox */\n }\n #container::-webkit-scrollbar {\n display: none; /* Safari and Chrome */\n }\n :host([flow="scrolled"]) #container {\n grid-column: 1 / -1;\n grid-row: 2;\n overflow: auto;\n }\n #header {\n grid-column: 3 / 4;\n grid-row: 1;\n }\n #footer {\n grid-column: 3 / 4;\n grid-row: 3;\n align-self: end;\n }\n #header, #footer {\n display: grid;\n height: var(--_margin);\n }\n :is(#header, #footer) > * {\n display: flex;\n align-items: center;\n min-width: 0;\n }\n :is(#header, #footer) > * > * {\n width: 100%;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n text-align: center;\n font-size: .75em;\n opacity: .6;\n }\n </style>\n <div id="top">\n <div id="background" part="filter"></div>\n <div id="container"></div>\n </div>\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<e;n++)r[n]=t[n];return r}var h=function(t){return t?t.replace(/[\t\n\f\r ]+/g," ").replace(/^[\t\n\f\r ]+/,"").replace(/[\t\n\f\r ]+$/,""):""},d=function(t){return h(null==t?void 0:t.textContent)},p={XLINK:"http://www.w3.org/1999/xlink",EPUB:"http://www.idpf.org/2007/ops"},v="application/xml",g="application/xhtml+xml",y={strong:["strong","self"],emphasis:["em","self"],style:["span","self"],a:"anchor",strikethrough:["s","self"],sub:["sub","self"],sup:["sup","self"],code:["code","self"],image:"image"},m={epigraph:["blockquote"],subtitle:["h2",y],"text-author":["p",y],date:["p",y],stanza:"stanza"},b={title:["header",{p:["h1",y],"empty-line":["br"]}],epigraph:["blockquote","self"],image:"image",annotation:["aside"],section:["section","self"],p:["p",y],poem:["blockquote",m],subtitle:["h2",y],cite:["blockquote","self"],"empty-line":["br"],table:["table",{tr:["tr",["align"]],th:["th",["colspan","rowspan","align","valign"]],td:["td",["colspan","rowspan","align","valign"]]}],"text-author":["p",y]};m.epigraph.push(b);var w={image:"image",title:["section",{p:["h1",y],"empty-line":["br"]}],epigraph:["section",b],section:["section",b]},x=function(t){var e=t.getAttributeNS(p.XLINK,"href"),n=e.split("#"),r=(0,s.A)(n,2)[1],i=t.getRootNode().getElementById(r);return i?"data:".concat(i.getAttribute("content-type"),";base64,").concat(i.textContent):e},k=function(){return(0,a.A)((function t(e){(0,o.A)(this,t),this.fb2=e,this.doc=document.implementation.createDocument(p.XHTML,"html")}),[{key:"image",value:function(t){var e=this.doc.createElement("img");return e.alt=t.getAttribute("alt"),e.title=t.getAttribute("title"),e.setAttribute("src",x(t)),e}},{key:"anchor",value:function(t){var e=this.convert(t,{a:["a",y]});return e.setAttribute("href",t.getAttributeNS(p.XLINK,"href")),"note"===t.getAttribute("type")&&e.setAttributeNS(p.EPUB,"epub:type","noteref"),e}},{key:"stanza",value:function(t){var e,n=this.convert(t,{stanza:["p",{title:["header",{p:["strong",y],"empty-line":["br"]}],subtitle:["p",y]}]}),r=l(t.children);try{for(r.s();!(e=r.n()).done;){var i=e.value;"v"===i.nodeName&&(n.append(this.doc.createTextNode(i.textContent)),n.append(this.doc.createElement("br")))}}catch(t){r.e(t)}finally{r.f()}return n}},{key:"convert",value:function(t,e){if(3===t.nodeType)return this.doc.createTextNode(t.textContent);if(4===t.nodeType)return this.doc.createCDATASection(t.textContent);if(8===t.nodeType)return this.doc.createComment(t.textContent);var n=null==e?void 0:e[t.nodeName];if(!n)return null;if("string"==typeof n)return this[n](t);var r=(0,s.A)(n,2),i=r[0],o=r[1],a=this.doc.createElement(i);if(t.id&&(a.id=t.id),a.classList.add(t.nodeName),Array.isArray(o)){var u,c=l(o);try{for(c.s();!(u=c.n()).done;){var f=u.value;a.setAttribute(f,t.getAttribute(f))}}catch(t){c.e(t)}finally{c.f()}}for(var h="self"===o?e:Array.isArray(o)?null:o,d=t.firstChild;d;){var p=this.convert(d,h);p&&a.append(p),d=d.nextSibling}return a}}])}(),A=function(){var t=(0,i.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 t.next=1,e.arrayBuffer();case 1:if(r=t.sent,i=new TextDecoder("utf-8").decode(r),o=new DOMParser,a=o.parseFromString(i,v),!(s=a.xmlEncoding||(null===(n=i.match(/^<\?xml\s+version\s*=\s*["']1.\d+"\s+encoding\s*=\s*["']([A-Za-z0-9._-]*)["']/))||void 0===n?void 0:n[1]))||"utf-8"===s.toLowerCase()){t.next=2;break}return u=new TextDecoder(s).decode(r),t.abrupt("return",o.parseFromString(u,v));case 2:return t.abrupt("return",a);case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),S=URL.createObjectURL(new Blob(['\n@namespace epub "http://www.idpf.org/2007/ops";\nbody > 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,'<?xml version="1.0" encoding="utf-8"?>\n<html xmlns="http://www.w3.org/1999/xhtml">\n <head><link href="'.concat(S,'" rel="stylesheet" type="text/css"/></head>\n <body>').concat(r,"</body>\n</html>")),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;t<e.length;t++){var n=e[t];URL.revokeObjectURL(n)}},t.abrupt("return",n);case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},60788:function(t,e,n){"use strict";var r=n(20034),i=n(22195),o=n(78227)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[o])?!!e:"RegExp"===i(t))}},60825:function(t,e,n){"use strict";var r=n(46518),i=n(97751),o=n(18745),a=n(30566),s=n(35548),u=n(28551),c=n(20034),l=n(2360),f=n(79039),h=i("Reflect","construct"),d=Object.prototype,p=[].push,v=f((function(){function t(){}return!(h((function(){}),[],t)instanceof t)})),g=!f((function(){h((function(){}))})),y=v||g;r({target:"Reflect",stat:!0,forced:y,sham:y},{construct:function(t,e){s(t),u(e);var n=arguments.length<3?t:s(arguments[2]);if(g&&!v)return h(t,e,n);if(t===n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return o(p,r,e),new(o(a,t,r))}var i=n.prototype,f=l(c(i)?i:d),y=o(t,f,e);return c(y)?y:f}})},61034:function(t,e,n){"use strict";var r=n(69565),i=n(39297),o=n(1625),a=n(65213),s=n(67979),u=RegExp.prototype;t.exports=a.correct?function(t){return t.flags}:function(t){return a.correct||!o(u,t)||i(t,"flags")?t.flags:r(s,t)}},61699:function(t,e,n){"use strict";var r=n(46518),i=n(79504),o=n(79039)((function(){return 120!==new Date(16e11).getYear()})),a=i(Date.prototype.getFullYear);r({target:"Date",proto:!0,forced:o},{getYear:function(){return a(this)-1900}})},61701: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(9539),f=n(30684),h=n(84549),d=n(96395),p=!d&&!f("map",(function(){})),v=!d&&!p&&h("map",TypeError),g=d||p||v,y=u((function(){var t=this.iterator,e=a(i(this.next,t));if(!(this.done=!!e.done))return c(t,this.mapper,[e.value,this.counter++],!0)}));r({target:"Iterator",proto:!0,real:!0,forced:g},{map: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})}})},61740:function(t,e,n){"use strict";n(15823)("Uint32",(function(t){return function(e,n,r){return t(this,e,n,r)}}))},61806:function(t,e,n){"use strict";var r=n(46518),i=n(28551),o=n(72652),a=n(1767),s=[].push;r({target:"Iterator",proto:!0,real:!0},{toArray:function(){var t=[];return o(a(i(this)),s,{that:t,IS_RECORD:!0}),t}})},61828:function(t,e,n){"use strict";var r=n(79504),i=n(39297),o=n(25397),a=n(19617).indexOf,s=n(30421),u=r([].push);t.exports=function(t,e){var n,r=o(t),c=0,l=[];for(n in r)!i(s,n)&&i(r,n)&&u(l,n);for(;e.length>c;)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);n<e;n++)r[n]=t[n];return r}var s,u=function(t,e){return[-1].concat((0,i.A)(e),[t.length]).reduce((function(e,n){var r,i=e.xs,o=e.a;return{xs:null!==(r=null==i?void 0:i.concat([t.slice(o+1,n)]))&&void 0!==r?r:[],a:n}}),{}).xs},c=/\d/,l=/^epubcfi\((.*)\)$/,f=function(t){return t.replace(/[\^[\](),;=]/g,"^$&")},h=function(t){return l.test(t)?t:"epubcfi(".concat(t,")")},d=(s=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.join("!")},function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return"epubcfi(".concat(s.apply(void 0,(0,i.A)(e.map((function(t){var e,n;return null!==(e=null===(n=t.match(l))||void 0===n?void 0:n[1])&&void 0!==e?e:t})))),")")}),p=function(t,e){return function(t,e){return t.map((function(t,n,r){return e(t)?n:null})).filter((function(t){return null!=t}))}(t,(function(t){return(0,r.A)(t,1)[0]===e}))},v=function(t){var e,n,i=[],a=o(t);try{for(a.s();!(n=a.n()).done;){var s=(0,r.A)(n.value,2),u=s[0],c=s[1];if("/"===u)i.push({index:c});else{var l,f=i[i.length-1];if(":"===u)f.offset=c;else if("~"===u)f.temporal=c;else if("@"===u)f.spatial=(null!==(l=f.spatial)&&void 0!==l?l:[]).concat(c);else if(";s"===u)f.side=c;else if("["===u){if("/"!==e||!c){var h;f.text=(null!==(h=f.text)&&void 0!==h?h:[]).concat(c);continue}f.id=c}}e=u}}catch(t){a.e(t)}finally{a.f()}return i},g=function(t){return u(t,p(t,"!")).map(v)},y=function(t){var e,n,i,a=function(t){var e,n,r,i=[],a="",s=function(t){return i.push(t),e=null,a=""},u=function(t){return a+=t,n=!1},l=o(Array.from(t.trim()).concat(""));try{for(l.s();!(r=l.n()).done;){var f,h=r.value;if("^"!==h||n){if("!"===e)s(["!"]);else if(","===e)s([","]);else if("/"===e||":"===e){if(c.test(h)){u(h);continue}s([e,parseInt(a)])}else if("~"===e){if(c.test(h)||"."===h){u(h);continue}s(["~",parseFloat(a)])}else if("@"===e){if(":"===h){s(["@",parseFloat(a)]),e="@";continue}if(c.test(h)||"."===h){u(h);continue}s(["@",parseFloat(a)])}else{if("["===e){";"!==h||n?","!==h||n?"]"!==h||n?u(h):s(["[",a]):(s(["[",a]),e="["):(s(["[",a]),e=";");continue}if(null!==(f=e)&&void 0!==f&&f.startsWith(";")){"="!==h||n?";"!==h||n?"]"!==h||n?u(h):s([e,a]):(s([e,a]),e=";"):(e=";".concat(a),a="");continue}}"/"!==h&&":"!==h&&"~"!==h&&"@"!==h&&"["!==h&&"!"!==h&&","!==h||(e=h)}else n=!0}}catch(t){l.e(t)}finally{l.f()}return i}(null!==(n=null===(i=(e=t).match(l))||void 0===i?void 0:i[1])&&void 0!==n?n:e),s=p(a,",");if(!s.length)return g(a);var f=u(a,s).map(g),h=(0,r.A)(f,3);return{parent:h[0],start:h[1],end:h[2]}},m=function(t){var e,n,r=t.index,i=t.id,o=t.offset,a=t.temporal,s=t.spatial,u=t.text,c=t.side,l=c?";s=".concat(c):"";return"/".concat(r)+(i?"[".concat(f(i)).concat(l,"]"):"")+(null!=o&&r%2?":".concat(o):"")+(a?"~".concat(a):"")+(s?"@".concat(s.join(":")):"")+(u||!i&&c?"["+(null!==(e=null==u||null===(n=u.map(f))||void 0===n?void 0:n.join(","))&&void 0!==e?e:"")+l+"]":"")},b=function(t){return t.parent?[t.parent,t.start,t.end].map(b).join(","):t.map((function(t){return t.map(m).join("")})).join("!")},w=function(t){return h(b(t))},x=function(t,e){return"string"==typeof t?w(x(y(t),e)):t.parent?(n=t.parent,r=t[e?"end":"start"],n.slice(0,-1).concat([n[n.length-1].concat(r[0])]).concat(r.slice(1))):t;var n,r},k=function(t,e){if("string"==typeof t&&(t=y(t)),"string"==typeof e&&(e=y(e)),t.start||e.start)return k(x(t),x(e))||k(x(t,!0),x(e,!0));for(var n=0;n<Math.max(t.length,e.length);n++)for(var r=t[n],i=e[n],o=Math.max(r.length,i.length)-1,a=0;a<=o;a++){var s=r[a],u=i[a];if(!s)return-1;if(!u)return 1;if(s.index>u.index)return 1;if(s.index<u.index)return-1;if(a===o){if(s.offset>u.offset)return 1;if(s.offset<u.offset)return-1}}return 0},A=function(t){var e=t.nodeType;return 3===e||4===e},S=function(t){return 1===t.nodeType},E=function(t,e){var n=Array.from(t.childNodes).filter((function(t){return A(t)||S(t)}));return e?n.map((function(t){var n=e(t);return n===NodeFilter.FILTER_REJECT?null:n===NodeFilter.FILTER_SKIP?E(t,e):t})).flat().filter((function(t){return t})):n},T=function(t,e){var n=E(t,e).reduce((function(t,e){var n=t[t.length-1];return n?A(e)?Array.isArray(n)?n.push(e):A(n)?t[t.length-1]=[n,e]:t.push(e):S(n)?t.push(null,e):t.push(e):t.push(e),t}),[]);return S(n[0])&&n.unshift("first"),S(n[n.length-1])&&n.push("last"),n.unshift("before"),n.push("after"),n},_=function(t,e,n){var r=e[e.length-1].id;if(r){var i=t.ownerDocument.getElementById(r);if(i)return{node:i,offset:0}}var a,s=o(e);try{for(s.s();!(a=s.n()).done;){var u,c,l=a.value.index,f=t?T(t,n)[l]:null;if("first"===f)return{node:null!==(u=t.firstChild)&&void 0!==u?u:t};if("last"===f)return{node:null!==(c=t.lastChild)&&void 0!==c?c:t};if("before"===f)return{node:t,before:!0};if("after"===f)return{node:t,after:!0};t=f}}catch(t){s.e(t)}finally{s.f()}var h=e[e.length-1].offset;if(!Array.isArray(t))return{node:t,offset:h};var d,p=0,v=o(t);try{for(v.s();!(d=v.n()).done;){var g=d.value,y=g.nodeValue.length;if(p+y>=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;c<u;c++){var l=n[c],f=r[c];s&&(s=!((null==l?void 0:l.index)!==(null==f?void 0:f.index)||null!=l&&l.offset||null!=f&&f.offset)),s?i.push(l):(l&&o.push(l),f&&a.push(f))}var h=t.slice(0,-1).concat([i]);return w({parent:h,start:[o],end:[a]})}([a],[O(i,o,e)])},C=function(t,e,n){var r=x(e),i=x(e,!0),o=t.documentElement,a=_(o,r[0],n),s=_(o,i[0],n),u=t.createRange();return a.before?u.setStartBefore(a.node):a.after?u.setStartAfter(a.node):u.setStart(a.node,a.offset),s.before?u.setEndBefore(s.node):s.after?u.setEndAfter(s.node):u.setEnd(s.node,s.offset),u},L=function(t){var e,n=[],i=t[0].parentNode,a=O(i),s=o(T(i).entries());try{for(s.s();!(e=s.n()).done;){var u=(0,r.A)(e.value,2),c=u[0],l=u[1],f=t[n.length];l===f&&n.push(w([a.concat({id:f.id,index:c})]))}}catch(t){s.e(t)}finally{s.f()}return n},R=function(t,e){return _(t.documentElement,x(e)).node},I={fromIndex:function(t){return h("/6/".concat(2*(t+1)))},toIndex:function(t){return(null==t?void 0:t.at(-1).index)/2-1}}},62337:function(t,e,n){"use strict";var r=n(46518),i=n(79504),o=n(91291),a=n(31240),s=n(72333),u=n(49340),c=n(79039),l=RangeError,f=String,h=isFinite,d=Math.abs,p=Math.floor,v=Math.pow,g=Math.round,y=i(1.1.toExponential),m=i(s),b=i("".slice),w="-6.9000e-11"===y(-69e-12,4)&&"1.25e+0"===y(1.255,2)&&"1.235e+4"===y(12345,3)&&"3e+1"===y(25,0);r({target:"Number",proto:!0,forced:!w||!(c((function(){y(1,1/0)}))&&c((function(){y(1,-1/0)})))||!!c((function(){y(1/0,1/0),y(NaN,1/0)}))},{toExponential:function(t){var e=a(this);if(void 0===t)return y(e);var n=o(t);if(!h(e))return String(e);if(n<0||n>20)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<e;h++)l[f+h]=u[c?h:e-h-1]};if(a){var nt=T&&j.name!==O;f((function(){j(1)}))&&f((function(){new j(-1)}))&&!f((function(){return new j,new j(1.5),new j(NaN),1!==j.length||nt&&!_}))?nt&&_&&u(j,"name",O):((F=function(t){return h(this,N),k(new j(v(t)),this,F)})[C]=N,N.constructor=F,A(F,j)),b&&m(B)!==z&&b(B,z);var rt=new D(new F(2)),it=i(B.setInt8);rt.setInt8(0,2147483648),rt.setInt8(1,2147483649),!rt.getInt8(0)&&rt.getInt8(1)||l(B,{setInt8:function(t,e){it(this,t,e<<24>>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<e;r++){var c=t[r];"string"==typeof c?u(n,c):"number"!=typeof c&&"Number"!==a(c)&&"String"!==a(c)||u(n,s(c))}var l=n.length,f=!0;return function(t,e){if(f)return f=!1,e;if(i(this))return e;for(var r=0;r<l;r++)if(n[r]===t)return e}}}},67357:function(t,e,n){"use strict";var r=n(46518),i=n(79504),o=n(67750),a=n(91291),s=n(655),u=n(79039),c=i("".charAt);r({target:"String",proto:!0,forced:u((function(){return"\ud842"!=="𠮷".at(-2)}))},{at:function(t){var e=s(o(this)),n=e.length,r=a(t),i=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<e;r++){var o=f(t,r);55296!=(63488&o)?n[r]=l(t,r):o>=56320||r+1>=e||56320!=(64512&f(t,r+1))?n[r]="<22>":(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);g<u;)g in n&&(d=y?y(n[g],g,e):n[g],l>0&&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);m<g;m++)d[m]=p[m];for(;m<g+n;m++)d[m]=arguments[m-g+2];for(;m<i;m++)d[m]=p[m+r-n];return d}}),i("toSpliced")},71678:function(t,e,n){"use strict";var r,i=n(96395),o=n(46518),a=n(44576),s=n(97751),u=n(79504),c=n(79039),l=n(33392),f=n(94901),h=n(33517),d=n(64117),p=n(20034),v=n(10757),g=n(72652),y=n(28551),m=n(36955),b=n(39297),w=n(97040),x=n(66699),k=n(26198),A=n(22812),S=n(61034),E=n(72248),T=n(94402),_=n(38469),O=n(94483),M=n(24659),C=n(1548),L=a.Object,R=a.Array,I=a.Date,P=a.Error,j=a.TypeError,F=a.PerformanceMark,N=s("DOMException"),D=E.Map,B=E.has,z=E.get,U=E.set,W=T.Set,H=T.add,q=T.has,V=s("Object","keys"),$=u([].push),G=u((!0).valueOf),X=u(1.1.valueOf),Y=u("".valueOf),K=u(I.prototype.getTime),J=l("structuredClone"),Z="DataCloneError",Q="Transferring",tt=function(t){return!c((function(){var e=new a.Set([7]),n=t(e),r=t(L(7));return n===e||!n.has(7)||!p(r)||7!=+r}))&&t},et=function(t,e){return!c((function(){var n=new e,r=t({a:n,b:n});return!(r&&r.a===r.b&&r.a instanceof e&&r.a.stack===n.stack)}))},nt=a.structuredClone,rt=i||!et(nt,P)||!et(nt,N)||(r=nt,!!c((function(){var t=r(new a.AggregateError([1],J,{cause:3}));return"AggregateError"!==t.name||1!==t.errors[0]||t.message!==J||3!==t.cause}))),it=!nt&&tt((function(t){return new F(J,{detail:t}).detail})),ot=tt(nt)||it,at=function(t){throw new N("Uncloneable type: "+t,Z)},st=function(t,e){throw new N((e||"Cloning")+" of "+t+" cannot be properly polyfilled in this engine",Z)},ut=function(t,e){return ot||st(e),ot(t)},ct=function(t,e,n){if(B(e,t))return z(e,t);var r,i,o,s,u,c;if("SharedArrayBuffer"===(n||m(t)))r=ot?ot(t):t;else{var l=a.DataView;l||f(t.slice)||st("ArrayBuffer");try{if(f(t.slice)&&!t.resizable)r=t.slice(0);else{i=t.byteLength,o="maxByteLength"in t?{maxByteLength:t.maxByteLength}:void 0,r=new ArrayBuffer(i,o),s=new l(t),u=new l(r);for(c=0;c<i;c++)u.setUint8(c,s.getUint8(c))}}catch(t){throw new N("ArrayBuffer is detached",Z)}}return U(e,t,r),r},lt=function(t,e){if(v(t)&&at("Symbol"),!p(t))return t;if(e){if(B(e,t))return z(e,t)}else e=new D;var n,r,i,o,u,c,l,h,d=m(t);switch(d){case"Array":i=R(k(t));break;case"Object":i={};break;case"Map":i=new D;break;case"Set":i=new W;break;case"RegExp":i=new RegExp(t.source,S(t));break;case"Error":switch(r=t.name){case"AggregateError":i=new(s(r))([]);break;case"EvalError":case"RangeError":case"ReferenceError":case"SuppressedError":case"SyntaxError":case"TypeError":case"URIError":i=new(s(r));break;case"CompileError":case"LinkError":case"RuntimeError":i=new(s("WebAssembly",r));break;default:i=new P}break;case"DOMException":i=new N(t.message,t.name);break;case"ArrayBuffer":case"SharedArrayBuffer":i=ct(t,e,d);break;case"DataView":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float16Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":c="DataView"===d?t.byteLength:t.length,i=function(t,e,n,r,i){var o=a[e];return p(o)||st(e),new o(ct(t.buffer,i),n,r)}(t,d,t.byteOffset,c,e);break;case"DOMQuad":try{i=new DOMQuad(lt(t.p1,e),lt(t.p2,e),lt(t.p3,e),lt(t.p4,e))}catch(e){i=ut(t,d)}break;case"File":if(ot)try{i=ot(t),m(i)!==d&&(i=void 0)}catch(t){}if(!i)try{i=new File([t],t.name,t)}catch(t){}i||st(d);break;case"FileList":if(o=function(){var t;try{t=new a.DataTransfer}catch(e){try{t=new a.ClipboardEvent("").clipboardData}catch(t){}}return t&&t.items&&t.files?t:null}()){for(u=0,c=k(t);u<c;u++)o.items.add(lt(t[u],e));i=o.files}else i=ut(t,d);break;case"ImageData":try{i=new ImageData(lt(t.data,e),t.width,t.height,{colorSpace:t.colorSpace})}catch(e){i=ut(t,d)}break;default:if(ot)i=ot(t);else switch(d){case"BigInt":i=L(t.valueOf());break;case"Boolean":i=L(G(t));break;case"Number":i=L(X(t));break;case"String":i=L(Y(t));break;case"Date":i=new I(K(t));break;case"Blob":try{i=t.slice(0,t.size,t.type)}catch(t){st(d)}break;case"DOMPoint":case"DOMPointReadOnly":n=a[d];try{i=n.fromPoint?n.fromPoint(t):new n(t.x,t.y,t.z,t.w)}catch(t){st(d)}break;case"DOMRect":case"DOMRectReadOnly":n=a[d];try{i=n.fromRect?n.fromRect(t):new n(t.x,t.y,t.width,t.height)}catch(t){st(d)}break;case"DOMMatrix":case"DOMMatrixReadOnly":n=a[d];try{i=n.fromMatrix?n.fromMatrix(t):new n(t)}catch(t){st(d)}break;case"AudioData":case"VideoFrame":f(t.clone)||st(d);try{i=t.clone()}catch(t){at(d)}break;case"CropTarget":case"CryptoKey":case"FileSystemDirectoryHandle":case"FileSystemFileHandle":case"FileSystemHandle":case"GPUCompilationInfo":case"GPUCompilationMessage":case"ImageBitmap":case"RTCCertificate":case"WebAssembly.Module":st(d);default:at(d)}}switch(U(e,t,i),d){case"Array":case"Object":for(l=V(t),u=0,c=k(l);u<c;u++)h=l[u],w(i,h,lt(t[h],e));break;case"Map":t.forEach((function(t,n){U(i,lt(n,e),lt(t,e))}));break;case"Set":t.forEach((function(t){H(i,lt(t,e))}));break;case"Error":x(i,"message",lt(t.message,e)),b(t,"cause")&&x(i,"cause",lt(t.cause,e)),"AggregateError"===r?i.errors=lt(t.errors,e):"SuppressedError"===r&&(i.error=lt(t.error,e),i.suppressed=lt(t.suppressed,e));case"DOMException":M&&x(i,"stack",lt(t.stack,e))}return i};o({global:!0,enumerable:!0,sham:!C,forced:rt},{structuredClone:function(t){var e,n,r=A(arguments.length,1)>1&&!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<l;){if(r=n[c++],"ArrayBuffer"===(i=m(r))?q(d,r):B(e,r))throw new N("Duplicate transferable",Z);if("ArrayBuffer"!==i){if(C)s=nt(r,{transfer:[r]});else switch(i){case"ImageBitmap":o=a.OffscreenCanvas,h(o)||st(i,Q);try{(u=new o(r.width,r.height)).getContext("bitmaprenderer").transferFromImageBitmap(r),s=u.transferToImageBitmap()}catch(t){}break;case"AudioData":case"VideoFrame":f(r.clone)&&f(r.close)||st(i,Q);try{s=r.clone(),r.close()}catch(t){}break;case"MediaSourceHandle":case"MessagePort":case"MIDIAccess":case"OffscreenCanvas":case"ReadableStream":case"RTCDataChannel":case"TransformStream":case"WebTransportReceiveStream":case"WebTransportSendStream":case"WritableStream":st(i,Q)}if(void 0===s)throw new N("This object cannot be transferred: "+i,Z);U(e,r,s)}else H(d,r)}return d}(i,e=new D));var o=lt(t,e);return n&&function(t){_(t,(function(t){C?ot(t,{transfer:[t]}):f(t.transfer)?t.transfer():O?O(t):st("ArrayBuffer",Q)}))}(n),o}})},71761:function(t,e,n){"use strict";var r=n(69565),i=n(79504),o=n(89228),a=n(28551),s=n(20034),u=n(18014),c=n(655),l=n(67750),f=n(55966),h=n(57829),d=n(61034),p=n(56682),v=i("".indexOf);o("match",(function(t,e,n){return[function(e){var n=l(this),i=s(e)?f(e,t):void 0;return i?r(i,e,n):new RegExp(e)[t](c(n))},function(t){var r=a(this),i=c(t),o=n(e,r,i);if(o.done)return o.value;var s=c(d(r));if(-1===v(s,"g"))return p(r,i);var l=-1!==v(s,"u");r.lastIndex=0;for(var f,g=[],y=0;null!==(f=p(r,i));){var m=c(f[0]);g[y]=m,""===m&&(r.lastIndex=h(i,u(r.lastIndex),l)),y++}return 0===y?null:g}]}))},72107:function(t,e,n){"use strict";n(15823)("Int16",(function(t){return function(e,n,r){return t(this,e,n,r)}}))},72152:function(t,e,n){"use strict";var r=n(46518),i=n(79039),o=Math.imul;r({target:"Math",stat:!0,forced:i((function(){return-5!==o(4294967295,5)||2!==o.length}))},{imul:function(t,e){var n=65535,r=+t,i=+e,o=n&r,a=n&i;return 0|o*a+((n&r>>>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;u<n;){for(s=u,a=t[u];s&&e(t[s-1],a)>0;)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;p<h||v<d;)t[p+v]=p<h&&v<d?e(l[p],f[v])<=0?l[p++]:f[v++]:p<h?l[p++]:f[v++];return t};t.exports=o},75044:function(t,e,n){"use strict";var r=n(94644),i=n(84373),o=n(75854),a=n(36955),s=n(69565),u=n(79504),c=n(79039),l=r.aTypedArray,f=r.exportTypedArrayMethod,h=u("".slice);f("fill",(function(t){var e=arguments.length;l(this);var n="Big"===h(a(this),0,3)?o(t):+t;return s(i,this,n,e>1?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<e;n++)r[n]=t[n];return r}var u=function(t,e){var n=t.entries,i=t.loadBlob,s=t.getSize,u=new Map,c=new Map,l=function(){var t=(0,r.A)(o().mark((function t(e){var n,r,a,s;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!u.has(e)){t.next=1;break}return t.abrupt("return",u.get(e));case 1:return a=URL,t.next=2,i(e);case 2:return s=t.sent,n=a.createObjectURL.call(a,s),r=URL.createObjectURL(new Blob(['<img src="'.concat(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,"&quot;")+'"'),c+">"+u+"</"+e+">"}},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;l<s.length;l++){var f=s[l];r(t,f)||n&&r(n,f)||u(t,f,c(e,f))}}},77762:function(t,e,n){"use strict";var r=n(46518),i=n(53250),o=Math.cosh,a=Math.abs,s=Math.E;r({target:"Math",stat:!0,forced:!o||o(710)===1/0},{cosh:function(t){var e=i(a(t)-1)+1;return(e+1/(e*s*s))*(s/2)}})},77782:function(t){"use strict";t.exports=Math.sign||function(t){var e=+t;return 0===e||e!=e?e:e<0?-1:1}},77811:function(t){"use strict";t.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},77936:function(t,e,n){"use strict";var r=n(46518),i=n(95636);i&&r({target:"ArrayBuffer",proto:!0},{transferToFixedLength:function(){return i(this,arguments.length?arguments[0]:void 0,!1)}})},78100:function(t,e,n){"use strict";var r=n(46518),i=n(95636);i&&r({target:"ArrayBuffer",proto:!0},{transfer:function(){return i(this,arguments.length?arguments[0]:void 0,!0)}})},78125:function(t,e,n){"use strict";var r=n(97751),i=n(70511),o=n(10687);i("toStringTag"),o(r("Symbol"),"Symbol")},78227:function(t,e,n){"use strict";var r=n(44576),i=n(25745),o=n(39297),a=n(33392),s=n(4495),u=n(7040),c=r.Symbol,l=i("wks"),f=u?c.for||c:c&&c.withoutSetter||a;t.exports=function(t){return o(l,t)||(l[t]=s&&o(c,t)?c[t]:f("Symbol."+t)),l[t]}},78347:function(t,e,n){"use strict";n(46518)({target:"Object",stat:!0},{hasOwn:n(39297)})},78350:function(t,e,n){"use strict";var r=n(46518),i=n(70259),o=n(79306),a=n(48981),s=n(26198),u=n(1469);r({target:"Array",proto:!0},{flatMap:function(t){var e,n=a(this),r=s(n);return o(t),(e=u(n,0)).length=i(e,n,n,r,0,1,t,arguments.length>1?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);n<e;n++)r[n]=t[n];return r}var s=function(t,e){for(var n=[],r=e.currentNode;r;r=e.nextNode()){var i=t.comparePoint(r,0);if(0===i)n.push(r);else if(i>0)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 M<p.length&&(C+=w(p,M)),C}})},80545:function(t,e,n){"use strict";function r(t){throw new TypeError('"'+t+'" is read-only')}n.d(e,{A:function(){return r}})},80550:function(t,e,n){"use strict";var r=n(44576);t.exports=r.Promise},80630:function(t,e,n){"use strict";var r=n(46518),i=n(79504),o=n(79039),a=n(31240),s=i(1.1.toPrecision);r({target:"Number",proto:!0,forced:o((function(){return"1"!==s(1,void 0)}))||!o((function(){s({})}))},{toPrecision:function(t){return void 0===t?s(a(this)):s(a(this),t)}})},80741:function(t){"use strict";var e=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(t){var r=+t;return(r>0?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;n<e.length;n++){var r=e[n],i=r.left,o=r.right,a=r.center;if(i===t)return{index:n,side:"left"};if(o===t)return{index:n,side:"right"};if(a===t)return{index:n,side:"center"}}}},{key:"goToSpread",value:(w=(0,r.A)(d().mark((function t(e,n,r){var i,o,a,s,u,c,l,f,h,p,v,g,w,x,k;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(e<0||e>m(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||[]);o<a.length;o++){var s,u=a[o];if(!e.includes(u.tagName.toLowerCase())&&!u.classList.contains("translated-text")){var c=Array.from(u.childNodes).some((function(t){var e;return!(t.nodeType!==Node.TEXT_NODE||null===(e=t.textContent)||void 0===e||!e.trim())||t.nodeType===Node.ELEMENT_NODE&&"SPAN"===t.tagName}));0===u.children.length&&null!==(s=u.textContent)&&void 0!==s&&s.trim()||c?n.push(u):u.children.length>0&&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.top<window.innerHeight&&r.bottom>0;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,k<w&&(k=w),b=15;0!==b&&0===n[b];b--);for(y=b,k>b&&(k=b),f[0]=k,C=1<<w;w<b;w++,C<<=1)if((C-=n[w])<0)return S;if((C-=n[b])<0)return S;for(n[b]+=C,o[1]=w=0,T=1,M=2;0!=--b;)o[M]=w+=n[T],M++,T++;b=0,T=0;do{0!==(w=t[e+T])&&(p[o[w]++]=b),T++}while(++b<a);for(a=o[y],o[0]=b=0,T=0,m=-1,O=-k,i[0]=0,_=0,L=0;x<=y;x++)for(v=n[x];0!=v--;){for(;x>O+k;){if(m++,L=(L=y-(O+=k))>k?k:L,(g=1<<(w=x-O))>v+1&&(g-=v+1,M=x,w<L))for(;++w<L&&!((g<<=1)<=n[++M]);)g-=n[M];if(L=1<<w,d[0]+L>1440)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]<s?(r[0]=p[T]<256?0:96,r[2]=p[T++]):(r[0]=c[p[T]-s]+16+64,r[2]=u[p[T++]-s]),g=1<<x-O,w=b>>>O;w<L;w+=g)h.set(r,3*(_+w));for(w=1<<x-1;b&w;w>>>=1)b^=w;for(b^=w,A=(1<<O)-1;(b&A)!=o[m];)m--,A=(1<<(O-=k))-1}return 0!==C&&1!=y?E:0}function s(a){var s;for(t||(t=[],e=[],n=new Int32Array(16),r=[],i=new Int32Array(15),o=new Int32Array(16)),e.length<a&&(e=[]),s=0;s<a;s++)e[s]=0;for(s=0;s<16;s++)n[s]=0;for(s=0;s<3;s++)r[s]=0;i.set(n.subarray(0,15),0),o.set(n.subarray(0,16),0)}this.inflate_trees_bits=function(n,r,i,o,u){var c;return s(19),t[0]=0,(c=a(n,0,19,19,null,null,i,r,o,t,e))==S?u.msg="oversubscribed dynamic bit lengths tree":c!=E&&0!==r[0]||(u.msg="incomplete dynamic bit lengths tree",c=S),c},this.inflate_trees_dynamic=function(n,r,i,o,u,c,l,f,h){var d;return s(288),t[0]=0,0!=(d=a(i,0,n,257,M,C,c,o,f,t,e))||0===o[0]?(d==S?h.msg="oversubscribed literal/length tree":-4!=d&&(h.msg="incomplete literal/length tree",d=S),d):(s(288),0!=(d=a(i,n,r,0,L,R,l,u,f,t,e))||0===u[0]&&n>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)<a.read?a.read-g-1:a.end-g,m=T[t],b=T[e];do{for(;d<20;)v--,h|=(255&s.read_byte(p++))<<d,d+=8;if(0!==(f=(c=n)[A=3*((l=r)+(u=h&m))]))for(;;){if(h>>=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++))<<d,d+=8;for(f=(c=i)[A=3*((l=o)+(u=h&b))];;){if(h>>=c[A+1],d-=c[A+1],16&f){for(f&=15;d<f;)v--,h|=(255&s.read_byte(p++))<<d,d+=8;if(x=c[A+2]+(h&T[f]),h>>=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)<i.read?i.read-k-1:i.end-k;;)switch(t){case 0:if(E>=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)<i.read?i.read-k-1:i.end-k,0!=y)){t=1==y?7:9;break}s=f,e=n,a=d,t=1;case 1:for(m=s;M<m;){if(0===x)return 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);y=0,x--,O|=(255&g.read_byte(C++))<<M,M+=8}if(O>>>=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;){if(0===x)return 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);y=0,x--,O|=(255&g.read_byte(C++))<<M,M+=8}o+=O&T[m],O>>=m,M-=m,s=h,e=r,a=p,t=3;case 3:for(m=s;M<m;){if(0===x)return 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);y=0,x--,O|=(255&g.read_byte(C++))<<M,M+=8}if(O>>=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;){if(0===x)return 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);y=0,x--,O|=(255&g.read_byte(C++))<<M,M+=8}l+=O&T[m],O>>=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)<i.read?i.read-k-1:i.end-k),0===E&&(i.write=k,y=i.inflate_flush(g,y),E=(k=i.write)<i.read?i.read-k-1:i.end-k,k==i.end&&0!==i.read&&(E=(k=0)<i.read?i.read-k-1:i.end-k),0===E)))return 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);i.win[k++]=i.win[_++],E--,_==i.end&&(_=0),o--}t=0;break;case 6:if(0===E&&(k==i.end&&0!==i.read&&(E=(k=0)<i.read?i.read-k-1:i.end-k),0===E&&(i.write=k,y=i.inflate_flush(g,y),E=(k=i.write)<i.read?i.read-k-1:i.end-k,k==i.end&&0!==i.read&&(E=(k=0)<i.read?i.read-k-1:i.end-k),0===E)))return 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);y=0,i.win[k++]=u,E--,t=0;break;case 7:if(M>7&&(M-=8,x++,C--),i.write=k,y=i.inflate_flush(g,y),E=(k=i.write)<i.read?i.read-k-1:i.end-k,i.read!=i.write)return 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);t=8;case 8:return y=1,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 9:return 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);default:return y=A,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)}},i.free=function(){}}I.inflate_trees_fixed=function(t,e,n,r){return t[0]=9,e[0]=5,n[0]=_,r[0]=O,0};var j=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];function F(t,e){var n,r=this,i=0,o=0,a=0,s=0,u=[0],c=[0],l=new P,f=0,h=new Int32Array(4320),d=new I;r.bitk=0,r.bitb=0,r.win=new Uint8Array(e),r.end=e,r.read=0,r.write=0,r.reset=function(t,e){e&&(e[0]=0),6==i&&l.free(t),i=0,r.bitk=0,r.bitb=0,r.read=r.write=0},r.reset(t,null),r.inflate_flush=function(t,e){var n,i,o;return i=t.next_out_index,(n=((o=r.read)<=r.write?r.write:r.end)-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)==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)<r.read?r.read-b-1:r.end-b;;){var k=void 0,E=void 0,_=void 0,O=void 0,M=void 0,C=void 0,L=void 0,R=void 0;switch(i){case 0: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++))<<g,g+=8}switch(f=1&(p=7&v),p>>>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++))<<g,g+=8}if((~v>>>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)<r.read?r.read-b-1:r.end-b),0===w&&(r.write=b,e=r.inflate_flush(t,e),w=(b=r.write)<r.read?r.read-b-1:r.end-b,b==r.end&&0!==r.read&&(w=(b=0)<r.read?r.read-b-1:r.end-b),0===w)))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(e=0,(p=o)>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++))<<g,g+=8}if(a=p=16383&v,(31&p)>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<p)n=[];else for(x=0;x<p;x++)n[x]=0;v>>>=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++))<<g,g+=8}n[j[s++]]=7&v,v>>>=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;){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++))<<g,g+=8}if(p=h[3*(c[0]+(v&T[p]))+1],(F=h[3*(c[0]+(v&T[p]))+2])<16)v>>>=p,g-=p,n[s++]=F;else{for(x=18==F?7:F-14,P=18==F?11:3;g<p+x;){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++))<<g,g+=8}if(g-=p,P+=(v>>>=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)<r.read?r.read-b-1:r.end-b,0===f){i=0;break}i=7;case 7:if(r.write=b,e=r.inflate_flush(t,e),w=(b=r.write)<r.read?r.read-b-1:r.end-b,r.read!=r.write)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);i=8;case 8:return e=1,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);case 9:return 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);default:return e=A,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)}}},r.free=function(t){r.reset(t,null),r.win=null,h=null},r.set_dictionary=function(t,e,n){r.win.set(t.subarray(e,e+n),0),r.read=r.write=n},r.sync_point=function(){return 1==i?1:0}}var N=13,D=[0,0,255,255];function B(){var t=this;function e(t){return t&&t.istate?(t.total_in=t.total_out=0,t.msg=null,t.istate.mode=7,t.istate.blocks.reset(t,null),0):A}t.mode=0,t.method=0,t.was=[0],t.need=0,t.marker=0,t.wbits=0,t.inflateEnd=function(e){return t.blocks&&t.blocks.free(e),t.blocks=null,0},t.inflateInit=function(n,r){return n.msg=null,t.blocks=null,r<8||r>15?(t.inflateEnd(n),A):(t.wbits=r,n.istate.blocks=new F(n,1<<r),e(n),0)},t.inflate=function(t,e){var n,r;if(!t||!t.istate||!t.next_in)return A;var i=t.istate;for(e=4==e?E:0,n=E;;)switch(i.mode){case 0:if(0===t.avail_in)return n;if(n=e,t.avail_in--,t.total_in++,8!=(15&(i.method=t.read_byte(t.next_in_index++)))){i.mode=N,t.msg="unknown compression method",i.marker=5;break}if(8+(i.method>>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<<o.wbits&&(r=n-(i=(1<<o.wbits)-1)),o.blocks.set_dictionary(e,r,i),o.mode=7,0},t.inflateSync=function(t){var n,r,i,o,a;if(!t||!t.istate)return A;var s=t.istate;if(s.mode!=N&&(s.mode=N,s.marker=0),0===(n=t.avail_in))return E;for(r=t.next_in_index,i=s.marker;0!==n&&i<4;)t.read_byte(r)==D[i]?i++:i=0!==t.read_byte(r)?0:4-i,r++,n--;return t.total_in+=r-t.next_in_index,t.next_in_index=r,t.avail_in=n,s.marker=i,4!=i?S:(o=t.total_in,a=t.total_out,e(t),t.total_in=o,t.total_out=a,s.mode=7,0)},t.inflateSyncPoint=function(t){return t&&t.istate&&t.istate.blocks?t.istate.blocks.sync_point():A}}function z(){}z.prototype={inflateInit:function(t){var e=this;return e.istate=new B,t||(t=15),e.istate.inflateInit(e,t)},inflate:function(t){var e=this;return e.istate?e.istate.inflate(e,t):A},inflateEnd:function(){var t=this;if(!t.istate)return A;var e=t.istate.inflateEnd(t);return t.istate=null,e},inflateSync:function(){var t=this;return t.istate?t.istate.inflateSync(t):A},inflateSetDictionary:function(t,e){var n=this;return n.istate?n.istate.inflateSetDictionary(n,t,e):A},read_byte:function(t){return this.next_in[t]},read_buf:function(t,e){return this.next_in.subarray(t,t+e)}};var U=4294967295,W=65535,H=33639248,q=101075792,V=void 0,$="undefined",G="function",X=(0,h.A)((function t(e){return(0,d.A)(this,t),function(t){function n(t,r){(0,d.A)(this,n);var i=new e(r);return b(this,n,[{transform:function(t,e){e.enqueue(i.append(t))},flush:function(t){var e=i.flush();e&&t.enqueue(e)}}])}return(0,f.A)(n,t),(0,h.A)(n)}(TransformStream)})),Y=2;try{("undefined"==typeof navigator?"undefined":(0,u.A)(navigator))!=$&&navigator.hardwareConcurrency&&(Y=navigator.hardwareConcurrency)}catch(t){}var K={chunkSize:524288,maxWorkers:Y,terminateWorkerTimeout:5e3,useWebWorkers:!0,useCompressionStream:!0,workerScripts:V,CompressionStreamNative:("undefined"==typeof CompressionStream?"undefined":(0,u.A)(CompressionStream))!=$&&CompressionStream,DecompressionStreamNative:("undefined"==typeof DecompressionStream?"undefined":(0,u.A)(DecompressionStream))!=$&&DecompressionStream},J=Object.assign({},K);function Z(t){var e=t.baseURL,n=t.chunkSize,r=t.maxWorkers,i=t.terminateWorkerTimeout,o=t.useCompressionStream,a=t.useWebWorkers,s=t.Deflate,u=t.Inflate,c=t.CompressionStream,l=t.DecompressionStream,f=t.workerScripts;if(Q("baseURL",e),Q("chunkSize",n),Q("maxWorkers",r),Q("terminateWorkerTimeout",i),Q("useCompressionStream",o),Q("useWebWorkers",a),s&&(J.CompressionStream=new X(s)),u&&(J.DecompressionStream=new X(u)),Q("CompressionStream",c),Q("DecompressionStream",l),f!==V){var h=f.deflate,d=f.inflate;if((h||d)&&(J.workerScripts||(J.workerScripts={})),h){if(!Array.isArray(h))throw new Error("workerScripts.deflate must be an array");J.workerScripts.deflate=h}if(d){if(!Array.isArray(d))throw new Error("workerScripts.inflate must be an array");J.workerScripts.inflate=d}}}function Q(t,e){e!==V&&(J[t]=e)}for(var tt=[],et=0;et<256;et++){for(var nt=et,rt=0;rt<8;rt++)1&nt?nt=nt>>>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<r;n++)e=e>>>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.length<e)return t;var n=(t=t.slice(0,Math.ceil(e/32))).length;return e&=31,n>0&&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<t.length;i++)r.push(n|t[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<n;i++)!(3&i)&&(e=t[i/4]),r[i]=e>>>24,e<<=8;return r},toBits:function(t){var e,n=[],r=0;for(e=0;e<t.length;e++)r=r<<8|t[e],!(3&~e)&&(n.push(r),r=0);return 3&e&&n.push(at.partial(8*(3&e),r)),n}}},ut={sha1:function(){return(0,h.A)((function t(e){(0,d.A)(this,t);var n=this;n.blockSize=512,n._init=[1732584193,4023233417,2562383102,271733878,3285377520],n._key=[1518500249,1859775393,2400959708,3395469782],e?(n._h=e._h.slice(0),n._buffer=e._buffer.slice(0),n._length=e._length):n.reset()}),[{key:"reset",value:function(){var t=this;return t._h=t._init.slice(0),t._buffer=[],t._length=0,t}},{key:"update",value:function(t){var e=this;"string"==typeof t&&(t=st.utf8String.toBits(t));var n=e._buffer=at.concat(e._buffer,t),r=e._length,i=e._length=r+at.bitLength(t);if(i>9007199254740991)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<<t|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<a;b++)n=c[p>>>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<r;o+=4){this.incCounter(n);var a=t.encrypt(n);e[o]^=a[0],e[o+1]^=a[1],e[o+2]^=a[2],e[o+3]^=a[3]}return at.clamp(e,i)}}])}()},ft={importKey:function(t){return new ft.hmacSha1(st.bytes.toBits(t))},pbkdf2:function(t,e,n,r){if(n=n||1e4,r<0||n<0)throw new Error("invalid params to pbkdf2");var i,o,a,s,u,c=1+(r>>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;a<n;a++)for(o=t.encrypt(o),s=0;s<o.length;s++)i[s]^=o[s];for(a=0;h<(c||1)&&a<i.length;a++)f.setInt32(h,i[a]),h+=4}return l.slice(0,r/8)},hmacSha1:function(){return(0,h.A)((function t(e){(0,d.A)(this,t);var n=this,r=n._hash=ut.sha1,i=[[],[]];n._baseHash=[new r,new r];var o=n._baseHash[0].blockSize/32;e.length>o&&(e=(new r).update(e).finalize());for(var a=0;a<o;a++)i[0][a]=909522486^e[a],i[1][a]=1549556828^e[a];n._baseHash[0].update(i[0]),n._baseHash[1].update(i[1]),n._resultHash=new r(n._baseHash[0])}),[{key:"reset",value:function(){var t=this;t._resultHash=new t._hash(t._baseHash[0]),t._updated=!1}},{key:"update",value:function(t){this._updated=!0,this._resultHash.update(t)}},{key:"digest",value:function(){var t=this,e=t._resultHash.finalize(),n=new t._hash(t._baseHash[1]).update(e).finalize();return t.reset(),n}},{key:"encrypt",value:function(t){if(this._updated)throw new Error("encrypt on already updated hmac called!");return this.update(t),this.digest(t)}}])}()},ht="undefined"!=typeof crypto&&"function"==typeof crypto.getRandomValues,dt="Invalid password",pt="Invalid signature",vt="zipjs-abort-check-password";function gt(t){return ht?crypto.getRandomValues(t):function(t){for(var e,n=new Uint32Array(t.buffer),r=function(t){var e=987654321,n=4294967295;return function(){return((((e=36969*(65535&e)+(e>>16)&n)<<16)+(t=18e3*(65535&t)+(t>>16)&n)&n)/4294967296+.5)*(Math.random()>.5?1:-1)}},i=0;i<t.length;i+=4){var o=r(4294967296*(e||Math.random()));e=987654071*o(),n[i/4]=4294967296*o()|0}return t}(t)}var yt=16,mt={name:"PBKDF2"},bt=Object.assign({hash:{name:"HMAC"}},mt),wt=Object.assign({iterations:1e3,hash:{name:"SHA-1"}},mt),xt=["deriveBits"],kt=[8,12,16],At=[16,24,32],St=10,Et=[0,0,0,0],Tt="undefined",_t="function",Ot=("undefined"==typeof crypto?"undefined":(0,u.A)(crypto))!=Tt,Mt=Ot&&crypto.subtle,Ct=Ot&&(0,u.A)(Mt)!=Tt,Lt=st.bytes,Rt=ct.aes,It=lt.ctrGladman,Pt=ft.hmacSha1,jt=Ot&&Ct&&(0,u.A)(Mt.importKey)==_t,Ft=Ot&&Ct&&(0,u.A)(Mt.deriveBits)==_t,Nt=function(t){function e(t){var n=t.password,r=t.signed,i=t.encryptionStrength,o=t.checkPasswordOnly;return(0,d.A)(this,e),b(this,e,[{start:function(){var t=this;Object.assign(this,{ready:new Promise((function(e){return t.resolveReady=e})),password:n,signed:r,strength:i-1,pending:new Uint8Array})},transform:function(t,e){var n=this;return(0,a.A)(y().mark((function r(){var i,s,u,c,l,f;return y().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(s=(i=n).password,u=i.strength,c=i.resolveReady,l=i.ready,!s){r.next=2;break}return r.next=1,function(){var t=(0,a.A)(y().mark((function t(e,n,r,i){var o,a;return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,zt(e,n,r,Ht(i,0,kt[n]));case 1:if(o=t.sent,a=Ht(i,kt[n]),o[0]==a[0]&&o[1]==a[1]){t.next=2;break}throw new Error(dt);case 2:case"end":return t.stop()}}),t)})));return function(e,n,r,i){return t.apply(this,arguments)}}()(i,u,s,Ht(t,0,kt[u]+2));case 1:t=Ht(t,kt[u]+2),o?e.error(new Error(vt)):c(),r.next=3;break;case 2:return r.next=3,l;case 3:f=new Uint8Array(t.length-St-(t.length-St)%yt),e.enqueue(Bt(i,t,f,0,St,!0));case 4:case"end":return r.stop()}}),r)})))()},flush:function(t){var e=this;return(0,a.A)(y().mark((function n(){var r,i,o,a,s,u,c,l,f,h,d,p;return y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=e.signed,i=e.ctr,o=e.hmac,a=e.pending,s=e.ready,!o||!i){n.next=5;break}return n.next=1,s;case 1:if(u=Ht(a,0,a.length-St),c=Ht(a,a.length-St),l=new Uint8Array,u.length&&(f=Vt(Lt,u),o.update(f),h=i.update(f),l=qt(Lt,h)),!r){n.next=4;break}d=Ht(qt(Lt,o.digest()),0,St),p=0;case 2:if(!(p<St)){n.next=4;break}if(d[p]==c[p]){n.next=3;break}throw new Error(pt);case 3:p++,n.next=2;break;case 4:t.enqueue(l);case 5:case"end":return n.stop()}}),n)})))()}}])}return(0,f.A)(e,t),(0,h.A)(e)}(TransformStream),Dt=function(t){function e(t){var n,r,i=t.password,o=t.encryptionStrength;return(0,d.A)(this,e),n=b(this,e,[{start:function(){var t=this;Object.assign(this,{ready:new Promise((function(e){return t.resolveReady=e})),password:i,strength:o-1,pending:new Uint8Array})},transform:function(t,e){var n=this;return(0,a.A)(y().mark((function r(){var i,o,s,u,c,l,f;return y().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(o=(i=n).password,s=i.strength,u=i.resolveReady,c=i.ready,l=new Uint8Array,!o){r.next=2;break}return r.next=1,function(){var t=(0,a.A)(y().mark((function t(e,n,r){var i,o;return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=gt(new Uint8Array(kt[n])),t.next=1,zt(e,n,r,i);case 1:return o=t.sent,t.abrupt("return",Wt(i,o));case 2:case"end":return t.stop()}}),t)})));return function(e,n,r){return t.apply(this,arguments)}}()(i,s,o);case 1:l=r.sent,u(),r.next=3;break;case 2:return r.next=3,c;case 3:(f=new Uint8Array(l.length+t.length-t.length%yt)).set(l,0),e.enqueue(Bt(i,t,f,l.length,0));case 4:case"end":return r.stop()}}),r)})))()},flush:function(t){var e=this;return(0,a.A)(y().mark((function n(){var i,o,a,s,u,c;return y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(i=e.ctr,o=e.hmac,a=e.pending,s=e.ready,!o||!i){n.next=2;break}return n.next=1,s;case 1:u=new Uint8Array,a.length&&(c=i.update(Vt(Lt,a)),o.update(c),u=qt(Lt,c)),r.signature=qt(Lt,o.digest()).slice(0,St),t.enqueue(Wt(u,r.signature));case 2:case"end":return n.stop()}}),n)})))()}}]),r=(0,s.A)(n),n}return(0,f.A)(e,t),(0,h.A)(e)}(TransformStream);function Bt(t,e,n,r,i,o){var a,s=t.ctr,u=t.hmac,c=t.pending,l=e.length-i;for(c.length&&(e=Wt(c,e),n=function(t,e){if(e&&e>t.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<e.length;n++)e[n]=t.charCodeAt(n);return e}return(new TextEncoder).encode(t)}(r),t.next=1,function(){var t=(0,a.A)(y().mark((function t(e,n,r,i,o){return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(jt){t.next=1;break}return t.abrupt("return",ft.importKey(n));case 1:return t.prev=1,t.next=2,Mt.importKey(e,n,r,i,o);case 2:return t.abrupt("return",t.sent);case 3:return t.prev=3,t.catch(1),t.abrupt("return",(jt=!1,ft.importKey(n)));case 4:case"end":return t.stop()}}),t,null,[[1,3]])})));return function(e,n,r,i,o){return t.apply(this,arguments)}}()("raw",o,bt,!1,xt);case 1:return s=t.sent,t.next=2,function(){var t=(0,a.A)(y().mark((function t(e,n,r){return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(Ft){t.next=1;break}return t.abrupt("return",ft.pbkdf2(n,e.salt,wt.iterations,r));case 1:return t.prev=1,t.next=2,Mt.deriveBits(e,n,r);case 2:return t.abrupt("return",t.sent);case 3:return t.prev=3,t.catch(1),t.abrupt("return",(Ft=!1,ft.pbkdf2(n,e.salt,wt.iterations,r)));case 4:case"end":return t.stop()}}),t,null,[[1,3]])})));return function(e,n,r){return t.apply(this,arguments)}}()(Object.assign({salt:i},wt),s,8*(2*At[n]+2));case 2:return u=t.sent,c=new Uint8Array(u),l=Vt(Lt,Ht(c,0,At[n])),f=Vt(Lt,Ht(c,At[n],2*At[n])),h=Ht(c,2*At[n]),t.abrupt("return",(Object.assign(e,{keys:{key:l,authentication:f,passwordVerification:h},ctr:new It(new Rt(l),Array.from(Et)),hmac:new Pt(f)}),h));case 3:case"end":return t.stop()}}),t)}))),Ut.apply(this,arguments)}function Wt(t,e){var n=t;return t.length+e.length&&((n=new Uint8Array(t.length+e.length)).set(t,0),n.set(e,t.length)),n}function Ht(t,e,n){return t.subarray(e,n)}function qt(t,e){return t.fromBits(e)}function Vt(t,e){return t.toBits(e)}var $t=function(t){function e(t){var n=t.password,r=t.passwordVerification,i=t.checkPasswordOnly;return(0,d.A)(this,e),b(this,e,[{start:function(){Object.assign(this,{password:n,passwordVerification:r}),Kt(this,n)},transform:function(t,e){var n=this;if(n.password){var r=Xt(n,t.subarray(0,12));if(n.password=null,r[11]!=n.passwordVerification)throw new Error(dt);t=t.subarray(12)}i?e.error(new Error(vt)):e.enqueue(Xt(n,t))}}])}return(0,f.A)(e,t),(0,h.A)(e)}(TransformStream),Gt=function(t){function e(t){var n=t.password,r=t.passwordVerification;return(0,d.A)(this,e),b(this,e,[{start:function(){Object.assign(this,{password:n,passwordVerification:r}),Kt(this,n)},transform:function(t,e){var n,r,i=this;if(i.password){i.password=null;var o=gt(new Uint8Array(12));o[11]=i.passwordVerification,(n=new Uint8Array(t.length+o.length)).set(Yt(i,o),0),r=12}else n=new Uint8Array(t.length),r=0;n.set(Yt(i,t),r),e.enqueue(n)}}])}return(0,f.A)(e,t),(0,h.A)(e)}(TransformStream);function Xt(t,e){for(var n=new Uint8Array(e.length),r=0;r<e.length;r++)n[r]=Zt(t)^e[r],Jt(t,n[r]);return n}function Yt(t,e){for(var n=new Uint8Array(e.length),r=0;r<e.length;r++)n[r]=Zt(t)^e[r],Jt(t,e[r]);return n}function Kt(t,e){var n=[305419896,591751049,878082192];Object.assign(t,{keys:n,crcKey0:new it(n[0]),crcKey2:new it(n[2])});for(var r=0;r<e.length;r++)Jt(t,e.charCodeAt(r))}function Jt(t,e){var n=(0,o.A)(t.keys,3),r=n[0],i=n[1],a=n[2];t.crcKey0.append([e]),r=~t.crcKey0.get(),i=te(Math.imul(te(i+Qt(r)),134775813)+1),t.crcKey2.append([i>>>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;i<n;i++)r[i-1]=o[i];return t.next=1,e.apply(void 0,r);case 1:t.next=3;break;case 2:t.prev=2,t.catch(0);case 3:case"end":return t.stop()}}),t,null,[[0,2]])}))),ve.apply(this,arguments)}function ge(t,e){return{run:function(){return(n=(0,a.A)(y().mark((function t(e,n){var r,i,o,a,s,u,c;return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.options,i=e.readable,o=e.writable,a=e.onTaskFinished,s=new le(r,n),t.prev=1,t.next=2,i.pipeThrough(s).pipeTo(o,{preventClose:!0,preventAbort:!0});case 2:return u=s.signature,c=s.size,t.abrupt("return",{signature:u,size:c});case 3:return t.prev=3,a(),t.finish(3);case 4:case"end":return t.stop()}}),t,null,[[1,,3,4]])}))),function(t,e){return n.apply(this,arguments)})(t,e);var n}}}function ye(t,e){var n=e.baseURL,r=e.chunkSize;return t.interface||Object.assign(t,{worker:we(t.scripts[0],n,t),interface:{run:function(){return(e=(0,a.A)(y().mark((function t(e,n){var r,i,o,s,u,c,l,f,h,d;return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=new Promise((function(t,e){r=t,i=e})),Object.assign(e,{reader:null,writer:null,resolveResult:r,rejectResult:i,result:o}),s=e.readable,u=e.options,c=e.scripts,l=function(t){var e,n=t.getWriter(),r=new Promise((function(t){return e=t})),i=new WritableStream({write:function(t){return(0,a.A)(y().mark((function e(){return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,n.ready;case 1:return e.next=2,n.write(t);case 2:case"end":return e.stop()}}),e)})))()},close:function(){n.releaseLock(),e()},abort:function(t){return n.abort(t)}});return{writable:i,closed:r}}(e.writable),f=l.writable,h=l.closed,xe({type:"start",scripts:c.slice(1),options:u,config:n,readable:s,writable:f},e)||Object.assign(e,{reader:s.getReader(),writer:f.getWriter()}),t.next=1,o;case 1:return d=t.sent,t.prev=2,t.next=3,f.getWriter().close();case 3:t.next=5;break;case 4:t.prev=4,t.catch(2);case 5:return t.next=6,h;case 6:return t.abrupt("return",d);case 7:case"end":return t.stop()}}),t,null,[[2,4]])}))),function(t,n){return e.apply(this,arguments)})(t,{chunkSize:r});var e}}}),t.interface}var me=!0,be=!0;function we(t,e,n){var r,i,o={type:"module"};(0,u.A)(t)==G&&(t=t());try{r=new URL(t,e)}catch(e){r=t}if(me)try{i=new Worker(r)}catch(t){me=!1,i=new Worker(r,o)}else i=new Worker(r,o);return i.addEventListener("message",(function(t){return(e=(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,b,w,x,k,A,S;return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(A=function(t,e){t?h(t):f(e),l&&l.releaseLock(),d()},r=e.data,i=r.type,o=r.value,a=r.messageId,s=r.result,u=r.error,c=n.reader,l=n.writer,f=n.resolveResult,h=n.rejectResult,d=n.onTaskFinished,t.prev=1,!u){t.next=2;break}p=u.message,v=u.stack,g=u.code,m=u.name,b=new Error(p),Object.assign(b,{stack:v,code:g,name:m}),A(b),t.next=8;break;case 2:if("pull"!=i){t.next=4;break}return t.next=3,c.read();case 3:w=t.sent,x=w.value,k=w.done,xe({type:ue,value:x,done:k,messageId:a},n);case 4:if(i!=ue){t.next=7;break}return t.next=5,l.ready;case 5:return t.next=6,l.write(new Uint8Array(o));case 6:xe({type:"ack",messageId:a},n);case 7:"close"==i&&A(null,s);case 8:t.next=10;break;case 9:t.prev=9,S=t.catch(1),A(S);case 10:case"end":return t.stop()}}),t,null,[[1,9]])}))),function(t,n){return e.apply(this,arguments)})(t,n);var e})),i}function xe(t,e){var n=e.worker,r=e.writer,i=e.onTaskFinished,o=e.transferStreams;try{var a=t.value,s=t.readable,u=t.writable,c=[];if(a&&(t.value=a.buffer,c.push(t.value)),o&&be?(s&&c.push(s),u&&c.push(u)):t.readable=t.writable=null,c.length)try{return n.postMessage(t,c),!0}catch(r){be=!1,t.readable=t.writable=null,n.postMessage(t)}else n.postMessage(t)}catch(t){throw r&&r.releaseLock(),i(),t}}var ke=[],Ae=[],Se=0;function Ee(t){var e=t.terminateTimeout;e&&(clearTimeout(e),t.terminateTimeout=null)}var Te="writable",_e=function(){return(0,h.A)((function t(){(0,d.A)(this,t),this.size=0}),[{key:"init",value:function(){this.initialized=!0}}])}(),Oe=function(t){function e(){return(0,d.A)(this,e),b(this,e,arguments)}return(0,f.A)(e,t),(0,h.A)(e,[{key:"readable",get:function(){var t=this,e=t.chunkSize,n=void 0===e?65536:e,r=new ReadableStream({start:function(){this.chunkOffset=0},pull:function(e){var i=this;return(0,a.A)(y().mark((function o(){var a,s,u,c,l,f,h;return y().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return a=r.offset,s=void 0===a?0:a,u=r.size,c=r.diskNumberStart,l=i.chunkOffset,f=e,o.next=1,Ne(t,s+l,Math.min(n,u-l),c);case 1:h=o.sent,f.enqueue.call(f,h),l+n>u?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||i<r.size?r.blob.slice(e,i):r.blob,t.next=1,o.arrayBuffer();case 1:return a=t.sent,t.abrupt("return",(a.byteLength>n&&(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;n<t.length;n++)e+=De[t[n]];return e}return(new TextDecoder).decode(t)}(t):new TextDecoder(e).decode(t)}var Ue="filename",We="rawFilename",He="comment",qe="rawComment",Ve="uncompressedSize",$e="compressedSize",Ge="offset",Xe="diskNumberStart",Ye="lastModDate",Ke="rawLastModDate",Je="lastAccessDate",Ze="creationDate",Qe=[Ue,We,$e,Ve,Ye,Ke,He,qe,Je,Ze,Ge,Xe,Xe,"internalFileAttribute","externalFileAttribute","msDosCompatible","zip64","directory","bitFlag","encrypted","signature","filenameUTF8","commentUTF8","compressionMethod","version","versionMadeBy","extraField","rawExtraField","extraFieldZip64","extraFieldUnicodePath","extraFieldUnicodeComment","extraFieldAES","extraFieldNTFS","extraFieldExtendedTimestamp"],tn=(0,h.A)((function t(e){var n=this;(0,d.A)(this,t),Qe.forEach((function(t){return n[t]=e[t]}))})),en="File format is not recognized",nn="Compression method not supported",rn="Split zip file",on="utf-8",an="cp437",sn=[[Ve,U],[$e,U],[Ge,U],[Xe,W]],un=(0,r.A)((0,r.A)({},W,{getValue:xn,bytes:4}),U,{getValue:kn,bytes:8}),cn=function(){return(0,h.A)((function t(e){var n=arguments.length>1&&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(!(N<w)){n.next=27;break}return n.delegateYield(F(),"t0",26);case 26:N++,n.next=25;break;case 27:if(D=gn(r,e,"extractPrependedData"),B=gn(r,e,"extractAppendedData"),!D){n.next=31;break}if(!(k>0)){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(!(v<i.size)){n.next=36;break}return n.next=35,(0,p.A)(Ne(i,v,i.size-v));case 35:nt=n.sent,n.next=37;break;case 36:nt=new Uint8Array;case 37:r.appendedData=nt;case 38:return n.abrupt("return",!0);case 39:case"end":return n.stop()}}),n)}))()})).apply(this,arguments)}},{key:"getEntries",value:(e=(0,a.A)(y().mark((function t(){var e,n,r,i,o,a,s,u,c,l=arguments;return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=l.length>0&&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<p)){t.next=2;break}w={indexWorker:Se},Se++,ke.push(w),m=new he(w,e,n,x),t.next=4;break;case 2:return t.next=3,new Promise((function(t){return Ae.push({resolve:t,stream:e,workerOptions:n})}));case 3:m=t.sent;case 4:return t.abrupt("return",m.run());case 5:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}()({readable:_,writable:C},P);case 13:F=t.sent,j=F.outputSize,t.next=15;break;case 14:if(t.prev=14,U=t.catch(12),M&&U.message==vt){t.next=15;break}throw U;case 15:if(t.prev=15,N=gn(i,r,"preventClose"),C.size+=j,N||C.locked){t.next=16;break}return t.next=16,C.getWriter().close();case 16:return t.finish(15);case 17:return t.abrupt("return",M?void 0:e.getData?e.getData():C);case 18:case"end":return t.stop()}}),t,this,[[12,14,15,17]])}))),function(e,n){return t.apply(this,arguments)})}]);var t}();function fn(t,e,n){var r=t.rawBitFlag=wn(e,n+2),i=!(1&~r),o=xn(e,n+6);Object.assign(t,{encrypted:i,version:wn(e,n),bitFlag:{level:(6&r)>>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<s.length;)f=wn(c,l),h=wn(c,l+2),u.set(f,{type:f,data:s.slice(l+4,l+4+h)}),l+=4+h}catch(t){}if(d=wn(r,i+4),Object.assign(n,{signature:xn(r,i+10),uncompressedSize:xn(r,i+18),compressedSize:xn(r,i+14)}),(p=u.get(1))&&(function(t,e){e.zip64=!0;for(var n=An(t.data),r=sn.filter((function(t){var n=(0,o.A)(t,2),r=n[0],i=n[1];return e[r]==i})),i=0,a=0;i<r.length;i++){var s=(0,o.A)(r[i],2),u=s[0],c=s[1];if(e[u]==c){var l=un[c];e[u]=t[u]=l.getValue(n,a),a+=l.bytes}else if(t[u])throw new Error("Zip64 extra field not found")}}(p,n),n.extraFieldZip64=p),!(v=u.get(28789))){t.next=2;break}return t.next=1,pn(v,Ue,We,n,e);case 1:n.extraFieldUnicodePath=v;case 2:if(!(g=u.get(25461))){t.next=4;break}return t.next=3,pn(g,He,qe,n,e);case 3:n.extraFieldUnicodeComment=g;case 4:(m=u.get(39169))?(function(t,e,n){var r=An(t.data),i=bn(r,4);Object.assign(t,{vendorVersion:bn(r,0),vendorId:bn(r,2),strength:i,originalCompressionMethod:n,compressionMethod:wn(r,5)}),e.compressionMethod=t.compressionMethod}(m,n,d),n.extraFieldAES=m):n.compressionMethod=d,(b=u.get(10))&&(function(t,e){var n,r=An(t.data),i=4;try{for(;i<t.data.length&&!n;){var o=wn(r,i),a=wn(r,i+2);1==o&&(n=t.data.slice(i+4,i+4+a)),i+=4+a}}catch(t){}try{if(n&&24==n.length){var s=An(n),u=s.getBigUint64(0,!0),c=s.getBigUint64(8,!0),l=s.getBigUint64(16,!0);Object.assign(t,{rawLastModDate:u,rawLastAccessDate:c,rawCreationDate:l});var f={lastModDate:mn(u),lastAccessDate:mn(c),creationDate:mn(l)};Object.assign(t,f),Object.assign(e,f)}}catch(t){}}(b,n),n.extraFieldNTFS=b),(w=u.get(21589))&&(function(t,e,n){var r=An(t.data),i=bn(r,0),o=[],a=[];n?(!(1&~i)&&(o.push(Ye),a.push(Ke)),!(2&~i)&&(o.push(Je),a.push("rawLastAccessDate")),!(4&~i)&&(o.push(Ze),a.push("rawCreationDate"))):t.data.length>=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,"");f<r&&c(i,s(arguments[f]))}}})},86368:function(t,e,n){"use strict";var r=n(46518),i=n(44576),o=n(59225).clear;r({global:!0,bind:!0,enumerable:!0,forced:i.clearImmediate!==o},{clearImmediate:o})},86565:function(t,e,n){"use strict";var r=n(46518),i=n(28551),o=n(42787);r({target:"Reflect",stat:!0,sham:!n(12211)},{getPrototypeOf:function(t){return o(i(t))}})},86614:function(t,e,n){"use strict";var r=n(94644),i=n(18014),o=n(35610),a=r.aTypedArray,s=r.getTypedArrayConstructor;(0,r.exportTypedArrayMethod)("subarray",(function(t,e){var n=a(this),r=n.length,u=o(t,r);return new(s(n))(n.buffer,n.byteOffset+u*n.BYTES_PER_ELEMENT,i((void 0===e?r:o(e,r))-u))}))},86938:function(t,e,n){"use strict";var r=n(2360),i=n(62106),o=n(56279),a=n(76080),s=n(90679),u=n(64117),c=n(72652),l=n(51088),f=n(62529),h=n(87633),d=n(43724),p=n(3451).fastKey,v=n(91181),g=v.set,y=v.getterFor;t.exports={getConstructor:function(t,e,n,l){var f=t((function(t,i){s(t,h),g(t,{type:e,index:r(null),first:null,last:null,size:0}),d||(t.size=0),u(i)||c(i,t[l],{that:t,AS_ENTRIES:n})})),h=f.prototype,v=y(e),m=function(t,e,n){var r,i,o=v(t),a=b(t,e);return a?a.value=n:(o.last=a={index:i=p(e,!0),key:e,value:n,previous:r=o.last,next:null,removed:!1},o.first||(o.first=a),r&&(r.next=a),d?o.size++:t.size++,"F"!==i&&(o.index[i]=a)),t},b=function(t,e){var n,r=v(t),i=p(e);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key===e)return n};return o(h,{clear:function(){for(var t=v(this),e=t.first;e;)e.removed=!0,e.previous&&(e.previous=e.previous.next=null),e=e.next;t.first=t.last=null,t.index=r(null),d?t.size=0:this.size=0},delete:function(t){var e=this,n=v(e),r=b(e,t);if(r){var i=r.next,o=r.previous;delete n.index[r.index],r.removed=!0,o&&(o.next=i),i&&(i.previous=o),n.first===r&&(n.first=i),n.last===r&&(n.last=o),d?n.size--:e.size--}return!!r},forEach:function(t){for(var e,n=v(this),r=a(t,arguments.length>1?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);n<e;n++)r[n]=t[n];return r}function l(t,e){h(t,e),e.add(t)}function f(t,e,n){h(t,e),e.set(t,n)}function h(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function d(t,e){return t.get(v(t,e))}function p(t,e,n){return t.set(v(t,e),n),n}function v(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 g=s().mark(E),y=new Set(["article","aside","audio","blockquote","caption","details","dialog","div","dl","dt","dd","figure","footer","form","figcaption","h1","h2","h3","h4","h5","h6","header","hgroup","hr","li","main","math","nav","ol","p","pre","section","tr"]);function m(t){return t.collapsed||""===t.toString().trim()}var b=new Set(['"',"'","“","”","",""]),w=function(t){var e=t.parentElement;if(!e)return!1;var n=e.closest("a");return!!n&&function(t){if(!t)return!1;var e=t.trim();return!(!e||!e.startsWith("#")&&/^[a-zA-Z][a-zA-Z0-9+.-]*:/.test(e))}(n.getAttribute("href"))},x=function(t){for(var e=t.cloneContents(),n=document.createTreeWalker(e,NodeFilter.SHOW_TEXT),r="",i=n.nextNode();i;i=n.nextNode()){var o;w(i)||(r+=null!==(o=i.textContent)&&void 0!==o?o:"")}return r},k=function(t){for(var e,n,r=t.parentElement;r&&!y.has(null===(i=r.tagName)||void 0===i||null===(o=i.toLowerCase)||void 0===o?void 0:o.call(i));){var i,o;r=r.parentElement}return null!==(e=null!=r?r:null===(n=t.ownerDocument)||void 0===n?void 0:n.body)&&void 0!==e?e:null},A=function(t,e){return"."===t?!e||!!b.has(e)||!!/\s/.test(e):"!"===t||"?"===t||"。"===t||""===t||""===t},S=function(t,e){for(var n=e;n<t.length&&b.has(t[n]);)n++;return n};function E(t){var e,n,r,i,o,a,u,c,l,f,h,d,p,v,y,b,x;return s().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:e=t.createTreeWalker(t.body,NodeFilter.SHOW_TEXT),n=null,r=0,i=null,o=null,a=0,u=function(){if(!n||!o)return null;var e=t.createRange();return e.setStart(n,r),e.setEnd(o,a),n=null,r=0,i=null,o=null,a=0,m(e)?null:e},c=e.nextNode();case 1:if(!c){s.next=12;break}if(c.textContent){s.next=2;break}return s.abrupt("continue",11);case 2:if(!w(c)){s.next=3;break}return s.abrupt("continue",11);case 3:if(l=k(c),n){s.next=4;break}n=c,r=0,i=l,s.next=6;break;case 4:if(l===i){s.next=6;break}if(!(f=u())){s.next=5;break}return s.next=5,f;case 5:n=c,r=0,i=l;case 6:h=c.textContent,d=0;case 7:if(!(d<h.length)){s.next=10;break}if(p=h[d],v=h[d+1],!A(p,v)){s.next=9;break}if(y=S(h,d+1),(b=t.createRange()).setStart(n,r),b.setEnd(c,y),m(b)){s.next=8;break}return s.next=8,b;case 8:return n=c,r=y,o=c,a=y,d=y,s.abrupt("continue",7);case 9:d+=1,s.next=7;break;case 10:o=c,a=h.length,n===c&&r===h.length&&(n=null,r=0,i=null);case 11:c=e.nextNode(),s.next=1;break;case 12:if(!(x=u())){s.next=13;break}return s.next=13,x;case 13:case"end":return s.stop()}}),g)}var T=new WeakMap,_=new WeakMap,O=new WeakMap,M=new WeakMap,C=new WeakSet,L=function(){return(0,o.A)((function t(e){var n=arguments.length>1&&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<i;o++){var a,s=null!==(a=d(T,this)[o])&&void 0!==a?a:v(C,this,R).call(this,o);if(!s)break;r.push(d(M,this).call(this,s))}return r}},{key:"find",value:function(t){var e=d(T,this).findIndex((function(e){return t(e)}));if(e>-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;d<h;){if("%"===(e=s(r,d++)))if("u"===s(r,d)){if(n=c(r,d+1,d+5),u(f,n)){i+=a(parseInt(n,16)),d+=5;continue}}else if(n=c(r,d,d+2),u(l,n)){i+=a(parseInt(n,16)),d+=2;continue}i+=e}return i}})},88431:function(t,e,n){"use strict";var r=n(46518),i=n(59213).every;r({target:"Array",proto:!0,forced:!n(34598)("every")},{every:function(t){return i(this,t,arguments.length>1?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<<d)-1,v=p>>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<<s|l,d+=s;d>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<<o)-1,s=a>>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;o<r;)t=e[o],e[o++]=e[--n],e[n]=t;return e}))},88940:function(t,e,n){"use strict";var r=n(46518),i=n(44576),o=n(1625),a=n(42787),s=n(52967),u=n(77740),c=n(2360),l=n(66699),f=n(6980),h=n(80747),d=n(32603),p=n(78227),v=n(79039),g=n(96395),y=i.SuppressedError,m=p("toStringTag"),b=Error,w=!!y&&3!==y.length,x=!!y&&v((function(){return 4===new y(1,2,3,{cause:4}).cause})),k=w||x,A=function(t,e,n){var r,i=o(S,this);return s?r=!k||i&&a(this)!==S?s(new b,i?a(this):S):new y:(r=i?this:c(S),l(r,m,"Error")),void 0!==n&&l(r,"message",d(n)),h(r,A,r.stack,1),l(r,"error",t),l(r,"suppressed",e),r};s?s(A,b):u(A,b,{name:!0});var S=A.prototype=k?y.prototype:c(b.prototype,{constructor:f(1,A),message:f(1,""),name:f(1,"SuppressedError")});k&&!g&&(S.constructor=A),r({global:!0,constructor:!0,arity:3,forced:k},{SuppressedError:A})},89195:function(t,e,n){"use strict";var r=n(46518),i=n(77240);r({target:"String",proto:!0,forced:n(23061)("small")},{small:function(){return i(this,"small","","")}})},89228:function(t,e,n){"use strict";n(27495);var r=n(69565),i=n(36840),o=n(57323),a=n(79039),s=n(78227),u=n(66699),c=s("species"),l=RegExp.prototype;t.exports=function(t,e,n,f){var h=s(t),d=!a((function(){var e={};return e[h]=function(){return 7},7!==""[t](e)})),p=d&&!a((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[c]=function(){return n},n.flags="",n[h]=/./[h]),n.exec=function(){return e=!0,null},n[h](""),!e}));if(!d||!p||n){var v=/./[h],g=e(h,""[t],(function(t,e,n,i,a){var s=e.exec;return s===o||s===l.exec?d&&!a?{done:!0,value:r(v,e,n,i)}:{done:!0,value:r(t,n,e,i)}:{done:!1}}));i(String.prototype,t,g[0]),i(l,h,g[1])}f&&u(l[h],"sham",!0)}},89286:function(t,e,n){"use strict";var r=n(94402),i=n(38469),o=r.Set,a=r.add;t.exports=function(t){var e=new o;return i(t,(function(t){a(e,t)})),e}},89394:function(t,e,n){"use strict";n.d(e,{A:function(){return s}});var r=n(64243),i=n(73893),o=n(27800),a=n(60519);function s(t){return(0,r.A)(t)||(0,i.A)(t)||(0,o.A)(t)||(0,a.A)()}},89429:function(t,e,n){"use strict";var r=n(44576),i=n(38574);t.exports=function(t){if(i){try{return r.process.getBuiltinModule(t)}catch(t){}try{return Function('return require("'+t+'")')()}catch(t){}}}},89463:function(t,e,n){"use strict";var r=n(46518),i=n(43724),o=n(44576),a=n(79504),s=n(39297),u=n(94901),c=n(1625),l=n(655),f=n(62106),h=n(77740),d=o.Symbol,p=d&&d.prototype;if(i&&u(d)&&(!("description"in p)||void 0!==d().description)){var v={},g=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:l(arguments[0]),e=c(p,this)?new d(t):void 0===t?d():d(t);return""===t&&(v[e]=!0),e};h(g,d),g.prototype=p,p.constructor=g;var y="Symbol(description detection)"===String(d("description detection")),m=a(p.valueOf),b=a(p.toString),w=/^Symbol\((.*)\)[^)]+$/,x=a("".replace),k=a("".slice);f(p,"description",{configurable:!0,get:function(){var t=m(this);if(s(v,t))return"";var e=b(t),n=y?k(e,7,-1):x(e,w,"$1");return""===n?void 0:n}}),r({global:!0,constructor:!0,forced:!0},{Symbol:g})}},89544:function(t,e,n){"use strict";var r=n(82839);t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},89572:function(t,e,n){"use strict";var r=n(39297),i=n(36840),o=n(53640),a=n(78227)("toPrimitive"),s=Date.prototype;r(s,a)||i(s,a,o)},89907:function(t,e,n){"use strict";var r=n(46518),i=n(77240);r({target:"String",proto:!0,forced:n(23061)("anchor")},{anchor:function(t){return i(this,"a","name",t)}})},89955:function(t,e,n){"use strict";var r=n(94644),i=n(59213).findIndex,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("findIndex",(function(t){return i(o(this),t,arguments.length>1?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=[];E<s.length;){x.lastIndex=y?0:E;var _,O=p(x,y?w(s,E):s);if(null===O||(_=m(f(x.lastIndex+(y?E:0)),s.length))===S)E=l(s,E,v);else{if(b(T,w(s,S,E)),T.length===A)return T;for(var M=1;M<=O.length-1;M++)if(b(T,O[M]),T.length===A)return T;E=S=_}}return b(T,w(s,S)),T}]}),k||!x,y)},90757:function(t){"use strict";t.exports=function(t,e){try{1===arguments.length?console.error(t):console.error(t,e)}catch(t){}}},90906:function(t,e,n){"use strict";n(27495);var r,i,o=n(46518),a=n(69565),s=n(94901),u=n(28551),c=n(655),l=(r=!1,(i=/[ac]/).exec=function(){return r=!0,/./.exec.apply(this,arguments)},!0===i.test("abc")&&r),f=/./.test;o({target:"RegExp",proto:!0,forced:!l},{test:function(t){var e=u(this),n=c(t),r=e.exec;if(!s(r))return a(f,e,n);var i=a(r,e,n);return null!==i&&(u(i),!0)}})},91021:function(t,e,n){"use strict";var r=n(97751),i=n(69565),o=n(79504),a=n(76080),s=n(28551),u=n(79306),c=n(64117),l=n(55966),f=n(78227),h=f("asyncDispose"),d=f("dispose"),p=o([].push),v=function(t,e,n){return arguments.length<3&&!c(t)&&(n=u(function(t,e){if("async-dispose"===e){var n=l(t,h);return void 0!==n||void 0===(n=l(t,d))?n:function(){var t=this;return new(r("Promise"))((function(e){i(n,t),e(void 0)}))}}return l(t,d)}(s(t),e))),void 0===n?function(){}:a(n,t)};t.exports=function(t,e,n,r){var i;if(arguments.length<4){if(c(e)&&"sync-dispose"===n)return;i=v(e,n)}else i=v(void 0,n,r);p(t.stack,i)}},91134:function(t,e,n){"use strict";var r=n(94644),i=n(43839).findLastIndex,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("findLastIndex",(function(t){return i(o(this),t,arguments.length>1?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;h<u;h++)f[h]=arguments[h];return n=this,i=e,s=[].concat(f),i=(0,a.A)(i),function(t,e){(function(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t,e),e.add(t)}(t=(0,o.A)(n,l()?Reflect.construct(i,s||[],(0,a.A)(n).constructor):i.apply(n,s)),m),(0,c.A)(t,"detectFootnotes",!0),t}return(0,s.A)(e,t),(0,i.A)(e,[{key:"handle",value:function(t,e){var n=this,r=e.detail,i=r.a,o=r.href,a=function(t){var e=h(t),n=d(t);return{yes:g.some((function(t){return n.has(t)}))||v.some((function(t){return e.has(t)})),maybe:function(){return!e.has("backlink")&&!n.has("doc-backlink")&&(p(t)||1===t.children.length&&p(t.children[0])||p(t.parentElement))}}}(i),s=a.yes,u=a.maybe;return s?(e.preventDefault(),Promise.resolve(t.resolveHref(o)).then((function(e){return f(m,n,w).call(n,t,e,o)}))):this.detectFootnotes&&u()?(e.preventDefault(),Promise.resolve(t.resolveHref(o)).then((function(e){var r=e.index,i=e.anchor,a={index:r,anchor:function(t){return function(t,e){for(var n=e(t),r=n;n.matches(y);){var i=n.parentElement;if(!i)break;n=i}if(n===t.body){var o=r.nextElementSibling;if(o&&!o.matches(y))return o;throw new Error("Failed to extract footnote")}return n}(t,i)}};return f(m,n,w).call(n,t,a,o)}))):void 0}}])}((0,u.A)(EventTarget));function w(t,e,n){var r=this,i=e.index,o=e.anchor,a=document.createElement("foliate-view");return new Promise((function(e,s){a.addEventListener("load",(function(t){try{var i,u=t.detail.doc,c=o(u),l=function(t){var e=h(t),n=d(t);return n.has("doc-biblioentry")||e.has("biblioentry")?"biblioentry":n.has("definition")||e.has("glossdef")?"definition":n.has("doc-endnote")||e.has("endnote")||e.has("rearnote")?"endnote":n.has("doc-footnote")||e.has("footnote")?"footnote":n.has("note")||e.has("note")?"note":null}(c),f=(null==c||null===(i=c.matches)||void 0===i?void 0:i.call(c,"aside"))&&"footnote"===l;if(c){var p=c.startContainer?c:u.createRange();c.startContainer||(c.matches("li, aside")?p.selectNodeContents(c):p.selectNode(c));var v=p.extractContents();u.body.replaceChildren(),u.body.appendChild(v)}var g={view:a,href:n,type:l,hidden:f,target:c};r.dispatchEvent(new CustomEvent("render",{detail:g})),e()}catch(t){s(t)}})),a.open(t).then((function(){return r.dispatchEvent(new CustomEvent("before-render",{detail:{view:a}}))})).then((function(){return a.goTo(i)})).catch(s)}))}},92744:function(t,e,n){"use strict";var r=n(79039);t.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},92796:function(t,e,n){"use strict";var r=n(79039),i=n(94901),o=/#|\.prototype\./,a=function(t,e){var n=u[s(t)];return n===l||n!==c&&(i(e)?r(e):!!e)},s=a.normalize=function(t){return String(t).replace(o,".").toLowerCase()},u=a.data={},c=a.NATIVE="N",l=a.POLYFILL="P";t.exports=a},92804:function(t){"use strict";var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=e+"+/",r=e+"-_",i=function(t){for(var e={},n=0;n<64;n++)e[t.charAt(n)]=n;return e};t.exports={i2c:n,c2i:i(n),i2cUrl:r,c2iUrl:i(r)}},92901:function(t,e,n){"use strict";n.d(e,{A:function(){return o}});var r=n(49922);function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,(0,r.A)(i.key),i)}}function o(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}},93153:function(t,e,n){"use strict";var r=n(46518),i=n(7740),o=Math.acosh,a=Math.log,s=Math.sqrt,u=Math.LN2;r({target:"Math",stat:!0,forced:!o||710!==Math.floor(o(Number.MAX_VALUE))||o(1/0)!==1/0},{acosh:function(t){var e=+t;return e<1?NaN:e>94906265.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<S;E++)x(A,E,w(k,E))}return l||c(t),r}},96045:function(t,e,n){"use strict";n.d(e,{A:function(){return i}});var r=n(80966);function i(){return i="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var i=(0,r.A)(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},i.apply(null,arguments)}},96069:function(t,e,n){"use strict";var r=n(46518),i=n(79504),o=n(63463),a=n(39297),s=n(60533).start,u=n(47452),c=Array,l=RegExp.escape,f=i("".charAt),h=i("".charCodeAt),d=i(1.1.toString),p=i([].join),v=/^[0-9a-z]/i,g=/^[$()*+./?[\\\]^{|}]/,y=RegExp("^[!\"#%&',\\-:;<=>@`~"+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<e;r++){var i=f(t,r);if(0===r&&m(v,i))n[r]=w(i);else if(a(b,i))n[r]="\\"+b[i];else if(m(g,i))n[r]="\\"+i;else if(m(y,i))n[r]=w(i);else{var s=h(i,0);55296!=(63488&s)?n[r]=i:s>=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;r<e;){var i=Y(t,r);if("%"===i){if("%"===Y(t,r+1)||r+3>e){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+="<22>",r++;continue}for(var s=[o],u=1;u<a&&!(3+ ++r>e||"%"!==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+="<22>";continue}var l=ut(s);null===l?n+="<22>":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;o<i.length;)(e=i[o++]).length&&(n=et(e,"="),J(r,{key:ct(Q(n)),value:ct(K(n,"="))}))},serialize:function(){for(var t,e=this.entries,n=[],r=0;r<e.length;)t=e[r++],J(n,dt(t.key)+"="+dt(t.value));return K(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var gt=function(){y(this,yt);var t=F(this,new vt(arguments.length>0?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;s<r.length;){var u=r[s];if(u.key!==i||void 0!==a&&u.value!==a)s++;else if(tt(r,s,1),void 0!==a)break}c||(this.size=r.length),e.updateURL()},get:function(t){var e=N(this).entries;C(arguments.length,1);for(var n=S(t),r=0;r<e.length;r++)if(e[r].key===n)return e[r].value;return null},getAll:function(t){var e=N(this).entries;C(arguments.length,1);for(var n=S(t),r=[],i=0;i<e.length;i++)e[i].key===n&&J(r,e[i].value);return r},has:function(t){for(var e=N(this).entries,n=C(arguments.length,1),r=S(t),i=n<2?void 0:arguments[1],o=void 0===i?i:S(i),a=0;a<e.length;){var s=e[a++];if(s.key===r&&(void 0===o||s.value===o))return!0}return!1},set:function(t,e){var n=N(this);C(arguments.length,1);for(var r,i=n.entries,o=!1,a=S(t),s=S(e),u=0;u<i.length;u++)(r=i[u]).key===a&&(o?tt(i,u--,1):(o=!0,r.value=s));o||J(i,{key:a,value:s}),c||(this.size=i.length),n.updateURL()},sort:function(){var t=N(this);R(t.entries,(function(t,e){return t.key>e.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;i<n.length;)r((e=n[i++]).value,e.key,this)},keys:function(){return new pt(this,"keys")},values:function(){return new pt(this,"values")},entries:function(){return new pt(this,"entries")}},{enumerable:!0}),f(yt,I,yt.entries,{name:"entries"}),f(yt,"toString",(function(){return N(this).serialize()}),{enumerable:!0}),c&&h(yt,"size",{get:function(){return N(this).entries.length},configurable:!0,enumerable:!0}),p(gt,P),r({global:!0,constructor:!0,forced:!l},{URLSearchParams:gt}),!l&&m(U)){var mt=u(H.has),bt=u(H.set),wt=function(t){if(A(t)){var e,n=t.body;if(x(n)===P)return e=t.headers?new U(t.headers):new U,mt(e,"content-type")||bt(e,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),E(t,{body:T(0,S(n)),headers:T(0,e)})}return t};if(m(B)&&r({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(t){return B(t,arguments.length>1?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}()}));