@aws-amplify/geo 1.3.19-custom-pk.1 → 1.3.19-unstable.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -253,12 +253,8 @@ __webpack_require__.r(__webpack_exports__);
253
253
  /* harmony import */ var _whatwgEncodingApi__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./whatwgEncodingApi */ "../../node_modules/@aws-crypto/util/node_modules/@aws-sdk/util-utf8-browser/dist-es/whatwgEncodingApi.js");
254
254
 
255
255
 
256
- var fromUtf8 = function (input) {
257
- return typeof TextEncoder === "function" ? Object(_whatwgEncodingApi__WEBPACK_IMPORTED_MODULE_1__["fromUtf8"])(input) : Object(_pureJs__WEBPACK_IMPORTED_MODULE_0__["fromUtf8"])(input);
258
- };
259
- var toUtf8 = function (input) {
260
- return typeof TextDecoder === "function" ? Object(_whatwgEncodingApi__WEBPACK_IMPORTED_MODULE_1__["toUtf8"])(input) : Object(_pureJs__WEBPACK_IMPORTED_MODULE_0__["toUtf8"])(input);
261
- };
256
+ const fromUtf8 = (input) => typeof TextEncoder === "function" ? Object(_whatwgEncodingApi__WEBPACK_IMPORTED_MODULE_1__["fromUtf8"])(input) : Object(_pureJs__WEBPACK_IMPORTED_MODULE_0__["fromUtf8"])(input);
257
+ const toUtf8 = (input) => typeof TextDecoder === "function" ? Object(_whatwgEncodingApi__WEBPACK_IMPORTED_MODULE_1__["toUtf8"])(input) : Object(_pureJs__WEBPACK_IMPORTED_MODULE_0__["toUtf8"])(input);
262
258
 
263
259
 
264
260
  /***/ }),
