"use strict";(()=>{var e={};e.id=3873,e.ids=[3873],e.modules={20399:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},30517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},17702:e=>{e.exports=require("events")},84080:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>m,patchFetch:()=>h,requestAsyncStorage:()=>d,routeModule:()=>u,serverHooks:()=>v,staticGenerationAsyncStorage:()=>l});var n={};r.r(n),r.d(n,{GET:()=>c,dynamic:()=>p});var a=r(49303),s=r(88716),o=r(60670),i=r(14063);let p="force-dynamic";async function c(e){let t=new TransformStream,r=t.writable.getWriter(),n=new TextEncoder,a=async(e,t)=>{try{await r.write(n.encode(`event: ${e}
data: ${JSON.stringify(t)}

`))}catch(e){console.error("SSE send error",e)}},s=e=>{a("purchase_success",e)};i.T.on("purchase_success",s),e.signal.addEventListener("abort",()=>{i.T.off("purchase_success",s),r.close()});let o=setInterval(()=>{a("ping",{time:new Date().toISOString()})},15e3);return e.signal.addEventListener("abort",()=>{clearInterval(o)}),new Response(t.readable,{headers:{"Content-Type":"text/event-stream","Cache-Control":"no-cache, no-transform",Connection:"keep-alive"}})}let u=new a.AppRouteRouteModule({definition:{kind:s.x.APP_ROUTE,page:"/api/events/route",pathname:"/api/events",filename:"route",bundlePath:"app/api/events/route"},resolvedPagePath:"C:\\Users\\akmal\\OneDrive\\Documents\\AmaneNime Topup\\amanenime-topup\\app\\api\\events\\route.ts",nextConfigOutput:"standalone",userland:n}),{requestAsyncStorage:d,staticGenerationAsyncStorage:l,serverHooks:v}=u,m="/api/events/route";function h(){return(0,o.patchFetch)({serverHooks:v,staticGenerationAsyncStorage:l})}},14063:(e,t,r)=>{r.d(t,{T:()=>a});var n=r(17702);let a=global._eventEmitter||new n.EventEmitter;a.setMaxListeners(100)},49303:(e,t,r)=>{e.exports=r(30517)}};var t=require("../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),n=t.X(0,[8948],()=>r(84080));module.exports=n})();