var n, a;
function u() {
  if (a) return n;
  a = 1;
  var s = Math.pow(2, 32), g = function(t) {
    var r = new DataView(t.buffer, t.byteOffset, t.byteLength), i = {
      version: t[0],
      flags: new Uint8Array(t.subarray(1, 4)),
      references: [],
      referenceId: r.getUint32(4),
      timescale: r.getUint32(8)
    }, e = 12;
    i.version === 0 ? (i.earliestPresentationTime = r.getUint32(e), i.firstOffset = r.getUint32(e + 4), e += 8) : (i.earliestPresentationTime = r.getUint32(e) * s + r.getUint32(e + 4), i.firstOffset = r.getUint32(e + 8) * s + r.getUint32(e + 12), e += 16), e += 2;
    var f = r.getUint16(e);
    for (e += 2; f > 0; e += 12, f--)
      i.references.push({
        referenceType: (t[e] & 128) >>> 7,
        referencedSize: r.getUint32(e) & 2147483647,
        subsegmentDuration: r.getUint32(e + 4),
        startsWithSap: !!(t[e + 8] & 128),
        sapType: (t[e + 8] & 112) >>> 4,
        sapDeltaTime: r.getUint32(e + 8) & 268435455
      });
    return i;
  };
  return n = g, n;
}
export {
  u as __require
};
