function bgBgCheck(tin) {
		  // Extract full year, normalize month and check birth date validity
		  var century_year = tin.slice(0, 2);
		  var month = parseInt(tin.slice(2, 4), 10);

		  if (month > 40) {
		    month -= 40;
		    century_year = "20".concat(century_year);
		  } else if (month > 20) {
		    month -= 20;
		    century_year = "18".concat(century_year);
		  } else {
		    century_year = "19".concat(century_year);
		  }

		  if (month < 10) {
		    month = "0".concat(month);
		  }

		  var date = "".concat(century_year, "/").concat(month, "/").concat(tin.slice(4, 6));

		  if (!(0, _isDate.default)(date, 'YYYY/MM/DD')) {
		    return false;
		  } // split digits into an array for further processing


		  var digits = tin.split('').map(function (a) {
		    return parseInt(a, 10);
		  }); // Calculate checksum by multiplying digits with fixed values

		  var multip_lookup = [2, 4, 8, 5, 10, 9, 7, 3, 6];
		  var checksum = 0;

		  for (var i = 0; i < multip_lookup.length; i++) {
		    checksum += digits[i] * multip_lookup[i];
		  }

		  checksum = checksum % 11 === 10 ? 0 : checksum % 11;
		  return checksum === digits[9];
		}
Transform an URL to a valid origin value.

@param {String|Object} url URL to transform to it's origin.
@returns {String} The origin.
@api private