{"version":3,"sources":["jsdelivr-header.js","/npm/current-range@1.1.1/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACFA,IAAI,iBAAmB,QAAQ,qBAa/B,SAAS,aAAa,EAAK,GACvB,IAAI,EAAM,iBAAiB,GAE3B,OADA,GAAS,GACJ,GAAO,EAAI,YAAc,EACnB,KACJ,EAAI,WAAW,EAC1B,CACA,OAAO,QAAU","file":"/npm/current-range@1.1.1/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/current-range@1.1.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","/// <reference path='require.d.ts' />\n/**\n * TypeScript dependencies.\n */\nvar currentSelection = require('current-selection');\n/**\n * Returns a `Range` instance from the given Window, Document, DOM\n * Element or Selection instance.\n *\n * Defaults to index `0`, but you may specify another index if desired.\n *\n * @param {Window|Document|Element|Selection} doc - Window, Document, DOM element,\n *   or Selection instance to get the current selection Range from.\n * @return {Range} returns a Range instance, or `null` if there's no\n *   current selection.\n * @public\n */\nfunction currentRange(doc, index) {\n    var sel = currentSelection(doc);\n    index |= 0;\n    if (!sel || sel.rangeCount <= index)\n        return null;\n    return sel.getRangeAt(index);\n}\nmodule.exports = currentRange;\n"]}