🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@hyperfrontend/string-utils

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hyperfrontend/string-utils - npm Package Compare versions

Comparing version
0.0.2
to
0.0.3
+222
-7
browser/index.cjs.js
'use strict';
new TextEncoder();
const UTF8_DECODER = new TextDecoder('utf8');
/**
* Safe copies of encoding built-ins via factory functions.
*
* Provides safe references to TextEncoder, TextDecoder, atob, and btoa.
* These references are captured at module initialization time to protect against
* prototype pollution attacks. Import only what you need for tree-shaking.
*
* @module @hyperfrontend/immutable-api-utils/built-in-copy/encoding
*/
// Capture references at module initialization time
const _TextEncoder = globalThis.TextEncoder;
const _TextDecoder = globalThis.TextDecoder;
const _atob = globalThis.atob;
const _btoa = globalThis.btoa;
const _Reflect$1 = globalThis.Reflect;
/**
* (Safe copy) Creates a new TextEncoder using the captured TextEncoder constructor.
* Use this instead of `new TextEncoder()`.
*
* @returns A new TextEncoder instance.
*/
const createTextEncoder = () => _Reflect$1.construct(_TextEncoder, []);
/**
* (Safe copy) Creates a new TextDecoder using the captured TextDecoder constructor.
* Use this instead of `new TextDecoder()`.
*
* @param label - The encoding label (e.g., 'utf-8', 'utf-16'). Defaults to 'utf-8'.
* @param options - Optional TextDecoderOptions.
* @returns A new TextDecoder instance.
*/
const createTextDecoder = (label, options) => _Reflect$1.construct(_TextDecoder, [label, options]);
/**
* (Safe copy) Decodes a base64-encoded string.
* Use this instead of `atob()`.
*
* @param data - The base64-encoded string to decode.
* @returns The decoded string.
*/
const atob = (data) => _atob(data);
/**
* (Safe copy) Encodes a string to base64.
* Use this instead of `btoa()`.
*
* @param data - The string to encode.
* @returns The base64-encoded string.
*/
const btoa = (data) => _btoa(data);
/**
* Safe copies of TypedArray and ArrayBuffer built-ins via factory functions.
*
* Provides safe references to Uint8Array, Int8Array, ArrayBuffer, DataView, etc.
* These references are captured at module initialization time to protect against
* prototype pollution attacks. Import only what you need for tree-shaking.
*
* @module @hyperfrontend/immutable-api-utils/built-in-copy/typed-arrays
*/
// Capture references at module initialization time
const _ArrayBuffer = globalThis.ArrayBuffer;
const _SharedArrayBuffer = globalThis.SharedArrayBuffer;
const _Uint8Array = globalThis.Uint8Array;
const _Uint8ClampedArray = globalThis.Uint8ClampedArray;
const _Uint16Array = globalThis.Uint16Array;
const _Uint32Array = globalThis.Uint32Array;
const _Int8Array = globalThis.Int8Array;
const _Int16Array = globalThis.Int16Array;
const _Int32Array = globalThis.Int32Array;
const _Float32Array = globalThis.Float32Array;
const _Float64Array = globalThis.Float64Array;
const _BigInt64Array = globalThis.BigInt64Array;
const _BigUint64Array = globalThis.BigUint64Array;
const _Reflect = globalThis.Reflect;
function createUint8Array(arg, byteOffset, length) {
if (typeof arg === 'number') {
return _Reflect.construct(_Uint8Array, [arg]);
}
if (arg instanceof _ArrayBuffer || arg instanceof _SharedArrayBuffer) {
return _Reflect.construct(_Uint8Array, [arg, byteOffset, length]);
}
return _Reflect.construct(_Uint8Array, [arg]);
}
/**
* (Safe copy) Creates a new Uint8Array from an array-like or iterable object.
*/
_Uint8Array.from.bind(_Uint8Array);
/**
* (Safe copy) Creates a new Uint8Array from a variable number of arguments.
*/
_Uint8Array.of.bind(_Uint8Array);
/**
* (Safe copy) Creates a new Uint8ClampedArray from an array-like or iterable object.
*/
_Uint8ClampedArray.from.bind(_Uint8ClampedArray);
/**
* (Safe copy) Creates a new Uint8ClampedArray from a variable number of arguments.
*/
_Uint8ClampedArray.of.bind(_Uint8ClampedArray);
/**
* (Safe copy) Creates a new Uint16Array from an array-like or iterable object.
*/
_Uint16Array.from.bind(_Uint16Array);
/**
* (Safe copy) Creates a new Uint16Array from a variable number of arguments.
*/
_Uint16Array.of.bind(_Uint16Array);
/**
* (Safe copy) Creates a new Uint32Array from an array-like or iterable object.
*/
_Uint32Array.from.bind(_Uint32Array);
/**
* (Safe copy) Creates a new Uint32Array from a variable number of arguments.
*/
_Uint32Array.of.bind(_Uint32Array);
/**
* (Safe copy) Creates a new Int8Array from an array-like or iterable object.
*/
_Int8Array.from.bind(_Int8Array);
/**
* (Safe copy) Creates a new Int8Array from a variable number of arguments.
*/
_Int8Array.of.bind(_Int8Array);
/**
* (Safe copy) Creates a new Int16Array from an array-like or iterable object.
*/
_Int16Array.from.bind(_Int16Array);
/**
* (Safe copy) Creates a new Int16Array from a variable number of arguments.
*/
_Int16Array.of.bind(_Int16Array);
/**
* (Safe copy) Creates a new Int32Array from an array-like or iterable object.
*/
_Int32Array.from.bind(_Int32Array);
/**
* (Safe copy) Creates a new Int32Array from a variable number of arguments.
*/
_Int32Array.of.bind(_Int32Array);
/**
* (Safe copy) Creates a new Float32Array from an array-like or iterable object.
*/
_Float32Array.from.bind(_Float32Array);
/**
* (Safe copy) Creates a new Float32Array from a variable number of arguments.
*/
_Float32Array.of.bind(_Float32Array);
/**
* (Safe copy) Creates a new Float64Array from an array-like or iterable object.
*/
_Float64Array.from.bind(_Float64Array);
/**
* (Safe copy) Creates a new Float64Array from a variable number of arguments.
*/
_Float64Array.of.bind(_Float64Array);
/**
* (Safe copy) Creates a new BigInt64Array from an array-like or iterable object.
*/
_BigInt64Array.from.bind(_BigInt64Array);
/**
* (Safe copy) Creates a new BigInt64Array from a variable number of arguments.
*/
_BigInt64Array.of.bind(_BigInt64Array);
/**
* (Safe copy) Creates a new BigUint64Array from an array-like or iterable object.
*/
_BigUint64Array.from.bind(_BigUint64Array);
/**
* (Safe copy) Creates a new BigUint64Array from a variable number of arguments.
*/
_BigUint64Array.of.bind(_BigUint64Array);
createTextEncoder();
const UTF8_DECODER = createTextDecoder('utf8');
({
SIMPLE: {
ARRAY: createUint8Array([104, 101, 108, 108, 111]),
},
NON_ASCII: {
ARRAY: createUint8Array([
227,
129,
147, // こ
227,
130,
147, // ん
227,
129,
171, // に
227,
129,
161, // ち
227,
129,
175, // は
]),
},
EMPTY: {
ARRAY: createUint8Array([]),
},
});
/**
* Converts an ArrayBuffer to a UTF-8 encoded string.

@@ -25,3 +222,3 @@ *

function binaryStringToBytes(binaryStr) {
const bytes = new Uint8Array(binaryStr.length);
const bytes = createUint8Array(binaryStr.length);
for (let i = 0; i < binaryStr.length; i += 1) {

@@ -68,3 +265,3 @@ bytes[i] = binaryStr.charCodeAt(i);

function fromBase64(base64) {
return new TextDecoder().decode(binaryStringToBytes(atob(urlSafeBase64ToBase64(base64))));
return createTextDecoder().decode(binaryStringToBytes(atob(urlSafeBase64ToBase64(base64))));
}

@@ -79,3 +276,3 @@

function utf8StringToUint8Array(text) {
return new TextEncoder().encode(text);
return createTextEncoder().encode(text);
}

@@ -107,2 +304,20 @@

/**
* Safe copies of String built-in static methods.
*
* These references are captured at module initialization time to protect against
* prototype pollution attacks. Import only what you need for tree-shaking.
*
* @module @hyperfrontend/immutable-api-utils/built-in-copy/string
*/
// Capture references at module initialization time
const _String = globalThis.String;
// ============================================================================
// Static Methods
// ============================================================================
/**
* (Safe copy) Returns a string created from the specified sequence of UTF-16 code units.
*/
const fromCharCode = _String.fromCharCode;
/**
* Converts a Uint8Array to a Latin-1 "binary string" where

@@ -119,3 +334,3 @@ * each byte becomes a single charCode (0-255).

for (let i = 0; i < bytes.length; i += 1) {
binary += String.fromCharCode(bytes[i]);
binary += fromCharCode(bytes[i]);
}

@@ -135,3 +350,3 @@ return binary;

function toBase64(text, urlSafe = false, keepPadding = false) {
return base64ToUrlSafeBase64(btoa(bytesToBinaryString(new TextEncoder().encode(text))), { urlSafe, keepPadding });
return base64ToUrlSafeBase64(btoa(bytesToBinaryString(createTextEncoder().encode(text))), { urlSafe, keepPadding });
}

@@ -138,0 +353,0 @@

+1
-1

@@ -1,1 +0,1 @@

{"version":3,"file":"index.cjs.js","sources":["../../../../../../../../../../libs/utils/string/src/lib/shared-consts.ts","../../../../../../../../../../libs/utils/string/src/lib/array-buffer-to-utf8-string/array-buffer-to-utf8-string.ts","../../../../../../../../../../libs/utils/string/src/lib/utils/binary-string-to-bytes.ts","../../../../../../../../../../libs/utils/string/src/lib/utils/url-safe-base64-to-base64.ts","../../../../../../../../../../libs/utils/string/src/lib/base64-to-uint8-array/browser/base64-to-uint8-array.ts","../../../../../../../../../../libs/utils/string/src/lib/from-base64/browser/from-base64.ts","../../../../../../../../../../libs/utils/string/src/lib/utf8-string-to-uint8-array/browser/utf8-string-to-uint8-array.ts","../../../../../../../../../../libs/utils/string/src/lib/utils/base64-to-url-safe-base64.ts","../../../../../../../../../../libs/utils/string/src/lib/utils/bytes-to-binary-string.ts","../../../../../../../../../../libs/utils/string/src/lib/to-base64/browser/to-base64.ts","../../../../../../../../../../libs/utils/string/src/lib/uint8-array-to-base64/browser/uint8-array-to-base64.ts","../../../../../../../../../../libs/utils/string/src/lib/uint8-array-to-utf8-string/uint8-array-to-utf8-string.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null,null],"names":[],"mappings":";;AAAuB,IAAI,WAAW;AAC/B,MAAM,YAAY,GAAG,IAAI,WAAW,CAAC,MAAM,CAAC;;ACCnD;;;;;AAKG;AACG,SAAU,uBAAuB,CAAC,UAAuB,EAAA;AAC7D,IAAA,OAAO,YAAY,CAAC,MAAM,CAAC,UAAU,CAAC;AACxC;;ACVA;;;;;;;AAOG;AACG,SAAU,mBAAmB,CAAC,SAAiB,EAAA;IACnD,MAAM,KAAK,GAAG,IAAI,UAAU,CAAC,SAAS,CAAC,MAAM,CAAC;AAC9C,IAAA,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,EAAE;QAC5C,KAAK,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC;IACpC;AACA,IAAA,OAAO,KAAK;AACd;;ACdA;;;;;;AAMG;AACG,SAAU,qBAAqB,CAAC,aAAqB,EAAA;AACzD,IAAA,IAAI,gBAAgB,GAAG,aAAa,CAAC,UAAU,CAAC,GAAG,EA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SAAU,mBAAmB,CAAC,KAAiB,EAAA;IACnD,IAAI,MAAM,GAAG,EAAE;AACf,IAAA,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,EAAE;QACxC,MAAM,IAAI,MAAM,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IACzC;AACA,IAAA,OAAO,MAAM;AACf;;ACZA;;;;;;;;AAQG;AACG,SAAU,QAAQ,CAAC,IAAY,EAAE,OAAO,GAAG,KAAK,EAAE,WAAW,GAAG,KAAK,EAAA;IACzE,OAAO,qBAAqB,CAAC,IAAI,CAAC,mBAAmB,CAAC,IAAI,WAAW,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE,CAAC;AACnH;;ACXA;;;;;;;;AAQG;AACG,SAAU,kBAAkB,CAAC,KAAiB,EAAE,OAAO,GAAG,KAAK,EAAE,WAAW,GAAG,KAAK,EAAA;IACxF,OAAO,qBAAqB,CAAC,IAAI,CAAC,mBAAmB,CAAC,KAAK,CAAC,CAAC,EAAE;QAC7D,OAAO;QACP,WAAW;AACZ,KAAA,CAAC;AACJ;;ACfA;;;;;AAKG;AACG,SAAU,sBAAsB,CAAC,UAAsB,EAAA;AAC3D,IAAA,OAAO,YAAY,CAAC,MAAM,CAAC,UAAU,CAAC;AACxC;;;;;;;;;;"}
{"version":3,"file":"index.cjs.js","sources":["../../../../../../../../../../libs/utils/immutable-api/src/built-in-copy/encoding/index.ts","../../../../../../../../../../libs/utils/immutable-api/src/built-in-copy/typed-arrays/index.ts","../../../../../../../../../../libs/utils/string/src/lib/shared-consts.ts","../../../../../../../../../../libs/utils/string/src/lib/array-buffer-to-utf8-string/array-buffer-to-utf8-string.ts","../../../../../../../../../../libs/utils/string/src/lib/utils/binary-string-to-bytes.ts","../../../../../../../../../../libs/utils/string/src/lib/utils/url-safe-base64-to-base64.ts","../../../../../../../../../../libs/utils/string/src/lib/base64-to-uint8-array/browser/base64-to-uint8-array.ts","../../../../../../../../../../libs/utils/string/src/lib/from-base64/browser/from-base64.ts","../../../../../../../../../../libs/utils/string/src/lib/utf8-string-to-uint8-array/browser/utf8-string-to-uint8-array.ts","../../../../../../../../../../libs/utils/string/src/lib/utils/base64-to-url-safe-base64.ts","../../../../../../../../../../libs/utils/immutable-api/src/built-in-copy/string/index.ts","../../../../../../../../../../libs/utils/string/src/lib/utils/bytes-to-binary-string.ts","../../../../../../../../../../libs/utils/string/src/lib/to-base64/browser/to-base64.ts","../../../../../../../../../../libs/utils/string/src/lib/uint8-array-to-base64/browser/uint8-array-to-base64.ts","../../../../../../../../../../libs/utils/string/src/lib/uint8-array-to-utf8-string/uint8-array-to-utf8-string.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],"names":["_Reflect"],"mappings":";;AAAA;;;;;;;;AAQG;AAEH;AACA,MAAM,YAAY,GAAG,UAAU,CAAC,WAAW;AAC3C,MAAM,YAAY,GAAG,UAAU,CAAC,WAAW;AAC3C,MAAM,KAAK,GAAG,UAAU,CAAC,IAAI;AAC7B,MAAM,KAAK,GAAG,UAAU,CAAC,IAAI;AAC7B,MAAMA,UAAQ,GAAG,UAAU,CAAC,OAAO;AAGnC;;;;;AAKG;AACI,MAAM,iBAAiB,GAAG,MAAgCA,UAAQ,CAAC,SAAS,CAAC,YAAY,EAAE,EAAE,CAAC;AAErG;;;;;;;AAOG;AACI,MAAM,iBAAiB,GAAG,CAAC,KAAc,EAAE,OAA4B,KAC/DA,UAAQ,CAAC,SAAS,CAAC,YAAY,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;AAEjE;;;;;;AAMG;AACI,MAAM,IAAI,GAAG,CAAC,IAAY,KAAa,KAAK,CAAC,IAAI,CAAC;AAEzD;;;;;;AAMG;AACI,MAAM,IAAI,GAAG,CAAC,IAAY,KAAa,KAAK,CAAC,IAAI,CAA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;;AAEG;AACI,MAAM,YAAY,GAAG,OAAO,CAAC,YAAY;;AClBhD;;;;;;;;AAQG;AACG,SAAU,mBAAmB,CAAC,KAAiB,EAAA;IACnD,IAAI,MAAM,GAAG,EAAE;AACf,IAAA,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,EAAE;QACxC,MAAM,IAAI,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAClC;AACA,IAAA,OAAO,MAAM;AACf;;ACbA;;;;;;;;AAQG;AACG,SAAU,QAAQ,CAAC,IAAY,EAAE,OAAO,GAAG,KAAK,EAAE,WAAW,GAAG,KAAK,EAAA;IACzE,OAAO,qBAAqB,CAAC,IAAI,CAAC,mBAAmB,CAAC,iBAAiB,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE,CAAC;AACrH;;ACXA;;;;;;;;AAQG;AACG,SAAU,kBAAkB,CAAC,KAAiB,EAAE,OAAO,GAAG,KAAK,EAAE,WAAW,GAAG,KAAK,EAAA;IACxF,OAAO,qBAAqB,CAAC,IAAI,CAAC,mBAAmB,CAAC,KAAK,CAAC,CAAC,EAAE;QAC7D,OAAO;QACP,WAAW;AACZ,KAAA,CAAC;AACJ;;AChBA;;;;;AAKG;AACG,SAAU,sBAAsB,CAAC,UAAsB,EAAA;AAC3D,IAAA,OAAO,YAAY,CAAC,MAAM,CAAC,UAAU,CAAC;AACxC;;;;;;;;;;"}

@@ -1,5 +0,202 @@

new TextEncoder();
const UTF8_DECODER = new TextDecoder('utf8');
/**
* Safe copies of encoding built-ins via factory functions.
*
* Provides safe references to TextEncoder, TextDecoder, atob, and btoa.
* These references are captured at module initialization time to protect against
* prototype pollution attacks. Import only what you need for tree-shaking.
*
* @module @hyperfrontend/immutable-api-utils/built-in-copy/encoding
*/
// Capture references at module initialization time
const _TextEncoder = globalThis.TextEncoder;
const _TextDecoder = globalThis.TextDecoder;
const _atob = globalThis.atob;
const _btoa = globalThis.btoa;
const _Reflect$1 = globalThis.Reflect;
/**
* (Safe copy) Creates a new TextEncoder using the captured TextEncoder constructor.
* Use this instead of `new TextEncoder()`.
*
* @returns A new TextEncoder instance.
*/
const createTextEncoder = () => _Reflect$1.construct(_TextEncoder, []);
/**
* (Safe copy) Creates a new TextDecoder using the captured TextDecoder constructor.
* Use this instead of `new TextDecoder()`.
*
* @param label - The encoding label (e.g., 'utf-8', 'utf-16'). Defaults to 'utf-8'.
* @param options - Optional TextDecoderOptions.
* @returns A new TextDecoder instance.
*/
const createTextDecoder = (label, options) => _Reflect$1.construct(_TextDecoder, [label, options]);
/**
* (Safe copy) Decodes a base64-encoded string.
* Use this instead of `atob()`.
*
* @param data - The base64-encoded string to decode.
* @returns The decoded string.
*/
const atob = (data) => _atob(data);
/**
* (Safe copy) Encodes a string to base64.
* Use this instead of `btoa()`.
*
* @param data - The string to encode.
* @returns The base64-encoded string.
*/
const btoa = (data) => _btoa(data);
/**
* Safe copies of TypedArray and ArrayBuffer built-ins via factory functions.
*
* Provides safe references to Uint8Array, Int8Array, ArrayBuffer, DataView, etc.
* These references are captured at module initialization time to protect against
* prototype pollution attacks. Import only what you need for tree-shaking.
*
* @module @hyperfrontend/immutable-api-utils/built-in-copy/typed-arrays
*/
// Capture references at module initialization time
const _ArrayBuffer = globalThis.ArrayBuffer;
const _SharedArrayBuffer = globalThis.SharedArrayBuffer;
const _Uint8Array = globalThis.Uint8Array;
const _Uint8ClampedArray = globalThis.Uint8ClampedArray;
const _Uint16Array = globalThis.Uint16Array;
const _Uint32Array = globalThis.Uint32Array;
const _Int8Array = globalThis.Int8Array;
const _Int16Array = globalThis.Int16Array;
const _Int32Array = globalThis.Int32Array;
const _Float32Array = globalThis.Float32Array;
const _Float64Array = globalThis.Float64Array;
const _BigInt64Array = globalThis.BigInt64Array;
const _BigUint64Array = globalThis.BigUint64Array;
const _Reflect = globalThis.Reflect;
function createUint8Array(arg, byteOffset, length) {
if (typeof arg === 'number') {
return _Reflect.construct(_Uint8Array, [arg]);
}
if (arg instanceof _ArrayBuffer || arg instanceof _SharedArrayBuffer) {
return _Reflect.construct(_Uint8Array, [arg, byteOffset, length]);
}
return _Reflect.construct(_Uint8Array, [arg]);
}
/**
* (Safe copy) Creates a new Uint8Array from an array-like or iterable object.
*/
_Uint8Array.from.bind(_Uint8Array);
/**
* (Safe copy) Creates a new Uint8Array from a variable number of arguments.
*/
_Uint8Array.of.bind(_Uint8Array);
/**
* (Safe copy) Creates a new Uint8ClampedArray from an array-like or iterable object.
*/
_Uint8ClampedArray.from.bind(_Uint8ClampedArray);
/**
* (Safe copy) Creates a new Uint8ClampedArray from a variable number of arguments.
*/
_Uint8ClampedArray.of.bind(_Uint8ClampedArray);
/**
* (Safe copy) Creates a new Uint16Array from an array-like or iterable object.
*/
_Uint16Array.from.bind(_Uint16Array);
/**
* (Safe copy) Creates a new Uint16Array from a variable number of arguments.
*/
_Uint16Array.of.bind(_Uint16Array);
/**
* (Safe copy) Creates a new Uint32Array from an array-like or iterable object.
*/
_Uint32Array.from.bind(_Uint32Array);
/**
* (Safe copy) Creates a new Uint32Array from a variable number of arguments.
*/
_Uint32Array.of.bind(_Uint32Array);
/**
* (Safe copy) Creates a new Int8Array from an array-like or iterable object.
*/
_Int8Array.from.bind(_Int8Array);
/**
* (Safe copy) Creates a new Int8Array from a variable number of arguments.
*/
_Int8Array.of.bind(_Int8Array);
/**
* (Safe copy) Creates a new Int16Array from an array-like or iterable object.
*/
_Int16Array.from.bind(_Int16Array);
/**
* (Safe copy) Creates a new Int16Array from a variable number of arguments.
*/
_Int16Array.of.bind(_Int16Array);
/**
* (Safe copy) Creates a new Int32Array from an array-like or iterable object.
*/
_Int32Array.from.bind(_Int32Array);
/**
* (Safe copy) Creates a new Int32Array from a variable number of arguments.
*/
_Int32Array.of.bind(_Int32Array);
/**
* (Safe copy) Creates a new Float32Array from an array-like or iterable object.
*/
_Float32Array.from.bind(_Float32Array);
/**
* (Safe copy) Creates a new Float32Array from a variable number of arguments.
*/
_Float32Array.of.bind(_Float32Array);
/**
* (Safe copy) Creates a new Float64Array from an array-like or iterable object.
*/
_Float64Array.from.bind(_Float64Array);
/**
* (Safe copy) Creates a new Float64Array from a variable number of arguments.
*/
_Float64Array.of.bind(_Float64Array);
/**
* (Safe copy) Creates a new BigInt64Array from an array-like or iterable object.
*/
_BigInt64Array.from.bind(_BigInt64Array);
/**
* (Safe copy) Creates a new BigInt64Array from a variable number of arguments.
*/
_BigInt64Array.of.bind(_BigInt64Array);
/**
* (Safe copy) Creates a new BigUint64Array from an array-like or iterable object.
*/
_BigUint64Array.from.bind(_BigUint64Array);
/**
* (Safe copy) Creates a new BigUint64Array from a variable number of arguments.
*/
_BigUint64Array.of.bind(_BigUint64Array);
createTextEncoder();
const UTF8_DECODER = createTextDecoder('utf8');
({
SIMPLE: {
ARRAY: createUint8Array([104, 101, 108, 108, 111]),
},
NON_ASCII: {
ARRAY: createUint8Array([
227,
129,
147, // こ
227,
130,
147, // ん
227,
129,
171, // に
227,
129,
161, // ち
227,
129,
175, // は
]),
},
EMPTY: {
ARRAY: createUint8Array([]),
},
});
/**
* Converts an ArrayBuffer to a UTF-8 encoded string.

@@ -23,3 +220,3 @@ *

function binaryStringToBytes(binaryStr) {
const bytes = new Uint8Array(binaryStr.length);
const bytes = createUint8Array(binaryStr.length);
for (let i = 0; i < binaryStr.length; i += 1) {

@@ -66,3 +263,3 @@ bytes[i] = binaryStr.charCodeAt(i);

function fromBase64(base64) {
return new TextDecoder().decode(binaryStringToBytes(atob(urlSafeBase64ToBase64(base64))));
return createTextDecoder().decode(binaryStringToBytes(atob(urlSafeBase64ToBase64(base64))));
}

@@ -77,3 +274,3 @@

function utf8StringToUint8Array(text) {
return new TextEncoder().encode(text);
return createTextEncoder().encode(text);
}

@@ -105,2 +302,20 @@

/**
* Safe copies of String built-in static methods.
*
* These references are captured at module initialization time to protect against
* prototype pollution attacks. Import only what you need for tree-shaking.
*
* @module @hyperfrontend/immutable-api-utils/built-in-copy/string
*/
// Capture references at module initialization time
const _String = globalThis.String;
// ============================================================================
// Static Methods
// ============================================================================
/**
* (Safe copy) Returns a string created from the specified sequence of UTF-16 code units.
*/
const fromCharCode = _String.fromCharCode;
/**
* Converts a Uint8Array to a Latin-1 "binary string" where

@@ -117,3 +332,3 @@ * each byte becomes a single charCode (0-255).

for (let i = 0; i < bytes.length; i += 1) {
binary += String.fromCharCode(bytes[i]);
binary += fromCharCode(bytes[i]);
}

@@ -133,3 +348,3 @@ return binary;

function toBase64(text, urlSafe = false, keepPadding = false) {
return base64ToUrlSafeBase64(btoa(bytesToBinaryString(new TextEncoder().encode(text))), { urlSafe, keepPadding });
return base64ToUrlSafeBase64(btoa(bytesToBinaryString(createTextEncoder().encode(text))), { urlSafe, keepPadding });
}

@@ -136,0 +351,0 @@

@@ -1,1 +0,1 @@

{"version":3,"file":"index.esm.js","sources":["../../../../../../../../../../libs/utils/string/src/lib/shared-consts.ts","../../../../../../../../../../libs/utils/string/src/lib/array-buffer-to-utf8-string/array-buffer-to-utf8-string.ts","../../../../../../../../../../libs/utils/string/src/lib/utils/binary-string-to-bytes.ts","../../../../../../../../../../libs/utils/string/src/lib/utils/url-safe-base64-to-base64.ts","../../../../../../../../../../libs/utils/string/src/lib/base64-to-uint8-array/browser/base64-to-uint8-array.ts","../../../../../../../../../../libs/utils/string/src/lib/from-base64/browser/from-base64.ts","../../../../../../../../../../libs/utils/string/src/lib/utf8-string-to-uint8-array/browser/utf8-string-to-uint8-array.ts","../../../../../../../../../../libs/utils/string/src/lib/utils/base64-to-url-safe-base64.ts","../../../../../../../../../../libs/utils/string/src/lib/utils/bytes-to-binary-string.ts","../../../../../../../../../../libs/utils/string/src/lib/to-base64/browser/to-base64.ts","../../../../../../../../../../libs/utils/string/src/lib/uint8-array-to-base64/browser/uint8-array-to-base64.ts","../../../../../../../../../../libs/utils/string/src/lib/uint8-array-to-utf8-string/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E,EAAE,OAAO,EAAE,WAAW,EAAE,CAAC;AACnH;;ACXA;;;;;;;;AAQG;AACG,SAAU,kBAAkB,CAAC,KAAiB,EAAE,OAAO,GAAG,KAAK,EAAE,WAAW,GAAG,KAAK,EAAA;IACxF,OAAO,qBAAqB,CAAC,IAAI,CAAC,mBAAmB,CAAC,KAAK,CAAC,CAAC,EAAE;QAC7D,OAAO;QACP,WAAW;AACZ,KAAA,CAAC;AACJ;;ACfA;;;;;AAKG;AACG,SAAU,sBAAsB,CAAC,UAAsB,EAAA;AAC3D,IAAA,OAAO,YAAY,CAAC,MAAM,CAAC,UAAU,CAAC;AACxC;;;;"}
{"version":3,"file":"index.esm.js","sources":["../../../../../../../../../../libs/utils/immutable-api/src/built-in-copy/encoding/index.ts","../../../../../../../../../../libs/utils/immutable-api/src/built-in-copy/typed-arrays/index.ts","../../../../../../../../../../libs/utils/string/src/lib/shared-consts.ts","../../../../../../../../../../libs/utils/string/src/lib/array-buffer-to-utf8-string/array-buffer-to-utf8-string.ts","../../../../../../../../../../libs/utils/string/src/lib/utils/binary-string-to-bytes.ts","../../../../../../../../../../libs/utils/string/src/lib/utils/url-safe-base64-to-base64.ts","../../../../../../../../../../libs/utils/string/src/lib/base64-to-uint8-array/browser/base64-to-uint8-array.ts","../../../../../../../../../../libs/utils/string/src/lib/from-base64/browser/from-base64.ts","../../../../../../../../../../libs/utils/string/src/lib/utf8-string-to-uint8-array/browser/utf8-string-to-uint8-array.ts","../../../../../../../../../../libs/utils/string/src/lib/utils/base64-to-url-safe-base64.ts","../../../../../../../../../../libs/utils/immutable-api/src/built-in-copy/string/index.ts","../../../../../../../../../../libs/utils/string/src/lib/utils/bytes-to-binary-string.ts","../../../../../../../../../../libs/utils/string/src/lib/to-base64/browser/to-base64.ts","../../../../../../../../../../libs/utils/string/src/lib/uint8-array-to-base64/browser/uint8-array-to-base64.ts","../../../../../../../../../../libs/utils/string/src/lib/uint8-array-to-utf8-string/uint8-array-to-utf8-string.ts"],"sources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EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE,CAAC;AACrH;;ACXA;;;;;;;;AAQG;AACG,SAAU,kBAAkB,CAAC,KAAiB,EAAE,OAAO,GAAG,KAAK,EAAE,WAAW,GAAG,KAAK,EAAA;IACxF,OAAO,qBAAqB,CAAC,IAAI,CAAC,mBAAmB,CAAC,KAAK,CAAC,CAAC,EAAE;QAC7D,OAAO;QACP,WAAW;AACZ,KAAA,CAAC;AACJ;;AChBA;;;;;AAKG;AACG,SAAU,sBAAsB,CAAC,UAAsB,EAAA;AAC3D,IAAA,OAAO,YAAY,CAAC,MAAM,CAAC,UAAU,CAAC;AACxC;;;;"}
var HyperfrontendStringUtils = (function (exports) {
'use strict';
new TextEncoder();
const UTF8_DECODER = new TextDecoder('utf8');
/**
* Safe copies of encoding built-ins via factory functions.
*
* Provides safe references to TextEncoder, TextDecoder, atob, and btoa.
* These references are captured at module initialization time to protect against
* prototype pollution attacks. Import only what you need for tree-shaking.
*
* @module @hyperfrontend/immutable-api-utils/built-in-copy/encoding
*/
// Capture references at module initialization time
const _TextEncoder = globalThis.TextEncoder;
const _TextDecoder = globalThis.TextDecoder;
const _atob = globalThis.atob;
const _btoa = globalThis.btoa;
const _Reflect$1 = globalThis.Reflect;
/**
* (Safe copy) Creates a new TextEncoder using the captured TextEncoder constructor.
* Use this instead of `new TextEncoder()`.
*
* @returns A new TextEncoder instance.
*/
const createTextEncoder = () => _Reflect$1.construct(_TextEncoder, []);
/**
* (Safe copy) Creates a new TextDecoder using the captured TextDecoder constructor.
* Use this instead of `new TextDecoder()`.
*
* @param label - The encoding label (e.g., 'utf-8', 'utf-16'). Defaults to 'utf-8'.
* @param options - Optional TextDecoderOptions.
* @returns A new TextDecoder instance.
*/
const createTextDecoder = (label, options) => _Reflect$1.construct(_TextDecoder, [label, options]);
/**
* (Safe copy) Decodes a base64-encoded string.
* Use this instead of `atob()`.
*
* @param data - The base64-encoded string to decode.
* @returns The decoded string.
*/
const atob = (data) => _atob(data);
/**
* (Safe copy) Encodes a string to base64.
* Use this instead of `btoa()`.
*
* @param data - The string to encode.
* @returns The base64-encoded string.
*/
const btoa = (data) => _btoa(data);
/**
* Safe copies of TypedArray and ArrayBuffer built-ins via factory functions.
*
* Provides safe references to Uint8Array, Int8Array, ArrayBuffer, DataView, etc.
* These references are captured at module initialization time to protect against
* prototype pollution attacks. Import only what you need for tree-shaking.
*
* @module @hyperfrontend/immutable-api-utils/built-in-copy/typed-arrays
*/
// Capture references at module initialization time
const _ArrayBuffer = globalThis.ArrayBuffer;
const _SharedArrayBuffer = globalThis.SharedArrayBuffer;
const _Uint8Array = globalThis.Uint8Array;
const _Uint8ClampedArray = globalThis.Uint8ClampedArray;
const _Uint16Array = globalThis.Uint16Array;
const _Uint32Array = globalThis.Uint32Array;
const _Int8Array = globalThis.Int8Array;
const _Int16Array = globalThis.Int16Array;
const _Int32Array = globalThis.Int32Array;
const _Float32Array = globalThis.Float32Array;
const _Float64Array = globalThis.Float64Array;
const _BigInt64Array = globalThis.BigInt64Array;
const _BigUint64Array = globalThis.BigUint64Array;
const _Reflect = globalThis.Reflect;
function createUint8Array(arg, byteOffset, length) {
if (typeof arg === 'number') {
return _Reflect.construct(_Uint8Array, [arg]);
}
if (arg instanceof _ArrayBuffer || arg instanceof _SharedArrayBuffer) {
return _Reflect.construct(_Uint8Array, [arg, byteOffset, length]);
}
return _Reflect.construct(_Uint8Array, [arg]);
}
/**
* (Safe copy) Creates a new Uint8Array from an array-like or iterable object.
*/
_Uint8Array.from.bind(_Uint8Array);
/**
* (Safe copy) Creates a new Uint8Array from a variable number of arguments.
*/
_Uint8Array.of.bind(_Uint8Array);
/**
* (Safe copy) Creates a new Uint8ClampedArray from an array-like or iterable object.
*/
_Uint8ClampedArray.from.bind(_Uint8ClampedArray);
/**
* (Safe copy) Creates a new Uint8ClampedArray from a variable number of arguments.
*/
_Uint8ClampedArray.of.bind(_Uint8ClampedArray);
/**
* (Safe copy) Creates a new Uint16Array from an array-like or iterable object.
*/
_Uint16Array.from.bind(_Uint16Array);
/**
* (Safe copy) Creates a new Uint16Array from a variable number of arguments.
*/
_Uint16Array.of.bind(_Uint16Array);
/**
* (Safe copy) Creates a new Uint32Array from an array-like or iterable object.
*/
_Uint32Array.from.bind(_Uint32Array);
/**
* (Safe copy) Creates a new Uint32Array from a variable number of arguments.
*/
_Uint32Array.of.bind(_Uint32Array);
/**
* (Safe copy) Creates a new Int8Array from an array-like or iterable object.
*/
_Int8Array.from.bind(_Int8Array);
/**
* (Safe copy) Creates a new Int8Array from a variable number of arguments.
*/
_Int8Array.of.bind(_Int8Array);
/**
* (Safe copy) Creates a new Int16Array from an array-like or iterable object.
*/
_Int16Array.from.bind(_Int16Array);
/**
* (Safe copy) Creates a new Int16Array from a variable number of arguments.
*/
_Int16Array.of.bind(_Int16Array);
/**
* (Safe copy) Creates a new Int32Array from an array-like or iterable object.
*/
_Int32Array.from.bind(_Int32Array);
/**
* (Safe copy) Creates a new Int32Array from a variable number of arguments.
*/
_Int32Array.of.bind(_Int32Array);
/**
* (Safe copy) Creates a new Float32Array from an array-like or iterable object.
*/
_Float32Array.from.bind(_Float32Array);
/**
* (Safe copy) Creates a new Float32Array from a variable number of arguments.
*/
_Float32Array.of.bind(_Float32Array);
/**
* (Safe copy) Creates a new Float64Array from an array-like or iterable object.
*/
_Float64Array.from.bind(_Float64Array);
/**
* (Safe copy) Creates a new Float64Array from a variable number of arguments.
*/
_Float64Array.of.bind(_Float64Array);
/**
* (Safe copy) Creates a new BigInt64Array from an array-like or iterable object.
*/
_BigInt64Array.from.bind(_BigInt64Array);
/**
* (Safe copy) Creates a new BigInt64Array from a variable number of arguments.
*/
_BigInt64Array.of.bind(_BigInt64Array);
/**
* (Safe copy) Creates a new BigUint64Array from an array-like or iterable object.
*/
_BigUint64Array.from.bind(_BigUint64Array);
/**
* (Safe copy) Creates a new BigUint64Array from a variable number of arguments.
*/
_BigUint64Array.of.bind(_BigUint64Array);
createTextEncoder();
const UTF8_DECODER = createTextDecoder('utf8');
({
SIMPLE: {
ARRAY: createUint8Array([104, 101, 108, 108, 111]),
},
NON_ASCII: {
ARRAY: createUint8Array([
227,
129,
147, // こ
227,
130,
147, // ん
227,
129,
171, // に
227,
129,
161, // ち
227,
129,
175, // は
]),
},
EMPTY: {
ARRAY: createUint8Array([]),
},
});
/**
* Converts an ArrayBuffer to a UTF-8 encoded string.

@@ -26,3 +223,3 @@ *

function binaryStringToBytes(binaryStr) {
const bytes = new Uint8Array(binaryStr.length);
const bytes = createUint8Array(binaryStr.length);
for (let i = 0; i < binaryStr.length; i += 1) {

@@ -69,3 +266,3 @@ bytes[i] = binaryStr.charCodeAt(i);

function fromBase64(base64) {
return new TextDecoder().decode(binaryStringToBytes(atob(urlSafeBase64ToBase64(base64))));
return createTextDecoder().decode(binaryStringToBytes(atob(urlSafeBase64ToBase64(base64))));
}

@@ -80,3 +277,3 @@

function utf8StringToUint8Array(text) {
return new TextEncoder().encode(text);
return createTextEncoder().encode(text);
}

@@ -108,2 +305,20 @@

/**
* Safe copies of String built-in static methods.
*
* These references are captured at module initialization time to protect against
* prototype pollution attacks. Import only what you need for tree-shaking.
*
* @module @hyperfrontend/immutable-api-utils/built-in-copy/string
*/
// Capture references at module initialization time
const _String = globalThis.String;
// ============================================================================
// Static Methods
// ============================================================================
/**
* (Safe copy) Returns a string created from the specified sequence of UTF-16 code units.
*/
const fromCharCode = _String.fromCharCode;
/**
* Converts a Uint8Array to a Latin-1 "binary string" where

@@ -120,3 +335,3 @@ * each byte becomes a single charCode (0-255).

for (let i = 0; i < bytes.length; i += 1) {
binary += String.fromCharCode(bytes[i]);
binary += fromCharCode(bytes[i]);
}

@@ -136,3 +351,3 @@ return binary;

function toBase64(text, urlSafe = false, keepPadding = false) {
return base64ToUrlSafeBase64(btoa(bytesToBinaryString(new TextEncoder().encode(text))), { urlSafe, keepPadding });
return base64ToUrlSafeBase64(btoa(bytesToBinaryString(createTextEncoder().encode(text))), { urlSafe, keepPadding });
}

@@ -139,0 +354,0 @@

@@ -1,1 +0,1 @@

{"version":3,"file":"index.iife.js","sources":["../../../../../../../../../../libs/utils/string/src/lib/shared-consts.ts","../../../../../../../../../../libs/utils/string/src/lib/array-buffer-to-utf8-string/array-buffer-to-utf8-string.ts","../../../../../../../../../../libs/utils/string/src/lib/utils/binary-string-to-bytes.ts","../../../../../../../../../../libs/utils/string/src/lib/utils/url-safe-base64-to-base64.ts","../../../../../../../../../../libs/utils/string/src/lib/base64-to-uint8-array/browser/base64-to-uint8-array.ts","../../../../../../../../../../libs/utils/string/src/lib/from-base64/browser/from-base64.ts","../../../../../../../../../../libs/utils/string/src/lib/utf8-string-to-uint8-array/browser/utf8-string-to-uint8-array.ts","../../../../../../../../../../libs/utils/string/src/lib/utils/base64-to-url-safe-base64.ts","../../../../../../../../../../libs/utils/string/src/lib/utils/bytes-to-binary-string.ts","../../../../../../../../../../libs/utils/string/src/lib/to-base64/browser/to-base64.ts","../../../../../../../../../../libs/utils/string/src/lib/uint8-array-to-base64/browser/uint8-array-to-base64.ts","../../../../../../../../../../libs/utils/string/src/lib/uint8-array-to-utf8-string/uint8-array-to-utf8-string.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null,null],"names":[],"mappings":";;;IAAuB,IAAI,WAAW;IAC/B,MAAM,YAAY,GAAG,IAAI,WAAW,CAAC,MAAM,CAAC;;ICCnD;;;;;IAKG;IACG,SAAU,uBAAuB,CAAC,UAAuB,EAAA;IAC7D,IAAA,OAAO,YAAY,CAAC,MAAM,CAAC,UAAU,CAAC;IACxC;;ICVA;;;;;;;IAOG;IACG,SAAU,mBAAmB,CAAC,SAAiB,EAAA;QACnD,MAAM,KAAK,GAAG,IAAI,UAAU,CAAC,SAAS,CAAC,MAAM,CAAC;IAC9C,IAAA,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,EA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AAI,WAAW,KAAK,KAAK,EAAE;;IAEzB,YAAA,OAAO,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;oBAC3B,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC;gBAC9B;YACF;QACF;IACA,IAAA,OAAO,MAAM;IACf;;ICrBA;;;;;;;;IAQG;IACG,SAAU,mBAAmB,CAAC,KAAiB,EAAA;QACnD,IAAI,MAAM,GAAG,EAAE;IACf,IAAA,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,EAAE;YACxC,MAAM,IAAI,MAAM,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QACzC;IACA,IAAA,OAAO,MAAM;IACf;;ICZA;;;;;;;;IAQG;IACG,SAAU,QAAQ,CAAC,IAAY,EAAE,OAAO,GAAG,KAAK,EAAE,WAAW,GAAG,KAAK,EAAA;QACzE,OAAO,qBAAqB,CAAC,IAAI,CAAC,mBAAmB,CAAC,IAAI,WAAW,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE,CAAC;IACnH;;ICXA;;;;;;;;IAQG;IACG,SAAU,kBAAkB,CAAC,KAAiB,EAAE,OAAO,GAAG,KAAK,EAAE,WAAW,GAAG,KAAK,EAAA;QACxF,OAAO,qBAAqB,CAAC,IAAI,CAAC,mBAAmB,CAAC,KAAK,CAAC,CAAC,EAAE;YAC7D,OAAO;YACP,WAAW;IACZ,KAAA,CAAC;IACJ;;ICfA;;;;;IAKG;IACG,SAAU,sBAAsB,CAAC,UAAsB,EAAA;IAC3D,IAAA,OAAO,YAAY,CAAC,MAAM,CAAC,UAAU,CAAC;IACxC;;;;;;;;;;;;;;;;"}
{"version":3,"file":"index.iife.js","sources":["../../../../../../../../../../libs/utils/immutable-api/src/built-in-copy/encoding/index.ts","../../../../../../../../../../libs/utils/immutable-api/src/built-in-copy/typed-arrays/index.ts","../../../../../../../../../../libs/utils/string/src/lib/shared-consts.ts","../../../../../../../../../../libs/utils/string/src/lib/array-buffer-to-utf8-string/array-buffer-to-utf8-string.ts","../../../../../../../../../../libs/utils/string/src/lib/utils/binary-string-to-bytes.ts","../../../../../../../../../../libs/utils/string/src/lib/utils/url-safe-base64-to-base64.ts","../../../../../../../../../../libs/utils/string/src/lib/base64-to-uint8-array/browser/base64-to-uint8-array.ts","../../../../../../../../../../libs/utils/string/src/lib/from-base64/browser/from-base64.ts","../../../../../../../../../../libs/utils/string/src/lib/utf8-string-to-uint8-array/browser/utf8-string-to-uint8-array.ts","../../../../../../../../../../libs/utils/string/src/lib/utils/base64-to-url-safe-base64.ts","../../../../../../../../../../libs/utils/immutable-api/src/built-in-copy/string/index.ts","../../../../../../../../../../libs/utils/string/src/lib/utils/bytes-to-binary-string.ts","../../../../../../../../../../libs/utils/string/src/lib/to-base64/browser/to-base64.ts","../../../../../../../../../../libs/utils/string/src/lib/uint8-array-to-base64/browser/uint8-array-to-base64.ts","../../../../../../../../../../libs/utils/string/src/lib/uint8-array-to-utf8-string/uint8-array-to-utf8-string.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],"names":["_Reflect"],"mappings":";;;IAAA;;;;;;;;IAQG;IAEH;IACA,MAAM,YAAY,GAAG,UAAU,CAAC,WAAW;IAC3C,MAAM,YAAY,GAAG,UAAU,CAAC,WAAW;IAC3C,MAAM,KAAK,GAAG,UAAU,CAAC,IAAI;IAC7B,MAAM,KAAK,GAAG,UAAU,CAAC,IAAI;IAC7B,MAAMA,UAAQ,GAAG,UAAU,CAAC,OAAO;IAGnC;;;;;IAKG;IACI,MAAM,iBAAiB,GAAG,MAAgCA,UAAQ,CAAC,SAAS,CAAC,YAAY,EAAE,EAAE,CAAC;IAErG;;;;;;;IAOG;IACI,MAAM,iBAAiB,GAAG,CAAC,KAAc,EAAE,OAA4B,KAC/D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

@@ -1,2 +0,2 @@

var HyperfrontendStringUtils=function(e){"use strict";new TextEncoder;const n=new TextDecoder("utf8");function t(e){const n=new Uint8Array(e.length);for(let t=0;t<e.length;t+=1)n[t]=e.charCodeAt(t);return n}function r(e){let n=e.replaceAll("-","+").replaceAll("_","/");const t=n.length%4;return t&&(n=n.padEnd(n.length+(4-t),"=")),n}function o(e,{urlSafe:n,keepPadding:t}){if(n&&(e=e.replaceAll("+","-").replaceAll("/","_"),!1===t))for(;e.endsWith("=");)e=e.slice(0,-1);return e}function u(e){let n="";for(let t=0;t<e.length;t+=1)n+=String.fromCharCode(e[t]);return n}return e.arrayBufferToUtf8String=function(e){return n.decode(e)},e.base64ToUint8Array=function(e){return t(atob(r(e)))},e.fromBase64=function(e){return(new TextDecoder).decode(t(atob(r(e))))},e.toBase64=function(e,n=!1,t=!1){return o(btoa(u((new TextEncoder).encode(e))),{urlSafe:n,keepPadding:t})},e.uint8ArrayToBase64=function(e,n=!1,t=!1){return o(btoa(u(e)),{urlSafe:n,keepPadding:t})},e.uint8ArrayToUtf8String=function(e){return n.decode(e)},e.utf8StringToUint8Array=function(e){return(new TextEncoder).encode(e)},e}({});
var HyperfrontendStringUtils=function(n){"use strict";const r=globalThis.TextEncoder,o=globalThis.TextDecoder,t=globalThis.atob,i=globalThis.btoa,e=globalThis.Reflect,l=()=>e.construct(r,[]),a=(n,r)=>e.construct(o,[n,r]),f=n=>t(n),b=n=>i(n),c=globalThis.ArrayBuffer,d=globalThis.SharedArrayBuffer,u=globalThis.Uint8Array,s=globalThis.Uint8ClampedArray,g=globalThis.Uint16Array,h=globalThis.Uint32Array,T=globalThis.Int8Array,A=globalThis.Int16Array,y=globalThis.Int32Array,m=globalThis.Float32Array,p=globalThis.Float64Array,U=globalThis.BigInt64Array,S=globalThis.BigUint64Array,B=globalThis.Reflect;function C(n,r,o){return"number"==typeof n?B.construct(u,[n]):n instanceof c||n instanceof d?B.construct(u,[n,r,o]):B.construct(u,[n])}u.from.bind(u),u.of.bind(u),s.from.bind(s),s.of.bind(s),g.from.bind(g),g.of.bind(g),h.from.bind(h),h.of.bind(h),T.from.bind(T),T.of.bind(T),A.from.bind(A),A.of.bind(A),y.from.bind(y),y.of.bind(y),m.from.bind(m),m.of.bind(m),p.from.bind(p),p.of.bind(p),U.from.bind(U),U.of.bind(U),S.from.bind(S),S.of.bind(S),l();const I=a("utf8");function k(n){const r=C(n.length);for(let o=0;o<n.length;o+=1)r[o]=n.charCodeAt(o);return r}function P(n){let r=n.replaceAll("-","+").replaceAll("_","/");const o=r.length%4;return o&&(r=r.padEnd(r.length+(4-o),"=")),r}function x(n,{urlSafe:r,keepPadding:o}){if(r&&(n=n.replaceAll("+","-").replaceAll("/","_"),!1===o))for(;n.endsWith("=");)n=n.slice(0,-1);return n}C([104,101,108,108,111]),C([227,129,147,227,130,147,227,129,171,227,129,161,227,129,175]),C([]);const E=globalThis.String.fromCharCode;function F(n){let r="";for(let o=0;o<n.length;o+=1)r+=E(n[o]);return r}return n.arrayBufferToUtf8String=function(n){return I.decode(n)},n.base64ToUint8Array=function(n){return k(f(P(n)))},n.fromBase64=function(n){return a().decode(k(f(P(n))))},n.toBase64=function(n,r=!1,o=!1){return x(b(F(l().encode(n))),{urlSafe:r,keepPadding:o})},n.uint8ArrayToBase64=function(n,r=!1,o=!1){return x(b(F(n)),{urlSafe:r,keepPadding:o})},n.uint8ArrayToUtf8String=function(n){return I.decode(n)},n.utf8StringToUint8Array=function(n){return l().encode(n)},n}({});
//# sourceMappingURL=index.iife.min.js.map

@@ -1,1 +0,1 @@

{"version":3,"file":"index.iife.min.js","sources":["../../../../../../../../../../libs/utils/string/src/lib/shared-consts.ts","../../../../../../../../../../libs/utils/string/src/lib/utils/binary-string-to-bytes.ts","../../../../../../../../../../libs/utils/string/src/lib/utils/url-safe-base64-to-base64.ts","../../../../../../../../../../libs/utils/string/src/lib/utils/base64-to-url-safe-base64.ts","../../../../../../../../../../libs/utils/string/src/lib/utils/bytes-to-binary-string.ts","../../../../../../../../../../libs/utils/string/src/lib/array-buffer-to-utf8-string/array-buffer-to-utf8-string.ts","../../../../../../../../../../libs/utils/string/src/lib/base64-to-uint8-array/browser/base64-to-uint8-array.ts","../../../../../../../../../../libs/utils/string/src/lib/from-base64/browser/from-base64.ts","../../../../../../../../../../libs/utils/string/src/lib/to-base64/browser/to-base64.ts","../../../../../../../../../../libs/utils/string/src/lib/uint8-array-to-base64/browser/uint8-array-to-base64.ts","../../../../../../../../../../libs/utils/string/src/lib/uint8-array-to-utf8-string/uint8-array-to-utf8-string.ts","../../../../../../../../../../libs/utils/string/src/lib/utf8-string-to-uint8-array/browser/utf8-string-to-uint8-array.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null,null],"names":["TextEncoder","UTF8_DECODER","TextDecoder","binaryStringToBytes","binaryStr","bytes","Uint8Array","length","i","charCodeAt","urlSafeBase64ToBase64","urlSafeBase64","normalizedBase64","replaceAll","pad","padEnd","base64ToUrlSafeBase64","base64","urlSafe","keepPadding","endsWith","slice","bytesToBinaryString","binary","String","fromCharCode","uint8Array","decode","atob","text","btoa","encode"],"mappings":"sDAAuB,IAAIA,YACpB,MAAMC,EAAe,IAAIC,YAAY,QCOtC,SAAUC,EAAoBC,GAClC,MAAMC,EAAQ,IAAIC,WAAWF,EAAUG,QACvC,IAAK,IAAIC,EAAI,EAAGA,EAAIJ,EAAUG,OAAQC,GAAK,EACzCH,EAAMG,GAAKJ,EAAUK,WAAWD,GAElC,OAAOH,CACT,CCPM,SAAUK,EAAsBC,GACpC,IAAIC,EAAmBD,EAAcE,WAAW,IAAK,KAAKA,WAAW,IAAK,KAC1E,MAAMC,EAAMF,EAAiBL,OAAS,EAItC,OAHIO,IACFF,EAAmBA,EAAiBG,OAAOH,EAAiBL,QAAU,EAAIO,GAAM,MAE3EF,CACT,CCJM,SAAUI,EAAsBC,GAAgBC,QAAEA,EAAOC,YAAEA,IAC/D,GAAID,IACFD,EAASA,EAAOJ,WAAW,IAAK,KAAKA,WAAW,IAAK,MACjC,IAAhBM,GAEF,KAAOF,EAAOG,SAAS,MACrBH,EAASA,EAAOI,MAAM,GAAG,GAI/B,OAAOJ,CACT,CCZM,SAAUK,EAAoBjB,GAClC,IAAIkB,EAAS,GACb,IAAK,IAAIf,EAAI,EAAGA,EAAIH,EAAME,OAAQC,GAAK,EACrCe,GAAUC,OAAOC,aAAapB,EAAMG,IAEtC,OAAOe,CACT,kCCPM,SAAkCG,GACtC,OAAOzB,EAAa0B,OAAOD,EAC7B,uBCAM,SAA6BT,GACjC,OAAOd,EAAoByB,KAAKlB,EAAsBO,IACxD,eCFM,SAAqBA,GACzB,OAAO,IAAIf,aAAcyB,OAAOxB,EAAoByB,KAAKlB,EAAsBO,KACjF,aCAM,SAAmBY,EAAcX,GAAU,EAAOC,GAAc,GACpE,OAAOH,EAAsBc,KAAKR,GAAoB,IAAItB,aAAc+B,OAAOF,KAAS,CAAEX,UAASC,eACrG,uBCFM,SAA6Bd,EAAmBa,GAAU,EAAOC,GAAc,GACnF,OAAOH,EAAsBc,KAAKR,EAAoBjB,IAAS,CAC7Da,UACAC,eAEJ,2BCTM,SAAiCO,GACrC,OAAOzB,EAAa0B,OAAOD,EAC7B,2BCJM,SAAiCG,GACrC,OAAO,IAAI7B,aAAc+B,OAAOF,EAClC"}
{"version":3,"file":"index.iife.min.js","sources":["../../../../../../../../../../libs/utils/immutable-api/src/built-in-copy/encoding/index.ts","../../../../../../../../../../libs/utils/immutable-api/src/built-in-copy/typed-arrays/index.ts","../../../../../../../../../../libs/utils/string/src/lib/shared-consts.ts","../../../../../../../../../../libs/utils/string/src/lib/utils/binary-string-to-bytes.ts","../../../../../../../../../../libs/utils/string/src/lib/utils/url-safe-base64-to-base64.ts","../../../../../../../../../../libs/utils/string/src/lib/utils/base64-to-url-safe-base64.ts","../../../../../../../../../../libs/utils/immutable-api/src/built-in-copy/string/index.ts","../../../../../../../../../../libs/utils/string/src/lib/utils/bytes-to-binary-string.ts","../../../../../../../../../../libs/utils/string/src/lib/array-buffer-to-utf8-string/array-buffer-to-utf8-string.ts","../../../../../../../../../../libs/utils/string/src/lib/base64-to-uint8-array/browser/base64-to-uint8-array.ts","../../../../../../../../../../libs/utils/string/src/lib/from-base64/browser/from-base64.ts","../../../../../../../../../../libs/utils/string/src/lib/to-base64/browser/to-base64.ts","../../../../../../../../../../libs/utils/string/src/lib/uint8-array-to-base64/browser/uint8-array-to-base64.ts","../../../../../../../../../../libs/utils/string/src/lib/uint8-array-to-utf8-string/uint8-array-to-utf8-string.ts","../../../../../../../../../../libs/utils/string/src/lib/utf8-string-to-uint8-array/browser/utf8-string-to-uint8-array.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],"names":["_TextEncoder","globalThis","TextEncoder","_TextDecoder","TextDecoder","_atob","atob","_btoa","btoa","_Reflect","Reflect","createTextEncoder","construct","createTextDecoder","label","options","data","_ArrayBuffer","ArrayBuffer","_SharedArrayBuffer","SharedArrayBuffer","_Uint8Array","Uint8Array","_Uint8ClampedArray","Uint8ClampedArray","_Uint16Array","Uint16Array","_Uint32Array","Uint32Array","_Int8Array","Int8Array","_Int16Array","Int16Array","_Int32Array","Int32Array","_Float32Array","Float32Array","_Float64Array","Float64Array","_BigInt64Array","BigInt64Array","_BigUint64Array","BigUint64Array","createUint8Array","arg","byteOffset","length","from","bind","of","UTF8_DECODER","binaryStringToBytes","binaryStr","bytes","i","charCodeAt","urlSafeBase64ToBase64","urlSafeBase64","normalizedBase64","replaceAll","pad","padEnd","base64ToUrlSafeBase64","base64","urlSafe","keepPadding","endsWith","slice","fromCharCode","String","bytesToBinaryString","binary","uint8Array","decode","text","encode"],"mappings":"sDAWA,MAAMA,EAAeC,WAAWC,YAC1BC,EAAeF,WAAWG,YAC1BC,EAAQJ,WAAWK,KACnBC,EAAQN,WAAWO,KACnBC,EAAWR,WAAWS,QASfC,EAAoB,IAAgCF,EAASG,UAAUZ,EAAc,IAUrFa,EAAoB,CAACC,EAAgBC,IACnCN,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GACzB,OAAOlD,IAAoB4D,OAAOtB,EAAoB7C,EAAKkD,EAAsBO,KACnF,aCAM,SAAmBW,EAAcV,GAAU,EAAOC,GAAc,GACpE,OAAOH,EAAsBtD,EAAK8D,EAAoB3D,IAAoBgE,OAAOD,KAAS,CAAEV,UAASC,eACvG,uBCFM,SAA6BZ,EAAmBW,GAAU,EAAOC,GAAc,GACnF,OAAOH,EAAsBtD,EAAK8D,EAAoBjB,IAAS,CAC7DW,UACAC,eAEJ,2BCVM,SAAiCO,GACrC,OAAOtB,EAAauB,OAAOD,EAC7B,2BCFM,SAAiCE,GACrC,OAAO/D,IAAoBgE,OAAOD,EACpC"}

@@ -7,6 +7,203 @@ (function (global, factory) {

new TextEncoder();
const UTF8_DECODER = new TextDecoder('utf8');
/**
* Safe copies of encoding built-ins via factory functions.
*
* Provides safe references to TextEncoder, TextDecoder, atob, and btoa.
* These references are captured at module initialization time to protect against
* prototype pollution attacks. Import only what you need for tree-shaking.
*
* @module @hyperfrontend/immutable-api-utils/built-in-copy/encoding
*/
// Capture references at module initialization time
const _TextEncoder = globalThis.TextEncoder;
const _TextDecoder = globalThis.TextDecoder;
const _atob = globalThis.atob;
const _btoa = globalThis.btoa;
const _Reflect$1 = globalThis.Reflect;
/**
* (Safe copy) Creates a new TextEncoder using the captured TextEncoder constructor.
* Use this instead of `new TextEncoder()`.
*
* @returns A new TextEncoder instance.
*/
const createTextEncoder = () => _Reflect$1.construct(_TextEncoder, []);
/**
* (Safe copy) Creates a new TextDecoder using the captured TextDecoder constructor.
* Use this instead of `new TextDecoder()`.
*
* @param label - The encoding label (e.g., 'utf-8', 'utf-16'). Defaults to 'utf-8'.
* @param options - Optional TextDecoderOptions.
* @returns A new TextDecoder instance.
*/
const createTextDecoder = (label, options) => _Reflect$1.construct(_TextDecoder, [label, options]);
/**
* (Safe copy) Decodes a base64-encoded string.
* Use this instead of `atob()`.
*
* @param data - The base64-encoded string to decode.
* @returns The decoded string.
*/
const atob = (data) => _atob(data);
/**
* (Safe copy) Encodes a string to base64.
* Use this instead of `btoa()`.
*
* @param data - The string to encode.
* @returns The base64-encoded string.
*/
const btoa = (data) => _btoa(data);
/**
* Safe copies of TypedArray and ArrayBuffer built-ins via factory functions.
*
* Provides safe references to Uint8Array, Int8Array, ArrayBuffer, DataView, etc.
* These references are captured at module initialization time to protect against
* prototype pollution attacks. Import only what you need for tree-shaking.
*
* @module @hyperfrontend/immutable-api-utils/built-in-copy/typed-arrays
*/
// Capture references at module initialization time
const _ArrayBuffer = globalThis.ArrayBuffer;
const _SharedArrayBuffer = globalThis.SharedArrayBuffer;
const _Uint8Array = globalThis.Uint8Array;
const _Uint8ClampedArray = globalThis.Uint8ClampedArray;
const _Uint16Array = globalThis.Uint16Array;
const _Uint32Array = globalThis.Uint32Array;
const _Int8Array = globalThis.Int8Array;
const _Int16Array = globalThis.Int16Array;
const _Int32Array = globalThis.Int32Array;
const _Float32Array = globalThis.Float32Array;
const _Float64Array = globalThis.Float64Array;
const _BigInt64Array = globalThis.BigInt64Array;
const _BigUint64Array = globalThis.BigUint64Array;
const _Reflect = globalThis.Reflect;
function createUint8Array(arg, byteOffset, length) {
if (typeof arg === 'number') {
return _Reflect.construct(_Uint8Array, [arg]);
}
if (arg instanceof _ArrayBuffer || arg instanceof _SharedArrayBuffer) {
return _Reflect.construct(_Uint8Array, [arg, byteOffset, length]);
}
return _Reflect.construct(_Uint8Array, [arg]);
}
/**
* (Safe copy) Creates a new Uint8Array from an array-like or iterable object.
*/
_Uint8Array.from.bind(_Uint8Array);
/**
* (Safe copy) Creates a new Uint8Array from a variable number of arguments.
*/
_Uint8Array.of.bind(_Uint8Array);
/**
* (Safe copy) Creates a new Uint8ClampedArray from an array-like or iterable object.
*/
_Uint8ClampedArray.from.bind(_Uint8ClampedArray);
/**
* (Safe copy) Creates a new Uint8ClampedArray from a variable number of arguments.
*/
_Uint8ClampedArray.of.bind(_Uint8ClampedArray);
/**
* (Safe copy) Creates a new Uint16Array from an array-like or iterable object.
*/
_Uint16Array.from.bind(_Uint16Array);
/**
* (Safe copy) Creates a new Uint16Array from a variable number of arguments.
*/
_Uint16Array.of.bind(_Uint16Array);
/**
* (Safe copy) Creates a new Uint32Array from an array-like or iterable object.
*/
_Uint32Array.from.bind(_Uint32Array);
/**
* (Safe copy) Creates a new Uint32Array from a variable number of arguments.
*/
_Uint32Array.of.bind(_Uint32Array);
/**
* (Safe copy) Creates a new Int8Array from an array-like or iterable object.
*/
_Int8Array.from.bind(_Int8Array);
/**
* (Safe copy) Creates a new Int8Array from a variable number of arguments.
*/
_Int8Array.of.bind(_Int8Array);
/**
* (Safe copy) Creates a new Int16Array from an array-like or iterable object.
*/
_Int16Array.from.bind(_Int16Array);
/**
* (Safe copy) Creates a new Int16Array from a variable number of arguments.
*/
_Int16Array.of.bind(_Int16Array);
/**
* (Safe copy) Creates a new Int32Array from an array-like or iterable object.
*/
_Int32Array.from.bind(_Int32Array);
/**
* (Safe copy) Creates a new Int32Array from a variable number of arguments.
*/
_Int32Array.of.bind(_Int32Array);
/**
* (Safe copy) Creates a new Float32Array from an array-like or iterable object.
*/
_Float32Array.from.bind(_Float32Array);
/**
* (Safe copy) Creates a new Float32Array from a variable number of arguments.
*/
_Float32Array.of.bind(_Float32Array);
/**
* (Safe copy) Creates a new Float64Array from an array-like or iterable object.
*/
_Float64Array.from.bind(_Float64Array);
/**
* (Safe copy) Creates a new Float64Array from a variable number of arguments.
*/
_Float64Array.of.bind(_Float64Array);
/**
* (Safe copy) Creates a new BigInt64Array from an array-like or iterable object.
*/
_BigInt64Array.from.bind(_BigInt64Array);
/**
* (Safe copy) Creates a new BigInt64Array from a variable number of arguments.
*/
_BigInt64Array.of.bind(_BigInt64Array);
/**
* (Safe copy) Creates a new BigUint64Array from an array-like or iterable object.
*/
_BigUint64Array.from.bind(_BigUint64Array);
/**
* (Safe copy) Creates a new BigUint64Array from a variable number of arguments.
*/
_BigUint64Array.of.bind(_BigUint64Array);
createTextEncoder();
const UTF8_DECODER = createTextDecoder('utf8');
({
SIMPLE: {
ARRAY: createUint8Array([104, 101, 108, 108, 111]),
},
NON_ASCII: {
ARRAY: createUint8Array([
227,
129,
147, // こ
227,
130,
147, // ん
227,
129,
171, // に
227,
129,
161, // ち
227,
129,
175, // は
]),
},
EMPTY: {
ARRAY: createUint8Array([]),
},
});
/**
* Converts an ArrayBuffer to a UTF-8 encoded string.

@@ -30,3 +227,3 @@ *

function binaryStringToBytes(binaryStr) {
const bytes = new Uint8Array(binaryStr.length);
const bytes = createUint8Array(binaryStr.length);
for (let i = 0; i < binaryStr.length; i += 1) {

@@ -73,3 +270,3 @@ bytes[i] = binaryStr.charCodeAt(i);

function fromBase64(base64) {
return new TextDecoder().decode(binaryStringToBytes(atob(urlSafeBase64ToBase64(base64))));
return createTextDecoder().decode(binaryStringToBytes(atob(urlSafeBase64ToBase64(base64))));
}

@@ -84,3 +281,3 @@

function utf8StringToUint8Array(text) {
return new TextEncoder().encode(text);
return createTextEncoder().encode(text);
}

@@ -112,2 +309,20 @@

/**
* Safe copies of String built-in static methods.
*
* These references are captured at module initialization time to protect against
* prototype pollution attacks. Import only what you need for tree-shaking.
*
* @module @hyperfrontend/immutable-api-utils/built-in-copy/string
*/
// Capture references at module initialization time
const _String = globalThis.String;
// ============================================================================
// Static Methods
// ============================================================================
/**
* (Safe copy) Returns a string created from the specified sequence of UTF-16 code units.
*/
const fromCharCode = _String.fromCharCode;
/**
* Converts a Uint8Array to a Latin-1 "binary string" where

@@ -124,3 +339,3 @@ * each byte becomes a single charCode (0-255).

for (let i = 0; i < bytes.length; i += 1) {
binary += String.fromCharCode(bytes[i]);
binary += fromCharCode(bytes[i]);
}

@@ -140,3 +355,3 @@ return binary;

function toBase64(text, urlSafe = false, keepPadding = false) {
return base64ToUrlSafeBase64(btoa(bytesToBinaryString(new TextEncoder().encode(text))), { urlSafe, keepPadding });
return base64ToUrlSafeBase64(btoa(bytesToBinaryString(createTextEncoder().encode(text))), { urlSafe, keepPadding });
}

@@ -143,0 +358,0 @@

@@ -1,1 +0,1 @@

{"version":3,"file":"index.umd.js","sources":["../../../../../../../../../../libs/utils/string/src/lib/shared-consts.ts","../../../../../../../../../../libs/utils/string/src/lib/array-buffer-to-utf8-string/array-buffer-to-utf8-string.ts","../../../../../../../../../../libs/utils/string/src/lib/utils/binary-string-to-bytes.ts","../../../../../../../../../../libs/utils/string/src/lib/utils/url-safe-base64-to-base64.ts","../../../../../../../../../../libs/utils/string/src/lib/base64-to-uint8-array/browser/base64-to-uint8-array.ts","../../../../../../../../../../libs/utils/string/src/lib/from-base64/browser/from-base64.ts","../../../../../../../../../../libs/utils/string/src/lib/utf8-string-to-uint8-array/browser/utf8-string-to-uint8-array.ts","../../../../../../../../../../libs/utils/string/src/lib/utils/base64-to-url-safe-base64.ts","../../../../../../../../../../libs/utils/string/src/lib/utils/bytes-to-binary-string.ts","../../../../../../../../../../libs/utils/string/src/lib/to-base64/browser/to-base64.ts","../../../../../../../../../../libs/utils/string/src/lib/uint8-array-to-base64/browser/uint8-array-to-base64.ts","../../../../../../../../../../libs/utils/string/src/lib/uint8-array-to-utf8-string/uint8-array-to-utf8-string.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null,null],"names":[],"mappings":";;;;;;IAAuB,IAAI,WAAW;IAC/B,MAAM,YAAY,GAAG,IAAI,WAAW,CAAC,MAAM,CAAC;;ICCnD;;;;;IAKG;IACG,SAAU,uBAAuB,CAAC,UAAuB,EAAA;IAC7D,IAAA,OAAO,YAAY,CAAC,MAAM,CAAC,UAAU,CAAC;IACxC;;ICVA;;;;;;;IAOG;IACG,SAAU,mBAAmB,CAAC,SAAiB,EAAA;QACnD,MAAM,KAAK,GAAG,IAAI,UAAU,CAAC,SAAS,CAAC,MAAM,CAAC;IAC9C,IAAA,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,EAAE;YAC5C,KAAK,CAAC,CAAC,CAAC,GAAG,SAA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AAO,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;oBAC3B,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC;gBAC9B;YACF;QACF;IACA,IAAA,OAAO,MAAM;IACf;;ICrBA;;;;;;;;IAQG;IACG,SAAU,mBAAmB,CAAC,KAAiB,EAAA;QACnD,IAAI,MAAM,GAAG,EAAE;IACf,IAAA,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,EAAE;YACxC,MAAM,IAAI,MAAM,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QACzC;IACA,IAAA,OAAO,MAAM;IACf;;ICZA;;;;;;;;IAQG;IACG,SAAU,QAAQ,CAAC,IAAY,EAAE,OAAO,GAAG,KAAK,EAAE,WAAW,GAAG,KAAK,EAAA;QACzE,OAAO,qBAAqB,CAAC,IAAI,CAAC,mBAAmB,CAAC,IAAI,WAAW,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE,CAAC;IACnH;;ICXA;;;;;;;;IAQG;IACG,SAAU,kBAAkB,CAAC,KAAiB,EAAE,OAAO,GAAG,KAAK,EAAE,WAAW,GAAG,KAAK,EAAA;QACxF,OAAO,qBAAqB,CAAC,IAAI,CAAC,mBAAmB,CAAC,KAAK,CAAC,CAAC,EAAE;YAC7D,OAAO;YACP,WAAW;IACZ,KAAA,CAAC;IACJ;;ICfA;;;;;IAKG;IACG,SAAU,sBAAsB,CAAC,UAAsB,EAAA;IAC3D,IAAA,OAAO,YAAY,CAAC,MAAM,CAAC,UAAU,CAAC;IACxC;;;;;;;;;;;;;;"}
{"version":3,"file":"index.umd.js","sources":["../../../../../../../../../../libs/utils/immutable-api/src/built-in-copy/encoding/index.ts","../../../../../../../../../../libs/utils/immutable-api/src/built-in-copy/typed-arrays/index.ts","../../../../../../../../../../libs/utils/string/src/lib/shared-consts.ts","../../../../../../../../../../libs/utils/string/src/lib/array-buffer-to-utf8-string/array-buffer-to-utf8-string.ts","../../../../../../../../../../libs/utils/string/src/lib/utils/binary-string-to-bytes.ts","../../../../../../../../../../libs/utils/string/src/lib/utils/url-safe-base64-to-base64.ts","../../../../../../../../../../libs/utils/string/src/lib/base64-to-uint8-array/browser/base64-to-uint8-array.ts","../../../../../../../../../../libs/utils/string/src/lib/from-base64/browser/from-base64.ts","../../../../../../../../../../libs/utils/string/src/lib/utf8-string-to-uint8-array/browser/utf8-string-to-uint8-array.ts","../../../../../../../../../../libs/utils/string/src/lib/utils/base64-to-url-safe-base64.ts","../../../../../../../../../../libs/utils/immutable-api/src/built-in-copy/string/index.ts","../../../../../../../../../../libs/utils/string/src/lib/utils/bytes-to-binary-string.ts","../../../../../../../../../../libs/utils/string/src/lib/to-base64/browser/to-base64.ts","../../../../../../../../../../libs/utils/string/src/lib/uint8-array-to-base64/browser/uint8-array-to-base64.ts","../../../../../../../../../../libs/utils/string/src/lib/uint8-array-to-utf8-string/uint8-array-to-utf8-string.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],"names":["_Reflect"],"mappings":";;;;;;IAAA;;;;;;;;IAQG;IAEH;IACA,MAAM,YAAY,GAAG,UAAU,CAAC,WAAW;IAC3C,MAAM,YAAY,GAAG,UAAU,CAAC,WAAW;IAC3C,MAAM,KAAK,GAAG,UAAU,CAAC,IAAI;IAC7B,MAAM,KAAK,GAAG,UAAU,CAAC,IAAI;IAC7B,MAAMA,UAAQ,GAAG,UAAU,CAAC,OAAO;IAGnC;;;;;IAKG;IACI,MAAM,iBAAiB,GAAG,MAAgCA,UAAQ,CAAC,SAAS,CAAC,YAAY,EAAE,EAAE,CAAC;IAErG;;;;;;;IAOG;IACI,MAAM,iBAAiB,GAAG,CAAC,KAAc,EAAE,OAA4B,KAC/DA,UAAQ,CAAC,SAAS,CAAC,YAAY,EAAE,CAA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ined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((e="undefined"!=typeof globalThis?globalThis:e||self).HyperfrontendStringUtils={})}(this,function(e){"use strict";new TextEncoder;const n=new TextDecoder("utf8");function t(e){const n=new Uint8Array(e.length);for(let t=0;t<e.length;t+=1)n[t]=e.charCodeAt(t);return n}function r(e){let n=e.replaceAll("-","+").replaceAll("_","/");const t=n.length%4;return t&&(n=n.padEnd(n.length+(4-t),"=")),n}function o(e,{urlSafe:n,keepPadding:t}){if(n&&(e=e.replaceAll("+","-").replaceAll("/","_"),!1===t))for(;e.endsWith("=");)e=e.slice(0,-1);return e}function f(e){let n="";for(let t=0;t<e.length;t+=1)n+=String.fromCharCode(e[t]);return n}e.arrayBufferToUtf8String=function(e){return n.decode(e)},e.base64ToUint8Array=function(e){return t(atob(r(e)))},e.fromBase64=function(e){return(new TextDecoder).decode(t(atob(r(e))))},e.toBase64=function(e,n=!1,t=!1){return o(btoa(f((new TextEncoder).encode(e))),{urlSafe:n,keepPadding:t})},e.uint8ArrayToBase64=function(e,n=!1,t=!1){return o(btoa(f(e)),{urlSafe:n,keepPadding:t})},e.uint8ArrayToUtf8String=function(e){return n.decode(e)},e.utf8StringToUint8Array=function(e){return(new TextEncoder).encode(e)}});
!function(n,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports):"function"==typeof define&&define.amd?define(["exports"],r):r((n="undefined"!=typeof globalThis?globalThis:n||self).HyperfrontendStringUtils={})}(this,function(n){"use strict";const r=globalThis.TextEncoder,o=globalThis.TextDecoder,t=globalThis.atob,e=globalThis.btoa,i=globalThis.Reflect,l=()=>i.construct(r,[]),f=(n,r)=>i.construct(o,[n,r]),a=n=>t(n),d=n=>e(n),b=globalThis.ArrayBuffer,c=globalThis.SharedArrayBuffer,s=globalThis.Uint8Array,u=globalThis.Uint8ClampedArray,g=globalThis.Uint16Array,h=globalThis.Uint32Array,T=globalThis.Int8Array,y=globalThis.Int16Array,A=globalThis.Int32Array,p=globalThis.Float32Array,m=globalThis.Float64Array,U=globalThis.BigInt64Array,S=globalThis.BigUint64Array,B=globalThis.Reflect;function x(n,r,o){return"number"==typeof n?B.construct(s,[n]):n instanceof b||n instanceof c?B.construct(s,[n,r,o]):B.construct(s,[n])}s.from.bind(s),s.of.bind(s),u.from.bind(u),u.of.bind(u),g.from.bind(g),g.of.bind(g),h.from.bind(h),h.of.bind(h),T.from.bind(T),T.of.bind(T),y.from.bind(y),y.of.bind(y),A.from.bind(A),A.of.bind(A),p.from.bind(p),p.of.bind(p),m.from.bind(m),m.of.bind(m),U.from.bind(U),U.of.bind(U),S.from.bind(S),S.of.bind(S),l();const C=f("utf8");function I(n){const r=x(n.length);for(let o=0;o<n.length;o+=1)r[o]=n.charCodeAt(o);return r}function k(n){let r=n.replaceAll("-","+").replaceAll("_","/");const o=r.length%4;return o&&(r=r.padEnd(r.length+(4-o),"=")),r}function P(n,{urlSafe:r,keepPadding:o}){if(r&&(n=n.replaceAll("+","-").replaceAll("/","_"),!1===o))for(;n.endsWith("=");)n=n.slice(0,-1);return n}x([104,101,108,108,111]),x([227,129,147,227,130,147,227,129,171,227,129,161,227,129,175]),x([]);const E=globalThis.String.fromCharCode;function F(n){let r="";for(let o=0;o<n.length;o+=1)r+=E(n[o]);return r}n.arrayBufferToUtf8String=function(n){return C.decode(n)},n.base64ToUint8Array=function(n){return I(a(k(n)))},n.fromBase64=function(n){return f().decode(I(a(k(n))))},n.toBase64=function(n,r=!1,o=!1){return P(d(F(l().encode(n))),{urlSafe:r,keepPadding:o})},n.uint8ArrayToBase64=function(n,r=!1,o=!1){return P(d(F(n)),{urlSafe:r,keepPadding:o})},n.uint8ArrayToUtf8String=function(n){return C.decode(n)},n.utf8StringToUint8Array=function(n){return l().encode(n)}});
//# sourceMappingURL=index.umd.min.js.map

@@ -1,1 +0,1 @@

{"version":3,"file":"index.umd.min.js","sources":["../../../../../../../../../../libs/utils/string/src/lib/shared-consts.ts","../../../../../../../../../../libs/utils/string/src/lib/utils/binary-string-to-bytes.ts","../../../../../../../../../../libs/utils/string/src/lib/utils/url-safe-base64-to-base64.ts","../../../../../../../../../../libs/utils/string/src/lib/utils/base64-to-url-safe-base64.ts","../../../../../../../../../../libs/utils/string/src/lib/utils/bytes-to-binary-string.ts","../../../../../../../../../../libs/utils/string/src/lib/array-buffer-to-utf8-string/array-buffer-to-utf8-string.ts","../../../../../../../../../../libs/utils/string/src/lib/base64-to-uint8-array/browser/base64-to-uint8-array.ts","../../../../../../../../../../libs/utils/string/src/lib/from-base64/browser/from-base64.ts","../../../../../../../../../../libs/utils/string/src/lib/to-base64/browser/to-base64.ts","../../../../../../../../../../libs/utils/string/src/lib/uint8-array-to-base64/browser/uint8-array-to-base64.ts","../../../../../../../../../../libs/utils/string/src/lib/uint8-array-to-utf8-string/uint8-array-to-utf8-string.ts","../../../../../../../../../../libs/utils/string/src/lib/utf8-string-to-uint8-array/browser/utf8-string-to-uint8-array.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null,null],"names":["TextEncoder","UTF8_DECODER","TextDecoder","binaryStringToBytes","binaryStr","bytes","Uint8Array","length","i","charCodeAt","urlSafeBase64ToBase64","urlSafeBase64","normalizedBase64","replaceAll","pad","padEnd","base64ToUrlSafeBase64","base64","urlSafe","keepPadding","endsWith","slice","bytesToBinaryString","binary","String","fromCharCode","uint8Array","decode","atob","text","btoa","encode"],"mappings":"+PAAuB,IAAIA,YACpB,MAAMC,EAAe,IAAIC,YAAY,QCOtC,SAAUC,EAAoBC,GAClC,MAAMC,EAAQ,IAAIC,WAAWF,EAAUG,QACvC,IAAK,IAAIC,EAAI,EAAGA,EAAIJ,EAAUG,OAAQC,GAAK,EACzCH,EAAMG,GAAKJ,EAAUK,WAAWD,GAElC,OAAOH,CACT,CCPM,SAAUK,EAAsBC,GACpC,IAAIC,EAAmBD,EAAcE,WAAW,IAAK,KAAKA,WAAW,IAAK,KAC1E,MAAMC,EAAMF,EAAiBL,OAAS,EAItC,OAHIO,IACFF,EAAmBA,EAAiBG,OAAOH,EAAiBL,QAAU,EAAIO,GAAM,MAE3EF,CACT,CCJM,SAAUI,EAAsBC,GAAgBC,QAAEA,EAAOC,YAAEA,IAC/D,GAAID,IACFD,EAASA,EAAOJ,WAAW,IAAK,KAAKA,WAAW,IAAK,MACjC,IAAhBM,GAEF,KAAOF,EAAOG,SAAS,MACrBH,EAASA,EAAOI,MAAM,GAAG,GAI/B,OAAOJ,CACT,CCZM,SAAUK,EAAoBjB,GAClC,IAAIkB,EAAS,GACb,IAAK,IAAIf,EAAI,EAAGA,EAAIH,EAAME,OAAQC,GAAK,EACrCe,GAAUC,OAAOC,aAAapB,EAAMG,IAEtC,OAAOe,CACT,2BCPM,SAAkCG,GACtC,OAAOzB,EAAa0B,OAAOD,EAC7B,uBCAM,SAA6BT,GACjC,OAAOd,EAAoByB,KAAKlB,EAAsBO,IACxD,eCFM,SAAqBA,GACzB,OAAO,IAAIf,aAAcyB,OAAOxB,EAAoByB,KAAKlB,EAAsBO,KACjF,aCAM,SAAmBY,EAAcX,GAAU,EAAOC,GAAc,GACpE,OAAOH,EAAsBc,KAAKR,GAAoB,IAAItB,aAAc+B,OAAOF,KAAS,CAAEX,UAASC,eACrG,uBCFM,SAA6Bd,EAAmBa,GAAU,EAAOC,GAAc,GACnF,OAAOH,EAAsBc,KAAKR,EAAoBjB,IAAS,CAC7Da,UACAC,eAEJ,2BCTM,SAAiCO,GACrC,OAAOzB,EAAa0B,OAAOD,EAC7B,2BCJM,SAAiCG,GACrC,OAAO,IAAI7B,aAAc+B,OAAOF,EAClC"}
{"version":3,"file":"index.umd.min.js","sources":["../../../../../../../../../../libs/utils/immutable-api/src/built-in-copy/encoding/index.ts","../../../../../../../../../../libs/utils/immutable-api/src/built-in-copy/typed-arrays/index.ts","../../../../../../../../../../libs/utils/string/src/lib/shared-consts.ts","../../../../../../../../../../libs/utils/string/src/lib/utils/binary-string-to-bytes.ts","../../../../../../../../../../libs/utils/string/src/lib/utils/url-safe-base64-to-base64.ts","../../../../../../../../../../libs/utils/string/src/lib/utils/base64-to-url-safe-base64.ts","../../../../../../../../../../libs/utils/immutable-api/src/built-in-copy/string/index.ts","../../../../../../../../../../libs/utils/string/src/lib/utils/bytes-to-binary-string.ts","../../../../../../../../../../libs/utils/string/src/lib/array-buffer-to-utf8-string/array-buffer-to-utf8-string.ts","../../../../../../../../../../libs/utils/string/src/lib/base64-to-uint8-array/browser/base64-to-uint8-array.ts","../../../../../../../../../../libs/utils/string/src/lib/from-base64/browser/from-base64.ts","../../../../../../../../../../libs/utils/string/src/lib/to-base64/browser/to-base64.ts","../../../../../../../../../../libs/utils/string/src/lib/uint8-array-to-base64/browser/uint8-array-to-base64.ts","../../../../../../../../../../libs/utils/string/src/lib/uint8-array-to-utf8-string/uint8-array-to-utf8-string.ts","../../../../../../../../../../libs/utils/string/src/lib/utf8-string-to-uint8-array/browser/utf8-string-to-uint8-array.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],"names":["_TextEncoder","globalThis","TextEncoder","_TextDecoder","TextDecoder","_atob","atob","_btoa","btoa","_Reflect","Reflect","createTextEncoder","construct","createTextDecoder","label","options","data","_ArrayBuffer","ArrayBuffer","_SharedArrayBuffer","SharedArrayBuffer","_Uint8Array","Uint8Array","_Uint8ClampedArray","Uint8ClampedArray","_Uint16Array","Uint16Array","_Uint32Array","Uint32Array","_Int8Array","Int8Array","_Int16Array","Int16Array","_Int32Array","Int32Array","_Float32Array","Float32Array","_Float64Array","Float64Array","_BigInt64Array","BigInt64Array","_BigUint64Array","BigUint64Array","createUint8Array","arg","byteOffset","length","from","bind","of","UTF8_DECODER","binaryStringToBytes","binaryStr","bytes","i","charCodeAt","urlSafeBase64ToBase64","urlSafeBase64","normalizedBase64","replaceAll","pad","padEnd","base64ToUrlSafeBase64","base64","urlSafe","keepPadding","endsWith","slice","fromCharCode","String","bytesToBinaryString","binary","uint8Array","decode","text","encode"],"mappings":"+PAWA,MAAMA,EAAeC,WAAWC,YAC1BC,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Aaf,EAAMC,IAE/B,OAAOiB,CACT,2BCTM,SAAkCC,GACtC,OAAOtB,EAAauB,OAAOD,EAC7B,uBCCM,SAA6BT,GACjC,OAAOZ,EAAoB7C,EAAKkD,EAAsBO,IACxD,eCFM,SAAqBA,GACzB,OAAOlD,IAAoB4D,OAAOtB,EAAoB7C,EAAKkD,EAAsBO,KACnF,aCAM,SAAmBW,EAAcV,GAAU,EAAOC,GAAc,GACpE,OAAOH,EAAsBtD,EAAK8D,EAAoB3D,IAAoBgE,OAAOD,KAAS,CAAEV,UAASC,eACvG,uBCFM,SAA6BZ,EAAmBW,GAAU,EAAOC,GAAc,GACnF,OAAOH,EAAsBtD,EAAK8D,EAAoBjB,IAAS,CAC7DW,UACAC,eAEJ,2BCVM,SAAiCO,GACrC,OAAOtB,EAAauB,OAAOD,EAC7B,2BCFM,SAAiCE,GACrC,OAAO/D,IAAoBgE,OAAOD,EACpC"}

@@ -5,2 +5,9 @@ # Changelog

## [0.0.3](https://github.com/AndrewRedican/hyperfrontend/compare/lib-string-utils@0.0.2...lib-string-utils@0.0.3) (2026-03-02)
### Bug Fixes
* **lib-string-utils:** correct package exports ([22b3a61](https://github.com/AndrewRedican/hyperfrontend/commit/22b3a6194e41faa38684aff3d8a9617420f08ed8))
## [0.0.2](https://github.com/AndrewRedican/hyperfrontend/compare/lib-string-utils@0.0.1...lib-string-utils@0.0.2) (2026-02-26)

@@ -7,0 +14,0 @@

@@ -1,1 +0,1 @@

{"version":3,"file":"base64-to-uint8-array.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../libs/utils/string/src/lib/base64-to-uint8-array/browser/base64-to-uint8-array.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,UAAU,CAE7D"}
{"version":3,"file":"base64-to-uint8-array.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../libs/utils/string/src/lib/base64-to-uint8-array/browser/base64-to-uint8-array.ts"],"names":[],"mappings":"AAIA;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,UAAU,CAE7D"}

@@ -1,1 +0,1 @@

{"version":3,"file":"base64-to-uint8-array.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../libs/utils/string/src/lib/base64-to-uint8-array/node/base64-to-uint8-array.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,UAAU,CAG7D"}
{"version":3,"file":"base64-to-uint8-array.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../libs/utils/string/src/lib/base64-to-uint8-array/node/base64-to-uint8-array.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,UAAU,CAG7D"}

@@ -1,1 +0,1 @@

{"version":3,"file":"from-base64.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../libs/utils/string/src/lib/from-base64/browser/from-base64.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAEjD"}
{"version":3,"file":"from-base64.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../libs/utils/string/src/lib/from-base64/browser/from-base64.ts"],"names":[],"mappings":"AAIA;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAEjD"}

@@ -21,13 +21,13 @@ export declare const ENCODER: TextEncoder;

readonly STRING: "hello";
readonly ARRAY: Uint8Array<ArrayBuffer>;
readonly ARRAY: Uint8Array<ArrayBufferLike>;
};
readonly NON_ASCII: {
readonly STRING: "こんにちは";
readonly ARRAY: Uint8Array<ArrayBuffer>;
readonly ARRAY: Uint8Array<ArrayBufferLike>;
};
readonly EMPTY: {
readonly STRING: "";
readonly ARRAY: Uint8Array<ArrayBuffer>;
readonly ARRAY: Uint8Array<ArrayBufferLike>;
};
};
//# sourceMappingURL=shared-consts.d.ts.map

@@ -1,1 +0,1 @@

{"version":3,"file":"shared-consts.d.ts","sourceRoot":"","sources":["../../../../../../../../../libs/utils/string/src/lib/shared-consts.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,aAAoB,CAAA;AACxC,eAAO,MAAM,YAAY,aAA0B,CAAA;AAEnD,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;CAcpC,CAAA;AAED,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;CA6BpC,CAAA"}
{"version":3,"file":"shared-consts.d.ts","sourceRoot":"","sources":["../../../../../../../../../libs/utils/string/src/lib/shared-consts.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,aAAsB,CAAA;AAC1C,eAAO,MAAM,YAAY,aAA4B,CAAA;AAErD,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;CAcpC,CAAA;AAED,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;CA6BpC,CAAA"}

@@ -1,1 +0,1 @@

{"version":3,"file":"to-base64.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../libs/utils/string/src/lib/to-base64/browser/to-base64.ts"],"names":[],"mappings":"AAGA;;;;;;;;GAQG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,UAAQ,EAAE,WAAW,UAAQ,GAAG,MAAM,CAEnF"}
{"version":3,"file":"to-base64.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../libs/utils/string/src/lib/to-base64/browser/to-base64.ts"],"names":[],"mappings":"AAIA;;;;;;;;GAQG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,UAAQ,EAAE,WAAW,UAAQ,GAAG,MAAM,CAEnF"}

@@ -1,1 +0,1 @@

{"version":3,"file":"uint8-array-to-base64.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../libs/utils/string/src/lib/uint8-array-to-base64/browser/uint8-array-to-base64.ts"],"names":[],"mappings":"AAGA;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,UAAU,EAAE,OAAO,UAAQ,EAAE,WAAW,UAAQ,GAAG,MAAM,CAKlG"}
{"version":3,"file":"uint8-array-to-base64.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../libs/utils/string/src/lib/uint8-array-to-base64/browser/uint8-array-to-base64.ts"],"names":[],"mappings":"AAIA;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,UAAU,EAAE,OAAO,UAAQ,EAAE,WAAW,UAAQ,GAAG,MAAM,CAKlG"}

@@ -1,1 +0,1 @@

{"version":3,"file":"utf8-string-to-uint8-array.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../libs/utils/string/src/lib/utf8-string-to-uint8-array/browser/utf8-string-to-uint8-array.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,MAAM,GAAG,UAAU,CAE/D"}
{"version":3,"file":"utf8-string-to-uint8-array.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../libs/utils/string/src/lib/utf8-string-to-uint8-array/browser/utf8-string-to-uint8-array.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,MAAM,GAAG,UAAU,CAE/D"}

@@ -1,1 +0,1 @@

{"version":3,"file":"utf8-string-to-uint8-array.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../libs/utils/string/src/lib/utf8-string-to-uint8-array/node/utf8-string-to-uint8-array.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,MAAM,GAAG,UAAU,CAE/D"}
{"version":3,"file":"utf8-string-to-uint8-array.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../libs/utils/string/src/lib/utf8-string-to-uint8-array/node/utf8-string-to-uint8-array.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,MAAM,GAAG,UAAU,CAE/D"}

@@ -9,3 +9,3 @@ /**

*/
export declare function binaryStringToBytes(binaryStr: string): Uint8Array<ArrayBuffer>;
export declare function binaryStringToBytes(binaryStr: string): Uint8Array<ArrayBufferLike>;
//# sourceMappingURL=binary-string-to-bytes.d.ts.map

