1import{r as e}from"./rolldown-runtime-DAXXjFlN.js";import{i as t,t as n}from"./getJsEnvironment-Dgx4vb26.js";import{L as r,R as i,b as a,g as o,v as s,w as c}from"./debug-MPanfdcw.js";var l=({value:e,options:t={objectDepth:2}})=>{try{return structuredClone(e)}catch{}let n=+t.objectDepth||0;if(Array.isArray(e))return n<=0?[]:e.map(e=>l({value:e,options:{objectDepth:n-1}}));if(typeof e==`object`)return n<=0?{}:Object.keys(e).reduce((t,r)=>{let i=l({value:e[r],options:{objectDepth:n-1}});return i===void 0?t:{...t,[r]:i}},{})},u=`livestream-send-gift`,d={[u]:[s.namespace,o.namespace,c.namespace,a.namespace]},f=e({Severity:()=>M,endSentryLogCapture:()=>K,getSentry:()=>j,getSentry2Scope:()=>N,initSentry:()=>k,replaceStringsToAvoidDataScrubbing:()=>P,sentryLogger:()=>B,setLogMetaLoader:()=>x,setSentryLoader:()=>b,setSentryRelease:()=>y,setSessionId:()=>E,startSentryLogCapture:()=>G,updateSentryConfig:()=>A,updateSentryLogCaptureConfig:()=>W,updateSentryLogConfig:()=>T}),p=null,m=null,h=null,g=null,_=null,v=null,y=e=>{v=e},b=e=>{g=e},x=e=>{_=e},S={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},C=!0,w=S.info??S.info,T=({isEnabled:e,level:t}={})=>{e!=null&&(C=!!e),t!=null&&S[t]!=null&&(w=S[t])};t()&&(p=self._SENTRY_INSTANCE_);var E=({sessionId:e})=>{h=e,p&&p.setTag(`session_id`,h),m&&m.setTag(`session_id`,h)},D={environment:`default`,level:`error`,sampleRate:0,tracesSampleRate:0,ignoreErrors:[/QuotaExceededError/,/Connection to Indexed Database server lost/i,/No available storage method found/i,/Invalid target for t#trigger; must be a DOM node or evented object/i,/Non-Error promise rejection captured with keys: error/i,/UnknownError: Attempt to iterate a cursor that doesn't exist/i,/AbortError: The transaction was aborted, so the request cannot be fulfilled/i,/Unable to create or initialize key session/i,/Failed to execute/i,/Key system configuration is not supported/i,/No compatible source was found for this media/i,/KeySystem or Minimum API level not met for Widevine EME/i,/The media could not be loaded, either because the server or network failed or because the format is not supported/i,/TypeError: Load failed/i,/TypeError: Failed to fetch/i,/post to pubsub error/i,/top.GLOBALS/i,/originalCreateNotification/i,/canvas.contentDocument/i,/fb_xd_fragment/i,/bmi_SafeAddOnload/i,/EBCallBackMessageReceived/i,/conduitPage/i,/vivo_checkMediaPausedReason is not defined/i,/<script> failed to load/i,/Object captured as promise rejection with keys: error/i,/VIDEOJS CODE/i,/SHAKA-PLAYER CODE/i,/Object captured as exception with keys: code, data, message/i,/null is not an object/i,/AbortError: The play/i,/null is not an object (evaluating \/this.player_.getChild\/)/i,/The media playback was aborted due to a corruption problem or because the media used features your browser did not support/i,/Cannot read properties/i,/The request is not allowed by the user agent/i,/play() failed because the user didn\/t interact with the document first/i,/AbortError: The operation was aborted/i,/e\.player_ is null/i,/NotAllowedError: play/i,/pusher batch response is not ok/i,/service worker fallback to main thread/i,/Uncaught Error: Minified React error/i,/Unknown root exit status/i,/Hydration (failed|mismatch)/i,/Text content does not match server-rendered HTML/i,/Expected server HTML to contain a matching/i,/The server could not finish this Suspense boundary/i,/This Suspense boundary received an update before it finished hydrating/i,/There was an error while hydrating/i,/This root received an early update, before anything was able hydrate/i,/The current renderer does not support hydration/i,/Prop .* did not match\. Server: .* Client:/i,/turnstile/i,/"status":403|"status":5/i,/leaker change style/i,/Messaging: This browser doesn't support/i,/undefined is not an object \(evaluating 'r\[0\]\["@context"\]'\)/i,/undefined is not an object \(evaluating 'r\["@context"\].toLowerCase'\)/i,/UnknownError: Attempt to .* database without an in-progress transaction/i,/InvalidStateError: The object is in an invalid state/,/leaker tired to do somethings/i],denyUrls:[/graph\.facebook\.com/i,/connect\.facebook\.net\/en_US\/all\.js/i,/extensions\//i,/^chrome:\/\//i]},O=()=>typeof window>`u`?!1:new URLSearchParams(location.search).get(`debug-sentry`)===`1`,k=async({sentryConfig:e={}}={})=>
1{if(!p)if(t())p=self._SENTRY_INSTANCE_;else{if(!g)return null;p=await g()}let{init:n,BrowserClient:r,defaultStackParser:i,getDefaultIntegrations:a,makeFetchTransport:o,Scope:s,isInitialized:c,browserTracingIntegration:l}=p;if(c())return p;n({debug:O(),integrations:[...a(),l({instrumentPageLoad:!1,instrumentNavigation:!1,markBackgroundSpan:!1,enableInp:!1})],...D,release:v??void 0,...e,dsn:e.primaryDsn||`https://[email protected]/1273292`,enableLogs:!0,beforeSendLog(e){if(!C)return null;let t=e.attributes?.[`logInfo.namespace`]!=null,n=(S[e.level]??0)<w;return!t&&n?null:e},beforeSendTransaction(e){return e?.contexts?.trace?.data?.cancelled?null:e}});let u=new r({transport:o,stackParser:i,integrations:a().filter(e=>![`BrowserApiErrors`,`Breadcrumbs`,`GlobalHandlers`].includes(e.name)),...D,release:v??void 0,...e,dsn:e.secondaryDsn||`https://[email protected]/4504162520137728`,sampleRate:1,beforeSend(e){return e.tags.bug_report?e:null}}),d=new s;return d.setClient(u),u.init(),m=d,h&&(p?.setTag(`session_id`,h),m?.setTag(`session_id`,h)),p},A=async({sentryConfig:e})=>{let t=await j();t.setLevel?.(e.level),t.setTag?.(`environment`,e.environment)},j=async()=>t()?p||self._SENTRY_INSTANCE_:p||k(),M={Fatal:`fatal`,Error:`error`,Warning:`warning`,Log:`log`,Info:`info`,Debug:`debug`},N=()=>m,P=(e=``)=>[[`credentials`,`credentia1s`],[`password`,`passw0rd`],[`register`,`reg1ster`],[`private`,`pr1vate`],[`api_key`,`ap1_key`],[`config`,`c0nfig`],[`login`,`l0gin`],[`token`,`t0ke
1n`],[`auth`,`avth`]].reduce((e,[t,n])=>{let r=new RegExp(t,`gi`);return e.replace(r,n)},e),F=[`trace`,`debug`,`info`,`warn`,`error`,`fatal`],I=e=>{if(!e||typeof e!=`object`)return{};let t={};for(let[n,r]of Object.entries(e))if(r!=null){if(typeof r==`number`||typeof r==`boolean`){t[n]=r;continue}if(typeof r==`object`){try{t[n]=P(JSON.stringify(r))}catch{t[n]=`[Unserializable]`}continue}t[n]=P(String(r))}return t},L=async()=>t()?(p||globalThis.self?._SENTRY_INSTANCE_)?.logger:g?(await g())?.logger:null,R=async()=>{if(!n()||!_)return{};try{return await _()}catch{return{}}},z=e=>(t,n)=>{Promise.all([L(),R()]).then(([r,i])=>{if(r&&typeof r[e]==`function`){let a=I({...i,...n});r[e](t,a)}}).catch(()=>{})},B={};F.forEach(e=>{B[e]=z(e)});var V=`livestream-send-gift`,H=3e4,U=new Map,W=({allowedCaptureNames:e,timeoutMsec:t}={})=>{V=e||[],t!=null&&(H=t);for(let[e]of U)V.includes(e)||K({captureName:e})},G=({captureName:e,attributes:t,options:n={}}={})=>{if(typeof window>`u`||!V.includes(e))return null;let{timeoutMs:r=H}=n,i=U.get(e);if(i)return clearTimeout(i.timeoutId),i.timeoutId=setTimeout(()=>{K({captureName:e})},r),i.captureId;let a=`${e}-${Date.now()}`,o=setTimeout(()=>{K({captureName:e})},r);return U.set(e,{captureId:a,startTime:Date.now(),timeoutId:o,attributes:t||{}}),a},K=({captureName:e}={})=>{let t=U.get(e);t&&(clearTimeout(t.timeoutId),U.delete(e))},q=[],J=[],Y=e=>{let t=e.split(/[\s,]+/).filter(Boolean);for(let e of t)e[0]===`-`?J.push(RegExp(`^`+e.slice(1).replace(/\*/g,`.*?`)+`$`)):q.push(RegExp(`^`+e.replace(/\*/g,`.*?`)+`$`))},X=()=>{q.length=0,J.length=0},Z=e=>!J.some(t=>t.test(e))&&q.some(t=>t.test(e)),Q=()=>{let e=globalThis.navigator;if(n()){let e=globalThis.window?.location?.href;return{"logInfo.runtime":`browser`,...e?{"logInfo.href":e}:{}}}if(t()){let t=globalThis.location?.href,n=globalThis.registration?.scope;return{"logInfo.runtime":`service-worker`,...t?{"logInfo.workerHref":t}:{},...n?{"logInfo.serviceWorkerScope":n}:{},...e?.userAgent?{"metadata.user_agent":e.userAgent}:{},...e?.language?{"metadata.language":e.language}:{}}}return{"logInfo.runtime":`unknown`}},ee=e=>Array.from(U.entries()).filter(([t])=>(d[t]||[]).some(t=>e===t||e.startsWith(`${t}:`))),$=(e,t)=>{let n=e.includes(`:error:`)||e.endsWith(`:error`),r=ee(e),i=r.length>0;if(!Z(e)&&!i)return;let a=n?`error`:i?`info`:`debug`,o=typeof t[0]==`string`?t[0]:String(t[0]),s={"logInfo.namespace":e,...Q(),textKey:o,content:o};if(t.length>2){let e=t.slice(1,-1).filter(e=>typeof e==`string`);e.length>0&&(s[`logInfo.details`]=e.join(` `))}let c=t.length>1?t[t.length-1]:void 0;if(c instanceof Error)s[`logInfo.errorName`]=c.name,s[`logInfo.errorMessage`]=c.message;else if(typeof c==`object`&&c)try{let e=l({value:c});s.attachedMessage=JSON.stringify({...e,message:o})}catch{s.attachedMessage=`[Unserializable]`}if(i)for(let[e,t]of r)s[`captureName.${e}`]=!0,s[`captureId.${e}`]=t.captureId;B[a](o,s)};if((n()||t())&&r($),globalThis.enableSentryDebug=e=>{X(),Y(e);try{sessionStorage.setItem(`sentryDebug`,e)}catch{}},globalThis.disableSentryDebug=()=>{X();try{sessionStorage.removeItem(`sentryDebug`)}catch{}i($)},typeof window<`u`)try{let e=new URL(location.href).searchParams.get(`sentryDebug`),t=sessionStorage.getItem(`sentryDebug`);e?(Y(e),sessionStorage.setItem(`sentryDebug`,e)):t&&Y(t)}catch{}export{l as _,k as a,f as c,y as d,E as f,u as g,T as h,N as i,x as l,W as m,K as n,P as o,G as p,j as r,B as s,M as t,b as u};
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.