123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123 |
- // ==UserScript==
- // @namespace ame-applemusic
- // @name Ame (Apple Music)
- // @version 1.4.3
- // @author SuperSaltyGamer
- // @run-at document-start
- // @match https://music.apple.com/*
- // @grant GM.addStyle
- // @grant GM.setClipboard
- // @grant GM.xmlHttpRequest
- // @downloadURL https://notabug.org/SuperSaltyGamer/ame/raw/main/dist/applemusic.user.js
- // @updateURL https://notabug.org/SuperSaltyGamer/ame/raw/main/dist/applemusic.user.js
- // ==/UserScript==
- (function(ke){typeof define=="function"&&define.amd?define(ke):ke()})(function(){"use strict";const ke=new Map;function be(x,C){return new Promise((a,y)=>{const p=ke.get(x);if(p){a(p.clone());return}GM.xmlHttpRequest({method:(C==null?void 0:C.method)??"GET",url:x,headers:Object.fromEntries(new Headers(C==null?void 0:C.headers)),responseType:"blob",onload(i){if(i.status!==404&&(i.status<200||i.status>299)){y(new Error(`Fetching "${x}" responded with an erroneous status code.`));return}const o=i.responseHeaders.split(`\r
- `).slice(0,-1).map(l=>l.split(": ")),n=new Response(i.response,{headers:Object.fromEntries(o),status:i.status,statusText:i.statusText});Object.defineProperty(n,"url",{value:x}),ke.set(x,n.clone()),a(n)},onerror(){y(new TypeError("Network request errored."))},ontimeout(){y(new TypeError("Network request timed out."))}})})}function mt(x){for(var C=[],a=0;a<x.length;){var y=x[a];if(y==="*"||y==="+"||y==="?"){C.push({type:"MODIFIER",index:a,value:x[a++]});continue}if(y==="\\"){C.push({type:"ESCAPED_CHAR",index:a++,value:x[a++]});continue}if(y==="{"){C.push({type:"OPEN",index:a,value:x[a++]});continue}if(y==="}"){C.push({type:"CLOSE",index:a,value:x[a++]});continue}if(y===":"){for(var p="",i=a+1;i<x.length;){var o=x.charCodeAt(i);if(o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122||o===95){p+=x[i++];continue}break}if(!p)throw new TypeError("Missing parameter name at ".concat(a));C.push({type:"NAME",index:a,value:p}),a=i;continue}if(y==="("){var n=1,l="",i=a+1;if(x[i]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(i));for(;i<x.length;){if(x[i]==="\\"){l+=x[i++]+x[i++];continue}if(x[i]===")"){if(n--,n===0){i++;break}}else if(x[i]==="("&&(n++,x[i+1]!=="?"))throw new TypeError("Capturing groups are not allowed at ".concat(i));l+=x[i++]}if(n)throw new TypeError("Unbalanced pattern at ".concat(a));if(!l)throw new TypeError("Missing pattern at ".concat(a));C.push({type:"PATTERN",index:a,value:l}),a=i;continue}C.push({type:"CHAR",index:a,value:x[a++]})}return C.push({type:"END",index:a,value:""}),C}function vt(x,C){C===void 0&&(C={});for(var a=mt(x),y=C.prefixes,p=y===void 0?"./":y,i="[^".concat(we(C.delimiter||"/#?"),"]+?"),o=[],n=0,l=0,_="",w=function(Z){if(l<a.length&&a[l].type===Z)return a[l++].value},b=function(Z){var B=w(Z);if(B!==void 0)return B;var P=a[l],R=P.type,H=P.index;throw new TypeError("Unexpected ".concat(R," at ").concat(H,", expected ").concat(Z))},u=function(){for(var Z="",B;B=w("CHAR")||w("ESCAPED_CHAR");)Z+=B;return Z};l<a.length;){var r=w("CHAR"),f=w("NAME"),m=w("PATTERN");if(f||m){var s=r||"";p.indexOf(s)===-1&&(_+=s,s=""),_&&(o.push(_),_=""),o.push({name:f||n++,prefix:s,suffix:"",pattern:m||i,modifier:w("MODIFIER")||""});continue}var c=r||w("ESCAPED_CHAR");if(c){_+=c;continue}_&&(o.push(_),_="");var d=w("OPEN");if(d){var s=u(),g=w("NAME")||"",A=w("PATTERN")||"",E=u();b("CLOSE"),o.push({name:g||(A?n++:""),pattern:g&&!A?i:A,prefix:s,suffix:E,modifier:w("MODIFIER")||""});continue}b("END")}return o}function _t(x,C){var a=[],y=Ge(x,a,C);return gt(y,a,C)}function gt(x,C,a){a===void 0&&(a={});var y=a.decode,p=y===void 0?function(i){return i}:y;return function(i){var o=x.exec(i);if(!o)return!1;for(var n=o[0],l=o.index,_=Object.create(null),w=function(u){if(o[u]===void 0)return"continue";var r=C[u-1];r.modifier==="*"||r.modifier==="+"?_[r.name]=o[u].split(r.prefix+r.suffix).map(function(f){return p(f,r)}):_[r.name]=p(o[u],r)},b=1;b<o.length;b++)w(b);return{path:n,index:l,params:_}}}function we(x){return x.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function $e(x){return x&&x.sensitive?"":"i"}function bt(x,C){if(!C)return x;for(var a=/\((?:\?<(.*?)>)?(?!\?)/g,y=0,p=a.exec(x.source);p;)C.push({name:p[1]||y++,prefix:"",suffix:"",modifier:"",pattern:""}),p=a.exec(x.source);return x}function wt(x,C,a){var y=x.map(function(p){return Ge(p,C,a).source});return new RegExp("(?:".concat(y.join("|"),")"),$e(a))}function yt(x,C,a){return kt(vt(x,a),C,a)}function kt(x,C,a){a===void 0&&(a={});for(var y=a.strict,p=y===void 0?!1:y,i=a.start,o=i===void 0?!0:i,n=a.end,l=n===void 0?!0:n,_=a.encode,w=_===void 0?function(H){return H}:_,b=a.delimiter,u=b===void 0?"/#?":b,r=a.endsWith,f=r===void 0?"":r,m="[".concat(we(f),"]|$"),s="[".concat(we(u),"]"),c=o?"^":"",d=0,g=x;d<g.length;d++){var A=g[d];if(typeof A=="string")c+=we(w(A));else{var E=we(w(A.prefix)),Z=we(w(A.suffix));if(A.pattern)if(C&&C.push(A),E||Z)if(A.modifier==="+"||A.modifier==="*"){var B=A.modifier==="*"?"?":"";c+="(?:".concat(E,"((?:").concat(A.pattern,")(?:").concat(Z).concat(E,"(?:").concat(A.pattern,"))*)").concat(Z,")").concat(B)}else c+="(?:".concat(E,"(").concat(A.pattern,")").concat(Z,")").concat(A.modifier);else A.modifier==="+"||A.modifier==="*"?c+="((?:".concat(A.pattern,")").concat(A.modifier,")"):c+="(".concat(A.pattern,")").concat(A.modifier);else c+="(?:".concat(E).concat(Z,")").concat(A.modifier)}}if(l)p||(c+="".concat(s,"?")),c+=a.endsWith?"(?=".concat(m,")"):"$";else{var P=x[x.length-1],R=typeof P=="string"?s.indexOf(P[P.length-1])>-1:P===void 0;p||(c+="(?:".concat(s,"(?=").concat(m,"))?")),R||(c+="(?=".concat(s,"|").concat(m,")"))}return new RegExp(c,$e(a))}function Ge(x,C,a){return x instanceof RegExp?bt(x,C):Array.isArray(x)?wt(x,C,a):yt(x,C,a)}let _e=unsafeWindow;_e.wrappedJSObject&&(_e=_e.wrappedJSObject);const xt=typeof cloneInto=="function"?cloneInto:x=>x,Et=typeof exportFunction=="function"?exportFunction:x=>x;function At(x){return xt(x,_e,{cloneFunctions:!0,wrapReflectors:!0})}function St(x){return Et(x,_e)}function Ct(x,C){return C??(C=_e),function(...a){return x.call(C,...At(a))}}const Pe=[],zt=Ct(_e.history.pushState,_e.history);_e.history.pushState=St(Tt);function Tt(x,C,a){zt(x,C,a),Xe()}addEventListener("popstate",()=>{Xe()});function Xe(){for(const x of Pe){const C=x.matcher(location.pathname)?x.onCallbacks:x.offCallbacks;for(const a of C)a()}}function Ye(x){let C=Pe.find(a=>a.pattern===x);return C||(C={pattern:x,matcher:_t(x),onCallbacks:[],offCallbacks:[]},Pe.push(C),C)}function It(x,C,a=!1){const y=Ye(x),p=y.matcher(location.pathname);y.onCallbacks.push(C),p&&C()}function Ot(x,C,a=!1){const y=Ye(x),p=y.matcher(location.pathname);y.offCallbacks.push(C),p||C()}function xe(x){return new Promise(C=>{setTimeout(C,x)})}function Rt(x,C){const a=URL.createObjectURL(x),y=document.createElement("a");y.style.display="none",y.download=C,y.href=a,document.body.appendChild(y),y.click(),URL.revokeObjectURL(a)}function he(x){const C=document.createElement("div");return C.innerHTML=x,C.firstElementChild}function ye(x,C,a=5e3,y=document){return new Promise(p=>{let i=0,o=0;i=setTimeout(()=>{clearInterval(o),p(null)},a),o=setInterval(()=>{let n=y.querySelector(C??x);n&&(C&&(n=y.querySelector(x),!n)||(p(n),clearTimeout(i),clearInterval(o)))},10)})}function Zt(x,C){new MutationObserver(y=>{for(const p of y)for(const i of Array.from(p.addedNodes))if(i instanceof Element&&i.matches(x)){C(i);return}}).observe(document.body,{childList:!0,subtree:!0})}const Ke="/:country/album/:slug?/:id";function Ee(x,C=!1){It(Ke,x,C)}function Ue(x,C=!1){Ot(Ke,x,C)}let Ae=null;function Te(x,C){return he(`
- <div class="navigation__native-cta ame-sidebar-button">
- <div slot="native-cta">
- <div data-testid="native-cta" class="native-cta">
- <button class="native-cta__button" data-testid="native-cta-button">
- <span class="native-cta__app-icon">
- ${C}
- </span>
- <span class="native-cta__label">${x}</span>
- </button>
- </div>
- </div>
- </div>
- `)}async function Ie(x,C){if(!Ae&&(Ae=await ye("nav","amp-chrome-player"),!Ae))return;const a=Array.from(Ae.querySelectorAll(".ame-sidebar-button"));if(x.setAttribute("data-index",C.toString()),a.length===0){Ae.append(x);return}let y=Number.MAX_VALUE,p=a[0];for(const i of a){const o=Math.abs(Number(i.getAttribute("data-index"))-C);o>=y||(y=o,p=i)}C>Number(p.getAttribute("data-index"))?p.after(x):p.before(x)}async function Qe(x){x.remove()}const Bt=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 78 20" height="32">
- <defs>
- <clipPath id="a">
- <path d="M43.15 3.42a1.294 1.294 0 0 0-1.119.665 1.29 1.29 0 0 0-.161.655h2.5a1.206 1.206 0 0 0-.577-1.144 1.205 1.205 0 0 0-.643-.176ZM25 2.27h-.08l-1 2.79h2Zm11.1 1.2c-.83 0-1.34.66-1.34 1.71 0 1.05.51 1.71 1.34 1.71.83 0 1.33-.64 1.33-1.71 0-1.07-.55-1.71-1.38-1.71Zm-5.34 0c-.83 0-1.34.66-1.34 1.71 0 1.05.51 1.71 1.33 1.71.82 0 1.25-.64 1.25-1.71 0-1.07-.46-1.71-1.29-1.71Zm-5.29-2.36 2.38 6.53h-1.09l-.6-1.77h-2.51l-.6 1.77H22l2.37-6.53ZM40.12.8v6.84h-1V.8Zm3 1.83a2.172 2.172 0 0 1 2.21 2.48v.33h-3.5a1.327 1.327 0 0 0 .617 1.262c.211.131.455.199.703.198a1.183 1.183 0 0 0 1.18-.62h.94a1.999 1.999 0 0 1-2.15 1.41 2.245 2.245 0 0 1-2.093-1.276 2.238 2.238 0 0 1-.197-1.264 2.282 2.282 0 0 1 2.33-2.52ZM31 2.64c1.26 0 2.06 1 2.06 2.54S32.24 7.72 31 7.72a1.617 1.617 0 0 1-1.53-.82h-.07v2.37h-1V2.73h.94v.81h.07a1.738 1.738 0 0 1 1.59-.9Zm5.34 0c1.27 0 2.06 1 2.06 2.54s-.79 2.54-2.05 2.54a1.61 1.61 0 0 1-1.52-.82h-.08v2.37h-1V2.73h.94v.81h.07a1.753 1.753 0 0 1 1.56-.9Zm.26 8.27a.621.621 0 0 1 .557.893.625.625 0 0 1-.702.33.621.621 0 0 1 .125-1.223Zm-7.3 0a.621.621 0 0 1 .557.893.625.625 0 0 1-.702.33.621.621 0 0 1 .125-1.223Zm43 2.8A1.278 1.278 0 0 0 71 15h2.5a1.203 1.203 0 0 0-.587-1.119 1.214 1.214 0 0 0-.633-.171Zm-39.46 0c-.85 0-1.32.64-1.32 1.64 0 1 .47 1.65 1.32 1.65.85 0 1.34-.64 1.34-1.65 0-1.01-.53-1.59-1.36-1.59Zm-8-1.49h-1.31V17h1.24c1.37 0 2.17-.87 2.17-2.39a2.099 2.099 0 0 0-.2-1.177 2.096 2.096 0 0 0-1.97-1.163Zm36 3.41-1.21.09c-.68 0-1 .28-1 .73 0 .45.39.72.92.72a1.17 1.17 0 0 0 1.28-1.11ZM44 15.68l-1.21.09c-.68 0-1 .28-1 .73 0 .45.39.72.92.72A1.168 1.168 0 0 0 44 16.11ZM24.88 11.4a2.894 2.894 0 0 1 2.83 1.572c.261.515.362 1.096.29 1.668 0 2.08-1.13 3.28-3.09 3.28h-2.4V11.4Zm4.89 1.6v4.91h-1V13Zm21.58-1.6 2.09 5.1h.08l2.1-5.1h1.19v6.52h-1v-4.78h-.01l-1.93 4.67h-.77l-1.93-4.67h-.06v4.78h-1V11.4ZM47 11.09v6.83h-1v-6.83ZM37.07 13v4.91h-1V13Zm40.49-.08c.149.015.296.041.44.08v.92a2.427 2.427 0 0 0-.55-.06 1.174 1.174 0 0 0-1.079.541 1.165 1.165 0 0 0-.181.599v2.93h-1V13h.94v.75h.07a1.34 1.34 0 0 1 1.36-.82Zm-38.19-1.15V13h1.07v.77h-1.07v2.6c0 .52.21.75.7.75.123.011.247.011.37 0v.78a4.26 4.26 0 0 1-.53 0c-1.09 0-1.52-.37-1.52-1.32V13.8h-.79V13h.79v-1.23Zm29.17 0V13h1.07v.77h-1.07v2.6c0 .52.21.75.7.75.123.011.247.011.37 0v.78a4.26 4.26 0 0 1-.53 0c-1.09 0-1.52-.37-1.52-1.32V13.8h-.79V13h.79v-1.23Zm-8.73 1.15c1.25 0 1.95.61 1.95 1.64v3.36h-.94v-.69h-.08a1.678 1.678 0 0 1-1.49.77 1.493 1.493 0 0 1-1.424-.675 1.497 1.497 0 0 1-.236-.785c0-.88.67-1.39 1.85-1.47l1.34-.07v-.43c0-.53-.34-.84-1-.84-.66 0-.93.21-1 .56h-.94c.05-.83.85-1.37 1.97-1.37Zm-16.75 0c1.25 0 1.95.61 1.95 1.64v3.36h-.94v-.69H44a1.682 1.682 0 0 1-1.5.77 1.493 1.493 0 0 1-1.424-.675 1.497 1.497 0 0 1-.236-.785c0-.88.67-1.39 1.85-1.47L44 15v-.43c0-.53-.34-.84-1-.84-.66 0-.93.21-1 .56h-1c.14-.83.94-1.37 2.06-1.37Zm21.44 0c1.12 0 1.84.51 1.94 1.36h-.94c-.09-.36-.44-.6-1-.6s-1 .26-1 .66.25.49.79.62l.82.19c.94.22 1.39.62 1.39 1.34 0 .91-.87 1.53-2.06 1.53s-2-.53-2-1.39h1c.082.212.233.39.429.505.197.114.426.158.651.125.61 0 1-.28 1-.68s-.23-.51-.73-.63l-.87-.2c-.94-.22-1.38-.63-1.38-1.36 0-.73.84-1.47 1.96-1.47Zm7.79 0a2.158 2.158 0 0 1 2.21 2.47v.34H71a1.326 1.326 0 0 0 .62 1.253c.21.13.453.198.7.197a1.174 1.174 0 0 0 1.18-.61h.94A2 2 0 0 1 72.29 18a2.237 2.237 0 0 1-2.085-1.265A2.245 2.245 0 0 1 70 15.48a2.29 2.29 0 0 1 .205-1.263 2.28 2.28 0 0 1 2.085-1.297Zm-39.74 0a1.73 1.73 0 0 1 1.56.86h.07V13h.94v5c0 1.12-.89 1.83-2.29 1.83-1.24 0-2-.55-2.15-1.37h1c.08.37.49.6 1.15.6.82 0 1.3-.4 1.3-1.06v-1h-.07a1.665 1.665 0 0 1-.647.632 1.667 1.667 0 0 1-.883.198c-1.27 0-2.05-1-2.05-2.45 0-1.45.8-2.45 2.07-2.45ZM0 0"/>
- </clipPath>
- </defs>
- <path d="M17.48 1.22A2.78 2.78 0 0 1 19 3.88v11.25a2.722 2.722 0 0 1-1.34 2.59 2.204 2.204 0 0 1-1.1.28 4.2 4.2 0 0 1-2.68-1.24l-4.24-3.38a.81.81 0 0 1-.295-.757.805.805 0 0 1 .175-.383.84.84 0 0 1 1.16-.12l4.25 3.4c.81.69 1.52 1 1.9.77.14-.08.5-.28.5-1.18V3.88a1.229 1.229 0 0 0-.56-1.19c-.79-.36-1.72.63-2.08 1.07-.55.59-2.34 2.94-4.18 5.39l-.62.85-1.58 2.11c-1.52 2-2.84 3.81-3.31 4.38-1.23 1.7-2.47 1.66-3.29 1.33A2.998 2.998 0 0 1 0 14.76V9.59a2.785 2.785 0 0 1 1.45-2.78 3.084 3.084 0 0 1 3.42.83L6.47 9a.805.805 0 0 1 .28.761.795.795 0 0 1-.18.379.832.832 0 0 1-1.16.09L3.8 8.87c-1-.9-1.43-.71-1.62-.62-.19.09-.52.26-.53 1.35v5.16c0 .48.09 1.32.68 1.56.17.07.6.24 1.34-.78C4.13 15 5.45 13.2 7 11.15L7.85 10l.65-.87c2.16-2.89 4.25-5.65 4.94-6.4C15.26.54 16.87 1 17.48 1.22ZM43.15 3.42a1.294 1.294 0 0 0-1.119.665 1.29 1.29 0 0 0-.161.655h2.5a1.206 1.206 0 0 0-.577-1.144 1.205 1.205 0 0 0-.643-.176ZM25 2.27h-.08l-1 2.79h2Zm11.1 1.2c-.83 0-1.34.66-1.34 1.71 0 1.05.51 1.71 1.34 1.71.83 0 1.33-.64 1.33-1.71 0-1.07-.55-1.71-1.38-1.71Zm-5.34 0c-.83 0-1.34.66-1.34 1.71 0 1.05.51 1.71 1.33 1.71.82 0 1.25-.64 1.25-1.71 0-1.07-.46-1.71-1.29-1.71Zm-5.29-2.36 2.38 6.53h-1.09l-.6-1.77h-2.51l-.6 1.77H22l2.37-6.53ZM40.12.8v6.84h-1V.8Zm3 1.83a2.172 2.172 0 0 1 2.21 2.48v.33h-3.5a1.327 1.327 0 0 0 .617 1.262c.211.131.455.199.703.198a1.183 1.183 0 0 0 1.18-.62h.94a1.999 1.999 0 0 1-2.15 1.41 2.245 2.245 0 0 1-2.093-1.276 2.238 2.238 0 0 1-.197-1.264 2.282 2.282 0 0 1 2.33-2.52ZM31 2.64c1.26 0 2.06 1 2.06 2.54S32.24 7.72 31 7.72a1.617 1.617 0 0 1-1.53-.82h-.07v2.37h-1V2.73h.94v.81h.07a1.738 1.738 0 0 1 1.59-.9Zm5.34 0c1.27 0 2.06 1 2.06 2.54s-.79 2.54-2.05 2.54a1.61 1.61 0 0 1-1.52-.82h-.08v2.37h-1V2.73h.94v.81h.07a1.753 1.753 0 0 1 1.56-.9Zm.26 8.27a.621.621 0 0 1 .557.893.625.625 0 0 1-.702.33.621.621 0 0 1 .125-1.223Zm-7.3 0a.621.621 0 0 1 .557.893.625.625 0 0 1-.702.33.621.621 0 0 1 .125-1.223Zm43 2.8A1.278 1.278 0 0 0 71 15h2.5a1.203 1.203 0 0 0-.587-1.119 1.214 1.214 0 0 0-.633-.171Zm-39.46 0c-.85 0-1.32.64-1.32 1.64 0 1 .47 1.65 1.32 1.65.85 0 1.34-.64 1.34-1.65 0-1.01-.53-1.59-1.36-1.59Zm-8-1.49h-1.31V17h1.24c1.37 0 2.17-.87 2.17-2.39a2.099 2.099 0 0 0-.2-1.177 2.096 2.096 0 0 0-1.97-1.163Zm36 3.41-1.21.09c-.68 0-1 .28-1 .73 0 .45.39.72.92.72a1.17 1.17 0 0 0 1.28-1.11ZM44 15.68l-1.21.09c-.68 0-1 .28-1 .73 0 .45.39.72.92.72A1.168 1.168 0 0 0 44 16.11ZM24.88 11.4a2.894 2.894 0 0 1 2.83 1.572c.261.515.362 1.096.29 1.668 0 2.08-1.13 3.28-3.09 3.28h-2.4V11.4Zm4.89 1.6v4.91h-1V13Zm21.58-1.6 2.09 5.1h.08l2.1-5.1h1.19v6.52h-1v-4.78h-.01l-1.93 4.67h-.77l-1.93-4.67h-.06v4.78h-1V11.4ZM47 11.09v6.83h-1v-6.83ZM37.07 13v4.91h-1V13Zm40.49-.08c.149.015.296.041.44.08v.92a2.427 2.427 0 0 0-.55-.06 1.174 1.174 0 0 0-1.079.541 1.165 1.165 0 0 0-.181.599v2.93h-1V13h.94v.75h.07a1.34 1.34 0 0 1 1.36-.82Zm-38.19-1.15V13h1.07v.77h-1.07v2.6c0 .52.21.75.7.75.123.011.247.011.37 0v.78a4.26 4.26 0 0 1-.53 0c-1.09 0-1.52-.37-1.52-1.32V13.8h-.79V13h.79v-1.23Zm29.17 0V13h1.07v.77h-1.07v2.6c0 .52.21.75.7.75.123.011.247.011.37 0v.78a4.26 4.26 0 0 1-.53 0c-1.09 0-1.52-.37-1.52-1.32V13.8h-.79V13h.79v-1.23Zm-8.73 1.15c1.25 0 1.95.61 1.95 1.64v3.36h-.94v-.69h-.08a1.678 1.678 0 0 1-1.49.77 1.493 1.493 0 0 1-1.424-.675 1.497 1.497 0 0 1-.236-.785c0-.88.67-1.39 1.85-1.47l1.34-.07v-.43c0-.53-.34-.84-1-.84-.66 0-.93.21-1 .56h-.94c.05-.83.85-1.37 1.97-1.37Zm-16.75 0c1.25 0 1.95.61 1.95 1.64v3.36h-.94v-.69H44a1.682 1.682 0 0 1-1.5.77 1.493 1.493 0 0 1-1.424-.675 1.497 1.497 0 0 1-.236-.785c0-.88.67-1.39 1.85-1.47L44 15v-.43c0-.53-.34-.84-1-.84-.66 0-.93.21-1 .56h-1c.14-.83.94-1.37 2.06-1.37Zm21.44 0c1.12 0 1.84.51 1.94 1.36h-.94c-.09-.36-.44-.6-1-.6s-1 .26-1 .66.25.49.79.62l.82.19c.94.22 1.39.62 1.39 1.34 0 .91-.87 1.53-2.06 1.53s-2-.53-2-1.39h1c.082.212.233.39.429.505.197.114.426.158.651.125.61 0 1-.28 1-.68s-.23-.51-.73-.63l-.87-.2c-.94-.22-1.38-.63-1.38-1.36 0-.73.84-1.47 1.96-1.47Zm7.79 0a2.158 2.158 0 0 1 2.21 2.47v.34H71a1.326 1.326 0 0 0 .62 1.253c.21.13.453.198.7.197a1.174 1.174 0 0 0 1.18-.61h.94A2 2 0 0 1 72.29 18a2.237 2.237 0 0 1-2.085-1.265A2.245 2.245 0 0 1 70 15.48a2.29 2.29 0 0 1 .205-1.263 2.28 2.28 0 0 1 2.085-1.297Zm-39.74 0a1.73 1.73 0 0 1 1.56.86h.07V13h.94v5c0 1.12-.89 1.83-2.29 1.83-1.24 0-2-.55-2.15-1.37h1c.08.37.49.6 1.15.6.82 0 1.3-.4 1.3-1.06v-1h-.07a1.665 1.665 0 0 1-.647.632 1.667 1.667 0 0 1-.883.198c-1.27 0-2.05-1-2.05-2.45 0-1.45.8-2.45 2.07-2.45Z" fill-rule="evenodd" />
- <path clip-path="url(#a)" d="M-5-4.2h88v29H-5Z" />
- </svg>
- `,Nt=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 43 20" height="32">
- <path d="m11.418 12.526 2.344 5.44h-1.107l-.507-1.245H9.79l-.492 1.245H8.215l2.366-5.44h.837Zm6.521 0v.845h-1.668v4.595h-.968v-4.595h-1.667v-.845h4.303Zm2.721 0 1.413 3.865h.023l1.398-3.865h1.522v5.44h-.961v-4.372h-.015l-1.652 4.372h-.676l-1.628-4.372h-.016v4.372h-.922v-5.44h1.514Zm8.281.001c.405 0 .778.063 1.119.189.341.127.636.308.885.542.248.233.442.517.581.851.139.334.208.708.208 1.122 0 .405-.069.774-.208 1.108a2.57 2.57 0 0 1-.581.863 2.652 2.652 0 0 1-.885.563 3.034 3.034 0 0 1-1.119.201c-.399 0-.769-.067-1.107-.201a2.61 2.61 0 0 1-.878-.563 2.59 2.59 0 0 1-.577-.863 2.855 2.855 0 0 1-.208-1.108c0-.414.069-.788.208-1.122a2.453 2.453 0 0 1 1.455-1.393 3.15 3.15 0 0 1 1.107-.189Zm5.722.008c.262 0 .528.046.798.138.27.093.504.231.703.416l-.597.656a1.118 1.118 0 0 0-.412-.317 1.232 1.232 0 0 0-.857-.088.972.972 0 0 0-.291.124.682.682 0 0 0-.215.219.601.601 0 0 0-.084.324.576.576 0 0 0 .273.51c.085.059.189.11.31.153.122.044.255.088.401.132.165.053.337.114.514.182.177.068.34.158.488.269.148.112.27.253.365.423.094.17.142.382.142.634 0 .277-.051.519-.153.725a1.483 1.483 0 0 1-.409.514 1.74 1.74 0 0 1-.597.306 2.52 2.52 0 0 1-.722.102 2.71 2.71 0 0 1-.984-.186 1.895 1.895 0 0 1-.787-.55l.656-.612c.126.175.295.313.507.415.211.102.419.153.623.153.107 0 .216-.013.328-.04a.86.86 0 0 0 .302-.134.774.774 0 0 0 .219-.237.687.687 0 0 0 .084-.354.577.577 0 0 0-.095-.339.847.847 0 0 0-.255-.233 1.778 1.778 0 0 0-.379-.171l-.459-.153a4.663 4.663 0 0 1-.467-.175 1.55 1.55 0 0 1-.419-.27 1.29 1.29 0 0 1-.302-.412 1.4 1.4 0 0 1-.117-.608c0-.263.055-.489.164-.678.109-.189.253-.346.43-.47.178-.124.379-.216.605-.277.226-.061.456-.091.689-.091Zm-5.714.876a1.62 1.62 0 0 0-1.238.527c-.15.164-.266.356-.348.576-.082.221-.123.46-.123.718 0 .267.041.512.123.734.082.223.199.417.352.581.152.164.332.291.541.383.209.091.44.137.693.137.253 0 .485-.046.696-.137a1.61 1.61 0 0 0 .545-.383c.152-.164.269-.358.351-.581.082-.222.124-.467.124-.734 0-.258-.042-.497-.124-.718a1.763 1.763 0 0 0-.347-.576 1.627 1.627 0 0 0-.542-.387 1.707 1.707 0 0 0-.703-.14Zm-17.976.268-.853 2.212h1.69l-.837-2.212ZM38.017 3.527l1.55 3.484 1.549-3.484h1.3l-3.081 6.884a1.542 1.542 0 0 1-2.031.782l-.412-.184-.002-.001.148-.331.332-.747.171.076a.634.634 0 0 0 .837-.322l.003-.008.476-1.075.016-.035.044-.096-2.199-4.943h1.299ZM30.294 1.11v7.855h-1.189V1.11h1.189Zm2.192.001v2.905c.44-.308.976-.49 1.554-.49a2.722 2.722 0 0 1 2.719 2.719 2.722 2.722 0 0 1-2.719 2.718 2.702 2.702 0 0 1-1.554-.49v.492h-1.192V1.111h1.192Zm-6.869 2.415a2.72 2.72 0 0 1 2.718 2.718 2.72 2.72 0 0 1-2.718 2.719 2.721 2.721 0 0 1-2.719-2.719 2.72 2.72 0 0 1 2.719-2.718ZM3.157 1.109A3.93 3.93 0 0 1 7.08 5.032a3.93 3.93 0 0 1-3.923 3.923H2V1.109h1.157Zm10.005 0v7.846h-1.157a3.93 3.93 0 0 1-3.924-3.923 3.93 3.93 0 0 1 3.924-3.923h1.157Zm5.21 0a3.928 3.928 0 0 1 3.923 3.923 3.928 3.928 0 0 1-3.923 3.923h-2.834V1.109Zm7.245 3.486a1.64 1.64 0 0 0 0 3.278 1.64 1.64 0 0 0 1.639-1.639c0-.899-.74-1.639-1.639-1.639Zm8.423 0a1.64 1.64 0 0 0 0 3.279c.9 0 1.639-.73 1.639-1.639 0-.9-.739-1.64-1.639-1.64ZM18.372 2.299h-1.645v5.467h1.645a2.738 2.738 0 0 0 2.733-2.734 2.737 2.737 0 0 0-2.733-2.733Z" stroke="#00000000" fill-rule="evenodd" />
- </svg>
- `,Dt=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 20" height="32">
- <path d="M9.21 3.13c.131.166.249.344.35.53a7.554 7.554 0 0 0-.49.94c-.1-.2-.2-.4-.31-.59.134-.301.284-.595.45-.88ZM7.64 7.82c.08.25.17.51.25.77-.15.76-.25 1.46-.32 2a.204.204 0 0 1-.065.129.202.202 0 0 1-.135.051.21.21 0 0 1-.18-.23c.1-.75.25-1.72.45-2.72Zm-2-4.69c.135.166.255.343.36.53a19.651 19.651 0 0 0-2 7 .204.204 0 0 1-.065.129.202.202 0 0 1-.135.051.21.21 0 0 1-.18-.23c.29-2.12.8-5.43 2.01-7.48Zm13.23 4.92a.192.192 0 0 1 .159.118.187.187 0 0 1 .011.102C19 9.07 18.8 10 18.6 11l-.25-.77c.14-.76.25-1.46.32-2a.204.204 0 0 1 .065-.129.202.202 0 0 1 .135-.051Zm3.58 0a.206.206 0 0 1 .164.117c.014.032.02.068.016.103-.32 2.09-.83 5.4-2 7.45a5.451 5.451 0 0 1-.35-.53 19.87 19.87 0 0 0 2-7 .21.21 0 0 1 .064-.096.204.204 0 0 1 .106-.044Zm-5.28 6.21.3.59a7.082 7.082 0 0 1-.44.88 4.454 4.454 0 0 1-.35-.53c.179-.305.343-.618.49-.94Zm-8.64-13a2.895 2.895 0 0 1 1.75.62 4.1 4.1 0 0 1 .54.48c2.71 2.79 3.86 10.16 5.68 13.14.085.153.185.297.3.43a1.81 1.81 0 0 0 1.38.88c.19-.002.377-.043.55-.12.175.189.366.363.57.52a3 3 0 0 1-1.59.44A2.861 2.861 0 0 1 16 17a5.34 5.34 0 0 1-.55-.48c-2.7-2.8-3.85-10.16-5.67-13.14-.55-.9-1.26-1.58-2.23-1.19a4.765 4.765 0 0 0-.57-.53 3.003 3.003 0 0 1 1.55-.43Zm-4.06 0c6-.81 6.42 15.51 10.13 15.51.19-.002.377-.043.55-.12.173.192.363.366.57.52-.48.289-1.03.442-1.59.44C10.88 17.62 9.26 11.88 8 8c-.08-.26-.17-.51-.25-.76a19.99 19.99 0 0 0-1.6-3.87 4.491 4.491 0 0 0-.37-.53 1.53 1.53 0 0 0-2.36-.38C1.55 3.82.68 8.33.41 10.62a.211.211 0 0 1-.21.18.211.211 0 0 1-.2-.22C.41 8 1.08 3.57 3 1.92a2.878 2.878 0 0 1 1.47-.65Zm7.64 0c3.25 0 4.86 5.75 6.12 9.61.08.26.17.51.25.76a19.99 19.99 0 0 0 1.6 3.87c.111.18.231.353.36.52a1.743 1.743 0 0 0 1.32.79 1.817 1.817 0 0 0 1-.4c1.87-1.35 2.74-5.85 3-8.14a.195.195 0 0 1 .068-.122.196.196 0 0 1 .132-.048.206.206 0 0 1 .164.117c.014.032.02.068.016.103-.41 2.59-1.08 7-3 8.66a3 3 0 0 1-1.93.69c-5.43 0-6.07-15.54-9.65-15.54-.19.002-.377.043-.55.12a4.765 4.765 0 0 0-.57-.53 3 3 0 0 1 1.67-.49ZM36.59 1a.6.6 0 1 1-.021 1.2.6.6 0 0 1 .021-1.2Zm7.81 1.31H43v2.28h1.44a1.07 1.07 0 0 0 1.21-1.14 1.097 1.097 0 0 0-.623-1.042 1.094 1.094 0 0 0-.627-.098Zm5 1.43A1.259 1.259 0 0 0 48.1 5h2.45a1.19 1.19 0 0 0-1.19-1.26Zm-8.42 1.1v.88H38v-.88Zm3.6-3.36a1.915 1.915 0 0 1 1.865.94c.186.321.275.69.255 1.06a1.826 1.826 0 0 1-1.24 1.82l1.44 2.6h-1.19L44.4 5.4H43v2.45h-1V1.48Zm-7.52 1.57v4.8h-1v-4.8Zm-6.29-1.57v2.69h3.29V1.48h1v6.37h-1V5h-3.29v2.85h-1V1.48ZM49.36 3a2.118 2.118 0 0 1 2.16 2.42v.33H48.1a1.305 1.305 0 0 0 .608 1.224c.204.127.441.195.682.196a1.153 1.153 0 0 0 1.15-.6h.92A1.998 1.998 0 0 1 49.36 8a2.193 2.193 0 0 1-2.041-1.254 2.193 2.193 0 0 1-.189-1.236 2.214 2.214 0 0 1 1.024-2.173c.362-.225.78-.343 1.206-.337ZM54 3c1.09 0 1.8.51 1.89 1.34H55a.902.902 0 0 0-1-.6c-.53 0-.94.27-.94.65s.25.49.77.61l.8.19c.92.21 1.36.6 1.36 1.3 0 .89-.85 1.5-2 1.5s-1.9-.52-2-1.35h1a1.004 1.004 0 0 0 1 .6c.6 0 1-.27 1-.66s-.23-.5-.71-.61l-.84-.2c-.92-.21-1.35-.62-1.35-1.33 0-.71.8-1.44 1.91-1.44Zm-2 10.79a1.247 1.247 0 0 0-1.096.64 1.245 1.245 0 0 0-.154.64h2.44A1.18 1.18 0 0 0 52 13.79Zm-15.75 0c-.83 0-1.29.62-1.29 1.69 0 1.07.46 1.68 1.29 1.68.83 0 1.3-.62 1.3-1.68s-.44-1.66-1.27-1.66Zm12.79-2.6v6.69h-1v-6.66Zm-18.3.31v5.52h3v.86h-4v-6.35ZM45.39 13c1.08 0 1.8.51 1.89 1.34h-.92c-.09-.36-.43-.59-1-.59-.57 0-.94.26-.94.65s.24.48.77.6l.8.19c.92.21 1.35.6 1.35 1.3 0 .89-.85 1.5-2 1.5s-1.91-.52-2-1.35h1a1.003 1.003 0 0 0 1 .61c.59 0 1-.28 1-.67s-.23-.49-.71-.61l-.85-.2c-.92-.21-1.35-.62-1.35-1.33 0-.71.86-1.44 1.96-1.44ZM41 13c1.09 0 1.8.51 1.9 1.34H42c-.09-.36-.43-.59-1-.59-.57 0-.93.26-.93.65s.24.48.76.6l.81.19c.92.21 1.35.6 1.35 1.3 0 .89-.85 1.5-2 1.5s-1.91-.52-2-1.35H40a.995.995 0 0 0 1.06.61c.59 0 1-.28 1-.67s-.23-.49-.72-.61l-.84-.2c-.92-.21-1.35-.62-1.35-1.33 0-.71.78-1.44 1.85-1.44Zm15.63 0c1.09 0 1.8.51 1.9 1.34h-.92c-.09-.36-.44-.59-1-.59s-.94.26-.94.65.25.48.77.6l.81.19c.92.21 1.35.6 1.35 1.3 0 .89-.85 1.5-2 1.5s-1.9-.52-2-1.35h1a.995.995 0 0 0 1.06.61c.59 0 1-.28 1-.67s-.21-.48-.66-.58l-.84-.2c-.92-.21-1.35-.62-1.35-1.33 0-.71.75-1.47 1.84-1.47ZM61 13c1.09 0 1.8.51 1.9 1.34H62c-.09-.36-.43-.59-1-.59-.57 0-.93.26-.93.65s.24.48.76.6l.81.19c.92.21 1.35.6 1.35 1.3 0 .89-.85 1.5-2 1.5s-1.91-.52-2-1.35h1a.995.995 0 0 0 1.06.61c.59 0 1-.28 1-.67s-.23-.49-.72-.61l-.84-.2c-.92-.21-1.35-.62-1.35-1.33 0-.71.78-1.44 1.86-1.44Zm-24.72 0a2.23 2.23 0 0 1 2.29 2.5 2.294 2.294 0 0 1-1.549 2.32A2.29 2.29 0 0 1 34 15.5a2.217 2.217 0 0 1 2.28-2.5ZM52 13a2.118 2.118 0 0 1 2.16 2.42v.33h-3.38a1.29 1.29 0 0 0 1.28 1.42 1.158 1.158 0 0 0 1.16-.6h.92A2.002 2.002 0 0 1 52 18a2.194 2.194 0 0 1-2.046-1.246 2.185 2.185 0 0 1-.194-1.234A2.232 2.232 0 0 1 52 13Z" fill-rule="evenodd" />
- </svg>
- `,Mt=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 20" height="32">
- <path d="M9.21 3.13c.131.166.249.344.35.53a7.554 7.554 0 0 0-.49.94c-.1-.2-.2-.4-.31-.59.134-.301.284-.595.45-.88ZM7.64 7.82c.08.25.17.51.25.77-.15.76-.25 1.46-.32 2a.204.204 0 0 1-.065.129.202.202 0 0 1-.135.051.21.21 0 0 1-.18-.23c.1-.75.25-1.72.45-2.72Zm-2-4.69c.135.166.255.343.36.53a19.651 19.651 0 0 0-2 7 .204.204 0 0 1-.065.129.202.202 0 0 1-.135.051.21.21 0 0 1-.18-.23c.29-2.12.8-5.43 2.01-7.48Zm13.23 4.92a.192.192 0 0 1 .159.118.187.187 0 0 1 .011.102C19 9.07 18.8 10 18.6 11l-.25-.77c.14-.76.25-1.46.32-2a.204.204 0 0 1 .065-.129.202.202 0 0 1 .135-.051Zm3.58 0a.206.206 0 0 1 .164.117c.014.032.02.068.016.103-.32 2.09-.83 5.4-2 7.45a5.451 5.451 0 0 1-.35-.53 19.87 19.87 0 0 0 2-7 .21.21 0 0 1 .064-.096.204.204 0 0 1 .106-.044Zm-5.28 6.21.3.59a7.082 7.082 0 0 1-.44.88 4.454 4.454 0 0 1-.35-.53c.179-.305.343-.618.49-.94Zm-8.64-13a2.895 2.895 0 0 1 1.75.62 4.1 4.1 0 0 1 .54.48c2.71 2.79 3.86 10.16 5.68 13.14.085.153.185.297.3.43a1.81 1.81 0 0 0 1.38.88c.19-.002.377-.043.55-.12.175.189.366.363.57.52a3 3 0 0 1-1.59.44A2.861 2.861 0 0 1 16 17a5.34 5.34 0 0 1-.55-.48c-2.7-2.8-3.85-10.16-5.67-13.14-.55-.9-1.26-1.58-2.23-1.19a4.765 4.765 0 0 0-.57-.53 3.003 3.003 0 0 1 1.55-.43Zm-4.06 0c6-.81 6.42 15.51 10.13 15.51.19-.002.377-.043.55-.12.173.192.363.366.57.52-.48.289-1.03.442-1.59.44C10.88 17.62 9.26 11.88 8 8c-.08-.26-.17-.51-.25-.76a19.99 19.99 0 0 0-1.6-3.87 4.491 4.491 0 0 0-.37-.53 1.53 1.53 0 0 0-2.36-.38C1.55 3.82.68 8.33.41 10.62a.211.211 0 0 1-.21.18.211.211 0 0 1-.2-.22C.41 8 1.08 3.57 3 1.92a2.878 2.878 0 0 1 1.47-.65Zm7.64 0c3.25 0 4.86 5.75 6.12 9.61.08.26.17.51.25.76a19.99 19.99 0 0 0 1.6 3.87c.111.18.231.353.36.52a1.743 1.743 0 0 0 1.32.79 1.817 1.817 0 0 0 1-.4c1.87-1.35 2.74-5.85 3-8.14a.195.195 0 0 1 .068-.122.196.196 0 0 1 .132-.048.206.206 0 0 1 .164.117c.014.032.02.068.016.103-.41 2.59-1.08 7-3 8.66a3 3 0 0 1-1.93.69c-5.43 0-6.07-15.54-9.65-15.54-.19.002-.377.043-.55.12a4.765 4.765 0 0 0-.57-.53 3 3 0 0 1 1.67-.49ZM52.68 8.17a1.313 1.313 0 0 0-1.3 1.34h2.53a1.233 1.233 0 0 0-1.23-1.34Zm-16.25 0c-.86 0-1.34.64-1.34 1.75 0 1.11.48 1.74 1.34 1.74.86 0 1.34-.64 1.34-1.74s-.49-1.71-1.34-1.71Zm13.19-2.65v6.93h-1V5.52Zm-18.88.31v5.72h3.1v.9h-4.13V5.83ZM62 7.37c1.12 0 1.86.52 1.95 1.39H63a.93.93 0 0 0-1-.62c-.55 0-1 .27-1 .68 0 .41.25.5.79.62l.83.2c.95.22 1.4.63 1.4 1.35 0 .93-.88 1.55-2.07 1.55s-2-.53-2-1.4h1c.082.212.233.39.429.505.197.114.426.158.651.125.62 0 1-.28 1-.69 0-.41-.23-.51-.73-.63l-.87-.21C60.45 10 60 9.6 60 8.86c0-.74.82-1.49 2-1.49Zm-4.5 0c1.12 0 1.86.52 1.95 1.39h-.94a.938.938 0 0 0-1-.62c-.55 0-1 .27-1 .68 0 .41.25.5.79.62l.83.2c.95.22 1.4.63 1.4 1.35 0 .93-.88 1.55-2.07 1.55s-2-.53-2-1.4h1c.082.212.233.39.429.505.197.114.426.158.651.125.62 0 1-.28 1-.69 0-.41-.23-.51-.73-.63l-.87-.21C56 10 55.51 9.6 55.51 8.86c0-.74.81-1.49 1.94-1.49Zm-4.77 0c1.39 0 2.23 1 2.23 2.51v.34h-3.58a1.34 1.34 0 0 0 1.33 1.47 1.178 1.178 0 0 0 1.19-.63h1a2.003 2.003 0 0 1-2.16 1.43A2.26 2.26 0 0 1 50.38 10a2.3 2.3 0 0 1 2.3-2.63Zm-6.86 0c1.12 0 1.86.52 2 1.39h-.94a.93.93 0 0 0-1-.62c-.55 0-1 .27-1 .68 0 .41.26.5.8.62l.83.2c1 .22 1.39.63 1.39 1.35 0 .93-.88 1.55-2.07 1.55s-2-.53-2-1.4h1c.12.39.49.63 1.09.63.6 0 1.05-.28 1.05-.69 0-.41-.24-.51-.74-.63l-.87-.21c-1-.22-1.39-.64-1.39-1.38 0-.74.67-1.49 1.8-1.49Zm-9.39 0a2.292 2.292 0 0 1 2.3 2.63 2.357 2.357 0 0 1-1.597 2.388 2.356 2.356 0 0 1-2.72-.923A2.357 2.357 0 0 1 34.07 10a2.295 2.295 0 0 1 1.076-2.299c.386-.235.833-.35 1.284-.331Zm4.89 0c1.12 0 1.86.52 2 1.39h-.94a.93.93 0 0 0-1-.62c-.55 0-1 .27-1 .68 0 .41.25.5.8.62l.83.2c1 .22 1.39.63 1.39 1.35 0 .93-.88 1.55-2.07 1.55s-2-.53-2-1.4h1c.082.212.233.39.429.505.197.114.426.158.651.125.62 0 1-.28 1-.69 0-.41-.23-.51-.73-.63l-.87-.21c-1-.22-1.39-.64-1.39-1.38 0-.74.72-1.49 1.85-1.49Z" fill-rule="evenodd" />
- </svg>
- `,Ft=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1869 900" height="38">
- <path d="M508.4 55.6c13.5 13.9 1 29.8-29.9 38.1-9.3 2.5-11.4 2.7-31.5 2.7-22.9.1-31.2-1.1-45.2-6.4-20.6-7.7-28.6-22.4-18.4-33.9l2.1-2.4-3.4 1.9c-7.8 4.3-14.1 12.8-14.1 18.9 0 13.3 21 26.1 50.7 30.9 38.1 6.1 80.1-.7 99-16 4.7-3.8 8.3-10.5 8.3-15.3 0-7-6.7-14.9-16.9-20.1l-4.4-2.2 3.7 3.8z" />
- <path d="M353.3 79.9c-20.1 9.6-31.3 22.3-31.3 35.8 0 23.7 33.9 43.1 89.5 51.5 11.9 1.7 61.9 1.7 73 0 26.8-4.3 47-10.1 61.2-17.7 19.7-10.4 28.6-21.1 28.5-34.1-.1-9.5-4.4-16.7-15.4-25.7-4.8-3.9-13.3-8.8-19.3-11.2l-4-1.6 3 2.3c11.8 9 17 16.9 16.9 26.3 0 7.9-2.3 12.5-9.9 20-13 13-39.9 22.9-71.4 26.5-12.1 1.4-40.1 1.4-52.2 0-31.5-3.6-58.3-13.5-71.4-26.5-7.6-7.5-9.9-12.1-9.9-20-.1-9.4 5.3-17.7 16.9-26.2 4-3 3.2-2.9-4.2.6zM1053.5 181c-29.2 3.1-51.5 19.4-57.5 41.9-1.8 6.9-1.4 21.6.8 28.8 6.7 21.5 23.1 31.9 64.3 40.8 26.1 5.7 33.8 8.6 41.7 15.8 6.2 5.8 8.2 10.4 8.2 19.7 0 21-16.9 33.3-46 33.3-27.5-.1-44.9-10.2-49.9-29.1l-1.2-4.2H990v3.2c0 1.8.7 5.8 1.5 8.8 5.3 20.1 21.3 34.6 45.6 41.2 7.3 2 10.8 2.3 26.4 2.3 21.3 0 28-1.3 42.5-8.2 20.5-9.8 30.3-25.9 30.2-49.3-.1-15.7-4.5-26.5-14.8-35.9-10.2-9.4-23.1-14.2-60.3-22.6-23.2-5.2-33.6-10.8-38.5-20.7-2.9-5.8-3.5-14.8-1.5-20.9 1.8-5.1 6.3-10.8 11.6-14.6 13.3-9.4 39.5-10.8 55.8-2.9 9.5 4.7 17.6 15.1 19.1 24.5l.7 4.1h12.3c14.3 0 13.6.7 10.9-10.9-4.7-19.8-21.6-36.3-43.5-42.5-5.4-1.5-21.5-3.7-25.5-3.5-1.1.1-5.1.5-9 .9zM1740 282.5V381h23V184h-23v98.5zM1547.1 186.7c-10.7 5.6-10.6 21 .2 26.2 2.4 1.2 5.3 2.1 6.5 2.1 6.4 0 13.6-6.2 14.8-12.6.9-4.8-1.9-11.8-5.8-14.5-4.2-3-11.3-3.5-15.7-1.2zM1463 219.5V239h-21v18.9l10.3.3 10.2.3.5 50c.5 48 .6 50.2 2.6 55.1 3.3 8 6.9 12.1 13.8 15.4 7.6 3.7 17.8 5.4 27.4 4.5l7.2-.7v-18.5l-8.5-.5c-9.5-.5-12.5-2-16-7.9-1.9-3.3-2-5.2-2-50.4v-47l13.3-.3 13.2-.3V239h-27v-39h-24v19.5zM766.7 226.5c-23.5 6.1-34.1 50.8-25.2 106.5 5.9 36.8 20 75.1 37.6 102 7 10.7 22.8 27.1 30.1 31.3 9.9 5.7 19.9 6.7 27.8 2.7 10.6-5.4 19.8-23 22.4-43l.6-4.5-2 5.3c-5.7 15.6-14.7 23.5-26.6 23.6-23.2 0-51.2-35.7-65.8-83.7-7-23.3-9.8-41.6-9.9-64.2 0-25.6 5.1-44 15-53.9 5.7-5.7 8.8-7 16.8-7.1 8.1 0 14.6 2.8 23 9.8 5.8 4.9 5.2 3.5-2.4-5.2-13.7-15.7-28.9-22.9-41.4-19.6zM109.2 229.5c-7.2 3.6-18.5 13.3-24.4 20.8-1.8 2.3-2.6 3.7-1.8 3.1.8-.6 3.6-2.7 6.2-4.7 8.9-6.7 18.5-9 27.3-6.6 5.3 1.4 13.5 9.9 17 17.5 8.5 18.6 9.9 51.9 3.5 83.4-9.4 46.1-31.2 86.5-54.8 101.8-17.8 11.5-33.7 5.7-42.8-15.6l-2.5-5.7.7 4.5c2.4 17.8 10.5 34.1 19.7 39.5 13.4 7.8 27.3 3.7 44.3-13.1C133.2 423 158 353.3 158 295.8c0-29.5-5.7-51-16.4-61.8-6.1-6.2-10.3-8-18.4-8-5.9 0-8 .5-14 3.5zM1222 236.7c-13.5 2.3-27.5 11.4-33.8 22.3l-2.7 4.5-.3-12.3-.3-12.2H1161v190h24v-72.2l4.4 5.9c10.3 14 23.9 20.7 42.1 20.7 27.7 0 48.4-17.1 56.7-47 1.9-6.8 2.2-10.5 2.2-26.4.1-16.4-.2-19.4-2.2-26.5-7.3-25.4-22.9-41.4-44.7-46-6.6-1.4-16-1.7-21.5-.8zm14.5 21.8c17.9 4.6 29 21.7 30.2 47 1.5 31.2-11.4 52.7-34 56.5-20.8 3.6-38.9-9.8-45.3-33.3-.8-2.9-1.7-9.5-2-14.7-2.2-37.6 21.3-63.1 51.1-55.5zM1360.5 236.6c-23.5 3.8-39.1 16.2-44 34.9-2.3 9-2.9 8.5 10 8.5h11.4l1.3-4.3c.8-2.7 3-6 6.3-9.3 6.6-6.6 12.7-8.8 25-8.9 11.5 0 17.9 2.1 23.9 8 5.5 5.3 7.6 11.6 7.6 23.2 0 7.9-.1 8.3-2.2 8.3-11 .1-48.9 3.2-54.1 4.4-15.4 3.6-26.8 11.4-32.3 22.3-2.7 5.4-2.9 6.6-2.9 17.3 0 10.8.2 11.9 3.1 18 3.9 8.2 7.5 12.4 14 16.6 8.5 5.5 16.5 7.7 27.9 7.8 17.7.2 32-6.4 41.8-19.3l4.7-6.2V381h24v-50.8c0-32.5-.4-53-1.1-56.8-4.1-22.5-22.7-36.1-50.4-36.9-6-.2-12.3-.1-14 .1zm41.3 88.7c-.3 9.2-.7 11-3.6 17-6.8 13.8-21.5 21.6-38.7 20.5-14.2-.9-23.8-8.4-25.1-19.4-.8-6.3.8-11.4 4.9-16 6.3-7.3 13-9 41.2-10.8 11-.7 20.4-1.4 20.9-1.5.4 0 .7 4.5.4 10.2zM1642.5 236.6c-23.5 3.8-39.1 16.2-44 34.9-2.3 9-2.9 8.5 10 8.5h11.4l1.3-4.3c.8-2.7 3-6 6.3-9.3 6.6-6.6 12.7-8.8 25-8.9 11.5 0 17.9 2.1 23.9 8 5.5 5.3 7.6 11.6 7.6 23.2 0 7.9-.1 8.3-2.2 8.3-11 .1-48.9 3.2-54.1 4.4-15.4 3.6-26.8 11.4-32.3 22.3-2.7 5.4-2.9 6.6-2.9 17.3 0 10.8.2 11.9 3.1 18 3.9 8.2 7.5 12.4 14 16.6 8.5 5.5 16.5 7.7 27.9 7.8 17.7.2 32-6.4 41.8-19.3l4.7-6.2V381h24v-50.8c0-32.5-.4-53-1.1-56.8-4.1-22.5-22.7-36.1-50.4-36.9-6-.2-12.3-.1-14 .1zm41.3 88.7c-.3 9.2-.7 11-3.6 17-6.8 13.8-21.5 21.6-38.7 20.5-14.2-.9-23.8-8.4-25.1-19.4-.8-6.3.8-11.4 4.9-16 6.3-7.3 13-9 41.2-10.8 11-.7 20.4-1.4 20.9-1.5.4 0 .7 4.5.4 10.2zM1542 310v71h24V239h-24v71z" />
- <path d="M65.5 263.9c-3.8 1.7-15 10.9-14.2 11.7.2.2 2.1-.5 4.2-1.6 12.6-6.4 23.5 2.7 27 22.6 1.8 10.2 1.8 15.8 0 29.7-3.6 27.5-14.5 52.8-28.9 67.3-11.8 11.8-21.3 13.2-29 4.2l-3.5-4.1.9 3.2c8.7 30.5 35.2 22.1 54.8-17.5 15-30.1 21.6-68.7 16.1-94.4-4-18.9-14.4-26.9-27.4-21.1zM816.2 263.7c-4.4 2.1-8.8 8.5-11.4 16.3-1.7 5.2-2.2 9.7-2.6 22.6-.3 14.2-.1 17.8 2.2 30 5.1 27.8 15.3 51.9 28.9 68.5 15.5 18.7 31.4 19.1 39.4 1.1 3.1-7.1 2.9-8-1-3.9-17.2 18.3-45.7-13.8-56.3-63.3-2.8-13-2.6-36.2.3-45.5 3.5-11 10.2-17.5 18.1-17.5 1.6 0 4.9 1.1 7.5 2.3 4.1 2.1 4.4 2.2 3.3.5-2.3-3.3-9.3-8.8-13.8-10.8-5.2-2.4-10.2-2.5-14.6-.3zM430 290.1c-80.7 10-144.1 73-153.6 152.9-1.8 15.1-1.7 26.3.1 40.7 10.3 79.2 72.3 141.5 151.2 151.8 85.1 11.2 168.7-45.9 189.9-129.5 20.2-80-17.5-161.3-92.1-198.5-16.1-8-31.2-13.1-47.5-16-11.3-1.9-37.5-2.8-48-1.4zm29.6 76c13.9 2.5 29 13.2 37.4 26.4 14.4 22.9 13.1 55.4-3.2 77-6.5 8.5-17.1 16.4-26.5 19.7-9.7 3.3-25.9 3.3-35.5 0-23.3-8-39-30.1-40.5-57.3-1.7-29.7 16-56.6 42.7-64.7 7.6-2.3 16.7-2.7 25.6-1.1zm9.4 156.4c17.5 2.3 34.3 7.1 46.5 13.2 13.5 6.8 29 19 34 26.7l1.9 2.9-5.9 5.4c-19.1 17-42.5 28.8-68.8 34.5-14.7 3.2-43.7 3.2-58.3 0-27-5.8-51-17.8-68.5-33.9-3.2-3-5.9-6.3-5.9-7.3 0-2.2 12.8-14.4 21-20 26.7-18.1 67.1-26.5 104-21.5zM1115.6 520.8c-.6 1-71.7 192-72.4 194.5-.4 1.6.5 1.7 12.4 1.5l12.8-.3 8.3-23.5c4.6-12.9 9-25.4 9.9-27.8l1.6-4.2h79.6l4.2 11.7c2.3 6.5 6.7 19.1 9.8 28l5.7 16.3h12.8c7 0 12.7-.3 12.7-.8 0-.4-16.4-44.6-36.3-98.2l-36.2-97.5-12.2-.3c-6.7-.1-12.4.1-12.7.6zm28.4 72.8c8.5 24 15.6 44.3 15.8 45 .3 1.2-5.2 1.4-31.8 1.4-26.2 0-32.1-.2-31.8-1.3 1-4.1 31.3-88.7 31.8-88.7.3 0 7.5 19.6 16 43.6zM1475 559c0 21.4-.3 39-.7 39-.5 0-1.9-1.9-3.3-4.1-3.4-5.6-11.2-12.5-18.2-16-27.8-14-61.4-2.2-75.3 26.4-5.3 11.1-7.4 18.8-8.4 31.6-2.5 29.2 5.1 53.7 21.6 69.2 23.3 22.1 62.4 18.8 79.9-6.7l3.9-5.7.3 12.2.3 12.1h22.9V520h-23v39zm-25.4 38c16 7.9 24.8 25.2 24.8 49 0 18.8-4.4 31.2-14.8 41.6-8.1 8-14.7 10.7-26.7 10.7-7.5 0-9.4-.4-15.2-3.1-17.3-8-25.6-26.4-24.4-53.6.6-14.6 2.9-22.8 9-31.8 10.4-15.6 30.6-21 47.3-12.8zM1537.1 522.7c-10.7 5.6-10.6 21 .2 26.2 2.4 1.2 5.3 2.1 6.5 2.1 6.4 0 13.6-6.2 14.8-12.6.9-4.8-1.9-11.8-5.8-14.5-4.2-3-11.3-3.5-15.7-1.2zM1632.5 573.5c-3.8.8-10.7 3.3-15.4 5.5-25 12-38.1 40.8-35 76.9 2.8 32 20.3 54.5 47.9 61.8 8.6 2.3 26.2 2.3 34.9 0 11.7-3.1 18.9-7.3 27.6-16.1 9.2-9.2 13.1-15.9 17.1-29.1 2.5-8.3 2.8-10.4 2.8-26 .1-19.9-1.1-25.8-8-40.2-7.6-15.9-21.2-27.2-38.4-31.9-8.1-2.2-25.1-2.6-33.5-.9zm24.6 20.9c14.4 3.3 24.8 14.5 29.5 31.7 2.4 8.9 2.5 30 .1 38.9-4.1 15.2-13 26.7-24.2 31-8.4 3.3-21.5 3.3-30 0-7.5-2.9-17-12-20.7-20-5.5-11.7-7.4-32.3-4.3-47.1 5.5-26.3 25.6-40.2 49.6-34.5zM1227 625.8c0 47.1.1 51.4 1.9 58.5 2.6 10 5.3 15 11.7 21.8 20.1 21 61.5 17.3 77.8-7.1 1.5-2.4 1.6-2.1 1.6 7.8V717h24V575h-23.9l-.3 47.7c-.3 47.3-.3 47.9-2.6 53.5-6.5 16-23.2 24.8-41.1 21.8-8.3-1.4-14.7-5.1-19.1-11.1-5.9-8.2-6-9.4-6-63.1V575h-24v50.8zM1532 646v71h24V575h-24v71zM725 667.1c-46.8 7.1-115.5 65.6-143.5 122.4-8.4 17-11.6 28-11.7 40.5-.1 14.9 3.8 22.7 14 27.7 5.2 2.6 6.6 2.8 16.7 2.7 9.5-.1 12.3-.5 20.8-3.3 5.3-1.8 9.7-3.3 9.7-3.5 0-.1-4.1 0-9 .2-15.2.7-24-3.3-28.5-13.1-5.8-12.4-3.5-28.7 7.2-50.5 21.1-43.3 70.8-88 110.8-99.7 13.1-3.8 24.5-3.8 32.3.1 10.4 5.3 14.2 14.3 12.9 30.8-.7 8.5.2 7.4 3.9-5 3.6-12 4-27.6.8-34.4-5.8-12.3-18.6-17.6-36.4-14.9zM153 667.9c-18.5 6.1-23.5 24.3-14.4 52.3 1.4 4.3 2.7 7.8 2.9 7.8.1 0 0-4-.3-9-.8-15 3-23.4 12.9-28.4 4.6-2.2 6.6-2.6 14.5-2.6 22.6 0 51.7 14.7 79.9 40.3 28.2 25.7 48.7 54.9 55.9 79.9 3.6 12.5 4.1 19.1 2.2 26.9-2.1 8-5.6 12.6-12.7 16.2-5.2 2.7-5.9 2.8-16.7 2.5l-11.3-.4 6.1 2.3c15.2 5.7 31.8 6.7 41.3 2.5 5.9-2.6 10.9-8 13.1-14.2 2.9-7.9 1.9-23.6-2.2-36.1-8.2-24.8-26.6-52.8-52.1-79.2-26.3-27.2-59.4-49.6-86.1-58.2-6.6-2.2-10.9-2.8-19.5-3.1-6-.2-12.1 0-13.5.5z" />
- <path d="M732.8 732.2c-10.8 1.4-26.2 8.9-41.4 20.1-9.6 7.1-29.8 27.6-36.6 37.3-20.2 28.4-24.5 52.8-10.8 60.8 4.3 2.5 16.3 2.7 22.5.3l4-1.6h-3.9c-6.3-.1-12.1-3.5-14.5-8.5-12.5-25.6 35.7-85 77.2-95.2 5.7-1.4 7.6-1.5 12.2-.5 6.8 1.5 11.2 5.6 12.1 11.2.4 2.1 1 3.9 1.5 3.9 1.2 0 2.2-8.7 1.5-13.7-1.5-11.3-9.5-16-23.8-14.1zM148.9 734.1c-2 1.2-4.4 3.5-5.4 5.1-2.1 3.6-3 12.9-1.7 18.3l.9 4 .7-3c3.4-14.8 15.6-18 36-9.5 27 11.2 57.3 43.1 66 69.2 6.1 18.3.4 30.6-14.5 30.9l-4.4.1 4.5 1.5c7.1 2.3 18.8 2.2 23-.2 14.1-8.2 8.7-34.5-12.9-63.5-7.6-10.2-24.7-27.2-35.4-35.2-22.5-16.7-45.9-24-56.8-17.7z" />
- </svg>
- `;let Oe="";async function Re(){if(Oe)return Oe;const x=document.querySelector('script[type="module"]');if(!x)throw new Error("Failed to find script with auth token.");const y=(await(await be(x.src)).text()).match(new RegExp('(?<=")eyJhbGciOiJ.+?(?=")'));if(!y)throw new Error("Failed to find auth token from script.");return Oe=y[0],Oe}async function Ze(x,C){C??(C=location.pathname.split("/")[1]);const a=await be(`https://amp-api.music.apple.com/v1/catalog/${C}/albums/${x}?extend=extendedAssetUrls`,{headers:{Origin:"https://music.apple.com",Referer:"https://music.apple.com/",Authorization:`Bearer ${await Re()}`}});return a.status===404?null:(await a.json()).data[0]}async function Lt(){return(await(await be("https://api.music.apple.com/v1/storefronts",{headers:{Origin:"https://music.apple.com",Referer:"https://music.apple.com/",Authorization:`Bearer ${await Re()}`}})).json()).data}Ee(async()=>{if(document.querySelector(".ame-album-badges-container"))return;const x=location.pathname.split("/")[4],C=await Ze(x);if(!C)return;const a=await ye(".headings__metadata-bottom",".description");if(!a)return;const y=C.attributes.audioTraits;C.attributes.isMasteredForItunes&&y.push("adm");const p=he('<p class="ame-album-badges-container"></p>');y.includes("lossless")&&(p.innerHTML+=Mt),y.includes("hi-res-lossless")&&(p.innerHTML+=Dt),y.includes("atmos")&&(p.innerHTML+=Nt),y.includes("adm")&&(p.innerHTML+=Bt),y.includes("spatial")&&(p.innerHTML+=Ft),a.after(p)});const Pt=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" slot="app-icon">
- <path d="M11.5 42q-.65 0-1.075-.425Q10 41.15 10 40.5v-31q0-.65.425-1.075Q10.85 8 11.5 8h14.45q.55 0 .95.325.4.325.5.875l.7 3.1h10.4q.65 0 1.075.425Q40 13.15 40 13.8v15.5q0 .65-.425 1.075-.425.425-1.075.425H28.4q-.5 0-.925-.3-.425-.3-.525-.85l-.7-3.1H13V40.5q0 .65-.425 1.075Q12.15 42 11.5 42ZM25 19.4Zm4.75 8.4H37V15.3H25.55L24.6 11H13v12.55h15.8Z" />
- </svg>
- `,je=["jp","kr","us","de","fr","gb","in","it","es","br","au","nz","cn","hk"];je.reverse();let de=null;const He=Te("Check Countries",Pt);He.addEventListener("click",async()=>{const x=document.querySelector(".section");x&&await Je(x)}),Ee(async()=>{const x=await ye(".page-error");x&&Je(x)}),Ee(()=>{de==null||de.abort(),de=null}),Ue(()=>{de==null||de.abort(),de=null});async function Je(x){if(de)return;const C=new AbortController;de=C;const a=location.pathname.split("/")[4],y=he('<div class="section ame-album-countries-header">Availability in the following storefronts:</div>'),p=he(`
- <div class="section ame-album-countries-container">
- <div class="ame-color-primary"></div>
- <div class="ame-color-secondary"></div>
- <div class="ame-color-tertiary"></div>
- </div>
- `),i=p.children[0],o=p.children[1],n=p.children[2];x.append(y),x.append(p);let l=await Lt();l=l.map(_=>(_.attributes.name=_.attributes.name.split(", ").reverse().join(" "),_)).sort((_,w)=>Math.max(je.indexOf(w.id),0)-Math.max(je.indexOf(_.id),0));for(const _ of l){if(C.signal.aborted)break;const w=await Ze(a,_.id);if(!w){n.append(he(`
- <span data-storefront="${_.id}" title="Totally unavailable">${_.attributes.name}, </span>
- `)),await xe(222);continue}const b=Math.max(...w.relationships.tracks.data.map(m=>m.attributes.discNumber)),u=w.relationships.tracks.data.filter(m=>m.type==="songs"),r=w.relationships.tracks.data.filter(m=>m.type!=="songs"),f=new Set;for(let m=1;m<=w.attributes.trackCount-r.length;m++)f.add(m);if(u.forEach((m,s)=>{m.attributes.extendedAssetUrls&&m.attributes.playParams&&f.delete(b>1?s+1:m.attributes.trackNumber)}),f.size){b>1?o.append(he(`
- <span data-storefront="${_.id}"><a target="_blank" href="https://music.apple.com/${_.id}/album/${a}" title="Partially available, missing:
- ${f.size} tracks">${_.attributes.name}</a>, </span>
- `)):o.append(he(`
- <span data-storefront="${_.id}"><a target="_blank" href="https://music.apple.com/${_.id}/album/${a}" title="Partially available, missing:
- ${Array.from(f).join(", ")}">${_.attributes.name}</a>, </span>
- `)),await xe(222);continue}i.append(he(`
- <span data-storefront="${_.id}"><a target="_blank" href="https://music.apple.com/${_.id}/album/${a}" title="Fully available">${_.attributes.name}</a>, </span>
- `)),await xe(222)}}const We=Te("Search Covers",`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" slot="app-icon">
- <path d="M24 44q-4.1 0-7.75-1.575-3.65-1.575-6.375-4.3-2.725-2.725-4.3-6.375Q4 28.1 4 24q0-4.25 1.6-7.9 1.6-3.65 4.375-6.35 2.775-2.7 6.5-4.225Q20.2 4 24.45 4q3.95 0 7.5 1.325T38.175 9q2.675 2.35 4.25 5.575Q44 17.8 44 21.65q0 5.4-3.15 8.525T32.5 33.3h-3.75q-.9 0-1.55.7t-.65 1.55q0 1.35.725 2.3.725.95.725 2.2 0 1.9-1.05 2.925T24 44Zm0-20Zm-11.65 1.3q1 0 1.75-.75t.75-1.75q0-1-.75-1.75t-1.75-.75q-1 0-1.75.75t-.75 1.75q0 1 .75 1.75t1.75.75Zm6.3-8.5q1 0 1.75-.75t.75-1.75q0-1-.75-1.75t-1.75-.75q-1 0-1.75.75t-.75 1.75q0 1 .75 1.75t1.75.75Zm10.7 0q1 0 1.75-.75t.75-1.75q0-1-.75-1.75t-1.75-.75q-1 0-1.75.75t-.75 1.75q0 1 .75 1.75t1.75.75Zm6.55 8.5q1 0 1.75-.75t.75-1.75q0-1-.75-1.75t-1.75-.75q-1 0-1.75.75t-.75 1.75q0 1 .75 1.75t1.75.75ZM24 41q.55 0 .775-.225.225-.225.225-.725 0-.7-.725-1.3-.725-.6-.725-2.65 0-2.3 1.5-4.05t3.8-1.75h3.65q3.8 0 6.15-2.225Q41 25.85 41 21.65q0-6.6-5-10.625T24.45 7q-7.3 0-12.375 4.925T7 24q0 7.05 4.975 12.025Q16.95 41 24 41Z" />
- </svg>
- `);We.addEventListener("click",()=>{const x=document.querySelector("h1.headings__title");if(!x)return;const C=x.innerText.replace(" - Single","").replace(" - EP",""),a=document.querySelectorAll(".headings__subtitles > a"),y=Array.from(a).map(p=>p.innerText).join(" ");open(`https://covers.musichoarders.xyz?artist=${encodeURIComponent(y)}&album=${encodeURIComponent(C)}`,"_blank")});const Ut=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" slot="app-icon">
- <path d="m16 35.9-12-12 12.1-12.1 2.15 2.15L8.3 23.9l9.85 9.85Zm15.9.1-2.15-2.15 9.95-9.95-9.85-9.85L32 11.9l12 12Z" />
- </svg>
- `,jt=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" slot="app-icon">
- <path d="M24 43.95q-7-1.75-11.5-8.125T8 21.85V9.95l16-6 16 6v11.9q0 7.6-4.5 13.975T24 43.95Zm0-3.1q5.75-1.9 9.375-7.175T37 21.85v-9.8l-13-4.9-13 4.9v9.8q0 6.55 3.625 11.825Q18.25 38.95 24 40.85ZM24 24Z" />
- </svg>
- `,Ht=[],Wt=[],et=[],tt=[];addEventListener("mousedown",async x=>{var w,b;const C=x.composedPath().slice(0,-5).filter(u=>u instanceof HTMLElement);if(!C.find(u=>u.matches("amp-contextual-menu-button")))return;const y=await ye("amp-contextual-menu",void 0,300);if(!(y!=null&&y.shadowRoot))return;const p=await ye("ul",void 0,300,y.shadowRoot);if(!p)return;const i=location.href.split("/").pop(),o=C.find(u=>u.classList.contains("artist-header"));if(i&&o){for(const u of Ht)u(p,i);return}const n=C.find(u=>u.classList.contains("container-detail-header"));if(i&&n){if(location.href.includes("/playlist/")){for(const u of Wt)u(p,i);return}if(location.href.includes("/album/")){for(const u of et)u(p,i);return}}const l=C.find(u=>u.classList.contains("songs-list-row")),_=(b=(w=l==null?void 0:l.previousElementSibling)==null?void 0:w.getAttribute("href"))==null?void 0:b.split("/").pop();if(_){for(const u of tt)u(p,_);return}});function rt(x,C,a=!1){return he(`
- <amp-contextual-menu-item hydrated>
- <li class="contextual-menu__item">
- <button title="Share" style="${a?"height: auto; padding-top: 8px; padding-bottom: 8px;":""}">
- <span class="contextual-menu__item-option-wrapper">
- <span class="contextual-menu-item__option-text">${x}</span>
- <span class="contextual-menu-item__option-text contextual-menu-item__option-text--after"></span>
- <span class="contextual-menu-item__icon-container">
- ${C}
- </span>
- </span>
- </button>
- </li>
- </amp-contextual-menu-item>
- `)}function nt(x,C,a=Number.MAX_VALUE){C.addEventListener("click",()=>{var n,l;const o=(l=(n=x.previousElementSibling)==null?void 0:n.shadowRoot)==null?void 0:l.lastElementChild;o==null||o.click()},{once:!0});const y=Array.from(C.querySelectorAll("amp-contextual-menu-item"));if(C.setAttribute("data-priority",a.toString()),y.length===0){x.prepend(C);return}let p=Number.MAX_VALUE,i=y[0];for(const o of y){const n=Math.abs(Number(o.getAttribute("data-priority"))-a);n>=p||(p=n,i=o)}a>Number(i.getAttribute("data-priority"))?i.after(C):i.before(C)}function Vt(x){et.push(x)}function qt(x){tt.push(x)}const it=Te("Copy Authorization",jt);it.addEventListener("click",async()=>{GM.setClipboard(await Re())}),qt((x,C)=>{const a=rt("Copy ID",Ut);a.addEventListener("click",()=>{GM.setClipboard(C)}),nt(x,a)});const $t=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" slot="app-icon">
- <path d="M29.75 33.4h2.5v-3.25h2.05q.7 0 1.2-.475T36 28.5v-8.95q0-.7-.5-1.2t-1.2-.5H28q-.7 0-1.35.5-.65.5-.65 1.2v8.95q0 .7.65 1.175.65.475 1.35.475h1.75ZM12 30.15h2.5V25.7h5v4.45H22v-12.3h-2.5v5.35h-5v-5.35H12Zm16.5-2.5v-7.3h5v7.3ZM7 40q-1.2 0-2.1-.9Q4 38.2 4 37V11q0-1.2.9-2.1Q5.8 8 7 8h34q1.2 0 2.1.9.9.9.9 2.1v26q0 1.2-.9 2.1-.9.9-2.1.9Zm0-3h34V11H7v26Zm0 0V11v26Z" />
- </svg>
- `,at=["ec+3","alac","aac ","aach"],st=["BINAURAL","DOWNMIX"];let pe=null;const ot=Te("Check Qualities",$t);ot.addEventListener("click",async()=>{var i;if(pe)return;const x=new AbortController;pe=x;const C=location.pathname.split("/")[1],a=location.pathname.split("/")[4],y=await Ze(a,C);if(!y)return;const p=Array.from(document.querySelectorAll(".songs-list-row__song-wrapper"));for(const o of y.relationships.tracks.data){if(x.signal.aborted)break;if(o.type!=="songs")continue;const n=p.shift();if(!n)continue;if((i=n.querySelector(".ame-track-quality"))==null||i.remove(),!o.attributes.extendedAssetUrls){n.append(he('<span class="ame-track-quality ame-color-warning">[unavailable]</span>'));continue}const l=await(await be(o.attributes.extendedAssetUrls.enhancedHls)).text();await xe(150);let _=null;for(const r of l.split(`
- `))if(r.startsWith('#EXT-X-SESSION-DATA:DATA-ID="com.apple.hls.audioAssetMetadata"')){_=JSON.parse(atob(r.split("VALUE=")[1].slice(1,-1)));break}if(!_)throw new Error("Could not find data from track manifest.");const w=Object.values(_);w.sort(ct);const b=await Gt(o.attributes.extendedAssetUrls.enhancedHls,w);b&&w.push(b),w.sort(ct);const u=w.find(r=>parseInt(r["CHANNEL-COUNT"])<=2);n.append(he(`<span class="ame-track-quality ame-color-tertiary" title="${w.map(lt).join(`
- `)}">${lt(u)}</span>`))}}),Ee(()=>{pe==null||pe.abort(),pe=null}),Ue(()=>{pe==null||pe.abort(),pe=null});function ct(x,C){return at.indexOf(x["AUDIO-FORMAT-ID"])-at.indexOf(C["AUDIO-FORMAT-ID"])||C["BIT-DEPTH"]-x["BIT-DEPTH"]||C["SAMPLE-RATE"]-x["SAMPLE-RATE"]||(C["BIT-RATE"]??NaN)-(x["BIT-RATE"]??NaN)||st.indexOf(x["CHANNEL-USAGE"]??"")-st.indexOf(C["CHANNEL-USAGE"]??"")||-Number(x.__ACTUAL__)}function lt(x){const C=[];return C.push(x["AUDIO-FORMAT-ID"]),x["CHANNEL-COUNT"]&&C.push(`${x["CHANNEL-COUNT"]}ch`),x["BIT-RATE"]&&C.push(`${Math.floor(Number(x["BIT-RATE"])/1e3)}kbps`),x["BIT-DEPTH"]&&C.push(`${x["BIT-DEPTH"]}bit`),x["SAMPLE-RATE"]&&C.push(`${Math.floor(Number(x["SAMPLE-RATE"])/1e3)}kHz`),x["CHANNEL-USAGE"]&&C.push(x["CHANNEL-USAGE"].toLowerCase()),x["IS-ATMOS"]&&C.push("atmos"),x.__ACTUAL__&&C.push("[ACTUAL]"),C.join(" ")}async function Gt(x,C){var l;const a=x.split("/").slice(0,-1).join("/"),y=(l=C.filter(_=>_["AUDIO-FORMAT-ID"]==="alac"&&parseInt(_["CHANNEL-COUNT"])<=2).at(-1))==null?void 0:l["FIRST-SEGMENT-URI"];if(!y)return null;const p=await await be(`${a}/${y}`,{headers:{Range:"bytes=0-16384"}}),i=new DataView(await p.arrayBuffer());if(i.getInt32(4)!==1718909296||i.getInt32(8)!==1769172789)return null;let o=0,n=0;for(;o<i.byteLength;){const _=i.getInt32(o);switch(i.getInt32(o+4)){case 1836019574:case 1953653099:case 1835297121:case 1835626086:case 1937007212:o+=8;break;case 1937011556:o+=8+8;break;case 1701733217:o+=8+28;case 1634492771:return{"FIRST-SEGMENT-URI":y,"AUDIO-FORMAT-ID":"alac","CHANNEL-COUNT":i.getUint8(o+8+13).toString(),"BIT-DEPTH":i.getUint8(o+8+9),"SAMPLE-RATE":i.getInt32(o+8+24),__ACTUAL__:!0};default:o+=_;break}if(n++>100)break}return null}var Be=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Xt(x){return x&&x.__esModule&&Object.prototype.hasOwnProperty.call(x,"default")?x.default:x}function Ne(x){throw new Error('Could not dynamically require "'+x+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Ve={},Yt={get exports(){return Ve},set exports(x){Ve=x}};/*!
- JSZip v3.9.1 - A JavaScript class for generating and reading zip files
- <http://stuartk.com/jszip>
- (c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
- Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/master/LICENSE.markdown.
- JSZip uses the library pako released under the MIT license :
- https://github.com/nodeca/pako/blob/master/LICENSE
- */(function(x,C){(function(a){x.exports=a()})(function(){return function a(y,p,i){function o(_,w){if(!p[_]){if(!y[_]){var b=typeof Ne=="function"&&Ne;if(!w&&b)return b(_,!0);if(n)return n(_,!0);var u=new Error("Cannot find module '"+_+"'");throw u.code="MODULE_NOT_FOUND",u}var r=p[_]={exports:{}};y[_][0].call(r.exports,function(f){var m=y[_][1][f];return o(m||f)},r,r.exports,a,y,p,i)}return p[_].exports}for(var n=typeof Ne=="function"&&Ne,l=0;l<i.length;l++)o(i[l]);return o}({1:[function(a,y,p){var i=a("./utils"),o=a("./support"),n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";p.encode=function(l){for(var _,w,b,u,r,f,m,s=[],c=0,d=l.length,g=d,A=i.getTypeOf(l)!=="string";c<l.length;)g=d-c,b=A?(_=l[c++],w=c<d?l[c++]:0,c<d?l[c++]:0):(_=l.charCodeAt(c++),w=c<d?l.charCodeAt(c++):0,c<d?l.charCodeAt(c++):0),u=_>>2,r=(3&_)<<4|w>>4,f=1<g?(15&w)<<2|b>>6:64,m=2<g?63&b:64,s.push(n.charAt(u)+n.charAt(r)+n.charAt(f)+n.charAt(m));return s.join("")},p.decode=function(l){var _,w,b,u,r,f,m=0,s=0,c="data:";if(l.substr(0,c.length)===c)throw new Error("Invalid base64 input, it looks like a data url.");var d,g=3*(l=l.replace(/[^A-Za-z0-9\+\/\=]/g,"")).length/4;if(l.charAt(l.length-1)===n.charAt(64)&&g--,l.charAt(l.length-2)===n.charAt(64)&&g--,g%1!=0)throw new Error("Invalid base64 input, bad content length.");for(d=o.uint8array?new Uint8Array(0|g):new Array(0|g);m<l.length;)_=n.indexOf(l.charAt(m++))<<2|(u=n.indexOf(l.charAt(m++)))>>4,w=(15&u)<<4|(r=n.indexOf(l.charAt(m++)))>>2,b=(3&r)<<6|(f=n.indexOf(l.charAt(m++))),d[s++]=_,r!==64&&(d[s++]=w),f!==64&&(d[s++]=b);return d}},{"./support":30,"./utils":32}],2:[function(a,y,p){var i=a("./external"),o=a("./stream/DataWorker"),n=a("./stream/Crc32Probe"),l=a("./stream/DataLengthProbe");function _(w,b,u,r,f){this.compressedSize=w,this.uncompressedSize=b,this.crc32=u,this.compression=r,this.compressedContent=f}_.prototype={getContentWorker:function(){var w=new o(i.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new l("data_length")),b=this;return w.on("end",function(){if(this.streamInfo.data_length!==b.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),w},getCompressedWorker:function(){return new o(i.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},_.createWorkerFrom=function(w,b,u){return w.pipe(new n).pipe(new l("uncompressedSize")).pipe(b.compressWorker(u)).pipe(new l("compressedSize")).withStreamInfo("compression",b)},y.exports=_},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(a,y,p){var i=a("./stream/GenericWorker");p.STORE={magic:"\0\0",compressWorker:function(o){return new i("STORE compression")},uncompressWorker:function(){return new i("STORE decompression")}},p.DEFLATE=a("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(a,y,p){var i=a("./utils"),o=function(){for(var n,l=[],_=0;_<256;_++){n=_;for(var w=0;w<8;w++)n=1&n?3988292384^n>>>1:n>>>1;l[_]=n}return l}();y.exports=function(n,l){return n!==void 0&&n.length?i.getTypeOf(n)!=="string"?function(_,w,b,u){var r=o,f=u+b;_^=-1;for(var m=u;m<f;m++)_=_>>>8^r[255&(_^w[m])];return-1^_}(0|l,n,n.length,0):function(_,w,b,u){var r=o,f=u+b;_^=-1;for(var m=u;m<f;m++)_=_>>>8^r[255&(_^w.charCodeAt(m))];return-1^_}(0|l,n,n.length,0):0}},{"./utils":32}],5:[function(a,y,p){p.base64=!1,p.binary=!1,p.dir=!1,p.createFolders=!0,p.date=null,p.compression=null,p.compressionOptions=null,p.comment=null,p.unixPermissions=null,p.dosPermissions=null},{}],6:[function(a,y,p){var i=null;i=typeof Promise<"u"?Promise:a("lie"),y.exports={Promise:i}},{lie:37}],7:[function(a,y,p){var i=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",o=a("pako"),n=a("./utils"),l=a("./stream/GenericWorker"),_=i?"uint8array":"array";function w(b,u){l.call(this,"FlateWorker/"+b),this._pako=null,this._pakoAction=b,this._pakoOptions=u,this.meta={}}p.magic="\b\0",n.inherits(w,l),w.prototype.processChunk=function(b){this.meta=b.meta,this._pako===null&&this._createPako(),this._pako.push(n.transformTo(_,b.data),!1)},w.prototype.flush=function(){l.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},w.prototype.cleanUp=function(){l.prototype.cleanUp.call(this),this._pako=null},w.prototype._createPako=function(){this._pako=new o[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var b=this;this._pako.onData=function(u){b.push({data:u,meta:b.meta})}},p.compressWorker=function(b){return new w("Deflate",b)},p.uncompressWorker=function(){return new w("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(a,y,p){function i(r,f){var m,s="";for(m=0;m<f;m++)s+=String.fromCharCode(255&r),r>>>=8;return s}function o(r,f,m,s,c,d){var g,A,E=r.file,Z=r.compression,B=d!==_.utf8encode,P=n.transformTo("string",d(E.name)),R=n.transformTo("string",_.utf8encode(E.name)),H=E.comment,K=n.transformTo("string",d(H)),k=n.transformTo("string",_.utf8encode(H)),N=R.length!==E.name.length,t=k.length!==H.length,M="",J="",U="",ee=E.dir,j=E.date,Q={crc32:0,compressedSize:0,uncompressedSize:0};f&&!m||(Q.crc32=r.crc32,Q.compressedSize=r.compressedSize,Q.uncompressedSize=r.uncompressedSize);var I=0;f&&(I|=8),B||!N&&!t||(I|=2048);var T=0,Y=0;ee&&(T|=16),c==="UNIX"?(Y=798,T|=function(q,ae){var le=q;return q||(le=ae?16893:33204),(65535&le)<<16}(E.unixPermissions,ee)):(Y=20,T|=function(q){return 63&(q||0)}(E.dosPermissions)),g=j.getUTCHours(),g<<=6,g|=j.getUTCMinutes(),g<<=5,g|=j.getUTCSeconds()/2,A=j.getUTCFullYear()-1980,A<<=4,A|=j.getUTCMonth()+1,A<<=5,A|=j.getUTCDate(),N&&(J=i(1,1)+i(w(P),4)+R,M+="up"+i(J.length,2)+J),t&&(U=i(1,1)+i(w(K),4)+k,M+="uc"+i(U.length,2)+U);var $="";return $+=`
- \0`,$+=i(I,2),$+=Z.magic,$+=i(g,2),$+=i(A,2),$+=i(Q.crc32,4),$+=i(Q.compressedSize,4),$+=i(Q.uncompressedSize,4),$+=i(P.length,2),$+=i(M.length,2),{fileRecord:b.LOCAL_FILE_HEADER+$+P+M,dirRecord:b.CENTRAL_FILE_HEADER+i(Y,2)+$+i(K.length,2)+"\0\0\0\0"+i(T,4)+i(s,4)+P+M+K}}var n=a("../utils"),l=a("../stream/GenericWorker"),_=a("../utf8"),w=a("../crc32"),b=a("../signature");function u(r,f,m,s){l.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=f,this.zipPlatform=m,this.encodeFileName=s,this.streamFiles=r,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}n.inherits(u,l),u.prototype.push=function(r){var f=r.meta.percent||0,m=this.entriesCount,s=this._sources.length;this.accumulate?this.contentBuffer.push(r):(this.bytesWritten+=r.data.length,l.prototype.push.call(this,{data:r.data,meta:{currentFile:this.currentFile,percent:m?(f+100*(m-s-1))/m:100}}))},u.prototype.openedSource=function(r){this.currentSourceOffset=this.bytesWritten,this.currentFile=r.file.name;var f=this.streamFiles&&!r.file.dir;if(f){var m=o(r,f,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:m.fileRecord,meta:{percent:0}})}else this.accumulate=!0},u.prototype.closedSource=function(r){this.accumulate=!1;var f=this.streamFiles&&!r.file.dir,m=o(r,f,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(m.dirRecord),f)this.push({data:function(s){return b.DATA_DESCRIPTOR+i(s.crc32,4)+i(s.compressedSize,4)+i(s.uncompressedSize,4)}(r),meta:{percent:100}});else for(this.push({data:m.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},u.prototype.flush=function(){for(var r=this.bytesWritten,f=0;f<this.dirRecords.length;f++)this.push({data:this.dirRecords[f],meta:{percent:100}});var m=this.bytesWritten-r,s=function(c,d,g,A,E){var Z=n.transformTo("string",E(A));return b.CENTRAL_DIRECTORY_END+"\0\0\0\0"+i(c,2)+i(c,2)+i(d,4)+i(g,4)+i(Z.length,2)+Z}(this.dirRecords.length,m,r,this.zipComment,this.encodeFileName);this.push({data:s,meta:{percent:100}})},u.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},u.prototype.registerPrevious=function(r){this._sources.push(r);var f=this;return r.on("data",function(m){f.processChunk(m)}),r.on("end",function(){f.closedSource(f.previous.streamInfo),f._sources.length?f.prepareNextSource():f.end()}),r.on("error",function(m){f.error(m)}),this},u.prototype.resume=function(){return!!l.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},u.prototype.error=function(r){var f=this._sources;if(!l.prototype.error.call(this,r))return!1;for(var m=0;m<f.length;m++)try{f[m].error(r)}catch{}return!0},u.prototype.lock=function(){l.prototype.lock.call(this);for(var r=this._sources,f=0;f<r.length;f++)r[f].lock()},y.exports=u},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(a,y,p){var i=a("../compressions"),o=a("./ZipFileWorker");p.generateWorker=function(n,l,_){var w=new o(l.streamFiles,_,l.platform,l.encodeFileName),b=0;try{n.forEach(function(u,r){b++;var f=function(d,g){var A=d||g,E=i[A];if(!E)throw new Error(A+" is not a valid compression method !");return E}(r.options.compression,l.compression),m=r.options.compressionOptions||l.compressionOptions||{},s=r.dir,c=r.date;r._compressWorker(f,m).withStreamInfo("file",{name:u,dir:s,date:c,comment:r.comment||"",unixPermissions:r.unixPermissions,dosPermissions:r.dosPermissions}).pipe(w)}),w.entriesCount=b}catch(u){w.error(u)}return w}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(a,y,p){function i(){if(!(this instanceof i))return new i;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var o=new i;for(var n in this)typeof this[n]!="function"&&(o[n]=this[n]);return o}}(i.prototype=a("./object")).loadAsync=a("./load"),i.support=a("./support"),i.defaults=a("./defaults"),i.version="3.9.1",i.loadAsync=function(o,n){return new i().loadAsync(o,n)},i.external=a("./external"),y.exports=i},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(a,y,p){var i=a("./utils"),o=a("./external"),n=a("./utf8"),l=a("./zipEntries"),_=a("./stream/Crc32Probe"),w=a("./nodejsUtils");function b(u){return new o.Promise(function(r,f){var m=u.decompressed.getContentWorker().pipe(new _);m.on("error",function(s){f(s)}).on("end",function(){m.streamInfo.crc32!==u.decompressed.crc32?f(new Error("Corrupted zip : CRC32 mismatch")):r()}).resume()})}y.exports=function(u,r){var f=this;return r=i.extend(r||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:n.utf8decode}),w.isNode&&w.isStream(u)?o.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):i.prepareContent("the loaded zip file",u,!0,r.optimizedBinaryString,r.base64).then(function(m){var s=new l(r);return s.load(m),s}).then(function(m){var s=[o.Promise.resolve(m)],c=m.files;if(r.checkCRC32)for(var d=0;d<c.length;d++)s.push(b(c[d]));return o.Promise.all(s)}).then(function(m){for(var s=m.shift(),c=s.files,d=0;d<c.length;d++){var g=c[d],A=g.fileNameStr,E=i.resolve(g.fileNameStr);f.file(E,g.decompressed,{binary:!0,optimizedBinaryString:!0,date:g.date,dir:g.dir,comment:g.fileCommentStr.length?g.fileCommentStr:null,unixPermissions:g.unixPermissions,dosPermissions:g.dosPermissions,createFolders:r.createFolders}),g.dir||(f.file(E).unsafeOriginalName=A)}return s.zipComment.length&&(f.comment=s.zipComment),f})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(a,y,p){var i=a("../utils"),o=a("../stream/GenericWorker");function n(l,_){o.call(this,"Nodejs stream input adapter for "+l),this._upstreamEnded=!1,this._bindStream(_)}i.inherits(n,o),n.prototype._bindStream=function(l){var _=this;(this._stream=l).pause(),l.on("data",function(w){_.push({data:w,meta:{percent:0}})}).on("error",function(w){_.isPaused?this.generatedError=w:_.error(w)}).on("end",function(){_.isPaused?_._upstreamEnded=!0:_.end()})},n.prototype.pause=function(){return!!o.prototype.pause.call(this)&&(this._stream.pause(),!0)},n.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},y.exports=n},{"../stream/GenericWorker":28,"../utils":32}],13:[function(a,y,p){var i=a("readable-stream").Readable;function o(n,l,_){i.call(this,l),this._helper=n;var w=this;n.on("data",function(b,u){w.push(b)||w._helper.pause(),_&&_(u)}).on("error",function(b){w.emit("error",b)}).on("end",function(){w.push(null)})}a("../utils").inherits(o,i),o.prototype._read=function(){this._helper.resume()},y.exports=o},{"../utils":32,"readable-stream":16}],14:[function(a,y,p){y.exports={isNode:typeof Buffer<"u",newBufferFrom:function(i,o){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(i,o);if(typeof i=="number")throw new Error('The "data" argument must not be a number');return new Buffer(i,o)},allocBuffer:function(i){if(Buffer.alloc)return Buffer.alloc(i);var o=new Buffer(i);return o.fill(0),o},isBuffer:function(i){return Buffer.isBuffer(i)},isStream:function(i){return i&&typeof i.on=="function"&&typeof i.pause=="function"&&typeof i.resume=="function"}}},{}],15:[function(a,y,p){function i(E,Z,B){var P,R=n.getTypeOf(Z),H=n.extend(B||{},w);H.date=H.date||new Date,H.compression!==null&&(H.compression=H.compression.toUpperCase()),typeof H.unixPermissions=="string"&&(H.unixPermissions=parseInt(H.unixPermissions,8)),H.unixPermissions&&16384&H.unixPermissions&&(H.dir=!0),H.dosPermissions&&16&H.dosPermissions&&(H.dir=!0),H.dir&&(E=c(E)),H.createFolders&&(P=s(E))&&d.call(this,P,!0);var K=R==="string"&&H.binary===!1&&H.base64===!1;B&&B.binary!==void 0||(H.binary=!K),(Z instanceof b&&Z.uncompressedSize===0||H.dir||!Z||Z.length===0)&&(H.base64=!1,H.binary=!0,Z="",H.compression="STORE",R="string");var k=null;k=Z instanceof b||Z instanceof l?Z:f.isNode&&f.isStream(Z)?new m(E,Z):n.prepareContent(E,Z,H.binary,H.optimizedBinaryString,H.base64);var N=new u(E,k,H);this.files[E]=N}var o=a("./utf8"),n=a("./utils"),l=a("./stream/GenericWorker"),_=a("./stream/StreamHelper"),w=a("./defaults"),b=a("./compressedObject"),u=a("./zipObject"),r=a("./generate"),f=a("./nodejsUtils"),m=a("./nodejs/NodejsStreamInputAdapter"),s=function(E){E.slice(-1)==="/"&&(E=E.substring(0,E.length-1));var Z=E.lastIndexOf("/");return 0<Z?E.substring(0,Z):""},c=function(E){return E.slice(-1)!=="/"&&(E+="/"),E},d=function(E,Z){return Z=Z!==void 0?Z:w.createFolders,E=c(E),this.files[E]||i.call(this,E,null,{dir:!0,createFolders:Z}),this.files[E]};function g(E){return Object.prototype.toString.call(E)==="[object RegExp]"}var A={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(E){var Z,B,P;for(Z in this.files)P=this.files[Z],(B=Z.slice(this.root.length,Z.length))&&Z.slice(0,this.root.length)===this.root&&E(B,P)},filter:function(E){var Z=[];return this.forEach(function(B,P){E(B,P)&&Z.push(P)}),Z},file:function(E,Z,B){if(arguments.length!==1)return E=this.root+E,i.call(this,E,Z,B),this;if(g(E)){var P=E;return this.filter(function(H,K){return!K.dir&&P.test(H)})}var R=this.files[this.root+E];return R&&!R.dir?R:null},folder:function(E){if(!E)return this;if(g(E))return this.filter(function(R,H){return H.dir&&E.test(R)});var Z=this.root+E,B=d.call(this,Z),P=this.clone();return P.root=B.name,P},remove:function(E){E=this.root+E;var Z=this.files[E];if(Z||(E.slice(-1)!=="/"&&(E+="/"),Z=this.files[E]),Z&&!Z.dir)delete this.files[E];else for(var B=this.filter(function(R,H){return H.name.slice(0,E.length)===E}),P=0;P<B.length;P++)delete this.files[B[P].name];return this},generate:function(E){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(E){var Z,B={};try{if((B=n.extend(E||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:o.utf8encode})).type=B.type.toLowerCase(),B.compression=B.compression.toUpperCase(),B.type==="binarystring"&&(B.type="string"),!B.type)throw new Error("No output type specified.");n.checkSupport(B.type),B.platform!=="darwin"&&B.platform!=="freebsd"&&B.platform!=="linux"&&B.platform!=="sunos"||(B.platform="UNIX"),B.platform==="win32"&&(B.platform="DOS");var P=B.comment||this.comment||"";Z=r.generateWorker(this,B,P)}catch(R){(Z=new l("error")).error(R)}return new _(Z,B.type||"string",B.mimeType)},generateAsync:function(E,Z){return this.generateInternalStream(E).accumulate(Z)},generateNodeStream:function(E,Z){return(E=E||{}).type||(E.type="nodebuffer"),this.generateInternalStream(E).toNodejsStream(Z)}};y.exports=A},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(a,y,p){y.exports=a("stream")},{stream:void 0}],17:[function(a,y,p){var i=a("./DataReader");function o(n){i.call(this,n);for(var l=0;l<this.data.length;l++)n[l]=255&n[l]}a("../utils").inherits(o,i),o.prototype.byteAt=function(n){return this.data[this.zero+n]},o.prototype.lastIndexOfSignature=function(n){for(var l=n.charCodeAt(0),_=n.charCodeAt(1),w=n.charCodeAt(2),b=n.charCodeAt(3),u=this.length-4;0<=u;--u)if(this.data[u]===l&&this.data[u+1]===_&&this.data[u+2]===w&&this.data[u+3]===b)return u-this.zero;return-1},o.prototype.readAndCheckSignature=function(n){var l=n.charCodeAt(0),_=n.charCodeAt(1),w=n.charCodeAt(2),b=n.charCodeAt(3),u=this.readData(4);return l===u[0]&&_===u[1]&&w===u[2]&&b===u[3]},o.prototype.readData=function(n){if(this.checkOffset(n),n===0)return[];var l=this.data.slice(this.zero+this.index,this.zero+this.index+n);return this.index+=n,l},y.exports=o},{"../utils":32,"./DataReader":18}],18:[function(a,y,p){var i=a("../utils");function o(n){this.data=n,this.length=n.length,this.index=0,this.zero=0}o.prototype={checkOffset:function(n){this.checkIndex(this.index+n)},checkIndex:function(n){if(this.length<this.zero+n||n<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+n+"). Corrupted zip ?")},setIndex:function(n){this.checkIndex(n),this.index=n},skip:function(n){this.setIndex(this.index+n)},byteAt:function(n){},readInt:function(n){var l,_=0;for(this.checkOffset(n),l=this.index+n-1;l>=this.index;l--)_=(_<<8)+this.byteAt(l);return this.index+=n,_},readString:function(n){return i.transformTo("string",this.readData(n))},readData:function(n){},lastIndexOfSignature:function(n){},readAndCheckSignature:function(n){},readDate:function(){var n=this.readInt(4);return new Date(Date.UTC(1980+(n>>25&127),(n>>21&15)-1,n>>16&31,n>>11&31,n>>5&63,(31&n)<<1))}},y.exports=o},{"../utils":32}],19:[function(a,y,p){var i=a("./Uint8ArrayReader");function o(n){i.call(this,n)}a("../utils").inherits(o,i),o.prototype.readData=function(n){this.checkOffset(n);var l=this.data.slice(this.zero+this.index,this.zero+this.index+n);return this.index+=n,l},y.exports=o},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(a,y,p){var i=a("./DataReader");function o(n){i.call(this,n)}a("../utils").inherits(o,i),o.prototype.byteAt=function(n){return this.data.charCodeAt(this.zero+n)},o.prototype.lastIndexOfSignature=function(n){return this.data.lastIndexOf(n)-this.zero},o.prototype.readAndCheckSignature=function(n){return n===this.readData(4)},o.prototype.readData=function(n){this.checkOffset(n);var l=this.data.slice(this.zero+this.index,this.zero+this.index+n);return this.index+=n,l},y.exports=o},{"../utils":32,"./DataReader":18}],21:[function(a,y,p){var i=a("./ArrayReader");function o(n){i.call(this,n)}a("../utils").inherits(o,i),o.prototype.readData=function(n){if(this.checkOffset(n),n===0)return new Uint8Array(0);var l=this.data.subarray(this.zero+this.index,this.zero+this.index+n);return this.index+=n,l},y.exports=o},{"../utils":32,"./ArrayReader":17}],22:[function(a,y,p){var i=a("../utils"),o=a("../support"),n=a("./ArrayReader"),l=a("./StringReader"),_=a("./NodeBufferReader"),w=a("./Uint8ArrayReader");y.exports=function(b){var u=i.getTypeOf(b);return i.checkSupport(u),u!=="string"||o.uint8array?u==="nodebuffer"?new _(b):o.uint8array?new w(i.transformTo("uint8array",b)):new n(i.transformTo("array",b)):new l(b)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(a,y,p){p.LOCAL_FILE_HEADER="PK",p.CENTRAL_FILE_HEADER="PK",p.CENTRAL_DIRECTORY_END="PK",p.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",p.ZIP64_CENTRAL_DIRECTORY_END="PK",p.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(a,y,p){var i=a("./GenericWorker"),o=a("../utils");function n(l){i.call(this,"ConvertWorker to "+l),this.destType=l}o.inherits(n,i),n.prototype.processChunk=function(l){this.push({data:o.transformTo(this.destType,l.data),meta:l.meta})},y.exports=n},{"../utils":32,"./GenericWorker":28}],25:[function(a,y,p){var i=a("./GenericWorker"),o=a("../crc32");function n(){i.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}a("../utils").inherits(n,i),n.prototype.processChunk=function(l){this.streamInfo.crc32=o(l.data,this.streamInfo.crc32||0),this.push(l)},y.exports=n},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(a,y,p){var i=a("../utils"),o=a("./GenericWorker");function n(l){o.call(this,"DataLengthProbe for "+l),this.propName=l,this.withStreamInfo(l,0)}i.inherits(n,o),n.prototype.processChunk=function(l){if(l){var _=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=_+l.data.length}o.prototype.processChunk.call(this,l)},y.exports=n},{"../utils":32,"./GenericWorker":28}],27:[function(a,y,p){var i=a("../utils"),o=a("./GenericWorker");function n(l){o.call(this,"DataWorker");var _=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,l.then(function(w){_.dataIsReady=!0,_.data=w,_.max=w&&w.length||0,_.type=i.getTypeOf(w),_.isPaused||_._tickAndRepeat()},function(w){_.error(w)})}i.inherits(n,o),n.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this.data=null},n.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,i.delay(this._tickAndRepeat,[],this)),!0)},n.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(i.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},n.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var l=null,_=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":l=this.data.substring(this.index,_);break;case"uint8array":l=this.data.subarray(this.index,_);break;case"array":case"nodebuffer":l=this.data.slice(this.index,_)}return this.index=_,this.push({data:l,meta:{percent:this.max?this.index/this.max*100:0}})},y.exports=n},{"../utils":32,"./GenericWorker":28}],28:[function(a,y,p){function i(o){this.name=o||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}i.prototype={push:function(o){this.emit("data",o)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(o){this.emit("error",o)}return!0},error:function(o){return!this.isFinished&&(this.isPaused?this.generatedError=o:(this.isFinished=!0,this.emit("error",o),this.previous&&this.previous.error(o),this.cleanUp()),!0)},on:function(o,n){return this._listeners[o].push(n),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(o,n){if(this._listeners[o])for(var l=0;l<this._listeners[o].length;l++)this._listeners[o][l].call(this,n)},pipe:function(o){return o.registerPrevious(this)},registerPrevious:function(o){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=o.streamInfo,this.mergeStreamInfo(),this.previous=o;var n=this;return o.on("data",function(l){n.processChunk(l)}),o.on("end",function(){n.end()}),o.on("error",function(l){n.error(l)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var o=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),o=!0),this.previous&&this.previous.resume(),!o},flush:function(){},processChunk:function(o){this.push(o)},withStreamInfo:function(o,n){return this.extraStreamInfo[o]=n,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var o in this.extraStreamInfo)this.extraStreamInfo.hasOwnProperty(o)&&(this.streamInfo[o]=this.extraStreamInfo[o])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var o="Worker "+this.name;return this.previous?this.previous+" -> "+o:o}},y.exports=i},{}],29:[function(a,y,p){var i=a("../utils"),o=a("./ConvertWorker"),n=a("./GenericWorker"),l=a("../base64"),_=a("../support"),w=a("../external"),b=null;if(_.nodestream)try{b=a("../nodejs/NodejsStreamOutputAdapter")}catch{}function u(f,m){return new w.Promise(function(s,c){var d=[],g=f._internalType,A=f._outputType,E=f._mimeType;f.on("data",function(Z,B){d.push(Z),m&&m(B)}).on("error",function(Z){d=[],c(Z)}).on("end",function(){try{var Z=function(B,P,R){switch(B){case"blob":return i.newBlob(i.transformTo("arraybuffer",P),R);case"base64":return l.encode(P);default:return i.transformTo(B,P)}}(A,function(B,P){var R,H=0,K=null,k=0;for(R=0;R<P.length;R++)k+=P[R].length;switch(B){case"string":return P.join("");case"array":return Array.prototype.concat.apply([],P);case"uint8array":for(K=new Uint8Array(k),R=0;R<P.length;R++)K.set(P[R],H),H+=P[R].length;return K;case"nodebuffer":return Buffer.concat(P);default:throw new Error("concat : unsupported type '"+B+"'")}}(g,d),E);s(Z)}catch(B){c(B)}d=[]}).resume()})}function r(f,m,s){var c=m;switch(m){case"blob":case"arraybuffer":c="uint8array";break;case"base64":c="string"}try{this._internalType=c,this._outputType=m,this._mimeType=s,i.checkSupport(c),this._worker=f.pipe(new o(c)),f.lock()}catch(d){this._worker=new n("error"),this._worker.error(d)}}r.prototype={accumulate:function(f){return u(this,f)},on:function(f,m){var s=this;return f==="data"?this._worker.on(f,function(c){m.call(s,c.data,c.meta)}):this._worker.on(f,function(){i.delay(m,arguments,s)}),this},resume:function(){return i.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(f){if(i.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new b(this,{objectMode:this._outputType!=="nodebuffer"},f)}},y.exports=r},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(a,y,p){if(p.base64=!0,p.array=!0,p.string=!0,p.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",p.nodebuffer=typeof Buffer<"u",p.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")p.blob=!1;else{var i=new ArrayBuffer(0);try{p.blob=new Blob([i],{type:"application/zip"}).size===0}catch{try{var o=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);o.append(i),p.blob=o.getBlob("application/zip").size===0}catch{p.blob=!1}}}try{p.nodestream=!!a("readable-stream").Readable}catch{p.nodestream=!1}},{"readable-stream":16}],31:[function(a,y,p){for(var i=a("./utils"),o=a("./support"),n=a("./nodejsUtils"),l=a("./stream/GenericWorker"),_=new Array(256),w=0;w<256;w++)_[w]=252<=w?6:248<=w?5:240<=w?4:224<=w?3:192<=w?2:1;_[254]=_[254]=1;function b(){l.call(this,"utf-8 decode"),this.leftOver=null}function u(){l.call(this,"utf-8 encode")}p.utf8encode=function(r){return o.nodebuffer?n.newBufferFrom(r,"utf-8"):function(f){var m,s,c,d,g,A=f.length,E=0;for(d=0;d<A;d++)(64512&(s=f.charCodeAt(d)))==55296&&d+1<A&&(64512&(c=f.charCodeAt(d+1)))==56320&&(s=65536+(s-55296<<10)+(c-56320),d++),E+=s<128?1:s<2048?2:s<65536?3:4;for(m=o.uint8array?new Uint8Array(E):new Array(E),d=g=0;g<E;d++)(64512&(s=f.charCodeAt(d)))==55296&&d+1<A&&(64512&(c=f.charCodeAt(d+1)))==56320&&(s=65536+(s-55296<<10)+(c-56320),d++),s<128?m[g++]=s:(s<2048?m[g++]=192|s>>>6:(s<65536?m[g++]=224|s>>>12:(m[g++]=240|s>>>18,m[g++]=128|s>>>12&63),m[g++]=128|s>>>6&63),m[g++]=128|63&s);return m}(r)},p.utf8decode=function(r){return o.nodebuffer?i.transformTo("nodebuffer",r).toString("utf-8"):function(f){var m,s,c,d,g=f.length,A=new Array(2*g);for(m=s=0;m<g;)if((c=f[m++])<128)A[s++]=c;else if(4<(d=_[c]))A[s++]=65533,m+=d-1;else{for(c&=d===2?31:d===3?15:7;1<d&&m<g;)c=c<<6|63&f[m++],d--;1<d?A[s++]=65533:c<65536?A[s++]=c:(c-=65536,A[s++]=55296|c>>10&1023,A[s++]=56320|1023&c)}return A.length!==s&&(A.subarray?A=A.subarray(0,s):A.length=s),i.applyFromCharCode(A)}(r=i.transformTo(o.uint8array?"uint8array":"array",r))},i.inherits(b,l),b.prototype.processChunk=function(r){var f=i.transformTo(o.uint8array?"uint8array":"array",r.data);if(this.leftOver&&this.leftOver.length){if(o.uint8array){var m=f;(f=new Uint8Array(m.length+this.leftOver.length)).set(this.leftOver,0),f.set(m,this.leftOver.length)}else f=this.leftOver.concat(f);this.leftOver=null}var s=function(d,g){var A;for((g=g||d.length)>d.length&&(g=d.length),A=g-1;0<=A&&(192&d[A])==128;)A--;return A<0||A===0?g:A+_[d[A]]>g?A:g}(f),c=f;s!==f.length&&(o.uint8array?(c=f.subarray(0,s),this.leftOver=f.subarray(s,f.length)):(c=f.slice(0,s),this.leftOver=f.slice(s,f.length))),this.push({data:p.utf8decode(c),meta:r.meta})},b.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:p.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},p.Utf8DecodeWorker=b,i.inherits(u,l),u.prototype.processChunk=function(r){this.push({data:p.utf8encode(r.data),meta:r.meta})},p.Utf8EncodeWorker=u},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(a,y,p){var i=a("./support"),o=a("./base64"),n=a("./nodejsUtils"),l=a("set-immediate-shim"),_=a("./external");function w(s){return s}function b(s,c){for(var d=0;d<s.length;++d)c[d]=255&s.charCodeAt(d);return c}p.newBlob=function(s,c){p.checkSupport("blob");try{return new Blob([s],{type:c})}catch{try{var d=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return d.append(s),d.getBlob(c)}catch{throw new Error("Bug : can't construct the Blob.")}}};var u={stringifyByChunk:function(s,c,d){var g=[],A=0,E=s.length;if(E<=d)return String.fromCharCode.apply(null,s);for(;A<E;)c==="array"||c==="nodebuffer"?g.push(String.fromCharCode.apply(null,s.slice(A,Math.min(A+d,E)))):g.push(String.fromCharCode.apply(null,s.subarray(A,Math.min(A+d,E)))),A+=d;return g.join("")},stringifyByChar:function(s){for(var c="",d=0;d<s.length;d++)c+=String.fromCharCode(s[d]);return c},applyCanBeUsed:{uint8array:function(){try{return i.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}}(),nodebuffer:function(){try{return i.nodebuffer&&String.fromCharCode.apply(null,n.allocBuffer(1)).length===1}catch{return!1}}()}};function r(s){var c=65536,d=p.getTypeOf(s),g=!0;if(d==="uint8array"?g=u.applyCanBeUsed.uint8array:d==="nodebuffer"&&(g=u.applyCanBeUsed.nodebuffer),g)for(;1<c;)try{return u.stringifyByChunk(s,d,c)}catch{c=Math.floor(c/2)}return u.stringifyByChar(s)}function f(s,c){for(var d=0;d<s.length;d++)c[d]=s[d];return c}p.applyFromCharCode=r;var m={};m.string={string:w,array:function(s){return b(s,new Array(s.length))},arraybuffer:function(s){return m.string.uint8array(s).buffer},uint8array:function(s){return b(s,new Uint8Array(s.length))},nodebuffer:function(s){return b(s,n.allocBuffer(s.length))}},m.array={string:r,array:w,arraybuffer:function(s){return new Uint8Array(s).buffer},uint8array:function(s){return new Uint8Array(s)},nodebuffer:function(s){return n.newBufferFrom(s)}},m.arraybuffer={string:function(s){return r(new Uint8Array(s))},array:function(s){return f(new Uint8Array(s),new Array(s.byteLength))},arraybuffer:w,uint8array:function(s){return new Uint8Array(s)},nodebuffer:function(s){return n.newBufferFrom(new Uint8Array(s))}},m.uint8array={string:r,array:function(s){return f(s,new Array(s.length))},arraybuffer:function(s){return s.buffer},uint8array:w,nodebuffer:function(s){return n.newBufferFrom(s)}},m.nodebuffer={string:r,array:function(s){return f(s,new Array(s.length))},arraybuffer:function(s){return m.nodebuffer.uint8array(s).buffer},uint8array:function(s){return f(s,new Uint8Array(s.length))},nodebuffer:w},p.transformTo=function(s,c){if(c=c||"",!s)return c;p.checkSupport(s);var d=p.getTypeOf(c);return m[d][s](c)},p.resolve=function(s){for(var c=s.split("/"),d=[],g=0;g<c.length;g++){var A=c[g];A==="."||A===""&&g!==0&&g!==c.length-1||(A===".."?d.pop():d.push(A))}return d.join("/")},p.getTypeOf=function(s){return typeof s=="string"?"string":Object.prototype.toString.call(s)==="[object Array]"?"array":i.nodebuffer&&n.isBuffer(s)?"nodebuffer":i.uint8array&&s instanceof Uint8Array?"uint8array":i.arraybuffer&&s instanceof ArrayBuffer?"arraybuffer":void 0},p.checkSupport=function(s){if(!i[s.toLowerCase()])throw new Error(s+" is not supported by this platform")},p.MAX_VALUE_16BITS=65535,p.MAX_VALUE_32BITS=-1,p.pretty=function(s){var c,d,g="";for(d=0;d<(s||"").length;d++)g+="\\x"+((c=s.charCodeAt(d))<16?"0":"")+c.toString(16).toUpperCase();return g},p.delay=function(s,c,d){l(function(){s.apply(d||null,c||[])})},p.inherits=function(s,c){function d(){}d.prototype=c.prototype,s.prototype=new d},p.extend=function(){var s,c,d={};for(s=0;s<arguments.length;s++)for(c in arguments[s])arguments[s].hasOwnProperty(c)&&d[c]===void 0&&(d[c]=arguments[s][c]);return d},p.prepareContent=function(s,c,d,g,A){return _.Promise.resolve(c).then(function(E){return i.blob&&(E instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(E))!==-1)&&typeof FileReader<"u"?new _.Promise(function(Z,B){var P=new FileReader;P.onload=function(R){Z(R.target.result)},P.onerror=function(R){B(R.target.error)},P.readAsArrayBuffer(E)}):E}).then(function(E){var Z=p.getTypeOf(E);return Z?(Z==="arraybuffer"?E=p.transformTo("uint8array",E):Z==="string"&&(A?E=o.decode(E):d&&g!==!0&&(E=function(B){return b(B,i.uint8array?new Uint8Array(B.length):new Array(B.length))}(E))),E):_.Promise.reject(new Error("Can't read the data of '"+s+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,"set-immediate-shim":54}],33:[function(a,y,p){var i=a("./reader/readerFor"),o=a("./utils"),n=a("./signature"),l=a("./zipEntry"),_=(a("./utf8"),a("./support"));function w(b){this.files=[],this.loadOptions=b}w.prototype={checkSignature:function(b){if(!this.reader.readAndCheckSignature(b)){this.reader.index-=4;var u=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+o.pretty(u)+", expected "+o.pretty(b)+")")}},isSignature:function(b,u){var r=this.reader.index;this.reader.setIndex(b);var f=this.reader.readString(4)===u;return this.reader.setIndex(r),f},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var b=this.reader.readData(this.zipCommentLength),u=_.uint8array?"uint8array":"array",r=o.transformTo(u,b);this.zipComment=this.loadOptions.decodeFileName(r)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var b,u,r,f=this.zip64EndOfCentralSize-44;0<f;)b=this.reader.readInt(2),u=this.reader.readInt(4),r=this.reader.readData(u),this.zip64ExtensibleData[b]={id:b,length:u,value:r}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var b,u;for(b=0;b<this.files.length;b++)u=this.files[b],this.reader.setIndex(u.localHeaderOffset),this.checkSignature(n.LOCAL_FILE_HEADER),u.readLocalPart(this.reader),u.handleUTF8(),u.processAttributes()},readCentralDir:function(){var b;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(n.CENTRAL_FILE_HEADER);)(b=new l({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(b);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var b=this.reader.lastIndexOfSignature(n.CENTRAL_DIRECTORY_END);if(b<0)throw this.isSignature(0,n.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(b);var u=b;if(this.checkSignature(n.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===o.MAX_VALUE_16BITS||this.diskWithCentralDirStart===o.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===o.MAX_VALUE_16BITS||this.centralDirRecords===o.MAX_VALUE_16BITS||this.centralDirSize===o.MAX_VALUE_32BITS||this.centralDirOffset===o.MAX_VALUE_32BITS){if(this.zip64=!0,(b=this.reader.lastIndexOfSignature(n.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(b),this.checkSignature(n.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,n.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(n.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(n.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var r=this.centralDirOffset+this.centralDirSize;this.zip64&&(r+=20,r+=12+this.zip64EndOfCentralSize);var f=u-r;if(0<f)this.isSignature(u,n.CENTRAL_FILE_HEADER)||(this.reader.zero=f);else if(f<0)throw new Error("Corrupted zip: missing "+Math.abs(f)+" bytes.")},prepareReader:function(b){this.reader=i(b)},load:function(b){this.prepareReader(b),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},y.exports=w},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utf8":31,"./utils":32,"./zipEntry":34}],34:[function(a,y,p){var i=a("./reader/readerFor"),o=a("./utils"),n=a("./compressedObject"),l=a("./crc32"),_=a("./utf8"),w=a("./compressions"),b=a("./support");function u(r,f){this.options=r,this.loadOptions=f}u.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(r){var f,m;if(r.skip(22),this.fileNameLength=r.readInt(2),m=r.readInt(2),this.fileName=r.readData(this.fileNameLength),r.skip(m),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((f=function(s){for(var c in w)if(w.hasOwnProperty(c)&&w[c].magic===s)return w[c];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+o.pretty(this.compressionMethod)+" unknown (inner file : "+o.transformTo("string",this.fileName)+")");this.decompressed=new n(this.compressedSize,this.uncompressedSize,this.crc32,f,r.readData(this.compressedSize))},readCentralPart:function(r){this.versionMadeBy=r.readInt(2),r.skip(2),this.bitFlag=r.readInt(2),this.compressionMethod=r.readString(2),this.date=r.readDate(),this.crc32=r.readInt(4),this.compressedSize=r.readInt(4),this.uncompressedSize=r.readInt(4);var f=r.readInt(2);if(this.extraFieldsLength=r.readInt(2),this.fileCommentLength=r.readInt(2),this.diskNumberStart=r.readInt(2),this.internalFileAttributes=r.readInt(2),this.externalFileAttributes=r.readInt(4),this.localHeaderOffset=r.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");r.skip(f),this.readExtraFields(r),this.parseZIP64ExtraField(r),this.fileComment=r.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var r=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),r==0&&(this.dosPermissions=63&this.externalFileAttributes),r==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(r){if(this.extraFields[1]){var f=i(this.extraFields[1].value);this.uncompressedSize===o.MAX_VALUE_32BITS&&(this.uncompressedSize=f.readInt(8)),this.compressedSize===o.MAX_VALUE_32BITS&&(this.compressedSize=f.readInt(8)),this.localHeaderOffset===o.MAX_VALUE_32BITS&&(this.localHeaderOffset=f.readInt(8)),this.diskNumberStart===o.MAX_VALUE_32BITS&&(this.diskNumberStart=f.readInt(4))}},readExtraFields:function(r){var f,m,s,c=r.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});r.index+4<c;)f=r.readInt(2),m=r.readInt(2),s=r.readData(m),this.extraFields[f]={id:f,length:m,value:s};r.setIndex(c)},handleUTF8:function(){var r=b.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=_.utf8decode(this.fileName),this.fileCommentStr=_.utf8decode(this.fileComment);else{var f=this.findExtraFieldUnicodePath();if(f!==null)this.fileNameStr=f;else{var m=o.transformTo(r,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(m)}var s=this.findExtraFieldUnicodeComment();if(s!==null)this.fileCommentStr=s;else{var c=o.transformTo(r,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(c)}}},findExtraFieldUnicodePath:function(){var r=this.extraFields[28789];if(r){var f=i(r.value);return f.readInt(1)!==1||l(this.fileName)!==f.readInt(4)?null:_.utf8decode(f.readData(r.length-5))}return null},findExtraFieldUnicodeComment:function(){var r=this.extraFields[25461];if(r){var f=i(r.value);return f.readInt(1)!==1||l(this.fileComment)!==f.readInt(4)?null:_.utf8decode(f.readData(r.length-5))}return null}},y.exports=u},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(a,y,p){function i(f,m,s){this.name=f,this.dir=s.dir,this.date=s.date,this.comment=s.comment,this.unixPermissions=s.unixPermissions,this.dosPermissions=s.dosPermissions,this._data=m,this._dataBinary=s.binary,this.options={compression:s.compression,compressionOptions:s.compressionOptions}}var o=a("./stream/StreamHelper"),n=a("./stream/DataWorker"),l=a("./utf8"),_=a("./compressedObject"),w=a("./stream/GenericWorker");i.prototype={internalStream:function(f){var m=null,s="string";try{if(!f)throw new Error("No output type specified.");var c=(s=f.toLowerCase())==="string"||s==="text";s!=="binarystring"&&s!=="text"||(s="string"),m=this._decompressWorker();var d=!this._dataBinary;d&&!c&&(m=m.pipe(new l.Utf8EncodeWorker)),!d&&c&&(m=m.pipe(new l.Utf8DecodeWorker))}catch(g){(m=new w("error")).error(g)}return new o(m,s,"")},async:function(f,m){return this.internalStream(f).accumulate(m)},nodeStream:function(f,m){return this.internalStream(f||"nodebuffer").toNodejsStream(m)},_compressWorker:function(f,m){if(this._data instanceof _&&this._data.compression.magic===f.magic)return this._data.getCompressedWorker();var s=this._decompressWorker();return this._dataBinary||(s=s.pipe(new l.Utf8EncodeWorker)),_.createWorkerFrom(s,f,m)},_decompressWorker:function(){return this._data instanceof _?this._data.getContentWorker():this._data instanceof w?this._data:new n(this._data)}};for(var b=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],u=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},r=0;r<b.length;r++)i.prototype[b[r]]=u;y.exports=i},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(a,y,p){(function(i){var o,n,l=i.MutationObserver||i.WebKitMutationObserver;if(l){var _=0,w=new l(f),b=i.document.createTextNode("");w.observe(b,{characterData:!0}),o=function(){b.data=_=++_%2}}else if(i.setImmediate||i.MessageChannel===void 0)o="document"in i&&"onreadystatechange"in i.document.createElement("script")?function(){var m=i.document.createElement("script");m.onreadystatechange=function(){f(),m.onreadystatechange=null,m.parentNode.removeChild(m),m=null},i.document.documentElement.appendChild(m)}:function(){setTimeout(f,0)};else{var u=new i.MessageChannel;u.port1.onmessage=f,o=function(){u.port2.postMessage(0)}}var r=[];function f(){var m,s;n=!0;for(var c=r.length;c;){for(s=r,r=[],m=-1;++m<c;)s[m]();c=r.length}n=!1}y.exports=function(m){r.push(m)!==1||n||o()}}).call(this,typeof Be<"u"?Be:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(a,y,p){var i=a("immediate");function o(){}var n={},l=["REJECTED"],_=["FULFILLED"],w=["PENDING"];function b(c){if(typeof c!="function")throw new TypeError("resolver must be a function");this.state=w,this.queue=[],this.outcome=void 0,c!==o&&m(this,c)}function u(c,d,g){this.promise=c,typeof d=="function"&&(this.onFulfilled=d,this.callFulfilled=this.otherCallFulfilled),typeof g=="function"&&(this.onRejected=g,this.callRejected=this.otherCallRejected)}function r(c,d,g){i(function(){var A;try{A=d(g)}catch(E){return n.reject(c,E)}A===c?n.reject(c,new TypeError("Cannot resolve promise with itself")):n.resolve(c,A)})}function f(c){var d=c&&c.then;if(c&&(typeof c=="object"||typeof c=="function")&&typeof d=="function")return function(){d.apply(c,arguments)}}function m(c,d){var g=!1;function A(B){g||(g=!0,n.reject(c,B))}function E(B){g||(g=!0,n.resolve(c,B))}var Z=s(function(){d(E,A)});Z.status==="error"&&A(Z.value)}function s(c,d){var g={};try{g.value=c(d),g.status="success"}catch(A){g.status="error",g.value=A}return g}(y.exports=b).prototype.finally=function(c){if(typeof c!="function")return this;var d=this.constructor;return this.then(function(g){return d.resolve(c()).then(function(){return g})},function(g){return d.resolve(c()).then(function(){throw g})})},b.prototype.catch=function(c){return this.then(null,c)},b.prototype.then=function(c,d){if(typeof c!="function"&&this.state===_||typeof d!="function"&&this.state===l)return this;var g=new this.constructor(o);return this.state!==w?r(g,this.state===_?c:d,this.outcome):this.queue.push(new u(g,c,d)),g},u.prototype.callFulfilled=function(c){n.resolve(this.promise,c)},u.prototype.otherCallFulfilled=function(c){r(this.promise,this.onFulfilled,c)},u.prototype.callRejected=function(c){n.reject(this.promise,c)},u.prototype.otherCallRejected=function(c){r(this.promise,this.onRejected,c)},n.resolve=function(c,d){var g=s(f,d);if(g.status==="error")return n.reject(c,g.value);var A=g.value;if(A)m(c,A);else{c.state=_,c.outcome=d;for(var E=-1,Z=c.queue.length;++E<Z;)c.queue[E].callFulfilled(d)}return c},n.reject=function(c,d){c.state=l,c.outcome=d;for(var g=-1,A=c.queue.length;++g<A;)c.queue[g].callRejected(d);return c},b.resolve=function(c){return c instanceof this?c:n.resolve(new this(o),c)},b.reject=function(c){var d=new this(o);return n.reject(d,c)},b.all=function(c){var d=this;if(Object.prototype.toString.call(c)!=="[object Array]")return this.reject(new TypeError("must be an array"));var g=c.length,A=!1;if(!g)return this.resolve([]);for(var E=new Array(g),Z=0,B=-1,P=new this(o);++B<g;)R(c[B],B);return P;function R(H,K){d.resolve(H).then(function(k){E[K]=k,++Z!==g||A||(A=!0,n.resolve(P,E))},function(k){A||(A=!0,n.reject(P,k))})}},b.race=function(c){var d=this;if(Object.prototype.toString.call(c)!=="[object Array]")return this.reject(new TypeError("must be an array"));var g=c.length,A=!1;if(!g)return this.resolve([]);for(var E=-1,Z=new this(o);++E<g;)B=c[E],d.resolve(B).then(function(P){A||(A=!0,n.resolve(Z,P))},function(P){A||(A=!0,n.reject(Z,P))});var B;return Z}},{immediate:36}],38:[function(a,y,p){var i={};(0,a("./lib/utils/common").assign)(i,a("./lib/deflate"),a("./lib/inflate"),a("./lib/zlib/constants")),y.exports=i},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(a,y,p){var i=a("./zlib/deflate"),o=a("./utils/common"),n=a("./utils/strings"),l=a("./zlib/messages"),_=a("./zlib/zstream"),w=Object.prototype.toString,b=0,u=-1,r=0,f=8;function m(c){if(!(this instanceof m))return new m(c);this.options=o.assign({level:u,method:f,chunkSize:16384,windowBits:15,memLevel:8,strategy:r,to:""},c||{});var d=this.options;d.raw&&0<d.windowBits?d.windowBits=-d.windowBits:d.gzip&&0<d.windowBits&&d.windowBits<16&&(d.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new _,this.strm.avail_out=0;var g=i.deflateInit2(this.strm,d.level,d.method,d.windowBits,d.memLevel,d.strategy);if(g!==b)throw new Error(l[g]);if(d.header&&i.deflateSetHeader(this.strm,d.header),d.dictionary){var A;if(A=typeof d.dictionary=="string"?n.string2buf(d.dictionary):w.call(d.dictionary)==="[object ArrayBuffer]"?new Uint8Array(d.dictionary):d.dictionary,(g=i.deflateSetDictionary(this.strm,A))!==b)throw new Error(l[g]);this._dict_set=!0}}function s(c,d){var g=new m(d);if(g.push(c,!0),g.err)throw g.msg||l[g.err];return g.result}m.prototype.push=function(c,d){var g,A,E=this.strm,Z=this.options.chunkSize;if(this.ended)return!1;A=d===~~d?d:d===!0?4:0,typeof c=="string"?E.input=n.string2buf(c):w.call(c)==="[object ArrayBuffer]"?E.input=new Uint8Array(c):E.input=c,E.next_in=0,E.avail_in=E.input.length;do{if(E.avail_out===0&&(E.output=new o.Buf8(Z),E.next_out=0,E.avail_out=Z),(g=i.deflate(E,A))!==1&&g!==b)return this.onEnd(g),!(this.ended=!0);E.avail_out!==0&&(E.avail_in!==0||A!==4&&A!==2)||(this.options.to==="string"?this.onData(n.buf2binstring(o.shrinkBuf(E.output,E.next_out))):this.onData(o.shrinkBuf(E.output,E.next_out)))}while((0<E.avail_in||E.avail_out===0)&&g!==1);return A===4?(g=i.deflateEnd(this.strm),this.onEnd(g),this.ended=!0,g===b):A!==2||(this.onEnd(b),!(E.avail_out=0))},m.prototype.onData=function(c){this.chunks.push(c)},m.prototype.onEnd=function(c){c===b&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=c,this.msg=this.strm.msg},p.Deflate=m,p.deflate=s,p.deflateRaw=function(c,d){return(d=d||{}).raw=!0,s(c,d)},p.gzip=function(c,d){return(d=d||{}).gzip=!0,s(c,d)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(a,y,p){var i=a("./zlib/inflate"),o=a("./utils/common"),n=a("./utils/strings"),l=a("./zlib/constants"),_=a("./zlib/messages"),w=a("./zlib/zstream"),b=a("./zlib/gzheader"),u=Object.prototype.toString;function r(m){if(!(this instanceof r))return new r(m);this.options=o.assign({chunkSize:16384,windowBits:0,to:""},m||{});var s=this.options;s.raw&&0<=s.windowBits&&s.windowBits<16&&(s.windowBits=-s.windowBits,s.windowBits===0&&(s.windowBits=-15)),!(0<=s.windowBits&&s.windowBits<16)||m&&m.windowBits||(s.windowBits+=32),15<s.windowBits&&s.windowBits<48&&!(15&s.windowBits)&&(s.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new w,this.strm.avail_out=0;var c=i.inflateInit2(this.strm,s.windowBits);if(c!==l.Z_OK)throw new Error(_[c]);this.header=new b,i.inflateGetHeader(this.strm,this.header)}function f(m,s){var c=new r(s);if(c.push(m,!0),c.err)throw c.msg||_[c.err];return c.result}r.prototype.push=function(m,s){var c,d,g,A,E,Z,B=this.strm,P=this.options.chunkSize,R=this.options.dictionary,H=!1;if(this.ended)return!1;d=s===~~s?s:s===!0?l.Z_FINISH:l.Z_NO_FLUSH,typeof m=="string"?B.input=n.binstring2buf(m):u.call(m)==="[object ArrayBuffer]"?B.input=new Uint8Array(m):B.input=m,B.next_in=0,B.avail_in=B.input.length;do{if(B.avail_out===0&&(B.output=new o.Buf8(P),B.next_out=0,B.avail_out=P),(c=i.inflate(B,l.Z_NO_FLUSH))===l.Z_NEED_DICT&&R&&(Z=typeof R=="string"?n.string2buf(R):u.call(R)==="[object ArrayBuffer]"?new Uint8Array(R):R,c=i.inflateSetDictionary(this.strm,Z)),c===l.Z_BUF_ERROR&&H===!0&&(c=l.Z_OK,H=!1),c!==l.Z_STREAM_END&&c!==l.Z_OK)return this.onEnd(c),!(this.ended=!0);B.next_out&&(B.avail_out!==0&&c!==l.Z_STREAM_END&&(B.avail_in!==0||d!==l.Z_FINISH&&d!==l.Z_SYNC_FLUSH)||(this.options.to==="string"?(g=n.utf8border(B.output,B.next_out),A=B.next_out-g,E=n.buf2string(B.output,g),B.next_out=A,B.avail_out=P-A,A&&o.arraySet(B.output,B.output,g,A,0),this.onData(E)):this.onData(o.shrinkBuf(B.output,B.next_out)))),B.avail_in===0&&B.avail_out===0&&(H=!0)}while((0<B.avail_in||B.avail_out===0)&&c!==l.Z_STREAM_END);return c===l.Z_STREAM_END&&(d=l.Z_FINISH),d===l.Z_FINISH?(c=i.inflateEnd(this.strm),this.onEnd(c),this.ended=!0,c===l.Z_OK):d!==l.Z_SYNC_FLUSH||(this.onEnd(l.Z_OK),!(B.avail_out=0))},r.prototype.onData=function(m){this.chunks.push(m)},r.prototype.onEnd=function(m){m===l.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=m,this.msg=this.strm.msg},p.Inflate=r,p.inflate=f,p.inflateRaw=function(m,s){return(s=s||{}).raw=!0,f(m,s)},p.ungzip=f},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(a,y,p){var i=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";p.assign=function(l){for(var _=Array.prototype.slice.call(arguments,1);_.length;){var w=_.shift();if(w){if(typeof w!="object")throw new TypeError(w+"must be non-object");for(var b in w)w.hasOwnProperty(b)&&(l[b]=w[b])}}return l},p.shrinkBuf=function(l,_){return l.length===_?l:l.subarray?l.subarray(0,_):(l.length=_,l)};var o={arraySet:function(l,_,w,b,u){if(_.subarray&&l.subarray)l.set(_.subarray(w,w+b),u);else for(var r=0;r<b;r++)l[u+r]=_[w+r]},flattenChunks:function(l){var _,w,b,u,r,f;for(_=b=0,w=l.length;_<w;_++)b+=l[_].length;for(f=new Uint8Array(b),_=u=0,w=l.length;_<w;_++)r=l[_],f.set(r,u),u+=r.length;return f}},n={arraySet:function(l,_,w,b,u){for(var r=0;r<b;r++)l[u+r]=_[w+r]},flattenChunks:function(l){return[].concat.apply([],l)}};p.setTyped=function(l){l?(p.Buf8=Uint8Array,p.Buf16=Uint16Array,p.Buf32=Int32Array,p.assign(p,o)):(p.Buf8=Array,p.Buf16=Array,p.Buf32=Array,p.assign(p,n))},p.setTyped(i)},{}],42:[function(a,y,p){var i=a("./common"),o=!0,n=!0;try{String.fromCharCode.apply(null,[0])}catch{o=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{n=!1}for(var l=new i.Buf8(256),_=0;_<256;_++)l[_]=252<=_?6:248<=_?5:240<=_?4:224<=_?3:192<=_?2:1;function w(b,u){if(u<65537&&(b.subarray&&n||!b.subarray&&o))return String.fromCharCode.apply(null,i.shrinkBuf(b,u));for(var r="",f=0;f<u;f++)r+=String.fromCharCode(b[f]);return r}l[254]=l[254]=1,p.string2buf=function(b){var u,r,f,m,s,c=b.length,d=0;for(m=0;m<c;m++)(64512&(r=b.charCodeAt(m)))==55296&&m+1<c&&(64512&(f=b.charCodeAt(m+1)))==56320&&(r=65536+(r-55296<<10)+(f-56320),m++),d+=r<128?1:r<2048?2:r<65536?3:4;for(u=new i.Buf8(d),m=s=0;s<d;m++)(64512&(r=b.charCodeAt(m)))==55296&&m+1<c&&(64512&(f=b.charCodeAt(m+1)))==56320&&(r=65536+(r-55296<<10)+(f-56320),m++),r<128?u[s++]=r:(r<2048?u[s++]=192|r>>>6:(r<65536?u[s++]=224|r>>>12:(u[s++]=240|r>>>18,u[s++]=128|r>>>12&63),u[s++]=128|r>>>6&63),u[s++]=128|63&r);return u},p.buf2binstring=function(b){return w(b,b.length)},p.binstring2buf=function(b){for(var u=new i.Buf8(b.length),r=0,f=u.length;r<f;r++)u[r]=b.charCodeAt(r);return u},p.buf2string=function(b,u){var r,f,m,s,c=u||b.length,d=new Array(2*c);for(r=f=0;r<c;)if((m=b[r++])<128)d[f++]=m;else if(4<(s=l[m]))d[f++]=65533,r+=s-1;else{for(m&=s===2?31:s===3?15:7;1<s&&r<c;)m=m<<6|63&b[r++],s--;1<s?d[f++]=65533:m<65536?d[f++]=m:(m-=65536,d[f++]=55296|m>>10&1023,d[f++]=56320|1023&m)}return w(d,f)},p.utf8border=function(b,u){var r;for((u=u||b.length)>b.length&&(u=b.length),r=u-1;0<=r&&(192&b[r])==128;)r--;return r<0||r===0?u:r+l[b[r]]>u?r:u}},{"./common":41}],43:[function(a,y,p){y.exports=function(i,o,n,l){for(var _=65535&i|0,w=i>>>16&65535|0,b=0;n!==0;){for(n-=b=2e3<n?2e3:n;w=w+(_=_+o[l++]|0)|0,--b;);_%=65521,w%=65521}return _|w<<16|0}},{}],44:[function(a,y,p){y.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(a,y,p){var i=function(){for(var o,n=[],l=0;l<256;l++){o=l;for(var _=0;_<8;_++)o=1&o?3988292384^o>>>1:o>>>1;n[l]=o}return n}();y.exports=function(o,n,l,_){var w=i,b=_+l;o^=-1;for(var u=_;u<b;u++)o=o>>>8^w[255&(o^n[u])];return-1^o}},{}],46:[function(a,y,p){var i,o=a("../utils/common"),n=a("./trees"),l=a("./adler32"),_=a("./crc32"),w=a("./messages"),b=0,u=4,r=0,f=-2,m=-1,s=4,c=2,d=8,g=9,A=286,E=30,Z=19,B=2*A+1,P=15,R=3,H=258,K=H+R+1,k=42,N=113,t=1,M=2,J=3,U=4;function ee(e,D){return e.msg=w[D],D}function j(e){return(e<<1)-(4<e?9:0)}function Q(e){for(var D=e.length;0<=--D;)e[D]=0}function I(e){var D=e.state,O=D.pending;O>e.avail_out&&(O=e.avail_out),O!==0&&(o.arraySet(e.output,D.pending_buf,D.pending_out,O,e.next_out),e.next_out+=O,D.pending_out+=O,e.total_out+=O,e.avail_out-=O,D.pending-=O,D.pending===0&&(D.pending_out=0))}function T(e,D){n._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,D),e.block_start=e.strstart,I(e.strm)}function Y(e,D){e.pending_buf[e.pending++]=D}function $(e,D){e.pending_buf[e.pending++]=D>>>8&255,e.pending_buf[e.pending++]=255&D}function q(e,D){var O,v,h=e.max_chain_length,S=e.strstart,F=e.prev_length,L=e.nice_match,z=e.strstart>e.w_size-K?e.strstart-(e.w_size-K):0,W=e.window,G=e.w_mask,V=e.prev,X=e.strstart+H,ie=W[S+F-1],re=W[S+F];e.prev_length>=e.good_match&&(h>>=2),L>e.lookahead&&(L=e.lookahead);do if(W[(O=D)+F]===re&&W[O+F-1]===ie&&W[O]===W[S]&&W[++O]===W[S+1]){S+=2,O++;do;while(W[++S]===W[++O]&&W[++S]===W[++O]&&W[++S]===W[++O]&&W[++S]===W[++O]&&W[++S]===W[++O]&&W[++S]===W[++O]&&W[++S]===W[++O]&&W[++S]===W[++O]&&S<X);if(v=H-(X-S),S=X-H,F<v){if(e.match_start=D,L<=(F=v))break;ie=W[S+F-1],re=W[S+F]}}while((D=V[D&G])>z&&--h!=0);return F<=e.lookahead?F:e.lookahead}function ae(e){var D,O,v,h,S,F,L,z,W,G,V=e.w_size;do{if(h=e.window_size-e.lookahead-e.strstart,e.strstart>=V+(V-K)){for(o.arraySet(e.window,e.window,V,V,0),e.match_start-=V,e.strstart-=V,e.block_start-=V,D=O=e.hash_size;v=e.head[--D],e.head[D]=V<=v?v-V:0,--O;);for(D=O=V;v=e.prev[--D],e.prev[D]=V<=v?v-V:0,--O;);h+=V}if(e.strm.avail_in===0)break;if(F=e.strm,L=e.window,z=e.strstart+e.lookahead,W=h,G=void 0,G=F.avail_in,W<G&&(G=W),O=G===0?0:(F.avail_in-=G,o.arraySet(L,F.input,F.next_in,G,z),F.state.wrap===1?F.adler=l(F.adler,L,G,z):F.state.wrap===2&&(F.adler=_(F.adler,L,G,z)),F.next_in+=G,F.total_in+=G,G),e.lookahead+=O,e.lookahead+e.insert>=R)for(S=e.strstart-e.insert,e.ins_h=e.window[S],e.ins_h=(e.ins_h<<e.hash_shift^e.window[S+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[S+R-1])&e.hash_mask,e.prev[S&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=S,S++,e.insert--,!(e.lookahead+e.insert<R)););}while(e.lookahead<K&&e.strm.avail_in!==0)}function le(e,D){for(var O,v;;){if(e.lookahead<K){if(ae(e),e.lookahead<K&&D===b)return t;if(e.lookahead===0)break}if(O=0,e.lookahead>=R&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+R-1])&e.hash_mask,O=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),O!==0&&e.strstart-O<=e.w_size-K&&(e.match_length=q(e,O)),e.match_length>=R)if(v=n._tr_tally(e,e.strstart-e.match_start,e.match_length-R),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=R){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+R-1])&e.hash_mask,O=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart,--e.match_length!=0;);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else v=n._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(v&&(T(e,!1),e.strm.avail_out===0))return t}return e.insert=e.strstart<R-1?e.strstart:R-1,D===u?(T(e,!0),e.strm.avail_out===0?J:U):e.last_lit&&(T(e,!1),e.strm.avail_out===0)?t:M}function te(e,D){for(var O,v,h;;){if(e.lookahead<K){if(ae(e),e.lookahead<K&&D===b)return t;if(e.lookahead===0)break}if(O=0,e.lookahead>=R&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+R-1])&e.hash_mask,O=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=R-1,O!==0&&e.prev_length<e.max_lazy_match&&e.strstart-O<=e.w_size-K&&(e.match_length=q(e,O),e.match_length<=5&&(e.strategy===1||e.match_length===R&&4096<e.strstart-e.match_start)&&(e.match_length=R-1)),e.prev_length>=R&&e.match_length<=e.prev_length){for(h=e.strstart+e.lookahead-R,v=n._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-R),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=h&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+R-1])&e.hash_mask,O=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),--e.prev_length!=0;);if(e.match_available=0,e.match_length=R-1,e.strstart++,v&&(T(e,!1),e.strm.avail_out===0))return t}else if(e.match_available){if((v=n._tr_tally(e,0,e.window[e.strstart-1]))&&T(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return t}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(v=n._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<R-1?e.strstart:R-1,D===u?(T(e,!0),e.strm.avail_out===0?J:U):e.last_lit&&(T(e,!1),e.strm.avail_out===0)?t:M}function ne(e,D,O,v,h){this.good_length=e,this.max_lazy=D,this.nice_length=O,this.max_chain=v,this.func=h}function ce(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=d,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new o.Buf16(2*B),this.dyn_dtree=new o.Buf16(2*(2*E+1)),this.bl_tree=new o.Buf16(2*(2*Z+1)),Q(this.dyn_ltree),Q(this.dyn_dtree),Q(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new o.Buf16(P+1),this.heap=new o.Buf16(2*A+1),Q(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new o.Buf16(2*A+1),Q(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function se(e){var D;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=c,(D=e.state).pending=0,D.pending_out=0,D.wrap<0&&(D.wrap=-D.wrap),D.status=D.wrap?k:N,e.adler=D.wrap===2?0:1,D.last_flush=b,n._tr_init(D),r):ee(e,f)}function me(e){var D=se(e);return D===r&&function(O){O.window_size=2*O.w_size,Q(O.head),O.max_lazy_match=i[O.level].max_lazy,O.good_match=i[O.level].good_length,O.nice_match=i[O.level].nice_length,O.max_chain_length=i[O.level].max_chain,O.strstart=0,O.block_start=0,O.lookahead=0,O.insert=0,O.match_length=O.prev_length=R-1,O.match_available=0,O.ins_h=0}(e.state),D}function fe(e,D,O,v,h,S){if(!e)return f;var F=1;if(D===m&&(D=6),v<0?(F=0,v=-v):15<v&&(F=2,v-=16),h<1||g<h||O!==d||v<8||15<v||D<0||9<D||S<0||s<S)return ee(e,f);v===8&&(v=9);var L=new ce;return(e.state=L).strm=e,L.wrap=F,L.gzhead=null,L.w_bits=v,L.w_size=1<<L.w_bits,L.w_mask=L.w_size-1,L.hash_bits=h+7,L.hash_size=1<<L.hash_bits,L.hash_mask=L.hash_size-1,L.hash_shift=~~((L.hash_bits+R-1)/R),L.window=new o.Buf8(2*L.w_size),L.head=new o.Buf16(L.hash_size),L.prev=new o.Buf16(L.w_size),L.lit_bufsize=1<<h+6,L.pending_buf_size=4*L.lit_bufsize,L.pending_buf=new o.Buf8(L.pending_buf_size),L.d_buf=1*L.lit_bufsize,L.l_buf=3*L.lit_bufsize,L.level=D,L.strategy=S,L.method=O,me(e)}i=[new ne(0,0,0,0,function(e,D){var O=65535;for(O>e.pending_buf_size-5&&(O=e.pending_buf_size-5);;){if(e.lookahead<=1){if(ae(e),e.lookahead===0&&D===b)return t;if(e.lookahead===0)break}e.strstart+=e.lookahead,e.lookahead=0;var v=e.block_start+O;if((e.strstart===0||e.strstart>=v)&&(e.lookahead=e.strstart-v,e.strstart=v,T(e,!1),e.strm.avail_out===0)||e.strstart-e.block_start>=e.w_size-K&&(T(e,!1),e.strm.avail_out===0))return t}return e.insert=0,D===u?(T(e,!0),e.strm.avail_out===0?J:U):(e.strstart>e.block_start&&(T(e,!1),e.strm.avail_out),t)}),new ne(4,4,8,4,le),new ne(4,5,16,8,le),new ne(4,6,32,32,le),new ne(4,4,16,16,te),new ne(8,16,32,32,te),new ne(8,16,128,128,te),new ne(8,32,128,256,te),new ne(32,128,258,1024,te),new ne(32,258,258,4096,te)],p.deflateInit=function(e,D){return fe(e,D,d,15,8,0)},p.deflateInit2=fe,p.deflateReset=me,p.deflateResetKeep=se,p.deflateSetHeader=function(e,D){return e&&e.state?e.state.wrap!==2?f:(e.state.gzhead=D,r):f},p.deflate=function(e,D){var O,v,h,S;if(!e||!e.state||5<D||D<0)return e?ee(e,f):f;if(v=e.state,!e.output||!e.input&&e.avail_in!==0||v.status===666&&D!==u)return ee(e,e.avail_out===0?-5:f);if(v.strm=e,O=v.last_flush,v.last_flush=D,v.status===k)if(v.wrap===2)e.adler=0,Y(v,31),Y(v,139),Y(v,8),v.gzhead?(Y(v,(v.gzhead.text?1:0)+(v.gzhead.hcrc?2:0)+(v.gzhead.extra?4:0)+(v.gzhead.name?8:0)+(v.gzhead.comment?16:0)),Y(v,255&v.gzhead.time),Y(v,v.gzhead.time>>8&255),Y(v,v.gzhead.time>>16&255),Y(v,v.gzhead.time>>24&255),Y(v,v.level===9?2:2<=v.strategy||v.level<2?4:0),Y(v,255&v.gzhead.os),v.gzhead.extra&&v.gzhead.extra.length&&(Y(v,255&v.gzhead.extra.length),Y(v,v.gzhead.extra.length>>8&255)),v.gzhead.hcrc&&(e.adler=_(e.adler,v.pending_buf,v.pending,0)),v.gzindex=0,v.status=69):(Y(v,0),Y(v,0),Y(v,0),Y(v,0),Y(v,0),Y(v,v.level===9?2:2<=v.strategy||v.level<2?4:0),Y(v,3),v.status=N);else{var F=d+(v.w_bits-8<<4)<<8;F|=(2<=v.strategy||v.level<2?0:v.level<6?1:v.level===6?2:3)<<6,v.strstart!==0&&(F|=32),F+=31-F%31,v.status=N,$(v,F),v.strstart!==0&&($(v,e.adler>>>16),$(v,65535&e.adler)),e.adler=1}if(v.status===69)if(v.gzhead.extra){for(h=v.pending;v.gzindex<(65535&v.gzhead.extra.length)&&(v.pending!==v.pending_buf_size||(v.gzhead.hcrc&&v.pending>h&&(e.adler=_(e.adler,v.pending_buf,v.pending-h,h)),I(e),h=v.pending,v.pending!==v.pending_buf_size));)Y(v,255&v.gzhead.extra[v.gzindex]),v.gzindex++;v.gzhead.hcrc&&v.pending>h&&(e.adler=_(e.adler,v.pending_buf,v.pending-h,h)),v.gzindex===v.gzhead.extra.length&&(v.gzindex=0,v.status=73)}else v.status=73;if(v.status===73)if(v.gzhead.name){h=v.pending;do{if(v.pending===v.pending_buf_size&&(v.gzhead.hcrc&&v.pending>h&&(e.adler=_(e.adler,v.pending_buf,v.pending-h,h)),I(e),h=v.pending,v.pending===v.pending_buf_size)){S=1;break}S=v.gzindex<v.gzhead.name.length?255&v.gzhead.name.charCodeAt(v.gzindex++):0,Y(v,S)}while(S!==0);v.gzhead.hcrc&&v.pending>h&&(e.adler=_(e.adler,v.pending_buf,v.pending-h,h)),S===0&&(v.gzindex=0,v.status=91)}else v.status=91;if(v.status===91)if(v.gzhead.comment){h=v.pending;do{if(v.pending===v.pending_buf_size&&(v.gzhead.hcrc&&v.pending>h&&(e.adler=_(e.adler,v.pending_buf,v.pending-h,h)),I(e),h=v.pending,v.pending===v.pending_buf_size)){S=1;break}S=v.gzindex<v.gzhead.comment.length?255&v.gzhead.comment.charCodeAt(v.gzindex++):0,Y(v,S)}while(S!==0);v.gzhead.hcrc&&v.pending>h&&(e.adler=_(e.adler,v.pending_buf,v.pending-h,h)),S===0&&(v.status=103)}else v.status=103;if(v.status===103&&(v.gzhead.hcrc?(v.pending+2>v.pending_buf_size&&I(e),v.pending+2<=v.pending_buf_size&&(Y(v,255&e.adler),Y(v,e.adler>>8&255),e.adler=0,v.status=N)):v.status=N),v.pending!==0){if(I(e),e.avail_out===0)return v.last_flush=-1,r}else if(e.avail_in===0&&j(D)<=j(O)&&D!==u)return ee(e,-5);if(v.status===666&&e.avail_in!==0)return ee(e,-5);if(e.avail_in!==0||v.lookahead!==0||D!==b&&v.status!==666){var L=v.strategy===2?function(z,W){for(var G;;){if(z.lookahead===0&&(ae(z),z.lookahead===0)){if(W===b)return t;break}if(z.match_length=0,G=n._tr_tally(z,0,z.window[z.strstart]),z.lookahead--,z.strstart++,G&&(T(z,!1),z.strm.avail_out===0))return t}return z.insert=0,W===u?(T(z,!0),z.strm.avail_out===0?J:U):z.last_lit&&(T(z,!1),z.strm.avail_out===0)?t:M}(v,D):v.strategy===3?function(z,W){for(var G,V,X,ie,re=z.window;;){if(z.lookahead<=H){if(ae(z),z.lookahead<=H&&W===b)return t;if(z.lookahead===0)break}if(z.match_length=0,z.lookahead>=R&&0<z.strstart&&(V=re[X=z.strstart-1])===re[++X]&&V===re[++X]&&V===re[++X]){ie=z.strstart+H;do;while(V===re[++X]&&V===re[++X]&&V===re[++X]&&V===re[++X]&&V===re[++X]&&V===re[++X]&&V===re[++X]&&V===re[++X]&&X<ie);z.match_length=H-(ie-X),z.match_length>z.lookahead&&(z.match_length=z.lookahead)}if(z.match_length>=R?(G=n._tr_tally(z,1,z.match_length-R),z.lookahead-=z.match_length,z.strstart+=z.match_length,z.match_length=0):(G=n._tr_tally(z,0,z.window[z.strstart]),z.lookahead--,z.strstart++),G&&(T(z,!1),z.strm.avail_out===0))return t}return z.insert=0,W===u?(T(z,!0),z.strm.avail_out===0?J:U):z.last_lit&&(T(z,!1),z.strm.avail_out===0)?t:M}(v,D):i[v.level].func(v,D);if(L!==J&&L!==U||(v.status=666),L===t||L===J)return e.avail_out===0&&(v.last_flush=-1),r;if(L===M&&(D===1?n._tr_align(v):D!==5&&(n._tr_stored_block(v,0,0,!1),D===3&&(Q(v.head),v.lookahead===0&&(v.strstart=0,v.block_start=0,v.insert=0))),I(e),e.avail_out===0))return v.last_flush=-1,r}return D!==u?r:v.wrap<=0?1:(v.wrap===2?(Y(v,255&e.adler),Y(v,e.adler>>8&255),Y(v,e.adler>>16&255),Y(v,e.adler>>24&255),Y(v,255&e.total_in),Y(v,e.total_in>>8&255),Y(v,e.total_in>>16&255),Y(v,e.total_in>>24&255)):($(v,e.adler>>>16),$(v,65535&e.adler)),I(e),0<v.wrap&&(v.wrap=-v.wrap),v.pending!==0?r:1)},p.deflateEnd=function(e){var D;return e&&e.state?(D=e.state.status)!==k&&D!==69&&D!==73&&D!==91&&D!==103&&D!==N&&D!==666?ee(e,f):(e.state=null,D===N?ee(e,-3):r):f},p.deflateSetDictionary=function(e,D){var O,v,h,S,F,L,z,W,G=D.length;if(!e||!e.state||(S=(O=e.state).wrap)===2||S===1&&O.status!==k||O.lookahead)return f;for(S===1&&(e.adler=l(e.adler,D,G,0)),O.wrap=0,G>=O.w_size&&(S===0&&(Q(O.head),O.strstart=0,O.block_start=0,O.insert=0),W=new o.Buf8(O.w_size),o.arraySet(W,D,G-O.w_size,O.w_size,0),D=W,G=O.w_size),F=e.avail_in,L=e.next_in,z=e.input,e.avail_in=G,e.next_in=0,e.input=D,ae(O);O.lookahead>=R;){for(v=O.strstart,h=O.lookahead-(R-1);O.ins_h=(O.ins_h<<O.hash_shift^O.window[v+R-1])&O.hash_mask,O.prev[v&O.w_mask]=O.head[O.ins_h],O.head[O.ins_h]=v,v++,--h;);O.strstart=v,O.lookahead=R-1,ae(O)}return O.strstart+=O.lookahead,O.block_start=O.strstart,O.insert=O.lookahead,O.lookahead=0,O.match_length=O.prev_length=R-1,O.match_available=0,e.next_in=L,e.input=z,e.avail_in=F,O.wrap=S,r},p.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(a,y,p){y.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(a,y,p){y.exports=function(i,o){var n,l,_,w,b,u,r,f,m,s,c,d,g,A,E,Z,B,P,R,H,K,k,N,t,M;n=i.state,l=i.next_in,t=i.input,_=l+(i.avail_in-5),w=i.next_out,M=i.output,b=w-(o-i.avail_out),u=w+(i.avail_out-257),r=n.dmax,f=n.wsize,m=n.whave,s=n.wnext,c=n.window,d=n.hold,g=n.bits,A=n.lencode,E=n.distcode,Z=(1<<n.lenbits)-1,B=(1<<n.distbits)-1;e:do{g<15&&(d+=t[l++]<<g,g+=8,d+=t[l++]<<g,g+=8),P=A[d&Z];t:for(;;){if(d>>>=R=P>>>24,g-=R,(R=P>>>16&255)===0)M[w++]=65535&P;else{if(!(16&R)){if(!(64&R)){P=A[(65535&P)+(d&(1<<R)-1)];continue t}if(32&R){n.mode=12;break e}i.msg="invalid literal/length code",n.mode=30;break e}H=65535&P,(R&=15)&&(g<R&&(d+=t[l++]<<g,g+=8),H+=d&(1<<R)-1,d>>>=R,g-=R),g<15&&(d+=t[l++]<<g,g+=8,d+=t[l++]<<g,g+=8),P=E[d&B];r:for(;;){if(d>>>=R=P>>>24,g-=R,!(16&(R=P>>>16&255))){if(!(64&R)){P=E[(65535&P)+(d&(1<<R)-1)];continue r}i.msg="invalid distance code",n.mode=30;break e}if(K=65535&P,g<(R&=15)&&(d+=t[l++]<<g,(g+=8)<R&&(d+=t[l++]<<g,g+=8)),r<(K+=d&(1<<R)-1)){i.msg="invalid distance too far back",n.mode=30;break e}if(d>>>=R,g-=R,(R=w-b)<K){if(m<(R=K-R)&&n.sane){i.msg="invalid distance too far back",n.mode=30;break e}if(N=c,(k=0)===s){if(k+=f-R,R<H){for(H-=R;M[w++]=c[k++],--R;);k=w-K,N=M}}else if(s<R){if(k+=f+s-R,(R-=s)<H){for(H-=R;M[w++]=c[k++],--R;);if(k=0,s<H){for(H-=R=s;M[w++]=c[k++],--R;);k=w-K,N=M}}}else if(k+=s-R,R<H){for(H-=R;M[w++]=c[k++],--R;);k=w-K,N=M}for(;2<H;)M[w++]=N[k++],M[w++]=N[k++],M[w++]=N[k++],H-=3;H&&(M[w++]=N[k++],1<H&&(M[w++]=N[k++]))}else{for(k=w-K;M[w++]=M[k++],M[w++]=M[k++],M[w++]=M[k++],2<(H-=3););H&&(M[w++]=M[k++],1<H&&(M[w++]=M[k++]))}break}}break}}while(l<_&&w<u);l-=H=g>>3,d&=(1<<(g-=H<<3))-1,i.next_in=l,i.next_out=w,i.avail_in=l<_?_-l+5:5-(l-_),i.avail_out=w<u?u-w+257:257-(w-u),n.hold=d,n.bits=g}},{}],49:[function(a,y,p){var i=a("../utils/common"),o=a("./adler32"),n=a("./crc32"),l=a("./inffast"),_=a("./inftrees"),w=1,b=2,u=0,r=-2,f=1,m=852,s=592;function c(k){return(k>>>24&255)+(k>>>8&65280)+((65280&k)<<8)+((255&k)<<24)}function d(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new i.Buf16(320),this.work=new i.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function g(k){var N;return k&&k.state?(N=k.state,k.total_in=k.total_out=N.total=0,k.msg="",N.wrap&&(k.adler=1&N.wrap),N.mode=f,N.last=0,N.havedict=0,N.dmax=32768,N.head=null,N.hold=0,N.bits=0,N.lencode=N.lendyn=new i.Buf32(m),N.distcode=N.distdyn=new i.Buf32(s),N.sane=1,N.back=-1,u):r}function A(k){var N;return k&&k.state?((N=k.state).wsize=0,N.whave=0,N.wnext=0,g(k)):r}function E(k,N){var t,M;return k&&k.state?(M=k.state,N<0?(t=0,N=-N):(t=1+(N>>4),N<48&&(N&=15)),N&&(N<8||15<N)?r:(M.window!==null&&M.wbits!==N&&(M.window=null),M.wrap=t,M.wbits=N,A(k))):r}function Z(k,N){var t,M;return k?(M=new d,(k.state=M).window=null,(t=E(k,N))!==u&&(k.state=null),t):r}var B,P,R=!0;function H(k){if(R){var N;for(B=new i.Buf32(512),P=new i.Buf32(32),N=0;N<144;)k.lens[N++]=8;for(;N<256;)k.lens[N++]=9;for(;N<280;)k.lens[N++]=7;for(;N<288;)k.lens[N++]=8;for(_(w,k.lens,0,288,B,0,k.work,{bits:9}),N=0;N<32;)k.lens[N++]=5;_(b,k.lens,0,32,P,0,k.work,{bits:5}),R=!1}k.lencode=B,k.lenbits=9,k.distcode=P,k.distbits=5}function K(k,N,t,M){var J,U=k.state;return U.window===null&&(U.wsize=1<<U.wbits,U.wnext=0,U.whave=0,U.window=new i.Buf8(U.wsize)),M>=U.wsize?(i.arraySet(U.window,N,t-U.wsize,U.wsize,0),U.wnext=0,U.whave=U.wsize):(M<(J=U.wsize-U.wnext)&&(J=M),i.arraySet(U.window,N,t-M,J,U.wnext),(M-=J)?(i.arraySet(U.window,N,t-M,M,0),U.wnext=M,U.whave=U.wsize):(U.wnext+=J,U.wnext===U.wsize&&(U.wnext=0),U.whave<U.wsize&&(U.whave+=J))),0}p.inflateReset=A,p.inflateReset2=E,p.inflateResetKeep=g,p.inflateInit=function(k){return Z(k,15)},p.inflateInit2=Z,p.inflate=function(k,N){var t,M,J,U,ee,j,Q,I,T,Y,$,q,ae,le,te,ne,ce,se,me,fe,e,D,O,v,h=0,S=new i.Buf8(4),F=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!k||!k.state||!k.output||!k.input&&k.avail_in!==0)return r;(t=k.state).mode===12&&(t.mode=13),ee=k.next_out,J=k.output,Q=k.avail_out,U=k.next_in,M=k.input,j=k.avail_in,I=t.hold,T=t.bits,Y=j,$=Q,D=u;e:for(;;)switch(t.mode){case f:if(t.wrap===0){t.mode=13;break}for(;T<16;){if(j===0)break e;j--,I+=M[U++]<<T,T+=8}if(2&t.wrap&&I===35615){S[t.check=0]=255&I,S[1]=I>>>8&255,t.check=n(t.check,S,2,0),T=I=0,t.mode=2;break}if(t.flags=0,t.head&&(t.head.done=!1),!(1&t.wrap)||(((255&I)<<8)+(I>>8))%31){k.msg="incorrect header check",t.mode=30;break}if((15&I)!=8){k.msg="unknown compression method",t.mode=30;break}if(T-=4,e=8+(15&(I>>>=4)),t.wbits===0)t.wbits=e;else if(e>t.wbits){k.msg="invalid window size",t.mode=30;break}t.dmax=1<<e,k.adler=t.check=1,t.mode=512&I?10:12,T=I=0;break;case 2:for(;T<16;){if(j===0)break e;j--,I+=M[U++]<<T,T+=8}if(t.flags=I,(255&t.flags)!=8){k.msg="unknown compression method",t.mode=30;break}if(57344&t.flags){k.msg="unknown header flags set",t.mode=30;break}t.head&&(t.head.text=I>>8&1),512&t.flags&&(S[0]=255&I,S[1]=I>>>8&255,t.check=n(t.check,S,2,0)),T=I=0,t.mode=3;case 3:for(;T<32;){if(j===0)break e;j--,I+=M[U++]<<T,T+=8}t.head&&(t.head.time=I),512&t.flags&&(S[0]=255&I,S[1]=I>>>8&255,S[2]=I>>>16&255,S[3]=I>>>24&255,t.check=n(t.check,S,4,0)),T=I=0,t.mode=4;case 4:for(;T<16;){if(j===0)break e;j--,I+=M[U++]<<T,T+=8}t.head&&(t.head.xflags=255&I,t.head.os=I>>8),512&t.flags&&(S[0]=255&I,S[1]=I>>>8&255,t.check=n(t.check,S,2,0)),T=I=0,t.mode=5;case 5:if(1024&t.flags){for(;T<16;){if(j===0)break e;j--,I+=M[U++]<<T,T+=8}t.length=I,t.head&&(t.head.extra_len=I),512&t.flags&&(S[0]=255&I,S[1]=I>>>8&255,t.check=n(t.check,S,2,0)),T=I=0}else t.head&&(t.head.extra=null);t.mode=6;case 6:if(1024&t.flags&&(j<(q=t.length)&&(q=j),q&&(t.head&&(e=t.head.extra_len-t.length,t.head.extra||(t.head.extra=new Array(t.head.extra_len)),i.arraySet(t.head.extra,M,U,q,e)),512&t.flags&&(t.check=n(t.check,M,q,U)),j-=q,U+=q,t.length-=q),t.length))break e;t.length=0,t.mode=7;case 7:if(2048&t.flags){if(j===0)break e;for(q=0;e=M[U+q++],t.head&&e&&t.length<65536&&(t.head.name+=String.fromCharCode(e)),e&&q<j;);if(512&t.flags&&(t.check=n(t.check,M,q,U)),j-=q,U+=q,e)break e}else t.head&&(t.head.name=null);t.length=0,t.mode=8;case 8:if(4096&t.flags){if(j===0)break e;for(q=0;e=M[U+q++],t.head&&e&&t.length<65536&&(t.head.comment+=String.fromCharCode(e)),e&&q<j;);if(512&t.flags&&(t.check=n(t.check,M,q,U)),j-=q,U+=q,e)break e}else t.head&&(t.head.comment=null);t.mode=9;case 9:if(512&t.flags){for(;T<16;){if(j===0)break e;j--,I+=M[U++]<<T,T+=8}if(I!==(65535&t.check)){k.msg="header crc mismatch",t.mode=30;break}T=I=0}t.head&&(t.head.hcrc=t.flags>>9&1,t.head.done=!0),k.adler=t.check=0,t.mode=12;break;case 10:for(;T<32;){if(j===0)break e;j--,I+=M[U++]<<T,T+=8}k.adler=t.check=c(I),T=I=0,t.mode=11;case 11:if(t.havedict===0)return k.next_out=ee,k.avail_out=Q,k.next_in=U,k.avail_in=j,t.hold=I,t.bits=T,2;k.adler=t.check=1,t.mode=12;case 12:if(N===5||N===6)break e;case 13:if(t.last){I>>>=7&T,T-=7&T,t.mode=27;break}for(;T<3;){if(j===0)break e;j--,I+=M[U++]<<T,T+=8}switch(t.last=1&I,T-=1,3&(I>>>=1)){case 0:t.mode=14;break;case 1:if(H(t),t.mode=20,N!==6)break;I>>>=2,T-=2;break e;case 2:t.mode=17;break;case 3:k.msg="invalid block type",t.mode=30}I>>>=2,T-=2;break;case 14:for(I>>>=7&T,T-=7&T;T<32;){if(j===0)break e;j--,I+=M[U++]<<T,T+=8}if((65535&I)!=(I>>>16^65535)){k.msg="invalid stored block lengths",t.mode=30;break}if(t.length=65535&I,T=I=0,t.mode=15,N===6)break e;case 15:t.mode=16;case 16:if(q=t.length){if(j<q&&(q=j),Q<q&&(q=Q),q===0)break e;i.arraySet(J,M,U,q,ee),j-=q,U+=q,Q-=q,ee+=q,t.length-=q;break}t.mode=12;break;case 17:for(;T<14;){if(j===0)break e;j--,I+=M[U++]<<T,T+=8}if(t.nlen=257+(31&I),I>>>=5,T-=5,t.ndist=1+(31&I),I>>>=5,T-=5,t.ncode=4+(15&I),I>>>=4,T-=4,286<t.nlen||30<t.ndist){k.msg="too many length or distance symbols",t.mode=30;break}t.have=0,t.mode=18;case 18:for(;t.have<t.ncode;){for(;T<3;){if(j===0)break e;j--,I+=M[U++]<<T,T+=8}t.lens[F[t.have++]]=7&I,I>>>=3,T-=3}for(;t.have<19;)t.lens[F[t.have++]]=0;if(t.lencode=t.lendyn,t.lenbits=7,O={bits:t.lenbits},D=_(0,t.lens,0,19,t.lencode,0,t.work,O),t.lenbits=O.bits,D){k.msg="invalid code lengths set",t.mode=30;break}t.have=0,t.mode=19;case 19:for(;t.have<t.nlen+t.ndist;){for(;ne=(h=t.lencode[I&(1<<t.lenbits)-1])>>>16&255,ce=65535&h,!((te=h>>>24)<=T);){if(j===0)break e;j--,I+=M[U++]<<T,T+=8}if(ce<16)I>>>=te,T-=te,t.lens[t.have++]=ce;else{if(ce===16){for(v=te+2;T<v;){if(j===0)break e;j--,I+=M[U++]<<T,T+=8}if(I>>>=te,T-=te,t.have===0){k.msg="invalid bit length repeat",t.mode=30;break}e=t.lens[t.have-1],q=3+(3&I),I>>>=2,T-=2}else if(ce===17){for(v=te+3;T<v;){if(j===0)break e;j--,I+=M[U++]<<T,T+=8}T-=te,e=0,q=3+(7&(I>>>=te)),I>>>=3,T-=3}else{for(v=te+7;T<v;){if(j===0)break e;j--,I+=M[U++]<<T,T+=8}T-=te,e=0,q=11+(127&(I>>>=te)),I>>>=7,T-=7}if(t.have+q>t.nlen+t.ndist){k.msg="invalid bit length repeat",t.mode=30;break}for(;q--;)t.lens[t.have++]=e}}if(t.mode===30)break;if(t.lens[256]===0){k.msg="invalid code -- missing end-of-block",t.mode=30;break}if(t.lenbits=9,O={bits:t.lenbits},D=_(w,t.lens,0,t.nlen,t.lencode,0,t.work,O),t.lenbits=O.bits,D){k.msg="invalid literal/lengths set",t.mode=30;break}if(t.distbits=6,t.distcode=t.distdyn,O={bits:t.distbits},D=_(b,t.lens,t.nlen,t.ndist,t.distcode,0,t.work,O),t.distbits=O.bits,D){k.msg="invalid distances set",t.mode=30;break}if(t.mode=20,N===6)break e;case 20:t.mode=21;case 21:if(6<=j&&258<=Q){k.next_out=ee,k.avail_out=Q,k.next_in=U,k.avail_in=j,t.hold=I,t.bits=T,l(k,$),ee=k.next_out,J=k.output,Q=k.avail_out,U=k.next_in,M=k.input,j=k.avail_in,I=t.hold,T=t.bits,t.mode===12&&(t.back=-1);break}for(t.back=0;ne=(h=t.lencode[I&(1<<t.lenbits)-1])>>>16&255,ce=65535&h,!((te=h>>>24)<=T);){if(j===0)break e;j--,I+=M[U++]<<T,T+=8}if(ne&&!(240&ne)){for(se=te,me=ne,fe=ce;ne=(h=t.lencode[fe+((I&(1<<se+me)-1)>>se)])>>>16&255,ce=65535&h,!(se+(te=h>>>24)<=T);){if(j===0)break e;j--,I+=M[U++]<<T,T+=8}I>>>=se,T-=se,t.back+=se}if(I>>>=te,T-=te,t.back+=te,t.length=ce,ne===0){t.mode=26;break}if(32&ne){t.back=-1,t.mode=12;break}if(64&ne){k.msg="invalid literal/length code",t.mode=30;break}t.extra=15&ne,t.mode=22;case 22:if(t.extra){for(v=t.extra;T<v;){if(j===0)break e;j--,I+=M[U++]<<T,T+=8}t.length+=I&(1<<t.extra)-1,I>>>=t.extra,T-=t.extra,t.back+=t.extra}t.was=t.length,t.mode=23;case 23:for(;ne=(h=t.distcode[I&(1<<t.distbits)-1])>>>16&255,ce=65535&h,!((te=h>>>24)<=T);){if(j===0)break e;j--,I+=M[U++]<<T,T+=8}if(!(240&ne)){for(se=te,me=ne,fe=ce;ne=(h=t.distcode[fe+((I&(1<<se+me)-1)>>se)])>>>16&255,ce=65535&h,!(se+(te=h>>>24)<=T);){if(j===0)break e;j--,I+=M[U++]<<T,T+=8}I>>>=se,T-=se,t.back+=se}if(I>>>=te,T-=te,t.back+=te,64&ne){k.msg="invalid distance code",t.mode=30;break}t.offset=ce,t.extra=15&ne,t.mode=24;case 24:if(t.extra){for(v=t.extra;T<v;){if(j===0)break e;j--,I+=M[U++]<<T,T+=8}t.offset+=I&(1<<t.extra)-1,I>>>=t.extra,T-=t.extra,t.back+=t.extra}if(t.offset>t.dmax){k.msg="invalid distance too far back",t.mode=30;break}t.mode=25;case 25:if(Q===0)break e;if(q=$-Q,t.offset>q){if((q=t.offset-q)>t.whave&&t.sane){k.msg="invalid distance too far back",t.mode=30;break}ae=q>t.wnext?(q-=t.wnext,t.wsize-q):t.wnext-q,q>t.length&&(q=t.length),le=t.window}else le=J,ae=ee-t.offset,q=t.length;for(Q<q&&(q=Q),Q-=q,t.length-=q;J[ee++]=le[ae++],--q;);t.length===0&&(t.mode=21);break;case 26:if(Q===0)break e;J[ee++]=t.length,Q--,t.mode=21;break;case 27:if(t.wrap){for(;T<32;){if(j===0)break e;j--,I|=M[U++]<<T,T+=8}if($-=Q,k.total_out+=$,t.total+=$,$&&(k.adler=t.check=t.flags?n(t.check,J,$,ee-$):o(t.check,J,$,ee-$)),$=Q,(t.flags?I:c(I))!==t.check){k.msg="incorrect data check",t.mode=30;break}T=I=0}t.mode=28;case 28:if(t.wrap&&t.flags){for(;T<32;){if(j===0)break e;j--,I+=M[U++]<<T,T+=8}if(I!==(4294967295&t.total)){k.msg="incorrect length check",t.mode=30;break}T=I=0}t.mode=29;case 29:D=1;break e;case 30:D=-3;break e;case 31:return-4;case 32:default:return r}return k.next_out=ee,k.avail_out=Q,k.next_in=U,k.avail_in=j,t.hold=I,t.bits=T,(t.wsize||$!==k.avail_out&&t.mode<30&&(t.mode<27||N!==4))&&K(k,k.output,k.next_out,$-k.avail_out)?(t.mode=31,-4):(Y-=k.avail_in,$-=k.avail_out,k.total_in+=Y,k.total_out+=$,t.total+=$,t.wrap&&$&&(k.adler=t.check=t.flags?n(t.check,J,$,k.next_out-$):o(t.check,J,$,k.next_out-$)),k.data_type=t.bits+(t.last?64:0)+(t.mode===12?128:0)+(t.mode===20||t.mode===15?256:0),(Y==0&&$===0||N===4)&&D===u&&(D=-5),D)},p.inflateEnd=function(k){if(!k||!k.state)return r;var N=k.state;return N.window&&(N.window=null),k.state=null,u},p.inflateGetHeader=function(k,N){var t;return k&&k.state&&2&(t=k.state).wrap?((t.head=N).done=!1,u):r},p.inflateSetDictionary=function(k,N){var t,M=N.length;return k&&k.state?(t=k.state).wrap!==0&&t.mode!==11?r:t.mode===11&&o(1,N,M,0)!==t.check?-3:K(k,N,M,M)?(t.mode=31,-4):(t.havedict=1,u):r},p.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(a,y,p){var i=a("../utils/common"),o=[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],n=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],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,0,0],_=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];y.exports=function(w,b,u,r,f,m,s,c){var d,g,A,E,Z,B,P,R,H,K=c.bits,k=0,N=0,t=0,M=0,J=0,U=0,ee=0,j=0,Q=0,I=0,T=null,Y=0,$=new i.Buf16(16),q=new i.Buf16(16),ae=null,le=0;for(k=0;k<=15;k++)$[k]=0;for(N=0;N<r;N++)$[b[u+N]]++;for(J=K,M=15;1<=M&&$[M]===0;M--);if(M<J&&(J=M),M===0)return f[m++]=20971520,f[m++]=20971520,c.bits=1,0;for(t=1;t<M&&$[t]===0;t++);for(J<t&&(J=t),k=j=1;k<=15;k++)if(j<<=1,(j-=$[k])<0)return-1;if(0<j&&(w===0||M!==1))return-1;for(q[1]=0,k=1;k<15;k++)q[k+1]=q[k]+$[k];for(N=0;N<r;N++)b[u+N]!==0&&(s[q[b[u+N]]++]=N);if(B=w===0?(T=ae=s,19):w===1?(T=o,Y-=257,ae=n,le-=257,256):(T=l,ae=_,-1),k=t,Z=m,ee=N=I=0,A=-1,E=(Q=1<<(U=J))-1,w===1&&852<Q||w===2&&592<Q)return 1;for(;;){for(P=k-ee,H=s[N]<B?(R=0,s[N]):s[N]>B?(R=ae[le+s[N]],T[Y+s[N]]):(R=96,0),d=1<<k-ee,t=g=1<<U;f[Z+(I>>ee)+(g-=d)]=P<<24|R<<16|H|0,g!==0;);for(d=1<<k-1;I&d;)d>>=1;if(d!==0?(I&=d-1,I+=d):I=0,N++,--$[k]==0){if(k===M)break;k=b[u+s[N]]}if(J<k&&(I&E)!==A){for(ee===0&&(ee=J),Z+=t,j=1<<(U=k-ee);U+ee<M&&!((j-=$[U+ee])<=0);)U++,j<<=1;if(Q+=1<<U,w===1&&852<Q||w===2&&592<Q)return 1;f[A=I&E]=J<<24|U<<16|Z-m|0}}return I!==0&&(f[Z+I]=k-ee<<24|64<<16|0),c.bits=J,0}},{"../utils/common":41}],51:[function(a,y,p){y.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(a,y,p){var i=a("../utils/common"),o=0,n=1;function l(h){for(var S=h.length;0<=--S;)h[S]=0}var _=0,w=29,b=256,u=b+1+w,r=30,f=19,m=2*u+1,s=15,c=16,d=7,g=256,A=16,E=17,Z=18,B=[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],P=[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],R=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],H=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],K=new Array(2*(u+2));l(K);var k=new Array(2*r);l(k);var N=new Array(512);l(N);var t=new Array(256);l(t);var M=new Array(w);l(M);var J,U,ee,j=new Array(r);function Q(h,S,F,L,z){this.static_tree=h,this.extra_bits=S,this.extra_base=F,this.elems=L,this.max_length=z,this.has_stree=h&&h.length}function I(h,S){this.dyn_tree=h,this.max_code=0,this.stat_desc=S}function T(h){return h<256?N[h]:N[256+(h>>>7)]}function Y(h,S){h.pending_buf[h.pending++]=255&S,h.pending_buf[h.pending++]=S>>>8&255}function $(h,S,F){h.bi_valid>c-F?(h.bi_buf|=S<<h.bi_valid&65535,Y(h,h.bi_buf),h.bi_buf=S>>c-h.bi_valid,h.bi_valid+=F-c):(h.bi_buf|=S<<h.bi_valid&65535,h.bi_valid+=F)}function q(h,S,F){$(h,F[2*S],F[2*S+1])}function ae(h,S){for(var F=0;F|=1&h,h>>>=1,F<<=1,0<--S;);return F>>>1}function le(h,S,F){var L,z,W=new Array(s+1),G=0;for(L=1;L<=s;L++)W[L]=G=G+F[L-1]<<1;for(z=0;z<=S;z++){var V=h[2*z+1];V!==0&&(h[2*z]=ae(W[V]++,V))}}function te(h){var S;for(S=0;S<u;S++)h.dyn_ltree[2*S]=0;for(S=0;S<r;S++)h.dyn_dtree[2*S]=0;for(S=0;S<f;S++)h.bl_tree[2*S]=0;h.dyn_ltree[2*g]=1,h.opt_len=h.static_len=0,h.last_lit=h.matches=0}function ne(h){8<h.bi_valid?Y(h,h.bi_buf):0<h.bi_valid&&(h.pending_buf[h.pending++]=h.bi_buf),h.bi_buf=0,h.bi_valid=0}function ce(h,S,F,L){var z=2*S,W=2*F;return h[z]<h[W]||h[z]===h[W]&&L[S]<=L[F]}function se(h,S,F){for(var L=h.heap[F],z=F<<1;z<=h.heap_len&&(z<h.heap_len&&ce(S,h.heap[z+1],h.heap[z],h.depth)&&z++,!ce(S,L,h.heap[z],h.depth));)h.heap[F]=h.heap[z],F=z,z<<=1;h.heap[F]=L}function me(h,S,F){var L,z,W,G,V=0;if(h.last_lit!==0)for(;L=h.pending_buf[h.d_buf+2*V]<<8|h.pending_buf[h.d_buf+2*V+1],z=h.pending_buf[h.l_buf+V],V++,L===0?q(h,z,S):(q(h,(W=t[z])+b+1,S),(G=B[W])!==0&&$(h,z-=M[W],G),q(h,W=T(--L),F),(G=P[W])!==0&&$(h,L-=j[W],G)),V<h.last_lit;);q(h,g,S)}function fe(h,S){var F,L,z,W=S.dyn_tree,G=S.stat_desc.static_tree,V=S.stat_desc.has_stree,X=S.stat_desc.elems,ie=-1;for(h.heap_len=0,h.heap_max=m,F=0;F<X;F++)W[2*F]!==0?(h.heap[++h.heap_len]=ie=F,h.depth[F]=0):W[2*F+1]=0;for(;h.heap_len<2;)W[2*(z=h.heap[++h.heap_len]=ie<2?++ie:0)]=1,h.depth[z]=0,h.opt_len--,V&&(h.static_len-=G[2*z+1]);for(S.max_code=ie,F=h.heap_len>>1;1<=F;F--)se(h,W,F);for(z=X;F=h.heap[1],h.heap[1]=h.heap[h.heap_len--],se(h,W,1),L=h.heap[1],h.heap[--h.heap_max]=F,h.heap[--h.heap_max]=L,W[2*z]=W[2*F]+W[2*L],h.depth[z]=(h.depth[F]>=h.depth[L]?h.depth[F]:h.depth[L])+1,W[2*F+1]=W[2*L+1]=z,h.heap[1]=z++,se(h,W,1),2<=h.heap_len;);h.heap[--h.heap_max]=h.heap[1],function(re,ue){var Se,ve,Ce,oe,Fe,qe,ge=ue.dyn_tree,dt=ue.max_code,ir=ue.stat_desc.static_tree,ar=ue.stat_desc.has_stree,sr=ue.stat_desc.extra_bits,pt=ue.stat_desc.extra_base,ze=ue.stat_desc.max_length,Le=0;for(oe=0;oe<=s;oe++)re.bl_count[oe]=0;for(ge[2*re.heap[re.heap_max]+1]=0,Se=re.heap_max+1;Se<m;Se++)ze<(oe=ge[2*ge[2*(ve=re.heap[Se])+1]+1]+1)&&(oe=ze,Le++),ge[2*ve+1]=oe,dt<ve||(re.bl_count[oe]++,Fe=0,pt<=ve&&(Fe=sr[ve-pt]),qe=ge[2*ve],re.opt_len+=qe*(oe+Fe),ar&&(re.static_len+=qe*(ir[2*ve+1]+Fe)));if(Le!==0){do{for(oe=ze-1;re.bl_count[oe]===0;)oe--;re.bl_count[oe]--,re.bl_count[oe+1]+=2,re.bl_count[ze]--,Le-=2}while(0<Le);for(oe=ze;oe!==0;oe--)for(ve=re.bl_count[oe];ve!==0;)dt<(Ce=re.heap[--Se])||(ge[2*Ce+1]!==oe&&(re.opt_len+=(oe-ge[2*Ce+1])*ge[2*Ce],ge[2*Ce+1]=oe),ve--)}}(h,S),le(W,ie,h.bl_count)}function e(h,S,F){var L,z,W=-1,G=S[1],V=0,X=7,ie=4;for(G===0&&(X=138,ie=3),S[2*(F+1)+1]=65535,L=0;L<=F;L++)z=G,G=S[2*(L+1)+1],++V<X&&z===G||(V<ie?h.bl_tree[2*z]+=V:z!==0?(z!==W&&h.bl_tree[2*z]++,h.bl_tree[2*A]++):V<=10?h.bl_tree[2*E]++:h.bl_tree[2*Z]++,W=z,ie=(V=0)===G?(X=138,3):z===G?(X=6,3):(X=7,4))}function D(h,S,F){var L,z,W=-1,G=S[1],V=0,X=7,ie=4;for(G===0&&(X=138,ie=3),L=0;L<=F;L++)if(z=G,G=S[2*(L+1)+1],!(++V<X&&z===G)){if(V<ie)for(;q(h,z,h.bl_tree),--V!=0;);else z!==0?(z!==W&&(q(h,z,h.bl_tree),V--),q(h,A,h.bl_tree),$(h,V-3,2)):V<=10?(q(h,E,h.bl_tree),$(h,V-3,3)):(q(h,Z,h.bl_tree),$(h,V-11,7));W=z,ie=(V=0)===G?(X=138,3):z===G?(X=6,3):(X=7,4)}}l(j);var O=!1;function v(h,S,F,L){$(h,(_<<1)+(L?1:0),3),function(z,W,G,V){ne(z),V&&(Y(z,G),Y(z,~G)),i.arraySet(z.pending_buf,z.window,W,G,z.pending),z.pending+=G}(h,S,F,!0)}p._tr_init=function(h){O||(function(){var S,F,L,z,W,G=new Array(s+1);for(z=L=0;z<w-1;z++)for(M[z]=L,S=0;S<1<<B[z];S++)t[L++]=z;for(t[L-1]=z,z=W=0;z<16;z++)for(j[z]=W,S=0;S<1<<P[z];S++)N[W++]=z;for(W>>=7;z<r;z++)for(j[z]=W<<7,S=0;S<1<<P[z]-7;S++)N[256+W++]=z;for(F=0;F<=s;F++)G[F]=0;for(S=0;S<=143;)K[2*S+1]=8,S++,G[8]++;for(;S<=255;)K[2*S+1]=9,S++,G[9]++;for(;S<=279;)K[2*S+1]=7,S++,G[7]++;for(;S<=287;)K[2*S+1]=8,S++,G[8]++;for(le(K,u+1,G),S=0;S<r;S++)k[2*S+1]=5,k[2*S]=ae(S,5);J=new Q(K,B,b+1,u,s),U=new Q(k,P,0,r,s),ee=new Q(new Array(0),R,0,f,d)}(),O=!0),h.l_desc=new I(h.dyn_ltree,J),h.d_desc=new I(h.dyn_dtree,U),h.bl_desc=new I(h.bl_tree,ee),h.bi_buf=0,h.bi_valid=0,te(h)},p._tr_stored_block=v,p._tr_flush_block=function(h,S,F,L){var z,W,G=0;0<h.level?(h.strm.data_type===2&&(h.strm.data_type=function(V){var X,ie=4093624447;for(X=0;X<=31;X++,ie>>>=1)if(1&ie&&V.dyn_ltree[2*X]!==0)return o;if(V.dyn_ltree[18]!==0||V.dyn_ltree[20]!==0||V.dyn_ltree[26]!==0)return n;for(X=32;X<b;X++)if(V.dyn_ltree[2*X]!==0)return n;return o}(h)),fe(h,h.l_desc),fe(h,h.d_desc),G=function(V){var X;for(e(V,V.dyn_ltree,V.l_desc.max_code),e(V,V.dyn_dtree,V.d_desc.max_code),fe(V,V.bl_desc),X=f-1;3<=X&&V.bl_tree[2*H[X]+1]===0;X--);return V.opt_len+=3*(X+1)+5+5+4,X}(h),z=h.opt_len+3+7>>>3,(W=h.static_len+3+7>>>3)<=z&&(z=W)):z=W=F+5,F+4<=z&&S!==-1?v(h,S,F,L):h.strategy===4||W===z?($(h,2+(L?1:0),3),me(h,K,k)):($(h,4+(L?1:0),3),function(V,X,ie,re){var ue;for($(V,X-257,5),$(V,ie-1,5),$(V,re-4,4),ue=0;ue<re;ue++)$(V,V.bl_tree[2*H[ue]+1],3);D(V,V.dyn_ltree,X-1),D(V,V.dyn_dtree,ie-1)}(h,h.l_desc.max_code+1,h.d_desc.max_code+1,G+1),me(h,h.dyn_ltree,h.dyn_dtree)),te(h),L&&ne(h)},p._tr_tally=function(h,S,F){return h.pending_buf[h.d_buf+2*h.last_lit]=S>>>8&255,h.pending_buf[h.d_buf+2*h.last_lit+1]=255&S,h.pending_buf[h.l_buf+h.last_lit]=255&F,h.last_lit++,S===0?h.dyn_ltree[2*F]++:(h.matches++,S--,h.dyn_ltree[2*(t[F]+b+1)]++,h.dyn_dtree[2*T(S)]++),h.last_lit===h.lit_bufsize-1},p._tr_align=function(h){$(h,2,3),q(h,g,K),function(S){S.bi_valid===16?(Y(S,S.bi_buf),S.bi_buf=0,S.bi_valid=0):8<=S.bi_valid&&(S.pending_buf[S.pending++]=255&S.bi_buf,S.bi_buf>>=8,S.bi_valid-=8)}(h)}},{"../utils/common":41}],53:[function(a,y,p){y.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(a,y,p){y.exports=typeof setImmediate=="function"?setImmediate:function(){var i=[].slice.apply(arguments);i.splice(1,0,0),setTimeout.apply(null,i)}},{}]},{},[10])(10)})})(Yt);const Kt=Ve;var De={},Qt={get exports(){return De},set exports(x){De=x}},Me={},Jt={get exports(){return Me},set exports(x){Me=x}};(function(x,C){Object.defineProperty(C,"__esModule",{value:!0}),C.ParsingError=void 0;class a extends Error{constructor(A,E){super(A),this.cause=E}}C.ParsingError=a;let y;function p(){return l(!1)||u()||b()||w()}function i(){return m(/\s*/),l(!0)||b()||_()||n(!1)}function o(){const g=n(!0),A=[];let E,Z=i();for(;Z;){if(Z.node.type==="Element"){if(E)throw new Error("Found multiple root nodes");E=Z.node}Z.excluded||A.push(Z.node),Z=i()}if(!E)throw new a("Failed to parse XML","Root Element not found");if(y.xml.length!==0)throw new a("Failed to parse XML","Not Well-Formed XML");return{declaration:g?g.node:null,root:E,children:A}}function n(g){const A=m(g?/^<\?(xml)\s*/:/^<\?([\w-:.]+)\s*/);if(!A)return;const E={name:A[1],type:"ProcessingInstruction",attributes:{}};for(;!(s()||c("?>"));){const Z=r();if(Z)E.attributes[Z.name]=Z.value;else return}return m(/\?>/),{excluded:g?!1:y.options.filter(E)===!1,node:E}}function l(g){const A=m(/^<([\w-:.\u00C0-\u00FF]+)\s*/);if(!A)return;const E={type:"Element",name:A[1],attributes:{},children:[]},Z=g?!1:y.options.filter(E)===!1;for(;!(s()||c(">")||c("?>")||c("/>"));){const P=r();if(P)E.attributes[P.name]=P.value;else return}if(m(/^\s*\/>/))return E.children=null,{excluded:Z,node:E};m(/\??>/);let B=p();for(;B;)B.excluded||E.children.push(B.node),B=p();return m(/^<\/\s*[\w-:.\u00C0-\u00FF]+>/),{excluded:Z,node:E}}function _(){const g=m(/^<!DOCTYPE\s+[^>]*>/);if(g){const A={type:"DocumentType",content:g[0]};return{excluded:y.options.filter(A)===!1,node:A}}}function w(){if(y.xml.startsWith("<![CDATA[")){const g=y.xml.indexOf("]]>");if(g>-1){const A=g+3,E={type:"CDATA",content:y.xml.substring(0,A)};return y.xml=y.xml.slice(A),{excluded:y.options.filter(E)===!1,node:E}}}}function b(){const g=m(/^<!--[\s\S]*?-->/);if(g){const A={type:"Comment",content:g[0]};return{excluded:y.options.filter(A)===!1,node:A}}}function u(){const g=m(/^([^<]+)/);if(g){const A={type:"Text",content:g[1]};return{excluded:y.options.filter(A)===!1,node:A}}}function r(){const g=m(/([\w-:.\u00C0-\u00FF]+)\s*=\s*("[^"]*"|'[^']*'|[\w\u00C0-\u00FF]+)\s*/);if(g)return{name:g[1],value:f(g[2])}}function f(g){return g.replace(/^['"]|['"]$/g,"")}function m(g){const A=y.xml.match(g);if(A)return y.xml=y.xml.slice(A[0].length),A}function s(){return y.xml.length===0}function c(g){return y.xml.indexOf(g)===0}function d(g,A={}){g=g.trim();const E=A.filter||(()=>!0);return y={xml:g,options:Object.assign(Object.assign({},A),{filter:E})},o()}x.exports=d,C.default=d})(Jt,Me),function(x,C){var a=Be&&Be.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(C,"__esModule",{value:!0});const y=a(Me);function p(u){if(!u.options.indentation&&!u.options.lineSeparator)return;u.content+=u.options.lineSeparator;let r;for(r=0;r<u.level;r++)u.content+=u.options.indentation}function i(u,r){u.content+=r}function o(u,r,f){if(typeof u.content=="string")n(u.content,r,f);else if(u.type==="Element")l(u,r,f);else if(u.type==="ProcessingInstruction")w(u,r);else throw new Error("Unknown node type: "+u.type)}function n(u,r,f){f||(u=u.trim()),u.length>0&&(!f&&r.content.length>0&&p(r),i(r,u))}function l(u,r,f){if(!f&&r.content.length>0&&p(r),i(r,"<"+u.name),_(r,u.attributes),u.children===null){const m=r.options.whiteSpaceAtEndOfSelfclosingTag?" />":"/>";i(r,m)}else if(u.children.length===0)i(r,"></"+u.name+">");else{const m=u.children;i(r,">"),r.level++;let s=u.attributes["xml:space"]==="preserve";if(!s&&r.options.collapseContent){let c=!1,d=!1,g=!1;m.forEach(function(A,E){A.type==="Text"?(A.content.includes(`
- `)?(d=!0,A.content=A.content.trim()):(E===0||E===m.length-1)&&A.content.trim().length===0&&(A.content=""),A.content.length>0&&(c=!0)):A.type==="CDATA"?c=!0:g=!0}),c&&(!g||!d)&&(s=!0)}m.forEach(function(c){o(c,r,f||s)}),r.level--,!f&&!s&&p(r),i(r,"</"+u.name+">")}}function _(u,r){Object.keys(r).forEach(function(f){const m=r[f].replace(/"/g,""");i(u," "+f+'="'+m+'"')})}function w(u,r){r.content.length>0&&p(r),i(r,"<?"+u.name),_(r,u.attributes),i(r,"?>")}function b(u,r={}){r.indentation="indentation"in r?r.indentation:" ",r.collapseContent=r.collapseContent===!0,r.lineSeparator="lineSeparator"in r?r.lineSeparator:`\r
- `,r.whiteSpaceAtEndOfSelfclosingTag=r.whiteSpaceAtEndOfSelfclosingTag===!0,r.throwOnFailure=r.throwOnFailure!==!1;try{const f=(0,y.default)(u,{filter:r.filter}),m={content:"",level:0,options:r};return f.declaration&&w(f.declaration,m),f.children.forEach(function(s){o(s,m,!1)}),m.content.replace(/\r\n/g,`
- `).replace(/\n/g,r.lineSeparator)}catch(f){if(r.throwOnFailure)throw f;return u}}x.exports=b,C.default=b}(Qt,De);const ut=Xt(De),er=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" slot="app-icon">
- <path d="M7 33V7v26ZM4 44V7q0-1.25.875-2.125T7 4h24q1.25 0 2.125.875T34 7v2.95q-.85.45-1.625 1.05-.775.6-1.375 1.35V7H7v26h24v-9.35q.6.75 1.375 1.35.775.6 1.625 1.05V33q0 1.25-.875 2.125T31 36H12Zm8-16.5h8v-3h-8Zm26-4q-2.3 0-3.9-1.6T32.5 18q0-2.3 1.6-3.9t3.9-1.6q.5 0 1.125.15t1.375.4V2H48v3h-4.5v13q0 2.3-1.6 3.9T38 23.5Zm-26-2h14v-3H12Zm0-6h14v-3H12Z" />
- </svg>
- `;async function ht(x,C,a){a??(a=location.pathname.split("/")[1]);const y=await be(`https://amp-api.music.apple.com/v1/catalog/${a}/songs/${x}/${C?"syllable-lyrics":"lyrics"}`,{headers:{Origin:"https://music.apple.com",Referer:"https://music.apple.com/",Authorization:`Bearer ${await Re()}`}});return y.status===404?null:(await y.json()).data[0]}Vt((x,C)=>{const a=rt("Rip lyrics<br><small>* Requires a valid subscription<br>in the active storefront.</small>",er,!0);a.addEventListener("click",async()=>{await tr(C)}),nt(x,a)});async function tr(x){const C=await Ze(x);if(!C)return;const a=new Kt;for(const y of C.relationships.tracks.data){if(y.attributes.hasTimeSyncedLyrics){const p=await ht(y.id,!0);p&&ft(a,y.attributes,p.attributes,!0)}if(y.attributes.hasLyrics){const p=await ht(y.id,!1);p&&ft(a,y.attributes,p.attributes,!1)}await xe(100)}if(!Object.keys(a.files).length){alert("No lyrics could be downloaded.");return}Rt(await a.generateAsync({type:"blob"}),`[LYRICS] [${C.id}] ${C.attributes.artistName.slice(0,80).trim()} - ${C.attributes.name.slice(0,80).trim()}.zip`)}function ft(x,C,a,y){const p=`${C.discNumber}-${C.trackNumber.toString().padStart(2,"0")}. ${C.name.slice(0,120).trim()}`;if(y&&a.ttml.includes("<span begin=")?x.file(`${p}.syllable.ttml`,ut(a.ttml,{lineSeparator:`
- `,indentation:" "})):x.file(`${p}.ttml`,ut(a.ttml,{lineSeparator:`
- `,indentation:" "})),!y){const i=new DOMParser().parseFromString(a.ttml,"text/xml");let o="";for(const n of Array.from(i.querySelectorAll("p"))){const l=n.getAttribute("begin");l?o+=`[${rr(l)}] ${n.textContent}
- `:o+=`${n.textContent}
- `}x.file(`${p}.lrc`,o)}}function rr(x){const C=x.split(/[:.]/g).reverse(),a=(C[2]??"").padStart(2,"0"),y=(C[1]??"").padStart(2,"0"),p=Math.floor(Number(C[0])/10).toString().padStart(2,"0");return`${a}:${y}.${p}`}const nr=`.ame-color-primary{color:var(--systemPrimary)}.ame-color-secondary{color:var(--systemSecondary)}.ame-color-tertiary{color:var(--systemTertiary)}.ame-color-warning{color:var(--systemYellow)}.upsell-banner,.banner-container{display:none}.navigation__scrollable-container+.navigation__native-cta{display:none}.native-cta{margin-left:25px;margin-right:24px;fill:var(--systemSecondary)}.native-cta__app-icon svg{width:24px!important;margin-left:4px;margin-right:9px}.native-cta__button{display:flex;align-items:center}nav{padding-bottom:.5em;grid-template-rows:min-content min-content minmax(0,min-content) min-content min-content min-content min-content min-content min-content min-content min-content!important}.navigation__scrollable-container{margin-bottom:.5em}.navigation__native-cta{display:contents}.native-cta{padding-top:8px!important;padding-bottom:8px!important;border-top:none!important}.native-cta__button svg,.native-cta__button .native-cta__label{transition:50ms linear color,50ms linear fill}.native-cta__button:active svg,.native-cta__button:active .native-cta__label{color:#fff!important;fill:#fff!important}.page-error{width:100%!important;max-width:900px!important}.page-error__title+.button button{padding-left:1em;padding-right:1em}div[slot=artwork]{height:fit-content}.container-detail-header,.headings,.headings *,.headings__subtitles *,dialog *,.section-content,.tracklist-footer,.tracklist-footer *{user-select:text!important;-moz-user-select:text!important;-webkit-user-select:text!important}.headings__metadata-bottom{user-select:none!important;-moz-user-select:none!important;-webkit-user-select:none!important}.songs-list-row__song-name{width:min-content;user-select:all!important;-moz-user-select:all!important;-webkit-user-select:all!important}.headings__metadata:last-child{margin-bottom:48px}.ame-album-badges-container>svg{margin-right:1em;margin-top:1em;fill:#999}.ame-album-countries-header{margin:0 var(--bodyGutter);font-size:1.1em}.ame-album-countries-container{margin:0 var(--bodyGutter);margin-bottom:var(--bodyGutter);padding:1em 0;line-height:2.2;text-align:justify;user-select:text}.ame-album-countries-container *{user-select:text}.ame-album-countries-container div:not(:empty){padding:.5em 0}
- `;GM.addStyle(nr),ye("nav","amp-chrome-player").then(x=>{x&&Ie(it,0)}),Ee(async()=>{Ie(He,100),Ie(ot,200),Ie(We,300)}),Ue(()=>{Qe(We),Qe(He)}),Zt('iframe[src^="/includes/commerce/subscribe"]',()=>{const x=document.querySelector(".backdrop");x==null||x.click()})});
|