1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1652],{41652:(e,a,t)=>{t.d(a,{resolveBatchContracts:()=>E,setDemoMode:()=>r});let n=!1;function r(e){n=e}let i={h3Index:"8f2830828380b25",latitude:25.3176,longitude:82.9739,city:"Varanasi",region:"Uttar Pradesh",country:"India"},o=[{id:"temple-001",name:"Kashi Vishwanath",distance:.3,h3Index:"8f2830828380b25",type:"temple"},{id:"temple-002",name:"Durga Mandir",distance:1.2,h3Index:"8f2830828380b26",type:"temple"},{id:"temple-003",name:"Sankat Mochan",distance:2.8,h3Index:"8f2830828380b27",type:"temple"},{id:"sthaan-001",name:"Assi Ghat",distance:.5,h3Index:"8f2830828380b28",type:"sthaan"},{id:"vendor-001",name:"Prasad Wala",distance:.1,h3Index:"8f2830828380b25",type:"vendor"}],l={"sadhana:streak":{current:7,longest:14,lastPractice:"2026-04-14T06:00:00Z",totalMinutes:342},"sangha:feed":[{id:"msg-1",author:"Devotee Anshu",text:"Completed morning meditation \uD83E\uDDD8",timestamp:"2026-04-14T05:30:00Z",karma:42},{id:"msg-2",author:"Guru Prasad",text:"Full moon tonight â perfect for Sankalpa renewal",timestamp:"2026-04-14T14:00:00Z",karma:156},{id:"msg-3",author:"Sadhvi Radha",text:"100th consecutive day! \uD83D\uDE4F",timestamp:"2026-04-14T10:20:00Z",karma:200}],"sankalp:count":{total:1247,today:38,trend:"rising"}},s={"QmV2sS.../shloka_audio.mp3":"https://gateway.pinata.cloud/ipfs/QmV2sS.../shloka_audio.mp3","QmR4aT.../deity_model.glb":"https://gateway.pinata.cloud/ipfs/QmR4aT.../deity_model.glb","QmKx9p.../darshan_photo.jpg":"https://images.unsplash.com/photo-1561361513-2d000a50f0dc?w=400"},c={punya:{balance:1842,pending:150,earned:2400,spent:558},dhan:{balance:.05,currency:"ETH"},badges:[{id:"badge-001",name:"Early Devotee",rarity:"rare",imageUrl:null},{id:"badge-002",name:"Karma Pioneer",rarity:"common",imageUrl:null}]},d={date:"2026-04-14",tithi:"Shukla Paksha Dwitiya",nakshatra:"Rohini",yoga:"Shubha",karana:"Baalava",sunrise:"05:47",sunset:"18:32",rahuKaal:"15:00-16:30",isAuspicious:!0},u=[{date:"2026-04-16",tithi:"Panchami",reason:"Good for new beginnings"},{date:"2026-04-19",tithi:"Ashtami",reason:"Favorable for spiritual practices"},{date:"2026-04-23",tithi:"Dwadashi",reason:"Excellent for Sankalpa"}],h={best:"06:00-07:30",good:["09:00-10:30","14:00-15:30"],avoid:["15:00-16:30"]},p={saraswati:"Knowledge is the light that dispels the darkness of ignorance. In the Gita, Lord Krishna teaches that the wise see the same in all â the learned scholar, the gentle cow, the elephant, the dog, and the outcast. \uD83D\uDE4F",narad:"I see you're seeking a temple nearby. The Kashi Vishwanath temple is just 300 meters away â one of the holiest sites in Varanasi. Would you like me to guide you there?",chanakya:"Your vendor analytics show a 23% increase in foot traffic this week. The evening hours (17:00-19:00) are peak. Consider offering evening prasad specials."};function f(e){return"karmagrid"===e?{zones:[i],total:1}:"nearby:temples"===e?o.filter(e=>"temple"===e.type):"sthaans"===e?o.filter(e=>"sthaan"===e.type):e.startsWith("vendor:distance")?o.find(e=>"vendor"===e.type):i}function m(e){let a=e.replace("sadhana:","").replace("sangha:","").replace("sankalp:","");return l[`${e.split(":")[0]}:${a}`]??null}function g(e){return s[e]??`https://via.placeholder.com/400?text=${encodeURIComponent(e)}`}function y(e){return e.includes("panchang")?d:e.includes("auspicious")?u:e.includes("mahurat")?h:d}function w(e){return p[e.split("/")[1]??"saraswati"]??p.saraswati}async function b(e,a){if(n)return f(e);try{return console.warn(`[geo] No live backend for "${e}" â falling back to demo`),f(e)}catch{return f(e)}}async function v(e){return n||console.warn(`[sync] No live backend for "${e}" â falling back to demo`),m(e)}let k=["https://gateway.pinata.cloud/ipfs","https://cloudflare-ipfs.com/ipfs","https://ipfs.io/ipfs"];async function S(e){if(n)return g(e);for(let a of k)try{let t=await fetch(`${a}/${e}`,{signal:AbortSignal.timeout(5e3)});if(t.ok)return t}catch{}return console.warn(`[ipfs] All gateways failed for "${e}" â falling back to demo`),g(e)}let $="brahmand://";function I(e){if(!e.startsWith($))return{uri:e,resource:"",params:{},valid:!1,error:`URI must start with ${$}`};let[a,t]=e.slice($.length).split("?");if(!a)return{uri:e,resource:"",params:{},valid:!1,error:"Missing resource path"};let n={};
1return t&&t.split("&").forEach(e=>{let[a,t]=e.split("=");a&&(n[decodeURIComponent(a)]=decodeURIComponent(t??""))}),{uri:e,resource:a,params:n,valid:!0}}let T=null;async function x(e){if(n)return e.includes("punya")?c.punya:e.includes("dhan")?c.dhan:e.includes("badges")?c.badges:c;let a=I(e);if(!a.valid)return console.warn(`[brahmand] Invalid URI: "${e}" â ${a.error}`),{error:a.error??"Invalid brahmand:// URI",status:"invalid"};let t=function(){if(!T){var e;e={freshnessTtl:3e4,allowStaleFallback:!0,stargateClient:{getBalance:async(e,a)=>({data:null,isLive:!1,fetchedAt:new Date().toISOString(),isStale:!0,status:"unavailable"}),getAllBalances:async e=>({data:null,isLive:!1,fetchedAt:new Date().toISOString(),isStale:!0,status:"unavailable"}),isAvailable:async()=>!1}},T={parse:I,async resolve(a){let t=I(a);return t.valid?await e.stargateClient.isAvailable()?{data:null,fetchedAt:new Date().toISOString(),status:"unavailable",isStale:!0,message:`brahmand:// resolution for "${t.resource}" is not yet implemented (V2 roadmap)`}:{data:null,fetchedAt:new Date().toISOString(),status:e.allowStaleFallback?"stale":"unavailable",isStale:!0,message:e.allowStaleFallback?"Chain unavailable â showing cached data":"Chain unavailable â data cannot be displayed"}:{data:null,fetchedAt:new Date().toISOString(),status:"unavailable",isStale:!0,message:t.error??"Invalid brahmand:// URI"}}}}return T}(),r=await t.resolve(e);return"unavailable"===r.status&&console.warn(`[brahmand] Chain unavailable for "${e}" â ${r.message}`),r}async function A(e){return n||console.warn(`[kaal] No live backend for "${e}" â falling back to demo`),y(e)}async function C(e){return n||console.warn(`[par] No live backend for "${e}" â falling back to demo`),w(e)}let D=new Map;function P(e){return`${e.protocol}:${e.identifier}`}let R={geo:(e,a)=>b(e,a?.deha),sync:e=>v(e),ipfs:e=>S(e),brahmand:e=>x(e),kaal:e=>A(e),par:e=>C(e)};async function U(e,a,t){let n,r=t?.timeout??8e3,i=t?.retries??1;if(!t?.forceFresh){let a=function(e){if("none"===e.cachePolicy)return;let a=P(e),t=D.get(a);if(t)return Date.now()>t.expires?void D.delete(a):t.value}(e);if(void 0!==a)return a}let o=R[e.protocol.replace("://","").replace(":","")];if(!o){if(console.warn(`[data-resolver] Unknown protocol "${e.protocol}"`),e.required)throw Error(`No resolver for required protocol: ${e.protocol}`);return}for(let t=0;t<=i;t++)try{let t=await function(e,a){return new Promise((t,n)=>{let r=setTimeout(()=>n(Error(`Timeout after ${a}ms`)),a);e.then(e=>{clearTimeout(r),t(e)},e=>{clearTimeout(r),n(e)})})}(o(e.identifier,a),r);return!function(e,a){if("none"===e.cachePolicy)return;let t=P(e),n="persistent"===e.cachePolicy?864e5:9e5;D.set(t,{value:a,expires:Date.now()+n})}(e,t),t}catch(e){n=e,t<i&&await new Promise(e=>setTimeout(e,500*(t+1)))}if(e.required)throw Error(`Required data contract failed [${e.protocol}:${e.identifier}]: ${n?.message??"unknown error"}`);console.warn(`[data-resolver] Optional contract failed: ${e.protocol}:${e.identifier}`)}async function E(e,a){let t={};return await Promise.allSettled(e.map(async e=>{try{t[e.propKey]=await U(e,a)}catch{}})),t}}}]);
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.