{"version":3,"sources":["jsdelivr-header.js","/npm/es2024.object@1.0.1/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACLA,aAEA,OAAO,QACL,OAAO,SAsBP,SAAiB,EAAO,GACtB,MAAM,EAAM,OAAO,OAAO,MAE1B,IAAI,EAAQ,EACZ,IAAK,MAAM,KAAQ,EAAO,CACxB,MAAM,EAAM,EAAS,EAAM,MAC1B,EAAI,KAAS,EAAI,GAAO,KAAK,KAAK,EACrC,CAEA,OAAO,CACT","file":"/npm/es2024.object@1.0.1/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/es2024.object@1.0.1/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","// @ts-check\r\n'use strict';\r\n\r\nObject.groupBy =\r\n  Object.groupBy ||\r\n  /**\r\n   * Groups the elements of a given iterable according to the string values\r\n   * returned by a provided callback function.\r\n   *\r\n   * The returned object has separate properties for each group, containing\r\n   * arrays with the elements in the group.\r\n   *\r\n   * [ES](https://tc39.es/ecma262/#sec-object.groupby)\r\n   * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object/groupBy)\r\n   * [Type](https://github.com/microsoft/TypeScript/blob/main/src/lib/es2024.object.d.ts)\r\n   *\r\n   * @template {PropertyKey} K, T\r\n   *\r\n   * @param {Iterable<T>} items - whose elements will be grouped\r\n   * @param {(item: T, index: number) => K} callback - a function to execute for each element in the iterable.\r\n   *\r\n   * It should return a value that can get coerced into a property key (string or symbol)\r\n   * indicating the group of the current element.\r\n   *\r\n   * @returns {Partial<Record<K, T[]>>}\r\n   */\r\n  function groupBy(items, callback) {\r\n    const obj = Object.create(null);\r\n\r\n    let index = 0;\r\n    for (const item of items) {\r\n      const key = callback(item, index++);\r\n      (obj[key] || (obj[key] = [])).push(item);\r\n    }\r\n\r\n    return obj;\r\n  };\r\n"]}