import { readyPromise } from './bridge' ; import { persona } from './persona' ; import { SocialNetwork } from './socialNetwork' ; document . currentScript ?. remove ( ) ; readyPromise . then ( ( init ) => { const MaskSDK = { sdkVersion : 0 , credentials : { } as any , ethereum : { } as any , socialNetwork : new SocialNetwork ( init ) , persona , } ; try { if ( process . env . NODE_ENV === 'development' ) { MaskSDK . reload = ( ) => document . dispatchEvent ( new Event ( 'mask-sdk-reload' ) ) ; } } catch { } Reflect . set ( globalThis , 'Mask' , MaskSDK ) ; } ) ;