var BBQr=function(At){"use strict";function io(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Kt={},ao=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},Hr={},Be={};let Nn;const oo=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];Be.getSymbolSize=function(r){if(!r)throw new Error('"version" cannot be null or undefined');if(r<1||r>40)throw new Error('"version" should be in range from 1 to 40');return r*4+17},Be.getSymbolTotalCodewords=function(r){return oo[r]},Be.getBCHDigit=function(e){let r=0;for(;e!==0;)r++,e>>>=1;return r},Be.setToSJISFunction=function(r){if(typeof r!="function")throw new Error('"toSJISFunc" is not a valid function.');Nn=r},Be.isKanjiModeEnabled=function(){return typeof Nn<"u"},Be.toSJIS=function(r){return Nn(r)};var un={};(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function r(t){if(typeof t!="string")throw new Error("Param is not a string");switch(t.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+t)}}e.isValid=function(i){return i&&typeof i.bit<"u"&&i.bit>=0&&i.bit<4},e.from=function(i,l){if(e.isValid(i))return i;try{return r(i)}catch{return l}}})(un);function Ur(){this.buffer=[],this.length=0}Ur.prototype={get:function(e){const r=Math.floor(e/8);return(this.buffer[r]>>>7-e%8&1)===1},put:function(e,r){for(let t=0;t>>r-t-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){const r=Math.floor(this.length/8);this.buffer.length<=r&&this.buffer.push(0),e&&(this.buffer[r]|=128>>>this.length%8),this.length++}};var fo=Ur;function Yt(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}Yt.prototype.set=function(e,r,t,i){const l=e*this.size+r;this.data[l]=t,i&&(this.reservedBit[l]=!0)},Yt.prototype.get=function(e,r){return this.data[e*this.size+r]},Yt.prototype.xor=function(e,r,t){this.data[e*this.size+r]^=t},Yt.prototype.isReserved=function(e,r){return this.reservedBit[e*this.size+r]};var lo=Yt,Fr={};(function(e){const r=Be.getSymbolSize;e.getRowColCoords=function(i){if(i===1)return[];const l=Math.floor(i/7)+2,n=r(i),a=n===145?26:Math.ceil((n-13)/(2*l-2))*2,f=[n-7];for(let s=1;s=0&&l<=7},e.from=function(l){return e.isValid(l)?parseInt(l,10):void 0},e.getPenaltyN1=function(l){const n=l.size;let a=0,f=0,s=0,h=null,c=null;for(let _=0;_=5&&(a+=r.N1+(f-5)),h=w,f=1),w=l.get(v,_),w===c?s++:(s>=5&&(a+=r.N1+(s-5)),c=w,s=1)}f>=5&&(a+=r.N1+(f-5)),s>=5&&(a+=r.N1+(s-5))}return a},e.getPenaltyN2=function(l){const n=l.size;let a=0;for(let f=0;f=10&&(f===1488||f===93)&&a++,s=s<<1&2047|l.get(c,h),c>=10&&(s===1488||s===93)&&a++}return a*r.N3},e.getPenaltyN4=function(l){let n=0;const a=l.data.length;for(let s=0;s=0;){const a=n[0];for(let s=0;s0){const n=new Uint8Array(this.degree);return n.set(i,l),n}return i};var ho=Zn,qr={},at={},On={};On.isValid=function(r){return!isNaN(r)&&r>=1&&r<=40};var Qe={};const jr="[0-9]+",co="[A-Z $%*+\\-./:]+";let qt="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";qt=qt.replace(/u/g,"\\u");const uo="(?:(?![A-Z0-9 $%*+\\-./:]|"+qt+`)(?:.|[\r ]))+`;Qe.KANJI=new RegExp(qt,"g"),Qe.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),Qe.BYTE=new RegExp(uo,"g"),Qe.NUMERIC=new RegExp(jr,"g"),Qe.ALPHANUMERIC=new RegExp(co,"g");const _o=new RegExp("^"+qt+"$"),go=new RegExp("^"+jr+"$"),vo=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");Qe.testKanji=function(r){return _o.test(r)},Qe.testNumeric=function(r){return go.test(r)},Qe.testAlphanumeric=function(r){return vo.test(r)},function(e){const r=On,t=Qe;e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(n,a){if(!n.ccBits)throw new Error("Invalid mode: "+n);if(!r.isValid(a))throw new Error("Invalid version: "+a);return a>=1&&a<10?n.ccBits[0]:a<27?n.ccBits[1]:n.ccBits[2]},e.getBestModeForData=function(n){return t.testNumeric(n)?e.NUMERIC:t.testAlphanumeric(n)?e.ALPHANUMERIC:t.testKanji(n)?e.KANJI:e.BYTE},e.toString=function(n){if(n&&n.id)return n.id;throw new Error("Invalid mode")},e.isValid=function(n){return n&&n.bit&&n.ccBits};function i(l){if(typeof l!="string")throw new Error("Param is not a string");switch(l.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+l)}}e.from=function(n,a){if(e.isValid(n))return n;try{return i(n)}catch{return a}}}(at),function(e){const r=Be,t=_n,i=un,l=at,n=On,a=7973,f=r.getBCHDigit(a);function s(v,w,d){for(let S=1;S<=40;S++)if(w<=e.getCapacity(S,d,v))return S}function h(v,w){return l.getCharCountIndicator(v,w)+4}function c(v,w){let d=0;return v.forEach(function(S){const T=h(S.mode,w);d+=T+S.getBitsLength()}),d}function _(v,w){for(let d=1;d<=40;d++)if(c(v,d)<=e.getCapacity(d,w,l.MIXED))return d}e.from=function(w,d){return n.isValid(w)?parseInt(w,10):d},e.getCapacity=function(w,d,S){if(!n.isValid(w))throw new Error("Invalid QR Code version");typeof S>"u"&&(S=l.BYTE);const T=r.getSymbolTotalCodewords(w),b=t.getTotalCodewordsCount(w,d),x=(T-b)*8;if(S===l.MIXED)return x;const y=x-h(S,w);switch(S){case l.NUMERIC:return Math.floor(y/10*3);case l.ALPHANUMERIC:return Math.floor(y/11*2);case l.KANJI:return Math.floor(y/13);case l.BYTE:default:return Math.floor(y/8)}},e.getBestVersionForData=function(w,d){let S;const T=i.from(d,i.M);if(Array.isArray(w)){if(w.length>1)return _(w,T);if(w.length===0)return 1;S=w[0]}else S=w;return s(S.mode,S.getLength(),T)},e.getEncodedBits=function(w){if(!n.isValid(w)||w<7)throw new Error("Invalid QR Code version");let d=w<<12;for(;r.getBCHDigit(d)-f>=0;)d^=a<=0;)l^=Xr<0&&(i=this.data.substr(t),l=parseInt(i,10),r.put(l,n*3+1))};var po=St;const xo=at,Un=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function Tt(e){this.mode=xo.ALPHANUMERIC,this.data=e}Tt.getBitsLength=function(r){return 11*Math.floor(r/2)+6*(r%2)},Tt.prototype.getLength=function(){return this.data.length},Tt.prototype.getBitsLength=function(){return Tt.getBitsLength(this.data.length)},Tt.prototype.write=function(r){let t;for(t=0;t+2<=this.data.length;t+=2){let i=Un.indexOf(this.data[t])*45;i+=Un.indexOf(this.data[t+1]),r.put(i,11)}this.data.length%2&&r.put(Un.indexOf(this.data[t]),6)};var Eo=Tt,ko=function(r){for(var t=[],i=r.length,l=0;l=55296&&n<=56319&&i>l+1){var a=r.charCodeAt(l+1);a>=56320&&a<=57343&&(n=(n-55296)*1024+a-56320+65536,l+=1)}if(n<128){t.push(n);continue}if(n<2048){t.push(n>>6|192),t.push(n&63|128);continue}if(n<55296||n>=57344&&n<65536){t.push(n>>12|224),t.push(n>>6&63|128),t.push(n&63|128);continue}if(n>=65536&&n<=1114111){t.push(n>>18|240),t.push(n>>12&63|128),t.push(n>>6&63|128),t.push(n&63|128);continue}t.push(239,191,189)}return new Uint8Array(t).buffer};const yo=ko,mo=at;function Rt(e){this.mode=mo.BYTE,typeof e=="string"&&(e=yo(e)),this.data=new Uint8Array(e)}Rt.getBitsLength=function(r){return r*8},Rt.prototype.getLength=function(){return this.data.length},Rt.prototype.getBitsLength=function(){return Rt.getBitsLength(this.data.length)},Rt.prototype.write=function(e){for(let r=0,t=this.data.length;r=33088&&t<=40956)t-=33088;else if(t>=57408&&t<=60351)t-=49472;else throw new Error("Invalid SJIS character: "+this.data[r]+` Make sure your charset is UTF-8`);t=(t>>>8&255)*192+(t&255),e.put(t,13)}};var Ro=zt,Gr={exports:{}};(function(e){var r={single_source_shortest_paths:function(t,i,l){var n={},a={};a[i]=0;var f=r.PriorityQueue.make();f.push(i,0);for(var s,h,c,_,v,w,d,S,T;!f.empty();){s=f.pop(),h=s.value,_=s.cost,v=t[h]||{};for(c in v)v.hasOwnProperty(c)&&(w=v[c],d=_+w,S=a[c],T=typeof a[c]>"u",(T||S>d)&&(a[c]=d,f.push(c,d),n[c]=h))}if(typeof l<"u"&&typeof a[l]>"u"){var b=["Could not find a path from ",i," to ",l,"."].join("");throw new Error(b)}return n},extract_shortest_path_from_predecessor_list:function(t,i){for(var l=[],n=i;n;)l.push(n),t[n],n=t[n];return l.reverse(),l},find_path:function(t,i,l){var n=r.single_source_shortest_paths(t,i,l);return r.extract_shortest_path_from_predecessor_list(n,l)},PriorityQueue:{make:function(t){var i=r.PriorityQueue,l={},n;t=t||{};for(n in i)i.hasOwnProperty(n)&&(l[n]=i[n]);return l.queue=[],l.sorter=t.sorter||i.default_sorter,l},default_sorter:function(t,i){return t.cost-i.cost},push:function(t,i){var l={value:t,cost:i};this.queue.push(l),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};e.exports=r})(Gr);var zo=Gr.exports;(function(e){const r=at,t=po,i=Eo,l=Ao,n=Ro,a=Qe,f=Be,s=zo;function h(b){return unescape(encodeURIComponent(b)).length}function c(b,x,y){const E=[];let R;for(;(R=b.exec(y))!==null;)E.push({data:R[0],index:R.index,mode:x,length:R[0].length});return E}function _(b){const x=c(a.NUMERIC,r.NUMERIC,b),y=c(a.ALPHANUMERIC,r.ALPHANUMERIC,b);let E,R;return f.isKanjiModeEnabled()?(E=c(a.BYTE,r.BYTE,b),R=c(a.KANJI,r.KANJI,b)):(E=c(a.BYTE_KANJI,r.BYTE,b),R=[]),x.concat(y,E,R).sort(function(k,C){return k.index-C.index}).map(function(k){return{data:k.data,mode:k.mode,length:k.length}})}function v(b,x){switch(x){case r.NUMERIC:return t.getBitsLength(b);case r.ALPHANUMERIC:return i.getBitsLength(b);case r.KANJI:return n.getBitsLength(b);case r.BYTE:return l.getBitsLength(b)}}function w(b){return b.reduce(function(x,y){const E=x.length-1>=0?x[x.length-1]:null;return E&&E.mode===y.mode?(x[x.length-1].data+=y.data,x):(x.push(y),x)},[])}function d(b){const x=[];for(let y=0;y=0&&f<=6&&(s===0||s===6)||s>=0&&s<=6&&(f===0||f===6)||f>=2&&f<=4&&s>=2&&s<=4?e.set(n+f,a+s,!0,!0):e.set(n+f,a+s,!1,!0))}}function Oo(e){const r=e.size;for(let t=8;t>f&1)===1,e.set(l,n,a,!0),e.set(n,l,a,!0)}function Yn(e,r,t){const i=e.size,l=Mo.getEncodedBits(r,t);let n,a;for(n=0;n<15;n++)a=(l>>n&1)===1,n<6?e.set(n,8,a,!0):n<8?e.set(n+1,8,a,!0):e.set(i-15+n,8,a,!0),n<8?e.set(8,i-n-1,a,!0):n<9?e.set(8,15-n-1+1,a,!0):e.set(8,15-n-1,a,!0);e.set(i-8,8,1,!0)}function Fo(e,r){const t=e.size;let i=-1,l=t-1,n=7,a=0;for(let f=t-1;f>0;f-=2)for(f===6&&f--;;){for(let s=0;s<2;s++)if(!e.isReserved(l,f-s)){let h=!1;a>>n&1)===1),e.set(l,f-s,h),n--,n===-1&&(a++,n=7)}if(l+=i,l<0||t<=l){l-=i,i=-i;break}}}function $o(e,r,t){const i=new Io;t.forEach(function(s){i.put(s.mode.bit,4),i.put(s.getLength(),No.getCharCountIndicator(s.mode,e)),s.write(i)});const l=pn.getSymbolTotalCodewords(e),n=Pn.getTotalCodewordsCount(e,r),a=(l-n)*8;for(i.getLengthInBits()+4<=a&&i.put(0,4);i.getLengthInBits()%8!==0;)i.putBit(0);const f=(a-i.getLengthInBits())/8;for(let s=0;s=7&&Uo(s,r),Fo(s,a),isNaN(i)&&(i=$n.getBestMask(s,Yn.bind(null,s,t))),$n.applyMask(i,s),Yn(s,t,i),{modules:s,version:r,errorCorrectionLevel:t,maskPattern:i,segments:l}}Hr.create=function(r,t){if(typeof r>"u"||r==="")throw new Error("No input text");let i=Fn.M,l,n;return typeof t<"u"&&(i=Fn.from(t.errorCorrectionLevel,Fn.M),l=xn.from(t.version),n=$n.from(t.maskPattern),t.toSJISFunc&&pn.setToSJISFunction(t.toSJISFunc)),Ko(r,l,i,n)};var ei={},Qn={};(function(e){function r(t){if(typeof t=="number"&&(t=t.toString()),typeof t!="string")throw new Error("Color should be defined as hex string");let i=t.slice().replace("#","").split("");if(i.length<3||i.length===5||i.length>8)throw new Error("Invalid hex color: "+t);(i.length===3||i.length===4)&&(i=Array.prototype.concat.apply([],i.map(function(n){return[n,n]}))),i.length===6&&i.push("F","F");const l=parseInt(i.join(""),16);return{r:l>>24&255,g:l>>16&255,b:l>>8&255,a:l&255,hex:"#"+i.slice(0,6).join("")}}e.getOptions=function(i){i||(i={}),i.color||(i.color={});const l=typeof i.margin>"u"||i.margin===null||i.margin<0?4:i.margin,n=i.width&&i.width>=21?i.width:void 0,a=i.scale||4;return{width:n,scale:n?4:a,margin:l,color:{dark:r(i.color.dark||"#000000ff"),light:r(i.color.light||"#ffffffff")},type:i.type,rendererOpts:i.rendererOpts||{}}},e.getScale=function(i,l){return l.width&&l.width>=i+l.margin*2?l.width/(i+l.margin*2):l.scale},e.getImageWidth=function(i,l){const n=e.getScale(i,l);return Math.floor((i+l.margin*2)*n)},e.qrToImageData=function(i,l,n){const a=l.modules.size,f=l.modules.data,s=e.getScale(a,n),h=Math.floor((a+n.margin*2)*s),c=n.margin*s,_=[n.color.light,n.color.dark];for(let v=0;v=c&&w>=c&&v"u"&&(!a||!a.getContext)&&(s=a,a=void 0),a||(h=i()),s=r.getOptions(s);const c=r.getImageWidth(n.modules.size,s),_=h.getContext("2d"),v=_.createImageData(c,c);return r.qrToImageData(v.data,n,s),t(_,h,c),_.putImageData(v,0,0),h},e.renderToDataURL=function(n,a,f){let s=f;typeof s>"u"&&(!a||!a.getContext)&&(s=a,a=void 0),s||(s={});const h=e.render(n,a,s),c=s.type||"image/png",_=s.rendererOpts||{};return h.toDataURL(c,_.quality)}}(ei);var ti={};const Yo=Qn;function ni(e,r){const t=e.a/255,i=r+'="'+e.hex+'"';return t<1?i+" "+r+'-opacity="'+t.toFixed(2).slice(1)+'"':i}function qn(e,r,t){let i=e+r;return typeof t<"u"&&(i+=" "+t),i}function Qo(e,r,t){let i="",l=0,n=!1,a=0;for(let f=0;f0&&s>0&&e[f-1]||(i+=n?qn("M",s+t,.5+h+t):qn("m",l,0),l=0,n=!1),s+1':"",h="',c='viewBox="0 0 '+f+" "+f+'"',v=''+s+h+` `;return typeof i=="function"&&i(null,v),v};const qo=ao,jn=Hr,ri=ei,jo=ti;function Vn(e,r,t,i,l){const n=[].slice.call(arguments,1),a=n.length,f=typeof n[a-1]=="function";if(!f&&!qo())throw new Error("Callback required as last argument");if(f){if(a<2)throw new Error("Too few arguments provided");a===2?(l=t,t=r,r=i=void 0):a===3&&(r.getContext&&typeof l>"u"?(l=i,i=void 0):(l=i,i=t,t=r,r=void 0))}else{if(a<1)throw new Error("Too few arguments provided");return a===1?(t=r,r=i=void 0):a===2&&!r.getContext&&(i=t,t=r,r=void 0),new Promise(function(s,h){try{const c=jn.create(t,i);s(e(c,r,i))}catch(c){h(c)}})}try{const s=jn.create(t,i);l(null,e(s,r,i))}catch(s){l(s)}}Kt.create=jn.create,Kt.toCanvas=Vn.bind(null,ri.render),Kt.toDataURL=Vn.bind(null,ri.renderToDataURL),Kt.toString=Vn.bind(null,function(e,r,t){return jo.render(e,t)});function Vo(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var ii={exports:{}},Xn={},ai;function ot(){return ai||(ai=1,function(e){var r=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function t(n,a){return Object.prototype.hasOwnProperty.call(n,a)}e.assign=function(n){for(var a=Array.prototype.slice.call(arguments,1);a.length;){var f=a.shift();if(f){if(typeof f!="object")throw new TypeError(f+"must be non-object");for(var s in f)t(f,s)&&(n[s]=f[s])}}return n},e.shrinkBuf=function(n,a){return n.length===a?n:n.subarray?n.subarray(0,a):(n.length=a,n)};var i={arraySet:function(n,a,f,s,h){if(a.subarray&&n.subarray){n.set(a.subarray(f,f+s),h);return}for(var c=0;c=0;)p[O]=0}var a=0,f=1,s=2,h=3,c=258,_=29,v=256,w=v+1+_,d=30,S=19,T=2*w+1,b=15,x=16,y=7,E=256,R=16,D=17,k=18,C=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],Z=[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],B=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],N=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],F=512,U=new Array((w+2)*2);n(U);var P=new Array(d*2);n(P);var J=new Array(F);n(J);var V=new Array(c-h+1);n(V);var Y=new Array(_);n(Y);var j=new Array(d);n(j);function ne(p,O,$,Q,A){this.static_tree=p,this.extra_bits=O,this.extra_base=$,this.elems=Q,this.max_length=A,this.has_stree=p&&p.length}var Ee,Ae,_e;function de(p,O){this.dyn_tree=p,this.max_code=0,this.stat_desc=O}function ve(p){return p<256?J[p]:J[256+(p>>>7)]}function ue(p,O){p.pending_buf[p.pending++]=O&255,p.pending_buf[p.pending++]=O>>>8&255}function ae(p,O,$){p.bi_valid>x-$?(p.bi_buf|=O<>x-p.bi_valid,p.bi_valid+=$-x):(p.bi_buf|=O<>>=1,$<<=1;while(--O>0);return $>>>1}function G(p){p.bi_valid===16?(ue(p,p.bi_buf),p.bi_buf=0,p.bi_valid=0):p.bi_valid>=8&&(p.pending_buf[p.pending++]=p.bi_buf&255,p.bi_buf>>=8,p.bi_valid-=8)}function ze(p,O){var $=O.dyn_tree,Q=O.max_code,A=O.stat_desc.static_tree,M=O.stat_desc.has_stree,u=O.stat_desc.extra_bits,H=O.stat_desc.extra_base,W=O.stat_desc.max_length,o,I,L,g,m,z,X=0;for(g=0;g<=b;g++)p.bl_count[g]=0;for($[p.heap[p.heap_max]*2+1]=0,o=p.heap_max+1;oW&&(g=W,X++),$[I*2+1]=g,!(I>Q)&&(p.bl_count[g]++,m=0,I>=H&&(m=u[I-H]),z=$[I*2],p.opt_len+=z*(g+m),M&&(p.static_len+=z*(A[I*2+1]+m)));if(X!==0){do{for(g=W-1;p.bl_count[g]===0;)g--;p.bl_count[g]--,p.bl_count[g+1]+=2,p.bl_count[W]--,X-=2}while(X>0);for(g=W;g!==0;g--)for(I=p.bl_count[g];I!==0;)L=p.heap[--o],!(L>Q)&&($[L*2+1]!==g&&(p.opt_len+=(g-$[L*2+1])*$[L*2],$[L*2+1]=g),I--)}}function Ie(p,O,$){var Q=new Array(b+1),A=0,M,u;for(M=1;M<=b;M++)Q[M]=A=A+$[M-1]<<1;for(u=0;u<=O;u++){var H=p[u*2+1];H!==0&&(p[u*2]=te(Q[H]++,H))}}function ee(){var p,O,$,Q,A,M=new Array(b+1);for($=0,Q=0;Q<_-1;Q++)for(Y[Q]=$,p=0;p<1<>=7;Q8?ue(p,p.bi_buf):p.bi_valid>0&&(p.pending_buf[p.pending++]=p.bi_buf),p.bi_buf=0,p.bi_valid=0}function De(p,O,$,Q){Ue(p),Q&&(ue(p,$),ue(p,~$)),e.arraySet(p.pending_buf,p.window,O,$,p.pending),p.pending+=$}function ye(p,O,$,Q){var A=O*2,M=$*2;return p[A]>1;u>=1;u--)he(p,$,u);o=M;do u=p.heap[1],p.heap[1]=p.heap[p.heap_len--],he(p,$,1),H=p.heap[1],p.heap[--p.heap_max]=u,p.heap[--p.heap_max]=H,$[o*2]=$[u*2]+$[H*2],p.depth[o]=(p.depth[u]>=p.depth[H]?p.depth[u]:p.depth[H])+1,$[u*2+1]=$[H*2+1]=o,p.heap[1]=o++,he(p,$,1);while(p.heap_len>=2);p.heap[--p.heap_max]=p.heap[1],ze(p,O),Ie($,W,p.bl_count)}function Ut(p,O,$){var Q,A=-1,M,u=O[0*2+1],H=0,W=7,o=4;for(u===0&&(W=138,o=3),O[($+1)*2+1]=65535,Q=0;Q<=$;Q++)M=u,u=O[(Q+1)*2+1],!(++H=3&&p.bl_tree[N[O]*2+1]===0;O--);return p.opt_len+=3*(O+1)+5+5+4,O}function Ft(p,O,$,Q){var A;for(ae(p,O-257,5),ae(p,$-1,5),ae(p,Q-4,4),A=0;A>>=1)if(O&1&&p.dyn_ltree[$*2]!==0)return t;if(p.dyn_ltree[18]!==0||p.dyn_ltree[20]!==0||p.dyn_ltree[26]!==0)return i;for($=32;$0?(p.strm.data_type===l&&(p.strm.data_type=ut(p)),Fe(p,p.l_desc),Fe(p,p.d_desc),u=$e(p),A=p.opt_len+3+7>>>3,M=p.static_len+3+7>>>3,M<=A&&(A=M)):A=M=$+5,$+4<=A&&O!==-1?_t(p,O,$,Q):p.strategy===r||M===A?(ae(p,(f<<1)+(Q?1:0),3),re(p,U,P)):(ae(p,(s<<1)+(Q?1:0),3),Ft(p,p.l_desc.max_code+1,p.d_desc.max_code+1,u+1),re(p,p.dyn_ltree,p.dyn_dtree)),we(p),Q&&Ue(p)}function Pt(p,O,$){return p.pending_buf[p.d_buf+p.last_lit*2]=O>>>8&255,p.pending_buf[p.d_buf+p.last_lit*2+1]=O&255,p.pending_buf[p.l_buf+p.last_lit]=$&255,p.last_lit++,O===0?p.dyn_ltree[$*2]++:(p.matches++,O--,p.dyn_ltree[(V[$]+v+1)*2]++,p.dyn_dtree[ve(O)*2]++),p.last_lit===p.lit_bufsize-1}return gt._tr_init=$t,gt._tr_stored_block=_t,gt._tr_flush_block=Je,gt._tr_tally=Pt,gt._tr_align=Se,gt}var Jn,fi;function li(){if(fi)return Jn;fi=1;function e(r,t,i,l){for(var n=r&65535|0,a=r>>>16&65535|0,f=0;i!==0;){f=i>2e3?2e3:i,i-=f;do n=n+t[l++]|0,a=a+n|0;while(--f);n%=65521,a%=65521}return n|a<<16|0}return Jn=e,Jn}var Wn,si;function hi(){if(si)return Wn;si=1;function e(){for(var i,l=[],n=0;n<256;n++){i=n;for(var a=0;a<8;a++)i=i&1?3988292384^i>>>1:i>>>1;l[n]=i}return l}var r=e();function t(i,l,n,a){var f=r,s=a+n;i^=-1;for(var h=a;h>>8^f[(i^l[h])&255];return i^-1}return Wn=t,Wn}var Gn,ci;function er(){return ci||(ci=1,Gn={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"}),Gn}var di;function Jo(){if(di)return Ke;di=1;var e=ot(),r=Xo(),t=li(),i=hi(),l=er(),n=0,a=1,f=3,s=4,h=5,c=0,_=1,v=-2,w=-3,d=-5,S=-1,T=1,b=2,x=3,y=4,E=0,R=2,D=8,k=9,C=15,Z=8,B=29,N=256,F=N+1+B,U=30,P=19,J=2*F+1,V=15,Y=3,j=258,ne=j+Y+1,Ee=32,Ae=42,_e=69,de=73,ve=91,ue=103,ae=113,se=666,te=1,G=2,ze=3,Ie=4,ee=3;function we(o,I){return o.msg=l[I],I}function Ue(o){return(o<<1)-(o>4?9:0)}function De(o){for(var I=o.length;--I>=0;)o[I]=0}function ye(o){var I=o.state,L=I.pending;L>o.avail_out&&(L=o.avail_out),L!==0&&(e.arraySet(o.output,I.pending_buf,I.pending_out,L,o.next_out),o.next_out+=L,I.pending_out+=L,o.total_out+=L,o.avail_out-=L,I.pending-=L,I.pending===0&&(I.pending_out=0))}function he(o,I){r._tr_flush_block(o,o.block_start>=0?o.block_start:-1,o.strstart-o.block_start,I),o.block_start=o.strstart,ye(o.strm)}function re(o,I){o.pending_buf[o.pending++]=I}function Fe(o,I){o.pending_buf[o.pending++]=I>>>8&255,o.pending_buf[o.pending++]=I&255}function Ut(o,I,L,g){var m=o.avail_in;return m>g&&(m=g),m===0?0:(o.avail_in-=m,e.arraySet(I,o.input,o.next_in,m,L),o.state.wrap===1?o.adler=t(o.adler,I,m,L):o.state.wrap===2&&(o.adler=i(o.adler,I,m,L)),o.next_in+=m,o.total_in+=m,m)}function dt(o,I){var L=o.max_chain_length,g=o.strstart,m,z,X=o.prev_length,K=o.nice_match,q=o.strstart>o.w_size-ne?o.strstart-(o.w_size-ne):0,oe=o.window,nt=o.w_mask,ge=o.prev,fe=o.strstart+j,pe=oe[g+X-1],Te=oe[g+X];o.prev_length>=o.good_match&&(L>>=2),K>o.lookahead&&(K=o.lookahead);do if(m=I,!(oe[m+X]!==Te||oe[m+X-1]!==pe||oe[m]!==oe[g]||oe[++m]!==oe[g+1])){g+=2,m++;do;while(oe[++g]===oe[++m]&&oe[++g]===oe[++m]&&oe[++g]===oe[++m]&&oe[++g]===oe[++m]&&oe[++g]===oe[++m]&&oe[++g]===oe[++m]&&oe[++g]===oe[++m]&&oe[++g]===oe[++m]&&gX){if(o.match_start=I,X=z,z>=K)break;pe=oe[g+X-1],Te=oe[g+X]}}while((I=ge[I&nt])>q&&--L!==0);return X<=o.lookahead?X:o.lookahead}function $e(o){var I=o.w_size,L,g,m,z,X;do{if(z=o.window_size-o.lookahead-o.strstart,o.strstart>=I+(I-ne)){e.arraySet(o.window,o.window,I,I,0),o.match_start-=I,o.strstart-=I,o.block_start-=I,g=o.hash_size,L=g;do m=o.head[--L],o.head[L]=m>=I?m-I:0;while(--g);g=I,L=g;do m=o.prev[--L],o.prev[L]=m>=I?m-I:0;while(--g);z+=I}if(o.strm.avail_in===0)break;if(g=Ut(o.strm,o.window,o.strstart+o.lookahead,z),o.lookahead+=g,o.lookahead+o.insert>=Y)for(X=o.strstart-o.insert,o.ins_h=o.window[X],o.ins_h=(o.ins_h<o.pending_buf_size-5&&(L=o.pending_buf_size-5);;){if(o.lookahead<=1){if($e(o),o.lookahead===0&&I===n)return te;if(o.lookahead===0)break}o.strstart+=o.lookahead,o.lookahead=0;var g=o.block_start+L;if((o.strstart===0||o.strstart>=g)&&(o.lookahead=o.strstart-g,o.strstart=g,he(o,!1),o.strm.avail_out===0)||o.strstart-o.block_start>=o.w_size-ne&&(he(o,!1),o.strm.avail_out===0))return te}return o.insert=0,I===s?(he(o,!0),o.strm.avail_out===0?ze:Ie):(o.strstart>o.block_start&&(he(o,!1),o.strm.avail_out===0),te)}function ut(o,I){for(var L,g;;){if(o.lookahead=Y&&(o.ins_h=(o.ins_h<=Y)if(g=r._tr_tally(o,o.strstart-o.match_start,o.match_length-Y),o.lookahead-=o.match_length,o.match_length<=o.max_lazy_match&&o.lookahead>=Y){o.match_length--;do o.strstart++,o.ins_h=(o.ins_h<=Y&&(o.ins_h=(o.ins_h<4096)&&(o.match_length=Y-1)),o.prev_length>=Y&&o.match_length<=o.prev_length){m=o.strstart+o.lookahead-Y,g=r._tr_tally(o,o.strstart-1-o.prev_match,o.prev_length-Y),o.lookahead-=o.prev_length-1,o.prev_length-=2;do++o.strstart<=m&&(o.ins_h=(o.ins_h<=Y&&o.strstart>0&&(m=o.strstart-1,g=X[m],g===X[++m]&&g===X[++m]&&g===X[++m])){z=o.strstart+j;do;while(g===X[++m]&&g===X[++m]&&g===X[++m]&&g===X[++m]&&g===X[++m]&&g===X[++m]&&g===X[++m]&&g===X[++m]&&mo.lookahead&&(o.match_length=o.lookahead)}if(o.match_length>=Y?(L=r._tr_tally(o,1,o.match_length-Y),o.lookahead-=o.match_length,o.strstart+=o.match_length,o.match_length=0):(L=r._tr_tally(o,0,o.window[o.strstart]),o.lookahead--,o.strstart++),L&&(he(o,!1),o.strm.avail_out===0))return te}return o.insert=0,I===s?(he(o,!0),o.strm.avail_out===0?ze:Ie):o.last_lit&&(he(o,!1),o.strm.avail_out===0)?te:G}function _t(o,I){for(var L;;){if(o.lookahead===0&&($e(o),o.lookahead===0)){if(I===n)return te;break}if(o.match_length=0,L=r._tr_tally(o,0,o.window[o.strstart]),o.lookahead--,o.strstart++,L&&(he(o,!1),o.strm.avail_out===0))return te}return o.insert=0,I===s?(he(o,!0),o.strm.avail_out===0?ze:Ie):o.last_lit&&(he(o,!1),o.strm.avail_out===0)?te:G}function Se(o,I,L,g,m){this.good_length=o,this.max_lazy=I,this.nice_length=L,this.max_chain=g,this.func=m}var Je;Je=[new Se(0,0,0,0,Ft),new Se(4,4,8,4,ut),new Se(4,5,16,8,ut),new Se(4,6,32,32,ut),new Se(4,4,16,16,Ye),new Se(8,16,32,32,Ye),new Se(8,16,128,128,Ye),new Se(8,32,128,256,Ye),new Se(32,128,258,1024,Ye),new Se(32,258,258,4096,Ye)];function Pt(o){o.window_size=2*o.w_size,De(o.head),o.max_lazy_match=Je[o.level].max_lazy,o.good_match=Je[o.level].good_length,o.nice_match=Je[o.level].nice_length,o.max_chain_length=Je[o.level].max_chain,o.strstart=0,o.block_start=0,o.lookahead=0,o.insert=0,o.match_length=o.prev_length=Y-1,o.match_available=0,o.ins_h=0}function p(){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 e.Buf16(J*2),this.dyn_dtree=new e.Buf16((2*U+1)*2),this.bl_tree=new e.Buf16((2*P+1)*2),De(this.dyn_ltree),De(this.dyn_dtree),De(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new e.Buf16(V+1),this.heap=new e.Buf16(2*F+1),De(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new e.Buf16(2*F+1),De(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 O(o){var I;return!o||!o.state?we(o,v):(o.total_in=o.total_out=0,o.data_type=R,I=o.state,I.pending=0,I.pending_out=0,I.wrap<0&&(I.wrap=-I.wrap),I.status=I.wrap?Ae:ae,o.adler=I.wrap===2?0:1,I.last_flush=n,r._tr_init(I),c)}function $(o){var I=O(o);return I===c&&Pt(o.state),I}function Q(o,I){return!o||!o.state||o.state.wrap!==2?v:(o.state.gzhead=I,c)}function A(o,I,L,g,m,z){if(!o)return v;var X=1;if(I===S&&(I=6),g<0?(X=0,g=-g):g>15&&(X=2,g-=16),m<1||m>k||L!==D||g<8||g>15||I<0||I>9||z<0||z>y)return we(o,v);g===8&&(g=9);var K=new p;return o.state=K,K.strm=o,K.wrap=X,K.gzhead=null,K.w_bits=g,K.w_size=1<h||I<0)return o?we(o,v):v;if(g=o.state,!o.output||!o.input&&o.avail_in!==0||g.status===se&&I!==s)return we(o,o.avail_out===0?d:v);if(g.strm=o,L=g.last_flush,g.last_flush=I,g.status===Ae)if(g.wrap===2)o.adler=0,re(g,31),re(g,139),re(g,8),g.gzhead?(re(g,(g.gzhead.text?1:0)+(g.gzhead.hcrc?2:0)+(g.gzhead.extra?4:0)+(g.gzhead.name?8:0)+(g.gzhead.comment?16:0)),re(g,g.gzhead.time&255),re(g,g.gzhead.time>>8&255),re(g,g.gzhead.time>>16&255),re(g,g.gzhead.time>>24&255),re(g,g.level===9?2:g.strategy>=b||g.level<2?4:0),re(g,g.gzhead.os&255),g.gzhead.extra&&g.gzhead.extra.length&&(re(g,g.gzhead.extra.length&255),re(g,g.gzhead.extra.length>>8&255)),g.gzhead.hcrc&&(o.adler=i(o.adler,g.pending_buf,g.pending,0)),g.gzindex=0,g.status=_e):(re(g,0),re(g,0),re(g,0),re(g,0),re(g,0),re(g,g.level===9?2:g.strategy>=b||g.level<2?4:0),re(g,ee),g.status=ae);else{var X=D+(g.w_bits-8<<4)<<8,K=-1;g.strategy>=b||g.level<2?K=0:g.level<6?K=1:g.level===6?K=2:K=3,X|=K<<6,g.strstart!==0&&(X|=Ee),X+=31-X%31,g.status=ae,Fe(g,X),g.strstart!==0&&(Fe(g,o.adler>>>16),Fe(g,o.adler&65535)),o.adler=1}if(g.status===_e)if(g.gzhead.extra){for(m=g.pending;g.gzindex<(g.gzhead.extra.length&65535)&&!(g.pending===g.pending_buf_size&&(g.gzhead.hcrc&&g.pending>m&&(o.adler=i(o.adler,g.pending_buf,g.pending-m,m)),ye(o),m=g.pending,g.pending===g.pending_buf_size));)re(g,g.gzhead.extra[g.gzindex]&255),g.gzindex++;g.gzhead.hcrc&&g.pending>m&&(o.adler=i(o.adler,g.pending_buf,g.pending-m,m)),g.gzindex===g.gzhead.extra.length&&(g.gzindex=0,g.status=de)}else g.status=de;if(g.status===de)if(g.gzhead.name){m=g.pending;do{if(g.pending===g.pending_buf_size&&(g.gzhead.hcrc&&g.pending>m&&(o.adler=i(o.adler,g.pending_buf,g.pending-m,m)),ye(o),m=g.pending,g.pending===g.pending_buf_size)){z=1;break}g.gzindexm&&(o.adler=i(o.adler,g.pending_buf,g.pending-m,m)),z===0&&(g.gzindex=0,g.status=ve)}else g.status=ve;if(g.status===ve)if(g.gzhead.comment){m=g.pending;do{if(g.pending===g.pending_buf_size&&(g.gzhead.hcrc&&g.pending>m&&(o.adler=i(o.adler,g.pending_buf,g.pending-m,m)),ye(o),m=g.pending,g.pending===g.pending_buf_size)){z=1;break}g.gzindexm&&(o.adler=i(o.adler,g.pending_buf,g.pending-m,m)),z===0&&(g.status=ue)}else g.status=ue;if(g.status===ue&&(g.gzhead.hcrc?(g.pending+2>g.pending_buf_size&&ye(o),g.pending+2<=g.pending_buf_size&&(re(g,o.adler&255),re(g,o.adler>>8&255),o.adler=0,g.status=ae)):g.status=ae),g.pending!==0){if(ye(o),o.avail_out===0)return g.last_flush=-1,c}else if(o.avail_in===0&&Ue(I)<=Ue(L)&&I!==s)return we(o,d);if(g.status===se&&o.avail_in!==0)return we(o,d);if(o.avail_in!==0||g.lookahead!==0||I!==n&&g.status!==se){var q=g.strategy===b?_t(g,I):g.strategy===x?$t(g,I):Je[g.level].func(g,I);if((q===ze||q===Ie)&&(g.status=se),q===te||q===ze)return o.avail_out===0&&(g.last_flush=-1),c;if(q===G&&(I===a?r._tr_align(g):I!==h&&(r._tr_stored_block(g,0,0,!1),I===f&&(De(g.head),g.lookahead===0&&(g.strstart=0,g.block_start=0,g.insert=0))),ye(o),o.avail_out===0))return g.last_flush=-1,c}return I!==s?c:g.wrap<=0?_:(g.wrap===2?(re(g,o.adler&255),re(g,o.adler>>8&255),re(g,o.adler>>16&255),re(g,o.adler>>24&255),re(g,o.total_in&255),re(g,o.total_in>>8&255),re(g,o.total_in>>16&255),re(g,o.total_in>>24&255)):(Fe(g,o.adler>>>16),Fe(g,o.adler&65535)),ye(o),g.wrap>0&&(g.wrap=-g.wrap),g.pending!==0?c:_)}function H(o){var I;return!o||!o.state?v:(I=o.state.status,I!==Ae&&I!==_e&&I!==de&&I!==ve&&I!==ue&&I!==ae&&I!==se?we(o,v):(o.state=null,I===ae?we(o,w):c))}function W(o,I){var L=I.length,g,m,z,X,K,q,oe,nt;if(!o||!o.state||(g=o.state,X=g.wrap,X===2||X===1&&g.status!==Ae||g.lookahead))return v;for(X===1&&(o.adler=t(o.adler,I,L,0)),g.wrap=0,L>=g.w_size&&(X===0&&(De(g.head),g.strstart=0,g.block_start=0,g.insert=0),nt=new e.Buf8(g.w_size),e.arraySet(nt,I,L-g.w_size,g.w_size,0),I=nt,L=g.w_size),K=o.avail_in,q=o.next_in,oe=o.input,o.avail_in=L,o.next_in=0,o.input=I,$e(g);g.lookahead>=Y;){m=g.strstart,z=g.lookahead-(Y-1);do g.ins_h=(g.ins_h<=252?6:l>=248?5:l>=240?4:l>=224?3:l>=192?2:1;i[254]=i[254]=1,vt.string2buf=function(a){var f,s,h,c,_,v=a.length,w=0;for(c=0;c>>6,f[_++]=128|s&63):s<65536?(f[_++]=224|s>>>12,f[_++]=128|s>>>6&63,f[_++]=128|s&63):(f[_++]=240|s>>>18,f[_++]=128|s>>>12&63,f[_++]=128|s>>>6&63,f[_++]=128|s&63);return f};function n(a,f){if(f<65534&&(a.subarray&&t||!a.subarray&&r))return String.fromCharCode.apply(null,e.shrinkBuf(a,f));for(var s="",h=0;h4){w[h++]=65533,s+=_-1;continue}for(c&=_===2?31:_===3?15:7;_>1&&s1){w[h++]=65533;continue}c<65536?w[h++]=c:(c-=65536,w[h++]=55296|c>>10&1023,w[h++]=56320|c&1023)}return n(w,h)},vt.utf8border=function(a,f){var s;for(f=f||a.length,f>a.length&&(f=a.length),s=f-1;s>=0&&(a[s]&192)===128;)s--;return s<0||s===0?f:s+i[a[s]]>f?s:f},vt}var tr,gi;function vi(){if(gi)return tr;gi=1;function e(){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}return tr=e,tr}var wi;function Wo(){if(wi)return It;wi=1;var e=Jo(),r=ot(),t=_i(),i=er(),l=vi(),n=Object.prototype.toString,a=0,f=4,s=0,h=1,c=2,_=-1,v=0,w=8;function d(x){if(!(this instanceof d))return new d(x);this.options=r.assign({level:_,method:w,chunkSize:16384,windowBits:15,memLevel:8,strategy:v,to:""},x||{});var y=this.options;y.raw&&y.windowBits>0?y.windowBits=-y.windowBits:y.gzip&&y.windowBits>0&&y.windowBits<16&&(y.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var E=e.deflateInit2(this.strm,y.level,y.method,y.windowBits,y.memLevel,y.strategy);if(E!==s)throw new Error(i[E]);if(y.header&&e.deflateSetHeader(this.strm,y.header),y.dictionary){var R;if(typeof y.dictionary=="string"?R=t.string2buf(y.dictionary):n.call(y.dictionary)==="[object ArrayBuffer]"?R=new Uint8Array(y.dictionary):R=y.dictionary,E=e.deflateSetDictionary(this.strm,R),E!==s)throw new Error(i[E]);this._dict_set=!0}}d.prototype.push=function(x,y){var E=this.strm,R=this.options.chunkSize,D,k;if(this.ended)return!1;k=y===~~y?y:y===!0?f:a,typeof x=="string"?E.input=t.string2buf(x):n.call(x)==="[object ArrayBuffer]"?E.input=new Uint8Array(x):E.input=x,E.next_in=0,E.avail_in=E.input.length;do{if(E.avail_out===0&&(E.output=new r.Buf8(R),E.next_out=0,E.avail_out=R),D=e.deflate(E,k),D!==h&&D!==s)return this.onEnd(D),this.ended=!0,!1;(E.avail_out===0||E.avail_in===0&&(k===f||k===c))&&(this.options.to==="string"?this.onData(t.buf2binstring(r.shrinkBuf(E.output,E.next_out))):this.onData(r.shrinkBuf(E.output,E.next_out)))}while((E.avail_in>0||E.avail_out===0)&&D!==h);return k===f?(D=e.deflateEnd(this.strm),this.onEnd(D),this.ended=!0,D===s):(k===c&&(this.onEnd(s),E.avail_out=0),!0)},d.prototype.onData=function(x){this.chunks.push(x)},d.prototype.onEnd=function(x){x===s&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=r.flattenChunks(this.chunks)),this.chunks=[],this.err=x,this.msg=this.strm.msg};function S(x,y){var E=new d(y);if(E.push(x,!0),E.err)throw E.msg||i[E.err];return E.result}function T(x,y){return y=y||{},y.raw=!0,S(x,y)}function b(x,y){return y=y||{},y.gzip=!0,S(x,y)}return It.Deflate=d,It.deflate=S,It.deflateRaw=T,It.gzip=b,It}var Ct={},Ze={},nr,bi;function Go(){if(bi)return nr;bi=1;var e=30,r=12;return nr=function(i,l){var n,a,f,s,h,c,_,v,w,d,S,T,b,x,y,E,R,D,k,C,Z,B,N,F,U;n=i.state,a=i.next_in,F=i.input,f=a+(i.avail_in-5),s=i.next_out,U=i.output,h=s-(l-i.avail_out),c=s+(i.avail_out-257),_=n.dmax,v=n.wsize,w=n.whave,d=n.wnext,S=n.window,T=n.hold,b=n.bits,x=n.lencode,y=n.distcode,E=(1<>>24,T>>>=k,b-=k,k=D>>>16&255,k===0)U[s++]=D&65535;else if(k&16){C=D&65535,k&=15,k&&(b>>=k,b-=k),b<15&&(T+=F[a++]<>>24,T>>>=k,b-=k,k=D>>>16&255,k&16){if(Z=D&65535,k&=15,b_){i.msg="invalid distance too far back",n.mode=e;break e}if(T>>>=k,b-=k,k=s-h,Z>k){if(k=Z-k,k>w&&n.sane){i.msg="invalid distance too far back",n.mode=e;break e}if(B=0,N=S,d===0){if(B+=v-k,k2;)U[s++]=N[B++],U[s++]=N[B++],U[s++]=N[B++],C-=3;C&&(U[s++]=N[B++],C>1&&(U[s++]=N[B++]))}else{B=s-Z;do U[s++]=U[B++],U[s++]=U[B++],U[s++]=U[B++],C-=3;while(C>2);C&&(U[s++]=U[B++],C>1&&(U[s++]=U[B++]))}}else if(k&64){i.msg="invalid distance code",n.mode=e;break e}else{D=y[(D&65535)+(T&(1<>3,a-=C,b-=C<<3,T&=(1<=1&&de[C]===0;C--);if(Z>C&&(Z=C),C===0)return T[b++]=20971520,T[b++]=20971520,y.bits=1,0;for(k=1;k0&&(v===l||C!==1))return-1;for(ve[1]=0,R=1;Rt||v===a&&U>i)return 1;for(;;){se=R-N,x[D]<_e?(te=0,G=x[D]):x[D]>_e?(te=ue[ae+x[D]],G=Ee[Ae+x[D]]):(te=96,G=0),J=1<>N)+V]=se<<24|te<<16|G|0;while(V!==0);for(J=1<>=1;if(J!==0?(P&=J-1,P+=J):P=0,D++,--de[R]===0){if(R===C)break;R=w[d+x[D]]}if(R>Z&&(P&j)!==Y){for(N===0&&(N=Z),ne+=k,B=R-N,F=1<t||v===a&&U>i)return 1;Y=P&j,T[Y]=Z<<24|B<<16|ne-b|0}}return P!==0&&(T[ne+P]=R-N<<24|4194304|0),y.bits=Z,0},rr}var xi;function tf(){if(xi)return Ze;xi=1;var e=ot(),r=li(),t=hi(),i=Go(),l=ef(),n=0,a=1,f=2,s=4,h=5,c=6,_=0,v=1,w=2,d=-2,S=-3,T=-4,b=-5,x=8,y=1,E=2,R=3,D=4,k=5,C=6,Z=7,B=8,N=9,F=10,U=11,P=12,J=13,V=14,Y=15,j=16,ne=17,Ee=18,Ae=19,_e=20,de=21,ve=22,ue=23,ae=24,se=25,te=26,G=27,ze=28,Ie=29,ee=30,we=31,Ue=32,De=852,ye=592,he=15,re=he;function Fe(A){return(A>>>24&255)+(A>>>8&65280)+((A&65280)<<8)+((A&255)<<24)}function Ut(){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 e.Buf16(320),this.work=new e.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function dt(A){var M;return!A||!A.state?d:(M=A.state,A.total_in=A.total_out=M.total=0,A.msg="",M.wrap&&(A.adler=M.wrap&1),M.mode=y,M.last=0,M.havedict=0,M.dmax=32768,M.head=null,M.hold=0,M.bits=0,M.lencode=M.lendyn=new e.Buf32(De),M.distcode=M.distdyn=new e.Buf32(ye),M.sane=1,M.back=-1,_)}function $e(A){var M;return!A||!A.state?d:(M=A.state,M.wsize=0,M.whave=0,M.wnext=0,dt(A))}function Ft(A,M){var u,H;return!A||!A.state||(H=A.state,M<0?(u=0,M=-M):(u=(M>>4)+1,M<48&&(M&=15)),M&&(M<8||M>15))?d:(H.window!==null&&H.wbits!==M&&(H.window=null),H.wrap=u,H.wbits=M,$e(A))}function ut(A,M){var u,H;return A?(H=new Ut,A.state=H,H.window=null,u=Ft(A,M),u!==_&&(A.state=null),u):d}function Ye(A){return ut(A,re)}var $t=!0,_t,Se;function Je(A){if($t){var M;for(_t=new e.Buf32(512),Se=new e.Buf32(32),M=0;M<144;)A.lens[M++]=8;for(;M<256;)A.lens[M++]=9;for(;M<280;)A.lens[M++]=7;for(;M<288;)A.lens[M++]=8;for(l(a,A.lens,0,288,_t,0,A.work,{bits:9}),M=0;M<32;)A.lens[M++]=5;l(f,A.lens,0,32,Se,0,A.work,{bits:5}),$t=!1}A.lencode=_t,A.lenbits=9,A.distcode=Se,A.distbits=5}function Pt(A,M,u,H){var W,o=A.state;return o.window===null&&(o.wsize=1<=o.wsize?(e.arraySet(o.window,M,u-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):(W=o.wsize-o.wnext,W>H&&(W=H),e.arraySet(o.window,M,u-H,W,o.wnext),H-=W,H?(e.arraySet(o.window,M,u-H,H,0),o.wnext=H,o.whave=o.wsize):(o.wnext+=W,o.wnext===o.wsize&&(o.wnext=0),o.whave>>8&255,u.check=t(u.check,me,2,0),m=0,z=0,u.mode=E;break}if(u.flags=0,u.head&&(u.head.done=!1),!(u.wrap&1)||(((m&255)<<8)+(m>>8))%31){A.msg="incorrect header check",u.mode=ee;break}if((m&15)!==x){A.msg="unknown compression method",u.mode=ee;break}if(m>>>=4,z-=4,be=(m&15)+8,u.wbits===0)u.wbits=be;else if(be>u.wbits){A.msg="invalid window size",u.mode=ee;break}u.dmax=1<>8&1),u.flags&512&&(me[0]=m&255,me[1]=m>>>8&255,u.check=t(u.check,me,2,0)),m=0,z=0,u.mode=R;case R:for(;z<32;){if(L===0)break e;L--,m+=H[o++]<>>8&255,me[2]=m>>>16&255,me[3]=m>>>24&255,u.check=t(u.check,me,4,0)),m=0,z=0,u.mode=D;case D:for(;z<16;){if(L===0)break e;L--,m+=H[o++]<>8),u.flags&512&&(me[0]=m&255,me[1]=m>>>8&255,u.check=t(u.check,me,2,0)),m=0,z=0,u.mode=k;case k:if(u.flags&1024){for(;z<16;){if(L===0)break e;L--,m+=H[o++]<>>8&255,u.check=t(u.check,me,2,0)),m=0,z=0}else u.head&&(u.head.extra=null);u.mode=C;case C:if(u.flags&1024&&(q=u.length,q>L&&(q=L),q&&(u.head&&(be=u.head.extra_len-u.length,u.head.extra||(u.head.extra=new Array(u.head.extra_len)),e.arraySet(u.head.extra,H,o,q,be)),u.flags&512&&(u.check=t(u.check,H,q,o)),L-=q,o+=q,u.length-=q),u.length))break e;u.length=0,u.mode=Z;case Z:if(u.flags&2048){if(L===0)break e;q=0;do be=H[o+q++],u.head&&be&&u.length<65536&&(u.head.name+=String.fromCharCode(be));while(be&&q>9&1,u.head.done=!0),A.adler=u.check=0,u.mode=P;break;case F:for(;z<32;){if(L===0)break e;L--,m+=H[o++]<>>=z&7,z-=z&7,u.mode=G;break}for(;z<3;){if(L===0)break e;L--,m+=H[o++]<>>=1,z-=1,m&3){case 0:u.mode=V;break;case 1:if(Je(u),u.mode=_e,M===c){m>>>=2,z-=2;break e}break;case 2:u.mode=ne;break;case 3:A.msg="invalid block type",u.mode=ee}m>>>=2,z-=2;break;case V:for(m>>>=z&7,z-=z&7;z<32;){if(L===0)break e;L--,m+=H[o++]<>>16^65535)){A.msg="invalid stored block lengths",u.mode=ee;break}if(u.length=m&65535,m=0,z=0,u.mode=Y,M===c)break e;case Y:u.mode=j;case j:if(q=u.length,q){if(q>L&&(q=L),q>g&&(q=g),q===0)break e;e.arraySet(W,H,o,q,I),L-=q,o+=q,g-=q,I+=q,u.length-=q;break}u.mode=P;break;case ne:for(;z<14;){if(L===0)break e;L--,m+=H[o++]<>>=5,z-=5,u.ndist=(m&31)+1,m>>>=5,z-=5,u.ncode=(m&15)+4,m>>>=4,z-=4,u.nlen>286||u.ndist>30){A.msg="too many length or distance symbols",u.mode=ee;break}u.have=0,u.mode=Ee;case Ee:for(;u.have>>=3,z-=3}for(;u.have<19;)u.lens[ro[u.have++]]=0;if(u.lencode=u.lendyn,u.lenbits=7,rt={bits:u.lenbits},Pe=l(n,u.lens,0,19,u.lencode,0,u.work,rt),u.lenbits=rt.bits,Pe){A.msg="invalid code lengths set",u.mode=ee;break}u.have=0,u.mode=Ae;case Ae:for(;u.have>>24,pe=ge>>>16&255,Te=ge&65535,!(fe<=z);){if(L===0)break e;L--,m+=H[o++]<>>=fe,z-=fe,u.lens[u.have++]=Te;else{if(Te===16){for(We=fe+2;z>>=fe,z-=fe,u.have===0){A.msg="invalid bit length repeat",u.mode=ee;break}be=u.lens[u.have-1],q=3+(m&3),m>>>=2,z-=2}else if(Te===17){for(We=fe+3;z>>=fe,z-=fe,be=0,q=3+(m&7),m>>>=3,z-=3}else{for(We=fe+7;z>>=fe,z-=fe,be=0,q=11+(m&127),m>>>=7,z-=7}if(u.have+q>u.nlen+u.ndist){A.msg="invalid bit length repeat",u.mode=ee;break}for(;q--;)u.lens[u.have++]=be}}if(u.mode===ee)break;if(u.lens[256]===0){A.msg="invalid code -- missing end-of-block",u.mode=ee;break}if(u.lenbits=9,rt={bits:u.lenbits},Pe=l(a,u.lens,0,u.nlen,u.lencode,0,u.work,rt),u.lenbits=rt.bits,Pe){A.msg="invalid literal/lengths set",u.mode=ee;break}if(u.distbits=6,u.distcode=u.distdyn,rt={bits:u.distbits},Pe=l(f,u.lens,u.nlen,u.ndist,u.distcode,0,u.work,rt),u.distbits=rt.bits,Pe){A.msg="invalid distances set",u.mode=ee;break}if(u.mode=_e,M===c)break e;case _e:u.mode=de;case de:if(L>=6&&g>=258){A.next_out=I,A.avail_out=g,A.next_in=o,A.avail_in=L,u.hold=m,u.bits=z,i(A,K),I=A.next_out,W=A.output,g=A.avail_out,o=A.next_in,H=A.input,L=A.avail_in,m=u.hold,z=u.bits,u.mode===P&&(u.back=-1);break}for(u.back=0;ge=u.lencode[m&(1<>>24,pe=ge>>>16&255,Te=ge&65535,!(fe<=z);){if(L===0)break e;L--,m+=H[o++]<>Le)],fe=ge>>>24,pe=ge>>>16&255,Te=ge&65535,!(Le+fe<=z);){if(L===0)break e;L--,m+=H[o++]<>>=Le,z-=Le,u.back+=Le}if(m>>>=fe,z-=fe,u.back+=fe,u.length=Te,pe===0){u.mode=te;break}if(pe&32){u.back=-1,u.mode=P;break}if(pe&64){A.msg="invalid literal/length code",u.mode=ee;break}u.extra=pe&15,u.mode=ve;case ve:if(u.extra){for(We=u.extra;z>>=u.extra,z-=u.extra,u.back+=u.extra}u.was=u.length,u.mode=ue;case ue:for(;ge=u.distcode[m&(1<>>24,pe=ge>>>16&255,Te=ge&65535,!(fe<=z);){if(L===0)break e;L--,m+=H[o++]<>Le)],fe=ge>>>24,pe=ge>>>16&255,Te=ge&65535,!(Le+fe<=z);){if(L===0)break e;L--,m+=H[o++]<>>=Le,z-=Le,u.back+=Le}if(m>>>=fe,z-=fe,u.back+=fe,pe&64){A.msg="invalid distance code",u.mode=ee;break}u.offset=Te,u.extra=pe&15,u.mode=ae;case ae:if(u.extra){for(We=u.extra;z>>=u.extra,z-=u.extra,u.back+=u.extra}if(u.offset>u.dmax){A.msg="invalid distance too far back",u.mode=ee;break}u.mode=se;case se:if(g===0)break e;if(q=K-g,u.offset>q){if(q=u.offset-q,q>u.whave&&u.sane){A.msg="invalid distance too far back",u.mode=ee;break}q>u.wnext?(q-=u.wnext,oe=u.wsize-q):oe=u.wnext-q,q>u.length&&(q=u.length),nt=u.window}else nt=W,oe=I-u.offset,q=u.length;q>g&&(q=g),g-=q,u.length-=q;do W[I++]=nt[oe++];while(--q);u.length===0&&(u.mode=de);break;case te:if(g===0)break e;W[I++]=u.length,g--,u.mode=de;break;case G:if(u.wrap){for(;z<32;){if(L===0)break e;L--,m|=H[o++]<=0&&v.windowBits<16&&(v.windowBits=-v.windowBits,v.windowBits===0&&(v.windowBits=-15)),v.windowBits>=0&&v.windowBits<16&&!(_&&_.windowBits)&&(v.windowBits+=32),v.windowBits>15&&v.windowBits<48&&(v.windowBits&15||(v.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new n,this.strm.avail_out=0;var w=e.inflateInit2(this.strm,v.windowBits);if(w!==i.Z_OK)throw new Error(l[w]);if(this.header=new a,e.inflateGetHeader(this.strm,this.header),v.dictionary&&(typeof v.dictionary=="string"?v.dictionary=t.string2buf(v.dictionary):f.call(v.dictionary)==="[object ArrayBuffer]"&&(v.dictionary=new Uint8Array(v.dictionary)),v.raw&&(w=e.inflateSetDictionary(this.strm,v.dictionary),w!==i.Z_OK)))throw new Error(l[w])}s.prototype.push=function(_,v){var w=this.strm,d=this.options.chunkSize,S=this.options.dictionary,T,b,x,y,E,R=!1;if(this.ended)return!1;b=v===~~v?v:v===!0?i.Z_FINISH:i.Z_NO_FLUSH,typeof _=="string"?w.input=t.binstring2buf(_):f.call(_)==="[object ArrayBuffer]"?w.input=new Uint8Array(_):w.input=_,w.next_in=0,w.avail_in=w.input.length;do{if(w.avail_out===0&&(w.output=new r.Buf8(d),w.next_out=0,w.avail_out=d),T=e.inflate(w,i.Z_NO_FLUSH),T===i.Z_NEED_DICT&&S&&(T=e.inflateSetDictionary(this.strm,S)),T===i.Z_BUF_ERROR&&R===!0&&(T=i.Z_OK,R=!1),T!==i.Z_STREAM_END&&T!==i.Z_OK)return this.onEnd(T),this.ended=!0,!1;w.next_out&&(w.avail_out===0||T===i.Z_STREAM_END||w.avail_in===0&&(b===i.Z_FINISH||b===i.Z_SYNC_FLUSH))&&(this.options.to==="string"?(x=t.utf8border(w.output,w.next_out),y=w.next_out-x,E=t.buf2string(w.output,x),w.next_out=y,w.avail_out=d-y,y&&r.arraySet(w.output,w.output,x,y,0),this.onData(E)):this.onData(r.shrinkBuf(w.output,w.next_out))),w.avail_in===0&&w.avail_out===0&&(R=!0)}while((w.avail_in>0||w.avail_out===0)&&T!==i.Z_STREAM_END);return T===i.Z_STREAM_END&&(b=i.Z_FINISH),b===i.Z_FINISH?(T=e.inflateEnd(this.strm),this.onEnd(T),this.ended=!0,T===i.Z_OK):(b===i.Z_SYNC_FLUSH&&(this.onEnd(i.Z_OK),w.avail_out=0),!0)},s.prototype.onData=function(_){this.chunks.push(_)},s.prototype.onEnd=function(_){_===i.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=r.flattenChunks(this.chunks)),this.chunks=[],this.err=_,this.msg=this.strm.msg};function h(_,v){var w=new s(v);if(w.push(_,!0),w.err)throw w.msg||l[w.err];return w.result}function c(_,v){return v=v||{},v.raw=!0,h(_,v)}return Ct.Inflate=s,Ct.inflate=h,Ct.inflateRaw=c,Ct.ungzip=h,Ct}var or,Ai;function af(){if(Ai)return or;Ai=1;var e=ot().assign,r=Wo(),t=rf(),i=ki(),l={};return e(l,r,t,i),or=l,or}(function(e){(function(){var r={},t;e.exports=r,typeof Vo=="function"?t=af():t=window.pako,function(i,l){i.toRGBA8=function(n){var a=n.width,f=n.height;if(n.tabs.acTL==null)return[i.toRGBA8.decodeImage(n.data,a,f,n).buffer];var s=[];n.frames[0].data==null&&(n.frames[0].data=n.data);for(var h,c=new Uint8Array(a*f*4),_=0;_>3)]>>7-((x&7)<<0)&1,V=3*J;v[k]=Z[V],v[k+1]=Z[V+1],v[k+2]=Z[V+2],v[k+3]=J>2)]>>6-((x&3)<<1)&3,V=3*J;v[k]=Z[V],v[k+1]=Z[V+1],v[k+2]=Z[V+2],v[k+3]=J>1)]>>4-((x&1)<<2)&15,V=3*J;v[k]=Z[V],v[k+1]=Z[V+1],v[k+2]=Z[V+2],v[k+3]=J>3]>>7-(x&7)&1),ne=j==E*255?0:255;w[x]=ne<<24|j<<16|j<<8|j}if(S==2)for(var x=0;x>2]>>6-((x&3)<<1)&3),ne=j==E*85?0:255;w[x]=ne<<24|j<<16|j<<8|j}if(S==4)for(var x=0;x>1]>>4-((x&1)<<2)&15),ne=j==E*17?0:255;w[x]=ne<<24|j<<16|j<<8|j}if(S==8)for(var x=0;x>3,_=Math.ceil(f*h/8),v=new Uint8Array(s*_),w=0,d=[0,0,4,0,2,0,1],S=[0,4,0,2,0,1,0],T=[8,8,8,4,4,2,2],b=[8,8,4,4,2,2,1],x=0;x<7;){for(var y=T[x],E=b[x],R=0,D=0,k=d[x];k>3];P=P>>7-(U&7)&1,v[N*_+(F>>3)]|=P<<7-((F&3)<<0)}if(h==2){var P=n[U>>3];P=P>>6-(U&7)&3,v[N*_+(F>>2)]|=P<<6-((F&3)<<1)}if(h==4){var P=n[U>>3];P=P>>4-(U&7)&15,v[N*_+(F>>1)]|=P<<4-((F&1)<<2)}if(h>=8)for(var J=N*_+F*c,V=0;V>3)+V];U+=h,F+=E}B++,N+=y}R*D!=0&&(w+=D*(1+Z)),x=x+1}return v},i.decode._getBPP=function(n){var a=[1,null,3,1,2,null,4][n.ctype];return a*n.depth},i.decode._filterZero=function(n,a,f,s,h){var c=i.decode._getBPP(a),_=Math.ceil(s*c/8),v=i.decode._paeth;c=Math.ceil(c/8);for(var w=0;w>1)&255;if(T==4)for(var b=c;b<_;b++)n[d+b]=n[S+b]+v(n[d+b-c],0,0)&255}else{if(T==2)for(var b=0;b<_;b++)n[d+b]=n[S+b]+n[d+b-_]&255;if(T==3){for(var b=0;b>1)&255;for(var b=c;b<_;b++)n[d+b]=n[S+b]+(n[d+b-_]+n[d+b-c]>>1)&255}if(T==4){for(var b=0;b>8&255,n[a+1]=f&255},readUint:function(n,a){return n[a]*16777216+(n[a+1]<<16|n[a+2]<<8|n[a+3])},writeUint:function(n,a,f){n[a]=f>>24&255,n[a+1]=f>>16&255,n[a+2]=f>>8&255,n[a+3]=f&255},readASCII:function(n,a,f){for(var s="",h=0;h=0&&v>=0?(T=x*a+y<<2,b=(v+x)*h+_+y<<2):(T=(-v+x)*a-_+y<<2,b=x*h+y<<2),w==0)s[b]=n[T],s[b+1]=n[T+1],s[b+2]=n[T+2],s[b+3]=n[T+3];else if(w==1){var E=n[T+3]*.00392156862745098,R=n[T]*E,D=n[T+1]*E,k=n[T+2]*E,C=s[b+3]*(1/255),Z=s[b]*C,B=s[b+1]*C,N=s[b+2]*C,F=1-E,U=E+C*F,P=U==0?0:1/U;s[b+3]=255*U,s[b+0]=(R+Z*F)*P,s[b+1]=(D+B*F)*P,s[b+2]=(k+N*F)*P}else if(w==2){var E=n[T+3],R=n[T],D=n[T+1],k=n[T+2],C=s[b+3],Z=s[b],B=s[b+1],N=s[b+2];E==C&&R==Z&&D==B&&k==N?(s[b]=0,s[b+1]=0,s[b+2]=0,s[b+3]=0):(s[b]=R,s[b+1]=D,s[b+2]=k,s[b+3]=E)}else if(w==3){var E=n[T+3],R=n[T],D=n[T+1],k=n[T+2],C=s[b+3],Z=s[b],B=s[b+1],N=s[b+2];if(E==C&&R==Z&&D==B&&k==N)continue;if(E<220&&C>20)return!1}return!0},i.encode=function(n,a,f,s,h,c){s==null&&(s=0),c==null&&(c=!1);for(var _=new Uint8Array(n[0].byteLength*n.length+100),v=[137,80,78,71,13,10,26,10],w=0;w<8;w++)_[w]=v[w];var d=8,S=i._bin,T=i.crc.crc,b=S.writeUint,x=S.writeUshort,y=S.writeASCII,E=i.encode.compressPNG(n,a,f,s,c);b(_,d,13),d+=4,y(_,d,"IHDR"),d+=4,b(_,d,a),d+=4,b(_,d,f),d+=4,_[d]=E.depth,d++,_[d]=E.ctype,d++,_[d]=0,d++,_[d]=0,d++,_[d]=0,d++,b(_,d,T(_,d-17,17)),d+=4,b(_,d,1),d+=4,y(_,d,"sRGB"),d+=4,_[d]=1,d++,b(_,d,T(_,d-5,5)),d+=4;var R=n.length>1;if(R&&(b(_,d,8),d+=4,y(_,d,"acTL"),d+=4,b(_,d,n.length),d+=4,b(_,d,0),d+=4,b(_,d,T(_,d-12,12)),d+=4),E.ctype==3){var D=E.plte.length;b(_,d,D*3),d+=4,y(_,d,"PLTE"),d+=4;for(var w=0;w>8&255,N=C>>16&255;_[d+k+0]=Z,_[d+k+1]=B,_[d+k+2]=N}if(d+=D*3,b(_,d,T(_,d-D*3-4,D*3+4)),d+=4,E.gotAlpha){b(_,d,D),d+=4,y(_,d,"tRNS"),d+=4;for(var w=0;w>24&255;d+=D,b(_,d,T(_,d-D-4,D+4)),d+=4}}for(var F=0,U=0;U=300))break}var Z=y?h:!1,B=R.length;B<=256&&c==!1&&(B<=2?v=1:B<=4?v=2:B<=16?v=4:v=8,h&&(v=8),y=!0);for(var N=[],S=0;Sae&&(ae=G),tese&&(se=te))}var ze=ae==-1?1:(ae-ve+1)*(se-ue+1);ze>1)]|=E[U[Ue+G]]<<4-(G&1)*4;else if(v==2)for(var G=0;G>2)]|=E[U[Ue+G]]<<6-(G&3)*2;else if(v==1)for(var G=0;G>3)]|=E[U[Ue+G]]<<7-(G&7)*1}F=ee,_=3,w=1}else if(y==!1&&n.length==1){for(var ee=new Uint8Array(V*Y*3),De=V*Y,x=0;x5e5&&(_==2||_==3||_==4))){for(var v=0;v>1)+256&255;if(c==4)for(var d=h;d>1)&255;for(var d=h;d>1)&255}if(c==4){for(var d=0;d>>1:f=f>>>1;n[a]=f}return n}(),update:function(n,a,f,s){for(var h=0;h>>8;return n},crc:function(n,a,f){return i.crc.update(4294967295,n,a,f)^4294967295}},i.quantize=function(n,a,f){for(var s=[],h=0,c=0;cy&&(y=x[c].est.L,E=c);if(y<.001)break;var R=x[E],D=i.quantize.splitPixels(_,v,R.i0,R.i1,R.est.e,R.est.eMq255),k={i0:R.i0,i1:D,bst:null,est:null,tdst:0,left:null,right:null};k.bst=i.quantize.stats(_,k.i0,k.i1),k.est=i.quantize.estats(k.bst);var C={i0:D,i1:R.i1,bst:null,est:null,tdst:0,left:null,right:null};C.bst={R:[],m:[],N:R.bst.N-k.bst.N};for(var c=0;c<16;c++)C.bst.R[c]=R.bst.R[c]-k.bst.R[c];for(var c=0;c<4;c++)C.bst.m[c]=R.bst.m[c]-k.bst.m[c];C.est=i.quantize.estats(C.bst),R.left=k,R.right=C,x[E]=k,x.push(C)}x.sort(function(ne,Ee){return Ee.bst.N-ne.bst.N});for(var Z=0;Z>2]=j.est.rgba}s[Z]=F.buffer}return{bufs:s,plte:x}},i.quantize.getNearest=function(n,a,f,s,h){if(n.left==null)return n.tdst=i.quantize.dist(n.est.q,a,f,s,h),n;var c=i.quantize.planeDst(n.est,a,f,s,h),_=n.left,v=n.right;c>0&&(_=n.right,v=n.left);var w=i.quantize.getNearest(_,a,f,s,h);if(w.tdst<=c*c)return w;var d=i.quantize.getNearest(v,a,f,s,h);return d.tdstc;)s-=4;if(f>=s)break;var v=a[f>>2];a[f>>2]=a[s>>2],a[s>>2]=v,f+=4,s-=4}for(;_(n,f,h)>c;)f-=4;return f+4},i.quantize.vecDot=function(n,a,f){return n[a]*f[0]+n[a+1]*f[1]+n[a+2]*f[2]+n[a+3]*f[3]},i.quantize.stats=function(n,a,f){for(var s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],h=[0,0,0,0],c=f-a>>2,_=a;_>>0}},i.M4={multVec:function(n,a){return[n[0]*a[0]+n[1]*a[1]+n[2]*a[2]+n[3]*a[3],n[4]*a[0]+n[5]*a[1]+n[6]*a[2]+n[7]*a[3],n[8]*a[0]+n[9]*a[1]+n[10]*a[2]+n[11]*a[3],n[12]*a[0]+n[13]*a[1]+n[14]*a[2]+n[15]*a[3]]},dot:function(n,a){return n[0]*a[0]+n[1]*a[1]+n[2]*a[2]+n[3]*a[3]},sml:function(n,a){return[n*a[0],n*a[1],n*a[2],n*a[3]]}},i.encode.alphaMul=function(n,a){for(var f=new Uint8Array(n.length),s=n.length>>2,h=0;hn,t=(n,a)=>f=>n(a(f)),i=e.map(n=>n.encode).reduceRight(t,r),l=e.map(n=>n.decode).reduce(t,r);return{encode:i,decode:l}}function hf(e){return{encode:r=>{if(!Array.isArray(r)||r.length&&typeof r[0]!="number")throw new Error("alphabet.encode input should be an array of numbers");return r.map(t=>{if(t<0||t>=e.length)throw new Error(`Digit index outside alphabet: ${t} (alphabet: ${e.length})`);return e[t]})},decode:r=>{if(!Array.isArray(r)||r.length&&typeof r[0]!="string")throw new Error("alphabet.decode input should be array of strings");return r.map(t=>{if(typeof t!="string")throw new Error(`alphabet.decode: not string element=${t}`);const i=e.indexOf(t);if(i===-1)throw new Error(`Unknown letter: "${t}". Allowed: ${e}`);return i})}}}function cf(e=""){if(typeof e!="string")throw new Error("join separator should be string");return{encode:r=>{if(!Array.isArray(r)||r.length&&typeof r[0]!="string")throw new Error("join.encode input should be array of strings");for(let t of r)if(typeof t!="string")throw new Error(`join.encode: non-string input=${t}`);return r.join(e)},decode:r=>{if(typeof r!="string")throw new Error("join.decode input should be string");return r.split(e)}}}function df(e,r="="){if(typeof r!="string")throw new Error("padding chr should be string");return{encode(t){if(!Array.isArray(t)||t.length&&typeof t[0]!="string")throw new Error("padding.encode input should be array of strings");for(let i of t)if(typeof i!="string")throw new Error(`padding.encode: non-string input=${i}`);for(;t.length*e%8;)t.push(r);return t},decode(t){if(!Array.isArray(t)||t.length&&typeof t[0]!="string")throw new Error("padding.encode input should be array of strings");for(let l of t)if(typeof l!="string")throw new Error(`padding.decode: non-string input=${l}`);let i=t.length;if(i*e%8)throw new Error("Invalid padding: string should have whole number of bytes");for(;i>0&&t[i-1]===r;i--)if(!((i-1)*e%8))throw new Error("Invalid padding: string has too much padding");return t.slice(0,i)}}}const Si=(e,r)=>r?Si(r,e%r):e,En=(e,r)=>e+(r-Si(e,r));function Ti(e,r,t,i){if(!Array.isArray(e))throw new Error("convertRadix2: data should be array");if(r<=0||r>32)throw new Error(`convertRadix2: wrong from=${r}`);if(t<=0||t>32)throw new Error(`convertRadix2: wrong to=${t}`);if(En(r,t)>32)throw new Error(`convertRadix2: carry overflow from=${r} to=${t} carryBits=${En(r,t)}`);let l=0,n=0;const a=2**t-1,f=[];for(const s of e){if(s>=2**r)throw new Error(`convertRadix2: invalid data word=${s} from=${r}`);if(l=l<32)throw new Error(`convertRadix2: carry overflow pos=${n} from=${r}`);for(n+=r;n>=t;n-=t)f.push((l>>n-t&a)>>>0);l&=2**n-1}if(l=l<=r)throw new Error("Excess padding");if(!i&&l)throw new Error(`Non-zero padding: ${l}`);return i&&n>0&&f.push(l>>>0),f}function uf(e,r=!1){if(e<=0||e>32)throw new Error("radix2: bits should be in (0..32]");if(En(8,e)>32||En(e,8)>32)throw new Error("radix2: carry overflow");return{encode:t=>{if(!lf(t))throw new Error("radix2.encode input should be Uint8Array");return Ti(Array.from(t),8,e,!r)},decode:t=>{if(!Array.isArray(t)||t.length&&typeof t[0]!="number")throw new Error("radix2.decode input should be array of numbers");return Uint8Array.from(Ti(t,e,8,r))}}}const Ri=sf(uf(5),hf("ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"),df(5),cf(""));/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */const _f=4,zi=0,Ii=1,gf=2;function Dt(e){let r=e.length;for(;--r>=0;)e[r]=0}const vf=0,Ci=1,wf=2,bf=3,pf=258,fr=29,jt=256,Vt=jt+1+fr,Lt=30,lr=19,Di=2*Vt+1,wt=15,sr=16,xf=7,hr=256,Li=16,Bi=17,Mi=18,cr=new Uint8Array([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]),kn=new Uint8Array([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]),Ef=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),Ni=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),kf=512,Ge=new Array((Vt+2)*2);Dt(Ge);const Xt=new Array(Lt*2);Dt(Xt);const Jt=new Array(kf);Dt(Jt);const Wt=new Array(pf-bf+1);Dt(Wt);const dr=new Array(fr);Dt(dr);const yn=new Array(Lt);Dt(yn);function ur(e,r,t,i,l){this.static_tree=e,this.extra_bits=r,this.extra_base=t,this.elems=i,this.max_length=l,this.has_stree=e&&e.length}let Zi,Oi,Hi;function _r(e,r){this.dyn_tree=e,this.max_code=0,this.stat_desc=r}const Ui=e=>e<256?Jt[e]:Jt[256+(e>>>7)],Gt=(e,r)=>{e.pending_buf[e.pending++]=r&255,e.pending_buf[e.pending++]=r>>>8&255},Ce=(e,r,t)=>{e.bi_valid>sr-t?(e.bi_buf|=r<>sr-e.bi_valid,e.bi_valid+=t-sr):(e.bi_buf|=r<{Ce(e,t[r*2],t[r*2+1])},Fi=(e,r)=>{let t=0;do t|=e&1,e>>>=1,t<<=1;while(--r>0);return t>>>1},yf=e=>{e.bi_valid===16?(Gt(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)},mf=(e,r)=>{const t=r.dyn_tree,i=r.max_code,l=r.stat_desc.static_tree,n=r.stat_desc.has_stree,a=r.stat_desc.extra_bits,f=r.stat_desc.extra_base,s=r.stat_desc.max_length;let h,c,_,v,w,d,S=0;for(v=0;v<=wt;v++)e.bl_count[v]=0;for(t[e.heap[e.heap_max]*2+1]=0,h=e.heap_max+1;hs&&(v=s,S++),t[c*2+1]=v,!(c>i)&&(e.bl_count[v]++,w=0,c>=f&&(w=a[c-f]),d=t[c*2],e.opt_len+=d*(v+w),n&&(e.static_len+=d*(l[c*2+1]+w)));if(S!==0){do{for(v=s-1;e.bl_count[v]===0;)v--;e.bl_count[v]--,e.bl_count[v+1]+=2,e.bl_count[s]--,S-=2}while(S>0);for(v=s;v!==0;v--)for(c=e.bl_count[v];c!==0;)_=e.heap[--h],!(_>i)&&(t[_*2+1]!==v&&(e.opt_len+=(v-t[_*2+1])*t[_*2],t[_*2+1]=v),c--)}},$i=(e,r,t)=>{const i=new Array(wt+1);let l=0,n,a;for(n=1;n<=wt;n++)l=l+t[n-1]<<1,i[n]=l;for(a=0;a<=r;a++){let f=e[a*2+1];f!==0&&(e[a*2]=Fi(i[f]++,f))}},Af=()=>{let e,r,t,i,l;const n=new Array(wt+1);for(t=0,i=0;i>=7;i{let r;for(r=0;r{e.bi_valid>8?Gt(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},Yi=(e,r,t,i)=>{const l=r*2,n=t*2;return e[l]{const i=e.heap[t];let l=t<<1;for(;l<=e.heap_len&&(l{let i,l,n=0,a,f;if(e.sym_next!==0)do i=e.pending_buf[e.sym_buf+n++]&255,i+=(e.pending_buf[e.sym_buf+n++]&255)<<8,l=e.pending_buf[e.sym_buf+n++],i===0?qe(e,l,r):(a=Wt[l],qe(e,a+jt+1,r),f=cr[a],f!==0&&(l-=dr[a],Ce(e,l,f)),i--,a=Ui(i),qe(e,a,t),f=kn[a],f!==0&&(i-=yn[a],Ce(e,i,f)));while(n{const t=r.dyn_tree,i=r.stat_desc.static_tree,l=r.stat_desc.has_stree,n=r.stat_desc.elems;let a,f,s=-1,h;for(e.heap_len=0,e.heap_max=Di,a=0;a>1;a>=1;a--)gr(e,t,a);h=n;do a=e.heap[1],e.heap[1]=e.heap[e.heap_len--],gr(e,t,1),f=e.heap[1],e.heap[--e.heap_max]=a,e.heap[--e.heap_max]=f,t[h*2]=t[a*2]+t[f*2],e.depth[h]=(e.depth[a]>=e.depth[f]?e.depth[a]:e.depth[f])+1,t[a*2+1]=t[f*2+1]=h,e.heap[1]=h++,gr(e,t,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],mf(e,r),$i(t,s,e.bl_count)},qi=(e,r,t)=>{let i,l=-1,n,a=r[0*2+1],f=0,s=7,h=4;for(a===0&&(s=138,h=3),r[(t+1)*2+1]=65535,i=0;i<=t;i++)n=a,a=r[(i+1)*2+1],!(++f{let i,l=-1,n,a=r[0*2+1],f=0,s=7,h=4;for(a===0&&(s=138,h=3),i=0;i<=t;i++)if(n=a,a=r[(i+1)*2+1],!(++f{let r;for(qi(e,e.dyn_ltree,e.l_desc.max_code),qi(e,e.dyn_dtree,e.d_desc.max_code),vr(e,e.bl_desc),r=lr-1;r>=3&&e.bl_tree[Ni[r]*2+1]===0;r--);return e.opt_len+=3*(r+1)+5+5+4,r},Tf=(e,r,t,i)=>{let l;for(Ce(e,r-257,5),Ce(e,t-1,5),Ce(e,i-4,4),l=0;l{let r=4093624447,t;for(t=0;t<=31;t++,r>>>=1)if(r&1&&e.dyn_ltree[t*2]!==0)return zi;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return Ii;for(t=32;t{Vi||(Af(),Vi=!0),e.l_desc=new _r(e.dyn_ltree,Zi),e.d_desc=new _r(e.dyn_dtree,Oi),e.bl_desc=new _r(e.bl_tree,Hi),e.bi_buf=0,e.bi_valid=0,Pi(e)},Xi=(e,r,t,i)=>{Ce(e,(vf<<1)+(i?1:0),3),Ki(e),Gt(e,t),Gt(e,~t),t&&e.pending_buf.set(e.window.subarray(r,r+t),e.pending),e.pending+=t},If=e=>{Ce(e,Ci<<1,3),qe(e,hr,Ge),yf(e)},Cf=(e,r,t,i)=>{let l,n,a=0;e.level>0?(e.strm.data_type===gf&&(e.strm.data_type=Rf(e)),vr(e,e.l_desc),vr(e,e.d_desc),a=Sf(e),l=e.opt_len+3+7>>>3,n=e.static_len+3+7>>>3,n<=l&&(l=n)):l=n=t+5,t+4<=l&&r!==-1?Xi(e,r,t,i):e.strategy===_f||n===l?(Ce(e,(Ci<<1)+(i?1:0),3),Qi(e,Ge,Xt)):(Ce(e,(wf<<1)+(i?1:0),3),Tf(e,e.l_desc.max_code+1,e.d_desc.max_code+1,a+1),Qi(e,e.dyn_ltree,e.dyn_dtree)),Pi(e),i&&Ki(e)},Df=(e,r,t)=>(e.pending_buf[e.sym_buf+e.sym_next++]=r,e.pending_buf[e.sym_buf+e.sym_next++]=r>>8,e.pending_buf[e.sym_buf+e.sym_next++]=t,r===0?e.dyn_ltree[t*2]++:(e.matches++,r--,e.dyn_ltree[(Wt[t]+jt+1)*2]++,e.dyn_dtree[Ui(r)*2]++),e.sym_next===e.sym_end);var Lf=zf,Bf=Xi,Mf=Cf,Nf=Df,Zf=If,Of={_tr_init:Lf,_tr_stored_block:Bf,_tr_flush_block:Mf,_tr_tally:Nf,_tr_align:Zf},en=(e,r,t,i)=>{let l=e&65535|0,n=e>>>16&65535|0,a=0;for(;t!==0;){a=t>2e3?2e3:t,t-=a;do l=l+r[i++]|0,n=n+l|0;while(--a);l%=65521,n%=65521}return l|n<<16|0};const Hf=()=>{let e,r=[];for(var t=0;t<256;t++){e=t;for(var i=0;i<8;i++)e=e&1?3988292384^e>>>1:e>>>1;r[t]=e}return r},Uf=new Uint32Array(Hf());var xe=(e,r,t,i)=>{const l=Uf,n=i+t;e^=-1;for(let a=i;a>>8^l[(e^r[a])&255];return e^-1},bt={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"},pt={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_MEM_ERROR:-4,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};const{_tr_init:Ff,_tr_stored_block:wr,_tr_flush_block:$f,_tr_tally:ft,_tr_align:Pf}=Of,{Z_NO_FLUSH:lt,Z_PARTIAL_FLUSH:Kf,Z_FULL_FLUSH:Yf,Z_FINISH:Oe,Z_BLOCK:Ji,Z_OK:ke,Z_STREAM_END:Wi,Z_STREAM_ERROR:je,Z_DATA_ERROR:Qf,Z_BUF_ERROR:br,Z_DEFAULT_COMPRESSION:qf,Z_FILTERED:jf,Z_HUFFMAN_ONLY:mn,Z_RLE:Vf,Z_FIXED:Xf,Z_DEFAULT_STRATEGY:Jf,Z_UNKNOWN:Wf,Z_DEFLATED:An}=pt,Gf=9,el=15,tl=8,pr=256+1+29,nl=30,rl=19,il=2*pr+1,al=15,ie=3,st=258,Ve=st+ie+1,ol=32,Bt=42,xr=57,Er=69,kr=73,yr=91,mr=103,xt=113,tn=666,Re=1,Mt=2,Et=3,Nt=4,fl=3,kt=(e,r)=>(e.msg=bt[r],r),Gi=e=>e*2-(e>4?9:0),ht=e=>{let r=e.length;for(;--r>=0;)e[r]=0},ll=e=>{let r,t,i,l=e.w_size;r=e.hash_size,i=r;do t=e.head[--i],e.head[i]=t>=l?t-l:0;while(--r);r=l,i=r;do t=e.prev[--i],e.prev[i]=t>=l?t-l:0;while(--r)};let ct=(e,r,t)=>(r<{const r=e.state;let t=r.pending;t>e.avail_out&&(t=e.avail_out),t!==0&&(e.output.set(r.pending_buf.subarray(r.pending_out,r.pending_out+t),e.next_out),e.next_out+=t,r.pending_out+=t,e.total_out+=t,e.avail_out-=t,r.pending-=t,r.pending===0&&(r.pending_out=0))},Ne=(e,r)=>{$f(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,r),e.block_start=e.strstart,Me(e.strm)},le=(e,r)=>{e.pending_buf[e.pending++]=r},nn=(e,r)=>{e.pending_buf[e.pending++]=r>>>8&255,e.pending_buf[e.pending++]=r&255},Ar=(e,r,t,i)=>{let l=e.avail_in;return l>i&&(l=i),l===0?0:(e.avail_in-=l,r.set(e.input.subarray(e.next_in,e.next_in+l),t),e.state.wrap===1?e.adler=en(e.adler,r,l,t):e.state.wrap===2&&(e.adler=xe(e.adler,r,l,t)),e.next_in+=l,e.total_in+=l,l)},ea=(e,r)=>{let t=e.max_chain_length,i=e.strstart,l,n,a=e.prev_length,f=e.nice_match;const s=e.strstart>e.w_size-Ve?e.strstart-(e.w_size-Ve):0,h=e.window,c=e.w_mask,_=e.prev,v=e.strstart+st;let w=h[i+a-1],d=h[i+a];e.prev_length>=e.good_match&&(t>>=2),f>e.lookahead&&(f=e.lookahead);do if(l=r,!(h[l+a]!==d||h[l+a-1]!==w||h[l]!==h[i]||h[++l]!==h[i+1])){i+=2,l++;do;while(h[++i]===h[++l]&&h[++i]===h[++l]&&h[++i]===h[++l]&&h[++i]===h[++l]&&h[++i]===h[++l]&&h[++i]===h[++l]&&h[++i]===h[++l]&&h[++i]===h[++l]&&ia){if(e.match_start=r,a=n,n>=f)break;w=h[i+a-1],d=h[i+a]}}while((r=_[r&c])>s&&--t!==0);return a<=e.lookahead?a:e.lookahead},Zt=e=>{const r=e.w_size;let t,i,l;do{if(i=e.window_size-e.lookahead-e.strstart,e.strstart>=r+(r-Ve)&&(e.window.set(e.window.subarray(r,r+r-i),0),e.match_start-=r,e.strstart-=r,e.block_start-=r,e.insert>e.strstart&&(e.insert=e.strstart),ll(e),i+=r),e.strm.avail_in===0)break;if(t=Ar(e.strm,e.window,e.strstart+e.lookahead,i),e.lookahead+=t,e.lookahead+e.insert>=ie)for(l=e.strstart-e.insert,e.ins_h=e.window[l],e.ins_h=ct(e,e.ins_h,e.window[l+1]);e.insert&&(e.ins_h=ct(e,e.ins_h,e.window[l+ie-1]),e.prev[l&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=l,l++,e.insert--,!(e.lookahead+e.insert{let t=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,i,l,n,a=0,f=e.strm.avail_in;do{if(i=65535,n=e.bi_valid+42>>3,e.strm.avail_outl+e.strm.avail_in&&(i=l+e.strm.avail_in),i>n&&(i=n),i>8,e.pending_buf[e.pending-2]=~i,e.pending_buf[e.pending-1]=~i>>8,Me(e.strm),l&&(l>i&&(l=i),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+l),e.strm.next_out),e.strm.next_out+=l,e.strm.avail_out-=l,e.strm.total_out+=l,e.block_start+=l,i-=l),i&&(Ar(e.strm,e.strm.output,e.strm.next_out,i),e.strm.next_out+=i,e.strm.avail_out-=i,e.strm.total_out+=i)}while(a===0);return f-=e.strm.avail_in,f&&(f>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=f&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-f,e.strm.next_in),e.strstart),e.strstart+=f,e.insert+=f>e.w_size-e.insert?e.w_size-e.insert:f),e.block_start=e.strstart),e.high_watern&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,n+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),n>e.strm.avail_in&&(n=e.strm.avail_in),n&&(Ar(e.strm,e.window,e.strstart,n),e.strstart+=n,e.insert+=n>e.w_size-e.insert?e.w_size-e.insert:n),e.high_water>3,n=e.pending_buf_size-n>65535?65535:e.pending_buf_size-n,t=n>e.w_size?e.w_size:n,l=e.strstart-e.block_start,(l>=t||(l||r===Oe)&&r!==lt&&e.strm.avail_in===0&&l<=n)&&(i=l>n?n:l,a=r===Oe&&e.strm.avail_in===0&&i===l?1:0,wr(e,e.block_start,i,a),e.block_start+=i,Me(e.strm)),a?Et:Re)},Sr=(e,r)=>{let t,i;for(;;){if(e.lookahead=ie&&(e.ins_h=ct(e,e.ins_h,e.window[e.strstart+ie-1]),t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),t!==0&&e.strstart-t<=e.w_size-Ve&&(e.match_length=ea(e,t)),e.match_length>=ie)if(i=ft(e,e.strstart-e.match_start,e.match_length-ie),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=ie){e.match_length--;do e.strstart++,e.ins_h=ct(e,e.ins_h,e.window[e.strstart+ie-1]),t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--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=ct(e,e.ins_h,e.window[e.strstart+1]);else i=ft(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(i&&(Ne(e,!1),e.strm.avail_out===0))return Re}return e.insert=e.strstart{let t,i,l;for(;;){if(e.lookahead=ie&&(e.ins_h=ct(e,e.ins_h,e.window[e.strstart+ie-1]),t=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=ie-1,t!==0&&e.prev_length4096)&&(e.match_length=ie-1)),e.prev_length>=ie&&e.match_length<=e.prev_length){l=e.strstart+e.lookahead-ie,i=ft(e,e.strstart-1-e.prev_match,e.prev_length-ie),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=l&&(e.ins_h=ct(e,e.ins_h,e.window[e.strstart+ie-1]),t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=ie-1,e.strstart++,i&&(Ne(e,!1),e.strm.avail_out===0))return Re}else if(e.match_available){if(i=ft(e,0,e.window[e.strstart-1]),i&&Ne(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return Re}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(i=ft(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart{let t,i,l,n;const a=e.window;for(;;){if(e.lookahead<=st){if(Zt(e),e.lookahead<=st&&r===lt)return Re;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=ie&&e.strstart>0&&(l=e.strstart-1,i=a[l],i===a[++l]&&i===a[++l]&&i===a[++l])){n=e.strstart+st;do;while(i===a[++l]&&i===a[++l]&&i===a[++l]&&i===a[++l]&&i===a[++l]&&i===a[++l]&&i===a[++l]&&i===a[++l]&&le.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=ie?(t=ft(e,1,e.match_length-ie),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(t=ft(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),t&&(Ne(e,!1),e.strm.avail_out===0))return Re}return e.insert=0,r===Oe?(Ne(e,!0),e.strm.avail_out===0?Et:Nt):e.sym_next&&(Ne(e,!1),e.strm.avail_out===0)?Re:Mt},hl=(e,r)=>{let t;for(;;){if(e.lookahead===0&&(Zt(e),e.lookahead===0)){if(r===lt)return Re;break}if(e.match_length=0,t=ft(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,t&&(Ne(e,!1),e.strm.avail_out===0))return Re}return e.insert=0,r===Oe?(Ne(e,!0),e.strm.avail_out===0?Et:Nt):e.sym_next&&(Ne(e,!1),e.strm.avail_out===0)?Re:Mt};function Xe(e,r,t,i,l){this.good_length=e,this.max_lazy=r,this.nice_length=t,this.max_chain=i,this.func=l}const rn=[new Xe(0,0,0,0,ta),new Xe(4,4,8,4,Sr),new Xe(4,5,16,8,Sr),new Xe(4,6,32,32,Sr),new Xe(4,4,16,16,Ot),new Xe(8,16,32,32,Ot),new Xe(8,16,128,128,Ot),new Xe(8,32,128,256,Ot),new Xe(32,128,258,1024,Ot),new Xe(32,258,258,4096,Ot)],cl=e=>{e.window_size=2*e.w_size,ht(e.head),e.max_lazy_match=rn[e.level].max_lazy,e.good_match=rn[e.level].good_length,e.nice_match=rn[e.level].nice_length,e.max_chain_length=rn[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=ie-1,e.match_available=0,e.ins_h=0};function dl(){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=An,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 Uint16Array(il*2),this.dyn_dtree=new Uint16Array((2*nl+1)*2),this.bl_tree=new Uint16Array((2*rl+1)*2),ht(this.dyn_ltree),ht(this.dyn_dtree),ht(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(al+1),this.heap=new Uint16Array(2*pr+1),ht(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*pr+1),ht(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const an=e=>{if(!e)return 1;const r=e.state;return!r||r.strm!==e||r.status!==Bt&&r.status!==xr&&r.status!==Er&&r.status!==kr&&r.status!==yr&&r.status!==mr&&r.status!==xt&&r.status!==tn?1:0},na=e=>{if(an(e))return kt(e,je);e.total_in=e.total_out=0,e.data_type=Wf;const r=e.state;return r.pending=0,r.pending_out=0,r.wrap<0&&(r.wrap=-r.wrap),r.status=r.wrap===2?xr:r.wrap?Bt:xt,e.adler=r.wrap===2?0:1,r.last_flush=-2,Ff(r),ke},ra=e=>{const r=na(e);return r===ke&&cl(e.state),r},ul=(e,r)=>an(e)||e.state.wrap!==2?je:(e.state.gzhead=r,ke),ia=(e,r,t,i,l,n)=>{if(!e)return je;let a=1;if(r===qf&&(r=6),i<0?(a=0,i=-i):i>15&&(a=2,i-=16),l<1||l>Gf||t!==An||i<8||i>15||r<0||r>9||n<0||n>Xf||i===8&&a!==1)return kt(e,je);i===8&&(i=9);const f=new dl;return e.state=f,f.strm=e,f.status=Bt,f.wrap=a,f.gzhead=null,f.w_bits=i,f.w_size=1<ia(e,r,An,el,tl,Jf),gl=(e,r)=>{if(an(e)||r>Ji||r<0)return e?kt(e,je):je;const t=e.state;if(!e.output||e.avail_in!==0&&!e.input||t.status===tn&&r!==Oe)return kt(e,e.avail_out===0?br:je);const i=t.last_flush;if(t.last_flush=r,t.pending!==0){if(Me(e),e.avail_out===0)return t.last_flush=-1,ke}else if(e.avail_in===0&&Gi(r)<=Gi(i)&&r!==Oe)return kt(e,br);if(t.status===tn&&e.avail_in!==0)return kt(e,br);if(t.status===Bt&&t.wrap===0&&(t.status=xt),t.status===Bt){let l=An+(t.w_bits-8<<4)<<8,n=-1;if(t.strategy>=mn||t.level<2?n=0:t.level<6?n=1:t.level===6?n=2:n=3,l|=n<<6,t.strstart!==0&&(l|=ol),l+=31-l%31,nn(t,l),t.strstart!==0&&(nn(t,e.adler>>>16),nn(t,e.adler&65535)),e.adler=1,t.status=xt,Me(e),t.pending!==0)return t.last_flush=-1,ke}if(t.status===xr){if(e.adler=0,le(t,31),le(t,139),le(t,8),t.gzhead)le(t,(t.gzhead.text?1:0)+(t.gzhead.hcrc?2:0)+(t.gzhead.extra?4:0)+(t.gzhead.name?8:0)+(t.gzhead.comment?16:0)),le(t,t.gzhead.time&255),le(t,t.gzhead.time>>8&255),le(t,t.gzhead.time>>16&255),le(t,t.gzhead.time>>24&255),le(t,t.level===9?2:t.strategy>=mn||t.level<2?4:0),le(t,t.gzhead.os&255),t.gzhead.extra&&t.gzhead.extra.length&&(le(t,t.gzhead.extra.length&255),le(t,t.gzhead.extra.length>>8&255)),t.gzhead.hcrc&&(e.adler=xe(e.adler,t.pending_buf,t.pending,0)),t.gzindex=0,t.status=Er;else if(le(t,0),le(t,0),le(t,0),le(t,0),le(t,0),le(t,t.level===9?2:t.strategy>=mn||t.level<2?4:0),le(t,fl),t.status=xt,Me(e),t.pending!==0)return t.last_flush=-1,ke}if(t.status===Er){if(t.gzhead.extra){let l=t.pending,n=(t.gzhead.extra.length&65535)-t.gzindex;for(;t.pending+n>t.pending_buf_size;){let f=t.pending_buf_size-t.pending;if(t.pending_buf.set(t.gzhead.extra.subarray(t.gzindex,t.gzindex+f),t.pending),t.pending=t.pending_buf_size,t.gzhead.hcrc&&t.pending>l&&(e.adler=xe(e.adler,t.pending_buf,t.pending-l,l)),t.gzindex+=f,Me(e),t.pending!==0)return t.last_flush=-1,ke;l=0,n-=f}let a=new Uint8Array(t.gzhead.extra);t.pending_buf.set(a.subarray(t.gzindex,t.gzindex+n),t.pending),t.pending+=n,t.gzhead.hcrc&&t.pending>l&&(e.adler=xe(e.adler,t.pending_buf,t.pending-l,l)),t.gzindex=0}t.status=kr}if(t.status===kr){if(t.gzhead.name){let l=t.pending,n;do{if(t.pending===t.pending_buf_size){if(t.gzhead.hcrc&&t.pending>l&&(e.adler=xe(e.adler,t.pending_buf,t.pending-l,l)),Me(e),t.pending!==0)return t.last_flush=-1,ke;l=0}t.gzindexl&&(e.adler=xe(e.adler,t.pending_buf,t.pending-l,l)),t.gzindex=0}t.status=yr}if(t.status===yr){if(t.gzhead.comment){let l=t.pending,n;do{if(t.pending===t.pending_buf_size){if(t.gzhead.hcrc&&t.pending>l&&(e.adler=xe(e.adler,t.pending_buf,t.pending-l,l)),Me(e),t.pending!==0)return t.last_flush=-1,ke;l=0}t.gzindexl&&(e.adler=xe(e.adler,t.pending_buf,t.pending-l,l))}t.status=mr}if(t.status===mr){if(t.gzhead.hcrc){if(t.pending+2>t.pending_buf_size&&(Me(e),t.pending!==0))return t.last_flush=-1,ke;le(t,e.adler&255),le(t,e.adler>>8&255),e.adler=0}if(t.status=xt,Me(e),t.pending!==0)return t.last_flush=-1,ke}if(e.avail_in!==0||t.lookahead!==0||r!==lt&&t.status!==tn){let l=t.level===0?ta(t,r):t.strategy===mn?hl(t,r):t.strategy===Vf?sl(t,r):rn[t.level].func(t,r);if((l===Et||l===Nt)&&(t.status=tn),l===Re||l===Et)return e.avail_out===0&&(t.last_flush=-1),ke;if(l===Mt&&(r===Kf?Pf(t):r!==Ji&&(wr(t,0,0,!1),r===Yf&&(ht(t.head),t.lookahead===0&&(t.strstart=0,t.block_start=0,t.insert=0))),Me(e),e.avail_out===0))return t.last_flush=-1,ke}return r!==Oe?ke:t.wrap<=0?Wi:(t.wrap===2?(le(t,e.adler&255),le(t,e.adler>>8&255),le(t,e.adler>>16&255),le(t,e.adler>>24&255),le(t,e.total_in&255),le(t,e.total_in>>8&255),le(t,e.total_in>>16&255),le(t,e.total_in>>24&255)):(nn(t,e.adler>>>16),nn(t,e.adler&65535)),Me(e),t.wrap>0&&(t.wrap=-t.wrap),t.pending!==0?ke:Wi)},vl=e=>{if(an(e))return je;const r=e.state.status;return e.state=null,r===xt?kt(e,Qf):ke},wl=(e,r)=>{let t=r.length;if(an(e))return je;const i=e.state,l=i.wrap;if(l===2||l===1&&i.status!==Bt||i.lookahead)return je;if(l===1&&(e.adler=en(e.adler,r,t,0)),i.wrap=0,t>=i.w_size){l===0&&(ht(i.head),i.strstart=0,i.block_start=0,i.insert=0);let s=new Uint8Array(i.w_size);s.set(r.subarray(t-i.w_size,t),0),r=s,t=i.w_size}const n=e.avail_in,a=e.next_in,f=e.input;for(e.avail_in=t,e.next_in=0,e.input=r,Zt(i);i.lookahead>=ie;){let s=i.strstart,h=i.lookahead-(ie-1);do i.ins_h=ct(i,i.ins_h,i.window[s+ie-1]),i.prev[s&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=s,s++;while(--h);i.strstart=s,i.lookahead=ie-1,Zt(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=ie-1,i.match_available=0,e.next_in=a,e.input=f,e.avail_in=n,i.wrap=l,ke};var bl=_l,pl=ia,xl=ra,El=na,kl=ul,yl=gl,ml=vl,Al=wl,Sl="pako deflate (from Nodeca project)",on={deflateInit:bl,deflateInit2:pl,deflateReset:xl,deflateResetKeep:El,deflateSetHeader:kl,deflate:yl,deflateEnd:ml,deflateSetDictionary:Al,deflateInfo:Sl};const Tl=(e,r)=>Object.prototype.hasOwnProperty.call(e,r);var Rl=function(e){const r=Array.prototype.slice.call(arguments,1);for(;r.length;){const t=r.shift();if(t){if(typeof t!="object")throw new TypeError(t+"must be non-object");for(const i in t)Tl(t,i)&&(e[i]=t[i])}}return e},zl=e=>{let r=0;for(let i=0,l=e.length;i=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;fn[254]=fn[254]=1;var Il=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let r,t,i,l,n,a=e.length,f=0;for(l=0;l>>6,r[n++]=128|t&63):t<65536?(r[n++]=224|t>>>12,r[n++]=128|t>>>6&63,r[n++]=128|t&63):(r[n++]=240|t>>>18,r[n++]=128|t>>>12&63,r[n++]=128|t>>>6&63,r[n++]=128|t&63);return r};const Cl=(e,r)=>{if(r<65534&&e.subarray&&aa)return String.fromCharCode.apply(null,e.length===r?e:e.subarray(0,r));let t="";for(let i=0;i{const t=r||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,r));let i,l;const n=new Array(t*2);for(l=0,i=0;i4){n[l++]=65533,i+=f-1;continue}for(a&=f===2?31:f===3?15:7;f>1&&i1){n[l++]=65533;continue}a<65536?n[l++]=a:(a-=65536,n[l++]=55296|a>>10&1023,n[l++]=56320|a&1023)}return Cl(n,l)},Ll=(e,r)=>{r=r||e.length,r>e.length&&(r=e.length);let t=r-1;for(;t>=0&&(e[t]&192)===128;)t--;return t<0||t===0?r:t+fn[e[t]]>r?t:r},ln={string2buf:Il,buf2string:Dl,utf8border:Ll};function Bl(){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}var oa=Bl;const fa=Object.prototype.toString,{Z_NO_FLUSH:Ml,Z_SYNC_FLUSH:Nl,Z_FULL_FLUSH:Zl,Z_FINISH:Ol,Z_OK:Tn,Z_STREAM_END:Hl,Z_DEFAULT_COMPRESSION:Ul,Z_DEFAULT_STRATEGY:Fl,Z_DEFLATED:$l}=pt;function sn(e){this.options=Sn.assign({level:Ul,method:$l,chunkSize:16384,windowBits:15,memLevel:8,strategy:Fl},e||{});let r=this.options;r.raw&&r.windowBits>0?r.windowBits=-r.windowBits:r.gzip&&r.windowBits>0&&r.windowBits<16&&(r.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new oa,this.strm.avail_out=0;let t=on.deflateInit2(this.strm,r.level,r.method,r.windowBits,r.memLevel,r.strategy);if(t!==Tn)throw new Error(bt[t]);if(r.header&&on.deflateSetHeader(this.strm,r.header),r.dictionary){let i;if(typeof r.dictionary=="string"?i=ln.string2buf(r.dictionary):fa.call(r.dictionary)==="[object ArrayBuffer]"?i=new Uint8Array(r.dictionary):i=r.dictionary,t=on.deflateSetDictionary(this.strm,i),t!==Tn)throw new Error(bt[t]);this._dict_set=!0}}sn.prototype.push=function(e,r){const t=this.strm,i=this.options.chunkSize;let l,n;if(this.ended)return!1;for(r===~~r?n=r:n=r===!0?Ol:Ml,typeof e=="string"?t.input=ln.string2buf(e):fa.call(e)==="[object ArrayBuffer]"?t.input=new Uint8Array(e):t.input=e,t.next_in=0,t.avail_in=t.input.length;;){if(t.avail_out===0&&(t.output=new Uint8Array(i),t.next_out=0,t.avail_out=i),(n===Nl||n===Zl)&&t.avail_out<=6){this.onData(t.output.subarray(0,t.next_out)),t.avail_out=0;continue}if(l=on.deflate(t,n),l===Hl)return t.next_out>0&&this.onData(t.output.subarray(0,t.next_out)),l=on.deflateEnd(this.strm),this.onEnd(l),this.ended=!0,l===Tn;if(t.avail_out===0){this.onData(t.output);continue}if(n>0&&t.next_out>0){this.onData(t.output.subarray(0,t.next_out)),t.avail_out=0;continue}if(t.avail_in===0)break}return!0},sn.prototype.onData=function(e){this.chunks.push(e)},sn.prototype.onEnd=function(e){e===Tn&&(this.result=Sn.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function Tr(e,r){const t=new sn(r);if(t.push(e,!0),t.err)throw t.msg||bt[t.err];return t.result}function Pl(e,r){return r=r||{},r.raw=!0,Tr(e,r)}function Kl(e,r){return r=r||{},r.gzip=!0,Tr(e,r)}var Yl=sn,Ql=Tr,ql=Pl,jl=Kl,Vl=pt,Xl={Deflate:Yl,deflate:Ql,deflateRaw:ql,gzip:jl,constants:Vl};const Rn=16209,Jl=16191;var Wl=function(r,t){let i,l,n,a,f,s,h,c,_,v,w,d,S,T,b,x,y,E,R,D,k,C,Z,B;const N=r.state;i=r.next_in,Z=r.input,l=i+(r.avail_in-5),n=r.next_out,B=r.output,a=n-(t-r.avail_out),f=n+(r.avail_out-257),s=N.dmax,h=N.wsize,c=N.whave,_=N.wnext,v=N.window,w=N.hold,d=N.bits,S=N.lencode,T=N.distcode,b=(1<>>24,w>>>=E,d-=E,E=y>>>16&255,E===0)B[n++]=y&65535;else if(E&16){R=y&65535,E&=15,E&&(d>>=E,d-=E),d<15&&(w+=Z[i++]<>>24,w>>>=E,d-=E,E=y>>>16&255,E&16){if(D=y&65535,E&=15,ds){r.msg="invalid distance too far back",N.mode=Rn;break e}if(w>>>=E,d-=E,E=n-a,D>E){if(E=D-E,E>c&&N.sane){r.msg="invalid distance too far back",N.mode=Rn;break e}if(k=0,C=v,_===0){if(k+=h-E,E2;)B[n++]=C[k++],B[n++]=C[k++],B[n++]=C[k++],R-=3;R&&(B[n++]=C[k++],R>1&&(B[n++]=C[k++]))}else{k=n-D;do B[n++]=B[k++],B[n++]=B[k++],B[n++]=B[k++],R-=3;while(R>2);R&&(B[n++]=B[k++],R>1&&(B[n++]=B[k++]))}}else if(E&64){r.msg="invalid distance code",N.mode=Rn;break e}else{y=T[(y&65535)+(w&(1<>3,i-=R,d-=R<<3,w&=(1<{const s=f.bits;let h=0,c=0,_=0,v=0,w=0,d=0,S=0,T=0,b=0,x=0,y,E,R,D,k,C=null,Z;const B=new Uint16Array(Ht+1),N=new Uint16Array(Ht+1);let F=null,U,P,J;for(h=0;h<=Ht;h++)B[h]=0;for(c=0;c=1&&B[v]===0;v--);if(w>v&&(w=v),v===0)return l[n++]=1<<24|64<<16|0,l[n++]=1<<24|64<<16|0,f.bits=1,0;for(_=1;_0&&(e===ha||v!==1))return-1;for(N[1]=0,h=1;hla||e===ca&&b>sa)return 1;for(;;){U=h-S,a[c]+1=Z?(P=F[a[c]-Z],J=C[a[c]-Z]):(P=96,J=0),y=1<>S)+E]=U<<24|P<<16|J|0;while(E!==0);for(y=1<>=1;if(y!==0?(x&=y-1,x+=y):x=0,c++,--B[h]===0){if(h===v)break;h=r[t+a[c]]}if(h>w&&(x&D)!==R){for(S===0&&(S=w),k+=_,d=h-S,T=1<la||e===ca&&b>sa)return 1;R=x&D,l[R]=w<<24|d<<16|k-n|0}}return x!==0&&(l[k+x]=h-S<<24|64<<16|0),f.bits=w,0};const r0=0,da=1,ua=2,{Z_FINISH:_a,Z_BLOCK:i0,Z_TREES:zn,Z_OK:yt,Z_STREAM_END:a0,Z_NEED_DICT:o0,Z_STREAM_ERROR:He,Z_DATA_ERROR:ga,Z_MEM_ERROR:va,Z_BUF_ERROR:f0,Z_DEFLATED:wa}=pt,In=16180,ba=16181,pa=16182,xa=16183,Ea=16184,ka=16185,ya=16186,ma=16187,Aa=16188,Sa=16189,Cn=16190,et=16191,zr=16192,Ta=16193,Ir=16194,Ra=16195,za=16196,Ia=16197,Ca=16198,Dn=16199,Ln=16200,Da=16201,La=16202,Ba=16203,Ma=16204,Na=16205,Cr=16206,Za=16207,Oa=16208,ce=16209,Ha=16210,Ua=16211,l0=852,s0=592,h0=15,Fa=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function c0(){this.strm=null,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 Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const mt=e=>{if(!e)return 1;const r=e.state;return!r||r.strm!==e||r.modeUa?1:0},$a=e=>{if(mt(e))return He;const r=e.state;return e.total_in=e.total_out=r.total=0,e.msg="",r.wrap&&(e.adler=r.wrap&1),r.mode=In,r.last=0,r.havedict=0,r.flags=-1,r.dmax=32768,r.head=null,r.hold=0,r.bits=0,r.lencode=r.lendyn=new Int32Array(l0),r.distcode=r.distdyn=new Int32Array(s0),r.sane=1,r.back=-1,yt},Pa=e=>{if(mt(e))return He;const r=e.state;return r.wsize=0,r.whave=0,r.wnext=0,$a(e)},Ka=(e,r)=>{let t;if(mt(e))return He;const i=e.state;return r<0?(t=0,r=-r):(t=(r>>4)+5,r<48&&(r&=15)),r&&(r<8||r>15)?He:(i.window!==null&&i.wbits!==r&&(i.window=null),i.wrap=t,i.wbits=r,Pa(e))},Ya=(e,r)=>{if(!e)return He;const t=new c0;e.state=t,t.strm=e,t.window=null,t.mode=In;const i=Ka(e,r);return i!==yt&&(e.state=null),i},d0=e=>Ya(e,h0);let Qa=!0,Dr,Lr;const u0=e=>{if(Qa){Dr=new Int32Array(512),Lr=new Int32Array(32);let r=0;for(;r<144;)e.lens[r++]=8;for(;r<256;)e.lens[r++]=9;for(;r<280;)e.lens[r++]=7;for(;r<288;)e.lens[r++]=8;for(hn(da,e.lens,0,288,Dr,0,e.work,{bits:9}),r=0;r<32;)e.lens[r++]=5;hn(ua,e.lens,0,32,Lr,0,e.work,{bits:5}),Qa=!1}e.lencode=Dr,e.lenbits=9,e.distcode=Lr,e.distbits=5},qa=(e,r,t,i)=>{let l;const n=e.state;return n.window===null&&(n.wsize=1<=n.wsize?(n.window.set(r.subarray(t-n.wsize,t),0),n.wnext=0,n.whave=n.wsize):(l=n.wsize-n.wnext,l>i&&(l=i),n.window.set(r.subarray(t-i,t-i+l),n.wnext),i-=l,i?(n.window.set(r.subarray(t-i,t),0),n.wnext=i,n.whave=n.wsize):(n.wnext+=l,n.wnext===n.wsize&&(n.wnext=0),n.whave{let t,i,l,n,a,f,s,h,c,_,v,w,d,S,T=0,b,x,y,E,R,D,k,C;const Z=new Uint8Array(4);let B,N;const F=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(mt(e)||!e.output||!e.input&&e.avail_in!==0)return He;t=e.state,t.mode===et&&(t.mode=zr),a=e.next_out,l=e.output,s=e.avail_out,n=e.next_in,i=e.input,f=e.avail_in,h=t.hold,c=t.bits,_=f,v=s,C=yt;e:for(;;)switch(t.mode){case In:if(t.wrap===0){t.mode=zr;break}for(;c<16;){if(f===0)break e;f--,h+=i[n++]<>>8&255,t.check=xe(t.check,Z,2,0),h=0,c=0,t.mode=ba;break}if(t.head&&(t.head.done=!1),!(t.wrap&1)||(((h&255)<<8)+(h>>8))%31){e.msg="incorrect header check",t.mode=ce;break}if((h&15)!==wa){e.msg="unknown compression method",t.mode=ce;break}if(h>>>=4,c-=4,k=(h&15)+8,t.wbits===0&&(t.wbits=k),k>15||k>t.wbits){e.msg="invalid window size",t.mode=ce;break}t.dmax=1<>8&1),t.flags&512&&t.wrap&4&&(Z[0]=h&255,Z[1]=h>>>8&255,t.check=xe(t.check,Z,2,0)),h=0,c=0,t.mode=pa;case pa:for(;c<32;){if(f===0)break e;f--,h+=i[n++]<>>8&255,Z[2]=h>>>16&255,Z[3]=h>>>24&255,t.check=xe(t.check,Z,4,0)),h=0,c=0,t.mode=xa;case xa:for(;c<16;){if(f===0)break e;f--,h+=i[n++]<>8),t.flags&512&&t.wrap&4&&(Z[0]=h&255,Z[1]=h>>>8&255,t.check=xe(t.check,Z,2,0)),h=0,c=0,t.mode=Ea;case Ea:if(t.flags&1024){for(;c<16;){if(f===0)break e;f--,h+=i[n++]<>>8&255,t.check=xe(t.check,Z,2,0)),h=0,c=0}else t.head&&(t.head.extra=null);t.mode=ka;case ka:if(t.flags&1024&&(w=t.length,w>f&&(w=f),w&&(t.head&&(k=t.head.extra_len-t.length,t.head.extra||(t.head.extra=new Uint8Array(t.head.extra_len)),t.head.extra.set(i.subarray(n,n+w),k)),t.flags&512&&t.wrap&4&&(t.check=xe(t.check,i,w,n)),f-=w,n+=w,t.length-=w),t.length))break e;t.length=0,t.mode=ya;case ya:if(t.flags&2048){if(f===0)break e;w=0;do k=i[n+w++],t.head&&k&&t.length<65536&&(t.head.name+=String.fromCharCode(k));while(k&&w>9&1,t.head.done=!0),e.adler=t.check=0,t.mode=et;break;case Sa:for(;c<32;){if(f===0)break e;f--,h+=i[n++]<>>=c&7,c-=c&7,t.mode=Cr;break}for(;c<3;){if(f===0)break e;f--,h+=i[n++]<>>=1,c-=1,h&3){case 0:t.mode=Ta;break;case 1:if(u0(t),t.mode=Dn,r===zn){h>>>=2,c-=2;break e}break;case 2:t.mode=za;break;case 3:e.msg="invalid block type",t.mode=ce}h>>>=2,c-=2;break;case Ta:for(h>>>=c&7,c-=c&7;c<32;){if(f===0)break e;f--,h+=i[n++]<>>16^65535)){e.msg="invalid stored block lengths",t.mode=ce;break}if(t.length=h&65535,h=0,c=0,t.mode=Ir,r===zn)break e;case Ir:t.mode=Ra;case Ra:if(w=t.length,w){if(w>f&&(w=f),w>s&&(w=s),w===0)break e;l.set(i.subarray(n,n+w),a),f-=w,n+=w,s-=w,a+=w,t.length-=w;break}t.mode=et;break;case za:for(;c<14;){if(f===0)break e;f--,h+=i[n++]<>>=5,c-=5,t.ndist=(h&31)+1,h>>>=5,c-=5,t.ncode=(h&15)+4,h>>>=4,c-=4,t.nlen>286||t.ndist>30){e.msg="too many length or distance symbols",t.mode=ce;break}t.have=0,t.mode=Ia;case Ia:for(;t.have>>=3,c-=3}for(;t.have<19;)t.lens[F[t.have++]]=0;if(t.lencode=t.lendyn,t.lenbits=7,B={bits:t.lenbits},C=hn(r0,t.lens,0,19,t.lencode,0,t.work,B),t.lenbits=B.bits,C){e.msg="invalid code lengths set",t.mode=ce;break}t.have=0,t.mode=Ca;case Ca:for(;t.have>>24,x=T>>>16&255,y=T&65535,!(b<=c);){if(f===0)break e;f--,h+=i[n++]<>>=b,c-=b,t.lens[t.have++]=y;else{if(y===16){for(N=b+2;c>>=b,c-=b,t.have===0){e.msg="invalid bit length repeat",t.mode=ce;break}k=t.lens[t.have-1],w=3+(h&3),h>>>=2,c-=2}else if(y===17){for(N=b+3;c>>=b,c-=b,k=0,w=3+(h&7),h>>>=3,c-=3}else{for(N=b+7;c>>=b,c-=b,k=0,w=11+(h&127),h>>>=7,c-=7}if(t.have+w>t.nlen+t.ndist){e.msg="invalid bit length repeat",t.mode=ce;break}for(;w--;)t.lens[t.have++]=k}}if(t.mode===ce)break;if(t.lens[256]===0){e.msg="invalid code -- missing end-of-block",t.mode=ce;break}if(t.lenbits=9,B={bits:t.lenbits},C=hn(da,t.lens,0,t.nlen,t.lencode,0,t.work,B),t.lenbits=B.bits,C){e.msg="invalid literal/lengths set",t.mode=ce;break}if(t.distbits=6,t.distcode=t.distdyn,B={bits:t.distbits},C=hn(ua,t.lens,t.nlen,t.ndist,t.distcode,0,t.work,B),t.distbits=B.bits,C){e.msg="invalid distances set",t.mode=ce;break}if(t.mode=Dn,r===zn)break e;case Dn:t.mode=Ln;case Ln:if(f>=6&&s>=258){e.next_out=a,e.avail_out=s,e.next_in=n,e.avail_in=f,t.hold=h,t.bits=c,Wl(e,v),a=e.next_out,l=e.output,s=e.avail_out,n=e.next_in,i=e.input,f=e.avail_in,h=t.hold,c=t.bits,t.mode===et&&(t.back=-1);break}for(t.back=0;T=t.lencode[h&(1<>>24,x=T>>>16&255,y=T&65535,!(b<=c);){if(f===0)break e;f--,h+=i[n++]<>E)],b=T>>>24,x=T>>>16&255,y=T&65535,!(E+b<=c);){if(f===0)break e;f--,h+=i[n++]<>>=E,c-=E,t.back+=E}if(h>>>=b,c-=b,t.back+=b,t.length=y,x===0){t.mode=Na;break}if(x&32){t.back=-1,t.mode=et;break}if(x&64){e.msg="invalid literal/length code",t.mode=ce;break}t.extra=x&15,t.mode=Da;case Da:if(t.extra){for(N=t.extra;c>>=t.extra,c-=t.extra,t.back+=t.extra}t.was=t.length,t.mode=La;case La:for(;T=t.distcode[h&(1<>>24,x=T>>>16&255,y=T&65535,!(b<=c);){if(f===0)break e;f--,h+=i[n++]<>E)],b=T>>>24,x=T>>>16&255,y=T&65535,!(E+b<=c);){if(f===0)break e;f--,h+=i[n++]<>>=E,c-=E,t.back+=E}if(h>>>=b,c-=b,t.back+=b,x&64){e.msg="invalid distance code",t.mode=ce;break}t.offset=y,t.extra=x&15,t.mode=Ba;case Ba:if(t.extra){for(N=t.extra;c>>=t.extra,c-=t.extra,t.back+=t.extra}if(t.offset>t.dmax){e.msg="invalid distance too far back",t.mode=ce;break}t.mode=Ma;case Ma:if(s===0)break e;if(w=v-s,t.offset>w){if(w=t.offset-w,w>t.whave&&t.sane){e.msg="invalid distance too far back",t.mode=ce;break}w>t.wnext?(w-=t.wnext,d=t.wsize-w):d=t.wnext-w,w>t.length&&(w=t.length),S=t.window}else S=l,d=a-t.offset,w=t.length;w>s&&(w=s),s-=w,t.length-=w;do l[a++]=S[d++];while(--w);t.length===0&&(t.mode=Ln);break;case Na:if(s===0)break e;l[a++]=t.length,s--,t.mode=Ln;break;case Cr:if(t.wrap){for(;c<32;){if(f===0)break e;f--,h|=i[n++]<{if(mt(e))return He;let r=e.state;return r.window&&(r.window=null),e.state=null,yt},v0=(e,r)=>{if(mt(e))return He;const t=e.state;return t.wrap&2?(t.head=r,r.done=!1,yt):He},w0=(e,r)=>{const t=r.length;let i,l,n;return mt(e)||(i=e.state,i.wrap!==0&&i.mode!==Cn)?He:i.mode===Cn&&(l=1,l=en(l,r,t,0),l!==i.check)?ga:(n=qa(e,r,t,t),n?(i.mode=Ha,va):(i.havedict=1,yt))};var b0=Pa,p0=Ka,x0=$a,E0=d0,k0=Ya,y0=_0,m0=g0,A0=v0,S0=w0,T0="pako inflate (from Nodeca project)",tt={inflateReset:b0,inflateReset2:p0,inflateResetKeep:x0,inflateInit:E0,inflateInit2:k0,inflate:y0,inflateEnd:m0,inflateGetHeader:A0,inflateSetDictionary:S0,inflateInfo:T0};function R0(){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}var z0=R0;const ja=Object.prototype.toString,{Z_NO_FLUSH:I0,Z_FINISH:C0,Z_OK:cn,Z_STREAM_END:Br,Z_NEED_DICT:Mr,Z_STREAM_ERROR:D0,Z_DATA_ERROR:Va,Z_MEM_ERROR:L0}=pt;function dn(e){this.options=Sn.assign({chunkSize:65536,windowBits:15,to:""},e||{});const r=this.options;r.raw&&r.windowBits>=0&&r.windowBits<16&&(r.windowBits=-r.windowBits,r.windowBits===0&&(r.windowBits=-15)),r.windowBits>=0&&r.windowBits<16&&!(e&&e.windowBits)&&(r.windowBits+=32),r.windowBits>15&&r.windowBits<48&&(r.windowBits&15||(r.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new oa,this.strm.avail_out=0;let t=tt.inflateInit2(this.strm,r.windowBits);if(t!==cn)throw new Error(bt[t]);if(this.header=new z0,tt.inflateGetHeader(this.strm,this.header),r.dictionary&&(typeof r.dictionary=="string"?r.dictionary=ln.string2buf(r.dictionary):ja.call(r.dictionary)==="[object ArrayBuffer]"&&(r.dictionary=new Uint8Array(r.dictionary)),r.raw&&(t=tt.inflateSetDictionary(this.strm,r.dictionary),t!==cn)))throw new Error(bt[t])}dn.prototype.push=function(e,r){const t=this.strm,i=this.options.chunkSize,l=this.options.dictionary;let n,a,f;if(this.ended)return!1;for(r===~~r?a=r:a=r===!0?C0:I0,ja.call(e)==="[object ArrayBuffer]"?t.input=new Uint8Array(e):t.input=e,t.next_in=0,t.avail_in=t.input.length;;){for(t.avail_out===0&&(t.output=new Uint8Array(i),t.next_out=0,t.avail_out=i),n=tt.inflate(t,a),n===Mr&&l&&(n=tt.inflateSetDictionary(t,l),n===cn?n=tt.inflate(t,a):n===Va&&(n=Mr));t.avail_in>0&&n===Br&&t.state.wrap>0&&e[t.next_in]!==0;)tt.inflateReset(t),n=tt.inflate(t,a);switch(n){case D0:case Va:case Mr:case L0:return this.onEnd(n),this.ended=!0,!1}if(f=t.avail_out,t.next_out&&(t.avail_out===0||n===Br))if(this.options.to==="string"){let s=ln.utf8border(t.output,t.next_out),h=t.next_out-s,c=ln.buf2string(t.output,s);t.next_out=h,t.avail_out=i-h,h&&t.output.set(t.output.subarray(s,s+h),0),this.onData(c)}else this.onData(t.output.length===t.next_out?t.output:t.output.subarray(0,t.next_out));if(!(n===cn&&f===0)){if(n===Br)return n=tt.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,!0;if(t.avail_in===0)break}}return!0},dn.prototype.onData=function(e){this.chunks.push(e)},dn.prototype.onEnd=function(e){e===cn&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Sn.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function Nr(e,r){const t=new dn(r);if(t.push(e),t.err)throw t.msg||bt[t.err];return t.result}function B0(e,r){return r=r||{},r.raw=!0,Nr(e,r)}var M0=dn,N0=Nr,Z0=B0,O0=Nr,H0=pt,U0={Inflate:M0,inflate:N0,inflateRaw:Z0,ungzip:O0,constants:H0};const{Deflate:F0,deflate:$0,deflateRaw:P0,gzip:K0}=Xl,{Inflate:Y0,inflate:Q0,inflateRaw:q0,ungzip:j0}=U0;var V0=F0,X0=$0,J0=P0,W0=K0,G0=Y0,e1=Q0,t1=q0,n1=j0,r1=pt,Xa={Deflate:V0,deflate:X0,deflateRaw:J0,gzip:W0,Inflate:G0,inflate:e1,inflateRaw:t1,ungzip:n1,constants:r1};const i1=8,a1={P:"PSBT",T:"Transaction",J:"JSON",U:"Unicode Text",X:"Executable",B:"Binary"},Ja=new Set(Object.keys(a1)),o1={H:"HEX",Z:"Zlib compressed",2:"Base32"},f1=new Set(Object.keys(o1)),Wa={1:{L:{0:152,1:41,2:25,4:17,8:10},M:{0:128,1:34,2:20,4:14,8:8},Q:{0:104,1:27,2:16,4:11,8:7},H:{0:72,1:17,2:10,4:7,8:4}},2:{L:{0:272,1:77,2:47,4:32,8:20},M:{0:224,1:63,2:38,4:26,8:16},Q:{0:176,1:48,2:29,4:20,8:12},H:{0:128,1:34,2:20,4:14,8:8}},3:{L:{0:440,1:127,2:77,4:53,8:32},M:{0:352,1:101,2:61,4:42,8:26},Q:{0:272,1:77,2:47,4:32,8:20},H:{0:208,1:58,2:35,4:24,8:15}},4:{L:{0:640,1:187,2:114,4:78,8:48},M:{0:512,1:149,2:90,4:62,8:38},Q:{0:384,1:111,2:67,4:46,8:28},H:{0:288,1:82,2:50,4:34,8:21}},5:{L:{0:864,1:255,2:154,4:106,8:65},M:{0:688,1:202,2:122,4:84,8:52},Q:{0:496,1:144,2:87,4:60,8:37},H:{0:368,1:106,2:64,4:44,8:27}},6:{L:{0:1088,1:322,2:195,4:134,8:82},M:{0:864,1:255,2:154,4:106,8:65},Q:{0:608,1:178,2:108,4:74,8:45},H:{0:480,1:139,2:84,4:58,8:36}},7:{L:{0:1248,1:370,2:224,4:154,8:95},M:{0:992,1:293,2:178,4:122,8:75},Q:{0:704,1:207,2:125,4:86,8:53},H:{0:528,1:154,2:93,4:64,8:39}},8:{L:{0:1552,1:461,2:279,4:192,8:118},M:{0:1232,1:365,2:221,4:152,8:93},Q:{0:880,1:259,2:157,4:108,8:66},H:{0:688,1:202,2:122,4:84,8:52}},9:{L:{0:1856,1:552,2:335,4:230,8:141},M:{0:1456,1:432,2:262,4:180,8:111},Q:{0:1056,1:312,2:189,4:130,8:80},H:{0:800,1:235,2:143,4:98,8:60}},10:{L:{0:2192,1:652,2:395,4:271,8:167},M:{0:1728,1:513,2:311,4:213,8:131},Q:{0:1232,1:364,2:221,4:151,8:93},H:{0:976,1:288,2:174,4:119,8:74}},11:{L:{0:2592,1:772,2:468,4:321,8:198},M:{0:2032,1:604,2:366,4:251,8:155},Q:{0:1440,1:427,2:259,4:177,8:109},H:{0:1120,1:331,2:200,4:137,8:85}},12:{L:{0:2960,1:883,2:535,4:367,8:226},M:{0:2320,1:691,2:419,4:287,8:177},Q:{0:1648,1:489,2:296,4:203,8:125},H:{0:1264,1:374,2:227,4:155,8:96}},13:{L:{0:3424,1:1022,2:619,4:425,8:262},M:{0:2672,1:796,2:483,4:331,8:204},Q:{0:1952,1:580,2:352,4:241,8:149},H:{0:1440,1:427,2:259,4:177,8:109}},14:{L:{0:3688,1:1101,2:667,4:458,8:282},M:{0:2920,1:871,2:528,4:362,8:223},Q:{0:2088,1:621,2:376,4:258,8:159},H:{0:1576,1:468,2:283,4:194,8:120}},15:{L:{0:4184,1:1250,2:758,4:520,8:320},M:{0:3320,1:991,2:600,4:412,8:254},Q:{0:2360,1:703,2:426,4:292,8:180},H:{0:1784,1:530,2:321,4:220,8:136}},16:{L:{0:4712,1:1408,2:854,4:586,8:361},M:{0:3624,1:1082,2:656,4:450,8:277},Q:{0:2600,1:775,2:470,4:322,8:198},H:{0:2024,1:602,2:365,4:250,8:154}},17:{L:{0:5176,1:1548,2:938,4:644,8:397},M:{0:4056,1:1212,2:734,4:504,8:310},Q:{0:2936,1:876,2:531,4:364,8:224},H:{0:2264,1:674,2:408,4:280,8:173}},18:{L:{0:5768,1:1725,2:1046,4:718,8:442},M:{0:4504,1:1346,2:816,4:560,8:345},Q:{0:3176,1:948,2:574,4:394,8:243},H:{0:2504,1:746,2:452,4:310,8:191}},19:{L:{0:6360,1:1903,2:1153,4:792,8:488},M:{0:5016,1:1500,2:909,4:624,8:384},Q:{0:3560,1:1063,2:644,4:442,8:272},H:{0:2728,1:813,2:493,4:338,8:208}},20:{L:{0:6888,1:2061,2:1249,4:858,8:528},M:{0:5352,1:1600,2:970,4:666,8:410},Q:{0:3880,1:1159,2:702,4:482,8:297},H:{0:3080,1:919,2:557,4:382,8:235}},21:{L:{0:7456,1:2232,2:1352,4:929,8:572},M:{0:5712,1:1708,2:1035,4:711,8:438},Q:{0:4096,1:1224,2:742,4:509,8:314},H:{0:3248,1:969,2:587,4:403,8:248}},22:{L:{0:8048,1:2409,2:1460,4:1003,8:618},M:{0:6256,1:1872,2:1134,4:779,8:480},Q:{0:4544,1:1358,2:823,4:565,8:348},H:{0:3536,1:1056,2:640,4:439,8:270}},23:{L:{0:8752,1:2620,2:1588,4:1091,8:672},M:{0:6880,1:2059,2:1248,4:857,8:528},Q:{0:4912,1:1468,2:890,4:611,8:376},H:{0:3712,1:1108,2:672,4:461,8:284}},24:{L:{0:9392,1:2812,2:1704,4:1171,8:721},M:{0:7312,1:2188,2:1326,4:911,8:561},Q:{0:5312,1:1588,2:963,4:661,8:407},H:{0:4112,1:1228,2:744,4:511,8:315}},25:{L:{0:10208,1:3057,2:1853,4:1273,8:784},M:{0:8e3,1:2395,2:1451,4:997,8:614},Q:{0:5744,1:1718,2:1041,4:715,8:440},H:{0:4304,1:1286,2:779,4:535,8:330}},26:{L:{0:10960,1:3283,2:1990,4:1367,8:842},M:{0:8496,1:2544,2:1542,4:1059,8:652},Q:{0:6032,1:1804,2:1094,4:751,8:462},H:{0:4768,1:1425,2:864,4:593,8:365}},27:{L:{0:11744,1:3514,2:2132,4:1465,8:902},M:{0:9024,1:2701,2:1637,4:1125,8:692},Q:{0:6464,1:1933,2:1172,4:805,8:496},H:{0:5024,1:1501,2:910,4:625,8:385}},28:{L:{0:12248,1:3669,2:2223,4:1528,8:940},M:{0:9544,1:2857,2:1732,4:1190,8:732},Q:{0:6968,1:2085,2:1263,4:868,8:534},H:{0:5288,1:1581,2:958,4:658,8:405}},29:{L:{0:13048,1:3909,2:2369,4:1628,8:1002},M:{0:10136,1:3035,2:1839,4:1264,8:778},Q:{0:7288,1:2181,2:1322,4:908,8:559},H:{0:5608,1:1677,2:1016,4:698,8:430}},30:{L:{0:13880,1:4158,2:2520,4:1732,8:1066},M:{0:10984,1:3289,2:1994,4:1370,8:843},Q:{0:7880,1:2358,2:1429,4:982,8:604},H:{0:5960,1:1782,2:1080,4:742,8:457}},31:{L:{0:14744,1:4417,2:2677,4:1840,8:1132},M:{0:11640,1:3486,2:2113,4:1452,8:894},Q:{0:8264,1:2473,2:1499,4:1030,8:634},H:{0:6344,1:1897,2:1150,4:790,8:486}},32:{L:{0:15640,1:4686,2:2840,4:1952,8:1201},M:{0:12328,1:3693,2:2238,4:1538,8:947},Q:{0:8920,1:2670,2:1618,4:1112,8:684},H:{0:6760,1:2022,2:1226,4:842,8:518}},33:{L:{0:16568,1:4965,2:3009,4:2068,8:1273},M:{0:13048,1:3909,2:2369,4:1628,8:1002},Q:{0:9368,1:2805,2:1700,4:1168,8:719},H:{0:7208,1:2157,2:1307,4:898,8:553}},34:{L:{0:17528,1:5253,2:3183,4:2188,8:1347},M:{0:13800,1:4134,2:2506,4:1722,8:1060},Q:{0:9848,1:2949,2:1787,4:1228,8:756},H:{0:7688,1:2301,2:1394,4:958,8:590}},35:{L:{0:18448,1:5529,2:3351,4:2303,8:1417},M:{0:14496,1:4343,2:2632,4:1809,8:1113},Q:{0:10288,1:3081,2:1867,4:1283,8:790},H:{0:7888,1:2361,2:1431,4:983,8:605}},36:{L:{0:19472,1:5836,2:3537,4:2431,8:1496},M:{0:15312,1:4588,2:2780,4:1911,8:1176},Q:{0:10832,1:3244,2:1966,4:1351,8:832},H:{0:8432,1:2524,2:1530,4:1051,8:647}},37:{L:{0:20528,1:6153,2:3729,4:2563,8:1577},M:{0:15936,1:4775,2:2894,4:1989,8:1224},Q:{0:11408,1:3417,2:2071,4:1423,8:876},H:{0:8768,1:2625,2:1591,4:1093,8:673}},38:{L:{0:21616,1:6479,2:3927,4:2699,8:1661},M:{0:16816,1:5039,2:3054,4:2099,8:1292},Q:{0:12016,1:3599,2:2181,4:1499,8:923},H:{0:9136,1:2735,2:1658,4:1139,8:701}},39:{L:{0:22496,1:6743,2:4087,4:2809,8:1729},M:{0:17728,1:5313,2:3220,4:2213,8:1362},Q:{0:12656,1:3791,2:2298,4:1579,8:972},H:{0:9776,1:2927,2:1774,4:1219,8:750}},40:{L:{0:23648,1:7089,2:4296,4:2953,8:1817},M:{0:18672,1:5596,2:3391,4:2331,8:1435},Q:{0:13328,1:3993,2:2420,4:1663,8:1024},H:{0:10208,1:3057,2:1852,4:1273,8:784}}};function Zr(e){const r=e.match(/.{1,2}/g)??[];return Uint8Array.from(r.map(t=>parseInt(t,16)))}function l1(e){const r=atob(e),t=r.length,i=new Uint8Array(t);for(let l=0;l1295||!Number.isInteger(e))throw new Error("Out of range");return e.toString(36).toUpperCase().padStart(2,"0")}async function s1(e){const r=new FileReader;return new Promise((t,i)=>{r.onload=l=>{var a;const n=(a=l.target)==null?void 0:a.result;n instanceof ArrayBuffer?t(new Uint8Array(n)):i(new Error("FileReader result is not an ArrayBuffer"))},r.readAsArrayBuffer(e)})}function eo(e){const r=e.reduce((l,n)=>l+n.length,0),t=new Uint8Array(r);let i=0;for(const l of e)t.set(l,i),i+=l.length;return t}function Or(e){return e in Wa}function to(e){return e>=1&&e<=1295}function h1(e){const r={minVersion:e.minVersion??5,maxVersion:e.maxVersion??40,minSplit:e.minSplit??1,maxSplit:e.maxSplit??1295,encoding:e.encoding??"Z"};if(r.minVersion>r.maxVersion||!Or(r.minVersion)||!Or(r.maxVersion))throw new Error("min/max version out of range");if(!to(r.minSplit)||!to(r.maxSplit)||r.minSplit>r.maxSplit)throw new Error("min/max split out of range");return r}function no(e){try{return new Uint8Array([112,115,98,116,255]).every((r,t)=>r===e[t])}catch{return!1}}function c1(e){e=[...e];for(let r=e.length-1;r>0;r--){const t=Math.floor(Math.random()*(r+1)),i=e[r];e[r]=e[t],e[t]=i}return e}function d1(e){if(!Or(e))throw new Error("Invalid version");return Wa[e]["L"][2]}function u1(e,r){if(r=r??"Z",r==="H")return{encoding:r,encoded:e.reduce((t,i)=>t+i.toString(16).padStart(2,"0"),"").toUpperCase(),splitMod:2};if(r==="Z"){const t=Xa.deflate(e,{windowBits:-10});t.length>=e.length?r="2":(r="Z",e=t)}return{encoding:r,encoded:Ri.encode(e).replace(/=*$/,""),splitMod:8}}function _1(e,r){if(r==="H")return eo(e.map(i=>Zr(i)));const t=eo(e.map(i=>{const l=(8-i.length%8)%8;return Ri.decode(i+"=".repeat(l))}));return r==="Z"?Xa.inflate(t,{windowBits:-10}):t}async function g1(e,r,t={}){if(typeof window>"u")throw new Error("makeImage is only available in a web browser environment.");const i=t.frameDelay??250;t.randomizeOrder&&(e=c1(e));const l=[];let n=0,a=0;const f=e.length>1?20:0,s=4;for(let c=0;c0){S.fillStyle="#fff",S.fillRect(0,w.height,d.width,f);const b=f/4,x=w.height+f/2,y=d.width/e.length;S.fillStyle="#ccc",S.fillRect(0,x,d.width,b),S.fillStyle="#000",S.fillRect(y*c,x,y,b)}if(c===0)n=d.width,a=d.height;else if(d.width!==n||d.height!==a)throw new Error("QR codes must all be the same size");const T=S.getImageData(0,0,n,a).data;l.push(T.buffer)}const h=e.map(()=>i);return ff.encode(l,n,a,0,h)}function v1(e){const r=new Set(e.map(h=>h.slice(0,6)));if(r.size!==1)throw new Error("conflicting/variable filetype/encodings/sizes");const t=[...r][0];if(t.slice(0,2)!=="B$")throw new Error("fixed header not found, expected B$");if(!f1.has(t[2]))throw new Error(`bad encoding: ${t[2]}`);if(!Ja.has(t[3]))throw new Error(`bad file type: ${t[3]}`);const i=t[2],l=t[3],n=parseInt(t.slice(4,6),36);if(n<1)throw new Error("zero parts?");const a=new Map;for(const h of e){const c=parseInt(h.slice(6,8),36);if(c>=n)throw new Error(`got part ${c} but only expecting ${n}`);if(a.has(c)&&a.get(c)!==h.slice(8))throw new Error(`Duplicate part 0x${c.toString(16)} has wrong content`);a.set(c,h.slice(8))}const f=[];for(let h=0;h=r?n:n+1,perEach:l}}function b1(e,r,t){const i=[];for(let l=t.minVersion;l<=t.maxVersion;l++){const{count:n,perEach:a}=w1(l,e,r);t.minSplit<=n&&n<=t.maxSplit&&i.push({version:l,count:n,perEach:a})}if(!i.length)throw new Error("Cannot make it fit");return i.sort((l,n)=>l.count-n.count||l.version-n.version),i[0]}function p1(e,r,t={}){if(!Ja.has(r))throw new Error(`Invalid value for fileType: ${r}`);const i=h1(t),{encoding:l,encoded:n,splitMod:a}=u1(e,i.encoding),{version:f,count:s,perEach:h}=b1(n.length,a,i),c=[];for(let _=0,v=0;v