()
| 110 | } |
| 111 | } |
| 112 | let w = () => { |
| 113 | throw new Error('Unsupported environment: `window.btoa` or `Buffer` should be supported.'); |
| 114 | }; |
| 115 | typeof window < 'u' && typeof window.btoa == 'function' |
| 116 | ? (w = (l) => window.btoa(unescape(encodeURIComponent(l)))) |
| 117 | : typeof Buffer == 'function' && (w = (l) => Buffer.from(l, 'utf-8').toString('base64')); |