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]=`aa22ba62-c25c-4c9f-ab9c-3d25fcefa417`,e._sentryDebugIdIdentifier=`sentry-dbid-aa22ba62-c25c-4c9f-ab9c-3d25fcefa417`)}catch{}import"./rolldown-runtime-eb2nym32.js";import"./entry.client-dr7r6s9a.js";var e=`wgt-private`;function t(t){i(t);let n=r(),o;try{return o=n.openFile(`${e}/${t}`,`r`),o.readString()}catch(e){if(a(e))return null;throw e}finally{if(o)try{o.close()}catch{}}}function n(t,n){i(t);let a=r(),o;try{o=a.openFile(`${e}/${t}`,`w`,!0),o.writeString(n)}finally{if(o)try{o.close()}catch{}}}function r(){if(globalThis.window===void 0||!globalThis.window.tizen?.filesystem)throw Error(`Tizen filesystem API not available`);return globalThis.window.tizen.filesystem}function i(e){if(e.includes(`/`)||e.includes(`\\`)||e.includes(`..`))throw Error(`Invalid storage key "${e}": must not contain path separators or ".."`)}function a(e){return typeof e==`object`&&!!e&&`name`in e&&e.name===`NotFoundError`}export{t as getNativeVariable,n as setNativeVariable};