hunk.code_window: import listScrollParents from './listScrollParents';
   import getScrollSum from './getScrollSum';
   import getOffsetParent from './getOffsetParent';
   import unwrapVirtualElement from './unwrapVirtualElement';
   import { isElement } from './instanceOf';
   // Returns the width, height and offsets of the provided element relative to the
   // offsetParent
   export default (
     element: Element | VirtualElement,
  
hunk.labels: keep keep keep keep replace keep keep keep keep keep
hunk.after_edit: import { isElement, isHTMLElement } from './instanceOf';
  
hunk.file_path: src/dom-utils/getRectRelativeToOffsetParent.js
hunk.type: replace
file: {
    "name": "@popperjs/core",
    "version": "2.0.0-next.15",
    "description": "A kickass library used to manage poppers in web applications",
    "main": "dist/cjs/popper.js",
    "main:umd": "dist/umd/popper.js",
    "module": "lib/index.js",
    "unpkg": "dist/umd/popper.min.js",
    "author": "Federico Zivolo <federico.zivolo@gmail.com>",
    "license": "MIT",
    "repository": "github:popperjs/popper.js",
    "scripts": {
      "clean": "rimraf lib && rimraf dist && rimraf test/visual/dist",
      "test": "yarn test:unit && yarn test:functional",
      "test:unit": "jest --coverage src",
      "test:functional": "DEV_PORT=`get-port` jest tests/functional",
      "test:flow": "flow",
      "test:typescript": "tsc --project tests/typescript/tsconfig.json",
      "test:eslint": "eslint .",
      "dev": "NODE_ENV=development concurrently 'yarn serve' 'yarn build:dev --watch'",
      "serve": "serve -l ${DEV_PORT:-5000} tests/visual",
      "build": "yarn clean && yarn build:es && yarn build:bundles && yarn build:typescript",
      "build:es": "babel src -d lib --ignore '**/*.test.js','**/__mocks__'",
      "build:bundles": "rollup -c .config/rollup.config.js",
      "build:dev": "NODE_ENV=development babel src -d tests/visual/dist",
      "build:typescript": "rimraf dist/typescript; flow-to-ts \"src/**/*.js\" --write --inline-utility-types; node typescript/ts.js --project .config/tsconfig.json --outDir dist/typescript; rimraf \"src/**/*.ts\"",
      "prepublishOnly": "yarn build",
      "postinstall": "patch-package"
    },
    "files": [
      "index.d.ts",
      "/src",
      "/dist",
      "/lib"
    ],
    "sideEffects": false,
    "prettier": {
      "semi": true,
      "trailingComma": "es5",
      "singleQuote": true,
      "proseWrap": "always"
    },
    "babel": {
      "extends": "./.config/babel.config"
    },
    "jest": {
      "preset": "./.config/jest.config"
    },
    "eslintConfig": {
      "extends": "./.config/eslint.config"
    },
    "devDependencies": {
      "@ampproject/rollup-plugin-closure-compiler": "^0.13.0",
      "@babel/cli": "^7.7.5",
      "@babel/core": "^7.7.5",
      "@babel/plugin-transform-flow-strip-types": "^7.7.4",
      "@babel/plugin-transform-runtime": "^7.7.6",
      "@babel/preset-env": "^7.7.6",
      "@babel/runtime": "^7.7.6",
      "@khanacademy/flow-to-ts": "^0.1.4",
      "arg": "^4.1.2",
      "babel-core": "7.0.0-bridge.0",
      "babel-eslint": "^10.0.3",
      "babel-jest": "^24.9.0",
      "babel-plugin-add-import-extension": "^1.1.0",
      "babel-plugin-dev-expression": "^0.2.2",
      "babel-plugin-transform-inline-environment-variables": "^0.4.3",
      "chalk": "^3.0.0",
      "concurrently": "^5.0.0",
      "cross-env": "^6.0.3",
      "dotenv": "^8.2.0",
      "eslint-plugin-flowtype": "^4.5.2",
      "eslint-plugin-unused-imports": "^0.1.1",
      "flow-bin": "0.113.0",
      "get-port-cli": "^2.0.0",
      "glob": "^7.1.6",
      "husky": "^3.1.0",
      "jest": "^24.9.0",
      "jest-environment-puppeteer": "^4.3.0",
      "jest-image-snapshot": "^2.11.1",
      "jest-puppeteer": "^4.3.0",
      "patch-package": "^6.2.0",
      "poster": "^0.0.9",
      "prettier": "^1.19.1",
      "pretty-quick": "^2.0.1",
      "puppeteer": "^2.0.0",
      "puppeteer-firefox": "^0.5.0",
      "rollup": "^1.27.9",
      "rollup-plugin-babel": "^4.3.3",
      "rollup-plugin-bundle-size": "^1.0.2",
      "rollup-plugin-flow-entry": "^0.3.3",
      "rollup-plugin-license": "^0.13.0",
      "rollup-plugin-replace": "^2.1.0",
      "rollup-plugin-terser": "^5.1.2",
      "rollup-plugin-visualizer": "^3.3.0",
      "serve": "^11.2.0",
      "trim-right": "^1.0.1",
      "typescript": "^3.7.3",
      "utility-types": "^3.10.0"
    },
    "husky": {
      "hooks": {
        "pre-commit": "pretty-quick --staged"
      }
    }
  }
  