export const encoder = new ( class { decode ( value ) { value = value . replace ( "00" , "=" ) . replace ( "00" , "=" ) ; var text = atob ( value ) ; return text ; } encode ( value ) { let text = btoa ( value ) . replace ( "=" , "00" ) . replace ( "=" , "00" ) ; return text ; } } ) ( ) ;