1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,64628,e=>{"use strict";var t,i,n,a,r=e.i(43476),s=e.i(71645);let o=(0,e.i(75254).default)("bell",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]]);var l=e.i(37727);e.i(61068);var c=e.i(8070),u=e.i(44435),d=e.i(97427),h=e.i(92953);let f="BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4",p="google.c.a.c_id";function m(e){return btoa(String.fromCharCode(...new Uint8Array(e))).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}(t=n||(n={}))[t.DATA_MESSAGE=1]="DATA_MESSAGE",t[t.DISPLAY_NOTIFICATION=3]="DISPLAY_NOTIFICATION",(i=a||(a={})).PUSH_RECEIVED="push-received",i.NOTIFICATION_CLICKED="notification-clicked";let g="fcm_token_details_db",y="fcm_token_object_Store";async function w(e){if("databases"in indexedDB&&!(await indexedDB.databases()).map(e=>e.name).includes(g))return null;let t=null;return(await (0,u.openDB)(g,5,{upgrade:async(i,n,a,r)=>{if(n<2||!i.objectStoreNames.contains(y))return;let s=r.objectStore(y),o=await s.index("fcmSenderId").get(e);if(await s.clear(),o)if(2===n){if(!o.auth||!o.p256dh||!o.endpoint)return;t={token:o.fcmToken,createTime:o.createTime??Date.now(),subscriptionOptions:{auth:o.auth,p256dh:o.p256dh,endpoint:o.endpoint,swScope:o.swScope,vapidKey:"string"==typeof o.vapidKey?o.vapidKey:m(o.vapidKey)}}}else 3===n?t={token:o.fcmToken,createTime:o.createTime,subscriptionOptions:{auth:m(o.auth),p256dh:m(o.p256dh),endpoint:o.endpoint,swScope:o.swScope,vapidKey:m(o.vapidKey)}}:4===n&&(t={token:o.fcmToken,createTime:o.createTime,subscriptionOptions:{auth:m(o.auth),p256dh:m(o.p256dh),endpoint:o.endpoint,swScope:o.swScope,vapidKey:m(o.vapidKey)}})}})).close(),await (0,u.deleteDB)(g),await (0,u.deleteDB)("fcm_vapid_details_db"),await (0,u.deleteDB)("undefined"),!function(e){if(!e||!e.subscriptionOptions)return!1;let{subscriptionOptions:t}=e;return"number"==typeof e.createTime&&e.createTime>0&&"string"==typeof e.token&&e.token.length>0&&"string"==typeof t.auth&&t.auth.length>0&&"string"==typeof t.p256dh&&t.p256dh.length>0&&"string"==typeof t.endpoint&&t.endpoint.length>0&&"string"==typeof t.swScope&&t.swScope.length>0&&"string"==typeof t.vapidKey&&t.vapidKey.length>0}(t)?null:t}let b="firebase-messaging-store",v=null;function x(){return v||(v=(0,u.openDB)("firebase-messaging-database",1,{upgrade:(e,t)=>{0===t&&e.createObjectStore(b)}})),v}async function k(e){let t=function({appConfig:e}){return e.appId}(e),i=await x(),n=await i.transaction(b).objectStore(b).get(t);if(n)return n;{let t=await w(e.appConfig.senderId);if(t)return await S(e,t),t}}async function S(e,t){let i=function({appConfig:e}){return e.appId}(e),n=(await x()).transaction(b,"readwrite");return await n.objectStore(b).put(t,i),await n.done,t}let A=new d.ErrorFactory("messaging","Messaging",{"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"only-available-in-window":"This method is available in a Window context.","only-available-in-sw":"This method is available in a service worker context.","permission-default":"The notification permission was not granted and dismissed instead.","permission-blocked":"The notification permission was not granted and blocked instead.","unsupported-browser":"This browser doesn't support the API's required to use the Firebase SDK.","indexed-db-unsupported":"This browser doesn't support indexedDb.open() (ex. Safari iFrame, Firefox Private Browsing, etc)","failed-service-worker-registration":"We are unable to register the default service worker. {$browserErrorMessage}","token-subscribe-failed":"A problem occurred while subscribing the user to FCM: {$errorInfo}","token-subscribe-no-token":"FCM returned no token when subscribing the user to push.","token-unsubscribe-failed":"A problem occurred while unsubscribing the user from FCM: {$errorInfo}","token-update-failed":"A problem occurred while updating the user from FCM: {$errorInfo}","token-update-no-token":"FCM returned no token when updating the user to push.","use-sw-after-get-token":"The useServiceWorker() method may only be called once and must be called before calling getToken() to ensure your service worker is used.","invali
1d-sw-registration":"The input to useServiceWorker() must be a ServiceWorkerRegistration.","invalid-bg-handler":"The input to setBackgroundMessageHandler() must be a function.","invalid-vapid-key":"The public VAPID key must be a string.","use-vapid-key-after-get-token":"The usePublicVapidKey() method may only be called once and must be called before calling getToken() to ensure your VAPID key is used."});async function C(e,t){let i,n={method:"POST",headers:await T(e),body:JSON.stringify(N(t))};try{let t=await fetch(P(e.appConfig),n);i=await t.json()}catch(e){throw A.create("token-subscribe-failed",{errorInfo:e?.toString()})}if(i.error){let e=i.error.message;throw A.create("token-subscribe-failed",{errorInfo:e})}if(!i.token)throw A.create("token-subscribe-no-token");return i.token}async function E(e,t){let i,n={method:"PATCH",headers:await T(e),body:JSON.stringify(N(t.subscriptionOptions))};try{let a=await fetch(`${P(e.appConfig)}/${t.token}`,n);i=await a.json()}catch(e){throw A.create("token-update-failed",{errorInfo:e?.toString()})}if(i.error){let e=i.error.message;throw A.create("token-update-failed",{errorInfo:e})}if(!i.token)throw A.create("token-update-no-token");return i.token}async function I(e,t){let i=await T(e);try{let n=await fetch(`${P(e.appConfig)}/${t}`,{method:"DELETE",headers:i}),a=await n.json();if(a.error){let e=a.error.message;throw A.create("token-unsubscribe-failed",{errorInfo:e})}}catch(e){throw A.create("token-unsubscribe-failed",{errorInfo:e?.toString()})}}function P({projectId:e}){return`https://fcmregistrations.googleapis.com/v1/projects/${e}/registrations`}async function T({appConfig:e,installations:t}){let i=await t.getToken();return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e.apiKey,"x-goog-firebase-installations-auth":`FIS ${i}`})}function N({p256dh:e,auth:t,endpoint:i,vapidKey:n}){let a={web:{endpoint:i,auth:t,p256dh:e}};return n!==f&&(a.web.applicationPubKey=n),a}async function D(e){var t,i;let n,a,r,s,o=await M(e.swRegistration,e.vapidKey),l={vapidKey:e.vapidKey,swScope:e.swRegistration.scope,endpoint:o.endpoint,auth:m(o.getKey("auth")),p256dh:m(o.getKey("p256dh"))},c=await k(e.firebaseDependencies);if(!c)return _(e.firebaseDependencies,l);if(t=c.subscriptionOptions,n=(i=l).vapidKey===t.vapidKey,a=i.endpoint===t.endpoint,r=i.auth===t.auth,s=i.p256dh===t.p256dh,n&&a&&r&&s)if(Date.now()>=c.createTime+6048e5)return j(e,{token:c.token,createTime:Date.now(),subscriptionOptions:l});else return c.token;try{await I(e.firebaseDependencies,c.token)}catch(e){console.warn(e)}return _(e.firebaseDependencies,l)}async function j(e,t){try{let i=await E(e.firebaseDependencies,t),n={...t,token:i,createTime:Date.now()};return await S(e.firebaseDependencies,n),i}catch(e){throw e}}async function _(e,t){let i={token:await C(e,t),createTime:Date.now(),subscriptionOptions:t};return await S(e,i),i.token}async function M(e,t){let i=await e.pushManager.getSubscription();return i||e.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:function(e){let t="=".repeat((4-e.length%4)%4),i=atob((e+t).replace(/\-/g,"+").replace(/_/g,"/")),n=new Uint8Array(i.length);for(let e=0;e<i.length;++e)n[e]=i.charCodeAt(e);return n}(t)})}function O(e){var t,i;let n={from:e.from,collapseKey:e.collapse_key,messageId:e.fcmMessageId};return function(e,t){if(!t.notification)return;e.notification={};let i=t.notification.title;i&&(e.notification.title=i);let n=t.notification.body;n&&(e.notification.body=n);let a=t.notification.image;a&&(e.notification.image=a);let r=t.notification.icon;r&&(e.notification.icon=r)}(n,e),t=n,(i=e).data&&(t.data=i.data),function(e,t){if(!t.fcmOptions&&!t.notification?.click_action)return;e.fcmOptions={};let i=t.fcmOptions?.link??t.notification?.click_action;i&&(e.fcmOptions.link=i);let n=t.fcmOptions?.analytics_label;n&&(e.fcmOptions.analyticsLabel=n)}(n,e),n}var q="AzSCbw63g1R0nCw85jG8",K="Iaya3yLKwmgvh7cF0q4";let R=[];for(let e=0;e<q.length;e++)R.push(q.charAt(e)),e<K.length&&R.push(K.charAt(e));function Q(e){return A.create("missing-app-config-values",{valueName:e})}R.join("");class F{constructor(e,t,i){this.deliveryMetricsExportedToBigQueryEnabled=!1,this.onBackgroun
1dMessageHandler=null,this.onMessageHandler=null,this.logEvents=[],this.isLogServiceStarted=!1;const n=function(e){if(!e||!e.options)throw Q("App Configuration Object");if(!e.name)throw Q("App Name");let{options:t}=e;for(let e of["projectId","apiKey","appId","messagingSenderId"])if(!t[e])throw Q(e);return{appName:e.name,projectId:t.projectId,apiKey:t.apiKey,appId:t.appId,senderId:t.messagingSenderId}}(e);this.firebaseDependencies={app:e,appConfig:n,installations:t,analyticsProvider:i}}_delete(){return Promise.resolve()}}async function L(e){try{e.swRegistration=await navigator.serviceWorker.register("/firebase-messaging-sw.js",{scope:"/firebase-cloud-messaging-push-scope"}),e.swRegistration.update().catch(()=>{}),await $(e.swRegistration)}catch(e){throw A.create("failed-service-worker-registration",{browserErrorMessage:e?.message})}}async function $(e){return new Promise((t,i)=>{let n=setTimeout(()=>i(Error("Service worker not registered after 10000 ms")),1e4),a=e.installing||e.waiting;e.active?(clearTimeout(n),t()):a?a.onstatechange=e=>{e.target?.state==="activated"&&(a.onstatechange=null,clearTimeout(n),t())}:(clearTimeout(n),i(Error("No incoming service worker found.")))})}async function B(e,t){if(t||e.swRegistration||await L(e),t||!e.swRegistration){if(!(t instanceof ServiceWorkerRegistration))throw A.create("invalid-sw-registration");e.swRegistration=t}}async function H(e,t){t?e.vapidKey=t:e.vapidKey||(e.vapidKey=f)}async function G(e,t){if(!navigator)throw A.create("only-available-in-window");if("default"===Notification.permission&&await Notification.requestPermission(),"granted"!==Notification.permission)throw A.create("permission-blocked");return await H(e,t?.vapidKey),await B(e,t?.serviceWorkerRegistration),D(e)}async function W(e,t,i){let n=function(e){switch(e){case a.NOTIFICATION_CLICKED:return"notification_open";case a.PUSH_RECEIVED:return"notification_foreground";default:throw Error()}}(t);(await e.firebaseDependencies.analyticsProvider.get()).logEvent(n,{message_id:i[p],message_name:i["google.c.a.c_l"],message_time:i["google.c.a.ts"],message_device_time:Math.floor(Date.now()/1e3)})}async function U(e,t){let i=t.data;if(!i.isFirebaseMessaging)return;e.onMessageHandler&&i.messageType===a.PUSH_RECEIVED&&("function"==typeof e.onMessageHandler?e.onMessageHandler(O(i)):e.onMessageHandler.next(O(i)));let n=i.data;"object"==typeof n&&n&&p in n&&"1"===n["google.c.a.e"]&&await W(e,i.messageType,n)}let z="@firebase/messaging",V="0.12.23";async function X(){try{await (0,d.validateIndexedDBOpenable)()}catch(e){return!1}return"u">typeof window&&(0,d.isIndexedDBAvailable)()&&(0,d.areCookiesEnabled)()&&"serviceWorker"in navigator&&"PushManager"in window&&"Notification"in window&&"fetch"in window&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey")}async function J(e,t){return G(e=(0,d.getModularInstance)(e),t)}(0,h._registerComponent)(new c.Component("messaging",e=>{let t=new F(e.getProvider("app").getImmediate(),e.getProvider("installations-internal").getImmediate(),e.getProvider("analytics-internal"));return navigator.serviceWorker.addEventListener("message",e=>U(t,e)),t},"PUBLIC")),(0,h._registerComponent)(new c.Component("messaging-internal",e=>{let t=e.getProvider("messaging").getImmediate();return{getToken:e=>G(t,e)}},"PRIVATE")),(0,h.registerVersion)(z,V),(0,h.registerVersion)(z,V,"esm2020"),e.i(14539);var Y=e.i(51826);let Z=null;function ee(){return"serviceWorker"in navigator?(Z||(Z=navigator.serviceWorker.register("/firebase-messaging-sw.js").cat
1ch(()=>null)),Z):Promise.resolve(null)}async function et(){let e=Y.firebaseCredentials.vapidKey;if(!e||e.length<20)return null;try{let t=(0,h.getApps)();if(0===t.length)return null;let i=function(e=(0,h.getApp)()){return X().then(e=>{if(!e)throw A.create("unsupported-browser")},e=>{throw A.create("indexed-db-unsupported")}),(0,h._getProvider)((0,d.getModularInstance)(e),"messaging").getImmediate()}(t[0]),n=await Notification.requestPermission();if("granted"!==n)return null;let a=await ee();return await J(i,{vapidKey:e,...a?{serviceWorkerRegistration:a}:{}})||null}catch{return null}}var ei=e.i(35004);let en="notificationPromptDismissed",ea="crickcore:notif-banner-visible";function er(e){try{window.dispatchEvent(new CustomEvent(ea,{detail:e}))}catch{}}function es(){try{localStorage.setItem(en,Date.now().toString())}catch{}}e.s(["NOTIF_BANNER_EVENT",0,ea,"default",0,function(){let[e,t]=(0,s.useState)(!1),[i,n]=(0,s.useState)(!1);(0,s.useEffect)(()=>{let e=0,i=()=>{(e+=1)>=5&&function(){if("default"!==Notification.permission||!(0,ei.getVisitorAuthToken)())return!1;try{let e=localStorage.getItem(en);if(!e)return!0;let t=parseInt(e,10);if(isNaN(t))return!0;return Date.now()-t>6048e5}catch{return!0}}()&&(t(!0),document.removeEventListener("click",i))};return document.addEventListener("click",i),()=>document.removeEventListener("click",i)},[]),(0,s.useEffect)(()=>(er(e),e&&ee(),()=>er(!1)),[e]);let a=async()=>{n(!0);try{let e=await Notification.requestPermission();if(t(!1),"granted"!==e)return void es();et().then(e=>e?(0,ei.saveDeviceToken)(e):null).catch(()=>{})}catch{t(!1),es()}finally{n(!1)}},c=()=>{t(!1),es()};return e?(0,r.jsx)("div",{className:"fixed bottom-20 md:bottom-6 left-4 right-4 md:left-auto md:right-6 md:max-w-sm z-[70] shadow-xl",children:(0,r.jsxs)("div",{className:"bg-card rounded-xl shadow-xl border border-border p-4 flex gap-3",children:[(0,r.jsx)("div",{className:"flex-shrink-0 w-10 h-10 rounded-full bg-pitch/10 flex items-center justify-center",children:(0,r.jsx)(o,{className:"w-5 h-5 text-pitch dark:text-gold"})}),(0,r.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,r.jsx)("h3",{className:"font-semibold font-heading text-text text-sm",children:"Get live cricket updates!"}),(0,r.jsx)("p",{className:"text-xs text-text-secondary mt-0.5",children:"Enable notifications for match scores and news."}),(0,r.jsxs)("div",{className:"flex gap-2 mt-3",children:[(0,r.jsx)("button",{onClick:a,disabled:i,className:"px-3 py-1.5 text-xs font-semibold bg-pitch hover:bg-pitch-light text-white rounded-lg disabled:opacity-50 transition-colors",children:i?"Enabling...":"Enable"}),(0,r.jsx)("button",{onClick:c,disabled:i,className:"px-3 py-1.5 text-xs font-medium text-text-muted hover:text-text rounded-lg transition-colors",children:"Not now"})]})]}),(0,r.jsx)("button",{onClick:c,disabled:i,className:"flex-shrink-0 p-1 text-text-muted hover:text-text rounded","aria-label":"Close",children:(0,r.jsx)(l.X,{className:"w-4 h-4"})})]})}):null}],64628)},30824,e=>{"use strict";var t=e.i(43476),i=e.i(71645),n=e.i(70703),a=e.i(19273),r=e.i(86491),s=e.i(40143),o=e.i(15823),l=class extends o.Subscribable{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,i){let n=t.queryKey,s=t.queryHash??(0,a.hashQueryKeyByOptions)(n,t),o=this.get(s);return o||(o=new r.Query({client:e,queryKey:n,queryHash:s,options:e.defaultQueryOptions(t),state:i,defaultOptions:e.getQueryDefaults(n)}),this.add(o)),o}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){s.notifyManager.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,a.matchQuery)(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>(0,a.matchQuery)(e,t)):t}notify(e){s.notifyManager.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){s.notifyManager.batch(()=>
1{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){s.notifyManager.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},c=e.i(88587),u=e.i(36553),d=class extends c.Removable{#t;#i;#n;#a;constructor(e){super(),this.#t=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#i=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#i.includes(e)||(this.#i.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#i=this.#i.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#i.length||("pending"===this.state.status?this.scheduleGc():this.#n.remove(this))}continue(){return this.#a?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#r({type:"continue"})},i={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#a=(0,u.createRetryer)({fn:()=>this.options.mutationFn?this.options.mutationFn(e,i):Promise.reject(Error("No mutationFn found")),onFail:(e,t)=>{this.#r({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#r({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});let n="pending"===this.state.status,a=!this.#a.canStart();try{if(n)t();else{this.#r({type:"pending",variables:e,isPaused:a}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,i);let t=await this.options.onMutate?.(e,i);t!==this.state.context&&this.#r({type:"pending",context:t,variables:e,isPaused:a})}let r=await this.#a.start();return await this.#n.config.onSuccess?.(r,e,this.state.context,this,i),await this.options.onSuccess?.(r,e,this.state.context,i),await this.#n.config.onSettled?.(r,null,this.state.variables,this.state.context,this,i),await this.options.onSettled?.(r,null,e,this.state.context,i),this.#r({type:"success",data:r}),r}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,i)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,i)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,i)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,i)}catch(e){Promise.reject(e)}throw this.#r({type:"error",error:t}),t}finally{this.#n.runNext(this)}}#r(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),s.notifyManager.batch(()=>{this.#i.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}},h=o,f=class extends h.Subscribable{constructor(e={}){super(),this.config=e,this.#s=new Set,this.#o=new Map,this.#l=0}#s;#o;#l;build(e,t,i){let n=new d({client:e,mutationCache:this,mutationId:++this.#l,options:e.defaultMutationOptions(t),state:i});return this.add(n),n}add(e){this.#s.add(e);let t=p(e);if("string"==typeof t){let i=this.#o.get(t);i?i.push(e):this.#o.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#s.delete(e)){let t=p(e);if("string"==typeof t){let i=this.#o.get(t);if(i)if(i.length>1){let t=i.indexOf(e);-1!==t&&i.splice(t,1)}else i[0]===e&&this.#o.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){let t=p(e);if("string"!=typeof t)return!0;{let i=this.#o.get(t),n=i?.find(e=>"pending"===e.state.status);return!n||n===e}}runNext(e){let t=p(e);if("string"!=typeof t)return Promise.resolve();{let i=this.#o.get(t)?.find(t=>
1t!==e&&t.state.isPaused);return i?.continue()??Promise.resolve()}}clear(){s.notifyManager.batch(()=>{this.#s.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#s.clear(),this.#o.clear()})}getAll(){return Array.from(this.#s)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,a.matchMutation)(t,e))}findAll(e={}){return this.getAll().filter(t=>(0,a.matchMutation)(e,t))}notify(e){s.notifyManager.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return s.notifyManager.batch(()=>Promise.all(e.map(e=>e.continue().catch(a.noop))))}};function p(e){return e.options.scope?.id}var m=e.i(75555),g=e.i(14448),y=e.i(92571),w=class{#c;#n;#u;#d;#h;#f;#p;#m;constructor(e={}){this.#c=e.queryCache||new l,this.#n=e.mutationCache||new f,this.#u=e.defaultOptions||{},this.#d=new Map,this.#h=new Map,this.#f=0}mount(){this.#f++,1===this.#f&&(this.#p=m.focusManager.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#c.onFocus())}),this.#m=g.onlineManager.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#c.onOnline())}))}unmount(){this.#f--,0===this.#f&&(this.#p?.(),this.#p=void 0,this.#m?.(),this.#m=void 0)}isFetching(e){return this.#c.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#n.findAll({...e,status:"pending"}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#c.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),i=this.#c.build(this,t),n=i.state.data;return void 0===n?this.fetchQuery(e):(e.revalidateIfStale&&i.isStaleByTime((0,a.resolveStaleTime)(t.staleTime,i))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return this.#c.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,i){let n=this.defaultQueryOptions({queryKey:e}),r=this.#c.get(n.queryHash),s=r?.state.data,o=(0,a.functionalUpdate)(t,s);if(void 0!==o)return this.#c.build(this,n).setData(o,{...i,manual:!0})}setQueriesData(e,t,i){return s.notifyManager.batch(()=>this.#c.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,i)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#c.get(t.queryHash)?.state}removeQueries(e){let t=this.#c;s.notifyManager.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let i=this.#c;return s.notifyManager.batch(()=>(i.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){let i={revert:!0,...t};return Promise.all(s.notifyManager.batch(()=>this.#c.findAll(e).map(e=>e.cancel(i)))).then(a.noop).catch(a.noop)}invalidateQueries(e,t={}){return s.notifyManager.batch(()=>(this.#c.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType==="none")?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t))}refetchQueries(e,t={}){let i={...t,cancelRefetch:t.cancelRefetch??!0};return Promise.all(s.notifyManager.batch(()=>this.#c.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,i);return i.throwOnError||(t=t.catch(a.noop)),"paused"===e.state.fetchStatus?Promise.resolve():t}))).then(a.noop)}fetchQuery(e){let t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);let i=this.#c.build(this,t);return i.isStaleByTime((0,a.resolveStaleTime)(t.staleTime,i))?i.fetch(t):Promise.resolve(i.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(a.noop).catch(a.noop)}fetchInfiniteQuery(e){return e.behavior=(0,y.infiniteQueryBehavior)(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(a.noop).catch(a.noop)}ensureInfiniteQueryData(e){return e.behavior=(0,y.infiniteQueryBehavior)(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return g.onlineManager.isOnline()?this.#n.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#c}getMutationCache(){return this.#n}getDefaultOptions(){return this.#u}setDefaultOptions(e){this.#u=e}setQueryDefaults(e,t){this.#d.set((0,a.hashKey)(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#d.values()],i={};return t.forEach(t=>{(0,a.partialMatchKey)(e,t.queryKey)&&Object.assign(i,t.defaultOptions)}),i}setMutationDefaults(e,t){this.#h.set((0,a.hashKey)(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#h.values()],i={};return t.forEach(t=>{(0,a.partialMatchKey)(e,t.mutationKey)&&Object.assign(i,t.defaultOptions)}),i}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#u.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=(0,a.hashQueryKeyByOptions)(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===a.skipToken&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#u.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#c.clear(),this.#n.clear()}},b=e.i(12598),v=e.i(18566),x=e.i(64628);function k(){let n=(0,v.usePathname)(),a=(0,i.useRef)(null);return(0,i.useEffect)(()=>{let t,i=!1,n=["pointerdown","keydown","scroll","touchstart"],a=async()=>
1{if(i)return;i=!0,r();let[{initializeFirebase:t},{trackVisitor:n}]=await Promise.all([e.A(91797),e.A(71710)]);t().catch(()=>{}),n().catch(()=>{})},r=()=>{n.forEach(e=>window.removeEventListener(e,a,{capture:!0})),void 0!==t&&clearTimeout(t)};return n.forEach(e=>window.addEventListener(e,a,{once:!0,passive:!0,capture:!0})),t=window.setTimeout(a,12e3),r},[]),(0,i.useEffect)(()=>{if(!n)return;let t=n&&"/"!==n?"/privacy"===n?"Privacy Policy":"/terms"===n?"Terms of Service":"/about"===n?"About Us":"/contact"===n?"Contact":"/api"===n?"API Documentation":"/ranking"===n?"Rankings":"/series"===n?"Series":n.startsWith("/news/")?`News: ${n.replace("/news/","")}`:n.startsWith("/live-score/")?`Match: ${n.replace("/live-score/","")}`:n.startsWith("/match/")?`Match: ${n.replace("/match/","")}`:n.startsWith("/series/")?`Series: ${n}`:n||"Home":"Home";t!==a.current&&(a.current=t,e.A(98632).then(({trackPageView:e,trackApiPageView:i})=>{e(t,n||"/"),"/api"===n&&i()}))},[n]),(0,t.jsx)(x.default,{})}function S(){let e=(0,v.useRouter)();return(0,i.useEffect)(()=>{let t=window.location.hash;if(!t)return;let i=null;if(t.startsWith("#/match/"))i=`/live-score/${t.replace("#/match/","")}`;else if(t.startsWith("#/news/"))i=`/news/${t.replace("#/news/","")}`;else if(t.startsWith("#/series/")){let e=t.match(/#\/series\/([^/]+)\/(fixtures|points|squads)/);if(e)i=`/series/${e[1]}/${e[2]}`;else{let e=t.match(/#\/series\/([^/]+)/);e&&(i=`/series/${e[1]}/fixtures`)}}else"#series"===t?i="/series":"#ranking"===t?i="/ranking":"#api"===t?i="/api":"#privacy"===t?i="/privacy":"#terms"===t?i="/terms":"#about"===t?i="/about":"#contact"===t?i="/contact":("#live"===t||"#/"===t||""===t)&&(i="/");i&&(window.history.replaceState({},"",i),e.replace(i))},[e]),null}var A=e.i(66027),C=e.i(37727),E=e.i(25516),I=e.i(86017),P=e.i(47905);let T="crickcore_ad_navigation_clicks",N="crickcore_ad_interstitial_pending",D="crickcore_ad_landing_shown";function j({children:e}){let n=(0,v.usePathname)()||"/",[a,r]=(0,i.useState)(!1),[s,o]=(0,i.useState)(!1),{data:l=[]}=(0,A.useQuery)({queryKey:["managed-ads"],queryFn:E.getActiveAds,staleTime:6e5,gcTime:18e5,refetchInterval:6e5,refetchIntervalInBackground:!1,refetchOnWindowFocus:!0,retry:1}),c=(0,i.useMemo)(()=>{if(0===l.length)return{lead:null,secondary:null,inline:null,left:null,right:null,interstitial:null};let e=function(e){let t=0;for(let i=0;i<e.length;i+=1)t=31*t+e.charCodeAt(i)>>>0;return t}(n);return{lead:l[e%l.length],secondary:l[(e+1)%l.length],inline:l[(e+2)%l.length],left:l[(e+3)%l.length],right:l[(e+4)%l.length],interstitial:l[(e+5)%l.length]}},[l,n]);return(0,i.useEffect)(()=>{let e=e=>{let t;if(e.defaultPrevented||0!==e.button||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey)return;let i=e.target;if(!(i instanceof Element))return;let n=i.closest("a[href]");if(!(!n||n.closest('[data-managed-ad="true"]'))&&!n.download&&"_blank"!==n.target){try{t=new URL(n.href,window.location.href)}catch{return}if(t.origin===window.location.origin&&(t.pathname!==window.location.pathname||t.search!==window.location.search))try{let e=Number(sessionStorage.getItem(T)||"0"),t=Number.isFinite(e)?e+1:1;t>=3?(sessionStorage.setItem(T,"0"),sessionStorage.setItem(N,"true")):sessionStorage.setItem(T,String(t))}catch{}}};return document.addEventListener("click",e,!0),()=>{document.removeEventListener("click",e,!0)}},[]),(0,i.useEffect)(()=>{if(c.interstitial)try{let e="true"===sessionStorage.getItem(N),t="true"===sessionStorage.getItem(D);if(e){sessionStorage.removeItem(N),window.setTimeout(()=>r(!0),0);return}t||(sessionStorage.setItem(D,"true"),window.setTimeout(()=>r(!0),0))}catch{}},[n,c.interstitial]),(0,i.useEffect)(()=>{if(!a)return void o(!1);let e=document.body.style.overflow;document.body.style.overflow="hidden";let t=window.setTimeout(()=>o(!0),4e3);return()=>{window.clearTimeout(t),document.body.style.overflow=e}},[a]),(0,i.useEffect)(()=>{if(!a||!s)return;let e=e=>{"Escape"===e.key&&r(!1)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[a,s]),(0,t.jsxs)(P.ManagedLeadAdContext.Provider,{value:{lead:c.lead,secondary:c.secondary},children:[e,c.inline&&(0,t.jsx)("aside",{className:"mx-auto my-8 w-full max-w-[1400px] px-3 sm:px-4 min-[1800px]:hidden","aria-label":"Sponsored advertisement",children:(0,t.jsx)(I.default,{ad:c.inline})}),c.left&&(0,t.jsx)("aside",{className:"fixed left-4 top-24 z-20 hidden w-60 min-[1800px]:block","aria-label":"Sponsored advertisement",children:(0,t.jsx)(I.default,{ad:c.left,variant:"rail"})}),c.right&&(0,t.jsx)("aside",{className:"fixed right-4 top-24 z-20 hidden w-60 min-[1800px]:block","aria-label":"Sponsored advertisement",children:(0,t.jsx)(I.default,{ad:c.right,variant:"rail"})}),a&&c.interstitial&&(0,t.jsx)("div",{className:"fixed inset-0 z-[100] flex items-center justify-center bg-black/70 p-3 backdrop-blur-sm sm:p-6",role:"dialog","aria-modal":"true","aria-label":"Sponsored advertisement",onMouseDown:e=>{s&&e.target===e.currentTarget&&r(!1)},children:(0,t.jsxs)("div",{className:"relative max-h-[92dvh] w-full max-w-lg overflow-y-auto rounded-2xl bg-card shadow-2xl",children:[s&&(0,t.jsx)("button",{type:"button",onClick:()=>r(!1),className:"absolute right-3 top-3 z-10 flex size-10 items-center justify-center rounded-full bg-black/65 text-white shadow-lg transition hover:bg-black focus:outline-none focus-visible:ring-2 focus-visible:ring-white","aria-label":"Close advertisement",children:(0,t.jsx)(C.X,{size:20,"aria-hidden":"true"})}),(0,t.jsx)(I.default,{ad:c.interstitial,variant:"interstitial"})]})})]})}let _=(0,n.default)(()=>e.A(93860),{loadableGenerated:{modules:[10042]}}),M=(0,n.default)(()=>e.A(11903),{loadableGenerated:{modules:[65387]}}),O=(0,n.default)(()=>e.A(55161),{loadableGenerated:{modules:[2172]},ssr:!1});e.s(["Providers",0,function({children:e}){let[n]=(0,i.useState)(()=>new w({defaultOptions:{queries:{staleTime:3e5,gcTime:6e5,refetchOnWindowFocus:!1,refetchOnMount:!0,retry:1}}}));return(0,t.jsxs)(b.QueryClientProvider,{client:n,children:[(0,t.jsx)(S,{}),(0,t.jsx)(j,{children:e}),(0,t.jsx)(_,{}),(0,t.jsx)(M,{}),(0,t.jsx)(O,{}),(0,t.jsx)(k,{})]})}],30824)},26930,e=>{"use strict";var t=e.i(43476),i=e.i(71645),n=e.i(57688),a=e.i(37727),r=e.i(72520),s=e.i(8403),o=e.i(82780),l=e.i(64628);function c({size:e}){let i="sm"===e?40:48,a="sm"===e?"rounded-[10px]":"rounded-xl";return(0,t.jsxs)("div",{className:`relative flex-shrink-0 animate-promo-icon-float ${"sm"===e?"h-10 w-10":"h-12 w-12"}`,children:[(0,t.jsx)("div",{className:`absolute -inset-1.5 ${a} bg-emerald-400/20 blur-md animate-promo-icon-glow`,"aria-hidden":!0}),(0,t.jsx)("div",{className:`relative h-full w-full overflow-hidden ${a} shadow-[0_4px_16px_rgba(16,185,129,0.18)] ring-1 ring-black/[0.08]`,children:(0,t.jsx)(n.default,{src:s.APP_ICON_URL,alt:`${s.APP_NAME} app icon`,width:i,height:i,sizes:`${i}px`,className:"h-full w-full object-cover"})})]})}e.s(["default",0,function(){let{dismissed:e,hydrated:n,dismiss:u}=function(e,t=14){let[n,a]=(0,i.useState)(!0),[r,s]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{try{let i=localStorage.getItem(e);if(i){let e=parseInt(i,10);if(isNaN(e))a(!1);else{let i=24*t*36e5;a(Date.now()-e<i)}}else a(!1)}catch{a(!1)}finally{s(!0)}},[e,t]),{dismissed:n,hydrated:r,dismiss:(0,i.useCallback)(()=>{try{localStorage.setItem(e,Date.now().toString())}catch{}a(!0)},[e])}}("appPromoDismissed",14),[d,h]=(0,i.useState)(!1),[f,p]=(0,i.useState)(!1),[m]=(0,i.useState)(()=>{try{let e="u">typeof navigator&&navigator.userAgent||"";return e.includes(s.APP_PACKAGE)||e.toLowerCase().includes("crickcoreapp")}catch{return!1}});return((0,i.useEffect)(()=>{let e=setTimeout(()=>h(!0),8e3),t=e=>p(!!e.detail);return window.addEventListener(l.NOTIF_BANNER_EVENT,t),()=>{clearTimeout(e),window.removeEventListener(l.NOTIF_BANNER_EVENT,t)}},[]),!n||e||!d||m||f)?null:(0,t.jsxs)("div",{role:"region","aria-label":`Get ${s.APP_NAME} on Android`,className:" animate-promo-banner-in fixed z-[60] bottom-20 md:bottom-6 left-3 right-3 md:left-auto md:right-6 md:max-w-sm overflow-hidden rounded-2xl bg-white shadow-[0_16px_48px_-8px_rgba(0,0,0,0.18)] ring-1 ring-black/[0.06] ",children:[(0,t.jsx)("div",{className:"promo-hero-rays-light pointer-events-none absolute inset-0 opacity-60","aria-hidden":!0}),(0,t.jsxs)("div",{className:"relative flex items-center gap-3 p-3 md:p-4",children:[(0,t.jsx)(c,{size:"md"}),(0,t.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,t.jsxs)("p",{className:"text-sm md:text-[15px] font-bold leading-tight truncate text-zinc-900",children:[s.APP_NAME," on Android"]}),(0,t.jsx)("p",{className:"text-[11px] md:text-xs text-zinc-500 leading-tight mt-0.5 hidden sm:block",children:"Faster scores. Push alerts."})]}),(0,t.jsxs)("a",{href:s.ANDROID_APP_URL,target:"_blank",rel:"noopener noreferrer",onClick:()=>(0,o.trackLinkClick)("app_promo_sticky",s.ANDROID_APP_URL),className:" promo-cta-shine-dark flex-shrink-0 inline-flex items-center gap-1 px-3 py-2 text-[11px] md:text-xs font-bold uppercase tracking-wider bg-pitch text-white rounded-lg shadow-[0_4px_14px_rgba(17,30,69,0.3)] hover:bg-pitch-dark transition-all duration-300 hover:scale-[1.02] active:scale-[0.98] whitespace-nowrap ",children:["Install",(0,t.jsx)(r.ArrowRight,{className:"w-3 h-3","aria-hidden":!0})]}),(0,t.jsx)("button",{type:"button",onClick:u,"aria-label":`Dismiss ${s.APP_NAME} app promo`,className:" flex-shrink-0 p-1.5 -m-1.5 text-zinc-400 hover:text-zinc-700 transition-colors ",children:(0,t.jsx)(a.X,{className:"w-4 h-4","aria-hidden":!0})})]})]})}],26930)},26636,e=>{"use strict";var t=e.i(71645),i=e.i(34927),n=e.i(31405);e.s(["default",0,function(){return(0,t.useEffect)(()=>
1{if(document.getElementById("adsbygoogle-loader"))return;let e=document.createElement("script");e.id="adsbygoogle-loader",e.async=!0,e.crossOrigin="anonymous",e.src=`https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=${i.ADSENSE_PUBLISHER_ID}`,e.onload=()=>{(0,n.logAdSense)("success","adsbygoogle.js loaded from Google",{publisherId:i.ADSENSE_PUBLISHER_ID,adsbygoogleReady:!!window.adsbygoogle})},e.onerror=()=>{(0,n.logAdSense)("error","Failed to load adsbygoogle.js",{publisherId:i.ADSENSE_PUBLISHER_ID,hint:"Check network, ad blocker, or CSP blocking pagead2.googlesyndication.com"})},document.head.appendChild(e)},[]),null}])},67231,e=>{"use strict";var t=e.i(71645),i=e.i(18566),n=e.i(31405);let a=[3e3,8e3,15e3];function r(e,t){let i=`${e} ${t??""}`.toLowerCase();return i.includes("adsbygoogle")||i.includes("no_div")}e.s(["default",0,function(){let e=(0,i.usePathname)();return(0,t.useEffect)(()=>{if(!n.ADSENSE_DEBUG)return;let t=(0,n.getAdSenseConfig)();(0,n.logAdSense)("info","Debug monitor started",{pathname:e,...t}),t.isLocalhost&&(0,n.logAdSense)("warn","Running on localhost â Google often does not serve real ads here. Test on crickcore.com."),"auto-only"===t.mode&&(0,n.logAdSense)("info","Auto ads only (no display slot). Google injects placements automatically.");let i=e=>{r(e.message,e.filename)&&(0,n.logAdSense)("error","Google AdSense runtime error",{message:e.message,source:e.filename,line:e.lineno,hint:e.message.includes("no_div")?"No ad container found when Google tried to place an ad.":"Check AdSense account, ad blockers, and page DOM."})},s=e=>{let t=String(e.reason??"");r(t)&&(0,n.logAdSense)("error","Google AdSense promise rejection",{reason:t})};window.addEventListener("error",i),window.addEventListener("unhandledrejection",s);let o=a.map(t=>window.setTimeout(()=>{let i=(0,n.inspectAdSenseDom)(),a=(0,n.summarizeAdState)(i),{level:r,text:s}={showing:{level:"success",text:`Ad(s) detected on page after ${t/1e3}s`},"no-containers":{level:"warn",text:`No ad containers yet after ${t/1e3}s â Auto ads may still be scanning or failed (no_div)`},"iframe-no-fill":{level:"warn",text:`Ad iframe present but empty after ${t/1e3}s â no fill from Google yet`},waiting:{level:"info",text:`Ad containers found, waiting for Google fill (${t/1e3}s)`}}[a];(0,n.logAdSense)(r,s,{pathname:e,scriptLoaded:!!window.adsbygoogle,...i})},t));return()=>{window.removeEventListener("error",i),window.removeEventListener("unhandledrejection",s),o.forEach(e=>window.clearTimeout(e))}},[e]),null}])}]);
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.