@xuda.io/runtime-bundle 1.0.976 → 1.0.977

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -33176,6 +33176,18 @@ func.UI.screen.create_container = async function (SESSION_ID, $root_container, n
33176
33176
  // return hashHex;
33177
33177
  // }
33178
33178
 
33179
+ // Returns a 32-bit unsigned integer hash of a string (FNV-1a)
33180
+ function hash32(str) {
33181
+ let h = 0x811c9dc5; // FNV offset basis
33182
+ for (let i = 0; i < str.length; i++) {
33183
+ h ^= str.charCodeAt(i);
33184
+ // multiply by FNV prime (2^24 + 2^8 + 0x93) with 32-bit overflow
33185
+ h += (h << 1) + (h << 4) + (h << 7) + (h << 8) + (h << 24);
33186
+ }
33187
+ // Convert to unsigned 32-bit
33188
+ return h >>> 0;
33189
+ }
33190
+
33179
33191
  function hash32hex(str) {
33180
33192
  return (hash32(str) >>> 0).toString(16).padStart(8, '0');
33181
33193
  }