export const attemptToURIDecode = ( value ) => { let result ; try { result = decodeURI ( value ) ; result = decodeURIComponent ( result ) ; } catch ( e1 ) { try { result = decodeURIComponent ( value ) ; } catch ( e2 ) { result = value ; } } return result ; } ;