[
  {
    "path": ".babelrc",
    "content": "{\n  \"exclude\": [\"node_modules/**\", \"bundled/**\", \"performance/**\", \"logo/**\", \"examples/**\"],\n  \"presets\": [\n    [\n      \"@babel/preset-env\",\n      {\n        \"modules\": false,\n        \"shippedProposals\": true\n      }\n    ]\n  ],\n  \"plugins\": [\"@babel/plugin-proposal-class-properties\"]\n}\n"
  },
  {
    "path": ".editorconfig",
    "content": ""
  },
  {
    "path": ".eslintignore",
    "content": "# /node_modules/* and /bower_components/* in the project root are ignored by default\n\n# Ignore\n.github/*\nbundled/*\nexamples/*\nperformance/*\nlogo/*\n"
  },
  {
    "path": ".eslintrc.json",
    "content": "{\n    \"env\": {\n        \"browser\": true,\n        \"es6\": true,\n        \"node\": true\n    },\n    \"extends\": \"standard\",\n    \"globals\": {\n        \"Atomics\": \"readonly\",\n        \"SharedArrayBuffer\": \"readonly\"\n    },\n    \"parserOptions\": {\n        \"ecmaVersion\": 2018,\n        \"sourceType\": \"module\"\n    },\n    \"rules\": {}\n}\n"
  },
  {
    "path": ".github/FUNDING.yml",
    "content": "# These are supported funding model platforms\n\n# github: dalisoft\npatreon: dalisoft # Replace with a single Patreon username\nopen_collective: # Replace with a single Open Collective username\nko_fi: # Replace with a single Ko-fi username\ntidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel\ncommunity_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry\nliberapay: # dalisoft # Replace with a single Liberapay username\nissuehunt: # Replace with a single IssueHunt username\notechie: # Replace with a single Otechie username\ncustom: # ['https://www.buymeacoffee.com/dalisoft', 'https://paypal.me/dalisoft']\n"
  },
  {
    "path": ".github/ISSUE_TEMPLATE/bug_report.md",
    "content": "---\nname: Bug report\nabout: Create a report to help us improve\ntitle: ''\nlabels: ''\nassignees: ''\n\n---\n\n**Describe the bug**\nA clear and concise description of what the bug is.\n\n**To Reproduce**\nSteps to reproduce the behavior:\n1. Go to '...'\n2. Click on '....'\n3. Scroll down to '....'\n4. See error\n\n**Expected behavior**\nA clear and concise description of what you expected to happen.\n\n**Screenshots**\nIf applicable, add screenshots to help explain your problem.\n\n**Desktop (please complete the following information):**\n - OS: [e.g. iOS]\n - Browser [e.g. chrome, safari]\n - Version [e.g. 22]\n\n**Smartphone (please complete the following information):**\n - Device: [e.g. iPhone6]\n - OS: [e.g. iOS8.1]\n - Browser [e.g. stock browser, safari]\n - Version [e.g. 22]\n\n**Additional context**\nAdd any other context about the problem here.\n"
  },
  {
    "path": ".github/ISSUE_TEMPLATE/feature_request.md",
    "content": "---\nname: Feature request\nabout: Suggest an idea for this project\ntitle: ''\nlabels: ''\nassignees: ''\n\n---\n\n**Is your feature request related to a problem? Please describe.**\nA clear and concise description of what the problem is. Ex. I'm always frustrated when [...]\n\n**Describe the solution you'd like**\nA clear and concise description of what you want to happen.\n\n**Describe alternatives you've considered**\nA clear and concise description of any alternative solutions or features you've considered.\n\n**Additional context**\nAdd any other context or screenshots about the feature request here.\n"
  },
  {
    "path": ".github/ISSUE_TEMPLATE/regular-issue.md",
    "content": "---\nname: Regular issue\nabout: For regular issue\ntitle: ''\nlabels: ''\nassignees: ''\n\n---\n\n|Issue name|Issue description|Issue Demo URL\n|---|---|---|\n|     |     |     |\n\n### Related\nThis issue is related to\n\n- [ ] README\n- [ ] package.json\n- [ ] Demos\n- [ ] Core features/functionality\n- [ ] Tween class\n- [ ] Easing\n- [ ] Interpolation\n- [ ] Timeline class\n- [ ] LICENSE\n- [ ] ABOUT COPYRIGHT VIOLATION (be careful before checking this...!)\n\n- or provide something else (from es6-tween files...)\n\n### What you excepted?\n- Describe your result of research or idea...\n\n### NOTE\n- Please add read code, docs, files, issues, PR list for avoid duplicating existing question, bug or something else...\n"
  },
  {
    "path": ".gitignore",
    "content": "dist/\ndocs/\nfull/\nbundled/\nlite/\nguide_notes/\nnode_modules/\nnpm-debug.log\nyarn-error.log\n.vscode\n.idea\n"
  },
  {
    "path": ".npmignore",
    "content": ".gitignore\n.git\n.github\nbower.json\ntsconfig.json\ntslint.json\nassets\ndocs\nexamples\nlogo\nperformance\nguide_notes\nCONTRIBUTING.md\nISSUE_TEMPLATE.md\nAPI.md\n.travis.yml\nyarn-error.log\n.vscode\n.idea\n"
  },
  {
    "path": ".prettierrc",
    "content": "{\n    \"singleQuote\": true,\n    \"printWidth\": 120,\n    \"trailingComma\": \"es5\",\n    \"arrowParens\": \"always\",\n    \"bracketSpacing\": true\n}\n"
  },
  {
    "path": ".travis.yml",
    "content": "language: node_js\ncache:\n  directories:\n    - node_modules\nnotifications:\n  email: false\nnode_js:\n  - '12'\nbefore_script:\n  - npm prune\nscript:\n  - npm test\n"
  },
  {
    "path": "API.md",
    "content": "<a name=\"TWEEN\"></a>\n\n## TWEEN : <code>object</code>\nLightweight, effecient and modular ES6 version of tween.js\n\n**Kind**: global namespace  \n**License**: MIT  \n**Copyright**: 2019 @dalisoft and es6-tween contributors  \n**Example**  \n```js\n// ES6\nconst {add, remove, isRunning, autoPlay} = TWEEN\n```\n\n* [TWEEN](#TWEEN) : <code>object</code>\n    * [.Easing](#TWEEN.Easing) : <code>object</code>\n    * [.Interpolation](#TWEEN.Interpolation) : <code>object</code>\n    * [.Interpolator](#TWEEN.Interpolator) ⇒ <code>function</code>\n    * [.Timeline](#TWEEN.Timeline) : <code>object</code>\n    * [.Tween](#TWEEN.Tween) : <code>object</code>\n        * [.Tween#setMaxListener(count)](#TWEEN.Tween.Tween+setMaxListener)\n        * [.Tween#on(event, callback)](#TWEEN.Tween.Tween+on)\n        * [.Tween#once(event, callback)](#TWEEN.Tween.Tween+once)\n        * [.Tween#off(event, callback)](#TWEEN.Tween.Tween+off)\n        * [.Tween#emit(event)](#TWEEN.Tween.Tween+emit)\n        * [.Tween#isPlaying()](#TWEEN.Tween.Tween+isPlaying) ⇒ <code>boolean</code>\n        * [.Tween#isStarted()](#TWEEN.Tween.Tween+isStarted) ⇒ <code>boolean</code>\n        * [.Tween#reverse([state])](#TWEEN.Tween.Tween+reverse)\n        * [.Tween#reversed()](#TWEEN.Tween.Tween+reversed) ⇒ <code>boolean</code>\n        * [.Tween#pause()](#TWEEN.Tween.Tween+pause)\n        * [.Tween#play()](#TWEEN.Tween.Tween+play)\n        * [.Tween#restart([noDelay])](#TWEEN.Tween.Tween+restart)\n        * ~~[.Tween#seek(time, [keepPlaying])](#TWEEN.Tween.Tween+seek)~~\n        * ~~[.Tween#duration(amount)](#TWEEN.Tween.Tween+duration)~~\n        * [.Tween#to(properties, [duration])](#TWEEN.Tween.Tween+to)\n        * [.Tween#start(time)](#TWEEN.Tween.Tween+start)\n        * [.Tween#stop()](#TWEEN.Tween.Tween+stop)\n        * [.Tween#delay(amount)](#TWEEN.Tween.Tween+delay)\n        * [.Tween#chainedTweens(arguments)](#TWEEN.Tween.Tween+chainedTweens)\n        * [.Tween#repeat(amount)](#TWEEN.Tween.Tween+repeat)\n        * [.Tween#reverseDelay(amount)](#TWEEN.Tween.Tween+reverseDelay)\n        * [.Tween#yoyo(state, [_easingReverse])](#TWEEN.Tween.Tween+yoyo)\n        * [.Tween#easing(_easingFunction)](#TWEEN.Tween.Tween+easing)\n        * [.Tween#interpolation(_interpolationFunction)](#TWEEN.Tween.Tween+interpolation)\n        * [.Tween#update(time, [preserve], [forceTime])](#TWEEN.Tween.Tween+update)\n    * [.Plugins](#TWEEN.Plugins) : <code>object</code>\n    * [.now](#TWEEN.now) ⇒\n    * [.add(tween)](#TWEEN.add)\n    * [.onTick(fn)](#TWEEN.onTick)\n    * [.FrameThrottle(frameCount)](#TWEEN.FrameThrottle)\n    * [.ToggleLagSmoothing(state)](#TWEEN.ToggleLagSmoothing)\n    * [.autoPlay(state)](#TWEEN.autoPlay)\n    * [.removeAll()](#TWEEN.removeAll)\n    * [.get(tween)](#TWEEN.get) ⇒ <code>Tween</code>\n    * [.has(tween)](#TWEEN.has) ⇒ <code>Boolean</code>\n    * [.remove(tween)](#TWEEN.remove)\n    * [.update([time], [preserve])](#TWEEN.update)\n    * [.isRunning()](#TWEEN.isRunning) ⇒ <code>Boolean</code>\n    * [.isLagSmoothing()](#TWEEN.isLagSmoothing) ⇒ <code>Boolean</code>\n\n<a name=\"TWEEN.Easing\"></a>\n\n### TWEEN.Easing : <code>object</code>\nList of full easings\n\n**Kind**: static namespace of [<code>TWEEN</code>](#TWEEN)  \n**Example**  \n```js\nimport {Tween, Easing} from 'es6-tween'\n\n// then set via new Tween({x:0}).to({x:100}, 1000).easing(Easing.Quadratic.InOut).start()\n```\n<a name=\"TWEEN.Interpolation\"></a>\n\n### TWEEN.Interpolation : <code>object</code>\nList of full Interpolation\n\n**Kind**: static namespace of [<code>TWEEN</code>](#TWEEN)  \n**Example**  \n```js\nimport {Interpolation, Tween} from 'es6-tween'\n\nlet bezier = Interpolation.Bezier\nnew Tween({x:0}).to({x:[0, 4, 8, 12, 15, 20, 30, 40, 20, 40, 10, 50]}, 1000).interpolation(bezier).start()\n```\n<a name=\"TWEEN.Interpolator\"></a>\n\n### TWEEN.Interpolator ⇒ <code>function</code>\nTween helper for plugins\n\n**Kind**: static namespace of [<code>TWEEN</code>](#TWEEN)  \n**Returns**: <code>function</code> - Returns function that accepts number between `0-1`  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| a | <code>any</code> | Initial position |\n| b | <code>any</code> | End position |\n\n<a name=\"TWEEN.Timeline\"></a>\n\n### TWEEN.Timeline : <code>object</code>\nTimeline main constructor.\n\nIt works same as `Tween` instance, using `.repeat`, `.restart` or `etc` works like a `Tween`, so please see `Tween` class for methods\n\n**Kind**: static namespace of [<code>TWEEN</code>](#TWEEN)  \n**Extends**: <code>Tween</code>  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| [params] | <code>Object</code> | Default params for new tweens |\n\n**Example**  \n```js\nlet tl = new Timeline({delay:200})\n```\n<a name=\"TWEEN.Tween\"></a>\n\n### TWEEN.Tween : <code>object</code>\nTween main constructor\n\n**Kind**: static namespace of [<code>TWEEN</code>](#TWEEN)  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| node | <code>Object</code> \\| <code>Element</code> | Node Element or Tween initial object |\n| [object] | <code>Object</code> | If Node Element is using, second argument is used for Tween initial object |\n\n**Example**  \n```js\nlet tween = new Tween(myNode, {width:'100px'}).to({width:'300px'}, 2000).start()\n```\n\n* [.Tween](#TWEEN.Tween) : <code>object</code>\n    * [.Tween#setMaxListener(count)](#TWEEN.Tween.Tween+setMaxListener)\n    * [.Tween#on(event, callback)](#TWEEN.Tween.Tween+on)\n    * [.Tween#once(event, callback)](#TWEEN.Tween.Tween+once)\n    * [.Tween#off(event, callback)](#TWEEN.Tween.Tween+off)\n    * [.Tween#emit(event)](#TWEEN.Tween.Tween+emit)\n    * [.Tween#isPlaying()](#TWEEN.Tween.Tween+isPlaying) ⇒ <code>boolean</code>\n    * [.Tween#isStarted()](#TWEEN.Tween.Tween+isStarted) ⇒ <code>boolean</code>\n    * [.Tween#reverse([state])](#TWEEN.Tween.Tween+reverse)\n    * [.Tween#reversed()](#TWEEN.Tween.Tween+reversed) ⇒ <code>boolean</code>\n    * [.Tween#pause()](#TWEEN.Tween.Tween+pause)\n    * [.Tween#play()](#TWEEN.Tween.Tween+play)\n    * [.Tween#restart([noDelay])](#TWEEN.Tween.Tween+restart)\n    * ~~[.Tween#seek(time, [keepPlaying])](#TWEEN.Tween.Tween+seek)~~\n    * ~~[.Tween#duration(amount)](#TWEEN.Tween.Tween+duration)~~\n    * [.Tween#to(properties, [duration])](#TWEEN.Tween.Tween+to)\n    * [.Tween#start(time)](#TWEEN.Tween.Tween+start)\n    * [.Tween#stop()](#TWEEN.Tween.Tween+stop)\n    * [.Tween#delay(amount)](#TWEEN.Tween.Tween+delay)\n    * [.Tween#chainedTweens(arguments)](#TWEEN.Tween.Tween+chainedTweens)\n    * [.Tween#repeat(amount)](#TWEEN.Tween.Tween+repeat)\n    * [.Tween#reverseDelay(amount)](#TWEEN.Tween.Tween+reverseDelay)\n    * [.Tween#yoyo(state, [_easingReverse])](#TWEEN.Tween.Tween+yoyo)\n    * [.Tween#easing(_easingFunction)](#TWEEN.Tween.Tween+easing)\n    * [.Tween#interpolation(_interpolationFunction)](#TWEEN.Tween.Tween+interpolation)\n    * [.Tween#update(time, [preserve], [forceTime])](#TWEEN.Tween.Tween+update)\n\n<a name=\"TWEEN.Tween.Tween+setMaxListener\"></a>\n\n#### Tween.Tween#setMaxListener(count)\nSets max `event` listener's count to Events system\n\n**Kind**: static method of [<code>Tween</code>](#TWEEN.Tween)  \n\n| Param | Type | Default | Description |\n| --- | --- | --- | --- |\n| count | <code>number</code> | <code>15</code> | Event listener's count |\n\n<a name=\"TWEEN.Tween.Tween+on\"></a>\n\n#### Tween.Tween#on(event, callback)\nAdds `event` to Events system\n\n**Kind**: static method of [<code>Tween</code>](#TWEEN.Tween)  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| event | <code>string</code> | Event listener name |\n| callback | <code>function</code> | Event listener callback |\n\n<a name=\"TWEEN.Tween.Tween+once\"></a>\n\n#### Tween.Tween#once(event, callback)\nAdds `event` to Events system.\nRemoves itself after fired once\n\n**Kind**: static method of [<code>Tween</code>](#TWEEN.Tween)  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| event | <code>string</code> | Event listener name |\n| callback | <code>function</code> | Event listener callback |\n\n<a name=\"TWEEN.Tween.Tween+off\"></a>\n\n#### Tween.Tween#off(event, callback)\nRemoves `event` from Events system\n\n**Kind**: static method of [<code>Tween</code>](#TWEEN.Tween)  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| event | <code>string</code> | Event listener name |\n| callback | <code>function</code> | Event listener callback |\n\n<a name=\"TWEEN.Tween.Tween+emit\"></a>\n\n#### Tween.Tween#emit(event)\nEmits/Fired/Trigger `event` from Events system listeners\n\n**Kind**: static method of [<code>Tween</code>](#TWEEN.Tween)  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| event | <code>string</code> | Event listener name |\n\n<a name=\"TWEEN.Tween.Tween+isPlaying\"></a>\n\n#### Tween.Tween#isPlaying() ⇒ <code>boolean</code>\n**Kind**: static method of [<code>Tween</code>](#TWEEN.Tween)  \n**Returns**: <code>boolean</code> - State of playing of tween  \n**Example**  \n```js\ntween.isPlaying() // returns `true` if tween in progress\n```\n<a name=\"TWEEN.Tween.Tween+isStarted\"></a>\n\n#### Tween.Tween#isStarted() ⇒ <code>boolean</code>\n**Kind**: static method of [<code>Tween</code>](#TWEEN.Tween)  \n**Returns**: <code>boolean</code> - State of started of tween  \n**Example**  \n```js\ntween.isStarted() // returns `true` if tween in started\n```\n<a name=\"TWEEN.Tween.Tween+reverse\"></a>\n\n#### Tween.Tween#reverse([state])\nReverses the tween state/direction\n\n**Kind**: static method of [<code>Tween</code>](#TWEEN.Tween)  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| [state] | <code>boolean</code> | Set state of current reverse |\n\n**Example**  \n```js\ntween.reverse()\n```\n<a name=\"TWEEN.Tween.Tween+reversed\"></a>\n\n#### Tween.Tween#reversed() ⇒ <code>boolean</code>\n**Kind**: static method of [<code>Tween</code>](#TWEEN.Tween)  \n**Returns**: <code>boolean</code> - State of reversed  \n**Example**  \n```js\ntween.reversed() // returns `true` if tween in reversed state\n```\n<a name=\"TWEEN.Tween.Tween+pause\"></a>\n\n#### Tween.Tween#pause()\nPauses tween\n\n**Kind**: static method of [<code>Tween</code>](#TWEEN.Tween)  \n**Example**  \n```js\ntween.pause()\n```\n<a name=\"TWEEN.Tween.Tween+play\"></a>\n\n#### Tween.Tween#play()\nPlay/Resume the tween\n\n**Kind**: static method of [<code>Tween</code>](#TWEEN.Tween)  \n**Example**  \n```js\ntween.play()\n```\n<a name=\"TWEEN.Tween.Tween+restart\"></a>\n\n#### Tween.Tween#restart([noDelay])\nRestarts tween from initial value\n\n**Kind**: static method of [<code>Tween</code>](#TWEEN.Tween)  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| [noDelay] | <code>boolean</code> | If this param is set to `true`, restarts tween without `delay` |\n\n**Example**  \n```js\ntween.restart()\n```\n<a name=\"TWEEN.Tween.Tween+seek\"></a>\n\n#### ~~Tween.Tween#seek(time, [keepPlaying])~~\n***Deprecated***\n\nSeek tween value by `time`. Note: Not works as excepted. PR are welcome\n\n**Kind**: static method of [<code>Tween</code>](#TWEEN.Tween)  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| time | <code>Time</code> | Tween update time |\n| [keepPlaying] | <code>boolean</code> | When this param is set to `false`, tween pausing after seek |\n\n**Example**  \n```js\ntween.seek(500)\n```\n<a name=\"TWEEN.Tween.Tween+duration\"></a>\n\n#### ~~Tween.Tween#duration(amount)~~\n***Deprecated***\n\nSets tween duration\n\n**Kind**: static method of [<code>Tween</code>](#TWEEN.Tween)  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| amount | <code>number</code> | Duration is milliseconds |\n\n**Example**  \n```js\ntween.duration(2000)\n```\n<a name=\"TWEEN.Tween.Tween+to\"></a>\n\n#### Tween.Tween#to(properties, [duration])\nSets target value and duration\n\n**Kind**: static method of [<code>Tween</code>](#TWEEN.Tween)  \n\n| Param | Type | Default | Description |\n| --- | --- | --- | --- |\n| properties | <code>object</code> |  | Target value (to value) |\n| [duration] | <code>number</code> \\| <code>Object</code> | <code>1000</code> | Duration of tween |\n\n**Example**  \n```js\nlet tween = new Tween({x:0}).to({x:100}, 2000)\n```\n<a name=\"TWEEN.Tween.Tween+start\"></a>\n\n#### Tween.Tween#start(time)\nStart the tweening\n\n**Kind**: static method of [<code>Tween</code>](#TWEEN.Tween)  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| time | <code>number</code> \\| <code>string</code> | setting manual time instead of Current browser timestamp or like `+1000` relative to current timestamp |\n\n**Example**  \n```js\ntween.start()\n```\n<a name=\"TWEEN.Tween.Tween+stop\"></a>\n\n#### Tween.Tween#stop()\nStops the tween\n\n**Kind**: static method of [<code>Tween</code>](#TWEEN.Tween)  \n**Example**  \n```js\ntween.stop()\n```\n<a name=\"TWEEN.Tween.Tween+delay\"></a>\n\n#### Tween.Tween#delay(amount)\nSet delay of tween\n\n**Kind**: static method of [<code>Tween</code>](#TWEEN.Tween)  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| amount | <code>number</code> | Sets tween delay / wait duration |\n\n**Example**  \n```js\ntween.delay(500)\n```\n<a name=\"TWEEN.Tween.Tween+chainedTweens\"></a>\n\n#### Tween.Tween#chainedTweens(arguments)\nChained tweens\n\n**Kind**: static method of [<code>Tween</code>](#TWEEN.Tween)  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| arguments | <code>any</code> | Arguments list |\n\n**Example**  \n```js\ntween.chainedTweens(tween1, tween2)\n```\n<a name=\"TWEEN.Tween.Tween+repeat\"></a>\n\n#### Tween.Tween#repeat(amount)\nSets how times tween is repeating\n\n**Kind**: static method of [<code>Tween</code>](#TWEEN.Tween)  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| amount | <code>amount</code> | the times of repeat |\n\n**Example**  \n```js\ntween.repeat(5)\n```\n<a name=\"TWEEN.Tween.Tween+reverseDelay\"></a>\n\n#### Tween.Tween#reverseDelay(amount)\nSet delay of each repeat alternate of tween\n\n**Kind**: static method of [<code>Tween</code>](#TWEEN.Tween)  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| amount | <code>number</code> | Sets tween repeat alternate delay / repeat alternate wait duration |\n\n**Example**  \n```js\ntween.reverseDelay(500)\n```\n<a name=\"TWEEN.Tween.Tween+yoyo\"></a>\n\n#### Tween.Tween#yoyo(state, [_easingReverse])\nSet `yoyo` state (enables reverse in repeat)\n\n**Kind**: static method of [<code>Tween</code>](#TWEEN.Tween)  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| state | <code>boolean</code> | Enables alternate direction for repeat |\n| [_easingReverse] | <code>function</code> | Easing function in reverse direction |\n\n**Example**  \n```js\ntween.yoyo(true)\n```\n<a name=\"TWEEN.Tween.Tween+easing\"></a>\n\n#### Tween.Tween#easing(_easingFunction)\nSet easing\n\n**Kind**: static method of [<code>Tween</code>](#TWEEN.Tween)  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| _easingFunction | <code>function</code> | Easing function, applies in non-reverse direction if Tween#yoyo second argument is applied |\n\n**Example**  \n```js\ntween.easing(Easing.Elastic.InOut)\n```\n<a name=\"TWEEN.Tween.Tween+interpolation\"></a>\n\n#### Tween.Tween#interpolation(_interpolationFunction)\nSet interpolation\n\n**Kind**: static method of [<code>Tween</code>](#TWEEN.Tween)  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| _interpolationFunction | <code>function</code> | Interpolation function |\n\n**Example**  \n```js\ntween.interpolation(Interpolation.Bezier)\n```\n<a name=\"TWEEN.Tween.Tween+update\"></a>\n\n#### Tween.Tween#update(time, [preserve], [forceTime])\nUpdates initial object to target value by given `time`\n\n**Kind**: static method of [<code>Tween</code>](#TWEEN.Tween)  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| time | <code>Time</code> | Current time |\n| [preserve] | <code>boolean</code> | Prevents from removing tween from store |\n| [forceTime] | <code>boolean</code> | Forces to be frame rendered, even mismatching time |\n\n**Example**  \n```js\ntween.update(100)\n```\n<a name=\"TWEEN.Plugins\"></a>\n\n### TWEEN.Plugins : <code>object</code>\nThe plugins store object\n\n**Kind**: static namespace of [<code>TWEEN</code>](#TWEEN)  \n**Example**  \n```js\nlet num = Plugins.num = function (node, start, end) {\nreturn t => start + (end - start) * t\n}\n```\n<a name=\"TWEEN.now\"></a>\n\n### TWEEN.now ⇒\nGet browser/Node.js current time-stamp\n\n**Kind**: static constant of [<code>TWEEN</code>](#TWEEN)  \n**Returns**: Normalised current time-stamp in milliseconds  \n**Example**  \n```js\nTWEEN.now\n```\n<a name=\"TWEEN.add\"></a>\n\n### TWEEN.add(tween)\nAdds tween to list\n\n**Kind**: static method of [<code>TWEEN</code>](#TWEEN)  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| tween | <code>Tween</code> | Tween instance |\n\n**Example**  \n```js\nlet tween = new Tween({x:0})\ntween.to({x:200}, 1000)\nTWEEN.add(tween)\n```\n<a name=\"TWEEN.onTick\"></a>\n\n### TWEEN.onTick(fn)\nAdds ticker like event\n\n**Kind**: static method of [<code>TWEEN</code>](#TWEEN)  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| fn | <code>function</code> | callback |\n\n**Example**  \n```js\nTWEEN.onTick(time => console.log(time))\n```\n<a name=\"TWEEN.FrameThrottle\"></a>\n\n### TWEEN.FrameThrottle(frameCount)\nSets after how much frames empty updating should stop\n\n**Kind**: static method of [<code>TWEEN</code>](#TWEEN)  \n\n| Param | Type | Default | Description |\n| --- | --- | --- | --- |\n| frameCount | <code>number</code> | <code>120</code> | count of frames that should stop after all tweens removed |\n\n**Example**  \n```js\nTWEEN.FrameThrottle(60)\n```\n<a name=\"TWEEN.ToggleLagSmoothing\"></a>\n\n### TWEEN.ToggleLagSmoothing(state)\nHandle lag, useful if you have rendering Canvas or DOM objects or using es6-tween plugins\n\n**Kind**: static method of [<code>TWEEN</code>](#TWEEN)  \n\n| Param | Type | Default | Description |\n| --- | --- | --- | --- |\n| state | <code>number</code> | <code>true</code> | handle lag state |\n\n**Example**  \n```js\nTWEEN.ToggleLagSmoothing(false)\n```\n<a name=\"TWEEN.autoPlay\"></a>\n\n### TWEEN.autoPlay(state)\nRuns update loop automaticlly\n\n**Kind**: static method of [<code>TWEEN</code>](#TWEEN)  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| state | <code>Boolean</code> | State of auto-run of update loop |\n\n**Example**  \n```js\nTWEEN.autoPlay(true)\n```\n<a name=\"TWEEN.removeAll\"></a>\n\n### TWEEN.removeAll()\nRemoves all tweens from list\n\n**Kind**: static method of [<code>TWEEN</code>](#TWEEN)  \n**Example**  \n```js\nTWEEN.removeAll() // removes all tweens, stored in global tweens list\n```\n<a name=\"TWEEN.get\"></a>\n\n### TWEEN.get(tween) ⇒ <code>Tween</code>\n**Kind**: static method of [<code>TWEEN</code>](#TWEEN)  \n**Returns**: <code>Tween</code> - Matched tween  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| tween | <code>Tween</code> | Tween Instance to be matched |\n\n**Example**  \n```js\nTWEEN.get(tween)\n```\n<a name=\"TWEEN.has\"></a>\n\n### TWEEN.has(tween) ⇒ <code>Boolean</code>\n**Kind**: static method of [<code>TWEEN</code>](#TWEEN)  \n**Returns**: <code>Boolean</code> - Status of Exists tween or not  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| tween | <code>Tween</code> | Tween Instance to be matched |\n\n**Example**  \n```js\nTWEEN.has(tween)\n```\n<a name=\"TWEEN.remove\"></a>\n\n### TWEEN.remove(tween)\nRemoves tween from list\n\n**Kind**: static method of [<code>TWEEN</code>](#TWEEN)  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| tween | <code>Tween</code> | Tween instance |\n\n**Example**  \n```js\nTWEEN.remove(tween)\n```\n<a name=\"TWEEN.update\"></a>\n\n### TWEEN.update([time], [preserve])\nUpdates global tweens by given time\n\n**Kind**: static method of [<code>TWEEN</code>](#TWEEN)  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| [time] | <code>number</code> | Timestamp |\n| [preserve] | <code>Boolean</code> | Prevents tween to be removed after finish |\n\n**Example**  \n```js\nTWEEN.update(500)\n```\n<a name=\"TWEEN.isRunning\"></a>\n\n### TWEEN.isRunning() ⇒ <code>Boolean</code>\nThe state of ticker running\n\n**Kind**: static method of [<code>TWEEN</code>](#TWEEN)  \n**Returns**: <code>Boolean</code> - Status of running updates on all tweens  \n**Example**  \n```js\nTWEEN.isRunning()\n```\n<a name=\"TWEEN.isLagSmoothing\"></a>\n\n### TWEEN.isLagSmoothing() ⇒ <code>Boolean</code>\nReturns state of lag smoothing handling\n\n**Kind**: static method of [<code>TWEEN</code>](#TWEEN)  \n**Returns**: <code>Boolean</code> - Status of lag smoothing state  \n**Example**  \n```js\nTWEEN.isRunning()\n```\n"
  },
  {
    "path": "CODE_OF_CONDUCT.md",
    "content": "# Contributor Covenant Code of Conduct\n\n## Our Pledge\n\nIn the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.\n\n## Our Standards\n\nExamples of behavior that contributes to creating a positive environment include:\n\n- Using welcoming and inclusive language\n- Being respectful of differing viewpoints and experiences\n- Gracefully accepting constructive criticism\n- Focusing on what is best for the community\n- Showing empathy towards other community members\n\nExamples of unacceptable behavior by participants include:\n\n- The use of sexualized language or imagery and unwelcome sexual attention or advances\n- Trolling, insulting/derogatory comments, and personal or political attacks\n- Public or private harassment\n- Publishing others' private information, such as a physical or electronic address, without explicit permission\n- Other conduct which could reasonably be considered inappropriate in a professional setting\n\n## Our Responsibilities\n\nProject maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.\n\nProject maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.\n\n## Scope\n\nThis Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.\n\n## Enforcement\n\nInstances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at dalisoft@mail.ru. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.\n\nProject maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.\n\n## Attribution\n\nThis Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]\n\n[homepage]: http://contributor-covenant.org\n[version]: http://contributor-covenant.org/version/1/4/\n"
  },
  {
    "path": "CONTRIBUTING.md",
    "content": "# CONTRIBUTING\n\n## Before reporting a bug\n\n---\n\nIf you find something that you believe to be a bug, please\n\n1. search the [issue tracker](https://github.com/tweenjs/es6-tween/issues) for similar issues\n2. check out the [master](https://github.com/tweenjs/es6-tween/tree/master) branch and see if the bug still exists there.\n\n## How to report a bug\n\n---\n\n1. Specify the revision number of the tween.js library where the bug occurred\n2. Specify your browser version and operating system (i.e. Chrome 23.0.1271.95, Windows 7)\n3. Describe the problem in detail. What happened? What did you expect to happen?\n4. Provide a small test case (e.g. using [jsfiddle](http://jsfiddle.net)). Or if not possible, provide a link to a live version of your application.\n\n## Contributing\n\n---\n\n1. Get a GitHub account (if you don't have one yet).\n2. Fork the project in GitHub.\n3. Check the [contribution guidelines](https://github.com/tweenjs/es6-tween/wiki/Contributing-to-tween.js).\n4. Make changes to your clone of the repository\n5. Submit a pull request.\n\n_If you tried all of the above and still can't fix the bug, or you're not sure you're doing things right, [let us know](https://github.com/tween.js/es6-tween/issues)._\n"
  },
  {
    "path": "LICENSE",
    "content": "MIT License\n\nCopyright (c) 2018 tween.js and es6-tween contributors\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"
  },
  {
    "path": "README.md",
    "content": "# es6-tween\n\n## This project development suspended due of no support from community and no financial support to author\n\n- High-performant animations without headaches\n- Simple, modular and functional animation library for web and node\n- Tweening library that needs to use where performance matter\n- Flexible, extendable, modular and resource-efficient tweening library\n\n[![NPM Min Size][npm-min-size]][unpkg-url]\n[![NPM Gzip Size][npm-gzip-size]][unpkg-url]\n[![CDNJS][cdnjs-image]][cdnjs-url]\n[![NPM Version][npm-image]][npm-url]\n[![NPM Downloads][downloads-image]][npm-url]\n[![license](https://img.shields.io/github/license/tweenjs/es6-tween.svg)]()\n[![Travis tests][travis-image]][travis-url]\n<br/>\n[![NPM](https://nodei.co/npm/es6-tween.png?downloads=true&stars=true)](https://nodei.co/npm/es6-tween/)\n\n## Frameworks\n\n- [react-es6-tween](https://github.com/dalisoft/react-es6-tween)\n\n## Docs\n\n- [API documentation](./API.md)\n- [Wiki page](https://github.com/tweenjs/es6-tween/wiki)\n\n```javascript\nTWEEN.autoPlay(true); // simplify the your code\n\nlet coords = { x: 0, y: 0 };\nlet tween = new TWEEN.Tween(coords)\n  .to({ x: 100, y: 100 }, 1000)\n  .on('update', ({ x, y }) => {\n    console.log(`The values is x: ${x} and y: ${y}`);\n  })\n  .start();\n```\n\n## Plugins\n\nStarting at `v3`, we provide excluded plugins from core, so our core becomes lighter and faster. [Here our plugins list](https://www.npmjs.com/browse/keyword/es6-tween)\n\n## Demos\n\n- Demo #1 [Morphing SVG Shape + Cross-browser SVG Transform](https://codepen.io/dalisoft/pen/mMJmxX)\n- Demo #2 [Morphing SVG Shape](https://codepen.io/dalisoft/pen/BdLydv)\n- Collection on the [Codepen](https://codepen.io/collection/DapBmv/)\n\n## Installation\n\nDownload the [library](https://unpkg.com/es6-tween/bundled/Tween.js) and include it in your code:\n\n```html\n<script src=\"bundled/Tween.js\"></script>\n```\n\n### CDN-Hosted version\n\n- See [cdnjs-hosted version](https://cdnjs.com/libraries/es6-tween) for get which result you want\n- NOTE: `@latest` suffix sometimes saves life by loading latest, because sometimes CDN services will not load the latest\n\n- Now you can load from CDN\n\n```html\n<!-- jsDelivr -->\n<script src=\"https://cdn.jsdelivr.net/npm/es6-tween\"></script>\n\n<!-- unpkg -->\n<script src=\"https://unpkg.com/es6-tween\"></script>\n\n<!-- npmcdn -->\n<script src=\"https://npmcdn.com/es6-tween\"></script>\n```\n\n### More advanced users might want to\n\n#### Using `import`\n\n```javascript\nimport { Easing, Tween, autoPlay } from 'es6-tween';\n```\n\n#### Using [getlibs](https://github.com/activewidgets/getlibs)\n\n```html\n<script src=\"https://unpkg.com/getlibs\"></script>\n<script type=\"x-module\">\n  // ES6\n  import { Easing, Tween, autoPlay } from 'es6-tween'\n\n\n  // CommonJS\n  const { Tween, Easing, autoPlay } = require('es6-tween')\n</script>\n```\n\n#### Using `npm` or `yarn`\n\n```bash\n$ yarn add es6-tween\n# or\n$ npm install es6-tween\n```\n\nThen include the Tween.js module with the standard node.js `require`:\n\n```javascript\nconst { Tween, Easing, autoPlay } = require('es6-tween');\n```\n\nAnd you can use Tween.js as in all other examples--for example:\n\n```javascript\nconst t = new Tween(/* etc */);\nt.start();\n```\n\nYou can run script commands to build modules into single `UMD` compatible file:\n\n#### Using commands\n\n```bash\n$ yarn build # builds production files\n# or\n$ yarn dev # builds and watchs development files\n```\n\nThen reference the library source:\n\n```html\n<script src=\"bundled/Tween.min.js\"></script>\n```\n\n## Features\n\n- Tweens everything you give them, string, number, number of arrays, number of object, all-to, interpolators and much more. Endless possibilites\n- Can use CSS units (e.g. appending `px`)\n- Can interpolate colours\n- Easing functions are reusable outside of Tween\n- Can also use custom easing functions\n- Much of easings\n\n## Compatiblity Testing\n\nThanks to BrowserStack for providing us testing in a real devices to make it cross-browser, bug-free and better.\nBrowserStack saved my countless hours, before i spent on testing much of time, now it's very easy. I recommend to others use this service.\nI sure, BrowserStack helps us to make it, so i am linking to BrowserStack as our sponsor.\n[<img src=\"https://cloud.githubusercontent.com/assets/7864462/12837037/452a17c6-cb73-11e5-9f39-fc96893bc9bf.png\" alt=\"Browser Stack Logo\" width=\"400\">](https://www.browserstack.com/)\n\n## Tests\n\n```bash\nyarn test\n```\n\nor you can go [here](https://travis-ci.org/tweenjs/es6-tween) for more information, tests and etc...\n\nevery time you want to run the tests.\n\nIf you want to add any feature or change existing features, you _must_ run the tests to make sure you didn't break anything else. If you send a PR to add something new and it doesn't have tests, or the tests don't pass, the PR won't be accepted. See [contributing](CONTRIBUTING.md) for more information.\n\n## People\n\n- [All contributors](https://github.com/tweenjs/es6-tween/contributors).\n- [es6-tween contributors](https://github.com/tweenjs/es6-tween/graphs/contributors)/\n\n## Thanks to\n\nthese tools developers and to their community and without these tools maybe this library wouldn't be possible\n\n- [GitHub](https://github.com/)\n- [Travis CI](http://travis-ci.org)\n- [BrowserStack](https://www.browserstack.com/)\n- [Node.js](https://nodejs.org/en/)\n- [ESLint](http://eslint.org)\n- [jsDoc](http://usejsdoc.org) ([docdash theme](https://github.com/clenemt/docdash))\n- [Rollup](https://rollupjs.org/guide/en)\n- [Babel](https://babeljs.io)\n- [Ava](https://github.com/avajs/ava)\n- [Puppeteer](https://pptr.dev)\n- [UglifyJS v3](https://github.com/mishoo/UglifyJS2)\n- [Husky](https://github.com/typicode/husky)\n\n## Projects using es6-tween\n\n- [ft](https://github.com/2players/ft)\n- [react-heartwood-components](https://www.npmjs.com/package/@sprucelabs/react-heartwood-components)\n- [el-controls](https://github.com/eljs/el-controls)\n- [lightweight-pixijs-engine](https://github.com/dgzornoza/lightweight-pixijs-engine#readme)\n- [vue-sliderx](https://www.npmjs.com/package/vue-sliderx)\n- [vue-mapbox-feature](https://cityseer.github.io/vue-mapbox-feature)\n- [vuxtras](https://github.com/homerjam/vuxtras#readme)\n- [Slye](https://github.com/Slye3D/slye#readme)\n- [react-3d-globe](https://chrisrzhou.github.io/react-3d-globe/)\n\nIt's great to see this library to be used in production and/or library, thank you!\n\nIf you have projects using es6-tween, please make issue or PR, i will add here your project too :)\n\n[npm-min-size]: https://img.shields.io/bundlephobia/min/es6-tween.svg\n[npm-gzip-size]: https://img.badgesize.io/https://unpkg.com/es6-tween?compression=gzip\n[npm-image]: https://img.shields.io/npm/v/es6-tween.svg\n[npm-url]: https://npmjs.org/package/es6-tween\n[downloads-image]: https://img.shields.io/npm/dm/es6-tween.svg\n[travis-image]: https://travis-ci.org/tweenjs/es6-tween.svg?branch=master\n[travis-url]: https://travis-ci.org/tweenjs/es6-tween\n[cdnjs-image]: https://img.shields.io/cdnjs/v/es6-tween.svg\n[cdnjs-url]: https://cdnjs.com/libraries/es6-tween\n[unpkg-url]: https://unpkg.com/es6-tween\n"
  },
  {
    "path": "examples/basic.html",
    "content": "<!DOCTYPE html>\n<html>\n<head>\n<title>Tween.js - Basic Demo</title>\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1, user-scalable=no\">\n<style type=\"text/css\">\nhtml, body {\n\tfont-family: Helvetica Neue, Segoe UI Light, Arial;\n\twidth: 100%;\n\theight: 100%;\n\tmargin: 0;\n\tpadding: 0;\n\ttext-align: center;\n\tline-height: 5em;\n}\n</style>\n</head>\n<body>\n<div class=\"container\">\n</div>\n<script src=\"../bundled/Tween.js\"></script>\n<script>\n\nvar body = document.body;\n\nTWEEN.autoPlay(true);\n\nvar round = function round(o) {\nfor ( var p in o ) {\n\tif ( typeof o[p] === \"number\" ) {\n\t\to[p] = o[p] | 0;\n\t} else if (typeof o[p] === \"object\") {\n\t\tround(o[p]);\n\t}\n\t}\n}\n\t\t\t\t\nvar tween = new TWEEN.Tween([0, 200, {x:300}]).to([200, 400, {x:500}], 2000).on('update', function (object) {\n\tround(object);\n\tbody.textContent = JSON.stringify(object);\n}).start();\n\nvar tween = new TWEEN.Tween({x:'600 y.o'}).to({x:'200 y.o'}, 2000).delay(3000).on('update', function (object) {\n\t//round(object);\n\tbody.textContent = JSON.stringify(object);\n}).start();\n</script>\n</body>\n</html>"
  },
  {
    "path": "examples/test.html",
    "content": "<html>\n\n<head>\n\t<meta charset=\"UTF-8\">\n\t<meta name=\"viewport\" content=\"width=device-width, minimum-scale=1.0\">\n\t<title>es6-tween</title>\n\t<style>\n\t\t#container {\n\t\t\twidth: 200px;\n\t\t\theight: auto;\n\t\t\tmargin: 0 auto;\n\t\t\tposition: relative;\n\t\t\tdisplay: block;\n\t\t}\n\t\t\n\t\t.line {\n\t\t\twidth: 200px;\n\t\t\theight: 2px;\n\t\t\tposition: absolute;\n\t\t}\n\t</style>\n</head>\n\n<body>\n\n\t<div id=\"container\"></div>\n\n\t<script src=\"../bundled/Tween.js\"></script>\n\t<script src=\"https://unpkg.com/es6tween-plugin-render@0.0.16/render.min.js\"></script>\n\t<script>\n\t\tTWEEN.autoPlay(true);\n\n\t\tfunction random(min, max) {\n\t\t\treturn Math.random() * (max - min) + min;\n\t\t}\n\n\t\tfunction update (v) {\n\t\t\tv.el.style.transform = 'translate3d(' + v.x + 'px, 0px, 0px)';\n\t\t}\n\n\t\tvar nodes = [],\n\t\t\tc = document.getElementById(\"container\"),\n\t\t\teasing = \"quadraticInOut\",\n\t\t\tratio = 0.9,\n\t\t\twIh = (window.innerHeight || screen.height - 40) * ratio,\n\t\t\twIw = window.innerWidth,\n\t\t\thwiw = (wIw / 5) * ratio,\n\t\t\tfrag = document.createDocumentFragment();\n\n\t\tfunction createTest(count) {\n\t\t\tvar i;\n\t\t\tfor (i = 0; i < count; i++) {\n\t\t\t\tvar div = document.createElement(\"div\"),\n\t\t\t\t\tbg = (Math.random() * 0xffffff) >> 0,\n\t\t\t\t\tr = bg >> 16 & 255,\n\t\t\t\t\tg = bg >> 8 & 255,\n\t\t\t\t\tb = bg & 255,\n\t\t\t\t\tbgC = 'rgb(' + r + ',' + g + ', ' + b + ')',\n\t\t\t\t\tl = Math.floor(random(-200, 200)),\n\t\t\t\t\tdl = Math.floor(Math.random() * 1000),\n\t\t\t\t\ttl = Math.floor(random(-200, 200));\n\t\t\t\tdiv.setAttribute(\"class\", \"line\");\n\t\t\t\tdiv.style.top = [(Math.random() * wIh), \"px\"].join(\"\");\n\t\t\t\tdiv.style.left = l + 'px';\n\t\t\t\t//div.style.transform = \"translate3d(\" + l + \"px, 0px, 0px)\";\n\t\t\t\tdiv.style.backgroundColor = bgC;\n\t\t\t\tvar a = new TWEEN.Tween(div, { left : l }).to({ left: tl }, 1000).easing(TWEEN.Easing.Quadratic.InOut).repeat(Infinity).yoyo(true).start();\n\n\t\t\t\tfrag.appendChild(div);\n\n\t\t\t}\n\t\t\tc.appendChild(frag);\n\t\t}\n\t\tcreateTest(200);\n\t</script>\n\n</body>\n\n</html>"
  },
  {
    "path": "jsdoc.json",
    "content": "{\n    \"tags\": {\n        \"allowUnknownTags\": true,\n        \"dictionaries\": [\n            \"jsdoc\"\n        ]\n    },\n    \"source\": {\n        \"include\": [\n            \"src\"\n        ],\n        \"includePattern\": \".js$\",\n        \"excludePattern\": \"(node_modules/|logo|docs|bundled|examples|performance|.vscode|.github)\"\n    },\n    \"plugins\": [\n        \"plugins/markdown\"\n    ],\n    \"templates\": {\n        \"cleverLinks\": false,\n        \"monospaceLinks\": true\n    },\n    \"opts\": {\n        \"destination\": \"../es6-tween-gh/docs/\",\n        \"encoding\": \"utf8\",\n        \"private\": true,\n        \"recurse\": true,\n        \"template\": \"./node_modules/docdash\"\n    }\n}\n"
  },
  {
    "path": "package.json",
    "content": "{\n  \"name\": \"es6-tween\",\n  \"version\": \"5.5.11\",\n  \"description\": \"ES6 implementation of amazing tween.js\",\n  \"browser\": \"bundled/Tween.min.js\",\n  \"cdn\": \"bundled/Tween.min.js\",\n  \"main\": \"bundled/Tween.js\",\n  \"module\": \"src/index.js\",\n  \"directories\": {\n    \"example\": \"examples\"\n  },\n  \"funding\": {\n    \"type\": \"patreon\",\n    \"url\": \"https://www.patreon.com/dalisoft\"\n  },\n  \"scripts\": {\n    \"source\": \"npx rollup -c\",\n    \"minify\": \"npx uglifyjs bundled/Tween.js -c -m -o bundled/Tween.min.js --source-map \\\"filename='bundled/Tween.min.js.map'\\\"\",\n    \"build\": \"npm run source && npm run minify\",\n    \"dev\": \"npx rollup -c -w\",\n    \"prepublishOnly\": \"npm run lint && npm run build\",\n    \"doc\": \"npx jsdoc --readme README.md --configure jsdoc.json\",\n    \"doc-md\": \"npx jsdoc2md src/** > API.md\",\n    \"test\": \"npm run lint && npm run source && npx ava\",\n    \"lint\": \"npx eslint ./src\",\n    \"lint-fix\": \"npx eslint ./src --fix\"\n  },\n  \"repository\": {\n    \"type\": \"git\",\n    \"url\": \"git+https://github.com/tweenjs/es6-tween.git\"\n  },\n  \"keywords\": [\n    \"tween\",\n    \"tweening\",\n    \"es6\",\n    \"numeric\",\n    \"interpolation\",\n    \"easing\",\n    \"emit\"\n  ],\n  \"author\": \"es6-tween contributors\",\n  \"license\": \"MIT\",\n  \"bugs\": {\n    \"url\": \"https://github.com/tweenjs/es6-tween/issues\"\n  },\n  \"homepage\": \"https://es6-tween.js.org\",\n  \"devDependencies\": {\n    \"@babel/core\": \"^7.4.4\",\n    \"@babel/plugin-proposal-class-properties\": \"^7.4.4\",\n    \"@babel/preset-env\": \"^7.4.4\",\n    \"ava\": \"^5.1.0\",\n    \"docdash\": \"^1.1.0\",\n    \"eslint\": \"^5.16.0\",\n    \"eslint-config-standard\": \"^12.0.0\",\n    \"eslint-plugin-import\": \"^2.17.2\",\n    \"eslint-plugin-node\": \"^9.0.1\",\n    \"eslint-plugin-promise\": \"^4.1.1\",\n    \"eslint-plugin-standard\": \"^4.0.0\",\n    \"jsdoc\": \"^3.6.2\",\n    \"jsdoc-to-markdown\": \"^8.0.0\",\n    \"puppeteer\": \"^1.16.0\",\n    \"rollup\": \"^1.12.1\",\n    \"rollup-plugin-babel\": \"^4.3.2\",\n    \"uglify-js\": \"^3.5.12\"\n  },\n  \"dependencies\": {},\n  \"ava\": {\n    \"verbose\": true,\n    \"require\": [\n      \"esm\"\n    ],\n    \"babel\": {\n      \"extensions\": [\n        \"js\"\n      ]\n    }\n  }\n}\n"
  },
  {
    "path": "performance/TweenMax.js",
    "content": "/*!\n * VERSION: 1.20.2\n * DATE: 2017-06-30\n * UPDATES AND DOCS AT: http://greensock.com\n *\n * Includes all of the following: TweenLite, TweenMax, TimelineLite, TimelineMax, EasePack, CSSPlugin, RoundPropsPlugin, BezierPlugin, AttrPlugin, DirectionalRotationPlugin\n *\n * @license Copyright (c) 2008-2017, GreenSock. All rights reserved.\n * This work is subject to the terms at http://greensock.com/standard-license or for\n * Club GreenSock members, the software agreement that was issued with your membership.\n *\n * @author: Jack Doyle, jack@greensock.com\n **/\nvar _gsScope = (typeof (module) !== 'undefined' && module.exports && typeof (global) !== 'undefined') ? global : this || window; // helps ensure compatibility with AMD/RequireJS and CommonJS/Node\n(_gsScope._gsQueue || (_gsScope._gsQueue = [])).push(function () {\n  'use strict'\n\n  _gsScope._gsDefine('TweenMax', ['core.Animation', 'core.SimpleTimeline', 'TweenLite'], function (Animation, SimpleTimeline, TweenLite) {\n    var _slice = function (a) { // don't use [].slice because that doesn't work in IE8 with a NodeList that's returned by querySelectorAll()\n        var b = [],\n          l = a.length,\n          i\n        for (i = 0; i !== l; b.push(a[i++]));\n        return b\n      },\n      _applyCycle = function (vars, targets, i) {\n        var alt = vars.cycle,\n          p, val\n        for (p in alt) {\n          val = alt[p]\n          vars[p] = (typeof (val) === 'function') ? val(i, targets[i]) : val[i % val.length]\n        }\n        delete vars.cycle\n      },\n      TweenMax = function (target, duration, vars) {\n        TweenLite.call(this, target, duration, vars)\n        this._cycle = 0\n        this._yoyo = (this.vars.yoyo === true || !!this.vars.yoyoEase)\n        this._repeat = this.vars.repeat || 0\n        this._repeatDelay = this.vars.repeatDelay || 0\n        this._dirty = true // ensures that if there is any repeat, the totalDuration will get recalculated to accurately report it.\n        this.render = TweenMax.prototype.render // speed optimization (avoid prototype lookup on this \"hot\" method)\n      },\n      _tinyNum = 0.0000000001,\n      TweenLiteInternals = TweenLite._internals,\n      _isSelector = TweenLiteInternals.isSelector,\n      _isArray = TweenLiteInternals.isArray,\n      p = TweenMax.prototype = TweenLite.to({}, 0.1, {}),\n      _blankArray = []\n\n    TweenMax.version = '1.20.2'\n    p.constructor = TweenMax\n    p.kill()._gc = false\n    TweenMax.killTweensOf = TweenMax.killDelayedCallsTo = TweenLite.killTweensOf\n    TweenMax.getTweensOf = TweenLite.getTweensOf\n    TweenMax.lagSmoothing = TweenLite.lagSmoothing\n    TweenMax.ticker = TweenLite.ticker\n    TweenMax.render = TweenLite.render\n\n    p.invalidate = function () {\n      this._yoyo = (this.vars.yoyo === true || !!this.vars.yoyoEase)\n      this._repeat = this.vars.repeat || 0\n      this._repeatDelay = this.vars.repeatDelay || 0\n      this._yoyoEase = null\n      this._uncache(true)\n      return TweenLite.prototype.invalidate.call(this)\n    }\n\n    p.updateTo = function (vars, resetDuration) {\n      var curRatio = this.ratio,\n        immediate = this.vars.immediateRender || vars.immediateRender,\n        p\n      if (resetDuration && this._startTime < this._timeline._time) {\n        this._startTime = this._timeline._time\n        this._uncache(false)\n        if (this._gc) {\n          this._enabled(true, false)\n        } else {\n          this._timeline.insert(this, this._startTime - this._delay) // ensures that any necessary re-sequencing of Animations in the timeline occurs to make sure the rendering order is correct.\n        }\n      }\n      for (p in vars) {\n        this.vars[p] = vars[p]\n      }\n      if (this._initted || immediate) {\n        if (resetDuration) {\n          this._initted = false\n          if (immediate) {\n            this.render(0, true, true)\n          }\n        } else {\n          if (this._gc) {\n            this._enabled(true, false)\n          }\n          if (this._notifyPluginsOfEnabled && this._firstPT) {\n            TweenLite._onPluginEvent('_onDisable', this) // in case a plugin like MotionBlur must perform some cleanup tasks\n          }\n          if (this._time / this._duration > 0.998) { // if the tween has finished (or come extremely close to finishing), we just need to rewind it to 0 and then render it again at the end which forces it to re-initialize (parsing the new vars). We allow tweens that are close to finishing (but haven't quite finished) to work this way too because otherwise, the values are so small when determining where to project the starting values that binary math issues creep in and can make the tween appear to render incorrectly when run backwards.\n            var prevTime = this._totalTime\n            this.render(0, true, false)\n            this._initted = false\n            this.render(prevTime, true, false)\n          } else {\n            this._initted = false\n            this._init()\n            if (this._time > 0 || immediate) {\n              var inv = 1 / (1 - curRatio),\n                pt = this._firstPT, endValue\n              while (pt) {\n                endValue = pt.s + pt.c\n                pt.c *= inv\n                pt.s = endValue - pt.c\n                pt = pt._next\n              }\n            }\n          }\n        }\n      }\n      return this\n    }\n\n    p.render = function (time, suppressEvents, force) {\n      if (!this._initted) {\n        if (this._duration === 0 && this.vars.repeat) { // zero duration tweens that render immediately have render() called from TweenLite's constructor, before TweenMax's constructor has finished setting _repeat, _repeatDelay, and _yoyo which are critical in determining totalDuration() so we need to call invalidate() which is a low-kb way to get those set properly.\n          this.invalidate()\n        }\n      }\n      var totalDur = (!this._dirty) ? this._totalDuration : this.totalDuration(),\n        prevTime = this._time,\n        prevTotalTime = this._totalTime,\n        prevCycle = this._cycle,\n        duration = this._duration,\n        prevRawPrevTime = this._rawPrevTime,\n        isComplete, callback, pt, cycleDuration, r, type, pow, rawPrevTime, yoyoEase\n      if (time >= totalDur - 0.0000001 && time >= 0) { // to work around occasional floating point math artifacts.\n        this._totalTime = totalDur\n        this._cycle = this._repeat\n        if (this._yoyo && (this._cycle & 1) !== 0) {\n          this._time = 0\n          this.ratio = this._ease._calcEnd ? this._ease.getRatio(0) : 0\n        } else {\n          this._time = duration\n          this.ratio = this._ease._calcEnd ? this._ease.getRatio(1) : 1\n        }\n        if (!this._reversed) {\n          isComplete = true\n          callback = 'onComplete'\n          force = (force || this._timeline.autoRemoveChildren) // otherwise, if the animation is unpaused/activated after it's already finished, it doesn't get removed from the parent timeline.\n        }\n        if (duration === 0) {\n          if (this._initted || !this.vars.lazy || force) { // zero-duration tweens are tricky because we must discern the momentum/direction of time in order to determine whether the starting values should be rendered or the ending values. If the \"playhead\" of its timeline goes past the zero-duration tween in the forward direction or lands directly on it, the end values should be rendered, but if the timeline's \"playhead\" moves past it in the backward direction (from a postitive time to a negative time), the starting values must be rendered.\n            if (this._startTime === this._timeline._duration) { // if a zero-duration tween is at the VERY end of a timeline and that timeline renders at its end, it will typically add a tiny bit of cushion to the render time to prevent rounding errors from getting in the way of tweens rendering their VERY end. If we then reverse() that timeline, the zero-duration tween will trigger its onReverseComplete even though technically the playhead didn't pass over it again. It's a very specific edge case we must accommodate.\n              time = 0\n            }\n            if (prevRawPrevTime < 0 || (time <= 0 && time >= -0.0000001) || (prevRawPrevTime === _tinyNum && this.data !== 'isPause')) {\n              if (prevRawPrevTime !== time) { // note: when this.data is \"isPause\", it's a callback added by addPause() on a timeline that we should not be triggered when LEAVING its exact start time. In other words, tl.addPause(1).play(1) shouldn't pause.\n                force = true\n                if (prevRawPrevTime > _tinyNum) {\n                  callback = 'onReverseComplete'\n                }\n              }\n            }\n            this._rawPrevTime = rawPrevTime = (!suppressEvents || time || prevRawPrevTime === time) ? time : _tinyNum // when the playhead arrives at EXACTLY time 0 (right on top) of a zero-duration tween, we need to discern if events are suppressed so that when the playhead moves again (next time), it'll trigger the callback. If events are NOT suppressed, obviously the callback would be triggered in this render. Basically, the callback should fire either when the playhead ARRIVES or LEAVES this exact spot, not both. Imagine doing a timeline.seek(0) and there's a callback that sits at 0. Since events are suppressed on that seek() by default, nothing will fire, but when the playhead moves off of that position, the callback should fire. This behavior is what people intuitively expect. We set the _rawPrevTime to be a precise tiny number to indicate this scenario rather than using another property/variable which would increase memory usage. This technique is less readable, but more efficient.\n          }\n        }\n      } else if (time < 0.0000001) { // to work around occasional floating point math artifacts, round super small values to 0.\n        this._totalTime = this._time = this._cycle = 0\n        this.ratio = this._ease._calcEnd ? this._ease.getRatio(0) : 0\n        if (prevTotalTime !== 0 || (duration === 0 && prevRawPrevTime > 0)) {\n          callback = 'onReverseComplete'\n          isComplete = this._reversed\n        }\n        if (time < 0) {\n          this._active = false\n          if (duration === 0) {\n            if (this._initted || !this.vars.lazy || force) { // zero-duration tweens are tricky because we must discern the momentum/direction of time in order to determine whether the starting values should be rendered or the ending values. If the \"playhead\" of its timeline goes past the zero-duration tween in the forward direction or lands directly on it, the end values should be rendered, but if the timeline's \"playhead\" moves past it in the backward direction (from a postitive time to a negative time), the starting values must be rendered.\n              if (prevRawPrevTime >= 0) {\n                force = true\n              }\n              this._rawPrevTime = rawPrevTime = (!suppressEvents || time || prevRawPrevTime === time) ? time : _tinyNum // when the playhead arrives at EXACTLY time 0 (right on top) of a zero-duration tween, we need to discern if events are suppressed so that when the playhead moves again (next time), it'll trigger the callback. If events are NOT suppressed, obviously the callback would be triggered in this render. Basically, the callback should fire either when the playhead ARRIVES or LEAVES this exact spot, not both. Imagine doing a timeline.seek(0) and there's a callback that sits at 0. Since events are suppressed on that seek() by default, nothing will fire, but when the playhead moves off of that position, the callback should fire. This behavior is what people intuitively expect. We set the _rawPrevTime to be a precise tiny number to indicate this scenario rather than using another property/variable which would increase memory usage. This technique is less readable, but more efficient.\n            }\n          }\n        }\n        if (!this._initted) { // if we render the very beginning (time == 0) of a fromTo(), we must force the render (normal tweens wouldn't need to render at a time of 0 when the prevTime was also 0). This is also mandatory to make sure overwriting kicks in immediately.\n          force = true\n        }\n      } else {\n        this._totalTime = this._time = time\n        if (this._repeat !== 0) {\n          cycleDuration = duration + this._repeatDelay\n          this._cycle = (this._totalTime / cycleDuration) >> 0 // originally _totalTime % cycleDuration but floating point errors caused problems, so I normalized it. (4 % 0.8 should be 0 but some browsers report it as 0.79999999!)\n          if (this._cycle !== 0) {\n            if (this._cycle === this._totalTime / cycleDuration && prevTotalTime <= time) {\n              this._cycle-- // otherwise when rendered exactly at the end time, it will act as though it is repeating (at the beginning)\n            }\n          }\n          this._time = this._totalTime - (this._cycle * cycleDuration)\n          if (this._yoyo) {\n            if ((this._cycle & 1) !== 0) {\n              this._time = duration - this._time\n              yoyoEase = this._yoyoEase || this.vars.yoyoEase // note: we don't set this._yoyoEase in _init() like we do other properties because it's TweenMax-specific and doing it here allows us to optimize performance (most tweens don't have a yoyoEase). Note that we also must skip the this.ratio calculation further down right after we _init() in this function, because we're doing it here.\n              if (yoyoEase) {\n                if (!this._yoyoEase) {\n                  if (yoyoEase === true && !this._initted) { // if it's not initted and yoyoEase is true, this._ease won't have been populated yet so we must discern it here.\n                    yoyoEase = this.vars.ease\n                    this._yoyoEase = yoyoEase = !yoyoEase ? TweenLite.defaultEase : (yoyoEase instanceof Ease) ? yoyoEase : (typeof (yoyoEase) === 'function') ? new Ease(yoyoEase, this.vars.easeParams) : Ease.map[yoyoEase] || TweenLite.defaultEase\n                  } else {\n                    this._yoyoEase = yoyoEase = (yoyoEase === true) ? this._ease : (yoyoEase instanceof Ease) ? yoyoEase : Ease.map[yoyoEase]\n                  }\n                }\n                this.ratio = yoyoEase ? 1 - yoyoEase.getRatio((duration - this._time) / duration) : 0\n              }\n            }\n          }\n          if (this._time > duration) {\n            this._time = duration\n          } else if (this._time < 0) {\n            this._time = 0\n          }\n        }\n\n        if (this._easeType && !yoyoEase) {\n          r = this._time / duration\n          type = this._easeType\n          pow = this._easePower\n          if (type === 1 || (type === 3 && r >= 0.5)) {\n            r = 1 - r\n          }\n          if (type === 3) {\n            r *= 2\n          }\n          if (pow === 1) {\n            r *= r\n          } else if (pow === 2) {\n            r *= r * r\n          } else if (pow === 3) {\n            r *= r * r * r\n          } else if (pow === 4) {\n            r *= r * r * r * r\n          }\n\n          if (type === 1) {\n            this.ratio = 1 - r\n          } else if (type === 2) {\n            this.ratio = r\n          } else if (this._time / duration < 0.5) {\n            this.ratio = r / 2\n          } else {\n            this.ratio = 1 - (r / 2)\n          }\n        } else if (!yoyoEase) {\n          this.ratio = this._ease.getRatio(this._time / duration)\n        }\n      }\n\n      if (prevTime === this._time && !force && prevCycle === this._cycle) {\n        if (prevTotalTime !== this._totalTime) {\n          if (this._onUpdate) {\n            if (!suppressEvents) { // so that onUpdate fires even during the repeatDelay - as long as the totalTime changed, we should trigger onUpdate.\n              this._callback('onUpdate')\n            }\n          }\n        }\n        return\n      } else if (!this._initted) {\n        this._init()\n        if (!this._initted || this._gc) { // immediateRender tweens typically won't initialize until the playhead advances (_time is greater than 0) in order to ensure that overwriting occurs properly. Also, if all of the tweening properties have been overwritten (which would cause _gc to be true, as set in _init()), we shouldn't continue otherwise an onStart callback could be called for example.\n          return\n        } else if (!force && this._firstPT && ((this.vars.lazy !== false && this._duration) || (this.vars.lazy && !this._duration))) { // we stick it in the queue for rendering at the very end of the tick - this is a performance optimization because browsers invalidate styles and force a recalculation if you read, write, and then read style data (so it's better to read/read/read/write/write/write than read/write/read/write/read/write). The down side, of course, is that usually you WANT things to render immediately because you may have code running right after that which depends on the change. Like imagine running TweenLite.set(...) and then immediately after that, creating a nother tween that animates the same property to another value; the starting values of that 2nd tween wouldn't be accurate if lazy is true.\n          this._time = prevTime\n          this._totalTime = prevTotalTime\n          this._rawPrevTime = prevRawPrevTime\n          this._cycle = prevCycle\n          TweenLiteInternals.lazyTweens.push(this)\n          this._lazy = [time, suppressEvents]\n          return\n        }\n        // _ease is initially set to defaultEase, so now that init() has run, _ease is set properly and we need to recalculate the ratio. Overall this is faster than using conditional logic earlier in the method to avoid having to set ratio twice because we only init() once but renderTime() gets called VERY frequently.\n        if (this._time && !isComplete && !yoyoEase) {\n          this.ratio = this._ease.getRatio(this._time / duration)\n        } else if (isComplete && this._ease._calcEnd && !yoyoEase) {\n          this.ratio = this._ease.getRatio((this._time === 0) ? 0 : 1)\n        }\n      }\n      if (this._lazy !== false) {\n        this._lazy = false\n      }\n\n      if (!this._active) {\n        if (!this._paused && this._time !== prevTime && time >= 0) {\n          this._active = true // so that if the user renders a tween (as opposed to the timeline rendering it), the timeline is forced to re-render and align it with the proper time/frame on the next rendering cycle. Maybe the tween already finished but the user manually re-renders it as halfway done.\n        }\n      }\n      if (prevTotalTime === 0) {\n        if (this._initted === 2 && time > 0) {\n          // this.invalidate();\n          this._init() // will just apply overwriting since _initted of (2) means it was a from() tween that had immediateRender:true\n        }\n        if (this._startAt) {\n          if (time >= 0) {\n            this._startAt.render(time, suppressEvents, force)\n          } else if (!callback) {\n            callback = '_dummyGS' // if no callback is defined, use a dummy value just so that the condition at the end evaluates as true because _startAt should render AFTER the normal render loop when the time is negative. We could handle this in a more intuitive way, of course, but the render loop is the MOST important thing to optimize, so this technique allows us to avoid adding extra conditional logic in a high-frequency area.\n          }\n        }\n        if (this.vars.onStart) {\n          if (this._totalTime !== 0 || duration === 0) {\n            if (!suppressEvents) {\n              this._callback('onStart')\n            }\n          }\n        }\n      }\n\n      pt = this._firstPT\n      while (pt) {\n        if (pt.f) {\n          pt.t[pt.p](pt.c * this.ratio + pt.s)\n        } else {\n          pt.t[pt.p] = pt.c * this.ratio + pt.s\n        }\n        pt = pt._next\n      }\n\n      if (this._onUpdate) {\n        if (time < 0) {\n          if (this._startAt && this._startTime) { // if the tween is positioned at the VERY beginning (_startTime 0) of its parent timeline, it's illegal for the playhead to go back further, so we should not render the recorded startAt values.\n            this._startAt.render(time, suppressEvents, force) // note: for performance reasons, we tuck this conditional logic inside less traveled areas (most tweens don't have an onUpdate). We'd just have it at the end before the onComplete, but the values should be updated before any onUpdate is called, so we ALSO put it here and then if it's not called, we do so later near the onComplete.\n          }\n        }\n        if (!suppressEvents) {\n          if (this._totalTime !== prevTotalTime || callback) {\n            this._callback('onUpdate')\n          }\n        }\n      }\n      if (this._cycle !== prevCycle) {\n        if (!suppressEvents) {\n          if (!this._gc) {\n            if (this.vars.onRepeat) {\n              this._callback('onRepeat')\n            }\n          }\n        }\n      }\n      if (callback) {\n        if (!this._gc || force) { // check gc because there's a chance that kill() could be called in an onUpdate\n          if (time < 0 && this._startAt && !this._onUpdate && this._startTime) { // if the tween is positioned at the VERY beginning (_startTime 0) of its parent timeline, it's illegal for the playhead to go back further, so we should not render the recorded startAt values.\n            this._startAt.render(time, suppressEvents, force)\n          }\n          if (isComplete) {\n            if (this._timeline.autoRemoveChildren) {\n              this._enabled(false, false)\n            }\n            this._active = false\n          }\n          if (!suppressEvents && this.vars[callback]) {\n            this._callback(callback)\n          }\n          if (duration === 0 && this._rawPrevTime === _tinyNum && rawPrevTime !== _tinyNum) { // the onComplete or onReverseComplete could trigger movement of the playhead and for zero-duration tweens (which must discern direction) that land directly back on their start time, we don't want to fire again on the next render. Think of several addPause()'s in a timeline that forces the playhead to a certain spot, but what if it's already paused and another tween is tweening the \"time\" of the timeline? Each time it moves [forward] past that spot, it would move back, and since suppressEvents is true, it'd reset _rawPrevTime to _tinyNum so that when it begins again, the callback would fire (so ultimately it could bounce back and forth during that tween). Again, this is a very uncommon scenario, but possible nonetheless.\n            this._rawPrevTime = 0\n          }\n        }\n      }\n    }\n\n    // ---- STATIC FUNCTIONS -----------------------------------------------------------------------------------------------------------\n\n    TweenMax.to = function (target, duration, vars) {\n      return new TweenMax(target, duration, vars)\n    }\n\n    TweenMax.from = function (target, duration, vars) {\n      vars.runBackwards = true\n      vars.immediateRender = (vars.immediateRender != false)\n      return new TweenMax(target, duration, vars)\n    }\n\n    TweenMax.fromTo = function (target, duration, fromVars, toVars) {\n      toVars.startAt = fromVars\n      toVars.immediateRender = (toVars.immediateRender != false && fromVars.immediateRender != false)\n      return new TweenMax(target, duration, toVars)\n    }\n\n    TweenMax.staggerTo = TweenMax.allTo = function (targets, duration, vars, stagger, onCompleteAll, onCompleteAllParams, onCompleteAllScope) {\n      stagger = stagger || 0\n      var delay = 0,\n        a = [],\n        finalComplete = function () {\n          if (vars.onComplete) {\n            vars.onComplete.apply(vars.onCompleteScope || this, arguments)\n          }\n          onCompleteAll.apply(onCompleteAllScope || vars.callbackScope || this, onCompleteAllParams || _blankArray)\n        },\n        cycle = vars.cycle,\n        fromCycle = (vars.startAt && vars.startAt.cycle),\n        l, copy, i, p\n      if (!_isArray(targets)) {\n        if (typeof (targets) === 'string') {\n          targets = TweenLite.selector(targets) || targets\n        }\n        if (_isSelector(targets)) {\n          targets = _slice(targets)\n        }\n      }\n      targets = targets || []\n      if (stagger < 0) {\n        targets = _slice(targets)\n        targets.reverse()\n        stagger *= -1\n      }\n      l = targets.length - 1\n      for (i = 0; i <= l; i++) {\n        copy = {}\n        for (p in vars) {\n          copy[p] = vars[p]\n        }\n        if (cycle) {\n          _applyCycle(copy, targets, i)\n          if (copy.duration != null) {\n            duration = copy.duration\n            delete copy.duration\n          }\n        }\n        if (fromCycle) {\n          fromCycle = copy.startAt = {}\n          for (p in vars.startAt) {\n            fromCycle[p] = vars.startAt[p]\n          }\n          _applyCycle(copy.startAt, targets, i)\n        }\n        copy.delay = delay + (copy.delay || 0)\n        if (i === l && onCompleteAll) {\n          copy.onComplete = finalComplete\n        }\n        a[i] = new TweenMax(targets[i], duration, copy)\n        delay += stagger\n      }\n      return a\n    }\n\n    TweenMax.staggerFrom = TweenMax.allFrom = function (targets, duration, vars, stagger, onCompleteAll, onCompleteAllParams, onCompleteAllScope) {\n      vars.runBackwards = true\n      vars.immediateRender = (vars.immediateRender != false)\n      return TweenMax.staggerTo(targets, duration, vars, stagger, onCompleteAll, onCompleteAllParams, onCompleteAllScope)\n    }\n\n    TweenMax.staggerFromTo = TweenMax.allFromTo = function (targets, duration, fromVars, toVars, stagger, onCompleteAll, onCompleteAllParams, onCompleteAllScope) {\n      toVars.startAt = fromVars\n      toVars.immediateRender = (toVars.immediateRender != false && fromVars.immediateRender != false)\n      return TweenMax.staggerTo(targets, duration, toVars, stagger, onCompleteAll, onCompleteAllParams, onCompleteAllScope)\n    }\n\n    TweenMax.delayedCall = function (delay, callback, params, scope, useFrames) {\n      return new TweenMax(callback, 0, {delay: delay, onComplete: callback, onCompleteParams: params, callbackScope: scope, onReverseComplete: callback, onReverseCompleteParams: params, immediateRender: false, useFrames: useFrames, overwrite: 0})\n    }\n\n    TweenMax.set = function (target, vars) {\n      return new TweenMax(target, 0, vars)\n    }\n\n    TweenMax.isTweening = function (target) {\n      return (TweenLite.getTweensOf(target, true).length > 0)\n    }\n\n    var _getChildrenOf = function (timeline, includeTimelines) {\n        var a = [],\n          cnt = 0,\n          tween = timeline._first\n        while (tween) {\n          if (tween instanceof TweenLite) {\n            a[cnt++] = tween\n          } else {\n            if (includeTimelines) {\n              a[cnt++] = tween\n            }\n            a = a.concat(_getChildrenOf(tween, includeTimelines))\n            cnt = a.length\n          }\n          tween = tween._next\n        }\n        return a\n      },\n      getAllTweens = TweenMax.getAllTweens = function (includeTimelines) {\n        return _getChildrenOf(Animation._rootTimeline, includeTimelines).concat(_getChildrenOf(Animation._rootFramesTimeline, includeTimelines))\n      }\n\n    TweenMax.killAll = function (complete, tweens, delayedCalls, timelines) {\n      if (tweens == null) {\n        tweens = true\n      }\n      if (delayedCalls == null) {\n        delayedCalls = true\n      }\n      var a = getAllTweens((timelines != false)),\n        l = a.length,\n        allTrue = (tweens && delayedCalls && timelines),\n        isDC, tween, i\n      for (i = 0; i < l; i++) {\n        tween = a[i]\n        if (allTrue || (tween instanceof SimpleTimeline) || ((isDC = (tween.target === tween.vars.onComplete)) && delayedCalls) || (tweens && !isDC)) {\n          if (complete) {\n            tween.totalTime(tween._reversed ? 0 : tween.totalDuration())\n          } else {\n            tween._enabled(false, false)\n          }\n        }\n      }\n    }\n\n    TweenMax.killChildTweensOf = function (parent, complete) {\n      if (parent == null) {\n        return\n      }\n      var tl = TweenLiteInternals.tweenLookup,\n        a, curParent, p, i, l\n      if (typeof (parent) === 'string') {\n        parent = TweenLite.selector(parent) || parent\n      }\n      if (_isSelector(parent)) {\n        parent = _slice(parent)\n      }\n      if (_isArray(parent)) {\n        i = parent.length\n        while (--i > -1) {\n          TweenMax.killChildTweensOf(parent[i], complete)\n        }\n        return\n      }\n      a = []\n      for (p in tl) {\n        curParent = tl[p].target.parentNode\n        while (curParent) {\n          if (curParent === parent) {\n            a = a.concat(tl[p].tweens)\n          }\n          curParent = curParent.parentNode\n        }\n      }\n      l = a.length\n      for (i = 0; i < l; i++) {\n        if (complete) {\n          a[i].totalTime(a[i].totalDuration())\n        }\n        a[i]._enabled(false, false)\n      }\n    }\n\n    var _changePause = function (pause, tweens, delayedCalls, timelines) {\n      tweens = (tweens !== false)\n      delayedCalls = (delayedCalls !== false)\n      timelines = (timelines !== false)\n      var a = getAllTweens(timelines),\n        allTrue = (tweens && delayedCalls && timelines),\n        i = a.length,\n        isDC, tween\n      while (--i > -1) {\n        tween = a[i]\n        if (allTrue || (tween instanceof SimpleTimeline) || ((isDC = (tween.target === tween.vars.onComplete)) && delayedCalls) || (tweens && !isDC)) {\n          tween.paused(pause)\n        }\n      }\n    }\n\n    TweenMax.pauseAll = function (tweens, delayedCalls, timelines) {\n      _changePause(true, tweens, delayedCalls, timelines)\n    }\n\n    TweenMax.resumeAll = function (tweens, delayedCalls, timelines) {\n      _changePause(false, tweens, delayedCalls, timelines)\n    }\n\n    TweenMax.globalTimeScale = function (value) {\n      var tl = Animation._rootTimeline,\n        t = TweenLite.ticker.time\n      if (!arguments.length) {\n        return tl._timeScale\n      }\n      value = value || _tinyNum // can't allow zero because it'll throw the math off\n      tl._startTime = t - ((t - tl._startTime) * tl._timeScale / value)\n      tl = Animation._rootFramesTimeline\n      t = TweenLite.ticker.frame\n      tl._startTime = t - ((t - tl._startTime) * tl._timeScale / value)\n      tl._timeScale = Animation._rootTimeline._timeScale = value\n      return value\n    }\n\n    // ---- GETTERS / SETTERS ----------------------------------------------------------------------------------------------------------\n\n    p.progress = function (value, suppressEvents) {\n      return (!arguments.length) ? this._time / this.duration() : this.totalTime(this.duration() * ((this._yoyo && (this._cycle & 1) !== 0) ? 1 - value : value) + (this._cycle * (this._duration + this._repeatDelay)), suppressEvents)\n    }\n\n    p.totalProgress = function (value, suppressEvents) {\n      return (!arguments.length) ? this._totalTime / this.totalDuration() : this.totalTime(this.totalDuration() * value, suppressEvents)\n    }\n\n    p.time = function (value, suppressEvents) {\n      if (!arguments.length) {\n        return this._time\n      }\n      if (this._dirty) {\n        this.totalDuration()\n      }\n      if (value > this._duration) {\n        value = this._duration\n      }\n      if (this._yoyo && (this._cycle & 1) !== 0) {\n        value = (this._duration - value) + (this._cycle * (this._duration + this._repeatDelay))\n      } else if (this._repeat !== 0) {\n        value += this._cycle * (this._duration + this._repeatDelay)\n      }\n      return this.totalTime(value, suppressEvents)\n    }\n\n    p.duration = function (value) {\n      if (!arguments.length) {\n        return this._duration // don't set _dirty = false because there could be repeats that haven't been factored into the _totalDuration yet. Otherwise, if you create a repeated TweenMax and then immediately check its duration(), it would cache the value and the totalDuration would not be correct, thus repeats wouldn't take effect.\n      }\n      return Animation.prototype.duration.call(this, value)\n    }\n\n    p.totalDuration = function (value) {\n      if (!arguments.length) {\n        if (this._dirty) {\n          // instead of Infinity, we use 999999999999 so that we can accommodate reverses\n          this._totalDuration = (this._repeat === -1) ? 999999999999 : this._duration * (this._repeat + 1) + (this._repeatDelay * this._repeat)\n          this._dirty = false\n        }\n        return this._totalDuration\n      }\n      return (this._repeat === -1) ? this : this.duration((value - (this._repeat * this._repeatDelay)) / (this._repeat + 1))\n    }\n\n    p.repeat = function (value) {\n      if (!arguments.length) {\n        return this._repeat\n      }\n      this._repeat = value\n      return this._uncache(true)\n    }\n\n    p.repeatDelay = function (value) {\n      if (!arguments.length) {\n        return this._repeatDelay\n      }\n      this._repeatDelay = value\n      return this._uncache(true)\n    }\n\n    p.yoyo = function (value) {\n      if (!arguments.length) {\n        return this._yoyo\n      }\n      this._yoyo = value\n      return this\n    }\n\n    return TweenMax\n  }, true)\n\n  /*\n * ----------------------------------------------------------------\n * TimelineLite\n * ----------------------------------------------------------------\n */\n  _gsScope._gsDefine('TimelineLite', ['core.Animation', 'core.SimpleTimeline', 'TweenLite'], function (Animation, SimpleTimeline, TweenLite) {\n    var TimelineLite = function (vars) {\n        SimpleTimeline.call(this, vars)\n        this._labels = {}\n        this.autoRemoveChildren = (this.vars.autoRemoveChildren === true)\n        this.smoothChildTiming = (this.vars.smoothChildTiming === true)\n        this._sortChildren = true\n        this._onUpdate = this.vars.onUpdate\n        var v = this.vars,\n          val, p\n        for (p in v) {\n          val = v[p]\n          if (_isArray(val)) {\n            if (val.join('').indexOf('{self}') !== -1) {\n              v[p] = this._swapSelfInParams(val)\n            }\n          }\n        }\n        if (_isArray(v.tweens)) {\n          this.add(v.tweens, 0, v.align, v.stagger)\n        }\n      },\n      _tinyNum = 0.0000000001,\n      TweenLiteInternals = TweenLite._internals,\n      _internals = TimelineLite._internals = {},\n      _isSelector = TweenLiteInternals.isSelector,\n      _isArray = TweenLiteInternals.isArray,\n      _lazyTweens = TweenLiteInternals.lazyTweens,\n      _lazyRender = TweenLiteInternals.lazyRender,\n      _globals = _gsScope._gsDefine.globals,\n      _copy = function (vars) {\n        var copy = {}, p\n        for (p in vars) {\n          copy[p] = vars[p]\n        }\n        return copy\n      },\n      _applyCycle = function (vars, targets, i) {\n        var alt = vars.cycle,\n          p, val\n        for (p in alt) {\n          val = alt[p]\n          vars[p] = (typeof (val) === 'function') ? val(i, targets[i]) : val[i % val.length]\n        }\n        delete vars.cycle\n      },\n      _pauseCallback = _internals.pauseCallback = function () {},\n      _slice = function (a) { // don't use [].slice because that doesn't work in IE8 with a NodeList that's returned by querySelectorAll()\n        var b = [],\n          l = a.length,\n          i\n        for (i = 0; i !== l; b.push(a[i++]));\n        return b\n      },\n      p = TimelineLite.prototype = new SimpleTimeline()\n\n    TimelineLite.version = '1.20.2'\n    p.constructor = TimelineLite\n    p.kill()._gc = p._forcingPlayhead = p._hasPause = false\n\n    /* might use later...\n\t\t//translates a local time inside an animation to the corresponding time on the root/global timeline, factoring in all nesting and timeScales.\n\t\tfunction localToGlobal(time, animation) {\n\t\t\twhile (animation) {\n\t\t\t\ttime = (time / animation._timeScale) + animation._startTime;\n\t\t\t\tanimation = animation.timeline;\n\t\t\t}\n\t\t\treturn time;\n\t\t}\n\n\t\t//translates the supplied time on the root/global timeline into the corresponding local time inside a particular animation, factoring in all nesting and timeScales\n\t\tfunction globalToLocal(time, animation) {\n\t\t\tvar scale = 1;\n\t\t\ttime -= localToGlobal(0, animation);\n\t\t\twhile (animation) {\n\t\t\t\tscale *= animation._timeScale;\n\t\t\t\tanimation = animation.timeline;\n\t\t\t}\n\t\t\treturn time * scale;\n\t\t}\n\t\t*/\n\n    p.to = function (target, duration, vars, position) {\n      var Engine = (vars.repeat && _globals.TweenMax) || TweenLite\n      return duration ? this.add(new Engine(target, duration, vars), position) : this.set(target, vars, position)\n    }\n\n    p.from = function (target, duration, vars, position) {\n      return this.add(((vars.repeat && _globals.TweenMax) || TweenLite).from(target, duration, vars), position)\n    }\n\n    p.fromTo = function (target, duration, fromVars, toVars, position) {\n      var Engine = (toVars.repeat && _globals.TweenMax) || TweenLite\n      return duration ? this.add(Engine.fromTo(target, duration, fromVars, toVars), position) : this.set(target, toVars, position)\n    }\n\n    p.staggerTo = function (targets, duration, vars, stagger, position, onCompleteAll, onCompleteAllParams, onCompleteAllScope) {\n      var tl = new TimelineLite({onComplete: onCompleteAll, onCompleteParams: onCompleteAllParams, callbackScope: onCompleteAllScope, smoothChildTiming: this.smoothChildTiming}),\n        cycle = vars.cycle,\n        copy, i\n      if (typeof (targets) === 'string') {\n        targets = TweenLite.selector(targets) || targets\n      }\n      targets = targets || []\n      if (_isSelector(targets)) { // senses if the targets object is a selector. If it is, we should translate it into an array.\n        targets = _slice(targets)\n      }\n      stagger = stagger || 0\n      if (stagger < 0) {\n        targets = _slice(targets)\n        targets.reverse()\n        stagger *= -1\n      }\n      for (i = 0; i < targets.length; i++) {\n        copy = _copy(vars)\n        if (copy.startAt) {\n          copy.startAt = _copy(copy.startAt)\n          if (copy.startAt.cycle) {\n            _applyCycle(copy.startAt, targets, i)\n          }\n        }\n        if (cycle) {\n          _applyCycle(copy, targets, i)\n          if (copy.duration != null) {\n            duration = copy.duration\n            delete copy.duration\n          }\n        }\n        tl.to(targets[i], duration, copy, i * stagger)\n      }\n      return this.add(tl, position)\n    }\n\n    p.staggerFrom = function (targets, duration, vars, stagger, position, onCompleteAll, onCompleteAllParams, onCompleteAllScope) {\n      vars.immediateRender = (vars.immediateRender != false)\n      vars.runBackwards = true\n      return this.staggerTo(targets, duration, vars, stagger, position, onCompleteAll, onCompleteAllParams, onCompleteAllScope)\n    }\n\n    p.staggerFromTo = function (targets, duration, fromVars, toVars, stagger, position, onCompleteAll, onCompleteAllParams, onCompleteAllScope) {\n      toVars.startAt = fromVars\n      toVars.immediateRender = (toVars.immediateRender != false && fromVars.immediateRender != false)\n      return this.staggerTo(targets, duration, toVars, stagger, position, onCompleteAll, onCompleteAllParams, onCompleteAllScope)\n    }\n\n    p.call = function (callback, params, scope, position) {\n      return this.add(TweenLite.delayedCall(0, callback, params, scope), position)\n    }\n\n    p.set = function (target, vars, position) {\n      position = this._parseTimeOrLabel(position, 0, true)\n      if (vars.immediateRender == null) {\n        vars.immediateRender = (position === this._time && !this._paused)\n      }\n      return this.add(new TweenLite(target, 0, vars), position)\n    }\n\n    TimelineLite.exportRoot = function (vars, ignoreDelayedCalls) {\n      vars = vars || {}\n      if (vars.smoothChildTiming == null) {\n        vars.smoothChildTiming = true\n      }\n      var tl = new TimelineLite(vars),\n        root = tl._timeline,\n        tween, next\n      if (ignoreDelayedCalls == null) {\n        ignoreDelayedCalls = true\n      }\n      root._remove(tl, true)\n      tl._startTime = 0\n      tl._rawPrevTime = tl._time = tl._totalTime = root._time\n      tween = root._first\n      while (tween) {\n        next = tween._next\n        if (!ignoreDelayedCalls || !(tween instanceof TweenLite && tween.target === tween.vars.onComplete)) {\n          tl.add(tween, tween._startTime - tween._delay)\n        }\n        tween = next\n      }\n      root.add(tl, 0)\n      return tl\n    }\n\n    p.add = function (value, position, align, stagger) {\n      var curTime, l, i, child, tl, beforeRawTime\n      if (typeof (position) !== 'number') {\n        position = this._parseTimeOrLabel(position, 0, true, value)\n      }\n      if (!(value instanceof Animation)) {\n        if ((value instanceof Array) || (value && value.push && _isArray(value))) {\n          align = align || 'normal'\n          stagger = stagger || 0\n          curTime = position\n          l = value.length\n          for (i = 0; i < l; i++) {\n            if (_isArray(child = value[i])) {\n              child = new TimelineLite({tweens: child})\n            }\n            this.add(child, curTime)\n            if (typeof (child) !== 'string' && typeof (child) !== 'function') {\n              if (align === 'sequence') {\n                curTime = child._startTime + (child.totalDuration() / child._timeScale)\n              } else if (align === 'start') {\n                child._startTime -= child.delay()\n              }\n            }\n            curTime += stagger\n          }\n          return this._uncache(true)\n        } else if (typeof (value) === 'string') {\n          return this.addLabel(value, position)\n        } else if (typeof (value) === 'function') {\n          value = TweenLite.delayedCall(0, value)\n        } else {\n          throw ('Cannot add ' + value + ' into the timeline; it is not a tween, timeline, function, or string.')\n        }\n      }\n\n      SimpleTimeline.prototype.add.call(this, value, position)\n\n      if (value._time) { // in case, for example, the _startTime is moved on a tween that has already rendered. Imagine it's at its end state, then the startTime is moved WAY later (after the end of this timeline), it should render at its beginning.\n        value.render((this.rawTime() - value._startTime) * value._timeScale, false, false)\n      }\n\n      // if the timeline has already ended but the inserted tween/timeline extends the duration, we should enable this timeline again so that it renders properly. We should also align the playhead with the parent timeline's when appropriate.\n      if (this._gc || this._time === this._duration) {\n        if (!this._paused) {\n          if (this._duration < this.duration()) {\n            // in case any of the ancestors had completed but should now be enabled...\n            tl = this\n            beforeRawTime = (tl.rawTime() > value._startTime) // if the tween is placed on the timeline so that it starts BEFORE the current rawTime, we should align the playhead (move the timeline). This is because sometimes users will create a timeline, let it finish, and much later append a tween and expect it to run instead of jumping to its end state. While technically one could argue that it should jump to its end state, that's not what users intuitively expect.\n            while (tl._timeline) {\n              if (beforeRawTime && tl._timeline.smoothChildTiming) {\n                tl.totalTime(tl._totalTime, true) // moves the timeline (shifts its startTime) if necessary, and also enables it.\n              } else if (tl._gc) {\n                tl._enabled(true, false)\n              }\n              tl = tl._timeline\n            }\n          }\n        }\n      }\n\n      return this\n    }\n\n    p.remove = function (value) {\n      if (value instanceof Animation) {\n        this._remove(value, false)\n        var tl = value._timeline = value.vars.useFrames ? Animation._rootFramesTimeline : Animation._rootTimeline // now that it's removed, default it to the root timeline so that if it gets played again, it doesn't jump back into this timeline.\n        value._startTime = (value._paused ? value._pauseTime : tl._time) - ((!value._reversed ? value._totalTime : value.totalDuration() - value._totalTime) / value._timeScale) // ensure that if it gets played again, the timing is correct.\n        return this\n      } else if (value instanceof Array || (value && value.push && _isArray(value))) {\n        var i = value.length\n        while (--i > -1) {\n          this.remove(value[i])\n        }\n        return this\n      } else if (typeof (value) === 'string') {\n        return this.removeLabel(value)\n      }\n      return this.kill(null, value)\n    }\n\n    p._remove = function (tween, skipDisable) {\n      SimpleTimeline.prototype._remove.call(this, tween, skipDisable)\n      var last = this._last\n      if (!last) {\n        this._time = this._totalTime = this._duration = this._totalDuration = 0\n      } else if (this._time > this.duration()) {\n        this._time = this._duration\n        this._totalTime = this._totalDuration\n      }\n      return this\n    }\n\n    p.append = function (value, offsetOrLabel) {\n      return this.add(value, this._parseTimeOrLabel(null, offsetOrLabel, true, value))\n    }\n\n    p.insert = p.insertMultiple = function (value, position, align, stagger) {\n      return this.add(value, position || 0, align, stagger)\n    }\n\n    p.appendMultiple = function (tweens, offsetOrLabel, align, stagger) {\n      return this.add(tweens, this._parseTimeOrLabel(null, offsetOrLabel, true, tweens), align, stagger)\n    }\n\n    p.addLabel = function (label, position) {\n      this._labels[label] = this._parseTimeOrLabel(position)\n      return this\n    }\n\n    p.addPause = function (position, callback, params, scope) {\n      var t = TweenLite.delayedCall(0, _pauseCallback, params, scope || this)\n      t.vars.onComplete = t.vars.onReverseComplete = callback\n      t.data = 'isPause'\n      this._hasPause = true\n      return this.add(t, position)\n    }\n\n    p.removeLabel = function (label) {\n      delete this._labels[label]\n      return this\n    }\n\n    p.getLabelTime = function (label) {\n      return (this._labels[label] != null) ? this._labels[label] : -1\n    }\n\n    p._parseTimeOrLabel = function (timeOrLabel, offsetOrLabel, appendIfAbsent, ignore) {\n      var clippedDuration, i\n      // if we're about to add a tween/timeline (or an array of them) that's already a child of this timeline, we should remove it first so that it doesn't contaminate the duration().\n      if (ignore instanceof Animation && ignore.timeline === this) {\n        this.remove(ignore)\n      } else if (ignore && ((ignore instanceof Array) || (ignore.push && _isArray(ignore)))) {\n        i = ignore.length\n        while (--i > -1) {\n          if (ignore[i] instanceof Animation && ignore[i].timeline === this) {\n            this.remove(ignore[i])\n          }\n        }\n      }\n      clippedDuration = (this.duration() > 99999999999) ? this.recent().endTime(false) : this._duration // in case there's a child that infinitely repeats, users almost never intend for the insertion point of a new child to be based on a SUPER long value like that so we clip it and assume the most recently-added child's endTime should be used instead.\n      if (typeof (offsetOrLabel) === 'string') {\n        return this._parseTimeOrLabel(offsetOrLabel, (appendIfAbsent && typeof (timeOrLabel) === 'number' && this._labels[offsetOrLabel] == null) ? timeOrLabel - clippedDuration : 0, appendIfAbsent)\n      }\n      offsetOrLabel = offsetOrLabel || 0\n      if (typeof (timeOrLabel) === 'string' && (isNaN(timeOrLabel) || this._labels[timeOrLabel] != null)) { // if the string is a number like \"1\", check to see if there's a label with that name, otherwise interpret it as a number (absolute value).\n        i = timeOrLabel.indexOf('=')\n        if (i === -1) {\n          if (this._labels[timeOrLabel] == null) {\n            return appendIfAbsent ? (this._labels[timeOrLabel] = clippedDuration + offsetOrLabel) : offsetOrLabel\n          }\n          return this._labels[timeOrLabel] + offsetOrLabel\n        }\n        offsetOrLabel = parseInt(timeOrLabel.charAt(i - 1) + '1', 10) * Number(timeOrLabel.substr(i + 1))\n        timeOrLabel = (i > 1) ? this._parseTimeOrLabel(timeOrLabel.substr(0, i - 1), 0, appendIfAbsent) : clippedDuration\n      } else if (timeOrLabel == null) {\n        timeOrLabel = clippedDuration\n      }\n      return Number(timeOrLabel) + offsetOrLabel\n    }\n\n    p.seek = function (position, suppressEvents) {\n      return this.totalTime((typeof (position) === 'number') ? position : this._parseTimeOrLabel(position), (suppressEvents !== false))\n    }\n\n    p.stop = function () {\n      return this.paused(true)\n    }\n\n    p.gotoAndPlay = function (position, suppressEvents) {\n      return this.play(position, suppressEvents)\n    }\n\n    p.gotoAndStop = function (position, suppressEvents) {\n      return this.pause(position, suppressEvents)\n    }\n\n    p.render = function (time, suppressEvents, force) {\n      if (this._gc) {\n        this._enabled(true, false)\n      }\n      var totalDur = (!this._dirty) ? this._totalDuration : this.totalDuration(),\n        prevTime = this._time,\n        prevStart = this._startTime,\n        prevTimeScale = this._timeScale,\n        prevPaused = this._paused,\n        tween, isComplete, next, callback, internalForce, pauseTween, curTime\n      if (time >= totalDur - 0.0000001 && time >= 0) { // to work around occasional floating point math artifacts.\n        this._totalTime = this._time = totalDur\n        if (!this._reversed) {\n          if (!this._hasPausedChild()) {\n            isComplete = true\n            callback = 'onComplete'\n            internalForce = !!this._timeline.autoRemoveChildren // otherwise, if the animation is unpaused/activated after it's already finished, it doesn't get removed from the parent timeline.\n            if (this._duration === 0) {\n              if ((time <= 0 && time >= -0.0000001) || this._rawPrevTime < 0 || this._rawPrevTime === _tinyNum) {\n                if (this._rawPrevTime !== time && this._first) {\n                  internalForce = true\n                  if (this._rawPrevTime > _tinyNum) {\n                    callback = 'onReverseComplete'\n                  }\n                }\n              }\n            }\n          }\n        }\n        this._rawPrevTime = (this._duration || !suppressEvents || time || this._rawPrevTime === time) ? time : _tinyNum // when the playhead arrives at EXACTLY time 0 (right on top) of a zero-duration timeline or tween, we need to discern if events are suppressed so that when the playhead moves again (next time), it'll trigger the callback. If events are NOT suppressed, obviously the callback would be triggered in this render. Basically, the callback should fire either when the playhead ARRIVES or LEAVES this exact spot, not both. Imagine doing a timeline.seek(0) and there's a callback that sits at 0. Since events are suppressed on that seek() by default, nothing will fire, but when the playhead moves off of that position, the callback should fire. This behavior is what people intuitively expect. We set the _rawPrevTime to be a precise tiny number to indicate this scenario rather than using another property/variable which would increase memory usage. This technique is less readable, but more efficient.\n        time = totalDur + 0.0001 // to avoid occasional floating point rounding errors - sometimes child tweens/timelines were not being fully completed (their progress might be 0.999999999999998 instead of 1 because when _time - tween._startTime is performed, floating point errors would return a value that was SLIGHTLY off). Try (999999999999.7 - 999999999999) * 1 = 0.699951171875 instead of 0.7.\n      } else if (time < 0.0000001) { // to work around occasional floating point math artifacts, round super small values to 0.\n        this._totalTime = this._time = 0\n        if (prevTime !== 0 || (this._duration === 0 && this._rawPrevTime !== _tinyNum && (this._rawPrevTime > 0 || (time < 0 && this._rawPrevTime >= 0)))) {\n          callback = 'onReverseComplete'\n          isComplete = this._reversed\n        }\n        if (time < 0) {\n          this._active = false\n          if (this._timeline.autoRemoveChildren && this._reversed) { // ensures proper GC if a timeline is resumed after it's finished reversing.\n            internalForce = isComplete = true\n            callback = 'onReverseComplete'\n          } else if (this._rawPrevTime >= 0 && this._first) { // when going back beyond the start, force a render so that zero-duration tweens that sit at the very beginning render their start values properly. Otherwise, if the parent timeline's playhead lands exactly at this timeline's startTime, and then moves backwards, the zero-duration tweens at the beginning would still be at their end state.\n            internalForce = true\n          }\n          this._rawPrevTime = time\n        } else {\n          this._rawPrevTime = (this._duration || !suppressEvents || time || this._rawPrevTime === time) ? time : _tinyNum // when the playhead arrives at EXACTLY time 0 (right on top) of a zero-duration timeline or tween, we need to discern if events are suppressed so that when the playhead moves again (next time), it'll trigger the callback. If events are NOT suppressed, obviously the callback would be triggered in this render. Basically, the callback should fire either when the playhead ARRIVES or LEAVES this exact spot, not both. Imagine doing a timeline.seek(0) and there's a callback that sits at 0. Since events are suppressed on that seek() by default, nothing will fire, but when the playhead moves off of that position, the callback should fire. This behavior is what people intuitively expect. We set the _rawPrevTime to be a precise tiny number to indicate this scenario rather than using another property/variable which would increase memory usage. This technique is less readable, but more efficient.\n          if (time === 0 && isComplete) { // if there's a zero-duration tween at the very beginning of a timeline and the playhead lands EXACTLY at time 0, that tween will correctly render its end values, but we need to keep the timeline alive for one more render so that the beginning values render properly as the parent's playhead keeps moving beyond the begining. Imagine obj.x starts at 0 and then we do tl.set(obj, {x:100}).to(obj, 1, {x:200}) and then later we tl.reverse()...the goal is to have obj.x revert to 0. If the playhead happens to land on exactly 0, without this chunk of code, it'd complete the timeline and remove it from the rendering queue (not good).\n            tween = this._first\n            while (tween && tween._startTime === 0) {\n              if (!tween._duration) {\n                isComplete = false\n              }\n              tween = tween._next\n            }\n          }\n          time = 0 // to avoid occasional floating point rounding errors (could cause problems especially with zero-duration tweens at the very beginning of the timeline)\n          if (!this._initted) {\n            internalForce = true\n          }\n        }\n      } else {\n        if (this._hasPause && !this._forcingPlayhead && !suppressEvents) {\n          if (time >= prevTime) {\n            tween = this._first\n            while (tween && tween._startTime <= time && !pauseTween) {\n              if (!tween._duration) {\n                if (tween.data === 'isPause' && !tween.ratio && !(tween._startTime === 0 && this._rawPrevTime === 0)) {\n                  pauseTween = tween\n                }\n              }\n              tween = tween._next\n            }\n          } else {\n            tween = this._last\n            while (tween && tween._startTime >= time && !pauseTween) {\n              if (!tween._duration) {\n                if (tween.data === 'isPause' && tween._rawPrevTime > 0) {\n                  pauseTween = tween\n                }\n              }\n              tween = tween._prev\n            }\n          }\n          if (pauseTween) {\n            this._time = time = pauseTween._startTime\n            this._totalTime = time + (this._cycle * (this._totalDuration + this._repeatDelay))\n          }\n        }\n\n        this._totalTime = this._time = this._rawPrevTime = time\n      }\n      if ((this._time === prevTime || !this._first) && !force && !internalForce && !pauseTween) {\n        return\n      } else if (!this._initted) {\n        this._initted = true\n      }\n\n      if (!this._active) {\n        if (!this._paused && this._time !== prevTime && time > 0) {\n          this._active = true // so that if the user renders the timeline (as opposed to the parent timeline rendering it), it is forced to re-render and align it with the proper time/frame on the next rendering cycle. Maybe the timeline already finished but the user manually re-renders it as halfway done, for example.\n        }\n      }\n\n      if (prevTime === 0) {\n        if (this.vars.onStart) {\n          if (this._time !== 0 || !this._duration) {\n            if (!suppressEvents) {\n              this._callback('onStart')\n            }\n          }\n        }\n      }\n\n      curTime = this._time\n      if (curTime >= prevTime) {\n        tween = this._first\n        while (tween) {\n          next = tween._next // record it here because the value could change after rendering...\n          if (curTime !== this._time || (this._paused && !prevPaused)) { // in case a tween pauses or seeks the timeline when rendering, like inside of an onUpdate/onComplete\n            break\n          } else if (tween._active || (tween._startTime <= curTime && !tween._paused && !tween._gc)) {\n            if (pauseTween === tween) {\n              this.pause()\n            }\n            if (!tween._reversed) {\n              tween.render((time - tween._startTime) * tween._timeScale, suppressEvents, force)\n            } else {\n              tween.render(((!tween._dirty) ? tween._totalDuration : tween.totalDuration()) - ((time - tween._startTime) * tween._timeScale), suppressEvents, force)\n            }\n          }\n          tween = next\n        }\n      } else {\n        tween = this._last\n        while (tween) {\n          next = tween._prev // record it here because the value could change after rendering...\n          if (curTime !== this._time || (this._paused && !prevPaused)) { // in case a tween pauses or seeks the timeline when rendering, like inside of an onUpdate/onComplete\n            break\n          } else if (tween._active || (tween._startTime <= prevTime && !tween._paused && !tween._gc)) {\n            if (pauseTween === tween) {\n              pauseTween = tween._prev // the linked list is organized by _startTime, thus it's possible that a tween could start BEFORE the pause and end after it, in which case it would be positioned before the pause tween in the linked list, but we should render it before we pause() the timeline and cease rendering. This is only a concern when going in reverse.\n              while (pauseTween && pauseTween.endTime() > this._time) {\n                pauseTween.render((pauseTween._reversed ? pauseTween.totalDuration() - ((time - pauseTween._startTime) * pauseTween._timeScale) : (time - pauseTween._startTime) * pauseTween._timeScale), suppressEvents, force)\n                pauseTween = pauseTween._prev\n              }\n              pauseTween = null\n              this.pause()\n            }\n            if (!tween._reversed) {\n              tween.render((time - tween._startTime) * tween._timeScale, suppressEvents, force)\n            } else {\n              tween.render(((!tween._dirty) ? tween._totalDuration : tween.totalDuration()) - ((time - tween._startTime) * tween._timeScale), suppressEvents, force)\n            }\n          }\n          tween = next\n        }\n      }\n\n      if (this._onUpdate) {\n        if (!suppressEvents) {\n          if (_lazyTweens.length) { // in case rendering caused any tweens to lazy-init, we should render them because typically when a timeline finishes, users expect things to have rendered fully. Imagine an onUpdate on a timeline that reports/checks tweened values.\n            _lazyRender()\n          }\n          this._callback('onUpdate')\n        }\n      }\n\n      if (callback) {\n        if (!this._gc) {\n          if (prevStart === this._startTime || prevTimeScale !== this._timeScale) {\n            if (this._time === 0 || totalDur >= this.totalDuration()) { // if one of the tweens that was rendered altered this timeline's startTime (like if an onComplete reversed the timeline), it probably isn't complete. If it is, don't worry, because whatever call altered the startTime would complete if it was necessary at the new time. The only exception is the timeScale property. Also check _gc because there's a chance that kill() could be called in an onUpdate\n              if (isComplete) {\n                if (_lazyTweens.length) { // in case rendering caused any tweens to lazy-init, we should render them because typically when a timeline finishes, users expect things to have rendered fully. Imagine an onComplete on a timeline that reports/checks tweened values.\n                  _lazyRender()\n                }\n                if (this._timeline.autoRemoveChildren) {\n                  this._enabled(false, false)\n                }\n                this._active = false\n              }\n              if (!suppressEvents && this.vars[callback]) {\n                this._callback(callback)\n              }\n            }\n          }\n        }\n      }\n    }\n\n    p._hasPausedChild = function () {\n      var tween = this._first\n      while (tween) {\n        if (tween._paused || ((tween instanceof TimelineLite) && tween._hasPausedChild())) {\n          return true\n        }\n        tween = tween._next\n      }\n      return false\n    }\n\n    p.getChildren = function (nested, tweens, timelines, ignoreBeforeTime) {\n      ignoreBeforeTime = ignoreBeforeTime || -9999999999\n      var a = [],\n        tween = this._first,\n        cnt = 0\n      while (tween) {\n        if (tween._startTime < ignoreBeforeTime) {\n          // do nothing\n        } else if (tween instanceof TweenLite) {\n          if (tweens !== false) {\n            a[cnt++] = tween\n          }\n        } else {\n          if (timelines !== false) {\n            a[cnt++] = tween\n          }\n          if (nested !== false) {\n            a = a.concat(tween.getChildren(true, tweens, timelines))\n            cnt = a.length\n          }\n        }\n        tween = tween._next\n      }\n      return a\n    }\n\n    p.getTweensOf = function (target, nested) {\n      var disabled = this._gc,\n        a = [],\n        cnt = 0,\n        tweens, i\n      if (disabled) {\n        this._enabled(true, true) // getTweensOf() filters out disabled tweens, and we have to mark them as _gc = true when the timeline completes in order to allow clean garbage collection, so temporarily re-enable the timeline here.\n      }\n      tweens = TweenLite.getTweensOf(target)\n      i = tweens.length\n      while (--i > -1) {\n        if (tweens[i].timeline === this || (nested && this._contains(tweens[i]))) {\n          a[cnt++] = tweens[i]\n        }\n      }\n      if (disabled) {\n        this._enabled(false, true)\n      }\n      return a\n    }\n\n    p.recent = function () {\n      return this._recent\n    }\n\n    p._contains = function (tween) {\n      var tl = tween.timeline\n      while (tl) {\n        if (tl === this) {\n          return true\n        }\n        tl = tl.timeline\n      }\n      return false\n    }\n\n    p.shiftChildren = function (amount, adjustLabels, ignoreBeforeTime) {\n      ignoreBeforeTime = ignoreBeforeTime || 0\n      var tween = this._first,\n        labels = this._labels,\n        p\n      while (tween) {\n        if (tween._startTime >= ignoreBeforeTime) {\n          tween._startTime += amount\n        }\n        tween = tween._next\n      }\n      if (adjustLabels) {\n        for (p in labels) {\n          if (labels[p] >= ignoreBeforeTime) {\n            labels[p] += amount\n          }\n        }\n      }\n      return this._uncache(true)\n    }\n\n    p._kill = function (vars, target) {\n      if (!vars && !target) {\n        return this._enabled(false, false)\n      }\n      var tweens = (!target) ? this.getChildren(true, true, false) : this.getTweensOf(target),\n        i = tweens.length,\n        changed = false\n      while (--i > -1) {\n        if (tweens[i]._kill(vars, target)) {\n          changed = true\n        }\n      }\n      return changed\n    }\n\n    p.clear = function (labels) {\n      var tweens = this.getChildren(false, true, true),\n        i = tweens.length\n      this._time = this._totalTime = 0\n      while (--i > -1) {\n        tweens[i]._enabled(false, false)\n      }\n      if (labels !== false) {\n        this._labels = {}\n      }\n      return this._uncache(true)\n    }\n\n    p.invalidate = function () {\n      var tween = this._first\n      while (tween) {\n        tween.invalidate()\n        tween = tween._next\n      }\n      return Animation.prototype.invalidate.call(this)\n    }\n\n    p._enabled = function (enabled, ignoreTimeline) {\n      if (enabled === this._gc) {\n        var tween = this._first\n        while (tween) {\n          tween._enabled(enabled, true)\n          tween = tween._next\n        }\n      }\n      return SimpleTimeline.prototype._enabled.call(this, enabled, ignoreTimeline)\n    }\n\n    p.totalTime = function (time, suppressEvents, uncapped) {\n      this._forcingPlayhead = true\n      var val = Animation.prototype.totalTime.apply(this, arguments)\n      this._forcingPlayhead = false\n      return val\n    }\n\n    p.duration = function (value) {\n      if (!arguments.length) {\n        if (this._dirty) {\n          this.totalDuration() // just triggers recalculation\n        }\n        return this._duration\n      }\n      if (this.duration() !== 0 && value !== 0) {\n        this.timeScale(this._duration / value)\n      }\n      return this\n    }\n\n    p.totalDuration = function (value) {\n      if (!arguments.length) {\n        if (this._dirty) {\n          var max = 0,\n            tween = this._last,\n            prevStart = 999999999999,\n            prev, end\n          while (tween) {\n            prev = tween._prev // record it here in case the tween changes position in the sequence...\n            if (tween._dirty) {\n              tween.totalDuration() // could change the tween._startTime, so make sure the tween's cache is clean before analyzing it.\n            }\n            if (tween._startTime > prevStart && this._sortChildren && !tween._paused) { // in case one of the tweens shifted out of order, it needs to be re-inserted into the correct position in the sequence\n              this.add(tween, tween._startTime - tween._delay)\n            } else {\n              prevStart = tween._startTime\n            }\n            if (tween._startTime < 0 && !tween._paused) { // children aren't allowed to have negative startTimes unless smoothChildTiming is true, so adjust here if one is found.\n              max -= tween._startTime\n              if (this._timeline.smoothChildTiming) {\n                this._startTime += tween._startTime / this._timeScale\n              }\n              this.shiftChildren(-tween._startTime, false, -9999999999)\n              prevStart = 0\n            }\n            end = tween._startTime + (tween._totalDuration / tween._timeScale)\n            if (end > max) {\n              max = end\n            }\n            tween = prev\n          }\n          this._duration = this._totalDuration = max\n          this._dirty = false\n        }\n        return this._totalDuration\n      }\n      return (value && this.totalDuration()) ? this.timeScale(this._totalDuration / value) : this\n    }\n\n    p.paused = function (value) {\n      if (!value) { // if there's a pause directly at the spot from where we're unpausing, skip it.\n        var tween = this._first,\n          time = this._time\n        while (tween) {\n          if (tween._startTime === time && tween.data === 'isPause') {\n            tween._rawPrevTime = 0 // remember, _rawPrevTime is how zero-duration tweens/callbacks sense directionality and determine whether or not to fire. If _rawPrevTime is the same as _startTime on the next render, it won't fire.\n          }\n          tween = tween._next\n        }\n      }\n      return Animation.prototype.paused.apply(this, arguments)\n    }\n\n    p.usesFrames = function () {\n      var tl = this._timeline\n      while (tl._timeline) {\n        tl = tl._timeline\n      }\n      return (tl === Animation._rootFramesTimeline)\n    }\n\n    p.rawTime = function (wrapRepeats) {\n      return (wrapRepeats && (this._paused || (this._repeat && this.time() > 0 && this.totalProgress() < 1))) ? this._totalTime % (this._duration + this._repeatDelay) : this._paused ? this._totalTime : (this._timeline.rawTime(wrapRepeats) - this._startTime) * this._timeScale\n    }\n\n    return TimelineLite\n  }, true)\n\n  /*\n * ----------------------------------------------------------------\n * TimelineMax\n * ----------------------------------------------------------------\n */\n  _gsScope._gsDefine('TimelineMax', ['TimelineLite', 'TweenLite', 'easing.Ease'], function (TimelineLite, TweenLite, Ease) {\n    var TimelineMax = function (vars) {\n        TimelineLite.call(this, vars)\n        this._repeat = this.vars.repeat || 0\n        this._repeatDelay = this.vars.repeatDelay || 0\n        this._cycle = 0\n        this._yoyo = (this.vars.yoyo === true)\n        this._dirty = true\n      },\n      _tinyNum = 0.0000000001,\n      TweenLiteInternals = TweenLite._internals,\n      _lazyTweens = TweenLiteInternals.lazyTweens,\n      _lazyRender = TweenLiteInternals.lazyRender,\n      _globals = _gsScope._gsDefine.globals,\n      _easeNone = new Ease(null, null, 1, 0),\n      p = TimelineMax.prototype = new TimelineLite()\n\n    p.constructor = TimelineMax\n    p.kill()._gc = false\n    TimelineMax.version = '1.20.2'\n\n    p.invalidate = function () {\n      this._yoyo = (this.vars.yoyo === true)\n      this._repeat = this.vars.repeat || 0\n      this._repeatDelay = this.vars.repeatDelay || 0\n      this._uncache(true)\n      return TimelineLite.prototype.invalidate.call(this)\n    }\n\n    p.addCallback = function (callback, position, params, scope) {\n      return this.add(TweenLite.delayedCall(0, callback, params, scope), position)\n    }\n\n    p.removeCallback = function (callback, position) {\n      if (callback) {\n        if (position == null) {\n          this._kill(null, callback)\n        } else {\n          var a = this.getTweensOf(callback, false),\n            i = a.length,\n            time = this._parseTimeOrLabel(position)\n          while (--i > -1) {\n            if (a[i]._startTime === time) {\n              a[i]._enabled(false, false)\n            }\n          }\n        }\n      }\n      return this\n    }\n\n    p.removePause = function (position) {\n      return this.removeCallback(TimelineLite._internals.pauseCallback, position)\n    }\n\n    p.tweenTo = function (position, vars) {\n      vars = vars || {}\n      var copy = {ease: _easeNone, useFrames: this.usesFrames(), immediateRender: false},\n        Engine = (vars.repeat && _globals.TweenMax) || TweenLite,\n        duration, p, t\n      for (p in vars) {\n        copy[p] = vars[p]\n      }\n      copy.time = this._parseTimeOrLabel(position)\n      duration = (Math.abs(Number(copy.time) - this._time) / this._timeScale) || 0.001\n      t = new Engine(this, duration, copy)\n      copy.onStart = function () {\n        t.target.paused(true)\n        if (t.vars.time !== t.target.time() && duration === t.duration()) { // don't make the duration zero - if it's supposed to be zero, don't worry because it's already initting the tween and will complete immediately, effectively making the duration zero anyway. If we make duration zero, the tween won't run at all.\n          t.duration(Math.abs(t.vars.time - t.target.time()) / t.target._timeScale)\n        }\n        if (vars.onStart) { // in case the user had an onStart in the vars - we don't want to overwrite it.\n          vars.onStart.apply(vars.onStartScope || vars.callbackScope || t, vars.onStartParams || []) // don't use t._callback(\"onStart\") or it'll point to the copy.onStart and we'll get a recursion error.\n        }\n      }\n      return t\n    }\n\n    p.tweenFromTo = function (fromPosition, toPosition, vars) {\n      vars = vars || {}\n      fromPosition = this._parseTimeOrLabel(fromPosition)\n      vars.startAt = {onComplete: this.seek, onCompleteParams: [fromPosition], callbackScope: this}\n      vars.immediateRender = (vars.immediateRender !== false)\n      var t = this.tweenTo(toPosition, vars)\n      return t.duration((Math.abs(t.vars.time - fromPosition) / this._timeScale) || 0.001)\n    }\n\n    p.render = function (time, suppressEvents, force) {\n      if (this._gc) {\n        this._enabled(true, false)\n      }\n      var totalDur = (!this._dirty) ? this._totalDuration : this.totalDuration(),\n        dur = this._duration,\n        prevTime = this._time,\n        prevTotalTime = this._totalTime,\n        prevStart = this._startTime,\n        prevTimeScale = this._timeScale,\n        prevRawPrevTime = this._rawPrevTime,\n        prevPaused = this._paused,\n        prevCycle = this._cycle,\n        tween, isComplete, next, callback, internalForce, cycleDuration, pauseTween, curTime\n      if (time >= totalDur - 0.0000001 && time >= 0) { // to work around occasional floating point math artifacts.\n        if (!this._locked) {\n          this._totalTime = totalDur\n          this._cycle = this._repeat\n        }\n        if (!this._reversed) {\n          if (!this._hasPausedChild()) {\n            isComplete = true\n            callback = 'onComplete'\n            internalForce = !!this._timeline.autoRemoveChildren // otherwise, if the animation is unpaused/activated after it's already finished, it doesn't get removed from the parent timeline.\n            if (this._duration === 0) {\n              if ((time <= 0 && time >= -0.0000001) || prevRawPrevTime < 0 || prevRawPrevTime === _tinyNum) {\n                if (prevRawPrevTime !== time && this._first) {\n                  internalForce = true\n                  if (prevRawPrevTime > _tinyNum) {\n                    callback = 'onReverseComplete'\n                  }\n                }\n              }\n            }\n          }\n        }\n        this._rawPrevTime = (this._duration || !suppressEvents || time || this._rawPrevTime === time) ? time : _tinyNum // when the playhead arrives at EXACTLY time 0 (right on top) of a zero-duration timeline or tween, we need to discern if events are suppressed so that when the playhead moves again (next time), it'll trigger the callback. If events are NOT suppressed, obviously the callback would be triggered in this render. Basically, the callback should fire either when the playhead ARRIVES or LEAVES this exact spot, not both. Imagine doing a timeline.seek(0) and there's a callback that sits at 0. Since events are suppressed on that seek() by default, nothing will fire, but when the playhead moves off of that position, the callback should fire. This behavior is what people intuitively expect. We set the _rawPrevTime to be a precise tiny number to indicate this scenario rather than using another property/variable which would increase memory usage. This technique is less readable, but more efficient.\n        if (this._yoyo && (this._cycle & 1) !== 0) {\n          this._time = time = 0\n        } else {\n          this._time = dur\n          time = dur + 0.0001 // to avoid occasional floating point rounding errors - sometimes child tweens/timelines were not being fully completed (their progress might be 0.999999999999998 instead of 1 because when _time - tween._startTime is performed, floating point errors would return a value that was SLIGHTLY off). Try (999999999999.7 - 999999999999) * 1 = 0.699951171875 instead of 0.7. We cannot do less then 0.0001 because the same issue can occur when the duration is extremely large like 999999999999 in which case adding 0.00000001, for example, causes it to act like nothing was added.\n        }\n      } else if (time < 0.0000001) { // to work around occasional floating point math artifacts, round super small values to 0.\n        if (!this._locked) {\n          this._totalTime = this._cycle = 0\n        }\n        this._time = 0\n        if (prevTime !== 0 || (dur === 0 && prevRawPrevTime !== _tinyNum && (prevRawPrevTime > 0 || (time < 0 && prevRawPrevTime >= 0)) && !this._locked)) { // edge case for checking time < 0 && prevRawPrevTime >= 0: a zero-duration fromTo() tween inside a zero-duration timeline (yeah, very rare)\n          callback = 'onReverseComplete'\n          isComplete = this._reversed\n        }\n        if (time < 0) {\n          this._active = false\n          if (this._timeline.autoRemoveChildren && this._reversed) {\n            internalForce = isComplete = true\n            callback = 'onReverseComplete'\n          } else if (prevRawPrevTime >= 0 && this._first) { // when going back beyond the start, force a render so that zero-duration tweens that sit at the very beginning render their start values properly. Otherwise, if the parent timeline's playhead lands exactly at this timeline's startTime, and then moves backwards, the zero-duration tweens at the beginning would still be at their end state.\n            internalForce = true\n          }\n          this._rawPrevTime = time\n        } else {\n          this._rawPrevTime = (dur || !suppressEvents || time || this._rawPrevTime === time) ? time : _tinyNum // when the playhead arrives at EXACTLY time 0 (right on top) of a zero-duration timeline or tween, we need to discern if events are suppressed so that when the playhead moves again (next time), it'll trigger the callback. If events are NOT suppressed, obviously the callback would be triggered in this render. Basically, the callback should fire either when the playhead ARRIVES or LEAVES this exact spot, not both. Imagine doing a timeline.seek(0) and there's a callback that sits at 0. Since events are suppressed on that seek() by default, nothing will fire, but when the playhead moves off of that position, the callback should fire. This behavior is what people intuitively expect. We set the _rawPrevTime to be a precise tiny number to indicate this scenario rather than using another property/variable which would increase memory usage. This technique is less readable, but more efficient.\n          if (time === 0 && isComplete) { // if there's a zero-duration tween at the very beginning of a timeline and the playhead lands EXACTLY at time 0, that tween will correctly render its end values, but we need to keep the timeline alive for one more render so that the beginning values render properly as the parent's playhead keeps moving beyond the begining. Imagine obj.x starts at 0 and then we do tl.set(obj, {x:100}).to(obj, 1, {x:200}) and then later we tl.reverse()...the goal is to have obj.x revert to 0. If the playhead happens to land on exactly 0, without this chunk of code, it'd complete the timeline and remove it from the rendering queue (not good).\n            tween = this._first\n            while (tween && tween._startTime === 0) {\n              if (!tween._duration) {\n                isComplete = false\n              }\n              tween = tween._next\n            }\n          }\n          time = 0 // to avoid occasional floating point rounding errors (could cause problems especially with zero-duration tweens at the very beginning of the timeline)\n          if (!this._initted) {\n            internalForce = true\n          }\n        }\n      } else {\n        if (dur === 0 && prevRawPrevTime < 0) { // without this, zero-duration repeating timelines (like with a simple callback nested at the very beginning and a repeatDelay) wouldn't render the first time through.\n          internalForce = true\n        }\n        this._time = this._rawPrevTime = time\n        if (!this._locked) {\n          this._totalTime = time\n          if (this._repeat !== 0) {\n            cycleDuration = dur + this._repeatDelay\n            this._cycle = (this._totalTime / cycleDuration) >> 0 // originally _totalTime % cycleDuration but floating point errors caused problems, so I normalized it. (4 % 0.8 should be 0 but it gets reported as 0.79999999!)\n            if (this._cycle !== 0) {\n              if (this._cycle === this._totalTime / cycleDuration && prevTotalTime <= time) {\n                this._cycle-- // otherwise when rendered exactly at the end time, it will act as though it is repeating (at the beginning)\n              }\n            }\n            this._time = this._totalTime - (this._cycle * cycleDuration)\n            if (this._yoyo) {\n              if ((this._cycle & 1) !== 0) {\n                this._time = dur - this._time\n              }\n            }\n            if (this._time > dur) {\n              this._time = dur\n              time = dur + 0.0001 // to avoid occasional floating point rounding error\n            } else if (this._time < 0) {\n              this._time = time = 0\n            } else {\n              time = this._time\n            }\n          }\n        }\n\n        if (this._hasPause && !this._forcingPlayhead && !suppressEvents) {\n          time = this._time\n          if (time >= prevTime || (this._repeat && prevCycle !== this._cycle)) {\n            tween = this._first\n            while (tween && tween._startTime <= time && !pauseTween) {\n              if (!tween._duration) {\n                if (tween.data === 'isPause' && !tween.ratio && !(tween._startTime === 0 && this._rawPrevTime === 0)) {\n                  pauseTween = tween\n                }\n              }\n              tween = tween._next\n            }\n          } else {\n            tween = this._last\n            while (tween && tween._startTime >= time && !pauseTween) {\n              if (!tween._duration) {\n                if (tween.data === 'isPause' && tween._rawPrevTime > 0) {\n                  pauseTween = tween\n                }\n              }\n              tween = tween._prev\n            }\n          }\n          if (pauseTween && pauseTween._startTime < dur) {\n            this._time = time = pauseTween._startTime\n            this._totalTime = time + (this._cycle * (this._totalDuration + this._repeatDelay))\n          }\n        }\n      }\n\n      if (this._cycle !== prevCycle) {\n        if (!this._locked) {\n        /*\n\t\t\t\tmake sure children at the end/beginning of the timeline are rendered properly. If, for example,\n\t\t\t\ta 3-second long timeline rendered at 2.9 seconds previously, and now renders at 3.2 seconds (which\n\t\t\t\twould get transated to 2.8 seconds if the timeline yoyos or 0.2 seconds if it just repeats), there\n\t\t\t\tcould be a callback or a short tween that's at 2.95 or 3 seconds in which wouldn't render. So\n\t\t\t\twe need to push the timeline to the end (and/or beginning depending on its yoyo value). Also we must\n\t\t\t\tensure that zero-duration tweens at the very beginning or end of the TimelineMax work.\n\t\t\t\t*/\n          var backwards = (this._yoyo && (prevCycle & 1) !== 0),\n            wrap = (backwards === (this._yoyo && (this._cycle & 1) !== 0)),\n            recTotalTime = this._totalTime,\n            recCycle = this._cycle,\n            recRawPrevTime = this._rawPrevTime,\n            recTime = this._time\n\n          this._totalTime = prevCycle * dur\n          if (this._cycle < prevCycle) {\n            backwards = !backwards\n          } else {\n            this._totalTime += dur\n          }\n          this._time = prevTime // temporarily revert _time so that render() renders the children in the correct order. Without this, tweens won't rewind correctly. We could arhictect things in a \"cleaner\" way by splitting out the rendering queue into a separate method but for performance reasons, we kept it all inside this method.\n\n          this._rawPrevTime = (dur === 0) ? prevRawPrevTime - 0.0001 : prevRawPrevTime\n          this._cycle = prevCycle\n          this._locked = true // prevents changes to totalTime and skips repeat/yoyo behavior when we recursively call render()\n          prevTime = (backwards) ? 0 : dur\n          this.render(prevTime, suppressEvents, (dur === 0))\n          if (!suppressEvents) {\n            if (!this._gc) {\n              if (this.vars.onRepeat) {\n                this._cycle = recCycle // in case the onRepeat alters the playhead or invalidates(), we shouldn't stay locked or use the previous cycle.\n                this._locked = false\n                this._callback('onRepeat')\n              }\n            }\n          }\n          if (prevTime !== this._time) { // in case there's a callback like onComplete in a nested tween/timeline that changes the playhead position, like via seek(), we should just abort.\n            return\n          }\n          if (wrap) {\n            this._cycle = prevCycle // if there's an onRepeat, we reverted this above, so make sure it's set properly again. We also unlocked in that scenario, so reset that too.\n            this._locked = true\n            prevTime = (backwards) ? dur + 0.0001 : -0.0001\n            this.render(prevTime, true, false)\n          }\n          this._locked = false\n          if (this._paused && !prevPaused) { // if the render() triggered callback that paused this timeline, we should abort (very rare, but possible)\n            return\n          }\n          this._time = recTime\n          this._totalTime = recTotalTime\n          this._cycle = recCycle\n          this._rawPrevTime = recRawPrevTime\n        }\n      }\n\n      if ((this._time === prevTime || !this._first) && !force && !internalForce && !pauseTween) {\n        if (prevTotalTime !== this._totalTime) {\n          if (this._onUpdate) {\n            if (!suppressEvents) { // so that onUpdate fires even during the repeatDelay - as long as the totalTime changed, we should trigger onUpdate.\n              this._callback('onUpdate')\n            }\n          }\n        }\n        return\n      } else if (!this._initted) {\n        this._initted = true\n      }\n\n      if (!this._active) {\n        if (!this._paused && this._totalTime !== prevTotalTime && time > 0) {\n          this._active = true // so that if the user renders the timeline (as opposed to the parent timeline rendering it), it is forced to re-render and align it with the proper time/frame on the next rendering cycle. Maybe the timeline already finished but the user manually re-renders it as halfway done, for example.\n        }\n      }\n\n      if (prevTotalTime === 0) {\n        if (this.vars.onStart) {\n          if (this._totalTime !== 0 || !this._totalDuration) {\n            if (!suppressEvents) {\n              this._callback('onStart')\n            }\n          }\n        }\n      }\n\n      curTime = this._time\n      if (curTime >= prevTime) {\n        tween = this._first\n        while (tween) {\n          next = tween._next // record it here because the value could change after rendering...\n          if (curTime !== this._time || (this._paused && !prevPaused)) { // in case a tween pauses or seeks the timeline when rendering, like inside of an onUpdate/onComplete\n            break\n          } else if (tween._active || (tween._startTime <= this._time && !tween._paused && !tween._gc)) {\n            if (pauseTween === tween) {\n              this.pause()\n            }\n            if (!tween._reversed) {\n              tween.render((time - tween._startTime) * tween._timeScale, suppressEvents, force)\n            } else {\n              tween.render(((!tween._dirty) ? tween._totalDuration : tween.totalDuration()) - ((time - tween._startTime) * tween._timeScale), suppressEvents, force)\n            }\n          }\n          tween = next\n        }\n      } else {\n        tween = this._last\n        while (tween) {\n          next = tween._prev // record it here because the value could change after rendering...\n          if (curTime !== this._time || (this._paused && !prevPaused)) { // in case a tween pauses or seeks the timeline when rendering, like inside of an onUpdate/onComplete\n            break\n          } else if (tween._active || (tween._startTime <= prevTime && !tween._paused && !tween._gc)) {\n            if (pauseTween === tween) {\n              pauseTween = tween._prev // the linked list is organized by _startTime, thus it's possible that a tween could start BEFORE the pause and end after it, in which case it would be positioned before the pause tween in the linked list, but we should render it before we pause() the timeline and cease rendering. This is only a concern when going in reverse.\n              while (pauseTween && pauseTween.endTime() > this._time) {\n                pauseTween.render((pauseTween._reversed ? pauseTween.totalDuration() - ((time - pauseTween._startTime) * pauseTween._timeScale) : (time - pauseTween._startTime) * pauseTween._timeScale), suppressEvents, force)\n                pauseTween = pauseTween._prev\n              }\n              pauseTween = null\n              this.pause()\n            }\n            if (!tween._reversed) {\n              tween.render((time - tween._startTime) * tween._timeScale, suppressEvents, force)\n            } else {\n              tween.render(((!tween._dirty) ? tween._totalDuration : tween.totalDuration()) - ((time - tween._startTime) * tween._timeScale), suppressEvents, force)\n            }\n          }\n          tween = next\n        }\n      }\n\n      if (this._onUpdate) {\n        if (!suppressEvents) {\n          if (_lazyTweens.length) { // in case rendering caused any tweens to lazy-init, we should render them because typically when a timeline finishes, users expect things to have rendered fully. Imagine an onUpdate on a timeline that reports/checks tweened values.\n            _lazyRender()\n          }\n          this._callback('onUpdate')\n        }\n      }\n      if (callback) {\n        if (!this._locked) {\n          if (!this._gc) {\n            if (prevStart === this._startTime || prevTimeScale !== this._timeScale) {\n              if (this._time === 0 || totalDur >= this.totalDuration()) { // if one of the tweens that was rendered altered this timeline's startTime (like if an onComplete reversed the timeline), it probably isn't complete. If it is, don't worry, because whatever call altered the startTime would complete if it was necessary at the new time. The only exception is the timeScale property. Also check _gc because there's a chance that kill() could be called in an onUpdate\n                if (isComplete) {\n                  if (_lazyTweens.length) { // in case rendering caused any tweens to lazy-init, we should render them because typically when a timeline finishes, users expect things to have rendered fully. Imagine an onComplete on a timeline that reports/checks tweened values.\n                    _lazyRender()\n                  }\n                  if (this._timeline.autoRemoveChildren) {\n                    this._enabled(false, false)\n                  }\n                  this._active = false\n                }\n                if (!suppressEvents && this.vars[callback]) {\n                  this._callback(callback)\n                }\n              }\n            }\n          }\n        }\n      }\n    }\n\n    p.getActive = function (nested, tweens, timelines) {\n      if (nested == null) {\n        nested = true\n      }\n      if (tweens == null) {\n        tweens = true\n      }\n      if (timelines == null) {\n        timelines = false\n      }\n      var a = [],\n        all = this.getChildren(nested, tweens, timelines),\n        cnt = 0,\n        l = all.length,\n        i, tween\n      for (i = 0; i < l; i++) {\n        tween = all[i]\n        if (tween.isActive()) {\n          a[cnt++] = tween\n        }\n      }\n      return a\n    }\n\n    p.getLabelAfter = function (time) {\n      if (!time) {\n        if (time !== 0) { // faster than isNan()\n          time = this._time\n        }\n      }\n      var labels = this.getLabelsArray(),\n        l = labels.length,\n        i\n      for (i = 0; i < l; i++) {\n        if (labels[i].time > time) {\n          return labels[i].name\n        }\n      }\n      return null\n    }\n\n    p.getLabelBefore = function (time) {\n      if (time == null) {\n        time = this._time\n      }\n      var labels = this.getLabelsArray(),\n        i = labels.length\n      while (--i > -1) {\n        if (labels[i].time < time) {\n          return labels[i].name\n        }\n      }\n      return null\n    }\n\n    p.getLabelsArray = function () {\n      var a = [],\n        cnt = 0,\n        p\n      for (p in this._labels) {\n        a[cnt++] = {time: this._labels[p], name: p}\n      }\n      a.sort(function (a, b) {\n        return a.time - b.time\n      })\n      return a\n    }\n\n    p.invalidate = function () {\n      this._locked = false // unlock and set cycle in case invalidate() is called from inside an onRepeat\n      return TimelineLite.prototype.invalidate.call(this)\n    }\n\n    // ---- GETTERS / SETTERS -------------------------------------------------------------------------------------------------------\n\n    p.progress = function (value, suppressEvents) {\n      return (!arguments.length) ? (this._time / this.duration()) || 0 : this.totalTime(this.duration() * ((this._yoyo && (this._cycle & 1) !== 0) ? 1 - value : value) + (this._cycle * (this._duration + this._repeatDelay)), suppressEvents)\n    }\n\n    p.totalProgress = function (value, suppressEvents) {\n      return (!arguments.length) ? (this._totalTime / this.totalDuration()) || 0 : this.totalTime(this.totalDuration() * value, suppressEvents)\n    }\n\n    p.totalDuration = function (value) {\n      if (!arguments.length) {\n        if (this._dirty) {\n          TimelineLite.prototype.totalDuration.call(this) // just forces refresh\n          // Instead of Infinity, we use 999999999999 so that we can accommodate reverses.\n          this._totalDuration = (this._repeat === -1) ? 999999999999 : this._duration * (this._repeat + 1) + (this._repeatDelay * this._repeat)\n        }\n        return this._totalDuration\n      }\n      return (this._repeat === -1 || !value) ? this : this.timeScale(this.totalDuration() / value)\n    }\n\n    p.time = function (value, suppressEvents) {\n      if (!arguments.length) {\n        return this._time\n      }\n      if (this._dirty) {\n        this.totalDuration()\n      }\n      if (value > this._duration) {\n        value = this._duration\n      }\n      if (this._yoyo && (this._cycle & 1) !== 0) {\n        value = (this._duration - value) + (this._cycle * (this._duration + this._repeatDelay))\n      } else if (this._repeat !== 0) {\n        value += this._cycle * (this._duration + this._repeatDelay)\n      }\n      return this.totalTime(value, suppressEvents)\n    }\n\n    p.repeat = function (value) {\n      if (!arguments.length) {\n        return this._repeat\n      }\n      this._repeat = value\n      return this._uncache(true)\n    }\n\n    p.repeatDelay = function (value) {\n      if (!arguments.length) {\n        return this._repeatDelay\n      }\n      this._repeatDelay = value\n      return this._uncache(true)\n    }\n\n    p.yoyo = function (value) {\n      if (!arguments.length) {\n        return this._yoyo\n      }\n      this._yoyo = value\n      return this\n    }\n\n    p.currentLabel = function (value) {\n      if (!arguments.length) {\n        return this.getLabelBefore(this._time + 0.00000001)\n      }\n      return this.seek(value, true)\n    }\n\n    return TimelineMax\n  }, true);\n\n  /*\n * ----------------------------------------------------------------\n * BezierPlugin\n * ----------------------------------------------------------------\n */\n  (function () {\n    var _RAD2DEG = 180 / Math.PI,\n      _r1 = [],\n      _r2 = [],\n      _r3 = [],\n      _corProps = {},\n      _globals = _gsScope._gsDefine.globals,\n      Segment = function (a, b, c, d) {\n        if (c === d) { // if c and d match, the final autoRotate value could lock at -90 degrees, so differentiate them slightly.\n          c = d - (d - b) / 1000000\n        }\n        if (a === b) { // if a and b match, the starting autoRotate value could lock at -90 degrees, so differentiate them slightly.\n          b = a + (c - a) / 1000000\n        }\n        this.a = a\n        this.b = b\n        this.c = c\n        this.d = d\n        this.da = d - a\n        this.ca = c - a\n        this.ba = b - a\n      },\n      _correlate = ',x,y,z,left,top,right,bottom,marginTop,marginLeft,marginRight,marginBottom,paddingLeft,paddingTop,paddingRight,paddingBottom,backgroundPosition,backgroundPosition_y,',\n      cubicToQuadratic = function (a, b, c, d) {\n        var q1 = {a: a},\n          q2 = {},\n          q3 = {},\n          q4 = {c: d},\n          mab = (a + b) / 2,\n          mbc = (b + c) / 2,\n          mcd = (c + d) / 2,\n          mabc = (mab + mbc) / 2,\n          mbcd = (mbc + mcd) / 2,\n          m8 = (mbcd - mabc) / 8\n        q1.b = mab + (a - mab) / 4\n        q2.b = mabc + m8\n        q1.c = q2.a = (q1.b + q2.b) / 2\n        q2.c = q3.a = (mabc + mbcd) / 2\n        q3.b = mbcd - m8\n        q4.b = mcd + (d - mcd) / 4\n        q3.c = q4.a = (q3.b + q4.b) / 2\n        return [q1, q2, q3, q4]\n      },\n      _calculateControlPoints = function (a, curviness, quad, basic, correlate) {\n        var l = a.length - 1,\n          ii = 0,\n          cp1 = a[0].a,\n          i, p1, p2, p3, seg, m1, m2, mm, cp2, qb, r1, r2, tl\n        for (i = 0; i < l; i++) {\n          seg = a[ii]\n          p1 = seg.a\n          p2 = seg.d\n          p3 = a[ii + 1].d\n\n          if (correlate) {\n            r1 = _r1[i]\n            r2 = _r2[i]\n            tl = ((r2 + r1) * curviness * 0.25) / (basic ? 0.5 : _r3[i] || 0.5)\n            m1 = p2 - (p2 - p1) * (basic ? curviness * 0.5 : (r1 !== 0 ? tl / r1 : 0))\n            m2 = p2 + (p3 - p2) * (basic ? curviness * 0.5 : (r2 !== 0 ? tl / r2 : 0))\n            mm = p2 - (m1 + (((m2 - m1) * ((r1 * 3 / (r1 + r2)) + 0.5) / 4) || 0))\n          } else {\n            m1 = p2 - (p2 - p1) * curviness * 0.5\n            m2 = p2 + (p3 - p2) * curviness * 0.5\n            mm = p2 - (m1 + m2) / 2\n          }\n          m1 += mm\n          m2 += mm\n\n          seg.c = cp2 = m1\n          if (i !== 0) {\n            seg.b = cp1\n          } else {\n            seg.b = cp1 = seg.a + (seg.c - seg.a) * 0.6 // instead of placing b on a exactly, we move it inline with c so that if the user specifies an ease like Back.easeIn or Elastic.easeIn which goes BEYOND the beginning, it will do so smoothly.\n          }\n\n          seg.da = p2 - p1\n          seg.ca = cp2 - p1\n          seg.ba = cp1 - p1\n\n          if (quad) {\n            qb = cubicToQuadratic(p1, cp1, cp2, p2)\n            a.splice(ii, 1, qb[0], qb[1], qb[2], qb[3])\n            ii += 4\n          } else {\n            ii++\n          }\n\n          cp1 = m2\n        }\n        seg = a[ii]\n        seg.b = cp1\n        seg.c = cp1 + (seg.d - cp1) * 0.4 // instead of placing c on d exactly, we move it inline with b so that if the user specifies an ease like Back.easeOut or Elastic.easeOut which goes BEYOND the end, it will do so smoothly.\n        seg.da = seg.d - seg.a\n        seg.ca = seg.c - seg.a\n        seg.ba = cp1 - seg.a\n        if (quad) {\n          qb = cubicToQuadratic(seg.a, cp1, seg.c, seg.d)\n          a.splice(ii, 1, qb[0], qb[1], qb[2], qb[3])\n        }\n      },\n      _parseAnchors = function (values, p, correlate, prepend) {\n        var a = [],\n          l, i, p1, p2, p3, tmp\n        if (prepend) {\n          values = [prepend].concat(values)\n          i = values.length\n          while (--i > -1) {\n            if (typeof ((tmp = values[i][p])) === 'string') {\n              if (tmp.charAt(1) === '=') {\n                values[i][p] = prepend[p] + Number(tmp.charAt(0) + tmp.substr(2)) // accommodate relative values. Do it inline instead of breaking it out into a function for speed reasons\n              }\n            }\n          }\n        }\n        l = values.length - 2\n        if (l < 0) {\n          a[0] = new Segment(values[0][p], 0, 0, values[0][p])\n          return a\n        }\n        for (i = 0; i < l; i++) {\n          p1 = values[i][p]\n          p2 = values[i + 1][p]\n          a[i] = new Segment(p1, 0, 0, p2)\n          if (correlate) {\n            p3 = values[i + 2][p]\n            _r1[i] = (_r1[i] || 0) + (p2 - p1) * (p2 - p1)\n            _r2[i] = (_r2[i] || 0) + (p3 - p2) * (p3 - p2)\n          }\n        }\n        a[i] = new Segment(values[i][p], 0, 0, values[i + 1][p])\n        return a\n      },\n      bezierThrough = function (values, curviness, quadratic, basic, correlate, prepend) {\n        var obj = {},\n          props = [],\n          first = prepend || values[0],\n          i, p, a, j, r, l, seamless, last\n        correlate = (typeof (correlate) === 'string') ? ',' + correlate + ',' : _correlate\n        if (curviness == null) {\n          curviness = 1\n        }\n        for (p in values[0]) {\n          props.push(p)\n        }\n        // check to see if the last and first values are identical (well, within 0.05). If so, make seamless by appending the second element to the very end of the values array and the 2nd-to-last element to the very beginning (we'll remove those segments later)\n        if (values.length > 1) {\n          last = values[values.length - 1]\n          seamless = true\n          i = props.length\n          while (--i > -1) {\n            p = props[i]\n            if (Math.abs(first[p] - last[p]) > 0.05) { // build in a tolerance of +/-0.05 to accommodate rounding errors.\n              seamless = false\n              break\n            }\n          }\n          if (seamless) {\n            values = values.concat() // duplicate the array to avoid contaminating the original which the user may be reusing for other tweens\n            if (prepend) {\n              values.unshift(prepend)\n            }\n            values.push(values[1])\n            prepend = values[values.length - 3]\n          }\n        }\n        _r1.length = _r2.length = _r3.length = 0\n        i = props.length\n        while (--i > -1) {\n          p = props[i]\n          _corProps[p] = (correlate.indexOf(',' + p + ',') !== -1)\n          obj[p] = _parseAnchors(values, p, _corProps[p], prepend)\n        }\n        i = _r1.length\n        while (--i > -1) {\n          _r1[i] = Math.sqrt(_r1[i])\n          _r2[i] = Math.sqrt(_r2[i])\n        }\n        if (!basic) {\n          i = props.length\n          while (--i > -1) {\n            if (_corProps[p]) {\n              a = obj[props[i]]\n              l = a.length - 1\n              for (j = 0; j < l; j++) {\n                r = (a[j + 1].da / _r2[j] + a[j].da / _r1[j]) || 0\n                _r3[j] = (_r3[j] || 0) + r * r\n              }\n            }\n          }\n          i = _r3.length\n          while (--i > -1) {\n            _r3[i] = Math.sqrt(_r3[i])\n          }\n        }\n        i = props.length\n        j = quadratic ? 4 : 1\n        while (--i > -1) {\n          p = props[i]\n          a = obj[p]\n          _calculateControlPoints(a, curviness, quadratic, basic, _corProps[p]) // this method requires that _parseAnchors() and _setSegmentRatios() ran first so that _r1, _r2, and _r3 values are populated for all properties\n          if (seamless) {\n            a.splice(0, j)\n            a.splice(a.length - j, j)\n          }\n        }\n        return obj\n      },\n      _parseBezierData = function (values, type, prepend) {\n        type = type || 'soft'\n        var obj = {},\n          inc = (type === 'cubic') ? 3 : 2,\n          soft = (type === 'soft'),\n          props = [],\n          a, b, c, d, cur, i, j, l, p, cnt, tmp\n        if (soft && prepend) {\n          values = [prepend].concat(values)\n        }\n        if (values == null || values.length < inc + 1) { throw 'invalid Bezier data' }\n        for (p in values[0]) {\n          props.push(p)\n        }\n        i = props.length\n        while (--i > -1) {\n          p = props[i]\n          obj[p] = cur = []\n          cnt = 0\n          l = values.length\n          for (j = 0; j < l; j++) {\n            a = (prepend == null) ? values[j][p] : (typeof ((tmp = values[j][p])) === 'string' && tmp.charAt(1) === '=') ? prepend[p] + Number(tmp.charAt(0) + tmp.substr(2)) : Number(tmp)\n            if (soft) {\n              if (j > 1) {\n                if (j < l - 1) {\n                  cur[cnt++] = (a + cur[cnt - 2]) / 2\n                }\n              }\n            }\n            cur[cnt++] = a\n          }\n          l = cnt - inc + 1\n          cnt = 0\n          for (j = 0; j < l; j += inc) {\n            a = cur[j]\n            b = cur[j + 1]\n            c = cur[j + 2]\n            d = (inc === 2) ? 0 : cur[j + 3]\n            cur[cnt++] = tmp = (inc === 3) ? new Segment(a, b, c, d) : new Segment(a, (2 * b + a) / 3, (2 * b + c) / 3, c)\n          }\n          cur.length = cnt\n        }\n        return obj\n      },\n      _addCubicLengths = function (a, steps, resolution) {\n        var inc = 1 / resolution,\n          j = a.length,\n          d, d1, s, da, ca, ba, p, i, inv, bez, index\n        while (--j > -1) {\n          bez = a[j]\n          s = bez.a\n          da = bez.d - s\n          ca = bez.c - s\n          ba = bez.b - s\n          d = d1 = 0\n          for (i = 1; i <= resolution; i++) {\n            p = inc * i\n            inv = 1 - p\n            d = d1 - (d1 = (p * p * da + 3 * inv * (p * ca + inv * ba)) * p)\n            index = j * resolution + i - 1\n            steps[index] = (steps[index] || 0) + d * d\n          }\n        }\n      },\n      _parseLengthData = function (obj, resolution) {\n        resolution = resolution >> 0 || 6\n        var a = [],\n          lengths = [],\n          d = 0,\n          total = 0,\n          threshold = resolution - 1,\n          segments = [],\n          curLS = [], // current length segments array\n          p, i, l, index\n        for (p in obj) {\n          _addCubicLengths(obj[p], a, resolution)\n        }\n        l = a.length\n        for (i = 0; i < l; i++) {\n          d += Math.sqrt(a[i])\n          index = i % resolution\n          curLS[index] = d\n          if (index === threshold) {\n            total += d\n            index = (i / resolution) >> 0\n            segments[index] = curLS\n            lengths[index] = total\n            d = 0\n            curLS = []\n          }\n        }\n        return {length: total, lengths: lengths, segments: segments}\n      },\n\n      BezierPlugin = _gsScope._gsDefine.plugin({\n        propName: 'bezier',\n        priority: -1,\n        version: '1.3.8',\n        API: 2,\n        global: true,\n\n        // gets called when the tween renders for the first time. This is where initial values should be recorded and any setup routines should run.\n        init: function (target, vars, tween) {\n          this._target = target\n          if (vars instanceof Array) {\n            vars = {values: vars}\n          }\n          this._func = {}\n          this._mod = {}\n          this._props = []\n          this._timeRes = (vars.timeResolution == null) ? 6 : parseInt(vars.timeResolution, 10)\n          var values = vars.values || [],\n            first = {},\n            second = values[0],\n            autoRotate = vars.autoRotate || tween.vars.orientToBezier,\n            p, isFunc, i, j, prepend\n\n          this._autoRotate = autoRotate ? (autoRotate instanceof Array) ? autoRotate : [['x', 'y', 'rotation', ((autoRotate === true) ? 0 : Number(autoRotate) || 0)]] : null\n          for (p in second) {\n            this._props.push(p)\n          }\n\n          i = this._props.length\n          while (--i > -1) {\n            p = this._props[i]\n\n            this._overwriteProps.push(p)\n            isFunc = this._func[p] = (typeof (target[p]) === 'function')\n            first[p] = (!isFunc) ? parseFloat(target[p]) : target[ ((p.indexOf('set') || typeof (target['get' + p.substr(3)]) !== 'function') ? p : 'get' + p.substr(3)) ]()\n            if (!prepend) {\n              if (first[p] !== values[0][p]) {\n                prepend = first\n              }\n            }\n          }\n          this._beziers = (vars.type !== 'cubic' && vars.type !== 'quadratic' && vars.type !== 'soft') ? bezierThrough(values, isNaN(vars.curviness) ? 1 : vars.curviness, false, (vars.type === 'thruBasic'), vars.correlate, prepend) : _parseBezierData(values, vars.type, first)\n          this._segCount = this._beziers[p].length\n\n          if (this._timeRes) {\n            var ld = _parseLengthData(this._beziers, this._timeRes)\n            this._length = ld.length\n            this._lengths = ld.lengths\n            this._segments = ld.segments\n            this._l1 = this._li = this._s1 = this._si = 0\n            this._l2 = this._lengths[0]\n            this._curSeg = this._segments[0]\n            this._s2 = this._curSeg[0]\n            this._prec = 1 / this._curSeg.length\n          }\n\n          if ((autoRotate = this._autoRotate)) {\n            this._initialRotations = []\n            if (!(autoRotate[0] instanceof Array)) {\n              this._autoRotate = autoRotate = [autoRotate]\n            }\n            i = autoRotate.length\n            while (--i > -1) {\n              for (j = 0; j < 3; j++) {\n                p = autoRotate[i][j]\n                this._func[p] = (typeof (target[p]) === 'function') ? target[ ((p.indexOf('set') || typeof (target['get' + p.substr(3)]) !== 'function') ? p : 'get' + p.substr(3)) ] : false\n              }\n              p = autoRotate[i][2]\n              this._initialRotations[i] = (this._func[p] ? this._func[p].call(this._target) : this._target[p]) || 0\n              this._overwriteProps.push(p)\n            }\n          }\n          this._startRatio = tween.vars.runBackwards ? 1 : 0 // we determine the starting ratio when the tween inits which is always 0 unless the tween has runBackwards:true (indicating it's a from() tween) in which case it's 1.\n          return true\n        },\n\n        // called each time the values should be updated, and the ratio gets passed as the only parameter (typically it's a value between 0 and 1, but it can exceed those when using an ease like Elastic.easeOut or Back.easeOut, etc.)\n        set: function (v) {\n          var segments = this._segCount,\n            func = this._func,\n            target = this._target,\n            notStart = (v !== this._startRatio),\n            curIndex, inv, i, p, b, t, val, l, lengths, curSeg\n          if (!this._timeRes) {\n            curIndex = (v < 0) ? 0 : (v >= 1) ? segments - 1 : (segments * v) >> 0\n            t = (v - (curIndex * (1 / segments))) * segments\n          } else {\n            lengths = this._lengths\n            curSeg = this._curSeg\n            v *= this._length\n            i = this._li\n            // find the appropriate segment (if the currently cached one isn't correct)\n            if (v > this._l2 && i < segments - 1) {\n              l = segments - 1\n              while (i < l && (this._l2 = lengths[++i]) <= v) {\t}\n              this._l1 = lengths[i - 1]\n              this._li = i\n              this._curSeg = curSeg = this._segments[i]\n              this._s2 = curSeg[(this._s1 = this._si = 0)]\n            } else if (v < this._l1 && i > 0) {\n              while (i > 0 && (this._l1 = lengths[--i]) >= v) { }\n              if (i === 0 && v < this._l1) {\n                this._l1 = 0\n              } else {\n                i++\n              }\n              this._l2 = lengths[i]\n              this._li = i\n              this._curSeg = curSeg = this._segments[i]\n              this._s1 = curSeg[(this._si = curSeg.length - 1) - 1] || 0\n              this._s2 = curSeg[this._si]\n            }\n            curIndex = i\n            // now find the appropriate sub-segment (we split it into the number of pieces that was defined by \"precision\" and measured each one)\n            v -= this._l1\n            i = this._si\n            if (v > this._s2 && i < curSeg.length - 1) {\n              l = curSeg.length - 1\n              while (i < l && (this._s2 = curSeg[++i]) <= v) {\t}\n              this._s1 = curSeg[i - 1]\n              this._si = i\n            } else if (v < this._s1 && i > 0) {\n              while (i > 0 && (this._s1 = curSeg[--i]) >= v) {\t}\n              if (i === 0 && v < this._s1) {\n                this._s1 = 0\n              } else {\n                i++\n              }\n              this._s2 = curSeg[i]\n              this._si = i\n            }\n            t = ((i + (v - this._s1) / (this._s2 - this._s1)) * this._prec) || 0\n          }\n          inv = 1 - t\n\n          i = this._props.length\n          while (--i > -1) {\n            p = this._props[i]\n            b = this._beziers[p][curIndex]\n            val = (t * t * b.da + 3 * inv * (t * b.ca + inv * b.ba)) * t + b.a\n            if (this._mod[p]) {\n              val = this._mod[p](val, target)\n            }\n            if (func[p]) {\n              target[p](val)\n            } else {\n              target[p] = val\n            }\n          }\n\n          if (this._autoRotate) {\n            var ar = this._autoRotate,\n              b2, x1, y1, x2, y2, add, conv\n            i = ar.length\n            while (--i > -1) {\n              p = ar[i][2]\n              add = ar[i][3] || 0\n              conv = (ar[i][4] === true) ? 1 : _RAD2DEG\n              b = this._beziers[ar[i][0]]\n              b2 = this._beziers[ar[i][1]]\n\n              if (b && b2) { // in case one of the properties got overwritten.\n                b = b[curIndex]\n                b2 = b2[curIndex]\n\n                x1 = b.a + (b.b - b.a) * t\n                x2 = b.b + (b.c - b.b) * t\n                x1 += (x2 - x1) * t\n                x2 += ((b.c + (b.d - b.c) * t) - x2) * t\n\n                y1 = b2.a + (b2.b - b2.a) * t\n                y2 = b2.b + (b2.c - b2.b) * t\n                y1 += (y2 - y1) * t\n                y2 += ((b2.c + (b2.d - b2.c) * t) - y2) * t\n\n                val = notStart ? Math.atan2(y2 - y1, x2 - x1) * conv + add : this._initialRotations[i]\n\n                if (this._mod[p]) {\n                  val = this._mod[p](val, target) // for modProps\n                }\n\n                if (func[p]) {\n                  target[p](val)\n                } else {\n                  target[p] = val\n                }\n              }\n            }\n          }\n        }\n      }),\n      p = BezierPlugin.prototype\n\n    BezierPlugin.bezierThrough = bezierThrough\n    BezierPlugin.cubicToQuadratic = cubicToQuadratic\n    BezierPlugin._autoCSS = true // indicates that this plugin can be inserted into the \"css\" object using the autoCSS feature of TweenLite\n    BezierPlugin.quadraticToCubic = function (a, b, c) {\n      return new Segment(a, (2 * b + a) / 3, (2 * b + c) / 3, c)\n    }\n\n    BezierPlugin._cssRegister = function () {\n      var CSSPlugin = _globals.CSSPlugin\n      if (!CSSPlugin) {\n        return\n      }\n      var _internals = CSSPlugin._internals,\n        _parseToProxy = _internals._parseToProxy,\n        _setPluginRatio = _internals._setPluginRatio,\n        CSSPropTween = _internals.CSSPropTween\n      _internals._registerComplexSpecialProp('bezier', {parser: function (t, e, prop, cssp, pt, plugin) {\n        if (e instanceof Array) {\n          e = {values: e}\n        }\n        plugin = new BezierPlugin()\n        var values = e.values,\n          l = values.length - 1,\n          pluginValues = [],\n          v = {},\n          i, p, data\n        if (l < 0) {\n          return pt\n        }\n        for (i = 0; i <= l; i++) {\n          data = _parseToProxy(t, values[i], cssp, pt, plugin, (l !== i))\n          pluginValues[i] = data.end\n        }\n        for (p in e) {\n          v[p] = e[p] // duplicate the vars object because we need to alter some things which would cause problems if the user plans to reuse the same vars object for another tween.\n        }\n        v.values = pluginValues\n        pt = new CSSPropTween(t, 'bezier', 0, 0, data.pt, 2)\n        pt.data = data\n        pt.plugin = plugin\n        pt.setRatio = _setPluginRatio\n        if (v.autoRotate === 0) {\n          v.autoRotate = true\n        }\n        if (v.autoRotate && !(v.autoRotate instanceof Array)) {\n          i = (v.autoRotate === true) ? 0 : Number(v.autoRotate)\n          v.autoRotate = (data.end.left != null) ? [['left', 'top', 'rotation', i, false]] : (data.end.x != null) ? [['x', 'y', 'rotation', i, false]] : false\n        }\n        if (v.autoRotate) {\n          if (!cssp._transform) {\n            cssp._enableTransforms(false)\n          }\n          data.autoRotate = cssp._target._gsTransform\n          data.proxy.rotation = data.autoRotate.rotation || 0\n          cssp._overwriteProps.push('rotation')\n        }\n        plugin._onInitTween(data.proxy, v, cssp._tween)\n        return pt\n      }})\n    }\n\n    p._mod = function (lookup) {\n      var op = this._overwriteProps,\n        i = op.length,\n        val\n      while (--i > -1) {\n        val = lookup[op[i]]\n        if (val && typeof (val) === 'function') {\n          this._mod[op[i]] = val\n        }\n      }\n    }\n\n    p._kill = function (lookup) {\n      var a = this._props,\n        p, i\n      for (p in this._beziers) {\n        if (p in lookup) {\n          delete this._beziers[p]\n          delete this._func[p]\n          i = a.length\n          while (--i > -1) {\n            if (a[i] === p) {\n              a.splice(i, 1)\n            }\n          }\n        }\n      }\n      a = this._autoRotate\n      if (a) {\n        i = a.length\n        while (--i > -1) {\n          if (lookup[a[i][2]]) {\n            a.splice(i, 1)\n          }\n        }\n      }\n      return this._super._kill.call(this, lookup)\n    }\n  }())\n\n  /*\n * ----------------------------------------------------------------\n * CSSPlugin\n * ----------------------------------------------------------------\n */\n  _gsScope._gsDefine('plugins.CSSPlugin', ['plugins.TweenPlugin', 'TweenLite'], function (TweenPlugin, TweenLite) {\n    /** @constructor **/\n    var CSSPlugin = function () {\n        TweenPlugin.call(this, 'css')\n        this._overwriteProps.length = 0\n        this.setRatio = CSSPlugin.prototype.setRatio // speed optimization (avoid prototype lookup on this \"hot\" method)\n      },\n      _globals = _gsScope._gsDefine.globals,\n      _hasPriority, // turns true whenever a CSSPropTween instance is created that has a priority other than 0. This helps us discern whether or not we should spend the time organizing the linked list or not after a CSSPlugin's _onInitTween() method is called.\n      _suffixMap, // we set this in _onInitTween() each time as a way to have a persistent variable we can use in other methods like _parse() without having to pass it around as a parameter and we keep _parse() decoupled from a particular CSSPlugin instance\n      _cs, // computed style (we store this in a shared variable to conserve memory and make minification tighter\n      _overwriteProps, // alias to the currently instantiating CSSPlugin's _overwriteProps array. We use this closure in order to avoid having to pass a reference around from method to method and aid in minification.\n      _specialProps = {},\n      p = CSSPlugin.prototype = new TweenPlugin('css')\n\n    p.constructor = CSSPlugin\n    CSSPlugin.version = '1.20.0'\n    CSSPlugin.API = 2\n    CSSPlugin.defaultTransformPerspective = 0\n    CSSPlugin.defaultSkewType = 'compensated'\n    CSSPlugin.defaultSmoothOrigin = true\n    p = 'px' // we'll reuse the \"p\" variable to keep file size down\n    CSSPlugin.suffixMap = {top: p, right: p, bottom: p, left: p, width: p, height: p, fontSize: p, padding: p, margin: p, perspective: p, lineHeight: ''}\n\n    var _numExp = /(?:\\-|\\.|\\b)(\\d|\\.|e\\-)+/g,\n      _relNumExp = /(?:\\d|\\-\\d|\\.\\d|\\-\\.\\d|\\+=\\d|\\-=\\d|\\+=.\\d|\\-=\\.\\d)+/g,\n      _valuesExp = /(?:\\+=|\\-=|\\-|\\b)[\\d\\-\\.]+[a-zA-Z0-9]*(?:%|\\b)/gi, // finds all the values that begin with numbers or += or -= and then a number. Includes suffixes. We use this to split complex values apart like \"1px 5px 20px rgb(255,102,51)\"\n      _NaNExp = /(?![+-]?\\d*\\.?\\d+|[+-]|e[+-]\\d+)[^0-9]/g, // also allows scientific notation and doesn't kill the leading -/+ in -= and +=\n      _suffixExp = /(?:\\d|\\-|\\+|=|#|\\.)*/g,\n      _opacityExp = /opacity *= *([^)]*)/i,\n      _opacityValExp = /opacity:([^;]*)/i,\n      _alphaFilterExp = /alpha\\(opacity *=.+?\\)/i,\n      _rgbhslExp = /^(rgb|hsl)/,\n      _capsExp = /([A-Z])/g,\n      _camelExp = /-([a-z])/gi,\n      _urlExp = /(^(?:url\\(\\\"|url\\())|(?:(\\\"\\))$|\\)$)/gi, // for pulling out urls from url(...) or url(\"...\") strings (some browsers wrap urls in quotes, some don't when reporting things like backgroundImage)\n      _camelFunc = function (s, g) { return g.toUpperCase() },\n      _horizExp = /(?:Left|Right|Width)/i,\n      _ieGetMatrixExp = /(M11|M12|M21|M22)=[\\d\\-\\.e]+/gi,\n      _ieSetMatrixExp = /progid\\:DXImageTransform\\.Microsoft\\.Matrix\\(.+?\\)/i,\n      _commasOutsideParenExp = /,(?=[^\\)]*(?:\\(|$))/gi, // finds any commas that are not within parenthesis\n      _complexExp = /[\\s,\\(]/i, // for testing a string to find if it has a space, comma, or open parenthesis (clues that it's a complex value)\n      _DEG2RAD = Math.PI / 180,\n      _RAD2DEG = 180 / Math.PI,\n      _forcePT = {},\n      _dummyElement = {style: {}},\n      _doc = _gsScope.document || {createElement: function () { return _dummyElement }},\n      _createElement = function (type, ns) {\n        return _doc.createElementNS ? _doc.createElementNS(ns || 'http://www.w3.org/1999/xhtml', type) : _doc.createElement(type)\n      },\n      _tempDiv = _createElement('div'),\n      _tempImg = _createElement('img'),\n      _internals = CSSPlugin._internals = {_specialProps: _specialProps}, // provides a hook to a few internal methods that we need to access from inside other plugins\n      _agent = (_gsScope.navigator || {}).userAgent || '',\n      _autoRound,\n      _reqSafariFix, // we won't apply the Safari transform fix until we actually come across a tween that affects a transform property (to maintain best performance).\n\n      _isSafari,\n      _isFirefox, // Firefox has a bug that causes 3D transformed elements to randomly disappear unless a repaint is forced after each update on each element.\n      _isSafariLT6, // Safari (and Android 4 which uses a flavor of Safari) has a bug that prevents changes to \"top\" and \"left\" properties from rendering properly if changed on the same frame as a transform UNLESS we set the element's WebkitBackfaceVisibility to hidden (weird, I know). Doing this for Android 3 and earlier seems to actually cause other problems, though (fun!)\n      _ieVers,\n      _supportsOpacity = (function () { // we set _isSafari, _ieVers, _isFirefox, and _supportsOpacity all in one function here to reduce file size slightly, especially in the minified version.\n        var i = _agent.indexOf('Android'),\n          a = _createElement('a')\n        _isSafari = (_agent.indexOf('Safari') !== -1 && _agent.indexOf('Chrome') === -1 && (i === -1 || parseFloat(_agent.substr(i + 8, 2)) > 3))\n        _isSafariLT6 = (_isSafari && (parseFloat(_agent.substr(_agent.indexOf('Version/') + 8, 2)) < 6))\n        _isFirefox = (_agent.indexOf('Firefox') !== -1)\n        if ((/MSIE ([0-9]{1,}[\\.0-9]{0,})/).exec(_agent) || (/Trident\\/.*rv:([0-9]{1,}[\\.0-9]{0,})/).exec(_agent)) {\n          _ieVers = parseFloat(RegExp.$1)\n        }\n        if (!a) {\n          return false\n        }\n        a.style.cssText = 'top:1px;opacity:.55;'\n        return /^0.55/.test(a.style.opacity)\n      }()),\n      _getIEOpacity = function (v) {\n        return (_opacityExp.test(((typeof (v) === 'string') ? v : (v.currentStyle ? v.currentStyle.filter : v.style.filter) || '')) ? (parseFloat(RegExp.$1) / 100) : 1)\n      },\n      _log = function (s) { // for logging messages, but in a way that won't throw errors in old versions of IE.\n        if (_gsScope.console) {\n          console.log(s)\n        }\n      },\n      _target, // when initting a CSSPlugin, we set this variable so that we can access it from within many other functions without having to pass it around as params\n      _index, // when initting a CSSPlugin, we set this variable so that we can access it from within many other functions without having to pass it around as params\n\n      _prefixCSS = '', // the non-camelCase vendor prefix like \"-o-\", \"-moz-\", \"-ms-\", or \"-webkit-\"\n      _prefix = '', // camelCase vendor prefix like \"O\", \"ms\", \"Webkit\", or \"Moz\".\n\n      // @private feed in a camelCase property name like \"transform\" and it will check to see if it is valid as-is or if it needs a vendor prefix. It returns the corrected camelCase property name (i.e. \"WebkitTransform\" or \"MozTransform\" or \"transform\" or null if no such property is found, like if the browser is IE8 or before, \"transform\" won't be found at all)\n      _checkPropPrefix = function (p, e) {\n        e = e || _tempDiv\n        var s = e.style,\n          a, i\n        if (s[p] !== undefined) {\n          return p\n        }\n        p = p.charAt(0).toUpperCase() + p.substr(1)\n        a = ['O', 'Moz', 'ms', 'Ms', 'Webkit']\n        i = 5\n        while (--i > -1 && s[a[i] + p] === undefined) { }\n        if (i >= 0) {\n          _prefix = (i === 3) ? 'ms' : a[i]\n          _prefixCSS = '-' + _prefix.toLowerCase() + '-'\n          return _prefix + p\n        }\n        return null\n      },\n\n      _getComputedStyle = _doc.defaultView ? _doc.defaultView.getComputedStyle : function () {},\n\n      /**\n\t\t\t * @private Returns the css style for a particular property of an element. For example, to get whatever the current \"left\" css value for an element with an ID of \"myElement\", you could do:\n\t\t\t * var currentLeft = CSSPlugin.getStyle( document.getElementById(\"myElement\"), \"left\");\n\t\t\t *\n\t\t\t * @param {!Object} t Target element whose style property you want to query\n\t\t\t * @param {!string} p Property name (like \"left\" or \"top\" or \"marginTop\", etc.)\n\t\t\t * @param {Object=} cs Computed style object. This just provides a way to speed processing if you're going to get several properties on the same element in quick succession - you can reuse the result of the getComputedStyle() call.\n\t\t\t * @param {boolean=} calc If true, the value will not be read directly from the element's \"style\" property (if it exists there), but instead the getComputedStyle() result will be used. This can be useful when you want to ensure that the browser itself is interpreting the value.\n\t\t\t * @param {string=} dflt Default value that should be returned in the place of null, \"none\", \"auto\" or \"auto auto\".\n\t\t\t * @return {?string} The current property value\n\t\t\t */\n      _getStyle = CSSPlugin.getStyle = function (t, p, cs, calc, dflt) {\n        var rv\n        if (!_supportsOpacity) {\n          if (p === 'opacity') { // several versions of IE don't use the standard \"opacity\" property - they use things like filter:alpha(opacity=50), so we parse that here.\n            return _getIEOpacity(t)\n          }\n        }\n        if (!calc && t.style[p]) {\n          rv = t.style[p]\n        } else if ((cs = cs || _getComputedStyle(t))) {\n          rv = cs[p] || cs.getPropertyValue(p) || cs.getPropertyValue(p.replace(_capsExp, '-$1').toLowerCase())\n        } else if (t.currentStyle) {\n          rv = t.currentStyle[p]\n        }\n        return (dflt != null && (!rv || rv === 'none' || rv === 'auto' || rv === 'auto auto')) ? dflt : rv\n      },\n\n      /**\n\t\t\t * @private Pass the target element, the property name, the numeric value, and the suffix (like \"%\", \"em\", \"px\", etc.) and it will spit back the equivalent pixel number.\n\t\t\t * @param {!Object} t Target element\n\t\t\t * @param {!string} p Property name (like \"left\", \"top\", \"marginLeft\", etc.)\n\t\t\t * @param {!number} v Value\n\t\t\t * @param {string=} sfx Suffix (like \"px\" or \"%\" or \"em\")\n\t\t\t * @param {boolean=} recurse If true, the call is a recursive one. In some browsers (like IE7/8), occasionally the value isn't accurately reported initially, but if we run the function again it will take effect.\n\t\t\t * @return {number} value in pixels\n\t\t\t */\n      _convertToPixels = _internals.convertToPixels = function (t, p, v, sfx, recurse) {\n        if (sfx === 'px' || (!sfx && p !== 'lineHeight')) { return v }\n        if (sfx === 'auto' || !v) { return 0 }\n        var horiz = _horizExp.test(p),\n          node = t,\n          style = _tempDiv.style,\n          neg = (v < 0),\n          precise = (v === 1),\n          pix, cache, time\n        if (neg) {\n          v = -v\n        }\n        if (precise) {\n          v *= 100\n        }\n        if (p === 'lineHeight' && !sfx) { // special case of when a simple lineHeight (without a unit) is used. Set it to the value, read back the computed value, and then revert.\n          cache = _getComputedStyle(t).lineHeight\n          t.style.lineHeight = v\n          pix = parseFloat(_getComputedStyle(t).lineHeight)\n          t.style.lineHeight = cache\n        } else if (sfx === '%' && p.indexOf('border') !== -1) {\n          pix = (v / 100) * (horiz ? t.clientWidth : t.clientHeight)\n        } else {\n          style.cssText = 'border:0 solid red;position:' + _getStyle(t, 'position') + ';line-height:0;'\n          if (sfx === '%' || !node.appendChild || sfx.charAt(0) === 'v' || sfx === 'rem') {\n            node = t.parentNode || _doc.body\n            if (_getStyle(node, 'display').indexOf('flex') !== -1) { // Edge and IE11 have a bug that causes offsetWidth to report as 0 if the container has display:flex and the child is position:relative. Switching to position: absolute solves it.\n              style.position = 'absolute'\n            }\n            cache = node._gsCache\n            time = TweenLite.ticker.frame\n            if (cache && horiz && cache.time === time) { // performance optimization: we record the width of elements along with the ticker frame so that we can quickly get it again on the same tick (seems relatively safe to assume it wouldn't change on the same tick)\n              return cache.width * v / 100\n            }\n            style[(horiz ? 'width' : 'height')] = v + sfx\n          } else {\n            style[(horiz ? 'borderLeftWidth' : 'borderTopWidth')] = v + sfx\n          }\n          node.appendChild(_tempDiv)\n          pix = parseFloat(_tempDiv[(horiz ? 'offsetWidth' : 'offsetHeight')])\n          node.removeChild(_tempDiv)\n          if (horiz && sfx === '%' && CSSPlugin.cacheWidths !== false) {\n            cache = node._gsCache = node._gsCache || {}\n            cache.time = time\n            cache.width = pix / v * 100\n          }\n          if (pix === 0 && !recurse) {\n            pix = _convertToPixels(t, p, v, sfx, true)\n          }\n        }\n        if (precise) {\n          pix /= 100\n        }\n        return neg ? -pix : pix\n      },\n      _calculateOffset = _internals.calculateOffset = function (t, p, cs) { // for figuring out \"top\" or \"left\" in px when it's \"auto\". We need to factor in margin with the offsetLeft/offsetTop\n        if (_getStyle(t, 'position', cs) !== 'absolute') { return 0 }\n        var dim = ((p === 'left') ? 'Left' : 'Top'),\n          v = _getStyle(t, 'margin' + dim, cs)\n        return t['offset' + dim] - (_convertToPixels(t, p, parseFloat(v), v.replace(_suffixExp, '')) || 0)\n      },\n\n      // @private returns at object containing ALL of the style properties in camelCase and their associated values.\n      _getAllStyles = function (t, cs) {\n        var s = {},\n          i, tr, p\n        if ((cs = cs || _getComputedStyle(t, null))) {\n          if ((i = cs.length)) {\n            while (--i > -1) {\n              p = cs[i]\n              if (p.indexOf('-transform') === -1 || _transformPropCSS === p) { // Some webkit browsers duplicate transform values, one non-prefixed and one prefixed (\"transform\" and \"WebkitTransform\"), so we must weed out the extra one here.\n                s[p.replace(_camelExp, _camelFunc)] = cs.getPropertyValue(p)\n              }\n            }\n          } else { // some browsers behave differently - cs.length is always 0, so we must do a for...in loop.\n            for (i in cs) {\n              if (i.indexOf('Transform') === -1 || _transformProp === i) { // Some webkit browsers duplicate transform values, one non-prefixed and one prefixed (\"transform\" and \"WebkitTransform\"), so we must weed out the extra one here.\n                s[i] = cs[i]\n              }\n            }\n          }\n        } else if ((cs = t.currentStyle || t.style)) {\n          for (i in cs) {\n            if (typeof (i) === 'string' && s[i] === undefined) {\n              s[i.replace(_camelExp, _camelFunc)] = cs[i]\n            }\n          }\n        }\n        if (!_supportsOpacity) {\n          s.opacity = _getIEOpacity(t)\n        }\n        tr = _getTransform(t, cs, false)\n        s.rotation = tr.rotation\n        s.skewX = tr.skewX\n        s.scaleX = tr.scaleX\n        s.scaleY = tr.scaleY\n        s.x = tr.x\n        s.y = tr.y\n        if (_supports3D) {\n          s.z = tr.z\n          s.rotationX = tr.rotationX\n          s.rotationY = tr.rotationY\n          s.scaleZ = tr.scaleZ\n        }\n        if (s.filters) {\n          delete s.filters\n        }\n        return s\n      },\n\n      // @private analyzes two style objects (as returned by _getAllStyles()) and only looks for differences between them that contain tweenable values (like a number or color). It returns an object with a \"difs\" property which refers to an object containing only those isolated properties and values for tweening, and a \"firstMPT\" property which refers to the first MiniPropTween instance in a linked list that recorded all the starting values of the different properties so that we can revert to them at the end or beginning of the tween - we don't want the cascading to get messed up. The forceLookup parameter is an optional generic object with properties that should be forced into the results - this is necessary for className tweens that are overwriting others because imagine a scenario where a rollover/rollout adds/removes a class and the user swipes the mouse over the target SUPER fast, thus nothing actually changed yet and the subsequent comparison of the properties would indicate they match (especially when px rounding is taken into consideration), thus no tweening is necessary even though it SHOULD tween and remove those properties after the tween (otherwise the inline styles will contaminate things). See the className SpecialProp code for details.\n      _cssDif = function (t, s1, s2, vars, forceLookup) {\n        var difs = {},\n          style = t.style,\n          val, p, mpt\n        for (p in s2) {\n          if (p !== 'cssText') {\n            if (p !== 'length') {\n              if (isNaN(p)) {\n                if (s1[p] !== (val = s2[p]) || (forceLookup && forceLookup[p])) {\n                  if (p.indexOf('Origin') === -1) {\n                    if (typeof (val) === 'number' || typeof (val) === 'string') {\n                      difs[p] = (val === 'auto' && (p === 'left' || p === 'top')) ? _calculateOffset(t, p) : ((val === '' || val === 'auto' || val === 'none') && typeof (s1[p]) === 'string' && s1[p].replace(_NaNExp, '') !== '') ? 0 : val // if the ending value is defaulting (\"\" or \"auto\"), we check the starting value and if it can be parsed into a number (a string which could have a suffix too, like 700px), then we swap in 0 for \"\" or \"auto\" so that things actually tween.\n                      if (style[p] !== undefined) { // for className tweens, we must remember which properties already existed inline - the ones that didn't should be removed when the tween isn't in progress because they were only introduced to facilitate the transition between classes.\n                        mpt = new MiniPropTween(style, p, style[p], mpt)\n                      }\n                    }\n                  }\n                }\n              }\n            }\n          }\n        }\n        if (vars) {\n          for (p in vars) { // copy properties (except className)\n            if (p !== 'className') {\n              difs[p] = vars[p]\n            }\n          }\n        }\n        return {difs: difs, firstMPT: mpt}\n      },\n      _dimensions = {width: ['Left', 'Right'], height: ['Top', 'Bottom']},\n      _margins = ['marginLeft', 'marginRight', 'marginTop', 'marginBottom'],\n\n      /**\n\t\t\t * @private Gets the width or height of an element\n\t\t\t * @param {!Object} t Target element\n\t\t\t * @param {!string} p Property name (\"width\" or \"height\")\n\t\t\t * @param {Object=} cs Computed style object (if one exists). Just a speed optimization.\n\t\t\t * @return {number} Dimension (in pixels)\n\t\t\t */\n      _getDimension = function (t, p, cs) {\n        if ((t.nodeName + '').toLowerCase() === 'svg') { // Chrome no longer supports offsetWidth/offsetHeight on SVG elements.\n          return (cs || _getComputedStyle(t))[p] || 0\n        } else if (t.getCTM && _isSVG(t)) {\n          return t.getBBox()[p] || 0\n        }\n        var v = parseFloat((p === 'width') ? t.offsetWidth : t.offsetHeight),\n          a = _dimensions[p],\n          i = a.length\n        cs = cs || _getComputedStyle(t, null)\n        while (--i > -1) {\n          v -= parseFloat(_getStyle(t, 'padding' + a[i], cs, true)) || 0\n          v -= parseFloat(_getStyle(t, 'border' + a[i] + 'Width', cs, true)) || 0\n        }\n        return v\n      },\n\n      // @private Parses position-related complex strings like \"top left\" or \"50px 10px\" or \"70% 20%\", etc. which are used for things like transformOrigin or backgroundPosition. Optionally decorates a supplied object (recObj) with the following properties: \"ox\" (offsetX), \"oy\" (offsetY), \"oxp\" (if true, \"ox\" is a percentage not a pixel value), and \"oxy\" (if true, \"oy\" is a percentage not a pixel value)\n      _parsePosition = function (v, recObj) {\n        if (v === 'contain' || v === 'auto' || v === 'auto auto') { // note: Firefox uses \"auto auto\" as default whereas Chrome uses \"auto\".\n          return v + ' '\n        }\n        if (v == null || v === '') {\n          v = '0 0'\n        }\n        var a = v.split(' '),\n          x = (v.indexOf('left') !== -1) ? '0%' : (v.indexOf('right') !== -1) ? '100%' : a[0],\n          y = (v.indexOf('top') !== -1) ? '0%' : (v.indexOf('bottom') !== -1) ? '100%' : a[1],\n          i\n        if (a.length > 3 && !recObj) { // multiple positions\n          a = v.split(', ').join(',').split(',')\n          v = []\n          for (i = 0; i < a.length; i++) {\n            v.push(_parsePosition(a[i]))\n          }\n          return v.join(',')\n        }\n        if (y == null) {\n          y = (x === 'center') ? '50%' : '0'\n        } else if (y === 'center') {\n          y = '50%'\n        }\n        if (x === 'center' || (isNaN(parseFloat(x)) && (x + '').indexOf('=') === -1)) { // remember, the user could flip-flop the values and say \"bottom center\" or \"center bottom\", etc. \"center\" is ambiguous because it could be used to describe horizontal or vertical, hence the isNaN(). If there's an \"=\" sign in the value, it's relative.\n          x = '50%'\n        }\n        v = x + ' ' + y + ((a.length > 2) ? ' ' + a[2] : '')\n        if (recObj) {\n          recObj.oxp = (x.indexOf('%') !== -1)\n          recObj.oyp = (y.indexOf('%') !== -1)\n          recObj.oxr = (x.charAt(1) === '=')\n          recObj.oyr = (y.charAt(1) === '=')\n          recObj.ox = parseFloat(x.replace(_NaNExp, ''))\n          recObj.oy = parseFloat(y.replace(_NaNExp, ''))\n          recObj.v = v\n        }\n        return recObj || v\n      },\n\n      /**\n\t\t\t * @private Takes an ending value (typically a string, but can be a number) and a starting value and returns the change between the two, looking for relative value indicators like += and -= and it also ignores suffixes (but make sure the ending value starts with a number or +=/-= and that the starting value is a NUMBER!)\n\t\t\t * @param {(number|string)} e End value which is typically a string, but could be a number\n\t\t\t * @param {(number|string)} b Beginning value which is typically a string but could be a number\n\t\t\t * @return {number} Amount of change between the beginning and ending values (relative values that have a \"+=\" or \"-=\" are recognized)\n\t\t\t */\n      _parseChange = function (e, b) {\n        if (typeof (e) === 'function') {\n          e = e(_index, _target)\n        }\n        return (typeof (e) === 'string' && e.charAt(1) === '=') ? parseInt(e.charAt(0) + '1', 10) * parseFloat(e.substr(2)) : (parseFloat(e) - parseFloat(b)) || 0\n      },\n\n      /**\n\t\t\t * @private Takes a value and a default number, checks if the value is relative, null, or numeric and spits back a normalized number accordingly. Primarily used in the _parseTransform() function.\n\t\t\t * @param {Object} v Value to be parsed\n\t\t\t * @param {!number} d Default value (which is also used for relative calculations if \"+=\" or \"-=\" is found in the first parameter)\n\t\t\t * @return {number} Parsed value\n\t\t\t */\n      _parseVal = function (v, d) {\n        if (typeof (v) === 'function') {\n          v = v(_index, _target)\n        }\n        return (v == null) ? d : (typeof (v) === 'string' && v.charAt(1) === '=') ? parseInt(v.charAt(0) + '1', 10) * parseFloat(v.substr(2)) + d : parseFloat(v) || 0\n      },\n\n      /**\n\t\t\t * @private Translates strings like \"40deg\" or \"40\" or 40rad\" or \"+=40deg\" or \"270_short\" or \"-90_cw\" or \"+=45_ccw\" to a numeric radian angle. Of course a starting/default value must be fed in too so that relative values can be calculated properly.\n\t\t\t * @param {Object} v Value to be parsed\n\t\t\t * @param {!number} d Default value (which is also used for relative calculations if \"+=\" or \"-=\" is found in the first parameter)\n\t\t\t * @param {string=} p property name for directionalEnd (optional - only used when the parsed value is directional (\"_short\", \"_cw\", or \"_ccw\" suffix). We need a way to store the uncompensated value so that at the end of the tween, we set it to exactly what was requested with no directional compensation). Property name would be \"rotation\", \"rotationX\", or \"rotationY\"\n\t\t\t * @param {Object=} directionalEnd An object that will store the raw end values for directional angles (\"_short\", \"_cw\", or \"_ccw\" suffix). We need a way to store the uncompensated value so that at the end of the tween, we set it to exactly what was requested with no directional compensation.\n\t\t\t * @return {number} parsed angle in radians\n\t\t\t */\n      _parseAngle = function (v, d, p, directionalEnd) {\n        var min = 0.000001,\n          cap, split, dif, result, isRelative\n        if (typeof (v) === 'function') {\n          v = v(_index, _target)\n        }\n        if (v == null) {\n          result = d\n        } else if (typeof (v) === 'number') {\n          result = v\n        } else {\n          cap = 360\n          split = v.split('_')\n          isRelative = (v.charAt(1) === '=')\n          dif = (isRelative ? parseInt(v.charAt(0) + '1', 10) * parseFloat(split[0].substr(2)) : parseFloat(split[0])) * ((v.indexOf('rad') === -1) ? 1 : _RAD2DEG) - (isRelative ? 0 : d)\n          if (split.length) {\n            if (directionalEnd) {\n              directionalEnd[p] = d + dif\n            }\n            if (v.indexOf('short') !== -1) {\n              dif = dif % cap\n              if (dif !== dif % (cap / 2)) {\n                dif = (dif < 0) ? dif + cap : dif - cap\n              }\n            }\n            if (v.indexOf('_cw') !== -1 && dif < 0) {\n              dif = ((dif + cap * 9999999999) % cap) - ((dif / cap) | 0) * cap\n            } else if (v.indexOf('ccw') !== -1 && dif > 0) {\n              dif = ((dif - cap * 9999999999) % cap) - ((dif / cap) | 0) * cap\n            }\n          }\n          result = d + dif\n        }\n        if (result < min && result > -min) {\n          result = 0\n        }\n        return result\n      },\n\n      _colorLookup = {aqua: [0, 255, 255],\n        lime: [0, 255, 0],\n        silver: [192, 192, 192],\n        black: [0, 0, 0],\n        maroon: [128, 0, 0],\n        teal: [0, 128, 128],\n        blue: [0, 0, 255],\n        navy: [0, 0, 128],\n        white: [255, 255, 255],\n        fuchsia: [255, 0, 255],\n        olive: [128, 128, 0],\n        yellow: [255, 255, 0],\n        orange: [255, 165, 0],\n        gray: [128, 128, 128],\n        purple: [128, 0, 128],\n        green: [0, 128, 0],\n        red: [255, 0, 0],\n        pink: [255, 192, 203],\n        cyan: [0, 255, 255],\n        transparent: [255, 255, 255, 0]},\n\n      _hue = function (h, m1, m2) {\n        h = (h < 0) ? h + 1 : (h > 1) ? h - 1 : h\n        return ((((h * 6 < 1) ? m1 + (m2 - m1) * h * 6 : (h < 0.5) ? m2 : (h * 3 < 2) ? m1 + (m2 - m1) * (2 / 3 - h) * 6 : m1) * 255) + 0.5) | 0\n      },\n\n      /**\n\t\t\t * @private Parses a color (like #9F0, #FF9900, rgb(255,51,153) or hsl(108, 50%, 10%)) into an array with 3 elements for red, green, and blue or if toHSL parameter is true, it will populate the array with hue, saturation, and lightness values. If a relative value is found in an hsl() or hsla() string, it will preserve those relative prefixes and all the values in the array will be strings instead of numbers (in all other cases it will be populated with numbers).\n\t\t\t * @param {(string|number)} v The value the should be parsed which could be a string like #9F0 or rgb(255,102,51) or rgba(255,0,0,0.5) or it could be a number like 0xFF00CC or even a named color like red, blue, purple, etc.\n\t\t\t * @param {(boolean)} toHSL If true, an hsl() or hsla() value will be returned instead of rgb() or rgba()\n\t\t\t * @return {Array.<number>} An array containing red, green, and blue (and optionally alpha) in that order, or if the toHSL parameter was true, the array will contain hue, saturation and lightness (and optionally alpha) in that order. Always numbers unless there's a relative prefix found in an hsl() or hsla() string and toHSL is true.\n\t\t\t */\n      _parseColor = CSSPlugin.parseColor = function (v, toHSL) {\n        var a, r, g, b, h, s, l, max, min, d, wasHSL\n        if (!v) {\n          a = _colorLookup.black\n        } else if (typeof (v) === 'number') {\n          a = [v >> 16, (v >> 8) & 255, v & 255]\n        } else {\n          if (v.charAt(v.length - 1) === ',') { // sometimes a trailing comma is included and we should chop it off (typically from a comma-delimited list of values like a textShadow:\"2px 2px 2px blue, 5px 5px 5px rgb(255,0,0)\" - in this example \"blue,\" has a trailing comma. We could strip it out inside parseComplex() but we'd need to do it to the beginning and ending values plus it wouldn't provide protection from other potential scenarios like if the user passes in a similar value.\n            v = v.substr(0, v.length - 1)\n          }\n          if (_colorLookup[v]) {\n            a = _colorLookup[v]\n          } else if (v.charAt(0) === '#') {\n            if (v.length === 4) { // for shorthand like #9F0\n              r = v.charAt(1)\n              g = v.charAt(2)\n              b = v.charAt(3)\n              v = '#' + r + r + g + g + b + b\n            }\n            v = parseInt(v.substr(1), 16)\n            a = [v >> 16, (v >> 8) & 255, v & 255]\n          } else if (v.substr(0, 3) === 'hsl') {\n            a = wasHSL = v.match(_numExp)\n            if (!toHSL) {\n              h = (Number(a[0]) % 360) / 360\n              s = Number(a[1]) / 100\n              l = Number(a[2]) / 100\n              g = (l <= 0.5) ? l * (s + 1) : l + s - l * s\n              r = l * 2 - g\n              if (a.length > 3) {\n                a[3] = Number(v[3])\n              }\n              a[0] = _hue(h + 1 / 3, r, g)\n              a[1] = _hue(h, r, g)\n              a[2] = _hue(h - 1 / 3, r, g)\n            } else if (v.indexOf('=') !== -1) { // if relative values are found, just return the raw strings with the relative prefixes in place.\n              return v.match(_relNumExp)\n            }\n          } else {\n            a = v.match(_numExp) || _colorLookup.transparent\n          }\n          a[0] = Number(a[0])\n          a[1] = Number(a[1])\n          a[2] = Number(a[2])\n          if (a.length > 3) {\n            a[3] = Number(a[3])\n          }\n        }\n        if (toHSL && !wasHSL) {\n          r = a[0] / 255\n          g = a[1] / 255\n          b = a[2] / 255\n          max = Math.max(r, g, b)\n          min = Math.min(r, g, b)\n          l = (max + min) / 2\n          if (max === min) {\n            h = s = 0\n          } else {\n            d = max - min\n            s = l > 0.5 ? d / (2 - max - min) : d / (max + min)\n            h = (max === r) ? (g - b) / d + (g < b ? 6 : 0) : (max === g) ? (b - r) / d + 2 : (r - g) / d + 4\n            h *= 60\n          }\n          a[0] = (h + 0.5) | 0\n          a[1] = (s * 100 + 0.5) | 0\n          a[2] = (l * 100 + 0.5) | 0\n        }\n        return a\n      },\n      _formatColors = function (s, toHSL) {\n        var colors = s.match(_colorExp) || [],\n          charIndex = 0,\n          parsed = '',\n          i, color, temp\n        if (!colors.length) {\n          return s\n        }\n        for (i = 0; i < colors.length; i++) {\n          color = colors[i]\n          temp = s.substr(charIndex, s.indexOf(color, charIndex) - charIndex)\n          charIndex += temp.length + color.length\n          color = _parseColor(color, toHSL)\n          if (color.length === 3) {\n            color.push(1)\n          }\n          parsed += temp + (toHSL ? 'hsla(' + color[0] + ',' + color[1] + '%,' + color[2] + '%,' + color[3] : 'rgba(' + color.join(',')) + ')'\n        }\n        return parsed + s.substr(charIndex)\n      },\n      _colorExp = '(?:\\\\b(?:(?:rgb|rgba|hsl|hsla)\\\\(.+?\\\\))|\\\\B#(?:[0-9a-f]{3}){1,2}\\\\b' // we'll dynamically build this Regular Expression to conserve file size. After building it, it will be able to find rgb(), rgba(), # (hexadecimal), and named color values like red, blue, purple, etc.\n\n    for (p in _colorLookup) {\n      _colorExp += '|' + p + '\\\\b'\n    }\n    _colorExp = new RegExp(_colorExp + ')', 'gi')\n\n    CSSPlugin.colorStringFilter = function (a) {\n      var combined = a[0] + ' ' + a[1],\n        toHSL\n      if (_colorExp.test(combined)) {\n        toHSL = (combined.indexOf('hsl(') !== -1 || combined.indexOf('hsla(') !== -1)\n        a[0] = _formatColors(a[0], toHSL)\n        a[1] = _formatColors(a[1], toHSL)\n      }\n      _colorExp.lastIndex = 0\n    }\n\n    if (!TweenLite.defaultStringFilter) {\n      TweenLite.defaultStringFilter = CSSPlugin.colorStringFilter\n    }\n\n    /**\n\t\t * @private Returns a formatter function that handles taking a string (or number in some cases) and returning a consistently formatted one in terms of delimiters, quantity of values, etc. For example, we may get boxShadow values defined as \"0px red\" or \"0px 0px 10px rgb(255,0,0)\" or \"0px 0px 20px 20px #F00\" and we need to ensure that what we get back is described with 4 numbers and a color. This allows us to feed it into the _parseComplex() method and split the values up appropriately. The neat thing about this _getFormatter() function is that the dflt defines a pattern as well as a default, so for example, _getFormatter(\"0px 0px 0px 0px #777\", true) not only sets the default as 0px for all distances and #777 for the color, but also sets the pattern such that 4 numbers and a color will always get returned.\n\t\t * @param {!string} dflt The default value and pattern to follow. So \"0px 0px 0px 0px #777\" will ensure that 4 numbers and a color will always get returned.\n\t\t * @param {boolean=} clr If true, the values should be searched for color-related data. For example, boxShadow values typically contain a color whereas borderRadius don't.\n\t\t * @param {boolean=} collapsible If true, the value is a top/left/right/bottom style one that acts like margin or padding, where if only one value is received, it's used for all 4; if 2 are received, the first is duplicated for 3rd (bottom) and the 2nd is duplicated for the 4th spot (left), etc.\n\t\t * @return {Function} formatter function\n\t\t */\n    var _getFormatter = function (dflt, clr, collapsible, multi) {\n        if (dflt == null) {\n          return function (v) { return v }\n        }\n        var dColor = clr ? (dflt.match(_colorExp) || [''])[0] : '',\n          dVals = dflt.split(dColor).join('').match(_valuesExp) || [],\n          pfx = dflt.substr(0, dflt.indexOf(dVals[0])),\n          sfx = (dflt.charAt(dflt.length - 1) === ')') ? ')' : '',\n          delim = (dflt.indexOf(' ') !== -1) ? ' ' : ',',\n          numVals = dVals.length,\n          dSfx = (numVals > 0) ? dVals[0].replace(_numExp, '') : '',\n          formatter\n        if (!numVals) {\n          return function (v) { return v }\n        }\n        if (clr) {\n          formatter = function (v) {\n            var color, vals, i, a\n            if (typeof (v) === 'number') {\n              v += dSfx\n            } else if (multi && _commasOutsideParenExp.test(v)) {\n              a = v.replace(_commasOutsideParenExp, '|').split('|')\n              for (i = 0; i < a.length; i++) {\n                a[i] = formatter(a[i])\n              }\n              return a.join(',')\n            }\n            color = (v.match(_colorExp) || [dColor])[0]\n            vals = v.split(color).join('').match(_valuesExp) || []\n            i = vals.length\n            if (numVals > i--) {\n              while (++i < numVals) {\n                vals[i] = collapsible ? vals[(((i - 1) / 2) | 0)] : dVals[i]\n              }\n            }\n            return pfx + vals.join(delim) + delim + color + sfx + (v.indexOf('inset') !== -1 ? ' inset' : '')\n          }\n          return formatter\n        }\n        formatter = function (v) {\n          var vals, a, i\n          if (typeof (v) === 'number') {\n            v += dSfx\n          } else if (multi && _commasOutsideParenExp.test(v)) {\n            a = v.replace(_commasOutsideParenExp, '|').split('|')\n            for (i = 0; i < a.length; i++) {\n              a[i] = formatter(a[i])\n            }\n            return a.join(',')\n          }\n          vals = v.match(_valuesExp) || []\n          i = vals.length\n          if (numVals > i--) {\n            while (++i < numVals) {\n              vals[i] = collapsible ? vals[(((i - 1) / 2) | 0)] : dVals[i]\n            }\n          }\n          return pfx + vals.join(delim) + sfx\n        }\n        return formatter\n      },\n\n      /**\n\t\t\t * @private returns a formatter function that's used for edge-related values like marginTop, marginLeft, paddingBottom, paddingRight, etc. Just pass a comma-delimited list of property names related to the edges.\n\t\t\t * @param {!string} props a comma-delimited list of property names in order from top to left, like \"marginTop,marginRight,marginBottom,marginLeft\"\n\t\t\t * @return {Function} a formatter function\n\t\t\t */\n      _getEdgeParser = function (props) {\n        props = props.split(',')\n        return function (t, e, p, cssp, pt, plugin, vars) {\n          var a = (e + '').split(' '),\n            i\n          vars = {}\n          for (i = 0; i < 4; i++) {\n            vars[props[i]] = a[i] = a[i] || a[(((i - 1) / 2) >> 0)]\n          }\n          return cssp.parse(t, vars, pt, plugin)\n        }\n      },\n\n      // @private used when other plugins must tween values first, like BezierPlugin or ThrowPropsPlugin, etc. That plugin's setRatio() gets called first so that the values are updated, and then we loop through the MiniPropTweens which handle copying the values into their appropriate slots so that they can then be applied correctly in the main CSSPlugin setRatio() method. Remember, we typically create a proxy object that has a bunch of uniquely-named properties that we feed to the sub-plugin and it does its magic normally, and then we must interpret those values and apply them to the css because often numbers must get combined/concatenated, suffixes added, etc. to work with css, like boxShadow could have 4 values plus a color.\n      _setPluginRatio = _internals._setPluginRatio = function (v) {\n        this.plugin.setRatio(v)\n        var d = this.data,\n          proxy = d.proxy,\n          mpt = d.firstMPT,\n          min = 0.000001,\n          val, pt, i, str, p\n        while (mpt) {\n          val = proxy[mpt.v]\n          if (mpt.r) {\n            val = Math.round(val)\n          } else if (val < min && val > -min) {\n            val = 0\n          }\n          mpt.t[mpt.p] = val\n          mpt = mpt._next\n        }\n        if (d.autoRotate) {\n          d.autoRotate.rotation = d.mod ? d.mod(proxy.rotation, this.t) : proxy.rotation // special case for ModifyPlugin to hook into an auto-rotating bezier\n        }\n        // at the end, we must set the CSSPropTween's \"e\" (end) value dynamically here because that's what is used in the final setRatio() method. Same for \"b\" at the beginning.\n        if (v === 1 || v === 0) {\n          mpt = d.firstMPT\n          p = (v === 1) ? 'e' : 'b'\n          while (mpt) {\n            pt = mpt.t\n            if (!pt.type) {\n              pt[p] = pt.s + pt.xs0\n            } else if (pt.type === 1) {\n              str = pt.xs0 + pt.s + pt.xs1\n              for (i = 1; i < pt.l; i++) {\n                str += pt['xn' + i] + pt['xs' + (i + 1)]\n              }\n              pt[p] = str\n            }\n            mpt = mpt._next\n          }\n        }\n      },\n\n      /**\n\t\t\t * @private @constructor Used by a few SpecialProps to hold important values for proxies. For example, _parseToProxy() creates a MiniPropTween instance for each property that must get tweened on the proxy, and we record the original property name as well as the unique one we create for the proxy, plus whether or not the value needs to be rounded plus the original value.\n\t\t\t * @param {!Object} t target object whose property we're tweening (often a CSSPropTween)\n\t\t\t * @param {!string} p property name\n\t\t\t * @param {(number|string|object)} v value\n\t\t\t * @param {MiniPropTween=} next next MiniPropTween in the linked list\n\t\t\t * @param {boolean=} r if true, the tweened value should be rounded to the nearest integer\n\t\t\t */\n      MiniPropTween = function (t, p, v, next, r) {\n        this.t = t\n        this.p = p\n        this.v = v\n        this.r = r\n        if (next) {\n          next._prev = this\n          this._next = next\n        }\n      },\n\n      /**\n\t\t\t * @private Most other plugins (like BezierPlugin and ThrowPropsPlugin and others) can only tween numeric values, but CSSPlugin must accommodate special values that have a bunch of extra data (like a suffix or strings between numeric values, etc.). For example, boxShadow has values like \"10px 10px 20px 30px rgb(255,0,0)\" which would utterly confuse other plugins. This method allows us to split that data apart and grab only the numeric data and attach it to uniquely-named properties of a generic proxy object ({}) so that we can feed that to virtually any plugin to have the numbers tweened. However, we must also keep track of which properties from the proxy go with which CSSPropTween values and instances. So we create a linked list of MiniPropTweens. Each one records a target (the original CSSPropTween), property (like \"s\" or \"xn1\" or \"xn2\") that we're tweening and the unique property name that was used for the proxy (like \"boxShadow_xn1\" and \"boxShadow_xn2\") and whether or not they need to be rounded. That way, in the _setPluginRatio() method we can simply copy the values over from the proxy to the CSSPropTween instance(s). Then, when the main CSSPlugin setRatio() method runs and applies the CSSPropTween values accordingly, they're updated nicely. So the external plugin tweens the numbers, _setPluginRatio() copies them over, and setRatio() acts normally, applying css-specific values to the element.\n\t\t\t * This method returns an object that has the following properties:\n\t\t\t *  - proxy: a generic object containing the starting values for all the properties that will be tweened by the external plugin.  This is what we feed to the external _onInitTween() as the target\n\t\t\t *  - end: a generic object containing the ending values for all the properties that will be tweened by the external plugin. This is what we feed to the external plugin's _onInitTween() as the destination values\n\t\t\t *  - firstMPT: the first MiniPropTween in the linked list\n\t\t\t *  - pt: the first CSSPropTween in the linked list that was created when parsing. If shallow is true, this linked list will NOT attach to the one passed into the _parseToProxy() as the \"pt\" (4th) parameter.\n\t\t\t * @param {!Object} t target object to be tweened\n\t\t\t * @param {!(Object|string)} vars the object containing the information about the tweening values (typically the end/destination values) that should be parsed\n\t\t\t * @param {!CSSPlugin} cssp The CSSPlugin instance\n\t\t\t * @param {CSSPropTween=} pt the next CSSPropTween in the linked list\n\t\t\t * @param {TweenPlugin=} plugin the external TweenPlugin instance that will be handling tweening the numeric values\n\t\t\t * @param {boolean=} shallow if true, the resulting linked list from the parse will NOT be attached to the CSSPropTween that was passed in as the \"pt\" (4th) parameter.\n\t\t\t * @return An object containing the following properties: proxy, end, firstMPT, and pt (see above for descriptions)\n\t\t\t */\n      _parseToProxy = _internals._parseToProxy = function (t, vars, cssp, pt, plugin, shallow) {\n        var bpt = pt,\n          start = {},\n          end = {},\n          transform = cssp._transform,\n          oldForce = _forcePT,\n          i, p, xp, mpt, firstPT\n        cssp._transform = null\n        _forcePT = vars\n        pt = firstPT = cssp.parse(t, vars, pt, plugin)\n        _forcePT = oldForce\n        // break off from the linked list so the new ones are isolated.\n        if (shallow) {\n          cssp._transform = transform\n          if (bpt) {\n            bpt._prev = null\n            if (bpt._prev) {\n              bpt._prev._next = null\n            }\n          }\n        }\n        while (pt && pt !== bpt) {\n          if (pt.type <= 1) {\n            p = pt.p\n            end[p] = pt.s + pt.c\n            start[p] = pt.s\n            if (!shallow) {\n              mpt = new MiniPropTween(pt, 's', p, mpt, pt.r)\n              pt.c = 0\n            }\n            if (pt.type === 1) {\n              i = pt.l\n              while (--i > 0) {\n                xp = 'xn' + i\n                p = pt.p + '_' + xp\n                end[p] = pt.data[xp]\n                start[p] = pt[xp]\n                if (!shallow) {\n                  mpt = new MiniPropTween(pt, xp, p, mpt, pt.rxp[xp])\n                }\n              }\n            }\n          }\n          pt = pt._next\n        }\n        return {proxy: start, end: end, firstMPT: mpt, pt: firstPT}\n      },\n\n      /**\n\t\t\t * @constructor Each property that is tweened has at least one CSSPropTween associated with it. These instances store important information like the target, property, starting value, amount of change, etc. They can also optionally have a number of \"extra\" strings and numeric values named xs1, xn1, xs2, xn2, xs3, xn3, etc. where \"s\" indicates string and \"n\" indicates number. These can be pieced together in a complex-value tween (type:1) that has alternating types of data like a string, number, string, number, etc. For example, boxShadow could be \"5px 5px 8px rgb(102, 102, 51)\". In that value, there are 6 numbers that may need to tween and then pieced back together into a string again with spaces, suffixes, etc. xs0 is special in that it stores the suffix for standard (type:0) tweens, -OR- the first string (prefix) in a complex-value (type:1) CSSPropTween -OR- it can be the non-tweening value in a type:-1 CSSPropTween. We do this to conserve memory.\n\t\t\t * CSSPropTweens have the following optional properties as well (not defined through the constructor):\n\t\t\t *  - l: Length in terms of the number of extra properties that the CSSPropTween has (default: 0). For example, for a boxShadow we may need to tween 5 numbers in which case l would be 5; Keep in mind that the start/end values for the first number that's tweened are always stored in the s and c properties to conserve memory. All additional values thereafter are stored in xn1, xn2, etc.\n\t\t\t *  - xfirst: The first instance of any sub-CSSPropTweens that are tweening properties of this instance. For example, we may split up a boxShadow tween so that there's a main CSSPropTween of type:1 that has various xs* and xn* values associated with the h-shadow, v-shadow, blur, color, etc. Then we spawn a CSSPropTween for each of those that has a higher priority and runs BEFORE the main CSSPropTween so that the values are all set by the time it needs to re-assemble them. The xfirst gives us an easy way to identify the first one in that chain which typically ends at the main one (because they're all prepende to the linked list)\n\t\t\t *  - plugin: The TweenPlugin instance that will handle the tweening of any complex values. For example, sometimes we don't want to use normal subtweens (like xfirst refers to) to tween the values - we might want ThrowPropsPlugin or BezierPlugin some other plugin to do the actual tweening, so we create a plugin instance and store a reference here. We need this reference so that if we get a request to round values or disable a tween, we can pass along that request.\n\t\t\t *  - data: Arbitrary data that needs to be stored with the CSSPropTween. Typically if we're going to have a plugin handle the tweening of a complex-value tween, we create a generic object that stores the END values that we're tweening to and the CSSPropTween's xs1, xs2, etc. have the starting values. We store that object as data. That way, we can simply pass that object to the plugin and use the CSSPropTween as the target.\n\t\t\t *  - setRatio: Only used for type:2 tweens that require custom functionality. In this case, we call the CSSPropTween's setRatio() method and pass the ratio each time the tween updates. This isn't quite as efficient as doing things directly in the CSSPlugin's setRatio() method, but it's very convenient and flexible.\n\t\t\t * @param {!Object} t Target object whose property will be tweened. Often a DOM element, but not always. It could be anything.\n\t\t\t * @param {string} p Property to tween (name). For example, to tween element.width, p would be \"width\".\n\t\t\t * @param {number} s Starting numeric value\n\t\t\t * @param {number} c Change in numeric value over the course of the entire tween. For example, if element.width starts at 5 and should end at 100, c would be 95.\n\t\t\t * @param {CSSPropTween=} next The next CSSPropTween in the linked list. If one is defined, we will define its _prev as the new instance, and the new instance's _next will be pointed at it.\n\t\t\t * @param {number=} type The type of CSSPropTween where -1 = a non-tweening value, 0 = a standard simple tween, 1 = a complex value (like one that has multiple numbers in a comma- or space-delimited string like border:\"1px solid red\"), and 2 = one that uses a custom setRatio function that does all of the work of applying the values on each update.\n\t\t\t * @param {string=} n Name of the property that should be used for overwriting purposes which is typically the same as p but not always. For example, we may need to create a subtween for the 2nd part of a \"clip:rect(...)\" tween in which case \"p\" might be xs1 but \"n\" is still \"clip\"\n\t\t\t * @param {boolean=} r If true, the value(s) should be rounded\n\t\t\t * @param {number=} pr Priority in the linked list order. Higher priority CSSPropTweens will be updated before lower priority ones. The default priority is 0.\n\t\t\t * @param {string=} b Beginning value. We store this to ensure that it is EXACTLY what it was when the tween began without any risk of interpretation issues.\n\t\t\t * @param {string=} e Ending value. We store this to ensure that it is EXACTLY what the user defined at the end of the tween without any risk of interpretation issues.\n\t\t\t */\n      CSSPropTween = _internals.CSSPropTween = function (t, p, s, c, next, type, n, r, pr, b, e) {\n        this.t = t // target\n        this.p = p // property\n        this.s = s // starting value\n        this.c = c // change value\n        this.n = n || p // name that this CSSPropTween should be associated to (usually the same as p, but not always - n is what overwriting looks at)\n        if (!(t instanceof CSSPropTween)) {\n          _overwriteProps.push(this.n)\n        }\n        this.r = r // round (boolean)\n        this.type = type || 0 // 0 = normal tween, -1 = non-tweening (in which case xs0 will be applied to the target's property, like tp.t[tp.p] = tp.xs0), 1 = complex-value SpecialProp, 2 = custom setRatio() that does all the work\n        if (pr) {\n          this.pr = pr\n          _hasPriority = true\n        }\n        this.b = (b === undefined) ? s : b\n        this.e = (e === undefined) ? s + c : e\n        if (next) {\n          this._next = next\n          next._prev = this\n        }\n      },\n\n      _addNonTweeningNumericPT = function (target, prop, start, end, next, overwriteProp) { // cleans up some code redundancies and helps minification. Just a fast way to add a NUMERIC non-tweening CSSPropTween\n        var pt = new CSSPropTween(target, prop, start, end - start, next, -1, overwriteProp)\n        pt.b = start\n        pt.e = pt.xs0 = end\n        return pt\n      },\n\n      /**\n\t\t\t * Takes a target, the beginning value and ending value (as strings) and parses them into a CSSPropTween (possibly with child CSSPropTweens) that accommodates multiple numbers, colors, comma-delimited values, etc. For example:\n\t\t\t * sp.parseComplex(element, \"boxShadow\", \"5px 10px 20px rgb(255,102,51)\", \"0px 0px 0px red\", true, \"0px 0px 0px rgb(0,0,0,0)\", pt);\n\t\t\t * It will walk through the beginning and ending values (which should be in the same format with the same number and type of values) and figure out which parts are numbers, what strings separate the numeric/tweenable values, and then create the CSSPropTweens accordingly. If a plugin is defined, no child CSSPropTweens will be created. Instead, the ending values will be stored in the \"data\" property of the returned CSSPropTween like: {s:-5, xn1:-10, xn2:-20, xn3:255, xn4:0, xn5:0} so that it can be fed to any other plugin and it'll be plain numeric tweens but the recomposition of the complex value will be handled inside CSSPlugin's setRatio().\n\t\t\t * If a setRatio is defined, the type of the CSSPropTween will be set to 2 and recomposition of the values will be the responsibility of that method.\n\t\t\t *\n\t\t\t * @param {!Object} t Target whose property will be tweened\n\t\t\t * @param {!string} p Property that will be tweened (its name, like \"left\" or \"backgroundColor\" or \"boxShadow\")\n\t\t\t * @param {string} b Beginning value\n\t\t\t * @param {string} e Ending value\n\t\t\t * @param {boolean} clrs If true, the value could contain a color value like \"rgb(255,0,0)\" or \"#F00\" or \"red\". The default is false, so no colors will be recognized (a performance optimization)\n\t\t\t * @param {(string|number|Object)} dflt The default beginning value that should be used if no valid beginning value is defined or if the number of values inside the complex beginning and ending values don't match\n\t\t\t * @param {?CSSPropTween} pt CSSPropTween instance that is the current head of the linked list (we'll prepend to this).\n\t\t\t * @param {number=} pr Priority in the linked list order. Higher priority properties will be updated before lower priority ones. The default priority is 0.\n\t\t\t * @param {TweenPlugin=} plugin If a plugin should handle the tweening of extra properties, pass the plugin instance here. If one is defined, then NO subtweens will be created for any extra properties (the properties will be created - just not additional CSSPropTween instances to tween them) because the plugin is expected to do so. However, the end values WILL be populated in the \"data\" property, like {s:100, xn1:50, xn2:300}\n\t\t\t * @param {function(number)=} setRatio If values should be set in a custom function instead of being pieced together in a type:1 (complex-value) CSSPropTween, define that custom function here.\n\t\t\t * @return {CSSPropTween} The first CSSPropTween in the linked list which includes the new one(s) added by the parseComplex() call.\n\t\t\t */\n      _parseComplex = CSSPlugin.parseComplex = function (t, p, b, e, clrs, dflt, pt, pr, plugin, setRatio) {\n        // DEBUG: _log(\"parseComplex: \"+p+\", b: \"+b+\", e: \"+e);\n        b = b || dflt || ''\n        if (typeof (e) === 'function') {\n          e = e(_index, _target)\n        }\n        pt = new CSSPropTween(t, p, 0, 0, pt, (setRatio ? 2 : 1), null, false, pr, b, e)\n        e += '' // ensures it's a string\n        if (clrs && _colorExp.test(e + b)) { // if colors are found, normalize the formatting to rgba() or hsla().\n          e = [b, e]\n          CSSPlugin.colorStringFilter(e)\n          b = e[0]\n          e = e[1]\n        }\n        var ba = b.split(', ').join(',').split(' '), // beginning array\n          ea = e.split(', ').join(',').split(' '), // ending array\n          l = ba.length,\n          autoRound = (_autoRound !== false),\n          i, xi, ni, bv, ev, bnums, enums, bn, hasAlpha, temp, cv, str, useHSL\n        if (e.indexOf(',') !== -1 || b.indexOf(',') !== -1) {\n          ba = ba.join(' ').replace(_commasOutsideParenExp, ', ').split(' ')\n          ea = ea.join(' ').replace(_commasOutsideParenExp, ', ').split(' ')\n          l = ba.length\n        }\n        if (l !== ea.length) {\n          // DEBUG: _log(\"mismatched formatting detected on \" + p + \" (\" + b + \" vs \" + e + \")\");\n          ba = (dflt || '').split(' ')\n          l = ba.length\n        }\n        pt.plugin = plugin\n        pt.setRatio = setRatio\n        _colorExp.lastIndex = 0\n        for (i = 0; i < l; i++) {\n          bv = ba[i]\n          ev = ea[i]\n          bn = parseFloat(bv)\n          // if the value begins with a number (most common). It's fine if it has a suffix like px\n          if (bn || bn === 0) {\n            pt.appendXtra('', bn, _parseChange(ev, bn), ev.replace(_relNumExp, ''), (autoRound && ev.indexOf('px') !== -1), true)\n\n            // if the value is a color\n          } else if (clrs && _colorExp.test(bv)) {\n            str = ev.indexOf(')') + 1\n            str = ')' + (str ? ev.substr(str) : '') // if there's a comma or ) at the end, retain it.\n            useHSL = (ev.indexOf('hsl') !== -1 && _supportsOpacity)\n            temp = ev // original string value so we can look for any prefix later.\n            bv = _parseColor(bv, useHSL)\n            ev = _parseColor(ev, useHSL)\n            hasAlpha = (bv.length + ev.length > 6)\n            if (hasAlpha && !_supportsOpacity && ev[3] === 0) { // older versions of IE don't support rgba(), so if the destination alpha is 0, just use \"transparent\" for the end color\n              pt['xs' + pt.l] += pt.l ? ' transparent' : 'transparent'\n              pt.e = pt.e.split(ea[i]).join('transparent')\n            } else {\n              if (!_supportsOpacity) { // old versions of IE don't support rgba().\n                hasAlpha = false\n              }\n              if (useHSL) {\n                pt.appendXtra(temp.substr(0, temp.indexOf('hsl')) + (hasAlpha ? 'hsla(' : 'hsl('), bv[0], _parseChange(ev[0], bv[0]), ',', false, true)\n                  .appendXtra('', bv[1], _parseChange(ev[1], bv[1]), '%,', false)\n                  .appendXtra('', bv[2], _parseChange(ev[2], bv[2]), (hasAlpha ? '%,' : '%' + str), false)\n              } else {\n                pt.appendXtra(temp.substr(0, temp.indexOf('rgb')) + (hasAlpha ? 'rgba(' : 'rgb('), bv[0], ev[0] - bv[0], ',', true, true)\n                  .appendXtra('', bv[1], ev[1] - bv[1], ',', true)\n                  .appendXtra('', bv[2], ev[2] - bv[2], (hasAlpha ? ',' : str), true)\n              }\n\n              if (hasAlpha) {\n                bv = (bv.length < 4) ? 1 : bv[3]\n                pt.appendXtra('', bv, ((ev.length < 4) ? 1 : ev[3]) - bv, str, false)\n              }\n            }\n            _colorExp.lastIndex = 0 // otherwise the test() on the RegExp could move the lastIndex and taint future results.\n          } else {\n            bnums = bv.match(_numExp) // gets each group of numbers in the beginning value string and drops them into an array\n\n            // if no number is found, treat it as a non-tweening value and just append the string to the current xs.\n            if (!bnums) {\n              pt['xs' + pt.l] += (pt.l || pt['xs' + pt.l]) ? ' ' + ev : ev\n\n              // loop through all the numbers that are found and construct the extra values on the pt.\n            } else {\n              enums = ev.match(_relNumExp) // get each group of numbers in the end value string and drop them into an array. We allow relative values too, like +=50 or -=.5\n              if (!enums || enums.length !== bnums.length) {\n                // DEBUG: _log(\"mismatched formatting detected on \" + p + \" (\" + b + \" vs \" + e + \")\");\n                return pt\n              }\n              ni = 0\n              for (xi = 0; xi < bnums.length; xi++) {\n                cv = bnums[xi]\n                temp = bv.indexOf(cv, ni)\n                pt.appendXtra(bv.substr(ni, temp - ni), Number(cv), _parseChange(enums[xi], cv), '', (autoRound && bv.substr(temp + cv.length, 2) === 'px'), (xi === 0))\n                ni = temp + cv.length\n              }\n              pt['xs' + pt.l] += bv.substr(ni)\n            }\n          }\n        }\n        // if there are relative values (\"+=\" or \"-=\" prefix), we need to adjust the ending value to eliminate the prefixes and combine the values properly.\n        if (e.indexOf('=') !== -1) {\n          if (pt.data) {\n            str = pt.xs0 + pt.data.s\n            for (i = 1; i < pt.l; i++) {\n              str += pt['xs' + i] + pt.data['xn' + i]\n            }\n            pt.e = str + pt['xs' + i]\n          }\n        }\n        if (!pt.l) {\n          pt.type = -1\n          pt.xs0 = pt.e\n        }\n        return pt.xfirst || pt\n      },\n      i = 9\n\n    p = CSSPropTween.prototype\n    p.l = p.pr = 0 // length (number of extra properties like xn1, xn2, xn3, etc.\n    while (--i > 0) {\n      p['xn' + i] = 0\n      p['xs' + i] = ''\n    }\n    p.xs0 = ''\n    p._next = p._prev = p.xfirst = p.data = p.plugin = p.setRatio = p.rxp = null\n\n    /**\n\t\t * Appends and extra tweening value to a CSSPropTween and automatically manages any prefix and suffix strings. The first extra value is stored in the s and c of the main CSSPropTween instance, but thereafter any extras are stored in the xn1, xn2, xn3, etc. The prefixes and suffixes are stored in the xs0, xs1, xs2, etc. properties. For example, if I walk through a clip value like \"rect(10px, 5px, 0px, 20px)\", the values would be stored like this:\n\t\t * xs0:\"rect(\", s:10, xs1:\"px, \", xn1:5, xs2:\"px, \", xn2:0, xs3:\"px, \", xn3:20, xn4:\"px)\"\n\t\t * And they'd all get joined together when the CSSPlugin renders (in the setRatio() method).\n\t\t * @param {string=} pfx Prefix (if any)\n\t\t * @param {!number} s Starting value\n\t\t * @param {!number} c Change in numeric value over the course of the entire tween. For example, if the start is 5 and the end is 100, the change would be 95.\n\t\t * @param {string=} sfx Suffix (if any)\n\t\t * @param {boolean=} r Round (if true).\n\t\t * @param {boolean=} pad If true, this extra value should be separated by the previous one by a space. If there is no previous extra and pad is true, it will automatically drop the space.\n\t\t * @return {CSSPropTween} returns itself so that multiple methods can be chained together.\n\t\t */\n    p.appendXtra = function (pfx, s, c, sfx, r, pad) {\n      var pt = this,\n        l = pt.l\n      pt['xs' + l] += (pad && (l || pt['xs' + l])) ? ' ' + pfx : pfx || ''\n      if (!c) {\n        if (l !== 0 && !pt.plugin) { // typically we'll combine non-changing values right into the xs to optimize performance, but we don't combine them when there's a plugin that will be tweening the values because it may depend on the values being split apart, like for a bezier, if a value doesn't change between the first and second iteration but then it does on the 3rd, we'll run into trouble because there's no xn slot for that value!\n          pt['xs' + l] += s + (sfx || '')\n          return pt\n        }\n      }\n      pt.l++\n      pt.type = pt.setRatio ? 2 : 1\n      pt['xs' + pt.l] = sfx || ''\n      if (l > 0) {\n        pt.data['xn' + l] = s + c\n        pt.rxp['xn' + l] = r // round extra property (we need to tap into this in the _parseToProxy() method)\n        pt['xn' + l] = s\n        if (!pt.plugin) {\n          pt.xfirst = new CSSPropTween(pt, 'xn' + l, s, c, pt.xfirst || pt, 0, pt.n, r, pt.pr)\n          pt.xfirst.xs0 = 0 // just to ensure that the property stays numeric which helps modern browsers speed up processing. Remember, in the setRatio() method, we do pt.t[pt.p] = val + pt.xs0 so if pt.xs0 is \"\" (the default), it'll cast the end value as a string. When a property is a number sometimes and a string sometimes, it prevents the compiler from locking in the data type, slowing things down slightly.\n        }\n        return pt\n      }\n      pt.data = {s: s + c}\n      pt.rxp = {}\n      pt.s = s\n      pt.c = c\n      pt.r = r\n      return pt\n    }\n\n    /**\n\t\t * @constructor A SpecialProp is basically a css property that needs to be treated in a non-standard way, like if it may contain a complex value like boxShadow:\"5px 10px 15px rgb(255, 102, 51)\" or if it is associated with another plugin like ThrowPropsPlugin or BezierPlugin. Every SpecialProp is associated with a particular property name like \"boxShadow\" or \"throwProps\" or \"bezier\" and it will intercept those values in the vars object that's passed to the CSSPlugin and handle them accordingly.\n\t\t * @param {!string} p Property name (like \"boxShadow\" or \"throwProps\")\n\t\t * @param {Object=} options An object containing any of the following configuration options:\n\t\t *                      - defaultValue: the default value\n\t\t *                      - parser: A function that should be called when the associated property name is found in the vars. This function should return a CSSPropTween instance and it should ensure that it is properly inserted into the linked list. It will receive 4 paramters: 1) The target, 2) The value defined in the vars, 3) The CSSPlugin instance (whose _firstPT should be used for the linked list), and 4) A computed style object if one was calculated (this is a speed optimization that allows retrieval of starting values quicker)\n\t\t *                      - formatter: a function that formats any value received for this special property (for example, boxShadow could take \"5px 5px red\" and format it to \"5px 5px 0px 0px red\" so that both the beginning and ending values have a common order and quantity of values.)\n\t\t *                      - prefix: if true, we'll determine whether or not this property requires a vendor prefix (like Webkit or Moz or ms or O)\n\t\t *                      - color: set this to true if the value for this SpecialProp may contain color-related values like rgb(), rgba(), etc.\n\t\t *                      - priority: priority in the linked list order. Higher priority SpecialProps will be updated before lower priority ones. The default priority is 0.\n\t\t *                      - multi: if true, the formatter should accommodate a comma-delimited list of values, like boxShadow could have multiple boxShadows listed out.\n\t\t *                      - collapsible: if true, the formatter should treat the value like it's a top/right/bottom/left value that could be collapsed, like \"5px\" would apply to all, \"5px, 10px\" would use 5px for top/bottom and 10px for right/left, etc.\n\t\t *                      - keyword: a special keyword that can [optionally] be found inside the value (like \"inset\" for boxShadow). This allows us to validate beginning/ending values to make sure they match (if the keyword is found in one, it'll be added to the other for consistency by default).\n\t\t */\n    var SpecialProp = function (p, options) {\n        options = options || {}\n        this.p = options.prefix ? _checkPropPrefix(p) || p : p\n        _specialProps[p] = _specialProps[this.p] = this\n        this.format = options.formatter || _getFormatter(options.defaultValue, options.color, options.collapsible, options.multi)\n        if (options.parser) {\n          this.parse = options.parser\n        }\n        this.clrs = options.color\n        this.multi = options.multi\n        this.keyword = options.keyword\n        this.dflt = options.defaultValue\n        this.pr = options.priority || 0\n      },\n\n      // shortcut for creating a new SpecialProp that can accept multiple properties as a comma-delimited list (helps minification). dflt can be an array for multiple values (we don't do a comma-delimited list because the default value may contain commas, like rect(0px,0px,0px,0px)). We attach this method to the SpecialProp class/object instead of using a private _createSpecialProp() method so that we can tap into it externally if necessary, like from another plugin.\n      _registerComplexSpecialProp = _internals._registerComplexSpecialProp = function (p, options, defaults) {\n        if (typeof (options) !== 'object') {\n          options = {parser: defaults} // to make backwards compatible with older versions of BezierPlugin and ThrowPropsPlugin\n        }\n        var a = p.split(','),\n          d = options.defaultValue,\n          i, temp\n        defaults = defaults || [d]\n        for (i = 0; i < a.length; i++) {\n          options.prefix = (i === 0 && options.prefix)\n          options.defaultValue = defaults[i] || d\n          temp = new SpecialProp(a[i], options)\n        }\n      },\n\n      // creates a placeholder special prop for a plugin so that the property gets caught the first time a tween of it is attempted, and at that time it makes the plugin register itself, thus taking over for all future tweens of that property. This allows us to not mandate that things load in a particular order and it also allows us to log() an error that informs the user when they attempt to tween an external plugin-related property without loading its .js file.\n      _registerPluginProp = _internals._registerPluginProp = function (p) {\n        if (!_specialProps[p]) {\n          var pluginName = p.charAt(0).toUpperCase() + p.substr(1) + 'Plugin'\n          _registerComplexSpecialProp(p, {parser: function (t, e, p, cssp, pt, plugin, vars) {\n            var pluginClass = _globals.com.greensock.plugins[pluginName]\n            if (!pluginClass) {\n              _log('Error: ' + pluginName + ' js file not loaded.')\n              return pt\n            }\n            pluginClass._cssRegister()\n            return _specialProps[p].parse(t, e, p, cssp, pt, plugin, vars)\n          }})\n        }\n      }\n\n    p = SpecialProp.prototype\n\n    /**\n\t\t * Alias for _parseComplex() that automatically plugs in certain values for this SpecialProp, like its property name, whether or not colors should be sensed, the default value, and priority. It also looks for any keyword that the SpecialProp defines (like \"inset\" for boxShadow) and ensures that the beginning and ending values have the same number of values for SpecialProps where multi is true (like boxShadow and textShadow can have a comma-delimited list)\n\t\t * @param {!Object} t target element\n\t\t * @param {(string|number|object)} b beginning value\n\t\t * @param {(string|number|object)} e ending (destination) value\n\t\t * @param {CSSPropTween=} pt next CSSPropTween in the linked list\n\t\t * @param {TweenPlugin=} plugin If another plugin will be tweening the complex value, that TweenPlugin instance goes here.\n\t\t * @param {function=} setRatio If a custom setRatio() method should be used to handle this complex value, that goes here.\n\t\t * @return {CSSPropTween=} First CSSPropTween in the linked list\n\t\t */\n    p.parseComplex = function (t, b, e, pt, plugin, setRatio) {\n      var kwd = this.keyword,\n        i, ba, ea, l, bi, ei\n      // if this SpecialProp's value can contain a comma-delimited list of values (like boxShadow or textShadow), we must parse them in a special way, and look for a keyword (like \"inset\" for boxShadow) and ensure that the beginning and ending BOTH have it if the end defines it as such. We also must ensure that there are an equal number of values specified (we can't tween 1 boxShadow to 3 for example)\n      if (this.multi) {\n        if (_commasOutsideParenExp.test(e) || _commasOutsideParenExp.test(b)) {\n          ba = b.replace(_commasOutsideParenExp, '|').split('|')\n          ea = e.replace(_commasOutsideParenExp, '|').split('|')\n        } else if (kwd) {\n          ba = [b]\n          ea = [e]\n        }\n      }\n      if (ea) {\n        l = (ea.length > ba.length) ? ea.length : ba.length\n        for (i = 0; i < l; i++) {\n          b = ba[i] = ba[i] || this.dflt\n          e = ea[i] = ea[i] || this.dflt\n          if (kwd) {\n            bi = b.indexOf(kwd)\n            ei = e.indexOf(kwd)\n            if (bi !== ei) {\n              if (ei === -1) { // if the keyword isn't in the end value, remove it from the beginning one.\n                ba[i] = ba[i].split(kwd).join('')\n              } else if (bi === -1) { // if the keyword isn't in the beginning, add it.\n                ba[i] += ' ' + kwd\n              }\n            }\n          }\n        }\n        b = ba.join(', ')\n        e = ea.join(', ')\n      }\n      return _parseComplex(t, this.p, b, e, this.clrs, this.dflt, pt, this.pr, plugin, setRatio)\n    }\n\n    /**\n\t\t * Accepts a target and end value and spits back a CSSPropTween that has been inserted into the CSSPlugin's linked list and conforms with all the conventions we use internally, like type:-1, 0, 1, or 2, setting up any extra property tweens, priority, etc. For example, if we have a boxShadow SpecialProp and call:\n\t\t * this._firstPT = sp.parse(element, \"5px 10px 20px rgb(2550,102,51)\", \"boxShadow\", this);\n\t\t * It should figure out the starting value of the element's boxShadow, compare it to the provided end value and create all the necessary CSSPropTweens of the appropriate types to tween the boxShadow. The CSSPropTween that gets spit back should already be inserted into the linked list (the 4th parameter is the current head, so prepend to that).\n\t\t * @param {!Object} t Target object whose property is being tweened\n\t\t * @param {Object} e End value as provided in the vars object (typically a string, but not always - like a throwProps would be an object).\n\t\t * @param {!string} p Property name\n\t\t * @param {!CSSPlugin} cssp The CSSPlugin instance that should be associated with this tween.\n\t\t * @param {?CSSPropTween} pt The CSSPropTween that is the current head of the linked list (we'll prepend to it)\n\t\t * @param {TweenPlugin=} plugin If a plugin will be used to tween the parsed value, this is the plugin instance.\n\t\t * @param {Object=} vars Original vars object that contains the data for parsing.\n\t\t * @return {CSSPropTween} The first CSSPropTween in the linked list which includes the new one(s) added by the parse() call.\n\t\t */\n    p.parse = function (t, e, p, cssp, pt, plugin, vars) {\n      return this.parseComplex(t.style, this.format(_getStyle(t, this.p, _cs, false, this.dflt)), this.format(e), pt, plugin)\n    }\n\n    /**\n\t\t * Registers a special property that should be intercepted from any \"css\" objects defined in tweens. This allows you to handle them however you want without CSSPlugin doing it for you. The 2nd parameter should be a function that accepts 3 parameters:\n\t\t *  1) Target object whose property should be tweened (typically a DOM element)\n\t\t *  2) The end/destination value (could be a string, number, object, or whatever you want)\n\t\t *  3) The tween instance (you probably don't need to worry about this, but it can be useful for looking up information like the duration)\n\t\t *\n\t\t * Then, your function should return a function which will be called each time the tween gets rendered, passing a numeric \"ratio\" parameter to your function that indicates the change factor (usually between 0 and 1). For example:\n\t\t *\n\t\t * CSSPlugin.registerSpecialProp(\"myCustomProp\", function(target, value, tween) {\n\t\t *      var start = target.style.width;\n\t\t *      return function(ratio) {\n\t\t *              target.style.width = (start + value * ratio) + \"px\";\n\t\t *              console.log(\"set width to \" + target.style.width);\n\t\t *          }\n\t\t * }, 0);\n\t\t *\n\t\t * Then, when I do this tween, it will trigger my special property:\n\t\t *\n\t\t * TweenLite.to(element, 1, {css:{myCustomProp:100}});\n\t\t *\n\t\t * In the example, of course, we're just changing the width, but you can do anything you want.\n\t\t *\n\t\t * @param {!string} name Property name (or comma-delimited list of property names) that should be intercepted and handled by your function. For example, if I define \"myCustomProp\", then it would handle that portion of the following tween: TweenLite.to(element, 1, {css:{myCustomProp:100}})\n\t\t * @param {!function(Object, Object, Object, string):function(number)} onInitTween The function that will be called when a tween of this special property is performed. The function will receive 4 parameters: 1) Target object that should be tweened, 2) Value that was passed to the tween, 3) The tween instance itself (rarely used), and 4) The property name that's being tweened. Your function should return a function that should be called on every update of the tween. That function will receive a single parameter that is a \"change factor\" value (typically between 0 and 1) indicating the amount of change as a ratio. You can use this to determine how to set the values appropriately in your function.\n\t\t * @param {number=} priority Priority that helps the engine determine the order in which to set the properties (default: 0). Higher priority properties will be updated before lower priority ones.\n\t\t */\n    CSSPlugin.registerSpecialProp = function (name, onInitTween, priority) {\n      _registerComplexSpecialProp(name, {parser: function (t, e, p, cssp, pt, plugin, vars) {\n        var rv = new CSSPropTween(t, p, 0, 0, pt, 2, p, false, priority)\n        rv.plugin = plugin\n        rv.setRatio = onInitTween(t, e, cssp._tween, p)\n        return rv\n      },\n      priority: priority})\n    }\n\n    // transform-related methods and properties\n    CSSPlugin.useSVGTransformAttr = true // Safari and Firefox both have some rendering bugs when applying CSS transforms to SVG elements, so default to using the \"transform\" attribute instead (users can override this).\n    var _transformProps = ('scaleX,scaleY,scaleZ,x,y,z,skewX,skewY,rotation,rotationX,rotationY,perspective,xPercent,yPercent').split(','),\n      _transformProp = _checkPropPrefix('transform'), // the Javascript (camelCase) transform property, like msTransform, WebkitTransform, MozTransform, or OTransform.\n      _transformPropCSS = _prefixCSS + 'transform',\n      _transformOriginProp = _checkPropPrefix('transformOrigin'),\n      _supports3D = (_checkPropPrefix('perspective') !== null),\n      Transform = _internals.Transform = function () {\n        this.perspective = parseFloat(CSSPlugin.defaultTransformPerspective) || 0\n        this.force3D = (CSSPlugin.defaultForce3D === false || !_supports3D) ? false : CSSPlugin.defaultForce3D || 'auto'\n      },\n      _SVGElement = _gsScope.SVGElement,\n      _useSVGTransformAttr,\n      // Some browsers (like Firefox and IE) don't honor transform-origin properly in SVG elements, so we need to manually adjust the matrix accordingly. We feature detect here rather than always doing the conversion for certain browsers because they may fix the problem at some point in the future.\n\n      _createSVG = function (type, container, attributes) {\n        var element = _doc.createElementNS('http://www.w3.org/2000/svg', type),\n          reg = /([a-z])([A-Z])/g,\n          p\n        for (p in attributes) {\n          element.setAttributeNS(null, p.replace(reg, '$1-$2').toLowerCase(), attributes[p])\n        }\n        container.appendChild(element)\n        return element\n      },\n      _docElement = _doc.documentElement || {},\n      _forceSVGTransformAttr = (function () {\n        // IE and Android stock don't support CSS transforms on SVG elements, so we must write them to the \"transform\" attribute. We populate this variable in the _parseTransform() method, and only if/when we come across an SVG element\n        var force = _ieVers || (/Android/i.test(_agent) && !_gsScope.chrome),\n          svg, rect, width\n        if (_doc.createElementNS && !force) { // IE8 and earlier doesn't support SVG anyway\n          svg = _createSVG('svg', _docElement)\n          rect = _createSVG('rect', svg, {width: 100, height: 50, x: 100})\n          width = rect.getBoundingClientRect().width\n          rect.style[_transformOriginProp] = '50% 50%'\n          rect.style[_transformProp] = 'scaleX(0.5)'\n          force = (width === rect.getBoundingClientRect().width && !(_isFirefox && _supports3D)) // note: Firefox fails the test even though it does support CSS transforms in 3D. Since we can't push 3D stuff into the transform attribute, we force Firefox to pass the test here (as long as it does truly support 3D).\n          _docElement.removeChild(svg)\n        }\n        return force\n      })(),\n      _parseSVGOrigin = function (e, local, decoratee, absolute, smoothOrigin, skipRecord) {\n        var tm = e._gsTransform,\n          m = _getMatrix(e, true),\n          v, x, y, xOrigin, yOrigin, a, b, c, d, tx, ty, determinant, xOriginOld, yOriginOld\n        if (tm) {\n          xOriginOld = tm.xOrigin // record the original values before we alter them.\n          yOriginOld = tm.yOrigin\n        }\n        if (!absolute || (v = absolute.split(' ')).length < 2) {\n          b = e.getBBox()\n          if (b.x === 0 && b.y === 0 && b.width + b.height === 0) { // some browsers (like Firefox) misreport the bounds if the element has zero width and height (it just assumes it's at x:0, y:0), thus we need to manually grab the position in that case.\n            b = {x: parseFloat(e.hasAttribute('x') ? e.getAttribute('x') : e.hasAttribute('cx') ? e.getAttribute('cx') : 0) || 0, y: parseFloat(e.hasAttribute('y') ? e.getAttribute('y') : e.hasAttribute('cy') ? e.getAttribute('cy') : 0) || 0, width: 0, height: 0}\n          }\n          local = _parsePosition(local).split(' ')\n          v = [(local[0].indexOf('%') !== -1 ? parseFloat(local[0]) / 100 * b.width : parseFloat(local[0])) + b.x,\n\t\t\t\t\t\t (local[1].indexOf('%') !== -1 ? parseFloat(local[1]) / 100 * b.height : parseFloat(local[1])) + b.y]\n        }\n        decoratee.xOrigin = xOrigin = parseFloat(v[0])\n        decoratee.yOrigin = yOrigin = parseFloat(v[1])\n        if (absolute && m !== _identity2DMatrix) { // if svgOrigin is being set, we must invert the matrix and determine where the absolute point is, factoring in the current transforms. Otherwise, the svgOrigin would be based on the element's non-transformed position on the canvas.\n          a = m[0]\n          b = m[1]\n          c = m[2]\n          d = m[3]\n          tx = m[4]\n          ty = m[5]\n          determinant = (a * d - b * c)\n          if (determinant) { // if it's zero (like if scaleX and scaleY are zero), skip it to avoid errors with dividing by zero.\n            x = xOrigin * (d / determinant) + yOrigin * (-c / determinant) + ((c * ty - d * tx) / determinant)\n            y = xOrigin * (-b / determinant) + yOrigin * (a / determinant) - ((a * ty - b * tx) / determinant)\n            xOrigin = decoratee.xOrigin = v[0] = x\n            yOrigin = decoratee.yOrigin = v[1] = y\n          }\n        }\n        if (tm) { // avoid jump when transformOrigin is changed - adjust the x/y values accordingly\n          if (skipRecord) {\n            decoratee.xOffset = tm.xOffset\n            decoratee.yOffset = tm.yOffset\n            tm = decoratee\n          }\n          if (smoothOrigin || (smoothOrigin !== false && CSSPlugin.defaultSmoothOrigin !== false)) {\n            x = xOrigin - xOriginOld\n            y = yOrigin - yOriginOld\n            // originally, we simply adjusted the x and y values, but that would cause problems if, for example, you created a rotational tween part-way through an x/y tween. Managing the offset in a separate variable gives us ultimate flexibility.\n            // tm.x -= x - (x * m[0] + y * m[2]);\n            // tm.y -= y - (x * m[1] + y * m[3]);\n            tm.xOffset += (x * m[0] + y * m[2]) - x\n            tm.yOffset += (x * m[1] + y * m[3]) - y\n          } else {\n            tm.xOffset = tm.yOffset = 0\n          }\n        }\n        if (!skipRecord) {\n          e.setAttribute('data-svg-origin', v.join(' '))\n        }\n      },\n      _getBBoxHack = function (swapIfPossible) { // works around issues in some browsers (like Firefox) that don't correctly report getBBox() on SVG elements inside a <defs> element and/or <mask>. We try creating an SVG, adding it to the documentElement and toss the element in there so that it's definitely part of the rendering tree, then grab the bbox and if it works, we actually swap out the original getBBox() method for our own that does these extra steps whenever getBBox is needed. This helps ensure that performance is optimal (only do all these extra steps when absolutely necessary...most elements don't need it).\n        var svg = _createElement('svg', this.ownerSVGElement.getAttribute('xmlns') || 'http://www.w3.org/2000/svg'),\n          oldParent = this.parentNode,\n          oldSibling = this.nextSibling,\n          oldCSS = this.style.cssText,\n          bbox\n        _docElement.appendChild(svg)\n        svg.appendChild(this)\n        this.style.display = 'block'\n        if (swapIfPossible) {\n          try {\n            bbox = this.getBBox()\n            this._originalGetBBox = this.getBBox\n            this.getBBox = _getBBoxHack\n          } catch (e) { }\n        } else if (this._originalGetBBox) {\n          bbox = this._originalGetBBox()\n        }\n        if (oldSibling) {\n          oldParent.insertBefore(this, oldSibling)\n        } else {\n          oldParent.appendChild(this)\n        }\n        _docElement.removeChild(svg)\n        this.style.cssText = oldCSS\n        return bbox\n      },\n      _getBBox = function (e) {\n        try {\n          return e.getBBox() // Firefox throws errors if you try calling getBBox() on an SVG element that's not rendered (like in a <symbol> or <defs>). https://bugzilla.mozilla.org/show_bug.cgi?id=612118\n        } catch (error) {\n          return _getBBoxHack.call(e, true)\n        }\n      },\n      _isSVG = function (e) { // reports if the element is an SVG on which getBBox() actually works\n        return !!(_SVGElement && e.getCTM && _getBBox(e) && (!e.parentNode || e.ownerSVGElement))\n      },\n      _identity2DMatrix = [1, 0, 0, 1, 0, 0],\n      _getMatrix = function (e, force2D) {\n        var tm = e._gsTransform || new Transform(),\n          rnd = 100000,\n          style = e.style,\n          isDefault, s, m, n, dec, none\n        if (_transformProp) {\n          s = _getStyle(e, _transformPropCSS, null, true)\n        } else if (e.currentStyle) {\n          // for older versions of IE, we need to interpret the filter portion that is in the format: progid:DXImageTransform.Microsoft.Matrix(M11=6.123233995736766e-17, M12=-1, M21=1, M22=6.123233995736766e-17, sizingMethod='auto expand') Notice that we need to swap b and c compared to a normal matrix.\n          s = e.currentStyle.filter.match(_ieGetMatrixExp)\n          s = (s && s.length === 4) ? [s[0].substr(4), Number(s[2].substr(4)), Number(s[1].substr(4)), s[3].substr(4), (tm.x || 0), (tm.y || 0)].join(',') : ''\n        }\n        isDefault = (!s || s === 'none' || s === 'matrix(1, 0, 0, 1, 0, 0)')\n        if (_transformProp && ((none = (_getComputedStyle(e).display === 'none')) || !e.parentNode)) {\n          if (none) { // browsers don't report transforms accurately unless the element is in the DOM and has a display value that's not \"none\". Firefox and Microsoft browsers have a partial bug where they'll report transforms even if display:none BUT not any percentage-based values like translate(-50%, 8px) will be reported as if it's translate(0, 8px).\n            n = style.display\n            style.display = 'block'\n          }\n          if (!e.parentNode) {\n            dec = 1 // flag\n            _docElement.appendChild(e)\n          }\n          s = _getStyle(e, _transformPropCSS, null, true)\n          isDefault = (!s || s === 'none' || s === 'matrix(1, 0, 0, 1, 0, 0)')\n          if (n) {\n            style.display = n\n          } else if (none) {\n            _removeProp(style, 'display')\n          }\n          if (dec) {\n            _docElement.removeChild(e)\n          }\n        }\n        if (tm.svg || (e.getCTM && _isSVG(e))) {\n          if (isDefault && (style[_transformProp] + '').indexOf('matrix') !== -1) { // some browsers (like Chrome 40) don't correctly report transforms that are applied inline on an SVG element (they don't get included in the computed style), so we double-check here and accept matrix values\n            s = style[_transformProp]\n            isDefault = 0\n          }\n          m = e.getAttribute('transform')\n          if (isDefault && m) {\n            if (m.indexOf('matrix') !== -1) { // just in case there's a \"transform\" value specified as an attribute instead of CSS style. Accept either a matrix() or simple translate() value though.\n              s = m\n              isDefault = 0\n            } else if (m.indexOf('translate') !== -1) {\n              s = 'matrix(1,0,0,1,' + m.match(/(?:\\-|\\b)[\\d\\-\\.e]+\\b/gi).join(',') + ')'\n              isDefault = 0\n            }\n          }\n        }\n        if (isDefault) {\n          return _identity2DMatrix\n        }\n        // split the matrix values out into an array (m for matrix)\n        m = (s || '').match(_numExp) || []\n        i = m.length\n        while (--i > -1) {\n          n = Number(m[i])\n          m[i] = (dec = n - (n |= 0)) ? ((dec * rnd + (dec < 0 ? -0.5 : 0.5)) | 0) / rnd + n : n // convert strings to Numbers and round to 5 decimal places to avoid issues with tiny numbers. Roughly 20x faster than Number.toFixed(). We also must make sure to round before dividing so that values like 0.9999999999 become 1 to avoid glitches in browser rendering and interpretation of flipped/rotated 3D matrices. And don't just multiply the number by rnd, floor it, and then divide by rnd because the bitwise operations max out at a 32-bit signed integer, thus it could get clipped at a relatively low value (like 22,000.00000 for example).\n        }\n        return (force2D && m.length > 6) ? [m[0], m[1], m[4], m[5], m[12], m[13]] : m\n      },\n\n      /**\n\t\t\t * Parses the transform values for an element, returning an object with x, y, z, scaleX, scaleY, scaleZ, rotation, rotationX, rotationY, skewX, and skewY properties. Note: by default (for performance reasons), all skewing is combined into skewX and rotation but skewY still has a place in the transform object so that we can record how much of the skew is attributed to skewX vs skewY. Remember, a skewY of 10 looks the same as a rotation of 10 and skewX of -10.\n\t\t\t * @param {!Object} t target element\n\t\t\t * @param {Object=} cs computed style object (optional)\n\t\t\t * @param {boolean=} rec if true, the transform values will be recorded to the target element's _gsTransform object, like target._gsTransform = {x:0, y:0, z:0, scaleX:1...}\n\t\t\t * @param {boolean=} parse if true, we'll ignore any _gsTransform values that already exist on the element, and force a reparsing of the css (calculated style)\n\t\t\t * @return {object} object containing all of the transform properties/values like {x:0, y:0, z:0, scaleX:1...}\n\t\t\t */\n      _getTransform = _internals.getTransform = function (t, cs, rec, parse) {\n        if (t._gsTransform && rec && !parse) {\n          return t._gsTransform // if the element already has a _gsTransform, use that. Note: some browsers don't accurately return the calculated style for the transform (particularly for SVG), so it's almost always safest to just use the values we've already applied rather than re-parsing things.\n        }\n        var tm = rec ? t._gsTransform || new Transform() : new Transform(),\n          invX = (tm.scaleX < 0), // in order to interpret things properly, we need to know if the user applied a negative scaleX previously so that we can adjust the rotation and skewX accordingly. Otherwise, if we always interpret a flipped matrix as affecting scaleY and the user only wants to tween the scaleX on multiple sequential tweens, it would keep the negative scaleY without that being the user's intent.\n          min = 0.00002,\n          rnd = 100000,\n          zOrigin = _supports3D ? parseFloat(_getStyle(t, _transformOriginProp, cs, false, '0 0 0').split(' ')[2]) || tm.zOrigin || 0 : 0,\n          defaultTransformPerspective = parseFloat(CSSPlugin.defaultTransformPerspective) || 0,\n          m, i, scaleX, scaleY, rotation, skewX\n\n        tm.svg = !!(t.getCTM && _isSVG(t))\n        if (tm.svg) {\n          _parseSVGOrigin(t, _getStyle(t, _transformOriginProp, cs, false, '50% 50%') + '', tm, t.getAttribute('data-svg-origin'))\n          _useSVGTransformAttr = CSSPlugin.useSVGTransformAttr || _forceSVGTransformAttr\n        }\n        m = _getMatrix(t)\n        if (m !== _identity2DMatrix) {\n          if (m.length === 16) {\n            // we'll only look at these position-related 6 variables first because if x/y/z all match, it's relatively safe to assume we don't need to re-parse everything which risks losing important rotational information (like rotationX:180 plus rotationY:180 would look the same as rotation:180 - there's no way to know for sure which direction was taken based solely on the matrix3d() values)\n            var a11 = m[0], a21 = m[1], a31 = m[2], a41 = m[3],\n              a12 = m[4], a22 = m[5], a32 = m[6], a42 = m[7],\n              a13 = m[8], a23 = m[9], a33 = m[10],\n              a14 = m[12], a24 = m[13], a34 = m[14],\n              a43 = m[11],\n              angle = Math.atan2(a32, a33),\n              t1, t2, t3, t4, cos, sin\n            // we manually compensate for non-zero z component of transformOrigin to work around bugs in Safari\n            if (tm.zOrigin) {\n              a34 = -tm.zOrigin\n              a14 = a13 * a34 - m[12]\n              a24 = a23 * a34 - m[13]\n              a34 = a33 * a34 + tm.zOrigin - m[14]\n            }\n            // note for possible future consolidation: rotationX: Math.atan2(a32, a33), rotationY: Math.atan2(-a31, Math.sqrt(a33 * a33 + a32 * a32)), rotation: Math.atan2(a21, a11), skew: Math.atan2(a12, a22). However, it doesn't seem to be quite as reliable as the full-on backwards rotation procedure.\n            tm.rotationX = angle * _RAD2DEG\n            // rotationX\n            if (angle) {\n              cos = Math.cos(-angle)\n              sin = Math.sin(-angle)\n              t1 = a12 * cos + a13 * sin\n              t2 = a22 * cos + a23 * sin\n              t3 = a32 * cos + a33 * sin\n              a13 = a12 * -sin + a13 * cos\n              a23 = a22 * -sin + a23 * cos\n              a33 = a32 * -sin + a33 * cos\n              a43 = a42 * -sin + a43 * cos\n              a12 = t1\n              a22 = t2\n              a32 = t3\n            }\n            // rotationY\n            angle = Math.atan2(-a31, a33)\n            tm.rotationY = angle * _RAD2DEG\n            if (angle) {\n              cos = Math.cos(-angle)\n              sin = Math.sin(-angle)\n              t1 = a11 * cos - a13 * sin\n              t2 = a21 * cos - a23 * sin\n              t3 = a31 * cos - a33 * sin\n              a23 = a21 * sin + a23 * cos\n              a33 = a31 * sin + a33 * cos\n              a43 = a41 * sin + a43 * cos\n              a11 = t1\n              a21 = t2\n              a31 = t3\n            }\n            // rotationZ\n            angle = Math.atan2(a21, a11)\n            tm.rotation = angle * _RAD2DEG\n            if (angle) {\n              cos = Math.cos(angle)\n              sin = Math.sin(angle)\n              t1 = a11 * cos + a21 * sin\n              t2 = a12 * cos + a22 * sin\n              t3 = a13 * cos + a23 * sin\n              a21 = a21 * cos - a11 * sin\n              a22 = a22 * cos - a12 * sin\n              a23 = a23 * cos - a13 * sin\n              a11 = t1\n              a12 = t2\n              a13 = t3\n            }\n\n            if (tm.rotationX && Math.abs(tm.rotationX) + Math.abs(tm.rotation) > 359.9) { // when rotationY is set, it will often be parsed as 180 degrees different than it should be, and rotationX and rotation both being 180 (it looks the same), so we adjust for that here.\n              tm.rotationX = tm.rotation = 0\n              tm.rotationY = 180 - tm.rotationY\n            }\n\n            // skewX\n            angle = Math.atan2(a12, a22)\n\n            // scales\n            tm.scaleX = ((Math.sqrt(a11 * a11 + a21 * a21 + a31 * a31) * rnd + 0.5) | 0) / rnd\n            tm.scaleY = ((Math.sqrt(a22 * a22 + a32 * a32) * rnd + 0.5) | 0) / rnd\n            tm.scaleZ = ((Math.sqrt(a13 * a13 + a23 * a23 + a33 * a33) * rnd + 0.5) | 0) / rnd\n            a11 /= tm.scaleX\n            a12 /= tm.scaleY\n            a21 /= tm.scaleX\n            a22 /= tm.scaleY\n            if (Math.abs(angle) > min) {\n              tm.skewX = angle * _RAD2DEG\n              a12 = 0 // unskews\n              if (tm.skewType !== 'simple') {\n                tm.scaleY *= 1 / Math.cos(angle) // by default, we compensate the scale based on the skew so that the element maintains a similar proportion when skewed, so we have to alter the scaleY here accordingly to match the default (non-adjusted) skewing that CSS does (stretching more and more as it skews).\n              }\n            } else {\n              tm.skewX = 0\n            }\n\n            /* //for testing purposes\n\t\t\t\t\t\tvar transform = \"matrix3d(\",\n\t\t\t\t\t\t\tcomma = \",\",\n\t\t\t\t\t\t\tzero = \"0\";\n\t\t\t\t\t\ta13 /= tm.scaleZ;\n\t\t\t\t\t\ta23 /= tm.scaleZ;\n\t\t\t\t\t\ta31 /= tm.scaleX;\n\t\t\t\t\t\ta32 /= tm.scaleY;\n\t\t\t\t\t\ta33 /= tm.scaleZ;\n\t\t\t\t\t\ttransform += ((a11 < min && a11 > -min) ? zero : a11) + comma + ((a21 < min && a21 > -min) ? zero : a21) + comma + ((a31 < min && a31 > -min) ? zero : a31);\n\t\t\t\t\t\ttransform += comma + ((a41 < min && a41 > -min) ? zero : a41) + comma + ((a12 < min && a12 > -min) ? zero : a12) + comma + ((a22 < min && a22 > -min) ? zero : a22);\n\t\t\t\t\t\ttransform += comma + ((a32 < min && a32 > -min) ? zero : a32) + comma + ((a42 < min && a42 > -min) ? zero : a42) + comma + ((a13 < min && a13 > -min) ? zero : a13);\n\t\t\t\t\t\ttransform += comma + ((a23 < min && a23 > -min) ? zero : a23) + comma + ((a33 < min && a33 > -min) ? zero : a33) + comma + ((a43 < min && a43 > -min) ? zero : a43) + comma;\n\t\t\t\t\t\ttransform += a14 + comma + a24 + comma + a34 + comma + (tm.perspective ? (1 + (-a34 / tm.perspective)) : 1) + \")\";\n\t\t\t\t\t\tconsole.log(transform);\n\t\t\t\t\t\tdocument.querySelector(\".test\").style[_transformProp] = transform;\n\t\t\t\t\t\t*/\n\n            tm.perspective = a43 ? 1 / ((a43 < 0) ? -a43 : a43) : 0\n            tm.x = a14\n            tm.y = a24\n            tm.z = a34\n            if (tm.svg) {\n              tm.x -= tm.xOrigin - (tm.xOrigin * a11 - tm.yOrigin * a12)\n              tm.y -= tm.yOrigin - (tm.yOrigin * a21 - tm.xOrigin * a22)\n            }\n          } else if ((!_supports3D || parse || !m.length || tm.x !== m[4] || tm.y !== m[5] || (!tm.rotationX && !tm.rotationY))) { // sometimes a 6-element matrix is returned even when we performed 3D transforms, like if rotationX and rotationY are 180. In cases like this, we still need to honor the 3D transforms. If we just rely on the 2D info, it could affect how the data is interpreted, like scaleY might get set to -1 or rotation could get offset by 180 degrees. For example, do a TweenLite.to(element, 1, {css:{rotationX:180, rotationY:180}}) and then later, TweenLite.to(element, 1, {css:{rotationX:0}}) and without this conditional logic in place, it'd jump to a state of being unrotated when the 2nd tween starts. Then again, we need to honor the fact that the user COULD alter the transforms outside of CSSPlugin, like by manually applying new css, so we try to sense that by looking at x and y because if those changed, we know the changes were made outside CSSPlugin and we force a reinterpretation of the matrix values. Also, in Webkit browsers, if the element's \"display\" is \"none\", its calculated style value will always return empty, so if we've already recorded the values in the _gsTransform object, we'll just rely on those.\n            var k = (m.length >= 6),\n              a = k ? m[0] : 1,\n              b = m[1] || 0,\n              c = m[2] || 0,\n              d = k ? m[3] : 1\n            tm.x = m[4] || 0\n            tm.y = m[5] || 0\n            scaleX = Math.sqrt(a * a + b * b)\n            scaleY = Math.sqrt(d * d + c * c)\n            rotation = (a || b) ? Math.atan2(b, a) * _RAD2DEG : tm.rotation || 0 // note: if scaleX is 0, we cannot accurately measure rotation. Same for skewX with a scaleY of 0. Therefore, we default to the previously recorded value (or zero if that doesn't exist).\n            skewX = (c || d) ? Math.atan2(c, d) * _RAD2DEG + rotation : tm.skewX || 0\n            tm.scaleX = scaleX\n            tm.scaleY = scaleY\n            tm.rotation = rotation\n            tm.skewX = skewX\n            if (_supports3D) {\n              tm.rotationX = tm.rotationY = tm.z = 0\n              tm.perspective = defaultTransformPerspective\n              tm.scaleZ = 1\n            }\n            if (tm.svg) {\n              tm.x -= tm.xOrigin - (tm.xOrigin * a + tm.yOrigin * c)\n              tm.y -= tm.yOrigin - (tm.xOrigin * b + tm.yOrigin * d)\n            }\n          }\n          if (Math.abs(tm.skewX) > 90 && Math.abs(tm.skewX) < 270) {\n            if (invX) {\n              tm.scaleX *= -1\n              tm.skewX += (tm.rotation <= 0) ? 180 : -180\n              tm.rotation += (tm.rotation <= 0) ? 180 : -180\n            } else {\n              tm.scaleY *= -1\n              tm.skewX += (tm.skewX <= 0) ? 180 : -180\n            }\n          }\n          tm.zOrigin = zOrigin\n          // some browsers have a hard time with very small values like 2.4492935982947064e-16 (notice the \"e-\" towards the end) and would render the object slightly off. So we round to 0 in these cases. The conditional logic here is faster than calling Math.abs(). Also, browsers tend to render a SLIGHTLY rotated object in a fuzzy way, so we need to snap to exactly 0 when appropriate.\n          for (i in tm) {\n            if (tm[i] < min) {\n              if (tm[i] > -min) {\n                tm[i] = 0\n              }\n            }\n          }\n        }\n        // DEBUG: _log(\"parsed rotation of \" + t.getAttribute(\"id\")+\": \"+(tm.rotationX)+\", \"+(tm.rotationY)+\", \"+(tm.rotation)+\", scale: \"+tm.scaleX+\", \"+tm.scaleY+\", \"+tm.scaleZ+\", position: \"+tm.x+\", \"+tm.y+\", \"+tm.z+\", perspective: \"+tm.perspective+ \", origin: \"+ tm.xOrigin+ \",\"+ tm.yOrigin);\n        if (rec) {\n          t._gsTransform = tm // record to the object's _gsTransform which we use so that tweens can control individual properties independently (we need all the properties to accurately recompose the matrix in the setRatio() method)\n          if (tm.svg) { // if we're supposed to apply transforms to the SVG element's \"transform\" attribute, make sure there aren't any CSS transforms applied or they'll override the attribute ones. Also clear the transform attribute if we're using CSS, just to be clean.\n            if (_useSVGTransformAttr && t.style[_transformProp]) {\n              TweenLite.delayedCall(0.001, function () { // if we apply this right away (before anything has rendered), we risk there being no transforms for a brief moment and it also interferes with adjusting the transformOrigin in a tween with immediateRender:true (it'd try reading the matrix and it wouldn't have the appropriate data in place because we just removed it).\n                _removeProp(t.style, _transformProp)\n              })\n            } else if (!_useSVGTransformAttr && t.getAttribute('transform')) {\n              TweenLite.delayedCall(0.001, function () {\n                t.removeAttribute('transform')\n              })\n            }\n          }\n        }\n        return tm\n      },\n\n      // for setting 2D transforms in IE6, IE7, and IE8 (must use a \"filter\" to emulate the behavior of modern day browser transforms)\n      _setIETransformRatio = function (v) {\n        var t = this.data, // refers to the element's _gsTransform object\n          ang = -t.rotation * _DEG2RAD,\n          skew = ang + t.skewX * _DEG2RAD,\n          rnd = 100000,\n          a = ((Math.cos(ang) * t.scaleX * rnd) | 0) / rnd,\n          b = ((Math.sin(ang) * t.scaleX * rnd) | 0) / rnd,\n          c = ((Math.sin(skew) * -t.scaleY * rnd) | 0) / rnd,\n          d = ((Math.cos(skew) * t.scaleY * rnd) | 0) / rnd,\n          style = this.t.style,\n          cs = this.t.currentStyle,\n          filters, val\n        if (!cs) {\n          return\n        }\n        val = b // just for swapping the variables an inverting them (reused \"val\" to avoid creating another variable in memory). IE's filter matrix uses a non-standard matrix configuration (angle goes the opposite way, and b and c are reversed and inverted)\n        b = -c\n        c = -val\n        filters = cs.filter\n        style.filter = '' // remove filters so that we can accurately measure offsetWidth/offsetHeight\n        var w = this.t.offsetWidth,\n          h = this.t.offsetHeight,\n          clip = (cs.position !== 'absolute'),\n          m = 'progid:DXImageTransform.Microsoft.Matrix(M11=' + a + ', M12=' + b + ', M21=' + c + ', M22=' + d,\n          ox = t.x + (w * t.xPercent / 100),\n          oy = t.y + (h * t.yPercent / 100),\n          dx, dy\n\n        // if transformOrigin is being used, adjust the offset x and y\n        if (t.ox != null) {\n          dx = ((t.oxp) ? w * t.ox * 0.01 : t.ox) - w / 2\n          dy = ((t.oyp) ? h * t.oy * 0.01 : t.oy) - h / 2\n          ox += dx - (dx * a + dy * b)\n          oy += dy - (dx * c + dy * d)\n        }\n\n        if (!clip) {\n          m += \", sizingMethod='auto expand')\"\n        } else {\n          dx = (w / 2)\n          dy = (h / 2)\n          // translate to ensure that transformations occur around the correct origin (default is center).\n          m += ', Dx=' + (dx - (dx * a + dy * b) + ox) + ', Dy=' + (dy - (dx * c + dy * d) + oy) + ')'\n        }\n        if (filters.indexOf('DXImageTransform.Microsoft.Matrix(') !== -1) {\n          style.filter = filters.replace(_ieSetMatrixExp, m)\n        } else {\n          style.filter = m + ' ' + filters // we must always put the transform/matrix FIRST (before alpha(opacity=xx)) to avoid an IE bug that slices part of the object when rotation is applied with alpha.\n        }\n\n        // at the end or beginning of the tween, if the matrix is normal (1, 0, 0, 1) and opacity is 100 (or doesn't exist), remove the filter to improve browser performance.\n        if (v === 0 || v === 1) {\n          if (a === 1) {\n            if (b === 0) {\n              if (c === 0) {\n                if (d === 1) {\n                  if (!clip || m.indexOf('Dx=0, Dy=0') !== -1) {\n                    if (!_opacityExp.test(filters) || parseFloat(RegExp.$1) === 100) {\n                      if (filters.indexOf('gradient(' && filters.indexOf('Alpha')) === -1) {\n                        style.removeAttribute('filter')\n                      }\n                    }\n                  }\n                }\n              }\n            }\n          }\n        }\n\n        // we must set the margins AFTER applying the filter in order to avoid some bugs in IE8 that could (in rare scenarios) cause them to be ignored intermittently (vibration).\n        if (!clip) {\n          var mult = (_ieVers < 8) ? 1 : -1, // in Internet Explorer 7 and before, the box model is broken, causing the browser to treat the width/height of the actual rotated filtered image as the width/height of the box itself, but Microsoft corrected that in IE8. We must use a negative offset in IE8 on the right/bottom\n            marg, prop, dif\n          dx = t.ieOffsetX || 0\n          dy = t.ieOffsetY || 0\n          t.ieOffsetX = Math.round((w - ((a < 0 ? -a : a) * w + (b < 0 ? -b : b) * h)) / 2 + ox)\n          t.ieOffsetY = Math.round((h - ((d < 0 ? -d : d) * h + (c < 0 ? -c : c) * w)) / 2 + oy)\n          for (i = 0; i < 4; i++) {\n            prop = _margins[i]\n            marg = cs[prop]\n            // we need to get the current margin in case it is being tweened separately (we want to respect that tween's changes)\n            val = (marg.indexOf('px') !== -1) ? parseFloat(marg) : _convertToPixels(this.t, prop, parseFloat(marg), marg.replace(_suffixExp, '')) || 0\n            if (val !== t[prop]) {\n              dif = (i < 2) ? -t.ieOffsetX : -t.ieOffsetY // if another tween is controlling a margin, we cannot only apply the difference in the ieOffsets, so we essentially zero-out the dx and dy here in that case. We record the margin(s) later so that we can keep comparing them, making this code very flexible.\n            } else {\n              dif = (i < 2) ? dx - t.ieOffsetX : dy - t.ieOffsetY\n            }\n            style[prop] = (t[prop] = Math.round(val - dif * ((i === 0 || i === 2) ? 1 : mult))) + 'px'\n          }\n        }\n      },\n\n      /* translates a super small decimal to a string WITHOUT scientific notation\n\t\t\t_safeDecimal = function(n) {\n\t\t\t\tvar s = (n < 0 ? -n : n) + \"\",\n\t\t\t\t\ta = s.split(\"e-\");\n\t\t\t\treturn (n < 0 ? \"-0.\" : \"0.\") + new Array(parseInt(a[1], 10) || 0).join(\"0\") + a[0].split(\".\").join(\"\");\n\t\t\t},\n\t\t\t*/\n\n      _setTransformRatio = _internals.set3DTransformRatio = _internals.setTransformRatio = function (v) {\n        var t = this.data, // refers to the element's _gsTransform object\n          style = this.t.style,\n          angle = t.rotation,\n          rotationX = t.rotationX,\n          rotationY = t.rotationY,\n          sx = t.scaleX,\n          sy = t.scaleY,\n          sz = t.scaleZ,\n          x = t.x,\n          y = t.y,\n          z = t.z,\n          isSVG = t.svg,\n          perspective = t.perspective,\n          force3D = t.force3D,\n          skewY = t.skewY,\n          skewX = t.skewX,\n          t1,\ta11, a12, a13, a21, a22, a23, a31, a32, a33, a41, a42, a43,\n          zOrigin, min, cos, sin, t2, transform, comma, zero, skew, rnd\n        if (skewY) { // for performance reasons, we combine all skewing into the skewX and rotation values. Remember, a skewY of 10 degrees looks the same as a rotation of 10 degrees plus a skewX of 10 degrees.\n          skewX += skewY\n          angle += skewY\n        }\n\n        // check to see if we should render as 2D (and SVGs must use 2D when _useSVGTransformAttr is true)\n        if (((((v === 1 || v === 0) && force3D === 'auto' && (this.tween._totalTime === this.tween._totalDuration || !this.tween._totalTime)) || !force3D) && !z && !perspective && !rotationY && !rotationX && sz === 1) || (_useSVGTransformAttr && isSVG) || !_supports3D) { // on the final render (which could be 0 for a from tween), if there are no 3D aspects, render in 2D to free up memory and improve performance especially on mobile devices. Check the tween's totalTime/totalDuration too in order to make sure it doesn't happen between repeats if it's a repeating tween.\n          // 2D\n          if (angle || skewX || isSVG) {\n            angle *= _DEG2RAD\n            skew = skewX * _DEG2RAD\n            rnd = 100000\n            a11 = Math.cos(angle) * sx\n            a21 = Math.sin(angle) * sx\n            a12 = Math.sin(angle - skew) * -sy\n            a22 = Math.cos(angle - skew) * sy\n            if (skew && t.skewType === 'simple') { // by default, we compensate skewing on the other axis to make it look more natural, but you can set the skewType to \"simple\" to use the uncompensated skewing that CSS does\n              t1 = Math.tan(skew - skewY * _DEG2RAD)\n              t1 = Math.sqrt(1 + t1 * t1)\n              a12 *= t1\n              a22 *= t1\n              if (skewY) {\n                t1 = Math.tan(skewY * _DEG2RAD)\n                t1 = Math.sqrt(1 + t1 * t1)\n                a11 *= t1\n                a21 *= t1\n              }\n            }\n            if (isSVG) {\n              x += t.xOrigin - (t.xOrigin * a11 + t.yOrigin * a12) + t.xOffset\n              y += t.yOrigin - (t.xOrigin * a21 + t.yOrigin * a22) + t.yOffset\n              if (_useSVGTransformAttr && (t.xPercent || t.yPercent)) { // The SVG spec doesn't support percentage-based translation in the \"transform\" attribute, so we merge it into the matrix to simulate it.\n                min = this.t.getBBox()\n                x += t.xPercent * 0.01 * min.width\n                y += t.yPercent * 0.01 * min.height\n              }\n              min = 0.000001\n              if (x < min) {\n                if (x > -min) {\n                  x = 0\n                }\n              }\n              if (y < min) {\n                if (y > -min) {\n                  y = 0\n                }\n              }\n            }\n            transform = (((a11 * rnd) | 0) / rnd) + ',' + (((a21 * rnd) | 0) / rnd) + ',' + (((a12 * rnd) | 0) / rnd) + ',' + (((a22 * rnd) | 0) / rnd) + ',' + x + ',' + y + ')'\n            if (isSVG && _useSVGTransformAttr) {\n              this.t.setAttribute('transform', 'matrix(' + transform)\n            } else {\n              // some browsers have a hard time with very small values like 2.4492935982947064e-16 (notice the \"e-\" towards the end) and would render the object slightly off. So we round to 5 decimal places.\n              style[_transformProp] = ((t.xPercent || t.yPercent) ? 'translate(' + t.xPercent + '%,' + t.yPercent + '%) matrix(' : 'matrix(') + transform\n            }\n          } else {\n            style[_transformProp] = ((t.xPercent || t.yPercent) ? 'translate(' + t.xPercent + '%,' + t.yPercent + '%) matrix(' : 'matrix(') + sx + ',0,0,' + sy + ',' + x + ',' + y + ')'\n          }\n          return\n        }\n        if (_isFirefox) { // Firefox has a bug (at least in v25) that causes it to render the transparent part of 32-bit PNG images as black when displayed inside an iframe and the 3D scale is very small and doesn't change sufficiently enough between renders (like if you use a Power4.easeInOut to scale from 0 to 1 where the beginning values only change a tiny amount to begin the tween before accelerating). In this case, we force the scale to be 0.00002 instead which is visually the same but works around the Firefox issue.\n          min = 0.0001\n          if (sx < min && sx > -min) {\n            sx = sz = 0.00002\n          }\n          if (sy < min && sy > -min) {\n            sy = sz = 0.00002\n          }\n          if (perspective && !t.z && !t.rotationX && !t.rotationY) { // Firefox has a bug that causes elements to have an odd super-thin, broken/dotted black border on elements that have a perspective set but aren't utilizing 3D space (no rotationX, rotationY, or z).\n            perspective = 0\n          }\n        }\n        if (angle || skewX) {\n          angle *= _DEG2RAD\n          cos = a11 = Math.cos(angle)\n          sin = a21 = Math.sin(angle)\n          if (skewX) {\n            angle -= skewX * _DEG2RAD\n            cos = Math.cos(angle)\n            sin = Math.sin(angle)\n            if (t.skewType === 'simple') { // by default, we compensate skewing on the other axis to make it look more natural, but you can set the skewType to \"simple\" to use the uncompensated skewing that CSS does\n              t1 = Math.tan((skewX - skewY) * _DEG2RAD)\n              t1 = Math.sqrt(1 + t1 * t1)\n              cos *= t1\n              sin *= t1\n              if (t.skewY) {\n                t1 = Math.tan(skewY * _DEG2RAD)\n                t1 = Math.sqrt(1 + t1 * t1)\n                a11 *= t1\n                a21 *= t1\n              }\n            }\n          }\n          a12 = -sin\n          a22 = cos\n        } else if (!rotationY && !rotationX && sz === 1 && !perspective && !isSVG) { // if we're only translating and/or 2D scaling, this is faster...\n          style[_transformProp] = ((t.xPercent || t.yPercent) ? 'translate(' + t.xPercent + '%,' + t.yPercent + '%) translate3d(' : 'translate3d(') + x + 'px,' + y + 'px,' + z + 'px)' + ((sx !== 1 || sy !== 1) ? ' scale(' + sx + ',' + sy + ')' : '')\n          return\n        } else {\n          a11 = a22 = 1\n          a12 = a21 = 0\n        }\n        // KEY  INDEX   AFFECTS a[row][column]\n        // a11  0       rotation, rotationY, scaleX\n        // a21  1       rotation, rotationY, scaleX\n        // a31  2       rotationY, scaleX\n        // a41  3       rotationY, scaleX\n        // a12  4       rotation, skewX, rotationX, scaleY\n        // a22  5       rotation, skewX, rotationX, scaleY\n        // a32  6       rotationX, scaleY\n        // a42  7       rotationX, scaleY\n        // a13  8       rotationY, rotationX, scaleZ\n        // a23  9       rotationY, rotationX, scaleZ\n        // a33  10      rotationY, rotationX, scaleZ\n        // a43  11      rotationY, rotationX, perspective, scaleZ\n        // a14  12      x, zOrigin, svgOrigin\n        // a24  13      y, zOrigin, svgOrigin\n        // a34  14      z, zOrigin\n        // a44  15\n        // rotation: Math.atan2(a21, a11)\n        // rotationY: Math.atan2(a13, a33) (or Math.atan2(a13, a11))\n        // rotationX: Math.atan2(a32, a33)\n        a33 = 1\n        a13 = a23 = a31 = a32 = a41 = a42 = 0\n        a43 = (perspective) ? -1 / perspective : 0\n        zOrigin = t.zOrigin\n        min = 0.000001 // threshold below which browsers use scientific notation which won't work.\n        comma = ','\n        zero = '0'\n        angle = rotationY * _DEG2RAD\n        if (angle) {\n          cos = Math.cos(angle)\n          sin = Math.sin(angle)\n          a31 = -sin\n          a41 = a43 * -sin\n          a13 = a11 * sin\n          a23 = a21 * sin\n          a33 = cos\n          a43 *= cos\n          a11 *= cos\n          a21 *= cos\n        }\n        angle = rotationX * _DEG2RAD\n        if (angle) {\n          cos = Math.cos(angle)\n          sin = Math.sin(angle)\n          t1 = a12 * cos + a13 * sin\n          t2 = a22 * cos + a23 * sin\n          a32 = a33 * sin\n          a42 = a43 * sin\n          a13 = a12 * -sin + a13 * cos\n          a23 = a22 * -sin + a23 * cos\n          a33 = a33 * cos\n          a43 = a43 * cos\n          a12 = t1\n          a22 = t2\n        }\n        if (sz !== 1) {\n          a13 *= sz\n          a23 *= sz\n          a33 *= sz\n          a43 *= sz\n        }\n        if (sy !== 1) {\n          a12 *= sy\n          a22 *= sy\n          a32 *= sy\n          a42 *= sy\n        }\n        if (sx !== 1) {\n          a11 *= sx\n          a21 *= sx\n          a31 *= sx\n          a41 *= sx\n        }\n\n        if (zOrigin || isSVG) {\n          if (zOrigin) {\n            x += a13 * -zOrigin\n            y += a23 * -zOrigin\n            z += a33 * -zOrigin + zOrigin\n          }\n          if (isSVG) { // due to bugs in some browsers, we need to manage the transform-origin of SVG manually\n            x += t.xOrigin - (t.xOrigin * a11 + t.yOrigin * a12) + t.xOffset\n            y += t.yOrigin - (t.xOrigin * a21 + t.yOrigin * a22) + t.yOffset\n          }\n          if (x < min && x > -min) {\n            x = zero\n          }\n          if (y < min && y > -min) {\n            y = zero\n          }\n          if (z < min && z > -min) {\n            z = 0 // don't use string because we calculate perspective later and need the number.\n          }\n        }\n\n        // optimized way of concatenating all the values into a string. If we do it all in one shot, it's slower because of the way browsers have to create temp strings and the way it affects memory. If we do it piece-by-piece with +=, it's a bit slower too. We found that doing it in these sized chunks works best overall:\n        transform = ((t.xPercent || t.yPercent) ? 'translate(' + t.xPercent + '%,' + t.yPercent + '%) matrix3d(' : 'matrix3d(')\n        transform += ((a11 < min && a11 > -min) ? zero : a11) + comma + ((a21 < min && a21 > -min) ? zero : a21) + comma + ((a31 < min && a31 > -min) ? zero : a31)\n        transform += comma + ((a41 < min && a41 > -min) ? zero : a41) + comma + ((a12 < min && a12 > -min) ? zero : a12) + comma + ((a22 < min && a22 > -min) ? zero : a22)\n        if (rotationX || rotationY || sz !== 1) { // performance optimization (often there's no rotationX or rotationY, so we can skip these calculations)\n          transform += comma + ((a32 < min && a32 > -min) ? zero : a32) + comma + ((a42 < min && a42 > -min) ? zero : a42) + comma + ((a13 < min && a13 > -min) ? zero : a13)\n          transform += comma + ((a23 < min && a23 > -min) ? zero : a23) + comma + ((a33 < min && a33 > -min) ? zero : a33) + comma + ((a43 < min && a43 > -min) ? zero : a43) + comma\n        } else {\n          transform += ',0,0,0,0,1,0,'\n        }\n        transform += x + comma + y + comma + z + comma + (perspective ? (1 + (-z / perspective)) : 1) + ')'\n\n        style[_transformProp] = transform\n      }\n\n    p = Transform.prototype\n    p.x = p.y = p.z = p.skewX = p.skewY = p.rotation = p.rotationX = p.rotationY = p.zOrigin = p.xPercent = p.yPercent = p.xOffset = p.yOffset = 0\n    p.scaleX = p.scaleY = p.scaleZ = 1\n\n    _registerComplexSpecialProp('transform,scale,scaleX,scaleY,scaleZ,x,y,z,rotation,rotationX,rotationY,rotationZ,skewX,skewY,shortRotation,shortRotationX,shortRotationY,shortRotationZ,transformOrigin,svgOrigin,transformPerspective,directionalRotation,parseTransform,force3D,skewType,xPercent,yPercent,smoothOrigin', {parser: function (t, e, parsingProp, cssp, pt, plugin, vars) {\n      if (cssp._lastParsedTransform === vars) { return pt } // only need to parse the transform once, and only if the browser supports it.\n      cssp._lastParsedTransform = vars\n      var scaleFunc = (vars.scale && typeof (vars.scale) === 'function') ? vars.scale : 0, // if there's a function-based \"scale\" value, swap in the resulting numeric value temporarily. Otherwise, if it's called for both scaleX and scaleY independently, they may not match (like if the function uses Math.random()).\n        swapFunc\n      if (typeof (vars[parsingProp]) === 'function') { // whatever property triggers the initial parsing might be a function-based value in which case it already got called in parse(), thus we don't want to call it again in here. The most efficient way to avoid this is to temporarily swap the value directly into the vars object, and then after we do all our parsing in this function, we'll swap it back again.\n        swapFunc = vars[parsingProp]\n        vars[parsingProp] = e\n      }\n      if (scaleFunc) {\n        vars.scale = scaleFunc(_index, t)\n      }\n      var originalGSTransform = t._gsTransform,\n        style = t.style,\n        min = 0.000001,\n        i = _transformProps.length,\n        v = vars,\n        endRotations = {},\n        transformOriginString = 'transformOrigin',\n        m1 = _getTransform(t, _cs, true, v.parseTransform),\n        orig = v.transform && ((typeof (v.transform) === 'function') ? v.transform(_index, _target) : v.transform),\n        m2, copy, has3D, hasChange, dr, x, y, matrix, p\n      m1.skewType = v.skewType || m1.skewType || CSSPlugin.defaultSkewType\n      cssp._transform = m1\n      if (orig && typeof (orig) === 'string' && _transformProp) { // for values like transform:\"rotate(60deg) scale(0.5, 0.8)\"\n        copy = _tempDiv.style // don't use the original target because it might be SVG in which case some browsers don't report computed style correctly.\n        copy[_transformProp] = orig\n        copy.display = 'block' // if display is \"none\", the browser often refuses to report the transform properties correctly.\n        copy.position = 'absolute'\n        _doc.body.appendChild(_tempDiv)\n        m2 = _getTransform(_tempDiv, null, false)\n        if (m1.skewType === 'simple') { // the default _getTransform() reports the skewX/scaleY as if skewType is \"compensated\", thus we need to adjust that here if skewType is \"simple\".\n          m2.scaleY *= Math.cos(m2.skewX * _DEG2RAD)\n        }\n        if (m1.svg) { // if it's an SVG element, x/y part of the matrix will be affected by whatever we use as the origin and the offsets, so compensate here...\n          x = m1.xOrigin\n          y = m1.yOrigin\n          m2.x -= m1.xOffset\n          m2.y -= m1.yOffset\n          if (v.transformOrigin || v.svgOrigin) { // if this tween is altering the origin, we must factor that in here. The actual work of recording the transformOrigin values and setting up the PropTween is done later (still inside this function) so we cannot leave the changes intact here - we only want to update the x/y accordingly.\n            orig = {}\n            _parseSVGOrigin(t, _parsePosition(v.transformOrigin), orig, v.svgOrigin, v.smoothOrigin, true)\n            x = orig.xOrigin\n            y = orig.yOrigin\n            m2.x -= orig.xOffset - m1.xOffset\n            m2.y -= orig.yOffset - m1.yOffset\n          }\n          if (x || y) {\n            matrix = _getMatrix(_tempDiv, true)\n            m2.x -= x - (x * matrix[0] + y * matrix[2])\n            m2.y -= y - (x * matrix[1] + y * matrix[3])\n          }\n        }\n        _doc.body.removeChild(_tempDiv)\n        if (!m2.perspective) {\n          m2.perspective = m1.perspective // tweening to no perspective gives very unintuitive results - just keep the same perspective in that case.\n        }\n        if (v.xPercent != null) {\n          m2.xPercent = _parseVal(v.xPercent, m1.xPercent)\n        }\n        if (v.yPercent != null) {\n          m2.yPercent = _parseVal(v.yPercent, m1.yPercent)\n        }\n      } else if (typeof (v) === 'object') { // for values like scaleX, scaleY, rotation, x, y, skewX, and skewY or transform:{...} (object)\n        m2 = {scaleX: _parseVal((v.scaleX != null) ? v.scaleX : v.scale, m1.scaleX),\n          scaleY: _parseVal((v.scaleY != null) ? v.scaleY : v.scale, m1.scaleY),\n          scaleZ: _parseVal(v.scaleZ, m1.scaleZ),\n          x: _parseVal(v.x, m1.x),\n          y: _parseVal(v.y, m1.y),\n          z: _parseVal(v.z, m1.z),\n          xPercent: _parseVal(v.xPercent, m1.xPercent),\n          yPercent: _parseVal(v.yPercent, m1.yPercent),\n          perspective: _parseVal(v.transformPerspective, m1.perspective)}\n        dr = v.directionalRotation\n        if (dr != null) {\n          if (typeof (dr) === 'object') {\n            for (copy in dr) {\n              v[copy] = dr[copy]\n            }\n          } else {\n            v.rotation = dr\n          }\n        }\n        if (typeof (v.x) === 'string' && v.x.indexOf('%') !== -1) {\n          m2.x = 0\n          m2.xPercent = _parseVal(v.x, m1.xPercent)\n        }\n        if (typeof (v.y) === 'string' && v.y.indexOf('%') !== -1) {\n          m2.y = 0\n          m2.yPercent = _parseVal(v.y, m1.yPercent)\n        }\n\n        m2.rotation = _parseAngle(('rotation' in v) ? v.rotation : ('shortRotation' in v) ? v.shortRotation + '_short' : ('rotationZ' in v) ? v.rotationZ : m1.rotation, m1.rotation, 'rotation', endRotations)\n        if (_supports3D) {\n          m2.rotationX = _parseAngle(('rotationX' in v) ? v.rotationX : ('shortRotationX' in v) ? v.shortRotationX + '_short' : m1.rotationX || 0, m1.rotationX, 'rotationX', endRotations)\n          m2.rotationY = _parseAngle(('rotationY' in v) ? v.rotationY : ('shortRotationY' in v) ? v.shortRotationY + '_short' : m1.rotationY || 0, m1.rotationY, 'rotationY', endRotations)\n        }\n        m2.skewX = _parseAngle(v.skewX, m1.skewX)\n        m2.skewY = _parseAngle(v.skewY, m1.skewY)\n      }\n      if (_supports3D && v.force3D != null) {\n        m1.force3D = v.force3D\n        hasChange = true\n      }\n\n      has3D = (m1.force3D || m1.z || m1.rotationX || m1.rotationY || m2.z || m2.rotationX || m2.rotationY || m2.perspective)\n      if (!has3D && v.scale != null) {\n        m2.scaleZ = 1 // no need to tween scaleZ.\n      }\n\n      while (--i > -1) {\n        p = _transformProps[i]\n        orig = m2[p] - m1[p]\n        if (orig > min || orig < -min || v[p] != null || _forcePT[p] != null) {\n          hasChange = true\n          pt = new CSSPropTween(m1, p, m1[p], orig, pt)\n          if (p in endRotations) {\n            pt.e = endRotations[p] // directional rotations typically have compensated values during the tween, but we need to make sure they end at exactly what the user requested\n          }\n          pt.xs0 = 0 // ensures the value stays numeric in setRatio()\n          pt.plugin = plugin\n          cssp._overwriteProps.push(pt.n)\n        }\n      }\n\n      orig = v.transformOrigin\n      if (m1.svg && (orig || v.svgOrigin)) {\n        x = m1.xOffset // when we change the origin, in order to prevent things from jumping we adjust the x/y so we must record those here so that we can create PropTweens for them and flip them at the same time as the origin\n        y = m1.yOffset\n        _parseSVGOrigin(t, _parsePosition(orig), m2, v.svgOrigin, v.smoothOrigin)\n        pt = _addNonTweeningNumericPT(m1, 'xOrigin', (originalGSTransform ? m1 : m2).xOrigin, m2.xOrigin, pt, transformOriginString) // note: if there wasn't a transformOrigin defined yet, just start with the destination one; it's wasteful otherwise, and it causes problems with fromTo() tweens. For example, TweenLite.to(\"#wheel\", 3, {rotation:180, transformOrigin:\"50% 50%\", delay:1}); TweenLite.fromTo(\"#wheel\", 3, {scale:0.5, transformOrigin:\"50% 50%\"}, {scale:1, delay:2}); would cause a jump when the from values revert at the beginning of the 2nd tween.\n        pt = _addNonTweeningNumericPT(m1, 'yOrigin', (originalGSTransform ? m1 : m2).yOrigin, m2.yOrigin, pt, transformOriginString)\n        if (x !== m1.xOffset || y !== m1.yOffset) {\n          pt = _addNonTweeningNumericPT(m1, 'xOffset', (originalGSTransform ? x : m1.xOffset), m1.xOffset, pt, transformOriginString)\n          pt = _addNonTweeningNumericPT(m1, 'yOffset', (originalGSTransform ? y : m1.yOffset), m1.yOffset, pt, transformOriginString)\n        }\n        orig = '0px 0px' // certain browsers (like firefox) completely botch transform-origin, so we must remove it to prevent it from contaminating transforms. We manage it ourselves with xOrigin and yOrigin\n      }\n      if (orig || (_supports3D && has3D && m1.zOrigin)) { // if anything 3D is happening and there's a transformOrigin with a z component that's non-zero, we must ensure that the transformOrigin's z-component is set to 0 so that we can manually do those calculations to get around Safari bugs. Even if the user didn't specifically define a \"transformOrigin\" in this particular tween (maybe they did it via css directly).\n        if (_transformProp) {\n          hasChange = true\n          p = _transformOriginProp\n          orig = (orig || _getStyle(t, p, _cs, false, '50% 50%')) + '' // cast as string to avoid errors\n          pt = new CSSPropTween(style, p, 0, 0, pt, -1, transformOriginString)\n          pt.b = style[p]\n          pt.plugin = plugin\n          if (_supports3D) {\n            copy = m1.zOrigin\n            orig = orig.split(' ')\n            m1.zOrigin = ((orig.length > 2 && !(copy !== 0 && orig[2] === '0px')) ? parseFloat(orig[2]) : copy) || 0 // Safari doesn't handle the z part of transformOrigin correctly, so we'll manually handle it in the _set3DTransformRatio() method.\n            pt.xs0 = pt.e = orig[0] + ' ' + (orig[1] || '50%') + ' 0px' // we must define a z value of 0px specifically otherwise iOS 5 Safari will stick with the old one (if one was defined)!\n            pt = new CSSPropTween(m1, 'zOrigin', 0, 0, pt, -1, pt.n) // we must create a CSSPropTween for the _gsTransform.zOrigin so that it gets reset properly at the beginning if the tween runs backward (as opposed to just setting m1.zOrigin here)\n            pt.b = copy\n            pt.xs0 = pt.e = m1.zOrigin\n          } else {\n            pt.xs0 = pt.e = orig\n          }\n\n          // for older versions of IE (6-8), we need to manually calculate things inside the setRatio() function. We record origin x and y (ox and oy) and whether or not the values are percentages (oxp and oyp).\n        } else {\n          _parsePosition(orig + '', m1)\n        }\n      }\n      if (hasChange) {\n        cssp._transformType = (!(m1.svg && _useSVGTransformAttr) && (has3D || this._transformType === 3)) ? 3 : 2 // quicker than calling cssp._enableTransforms();\n      }\n      if (swapFunc) {\n        vars[parsingProp] = swapFunc\n      }\n      if (scaleFunc) {\n        vars.scale = scaleFunc\n      }\n      return pt\n    },\n    prefix: true})\n\n    _registerComplexSpecialProp('boxShadow', {defaultValue: '0px 0px 0px 0px #999', prefix: true, color: true, multi: true, keyword: 'inset'})\n\n    _registerComplexSpecialProp('borderRadius', {defaultValue: '0px',\n      parser: function (t, e, p, cssp, pt, plugin) {\n        e = this.format(e)\n        var props = ['borderTopLeftRadius', 'borderTopRightRadius', 'borderBottomRightRadius', 'borderBottomLeftRadius'],\n          style = t.style,\n          ea1, i, es2, bs2, bs, es, bn, en, w, h, esfx, bsfx, rel, hn, vn, em\n        w = parseFloat(t.offsetWidth)\n        h = parseFloat(t.offsetHeight)\n        ea1 = e.split(' ')\n        for (i = 0; i < props.length; i++) { // if we're dealing with percentages, we must convert things separately for the horizontal and vertical axis!\n          if (this.p.indexOf('border')) { // older browsers used a prefix\n            props[i] = _checkPropPrefix(props[i])\n          }\n          bs = bs2 = _getStyle(t, props[i], _cs, false, '0px')\n          if (bs.indexOf(' ') !== -1) {\n            bs2 = bs.split(' ')\n            bs = bs2[0]\n            bs2 = bs2[1]\n          }\n          es = es2 = ea1[i]\n          bn = parseFloat(bs)\n          bsfx = bs.substr((bn + '').length)\n          rel = (es.charAt(1) === '=')\n          if (rel) {\n            en = parseInt(es.charAt(0) + '1', 10)\n            es = es.substr(2)\n            en *= parseFloat(es)\n            esfx = es.substr((en + '').length - (en < 0 ? 1 : 0)) || ''\n          } else {\n            en = parseFloat(es)\n            esfx = es.substr((en + '').length)\n          }\n          if (esfx === '') {\n            esfx = _suffixMap[p] || bsfx\n          }\n          if (esfx !== bsfx) {\n            hn = _convertToPixels(t, 'borderLeft', bn, bsfx) // horizontal number (we use a bogus \"borderLeft\" property just because the _convertToPixels() method searches for the keywords \"Left\", \"Right\", \"Top\", and \"Bottom\" to determine of it's a horizontal or vertical property, and we need \"border\" in the name so that it knows it should measure relative to the element itself, not its parent.\n            vn = _convertToPixels(t, 'borderTop', bn, bsfx) // vertical number\n            if (esfx === '%') {\n              bs = (hn / w * 100) + '%'\n              bs2 = (vn / h * 100) + '%'\n            } else if (esfx === 'em') {\n              em = _convertToPixels(t, 'borderLeft', 1, 'em')\n              bs = (hn / em) + 'em'\n              bs2 = (vn / em) + 'em'\n            } else {\n              bs = hn + 'px'\n              bs2 = vn + 'px'\n            }\n            if (rel) {\n              es = (parseFloat(bs) + en) + esfx\n              es2 = (parseFloat(bs2) + en) + esfx\n            }\n          }\n          pt = _parseComplex(style, props[i], bs + ' ' + bs2, es + ' ' + es2, false, '0px', pt)\n        }\n        return pt\n      },\n      prefix: true,\n      formatter: _getFormatter('0px 0px 0px 0px', false, true)})\n    _registerComplexSpecialProp('borderBottomLeftRadius,borderBottomRightRadius,borderTopLeftRadius,borderTopRightRadius', {defaultValue: '0px',\n      parser: function (t, e, p, cssp, pt, plugin) {\n        return _parseComplex(t.style, p, this.format(_getStyle(t, p, _cs, false, '0px 0px')), this.format(e), false, '0px', pt)\n      },\n      prefix: true,\n      formatter: _getFormatter('0px 0px', false, true)})\n    _registerComplexSpecialProp('backgroundPosition', {defaultValue: '0 0',\n      parser: function (t, e, p, cssp, pt, plugin) {\n        var bp = 'background-position',\n          cs = (_cs || _getComputedStyle(t, null)),\n          bs = this.format(((cs) ? _ieVers ? cs.getPropertyValue(bp + '-x') + ' ' + cs.getPropertyValue(bp + '-y') : cs.getPropertyValue(bp) : t.currentStyle.backgroundPositionX + ' ' + t.currentStyle.backgroundPositionY) || '0 0'), // Internet Explorer doesn't report background-position correctly - we must query background-position-x and background-position-y and combine them (even in IE10). Before IE9, we must do the same with the currentStyle object and use camelCase\n          es = this.format(e),\n          ba, ea, i, pct, overlap, src\n        if ((bs.indexOf('%') !== -1) !== (es.indexOf('%') !== -1) && es.split(',').length < 2) {\n          src = _getStyle(t, 'backgroundImage').replace(_urlExp, '')\n          if (src && src !== 'none') {\n            ba = bs.split(' ')\n            ea = es.split(' ')\n            _tempImg.setAttribute('src', src) // set the temp IMG's src to the background-image so that we can measure its width/height\n            i = 2\n            while (--i > -1) {\n              bs = ba[i]\n              pct = (bs.indexOf('%') !== -1)\n              if (pct !== (ea[i].indexOf('%') !== -1)) {\n                overlap = (i === 0) ? t.offsetWidth - _tempImg.width : t.offsetHeight - _tempImg.height\n                ba[i] = pct ? (parseFloat(bs) / 100 * overlap) + 'px' : (parseFloat(bs) / overlap * 100) + '%'\n              }\n            }\n            bs = ba.join(' ')\n          }\n        }\n        return this.parseComplex(t.style, bs, es, pt, plugin)\n      },\n      formatter: _parsePosition})\n    _registerComplexSpecialProp('backgroundSize', {defaultValue: '0 0',\n      formatter: function (v) {\n        v += '' // ensure it's a string\n        return _parsePosition(v.indexOf(' ') === -1 ? v + ' ' + v : v) // if set to something like \"100% 100%\", Safari typically reports the computed style as just \"100%\" (no 2nd value), but we should ensure that there are two values, so copy the first one. Otherwise, it'd be interpreted as \"100% 0\" (wrong).\n      }})\n    _registerComplexSpecialProp('perspective', {defaultValue: '0px', prefix: true})\n    _registerComplexSpecialProp('perspectiveOrigin', {defaultValue: '50% 50%', prefix: true})\n    _registerComplexSpecialProp('transformStyle', {prefix: true})\n    _registerComplexSpecialProp('backfaceVisibility', {prefix: true})\n    _registerComplexSpecialProp('userSelect', {prefix: true})\n    _registerComplexSpecialProp('margin', {parser: _getEdgeParser('marginTop,marginRight,marginBottom,marginLeft')})\n    _registerComplexSpecialProp('padding', {parser: _getEdgeParser('paddingTop,paddingRight,paddingBottom,paddingLeft')})\n    _registerComplexSpecialProp('clip', {defaultValue: 'rect(0px,0px,0px,0px)',\n      parser: function (t, e, p, cssp, pt, plugin) {\n        var b, cs, delim\n        if (_ieVers < 9) { // IE8 and earlier don't report a \"clip\" value in the currentStyle - instead, the values are split apart into clipTop, clipRight, clipBottom, and clipLeft. Also, in IE7 and earlier, the values inside rect() are space-delimited, not comma-delimited.\n          cs = t.currentStyle\n          delim = _ieVers < 8 ? ' ' : ','\n          b = 'rect(' + cs.clipTop + delim + cs.clipRight + delim + cs.clipBottom + delim + cs.clipLeft + ')'\n          e = this.format(e).split(',').join(delim)\n        } else {\n          b = this.format(_getStyle(t, this.p, _cs, false, this.dflt))\n          e = this.format(e)\n        }\n        return this.parseComplex(t.style, b, e, pt, plugin)\n      }})\n    _registerComplexSpecialProp('textShadow', {defaultValue: '0px 0px 0px #999', color: true, multi: true})\n    _registerComplexSpecialProp('autoRound,strictUnits', {parser: function (t, e, p, cssp, pt) { return pt }}) // just so that we can ignore these properties (not tween them)\n    _registerComplexSpecialProp('border', {defaultValue: '0px solid #000',\n      parser: function (t, e, p, cssp, pt, plugin) {\n        var bw = _getStyle(t, 'borderTopWidth', _cs, false, '0px'),\n          end = this.format(e).split(' '),\n          esfx = end[0].replace(_suffixExp, '')\n        if (esfx !== 'px') { // if we're animating to a non-px value, we need to convert the beginning width to that unit.\n          bw = (parseFloat(bw) / _convertToPixels(t, 'borderTopWidth', 1, esfx)) + esfx\n        }\n        return this.parseComplex(t.style, this.format(bw + ' ' + _getStyle(t, 'borderTopStyle', _cs, false, 'solid') + ' ' + _getStyle(t, 'borderTopColor', _cs, false, '#000')), end.join(' '), pt, plugin)\n      },\n      color: true,\n      formatter: function (v) {\n        var a = v.split(' ')\n        return a[0] + ' ' + (a[1] || 'solid') + ' ' + (v.match(_colorExp) || ['#000'])[0]\n      }})\n    _registerComplexSpecialProp('borderWidth', {parser: _getEdgeParser('borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth')}) // Firefox doesn't pick up on borderWidth set in style sheets (only inline).\n    _registerComplexSpecialProp('float,cssFloat,styleFloat', {parser: function (t, e, p, cssp, pt, plugin) {\n      var s = t.style,\n        prop = ('cssFloat' in s) ? 'cssFloat' : 'styleFloat'\n      return new CSSPropTween(s, prop, 0, 0, pt, -1, p, false, 0, s[prop], e)\n    }})\n\n    // opacity-related\n    var _setIEOpacityRatio = function (v) {\n      var t = this.t, // refers to the element's style property\n        filters = t.filter || _getStyle(this.data, 'filter') || '',\n        val = (this.s + this.c * v) | 0,\n        skip\n      if (val === 100) { // for older versions of IE that need to use a filter to apply opacity, we should remove the filter if opacity hits 1 in order to improve performance, but make sure there isn't a transform (matrix) or gradient in the filters.\n        if (filters.indexOf('atrix(') === -1 && filters.indexOf('radient(') === -1 && filters.indexOf('oader(') === -1) {\n          t.removeAttribute('filter')\n          skip = (!_getStyle(this.data, 'filter')) // if a class is applied that has an alpha filter, it will take effect (we don't want that), so re-apply our alpha filter in that case. We must first remove it and then check.\n        } else {\n          t.filter = filters.replace(_alphaFilterExp, '')\n          skip = true\n        }\n      }\n      if (!skip) {\n        if (this.xn1) {\n          t.filter = filters = filters || ('alpha(opacity=' + val + ')') // works around bug in IE7/8 that prevents changes to \"visibility\" from being applied properly if the filter is changed to a different alpha on the same frame.\n        }\n        if (filters.indexOf('pacity') === -1) { // only used if browser doesn't support the standard opacity style property (IE 7 and 8). We omit the \"O\" to avoid case-sensitivity issues\n          if (val !== 0 || !this.xn1) { // bugs in IE7/8 won't render the filter properly if opacity is ADDED on the same frame/render as \"visibility\" changes (this.xn1 is 1 if this tween is an \"autoAlpha\" tween)\n            t.filter = filters + ' alpha(opacity=' + val + ')' // we round the value because otherwise, bugs in IE7/8 can prevent \"visibility\" changes from being applied properly.\n          }\n        } else {\n          t.filter = filters.replace(_opacityExp, 'opacity=' + val)\n        }\n      }\n    }\n    _registerComplexSpecialProp('opacity,alpha,autoAlpha', {defaultValue: '1',\n      parser: function (t, e, p, cssp, pt, plugin) {\n        var b = parseFloat(_getStyle(t, 'opacity', _cs, false, '1')),\n          style = t.style,\n          isAutoAlpha = (p === 'autoAlpha')\n        if (typeof (e) === 'string' && e.charAt(1) === '=') {\n          e = ((e.charAt(0) === '-') ? -1 : 1) * parseFloat(e.substr(2)) + b\n        }\n        if (isAutoAlpha && b === 1 && _getStyle(t, 'visibility', _cs) === 'hidden' && e !== 0) { // if visibility is initially set to \"hidden\", we should interpret that as intent to make opacity 0 (a convenience)\n          b = 0\n        }\n        if (_supportsOpacity) {\n          pt = new CSSPropTween(style, 'opacity', b, e - b, pt)\n        } else {\n          pt = new CSSPropTween(style, 'opacity', b * 100, (e - b) * 100, pt)\n          pt.xn1 = isAutoAlpha ? 1 : 0 // we need to record whether or not this is an autoAlpha so that in the setRatio(), we know to duplicate the setting of the alpha in order to work around a bug in IE7 and IE8 that prevents changes to \"visibility\" from taking effect if the filter is changed to a different alpha(opacity) at the same time. Setting it to the SAME value first, then the new value works around the IE7/8 bug.\n          style.zoom = 1 // helps correct an IE issue.\n          pt.type = 2\n          pt.b = 'alpha(opacity=' + pt.s + ')'\n          pt.e = 'alpha(opacity=' + (pt.s + pt.c) + ')'\n          pt.data = t\n          pt.plugin = plugin\n          pt.setRatio = _setIEOpacityRatio\n        }\n        if (isAutoAlpha) { // we have to create the \"visibility\" PropTween after the opacity one in the linked list so that they run in the order that works properly in IE8 and earlier\n          pt = new CSSPropTween(style, 'visibility', 0, 0, pt, -1, null, false, 0, ((b !== 0) ? 'inherit' : 'hidden'), ((e === 0) ? 'hidden' : 'inherit'))\n          pt.xs0 = 'inherit'\n          cssp._overwriteProps.push(pt.n)\n          cssp._overwriteProps.push(p)\n        }\n        return pt\n      }})\n\n    var _removeProp = function (s, p) {\n        if (p) {\n          if (s.removeProperty) {\n            if (p.substr(0, 2) === 'ms' || p.substr(0, 6) === 'webkit') { // Microsoft and some Webkit browsers don't conform to the standard of capitalizing the first prefix character, so we adjust so that when we prefix the caps with a dash, it's correct (otherwise it'd be \"ms-transform\" instead of \"-ms-transform\" for IE9, for example)\n              p = '-' + p\n            }\n            s.removeProperty(p.replace(_capsExp, '-$1').toLowerCase())\n          } else { // note: old versions of IE use \"removeAttribute()\" instead of \"removeProperty()\"\n            s.removeAttribute(p)\n          }\n        }\n      },\n      _setClassNameRatio = function (v) {\n        this.t._gsClassPT = this\n        if (v === 1 || v === 0) {\n          this.t.setAttribute('class', (v === 0) ? this.b : this.e)\n          var mpt = this.data, // first MiniPropTween\n            s = this.t.style\n          while (mpt) {\n            if (!mpt.v) {\n              _removeProp(s, mpt.p)\n            } else {\n              s[mpt.p] = mpt.v\n            }\n            mpt = mpt._next\n          }\n          if (v === 1 && this.t._gsClassPT === this) {\n            this.t._gsClassPT = null\n          }\n        } else if (this.t.getAttribute('class') !== this.e) {\n          this.t.setAttribute('class', this.e)\n        }\n      }\n    _registerComplexSpecialProp('className', {parser: function (t, e, p, cssp, pt, plugin, vars) {\n      var b = t.getAttribute('class') || '', // don't use t.className because it doesn't work consistently on SVG elements; getAttribute(\"class\") and setAttribute(\"class\", value\") is more reliable.\n        cssText = t.style.cssText,\n        difData, bs, cnpt, cnptLookup, mpt\n      pt = cssp._classNamePT = new CSSPropTween(t, p, 0, 0, pt, 2)\n      pt.setRatio = _setClassNameRatio\n      pt.pr = -11\n      _hasPriority = true\n      pt.b = b\n      bs = _getAllStyles(t, _cs)\n      // if there's a className tween already operating on the target, force it to its end so that the necessary inline styles are removed and the class name is applied before we determine the end state (we don't want inline styles interfering that were there just for class-specific values)\n      cnpt = t._gsClassPT\n      if (cnpt) {\n        cnptLookup = {}\n        mpt = cnpt.data // first MiniPropTween which stores the inline styles - we need to force these so that the inline styles don't contaminate things. Otherwise, there's a small chance that a tween could start and the inline values match the destination values and they never get cleaned.\n        while (mpt) {\n          cnptLookup[mpt.p] = 1\n          mpt = mpt._next\n        }\n        cnpt.setRatio(1)\n      }\n      t._gsClassPT = pt\n      pt.e = (e.charAt(1) !== '=') ? e : b.replace(new RegExp('(?:\\\\s|^)' + e.substr(2) + '(?![\\\\w-])'), '') + ((e.charAt(0) === '+') ? ' ' + e.substr(2) : '')\n      t.setAttribute('class', pt.e)\n      difData = _cssDif(t, bs, _getAllStyles(t), vars, cnptLookup)\n      t.setAttribute('class', b)\n      pt.data = difData.firstMPT\n      t.style.cssText = cssText // we recorded cssText before we swapped classes and ran _getAllStyles() because in cases when a className tween is overwritten, we remove all the related tweening properties from that class change (otherwise class-specific stuff can't override properties we've directly set on the target's style object due to specificity).\n      pt = pt.xfirst = cssp.parse(t, difData.difs, pt, plugin) // we record the CSSPropTween as the xfirst so that we can handle overwriting propertly (if \"className\" gets overwritten, we must kill all the properties associated with the className part of the tween, so we can loop through from xfirst to the pt itself)\n      return pt\n    }})\n\n    var _setClearPropsRatio = function (v) {\n      if (v === 1 || v === 0) {\n        if (this.data._totalTime === this.data._totalDuration && this.data.data !== 'isFromStart') { // this.data refers to the tween. Only clear at the END of the tween (remember, from() tweens make the ratio go from 1 to 0, so we can't just check that and if the tween is the zero-duration one that's created internally to render the starting values in a from() tween, ignore that because otherwise, for example, from(...{height:100, clearProps:\"height\", delay:1}) would wipe the height at the beginning of the tween and after 1 second, it'd kick back in).\n          var s = this.t.style,\n            transformParse = _specialProps.transform.parse,\n            a, p, i, clearTransform, transform\n          if (this.e === 'all') {\n            s.cssText = ''\n            clearTransform = true\n          } else {\n            a = this.e.split(' ').join('').split(',')\n            i = a.length\n            while (--i > -1) {\n              p = a[i]\n              if (_specialProps[p]) {\n                if (_specialProps[p].parse === transformParse) {\n                  clearTransform = true\n                } else {\n                  p = (p === 'transformOrigin') ? _transformOriginProp : _specialProps[p].p // ensures that special properties use the proper browser-specific property name, like \"scaleX\" might be \"-webkit-transform\" or \"boxShadow\" might be \"-moz-box-shadow\"\n                }\n              }\n              _removeProp(s, p)\n            }\n          }\n          if (clearTransform) {\n            _removeProp(s, _transformProp)\n            transform = this.t._gsTransform\n            if (transform) {\n              if (transform.svg) {\n                this.t.removeAttribute('data-svg-origin')\n                this.t.removeAttribute('transform')\n              }\n              delete this.t._gsTransform\n            }\n          }\n        }\n      }\n    }\n    _registerComplexSpecialProp('clearProps', {parser: function (t, e, p, cssp, pt) {\n      pt = new CSSPropTween(t, p, 0, 0, pt, 2)\n      pt.setRatio = _setClearPropsRatio\n      pt.e = e\n      pt.pr = -10\n      pt.data = cssp._tween\n      _hasPriority = true\n      return pt\n    }})\n\n    p = 'bezier,throwProps,physicsProps,physics2D'.split(',')\n    i = p.length\n    while (i--) {\n      _registerPluginProp(p[i])\n    }\n\n    p = CSSPlugin.prototype\n    p._firstPT = p._lastParsedTransform = p._transform = null\n\n    // gets called when the tween renders for the first time. This kicks everything off, recording start/end values, etc.\n    p._onInitTween = function (target, vars, tween, index) {\n      if (!target.nodeType) { // css is only for dom elements\n        return false\n      }\n      this._target = _target = target\n      this._tween = tween\n      this._vars = vars\n      _index = index\n      _autoRound = vars.autoRound\n      _hasPriority = false\n      _suffixMap = vars.suffixMap || CSSPlugin.suffixMap\n      _cs = _getComputedStyle(target, '')\n      _overwriteProps = this._overwriteProps\n      var style = target.style,\n        v, pt, pt2, first, last, next, zIndex, tpt, threeD\n      if (_reqSafariFix) {\n        if (style.zIndex === '') {\n          v = _getStyle(target, 'zIndex', _cs)\n          if (v === 'auto' || v === '') {\n          // corrects a bug in [non-Android] Safari that prevents it from repainting elements in their new positions if they don't have a zIndex set. We also can't just apply this inside _parseTransform() because anything that's moved in any way (like using \"left\" or \"top\" instead of transforms like \"x\" and \"y\") can be affected, so it is best to ensure that anything that's tweening has a z-index. Setting \"WebkitPerspective\" to a non-zero value worked too except that on iOS Safari things would flicker randomly. Plus zIndex is less memory-intensive.\n            this._addLazySet(style, 'zIndex', 0)\n          }\n        }\n      }\n\n      if (typeof (vars) === 'string') {\n        first = style.cssText\n        v = _getAllStyles(target, _cs)\n        style.cssText = first + ';' + vars\n        v = _cssDif(target, v, _getAllStyles(target)).difs\n        if (!_supportsOpacity && _opacityValExp.test(vars)) {\n          v.opacity = parseFloat(RegExp.$1)\n        }\n        vars = v\n        style.cssText = first\n      }\n\n      if (vars.className) { // className tweens will combine any differences they find in the css with the vars that are passed in, so {className:\"myClass\", scale:0.5, left:20} would work.\n        this._firstPT = pt = _specialProps.className.parse(target, vars.className, 'className', this, null, null, vars)\n      } else {\n        this._firstPT = pt = this.parse(target, vars, null)\n      }\n\n      if (this._transformType) {\n        threeD = (this._transformType === 3)\n        if (!_transformProp) {\n          style.zoom = 1 // helps correct an IE issue.\n        } else if (_isSafari) {\n          _reqSafariFix = true\n          // if zIndex isn't set, iOS Safari doesn't repaint things correctly sometimes (seemingly at random).\n          if (style.zIndex === '') {\n            zIndex = _getStyle(target, 'zIndex', _cs)\n            if (zIndex === 'auto' || zIndex === '') {\n              this._addLazySet(style, 'zIndex', 0)\n            }\n          }\n          // Setting WebkitBackfaceVisibility corrects 3 bugs:\n          // 1) [non-Android] Safari skips rendering changes to \"top\" and \"left\" that are made on the same frame/render as a transform update.\n          // 2) iOS Safari sometimes neglects to repaint elements in their new positions. Setting \"WebkitPerspective\" to a non-zero value worked too except that on iOS Safari things would flicker randomly.\n          // 3) Safari sometimes displayed odd artifacts when tweening the transform (or WebkitTransform) property, like ghosts of the edges of the element remained. Definitely a browser bug.\n          // Note: we allow the user to override the auto-setting by defining WebkitBackfaceVisibility in the vars of the tween.\n          if (_isSafariLT6) {\n            this._addLazySet(style, 'WebkitBackfaceVisibility', this._vars.WebkitBackfaceVisibility || (threeD ? 'visible' : 'hidden'))\n          }\n        }\n        pt2 = pt\n        while (pt2 && pt2._next) {\n          pt2 = pt2._next\n        }\n        tpt = new CSSPropTween(target, 'transform', 0, 0, null, 2)\n        this._linkCSSP(tpt, null, pt2)\n        tpt.setRatio = _transformProp ? _setTransformRatio : _setIETransformRatio\n        tpt.data = this._transform || _getTransform(target, _cs, true)\n        tpt.tween = tween\n        tpt.pr = -1 // ensures that the transforms get applied after the components are updated.\n        _overwriteProps.pop() // we don't want to force the overwrite of all \"transform\" tweens of the target - we only care about individual transform properties like scaleX, rotation, etc. The CSSPropTween constructor automatically adds the property to _overwriteProps which is why we need to pop() here.\n      }\n\n      if (_hasPriority) {\n        // reorders the linked list in order of pr (priority)\n        while (pt) {\n          next = pt._next\n          pt2 = first\n          while (pt2 && pt2.pr > pt.pr) {\n            pt2 = pt2._next\n          }\n          if ((pt._prev = pt2 ? pt2._prev : last)) {\n            pt._prev._next = pt\n          } else {\n            first = pt\n          }\n          if ((pt._next = pt2)) {\n            pt2._prev = pt\n          } else {\n            last = pt\n          }\n          pt = next\n        }\n        this._firstPT = first\n      }\n      return true\n    }\n\n    p.parse = function (target, vars, pt, plugin) {\n      var style = target.style,\n        p, sp, bn, en, bs, es, bsfx, esfx, isStr, rel\n      for (p in vars) {\n        es = vars[p] // ending value string\n        if (typeof (es) === 'function') {\n          es = es(_index, _target)\n        }\n        sp = _specialProps[p] // SpecialProp lookup.\n        if (sp) {\n          pt = sp.parse(target, es, p, this, pt, plugin, vars)\n        } else if (p.substr(0, 2) === '--') { // for tweening CSS variables (which always start with \"--\"). To maximize performance and simplicity, we bypass CSSPlugin altogether and just add a normal property tween to the tween instance itself.\n          this._tween._propLookup[p] = this._addTween.call(this._tween, target.style, 'setProperty', _getComputedStyle(target).getPropertyValue(p) + '', es + '', p, false, p)\n          continue\n        } else {\n          bs = _getStyle(target, p, _cs) + ''\n          isStr = (typeof (es) === 'string')\n          if (p === 'color' || p === 'fill' || p === 'stroke' || p.indexOf('Color') !== -1 || (isStr && _rgbhslExp.test(es))) { // Opera uses background: to define color sometimes in addition to backgroundColor:\n            if (!isStr) {\n              es = _parseColor(es)\n              es = ((es.length > 3) ? 'rgba(' : 'rgb(') + es.join(',') + ')'\n            }\n            pt = _parseComplex(style, p, bs, es, true, 'transparent', pt, 0, plugin)\n          } else if (isStr && _complexExp.test(es)) {\n            pt = _parseComplex(style, p, bs, es, true, null, pt, 0, plugin)\n          } else {\n            bn = parseFloat(bs)\n            bsfx = (bn || bn === 0) ? bs.substr((bn + '').length) : '' // remember, bs could be non-numeric like \"normal\" for fontWeight, so we should default to a blank suffix in that case.\n\n            if (bs === '' || bs === 'auto') {\n              if (p === 'width' || p === 'height') {\n                bn = _getDimension(target, p, _cs)\n                bsfx = 'px'\n              } else if (p === 'left' || p === 'top') {\n                bn = _calculateOffset(target, p, _cs)\n                bsfx = 'px'\n              } else {\n                bn = (p !== 'opacity') ? 0 : 1\n                bsfx = ''\n              }\n            }\n\n            rel = (isStr && es.charAt(1) === '=')\n            if (rel) {\n              en = parseInt(es.charAt(0) + '1', 10)\n              es = es.substr(2)\n              en *= parseFloat(es)\n              esfx = es.replace(_suffixExp, '')\n            } else {\n              en = parseFloat(es)\n              esfx = isStr ? es.replace(_suffixExp, '') : ''\n            }\n\n            if (esfx === '') {\n              esfx = (p in _suffixMap) ? _suffixMap[p] : bsfx // populate the end suffix, prioritizing the map, then if none is found, use the beginning suffix.\n            }\n\n            es = (en || en === 0) ? (rel ? en + bn : en) + esfx : vars[p] // ensures that any += or -= prefixes are taken care of. Record the end value before normalizing the suffix because we always want to end the tween on exactly what they intended even if it doesn't match the beginning value's suffix.\n            // if the beginning/ending suffixes don't match, normalize them...\n            if (bsfx !== esfx) {\n              if (esfx !== '' || p === 'lineHeight') {\n                if (en || en === 0) {\n                  if (bn) { // note: if the beginning value (bn) is 0, we don't need to convert units!\n                    bn = _convertToPixels(target, p, bn, bsfx)\n                    if (esfx === '%') {\n                      bn /= _convertToPixels(target, p, 100, '%') / 100\n                      if (vars.strictUnits !== true) { // some browsers report only \"px\" values instead of allowing \"%\" with getComputedStyle(), so we assume that if we're tweening to a %, we should start there too unless strictUnits:true is defined. This approach is particularly useful for responsive designs that use from() tweens.\n                        bs = bn + '%'\n                      }\n                    } else if (esfx === 'em' || esfx === 'rem' || esfx === 'vw' || esfx === 'vh') {\n                      bn /= _convertToPixels(target, p, 1, esfx)\n\n                    // otherwise convert to pixels.\n                    } else if (esfx !== 'px') {\n                      en = _convertToPixels(target, p, en, esfx)\n                      esfx = 'px' // we don't use bsfx after this, so we don't need to set it to px too.\n                    }\n                    if (rel) {\n                      if (en || en === 0) {\n                        es = (en + bn) + esfx // the changes we made affect relative calculations, so adjust the end value here.\n                      }\n                    }\n                  }\n                }\n              }\n            }\n\n            if (rel) {\n              en += bn\n            }\n\n            if ((bn || bn === 0) && (en || en === 0)) { // faster than isNaN(). Also, previously we required en !== bn but that doesn't really gain much performance and it prevents _parseToProxy() from working properly if beginning and ending values match but need to get tweened by an external plugin anyway. For example, a bezier tween where the target starts at left:0 and has these points: [{left:50},{left:0}] wouldn't work properly because when parsing the last point, it'd match the first (current) one and a non-tweening CSSPropTween would be recorded when we actually need a normal tween (type:0) so that things get updated during the tween properly.\n              pt = new CSSPropTween(style, p, bn, en - bn, pt, 0, p, (_autoRound !== false && (esfx === 'px' || p === 'zIndex')), 0, bs, es)\n              pt.xs0 = esfx\n              // DEBUG: _log(\"tween \"+p+\" from \"+pt.b+\" (\"+bn+esfx+\") to \"+pt.e+\" with suffix: \"+pt.xs0);\n            } else if (style[p] === undefined || !es && (es + '' === 'NaN' || es == null)) {\n              _log('invalid ' + p + ' tween value: ' + vars[p])\n            } else {\n              pt = new CSSPropTween(style, p, en || bn || 0, 0, pt, -1, p, false, 0, bs, es)\n              pt.xs0 = (es === 'none' && (p === 'display' || p.indexOf('Style') !== -1)) ? bs : es // intermediate value should typically be set immediately (end value) except for \"display\" or things like borderTopStyle, borderBottomStyle, etc. which should use the beginning value during the tween.\n              // DEBUG: _log(\"non-tweening value \"+p+\": \"+pt.xs0);\n            }\n          }\n        }\n        if (plugin) {\n          if (pt && !pt.plugin) {\n            pt.plugin = plugin\n          }\n        }\n      }\n      return pt\n    }\n\n    // gets called every time the tween updates, passing the new ratio (typically a value between 0 and 1, but not always (for example, if an Elastic.easeOut is used, the value can jump above 1 mid-tween). It will always start and 0 and end at 1.\n    p.setRatio = function (v) {\n      var pt = this._firstPT,\n        min = 0.000001,\n        val, str, i\n      // at the end of the tween, we set the values to exactly what we received in order to make sure non-tweening values (like \"position\" or \"float\" or whatever) are set and so that if the beginning/ending suffixes (units) didn't match and we normalized to px, the value that the user passed in is used here. We check to see if the tween is at its beginning in case it's a from() tween in which case the ratio will actually go from 1 to 0 over the course of the tween (backwards).\n      if (v === 1 && (this._tween._time === this._tween._duration || this._tween._time === 0)) {\n        while (pt) {\n          if (pt.type !== 2) {\n            if (pt.r && pt.type !== -1) {\n              val = Math.round(pt.s + pt.c)\n              if (!pt.type) {\n                pt.t[pt.p] = val + pt.xs0\n              } else if (pt.type === 1) { // complex value (one that typically has multiple numbers inside a string, like \"rect(5px,10px,20px,25px)\"\n                i = pt.l\n                str = pt.xs0 + val + pt.xs1\n                for (i = 1; i < pt.l; i++) {\n                  str += pt['xn' + i] + pt['xs' + (i + 1)]\n                }\n                pt.t[pt.p] = str\n              }\n            } else {\n              pt.t[pt.p] = pt.e\n            }\n          } else {\n            pt.setRatio(v)\n          }\n          pt = pt._next\n        }\n      } else if (v || !(this._tween._time === this._tween._duration || this._tween._time === 0) || this._tween._rawPrevTime === -0.000001) {\n        while (pt) {\n          val = pt.c * v + pt.s\n          if (pt.r) {\n            val = Math.round(val)\n          } else if (val < min) {\n            if (val > -min) {\n              val = 0\n            }\n          }\n          if (!pt.type) {\n            pt.t[pt.p] = val + pt.xs0\n          } else if (pt.type === 1) { // complex value (one that typically has multiple numbers inside a string, like \"rect(5px,10px,20px,25px)\"\n            i = pt.l\n            if (i === 2) {\n              pt.t[pt.p] = pt.xs0 + val + pt.xs1 + pt.xn1 + pt.xs2\n            } else if (i === 3) {\n              pt.t[pt.p] = pt.xs0 + val + pt.xs1 + pt.xn1 + pt.xs2 + pt.xn2 + pt.xs3\n            } else if (i === 4) {\n              pt.t[pt.p] = pt.xs0 + val + pt.xs1 + pt.xn1 + pt.xs2 + pt.xn2 + pt.xs3 + pt.xn3 + pt.xs4\n            } else if (i === 5) {\n              pt.t[pt.p] = pt.xs0 + val + pt.xs1 + pt.xn1 + pt.xs2 + pt.xn2 + pt.xs3 + pt.xn3 + pt.xs4 + pt.xn4 + pt.xs5\n            } else {\n              str = pt.xs0 + val + pt.xs1\n              for (i = 1; i < pt.l; i++) {\n                str += pt['xn' + i] + pt['xs' + (i + 1)]\n              }\n              pt.t[pt.p] = str\n            }\n          } else if (pt.type === -1) { // non-tweening value\n            pt.t[pt.p] = pt.xs0\n          } else if (pt.setRatio) { // custom setRatio() for things like SpecialProps, external plugins, etc.\n            pt.setRatio(v)\n          }\n          pt = pt._next\n        }\n\n        // if the tween is reversed all the way back to the beginning, we need to restore the original values which may have different units (like % instead of px or em or whatever).\n      } else {\n        while (pt) {\n          if (pt.type !== 2) {\n            pt.t[pt.p] = pt.b\n          } else {\n            pt.setRatio(v)\n          }\n          pt = pt._next\n        }\n      }\n    }\n\n    /**\n\t\t * @private\n\t\t * Forces rendering of the target's transforms (rotation, scale, etc.) whenever the CSSPlugin's setRatio() is called.\n\t\t * Basically, this tells the CSSPlugin to create a CSSPropTween (type 2) after instantiation that runs last in the linked\n\t\t * list and calls the appropriate (3D or 2D) rendering function. We separate this into its own method so that we can call\n\t\t * it from other plugins like BezierPlugin if, for example, it needs to apply an autoRotation and this CSSPlugin\n\t\t * doesn't have any transform-related properties of its own. You can call this method as many times as you\n\t\t * want and it won't create duplicate CSSPropTweens.\n\t\t *\n\t\t * @param {boolean} threeD if true, it should apply 3D tweens (otherwise, just 2D ones are fine and typically faster)\n\t\t */\n    p._enableTransforms = function (threeD) {\n      this._transform = this._transform || _getTransform(this._target, _cs, true) // ensures that the element has a _gsTransform property with the appropriate values.\n      this._transformType = (!(this._transform.svg && _useSVGTransformAttr) && (threeD || this._transformType === 3)) ? 3 : 2\n    }\n\n    var lazySet = function (v) {\n      this.t[this.p] = this.e\n      this.data._linkCSSP(this, this._next, null, true) // we purposefully keep this._next even though it'd make sense to null it, but this is a performance optimization, as this happens during the while (pt) {} loop in setRatio() at the bottom of which it sets pt = pt._next, so if we null it, the linked list will be broken in that loop.\n    }\n    /** @private Gives us a way to set a value on the first render (and only the first render). **/\n    p._addLazySet = function (t, p, v) {\n      var pt = this._firstPT = new CSSPropTween(t, p, 0, 0, this._firstPT, 2)\n      pt.e = v\n      pt.setRatio = lazySet\n      pt.data = this\n    }\n\n    /** @private **/\n    p._linkCSSP = function (pt, next, prev, remove) {\n      if (pt) {\n        if (next) {\n          next._prev = pt\n        }\n        if (pt._next) {\n          pt._next._prev = pt._prev\n        }\n        if (pt._prev) {\n          pt._prev._next = pt._next\n        } else if (this._firstPT === pt) {\n          this._firstPT = pt._next\n          remove = true // just to prevent resetting this._firstPT 5 lines down in case pt._next is null. (optimized for speed)\n        }\n        if (prev) {\n          prev._next = pt\n        } else if (!remove && this._firstPT === null) {\n          this._firstPT = pt\n        }\n        pt._next = next\n        pt._prev = prev\n      }\n      return pt\n    }\n\n    p._mod = function (lookup) {\n      var pt = this._firstPT\n      while (pt) {\n        if (typeof (lookup[pt.p]) === 'function' && lookup[pt.p] === Math.round) { // only gets called by RoundPropsPlugin (ModifyPlugin manages all the rendering internally for CSSPlugin properties that need modification). Remember, we handle rounding a bit differently in this plugin for performance reasons, leveraging \"r\" as an indicator that the value should be rounded internally..\n          pt.r = 1\n        }\n        pt = pt._next\n      }\n    }\n\n    // we need to make sure that if alpha or autoAlpha is killed, opacity is too. And autoAlpha affects the \"visibility\" property.\n    p._kill = function (lookup) {\n      var copy = lookup,\n        pt, p, xfirst\n      if (lookup.autoAlpha || lookup.alpha) {\n        copy = {}\n        for (p in lookup) { // copy the lookup so that we're not changing the original which may be passed elsewhere.\n          copy[p] = lookup[p]\n        }\n        copy.opacity = 1\n        if (copy.autoAlpha) {\n          copy.visibility = 1\n        }\n      }\n      if (lookup.className && (pt = this._classNamePT)) { // for className tweens, we need to kill any associated CSSPropTweens too; a linked list starts at the className's \"xfirst\".\n        xfirst = pt.xfirst\n        if (xfirst && xfirst._prev) {\n          this._linkCSSP(xfirst._prev, pt._next, xfirst._prev._prev) // break off the prev\n        } else if (xfirst === this._firstPT) {\n          this._firstPT = pt._next\n        }\n        if (pt._next) {\n          this._linkCSSP(pt._next, pt._next._next, xfirst._prev)\n        }\n        this._classNamePT = null\n      }\n      pt = this._firstPT\n      while (pt) {\n        if (pt.plugin && pt.plugin !== p && pt.plugin._kill) { // for plugins that are registered with CSSPlugin, we should notify them of the kill.\n          pt.plugin._kill(lookup)\n          p = pt.plugin\n        }\n        pt = pt._next\n      }\n      return TweenPlugin.prototype._kill.call(this, copy)\n    }\n\n    // used by cascadeTo() for gathering all the style properties of each child element into an array for comparison.\n    var _getChildStyles = function (e, props, targets) {\n      var children, i, child, type\n      if (e.slice) {\n        i = e.length\n        while (--i > -1) {\n          _getChildStyles(e[i], props, targets)\n        }\n        return\n      }\n      children = e.childNodes\n      i = children.length\n      while (--i > -1) {\n        child = children[i]\n        type = child.type\n        if (child.style) {\n          props.push(_getAllStyles(child))\n          if (targets) {\n            targets.push(child)\n          }\n        }\n        if ((type === 1 || type === 9 || type === 11) && child.childNodes.length) {\n          _getChildStyles(child, props, targets)\n        }\n      }\n    }\n\n    /**\n\t\t * Typically only useful for className tweens that may affect child elements, this method creates a TweenLite\n\t\t * and then compares the style properties of all the target's child elements at the tween's start and end, and\n\t\t * if any are different, it also creates tweens for those and returns an array containing ALL of the resulting\n\t\t * tweens (so that you can easily add() them to a TimelineLite, for example). The reason this functionality is\n\t\t * wrapped into a separate static method of CSSPlugin instead of being integrated into all regular className tweens\n\t\t * is because it creates entirely new tweens that may have completely different targets than the original tween,\n\t\t * so if they were all lumped into the original tween instance, it would be inconsistent with the rest of the API\n\t\t * and it would create other problems. For example:\n\t\t *  - If I create a tween of elementA, that tween instance may suddenly change its target to include 50 other elements (unintuitive if I specifically defined the target I wanted)\n\t\t *  - We can't just create new independent tweens because otherwise, what happens if the original/parent tween is reversed or pause or dropped into a TimelineLite for tight control? You'd expect that tween's behavior to affect all the others.\n\t\t *  - Analyzing every style property of every child before and after the tween is an expensive operation when there are many children, so this behavior shouldn't be imposed on all className tweens by default, especially since it's probably rare that this extra functionality is needed.\n\t\t *\n\t\t * @param {Object} target object to be tweened\n\t\t * @param {number} Duration in seconds (or frames for frames-based tweens)\n\t\t * @param {Object} Object containing the end values, like {className:\"newClass\", ease:Linear.easeNone}\n\t\t * @return {Array} An array of TweenLite instances\n\t\t */\n    CSSPlugin.cascadeTo = function (target, duration, vars) {\n      var tween = TweenLite.to(target, duration, vars),\n        results = [tween],\n        b = [],\n        e = [],\n        targets = [],\n        _reservedProps = TweenLite._internals.reservedProps,\n        i, difs, p, from\n      target = tween._targets || tween.target\n      _getChildStyles(target, b, targets)\n      tween.render(duration, true, true)\n      _getChildStyles(target, e)\n      tween.render(0, true, true)\n      tween._enabled(true)\n      i = targets.length\n      while (--i > -1) {\n        difs = _cssDif(targets[i], b[i], e[i])\n        if (difs.firstMPT) {\n          difs = difs.difs\n          for (p in vars) {\n            if (_reservedProps[p]) {\n              difs[p] = vars[p]\n            }\n          }\n          from = {}\n          for (p in difs) {\n            from[p] = b[i][p]\n          }\n          results.push(TweenLite.fromTo(targets[i], duration, from, difs))\n        }\n      }\n      return results\n    }\n\n    TweenPlugin.activate([CSSPlugin])\n    return CSSPlugin\n  }, true);\n\n  /*\n * ----------------------------------------------------------------\n * RoundPropsPlugin\n * ----------------------------------------------------------------\n */\n  (function () {\n    var RoundPropsPlugin = _gsScope._gsDefine.plugin({\n        propName: 'roundProps',\n        version: '1.6.0',\n        priority: -1,\n        API: 2,\n\n        // called when the tween renders for the first time. This is where initial values should be recorded and any setup routines should run.\n        init: function (target, value, tween) {\n          this._tween = tween\n          return true\n        }\n\n      }),\n      _roundLinkedList = function (node) {\n        while (node) {\n          if (!node.f && !node.blob) {\n            node.m = Math.round\n          }\n          node = node._next\n        }\n      },\n      p = RoundPropsPlugin.prototype\n\n    p._onInitAllProps = function () {\n      var tween = this._tween,\n        rp = (tween.vars.roundProps.join) ? tween.vars.roundProps : tween.vars.roundProps.split(','),\n        i = rp.length,\n        lookup = {},\n        rpt = tween._propLookup.roundProps,\n        prop, pt, next\n      while (--i > -1) {\n        lookup[rp[i]] = Math.round\n      }\n      i = rp.length\n      while (--i > -1) {\n        prop = rp[i]\n        pt = tween._firstPT\n        while (pt) {\n          next = pt._next // record here, because it may get removed\n          if (pt.pg) {\n            pt.t._mod(lookup)\n          } else if (pt.n === prop) {\n            if (pt.f === 2 && pt.t) { // a blob (text containing multiple numeric values)\n              _roundLinkedList(pt.t._firstPT)\n            } else {\n              this._add(pt.t, prop, pt.s, pt.c)\n              // remove from linked list\n              if (next) {\n                next._prev = pt._prev\n              }\n              if (pt._prev) {\n                pt._prev._next = next\n              } else if (tween._firstPT === pt) {\n                tween._firstPT = next\n              }\n              pt._next = pt._prev = null\n              tween._propLookup[prop] = rpt\n            }\n          }\n          pt = next\n        }\n      }\n      return false\n    }\n\n    p._add = function (target, p, s, c) {\n      this._addTween(target, p, s, s + c, p, Math.round)\n      this._overwriteProps.push(p)\n    }\n  }());\n\n  /*\n * ----------------------------------------------------------------\n * AttrPlugin\n * ----------------------------------------------------------------\n */\n\n  (function () {\n    _gsScope._gsDefine.plugin({\n      propName: 'attr',\n      API: 2,\n      version: '0.6.1',\n\n      // called when the tween renders for the first time. This is where initial values should be recorded and any setup routines should run.\n      init: function (target, value, tween, index) {\n        var p, end\n        if (typeof (target.setAttribute) !== 'function') {\n          return false\n        }\n        for (p in value) {\n          end = value[p]\n          if (typeof (end) === 'function') {\n            end = end(index, target)\n          }\n          this._addTween(target, 'setAttribute', target.getAttribute(p) + '', end + '', p, false, p)\n          this._overwriteProps.push(p)\n        }\n        return true\n      }\n\n    })\n  }())\n\n  /*\n * ----------------------------------------------------------------\n * DirectionalRotationPlugin\n * ----------------------------------------------------------------\n */\n  _gsScope._gsDefine.plugin({\n    propName: 'directionalRotation',\n    version: '0.3.1',\n    API: 2,\n\n    // called when the tween renders for the first time. This is where initial values should be recorded and any setup routines should run.\n    init: function (target, value, tween, index) {\n      if (typeof (value) !== 'object') {\n        value = {rotation: value}\n      }\n      this.finals = {}\n      var cap = (value.useRadians === true) ? Math.PI * 2 : 360,\n        min = 0.000001,\n        p, v, start, end, dif, split\n      for (p in value) {\n        if (p !== 'useRadians') {\n          end = value[p]\n          if (typeof (end) === 'function') {\n            end = end(index, target)\n          }\n          split = (end + '').split('_')\n          v = split[0]\n          start = parseFloat((typeof (target[p]) !== 'function') ? target[p] : target[ ((p.indexOf('set') || typeof (target['get' + p.substr(3)]) !== 'function') ? p : 'get' + p.substr(3)) ]())\n          end = this.finals[p] = (typeof (v) === 'string' && v.charAt(1) === '=') ? start + parseInt(v.charAt(0) + '1', 10) * Number(v.substr(2)) : Number(v) || 0\n          dif = end - start\n          if (split.length) {\n            v = split.join('_')\n            if (v.indexOf('short') !== -1) {\n              dif = dif % cap\n              if (dif !== dif % (cap / 2)) {\n                dif = (dif < 0) ? dif + cap : dif - cap\n              }\n            }\n            if (v.indexOf('_cw') !== -1 && dif < 0) {\n              dif = ((dif + cap * 9999999999) % cap) - ((dif / cap) | 0) * cap\n            } else if (v.indexOf('ccw') !== -1 && dif > 0) {\n              dif = ((dif - cap * 9999999999) % cap) - ((dif / cap) | 0) * cap\n            }\n          }\n          if (dif > min || dif < -min) {\n            this._addTween(target, p, start, start + dif, p)\n            this._overwriteProps.push(p)\n          }\n        }\n      }\n      return true\n    },\n\n    // called each time the values should be updated, and the ratio gets passed as the only parameter (typically it's a value between 0 and 1, but it can exceed those when using an ease like Elastic.easeOut or Back.easeOut, etc.)\n    set: function (ratio) {\n      var pt\n      if (ratio !== 1) {\n        this._super.setRatio.call(this, ratio)\n      } else {\n        pt = this._firstPT\n        while (pt) {\n          if (pt.f) {\n            pt.t[pt.p](this.finals[pt.p])\n          } else {\n            pt.t[pt.p] = this.finals[pt.p]\n          }\n          pt = pt._next\n        }\n      }\n    }\n\n  })._autoCSS = true\n\n  /*\n * ----------------------------------------------------------------\n * EasePack\n * ----------------------------------------------------------------\n */\n  _gsScope._gsDefine('easing.Back', ['easing.Ease'], function (Ease) {\n    var w = (_gsScope.GreenSockGlobals || _gsScope),\n      gs = w.com.greensock,\n      _2PI = Math.PI * 2,\n      _HALF_PI = Math.PI / 2,\n      _class = gs._class,\n      _create = function (n, f) {\n        var C = _class('easing.' + n, function () {}, true),\n          p = C.prototype = new Ease()\n        p.constructor = C\n        p.getRatio = f\n        return C\n      },\n      _easeReg = Ease.register || function () {}, // put an empty function in place just as a safety measure in case someone loads an OLD version of TweenLite.js where Ease.register doesn't exist.\n      _wrap = function (name, EaseOut, EaseIn, EaseInOut, aliases) {\n        var C = _class('easing.' + name, {\n          easeOut: new EaseOut(),\n          easeIn: new EaseIn(),\n          easeInOut: new EaseInOut()\n        }, true)\n        _easeReg(C, name)\n        return C\n      },\n      EasePoint = function (time, value, next) {\n        this.t = time\n        this.v = value\n        if (next) {\n          this.next = next\n          next.prev = this\n          this.c = next.v - value\n          this.gap = next.t - time\n        }\n      },\n\n      // Back\n      _createBack = function (n, f) {\n        var C = _class('easing.' + n, function (overshoot) {\n            this._p1 = (overshoot || overshoot === 0) ? overshoot : 1.70158\n            this._p2 = this._p1 * 1.525\n          }, true),\n          p = C.prototype = new Ease()\n        p.constructor = C\n        p.getRatio = f\n        p.config = function (overshoot) {\n          return new C(overshoot)\n        }\n        return C\n      },\n\n      Back = _wrap('Back',\n        _createBack('BackOut', function (p) {\n          return ((p = p - 1) * p * ((this._p1 + 1) * p + this._p1) + 1)\n        }),\n        _createBack('BackIn', function (p) {\n          return p * p * ((this._p1 + 1) * p - this._p1)\n        }),\n        _createBack('BackInOut', function (p) {\n          return ((p *= 2) < 1) ? 0.5 * p * p * ((this._p2 + 1) * p - this._p2) : 0.5 * ((p -= 2) * p * ((this._p2 + 1) * p + this._p2) + 2)\n        })\n      ),\n\n      // SlowMo\n      SlowMo = _class('easing.SlowMo', function (linearRatio, power, yoyoMode) {\n        power = (power || power === 0) ? power : 0.7\n        if (linearRatio == null) {\n          linearRatio = 0.7\n        } else if (linearRatio > 1) {\n          linearRatio = 1\n        }\n        this._p = (linearRatio !== 1) ? power : 0\n        this._p1 = (1 - linearRatio) / 2\n        this._p2 = linearRatio\n        this._p3 = this._p1 + this._p2\n        this._calcEnd = (yoyoMode === true)\n      }, true),\n      p = SlowMo.prototype = new Ease(),\n      SteppedEase, RoughEase, _createElastic\n\n    p.constructor = SlowMo\n    p.getRatio = function (p) {\n      var r = p + (0.5 - p) * this._p\n      if (p < this._p1) {\n        return this._calcEnd ? 1 - ((p = 1 - (p / this._p1)) * p) : r - ((p = 1 - (p / this._p1)) * p * p * p * r)\n      } else if (p > this._p3) {\n        return this._calcEnd ? 1 - (p = (p - this._p3) / this._p1) * p : r + ((p - r) * (p = (p - this._p3) / this._p1) * p * p * p)\n      }\n      return this._calcEnd ? 1 : r\n    }\n    SlowMo.ease = new SlowMo(0.7, 0.7)\n\n    p.config = SlowMo.config = function (linearRatio, power, yoyoMode) {\n      return new SlowMo(linearRatio, power, yoyoMode)\n    }\n\n    // SteppedEase\n    SteppedEase = _class('easing.SteppedEase', function (steps, immediateStart) {\n      steps = steps || 1\n      this._p1 = 1 / steps\n      this._p2 = steps + (immediateStart ? 0 : 1)\n      this._p3 = immediateStart ? 1 : 0\n    }, true)\n    p = SteppedEase.prototype = new Ease()\n    p.constructor = SteppedEase\n    p.getRatio = function (p) {\n      if (p < 0) {\n        p = 0\n      } else if (p >= 1) {\n        p = 0.999999999\n      }\n      return (((this._p2 * p) | 0) + this._p3) * this._p1\n    }\n    p.config = SteppedEase.config = function (steps, immediateStart) {\n      return new SteppedEase(steps, immediateStart)\n    }\n\n    // RoughEase\n    RoughEase = _class('easing.RoughEase', function (vars) {\n      vars = vars || {}\n      var taper = vars.taper || 'none',\n        a = [],\n        cnt = 0,\n        points = (vars.points || 20) | 0,\n        i = points,\n        randomize = (vars.randomize !== false),\n        clamp = (vars.clamp === true),\n        template = (vars.template instanceof Ease) ? vars.template : null,\n        strength = (typeof (vars.strength) === 'number') ? vars.strength * 0.4 : 0.4,\n        x, y, bump, invX, obj, pnt\n      while (--i > -1) {\n        x = randomize ? Math.random() : (1 / points) * i\n        y = template ? template.getRatio(x) : x\n        if (taper === 'none') {\n          bump = strength\n        } else if (taper === 'out') {\n          invX = 1 - x\n          bump = invX * invX * strength\n        } else if (taper === 'in') {\n          bump = x * x * strength\n        } else if (x < 0.5) { // \"both\" (start)\n          invX = x * 2\n          bump = invX * invX * 0.5 * strength\n        } else {\t\t\t\t// \"both\" (end)\n          invX = (1 - x) * 2\n          bump = invX * invX * 0.5 * strength\n        }\n        if (randomize) {\n          y += (Math.random() * bump) - (bump * 0.5)\n        } else if (i % 2) {\n          y += bump * 0.5\n        } else {\n          y -= bump * 0.5\n        }\n        if (clamp) {\n          if (y > 1) {\n            y = 1\n          } else if (y < 0) {\n            y = 0\n          }\n        }\n        a[cnt++] = {x: x, y: y}\n      }\n      a.sort(function (a, b) {\n        return a.x - b.x\n      })\n\n      pnt = new EasePoint(1, 1, null)\n      i = points\n      while (--i > -1) {\n        obj = a[i]\n        pnt = new EasePoint(obj.x, obj.y, pnt)\n      }\n\n      this._prev = new EasePoint(0, 0, (pnt.t !== 0) ? pnt : pnt.next)\n    }, true)\n    p = RoughEase.prototype = new Ease()\n    p.constructor = RoughEase\n    p.getRatio = function (p) {\n      var pnt = this._prev\n      if (p > pnt.t) {\n        while (pnt.next && p >= pnt.t) {\n          pnt = pnt.next\n        }\n        pnt = pnt.prev\n      } else {\n        while (pnt.prev && p <= pnt.t) {\n          pnt = pnt.prev\n        }\n      }\n      this._prev = pnt\n      return (pnt.v + ((p - pnt.t) / pnt.gap) * pnt.c)\n    }\n    p.config = function (vars) {\n      return new RoughEase(vars)\n    }\n    RoughEase.ease = new RoughEase()\n\n    // Bounce\n    _wrap('Bounce',\n      _create('BounceOut', function (p) {\n        if (p < 1 / 2.75) {\n          return 7.5625 * p * p\n        } else if (p < 2 / 2.75) {\n          return 7.5625 * (p -= 1.5 / 2.75) * p + 0.75\n        } else if (p < 2.5 / 2.75) {\n          return 7.5625 * (p -= 2.25 / 2.75) * p + 0.9375\n        }\n        return 7.5625 * (p -= 2.625 / 2.75) * p + 0.984375\n      }),\n      _create('BounceIn', function (p) {\n        if ((p = 1 - p) < 1 / 2.75) {\n          return 1 - (7.5625 * p * p)\n        } else if (p < 2 / 2.75) {\n          return 1 - (7.5625 * (p -= 1.5 / 2.75) * p + 0.75)\n        } else if (p < 2.5 / 2.75) {\n          return 1 - (7.5625 * (p -= 2.25 / 2.75) * p + 0.9375)\n        }\n        return 1 - (7.5625 * (p -= 2.625 / 2.75) * p + 0.984375)\n      }),\n      _create('BounceInOut', function (p) {\n        var invert = (p < 0.5)\n        if (invert) {\n          p = 1 - (p * 2)\n        } else {\n          p = (p * 2) - 1\n        }\n        if (p < 1 / 2.75) {\n          p = 7.5625 * p * p\n        } else if (p < 2 / 2.75) {\n          p = 7.5625 * (p -= 1.5 / 2.75) * p + 0.75\n        } else if (p < 2.5 / 2.75) {\n          p = 7.5625 * (p -= 2.25 / 2.75) * p + 0.9375\n        } else {\n          p = 7.5625 * (p -= 2.625 / 2.75) * p + 0.984375\n        }\n        return invert ? (1 - p) * 0.5 : p * 0.5 + 0.5\n      })\n    )\n\n    // CIRC\n    _wrap('Circ',\n      _create('CircOut', function (p) {\n        return Math.sqrt(1 - (p = p - 1) * p)\n      }),\n      _create('CircIn', function (p) {\n        return -(Math.sqrt(1 - (p * p)) - 1)\n      }),\n      _create('CircInOut', function (p) {\n        return ((p *= 2) < 1) ? -0.5 * (Math.sqrt(1 - p * p) - 1) : 0.5 * (Math.sqrt(1 - (p -= 2) * p) + 1)\n      })\n    )\n\n    // Elastic\n    _createElastic = function (n, f, def) {\n      var C = _class('easing.' + n, function (amplitude, period) {\n          this._p1 = (amplitude >= 1) ? amplitude : 1 // note: if amplitude is < 1, we simply adjust the period for a more natural feel. Otherwise the math doesn't work right and the curve starts at 1.\n          this._p2 = (period || def) / (amplitude < 1 ? amplitude : 1)\n          this._p3 = this._p2 / _2PI * (Math.asin(1 / this._p1) || 0)\n          this._p2 = _2PI / this._p2 // precalculate to optimize\n        }, true),\n        p = C.prototype = new Ease()\n      p.constructor = C\n      p.getRatio = f\n      p.config = function (amplitude, period) {\n        return new C(amplitude, period)\n      }\n      return C\n    }\n    _wrap('Elastic',\n      _createElastic('ElasticOut', function (p) {\n        return this._p1 * Math.pow(2, -10 * p) * Math.sin((p - this._p3) * this._p2) + 1\n      }, 0.3),\n      _createElastic('ElasticIn', function (p) {\n        return -(this._p1 * Math.pow(2, 10 * (p -= 1)) * Math.sin((p - this._p3) * this._p2))\n      }, 0.3),\n      _createElastic('ElasticInOut', function (p) {\n        return ((p *= 2) < 1) ? -0.5 * (this._p1 * Math.pow(2, 10 * (p -= 1)) * Math.sin((p - this._p3) * this._p2)) : this._p1 * Math.pow(2, -10 * (p -= 1)) * Math.sin((p - this._p3) * this._p2) * 0.5 + 1\n      }, 0.45)\n    )\n\n    // Expo\n    _wrap('Expo',\n      _create('ExpoOut', function (p) {\n        return 1 - Math.pow(2, -10 * p)\n      }),\n      _create('ExpoIn', function (p) {\n        return Math.pow(2, 10 * (p - 1)) - 0.001\n      }),\n      _create('ExpoInOut', function (p) {\n        return ((p *= 2) < 1) ? 0.5 * Math.pow(2, 10 * (p - 1)) : 0.5 * (2 - Math.pow(2, -10 * (p - 1)))\n      })\n    )\n\n    // Sine\n    _wrap('Sine',\n      _create('SineOut', function (p) {\n        return Math.sin(p * _HALF_PI)\n      }),\n      _create('SineIn', function (p) {\n        return -Math.cos(p * _HALF_PI) + 1\n      }),\n      _create('SineInOut', function (p) {\n        return -0.5 * (Math.cos(Math.PI * p) - 1)\n      })\n    )\n\n    _class('easing.EaseLookup', {\n      find: function (s) {\n        return Ease.map[s]\n      }\n    }, true)\n\n    // register the non-standard eases\n    _easeReg(w.SlowMo, 'SlowMo', 'ease,')\n    _easeReg(RoughEase, 'RoughEase', 'ease,')\n    _easeReg(SteppedEase, 'SteppedEase', 'ease,')\n\n    return Back\n  }, true)\n})\n\nif (_gsScope._gsDefine) { _gsScope._gsQueue.pop()() } // necessary in case TweenLite was already loaded separately.\n\n/*\n * ----------------------------------------------------------------\n * Base classes like TweenLite, SimpleTimeline, Ease, Ticker, etc.\n * ----------------------------------------------------------------\n */\n(function (window, moduleName) {\n  'use strict'\n  var _exports = {},\n    _doc = window.document,\n    _globals = window.GreenSockGlobals = window.GreenSockGlobals || window\n  if (_globals.TweenLite) {\n    return // in case the core set of classes is already loaded, don't instantiate twice.\n  }\n  var _namespace = function (ns) {\n      var a = ns.split('.'),\n        p = _globals, i\n      for (i = 0; i < a.length; i++) {\n        p[a[i]] = p = p[a[i]] || {}\n      }\n      return p\n    },\n    gs = _namespace('com.greensock'),\n    _tinyNum = 0.0000000001,\n    _slice = function (a) { // don't use Array.prototype.slice.call(target, 0) because that doesn't work in IE8 with a NodeList that's returned by querySelectorAll()\n      var b = [],\n        l = a.length,\n        i\n      for (i = 0; i !== l; b.push(a[i++])) {}\n      return b\n    },\n    _emptyFunc = function () {},\n    _isArray = (function () { // works around issues in iframe environments where the Array global isn't shared, thus if the object originates in a different window/iframe, \"(obj instanceof Array)\" will evaluate false. We added some speed optimizations to avoid Object.prototype.toString.call() unless it's absolutely necessary because it's VERY slow (like 20x slower)\n      var toString = Object.prototype.toString,\n        array = toString.call([])\n      return function (obj) {\n        return obj != null && (obj instanceof Array || (typeof (obj) === 'object' && !!obj.push && toString.call(obj) === array))\n      }\n    }()),\n    a, i, p, _ticker, _tickerActive,\n    _defLookup = {},\n\n    /**\n\t\t\t * @constructor\n\t\t\t * Defines a GreenSock class, optionally with an array of dependencies that must be instantiated first and passed into the definition.\n\t\t\t * This allows users to load GreenSock JS files in any order even if they have interdependencies (like CSSPlugin extends TweenPlugin which is\n\t\t\t * inside TweenLite.js, but if CSSPlugin is loaded first, it should wait to run its code until TweenLite.js loads and instantiates TweenPlugin\n\t\t\t * and then pass TweenPlugin to CSSPlugin's definition). This is all done automatically and internally.\n\t\t\t *\n\t\t\t * Every definition will be added to a \"com.greensock\" global object (typically window, but if a window.GreenSockGlobals object is found,\n\t\t\t * it will go there as of v1.7). For example, TweenLite will be found at window.com.greensock.TweenLite and since it's a global class that should be available anywhere,\n\t\t\t * it is ALSO referenced at window.TweenLite. However some classes aren't considered global, like the base com.greensock.core.Animation class, so\n\t\t\t * those will only be at the package like window.com.greensock.core.Animation. Again, if you define a GreenSockGlobals object on the window, everything\n\t\t\t * gets tucked neatly inside there instead of on the window directly. This allows you to do advanced things like load multiple versions of GreenSock\n\t\t\t * files and put them into distinct objects (imagine a banner ad uses a newer version but the main site uses an older one). In that case, you could\n\t\t\t * sandbox the banner one like:\n\t\t\t *\n\t\t\t * <script>\n\t\t\t *     var gs = window.GreenSockGlobals = {}; //the newer version we're about to load could now be referenced in a \"gs\" object, like gs.TweenLite.to(...). Use whatever alias you want as long as it's unique, \"gs\" or \"banner\" or whatever.\n\t\t\t * </script>\n\t\t\t * <script src=\"js/greensock/v1.7/TweenMax.js\"></script>\n\t\t\t * <script>\n\t\t\t *     window.GreenSockGlobals = window._gsQueue = window._gsDefine = null; //reset it back to null (along with the special _gsQueue variable) so that the next load of TweenMax affects the window and we can reference things directly like TweenLite.to(...)\n\t\t\t * </script>\n\t\t\t * <script src=\"js/greensock/v1.6/TweenMax.js\"></script>\n\t\t\t * <script>\n\t\t\t *     gs.TweenLite.to(...); //would use v1.7\n\t\t\t *     TweenLite.to(...); //would use v1.6\n\t\t\t * </script>\n\t\t\t *\n\t\t\t * @param {!string} ns The namespace of the class definition, leaving off \"com.greensock.\" as that's assumed. For example, \"TweenLite\" or \"plugins.CSSPlugin\" or \"easing.Back\".\n\t\t\t * @param {!Array.<string>} dependencies An array of dependencies (described as their namespaces minus \"com.greensock.\" prefix). For example [\"TweenLite\",\"plugins.TweenPlugin\",\"core.Animation\"]\n\t\t\t * @param {!function():Object} func The function that should be called and passed the resolved dependencies which will return the actual class for this definition.\n\t\t\t * @param {boolean=} global If true, the class will be added to the global scope (typically window unless you define a window.GreenSockGlobals object)\n\t\t\t */\n    Definition = function (ns, dependencies, func, global) {\n      this.sc = (_defLookup[ns]) ? _defLookup[ns].sc : [] // subclasses\n      _defLookup[ns] = this\n      this.gsClass = null\n      this.func = func\n      var _classes = []\n      this.check = function (init) {\n        var i = dependencies.length,\n          missing = i,\n          cur, a, n, cl\n        while (--i > -1) {\n          if ((cur = _defLookup[dependencies[i]] || new Definition(dependencies[i], [])).gsClass) {\n            _classes[i] = cur.gsClass\n            missing--\n          } else if (init) {\n            cur.sc.push(this)\n          }\n        }\n        if (missing === 0 && func) {\n          a = ('com.greensock.' + ns).split('.')\n          n = a.pop()\n          cl = _namespace(a.join('.'))[n] = this.gsClass = func.apply(func, _classes)\n\n          // exports to multiple environments\n          if (global) {\n            _globals[n] = _exports[n] = cl // provides a way to avoid global namespace pollution. By default, the main classes like TweenLite, Power1, Strong, etc. are added to window unless a GreenSockGlobals is defined. So if you want to have things added to a custom object instead, just do something like window.GreenSockGlobals = {} before loading any GreenSock files. You can even set up an alias like window.GreenSockGlobals = windows.gs = {} so that you can access everything like gs.TweenLite. Also remember that ALL classes are added to the window.com.greensock object (in their respective packages, like com.greensock.easing.Power1, com.greensock.TweenLite, etc.)\n            if (typeof (module) !== 'undefined' && module.exports) { // node\n              if (ns === moduleName) {\n                module.exports = _exports[moduleName] = cl\n                for (i in _exports) {\n                  cl[i] = _exports[i]\n                }\n              } else if (_exports[moduleName]) {\n                _exports[moduleName][n] = cl\n              }\n            } else if (typeof (define) === 'function' && define.amd) { // AMD\n              define((window.GreenSockAMDPath ? window.GreenSockAMDPath + '/' : '') + ns.split('.').pop(), [], function () { return cl })\n            }\n          }\n          for (i = 0; i < this.sc.length; i++) {\n            this.sc[i].check()\n          }\n        }\n      }\n      this.check(true)\n    },\n\n    // used to create Definition instances (which basically registers a class that has dependencies).\n    _gsDefine = window._gsDefine = function (ns, dependencies, func, global) {\n      return new Definition(ns, dependencies, func, global)\n    },\n\n    // a quick way to create a class that doesn't have any dependencies. Returns the class, but first registers it in the GreenSock namespace so that other classes can grab it (other classes might be dependent on the class).\n    _class = gs._class = function (ns, func, global) {\n      func = func || function () {}\n      _gsDefine(ns, [], function () { return func }, global)\n      return func\n    }\n\n  _gsDefine.globals = _globals\n\n  /*\n * ----------------------------------------------------------------\n * Ease\n * ----------------------------------------------------------------\n */\n  var _baseParams = [0, 0, 1, 1],\n    Ease = _class('easing.Ease', function (func, extraParams, type, power) {\n      this._func = func\n      this._type = type || 0\n      this._power = power || 0\n      this._params = extraParams ? _baseParams.concat(extraParams) : _baseParams\n    }, true),\n    _easeMap = Ease.map = {},\n    _easeReg = Ease.register = function (ease, names, types, create) {\n      var na = names.split(','),\n        i = na.length,\n        ta = (types || 'easeIn,easeOut,easeInOut').split(','),\n        e, name, j, type\n      while (--i > -1) {\n        name = na[i]\n        e = create ? _class('easing.' + name, null, true) : gs.easing[name] || {}\n        j = ta.length\n        while (--j > -1) {\n          type = ta[j]\n          _easeMap[name + '.' + type] = _easeMap[type + name] = e[type] = ease.getRatio ? ease : ease[type] || new ease()\n        }\n      }\n    }\n\n  p = Ease.prototype\n  p._calcEnd = false\n  p.getRatio = function (p) {\n    if (this._func) {\n      this._params[0] = p\n      return this._func.apply(null, this._params)\n    }\n    var t = this._type,\n      pw = this._power,\n      r = (t === 1) ? 1 - p : (t === 2) ? p : (p < 0.5) ? p * 2 : (1 - p) * 2\n    if (pw === 1) {\n      r *= r\n    } else if (pw === 2) {\n      r *= r * r\n    } else if (pw === 3) {\n      r *= r * r * r\n    } else if (pw === 4) {\n      r *= r * r * r * r\n    }\n    return (t === 1) ? 1 - r : (t === 2) ? r : (p < 0.5) ? r / 2 : 1 - (r / 2)\n  }\n\n  // create all the standard eases like Linear, Quad, Cubic, Quart, Quint, Strong, Power0, Power1, Power2, Power3, and Power4 (each with easeIn, easeOut, and easeInOut)\n  a = ['Linear', 'Quad', 'Cubic', 'Quart', 'Quint,Strong']\n  i = a.length\n  while (--i > -1) {\n    p = a[i] + ',Power' + i\n    _easeReg(new Ease(null, null, 1, i), p, 'easeOut', true)\n    _easeReg(new Ease(null, null, 2, i), p, 'easeIn' + ((i === 0) ? ',easeNone' : ''))\n    _easeReg(new Ease(null, null, 3, i), p, 'easeInOut')\n  }\n  _easeMap.linear = gs.easing.Linear.easeIn\n  _easeMap.swing = gs.easing.Quad.easeInOut // for jQuery folks\n\n  /*\n * ----------------------------------------------------------------\n * EventDispatcher\n * ----------------------------------------------------------------\n */\n  var EventDispatcher = _class('events.EventDispatcher', function (target) {\n    this._listeners = {}\n    this._eventTarget = target || this\n  })\n  p = EventDispatcher.prototype\n\n  p.addEventListener = function (type, callback, scope, useParam, priority) {\n    priority = priority || 0\n    var list = this._listeners[type],\n      index = 0,\n      listener, i\n    if (this === _ticker && !_tickerActive) {\n      _ticker.wake()\n    }\n    if (list == null) {\n      this._listeners[type] = list = []\n    }\n    i = list.length\n    while (--i > -1) {\n      listener = list[i]\n      if (listener.c === callback && listener.s === scope) {\n        list.splice(i, 1)\n      } else if (index === 0 && listener.pr < priority) {\n        index = i + 1\n      }\n    }\n    list.splice(index, 0, {c: callback, s: scope, up: useParam, pr: priority})\n  }\n\n  p.removeEventListener = function (type, callback) {\n    var list = this._listeners[type], i\n    if (list) {\n      i = list.length\n      while (--i > -1) {\n        if (list[i].c === callback) {\n          list.splice(i, 1)\n          return\n        }\n      }\n    }\n  }\n\n  p.dispatchEvent = function (type) {\n    var list = this._listeners[type],\n      i, t, listener\n    if (list) {\n      i = list.length\n      if (i > 1) {\n        list = list.slice(0) // in case addEventListener() is called from within a listener/callback (otherwise the index could change, resulting in a skip)\n      }\n      t = this._eventTarget\n      while (--i > -1) {\n        listener = list[i]\n        if (listener) {\n          if (listener.up) {\n            listener.c.call(listener.s || t, {type: type, target: t})\n          } else {\n            listener.c.call(listener.s || t)\n          }\n        }\n      }\n    }\n  }\n\n  /*\n * ----------------------------------------------------------------\n * Ticker\n * ----------------------------------------------------------------\n */\n \t\tvar _reqAnimFrame = window.requestAnimationFrame,\n    _cancelAnimFrame = window.cancelAnimationFrame,\n    _getTime = Date.now || function () { return new Date().getTime() },\n    _lastUpdate = _getTime()\n\n  // now try to determine the requestAnimationFrame and cancelAnimationFrame functions and if none are found, we'll use a setTimeout()/clearTimeout() polyfill.\n  a = ['ms', 'moz', 'webkit', 'o']\n  i = a.length\n  while (--i > -1 && !_reqAnimFrame) {\n    _reqAnimFrame = window[a[i] + 'RequestAnimationFrame']\n    _cancelAnimFrame = window[a[i] + 'CancelAnimationFrame'] || window[a[i] + 'CancelRequestAnimationFrame']\n  }\n\n  _class('Ticker', function (fps, useRAF) {\n    var _self = this,\n      _startTime = _getTime(),\n      _useRAF = (useRAF !== false && _reqAnimFrame) ? 'auto' : false,\n      _lagThreshold = 500,\n      _adjustedLag = 33,\n      _tickWord = 'tick', // helps reduce gc burden\n      _fps, _req, _id, _gap, _nextTime,\n      _tick = function (manual) {\n        var elapsed = _getTime() - _lastUpdate,\n          overlap, dispatch\n        if (elapsed > _lagThreshold) {\n          _startTime += elapsed - _adjustedLag\n        }\n        _lastUpdate += elapsed\n        _self.time = (_lastUpdate - _startTime) / 1000\n        overlap = _self.time - _nextTime\n        if (!_fps || overlap > 0 || manual === true) {\n          _self.frame++\n          _nextTime += overlap + (overlap >= _gap ? 0.004 : _gap - overlap)\n          dispatch = true\n        }\n        if (manual !== true) { // make sure the request is made before we dispatch the \"tick\" event so that timing is maintained. Otherwise, if processing the \"tick\" requires a bunch of time (like 15ms) and we're using a setTimeout() that's based on 16.7ms, it'd technically take 31.7ms between frames otherwise.\n          _id = _req(_tick)\n        }\n        if (dispatch) {\n          _self.dispatchEvent(_tickWord)\n        }\n      }\n\n    EventDispatcher.call(_self)\n    _self.time = _self.frame = 0\n    _self.tick = function () {\n      _tick(true)\n    }\n\n    _self.lagSmoothing = function (threshold, adjustedLag) {\n      _lagThreshold = threshold || (1 / _tinyNum) // zero should be interpreted as basically unlimited\n      _adjustedLag = Math.min(adjustedLag, _lagThreshold, 0)\n    }\n\n    _self.sleep = function () {\n      if (_id == null) {\n        return\n      }\n      if (!_useRAF || !_cancelAnimFrame) {\n        clearTimeout(_id)\n      } else {\n        _cancelAnimFrame(_id)\n      }\n      _req = _emptyFunc\n      _id = null\n      if (_self === _ticker) {\n        _tickerActive = false\n      }\n    }\n\n    _self.wake = function (seamless) {\n      if (_id !== null) {\n        _self.sleep()\n      } else if (seamless) {\n        _startTime += -_lastUpdate + (_lastUpdate = _getTime())\n      } else if (_self.frame > 10) { // don't trigger lagSmoothing if we're just waking up, and make sure that at least 10 frames have elapsed because of the iOS bug that we work around below with the 1.5-second setTimout().\n        _lastUpdate = _getTime() - _lagThreshold + 5\n      }\n      _req = (_fps === 0) ? _emptyFunc : (!_useRAF || !_reqAnimFrame) ? function (f) { return setTimeout(f, ((_nextTime - _self.time) * 1000 + 1) | 0) } : _reqAnimFrame\n      if (_self === _ticker) {\n        _tickerActive = true\n      }\n      _tick(2)\n    }\n\n    _self.fps = function (value) {\n      if (!arguments.length) {\n        return _fps\n      }\n      _fps = value\n      _gap = 1 / (_fps || 60)\n      _nextTime = this.time + _gap\n      _self.wake()\n    }\n\n    _self.useRAF = function (value) {\n      if (!arguments.length) {\n        return _useRAF\n      }\n      _self.sleep()\n      _useRAF = value\n      _self.fps(_fps)\n    }\n    _self.fps(fps)\n\n    // a bug in iOS 6 Safari occasionally prevents the requestAnimationFrame from working initially, so we use a 1.5-second timeout that automatically falls back to setTimeout() if it senses this condition.\n    setTimeout(function () {\n      if (_useRAF === 'auto' && _self.frame < 5 && _doc.visibilityState !== 'hidden') {\n        _self.useRAF(false)\n      }\n    }, 1500)\n  })\n\n  p = gs.Ticker.prototype = new gs.events.EventDispatcher()\n  p.constructor = gs.Ticker\n\n  /*\n * ----------------------------------------------------------------\n * Animation\n * ----------------------------------------------------------------\n */\n  var Animation = _class('core.Animation', function (duration, vars) {\n    this.vars = vars = vars || {}\n    this._duration = this._totalDuration = duration || 0\n    this._delay = Number(vars.delay) || 0\n    this._timeScale = 1\n    this._active = (vars.immediateRender === true)\n    this.data = vars.data\n    this._reversed = (vars.reversed === true)\n\n    if (!_rootTimeline) {\n      return\n    }\n    if (!_tickerActive) { // some browsers (like iOS 6 Safari) shut down JavaScript execution when the tab is disabled and they [occasionally] neglect to start up requestAnimationFrame again when returning - this code ensures that the engine starts up again properly.\n      _ticker.wake()\n    }\n\n    var tl = this.vars.useFrames ? _rootFramesTimeline : _rootTimeline\n    tl.add(this, tl._time)\n\n    if (this.vars.paused) {\n      this.paused(true)\n    }\n  })\n\n  _ticker = Animation.ticker = new gs.Ticker()\n  p = Animation.prototype\n  p._dirty = p._gc = p._initted = p._paused = false\n  p._totalTime = p._time = 0\n  p._rawPrevTime = -1\n  p._next = p._last = p._onUpdate = p._timeline = p.timeline = null\n  p._paused = false\n\n  // some browsers (like iOS) occasionally drop the requestAnimationFrame event when the user switches to a different tab and then comes back again, so we use a 2-second setTimeout() to sense if/when that condition occurs and then wake() the ticker.\n  var _checkTimeout = function () {\n    if (_tickerActive && _getTime() - _lastUpdate > 2000 && _doc.visibilityState !== 'hidden') {\n      _ticker.wake()\n    }\n    var t = setTimeout(_checkTimeout, 2000)\n    if (t.unref) {\n      // allows a node process to exit even if the timeout’s callback hasn't been invoked. Without it, the node process could hang as this function is called every two seconds.\n      t.unref()\n    }\n  }\n  _checkTimeout()\n\n  p.play = function (from, suppressEvents) {\n    if (from != null) {\n      this.seek(from, suppressEvents)\n    }\n    return this.reversed(false).paused(false)\n  }\n\n  p.pause = function (atTime, suppressEvents) {\n    if (atTime != null) {\n      this.seek(atTime, suppressEvents)\n    }\n    return this.paused(true)\n  }\n\n  p.resume = function (from, suppressEvents) {\n    if (from != null) {\n      this.seek(from, suppressEvents)\n    }\n    return this.paused(false)\n  }\n\n  p.seek = function (time, suppressEvents) {\n    return this.totalTime(Number(time), suppressEvents !== false)\n  }\n\n  p.restart = function (includeDelay, suppressEvents) {\n    return this.reversed(false).paused(false).totalTime(includeDelay ? -this._delay : 0, (suppressEvents !== false), true)\n  }\n\n  p.reverse = function (from, suppressEvents) {\n    if (from != null) {\n      this.seek((from || this.totalDuration()), suppressEvents)\n    }\n    return this.reversed(true).paused(false)\n  }\n\n  p.render = function (time, suppressEvents, force) {\n    // stub - we override this method in subclasses.\n  }\n\n  p.invalidate = function () {\n    this._time = this._totalTime = 0\n    this._initted = this._gc = false\n    this._rawPrevTime = -1\n    if (this._gc || !this.timeline) {\n      this._enabled(true)\n    }\n    return this\n  }\n\n  p.isActive = function () {\n    var tl = this._timeline, // the 2 root timelines won't have a _timeline; they're always active.\n      startTime = this._startTime,\n      rawTime\n    return (!tl || (!this._gc && !this._paused && tl.isActive() && (rawTime = tl.rawTime(true)) >= startTime && rawTime < startTime + this.totalDuration() / this._timeScale - 0.0000001))\n  }\n\n  p._enabled = function (enabled, ignoreTimeline) {\n    if (!_tickerActive) {\n      _ticker.wake()\n    }\n    this._gc = !enabled\n    this._active = this.isActive()\n    if (ignoreTimeline !== true) {\n      if (enabled && !this.timeline) {\n        this._timeline.add(this, this._startTime - this._delay)\n      } else if (!enabled && this.timeline) {\n        this._timeline._remove(this, true)\n      }\n    }\n    return false\n  }\n\n  p._kill = function (vars, target) {\n    return this._enabled(false, false)\n  }\n\n  p.kill = function (vars, target) {\n    this._kill(vars, target)\n    return this\n  }\n\n  p._uncache = function (includeSelf) {\n    var tween = includeSelf ? this : this.timeline\n    while (tween) {\n      tween._dirty = true\n      tween = tween.timeline\n    }\n    return this\n  }\n\n  p._swapSelfInParams = function (params) {\n    var i = params.length,\n      copy = params.concat()\n    while (--i > -1) {\n      if (params[i] === '{self}') {\n        copy[i] = this\n      }\n    }\n    return copy\n  }\n\n  p._callback = function (type) {\n    var v = this.vars,\n      callback = v[type],\n      params = v[type + 'Params'],\n      scope = v[type + 'Scope'] || v.callbackScope || this,\n      l = params ? params.length : 0\n    switch (l) { // speed optimization; call() is faster than apply() so use it when there are only a few parameters (which is by far most common). Previously we simply did var v = this.vars; v[type].apply(v[type + \"Scope\"] || v.callbackScope || this, v[type + \"Params\"] || _blankArray);\n      case 0: callback.call(scope); break\n      case 1: callback.call(scope, params[0]); break\n      case 2: callback.call(scope, params[0], params[1]); break\n      default: callback.apply(scope, params)\n    }\n  }\n\n  // ----Animation getters/setters --------------------------------------------------------\n\n  p.eventCallback = function (type, callback, params, scope) {\n    if ((type || '').substr(0, 2) === 'on') {\n      var v = this.vars\n      if (arguments.length === 1) {\n        return v[type]\n      }\n      if (callback == null) {\n        delete v[type]\n      } else {\n        v[type] = callback\n        v[type + 'Params'] = (_isArray(params) && params.join('').indexOf('{self}') !== -1) ? this._swapSelfInParams(params) : params\n        v[type + 'Scope'] = scope\n      }\n      if (type === 'onUpdate') {\n        this._onUpdate = callback\n      }\n    }\n    return this\n  }\n\n  p.delay = function (value) {\n    if (!arguments.length) {\n      return this._delay\n    }\n    if (this._timeline.smoothChildTiming) {\n      this.startTime(this._startTime + value - this._delay)\n    }\n    this._delay = value\n    return this\n  }\n\n  p.duration = function (value) {\n    if (!arguments.length) {\n      this._dirty = false\n      return this._duration\n    }\n    this._duration = this._totalDuration = value\n    this._uncache(true) // true in case it's a TweenMax or TimelineMax that has a repeat - we'll need to refresh the totalDuration.\n    if (this._timeline.smoothChildTiming) {\n      if (this._time > 0) {\n        if (this._time < this._duration) {\n          if (value !== 0) {\n            this.totalTime(this._totalTime * (value / this._duration), true)\n          }\n        }\n      }\n    }\n    return this\n  }\n\n  p.totalDuration = function (value) {\n    this._dirty = false\n    return (!arguments.length) ? this._totalDuration : this.duration(value)\n  }\n\n  p.time = function (value, suppressEvents) {\n    if (!arguments.length) {\n      return this._time\n    }\n    if (this._dirty) {\n      this.totalDuration()\n    }\n    return this.totalTime((value > this._duration) ? this._duration : value, suppressEvents)\n  }\n\n  p.totalTime = function (time, suppressEvents, uncapped) {\n    if (!_tickerActive) {\n      _ticker.wake()\n    }\n    if (!arguments.length) {\n      return this._totalTime\n    }\n    if (this._timeline) {\n      if (time < 0 && !uncapped) {\n        time += this.totalDuration()\n      }\n      if (this._timeline.smoothChildTiming) {\n        if (this._dirty) {\n          this.totalDuration()\n        }\n        var totalDuration = this._totalDuration,\n          tl = this._timeline\n        if (time > totalDuration && !uncapped) {\n          time = totalDuration\n        }\n        this._startTime = (this._paused ? this._pauseTime : tl._time) - ((!this._reversed ? time : totalDuration - time) / this._timeScale)\n        if (!tl._dirty) { // for performance improvement. If the parent's cache is already dirty, it already took care of marking the ancestors as dirty too, so skip the function call here.\n          this._uncache(false)\n        }\n        // in case any of the ancestor timelines had completed but should now be enabled, we should reset their totalTime() which will also ensure that they're lined up properly and enabled. Skip for animations that are on the root (wasteful). Example: a TimelineLite.exportRoot() is performed when there's a paused tween on the root, the export will not complete until that tween is unpaused, but imagine a child gets restarted later, after all [unpaused] tweens have completed. The startTime of that child would get pushed out, but one of the ancestors may have completed.\n        if (tl._timeline) {\n          while (tl._timeline) {\n            if (tl._timeline._time !== (tl._startTime + tl._totalTime) / tl._timeScale) {\n              tl.totalTime(tl._totalTime, true)\n            }\n            tl = tl._timeline\n          }\n        }\n      }\n      if (this._gc) {\n        this._enabled(true, false)\n      }\n      if (this._totalTime !== time || this._duration === 0) {\n        if (_lazyTweens.length) {\n          _lazyRender()\n        }\n        this.render(time, suppressEvents, false)\n        if (_lazyTweens.length) { // in case rendering caused any tweens to lazy-init, we should render them because typically when someone calls seek() or time() or progress(), they expect an immediate render.\n          _lazyRender()\n        }\n      }\n    }\n    return this\n  }\n\n  p.progress = p.totalProgress = function (value, suppressEvents) {\n    var duration = this.duration()\n    return (!arguments.length) ? (duration ? this._time / duration : this.ratio) : this.totalTime(duration * value, suppressEvents)\n  }\n\n  p.startTime = function (value) {\n    if (!arguments.length) {\n      return this._startTime\n    }\n    if (value !== this._startTime) {\n      this._startTime = value\n      if (this.timeline) {\n        if (this.timeline._sortChildren) {\n          this.timeline.add(this, value - this._delay) // ensures that any necessary re-sequencing of Animations in the timeline occurs to make sure the rendering order is correct.\n        }\n      }\n    }\n    return this\n  }\n\n  p.endTime = function (includeRepeats) {\n    return this._startTime + ((includeRepeats != false) ? this.totalDuration() : this.duration()) / this._timeScale\n  }\n\n  p.timeScale = function (value) {\n    if (!arguments.length) {\n      return this._timeScale\n    }\n    value = value || _tinyNum // can't allow zero because it'll throw the math off\n    if (this._timeline && this._timeline.smoothChildTiming) {\n      var pauseTime = this._pauseTime,\n        t = (pauseTime || pauseTime === 0) ? pauseTime : this._timeline.totalTime()\n      this._startTime = t - ((t - this._startTime) * this._timeScale / value)\n    }\n    this._timeScale = value\n    return this._uncache(false)\n  }\n\n  p.reversed = function (value) {\n    if (!arguments.length) {\n      return this._reversed\n    }\n    if (value != this._reversed) {\n      this._reversed = value\n      this.totalTime(((this._timeline && !this._timeline.smoothChildTiming) ? this.totalDuration() - this._totalTime : this._totalTime), true)\n    }\n    return this\n  }\n\n  p.paused = function (value) {\n    if (!arguments.length) {\n      return this._paused\n    }\n    var tl = this._timeline,\n      raw, elapsed\n    if (value != this._paused) {\n      if (tl) {\n        if (!_tickerActive && !value) {\n          _ticker.wake()\n        }\n        raw = tl.rawTime()\n        elapsed = raw - this._pauseTime\n        if (!value && tl.smoothChildTiming) {\n          this._startTime += elapsed\n          this._uncache(false)\n        }\n        this._pauseTime = value ? raw : null\n        this._paused = value\n        this._active = this.isActive()\n        if (!value && elapsed !== 0 && this._initted && this.duration()) {\n          raw = tl.smoothChildTiming ? this._totalTime : (raw - this._startTime) / this._timeScale\n          this.render(raw, (raw === this._totalTime), true) // in case the target's properties changed via some other tween or manual update by the user, we should force a render.\n        }\n      }\n    }\n    if (this._gc && !value) {\n      this._enabled(true, false)\n    }\n    return this\n  }\n\n  /*\n * ----------------------------------------------------------------\n * SimpleTimeline\n * ----------------------------------------------------------------\n */\n  var SimpleTimeline = _class('core.SimpleTimeline', function (vars) {\n    Animation.call(this, 0, vars)\n    this.autoRemoveChildren = this.smoothChildTiming = true\n  })\n\n  p = SimpleTimeline.prototype = new Animation()\n  p.constructor = SimpleTimeline\n  p.kill()._gc = false\n  p._first = p._last = p._recent = null\n  p._sortChildren = false\n\n  p.add = p.insert = function (child, position, align, stagger) {\n    var prevTween, st\n    child._startTime = Number(position || 0) + child._delay\n    if (child._paused) {\n      if (this !== child._timeline) { // we only adjust the _pauseTime if it wasn't in this timeline already. Remember, sometimes a tween will be inserted again into the same timeline when its startTime is changed so that the tweens in the TimelineLite/Max are re-ordered properly in the linked list (so everything renders in the proper order).\n        child._pauseTime = child._startTime + ((this.rawTime() - child._startTime) / child._timeScale)\n      }\n    }\n    if (child.timeline) {\n      child.timeline._remove(child, true) // removes from existing timeline so that it can be properly added to this one.\n    }\n    child.timeline = child._timeline = this\n    if (child._gc) {\n      child._enabled(true, true)\n    }\n    prevTween = this._last\n    if (this._sortChildren) {\n      st = child._startTime\n      while (prevTween && prevTween._startTime > st) {\n        prevTween = prevTween._prev\n      }\n    }\n    if (prevTween) {\n      child._next = prevTween._next\n      prevTween._next = child\n    } else {\n      child._next = this._first\n      this._first = child\n    }\n    if (child._next) {\n      child._next._prev = child\n    } else {\n      this._last = child\n    }\n    child._prev = prevTween\n    this._recent = child\n    if (this._timeline) {\n      this._uncache(true)\n    }\n    return this\n  }\n\n  p._remove = function (tween, skipDisable) {\n    if (tween.timeline === this) {\n      if (!skipDisable) {\n        tween._enabled(false, true)\n      }\n\n      if (tween._prev) {\n        tween._prev._next = tween._next\n      } else if (this._first === tween) {\n        this._first = tween._next\n      }\n      if (tween._next) {\n        tween._next._prev = tween._prev\n      } else if (this._last === tween) {\n        this._last = tween._prev\n      }\n      tween._next = tween._prev = tween.timeline = null\n      if (tween === this._recent) {\n        this._recent = this._last\n      }\n\n      if (this._timeline) {\n        this._uncache(true)\n      }\n    }\n    return this\n  }\n\n  p.render = function (time, suppressEvents, force) {\n    var tween = this._first,\n      next\n    this._totalTime = this._time = this._rawPrevTime = time\n    while (tween) {\n      next = tween._next // record it here because the value could change after rendering...\n      if (tween._active || (time >= tween._startTime && !tween._paused && !tween._gc)) {\n        if (!tween._reversed) {\n          tween.render((time - tween._startTime) * tween._timeScale, suppressEvents, force)\n        } else {\n          tween.render(((!tween._dirty) ? tween._totalDuration : tween.totalDuration()) - ((time - tween._startTime) * tween._timeScale), suppressEvents, force)\n        }\n      }\n      tween = next\n    }\n  }\n\n  p.rawTime = function () {\n    if (!_tickerActive) {\n      _ticker.wake()\n    }\n    return this._totalTime\n  }\n\n  /*\n * ----------------------------------------------------------------\n * TweenLite\n * ----------------------------------------------------------------\n */\n  var TweenLite = _class('TweenLite', function (target, duration, vars) {\n      Animation.call(this, duration, vars)\n      this.render = TweenLite.prototype.render // speed optimization (avoid prototype lookup on this \"hot\" method)\n\n      if (target == null) {\n        throw 'Cannot tween a null target.'\n      }\n\n      this.target = target = (typeof (target) !== 'string') ? target : TweenLite.selector(target) || target\n\n      var isSelector = (target.jquery || (target.length && target !== window && target[0] && (target[0] === window || (target[0].nodeType && target[0].style && !target.nodeType)))),\n        overwrite = this.vars.overwrite,\n        i, targ, targets\n\n      this._overwrite = overwrite = (overwrite == null) ? _overwriteLookup[TweenLite.defaultOverwrite] : (typeof (overwrite) === 'number') ? overwrite >> 0 : _overwriteLookup[overwrite]\n\n      if ((isSelector || target instanceof Array || (target.push && _isArray(target))) && typeof (target[0]) !== 'number') {\n        this._targets = targets = _slice(target) // don't use Array.prototype.slice.call(target, 0) because that doesn't work in IE8 with a NodeList that's returned by querySelectorAll()\n        this._propLookup = []\n        this._siblings = []\n        for (i = 0; i < targets.length; i++) {\n          targ = targets[i]\n          if (!targ) {\n            targets.splice(i--, 1)\n            continue\n          } else if (typeof (targ) === 'string') {\n            targ = targets[i--] = TweenLite.selector(targ) // in case it's an array of strings\n            if (typeof (targ) === 'string') {\n              targets.splice(i + 1, 1) // to avoid an endless loop (can't imagine why the selector would return a string, but just in case)\n            }\n            continue\n          } else if (targ.length && targ !== window && targ[0] && (targ[0] === window || (targ[0].nodeType && targ[0].style && !targ.nodeType))) { // in case the user is passing in an array of selector objects (like jQuery objects), we need to check one more level and pull things out if necessary. Also note that <select> elements pass all the criteria regarding length and the first child having style, so we must also check to ensure the target isn't an HTML node itself.\n            targets.splice(i--, 1)\n            this._targets = targets = targets.concat(_slice(targ))\n            continue\n          }\n          this._siblings[i] = _register(targ, this, false)\n          if (overwrite === 1) {\n            if (this._siblings[i].length > 1) {\n              _applyOverwrite(targ, this, null, 1, this._siblings[i])\n            }\n          }\n        }\n      } else {\n        this._propLookup = {}\n        this._siblings = _register(target, this, false)\n        if (overwrite === 1) {\n          if (this._siblings.length > 1) {\n            _applyOverwrite(target, this, null, 1, this._siblings)\n          }\n        }\n      }\n      if (this.vars.immediateRender || (duration === 0 && this._delay === 0 && this.vars.immediateRender !== false)) {\n        this._time = -_tinyNum // forces a render without having to set the render() \"force\" parameter to true because we want to allow lazying by default (using the \"force\" parameter always forces an immediate full render)\n        this.render(Math.min(0, -this._delay)) // in case delay is negative\n      }\n    }, true),\n    _isSelector = function (v) {\n      return (v && v.length && v !== window && v[0] && (v[0] === window || (v[0].nodeType && v[0].style && !v.nodeType))) // we cannot check \"nodeType\" if the target is window from within an iframe, otherwise it will trigger a security error in some browsers like Firefox.\n    },\n    _autoCSS = function (vars, target) {\n      var css = {},\n        p\n      for (p in vars) {\n        if (!_reservedProps[p] && (!(p in target) || p === 'transform' || p === 'x' || p === 'y' || p === 'width' || p === 'height' || p === 'className' || p === 'border') && (!_plugins[p] || (_plugins[p] && _plugins[p]._autoCSS))) { // note: <img> elements contain read-only \"x\" and \"y\" properties. We should also prioritize editing css width/height rather than the element's properties.\n          css[p] = vars[p]\n          delete vars[p]\n        }\n      }\n      vars.css = css\n    }\n\n  p = TweenLite.prototype = new Animation()\n  p.constructor = TweenLite\n  p.kill()._gc = false\n\n  // ----TweenLite defaults, overwrite management, and root updates ----------------------------------------------------\n\n  p.ratio = 0\n  p._firstPT = p._targets = p._overwrittenProps = p._startAt = null\n  p._notifyPluginsOfEnabled = p._lazy = false\n\n  TweenLite.version = '1.20.2'\n  TweenLite.defaultEase = p._ease = new Ease(null, null, 1, 1)\n  TweenLite.defaultOverwrite = 'auto'\n  TweenLite.ticker = _ticker\n  TweenLite.autoSleep = 120\n  TweenLite.lagSmoothing = function (threshold, adjustedLag) {\n    _ticker.lagSmoothing(threshold, adjustedLag)\n  }\n\n  TweenLite.selector = window.$ || window.jQuery || function (e) {\n    var selector = window.$ || window.jQuery\n    if (selector) {\n      TweenLite.selector = selector\n      return selector(e)\n    }\n    return (typeof (_doc) === 'undefined') ? e : (_doc.querySelectorAll ? _doc.querySelectorAll(e) : _doc.getElementById((e.charAt(0) === '#') ? e.substr(1) : e))\n  }\n\n  var _lazyTweens = [],\n    _lazyLookup = {},\n    _numbersExp = /(?:(-|-=|\\+=)?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)[0-9]/ig,\n    _relExp = /[\\+-]=-?[\\.\\d]/,\n    // _nonNumbersExp = /(?:([\\-+](?!(\\d|=)))|[^\\d\\-+=e]|(e(?![\\-+][\\d])))+/ig,\n    _setRatio = function (v) {\n      var pt = this._firstPT,\n        min = 0.000001,\n        val\n      while (pt) {\n        val = !pt.blob ? pt.c * v + pt.s : (v === 1 && this.end) ? this.end : v ? this.join('') : this.start\n        if (pt.m) {\n          val = pt.m(val, this._target || pt.t)\n        } else if (val < min) {\n          if (val > -min && !pt.blob) { // prevents issues with converting very small numbers to strings in the browser\n            val = 0\n          }\n        }\n        if (!pt.f) {\n          pt.t[pt.p] = val\n        } else if (pt.fp) {\n          pt.t[pt.p](pt.fp, val)\n        } else {\n          pt.t[pt.p](val)\n        }\n        pt = pt._next\n      }\n    },\n    // compares two strings (start/end), finds the numbers that are different and spits back an array representing the whole value but with the changing values isolated as elements. For example, \"rgb(0,0,0)\" and \"rgb(100,50,0)\" would become [\"rgb(\", 0, \",\", 50, \",0)\"]. Notice it merges the parts that are identical (performance optimization). The array also has a linked list of PropTweens attached starting with _firstPT that contain the tweening data (t, p, s, c, f, etc.). It also stores the starting value as a \"start\" property so that we can revert to it if/when necessary, like when a tween rewinds fully. If the quantity of numbers differs between the start and end, it will always prioritize the end value(s). The pt parameter is optional - it's for a PropTween that will be appended to the end of the linked list and is typically for actually setting the value after all of the elements have been updated (with array.join(\"\")).\n    _blobDif = function (start, end, filter, pt) {\n      var a = [],\n        charIndex = 0,\n        s = '',\n        color = 0,\n        startNums, endNums, num, i, l, nonNumbers, currentNum\n      a.start = start\n      a.end = end\n      start = a[0] = start + '' // ensure values are strings\n      end = a[1] = end + ''\n      if (filter) {\n        filter(a) // pass an array with the starting and ending values and let the filter do whatever it needs to the values.\n        start = a[0]\n        end = a[1]\n      }\n      a.length = 0\n      startNums = start.match(_numbersExp) || []\n      endNums = end.match(_numbersExp) || []\n      if (pt) {\n        pt._next = null\n        pt.blob = 1\n        a._firstPT = a._applyPT = pt // apply last in the linked list (which means inserting it first)\n      }\n      l = endNums.length\n      for (i = 0; i < l; i++) {\n        currentNum = endNums[i]\n        nonNumbers = end.substr(charIndex, end.indexOf(currentNum, charIndex) - charIndex)\n        s += (nonNumbers || !i) ? nonNumbers : ',' // note: SVG spec allows omission of comma/space when a negative sign is wedged between two numbers, like 2.5-5.3 instead of 2.5,-5.3 but when tweening, the negative value may switch to positive, so we insert the comma just in case.\n        charIndex += nonNumbers.length\n        if (color) { // sense rgba() values and round them.\n          color = (color + 1) % 5\n        } else if (nonNumbers.substr(-5) === 'rgba(') {\n          color = 1\n        }\n        if (currentNum === startNums[i] || startNums.length <= i) {\n          s += currentNum\n        } else {\n          if (s) {\n            a.push(s)\n            s = ''\n          }\n          num = parseFloat(startNums[i])\n          a.push(num)\n          a._firstPT = {_next: a._firstPT, t: a, p: a.length - 1, s: num, c: ((currentNum.charAt(1) === '=') ? parseInt(currentNum.charAt(0) + '1', 10) * parseFloat(currentNum.substr(2)) : (parseFloat(currentNum) - num)) || 0, f: 0, m: (color && color < 4) ? Math.round : 0}\n          // note: we don't set _prev because we'll never need to remove individual PropTweens from this list.\n        }\n        charIndex += currentNum.length\n      }\n      s += end.substr(charIndex)\n      if (s) {\n        a.push(s)\n      }\n      a.setRatio = _setRatio\n      if (_relExp.test(end)) { // if the end string contains relative values, delete it so that on the final render (in _setRatio()), we don't actually set it to the string with += or -= characters (forces it to use the calculated value).\n        a.end = 0\n      }\n      return a\n    },\n    // note: \"funcParam\" is only necessary for function-based getters/setters that require an extra parameter like getAttribute(\"width\") and setAttribute(\"width\", value). In this example, funcParam would be \"width\". Used by AttrPlugin for example.\n    _addPropTween = function (target, prop, start, end, overwriteProp, mod, funcParam, stringFilter, index) {\n      if (typeof (end) === 'function') {\n        end = end(index || 0, target)\n      }\n      var type = typeof (target[prop]),\n        getterName = (type !== 'function') ? '' : ((prop.indexOf('set') || typeof (target['get' + prop.substr(3)]) !== 'function') ? prop : 'get' + prop.substr(3)),\n        s = (start !== 'get') ? start : !getterName ? target[prop] : funcParam ? target[getterName](funcParam) : target[getterName](),\n        isRelative = (typeof (end) === 'string' && end.charAt(1) === '='),\n        pt = {t: target, p: prop, s: s, f: (type === 'function'), pg: 0, n: overwriteProp || prop, m: (!mod ? 0 : (typeof (mod) === 'function') ? mod : Math.round), pr: 0, c: isRelative ? parseInt(end.charAt(0) + '1', 10) * parseFloat(end.substr(2)) : (parseFloat(end) - s) || 0},\n        blob\n\n      if (typeof (s) !== 'number' || (typeof (end) !== 'number' && !isRelative)) {\n        if (funcParam || isNaN(s) || (!isRelative && isNaN(end)) || typeof (s) === 'boolean' || typeof (end) === 'boolean') {\n          // a blob (string that has multiple numbers in it)\n          pt.fp = funcParam\n          blob = _blobDif(s, (isRelative ? parseFloat(pt.s) + pt.c : end), stringFilter || TweenLite.defaultStringFilter, pt)\n          pt = {t: blob, p: 'setRatio', s: 0, c: 1, f: 2, pg: 0, n: overwriteProp || prop, pr: 0, m: 0} // \"2\" indicates it's a Blob property tween. Needed for RoundPropsPlugin for example.\n        } else {\n          pt.s = parseFloat(s)\n          if (!isRelative) {\n            pt.c = (parseFloat(end) - pt.s) || 0\n          }\n        }\n      }\n      if (pt.c) { // only add it to the linked list if there's a change.\n        if ((pt._next = this._firstPT)) {\n          pt._next._prev = pt\n        }\n        this._firstPT = pt\n        return pt\n      }\n    },\n    _internals = TweenLite._internals = {isArray: _isArray, isSelector: _isSelector, lazyTweens: _lazyTweens, blobDif: _blobDif}, // gives us a way to expose certain private values to other GreenSock classes without contaminating tha main TweenLite object.\n    _plugins = TweenLite._plugins = {},\n    _tweenLookup = _internals.tweenLookup = {},\n    _tweenLookupNum = 0,\n    _reservedProps = _internals.reservedProps = {ease: 1, delay: 1, overwrite: 1, onComplete: 1, onCompleteParams: 1, onCompleteScope: 1, useFrames: 1, runBackwards: 1, startAt: 1, onUpdate: 1, onUpdateParams: 1, onUpdateScope: 1, onStart: 1, onStartParams: 1, onStartScope: 1, onReverseComplete: 1, onReverseCompleteParams: 1, onReverseCompleteScope: 1, onRepeat: 1, onRepeatParams: 1, onRepeatScope: 1, easeParams: 1, yoyo: 1, immediateRender: 1, repeat: 1, repeatDelay: 1, data: 1, paused: 1, reversed: 1, autoCSS: 1, lazy: 1, onOverwrite: 1, callbackScope: 1, stringFilter: 1, id: 1, yoyoEase: 1},\n    _overwriteLookup = {none: 0, all: 1, auto: 2, concurrent: 3, allOnStart: 4, preexisting: 5, 'true': 1, 'false': 0},\n    _rootFramesTimeline = Animation._rootFramesTimeline = new SimpleTimeline(),\n    _rootTimeline = Animation._rootTimeline = new SimpleTimeline(),\n    _nextGCFrame = 30,\n    _lazyRender = _internals.lazyRender = function () {\n      var i = _lazyTweens.length,\n        tween\n      _lazyLookup = {}\n      while (--i > -1) {\n        tween = _lazyTweens[i]\n        if (tween && tween._lazy !== false) {\n          tween.render(tween._lazy[0], tween._lazy[1], true)\n          tween._lazy = false\n        }\n      }\n      _lazyTweens.length = 0\n    }\n\n  _rootTimeline._startTime = _ticker.time\n  _rootFramesTimeline._startTime = _ticker.frame\n  _rootTimeline._active = _rootFramesTimeline._active = true\n  setTimeout(_lazyRender, 1) // on some mobile devices, there isn't a \"tick\" before code runs which means any lazy renders wouldn't run before the next official \"tick\".\n\n  Animation._updateRoot = TweenLite.render = function () {\n    var i, a, p\n    if (_lazyTweens.length) { // if code is run outside of the requestAnimationFrame loop, there may be tweens queued AFTER the engine refreshed, so we need to ensure any pending renders occur before we refresh again.\n      _lazyRender()\n    }\n    _rootTimeline.render((_ticker.time - _rootTimeline._startTime) * _rootTimeline._timeScale, false, false)\n    _rootFramesTimeline.render((_ticker.frame - _rootFramesTimeline._startTime) * _rootFramesTimeline._timeScale, false, false)\n    if (_lazyTweens.length) {\n      _lazyRender()\n    }\n    if (_ticker.frame >= _nextGCFrame) { // dump garbage every 120 frames or whatever the user sets TweenLite.autoSleep to\n      _nextGCFrame = _ticker.frame + (parseInt(TweenLite.autoSleep, 10) || 120)\n      for (p in _tweenLookup) {\n        a = _tweenLookup[p].tweens\n        i = a.length\n        while (--i > -1) {\n          if (a[i]._gc) {\n            a.splice(i, 1)\n          }\n        }\n        if (a.length === 0) {\n          delete _tweenLookup[p]\n        }\n      }\n      // if there are no more tweens in the root timelines, or if they're all paused, make the _timer sleep to reduce load on the CPU slightly\n      p = _rootTimeline._first\n      if (!p || p._paused) {\n        if (TweenLite.autoSleep && !_rootFramesTimeline._first && _ticker._listeners.tick.length === 1) {\n          while (p && p._paused) {\n            p = p._next\n          }\n          if (!p) {\n            _ticker.sleep()\n          }\n        }\n      }\n    }\n  }\n\n  _ticker.addEventListener('tick', Animation._updateRoot)\n\n  var _register = function (target, tween, scrub) {\n      var id = target._gsTweenID, a, i\n      if (!_tweenLookup[id || (target._gsTweenID = id = 't' + (_tweenLookupNum++))]) {\n        _tweenLookup[id] = {target: target, tweens: []}\n      }\n      if (tween) {\n        a = _tweenLookup[id].tweens\n        a[(i = a.length)] = tween\n        if (scrub) {\n          while (--i > -1) {\n            if (a[i] === tween) {\n              a.splice(i, 1)\n            }\n          }\n        }\n      }\n      return _tweenLookup[id].tweens\n    },\n    _onOverwrite = function (overwrittenTween, overwritingTween, target, killedProps) {\n      var func = overwrittenTween.vars.onOverwrite, r1, r2\n      if (func) {\n        r1 = func(overwrittenTween, overwritingTween, target, killedProps)\n      }\n      func = TweenLite.onOverwrite\n      if (func) {\n        r2 = func(overwrittenTween, overwritingTween, target, killedProps)\n      }\n      return (r1 !== false && r2 !== false)\n    },\n    _applyOverwrite = function (target, tween, props, mode, siblings) {\n      var i, changed, curTween, l\n      if (mode === 1 || mode >= 4) {\n        l = siblings.length\n        for (i = 0; i < l; i++) {\n          if ((curTween = siblings[i]) !== tween) {\n            if (!curTween._gc) {\n              if (curTween._kill(null, target, tween)) {\n                changed = true\n              }\n            }\n          } else if (mode === 5) {\n            break\n          }\n        }\n        return changed\n      }\n      // NOTE: Add 0.0000000001 to overcome floating point errors that can cause the startTime to be VERY slightly off (when a tween's time() is set for example)\n      var startTime = tween._startTime + _tinyNum,\n        overlaps = [],\n        oCount = 0,\n        zeroDur = (tween._duration === 0),\n        globalStart\n      i = siblings.length\n      while (--i > -1) {\n        if ((curTween = siblings[i]) === tween || curTween._gc || curTween._paused) {\n          // ignore\n        } else if (curTween._timeline !== tween._timeline) {\n          globalStart = globalStart || _checkOverlap(tween, 0, zeroDur)\n          if (_checkOverlap(curTween, globalStart, zeroDur) === 0) {\n            overlaps[oCount++] = curTween\n          }\n        } else if (curTween._startTime <= startTime) {\n          if (curTween._startTime + curTween.totalDuration() / curTween._timeScale > startTime) {\n            if (!((zeroDur || !curTween._initted) && startTime - curTween._startTime <= 0.0000000002)) {\n              overlaps[oCount++] = curTween\n            }\n          }\n        }\n      }\n\n      i = oCount\n      while (--i > -1) {\n        curTween = overlaps[i]\n        if (mode === 2) {\n          if (curTween._kill(props, target, tween)) {\n            changed = true\n          }\n        }\n        if (mode !== 2 || (!curTween._firstPT && curTween._initted)) {\n          if (mode !== 2 && !_onOverwrite(curTween, tween)) {\n            continue\n          }\n          if (curTween._enabled(false, false)) { // if all property tweens have been overwritten, kill the tween.\n            changed = true\n          }\n        }\n      }\n      return changed\n    },\n    _checkOverlap = function (tween, reference, zeroDur) {\n      var tl = tween._timeline,\n        ts = tl._timeScale,\n        t = tween._startTime\n      while (tl._timeline) {\n        t += tl._startTime\n        ts *= tl._timeScale\n        if (tl._paused) {\n          return -100\n        }\n        tl = tl._timeline\n      }\n      t /= ts\n      return (t > reference) ? t - reference : ((zeroDur && t === reference) || (!tween._initted && t - reference < 2 * _tinyNum)) ? _tinyNum : ((t += tween.totalDuration() / tween._timeScale / ts) > reference + _tinyNum) ? 0 : t - reference - _tinyNum\n    }\n\n  // ---- TweenLite instance methods -----------------------------------------------------------------------------\n\n  p._init = function () {\n    var v = this.vars,\n      op = this._overwrittenProps,\n      dur = this._duration,\n      immediate = !!v.immediateRender,\n      ease = v.ease,\n      i, initPlugins, pt, p, startVars, l\n    if (v.startAt) {\n      if (this._startAt) {\n        this._startAt.render(-1, true) // if we've run a startAt previously (when the tween instantiated), we should revert it so that the values re-instantiate correctly particularly for relative tweens. Without this, a TweenLite.fromTo(obj, 1, {x:\"+=100\"}, {x:\"-=100\"}), for example, would actually jump to +=200 because the startAt would run twice, doubling the relative change.\n        this._startAt.kill()\n      }\n      startVars = {}\n      for (p in v.startAt) { // copy the properties/values into a new object to avoid collisions, like var to = {x:0}, from = {x:500}; timeline.fromTo(e, 1, from, to).fromTo(e, 1, to, from);\n        startVars[p] = v.startAt[p]\n      }\n      startVars.overwrite = false\n      startVars.immediateRender = true\n      startVars.lazy = (immediate && v.lazy !== false)\n      startVars.startAt = startVars.delay = null // no nesting of startAt objects allowed (otherwise it could cause an infinite loop).\n      startVars.onUpdate = v.onUpdate\n      startVars.onUpdateScope = v.onUpdateScope || v.callbackScope || this\n      this._startAt = TweenLite.to(this.target, 0, startVars)\n      if (immediate) {\n        if (this._time > 0) {\n          this._startAt = null // tweens that render immediately (like most from() and fromTo() tweens) shouldn't revert when their parent timeline's playhead goes backward past the startTime because the initial render could have happened anytime and it shouldn't be directly correlated to this tween's startTime. Imagine setting up a complex animation where the beginning states of various objects are rendered immediately but the tween doesn't happen for quite some time - if we revert to the starting values as soon as the playhead goes backward past the tween's startTime, it will throw things off visually. Reversion should only happen in TimelineLite/Max instances where immediateRender was false (which is the default in the convenience methods like from()).\n        } else if (dur !== 0) {\n          return // we skip initialization here so that overwriting doesn't occur until the tween actually begins. Otherwise, if you create several immediateRender:true tweens of the same target/properties to drop into a TimelineLite or TimelineMax, the last one created would overwrite the first ones because they didn't get placed into the timeline yet before the first render occurs and kicks in overwriting.\n        }\n      }\n    } else if (v.runBackwards && dur !== 0) {\n      // from() tweens must be handled uniquely: their beginning values must be rendered but we don't want overwriting to occur yet (when time is still 0). Wait until the tween actually begins before doing all the routines like overwriting. At that time, we should render at the END of the tween to ensure that things initialize correctly (remember, from() tweens go backwards)\n      if (this._startAt) {\n        this._startAt.render(-1, true)\n        this._startAt.kill()\n        this._startAt = null\n      } else {\n        if (this._time !== 0) { // in rare cases (like if a from() tween runs and then is invalidate()-ed), immediateRender could be true but the initial forced-render gets skipped, so there's no need to force the render in this context when the _time is greater than 0\n          immediate = false\n        }\n        pt = {}\n        for (p in v) { // copy props into a new object and skip any reserved props, otherwise onComplete or onUpdate or onStart could fire. We should, however, permit autoCSS to go through.\n          if (!_reservedProps[p] || p === 'autoCSS') {\n            pt[p] = v[p]\n          }\n        }\n        pt.overwrite = 0\n        pt.data = 'isFromStart' // we tag the tween with as \"isFromStart\" so that if [inside a plugin] we need to only do something at the very END of a tween, we have a way of identifying this tween as merely the one that's setting the beginning values for a \"from()\" tween. For example, clearProps in CSSPlugin should only get applied at the very END of a tween and without this tag, from(...{height:100, clearProps:\"height\", delay:1}) would wipe the height at the beginning of the tween and after 1 second, it'd kick back in.\n        pt.lazy = (immediate && v.lazy !== false)\n        pt.immediateRender = immediate // zero-duration tweens render immediately by default, but if we're not specifically instructed to render this tween immediately, we should skip this and merely _init() to record the starting values (rendering them immediately would push them to completion which is wasteful in that case - we'd have to render(-1) immediately after)\n        this._startAt = TweenLite.to(this.target, 0, pt)\n        if (!immediate) {\n          this._startAt._init() // ensures that the initial values are recorded\n          this._startAt._enabled(false) // no need to have the tween render on the next cycle. Disable it because we'll always manually control the renders of the _startAt tween.\n          if (this.vars.immediateRender) {\n            this._startAt = null\n          }\n        } else if (this._time === 0) {\n          return\n        }\n      }\n    }\n    this._ease = ease = (!ease) ? TweenLite.defaultEase : (ease instanceof Ease) ? ease : (typeof (ease) === 'function') ? new Ease(ease, v.easeParams) : _easeMap[ease] || TweenLite.defaultEase\n    if (v.easeParams instanceof Array && ease.config) {\n      this._ease = ease.config.apply(ease, v.easeParams)\n    }\n    this._easeType = this._ease._type\n    this._easePower = this._ease._power\n    this._firstPT = null\n\n    if (this._targets) {\n      l = this._targets.length\n      for (i = 0; i < l; i++) {\n        if (this._initProps(this._targets[i], (this._propLookup[i] = {}), this._siblings[i], (op ? op[i] : null), i)) {\n          initPlugins = true\n        }\n      }\n    } else {\n      initPlugins = this._initProps(this.target, this._propLookup, this._siblings, op, 0)\n    }\n\n    if (initPlugins) {\n      TweenLite._onPluginEvent('_onInitAllProps', this) // reorders the array in order of priority. Uses a static TweenPlugin method in order to minimize file size in TweenLite\n    }\n    if (op) {\n      if (!this._firstPT) {\n        if (typeof (this.target) !== 'function') { // if all tweening properties have been overwritten, kill the tween. If the target is a function, it's probably a delayedCall so let it live.\n          this._enabled(false, false)\n        }\n      }\n    }\n    if (v.runBackwards) {\n      pt = this._firstPT\n      while (pt) {\n        pt.s += pt.c\n        pt.c = -pt.c\n        pt = pt._next\n      }\n    }\n    this._onUpdate = v.onUpdate\n    this._initted = true\n  }\n\n  p._initProps = function (target, propLookup, siblings, overwrittenProps, index) {\n    var p, i, initPlugins, plugin, pt, v\n    if (target == null) {\n      return false\n    }\n\n    if (_lazyLookup[target._gsTweenID]) {\n      _lazyRender() // if other tweens of the same target have recently initted but haven't rendered yet, we've got to force the render so that the starting values are correct (imagine populating a timeline with a bunch of sequential tweens and then jumping to the end)\n    }\n\n    if (!this.vars.css) {\n      if (target.style) {\n        if (target !== window && target.nodeType) {\n          if (_plugins.css) {\n            if (this.vars.autoCSS !== false) { // it's so common to use TweenLite/Max to animate the css of DOM elements, we assume that if the target is a DOM element, that's what is intended (a convenience so that users don't have to wrap things in css:{}, although we still recommend it for a slight performance boost and better specificity). Note: we cannot check \"nodeType\" on the window inside an iframe.\n              _autoCSS(this.vars, target)\n            }\n          }\n        }\n      }\n    }\n    for (p in this.vars) {\n      v = this.vars[p]\n      if (_reservedProps[p]) {\n        if (v) {\n          if ((v instanceof Array) || (v.push && _isArray(v))) {\n            if (v.join('').indexOf('{self}') !== -1) {\n              this.vars[p] = v = this._swapSelfInParams(v, this)\n            }\n          }\n        }\n      } else if (_plugins[p] && (plugin = new _plugins[p]())._onInitTween(target, this.vars[p], this, index)) {\n        // t - target \t\t[object]\n        // p - property \t\t[string]\n        // s - start\t\t\t[number]\n        // c - change\t\t[number]\n        // f - isFunction\t[boolean]\n        // n - name\t\t\t[string]\n        // pg - isPlugin \t[boolean]\n        // pr - priority\t\t[number]\n        // m - mod           [function | 0]\n        this._firstPT = pt = {_next: this._firstPT, t: plugin, p: 'setRatio', s: 0, c: 1, f: 1, n: p, pg: 1, pr: plugin._priority, m: 0}\n        i = plugin._overwriteProps.length\n        while (--i > -1) {\n          propLookup[plugin._overwriteProps[i]] = this._firstPT\n        }\n        if (plugin._priority || plugin._onInitAllProps) {\n          initPlugins = true\n        }\n        if (plugin._onDisable || plugin._onEnable) {\n          this._notifyPluginsOfEnabled = true\n        }\n        if (pt._next) {\n          pt._next._prev = pt\n        }\n      } else {\n        propLookup[p] = _addPropTween.call(this, target, p, 'get', v, p, 0, null, this.vars.stringFilter, index)\n      }\n    }\n\n    if (overwrittenProps) {\n      if (this._kill(overwrittenProps, target)) { // another tween may have tried to overwrite properties of this tween before init() was called (like if two tweens start at the same time, the one created second will run first)\n        return this._initProps(target, propLookup, siblings, overwrittenProps, index)\n      }\n    }\n    if (this._overwrite > 1) {\n      if (this._firstPT) {\n        if (siblings.length > 1) {\n          if (_applyOverwrite(target, this, propLookup, this._overwrite, siblings)) {\n            this._kill(propLookup, target)\n            return this._initProps(target, propLookup, siblings, overwrittenProps, index)\n          }\n        }\n      }\n    }\n    if (this._firstPT) {\n      if ((this.vars.lazy !== false && this._duration) || (this.vars.lazy && !this._duration)) { // zero duration tweens don't lazy render by default; everything else does.\n        _lazyLookup[target._gsTweenID] = true\n      }\n    }\n    return initPlugins\n  }\n\n  p.render = function (time, suppressEvents, force) {\n    var prevTime = this._time,\n      duration = this._duration,\n      prevRawPrevTime = this._rawPrevTime,\n      isComplete, callback, pt, rawPrevTime\n    if (time >= duration - 0.0000001 && time >= 0) { // to work around occasional floating point math artifacts.\n      this._totalTime = this._time = duration\n      this.ratio = this._ease._calcEnd ? this._ease.getRatio(1) : 1\n      if (!this._reversed) {\n        isComplete = true\n        callback = 'onComplete'\n        force = (force || this._timeline.autoRemoveChildren) // otherwise, if the animation is unpaused/activated after it's already finished, it doesn't get removed from the parent timeline.\n      }\n      if (duration === 0) {\n        if (this._initted || !this.vars.lazy || force) { // zero-duration tweens are tricky because we must discern the momentum/direction of time in order to determine whether the starting values should be rendered or the ending values. If the \"playhead\" of its timeline goes past the zero-duration tween in the forward direction or lands directly on it, the end values should be rendered, but if the timeline's \"playhead\" moves past it in the backward direction (from a postitive time to a negative time), the starting values must be rendered.\n          if (this._startTime === this._timeline._duration) { // if a zero-duration tween is at the VERY end of a timeline and that timeline renders at its end, it will typically add a tiny bit of cushion to the render time to prevent rounding errors from getting in the way of tweens rendering their VERY end. If we then reverse() that timeline, the zero-duration tween will trigger its onReverseComplete even though technically the playhead didn't pass over it again. It's a very specific edge case we must accommodate.\n            time = 0\n          }\n          if (prevRawPrevTime < 0 || (time <= 0 && time >= -0.0000001) || (prevRawPrevTime === _tinyNum && this.data !== 'isPause')) {\n            if (prevRawPrevTime !== time) { // note: when this.data is \"isPause\", it's a callback added by addPause() on a timeline that we should not be triggered when LEAVING its exact start time. In other words, tl.addPause(1).play(1) shouldn't pause.\n              force = true\n              if (prevRawPrevTime > _tinyNum) {\n                callback = 'onReverseComplete'\n              }\n            }\n          }\n          this._rawPrevTime = rawPrevTime = (!suppressEvents || time || prevRawPrevTime === time) ? time : _tinyNum // when the playhead arrives at EXACTLY time 0 (right on top) of a zero-duration tween, we need to discern if events are suppressed so that when the playhead moves again (next time), it'll trigger the callback. If events are NOT suppressed, obviously the callback would be triggered in this render. Basically, the callback should fire either when the playhead ARRIVES or LEAVES this exact spot, not both. Imagine doing a timeline.seek(0) and there's a callback that sits at 0. Since events are suppressed on that seek() by default, nothing will fire, but when the playhead moves off of that position, the callback should fire. This behavior is what people intuitively expect. We set the _rawPrevTime to be a precise tiny number to indicate this scenario rather than using another property/variable which would increase memory usage. This technique is less readable, but more efficient.\n        }\n      }\n    } else if (time < 0.0000001) { // to work around occasional floating point math artifacts, round super small values to 0.\n      this._totalTime = this._time = 0\n      this.ratio = this._ease._calcEnd ? this._ease.getRatio(0) : 0\n      if (prevTime !== 0 || (duration === 0 && prevRawPrevTime > 0)) {\n        callback = 'onReverseComplete'\n        isComplete = this._reversed\n      }\n      if (time < 0) {\n        this._active = false\n        if (duration === 0) {\n          if (this._initted || !this.vars.lazy || force) { // zero-duration tweens are tricky because we must discern the momentum/direction of time in order to determine whether the starting values should be rendered or the ending values. If the \"playhead\" of its timeline goes past the zero-duration tween in the forward direction or lands directly on it, the end values should be rendered, but if the timeline's \"playhead\" moves past it in the backward direction (from a postitive time to a negative time), the starting values must be rendered.\n            if (prevRawPrevTime >= 0 && !(prevRawPrevTime === _tinyNum && this.data === 'isPause')) {\n              force = true\n            }\n            this._rawPrevTime = rawPrevTime = (!suppressEvents || time || prevRawPrevTime === time) ? time : _tinyNum // when the playhead arrives at EXACTLY time 0 (right on top) of a zero-duration tween, we need to discern if events are suppressed so that when the playhead moves again (next time), it'll trigger the callback. If events are NOT suppressed, obviously the callback would be triggered in this render. Basically, the callback should fire either when the playhead ARRIVES or LEAVES this exact spot, not both. Imagine doing a timeline.seek(0) and there's a callback that sits at 0. Since events are suppressed on that seek() by default, nothing will fire, but when the playhead moves off of that position, the callback should fire. This behavior is what people intuitively expect. We set the _rawPrevTime to be a precise tiny number to indicate this scenario rather than using another property/variable which would increase memory usage. This technique is less readable, but more efficient.\n          }\n        }\n      }\n      if (!this._initted || (this._startAt && this._startAt.progress())) { // if we render the very beginning (time == 0) of a fromTo(), we must force the render (normal tweens wouldn't need to render at a time of 0 when the prevTime was also 0). This is also mandatory to make sure overwriting kicks in immediately. Also, we check progress() because if startAt has already rendered at its end, we should force a render at its beginning. Otherwise, if you put the playhead directly on top of where a fromTo({immediateRender:false}) starts, and then move it backwards, the from() won't revert its values.\n        force = true\n      }\n    } else {\n      this._totalTime = this._time = time\n\n      if (this._easeType) {\n        var r = time / duration, type = this._easeType, pow = this._easePower\n        if (type === 1 || (type === 3 && r >= 0.5)) {\n          r = 1 - r\n        }\n        if (type === 3) {\n          r *= 2\n        }\n        if (pow === 1) {\n          r *= r\n        } else if (pow === 2) {\n          r *= r * r\n        } else if (pow === 3) {\n          r *= r * r * r\n        } else if (pow === 4) {\n          r *= r * r * r * r\n        }\n\n        if (type === 1) {\n          this.ratio = 1 - r\n        } else if (type === 2) {\n          this.ratio = r\n        } else if (time / duration < 0.5) {\n          this.ratio = r / 2\n        } else {\n          this.ratio = 1 - (r / 2)\n        }\n      } else {\n        this.ratio = this._ease.getRatio(time / duration)\n      }\n    }\n\n    if (this._time === prevTime && !force) {\n      return\n    } else if (!this._initted) {\n      this._init()\n      if (!this._initted || this._gc) { // immediateRender tweens typically won't initialize until the playhead advances (_time is greater than 0) in order to ensure that overwriting occurs properly. Also, if all of the tweening properties have been overwritten (which would cause _gc to be true, as set in _init()), we shouldn't continue otherwise an onStart callback could be called for example.\n        return\n      } else if (!force && this._firstPT && ((this.vars.lazy !== false && this._duration) || (this.vars.lazy && !this._duration))) {\n        this._time = this._totalTime = prevTime\n        this._rawPrevTime = prevRawPrevTime\n        _lazyTweens.push(this)\n        this._lazy = [time, suppressEvents]\n        return\n      }\n      // _ease is initially set to defaultEase, so now that init() has run, _ease is set properly and we need to recalculate the ratio. Overall this is faster than using conditional logic earlier in the method to avoid having to set ratio twice because we only init() once but renderTime() gets called VERY frequently.\n      if (this._time && !isComplete) {\n        this.ratio = this._ease.getRatio(this._time / duration)\n      } else if (isComplete && this._ease._calcEnd) {\n        this.ratio = this._ease.getRatio((this._time === 0) ? 0 : 1)\n      }\n    }\n    if (this._lazy !== false) { // in case a lazy render is pending, we should flush it because the new render is occurring now (imagine a lazy tween instantiating and then immediately the user calls tween.seek(tween.duration()), skipping to the end - the end render would be forced, and then if we didn't flush the lazy render, it'd fire AFTER the seek(), rendering it at the wrong time.\n      this._lazy = false\n    }\n    if (!this._active) {\n      if (!this._paused && this._time !== prevTime && time >= 0) {\n        this._active = true // so that if the user renders a tween (as opposed to the timeline rendering it), the timeline is forced to re-render and align it with the proper time/frame on the next rendering cycle. Maybe the tween already finished but the user manually re-renders it as halfway done.\n      }\n    }\n    if (prevTime === 0) {\n      if (this._startAt) {\n        if (time >= 0) {\n          this._startAt.render(time, suppressEvents, force)\n        } else if (!callback) {\n          callback = '_dummyGS' // if no callback is defined, use a dummy value just so that the condition at the end evaluates as true because _startAt should render AFTER the normal render loop when the time is negative. We could handle this in a more intuitive way, of course, but the render loop is the MOST important thing to optimize, so this technique allows us to avoid adding extra conditional logic in a high-frequency area.\n        }\n      }\n      if (this.vars.onStart) {\n        if (this._time !== 0 || duration === 0) {\n          if (!suppressEvents) {\n            this._callback('onStart')\n          }\n        }\n      }\n    }\n    pt = this._firstPT\n    while (pt) {\n      if (pt.f) {\n        pt.t[pt.p](pt.c * this.ratio + pt.s)\n      } else {\n        pt.t[pt.p] = pt.c * this.ratio + pt.s\n      }\n      pt = pt._next\n    }\n\n    if (this._onUpdate) {\n      if (time < 0) {\n        if (this._startAt && time !== -0.0001) { // if the tween is positioned at the VERY beginning (_startTime 0) of its parent timeline, it's illegal for the playhead to go back further, so we should not render the recorded startAt values.\n          this._startAt.render(time, suppressEvents, force) // note: for performance reasons, we tuck this conditional logic inside less traveled areas (most tweens don't have an onUpdate). We'd just have it at the end before the onComplete, but the values should be updated before any onUpdate is called, so we ALSO put it here and then if it's not called, we do so later near the onComplete.\n        }\n      }\n      if (!suppressEvents) {\n        if (this._time !== prevTime || isComplete || force) {\n          this._callback('onUpdate')\n        }\n      }\n    }\n    if (callback) {\n      if (!this._gc || force) { // check _gc because there's a chance that kill() could be called in an onUpdate\n        if (time < 0 && this._startAt && !this._onUpdate && time !== -0.0001) { // -0.0001 is a special value that we use when looping back to the beginning of a repeated TimelineMax, in which case we shouldn't render the _startAt values.\n          this._startAt.render(time, suppressEvents, force)\n        }\n        if (isComplete) {\n          if (this._timeline.autoRemoveChildren) {\n            this._enabled(false, false)\n          }\n          this._active = false\n        }\n        if (!suppressEvents && this.vars[callback]) {\n          this._callback(callback)\n        }\n        if (duration === 0 && this._rawPrevTime === _tinyNum && rawPrevTime !== _tinyNum) { // the onComplete or onReverseComplete could trigger movement of the playhead and for zero-duration tweens (which must discern direction) that land directly back on their start time, we don't want to fire again on the next render. Think of several addPause()'s in a timeline that forces the playhead to a certain spot, but what if it's already paused and another tween is tweening the \"time\" of the timeline? Each time it moves [forward] past that spot, it would move back, and since suppressEvents is true, it'd reset _rawPrevTime to _tinyNum so that when it begins again, the callback would fire (so ultimately it could bounce back and forth during that tween). Again, this is a very uncommon scenario, but possible nonetheless.\n          this._rawPrevTime = 0\n        }\n      }\n    }\n  }\n\n  p._kill = function (vars, target, overwritingTween) {\n    if (vars === 'all') {\n      vars = null\n    }\n    if (vars == null) {\n      if (target == null || target === this.target) {\n        this._lazy = false\n        return this._enabled(false, false)\n      }\n    }\n    target = (typeof (target) !== 'string') ? (target || this._targets || this.target) : TweenLite.selector(target) || target\n    var simultaneousOverwrite = (overwritingTween && this._time && overwritingTween._startTime === this._startTime && this._timeline === overwritingTween._timeline),\n      i, overwrittenProps, p, pt, propLookup, changed, killProps, record, killed\n    if ((_isArray(target) || _isSelector(target)) && typeof (target[0]) !== 'number') {\n      i = target.length\n      while (--i > -1) {\n        if (this._kill(vars, target[i], overwritingTween)) {\n          changed = true\n        }\n      }\n    } else {\n      if (this._targets) {\n        i = this._targets.length\n        while (--i > -1) {\n          if (target === this._targets[i]) {\n            propLookup = this._propLookup[i] || {}\n            this._overwrittenProps = this._overwrittenProps || []\n            overwrittenProps = this._overwrittenProps[i] = vars ? this._overwrittenProps[i] || {} : 'all'\n            break\n          }\n        }\n      } else if (target !== this.target) {\n        return false\n      } else {\n        propLookup = this._propLookup\n        overwrittenProps = this._overwrittenProps = vars ? this._overwrittenProps || {} : 'all'\n      }\n\n      if (propLookup) {\n        killProps = vars || propLookup\n        record = (vars !== overwrittenProps && overwrittenProps !== 'all' && vars !== propLookup && (typeof (vars) !== 'object' || !vars._tempKill)) // _tempKill is a super-secret way to delete a particular tweening property but NOT have it remembered as an official overwritten property (like in BezierPlugin)\n        if (overwritingTween && (TweenLite.onOverwrite || this.vars.onOverwrite)) {\n          for (p in killProps) {\n            if (propLookup[p]) {\n              if (!killed) {\n                killed = []\n              }\n              killed.push(p)\n            }\n          }\n          if ((killed || !vars) && !_onOverwrite(this, overwritingTween, target, killed)) { // if the onOverwrite returned false, that means the user wants to override the overwriting (cancel it).\n            return false\n          }\n        }\n\n        for (p in killProps) {\n          if ((pt = propLookup[p])) {\n            if (simultaneousOverwrite) { // if another tween overwrites this one and they both start at exactly the same time, yet this tween has already rendered once (for example, at 0.001) because it's first in the queue, we should revert the values to where they were at 0 so that the starting values aren't contaminated on the overwriting tween.\n              if (pt.f) {\n                pt.t[pt.p](pt.s)\n              } else {\n                pt.t[pt.p] = pt.s\n              }\n              changed = true\n            }\n            if (pt.pg && pt.t._kill(killProps)) {\n              changed = true // some plugins need to be notified so they can perform cleanup tasks first\n            }\n            if (!pt.pg || pt.t._overwriteProps.length === 0) {\n              if (pt._prev) {\n                pt._prev._next = pt._next\n              } else if (pt === this._firstPT) {\n                this._firstPT = pt._next\n              }\n              if (pt._next) {\n                pt._next._prev = pt._prev\n              }\n              pt._next = pt._prev = null\n            }\n            delete propLookup[p]\n          }\n          if (record) {\n            overwrittenProps[p] = 1\n          }\n        }\n        if (!this._firstPT && this._initted) { // if all tweening properties are killed, kill the tween. Without this line, if there's a tween with multiple targets and then you killTweensOf() each target individually, the tween would technically still remain active and fire its onComplete even though there aren't any more properties tweening.\n          this._enabled(false, false)\n        }\n      }\n    }\n    return changed\n  }\n\n  p.invalidate = function () {\n    if (this._notifyPluginsOfEnabled) {\n      TweenLite._onPluginEvent('_onDisable', this)\n    }\n    this._firstPT = this._overwrittenProps = this._startAt = this._onUpdate = null\n    this._notifyPluginsOfEnabled = this._active = this._lazy = false\n    this._propLookup = (this._targets) ? {} : []\n    Animation.prototype.invalidate.call(this)\n    if (this.vars.immediateRender) {\n      this._time = -_tinyNum // forces a render without having to set the render() \"force\" parameter to true because we want to allow lazying by default (using the \"force\" parameter always forces an immediate full render)\n      this.render(Math.min(0, -this._delay)) // in case delay is negative.\n    }\n    return this\n  }\n\n  p._enabled = function (enabled, ignoreTimeline) {\n    if (!_tickerActive) {\n      _ticker.wake()\n    }\n    if (enabled && this._gc) {\n      var targets = this._targets,\n        i\n      if (targets) {\n        i = targets.length\n        while (--i > -1) {\n          this._siblings[i] = _register(targets[i], this, true)\n        }\n      } else {\n        this._siblings = _register(this.target, this, true)\n      }\n    }\n    Animation.prototype._enabled.call(this, enabled, ignoreTimeline)\n    if (this._notifyPluginsOfEnabled) {\n      if (this._firstPT) {\n        return TweenLite._onPluginEvent((enabled ? '_onEnable' : '_onDisable'), this)\n      }\n    }\n    return false\n  }\n\n  // ----TweenLite static methods -----------------------------------------------------\n\n  TweenLite.to = function (target, duration, vars) {\n    return new TweenLite(target, duration, vars)\n  }\n\n  TweenLite.from = function (target, duration, vars) {\n    vars.runBackwards = true\n    vars.immediateRender = (vars.immediateRender != false)\n    return new TweenLite(target, duration, vars)\n  }\n\n  TweenLite.fromTo = function (target, duration, fromVars, toVars) {\n    toVars.startAt = fromVars\n    toVars.immediateRender = (toVars.immediateRender != false && fromVars.immediateRender != false)\n    return new TweenLite(target, duration, toVars)\n  }\n\n  TweenLite.delayedCall = function (delay, callback, params, scope, useFrames) {\n    return new TweenLite(callback, 0, {delay: delay, onComplete: callback, onCompleteParams: params, callbackScope: scope, onReverseComplete: callback, onReverseCompleteParams: params, immediateRender: false, lazy: false, useFrames: useFrames, overwrite: 0})\n  }\n\n  TweenLite.set = function (target, vars) {\n    return new TweenLite(target, 0, vars)\n  }\n\n  TweenLite.getTweensOf = function (target, onlyActive) {\n    if (target == null) { return [] }\n    target = (typeof (target) !== 'string') ? target : TweenLite.selector(target) || target\n    var i, a, j, t\n    if ((_isArray(target) || _isSelector(target)) && typeof (target[0]) !== 'number') {\n      i = target.length\n      a = []\n      while (--i > -1) {\n        a = a.concat(TweenLite.getTweensOf(target[i], onlyActive))\n      }\n      i = a.length\n      // now get rid of any duplicates (tweens of arrays of objects could cause duplicates)\n      while (--i > -1) {\n        t = a[i]\n        j = i\n        while (--j > -1) {\n          if (t === a[j]) {\n            a.splice(i, 1)\n          }\n        }\n      }\n    } else if (target._gsTweenID) {\n      a = _register(target).concat()\n      i = a.length\n      while (--i > -1) {\n        if (a[i]._gc || (onlyActive && !a[i].isActive())) {\n          a.splice(i, 1)\n        }\n      }\n    }\n    return a || []\n  }\n\n  TweenLite.killTweensOf = TweenLite.killDelayedCallsTo = function (target, onlyActive, vars) {\n    if (typeof (onlyActive) === 'object') {\n      vars = onlyActive // for backwards compatibility (before \"onlyActive\" parameter was inserted)\n      onlyActive = false\n    }\n    var a = TweenLite.getTweensOf(target, onlyActive),\n      i = a.length\n    while (--i > -1) {\n      a[i]._kill(vars, target)\n    }\n  }\n\n  /*\n * ----------------------------------------------------------------\n * TweenPlugin   (could easily be split out as a separate file/class, but included for ease of use (so that people don't need to include another script call before loading plugins which is easy to forget)\n * ----------------------------------------------------------------\n */\n  var TweenPlugin = _class('plugins.TweenPlugin', function (props, priority) {\n    this._overwriteProps = (props || '').split(',')\n    this._propName = this._overwriteProps[0]\n    this._priority = priority || 0\n    this._super = TweenPlugin.prototype\n  }, true)\n\n  p = TweenPlugin.prototype\n  TweenPlugin.version = '1.19.0'\n  TweenPlugin.API = 2\n  p._firstPT = null\n  p._addTween = _addPropTween\n  p.setRatio = _setRatio\n\n  p._kill = function (lookup) {\n    var a = this._overwriteProps,\n      pt = this._firstPT,\n      i\n    if (lookup[this._propName] != null) {\n      this._overwriteProps = []\n    } else {\n      i = a.length\n      while (--i > -1) {\n        if (lookup[a[i]] != null) {\n          a.splice(i, 1)\n        }\n      }\n    }\n    while (pt) {\n      if (lookup[pt.n] != null) {\n        if (pt._next) {\n          pt._next._prev = pt._prev\n        }\n        if (pt._prev) {\n          pt._prev._next = pt._next\n          pt._prev = null\n        } else if (this._firstPT === pt) {\n          this._firstPT = pt._next\n        }\n      }\n      pt = pt._next\n    }\n    return false\n  }\n\n  p._mod = p._roundProps = function (lookup) {\n    var pt = this._firstPT,\n      val\n    while (pt) {\n      val = lookup[this._propName] || (pt.n != null && lookup[ pt.n.split(this._propName + '_').join('') ])\n      if (val && typeof (val) === 'function') { // some properties that are very plugin-specific add a prefix named after the _propName plus an underscore, so we need to ignore that extra stuff here.\n        if (pt.f === 2) {\n          pt.t._applyPT.m = val\n        } else {\n          pt.m = val\n        }\n      }\n      pt = pt._next\n    }\n  }\n\n  TweenLite._onPluginEvent = function (type, tween) {\n    var pt = tween._firstPT,\n      changed, pt2, first, last, next\n    if (type === '_onInitAllProps') {\n      // sorts the PropTween linked list in order of priority because some plugins need to render earlier/later than others, like MotionBlurPlugin applies its effects after all x/y/alpha tweens have rendered on each frame.\n      while (pt) {\n        next = pt._next\n        pt2 = first\n        while (pt2 && pt2.pr > pt.pr) {\n          pt2 = pt2._next\n        }\n        if ((pt._prev = pt2 ? pt2._prev : last)) {\n          pt._prev._next = pt\n        } else {\n          first = pt\n        }\n        if ((pt._next = pt2)) {\n          pt2._prev = pt\n        } else {\n          last = pt\n        }\n        pt = next\n      }\n      pt = tween._firstPT = first\n    }\n    while (pt) {\n      if (pt.pg) {\n        if (typeof (pt.t[type]) === 'function') {\n          if (pt.t[type]()) {\n            changed = true\n          }\n        }\n      }\n      pt = pt._next\n    }\n    return changed\n  }\n\n  TweenPlugin.activate = function (plugins) {\n    var i = plugins.length\n    while (--i > -1) {\n      if (plugins[i].API === TweenPlugin.API) {\n        _plugins[(new plugins[i]())._propName] = plugins[i]\n      }\n    }\n    return true\n  }\n\n  // provides a more concise way to define plugins that have no dependencies besides TweenPlugin and TweenLite, wrapping common boilerplate stuff into one function (added in 1.9.0). You don't NEED to use this to define a plugin - the old way still works and can be useful in certain (rare) situations.\n  _gsDefine.plugin = function (config) {\n    if (!config || !config.propName || !config.init || !config.API) { throw 'illegal plugin definition.' }\n    var propName = config.propName,\n      priority = config.priority || 0,\n      overwriteProps = config.overwriteProps,\n      map = {init: '_onInitTween', set: 'setRatio', kill: '_kill', round: '_mod', mod: '_mod', initAll: '_onInitAllProps'},\n      Plugin = _class('plugins.' + propName.charAt(0).toUpperCase() + propName.substr(1) + 'Plugin',\n        function () {\n          TweenPlugin.call(this, propName, priority)\n          this._overwriteProps = overwriteProps || []\n        }, (config.global === true)),\n      p = Plugin.prototype = new TweenPlugin(propName),\n      prop\n    p.constructor = Plugin\n    Plugin.API = config.API\n    for (prop in map) {\n      if (typeof (config[prop]) === 'function') {\n        p[map[prop]] = config[prop]\n      }\n    }\n    Plugin.version = config.version\n    TweenPlugin.activate([Plugin])\n    return Plugin\n  }\n\n  // now run through all the dependencies discovered and if any are missing, log that to the console as a warning. This is why it's best to have TweenLite load last - it can check all the dependencies for you.\n  a = window._gsQueue\n  if (a) {\n    for (i = 0; i < a.length; i++) {\n      a[i]()\n    }\n    for (p in _defLookup) {\n      if (!_defLookup[p].func) {\n        window.console.log('GSAP encountered missing dependency: ' + p)\n      }\n    }\n  }\n\n  _tickerActive = false // ensures that the first official animation forces a ticker.tick() to update the time when it is instantiated\n})((typeof (module) !== 'undefined' && module.exports && typeof (global) !== 'undefined') ? global : this || window, 'TweenMax')\n"
  },
  {
    "path": "performance/es6-tween.html",
    "content": "<html>\n\n<head>\n\t<meta charset=\"UTF-8\">\n\t<meta name=\"viewport\" content=\"width=device-width, minimum-scale=1.0\">\n\t<title>es6-tween</title>\n\t<style>\n\t\t#container {\n\t\t\twidth: 200px;\n\t\t\theight: auto;\n\t\t\tmargin: 0 auto;\n\t\t\tposition: relative;\n\t\t\tdisplay: block;\n\t\t}\n\t\t\n\t\t.line {\n\t\t\twidth: 200px;\n\t\t\theight: 2px;\n\t\t\tposition: absolute;\n\t\t}\n\t</style>\n</head>\n\n<body>\n\n\t<div id=\"container\"></div>\n\n\t<script src=\"../dist/Tween.js\"></script>\n\t<script src=\"../../es6-tween-plugins/renderer/index.js\"></script>\n\t<script>\n\t\tTWEEN.autoPlay(true);\n\n\t\tfunction random(min, max) {\n\t\t\treturn Math.random() * (max - min) + min;\n\t\t}\n\n\t\tvar nodes = [],\n\t\t\tc = document.getElementById(\"container\"),\n\t\t\teasing = \"quadraticInOut\",\n\t\t\tratio = 0.9,\n\t\t\twIh = (window.innerHeight || screen.height - 40) * ratio,\n\t\t\twIw = window.innerWidth,\n\t\t\thwiw = (wIw / 5) * ratio,\n\t\t\tfrag = document.createDocumentFragment();\n\n\t\tfunction createTest(count) {\n\t\t\tvar i;\n\t\t\tc.innerHTML = '';\n\t\t\tfor (i = 0; i < count; i++) {\n\t\t\t\tvar div = document.createElement(\"div\"),\n\t\t\t\t\tbg = (Math.random() * 0xffffff) >> 0,\n\t\t\t\t\tr = bg >> 16 & 255,\n\t\t\t\t\tg = bg >> 8 & 255,\n\t\t\t\t\tb = bg & 255,\n\t\t\t\t\tbgC = 'rgb(' + r + ',' + g + ', ' + b + ')',\n\t\t\t\t\tl = Math.floor(random(-200, 200)),\n\t\t\t\t\tdl = Math.floor(Math.random() * 1000),\n\t\t\t\t\ttl = Math.floor(random(-200, 200));\n\t\t\t\tdiv.setAttribute(\"class\", \"line\");\n\t\t\t\tdiv.style.top = [(Math.random() * wIh), \"px\"].join(\"\");\n\t\t\t\t//div.style.left = l + 'px';\n\t\t\t\tdiv.style.transform = \"translate3d(\" + l + \"px, 0px, 0px)\";\n\t\t\t\tdiv.style.backgroundColor = bgC;\n\t\t\t\tvar a = new TWEEN.Tween(div, { x : l }).to({ x: tl }, 1000).easing(TWEEN.Easing.Quadratic.InOut).repeat(Infinity).yoyo(true).start();\n\n\t\t\t\tfrag.appendChild(div);\n\n\t\t\t}\n\t\t\tc.appendChild(frag);\n\t\t}\n\t\tfunction initTest () {\n\t\tcreateTest(+window.location.hash.substr(1) || 200);\n\t\t}\n\t\twindow.addEventListener('hashchange', initTest)\n\t\twindow.addEventListener('load', initTest)\n\t</script>\n\n</body>\n\n</html>"
  },
  {
    "path": "performance/gsap.html",
    "content": "<html>\n\n<head>\n\t<meta charset=\"UTF-8\">\n\t<meta name=\"viewport\" content=\"width=device-width, minimum-scale=1.0\">\n\t<title>GSAP - TweenMax</title>\n\t<style>\n\t\t#container {\n\t\t\twidth: 200px;\n\t\t\theight: auto;\n\t\t\tmargin: 0 auto;\n\t\t\tposition: relative;\n\t\t\tdisplay: block;\n\t\t}\n\t\t\n\t\t.line {\n\t\t\twidth: 200px;\n\t\t\theight: 2px;\n\t\t\tposition: absolute;\n\t\t}\n\t</style>\n</head>\n\n<body>\n\n\t<div id=\"container\"></div>\n\n\t<script src=\"TweenMax.js\"></script>\n\t<script>\n\n\t\tfunction random(min, max) {\n\t\t\treturn Math.random() * (max - min) + min;\n\t\t}\n\n\t\tvar nodes = [],\n\t\t\tc = document.getElementById(\"container\"),\n\t\t\teasing = \"quadraticInOut\",\n\t\t\tratio = 0.9,\n\t\t\twIh = (window.innerHeight || screen.height - 40) * ratio,\n\t\t\twIw = window.innerWidth,\n\t\t\thwiw = (wIw / 5) * ratio,\n\t\t\tfrag = document.createDocumentFragment();\n\n\t\tfunction createTest(count) {\n\t\t\tvar i;\n\t\t\tfor (i = 0; i < count; i++) {\n\t\t\t\tvar div = document.createElement(\"div\"),\n\t\t\t\t\tbg = (Math.random() * 0xffffff) >> 0,\n\t\t\t\t\tr = bg >> 16 & 255,\n\t\t\t\t\tg = bg >> 8 & 255,\n\t\t\t\t\tb = bg & 255,\n\t\t\t\t\tbgC = 'rgb(' + r + ',' + g + ', ' + b + ')',\n\t\t\t\t\tl = Math.floor(random(-200, 200)),\n\t\t\t\t\tdl = Math.floor(Math.random() * 1000),\n\t\t\t\t\ttl = Math.floor(random(-200, 200));\n\t\t\t\tdiv.setAttribute(\"class\", \"line\");\n\t\t\t\tdiv.style.top = [(Math.random() * wIh), \"px\"].join(\"\");\n\t\t\t\t//div.style.left = l + 'px';\n\t\t\t\tdiv.style.transform = \"translate3d(\" + l + \"px, 0px, 0px)\";\n\t\t\t\tdiv.style.backgroundColor = bgC;\n\t\t\t\tvar a = TweenMax.fromTo(div, 1, {x:l}, {x:tl,ease:Quad.InOut,repeat:-1,yoyo:true})\n\n\t\t\t\tfrag.appendChild(div);\n\n\t\t\t}\n\t\t\tc.appendChild(frag);\n\t\t}\n\t\tcreateTest(200);\n\t</script>\n\n</body>\n\n</html>"
  },
  {
    "path": "performance/kute.html",
    "content": "<html>\n\n<head>\n\t<meta charset=\"UTF-8\">\n\t<meta name=\"viewport\" content=\"width=device-width, minimum-scale=1.0\">\n\t<title>KUTE.js - Core only</title>\n\t<style>\n\t\t#container {\n\t\t\twidth: 200px;\n\t\t\theight: auto;\n\t\t\tmargin: 0 auto;\n\t\t\tposition: relative;\n\t\t\tdisplay: block;\n\t\t}\n\t\t\n\t\t.line {\n\t\t\twidth: 200px;\n\t\t\theight: 2px;\n\t\t\tposition: absolute;\n\t\t}\n\t</style>\n</head>\n\n<body>\n\n\t<div id=\"container\"></div>\n\n\t<script src=\"kute.js\"></script>\n\t<script>\n\n\t\tfunction random(min, max) {\n\t\t\treturn Math.random() * (max - min) + min;\n\t\t}\n\n\t\tvar nodes = [],\n\t\t\tc = document.getElementById(\"container\"),\n\t\t\teasing = \"quadraticInOut\",\n\t\t\tratio = 0.9,\n\t\t\twIh = (window.innerHeight || screen.height - 40) * ratio,\n\t\t\twIw = window.innerWidth,\n\t\t\thwiw = (wIw / 5) * ratio,\n\t\t\tfrag = document.createDocumentFragment();\n\n\t\tfunction createTest(count) {\n\t\t\tvar i;\n\t\t\tfor (i = 0; i < count; i++) {\n\t\t\t\tvar div = document.createElement(\"div\"),\n\t\t\t\t\tbg = (Math.random() * 0xffffff) >> 0,\n\t\t\t\t\tr = bg >> 16 & 255,\n\t\t\t\t\tg = bg >> 8 & 255,\n\t\t\t\t\tb = bg & 255,\n\t\t\t\t\tbgC = 'rgb(' + r + ',' + g + ', ' + b + ')',\n\t\t\t\t\tl = Math.floor(random(-200, 200)),\n\t\t\t\t\tdl = Math.floor(Math.random() * 1000),\n\t\t\t\t\ttl = Math.floor(random(-200, 200));\n\t\t\t\tdiv.setAttribute(\"class\", \"line\");\n\t\t\t\tdiv.style.top = [(Math.random() * wIh), \"px\"].join(\"\");\n\t\t\t\tdiv.style.left = l + 'px';\n\t\t\t\t//div.style.transform = \"translate3d(\" + l + \"px, 0px, 0px)\";\n\t\t\t\tdiv.style.backgroundColor = bgC;\n\t\t\t\tvar a = KUTE.fromTo(div, {left:l}, {left:tl}, {duration:1000,easing:'easingQuadraticInOut',repeat:Infinity,yoyo:true}).start();\n\n\t\t\t\tfrag.appendChild(div);\n\n\t\t\t}\n\t\t\tc.appendChild(frag);\n\t\t}\n\t\tcreateTest(200);\n\t</script>\n\n</body>\n\n</html>"
  },
  {
    "path": "performance/kute.js",
    "content": "/* KUTE.js - The Light Tweening Engine\n * by dnp_theme\n * Licensed under MIT-License\n */\n(function (root, factory) {\n  if (typeof define === 'function' && define.amd) {\n    define([], factory) // AMD. Register as an anonymous module.\n  } else if (typeof exports === 'object') {\n    module.exports = factory() // Node, not strict CommonJS\n  } else {\n    root.KUTE = factory()\n  }\n}(this, function () {\n  'use strict'\n\n  // set a custom scope for KUTE.js\n  var g = typeof global !== 'undefined' ? global : window, time = g.performance,\n    body = document.body, tweens = [], tick = null, // tick must be null!!\n\n    // strings\n    length = 'length',\n    split = 'split',\n    indexOf = 'indexOf',\n    replace = 'replace',\n\n    offsetWidth = 'offsetWidth',\n    offsetHeight = 'offsetHeight',\n\n    options = 'options',\n    valuesStart = 'valuesStart',\n    valuesEnd = 'valuesEnd',\n    valuesRepeat = 'valuesRepeat',\n\n    element = 'element',\n    playing = 'playing',\n\n    duration = 'duration',\n    delay = 'delay',\n    offset = 'offset',\n    repeat = 'repeat',\n    repeatDelay = 'repeatDelay',\n    yoyo = 'yoyo',\n    easing = 'easing',\n    chain = 'chain',\n    keepHex = 'keepHex',\n\n    style = 'style',\n    dataTweening = 'data-tweening',\n    getElementsByTagName = 'getElementsByTagName',\n    addEventListener = 'addEventListener',\n    removeEventListener = 'removeEventListener'\n\n  // supported properties\n  var colorProps = ['color', 'backgroundColor'], // 'hex', 'rgb', 'rgba' '#fff' 'rgb(0,0,0)' / 'rgba(0,0,0,0)' 'red' (IE9+)\n    boxModelProps = ['top', 'left', 'width', 'height'],\n    transformFunctions = ['translate3d', 'translateX', 'translateY', 'translateZ', 'rotate', 'translate', 'rotateX', 'rotateY', 'rotateZ', 'skewX', 'skewY', 'scale'],\n    scrollProp = ['scroll'], // has no default value, it's calculated on tween start\n    opacityProp = ['opacity'], // opacity\n    coreProps = colorProps.concat(opacityProp, boxModelProps, transformFunctions),\n    defaultPropsValues = {}\n\n  // populate default values object\n  for (var propertyIndex = 0, allCorePropLength = coreProps[length], coreProp; propertyIndex < allCorePropLength; propertyIndex++) {\n    coreProp = coreProps[propertyIndex]\n    if (colorProps[indexOf](coreProp) !== -1) {\n      defaultPropsValues[coreProp] = 'rgba(0,0,0,0)' // defaultPropsValues[coreProp] = {r:0,g:0,b:0,a:1};\n    } else if (boxModelProps[indexOf](coreProp) !== -1) {\n      defaultPropsValues[coreProp] = 0\n    } else if (coreProp === 'translate3d') { // px\n      defaultPropsValues[coreProp] = [0, 0, 0]\n    } else if (coreProp === 'translate') { // px\n      defaultPropsValues[coreProp] = [0, 0]\n    } else if (coreProp === 'rotate' || /X|Y|Z/.test(coreProp)) { // deg\n      defaultPropsValues[coreProp] = 0\n    } else if (coreProp === 'scale' || coreProp === 'opacity') { // unitless\n      defaultPropsValues[coreProp] = 1\n    }\n  }\n\n  // default tween options, since 1.6.1\n  var defaultOptions = {\n      duration: 700,\n      delay: 0,\n      offset: 0,\n      repeat: 0,\n      repeatDelay: 0,\n      yoyo: false,\n      easing: 'linear',\n      keepHex: false\n    },\n    // tools / utils\n    getPrefix = function () { // returns browser prefix\n      var prefixes = ['Moz', 'moz', 'Webkit', 'webkit', 'O', 'o', 'Ms', 'ms'], thePrefix\n      for (var pIndex = 0, pfl = prefixes[length]; pIndex < pfl; pIndex++) {\n        if (prefixes[pIndex] + 'Transform' in body[style]) { thePrefix = prefixes[pIndex]; break }\n      }\n      return thePrefix\n    },\n    property = function (propertyToPrefix) { // returns prefixed property | property\n      var prefixRequired = (!(propertyToPrefix in body[style])), prefix = getPrefix() // is prefix required for property | prefix\n      return prefixRequired ? prefix + (propertyToPrefix.charAt(0).toUpperCase() + propertyToPrefix.slice(1)) : propertyToPrefix\n    },\n    selector = function (el, multi) { // a public selector utility\n      var requestedElem\n      if (multi) {\n        requestedElem = el instanceof Object || typeof el === 'object' ? el : document.querySelectorAll(el)\n      } else {\n        requestedElem = typeof el === 'object' ? el : document.querySelector(el)\n      }\n      if (requestedElem === null && el !== 'window') throw new TypeError('Element not found or incorrect selector: ' + el)\n      return requestedElem\n    },\n    radToDeg = function (a) { return a * 180 / Math.PI },\n    trueDimension = function (dimValue, isAngle) { // true dimension returns { v = value, u = unit }\n      var intValue = parseInt(dimValue) || 0, mUnits = ['px', '%', 'deg', 'rad', 'em', 'rem', 'vh', 'vw'], theUnit\n      for (var mIndex = 0; mIndex < mUnits[length]; mIndex++) {\n        if (typeof dimValue === 'string' && dimValue[indexOf](mUnits[mIndex]) !== -1) {\n          theUnit = mUnits[mIndex]; break\n        }\n      }\n      theUnit = theUnit !== undefined ? theUnit : (isAngle ? 'deg' : 'px')\n      return { v: intValue, u: theUnit }\n    },\n    trueColor = function (colorString) { // replace transparent and transform any color to rgba()/rgb()\n      if (/rgb|rgba/.test(colorString)) { // first check if it's a rgb string\n        var vrgb = colorString[replace](/\\s|\\)/, '')[split]('(')[1][split](','), colorAlpha = vrgb[3] ? vrgb[3] : null\n        if (!colorAlpha) {\n          return { r: parseInt(vrgb[0]), g: parseInt(vrgb[1]), b: parseInt(vrgb[2]) }\n        } else {\n          return { r: parseInt(vrgb[0]), g: parseInt(vrgb[1]), b: parseInt(vrgb[2]), a: parseFloat(colorAlpha) }\n        }\n      } else if (/^#/.test(colorString)) {\n        var fromHex = hexToRGB(colorString); return { r: fromHex.r, g: fromHex.g, b: fromHex.b }\n      } else if (/transparent|none|initial|inherit/.test(colorString)) {\n        return { r: 0, g: 0, b: 0, a: 0 }\n      } else if (!/^#|^rgb/.test(colorString)) { // maybe we can check for web safe colors\n        var siteHead = document[getElementsByTagName]('head')[0]; siteHead[style].color = colorString\n        var webColor = g.getComputedStyle(siteHead, null).color; webColor = /rgb/.test(webColor) ? webColor[replace](/[^\\d,]/g, '')[split](',') : [0, 0, 0]\n        siteHead[style].color = ''; return { r: parseInt(webColor[0]), g: parseInt(webColor[1]), b: parseInt(webColor[2]) }\n      }\n    },\n    rgbToHex = function (r, g, b) { // transform rgb to hex or vice-versa | webkit browsers ignore HEX, always use RGB/RGBA\n      return '#' + ((1 << 24) + (r << 16) + (g << 8) + b).toString(16).slice(1)\n    },\n    hexToRGB = function (hex) {\n      var hexShorthand = /^#?([a-f\\d])([a-f\\d])([a-f\\d])$/i // Expand shorthand form (e.g. \"03F\") to full form (e.g. \"0033FF\")\n      hex = hex[replace](hexShorthand, function (m, r, g, b) {\n        return r + r + g + g + b + b\n      })\n      var result = /^#?([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})$/i.exec(hex)\n      return result ? {\n        r: parseInt(result[1], 16),\n        g: parseInt(result[2], 16),\n        b: parseInt(result[3], 16)\n      } : null\n    },\n    getInlineStyle = function (el) { // get transform style for element from cssText for .to() method\n      if (!el) return // if the scroll applies to `window` it returns as it has no styling\n      var css = el[style].cssText[replace](/\\s/g, '')[split](';'), transformObject = {} // the cssText | the resulting transform object\n\n      // if we have any inline style in the cssText attribute, usually it has higher priority\n      for (var i = 0, csl = css[length]; i < csl; i++) {\n        if (/transform/i.test(css[i])) {\n          var tps = css[i][split](':')[1][split](')') // all transform properties\n          for (var k = 0, tpl = tps[length] - 1; k < tpl; k++) {\n            var tpv = tps[k][split]('('), tp = tpv[0], tv = tpv[1] // each transform property, the sp is for transform property\n            if (transformFunctions[indexOf](tp) !== -1) {\n              transformObject[tp] = /translate3d/.test(tp) ? tv[split](',') : tv\n            }\n          }\n        }\n      }\n      return transformObject\n    },\n    getCurrentStyle = function (elem, propertyName) { // get computed style property for element for .to() method\n      var styleAttribute = elem[style], computedStyle = g.getComputedStyle(elem, null) || elem.currentStyle,\n        prefixedProp = property(propertyName), // the computed style | prefixed property\n        styleValue = styleAttribute[propertyName] && !/auto|initial|none|unset/.test(styleAttribute[propertyName]) ? styleAttribute[propertyName] : computedStyle[prefixedProp]\n      if (propertyName !== 'transform' && (prefixedProp in computedStyle || prefixedProp in styleAttribute)) {\n        if (styleValue) {\n          if (prefixedProp === 'filter') { // handle IE8 opacity\n            var filterValue = parseInt(styleValue[split]('=')[1][replace](')', ''))\n            return parseFloat(filterValue / 100)\n          } else {\n            return styleValue\n          }\n        } else {\n          return defaultPropsValues[propertyName]\n        }\n      }\n    },\n\n    // more internals\n    getAll = function () { return tweens },\n    removeAll = function () { tweens = [] },\n    add = function (tw) { tweens.push(tw) },\n    remove = function (tw) { var i = tweens[indexOf](tw); if (i !== -1) { tweens.splice(i, 1) } },\n    stop = function () { if (tick) { _cancelAnimationFrame(tick); tick = null } },\n\n    canTouch = ('ontouchstart' in g || navigator && navigator.msMaxTouchPoints) || false, // support Touch?\n    touchOrWheel = canTouch ? 'touchstart' : 'mousewheel', mouseEnter = 'mouseenter', // events to prevent on scroll\n    _requestAnimationFrame = g.requestAnimationFrame || g.webkitRequestAnimationFrame || function (c) { return setTimeout(c, 16) },\n    _cancelAnimationFrame = g.cancelAnimationFrame || g.webkitCancelRequestAnimationFrame || function (c) { return clearTimeout(c) },\n    transformProperty = property('transform'),\n\n    // true scroll container\n    html = document[getElementsByTagName]('HTML')[0],\n    scrollContainer = navigator && /webkit/i.test(navigator.userAgent) || document.compatMode == 'BackCompat' ? body : html,\n\n    // browser detection\n    isIE = navigator && (new RegExp('MSIE ([0-9]{1,}[\\.0-9]{0,})').exec(navigator.userAgent) !== null) ? parseFloat(RegExp.$1) : false,\n    isIE8 = isIE === 8, // check IE8/IE\n    isMobile = /iPhone|iPad|iPod|Android/i.test(navigator.userAgent) // we optimize morph depending on device type\n\n  // KUTE.js INTERPOLATORS\n  var interpolate = g.Interpolate = {},\n    number = interpolate.number = function (a, b, v) { // number1, number2, progress\n      a = +a; b -= a; return a + b * v\n    },\n    unit = interpolate.unit = function (a, b, u, v) { // number1, number2, unit, progress\n      a = +a; b -= a; return (a + b * v) + u\n    },\n    color = interpolate.color = function (a, b, v, toHex) { // rgba1, rgba2, progress, convertToHex(true/false)\n      var _c = {}, c, ep = ')', cm = ',', rgb = 'rgb(', rgba = 'rgba('\n      for (c in b) { _c[c] = c !== 'a' ? (number(a[c], b[c], v) >> 0 || 0) : (a[c] && b[c]) ? (number(a[c], b[c], v) * 100 >> 0) / 100 : null }\n      return toHex ? rgbToHex(_c.r, _c.g, _c.b) : !_c.a ? rgb + _c.r + cm + _c.g + cm + _c.b + ep : rgba + _c.r + cm + _c.g + cm + _c.b + cm + _c.a + ep\n    },\n    translate = interpolate.translate = isMobile ? function (a, b, u, v) {\n      var translation = {}\n      for (var ax in b) {\n        translation[ax] = (a[ax] === b[ax] ? b[ax] : (a[ax] + (b[ax] - a[ax]) * v) >> 0) + u\n      }\n      return translation.x || translation.y ? 'translate(' + translation.x + ',' + translation.y + ')'\n        : 'translate3d(' + translation.translateX + ',' + translation.translateY + ',' + translation.translateZ + ')'\n    } : function (a, b, u, v) {\n      var translation = {}\n      for (var ax in b) {\n        translation[ax] = (a[ax] === b[ax] ? b[ax] : ((a[ax] + (b[ax] - a[ax]) * v) * 100 >> 0) / 100) + u\n      }\n      return translation.x || translation.y ? 'translate(' + translation.x + ',' + translation.y + ')'\n        : 'translate3d(' + translation.translateX + ',' + translation.translateY + ',' + translation.translateZ + ')'\n    },\n    rotate = interpolate.rotate = function (a, b, u, v) {\n      var rotation = {}\n      for (var rx in b) {\n        rotation[rx] = rx === 'z' ? ('rotate(' + (((a[rx] + (b[rx] - a[rx]) * v) * 100 >> 0) / 100) + u + ')')\n          : (rx + '(' + (((a[rx] + (b[rx] - a[rx]) * v) * 100 >> 0) / 100) + u + ')')\n      }\n      return rotation.z ? rotation.z : (rotation.rotateX || '') + (rotation.rotateY || '') + (rotation.rotateZ || '')\n    },\n    skew = interpolate.skew = function (a, b, u, v) {\n      var skewProp = {}\n      for (var sx in b) {\n        skewProp[sx] = sx + '(' + (((a[sx] + (b[sx] - a[sx]) * v) * 10 >> 0) / 10) + u + ')'\n      }\n      return (skewProp.skewX || '') + (skewProp.skewY || '')\n    },\n    scale = interpolate.scale = function (a, b, v) {\n      return 'scale(' + (((a + (b - a) * v) * 1000 >> 0) / 1000) + ')'\n    },\n\n    // KUTE.js DOM update functions\n    DOM = {},\n    ticker = function (t) {\n      var i = 0\n      while (i < tweens[length]) {\n        if (update.call(tweens[i], t)) {\n          i++\n        } else {\n          tweens.splice(i, 1)\n        }\n      }\n      tick = _requestAnimationFrame(ticker)\n    },\n    update = function (t) {\n      t = t || time.now()\n      if (t < this._startTime && this[playing]) { return true }\n\n      var elapsed = Math.min((t - this._startTime) / this[options][duration], 1), progress = this[options][easing](elapsed) // calculate progress\n\n      for (var tweenProp in this[valuesEnd]) { // render the DOM update\n        DOM[tweenProp](this[element], tweenProp, this[valuesStart][tweenProp], this[valuesEnd][tweenProp], progress, this[options])\n      }\n\n      if (this[options].update) { this[options].update.call() } // fire the updateCallback\n\n      if (elapsed === 1) {\n        if (this[options][repeat] > 0) {\n          if (isFinite(this[options][repeat])) { this[options][repeat]-- }\n\n          if (this[options][yoyo]) { // handle yoyo\n            this.reversed = !this.reversed\n            reverse.call(this)\n          }\n\n          this._startTime = (this[options][yoyo] && !this.reversed) ? t + this[options][repeatDelay] : t // set the right time for delay\n          return true\n        } else {\n          if (this[options].complete) { this[options].complete.call() }\n\n          scrollOut.call(this) // unbind preventing scroll when scroll tween finished\n\n          for (var i = 0, ctl = this[options][chain][length]; i < ctl; i++) { // start animating chained tweens\n            this[options][chain][i].start()\n          }\n\n          // stop ticking when finished\n          close.call(this)\n        }\n        return false\n      }\n      return true\n    },\n\n    // applies the transform origin and perspective\n    perspective = function () {\n      var el = this[element], ops = this[options]\n      if (ops.perspective !== undefined && transformProperty in this[valuesEnd]) { // element perspective\n        this[valuesStart][transformProperty]['perspective'] = this[valuesEnd][transformProperty]['perspective']\n      }\n      // element transform origin / we filter it out for svgTransform to fix the Firefox transformOrigin bug https://bugzilla.mozilla.org/show_bug.cgi?id=923193\n      if (ops.transformOrigin !== undefined && (!('svgTransform' in this[valuesEnd]))) { el[style][property('transformOrigin')] = ops.transformOrigin } // set transformOrigin for CSS3 transforms only\n      if (ops.perspectiveOrigin !== undefined) { el[style][property('perspectiveOrigin')] = ops.perspectiveOrigin } // element perspective origin\n      if (ops.parentPerspective !== undefined) { el.parentNode[style][property('perspective')] = ops.parentPerspective + 'px' } // parent perspective\n      if (ops.parentPerspectiveOrigin !== undefined) { el.parentNode[style][property('perspectiveOrigin')] = ops.parentPerspectiveOrigin } // parent perspective origin\n    },\n\n    // plugin connector objects\n    prepareStart = {}, // check current property value when .to() method is used\n    crossCheck = {}, // checks for differences between start and end value, try to make sure start unit and end unit are same as well as consistent, stack transforms, process SVG paths\n\n    // parse properties object\n    // string parsing and property specific value processing\n    parseProperty = { // we already start working on core supported properties\n      boxModel: function (tweenProp, inputValue) {\n        if (!(tweenProp in DOM)) {\n          DOM[tweenProp] = function (elem, tweenProp, a, b, v) {\n            elem[style][tweenProp] = (v > 0.99 || v < 0.01 ? ((number(a, b, v) * 10) >> 0) / 10 : (number(a, b, v)) >> 0) + 'px'\n          }\n        }\n        var boxValue = trueDimension(inputValue), offsetProp = tweenProp === 'height' ? offsetHeight : offsetWidth\n        return boxValue.u === '%' ? boxValue.v * this[element][offsetProp] / 100 : boxValue.v\n      },\n      transform: function (tweenProp, inputValue) {\n        if (!(transformProperty in DOM)) {\n          DOM[transformProperty] = function (elem, tweenProp, a, b, v, o) {\n            elem[style][tweenProp] = (a.perspective || '') +\n              ('translate' in a ? translate(a.translate, b.translate, 'px', v) : '') +\n              ('rotate' in a ? rotate(a.rotate, b.rotate, 'deg', v) : '') +\n              ('skew' in a ? skew(a.skew, b.skew, 'deg', v) : '') +\n              ('scale' in a ? scale(a.scale, b.scale, v) : '')\n          }\n        }\n\n        // process each transform property\n        if (/translate/.test(tweenProp)) {\n          if (tweenProp === 'translate3d') {\n            var t3d = inputValue[split](','), t3d0 = trueDimension(t3d[0]), t3d1 = trueDimension(t3d[1], t3d2 = trueDimension(t3d[2]))\n            return {\n              translateX: t3d0.u === '%' ? (t3d0.v * this[element][offsetWidth] / 100) : t3d0.v,\n              translateY: t3d1.u === '%' ? (t3d1.v * this[element][offsetHeight] / 100) : t3d1.v,\n              translateZ: t3d2.u === '%' ? (t3d2.v * (this[element][offsetHeight] + this[element][offsetWidth]) / 200) : t3d2.v // to be changed with something like element and/or parent perspective\n            }\n          } else if (/^translate(?:[XYZ])$/.test(tweenProp)) {\n            var t1d = trueDimension(inputValue), percentOffset = /X/.test(tweenProp) ? this[element][offsetWidth] / 100 : /Y/.test(tweenProp) ? this[element][offsetHeight] / 100 : (this[element][offsetWidth] + this[element][offsetHeight]) / 200\n\n            return t1d.u === '%' ? (t1d.v * percentOffset) : t1d.v\n          } else if (tweenProp === 'translate') {\n            var tv = typeof inputValue === 'string' ? inputValue[split](',') : inputValue, t2d = {}, t2dv,\n              t2d0 = trueDimension(tv[0]), t2d1 = tv[length] ? trueDimension(tv[1]) : {v: 0, u: 'px'}\n            if (tv instanceof Array) {\n              t2d.x = t2d0.u === '%' ? (t2d0.v * this[element][offsetWidth] / 100) : t2d0.v,\n              t2d.y = t2d1.u === '%' ? (t2d1.v * this[element][offsetHeight] / 100) : t2d1.v\n            } else {\n              t2dv = trueDimension(tv)\n              t2d.x = t2dv.u === '%' ? (t2dv.v * this[element][offsetWidth] / 100) : t2dv.v,\n              t2d.y = 0\n            }\n\n            return t2d\n          }\n        } else if (/rotate|skew/.test(tweenProp)) {\n          if (/^rotate(?:[XYZ])$|skew(?:[XY])$/.test(tweenProp)) {\n            var r3d = trueDimension(inputValue, true)\n            return r3d.u === 'rad' ? radToDeg(r3d.v) : r3d.v\n          } else if (tweenProp === 'rotate') {\n            var r2d = {}, r2dv = trueDimension(inputValue, true)\n            r2d.z = r2dv.u === 'rad' ? radToDeg(r2dv.v) : r2dv.v\n            return r2d\n          }\n        } else if (tweenProp === 'scale') {\n          return parseFloat(inputValue) // this must be parseFloat(v)\n        }\n      },\n      unitless: function (tweenProp, inputValue) { // scroll | opacity\n        if (/scroll/.test(tweenProp) && !(tweenProp in DOM)) {\n          DOM[tweenProp] = function (elem, tweenProp, a, b, v) {\n            elem.scrollTop = (number(a, b, v)) >> 0\n          }\n        } else if (tweenProp === 'opacity') {\n          if (!(tweenProp in DOM)) {\n            if (isIE8) {\n              DOM[tweenProp] = function (elem, tweenProp, a, b, v) {\n                var st = 'alpha(opacity=', ep = ')'\n                elem[style].filter = st + ((number(a, b, v) * 100) >> 0) + ep\n              }\n            } else {\n              DOM[tweenProp] = function (elem, tweenProp, a, b, v) {\n                elem[style].opacity = ((number(a, b, v) * 100) >> 0) / 100\n              }\n            }\n          }\n        }\n        return parseFloat(inputValue)\n      },\n      colors: function (tweenProp, inputValue) { // colors\n        if (!(tweenProp in DOM)) {\n          DOM[tweenProp] = function (elem, tweenProp, a, b, v, o) {\n            elem[style][tweenProp] = color(a, b, v, o[keepHex])\n          }\n        }\n        return trueColor(inputValue)\n      }\n    },\n\n    // process properties for endValues and startValues or one of them\n    preparePropertiesObject = function (obj, fn) { // this, props object, type: start/end\n      var propertiesObject = fn === 'start' ? this[valuesStart] : this[valuesEnd],\n        skewObject = {}, rotateObject = {}, translateObject = {}, transformObject = {}\n\n      for (var x in obj) {\n        if (transformFunctions[indexOf](x) !== -1) { // transform object gets built here\n          var prepAxis = ['X', 'Y', 'Z'] // coordinates //   translate[x] = pp(x, obj[x]);\n          if (/^translate(?:[XYZ]|3d)$/.test(x)) { // process translate3d\n            for (var fnIndex = 0; fnIndex < 3; fnIndex++) {\n              var translateAxis = prepAxis[fnIndex]\n              if (/3d/.test(x)) {\n                translateObject['translate' + translateAxis] = parseProperty.transform.call(this, 'translate' + translateAxis, obj[x][fnIndex])\n              } else {\n                translateObject['translate' + translateAxis] = ('translate' + translateAxis in obj) ? parseProperty.transform.call(this, 'translate' + translateAxis, obj['translate' + translateAxis]) : 0\n              }\n            }\n            transformObject['translate'] = translateObject\n          } else if (/^rotate(?:[XYZ])$|^skew(?:[XY])$/.test(x)) { // process rotation/skew\n            var objectName = /rotate/.test(x) ? 'rotate' : 'skew',\n              rotationOrSkew = objectName === 'rotate' ? rotateObject : skewObject\n            for (var rIndex = 0; rIndex < 3; rIndex++) {\n              var oneAxis = prepAxis[rIndex]\n              if (obj[objectName + oneAxis] !== undefined && x !== 'skewZ') {\n                rotationOrSkew[objectName + oneAxis] = parseProperty.transform.call(this, objectName + oneAxis, obj[objectName + oneAxis])\n              }\n            }\n            transformObject[objectName] = rotationOrSkew\n          } else if (/(rotate|translate|scale)$/.test(x)) { // process 2d translation / rotation\n            transformObject[x] = parseProperty.transform.call(this, x, obj[x])\n          }\n          propertiesObject[transformProperty] = transformObject\n        } else {\n          if (boxModelProps[indexOf](x) !== -1) {\n            propertiesObject[x] = parseProperty.boxModel.call(this, x, obj[x])\n          } else if (opacityProp[indexOf](x) !== -1 || x === 'scroll') {\n            propertiesObject[x] = parseProperty.unitless.call(this, x, obj[x])\n          } else if (colorProps[indexOf](x) !== -1) {\n            propertiesObject[x] = parseProperty.colors.call(this, x, obj[x])\n          } else if (x in parseProperty) { // or any other property from css/ attr / svg / third party plugins\n            propertiesObject[x] = parseProperty[x].call(this, x, obj[x])\n          }\n        }\n      }\n    },\n    reverse = function () {\n      if (this[options][yoyo]) {\n        for (var reverseProp in this[valuesEnd]) {\n          var tmp = this[valuesRepeat][reverseProp]\n          this[valuesRepeat][reverseProp] = this[valuesEnd][reverseProp]\n          this[valuesEnd][reverseProp] = tmp\n          this[valuesStart][reverseProp] = this[valuesRepeat][reverseProp]\n        }\n      }\n    },\n    close = function () { //  when animation is finished reset repeat, yoyo&reversed tweens\n      if (this[repeat] > 0) { this[options][repeat] = this[repeat] }\n      if (this[options][yoyo] && this.reversed === true) { reverse.call(this); this.reversed = false }\n      this[playing] = false\n\n      setTimeout(function () { if (!tweens[length]) { stop() } }, 48) // when all animations are finished, stop ticking after ~3 frames\n    },\n    preventScroll = function (eventObj) { // prevent mousewheel or touch events while tweening scroll\n      var data = body.getAttribute(dataTweening)\n      if (data && data === 'scroll') { eventObj.preventDefault() }\n    },\n    scrollOut = function () { // prevent scroll when tweening scroll\n      if ('scroll' in this[valuesEnd] && body.getAttribute(dataTweening)) {\n        document[removeEventListener](touchOrWheel, preventScroll, false)\n        document[removeEventListener](mouseEnter, preventScroll, false)\n        body.removeAttribute(dataTweening)\n      }\n    },\n    scrollIn = function () {\n      if ('scroll' in this[valuesEnd] && !body.getAttribute(dataTweening)) {\n        document[addEventListener](touchOrWheel, preventScroll, false)\n        document[addEventListener](mouseEnter, preventScroll, false)\n        body.setAttribute(dataTweening, 'scroll')\n      }\n    },\n    processEasing = function (fn) {\n      if (typeof fn === 'function') {\n        return fn\n      } else if (typeof fn === 'string') {\n        return easingFn[fn] // regular Robert Penner Easing Functions\n      }\n    },\n    getStartValues = function () { // stack transform props for .to() chains\n      var startValues = {}, currentStyle = getInlineStyle(this[element]),\n        degreeProps = ['rotate', 'skew'], startAxis = ['X', 'Y', 'Z']\n\n      for (var tweenProperty in this[valuesStart]) {\n        if (transformFunctions[indexOf](tweenProperty) !== -1) {\n          var r2d = (/(rotate|translate|scale)$/.test(tweenProperty))\n          if (/translate/.test(tweenProperty) && tweenProperty !== 'translate') {\n            startValues['translate3d'] = currentStyle['translate3d'] || defaultPropsValues[tweenProperty]\n          } else if (r2d) { // 2d transforms\n            startValues[tweenProperty] = currentStyle[tweenProperty] || defaultPropsValues[tweenProperty]\n          } else if (!r2d && /rotate|skew/.test(tweenProperty)) { // all angles\n            for (var degIndex = 0; degIndex < 2; degIndex++) {\n              for (var axisIndex = 0; axisIndex < 3; axisIndex++) {\n                var s = degreeProps[degIndex] + startAxis[axisIndex]\n                if (transformFunctions[indexOf](s) !== -1 && (s in this[valuesStart])) { startValues[s] = currentStyle[s] || defaultPropsValues[s] }\n              }\n            }\n          }\n        } else {\n          if (tweenProperty !== 'scroll') {\n            if (tweenProperty === 'opacity' && isIE8) { // handle IE8 opacity\n              var currentOpacity = getCurrentStyle(this[element], 'filter')\n              startValues['opacity'] = typeof currentOpacity === 'number' ? currentOpacity : defaultPropsValues['opacity']\n            } else {\n              if (coreProps[indexOf](tweenProperty) !== -1) {\n                startValues[tweenProperty] = getCurrentStyle(this[element], tweenProperty) || d[tweenProperty]\n              } else { // plugins register here\n                startValues[tweenProperty] = tweenProperty in prepareStart ? prepareStart[tweenProperty].call(this, tweenProperty, this[valuesStart][tweenProperty]) : 0\n              }\n            }\n          } else {\n            startValues[tweenProperty] = this[element] === scrollContainer ? (g.pageYOffset || scrollContainer.scrollTop) : this[element].scrollTop\n          }\n        }\n      }\n      for (var currentProperty in currentStyle) { // also add to startValues values from previous tweens\n        if (transformFunctions[indexOf](currentProperty) !== -1 && (!(currentProperty in this[valuesStart]))) {\n          startValues[currentProperty] = currentStyle[currentProperty] || defaultPropsValues[currentProperty]\n        }\n      }\n\n      this[valuesStart] = {}\n      preparePropertiesObject.call(this, startValues, 'start')\n\n      if (transformProperty in this[valuesEnd]) { // let's stack transform\n        for (var sp in this[valuesStart][transformProperty]) { // sp is the object corresponding to the transform function objects translate / rotate / skew / scale\n          if (sp !== 'perspective') {\n            if (typeof this[valuesStart][transformProperty][sp] === 'object') {\n              for (var spp in this[valuesStart][transformProperty][sp]) { // 3rd level\n                if (typeof this[valuesEnd][transformProperty][sp] === 'undefined') { this[valuesEnd][transformProperty][sp] = {} }\n                if (typeof this[valuesStart][transformProperty][sp][spp] === 'number' && typeof this[valuesEnd][transformProperty][sp][spp] === 'undefined') {\n                  this[valuesEnd][transformProperty][sp][spp] = this[valuesStart][transformProperty][sp][spp]\n                }\n              }\n            } else if (typeof this[valuesStart][transformProperty][sp] === 'number') {\n              if (typeof this[valuesEnd][transformProperty][sp] === 'undefined') { // scale\n                this[valuesEnd][transformProperty][sp] = this[valuesStart][transformProperty][sp]\n              }\n            }\n          }\n        }\n      }\n    }\n\n  // core easing functions\n  var easingFn = g.Easing = {}\n  easingFn.linear = function (t) { return t }\n  easingFn.easingSinusoidalIn = function (t) { return -Math.cos(t * Math.PI / 2) + 1 }\n  easingFn.easingSinusoidalOut = function (t) { return Math.sin(t * Math.PI / 2) }\n  easingFn.easingSinusoidalInOut = function (t) { return -0.5 * (Math.cos(Math.PI * t) - 1) }\n  easingFn.easingQuadraticIn = function (t) { return t * t }\n  easingFn.easingQuadraticOut = function (t) { return t * (2 - t) }\n  easingFn.easingQuadraticInOut = function (t) { return t < 0.5 ? 2 * t * t : -1 + (4 - 2 * t) * t }\n  easingFn.easingCubicIn = function (t) { return t * t * t }\n  easingFn.easingCubicOut = function (t) { return (--t) * t * t + 1 }\n  easingFn.easingCubicInOut = function (t) { return t < 0.5 ? 4 * t * t * t : (t - 1) * (2 * t - 2) * (2 * t - 2) + 1 }\n  easingFn.easingQuarticIn = function (t) { return t * t * t * t }\n  easingFn.easingQuarticOut = function (t) { return 1 - (--t) * t * t * t }\n  easingFn.easingQuarticInOut = function (t) { return t < 0.5 ? 8 * t * t * t * t : 1 - 8 * (--t) * t * t * t }\n  easingFn.easingQuinticIn = function (t) { return t * t * t * t * t }\n  easingFn.easingQuinticOut = function (t) { return 1 + (--t) * t * t * t * t }\n  easingFn.easingQuinticInOut = function (t) { return t < 0.5 ? 16 * t * t * t * t * t : 1 + 16 * (--t) * t * t * t * t }\n  easingFn.easingCircularIn = function (t) { return -(Math.sqrt(1 - (t * t)) - 1) }\n  easingFn.easingCircularOut = function (t) { return Math.sqrt(1 - (t = t - 1) * t) }\n  easingFn.easingCircularInOut = function (t) { return ((t *= 2) < 1) ? -0.5 * (Math.sqrt(1 - t * t) - 1) : 0.5 * (Math.sqrt(1 - (t -= 2) * t) + 1) }\n  easingFn.easingExponentialIn = function (t) { return Math.pow(2, 10 * (t - 1)) - 0.001 }\n  easingFn.easingExponentialOut = function (t) { return 1 - Math.pow(2, -10 * t) }\n  easingFn.easingExponentialInOut = function (t) { return (t *= 2) < 1 ? 0.5 * Math.pow(2, 10 * (t - 1)) : 0.5 * (2 - Math.pow(2, -10 * (t - 1))) }\n  easingFn.easingBackIn = function (t) { var s = 1.70158; return t * t * ((s + 1) * t - s) }\n  easingFn.easingBackOut = function (t) { var s = 1.70158; return --t * t * ((s + 1) * t + s) + 1 }\n  easingFn.easingBackInOut = function (t) { var s = 1.70158 * 1.525; if ((t *= 2) < 1) return 0.5 * (t * t * ((s + 1) * t - s)); return 0.5 * ((t -= 2) * t * ((s + 1) * t + s) + 2) }\n  easingFn.easingElasticIn = function (t) {\n    var s, _kea = 0.1, _kep = 0.4\n    if (t === 0) return 0; if (t === 1) return 1\n    if (!_kea || _kea < 1) { _kea = 1; s = _kep / 4 } else s = _kep * Math.asin(1 / _kea) / Math.PI * 2\n    return -(_kea * Math.pow(2, 10 * (t -= 1)) * Math.sin((t - s) * Math.PI * 2 / _kep))\n  }\n  easingFn.easingElasticOut = function (t) {\n    var s, _kea = 0.1, _kep = 0.4\n    if (t === 0) return 0; if (t === 1) return 1\n    if (!_kea || _kea < 1) { _kea = 1; s = _kep / 4 } else s = _kep * Math.asin(1 / _kea) / Math.PI * 2\n    return (_kea * Math.pow(2, -10 * t) * Math.sin((t - s) * Math.PI * 2 / _kep) + 1)\n  }\n  easingFn.easingElasticInOut = function (t) {\n    var s, _kea = 0.1, _kep = 0.4\n    if (t === 0) return 0; if (t === 1) return 1\n    if (!_kea || _kea < 1) { _kea = 1; s = _kep / 4 } else s = _kep * Math.asin(1 / _kea) / Math.PI * 2\n    if ((t *= 2) < 1) return -0.5 * (_kea * Math.pow(2, 10 * (t -= 1)) * Math.sin((t - s) * Math.PI * 2 / _kep))\n    return _kea * Math.pow(2, -10 * (t -= 1)) * Math.sin((t - s) * Math.PI * 2 / _kep) * 0.5 + 1\n  }\n  easingFn.easingBounceIn = function (t) { return 1 - easingFn.easingBounceOut(1 - t) }\n  easingFn.easingBounceOut = function (t) {\n    if (t < (1 / 2.75)) { return 7.5625 * t * t } else if (t < (2 / 2.75)) { return 7.5625 * (t -= (1.5 / 2.75)) * t + 0.75 } else if (t < (2.5 / 2.75)) { return 7.5625 * (t -= (2.25 / 2.75)) * t + 0.9375 } else { return 7.5625 * (t -= (2.625 / 2.75)) * t + 0.984375 }\n  }\n  easingFn.easingBounceInOut = function (t) { if (t < 0.5) return easingFn.easingBounceIn(t * 2) * 0.5; return easingFn.easingBounceOut(t * 2 - 1) * 0.5 + 0.5 }\n\n  // single Tween object construct\n  var Tween = function (targetElement, startObject, endObject, optionsObj) {\n      this[element] = 'scroll' in endObject && (targetElement === undefined || targetElement === null) ? scrollContainer : targetElement // element animation is applied to\n\n      this[playing] = false\n      this.reversed = false\n      this.paused = false\n\n      this._startTime = null\n      this._pauseTime = null\n\n      this._startFired = false\n      this[options] = {}; for (var o in optionsObj) { this[options][o] = optionsObj[o] }\n      this[options].rpr = optionsObj.rpr || false // internal option to process inline/computed style at start instead of init true/false\n\n      this[valuesRepeat] = {} // internal valuesRepeat\n      this[valuesEnd] = {} // valuesEnd\n      this[valuesStart] = {} // valuesStart\n\n      preparePropertiesObject.call(this, endObject, 'end') // valuesEnd\n      if (this[options].rpr) { this[valuesStart] = startObject } else { preparePropertiesObject.call(this, startObject, 'start') } // valuesStart\n\n      if (this[options].perspective !== undefined && transformProperty in this[valuesEnd]) { // element transform perspective\n        var perspectiveString = 'perspective(' + parseInt(this[options].perspective) + 'px)'\n        this[valuesEnd][transformProperty].perspective = perspectiveString\n      }\n\n      for (var repeatProp in this[valuesEnd]) {\n        if (repeatProp in crossCheck && !this[options].rpr) crossCheck[repeatProp].call(this) // this is where we do the valuesStart and valuesEnd check for fromTo() method\n      }\n\n      this[options][chain] = [] // chained Tweens\n      this[options][easing] = processEasing(optionsObj[easing]) || easingFn[defaultOptions[easing]] || easingFn['linear'] // you can only set a core easing function as default\n      this[options][repeat] = optionsObj[repeat] || defaultOptions[repeat]\n      this[options][repeatDelay] = optionsObj[repeatDelay] || defaultOptions[repeatDelay]\n      this[options][yoyo] = optionsObj[yoyo] || defaultOptions[yoyo]\n      this[options][duration] = optionsObj[duration] || defaultOptions[duration] // duration option | default\n      this[options][delay] = optionsObj[delay] || defaultOptions[delay] // delay option | default\n\n      this[repeat] = this[options][repeat] // we cache the number of repeats to be able to put it back after all cycles finish\n    },\n    // tween control and chain\n    TweenProto = Tween.prototype = {\n      // queue tween object to main frame update\n      start: function (t) { // move functions that use the ticker outside the prototype to be in the same scope with it\n        scrollIn.call(this)\n\n        if (this[options].rpr) { getStartValues.apply(this) } // on start we reprocess the valuesStart for TO() method\n        perspective.apply(this) // apply the perspective and transform origin\n\n        for (var endProp in this[valuesEnd]) {\n          if (endProp in crossCheck && this[options].rpr) crossCheck[endProp].call(this) // this is where we do the valuesStart and valuesEnd check for to() method\n          this[valuesRepeat][endProp] = this[valuesStart][endProp]\n        }\n\n        // now it's a good time to start\n        tweens.push(this)\n        this[playing] = true\n        this.paused = false\n        this._startFired = false\n        this._startTime = t || time.now()\n        this._startTime += this[options][delay]\n\n        if (!this._startFired) {\n          if (this[options].start) { this[options].start.call() }\n          this._startFired = true\n        }\n        !tick && ticker()\n        return this\n      },\n      play: function () {\n        if (this.paused && this[playing]) {\n          this.paused = false\n          if (this[options].resume) { this[options].resume.call() }\n          this._startTime += time.now() - this._pauseTime\n          add(this)\n          !tick && ticker() // restart ticking if stopped\n        }\n        return this\n      },\n      resume: function () { return this.play() },\n      pause: function () {\n        if (!this.paused && this[playing]) {\n          remove(this)\n          this.paused = true\n          this._pauseTime = time.now()\n          if (this[options].pause) { this[options].pause.call() }\n        }\n        return this\n      },\n      stop: function () {\n        if (!this.paused && this[playing]) {\n          remove(this)\n          this[playing] = false\n          this.paused = false\n          scrollOut.call(this)\n\n          if (this[options].stop) { this[options].stop.call() }\n          this.stopChainedTweens()\n          close.call(this)\n        }\n        return this\n      },\n      chain: function () { this[options][chain] = arguments; return this },\n      stopChainedTweens: function () {\n        for (var i = 0, ctl = this[options][chain][length]; i < ctl; i++) {\n          this[options][chain][i].stop()\n        }\n      }\n    },\n\n    // the multi elements Tween constructs\n    TweensTO = function (els, vE, o) { // .to\n      this.tweens = []; var optionsObj = []\n      for (var i = 0, tl = els[length]; i < tl; i++) {\n        optionsObj[i] = o || {}; o[delay] = o[delay] || defaultOptions[delay]\n        optionsObj[i][delay] = i > 0 ? o[delay] + (o[offset] || defaultOptions[offset]) : o[delay]\n        this.tweens.push(to(els[i], vE, optionsObj[i]))\n      }\n    },\n    TweensFT = function (els, vS, vE, o) { // .fromTo\n      this.tweens = []; var optionsObj = []\n      for (var i = 0, l = els[length]; i < l; i++) {\n        optionsObj[i] = o || {}; o[delay] = o[delay] || defaultOptions[delay]\n        optionsObj[i][delay] = i > 0 ? o[delay] + (o[offset] || defaultOptions[offset]) : o[delay]\n        this.tweens.push(fromTo(els[i], vS, vE, optionsObj[i]))\n      }\n    },\n    ws = TweensTO.prototype = TweensFT.prototype = {\n      start: function (t) {\n        t = t || time.now()\n        for (var i = 0, tl = this.tweens[length]; i < tl; i++) {\n          this.tweens[i].start(t)\n        }\n        return this\n      },\n      stop: function () { for (var i = 0, tl = this.tweens[length]; i < tl; i++) { this.tweens[i].stop() } return this },\n      pause: function () { for (var i = 0, tl = this.tweens[length]; i < tl; i++) { this.tweens[i].pause() } return this },\n      chain: function () { this.tweens[this.tweens[length] - 1][options][chain] = arguments; return this },\n      play: function () { for (var i = 0, tl = this.tweens[length]; i < tl; i++) { this.tweens[i].play() } return this },\n      resume: function () { return this.play() }\n    },\n\n    // main methods\n    to = function (element, endObject, optionsObj) {\n      optionsObj = optionsObj || {}; optionsObj.rpr = true\n      return new Tween(selector(element), endObject, endObject, optionsObj)\n    },\n    fromTo = function (element, startObject, endObject, optionsObj) {\n      optionsObj = optionsObj || {}\n      return new Tween(selector(element), startObject, endObject, optionsObj)\n    },\n\n    // multiple elements tweening\n    allTo = function (elements, endObject, optionsObj) {\n      return new TweensTO(selector(elements, true), endObject, optionsObj)\n    },\n    allFromTo = function (elements, startObject, endObject, optionsObj) {\n      return new TweensFT(selector(elements, true), startObject, endObject, optionsObj)\n    }\n\n  return { // export core methods to public for plugins\n    property: property,\n    getPrefix: getPrefix,\n    selector: selector,\n    processEasing: processEasing, // utils\n    defaultOptions: defaultOptions, // default tween options since 1.6.1\n    to: to,\n    fromTo: fromTo,\n    allTo: allTo,\n    allFromTo: allFromTo, // main methods\n    ticker: ticker,\n    tick: tick,\n    tweens: tweens,\n    update: update,\n    dom: DOM, // update\n    parseProperty: parseProperty,\n    prepareStart: prepareStart,\n    crossCheck: crossCheck,\n    Tween: Tween, // property parsing & preparation | Tween | crossCheck\n    truD: trueDimension,\n    truC: trueColor,\n    rth: rgbToHex,\n    htr: hexToRGB,\n    getCurrentStyle: getCurrentStyle // property parsing\n  }\n}))\n"
  },
  {
    "path": "rollup.config.js",
    "content": "import babel from 'rollup-plugin-babel'\n\nexport default {\n  input: 'src/index.js',\n  output: {\n    format: 'umd',\n    file: 'bundled/Tween.js',\n    name: 'TWEEN',\n    sourcemap: true\n  },\n  context: 'this',\n  plugins: [babel()]\n}\n"
  },
  {
    "path": "src/Easing.js",
    "content": "/**\n * List of full easings\n * @namespace TWEEN.Easing\n * @example\n * import {Tween, Easing} from 'es6-tween'\n *\n * // then set via new Tween({x:0}).to({x:100}, 1000).easing(Easing.Quadratic.InOut).start()\n */\nconst Easing = {\n  Linear: {\n    None (k) {\n      return k\n    }\n  },\n\n  Quadratic: {\n    In (k) {\n      return Math.pow(k, 2)\n    },\n\n    Out (k) {\n      return k * (2 - k)\n    },\n\n    InOut (k) {\n      if ((k *= 2) < 1) {\n        return 0.5 * Math.pow(k, 2)\n      }\n\n      return -0.5 * (--k * (k - 2) - 1)\n    }\n  },\n\n  Cubic: {\n    In (k) {\n      return Math.pow(k, 3)\n    },\n\n    Out (k) {\n      return --k * k * k + 1\n    },\n\n    InOut (k) {\n      if ((k *= 2) < 1) {\n        return 0.5 * Math.pow(k, 3)\n      }\n\n      return 0.5 * ((k -= 2) * k * k + 2)\n    }\n  },\n\n  Quartic: {\n    In (k) {\n      return Math.pow(k, 4)\n    },\n\n    Out (k) {\n      return 1 - --k * k * k * k\n    },\n\n    InOut (k) {\n      if ((k *= 2) < 1) {\n        return 0.5 * Math.pow(k, 4)\n      }\n\n      return -0.5 * ((k -= 2) * k * k * k - 2)\n    }\n  },\n\n  Quintic: {\n    In (k) {\n      return Math.pow(k, 5)\n    },\n\n    Out (k) {\n      return --k * k * k * k * k + 1\n    },\n\n    InOut (k) {\n      if ((k *= 2) < 1) {\n        return 0.5 * Math.pow(k, 5)\n      }\n\n      return 0.5 * ((k -= 2) * k * k * k * k + 2)\n    }\n  },\n\n  Sinusoidal: {\n    In (k) {\n      return 1 - Math.cos((k * Math.PI) / 2)\n    },\n\n    Out (k) {\n      return Math.sin((k * Math.PI) / 2)\n    },\n\n    InOut (k) {\n      return 0.5 * (1 - Math.cos(Math.PI * k))\n    }\n  },\n\n  Exponential: {\n    In (k) {\n      return k === 0 ? 0 : Math.pow(1024, k - 1)\n    },\n\n    Out (k) {\n      return k === 1 ? 1 : 1 - Math.pow(2, -10 * k)\n    },\n\n    InOut (k) {\n      if (k === 0) {\n        return 0\n      }\n\n      if (k === 1) {\n        return 1\n      }\n\n      if ((k *= 2) < 1) {\n        return 0.5 * Math.pow(1024, k - 1)\n      }\n\n      return 0.5 * (-Math.pow(2, -10 * (k - 1)) + 2)\n    }\n  },\n\n  Circular: {\n    In (k) {\n      return 1 - Math.sqrt(1 - k * k)\n    },\n\n    Out (k) {\n      return Math.sqrt(1 - --k * k)\n    },\n\n    InOut (k) {\n      if ((k *= 2) < 1) {\n        return -0.5 * (Math.sqrt(1 - k * k) - 1)\n      }\n\n      return 0.5 * (Math.sqrt(1 - (k -= 2) * k) + 1)\n    }\n  },\n\n  Elastic: {\n    In (k) {\n      if (k === 0) {\n        return 0\n      }\n\n      if (k === 1) {\n        return 1\n      }\n\n      return -Math.pow(2, 10 * (k - 1)) * Math.sin((k - 1.1) * 5 * Math.PI)\n    },\n\n    Out (k) {\n      if (k === 0) {\n        return 0\n      }\n\n      if (k === 1) {\n        return 1\n      }\n\n      return Math.pow(2, -10 * k) * Math.sin((k - 0.1) * 5 * Math.PI) + 1\n    },\n\n    InOut (k) {\n      if (k === 0) {\n        return 0\n      }\n\n      if (k === 1) {\n        return 1\n      }\n\n      k *= 2\n\n      if (k < 1) {\n        return -0.5 * Math.pow(2, 10 * (k - 1)) * Math.sin((k - 1.1) * 5 * Math.PI)\n      }\n\n      return 0.5 * Math.pow(2, -10 * (k - 1)) * Math.sin((k - 1.1) * 5 * Math.PI) + 1\n    }\n  },\n\n  Back: {\n    In (k) {\n      const s = 1.70158\n\n      return k * k * ((s + 1) * k - s)\n    },\n\n    Out (k) {\n      const s = 1.70158\n\n      return --k * k * ((s + 1) * k + s) + 1\n    },\n\n    InOut (k) {\n      const s = 1.70158 * 1.525\n\n      if ((k *= 2) < 1) {\n        return 0.5 * (k * k * ((s + 1) * k - s))\n      }\n\n      return 0.5 * ((k -= 2) * k * ((s + 1) * k + s) + 2)\n    }\n  },\n\n  Bounce: {\n    In (k) {\n      return 1 - Easing.Bounce.Out(1 - k)\n    },\n\n    Out (k) {\n      let x = 2.75\n      let y = 7.5625\n      if (k < 1 / x) {\n        return y * k * k\n      } else if (k < 2 / x) {\n        return y * (k -= 1.5 / x) * k + 0.75\n      } else if (k < 2.5 / x) {\n        return y * (k -= 2.25 / x) * k + 0.9375\n      } else {\n        return y * (k -= 2.625 / x) * k + 0.984375\n      }\n    },\n\n    InOut (k) {\n      if (k < 0.5) {\n        return Easing.Bounce.In(k * 2) * 0.5\n      }\n\n      return Easing.Bounce.Out(k * 2 - 1) * 0.5 + 0.5\n    }\n  },\n\n  Stepped: {\n    steps: (steps) => (k) => ((k * steps) | 0) / steps\n  }\n}\n\nexport default Easing\n"
  },
  {
    "path": "src/Interpolation.js",
    "content": "import { isRGBColor, RGBA, STRING_PROP } from './constants'\n\n/**\n * List of full Interpolation\n * @namespace TWEEN.Interpolation\n * @example\n * import {Interpolation, Tween} from 'es6-tween'\n *\n * let bezier = Interpolation.Bezier\n * new Tween({x:0}).to({x:[0, 4, 8, 12, 15, 20, 30, 40, 20, 40, 10, 50]}, 1000).interpolation(bezier).start()\n * @memberof TWEEN\n */\nconst Interpolation = {\n  Linear (v, k, value) {\n    const m = v.length - 1\n    const f = m * k\n    const i = Math.floor(f)\n    const fn = Interpolation.Utils.Linear\n\n    if (k < 0) {\n      return fn(v[0], v[1], f, value)\n    }\n    if (k > 1) {\n      return fn(v[m], v[m - 1], m - f, value)\n    }\n    return fn(v[i], v[i + 1 > m ? m : i + 1], f - i, value)\n  },\n\n  Bezier (v, k, value) {\n    let b = Interpolation.Utils.Reset(value)\n    let n = v.length - 1\n    let pw = Math.pow\n    let fn = Interpolation.Utils.Bernstein\n\n    let isBArray = Array.isArray(b)\n\n    for (let i = 0; i <= n; i++) {\n      if (typeof b === 'number') {\n        b += pw(1 - k, n - i) * pw(k, i) * v[i] * fn(n, i)\n      } else if (isBArray) {\n        for (let p = 0, len = b.length; p < len; p++) {\n          if (typeof b[p] === 'number') {\n            b[p] += pw(1 - k, n - i) * pw(k, i) * v[i][p] * fn(n, i)\n          } else {\n            b[p] = v[i][p]\n          }\n        }\n      } else if (typeof b === 'object') {\n        for (let p in b) {\n          if (typeof b[p] === 'number') {\n            b[p] += pw(1 - k, n - i) * pw(k, i) * v[i][p] * fn(n, i)\n          } else {\n            b[p] = v[i][p]\n          }\n        }\n      } else if (typeof b === 'string') {\n        let STRING_BUFFER = ''\n        let idx = Math.round(n * k)\n        let vCurr = v[idx]\n        for (let ks = 1, len = vCurr.length; ks < len; ks++) {\n          STRING_BUFFER += vCurr[ks]\n        }\n        return STRING_BUFFER\n      }\n    }\n\n    return b\n  },\n\n  CatmullRom (v, k, value) {\n    const m = v.length - 1\n    let f = m * k\n    let i = Math.floor(f)\n    const fn = Interpolation.Utils.CatmullRom\n\n    if (v[0] === v[m]) {\n      if (k < 0) {\n        i = Math.floor((f = m * (1 + k)))\n      }\n\n      return fn(v[(i - 1 + m) % m], v[i], v[(i + 1) % m], v[(i + 2) % m], f - i, value)\n    } else {\n      if (k < 0) {\n        return fn(v[1], v[1], v[0], v[0], -k, value)\n      }\n\n      if (k > 1) {\n        return fn(v[m - 1], v[m - 1], v[m], v[m], (k | 0) - k, value)\n      }\n\n      return fn(v[i ? i - 1 : 0], v[i], v[m < i + 1 ? m : i + 1], v[m < i + 2 ? m : i + 2], f - i, value)\n    }\n  },\n\n  Utils: {\n    Linear (p0, p1, t, v) {\n      if (p0 === p1 || typeof p0 === 'string') {\n        // Quick return for performance reason\n        if (p1.length && p1.splice && p1.isString) {\n          p1 = ''\n          for (let i = 0, len = p0.length; i < len; i++) {\n            p1 += p0[i]\n          }\n        }\n        return p1\n      } else if (typeof p0 === 'number') {\n        return typeof p0 === 'function' ? p0(t) : p0 + (p1 - p0) * t\n      } else if (typeof p0 === 'object') {\n        if (p0.length !== undefined) {\n          const isForceStringProp = typeof p0[0] === 'string' || p0.isString\n          if (isForceStringProp || p0[0] === STRING_PROP) {\n            let STRING_BUFFER = ''\n            for (let i = isForceStringProp ? 0 : 1, len = p0.length; i < len; i++) {\n              let currentValue =\n                t === 0 ? p0[i] : t === 1 ? p1[i] : typeof p0[i] === 'number' ? p0[i] + (p1[i] - p0[i]) * t : p1[i]\n              if ((t > 0 && t < 1 && isRGBColor(p0, i)) || isRGBColor(p0, i, RGBA)) {\n                currentValue |= 0\n              }\n              STRING_BUFFER += currentValue\n            }\n            return STRING_BUFFER\n          } else if (v && v.length && v.splice) {\n            for (let p = 0, len = v.length; p < len; p++) {\n              v[p] = Interpolation.Utils.Linear(p0[p], p1[p], t, v[p])\n            }\n          }\n        } else {\n          for (const p in v) {\n            v[p] = Interpolation.Utils.Linear(p0[p], p1[p], t, v[p])\n          }\n        }\n        return v\n      }\n    },\n\n    Reset (value) {\n      if (Array.isArray(value)) {\n        for (let i = 0, len = value.length; i < len; i++) {\n          value[i] = Interpolation.Utils.Reset(value[i])\n        }\n        return value\n      } else if (typeof value === 'object') {\n        for (let i in value) {\n          value[i] = Interpolation.Utils.Reset(value[i])\n        }\n        return value\n      } else if (typeof value === 'number') {\n        return 0\n      }\n      return value\n    },\n\n    Bernstein (n, i) {\n      const fc = Interpolation.Utils.Factorial\n\n      return fc(n) / fc(i) / fc(n - i)\n    },\n\n    Factorial: (function () {\n      const a = [1]\n\n      return (n) => {\n        let s = 1\n\n        if (a[n]) {\n          return a[n]\n        }\n\n        for (let i = n; i > 1; i--) {\n          s *= i\n        }\n\n        a[n] = s\n        return s\n      }\n    })(),\n\n    CatmullRom (p0, p1, p2, p3, t, v) {\n      if (typeof p0 === 'string') {\n        return p1\n      } else if (typeof p0 === 'number') {\n        const v0 = (p2 - p0) * 0.5\n        const v1 = (p3 - p1) * 0.5\n        const t2 = t * t\n        const t3 = t * t2\n\n        return (2 * p1 - 2 * p2 + v0 + v1) * t3 + (-3 * p1 + 3 * p2 - 2 * v0 - v1) * t2 + v0 * t + p1\n      } else if (typeof p0 === 'object') {\n        if (p0.length !== undefined) {\n          if (p0[0] === STRING_PROP) {\n            let STRING_BUFFER = ''\n            for (let i = 1, len = p0.length; i < len; i++) {\n              let currentValue =\n                typeof p0[i] === 'number' ? Interpolation.Utils.CatmullRom(p0[i], p1[i], p2[i], p3[i], t) : p3[i]\n              if (isRGBColor(p0, i) || isRGBColor(p0, i, RGBA)) {\n                currentValue |= 0\n              }\n              STRING_BUFFER += currentValue\n            }\n            return STRING_BUFFER\n          }\n          for (let p = 0, len = v.length; p < len; p++) {\n            v[p] = Interpolation.Utils.CatmullRom(p0[p], p1[p], p2[p], p3[p], t, v[p])\n          }\n        } else {\n          for (const p in v) {\n            v[p] = Interpolation.Utils.CatmullRom(p0[p], p1[p], p2[p], p3[p], t, v[p])\n          }\n        }\n        return v\n      }\n    }\n  }\n}\n\nexport default Interpolation\n"
  },
  {
    "path": "src/Interpolator.js",
    "content": "import { decompose, recompose, decomposeString } from './constants'\n\n/**\n * Tween helper for plugins\n * @namespace TWEEN.Interpolator\n * @memberof TWEEN\n * @param {any} a - Initial position\n * @param {any} b - End position\n * @return {Function} Returns function that accepts number between `0-1`\n */\nconst Interpolator = (a, b) => {\n  let isArray = Array.isArray(a) && !a.isString\n  let origin = typeof a === 'string' ? a : isArray ? a.slice() : { ...a }\n  if (isArray) {\n    for (let i = 0, len = a.length; i < len; i++) {\n      if (a[i] !== b[i] || typeof a[i] !== 'number' || typeof b[i] === 'number') {\n        decompose(i, origin, a, b)\n      }\n    }\n  } else if (typeof a === 'object') {\n    for (let i in a) {\n      if (a[i] !== b[i] || typeof a[i] !== 'number' || typeof b[i] === 'number') {\n        decompose(i, origin, a, b)\n      }\n    }\n  } else if (typeof a === 'string') {\n    a = decomposeString(a)\n    b = decomposeString(b)\n\n    let i = 1\n    while (i < a.length) {\n      if (a[i] === b[i] && typeof a[i - 1] === 'string') {\n        a.splice(i - 1, 2, a[i - 1] + a[i])\n        b.splice(i - 1, 2, b[i - 1] + b[i])\n      } else {\n        i++\n      }\n    }\n  }\n  return (t) => {\n    if (isArray) {\n      for (let i = 0, len = a.length; i < len; i++) {\n        recompose(i, origin, a, b, t)\n      }\n    } else if (typeof origin === 'object') {\n      for (let i in a) {\n        recompose(i, origin, a, b, t)\n      }\n    } else if (typeof origin === 'string') {\n      origin = recompose(0, 0, a, b, t, t, true)\n    }\n    return origin\n  }\n}\n\nexport default Interpolator\n"
  },
  {
    "path": "src/NodeCache.js",
    "content": "import { remove } from './core'\n\nexport const Store = {}\nexport default function (node, object, tween) {\n  if (!node || !node.nodeType) {\n    return object\n  }\n  const ID = node.queueID || 'q_' + Date.now()\n  if (!node.queueID) {\n    node.queueID = ID\n  }\n  const storeID = Store[ID]\n  if (storeID) {\n    if (storeID.object === object && node === storeID.tween.node && tween._startTime === storeID.tween._startTime) {\n      remove(storeID.tween)\n    } else if (typeof object === 'object' && !!object && !!storeID.object) {\n      for (let prop in object) {\n        if (prop in storeID.object) {\n          if (tween._startTime === storeID.tween._startTime) {\n            delete storeID.object[prop]\n          } else {\n            storeID.propNormaliseRequired = true\n          }\n        }\n      }\n      Object.assign(storeID.object, object)\n    }\n    return storeID.object\n  }\n\n  if (typeof object === 'object' && !!object) {\n    Store[ID] = {\n      tween,\n      object,\n      propNormaliseRequired: false\n    }\n    return Store[ID].object\n  }\n\n  return object\n}\n"
  },
  {
    "path": "src/PlaybackPosition.js",
    "content": "export default class PlaybackPosition {\n  constructor () {\n    this.totalTime = 0\n    this.labels = []\n    this.offsets = []\n  }\n  parseLabel (name, offset) {\n    const { offsets, labels } = this\n    let i = labels.indexOf(name)\n    if (typeof name === 'string' && name.indexOf('=') !== -1 && !offset && i === -1) {\n      const rty = name.substr(name.indexOf('=') - 1, 2)\n      const rt = name.split(rty)\n      offset = rt.length === 2 ? rty + rt[1] : null\n      name = rt[0]\n      i = labels.indexOf(name)\n    }\n    if (i !== -1 && name) {\n      let currOffset = offsets[i] || 0\n      if (typeof offset === 'number') {\n        currOffset = offset\n      } else if (typeof offset === 'string') {\n        if (offset.indexOf('=') !== -1) {\n          const type = offset.charAt(0)\n          offset = Number(offset.substr(2))\n          if (type === '+' || type === '-') {\n            currOffset += parseFloat(type + offset)\n          } else if (type === '*') {\n            currOffset *= offset\n          } else if (type === '/') {\n            currOffset /= offset\n          } else if (type === '%') {\n            currOffset *= offset / 100\n          }\n        }\n      }\n      return currOffset\n    }\n    return typeof offset === 'number' ? offset : 0\n  }\n  addLabel (name, offset) {\n    this.labels.push(name)\n    this.offsets.push(this.parseLabel(name, offset))\n    return this\n  }\n  setLabel (name, offset) {\n    const i = this.labels.indexOf(name)\n    if (i !== -1) {\n      this.offsets.splice(i, 1, this.parseLabel(name, offset))\n    }\n    return this\n  }\n  eraseLabel (name) {\n    const i = this.labels.indexOf(name)\n    if (i !== -1) {\n      this.labels.splice(i, 1)\n      this.offsets.splice(i, 1)\n    }\n    return this\n  }\n}\n"
  },
  {
    "path": "src/Timeline.js",
    "content": "import { add, now, remove, isRunning, isLagSmoothing } from './core'\nimport PlaybackPosition from './PlaybackPosition'\nimport Tween from './Tween'\nimport {\n  EVENT_START,\n  EVENT_COMPLETE,\n  EVENT_REPEAT,\n  EVENT_REVERSE,\n  EVENT_RESTART,\n  EVENT_UPDATE,\n  FRAME_MS,\n  TOO_LONG_FRAME_MS\n} from './constants'\nimport Selector from './selector'\n\nexport const shuffle = (a) => {\n  let j\n  let x\n  let i\n  for (i = a.length; i; i -= 1) {\n    j = Math.floor(Math.random() * i)\n    x = a[i - 1]\n    a[i - 1] = a[j]\n    a[j] = x\n  }\n  return a\n}\n\nlet _id = 0\n/**\n * Timeline main constructor.\n *\n * It works same as `Tween` instance, using `.repeat`, `.restart` or `etc` works like a `Tween`, so please see `Tween` class for methods\n * @constructor\n * @class\n * @namespace TWEEN.Timeline\n * @param {Object=} params Default params for new tweens\n * @example let tl = new Timeline({delay:200})\n * @extends Tween\n */\nclass Timeline extends Tween {\n  constructor (params) {\n    super()\n    this._duration = 0\n    this._startTime = params && params.startTime !== undefined ? params.startTime : now()\n    this._tweens = []\n    this.elapsed = 0\n    this._id = _id++\n    this._defaultParams = params\n    this.position = new PlaybackPosition()\n    this.position.addLabel('afterLast', this._duration)\n    this.position.addLabel('afterInit', this._startTime)\n    this._onStartCallbackFired = false\n\n    return this\n  }\n  mapTotal (fn) {\n    fn.call(this, this._tweens)\n    return this\n  }\n  timingOrder (fn) {\n    const timing = fn(this._tweens.map((t) => t._startTime))\n    this._tweens.map((tween, i) => {\n      tween._startTime = timing[i]\n    })\n    return this\n  }\n  getTiming (mode, nodes, params, offset = 0) {\n    if (mode === 'reverse') {\n      const { stagger } = params\n      const totalStagger = (stagger || 0) * (nodes.length - 1)\n      return nodes.map((node, i) => totalStagger - (stagger || 0) * i + offset)\n    } else if (mode === 'async') {\n      return nodes.map((node) => offset)\n    } else if (mode === 'sequence' || mode === 'delayed') {\n      let { stagger } = params\n      if (!stagger) {\n        stagger = (params.duration || 1000) / (nodes.length - 1)\n      }\n      return nodes.map((node, i) => stagger * i + offset)\n    } else if (mode === 'oneByOne') {\n      return nodes.map((node) => params.duration)\n    } else if (mode === 'shuffle') {\n      const { stagger } = params\n      return shuffle(nodes.map((node, i) => (stagger || 0) * i + offset))\n    } else {\n      const { stagger } = params\n      return nodes.map((node, i) => (stagger || 0) * i + offset)\n    }\n  }\n\n  /**\n   * @param {Array<Element>} nodes DOM Elements Collection (converted to Array)\n   * @param {object} from - Initial value\n   * @param {object} to - Target value\n   * @param {object} params - Options of tweens\n   * @example tl.fromTo(nodes, {x:0}, {x:200}, {duration:1000, stagger:200})\n   * @memberof Timeline\n   * @static\n   */\n  fromTo (nodes, from, to, params) {\n    nodes = Selector(nodes, true, true)\n    if (nodes && nodes.length) {\n      if (this._defaultParams) {\n        params = params ? { ...this._defaultParams, ...params } : this._defaultParams\n      }\n      const position = params.label\n      const offset =\n        typeof position === 'number'\n          ? position\n          : this.position.parseLabel(typeof position !== 'undefined' ? position : 'afterLast', null)\n      const mode = this.getTiming(params.mode, nodes, params, offset)\n      for (let i = 0, node, len = nodes.length; i < len; i++) {\n        node = nodes[i]\n        this.add(\n          Tween.fromTo(\n            node,\n            typeof from === 'function'\n              ? from(i, nodes.length)\n              : typeof from === 'object' && !!from\n                ? { ...from }\n                : null,\n            typeof to === 'function' ? to(i, nodes.length) : to,\n            typeof params === 'function' ? params(i, nodes.length) : params\n          ),\n          mode[i]\n        )\n      }\n    }\n    return this.start()\n  }\n\n  /**\n   * @param {Array<Element>} nodes DOM Elements Collection (converted to Array)\n   * @param {object} from - Initial value\n   * @param {object} params - Options of tweens\n   * @example tl.from(nodes, {x:200}, {duration:1000, stagger:200})\n   * @memberof Timeline\n   * @static\n   */\n  from (nodes, from, params) {\n    return this.fromTo(nodes, from, null, params)\n  }\n\n  /**\n   * @param {Array<Element>} nodes DOM Elements Collection (converted to Array)\n   * @param {object} to - Target value\n   * @param {object} params - Options of tweens\n   * @example tl.to(nodes, {x:200}, {duration:1000, stagger:200})\n   * @memberof Timeline\n   * @static\n   */\n  to (nodes, to, params) {\n    return this.fromTo(nodes, null, to, params)\n  }\n\n  /**\n   * Add label to Timeline\n   * @param {string} name Label name\n   * @param {any} offset Label value, can be `number` and/or `string`\n   * @example tl.add('label1', 200)\n   * @memberof Timeline\n   */\n  addLabel (name, offset) {\n    this.position.addLabel(name, offset)\n    return this\n  }\n\n  map (fn) {\n    for (let i = 0, len = this._tweens.length; i < len; i++) {\n      const _tween = this._tweens[i]\n      fn(_tween, i)\n      this._duration = Math.max(this._duration, _tween._duration + _tween._startTime)\n    }\n    return this\n  }\n\n  /**\n   * Add tween to Timeline\n   * @param {Tween} tween Tween instance\n   * @param {position} position Can be label name, number or relative number to label\n   * @example tl.add(new Tween(node, {x:0}).to({x:200}, 200))\n   * @memberof Timeline\n   */\n  add (tween, position) {\n    if (Array.isArray(tween)) {\n      tween.map((_tween) => {\n        this.add(_tween, position)\n      })\n      return this\n    } else if (typeof tween === 'object' && !(tween instanceof Tween)) {\n      tween = new Tween(tween.from).to(tween.to, tween)\n    }\n\n    const { _defaultParams, _duration } = this\n\n    if (_defaultParams) {\n      for (const method in _defaultParams) {\n        if (typeof tween[method] === 'function') {\n          tween[method](_defaultParams[method])\n        }\n      }\n    }\n\n    const offset =\n      typeof position === 'number'\n        ? position\n        : this.position.parseLabel(typeof position !== 'undefined' ? position : 'afterLast', null)\n    tween._startTime = Math.max(this._startTime, tween._delayTime, offset)\n    tween._delayTime = offset\n    tween._isPlaying = true\n    this._duration = Math.max(_duration, Math.max(tween._startTime + tween._delayTime, tween._duration))\n    this._tweens.push(tween)\n    this.position.setLabel('afterLast', this._duration)\n    return this\n  }\n\n  restart () {\n    this._startTime += now()\n\n    add(this)\n\n    return this.emit(EVENT_RESTART)\n  }\n\n  easing (easing) {\n    return this.map((tween) => tween.easing(easing))\n  }\n\n  interpolation (interpolation) {\n    return this.map((tween) => tween.interpolation(interpolation))\n  }\n\n  update (time) {\n    const {\n      _tweens,\n      _duration,\n      _reverseDelayTime,\n      _startTime,\n      _reversed,\n      _yoyo,\n      _repeat,\n      _isFinite,\n      _isPlaying,\n      _prevTime,\n      _onStartCallbackFired\n    } = this\n\n    let elapsed\n\n    time = time !== undefined ? time : now()\n\n    let delta = time - _prevTime\n    this._prevTime = time\n    if (delta > TOO_LONG_FRAME_MS && isRunning() && isLagSmoothing()) {\n      time -= delta - FRAME_MS\n    }\n\n    if (!_isPlaying || time < _startTime) {\n      return true\n    }\n\n    elapsed = (time - _startTime) / _duration\n    elapsed = elapsed > 1 ? 1 : elapsed\n    elapsed = _reversed ? 1 - elapsed : elapsed\n\n    this.elapsed = elapsed\n\n    if (!_onStartCallbackFired) {\n      this.emit(EVENT_START)\n      this._onStartCallbackFired = true\n    }\n\n    const timing = time - _startTime\n    const _timing = _reversed ? _duration - timing : timing\n\n    let i = 0\n    while (i < _tweens.length) {\n      _tweens[i].update(_timing)\n      i++\n    }\n\n    this.emit(EVENT_UPDATE, elapsed, timing)\n\n    if (elapsed === 1 || (_reversed && elapsed === 0)) {\n      if (_repeat) {\n        if (_isFinite) {\n          this._repeat--\n        }\n\n        this.emit(_reversed ? EVENT_REVERSE : EVENT_REPEAT)\n\n        if (_yoyo) {\n          this._reversed = !_reversed\n          this.timingOrder((timing) => timing.reverse())\n        }\n\n        if (_reversed && _reverseDelayTime) {\n          this._startTime = time + _reverseDelayTime\n        } else {\n          this._startTime = time\n        }\n\n        i = 0\n        while (i < _tweens.length) {\n          _tweens[i].reassignValues(time)\n          i++\n        }\n\n        return true\n      } else {\n        this.emit(EVENT_COMPLETE)\n        this._repeat = this._r\n\n        remove(this)\n        this._isPlaying = false\n\n        return false\n      }\n    }\n\n    return true\n  }\n\n  progress (value) {\n    return value !== undefined ? this.update(value * this._duration) : this.elapsed\n  }\n}\nexport default Timeline\n"
  },
  {
    "path": "src/Tween.js",
    "content": "import { add, now, Plugins, remove, isRunning, isLagSmoothing } from './core'\nimport Easing from './Easing'\nimport Interpolation from './Interpolation'\nimport NodeCache, { Store } from './NodeCache'\nimport Selector from './selector'\nimport {\n  decompose,\n  decomposeString,\n  recompose,\n  deepCopy,\n  SET_NESTED,\n  EVENT_CALLBACK,\n  CHAINED_TWEENS,\n  EVENT_UPDATE,\n  EVENT_COMPLETE,\n  EVENT_START,\n  EVENT_REPEAT,\n  EVENT_REVERSE,\n  EVENT_PAUSE,\n  EVENT_PLAY,\n  EVENT_RESTART,\n  EVENT_STOP,\n  EVENT_SEEK,\n  FRAME_MS,\n  TOO_LONG_FRAME_MS\n} from './constants'\n\nlet _id = 0 // Unique ID\nconst defaultEasing = Easing.Linear.None\n\n/**\n * Tween main constructor\n * @constructor\n * @class\n * @namespace TWEEN.Tween\n * @param {Object|Element} node Node Element or Tween initial object\n * @param {Object=} object If Node Element is using, second argument is used for Tween initial object\n * @example let tween = new Tween(myNode, {width:'100px'}).to({width:'300px'}, 2000).start()\n */\nclass Tween {\n  /**\n   * Easier way to call the Tween\n   * @param {Element} node DOM Element\n   * @param {object} object - Initial value\n   * @param {object} to - Target value\n   * @param {object} params - Options of tweens\n   * @example Tween.fromTo(node, {x:0}, {x:200}, {duration:1000})\n   * @memberof TWEEN.Tween\n   * @static\n   */\n  static fromTo (node, object, to, params = {}) {\n    params.quickRender = params.quickRender ? params.quickRender : !to\n    const tween = new Tween(node, object).to(to, params)\n    if (params.quickRender) {\n      tween.render().update(tween._startTime)\n      tween._rendered = false\n      tween._onStartCallbackFired = false\n    }\n    return tween\n  }\n  /**\n   * Easier way calling constructor only applies the `to` value, useful for CSS Animation\n   * @param {Element} node DOM Element\n   * @param {object} to - Target value\n   * @param {object} params - Options of tweens\n   * @example Tween.to(node, {x:200}, {duration:1000})\n   * @memberof TWEEN.Tween\n   * @static\n   */\n  static to (node, to, params) {\n    return Tween.fromTo(node, null, to, params)\n  }\n  /**\n   * Easier way calling constructor only applies the `from` value, useful for CSS Animation\n   * @param {Element} node DOM Element\n   * @param {object} from - Initial value\n   * @param {object} params - Options of tweens\n   * @example Tween.from(node, {x:200}, {duration:1000})\n   * @memberof TWEEN.Tween\n   * @static\n   */\n  static from (node, from, params) {\n    return Tween.fromTo(node, from, null, params)\n  }\n  constructor (node, object) {\n    this.id = _id++\n    if (!!node && typeof node === 'object' && !object && !node.nodeType) {\n      object = this.object = node\n      node = null\n    } else if (!!node && (node.nodeType || node.length || typeof node === 'string')) {\n      node = this.node = Selector(node)\n      object = this.object = NodeCache(node, object, this)\n    }\n    this._valuesEnd = null\n    this._valuesStart = Array.isArray(object) ? [] : {}\n\n    this._duration = 1000\n    this._easingFunction = defaultEasing\n    this._easingReverse = defaultEasing\n    this._interpolationFunction = Interpolation.Linear\n\n    this._startTime = 0\n    this._initTime = 0\n    this._delayTime = 0\n    this._repeat = 0\n    this._r = 0\n    this._isPlaying = false\n    this._yoyo = false\n    this._reversed = false\n\n    this._onStartCallbackFired = false\n    this._pausedTime = null\n    this._isFinite = true\n    this._maxListener = 15\n    this._chainedTweensCount = 0\n    this._prevTime = null\n\n    return this\n  }\n\n  /**\n   * Sets max `event` listener's count to Events system\n   * @param {number} count - Event listener's count\n   * @memberof TWEEN.Tween\n   */\n  setMaxListener (count = 15) {\n    this._maxListener = count\n    return this\n  }\n\n  /**\n   * Adds `event` to Events system\n   * @param {string} event - Event listener name\n   * @param {Function} callback - Event listener callback\n   * @memberof TWEEN.Tween\n   */\n  on (event, callback) {\n    const { _maxListener } = this\n    const callbackName = event + EVENT_CALLBACK\n    for (let i = 0; i < _maxListener; i++) {\n      const callbackId = callbackName + i\n      if (!this[callbackId]) {\n        this[callbackId] = callback\n        break\n      }\n    }\n    return this\n  }\n\n  /**\n   * Adds `event` to Events system.\n   * Removes itself after fired once\n   * @param {string} event - Event listener name\n   * @param {Function} callback - Event listener callback\n   * @memberof TWEEN.Tween\n   */\n  once (event, callback) {\n    const { _maxListener } = this\n    const callbackName = event + EVENT_CALLBACK\n    for (let i = 0; i < _maxListener; i++) {\n      const callbackId = callbackName + i\n      if (!this[callbackId]) {\n        this[callbackId] = (...args) => {\n          callback.apply(this, args)\n          this[callbackId] = null\n        }\n        break\n      }\n    }\n    return this\n  }\n\n  /**\n   * Removes `event` from Events system\n   * @param {string} event - Event listener name\n   * @param {Function} callback - Event listener callback\n   * @memberof TWEEN.Tween\n   */\n  off (event, callback) {\n    const { _maxListener } = this\n    const callbackName = event + EVENT_CALLBACK\n    for (let i = 0; i < _maxListener; i++) {\n      const callbackId = callbackName + i\n      if (this[callbackId] === callback) {\n        this[callbackId] = null\n      }\n    }\n    return this\n  }\n\n  /**\n   * Emits/Fired/Trigger `event` from Events system listeners\n   * @param {string} event - Event listener name\n   * @memberof TWEEN.Tween\n   */\n  emit (event, arg1, arg2, arg3) {\n    const { _maxListener } = this\n    const callbackName = event + EVENT_CALLBACK\n\n    if (!this[callbackName + 0]) {\n      return this\n    }\n    for (let i = 0; i < _maxListener; i++) {\n      const callbackId = callbackName + i\n      if (this[callbackId]) {\n        this[callbackId](arg1, arg2, arg3)\n      }\n    }\n    return this\n  }\n\n  /**\n   * @return {boolean} State of playing of tween\n   * @example tween.isPlaying() // returns `true` if tween in progress\n   * @memberof TWEEN.Tween\n   */\n  isPlaying () {\n    return this._isPlaying\n  }\n\n  /**\n   * @return {boolean} State of started of tween\n   * @example tween.isStarted() // returns `true` if tween in started\n   * @memberof TWEEN.Tween\n   */\n  isStarted () {\n    return this._onStartCallbackFired\n  }\n\n  /**\n   * Reverses the tween state/direction\n   * @example tween.reverse()\n   * @param {boolean=} state Set state of current reverse\n   * @memberof TWEEN.Tween\n   */\n  reverse (state) {\n    const { _reversed } = this\n\n    this._reversed = state !== undefined ? state : !_reversed\n\n    return this\n  }\n\n  /**\n   * @return {boolean} State of reversed\n   * @example tween.reversed() // returns `true` if tween in reversed state\n   * @memberof TWEEN.Tween\n   */\n  reversed () {\n    return this._reversed\n  }\n\n  /**\n   * Pauses tween\n   * @example tween.pause()\n   * @memberof TWEEN.Tween\n   */\n  pause () {\n    if (!this._isPlaying) {\n      return this\n    }\n\n    this._isPlaying = false\n\n    remove(this)\n    this._pausedTime = now()\n\n    return this.emit(EVENT_PAUSE, this.object)\n  }\n\n  /**\n   * Play/Resume the tween\n   * @example tween.play()\n   * @memberof TWEEN.Tween\n   */\n  play () {\n    if (this._isPlaying) {\n      return this\n    }\n\n    this._isPlaying = true\n\n    this._startTime += now() - this._pausedTime\n    this._initTime = this._startTime\n    add(this)\n    this._pausedTime = now()\n\n    return this.emit(EVENT_PLAY, this.object)\n  }\n\n  /**\n   * Restarts tween from initial value\n   * @param {boolean=} noDelay If this param is set to `true`, restarts tween without `delay`\n   * @example tween.restart()\n   * @memberof TWEEN.Tween\n   */\n  restart (noDelay) {\n    this._repeat = this._r\n    this.reassignValues()\n\n    add(this)\n\n    return this.emit(EVENT_RESTART, this.object)\n  }\n\n  /**\n   * Seek tween value by `time`. Note: Not works as excepted. PR are welcome\n   * @param {Time} time Tween update time\n   * @param {boolean=} keepPlaying When this param is set to `false`, tween pausing after seek\n   * @example tween.seek(500)\n   * @memberof TWEEN.Tween\n   * @deprecated Not works as excepted, so we deprecated this method\n   */\n  seek (time, keepPlaying) {\n    const { _duration, _initTime, _startTime, _reversed } = this\n\n    let updateTime = _initTime + time\n    this._isPlaying = true\n\n    if (updateTime < _startTime && _startTime >= _initTime) {\n      this._startTime -= _duration\n      this._reversed = !_reversed\n    }\n\n    this.update(time, false)\n\n    this.emit(EVENT_SEEK, time, this.object)\n\n    return keepPlaying ? this : this.pause()\n  }\n\n  /**\n   * Sets tween duration\n   * @param {number} amount Duration is milliseconds\n   * @example tween.duration(2000)\n   * @memberof TWEEN.Tween\n   * @deprecated Not works as excepted and useless, so we deprecated this method\n   */\n  duration (amount) {\n    this._duration = typeof amount === 'function' ? amount(this._duration) : amount\n\n    return this\n  }\n\n  /**\n   * Sets target value and duration\n   * @param {object} properties Target value (to value)\n   * @param {number|Object=} [duration=1000] Duration of tween\n   * @example let tween = new Tween({x:0}).to({x:100}, 2000)\n   * @memberof TWEEN.Tween\n   */\n  to (properties, duration = 1000, maybeUsed) {\n    this._valuesEnd = properties\n\n    if (typeof duration === 'number' || typeof duration === 'function') {\n      this._duration = typeof duration === 'function' ? duration(this._duration) : duration\n    } else if (typeof duration === 'object') {\n      for (const prop in duration) {\n        if (typeof this[prop] === 'function') {\n          const [arg1 = null, arg2 = null, arg3 = null, arg4 = null] = Array.isArray(duration[prop])\n            ? duration[prop]\n            : [duration[prop]]\n          this[prop](arg1, arg2, arg3, arg4)\n        }\n      }\n    }\n\n    return this\n  }\n\n  /**\n   * Renders and computes value at first render\n   * @private\n   * @memberof TWEEN.Tween\n   */\n  render () {\n    if (this._rendered) {\n      return this\n    }\n    let { _valuesStart, _valuesEnd, object, node, InitialValues } = this\n\n    SET_NESTED(object)\n    SET_NESTED(_valuesEnd)\n\n    if (node && node.queueID && Store[node.queueID]) {\n      const prevTweenByNode = Store[node.queueID]\n      if (prevTweenByNode.propNormaliseRequired && prevTweenByNode.tween !== this) {\n        for (const property in _valuesEnd) {\n          if (prevTweenByNode.tween._valuesEnd[property] !== undefined) {\n            // delete prevTweenByNode.tween._valuesEnd[property];\n          }\n        }\n        prevTweenByNode.normalisedProp = true\n        prevTweenByNode.propNormaliseRequired = false\n      }\n    }\n\n    if (node && InitialValues) {\n      if (!object || Object.keys(object).length === 0) {\n        object = this.object = NodeCache(node, InitialValues(node, _valuesEnd), this)\n      } else if (!_valuesEnd || Object.keys(_valuesEnd).length === 0) {\n        _valuesEnd = this._valuesEnd = InitialValues(node, object)\n      }\n    }\n    if (!_valuesStart.processed) {\n      for (const property in _valuesEnd) {\n        let start = object && object[property] && deepCopy(object[property])\n        let end = _valuesEnd[property]\n        if (Plugins[property] && Plugins[property].init) {\n          Plugins[property].init.call(this, start, end, property, object)\n          if (start === undefined && _valuesStart[property]) {\n            start = _valuesStart[property]\n          }\n          if (Plugins[property].skipProcess) {\n            continue\n          }\n        }\n        if (\n          (typeof start === 'number' && isNaN(start)) ||\n          start === null ||\n          end === null ||\n          start === false ||\n          end === false ||\n          start === undefined ||\n          end === undefined ||\n          start === end\n        ) {\n          continue\n        }\n        _valuesStart[property] = start\n        if (Array.isArray(end)) {\n          if (!Array.isArray(start)) {\n            end.unshift(start)\n            for (let i = 0, len = end.length; i < len; i++) {\n              if (typeof end[i] === 'string') {\n                end[i] = decomposeString(end[i])\n              }\n            }\n          } else {\n            if (end.isString && object[property].isString && !start.isString) {\n              start.isString = true\n            } else {\n              decompose(property, object, _valuesStart, _valuesEnd)\n            }\n          }\n        } else {\n          decompose(property, object, _valuesStart, _valuesEnd)\n        }\n        if (typeof start === 'number' && typeof end === 'string' && end[1] === '=') {\n          continue\n        }\n      }\n      _valuesStart.processed = true\n    }\n\n    if (Tween.Renderer && this.node && Tween.Renderer.init) {\n      Tween.Renderer.init.call(this, object, _valuesStart, _valuesEnd)\n      this.__render = true\n    }\n\n    this._rendered = true\n\n    return this\n  }\n\n  /**\n   * Start the tweening\n   * @param {number|string} time setting manual time instead of Current browser timestamp or like `+1000` relative to current timestamp\n   * @example tween.start()\n   * @memberof TWEEN.Tween\n   */\n  start (time) {\n    this._startTime = time !== undefined ? (typeof time === 'string' ? now() + parseFloat(time) : time) : now()\n    this._startTime += this._delayTime\n    this._initTime = this._prevTime = this._startTime\n\n    this._onStartCallbackFired = false\n    this._rendered = false\n    this._isPlaying = true\n\n    add(this)\n\n    return this\n  }\n\n  /**\n   * Stops the tween\n   * @example tween.stop()\n   * @memberof TWEEN.Tween\n   */\n  stop () {\n    let { _isPlaying, _isFinite, object, _startTime, _duration, _r, _yoyo, _reversed } = this\n\n    if (!_isPlaying) {\n      return this\n    }\n\n    let atStart = _isFinite ? (_r + 1) % 2 === 1 : !_reversed\n\n    this._reversed = false\n\n    if (_yoyo && atStart) {\n      this.update(_startTime)\n    } else {\n      this.update(_startTime + _duration)\n    }\n    remove(this)\n\n    return this.emit(EVENT_STOP, object)\n  }\n\n  /**\n   * Set delay of tween\n   * @param {number} amount Sets tween delay / wait duration\n   * @example tween.delay(500)\n   * @memberof TWEEN.Tween\n   */\n  delay (amount) {\n    this._delayTime = typeof amount === 'function' ? amount(this._delayTime) : amount\n\n    return this\n  }\n\n  /**\n   * Chained tweens\n   * @param {any} arguments Arguments list\n   * @example tween.chainedTweens(tween1, tween2)\n   * @memberof TWEEN.Tween\n   */\n  chainedTweens () {\n    this._chainedTweensCount = arguments.length\n    if (!this._chainedTweensCount) {\n      return this\n    }\n    for (let i = 0, len = this._chainedTweensCount; i < len; i++) {\n      this[CHAINED_TWEENS + i] = arguments[i]\n    }\n\n    return this\n  }\n\n  /**\n   * Sets how times tween is repeating\n   * @param {amount} amount the times of repeat\n   * @example tween.repeat(5)\n   * @memberof TWEEN.Tween\n   */\n  repeat (amount) {\n    this._repeat = !this._duration ? 0 : typeof amount === 'function' ? amount(this._repeat) : amount\n    this._r = this._repeat\n    this._isFinite = isFinite(amount)\n\n    return this\n  }\n\n  /**\n   * Set delay of each repeat alternate of tween\n   * @param {number} amount Sets tween repeat alternate delay / repeat alternate wait duration\n   * @example tween.reverseDelay(500)\n   * @memberof TWEEN.Tween\n   */\n  reverseDelay (amount) {\n    this._reverseDelayTime = typeof amount === 'function' ? amount(this._reverseDelayTime) : amount\n\n    return this\n  }\n\n  /**\n   * Set `yoyo` state (enables reverse in repeat)\n   * @param {boolean} state Enables alternate direction for repeat\n   * @param {Function=} _easingReverse Easing function in reverse direction\n   * @example tween.yoyo(true)\n   * @memberof TWEEN.Tween\n   */\n  yoyo (state, _easingReverse) {\n    this._yoyo = typeof state === 'function' ? state(this._yoyo) : state === null ? this._yoyo : state\n    if (!state) {\n      this._reversed = false\n    }\n    this._easingReverse = _easingReverse || null\n\n    return this\n  }\n\n  /**\n   * Set easing\n   * @param {Function} _easingFunction Easing function, applies in non-reverse direction if Tween#yoyo second argument is applied\n   * @example tween.easing(Easing.Elastic.InOut)\n   * @memberof TWEEN.Tween\n   */\n  easing (_easingFunction) {\n    this._easingFunction = _easingFunction\n\n    return this\n  }\n\n  /**\n   * Set interpolation\n   * @param {Function} _interpolationFunction Interpolation function\n   * @example tween.interpolation(Interpolation.Bezier)\n   * @memberof TWEEN.Tween\n   */\n  interpolation (_interpolationFunction) {\n    if (typeof _interpolationFunction === 'function') {\n      this._interpolationFunction = _interpolationFunction\n    }\n\n    return this\n  }\n\n  /**\n   * Reassigns value for rare-case like Tween#restart or for Timeline\n   * @private\n   * @memberof TWEEN.Tween\n   */\n  reassignValues (time) {\n    const { _valuesStart, object, _delayTime } = this\n\n    this._isPlaying = true\n    this._startTime = time !== undefined ? time : now()\n    this._startTime += _delayTime\n    this._reversed = false\n    add(this)\n\n    for (const property in _valuesStart) {\n      const start = _valuesStart[property]\n\n      object[property] = start\n    }\n\n    return this\n  }\n\n  /**\n   * Updates initial object to target value by given `time`\n   * @param {Time} time Current time\n   * @param {boolean=} preserve Prevents from removing tween from store\n   * @param {boolean=} forceTime Forces to be frame rendered, even mismatching time\n   * @example tween.update(100)\n   * @memberof TWEEN.Tween\n   */\n  update (time, preserve, forceTime) {\n    let {\n      _onStartCallbackFired,\n      _easingFunction,\n      _interpolationFunction,\n      _easingReverse,\n      _repeat,\n      _delayTime,\n      _reverseDelayTime,\n      _yoyo,\n      _reversed,\n      _startTime,\n      _prevTime,\n      _duration,\n      _valuesStart,\n      _valuesEnd,\n      object,\n      _isFinite,\n      _isPlaying,\n      __render,\n      _chainedTweensCount\n    } = this\n\n    let elapsed\n    let currentEasing\n    let property\n    let propCount = 0\n\n    if (!_duration) {\n      elapsed = 1\n      _repeat = 0\n    } else {\n      time = time !== undefined ? time : now()\n\n      let delta = time - _prevTime\n      this._prevTime = time\n      if (delta > TOO_LONG_FRAME_MS && isRunning() && isLagSmoothing()) {\n        time -= delta - FRAME_MS\n      }\n\n      if (!_isPlaying || (time < _startTime && !forceTime)) {\n        return true\n      }\n\n      elapsed = (time - _startTime) / _duration\n      elapsed = elapsed > 1 ? 1 : elapsed\n      elapsed = _reversed ? 1 - elapsed : elapsed\n    }\n\n    if (!_onStartCallbackFired) {\n      if (!this._rendered) {\n        this.render()\n        this._rendered = true\n      }\n\n      this.emit(EVENT_START, object)\n\n      this._onStartCallbackFired = true\n    }\n\n    currentEasing = _reversed ? _easingReverse || _easingFunction : _easingFunction\n\n    if (!object) {\n      return true\n    }\n\n    for (property in _valuesEnd) {\n      const start = _valuesStart[property]\n      if ((start === undefined || start === null) && !(Plugins[property] && Plugins[property].update)) {\n        continue\n      }\n      const end = _valuesEnd[property]\n      const value = currentEasing[property]\n        ? currentEasing[property](elapsed)\n        : typeof currentEasing === 'function'\n          ? currentEasing(elapsed)\n          : defaultEasing(elapsed)\n      const _interpolationFunctionCall = _interpolationFunction[property]\n        ? _interpolationFunction[property]\n        : typeof _interpolationFunction === 'function'\n          ? _interpolationFunction\n          : Interpolation.Linear\n\n      if (typeof end === 'number') {\n        object[property] = start + (end - start) * value\n      } else if (Array.isArray(end) && !end.isString && !Array.isArray(start)) {\n        object[property] = _interpolationFunctionCall(end, value, object[property])\n      } else if (end && end.update) {\n        end.update(value)\n      } else if (typeof end === 'function') {\n        object[property] = end(value)\n      } else if (typeof end === 'string' && typeof start === 'number') {\n        object[property] = start + parseFloat(end[0] + end.substr(2)) * value\n      } else {\n        recompose(property, object, _valuesStart, _valuesEnd, value, elapsed)\n      }\n      if (Plugins[property] && Plugins[property].update) {\n        Plugins[property].update.call(this, object[property], start, end, value, elapsed, property)\n      }\n      propCount++\n    }\n\n    if (!propCount) {\n      remove(this)\n      return false\n    }\n\n    if (__render && Tween.Renderer && Tween.Renderer.update) {\n      Tween.Renderer.update.call(this, object, elapsed)\n    }\n\n    this.emit(EVENT_UPDATE, object, elapsed, time)\n\n    if (elapsed === 1 || (_reversed && elapsed === 0)) {\n      if (_repeat > 0 && _duration > 0) {\n        if (_isFinite) {\n          this._repeat--\n        }\n\n        if (_yoyo) {\n          this._reversed = !_reversed\n        } else {\n          for (property in _valuesEnd) {\n            let end = _valuesEnd[property]\n            if (typeof end === 'string' && typeof _valuesStart[property] === 'number') {\n              _valuesStart[property] += parseFloat(end[0] + end.substr(2))\n            }\n          }\n        }\n\n        this.emit(_yoyo && !_reversed ? EVENT_REVERSE : EVENT_REPEAT, object)\n\n        if (_reversed && _reverseDelayTime) {\n          this._startTime = time - _reverseDelayTime\n        } else {\n          this._startTime = time + _delayTime\n        }\n\n        return true\n      } else {\n        if (!preserve) {\n          this._isPlaying = false\n          remove(this)\n          _id--\n        }\n        this.emit(EVENT_COMPLETE, object)\n        this._repeat = this._r\n\n        if (_chainedTweensCount) {\n          for (let i = 0; i < _chainedTweensCount; i++) {\n            this[CHAINED_TWEENS + i].start(time + _duration)\n          }\n        }\n\n        return false\n      }\n    }\n\n    return true\n  }\n}\n\nexport default Tween\n"
  },
  {
    "path": "src/constants.js",
    "content": "// Frame lag-fix constants\nexport const FRAME_MS = 50 / 3\nexport const TOO_LONG_FRAME_MS = 250\n\nexport const CHAINED_TWEENS = '_chainedTweens'\n\n// Event System\nexport const EVENT_CALLBACK = 'Callback'\nexport const EVENT_UPDATE = 'update'\nexport const EVENT_COMPLETE = 'complete'\nexport const EVENT_START = 'start'\nexport const EVENT_REPEAT = 'repeat'\nexport const EVENT_REVERSE = 'reverse'\nexport const EVENT_PAUSE = 'pause'\nexport const EVENT_PLAY = 'play'\nexport const EVENT_RESTART = 'restart'\nexport const EVENT_STOP = 'stop'\nexport const EVENT_SEEK = 'seek'\n\n// For String tweening stuffs\nexport const STRING_PROP = 'STRING_PROP'\n// Also RegExp's for string tweening\nexport const NUM_REGEX = /\\s+|([A-Za-z?().,{}:\"\"[\\]#%]+)|([-+]=+)?([-+]+)?(?:\\d+\\.?\\d*|\\.?\\d+)(?:[eE][-+]=?\\d+)?/g\n\n// Copies everything, duplicates, no shallow-copy\nexport function deepCopy (source) {\n  if ((source && source.nodeType) || source === undefined || typeof source !== 'object') {\n    return source\n  } else if (Array.isArray(source)) {\n    return [].concat(source)\n  } else if (typeof source === 'object') {\n    let target = {}\n    for (let prop in source) {\n      target[prop] = deepCopy(source[prop])\n    }\n    return target\n  }\n  return source\n}\n\nconst isNaNForST = (v) => isNaN(+v) || ((v[0] === '+' || v[0] === '-') && v[1] === '=') || v === '' || v === ' '\n\nconst hexColor = /^#([0-9a-f]{6}|[0-9a-f]{3})$/gi\nconst hex2rgb = (all, hex) => {\n  let r\n  let g\n  let b\n  if (hex.length === 3) {\n    r = hex[0]\n    g = hex[1]\n    b = hex[2]\n    hex = r + r + g + g + b + b\n  }\n  let color = parseInt(hex, 16)\n  r = (color >> 16) & 255\n  g = (color >> 8) & 255\n  b = color & 255\n  return 'rgb(' + r + ', ' + g + ', ' + b + ')'\n}\n\nexport function decomposeString (fromValue) {\n  if (fromValue && fromValue.splice && fromValue.isString) {\n    return fromValue\n  }\n  if (typeof fromValue !== 'string') {\n    return fromValue\n  }\n  if (fromValue.charAt(1) === '=') {\n    return fromValue\n  }\n  const value = fromValue\n    .replace(hexColor, hex2rgb)\n    .match(NUM_REGEX)\n    .map((v) => (isNaNForST(v) ? v : +v))\n  value.isString = true\n  return value\n}\n\n// Decompose value, now for only `string` that required\nexport function decompose (prop, obj, from, to) {\n  const fromValue = from[prop]\n  const toValue = to[prop]\n\n  if (fromValue === toValue) {\n    return true\n  } else if (Array.isArray(fromValue) && Array.isArray(toValue) && fromValue.length === toValue.length) {\n    for (let i = 0, len = toValue.length; i < len; i++) {\n      const a = fromValue[i]\n      const b = toValue[i]\n\n      if (a === b || (typeof a === 'number' && typeof b === 'number')) {\n        continue\n      } else {\n        decompose(i, obj[prop], fromValue, toValue)\n      }\n    }\n  }\n  if (typeof fromValue === 'number' && typeof toValue === 'number') {\n    //\n  } else if (fromValue && fromValue.splice && fromValue.isString && toValue && toValue.splice && toValue.isString) {\n  } else if (typeof fromValue === 'string' && Array.isArray(toValue)) {\n    const fromValue1 = decomposeString(fromValue)\n    const toValues = toValue.map(decomposeString)\n\n    from[prop] = fromValue1\n    to[prop] = toValues\n    return true\n  } else if (typeof fromValue === 'string' || typeof toValue === 'string') {\n    let fromValue1 = Array.isArray(fromValue) && fromValue[0] === STRING_PROP ? fromValue : decomposeString(fromValue)\n    let toValue1 = Array.isArray(toValue) && toValue[0] === STRING_PROP ? toValue : decomposeString(toValue)\n\n    if (fromValue1 === undefined) {\n      return\n    }\n    let i = 1\n    while (i < fromValue1.length) {\n      if (fromValue1[i] === toValue1[i] && typeof fromValue1[i - 1] === 'string') {\n        fromValue1.splice(i - 1, 2, fromValue1[i - 1] + fromValue1[i])\n        toValue1.splice(i - 1, 2, toValue1[i - 1] + toValue1[i])\n      } else {\n        i++\n      }\n    }\n\n    i = 0\n\n    if (fromValue1[0] === STRING_PROP) {\n      fromValue1.shift()\n    }\n    if (toValue1[0] === STRING_PROP) {\n      toValue1.shift()\n    }\n\n    from[prop] = fromValue1\n    to[prop] = toValue1\n    return true\n  } else if (typeof fromValue === 'object' && typeof toValue === 'object') {\n    if (Array.isArray(fromValue) && !fromValue.isString) {\n      return fromValue.map((v, i) => decompose(i, obj[prop], fromValue, toValue))\n    } else {\n      for (let prop2 in toValue) {\n        decompose(prop2, obj[prop], fromValue, toValue)\n      }\n    }\n    return true\n  }\n  return false\n}\n\n// Recompose value\nexport const RGB = 'rgb('\nexport const RGBA = 'rgba('\n\nexport const isRGBColor = (v, i, r = RGB) =>\n  typeof v[i] === 'number' && (v[i - 1] === r || v[i - 3] === r || v[i - 5] === r)\nexport function recompose (prop, obj, from, to, t, originalT, stringBuffer) {\n  const fromValue = stringBuffer ? from : from[prop]\n  let toValue = stringBuffer ? to : to[prop]\n  if (toValue === undefined) {\n    return fromValue\n  }\n  if (fromValue === undefined || typeof fromValue === 'string' || fromValue === toValue) {\n    return toValue\n  } else if (typeof fromValue === 'object' && typeof toValue === 'object') {\n    if (!fromValue || !toValue) {\n      return obj[prop]\n    }\n    if (\n      typeof fromValue === 'object' &&\n      !!fromValue &&\n      fromValue.isString &&\n      toValue &&\n      toValue.splice &&\n      toValue.isString\n    ) {\n      let STRING_BUFFER = ''\n      for (let i = 0, len = fromValue.length; i < len; i++) {\n        if (fromValue[i] !== toValue[i] || typeof fromValue[i] !== 'number' || typeof toValue[i] === 'number') {\n          const isRelative = typeof fromValue[i] === 'number' && typeof toValue[i] === 'string' && toValue[i][1] === '='\n          let currentValue =\n            typeof fromValue[i] !== 'number'\n              ? fromValue[i]\n              : isRelative\n                ? fromValue[i] + parseFloat(toValue[i][0] + toValue[i].substr(2)) * t\n                : fromValue[i] + (toValue[i] - fromValue[i]) * t\n          if (isRGBColor(fromValue, i) || isRGBColor(fromValue, i, RGBA)) {\n            currentValue |= 0\n          }\n          STRING_BUFFER += currentValue\n          if (isRelative && originalT === 1) {\n            fromValue[i] = fromValue[i] + parseFloat(toValue[i][0] + toValue[i].substr(2))\n          }\n        } else {\n          STRING_BUFFER += fromValue[i]\n        }\n      }\n      if (!stringBuffer) {\n        obj[prop] = STRING_BUFFER\n      }\n      return STRING_BUFFER\n    } else if (Array.isArray(fromValue) && fromValue[0] !== STRING_PROP) {\n      for (let i = 0, len = fromValue.length; i < len; i++) {\n        if (fromValue[i] === toValue[i] || typeof obj[prop] === 'string') {\n          continue\n        }\n        recompose(i, obj[prop], fromValue, toValue, t, originalT)\n      }\n    } else if (typeof fromValue === 'object' && !!fromValue && !fromValue.isString) {\n      for (let i in fromValue) {\n        if (fromValue[i] === toValue[i]) {\n          continue\n        }\n        recompose(i, obj[prop], fromValue, toValue, t, originalT)\n      }\n    }\n  } else if (typeof fromValue === 'number') {\n    const isRelative = typeof toValue === 'string'\n    obj[prop] = isRelative\n      ? fromValue + parseFloat(toValue[0] + toValue.substr(2)) * t\n      : fromValue + (toValue - fromValue) * t\n    if (isRelative && originalT === 1) {\n      from[prop] = obj[prop]\n    }\n  } else if (typeof toValue === 'function') {\n    obj[prop] = toValue(t)\n  }\n  return obj[prop]\n}\n\n// Dot notation => Object structure converter\n// example\n// {'scale.x.y.z':'VALUE'} => {scale:{x:{y:{z:'VALUE'}}}}\n// Only works for 3-level parsing, after 3-level, parsing dot-notation not works as it's not affects\nconst propRegExp = /([.[])/g\nconst replaceBrace = /\\]/g\nconst propExtract = function (obj, property) {\n  const value = obj[property]\n  const props = property.replace(replaceBrace, '').split(propRegExp)\n  const propsLastIndex = props.length - 1\n  let lastArr = Array.isArray(obj)\n  let lastObj = typeof obj === 'object' && !lastArr\n  if (lastObj) {\n    obj[property] = null\n    delete obj[property]\n  } else if (lastArr) {\n    obj.splice(property, 1)\n  }\n  return props.reduce((nested, prop, index) => {\n    if (lastArr) {\n      if (prop !== '.' && prop !== '[') {\n        prop *= 1\n      }\n    }\n    let nextProp = props[index + 1]\n    let nextIsArray = nextProp === '['\n    if (prop === '.' || prop === '[') {\n      if (prop === '.') {\n        lastObj = true\n        lastArr = false\n      } else if (prop === '[') {\n        lastObj = false\n        lastArr = true\n      }\n      return nested\n    } else if (nested[prop] === undefined) {\n      if (lastArr || lastObj) {\n        nested[prop] = index === propsLastIndex ? value : lastArr || nextIsArray ? [] : lastObj ? {} : null\n        lastObj = lastArr = false\n        return nested[prop]\n      }\n    } else if (nested[prop] !== undefined) {\n      if (index === propsLastIndex) {\n        nested[prop] = value\n      }\n      return nested[prop]\n    }\n    return nested\n  }, obj)\n}\n\nexport const SET_NESTED = function (nested) {\n  if (typeof nested === 'object' && !!nested) {\n    for (let prop in nested) {\n      if (prop.indexOf('.') !== -1 || prop.indexOf('[') !== -1) {\n        propExtract(nested, prop)\n      } else if (typeof nested[prop] === 'object' && !!nested[prop]) {\n        let nested2 = nested[prop]\n        for (let prop2 in nested2) {\n          if (prop2.indexOf('.') !== -1 || prop2.indexOf('[') !== -1) {\n            propExtract(nested2, prop2)\n          } else if (typeof nested2[prop2] === 'object' && !!nested2[prop2]) {\n            let nested3 = nested2[prop2]\n            for (let prop3 in nested3) {\n              if (prop3.indexOf('.') !== -1 || prop3.indexOf('[') !== -1) {\n                propExtract(nested3, prop3)\n              }\n            }\n          }\n        }\n      }\n    }\n  }\n  return nested\n}\n"
  },
  {
    "path": "src/core.js",
    "content": "/* global process */\nimport { requestAnimationFrame, cancelAnimationFrame, root } from './shim'\n\n/**\n * Get browser/Node.js current time-stamp\n * @return Normalised current time-stamp in milliseconds\n * @memberof TWEEN\n * @example\n * TWEEN.now\n */\nconst now = (function () {\n  if (\n    typeof process !== 'undefined' &&\n    process.hrtime !== undefined &&\n    (!process.versions || process.versions.electron === undefined)\n  ) {\n    return function () {\n      const time = process.hrtime()\n\n      // Convert [seconds, nanoseconds] to milliseconds.\n      return time[0] * 1000 + time[1] / 1000000\n    }\n    // In a browser, use window.performance.now if it is available.\n  } else if (root.performance !== undefined && root.performance.now !== undefined) {\n    // This must be bound, because directly assigning this function\n    // leads to an invocation exception in Chrome.\n    return root.performance.now.bind(root.performance)\n    // Use Date.now if it is available.\n  } else {\n    const offset =\n      root.performance && root.performance.timing && root.performance.timing.navigationStart\n        ? root.performance.timing.navigationStart\n        : Date.now()\n    return function () {\n      return Date.now() - offset\n    }\n  }\n})()\n\n/**\n * Lightweight, effecient and modular ES6 version of tween.js\n * @copyright 2019 @dalisoft and es6-tween contributors\n * @license MIT\n * @namespace TWEEN\n * @example\n * // ES6\n * const {add, remove, isRunning, autoPlay} = TWEEN\n */\nconst _tweens = []\nlet isStarted = false\nlet _autoPlay = false\nlet _onRequestTick = []\nconst _ticker = requestAnimationFrame\nlet emptyFrame = 0\nlet powerModeThrottle = 120\nlet _tick\nlet handleLag = true\n\nconst onRequestTick = (fn) => {\n  _onRequestTick.push(fn)\n}\n\nconst _requestTick = () => {\n  for (let i = 0; i < _onRequestTick.length; i++) {\n    _onRequestTick[i]()\n  }\n}\n\n/**\n * Adds tween to list\n * @param {Tween} tween Tween instance\n * @memberof TWEEN\n * @example\n * let tween = new Tween({x:0})\n * tween.to({x:200}, 1000)\n * TWEEN.add(tween)\n */\nconst add = (tween) => {\n  let i = _tweens.indexOf(tween)\n\n  if (i > -1) {\n    _tweens.splice(i, 1)\n  }\n\n  _tweens.push(tween)\n\n  emptyFrame = 0\n\n  if (_autoPlay && !isStarted) {\n    _tick = _ticker(update)\n    isStarted = true\n  }\n}\n\n/**\n * Adds ticker like event\n * @param {Function} fn callback\n * @memberof TWEEN\n * @example\n * TWEEN.onTick(time => console.log(time))\n */\nconst onTick = (fn) => _tweens.push({ update: fn })\n\n/**\n * Sets after how much frames empty updating should stop\n * @param {number} frameCount=120 count of frames that should stop after all tweens removed\n * @memberof TWEEN\n * @example\n * TWEEN.FrameThrottle(60)\n */\nconst FrameThrottle = (frameCount = 120) => {\n  powerModeThrottle = frameCount * 1.05\n}\n\n/**\n * Handle lag, useful if you have rendering Canvas or DOM objects or using es6-tween plugins\n * @param {number} state=true handle lag state\n * @memberof TWEEN\n * @example\n * TWEEN.ToggleLagSmoothing(false)\n */\nconst ToggleLagSmoothing = (_state = true) => {\n  handleLag = _state\n}\n\n/**\n * @returns {Array<Tween>} List of tweens in Array\n * @memberof TWEEN\n * TWEEN.getAll() // list of tweens\n */\nconst getAll = () => _tweens\n\n/**\n * Runs update loop automaticlly\n * @param {Boolean} state State of auto-run of update loop\n * @example TWEEN.autoPlay(true)\n * @memberof TWEEN\n */\nconst autoPlay = (state) => {\n  _autoPlay = state\n}\n\n/**\n * Removes all tweens from list\n * @example TWEEN.removeAll() // removes all tweens, stored in global tweens list\n * @memberof TWEEN\n */\nconst removeAll = () => {\n  _tweens.length = 0\n  cancelAnimationFrame(_tick)\n  isStarted = false\n}\n\n/**\n * @param {Tween} tween Tween Instance to be matched\n * @return {Tween} Matched tween\n * @memberof TWEEN\n * @example\n * TWEEN.get(tween)\n */\nconst get = (tween) => {\n  for (let i = 0; i < _tweens.length; i++) {\n    if (tween === _tweens[i]) {\n      return _tweens[i]\n    }\n  }\n\n  return null\n}\n\n/**\n * @param {Tween} tween Tween Instance to be matched\n * @return {Boolean} Status of Exists tween or not\n * @memberof TWEEN\n * @example\n * TWEEN.has(tween)\n */\nconst has = (tween) => {\n  return get(tween) !== null\n}\n/**\n * Removes tween from list\n * @param {Tween} tween Tween instance\n * @memberof TWEEN\n * @example\n * TWEEN.remove(tween)\n */\nconst remove = (tween) => {\n  const i = _tweens.indexOf(tween)\n  if (i !== -1) {\n    _tweens.splice(i, 1)\n  }\n  if (_tweens.length === 0) {\n    cancelAnimationFrame(_tick)\n    isStarted = false\n  }\n}\n\n/**\n * Updates global tweens by given time\n * @param {number=} time Timestamp\n * @param {Boolean=} preserve Prevents tween to be removed after finish\n * @memberof TWEEN\n * @example\n * TWEEN.update(500)\n */\n\nconst update = (time = now(), preserve) => {\n  if (emptyFrame >= powerModeThrottle && handleLag) {\n    isStarted = false\n    emptyFrame = 0\n    cancelAnimationFrame(_tick)\n    return false\n  }\n\n  if (_autoPlay && isStarted) {\n    _tick = _ticker(update)\n  } else {\n    _requestTick()\n  }\n\n  if (!_tweens.length) {\n    emptyFrame++\n  }\n\n  let i = 0\n  let length = _tweens.length\n  while (i < length) {\n    _tweens[i++].update(time, preserve)\n\n    if (length > _tweens.length) {\n      // The tween has been removed, keep same index\n      i--\n    }\n\n    length = _tweens.length\n  }\n\n  return true\n}\n\n/**\n * The state of ticker running\n * @return {Boolean} Status of running updates on all tweens\n * @memberof TWEEN\n * @example TWEEN.isRunning()\n */\nconst isRunning = () => isStarted\n\n/**\n * Returns state of lag smoothing handling\n * @return {Boolean} Status of lag smoothing state\n * @memberof TWEEN\n * @example TWEEN.isRunning()\n */\nconst isLagSmoothing = () => handleLag\n\n/**\n * The plugins store object\n * @namespace TWEEN.Plugins\n * @memberof TWEEN\n * @example\n * let num = Plugins.num = function (node, start, end) {\n * return t => start + (end - start) * t\n * }\n *\n * @static\n */\nconst Plugins = {}\n\nexport {\n  Plugins,\n  get,\n  has,\n  getAll,\n  removeAll,\n  remove,\n  add,\n  now,\n  update,\n  autoPlay,\n  onTick,\n  onRequestTick,\n  isRunning,\n  isLagSmoothing,\n  FrameThrottle,\n  ToggleLagSmoothing\n}\n"
  },
  {
    "path": "src/index.js",
    "content": "import {\n  add,\n  onTick,\n  autoPlay,\n  get,\n  getAll,\n  has,\n  isRunning,\n  now,\n  onRequestTick,\n  FrameThrottle,\n  ToggleLagSmoothing,\n  Plugins,\n  remove,\n  removeAll,\n  update\n} from './core'\nimport Easing from './Easing'\nimport Interpolation from './Interpolation'\nimport Tween from './Tween'\nimport Timeline from './Timeline'\nimport Selector from './selector'\nimport Interpolator from './Interpolator'\nimport * as utils from './constants'\nimport './shim'\nexport {\n  Plugins,\n  Selector,\n  Interpolator,\n  onTick,\n  has,\n  get,\n  getAll,\n  removeAll,\n  remove,\n  add,\n  now,\n  update,\n  autoPlay,\n  isRunning,\n  onRequestTick,\n  FrameThrottle,\n  ToggleLagSmoothing,\n  Tween,\n  Timeline,\n  Easing,\n  Interpolation,\n  utils\n}\n"
  },
  {
    "path": "src/selector.js",
    "content": "export default function (selector, collection, allowRaw) {\n  if (!selector) {\n    return null\n  }\n\n  const isGlobalScope =\n    (typeof window !== 'undefined' && selector === window) ||\n    (typeof document !== 'undefined' && selector === document)\n\n  if (collection) {\n    return isGlobalScope\n      ? [selector]\n      : typeof selector === 'string'\n        ? !!document.querySelectorAll && document.querySelectorAll(selector)\n        : Array.isArray(selector)\n          ? selector\n          : selector.nodeType\n            ? [selector]\n            : allowRaw\n              ? selector\n              : []\n  }\n  return isGlobalScope\n    ? selector\n    : typeof selector === 'string'\n      ? !!document.querySelector && document.querySelector(selector)\n      : Array.isArray(selector)\n        ? selector[0]\n        : selector.nodeType\n          ? selector\n          : allowRaw\n            ? selector\n            : null\n}\n"
  },
  {
    "path": "src/shim.js",
    "content": "/* global global, self */\nexport let root =\n  typeof self !== 'undefined'\n    ? self\n    : typeof window !== 'undefined'\n      ? window\n      : typeof global !== 'undefined'\n        ? global\n        : this || (typeof exports !== 'undefined' ? exports : {})\nexport let requestAnimationFrame = root.requestAnimationFrame || ((fn) => root.setTimeout(fn, 50 / 3))\nexport let cancelAnimationFrame = root.cancelAnimationFrame || ((id) => root.clearTimeout(id))\n"
  },
  {
    "path": "test.js",
    "content": "/* global TWEEN */\n\nimport test from 'ava'\n\nimport { Easing, Tween, Timeline, update, getAll, removeAll } from './src'\n\nimport browserTestMiddleware from './withPage'\n\ntest('Events', (t) => {\n  let tween = new Tween({ x: 0 })\n    .to({ x: 100 }, 100)\n    .repeat(2)\n    .yoyo(true)\n    .start(0)\n\n  t.plan(9)\n\n  tween.on('start', () => {\n    t.log('on:start was called successfully')\n    t.pass()\n  })\n\n  tween.on('update', () => {\n    t.log('on:update was called successfully')\n    t.pass()\n  })\n\n  tween.on('repeat', () => {\n    t.log('on:repeat was called successfully')\n    t.pass()\n  })\n\n  tween.on('reverse', () => {\n    t.log('on:reverse was called successfully')\n    t.pass()\n  })\n\n  tween.on('complete', () => {\n    t.log('on:complete was called successfully')\n    t.pass()\n  })\n\n  update(0)\n  update(50)\n  update(100)\n  update(200)\n  update(300)\n})\n\ntest('Value Interpolation', (t) => {\n  const m = ['rgb(', 0, ', 204, ', 255, ')']\n\n  let obj = {\n    a: 0,\n    b: 'B value 1',\n    c: { x: 2 },\n    d: [3],\n    _e: 4,\n    g: 5,\n    h: 0,\n    j: 0,\n    k: '#000',\n    l: '#0cf',\n    m\n  }\n\n  Object.defineProperty(obj, 'e', {\n    get () {\n      return obj._e\n    },\n    set (x) {\n      obj._e = x\n    }\n  })\n\n  const m2 = ['rgb(', 255, ', 204, ', 0, ')']\n  new Tween(obj)\n    .to(\n      {\n        a: 1,\n        b: 'B value 2',\n        c: { x: 3 },\n        d: [4],\n        _e: 5,\n        g: '+=1',\n        h: 250000,\n        j: [1, 2],\n        k: ['rgb(100, 100, 100)', 'rgb(200, 200, 200)'],\n        l: '#fc0',\n        m: m2\n      },\n      100\n    )\n    .start(0)\n\n  update(0)\n\n  t.is(obj.a, 0)\n  t.is(obj.b, 'B value 1')\n  t.is(obj.c.x, 2)\n  t.is(obj.d[0], 3)\n  t.is(obj.e, 4)\n  t.is(obj.g, 5)\n  t.is(obj.h, 0)\n  t.is(obj.j, 0)\n  t.is(obj.k, 'rgb(0, 0, 0)')\n  t.is(obj.l, 'rgb(0, 204, 255)')\n  t.deepEqual(obj.m, ['rgb(', 0, ', 204, ', 255, ')'])\n\n  update(50)\n\n  t.is(obj.a, 0.5, 'Number interpolation not worked as excepted')\n  t.log('Number interpolation worked as excepted')\n\n  t.is(obj.b, 'B value 1.5', 'String interpolation not worked as excepted')\n  t.log('String interpolation worked as excepted')\n\n  t.is(obj.c.x, 2.5, 'Object interpolation not worked as excepted')\n  t.log('Object interpolation worked as excepted')\n\n  t.is(obj.d[0], 3.5, 'Array interpolation not worked as excepted')\n  t.log('Array interpolation worked as excepted')\n\n  t.is(obj.e, 4.5, 'Getter/Setter interpolation not worked as excepted')\n  t.log('Getter/Setter interpolation worked as excepted')\n\n  t.is(obj.g, 5.5, 'Relative number interpolation not worked as excepted')\n  t.log('Relative number interpolation worked as excepted')\n\n  t.is(obj.h, 125000, 'Big number interpolation not worked as excepted')\n  t.log('Big number interpolation worked as excepted')\n\n  t.is(obj.j, 1, 'Multi-Interpolation not worked as excepted')\n  t.log('Multi-Interpolation worked as excepted')\n\n  t.is(obj.k, 'rgb(100, 100, 100)', 'Multi-Interpolation not worked as excepted')\n  t.log('Multi-Interpolation worked as excepted')\n\n  update(100)\n\n  t.is(obj.a, 1)\n  t.is(obj.b, 'B value 2')\n  t.is(obj.c.x, 3)\n  t.is(obj.d[0], 4)\n  t.is(obj.e, 5)\n  t.is(obj.g, 6)\n  t.is(obj.h, 250000, 'Big number interpolation ending value not worked as excepted')\n  t.is(obj.j, 2, 'Multi-Interpolation not worked as excepted')\n  t.is(obj.k, 'rgb(200, 200, 200)', 'Multi-Interpolation not worked as excepted')\n  t.is(obj.l, 'rgb(255, 204, 0)', 'String interpolation not worked as excepted')\n  t.deepEqual(obj.m, m2, 'Array interpolation not worked as excepted')\n})\n\ntest('Value Array-based Interpolation', (t) => {\n  let obj = { x: 0 }\n  new Tween(obj).to({ x: [1, 3, 5] }, 100).start(0)\n\n  t.is(obj.x, 0)\n\n  update(50)\n\n  t.is(obj.x, 2, 'Interpolation failed')\n  t.log('End-value interpolation was done')\n\n  t.log('Start-value interpolation was done')\n\n  update(100)\n})\n\ntest('Tweens List Controlling', (t) => {\n  let tween = new Tween({ x: 0 })\n    .to({ x: 100 }, 100)\n    .repeat(2)\n    .yoyo(true)\n    .start(0)\n\n  t.is(getAll().length, 1, 'Tween added in tweens list')\n  t.log('Tweens adding was done')\n\n  tween.stop()\n\n  t.is(getAll().length, 0, 'Tween removed from tweens list')\n  t.log('Tween removing was done')\n\n  tween.restart()\n\n  t.is(getAll().length, 1, 'Tween added in tweens list')\n  t.log('Tweens restart and re-add to tweens list was done')\n\n  removeAll()\n\n  t.is(getAll().length, 0, 'All Tweens was removed from tweens list')\n  t.log('Tween removeAll was worked fine')\n})\n\ntest('Easing', (t) => {\n  const { Quadratic, Elastic, Linear } = Easing\n\n  const { InOut: QuadraticInOut } = Quadratic\n  const { InOut: ElasticInOut } = Elastic\n  const { None } = Linear\n\n  t.is(None(0.67), 0.67, 'Linear.None was not eased as excepted')\n  t.log('Linear.None was eased as excepted')\n\n  t.not(QuadraticInOut(0.77), 0.77, 'Quadratic.InOut was not eased as excepted')\n  t.log('Quadratic.InOut was eased as excepted')\n\n  t.not(ElasticInOut(0.6), 0.6, 'Elastic.InOut was not eased as excepted')\n  t.log('Elastic.InOut was eased as excepted')\n})\n\ntest('Tween update should be run against all tween each time', (t) => {\n  const order = []\n\n  new Tween({ x: 0 })\n    .to({ x: 100 }, 100)\n    .start(0)\n    .on('complete', () => {\n      order.push(0)\n    })\n  new Tween({ x: 0 })\n    .to({ x: 100 }, 100)\n    .delay(10)\n    .start(0)\n    .on('complete', () => {\n      order.push(1)\n    })\n  new Tween({ x: 0 })\n    .to({ x: 100 }, 100)\n    .delay(20)\n    .start(0)\n    .on('complete', () => {\n      order.push(2)\n    })\n\n  t.plan(1)\n\n  update(0)\n  update(200)\n\n  t.deepEqual(order, [0, 1, 2])\n})\n\ntest('Tween should work after recall when using power saving feature', (t) => {\n  const init = (obj) =>\n    new Tween(obj)\n      .to({ z: 360 }, 1000)\n      .on('complete', init)\n      .start(0)\n\n  const obj1 = { z: 0 }\n  init(obj1)\n\n  update(500)\n  t.is(obj1.z, 180, 'Tweening update does not work as excepted')\n  update(1000)\n  t.is(obj1.z, 360, 'Tweening update does not work as excepted')\n\n  update(0)\n\n  const obj2 = { z: 0 }\n  init(obj2)\n\n  update(500)\n  t.is(obj2.z, 180, 'Tweening update does not work as excepted')\n  update(1000)\n  t.is(obj2.z, 360, 'Tweening update does not work as excepted')\n})\n\ntest('Headless tests', browserTestMiddleware, (t, page) => {\n  return page\n    .evaluate(() => {\n      const deepArrayCopy = (arr) =>\n        arr.map((child) =>\n          Array.isArray(child)\n            ? deepArrayCopy(child)\n            : Object.keys(child) && Object.keys(child).length\n              ? Object.assign({}, child)\n              : child\n        )\n\n      const tests = []\n\n      const obj = { x: 0, y: [50, 'String test 100'] }\n      const obj2 = { x: 0 }\n      const arr1 = [[100], { f: 200 }]\n\n      const tween1 = new TWEEN.Tween(obj)\n        .to({ x: 200, y: [100, 'String test 200'] }, 2000)\n        .on('start', () => {\n          tests.push({\n            method: 'log',\n            successMessage: 'on:start event works as excepted'\n          })\n        })\n        .on('update', (obj, elapsed) => {\n          tests.push({\n            method: 'log',\n            successMessage: 'on:update event works as excepted with elapsed ' + elapsed\n          })\n        })\n        .on('complete', () => {\n          tests.push({\n            method: 'log',\n            successMessage: 'on:complete event works as excepted'\n          })\n        })\n      const tween2 = new TWEEN.Tween(obj2).to({ x: 200 }, 4000).easing(TWEEN.Easing.Elastic.InOut)\n      const tween3 = new TWEEN.Tween(arr1).to([[0], { f: 100 }], 2000)\n\n      tween1.start(0)\n      tween2.start(0)\n      tween3.start(0)\n\n      tests.push({\n        method: 'is',\n        a: obj.x,\n        b: 0,\n        failMessage: 'ID: ObjX_24U'\n      })\n      tests.push({\n        method: 'is',\n        a: obj.y[0],\n        b: 50,\n        failMessage: 'ID: ObjY_25C'\n      })\n      tests.push({\n        method: 'is',\n        a: obj.y[1],\n        b: 'String test 100',\n        failMessage: 'ID: ObjY_26G'\n      })\n      tests.push({\n        method: 'is',\n        a: obj2.x,\n        b: 0,\n        failMessage: 'ID: ObjX_26Z'\n      })\n      tests.push({\n        method: 'is',\n        a: arr1[0][0],\n        b: 100,\n        failMessage: 'ID: ObjA_27L'\n      })\n      tests.push({\n        method: 'is',\n        a: arr1[1].f,\n        b: 200,\n        failMessage: 'ID: ObjF_27X'\n      })\n\n      TWEEN.update(1000)\n\n      tests.push({\n        method: 'is',\n        a: obj.x,\n        b: 100,\n        failMessage: 'There something wrong with number interpolation',\n        successMessage: 'Number interpolation works as excepted'\n      })\n      tests.push({\n        method: 'is',\n        a: obj.y[0],\n        b: 75,\n        failMessage: 'There something wrong with Array number interpolation',\n        successMessage: 'Array Number interpolation works as excepted'\n      })\n      tests.push({\n        method: 'is',\n        a: obj.y[1],\n        b: 'String test 150',\n        failMessage: 'There something wrong with Array string interpolation',\n        successMessage: 'Array string interpolation works as excepted'\n      })\n      tests.push({\n        method: 'not',\n        a: obj2.x,\n        b: 50,\n        failMessage: 'Easing not works properly or tween instance not handles easing function properly',\n        successMessage: 'Easing function works properly'\n      })\n      tests.push({\n        method: 'deepEqual',\n        a: deepArrayCopy(arr1),\n        b: [[50], { f: 150 }],\n        failMessage: 'Array-based tween failed due of internal processor/instance and/or something failed within core',\n        successMessage: 'Array-based tweens works properly'\n      })\n\n      TWEEN.update(2000)\n\n      tests.push({\n        method: 'is',\n        a: obj.x,\n        b: 200,\n        failMessage: 'ID: ObjX_32R'\n      })\n      tests.push({\n        method: 'is',\n        a: obj.y[0],\n        b: 100,\n        failMessage: 'ID: ObjY_33V'\n      })\n      tests.push({\n        method: 'is',\n        a: obj.y[1],\n        b: 'String test 200',\n        failMessage: 'ID: ObjY_33S'\n      })\n      tests.push({\n        method: 'not',\n        a: obj2.x,\n        b: 200,\n        failMessage: 'ID: ObjY_34I'\n      })\n      tests.push({\n        method: 'is',\n        a: arr1[0][0],\n        b: 0,\n        failMessage: 'ID: ObjA_34P'\n      })\n      tests.push({\n        method: 'is',\n        a: arr1[1].f,\n        b: 100,\n        failMessage: 'ID: ObjF_35T'\n      })\n\n      TWEEN.update(4000)\n\n      tests.push({\n        method: 'is',\n        a: obj2.x,\n        b: 200,\n        failMessage: 'ID: ObjY_36K'\n      })\n\n      return tests\n    })\n    .then((tests) => {\n      tests.map(({ method, a, b, failMessage, successMessage }) => {\n        if (method === 'log') {\n          t.log(successMessage)\n        } else {\n          t[method](a, b, failMessage)\n          successMessage && t.log(successMessage)\n        }\n      })\n    })\n})\n\ntest('Timeline', (t) => {\n  const obj = { x: 0 }\n  const obj2 = { x: 0 }\n  const obj3 = { x: 0 }\n\n  const from = [obj, obj2, obj3]\n  const to = { x: 200 }\n\n  const tl = new Timeline({ duration: 1000, startTime: 0, stagger: 1000 }).to(from, to)\n\n  tl.on('start', () => {\n    t.pass()\n    t.log('on:start event works as excepted')\n  })\n  tl.on('update', (elapsed) => {\n    t.pass()\n    t.log('on:update event works as excepted with elapsed ' + elapsed)\n  })\n  tl.on('complete', () => {\n    t.pass()\n    t.log('on:complete event works as excepted')\n  })\n\n  tl.start(0)\n\n  t.is(obj.x, 0)\n  t.is(obj2.x, 0)\n  t.is(obj3.x, 0)\n\n  update(1000)\n\n  t.is(obj.x, 200)\n  t.is(obj2.x, 0)\n  t.is(obj3.x, 0)\n\n  update(2000)\n\n  t.is(obj.x, 200)\n  t.is(obj2.x, 200)\n  t.is(obj3.x, 0)\n\n  update(3000)\n\n  t.is(obj.x, 200)\n  t.is(obj2.x, 200)\n  t.is(obj3.x, 200)\n\n  update(4000)\n\n  t.is(obj.x, 200)\n  t.is(obj2.x, 200)\n  t.is(obj3.x, 200)\n\n  t.log('All values interpolation works as excepted')\n})\n"
  },
  {
    "path": "withPage.js",
    "content": "import puppeteer from 'puppeteer'\n\nconst fs = require('fs')\nconst path = require('path')\n\n// Parse\nfunction describe (jsHandle) {\n  return jsHandle.executionContext().evaluate((obj) => {\n    // serialize |obj| however you want\n    return JSON.stringify(obj)\n  }, jsHandle)\n}\n\nexport default (t, run) => {\n  let _browser\n  return puppeteer\n    .launch({ headless: true, args: ['--no-sandbox'] })\n    .then((browser) => {\n      _browser = browser\n      return browser\n        .newPage()\n        .then((page) => {\n          page.on('console', async (msg) => {\n            const args = await Promise.all(msg.args().map((arg) => describe(arg)))\n            console.log('Logs from Headless Chrome', ...args)\n          })\n          return page.evaluate(fs.readFileSync(path.join(__dirname, 'bundled/Tween.js'), 'utf8')).then(() => page)\n        })\n        .then((page) => run(t, page).then(() => page))\n    })\n    .then((page) => {\n      _browser.close()\n      page.close()\n    })\n}\n"
  }
]