_nt5.js 1.5 KB

123456
  1. // Licensed Materials - Property of IBM
  2. // IBM Cognos Products: irot
  3. // (C) Copyright IBM Corp. 2003, 2022.
  4. // US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  5. function _nt5(){if(!this._0q8){var o={};var _zg8=this._1q8.length;for(var i=0;i<_zg8;i++){o[this._1q8.charAt(i)]=i;}_nt5.prototype._0q8=o;}};_nt5.prototype._1q8="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+=/";_nt5.prototype._5o8=function(_tx8){var a=[];var _kw6=0;var _zg8=_tx8.length;for(var i=0;i<_zg8;i++){var _v08=_tx8.charCodeAt(i);var _w08=(++i<_zg8)?_tx8.charCodeAt(i):0;var _x08=(++i<_zg8)?_tx8.charCodeAt(i):0;var _xi7=_v08 >> 2;var _yi7=((_v08 & 3)<< 4)|(_w08 >> 4);var _zi7=((_w08 & 15)<< 2)|(_x08 >> 6);var _0j7=_x08 & 63;a.push(this._1q8.charAt(_xi7));a.push(this._1q8.charAt(_yi7));a.push(_w08?this._1q8.charAt(_zi7):"=");a.push(_x08?this._1q8.charAt(_0j7):"=");if(++_kw6==19){a.push("\r\n");_kw6=0;}}return a.join("");};_nt5.prototype._0o8=function(_tx8){var s=_tx8.replace(/[^A-Za-z0-9\+\/\=]/g, "");var a=[];var _zg8=s.length;for(var i=0;i<_zg8;i++){var _v08=this._0q8[s.charAt(i)];var _w08=(++i<_zg8)?this._0q8[s.charAt(i)]:0;var _x08=(++i<_zg8)?this._0q8[s.charAt(i)]:0;var _y08=(++i<_zg8)?this._0q8[s.charAt(i)]:0;a.push(String.fromCharCode((_v08 << 2)|(_w08 >> 4)));if(_x08!=63){a.push(String.fromCharCode(((_w08 & 15)<< 4)|(_x08 >> 2)));if(_y08!=63){a.push(String.fromCharCode(((_x08 & 3)<< 6)| _y08));}}}return a.join("");};