PageSourceSearch

https://4u.ge/assets/application-62vm21a6.digested.js

js 4u.ge collected 2026-10-03 01:54:05 UTC 5,018 bytes, 4 lines download raw bytes

1import{Ze,Oe,di,fe,et,Jn,rn,Qn,er,tr,ir}from"/assets/application-83mbjpdr.digested.js";import{gi,Y,p,L,n,k,Et,h,it}from"/assets/application-w9hy54q6.digested.js";import{ge}from"/assets/application-6vqb8c9z.digested.js";var m=86400000,E=2000,l=/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;function f(){return globalThis.document?.documentElement?.lang||"ka"}function cs(){return ge()}function s({allowVisitor:t=!0}={}){if(Et())return null;let e=n();if(e){let a=gi(e);if(!a||a<=Date.now())return null;return{owner:Y(e),authGeneration:k(),chatErasureGeneration:it(),credential:{kind:"bearer",value:e,expiresAt:a}}}if(!t)return null;let r=h(),o=p(null,r);return r&&o?{owner:o,authGeneration:"visitor",chatErasureGeneration:null,credential:{kind:"visitor",value:r,expiresAt:Date.now()+m}}:null}function Vn(t={}){return s(t)}function w(){let t=globalThis.navigator?.serviceWorker;if(t?.controller?.postMessage?.({type:"outbox:changed"}),!t?.ready)return;Promise.race([t.ready,new Promise((e,r)=>globalThis.setTimeout(()=>r(Error("sw-ready-timeout")),E))]).then((e)=>e?.sync?.register?.(Ze)).catch(()=>{})}async function y(t){let e=await di(t).catch(()=>null);return e?.identity?{...t,identityEpoch:e.identity.identityEpoch}:null}async function qn({clientId:t,body:e,roomId:r=null}={}){let o=s();if(!o)return null;let a=await y(o);if(!a||!l.test(String(t||""))||typeof e!=="string"||!e.trim())return null;let i=`${Ze}:chat:${t}`,u={key:i,protocol:"v1",type:"chat_message",state:"queued",owner:a.owner,authGeneration:a.authGeneration,chatErasureGeneration:a.chatErasureGeneration,identityEpoch:a.identityEpoch,credential:a.credential,credentialBoundAt:Date.now(),clientId:t,roomId:Number.isSafeInteger(Number(r))?Number(r):null,body:e.trim(),locale:f(),createdAt:Date.now(),attempts:0};if(!await et(u))return null;return w(),i}async function Qi({clientId:t,body:e,roomId:r=null,owner:o=null,attempts:a=0,createdAt:i=Date.now(),lastAttemptAt:u=null}={}){if(!l.test(String(t||""))||typeof e!=="string"||!e.trim())return null;let c=`${Ze}:chat:${t}`,d={key:c,protocol:"v1",type:"chat_message",state:"needs_client_auth",owner:o||"unbound",authGeneration:null,chatErasureGeneration:null,identityEpoch:null,clientId:t,roomId:Number.isSafeInteger(Number(r))?Number(r):null,body:e.trim(),locale:f(),createdAt:Number(i)||Date.now(),lastAttemptAt:Number(u)||null,attempts:Number(a)||0};return await et(d)?c:null}async function Ds({type:t,id:e,desiredState:r,baseRevision:o=null,intentId:a=cs()}={}){let i=s({allowVisitor:!1});if(!i)return null;let u=await y(i),c=Number(e);if(!u||!["property","residential_complex"].includes(t)||!Number.isSafeInteger(c)||c<=0||!l.test(String(a||"")))return null;let d=`${Ze}:favorite:${u.owner}:${t}:${c}`,g={key:d,protocol:"v1",type:"favorite_state",state:"queued",owner:u.owner,authGeneration:u.authGeneration,identityEpoch:u.identityEpoch,credential:u.credential,credentialBoundAt:Date.now(),favoritableType:t,favoritableId:c,desiredState:!!r,baseRevision:l.test(String(o||""))?o:null,intentId:a,locale:f(),createdAt:Date.now(),attempts:0};if(!await et(g))return null;return w(),{key:d,intentId:a}}async function xt({endpoint:t,intentId:e=cs(),identity:r=null}={}){let o=r||s({allowVisitor:!1});if(!o)return null;let a=r||await y(o);if(!a||typeof t!=="string"||!t||!l.test(String(e||"")))return null;let i=`${Ze}:push-revoke:${e}`,u={key:i,protocol:"v1",type:"push_revoke",state:"queued",owner:a.owner,authGeneration:a.authGeneration,identityEpoch:a.identityEpoch||null,credential:a.credential,credentialBoundAt:Date.now(),endpoint:t,intentId:e,retainOnSignout:!0,locale:f(),createdAt:Date.now(),attempts:0};if(!await et(u))return null;return w(),{key:i,intentId:e}}async function Xe(t,e=null){if(t)await Oe(t,e).catch(()=>{})}async function Ns(t,e,r){if(!t||!e)return null;return Qn(t,e,r).catch(()=>null)}async function Hn(t,e=null){if(!t)return!1;let r=await rn(t,{state:"needs_client_auth",credential:void 0,authGeneration:null,chatErasureGeneration:null,credentialBoundAt:null,identityEpoch:null},e).catch(()=>!1);if(r)await pe();return r}async function Gn(t,e,r=null){if(!t)return!1;return rn(t,e,r).catch(()=>!1)}async function pe(){let t=s();if(!t)return await di(null),0;let e=await y(t);if(!e)return 0;let o=(await fe()).filter((i)=>i.state==="needs_client_auth"&&i.owner===e.owner),a=0;for(let i of o)if(await Jn(i.key,e))a+=1;
1if(a)w();return a}async function $n(t,e){let r=await er(t,e).catch(()=>0);if(r)await pe();return r}async function Fs(t,e={}){return tr(t,e).catch(()=>0)}async function oi(t={}){return ir(t).catch(()=>{})}globalThis.window?.addEventListener?.("auth:tokens-changed",()=>{pe()});globalThis.window?.addEventListener?.("storage",(t)=>{if(t.key===null||t.key===L)pe()});globalThis.window?.addEventListener?.("chat:identity-changed",()=>{pe()});globalThis.window?.addEventListener?.("auth:signout",()=>{oi({preservePushRevocations:!0})});
2export{cs,Vn,qn,Qi,Ds,xt,Xe,Ns,Hn,Gn,pe,$n,Fs,oi};
3
4//# debugId=63D153A5C7D2C67464756E2164756E21

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.