1let isPlaying=!1,narrowbandChosen=!1,widebandChosen=!1,superWidebandChosen=!0,audioNarrowband=null,audioWideband=null,audioSuperWideband=null,playingAlready=!1,currentPlayingTime=0,isLoading=!1,lastTickTime=0;const player=document.getElementById("audioPlayer"),playButton=document.getElementById("playButton"),pauseButton=document.getElementById("pauseButton"),buttonNarrowband=document.getElementById("buttonNarrowband"),buttonWideband=document.getElementById("buttonWideband"),buttonSuperWideband=document.getElementById("buttonSuperWideband"),trackFill=document.getElementById("trackFill"),trackPlayedFill=document.getElementById("trackPlayedFill"),narrowbandCurves=document.getElementById("narrowbandCurves"),superWidebandCurves=document.getElementById("superWidebandCurves"),widebandCurves=document.getElementById("widebandCurves"),trackWave=document.getElementById("trackWave"),narrowbandTrackCurves=document.getElementById("narrowbandCurves"),widebandTrackCurves=document.getElementById("widebandCurves"),superWidebandTrackCurves=document.getElementById("superWidebandCurves"),trackRectangles=document.querySelectorAll("#trackWave #mask0 rect");let updateCurrentAudioStateIterator;function updateCurrentAudioState(item){if(item.ended)isPlaying=!1,player.classList.remove("is-playing"),hidePlayedFill(),isPlaying||(trackPlayedFill.style.width="0px"),currentPlayingTime=0,window.innerWidth<1180&&(trackWave.style.left="0px"),clearTimeout(updateCurrentAudioStateIterator);else{item.currentTime===lastTickTime?(player.classList.add("is-loading"),player.classList.remove("is-playing"),isLoading=!0):(player.classList.add("is-playing"),isLoading=!1,isPlaying=!0,player.classList.remove("is-loading"));const currentFillValue=1066*item.currentTime/item.duration+70;item.currentTime>0&&!item.paused&&(trackPlayedFill.style.width=currentFillValue+"px",currentPlayingTime=item.currentTime,currentFillValue<80||currentFillValue>560&¤tFillValue<615||currentFillValue>1050?(narrowbandTrackCurves.style.transform="scaleY(0.1)",widebandTrackCurves.style.transform="scaleY(0.13)",superWidebandTrackCurves.style.transform="scaleY(0.15)"):currentFillValue>220&¤tFillValue<300?(narrowbandTrackCurves.style.transform="scaleY(0.2)",widebandTrackCurves.style.transform="scaleY(0.22)",superWidebandTrackCurves.style.transform="scaleY(0.25)"):(narrowbandTrackCurves.style.transform="scaleY(1)",widebandTrackCurves.style.transform="scaleY(0.9)",superWidebandTrackCurves.style.transform="scaleY(0.9)")),window.innerWidth<1180&¤tFillValue>window.innerWidth/2&&(trackWave.style.left=-(currentFillValue-window.innerWidth/2.1)+"px"),updateCurrentAudioStateIterator=setTimeout((function(item){updateCurrentAudioState(item)}),500,item)}lastTickTime=item.currentTime}function playTrack(){showPlayedFill(),audioNarrowband||(audioNarrowband=new Audio("https://www.pexip.com/hubfs/Sound%20files/female_speech_builtin_mic_g711.wav")),audioWideband||(audioWideband=new Audio("https://www.pexip.com/hubfs/Sound%20files/female_speech_builtin_mic_g722.wav")),audioSuperWideband||(audioSuperWideband=new Audio("https://www.pexip.com/hubfs/Sound%20files/female_speech_builtin_mic_Opus.wav")),narrowbandChosen&&(audioNarrowband.play(),updateCurrentAudioState(audioNarrowband)),widebandChosen&&(audioWideband.play(),updateCurrentAudioState(audioWideband)),superWidebandChosen&&(audioSuperWideband.play(),updateCurrentAudioState(audioSuperWideband)),isItPlayingAlready()}function isItPlayingAlready(){if(playingAlready=audioWideband.currentTime>0||audioNarrowband.currentTime>0||audioSuperWideband.currentTime>0,playingAlready)return player.classList.add("is-playing"),isLoading=!1,isPlaying=!0,player.classList.remove("is-loading"),!0;setTimeout((function(){isLoading||(player.classList.add("is-loading"),player.classList.remove("is-playing"),isLoading=!0),isItPlayingAlready()}),250)}function pauseTrack(){isPlaying=!1,player.classList.remove("is-playing"),narrowbandChosen&&audioNarrowband&&audioNarrowband.pause(),widebandChosen&&audioWideband&&audioWideband.pause(),superWidebandChosen&&audioSuperWideband&&audioSuperWideband.pause(),clearTimeout(updateCurrentAudioStateIterator)}function chooseTrack(chosenTrack){let wasPlaying=isPlaying;pauseTrack(),narrowbandChosen=!1,widebandChosen=!1,superWidebandChosen=!1,"narrowbandChosen"===chosenTrack?(currentPlayingTime>2&&wasPlaying?audioNarrowband.currentTime=currentPlayingTime-2:audioNarrowband&&(audioNarrowband.currentTime=currentPlayingTime),narrowbandChosen=!0,buttonNarrowband.classList.add("active"),player.classList.add("narrowband-quality"),trackRectangles.forEac
1h((function(item){const initialHeight=item.attributes.height.nodeValue;item.style.height=item.attributes.height.nodeValue,item.style.y=item.attributes.y.nodeValue,initialHeight>120&&(item.style.height=120,item.style.y=30)}))):(buttonNarrowband.classList.remove("active"),player.classList.remove("narrowband-quality")),"widebandChosen"===chosenTrack?(currentPlayingTime>2&&wasPlaying?audioWideband.currentTime=currentPlayingTime-2:audioWideband&&(audioWideband.currentTime=currentPlayingTime),widebandChosen=!0,buttonWideband.classList.add("active"),player.classList.add("wideband-quality"),trackRectangles.forEach((function(item){const initialHeight=item.attributes.height.nodeValue;item.style.height=item.attributes.height.nodeValue,item.style.y=item.attributes.y.nodeValue,initialHeight>160&&(item.style.height=160,item.style.y=15)}))):(buttonWideband.classList.remove("active"),player.classList.remove("wideband-quality")),"superWidebandChosen"===chosenTrack?(trackRectangles.forEach((function(item){item.style.height=item.attributes.height.nodeValue,item.style.y=item.attributes.y.nodeValue})),currentPlayingTime>2&&wasPlaying?audioSuperWideband.currentTime=currentPlayingTime-2:audioSuperWideband&&(audioSuperWideband.currentTime=currentPlayingTime),superWidebandChosen=!0,buttonSuperWideband.classList.add("active"),player.classList.add("super-wideband-quality")):(buttonSuperWideband.classList.remove("active"),player.classList.remove("super-wideband-quality")),wasPlaying&&playTrack()}function hidePlayedFill(){trackPlayedFill.style.opacity=0}function showPlayedFill(){trackPlayedFill.style.opacity=1}playButton.addEventListener("click",playTrack),pauseButton.addEventListener("click",pauseTrack),buttonNarrowband.addEventListener("click",(function(){chooseTrack("narrowbandChosen")})),buttonWideband.addEventListener("click",(function(){return chooseTrack("widebandChosen")})),buttonSuperWideband.addEventListener("click",(function(){return chooseTrack("superWidebandChosen")}));
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.