@@ -274,44 +270,44 @@ var toUtf8 = function (input) {
274
270
  __webpack_require__.r(__webpack_exports__);
275
271
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fromUtf8", function() { return fromUtf8; });
276
272
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toUtf8", function() { return toUtf8; });
277
- var fromUtf8 = function (input) {
278
- var bytes = [];
279
- for (var i = 0, len = input.length; i < len; i++) {
280
- var value = input.charCodeAt(i);
273
+ const fromUtf8 = (input) => {
274
+ const bytes = [];
275
+ for (let i = 0, len = input.length; i < len; i++) {
276
+ const value = input.charCodeAt(i);
281
277
  if (value < 0x80) {
282
278
  bytes.push(value);
283
279
  }
284
280
  else if (value < 0x800) {
285
- bytes.push((value >> 6) | 192, (value & 63) | 128);
281
+ bytes.push((value >> 6) | 0b11000000, (value & 0b111111) | 0b10000000);
286
282
  }
287
283
  else if (i + 1 < input.length && (value & 0xfc00) === 0xd800 && (input.charCodeAt(i + 1) & 0xfc00) === 0xdc00) {
288
- var surrogatePair = 0x10000 + ((value & 1023) << 10) + (input.charCodeAt(++i) & 1023);
289
- bytes.push((surrogatePair >> 18) | 240, ((surrogatePair >> 12) & 63) | 128, ((surrogatePair >> 6) & 63) | 128, (surrogatePair & 63) | 128);
284
+ const surrogatePair = 0x10000 + ((value & 0b1111111111) << 10) + (input.charCodeAt(++i) & 0b1111111111);
285
+ bytes.push((surrogatePair >> 18) | 0b11110000, ((surrogatePair >> 12) & 0b111111) | 0b10000000, ((surrogatePair >> 6) & 0b111111) | 0b10000000, (surrogatePair & 0b111111) | 0b10000000);
290
286
  }
291
287
  else {
292
- bytes.push((value >> 12) | 224, ((value >> 6) & 63) | 128, (value & 63) | 128);
288
+ bytes.push((value >> 12) | 0b11100000, ((value >> 6) & 0b111111) | 0b10000000, (value & 0b111111) | 0b10000000);
293
289
  }
294
290
  }
295
291
  return Uint8Array.from(bytes);
296
292
  };
297
- var toUtf8 = function (input) {
298
- var decoded = "";
299
- for (var i = 0, len = input.length; i < len; i++) {
300
- var byte = input[i];
293
+ const toUtf8 = (input) => {
294
+ let decoded = "";
295
+ for (let i = 0, len = input.length; i < len; i++) {
296
+ const byte = input[i];
301
297
  if (byte < 0x80) {
302
298
  decoded += String.fromCharCode(byte);
303
299
  }
304
- else if (192 <= byte && byte < 224) {
305
- var nextByte = input[++i];
306
- decoded += String.fromCharCode(((byte & 31) << 6) | (nextByte & 63));
300
+ else if (0b11000000 <= byte && byte < 0b11100000) {
301
+ const nextByte = input[++i];
302
+ decoded += String.fromCharCode(((byte & 0b11111) << 6) | (nextByte & 0b111111));
307
303
  }
308
- else if (240 <= byte && byte < 365) {
309
- var surrogatePair = [byte, input[++i], input[++i], input[++i]];
310
- var encoded = "%" + surrogatePair.map(function (byteValue) { return byteValue.toString(16); }).join("%");
304
+ else if (0b11110000 <= byte && byte < 0b101101101) {
305
+ const surrogatePair = [byte, input[++i], input[++i], input[++i]];
306
+ const encoded = "%" + surrogatePair.map((byteValue) => byteValue.toString(16)).join("%");
311
307
  decoded += decodeURIComponent(encoded);
312
308
  }
313
309
  else {
314
- decoded += String.fromCharCode(((byte & 15) << 12) | ((input[++i] & 63) << 6) | (input[++i] & 63));
310
+ decoded += String.fromCharCode(((byte & 0b1111) << 12) | ((input[++i] & 0b111111) << 6) | (input[++i] & 0b111111));
315
311
  }
316
312
  }
317
313
  return decoded;
@@ -16810,12 +16806,8 @@ __webpack_require__.r(__webpack_exports__);
16810
16806
  /* harmony import */ var _whatwgEncodingApi__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./whatwgEncodingApi */ "../../node_modules/@aws-sdk/client-location/node_modules/@aws-crypto/sha256-browser/node_modules/@aws-sdk/util-utf8-browser/dist-es/whatwgEncodingApi.js");
16811
16807
 
16812
16808
 
16813
- var fromUtf8 = function (input) {
16814
- return typeof TextEncoder === "function" ? Object(_whatwgEncodingApi__WEBPACK_IMPORTED_MODULE_1__["fromUtf8"])(input) : Object(_pureJs__WEBPACK_IMPORTED_MODULE_0__["fromUtf8"])(input);
16815
- };
16816
- var toUtf8 = function (input) {
16817
- return typeof TextDecoder === "function" ? Object(_whatwgEncodingApi__WEBPACK_IMPORTED_MODULE_1__["toUtf8"])(input) : Object(_pureJs__WEBPACK_IMPORTED_MODULE_0__["toUtf8"])(input);
16818
- };
16809
+ const fromUtf8 = (input) => typeof TextEncoder === "function" ? Object(_whatwgEncodingApi__WEBPACK_IMPORTED_MODULE_1__["fromUtf8"])(input) : Object(_pureJs__WEBPACK_IMPORTED_MODULE_0__["fromUtf8"])(input);
16810
+ const toUtf8 = (input) => typeof TextDecoder === "function" ? Object(_whatwgEncodingApi__WEBPACK_IMPORTED_MODULE_1__["toUtf8"])(input) : Object(_pureJs__WEBPACK_IMPORTED_MODULE_0__["toUtf8"])(input);
16819
16811
 
16820
16812
 
16821
16813
  /***/ }),
@@ -16831,44 +16823,44 @@ var toUtf8 = function (input) {
16831
16823
  __webpack_require__.r(__webpack_exports__);
16832
16824
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fromUtf8", function() { return fromUtf8; });
16833
16825
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toUtf8", function() { return toUtf8; });
16834
- var fromUtf8 = function (input) {
16835
- var bytes = [];
16836
- for (var i = 0, len = input.length; i < len; i++) {
16837
- var value = input.charCodeAt(i);
16826
+ const fromUtf8 = (input) => {
16827
+ const bytes = [];
16828
+ for (let i = 0, len = input.length; i < len; i++) {
16829
+ const value = input.charCodeAt(i);
16838
16830
  if (value < 0x80) {
16839
16831
  bytes.push(value);
16840
16832
  }
16841
16833
  else if (value < 0x800) {
16842
- bytes.push((value >> 6) | 192, (value & 63) | 128);
16834
+ bytes.push((value >> 6) | 0b11000000, (value & 0b111111) | 0b10000000);
16843
16835
  }
16844
16836
  else if (i + 1 < input.length && (value & 0xfc00) === 0xd800 && (input.charCodeAt(i + 1) & 0xfc00) === 0xdc00) {
16845
- var surrogatePair = 0x10000 + ((value & 1023) << 10) + (input.charCodeAt(++i) & 1023);
16846
- bytes.push((surrogatePair >> 18) | 240, ((surrogatePair >> 12) & 63) | 128, ((surrogatePair >> 6) & 63) | 128, (surrogatePair & 63) | 128);
16837
+ const surrogatePair = 0x10000 + ((value & 0b1111111111) << 10) + (input.charCodeAt(++i) & 0b1111111111);
16838
+ bytes.push((surrogatePair >> 18) | 0b11110000, ((surrogatePair >> 12) & 0b111111) | 0b10000000, ((surrogatePair >> 6) & 0b111111) | 0b10000000, (surrogatePair & 0b111111) | 0b10000000);
16847
16839
  }
16848
16840
  else {
16849
- bytes.push((value >> 12) | 224, ((value >> 6) & 63) | 128, (value & 63) | 128);
16841
+ bytes.push((value >> 12) | 0b11100000, ((value >> 6) & 0b111111) | 0b10000000, (value & 0b111111) | 0b10000000);
16850
16842
  }
16851
16843
  }
16852
16844
  return Uint8Array.from(bytes);
16853
16845
  };
16854
- var toUtf8 = function (input) {
16855
- var decoded = "";
16856
- for (var i = 0, len = input.length; i < len; i++) {
16857
- var byte = input[i];
16846
+ const toUtf8 = (input) => {
16847
+ let decoded = "";
16848
+ for (let i = 0, len = input.length; i < len; i++) {
16849
+ const byte = input[i];
16858
16850
  if (byte < 0x80) {
16859
16851
  decoded += String.fromCharCode(byte);
16860
16852
  }
16861
- else if (192 <= byte && byte < 224) {
16862
- var nextByte = input[++i];
16863
- decoded += String.fromCharCode(((byte & 31) << 6) | (nextByte & 63));
16853
+ else if (0b11000000 <= byte && byte < 0b11100000) {
16854
+ const nextByte = input[++i];
16855
+ decoded += String.fromCharCode(((byte & 0b11111) << 6) | (nextByte & 0b111111));
16864
16856
  }
16865
- else if (240 <= byte && byte < 365) {
16866
- var surrogatePair = [byte, input[++i], input[++i], input[++i]];
16867
- var encoded = "%" + surrogatePair.map(function (byteValue) { return byteValue.toString(16); }).join("%");
16857
+ else if (0b11110000 <= byte && byte < 0b101101101) {
16858
+ const surrogatePair = [byte, input[++i], input[++i], input[++i]];
16859
+ const encoded = "%" + surrogatePair.map((byteValue) => byteValue.toString(16)).join("%");
16868
16860
  decoded += decodeURIComponent(encoded);
16869
16861
  }
16870
16862
  else {
16871
- decoded += String.fromCharCode(((byte & 15) << 12) | ((input[++i] & 63) << 6) | (input[++i] & 63));
16863
+ decoded += String.fromCharCode(((byte & 0b1111) << 12) | ((input[++i] & 0b111111) << 6) | (input[++i] & 0b111111));
16872
16864
  }
16873
16865
  }
16874
16866
  return decoded;
@@ -24289,7 +24281,7 @@ module.exports = JSON.parse("{\"name\":\"@aws-sdk/client-location\",\"descriptio
24289
24281
  "use strict";
24290
24282
  __webpack_require__.r(__webpack_exports__);
24291
24283
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "locateWindow", function() { return locateWindow; });
24292
- var fallbackWindow = {};
24284
+ const fallbackWindow = {};
24293
24285
  function locateWindow() {
24294
24286
  if (typeof window !== "undefined") {
24295
24287
  return window;