{"version":3,"sources":["jsdelivr-header.js","/npm/murmurhash2@0.1.0/lib/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,aAGA,OAAO,eAAe,QAAS,aAAc,CAAE,OAAO,IACtD,QAAQ,aAAU,EAalB,IAAI,EAAI,WACJ,QAAU,IAAI,YASlB,SAAS,QAAQ,EAAK,GAKlB,IAJA,IAAI,EAAO,QAAQ,OAAO,GACtB,EAAM,EAAK,OACX,EAAI,EAAO,EACX,EAAI,EACD,GAAO,GAAG,CACb,IAAI,EAAe,IAAV,EAAK,IACI,IAAZ,IAAO,KAAc,GACT,IAAZ,IAAO,KAAc,IACT,IAAZ,IAAO,KAAc,GAC3B,GAAS,MAAJ,GAAc,KAAQ,IAAM,IAAM,EAAK,QAAW,IAGvD,GAAU,MAAJ,GAAc,KAAQ,IAAM,IAAM,EAAK,QAAW,KADxD,GAAS,OADT,GAAK,IAAM,KACQ,KAAQ,IAAM,IAAM,EAAK,QAAW,KAEvD,GAAO,IACL,CACN,CACA,OAAQ,GACJ,KAAK,EACD,IAAoB,IAAd,EAAK,EAAI,KAAc,GACjC,KAAK,EACD,IAAoB,IAAd,EAAK,EAAI,KAAc,EACjC,KAAK,EAED,GAAS,OADT,GAAe,IAAV,EAAK,KACS,KAAQ,IAAM,IAAM,EAAK,QAAW,IAK/D,OAFA,GAAS,OADT,GAAK,IAAM,KACQ,KAAQ,IAAM,IAAM,EAAK,QAAW,KACvD,GAAK,IAAM,MACE,CACjB,CACA,QAAQ,QAAU","file":"/npm/murmurhash2@0.1.0/lib/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/murmurhash2@0.1.0/lib/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","\"use strict\";\n// Copyright (c) murmurhash2 Contributors\n// Distributed under the terms of the Modified BSD License.\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.murmur2 = void 0;\n// Most of the implementation below is adapted from the following repository:\n// https://github.com/garycourt/murmurhash-js/blob/master/murmurhash2_gc.js\n// Which has the following MIT License:\n//\n// Copyright (c) 2011 Gary Court\n// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"),\n// to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,\n// and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\n//  TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\nvar m = 0x5bd1e995;\nvar encoder = new TextEncoder();\n/**\n * Calculate the murmurhash2 for a given string and seed.\n *\n * @param str The string to calculate the Murmur2 hash for.\n * @param seed The seed.\n *\n * @returns The Murmurhash2 hash.\n */\nfunction murmur2(str, seed) {\n    var data = encoder.encode(str);\n    var len = data.length;\n    var h = seed ^ len;\n    var i = 0;\n    while (len >= 4) {\n        var k = (data[i] & 0xff) |\n            ((data[++i] & 0xff) << 8) |\n            ((data[++i] & 0xff) << 16) |\n            ((data[++i] & 0xff) << 24);\n        k = (k & 0xffff) * m + ((((k >>> 16) * m) & 0xffff) << 16);\n        k ^= k >>> 24;\n        k = (k & 0xffff) * m + ((((k >>> 16) * m) & 0xffff) << 16);\n        h = ((h & 0xffff) * m + ((((h >>> 16) * m) & 0xffff) << 16)) ^ k;\n        len -= 4;\n        ++i;\n    }\n    switch (len) {\n        case 3:\n            h ^= (data[i + 2] & 0xff) << 16;\n        case 2:\n            h ^= (data[i + 1] & 0xff) << 8;\n        case 1:\n            h ^= data[i] & 0xff;\n            h = (h & 0xffff) * m + ((((h >>> 16) * m) & 0xffff) << 16);\n    }\n    h ^= h >>> 13;\n    h = (h & 0xffff) * m + ((((h >>> 16) * m) & 0xffff) << 16);\n    h ^= h >>> 15;\n    return h >>> 0;\n}\nexports.murmur2 = murmur2;\n"]}