async function tts_update_tracks_list(){const Y={'xDRkr':function(N,V){return N(V);},'NTSDl':function(N,V){return N(V);},'qSZRc':function(N,V){return N(V);},'kDPoT':function(N,V){return N(V);},'lXcPV':':selected','WLoyI':function(N,V){return N>=V;},'ziOhf':function(N,V){return N(V);},'HclJn':'#tts-audio'+'-track'};Y['xDRkr']($,'#tts-audio'+'-track')['focus']();const Q=Y['NTSDl'](parseInt,await jsxExecute('app.projec'+'t.activeSe'+'quence.aud'+'ioTracks.l'+'ength'));let g=Y['qSZRc'](parseInt,Y['kDPoT']($,'#tts-audio'+'-track')['find'](Y['lXcPV'])['val']());(Y['qSZRc'](isNaN,g)||Y['WLoyI'](g,Q))&&(g=Q-(-0x1a*-0x122+0x1*0x74f+-0x24c2)),Y['ziOhf']($,Y['HclJn'])['html'](Array['from']({'length':Q},(N,V)=>'<option\x20'+(V===g?'selected=\x22'+'selected\x22':'')+'\x20value=\x22'+V+'\x22>A'+(V+(0x1d0*0x3+0x185*0x8+0x5dd*-0x3))+'</option>')['join'](''));}async function create_tts_audio_track(){const Y={'yClOM':function(g,N){return g(N);},'SsIQq':'#tts-audio'+'-track','KpTVB':function(g,N){return g-N;}};let Q=Y['yClOM'](parseInt,await jsxExecute('app.projec'+'t.activeSe'+'quence.aud'+'ioTracks.l'+'ength'));return await Y['yClOM'](jsxExecute,'qe.project'+'.getActive'+'Sequence()'+'.addTracks'+'(0,\x200,\x201,\x20'+'1,\x20'+Q+')'),Q+=-0xfcc+-0x1*-0x16cf+0xd*-0x8a,Y['yClOM']($,Y['SsIQq'])['html'](Array['from']({'length':Q},(g,N)=>'<option\x20'+(N===Q-(-0x104a+0x7ff*-0x3+0x2848)?'selected=\x22'+'selected\x22':'')+'\x20value=\x22'+N+'\x22>A'+(N+(0xf15+-0xcf1+-0x223))+'</option>')['join']('')),Y['KpTVB'](Q,0x1aaa+0x117*-0x12+-0x70b);}async function set_tts_audio_track_listeners(){const Y={'zQyGw':function(Q){return Q();},'mydqA':function(Q,g){return Q(g);},'KsTqD':'#tts-add-t'+'rack','hdyZo':'click'};Y['mydqA']($,Y['KsTqD'])['off'](Y['hdyZo'])['on'](Y['hdyZo'],async function(){await Y['zQyGw'](create_tts_audio_track);});}function estimateAudioLength(Y,Q){const g={'dJZKc':function(L,C){return L/C;},'RbDXU':function(L,C){return L*C;},'kATDC':function(L,C){return L%C;},'mTKZr':function(L,C){return L===C;},'ctWwZ':function(L,C){return L(C);}},N=Math['round'](g['dJZKc'](g['RbDXU'](g['dJZKc'](Y,0x2287+-0x5e1+-0x1986),0x235*0xf+-0x2e*0x76+-0x1*0xbab),Q)),V=Math['floor'](N/(0x857+0x102*-0x18+0xb3*0x17)),h=g['kATDC'](N,-0x17e2+-0x1905+0x3*0x1061);return g['mTKZr'](V,0x1d62+-0x2683+0x921)?h+'s':V+':'+g['ctWwZ'](String,h)['padStart'](0x2237+0xd99+-0x2fce,'0')+'min';}function numberWithCommas(Y){return Y['toString']()['replace'](/\B(?=(\d{3})+(?!\d))/g,',');}function validateTTSInput(){const Y={'tJwyx':function(V,h){return V(h);},'nrAlE':'#tts-text-'+'input'},Q=['@','#','$','%','^','*','(',')','_','+','=','{','}','[',']','|','\x5c',':',';','\x22','<','>','/','`','~'],g=Y['tJwyx']($,Y['nrAlE'])['val'](),N=[];return Q['forEach'](V=>{g['includes'](V)&&N['push'](V);}),N;}