@telegram-apps/analytics
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -1,1 +0,1 @@ | ||
var telegramAnalytics=function(){"use strict";const t=r;function n(){const t=["connection-completed","726525KSckQn","mWgEo","CONNECTION_RESTORING_SUCCESS","96qhglOW","WPQkR","tItpP","app-hide","jCmGO","aJfSE","3|1|7|2|13|8|11|9|4|6|0|12|5|10","HIDE","aTSLc","1238865VklXan","YOdMa","TRANSACTION_SIGNING_FAILED","connection-restoring-error","connection-error","5513080AiOzqp","connection-restoring-completed","wnOLI","13587FdWLnB","YAJre","kCHFA","transaction-signed","WALLET_CONNECT_ERROR","TGA-Batch-Requests","transaction-signing-failed","vcHra","429546UCIJGj","OMjSG","CUSTOM_EVENT","PnKPz","connection-started","transaction-sent-for-signature","CONNECTION_RESTORING_STARTED","1901272UDLtjA","VJsGn","WALLET_CONNECT_SUCCESS","2868LzKMNT","split","rtKvs","WALLET_CONNECT_STARTED","PyUHq","TRANSACTION_SENT_FOR_SIGNATURE","custom-event","WALLET_DISCONNECT","INIT","MoGek","MqFXJ","app-init","2037836lZbSbh","disconnection","CONNECTION_RESTORING_ERROR","nDYyN","connection-restoring-started"];return(n=function(){return t})()}!function(t,n){const e=r,s=t();for(;;)try{if(637128===parseInt(e(329))/1+-parseInt(e(336))/2+-parseInt(e(369))/3+parseInt(e(351))/4+parseInt(e(374))/5+-parseInt(e(339))/6*(-parseInt(e(377))/7)+parseInt(e(360))/8*(-parseInt(e(357))/9))break;s.push(s.shift())}catch(o){s.push(s.shift())}}(n);const e=t(382);function r(t,e){const s=n();return(r=function(t,n){return s[t-=327]})(t,e)}var s=(n=>{const e=t,r={YOdMa:e(366),aJfSE:"TRANSACTION_SIGNED",jZWIv:e(380),jCmGO:e(367),tItpP:e(363),esKMg:e(342),vcHra:e(333),nezgt:e(347),nDYyN:e(350),mWgEo:e(353),zQwNf:e(372),wnOLI:e(346),VJsGn:e(352),YAJre:e(334),MoGek:e(331),MqFXJ:e(345),OMjSG:e(381),OGwWq:e(373),aTSLc:e(359),kCHFA:e(375),rtKvs:e(335),fWGkV:e(355),WPQkR:e(371),JCdSZ:e(327),PnKPz:e(338),PyUHq:e(356)},s=r[e(370)][e(340)]("|");let o=0;for(;;){switch(s[o++]){case"0":n[r[e(365)]]=r.jZWIv;continue;case"1":n[r[e(364)]]=r[e(362)];continue;case"2":n[r.esKMg]=r[e(328)];continue;case"3":n[r.nezgt]=r[e(354)];continue;case"4":n[r[e(358)]]=r.zQwNf;continue;case"5":n[r[e(376)]]=r[e(337)];continue;case"6":n[e(344)]=r[e(378)];continue;case"7":n[r[e(348)]]=r[e(349)];continue;case"8":n[r[e(330)]]=r.OGwWq;continue;case"9":n[r[e(368)]]=r[e(379)];continue;case"10":return n;case"11":n[r[e(341)]]=r.fWGkV;continue;case"12":n[r[e(361)]]=r.JCdSZ;continue;case"13":n[r[e(332)]]=r[e(343)];continue}break}})(s||{});function o(t,n){const e=i();return(o=function(t,n){return e[t-=450]})(t,n)}function i(){const t=[" listener","CONNECTION_RESTORING_ERROR","addEventListener","sazVZ","WALLET_CONNECT_STARTED","WALLET_CONNECT_ERROR","10gbzljW","2386NQcshd","tonConnectSdkEvents","1436yWgiFt","115511TetEcx","uiScope","tonConnectUiEvents","sdkScope","3728034xdcsUR","TRANSACTION_SIGNING_FAILED","3880410PujHSI","vGsDq","1165jJrTFT","WALLET_DISCONNECT","detail","TRANSACTION_SIGNED","CONNECTION_RESTORING_SUCCESS","6000pmTRQd","3829662PuCaGb","map"," received","CUSTOM_EVENT","32rwosci","events","ton-connect-","Attach ","1156urYyaX","TRANSACTION_SENT_FOR_SIGNATURE","CONNECTION_RESTORING_STARTED","XbEyr","1440054qpnveY","split","ton-connect-ui-","collectEvent","log"];return(i=function(){return t})()}!function(t,n){const e=o,r=t();for(;;)try{if(791824===-parseInt(e(456))/1*(parseInt(e(481))/2)+-parseInt(e(465))/3+parseInt(e(458))/4*(parseInt(e(467))/5)+-parseInt(e(463))/6+parseInt(e(485))/7*(-parseInt(e(477))/8)+-parseInt(e(473))/9*(parseInt(e(455))/10)+-parseInt(e(459))/11*(-parseInt(e(472))/12))break;r.push(r.shift())}catch(s){r.push(r.shift())}}(i);class a{constructor(t){const n=o,e={WJKeA:"1|4|0|2|3",mucNe:n(479)},r=e.WJKeA[n(486)]("|");let i=0;for(;;){switch(r[i++]){case"0":this[n(460)]=n(487);continue;case"1":this.tonConnectSdkEvents=[s[n(476)],s.WALLET_CONNECT_SUCCESS,s[n(454)],s[n(483)],s[n(471)],s[n(450)],s[n(482)],s[n(470)],s[n(464)],s[n(468)]];continue;case"2":this.sdkScope=e.mucNe;continue;case"3":this.analyticsController=t;continue;case"4":this[n(461)]=[s[n(453)],s[n(454)],s[n(464)]];continue}break}}init(){const t=o,n={sazVZ:function(t,n){return t===n},XbEyr:t(466)};for(let e of this[t(478)])console[t(489)](t(480)+e+t(490)),window[t(451)](e,(r=>{const s=t;if(!n[s(452)](s(466),n[s(484)])){return[...this.tonConnectUiEvents[s(474)]((t=>""+this[s(460)]+t)),...this[s(457)].map((t=>""+this[s(462)]+t))]}{console.log("event "+e+s(475),r[s(469)]);const{type:t,...n}=r[s(469)];this.analyticsController[s(488)](r.detail.type,{...n})}}))}get events(){const t=o;return[...this[t(461)][t(474)]((n=>""+this[t(460)]+n)),...this[t(457)][t(474)]((n=>""+this[t(462)]+n))]}}function c(t,n){const e=u();return(c=function(t,n){return e[t-=444]})(t,n)}function u(){const t=["UNChF","ctBcp","addEventListener","44mJNsph","409512jlvOKo","1639MRYZjh","30132lGReRM","fHbpm","mbeRH","49vzZaKS","2238372YcwmNJ","entries","BIdSa","LkYPl","hidden","HIDE","uERwh","IILOg","analyticsController","documentEvents","22285dfhpMX","204BMioUt","15710zrbdwI","155468anABNt","Dfxpb","collectEvent","316704UIBXyX","visibilityState","DZQtc"];return(u=function(){return t})()}!function(t,n){const e=c,r=t();for(;;)try{if(210868===-parseInt(e(458))/1+-parseInt(e(467))/2*(parseInt(e(470))/3)+parseInt(e(456))/4*(parseInt(e(455))/5)+parseInt(e(468))/6+-parseInt(e(444))/7*(-parseInt(e(461))/8)+parseInt(e(445))/9+parseInt(e(457))/10*(-parseInt(e(469))/11))break;r.push(r.shift())}catch(s){r.push(r.shift())}}(u);class p{constructor(t){const n=c,e={IILOg:function(t,n){return t!==n},uERwh:n(463),UNChF:function(t,n){return t===n}};this.documentEvents={visibilitychange:()=>{const t=n;if(e[t(452)](e[t(451)],t(463)))for(let[n,e]of _0x24c842[t(446)](this.documentEvents))_0x51a5ad[t(466)](n,e);else e[t(464)](document[t(462)],t(449))&&this[t(453)][t(460)](s[t(450)],void 0)}},this[n(453)]=t}init(){const t=c,n={ctBcp:function(t,n){return t===n},fHbpm:"hidden",LkYPl:function(t,n){return t!==n},BIdSa:t(459),mbeRH:"PkLjg"};for(let[e,r]of Object[t(446)](this[t(454)]))n[t(448)](n[t(447)],n[t(472)])?document[t(466)](e,r):n[t(465)](_0x2b0b56[t(462)],n[t(471)])&&this[t(453)][t(460)](_0x1fc699[t(450)],void 0)}}function h(){var t=["catch","1982844XyenGP","recordEvent","appModule","24rXVuUI","collectEvent","30992830SbWuda","579860vFPSCH","3557323tuSavm","74018bcFaPr","26aziOIu","1455969YcrbtY","init","tonConnectObserver","documentObserver","8BhUzkV","3623808pIQNGZ"];return(h=function(){return t})()}var f=l;function l(t,n){var e=h();return(l=function(t,n){return e[t-=434]})(t,n)}!function(t,n){for(var e=l,r=t();;)try{if(617323===parseInt(e(443))/1*(-parseInt(e(442))/2)+parseInt(e(444))/3+parseInt(e(448))/4*(-parseInt(e(440))/5)+-parseInt(e(449))/6+-parseInt(e(441))/7+parseInt(e(437))/8*(-parseInt(e(434))/9)+parseInt(e(439))/10)break;r.push(r.shift())}catch(s){r.push(r.shift())}}(h);class I{constructor(t){var n=l;this[n(436)]=t,this.documentObserver=new p(this),this[n(446)]=new a(this)}init(){var t=l;this[t(447)][t(445)](),this[t(446)].init()}[f(435)](t,n){var e=f;this.appModule[e(435)](t,n)[e(450)]((t=>console.error(t)))}[f(438)](t,n){var e=f;this.appModule[e(438)](t,n)}}function d(){const t=["2952392uxMOdk","495550LLBdes","20sqfzJO","4lDBqfL","9lAcWxc","2818870jlqUIh","764862BFkIsq","9UgFxQS","14246WFeUDy","UioIc","386982LxLJYM","46844heeZhX","TOKEN_IS_NOT_PROVIDED","324scQuRh","WSTCo","USER_DATA_IS_NOT_PROVIDED"];return(d=function(){return t})()}!function(t,n){const e=g,r=t();for(;;)try{if(204801===-parseInt(e(502))/1*(parseInt(e(513))/2)+-parseInt(e(501))/3*(-parseInt(e(505))/4)+-parseInt(e(512))/5*(parseInt(e(504))/6)+-parseInt(e(500))/7+-parseInt(e(510))/8*(parseInt(e(498))/9)+-parseInt(e(499))/10+-parseInt(e(511))/11*(-parseInt(e(507))/12))break;r.push(r.shift())}catch(s){r.push(r.shift())}}(d);const m=t=>{throw new Error(t)};function g(t,n){const e=d();return(g=function(t,n){return e[t-=498]})(t,n)}var S=(t=>{const n=g,e={WSTCo:n(506),UioIc:"Telegram User data is not provided."};return t[e[n(508)]]="Token is not provided.",t[n(509)]=e[n(503)],t})(S||{}),T=y;function y(t,n){var e=E();return(y=function(t,n){return e[t-=114]})(t,n)}function E(){var t=["6626180hikhLE","events","BACKEND_URL","wmxLm","4938822kFBCDV","POST","IaeYD","custom_data","oIZon","50mKIoCx","SPVnt","9flwRbX","appModule","7kshPDe","assign","yTWeB","application/json","GaNzw","2655624RwyPrF","getApiToken","TOKEN_IS_NOT_PROVIDED","recordEvent","5970244gTCNvH","AYhAL","NClHc","stringify","fmbOj","NMUwQ","CrNYT","5352258ixrizy","TXGTT","init","recordEvents","1183788EjUkgh","5WTEmvr","9481720YDsLvv"];return(E=function(){return t})()}!function(t,n){for(var e=y,r=t();;)try{if(944331===parseInt(e(137))/1+-parseInt(e(122))/2+parseInt(e(144))/3+parseInt(e(126))/4*(-parseInt(e(138))/5)+-parseInt(e(133))/6*(parseInt(e(117))/7)+-parseInt(e(139))/8*(parseInt(e(115))/9)+parseInt(e(149))/10*(parseInt(e(140))/11))break;r.push(r.shift())}catch(s){r.push(r.shift())}}(E);class v{constructor(t){var n=y,e={oIZon:n(131),uHdVg:function(t,n){return t(n)}};this[n(142)]="https://tganalytics-test.space/",this[n(116)]=t,!this.appModule[n(123)]()&&("GgTlY"===e[n(148)]?_0x4edcaf?_0x578bc6=_0x48069d[n(118)](_0x4d7336[n(147)],_0x14530a):_0x1e383b=_0x3584b6.custom_data:e.uHdVg(m,S[n(124)]))}[T(135)](){}async[T(136)](t){var n=T,e={CrNYT:function(t,n,e){return t(n,e)},IaeYD:n(141),SPVnt:"POST"};return await e[n(132)](fetch,this[n(142)]+e[n(146)],{method:e[n(114)],headers:{"TGA-Auth-Token":this[n(116)].getApiToken(),"Content-Type":n(120)},body:JSON[n(129)](t)})}async[T(125)](t,n,e){var r=T,s={AYhAL:function(t,n){return t!==n},GaNzw:r(130),yTWeB:function(t,n){return t+n},wmxLm:r(141),NClHc:r(145),TXGTT:r(120)};(null==n?void 0:n.custom_data)&&(s[r(127)](s[r(121)],r(130))?_0x442594=_0x35b2c5[r(147)]:e=e?Object[r(118)](n[r(147)],e):n[r(147)]),await fetch(s[r(119)](this.BACKEND_URL,s[r(143)]),{method:s[r(128)],headers:{"TGA-Auth-Token":this[r(116)][r(123)](),"Content-Type":s[r(134)]},body:JSON.stringify({...n,event_name:t,custom_data:e,...this[r(116)].assembleEventSession()})})}}class N extends Error{constructor(t,n,e){super(n,{cause:e}),this.type=t,Object.setPrototypeOf(this,N.prototype)}}function _(t,n,e){return new N(t,n,e)}const O="ERR_UNEXPECTED_TYPE",b="ERR_PARSE";function C(){return _(O,"Value has unexpected type")}class A{constructor(t,n,e){this.parser=t,this.isOptional=n,this.type=e}parse(t){if(!this.isOptional||void 0!==t)try{return this.parser(t)}catch(n){throw _(b,"Unable to parse value"+(this.type?` as ${this.type}`:""),n)}}optional(){return this.isOptional=!0,this}}function w(t,n){return()=>new A(t,!1,n)}const R=w((t=>{if("boolean"==typeof t)return t;const n=String(t);if("1"===n||"true"===n)return!0;if("0"===n||"false"===n)return!1;throw C()}),"boolean");function U(t,n){const e={};for(const s in t){const o=t[s];if(!o)continue;let i,a;if("function"==typeof o||"parse"in o)i=s,a="function"==typeof o?o:o.parse.bind(o);else{const{type:t}=o;i=o.from||s,a="function"==typeof t?t:t.parse.bind(t)}try{const t=a(n(i));void 0!==t&&(e[s]=t)}catch(r){throw _(b,`Unable to parse field "${s}"`,r)}}return e}function x(t){let n=t;if("string"==typeof n&&(n=JSON.parse(n)),"object"!=typeof n||null===n||Array.isArray(n))throw C();return n}function D(t,n){return new A((n=>{const e=x(n);return U(t,(t=>e[t]))}),!1,n)}const P=w((t=>{if("number"==typeof t)return t;if("string"==typeof t){const n=Number(t);if(!Number.isNaN(n))return n}throw C()}),"number");const L=w((t=>{if("string"==typeof t||"number"==typeof t)return t.toString();throw C()}),"string"),k=w((t=>function(t){const n=t.replace(/\s/g,"").toLowerCase();if(function(t){return/^#[\da-f]{6}$/i.test(t)}(n))return n;if(function(t){return/^#[\da-f]{3}$/i.test(t)}(n)){let t="#";for(let e=0;e<3;e+=1)t+=n[1+e].repeat(2);return t}const e=n.match(/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/)||n.match(/^rgba\((\d{1,3}),(\d{1,3}),(\d{1,3}),\d{1,3}\)$/);if(!e)throw new Error(`Value "${t}" does not satisfy any of known RGB formats.`);return e.slice(1).reduce(((t,n)=>{const e=parseInt(n,10).toString(16);return t+(1===e.length?"0":"")+e}),"#")}(L().parse(t))),"rgb");D({req_id:L(),data:t=>null===t?t:L().optional().parse(t)}),D({req_id:L(),result:t=>t,error:L().optional()}),D({slug:L(),status:L()}),D({status:L()}),D({data:L().optional()}),D({theme_params:t=>{const n=k().optional();return Object.entries(x(t)).reduce(((t,[e,r])=>(t[e]=n.parse(r),t)),{})}}),D({height:P(),width:t=>null==t?window.innerWidth:P().parse(t),is_state_stable:R(),is_expanded:R()}),D({status:L()});const W=w((t=>t instanceof Date?t:new Date(1e3*P().parse(t))),"Date");function G(t,n){return new A((n=>{if("string"!=typeof n&&!(n instanceof URLSearchParams))throw C();const e="string"==typeof n?new URLSearchParams(n):n;return U(t,(t=>{const n=e.get(t);return null===n?void 0:n}))}),!1,n)}const J=D({id:P(),type:L(),title:L(),photoUrl:{type:L().optional(),from:"photo_url"},username:L().optional()},"Chat").optional(),B=D({addedToAttachmentMenu:{type:R().optional(),from:"added_to_attachment_menu"},allowsWriteToPm:{type:R().optional(),from:"allows_write_to_pm"},firstName:{type:L(),from:"first_name"},id:P(),isBot:{type:R().optional(),from:"is_bot"},isPremium:{type:R().optional(),from:"is_premium"},languageCode:{type:L().optional(),from:"language_code"},lastName:{type:L().optional(),from:"last_name"},photoUrl:{type:L().optional(),from:"photo_url"},username:L().optional()},"User").optional();function M(t){return t.replace(/[A-Z]/g,(t=>`_${t.toLowerCase()}`))}const j=w((t=>{const n=k().optional();return Object.entries(x(t)).reduce(((t,[e,r])=>(t[function(t){return t.replace(/_[a-z]/g,(t=>t[1].toUpperCase()))}(e)]=n.parse(r),t)),{})}),"ThemeParams");function z(t){return G({botInline:{type:R().optional(),from:"tgWebAppBotInline"},initData:{type:G({authDate:{type:W(),from:"auth_date"},canSendAfter:{type:P().optional(),from:"can_send_after"},chat:J,chatInstance:{type:L().optional(),from:"chat_instance"},chatType:{type:L().optional(),from:"chat_type"},hash:L(),queryId:{type:L().optional(),from:"query_id"},receiver:B,startParam:{type:L().optional(),from:"start_param"},user:B},"InitData").optional(),from:"tgWebAppData"},initDataRaw:{type:L().optional(),from:"tgWebAppData"},platform:{type:L(),from:"tgWebAppPlatform"},showSettings:{type:R().optional(),from:"tgWebAppShowSettings"},startParam:{type:L().optional(),from:"tgWebAppStartParam"},themeParams:{type:j(),from:"tgWebAppThemeParams"},version:{type:L(),from:"tgWebAppVersion"}}).parse(t)}function V(t){return z(t.replace(/^[^?#]*[?#]/,"").replace(/[?#]/g,"&"))}function Q(){return V(window.location.href)}function K(){const t=performance.getEntriesByType("navigation")[0];if(!t)throw new Error("Unable to get first navigation entry.");return V(t.name)}function X(t){return`tma.js/${t.replace(/[A-Z]/g,(t=>`-${t.toLowerCase()}`))}`}function Y(){return z(function(t){const n=sessionStorage.getItem(X(t));try{return n?JSON.parse(n):void 0}catch{}}("launchParams")||"")}function H(t){const{initDataRaw:n,themeParams:e,platform:r,version:s,showSettings:o,startParam:i,botInline:a}=t,c=new URLSearchParams;return c.set("tgWebAppPlatform",r),c.set("tgWebAppThemeParams",function(t){return JSON.stringify(Object.fromEntries(Object.entries(t).map((([t,n])=>[M(t),n]))))}(e)),c.set("tgWebAppVersion",s),n&&c.set("tgWebAppData",n),i&&c.set("tgWebAppStartParam",i),"boolean"==typeof o&&c.set("tgWebAppShowSettings",o?"1":"0"),"boolean"==typeof a&&c.set("tgWebAppBotInline",a?"1":"0"),c.toString()}function q(t){!function(t,n){sessionStorage.setItem(X(t),JSON.stringify(n))}("launchParams",H(t))}function Z(){for(const t of[Q,K,Y])try{const n=t();return q(n),n}catch{}throw new Error("Unable to retrieve launch parameters from any known source.")}function F(t,n){const e=tt();return(F=function(t,n){return e[t-=467]})(t,n)}function $(t){const n=F,e={ZdlUJ:function(t,n){return t+n},QrjvI:function(t,n){return t-n},wrcAq:function(t,n){return t+n},oGOEs:function(t,n,e){return t(n,e)},kXbDK:function(t,n){return t/n},UzLtd:function(t,n){return t==n},ScTfm:function(t,n){return t|n},yOkWa:function(t,n){return t&n},yRTTy:function(t,n){return t(n)},oSOMH:function(t,n){return t<n}};let r=n(490),s=(new Date).getTime();const o=e[n(479)](t,s);let i=e[n(491)]((function(t){const r=n;let s=0;for(let n=0;n<t[r(484)];n++){const o=t[r(468)](n);s=e[r(477)](e[r(478)](s<<5,s),o),s|=0}return s}),o)[n(475)](16);for(;e[n(470)](i[n(484)],32);)i+=i;i=i[n(492)](0,32);let a=0;return r[n(488)](/[xy]/g,(function(t){const r=n,o=e[r(479)](s,e[r(472)](parseInt,i[a],16))%16|0;return s=Math.floor(e.kXbDK(s,16)),a++,(e[r(481)](t,"x")?o:e[r(467)](e[r(476)](o,3),8))[r(475)](16)}))}function tt(){const t=["49CvyPmw","UzLtd","329529UQyJSf","8wdogsc","length","214317zfTTSl","111382yZcnTg","1019140hgLKrC","replace","11lfQVIZ","xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx","yRTTy","slice","ScTfm","charCodeAt","85044LeRXja","oSOMH","1fnoiNh","oGOEs","764256lUBCZd","4552640rhlmth","toString","yOkWa","ZdlUJ","QrjvI","wrcAq"];return(tt=function(){return t})()}function nt(){const t=["USER_DATA_IS_NOT_PROVIDED","18DzKoTj","4MXYgFL","firstName","username","140810EKWjfw","839526SMxlXU","119712jziPgL","165zfnrZE","getUserIsPremium","874027LpkIot","userData","getSessionId","webAppStartParam","userId","now","2039035EMjwBp","user","assembleEventSession","initData","sessionId","getUserLocale","341208pFdwfw","lastName","platform","userLocale","getWebAppStartParam","getUserId","getUserData","UEgCB","getAppName","photoUrl","WLUpB","95tSQocq","isBot","6422EkAkua","getPlatform","appModule"];return(nt=function(){return t})()}!function(t,n){const e=F,r=t();for(;;)try{if(129251===parseInt(e(471))/1*(parseInt(e(486))/2)+-parseInt(e(482))/3+-parseInt(e(473))/4+-parseInt(e(487))/5+-parseInt(e(469))/6*(-parseInt(e(480))/7)+-parseInt(e(483))/8*(-parseInt(e(485))/9)+-parseInt(e(474))/10*(-parseInt(e(489))/11))break;r.push(r.shift())}catch(s){r.push(r.shift())}}(tt);const et=rt;function rt(t,n){const e=nt();return(rt=function(t,n){return e[t-=396]})(t,n)}!function(t,n){const e=rt,r=t();for(;;)try{if(226142===parseInt(e(399))/1*(parseInt(e(401))/2)+-parseInt(e(410))/3+parseInt(e(406))/4*(-parseInt(e(420))/5)+parseInt(e(405))/6*(parseInt(e(414))/7)+-parseInt(e(411))/8+parseInt(e(426))/9+parseInt(e(409))/10*(parseInt(e(412))/11))break;r.push(r.shift())}catch(s){r.push(r.shift())}}(nt);class st{constructor(t){this[rt(403)]=t}init(){var t;const n=rt,e={WLUpB:function(t){return t()},wDEpd:function(t,n){return t(n)},ccjZG:function(t,n){return t(n)},RVHOr:function(t,n){return t(n)}},r=e[n(398)](Z),s=r[n(423)],o=null==(t=r.initData)?void 0:t[n(421)];!o&&e.wDEpd(m,S[n(404)]),this[n(415)]={id:o.id,is_premium:o.isPremium,first_name:o[n(407)],is_bot:o[n(400)],last_name:o[n(427)],language_code:o.languageCode,photo_url:o[n(397)],username:o[n(408)]},this[n(418)]=o.id,this[n(429)]=o.languageCode,this[n(417)]=s.startParam,this[n(428)]=r[n(428)],this[n(424)]=e.ccjZG($,e.RVHOr(String,this[n(431)]()))}[et(416)](){return this[et(424)]}[et(431)](){return this[et(418)]}[et(430)](){return this[et(417)]}[et(402)](){return this[et(428)]}[et(425)](){return this[et(429)]}getUserData(){return this[et(415)]}[et(413)](){const t=et,n=this[t(432)]();return{UEgCB:function(t,n){return t(n)}}[t(433)](Boolean,null==n?void 0:n.is_premium)}[et(422)](){const t=et;return{session_id:this[t(416)](),user_id:this[t(431)](),app_name:this.appModule[t(396)](),is_premium:this.getUserIsPremium(),platform:this[t(402)](),locale:this[t(425)](),start_param:this[t(430)](),client_timestamp:(n=String,e=Date[t(419)](),n(e))};var n,e}}const ot=it;function it(t,n){const e=at();return(it=function(t,n){return e[t-=157]})(t,n)}function at(){const t=["1553215OuCvMf","storage","163619HRQjuB","stringify","key","30037wveulG","4UXhbbj","cGHUL","uUSIh","push","findIndex","AMKAW","Anwwc","localStorage","313842QtQRVS","getItem","1086DDVOOU","XWmmK","9ehvvvV","setItem","sessionStorage","parse","getBatch","TOGNP","kQzCw","145020glzJBZ","22732180eCQQFJ","XIgRh","3593128xMTZbB"];return(at=function(){return t})()}!function(t,n){const e=it,r=t();for(;;)try{if(396020===-parseInt(e(172))/1+-parseInt(e(166))/2+-parseInt(e(184))/3*(parseInt(e(176))/4)+-parseInt(e(170))/5+-parseInt(e(157))/6*(parseInt(e(175))/7)+-parseInt(e(169))/8+-parseInt(e(159))/9*(-parseInt(e(167))/10))break;r.push(r.shift())}catch(s){r.push(r.shift())}}(at);class ct{constructor(t){const n=it,e={AMKAW:function(t,n){return t!==n},TOGNP:n(177),XIgRh:n(182)};this[n(161)]=window.sessionStorage,this[n(183)]=window[n(183)],navigator[n(171)].persist(),this[n(174)]=t;const r=this.localStorage[n(185)](this[n(174)]);null===r?this[n(160)]([]):e[n(181)](e[n(164)],e[n(168)])?this[n(160)](JSON[n(162)](r)):this[n(160)](_0x4945e4[n(162)](this[n(183)][n(185)](this[n(174)])))}getBatch(){const t=it,n={uUSIh:function(t,n){return t===n},CSeOr:function(t,n){return t!==n},METXv:t(158)};return null===this[t(161)][t(185)](this[t(174)])&&n[t(178)](this[t(183)][t(185)](this[t(174)]),null)?this.setItem([]):n.CSeOr(t(165),n.METXv)?this[t(160)](JSON[t(162)](this.localStorage.getItem(this.key))):this.setItem([]),this[t(160)]([...JSON.parse(this[t(161)][t(185)](this[t(174)])),...JSON[t(162)](this[t(183)][t(185)](this[t(174)]))].filter(((n,e,r)=>r[t(180)]((e=>JSON[t(173)](e)===JSON[t(173)](n)))===e))),JSON[t(162)](this[t(161)][t(185)](this[t(174)]))}addToStorage(t,n){const e=it,r=this[e(163)]();r[e(179)]({event_name:t,...n}),this[e(160)](r)}[ot(160)](t){const n=ot;this.localStorage[n(160)](this[n(174)],JSON[n(173)](t)),this[n(161)].setItem(this.key,JSON[n(173)](t))}}const ut=ht;!function(t,n){const e=ht,r=t();for(;;)try{if(726504===-parseInt(e(206))/1*(parseInt(e(185))/2)+parseInt(e(152))/3*(-parseInt(e(189))/4)+parseInt(e(197))/5+-parseInt(e(166))/6+parseInt(e(202))/7*(parseInt(e(158))/8)+parseInt(e(163))/9*(-parseInt(e(176))/10)+parseInt(e(187))/11)break;r.push(r.shift())}catch(s){r.push(r.shift())}}(ft);class pt{constructor(t){const n=ht,r={DjjQA:"5|0|2|1|4|3",gzLas:function(t,n){return t+n}},s=r[n(165)][n(172)]("|");let o=0;for(;;){switch(s[o++]){case"0":this[n(209)]=null;continue;case"1":this[n(193)]=e;continue;case"2":this.batchInterval=2e3;continue;case"3":this.storage=new ct(r.gzLas(r.gzLas(this[n(193)],"-"),this.appModule[n(184)]()));continue;case"4":this.appModule=t;continue;case"5":this[n(147)]=1;continue}break}}[ut(151)](){const t=ut,n={saDTG:t(161)};document[t(175)](n[t(174)],(()=>{const n=t;this.appModule[n(168)](s[n(196)]),this.startBatching()}))}[ut(157)](){const t=ut,n={nPnXX:function(t,n){return t*n},IaVtS:function(t,n){return t!==n},lIThA:function(t,n){return t===n},oEUPo:"TaQkq",fqCey:function(t,n){return t(n)}};n.IaVtS(this.intervalId,null)&&(n[t(183)](n[t(205)],n[t(205)])?(n[t(178)](clearInterval,this[t(209)]),this[t(209)]=null):(this[t(147)]++,this[t(155)]=n[t(200)](this.batchInterval,2.71),_0x138d4f[t(208)](this[t(155)]),this[t(201)]()))}[ut(148)](t,n){this[ut(177)].addToStorage(t,n)}[ut(201)](){const t=ut,n={UzbAR:function(t,n){return t===n},oWQlf:function(t,n){return t===n},uYnII:t(195)};n[t(162)](this[t(209)],null)&&(n.oWQlf(n[t(164)],n[t(164)])?this[t(209)]=window.setInterval((()=>this[t(188)]()),this[t(155)]):this[t(177)][t(171)](_0x52cfef,_0x1dc12a))}[ut(188)](){const t=ut,n=this[t(177)][t(192)]();n[t(167)]!==0&&window.navigator[t(207)]&&this.sendBatch(n)}[ut(146)](t){const n=ut,e={RmIIm:function(t,n){return t===n},KTEdn:function(t,n){return t!==n},QyJqP:function(t,n){return t(n)},iJABD:n(182),absMJ:function(t,n){return t===n},IMlJw:n(154),eIVie:function(t,n){return t<n},PvlCK:function(t,n){return t*n},BaQps:n(161),lydaH:"XCGzt"};this.stopBatching(),this.appModule[n(180)](t)[n(153)]((r=>{const s=n,o={DiYsb:function(t,n){return e[ht(194)](t,n)},DAcdy:function(t,n){return e[ht(169)](t,n)}};if(e.KTEdn(e[s(179)],s(182)))o[s(199)](this[s(209)],null)&&(o[s(204)](_0x5e6484,this[s(209)]),this[s(209)]=null);else{if(e[s(190)](String(r[s(159)])[0],"4")){if(s(149)!==e[s(156)])return;e[s(198)](this.intervalId,null)&&(this.intervalId=_0x4f0c3a[s(191)]((()=>this[s(188)]()),this.batchInterval))}if(e[s(198)](e[s(169)](String,r.status)[0],"5"))return void(e.eIVie(this.backoff,5)&&(this[s(147)]++,this[s(155)]=e[s(160)](this[s(155)],2.71),console[s(208)](this[s(155)]),this[s(201)]()));this[s(147)]=1,this[s(155)]=1500,this[s(177)][s(186)](this.storage.getBatch()[s(150)]((n=>!t[s(145)]((t=>JSON.stringify(n)===JSON[s(203)](t)))))),this[s(201)]()}}),(t=>{const r=n;e.absMJ(e[r(170)],e[r(170)])?(console[r(208)](t),this.startBatching()):_0x2cb094[r(175)](e[r(181)],(()=>{const t=r;this[t(173)][t(168)](_0x2314bc[t(196)]),this.startBatching()}))}))}}function ht(t,n){const e=ft();return(ht=function(t,n){return e[t-=145]})(t,n)}function ft(){const t=["atIKP","INIT","2664525JDVtct","RmIIm","DiYsb","nPnXX","startBatching","9800pJozgl","stringify","DAcdy","oEUPo","1HfauOw","onLine","log","intervalId","some","sendBatch","backoff","collect","lssEn","filter","init","3dBxgQG","then","kctxv","batchInterval","IMlJw","stopBatching","392PdDVPr","status","PvlCK","DOMContentLoaded","UzbAR","261fqtXrL","uYnII","DjjQA","1318068KrwwWO","length","collectEvent","QyJqP","lydaH","addToStorage","split","appModule","saDTG","addEventListener","79250zJbxuY","storage","fqCey","iJABD","recordEvents","BaQps","hETne","lIThA","getApiToken","1059438EWNisS","setItem","19690682xpCJqi","processQueue","2743364HOdrVH","absMJ","setInterval","getBatch","BATCH_KEY","KTEdn"];return(ft=function(){return t})()}var lt=It;function It(t,n){var e=mt();return(It=function(t,n){return e[t-=148]})(t,n)}!function(t,n){for(var e=It,r=t();;)try{if(939669===-parseInt(e(167))/1+-parseInt(e(162))/2+-parseInt(e(155))/3*(-parseInt(e(149))/4)+parseInt(e(163))/5*(parseInt(e(168))/6)+parseInt(e(153))/7*(-parseInt(e(166))/8)+-parseInt(e(158))/9*(-parseInt(e(151))/10)+-parseInt(e(156))/11)break;r.push(r.shift())}catch(s){r.push(r.shift())}}(mt);class dt{constructor(t,n){var e=It;this[e(154)]=t,this[e(152)]=n,this[e(161)]=new st(this),this[e(160)]=new v(this),this[e(157)]=new I(this),this[e(165)]=new pt(this)}async[lt(170)](){var t=lt;this.networkController[t(170)](),this[t(161)][t(170)](),this[t(157)][t(170)](),this[t(165)][t(170)]()}[lt(164)](){return this[lt(161)].assembleEventSession()}recordEvent(t,n,e){var r=lt;return this[r(160)][r(169)](t,n,e)}[lt(148)](t){var n=lt;return this[n(160)][n(148)](t)}collectEvent(t,n){var e=lt;this.batchService[e(159)](t,{...n,...this[e(164)]()})}[lt(150)](){return this[lt(154)]}getAppName(){return this.appName}}function mt(){var t=["2354630ByUIvX","1283390UhzpQh","assembleEventSession","batchService","3787504ZtWwnU","479159GUeSTU","42MABwnE","recordEvent","init","recordEvents","4TvDWbk","getApiToken","730570fGlSMh","appName","14TSIaKm","apiToken","5330259CnmmPa","12389685mpTkrA","analyticsController","135ztaQbL","collect","networkController","sessionController"];return(mt=function(){return t})()}function gt(){const t=["3307emIJia","2394711hxpoyI","3985975YTvQiZ","6VOFACd","13124jASjlx","282fdnTRM","10EOSKyP","716440yEqRJG","1482649EOgxLS","6657035SprsOy","579cLIUsX"];return(gt=function(){return t})()}function St(t,n){const e=gt();return(St=function(t,n){return e[t-=208]})(t,n)}!function(t,n){const e=St,r=t();for(;;)try{if(413395===-parseInt(e(213))/1*(-parseInt(e(218))/2)+parseInt(e(212))/3*(-parseInt(e(217))/4)+parseInt(e(215))/5*(parseInt(e(216))/6)+parseInt(e(210))/7+-parseInt(e(209))/8+parseInt(e(214))/9+parseInt(e(208))/10*(-parseInt(e(211))/11))break;r.push(r.shift())}catch(s){r.push(r.shift())}}(gt);return{init:async function({token:t,appName:n}){new dt(t,n).init()}}}(); | ||
var telegramAnalytics=function(){"use strict";function t(){const n=["fsTTN","connection-restoring-started","mHApW","transaction-sent-for-signature","365Kswvtg","2621470bjZVxI","connection-restoring-completed","xNFIN","https://tganalytics.xyz/","INIT","CgzyY","17144SHmXhn","app-hide","BXirH","131532ZgWlhI","TRANSACTION_SIGNING_FAILED","TRANSACTION_SENT_FOR_SIGNATURE","44052rhWxET","WAeqE","disconnection","WALLET_CONNECT_ERROR","TRANSACTION_SIGNED","anEwm","WALLET_CONNECT_SUCCESS","app-init","qIhvx","5411uTcJZh","cSbiV","jkfhu","3216CubwOy","connection-started","ANkmb","rAgHb","95uZRcEO","3711004xDlsDj","qZSxk","yVTiW","TGA-Batch-Requests","9lmwASa","HjZPt","custom-event","CONNECTION_RESTORING_STARTED","HIDE","CONNECTION_RESTORING_SUCCESS","2626JJfwvi","CUSTOM_EVENT"];return(t=function(){return n})()}function n(e,r){const s=t();return(n=function(t,n){return s[t-=307]})(e,r)}const e=n;!function(t,e){const r=n,s=t();for(;;)try{if(244934===parseInt(r(339))/1*(parseInt(r(333))/2)+parseInt(r(349))/3+parseInt(r(352))/4*(parseInt(r(322))/5)+-parseInt(r(318))/6*(parseInt(r(315))/7)+parseInt(r(346))/8*(parseInt(r(327))/9)+parseInt(r(340))/10+-parseInt(r(323))/11)break;s.push(s.shift())}catch(i){s.push(s.shift())}}(t);const r=e(343),s=e(326);var i=(t=>{const n=e,r={CgzyY:"6|3|1|11|2|9|13|0|10|4|12|5|8|7",qZSxk:n(332),YGodC:n(341),rAgHb:n(334),cshba:n(312),HjZPt:"connection-completed",fsTTN:n(331),suSYC:n(347),anEwm:n(351),BXirH:n(338),qIhvx:n(350),xNFIN:"transaction-signing-failed",jkfhu:n(344),mHRHs:n(313),WAeqE:"WALLET_DISCONNECT",cSbiV:n(309),ANkmb:"connection-error",OtpXo:"CONNECTION_RESTORING_ERROR",mHApW:"connection-restoring-error",yVTiW:n(310),rdlAs:n(330)},s=r[n(345)].split("|");let i=0;for(;;){switch(s[i++]){case"0":t[r[n(324)]]=r.YGodC;continue;case"1":t[r[n(321)]]=n(329);continue;case"2":t[r.cshba]=r[n(328)];continue;case"3":t[r[n(335)]]=r.suSYC;continue;case"4":t[r[n(311)]]=r[n(348)];continue;case"5":t[r[n(314)]]=r[n(342)];continue;case"6":t[r[n(317)]]=r.mHRHs;continue;case"7":return t;case"8":t[r[n(307)]]=n(308);continue;case"9":t[r[n(316)]]=r[n(320)];continue;case"10":t[r.OtpXo]=r[n(337)];continue;case"11":t.WALLET_CONNECT_STARTED=n(319);continue;case"12":t[r[n(325)]]="transaction-signed";continue;case"13":t[r.rdlAs]=n(336);continue}break}})(i||{});const o=a;function a(t,n){const e=c();return(a=function(t,n){return e[t-=373]})(t,n)}function c(){const t=["init","304498cKKfub","24sCkXfL","MgMKV","type","OiOCd","uiScope","ton-connect-","2|1|0|3|4","712dZRIjz","rONlT","detail","7TrXOVb","Attach ","split"," listener","gyZZw","TRANSACTION_SIGNED","CONNECTION_RESTORING_SUCCESS","collectEvent","ton-connect-ui-","WALLET_CONNECT_ERROR"," received","12QeQBzI","CONNECTION_RESTORING_ERROR","tonConnectUiEvents","2025207nRBHvW","WALLET_DISCONNECT","4763060Ujwygc","WALLET_CONNECT_SUCCESS","3406270NqidcC","rJkpn","11640915JySKSl","0|4|2|1|3","sdkScope","WALLET_CONNECT_STARTED","TRANSACTION_SIGNING_FAILED","RvKXd","addEventListener","CUSTOM_EVENT","6711310WqAzGu","analyticsController","fpHvf","tonConnectSdkEvents","event ","log","TRANSACTION_SENT_FOR_SIGNATURE","events","map","UoNXO","11379PHrgBN"];return(c=function(){return t})()}!function(t,n){const e=a,r=t();for(;;)try{if(684176===parseInt(e(423))/1*(-parseInt(e(412))/2)+-parseInt(e(410))/3*(parseInt(e(420))/4)+-parseInt(e(388))/5+parseInt(e(383))/6*(parseInt(e(390))/7)+-parseInt(e(413))/8*(-parseInt(e(386))/9)+parseInt(e(400))/10+parseInt(e(392))/11)break;r.push(r.shift())}catch(s){r.push(r.shift())}}(c);class u{constructor(t){const n=a,e={mqRHI:n(419),rJkpn:n(380),gyZZw:n(418)},r=e.mqRHI.split("|");let s=0;for(;;){switch(r[s++]){case"0":this.uiScope=e[n(391)];continue;case"1":this.tonConnectUiEvents=[i.WALLET_CONNECT_STARTED,i[n(381)],i[n(396)]];continue;case"2":this[n(403)]=[i.CUSTOM_EVENT,i[n(389)],i[n(381)],i.CONNECTION_RESTORING_STARTED,i[n(378)],i[n(384)],i[n(406)],i[n(377)],i[n(396)],i[n(387)]];continue;case"3":this[n(394)]=e[n(376)];continue;case"4":this[n(401)]=t;continue}break}}[o(411)](){const t=o,n={rONlT:t(393),OiOCd:t(418),fpHvf:t(409),MgMKV:"QsuVG",reTVN:function(t,n){return t===n},IErMo:t(397)};for(let e of this[t(407)])n.reTVN(t(397),n.IErMo)?(console[t(405)](t(373)+e+t(375)),window[t(398)](e,(r=>{const s=t;if(n[s(402)]===n[s(414)]){const t=n[s(421)][s(374)]("|");let e=0;for(;;){switch(t[e++]){case"0":this.tonConnectSdkEvents=[_0x241218[s(399)],_0x2a5e27[s(389)],_0x38a4a4.WALLET_CONNECT_ERROR,_0x3b51e6.CONNECTION_RESTORING_STARTED,_0x1ce53c[s(378)],_0x14114f[s(384)],_0x66bebc[s(406)],_0x44f1a7.TRANSACTION_SIGNED,_0x22a498[s(396)],_0x153eb4.WALLET_DISCONNECT];continue;case"1":this[s(394)]=n[s(416)];continue;case"2":this[s(417)]=s(380);continue;case"3":this.analyticsController=_0x4862bf;continue;case"4":this[s(385)]=[_0x30c3b5[s(395)],_0x39724a[s(381)],_0x6b793c[s(396)]];continue}break}}else{console.log(s(404)+e+" received",r[s(422)]);const{type:t,...n}=r[s(422)];this.analyticsController[s(379)](r[s(422)][s(415)],{...n})}}))):(_0x571211[t(405)](t(373)+_0x24e147+t(375)),_0x2439eb[t(398)](_0x2f3ee0,(n=>{const e=t;_0x5125a4[e(405)](e(404)+_0xd277da+e(382),n[e(422)]);const{type:r,...s}=n[e(422)];this[e(401)][e(379)](n[e(422)][e(415)],{...s})})))}get events(){const t=o;return[...this.tonConnectUiEvents.map((n=>""+this[t(417)]+n)),...this[t(403)][t(408)]((t=>""+this.sdkScope+t))]}}const p=f;function h(){const t=["tjmCS","yBLkC","8018692RJSPar","IvwQh","3603047FBIfYB","1461phRnuP","documentEvents","2160862liynBv","2320070mJULIR","visibilityState","entries","collectEvent","OrAeJ","analyticsController","HIDE","8cimvKT","495828nNAtUz","hidden","488865ynDogb","7516hoTkNU","6DEUwzq","init","60wvoDto","addEventListener"];return(h=function(){return t})()}function f(t,n){const e=h();return(f=function(t,n){return e[t-=247]})(t,n)}!function(t,n){const e=f,r=t();for(;;)try{if(671220===parseInt(e(266))/1+-parseInt(e(255))/2+-parseInt(e(253))/3*(-parseInt(e(267))/4)+parseInt(e(256))/5*(parseInt(e(268))/6)+-parseInt(e(252))/7*(parseInt(e(263))/8)+parseInt(e(264))/9*(-parseInt(e(270))/10)+parseInt(e(250))/11)break;r.push(r.shift())}catch(s){r.push(r.shift())}}(h);class l{constructor(t){const n=f,e={mWDSd:function(t,n){return t===n},cdECG:n(265),OrAeJ:function(t,n){return t!==n},yBLkC:n(251)};this[n(254)]={visibilitychange:()=>{const t=n,r=function(t,n){return e.mWDSd(t,n)};document[t(257)]===e.cdECG&&(e[t(260)](t(248),e[t(249)])?this[t(261)][t(259)](i[t(262)],void 0):(this[t(254)]={visibilitychange:()=>{const n=t;r(_0x434e87.visibilityState,n(265))&&this[n(261)].collectEvent(_0x381ce3[n(262)],void 0)}},this[t(261)]=_0x36bd8c))}},this[n(261)]=t}[p(269)](){const t=p;for(let[n,e]of Object[t(258)](this[t(254)]))document[t(247)](n,e)}}var I=d;function d(t,n){var e=g();return(d=function(t,n){return e[t-=329]})(t,n)}!function(t,n){for(var e=d,r=t();;)try{if(347188===-parseInt(e(331))/1*(parseInt(e(339))/2)+parseInt(e(330))/3*(parseInt(e(337))/4)+parseInt(e(334))/5+-parseInt(e(345))/6+-parseInt(e(341))/7+parseInt(e(332))/8*(parseInt(e(329))/9)+-parseInt(e(336))/10*(-parseInt(e(344))/11))break;r.push(r.shift())}catch(s){r.push(r.shift())}}(g);class m{constructor(t){var n=d;this[n(335)]=t,this[n(333)]=new l(this),this.tonConnectObserver=new u(this)}[I(338)](){this[I(333)].init(),this.tonConnectObserver.init()}[I(340)](t,n){var e=I;this.appModule[e(340)](t,n)[e(346)]((t=>console[e(342)](t)))}[I(343)](t,n){var e=I;this[e(335)][e(343)](t,n)}}function g(){var t=["765624WgtPDi","catch","306MYeiaq","39759ZEcuyG","1bqsmeu","144016uJPyKE","documentObserver","795555KWohDL","appModule","89380JWOHzQ","12TRDrum","init","912058YTuhxV","recordEvent","1350629hSIReC","error","collectEvent","385qcNZbv"];return(g=function(){return t})()}!function(t,n){const e=E,r=t();for(;;)try{if(996137===parseInt(e(322))/1*(-parseInt(e(318))/2)+parseInt(e(312))/3*(-parseInt(e(308))/4)+parseInt(e(306))/5+parseInt(e(321))/6*(-parseInt(e(314))/7)+-parseInt(e(303))/8+-parseInt(e(305))/9*(-parseInt(e(320))/10)+-parseInt(e(317))/11*(-parseInt(e(304))/12))break;r.push(r.shift())}catch(s){r.push(r.shift())}}(T);const S=t=>{throw new Error(t)};function T(){const t=["471156NdCfJo","Telegram User data is not provided.","Token is not provided.","TOKEN_IS_NOT_PROVIDED","3axyrjU","YDdGQ","35SJOsyR","USER_DATA_IS_NOT_PROVIDED","eCVko","7941461ILJvat","11386pTkaiM","gIyTC","240bWKkLT","601266nPvZKT","97RaVtsp","7120368fTFkiZ","12dxTuFh","507852bUqAnL","4905125nHykxn","mtoQi"];return(T=function(){return t})()}function E(t,n){const e=T();return(E=function(t,n){return e[t-=303]})(t,n)}var _=(t=>{const n=E,e={YDdGQ:n(311),eCVko:n(310),mtoQi:n(315),gIyTC:n(309)};return t[e[n(313)]]=e[n(316)],t[e[n(307)]]=e[n(319)],t})(_||{}),N=v;function y(){var t=["recordEvent","application/json","njkGX","51086ODquRS","fvxPz","1132ycpaYI","TxEBw","init","594590KdlOsV","POST","JRrwE","EbmHA","1905992efAyVu","eaOmV","1933JOVxlL","appModule","BACKEND_URL","2175AqknDp","6KCJSuT","TOKEN_IS_NOT_PROVIDED","ehqux","custom_data","158Vfyvps","getApiToken","GuXnk","events","2514035NjBJtC","stringify","sgInC","MnpkJ","5611302MjSfmf"];return(y=function(){return t})()}function v(t,n){var e=y();return(v=function(t,n){return e[t-=154]})(t,n)}!function(t,n){for(var e=v,r=t();;)try{if(344631===parseInt(e(169))/1*(-parseInt(e(177))/2)+parseInt(e(172))/3*(parseInt(e(160))/4)+-parseInt(e(181))/5*(parseInt(e(173))/6)+-parseInt(e(158))/7+parseInt(e(167))/8+parseInt(e(154))/9+-parseInt(e(163))/10)break;r.push(r.shift())}catch(s){r.push(r.shift())}}(y);class b{constructor(t){var n=v,e={TxEBw:function(t,n){return t(n)},sgInC:"nOHrg"};this.BACKEND_URL=r,this[n(170)]=t,!this[n(170)].getApiToken()&&("VfgSD"!==e[n(183)]?e[n(161)](S,_.TOKEN_IS_NOT_PROVIDED):(this.BACKEND_URL=_0x20ba6c,this[n(170)]=_0x10d6ae,!this[n(170)][n(178)]()&&e[n(161)](_0x4066c1,_0x19d10c[n(174)])))}[N(162)](){}async recordEvents(t){var n=N,e={njkGX:function(t,n,e){return t(n,e)},MnpkJ:function(t,n){return t+n},JRrwE:"events",ehqux:n(164),EbmHA:n(156)};return await e[n(157)](fetch,e[n(184)](this[n(171)],e[n(165)]),{method:e[n(175)],headers:{"TGA-Auth-Token":this[n(170)][n(178)](),"Content-Type":e[n(166)]},body:JSON[n(182)](t)})}async[N(155)](t,n,e){var r=N,s={gKrlm:function(t,n,e){return t(n,e)},fvxPz:function(t,n){return t+n},eaOmV:r(180),GuXnk:"application/json"};(null==n?void 0:n.custom_data)&&(e=e?Object.assign(n[r(176)],e):n[r(176)]),await s.gKrlm(fetch,s[r(159)](this[r(171)],s[r(168)]),{method:r(164),headers:{"TGA-Auth-Token":this.appModule[r(178)](),"Content-Type":s[r(179)]},body:JSON[r(182)]({...n,event_name:t,custom_data:e,...this[r(170)].assembleEventSession()})})}}class C extends Error{constructor(t,n,e){super(n,{cause:e}),this.type=t,Object.setPrototypeOf(this,C.prototype)}}function O(t,n,e){return new C(t,n,e)}const x="ERR_UNEXPECTED_TYPE",A="ERR_PARSE";function w(){return O(x,"Value has unexpected type")}class R{constructor(t,n,e){this.parser=t,this.isOptional=n,this.type=e}parse(t){if(!this.isOptional||void 0!==t)try{return this.parser(t)}catch(n){throw O(A,"Unable to parse value"+(this.type?` as ${this.type}`:""),n)}}optional(){return this.isOptional=!0,this}}function k(t,n){return()=>new R(t,!1,n)}const D=k((t=>{if("boolean"==typeof t)return t;const n=String(t);if("1"===n||"true"===n)return!0;if("0"===n||"false"===n)return!1;throw w()}),"boolean");function L(t,n){const e={};for(const s in t){const i=t[s];if(!i)continue;let o,a;if("function"==typeof i||"parse"in i)o=s,a="function"==typeof i?i:i.parse.bind(i);else{const{type:t}=i;o=i.from||s,a="function"==typeof t?t:t.parse.bind(t)}try{const t=a(n(o));void 0!==t&&(e[s]=t)}catch(r){throw O(A,`Unable to parse field "${s}"`,r)}}return e}function P(t){let n=t;if("string"==typeof n&&(n=JSON.parse(n)),"object"!=typeof n||null===n||Array.isArray(n))throw w();return n}function U(t,n){return new R((n=>{const e=P(n);return L(t,(t=>e[t]))}),!1,n)}const J=k((t=>{if("number"==typeof t)return t;if("string"==typeof t){const n=Number(t);if(!Number.isNaN(n))return n}throw w()}),"number");const W=k((t=>{if("string"==typeof t||"number"==typeof t)return t.toString();throw w()}),"string"),H=k((t=>function(t){const n=t.replace(/\s/g,"").toLowerCase();if(function(t){return/^#[\da-f]{6}$/i.test(t)}(n))return n;if(function(t){return/^#[\da-f]{3}$/i.test(t)}(n)){let t="#";for(let e=0;e<3;e+=1)t+=n[1+e].repeat(2);return t}const e=n.match(/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/)||n.match(/^rgba\((\d{1,3}),(\d{1,3}),(\d{1,3}),\d{1,3}\)$/);if(!e)throw new Error(`Value "${t}" does not satisfy any of known RGB formats.`);return e.slice(1).reduce(((t,n)=>{const e=parseInt(n,10).toString(16);return t+(1===e.length?"0":"")+e}),"#")}(W().parse(t))),"rgb");U({req_id:W(),data:t=>null===t?t:W().optional().parse(t)}),U({req_id:W(),result:t=>t,error:W().optional()}),U({slug:W(),status:W()}),U({status:W()}),U({data:W().optional()}),U({theme_params:t=>{const n=H().optional();return Object.entries(P(t)).reduce(((t,[e,r])=>(t[e]=n.parse(r),t)),{})}}),U({height:J(),width:t=>null==t?window.innerWidth:J().parse(t),is_state_stable:D(),is_expanded:D()}),U({status:W()});const V=k((t=>t instanceof Date?t:new Date(1e3*J().parse(t))),"Date");function G(t,n){return new R((n=>{if("string"!=typeof n&&!(n instanceof URLSearchParams))throw w();const e="string"==typeof n?new URLSearchParams(n):n;return L(t,(t=>{const n=e.get(t);return null===n?void 0:n}))}),!1,n)}const B=U({id:J(),type:W(),title:W(),photoUrl:{type:W().optional(),from:"photo_url"},username:W().optional()},"Chat").optional(),j=U({addedToAttachmentMenu:{type:D().optional(),from:"added_to_attachment_menu"},allowsWriteToPm:{type:D().optional(),from:"allows_write_to_pm"},firstName:{type:W(),from:"first_name"},id:J(),isBot:{type:D().optional(),from:"is_bot"},isPremium:{type:D().optional(),from:"is_premium"},languageCode:{type:W().optional(),from:"language_code"},lastName:{type:W().optional(),from:"last_name"},photoUrl:{type:W().optional(),from:"photo_url"},username:W().optional()},"User").optional();function K(t){return t.replace(/[A-Z]/g,(t=>`_${t.toLowerCase()}`))}const X=k((t=>{const n=H().optional();return Object.entries(P(t)).reduce(((t,[e,r])=>(t[function(t){return t.replace(/_[a-z]/g,(t=>t[1].toUpperCase()))}(e)]=n.parse(r),t)),{})}),"ThemeParams");function Y(t){return G({botInline:{type:D().optional(),from:"tgWebAppBotInline"},initData:{type:G({authDate:{type:V(),from:"auth_date"},canSendAfter:{type:J().optional(),from:"can_send_after"},chat:B,chatInstance:{type:W().optional(),from:"chat_instance"},chatType:{type:W().optional(),from:"chat_type"},hash:W(),queryId:{type:W().optional(),from:"query_id"},receiver:j,startParam:{type:W().optional(),from:"start_param"},user:j},"InitData").optional(),from:"tgWebAppData"},initDataRaw:{type:W().optional(),from:"tgWebAppData"},platform:{type:W(),from:"tgWebAppPlatform"},showSettings:{type:D().optional(),from:"tgWebAppShowSettings"},startParam:{type:W().optional(),from:"tgWebAppStartParam"},themeParams:{type:X(),from:"tgWebAppThemeParams"},version:{type:W(),from:"tgWebAppVersion"}}).parse(t)}function M(t){return Y(t.replace(/^[^?#]*[?#]/,"").replace(/[?#]/g,"&"))}function q(){return M(window.location.href)}function Z(){const t=performance.getEntriesByType("navigation")[0];if(!t)throw new Error("Unable to get first navigation entry.");return M(t.name)}function Q(t){return`tma.js/${t.replace(/[A-Z]/g,(t=>`-${t.toLowerCase()}`))}`}function F(){return Y(function(t){const n=sessionStorage.getItem(Q(t));try{return n?JSON.parse(n):void 0}catch{}}("launchParams")||"")}function z(t){const{initDataRaw:n,themeParams:e,platform:r,version:s,showSettings:i,startParam:o,botInline:a}=t,c=new URLSearchParams;return c.set("tgWebAppPlatform",r),c.set("tgWebAppThemeParams",function(t){return JSON.stringify(Object.fromEntries(Object.entries(t).map((([t,n])=>[K(t),n]))))}(e)),c.set("tgWebAppVersion",s),n&&c.set("tgWebAppData",n),o&&c.set("tgWebAppStartParam",o),"boolean"==typeof i&&c.set("tgWebAppShowSettings",i?"1":"0"),"boolean"==typeof a&&c.set("tgWebAppBotInline",a?"1":"0"),c.toString()}function $(t){!function(t,n){sessionStorage.setItem(Q(t),JSON.stringify(n))}("launchParams",z(t))}function tt(){for(const t of[q,Z,F])try{const n=t();return $(n),n}catch{}throw new Error("Unable to retrieve launch parameters from any known source.")}function nt(t,n){const e=rt();return(nt=function(t,n){return e[t-=187]})(t,n)}function et(t){const n=nt,e={aadkS:function(t,n){return t<n},xHWFD:function(t,n){return t-n},lhttg:function(t,n){return t<<n},KPSfp:function(t,n){return t|n},VtdXQ:function(t,n){return t%n},XBTNu:function(t,n){return t==n},gWPZT:function(t,n){return t|n},htmHW:"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx",QbhSn:function(t,n){return t+n},fPMaB:function(t,n){return t(n)}};let r=e[n(203)],s=(new Date)[n(189)]();const i=e[n(194)](t,s);let o=e[n(200)]((function(t){const r=n;let s=0;for(let n=0;e[r(209)](n,t[r(205)]);n++){const i=t[r(193)](n);s=e[r(212)](e[r(202)](s,5),s)+i,s|=0}return s}),i).toString(16);for(;o[n(205)]<32;)o+=o;o=o[n(191)](0,32);let a=0;return r[n(187)](/[xy]/g,(function(t){const r=n,i=e.KPSfp(e[r(207)](s+parseInt(o[a],16),16),0);return s=Math[r(198)](s/16),a++,(e.XBTNu(t,"x")?i:e.gWPZT(3&i,8)).toString(16)}))}function rt(){const t=["VtdXQ","409654XVyMlF","aadkS","67170432gXiyBQ","36272AFkgUv","xHWFD","replace","105gNHygc","getTime","2wGACHf","slice","1354257AknnLo","charCodeAt","QbhSn","186KZayGM","13jjNTTc","33VbkaGd","floor","5073730ZzFkKj","fPMaB","90492hPqqoP","lhttg","htmHW","3087nKDkSz","length","1596111tptixS"];return(rt=function(){return t})()}!function(t,n){const e=nt,r=t();for(;;)try{if(913702===parseInt(e(206))/1+-parseInt(e(190))/2*(parseInt(e(192))/3)+-parseInt(e(201))/4*(-parseInt(e(188))/5)+-parseInt(e(195))/6*(-parseInt(e(208))/7)+-parseInt(e(211))/8*(-parseInt(e(204))/9)+parseInt(e(199))/10*(parseInt(e(197))/11)+-parseInt(e(210))/12*(parseInt(e(196))/13))break;r.push(r.shift())}catch(s){r.push(r.shift())}}(rt);const st=ot;function it(){const t=["isPremium","firstName","UgSKa","platform","wbuBy","34394420KxADgj","906450FZOgXv","isBot","appModule","IJYdd","startParam","user","languageCode","155036hKBbHW","getUserLocale","CMRrT","getSessionId","photoUrl","30YBerUv","3TpMvWX","54126IcSIXA","username","wOiVy","getAppName","getUserIsPremium","lastName","getPlatform","HslkL","CYSXL","getUserId","init","is_premium","1176KhirBR","getUserData","sessionId","webAppStartParam","2877022CRuFRx","userData","userId","userLocale","initData","USER_DATA_IS_NOT_PROVIDED","30730QfTfXr","getWebAppStartParam","now","459628uSwzSJ"];return(it=function(){return t})()}function ot(t,n){const e=it();return(ot=function(t,n){return e[t-=486]})(t,n)}!function(t,n){const e=ot,r=t();for(;;)try{if(917404===-parseInt(e(522))/1+-parseInt(e(499))/2+parseInt(e(528))/3*(parseInt(e(508))/4)+-parseInt(e(515))/5+parseInt(e(527))/6*(parseInt(e(505))/7)+-parseInt(e(495))/8*(parseInt(e(529))/9)+parseInt(e(514))/10)break;r.push(r.shift())}catch(s){r.push(r.shift())}}(it);class at{constructor(t){this[ot(517)]=t}[st(493)](){var t;const n=st,e={UgSKa:function(t){return t()},IJYdd:"CYSXL",wbuBy:function(t,n){return t(n)},CMRrT:function(t,n){return t(n)},HslkL:function(t,n){return t(n)}},r=e[n(511)](tt),s=r[n(503)],i=null==(t=r[n(503)])?void 0:t[n(520)];!i&&(e[n(518)]!==n(491)?this.appModule=_0x19902c:e[n(513)](S,_[n(504)])),this[n(500)]={id:i.id,is_premium:i[n(509)],first_name:i[n(510)],is_bot:i[n(516)],last_name:i[n(488)],language_code:i[n(521)],photo_url:i[n(526)],username:i[n(530)]},this[n(501)]=i.id,this.userLocale=i.languageCode,this[n(498)]=s[n(519)],this.platform=r[n(512)],this[n(497)]=e[n(524)](et,e[n(490)](String,this[n(492)]()))}getSessionId(){return this.sessionId}[st(492)](){return this[st(501)]}[st(506)](){return this.webAppStartParam}[st(489)](){return this[st(512)]}[st(523)](){return this[st(502)]}[st(496)](){return this.userData}[st(487)](){const t=st,n=this.getUserData();return Boolean(null==n?void 0:n[t(494)])}assembleEventSession(){const t=st;return{session_id:this[t(525)](),user_id:this.getUserId(),app_name:this[t(517)][t(486)](),is_premium:this[t(487)](),platform:this[t(489)](),locale:this[t(523)](),start_param:this.getWebAppStartParam(),client_timestamp:{wOiVy:function(t,n){return t(n)}}[t(531)](String,Date[t(507)]())}}}function ct(t,n){const e=ut();return(ct=function(t,n){return e[t-=184]})(t,n)}function ut(){const t=["jcxhH","stringify","BGYVg","YjQNP","ULwYZ","RvNZk","parse","108165AkwcLA","5950472fxDPvU","push","sessionStorage","localStorage","xVsJY","filter","getBatch","1491675NYrtdV","3406352EZVEss","5748444yNWKLL","findIndex","key","getItem","setItem","xQyZX","persist","7265174GHDQiE","2KYJVsm","2517636adlAES","9wyLkyi"];return(ut=function(){return t})()}const pt=ct;!function(t,n){const e=ct,r=t();for(;;)try{if(677013===-parseInt(e(203))/1*(-parseInt(e(193))/2)+parseInt(e(194))/3+parseInt(e(184))/4+-parseInt(e(211))/5+parseInt(e(185))/6+-parseInt(e(192))/7+-parseInt(e(204))/8*(parseInt(e(195))/9))break;r.push(r.shift())}catch(s){r.push(r.shift())}}(ut);class ht{constructor(t){const n=ct,e={xVsJY:function(t,n){return t===n},jcxhH:function(t,n){return t===n},xQyZX:n(198),YjQNP:n(201)};this[n(206)]=window[n(206)],this[n(207)]=window[n(207)],navigator.storage[n(191)](),this.key=t;const r=this.localStorage.getItem(this[n(187)]);if(e.jcxhH(r,null)){if(e[n(190)]===e[n(199)])return e[n(208)](this[n(206)].getItem(this[n(187)]),null)&&e[n(196)](this.localStorage[n(188)](this[n(187)]),null)?this[n(189)]([]):this[n(189)](_0x4c3a18[n(202)](this[n(207)][n(188)](this.key))),this[n(189)]([..._0x4b7a7b[n(202)](this.sessionStorage[n(188)](this.key)),..._0x507d2a[n(202)](this.localStorage[n(188)](this.key))][n(209)](((t,e,r)=>r[n(186)]((e=>_0x48a48a.stringify(e)===_0x3c47c7[n(197)](t)))===e))),_0x2bed89[n(202)](this.sessionStorage[n(188)](this[n(187)]));this[n(189)]([])}else this[n(189)](JSON.parse(r))}[pt(210)](){const t=pt,n={ULwYZ:function(t,n){return t===n},ofscY:function(t,n){return t===n}};return n[t(200)](this[t(206)][t(188)](this.key),null)&&n.ofscY(this[t(207)][t(188)](this[t(187)]),null)?this[t(189)]([]):this[t(189)](JSON.parse(this[t(207)][t(188)](this[t(187)]))),this[t(189)]([...JSON[t(202)](this[t(206)][t(188)](this.key)),...JSON[t(202)](this.localStorage.getItem(this[t(187)]))][t(209)](((n,e,r)=>r.findIndex((e=>JSON[t(197)](e)===JSON[t(197)](n)))===e))),JSON.parse(this[t(206)].getItem(this[t(187)]))}addToStorage(t,n){const e=pt,r=this[e(210)]();r[e(205)]({event_name:t,...n}),this.setItem(r)}[pt(189)](t){const n=pt;this[n(207)].setItem(this[n(187)],JSON[n(197)](t)),this[n(206)][n(189)](this[n(187)],JSON.stringify(t))}}function ft(){const t=["rPdlY","RqfTn","BATCH_KEY","plSBz","storage","10126074iishHq","batchInterval","processQueue","init","then","1vXJrlH","gCQpo","some","status","backoff","stringify","setItem","UGpSw","1690ZIOoUe","EIpKg","5655176UMKftG","INIT","appModule","AzjOh","sRbET","7795765nfuhsw","RdcTh","collect","8UIatIe","XkiIm","sendBatch","log","onLine","djmpm","addToStorage","DINvt","addEventListener","694358IEvdTT","HtkQC","cXQfp","gYHJe","vaXtB","Juopg","fpTJJ","filter","AYHor","getBatch","6FOEign","441727UgEkIt","CUevg","collectEvent","intervalId","navigator","3|0|4|2|5|1","split","stopBatching","recordEvents","ILqHn","NvWmN","11278539jQPbpU","5117949aqQrJx","startBatching","setInterval"];return(ft=function(){return t})()}const lt=It;function It(t,n){const e=ft();return(It=function(t,n){return e[t-=196]})(t,n)}!function(t,n){const e=It,r=t();for(;;)try{if(939329===-parseInt(e(227))/1*(-parseInt(e(254))/2)+parseInt(e(214))/3+parseInt(e(237))/4+parseInt(e(242))/5*(parseInt(e(201))/6)+parseInt(e(222))/7+parseInt(e(245))/8*(parseInt(e(213))/9)+-parseInt(e(235))/10*(parseInt(e(202))/11))break;r.push(r.shift())}catch(s){r.push(r.shift())}}(ft);class dt{constructor(t){const n=It,e={UGpSw:n(207),djmpm:function(t,n){return t+n}},r=e[n(234)][n(208)]("|");let i=0;for(;;){switch(r[i++]){case"0":this.intervalId=null;continue;case"1":this[n(221)]=new ht(e[n(250)](e.djmpm(this[n(219)],"-"),this[n(239)].getApiToken()));continue;case"2":this[n(219)]=s;continue;case"3":this.backoff=1;continue;case"4":this[n(223)]=2e3;continue;case"5":this.appModule=t;continue}break}}[lt(225)](){const t=lt;document[t(253)]({Juopg:"DOMContentLoaded"}[t(196)],(()=>{const n=t;this.appModule[n(204)](i[n(238)]),this[n(215)]()}))}[lt(209)](){const t=lt;({XkiIm:function(t,n){return t!==n}})[t(246)](this.intervalId,null)&&(clearInterval(this.intervalId),this[t(205)]=null)}[lt(244)](t,n){const e=lt;this[e(221)][e(251)](t,n)}[lt(215)](){const t=lt,n={rPdlY:function(t,n){return t===n},DINvt:function(t,n){return t!==n},gCQpo:t(212)};n[t(217)](this[t(205)],null)&&(n[t(252)](t(212),n[t(228)])?this[t(247)](_0x479cfd):this[t(205)]=window[t(216)]((()=>this[t(224)]()),this[t(223)]))}[lt(224)](){const t=lt,n={jcuNG:function(t,n){return t*n},EIpKg:function(t,n){return t!==n},vaXtB:"fawnH"},e=this.storage[t(200)]();n[t(236)](e.length,0)&&window[t(206)][t(249)]&&(n[t(236)](n[t(258)],n[t(258)])?(this[t(231)]++,this[t(223)]=n.jcuNG(this[t(223)],2.71),_0x57dfb9[t(248)](this[t(223)]),this[t(215)]()):this[t(247)](e))}[lt(247)](t){const n=lt,e={plSBz:function(t,n){return t!==n},ILqHn:function(t,n){return t(n)},sRbET:function(t,n){return t===n},AzjOh:"bhrCf",AYHor:n(203),RdcTh:function(t,n){return t*n},gYHJe:function(t,n){return t!==n},RqfTn:n(256)};this[n(209)](),this.appModule[n(210)](t)[n(226)]((r=>{const s=n,i={fpTJJ:function(t,n){return e[It(220)](t,n)},HtkQC:function(t,n){return e[It(211)](t,n)}};if(e[s(241)](String(r[s(230)])[0],"4")){if(e[s(240)]==e[s(240)])return;i[s(197)](this[s(205)],null)&&(i[s(255)](_0x2a14ef,this.intervalId),this[s(205)]=null)}"5"!==e[s(211)](String,r.status)[0]?(this[s(231)]=1,this[s(223)]=1500,this.storage[s(233)](this[s(221)][s(200)]()[s(198)]((n=>!t[s(229)]((t=>JSON[s(232)](n)===JSON[s(232)](t)))))),this[s(215)]()):this[s(231)]<5&&(e[s(199)]!=e[s(199)]?(_0x2b30ff.log(_0x19661f),this[s(215)]()):(this[s(231)]++,this[s(223)]=e[s(243)](this.batchInterval,2.71),console[s(248)](this.batchInterval),this[s(215)]()))}),(t=>{const r=n;if(e[r(257)](e[r(218)],e[r(218)])){const t=this[r(221)][r(200)]();0!==t.length&&_0x2996fc[r(206)][r(249)]&&this[r(247)](t)}else console[r(248)](t),this[r(215)]()}))}}function mt(){var t=["5733543sTDHGf","215356httjkS","getApiToken","networkController","batchService","10lqkoDQ","sessionController","split","5493051dzytQS","apiToken","analyticsController","1938872GdrIfE","443OxnTOG","45nGxYCG","appName","assembleEventSession","6186woGPwg","collectEvent","init","recordEvents","recordEvent","collect","54bJhxvf","12957329LKVFmV","227563kJebgl"];return(mt=function(){return t})()}var gt=St;function St(t,n){var e=mt();return(St=function(t,n){return e[t-=381]})(t,n)}!function(t,n){for(var e=St,r=t();;)try{if(992873===-parseInt(e(404))/1*(parseInt(e(383))/2)+parseInt(e(392))/3+-parseInt(e(393))/4*(-parseInt(e(405))/5)+parseInt(e(389))/6*(parseInt(e(391))/7)+parseInt(e(403))/8+-parseInt(e(400))/9*(-parseInt(e(397))/10)+-parseInt(e(390))/11)break;r.push(r.shift())}catch(s){r.push(r.shift())}}(mt);class Tt{constructor(t,n){for(var e=St,r="4|1|5|2|3|0"[e(399)]("|"),s=0;;){switch(r[s++]){case"0":this.batchService=new dt(this);continue;case"1":this[e(381)]=n;continue;case"2":this[e(395)]=new b(this);continue;case"3":this[e(402)]=new m(this);continue;case"4":this[e(401)]=t;continue;case"5":this[e(398)]=new at(this);continue}break}}async init(){var t=St;this[t(395)][t(385)](),this.sessionController[t(385)](),this[t(402)][t(385)](),this[t(396)].init()}assembleEventSession(){var t=St;return this[t(398)][t(382)]()}[gt(387)](t,n,e){return this[gt(395)].recordEvent(t,n,e)}[gt(386)](t){var n=gt;return this[n(395)][n(386)](t)}[gt(384)](t,n){var e=gt;this.batchService[e(388)](t,{...n,...this.assembleEventSession()})}[gt(394)](){return this.apiToken}getAppName(){return this.appName}}function Et(t,n){const e=_t();return(Et=function(t,n){return e[t-=325]})(t,n)}function _t(){const t=["1042134VZseEI","6bVaBju","3505xXvUJh","47330uXkrTS","693604xLFsks","1078FBXnFE","238473OxEcVR","1216443CeNALC","5564XaCEPF","7338065YWjJcE","368uWUBTa"];return(_t=function(){return t})()}!function(t,n){const e=Et,r=t();for(;;)try{if(689840===-parseInt(e(331))/1+parseInt(e(328))/2*(parseInt(e(334))/3)+-parseInt(e(335))/4*(-parseInt(e(329))/5)+-parseInt(e(327))/6+parseInt(e(325))/7+parseInt(e(326))/8*(-parseInt(e(333))/9)+-parseInt(e(330))/10*(parseInt(e(332))/11))break;r.push(r.shift())}catch(s){r.push(r.shift())}}(_t);return{init:async function({token:t,appName:n}){new Tt(t,n).init()}}}(); |
{ | ||
"name": "@telegram-apps/analytics", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "type": "module", |
# Telegram Analytics | ||
### Version 1.1.0 | ||
### Version 1.1.1 | ||
Telegram analytics is a unique SDK and API that turns your mini-application into a source of valuable data. Telegram analytics doesn't just track user activity in your app, it turns it into clear and useful analytics. With this tool, you get instant access to key metrics that help you understand how users interact with your application and what steps need to be taken to optimize it. | ||
### [Documentation](https://docs.tganalytics.xyz) |
@@ -1,2 +0,2 @@ | ||
export const BACKEND_URL: string = 'https://tganalytics-test.space/'; | ||
export const BACKEND_URL: string = 'https://tganalytics.xyz/'; | ||
export const BATCH_KEY: string = 'TGA-Batch-Requests'; | ||
@@ -3,0 +3,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
56579
858