/*!
* Copyright 2021-2023 Ethan Halsall
* https://github.com/eshaz/icecast-metadata-js
*
* This file is part of icecast-metadata-player.
*
* icecast-metadata-player free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* icecast-metadata-player distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see
*/
(self.webpackChunkIcecastMetadataPlayer=self.webpackChunkIcecastMetadataPlayer||[]).push([[731],{469:e=>{e.exports=Worker},178:(e,g,f)=>{"use strict";f.d(g,{D4:()=>b});const r=(e,g=4294967295,f=79764919)=>{const r=new Int32Array(256);let b,t,i,s=g;for(b=0;b<256;b++){for(i=b<<24,t=8;t>0;--t)i=2147483648&i?i<<1^f:i<<1;r[b]=i}for(b=0;b>24^e[b])];return s},b=(e,g=r)=>{const f=e=>new Uint8Array(e.length/2).map(((g,f)=>parseInt(e.substring(2*f,2*(f+1)),16))),b=e=>f(e)[0],t=new Map;[,8364,,8218,402,8222,8230,8224,8225,710,8240,352,8249,338,,381,,,8216,8217,8220,8221,8226,8211,8212,732,8482,353,8250,339,,382,376].forEach(((e,g)=>t.set(e,g)));const i=new Uint8Array(e.length);let s,p,o,h=!1,q=0,n=42,O=e.length>13&&"dynEncode"===e.substring(0,9),c=0;O&&(c=11,p=b(e.substring(9,c)),p<=1&&(c+=2,n=b(e.substring(11,c))),1===p&&(c+=8,o=(e=>new DataView(f(e).buffer).getInt32(0,!0))(e.substring(13,c))));const u=256-n;for(let g=c;g255){const e=t.get(s);e&&(s=e+127)}h&&(h=!1,s-=64),i[q++]=s0?s+u:s-n}else h=!0;const x=i.subarray(0,q);if(O&&1===p){const e=g(x);if(e!==o){const g="Decode failed crc32 validation";throw console.error("`simple-yenc`\n",g+"\n","Expected: "+o+"; Got: "+e+"\n","Visit https://github.com/eshaz/simple-yenc for more information"),Error(g)}}return x}},875:(e,g,f)=>{"use strict";f.r(g),f.d(g,{default:()=>o});var r=f(178),b=f(469);const t=new WeakMap,i=String.raw`dynEncode01658cce3922eÆØÒfeeefsfÅoääääääääääegtfhÊÓÛkÒÊÒÔ×Þgeghgfekmfäe¦åíiplgnÈÔ××ÊÑÆÙÊeepÄÄÍÊÆÕÄÇÆØÊheofivälànâiá©eeeeeeeeg¥g¥
g¦gre
g¦fÐ|
f¦v³i¥
f¦uÐz¦e
fÐ}
e
f¦gÙxÏ~
e¦¥Ðuth¥
f
f
wÑvÏ{
tp
uo¦eqh¥
e
qg¦gÙÏq
qbeee
e
g
vϦgÙÏbeeebIfbpee
e
g¦i×q¦gÙÏr
rbeee
e
q
vϦgÙÏbeeebIfbpee
e
g¦m×q¦gÙÏr
rbeee
e
q
vϦgÙÏbeeebIfbpee
e
g¦q×q¦gÙÏr
rbeee
e
q
vϦgÙÏbeeebIfbpee
pr¦¥Ðp
os¦¥Ðo
g¦uÏq
zrepg¥
f
q±reg¥
f
qÐo¦i®re
e
q
vϦgÙÏ
~®iä
e
q¦gÙÏ
e
{¦gÙÏ®j¦epre
o¦áÖ{¦iÐp¦gÛ¦fϦfÖg¥
pªi¥¦egqfp
z
gЦáÖ¦iЦgÛ¦fϦcdddlÖp¦egh¥
s
rbege
sbegebIfbpge
s
rbegu
sbegubIfbpgu
r¦
Ïr
s¦
Ïs
g¦mÏg
p¦gÐprepp
i¥
e
g
qÏg¦gÙÏp
e
g
vϦgÙÏbege
pbegebIfbpgep
o
{«rf
f
q
{ÏqÐop
q¦äØg
o¦fÖiä
e
q¦gÙÏo
e
q
vϦgÙÏge
oge÷ge
q¦fÏj
qpq
g
}«re
f
qÐp
y
q¦gÙoÏr
egh¥
g
oÏq
g
rÏsge
qge÷ge
q
sgi
qgi÷gi
g¦mÏg
p¦gÐprepp
x
yÏy
t
xÏt
w¦fÏw
|¬repqfp
f¦e±re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/.Ox0.U`;class p{constructor(e={}){this.t=e.correlationSampleSize>0?e.correlationSampleSize:11025,this.i=e.initialGranularity>0?e.initialGranularity:16,this.p=e.correlationThreshold>=0?e.correlationThreshold:.5,this.o=t.get(p),this.o||(this.o=(async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11])))().then((e=>e?WebAssembly.compile((0,r.D4)(i)):WebAssembly.compile((0,r.D4)(s)))),t.set(this.o)),this.SynAudioWorker=function e(g,f,r){this.h=new Map,this.q=(e,g)=>Math.min(e.samplesDecoded,g.samplesDecoded,this.t),this.O=(e,g)=>Math.min(e.samplesDecoded,g.samplesDecoded,this.i),this.u=(e,g,f)=>{const r=g.BYTES_PER_ELEMENT;let b=f/r;for(let t=0;t{let r=this.h.get(g);if(!r){let f,b="text/javascript",t=`'use strict';(${((e,g,f,r)=>{self.onmessage=b=>{new e(Promise.resolve(b.data.module),f,r).l.get(g).apply(null,b.data.params).then((e=>{self.postMessage(e)}))}}).toString()})(${e.toString()}, "${g}", ${this.t}, ${this.i})`;try{f=void 0!==process.versions.node}catch{}r=f?`data:${b};base64,${Buffer.from(t).toString("base64")}`:URL.createObjectURL(new Blob([t],{type:b})),this.h.set(g,r)}const t=new(globalThis.Worker||b)(r,{name:"SynAudio"}),i=new Promise((e=>{t.onmessage=g=>{t.terminate(),e(g.data)}}));return this.o.then((e=>{t.postMessage({module:e,params:f})})),i},this.m=(e,g)=>{const f=Float32Array.BYTES_PER_ELEMENT,r=this.q(e,g),b=this.O(e,g),t=new WebAssembly.Memory({initial:(e.samplesDecoded*e.channelData.length+g.samplesDecoded*g.channelData.length)*f/65536+4});return this.o.then((e=>WebAssembly.instantiate(e,{env:{memory:t}}))).then((({exports:i})=>{const s=new Map(Object.entries(i)),p=s.get("correlate"),o=new Float32Array(t.buffer),h=new DataView(t.buffer),q=s.get("__heap_base").value,n=this.u(e.channelData,o,q),O=this.u(g.channelData,o,n),c=O+f;p(q,e.samplesDecoded,e.channelData.length,n,g.samplesDecoded,g.channelData.length,r,b,O,c);return{correlation:h.getFloat32(O,!0),sampleOffset:h.getInt32(c,!0)}}))},this.N=(e,g,f)=>{const r=[],b=[0],t=this.q(e,g),i=Math.log(e.samplesDecoded*t)/Math.log(this.i+1)*Math.log(t/1e4+1);f=Math.max(Math.round(Math.min(f,i,e.samplesDecoded/t/4)),1);const s=Math.ceil(e.samplesDecoded/f);let p=0;for(let i=0;i{let g=0,f=-1;for(let r=0;rf&&(g=r,f=e[r].correlation);return{correlation:e[g].correlation,sampleOffset:e[g].sampleOffset+b[g]}}))},this.I=(e,g)=>this.j("_sync",[e,g]),this.k=(e,g,f)=>globalThis.Worker?this.j("_syncWorkerConcurrent",[e,g,f]):this.N(e,g,f),this.l=new Map([["_sync",this.m],["_syncWorker",this.I],["_syncWorkerConcurrent",this.N]]),this.o=g,this.t=f,this.i=r},this.v=new this.SynAudioWorker(this.o,this.t,this.i)}async syncWorkerConcurrent(e,g,f){return this.v.k(e,g,f>=1?f:1)}async syncWorker(e,g){return this.v.I(e,g)}async sync(e,g){return this.v.m(e,g)}async syncMultiple(e,g){g=g>=1?g:8;const f=[],r=[];let b=()=>{},t=Promise.resolve(),i=0;for(let g=0;g{e.correlation>this.p&&o.edges.add({parent:o,vertex:n.vertex,samplesDecoded:q.data.samplesDecoded,...e}),i--,b()}))),i>=g&&(t=new Promise((e=>{b=e})),await t)}}await Promise.all(f);const s=(e,g)=>e.parent&&g.parent&&e.parent.samplesDecoded!==g.parent.samplesDecoded?e.parent.samplesDecoded>g.parent.samplesDecoded:e.correlation!==g.correlation?e.correlation>g.correlation:e.sampleOffset!==g.sampleOffset?e.sampleOffset>g.sampleOffset:e.vertex&&g.vertex&&e.vertex.name.localeCompare(g.vertex.name)<0,p=new Map,o=new Set,h=e=>{for(const g of e.edges.values()){if(p.has(e))return p.get(e);p.set(e,g);const f=h(g.vertex),r=g;if(f){let e,g;s(f,r)?(e=f,g=r):(e=r,g=f),g.cycleWith||(g.cycleWith=new Set,o.add(g)),g.cycleWith.add(e),e.cycleWith&&e.cycleWith.delete(g)}p.delete(e)}};for(const{vertex:e}of r)h(e);for(const e of o)e.cycleWith.size&&e.parent.edges.delete(e);const q=new Set;for(const e of r)q.add(e.vertex);for(const e of r)for(const g of e.vertex.edges)q.delete(g.vertex);const n=(e,g,f,r=0)=>{for(const b of f)e.has(b.vertex)&&s(e.get(b.vertex),b)||e.set(b.vertex,{name:b.vertex.name,correlation:b.correlation,sampleOffset:r+b.sampleOffset}),n(e,g,b.vertex.edges,r+b.sampleOffset)},O=[];for(const e of q){const g=new Map;g.set(e,{name:e.name,sampleOffset:0}),n(g,e,e.edges),O.push([...g.values()].sort(((e,g)=>e.sampleOffset-g.sampleOffset||(e.correlation||0)-(g.correlation||0)||g.name.localeCompare(e.name))))}return O}}const o=p}}]);
//# sourceMappingURL=icecast-metadata-player-1.17.3.synaudio.min.js.map