try{let e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`47bb96c2-aa49-48c2-97d6-eae8f1cd9b6e`,e._sentryDebugIdIdentifier=`sentry-dbid-47bb96c2-aa49-48c2-97d6-eae8f1cd9b6e`)}catch{}import{kd as e}from"./entry.client-dr7r6s9a.js";var t,n=async()=>{if(t)return t;for(let n of e)try{if(await new Promise((e,r)=>{window.webOS.service.request(n,{method:`ping`,onSuccess:()=>{t=n,e()},onFailure:e=>{r(e.errorText)}})}),t)return t}catch{}if(!t)throw Error(`No valid service URI found`);return t},r=class extends Error{constructor(e){super(e),this.name=`GetOSSNoticesError`}},i=async()=>{let e=await n();return new Promise((t,n)=>{try{window.webOS.service.request(e,{method:`getOSSNotices`,onSuccess:e=>{typeof e.notices==`string`?t(e.notices):n(new r(`getOSSNotices returned an invalid response`))},onFailure:e=>{n(new r(e.errorText))}})}catch(e){n(e instanceof Error?new r(e.message):new r(String(e)))}})};export{i as n,n as r,r as t};