vari=Date.now();functionn(){return"["+((Date.now()-i)/1e3).toFixed(3)+"]"}functiona(e,t){return!!e&&(e==(t=t||document.body)||a(e.parentNode,t))}functiono(e){if(!e||e.target&&("IMG"==e.target.tagName||"A"==e.target.tagName))return!1;if(!e.dataTransfer||!e.dataTransfer.types)return!0;for(vart=0;t<e.dataTransfer.types.length;t++)if("Files"==e.dataTransfer.types[t])return!0;return!1}functionr(e){if(e=e||window.event){e=e.originalEvent||e;try{e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault(),e.returnValue=!1,e.cancelBubble=!0}catch(e){}}return!1}functionl(e){if(!e)return"";vart=[],s=[];c(e,t,s),s.length&&t.push(s.join(""));vari=t.join("\n");returni=i.replace(/\u00A0/g," ")}functiond(e){if(e.focus(),void0!==window.getSelection&&void0!==document.createRange){vart=document.createRange();t.selectNodeContents(e),t.collapse(!1);vars=window.getSelection();s.removeAllRanges(),s.addRange(t)}elseif(void0!==document.body.createTextRange){vari=document.body.createTextRange();i.moveToElementText(e),i.collapse(!1),i.select()}}functionc(e,t,s,i,n){if(3!=e.nodeType){if(1==e.nodeType){vara=i===e,o="DIV"==e.tagName||"P"==e.tagName;o&&s.length||"BR"==e.tagName?(t.push(s.join("")),s.splice(0,s.length)):"IMG"==e.tagName&&e.alt&&s.push(e.alt),a&&!n&&s.push("");for(varr=e.firstChild;r;)c(r,t,s,i,n),r=r.nextSibling;a&&n&&s.push(""),o&&s.length&&(t.push(s.join("")),s.splice(0,s.length))}}elseif(i===e){varl=e.nodeValue;s.push(l.substr(0,n)+""+l.substr(n))}elses.push(e.nodeValue)}constu={$broadcast:(e,t)=>{lets=newCustomEvent(e,{detail:t});document.dispatchEvent(s)},$on:(e,t)=>{document.addEventListener(e,t)},selectedPeerID:0,myID:0,idle:{isIDLE:!1}};varh=function(e,t,s,i,n,a,o){return[e,",",t," ",s," ",i,",",n," ",a,",",o].join("")};functionp(e,t,s,i,n,a,o,r){varl=[];returnl.push("M"+(e+s/2)+","+t),l.push("H"+(e+s-a)),a>0&&l.push("A"+h(a,a,0,0,1,e+s,t+a)),l.push("V"+(t+i-o)),o>0&&l.push("A"+h(o,o,0,0,1,e+s-o,t+i)),l.push("H"+(e+r)),r>0&&l.push("A"+h(r,r,0,0,1,e+0,t+i-r)),l.push("V"+(t+n)),n>0&&l.push("A"+h(n,n,0,0,1,e+n,t+0)),l.push("Z"),l.join(" ")}constf={messageActionChatCreate:"created the group",messageActionChatEditTitle:"changed group name",messageActionChatEditPhoto:"changed group photo",messageActionChatDeletePhoto:"removed group photo",messageActionChatReturn:"returned to group",messageActionChatJoined:"joined the group",messageActionChatAddUser:"invited {user}",messageActionChatAddUsers:"invited {} users",messageActionChatLeave:"left the group",messageActionChatDeleteUser:"removed user",messageActionChatJoinedByLink:"joined the group",messageActionPinMessage:"pinned message",messageActionContactSignUp:"joined Telegram",messageActionChannelCreate:"Channel created",messageActionChannelEditTitle:"Channel renamed",messageActionChannelEditPhoto:"Channel photo updated",messageActionChannelDeletePhoto:"Channel photo removed",messageActionHistoryClear:"History cleared","messageActionPhoneCall.in_ok":"Incoming Call","messageActionPhoneCall.out_ok":"Outgoing Call","messageActionPhoneCall.in_missed":"Missed Call","messageActionPhoneCall.out_missed":"Cancelled Call"},m=e=>(e=e.replace("_raw",""),f[e]?f[e]:e);functiong(e){return"object"==typeofe&&null!==e}functionv(e){vart=+newDate;returne?Math.floor(t/1e3):t}functionb(e,t){for(varsine)t.hasOwnProperty(s)||"$"==s.charAt(0)||deletee[s];for(varsint)e[s]=t[s]}functiony(e){vart=e.toString().split(".");returnt[0]=t[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),t.join(".")}function_(e,t){if(e.classList.contains(t))returne;for(;e.parentElement;)if((e=e.parentElement).classList.contains(t))returne;returnnull}functionw(e,t){if(e.tagName==t)returne;for(;e.parentElement;)if((e=e.parentElement).tagName===t)returne;returnnull}functionS(e,t){if(null!=e.getAttribute(t))returne;for(;e.parentElement;)if(null!=(e=e.parentElement).getAttribute(t))returne;returnnull}functionL(e){lett=0;for(;null!=(e=e.previousElementSibling);)++t;returnt}functionM(e){if(null===e||"object"!=typeofe)returne;if(einstanceofDate)returnnewDate(e.getTi