@@ -1,1 +0,1 @@

{"version":3,"file":"binary-string-to-bytes.d.ts","sourceRoot":"","sources":["../../../../../../../../../../libs/utils/string/src/lib/utils/binary-string-to-bytes.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,MAAM,2BAMpD"}
{"version":3,"file":"binary-string-to-bytes.d.ts","sourceRoot":"","sources":["../../../../../../../../../../libs/utils/string/src/lib/utils/binary-string-to-bytes.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,MAAM,+BAMpD"}

@@ -1,1 +0,1 @@

{"version":3,"file":"bytes-to-binary-string.d.ts","sourceRoot":"","sources":["../../../../../../../../../../libs/utils/string/src/lib/utils/bytes-to-binary-string.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,UAAU,GAAG,MAAM,CAM7D"}
{"version":3,"file":"bytes-to-binary-string.d.ts","sourceRoot":"","sources":["../../../../../../../../../../libs/utils/string/src/lib/utils/bytes-to-binary-string.ts"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,UAAU,GAAG,MAAM,CAM7D"}
'use strict';
new TextEncoder();
const UTF8_DECODER = new TextDecoder('utf8');
/**
* Safe copies of encoding built-ins via factory functions.
*
* Provides safe references to TextEncoder, TextDecoder, atob, and btoa.
* These references are captured at module initialization time to protect against
* prototype pollution attacks. Import only what you need for tree-shaking.
*
* @module @hyperfrontend/immutable-api-utils/built-in-copy/encoding
*/
// Capture references at module initialization time
const _TextEncoder = globalThis.TextEncoder;
const _TextDecoder = globalThis.TextDecoder;
const _Reflect$1 = globalThis.Reflect;
/**
* (Safe copy) Creates a new TextEncoder using the captured TextEncoder constructor.
* Use this instead of `new TextEncoder()`.
*
* @returns A new TextEncoder instance.
*/
const createTextEncoder = () => _Reflect$1.construct(_TextEncoder, []);
/**
* (Safe copy) Creates a new TextDecoder using the captured TextDecoder constructor.
* Use this instead of `new TextDecoder()`.
*
* @param label - The encoding label (e.g., 'utf-8', 'utf-16'). Defaults to 'utf-8'.
* @param options - Optional TextDecoderOptions.
* @returns A new TextDecoder instance.
*/
const createTextDecoder = (label, options) => _Reflect$1.construct(_TextDecoder, [label, options]);
/**
* Safe copies of TypedArray and ArrayBuffer built-ins via factory functions.
*
* Provides safe references to Uint8Array, Int8Array, ArrayBuffer, DataView, etc.
* These references are captured at module initialization time to protect against
* prototype pollution attacks. Import only what you need for tree-shaking.
*
* @module @hyperfrontend/immutable-api-utils/built-in-copy/typed-arrays
*/
// Capture references at module initialization time
const _ArrayBuffer = globalThis.ArrayBuffer;
const _SharedArrayBuffer = globalThis.SharedArrayBuffer;
const _Uint8Array = globalThis.Uint8Array;
const _Uint8ClampedArray = globalThis.Uint8ClampedArray;
const _Uint16Array = globalThis.Uint16Array;
const _Uint32Array = globalThis.Uint32Array;
const _Int8Array = globalThis.Int8Array;
const _Int16Array = globalThis.Int16Array;
const _Int32Array = globalThis.Int32Array;
const _Float32Array = globalThis.Float32Array;
const _Float64Array = globalThis.Float64Array;
const _BigInt64Array = globalThis.BigInt64Array;
const _BigUint64Array = globalThis.BigUint64Array;
const _Reflect = globalThis.Reflect;
function createUint8Array(arg, byteOffset, length) {
if (typeof arg === 'number') {
return _Reflect.construct(_Uint8Array, [arg]);
}
if (arg instanceof _ArrayBuffer || arg instanceof _SharedArrayBuffer) {
return _Reflect.construct(_Uint8Array, [arg, byteOffset, length]);
}
return _Reflect.construct(_Uint8Array, [arg]);
}
/**
* (Safe copy) Creates a new Uint8Array from an array-like or iterable object.
*/
_Uint8Array.from.bind(_Uint8Array);
/**
* (Safe copy) Creates a new Uint8Array from a variable number of arguments.
*/
_Uint8Array.of.bind(_Uint8Array);
/**
* (Safe copy) Creates a new Uint8ClampedArray from an array-like or iterable object.
*/
_Uint8ClampedArray.from.bind(_Uint8ClampedArray);
/**
* (Safe copy) Creates a new Uint8ClampedArray from a variable number of arguments.
*/
_Uint8ClampedArray.of.bind(_Uint8ClampedArray);
/**
* (Safe copy) Creates a new Uint16Array from an array-like or iterable object.
*/
_Uint16Array.from.bind(_Uint16Array);
/**
* (Safe copy) Creates a new Uint16Array from a variable number of arguments.
*/
_Uint16Array.of.bind(_Uint16Array);
/**
* (Safe copy) Creates a new Uint32Array from an array-like or iterable object.
*/
_Uint32Array.from.bind(_Uint32Array);
/**
* (Safe copy) Creates a new Uint32Array from a variable number of arguments.
*/
_Uint32Array.of.bind(_Uint32Array);
/**
* (Safe copy) Creates a new Int8Array from an array-like or iterable object.
*/
_Int8Array.from.bind(_Int8Array);
/**
* (Safe copy) Creates a new Int8Array from a variable number of arguments.
*/
_Int8Array.of.bind(_Int8Array);
/**
* (Safe copy) Creates a new Int16Array from an array-like or iterable object.
*/
_Int16Array.from.bind(_Int16Array);
/**
* (Safe copy) Creates a new Int16Array from a variable number of arguments.
*/
_Int16Array.of.bind(_Int16Array);
/**
* (Safe copy) Creates a new Int32Array from an array-like or iterable object.
*/
_Int32Array.from.bind(_Int32Array);
/**
* (Safe copy) Creates a new Int32Array from a variable number of arguments.
*/
_Int32Array.of.bind(_Int32Array);
/**
* (Safe copy) Creates a new Float32Array from an array-like or iterable object.
*/
_Float32Array.from.bind(_Float32Array);
/**
* (Safe copy) Creates a new Float32Array from a variable number of arguments.
*/
_Float32Array.of.bind(_Float32Array);
/**
* (Safe copy) Creates a new Float64Array from an array-like or iterable object.
*/
_Float64Array.from.bind(_Float64Array);
/**
* (Safe copy) Creates a new Float64Array from a variable number of arguments.
*/
_Float64Array.of.bind(_Float64Array);
/**
* (Safe copy) Creates a new BigInt64Array from an array-like or iterable object.
*/
_BigInt64Array.from.bind(_BigInt64Array);
/**
* (Safe copy) Creates a new BigInt64Array from a variable number of arguments.
*/
_BigInt64Array.of.bind(_BigInt64Array);
/**
* (Safe copy) Creates a new BigUint64Array from an array-like or iterable object.
*/
_BigUint64Array.from.bind(_BigUint64Array);
/**
* (Safe copy) Creates a new BigUint64Array from a variable number of arguments.
*/
_BigUint64Array.of.bind(_BigUint64Array);
createTextEncoder();
const UTF8_DECODER = createTextDecoder('utf8');
({
SIMPLE: {
ARRAY: createUint8Array([104, 101, 108, 108, 111]),
},
NON_ASCII: {
ARRAY: createUint8Array([
227,
129,
147, // こ
227,
130,
147, // ん
227,
129,
171, // に
227,
129,
161, // ち
227,
129,
175, // は
]),
},
EMPTY: {
ARRAY: createUint8Array([]),
},
});
/**
* Converts an ArrayBuffer to a UTF-8 encoded string.

@@ -41,3 +220,3 @@ *

const buffer = Buffer.from(urlSafeBase64ToBase64(base64), 'base64');
return new Uint8Array(buffer.buffer, buffer.byteOffset, buffer.byteLength);
return createUint8Array(buffer.buffer, buffer.byteOffset, buffer.byteLength);
}

@@ -63,3 +242,3 @@

function utf8StringToUint8Array(text) {
return new Uint8Array(Buffer.from(text, 'utf8'));
return createUint8Array(Buffer.from(text, 'utf8'));
}

@@ -66,0 +245,0 @@

@@ -1,1 +0,1 @@

{"version":3,"file":"index.cjs.js","sources":["../../../../../../../../../../libs/utils/string/src/lib/shared-consts.ts","../../../../../../../../../../libs/utils/string/src/lib/array-buffer-to-utf8-string/array-buffer-to-utf8-string.ts","../../../../../../../../../../libs/utils/string/src/lib/utils/url-safe-base64-to-base64.ts","../../../../../../../../../../libs/utils/string/src/lib/base64-to-uint8-array/node/base64-to-uint8-array.ts","../../../../../../../../../../libs/utils/string/src/lib/from-base64/node/from-base64.ts","../../../../../../../../../../libs/utils/string/src/lib/utf8-string-to-uint8-array/node/utf8-string-to-uint8-array.ts","../../../../../../../../../../libs/utils/string/src/lib/utils/base64-to-url-safe-base64.ts","../../../../../../../../../../libs/utils/string/src/lib/to-base64/node/to-base64.ts","../../../../../../../../../../libs/utils/string/src/lib/uint8-array-to-base64/node/uint8-array-to-base64.ts","../../../../../../../../../../libs/utils/string/src/lib/uint8-array-to-utf8-string/uint8-array-to-utf8-string.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null],"names":[],"mappings":";;AAAuB,IAAI,WAAW;AAC/B,MAAM,YAAY,GAAG,IAAI,WAAW,CAAC,MAAM,CAAC;;ACCnD;;;;;AAKG;AACG,SAAU,uBAAuB,CAAC,UAAuB,EAAA;AAC7D,IAAA,OAAO,YAAY,CAAC,MAAM,CAAC,UAAU,CAAC;AACxC;;ACVA;;;;;;AAMG;AACG,SAAU,qBAAqB,CAAC,aAAqB,EAAA;AACzD,IAAA,IAAI,gBAAgB,GAAG,aAAa,CAAC,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC;AAC9E,IAAA,MAAM,GAAG,GAAG,gBAAgB,CAAC,MAAM,GAAG,CAAC;IACvC,IAAI,GAAG,EAAE;AACP,QAAA,gBAAgB,GAAG,gBAAgB,CAAC,MAAM,CAAC,gBAAgB,CAAC,MAAM,IAAI,CAAC,GAAG,GAAG,CAAC,EAAE,GAAG,CAAC;IACtF;AACA,IAAA,OAAO,gBAAgB;AACzB;;ACZA;;;;;;AAMG;AACG,SAAU,kBAAkB,CAAC,MAAc,EAAA;AAC/C,IAAA,MAAM,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC,qBAAqB,CAAC,MAAM,CAAC,EAAE,QAAQ,CAAC;AACnE,IAAA,OAAO,IAAI,UAAU,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,UAAU,CAAC;AAC5E;;ACVA;;;;;;AAMG;AACG,SAAU,UAAU,CAAC,IAAY,EAAA;AACrC,IAAA,OAA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AAQ,CAAC,QAAQ,CAAC,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE,CAAC;AAC1I;;ACXA;;;;;AAKG;AACG,SAAU,sBAAsB,CAAC,UAAsB,EAAA;AAC3D,IAAA,OAAO,YAAY,CAAC,MAAM,CAAC,UAAU,CAAC;AACxC;;;;;;;;;;"}
{"version":3,"file":"index.cjs.js","sources":["../../../../../../../../../../libs/utils/immutable-api/src/built-in-copy/encoding/index.ts","../../../../../../../../../../libs/utils/immutable-api/src/built-in-copy/typed-arrays/index.ts","../../../../../../../../../../libs/utils/string/src/lib/shared-consts.ts","../../../../../../../../../../libs/utils/string/src/lib/array-buffer-to-utf8-string/array-buffer-to-utf8-string.ts","../../../../../../../../../../libs/utils/string/src/lib/utils/url-safe-base64-to-base64.ts","../../../../../../../../../../libs/utils/string/src/lib/base64-to-uint8-array/node/base64-to-uint8-array.ts","../../../../../../../../../../libs/utils/string/src/lib/from-base64/node/from-base64.ts","../../../../../../../../../../libs/utils/string/src/lib/utf8-string-to-uint8-array/node/utf8-string-to-uint8-array.ts","../../../../../../../../../../libs/utils/string/src/lib/utils/base64-to-url-safe-base64.ts","../../../../../../../../../../libs/utils/string/src/lib/to-base64/node/to-base64.ts","../../../../../../../../../../libs/utils/string/src/lib/uint8-array-to-base64/node/uint8-array-to-base64.ts","../../../../../../../../../../libs/utils/string/src/lib/uint8-array-to-utf8-string/uint8-array-to-utf8-string.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null,null],"names":["_Reflect"],"mappings":";;AAAA;;;;;;;;AAQG;AAEH;AACA,MAAM,YAAY,GAAG,UAAU,CAAC,WAAW;AAC3C,MAAM,YAAY,GAAG,UAAU,CAAC,WAAW;AAG3C,MAAMA,UAAQ,GAAG,UAAU,CAAC,OAAO;AAGnC;;;;;AAKG;AACI,MAAM,iBAAiB,GAAG,MAAgCA,UAAQ,CAAC,SAAS,CAAC,YAAY,EAAE,EAAE,CAAC;AAErG;;;;;;;AAOG;AACI,MAAM,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IAAI,EAAE,MAAM,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE;QACzE,OAAO;QACP,WAAW;AACZ,KAAA,CAAC;AACJ;;ACdA;;;;;;;;AAQG;AACG,SAAU,kBAAkB,CAAC,KAAiB,EAAE,OAAO,GAAG,KAAK,EAAE,WAAW,GAAG,KAAK,EAAA;AACxF,IAAA,OAAO,qBAAqB,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,UAAU,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE,CAAC;AAC1I;;ACXA;;;;;AAKG;AACG,SAAU,sBAAsB,CAAC,UAAsB,EAAA;AAC3D,IAAA,OAAO,YAAY,CAAC,MAAM,CAAC,UAAU,CAAC;AACxC;;;;;;;;;;"}

@@ -1,5 +0,184 @@

new TextEncoder();
const UTF8_DECODER = new TextDecoder('utf8');
/**
* Safe copies of encoding built-ins via factory functions.
*
* Provides safe references to TextEncoder, TextDecoder, atob, and btoa.
* These references are captured at module initialization time to protect against
* prototype pollution attacks. Import only what you need for tree-shaking.
*
* @module @hyperfrontend/immutable-api-utils/built-in-copy/encoding
*/
// Capture references at module initialization time
const _TextEncoder = globalThis.TextEncoder;
const _TextDecoder = globalThis.TextDecoder;
const _Reflect$1 = globalThis.Reflect;
/**
* (Safe copy) Creates a new TextEncoder using the captured TextEncoder constructor.
* Use this instead of `new TextEncoder()`.
*
* @returns A new TextEncoder instance.
*/
const createTextEncoder = () => _Reflect$1.construct(_TextEncoder, []);
/**
* (Safe copy) Creates a new TextDecoder using the captured TextDecoder constructor.
* Use this instead of `new TextDecoder()`.
*
* @param label - The encoding label (e.g., 'utf-8', 'utf-16'). Defaults to 'utf-8'.
* @param options - Optional TextDecoderOptions.
* @returns A new TextDecoder instance.
*/
const createTextDecoder = (label, options) => _Reflect$1.construct(_TextDecoder, [label, options]);
/**
* Safe copies of TypedArray and ArrayBuffer built-ins via factory functions.
*
* Provides safe references to Uint8Array, Int8Array, ArrayBuffer, DataView, etc.
* These references are captured at module initialization time to protect against
* prototype pollution attacks. Import only what you need for tree-shaking.
*
* @module @hyperfrontend/immutable-api-utils/built-in-copy/typed-arrays
*/
// Capture references at module initialization time
const _ArrayBuffer = globalThis.ArrayBuffer;
const _SharedArrayBuffer = globalThis.SharedArrayBuffer;
const _Uint8Array = globalThis.Uint8Array;
const _Uint8ClampedArray = globalThis.Uint8ClampedArray;
const _Uint16Array = globalThis.Uint16Array;
const _Uint32Array = globalThis.Uint32Array;
const _Int8Array = globalThis.Int8Array;
const _Int16Array = globalThis.Int16Array;
const _Int32Array = globalThis.Int32Array;
const _Float32Array = globalThis.Float32Array;
const _Float64Array = globalThis.Float64Array;
const _BigInt64Array = globalThis.BigInt64Array;
const _BigUint64Array = globalThis.BigUint64Array;
const _Reflect = globalThis.Reflect;
function createUint8Array(arg, byteOffset, length) {
if (typeof arg === 'number') {
return _Reflect.construct(_Uint8Array, [arg]);
}
if (arg instanceof _ArrayBuffer || arg instanceof _SharedArrayBuffer) {
return _Reflect.construct(_Uint8Array, [arg, byteOffset, length]);
}
return _Reflect.construct(_Uint8Array, [arg]);
}
/**
* (Safe copy) Creates a new Uint8Array from an array-like or iterable object.
*/
_Uint8Array.from.bind(_Uint8Array);
/**
* (Safe copy) Creates a new Uint8Array from a variable number of arguments.
*/
_Uint8Array.of.bind(_Uint8Array);
/**
* (Safe copy) Creates a new Uint8ClampedArray from an array-like or iterable object.
*/
_Uint8ClampedArray.from.bind(_Uint8ClampedArray);
/**
* (Safe copy) Creates a new Uint8ClampedArray from a variable number of arguments.
*/
_Uint8ClampedArray.of.bind(_Uint8ClampedArray);
/**
* (Safe copy) Creates a new Uint16Array from an array-like or iterable object.
*/
_Uint16Array.from.bind(_Uint16Array);
/**
* (Safe copy) Creates a new Uint16Array from a variable number of arguments.
*/
_Uint16Array.of.bind(_Uint16Array);
/**
* (Safe copy) Creates a new Uint32Array from an array-like or iterable object.
*/
_Uint32Array.from.bind(_Uint32Array);
/**
* (Safe copy) Creates a new Uint32Array from a variable number of arguments.
*/
_Uint32Array.of.bind(_Uint32Array);
/**
* (Safe copy) Creates a new Int8Array from an array-like or iterable object.
*/
_Int8Array.from.bind(_Int8Array);
/**
* (Safe copy) Creates a new Int8Array from a variable number of arguments.
*/
_Int8Array.of.bind(_Int8Array);
/**
* (Safe copy) Creates a new Int16Array from an array-like or iterable object.
*/
_Int16Array.from.bind(_Int16Array);
/**
* (Safe copy) Creates a new Int16Array from a variable number of arguments.
*/
_Int16Array.of.bind(_Int16Array);
/**
* (Safe copy) Creates a new Int32Array from an array-like or iterable object.
*/
_Int32Array.from.bind(_Int32Array);
/**
* (Safe copy) Creates a new Int32Array from a variable number of arguments.
*/
_Int32Array.of.bind(_Int32Array);
/**
* (Safe copy) Creates a new Float32Array from an array-like or iterable object.
*/
_Float32Array.from.bind(_Float32Array);
/**
* (Safe copy) Creates a new Float32Array from a variable number of arguments.
*/
_Float32Array.of.bind(_Float32Array);
/**
* (Safe copy) Creates a new Float64Array from an array-like or iterable object.
*/
_Float64Array.from.bind(_Float64Array);
/**
* (Safe copy) Creates a new Float64Array from a variable number of arguments.
*/
_Float64Array.of.bind(_Float64Array);
/**
* (Safe copy) Creates a new BigInt64Array from an array-like or iterable object.
*/
_BigInt64Array.from.bind(_BigInt64Array);
/**
* (Safe copy) Creates a new BigInt64Array from a variable number of arguments.
*/
_BigInt64Array.of.bind(_BigInt64Array);
/**
* (Safe copy) Creates a new BigUint64Array from an array-like or iterable object.
*/
_BigUint64Array.from.bind(_BigUint64Array);
/**
* (Safe copy) Creates a new BigUint64Array from a variable number of arguments.
*/
_BigUint64Array.of.bind(_BigUint64Array);
createTextEncoder();
const UTF8_DECODER = createTextDecoder('utf8');
({
SIMPLE: {
ARRAY: createUint8Array([104, 101, 108, 108, 111]),
},
NON_ASCII: {
ARRAY: createUint8Array([
227,
129,
147, // こ
227,
130,
147, // ん
227,
129,
171, // に
227,
129,
161, // ち
227,
129,
175, // は
]),
},
EMPTY: {
ARRAY: createUint8Array([]),
},
});
/**
* Converts an ArrayBuffer to a UTF-8 encoded string.

@@ -39,3 +218,3 @@ *

const buffer = Buffer.from(urlSafeBase64ToBase64(base64), 'base64');
return new Uint8Array(buffer.buffer, buffer.byteOffset, buffer.byteLength);
return createUint8Array(buffer.buffer, buffer.byteOffset, buffer.byteLength);
}

@@ -61,3 +240,3 @@

function utf8StringToUint8Array(text) {
return new Uint8Array(Buffer.from(text, 'utf8'));
return createUint8Array(Buffer.from(text, 'utf8'));
}

@@ -64,0 +243,0 @@

@@ -1,1 +0,1 @@

{"version":3,"file":"index.esm.js","sources":["../../../../../../../../../../libs/utils/string/src/lib/shared-consts.ts","../../../../../../../../../../libs/utils/string/src/lib/array-buffer-to-utf8-string/array-buffer-to-utf8-string.ts","../../../../../../../../../../libs/utils/string/src/lib/utils/url-safe-base64-to-base64.ts","../../../../../../../../../../libs/utils/string/src/lib/base64-to-uint8-array/node/base64-to-uint8-array.ts","../../../../../../../../../../libs/utils/string/src/lib/from-base64/node/from-base64.ts","../../../../../../../../../../libs/utils/string/src/lib/utf8-string-to-uint8-array/node/utf8-string-to-uint8-array.ts","../../../../../../../../../../libs/utils/string/src/lib/utils/base64-to-url-safe-base64.ts","../../../../../../../../../../libs/utils/string/src/lib/to-base64/node/to-base64.ts","../../../../../../../../../../libs/utils/string/src/lib/uint8-array-to-base64/node/uint8-array-to-base64.ts","../../../../../../../../../../libs/utils/string/src/lib/uint8-array-to-utf8-string/uint8-array-to-utf8-string.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null],"names":[],"mappings":"AAAuB,IAAI,WAAW;AAC/B,MAAM,YAAY,GAAG,IAAI,WAAW,CAAC,MAAM,CAAC;;ACCnD;;;;;AAKG;AACG,SAAU,uBAAuB,CAAC,UAAuB,EAAA;AAC7D,IAAA,OAAO,YAAY,CAAC,MAAM,CAAC,UAAU,C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,CAAC,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC;AACzD,QAAA,IAAI,WAAW,KAAK,KAAK,EAAE;;AAEzB,YAAA,OAAO,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;gBAC3B,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC;YAC9B;QACF;IACF;AACA,IAAA,OAAO,MAAM;AACf;;ACnBA;;;;;;;;AAQG;AACG,SAAU,QAAQ,CAAC,IAAY,EAAE,OAAO,GAAG,KAAK,EAAE,WAAW,GAAG,KAAK,EAAA;AACzE,IAAA,OAAO,qBAAqB,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE;QACzE,OAAO;QACP,WAAW;AACZ,KAAA,CAAC;AACJ;;ACdA;;;;;;;;AAQG;AACG,SAAU,kBAAkB,CAAC,KAAiB,EAAE,OAAO,GAAG,KAAK,EAAE,WAAW,GAAG,KAAK,EAAA;AACxF,IAAA,OAAO,qBAAqB,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,UAAU,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE,CAAC;AAC1I;;ACXA;;;;;AAKG;AACG,SAAU,sBAAsB,CAAC,UAAsB,EAAA;AAC3D,IAAA,OAAO,YAAY,CAAC,MAAM,CAAC,UAAU,CAAC;AACxC;;;;"}
{"version":3,"file":"index.esm.js","sources":["../../../../../../../../../../libs/utils/immutable-api/src/built-in-copy/encoding/index.ts","../../../../../../../../../../libs/utils/immutable-api/src/built-in-copy/typed-arrays/index.ts","../../../../../../../../../../libs/utils/string/src/lib/shared-consts.ts","../../../../../../../../../../libs/utils/string/src/lib/array-buffer-to-utf8-string/array-buffer-to-utf8-string.ts","../../../../../../../../../../libs/utils/string/src/lib/utils/url-safe-base64-to-base64.ts","../../../../../../../../../../libs/utils/string/src/lib/base64-to-uint8-array/node/base64-to-uint8-array.ts","../../../../../../../../../../libs/utils/string/src/lib/from-base64/node/from-base64.ts","../../../../../../../../../../libs/utils/string/src/lib/utf8-string-to-uint8-array/node/utf8-string-to-uint8-array.ts","../../../../../../../../../../libs/utils/string/src/lib/utils/base64-to-url-safe-base64.ts","../../../../../../../../../../libs/utils/string/src/lib/to-base64/node/to-base64.ts","../../../../../../../../../../libs/utils/string/src/lib/uint8-array-to-base64/node/uint8-array-to-base64.ts","../../../../../../../../../../libs/utils/string/src/lib/uint8-array-to-utf8-string/uint8-array-to-utf8-string.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null,null],"names":["_Reflect"],"mappings":"AAAA;;;;;;;;AAQG;AAEH;AACA,MAAM,YAAY,GAAG,UAAU,CAAC,WAAW;AAC3C,MAAM,YAAY,GAAG,UAAU,CAAC,WAAW;AAG3C,MAAMA,UAAQ,GAAG,UAAU,CAAC,OAAO;AAGnC;;;;;AAKG;AACI,MAAM,iBAAiB,GAAG,MAAgCA,UAAQ,CAAC,SAAS,CAAC,YAAY,EAAE,EAAE,CAAC;AAErG;;;;;;;AAOG;AACI,MAAM,iBAAiB,GAAG,CAAC,KAAc,EAAE,OAA4B,KAC/DA,UAAQ,CAAC,SAAS,CAAC,YAAY,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;;ACnCjE;;;;;;;;AAQG;AAEH;AACA,MAAM,YAAY,GAAG,UAAU,CAAC,WAAW;AAC3C,MAAM,kBAAkB,GAAG,UAAU,CAAC,iBAAiB;AAEvD,MAAM,WAAW,GAAG,UAAU,CAAC,UAAU;AACzC,MAAM,kBAAkB,GAAG,UAAU,CAAC,iBAAiB;AACvD,MAAM,YAAY,GAAG,UAAU,CAAC,WAAW;AAC3C,MAAM,YAAY,GAAG,UAAU,CAAC,WAAW;AAC3C,MAAM,UAAU,GAAG,UAAU,CAAC,SAAS;AAC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sB,CAAC,UAAsB,EAAA;AAC3D,IAAA,OAAO,YAAY,CAAC,MAAM,CAAC,UAAU,CAAC;AACxC;;;;"}
{
"name": "@hyperfrontend/string-utils",
"version": "0.0.2",
"version": "0.0.3",
"description": "Isomorphic string encoding utilities with unified APIs for browser and Node.js environments.",

@@ -5,0 +5,0 @@ "license": "MIT",