orchidmap-front/stats.json
muerwre 4313a2813f dist and time
finishing route
2018-08-24 12:37:15 +07:00

32824 lines
4.1 MiB
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"errors": [],
"warnings": [
"configuration\nThe 'mode' option has not been set, webpack will fallback to 'production' for this value. Set 'mode' option to 'development' or 'production' to enable defaults for each environment.\nYou can also set it to 'none' to disable any default behavior. Learn more: https://webpack.js.org/concepts/mode/",
"asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).\nThis can impact web performance.\nAssets: \n e98375cc1b228aa22527deb5d5a2b406.svg (355 KiB)\n app.bundle.245b559.js (2.22 MiB)",
"entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.\nEntrypoints:\n app (2.22 MiB)\n app.bundle.245b559.js\n",
"webpack performance recommendations: \nYou can limit the size of your bundles by using import() or require.ensure to lazy load some parts of your application.\nFor more info visit https://webpack.js.org/guides/code-splitting/"
],
"version": "4.16.5",
"hash": "91e72277da269b9a5c3c",
"time": 3675,
"builtAt": 1534828856653,
"publicPath": "",
"outputPath": "/Users/user/Projects/orchid/dist",
"assetsByChunkName": {
"app": "app.bundle.245b559.js"
},
"assets": [
{
"name": "a6137456ed160d7606981aa57c559898.png",
"size": 696,
"chunks": [],
"chunkNames": [],
"emitted": true
},
{
"name": "4f0283c6ce28e888000e978e537a6a56.png",
"size": 1259,
"chunks": [],
"chunkNames": [],
"emitted": true
},
{
"name": "2273e3d8ad9264b7daa5bdbf8e6b47f8.png",
"size": 1466,
"chunks": [],
"chunkNames": [],
"emitted": true
},
{
"name": "e98375cc1b228aa22527deb5d5a2b406.svg",
"size": 363166,
"chunks": [],
"chunkNames": [],
"emitted": true,
"isOverSizeLimit": true
},
{
"name": "app.bundle.245b559.js",
"size": 2324193,
"chunks": [
0
],
"chunkNames": [
"app"
],
"emitted": true,
"isOverSizeLimit": true
},
{
"name": "favicon.png",
"size": 819,
"chunks": [],
"chunkNames": [],
"emitted": true
},
{
"name": "./index.html",
"size": 583,
"chunks": [],
"chunkNames": [],
"emitted": true
}
],
"filteredAssets": 0,
"entrypoints": {
"app": {
"chunks": [
0
],
"assets": [
"app.bundle.245b559.js"
],
"children": {},
"childAssets": {},
"isOverSizeLimit": true
}
},
"namedChunkGroups": {
"app": {
"chunks": [
0
],
"assets": [
"app.bundle.245b559.js"
],
"children": {},
"childAssets": {},
"isOverSizeLimit": true
}
},
"chunks": [
{
"id": 0,
"rendered": true,
"initial": true,
"entry": true,
"size": 841890,
"names": [
"app"
],
"files": [
"app.bundle.245b559.js"
],
"hash": "bd1d7c470eb7c242273f",
"siblings": [],
"parents": [],
"children": [],
"childrenByOrder": {},
"modules": [
{
"id": 0,
"identifier": "/Users/user/Projects/orchid/node_modules/react-hot-loader/index.js",
"name": "./node_modules/react-hot-loader/index.js",
"index": 103,
"index2": 99,
"size": 228,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"issuerId": 79,
"issuerName": "./src/index.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 65,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/constants/modes.js",
"module": "./src/constants/modes.js",
"moduleName": "./src/constants/modes.js",
"type": "cjs require",
"userRequest": "react-hot-loader",
"loc": "8:20-47"
},
{
"moduleId": 65,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/constants/modes.js",
"module": "./src/constants/modes.js",
"moduleName": "./src/constants/modes.js",
"type": "cjs require",
"userRequest": "react-hot-loader",
"loc": "23:23-50"
},
{
"moduleId": 65,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/constants/modes.js",
"module": "./src/constants/modes.js",
"moduleName": "./src/constants/modes.js",
"type": "cjs require",
"userRequest": "react-hot-loader",
"loc": "25:20-47"
},
{
"moduleId": 66,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/utils/DomMarker.js",
"module": "./src/utils/DomMarker.js",
"moduleName": "./src/utils/DomMarker.js",
"type": "cjs require",
"userRequest": "react-hot-loader",
"loc": "11:20-47"
},
{
"moduleId": 66,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/utils/DomMarker.js",
"module": "./src/utils/DomMarker.js",
"moduleName": "./src/utils/DomMarker.js",
"type": "cjs require",
"userRequest": "react-hot-loader",
"loc": "41:23-50"
},
{
"moduleId": 66,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/utils/DomMarker.js",
"module": "./src/utils/DomMarker.js",
"moduleName": "./src/utils/DomMarker.js",
"type": "cjs require",
"userRequest": "react-hot-loader",
"loc": "43:20-47"
},
{
"moduleId": 79,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"module": "./src/index.js",
"moduleName": "./src/index.js",
"type": "cjs require",
"userRequest": "react-hot-loader",
"loc": "25:20-47"
},
{
"moduleId": 79,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"module": "./src/index.js",
"moduleName": "./src/index.js",
"type": "cjs require",
"userRequest": "react-hot-loader",
"loc": "38:23-50"
},
{
"moduleId": 79,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"module": "./src/index.js",
"moduleName": "./src/index.js",
"type": "cjs require",
"userRequest": "react-hot-loader",
"loc": "40:20-47"
},
{
"moduleId": 89,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"module": "./src/containers/App.jsx",
"moduleName": "./src/containers/App.jsx",
"type": "cjs require",
"userRequest": "react-hot-loader",
"loc": "37:20-47"
},
{
"moduleId": 89,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"module": "./src/containers/App.jsx",
"moduleName": "./src/containers/App.jsx",
"type": "cjs require",
"userRequest": "react-hot-loader",
"loc": "138:23-50"
},
{
"moduleId": 89,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"module": "./src/containers/App.jsx",
"moduleName": "./src/containers/App.jsx",
"type": "cjs require",
"userRequest": "react-hot-loader",
"loc": "140:20-47"
},
{
"moduleId": 124,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"module": "./src/modules/Editor.js",
"moduleName": "./src/modules/Editor.js",
"type": "cjs require",
"userRequest": "react-hot-loader",
"loc": "35:20-47"
},
{
"moduleId": 124,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"module": "./src/modules/Editor.js",
"moduleName": "./src/modules/Editor.js",
"type": "cjs require",
"userRequest": "react-hot-loader",
"loc": "160:23-50"
},
{
"moduleId": 124,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"module": "./src/modules/Editor.js",
"moduleName": "./src/modules/Editor.js",
"type": "cjs require",
"userRequest": "react-hot-loader",
"loc": "162:20-47"
},
{
"moduleId": 126,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Map.js",
"module": "./src/modules/Map.js",
"moduleName": "./src/modules/Map.js",
"type": "cjs require",
"userRequest": "react-hot-loader",
"loc": "27:20-47"
},
{
"moduleId": 126,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Map.js",
"module": "./src/modules/Map.js",
"moduleName": "./src/modules/Map.js",
"type": "cjs require",
"userRequest": "react-hot-loader",
"loc": "62:23-50"
},
{
"moduleId": 126,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Map.js",
"module": "./src/modules/Map.js",
"moduleName": "./src/modules/Map.js",
"type": "cjs require",
"userRequest": "react-hot-loader",
"loc": "64:20-47"
},
{
"moduleId": 127,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/constants/providers.js",
"module": "./src/constants/providers.js",
"moduleName": "./src/constants/providers.js",
"type": "cjs require",
"userRequest": "react-hot-loader",
"loc": "8:20-47"
},
{
"moduleId": 127,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/constants/providers.js",
"module": "./src/constants/providers.js",
"moduleName": "./src/constants/providers.js",
"type": "cjs require",
"userRequest": "react-hot-loader",
"loc": "28:23-50"
},
{
"moduleId": 127,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/constants/providers.js",
"module": "./src/constants/providers.js",
"moduleName": "./src/constants/providers.js",
"type": "cjs require",
"userRequest": "react-hot-loader",
"loc": "30:20-47"
},
{
"moduleId": 136,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Poly.js",
"module": "./src/modules/Poly.js",
"moduleName": "./src/modules/Poly.js",
"type": "cjs require",
"userRequest": "react-hot-loader",
"loc": "25:20-47"
},
{
"moduleId": 136,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Poly.js",
"module": "./src/modules/Poly.js",
"moduleName": "./src/modules/Poly.js",
"type": "cjs require",
"userRequest": "react-hot-loader",
"loc": "136:23-50"
},
{
"moduleId": 136,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Poly.js",
"module": "./src/modules/Poly.js",
"moduleName": "./src/modules/Poly.js",
"type": "cjs require",
"userRequest": "react-hot-loader",
"loc": "138:20-47"
},
{
"moduleId": 144,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Stickers.js",
"module": "./src/modules/Stickers.js",
"moduleName": "./src/modules/Stickers.js",
"type": "cjs require",
"userRequest": "react-hot-loader",
"loc": "23:20-47"
},
{
"moduleId": 144,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Stickers.js",
"module": "./src/modules/Stickers.js",
"moduleName": "./src/modules/Stickers.js",
"type": "cjs require",
"userRequest": "react-hot-loader",
"loc": "91:23-50"
},
{
"moduleId": 144,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Stickers.js",
"module": "./src/modules/Stickers.js",
"moduleName": "./src/modules/Stickers.js",
"type": "cjs require",
"userRequest": "react-hot-loader",
"loc": "93:20-47"
},
{
"moduleId": 145,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Sticker.js",
"module": "./src/modules/Sticker.js",
"moduleName": "./src/modules/Sticker.js",
"type": "cjs require",
"userRequest": "react-hot-loader",
"loc": "25:20-47"
},
{
"moduleId": 145,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Sticker.js",
"module": "./src/modules/Sticker.js",
"moduleName": "./src/modules/Sticker.js",
"type": "cjs require",
"userRequest": "react-hot-loader",
"loc": "164:23-50"
},
{
"moduleId": 145,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Sticker.js",
"module": "./src/modules/Sticker.js",
"moduleName": "./src/modules/Sticker.js",
"type": "cjs require",
"userRequest": "react-hot-loader",
"loc": "166:20-47"
},
{
"moduleId": 146,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"module": "./src/modules/Router.js",
"moduleName": "./src/modules/Router.js",
"type": "cjs require",
"userRequest": "react-hot-loader",
"loc": "39:20-47"
},
{
"moduleId": 146,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"module": "./src/modules/Router.js",
"moduleName": "./src/modules/Router.js",
"type": "cjs require",
"userRequest": "react-hot-loader",
"loc": "202:23-50"
},
{
"moduleId": 146,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"module": "./src/modules/Router.js",
"moduleName": "./src/modules/Router.js",
"type": "cjs require",
"userRequest": "react-hot-loader",
"loc": "204:20-47"
},
{
"moduleId": 166,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/config.js",
"module": "./src/config.js",
"moduleName": "./src/config.js",
"type": "cjs require",
"userRequest": "react-hot-loader",
"loc": "8:20-47"
},
{
"moduleId": 166,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/config.js",
"module": "./src/config.js",
"moduleName": "./src/config.js",
"type": "cjs require",
"userRequest": "react-hot-loader",
"loc": "19:23-50"
},
{
"moduleId": 166,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/config.js",
"module": "./src/config.js",
"moduleName": "./src/config.js",
"type": "cjs require",
"userRequest": "react-hot-loader",
"loc": "21:20-47"
},
{
"moduleId": 167,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Shotter.js",
"module": "./src/modules/Shotter.js",
"moduleName": "./src/modules/Shotter.js",
"type": "cjs require",
"userRequest": "react-hot-loader",
"loc": "23:20-47"
},
{
"moduleId": 167,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Shotter.js",
"module": "./src/modules/Shotter.js",
"moduleName": "./src/modules/Shotter.js",
"type": "cjs require",
"userRequest": "react-hot-loader",
"loc": "114:23-50"
},
{
"moduleId": 167,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Shotter.js",
"module": "./src/modules/Shotter.js",
"moduleName": "./src/modules/Shotter.js",
"type": "cjs require",
"userRequest": "react-hot-loader",
"loc": "116:20-47"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 1,
"source": "'use strict'\n\nif (!module.hot || process.env.NODE_ENV === 'production') {\n module.exports = require('./dist/react-hot-loader.production.min.js');\n} else {\n module.exports = require('./dist/react-hot-loader.development.js');\n}\n"
},
{
"id": 1,
"identifier": "/Users/user/Projects/orchid/node_modules/leaflet/dist/leaflet-src.js",
"name": "./node_modules/leaflet/dist/leaflet-src.js",
"index": 101,
"index2": 97,
"size": 399628,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Map.js",
"issuerId": 126,
"issuerName": "./src/modules/Map.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 126,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Map.js",
"name": "./src/modules/Map.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 44,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/waypoint.js",
"module": "./node_modules/leaflet-routing-machine/src/waypoint.js",
"moduleName": "./node_modules/leaflet-routing-machine/src/waypoint.js",
"type": "cjs require",
"userRequest": "leaflet",
"loc": "4:9-27"
},
{
"moduleId": 45,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/osrm-v1.js",
"module": "./node_modules/leaflet-routing-machine/src/osrm-v1.js",
"moduleName": "./node_modules/leaflet-routing-machine/src/osrm-v1.js",
"type": "cjs require",
"userRequest": "leaflet",
"loc": "4:9-27"
},
{
"moduleId": 62,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/leaflet-editable/src/Leaflet.Editable.js",
"module": "./node_modules/leaflet-editable/src/Leaflet.Editable.js",
"moduleName": "./node_modules/leaflet-editable/src/Leaflet.Editable.js",
"type": "amd require",
"userRequest": "leaflet",
"loc": "7:8-36"
},
{
"moduleId": 66,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/utils/DomMarker.js",
"module": "./src/utils/DomMarker.js",
"moduleName": "./src/utils/DomMarker.js",
"type": "cjs require",
"userRequest": "leaflet",
"loc": "8:15-33"
},
{
"moduleId": 67,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/itinerary.js",
"module": "./node_modules/leaflet-routing-machine/src/itinerary.js",
"moduleName": "./node_modules/leaflet-routing-machine/src/itinerary.js",
"type": "cjs require",
"userRequest": "leaflet",
"loc": "4:9-27"
},
{
"moduleId": 68,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/formatter.js",
"module": "./node_modules/leaflet-routing-machine/src/formatter.js",
"moduleName": "./node_modules/leaflet-routing-machine/src/formatter.js",
"type": "cjs require",
"userRequest": "leaflet",
"loc": "4:9-27"
},
{
"moduleId": 69,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/itinerary-builder.js",
"module": "./node_modules/leaflet-routing-machine/src/itinerary-builder.js",
"moduleName": "./node_modules/leaflet-routing-machine/src/itinerary-builder.js",
"type": "cjs require",
"userRequest": "leaflet",
"loc": "4:9-27"
},
{
"moduleId": 70,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/line.js",
"module": "./node_modules/leaflet-routing-machine/src/line.js",
"moduleName": "./node_modules/leaflet-routing-machine/src/line.js",
"type": "cjs require",
"userRequest": "leaflet",
"loc": "4:9-27"
},
{
"moduleId": 71,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/plan.js",
"module": "./node_modules/leaflet-routing-machine/src/plan.js",
"moduleName": "./node_modules/leaflet-routing-machine/src/plan.js",
"type": "cjs require",
"userRequest": "leaflet",
"loc": "4:9-27"
},
{
"moduleId": 72,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/geocoder-element.js",
"module": "./node_modules/leaflet-routing-machine/src/geocoder-element.js",
"moduleName": "./node_modules/leaflet-routing-machine/src/geocoder-element.js",
"type": "cjs require",
"userRequest": "leaflet",
"loc": "4:9-27"
},
{
"moduleId": 73,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/autocomplete.js",
"module": "./node_modules/leaflet-routing-machine/src/autocomplete.js",
"moduleName": "./node_modules/leaflet-routing-machine/src/autocomplete.js",
"type": "cjs require",
"userRequest": "leaflet",
"loc": "4:9-27"
},
{
"moduleId": 126,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Map.js",
"module": "./src/modules/Map.js",
"moduleName": "./src/modules/Map.js",
"type": "cjs require",
"userRequest": "leaflet",
"loc": "16:15-33"
},
{
"moduleId": 136,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Poly.js",
"module": "./src/modules/Poly.js",
"moduleName": "./src/modules/Poly.js",
"type": "cjs require",
"userRequest": "leaflet",
"loc": "20:15-33"
},
{
"moduleId": 144,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Stickers.js",
"module": "./src/modules/Stickers.js",
"moduleName": "./src/modules/Stickers.js",
"type": "cjs require",
"userRequest": "leaflet",
"loc": "16:15-33"
},
{
"moduleId": 145,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Sticker.js",
"module": "./src/modules/Sticker.js",
"moduleName": "./src/modules/Sticker.js",
"type": "cjs require",
"userRequest": "leaflet",
"loc": "16:15-33"
},
{
"moduleId": 146,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"module": "./src/modules/Router.js",
"moduleName": "./src/modules/Router.js",
"type": "cjs require",
"userRequest": "leaflet",
"loc": "24:15-33"
},
{
"moduleId": 160,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/index.js",
"module": "./node_modules/leaflet-routing-machine/src/index.js",
"moduleName": "./node_modules/leaflet-routing-machine/src/index.js",
"type": "cjs require",
"userRequest": "leaflet",
"loc": "1:8-26"
},
{
"moduleId": 161,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/control.js",
"module": "./node_modules/leaflet-routing-machine/src/control.js",
"moduleName": "./node_modules/leaflet-routing-machine/src/control.js",
"type": "cjs require",
"userRequest": "leaflet",
"loc": "4:9-27"
},
{
"moduleId": 164,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/mapbox.js",
"module": "./node_modules/leaflet-routing-machine/src/mapbox.js",
"moduleName": "./node_modules/leaflet-routing-machine/src/mapbox.js",
"type": "cjs require",
"userRequest": "leaflet",
"loc": "4:9-27"
},
{
"moduleId": 165,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/error-control.js",
"module": "./node_modules/leaflet-routing-machine/src/error-control.js",
"moduleName": "./node_modules/leaflet-routing-machine/src/error-control.js",
"type": "cjs require",
"userRequest": "leaflet",
"loc": "4:9-27"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 4,
"source": "/* @preserve\n * Leaflet 1.3.3, a JS library for interactive maps. http://leafletjs.com\n * (c) 2010-2018 Vladimir Agafonkin, (c) 2010-2011 CloudMade\n */\n\n(function (global, factory) {\n\ttypeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :\n\ttypeof define === 'function' && define.amd ? define(['exports'], factory) :\n\t(factory((global.L = {})));\n}(this, (function (exports) { 'use strict';\n\nvar version = \"1.3.3\";\n\n/*\r\n * @namespace Util\r\n *\r\n * Various utility functions, used by Leaflet internally.\r\n */\r\n\r\nvar freeze = Object.freeze;\r\nObject.freeze = function (obj) { return obj; };\r\n\r\n// @function extend(dest: Object, src?: Object): Object\r\n// Merges the properties of the `src` object (or multiple objects) into `dest` object and returns the latter. Has an `L.extend` shortcut.\r\nfunction extend(dest) {\r\n\tvar i, j, len, src;\r\n\r\n\tfor (j = 1, len = arguments.length; j < len; j++) {\r\n\t\tsrc = arguments[j];\r\n\t\tfor (i in src) {\r\n\t\t\tdest[i] = src[i];\r\n\t\t}\r\n\t}\r\n\treturn dest;\r\n}\r\n\r\n// @function create(proto: Object, properties?: Object): Object\r\n// Compatibility polyfill for [Object.create](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object/create)\r\nvar create = Object.create || (function () {\r\n\tfunction F() {}\r\n\treturn function (proto) {\r\n\t\tF.prototype = proto;\r\n\t\treturn new F();\r\n\t};\r\n})();\r\n\r\n// @function bind(fn: Function, …): Function\r\n// Returns a new function bound to the arguments passed, like [Function.prototype.bind](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Function/bind).\r\n// Has a `L.bind()` shortcut.\r\nfunction bind(fn, obj) {\r\n\tvar slice = Array.prototype.slice;\r\n\r\n\tif (fn.bind) {\r\n\t\treturn fn.bind.apply(fn, slice.call(arguments, 1));\r\n\t}\r\n\r\n\tvar args = slice.call(arguments, 2);\r\n\r\n\treturn function () {\r\n\t\treturn fn.apply(obj, args.length ? args.concat(slice.call(arguments)) : arguments);\r\n\t};\r\n}\r\n\r\n// @property lastId: Number\r\n// Last unique ID used by [`stamp()`](#util-stamp)\r\nvar lastId = 0;\r\n\r\n// @function stamp(obj: Object): Number\r\n// Returns the unique ID of an object, assigning it one if it doesn't have it.\r\nfunction stamp(obj) {\r\n\t/*eslint-disable */\r\n\tobj._leaflet_id = obj._leaflet_id || ++lastId;\r\n\treturn obj._leaflet_id;\r\n\t/* eslint-enable */\r\n}\r\n\r\n// @function throttle(fn: Function, time: Number, context: Object): Function\r\n// Returns a function which executes function `fn` with the given scope `context`\r\n// (so that the `this` keyword refers to `context` inside `fn`'s code). The function\r\n// `fn` will be called no more than one time per given amount of `time`. The arguments\r\n// received by the bound function will be any arguments passed when binding the\r\n// function, followed by any arguments passed when invoking the bound function.\r\n// Has an `L.throttle` shortcut.\r\nfunction throttle(fn, time, context) {\r\n\tvar lock, args, wrapperFn, later;\r\n\r\n\tlater = function () {\r\n\t\t// reset lock and call if queued\r\n\t\tlock = false;\r\n\t\tif (args) {\r\n\t\t\twrapperFn.apply(context, args);\r\n\t\t\targs = false;\r\n\t\t}\r\n\t};\r\n\r\n\twrapperFn = function () {\r\n\t\tif (lock) {\r\n\t\t\t// called too soon, queue to call later\r\n\t\t\targs = arguments;\r\n\r\n\t\t} else {\r\n\t\t\t// call and lock until later\r\n\t\t\tfn.apply(context, arguments);\r\n\t\t\tsetTimeout(later, time);\r\n\t\t\tlock = true;\r\n\t\t}\r\n\t};\r\n\r\n\treturn wrapperFn;\r\n}\r\n\r\n// @function wrapNum(num: Number, range: Number[], includeMax?: Boolean): Number\r\n// Returns the number `num` modulo `range` in such a way so it lies within\r\n// `range[0]` and `range[1]`. The returned value will be always smaller than\r\n// `range[1]` unless `includeMax` is set to `true`.\r\nfunction wrapNum(x, range, includeMax) {\r\n\tvar max = range[1],\r\n\t min = range[0],\r\n\t d = max - min;\r\n\treturn x === max && includeMax ? x : ((x - min) % d + d) % d + min;\r\n}\r\n\r\n// @function falseFn(): Function\r\n// Returns a function which always returns `false`.\r\nfunction falseFn() { return false; }\r\n\r\n// @function formatNum(num: Number, digits?: Number): Number\r\n// Returns the number `num` rounded to `digits` decimals, or to 6 decimals by default.\r\nfunction formatNum(num, digits) {\r\n\tvar pow = Math.pow(10, (digits === undefined ? 6 : digits));\r\n\treturn Math.round(num * pow) / pow;\r\n}\r\n\r\n// @function trim(str: String): String\r\n// Compatibility polyfill for [String.prototype.trim](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String/Trim)\r\nfunction trim(str) {\r\n\treturn str.trim ? str.trim() : str.replace(/^\\s+|\\s+$/g, '');\r\n}\r\n\r\n// @function splitWords(str: String): String[]\r\n// Trims and splits the string on whitespace and returns the array of parts.\r\nfunction splitWords(str) {\r\n\treturn trim(str).split(/\\s+/);\r\n}\r\n\r\n// @function setOptions(obj: Object, options: Object): Object\r\n// Merges the given properties to the `options` of the `obj` object, returning the resulting options. See `Class options`. Has an `L.setOptions` shortcut.\r\nfunction setOptions(obj, options) {\r\n\tif (!obj.hasOwnProperty('options')) {\r\n\t\tobj.options = obj.options ? create(obj.options) : {};\r\n\t}\r\n\tfor (var i in options) {\r\n\t\tobj.options[i] = options[i];\r\n\t}\r\n\treturn obj.options;\r\n}\r\n\r\n// @function getParamString(obj: Object, existingUrl?: String, uppercase?: Boolean): String\r\n// Converts an object into a parameter URL string, e.g. `{a: \"foo\", b: \"bar\"}`\r\n// translates to `'?a=foo&b=bar'`. If `existingUrl` is set, the parameters will\r\n// be appended at the end. If `uppercase` is `true`, the parameter names will\r\n// be uppercased (e.g. `'?A=foo&B=bar'`)\r\nfunction getParamString(obj, existingUrl, uppercase) {\r\n\tvar params = [];\r\n\tfor (var i in obj) {\r\n\t\tparams.push(encodeURIComponent(uppercase ? i.toUpperCase() : i) + '=' + encodeURIComponent(obj[i]));\r\n\t}\r\n\treturn ((!existingUrl || existingUrl.indexOf('?') === -1) ? '?' : '&') + params.join('&');\r\n}\r\n\r\nvar templateRe = /\\{ *([\\w_-]+) *\\}/g;\r\n\r\n// @function template(str: String, data: Object): String\r\n// Simple templating facility, accepts a template string of the form `'Hello {a}, {b}'`\r\n// and a data object like `{a: 'foo', b: 'bar'}`, returns evaluated string\r\n// `('Hello foo, bar')`. You can also specify functions instead of strings for\r\n// data values — they will be evaluated passing `data` as an argument.\r\nfunction template(str, data) {\r\n\treturn str.replace(templateRe, function (str, key) {\r\n\t\tvar value = data[key];\r\n\r\n\t\tif (value === undefined) {\r\n\t\t\tthrow new Error('No value provided for variable ' + str);\r\n\r\n\t\t} else if (typeof value === 'function') {\r\n\t\t\tvalue = value(data);\r\n\t\t}\r\n\t\treturn value;\r\n\t});\r\n}\r\n\r\n// @function isArray(obj): Boolean\r\n// Compatibility polyfill for [Array.isArray](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array/isArray)\r\nvar isArray = Array.isArray || function (obj) {\r\n\treturn (Object.prototype.toString.call(obj) === '[object Array]');\r\n};\r\n\r\n// @function indexOf(array: Array, el: Object): Number\r\n// Compatibility polyfill for [Array.prototype.indexOf](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array/indexOf)\r\nfunction indexOf(array, el) {\r\n\tfor (var i = 0; i < array.length; i++) {\r\n\t\tif (array[i] === el) { return i; }\r\n\t}\r\n\treturn -1;\r\n}\r\n\r\n// @property emptyImageUrl: String\r\n// Data URI string containing a base64-encoded empty GIF image.\r\n// Used as a hack to free memory from unused images on WebKit-powered\r\n// mobile devices (by setting image `src` to this string).\r\nvar emptyImageUrl = 'data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=';\r\n\r\n// inspired by http://paulirish.com/2011/requestanimationframe-for-smart-animating/\r\n\r\nfunction getPrefixed(name) {\r\n\treturn window['webkit' + name] || window['moz' + name] || window['ms' + name];\r\n}\r\n\r\nvar lastTime = 0;\r\n\r\n// fallback for IE 7-8\r\nfunction timeoutDefer(fn) {\r\n\tvar time = +new Date(),\r\n\t timeToCall = Math.max(0, 16 - (time - lastTime));\r\n\r\n\tlastTime = time + timeToCall;\r\n\treturn window.setTimeout(fn, timeToCall);\r\n}\r\n\r\nvar requestFn = window.requestAnimationFrame || getPrefixed('RequestAnimationFrame') || timeoutDefer;\r\nvar cancelFn = window.cancelAnimationFrame || getPrefixed('CancelAnimationFrame') ||\r\n\t\tgetPrefixed('CancelRequestAnimationFrame') || function (id) { window.clearTimeout(id); };\r\n\r\n// @function requestAnimFrame(fn: Function, context?: Object, immediate?: Boolean): Number\r\n// Schedules `fn` to be executed when the browser repaints. `fn` is bound to\r\n// `context` if given. When `immediate` is set, `fn` is called immediately if\r\n// the browser doesn't have native support for\r\n// [`window.requestAnimationFrame`](https://developer.mozilla.org/docs/Web/API/window/requestAnimationFrame),\r\n// otherwise it's delayed. Returns a request ID that can be used to cancel the request.\r\nfunction requestAnimFrame(fn, context, immediate) {\r\n\tif (immediate && requestFn === timeoutDefer) {\r\n\t\tfn.call(context);\r\n\t} else {\r\n\t\treturn requestFn.call(window, bind(fn, context));\r\n\t}\r\n}\r\n\r\n// @function cancelAnimFrame(id: Number): undefined\r\n// Cancels a previous `requestAnimFrame`. See also [window.cancelAnimationFrame](https://developer.mozilla.org/docs/Web/API/window/cancelAnimationFrame).\r\nfunction cancelAnimFrame(id) {\r\n\tif (id) {\r\n\t\tcancelFn.call(window, id);\r\n\t}\r\n}\r\n\n\nvar Util = (Object.freeze || Object)({\n\tfreeze: freeze,\n\textend: extend,\n\tcreate: create,\n\tbind: bind,\n\tlastId: lastId,\n\tstamp: stamp,\n\tthrottle: throttle,\n\twrapNum: wrapNum,\n\tfalseFn: falseFn,\n\tformatNum: formatNum,\n\ttrim: trim,\n\tsplitWords: splitWords,\n\tsetOptions: setOptions,\n\tgetParamString: getParamString,\n\ttemplate: template,\n\tisArray: isArray,\n\tindexOf: indexOf,\n\temptyImageUrl: emptyImageUrl,\n\trequestFn: requestFn,\n\tcancelFn: cancelFn,\n\trequestAnimFrame: requestAnimFrame,\n\tcancelAnimFrame: cancelAnimFrame\n});\n\n// @class Class\r\n// @aka L.Class\r\n\r\n// @section\r\n// @uninheritable\r\n\r\n// Thanks to John Resig and Dean Edwards for inspiration!\r\n\r\nfunction Class() {}\r\n\r\nClass.extend = function (props) {\r\n\r\n\t// @function extend(props: Object): Function\r\n\t// [Extends the current class](#class-inheritance) given the properties to be included.\r\n\t// Returns a Javascript function that is a class constructor (to be called with `new`).\r\n\tvar NewClass = function () {\r\n\r\n\t\t// call the constructor\r\n\t\tif (this.initialize) {\r\n\t\t\tthis.initialize.apply(this, arguments);\r\n\t\t}\r\n\r\n\t\t// call all constructor hooks\r\n\t\tthis.callInitHooks();\r\n\t};\r\n\r\n\tvar parentProto = NewClass.__super__ = this.prototype;\r\n\r\n\tvar proto = create(parentProto);\r\n\tproto.constructor = NewClass;\r\n\r\n\tNewClass.prototype = proto;\r\n\r\n\t// inherit parent's statics\r\n\tfor (var i in this) {\r\n\t\tif (this.hasOwnProperty(i) && i !== 'prototype' && i !== '__super__') {\r\n\t\t\tNewClass[i] = this[i];\r\n\t\t}\r\n\t}\r\n\r\n\t// mix static properties into the class\r\n\tif (props.statics) {\r\n\t\textend(NewClass, props.statics);\r\n\t\tdelete props.statics;\r\n\t}\r\n\r\n\t// mix includes into the prototype\r\n\tif (props.includes) {\r\n\t\tcheckDeprecatedMixinEvents(props.includes);\r\n\t\textend.apply(null, [proto].concat(props.includes));\r\n\t\tdelete props.includes;\r\n\t}\r\n\r\n\t// merge options\r\n\tif (proto.options) {\r\n\t\tprops.options = extend(create(proto.options), props.options);\r\n\t}\r\n\r\n\t// mix given properties into the prototype\r\n\textend(proto, props);\r\n\r\n\tproto._initHooks = [];\r\n\r\n\t// add method for calling all hooks\r\n\tproto.callInitHooks = function () {\r\n\r\n\t\tif (this._initHooksCalled) { return; }\r\n\r\n\t\tif (parentProto.callInitHooks) {\r\n\t\t\tparentProto.callInitHooks.call(this);\r\n\t\t}\r\n\r\n\t\tthis._initHooksCalled = true;\r\n\r\n\t\tfor (var i = 0, len = proto._initHooks.length; i < len; i++) {\r\n\t\t\tproto._initHooks[i].call(this);\r\n\t\t}\r\n\t};\r\n\r\n\treturn NewClass;\r\n};\r\n\r\n\r\n// @function include(properties: Object): this\r\n// [Includes a mixin](#class-includes) into the current class.\r\nClass.include = function (props) {\r\n\textend(this.prototype, props);\r\n\treturn this;\r\n};\r\n\r\n// @function mergeOptions(options: Object): this\r\n// [Merges `options`](#class-options) into the defaults of the class.\r\nClass.mergeOptions = function (options) {\r\n\textend(this.prototype.options, options);\r\n\treturn this;\r\n};\r\n\r\n// @function addInitHook(fn: Function): this\r\n// Adds a [constructor hook](#class-constructor-hooks) to the class.\r\nClass.addInitHook = function (fn) { // (Function) || (String, args...)\r\n\tvar args = Array.prototype.slice.call(arguments, 1);\r\n\r\n\tvar init = typeof fn === 'function' ? fn : function () {\r\n\t\tthis[fn].apply(this, args);\r\n\t};\r\n\r\n\tthis.prototype._initHooks = this.prototype._initHooks || [];\r\n\tthis.prototype._initHooks.push(init);\r\n\treturn this;\r\n};\r\n\r\nfunction checkDeprecatedMixinEvents(includes) {\r\n\tif (typeof L === 'undefined' || !L || !L.Mixin) { return; }\r\n\r\n\tincludes = isArray(includes) ? includes : [includes];\r\n\r\n\tfor (var i = 0; i < includes.length; i++) {\r\n\t\tif (includes[i] === L.Mixin.Events) {\r\n\t\t\tconsole.warn('Deprecated include of L.Mixin.Events: ' +\r\n\t\t\t\t'this property will be removed in future releases, ' +\r\n\t\t\t\t'please inherit from L.Evented instead.', new Error().stack);\r\n\t\t}\r\n\t}\r\n}\n\n/*\r\n * @class Evented\r\n * @aka L.Evented\r\n * @inherits Class\r\n *\r\n * A set of methods shared between event-powered classes (like `Map` and `Marker`). Generally, events allow you to execute some function when something happens with an object (e.g. the user clicks on the map, causing the map to fire `'click'` event).\r\n *\r\n * @example\r\n *\r\n * ```js\r\n * map.on('click', function(e) {\r\n * \talert(e.latlng);\r\n * } );\r\n * ```\r\n *\r\n * Leaflet deals with event listeners by reference, so if you want to add a listener and then remove it, define it as a function:\r\n *\r\n * ```js\r\n * function onClick(e) { ... }\r\n *\r\n * map.on('click', onClick);\r\n * map.off('click', onClick);\r\n * ```\r\n */\r\n\r\nvar Events = {\r\n\t/* @method on(type: String, fn: Function, context?: Object): this\r\n\t * Adds a listener function (`fn`) to a particular event type of the object. You can optionally specify the context of the listener (object the this keyword will point to). You can also pass several space-separated types (e.g. `'click dblclick'`).\r\n\t *\r\n\t * @alternative\r\n\t * @method on(eventMap: Object): this\r\n\t * Adds a set of type/listener pairs, e.g. `{click: onClick, mousemove: onMouseMove}`\r\n\t */\r\n\ton: function (types, fn, context) {\r\n\r\n\t\t// types can be a map of types/handlers\r\n\t\tif (typeof types === 'object') {\r\n\t\t\tfor (var type in types) {\r\n\t\t\t\t// we don't process space-separated events here for performance;\r\n\t\t\t\t// it's a hot path since Layer uses the on(obj) syntax\r\n\t\t\t\tthis._on(type, types[type], fn);\r\n\t\t\t}\r\n\r\n\t\t} else {\r\n\t\t\t// types can be a string of space-separated words\r\n\t\t\ttypes = splitWords(types);\r\n\r\n\t\t\tfor (var i = 0, len = types.length; i < len; i++) {\r\n\t\t\t\tthis._on(types[i], fn, context);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn this;\r\n\t},\r\n\r\n\t/* @method off(type: String, fn?: Function, context?: Object): this\r\n\t * Removes a previously added listener function. If no function is specified, it will remove all the listeners of that particular event from the object. Note that if you passed a custom context to `on`, you must pass the same context to `off` in order to remove the listener.\r\n\t *\r\n\t * @alternative\r\n\t * @method off(eventMap: Object): this\r\n\t * Removes a set of type/listener pairs.\r\n\t *\r\n\t * @alternative\r\n\t * @method off: this\r\n\t * Removes all listeners to all events on the object.\r\n\t */\r\n\toff: function (types, fn, context) {\r\n\r\n\t\tif (!types) {\r\n\t\t\t// clear all listeners if called without arguments\r\n\t\t\tdelete this._events;\r\n\r\n\t\t} else if (typeof types === 'object') {\r\n\t\t\tfor (var type in types) {\r\n\t\t\t\tthis._off(type, types[type], fn);\r\n\t\t\t}\r\n\r\n\t\t} else {\r\n\t\t\ttypes = splitWords(types);\r\n\r\n\t\t\tfor (var i = 0, len = types.length; i < len; i++) {\r\n\t\t\t\tthis._off(types[i], fn, context);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// attach listener (without syntactic sugar now)\r\n\t_on: function (type, fn, context) {\r\n\t\tthis._events = this._events || {};\r\n\r\n\t\t/* get/init listeners for type */\r\n\t\tvar typeListeners = this._events[type];\r\n\t\tif (!typeListeners) {\r\n\t\t\ttypeListeners = [];\r\n\t\t\tthis._events[type] = typeListeners;\r\n\t\t}\r\n\r\n\t\tif (context === this) {\r\n\t\t\t// Less memory footprint.\r\n\t\t\tcontext = undefined;\r\n\t\t}\r\n\t\tvar newListener = {fn: fn, ctx: context},\r\n\t\t listeners = typeListeners;\r\n\r\n\t\t// check if fn already there\r\n\t\tfor (var i = 0, len = listeners.length; i < len; i++) {\r\n\t\t\tif (listeners[i].fn === fn && listeners[i].ctx === context) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tlisteners.push(newListener);\r\n\t},\r\n\r\n\t_off: function (type, fn, context) {\r\n\t\tvar listeners,\r\n\t\t i,\r\n\t\t len;\r\n\r\n\t\tif (!this._events) { return; }\r\n\r\n\t\tlisteners = this._events[type];\r\n\r\n\t\tif (!listeners) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (!fn) {\r\n\t\t\t// Set all removed listeners to noop so they are not called if remove happens in fire\r\n\t\t\tfor (i = 0, len = listeners.length; i < len; i++) {\r\n\t\t\t\tlisteners[i].fn = falseFn;\r\n\t\t\t}\r\n\t\t\t// clear all listeners for a type if function isn't specified\r\n\t\t\tdelete this._events[type];\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (context === this) {\r\n\t\t\tcontext = undefined;\r\n\t\t}\r\n\r\n\t\tif (listeners) {\r\n\r\n\t\t\t// find fn and remove it\r\n\t\t\tfor (i = 0, len = listeners.length; i < len; i++) {\r\n\t\t\t\tvar l = listeners[i];\r\n\t\t\t\tif (l.ctx !== context) { continue; }\r\n\t\t\t\tif (l.fn === fn) {\r\n\r\n\t\t\t\t\t// set the removed listener to noop so that's not called if remove happens in fire\r\n\t\t\t\t\tl.fn = falseFn;\r\n\r\n\t\t\t\t\tif (this._firingCount) {\r\n\t\t\t\t\t\t/* copy array in case events are being fired */\r\n\t\t\t\t\t\tthis._events[type] = listeners = listeners.slice();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tlisteners.splice(i, 1);\r\n\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\r\n\t// @method fire(type: String, data?: Object, propagate?: Boolean): this\r\n\t// Fires an event of the specified type. You can optionally provide an data\r\n\t// object — the first argument of the listener function will contain its\r\n\t// properties. The event can optionally be propagated to event parents.\r\n\tfire: function (type, data, propagate) {\r\n\t\tif (!this.listens(type, propagate)) { return this; }\r\n\r\n\t\tvar event = extend({}, data, {\r\n\t\t\ttype: type,\r\n\t\t\ttarget: this,\r\n\t\t\tsourceTarget: data && data.sourceTarget || this\r\n\t\t});\r\n\r\n\t\tif (this._events) {\r\n\t\t\tvar listeners = this._events[type];\r\n\r\n\t\t\tif (listeners) {\r\n\t\t\t\tthis._firingCount = (this._firingCount + 1) || 1;\r\n\t\t\t\tfor (var i = 0, len = listeners.length; i < len; i++) {\r\n\t\t\t\t\tvar l = listeners[i];\r\n\t\t\t\t\tl.fn.call(l.ctx || this, event);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis._firingCount--;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (propagate) {\r\n\t\t\t// propagate the event to parents (set with addEventParent)\r\n\t\t\tthis._propagateEvent(event);\r\n\t\t}\r\n\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method listens(type: String): Boolean\r\n\t// Returns `true` if a particular event type has any listeners attached to it.\r\n\tlistens: function (type, propagate) {\r\n\t\tvar listeners = this._events && this._events[type];\r\n\t\tif (listeners && listeners.length) { return true; }\r\n\r\n\t\tif (propagate) {\r\n\t\t\t// also check parents for listeners if event propagates\r\n\t\t\tfor (var id in this._eventParents) {\r\n\t\t\t\tif (this._eventParents[id].listens(type, propagate)) { return true; }\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t},\r\n\r\n\t// @method once(…): this\r\n\t// Behaves as [`on(…)`](#evented-on), except the listener will only get fired once and then removed.\r\n\tonce: function (types, fn, context) {\r\n\r\n\t\tif (typeof types === 'object') {\r\n\t\t\tfor (var type in types) {\r\n\t\t\t\tthis.once(type, types[type], fn);\r\n\t\t\t}\r\n\t\t\treturn this;\r\n\t\t}\r\n\r\n\t\tvar handler = bind(function () {\r\n\t\t\tthis\r\n\t\t\t .off(types, fn, context)\r\n\t\t\t .off(types, handler, context);\r\n\t\t}, this);\r\n\r\n\t\t// add a listener that's executed once and removed after that\r\n\t\treturn this\r\n\t\t .on(types, fn, context)\r\n\t\t .on(types, handler, context);\r\n\t},\r\n\r\n\t// @method addEventParent(obj: Evented): this\r\n\t// Adds an event parent - an `Evented` that will receive propagated events\r\n\taddEventParent: function (obj) {\r\n\t\tthis._eventParents = this._eventParents || {};\r\n\t\tthis._eventParents[stamp(obj)] = obj;\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method removeEventParent(obj: Evented): this\r\n\t// Removes an event parent, so it will stop receiving propagated events\r\n\tremoveEventParent: function (obj) {\r\n\t\tif (this._eventParents) {\r\n\t\t\tdelete this._eventParents[stamp(obj)];\r\n\t\t}\r\n\t\treturn this;\r\n\t},\r\n\r\n\t_propagateEvent: function (e) {\r\n\t\tfor (var id in this._eventParents) {\r\n\t\t\tthis._eventParents[id].fire(e.type, extend({\r\n\t\t\t\tlayer: e.target,\r\n\t\t\t\tpropagatedFrom: e.target\r\n\t\t\t}, e), true);\r\n\t\t}\r\n\t}\r\n};\r\n\r\n// aliases; we should ditch those eventually\r\n\r\n// @method addEventListener(…): this\r\n// Alias to [`on(…)`](#evented-on)\r\nEvents.addEventListener = Events.on;\r\n\r\n// @method removeEventListener(…): this\r\n// Alias to [`off(…)`](#evented-off)\r\n\r\n// @method clearAllEventListeners(…): this\r\n// Alias to [`off()`](#evented-off)\r\nEvents.removeEventListener = Events.clearAllEventListeners = Events.off;\r\n\r\n// @method addOneTimeEventListener(…): this\r\n// Alias to [`once(…)`](#evented-once)\r\nEvents.addOneTimeEventListener = Events.once;\r\n\r\n// @method fireEvent(…): this\r\n// Alias to [`fire(…)`](#evented-fire)\r\nEvents.fireEvent = Events.fire;\r\n\r\n// @method hasEventListeners(…): Boolean\r\n// Alias to [`listens(…)`](#evented-listens)\r\nEvents.hasEventListeners = Events.listens;\r\n\r\nvar Evented = Class.extend(Events);\n\n/*\r\n * @class Point\r\n * @aka L.Point\r\n *\r\n * Represents a point with `x` and `y` coordinates in pixels.\r\n *\r\n * @example\r\n *\r\n * ```js\r\n * var point = L.point(200, 300);\r\n * ```\r\n *\r\n * All Leaflet methods and options that accept `Point` objects also accept them in a simple Array form (unless noted otherwise), so these lines are equivalent:\r\n *\r\n * ```js\r\n * map.panBy([200, 300]);\r\n * map.panBy(L.point(200, 300));\r\n * ```\r\n *\r\n * Note that `Point` does not inherit from Leafet's `Class` object,\r\n * which means new classes can't inherit from it, and new methods\r\n * can't be added to it with the `include` function.\r\n */\r\n\r\nfunction Point(x, y, round) {\r\n\t// @property x: Number; The `x` coordinate of the point\r\n\tthis.x = (round ? Math.round(x) : x);\r\n\t// @property y: Number; The `y` coordinate of the point\r\n\tthis.y = (round ? Math.round(y) : y);\r\n}\r\n\r\nvar trunc = Math.trunc || function (v) {\r\n\treturn v > 0 ? Math.floor(v) : Math.ceil(v);\r\n};\r\n\r\nPoint.prototype = {\r\n\r\n\t// @method clone(): Point\r\n\t// Returns a copy of the current point.\r\n\tclone: function () {\r\n\t\treturn new Point(this.x, this.y);\r\n\t},\r\n\r\n\t// @method add(otherPoint: Point): Point\r\n\t// Returns the result of addition of the current and the given points.\r\n\tadd: function (point) {\r\n\t\t// non-destructive, returns a new point\r\n\t\treturn this.clone()._add(toPoint(point));\r\n\t},\r\n\r\n\t_add: function (point) {\r\n\t\t// destructive, used directly for performance in situations where it's safe to modify existing point\r\n\t\tthis.x += point.x;\r\n\t\tthis.y += point.y;\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method subtract(otherPoint: Point): Point\r\n\t// Returns the result of subtraction of the given point from the current.\r\n\tsubtract: function (point) {\r\n\t\treturn this.clone()._subtract(toPoint(point));\r\n\t},\r\n\r\n\t_subtract: function (point) {\r\n\t\tthis.x -= point.x;\r\n\t\tthis.y -= point.y;\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method divideBy(num: Number): Point\r\n\t// Returns the result of division of the current point by the given number.\r\n\tdivideBy: function (num) {\r\n\t\treturn this.clone()._divideBy(num);\r\n\t},\r\n\r\n\t_divideBy: function (num) {\r\n\t\tthis.x /= num;\r\n\t\tthis.y /= num;\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method multiplyBy(num: Number): Point\r\n\t// Returns the result of multiplication of the current point by the given number.\r\n\tmultiplyBy: function (num) {\r\n\t\treturn this.clone()._multiplyBy(num);\r\n\t},\r\n\r\n\t_multiplyBy: function (num) {\r\n\t\tthis.x *= num;\r\n\t\tthis.y *= num;\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method scaleBy(scale: Point): Point\r\n\t// Multiply each coordinate of the current point by each coordinate of\r\n\t// `scale`. In linear algebra terms, multiply the point by the\r\n\t// [scaling matrix](https://en.wikipedia.org/wiki/Scaling_%28geometry%29#Matrix_representation)\r\n\t// defined by `scale`.\r\n\tscaleBy: function (point) {\r\n\t\treturn new Point(this.x * point.x, this.y * point.y);\r\n\t},\r\n\r\n\t// @method unscaleBy(scale: Point): Point\r\n\t// Inverse of `scaleBy`. Divide each coordinate of the current point by\r\n\t// each coordinate of `scale`.\r\n\tunscaleBy: function (point) {\r\n\t\treturn new Point(this.x / point.x, this.y / point.y);\r\n\t},\r\n\r\n\t// @method round(): Point\r\n\t// Returns a copy of the current point with rounded coordinates.\r\n\tround: function () {\r\n\t\treturn this.clone()._round();\r\n\t},\r\n\r\n\t_round: function () {\r\n\t\tthis.x = Math.round(this.x);\r\n\t\tthis.y = Math.round(this.y);\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method floor(): Point\r\n\t// Returns a copy of the current point with floored coordinates (rounded down).\r\n\tfloor: function () {\r\n\t\treturn this.clone()._floor();\r\n\t},\r\n\r\n\t_floor: function () {\r\n\t\tthis.x = Math.floor(this.x);\r\n\t\tthis.y = Math.floor(this.y);\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method ceil(): Point\r\n\t// Returns a copy of the current point with ceiled coordinates (rounded up).\r\n\tceil: function () {\r\n\t\treturn this.clone()._ceil();\r\n\t},\r\n\r\n\t_ceil: function () {\r\n\t\tthis.x = Math.ceil(this.x);\r\n\t\tthis.y = Math.ceil(this.y);\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method trunc(): Point\r\n\t// Returns a copy of the current point with truncated coordinates (rounded towards zero).\r\n\ttrunc: function () {\r\n\t\treturn this.clone()._trunc();\r\n\t},\r\n\r\n\t_trunc: function () {\r\n\t\tthis.x = trunc(this.x);\r\n\t\tthis.y = trunc(this.y);\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method distanceTo(otherPoint: Point): Number\r\n\t// Returns the cartesian distance between the current and the given points.\r\n\tdistanceTo: function (point) {\r\n\t\tpoint = toPoint(point);\r\n\r\n\t\tvar x = point.x - this.x,\r\n\t\t y = point.y - this.y;\r\n\r\n\t\treturn Math.sqrt(x * x + y * y);\r\n\t},\r\n\r\n\t// @method equals(otherPoint: Point): Boolean\r\n\t// Returns `true` if the given point has the same coordinates.\r\n\tequals: function (point) {\r\n\t\tpoint = toPoint(point);\r\n\r\n\t\treturn point.x === this.x &&\r\n\t\t point.y === this.y;\r\n\t},\r\n\r\n\t// @method contains(otherPoint: Point): Boolean\r\n\t// Returns `true` if both coordinates of the given point are less than the corresponding current point coordinates (in absolute values).\r\n\tcontains: function (point) {\r\n\t\tpoint = toPoint(point);\r\n\r\n\t\treturn Math.abs(point.x) <= Math.abs(this.x) &&\r\n\t\t Math.abs(point.y) <= Math.abs(this.y);\r\n\t},\r\n\r\n\t// @method toString(): String\r\n\t// Returns a string representation of the point for debugging purposes.\r\n\ttoString: function () {\r\n\t\treturn 'Point(' +\r\n\t\t formatNum(this.x) + ', ' +\r\n\t\t formatNum(this.y) + ')';\r\n\t}\r\n};\r\n\r\n// @factory L.point(x: Number, y: Number, round?: Boolean)\r\n// Creates a Point object with the given `x` and `y` coordinates. If optional `round` is set to true, rounds the `x` and `y` values.\r\n\r\n// @alternative\r\n// @factory L.point(coords: Number[])\r\n// Expects an array of the form `[x, y]` instead.\r\n\r\n// @alternative\r\n// @factory L.point(coords: Object)\r\n// Expects a plain object of the form `{x: Number, y: Number}` instead.\r\nfunction toPoint(x, y, round) {\r\n\tif (x instanceof Point) {\r\n\t\treturn x;\r\n\t}\r\n\tif (isArray(x)) {\r\n\t\treturn new Point(x[0], x[1]);\r\n\t}\r\n\tif (x === undefined || x === null) {\r\n\t\treturn x;\r\n\t}\r\n\tif (typeof x === 'object' && 'x' in x && 'y' in x) {\r\n\t\treturn new Point(x.x, x.y);\r\n\t}\r\n\treturn new Point(x, y, round);\r\n}\n\n/*\r\n * @class Bounds\r\n * @aka L.Bounds\r\n *\r\n * Represents a rectangular area in pixel coordinates.\r\n *\r\n * @example\r\n *\r\n * ```js\r\n * var p1 = L.point(10, 10),\r\n * p2 = L.point(40, 60),\r\n * bounds = L.bounds(p1, p2);\r\n * ```\r\n *\r\n * All Leaflet methods that accept `Bounds` objects also accept them in a simple Array form (unless noted otherwise), so the bounds example above can be passed like this:\r\n *\r\n * ```js\r\n * otherBounds.intersects([[10, 10], [40, 60]]);\r\n * ```\r\n *\r\n * Note that `Bounds` does not inherit from Leafet's `Class` object,\r\n * which means new classes can't inherit from it, and new methods\r\n * can't be added to it with the `include` function.\r\n */\r\n\r\nfunction Bounds(a, b) {\r\n\tif (!a) { return; }\r\n\r\n\tvar points = b ? [a, b] : a;\r\n\r\n\tfor (var i = 0, len = points.length; i < len; i++) {\r\n\t\tthis.extend(points[i]);\r\n\t}\r\n}\r\n\r\nBounds.prototype = {\r\n\t// @method extend(point: Point): this\r\n\t// Extends the bounds to contain the given point.\r\n\textend: function (point) { // (Point)\r\n\t\tpoint = toPoint(point);\r\n\r\n\t\t// @property min: Point\r\n\t\t// The top left corner of the rectangle.\r\n\t\t// @property max: Point\r\n\t\t// The bottom right corner of the rectangle.\r\n\t\tif (!this.min && !this.max) {\r\n\t\t\tthis.min = point.clone();\r\n\t\t\tthis.max = point.clone();\r\n\t\t} else {\r\n\t\t\tthis.min.x = Math.min(point.x, this.min.x);\r\n\t\t\tthis.max.x = Math.max(point.x, this.max.x);\r\n\t\t\tthis.min.y = Math.min(point.y, this.min.y);\r\n\t\t\tthis.max.y = Math.max(point.y, this.max.y);\r\n\t\t}\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method getCenter(round?: Boolean): Point\r\n\t// Returns the center point of the bounds.\r\n\tgetCenter: function (round) {\r\n\t\treturn new Point(\r\n\t\t (this.min.x + this.max.x) / 2,\r\n\t\t (this.min.y + this.max.y) / 2, round);\r\n\t},\r\n\r\n\t// @method getBottomLeft(): Point\r\n\t// Returns the bottom-left point of the bounds.\r\n\tgetBottomLeft: function () {\r\n\t\treturn new Point(this.min.x, this.max.y);\r\n\t},\r\n\r\n\t// @method getTopRight(): Point\r\n\t// Returns the top-right point of the bounds.\r\n\tgetTopRight: function () { // -> Point\r\n\t\treturn new Point(this.max.x, this.min.y);\r\n\t},\r\n\r\n\t// @method getTopLeft(): Point\r\n\t// Returns the top-left point of the bounds (i.e. [`this.min`](#bounds-min)).\r\n\tgetTopLeft: function () {\r\n\t\treturn this.min; // left, top\r\n\t},\r\n\r\n\t// @method getBottomRight(): Point\r\n\t// Returns the bottom-right point of the bounds (i.e. [`this.max`](#bounds-max)).\r\n\tgetBottomRight: function () {\r\n\t\treturn this.max; // right, bottom\r\n\t},\r\n\r\n\t// @method getSize(): Point\r\n\t// Returns the size of the given bounds\r\n\tgetSize: function () {\r\n\t\treturn this.max.subtract(this.min);\r\n\t},\r\n\r\n\t// @method contains(otherBounds: Bounds): Boolean\r\n\t// Returns `true` if the rectangle contains the given one.\r\n\t// @alternative\r\n\t// @method contains(point: Point): Boolean\r\n\t// Returns `true` if the rectangle contains the given point.\r\n\tcontains: function (obj) {\r\n\t\tvar min, max;\r\n\r\n\t\tif (typeof obj[0] === 'number' || obj instanceof Point) {\r\n\t\t\tobj = toPoint(obj);\r\n\t\t} else {\r\n\t\t\tobj = toBounds(obj);\r\n\t\t}\r\n\r\n\t\tif (obj instanceof Bounds) {\r\n\t\t\tmin = obj.min;\r\n\t\t\tmax = obj.max;\r\n\t\t} else {\r\n\t\t\tmin = max = obj;\r\n\t\t}\r\n\r\n\t\treturn (min.x >= this.min.x) &&\r\n\t\t (max.x <= this.max.x) &&\r\n\t\t (min.y >= this.min.y) &&\r\n\t\t (max.y <= this.max.y);\r\n\t},\r\n\r\n\t// @method intersects(otherBounds: Bounds): Boolean\r\n\t// Returns `true` if the rectangle intersects the given bounds. Two bounds\r\n\t// intersect if they have at least one point in common.\r\n\tintersects: function (bounds) { // (Bounds) -> Boolean\r\n\t\tbounds = toBounds(bounds);\r\n\r\n\t\tvar min = this.min,\r\n\t\t max = this.max,\r\n\t\t min2 = bounds.min,\r\n\t\t max2 = bounds.max,\r\n\t\t xIntersects = (max2.x >= min.x) && (min2.x <= max.x),\r\n\t\t yIntersects = (max2.y >= min.y) && (min2.y <= max.y);\r\n\r\n\t\treturn xIntersects && yIntersects;\r\n\t},\r\n\r\n\t// @method overlaps(otherBounds: Bounds): Boolean\r\n\t// Returns `true` if the rectangle overlaps the given bounds. Two bounds\r\n\t// overlap if their intersection is an area.\r\n\toverlaps: function (bounds) { // (Bounds) -> Boolean\r\n\t\tbounds = toBounds(bounds);\r\n\r\n\t\tvar min = this.min,\r\n\t\t max = this.max,\r\n\t\t min2 = bounds.min,\r\n\t\t max2 = bounds.max,\r\n\t\t xOverlaps = (max2.x > min.x) && (min2.x < max.x),\r\n\t\t yOverlaps = (max2.y > min.y) && (min2.y < max.y);\r\n\r\n\t\treturn xOverlaps && yOverlaps;\r\n\t},\r\n\r\n\tisValid: function () {\r\n\t\treturn !!(this.min && this.max);\r\n\t}\r\n};\r\n\r\n\r\n// @factory L.bounds(corner1: Point, corner2: Point)\r\n// Creates a Bounds object from two corners coordinate pairs.\r\n// @alternative\r\n// @factory L.bounds(points: Point[])\r\n// Creates a Bounds object from the given array of points.\r\nfunction toBounds(a, b) {\r\n\tif (!a || a instanceof Bounds) {\r\n\t\treturn a;\r\n\t}\r\n\treturn new Bounds(a, b);\r\n}\n\n/*\r\n * @class LatLngBounds\r\n * @aka L.LatLngBounds\r\n *\r\n * Represents a rectangular geographical area on a map.\r\n *\r\n * @example\r\n *\r\n * ```js\r\n * var corner1 = L.latLng(40.712, -74.227),\r\n * corner2 = L.latLng(40.774, -74.125),\r\n * bounds = L.latLngBounds(corner1, corner2);\r\n * ```\r\n *\r\n * All Leaflet methods that accept LatLngBounds objects also accept them in a simple Array form (unless noted otherwise), so the bounds example above can be passed like this:\r\n *\r\n * ```js\r\n * map.fitBounds([\r\n * \t[40.712, -74.227],\r\n * \t[40.774, -74.125]\r\n * ]);\r\n * ```\r\n *\r\n * Caution: if the area crosses the antimeridian (often confused with the International Date Line), you must specify corners _outside_ the [-180, 180] degrees longitude range.\r\n *\r\n * Note that `LatLngBounds` does not inherit from Leafet's `Class` object,\r\n * which means new classes can't inherit from it, and new methods\r\n * can't be added to it with the `include` function.\r\n */\r\n\r\nfunction LatLngBounds(corner1, corner2) { // (LatLng, LatLng) or (LatLng[])\r\n\tif (!corner1) { return; }\r\n\r\n\tvar latlngs = corner2 ? [corner1, corner2] : corner1;\r\n\r\n\tfor (var i = 0, len = latlngs.length; i < len; i++) {\r\n\t\tthis.extend(latlngs[i]);\r\n\t}\r\n}\r\n\r\nLatLngBounds.prototype = {\r\n\r\n\t// @method extend(latlng: LatLng): this\r\n\t// Extend the bounds to contain the given point\r\n\r\n\t// @alternative\r\n\t// @method extend(otherBounds: LatLngBounds): this\r\n\t// Extend the bounds to contain the given bounds\r\n\textend: function (obj) {\r\n\t\tvar sw = this._southWest,\r\n\t\t ne = this._northEast,\r\n\t\t sw2, ne2;\r\n\r\n\t\tif (obj instanceof LatLng) {\r\n\t\t\tsw2 = obj;\r\n\t\t\tne2 = obj;\r\n\r\n\t\t} else if (obj instanceof LatLngBounds) {\r\n\t\t\tsw2 = obj._southWest;\r\n\t\t\tne2 = obj._northEast;\r\n\r\n\t\t\tif (!sw2 || !ne2) { return this; }\r\n\r\n\t\t} else {\r\n\t\t\treturn obj ? this.extend(toLatLng(obj) || toLatLngBounds(obj)) : this;\r\n\t\t}\r\n\r\n\t\tif (!sw && !ne) {\r\n\t\t\tthis._southWest = new LatLng(sw2.lat, sw2.lng);\r\n\t\t\tthis._northEast = new LatLng(ne2.lat, ne2.lng);\r\n\t\t} else {\r\n\t\t\tsw.lat = Math.min(sw2.lat, sw.lat);\r\n\t\t\tsw.lng = Math.min(sw2.lng, sw.lng);\r\n\t\t\tne.lat = Math.max(ne2.lat, ne.lat);\r\n\t\t\tne.lng = Math.max(ne2.lng, ne.lng);\r\n\t\t}\r\n\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method pad(bufferRatio: Number): LatLngBounds\r\n\t// Returns bounds created by extending or retracting the current bounds by a given ratio in each direction.\r\n\t// For example, a ratio of 0.5 extends the bounds by 50% in each direction.\r\n\t// Negative values will retract the bounds.\r\n\tpad: function (bufferRatio) {\r\n\t\tvar sw = this._southWest,\r\n\t\t ne = this._northEast,\r\n\t\t heightBuffer = Math.abs(sw.lat - ne.lat) * bufferRatio,\r\n\t\t widthBuffer = Math.abs(sw.lng - ne.lng) * bufferRatio;\r\n\r\n\t\treturn new LatLngBounds(\r\n\t\t new LatLng(sw.lat - heightBuffer, sw.lng - widthBuffer),\r\n\t\t new LatLng(ne.lat + heightBuffer, ne.lng + widthBuffer));\r\n\t},\r\n\r\n\t// @method getCenter(): LatLng\r\n\t// Returns the center point of the bounds.\r\n\tgetCenter: function () {\r\n\t\treturn new LatLng(\r\n\t\t (this._southWest.lat + this._northEast.lat) / 2,\r\n\t\t (this._southWest.lng + this._northEast.lng) / 2);\r\n\t},\r\n\r\n\t// @method getSouthWest(): LatLng\r\n\t// Returns the south-west point of the bounds.\r\n\tgetSouthWest: function () {\r\n\t\treturn this._southWest;\r\n\t},\r\n\r\n\t// @method getNorthEast(): LatLng\r\n\t// Returns the north-east point of the bounds.\r\n\tgetNorthEast: function () {\r\n\t\treturn this._northEast;\r\n\t},\r\n\r\n\t// @method getNorthWest(): LatLng\r\n\t// Returns the north-west point of the bounds.\r\n\tgetNorthWest: function () {\r\n\t\treturn new LatLng(this.getNorth(), this.getWest());\r\n\t},\r\n\r\n\t// @method getSouthEast(): LatLng\r\n\t// Returns the south-east point of the bounds.\r\n\tgetSouthEast: function () {\r\n\t\treturn new LatLng(this.getSouth(), this.getEast());\r\n\t},\r\n\r\n\t// @method getWest(): Number\r\n\t// Returns the west longitude of the bounds\r\n\tgetWest: function () {\r\n\t\treturn this._southWest.lng;\r\n\t},\r\n\r\n\t// @method getSouth(): Number\r\n\t// Returns the south latitude of the bounds\r\n\tgetSouth: function () {\r\n\t\treturn this._southWest.lat;\r\n\t},\r\n\r\n\t// @method getEast(): Number\r\n\t// Returns the east longitude of the bounds\r\n\tgetEast: function () {\r\n\t\treturn this._northEast.lng;\r\n\t},\r\n\r\n\t// @method getNorth(): Number\r\n\t// Returns the north latitude of the bounds\r\n\tgetNorth: function () {\r\n\t\treturn this._northEast.lat;\r\n\t},\r\n\r\n\t// @method contains(otherBounds: LatLngBounds): Boolean\r\n\t// Returns `true` if the rectangle contains the given one.\r\n\r\n\t// @alternative\r\n\t// @method contains (latlng: LatLng): Boolean\r\n\t// Returns `true` if the rectangle contains the given point.\r\n\tcontains: function (obj) { // (LatLngBounds) or (LatLng) -> Boolean\r\n\t\tif (typeof obj[0] === 'number' || obj instanceof LatLng || 'lat' in obj) {\r\n\t\t\tobj = toLatLng(obj);\r\n\t\t} else {\r\n\t\t\tobj = toLatLngBounds(obj);\r\n\t\t}\r\n\r\n\t\tvar sw = this._southWest,\r\n\t\t ne = this._northEast,\r\n\t\t sw2, ne2;\r\n\r\n\t\tif (obj instanceof LatLngBounds) {\r\n\t\t\tsw2 = obj.getSouthWest();\r\n\t\t\tne2 = obj.getNorthEast();\r\n\t\t} else {\r\n\t\t\tsw2 = ne2 = obj;\r\n\t\t}\r\n\r\n\t\treturn (sw2.lat >= sw.lat) && (ne2.lat <= ne.lat) &&\r\n\t\t (sw2.lng >= sw.lng) && (ne2.lng <= ne.lng);\r\n\t},\r\n\r\n\t// @method intersects(otherBounds: LatLngBounds): Boolean\r\n\t// Returns `true` if the rectangle intersects the given bounds. Two bounds intersect if they have at least one point in common.\r\n\tintersects: function (bounds) {\r\n\t\tbounds = toLatLngBounds(bounds);\r\n\r\n\t\tvar sw = this._southWest,\r\n\t\t ne = this._northEast,\r\n\t\t sw2 = bounds.getSouthWest(),\r\n\t\t ne2 = bounds.getNorthEast(),\r\n\r\n\t\t latIntersects = (ne2.lat >= sw.lat) && (sw2.lat <= ne.lat),\r\n\t\t lngIntersects = (ne2.lng >= sw.lng) && (sw2.lng <= ne.lng);\r\n\r\n\t\treturn latIntersects && lngIntersects;\r\n\t},\r\n\r\n\t// @method overlaps(otherBounds: Bounds): Boolean\r\n\t// Returns `true` if the rectangle overlaps the given bounds. Two bounds overlap if their intersection is an area.\r\n\toverlaps: function (bounds) {\r\n\t\tbounds = toLatLngBounds(bounds);\r\n\r\n\t\tvar sw = this._southWest,\r\n\t\t ne = this._northEast,\r\n\t\t sw2 = bounds.getSouthWest(),\r\n\t\t ne2 = bounds.getNorthEast(),\r\n\r\n\t\t latOverlaps = (ne2.lat > sw.lat) && (sw2.lat < ne.lat),\r\n\t\t lngOverlaps = (ne2.lng > sw.lng) && (sw2.lng < ne.lng);\r\n\r\n\t\treturn latOverlaps && lngOverlaps;\r\n\t},\r\n\r\n\t// @method toBBoxString(): String\r\n\t// Returns a string with bounding box coordinates in a 'southwest_lng,southwest_lat,northeast_lng,northeast_lat' format. Useful for sending requests to web services that return geo data.\r\n\ttoBBoxString: function () {\r\n\t\treturn [this.getWest(), this.getSouth(), this.getEast(), this.getNorth()].join(',');\r\n\t},\r\n\r\n\t// @method equals(otherBounds: LatLngBounds, maxMargin?: Number): Boolean\r\n\t// Returns `true` if the rectangle is equivalent (within a small margin of error) to the given bounds. The margin of error can be overridden by setting `maxMargin` to a small number.\r\n\tequals: function (bounds, maxMargin) {\r\n\t\tif (!bounds) { return false; }\r\n\r\n\t\tbounds = toLatLngBounds(bounds);\r\n\r\n\t\treturn this._southWest.equals(bounds.getSouthWest(), maxMargin) &&\r\n\t\t this._northEast.equals(bounds.getNorthEast(), maxMargin);\r\n\t},\r\n\r\n\t// @method isValid(): Boolean\r\n\t// Returns `true` if the bounds are properly initialized.\r\n\tisValid: function () {\r\n\t\treturn !!(this._southWest && this._northEast);\r\n\t}\r\n};\r\n\r\n// TODO International date line?\r\n\r\n// @factory L.latLngBounds(corner1: LatLng, corner2: LatLng)\r\n// Creates a `LatLngBounds` object by defining two diagonally opposite corners of the rectangle.\r\n\r\n// @alternative\r\n// @factory L.latLngBounds(latlngs: LatLng[])\r\n// Creates a `LatLngBounds` object defined by the geographical points it contains. Very useful for zooming the map to fit a particular set of locations with [`fitBounds`](#map-fitbounds).\r\nfunction toLatLngBounds(a, b) {\r\n\tif (a instanceof LatLngBounds) {\r\n\t\treturn a;\r\n\t}\r\n\treturn new LatLngBounds(a, b);\r\n}\n\n/* @class LatLng\r\n * @aka L.LatLng\r\n *\r\n * Represents a geographical point with a certain latitude and longitude.\r\n *\r\n * @example\r\n *\r\n * ```\r\n * var latlng = L.latLng(50.5, 30.5);\r\n * ```\r\n *\r\n * All Leaflet methods that accept LatLng objects also accept them in a simple Array form and simple object form (unless noted otherwise), so these lines are equivalent:\r\n *\r\n * ```\r\n * map.panTo([50, 30]);\r\n * map.panTo({lon: 30, lat: 50});\r\n * map.panTo({lat: 50, lng: 30});\r\n * map.panTo(L.latLng(50, 30));\r\n * ```\r\n *\r\n * Note that `LatLng` does not inherit from Leaflet's `Class` object,\r\n * which means new classes can't inherit from it, and new methods\r\n * can't be added to it with the `include` function.\r\n */\r\n\r\nfunction LatLng(lat, lng, alt) {\r\n\tif (isNaN(lat) || isNaN(lng)) {\r\n\t\tthrow new Error('Invalid LatLng object: (' + lat + ', ' + lng + ')');\r\n\t}\r\n\r\n\t// @property lat: Number\r\n\t// Latitude in degrees\r\n\tthis.lat = +lat;\r\n\r\n\t// @property lng: Number\r\n\t// Longitude in degrees\r\n\tthis.lng = +lng;\r\n\r\n\t// @property alt: Number\r\n\t// Altitude in meters (optional)\r\n\tif (alt !== undefined) {\r\n\t\tthis.alt = +alt;\r\n\t}\r\n}\r\n\r\nLatLng.prototype = {\r\n\t// @method equals(otherLatLng: LatLng, maxMargin?: Number): Boolean\r\n\t// Returns `true` if the given `LatLng` point is at the same position (within a small margin of error). The margin of error can be overridden by setting `maxMargin` to a small number.\r\n\tequals: function (obj, maxMargin) {\r\n\t\tif (!obj) { return false; }\r\n\r\n\t\tobj = toLatLng(obj);\r\n\r\n\t\tvar margin = Math.max(\r\n\t\t Math.abs(this.lat - obj.lat),\r\n\t\t Math.abs(this.lng - obj.lng));\r\n\r\n\t\treturn margin <= (maxMargin === undefined ? 1.0E-9 : maxMargin);\r\n\t},\r\n\r\n\t// @method toString(): String\r\n\t// Returns a string representation of the point (for debugging purposes).\r\n\ttoString: function (precision) {\r\n\t\treturn 'LatLng(' +\r\n\t\t formatNum(this.lat, precision) + ', ' +\r\n\t\t formatNum(this.lng, precision) + ')';\r\n\t},\r\n\r\n\t// @method distanceTo(otherLatLng: LatLng): Number\r\n\t// Returns the distance (in meters) to the given `LatLng` calculated using the [Spherical Law of Cosines](https://en.wikipedia.org/wiki/Spherical_law_of_cosines).\r\n\tdistanceTo: function (other) {\r\n\t\treturn Earth.distance(this, toLatLng(other));\r\n\t},\r\n\r\n\t// @method wrap(): LatLng\r\n\t// Returns a new `LatLng` object with the longitude wrapped so it's always between -180 and +180 degrees.\r\n\twrap: function () {\r\n\t\treturn Earth.wrapLatLng(this);\r\n\t},\r\n\r\n\t// @method toBounds(sizeInMeters: Number): LatLngBounds\r\n\t// Returns a new `LatLngBounds` object in which each boundary is `sizeInMeters/2` meters apart from the `LatLng`.\r\n\ttoBounds: function (sizeInMeters) {\r\n\t\tvar latAccuracy = 180 * sizeInMeters / 40075017,\r\n\t\t lngAccuracy = latAccuracy / Math.cos((Math.PI / 180) * this.lat);\r\n\r\n\t\treturn toLatLngBounds(\r\n\t\t [this.lat - latAccuracy, this.lng - lngAccuracy],\r\n\t\t [this.lat + latAccuracy, this.lng + lngAccuracy]);\r\n\t},\r\n\r\n\tclone: function () {\r\n\t\treturn new LatLng(this.lat, this.lng, this.alt);\r\n\t}\r\n};\r\n\r\n\r\n\r\n// @factory L.latLng(latitude: Number, longitude: Number, altitude?: Number): LatLng\r\n// Creates an object representing a geographical point with the given latitude and longitude (and optionally altitude).\r\n\r\n// @alternative\r\n// @factory L.latLng(coords: Array): LatLng\r\n// Expects an array of the form `[Number, Number]` or `[Number, Number, Number]` instead.\r\n\r\n// @alternative\r\n// @factory L.latLng(coords: Object): LatLng\r\n// Expects an plain object of the form `{lat: Number, lng: Number}` or `{lat: Number, lng: Number, alt: Number}` instead.\r\n\r\nfunction toLatLng(a, b, c) {\r\n\tif (a instanceof LatLng) {\r\n\t\treturn a;\r\n\t}\r\n\tif (isArray(a) && typeof a[0] !== 'object') {\r\n\t\tif (a.length === 3) {\r\n\t\t\treturn new LatLng(a[0], a[1], a[2]);\r\n\t\t}\r\n\t\tif (a.length === 2) {\r\n\t\t\treturn new LatLng(a[0], a[1]);\r\n\t\t}\r\n\t\treturn null;\r\n\t}\r\n\tif (a === undefined || a === null) {\r\n\t\treturn a;\r\n\t}\r\n\tif (typeof a === 'object' && 'lat' in a) {\r\n\t\treturn new LatLng(a.lat, 'lng' in a ? a.lng : a.lon, a.alt);\r\n\t}\r\n\tif (b === undefined) {\r\n\t\treturn null;\r\n\t}\r\n\treturn new LatLng(a, b, c);\r\n}\n\n/*\r\n * @namespace CRS\r\n * @crs L.CRS.Base\r\n * Object that defines coordinate reference systems for projecting\r\n * geographical points into pixel (screen) coordinates and back (and to\r\n * coordinates in other units for [WMS](https://en.wikipedia.org/wiki/Web_Map_Service) services). See\r\n * [spatial reference system](http://en.wikipedia.org/wiki/Coordinate_reference_system).\r\n *\r\n * Leaflet defines the most usual CRSs by default. If you want to use a\r\n * CRS not defined by default, take a look at the\r\n * [Proj4Leaflet](https://github.com/kartena/Proj4Leaflet) plugin.\r\n *\r\n * Note that the CRS instances do not inherit from Leafet's `Class` object,\r\n * and can't be instantiated. Also, new classes can't inherit from them,\r\n * and methods can't be added to them with the `include` function.\r\n */\r\n\r\nvar CRS = {\r\n\t// @method latLngToPoint(latlng: LatLng, zoom: Number): Point\r\n\t// Projects geographical coordinates into pixel coordinates for a given zoom.\r\n\tlatLngToPoint: function (latlng, zoom) {\r\n\t\tvar projectedPoint = this.projection.project(latlng),\r\n\t\t scale = this.scale(zoom);\r\n\r\n\t\treturn this.transformation._transform(projectedPoint, scale);\r\n\t},\r\n\r\n\t// @method pointToLatLng(point: Point, zoom: Number): LatLng\r\n\t// The inverse of `latLngToPoint`. Projects pixel coordinates on a given\r\n\t// zoom into geographical coordinates.\r\n\tpointToLatLng: function (point, zoom) {\r\n\t\tvar scale = this.scale(zoom),\r\n\t\t untransformedPoint = this.transformation.untransform(point, scale);\r\n\r\n\t\treturn this.projection.unproject(untransformedPoint);\r\n\t},\r\n\r\n\t// @method project(latlng: LatLng): Point\r\n\t// Projects geographical coordinates into coordinates in units accepted for\r\n\t// this CRS (e.g. meters for EPSG:3857, for passing it to WMS services).\r\n\tproject: function (latlng) {\r\n\t\treturn this.projection.project(latlng);\r\n\t},\r\n\r\n\t// @method unproject(point: Point): LatLng\r\n\t// Given a projected coordinate returns the corresponding LatLng.\r\n\t// The inverse of `project`.\r\n\tunproject: function (point) {\r\n\t\treturn this.projection.unproject(point);\r\n\t},\r\n\r\n\t// @method scale(zoom: Number): Number\r\n\t// Returns the scale used when transforming projected coordinates into\r\n\t// pixel coordinates for a particular zoom. For example, it returns\r\n\t// `256 * 2^zoom` for Mercator-based CRS.\r\n\tscale: function (zoom) {\r\n\t\treturn 256 * Math.pow(2, zoom);\r\n\t},\r\n\r\n\t// @method zoom(scale: Number): Number\r\n\t// Inverse of `scale()`, returns the zoom level corresponding to a scale\r\n\t// factor of `scale`.\r\n\tzoom: function (scale) {\r\n\t\treturn Math.log(scale / 256) / Math.LN2;\r\n\t},\r\n\r\n\t// @method getProjectedBounds(zoom: Number): Bounds\r\n\t// Returns the projection's bounds scaled and transformed for the provided `zoom`.\r\n\tgetProjectedBounds: function (zoom) {\r\n\t\tif (this.infinite) { return null; }\r\n\r\n\t\tvar b = this.projection.bounds,\r\n\t\t s = this.scale(zoom),\r\n\t\t min = this.transformation.transform(b.min, s),\r\n\t\t max = this.transformation.transform(b.max, s);\r\n\r\n\t\treturn new Bounds(min, max);\r\n\t},\r\n\r\n\t// @method distance(latlng1: LatLng, latlng2: LatLng): Number\r\n\t// Returns the distance between two geographical coordinates.\r\n\r\n\t// @property code: String\r\n\t// Standard code name of the CRS passed into WMS services (e.g. `'EPSG:3857'`)\r\n\t//\r\n\t// @property wrapLng: Number[]\r\n\t// An array of two numbers defining whether the longitude (horizontal) coordinate\r\n\t// axis wraps around a given range and how. Defaults to `[-180, 180]` in most\r\n\t// geographical CRSs. If `undefined`, the longitude axis does not wrap around.\r\n\t//\r\n\t// @property wrapLat: Number[]\r\n\t// Like `wrapLng`, but for the latitude (vertical) axis.\r\n\r\n\t// wrapLng: [min, max],\r\n\t// wrapLat: [min, max],\r\n\r\n\t// @property infinite: Boolean\r\n\t// If true, the coordinate space will be unbounded (infinite in both axes)\r\n\tinfinite: false,\r\n\r\n\t// @method wrapLatLng(latlng: LatLng): LatLng\r\n\t// Returns a `LatLng` where lat and lng has been wrapped according to the\r\n\t// CRS's `wrapLat` and `wrapLng` properties, if they are outside the CRS's bounds.\r\n\twrapLatLng: function (latlng) {\r\n\t\tvar lng = this.wrapLng ? wrapNum(latlng.lng, this.wrapLng, true) : latlng.lng,\r\n\t\t lat = this.wrapLat ? wrapNum(latlng.lat, this.wrapLat, true) : latlng.lat,\r\n\t\t alt = latlng.alt;\r\n\r\n\t\treturn new LatLng(lat, lng, alt);\r\n\t},\r\n\r\n\t// @method wrapLatLngBounds(bounds: LatLngBounds): LatLngBounds\r\n\t// Returns a `LatLngBounds` with the same size as the given one, ensuring\r\n\t// that its center is within the CRS's bounds.\r\n\t// Only accepts actual `L.LatLngBounds` instances, not arrays.\r\n\twrapLatLngBounds: function (bounds) {\r\n\t\tvar center = bounds.getCenter(),\r\n\t\t newCenter = this.wrapLatLng(center),\r\n\t\t latShift = center.lat - newCenter.lat,\r\n\t\t lngShift = center.lng - newCenter.lng;\r\n\r\n\t\tif (latShift === 0 && lngShift === 0) {\r\n\t\t\treturn bounds;\r\n\t\t}\r\n\r\n\t\tvar sw = bounds.getSouthWest(),\r\n\t\t ne = bounds.getNorthEast(),\r\n\t\t newSw = new LatLng(sw.lat - latShift, sw.lng - lngShift),\r\n\t\t newNe = new LatLng(ne.lat - latShift, ne.lng - lngShift);\r\n\r\n\t\treturn new LatLngBounds(newSw, newNe);\r\n\t}\r\n};\n\n/*\n * @namespace CRS\n * @crs L.CRS.Earth\n *\n * Serves as the base for CRS that are global such that they cover the earth.\n * Can only be used as the base for other CRS and cannot be used directly,\n * since it does not have a `code`, `projection` or `transformation`. `distance()` returns\n * meters.\n */\n\nvar Earth = extend({}, CRS, {\n\twrapLng: [-180, 180],\n\n\t// Mean Earth Radius, as recommended for use by\n\t// the International Union of Geodesy and Geophysics,\n\t// see http://rosettacode.org/wiki/Haversine_formula\n\tR: 6371000,\n\n\t// distance between two geographical points using spherical law of cosines approximation\n\tdistance: function (latlng1, latlng2) {\n\t\tvar rad = Math.PI / 180,\n\t\t lat1 = latlng1.lat * rad,\n\t\t lat2 = latlng2.lat * rad,\n\t\t sinDLat = Math.sin((latlng2.lat - latlng1.lat) * rad / 2),\n\t\t sinDLon = Math.sin((latlng2.lng - latlng1.lng) * rad / 2),\n\t\t a = sinDLat * sinDLat + Math.cos(lat1) * Math.cos(lat2) * sinDLon * sinDLon,\n\t\t c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a));\n\t\treturn this.R * c;\n\t}\n});\n\n/*\r\n * @namespace Projection\r\n * @projection L.Projection.SphericalMercator\r\n *\r\n * Spherical Mercator projection — the most common projection for online maps,\r\n * used by almost all free and commercial tile providers. Assumes that Earth is\r\n * a sphere. Used by the `EPSG:3857` CRS.\r\n */\r\n\r\nvar SphericalMercator = {\r\n\r\n\tR: 6378137,\r\n\tMAX_LATITUDE: 85.0511287798,\r\n\r\n\tproject: function (latlng) {\r\n\t\tvar d = Math.PI / 180,\r\n\t\t max = this.MAX_LATITUDE,\r\n\t\t lat = Math.max(Math.min(max, latlng.lat), -max),\r\n\t\t sin = Math.sin(lat * d);\r\n\r\n\t\treturn new Point(\r\n\t\t\tthis.R * latlng.lng * d,\r\n\t\t\tthis.R * Math.log((1 + sin) / (1 - sin)) / 2);\r\n\t},\r\n\r\n\tunproject: function (point) {\r\n\t\tvar d = 180 / Math.PI;\r\n\r\n\t\treturn new LatLng(\r\n\t\t\t(2 * Math.atan(Math.exp(point.y / this.R)) - (Math.PI / 2)) * d,\r\n\t\t\tpoint.x * d / this.R);\r\n\t},\r\n\r\n\tbounds: (function () {\r\n\t\tvar d = 6378137 * Math.PI;\r\n\t\treturn new Bounds([-d, -d], [d, d]);\r\n\t})()\r\n};\n\n/*\r\n * @class Transformation\r\n * @aka L.Transformation\r\n *\r\n * Represents an affine transformation: a set of coefficients `a`, `b`, `c`, `d`\r\n * for transforming a point of a form `(x, y)` into `(a*x + b, c*y + d)` and doing\r\n * the reverse. Used by Leaflet in its projections code.\r\n *\r\n * @example\r\n *\r\n * ```js\r\n * var transformation = L.transformation(2, 5, -1, 10),\r\n * \tp = L.point(1, 2),\r\n * \tp2 = transformation.transform(p), // L.point(7, 8)\r\n * \tp3 = transformation.untransform(p2); // L.point(1, 2)\r\n * ```\r\n */\r\n\r\n\r\n// factory new L.Transformation(a: Number, b: Number, c: Number, d: Number)\r\n// Creates a `Transformation` object with the given coefficients.\r\nfunction Transformation(a, b, c, d) {\r\n\tif (isArray(a)) {\r\n\t\t// use array properties\r\n\t\tthis._a = a[0];\r\n\t\tthis._b = a[1];\r\n\t\tthis._c = a[2];\r\n\t\tthis._d = a[3];\r\n\t\treturn;\r\n\t}\r\n\tthis._a = a;\r\n\tthis._b = b;\r\n\tthis._c = c;\r\n\tthis._d = d;\r\n}\r\n\r\nTransformation.prototype = {\r\n\t// @method transform(point: Point, scale?: Number): Point\r\n\t// Returns a transformed point, optionally multiplied by the given scale.\r\n\t// Only accepts actual `L.Point` instances, not arrays.\r\n\ttransform: function (point, scale) { // (Point, Number) -> Point\r\n\t\treturn this._transform(point.clone(), scale);\r\n\t},\r\n\r\n\t// destructive transform (faster)\r\n\t_transform: function (point, scale) {\r\n\t\tscale = scale || 1;\r\n\t\tpoint.x = scale * (this._a * point.x + this._b);\r\n\t\tpoint.y = scale * (this._c * point.y + this._d);\r\n\t\treturn point;\r\n\t},\r\n\r\n\t// @method untransform(point: Point, scale?: Number): Point\r\n\t// Returns the reverse transformation of the given point, optionally divided\r\n\t// by the given scale. Only accepts actual `L.Point` instances, not arrays.\r\n\tuntransform: function (point, scale) {\r\n\t\tscale = scale || 1;\r\n\t\treturn new Point(\r\n\t\t (point.x / scale - this._b) / this._a,\r\n\t\t (point.y / scale - this._d) / this._c);\r\n\t}\r\n};\r\n\r\n// factory L.transformation(a: Number, b: Number, c: Number, d: Number)\r\n\r\n// @factory L.transformation(a: Number, b: Number, c: Number, d: Number)\r\n// Instantiates a Transformation object with the given coefficients.\r\n\r\n// @alternative\r\n// @factory L.transformation(coefficients: Array): Transformation\r\n// Expects an coefficients array of the form\r\n// `[a: Number, b: Number, c: Number, d: Number]`.\r\n\r\nfunction toTransformation(a, b, c, d) {\r\n\treturn new Transformation(a, b, c, d);\r\n}\n\n/*\r\n * @namespace CRS\r\n * @crs L.CRS.EPSG3857\r\n *\r\n * The most common CRS for online maps, used by almost all free and commercial\r\n * tile providers. Uses Spherical Mercator projection. Set in by default in\r\n * Map's `crs` option.\r\n */\r\n\r\nvar EPSG3857 = extend({}, Earth, {\r\n\tcode: 'EPSG:3857',\r\n\tprojection: SphericalMercator,\r\n\r\n\ttransformation: (function () {\r\n\t\tvar scale = 0.5 / (Math.PI * SphericalMercator.R);\r\n\t\treturn toTransformation(scale, 0.5, -scale, 0.5);\r\n\t}())\r\n});\r\n\r\nvar EPSG900913 = extend({}, EPSG3857, {\r\n\tcode: 'EPSG:900913'\r\n});\n\n// @namespace SVG; @section\n// There are several static functions which can be called without instantiating L.SVG:\n\n// @function create(name: String): SVGElement\n// Returns a instance of [SVGElement](https://developer.mozilla.org/docs/Web/API/SVGElement),\n// corresponding to the class name passed. For example, using 'line' will return\n// an instance of [SVGLineElement](https://developer.mozilla.org/docs/Web/API/SVGLineElement).\nfunction svgCreate(name) {\n\treturn document.createElementNS('http://www.w3.org/2000/svg', name);\n}\n\n// @function pointsToPath(rings: Point[], closed: Boolean): String\n// Generates a SVG path string for multiple rings, with each ring turning\n// into \"M..L..L..\" instructions\nfunction pointsToPath(rings, closed) {\n\tvar str = '',\n\ti, j, len, len2, points, p;\n\n\tfor (i = 0, len = rings.length; i < len; i++) {\n\t\tpoints = rings[i];\n\n\t\tfor (j = 0, len2 = points.length; j < len2; j++) {\n\t\t\tp = points[j];\n\t\t\tstr += (j ? 'L' : 'M') + p.x + ' ' + p.y;\n\t\t}\n\n\t\t// closes the ring for polygons; \"x\" is VML syntax\n\t\tstr += closed ? (svg ? 'z' : 'x') : '';\n\t}\n\n\t// SVG complains about empty path strings\n\treturn str || 'M0 0';\n}\n\n/*\r\n * @namespace Browser\r\n * @aka L.Browser\r\n *\r\n * A namespace with static properties for browser/feature detection used by Leaflet internally.\r\n *\r\n * @example\r\n *\r\n * ```js\r\n * if (L.Browser.ielt9) {\r\n * alert('Upgrade your browser, dude!');\r\n * }\r\n * ```\r\n */\r\n\r\nvar style$1 = document.documentElement.style;\r\n\r\n// @property ie: Boolean; `true` for all Internet Explorer versions (not Edge).\r\nvar ie = 'ActiveXObject' in window;\r\n\r\n// @property ielt9: Boolean; `true` for Internet Explorer versions less than 9.\r\nvar ielt9 = ie && !document.addEventListener;\r\n\r\n// @property edge: Boolean; `true` for the Edge web browser.\r\nvar edge = 'msLaunchUri' in navigator && !('documentMode' in document);\r\n\r\n// @property webkit: Boolean;\r\n// `true` for webkit-based browsers like Chrome and Safari (including mobile versions).\r\nvar webkit = userAgentContains('webkit');\r\n\r\n// @property android: Boolean\r\n// `true` for any browser running on an Android platform.\r\nvar android = userAgentContains('android');\r\n\r\n// @property android23: Boolean; `true` for browsers running on Android 2 or Android 3.\r\nvar android23 = userAgentContains('android 2') || userAgentContains('android 3');\r\n\r\n/* See https://stackoverflow.com/a/17961266 for details on detecting stock Android */\r\nvar webkitVer = parseInt(/WebKit\\/([0-9]+)|$/.exec(navigator.userAgent)[1], 10); // also matches AppleWebKit\r\n// @property androidStock: Boolean; `true` for the Android stock browser (i.e. not Chrome)\r\nvar androidStock = android && userAgentContains('Google') && webkitVer < 537 && !('AudioNode' in window);\r\n\r\n// @property opera: Boolean; `true` for the Opera browser\r\nvar opera = !!window.opera;\r\n\r\n// @property chrome: Boolean; `true` for the Chrome browser.\r\nvar chrome = userAgentContains('chrome');\r\n\r\n// @property gecko: Boolean; `true` for gecko-based browsers like Firefox.\r\nvar gecko = userAgentContains('gecko') && !webkit && !opera && !ie;\r\n\r\n// @property safari: Boolean; `true` for the Safari browser.\r\nvar safari = !chrome && userAgentContains('safari');\r\n\r\nvar phantom = userAgentContains('phantom');\r\n\r\n// @property opera12: Boolean\r\n// `true` for the Opera browser supporting CSS transforms (version 12 or later).\r\nvar opera12 = 'OTransition' in style$1;\r\n\r\n// @property win: Boolean; `true` when the browser is running in a Windows platform\r\nvar win = navigator.platform.indexOf('Win') === 0;\r\n\r\n// @property ie3d: Boolean; `true` for all Internet Explorer versions supporting CSS transforms.\r\nvar ie3d = ie && ('transition' in style$1);\r\n\r\n// @property webkit3d: Boolean; `true` for webkit-based browsers supporting CSS transforms.\r\nvar webkit3d = ('WebKitCSSMatrix' in window) && ('m11' in new window.WebKitCSSMatrix()) && !android23;\r\n\r\n// @property gecko3d: Boolean; `true` for gecko-based browsers supporting CSS transforms.\r\nvar gecko3d = 'MozPerspective' in style$1;\r\n\r\n// @property any3d: Boolean\r\n// `true` for all browsers supporting CSS transforms.\r\nvar any3d = !window.L_DISABLE_3D && (ie3d || webkit3d || gecko3d) && !opera12 && !phantom;\r\n\r\n// @property mobile: Boolean; `true` for all browsers running in a mobile device.\r\nvar mobile = typeof orientation !== 'undefined' || userAgentContains('mobile');\r\n\r\n// @property mobileWebkit: Boolean; `true` for all webkit-based browsers in a mobile device.\r\nvar mobileWebkit = mobile && webkit;\r\n\r\n// @property mobileWebkit3d: Boolean\r\n// `true` for all webkit-based browsers in a mobile device supporting CSS transforms.\r\nvar mobileWebkit3d = mobile && webkit3d;\r\n\r\n// @property msPointer: Boolean\r\n// `true` for browsers implementing the Microsoft touch events model (notably IE10).\r\nvar msPointer = !window.PointerEvent && window.MSPointerEvent;\r\n\r\n// @property pointer: Boolean\r\n// `true` for all browsers supporting [pointer events](https://msdn.microsoft.com/en-us/library/dn433244%28v=vs.85%29.aspx).\r\nvar pointer = !!(window.PointerEvent || msPointer);\r\n\r\n// @property touch: Boolean\r\n// `true` for all browsers supporting [touch events](https://developer.mozilla.org/docs/Web/API/Touch_events).\r\n// This does not necessarily mean that the browser is running in a computer with\r\n// a touchscreen, it only means that the browser is capable of understanding\r\n// touch events.\r\nvar touch = !window.L_NO_TOUCH && (pointer || 'ontouchstart' in window ||\r\n\t\t(window.DocumentTouch && document instanceof window.DocumentTouch));\r\n\r\n// @property mobileOpera: Boolean; `true` for the Opera browser in a mobile device.\r\nvar mobileOpera = mobile && opera;\r\n\r\n// @property mobileGecko: Boolean\r\n// `true` for gecko-based browsers running in a mobile device.\r\nvar mobileGecko = mobile && gecko;\r\n\r\n// @property retina: Boolean\r\n// `true` for browsers on a high-resolution \"retina\" screen or on any screen when browser's display zoom is more than 100%.\r\nvar retina = (window.devicePixelRatio || (window.screen.deviceXDPI / window.screen.logicalXDPI)) > 1;\r\n\r\n\r\n// @property canvas: Boolean\r\n// `true` when the browser supports [`<canvas>`](https://developer.mozilla.org/docs/Web/API/Canvas_API).\r\nvar canvas = (function () {\r\n\treturn !!document.createElement('canvas').getContext;\r\n}());\r\n\r\n// @property svg: Boolean\r\n// `true` when the browser supports [SVG](https://developer.mozilla.org/docs/Web/SVG).\r\nvar svg = !!(document.createElementNS && svgCreate('svg').createSVGRect);\r\n\r\n// @property vml: Boolean\r\n// `true` if the browser supports [VML](https://en.wikipedia.org/wiki/Vector_Markup_Language).\r\nvar vml = !svg && (function () {\r\n\ttry {\r\n\t\tvar div = document.createElement('div');\r\n\t\tdiv.innerHTML = '<v:shape adj=\"1\"/>';\r\n\r\n\t\tvar shape = div.firstChild;\r\n\t\tshape.style.behavior = 'url(#default#VML)';\r\n\r\n\t\treturn shape && (typeof shape.adj === 'object');\r\n\r\n\t} catch (e) {\r\n\t\treturn false;\r\n\t}\r\n}());\r\n\r\n\r\nfunction userAgentContains(str) {\r\n\treturn navigator.userAgent.toLowerCase().indexOf(str) >= 0;\r\n}\r\n\n\nvar Browser = (Object.freeze || Object)({\n\tie: ie,\n\tielt9: ielt9,\n\tedge: edge,\n\twebkit: webkit,\n\tandroid: android,\n\tandroid23: android23,\n\tandroidStock: androidStock,\n\topera: opera,\n\tchrome: chrome,\n\tgecko: gecko,\n\tsafari: safari,\n\tphantom: phantom,\n\topera12: opera12,\n\twin: win,\n\tie3d: ie3d,\n\twebkit3d: webkit3d,\n\tgecko3d: gecko3d,\n\tany3d: any3d,\n\tmobile: mobile,\n\tmobileWebkit: mobileWebkit,\n\tmobileWebkit3d: mobileWebkit3d,\n\tmsPointer: msPointer,\n\tpointer: pointer,\n\ttouch: touch,\n\tmobileOpera: mobileOpera,\n\tmobileGecko: mobileGecko,\n\tretina: retina,\n\tcanvas: canvas,\n\tsvg: svg,\n\tvml: vml\n});\n\n/*\n * Extends L.DomEvent to provide touch support for Internet Explorer and Windows-based devices.\n */\n\n\nvar POINTER_DOWN = msPointer ? 'MSPointerDown' : 'pointerdown';\nvar POINTER_MOVE = msPointer ? 'MSPointerMove' : 'pointermove';\nvar POINTER_UP = msPointer ? 'MSPointerUp' : 'pointerup';\nvar POINTER_CANCEL = msPointer ? 'MSPointerCancel' : 'pointercancel';\nvar TAG_WHITE_LIST = ['INPUT', 'SELECT', 'OPTION'];\n\nvar _pointers = {};\nvar _pointerDocListener = false;\n\n// DomEvent.DoubleTap needs to know about this\nvar _pointersCount = 0;\n\n// Provides a touch events wrapper for (ms)pointer events.\n// ref http://www.w3.org/TR/pointerevents/ https://www.w3.org/Bugs/Public/show_bug.cgi?id=22890\n\nfunction addPointerListener(obj, type, handler, id) {\n\tif (type === 'touchstart') {\n\t\t_addPointerStart(obj, handler, id);\n\n\t} else if (type === 'touchmove') {\n\t\t_addPointerMove(obj, handler, id);\n\n\t} else if (type === 'touchend') {\n\t\t_addPointerEnd(obj, handler, id);\n\t}\n\n\treturn this;\n}\n\nfunction removePointerListener(obj, type, id) {\n\tvar handler = obj['_leaflet_' + type + id];\n\n\tif (type === 'touchstart') {\n\t\tobj.removeEventListener(POINTER_DOWN, handler, false);\n\n\t} else if (type === 'touchmove') {\n\t\tobj.removeEventListener(POINTER_MOVE, handler, false);\n\n\t} else if (type === 'touchend') {\n\t\tobj.removeEventListener(POINTER_UP, handler, false);\n\t\tobj.removeEventListener(POINTER_CANCEL, handler, false);\n\t}\n\n\treturn this;\n}\n\nfunction _addPointerStart(obj, handler, id) {\n\tvar onDown = bind(function (e) {\n\t\tif (e.pointerType !== 'mouse' && e.MSPOINTER_TYPE_MOUSE && e.pointerType !== e.MSPOINTER_TYPE_MOUSE) {\n\t\t\t// In IE11, some touch events needs to fire for form controls, or\n\t\t\t// the controls will stop working. We keep a whitelist of tag names that\n\t\t\t// need these events. For other target tags, we prevent default on the event.\n\t\t\tif (TAG_WHITE_LIST.indexOf(e.target.tagName) < 0) {\n\t\t\t\tpreventDefault(e);\n\t\t\t} else {\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\t_handlePointer(e, handler);\n\t});\n\n\tobj['_leaflet_touchstart' + id] = onDown;\n\tobj.addEventListener(POINTER_DOWN, onDown, false);\n\n\t// need to keep track of what pointers and how many are active to provide e.touches emulation\n\tif (!_pointerDocListener) {\n\t\t// we listen documentElement as any drags that end by moving the touch off the screen get fired there\n\t\tdocument.documentElement.addEventListener(POINTER_DOWN, _globalPointerDown, true);\n\t\tdocument.documentElement.addEventListener(POINTER_MOVE, _globalPointerMove, true);\n\t\tdocument.documentElement.addEventListener(POINTER_UP, _globalPointerUp, true);\n\t\tdocument.documentElement.addEventListener(POINTER_CANCEL, _globalPointerUp, true);\n\n\t\t_pointerDocListener = true;\n\t}\n}\n\nfunction _globalPointerDown(e) {\n\t_pointers[e.pointerId] = e;\n\t_pointersCount++;\n}\n\nfunction _globalPointerMove(e) {\n\tif (_pointers[e.pointerId]) {\n\t\t_pointers[e.pointerId] = e;\n\t}\n}\n\nfunction _globalPointerUp(e) {\n\tdelete _pointers[e.pointerId];\n\t_pointersCount--;\n}\n\nfunction _handlePointer(e, handler) {\n\te.touches = [];\n\tfor (var i in _pointers) {\n\t\te.touches.push(_pointers[i]);\n\t}\n\te.changedTouches = [e];\n\n\thandler(e);\n}\n\nfunction _addPointerMove(obj, handler, id) {\n\tvar onMove = function (e) {\n\t\t// don't fire touch moves when mouse isn't down\n\t\tif ((e.pointerType === e.MSPOINTER_TYPE_MOUSE || e.pointerType === 'mouse') && e.buttons === 0) { return; }\n\n\t\t_handlePointer(e, handler);\n\t};\n\n\tobj['_leaflet_touchmove' + id] = onMove;\n\tobj.addEventListener(POINTER_MOVE, onMove, false);\n}\n\nfunction _addPointerEnd(obj, handler, id) {\n\tvar onUp = function (e) {\n\t\t_handlePointer(e, handler);\n\t};\n\n\tobj['_leaflet_touchend' + id] = onUp;\n\tobj.addEventListener(POINTER_UP, onUp, false);\n\tobj.addEventListener(POINTER_CANCEL, onUp, false);\n}\n\n/*\r\n * Extends the event handling code with double tap support for mobile browsers.\r\n */\r\n\r\nvar _touchstart = msPointer ? 'MSPointerDown' : pointer ? 'pointerdown' : 'touchstart';\r\nvar _touchend = msPointer ? 'MSPointerUp' : pointer ? 'pointerup' : 'touchend';\r\nvar _pre = '_leaflet_';\r\n\r\n// inspired by Zepto touch code by Thomas Fuchs\r\nfunction addDoubleTapListener(obj, handler, id) {\r\n\tvar last, touch$$1,\r\n\t doubleTap = false,\r\n\t delay = 250;\r\n\r\n\tfunction onTouchStart(e) {\r\n\t\tvar count;\r\n\r\n\t\tif (pointer) {\r\n\t\t\tif ((!edge) || e.pointerType === 'mouse') { return; }\r\n\t\t\tcount = _pointersCount;\r\n\t\t} else {\r\n\t\t\tcount = e.touches.length;\r\n\t\t}\r\n\r\n\t\tif (count > 1) { return; }\r\n\r\n\t\tvar now = Date.now(),\r\n\t\t delta = now - (last || now);\r\n\r\n\t\ttouch$$1 = e.touches ? e.touches[0] : e;\r\n\t\tdoubleTap = (delta > 0 && delta <= delay);\r\n\t\tlast = now;\r\n\t}\r\n\r\n\tfunction onTouchEnd(e) {\r\n\t\tif (doubleTap && !touch$$1.cancelBubble) {\r\n\t\t\tif (pointer) {\r\n\t\t\t\tif ((!edge) || e.pointerType === 'mouse') { return; }\r\n\t\t\t\t// work around .type being readonly with MSPointer* events\r\n\t\t\t\tvar newTouch = {},\r\n\t\t\t\t prop, i;\r\n\r\n\t\t\t\tfor (i in touch$$1) {\r\n\t\t\t\t\tprop = touch$$1[i];\r\n\t\t\t\t\tnewTouch[i] = prop && prop.bind ? prop.bind(touch$$1) : prop;\r\n\t\t\t\t}\r\n\t\t\t\ttouch$$1 = newTouch;\r\n\t\t\t}\r\n\t\t\ttouch$$1.type = 'dblclick';\r\n\t\t\thandler(touch$$1);\r\n\t\t\tlast = null;\r\n\t\t}\r\n\t}\r\n\r\n\tobj[_pre + _touchstart + id] = onTouchStart;\r\n\tobj[_pre + _touchend + id] = onTouchEnd;\r\n\tobj[_pre + 'dblclick' + id] = handler;\r\n\r\n\tobj.addEventListener(_touchstart, onTouchStart, false);\r\n\tobj.addEventListener(_touchend, onTouchEnd, false);\r\n\r\n\t// On some platforms (notably, chrome<55 on win10 + touchscreen + mouse),\r\n\t// the browser doesn't fire touchend/pointerup events but does fire\r\n\t// native dblclicks. See #4127.\r\n\t// Edge 14 also fires native dblclicks, but only for pointerType mouse, see #5180.\r\n\tobj.addEventListener('dblclick', handler, false);\r\n\r\n\treturn this;\r\n}\r\n\r\nfunction removeDoubleTapListener(obj, id) {\r\n\tvar touchstart = obj[_pre + _touchstart + id],\r\n\t touchend = obj[_pre + _touchend + id],\r\n\t dblclick = obj[_pre + 'dblclick' + id];\r\n\r\n\tobj.removeEventListener(_touchstart, touchstart, false);\r\n\tobj.removeEventListener(_touchend, touchend, false);\r\n\tif (!edge) {\r\n\t\tobj.removeEventListener('dblclick', dblclick, false);\r\n\t}\r\n\r\n\treturn this;\r\n}\n\n/*\r\n * @namespace DomUtil\r\n *\r\n * Utility functions to work with the [DOM](https://developer.mozilla.org/docs/Web/API/Document_Object_Model)\r\n * tree, used by Leaflet internally.\r\n *\r\n * Most functions expecting or returning a `HTMLElement` also work for\r\n * SVG elements. The only difference is that classes refer to CSS classes\r\n * in HTML and SVG classes in SVG.\r\n */\r\n\r\n\r\n// @property TRANSFORM: String\r\n// Vendor-prefixed transform style name (e.g. `'webkitTransform'` for WebKit).\r\nvar TRANSFORM = testProp(\r\n\t['transform', 'WebkitTransform', 'OTransform', 'MozTransform', 'msTransform']);\r\n\r\n// webkitTransition comes first because some browser versions that drop vendor prefix don't do\r\n// the same for the transitionend event, in particular the Android 4.1 stock browser\r\n\r\n// @property TRANSITION: String\r\n// Vendor-prefixed transition style name.\r\nvar TRANSITION = testProp(\r\n\t['webkitTransition', 'transition', 'OTransition', 'MozTransition', 'msTransition']);\r\n\r\n// @property TRANSITION_END: String\r\n// Vendor-prefixed transitionend event name.\r\nvar TRANSITION_END =\r\n\tTRANSITION === 'webkitTransition' || TRANSITION === 'OTransition' ? TRANSITION + 'End' : 'transitionend';\r\n\r\n\r\n// @function get(id: String|HTMLElement): HTMLElement\r\n// Returns an element given its DOM id, or returns the element itself\r\n// if it was passed directly.\r\nfunction get(id) {\r\n\treturn typeof id === 'string' ? document.getElementById(id) : id;\r\n}\r\n\r\n// @function getStyle(el: HTMLElement, styleAttrib: String): String\r\n// Returns the value for a certain style attribute on an element,\r\n// including computed values or values set through CSS.\r\nfunction getStyle(el, style) {\r\n\tvar value = el.style[style] || (el.currentStyle && el.currentStyle[style]);\r\n\r\n\tif ((!value || value === 'auto') && document.defaultView) {\r\n\t\tvar css = document.defaultView.getComputedStyle(el, null);\r\n\t\tvalue = css ? css[style] : null;\r\n\t}\r\n\treturn value === 'auto' ? null : value;\r\n}\r\n\r\n// @function create(tagName: String, className?: String, container?: HTMLElement): HTMLElement\r\n// Creates an HTML element with `tagName`, sets its class to `className`, and optionally appends it to `container` element.\r\nfunction create$1(tagName, className, container) {\r\n\tvar el = document.createElement(tagName);\r\n\tel.className = className || '';\r\n\r\n\tif (container) {\r\n\t\tcontainer.appendChild(el);\r\n\t}\r\n\treturn el;\r\n}\r\n\r\n// @function remove(el: HTMLElement)\r\n// Removes `el` from its parent element\r\nfunction remove(el) {\r\n\tvar parent = el.parentNode;\r\n\tif (parent) {\r\n\t\tparent.removeChild(el);\r\n\t}\r\n}\r\n\r\n// @function empty(el: HTMLElement)\r\n// Removes all of `el`'s children elements from `el`\r\nfunction empty(el) {\r\n\twhile (el.firstChild) {\r\n\t\tel.removeChild(el.firstChild);\r\n\t}\r\n}\r\n\r\n// @function toFront(el: HTMLElement)\r\n// Makes `el` the last child of its parent, so it renders in front of the other children.\r\nfunction toFront(el) {\r\n\tvar parent = el.parentNode;\r\n\tif (parent.lastChild !== el) {\r\n\t\tparent.appendChild(el);\r\n\t}\r\n}\r\n\r\n// @function toBack(el: HTMLElement)\r\n// Makes `el` the first child of its parent, so it renders behind the other children.\r\nfunction toBack(el) {\r\n\tvar parent = el.parentNode;\r\n\tif (parent.firstChild !== el) {\r\n\t\tparent.insertBefore(el, parent.firstChild);\r\n\t}\r\n}\r\n\r\n// @function hasClass(el: HTMLElement, name: String): Boolean\r\n// Returns `true` if the element's class attribute contains `name`.\r\nfunction hasClass(el, name) {\r\n\tif (el.classList !== undefined) {\r\n\t\treturn el.classList.contains(name);\r\n\t}\r\n\tvar className = getClass(el);\r\n\treturn className.length > 0 && new RegExp('(^|\\\\s)' + name + '(\\\\s|$)').test(className);\r\n}\r\n\r\n// @function addClass(el: HTMLElement, name: String)\r\n// Adds `name` to the element's class attribute.\r\nfunction addClass(el, name) {\r\n\tif (el.classList !== undefined) {\r\n\t\tvar classes = splitWords(name);\r\n\t\tfor (var i = 0, len = classes.length; i < len; i++) {\r\n\t\t\tel.classList.add(classes[i]);\r\n\t\t}\r\n\t} else if (!hasClass(el, name)) {\r\n\t\tvar className = getClass(el);\r\n\t\tsetClass(el, (className ? className + ' ' : '') + name);\r\n\t}\r\n}\r\n\r\n// @function removeClass(el: HTMLElement, name: String)\r\n// Removes `name` from the element's class attribute.\r\nfunction removeClass(el, name) {\r\n\tif (el.classList !== undefined) {\r\n\t\tel.classList.remove(name);\r\n\t} else {\r\n\t\tsetClass(el, trim((' ' + getClass(el) + ' ').replace(' ' + name + ' ', ' ')));\r\n\t}\r\n}\r\n\r\n// @function setClass(el: HTMLElement, name: String)\r\n// Sets the element's class.\r\nfunction setClass(el, name) {\r\n\tif (el.className.baseVal === undefined) {\r\n\t\tel.className = name;\r\n\t} else {\r\n\t\t// in case of SVG element\r\n\t\tel.className.baseVal = name;\r\n\t}\r\n}\r\n\r\n// @function getClass(el: HTMLElement): String\r\n// Returns the element's class.\r\nfunction getClass(el) {\r\n\treturn el.className.baseVal === undefined ? el.className : el.className.baseVal;\r\n}\r\n\r\n// @function setOpacity(el: HTMLElement, opacity: Number)\r\n// Set the opacity of an element (including old IE support).\r\n// `opacity` must be a number from `0` to `1`.\r\nfunction setOpacity(el, value) {\r\n\tif ('opacity' in el.style) {\r\n\t\tel.style.opacity = value;\r\n\t} else if ('filter' in el.style) {\r\n\t\t_setOpacityIE(el, value);\r\n\t}\r\n}\r\n\r\nfunction _setOpacityIE(el, value) {\r\n\tvar filter = false,\r\n\t filterName = 'DXImageTransform.Microsoft.Alpha';\r\n\r\n\t// filters collection throws an error if we try to retrieve a filter that doesn't exist\r\n\ttry {\r\n\t\tfilter = el.filters.item(filterName);\r\n\t} catch (e) {\r\n\t\t// don't set opacity to 1 if we haven't already set an opacity,\r\n\t\t// it isn't needed and breaks transparent pngs.\r\n\t\tif (value === 1) { return; }\r\n\t}\r\n\r\n\tvalue = Math.round(value * 100);\r\n\r\n\tif (filter) {\r\n\t\tfilter.Enabled = (value !== 100);\r\n\t\tfilter.Opacity = value;\r\n\t} else {\r\n\t\tel.style.filter += ' progid:' + filterName + '(opacity=' + value + ')';\r\n\t}\r\n}\r\n\r\n// @function testProp(props: String[]): String|false\r\n// Goes through the array of style names and returns the first name\r\n// that is a valid style name for an element. If no such name is found,\r\n// it returns false. Useful for vendor-prefixed styles like `transform`.\r\nfunction testProp(props) {\r\n\tvar style = document.documentElement.style;\r\n\r\n\tfor (var i = 0; i < props.length; i++) {\r\n\t\tif (props[i] in style) {\r\n\t\t\treturn props[i];\r\n\t\t}\r\n\t}\r\n\treturn false;\r\n}\r\n\r\n// @function setTransform(el: HTMLElement, offset: Point, scale?: Number)\r\n// Resets the 3D CSS transform of `el` so it is translated by `offset` pixels\r\n// and optionally scaled by `scale`. Does not have an effect if the\r\n// browser doesn't support 3D CSS transforms.\r\nfunction setTransform(el, offset, scale) {\r\n\tvar pos = offset || new Point(0, 0);\r\n\r\n\tel.style[TRANSFORM] =\r\n\t\t(ie3d ?\r\n\t\t\t'translate(' + pos.x + 'px,' + pos.y + 'px)' :\r\n\t\t\t'translate3d(' + pos.x + 'px,' + pos.y + 'px,0)') +\r\n\t\t(scale ? ' scale(' + scale + ')' : '');\r\n}\r\n\r\n// @function setPosition(el: HTMLElement, position: Point)\r\n// Sets the position of `el` to coordinates specified by `position`,\r\n// using CSS translate or top/left positioning depending on the browser\r\n// (used by Leaflet internally to position its layers).\r\nfunction setPosition(el, point) {\r\n\r\n\t/*eslint-disable */\r\n\tel._leaflet_pos = point;\r\n\t/* eslint-enable */\r\n\r\n\tif (any3d) {\r\n\t\tsetTransform(el, point);\r\n\t} else {\r\n\t\tel.style.left = point.x + 'px';\r\n\t\tel.style.top = point.y + 'px';\r\n\t}\r\n}\r\n\r\n// @function getPosition(el: HTMLElement): Point\r\n// Returns the coordinates of an element previously positioned with setPosition.\r\nfunction getPosition(el) {\r\n\t// this method is only used for elements previously positioned using setPosition,\r\n\t// so it's safe to cache the position for performance\r\n\r\n\treturn el._leaflet_pos || new Point(0, 0);\r\n}\r\n\r\n// @function disableTextSelection()\r\n// Prevents the user from generating `selectstart` DOM events, usually generated\r\n// when the user drags the mouse through a page with text. Used internally\r\n// by Leaflet to override the behaviour of any click-and-drag interaction on\r\n// the map. Affects drag interactions on the whole document.\r\n\r\n// @function enableTextSelection()\r\n// Cancels the effects of a previous [`L.DomUtil.disableTextSelection`](#domutil-disabletextselection).\r\nvar disableTextSelection;\r\nvar enableTextSelection;\r\nvar _userSelect;\r\nif ('onselectstart' in document) {\r\n\tdisableTextSelection = function () {\r\n\t\ton(window, 'selectstart', preventDefault);\r\n\t};\r\n\tenableTextSelection = function () {\r\n\t\toff(window, 'selectstart', preventDefault);\r\n\t};\r\n} else {\r\n\tvar userSelectProperty = testProp(\r\n\t\t['userSelect', 'WebkitUserSelect', 'OUserSelect', 'MozUserSelect', 'msUserSelect']);\r\n\r\n\tdisableTextSelection = function () {\r\n\t\tif (userSelectProperty) {\r\n\t\t\tvar style = document.documentElement.style;\r\n\t\t\t_userSelect = style[userSelectProperty];\r\n\t\t\tstyle[userSelectProperty] = 'none';\r\n\t\t}\r\n\t};\r\n\tenableTextSelection = function () {\r\n\t\tif (userSelectProperty) {\r\n\t\t\tdocument.documentElement.style[userSelectProperty] = _userSelect;\r\n\t\t\t_userSelect = undefined;\r\n\t\t}\r\n\t};\r\n}\r\n\r\n// @function disableImageDrag()\r\n// As [`L.DomUtil.disableTextSelection`](#domutil-disabletextselection), but\r\n// for `dragstart` DOM events, usually generated when the user drags an image.\r\nfunction disableImageDrag() {\r\n\ton(window, 'dragstart', preventDefault);\r\n}\r\n\r\n// @function enableImageDrag()\r\n// Cancels the effects of a previous [`L.DomUtil.disableImageDrag`](#domutil-disabletextselection).\r\nfunction enableImageDrag() {\r\n\toff(window, 'dragstart', preventDefault);\r\n}\r\n\r\nvar _outlineElement;\nvar _outlineStyle;\r\n// @function preventOutline(el: HTMLElement)\r\n// Makes the [outline](https://developer.mozilla.org/docs/Web/CSS/outline)\r\n// of the element `el` invisible. Used internally by Leaflet to prevent\r\n// focusable elements from displaying an outline when the user performs a\r\n// drag interaction on them.\r\nfunction preventOutline(element) {\r\n\twhile (element.tabIndex === -1) {\r\n\t\telement = element.parentNode;\r\n\t}\r\n\tif (!element.style) { return; }\r\n\trestoreOutline();\r\n\t_outlineElement = element;\r\n\t_outlineStyle = element.style.outline;\r\n\telement.style.outline = 'none';\r\n\ton(window, 'keydown', restoreOutline);\r\n}\r\n\r\n// @function restoreOutline()\r\n// Cancels the effects of a previous [`L.DomUtil.preventOutline`]().\r\nfunction restoreOutline() {\r\n\tif (!_outlineElement) { return; }\r\n\t_outlineElement.style.outline = _outlineStyle;\r\n\t_outlineElement = undefined;\r\n\t_outlineStyle = undefined;\r\n\toff(window, 'keydown', restoreOutline);\r\n}\r\n\r\n// @function getSizedParentNode(el: HTMLElement): HTMLElement\r\n// Finds the closest parent node which size (width and height) is not null.\r\nfunction getSizedParentNode(element) {\r\n\tdo {\r\n\t\telement = element.parentNode;\r\n\t} while ((!element.offsetWidth || !element.offsetHeight) && element !== document.body);\r\n\treturn element;\r\n}\r\n\r\n// @function getScale(el: HTMLElement): Object\r\n// Computes the CSS scale currently applied on the element.\r\n// Returns an object with `x` and `y` members as horizontal and vertical scales respectively,\r\n// and `boundingClientRect` as the result of [`getBoundingClientRect()`](https://developer.mozilla.org/en-US/docs/Web/API/Element/getBoundingClientRect).\r\nfunction getScale(element) {\r\n\tvar rect = element.getBoundingClientRect(); // Read-only in old browsers.\r\n\r\n\treturn {\r\n\t\tx: rect.width / element.offsetWidth || 1,\r\n\t\ty: rect.height / element.offsetHeight || 1,\r\n\t\tboundingClientRect: rect\r\n\t};\r\n}\r\n\n\nvar DomUtil = (Object.freeze || Object)({\n\tTRANSFORM: TRANSFORM,\n\tTRANSITION: TRANSITION,\n\tTRANSITION_END: TRANSITION_END,\n\tget: get,\n\tgetStyle: getStyle,\n\tcreate: create$1,\n\tremove: remove,\n\tempty: empty,\n\ttoFront: toFront,\n\ttoBack: toBack,\n\thasClass: hasClass,\n\taddClass: addClass,\n\tremoveClass: removeClass,\n\tsetClass: setClass,\n\tgetClass: getClass,\n\tsetOpacity: setOpacity,\n\ttestProp: testProp,\n\tsetTransform: setTransform,\n\tsetPosition: setPosition,\n\tgetPosition: getPosition,\n\tdisableTextSelection: disableTextSelection,\n\tenableTextSelection: enableTextSelection,\n\tdisableImageDrag: disableImageDrag,\n\tenableImageDrag: enableImageDrag,\n\tpreventOutline: preventOutline,\n\trestoreOutline: restoreOutline,\n\tgetSizedParentNode: getSizedParentNode,\n\tgetScale: getScale\n});\n\n/*\r\n * @namespace DomEvent\r\n * Utility functions to work with the [DOM events](https://developer.mozilla.org/docs/Web/API/Event), used by Leaflet internally.\r\n */\r\n\r\n// Inspired by John Resig, Dean Edwards and YUI addEvent implementations.\r\n\r\n// @function on(el: HTMLElement, types: String, fn: Function, context?: Object): this\r\n// Adds a listener function (`fn`) to a particular DOM event type of the\r\n// element `el`. You can optionally specify the context of the listener\r\n// (object the `this` keyword will point to). You can also pass several\r\n// space-separated types (e.g. `'click dblclick'`).\r\n\r\n// @alternative\r\n// @function on(el: HTMLElement, eventMap: Object, context?: Object): this\r\n// Adds a set of type/listener pairs, e.g. `{click: onClick, mousemove: onMouseMove}`\r\nfunction on(obj, types, fn, context) {\r\n\r\n\tif (typeof types === 'object') {\r\n\t\tfor (var type in types) {\r\n\t\t\taddOne(obj, type, types[type], fn);\r\n\t\t}\r\n\t} else {\r\n\t\ttypes = splitWords(types);\r\n\r\n\t\tfor (var i = 0, len = types.length; i < len; i++) {\r\n\t\t\taddOne(obj, types[i], fn, context);\r\n\t\t}\r\n\t}\r\n\r\n\treturn this;\r\n}\r\n\r\nvar eventsKey = '_leaflet_events';\r\n\r\n// @function off(el: HTMLElement, types: String, fn: Function, context?: Object): this\r\n// Removes a previously added listener function.\r\n// Note that if you passed a custom context to on, you must pass the same\r\n// context to `off` in order to remove the listener.\r\n\r\n// @alternative\r\n// @function off(el: HTMLElement, eventMap: Object, context?: Object): this\r\n// Removes a set of type/listener pairs, e.g. `{click: onClick, mousemove: onMouseMove}`\r\nfunction off(obj, types, fn, context) {\r\n\r\n\tif (typeof types === 'object') {\r\n\t\tfor (var type in types) {\r\n\t\t\tremoveOne(obj, type, types[type], fn);\r\n\t\t}\r\n\t} else if (types) {\r\n\t\ttypes = splitWords(types);\r\n\r\n\t\tfor (var i = 0, len = types.length; i < len; i++) {\r\n\t\t\tremoveOne(obj, types[i], fn, context);\r\n\t\t}\r\n\t} else {\r\n\t\tfor (var j in obj[eventsKey]) {\r\n\t\t\tremoveOne(obj, j, obj[eventsKey][j]);\r\n\t\t}\r\n\t\tdelete obj[eventsKey];\r\n\t}\r\n\r\n\treturn this;\r\n}\r\n\r\nfunction addOne(obj, type, fn, context) {\r\n\tvar id = type + stamp(fn) + (context ? '_' + stamp(context) : '');\r\n\r\n\tif (obj[eventsKey] && obj[eventsKey][id]) { return this; }\r\n\r\n\tvar handler = function (e) {\r\n\t\treturn fn.call(context || obj, e || window.event);\r\n\t};\r\n\r\n\tvar originalHandler = handler;\r\n\r\n\tif (pointer && type.indexOf('touch') === 0) {\r\n\t\t// Needs DomEvent.Pointer.js\r\n\t\taddPointerListener(obj, type, handler, id);\r\n\r\n\t} else if (touch && (type === 'dblclick') && addDoubleTapListener &&\r\n\t !(pointer && chrome)) {\r\n\t\t// Chrome >55 does not need the synthetic dblclicks from addDoubleTapListener\r\n\t\t// See #5180\r\n\t\taddDoubleTapListener(obj, handler, id);\r\n\r\n\t} else if ('addEventListener' in obj) {\r\n\r\n\t\tif (type === 'mousewheel') {\r\n\t\t\tobj.addEventListener('onwheel' in obj ? 'wheel' : 'mousewheel', handler, false);\r\n\r\n\t\t} else if ((type === 'mouseenter') || (type === 'mouseleave')) {\r\n\t\t\thandler = function (e) {\r\n\t\t\t\te = e || window.event;\r\n\t\t\t\tif (isExternalTarget(obj, e)) {\r\n\t\t\t\t\toriginalHandler(e);\r\n\t\t\t\t}\r\n\t\t\t};\r\n\t\t\tobj.addEventListener(type === 'mouseenter' ? 'mouseover' : 'mouseout', handler, false);\r\n\r\n\t\t} else {\r\n\t\t\tif (type === 'click' && android) {\r\n\t\t\t\thandler = function (e) {\r\n\t\t\t\t\tfilterClick(e, originalHandler);\r\n\t\t\t\t};\r\n\t\t\t}\r\n\t\t\tobj.addEventListener(type, handler, false);\r\n\t\t}\r\n\r\n\t} else if ('attachEvent' in obj) {\r\n\t\tobj.attachEvent('on' + type, handler);\r\n\t}\r\n\r\n\tobj[eventsKey] = obj[eventsKey] || {};\r\n\tobj[eventsKey][id] = handler;\r\n}\r\n\r\nfunction removeOne(obj, type, fn, context) {\r\n\r\n\tvar id = type + stamp(fn) + (context ? '_' + stamp(context) : ''),\r\n\t handler = obj[eventsKey] && obj[eventsKey][id];\r\n\r\n\tif (!handler) { return this; }\r\n\r\n\tif (pointer && type.indexOf('touch') === 0) {\r\n\t\tremovePointerListener(obj, type, id);\r\n\r\n\t} else if (touch && (type === 'dblclick') && removeDoubleTapListener &&\r\n\t !(pointer && chrome)) {\r\n\t\tremoveDoubleTapListener(obj, id);\r\n\r\n\t} else if ('removeEventListener' in obj) {\r\n\r\n\t\tif (type === 'mousewheel') {\r\n\t\t\tobj.removeEventListener('onwheel' in obj ? 'wheel' : 'mousewheel', handler, false);\r\n\r\n\t\t} else {\r\n\t\t\tobj.removeEventListener(\r\n\t\t\t\ttype === 'mouseenter' ? 'mouseover' :\r\n\t\t\t\ttype === 'mouseleave' ? 'mouseout' : type, handler, false);\r\n\t\t}\r\n\r\n\t} else if ('detachEvent' in obj) {\r\n\t\tobj.detachEvent('on' + type, handler);\r\n\t}\r\n\r\n\tobj[eventsKey][id] = null;\r\n}\r\n\r\n// @function stopPropagation(ev: DOMEvent): this\r\n// Stop the given event from propagation to parent elements. Used inside the listener functions:\r\n// ```js\r\n// L.DomEvent.on(div, 'click', function (ev) {\r\n// \tL.DomEvent.stopPropagation(ev);\r\n// });\r\n// ```\r\nfunction stopPropagation(e) {\r\n\r\n\tif (e.stopPropagation) {\r\n\t\te.stopPropagation();\r\n\t} else if (e.originalEvent) { // In case of Leaflet event.\r\n\t\te.originalEvent._stopped = true;\r\n\t} else {\r\n\t\te.cancelBubble = true;\r\n\t}\r\n\tskipped(e);\r\n\r\n\treturn this;\r\n}\r\n\r\n// @function disableScrollPropagation(el: HTMLElement): this\r\n// Adds `stopPropagation` to the element's `'mousewheel'` events (plus browser variants).\r\nfunction disableScrollPropagation(el) {\r\n\taddOne(el, 'mousewheel', stopPropagation);\r\n\treturn this;\r\n}\r\n\r\n// @function disableClickPropagation(el: HTMLElement): this\r\n// Adds `stopPropagation` to the element's `'click'`, `'doubleclick'`,\r\n// `'mousedown'` and `'touchstart'` events (plus browser variants).\r\nfunction disableClickPropagation(el) {\r\n\ton(el, 'mousedown touchstart dblclick', stopPropagation);\r\n\taddOne(el, 'click', fakeStop);\r\n\treturn this;\r\n}\r\n\r\n// @function preventDefault(ev: DOMEvent): this\r\n// Prevents the default action of the DOM Event `ev` from happening (such as\r\n// following a link in the href of the a element, or doing a POST request\r\n// with page reload when a `<form>` is submitted).\r\n// Use it inside listener functions.\r\nfunction preventDefault(e) {\r\n\tif (e.preventDefault) {\r\n\t\te.preventDefault();\r\n\t} else {\r\n\t\te.returnValue = false;\r\n\t}\r\n\treturn this;\r\n}\r\n\r\n// @function stop(ev: DOMEvent): this\r\n// Does `stopPropagation` and `preventDefault` at the same time.\r\nfunction stop(e) {\r\n\tpreventDefault(e);\r\n\tstopPropagation(e);\r\n\treturn this;\r\n}\r\n\r\n// @function getMousePosition(ev: DOMEvent, container?: HTMLElement): Point\r\n// Gets normalized mouse position from a DOM event relative to the\r\n// `container` (border excluded) or to the whole page if not specified.\r\nfunction getMousePosition(e, container) {\r\n\tif (!container) {\r\n\t\treturn new Point(e.clientX, e.clientY);\r\n\t}\r\n\r\n\tvar scale = getScale(container),\r\n\t offset = scale.boundingClientRect; // left and top values are in page scale (like the event clientX/Y)\r\n\r\n\treturn new Point(\r\n\t\t// offset.left/top values are in page scale (like clientX/Y),\r\n\t\t// whereas clientLeft/Top (border width) values are the original values (before CSS scale applies).\r\n\t\t(e.clientX - offset.left) / scale.x - container.clientLeft,\r\n\t\t(e.clientY - offset.top) / scale.y - container.clientTop\r\n\t);\r\n}\r\n\r\n// Chrome on Win scrolls double the pixels as in other platforms (see #4538),\r\n// and Firefox scrolls device pixels, not CSS pixels\r\nvar wheelPxFactor =\r\n\t(win && chrome) ? 2 * window.devicePixelRatio :\r\n\tgecko ? window.devicePixelRatio : 1;\r\n\r\n// @function getWheelDelta(ev: DOMEvent): Number\r\n// Gets normalized wheel delta from a mousewheel DOM event, in vertical\r\n// pixels scrolled (negative if scrolling down).\r\n// Events from pointing devices without precise scrolling are mapped to\r\n// a best guess of 60 pixels.\r\nfunction getWheelDelta(e) {\r\n\treturn (edge) ? e.wheelDeltaY / 2 : // Don't trust window-geometry-based delta\r\n\t (e.deltaY && e.deltaMode === 0) ? -e.deltaY / wheelPxFactor : // Pixels\r\n\t (e.deltaY && e.deltaMode === 1) ? -e.deltaY * 20 : // Lines\r\n\t (e.deltaY && e.deltaMode === 2) ? -e.deltaY * 60 : // Pages\r\n\t (e.deltaX || e.deltaZ) ? 0 :\t// Skip horizontal/depth wheel events\r\n\t e.wheelDelta ? (e.wheelDeltaY || e.wheelDelta) / 2 : // Legacy IE pixels\r\n\t (e.detail && Math.abs(e.detail) < 32765) ? -e.detail * 20 : // Legacy Moz lines\r\n\t e.detail ? e.detail / -32765 * 60 : // Legacy Moz pages\r\n\t 0;\r\n}\r\n\r\nvar skipEvents = {};\r\n\r\nfunction fakeStop(e) {\r\n\t// fakes stopPropagation by setting a special event flag, checked/reset with skipped(e)\r\n\tskipEvents[e.type] = true;\r\n}\r\n\r\nfunction skipped(e) {\r\n\tvar events = skipEvents[e.type];\r\n\t// reset when checking, as it's only used in map container and propagates outside of the map\r\n\tskipEvents[e.type] = false;\r\n\treturn events;\r\n}\r\n\r\n// check if element really left/entered the event target (for mouseenter/mouseleave)\r\nfunction isExternalTarget(el, e) {\r\n\r\n\tvar related = e.relatedTarget;\r\n\r\n\tif (!related) { return true; }\r\n\r\n\ttry {\r\n\t\twhile (related && (related !== el)) {\r\n\t\t\trelated = related.parentNode;\r\n\t\t}\r\n\t} catch (err) {\r\n\t\treturn false;\r\n\t}\r\n\treturn (related !== el);\r\n}\r\n\r\nvar lastClick;\r\n\r\n// this is a horrible workaround for a bug in Android where a single touch triggers two click events\r\nfunction filterClick(e, handler) {\r\n\tvar timeStamp = (e.timeStamp || (e.originalEvent && e.originalEvent.timeStamp)),\r\n\t elapsed = lastClick && (timeStamp - lastClick);\r\n\r\n\t// are they closer together than 500ms yet more than 100ms?\r\n\t// Android typically triggers them ~300ms apart while multiple listeners\r\n\t// on the same event should be triggered far faster;\r\n\t// or check if click is simulated on the element, and if it is, reject any non-simulated events\r\n\r\n\tif ((elapsed && elapsed > 100 && elapsed < 500) || (e.target._simulatedClick && !e._simulated)) {\r\n\t\tstop(e);\r\n\t\treturn;\r\n\t}\r\n\tlastClick = timeStamp;\r\n\r\n\thandler(e);\r\n}\r\n\r\n\r\n\n\nvar DomEvent = (Object.freeze || Object)({\n\ton: on,\n\toff: off,\n\tstopPropagation: stopPropagation,\n\tdisableScrollPropagation: disableScrollPropagation,\n\tdisableClickPropagation: disableClickPropagation,\n\tpreventDefault: preventDefault,\n\tstop: stop,\n\tgetMousePosition: getMousePosition,\n\tgetWheelDelta: getWheelDelta,\n\tfakeStop: fakeStop,\n\tskipped: skipped,\n\tisExternalTarget: isExternalTarget,\n\taddListener: on,\n\tremoveListener: off\n});\n\n/*\n * @class PosAnimation\n * @aka L.PosAnimation\n * @inherits Evented\n * Used internally for panning animations, utilizing CSS3 Transitions for modern browsers and a timer fallback for IE6-9.\n *\n * @example\n * ```js\n * var fx = new L.PosAnimation();\n * fx.run(el, [300, 500], 0.5);\n * ```\n *\n * @constructor L.PosAnimation()\n * Creates a `PosAnimation` object.\n *\n */\n\nvar PosAnimation = Evented.extend({\n\n\t// @method run(el: HTMLElement, newPos: Point, duration?: Number, easeLinearity?: Number)\n\t// Run an animation of a given element to a new position, optionally setting\n\t// duration in seconds (`0.25` by default) and easing linearity factor (3rd\n\t// argument of the [cubic bezier curve](http://cubic-bezier.com/#0,0,.5,1),\n\t// `0.5` by default).\n\trun: function (el, newPos, duration, easeLinearity) {\n\t\tthis.stop();\n\n\t\tthis._el = el;\n\t\tthis._inProgress = true;\n\t\tthis._duration = duration || 0.25;\n\t\tthis._easeOutPower = 1 / Math.max(easeLinearity || 0.5, 0.2);\n\n\t\tthis._startPos = getPosition(el);\n\t\tthis._offset = newPos.subtract(this._startPos);\n\t\tthis._startTime = +new Date();\n\n\t\t// @event start: Event\n\t\t// Fired when the animation starts\n\t\tthis.fire('start');\n\n\t\tthis._animate();\n\t},\n\n\t// @method stop()\n\t// Stops the animation (if currently running).\n\tstop: function () {\n\t\tif (!this._inProgress) { return; }\n\n\t\tthis._step(true);\n\t\tthis._complete();\n\t},\n\n\t_animate: function () {\n\t\t// animation loop\n\t\tthis._animId = requestAnimFrame(this._animate, this);\n\t\tthis._step();\n\t},\n\n\t_step: function (round) {\n\t\tvar elapsed = (+new Date()) - this._startTime,\n\t\t duration = this._duration * 1000;\n\n\t\tif (elapsed < duration) {\n\t\t\tthis._runFrame(this._easeOut(elapsed / duration), round);\n\t\t} else {\n\t\t\tthis._runFrame(1);\n\t\t\tthis._complete();\n\t\t}\n\t},\n\n\t_runFrame: function (progress, round) {\n\t\tvar pos = this._startPos.add(this._offset.multiplyBy(progress));\n\t\tif (round) {\n\t\t\tpos._round();\n\t\t}\n\t\tsetPosition(this._el, pos);\n\n\t\t// @event step: Event\n\t\t// Fired continuously during the animation.\n\t\tthis.fire('step');\n\t},\n\n\t_complete: function () {\n\t\tcancelAnimFrame(this._animId);\n\n\t\tthis._inProgress = false;\n\t\t// @event end: Event\n\t\t// Fired when the animation ends.\n\t\tthis.fire('end');\n\t},\n\n\t_easeOut: function (t) {\n\t\treturn 1 - Math.pow(1 - t, this._easeOutPower);\n\t}\n});\n\n/*\r\n * @class Map\r\n * @aka L.Map\r\n * @inherits Evented\r\n *\r\n * The central class of the API — it is used to create a map on a page and manipulate it.\r\n *\r\n * @example\r\n *\r\n * ```js\r\n * // initialize the map on the \"map\" div with a given center and zoom\r\n * var map = L.map('map', {\r\n * \tcenter: [51.505, -0.09],\r\n * \tzoom: 13\r\n * });\r\n * ```\r\n *\r\n */\r\n\r\nvar Map = Evented.extend({\r\n\r\n\toptions: {\r\n\t\t// @section Map State Options\r\n\t\t// @option crs: CRS = L.CRS.EPSG3857\r\n\t\t// The [Coordinate Reference System](#crs) to use. Don't change this if you're not\r\n\t\t// sure what it means.\r\n\t\tcrs: EPSG3857,\r\n\r\n\t\t// @option center: LatLng = undefined\r\n\t\t// Initial geographic center of the map\r\n\t\tcenter: undefined,\r\n\r\n\t\t// @option zoom: Number = undefined\r\n\t\t// Initial map zoom level\r\n\t\tzoom: undefined,\r\n\r\n\t\t// @option minZoom: Number = *\r\n\t\t// Minimum zoom level of the map.\r\n\t\t// If not specified and at least one `GridLayer` or `TileLayer` is in the map,\r\n\t\t// the lowest of their `minZoom` options will be used instead.\r\n\t\tminZoom: undefined,\r\n\r\n\t\t// @option maxZoom: Number = *\r\n\t\t// Maximum zoom level of the map.\r\n\t\t// If not specified and at least one `GridLayer` or `TileLayer` is in the map,\r\n\t\t// the highest of their `maxZoom` options will be used instead.\r\n\t\tmaxZoom: undefined,\r\n\r\n\t\t// @option layers: Layer[] = []\r\n\t\t// Array of layers that will be added to the map initially\r\n\t\tlayers: [],\r\n\r\n\t\t// @option maxBounds: LatLngBounds = null\r\n\t\t// When this option is set, the map restricts the view to the given\r\n\t\t// geographical bounds, bouncing the user back if the user tries to pan\r\n\t\t// outside the view. To set the restriction dynamically, use\r\n\t\t// [`setMaxBounds`](#map-setmaxbounds) method.\r\n\t\tmaxBounds: undefined,\r\n\r\n\t\t// @option renderer: Renderer = *\r\n\t\t// The default method for drawing vector layers on the map. `L.SVG`\r\n\t\t// or `L.Canvas` by default depending on browser support.\r\n\t\trenderer: undefined,\r\n\r\n\r\n\t\t// @section Animation Options\r\n\t\t// @option zoomAnimation: Boolean = true\r\n\t\t// Whether the map zoom animation is enabled. By default it's enabled\r\n\t\t// in all browsers that support CSS3 Transitions except Android.\r\n\t\tzoomAnimation: true,\r\n\r\n\t\t// @option zoomAnimationThreshold: Number = 4\r\n\t\t// Won't animate zoom if the zoom difference exceeds this value.\r\n\t\tzoomAnimationThreshold: 4,\r\n\r\n\t\t// @option fadeAnimation: Boolean = true\r\n\t\t// Whether the tile fade animation is enabled. By default it's enabled\r\n\t\t// in all browsers that support CSS3 Transitions except Android.\r\n\t\tfadeAnimation: true,\r\n\r\n\t\t// @option markerZoomAnimation: Boolean = true\r\n\t\t// Whether markers animate their zoom with the zoom animation, if disabled\r\n\t\t// they will disappear for the length of the animation. By default it's\r\n\t\t// enabled in all browsers that support CSS3 Transitions except Android.\r\n\t\tmarkerZoomAnimation: true,\r\n\r\n\t\t// @option transform3DLimit: Number = 2^23\r\n\t\t// Defines the maximum size of a CSS translation transform. The default\r\n\t\t// value should not be changed unless a web browser positions layers in\r\n\t\t// the wrong place after doing a large `panBy`.\r\n\t\ttransform3DLimit: 8388608, // Precision limit of a 32-bit float\r\n\r\n\t\t// @section Interaction Options\r\n\t\t// @option zoomSnap: Number = 1\r\n\t\t// Forces the map's zoom level to always be a multiple of this, particularly\r\n\t\t// right after a [`fitBounds()`](#map-fitbounds) or a pinch-zoom.\r\n\t\t// By default, the zoom level snaps to the nearest integer; lower values\r\n\t\t// (e.g. `0.5` or `0.1`) allow for greater granularity. A value of `0`\r\n\t\t// means the zoom level will not be snapped after `fitBounds` or a pinch-zoom.\r\n\t\tzoomSnap: 1,\r\n\r\n\t\t// @option zoomDelta: Number = 1\r\n\t\t// Controls how much the map's zoom level will change after a\r\n\t\t// [`zoomIn()`](#map-zoomin), [`zoomOut()`](#map-zoomout), pressing `+`\r\n\t\t// or `-` on the keyboard, or using the [zoom controls](#control-zoom).\r\n\t\t// Values smaller than `1` (e.g. `0.5`) allow for greater granularity.\r\n\t\tzoomDelta: 1,\r\n\r\n\t\t// @option trackResize: Boolean = true\r\n\t\t// Whether the map automatically handles browser window resize to update itself.\r\n\t\ttrackResize: true\r\n\t},\r\n\r\n\tinitialize: function (id, options) { // (HTMLElement or String, Object)\r\n\t\toptions = setOptions(this, options);\r\n\r\n\t\tthis._initContainer(id);\r\n\t\tthis._initLayout();\r\n\r\n\t\t// hack for https://github.com/Leaflet/Leaflet/issues/1980\r\n\t\tthis._onResize = bind(this._onResize, this);\r\n\r\n\t\tthis._initEvents();\r\n\r\n\t\tif (options.maxBounds) {\r\n\t\t\tthis.setMaxBounds(options.maxBounds);\r\n\t\t}\r\n\r\n\t\tif (options.zoom !== undefined) {\r\n\t\t\tthis._zoom = this._limitZoom(options.zoom);\r\n\t\t}\r\n\r\n\t\tif (options.center && options.zoom !== undefined) {\r\n\t\t\tthis.setView(toLatLng(options.center), options.zoom, {reset: true});\r\n\t\t}\r\n\r\n\t\tthis._handlers = [];\r\n\t\tthis._layers = {};\r\n\t\tthis._zoomBoundLayers = {};\r\n\t\tthis._sizeChanged = true;\r\n\r\n\t\tthis.callInitHooks();\r\n\r\n\t\t// don't animate on browsers without hardware-accelerated transitions or old Android/Opera\r\n\t\tthis._zoomAnimated = TRANSITION && any3d && !mobileOpera &&\r\n\t\t\t\tthis.options.zoomAnimation;\r\n\r\n\t\t// zoom transitions run with the same duration for all layers, so if one of transitionend events\r\n\t\t// happens after starting zoom animation (propagating to the map pane), we know that it ended globally\r\n\t\tif (this._zoomAnimated) {\r\n\t\t\tthis._createAnimProxy();\r\n\t\t\ton(this._proxy, TRANSITION_END, this._catchTransitionEnd, this);\r\n\t\t}\r\n\r\n\t\tthis._addLayers(this.options.layers);\r\n\t},\r\n\r\n\r\n\t// @section Methods for modifying map state\r\n\r\n\t// @method setView(center: LatLng, zoom: Number, options?: Zoom/pan options): this\r\n\t// Sets the view of the map (geographical center and zoom) with the given\r\n\t// animation options.\r\n\tsetView: function (center, zoom, options) {\r\n\r\n\t\tzoom = zoom === undefined ? this._zoom : this._limitZoom(zoom);\r\n\t\tcenter = this._limitCenter(toLatLng(center), zoom, this.options.maxBounds);\r\n\t\toptions = options || {};\r\n\r\n\t\tthis._stop();\r\n\r\n\t\tif (this._loaded && !options.reset && options !== true) {\r\n\r\n\t\t\tif (options.animate !== undefined) {\r\n\t\t\t\toptions.zoom = extend({animate: options.animate}, options.zoom);\r\n\t\t\t\toptions.pan = extend({animate: options.animate, duration: options.duration}, options.pan);\r\n\t\t\t}\r\n\r\n\t\t\t// try animating pan or zoom\r\n\t\t\tvar moved = (this._zoom !== zoom) ?\r\n\t\t\t\tthis._tryAnimatedZoom && this._tryAnimatedZoom(center, zoom, options.zoom) :\r\n\t\t\t\tthis._tryAnimatedPan(center, options.pan);\r\n\r\n\t\t\tif (moved) {\r\n\t\t\t\t// prevent resize handler call, the view will refresh after animation anyway\r\n\t\t\t\tclearTimeout(this._sizeTimer);\r\n\t\t\t\treturn this;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// animation didn't start, just reset the map view\r\n\t\tthis._resetView(center, zoom);\r\n\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method setZoom(zoom: Number, options?: Zoom/pan options): this\r\n\t// Sets the zoom of the map.\r\n\tsetZoom: function (zoom, options) {\r\n\t\tif (!this._loaded) {\r\n\t\t\tthis._zoom = zoom;\r\n\t\t\treturn this;\r\n\t\t}\r\n\t\treturn this.setView(this.getCenter(), zoom, {zoom: options});\r\n\t},\r\n\r\n\t// @method zoomIn(delta?: Number, options?: Zoom options): this\r\n\t// Increases the zoom of the map by `delta` ([`zoomDelta`](#map-zoomdelta) by default).\r\n\tzoomIn: function (delta, options) {\r\n\t\tdelta = delta || (any3d ? this.options.zoomDelta : 1);\r\n\t\treturn this.setZoom(this._zoom + delta, options);\r\n\t},\r\n\r\n\t// @method zoomOut(delta?: Number, options?: Zoom options): this\r\n\t// Decreases the zoom of the map by `delta` ([`zoomDelta`](#map-zoomdelta) by default).\r\n\tzoomOut: function (delta, options) {\r\n\t\tdelta = delta || (any3d ? this.options.zoomDelta : 1);\r\n\t\treturn this.setZoom(this._zoom - delta, options);\r\n\t},\r\n\r\n\t// @method setZoomAround(latlng: LatLng, zoom: Number, options: Zoom options): this\r\n\t// Zooms the map while keeping a specified geographical point on the map\r\n\t// stationary (e.g. used internally for scroll zoom and double-click zoom).\r\n\t// @alternative\r\n\t// @method setZoomAround(offset: Point, zoom: Number, options: Zoom options): this\r\n\t// Zooms the map while keeping a specified pixel on the map (relative to the top-left corner) stationary.\r\n\tsetZoomAround: function (latlng, zoom, options) {\r\n\t\tvar scale = this.getZoomScale(zoom),\r\n\t\t viewHalf = this.getSize().divideBy(2),\r\n\t\t containerPoint = latlng instanceof Point ? latlng : this.latLngToContainerPoint(latlng),\r\n\r\n\t\t centerOffset = containerPoint.subtract(viewHalf).multiplyBy(1 - 1 / scale),\r\n\t\t newCenter = this.containerPointToLatLng(viewHalf.add(centerOffset));\r\n\r\n\t\treturn this.setView(newCenter, zoom, {zoom: options});\r\n\t},\r\n\r\n\t_getBoundsCenterZoom: function (bounds, options) {\r\n\r\n\t\toptions = options || {};\r\n\t\tbounds = bounds.getBounds ? bounds.getBounds() : toLatLngBounds(bounds);\r\n\r\n\t\tvar paddingTL = toPoint(options.paddingTopLeft || options.padding || [0, 0]),\r\n\t\t paddingBR = toPoint(options.paddingBottomRight || options.padding || [0, 0]),\r\n\r\n\t\t zoom = this.getBoundsZoom(bounds, false, paddingTL.add(paddingBR));\r\n\r\n\t\tzoom = (typeof options.maxZoom === 'number') ? Math.min(options.maxZoom, zoom) : zoom;\r\n\r\n\t\tif (zoom === Infinity) {\r\n\t\t\treturn {\r\n\t\t\t\tcenter: bounds.getCenter(),\r\n\t\t\t\tzoom: zoom\r\n\t\t\t};\r\n\t\t}\r\n\r\n\t\tvar paddingOffset = paddingBR.subtract(paddingTL).divideBy(2),\r\n\r\n\t\t swPoint = this.project(bounds.getSouthWest(), zoom),\r\n\t\t nePoint = this.project(bounds.getNorthEast(), zoom),\r\n\t\t center = this.unproject(swPoint.add(nePoint).divideBy(2).add(paddingOffset), zoom);\r\n\r\n\t\treturn {\r\n\t\t\tcenter: center,\r\n\t\t\tzoom: zoom\r\n\t\t};\r\n\t},\r\n\r\n\t// @method fitBounds(bounds: LatLngBounds, options?: fitBounds options): this\r\n\t// Sets a map view that contains the given geographical bounds with the\r\n\t// maximum zoom level possible.\r\n\tfitBounds: function (bounds, options) {\r\n\r\n\t\tbounds = toLatLngBounds(bounds);\r\n\r\n\t\tif (!bounds.isValid()) {\r\n\t\t\tthrow new Error('Bounds are not valid.');\r\n\t\t}\r\n\r\n\t\tvar target = this._getBoundsCenterZoom(bounds, options);\r\n\t\treturn this.setView(target.center, target.zoom, options);\r\n\t},\r\n\r\n\t// @method fitWorld(options?: fitBounds options): this\r\n\t// Sets a map view that mostly contains the whole world with the maximum\r\n\t// zoom level possible.\r\n\tfitWorld: function (options) {\r\n\t\treturn this.fitBounds([[-90, -180], [90, 180]], options);\r\n\t},\r\n\r\n\t// @method panTo(latlng: LatLng, options?: Pan options): this\r\n\t// Pans the map to a given center.\r\n\tpanTo: function (center, options) { // (LatLng)\r\n\t\treturn this.setView(center, this._zoom, {pan: options});\r\n\t},\r\n\r\n\t// @method panBy(offset: Point, options?: Pan options): this\r\n\t// Pans the map by a given number of pixels (animated).\r\n\tpanBy: function (offset, options) {\r\n\t\toffset = toPoint(offset).round();\r\n\t\toptions = options || {};\r\n\r\n\t\tif (!offset.x && !offset.y) {\r\n\t\t\treturn this.fire('moveend');\r\n\t\t}\r\n\t\t// If we pan too far, Chrome gets issues with tiles\r\n\t\t// and makes them disappear or appear in the wrong place (slightly offset) #2602\r\n\t\tif (options.animate !== true && !this.getSize().contains(offset)) {\r\n\t\t\tthis._resetView(this.unproject(this.project(this.getCenter()).add(offset)), this.getZoom());\r\n\t\t\treturn this;\r\n\t\t}\r\n\r\n\t\tif (!this._panAnim) {\r\n\t\t\tthis._panAnim = new PosAnimation();\r\n\r\n\t\t\tthis._panAnim.on({\r\n\t\t\t\t'step': this._onPanTransitionStep,\r\n\t\t\t\t'end': this._onPanTransitionEnd\r\n\t\t\t}, this);\r\n\t\t}\r\n\r\n\t\t// don't fire movestart if animating inertia\r\n\t\tif (!options.noMoveStart) {\r\n\t\t\tthis.fire('movestart');\r\n\t\t}\r\n\r\n\t\t// animate pan unless animate: false specified\r\n\t\tif (options.animate !== false) {\r\n\t\t\taddClass(this._mapPane, 'leaflet-pan-anim');\r\n\r\n\t\t\tvar newPos = this._getMapPanePos().subtract(offset).round();\r\n\t\t\tthis._panAnim.run(this._mapPane, newPos, options.duration || 0.25, options.easeLinearity);\r\n\t\t} else {\r\n\t\t\tthis._rawPanBy(offset);\r\n\t\t\tthis.fire('move').fire('moveend');\r\n\t\t}\r\n\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method flyTo(latlng: LatLng, zoom?: Number, options?: Zoom/pan options): this\r\n\t// Sets the view of the map (geographical center and zoom) performing a smooth\r\n\t// pan-zoom animation.\r\n\tflyTo: function (targetCenter, targetZoom, options) {\r\n\r\n\t\toptions = options || {};\r\n\t\tif (options.animate === false || !any3d) {\r\n\t\t\treturn this.setView(targetCenter, targetZoom, options);\r\n\t\t}\r\n\r\n\t\tthis._stop();\r\n\r\n\t\tvar from = this.project(this.getCenter()),\r\n\t\t to = this.project(targetCenter),\r\n\t\t size = this.getSize(),\r\n\t\t startZoom = this._zoom;\r\n\r\n\t\ttargetCenter = toLatLng(targetCenter);\r\n\t\ttargetZoom = targetZoom === undefined ? startZoom : targetZoom;\r\n\r\n\t\tvar w0 = Math.max(size.x, size.y),\r\n\t\t w1 = w0 * this.getZoomScale(startZoom, targetZoom),\r\n\t\t u1 = (to.distanceTo(from)) || 1,\r\n\t\t rho = 1.42,\r\n\t\t rho2 = rho * rho;\r\n\r\n\t\tfunction r(i) {\r\n\t\t\tvar s1 = i ? -1 : 1,\r\n\t\t\t s2 = i ? w1 : w0,\r\n\t\t\t t1 = w1 * w1 - w0 * w0 + s1 * rho2 * rho2 * u1 * u1,\r\n\t\t\t b1 = 2 * s2 * rho2 * u1,\r\n\t\t\t b = t1 / b1,\r\n\t\t\t sq = Math.sqrt(b * b + 1) - b;\r\n\r\n\t\t\t // workaround for floating point precision bug when sq = 0, log = -Infinite,\r\n\t\t\t // thus triggering an infinite loop in flyTo\r\n\t\t\t var log = sq < 0.000000001 ? -18 : Math.log(sq);\r\n\r\n\t\t\treturn log;\r\n\t\t}\r\n\r\n\t\tfunction sinh(n) { return (Math.exp(n) - Math.exp(-n)) / 2; }\r\n\t\tfunction cosh(n) { return (Math.exp(n) + Math.exp(-n)) / 2; }\r\n\t\tfunction tanh(n) { return sinh(n) / cosh(n); }\r\n\r\n\t\tvar r0 = r(0);\r\n\r\n\t\tfunction w(s) { return w0 * (cosh(r0) / cosh(r0 + rho * s)); }\r\n\t\tfunction u(s) { return w0 * (cosh(r0) * tanh(r0 + rho * s) - sinh(r0)) / rho2; }\r\n\r\n\t\tfunction easeOut(t) { return 1 - Math.pow(1 - t, 1.5); }\r\n\r\n\t\tvar start = Date.now(),\r\n\t\t S = (r(1) - r0) / rho,\r\n\t\t duration = options.duration ? 1000 * options.duration : 1000 * S * 0.8;\r\n\r\n\t\tfunction frame() {\r\n\t\t\tvar t = (Date.now() - start) / duration,\r\n\t\t\t s = easeOut(t) * S;\r\n\r\n\t\t\tif (t <= 1) {\r\n\t\t\t\tthis._flyToFrame = requestAnimFrame(frame, this);\r\n\r\n\t\t\t\tthis._move(\r\n\t\t\t\t\tthis.unproject(from.add(to.subtract(from).multiplyBy(u(s) / u1)), startZoom),\r\n\t\t\t\t\tthis.getScaleZoom(w0 / w(s), startZoom),\r\n\t\t\t\t\t{flyTo: true});\r\n\r\n\t\t\t} else {\r\n\t\t\t\tthis\r\n\t\t\t\t\t._move(targetCenter, targetZoom)\r\n\t\t\t\t\t._moveEnd(true);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tthis._moveStart(true, options.noMoveStart);\r\n\r\n\t\tframe.call(this);\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method flyToBounds(bounds: LatLngBounds, options?: fitBounds options): this\r\n\t// Sets the view of the map with a smooth animation like [`flyTo`](#map-flyto),\r\n\t// but takes a bounds parameter like [`fitBounds`](#map-fitbounds).\r\n\tflyToBounds: function (bounds, options) {\r\n\t\tvar target = this._getBoundsCenterZoom(bounds, options);\r\n\t\treturn this.flyTo(target.center, target.zoom, options);\r\n\t},\r\n\r\n\t// @method setMaxBounds(bounds: Bounds): this\r\n\t// Restricts the map view to the given bounds (see the [maxBounds](#map-maxbounds) option).\r\n\tsetMaxBounds: function (bounds) {\r\n\t\tbounds = toLatLngBounds(bounds);\r\n\r\n\t\tif (!bounds.isValid()) {\r\n\t\t\tthis.options.maxBounds = null;\r\n\t\t\treturn this.off('moveend', this._panInsideMaxBounds);\r\n\t\t} else if (this.options.maxBounds) {\r\n\t\t\tthis.off('moveend', this._panInsideMaxBounds);\r\n\t\t}\r\n\r\n\t\tthis.options.maxBounds = bounds;\r\n\r\n\t\tif (this._loaded) {\r\n\t\t\tthis._panInsideMaxBounds();\r\n\t\t}\r\n\r\n\t\treturn this.on('moveend', this._panInsideMaxBounds);\r\n\t},\r\n\r\n\t// @method setMinZoom(zoom: Number): this\r\n\t// Sets the lower limit for the available zoom levels (see the [minZoom](#map-minzoom) option).\r\n\tsetMinZoom: function (zoom) {\r\n\t\tvar oldZoom = this.options.minZoom;\r\n\t\tthis.options.minZoom = zoom;\r\n\r\n\t\tif (this._loaded && oldZoom !== zoom) {\r\n\t\t\tthis.fire('zoomlevelschange');\r\n\r\n\t\t\tif (this.getZoom() < this.options.minZoom) {\r\n\t\t\t\treturn this.setZoom(zoom);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method setMaxZoom(zoom: Number): this\r\n\t// Sets the upper limit for the available zoom levels (see the [maxZoom](#map-maxzoom) option).\r\n\tsetMaxZoom: function (zoom) {\r\n\t\tvar oldZoom = this.options.maxZoom;\r\n\t\tthis.options.maxZoom = zoom;\r\n\r\n\t\tif (this._loaded && oldZoom !== zoom) {\r\n\t\t\tthis.fire('zoomlevelschange');\r\n\r\n\t\t\tif (this.getZoom() > this.options.maxZoom) {\r\n\t\t\t\treturn this.setZoom(zoom);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method panInsideBounds(bounds: LatLngBounds, options?: Pan options): this\r\n\t// Pans the map to the closest view that would lie inside the given bounds (if it's not already), controlling the animation using the options specific, if any.\r\n\tpanInsideBounds: function (bounds, options) {\r\n\t\tthis._enforcingBounds = true;\r\n\t\tvar center = this.getCenter(),\r\n\t\t newCenter = this._limitCenter(center, this._zoom, toLatLngBounds(bounds));\r\n\r\n\t\tif (!center.equals(newCenter)) {\r\n\t\t\tthis.panTo(newCenter, options);\r\n\t\t}\r\n\r\n\t\tthis._enforcingBounds = false;\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method invalidateSize(options: Zoom/pan options): this\r\n\t// Checks if the map container size changed and updates the map if so —\r\n\t// call it after you've changed the map size dynamically, also animating\r\n\t// pan by default. If `options.pan` is `false`, panning will not occur.\r\n\t// If `options.debounceMoveend` is `true`, it will delay `moveend` event so\r\n\t// that it doesn't happen often even if the method is called many\r\n\t// times in a row.\r\n\r\n\t// @alternative\r\n\t// @method invalidateSize(animate: Boolean): this\r\n\t// Checks if the map container size changed and updates the map if so —\r\n\t// call it after you've changed the map size dynamically, also animating\r\n\t// pan by default.\r\n\tinvalidateSize: function (options) {\r\n\t\tif (!this._loaded) { return this; }\r\n\r\n\t\toptions = extend({\r\n\t\t\tanimate: false,\r\n\t\t\tpan: true\r\n\t\t}, options === true ? {animate: true} : options);\r\n\r\n\t\tvar oldSize = this.getSize();\r\n\t\tthis._sizeChanged = true;\r\n\t\tthis._lastCenter = null;\r\n\r\n\t\tvar newSize = this.getSize(),\r\n\t\t oldCenter = oldSize.divideBy(2).round(),\r\n\t\t newCenter = newSize.divideBy(2).round(),\r\n\t\t offset = oldCenter.subtract(newCenter);\r\n\r\n\t\tif (!offset.x && !offset.y) { return this; }\r\n\r\n\t\tif (options.animate && options.pan) {\r\n\t\t\tthis.panBy(offset);\r\n\r\n\t\t} else {\r\n\t\t\tif (options.pan) {\r\n\t\t\t\tthis._rawPanBy(offset);\r\n\t\t\t}\r\n\r\n\t\t\tthis.fire('move');\r\n\r\n\t\t\tif (options.debounceMoveend) {\r\n\t\t\t\tclearTimeout(this._sizeTimer);\r\n\t\t\t\tthis._sizeTimer = setTimeout(bind(this.fire, this, 'moveend'), 200);\r\n\t\t\t} else {\r\n\t\t\t\tthis.fire('moveend');\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// @section Map state change events\r\n\t\t// @event resize: ResizeEvent\r\n\t\t// Fired when the map is resized.\r\n\t\treturn this.fire('resize', {\r\n\t\t\toldSize: oldSize,\r\n\t\t\tnewSize: newSize\r\n\t\t});\r\n\t},\r\n\r\n\t// @section Methods for modifying map state\r\n\t// @method stop(): this\r\n\t// Stops the currently running `panTo` or `flyTo` animation, if any.\r\n\tstop: function () {\r\n\t\tthis.setZoom(this._limitZoom(this._zoom));\r\n\t\tif (!this.options.zoomSnap) {\r\n\t\t\tthis.fire('viewreset');\r\n\t\t}\r\n\t\treturn this._stop();\r\n\t},\r\n\r\n\t// @section Geolocation methods\r\n\t// @method locate(options?: Locate options): this\r\n\t// Tries to locate the user using the Geolocation API, firing a [`locationfound`](#map-locationfound)\r\n\t// event with location data on success or a [`locationerror`](#map-locationerror) event on failure,\r\n\t// and optionally sets the map view to the user's location with respect to\r\n\t// detection accuracy (or to the world view if geolocation failed).\r\n\t// Note that, if your page doesn't use HTTPS, this method will fail in\r\n\t// modern browsers ([Chrome 50 and newer](https://sites.google.com/a/chromium.org/dev/Home/chromium-security/deprecating-powerful-features-on-insecure-origins))\r\n\t// See `Locate options` for more details.\r\n\tlocate: function (options) {\r\n\r\n\t\toptions = this._locateOptions = extend({\r\n\t\t\ttimeout: 10000,\r\n\t\t\twatch: false\r\n\t\t\t// setView: false\r\n\t\t\t// maxZoom: <Number>\r\n\t\t\t// maximumAge: 0\r\n\t\t\t// enableHighAccuracy: false\r\n\t\t}, options);\r\n\r\n\t\tif (!('geolocation' in navigator)) {\r\n\t\t\tthis._handleGeolocationError({\r\n\t\t\t\tcode: 0,\r\n\t\t\t\tmessage: 'Geolocation not supported.'\r\n\t\t\t});\r\n\t\t\treturn this;\r\n\t\t}\r\n\r\n\t\tvar onResponse = bind(this._handleGeolocationResponse, this),\r\n\t\t onError = bind(this._handleGeolocationError, this);\r\n\r\n\t\tif (options.watch) {\r\n\t\t\tthis._locationWatchId =\r\n\t\t\t navigator.geolocation.watchPosition(onResponse, onError, options);\r\n\t\t} else {\r\n\t\t\tnavigator.geolocation.getCurrentPosition(onResponse, onError, options);\r\n\t\t}\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method stopLocate(): this\r\n\t// Stops watching location previously initiated by `map.locate({watch: true})`\r\n\t// and aborts resetting the map view if map.locate was called with\r\n\t// `{setView: true}`.\r\n\tstopLocate: function () {\r\n\t\tif (navigator.geolocation && navigator.geolocation.clearWatch) {\r\n\t\t\tnavigator.geolocation.clearWatch(this._locationWatchId);\r\n\t\t}\r\n\t\tif (this._locateOptions) {\r\n\t\t\tthis._locateOptions.setView = false;\r\n\t\t}\r\n\t\treturn this;\r\n\t},\r\n\r\n\t_handleGeolocationError: function (error) {\r\n\t\tvar c = error.code,\r\n\t\t message = error.message ||\r\n\t\t (c === 1 ? 'permission denied' :\r\n\t\t (c === 2 ? 'position unavailable' : 'timeout'));\r\n\r\n\t\tif (this._locateOptions.setView && !this._loaded) {\r\n\t\t\tthis.fitWorld();\r\n\t\t}\r\n\r\n\t\t// @section Location events\r\n\t\t// @event locationerror: ErrorEvent\r\n\t\t// Fired when geolocation (using the [`locate`](#map-locate) method) failed.\r\n\t\tthis.fire('locationerror', {\r\n\t\t\tcode: c,\r\n\t\t\tmessage: 'Geolocation error: ' + message + '.'\r\n\t\t});\r\n\t},\r\n\r\n\t_handleGeolocationResponse: function (pos) {\r\n\t\tvar lat = pos.coords.latitude,\r\n\t\t lng = pos.coords.longitude,\r\n\t\t latlng = new LatLng(lat, lng),\r\n\t\t bounds = latlng.toBounds(pos.coords.accuracy * 2),\r\n\t\t options = this._locateOptions;\r\n\r\n\t\tif (options.setView) {\r\n\t\t\tvar zoom = this.getBoundsZoom(bounds);\r\n\t\t\tthis.setView(latlng, options.maxZoom ? Math.min(zoom, options.maxZoom) : zoom);\r\n\t\t}\r\n\r\n\t\tvar data = {\r\n\t\t\tlatlng: latlng,\r\n\t\t\tbounds: bounds,\r\n\t\t\ttimestamp: pos.timestamp\r\n\t\t};\r\n\r\n\t\tfor (var i in pos.coords) {\r\n\t\t\tif (typeof pos.coords[i] === 'number') {\r\n\t\t\t\tdata[i] = pos.coords[i];\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// @event locationfound: LocationEvent\r\n\t\t// Fired when geolocation (using the [`locate`](#map-locate) method)\r\n\t\t// went successfully.\r\n\t\tthis.fire('locationfound', data);\r\n\t},\r\n\r\n\t// TODO Appropriate docs section?\r\n\t// @section Other Methods\r\n\t// @method addHandler(name: String, HandlerClass: Function): this\r\n\t// Adds a new `Handler` to the map, given its name and constructor function.\r\n\taddHandler: function (name, HandlerClass) {\r\n\t\tif (!HandlerClass) { return this; }\r\n\r\n\t\tvar handler = this[name] = new HandlerClass(this);\r\n\r\n\t\tthis._handlers.push(handler);\r\n\r\n\t\tif (this.options[name]) {\r\n\t\t\thandler.enable();\r\n\t\t}\r\n\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method remove(): this\r\n\t// Destroys the map and clears all related event listeners.\r\n\tremove: function () {\r\n\r\n\t\tthis._initEvents(true);\r\n\r\n\t\tif (this._containerId !== this._container._leaflet_id) {\r\n\t\t\tthrow new Error('Map container is being reused by another instance');\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\t// throws error in IE6-8\r\n\t\t\tdelete this._container._leaflet_id;\r\n\t\t\tdelete this._containerId;\r\n\t\t} catch (e) {\r\n\t\t\t/*eslint-disable */\r\n\t\t\tthis._container._leaflet_id = undefined;\r\n\t\t\t/* eslint-enable */\r\n\t\t\tthis._containerId = undefined;\r\n\t\t}\r\n\r\n\t\tif (this._locationWatchId !== undefined) {\r\n\t\t\tthis.stopLocate();\r\n\t\t}\r\n\r\n\t\tthis._stop();\r\n\r\n\t\tremove(this._mapPane);\r\n\r\n\t\tif (this._clearControlPos) {\r\n\t\t\tthis._clearControlPos();\r\n\t\t}\r\n\t\tif (this._resizeRequest) {\r\n\t\t\tcancelAnimFrame(this._resizeRequest);\r\n\t\t\tthis._resizeRequest = null;\r\n\t\t}\r\n\r\n\t\tthis._clearHandlers();\r\n\r\n\t\tif (this._loaded) {\r\n\t\t\t// @section Map state change events\r\n\t\t\t// @event unload: Event\r\n\t\t\t// Fired when the map is destroyed with [remove](#map-remove) method.\r\n\t\t\tthis.fire('unload');\r\n\t\t}\r\n\r\n\t\tvar i;\r\n\t\tfor (i in this._layers) {\r\n\t\t\tthis._layers[i].remove();\r\n\t\t}\r\n\t\tfor (i in this._panes) {\r\n\t\t\tremove(this._panes[i]);\r\n\t\t}\r\n\r\n\t\tthis._layers = [];\r\n\t\tthis._panes = [];\r\n\t\tdelete this._mapPane;\r\n\t\tdelete this._renderer;\r\n\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @section Other Methods\r\n\t// @method createPane(name: String, container?: HTMLElement): HTMLElement\r\n\t// Creates a new [map pane](#map-pane) with the given name if it doesn't exist already,\r\n\t// then returns it. The pane is created as a child of `container`, or\r\n\t// as a child of the main map pane if not set.\r\n\tcreatePane: function (name, container) {\r\n\t\tvar className = 'leaflet-pane' + (name ? ' leaflet-' + name.replace('Pane', '') + '-pane' : ''),\r\n\t\t pane = create$1('div', className, container || this._mapPane);\r\n\r\n\t\tif (name) {\r\n\t\t\tthis._panes[name] = pane;\r\n\t\t}\r\n\t\treturn pane;\r\n\t},\r\n\r\n\t// @section Methods for Getting Map State\r\n\r\n\t// @method getCenter(): LatLng\r\n\t// Returns the geographical center of the map view\r\n\tgetCenter: function () {\r\n\t\tthis._checkIfLoaded();\r\n\r\n\t\tif (this._lastCenter && !this._moved()) {\r\n\t\t\treturn this._lastCenter;\r\n\t\t}\r\n\t\treturn this.layerPointToLatLng(this._getCenterLayerPoint());\r\n\t},\r\n\r\n\t// @method getZoom(): Number\r\n\t// Returns the current zoom level of the map view\r\n\tgetZoom: function () {\r\n\t\treturn this._zoom;\r\n\t},\r\n\r\n\t// @method getBounds(): LatLngBounds\r\n\t// Returns the geographical bounds visible in the current map view\r\n\tgetBounds: function () {\r\n\t\tvar bounds = this.getPixelBounds(),\r\n\t\t sw = this.unproject(bounds.getBottomLeft()),\r\n\t\t ne = this.unproject(bounds.getTopRight());\r\n\r\n\t\treturn new LatLngBounds(sw, ne);\r\n\t},\r\n\r\n\t// @method getMinZoom(): Number\r\n\t// Returns the minimum zoom level of the map (if set in the `minZoom` option of the map or of any layers), or `0` by default.\r\n\tgetMinZoom: function () {\r\n\t\treturn this.options.minZoom === undefined ? this._layersMinZoom || 0 : this.options.minZoom;\r\n\t},\r\n\r\n\t// @method getMaxZoom(): Number\r\n\t// Returns the maximum zoom level of the map (if set in the `maxZoom` option of the map or of any layers).\r\n\tgetMaxZoom: function () {\r\n\t\treturn this.options.maxZoom === undefined ?\r\n\t\t\t(this._layersMaxZoom === undefined ? Infinity : this._layersMaxZoom) :\r\n\t\t\tthis.options.maxZoom;\r\n\t},\r\n\r\n\t// @method getBoundsZoom(bounds: LatLngBounds, inside?: Boolean, padding?: Point): Number\r\n\t// Returns the maximum zoom level on which the given bounds fit to the map\r\n\t// view in its entirety. If `inside` (optional) is set to `true`, the method\r\n\t// instead returns the minimum zoom level on which the map view fits into\r\n\t// the given bounds in its entirety.\r\n\tgetBoundsZoom: function (bounds, inside, padding) { // (LatLngBounds[, Boolean, Point]) -> Number\r\n\t\tbounds = toLatLngBounds(bounds);\r\n\t\tpadding = toPoint(padding || [0, 0]);\r\n\r\n\t\tvar zoom = this.getZoom() || 0,\r\n\t\t min = this.getMinZoom(),\r\n\t\t max = this.getMaxZoom(),\r\n\t\t nw = bounds.getNorthWest(),\r\n\t\t se = bounds.getSouthEast(),\r\n\t\t size = this.getSize().subtract(padding),\r\n\t\t boundsSize = toBounds(this.project(se, zoom), this.project(nw, zoom)).getSize(),\r\n\t\t snap = any3d ? this.options.zoomSnap : 1,\r\n\t\t scalex = size.x / boundsSize.x,\r\n\t\t scaley = size.y / boundsSize.y,\r\n\t\t scale = inside ? Math.max(scalex, scaley) : Math.min(scalex, scaley);\r\n\r\n\t\tzoom = this.getScaleZoom(scale, zoom);\r\n\r\n\t\tif (snap) {\r\n\t\t\tzoom = Math.round(zoom / (snap / 100)) * (snap / 100); // don't jump if within 1% of a snap level\r\n\t\t\tzoom = inside ? Math.ceil(zoom / snap) * snap : Math.floor(zoom / snap) * snap;\r\n\t\t}\r\n\r\n\t\treturn Math.max(min, Math.min(max, zoom));\r\n\t},\r\n\r\n\t// @method getSize(): Point\r\n\t// Returns the current size of the map container (in pixels).\r\n\tgetSize: function () {\r\n\t\tif (!this._size || this._sizeChanged) {\r\n\t\t\tthis._size = new Point(\r\n\t\t\t\tthis._container.clientWidth || 0,\r\n\t\t\t\tthis._container.clientHeight || 0);\r\n\r\n\t\t\tthis._sizeChanged = false;\r\n\t\t}\r\n\t\treturn this._size.clone();\r\n\t},\r\n\r\n\t// @method getPixelBounds(): Bounds\r\n\t// Returns the bounds of the current map view in projected pixel\r\n\t// coordinates (sometimes useful in layer and overlay implementations).\r\n\tgetPixelBounds: function (center, zoom) {\r\n\t\tvar topLeftPoint = this._getTopLeftPoint(center, zoom);\r\n\t\treturn new Bounds(topLeftPoint, topLeftPoint.add(this.getSize()));\r\n\t},\r\n\r\n\t// TODO: Check semantics - isn't the pixel origin the 0,0 coord relative to\r\n\t// the map pane? \"left point of the map layer\" can be confusing, specially\r\n\t// since there can be negative offsets.\r\n\t// @method getPixelOrigin(): Point\r\n\t// Returns the projected pixel coordinates of the top left point of\r\n\t// the map layer (useful in custom layer and overlay implementations).\r\n\tgetPixelOrigin: function () {\r\n\t\tthis._checkIfLoaded();\r\n\t\treturn this._pixelOrigin;\r\n\t},\r\n\r\n\t// @method getPixelWorldBounds(zoom?: Number): Bounds\r\n\t// Returns the world's bounds in pixel coordinates for zoom level `zoom`.\r\n\t// If `zoom` is omitted, the map's current zoom level is used.\r\n\tgetPixelWorldBounds: function (zoom) {\r\n\t\treturn this.options.crs.getProjectedBounds(zoom === undefined ? this.getZoom() : zoom);\r\n\t},\r\n\r\n\t// @section Other Methods\r\n\r\n\t// @method getPane(pane: String|HTMLElement): HTMLElement\r\n\t// Returns a [map pane](#map-pane), given its name or its HTML element (its identity).\r\n\tgetPane: function (pane) {\r\n\t\treturn typeof pane === 'string' ? this._panes[pane] : pane;\r\n\t},\r\n\r\n\t// @method getPanes(): Object\r\n\t// Returns a plain object containing the names of all [panes](#map-pane) as keys and\r\n\t// the panes as values.\r\n\tgetPanes: function () {\r\n\t\treturn this._panes;\r\n\t},\r\n\r\n\t// @method getContainer: HTMLElement\r\n\t// Returns the HTML element that contains the map.\r\n\tgetContainer: function () {\r\n\t\treturn this._container;\r\n\t},\r\n\r\n\r\n\t// @section Conversion Methods\r\n\r\n\t// @method getZoomScale(toZoom: Number, fromZoom: Number): Number\r\n\t// Returns the scale factor to be applied to a map transition from zoom level\r\n\t// `fromZoom` to `toZoom`. Used internally to help with zoom animations.\r\n\tgetZoomScale: function (toZoom, fromZoom) {\r\n\t\t// TODO replace with universal implementation after refactoring projections\r\n\t\tvar crs = this.options.crs;\r\n\t\tfromZoom = fromZoom === undefined ? this._zoom : fromZoom;\r\n\t\treturn crs.scale(toZoom) / crs.scale(fromZoom);\r\n\t},\r\n\r\n\t// @method getScaleZoom(scale: Number, fromZoom: Number): Number\r\n\t// Returns the zoom level that the map would end up at, if it is at `fromZoom`\r\n\t// level and everything is scaled by a factor of `scale`. Inverse of\r\n\t// [`getZoomScale`](#map-getZoomScale).\r\n\tgetScaleZoom: function (scale, fromZoom) {\r\n\t\tvar crs = this.options.crs;\r\n\t\tfromZoom = fromZoom === undefined ? this._zoom : fromZoom;\r\n\t\tvar zoom = crs.zoom(scale * crs.scale(fromZoom));\r\n\t\treturn isNaN(zoom) ? Infinity : zoom;\r\n\t},\r\n\r\n\t// @method project(latlng: LatLng, zoom: Number): Point\r\n\t// Projects a geographical coordinate `LatLng` according to the projection\r\n\t// of the map's CRS, then scales it according to `zoom` and the CRS's\r\n\t// `Transformation`. The result is pixel coordinate relative to\r\n\t// the CRS origin.\r\n\tproject: function (latlng, zoom) {\r\n\t\tzoom = zoom === undefined ? this._zoom : zoom;\r\n\t\treturn this.options.crs.latLngToPoint(toLatLng(latlng), zoom);\r\n\t},\r\n\r\n\t// @method unproject(point: Point, zoom: Number): LatLng\r\n\t// Inverse of [`project`](#map-project).\r\n\tunproject: function (point, zoom) {\r\n\t\tzoom = zoom === undefined ? this._zoom : zoom;\r\n\t\treturn this.options.crs.pointToLatLng(toPoint(point), zoom);\r\n\t},\r\n\r\n\t// @method layerPointToLatLng(point: Point): LatLng\r\n\t// Given a pixel coordinate relative to the [origin pixel](#map-getpixelorigin),\r\n\t// returns the corresponding geographical coordinate (for the current zoom level).\r\n\tlayerPointToLatLng: function (point) {\r\n\t\tvar projectedPoint = toPoint(point).add(this.getPixelOrigin());\r\n\t\treturn this.unproject(projectedPoint);\r\n\t},\r\n\r\n\t// @method latLngToLayerPoint(latlng: LatLng): Point\r\n\t// Given a geographical coordinate, returns the corresponding pixel coordinate\r\n\t// relative to the [origin pixel](#map-getpixelorigin).\r\n\tlatLngToLayerPoint: function (latlng) {\r\n\t\tvar projectedPoint = this.project(toLatLng(latlng))._round();\r\n\t\treturn projectedPoint._subtract(this.getPixelOrigin());\r\n\t},\r\n\r\n\t// @method wrapLatLng(latlng: LatLng): LatLng\r\n\t// Returns a `LatLng` where `lat` and `lng` has been wrapped according to the\r\n\t// map's CRS's `wrapLat` and `wrapLng` properties, if they are outside the\r\n\t// CRS's bounds.\r\n\t// By default this means longitude is wrapped around the dateline so its\r\n\t// value is between -180 and +180 degrees.\r\n\twrapLatLng: function (latlng) {\r\n\t\treturn this.options.crs.wrapLatLng(toLatLng(latlng));\r\n\t},\r\n\r\n\t// @method wrapLatLngBounds(bounds: LatLngBounds): LatLngBounds\r\n\t// Returns a `LatLngBounds` with the same size as the given one, ensuring that\r\n\t// its center is within the CRS's bounds.\r\n\t// By default this means the center longitude is wrapped around the dateline so its\r\n\t// value is between -180 and +180 degrees, and the majority of the bounds\r\n\t// overlaps the CRS's bounds.\r\n\twrapLatLngBounds: function (latlng) {\r\n\t\treturn this.options.crs.wrapLatLngBounds(toLatLngBounds(latlng));\r\n\t},\r\n\r\n\t// @method distance(latlng1: LatLng, latlng2: LatLng): Number\r\n\t// Returns the distance between two geographical coordinates according to\r\n\t// the map's CRS. By default this measures distance in meters.\r\n\tdistance: function (latlng1, latlng2) {\r\n\t\treturn this.options.crs.distance(toLatLng(latlng1), toLatLng(latlng2));\r\n\t},\r\n\r\n\t// @method containerPointToLayerPoint(point: Point): Point\r\n\t// Given a pixel coordinate relative to the map container, returns the corresponding\r\n\t// pixel coordinate relative to the [origin pixel](#map-getpixelorigin).\r\n\tcontainerPointToLayerPoint: function (point) { // (Point)\r\n\t\treturn toPoint(point).subtract(this._getMapPanePos());\r\n\t},\r\n\r\n\t// @method layerPointToContainerPoint(point: Point): Point\r\n\t// Given a pixel coordinate relative to the [origin pixel](#map-getpixelorigin),\r\n\t// returns the corresponding pixel coordinate relative to the map container.\r\n\tlayerPointToContainerPoint: function (point) { // (Point)\r\n\t\treturn toPoint(point).add(this._getMapPanePos());\r\n\t},\r\n\r\n\t// @method containerPointToLatLng(point: Point): LatLng\r\n\t// Given a pixel coordinate relative to the map container, returns\r\n\t// the corresponding geographical coordinate (for the current zoom level).\r\n\tcontainerPointToLatLng: function (point) {\r\n\t\tvar layerPoint = this.containerPointToLayerPoint(toPoint(point));\r\n\t\treturn this.layerPointToLatLng(layerPoint);\r\n\t},\r\n\r\n\t// @method latLngToContainerPoint(latlng: LatLng): Point\r\n\t// Given a geographical coordinate, returns the corresponding pixel coordinate\r\n\t// relative to the map container.\r\n\tlatLngToContainerPoint: function (latlng) {\r\n\t\treturn this.layerPointToContainerPoint(this.latLngToLayerPoint(toLatLng(latlng)));\r\n\t},\r\n\r\n\t// @method mouseEventToContainerPoint(ev: MouseEvent): Point\r\n\t// Given a MouseEvent object, returns the pixel coordinate relative to the\r\n\t// map container where the event took place.\r\n\tmouseEventToContainerPoint: function (e) {\r\n\t\treturn getMousePosition(e, this._container);\r\n\t},\r\n\r\n\t// @method mouseEventToLayerPoint(ev: MouseEvent): Point\r\n\t// Given a MouseEvent object, returns the pixel coordinate relative to\r\n\t// the [origin pixel](#map-getpixelorigin) where the event took place.\r\n\tmouseEventToLayerPoint: function (e) {\r\n\t\treturn this.containerPointToLayerPoint(this.mouseEventToContainerPoint(e));\r\n\t},\r\n\r\n\t// @method mouseEventToLatLng(ev: MouseEvent): LatLng\r\n\t// Given a MouseEvent object, returns geographical coordinate where the\r\n\t// event took place.\r\n\tmouseEventToLatLng: function (e) { // (MouseEvent)\r\n\t\treturn this.layerPointToLatLng(this.mouseEventToLayerPoint(e));\r\n\t},\r\n\r\n\r\n\t// map initialization methods\r\n\r\n\t_initContainer: function (id) {\r\n\t\tvar container = this._container = get(id);\r\n\r\n\t\tif (!container) {\r\n\t\t\tthrow new Error('Map container not found.');\r\n\t\t} else if (container._leaflet_id) {\r\n\t\t\tthrow new Error('Map container is already initialized.');\r\n\t\t}\r\n\r\n\t\ton(container, 'scroll', this._onScroll, this);\r\n\t\tthis._containerId = stamp(container);\r\n\t},\r\n\r\n\t_initLayout: function () {\r\n\t\tvar container = this._container;\r\n\r\n\t\tthis._fadeAnimated = this.options.fadeAnimation && any3d;\r\n\r\n\t\taddClass(container, 'leaflet-container' +\r\n\t\t\t(touch ? ' leaflet-touch' : '') +\r\n\t\t\t(retina ? ' leaflet-retina' : '') +\r\n\t\t\t(ielt9 ? ' leaflet-oldie' : '') +\r\n\t\t\t(safari ? ' leaflet-safari' : '') +\r\n\t\t\t(this._fadeAnimated ? ' leaflet-fade-anim' : ''));\r\n\r\n\t\tvar position = getStyle(container, 'position');\r\n\r\n\t\tif (position !== 'absolute' && position !== 'relative' && position !== 'fixed') {\r\n\t\t\tcontainer.style.position = 'relative';\r\n\t\t}\r\n\r\n\t\tthis._initPanes();\r\n\r\n\t\tif (this._initControlPos) {\r\n\t\t\tthis._initControlPos();\r\n\t\t}\r\n\t},\r\n\r\n\t_initPanes: function () {\r\n\t\tvar panes = this._panes = {};\r\n\t\tthis._paneRenderers = {};\r\n\r\n\t\t// @section\r\n\t\t//\r\n\t\t// Panes are DOM elements used to control the ordering of layers on the map. You\r\n\t\t// can access panes with [`map.getPane`](#map-getpane) or\r\n\t\t// [`map.getPanes`](#map-getpanes) methods. New panes can be created with the\r\n\t\t// [`map.createPane`](#map-createpane) method.\r\n\t\t//\r\n\t\t// Every map has the following default panes that differ only in zIndex.\r\n\t\t//\r\n\t\t// @pane mapPane: HTMLElement = 'auto'\r\n\t\t// Pane that contains all other map panes\r\n\r\n\t\tthis._mapPane = this.createPane('mapPane', this._container);\r\n\t\tsetPosition(this._mapPane, new Point(0, 0));\r\n\r\n\t\t// @pane tilePane: HTMLElement = 200\r\n\t\t// Pane for `GridLayer`s and `TileLayer`s\r\n\t\tthis.createPane('tilePane');\r\n\t\t// @pane overlayPane: HTMLElement = 400\r\n\t\t// Pane for vectors (`Path`s, like `Polyline`s and `Polygon`s), `ImageOverlay`s and `VideoOverlay`s\r\n\t\tthis.createPane('shadowPane');\r\n\t\t// @pane shadowPane: HTMLElement = 500\r\n\t\t// Pane for overlay shadows (e.g. `Marker` shadows)\r\n\t\tthis.createPane('overlayPane');\r\n\t\t// @pane markerPane: HTMLElement = 600\r\n\t\t// Pane for `Icon`s of `Marker`s\r\n\t\tthis.createPane('markerPane');\r\n\t\t// @pane tooltipPane: HTMLElement = 650\r\n\t\t// Pane for `Tooltip`s.\r\n\t\tthis.createPane('tooltipPane');\r\n\t\t// @pane popupPane: HTMLElement = 700\r\n\t\t// Pane for `Popup`s.\r\n\t\tthis.createPane('popupPane');\r\n\r\n\t\tif (!this.options.markerZoomAnimation) {\r\n\t\t\taddClass(panes.markerPane, 'leaflet-zoom-hide');\r\n\t\t\taddClass(panes.shadowPane, 'leaflet-zoom-hide');\r\n\t\t}\r\n\t},\r\n\r\n\r\n\t// private methods that modify map state\r\n\r\n\t// @section Map state change events\r\n\t_resetView: function (center, zoom) {\r\n\t\tsetPosition(this._mapPane, new Point(0, 0));\r\n\r\n\t\tvar loading = !this._loaded;\r\n\t\tthis._loaded = true;\r\n\t\tzoom = this._limitZoom(zoom);\r\n\r\n\t\tthis.fire('viewprereset');\r\n\r\n\t\tvar zoomChanged = this._zoom !== zoom;\r\n\t\tthis\r\n\t\t\t._moveStart(zoomChanged, false)\r\n\t\t\t._move(center, zoom)\r\n\t\t\t._moveEnd(zoomChanged);\r\n\r\n\t\t// @event viewreset: Event\r\n\t\t// Fired when the map needs to redraw its content (this usually happens\r\n\t\t// on map zoom or load). Very useful for creating custom overlays.\r\n\t\tthis.fire('viewreset');\r\n\r\n\t\t// @event load: Event\r\n\t\t// Fired when the map is initialized (when its center and zoom are set\r\n\t\t// for the first time).\r\n\t\tif (loading) {\r\n\t\t\tthis.fire('load');\r\n\t\t}\r\n\t},\r\n\r\n\t_moveStart: function (zoomChanged, noMoveStart) {\r\n\t\t// @event zoomstart: Event\r\n\t\t// Fired when the map zoom is about to change (e.g. before zoom animation).\r\n\t\t// @event movestart: Event\r\n\t\t// Fired when the view of the map starts changing (e.g. user starts dragging the map).\r\n\t\tif (zoomChanged) {\r\n\t\t\tthis.fire('zoomstart');\r\n\t\t}\r\n\t\tif (!noMoveStart) {\r\n\t\t\tthis.fire('movestart');\r\n\t\t}\r\n\t\treturn this;\r\n\t},\r\n\r\n\t_move: function (center, zoom, data) {\r\n\t\tif (zoom === undefined) {\r\n\t\t\tzoom = this._zoom;\r\n\t\t}\r\n\t\tvar zoomChanged = this._zoom !== zoom;\r\n\r\n\t\tthis._zoom = zoom;\r\n\t\tthis._lastCenter = center;\r\n\t\tthis._pixelOrigin = this._getNewPixelOrigin(center);\r\n\r\n\t\t// @event zoom: Event\r\n\t\t// Fired repeatedly during any change in zoom level, including zoom\r\n\t\t// and fly animations.\r\n\t\tif (zoomChanged || (data && data.pinch)) {\t// Always fire 'zoom' if pinching because #3530\r\n\t\t\tthis.fire('zoom', data);\r\n\t\t}\r\n\r\n\t\t// @event move: Event\r\n\t\t// Fired repeatedly during any movement of the map, including pan and\r\n\t\t// fly animations.\r\n\t\treturn this.fire('move', data);\r\n\t},\r\n\r\n\t_moveEnd: function (zoomChanged) {\r\n\t\t// @event zoomend: Event\r\n\t\t// Fired when the map has changed, after any animations.\r\n\t\tif (zoomChanged) {\r\n\t\t\tthis.fire('zoomend');\r\n\t\t}\r\n\r\n\t\t// @event moveend: Event\r\n\t\t// Fired when the center of the map stops changing (e.g. user stopped\r\n\t\t// dragging the map).\r\n\t\treturn this.fire('moveend');\r\n\t},\r\n\r\n\t_stop: function () {\r\n\t\tcancelAnimFrame(this._flyToFrame);\r\n\t\tif (this._panAnim) {\r\n\t\t\tthis._panAnim.stop();\r\n\t\t}\r\n\t\treturn this;\r\n\t},\r\n\r\n\t_rawPanBy: function (offset) {\r\n\t\tsetPosition(this._mapPane, this._getMapPanePos().subtract(offset));\r\n\t},\r\n\r\n\t_getZoomSpan: function () {\r\n\t\treturn this.getMaxZoom() - this.getMinZoom();\r\n\t},\r\n\r\n\t_panInsideMaxBounds: function () {\r\n\t\tif (!this._enforcingBounds) {\r\n\t\t\tthis.panInsideBounds(this.options.maxBounds);\r\n\t\t}\r\n\t},\r\n\r\n\t_checkIfLoaded: function () {\r\n\t\tif (!this._loaded) {\r\n\t\t\tthrow new Error('Set map center and zoom first.');\r\n\t\t}\r\n\t},\r\n\r\n\t// DOM event handling\r\n\r\n\t// @section Interaction events\r\n\t_initEvents: function (remove$$1) {\r\n\t\tthis._targets = {};\r\n\t\tthis._targets[stamp(this._container)] = this;\r\n\r\n\t\tvar onOff = remove$$1 ? off : on;\r\n\r\n\t\t// @event click: MouseEvent\r\n\t\t// Fired when the user clicks (or taps) the map.\r\n\t\t// @event dblclick: MouseEvent\r\n\t\t// Fired when the user double-clicks (or double-taps) the map.\r\n\t\t// @event mousedown: MouseEvent\r\n\t\t// Fired when the user pushes the mouse button on the map.\r\n\t\t// @event mouseup: MouseEvent\r\n\t\t// Fired when the user releases the mouse button on the map.\r\n\t\t// @event mouseover: MouseEvent\r\n\t\t// Fired when the mouse enters the map.\r\n\t\t// @event mouseout: MouseEvent\r\n\t\t// Fired when the mouse leaves the map.\r\n\t\t// @event mousemove: MouseEvent\r\n\t\t// Fired while the mouse moves over the map.\r\n\t\t// @event contextmenu: MouseEvent\r\n\t\t// Fired when the user pushes the right mouse button on the map, prevents\r\n\t\t// default browser context menu from showing if there are listeners on\r\n\t\t// this event. Also fired on mobile when the user holds a single touch\r\n\t\t// for a second (also called long press).\r\n\t\t// @event keypress: KeyboardEvent\r\n\t\t// Fired when the user presses a key from the keyboard while the map is focused.\r\n\t\tonOff(this._container, 'click dblclick mousedown mouseup ' +\r\n\t\t\t'mouseover mouseout mousemove contextmenu keypress', this._handleDOMEvent, this);\r\n\r\n\t\tif (this.options.trackResize) {\r\n\t\t\tonOff(window, 'resize', this._onResize, this);\r\n\t\t}\r\n\r\n\t\tif (any3d && this.options.transform3DLimit) {\r\n\t\t\t(remove$$1 ? this.off : this.on).call(this, 'moveend', this._onMoveEnd);\r\n\t\t}\r\n\t},\r\n\r\n\t_onResize: function () {\r\n\t\tcancelAnimFrame(this._resizeRequest);\r\n\t\tthis._resizeRequest = requestAnimFrame(\r\n\t\t function () { this.invalidateSize({debounceMoveend: true}); }, this);\r\n\t},\r\n\r\n\t_onScroll: function () {\r\n\t\tthis._container.scrollTop = 0;\r\n\t\tthis._container.scrollLeft = 0;\r\n\t},\r\n\r\n\t_onMoveEnd: function () {\r\n\t\tvar pos = this._getMapPanePos();\r\n\t\tif (Math.max(Math.abs(pos.x), Math.abs(pos.y)) >= this.options.transform3DLimit) {\r\n\t\t\t// https://bugzilla.mozilla.org/show_bug.cgi?id=1203873 but Webkit also have\r\n\t\t\t// a pixel offset on very high values, see: http://jsfiddle.net/dg6r5hhb/\r\n\t\t\tthis._resetView(this.getCenter(), this.getZoom());\r\n\t\t}\r\n\t},\r\n\r\n\t_findEventTargets: function (e, type) {\r\n\t\tvar targets = [],\r\n\t\t target,\r\n\t\t isHover = type === 'mouseout' || type === 'mouseover',\r\n\t\t src = e.target || e.srcElement,\r\n\t\t dragging = false;\r\n\r\n\t\twhile (src) {\r\n\t\t\ttarget = this._targets[stamp(src)];\r\n\t\t\tif (target && (type === 'click' || type === 'preclick') && !e._simulated && this._draggableMoved(target)) {\r\n\t\t\t\t// Prevent firing click after you just dragged an object.\r\n\t\t\t\tdragging = true;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tif (target && target.listens(type, true)) {\r\n\t\t\t\tif (isHover && !isExternalTarget(src, e)) { break; }\r\n\t\t\t\ttargets.push(target);\r\n\t\t\t\tif (isHover) { break; }\r\n\t\t\t}\r\n\t\t\tif (src === this._container) { break; }\r\n\t\t\tsrc = src.parentNode;\r\n\t\t}\r\n\t\tif (!targets.length && !dragging && !isHover && isExternalTarget(src, e)) {\r\n\t\t\ttargets = [this];\r\n\t\t}\r\n\t\treturn targets;\r\n\t},\r\n\r\n\t_handleDOMEvent: function (e) {\r\n\t\tif (!this._loaded || skipped(e)) { return; }\r\n\r\n\t\tvar type = e.type;\r\n\r\n\t\tif (type === 'mousedown' || type === 'keypress') {\r\n\t\t\t// prevents outline when clicking on keyboard-focusable element\r\n\t\t\tpreventOutline(e.target || e.srcElement);\r\n\t\t}\r\n\r\n\t\tthis._fireDOMEvent(e, type);\r\n\t},\r\n\r\n\t_mouseEvents: ['click', 'dblclick', 'mouseover', 'mouseout', 'contextmenu'],\r\n\r\n\t_fireDOMEvent: function (e, type, targets) {\r\n\r\n\t\tif (e.type === 'click') {\r\n\t\t\t// Fire a synthetic 'preclick' event which propagates up (mainly for closing popups).\r\n\t\t\t// @event preclick: MouseEvent\r\n\t\t\t// Fired before mouse click on the map (sometimes useful when you\r\n\t\t\t// want something to happen on click before any existing click\r\n\t\t\t// handlers start running).\r\n\t\t\tvar synth = extend({}, e);\r\n\t\t\tsynth.type = 'preclick';\r\n\t\t\tthis._fireDOMEvent(synth, synth.type, targets);\r\n\t\t}\r\n\r\n\t\tif (e._stopped) { return; }\r\n\r\n\t\t// Find the layer the event is propagating from and its parents.\r\n\t\ttargets = (targets || []).concat(this._findEventTargets(e, type));\r\n\r\n\t\tif (!targets.length) { return; }\r\n\r\n\t\tvar target = targets[0];\r\n\t\tif (type === 'contextmenu' && target.listens(type, true)) {\r\n\t\t\tpreventDefault(e);\r\n\t\t}\r\n\r\n\t\tvar data = {\r\n\t\t\toriginalEvent: e\r\n\t\t};\r\n\r\n\t\tif (e.type !== 'keypress') {\r\n\t\t\tvar isMarker = target.getLatLng && (!target._radius || target._radius <= 10);\r\n\t\t\tdata.containerPoint = isMarker ?\r\n\t\t\t\tthis.latLngToContainerPoint(target.getLatLng()) : this.mouseEventToContainerPoint(e);\r\n\t\t\tdata.layerPoint = this.containerPointToLayerPoint(data.containerPoint);\r\n\t\t\tdata.latlng = isMarker ? target.getLatLng() : this.layerPointToLatLng(data.layerPoint);\r\n\t\t}\r\n\r\n\t\tfor (var i = 0; i < targets.length; i++) {\r\n\t\t\ttargets[i].fire(type, data, true);\r\n\t\t\tif (data.originalEvent._stopped ||\r\n\t\t\t\t(targets[i].options.bubblingMouseEvents === false && indexOf(this._mouseEvents, type) !== -1)) { return; }\r\n\t\t}\r\n\t},\r\n\r\n\t_draggableMoved: function (obj) {\r\n\t\tobj = obj.dragging && obj.dragging.enabled() ? obj : this;\r\n\t\treturn (obj.dragging && obj.dragging.moved()) || (this.boxZoom && this.boxZoom.moved());\r\n\t},\r\n\r\n\t_clearHandlers: function () {\r\n\t\tfor (var i = 0, len = this._handlers.length; i < len; i++) {\r\n\t\t\tthis._handlers[i].disable();\r\n\t\t}\r\n\t},\r\n\r\n\t// @section Other Methods\r\n\r\n\t// @method whenReady(fn: Function, context?: Object): this\r\n\t// Runs the given function `fn` when the map gets initialized with\r\n\t// a view (center and zoom) and at least one layer, or immediately\r\n\t// if it's already initialized, optionally passing a function context.\r\n\twhenReady: function (callback, context) {\r\n\t\tif (this._loaded) {\r\n\t\t\tcallback.call(context || this, {target: this});\r\n\t\t} else {\r\n\t\t\tthis.on('load', callback, context);\r\n\t\t}\r\n\t\treturn this;\r\n\t},\r\n\r\n\r\n\t// private methods for getting map state\r\n\r\n\t_getMapPanePos: function () {\r\n\t\treturn getPosition(this._mapPane) || new Point(0, 0);\r\n\t},\r\n\r\n\t_moved: function () {\r\n\t\tvar pos = this._getMapPanePos();\r\n\t\treturn pos && !pos.equals([0, 0]);\r\n\t},\r\n\r\n\t_getTopLeftPoint: function (center, zoom) {\r\n\t\tvar pixelOrigin = center && zoom !== undefined ?\r\n\t\t\tthis._getNewPixelOrigin(center, zoom) :\r\n\t\t\tthis.getPixelOrigin();\r\n\t\treturn pixelOrigin.subtract(this._getMapPanePos());\r\n\t},\r\n\r\n\t_getNewPixelOrigin: function (center, zoom) {\r\n\t\tvar viewHalf = this.getSize()._divideBy(2);\r\n\t\treturn this.project(center, zoom)._subtract(viewHalf)._add(this._getMapPanePos())._round();\r\n\t},\r\n\r\n\t_latLngToNewLayerPoint: function (latlng, zoom, center) {\r\n\t\tvar topLeft = this._getNewPixelOrigin(center, zoom);\r\n\t\treturn this.project(latlng, zoom)._subtract(topLeft);\r\n\t},\r\n\r\n\t_latLngBoundsToNewLayerBounds: function (latLngBounds, zoom, center) {\r\n\t\tvar topLeft = this._getNewPixelOrigin(center, zoom);\r\n\t\treturn toBounds([\r\n\t\t\tthis.project(latLngBounds.getSouthWest(), zoom)._subtract(topLeft),\r\n\t\t\tthis.project(latLngBounds.getNorthWest(), zoom)._subtract(topLeft),\r\n\t\t\tthis.project(latLngBounds.getSouthEast(), zoom)._subtract(topLeft),\r\n\t\t\tthis.project(latLngBounds.getNorthEast(), zoom)._subtract(topLeft)\r\n\t\t]);\r\n\t},\r\n\r\n\t// layer point of the current center\r\n\t_getCenterLayerPoint: function () {\r\n\t\treturn this.containerPointToLayerPoint(this.getSize()._divideBy(2));\r\n\t},\r\n\r\n\t// offset of the specified place to the current center in pixels\r\n\t_getCenterOffset: function (latlng) {\r\n\t\treturn this.latLngToLayerPoint(latlng).subtract(this._getCenterLayerPoint());\r\n\t},\r\n\r\n\t// adjust center for view to get inside bounds\r\n\t_limitCenter: function (center, zoom, bounds) {\r\n\r\n\t\tif (!bounds) { return center; }\r\n\r\n\t\tvar centerPoint = this.project(center, zoom),\r\n\t\t viewHalf = this.getSize().divideBy(2),\r\n\t\t viewBounds = new Bounds(centerPoint.subtract(viewHalf), centerPoint.add(viewHalf)),\r\n\t\t offset = this._getBoundsOffset(viewBounds, bounds, zoom);\r\n\r\n\t\t// If offset is less than a pixel, ignore.\r\n\t\t// This prevents unstable projections from getting into\r\n\t\t// an infinite loop of tiny offsets.\r\n\t\tif (offset.round().equals([0, 0])) {\r\n\t\t\treturn center;\r\n\t\t}\r\n\r\n\t\treturn this.unproject(centerPoint.add(offset), zoom);\r\n\t},\r\n\r\n\t// adjust offset for view to get inside bounds\r\n\t_limitOffset: function (offset, bounds) {\r\n\t\tif (!bounds) { return offset; }\r\n\r\n\t\tvar viewBounds = this.getPixelBounds(),\r\n\t\t newBounds = new Bounds(viewBounds.min.add(offset), viewBounds.max.add(offset));\r\n\r\n\t\treturn offset.add(this._getBoundsOffset(newBounds, bounds));\r\n\t},\r\n\r\n\t// returns offset needed for pxBounds to get inside maxBounds at a specified zoom\r\n\t_getBoundsOffset: function (pxBounds, maxBounds, zoom) {\r\n\t\tvar projectedMaxBounds = toBounds(\r\n\t\t this.project(maxBounds.getNorthEast(), zoom),\r\n\t\t this.project(maxBounds.getSouthWest(), zoom)\r\n\t\t ),\r\n\t\t minOffset = projectedMaxBounds.min.subtract(pxBounds.min),\r\n\t\t maxOffset = projectedMaxBounds.max.subtract(pxBounds.max),\r\n\r\n\t\t dx = this._rebound(minOffset.x, -maxOffset.x),\r\n\t\t dy = this._rebound(minOffset.y, -maxOffset.y);\r\n\r\n\t\treturn new Point(dx, dy);\r\n\t},\r\n\r\n\t_rebound: function (left, right) {\r\n\t\treturn left + right > 0 ?\r\n\t\t\tMath.round(left - right) / 2 :\r\n\t\t\tMath.max(0, Math.ceil(left)) - Math.max(0, Math.floor(right));\r\n\t},\r\n\r\n\t_limitZoom: function (zoom) {\r\n\t\tvar min = this.getMinZoom(),\r\n\t\t max = this.getMaxZoom(),\r\n\t\t snap = any3d ? this.options.zoomSnap : 1;\r\n\t\tif (snap) {\r\n\t\t\tzoom = Math.round(zoom / snap) * snap;\r\n\t\t}\r\n\t\treturn Math.max(min, Math.min(max, zoom));\r\n\t},\r\n\r\n\t_onPanTransitionStep: function () {\r\n\t\tthis.fire('move');\r\n\t},\r\n\r\n\t_onPanTransitionEnd: function () {\r\n\t\tremoveClass(this._mapPane, 'leaflet-pan-anim');\r\n\t\tthis.fire('moveend');\r\n\t},\r\n\r\n\t_tryAnimatedPan: function (center, options) {\r\n\t\t// difference between the new and current centers in pixels\r\n\t\tvar offset = this._getCenterOffset(center)._trunc();\r\n\r\n\t\t// don't animate too far unless animate: true specified in options\r\n\t\tif ((options && options.animate) !== true && !this.getSize().contains(offset)) { return false; }\r\n\r\n\t\tthis.panBy(offset, options);\r\n\r\n\t\treturn true;\r\n\t},\r\n\r\n\t_createAnimProxy: function () {\r\n\r\n\t\tvar proxy = this._proxy = create$1('div', 'leaflet-proxy leaflet-zoom-animated');\r\n\t\tthis._panes.mapPane.appendChild(proxy);\r\n\r\n\t\tthis.on('zoomanim', function (e) {\r\n\t\t\tvar prop = TRANSFORM,\r\n\t\t\t transform = this._proxy.style[prop];\r\n\r\n\t\t\tsetTransform(this._proxy, this.project(e.center, e.zoom), this.getZoomScale(e.zoom, 1));\r\n\r\n\t\t\t// workaround for case when transform is the same and so transitionend event is not fired\r\n\t\t\tif (transform === this._proxy.style[prop] && this._animatingZoom) {\r\n\t\t\t\tthis._onZoomTransitionEnd();\r\n\t\t\t}\r\n\t\t}, this);\r\n\r\n\t\tthis.on('load moveend', function () {\r\n\t\t\tvar c = this.getCenter(),\r\n\t\t\t z = this.getZoom();\r\n\t\t\tsetTransform(this._proxy, this.project(c, z), this.getZoomScale(z, 1));\r\n\t\t}, this);\r\n\r\n\t\tthis._on('unload', this._destroyAnimProxy, this);\r\n\t},\r\n\r\n\t_destroyAnimProxy: function () {\r\n\t\tremove(this._proxy);\r\n\t\tdelete this._proxy;\r\n\t},\r\n\r\n\t_catchTransitionEnd: function (e) {\r\n\t\tif (this._animatingZoom && e.propertyName.indexOf('transform') >= 0) {\r\n\t\t\tthis._onZoomTransitionEnd();\r\n\t\t}\r\n\t},\r\n\r\n\t_nothingToAnimate: function () {\r\n\t\treturn !this._container.getElementsByClassName('leaflet-zoom-animated').length;\r\n\t},\r\n\r\n\t_tryAnimatedZoom: function (center, zoom, options) {\r\n\r\n\t\tif (this._animatingZoom) { return true; }\r\n\r\n\t\toptions = options || {};\r\n\r\n\t\t// don't animate if disabled, not supported or zoom difference is too large\r\n\t\tif (!this._zoomAnimated || options.animate === false || this._nothingToAnimate() ||\r\n\t\t Math.abs(zoom - this._zoom) > this.options.zoomAnimationThreshold) { return false; }\r\n\r\n\t\t// offset is the pixel coords of the zoom origin relative to the current center\r\n\t\tvar scale = this.getZoomScale(zoom),\r\n\t\t offset = this._getCenterOffset(center)._divideBy(1 - 1 / scale);\r\n\r\n\t\t// don't animate if the zoom origin isn't within one screen from the current center, unless forced\r\n\t\tif (options.animate !== true && !this.getSize().contains(offset)) { return false; }\r\n\r\n\t\trequestAnimFrame(function () {\r\n\t\t\tthis\r\n\t\t\t ._moveStart(true, false)\r\n\t\t\t ._animateZoom(center, zoom, true);\r\n\t\t}, this);\r\n\r\n\t\treturn true;\r\n\t},\r\n\r\n\t_animateZoom: function (center, zoom, startAnim, noUpdate) {\r\n\t\tif (!this._mapPane) { return; }\r\n\r\n\t\tif (startAnim) {\r\n\t\t\tthis._animatingZoom = true;\r\n\r\n\t\t\t// remember what center/zoom to set after animation\r\n\t\t\tthis._animateToCenter = center;\r\n\t\t\tthis._animateToZoom = zoom;\r\n\r\n\t\t\taddClass(this._mapPane, 'leaflet-zoom-anim');\r\n\t\t}\r\n\r\n\t\t// @event zoomanim: ZoomAnimEvent\r\n\t\t// Fired on every frame of a zoom animation\r\n\t\tthis.fire('zoomanim', {\r\n\t\t\tcenter: center,\r\n\t\t\tzoom: zoom,\r\n\t\t\tnoUpdate: noUpdate\r\n\t\t});\r\n\r\n\t\t// Work around webkit not firing 'transitionend', see https://github.com/Leaflet/Leaflet/issues/3689, 2693\r\n\t\tsetTimeout(bind(this._onZoomTransitionEnd, this), 250);\r\n\t},\r\n\r\n\t_onZoomTransitionEnd: function () {\r\n\t\tif (!this._animatingZoom) { return; }\r\n\r\n\t\tif (this._mapPane) {\r\n\t\t\tremoveClass(this._mapPane, 'leaflet-zoom-anim');\r\n\t\t}\r\n\r\n\t\tthis._animatingZoom = false;\r\n\r\n\t\tthis._move(this._animateToCenter, this._animateToZoom);\r\n\r\n\t\t// This anim frame should prevent an obscure iOS webkit tile loading race condition.\r\n\t\trequestAnimFrame(function () {\r\n\t\t\tthis._moveEnd(true);\r\n\t\t}, this);\r\n\t}\r\n});\r\n\r\n// @section\r\n\r\n// @factory L.map(id: String, options?: Map options)\r\n// Instantiates a map object given the DOM ID of a `<div>` element\r\n// and optionally an object literal with `Map options`.\r\n//\r\n// @alternative\r\n// @factory L.map(el: HTMLElement, options?: Map options)\r\n// Instantiates a map object given an instance of a `<div>` HTML element\r\n// and optionally an object literal with `Map options`.\r\nfunction createMap(id, options) {\r\n\treturn new Map(id, options);\r\n}\n\n/*\r\n * @class Control\r\n * @aka L.Control\r\n * @inherits Class\r\n *\r\n * L.Control is a base class for implementing map controls. Handles positioning.\r\n * All other controls extend from this class.\r\n */\r\n\r\nvar Control = Class.extend({\r\n\t// @section\r\n\t// @aka Control options\r\n\toptions: {\r\n\t\t// @option position: String = 'topright'\r\n\t\t// The position of the control (one of the map corners). Possible values are `'topleft'`,\r\n\t\t// `'topright'`, `'bottomleft'` or `'bottomright'`\r\n\t\tposition: 'topright'\r\n\t},\r\n\r\n\tinitialize: function (options) {\r\n\t\tsetOptions(this, options);\r\n\t},\r\n\r\n\t/* @section\r\n\t * Classes extending L.Control will inherit the following methods:\r\n\t *\r\n\t * @method getPosition: string\r\n\t * Returns the position of the control.\r\n\t */\r\n\tgetPosition: function () {\r\n\t\treturn this.options.position;\r\n\t},\r\n\r\n\t// @method setPosition(position: string): this\r\n\t// Sets the position of the control.\r\n\tsetPosition: function (position) {\r\n\t\tvar map = this._map;\r\n\r\n\t\tif (map) {\r\n\t\t\tmap.removeControl(this);\r\n\t\t}\r\n\r\n\t\tthis.options.position = position;\r\n\r\n\t\tif (map) {\r\n\t\t\tmap.addControl(this);\r\n\t\t}\r\n\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method getContainer: HTMLElement\r\n\t// Returns the HTMLElement that contains the control.\r\n\tgetContainer: function () {\r\n\t\treturn this._container;\r\n\t},\r\n\r\n\t// @method addTo(map: Map): this\r\n\t// Adds the control to the given map.\r\n\taddTo: function (map) {\r\n\t\tthis.remove();\r\n\t\tthis._map = map;\r\n\r\n\t\tvar container = this._container = this.onAdd(map),\r\n\t\t pos = this.getPosition(),\r\n\t\t corner = map._controlCorners[pos];\r\n\r\n\t\taddClass(container, 'leaflet-control');\r\n\r\n\t\tif (pos.indexOf('bottom') !== -1) {\r\n\t\t\tcorner.insertBefore(container, corner.firstChild);\r\n\t\t} else {\r\n\t\t\tcorner.appendChild(container);\r\n\t\t}\r\n\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method remove: this\r\n\t// Removes the control from the map it is currently active on.\r\n\tremove: function () {\r\n\t\tif (!this._map) {\r\n\t\t\treturn this;\r\n\t\t}\r\n\r\n\t\tremove(this._container);\r\n\r\n\t\tif (this.onRemove) {\r\n\t\t\tthis.onRemove(this._map);\r\n\t\t}\r\n\r\n\t\tthis._map = null;\r\n\r\n\t\treturn this;\r\n\t},\r\n\r\n\t_refocusOnMap: function (e) {\r\n\t\t// if map exists and event is not a keyboard event\r\n\t\tif (this._map && e && e.screenX > 0 && e.screenY > 0) {\r\n\t\t\tthis._map.getContainer().focus();\r\n\t\t}\r\n\t}\r\n});\r\n\r\nvar control = function (options) {\r\n\treturn new Control(options);\r\n};\r\n\r\n/* @section Extension methods\r\n * @uninheritable\r\n *\r\n * Every control should extend from `L.Control` and (re-)implement the following methods.\r\n *\r\n * @method onAdd(map: Map): HTMLElement\r\n * Should return the container DOM element for the control and add listeners on relevant map events. Called on [`control.addTo(map)`](#control-addTo).\r\n *\r\n * @method onRemove(map: Map)\r\n * Optional method. Should contain all clean up code that removes the listeners previously added in [`onAdd`](#control-onadd). Called on [`control.remove()`](#control-remove).\r\n */\r\n\r\n/* @namespace Map\r\n * @section Methods for Layers and Controls\r\n */\r\nMap.include({\r\n\t// @method addControl(control: Control): this\r\n\t// Adds the given control to the map\r\n\taddControl: function (control) {\r\n\t\tcontrol.addTo(this);\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method removeControl(control: Control): this\r\n\t// Removes the given control from the map\r\n\tremoveControl: function (control) {\r\n\t\tcontrol.remove();\r\n\t\treturn this;\r\n\t},\r\n\r\n\t_initControlPos: function () {\r\n\t\tvar corners = this._controlCorners = {},\r\n\t\t l = 'leaflet-',\r\n\t\t container = this._controlContainer =\r\n\t\t create$1('div', l + 'control-container', this._container);\r\n\r\n\t\tfunction createCorner(vSide, hSide) {\r\n\t\t\tvar className = l + vSide + ' ' + l + hSide;\r\n\r\n\t\t\tcorners[vSide + hSide] = create$1('div', className, container);\r\n\t\t}\r\n\r\n\t\tcreateCorner('top', 'left');\r\n\t\tcreateCorner('top', 'right');\r\n\t\tcreateCorner('bottom', 'left');\r\n\t\tcreateCorner('bottom', 'right');\r\n\t},\r\n\r\n\t_clearControlPos: function () {\r\n\t\tfor (var i in this._controlCorners) {\r\n\t\t\tremove(this._controlCorners[i]);\r\n\t\t}\r\n\t\tremove(this._controlContainer);\r\n\t\tdelete this._controlCorners;\r\n\t\tdelete this._controlContainer;\r\n\t}\r\n});\n\n/*\r\n * @class Control.Layers\r\n * @aka L.Control.Layers\r\n * @inherits Control\r\n *\r\n * The layers control gives users the ability to switch between different base layers and switch overlays on/off (check out the [detailed example](http://leafletjs.com/examples/layers-control/)). Extends `Control`.\r\n *\r\n * @example\r\n *\r\n * ```js\r\n * var baseLayers = {\r\n * \t\"Mapbox\": mapbox,\r\n * \t\"OpenStreetMap\": osm\r\n * };\r\n *\r\n * var overlays = {\r\n * \t\"Marker\": marker,\r\n * \t\"Roads\": roadsLayer\r\n * };\r\n *\r\n * L.control.layers(baseLayers, overlays).addTo(map);\r\n * ```\r\n *\r\n * The `baseLayers` and `overlays` parameters are object literals with layer names as keys and `Layer` objects as values:\r\n *\r\n * ```js\r\n * {\r\n * \"<someName1>\": layer1,\r\n * \"<someName2>\": layer2\r\n * }\r\n * ```\r\n *\r\n * The layer names can contain HTML, which allows you to add additional styling to the items:\r\n *\r\n * ```js\r\n * {\"<img src='my-layer-icon' /> <span class='my-layer-item'>My Layer</span>\": myLayer}\r\n * ```\r\n */\r\n\r\nvar Layers = Control.extend({\r\n\t// @section\r\n\t// @aka Control.Layers options\r\n\toptions: {\r\n\t\t// @option collapsed: Boolean = true\r\n\t\t// If `true`, the control will be collapsed into an icon and expanded on mouse hover or touch.\r\n\t\tcollapsed: true,\r\n\t\tposition: 'topright',\r\n\r\n\t\t// @option autoZIndex: Boolean = true\r\n\t\t// If `true`, the control will assign zIndexes in increasing order to all of its layers so that the order is preserved when switching them on/off.\r\n\t\tautoZIndex: true,\r\n\r\n\t\t// @option hideSingleBase: Boolean = false\r\n\t\t// If `true`, the base layers in the control will be hidden when there is only one.\r\n\t\thideSingleBase: false,\r\n\r\n\t\t// @option sortLayers: Boolean = false\r\n\t\t// Whether to sort the layers. When `false`, layers will keep the order\r\n\t\t// in which they were added to the control.\r\n\t\tsortLayers: false,\r\n\r\n\t\t// @option sortFunction: Function = *\r\n\t\t// A [compare function](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array/sort)\r\n\t\t// that will be used for sorting the layers, when `sortLayers` is `true`.\r\n\t\t// The function receives both the `L.Layer` instances and their names, as in\r\n\t\t// `sortFunction(layerA, layerB, nameA, nameB)`.\r\n\t\t// By default, it sorts layers alphabetically by their name.\r\n\t\tsortFunction: function (layerA, layerB, nameA, nameB) {\r\n\t\t\treturn nameA < nameB ? -1 : (nameB < nameA ? 1 : 0);\r\n\t\t}\r\n\t},\r\n\r\n\tinitialize: function (baseLayers, overlays, options) {\r\n\t\tsetOptions(this, options);\r\n\r\n\t\tthis._layerControlInputs = [];\r\n\t\tthis._layers = [];\r\n\t\tthis._lastZIndex = 0;\r\n\t\tthis._handlingClick = false;\r\n\r\n\t\tfor (var i in baseLayers) {\r\n\t\t\tthis._addLayer(baseLayers[i], i);\r\n\t\t}\r\n\r\n\t\tfor (i in overlays) {\r\n\t\t\tthis._addLayer(overlays[i], i, true);\r\n\t\t}\r\n\t},\r\n\r\n\tonAdd: function (map) {\r\n\t\tthis._initLayout();\r\n\t\tthis._update();\r\n\r\n\t\tthis._map = map;\r\n\t\tmap.on('zoomend', this._checkDisabledLayers, this);\r\n\r\n\t\tfor (var i = 0; i < this._layers.length; i++) {\r\n\t\t\tthis._layers[i].layer.on('add remove', this._onLayerChange, this);\r\n\t\t}\r\n\r\n\t\treturn this._container;\r\n\t},\r\n\r\n\taddTo: function (map) {\r\n\t\tControl.prototype.addTo.call(this, map);\r\n\t\t// Trigger expand after Layers Control has been inserted into DOM so that is now has an actual height.\r\n\t\treturn this._expandIfNotCollapsed();\r\n\t},\r\n\r\n\tonRemove: function () {\r\n\t\tthis._map.off('zoomend', this._checkDisabledLayers, this);\r\n\r\n\t\tfor (var i = 0; i < this._layers.length; i++) {\r\n\t\t\tthis._layers[i].layer.off('add remove', this._onLayerChange, this);\r\n\t\t}\r\n\t},\r\n\r\n\t// @method addBaseLayer(layer: Layer, name: String): this\r\n\t// Adds a base layer (radio button entry) with the given name to the control.\r\n\taddBaseLayer: function (layer, name) {\r\n\t\tthis._addLayer(layer, name);\r\n\t\treturn (this._map) ? this._update() : this;\r\n\t},\r\n\r\n\t// @method addOverlay(layer: Layer, name: String): this\r\n\t// Adds an overlay (checkbox entry) with the given name to the control.\r\n\taddOverlay: function (layer, name) {\r\n\t\tthis._addLayer(layer, name, true);\r\n\t\treturn (this._map) ? this._update() : this;\r\n\t},\r\n\r\n\t// @method removeLayer(layer: Layer): this\r\n\t// Remove the given layer from the control.\r\n\tremoveLayer: function (layer) {\r\n\t\tlayer.off('add remove', this._onLayerChange, this);\r\n\r\n\t\tvar obj = this._getLayer(stamp(layer));\r\n\t\tif (obj) {\r\n\t\t\tthis._layers.splice(this._layers.indexOf(obj), 1);\r\n\t\t}\r\n\t\treturn (this._map) ? this._update() : this;\r\n\t},\r\n\r\n\t// @method expand(): this\r\n\t// Expand the control container if collapsed.\r\n\texpand: function () {\r\n\t\taddClass(this._container, 'leaflet-control-layers-expanded');\r\n\t\tthis._form.style.height = null;\r\n\t\tvar acceptableHeight = this._map.getSize().y - (this._container.offsetTop + 50);\r\n\t\tif (acceptableHeight < this._form.clientHeight) {\r\n\t\t\taddClass(this._form, 'leaflet-control-layers-scrollbar');\r\n\t\t\tthis._form.style.height = acceptableHeight + 'px';\r\n\t\t} else {\r\n\t\t\tremoveClass(this._form, 'leaflet-control-layers-scrollbar');\r\n\t\t}\r\n\t\tthis._checkDisabledLayers();\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method collapse(): this\r\n\t// Collapse the control container if expanded.\r\n\tcollapse: function () {\r\n\t\tremoveClass(this._container, 'leaflet-control-layers-expanded');\r\n\t\treturn this;\r\n\t},\r\n\r\n\t_initLayout: function () {\r\n\t\tvar className = 'leaflet-control-layers',\r\n\t\t container = this._container = create$1('div', className),\r\n\t\t collapsed = this.options.collapsed;\r\n\r\n\t\t// makes this work on IE touch devices by stopping it from firing a mouseout event when the touch is released\r\n\t\tcontainer.setAttribute('aria-haspopup', true);\r\n\r\n\t\tdisableClickPropagation(container);\r\n\t\tdisableScrollPropagation(container);\r\n\r\n\t\tvar form = this._form = create$1('form', className + '-list');\r\n\r\n\t\tif (collapsed) {\r\n\t\t\tthis._map.on('click', this.collapse, this);\r\n\r\n\t\t\tif (!android) {\r\n\t\t\t\ton(container, {\r\n\t\t\t\t\tmouseenter: this.expand,\r\n\t\t\t\t\tmouseleave: this.collapse\r\n\t\t\t\t}, this);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tvar link = this._layersLink = create$1('a', className + '-toggle', container);\r\n\t\tlink.href = '#';\r\n\t\tlink.title = 'Layers';\r\n\r\n\t\tif (touch) {\r\n\t\t\ton(link, 'click', stop);\r\n\t\t\ton(link, 'click', this.expand, this);\r\n\t\t} else {\r\n\t\t\ton(link, 'focus', this.expand, this);\r\n\t\t}\r\n\r\n\t\tif (!collapsed) {\r\n\t\t\tthis.expand();\r\n\t\t}\r\n\r\n\t\tthis._baseLayersList = create$1('div', className + '-base', form);\r\n\t\tthis._separator = create$1('div', className + '-separator', form);\r\n\t\tthis._overlaysList = create$1('div', className + '-overlays', form);\r\n\r\n\t\tcontainer.appendChild(form);\r\n\t},\r\n\r\n\t_getLayer: function (id) {\r\n\t\tfor (var i = 0; i < this._layers.length; i++) {\r\n\r\n\t\t\tif (this._layers[i] && stamp(this._layers[i].layer) === id) {\r\n\t\t\t\treturn this._layers[i];\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\r\n\t_addLayer: function (layer, name, overlay) {\r\n\t\tif (this._map) {\r\n\t\t\tlayer.on('add remove', this._onLayerChange, this);\r\n\t\t}\r\n\r\n\t\tthis._layers.push({\r\n\t\t\tlayer: layer,\r\n\t\t\tname: name,\r\n\t\t\toverlay: overlay\r\n\t\t});\r\n\r\n\t\tif (this.options.sortLayers) {\r\n\t\t\tthis._layers.sort(bind(function (a, b) {\r\n\t\t\t\treturn this.options.sortFunction(a.layer, b.layer, a.name, b.name);\r\n\t\t\t}, this));\r\n\t\t}\r\n\r\n\t\tif (this.options.autoZIndex && layer.setZIndex) {\r\n\t\t\tthis._lastZIndex++;\r\n\t\t\tlayer.setZIndex(this._lastZIndex);\r\n\t\t}\r\n\r\n\t\tthis._expandIfNotCollapsed();\r\n\t},\r\n\r\n\t_update: function () {\r\n\t\tif (!this._container) { return this; }\r\n\r\n\t\tempty(this._baseLayersList);\r\n\t\tempty(this._overlaysList);\r\n\r\n\t\tthis._layerControlInputs = [];\r\n\t\tvar baseLayersPresent, overlaysPresent, i, obj, baseLayersCount = 0;\r\n\r\n\t\tfor (i = 0; i < this._layers.length; i++) {\r\n\t\t\tobj = this._layers[i];\r\n\t\t\tthis._addItem(obj);\r\n\t\t\toverlaysPresent = overlaysPresent || obj.overlay;\r\n\t\t\tbaseLayersPresent = baseLayersPresent || !obj.overlay;\r\n\t\t\tbaseLayersCount += !obj.overlay ? 1 : 0;\r\n\t\t}\r\n\r\n\t\t// Hide base layers section if there's only one layer.\r\n\t\tif (this.options.hideSingleBase) {\r\n\t\t\tbaseLayersPresent = baseLayersPresent && baseLayersCount > 1;\r\n\t\t\tthis._baseLayersList.style.display = baseLayersPresent ? '' : 'none';\r\n\t\t}\r\n\r\n\t\tthis._separator.style.display = overlaysPresent && baseLayersPresent ? '' : 'none';\r\n\r\n\t\treturn this;\r\n\t},\r\n\r\n\t_onLayerChange: function (e) {\r\n\t\tif (!this._handlingClick) {\r\n\t\t\tthis._update();\r\n\t\t}\r\n\r\n\t\tvar obj = this._getLayer(stamp(e.target));\r\n\r\n\t\t// @namespace Map\r\n\t\t// @section Layer events\r\n\t\t// @event baselayerchange: LayersControlEvent\r\n\t\t// Fired when the base layer is changed through the [layer control](#control-layers).\r\n\t\t// @event overlayadd: LayersControlEvent\r\n\t\t// Fired when an overlay is selected through the [layer control](#control-layers).\r\n\t\t// @event overlayremove: LayersControlEvent\r\n\t\t// Fired when an overlay is deselected through the [layer control](#control-layers).\r\n\t\t// @namespace Control.Layers\r\n\t\tvar type = obj.overlay ?\r\n\t\t\t(e.type === 'add' ? 'overlayadd' : 'overlayremove') :\r\n\t\t\t(e.type === 'add' ? 'baselayerchange' : null);\r\n\r\n\t\tif (type) {\r\n\t\t\tthis._map.fire(type, obj);\r\n\t\t}\r\n\t},\r\n\r\n\t// IE7 bugs out if you create a radio dynamically, so you have to do it this hacky way (see http://bit.ly/PqYLBe)\r\n\t_createRadioElement: function (name, checked) {\r\n\r\n\t\tvar radioHtml = '<input type=\"radio\" class=\"leaflet-control-layers-selector\" name=\"' +\r\n\t\t\t\tname + '\"' + (checked ? ' checked=\"checked\"' : '') + '/>';\r\n\r\n\t\tvar radioFragment = document.createElement('div');\r\n\t\tradioFragment.innerHTML = radioHtml;\r\n\r\n\t\treturn radioFragment.firstChild;\r\n\t},\r\n\r\n\t_addItem: function (obj) {\r\n\t\tvar label = document.createElement('label'),\r\n\t\t checked = this._map.hasLayer(obj.layer),\r\n\t\t input;\r\n\r\n\t\tif (obj.overlay) {\r\n\t\t\tinput = document.createElement('input');\r\n\t\t\tinput.type = 'checkbox';\r\n\t\t\tinput.className = 'leaflet-control-layers-selector';\r\n\t\t\tinput.defaultChecked = checked;\r\n\t\t} else {\r\n\t\t\tinput = this._createRadioElement('leaflet-base-layers', checked);\r\n\t\t}\r\n\r\n\t\tthis._layerControlInputs.push(input);\r\n\t\tinput.layerId = stamp(obj.layer);\r\n\r\n\t\ton(input, 'click', this._onInputClick, this);\r\n\r\n\t\tvar name = document.createElement('span');\r\n\t\tname.innerHTML = ' ' + obj.name;\r\n\r\n\t\t// Helps from preventing layer control flicker when checkboxes are disabled\r\n\t\t// https://github.com/Leaflet/Leaflet/issues/2771\r\n\t\tvar holder = document.createElement('div');\r\n\r\n\t\tlabel.appendChild(holder);\r\n\t\tholder.appendChild(input);\r\n\t\tholder.appendChild(name);\r\n\r\n\t\tvar container = obj.overlay ? this._overlaysList : this._baseLayersList;\r\n\t\tcontainer.appendChild(label);\r\n\r\n\t\tthis._checkDisabledLayers();\r\n\t\treturn label;\r\n\t},\r\n\r\n\t_onInputClick: function () {\r\n\t\tvar inputs = this._layerControlInputs,\r\n\t\t input, layer;\r\n\t\tvar addedLayers = [],\r\n\t\t removedLayers = [];\r\n\r\n\t\tthis._handlingClick = true;\r\n\r\n\t\tfor (var i = inputs.length - 1; i >= 0; i--) {\r\n\t\t\tinput = inputs[i];\r\n\t\t\tlayer = this._getLayer(input.layerId).layer;\r\n\r\n\t\t\tif (input.checked) {\r\n\t\t\t\taddedLayers.push(layer);\r\n\t\t\t} else if (!input.checked) {\r\n\t\t\t\tremovedLayers.push(layer);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Bugfix issue 2318: Should remove all old layers before readding new ones\r\n\t\tfor (i = 0; i < removedLayers.length; i++) {\r\n\t\t\tif (this._map.hasLayer(removedLayers[i])) {\r\n\t\t\t\tthis._map.removeLayer(removedLayers[i]);\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor (i = 0; i < addedLayers.length; i++) {\r\n\t\t\tif (!this._map.hasLayer(addedLayers[i])) {\r\n\t\t\t\tthis._map.addLayer(addedLayers[i]);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tthis._handlingClick = false;\r\n\r\n\t\tthis._refocusOnMap();\r\n\t},\r\n\r\n\t_checkDisabledLayers: function () {\r\n\t\tvar inputs = this._layerControlInputs,\r\n\t\t input,\r\n\t\t layer,\r\n\t\t zoom = this._map.getZoom();\r\n\r\n\t\tfor (var i = inputs.length - 1; i >= 0; i--) {\r\n\t\t\tinput = inputs[i];\r\n\t\t\tlayer = this._getLayer(input.layerId).layer;\r\n\t\t\tinput.disabled = (layer.options.minZoom !== undefined && zoom < layer.options.minZoom) ||\r\n\t\t\t (layer.options.maxZoom !== undefined && zoom > layer.options.maxZoom);\r\n\r\n\t\t}\r\n\t},\r\n\r\n\t_expandIfNotCollapsed: function () {\r\n\t\tif (this._map && !this.options.collapsed) {\r\n\t\t\tthis.expand();\r\n\t\t}\r\n\t\treturn this;\r\n\t},\r\n\r\n\t_expand: function () {\r\n\t\t// Backward compatibility, remove me in 1.1.\r\n\t\treturn this.expand();\r\n\t},\r\n\r\n\t_collapse: function () {\r\n\t\t// Backward compatibility, remove me in 1.1.\r\n\t\treturn this.collapse();\r\n\t}\r\n\r\n});\r\n\r\n\r\n// @factory L.control.layers(baselayers?: Object, overlays?: Object, options?: Control.Layers options)\r\n// Creates an attribution control with the given layers. Base layers will be switched with radio buttons, while overlays will be switched with checkboxes. Note that all base layers should be passed in the base layers object, but only one should be added to the map during map instantiation.\r\nvar layers = function (baseLayers, overlays, options) {\r\n\treturn new Layers(baseLayers, overlays, options);\r\n};\n\n/*\r\n * @class Control.Zoom\r\n * @aka L.Control.Zoom\r\n * @inherits Control\r\n *\r\n * A basic zoom control with two buttons (zoom in and zoom out). It is put on the map by default unless you set its [`zoomControl` option](#map-zoomcontrol) to `false`. Extends `Control`.\r\n */\r\n\r\nvar Zoom = Control.extend({\r\n\t// @section\r\n\t// @aka Control.Zoom options\r\n\toptions: {\r\n\t\tposition: 'topleft',\r\n\r\n\t\t// @option zoomInText: String = '+'\r\n\t\t// The text set on the 'zoom in' button.\r\n\t\tzoomInText: '+',\r\n\r\n\t\t// @option zoomInTitle: String = 'Zoom in'\r\n\t\t// The title set on the 'zoom in' button.\r\n\t\tzoomInTitle: 'Zoom in',\r\n\r\n\t\t// @option zoomOutText: String = '&#x2212;'\r\n\t\t// The text set on the 'zoom out' button.\r\n\t\tzoomOutText: '&#x2212;',\r\n\r\n\t\t// @option zoomOutTitle: String = 'Zoom out'\r\n\t\t// The title set on the 'zoom out' button.\r\n\t\tzoomOutTitle: 'Zoom out'\r\n\t},\r\n\r\n\tonAdd: function (map) {\r\n\t\tvar zoomName = 'leaflet-control-zoom',\r\n\t\t container = create$1('div', zoomName + ' leaflet-bar'),\r\n\t\t options = this.options;\r\n\r\n\t\tthis._zoomInButton = this._createButton(options.zoomInText, options.zoomInTitle,\r\n\t\t zoomName + '-in', container, this._zoomIn);\r\n\t\tthis._zoomOutButton = this._createButton(options.zoomOutText, options.zoomOutTitle,\r\n\t\t zoomName + '-out', container, this._zoomOut);\r\n\r\n\t\tthis._updateDisabled();\r\n\t\tmap.on('zoomend zoomlevelschange', this._updateDisabled, this);\r\n\r\n\t\treturn container;\r\n\t},\r\n\r\n\tonRemove: function (map) {\r\n\t\tmap.off('zoomend zoomlevelschange', this._updateDisabled, this);\r\n\t},\r\n\r\n\tdisable: function () {\r\n\t\tthis._disabled = true;\r\n\t\tthis._updateDisabled();\r\n\t\treturn this;\r\n\t},\r\n\r\n\tenable: function () {\r\n\t\tthis._disabled = false;\r\n\t\tthis._updateDisabled();\r\n\t\treturn this;\r\n\t},\r\n\r\n\t_zoomIn: function (e) {\r\n\t\tif (!this._disabled && this._map._zoom < this._map.getMaxZoom()) {\r\n\t\t\tthis._map.zoomIn(this._map.options.zoomDelta * (e.shiftKey ? 3 : 1));\r\n\t\t}\r\n\t},\r\n\r\n\t_zoomOut: function (e) {\r\n\t\tif (!this._disabled && this._map._zoom > this._map.getMinZoom()) {\r\n\t\t\tthis._map.zoomOut(this._map.options.zoomDelta * (e.shiftKey ? 3 : 1));\r\n\t\t}\r\n\t},\r\n\r\n\t_createButton: function (html, title, className, container, fn) {\r\n\t\tvar link = create$1('a', className, container);\r\n\t\tlink.innerHTML = html;\r\n\t\tlink.href = '#';\r\n\t\tlink.title = title;\r\n\r\n\t\t/*\r\n\t\t * Will force screen readers like VoiceOver to read this as \"Zoom in - button\"\r\n\t\t */\r\n\t\tlink.setAttribute('role', 'button');\r\n\t\tlink.setAttribute('aria-label', title);\r\n\r\n\t\tdisableClickPropagation(link);\r\n\t\ton(link, 'click', stop);\r\n\t\ton(link, 'click', fn, this);\r\n\t\ton(link, 'click', this._refocusOnMap, this);\r\n\r\n\t\treturn link;\r\n\t},\r\n\r\n\t_updateDisabled: function () {\r\n\t\tvar map = this._map,\r\n\t\t className = 'leaflet-disabled';\r\n\r\n\t\tremoveClass(this._zoomInButton, className);\r\n\t\tremoveClass(this._zoomOutButton, className);\r\n\r\n\t\tif (this._disabled || map._zoom === map.getMinZoom()) {\r\n\t\t\taddClass(this._zoomOutButton, className);\r\n\t\t}\r\n\t\tif (this._disabled || map._zoom === map.getMaxZoom()) {\r\n\t\t\taddClass(this._zoomInButton, className);\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// @namespace Map\r\n// @section Control options\r\n// @option zoomControl: Boolean = true\r\n// Whether a [zoom control](#control-zoom) is added to the map by default.\r\nMap.mergeOptions({\r\n\tzoomControl: true\r\n});\r\n\r\nMap.addInitHook(function () {\r\n\tif (this.options.zoomControl) {\r\n\t\tthis.zoomControl = new Zoom();\r\n\t\tthis.addControl(this.zoomControl);\r\n\t}\r\n});\r\n\r\n// @namespace Control.Zoom\r\n// @factory L.control.zoom(options: Control.Zoom options)\r\n// Creates a zoom control\r\nvar zoom = function (options) {\r\n\treturn new Zoom(options);\r\n};\n\n/*\n * @class Control.Scale\n * @aka L.Control.Scale\n * @inherits Control\n *\n * A simple scale control that shows the scale of the current center of screen in metric (m/km) and imperial (mi/ft) systems. Extends `Control`.\n *\n * @example\n *\n * ```js\n * L.control.scale().addTo(map);\n * ```\n */\n\nvar Scale = Control.extend({\n\t// @section\n\t// @aka Control.Scale options\n\toptions: {\n\t\tposition: 'bottomleft',\n\n\t\t// @option maxWidth: Number = 100\n\t\t// Maximum width of the control in pixels. The width is set dynamically to show round values (e.g. 100, 200, 500).\n\t\tmaxWidth: 100,\n\n\t\t// @option metric: Boolean = True\n\t\t// Whether to show the metric scale line (m/km).\n\t\tmetric: true,\n\n\t\t// @option imperial: Boolean = True\n\t\t// Whether to show the imperial scale line (mi/ft).\n\t\timperial: true\n\n\t\t// @option updateWhenIdle: Boolean = false\n\t\t// If `true`, the control is updated on [`moveend`](#map-moveend), otherwise it's always up-to-date (updated on [`move`](#map-move)).\n\t},\n\n\tonAdd: function (map) {\n\t\tvar className = 'leaflet-control-scale',\n\t\t container = create$1('div', className),\n\t\t options = this.options;\n\n\t\tthis._addScales(options, className + '-line', container);\n\n\t\tmap.on(options.updateWhenIdle ? 'moveend' : 'move', this._update, this);\n\t\tmap.whenReady(this._update, this);\n\n\t\treturn container;\n\t},\n\n\tonRemove: function (map) {\n\t\tmap.off(this.options.updateWhenIdle ? 'moveend' : 'move', this._update, this);\n\t},\n\n\t_addScales: function (options, className, container) {\n\t\tif (options.metric) {\n\t\t\tthis._mScale = create$1('div', className, container);\n\t\t}\n\t\tif (options.imperial) {\n\t\t\tthis._iScale = create$1('div', className, container);\n\t\t}\n\t},\n\n\t_update: function () {\n\t\tvar map = this._map,\n\t\t y = map.getSize().y / 2;\n\n\t\tvar maxMeters = map.distance(\n\t\t\tmap.containerPointToLatLng([0, y]),\n\t\t\tmap.containerPointToLatLng([this.options.maxWidth, y]));\n\n\t\tthis._updateScales(maxMeters);\n\t},\n\n\t_updateScales: function (maxMeters) {\n\t\tif (this.options.metric && maxMeters) {\n\t\t\tthis._updateMetric(maxMeters);\n\t\t}\n\t\tif (this.options.imperial && maxMeters) {\n\t\t\tthis._updateImperial(maxMeters);\n\t\t}\n\t},\n\n\t_updateMetric: function (maxMeters) {\n\t\tvar meters = this._getRoundNum(maxMeters),\n\t\t label = meters < 1000 ? meters + ' m' : (meters / 1000) + ' km';\n\n\t\tthis._updateScale(this._mScale, label, meters / maxMeters);\n\t},\n\n\t_updateImperial: function (maxMeters) {\n\t\tvar maxFeet = maxMeters * 3.2808399,\n\t\t maxMiles, miles, feet;\n\n\t\tif (maxFeet > 5280) {\n\t\t\tmaxMiles = maxFeet / 5280;\n\t\t\tmiles = this._getRoundNum(maxMiles);\n\t\t\tthis._updateScale(this._iScale, miles + ' mi', miles / maxMiles);\n\n\t\t} else {\n\t\t\tfeet = this._getRoundNum(maxFeet);\n\t\t\tthis._updateScale(this._iScale, feet + ' ft', feet / maxFeet);\n\t\t}\n\t},\n\n\t_updateScale: function (scale, text, ratio) {\n\t\tscale.style.width = Math.round(this.options.maxWidth * ratio) + 'px';\n\t\tscale.innerHTML = text;\n\t},\n\n\t_getRoundNum: function (num) {\n\t\tvar pow10 = Math.pow(10, (Math.floor(num) + '').length - 1),\n\t\t d = num / pow10;\n\n\t\td = d >= 10 ? 10 :\n\t\t d >= 5 ? 5 :\n\t\t d >= 3 ? 3 :\n\t\t d >= 2 ? 2 : 1;\n\n\t\treturn pow10 * d;\n\t}\n});\n\n\n// @factory L.control.scale(options?: Control.Scale options)\n// Creates an scale control with the given options.\nvar scale = function (options) {\n\treturn new Scale(options);\n};\n\n/*\r\n * @class Control.Attribution\r\n * @aka L.Control.Attribution\r\n * @inherits Control\r\n *\r\n * The attribution control allows you to display attribution data in a small text box on a map. It is put on the map by default unless you set its [`attributionControl` option](#map-attributioncontrol) to `false`, and it fetches attribution texts from layers with the [`getAttribution` method](#layer-getattribution) automatically. Extends Control.\r\n */\r\n\r\nvar Attribution = Control.extend({\r\n\t// @section\r\n\t// @aka Control.Attribution options\r\n\toptions: {\r\n\t\tposition: 'bottomright',\r\n\r\n\t\t// @option prefix: String = 'Leaflet'\r\n\t\t// The HTML text shown before the attributions. Pass `false` to disable.\r\n\t\tprefix: '<a href=\"http://leafletjs.com\" title=\"A JS library for interactive maps\">Leaflet</a>'\r\n\t},\r\n\r\n\tinitialize: function (options) {\r\n\t\tsetOptions(this, options);\r\n\r\n\t\tthis._attributions = {};\r\n\t},\r\n\r\n\tonAdd: function (map) {\r\n\t\tmap.attributionControl = this;\r\n\t\tthis._container = create$1('div', 'leaflet-control-attribution');\r\n\t\tdisableClickPropagation(this._container);\r\n\r\n\t\t// TODO ugly, refactor\r\n\t\tfor (var i in map._layers) {\r\n\t\t\tif (map._layers[i].getAttribution) {\r\n\t\t\t\tthis.addAttribution(map._layers[i].getAttribution());\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tthis._update();\r\n\r\n\t\treturn this._container;\r\n\t},\r\n\r\n\t// @method setPrefix(prefix: String): this\r\n\t// Sets the text before the attributions.\r\n\tsetPrefix: function (prefix) {\r\n\t\tthis.options.prefix = prefix;\r\n\t\tthis._update();\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method addAttribution(text: String): this\r\n\t// Adds an attribution text (e.g. `'Vector data &copy; Mapbox'`).\r\n\taddAttribution: function (text) {\r\n\t\tif (!text) { return this; }\r\n\r\n\t\tif (!this._attributions[text]) {\r\n\t\t\tthis._attributions[text] = 0;\r\n\t\t}\r\n\t\tthis._attributions[text]++;\r\n\r\n\t\tthis._update();\r\n\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method removeAttribution(text: String): this\r\n\t// Removes an attribution text.\r\n\tremoveAttribution: function (text) {\r\n\t\tif (!text) { return this; }\r\n\r\n\t\tif (this._attributions[text]) {\r\n\t\t\tthis._attributions[text]--;\r\n\t\t\tthis._update();\r\n\t\t}\r\n\r\n\t\treturn this;\r\n\t},\r\n\r\n\t_update: function () {\r\n\t\tif (!this._map) { return; }\r\n\r\n\t\tvar attribs = [];\r\n\r\n\t\tfor (var i in this._attributions) {\r\n\t\t\tif (this._attributions[i]) {\r\n\t\t\t\tattribs.push(i);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tvar prefixAndAttribs = [];\r\n\r\n\t\tif (this.options.prefix) {\r\n\t\t\tprefixAndAttribs.push(this.options.prefix);\r\n\t\t}\r\n\t\tif (attribs.length) {\r\n\t\t\tprefixAndAttribs.push(attribs.join(', '));\r\n\t\t}\r\n\r\n\t\tthis._container.innerHTML = prefixAndAttribs.join(' | ');\r\n\t}\r\n});\r\n\r\n// @namespace Map\r\n// @section Control options\r\n// @option attributionControl: Boolean = true\r\n// Whether a [attribution control](#control-attribution) is added to the map by default.\r\nMap.mergeOptions({\r\n\tattributionControl: true\r\n});\r\n\r\nMap.addInitHook(function () {\r\n\tif (this.options.attributionControl) {\r\n\t\tnew Attribution().addTo(this);\r\n\t}\r\n});\r\n\r\n// @namespace Control.Attribution\r\n// @factory L.control.attribution(options: Control.Attribution options)\r\n// Creates an attribution control.\r\nvar attribution = function (options) {\r\n\treturn new Attribution(options);\r\n};\n\nControl.Layers = Layers;\nControl.Zoom = Zoom;\nControl.Scale = Scale;\nControl.Attribution = Attribution;\n\ncontrol.layers = layers;\ncontrol.zoom = zoom;\ncontrol.scale = scale;\ncontrol.attribution = attribution;\n\n/*\n\tL.Handler is a base class for handler classes that are used internally to inject\n\tinteraction features like dragging to classes like Map and Marker.\n*/\n\n// @class Handler\n// @aka L.Handler\n// Abstract class for map interaction handlers\n\nvar Handler = Class.extend({\n\tinitialize: function (map) {\n\t\tthis._map = map;\n\t},\n\n\t// @method enable(): this\n\t// Enables the handler\n\tenable: function () {\n\t\tif (this._enabled) { return this; }\n\n\t\tthis._enabled = true;\n\t\tthis.addHooks();\n\t\treturn this;\n\t},\n\n\t// @method disable(): this\n\t// Disables the handler\n\tdisable: function () {\n\t\tif (!this._enabled) { return this; }\n\n\t\tthis._enabled = false;\n\t\tthis.removeHooks();\n\t\treturn this;\n\t},\n\n\t// @method enabled(): Boolean\n\t// Returns `true` if the handler is enabled\n\tenabled: function () {\n\t\treturn !!this._enabled;\n\t}\n\n\t// @section Extension methods\n\t// Classes inheriting from `Handler` must implement the two following methods:\n\t// @method addHooks()\n\t// Called when the handler is enabled, should add event hooks.\n\t// @method removeHooks()\n\t// Called when the handler is disabled, should remove the event hooks added previously.\n});\n\n// @section There is static function which can be called without instantiating L.Handler:\n// @function addTo(map: Map, name: String): this\n// Adds a new Handler to the given map with the given name.\nHandler.addTo = function (map, name) {\n\tmap.addHandler(name, this);\n\treturn this;\n};\n\nvar Mixin = {Events: Events};\n\n/*\r\n * @class Draggable\r\n * @aka L.Draggable\r\n * @inherits Evented\r\n *\r\n * A class for making DOM elements draggable (including touch support).\r\n * Used internally for map and marker dragging. Only works for elements\r\n * that were positioned with [`L.DomUtil.setPosition`](#domutil-setposition).\r\n *\r\n * @example\r\n * ```js\r\n * var draggable = new L.Draggable(elementToDrag);\r\n * draggable.enable();\r\n * ```\r\n */\r\n\r\nvar START = touch ? 'touchstart mousedown' : 'mousedown';\r\nvar END = {\r\n\tmousedown: 'mouseup',\r\n\ttouchstart: 'touchend',\r\n\tpointerdown: 'touchend',\r\n\tMSPointerDown: 'touchend'\r\n};\r\nvar MOVE = {\r\n\tmousedown: 'mousemove',\r\n\ttouchstart: 'touchmove',\r\n\tpointerdown: 'touchmove',\r\n\tMSPointerDown: 'touchmove'\r\n};\r\n\r\n\r\nvar Draggable = Evented.extend({\r\n\r\n\toptions: {\r\n\t\t// @section\r\n\t\t// @aka Draggable options\r\n\t\t// @option clickTolerance: Number = 3\r\n\t\t// The max number of pixels a user can shift the mouse pointer during a click\r\n\t\t// for it to be considered a valid click (as opposed to a mouse drag).\r\n\t\tclickTolerance: 3\r\n\t},\r\n\r\n\t// @constructor L.Draggable(el: HTMLElement, dragHandle?: HTMLElement, preventOutline?: Boolean, options?: Draggable options)\r\n\t// Creates a `Draggable` object for moving `el` when you start dragging the `dragHandle` element (equals `el` itself by default).\r\n\tinitialize: function (element, dragStartTarget, preventOutline$$1, options) {\r\n\t\tsetOptions(this, options);\r\n\r\n\t\tthis._element = element;\r\n\t\tthis._dragStartTarget = dragStartTarget || element;\r\n\t\tthis._preventOutline = preventOutline$$1;\r\n\t},\r\n\r\n\t// @method enable()\r\n\t// Enables the dragging ability\r\n\tenable: function () {\r\n\t\tif (this._enabled) { return; }\r\n\r\n\t\ton(this._dragStartTarget, START, this._onDown, this);\r\n\r\n\t\tthis._enabled = true;\r\n\t},\r\n\r\n\t// @method disable()\r\n\t// Disables the dragging ability\r\n\tdisable: function () {\r\n\t\tif (!this._enabled) { return; }\r\n\r\n\t\t// If we're currently dragging this draggable,\r\n\t\t// disabling it counts as first ending the drag.\r\n\t\tif (Draggable._dragging === this) {\r\n\t\t\tthis.finishDrag();\r\n\t\t}\r\n\r\n\t\toff(this._dragStartTarget, START, this._onDown, this);\r\n\r\n\t\tthis._enabled = false;\r\n\t\tthis._moved = false;\r\n\t},\r\n\r\n\t_onDown: function (e) {\r\n\t\t// Ignore simulated events, since we handle both touch and\r\n\t\t// mouse explicitly; otherwise we risk getting duplicates of\r\n\t\t// touch events, see #4315.\r\n\t\t// Also ignore the event if disabled; this happens in IE11\r\n\t\t// under some circumstances, see #3666.\r\n\t\tif (e._simulated || !this._enabled) { return; }\r\n\r\n\t\tthis._moved = false;\r\n\r\n\t\tif (hasClass(this._element, 'leaflet-zoom-anim')) { return; }\r\n\r\n\t\tif (Draggable._dragging || e.shiftKey || ((e.which !== 1) && (e.button !== 1) && !e.touches)) { return; }\r\n\t\tDraggable._dragging = this; // Prevent dragging multiple objects at once.\r\n\r\n\t\tif (this._preventOutline) {\r\n\t\t\tpreventOutline(this._element);\r\n\t\t}\r\n\r\n\t\tdisableImageDrag();\r\n\t\tdisableTextSelection();\r\n\r\n\t\tif (this._moving) { return; }\r\n\r\n\t\t// @event down: Event\r\n\t\t// Fired when a drag is about to start.\r\n\t\tthis.fire('down');\r\n\r\n\t\tvar first = e.touches ? e.touches[0] : e,\r\n\t\t sizedParent = getSizedParentNode(this._element);\r\n\r\n\t\tthis._startPoint = new Point(first.clientX, first.clientY);\r\n\r\n\t\t// Cache the scale, so that we can continuously compensate for it during drag (_onMove).\r\n\t\tthis._parentScale = getScale(sizedParent);\r\n\r\n\t\ton(document, MOVE[e.type], this._onMove, this);\r\n\t\ton(document, END[e.type], this._onUp, this);\r\n\t},\r\n\r\n\t_onMove: function (e) {\r\n\t\t// Ignore simulated events, since we handle both touch and\r\n\t\t// mouse explicitly; otherwise we risk getting duplicates of\r\n\t\t// touch events, see #4315.\r\n\t\t// Also ignore the event if disabled; this happens in IE11\r\n\t\t// under some circumstances, see #3666.\r\n\t\tif (e._simulated || !this._enabled) { return; }\r\n\r\n\t\tif (e.touches && e.touches.length > 1) {\r\n\t\t\tthis._moved = true;\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tvar first = (e.touches && e.touches.length === 1 ? e.touches[0] : e),\r\n\t\t offset = new Point(first.clientX, first.clientY)._subtract(this._startPoint);\r\n\r\n\t\tif (!offset.x && !offset.y) { return; }\r\n\t\tif (Math.abs(offset.x) + Math.abs(offset.y) < this.options.clickTolerance) { return; }\r\n\r\n\t\t// We assume that the parent container's position, border and scale do not change for the duration of the drag.\r\n\t\t// Therefore there is no need to account for the position and border (they are eliminated by the subtraction)\r\n\t\t// and we can use the cached value for the scale.\r\n\t\toffset.x /= this._parentScale.x;\r\n\t\toffset.y /= this._parentScale.y;\r\n\r\n\t\tpreventDefault(e);\r\n\r\n\t\tif (!this._moved) {\r\n\t\t\t// @event dragstart: Event\r\n\t\t\t// Fired when a drag starts\r\n\t\t\tthis.fire('dragstart');\r\n\r\n\t\t\tthis._moved = true;\r\n\t\t\tthis._startPos = getPosition(this._element).subtract(offset);\r\n\r\n\t\t\taddClass(document.body, 'leaflet-dragging');\r\n\r\n\t\t\tthis._lastTarget = e.target || e.srcElement;\r\n\t\t\t// IE and Edge do not give the <use> element, so fetch it\r\n\t\t\t// if necessary\r\n\t\t\tif ((window.SVGElementInstance) && (this._lastTarget instanceof SVGElementInstance)) {\r\n\t\t\t\tthis._lastTarget = this._lastTarget.correspondingUseElement;\r\n\t\t\t}\r\n\t\t\taddClass(this._lastTarget, 'leaflet-drag-target');\r\n\t\t}\r\n\r\n\t\tthis._newPos = this._startPos.add(offset);\r\n\t\tthis._moving = true;\r\n\r\n\t\tcancelAnimFrame(this._animRequest);\r\n\t\tthis._lastEvent = e;\r\n\t\tthis._animRequest = requestAnimFrame(this._updatePosition, this, true);\r\n\t},\r\n\r\n\t_updatePosition: function () {\r\n\t\tvar e = {originalEvent: this._lastEvent};\r\n\r\n\t\t// @event predrag: Event\r\n\t\t// Fired continuously during dragging *before* each corresponding\r\n\t\t// update of the element's position.\r\n\t\tthis.fire('predrag', e);\r\n\t\tsetPosition(this._element, this._newPos);\r\n\r\n\t\t// @event drag: Event\r\n\t\t// Fired continuously during dragging.\r\n\t\tthis.fire('drag', e);\r\n\t},\r\n\r\n\t_onUp: function (e) {\r\n\t\t// Ignore simulated events, since we handle both touch and\r\n\t\t// mouse explicitly; otherwise we risk getting duplicates of\r\n\t\t// touch events, see #4315.\r\n\t\t// Also ignore the event if disabled; this happens in IE11\r\n\t\t// under some circumstances, see #3666.\r\n\t\tif (e._simulated || !this._enabled) { return; }\r\n\t\tthis.finishDrag();\r\n\t},\r\n\r\n\tfinishDrag: function () {\r\n\t\tremoveClass(document.body, 'leaflet-dragging');\r\n\r\n\t\tif (this._lastTarget) {\r\n\t\t\tremoveClass(this._lastTarget, 'leaflet-drag-target');\r\n\t\t\tthis._lastTarget = null;\r\n\t\t}\r\n\r\n\t\tfor (var i in MOVE) {\r\n\t\t\toff(document, MOVE[i], this._onMove, this);\r\n\t\t\toff(document, END[i], this._onUp, this);\r\n\t\t}\r\n\r\n\t\tenableImageDrag();\r\n\t\tenableTextSelection();\r\n\r\n\t\tif (this._moved && this._moving) {\r\n\t\t\t// ensure drag is not fired after dragend\r\n\t\t\tcancelAnimFrame(this._animRequest);\r\n\r\n\t\t\t// @event dragend: DragEndEvent\r\n\t\t\t// Fired when the drag ends.\r\n\t\t\tthis.fire('dragend', {\r\n\t\t\t\tdistance: this._newPos.distanceTo(this._startPos)\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\tthis._moving = false;\r\n\t\tDraggable._dragging = false;\r\n\t}\r\n\r\n});\n\n/*\r\n * @namespace LineUtil\r\n *\r\n * Various utility functions for polyline points processing, used by Leaflet internally to make polylines lightning-fast.\r\n */\r\n\r\n// Simplify polyline with vertex reduction and Douglas-Peucker simplification.\r\n// Improves rendering performance dramatically by lessening the number of points to draw.\r\n\r\n// @function simplify(points: Point[], tolerance: Number): Point[]\r\n// Dramatically reduces the number of points in a polyline while retaining\r\n// its shape and returns a new array of simplified points, using the\r\n// [Douglas-Peucker algorithm](http://en.wikipedia.org/wiki/Douglas-Peucker_algorithm).\r\n// Used for a huge performance boost when processing/displaying Leaflet polylines for\r\n// each zoom level and also reducing visual noise. tolerance affects the amount of\r\n// simplification (lesser value means higher quality but slower and with more points).\r\n// Also released as a separated micro-library [Simplify.js](http://mourner.github.com/simplify-js/).\r\nfunction simplify(points, tolerance) {\r\n\tif (!tolerance || !points.length) {\r\n\t\treturn points.slice();\r\n\t}\r\n\r\n\tvar sqTolerance = tolerance * tolerance;\r\n\r\n\t // stage 1: vertex reduction\r\n\t points = _reducePoints(points, sqTolerance);\r\n\r\n\t // stage 2: Douglas-Peucker simplification\r\n\t points = _simplifyDP(points, sqTolerance);\r\n\r\n\treturn points;\r\n}\r\n\r\n// @function pointToSegmentDistance(p: Point, p1: Point, p2: Point): Number\r\n// Returns the distance between point `p` and segment `p1` to `p2`.\r\nfunction pointToSegmentDistance(p, p1, p2) {\r\n\treturn Math.sqrt(_sqClosestPointOnSegment(p, p1, p2, true));\r\n}\r\n\r\n// @function closestPointOnSegment(p: Point, p1: Point, p2: Point): Number\r\n// Returns the closest point from a point `p` on a segment `p1` to `p2`.\r\nfunction closestPointOnSegment(p, p1, p2) {\r\n\treturn _sqClosestPointOnSegment(p, p1, p2);\r\n}\r\n\r\n// Douglas-Peucker simplification, see http://en.wikipedia.org/wiki/Douglas-Peucker_algorithm\r\nfunction _simplifyDP(points, sqTolerance) {\r\n\r\n\tvar len = points.length,\r\n\t ArrayConstructor = typeof Uint8Array !== undefined + '' ? Uint8Array : Array,\r\n\t markers = new ArrayConstructor(len);\r\n\r\n\t markers[0] = markers[len - 1] = 1;\r\n\r\n\t_simplifyDPStep(points, markers, sqTolerance, 0, len - 1);\r\n\r\n\tvar i,\r\n\t newPoints = [];\r\n\r\n\tfor (i = 0; i < len; i++) {\r\n\t\tif (markers[i]) {\r\n\t\t\tnewPoints.push(points[i]);\r\n\t\t}\r\n\t}\r\n\r\n\treturn newPoints;\r\n}\r\n\r\nfunction _simplifyDPStep(points, markers, sqTolerance, first, last) {\r\n\r\n\tvar maxSqDist = 0,\r\n\tindex, i, sqDist;\r\n\r\n\tfor (i = first + 1; i <= last - 1; i++) {\r\n\t\tsqDist = _sqClosestPointOnSegment(points[i], points[first], points[last], true);\r\n\r\n\t\tif (sqDist > maxSqDist) {\r\n\t\t\tindex = i;\r\n\t\t\tmaxSqDist = sqDist;\r\n\t\t}\r\n\t}\r\n\r\n\tif (maxSqDist > sqTolerance) {\r\n\t\tmarkers[index] = 1;\r\n\r\n\t\t_simplifyDPStep(points, markers, sqTolerance, first, index);\r\n\t\t_simplifyDPStep(points, markers, sqTolerance, index, last);\r\n\t}\r\n}\r\n\r\n// reduce points that are too close to each other to a single point\r\nfunction _reducePoints(points, sqTolerance) {\r\n\tvar reducedPoints = [points[0]];\r\n\r\n\tfor (var i = 1, prev = 0, len = points.length; i < len; i++) {\r\n\t\tif (_sqDist(points[i], points[prev]) > sqTolerance) {\r\n\t\t\treducedPoints.push(points[i]);\r\n\t\t\tprev = i;\r\n\t\t}\r\n\t}\r\n\tif (prev < len - 1) {\r\n\t\treducedPoints.push(points[len - 1]);\r\n\t}\r\n\treturn reducedPoints;\r\n}\r\n\r\nvar _lastCode;\r\n\r\n// @function clipSegment(a: Point, b: Point, bounds: Bounds, useLastCode?: Boolean, round?: Boolean): Point[]|Boolean\r\n// Clips the segment a to b by rectangular bounds with the\r\n// [Cohen-Sutherland algorithm](https://en.wikipedia.org/wiki/Cohen%E2%80%93Sutherland_algorithm)\r\n// (modifying the segment points directly!). Used by Leaflet to only show polyline\r\n// points that are on the screen or near, increasing performance.\r\nfunction clipSegment(a, b, bounds, useLastCode, round) {\r\n\tvar codeA = useLastCode ? _lastCode : _getBitCode(a, bounds),\r\n\t codeB = _getBitCode(b, bounds),\r\n\r\n\t codeOut, p, newCode;\r\n\r\n\t // save 2nd code to avoid calculating it on the next segment\r\n\t _lastCode = codeB;\r\n\r\n\twhile (true) {\r\n\t\t// if a,b is inside the clip window (trivial accept)\r\n\t\tif (!(codeA | codeB)) {\r\n\t\t\treturn [a, b];\r\n\t\t}\r\n\r\n\t\t// if a,b is outside the clip window (trivial reject)\r\n\t\tif (codeA & codeB) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\t// other cases\r\n\t\tcodeOut = codeA || codeB;\r\n\t\tp = _getEdgeIntersection(a, b, codeOut, bounds, round);\r\n\t\tnewCode = _getBitCode(p, bounds);\r\n\r\n\t\tif (codeOut === codeA) {\r\n\t\t\ta = p;\r\n\t\t\tcodeA = newCode;\r\n\t\t} else {\r\n\t\t\tb = p;\r\n\t\t\tcodeB = newCode;\r\n\t\t}\r\n\t}\r\n}\r\n\r\nfunction _getEdgeIntersection(a, b, code, bounds, round) {\r\n\tvar dx = b.x - a.x,\r\n\t dy = b.y - a.y,\r\n\t min = bounds.min,\r\n\t max = bounds.max,\r\n\t x, y;\r\n\r\n\tif (code & 8) { // top\r\n\t\tx = a.x + dx * (max.y - a.y) / dy;\r\n\t\ty = max.y;\r\n\r\n\t} else if (code & 4) { // bottom\r\n\t\tx = a.x + dx * (min.y - a.y) / dy;\r\n\t\ty = min.y;\r\n\r\n\t} else if (code & 2) { // right\r\n\t\tx = max.x;\r\n\t\ty = a.y + dy * (max.x - a.x) / dx;\r\n\r\n\t} else if (code & 1) { // left\r\n\t\tx = min.x;\r\n\t\ty = a.y + dy * (min.x - a.x) / dx;\r\n\t}\r\n\r\n\treturn new Point(x, y, round);\r\n}\r\n\r\nfunction _getBitCode(p, bounds) {\r\n\tvar code = 0;\r\n\r\n\tif (p.x < bounds.min.x) { // left\r\n\t\tcode |= 1;\r\n\t} else if (p.x > bounds.max.x) { // right\r\n\t\tcode |= 2;\r\n\t}\r\n\r\n\tif (p.y < bounds.min.y) { // bottom\r\n\t\tcode |= 4;\r\n\t} else if (p.y > bounds.max.y) { // top\r\n\t\tcode |= 8;\r\n\t}\r\n\r\n\treturn code;\r\n}\r\n\r\n// square distance (to avoid unnecessary Math.sqrt calls)\r\nfunction _sqDist(p1, p2) {\r\n\tvar dx = p2.x - p1.x,\r\n\t dy = p2.y - p1.y;\r\n\treturn dx * dx + dy * dy;\r\n}\r\n\r\n// return closest point on segment or distance to that point\r\nfunction _sqClosestPointOnSegment(p, p1, p2, sqDist) {\r\n\tvar x = p1.x,\r\n\t y = p1.y,\r\n\t dx = p2.x - x,\r\n\t dy = p2.y - y,\r\n\t dot = dx * dx + dy * dy,\r\n\t t;\r\n\r\n\tif (dot > 0) {\r\n\t\tt = ((p.x - x) * dx + (p.y - y) * dy) / dot;\r\n\r\n\t\tif (t > 1) {\r\n\t\t\tx = p2.x;\r\n\t\t\ty = p2.y;\r\n\t\t} else if (t > 0) {\r\n\t\t\tx += dx * t;\r\n\t\t\ty += dy * t;\r\n\t\t}\r\n\t}\r\n\r\n\tdx = p.x - x;\r\n\tdy = p.y - y;\r\n\r\n\treturn sqDist ? dx * dx + dy * dy : new Point(x, y);\r\n}\r\n\r\n\r\n// @function isFlat(latlngs: LatLng[]): Boolean\r\n// Returns true if `latlngs` is a flat array, false is nested.\r\nfunction isFlat(latlngs) {\r\n\treturn !isArray(latlngs[0]) || (typeof latlngs[0][0] !== 'object' && typeof latlngs[0][0] !== 'undefined');\r\n}\r\n\r\nfunction _flat(latlngs) {\r\n\tconsole.warn('Deprecated use of _flat, please use L.LineUtil.isFlat instead.');\r\n\treturn isFlat(latlngs);\r\n}\r\n\n\nvar LineUtil = (Object.freeze || Object)({\n\tsimplify: simplify,\n\tpointToSegmentDistance: pointToSegmentDistance,\n\tclosestPointOnSegment: closestPointOnSegment,\n\tclipSegment: clipSegment,\n\t_getEdgeIntersection: _getEdgeIntersection,\n\t_getBitCode: _getBitCode,\n\t_sqClosestPointOnSegment: _sqClosestPointOnSegment,\n\tisFlat: isFlat,\n\t_flat: _flat\n});\n\n/*\r\n * @namespace PolyUtil\r\n * Various utility functions for polygon geometries.\r\n */\r\n\r\n/* @function clipPolygon(points: Point[], bounds: Bounds, round?: Boolean): Point[]\r\n * Clips the polygon geometry defined by the given `points` by the given bounds (using the [Sutherland-Hodgman algorithm](https://en.wikipedia.org/wiki/Sutherland%E2%80%93Hodgman_algorithm)).\r\n * Used by Leaflet to only show polygon points that are on the screen or near, increasing\r\n * performance. Note that polygon points needs different algorithm for clipping\r\n * than polyline, so there's a separate method for it.\r\n */\r\nfunction clipPolygon(points, bounds, round) {\r\n\tvar clippedPoints,\r\n\t edges = [1, 4, 2, 8],\r\n\t i, j, k,\r\n\t a, b,\r\n\t len, edge, p;\r\n\r\n\tfor (i = 0, len = points.length; i < len; i++) {\r\n\t\tpoints[i]._code = _getBitCode(points[i], bounds);\r\n\t}\r\n\r\n\t// for each edge (left, bottom, right, top)\r\n\tfor (k = 0; k < 4; k++) {\r\n\t\tedge = edges[k];\r\n\t\tclippedPoints = [];\r\n\r\n\t\tfor (i = 0, len = points.length, j = len - 1; i < len; j = i++) {\r\n\t\t\ta = points[i];\r\n\t\t\tb = points[j];\r\n\r\n\t\t\t// if a is inside the clip window\r\n\t\t\tif (!(a._code & edge)) {\r\n\t\t\t\t// if b is outside the clip window (a->b goes out of screen)\r\n\t\t\t\tif (b._code & edge) {\r\n\t\t\t\t\tp = _getEdgeIntersection(b, a, edge, bounds, round);\r\n\t\t\t\t\tp._code = _getBitCode(p, bounds);\r\n\t\t\t\t\tclippedPoints.push(p);\r\n\t\t\t\t}\r\n\t\t\t\tclippedPoints.push(a);\r\n\r\n\t\t\t// else if b is inside the clip window (a->b enters the screen)\r\n\t\t\t} else if (!(b._code & edge)) {\r\n\t\t\t\tp = _getEdgeIntersection(b, a, edge, bounds, round);\r\n\t\t\t\tp._code = _getBitCode(p, bounds);\r\n\t\t\t\tclippedPoints.push(p);\r\n\t\t\t}\r\n\t\t}\r\n\t\tpoints = clippedPoints;\r\n\t}\r\n\r\n\treturn points;\r\n}\r\n\n\nvar PolyUtil = (Object.freeze || Object)({\n\tclipPolygon: clipPolygon\n});\n\n/*\r\n * @namespace Projection\r\n * @section\r\n * Leaflet comes with a set of already defined Projections out of the box:\r\n *\r\n * @projection L.Projection.LonLat\r\n *\r\n * Equirectangular, or Plate Carree projection — the most simple projection,\r\n * mostly used by GIS enthusiasts. Directly maps `x` as longitude, and `y` as\r\n * latitude. Also suitable for flat worlds, e.g. game maps. Used by the\r\n * `EPSG:4326` and `Simple` CRS.\r\n */\r\n\r\nvar LonLat = {\r\n\tproject: function (latlng) {\r\n\t\treturn new Point(latlng.lng, latlng.lat);\r\n\t},\r\n\r\n\tunproject: function (point) {\r\n\t\treturn new LatLng(point.y, point.x);\r\n\t},\r\n\r\n\tbounds: new Bounds([-180, -90], [180, 90])\r\n};\n\n/*\r\n * @namespace Projection\r\n * @projection L.Projection.Mercator\r\n *\r\n * Elliptical Mercator projection — more complex than Spherical Mercator. Takes into account that Earth is a geoid, not a perfect sphere. Used by the EPSG:3395 CRS.\r\n */\r\n\r\nvar Mercator = {\r\n\tR: 6378137,\r\n\tR_MINOR: 6356752.314245179,\r\n\r\n\tbounds: new Bounds([-20037508.34279, -15496570.73972], [20037508.34279, 18764656.23138]),\r\n\r\n\tproject: function (latlng) {\r\n\t\tvar d = Math.PI / 180,\r\n\t\t r = this.R,\r\n\t\t y = latlng.lat * d,\r\n\t\t tmp = this.R_MINOR / r,\r\n\t\t e = Math.sqrt(1 - tmp * tmp),\r\n\t\t con = e * Math.sin(y);\r\n\r\n\t\tvar ts = Math.tan(Math.PI / 4 - y / 2) / Math.pow((1 - con) / (1 + con), e / 2);\r\n\t\ty = -r * Math.log(Math.max(ts, 1E-10));\r\n\r\n\t\treturn new Point(latlng.lng * d * r, y);\r\n\t},\r\n\r\n\tunproject: function (point) {\r\n\t\tvar d = 180 / Math.PI,\r\n\t\t r = this.R,\r\n\t\t tmp = this.R_MINOR / r,\r\n\t\t e = Math.sqrt(1 - tmp * tmp),\r\n\t\t ts = Math.exp(-point.y / r),\r\n\t\t phi = Math.PI / 2 - 2 * Math.atan(ts);\r\n\r\n\t\tfor (var i = 0, dphi = 0.1, con; i < 15 && Math.abs(dphi) > 1e-7; i++) {\r\n\t\t\tcon = e * Math.sin(phi);\r\n\t\t\tcon = Math.pow((1 - con) / (1 + con), e / 2);\r\n\t\t\tdphi = Math.PI / 2 - 2 * Math.atan(ts * con) - phi;\r\n\t\t\tphi += dphi;\r\n\t\t}\r\n\r\n\t\treturn new LatLng(phi * d, point.x * d / r);\r\n\t}\r\n};\n\n/*\n * @class Projection\n\n * An object with methods for projecting geographical coordinates of the world onto\n * a flat surface (and back). See [Map projection](http://en.wikipedia.org/wiki/Map_projection).\n\n * @property bounds: Bounds\n * The bounds (specified in CRS units) where the projection is valid\n\n * @method project(latlng: LatLng): Point\n * Projects geographical coordinates into a 2D point.\n * Only accepts actual `L.LatLng` instances, not arrays.\n\n * @method unproject(point: Point): LatLng\n * The inverse of `project`. Projects a 2D point into a geographical location.\n * Only accepts actual `L.Point` instances, not arrays.\n\n * Note that the projection instances do not inherit from Leafet's `Class` object,\n * and can't be instantiated. Also, new classes can't inherit from them,\n * and methods can't be added to them with the `include` function.\n\n */\n\n\n\n\nvar index = (Object.freeze || Object)({\n\tLonLat: LonLat,\n\tMercator: Mercator,\n\tSphericalMercator: SphericalMercator\n});\n\n/*\r\n * @namespace CRS\r\n * @crs L.CRS.EPSG3395\r\n *\r\n * Rarely used by some commercial tile providers. Uses Elliptical Mercator projection.\r\n */\r\nvar EPSG3395 = extend({}, Earth, {\r\n\tcode: 'EPSG:3395',\r\n\tprojection: Mercator,\r\n\r\n\ttransformation: (function () {\r\n\t\tvar scale = 0.5 / (Math.PI * Mercator.R);\r\n\t\treturn toTransformation(scale, 0.5, -scale, 0.5);\r\n\t}())\r\n});\n\n/*\r\n * @namespace CRS\r\n * @crs L.CRS.EPSG4326\r\n *\r\n * A common CRS among GIS enthusiasts. Uses simple Equirectangular projection.\r\n *\r\n * Leaflet 1.0.x complies with the [TMS coordinate scheme for EPSG:4326](https://wiki.osgeo.org/wiki/Tile_Map_Service_Specification#global-geodetic),\r\n * which is a breaking change from 0.7.x behaviour. If you are using a `TileLayer`\r\n * with this CRS, ensure that there are two 256x256 pixel tiles covering the\r\n * whole earth at zoom level zero, and that the tile coordinate origin is (-180,+90),\r\n * or (-180,-90) for `TileLayer`s with [the `tms` option](#tilelayer-tms) set.\r\n */\r\n\r\nvar EPSG4326 = extend({}, Earth, {\r\n\tcode: 'EPSG:4326',\r\n\tprojection: LonLat,\r\n\ttransformation: toTransformation(1 / 180, 1, -1 / 180, 0.5)\r\n});\n\n/*\n * @namespace CRS\n * @crs L.CRS.Simple\n *\n * A simple CRS that maps longitude and latitude into `x` and `y` directly.\n * May be used for maps of flat surfaces (e.g. game maps). Note that the `y`\n * axis should still be inverted (going from bottom to top). `distance()` returns\n * simple euclidean distance.\n */\n\nvar Simple = extend({}, CRS, {\n\tprojection: LonLat,\n\ttransformation: toTransformation(1, 0, -1, 0),\n\n\tscale: function (zoom) {\n\t\treturn Math.pow(2, zoom);\n\t},\n\n\tzoom: function (scale) {\n\t\treturn Math.log(scale) / Math.LN2;\n\t},\n\n\tdistance: function (latlng1, latlng2) {\n\t\tvar dx = latlng2.lng - latlng1.lng,\n\t\t dy = latlng2.lat - latlng1.lat;\n\n\t\treturn Math.sqrt(dx * dx + dy * dy);\n\t},\n\n\tinfinite: true\n});\n\nCRS.Earth = Earth;\nCRS.EPSG3395 = EPSG3395;\nCRS.EPSG3857 = EPSG3857;\nCRS.EPSG900913 = EPSG900913;\nCRS.EPSG4326 = EPSG4326;\nCRS.Simple = Simple;\n\n/*\n * @class Layer\n * @inherits Evented\n * @aka L.Layer\n * @aka ILayer\n *\n * A set of methods from the Layer base class that all Leaflet layers use.\n * Inherits all methods, options and events from `L.Evented`.\n *\n * @example\n *\n * ```js\n * var layer = L.Marker(latlng).addTo(map);\n * layer.addTo(map);\n * layer.remove();\n * ```\n *\n * @event add: Event\n * Fired after the layer is added to a map\n *\n * @event remove: Event\n * Fired after the layer is removed from a map\n */\n\n\nvar Layer = Evented.extend({\n\n\t// Classes extending `L.Layer` will inherit the following options:\n\toptions: {\n\t\t// @option pane: String = 'overlayPane'\n\t\t// By default the layer will be added to the map's [overlay pane](#map-overlaypane). Overriding this option will cause the layer to be placed on another pane by default.\n\t\tpane: 'overlayPane',\n\n\t\t// @option attribution: String = null\n\t\t// String to be shown in the attribution control, describes the layer data, e.g. \"© Mapbox\".\n\t\tattribution: null,\n\n\t\tbubblingMouseEvents: true\n\t},\n\n\t/* @section\n\t * Classes extending `L.Layer` will inherit the following methods:\n\t *\n\t * @method addTo(map: Map|LayerGroup): this\n\t * Adds the layer to the given map or layer group.\n\t */\n\taddTo: function (map) {\n\t\tmap.addLayer(this);\n\t\treturn this;\n\t},\n\n\t// @method remove: this\n\t// Removes the layer from the map it is currently active on.\n\tremove: function () {\n\t\treturn this.removeFrom(this._map || this._mapToAdd);\n\t},\n\n\t// @method removeFrom(map: Map): this\n\t// Removes the layer from the given map\n\tremoveFrom: function (obj) {\n\t\tif (obj) {\n\t\t\tobj.removeLayer(this);\n\t\t}\n\t\treturn this;\n\t},\n\n\t// @method getPane(name? : String): HTMLElement\n\t// Returns the `HTMLElement` representing the named pane on the map. If `name` is omitted, returns the pane for this layer.\n\tgetPane: function (name) {\n\t\treturn this._map.getPane(name ? (this.options[name] || name) : this.options.pane);\n\t},\n\n\taddInteractiveTarget: function (targetEl) {\n\t\tthis._map._targets[stamp(targetEl)] = this;\n\t\treturn this;\n\t},\n\n\tremoveInteractiveTarget: function (targetEl) {\n\t\tdelete this._map._targets[stamp(targetEl)];\n\t\treturn this;\n\t},\n\n\t// @method getAttribution: String\n\t// Used by the `attribution control`, returns the [attribution option](#gridlayer-attribution).\n\tgetAttribution: function () {\n\t\treturn this.options.attribution;\n\t},\n\n\t_layerAdd: function (e) {\n\t\tvar map = e.target;\n\n\t\t// check in case layer gets added and then removed before the map is ready\n\t\tif (!map.hasLayer(this)) { return; }\n\n\t\tthis._map = map;\n\t\tthis._zoomAnimated = map._zoomAnimated;\n\n\t\tif (this.getEvents) {\n\t\t\tvar events = this.getEvents();\n\t\t\tmap.on(events, this);\n\t\t\tthis.once('remove', function () {\n\t\t\t\tmap.off(events, this);\n\t\t\t}, this);\n\t\t}\n\n\t\tthis.onAdd(map);\n\n\t\tif (this.getAttribution && map.attributionControl) {\n\t\t\tmap.attributionControl.addAttribution(this.getAttribution());\n\t\t}\n\n\t\tthis.fire('add');\n\t\tmap.fire('layeradd', {layer: this});\n\t}\n});\n\n/* @section Extension methods\n * @uninheritable\n *\n * Every layer should extend from `L.Layer` and (re-)implement the following methods.\n *\n * @method onAdd(map: Map): this\n * Should contain code that creates DOM elements for the layer, adds them to `map panes` where they should belong and puts listeners on relevant map events. Called on [`map.addLayer(layer)`](#map-addlayer).\n *\n * @method onRemove(map: Map): this\n * Should contain all clean up code that removes the layer's elements from the DOM and removes listeners previously added in [`onAdd`](#layer-onadd). Called on [`map.removeLayer(layer)`](#map-removelayer).\n *\n * @method getEvents(): Object\n * This optional method should return an object like `{ viewreset: this._reset }` for [`addEventListener`](#evented-addeventlistener). The event handlers in this object will be automatically added and removed from the map with your layer.\n *\n * @method getAttribution(): String\n * This optional method should return a string containing HTML to be shown on the `Attribution control` whenever the layer is visible.\n *\n * @method beforeAdd(map: Map): this\n * Optional method. Called on [`map.addLayer(layer)`](#map-addlayer), before the layer is added to the map, before events are initialized, without waiting until the map is in a usable state. Use for early initialization only.\n */\n\n\n/* @namespace Map\n * @section Layer events\n *\n * @event layeradd: LayerEvent\n * Fired when a new layer is added to the map.\n *\n * @event layerremove: LayerEvent\n * Fired when some layer is removed from the map\n *\n * @section Methods for Layers and Controls\n */\nMap.include({\n\t// @method addLayer(layer: Layer): this\n\t// Adds the given layer to the map\n\taddLayer: function (layer) {\n\t\tif (!layer._layerAdd) {\n\t\t\tthrow new Error('The provided object is not a Layer.');\n\t\t}\n\n\t\tvar id = stamp(layer);\n\t\tif (this._layers[id]) { return this; }\n\t\tthis._layers[id] = layer;\n\n\t\tlayer._mapToAdd = this;\n\n\t\tif (layer.beforeAdd) {\n\t\t\tlayer.beforeAdd(this);\n\t\t}\n\n\t\tthis.whenReady(layer._layerAdd, layer);\n\n\t\treturn this;\n\t},\n\n\t// @method removeLayer(layer: Layer): this\n\t// Removes the given layer from the map.\n\tremoveLayer: function (layer) {\n\t\tvar id = stamp(layer);\n\n\t\tif (!this._layers[id]) { return this; }\n\n\t\tif (this._loaded) {\n\t\t\tlayer.onRemove(this);\n\t\t}\n\n\t\tif (layer.getAttribution && this.attributionControl) {\n\t\t\tthis.attributionControl.removeAttribution(layer.getAttribution());\n\t\t}\n\n\t\tdelete this._layers[id];\n\n\t\tif (this._loaded) {\n\t\t\tthis.fire('layerremove', {layer: layer});\n\t\t\tlayer.fire('remove');\n\t\t}\n\n\t\tlayer._map = layer._mapToAdd = null;\n\n\t\treturn this;\n\t},\n\n\t// @method hasLayer(layer: Layer): Boolean\n\t// Returns `true` if the given layer is currently added to the map\n\thasLayer: function (layer) {\n\t\treturn !!layer && (stamp(layer) in this._layers);\n\t},\n\n\t/* @method eachLayer(fn: Function, context?: Object): this\n\t * Iterates over the layers of the map, optionally specifying context of the iterator function.\n\t * ```\n\t * map.eachLayer(function(layer){\n\t * layer.bindPopup('Hello');\n\t * });\n\t * ```\n\t */\n\teachLayer: function (method, context) {\n\t\tfor (var i in this._layers) {\n\t\t\tmethod.call(context, this._layers[i]);\n\t\t}\n\t\treturn this;\n\t},\n\n\t_addLayers: function (layers) {\n\t\tlayers = layers ? (isArray(layers) ? layers : [layers]) : [];\n\n\t\tfor (var i = 0, len = layers.length; i < len; i++) {\n\t\t\tthis.addLayer(layers[i]);\n\t\t}\n\t},\n\n\t_addZoomLimit: function (layer) {\n\t\tif (isNaN(layer.options.maxZoom) || !isNaN(layer.options.minZoom)) {\n\t\t\tthis._zoomBoundLayers[stamp(layer)] = layer;\n\t\t\tthis._updateZoomLevels();\n\t\t}\n\t},\n\n\t_removeZoomLimit: function (layer) {\n\t\tvar id = stamp(layer);\n\n\t\tif (this._zoomBoundLayers[id]) {\n\t\t\tdelete this._zoomBoundLayers[id];\n\t\t\tthis._updateZoomLevels();\n\t\t}\n\t},\n\n\t_updateZoomLevels: function () {\n\t\tvar minZoom = Infinity,\n\t\t maxZoom = -Infinity,\n\t\t oldZoomSpan = this._getZoomSpan();\n\n\t\tfor (var i in this._zoomBoundLayers) {\n\t\t\tvar options = this._zoomBoundLayers[i].options;\n\n\t\t\tminZoom = options.minZoom === undefined ? minZoom : Math.min(minZoom, options.minZoom);\n\t\t\tmaxZoom = options.maxZoom === undefined ? maxZoom : Math.max(maxZoom, options.maxZoom);\n\t\t}\n\n\t\tthis._layersMaxZoom = maxZoom === -Infinity ? undefined : maxZoom;\n\t\tthis._layersMinZoom = minZoom === Infinity ? undefined : minZoom;\n\n\t\t// @section Map state change events\n\t\t// @event zoomlevelschange: Event\n\t\t// Fired when the number of zoomlevels on the map is changed due\n\t\t// to adding or removing a layer.\n\t\tif (oldZoomSpan !== this._getZoomSpan()) {\n\t\t\tthis.fire('zoomlevelschange');\n\t\t}\n\n\t\tif (this.options.maxZoom === undefined && this._layersMaxZoom && this.getZoom() > this._layersMaxZoom) {\n\t\t\tthis.setZoom(this._layersMaxZoom);\n\t\t}\n\t\tif (this.options.minZoom === undefined && this._layersMinZoom && this.getZoom() < this._layersMinZoom) {\n\t\t\tthis.setZoom(this._layersMinZoom);\n\t\t}\n\t}\n});\n\n/*\r\n * @class LayerGroup\r\n * @aka L.LayerGroup\r\n * @inherits Layer\r\n *\r\n * Used to group several layers and handle them as one. If you add it to the map,\r\n * any layers added or removed from the group will be added/removed on the map as\r\n * well. Extends `Layer`.\r\n *\r\n * @example\r\n *\r\n * ```js\r\n * L.layerGroup([marker1, marker2])\r\n * \t.addLayer(polyline)\r\n * \t.addTo(map);\r\n * ```\r\n */\r\n\r\nvar LayerGroup = Layer.extend({\r\n\r\n\tinitialize: function (layers, options) {\r\n\t\tsetOptions(this, options);\r\n\r\n\t\tthis._layers = {};\r\n\r\n\t\tvar i, len;\r\n\r\n\t\tif (layers) {\r\n\t\t\tfor (i = 0, len = layers.length; i < len; i++) {\r\n\t\t\t\tthis.addLayer(layers[i]);\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\r\n\t// @method addLayer(layer: Layer): this\r\n\t// Adds the given layer to the group.\r\n\taddLayer: function (layer) {\r\n\t\tvar id = this.getLayerId(layer);\r\n\r\n\t\tthis._layers[id] = layer;\r\n\r\n\t\tif (this._map) {\r\n\t\t\tthis._map.addLayer(layer);\r\n\t\t}\r\n\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method removeLayer(layer: Layer): this\r\n\t// Removes the given layer from the group.\r\n\t// @alternative\r\n\t// @method removeLayer(id: Number): this\r\n\t// Removes the layer with the given internal ID from the group.\r\n\tremoveLayer: function (layer) {\r\n\t\tvar id = layer in this._layers ? layer : this.getLayerId(layer);\r\n\r\n\t\tif (this._map && this._layers[id]) {\r\n\t\t\tthis._map.removeLayer(this._layers[id]);\r\n\t\t}\r\n\r\n\t\tdelete this._layers[id];\r\n\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method hasLayer(layer: Layer): Boolean\r\n\t// Returns `true` if the given layer is currently added to the group.\r\n\t// @alternative\r\n\t// @method hasLayer(id: Number): Boolean\r\n\t// Returns `true` if the given internal ID is currently added to the group.\r\n\thasLayer: function (layer) {\r\n\t\treturn !!layer && (layer in this._layers || this.getLayerId(layer) in this._layers);\r\n\t},\r\n\r\n\t// @method clearLayers(): this\r\n\t// Removes all the layers from the group.\r\n\tclearLayers: function () {\r\n\t\treturn this.eachLayer(this.removeLayer, this);\r\n\t},\r\n\r\n\t// @method invoke(methodName: String, …): this\r\n\t// Calls `methodName` on every layer contained in this group, passing any\r\n\t// additional parameters. Has no effect if the layers contained do not\r\n\t// implement `methodName`.\r\n\tinvoke: function (methodName) {\r\n\t\tvar args = Array.prototype.slice.call(arguments, 1),\r\n\t\t i, layer;\r\n\r\n\t\tfor (i in this._layers) {\r\n\t\t\tlayer = this._layers[i];\r\n\r\n\t\t\tif (layer[methodName]) {\r\n\t\t\t\tlayer[methodName].apply(layer, args);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn this;\r\n\t},\r\n\r\n\tonAdd: function (map) {\r\n\t\tthis.eachLayer(map.addLayer, map);\r\n\t},\r\n\r\n\tonRemove: function (map) {\r\n\t\tthis.eachLayer(map.removeLayer, map);\r\n\t},\r\n\r\n\t// @method eachLayer(fn: Function, context?: Object): this\r\n\t// Iterates over the layers of the group, optionally specifying context of the iterator function.\r\n\t// ```js\r\n\t// group.eachLayer(function (layer) {\r\n\t// \tlayer.bindPopup('Hello');\r\n\t// });\r\n\t// ```\r\n\teachLayer: function (method, context) {\r\n\t\tfor (var i in this._layers) {\r\n\t\t\tmethod.call(context, this._layers[i]);\r\n\t\t}\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method getLayer(id: Number): Layer\r\n\t// Returns the layer with the given internal ID.\r\n\tgetLayer: function (id) {\r\n\t\treturn this._layers[id];\r\n\t},\r\n\r\n\t// @method getLayers(): Layer[]\r\n\t// Returns an array of all the layers added to the group.\r\n\tgetLayers: function () {\r\n\t\tvar layers = [];\r\n\t\tthis.eachLayer(layers.push, layers);\r\n\t\treturn layers;\r\n\t},\r\n\r\n\t// @method setZIndex(zIndex: Number): this\r\n\t// Calls `setZIndex` on every layer contained in this group, passing the z-index.\r\n\tsetZIndex: function (zIndex) {\r\n\t\treturn this.invoke('setZIndex', zIndex);\r\n\t},\r\n\r\n\t// @method getLayerId(layer: Layer): Number\r\n\t// Returns the internal ID for a layer\r\n\tgetLayerId: function (layer) {\r\n\t\treturn stamp(layer);\r\n\t}\r\n});\r\n\r\n\r\n// @factory L.layerGroup(layers?: Layer[], options?: Object)\r\n// Create a layer group, optionally given an initial set of layers and an `options` object.\r\nvar layerGroup = function (layers, options) {\r\n\treturn new LayerGroup(layers, options);\r\n};\n\n/*\r\n * @class FeatureGroup\r\n * @aka L.FeatureGroup\r\n * @inherits LayerGroup\r\n *\r\n * Extended `LayerGroup` that makes it easier to do the same thing to all its member layers:\r\n * * [`bindPopup`](#layer-bindpopup) binds a popup to all of the layers at once (likewise with [`bindTooltip`](#layer-bindtooltip))\r\n * * Events are propagated to the `FeatureGroup`, so if the group has an event\r\n * handler, it will handle events from any of the layers. This includes mouse events\r\n * and custom events.\r\n * * Has `layeradd` and `layerremove` events\r\n *\r\n * @example\r\n *\r\n * ```js\r\n * L.featureGroup([marker1, marker2, polyline])\r\n * \t.bindPopup('Hello world!')\r\n * \t.on('click', function() { alert('Clicked on a member of the group!'); })\r\n * \t.addTo(map);\r\n * ```\r\n */\r\n\r\nvar FeatureGroup = LayerGroup.extend({\r\n\r\n\taddLayer: function (layer) {\r\n\t\tif (this.hasLayer(layer)) {\r\n\t\t\treturn this;\r\n\t\t}\r\n\r\n\t\tlayer.addEventParent(this);\r\n\r\n\t\tLayerGroup.prototype.addLayer.call(this, layer);\r\n\r\n\t\t// @event layeradd: LayerEvent\r\n\t\t// Fired when a layer is added to this `FeatureGroup`\r\n\t\treturn this.fire('layeradd', {layer: layer});\r\n\t},\r\n\r\n\tremoveLayer: function (layer) {\r\n\t\tif (!this.hasLayer(layer)) {\r\n\t\t\treturn this;\r\n\t\t}\r\n\t\tif (layer in this._layers) {\r\n\t\t\tlayer = this._layers[layer];\r\n\t\t}\r\n\r\n\t\tlayer.removeEventParent(this);\r\n\r\n\t\tLayerGroup.prototype.removeLayer.call(this, layer);\r\n\r\n\t\t// @event layerremove: LayerEvent\r\n\t\t// Fired when a layer is removed from this `FeatureGroup`\r\n\t\treturn this.fire('layerremove', {layer: layer});\r\n\t},\r\n\r\n\t// @method setStyle(style: Path options): this\r\n\t// Sets the given path options to each layer of the group that has a `setStyle` method.\r\n\tsetStyle: function (style) {\r\n\t\treturn this.invoke('setStyle', style);\r\n\t},\r\n\r\n\t// @method bringToFront(): this\r\n\t// Brings the layer group to the top of all other layers\r\n\tbringToFront: function () {\r\n\t\treturn this.invoke('bringToFront');\r\n\t},\r\n\r\n\t// @method bringToBack(): this\r\n\t// Brings the layer group to the back of all other layers\r\n\tbringToBack: function () {\r\n\t\treturn this.invoke('bringToBack');\r\n\t},\r\n\r\n\t// @method getBounds(): LatLngBounds\r\n\t// Returns the LatLngBounds of the Feature Group (created from bounds and coordinates of its children).\r\n\tgetBounds: function () {\r\n\t\tvar bounds = new LatLngBounds();\r\n\r\n\t\tfor (var id in this._layers) {\r\n\t\t\tvar layer = this._layers[id];\r\n\t\t\tbounds.extend(layer.getBounds ? layer.getBounds() : layer.getLatLng());\r\n\t\t}\r\n\t\treturn bounds;\r\n\t}\r\n});\r\n\r\n// @factory L.featureGroup(layers: Layer[])\r\n// Create a feature group, optionally given an initial set of layers.\r\nvar featureGroup = function (layers) {\r\n\treturn new FeatureGroup(layers);\r\n};\n\n/*\r\n * @class Icon\r\n * @aka L.Icon\r\n *\r\n * Represents an icon to provide when creating a marker.\r\n *\r\n * @example\r\n *\r\n * ```js\r\n * var myIcon = L.icon({\r\n * iconUrl: 'my-icon.png',\r\n * iconRetinaUrl: 'my-icon@2x.png',\r\n * iconSize: [38, 95],\r\n * iconAnchor: [22, 94],\r\n * popupAnchor: [-3, -76],\r\n * shadowUrl: 'my-icon-shadow.png',\r\n * shadowRetinaUrl: 'my-icon-shadow@2x.png',\r\n * shadowSize: [68, 95],\r\n * shadowAnchor: [22, 94]\r\n * });\r\n *\r\n * L.marker([50.505, 30.57], {icon: myIcon}).addTo(map);\r\n * ```\r\n *\r\n * `L.Icon.Default` extends `L.Icon` and is the blue icon Leaflet uses for markers by default.\r\n *\r\n */\r\n\r\nvar Icon = Class.extend({\r\n\r\n\t/* @section\r\n\t * @aka Icon options\r\n\t *\r\n\t * @option iconUrl: String = null\r\n\t * **(required)** The URL to the icon image (absolute or relative to your script path).\r\n\t *\r\n\t * @option iconRetinaUrl: String = null\r\n\t * The URL to a retina sized version of the icon image (absolute or relative to your\r\n\t * script path). Used for Retina screen devices.\r\n\t *\r\n\t * @option iconSize: Point = null\r\n\t * Size of the icon image in pixels.\r\n\t *\r\n\t * @option iconAnchor: Point = null\r\n\t * The coordinates of the \"tip\" of the icon (relative to its top left corner). The icon\r\n\t * will be aligned so that this point is at the marker's geographical location. Centered\r\n\t * by default if size is specified, also can be set in CSS with negative margins.\r\n\t *\r\n\t * @option popupAnchor: Point = [0, 0]\r\n\t * The coordinates of the point from which popups will \"open\", relative to the icon anchor.\r\n\t *\r\n\t * @option tooltipAnchor: Point = [0, 0]\r\n\t * The coordinates of the point from which tooltips will \"open\", relative to the icon anchor.\r\n\t *\r\n\t * @option shadowUrl: String = null\r\n\t * The URL to the icon shadow image. If not specified, no shadow image will be created.\r\n\t *\r\n\t * @option shadowRetinaUrl: String = null\r\n\t *\r\n\t * @option shadowSize: Point = null\r\n\t * Size of the shadow image in pixels.\r\n\t *\r\n\t * @option shadowAnchor: Point = null\r\n\t * The coordinates of the \"tip\" of the shadow (relative to its top left corner) (the same\r\n\t * as iconAnchor if not specified).\r\n\t *\r\n\t * @option className: String = ''\r\n\t * A custom class name to assign to both icon and shadow images. Empty by default.\r\n\t */\r\n\r\n\toptions: {\r\n\t\tpopupAnchor: [0, 0],\r\n\t\ttooltipAnchor: [0, 0],\r\n\t},\r\n\r\n\tinitialize: function (options) {\r\n\t\tsetOptions(this, options);\r\n\t},\r\n\r\n\t// @method createIcon(oldIcon?: HTMLElement): HTMLElement\r\n\t// Called internally when the icon has to be shown, returns a `<img>` HTML element\r\n\t// styled according to the options.\r\n\tcreateIcon: function (oldIcon) {\r\n\t\treturn this._createIcon('icon', oldIcon);\r\n\t},\r\n\r\n\t// @method createShadow(oldIcon?: HTMLElement): HTMLElement\r\n\t// As `createIcon`, but for the shadow beneath it.\r\n\tcreateShadow: function (oldIcon) {\r\n\t\treturn this._createIcon('shadow', oldIcon);\r\n\t},\r\n\r\n\t_createIcon: function (name, oldIcon) {\r\n\t\tvar src = this._getIconUrl(name);\r\n\r\n\t\tif (!src) {\r\n\t\t\tif (name === 'icon') {\r\n\t\t\t\tthrow new Error('iconUrl not set in Icon options (see the docs).');\r\n\t\t\t}\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\tvar img = this._createImg(src, oldIcon && oldIcon.tagName === 'IMG' ? oldIcon : null);\r\n\t\tthis._setIconStyles(img, name);\r\n\r\n\t\treturn img;\r\n\t},\r\n\r\n\t_setIconStyles: function (img, name) {\r\n\t\tvar options = this.options;\r\n\t\tvar sizeOption = options[name + 'Size'];\r\n\r\n\t\tif (typeof sizeOption === 'number') {\r\n\t\t\tsizeOption = [sizeOption, sizeOption];\r\n\t\t}\r\n\r\n\t\tvar size = toPoint(sizeOption),\r\n\t\t anchor = toPoint(name === 'shadow' && options.shadowAnchor || options.iconAnchor ||\r\n\t\t size && size.divideBy(2, true));\r\n\r\n\t\timg.className = 'leaflet-marker-' + name + ' ' + (options.className || '');\r\n\r\n\t\tif (anchor) {\r\n\t\t\timg.style.marginLeft = (-anchor.x) + 'px';\r\n\t\t\timg.style.marginTop = (-anchor.y) + 'px';\r\n\t\t}\r\n\r\n\t\tif (size) {\r\n\t\t\timg.style.width = size.x + 'px';\r\n\t\t\timg.style.height = size.y + 'px';\r\n\t\t}\r\n\t},\r\n\r\n\t_createImg: function (src, el) {\r\n\t\tel = el || document.createElement('img');\r\n\t\tel.src = src;\r\n\t\treturn el;\r\n\t},\r\n\r\n\t_getIconUrl: function (name) {\r\n\t\treturn retina && this.options[name + 'RetinaUrl'] || this.options[name + 'Url'];\r\n\t}\r\n});\r\n\r\n\r\n// @factory L.icon(options: Icon options)\r\n// Creates an icon instance with the given options.\r\nfunction icon(options) {\r\n\treturn new Icon(options);\r\n}\n\n/*\n * @miniclass Icon.Default (Icon)\n * @aka L.Icon.Default\n * @section\n *\n * A trivial subclass of `Icon`, represents the icon to use in `Marker`s when\n * no icon is specified. Points to the blue marker image distributed with Leaflet\n * releases.\n *\n * In order to customize the default icon, just change the properties of `L.Icon.Default.prototype.options`\n * (which is a set of `Icon options`).\n *\n * If you want to _completely_ replace the default icon, override the\n * `L.Marker.prototype.options.icon` with your own icon instead.\n */\n\nvar IconDefault = Icon.extend({\n\n\toptions: {\n\t\ticonUrl: 'marker-icon.png',\n\t\ticonRetinaUrl: 'marker-icon-2x.png',\n\t\tshadowUrl: 'marker-shadow.png',\n\t\ticonSize: [25, 41],\n\t\ticonAnchor: [12, 41],\n\t\tpopupAnchor: [1, -34],\n\t\ttooltipAnchor: [16, -28],\n\t\tshadowSize: [41, 41]\n\t},\n\n\t_getIconUrl: function (name) {\n\t\tif (!IconDefault.imagePath) {\t// Deprecated, backwards-compatibility only\n\t\t\tIconDefault.imagePath = this._detectIconPath();\n\t\t}\n\n\t\t// @option imagePath: String\n\t\t// `Icon.Default` will try to auto-detect the location of the\n\t\t// blue icon images. If you are placing these images in a non-standard\n\t\t// way, set this option to point to the right path.\n\t\treturn (this.options.imagePath || IconDefault.imagePath) + Icon.prototype._getIconUrl.call(this, name);\n\t},\n\n\t_detectIconPath: function () {\n\t\tvar el = create$1('div', 'leaflet-default-icon-path', document.body);\n\t\tvar path = getStyle(el, 'background-image') ||\n\t\t getStyle(el, 'backgroundImage');\t// IE8\n\n\t\tdocument.body.removeChild(el);\n\n\t\tif (path === null || path.indexOf('url') !== 0) {\n\t\t\tpath = '';\n\t\t} else {\n\t\t\tpath = path.replace(/^url\\([\"']?/, '').replace(/marker-icon\\.png[\"']?\\)$/, '');\n\t\t}\n\n\t\treturn path;\n\t}\n});\n\n/*\n * L.Handler.MarkerDrag is used internally by L.Marker to make the markers draggable.\n */\n\n\n/* @namespace Marker\n * @section Interaction handlers\n *\n * Interaction handlers are properties of a marker instance that allow you to control interaction behavior in runtime, enabling or disabling certain features such as dragging (see `Handler` methods). Example:\n *\n * ```js\n * marker.dragging.disable();\n * ```\n *\n * @property dragging: Handler\n * Marker dragging handler (by both mouse and touch). Only valid when the marker is on the map (Otherwise set [`marker.options.draggable`](#marker-draggable)).\n */\n\nvar MarkerDrag = Handler.extend({\n\tinitialize: function (marker) {\n\t\tthis._marker = marker;\n\t},\n\n\taddHooks: function () {\n\t\tvar icon = this._marker._icon;\n\n\t\tif (!this._draggable) {\n\t\t\tthis._draggable = new Draggable(icon, icon, true);\n\t\t}\n\n\t\tthis._draggable.on({\n\t\t\tdragstart: this._onDragStart,\n\t\t\tpredrag: this._onPreDrag,\n\t\t\tdrag: this._onDrag,\n\t\t\tdragend: this._onDragEnd\n\t\t}, this).enable();\n\n\t\taddClass(icon, 'leaflet-marker-draggable');\n\t},\n\n\tremoveHooks: function () {\n\t\tthis._draggable.off({\n\t\t\tdragstart: this._onDragStart,\n\t\t\tpredrag: this._onPreDrag,\n\t\t\tdrag: this._onDrag,\n\t\t\tdragend: this._onDragEnd\n\t\t}, this).disable();\n\n\t\tif (this._marker._icon) {\n\t\t\tremoveClass(this._marker._icon, 'leaflet-marker-draggable');\n\t\t}\n\t},\n\n\tmoved: function () {\n\t\treturn this._draggable && this._draggable._moved;\n\t},\n\n\t_adjustPan: function (e) {\n\t\tvar marker = this._marker,\n\t\t map = marker._map,\n\t\t speed = this._marker.options.autoPanSpeed,\n\t\t padding = this._marker.options.autoPanPadding,\n\t\t iconPos = getPosition(marker._icon),\n\t\t bounds = map.getPixelBounds(),\n\t\t origin = map.getPixelOrigin();\n\n\t\tvar panBounds = toBounds(\n\t\t\tbounds.min._subtract(origin).add(padding),\n\t\t\tbounds.max._subtract(origin).subtract(padding)\n\t\t);\n\n\t\tif (!panBounds.contains(iconPos)) {\n\t\t\t// Compute incremental movement\n\t\t\tvar movement = toPoint(\n\t\t\t\t(Math.max(panBounds.max.x, iconPos.x) - panBounds.max.x) / (bounds.max.x - panBounds.max.x) -\n\t\t\t\t(Math.min(panBounds.min.x, iconPos.x) - panBounds.min.x) / (bounds.min.x - panBounds.min.x),\n\n\t\t\t\t(Math.max(panBounds.max.y, iconPos.y) - panBounds.max.y) / (bounds.max.y - panBounds.max.y) -\n\t\t\t\t(Math.min(panBounds.min.y, iconPos.y) - panBounds.min.y) / (bounds.min.y - panBounds.min.y)\n\t\t\t).multiplyBy(speed);\n\n\t\t\tmap.panBy(movement, {animate: false});\n\n\t\t\tthis._draggable._newPos._add(movement);\n\t\t\tthis._draggable._startPos._add(movement);\n\n\t\t\tsetPosition(marker._icon, this._draggable._newPos);\n\t\t\tthis._onDrag(e);\n\n\t\t\tthis._panRequest = requestAnimFrame(this._adjustPan.bind(this, e));\n\t\t}\n\t},\n\n\t_onDragStart: function () {\n\t\t// @section Dragging events\n\t\t// @event dragstart: Event\n\t\t// Fired when the user starts dragging the marker.\n\n\t\t// @event movestart: Event\n\t\t// Fired when the marker starts moving (because of dragging).\n\n\t\tthis._oldLatLng = this._marker.getLatLng();\n\t\tthis._marker\n\t\t .closePopup()\n\t\t .fire('movestart')\n\t\t .fire('dragstart');\n\t},\n\n\t_onPreDrag: function (e) {\n\t\tif (this._marker.options.autoPan) {\n\t\t\tcancelAnimFrame(this._panRequest);\n\t\t\tthis._panRequest = requestAnimFrame(this._adjustPan.bind(this, e));\n\t\t}\n\t},\n\n\t_onDrag: function (e) {\n\t\tvar marker = this._marker,\n\t\t shadow = marker._shadow,\n\t\t iconPos = getPosition(marker._icon),\n\t\t latlng = marker._map.layerPointToLatLng(iconPos);\n\n\t\t// update shadow position\n\t\tif (shadow) {\n\t\t\tsetPosition(shadow, iconPos);\n\t\t}\n\n\t\tmarker._latlng = latlng;\n\t\te.latlng = latlng;\n\t\te.oldLatLng = this._oldLatLng;\n\n\t\t// @event drag: Event\n\t\t// Fired repeatedly while the user drags the marker.\n\t\tmarker\n\t\t .fire('move', e)\n\t\t .fire('drag', e);\n\t},\n\n\t_onDragEnd: function (e) {\n\t\t// @event dragend: DragEndEvent\n\t\t// Fired when the user stops dragging the marker.\n\n\t\t cancelAnimFrame(this._panRequest);\n\n\t\t// @event moveend: Event\n\t\t// Fired when the marker stops moving (because of dragging).\n\t\tdelete this._oldLatLng;\n\t\tthis._marker\n\t\t .fire('moveend')\n\t\t .fire('dragend', e);\n\t}\n});\n\n/*\r\n * @class Marker\r\n * @inherits Interactive layer\r\n * @aka L.Marker\r\n * L.Marker is used to display clickable/draggable icons on the map. Extends `Layer`.\r\n *\r\n * @example\r\n *\r\n * ```js\r\n * L.marker([50.5, 30.5]).addTo(map);\r\n * ```\r\n */\r\n\r\nvar Marker = Layer.extend({\r\n\r\n\t// @section\r\n\t// @aka Marker options\r\n\toptions: {\r\n\t\t// @option icon: Icon = *\r\n\t\t// Icon instance to use for rendering the marker.\r\n\t\t// See [Icon documentation](#L.Icon) for details on how to customize the marker icon.\r\n\t\t// If not specified, a common instance of `L.Icon.Default` is used.\r\n\t\ticon: new IconDefault(),\r\n\r\n\t\t// Option inherited from \"Interactive layer\" abstract class\r\n\t\tinteractive: true,\r\n\r\n\t\t// @option draggable: Boolean = false\r\n\t\t// Whether the marker is draggable with mouse/touch or not.\r\n\t\tdraggable: false,\r\n\r\n\t\t// @option autoPan: Boolean = false\r\n\t\t// Set it to `true` if you want the map to do panning animation when marker hits the edges.\r\n\t\tautoPan: false,\r\n\r\n\t\t// @option autoPanPadding: Point = Point(50, 50)\r\n\t\t// Equivalent of setting both top left and bottom right autopan padding to the same value.\r\n\t\tautoPanPadding: [50, 50],\r\n\r\n\t\t// @option autoPanSpeed: Number = 10\r\n\t\t// Number of pixels the map should move by.\r\n\t\tautoPanSpeed: 10,\r\n\r\n\t\t// @option keyboard: Boolean = true\r\n\t\t// Whether the marker can be tabbed to with a keyboard and clicked by pressing enter.\r\n\t\tkeyboard: true,\r\n\r\n\t\t// @option title: String = ''\r\n\t\t// Text for the browser tooltip that appear on marker hover (no tooltip by default).\r\n\t\ttitle: '',\r\n\r\n\t\t// @option alt: String = ''\r\n\t\t// Text for the `alt` attribute of the icon image (useful for accessibility).\r\n\t\talt: '',\r\n\r\n\t\t// @option zIndexOffset: Number = 0\r\n\t\t// By default, marker images zIndex is set automatically based on its latitude. Use this option if you want to put the marker on top of all others (or below), specifying a high value like `1000` (or high negative value, respectively).\r\n\t\tzIndexOffset: 0,\r\n\r\n\t\t// @option opacity: Number = 1.0\r\n\t\t// The opacity of the marker.\r\n\t\topacity: 1,\r\n\r\n\t\t// @option riseOnHover: Boolean = false\r\n\t\t// If `true`, the marker will get on top of others when you hover the mouse over it.\r\n\t\triseOnHover: false,\r\n\r\n\t\t// @option riseOffset: Number = 250\r\n\t\t// The z-index offset used for the `riseOnHover` feature.\r\n\t\triseOffset: 250,\r\n\r\n\t\t// @option pane: String = 'markerPane'\r\n\t\t// `Map pane` where the markers icon will be added.\r\n\t\tpane: 'markerPane',\r\n\r\n\t\t// @option bubblingMouseEvents: Boolean = false\r\n\t\t// When `true`, a mouse event on this marker will trigger the same event on the map\r\n\t\t// (unless [`L.DomEvent.stopPropagation`](#domevent-stoppropagation) is used).\r\n\t\tbubblingMouseEvents: false\r\n\t},\r\n\r\n\t/* @section\r\n\t *\r\n\t * In addition to [shared layer methods](#Layer) like `addTo()` and `remove()` and [popup methods](#Popup) like bindPopup() you can also use the following methods:\r\n\t */\r\n\r\n\tinitialize: function (latlng, options) {\r\n\t\tsetOptions(this, options);\r\n\t\tthis._latlng = toLatLng(latlng);\r\n\t},\r\n\r\n\tonAdd: function (map) {\r\n\t\tthis._zoomAnimated = this._zoomAnimated && map.options.markerZoomAnimation;\r\n\r\n\t\tif (this._zoomAnimated) {\r\n\t\t\tmap.on('zoomanim', this._animateZoom, this);\r\n\t\t}\r\n\r\n\t\tthis._initIcon();\r\n\t\tthis.update();\r\n\t},\r\n\r\n\tonRemove: function (map) {\r\n\t\tif (this.dragging && this.dragging.enabled()) {\r\n\t\t\tthis.options.draggable = true;\r\n\t\t\tthis.dragging.removeHooks();\r\n\t\t}\r\n\t\tdelete this.dragging;\r\n\r\n\t\tif (this._zoomAnimated) {\r\n\t\t\tmap.off('zoomanim', this._animateZoom, this);\r\n\t\t}\r\n\r\n\t\tthis._removeIcon();\r\n\t\tthis._removeShadow();\r\n\t},\r\n\r\n\tgetEvents: function () {\r\n\t\treturn {\r\n\t\t\tzoom: this.update,\r\n\t\t\tviewreset: this.update\r\n\t\t};\r\n\t},\r\n\r\n\t// @method getLatLng: LatLng\r\n\t// Returns the current geographical position of the marker.\r\n\tgetLatLng: function () {\r\n\t\treturn this._latlng;\r\n\t},\r\n\r\n\t// @method setLatLng(latlng: LatLng): this\r\n\t// Changes the marker position to the given point.\r\n\tsetLatLng: function (latlng) {\r\n\t\tvar oldLatLng = this._latlng;\r\n\t\tthis._latlng = toLatLng(latlng);\r\n\t\tthis.update();\r\n\r\n\t\t// @event move: Event\r\n\t\t// Fired when the marker is moved via [`setLatLng`](#marker-setlatlng) or by [dragging](#marker-dragging). Old and new coordinates are included in event arguments as `oldLatLng`, `latlng`.\r\n\t\treturn this.fire('move', {oldLatLng: oldLatLng, latlng: this._latlng});\r\n\t},\r\n\r\n\t// @method setZIndexOffset(offset: Number): this\r\n\t// Changes the [zIndex offset](#marker-zindexoffset) of the marker.\r\n\tsetZIndexOffset: function (offset) {\r\n\t\tthis.options.zIndexOffset = offset;\r\n\t\treturn this.update();\r\n\t},\r\n\r\n\t// @method setIcon(icon: Icon): this\r\n\t// Changes the marker icon.\r\n\tsetIcon: function (icon) {\r\n\r\n\t\tthis.options.icon = icon;\r\n\r\n\t\tif (this._map) {\r\n\t\t\tthis._initIcon();\r\n\t\t\tthis.update();\r\n\t\t}\r\n\r\n\t\tif (this._popup) {\r\n\t\t\tthis.bindPopup(this._popup, this._popup.options);\r\n\t\t}\r\n\r\n\t\treturn this;\r\n\t},\r\n\r\n\tgetElement: function () {\r\n\t\treturn this._icon;\r\n\t},\r\n\r\n\tupdate: function () {\r\n\r\n\t\tif (this._icon && this._map) {\r\n\t\t\tvar pos = this._map.latLngToLayerPoint(this._latlng).round();\r\n\t\t\tthis._setPos(pos);\r\n\t\t}\r\n\r\n\t\treturn this;\r\n\t},\r\n\r\n\t_initIcon: function () {\r\n\t\tvar options = this.options,\r\n\t\t classToAdd = 'leaflet-zoom-' + (this._zoomAnimated ? 'animated' : 'hide');\r\n\r\n\t\tvar icon = options.icon.createIcon(this._icon),\r\n\t\t addIcon = false;\r\n\r\n\t\t// if we're not reusing the icon, remove the old one and init new one\r\n\t\tif (icon !== this._icon) {\r\n\t\t\tif (this._icon) {\r\n\t\t\t\tthis._removeIcon();\r\n\t\t\t}\r\n\t\t\taddIcon = true;\r\n\r\n\t\t\tif (options.title) {\r\n\t\t\t\ticon.title = options.title;\r\n\t\t\t}\r\n\r\n\t\t\tif (icon.tagName === 'IMG') {\r\n\t\t\t\ticon.alt = options.alt || '';\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\taddClass(icon, classToAdd);\r\n\r\n\t\tif (options.keyboard) {\r\n\t\t\ticon.tabIndex = '0';\r\n\t\t}\r\n\r\n\t\tthis._icon = icon;\r\n\r\n\t\tif (options.riseOnHover) {\r\n\t\t\tthis.on({\r\n\t\t\t\tmouseover: this._bringToFront,\r\n\t\t\t\tmouseout: this._resetZIndex\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\tvar newShadow = options.icon.createShadow(this._shadow),\r\n\t\t addShadow = false;\r\n\r\n\t\tif (newShadow !== this._shadow) {\r\n\t\t\tthis._removeShadow();\r\n\t\t\taddShadow = true;\r\n\t\t}\r\n\r\n\t\tif (newShadow) {\r\n\t\t\taddClass(newShadow, classToAdd);\r\n\t\t\tnewShadow.alt = '';\r\n\t\t}\r\n\t\tthis._shadow = newShadow;\r\n\r\n\r\n\t\tif (options.opacity < 1) {\r\n\t\t\tthis._updateOpacity();\r\n\t\t}\r\n\r\n\r\n\t\tif (addIcon) {\r\n\t\t\tthis.getPane().appendChild(this._icon);\r\n\t\t}\r\n\t\tthis._initInteraction();\r\n\t\tif (newShadow && addShadow) {\r\n\t\t\tthis.getPane('shadowPane').appendChild(this._shadow);\r\n\t\t}\r\n\t},\r\n\r\n\t_removeIcon: function () {\r\n\t\tif (this.options.riseOnHover) {\r\n\t\t\tthis.off({\r\n\t\t\t\tmouseover: this._bringToFront,\r\n\t\t\t\tmouseout: this._resetZIndex\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\tremove(this._icon);\r\n\t\tthis.removeInteractiveTarget(this._icon);\r\n\r\n\t\tthis._icon = null;\r\n\t},\r\n\r\n\t_removeShadow: function () {\r\n\t\tif (this._shadow) {\r\n\t\t\tremove(this._shadow);\r\n\t\t}\r\n\t\tthis._shadow = null;\r\n\t},\r\n\r\n\t_setPos: function (pos) {\r\n\t\tsetPosition(this._icon, pos);\r\n\r\n\t\tif (this._shadow) {\r\n\t\t\tsetPosition(this._shadow, pos);\r\n\t\t}\r\n\r\n\t\tthis._zIndex = pos.y + this.options.zIndexOffset;\r\n\r\n\t\tthis._resetZIndex();\r\n\t},\r\n\r\n\t_updateZIndex: function (offset) {\r\n\t\tthis._icon.style.zIndex = this._zIndex + offset;\r\n\t},\r\n\r\n\t_animateZoom: function (opt) {\r\n\t\tvar pos = this._map._latLngToNewLayerPoint(this._latlng, opt.zoom, opt.center).round();\r\n\r\n\t\tthis._setPos(pos);\r\n\t},\r\n\r\n\t_initInteraction: function () {\r\n\r\n\t\tif (!this.options.interactive) { return; }\r\n\r\n\t\taddClass(this._icon, 'leaflet-interactive');\r\n\r\n\t\tthis.addInteractiveTarget(this._icon);\r\n\r\n\t\tif (MarkerDrag) {\r\n\t\t\tvar draggable = this.options.draggable;\r\n\t\t\tif (this.dragging) {\r\n\t\t\t\tdraggable = this.dragging.enabled();\r\n\t\t\t\tthis.dragging.disable();\r\n\t\t\t}\r\n\r\n\t\t\tthis.dragging = new MarkerDrag(this);\r\n\r\n\t\t\tif (draggable) {\r\n\t\t\t\tthis.dragging.enable();\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\r\n\t// @method setOpacity(opacity: Number): this\r\n\t// Changes the opacity of the marker.\r\n\tsetOpacity: function (opacity) {\r\n\t\tthis.options.opacity = opacity;\r\n\t\tif (this._map) {\r\n\t\t\tthis._updateOpacity();\r\n\t\t}\r\n\r\n\t\treturn this;\r\n\t},\r\n\r\n\t_updateOpacity: function () {\r\n\t\tvar opacity = this.options.opacity;\r\n\r\n\t\tsetOpacity(this._icon, opacity);\r\n\r\n\t\tif (this._shadow) {\r\n\t\t\tsetOpacity(this._shadow, opacity);\r\n\t\t}\r\n\t},\r\n\r\n\t_bringToFront: function () {\r\n\t\tthis._updateZIndex(this.options.riseOffset);\r\n\t},\r\n\r\n\t_resetZIndex: function () {\r\n\t\tthis._updateZIndex(0);\r\n\t},\r\n\r\n\t_getPopupAnchor: function () {\r\n\t\treturn this.options.icon.options.popupAnchor;\r\n\t},\r\n\r\n\t_getTooltipAnchor: function () {\r\n\t\treturn this.options.icon.options.tooltipAnchor;\r\n\t}\r\n});\r\n\r\n\r\n// factory L.marker(latlng: LatLng, options? : Marker options)\r\n\r\n// @factory L.marker(latlng: LatLng, options? : Marker options)\r\n// Instantiates a Marker object given a geographical point and optionally an options object.\r\nfunction marker(latlng, options) {\r\n\treturn new Marker(latlng, options);\r\n}\n\n/*\n * @class Path\n * @aka L.Path\n * @inherits Interactive layer\n *\n * An abstract class that contains options and constants shared between vector\n * overlays (Polygon, Polyline, Circle). Do not use it directly. Extends `Layer`.\n */\n\nvar Path = Layer.extend({\n\n\t// @section\n\t// @aka Path options\n\toptions: {\n\t\t// @option stroke: Boolean = true\n\t\t// Whether to draw stroke along the path. Set it to `false` to disable borders on polygons or circles.\n\t\tstroke: true,\n\n\t\t// @option color: String = '#3388ff'\n\t\t// Stroke color\n\t\tcolor: '#3388ff',\n\n\t\t// @option weight: Number = 3\n\t\t// Stroke width in pixels\n\t\tweight: 3,\n\n\t\t// @option opacity: Number = 1.0\n\t\t// Stroke opacity\n\t\topacity: 1,\n\n\t\t// @option lineCap: String= 'round'\n\t\t// A string that defines [shape to be used at the end](https://developer.mozilla.org/docs/Web/SVG/Attribute/stroke-linecap) of the stroke.\n\t\tlineCap: 'round',\n\n\t\t// @option lineJoin: String = 'round'\n\t\t// A string that defines [shape to be used at the corners](https://developer.mozilla.org/docs/Web/SVG/Attribute/stroke-linejoin) of the stroke.\n\t\tlineJoin: 'round',\n\n\t\t// @option dashArray: String = null\n\t\t// A string that defines the stroke [dash pattern](https://developer.mozilla.org/docs/Web/SVG/Attribute/stroke-dasharray). Doesn't work on `Canvas`-powered layers in [some old browsers](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setLineDash#Browser_compatibility).\n\t\tdashArray: null,\n\n\t\t// @option dashOffset: String = null\n\t\t// A string that defines the [distance into the dash pattern to start the dash](https://developer.mozilla.org/docs/Web/SVG/Attribute/stroke-dashoffset). Doesn't work on `Canvas`-powered layers in [some old browsers](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setLineDash#Browser_compatibility).\n\t\tdashOffset: null,\n\n\t\t// @option fill: Boolean = depends\n\t\t// Whether to fill the path with color. Set it to `false` to disable filling on polygons or circles.\n\t\tfill: false,\n\n\t\t// @option fillColor: String = *\n\t\t// Fill color. Defaults to the value of the [`color`](#path-color) option\n\t\tfillColor: null,\n\n\t\t// @option fillOpacity: Number = 0.2\n\t\t// Fill opacity.\n\t\tfillOpacity: 0.2,\n\n\t\t// @option fillRule: String = 'evenodd'\n\t\t// A string that defines [how the inside of a shape](https://developer.mozilla.org/docs/Web/SVG/Attribute/fill-rule) is determined.\n\t\tfillRule: 'evenodd',\n\n\t\t// className: '',\n\n\t\t// Option inherited from \"Interactive layer\" abstract class\n\t\tinteractive: true,\n\n\t\t// @option bubblingMouseEvents: Boolean = true\n\t\t// When `true`, a mouse event on this path will trigger the same event on the map\n\t\t// (unless [`L.DomEvent.stopPropagation`](#domevent-stoppropagation) is used).\n\t\tbubblingMouseEvents: true\n\t},\n\n\tbeforeAdd: function (map) {\n\t\t// Renderer is set here because we need to call renderer.getEvents\n\t\t// before this.getEvents.\n\t\tthis._renderer = map.getRenderer(this);\n\t},\n\n\tonAdd: function () {\n\t\tthis._renderer._initPath(this);\n\t\tthis._reset();\n\t\tthis._renderer._addPath(this);\n\t},\n\n\tonRemove: function () {\n\t\tthis._renderer._removePath(this);\n\t},\n\n\t// @method redraw(): this\n\t// Redraws the layer. Sometimes useful after you changed the coordinates that the path uses.\n\tredraw: function () {\n\t\tif (this._map) {\n\t\t\tthis._renderer._updatePath(this);\n\t\t}\n\t\treturn this;\n\t},\n\n\t// @method setStyle(style: Path options): this\n\t// Changes the appearance of a Path based on the options in the `Path options` object.\n\tsetStyle: function (style) {\n\t\tsetOptions(this, style);\n\t\tif (this._renderer) {\n\t\t\tthis._renderer._updateStyle(this);\n\t\t}\n\t\treturn this;\n\t},\n\n\t// @method bringToFront(): this\n\t// Brings the layer to the top of all path layers.\n\tbringToFront: function () {\n\t\tif (this._renderer) {\n\t\t\tthis._renderer._bringToFront(this);\n\t\t}\n\t\treturn this;\n\t},\n\n\t// @method bringToBack(): this\n\t// Brings the layer to the bottom of all path layers.\n\tbringToBack: function () {\n\t\tif (this._renderer) {\n\t\t\tthis._renderer._bringToBack(this);\n\t\t}\n\t\treturn this;\n\t},\n\n\tgetElement: function () {\n\t\treturn this._path;\n\t},\n\n\t_reset: function () {\n\t\t// defined in child classes\n\t\tthis._project();\n\t\tthis._update();\n\t},\n\n\t_clickTolerance: function () {\n\t\t// used when doing hit detection for Canvas layers\n\t\treturn (this.options.stroke ? this.options.weight / 2 : 0) + this._renderer.options.tolerance;\n\t}\n});\n\n/*\n * @class CircleMarker\n * @aka L.CircleMarker\n * @inherits Path\n *\n * A circle of a fixed size with radius specified in pixels. Extends `Path`.\n */\n\nvar CircleMarker = Path.extend({\n\n\t// @section\n\t// @aka CircleMarker options\n\toptions: {\n\t\tfill: true,\n\n\t\t// @option radius: Number = 10\n\t\t// Radius of the circle marker, in pixels\n\t\tradius: 10\n\t},\n\n\tinitialize: function (latlng, options) {\n\t\tsetOptions(this, options);\n\t\tthis._latlng = toLatLng(latlng);\n\t\tthis._radius = this.options.radius;\n\t},\n\n\t// @method setLatLng(latLng: LatLng): this\n\t// Sets the position of a circle marker to a new location.\n\tsetLatLng: function (latlng) {\n\t\tthis._latlng = toLatLng(latlng);\n\t\tthis.redraw();\n\t\treturn this.fire('move', {latlng: this._latlng});\n\t},\n\n\t// @method getLatLng(): LatLng\n\t// Returns the current geographical position of the circle marker\n\tgetLatLng: function () {\n\t\treturn this._latlng;\n\t},\n\n\t// @method setRadius(radius: Number): this\n\t// Sets the radius of a circle marker. Units are in pixels.\n\tsetRadius: function (radius) {\n\t\tthis.options.radius = this._radius = radius;\n\t\treturn this.redraw();\n\t},\n\n\t// @method getRadius(): Number\n\t// Returns the current radius of the circle\n\tgetRadius: function () {\n\t\treturn this._radius;\n\t},\n\n\tsetStyle : function (options) {\n\t\tvar radius = options && options.radius || this._radius;\n\t\tPath.prototype.setStyle.call(this, options);\n\t\tthis.setRadius(radius);\n\t\treturn this;\n\t},\n\n\t_project: function () {\n\t\tthis._point = this._map.latLngToLayerPoint(this._latlng);\n\t\tthis._updateBounds();\n\t},\n\n\t_updateBounds: function () {\n\t\tvar r = this._radius,\n\t\t r2 = this._radiusY || r,\n\t\t w = this._clickTolerance(),\n\t\t p = [r + w, r2 + w];\n\t\tthis._pxBounds = new Bounds(this._point.subtract(p), this._point.add(p));\n\t},\n\n\t_update: function () {\n\t\tif (this._map) {\n\t\t\tthis._updatePath();\n\t\t}\n\t},\n\n\t_updatePath: function () {\n\t\tthis._renderer._updateCircle(this);\n\t},\n\n\t_empty: function () {\n\t\treturn this._radius && !this._renderer._bounds.intersects(this._pxBounds);\n\t},\n\n\t// Needed by the `Canvas` renderer for interactivity\n\t_containsPoint: function (p) {\n\t\treturn p.distanceTo(this._point) <= this._radius + this._clickTolerance();\n\t}\n});\n\n\n// @factory L.circleMarker(latlng: LatLng, options?: CircleMarker options)\n// Instantiates a circle marker object given a geographical point, and an optional options object.\nfunction circleMarker(latlng, options) {\n\treturn new CircleMarker(latlng, options);\n}\n\n/*\n * @class Circle\n * @aka L.Circle\n * @inherits CircleMarker\n *\n * A class for drawing circle overlays on a map. Extends `CircleMarker`.\n *\n * It's an approximation and starts to diverge from a real circle closer to poles (due to projection distortion).\n *\n * @example\n *\n * ```js\n * L.circle([50.5, 30.5], {radius: 200}).addTo(map);\n * ```\n */\n\nvar Circle = CircleMarker.extend({\n\n\tinitialize: function (latlng, options, legacyOptions) {\n\t\tif (typeof options === 'number') {\n\t\t\t// Backwards compatibility with 0.7.x factory (latlng, radius, options?)\n\t\t\toptions = extend({}, legacyOptions, {radius: options});\n\t\t}\n\t\tsetOptions(this, options);\n\t\tthis._latlng = toLatLng(latlng);\n\n\t\tif (isNaN(this.options.radius)) { throw new Error('Circle radius cannot be NaN'); }\n\n\t\t// @section\n\t\t// @aka Circle options\n\t\t// @option radius: Number; Radius of the circle, in meters.\n\t\tthis._mRadius = this.options.radius;\n\t},\n\n\t// @method setRadius(radius: Number): this\n\t// Sets the radius of a circle. Units are in meters.\n\tsetRadius: function (radius) {\n\t\tthis._mRadius = radius;\n\t\treturn this.redraw();\n\t},\n\n\t// @method getRadius(): Number\n\t// Returns the current radius of a circle. Units are in meters.\n\tgetRadius: function () {\n\t\treturn this._mRadius;\n\t},\n\n\t// @method getBounds(): LatLngBounds\n\t// Returns the `LatLngBounds` of the path.\n\tgetBounds: function () {\n\t\tvar half = [this._radius, this._radiusY || this._radius];\n\n\t\treturn new LatLngBounds(\n\t\t\tthis._map.layerPointToLatLng(this._point.subtract(half)),\n\t\t\tthis._map.layerPointToLatLng(this._point.add(half)));\n\t},\n\n\tsetStyle: Path.prototype.setStyle,\n\n\t_project: function () {\n\n\t\tvar lng = this._latlng.lng,\n\t\t lat = this._latlng.lat,\n\t\t map = this._map,\n\t\t crs = map.options.crs;\n\n\t\tif (crs.distance === Earth.distance) {\n\t\t\tvar d = Math.PI / 180,\n\t\t\t latR = (this._mRadius / Earth.R) / d,\n\t\t\t top = map.project([lat + latR, lng]),\n\t\t\t bottom = map.project([lat - latR, lng]),\n\t\t\t p = top.add(bottom).divideBy(2),\n\t\t\t lat2 = map.unproject(p).lat,\n\t\t\t lngR = Math.acos((Math.cos(latR * d) - Math.sin(lat * d) * Math.sin(lat2 * d)) /\n\t\t\t (Math.cos(lat * d) * Math.cos(lat2 * d))) / d;\n\n\t\t\tif (isNaN(lngR) || lngR === 0) {\n\t\t\t\tlngR = latR / Math.cos(Math.PI / 180 * lat); // Fallback for edge case, #2425\n\t\t\t}\n\n\t\t\tthis._point = p.subtract(map.getPixelOrigin());\n\t\t\tthis._radius = isNaN(lngR) ? 0 : p.x - map.project([lat2, lng - lngR]).x;\n\t\t\tthis._radiusY = p.y - top.y;\n\n\t\t} else {\n\t\t\tvar latlng2 = crs.unproject(crs.project(this._latlng).subtract([this._mRadius, 0]));\n\n\t\t\tthis._point = map.latLngToLayerPoint(this._latlng);\n\t\t\tthis._radius = this._point.x - map.latLngToLayerPoint(latlng2).x;\n\t\t}\n\n\t\tthis._updateBounds();\n\t}\n});\n\n// @factory L.circle(latlng: LatLng, options?: Circle options)\n// Instantiates a circle object given a geographical point, and an options object\n// which contains the circle radius.\n// @alternative\n// @factory L.circle(latlng: LatLng, radius: Number, options?: Circle options)\n// Obsolete way of instantiating a circle, for compatibility with 0.7.x code.\n// Do not use in new applications or plugins.\nfunction circle(latlng, options, legacyOptions) {\n\treturn new Circle(latlng, options, legacyOptions);\n}\n\n/*\n * @class Polyline\n * @aka L.Polyline\n * @inherits Path\n *\n * A class for drawing polyline overlays on a map. Extends `Path`.\n *\n * @example\n *\n * ```js\n * // create a red polyline from an array of LatLng points\n * var latlngs = [\n * \t[45.51, -122.68],\n * \t[37.77, -122.43],\n * \t[34.04, -118.2]\n * ];\n *\n * var polyline = L.polyline(latlngs, {color: 'red'}).addTo(map);\n *\n * // zoom the map to the polyline\n * map.fitBounds(polyline.getBounds());\n * ```\n *\n * You can also pass a multi-dimensional array to represent a `MultiPolyline` shape:\n *\n * ```js\n * // create a red polyline from an array of arrays of LatLng points\n * var latlngs = [\n * \t[[45.51, -122.68],\n * \t [37.77, -122.43],\n * \t [34.04, -118.2]],\n * \t[[40.78, -73.91],\n * \t [41.83, -87.62],\n * \t [32.76, -96.72]]\n * ];\n * ```\n */\n\n\nvar Polyline = Path.extend({\n\n\t// @section\n\t// @aka Polyline options\n\toptions: {\n\t\t// @option smoothFactor: Number = 1.0\n\t\t// How much to simplify the polyline on each zoom level. More means\n\t\t// better performance and smoother look, and less means more accurate representation.\n\t\tsmoothFactor: 1.0,\n\n\t\t// @option noClip: Boolean = false\n\t\t// Disable polyline clipping.\n\t\tnoClip: false\n\t},\n\n\tinitialize: function (latlngs, options) {\n\t\tsetOptions(this, options);\n\t\tthis._setLatLngs(latlngs);\n\t},\n\n\t// @method getLatLngs(): LatLng[]\n\t// Returns an array of the points in the path, or nested arrays of points in case of multi-polyline.\n\tgetLatLngs: function () {\n\t\treturn this._latlngs;\n\t},\n\n\t// @method setLatLngs(latlngs: LatLng[]): this\n\t// Replaces all the points in the polyline with the given array of geographical points.\n\tsetLatLngs: function (latlngs) {\n\t\tthis._setLatLngs(latlngs);\n\t\treturn this.redraw();\n\t},\n\n\t// @method isEmpty(): Boolean\n\t// Returns `true` if the Polyline has no LatLngs.\n\tisEmpty: function () {\n\t\treturn !this._latlngs.length;\n\t},\n\n\t// @method closestLayerPoint(p: Point): Point\n\t// Returns the point closest to `p` on the Polyline.\n\tclosestLayerPoint: function (p) {\n\t\tvar minDistance = Infinity,\n\t\t minPoint = null,\n\t\t closest = _sqClosestPointOnSegment,\n\t\t p1, p2;\n\n\t\tfor (var j = 0, jLen = this._parts.length; j < jLen; j++) {\n\t\t\tvar points = this._parts[j];\n\n\t\t\tfor (var i = 1, len = points.length; i < len; i++) {\n\t\t\t\tp1 = points[i - 1];\n\t\t\t\tp2 = points[i];\n\n\t\t\t\tvar sqDist = closest(p, p1, p2, true);\n\n\t\t\t\tif (sqDist < minDistance) {\n\t\t\t\t\tminDistance = sqDist;\n\t\t\t\t\tminPoint = closest(p, p1, p2);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (minPoint) {\n\t\t\tminPoint.distance = Math.sqrt(minDistance);\n\t\t}\n\t\treturn minPoint;\n\t},\n\n\t// @method getCenter(): LatLng\n\t// Returns the center ([centroid](http://en.wikipedia.org/wiki/Centroid)) of the polyline.\n\tgetCenter: function () {\n\t\t// throws error when not yet added to map as this center calculation requires projected coordinates\n\t\tif (!this._map) {\n\t\t\tthrow new Error('Must add layer to map before using getCenter()');\n\t\t}\n\n\t\tvar i, halfDist, segDist, dist, p1, p2, ratio,\n\t\t points = this._rings[0],\n\t\t len = points.length;\n\n\t\tif (!len) { return null; }\n\n\t\t// polyline centroid algorithm; only uses the first ring if there are multiple\n\n\t\tfor (i = 0, halfDist = 0; i < len - 1; i++) {\n\t\t\thalfDist += points[i].distanceTo(points[i + 1]) / 2;\n\t\t}\n\n\t\t// The line is so small in the current view that all points are on the same pixel.\n\t\tif (halfDist === 0) {\n\t\t\treturn this._map.layerPointToLatLng(points[0]);\n\t\t}\n\n\t\tfor (i = 0, dist = 0; i < len - 1; i++) {\n\t\t\tp1 = points[i];\n\t\t\tp2 = points[i + 1];\n\t\t\tsegDist = p1.distanceTo(p2);\n\t\t\tdist += segDist;\n\n\t\t\tif (dist > halfDist) {\n\t\t\t\tratio = (dist - halfDist) / segDist;\n\t\t\t\treturn this._map.layerPointToLatLng([\n\t\t\t\t\tp2.x - ratio * (p2.x - p1.x),\n\t\t\t\t\tp2.y - ratio * (p2.y - p1.y)\n\t\t\t\t]);\n\t\t\t}\n\t\t}\n\t},\n\n\t// @method getBounds(): LatLngBounds\n\t// Returns the `LatLngBounds` of the path.\n\tgetBounds: function () {\n\t\treturn this._bounds;\n\t},\n\n\t// @method addLatLng(latlng: LatLng, latlngs? LatLng[]): this\n\t// Adds a given point to the polyline. By default, adds to the first ring of\n\t// the polyline in case of a multi-polyline, but can be overridden by passing\n\t// a specific ring as a LatLng array (that you can earlier access with [`getLatLngs`](#polyline-getlatlngs)).\n\taddLatLng: function (latlng, latlngs) {\n\t\tlatlngs = latlngs || this._defaultShape();\n\t\tlatlng = toLatLng(latlng);\n\t\tlatlngs.push(latlng);\n\t\tthis._bounds.extend(latlng);\n\t\treturn this.redraw();\n\t},\n\n\t_setLatLngs: function (latlngs) {\n\t\tthis._bounds = new LatLngBounds();\n\t\tthis._latlngs = this._convertLatLngs(latlngs);\n\t},\n\n\t_defaultShape: function () {\n\t\treturn isFlat(this._latlngs) ? this._latlngs : this._latlngs[0];\n\t},\n\n\t// recursively convert latlngs input into actual LatLng instances; calculate bounds along the way\n\t_convertLatLngs: function (latlngs) {\n\t\tvar result = [],\n\t\t flat = isFlat(latlngs);\n\n\t\tfor (var i = 0, len = latlngs.length; i < len; i++) {\n\t\t\tif (flat) {\n\t\t\t\tresult[i] = toLatLng(latlngs[i]);\n\t\t\t\tthis._bounds.extend(result[i]);\n\t\t\t} else {\n\t\t\t\tresult[i] = this._convertLatLngs(latlngs[i]);\n\t\t\t}\n\t\t}\n\n\t\treturn result;\n\t},\n\n\t_project: function () {\n\t\tvar pxBounds = new Bounds();\n\t\tthis._rings = [];\n\t\tthis._projectLatlngs(this._latlngs, this._rings, pxBounds);\n\n\t\tvar w = this._clickTolerance(),\n\t\t p = new Point(w, w);\n\n\t\tif (this._bounds.isValid() && pxBounds.isValid()) {\n\t\t\tpxBounds.min._subtract(p);\n\t\t\tpxBounds.max._add(p);\n\t\t\tthis._pxBounds = pxBounds;\n\t\t}\n\t},\n\n\t// recursively turns latlngs into a set of rings with projected coordinates\n\t_projectLatlngs: function (latlngs, result, projectedBounds) {\n\t\tvar flat = latlngs[0] instanceof LatLng,\n\t\t len = latlngs.length,\n\t\t i, ring;\n\n\t\tif (flat) {\n\t\t\tring = [];\n\t\t\tfor (i = 0; i < len; i++) {\n\t\t\t\tring[i] = this._map.latLngToLayerPoint(latlngs[i]);\n\t\t\t\tprojectedBounds.extend(ring[i]);\n\t\t\t}\n\t\t\tresult.push(ring);\n\t\t} else {\n\t\t\tfor (i = 0; i < len; i++) {\n\t\t\t\tthis._projectLatlngs(latlngs[i], result, projectedBounds);\n\t\t\t}\n\t\t}\n\t},\n\n\t// clip polyline by renderer bounds so that we have less to render for performance\n\t_clipPoints: function () {\n\t\tvar bounds = this._renderer._bounds;\n\n\t\tthis._parts = [];\n\t\tif (!this._pxBounds || !this._pxBounds.intersects(bounds)) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (this.options.noClip) {\n\t\t\tthis._parts = this._rings;\n\t\t\treturn;\n\t\t}\n\n\t\tvar parts = this._parts,\n\t\t i, j, k, len, len2, segment, points;\n\n\t\tfor (i = 0, k = 0, len = this._rings.length; i < len; i++) {\n\t\t\tpoints = this._rings[i];\n\n\t\t\tfor (j = 0, len2 = points.length; j < len2 - 1; j++) {\n\t\t\t\tsegment = clipSegment(points[j], points[j + 1], bounds, j, true);\n\n\t\t\t\tif (!segment) { continue; }\n\n\t\t\t\tparts[k] = parts[k] || [];\n\t\t\t\tparts[k].push(segment[0]);\n\n\t\t\t\t// if segment goes out of screen, or it's the last one, it's the end of the line part\n\t\t\t\tif ((segment[1] !== points[j + 1]) || (j === len2 - 2)) {\n\t\t\t\t\tparts[k].push(segment[1]);\n\t\t\t\t\tk++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t},\n\n\t// simplify each clipped part of the polyline for performance\n\t_simplifyPoints: function () {\n\t\tvar parts = this._parts,\n\t\t tolerance = this.options.smoothFactor;\n\n\t\tfor (var i = 0, len = parts.length; i < len; i++) {\n\t\t\tparts[i] = simplify(parts[i], tolerance);\n\t\t}\n\t},\n\n\t_update: function () {\n\t\tif (!this._map) { return; }\n\n\t\tthis._clipPoints();\n\t\tthis._simplifyPoints();\n\t\tthis._updatePath();\n\t},\n\n\t_updatePath: function () {\n\t\tthis._renderer._updatePoly(this);\n\t},\n\n\t// Needed by the `Canvas` renderer for interactivity\n\t_containsPoint: function (p, closed) {\n\t\tvar i, j, k, len, len2, part,\n\t\t w = this._clickTolerance();\n\n\t\tif (!this._pxBounds || !this._pxBounds.contains(p)) { return false; }\n\n\t\t// hit detection for polylines\n\t\tfor (i = 0, len = this._parts.length; i < len; i++) {\n\t\t\tpart = this._parts[i];\n\n\t\t\tfor (j = 0, len2 = part.length, k = len2 - 1; j < len2; k = j++) {\n\t\t\t\tif (!closed && (j === 0)) { continue; }\n\n\t\t\t\tif (pointToSegmentDistance(p, part[k], part[j]) <= w) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}\n});\n\n// @factory L.polyline(latlngs: LatLng[], options?: Polyline options)\n// Instantiates a polyline object given an array of geographical points and\n// optionally an options object. You can create a `Polyline` object with\n// multiple separate lines (`MultiPolyline`) by passing an array of arrays\n// of geographic points.\nfunction polyline(latlngs, options) {\n\treturn new Polyline(latlngs, options);\n}\n\n// Retrocompat. Allow plugins to support Leaflet versions before and after 1.1.\nPolyline._flat = _flat;\n\n/*\n * @class Polygon\n * @aka L.Polygon\n * @inherits Polyline\n *\n * A class for drawing polygon overlays on a map. Extends `Polyline`.\n *\n * Note that points you pass when creating a polygon shouldn't have an additional last point equal to the first one — it's better to filter out such points.\n *\n *\n * @example\n *\n * ```js\n * // create a red polygon from an array of LatLng points\n * var latlngs = [[37, -109.05],[41, -109.03],[41, -102.05],[37, -102.04]];\n *\n * var polygon = L.polygon(latlngs, {color: 'red'}).addTo(map);\n *\n * // zoom the map to the polygon\n * map.fitBounds(polygon.getBounds());\n * ```\n *\n * You can also pass an array of arrays of latlngs, with the first array representing the outer shape and the other arrays representing holes in the outer shape:\n *\n * ```js\n * var latlngs = [\n * [[37, -109.05],[41, -109.03],[41, -102.05],[37, -102.04]], // outer ring\n * [[37.29, -108.58],[40.71, -108.58],[40.71, -102.50],[37.29, -102.50]] // hole\n * ];\n * ```\n *\n * Additionally, you can pass a multi-dimensional array to represent a MultiPolygon shape.\n *\n * ```js\n * var latlngs = [\n * [ // first polygon\n * [[37, -109.05],[41, -109.03],[41, -102.05],[37, -102.04]], // outer ring\n * [[37.29, -108.58],[40.71, -108.58],[40.71, -102.50],[37.29, -102.50]] // hole\n * ],\n * [ // second polygon\n * [[41, -111.03],[45, -111.04],[45, -104.05],[41, -104.05]]\n * ]\n * ];\n * ```\n */\n\nvar Polygon = Polyline.extend({\n\n\toptions: {\n\t\tfill: true\n\t},\n\n\tisEmpty: function () {\n\t\treturn !this._latlngs.length || !this._latlngs[0].length;\n\t},\n\n\tgetCenter: function () {\n\t\t// throws error when not yet added to map as this center calculation requires projected coordinates\n\t\tif (!this._map) {\n\t\t\tthrow new Error('Must add layer to map before using getCenter()');\n\t\t}\n\n\t\tvar i, j, p1, p2, f, area, x, y, center,\n\t\t points = this._rings[0],\n\t\t len = points.length;\n\n\t\tif (!len) { return null; }\n\n\t\t// polygon centroid algorithm; only uses the first ring if there are multiple\n\n\t\tarea = x = y = 0;\n\n\t\tfor (i = 0, j = len - 1; i < len; j = i++) {\n\t\t\tp1 = points[i];\n\t\t\tp2 = points[j];\n\n\t\t\tf = p1.y * p2.x - p2.y * p1.x;\n\t\t\tx += (p1.x + p2.x) * f;\n\t\t\ty += (p1.y + p2.y) * f;\n\t\t\tarea += f * 3;\n\t\t}\n\n\t\tif (area === 0) {\n\t\t\t// Polygon is so small that all points are on same pixel.\n\t\t\tcenter = points[0];\n\t\t} else {\n\t\t\tcenter = [x / area, y / area];\n\t\t}\n\t\treturn this._map.layerPointToLatLng(center);\n\t},\n\n\t_convertLatLngs: function (latlngs) {\n\t\tvar result = Polyline.prototype._convertLatLngs.call(this, latlngs),\n\t\t len = result.length;\n\n\t\t// remove last point if it equals first one\n\t\tif (len >= 2 && result[0] instanceof LatLng && result[0].equals(result[len - 1])) {\n\t\t\tresult.pop();\n\t\t}\n\t\treturn result;\n\t},\n\n\t_setLatLngs: function (latlngs) {\n\t\tPolyline.prototype._setLatLngs.call(this, latlngs);\n\t\tif (isFlat(this._latlngs)) {\n\t\t\tthis._latlngs = [this._latlngs];\n\t\t}\n\t},\n\n\t_defaultShape: function () {\n\t\treturn isFlat(this._latlngs[0]) ? this._latlngs[0] : this._latlngs[0][0];\n\t},\n\n\t_clipPoints: function () {\n\t\t// polygons need a different clipping algorithm so we redefine that\n\n\t\tvar bounds = this._renderer._bounds,\n\t\t w = this.options.weight,\n\t\t p = new Point(w, w);\n\n\t\t// increase clip padding by stroke width to avoid stroke on clip edges\n\t\tbounds = new Bounds(bounds.min.subtract(p), bounds.max.add(p));\n\n\t\tthis._parts = [];\n\t\tif (!this._pxBounds || !this._pxBounds.intersects(bounds)) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (this.options.noClip) {\n\t\t\tthis._parts = this._rings;\n\t\t\treturn;\n\t\t}\n\n\t\tfor (var i = 0, len = this._rings.length, clipped; i < len; i++) {\n\t\t\tclipped = clipPolygon(this._rings[i], bounds, true);\n\t\t\tif (clipped.length) {\n\t\t\t\tthis._parts.push(clipped);\n\t\t\t}\n\t\t}\n\t},\n\n\t_updatePath: function () {\n\t\tthis._renderer._updatePoly(this, true);\n\t},\n\n\t// Needed by the `Canvas` renderer for interactivity\n\t_containsPoint: function (p) {\n\t\tvar inside = false,\n\t\t part, p1, p2, i, j, k, len, len2;\n\n\t\tif (!this._pxBounds || !this._pxBounds.contains(p)) { return false; }\n\n\t\t// ray casting algorithm for detecting if point is in polygon\n\t\tfor (i = 0, len = this._parts.length; i < len; i++) {\n\t\t\tpart = this._parts[i];\n\n\t\t\tfor (j = 0, len2 = part.length, k = len2 - 1; j < len2; k = j++) {\n\t\t\t\tp1 = part[j];\n\t\t\t\tp2 = part[k];\n\n\t\t\t\tif (((p1.y > p.y) !== (p2.y > p.y)) && (p.x < (p2.x - p1.x) * (p.y - p1.y) / (p2.y - p1.y) + p1.x)) {\n\t\t\t\t\tinside = !inside;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// also check if it's on polygon stroke\n\t\treturn inside || Polyline.prototype._containsPoint.call(this, p, true);\n\t}\n\n});\n\n\n// @factory L.polygon(latlngs: LatLng[], options?: Polyline options)\nfunction polygon(latlngs, options) {\n\treturn new Polygon(latlngs, options);\n}\n\n/*\r\n * @class GeoJSON\r\n * @aka L.GeoJSON\r\n * @inherits FeatureGroup\r\n *\r\n * Represents a GeoJSON object or an array of GeoJSON objects. Allows you to parse\r\n * GeoJSON data and display it on the map. Extends `FeatureGroup`.\r\n *\r\n * @example\r\n *\r\n * ```js\r\n * L.geoJSON(data, {\r\n * \tstyle: function (feature) {\r\n * \t\treturn {color: feature.properties.color};\r\n * \t}\r\n * }).bindPopup(function (layer) {\r\n * \treturn layer.feature.properties.description;\r\n * }).addTo(map);\r\n * ```\r\n */\r\n\r\nvar GeoJSON = FeatureGroup.extend({\r\n\r\n\t/* @section\r\n\t * @aka GeoJSON options\r\n\t *\r\n\t * @option pointToLayer: Function = *\r\n\t * A `Function` defining how GeoJSON points spawn Leaflet layers. It is internally\r\n\t * called when data is added, passing the GeoJSON point feature and its `LatLng`.\r\n\t * The default is to spawn a default `Marker`:\r\n\t * ```js\r\n\t * function(geoJsonPoint, latlng) {\r\n\t * \treturn L.marker(latlng);\r\n\t * }\r\n\t * ```\r\n\t *\r\n\t * @option style: Function = *\r\n\t * A `Function` defining the `Path options` for styling GeoJSON lines and polygons,\r\n\t * called internally when data is added.\r\n\t * The default value is to not override any defaults:\r\n\t * ```js\r\n\t * function (geoJsonFeature) {\r\n\t * \treturn {}\r\n\t * }\r\n\t * ```\r\n\t *\r\n\t * @option onEachFeature: Function = *\r\n\t * A `Function` that will be called once for each created `Feature`, after it has\r\n\t * been created and styled. Useful for attaching events and popups to features.\r\n\t * The default is to do nothing with the newly created layers:\r\n\t * ```js\r\n\t * function (feature, layer) {}\r\n\t * ```\r\n\t *\r\n\t * @option filter: Function = *\r\n\t * A `Function` that will be used to decide whether to include a feature or not.\r\n\t * The default is to include all features:\r\n\t * ```js\r\n\t * function (geoJsonFeature) {\r\n\t * \treturn true;\r\n\t * }\r\n\t * ```\r\n\t * Note: dynamically changing the `filter` option will have effect only on newly\r\n\t * added data. It will _not_ re-evaluate already included features.\r\n\t *\r\n\t * @option coordsToLatLng: Function = *\r\n\t * A `Function` that will be used for converting GeoJSON coordinates to `LatLng`s.\r\n\t * The default is the `coordsToLatLng` static method.\r\n\t */\r\n\r\n\tinitialize: function (geojson, options) {\r\n\t\tsetOptions(this, options);\r\n\r\n\t\tthis._layers = {};\r\n\r\n\t\tif (geojson) {\r\n\t\t\tthis.addData(geojson);\r\n\t\t}\r\n\t},\r\n\r\n\t// @method addData( <GeoJSON> data ): this\r\n\t// Adds a GeoJSON object to the layer.\r\n\taddData: function (geojson) {\r\n\t\tvar features = isArray(geojson) ? geojson : geojson.features,\r\n\t\t i, len, feature;\r\n\r\n\t\tif (features) {\r\n\t\t\tfor (i = 0, len = features.length; i < len; i++) {\r\n\t\t\t\t// only add this if geometry or geometries are set and not null\r\n\t\t\t\tfeature = features[i];\r\n\t\t\t\tif (feature.geometries || feature.geometry || feature.features || feature.coordinates) {\r\n\t\t\t\t\tthis.addData(feature);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn this;\r\n\t\t}\r\n\r\n\t\tvar options = this.options;\r\n\r\n\t\tif (options.filter && !options.filter(geojson)) { return this; }\r\n\r\n\t\tvar layer = geometryToLayer(geojson, options);\r\n\t\tif (!layer) {\r\n\t\t\treturn this;\r\n\t\t}\r\n\t\tlayer.feature = asFeature(geojson);\r\n\r\n\t\tlayer.defaultOptions = layer.options;\r\n\t\tthis.resetStyle(layer);\r\n\r\n\t\tif (options.onEachFeature) {\r\n\t\t\toptions.onEachFeature(geojson, layer);\r\n\t\t}\r\n\r\n\t\treturn this.addLayer(layer);\r\n\t},\r\n\r\n\t// @method resetStyle( <Path> layer ): this\r\n\t// Resets the given vector layer's style to the original GeoJSON style, useful for resetting style after hover events.\r\n\tresetStyle: function (layer) {\r\n\t\t// reset any custom styles\r\n\t\tlayer.options = extend({}, layer.defaultOptions);\r\n\t\tthis._setLayerStyle(layer, this.options.style);\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method setStyle( <Function> style ): this\r\n\t// Changes styles of GeoJSON vector layers with the given style function.\r\n\tsetStyle: function (style) {\r\n\t\treturn this.eachLayer(function (layer) {\r\n\t\t\tthis._setLayerStyle(layer, style);\r\n\t\t}, this);\r\n\t},\r\n\r\n\t_setLayerStyle: function (layer, style) {\r\n\t\tif (typeof style === 'function') {\r\n\t\t\tstyle = style(layer.feature);\r\n\t\t}\r\n\t\tif (layer.setStyle) {\r\n\t\t\tlayer.setStyle(style);\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// @section\r\n// There are several static functions which can be called without instantiating L.GeoJSON:\r\n\r\n// @function geometryToLayer(featureData: Object, options?: GeoJSON options): Layer\r\n// Creates a `Layer` from a given GeoJSON feature. Can use a custom\r\n// [`pointToLayer`](#geojson-pointtolayer) and/or [`coordsToLatLng`](#geojson-coordstolatlng)\r\n// functions if provided as options.\r\nfunction geometryToLayer(geojson, options) {\r\n\r\n\tvar geometry = geojson.type === 'Feature' ? geojson.geometry : geojson,\r\n\t coords = geometry ? geometry.coordinates : null,\r\n\t layers = [],\r\n\t pointToLayer = options && options.pointToLayer,\r\n\t _coordsToLatLng = options && options.coordsToLatLng || coordsToLatLng,\r\n\t latlng, latlngs, i, len;\r\n\r\n\tif (!coords && !geometry) {\r\n\t\treturn null;\r\n\t}\r\n\r\n\tswitch (geometry.type) {\r\n\tcase 'Point':\r\n\t\tlatlng = _coordsToLatLng(coords);\r\n\t\treturn pointToLayer ? pointToLayer(geojson, latlng) : new Marker(latlng);\r\n\r\n\tcase 'MultiPoint':\r\n\t\tfor (i = 0, len = coords.length; i < len; i++) {\r\n\t\t\tlatlng = _coordsToLatLng(coords[i]);\r\n\t\t\tlayers.push(pointToLayer ? pointToLayer(geojson, latlng) : new Marker(latlng));\r\n\t\t}\r\n\t\treturn new FeatureGroup(layers);\r\n\r\n\tcase 'LineString':\r\n\tcase 'MultiLineString':\r\n\t\tlatlngs = coordsToLatLngs(coords, geometry.type === 'LineString' ? 0 : 1, _coordsToLatLng);\r\n\t\treturn new Polyline(latlngs, options);\r\n\r\n\tcase 'Polygon':\r\n\tcase 'MultiPolygon':\r\n\t\tlatlngs = coordsToLatLngs(coords, geometry.type === 'Polygon' ? 1 : 2, _coordsToLatLng);\r\n\t\treturn new Polygon(latlngs, options);\r\n\r\n\tcase 'GeometryCollection':\r\n\t\tfor (i = 0, len = geometry.geometries.length; i < len; i++) {\r\n\t\t\tvar layer = geometryToLayer({\r\n\t\t\t\tgeometry: geometry.geometries[i],\r\n\t\t\t\ttype: 'Feature',\r\n\t\t\t\tproperties: geojson.properties\r\n\t\t\t}, options);\r\n\r\n\t\t\tif (layer) {\r\n\t\t\t\tlayers.push(layer);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn new FeatureGroup(layers);\r\n\r\n\tdefault:\r\n\t\tthrow new Error('Invalid GeoJSON object.');\r\n\t}\r\n}\r\n\r\n// @function coordsToLatLng(coords: Array): LatLng\r\n// Creates a `LatLng` object from an array of 2 numbers (longitude, latitude)\r\n// or 3 numbers (longitude, latitude, altitude) used in GeoJSON for points.\r\nfunction coordsToLatLng(coords) {\r\n\treturn new LatLng(coords[1], coords[0], coords[2]);\r\n}\r\n\r\n// @function coordsToLatLngs(coords: Array, levelsDeep?: Number, coordsToLatLng?: Function): Array\r\n// Creates a multidimensional array of `LatLng`s from a GeoJSON coordinates array.\r\n// `levelsDeep` specifies the nesting level (0 is for an array of points, 1 for an array of arrays of points, etc., 0 by default).\r\n// Can use a custom [`coordsToLatLng`](#geojson-coordstolatlng) function.\r\nfunction coordsToLatLngs(coords, levelsDeep, _coordsToLatLng) {\r\n\tvar latlngs = [];\r\n\r\n\tfor (var i = 0, len = coords.length, latlng; i < len; i++) {\r\n\t\tlatlng = levelsDeep ?\r\n\t\t\tcoordsToLatLngs(coords[i], levelsDeep - 1, _coordsToLatLng) :\r\n\t\t\t(_coordsToLatLng || coordsToLatLng)(coords[i]);\r\n\r\n\t\tlatlngs.push(latlng);\r\n\t}\r\n\r\n\treturn latlngs;\r\n}\r\n\r\n// @function latLngToCoords(latlng: LatLng, precision?: Number): Array\r\n// Reverse of [`coordsToLatLng`](#geojson-coordstolatlng)\r\nfunction latLngToCoords(latlng, precision) {\r\n\tprecision = typeof precision === 'number' ? precision : 6;\r\n\treturn latlng.alt !== undefined ?\r\n\t\t[formatNum(latlng.lng, precision), formatNum(latlng.lat, precision), formatNum(latlng.alt, precision)] :\r\n\t\t[formatNum(latlng.lng, precision), formatNum(latlng.lat, precision)];\r\n}\r\n\r\n// @function latLngsToCoords(latlngs: Array, levelsDeep?: Number, closed?: Boolean): Array\r\n// Reverse of [`coordsToLatLngs`](#geojson-coordstolatlngs)\r\n// `closed` determines whether the first point should be appended to the end of the array to close the feature, only used when `levelsDeep` is 0. False by default.\r\nfunction latLngsToCoords(latlngs, levelsDeep, closed, precision) {\r\n\tvar coords = [];\r\n\r\n\tfor (var i = 0, len = latlngs.length; i < len; i++) {\r\n\t\tcoords.push(levelsDeep ?\r\n\t\t\tlatLngsToCoords(latlngs[i], levelsDeep - 1, closed, precision) :\r\n\t\t\tlatLngToCoords(latlngs[i], precision));\r\n\t}\r\n\r\n\tif (!levelsDeep && closed) {\r\n\t\tcoords.push(coords[0]);\r\n\t}\r\n\r\n\treturn coords;\r\n}\r\n\r\nfunction getFeature(layer, newGeometry) {\r\n\treturn layer.feature ?\r\n\t\textend({}, layer.feature, {geometry: newGeometry}) :\r\n\t\tasFeature(newGeometry);\r\n}\r\n\r\n// @function asFeature(geojson: Object): Object\r\n// Normalize GeoJSON geometries/features into GeoJSON features.\r\nfunction asFeature(geojson) {\r\n\tif (geojson.type === 'Feature' || geojson.type === 'FeatureCollection') {\r\n\t\treturn geojson;\r\n\t}\r\n\r\n\treturn {\r\n\t\ttype: 'Feature',\r\n\t\tproperties: {},\r\n\t\tgeometry: geojson\r\n\t};\r\n}\r\n\r\nvar PointToGeoJSON = {\r\n\ttoGeoJSON: function (precision) {\r\n\t\treturn getFeature(this, {\r\n\t\t\ttype: 'Point',\r\n\t\t\tcoordinates: latLngToCoords(this.getLatLng(), precision)\r\n\t\t});\r\n\t}\r\n};\r\n\r\n// @namespace Marker\r\n// @method toGeoJSON(): Object\r\n// Returns a [`GeoJSON`](http://en.wikipedia.org/wiki/GeoJSON) representation of the marker (as a GeoJSON `Point` Feature).\r\nMarker.include(PointToGeoJSON);\r\n\r\n// @namespace CircleMarker\r\n// @method toGeoJSON(): Object\r\n// Returns a [`GeoJSON`](http://en.wikipedia.org/wiki/GeoJSON) representation of the circle marker (as a GeoJSON `Point` Feature).\r\nCircle.include(PointToGeoJSON);\r\nCircleMarker.include(PointToGeoJSON);\r\n\r\n\r\n// @namespace Polyline\r\n// @method toGeoJSON(): Object\r\n// Returns a [`GeoJSON`](http://en.wikipedia.org/wiki/GeoJSON) representation of the polyline (as a GeoJSON `LineString` or `MultiLineString` Feature).\r\nPolyline.include({\r\n\ttoGeoJSON: function (precision) {\r\n\t\tvar multi = !isFlat(this._latlngs);\r\n\r\n\t\tvar coords = latLngsToCoords(this._latlngs, multi ? 1 : 0, false, precision);\r\n\r\n\t\treturn getFeature(this, {\r\n\t\t\ttype: (multi ? 'Multi' : '') + 'LineString',\r\n\t\t\tcoordinates: coords\r\n\t\t});\r\n\t}\r\n});\r\n\r\n// @namespace Polygon\r\n// @method toGeoJSON(): Object\r\n// Returns a [`GeoJSON`](http://en.wikipedia.org/wiki/GeoJSON) representation of the polygon (as a GeoJSON `Polygon` or `MultiPolygon` Feature).\r\nPolygon.include({\r\n\ttoGeoJSON: function (precision) {\r\n\t\tvar holes = !isFlat(this._latlngs),\r\n\t\t multi = holes && !isFlat(this._latlngs[0]);\r\n\r\n\t\tvar coords = latLngsToCoords(this._latlngs, multi ? 2 : holes ? 1 : 0, true, precision);\r\n\r\n\t\tif (!holes) {\r\n\t\t\tcoords = [coords];\r\n\t\t}\r\n\r\n\t\treturn getFeature(this, {\r\n\t\t\ttype: (multi ? 'Multi' : '') + 'Polygon',\r\n\t\t\tcoordinates: coords\r\n\t\t});\r\n\t}\r\n});\r\n\r\n\r\n// @namespace LayerGroup\r\nLayerGroup.include({\r\n\ttoMultiPoint: function (precision) {\r\n\t\tvar coords = [];\r\n\r\n\t\tthis.eachLayer(function (layer) {\r\n\t\t\tcoords.push(layer.toGeoJSON(precision).geometry.coordinates);\r\n\t\t});\r\n\r\n\t\treturn getFeature(this, {\r\n\t\t\ttype: 'MultiPoint',\r\n\t\t\tcoordinates: coords\r\n\t\t});\r\n\t},\r\n\r\n\t// @method toGeoJSON(): Object\r\n\t// Returns a [`GeoJSON`](http://en.wikipedia.org/wiki/GeoJSON) representation of the layer group (as a GeoJSON `FeatureCollection`, `GeometryCollection`, or `MultiPoint`).\r\n\ttoGeoJSON: function (precision) {\r\n\r\n\t\tvar type = this.feature && this.feature.geometry && this.feature.geometry.type;\r\n\r\n\t\tif (type === 'MultiPoint') {\r\n\t\t\treturn this.toMultiPoint(precision);\r\n\t\t}\r\n\r\n\t\tvar isGeometryCollection = type === 'GeometryCollection',\r\n\t\t jsons = [];\r\n\r\n\t\tthis.eachLayer(function (layer) {\r\n\t\t\tif (layer.toGeoJSON) {\r\n\t\t\t\tvar json = layer.toGeoJSON(precision);\r\n\t\t\t\tif (isGeometryCollection) {\r\n\t\t\t\t\tjsons.push(json.geometry);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tvar feature = asFeature(json);\r\n\t\t\t\t\t// Squash nested feature collections\r\n\t\t\t\t\tif (feature.type === 'FeatureCollection') {\r\n\t\t\t\t\t\tjsons.push.apply(jsons, feature.features);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tjsons.push(feature);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tif (isGeometryCollection) {\r\n\t\t\treturn getFeature(this, {\r\n\t\t\t\tgeometries: jsons,\r\n\t\t\t\ttype: 'GeometryCollection'\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\treturn {\r\n\t\t\ttype: 'FeatureCollection',\r\n\t\t\tfeatures: jsons\r\n\t\t};\r\n\t}\r\n});\r\n\r\n// @namespace GeoJSON\r\n// @factory L.geoJSON(geojson?: Object, options?: GeoJSON options)\r\n// Creates a GeoJSON layer. Optionally accepts an object in\r\n// [GeoJSON format](https://tools.ietf.org/html/rfc7946) to display on the map\r\n// (you can alternatively add it later with `addData` method) and an `options` object.\r\nfunction geoJSON(geojson, options) {\r\n\treturn new GeoJSON(geojson, options);\r\n}\r\n\r\n// Backward compatibility.\r\nvar geoJson = geoJSON;\n\n/*\r\n * @class ImageOverlay\r\n * @aka L.ImageOverlay\r\n * @inherits Interactive layer\r\n *\r\n * Used to load and display a single image over specific bounds of the map. Extends `Layer`.\r\n *\r\n * @example\r\n *\r\n * ```js\r\n * var imageUrl = 'http://www.lib.utexas.edu/maps/historical/newark_nj_1922.jpg',\r\n * \timageBounds = [[40.712216, -74.22655], [40.773941, -74.12544]];\r\n * L.imageOverlay(imageUrl, imageBounds).addTo(map);\r\n * ```\r\n */\r\n\r\nvar ImageOverlay = Layer.extend({\r\n\r\n\t// @section\r\n\t// @aka ImageOverlay options\r\n\toptions: {\r\n\t\t// @option opacity: Number = 1.0\r\n\t\t// The opacity of the image overlay.\r\n\t\topacity: 1,\r\n\r\n\t\t// @option alt: String = ''\r\n\t\t// Text for the `alt` attribute of the image (useful for accessibility).\r\n\t\talt: '',\r\n\r\n\t\t// @option interactive: Boolean = false\r\n\t\t// If `true`, the image overlay will emit [mouse events](#interactive-layer) when clicked or hovered.\r\n\t\tinteractive: false,\r\n\r\n\t\t// @option crossOrigin: Boolean|String = false\r\n\t\t// Whether the crossOrigin attribute will be added to the image.\r\n\t\t// If a String is provided, the image will have its crossOrigin attribute set to the String provided. This is needed if you want to access image pixel data.\r\n\t\t// Refer to [CORS Settings](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_settings_attributes) for valid String values.\r\n\t\tcrossOrigin: false,\r\n\r\n\t\t// @option errorOverlayUrl: String = ''\r\n\t\t// URL to the overlay image to show in place of the overlay that failed to load.\r\n\t\terrorOverlayUrl: '',\r\n\r\n\t\t// @option zIndex: Number = 1\r\n\t\t// The explicit [zIndex](https://developer.mozilla.org/docs/Web/CSS/CSS_Positioning/Understanding_z_index) of the tile layer.\r\n\t\tzIndex: 1,\r\n\r\n\t\t// @option className: String = ''\r\n\t\t// A custom class name to assign to the image. Empty by default.\r\n\t\tclassName: '',\r\n\t},\r\n\r\n\tinitialize: function (url, bounds, options) { // (String, LatLngBounds, Object)\r\n\t\tthis._url = url;\r\n\t\tthis._bounds = toLatLngBounds(bounds);\r\n\r\n\t\tsetOptions(this, options);\r\n\t},\r\n\r\n\tonAdd: function () {\r\n\t\tif (!this._image) {\r\n\t\t\tthis._initImage();\r\n\r\n\t\t\tif (this.options.opacity < 1) {\r\n\t\t\t\tthis._updateOpacity();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (this.options.interactive) {\r\n\t\t\taddClass(this._image, 'leaflet-interactive');\r\n\t\t\tthis.addInteractiveTarget(this._image);\r\n\t\t}\r\n\r\n\t\tthis.getPane().appendChild(this._image);\r\n\t\tthis._reset();\r\n\t},\r\n\r\n\tonRemove: function () {\r\n\t\tremove(this._image);\r\n\t\tif (this.options.interactive) {\r\n\t\t\tthis.removeInteractiveTarget(this._image);\r\n\t\t}\r\n\t},\r\n\r\n\t// @method setOpacity(opacity: Number): this\r\n\t// Sets the opacity of the overlay.\r\n\tsetOpacity: function (opacity) {\r\n\t\tthis.options.opacity = opacity;\r\n\r\n\t\tif (this._image) {\r\n\t\t\tthis._updateOpacity();\r\n\t\t}\r\n\t\treturn this;\r\n\t},\r\n\r\n\tsetStyle: function (styleOpts) {\r\n\t\tif (styleOpts.opacity) {\r\n\t\t\tthis.setOpacity(styleOpts.opacity);\r\n\t\t}\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method bringToFront(): this\r\n\t// Brings the layer to the top of all overlays.\r\n\tbringToFront: function () {\r\n\t\tif (this._map) {\r\n\t\t\ttoFront(this._image);\r\n\t\t}\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method bringToBack(): this\r\n\t// Brings the layer to the bottom of all overlays.\r\n\tbringToBack: function () {\r\n\t\tif (this._map) {\r\n\t\t\ttoBack(this._image);\r\n\t\t}\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method setUrl(url: String): this\r\n\t// Changes the URL of the image.\r\n\tsetUrl: function (url) {\r\n\t\tthis._url = url;\r\n\r\n\t\tif (this._image) {\r\n\t\t\tthis._image.src = url;\r\n\t\t}\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method setBounds(bounds: LatLngBounds): this\r\n\t// Update the bounds that this ImageOverlay covers\r\n\tsetBounds: function (bounds) {\r\n\t\tthis._bounds = toLatLngBounds(bounds);\r\n\r\n\t\tif (this._map) {\r\n\t\t\tthis._reset();\r\n\t\t}\r\n\t\treturn this;\r\n\t},\r\n\r\n\tgetEvents: function () {\r\n\t\tvar events = {\r\n\t\t\tzoom: this._reset,\r\n\t\t\tviewreset: this._reset\r\n\t\t};\r\n\r\n\t\tif (this._zoomAnimated) {\r\n\t\t\tevents.zoomanim = this._animateZoom;\r\n\t\t}\r\n\r\n\t\treturn events;\r\n\t},\r\n\r\n\t// @method: setZIndex(value: Number) : this\r\n\t// Changes the [zIndex](#imageoverlay-zindex) of the image overlay.\r\n\tsetZIndex: function (value) {\r\n\t\tthis.options.zIndex = value;\r\n\t\tthis._updateZIndex();\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method getBounds(): LatLngBounds\r\n\t// Get the bounds that this ImageOverlay covers\r\n\tgetBounds: function () {\r\n\t\treturn this._bounds;\r\n\t},\r\n\r\n\t// @method getElement(): HTMLElement\r\n\t// Returns the instance of [`HTMLImageElement`](https://developer.mozilla.org/docs/Web/API/HTMLImageElement)\r\n\t// used by this overlay.\r\n\tgetElement: function () {\r\n\t\treturn this._image;\r\n\t},\r\n\r\n\t_initImage: function () {\r\n\t\tvar wasElementSupplied = this._url.tagName === 'IMG';\r\n\t\tvar img = this._image = wasElementSupplied ? this._url : create$1('img');\r\n\r\n\t\taddClass(img, 'leaflet-image-layer');\r\n\t\tif (this._zoomAnimated) { addClass(img, 'leaflet-zoom-animated'); }\r\n\t\tif (this.options.className) { addClass(img, this.options.className); }\r\n\r\n\t\timg.onselectstart = falseFn;\r\n\t\timg.onmousemove = falseFn;\r\n\r\n\t\t// @event load: Event\r\n\t\t// Fired when the ImageOverlay layer has loaded its image\r\n\t\timg.onload = bind(this.fire, this, 'load');\r\n\t\timg.onerror = bind(this._overlayOnError, this, 'error');\r\n\r\n\t\tif (this.options.crossOrigin || this.options.crossOrigin === '') {\r\n\t\t\timg.crossOrigin = this.options.crossOrigin === true ? '' : this.options.crossOrigin;\r\n\t\t}\r\n\r\n\t\tif (this.options.zIndex) {\r\n\t\t\tthis._updateZIndex();\r\n\t\t}\r\n\r\n\t\tif (wasElementSupplied) {\r\n\t\t\tthis._url = img.src;\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\timg.src = this._url;\r\n\t\timg.alt = this.options.alt;\r\n\t},\r\n\r\n\t_animateZoom: function (e) {\r\n\t\tvar scale = this._map.getZoomScale(e.zoom),\r\n\t\t offset = this._map._latLngBoundsToNewLayerBounds(this._bounds, e.zoom, e.center).min;\r\n\r\n\t\tsetTransform(this._image, offset, scale);\r\n\t},\r\n\r\n\t_reset: function () {\r\n\t\tvar image = this._image,\r\n\t\t bounds = new Bounds(\r\n\t\t this._map.latLngToLayerPoint(this._bounds.getNorthWest()),\r\n\t\t this._map.latLngToLayerPoint(this._bounds.getSouthEast())),\r\n\t\t size = bounds.getSize();\r\n\r\n\t\tsetPosition(image, bounds.min);\r\n\r\n\t\timage.style.width = size.x + 'px';\r\n\t\timage.style.height = size.y + 'px';\r\n\t},\r\n\r\n\t_updateOpacity: function () {\r\n\t\tsetOpacity(this._image, this.options.opacity);\r\n\t},\r\n\r\n\t_updateZIndex: function () {\r\n\t\tif (this._image && this.options.zIndex !== undefined && this.options.zIndex !== null) {\r\n\t\t\tthis._image.style.zIndex = this.options.zIndex;\r\n\t\t}\r\n\t},\r\n\r\n\t_overlayOnError: function () {\r\n\t\t// @event error: Event\r\n\t\t// Fired when the ImageOverlay layer has loaded its image\r\n\t\tthis.fire('error');\r\n\r\n\t\tvar errorUrl = this.options.errorOverlayUrl;\r\n\t\tif (errorUrl && this._url !== errorUrl) {\r\n\t\t\tthis._url = errorUrl;\r\n\t\t\tthis._image.src = errorUrl;\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// @factory L.imageOverlay(imageUrl: String, bounds: LatLngBounds, options?: ImageOverlay options)\r\n// Instantiates an image overlay object given the URL of the image and the\r\n// geographical bounds it is tied to.\r\nvar imageOverlay = function (url, bounds, options) {\r\n\treturn new ImageOverlay(url, bounds, options);\r\n};\n\n/*\r\n * @class VideoOverlay\r\n * @aka L.VideoOverlay\r\n * @inherits ImageOverlay\r\n *\r\n * Used to load and display a video player over specific bounds of the map. Extends `ImageOverlay`.\r\n *\r\n * A video overlay uses the [`<video>`](https://developer.mozilla.org/docs/Web/HTML/Element/video)\r\n * HTML5 element.\r\n *\r\n * @example\r\n *\r\n * ```js\r\n * var videoUrl = 'https://www.mapbox.com/bites/00188/patricia_nasa.webm',\r\n * \tvideoBounds = [[ 32, -130], [ 13, -100]];\r\n * L.videoOverlay(videoUrl, videoBounds ).addTo(map);\r\n * ```\r\n */\r\n\r\nvar VideoOverlay = ImageOverlay.extend({\r\n\r\n\t// @section\r\n\t// @aka VideoOverlay options\r\n\toptions: {\r\n\t\t// @option autoplay: Boolean = true\r\n\t\t// Whether the video starts playing automatically when loaded.\r\n\t\tautoplay: true,\r\n\r\n\t\t// @option loop: Boolean = true\r\n\t\t// Whether the video will loop back to the beginning when played.\r\n\t\tloop: true\r\n\t},\r\n\r\n\t_initImage: function () {\r\n\t\tvar wasElementSupplied = this._url.tagName === 'VIDEO';\r\n\t\tvar vid = this._image = wasElementSupplied ? this._url : create$1('video');\r\n\r\n\t\taddClass(vid, 'leaflet-image-layer');\r\n\t\tif (this._zoomAnimated) { addClass(vid, 'leaflet-zoom-animated'); }\r\n\r\n\t\tvid.onselectstart = falseFn;\r\n\t\tvid.onmousemove = falseFn;\r\n\r\n\t\t// @event load: Event\r\n\t\t// Fired when the video has finished loading the first frame\r\n\t\tvid.onloadeddata = bind(this.fire, this, 'load');\r\n\r\n\t\tif (wasElementSupplied) {\r\n\t\t\tvar sourceElements = vid.getElementsByTagName('source');\r\n\t\t\tvar sources = [];\r\n\t\t\tfor (var j = 0; j < sourceElements.length; j++) {\r\n\t\t\t\tsources.push(sourceElements[j].src);\r\n\t\t\t}\r\n\r\n\t\t\tthis._url = (sourceElements.length > 0) ? sources : [vid.src];\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (!isArray(this._url)) { this._url = [this._url]; }\r\n\r\n\t\tvid.autoplay = !!this.options.autoplay;\r\n\t\tvid.loop = !!this.options.loop;\r\n\t\tfor (var i = 0; i < this._url.length; i++) {\r\n\t\t\tvar source = create$1('source');\r\n\t\t\tsource.src = this._url[i];\r\n\t\t\tvid.appendChild(source);\r\n\t\t}\r\n\t}\r\n\r\n\t// @method getElement(): HTMLVideoElement\r\n\t// Returns the instance of [`HTMLVideoElement`](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement)\r\n\t// used by this overlay.\r\n});\r\n\r\n\r\n// @factory L.videoOverlay(video: String|Array|HTMLVideoElement, bounds: LatLngBounds, options?: VideoOverlay options)\r\n// Instantiates an image overlay object given the URL of the video (or array of URLs, or even a video element) and the\r\n// geographical bounds it is tied to.\r\n\r\nfunction videoOverlay(video, bounds, options) {\r\n\treturn new VideoOverlay(video, bounds, options);\r\n}\n\n/*\r\n * @class DivOverlay\r\n * @inherits Layer\r\n * @aka L.DivOverlay\r\n * Base model for L.Popup and L.Tooltip. Inherit from it for custom popup like plugins.\r\n */\r\n\r\n// @namespace DivOverlay\r\nvar DivOverlay = Layer.extend({\r\n\r\n\t// @section\r\n\t// @aka DivOverlay options\r\n\toptions: {\r\n\t\t// @option offset: Point = Point(0, 7)\r\n\t\t// The offset of the popup position. Useful to control the anchor\r\n\t\t// of the popup when opening it on some overlays.\r\n\t\toffset: [0, 7],\r\n\r\n\t\t// @option className: String = ''\r\n\t\t// A custom CSS class name to assign to the popup.\r\n\t\tclassName: '',\r\n\r\n\t\t// @option pane: String = 'popupPane'\r\n\t\t// `Map pane` where the popup will be added.\r\n\t\tpane: 'popupPane'\r\n\t},\r\n\r\n\tinitialize: function (options, source) {\r\n\t\tsetOptions(this, options);\r\n\r\n\t\tthis._source = source;\r\n\t},\r\n\r\n\tonAdd: function (map) {\r\n\t\tthis._zoomAnimated = map._zoomAnimated;\r\n\r\n\t\tif (!this._container) {\r\n\t\t\tthis._initLayout();\r\n\t\t}\r\n\r\n\t\tif (map._fadeAnimated) {\r\n\t\t\tsetOpacity(this._container, 0);\r\n\t\t}\r\n\r\n\t\tclearTimeout(this._removeTimeout);\r\n\t\tthis.getPane().appendChild(this._container);\r\n\t\tthis.update();\r\n\r\n\t\tif (map._fadeAnimated) {\r\n\t\t\tsetOpacity(this._container, 1);\r\n\t\t}\r\n\r\n\t\tthis.bringToFront();\r\n\t},\r\n\r\n\tonRemove: function (map) {\r\n\t\tif (map._fadeAnimated) {\r\n\t\t\tsetOpacity(this._container, 0);\r\n\t\t\tthis._removeTimeout = setTimeout(bind(remove, undefined, this._container), 200);\r\n\t\t} else {\r\n\t\t\tremove(this._container);\r\n\t\t}\r\n\t},\r\n\r\n\t// @namespace Popup\r\n\t// @method getLatLng: LatLng\r\n\t// Returns the geographical point of popup.\r\n\tgetLatLng: function () {\r\n\t\treturn this._latlng;\r\n\t},\r\n\r\n\t// @method setLatLng(latlng: LatLng): this\r\n\t// Sets the geographical point where the popup will open.\r\n\tsetLatLng: function (latlng) {\r\n\t\tthis._latlng = toLatLng(latlng);\r\n\t\tif (this._map) {\r\n\t\t\tthis._updatePosition();\r\n\t\t\tthis._adjustPan();\r\n\t\t}\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method getContent: String|HTMLElement\r\n\t// Returns the content of the popup.\r\n\tgetContent: function () {\r\n\t\treturn this._content;\r\n\t},\r\n\r\n\t// @method setContent(htmlContent: String|HTMLElement|Function): this\r\n\t// Sets the HTML content of the popup. If a function is passed the source layer will be passed to the function. The function should return a `String` or `HTMLElement` to be used in the popup.\r\n\tsetContent: function (content) {\r\n\t\tthis._content = content;\r\n\t\tthis.update();\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method getElement: String|HTMLElement\r\n\t// Alias for [getContent()](#popup-getcontent)\r\n\tgetElement: function () {\r\n\t\treturn this._container;\r\n\t},\r\n\r\n\t// @method update: null\r\n\t// Updates the popup content, layout and position. Useful for updating the popup after something inside changed, e.g. image loaded.\r\n\tupdate: function () {\r\n\t\tif (!this._map) { return; }\r\n\r\n\t\tthis._container.style.visibility = 'hidden';\r\n\r\n\t\tthis._updateContent();\r\n\t\tthis._updateLayout();\r\n\t\tthis._updatePosition();\r\n\r\n\t\tthis._container.style.visibility = '';\r\n\r\n\t\tthis._adjustPan();\r\n\t},\r\n\r\n\tgetEvents: function () {\r\n\t\tvar events = {\r\n\t\t\tzoom: this._updatePosition,\r\n\t\t\tviewreset: this._updatePosition\r\n\t\t};\r\n\r\n\t\tif (this._zoomAnimated) {\r\n\t\t\tevents.zoomanim = this._animateZoom;\r\n\t\t}\r\n\t\treturn events;\r\n\t},\r\n\r\n\t// @method isOpen: Boolean\r\n\t// Returns `true` when the popup is visible on the map.\r\n\tisOpen: function () {\r\n\t\treturn !!this._map && this._map.hasLayer(this);\r\n\t},\r\n\r\n\t// @method bringToFront: this\r\n\t// Brings this popup in front of other popups (in the same map pane).\r\n\tbringToFront: function () {\r\n\t\tif (this._map) {\r\n\t\t\ttoFront(this._container);\r\n\t\t}\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method bringToBack: this\r\n\t// Brings this popup to the back of other popups (in the same map pane).\r\n\tbringToBack: function () {\r\n\t\tif (this._map) {\r\n\t\t\ttoBack(this._container);\r\n\t\t}\r\n\t\treturn this;\r\n\t},\r\n\r\n\t_updateContent: function () {\r\n\t\tif (!this._content) { return; }\r\n\r\n\t\tvar node = this._contentNode;\r\n\t\tvar content = (typeof this._content === 'function') ? this._content(this._source || this) : this._content;\r\n\r\n\t\tif (typeof content === 'string') {\r\n\t\t\tnode.innerHTML = content;\r\n\t\t} else {\r\n\t\t\twhile (node.hasChildNodes()) {\r\n\t\t\t\tnode.removeChild(node.firstChild);\r\n\t\t\t}\r\n\t\t\tnode.appendChild(content);\r\n\t\t}\r\n\t\tthis.fire('contentupdate');\r\n\t},\r\n\r\n\t_updatePosition: function () {\r\n\t\tif (!this._map) { return; }\r\n\r\n\t\tvar pos = this._map.latLngToLayerPoint(this._latlng),\r\n\t\t offset = toPoint(this.options.offset),\r\n\t\t anchor = this._getAnchor();\r\n\r\n\t\tif (this._zoomAnimated) {\r\n\t\t\tsetPosition(this._container, pos.add(anchor));\r\n\t\t} else {\r\n\t\t\toffset = offset.add(pos).add(anchor);\r\n\t\t}\r\n\r\n\t\tvar bottom = this._containerBottom = -offset.y,\r\n\t\t left = this._containerLeft = -Math.round(this._containerWidth / 2) + offset.x;\r\n\r\n\t\t// bottom position the popup in case the height of the popup changes (images loading etc)\r\n\t\tthis._container.style.bottom = bottom + 'px';\r\n\t\tthis._container.style.left = left + 'px';\r\n\t},\r\n\r\n\t_getAnchor: function () {\r\n\t\treturn [0, 0];\r\n\t}\r\n\r\n});\n\n/*\r\n * @class Popup\r\n * @inherits DivOverlay\r\n * @aka L.Popup\r\n * Used to open popups in certain places of the map. Use [Map.openPopup](#map-openpopup) to\r\n * open popups while making sure that only one popup is open at one time\r\n * (recommended for usability), or use [Map.addLayer](#map-addlayer) to open as many as you want.\r\n *\r\n * @example\r\n *\r\n * If you want to just bind a popup to marker click and then open it, it's really easy:\r\n *\r\n * ```js\r\n * marker.bindPopup(popupContent).openPopup();\r\n * ```\r\n * Path overlays like polylines also have a `bindPopup` method.\r\n * Here's a more complicated way to open a popup on a map:\r\n *\r\n * ```js\r\n * var popup = L.popup()\r\n * \t.setLatLng(latlng)\r\n * \t.setContent('<p>Hello world!<br />This is a nice popup.</p>')\r\n * \t.openOn(map);\r\n * ```\r\n */\r\n\r\n\r\n// @namespace Popup\r\nvar Popup = DivOverlay.extend({\r\n\r\n\t// @section\r\n\t// @aka Popup options\r\n\toptions: {\r\n\t\t// @option maxWidth: Number = 300\r\n\t\t// Max width of the popup, in pixels.\r\n\t\tmaxWidth: 300,\r\n\r\n\t\t// @option minWidth: Number = 50\r\n\t\t// Min width of the popup, in pixels.\r\n\t\tminWidth: 50,\r\n\r\n\t\t// @option maxHeight: Number = null\r\n\t\t// If set, creates a scrollable container of the given height\r\n\t\t// inside a popup if its content exceeds it.\r\n\t\tmaxHeight: null,\r\n\r\n\t\t// @option autoPan: Boolean = true\r\n\t\t// Set it to `false` if you don't want the map to do panning animation\r\n\t\t// to fit the opened popup.\r\n\t\tautoPan: true,\r\n\r\n\t\t// @option autoPanPaddingTopLeft: Point = null\r\n\t\t// The margin between the popup and the top left corner of the map\r\n\t\t// view after autopanning was performed.\r\n\t\tautoPanPaddingTopLeft: null,\r\n\r\n\t\t// @option autoPanPaddingBottomRight: Point = null\r\n\t\t// The margin between the popup and the bottom right corner of the map\r\n\t\t// view after autopanning was performed.\r\n\t\tautoPanPaddingBottomRight: null,\r\n\r\n\t\t// @option autoPanPadding: Point = Point(5, 5)\r\n\t\t// Equivalent of setting both top left and bottom right autopan padding to the same value.\r\n\t\tautoPanPadding: [5, 5],\r\n\r\n\t\t// @option keepInView: Boolean = false\r\n\t\t// Set it to `true` if you want to prevent users from panning the popup\r\n\t\t// off of the screen while it is open.\r\n\t\tkeepInView: false,\r\n\r\n\t\t// @option closeButton: Boolean = true\r\n\t\t// Controls the presence of a close button in the popup.\r\n\t\tcloseButton: true,\r\n\r\n\t\t// @option autoClose: Boolean = true\r\n\t\t// Set it to `false` if you want to override the default behavior of\r\n\t\t// the popup closing when another popup is opened.\r\n\t\tautoClose: true,\r\n\r\n\t\t// @option closeOnEscapeKey: Boolean = true\r\n\t\t// Set it to `false` if you want to override the default behavior of\r\n\t\t// the ESC key for closing of the popup.\r\n\t\tcloseOnEscapeKey: true,\r\n\r\n\t\t// @option closeOnClick: Boolean = *\r\n\t\t// Set it if you want to override the default behavior of the popup closing when user clicks\r\n\t\t// on the map. Defaults to the map's [`closePopupOnClick`](#map-closepopuponclick) option.\r\n\r\n\t\t// @option className: String = ''\r\n\t\t// A custom CSS class name to assign to the popup.\r\n\t\tclassName: ''\r\n\t},\r\n\r\n\t// @namespace Popup\r\n\t// @method openOn(map: Map): this\r\n\t// Adds the popup to the map and closes the previous one. The same as `map.openPopup(popup)`.\r\n\topenOn: function (map) {\r\n\t\tmap.openPopup(this);\r\n\t\treturn this;\r\n\t},\r\n\r\n\tonAdd: function (map) {\r\n\t\tDivOverlay.prototype.onAdd.call(this, map);\r\n\r\n\t\t// @namespace Map\r\n\t\t// @section Popup events\r\n\t\t// @event popupopen: PopupEvent\r\n\t\t// Fired when a popup is opened in the map\r\n\t\tmap.fire('popupopen', {popup: this});\r\n\r\n\t\tif (this._source) {\r\n\t\t\t// @namespace Layer\r\n\t\t\t// @section Popup events\r\n\t\t\t// @event popupopen: PopupEvent\r\n\t\t\t// Fired when a popup bound to this layer is opened\r\n\t\t\tthis._source.fire('popupopen', {popup: this}, true);\r\n\t\t\t// For non-path layers, we toggle the popup when clicking\r\n\t\t\t// again the layer, so prevent the map to reopen it.\r\n\t\t\tif (!(this._source instanceof Path)) {\r\n\t\t\t\tthis._source.on('preclick', stopPropagation);\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\r\n\tonRemove: function (map) {\r\n\t\tDivOverlay.prototype.onRemove.call(this, map);\r\n\r\n\t\t// @namespace Map\r\n\t\t// @section Popup events\r\n\t\t// @event popupclose: PopupEvent\r\n\t\t// Fired when a popup in the map is closed\r\n\t\tmap.fire('popupclose', {popup: this});\r\n\r\n\t\tif (this._source) {\r\n\t\t\t// @namespace Layer\r\n\t\t\t// @section Popup events\r\n\t\t\t// @event popupclose: PopupEvent\r\n\t\t\t// Fired when a popup bound to this layer is closed\r\n\t\t\tthis._source.fire('popupclose', {popup: this}, true);\r\n\t\t\tif (!(this._source instanceof Path)) {\r\n\t\t\t\tthis._source.off('preclick', stopPropagation);\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\r\n\tgetEvents: function () {\r\n\t\tvar events = DivOverlay.prototype.getEvents.call(this);\r\n\r\n\t\tif (this.options.closeOnClick !== undefined ? this.options.closeOnClick : this._map.options.closePopupOnClick) {\r\n\t\t\tevents.preclick = this._close;\r\n\t\t}\r\n\r\n\t\tif (this.options.keepInView) {\r\n\t\t\tevents.moveend = this._adjustPan;\r\n\t\t}\r\n\r\n\t\treturn events;\r\n\t},\r\n\r\n\t_close: function () {\r\n\t\tif (this._map) {\r\n\t\t\tthis._map.closePopup(this);\r\n\t\t}\r\n\t},\r\n\r\n\t_initLayout: function () {\r\n\t\tvar prefix = 'leaflet-popup',\r\n\t\t container = this._container = create$1('div',\r\n\t\t\tprefix + ' ' + (this.options.className || '') +\r\n\t\t\t' leaflet-zoom-animated');\r\n\r\n\t\tvar wrapper = this._wrapper = create$1('div', prefix + '-content-wrapper', container);\r\n\t\tthis._contentNode = create$1('div', prefix + '-content', wrapper);\r\n\r\n\t\tdisableClickPropagation(wrapper);\r\n\t\tdisableScrollPropagation(this._contentNode);\r\n\t\ton(wrapper, 'contextmenu', stopPropagation);\r\n\r\n\t\tthis._tipContainer = create$1('div', prefix + '-tip-container', container);\r\n\t\tthis._tip = create$1('div', prefix + '-tip', this._tipContainer);\r\n\r\n\t\tif (this.options.closeButton) {\r\n\t\t\tvar closeButton = this._closeButton = create$1('a', prefix + '-close-button', container);\r\n\t\t\tcloseButton.href = '#close';\r\n\t\t\tcloseButton.innerHTML = '&#215;';\r\n\r\n\t\t\ton(closeButton, 'click', this._onCloseButtonClick, this);\r\n\t\t}\r\n\t},\r\n\r\n\t_updateLayout: function () {\r\n\t\tvar container = this._contentNode,\r\n\t\t style = container.style;\r\n\r\n\t\tstyle.width = '';\r\n\t\tstyle.whiteSpace = 'nowrap';\r\n\r\n\t\tvar width = container.offsetWidth;\r\n\t\twidth = Math.min(width, this.options.maxWidth);\r\n\t\twidth = Math.max(width, this.options.minWidth);\r\n\r\n\t\tstyle.width = (width + 1) + 'px';\r\n\t\tstyle.whiteSpace = '';\r\n\r\n\t\tstyle.height = '';\r\n\r\n\t\tvar height = container.offsetHeight,\r\n\t\t maxHeight = this.options.maxHeight,\r\n\t\t scrolledClass = 'leaflet-popup-scrolled';\r\n\r\n\t\tif (maxHeight && height > maxHeight) {\r\n\t\t\tstyle.height = maxHeight + 'px';\r\n\t\t\taddClass(container, scrolledClass);\r\n\t\t} else {\r\n\t\t\tremoveClass(container, scrolledClass);\r\n\t\t}\r\n\r\n\t\tthis._containerWidth = this._container.offsetWidth;\r\n\t},\r\n\r\n\t_animateZoom: function (e) {\r\n\t\tvar pos = this._map._latLngToNewLayerPoint(this._latlng, e.zoom, e.center),\r\n\t\t anchor = this._getAnchor();\r\n\t\tsetPosition(this._container, pos.add(anchor));\r\n\t},\r\n\r\n\t_adjustPan: function () {\r\n\t\tif (!this.options.autoPan || (this._map._panAnim && this._map._panAnim._inProgress)) { return; }\r\n\r\n\t\tvar map = this._map,\r\n\t\t marginBottom = parseInt(getStyle(this._container, 'marginBottom'), 10) || 0,\r\n\t\t containerHeight = this._container.offsetHeight + marginBottom,\r\n\t\t containerWidth = this._containerWidth,\r\n\t\t layerPos = new Point(this._containerLeft, -containerHeight - this._containerBottom);\r\n\r\n\t\tlayerPos._add(getPosition(this._container));\r\n\r\n\t\tvar containerPos = map.layerPointToContainerPoint(layerPos),\r\n\t\t padding = toPoint(this.options.autoPanPadding),\r\n\t\t paddingTL = toPoint(this.options.autoPanPaddingTopLeft || padding),\r\n\t\t paddingBR = toPoint(this.options.autoPanPaddingBottomRight || padding),\r\n\t\t size = map.getSize(),\r\n\t\t dx = 0,\r\n\t\t dy = 0;\r\n\r\n\t\tif (containerPos.x + containerWidth + paddingBR.x > size.x) { // right\r\n\t\t\tdx = containerPos.x + containerWidth - size.x + paddingBR.x;\r\n\t\t}\r\n\t\tif (containerPos.x - dx - paddingTL.x < 0) { // left\r\n\t\t\tdx = containerPos.x - paddingTL.x;\r\n\t\t}\r\n\t\tif (containerPos.y + containerHeight + paddingBR.y > size.y) { // bottom\r\n\t\t\tdy = containerPos.y + containerHeight - size.y + paddingBR.y;\r\n\t\t}\r\n\t\tif (containerPos.y - dy - paddingTL.y < 0) { // top\r\n\t\t\tdy = containerPos.y - paddingTL.y;\r\n\t\t}\r\n\r\n\t\t// @namespace Map\r\n\t\t// @section Popup events\r\n\t\t// @event autopanstart: Event\r\n\t\t// Fired when the map starts autopanning when opening a popup.\r\n\t\tif (dx || dy) {\r\n\t\t\tmap\r\n\t\t\t .fire('autopanstart')\r\n\t\t\t .panBy([dx, dy]);\r\n\t\t}\r\n\t},\r\n\r\n\t_onCloseButtonClick: function (e) {\r\n\t\tthis._close();\r\n\t\tstop(e);\r\n\t},\r\n\r\n\t_getAnchor: function () {\r\n\t\t// Where should we anchor the popup on the source layer?\r\n\t\treturn toPoint(this._source && this._source._getPopupAnchor ? this._source._getPopupAnchor() : [0, 0]);\r\n\t}\r\n\r\n});\r\n\r\n// @namespace Popup\r\n// @factory L.popup(options?: Popup options, source?: Layer)\r\n// Instantiates a `Popup` object given an optional `options` object that describes its appearance and location and an optional `source` object that is used to tag the popup with a reference to the Layer to which it refers.\r\nvar popup = function (options, source) {\r\n\treturn new Popup(options, source);\r\n};\r\n\r\n\r\n/* @namespace Map\r\n * @section Interaction Options\r\n * @option closePopupOnClick: Boolean = true\r\n * Set it to `false` if you don't want popups to close when user clicks the map.\r\n */\r\nMap.mergeOptions({\r\n\tclosePopupOnClick: true\r\n});\r\n\r\n\r\n// @namespace Map\r\n// @section Methods for Layers and Controls\r\nMap.include({\r\n\t// @method openPopup(popup: Popup): this\r\n\t// Opens the specified popup while closing the previously opened (to make sure only one is opened at one time for usability).\r\n\t// @alternative\r\n\t// @method openPopup(content: String|HTMLElement, latlng: LatLng, options?: Popup options): this\r\n\t// Creates a popup with the specified content and options and opens it in the given point on a map.\r\n\topenPopup: function (popup, latlng, options) {\r\n\t\tif (!(popup instanceof Popup)) {\r\n\t\t\tpopup = new Popup(options).setContent(popup);\r\n\t\t}\r\n\r\n\t\tif (latlng) {\r\n\t\t\tpopup.setLatLng(latlng);\r\n\t\t}\r\n\r\n\t\tif (this.hasLayer(popup)) {\r\n\t\t\treturn this;\r\n\t\t}\r\n\r\n\t\tif (this._popup && this._popup.options.autoClose) {\r\n\t\t\tthis.closePopup();\r\n\t\t}\r\n\r\n\t\tthis._popup = popup;\r\n\t\treturn this.addLayer(popup);\r\n\t},\r\n\r\n\t// @method closePopup(popup?: Popup): this\r\n\t// Closes the popup previously opened with [openPopup](#map-openpopup) (or the given one).\r\n\tclosePopup: function (popup) {\r\n\t\tif (!popup || popup === this._popup) {\r\n\t\t\tpopup = this._popup;\r\n\t\t\tthis._popup = null;\r\n\t\t}\r\n\t\tif (popup) {\r\n\t\t\tthis.removeLayer(popup);\r\n\t\t}\r\n\t\treturn this;\r\n\t}\r\n});\r\n\r\n/*\r\n * @namespace Layer\r\n * @section Popup methods example\r\n *\r\n * All layers share a set of methods convenient for binding popups to it.\r\n *\r\n * ```js\r\n * var layer = L.Polygon(latlngs).bindPopup('Hi There!').addTo(map);\r\n * layer.openPopup();\r\n * layer.closePopup();\r\n * ```\r\n *\r\n * Popups will also be automatically opened when the layer is clicked on and closed when the layer is removed from the map or another popup is opened.\r\n */\r\n\r\n// @section Popup methods\r\nLayer.include({\r\n\r\n\t// @method bindPopup(content: String|HTMLElement|Function|Popup, options?: Popup options): this\r\n\t// Binds a popup to the layer with the passed `content` and sets up the\r\n\t// necessary event listeners. If a `Function` is passed it will receive\r\n\t// the layer as the first argument and should return a `String` or `HTMLElement`.\r\n\tbindPopup: function (content, options) {\r\n\r\n\t\tif (content instanceof Popup) {\r\n\t\t\tsetOptions(content, options);\r\n\t\t\tthis._popup = content;\r\n\t\t\tcontent._source = this;\r\n\t\t} else {\r\n\t\t\tif (!this._popup || options) {\r\n\t\t\t\tthis._popup = new Popup(options, this);\r\n\t\t\t}\r\n\t\t\tthis._popup.setContent(content);\r\n\t\t}\r\n\r\n\t\tif (!this._popupHandlersAdded) {\r\n\t\t\tthis.on({\r\n\t\t\t\tclick: this._openPopup,\r\n\t\t\t\tkeypress: this._onKeyPress,\r\n\t\t\t\tremove: this.closePopup,\r\n\t\t\t\tmove: this._movePopup\r\n\t\t\t});\r\n\t\t\tthis._popupHandlersAdded = true;\r\n\t\t}\r\n\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method unbindPopup(): this\r\n\t// Removes the popup previously bound with `bindPopup`.\r\n\tunbindPopup: function () {\r\n\t\tif (this._popup) {\r\n\t\t\tthis.off({\r\n\t\t\t\tclick: this._openPopup,\r\n\t\t\t\tkeypress: this._onKeyPress,\r\n\t\t\t\tremove: this.closePopup,\r\n\t\t\t\tmove: this._movePopup\r\n\t\t\t});\r\n\t\t\tthis._popupHandlersAdded = false;\r\n\t\t\tthis._popup = null;\r\n\t\t}\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method openPopup(latlng?: LatLng): this\r\n\t// Opens the bound popup at the specified `latlng` or at the default popup anchor if no `latlng` is passed.\r\n\topenPopup: function (layer, latlng) {\r\n\t\tif (!(layer instanceof Layer)) {\r\n\t\t\tlatlng = layer;\r\n\t\t\tlayer = this;\r\n\t\t}\r\n\r\n\t\tif (layer instanceof FeatureGroup) {\r\n\t\t\tfor (var id in this._layers) {\r\n\t\t\t\tlayer = this._layers[id];\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (!latlng) {\r\n\t\t\tlatlng = layer.getCenter ? layer.getCenter() : layer.getLatLng();\r\n\t\t}\r\n\r\n\t\tif (this._popup && this._map) {\r\n\t\t\t// set popup source to this layer\r\n\t\t\tthis._popup._source = layer;\r\n\r\n\t\t\t// update the popup (content, layout, ect...)\r\n\t\t\tthis._popup.update();\r\n\r\n\t\t\t// open the popup on the map\r\n\t\t\tthis._map.openPopup(this._popup, latlng);\r\n\t\t}\r\n\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method closePopup(): this\r\n\t// Closes the popup bound to this layer if it is open.\r\n\tclosePopup: function () {\r\n\t\tif (this._popup) {\r\n\t\t\tthis._popup._close();\r\n\t\t}\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method togglePopup(): this\r\n\t// Opens or closes the popup bound to this layer depending on its current state.\r\n\ttogglePopup: function (target) {\r\n\t\tif (this._popup) {\r\n\t\t\tif (this._popup._map) {\r\n\t\t\t\tthis.closePopup();\r\n\t\t\t} else {\r\n\t\t\t\tthis.openPopup(target);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method isPopupOpen(): boolean\r\n\t// Returns `true` if the popup bound to this layer is currently open.\r\n\tisPopupOpen: function () {\r\n\t\treturn (this._popup ? this._popup.isOpen() : false);\r\n\t},\r\n\r\n\t// @method setPopupContent(content: String|HTMLElement|Popup): this\r\n\t// Sets the content of the popup bound to this layer.\r\n\tsetPopupContent: function (content) {\r\n\t\tif (this._popup) {\r\n\t\t\tthis._popup.setContent(content);\r\n\t\t}\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method getPopup(): Popup\r\n\t// Returns the popup bound to this layer.\r\n\tgetPopup: function () {\r\n\t\treturn this._popup;\r\n\t},\r\n\r\n\t_openPopup: function (e) {\r\n\t\tvar layer = e.layer || e.target;\r\n\r\n\t\tif (!this._popup) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (!this._map) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// prevent map click\r\n\t\tstop(e);\r\n\r\n\t\t// if this inherits from Path its a vector and we can just\r\n\t\t// open the popup at the new location\r\n\t\tif (layer instanceof Path) {\r\n\t\t\tthis.openPopup(e.layer || e.target, e.latlng);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// otherwise treat it like a marker and figure out\r\n\t\t// if we should toggle it open/closed\r\n\t\tif (this._map.hasLayer(this._popup) && this._popup._source === layer) {\r\n\t\t\tthis.closePopup();\r\n\t\t} else {\r\n\t\t\tthis.openPopup(layer, e.latlng);\r\n\t\t}\r\n\t},\r\n\r\n\t_movePopup: function (e) {\r\n\t\tthis._popup.setLatLng(e.latlng);\r\n\t},\r\n\r\n\t_onKeyPress: function (e) {\r\n\t\tif (e.originalEvent.keyCode === 13) {\r\n\t\t\tthis._openPopup(e);\r\n\t\t}\r\n\t}\r\n});\n\n/*\n * @class Tooltip\n * @inherits DivOverlay\n * @aka L.Tooltip\n * Used to display small texts on top of map layers.\n *\n * @example\n *\n * ```js\n * marker.bindTooltip(\"my tooltip text\").openTooltip();\n * ```\n * Note about tooltip offset. Leaflet takes two options in consideration\n * for computing tooltip offsetting:\n * - the `offset` Tooltip option: it defaults to [0, 0], and it's specific to one tooltip.\n * Add a positive x offset to move the tooltip to the right, and a positive y offset to\n * move it to the bottom. Negatives will move to the left and top.\n * - the `tooltipAnchor` Icon option: this will only be considered for Marker. You\n * should adapt this value if you use a custom icon.\n */\n\n\n// @namespace Tooltip\nvar Tooltip = DivOverlay.extend({\n\n\t// @section\n\t// @aka Tooltip options\n\toptions: {\n\t\t// @option pane: String = 'tooltipPane'\n\t\t// `Map pane` where the tooltip will be added.\n\t\tpane: 'tooltipPane',\n\n\t\t// @option offset: Point = Point(0, 0)\n\t\t// Optional offset of the tooltip position.\n\t\toffset: [0, 0],\n\n\t\t// @option direction: String = 'auto'\n\t\t// Direction where to open the tooltip. Possible values are: `right`, `left`,\n\t\t// `top`, `bottom`, `center`, `auto`.\n\t\t// `auto` will dynamically switch between `right` and `left` according to the tooltip\n\t\t// position on the map.\n\t\tdirection: 'auto',\n\n\t\t// @option permanent: Boolean = false\n\t\t// Whether to open the tooltip permanently or only on mouseover.\n\t\tpermanent: false,\n\n\t\t// @option sticky: Boolean = false\n\t\t// If true, the tooltip will follow the mouse instead of being fixed at the feature center.\n\t\tsticky: false,\n\n\t\t// @option interactive: Boolean = false\n\t\t// If true, the tooltip will listen to the feature events.\n\t\tinteractive: false,\n\n\t\t// @option opacity: Number = 0.9\n\t\t// Tooltip container opacity.\n\t\topacity: 0.9\n\t},\n\n\tonAdd: function (map) {\n\t\tDivOverlay.prototype.onAdd.call(this, map);\n\t\tthis.setOpacity(this.options.opacity);\n\n\t\t// @namespace Map\n\t\t// @section Tooltip events\n\t\t// @event tooltipopen: TooltipEvent\n\t\t// Fired when a tooltip is opened in the map.\n\t\tmap.fire('tooltipopen', {tooltip: this});\n\n\t\tif (this._source) {\n\t\t\t// @namespace Layer\n\t\t\t// @section Tooltip events\n\t\t\t// @event tooltipopen: TooltipEvent\n\t\t\t// Fired when a tooltip bound to this layer is opened.\n\t\t\tthis._source.fire('tooltipopen', {tooltip: this}, true);\n\t\t}\n\t},\n\n\tonRemove: function (map) {\n\t\tDivOverlay.prototype.onRemove.call(this, map);\n\n\t\t// @namespace Map\n\t\t// @section Tooltip events\n\t\t// @event tooltipclose: TooltipEvent\n\t\t// Fired when a tooltip in the map is closed.\n\t\tmap.fire('tooltipclose', {tooltip: this});\n\n\t\tif (this._source) {\n\t\t\t// @namespace Layer\n\t\t\t// @section Tooltip events\n\t\t\t// @event tooltipclose: TooltipEvent\n\t\t\t// Fired when a tooltip bound to this layer is closed.\n\t\t\tthis._source.fire('tooltipclose', {tooltip: this}, true);\n\t\t}\n\t},\n\n\tgetEvents: function () {\n\t\tvar events = DivOverlay.prototype.getEvents.call(this);\n\n\t\tif (touch && !this.options.permanent) {\n\t\t\tevents.preclick = this._close;\n\t\t}\n\n\t\treturn events;\n\t},\n\n\t_close: function () {\n\t\tif (this._map) {\n\t\t\tthis._map.closeTooltip(this);\n\t\t}\n\t},\n\n\t_initLayout: function () {\n\t\tvar prefix = 'leaflet-tooltip',\n\t\t className = prefix + ' ' + (this.options.className || '') + ' leaflet-zoom-' + (this._zoomAnimated ? 'animated' : 'hide');\n\n\t\tthis._contentNode = this._container = create$1('div', className);\n\t},\n\n\t_updateLayout: function () {},\n\n\t_adjustPan: function () {},\n\n\t_setPosition: function (pos) {\n\t\tvar map = this._map,\n\t\t container = this._container,\n\t\t centerPoint = map.latLngToContainerPoint(map.getCenter()),\n\t\t tooltipPoint = map.layerPointToContainerPoint(pos),\n\t\t direction = this.options.direction,\n\t\t tooltipWidth = container.offsetWidth,\n\t\t tooltipHeight = container.offsetHeight,\n\t\t offset = toPoint(this.options.offset),\n\t\t anchor = this._getAnchor();\n\n\t\tif (direction === 'top') {\n\t\t\tpos = pos.add(toPoint(-tooltipWidth / 2 + offset.x, -tooltipHeight + offset.y + anchor.y, true));\n\t\t} else if (direction === 'bottom') {\n\t\t\tpos = pos.subtract(toPoint(tooltipWidth / 2 - offset.x, -offset.y, true));\n\t\t} else if (direction === 'center') {\n\t\t\tpos = pos.subtract(toPoint(tooltipWidth / 2 + offset.x, tooltipHeight / 2 - anchor.y + offset.y, true));\n\t\t} else if (direction === 'right' || direction === 'auto' && tooltipPoint.x < centerPoint.x) {\n\t\t\tdirection = 'right';\n\t\t\tpos = pos.add(toPoint(offset.x + anchor.x, anchor.y - tooltipHeight / 2 + offset.y, true));\n\t\t} else {\n\t\t\tdirection = 'left';\n\t\t\tpos = pos.subtract(toPoint(tooltipWidth + anchor.x - offset.x, tooltipHeight / 2 - anchor.y - offset.y, true));\n\t\t}\n\n\t\tremoveClass(container, 'leaflet-tooltip-right');\n\t\tremoveClass(container, 'leaflet-tooltip-left');\n\t\tremoveClass(container, 'leaflet-tooltip-top');\n\t\tremoveClass(container, 'leaflet-tooltip-bottom');\n\t\taddClass(container, 'leaflet-tooltip-' + direction);\n\t\tsetPosition(container, pos);\n\t},\n\n\t_updatePosition: function () {\n\t\tvar pos = this._map.latLngToLayerPoint(this._latlng);\n\t\tthis._setPosition(pos);\n\t},\n\n\tsetOpacity: function (opacity) {\n\t\tthis.options.opacity = opacity;\n\n\t\tif (this._container) {\n\t\t\tsetOpacity(this._container, opacity);\n\t\t}\n\t},\n\n\t_animateZoom: function (e) {\n\t\tvar pos = this._map._latLngToNewLayerPoint(this._latlng, e.zoom, e.center);\n\t\tthis._setPosition(pos);\n\t},\n\n\t_getAnchor: function () {\n\t\t// Where should we anchor the tooltip on the source layer?\n\t\treturn toPoint(this._source && this._source._getTooltipAnchor && !this.options.sticky ? this._source._getTooltipAnchor() : [0, 0]);\n\t}\n\n});\n\n// @namespace Tooltip\n// @factory L.tooltip(options?: Tooltip options, source?: Layer)\n// Instantiates a Tooltip object given an optional `options` object that describes its appearance and location and an optional `source` object that is used to tag the tooltip with a reference to the Layer to which it refers.\nvar tooltip = function (options, source) {\n\treturn new Tooltip(options, source);\n};\n\n// @namespace Map\n// @section Methods for Layers and Controls\nMap.include({\n\n\t// @method openTooltip(tooltip: Tooltip): this\n\t// Opens the specified tooltip.\n\t// @alternative\n\t// @method openTooltip(content: String|HTMLElement, latlng: LatLng, options?: Tooltip options): this\n\t// Creates a tooltip with the specified content and options and open it.\n\topenTooltip: function (tooltip, latlng, options) {\n\t\tif (!(tooltip instanceof Tooltip)) {\n\t\t\ttooltip = new Tooltip(options).setContent(tooltip);\n\t\t}\n\n\t\tif (latlng) {\n\t\t\ttooltip.setLatLng(latlng);\n\t\t}\n\n\t\tif (this.hasLayer(tooltip)) {\n\t\t\treturn this;\n\t\t}\n\n\t\treturn this.addLayer(tooltip);\n\t},\n\n\t// @method closeTooltip(tooltip?: Tooltip): this\n\t// Closes the tooltip given as parameter.\n\tcloseTooltip: function (tooltip) {\n\t\tif (tooltip) {\n\t\t\tthis.removeLayer(tooltip);\n\t\t}\n\t\treturn this;\n\t}\n\n});\n\n/*\n * @namespace Layer\n * @section Tooltip methods example\n *\n * All layers share a set of methods convenient for binding tooltips to it.\n *\n * ```js\n * var layer = L.Polygon(latlngs).bindTooltip('Hi There!').addTo(map);\n * layer.openTooltip();\n * layer.closeTooltip();\n * ```\n */\n\n// @section Tooltip methods\nLayer.include({\n\n\t// @method bindTooltip(content: String|HTMLElement|Function|Tooltip, options?: Tooltip options): this\n\t// Binds a tooltip to the layer with the passed `content` and sets up the\n\t// necessary event listeners. If a `Function` is passed it will receive\n\t// the layer as the first argument and should return a `String` or `HTMLElement`.\n\tbindTooltip: function (content, options) {\n\n\t\tif (content instanceof Tooltip) {\n\t\t\tsetOptions(content, options);\n\t\t\tthis._tooltip = content;\n\t\t\tcontent._source = this;\n\t\t} else {\n\t\t\tif (!this._tooltip || options) {\n\t\t\t\tthis._tooltip = new Tooltip(options, this);\n\t\t\t}\n\t\t\tthis._tooltip.setContent(content);\n\n\t\t}\n\n\t\tthis._initTooltipInteractions();\n\n\t\tif (this._tooltip.options.permanent && this._map && this._map.hasLayer(this)) {\n\t\t\tthis.openTooltip();\n\t\t}\n\n\t\treturn this;\n\t},\n\n\t// @method unbindTooltip(): this\n\t// Removes the tooltip previously bound with `bindTooltip`.\n\tunbindTooltip: function () {\n\t\tif (this._tooltip) {\n\t\t\tthis._initTooltipInteractions(true);\n\t\t\tthis.closeTooltip();\n\t\t\tthis._tooltip = null;\n\t\t}\n\t\treturn this;\n\t},\n\n\t_initTooltipInteractions: function (remove$$1) {\n\t\tif (!remove$$1 && this._tooltipHandlersAdded) { return; }\n\t\tvar onOff = remove$$1 ? 'off' : 'on',\n\t\t events = {\n\t\t\tremove: this.closeTooltip,\n\t\t\tmove: this._moveTooltip\n\t\t };\n\t\tif (!this._tooltip.options.permanent) {\n\t\t\tevents.mouseover = this._openTooltip;\n\t\t\tevents.mouseout = this.closeTooltip;\n\t\t\tif (this._tooltip.options.sticky) {\n\t\t\t\tevents.mousemove = this._moveTooltip;\n\t\t\t}\n\t\t\tif (touch) {\n\t\t\t\tevents.click = this._openTooltip;\n\t\t\t}\n\t\t} else {\n\t\t\tevents.add = this._openTooltip;\n\t\t}\n\t\tthis[onOff](events);\n\t\tthis._tooltipHandlersAdded = !remove$$1;\n\t},\n\n\t// @method openTooltip(latlng?: LatLng): this\n\t// Opens the bound tooltip at the specified `latlng` or at the default tooltip anchor if no `latlng` is passed.\n\topenTooltip: function (layer, latlng) {\n\t\tif (!(layer instanceof Layer)) {\n\t\t\tlatlng = layer;\n\t\t\tlayer = this;\n\t\t}\n\n\t\tif (layer instanceof FeatureGroup) {\n\t\t\tfor (var id in this._layers) {\n\t\t\t\tlayer = this._layers[id];\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif (!latlng) {\n\t\t\tlatlng = layer.getCenter ? layer.getCenter() : layer.getLatLng();\n\t\t}\n\n\t\tif (this._tooltip && this._map) {\n\n\t\t\t// set tooltip source to this layer\n\t\t\tthis._tooltip._source = layer;\n\n\t\t\t// update the tooltip (content, layout, ect...)\n\t\t\tthis._tooltip.update();\n\n\t\t\t// open the tooltip on the map\n\t\t\tthis._map.openTooltip(this._tooltip, latlng);\n\n\t\t\t// Tooltip container may not be defined if not permanent and never\n\t\t\t// opened.\n\t\t\tif (this._tooltip.options.interactive && this._tooltip._container) {\n\t\t\t\taddClass(this._tooltip._container, 'leaflet-clickable');\n\t\t\t\tthis.addInteractiveTarget(this._tooltip._container);\n\t\t\t}\n\t\t}\n\n\t\treturn this;\n\t},\n\n\t// @method closeTooltip(): this\n\t// Closes the tooltip bound to this layer if it is open.\n\tcloseTooltip: function () {\n\t\tif (this._tooltip) {\n\t\t\tthis._tooltip._close();\n\t\t\tif (this._tooltip.options.interactive && this._tooltip._container) {\n\t\t\t\tremoveClass(this._tooltip._container, 'leaflet-clickable');\n\t\t\t\tthis.removeInteractiveTarget(this._tooltip._container);\n\t\t\t}\n\t\t}\n\t\treturn this;\n\t},\n\n\t// @method toggleTooltip(): this\n\t// Opens or closes the tooltip bound to this layer depending on its current state.\n\ttoggleTooltip: function (target) {\n\t\tif (this._tooltip) {\n\t\t\tif (this._tooltip._map) {\n\t\t\t\tthis.closeTooltip();\n\t\t\t} else {\n\t\t\t\tthis.openTooltip(target);\n\t\t\t}\n\t\t}\n\t\treturn this;\n\t},\n\n\t// @method isTooltipOpen(): boolean\n\t// Returns `true` if the tooltip bound to this layer is currently open.\n\tisTooltipOpen: function () {\n\t\treturn this._tooltip.isOpen();\n\t},\n\n\t// @method setTooltipContent(content: String|HTMLElement|Tooltip): this\n\t// Sets the content of the tooltip bound to this layer.\n\tsetTooltipContent: function (content) {\n\t\tif (this._tooltip) {\n\t\t\tthis._tooltip.setContent(content);\n\t\t}\n\t\treturn this;\n\t},\n\n\t// @method getTooltip(): Tooltip\n\t// Returns the tooltip bound to this layer.\n\tgetTooltip: function () {\n\t\treturn this._tooltip;\n\t},\n\n\t_openTooltip: function (e) {\n\t\tvar layer = e.layer || e.target;\n\n\t\tif (!this._tooltip || !this._map) {\n\t\t\treturn;\n\t\t}\n\t\tthis.openTooltip(layer, this._tooltip.options.sticky ? e.latlng : undefined);\n\t},\n\n\t_moveTooltip: function (e) {\n\t\tvar latlng = e.latlng, containerPoint, layerPoint;\n\t\tif (this._tooltip.options.sticky && e.originalEvent) {\n\t\t\tcontainerPoint = this._map.mouseEventToContainerPoint(e.originalEvent);\n\t\t\tlayerPoint = this._map.containerPointToLayerPoint(containerPoint);\n\t\t\tlatlng = this._map.layerPointToLatLng(layerPoint);\n\t\t}\n\t\tthis._tooltip.setLatLng(latlng);\n\t}\n});\n\n/*\n * @class DivIcon\n * @aka L.DivIcon\n * @inherits Icon\n *\n * Represents a lightweight icon for markers that uses a simple `<div>`\n * element instead of an image. Inherits from `Icon` but ignores the `iconUrl` and shadow options.\n *\n * @example\n * ```js\n * var myIcon = L.divIcon({className: 'my-div-icon'});\n * // you can set .my-div-icon styles in CSS\n *\n * L.marker([50.505, 30.57], {icon: myIcon}).addTo(map);\n * ```\n *\n * By default, it has a 'leaflet-div-icon' CSS class and is styled as a little white square with a shadow.\n */\n\nvar DivIcon = Icon.extend({\n\toptions: {\n\t\t// @section\n\t\t// @aka DivIcon options\n\t\ticonSize: [12, 12], // also can be set through CSS\n\n\t\t// iconAnchor: (Point),\n\t\t// popupAnchor: (Point),\n\n\t\t// @option html: String = ''\n\t\t// Custom HTML code to put inside the div element, empty by default.\n\t\thtml: false,\n\n\t\t// @option bgPos: Point = [0, 0]\n\t\t// Optional relative position of the background, in pixels\n\t\tbgPos: null,\n\n\t\tclassName: 'leaflet-div-icon'\n\t},\n\n\tcreateIcon: function (oldIcon) {\n\t\tvar div = (oldIcon && oldIcon.tagName === 'DIV') ? oldIcon : document.createElement('div'),\n\t\t options = this.options;\n\n\t\tdiv.innerHTML = options.html !== false ? options.html : '';\n\n\t\tif (options.bgPos) {\n\t\t\tvar bgPos = toPoint(options.bgPos);\n\t\t\tdiv.style.backgroundPosition = (-bgPos.x) + 'px ' + (-bgPos.y) + 'px';\n\t\t}\n\t\tthis._setIconStyles(div, 'icon');\n\n\t\treturn div;\n\t},\n\n\tcreateShadow: function () {\n\t\treturn null;\n\t}\n});\n\n// @factory L.divIcon(options: DivIcon options)\n// Creates a `DivIcon` instance with the given options.\nfunction divIcon(options) {\n\treturn new DivIcon(options);\n}\n\nIcon.Default = IconDefault;\n\n/*\n * @class GridLayer\n * @inherits Layer\n * @aka L.GridLayer\n *\n * Generic class for handling a tiled grid of HTML elements. This is the base class for all tile layers and replaces `TileLayer.Canvas`.\n * GridLayer can be extended to create a tiled grid of HTML elements like `<canvas>`, `<img>` or `<div>`. GridLayer will handle creating and animating these DOM elements for you.\n *\n *\n * @section Synchronous usage\n * @example\n *\n * To create a custom layer, extend GridLayer and implement the `createTile()` method, which will be passed a `Point` object with the `x`, `y`, and `z` (zoom level) coordinates to draw your tile.\n *\n * ```js\n * var CanvasLayer = L.GridLayer.extend({\n * createTile: function(coords){\n * // create a <canvas> element for drawing\n * var tile = L.DomUtil.create('canvas', 'leaflet-tile');\n *\n * // setup tile width and height according to the options\n * var size = this.getTileSize();\n * tile.width = size.x;\n * tile.height = size.y;\n *\n * // get a canvas context and draw something on it using coords.x, coords.y and coords.z\n * var ctx = tile.getContext('2d');\n *\n * // return the tile so it can be rendered on screen\n * return tile;\n * }\n * });\n * ```\n *\n * @section Asynchronous usage\n * @example\n *\n * Tile creation can also be asynchronous, this is useful when using a third-party drawing library. Once the tile is finished drawing it can be passed to the `done()` callback.\n *\n * ```js\n * var CanvasLayer = L.GridLayer.extend({\n * createTile: function(coords, done){\n * var error;\n *\n * // create a <canvas> element for drawing\n * var tile = L.DomUtil.create('canvas', 'leaflet-tile');\n *\n * // setup tile width and height according to the options\n * var size = this.getTileSize();\n * tile.width = size.x;\n * tile.height = size.y;\n *\n * // draw something asynchronously and pass the tile to the done() callback\n * setTimeout(function() {\n * done(error, tile);\n * }, 1000);\n *\n * return tile;\n * }\n * });\n * ```\n *\n * @section\n */\n\n\nvar GridLayer = Layer.extend({\n\n\t// @section\n\t// @aka GridLayer options\n\toptions: {\n\t\t// @option tileSize: Number|Point = 256\n\t\t// Width and height of tiles in the grid. Use a number if width and height are equal, or `L.point(width, height)` otherwise.\n\t\ttileSize: 256,\n\n\t\t// @option opacity: Number = 1.0\n\t\t// Opacity of the tiles. Can be used in the `createTile()` function.\n\t\topacity: 1,\n\n\t\t// @option updateWhenIdle: Boolean = (depends)\n\t\t// Load new tiles only when panning ends.\n\t\t// `true` by default on mobile browsers, in order to avoid too many requests and keep smooth navigation.\n\t\t// `false` otherwise in order to display new tiles _during_ panning, since it is easy to pan outside the\n\t\t// [`keepBuffer`](#gridlayer-keepbuffer) option in desktop browsers.\n\t\tupdateWhenIdle: mobile,\n\n\t\t// @option updateWhenZooming: Boolean = true\n\t\t// By default, a smooth zoom animation (during a [touch zoom](#map-touchzoom) or a [`flyTo()`](#map-flyto)) will update grid layers every integer zoom level. Setting this option to `false` will update the grid layer only when the smooth animation ends.\n\t\tupdateWhenZooming: true,\n\n\t\t// @option updateInterval: Number = 200\n\t\t// Tiles will not update more than once every `updateInterval` milliseconds when panning.\n\t\tupdateInterval: 200,\n\n\t\t// @option zIndex: Number = 1\n\t\t// The explicit zIndex of the tile layer.\n\t\tzIndex: 1,\n\n\t\t// @option bounds: LatLngBounds = undefined\n\t\t// If set, tiles will only be loaded inside the set `LatLngBounds`.\n\t\tbounds: null,\n\n\t\t// @option minZoom: Number = 0\n\t\t// The minimum zoom level down to which this layer will be displayed (inclusive).\n\t\tminZoom: 0,\n\n\t\t// @option maxZoom: Number = undefined\n\t\t// The maximum zoom level up to which this layer will be displayed (inclusive).\n\t\tmaxZoom: undefined,\n\n\t\t// @option maxNativeZoom: Number = undefined\n\t\t// Maximum zoom number the tile source has available. If it is specified,\n\t\t// the tiles on all zoom levels higher than `maxNativeZoom` will be loaded\n\t\t// from `maxNativeZoom` level and auto-scaled.\n\t\tmaxNativeZoom: undefined,\n\n\t\t// @option minNativeZoom: Number = undefined\n\t\t// Minimum zoom number the tile source has available. If it is specified,\n\t\t// the tiles on all zoom levels lower than `minNativeZoom` will be loaded\n\t\t// from `minNativeZoom` level and auto-scaled.\n\t\tminNativeZoom: undefined,\n\n\t\t// @option noWrap: Boolean = false\n\t\t// Whether the layer is wrapped around the antimeridian. If `true`, the\n\t\t// GridLayer will only be displayed once at low zoom levels. Has no\n\t\t// effect when the [map CRS](#map-crs) doesn't wrap around. Can be used\n\t\t// in combination with [`bounds`](#gridlayer-bounds) to prevent requesting\n\t\t// tiles outside the CRS limits.\n\t\tnoWrap: false,\n\n\t\t// @option pane: String = 'tilePane'\n\t\t// `Map pane` where the grid layer will be added.\n\t\tpane: 'tilePane',\n\n\t\t// @option className: String = ''\n\t\t// A custom class name to assign to the tile layer. Empty by default.\n\t\tclassName: '',\n\n\t\t// @option keepBuffer: Number = 2\n\t\t// When panning the map, keep this many rows and columns of tiles before unloading them.\n\t\tkeepBuffer: 2\n\t},\n\n\tinitialize: function (options) {\n\t\tsetOptions(this, options);\n\t},\n\n\tonAdd: function () {\n\t\tthis._initContainer();\n\n\t\tthis._levels = {};\n\t\tthis._tiles = {};\n\n\t\tthis._resetView();\n\t\tthis._update();\n\t},\n\n\tbeforeAdd: function (map) {\n\t\tmap._addZoomLimit(this);\n\t},\n\n\tonRemove: function (map) {\n\t\tthis._removeAllTiles();\n\t\tremove(this._container);\n\t\tmap._removeZoomLimit(this);\n\t\tthis._container = null;\n\t\tthis._tileZoom = undefined;\n\t},\n\n\t// @method bringToFront: this\n\t// Brings the tile layer to the top of all tile layers.\n\tbringToFront: function () {\n\t\tif (this._map) {\n\t\t\ttoFront(this._container);\n\t\t\tthis._setAutoZIndex(Math.max);\n\t\t}\n\t\treturn this;\n\t},\n\n\t// @method bringToBack: this\n\t// Brings the tile layer to the bottom of all tile layers.\n\tbringToBack: function () {\n\t\tif (this._map) {\n\t\t\ttoBack(this._container);\n\t\t\tthis._setAutoZIndex(Math.min);\n\t\t}\n\t\treturn this;\n\t},\n\n\t// @method getContainer: HTMLElement\n\t// Returns the HTML element that contains the tiles for this layer.\n\tgetContainer: function () {\n\t\treturn this._container;\n\t},\n\n\t// @method setOpacity(opacity: Number): this\n\t// Changes the [opacity](#gridlayer-opacity) of the grid layer.\n\tsetOpacity: function (opacity) {\n\t\tthis.options.opacity = opacity;\n\t\tthis._updateOpacity();\n\t\treturn this;\n\t},\n\n\t// @method setZIndex(zIndex: Number): this\n\t// Changes the [zIndex](#gridlayer-zindex) of the grid layer.\n\tsetZIndex: function (zIndex) {\n\t\tthis.options.zIndex = zIndex;\n\t\tthis._updateZIndex();\n\n\t\treturn this;\n\t},\n\n\t// @method isLoading: Boolean\n\t// Returns `true` if any tile in the grid layer has not finished loading.\n\tisLoading: function () {\n\t\treturn this._loading;\n\t},\n\n\t// @method redraw: this\n\t// Causes the layer to clear all the tiles and request them again.\n\tredraw: function () {\n\t\tif (this._map) {\n\t\t\tthis._removeAllTiles();\n\t\t\tthis._update();\n\t\t}\n\t\treturn this;\n\t},\n\n\tgetEvents: function () {\n\t\tvar events = {\n\t\t\tviewprereset: this._invalidateAll,\n\t\t\tviewreset: this._resetView,\n\t\t\tzoom: this._resetView,\n\t\t\tmoveend: this._onMoveEnd\n\t\t};\n\n\t\tif (!this.options.updateWhenIdle) {\n\t\t\t// update tiles on move, but not more often than once per given interval\n\t\t\tif (!this._onMove) {\n\t\t\t\tthis._onMove = throttle(this._onMoveEnd, this.options.updateInterval, this);\n\t\t\t}\n\n\t\t\tevents.move = this._onMove;\n\t\t}\n\n\t\tif (this._zoomAnimated) {\n\t\t\tevents.zoomanim = this._animateZoom;\n\t\t}\n\n\t\treturn events;\n\t},\n\n\t// @section Extension methods\n\t// Layers extending `GridLayer` shall reimplement the following method.\n\t// @method createTile(coords: Object, done?: Function): HTMLElement\n\t// Called only internally, must be overridden by classes extending `GridLayer`.\n\t// Returns the `HTMLElement` corresponding to the given `coords`. If the `done` callback\n\t// is specified, it must be called when the tile has finished loading and drawing.\n\tcreateTile: function () {\n\t\treturn document.createElement('div');\n\t},\n\n\t// @section\n\t// @method getTileSize: Point\n\t// Normalizes the [tileSize option](#gridlayer-tilesize) into a point. Used by the `createTile()` method.\n\tgetTileSize: function () {\n\t\tvar s = this.options.tileSize;\n\t\treturn s instanceof Point ? s : new Point(s, s);\n\t},\n\n\t_updateZIndex: function () {\n\t\tif (this._container && this.options.zIndex !== undefined && this.options.zIndex !== null) {\n\t\t\tthis._container.style.zIndex = this.options.zIndex;\n\t\t}\n\t},\n\n\t_setAutoZIndex: function (compare) {\n\t\t// go through all other layers of the same pane, set zIndex to max + 1 (front) or min - 1 (back)\n\n\t\tvar layers = this.getPane().children,\n\t\t edgeZIndex = -compare(-Infinity, Infinity); // -Infinity for max, Infinity for min\n\n\t\tfor (var i = 0, len = layers.length, zIndex; i < len; i++) {\n\n\t\t\tzIndex = layers[i].style.zIndex;\n\n\t\t\tif (layers[i] !== this._container && zIndex) {\n\t\t\t\tedgeZIndex = compare(edgeZIndex, +zIndex);\n\t\t\t}\n\t\t}\n\n\t\tif (isFinite(edgeZIndex)) {\n\t\t\tthis.options.zIndex = edgeZIndex + compare(-1, 1);\n\t\t\tthis._updateZIndex();\n\t\t}\n\t},\n\n\t_updateOpacity: function () {\n\t\tif (!this._map) { return; }\n\n\t\t// IE doesn't inherit filter opacity properly, so we're forced to set it on tiles\n\t\tif (ielt9) { return; }\n\n\t\tsetOpacity(this._container, this.options.opacity);\n\n\t\tvar now = +new Date(),\n\t\t nextFrame = false,\n\t\t willPrune = false;\n\n\t\tfor (var key in this._tiles) {\n\t\t\tvar tile = this._tiles[key];\n\t\t\tif (!tile.current || !tile.loaded) { continue; }\n\n\t\t\tvar fade = Math.min(1, (now - tile.loaded) / 200);\n\n\t\t\tsetOpacity(tile.el, fade);\n\t\t\tif (fade < 1) {\n\t\t\t\tnextFrame = true;\n\t\t\t} else {\n\t\t\t\tif (tile.active) {\n\t\t\t\t\twillPrune = true;\n\t\t\t\t} else {\n\t\t\t\t\tthis._onOpaqueTile(tile);\n\t\t\t\t}\n\t\t\t\ttile.active = true;\n\t\t\t}\n\t\t}\n\n\t\tif (willPrune && !this._noPrune) { this._pruneTiles(); }\n\n\t\tif (nextFrame) {\n\t\t\tcancelAnimFrame(this._fadeFrame);\n\t\t\tthis._fadeFrame = requestAnimFrame(this._updateOpacity, this);\n\t\t}\n\t},\n\n\t_onOpaqueTile: falseFn,\n\n\t_initContainer: function () {\n\t\tif (this._container) { return; }\n\n\t\tthis._container = create$1('div', 'leaflet-layer ' + (this.options.className || ''));\n\t\tthis._updateZIndex();\n\n\t\tif (this.options.opacity < 1) {\n\t\t\tthis._updateOpacity();\n\t\t}\n\n\t\tthis.getPane().appendChild(this._container);\n\t},\n\n\t_updateLevels: function () {\n\n\t\tvar zoom = this._tileZoom,\n\t\t maxZoom = this.options.maxZoom;\n\n\t\tif (zoom === undefined) { return undefined; }\n\n\t\tfor (var z in this._levels) {\n\t\t\tif (this._levels[z].el.children.length || z === zoom) {\n\t\t\t\tthis._levels[z].el.style.zIndex = maxZoom - Math.abs(zoom - z);\n\t\t\t\tthis._onUpdateLevel(z);\n\t\t\t} else {\n\t\t\t\tremove(this._levels[z].el);\n\t\t\t\tthis._removeTilesAtZoom(z);\n\t\t\t\tthis._onRemoveLevel(z);\n\t\t\t\tdelete this._levels[z];\n\t\t\t}\n\t\t}\n\n\t\tvar level = this._levels[zoom],\n\t\t map = this._map;\n\n\t\tif (!level) {\n\t\t\tlevel = this._levels[zoom] = {};\n\n\t\t\tlevel.el = create$1('div', 'leaflet-tile-container leaflet-zoom-animated', this._container);\n\t\t\tlevel.el.style.zIndex = maxZoom;\n\n\t\t\tlevel.origin = map.project(map.unproject(map.getPixelOrigin()), zoom).round();\n\t\t\tlevel.zoom = zoom;\n\n\t\t\tthis._setZoomTransform(level, map.getCenter(), map.getZoom());\n\n\t\t\t// force the browser to consider the newly added element for transition\n\t\t\tfalseFn(level.el.offsetWidth);\n\n\t\t\tthis._onCreateLevel(level);\n\t\t}\n\n\t\tthis._level = level;\n\n\t\treturn level;\n\t},\n\n\t_onUpdateLevel: falseFn,\n\n\t_onRemoveLevel: falseFn,\n\n\t_onCreateLevel: falseFn,\n\n\t_pruneTiles: function () {\n\t\tif (!this._map) {\n\t\t\treturn;\n\t\t}\n\n\t\tvar key, tile;\n\n\t\tvar zoom = this._map.getZoom();\n\t\tif (zoom > this.options.maxZoom ||\n\t\t\tzoom < this.options.minZoom) {\n\t\t\tthis._removeAllTiles();\n\t\t\treturn;\n\t\t}\n\n\t\tfor (key in this._tiles) {\n\t\t\ttile = this._tiles[key];\n\t\t\ttile.retain = tile.current;\n\t\t}\n\n\t\tfor (key in this._tiles) {\n\t\t\ttile = this._tiles[key];\n\t\t\tif (tile.current && !tile.active) {\n\t\t\t\tvar coords = tile.coords;\n\t\t\t\tif (!this._retainParent(coords.x, coords.y, coords.z, coords.z - 5)) {\n\t\t\t\t\tthis._retainChildren(coords.x, coords.y, coords.z, coords.z + 2);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (key in this._tiles) {\n\t\t\tif (!this._tiles[key].retain) {\n\t\t\t\tthis._removeTile(key);\n\t\t\t}\n\t\t}\n\t},\n\n\t_removeTilesAtZoom: function (zoom) {\n\t\tfor (var key in this._tiles) {\n\t\t\tif (this._tiles[key].coords.z !== zoom) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tthis._removeTile(key);\n\t\t}\n\t},\n\n\t_removeAllTiles: function () {\n\t\tfor (var key in this._tiles) {\n\t\t\tthis._removeTile(key);\n\t\t}\n\t},\n\n\t_invalidateAll: function () {\n\t\tfor (var z in this._levels) {\n\t\t\tremove(this._levels[z].el);\n\t\t\tthis._onRemoveLevel(z);\n\t\t\tdelete this._levels[z];\n\t\t}\n\t\tthis._removeAllTiles();\n\n\t\tthis._tileZoom = undefined;\n\t},\n\n\t_retainParent: function (x, y, z, minZoom) {\n\t\tvar x2 = Math.floor(x / 2),\n\t\t y2 = Math.floor(y / 2),\n\t\t z2 = z - 1,\n\t\t coords2 = new Point(+x2, +y2);\n\t\tcoords2.z = +z2;\n\n\t\tvar key = this._tileCoordsToKey(coords2),\n\t\t tile = this._tiles[key];\n\n\t\tif (tile && tile.active) {\n\t\t\ttile.retain = true;\n\t\t\treturn true;\n\n\t\t} else if (tile && tile.loaded) {\n\t\t\ttile.retain = true;\n\t\t}\n\n\t\tif (z2 > minZoom) {\n\t\t\treturn this._retainParent(x2, y2, z2, minZoom);\n\t\t}\n\n\t\treturn false;\n\t},\n\n\t_retainChildren: function (x, y, z, maxZoom) {\n\n\t\tfor (var i = 2 * x; i < 2 * x + 2; i++) {\n\t\t\tfor (var j = 2 * y; j < 2 * y + 2; j++) {\n\n\t\t\t\tvar coords = new Point(i, j);\n\t\t\t\tcoords.z = z + 1;\n\n\t\t\t\tvar key = this._tileCoordsToKey(coords),\n\t\t\t\t tile = this._tiles[key];\n\n\t\t\t\tif (tile && tile.active) {\n\t\t\t\t\ttile.retain = true;\n\t\t\t\t\tcontinue;\n\n\t\t\t\t} else if (tile && tile.loaded) {\n\t\t\t\t\ttile.retain = true;\n\t\t\t\t}\n\n\t\t\t\tif (z + 1 < maxZoom) {\n\t\t\t\t\tthis._retainChildren(i, j, z + 1, maxZoom);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t},\n\n\t_resetView: function (e) {\n\t\tvar animating = e && (e.pinch || e.flyTo);\n\t\tthis._setView(this._map.getCenter(), this._map.getZoom(), animating, animating);\n\t},\n\n\t_animateZoom: function (e) {\n\t\tthis._setView(e.center, e.zoom, true, e.noUpdate);\n\t},\n\n\t_clampZoom: function (zoom) {\n\t\tvar options = this.options;\n\n\t\tif (undefined !== options.minNativeZoom && zoom < options.minNativeZoom) {\n\t\t\treturn options.minNativeZoom;\n\t\t}\n\n\t\tif (undefined !== options.maxNativeZoom && options.maxNativeZoom < zoom) {\n\t\t\treturn options.maxNativeZoom;\n\t\t}\n\n\t\treturn zoom;\n\t},\n\n\t_setView: function (center, zoom, noPrune, noUpdate) {\n\t\tvar tileZoom = this._clampZoom(Math.round(zoom));\n\t\tif ((this.options.maxZoom !== undefined && tileZoom > this.options.maxZoom) ||\n\t\t (this.options.minZoom !== undefined && tileZoom < this.options.minZoom)) {\n\t\t\ttileZoom = undefined;\n\t\t}\n\n\t\tvar tileZoomChanged = this.options.updateWhenZooming && (tileZoom !== this._tileZoom);\n\n\t\tif (!noUpdate || tileZoomChanged) {\n\n\t\t\tthis._tileZoom = tileZoom;\n\n\t\t\tif (this._abortLoading) {\n\t\t\t\tthis._abortLoading();\n\t\t\t}\n\n\t\t\tthis._updateLevels();\n\t\t\tthis._resetGrid();\n\n\t\t\tif (tileZoom !== undefined) {\n\t\t\t\tthis._update(center);\n\t\t\t}\n\n\t\t\tif (!noPrune) {\n\t\t\t\tthis._pruneTiles();\n\t\t\t}\n\n\t\t\t// Flag to prevent _updateOpacity from pruning tiles during\n\t\t\t// a zoom anim or a pinch gesture\n\t\t\tthis._noPrune = !!noPrune;\n\t\t}\n\n\t\tthis._setZoomTransforms(center, zoom);\n\t},\n\n\t_setZoomTransforms: function (center, zoom) {\n\t\tfor (var i in this._levels) {\n\t\t\tthis._setZoomTransform(this._levels[i], center, zoom);\n\t\t}\n\t},\n\n\t_setZoomTransform: function (level, center, zoom) {\n\t\tvar scale = this._map.getZoomScale(zoom, level.zoom),\n\t\t translate = level.origin.multiplyBy(scale)\n\t\t .subtract(this._map._getNewPixelOrigin(center, zoom)).round();\n\n\t\tif (any3d) {\n\t\t\tsetTransform(level.el, translate, scale);\n\t\t} else {\n\t\t\tsetPosition(level.el, translate);\n\t\t}\n\t},\n\n\t_resetGrid: function () {\n\t\tvar map = this._map,\n\t\t crs = map.options.crs,\n\t\t tileSize = this._tileSize = this.getTileSize(),\n\t\t tileZoom = this._tileZoom;\n\n\t\tvar bounds = this._map.getPixelWorldBounds(this._tileZoom);\n\t\tif (bounds) {\n\t\t\tthis._globalTileRange = this._pxBoundsToTileRange(bounds);\n\t\t}\n\n\t\tthis._wrapX = crs.wrapLng && !this.options.noWrap && [\n\t\t\tMath.floor(map.project([0, crs.wrapLng[0]], tileZoom).x / tileSize.x),\n\t\t\tMath.ceil(map.project([0, crs.wrapLng[1]], tileZoom).x / tileSize.y)\n\t\t];\n\t\tthis._wrapY = crs.wrapLat && !this.options.noWrap && [\n\t\t\tMath.floor(map.project([crs.wrapLat[0], 0], tileZoom).y / tileSize.x),\n\t\t\tMath.ceil(map.project([crs.wrapLat[1], 0], tileZoom).y / tileSize.y)\n\t\t];\n\t},\n\n\t_onMoveEnd: function () {\n\t\tif (!this._map || this._map._animatingZoom) { return; }\n\n\t\tthis._update();\n\t},\n\n\t_getTiledPixelBounds: function (center) {\n\t\tvar map = this._map,\n\t\t mapZoom = map._animatingZoom ? Math.max(map._animateToZoom, map.getZoom()) : map.getZoom(),\n\t\t scale = map.getZoomScale(mapZoom, this._tileZoom),\n\t\t pixelCenter = map.project(center, this._tileZoom).floor(),\n\t\t halfSize = map.getSize().divideBy(scale * 2);\n\n\t\treturn new Bounds(pixelCenter.subtract(halfSize), pixelCenter.add(halfSize));\n\t},\n\n\t// Private method to load tiles in the grid's active zoom level according to map bounds\n\t_update: function (center) {\n\t\tvar map = this._map;\n\t\tif (!map) { return; }\n\t\tvar zoom = this._clampZoom(map.getZoom());\n\n\t\tif (center === undefined) { center = map.getCenter(); }\n\t\tif (this._tileZoom === undefined) { return; }\t// if out of minzoom/maxzoom\n\n\t\tvar pixelBounds = this._getTiledPixelBounds(center),\n\t\t tileRange = this._pxBoundsToTileRange(pixelBounds),\n\t\t tileCenter = tileRange.getCenter(),\n\t\t queue = [],\n\t\t margin = this.options.keepBuffer,\n\t\t noPruneRange = new Bounds(tileRange.getBottomLeft().subtract([margin, -margin]),\n\t\t tileRange.getTopRight().add([margin, -margin]));\n\n\t\t// Sanity check: panic if the tile range contains Infinity somewhere.\n\t\tif (!(isFinite(tileRange.min.x) &&\n\t\t isFinite(tileRange.min.y) &&\n\t\t isFinite(tileRange.max.x) &&\n\t\t isFinite(tileRange.max.y))) { throw new Error('Attempted to load an infinite number of tiles'); }\n\n\t\tfor (var key in this._tiles) {\n\t\t\tvar c = this._tiles[key].coords;\n\t\t\tif (c.z !== this._tileZoom || !noPruneRange.contains(new Point(c.x, c.y))) {\n\t\t\t\tthis._tiles[key].current = false;\n\t\t\t}\n\t\t}\n\n\t\t// _update just loads more tiles. If the tile zoom level differs too much\n\t\t// from the map's, let _setView reset levels and prune old tiles.\n\t\tif (Math.abs(zoom - this._tileZoom) > 1) { this._setView(center, zoom); return; }\n\n\t\t// create a queue of coordinates to load tiles from\n\t\tfor (var j = tileRange.min.y; j <= tileRange.max.y; j++) {\n\t\t\tfor (var i = tileRange.min.x; i <= tileRange.max.x; i++) {\n\t\t\t\tvar coords = new Point(i, j);\n\t\t\t\tcoords.z = this._tileZoom;\n\n\t\t\t\tif (!this._isValidTile(coords)) { continue; }\n\n\t\t\t\tvar tile = this._tiles[this._tileCoordsToKey(coords)];\n\t\t\t\tif (tile) {\n\t\t\t\t\ttile.current = true;\n\t\t\t\t} else {\n\t\t\t\t\tqueue.push(coords);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// sort tile queue to load tiles in order of their distance to center\n\t\tqueue.sort(function (a, b) {\n\t\t\treturn a.distanceTo(tileCenter) - b.distanceTo(tileCenter);\n\t\t});\n\n\t\tif (queue.length !== 0) {\n\t\t\t// if it's the first batch of tiles to load\n\t\t\tif (!this._loading) {\n\t\t\t\tthis._loading = true;\n\t\t\t\t// @event loading: Event\n\t\t\t\t// Fired when the grid layer starts loading tiles.\n\t\t\t\tthis.fire('loading');\n\t\t\t}\n\n\t\t\t// create DOM fragment to append tiles in one batch\n\t\t\tvar fragment = document.createDocumentFragment();\n\n\t\t\tfor (i = 0; i < queue.length; i++) {\n\t\t\t\tthis._addTile(queue[i], fragment);\n\t\t\t}\n\n\t\t\tthis._level.el.appendChild(fragment);\n\t\t}\n\t},\n\n\t_isValidTile: function (coords) {\n\t\tvar crs = this._map.options.crs;\n\n\t\tif (!crs.infinite) {\n\t\t\t// don't load tile if it's out of bounds and not wrapped\n\t\t\tvar bounds = this._globalTileRange;\n\t\t\tif ((!crs.wrapLng && (coords.x < bounds.min.x || coords.x > bounds.max.x)) ||\n\t\t\t (!crs.wrapLat && (coords.y < bounds.min.y || coords.y > bounds.max.y))) { return false; }\n\t\t}\n\n\t\tif (!this.options.bounds) { return true; }\n\n\t\t// don't load tile if it doesn't intersect the bounds in options\n\t\tvar tileBounds = this._tileCoordsToBounds(coords);\n\t\treturn toLatLngBounds(this.options.bounds).overlaps(tileBounds);\n\t},\n\n\t_keyToBounds: function (key) {\n\t\treturn this._tileCoordsToBounds(this._keyToTileCoords(key));\n\t},\n\n\t_tileCoordsToNwSe: function (coords) {\n\t\tvar map = this._map,\n\t\t tileSize = this.getTileSize(),\n\t\t nwPoint = coords.scaleBy(tileSize),\n\t\t sePoint = nwPoint.add(tileSize),\n\t\t nw = map.unproject(nwPoint, coords.z),\n\t\t se = map.unproject(sePoint, coords.z);\n\t\treturn [nw, se];\n\t},\n\n\t// converts tile coordinates to its geographical bounds\n\t_tileCoordsToBounds: function (coords) {\n\t\tvar bp = this._tileCoordsToNwSe(coords),\n\t\t bounds = new LatLngBounds(bp[0], bp[1]);\n\n\t\tif (!this.options.noWrap) {\n\t\t\tbounds = this._map.wrapLatLngBounds(bounds);\n\t\t}\n\t\treturn bounds;\n\t},\n\t// converts tile coordinates to key for the tile cache\n\t_tileCoordsToKey: function (coords) {\n\t\treturn coords.x + ':' + coords.y + ':' + coords.z;\n\t},\n\n\t// converts tile cache key to coordinates\n\t_keyToTileCoords: function (key) {\n\t\tvar k = key.split(':'),\n\t\t coords = new Point(+k[0], +k[1]);\n\t\tcoords.z = +k[2];\n\t\treturn coords;\n\t},\n\n\t_removeTile: function (key) {\n\t\tvar tile = this._tiles[key];\n\t\tif (!tile) { return; }\n\n\t\t// Cancels any pending http requests associated with the tile\n\t\t// unless we're on Android's stock browser,\n\t\t// see https://github.com/Leaflet/Leaflet/issues/137\n\t\tif (!androidStock) {\n\t\t\ttile.el.setAttribute('src', emptyImageUrl);\n\t\t}\n\t\tremove(tile.el);\n\n\t\tdelete this._tiles[key];\n\n\t\t// @event tileunload: TileEvent\n\t\t// Fired when a tile is removed (e.g. when a tile goes off the screen).\n\t\tthis.fire('tileunload', {\n\t\t\ttile: tile.el,\n\t\t\tcoords: this._keyToTileCoords(key)\n\t\t});\n\t},\n\n\t_initTile: function (tile) {\n\t\taddClass(tile, 'leaflet-tile');\n\n\t\tvar tileSize = this.getTileSize();\n\t\ttile.style.width = tileSize.x + 'px';\n\t\ttile.style.height = tileSize.y + 'px';\n\n\t\ttile.onselectstart = falseFn;\n\t\ttile.onmousemove = falseFn;\n\n\t\t// update opacity on tiles in IE7-8 because of filter inheritance problems\n\t\tif (ielt9 && this.options.opacity < 1) {\n\t\t\tsetOpacity(tile, this.options.opacity);\n\t\t}\n\n\t\t// without this hack, tiles disappear after zoom on Chrome for Android\n\t\t// https://github.com/Leaflet/Leaflet/issues/2078\n\t\tif (android && !android23) {\n\t\t\ttile.style.WebkitBackfaceVisibility = 'hidden';\n\t\t}\n\t},\n\n\t_addTile: function (coords, container) {\n\t\tvar tilePos = this._getTilePos(coords),\n\t\t key = this._tileCoordsToKey(coords);\n\n\t\tvar tile = this.createTile(this._wrapCoords(coords), bind(this._tileReady, this, coords));\n\n\t\tthis._initTile(tile);\n\n\t\t// if createTile is defined with a second argument (\"done\" callback),\n\t\t// we know that tile is async and will be ready later; otherwise\n\t\tif (this.createTile.length < 2) {\n\t\t\t// mark tile as ready, but delay one frame for opacity animation to happen\n\t\t\trequestAnimFrame(bind(this._tileReady, this, coords, null, tile));\n\t\t}\n\n\t\tsetPosition(tile, tilePos);\n\n\t\t// save tile in cache\n\t\tthis._tiles[key] = {\n\t\t\tel: tile,\n\t\t\tcoords: coords,\n\t\t\tcurrent: true\n\t\t};\n\n\t\tcontainer.appendChild(tile);\n\t\t// @event tileloadstart: TileEvent\n\t\t// Fired when a tile is requested and starts loading.\n\t\tthis.fire('tileloadstart', {\n\t\t\ttile: tile,\n\t\t\tcoords: coords\n\t\t});\n\t},\n\n\t_tileReady: function (coords, err, tile) {\n\t\tif (!this._map || tile.getAttribute('src') === emptyImageUrl) { return; }\n\n\t\tif (err) {\n\t\t\t// @event tileerror: TileErrorEvent\n\t\t\t// Fired when there is an error loading a tile.\n\t\t\tthis.fire('tileerror', {\n\t\t\t\terror: err,\n\t\t\t\ttile: tile,\n\t\t\t\tcoords: coords\n\t\t\t});\n\t\t}\n\n\t\tvar key = this._tileCoordsToKey(coords);\n\n\t\ttile = this._tiles[key];\n\t\tif (!tile) { return; }\n\n\t\ttile.loaded = +new Date();\n\t\tif (this._map._fadeAnimated) {\n\t\t\tsetOpacity(tile.el, 0);\n\t\t\tcancelAnimFrame(this._fadeFrame);\n\t\t\tthis._fadeFrame = requestAnimFrame(this._updateOpacity, this);\n\t\t} else {\n\t\t\ttile.active = true;\n\t\t\tthis._pruneTiles();\n\t\t}\n\n\t\tif (!err) {\n\t\t\taddClass(tile.el, 'leaflet-tile-loaded');\n\n\t\t\t// @event tileload: TileEvent\n\t\t\t// Fired when a tile loads.\n\t\t\tthis.fire('tileload', {\n\t\t\t\ttile: tile.el,\n\t\t\t\tcoords: coords\n\t\t\t});\n\t\t}\n\n\t\tif (this._noTilesToLoad()) {\n\t\t\tthis._loading = false;\n\t\t\t// @event load: Event\n\t\t\t// Fired when the grid layer loaded all visible tiles.\n\t\t\tthis.fire('load');\n\n\t\t\tif (ielt9 || !this._map._fadeAnimated) {\n\t\t\t\trequestAnimFrame(this._pruneTiles, this);\n\t\t\t} else {\n\t\t\t\t// Wait a bit more than 0.2 secs (the duration of the tile fade-in)\n\t\t\t\t// to trigger a pruning.\n\t\t\t\tsetTimeout(bind(this._pruneTiles, this), 250);\n\t\t\t}\n\t\t}\n\t},\n\n\t_getTilePos: function (coords) {\n\t\treturn coords.scaleBy(this.getTileSize()).subtract(this._level.origin);\n\t},\n\n\t_wrapCoords: function (coords) {\n\t\tvar newCoords = new Point(\n\t\t\tthis._wrapX ? wrapNum(coords.x, this._wrapX) : coords.x,\n\t\t\tthis._wrapY ? wrapNum(coords.y, this._wrapY) : coords.y);\n\t\tnewCoords.z = coords.z;\n\t\treturn newCoords;\n\t},\n\n\t_pxBoundsToTileRange: function (bounds) {\n\t\tvar tileSize = this.getTileSize();\n\t\treturn new Bounds(\n\t\t\tbounds.min.unscaleBy(tileSize).floor(),\n\t\t\tbounds.max.unscaleBy(tileSize).ceil().subtract([1, 1]));\n\t},\n\n\t_noTilesToLoad: function () {\n\t\tfor (var key in this._tiles) {\n\t\t\tif (!this._tiles[key].loaded) { return false; }\n\t\t}\n\t\treturn true;\n\t}\n});\n\n// @factory L.gridLayer(options?: GridLayer options)\n// Creates a new instance of GridLayer with the supplied options.\nfunction gridLayer(options) {\n\treturn new GridLayer(options);\n}\n\n/*\r\n * @class TileLayer\r\n * @inherits GridLayer\r\n * @aka L.TileLayer\r\n * Used to load and display tile layers on the map. Extends `GridLayer`.\r\n *\r\n * @example\r\n *\r\n * ```js\r\n * L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png?{foo}', {foo: 'bar'}).addTo(map);\r\n * ```\r\n *\r\n * @section URL template\r\n * @example\r\n *\r\n * A string of the following form:\r\n *\r\n * ```\r\n * 'http://{s}.somedomain.com/blabla/{z}/{x}/{y}{r}.png'\r\n * ```\r\n *\r\n * `{s}` means one of the available subdomains (used sequentially to help with browser parallel requests per domain limitation; subdomain values are specified in options; `a`, `b` or `c` by default, can be omitted), `{z}` — zoom level, `{x}` and `{y}` — tile coordinates. `{r}` can be used to add \"&commat;2x\" to the URL to load retina tiles.\r\n *\r\n * You can use custom keys in the template, which will be [evaluated](#util-template) from TileLayer options, like this:\r\n *\r\n * ```\r\n * L.tileLayer('http://{s}.somedomain.com/{foo}/{z}/{x}/{y}.png', {foo: 'bar'});\r\n * ```\r\n */\r\n\r\n\r\nvar TileLayer = GridLayer.extend({\r\n\r\n\t// @section\r\n\t// @aka TileLayer options\r\n\toptions: {\r\n\t\t// @option minZoom: Number = 0\r\n\t\t// The minimum zoom level down to which this layer will be displayed (inclusive).\r\n\t\tminZoom: 0,\r\n\r\n\t\t// @option maxZoom: Number = 18\r\n\t\t// The maximum zoom level up to which this layer will be displayed (inclusive).\r\n\t\tmaxZoom: 18,\r\n\r\n\t\t// @option subdomains: String|String[] = 'abc'\r\n\t\t// Subdomains of the tile service. Can be passed in the form of one string (where each letter is a subdomain name) or an array of strings.\r\n\t\tsubdomains: 'abc',\r\n\r\n\t\t// @option errorTileUrl: String = ''\r\n\t\t// URL to the tile image to show in place of the tile that failed to load.\r\n\t\terrorTileUrl: '',\r\n\r\n\t\t// @option zoomOffset: Number = 0\r\n\t\t// The zoom number used in tile URLs will be offset with this value.\r\n\t\tzoomOffset: 0,\r\n\r\n\t\t// @option tms: Boolean = false\r\n\t\t// If `true`, inverses Y axis numbering for tiles (turn this on for [TMS](https://en.wikipedia.org/wiki/Tile_Map_Service) services).\r\n\t\ttms: false,\r\n\r\n\t\t// @option zoomReverse: Boolean = false\r\n\t\t// If set to true, the zoom number used in tile URLs will be reversed (`maxZoom - zoom` instead of `zoom`)\r\n\t\tzoomReverse: false,\r\n\r\n\t\t// @option detectRetina: Boolean = false\r\n\t\t// If `true` and user is on a retina display, it will request four tiles of half the specified size and a bigger zoom level in place of one to utilize the high resolution.\r\n\t\tdetectRetina: false,\r\n\r\n\t\t// @option crossOrigin: Boolean|String = false\r\n\t\t// Whether the crossOrigin attribute will be added to the tiles.\r\n\t\t// If a String is provided, all tiles will have their crossOrigin attribute set to the String provided. This is needed if you want to access tile pixel data.\r\n\t\t// Refer to [CORS Settings](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_settings_attributes) for valid String values.\r\n\t\tcrossOrigin: false\r\n\t},\r\n\r\n\tinitialize: function (url, options) {\r\n\r\n\t\tthis._url = url;\r\n\r\n\t\toptions = setOptions(this, options);\r\n\r\n\t\t// detecting retina displays, adjusting tileSize and zoom levels\r\n\t\tif (options.detectRetina && retina && options.maxZoom > 0) {\r\n\r\n\t\t\toptions.tileSize = Math.floor(options.tileSize / 2);\r\n\r\n\t\t\tif (!options.zoomReverse) {\r\n\t\t\t\toptions.zoomOffset++;\r\n\t\t\t\toptions.maxZoom--;\r\n\t\t\t} else {\r\n\t\t\t\toptions.zoomOffset--;\r\n\t\t\t\toptions.minZoom++;\r\n\t\t\t}\r\n\r\n\t\t\toptions.minZoom = Math.max(0, options.minZoom);\r\n\t\t}\r\n\r\n\t\tif (typeof options.subdomains === 'string') {\r\n\t\t\toptions.subdomains = options.subdomains.split('');\r\n\t\t}\r\n\r\n\t\t// for https://github.com/Leaflet/Leaflet/issues/137\r\n\t\tif (!android) {\r\n\t\t\tthis.on('tileunload', this._onTileRemove);\r\n\t\t}\r\n\t},\r\n\r\n\t// @method setUrl(url: String, noRedraw?: Boolean): this\r\n\t// Updates the layer's URL template and redraws it (unless `noRedraw` is set to `true`).\r\n\tsetUrl: function (url, noRedraw) {\r\n\t\tthis._url = url;\r\n\r\n\t\tif (!noRedraw) {\r\n\t\t\tthis.redraw();\r\n\t\t}\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method createTile(coords: Object, done?: Function): HTMLElement\r\n\t// Called only internally, overrides GridLayer's [`createTile()`](#gridlayer-createtile)\r\n\t// to return an `<img>` HTML element with the appropriate image URL given `coords`. The `done`\r\n\t// callback is called when the tile has been loaded.\r\n\tcreateTile: function (coords, done) {\r\n\t\tvar tile = document.createElement('img');\r\n\r\n\t\ton(tile, 'load', bind(this._tileOnLoad, this, done, tile));\r\n\t\ton(tile, 'error', bind(this._tileOnError, this, done, tile));\r\n\r\n\t\tif (this.options.crossOrigin || this.options.crossOrigin === '') {\r\n\t\t\ttile.crossOrigin = this.options.crossOrigin === true ? '' : this.options.crossOrigin;\r\n\t\t}\r\n\r\n\t\t/*\r\n\t\t Alt tag is set to empty string to keep screen readers from reading URL and for compliance reasons\r\n\t\t http://www.w3.org/TR/WCAG20-TECHS/H67\r\n\t\t*/\r\n\t\ttile.alt = '';\r\n\r\n\t\t/*\r\n\t\t Set role=\"presentation\" to force screen readers to ignore this\r\n\t\t https://www.w3.org/TR/wai-aria/roles#textalternativecomputation\r\n\t\t*/\r\n\t\ttile.setAttribute('role', 'presentation');\r\n\r\n\t\ttile.src = this.getTileUrl(coords);\r\n\r\n\t\treturn tile;\r\n\t},\r\n\r\n\t// @section Extension methods\r\n\t// @uninheritable\r\n\t// Layers extending `TileLayer` might reimplement the following method.\r\n\t// @method getTileUrl(coords: Object): String\r\n\t// Called only internally, returns the URL for a tile given its coordinates.\r\n\t// Classes extending `TileLayer` can override this function to provide custom tile URL naming schemes.\r\n\tgetTileUrl: function (coords) {\r\n\t\tvar data = {\r\n\t\t\tr: retina ? '@2x' : '',\r\n\t\t\ts: this._getSubdomain(coords),\r\n\t\t\tx: coords.x,\r\n\t\t\ty: coords.y,\r\n\t\t\tz: this._getZoomForUrl()\r\n\t\t};\r\n\t\tif (this._map && !this._map.options.crs.infinite) {\r\n\t\t\tvar invertedY = this._globalTileRange.max.y - coords.y;\r\n\t\t\tif (this.options.tms) {\r\n\t\t\t\tdata['y'] = invertedY;\r\n\t\t\t}\r\n\t\t\tdata['-y'] = invertedY;\r\n\t\t}\r\n\r\n\t\treturn template(this._url, extend(data, this.options));\r\n\t},\r\n\r\n\t_tileOnLoad: function (done, tile) {\r\n\t\t// For https://github.com/Leaflet/Leaflet/issues/3332\r\n\t\tif (ielt9) {\r\n\t\t\tsetTimeout(bind(done, this, null, tile), 0);\r\n\t\t} else {\r\n\t\t\tdone(null, tile);\r\n\t\t}\r\n\t},\r\n\r\n\t_tileOnError: function (done, tile, e) {\r\n\t\tvar errorUrl = this.options.errorTileUrl;\r\n\t\tif (errorUrl && tile.getAttribute('src') !== errorUrl) {\r\n\t\t\ttile.src = errorUrl;\r\n\t\t}\r\n\t\tdone(e, tile);\r\n\t},\r\n\r\n\t_onTileRemove: function (e) {\r\n\t\te.tile.onload = null;\r\n\t},\r\n\r\n\t_getZoomForUrl: function () {\r\n\t\tvar zoom = this._tileZoom,\r\n\t\tmaxZoom = this.options.maxZoom,\r\n\t\tzoomReverse = this.options.zoomReverse,\r\n\t\tzoomOffset = this.options.zoomOffset;\r\n\r\n\t\tif (zoomReverse) {\r\n\t\t\tzoom = maxZoom - zoom;\r\n\t\t}\r\n\r\n\t\treturn zoom + zoomOffset;\r\n\t},\r\n\r\n\t_getSubdomain: function (tilePoint) {\r\n\t\tvar index = Math.abs(tilePoint.x + tilePoint.y) % this.options.subdomains.length;\r\n\t\treturn this.options.subdomains[index];\r\n\t},\r\n\r\n\t// stops loading all tiles in the background layer\r\n\t_abortLoading: function () {\r\n\t\tvar i, tile;\r\n\t\tfor (i in this._tiles) {\r\n\t\t\tif (this._tiles[i].coords.z !== this._tileZoom) {\r\n\t\t\t\ttile = this._tiles[i].el;\r\n\r\n\t\t\t\ttile.onload = falseFn;\r\n\t\t\t\ttile.onerror = falseFn;\r\n\r\n\t\t\t\tif (!tile.complete) {\r\n\t\t\t\t\ttile.src = emptyImageUrl;\r\n\t\t\t\t\tremove(tile);\r\n\t\t\t\t\tdelete this._tiles[i];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n});\r\n\r\n\r\n// @factory L.tilelayer(urlTemplate: String, options?: TileLayer options)\r\n// Instantiates a tile layer object given a `URL template` and optionally an options object.\r\n\r\nfunction tileLayer(url, options) {\r\n\treturn new TileLayer(url, options);\r\n}\n\n/*\r\n * @class TileLayer.WMS\r\n * @inherits TileLayer\r\n * @aka L.TileLayer.WMS\r\n * Used to display [WMS](https://en.wikipedia.org/wiki/Web_Map_Service) services as tile layers on the map. Extends `TileLayer`.\r\n *\r\n * @example\r\n *\r\n * ```js\r\n * var nexrad = L.tileLayer.wms(\"http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r.cgi\", {\r\n * \tlayers: 'nexrad-n0r-900913',\r\n * \tformat: 'image/png',\r\n * \ttransparent: true,\r\n * \tattribution: \"Weather data © 2012 IEM Nexrad\"\r\n * });\r\n * ```\r\n */\r\n\r\nvar TileLayerWMS = TileLayer.extend({\r\n\r\n\t// @section\r\n\t// @aka TileLayer.WMS options\r\n\t// If any custom options not documented here are used, they will be sent to the\r\n\t// WMS server as extra parameters in each request URL. This can be useful for\r\n\t// [non-standard vendor WMS parameters](http://docs.geoserver.org/stable/en/user/services/wms/vendor.html).\r\n\tdefaultWmsParams: {\r\n\t\tservice: 'WMS',\r\n\t\trequest: 'GetMap',\r\n\r\n\t\t// @option layers: String = ''\r\n\t\t// **(required)** Comma-separated list of WMS layers to show.\r\n\t\tlayers: '',\r\n\r\n\t\t// @option styles: String = ''\r\n\t\t// Comma-separated list of WMS styles.\r\n\t\tstyles: '',\r\n\r\n\t\t// @option format: String = 'image/jpeg'\r\n\t\t// WMS image format (use `'image/png'` for layers with transparency).\r\n\t\tformat: 'image/jpeg',\r\n\r\n\t\t// @option transparent: Boolean = false\r\n\t\t// If `true`, the WMS service will return images with transparency.\r\n\t\ttransparent: false,\r\n\r\n\t\t// @option version: String = '1.1.1'\r\n\t\t// Version of the WMS service to use\r\n\t\tversion: '1.1.1'\r\n\t},\r\n\r\n\toptions: {\r\n\t\t// @option crs: CRS = null\r\n\t\t// Coordinate Reference System to use for the WMS requests, defaults to\r\n\t\t// map CRS. Don't change this if you're not sure what it means.\r\n\t\tcrs: null,\r\n\r\n\t\t// @option uppercase: Boolean = false\r\n\t\t// If `true`, WMS request parameter keys will be uppercase.\r\n\t\tuppercase: false\r\n\t},\r\n\r\n\tinitialize: function (url, options) {\r\n\r\n\t\tthis._url = url;\r\n\r\n\t\tvar wmsParams = extend({}, this.defaultWmsParams);\r\n\r\n\t\t// all keys that are not TileLayer options go to WMS params\r\n\t\tfor (var i in options) {\r\n\t\t\tif (!(i in this.options)) {\r\n\t\t\t\twmsParams[i] = options[i];\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\toptions = setOptions(this, options);\r\n\r\n\t\tvar realRetina = options.detectRetina && retina ? 2 : 1;\r\n\t\tvar tileSize = this.getTileSize();\r\n\t\twmsParams.width = tileSize.x * realRetina;\r\n\t\twmsParams.height = tileSize.y * realRetina;\r\n\r\n\t\tthis.wmsParams = wmsParams;\r\n\t},\r\n\r\n\tonAdd: function (map) {\r\n\r\n\t\tthis._crs = this.options.crs || map.options.crs;\r\n\t\tthis._wmsVersion = parseFloat(this.wmsParams.version);\r\n\r\n\t\tvar projectionKey = this._wmsVersion >= 1.3 ? 'crs' : 'srs';\r\n\t\tthis.wmsParams[projectionKey] = this._crs.code;\r\n\r\n\t\tTileLayer.prototype.onAdd.call(this, map);\r\n\t},\r\n\r\n\tgetTileUrl: function (coords) {\r\n\r\n\t\tvar tileBounds = this._tileCoordsToNwSe(coords),\r\n\t\t crs = this._crs,\r\n\t\t bounds = toBounds(crs.project(tileBounds[0]), crs.project(tileBounds[1])),\r\n\t\t min = bounds.min,\r\n\t\t max = bounds.max,\r\n\t\t bbox = (this._wmsVersion >= 1.3 && this._crs === EPSG4326 ?\r\n\t\t [min.y, min.x, max.y, max.x] :\r\n\t\t [min.x, min.y, max.x, max.y]).join(','),\r\n\t\t url = TileLayer.prototype.getTileUrl.call(this, coords);\r\n\t\treturn url +\r\n\t\t\tgetParamString(this.wmsParams, url, this.options.uppercase) +\r\n\t\t\t(this.options.uppercase ? '&BBOX=' : '&bbox=') + bbox;\r\n\t},\r\n\r\n\t// @method setParams(params: Object, noRedraw?: Boolean): this\r\n\t// Merges an object with the new parameters and re-requests tiles on the current screen (unless `noRedraw` was set to true).\r\n\tsetParams: function (params, noRedraw) {\r\n\r\n\t\textend(this.wmsParams, params);\r\n\r\n\t\tif (!noRedraw) {\r\n\t\t\tthis.redraw();\r\n\t\t}\r\n\r\n\t\treturn this;\r\n\t}\r\n});\r\n\r\n\r\n// @factory L.tileLayer.wms(baseUrl: String, options: TileLayer.WMS options)\r\n// Instantiates a WMS tile layer object given a base URL of the WMS service and a WMS parameters/options object.\r\nfunction tileLayerWMS(url, options) {\r\n\treturn new TileLayerWMS(url, options);\r\n}\n\nTileLayer.WMS = TileLayerWMS;\ntileLayer.wms = tileLayerWMS;\n\n/*\n * @class Renderer\n * @inherits Layer\n * @aka L.Renderer\n *\n * Base class for vector renderer implementations (`SVG`, `Canvas`). Handles the\n * DOM container of the renderer, its bounds, and its zoom animation.\n *\n * A `Renderer` works as an implicit layer group for all `Path`s - the renderer\n * itself can be added or removed to the map. All paths use a renderer, which can\n * be implicit (the map will decide the type of renderer and use it automatically)\n * or explicit (using the [`renderer`](#path-renderer) option of the path).\n *\n * Do not use this class directly, use `SVG` and `Canvas` instead.\n *\n * @event update: Event\n * Fired when the renderer updates its bounds, center and zoom, for example when\n * its map has moved\n */\n\nvar Renderer = Layer.extend({\n\n\t// @section\n\t// @aka Renderer options\n\toptions: {\n\t\t// @option padding: Number = 0.1\n\t\t// How much to extend the clip area around the map view (relative to its size)\n\t\t// e.g. 0.1 would be 10% of map view in each direction\n\t\tpadding: 0.1,\n\n\t\t// @option tolerance: Number = 0\n\t\t// How much to extend click tolerance round a path/object on the map\n\t\ttolerance : 0\n\t},\n\n\tinitialize: function (options) {\n\t\tsetOptions(this, options);\n\t\tstamp(this);\n\t\tthis._layers = this._layers || {};\n\t},\n\n\tonAdd: function () {\n\t\tif (!this._container) {\n\t\t\tthis._initContainer(); // defined by renderer implementations\n\n\t\t\tif (this._zoomAnimated) {\n\t\t\t\taddClass(this._container, 'leaflet-zoom-animated');\n\t\t\t}\n\t\t}\n\n\t\tthis.getPane().appendChild(this._container);\n\t\tthis._update();\n\t\tthis.on('update', this._updatePaths, this);\n\t},\n\n\tonRemove: function () {\n\t\tthis.off('update', this._updatePaths, this);\n\t\tthis._destroyContainer();\n\t},\n\n\tgetEvents: function () {\n\t\tvar events = {\n\t\t\tviewreset: this._reset,\n\t\t\tzoom: this._onZoom,\n\t\t\tmoveend: this._update,\n\t\t\tzoomend: this._onZoomEnd\n\t\t};\n\t\tif (this._zoomAnimated) {\n\t\t\tevents.zoomanim = this._onAnimZoom;\n\t\t}\n\t\treturn events;\n\t},\n\n\t_onAnimZoom: function (ev) {\n\t\tthis._updateTransform(ev.center, ev.zoom);\n\t},\n\n\t_onZoom: function () {\n\t\tthis._updateTransform(this._map.getCenter(), this._map.getZoom());\n\t},\n\n\t_updateTransform: function (center, zoom) {\n\t\tvar scale = this._map.getZoomScale(zoom, this._zoom),\n\t\t position = getPosition(this._container),\n\t\t viewHalf = this._map.getSize().multiplyBy(0.5 + this.options.padding),\n\t\t currentCenterPoint = this._map.project(this._center, zoom),\n\t\t destCenterPoint = this._map.project(center, zoom),\n\t\t centerOffset = destCenterPoint.subtract(currentCenterPoint),\n\n\t\t topLeftOffset = viewHalf.multiplyBy(-scale).add(position).add(viewHalf).subtract(centerOffset);\n\n\t\tif (any3d) {\n\t\t\tsetTransform(this._container, topLeftOffset, scale);\n\t\t} else {\n\t\t\tsetPosition(this._container, topLeftOffset);\n\t\t}\n\t},\n\n\t_reset: function () {\n\t\tthis._update();\n\t\tthis._updateTransform(this._center, this._zoom);\n\n\t\tfor (var id in this._layers) {\n\t\t\tthis._layers[id]._reset();\n\t\t}\n\t},\n\n\t_onZoomEnd: function () {\n\t\tfor (var id in this._layers) {\n\t\t\tthis._layers[id]._project();\n\t\t}\n\t},\n\n\t_updatePaths: function () {\n\t\tfor (var id in this._layers) {\n\t\t\tthis._layers[id]._update();\n\t\t}\n\t},\n\n\t_update: function () {\n\t\t// Update pixel bounds of renderer container (for positioning/sizing/clipping later)\n\t\t// Subclasses are responsible of firing the 'update' event.\n\t\tvar p = this.options.padding,\n\t\t size = this._map.getSize(),\n\t\t min = this._map.containerPointToLayerPoint(size.multiplyBy(-p)).round();\n\n\t\tthis._bounds = new Bounds(min, min.add(size.multiplyBy(1 + p * 2)).round());\n\n\t\tthis._center = this._map.getCenter();\n\t\tthis._zoom = this._map.getZoom();\n\t}\n});\n\n/*\n * @class Canvas\n * @inherits Renderer\n * @aka L.Canvas\n *\n * Allows vector layers to be displayed with [`<canvas>`](https://developer.mozilla.org/docs/Web/API/Canvas_API).\n * Inherits `Renderer`.\n *\n * Due to [technical limitations](http://caniuse.com/#search=canvas), Canvas is not\n * available in all web browsers, notably IE8, and overlapping geometries might\n * not display properly in some edge cases.\n *\n * @example\n *\n * Use Canvas by default for all paths in the map:\n *\n * ```js\n * var map = L.map('map', {\n * \trenderer: L.canvas()\n * });\n * ```\n *\n * Use a Canvas renderer with extra padding for specific vector geometries:\n *\n * ```js\n * var map = L.map('map');\n * var myRenderer = L.canvas({ padding: 0.5 });\n * var line = L.polyline( coordinates, { renderer: myRenderer } );\n * var circle = L.circle( center, { renderer: myRenderer } );\n * ```\n */\n\nvar Canvas = Renderer.extend({\n\tgetEvents: function () {\n\t\tvar events = Renderer.prototype.getEvents.call(this);\n\t\tevents.viewprereset = this._onViewPreReset;\n\t\treturn events;\n\t},\n\n\t_onViewPreReset: function () {\n\t\t// Set a flag so that a viewprereset+moveend+viewreset only updates&redraws once\n\t\tthis._postponeUpdatePaths = true;\n\t},\n\n\tonAdd: function () {\n\t\tRenderer.prototype.onAdd.call(this);\n\n\t\t// Redraw vectors since canvas is cleared upon removal,\n\t\t// in case of removing the renderer itself from the map.\n\t\tthis._draw();\n\t},\n\n\t_initContainer: function () {\n\t\tvar container = this._container = document.createElement('canvas');\n\n\t\ton(container, 'mousemove', throttle(this._onMouseMove, 32, this), this);\n\t\ton(container, 'click dblclick mousedown mouseup contextmenu', this._onClick, this);\n\t\ton(container, 'mouseout', this._handleMouseOut, this);\n\n\t\tthis._ctx = container.getContext('2d');\n\t},\n\n\t_destroyContainer: function () {\n\t\tcancelAnimFrame(this._redrawRequest);\n\t\tdelete this._ctx;\n\t\tremove(this._container);\n\t\toff(this._container);\n\t\tdelete this._container;\n\t},\n\n\t_updatePaths: function () {\n\t\tif (this._postponeUpdatePaths) { return; }\n\n\t\tvar layer;\n\t\tthis._redrawBounds = null;\n\t\tfor (var id in this._layers) {\n\t\t\tlayer = this._layers[id];\n\t\t\tlayer._update();\n\t\t}\n\t\tthis._redraw();\n\t},\n\n\t_update: function () {\n\t\tif (this._map._animatingZoom && this._bounds) { return; }\n\n\t\tthis._drawnLayers = {};\n\n\t\tRenderer.prototype._update.call(this);\n\n\t\tvar b = this._bounds,\n\t\t container = this._container,\n\t\t size = b.getSize(),\n\t\t m = retina ? 2 : 1;\n\n\t\tsetPosition(container, b.min);\n\n\t\t// set canvas size (also clearing it); use double size on retina\n\t\tcontainer.width = m * size.x;\n\t\tcontainer.height = m * size.y;\n\t\tcontainer.style.width = size.x + 'px';\n\t\tcontainer.style.height = size.y + 'px';\n\n\t\tif (retina) {\n\t\t\tthis._ctx.scale(2, 2);\n\t\t}\n\n\t\t// translate so we use the same path coordinates after canvas element moves\n\t\tthis._ctx.translate(-b.min.x, -b.min.y);\n\n\t\t// Tell paths to redraw themselves\n\t\tthis.fire('update');\n\t},\n\n\t_reset: function () {\n\t\tRenderer.prototype._reset.call(this);\n\n\t\tif (this._postponeUpdatePaths) {\n\t\t\tthis._postponeUpdatePaths = false;\n\t\t\tthis._updatePaths();\n\t\t}\n\t},\n\n\t_initPath: function (layer) {\n\t\tthis._updateDashArray(layer);\n\t\tthis._layers[stamp(layer)] = layer;\n\n\t\tvar order = layer._order = {\n\t\t\tlayer: layer,\n\t\t\tprev: this._drawLast,\n\t\t\tnext: null\n\t\t};\n\t\tif (this._drawLast) { this._drawLast.next = order; }\n\t\tthis._drawLast = order;\n\t\tthis._drawFirst = this._drawFirst || this._drawLast;\n\t},\n\n\t_addPath: function (layer) {\n\t\tthis._requestRedraw(layer);\n\t},\n\n\t_removePath: function (layer) {\n\t\tvar order = layer._order;\n\t\tvar next = order.next;\n\t\tvar prev = order.prev;\n\n\t\tif (next) {\n\t\t\tnext.prev = prev;\n\t\t} else {\n\t\t\tthis._drawLast = prev;\n\t\t}\n\t\tif (prev) {\n\t\t\tprev.next = next;\n\t\t} else {\n\t\t\tthis._drawFirst = next;\n\t\t}\n\n\t\tdelete this._drawnLayers[layer._leaflet_id];\n\n\t\tdelete layer._order;\n\n\t\tdelete this._layers[stamp(layer)];\n\n\t\tthis._requestRedraw(layer);\n\t},\n\n\t_updatePath: function (layer) {\n\t\t// Redraw the union of the layer's old pixel\n\t\t// bounds and the new pixel bounds.\n\t\tthis._extendRedrawBounds(layer);\n\t\tlayer._project();\n\t\tlayer._update();\n\t\t// The redraw will extend the redraw bounds\n\t\t// with the new pixel bounds.\n\t\tthis._requestRedraw(layer);\n\t},\n\n\t_updateStyle: function (layer) {\n\t\tthis._updateDashArray(layer);\n\t\tthis._requestRedraw(layer);\n\t},\n\n\t_updateDashArray: function (layer) {\n\t\tif (typeof layer.options.dashArray === 'string') {\n\t\t\tvar parts = layer.options.dashArray.split(','),\n\t\t\t dashArray = [],\n\t\t\t i;\n\t\t\tfor (i = 0; i < parts.length; i++) {\n\t\t\t\tdashArray.push(Number(parts[i]));\n\t\t\t}\n\t\t\tlayer.options._dashArray = dashArray;\n\t\t} else {\n\t\t\tlayer.options._dashArray = layer.options.dashArray;\n\t\t}\n\t},\n\n\t_requestRedraw: function (layer) {\n\t\tif (!this._map) { return; }\n\n\t\tthis._extendRedrawBounds(layer);\n\t\tthis._redrawRequest = this._redrawRequest || requestAnimFrame(this._redraw, this);\n\t},\n\n\t_extendRedrawBounds: function (layer) {\n\t\tif (layer._pxBounds) {\n\t\t\tvar padding = (layer.options.weight || 0) + 1;\n\t\t\tthis._redrawBounds = this._redrawBounds || new Bounds();\n\t\t\tthis._redrawBounds.extend(layer._pxBounds.min.subtract([padding, padding]));\n\t\t\tthis._redrawBounds.extend(layer._pxBounds.max.add([padding, padding]));\n\t\t}\n\t},\n\n\t_redraw: function () {\n\t\tthis._redrawRequest = null;\n\n\t\tif (this._redrawBounds) {\n\t\t\tthis._redrawBounds.min._floor();\n\t\t\tthis._redrawBounds.max._ceil();\n\t\t}\n\n\t\tthis._clear(); // clear layers in redraw bounds\n\t\tthis._draw(); // draw layers\n\n\t\tthis._redrawBounds = null;\n\t},\n\n\t_clear: function () {\n\t\tvar bounds = this._redrawBounds;\n\t\tif (bounds) {\n\t\t\tvar size = bounds.getSize();\n\t\t\tthis._ctx.clearRect(bounds.min.x, bounds.min.y, size.x, size.y);\n\t\t} else {\n\t\t\tthis._ctx.clearRect(0, 0, this._container.width, this._container.height);\n\t\t}\n\t},\n\n\t_draw: function () {\n\t\tvar layer, bounds = this._redrawBounds;\n\t\tthis._ctx.save();\n\t\tif (bounds) {\n\t\t\tvar size = bounds.getSize();\n\t\t\tthis._ctx.beginPath();\n\t\t\tthis._ctx.rect(bounds.min.x, bounds.min.y, size.x, size.y);\n\t\t\tthis._ctx.clip();\n\t\t}\n\n\t\tthis._drawing = true;\n\n\t\tfor (var order = this._drawFirst; order; order = order.next) {\n\t\t\tlayer = order.layer;\n\t\t\tif (!bounds || (layer._pxBounds && layer._pxBounds.intersects(bounds))) {\n\t\t\t\tlayer._updatePath();\n\t\t\t}\n\t\t}\n\n\t\tthis._drawing = false;\n\n\t\tthis._ctx.restore(); // Restore state before clipping.\n\t},\n\n\t_updatePoly: function (layer, closed) {\n\t\tif (!this._drawing) { return; }\n\n\t\tvar i, j, len2, p,\n\t\t parts = layer._parts,\n\t\t len = parts.length,\n\t\t ctx = this._ctx;\n\n\t\tif (!len) { return; }\n\n\t\tthis._drawnLayers[layer._leaflet_id] = layer;\n\n\t\tctx.beginPath();\n\n\t\tfor (i = 0; i < len; i++) {\n\t\t\tfor (j = 0, len2 = parts[i].length; j < len2; j++) {\n\t\t\t\tp = parts[i][j];\n\t\t\t\tctx[j ? 'lineTo' : 'moveTo'](p.x, p.y);\n\t\t\t}\n\t\t\tif (closed) {\n\t\t\t\tctx.closePath();\n\t\t\t}\n\t\t}\n\n\t\tthis._fillStroke(ctx, layer);\n\n\t\t// TODO optimization: 1 fill/stroke for all features with equal style instead of 1 for each feature\n\t},\n\n\t_updateCircle: function (layer) {\n\n\t\tif (!this._drawing || layer._empty()) { return; }\n\n\t\tvar p = layer._point,\n\t\t ctx = this._ctx,\n\t\t r = Math.max(Math.round(layer._radius), 1),\n\t\t s = (Math.max(Math.round(layer._radiusY), 1) || r) / r;\n\n\t\tthis._drawnLayers[layer._leaflet_id] = layer;\n\n\t\tif (s !== 1) {\n\t\t\tctx.save();\n\t\t\tctx.scale(1, s);\n\t\t}\n\n\t\tctx.beginPath();\n\t\tctx.arc(p.x, p.y / s, r, 0, Math.PI * 2, false);\n\n\t\tif (s !== 1) {\n\t\t\tctx.restore();\n\t\t}\n\n\t\tthis._fillStroke(ctx, layer);\n\t},\n\n\t_fillStroke: function (ctx, layer) {\n\t\tvar options = layer.options;\n\n\t\tif (options.fill) {\n\t\t\tctx.globalAlpha = options.fillOpacity;\n\t\t\tctx.fillStyle = options.fillColor || options.color;\n\t\t\tctx.fill(options.fillRule || 'evenodd');\n\t\t}\n\n\t\tif (options.stroke && options.weight !== 0) {\n\t\t\tif (ctx.setLineDash) {\n\t\t\t\tctx.setLineDash(layer.options && layer.options._dashArray || []);\n\t\t\t}\n\t\t\tctx.globalAlpha = options.opacity;\n\t\t\tctx.lineWidth = options.weight;\n\t\t\tctx.strokeStyle = options.color;\n\t\t\tctx.lineCap = options.lineCap;\n\t\t\tctx.lineJoin = options.lineJoin;\n\t\t\tctx.stroke();\n\t\t}\n\t},\n\n\t// Canvas obviously doesn't have mouse events for individual drawn objects,\n\t// so we emulate that by calculating what's under the mouse on mousemove/click manually\n\n\t_onClick: function (e) {\n\t\tvar point = this._map.mouseEventToLayerPoint(e), layer, clickedLayer;\n\n\t\tfor (var order = this._drawFirst; order; order = order.next) {\n\t\t\tlayer = order.layer;\n\t\t\tif (layer.options.interactive && layer._containsPoint(point) && !this._map._draggableMoved(layer)) {\n\t\t\t\tclickedLayer = layer;\n\t\t\t}\n\t\t}\n\t\tif (clickedLayer) {\n\t\t\tfakeStop(e);\n\t\t\tthis._fireEvent([clickedLayer], e);\n\t\t}\n\t},\n\n\t_onMouseMove: function (e) {\n\t\tif (!this._map || this._map.dragging.moving() || this._map._animatingZoom) { return; }\n\n\t\tvar point = this._map.mouseEventToLayerPoint(e);\n\t\tthis._handleMouseHover(e, point);\n\t},\n\n\n\t_handleMouseOut: function (e) {\n\t\tvar layer = this._hoveredLayer;\n\t\tif (layer) {\n\t\t\t// if we're leaving the layer, fire mouseout\n\t\t\tremoveClass(this._container, 'leaflet-interactive');\n\t\t\tthis._fireEvent([layer], e, 'mouseout');\n\t\t\tthis._hoveredLayer = null;\n\t\t}\n\t},\n\n\t_handleMouseHover: function (e, point) {\n\t\tvar layer, candidateHoveredLayer;\n\n\t\tfor (var order = this._drawFirst; order; order = order.next) {\n\t\t\tlayer = order.layer;\n\t\t\tif (layer.options.interactive && layer._containsPoint(point)) {\n\t\t\t\tcandidateHoveredLayer = layer;\n\t\t\t}\n\t\t}\n\n\t\tif (candidateHoveredLayer !== this._hoveredLayer) {\n\t\t\tthis._handleMouseOut(e);\n\n\t\t\tif (candidateHoveredLayer) {\n\t\t\t\taddClass(this._container, 'leaflet-interactive'); // change cursor\n\t\t\t\tthis._fireEvent([candidateHoveredLayer], e, 'mouseover');\n\t\t\t\tthis._hoveredLayer = candidateHoveredLayer;\n\t\t\t}\n\t\t}\n\n\t\tif (this._hoveredLayer) {\n\t\t\tthis._fireEvent([this._hoveredLayer], e);\n\t\t}\n\t},\n\n\t_fireEvent: function (layers, e, type) {\n\t\tthis._map._fireDOMEvent(e, type || e.type, layers);\n\t},\n\n\t_bringToFront: function (layer) {\n\t\tvar order = layer._order;\n\t\tvar next = order.next;\n\t\tvar prev = order.prev;\n\n\t\tif (next) {\n\t\t\tnext.prev = prev;\n\t\t} else {\n\t\t\t// Already last\n\t\t\treturn;\n\t\t}\n\t\tif (prev) {\n\t\t\tprev.next = next;\n\t\t} else if (next) {\n\t\t\t// Update first entry unless this is the\n\t\t\t// single entry\n\t\t\tthis._drawFirst = next;\n\t\t}\n\n\t\torder.prev = this._drawLast;\n\t\tthis._drawLast.next = order;\n\n\t\torder.next = null;\n\t\tthis._drawLast = order;\n\n\t\tthis._requestRedraw(layer);\n\t},\n\n\t_bringToBack: function (layer) {\n\t\tvar order = layer._order;\n\t\tvar next = order.next;\n\t\tvar prev = order.prev;\n\n\t\tif (prev) {\n\t\t\tprev.next = next;\n\t\t} else {\n\t\t\t// Already first\n\t\t\treturn;\n\t\t}\n\t\tif (next) {\n\t\t\tnext.prev = prev;\n\t\t} else if (prev) {\n\t\t\t// Update last entry unless this is the\n\t\t\t// single entry\n\t\t\tthis._drawLast = prev;\n\t\t}\n\n\t\torder.prev = null;\n\n\t\torder.next = this._drawFirst;\n\t\tthis._drawFirst.prev = order;\n\t\tthis._drawFirst = order;\n\n\t\tthis._requestRedraw(layer);\n\t}\n});\n\n// @factory L.canvas(options?: Renderer options)\n// Creates a Canvas renderer with the given options.\nfunction canvas$1(options) {\n\treturn canvas ? new Canvas(options) : null;\n}\n\n/*\n * Thanks to Dmitry Baranovsky and his Raphael library for inspiration!\n */\n\n\nvar vmlCreate = (function () {\n\ttry {\n\t\tdocument.namespaces.add('lvml', 'urn:schemas-microsoft-com:vml');\n\t\treturn function (name) {\n\t\t\treturn document.createElement('<lvml:' + name + ' class=\"lvml\">');\n\t\t};\n\t} catch (e) {\n\t\treturn function (name) {\n\t\t\treturn document.createElement('<' + name + ' xmlns=\"urn:schemas-microsoft.com:vml\" class=\"lvml\">');\n\t\t};\n\t}\n})();\n\n\n/*\n * @class SVG\n *\n * Although SVG is not available on IE7 and IE8, these browsers support [VML](https://en.wikipedia.org/wiki/Vector_Markup_Language), and the SVG renderer will fall back to VML in this case.\n *\n * VML was deprecated in 2012, which means VML functionality exists only for backwards compatibility\n * with old versions of Internet Explorer.\n */\n\n// mixin to redefine some SVG methods to handle VML syntax which is similar but with some differences\nvar vmlMixin = {\n\n\t_initContainer: function () {\n\t\tthis._container = create$1('div', 'leaflet-vml-container');\n\t},\n\n\t_update: function () {\n\t\tif (this._map._animatingZoom) { return; }\n\t\tRenderer.prototype._update.call(this);\n\t\tthis.fire('update');\n\t},\n\n\t_initPath: function (layer) {\n\t\tvar container = layer._container = vmlCreate('shape');\n\n\t\taddClass(container, 'leaflet-vml-shape ' + (this.options.className || ''));\n\n\t\tcontainer.coordsize = '1 1';\n\n\t\tlayer._path = vmlCreate('path');\n\t\tcontainer.appendChild(layer._path);\n\n\t\tthis._updateStyle(layer);\n\t\tthis._layers[stamp(layer)] = layer;\n\t},\n\n\t_addPath: function (layer) {\n\t\tvar container = layer._container;\n\t\tthis._container.appendChild(container);\n\n\t\tif (layer.options.interactive) {\n\t\t\tlayer.addInteractiveTarget(container);\n\t\t}\n\t},\n\n\t_removePath: function (layer) {\n\t\tvar container = layer._container;\n\t\tremove(container);\n\t\tlayer.removeInteractiveTarget(container);\n\t\tdelete this._layers[stamp(layer)];\n\t},\n\n\t_updateStyle: function (layer) {\n\t\tvar stroke = layer._stroke,\n\t\t fill = layer._fill,\n\t\t options = layer.options,\n\t\t container = layer._container;\n\n\t\tcontainer.stroked = !!options.stroke;\n\t\tcontainer.filled = !!options.fill;\n\n\t\tif (options.stroke) {\n\t\t\tif (!stroke) {\n\t\t\t\tstroke = layer._stroke = vmlCreate('stroke');\n\t\t\t}\n\t\t\tcontainer.appendChild(stroke);\n\t\t\tstroke.weight = options.weight + 'px';\n\t\t\tstroke.color = options.color;\n\t\t\tstroke.opacity = options.opacity;\n\n\t\t\tif (options.dashArray) {\n\t\t\t\tstroke.dashStyle = isArray(options.dashArray) ?\n\t\t\t\t options.dashArray.join(' ') :\n\t\t\t\t options.dashArray.replace(/( *, *)/g, ' ');\n\t\t\t} else {\n\t\t\t\tstroke.dashStyle = '';\n\t\t\t}\n\t\t\tstroke.endcap = options.lineCap.replace('butt', 'flat');\n\t\t\tstroke.joinstyle = options.lineJoin;\n\n\t\t} else if (stroke) {\n\t\t\tcontainer.removeChild(stroke);\n\t\t\tlayer._stroke = null;\n\t\t}\n\n\t\tif (options.fill) {\n\t\t\tif (!fill) {\n\t\t\t\tfill = layer._fill = vmlCreate('fill');\n\t\t\t}\n\t\t\tcontainer.appendChild(fill);\n\t\t\tfill.color = options.fillColor || options.color;\n\t\t\tfill.opacity = options.fillOpacity;\n\n\t\t} else if (fill) {\n\t\t\tcontainer.removeChild(fill);\n\t\t\tlayer._fill = null;\n\t\t}\n\t},\n\n\t_updateCircle: function (layer) {\n\t\tvar p = layer._point.round(),\n\t\t r = Math.round(layer._radius),\n\t\t r2 = Math.round(layer._radiusY || r);\n\n\t\tthis._setPath(layer, layer._empty() ? 'M0 0' :\n\t\t\t'AL ' + p.x + ',' + p.y + ' ' + r + ',' + r2 + ' 0,' + (65535 * 360));\n\t},\n\n\t_setPath: function (layer, path) {\n\t\tlayer._path.v = path;\n\t},\n\n\t_bringToFront: function (layer) {\n\t\ttoFront(layer._container);\n\t},\n\n\t_bringToBack: function (layer) {\n\t\ttoBack(layer._container);\n\t}\n};\n\nvar create$2 = vml ? vmlCreate : svgCreate;\n\n/*\n * @class SVG\n * @inherits Renderer\n * @aka L.SVG\n *\n * Allows vector layers to be displayed with [SVG](https://developer.mozilla.org/docs/Web/SVG).\n * Inherits `Renderer`.\n *\n * Due to [technical limitations](http://caniuse.com/#search=svg), SVG is not\n * available in all web browsers, notably Android 2.x and 3.x.\n *\n * Although SVG is not available on IE7 and IE8, these browsers support\n * [VML](https://en.wikipedia.org/wiki/Vector_Markup_Language)\n * (a now deprecated technology), and the SVG renderer will fall back to VML in\n * this case.\n *\n * @example\n *\n * Use SVG by default for all paths in the map:\n *\n * ```js\n * var map = L.map('map', {\n * \trenderer: L.svg()\n * });\n * ```\n *\n * Use a SVG renderer with extra padding for specific vector geometries:\n *\n * ```js\n * var map = L.map('map');\n * var myRenderer = L.svg({ padding: 0.5 });\n * var line = L.polyline( coordinates, { renderer: myRenderer } );\n * var circle = L.circle( center, { renderer: myRenderer } );\n * ```\n */\n\nvar SVG = Renderer.extend({\n\n\tgetEvents: function () {\n\t\tvar events = Renderer.prototype.getEvents.call(this);\n\t\tevents.zoomstart = this._onZoomStart;\n\t\treturn events;\n\t},\n\n\t_initContainer: function () {\n\t\tthis._container = create$2('svg');\n\n\t\t// makes it possible to click through svg root; we'll reset it back in individual paths\n\t\tthis._container.setAttribute('pointer-events', 'none');\n\n\t\tthis._rootGroup = create$2('g');\n\t\tthis._container.appendChild(this._rootGroup);\n\t},\n\n\t_destroyContainer: function () {\n\t\tremove(this._container);\n\t\toff(this._container);\n\t\tdelete this._container;\n\t\tdelete this._rootGroup;\n\t\tdelete this._svgSize;\n\t},\n\n\t_onZoomStart: function () {\n\t\t// Drag-then-pinch interactions might mess up the center and zoom.\n\t\t// In this case, the easiest way to prevent this is re-do the renderer\n\t\t// bounds and padding when the zooming starts.\n\t\tthis._update();\n\t},\n\n\t_update: function () {\n\t\tif (this._map._animatingZoom && this._bounds) { return; }\n\n\t\tRenderer.prototype._update.call(this);\n\n\t\tvar b = this._bounds,\n\t\t size = b.getSize(),\n\t\t container = this._container;\n\n\t\t// set size of svg-container if changed\n\t\tif (!this._svgSize || !this._svgSize.equals(size)) {\n\t\t\tthis._svgSize = size;\n\t\t\tcontainer.setAttribute('width', size.x);\n\t\t\tcontainer.setAttribute('height', size.y);\n\t\t}\n\n\t\t// movement: update container viewBox so that we don't have to change coordinates of individual layers\n\t\tsetPosition(container, b.min);\n\t\tcontainer.setAttribute('viewBox', [b.min.x, b.min.y, size.x, size.y].join(' '));\n\n\t\tthis.fire('update');\n\t},\n\n\t// methods below are called by vector layers implementations\n\n\t_initPath: function (layer) {\n\t\tvar path = layer._path = create$2('path');\n\n\t\t// @namespace Path\n\t\t// @option className: String = null\n\t\t// Custom class name set on an element. Only for SVG renderer.\n\t\tif (layer.options.className) {\n\t\t\taddClass(path, layer.options.className);\n\t\t}\n\n\t\tif (layer.options.interactive) {\n\t\t\taddClass(path, 'leaflet-interactive');\n\t\t}\n\n\t\tthis._updateStyle(layer);\n\t\tthis._layers[stamp(layer)] = layer;\n\t},\n\n\t_addPath: function (layer) {\n\t\tif (!this._rootGroup) { this._initContainer(); }\n\t\tthis._rootGroup.appendChild(layer._path);\n\t\tlayer.addInteractiveTarget(layer._path);\n\t},\n\n\t_removePath: function (layer) {\n\t\tremove(layer._path);\n\t\tlayer.removeInteractiveTarget(layer._path);\n\t\tdelete this._layers[stamp(layer)];\n\t},\n\n\t_updatePath: function (layer) {\n\t\tlayer._project();\n\t\tlayer._update();\n\t},\n\n\t_updateStyle: function (layer) {\n\t\tvar path = layer._path,\n\t\t options = layer.options;\n\n\t\tif (!path) { return; }\n\n\t\tif (options.stroke) {\n\t\t\tpath.setAttribute('stroke', options.color);\n\t\t\tpath.setAttribute('stroke-opacity', options.opacity);\n\t\t\tpath.setAttribute('stroke-width', options.weight);\n\t\t\tpath.setAttribute('stroke-linecap', options.lineCap);\n\t\t\tpath.setAttribute('stroke-linejoin', options.lineJoin);\n\n\t\t\tif (options.dashArray) {\n\t\t\t\tpath.setAttribute('stroke-dasharray', options.dashArray);\n\t\t\t} else {\n\t\t\t\tpath.removeAttribute('stroke-dasharray');\n\t\t\t}\n\n\t\t\tif (options.dashOffset) {\n\t\t\t\tpath.setAttribute('stroke-dashoffset', options.dashOffset);\n\t\t\t} else {\n\t\t\t\tpath.removeAttribute('stroke-dashoffset');\n\t\t\t}\n\t\t} else {\n\t\t\tpath.setAttribute('stroke', 'none');\n\t\t}\n\n\t\tif (options.fill) {\n\t\t\tpath.setAttribute('fill', options.fillColor || options.color);\n\t\t\tpath.setAttribute('fill-opacity', options.fillOpacity);\n\t\t\tpath.setAttribute('fill-rule', options.fillRule || 'evenodd');\n\t\t} else {\n\t\t\tpath.setAttribute('fill', 'none');\n\t\t}\n\t},\n\n\t_updatePoly: function (layer, closed) {\n\t\tthis._setPath(layer, pointsToPath(layer._parts, closed));\n\t},\n\n\t_updateCircle: function (layer) {\n\t\tvar p = layer._point,\n\t\t r = Math.max(Math.round(layer._radius), 1),\n\t\t r2 = Math.max(Math.round(layer._radiusY), 1) || r,\n\t\t arc = 'a' + r + ',' + r2 + ' 0 1,0 ';\n\n\t\t// drawing a circle with two half-arcs\n\t\tvar d = layer._empty() ? 'M0 0' :\n\t\t\t'M' + (p.x - r) + ',' + p.y +\n\t\t\tarc + (r * 2) + ',0 ' +\n\t\t\tarc + (-r * 2) + ',0 ';\n\n\t\tthis._setPath(layer, d);\n\t},\n\n\t_setPath: function (layer, path) {\n\t\tlayer._path.setAttribute('d', path);\n\t},\n\n\t// SVG does not have the concept of zIndex so we resort to changing the DOM order of elements\n\t_bringToFront: function (layer) {\n\t\ttoFront(layer._path);\n\t},\n\n\t_bringToBack: function (layer) {\n\t\ttoBack(layer._path);\n\t}\n});\n\nif (vml) {\n\tSVG.include(vmlMixin);\n}\n\n// @namespace SVG\n// @factory L.svg(options?: Renderer options)\n// Creates a SVG renderer with the given options.\nfunction svg$1(options) {\n\treturn svg || vml ? new SVG(options) : null;\n}\n\nMap.include({\n\t// @namespace Map; @method getRenderer(layer: Path): Renderer\n\t// Returns the instance of `Renderer` that should be used to render the given\n\t// `Path`. It will ensure that the `renderer` options of the map and paths\n\t// are respected, and that the renderers do exist on the map.\n\tgetRenderer: function (layer) {\n\t\t// @namespace Path; @option renderer: Renderer\n\t\t// Use this specific instance of `Renderer` for this path. Takes\n\t\t// precedence over the map's [default renderer](#map-renderer).\n\t\tvar renderer = layer.options.renderer || this._getPaneRenderer(layer.options.pane) || this.options.renderer || this._renderer;\n\n\t\tif (!renderer) {\n\t\t\trenderer = this._renderer = this._createRenderer();\n\t\t}\n\n\t\tif (!this.hasLayer(renderer)) {\n\t\t\tthis.addLayer(renderer);\n\t\t}\n\t\treturn renderer;\n\t},\n\n\t_getPaneRenderer: function (name) {\n\t\tif (name === 'overlayPane' || name === undefined) {\n\t\t\treturn false;\n\t\t}\n\n\t\tvar renderer = this._paneRenderers[name];\n\t\tif (renderer === undefined) {\n\t\t\trenderer = this._createRenderer({pane: name});\n\t\t\tthis._paneRenderers[name] = renderer;\n\t\t}\n\t\treturn renderer;\n\t},\n\n\t_createRenderer: function (options) {\n\t\t// @namespace Map; @option preferCanvas: Boolean = false\n\t\t// Whether `Path`s should be rendered on a `Canvas` renderer.\n\t\t// By default, all `Path`s are rendered in a `SVG` renderer.\n\t\treturn (this.options.preferCanvas && canvas$1(options)) || svg$1(options);\n\t}\n});\n\n/*\n * L.Rectangle extends Polygon and creates a rectangle when passed a LatLngBounds object.\n */\n\n/*\n * @class Rectangle\n * @aka L.Rectangle\n * @inherits Polygon\n *\n * A class for drawing rectangle overlays on a map. Extends `Polygon`.\n *\n * @example\n *\n * ```js\n * // define rectangle geographical bounds\n * var bounds = [[54.559322, -5.767822], [56.1210604, -3.021240]];\n *\n * // create an orange rectangle\n * L.rectangle(bounds, {color: \"#ff7800\", weight: 1}).addTo(map);\n *\n * // zoom the map to the rectangle bounds\n * map.fitBounds(bounds);\n * ```\n *\n */\n\n\nvar Rectangle = Polygon.extend({\n\tinitialize: function (latLngBounds, options) {\n\t\tPolygon.prototype.initialize.call(this, this._boundsToLatLngs(latLngBounds), options);\n\t},\n\n\t// @method setBounds(latLngBounds: LatLngBounds): this\n\t// Redraws the rectangle with the passed bounds.\n\tsetBounds: function (latLngBounds) {\n\t\treturn this.setLatLngs(this._boundsToLatLngs(latLngBounds));\n\t},\n\n\t_boundsToLatLngs: function (latLngBounds) {\n\t\tlatLngBounds = toLatLngBounds(latLngBounds);\n\t\treturn [\n\t\t\tlatLngBounds.getSouthWest(),\n\t\t\tlatLngBounds.getNorthWest(),\n\t\t\tlatLngBounds.getNorthEast(),\n\t\t\tlatLngBounds.getSouthEast()\n\t\t];\n\t}\n});\n\n\n// @factory L.rectangle(latLngBounds: LatLngBounds, options?: Polyline options)\nfunction rectangle(latLngBounds, options) {\n\treturn new Rectangle(latLngBounds, options);\n}\n\nSVG.create = create$2;\nSVG.pointsToPath = pointsToPath;\n\nGeoJSON.geometryToLayer = geometryToLayer;\nGeoJSON.coordsToLatLng = coordsToLatLng;\nGeoJSON.coordsToLatLngs = coordsToLatLngs;\nGeoJSON.latLngToCoords = latLngToCoords;\nGeoJSON.latLngsToCoords = latLngsToCoords;\nGeoJSON.getFeature = getFeature;\nGeoJSON.asFeature = asFeature;\n\n/*\n * L.Handler.BoxZoom is used to add shift-drag zoom interaction to the map\n * (zoom to a selected bounding box), enabled by default.\n */\n\n// @namespace Map\n// @section Interaction Options\nMap.mergeOptions({\n\t// @option boxZoom: Boolean = true\n\t// Whether the map can be zoomed to a rectangular area specified by\n\t// dragging the mouse while pressing the shift key.\n\tboxZoom: true\n});\n\nvar BoxZoom = Handler.extend({\n\tinitialize: function (map) {\n\t\tthis._map = map;\n\t\tthis._container = map._container;\n\t\tthis._pane = map._panes.overlayPane;\n\t\tthis._resetStateTimeout = 0;\n\t\tmap.on('unload', this._destroy, this);\n\t},\n\n\taddHooks: function () {\n\t\ton(this._container, 'mousedown', this._onMouseDown, this);\n\t},\n\n\tremoveHooks: function () {\n\t\toff(this._container, 'mousedown', this._onMouseDown, this);\n\t},\n\n\tmoved: function () {\n\t\treturn this._moved;\n\t},\n\n\t_destroy: function () {\n\t\tremove(this._pane);\n\t\tdelete this._pane;\n\t},\n\n\t_resetState: function () {\n\t\tthis._resetStateTimeout = 0;\n\t\tthis._moved = false;\n\t},\n\n\t_clearDeferredResetState: function () {\n\t\tif (this._resetStateTimeout !== 0) {\n\t\t\tclearTimeout(this._resetStateTimeout);\n\t\t\tthis._resetStateTimeout = 0;\n\t\t}\n\t},\n\n\t_onMouseDown: function (e) {\n\t\tif (!e.shiftKey || ((e.which !== 1) && (e.button !== 1))) { return false; }\n\n\t\t// Clear the deferred resetState if it hasn't executed yet, otherwise it\n\t\t// will interrupt the interaction and orphan a box element in the container.\n\t\tthis._clearDeferredResetState();\n\t\tthis._resetState();\n\n\t\tdisableTextSelection();\n\t\tdisableImageDrag();\n\n\t\tthis._startPoint = this._map.mouseEventToContainerPoint(e);\n\n\t\ton(document, {\n\t\t\tcontextmenu: stop,\n\t\t\tmousemove: this._onMouseMove,\n\t\t\tmouseup: this._onMouseUp,\n\t\t\tkeydown: this._onKeyDown\n\t\t}, this);\n\t},\n\n\t_onMouseMove: function (e) {\n\t\tif (!this._moved) {\n\t\t\tthis._moved = true;\n\n\t\t\tthis._box = create$1('div', 'leaflet-zoom-box', this._container);\n\t\t\taddClass(this._container, 'leaflet-crosshair');\n\n\t\t\tthis._map.fire('boxzoomstart');\n\t\t}\n\n\t\tthis._point = this._map.mouseEventToContainerPoint(e);\n\n\t\tvar bounds = new Bounds(this._point, this._startPoint),\n\t\t size = bounds.getSize();\n\n\t\tsetPosition(this._box, bounds.min);\n\n\t\tthis._box.style.width = size.x + 'px';\n\t\tthis._box.style.height = size.y + 'px';\n\t},\n\n\t_finish: function () {\n\t\tif (this._moved) {\n\t\t\tremove(this._box);\n\t\t\tremoveClass(this._container, 'leaflet-crosshair');\n\t\t}\n\n\t\tenableTextSelection();\n\t\tenableImageDrag();\n\n\t\toff(document, {\n\t\t\tcontextmenu: stop,\n\t\t\tmousemove: this._onMouseMove,\n\t\t\tmouseup: this._onMouseUp,\n\t\t\tkeydown: this._onKeyDown\n\t\t}, this);\n\t},\n\n\t_onMouseUp: function (e) {\n\t\tif ((e.which !== 1) && (e.button !== 1)) { return; }\n\n\t\tthis._finish();\n\n\t\tif (!this._moved) { return; }\n\t\t// Postpone to next JS tick so internal click event handling\n\t\t// still see it as \"moved\".\n\t\tthis._clearDeferredResetState();\n\t\tthis._resetStateTimeout = setTimeout(bind(this._resetState, this), 0);\n\n\t\tvar bounds = new LatLngBounds(\n\t\t this._map.containerPointToLatLng(this._startPoint),\n\t\t this._map.containerPointToLatLng(this._point));\n\n\t\tthis._map\n\t\t\t.fitBounds(bounds)\n\t\t\t.fire('boxzoomend', {boxZoomBounds: bounds});\n\t},\n\n\t_onKeyDown: function (e) {\n\t\tif (e.keyCode === 27) {\n\t\t\tthis._finish();\n\t\t}\n\t}\n});\n\n// @section Handlers\n// @property boxZoom: Handler\n// Box (shift-drag with mouse) zoom handler.\nMap.addInitHook('addHandler', 'boxZoom', BoxZoom);\n\n/*\n * L.Handler.DoubleClickZoom is used to handle double-click zoom on the map, enabled by default.\n */\n\n// @namespace Map\n// @section Interaction Options\n\nMap.mergeOptions({\n\t// @option doubleClickZoom: Boolean|String = true\n\t// Whether the map can be zoomed in by double clicking on it and\n\t// zoomed out by double clicking while holding shift. If passed\n\t// `'center'`, double-click zoom will zoom to the center of the\n\t// view regardless of where the mouse was.\n\tdoubleClickZoom: true\n});\n\nvar DoubleClickZoom = Handler.extend({\n\taddHooks: function () {\n\t\tthis._map.on('dblclick', this._onDoubleClick, this);\n\t},\n\n\tremoveHooks: function () {\n\t\tthis._map.off('dblclick', this._onDoubleClick, this);\n\t},\n\n\t_onDoubleClick: function (e) {\n\t\tvar map = this._map,\n\t\t oldZoom = map.getZoom(),\n\t\t delta = map.options.zoomDelta,\n\t\t zoom = e.originalEvent.shiftKey ? oldZoom - delta : oldZoom + delta;\n\n\t\tif (map.options.doubleClickZoom === 'center') {\n\t\t\tmap.setZoom(zoom);\n\t\t} else {\n\t\t\tmap.setZoomAround(e.containerPoint, zoom);\n\t\t}\n\t}\n});\n\n// @section Handlers\n//\n// Map properties include interaction handlers that allow you to control\n// interaction behavior in runtime, enabling or disabling certain features such\n// as dragging or touch zoom (see `Handler` methods). For example:\n//\n// ```js\n// map.doubleClickZoom.disable();\n// ```\n//\n// @property doubleClickZoom: Handler\n// Double click zoom handler.\nMap.addInitHook('addHandler', 'doubleClickZoom', DoubleClickZoom);\n\n/*\n * L.Handler.MapDrag is used to make the map draggable (with panning inertia), enabled by default.\n */\n\n// @namespace Map\n// @section Interaction Options\nMap.mergeOptions({\n\t// @option dragging: Boolean = true\n\t// Whether the map be draggable with mouse/touch or not.\n\tdragging: true,\n\n\t// @section Panning Inertia Options\n\t// @option inertia: Boolean = *\n\t// If enabled, panning of the map will have an inertia effect where\n\t// the map builds momentum while dragging and continues moving in\n\t// the same direction for some time. Feels especially nice on touch\n\t// devices. Enabled by default unless running on old Android devices.\n\tinertia: !android23,\n\n\t// @option inertiaDeceleration: Number = 3000\n\t// The rate with which the inertial movement slows down, in pixels/second².\n\tinertiaDeceleration: 3400, // px/s^2\n\n\t// @option inertiaMaxSpeed: Number = Infinity\n\t// Max speed of the inertial movement, in pixels/second.\n\tinertiaMaxSpeed: Infinity, // px/s\n\n\t// @option easeLinearity: Number = 0.2\n\teaseLinearity: 0.2,\n\n\t// TODO refactor, move to CRS\n\t// @option worldCopyJump: Boolean = false\n\t// With this option enabled, the map tracks when you pan to another \"copy\"\n\t// of the world and seamlessly jumps to the original one so that all overlays\n\t// like markers and vector layers are still visible.\n\tworldCopyJump: false,\n\n\t// @option maxBoundsViscosity: Number = 0.0\n\t// If `maxBounds` is set, this option will control how solid the bounds\n\t// are when dragging the map around. The default value of `0.0` allows the\n\t// user to drag outside the bounds at normal speed, higher values will\n\t// slow down map dragging outside bounds, and `1.0` makes the bounds fully\n\t// solid, preventing the user from dragging outside the bounds.\n\tmaxBoundsViscosity: 0.0\n});\n\nvar Drag = Handler.extend({\n\taddHooks: function () {\n\t\tif (!this._draggable) {\n\t\t\tvar map = this._map;\n\n\t\t\tthis._draggable = new Draggable(map._mapPane, map._container);\n\n\t\t\tthis._draggable.on({\n\t\t\t\tdragstart: this._onDragStart,\n\t\t\t\tdrag: this._onDrag,\n\t\t\t\tdragend: this._onDragEnd\n\t\t\t}, this);\n\n\t\t\tthis._draggable.on('predrag', this._onPreDragLimit, this);\n\t\t\tif (map.options.worldCopyJump) {\n\t\t\t\tthis._draggable.on('predrag', this._onPreDragWrap, this);\n\t\t\t\tmap.on('zoomend', this._onZoomEnd, this);\n\n\t\t\t\tmap.whenReady(this._onZoomEnd, this);\n\t\t\t}\n\t\t}\n\t\taddClass(this._map._container, 'leaflet-grab leaflet-touch-drag');\n\t\tthis._draggable.enable();\n\t\tthis._positions = [];\n\t\tthis._times = [];\n\t},\n\n\tremoveHooks: function () {\n\t\tremoveClass(this._map._container, 'leaflet-grab');\n\t\tremoveClass(this._map._container, 'leaflet-touch-drag');\n\t\tthis._draggable.disable();\n\t},\n\n\tmoved: function () {\n\t\treturn this._draggable && this._draggable._moved;\n\t},\n\n\tmoving: function () {\n\t\treturn this._draggable && this._draggable._moving;\n\t},\n\n\t_onDragStart: function () {\n\t\tvar map = this._map;\n\n\t\tmap._stop();\n\t\tif (this._map.options.maxBounds && this._map.options.maxBoundsViscosity) {\n\t\t\tvar bounds = toLatLngBounds(this._map.options.maxBounds);\n\n\t\t\tthis._offsetLimit = toBounds(\n\t\t\t\tthis._map.latLngToContainerPoint(bounds.getNorthWest()).multiplyBy(-1),\n\t\t\t\tthis._map.latLngToContainerPoint(bounds.getSouthEast()).multiplyBy(-1)\n\t\t\t\t\t.add(this._map.getSize()));\n\n\t\t\tthis._viscosity = Math.min(1.0, Math.max(0.0, this._map.options.maxBoundsViscosity));\n\t\t} else {\n\t\t\tthis._offsetLimit = null;\n\t\t}\n\n\t\tmap\n\t\t .fire('movestart')\n\t\t .fire('dragstart');\n\n\t\tif (map.options.inertia) {\n\t\t\tthis._positions = [];\n\t\t\tthis._times = [];\n\t\t}\n\t},\n\n\t_onDrag: function (e) {\n\t\tif (this._map.options.inertia) {\n\t\t\tvar time = this._lastTime = +new Date(),\n\t\t\t pos = this._lastPos = this._draggable._absPos || this._draggable._newPos;\n\n\t\t\tthis._positions.push(pos);\n\t\t\tthis._times.push(time);\n\n\t\t\tthis._prunePositions(time);\n\t\t}\n\n\t\tthis._map\n\t\t .fire('move', e)\n\t\t .fire('drag', e);\n\t},\n\n\t_prunePositions: function (time) {\n\t\twhile (this._positions.length > 1 && time - this._times[0] > 50) {\n\t\t\tthis._positions.shift();\n\t\t\tthis._times.shift();\n\t\t}\n\t},\n\n\t_onZoomEnd: function () {\n\t\tvar pxCenter = this._map.getSize().divideBy(2),\n\t\t pxWorldCenter = this._map.latLngToLayerPoint([0, 0]);\n\n\t\tthis._initialWorldOffset = pxWorldCenter.subtract(pxCenter).x;\n\t\tthis._worldWidth = this._map.getPixelWorldBounds().getSize().x;\n\t},\n\n\t_viscousLimit: function (value, threshold) {\n\t\treturn value - (value - threshold) * this._viscosity;\n\t},\n\n\t_onPreDragLimit: function () {\n\t\tif (!this._viscosity || !this._offsetLimit) { return; }\n\n\t\tvar offset = this._draggable._newPos.subtract(this._draggable._startPos);\n\n\t\tvar limit = this._offsetLimit;\n\t\tif (offset.x < limit.min.x) { offset.x = this._viscousLimit(offset.x, limit.min.x); }\n\t\tif (offset.y < limit.min.y) { offset.y = this._viscousLimit(offset.y, limit.min.y); }\n\t\tif (offset.x > limit.max.x) { offset.x = this._viscousLimit(offset.x, limit.max.x); }\n\t\tif (offset.y > limit.max.y) { offset.y = this._viscousLimit(offset.y, limit.max.y); }\n\n\t\tthis._draggable._newPos = this._draggable._startPos.add(offset);\n\t},\n\n\t_onPreDragWrap: function () {\n\t\t// TODO refactor to be able to adjust map pane position after zoom\n\t\tvar worldWidth = this._worldWidth,\n\t\t halfWidth = Math.round(worldWidth / 2),\n\t\t dx = this._initialWorldOffset,\n\t\t x = this._draggable._newPos.x,\n\t\t newX1 = (x - halfWidth + dx) % worldWidth + halfWidth - dx,\n\t\t newX2 = (x + halfWidth + dx) % worldWidth - halfWidth - dx,\n\t\t newX = Math.abs(newX1 + dx) < Math.abs(newX2 + dx) ? newX1 : newX2;\n\n\t\tthis._draggable._absPos = this._draggable._newPos.clone();\n\t\tthis._draggable._newPos.x = newX;\n\t},\n\n\t_onDragEnd: function (e) {\n\t\tvar map = this._map,\n\t\t options = map.options,\n\n\t\t noInertia = !options.inertia || this._times.length < 2;\n\n\t\tmap.fire('dragend', e);\n\n\t\tif (noInertia) {\n\t\t\tmap.fire('moveend');\n\n\t\t} else {\n\t\t\tthis._prunePositions(+new Date());\n\n\t\t\tvar direction = this._lastPos.subtract(this._positions[0]),\n\t\t\t duration = (this._lastTime - this._times[0]) / 1000,\n\t\t\t ease = options.easeLinearity,\n\n\t\t\t speedVector = direction.multiplyBy(ease / duration),\n\t\t\t speed = speedVector.distanceTo([0, 0]),\n\n\t\t\t limitedSpeed = Math.min(options.inertiaMaxSpeed, speed),\n\t\t\t limitedSpeedVector = speedVector.multiplyBy(limitedSpeed / speed),\n\n\t\t\t decelerationDuration = limitedSpeed / (options.inertiaDeceleration * ease),\n\t\t\t offset = limitedSpeedVector.multiplyBy(-decelerationDuration / 2).round();\n\n\t\t\tif (!offset.x && !offset.y) {\n\t\t\t\tmap.fire('moveend');\n\n\t\t\t} else {\n\t\t\t\toffset = map._limitOffset(offset, map.options.maxBounds);\n\n\t\t\t\trequestAnimFrame(function () {\n\t\t\t\t\tmap.panBy(offset, {\n\t\t\t\t\t\tduration: decelerationDuration,\n\t\t\t\t\t\teaseLinearity: ease,\n\t\t\t\t\t\tnoMoveStart: true,\n\t\t\t\t\t\tanimate: true\n\t\t\t\t\t});\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t}\n});\n\n// @section Handlers\n// @property dragging: Handler\n// Map dragging handler (by both mouse and touch).\nMap.addInitHook('addHandler', 'dragging', Drag);\n\n/*\n * L.Map.Keyboard is handling keyboard interaction with the map, enabled by default.\n */\n\n// @namespace Map\n// @section Keyboard Navigation Options\nMap.mergeOptions({\n\t// @option keyboard: Boolean = true\n\t// Makes the map focusable and allows users to navigate the map with keyboard\n\t// arrows and `+`/`-` keys.\n\tkeyboard: true,\n\n\t// @option keyboardPanDelta: Number = 80\n\t// Amount of pixels to pan when pressing an arrow key.\n\tkeyboardPanDelta: 80\n});\n\nvar Keyboard = Handler.extend({\n\n\tkeyCodes: {\n\t\tleft: [37],\n\t\tright: [39],\n\t\tdown: [40],\n\t\tup: [38],\n\t\tzoomIn: [187, 107, 61, 171],\n\t\tzoomOut: [189, 109, 54, 173]\n\t},\n\n\tinitialize: function (map) {\n\t\tthis._map = map;\n\n\t\tthis._setPanDelta(map.options.keyboardPanDelta);\n\t\tthis._setZoomDelta(map.options.zoomDelta);\n\t},\n\n\taddHooks: function () {\n\t\tvar container = this._map._container;\n\n\t\t// make the container focusable by tabbing\n\t\tif (container.tabIndex <= 0) {\n\t\t\tcontainer.tabIndex = '0';\n\t\t}\n\n\t\ton(container, {\n\t\t\tfocus: this._onFocus,\n\t\t\tblur: this._onBlur,\n\t\t\tmousedown: this._onMouseDown\n\t\t}, this);\n\n\t\tthis._map.on({\n\t\t\tfocus: this._addHooks,\n\t\t\tblur: this._removeHooks\n\t\t}, this);\n\t},\n\n\tremoveHooks: function () {\n\t\tthis._removeHooks();\n\n\t\toff(this._map._container, {\n\t\t\tfocus: this._onFocus,\n\t\t\tblur: this._onBlur,\n\t\t\tmousedown: this._onMouseDown\n\t\t}, this);\n\n\t\tthis._map.off({\n\t\t\tfocus: this._addHooks,\n\t\t\tblur: this._removeHooks\n\t\t}, this);\n\t},\n\n\t_onMouseDown: function () {\n\t\tif (this._focused) { return; }\n\n\t\tvar body = document.body,\n\t\t docEl = document.documentElement,\n\t\t top = body.scrollTop || docEl.scrollTop,\n\t\t left = body.scrollLeft || docEl.scrollLeft;\n\n\t\tthis._map._container.focus();\n\n\t\twindow.scrollTo(left, top);\n\t},\n\n\t_onFocus: function () {\n\t\tthis._focused = true;\n\t\tthis._map.fire('focus');\n\t},\n\n\t_onBlur: function () {\n\t\tthis._focused = false;\n\t\tthis._map.fire('blur');\n\t},\n\n\t_setPanDelta: function (panDelta) {\n\t\tvar keys = this._panKeys = {},\n\t\t codes = this.keyCodes,\n\t\t i, len;\n\n\t\tfor (i = 0, len = codes.left.length; i < len; i++) {\n\t\t\tkeys[codes.left[i]] = [-1 * panDelta, 0];\n\t\t}\n\t\tfor (i = 0, len = codes.right.length; i < len; i++) {\n\t\t\tkeys[codes.right[i]] = [panDelta, 0];\n\t\t}\n\t\tfor (i = 0, len = codes.down.length; i < len; i++) {\n\t\t\tkeys[codes.down[i]] = [0, panDelta];\n\t\t}\n\t\tfor (i = 0, len = codes.up.length; i < len; i++) {\n\t\t\tkeys[codes.up[i]] = [0, -1 * panDelta];\n\t\t}\n\t},\n\n\t_setZoomDelta: function (zoomDelta) {\n\t\tvar keys = this._zoomKeys = {},\n\t\t codes = this.keyCodes,\n\t\t i, len;\n\n\t\tfor (i = 0, len = codes.zoomIn.length; i < len; i++) {\n\t\t\tkeys[codes.zoomIn[i]] = zoomDelta;\n\t\t}\n\t\tfor (i = 0, len = codes.zoomOut.length; i < len; i++) {\n\t\t\tkeys[codes.zoomOut[i]] = -zoomDelta;\n\t\t}\n\t},\n\n\t_addHooks: function () {\n\t\ton(document, 'keydown', this._onKeyDown, this);\n\t},\n\n\t_removeHooks: function () {\n\t\toff(document, 'keydown', this._onKeyDown, this);\n\t},\n\n\t_onKeyDown: function (e) {\n\t\tif (e.altKey || e.ctrlKey || e.metaKey) { return; }\n\n\t\tvar key = e.keyCode,\n\t\t map = this._map,\n\t\t offset;\n\n\t\tif (key in this._panKeys) {\n\t\t\tif (!map._panAnim || !map._panAnim._inProgress) {\n\t\t\t\toffset = this._panKeys[key];\n\t\t\t\tif (e.shiftKey) {\n\t\t\t\t\toffset = toPoint(offset).multiplyBy(3);\n\t\t\t\t}\n\n\t\t\t\tmap.panBy(offset);\n\n\t\t\t\tif (map.options.maxBounds) {\n\t\t\t\t\tmap.panInsideBounds(map.options.maxBounds);\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (key in this._zoomKeys) {\n\t\t\tmap.setZoom(map.getZoom() + (e.shiftKey ? 3 : 1) * this._zoomKeys[key]);\n\n\t\t} else if (key === 27 && map._popup && map._popup.options.closeOnEscapeKey) {\n\t\t\tmap.closePopup();\n\n\t\t} else {\n\t\t\treturn;\n\t\t}\n\n\t\tstop(e);\n\t}\n});\n\n// @section Handlers\n// @section Handlers\n// @property keyboard: Handler\n// Keyboard navigation handler.\nMap.addInitHook('addHandler', 'keyboard', Keyboard);\n\n/*\n * L.Handler.ScrollWheelZoom is used by L.Map to enable mouse scroll wheel zoom on the map.\n */\n\n// @namespace Map\n// @section Interaction Options\nMap.mergeOptions({\n\t// @section Mousewheel options\n\t// @option scrollWheelZoom: Boolean|String = true\n\t// Whether the map can be zoomed by using the mouse wheel. If passed `'center'`,\n\t// it will zoom to the center of the view regardless of where the mouse was.\n\tscrollWheelZoom: true,\n\n\t// @option wheelDebounceTime: Number = 40\n\t// Limits the rate at which a wheel can fire (in milliseconds). By default\n\t// user can't zoom via wheel more often than once per 40 ms.\n\twheelDebounceTime: 40,\n\n\t// @option wheelPxPerZoomLevel: Number = 60\n\t// How many scroll pixels (as reported by [L.DomEvent.getWheelDelta](#domevent-getwheeldelta))\n\t// mean a change of one full zoom level. Smaller values will make wheel-zooming\n\t// faster (and vice versa).\n\twheelPxPerZoomLevel: 60\n});\n\nvar ScrollWheelZoom = Handler.extend({\n\taddHooks: function () {\n\t\ton(this._map._container, 'mousewheel', this._onWheelScroll, this);\n\n\t\tthis._delta = 0;\n\t},\n\n\tremoveHooks: function () {\n\t\toff(this._map._container, 'mousewheel', this._onWheelScroll, this);\n\t},\n\n\t_onWheelScroll: function (e) {\n\t\tvar delta = getWheelDelta(e);\n\n\t\tvar debounce = this._map.options.wheelDebounceTime;\n\n\t\tthis._delta += delta;\n\t\tthis._lastMousePos = this._map.mouseEventToContainerPoint(e);\n\n\t\tif (!this._startTime) {\n\t\t\tthis._startTime = +new Date();\n\t\t}\n\n\t\tvar left = Math.max(debounce - (+new Date() - this._startTime), 0);\n\n\t\tclearTimeout(this._timer);\n\t\tthis._timer = setTimeout(bind(this._performZoom, this), left);\n\n\t\tstop(e);\n\t},\n\n\t_performZoom: function () {\n\t\tvar map = this._map,\n\t\t zoom = map.getZoom(),\n\t\t snap = this._map.options.zoomSnap || 0;\n\n\t\tmap._stop(); // stop panning and fly animations if any\n\n\t\t// map the delta with a sigmoid function to -4..4 range leaning on -1..1\n\t\tvar d2 = this._delta / (this._map.options.wheelPxPerZoomLevel * 4),\n\t\t d3 = 4 * Math.log(2 / (1 + Math.exp(-Math.abs(d2)))) / Math.LN2,\n\t\t d4 = snap ? Math.ceil(d3 / snap) * snap : d3,\n\t\t delta = map._limitZoom(zoom + (this._delta > 0 ? d4 : -d4)) - zoom;\n\n\t\tthis._delta = 0;\n\t\tthis._startTime = null;\n\n\t\tif (!delta) { return; }\n\n\t\tif (map.options.scrollWheelZoom === 'center') {\n\t\t\tmap.setZoom(zoom + delta);\n\t\t} else {\n\t\t\tmap.setZoomAround(this._lastMousePos, zoom + delta);\n\t\t}\n\t}\n});\n\n// @section Handlers\n// @property scrollWheelZoom: Handler\n// Scroll wheel zoom handler.\nMap.addInitHook('addHandler', 'scrollWheelZoom', ScrollWheelZoom);\n\n/*\n * L.Map.Tap is used to enable mobile hacks like quick taps and long hold.\n */\n\n// @namespace Map\n// @section Interaction Options\nMap.mergeOptions({\n\t// @section Touch interaction options\n\t// @option tap: Boolean = true\n\t// Enables mobile hacks for supporting instant taps (fixing 200ms click\n\t// delay on iOS/Android) and touch holds (fired as `contextmenu` events).\n\ttap: true,\n\n\t// @option tapTolerance: Number = 15\n\t// The max number of pixels a user can shift his finger during touch\n\t// for it to be considered a valid tap.\n\ttapTolerance: 15\n});\n\nvar Tap = Handler.extend({\n\taddHooks: function () {\n\t\ton(this._map._container, 'touchstart', this._onDown, this);\n\t},\n\n\tremoveHooks: function () {\n\t\toff(this._map._container, 'touchstart', this._onDown, this);\n\t},\n\n\t_onDown: function (e) {\n\t\tif (!e.touches) { return; }\n\n\t\tpreventDefault(e);\n\n\t\tthis._fireClick = true;\n\n\t\t// don't simulate click or track longpress if more than 1 touch\n\t\tif (e.touches.length > 1) {\n\t\t\tthis._fireClick = false;\n\t\t\tclearTimeout(this._holdTimeout);\n\t\t\treturn;\n\t\t}\n\n\t\tvar first = e.touches[0],\n\t\t el = first.target;\n\n\t\tthis._startPos = this._newPos = new Point(first.clientX, first.clientY);\n\n\t\t// if touching a link, highlight it\n\t\tif (el.tagName && el.tagName.toLowerCase() === 'a') {\n\t\t\taddClass(el, 'leaflet-active');\n\t\t}\n\n\t\t// simulate long hold but setting a timeout\n\t\tthis._holdTimeout = setTimeout(bind(function () {\n\t\t\tif (this._isTapValid()) {\n\t\t\t\tthis._fireClick = false;\n\t\t\t\tthis._onUp();\n\t\t\t\tthis._simulateEvent('contextmenu', first);\n\t\t\t}\n\t\t}, this), 1000);\n\n\t\tthis._simulateEvent('mousedown', first);\n\n\t\ton(document, {\n\t\t\ttouchmove: this._onMove,\n\t\t\ttouchend: this._onUp\n\t\t}, this);\n\t},\n\n\t_onUp: function (e) {\n\t\tclearTimeout(this._holdTimeout);\n\n\t\toff(document, {\n\t\t\ttouchmove: this._onMove,\n\t\t\ttouchend: this._onUp\n\t\t}, this);\n\n\t\tif (this._fireClick && e && e.changedTouches) {\n\n\t\t\tvar first = e.changedTouches[0],\n\t\t\t el = first.target;\n\n\t\t\tif (el && el.tagName && el.tagName.toLowerCase() === 'a') {\n\t\t\t\tremoveClass(el, 'leaflet-active');\n\t\t\t}\n\n\t\t\tthis._simulateEvent('mouseup', first);\n\n\t\t\t// simulate click if the touch didn't move too much\n\t\t\tif (this._isTapValid()) {\n\t\t\t\tthis._simulateEvent('click', first);\n\t\t\t}\n\t\t}\n\t},\n\n\t_isTapValid: function () {\n\t\treturn this._newPos.distanceTo(this._startPos) <= this._map.options.tapTolerance;\n\t},\n\n\t_onMove: function (e) {\n\t\tvar first = e.touches[0];\n\t\tthis._newPos = new Point(first.clientX, first.clientY);\n\t\tthis._simulateEvent('mousemove', first);\n\t},\n\n\t_simulateEvent: function (type, e) {\n\t\tvar simulatedEvent = document.createEvent('MouseEvents');\n\n\t\tsimulatedEvent._simulated = true;\n\t\te.target._simulatedClick = true;\n\n\t\tsimulatedEvent.initMouseEvent(\n\t\t type, true, true, window, 1,\n\t\t e.screenX, e.screenY,\n\t\t e.clientX, e.clientY,\n\t\t false, false, false, false, 0, null);\n\n\t\te.target.dispatchEvent(simulatedEvent);\n\t}\n});\n\n// @section Handlers\n// @property tap: Handler\n// Mobile touch hacks (quick tap and touch hold) handler.\nif (touch && !pointer) {\n\tMap.addInitHook('addHandler', 'tap', Tap);\n}\n\n/*\n * L.Handler.TouchZoom is used by L.Map to add pinch zoom on supported mobile browsers.\n */\n\n// @namespace Map\n// @section Interaction Options\nMap.mergeOptions({\n\t// @section Touch interaction options\n\t// @option touchZoom: Boolean|String = *\n\t// Whether the map can be zoomed by touch-dragging with two fingers. If\n\t// passed `'center'`, it will zoom to the center of the view regardless of\n\t// where the touch events (fingers) were. Enabled for touch-capable web\n\t// browsers except for old Androids.\n\ttouchZoom: touch && !android23,\n\n\t// @option bounceAtZoomLimits: Boolean = true\n\t// Set it to false if you don't want the map to zoom beyond min/max zoom\n\t// and then bounce back when pinch-zooming.\n\tbounceAtZoomLimits: true\n});\n\nvar TouchZoom = Handler.extend({\n\taddHooks: function () {\n\t\taddClass(this._map._container, 'leaflet-touch-zoom');\n\t\ton(this._map._container, 'touchstart', this._onTouchStart, this);\n\t},\n\n\tremoveHooks: function () {\n\t\tremoveClass(this._map._container, 'leaflet-touch-zoom');\n\t\toff(this._map._container, 'touchstart', this._onTouchStart, this);\n\t},\n\n\t_onTouchStart: function (e) {\n\t\tvar map = this._map;\n\t\tif (!e.touches || e.touches.length !== 2 || map._animatingZoom || this._zooming) { return; }\n\n\t\tvar p1 = map.mouseEventToContainerPoint(e.touches[0]),\n\t\t p2 = map.mouseEventToContainerPoint(e.touches[1]);\n\n\t\tthis._centerPoint = map.getSize()._divideBy(2);\n\t\tthis._startLatLng = map.containerPointToLatLng(this._centerPoint);\n\t\tif (map.options.touchZoom !== 'center') {\n\t\t\tthis._pinchStartLatLng = map.containerPointToLatLng(p1.add(p2)._divideBy(2));\n\t\t}\n\n\t\tthis._startDist = p1.distanceTo(p2);\n\t\tthis._startZoom = map.getZoom();\n\n\t\tthis._moved = false;\n\t\tthis._zooming = true;\n\n\t\tmap._stop();\n\n\t\ton(document, 'touchmove', this._onTouchMove, this);\n\t\ton(document, 'touchend', this._onTouchEnd, this);\n\n\t\tpreventDefault(e);\n\t},\n\n\t_onTouchMove: function (e) {\n\t\tif (!e.touches || e.touches.length !== 2 || !this._zooming) { return; }\n\n\t\tvar map = this._map,\n\t\t p1 = map.mouseEventToContainerPoint(e.touches[0]),\n\t\t p2 = map.mouseEventToContainerPoint(e.touches[1]),\n\t\t scale = p1.distanceTo(p2) / this._startDist;\n\n\t\tthis._zoom = map.getScaleZoom(scale, this._startZoom);\n\n\t\tif (!map.options.bounceAtZoomLimits && (\n\t\t\t(this._zoom < map.getMinZoom() && scale < 1) ||\n\t\t\t(this._zoom > map.getMaxZoom() && scale > 1))) {\n\t\t\tthis._zoom = map._limitZoom(this._zoom);\n\t\t}\n\n\t\tif (map.options.touchZoom === 'center') {\n\t\t\tthis._center = this._startLatLng;\n\t\t\tif (scale === 1) { return; }\n\t\t} else {\n\t\t\t// Get delta from pinch to center, so centerLatLng is delta applied to initial pinchLatLng\n\t\t\tvar delta = p1._add(p2)._divideBy(2)._subtract(this._centerPoint);\n\t\t\tif (scale === 1 && delta.x === 0 && delta.y === 0) { return; }\n\t\t\tthis._center = map.unproject(map.project(this._pinchStartLatLng, this._zoom).subtract(delta), this._zoom);\n\t\t}\n\n\t\tif (!this._moved) {\n\t\t\tmap._moveStart(true, false);\n\t\t\tthis._moved = true;\n\t\t}\n\n\t\tcancelAnimFrame(this._animRequest);\n\n\t\tvar moveFn = bind(map._move, map, this._center, this._zoom, {pinch: true, round: false});\n\t\tthis._animRequest = requestAnimFrame(moveFn, this, true);\n\n\t\tpreventDefault(e);\n\t},\n\n\t_onTouchEnd: function () {\n\t\tif (!this._moved || !this._zooming) {\n\t\t\tthis._zooming = false;\n\t\t\treturn;\n\t\t}\n\n\t\tthis._zooming = false;\n\t\tcancelAnimFrame(this._animRequest);\n\n\t\toff(document, 'touchmove', this._onTouchMove);\n\t\toff(document, 'touchend', this._onTouchEnd);\n\n\t\t// Pinch updates GridLayers' levels only when zoomSnap is off, so zoomSnap becomes noUpdate.\n\t\tif (this._map.options.zoomAnimation) {\n\t\t\tthis._map._animateZoom(this._center, this._map._limitZoom(this._zoom), true, this._map.options.zoomSnap);\n\t\t} else {\n\t\t\tthis._map._resetView(this._center, this._map._limitZoom(this._zoom));\n\t\t}\n\t}\n});\n\n// @section Handlers\n// @property touchZoom: Handler\n// Touch zoom handler.\nMap.addInitHook('addHandler', 'touchZoom', TouchZoom);\n\nMap.BoxZoom = BoxZoom;\nMap.DoubleClickZoom = DoubleClickZoom;\nMap.Drag = Drag;\nMap.Keyboard = Keyboard;\nMap.ScrollWheelZoom = ScrollWheelZoom;\nMap.Tap = Tap;\nMap.TouchZoom = TouchZoom;\n\nObject.freeze = freeze;\n\nexports.version = version;\nexports.Control = Control;\nexports.control = control;\nexports.Browser = Browser;\nexports.Evented = Evented;\nexports.Mixin = Mixin;\nexports.Util = Util;\nexports.Class = Class;\nexports.Handler = Handler;\nexports.extend = extend;\nexports.bind = bind;\nexports.stamp = stamp;\nexports.setOptions = setOptions;\nexports.DomEvent = DomEvent;\nexports.DomUtil = DomUtil;\nexports.PosAnimation = PosAnimation;\nexports.Draggable = Draggable;\nexports.LineUtil = LineUtil;\nexports.PolyUtil = PolyUtil;\nexports.Point = Point;\nexports.point = toPoint;\nexports.Bounds = Bounds;\nexports.bounds = toBounds;\nexports.Transformation = Transformation;\nexports.transformation = toTransformation;\nexports.Projection = index;\nexports.LatLng = LatLng;\nexports.latLng = toLatLng;\nexports.LatLngBounds = LatLngBounds;\nexports.latLngBounds = toLatLngBounds;\nexports.CRS = CRS;\nexports.GeoJSON = GeoJSON;\nexports.geoJSON = geoJSON;\nexports.geoJson = geoJson;\nexports.Layer = Layer;\nexports.LayerGroup = LayerGroup;\nexports.layerGroup = layerGroup;\nexports.FeatureGroup = FeatureGroup;\nexports.featureGroup = featureGroup;\nexports.ImageOverlay = ImageOverlay;\nexports.imageOverlay = imageOverlay;\nexports.VideoOverlay = VideoOverlay;\nexports.videoOverlay = videoOverlay;\nexports.DivOverlay = DivOverlay;\nexports.Popup = Popup;\nexports.popup = popup;\nexports.Tooltip = Tooltip;\nexports.tooltip = tooltip;\nexports.Icon = Icon;\nexports.icon = icon;\nexports.DivIcon = DivIcon;\nexports.divIcon = divIcon;\nexports.Marker = Marker;\nexports.marker = marker;\nexports.TileLayer = TileLayer;\nexports.tileLayer = tileLayer;\nexports.GridLayer = GridLayer;\nexports.gridLayer = gridLayer;\nexports.SVG = SVG;\nexports.svg = svg$1;\nexports.Renderer = Renderer;\nexports.Canvas = Canvas;\nexports.canvas = canvas$1;\nexports.Path = Path;\nexports.CircleMarker = CircleMarker;\nexports.circleMarker = circleMarker;\nexports.Circle = Circle;\nexports.circle = circle;\nexports.Polyline = Polyline;\nexports.polyline = polyline;\nexports.Polygon = Polygon;\nexports.polygon = polygon;\nexports.Rectangle = Rectangle;\nexports.rectangle = rectangle;\nexports.Map = Map;\nexports.map = createMap;\n\nvar oldL = window.L;\nexports.noConflict = function() {\n\twindow.L = oldL;\n\treturn this;\n}\n\n// Always export us to window global (see #2364)\nwindow.L = exports;\n\n})));\n//# sourceMappingURL=leaflet-src.js.map\n"
},
{
"id": 2,
"identifier": "/Users/user/Projects/orchid/node_modules/webpack/buildin/module.js",
"name": "(webpack)/buildin/module.js",
"index": 1,
"index2": 0,
"size": 497,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"issuerId": 79,
"issuerName": "./src/index.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 65,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/constants/modes.js",
"module": "./src/constants/modes.js",
"moduleName": "./src/constants/modes.js",
"type": "cjs require",
"userRequest": "module",
"loc": "1:0-57"
},
{
"moduleId": 66,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/utils/DomMarker.js",
"module": "./src/utils/DomMarker.js",
"moduleName": "./src/utils/DomMarker.js",
"type": "cjs require",
"userRequest": "module",
"loc": "1:0-57"
},
{
"moduleId": 79,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"module": "./src/index.js",
"moduleName": "./src/index.js",
"type": "cjs require",
"userRequest": "module",
"loc": "1:0-54"
},
{
"moduleId": 89,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"module": "./src/containers/App.jsx",
"moduleName": "./src/containers/App.jsx",
"type": "cjs require",
"userRequest": "module",
"loc": "1:0-57"
},
{
"moduleId": 124,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"module": "./src/modules/Editor.js",
"moduleName": "./src/modules/Editor.js",
"type": "cjs require",
"userRequest": "module",
"loc": "1:0-57"
},
{
"moduleId": 126,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Map.js",
"module": "./src/modules/Map.js",
"moduleName": "./src/modules/Map.js",
"type": "cjs require",
"userRequest": "module",
"loc": "1:0-57"
},
{
"moduleId": 127,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/constants/providers.js",
"module": "./src/constants/providers.js",
"moduleName": "./src/constants/providers.js",
"type": "cjs require",
"userRequest": "module",
"loc": "1:0-57"
},
{
"moduleId": 136,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Poly.js",
"module": "./src/modules/Poly.js",
"moduleName": "./src/modules/Poly.js",
"type": "cjs require",
"userRequest": "module",
"loc": "1:0-57"
},
{
"moduleId": 144,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Stickers.js",
"module": "./src/modules/Stickers.js",
"moduleName": "./src/modules/Stickers.js",
"type": "cjs require",
"userRequest": "module",
"loc": "1:0-57"
},
{
"moduleId": 145,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Sticker.js",
"module": "./src/modules/Sticker.js",
"moduleName": "./src/modules/Sticker.js",
"type": "cjs require",
"userRequest": "module",
"loc": "1:0-57"
},
{
"moduleId": 146,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"module": "./src/modules/Router.js",
"moduleName": "./src/modules/Router.js",
"type": "cjs require",
"userRequest": "module",
"loc": "1:0-57"
},
{
"moduleId": 166,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/config.js",
"module": "./src/config.js",
"moduleName": "./src/config.js",
"type": "cjs require",
"userRequest": "module",
"loc": "1:0-54"
},
{
"moduleId": 167,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Shotter.js",
"module": "./src/modules/Shotter.js",
"moduleName": "./src/modules/Shotter.js",
"type": "cjs require",
"userRequest": "module",
"loc": "1:0-57"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 1,
"source": "module.exports = function(module) {\n\tif (!module.webpackPolyfill) {\n\t\tmodule.deprecate = function() {};\n\t\tmodule.paths = [];\n\t\t// module.parent = undefined by default\n\t\tif (!module.children) module.children = [];\n\t\tObject.defineProperty(module, \"loaded\", {\n\t\t\tenumerable: true,\n\t\t\tget: function() {\n\t\t\t\treturn module.l;\n\t\t\t}\n\t\t});\n\t\tObject.defineProperty(module, \"id\", {\n\t\t\tenumerable: true,\n\t\t\tget: function() {\n\t\t\t\treturn module.i;\n\t\t\t}\n\t\t});\n\t\tmodule.webpackPolyfill = 1;\n\t}\n\treturn module;\n};\n"
},
{
"id": 3,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_core.js",
"name": "./node_modules/core-js/library/modules/_core.js",
"index": 24,
"index2": 17,
"size": 122,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/object/set-prototype-of.js",
"issuerId": 118,
"issuerName": "./node_modules/core-js/library/fn/object/set-prototype-of.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 116,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/inherits.js",
"name": "./node_modules/babel-runtime/helpers/inherits.js"
},
{
"id": 117,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/object/set-prototype-of.js",
"name": "./node_modules/babel-runtime/core-js/object/set-prototype-of.js"
},
{
"id": 118,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/object/set-prototype-of.js",
"name": "./node_modules/core-js/library/fn/object/set-prototype-of.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 10,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_export.js",
"module": "./node_modules/core-js/library/modules/_export.js",
"moduleName": "./node_modules/core-js/library/modules/_export.js",
"type": "cjs require",
"userRequest": "./_core",
"loc": "2:11-29"
},
{
"moduleId": 33,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_shared.js",
"module": "./node_modules/core-js/library/modules/_shared.js",
"moduleName": "./node_modules/core-js/library/modules/_shared.js",
"type": "cjs require",
"userRequest": "./_core",
"loc": "1:11-29"
},
{
"moduleId": 39,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_wks-define.js",
"module": "./node_modules/core-js/library/modules/_wks-define.js",
"moduleName": "./node_modules/core-js/library/modules/_wks-define.js",
"type": "cjs require",
"userRequest": "./_core",
"loc": "2:11-29"
},
{
"moduleId": 64,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/core.get-iterator-method.js",
"module": "./node_modules/core-js/library/modules/core.get-iterator-method.js",
"moduleName": "./node_modules/core-js/library/modules/core.get-iterator-method.js",
"type": "cjs require",
"userRequest": "./_core",
"loc": "4:17-35"
},
{
"moduleId": 90,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/object/define-property.js",
"module": "./node_modules/core-js/library/fn/object/define-property.js",
"moduleName": "./node_modules/core-js/library/fn/object/define-property.js",
"type": "cjs require",
"userRequest": "../../modules/_core",
"loc": "2:14-44"
},
{
"moduleId": 107,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/index.js",
"module": "./node_modules/core-js/library/fn/symbol/index.js",
"moduleName": "./node_modules/core-js/library/fn/symbol/index.js",
"type": "cjs require",
"userRequest": "../../modules/_core",
"loc": "5:17-47"
},
{
"moduleId": 118,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/object/set-prototype-of.js",
"module": "./node_modules/core-js/library/fn/object/set-prototype-of.js",
"moduleName": "./node_modules/core-js/library/fn/object/set-prototype-of.js",
"type": "cjs require",
"userRequest": "../../modules/_core",
"loc": "2:17-47"
},
{
"moduleId": 122,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/object/create.js",
"module": "./node_modules/core-js/library/fn/object/create.js",
"moduleName": "./node_modules/core-js/library/fn/object/create.js",
"type": "cjs require",
"userRequest": "../../modules/_core",
"loc": "2:14-44"
},
{
"moduleId": 140,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/core.is-iterable.js",
"module": "./node_modules/core-js/library/modules/core.is-iterable.js",
"moduleName": "./node_modules/core-js/library/modules/core.is-iterable.js",
"type": "cjs require",
"userRequest": "./_core",
"loc": "4:17-35"
},
{
"moduleId": 143,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/core.get-iterator.js",
"module": "./node_modules/core-js/library/modules/core.get-iterator.js",
"moduleName": "./node_modules/core-js/library/modules/core.get-iterator.js",
"type": "cjs require",
"userRequest": "./_core",
"loc": "3:17-35"
},
{
"moduleId": 149,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/object/assign.js",
"module": "./node_modules/core-js/library/fn/object/assign.js",
"moduleName": "./node_modules/core-js/library/fn/object/assign.js",
"type": "cjs require",
"userRequest": "../../modules/_core",
"loc": "2:17-47"
},
{
"moduleId": 154,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/array/from.js",
"module": "./node_modules/core-js/library/fn/array/from.js",
"moduleName": "./node_modules/core-js/library/fn/array/from.js",
"type": "cjs require",
"userRequest": "../../modules/_core",
"loc": "3:17-47"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 5,
"source": "var core = module.exports = { version: '2.5.7' };\nif (typeof __e == 'number') __e = core; // eslint-disable-line no-undef\n"
},
{
"id": 4,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/utils.js",
"name": "./node_modules/axios/lib/utils.js",
"index": 163,
"index2": 159,
"size": 7541,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/axios/lib/axios.js",
"issuerId": 169,
"issuerName": "./node_modules/axios/lib/axios.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 167,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Shotter.js",
"name": "./src/modules/Shotter.js"
},
{
"id": 168,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/index.js",
"name": "./node_modules/axios/index.js"
},
{
"id": 169,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/axios.js",
"name": "./node_modules/axios/lib/axios.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 46,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/axios/lib/defaults.js",
"module": "./node_modules/axios/lib/defaults.js",
"moduleName": "./node_modules/axios/lib/defaults.js",
"type": "cjs require",
"userRequest": "./utils",
"loc": "3:12-30"
},
{
"moduleId": 75,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/axios/lib/adapters/xhr.js",
"module": "./node_modules/axios/lib/adapters/xhr.js",
"moduleName": "./node_modules/axios/lib/adapters/xhr.js",
"type": "cjs require",
"userRequest": "./../utils",
"loc": "3:12-33"
},
{
"moduleId": 169,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/axios/lib/axios.js",
"module": "./node_modules/axios/lib/axios.js",
"moduleName": "./node_modules/axios/lib/axios.js",
"type": "cjs require",
"userRequest": "./utils",
"loc": "3:12-30"
},
{
"moduleId": 171,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/axios/lib/core/Axios.js",
"module": "./node_modules/axios/lib/core/Axios.js",
"moduleName": "./node_modules/axios/lib/core/Axios.js",
"type": "cjs require",
"userRequest": "./../utils",
"loc": "4:12-33"
},
{
"moduleId": 173,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/axios/lib/helpers/normalizeHeaderName.js",
"module": "./node_modules/axios/lib/helpers/normalizeHeaderName.js",
"moduleName": "./node_modules/axios/lib/helpers/normalizeHeaderName.js",
"type": "cjs require",
"userRequest": "../utils",
"loc": "3:12-31"
},
{
"moduleId": 176,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/axios/lib/helpers/buildURL.js",
"module": "./node_modules/axios/lib/helpers/buildURL.js",
"moduleName": "./node_modules/axios/lib/helpers/buildURL.js",
"type": "cjs require",
"userRequest": "./../utils",
"loc": "3:12-33"
},
{
"moduleId": 177,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/axios/lib/helpers/parseHeaders.js",
"module": "./node_modules/axios/lib/helpers/parseHeaders.js",
"moduleName": "./node_modules/axios/lib/helpers/parseHeaders.js",
"type": "cjs require",
"userRequest": "./../utils",
"loc": "3:12-33"
},
{
"moduleId": 178,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/axios/lib/helpers/isURLSameOrigin.js",
"module": "./node_modules/axios/lib/helpers/isURLSameOrigin.js",
"moduleName": "./node_modules/axios/lib/helpers/isURLSameOrigin.js",
"type": "cjs require",
"userRequest": "./../utils",
"loc": "3:12-33"
},
{
"moduleId": 180,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/axios/lib/helpers/cookies.js",
"module": "./node_modules/axios/lib/helpers/cookies.js",
"moduleName": "./node_modules/axios/lib/helpers/cookies.js",
"type": "cjs require",
"userRequest": "./../utils",
"loc": "3:12-33"
},
{
"moduleId": 181,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/axios/lib/core/InterceptorManager.js",
"module": "./node_modules/axios/lib/core/InterceptorManager.js",
"moduleName": "./node_modules/axios/lib/core/InterceptorManager.js",
"type": "cjs require",
"userRequest": "./../utils",
"loc": "3:12-33"
},
{
"moduleId": 182,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/axios/lib/core/dispatchRequest.js",
"module": "./node_modules/axios/lib/core/dispatchRequest.js",
"moduleName": "./node_modules/axios/lib/core/dispatchRequest.js",
"type": "cjs require",
"userRequest": "./../utils",
"loc": "3:12-33"
},
{
"moduleId": 183,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/axios/lib/core/transformData.js",
"module": "./node_modules/axios/lib/core/transformData.js",
"moduleName": "./node_modules/axios/lib/core/transformData.js",
"type": "cjs require",
"userRequest": "./../utils",
"loc": "3:12-33"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 6,
"source": "'use strict';\n\nvar bind = require('./helpers/bind');\nvar isBuffer = require('is-buffer');\n\n/*global toString:true*/\n\n// utils is a library of generic helper functions non-specific to axios\n\nvar toString = Object.prototype.toString;\n\n/**\n * Determine if a value is an Array\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an Array, otherwise false\n */\nfunction isArray(val) {\n return toString.call(val) === '[object Array]';\n}\n\n/**\n * Determine if a value is an ArrayBuffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an ArrayBuffer, otherwise false\n */\nfunction isArrayBuffer(val) {\n return toString.call(val) === '[object ArrayBuffer]';\n}\n\n/**\n * Determine if a value is a FormData\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an FormData, otherwise false\n */\nfunction isFormData(val) {\n return (typeof FormData !== 'undefined') && (val instanceof FormData);\n}\n\n/**\n * Determine if a value is a view on an ArrayBuffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false\n */\nfunction isArrayBufferView(val) {\n var result;\n if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {\n result = ArrayBuffer.isView(val);\n } else {\n result = (val) && (val.buffer) && (val.buffer instanceof ArrayBuffer);\n }\n return result;\n}\n\n/**\n * Determine if a value is a String\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a String, otherwise false\n */\nfunction isString(val) {\n return typeof val === 'string';\n}\n\n/**\n * Determine if a value is a Number\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Number, otherwise false\n */\nfunction isNumber(val) {\n return typeof val === 'number';\n}\n\n/**\n * Determine if a value is undefined\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if the value is undefined, otherwise false\n */\nfunction isUndefined(val) {\n return typeof val === 'undefined';\n}\n\n/**\n * Determine if a value is an Object\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an Object, otherwise false\n */\nfunction isObject(val) {\n return val !== null && typeof val === 'object';\n}\n\n/**\n * Determine if a value is a Date\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Date, otherwise false\n */\nfunction isDate(val) {\n return toString.call(val) === '[object Date]';\n}\n\n/**\n * Determine if a value is a File\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a File, otherwise false\n */\nfunction isFile(val) {\n return toString.call(val) === '[object File]';\n}\n\n/**\n * Determine if a value is a Blob\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Blob, otherwise false\n */\nfunction isBlob(val) {\n return toString.call(val) === '[object Blob]';\n}\n\n/**\n * Determine if a value is a Function\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Function, otherwise false\n */\nfunction isFunction(val) {\n return toString.call(val) === '[object Function]';\n}\n\n/**\n * Determine if a value is a Stream\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Stream, otherwise false\n */\nfunction isStream(val) {\n return isObject(val) && isFunction(val.pipe);\n}\n\n/**\n * Determine if a value is a URLSearchParams object\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a URLSearchParams object, otherwise false\n */\nfunction isURLSearchParams(val) {\n return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams;\n}\n\n/**\n * Trim excess whitespace off the beginning and end of a string\n *\n * @param {String} str The String to trim\n * @returns {String} The String freed of excess whitespace\n */\nfunction trim(str) {\n return str.replace(/^\\s*/, '').replace(/\\s*$/, '');\n}\n\n/**\n * Determine if we're running in a standard browser environment\n *\n * This allows axios to run in a web worker, and react-native.\n * Both environments support XMLHttpRequest, but not fully standard globals.\n *\n * web workers:\n * typeof window -> undefined\n * typeof document -> undefined\n *\n * react-native:\n * navigator.product -> 'ReactNative'\n */\nfunction isStandardBrowserEnv() {\n if (typeof navigator !== 'undefined' && navigator.product === 'ReactNative') {\n return false;\n }\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined'\n );\n}\n\n/**\n * Iterate over an Array or an Object invoking a function for each item.\n *\n * If `obj` is an Array callback will be called passing\n * the value, index, and complete array for each item.\n *\n * If 'obj' is an Object callback will be called passing\n * the value, key, and complete object for each property.\n *\n * @param {Object|Array} obj The object to iterate\n * @param {Function} fn The callback to invoke for each item\n */\nfunction forEach(obj, fn) {\n // Don't bother if no value provided\n if (obj === null || typeof obj === 'undefined') {\n return;\n }\n\n // Force an array if not already something iterable\n if (typeof obj !== 'object') {\n /*eslint no-param-reassign:0*/\n obj = [obj];\n }\n\n if (isArray(obj)) {\n // Iterate over array values\n for (var i = 0, l = obj.length; i < l; i++) {\n fn.call(null, obj[i], i, obj);\n }\n } else {\n // Iterate over object keys\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) {\n fn.call(null, obj[key], key, obj);\n }\n }\n }\n}\n\n/**\n * Accepts varargs expecting each argument to be an object, then\n * immutably merges the properties of each object and returns result.\n *\n * When multiple objects contain the same key the later object in\n * the arguments list will take precedence.\n *\n * Example:\n *\n * ```js\n * var result = merge({foo: 123}, {foo: 456});\n * console.log(result.foo); // outputs 456\n * ```\n *\n * @param {Object} obj1 Object to merge\n * @returns {Object} Result of all merge properties\n */\nfunction merge(/* obj1, obj2, obj3, ... */) {\n var result = {};\n function assignValue(val, key) {\n if (typeof result[key] === 'object' && typeof val === 'object') {\n result[key] = merge(result[key], val);\n } else {\n result[key] = val;\n }\n }\n\n for (var i = 0, l = arguments.length; i < l; i++) {\n forEach(arguments[i], assignValue);\n }\n return result;\n}\n\n/**\n * Extends object a by mutably adding to it the properties of object b.\n *\n * @param {Object} a The object to be extended\n * @param {Object} b The object to copy properties from\n * @param {Object} thisArg The object to bind function to\n * @return {Object} The resulting value of object a\n */\nfunction extend(a, b, thisArg) {\n forEach(b, function assignValue(val, key) {\n if (thisArg && typeof val === 'function') {\n a[key] = bind(val, thisArg);\n } else {\n a[key] = val;\n }\n });\n return a;\n}\n\nmodule.exports = {\n isArray: isArray,\n isArrayBuffer: isArrayBuffer,\n isBuffer: isBuffer,\n isFormData: isFormData,\n isArrayBufferView: isArrayBufferView,\n isString: isString,\n isNumber: isNumber,\n isObject: isObject,\n isUndefined: isUndefined,\n isDate: isDate,\n isFile: isFile,\n isBlob: isBlob,\n isFunction: isFunction,\n isStream: isStream,\n isURLSearchParams: isURLSearchParams,\n isStandardBrowserEnv: isStandardBrowserEnv,\n forEach: forEach,\n merge: merge,\n extend: extend,\n trim: trim\n};\n"
},
{
"id": 5,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_wks.js",
"name": "./node_modules/core-js/library/modules/_wks.js",
"index": 67,
"index2": 57,
"size": 358,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/web.dom.iterable.js",
"issuerId": 37,
"issuerName": "./node_modules/core-js/library/modules/web.dom.iterable.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 93,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"name": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"
},
{
"id": 54,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"name": "./node_modules/babel-runtime/helpers/typeof.js"
},
{
"id": 94,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol/iterator.js",
"name": "./node_modules/babel-runtime/core-js/symbol/iterator.js"
},
{
"id": 95,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/iterator.js",
"name": "./node_modules/core-js/library/fn/symbol/iterator.js"
},
{
"id": 37,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/web.dom.iterable.js",
"name": "./node_modules/core-js/library/modules/web.dom.iterable.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 35,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_set-to-string-tag.js",
"module": "./node_modules/core-js/library/modules/_set-to-string-tag.js",
"moduleName": "./node_modules/core-js/library/modules/_set-to-string-tag.js",
"type": "cjs require",
"userRequest": "./_wks",
"loc": "3:10-27"
},
{
"moduleId": 37,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/web.dom.iterable.js",
"module": "./node_modules/core-js/library/modules/web.dom.iterable.js",
"moduleName": "./node_modules/core-js/library/modules/web.dom.iterable.js",
"type": "cjs require",
"userRequest": "./_wks",
"loc": "5:20-37"
},
{
"moduleId": 38,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_wks-ext.js",
"module": "./node_modules/core-js/library/modules/_wks-ext.js",
"moduleName": "./node_modules/core-js/library/modules/_wks-ext.js",
"type": "cjs require",
"userRequest": "./_wks",
"loc": "1:12-29"
},
{
"moduleId": 55,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_iter-define.js",
"module": "./node_modules/core-js/library/modules/_iter-define.js",
"moduleName": "./node_modules/core-js/library/modules/_iter-define.js",
"type": "cjs require",
"userRequest": "./_wks",
"loc": "10:15-32"
},
{
"moduleId": 63,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_classof.js",
"module": "./node_modules/core-js/library/modules/_classof.js",
"moduleName": "./node_modules/core-js/library/modules/_classof.js",
"type": "cjs require",
"userRequest": "./_wks",
"loc": "3:10-27"
},
{
"moduleId": 64,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/core.get-iterator-method.js",
"module": "./node_modules/core-js/library/modules/core.get-iterator-method.js",
"moduleName": "./node_modules/core-js/library/modules/core.get-iterator-method.js",
"type": "cjs require",
"userRequest": "./_wks",
"loc": "2:15-32"
},
{
"moduleId": 97,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_iter-create.js",
"module": "./node_modules/core-js/library/modules/_iter-create.js",
"moduleName": "./node_modules/core-js/library/modules/_iter-create.js",
"type": "cjs require",
"userRequest": "./_wks",
"loc": "8:38-55"
},
{
"moduleId": 108,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"module": "./node_modules/core-js/library/modules/es6.symbol.js",
"moduleName": "./node_modules/core-js/library/modules/es6.symbol.js",
"type": "cjs require",
"userRequest": "./_wks",
"loc": "13:10-27"
},
{
"moduleId": 140,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/core.is-iterable.js",
"module": "./node_modules/core-js/library/modules/core.is-iterable.js",
"moduleName": "./node_modules/core-js/library/modules/core.is-iterable.js",
"type": "cjs require",
"userRequest": "./_wks",
"loc": "2:15-32"
},
{
"moduleId": 157,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_is-array-iter.js",
"module": "./node_modules/core-js/library/modules/_is-array-iter.js",
"moduleName": "./node_modules/core-js/library/modules/_is-array-iter.js",
"type": "cjs require",
"userRequest": "./_wks",
"loc": "3:15-32"
},
{
"moduleId": 159,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_iter-detect.js",
"module": "./node_modules/core-js/library/modules/_iter-detect.js",
"moduleName": "./node_modules/core-js/library/modules/_iter-detect.js",
"type": "cjs require",
"userRequest": "./_wks",
"loc": "1:15-32"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "var store = require('./_shared')('wks');\nvar uid = require('./_uid');\nvar Symbol = require('./_global').Symbol;\nvar USE_SYMBOL = typeof Symbol == 'function';\n\nvar $exports = module.exports = function (name) {\n return store[name] || (store[name] =\n USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));\n};\n\n$exports.store = store;\n"
},
{
"id": 6,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/classCallCheck.js",
"name": "./node_modules/babel-runtime/helpers/classCallCheck.js",
"index": 17,
"index2": 15,
"size": 208,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"issuerId": 89,
"issuerName": "./src/containers/App.jsx",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 89,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"module": "./src/containers/App.jsx",
"moduleName": "./src/containers/App.jsx",
"type": "cjs require",
"userRequest": "babel-runtime/helpers/classCallCheck",
"loc": "8:23-70"
},
{
"moduleId": 124,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"module": "./src/modules/Editor.js",
"moduleName": "./src/modules/Editor.js",
"type": "cjs require",
"userRequest": "babel-runtime/helpers/classCallCheck",
"loc": "12:23-70"
},
{
"moduleId": 126,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Map.js",
"module": "./src/modules/Map.js",
"moduleName": "./src/modules/Map.js",
"type": "cjs require",
"userRequest": "babel-runtime/helpers/classCallCheck",
"loc": "8:23-70"
},
{
"moduleId": 136,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Poly.js",
"module": "./src/modules/Poly.js",
"moduleName": "./src/modules/Poly.js",
"type": "cjs require",
"userRequest": "babel-runtime/helpers/classCallCheck",
"loc": "12:23-70"
},
{
"moduleId": 144,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Stickers.js",
"module": "./src/modules/Stickers.js",
"moduleName": "./src/modules/Stickers.js",
"type": "cjs require",
"userRequest": "babel-runtime/helpers/classCallCheck",
"loc": "8:23-70"
},
{
"moduleId": 145,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Sticker.js",
"module": "./src/modules/Sticker.js",
"moduleName": "./src/modules/Sticker.js",
"type": "cjs require",
"userRequest": "babel-runtime/helpers/classCallCheck",
"loc": "8:23-70"
},
{
"moduleId": 146,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"module": "./src/modules/Router.js",
"moduleName": "./src/modules/Router.js",
"type": "cjs require",
"userRequest": "babel-runtime/helpers/classCallCheck",
"loc": "16:23-70"
},
{
"moduleId": 167,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Shotter.js",
"module": "./src/modules/Shotter.js",
"moduleName": "./src/modules/Shotter.js",
"type": "cjs require",
"userRequest": "babel-runtime/helpers/classCallCheck",
"loc": "8:23-70"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 2,
"source": "\"use strict\";\n\nexports.__esModule = true;\n\nexports.default = function (instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n};"
},
{
"id": 7,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/createClass.js",
"name": "./node_modules/babel-runtime/helpers/createClass.js",
"index": 18,
"index2": 35,
"size": 904,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"issuerId": 89,
"issuerName": "./src/containers/App.jsx",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 89,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"module": "./src/containers/App.jsx",
"moduleName": "./src/containers/App.jsx",
"type": "cjs require",
"userRequest": "babel-runtime/helpers/createClass",
"loc": "12:20-64"
},
{
"moduleId": 124,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"module": "./src/modules/Editor.js",
"moduleName": "./src/modules/Editor.js",
"type": "cjs require",
"userRequest": "babel-runtime/helpers/createClass",
"loc": "16:20-64"
},
{
"moduleId": 126,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Map.js",
"module": "./src/modules/Map.js",
"moduleName": "./src/modules/Map.js",
"type": "cjs require",
"userRequest": "babel-runtime/helpers/createClass",
"loc": "12:20-64"
},
{
"moduleId": 136,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Poly.js",
"module": "./src/modules/Poly.js",
"moduleName": "./src/modules/Poly.js",
"type": "cjs require",
"userRequest": "babel-runtime/helpers/createClass",
"loc": "16:20-64"
},
{
"moduleId": 144,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Stickers.js",
"module": "./src/modules/Stickers.js",
"moduleName": "./src/modules/Stickers.js",
"type": "cjs require",
"userRequest": "babel-runtime/helpers/createClass",
"loc": "12:20-64"
},
{
"moduleId": 145,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Sticker.js",
"module": "./src/modules/Sticker.js",
"moduleName": "./src/modules/Sticker.js",
"type": "cjs require",
"userRequest": "babel-runtime/helpers/createClass",
"loc": "12:20-64"
},
{
"moduleId": 146,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"module": "./src/modules/Router.js",
"moduleName": "./src/modules/Router.js",
"type": "cjs require",
"userRequest": "babel-runtime/helpers/createClass",
"loc": "20:20-64"
},
{
"moduleId": 167,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Shotter.js",
"module": "./src/modules/Shotter.js",
"moduleName": "./src/modules/Shotter.js",
"type": "cjs require",
"userRequest": "babel-runtime/helpers/createClass",
"loc": "12:20-64"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 2,
"source": "\"use strict\";\n\nexports.__esModule = true;\n\nvar _defineProperty = require(\"../core-js/object/define-property\");\n\nvar _defineProperty2 = _interopRequireDefault(_defineProperty);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n (0, _defineProperty2.default)(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();"
},
{
"id": 8,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_global.js",
"name": "./node_modules/core-js/library/modules/_global.js",
"index": 23,
"index2": 16,
"size": 369,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/web.dom.iterable.js",
"issuerId": 37,
"issuerName": "./node_modules/core-js/library/modules/web.dom.iterable.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 93,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"name": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"
},
{
"id": 54,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"name": "./node_modules/babel-runtime/helpers/typeof.js"
},
{
"id": 94,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol/iterator.js",
"name": "./node_modules/babel-runtime/core-js/symbol/iterator.js"
},
{
"id": 95,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/iterator.js",
"name": "./node_modules/core-js/library/fn/symbol/iterator.js"
},
{
"id": 37,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/web.dom.iterable.js",
"name": "./node_modules/core-js/library/modules/web.dom.iterable.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 5,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_wks.js",
"module": "./node_modules/core-js/library/modules/_wks.js",
"moduleName": "./node_modules/core-js/library/modules/_wks.js",
"type": "cjs require",
"userRequest": "./_global",
"loc": "3:13-33"
},
{
"moduleId": 10,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_export.js",
"module": "./node_modules/core-js/library/modules/_export.js",
"moduleName": "./node_modules/core-js/library/modules/_export.js",
"type": "cjs require",
"userRequest": "./_global",
"loc": "1:13-33"
},
{
"moduleId": 33,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_shared.js",
"module": "./node_modules/core-js/library/modules/_shared.js",
"moduleName": "./node_modules/core-js/library/modules/_shared.js",
"type": "cjs require",
"userRequest": "./_global",
"loc": "2:13-33"
},
{
"moduleId": 37,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/web.dom.iterable.js",
"module": "./node_modules/core-js/library/modules/web.dom.iterable.js",
"moduleName": "./node_modules/core-js/library/modules/web.dom.iterable.js",
"type": "cjs require",
"userRequest": "./_global",
"loc": "2:13-33"
},
{
"moduleId": 39,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_wks-define.js",
"module": "./node_modules/core-js/library/modules/_wks-define.js",
"moduleName": "./node_modules/core-js/library/modules/_wks-define.js",
"type": "cjs require",
"userRequest": "./_global",
"loc": "1:13-33"
},
{
"moduleId": 53,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_dom-create.js",
"module": "./node_modules/core-js/library/modules/_dom-create.js",
"moduleName": "./node_modules/core-js/library/modules/_dom-create.js",
"type": "cjs require",
"userRequest": "./_global",
"loc": "2:15-35"
},
{
"moduleId": 101,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_html.js",
"module": "./node_modules/core-js/library/modules/_html.js",
"moduleName": "./node_modules/core-js/library/modules/_html.js",
"type": "cjs require",
"userRequest": "./_global",
"loc": "1:15-35"
},
{
"moduleId": 108,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"module": "./node_modules/core-js/library/modules/es6.symbol.js",
"moduleName": "./node_modules/core-js/library/modules/es6.symbol.js",
"type": "cjs require",
"userRequest": "./_global",
"loc": "3:13-33"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nvar global = module.exports = typeof window != 'undefined' && window.Math == Math\n ? window : typeof self != 'undefined' && self.Math == Math ? self\n // eslint-disable-next-line no-new-func\n : Function('return this')();\nif (typeof __g == 'number') __g = global; // eslint-disable-line no-undef\n"
},
{
"id": 9,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-dp.js",
"name": "./node_modules/core-js/library/modules/_object-dp.js",
"index": 28,
"index2": 27,
"size": 600,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.object.define-property.js",
"issuerId": 91,
"issuerName": "./node_modules/core-js/library/modules/es6.object.define-property.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 7,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/createClass.js",
"name": "./node_modules/babel-runtime/helpers/createClass.js"
},
{
"id": 51,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/object/define-property.js",
"name": "./node_modules/babel-runtime/core-js/object/define-property.js"
},
{
"id": 90,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/object/define-property.js",
"name": "./node_modules/core-js/library/fn/object/define-property.js"
},
{
"id": 91,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.object.define-property.js",
"name": "./node_modules/core-js/library/modules/es6.object.define-property.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 14,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_hide.js",
"module": "./node_modules/core-js/library/modules/_hide.js",
"moduleName": "./node_modules/core-js/library/modules/_hide.js",
"type": "cjs require",
"userRequest": "./_object-dp",
"loc": "1:9-32"
},
{
"moduleId": 35,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_set-to-string-tag.js",
"module": "./node_modules/core-js/library/modules/_set-to-string-tag.js",
"moduleName": "./node_modules/core-js/library/modules/_set-to-string-tag.js",
"type": "cjs require",
"userRequest": "./_object-dp",
"loc": "1:10-33"
},
{
"moduleId": 39,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_wks-define.js",
"module": "./node_modules/core-js/library/modules/_wks-define.js",
"moduleName": "./node_modules/core-js/library/modules/_wks-define.js",
"type": "cjs require",
"userRequest": "./_object-dp",
"loc": "5:21-44"
},
{
"moduleId": 91,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.object.define-property.js",
"module": "./node_modules/core-js/library/modules/es6.object.define-property.js",
"moduleName": "./node_modules/core-js/library/modules/es6.object.define-property.js",
"type": "cjs require",
"userRequest": "./_object-dp",
"loc": "3:88-111"
},
{
"moduleId": 98,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-dps.js",
"module": "./node_modules/core-js/library/modules/_object-dps.js",
"moduleName": "./node_modules/core-js/library/modules/_object-dps.js",
"type": "cjs require",
"userRequest": "./_object-dp",
"loc": "1:9-32"
},
{
"moduleId": 108,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"module": "./node_modules/core-js/library/modules/es6.symbol.js",
"moduleName": "./node_modules/core-js/library/modules/es6.symbol.js",
"type": "cjs require",
"userRequest": "./_object-dp",
"loc": "26:10-33"
},
{
"moduleId": 109,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_meta.js",
"module": "./node_modules/core-js/library/modules/_meta.js",
"moduleName": "./node_modules/core-js/library/modules/_meta.js",
"type": "cjs require",
"userRequest": "./_object-dp",
"loc": "4:14-37"
},
{
"moduleId": 158,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_create-property.js",
"module": "./node_modules/core-js/library/modules/_create-property.js",
"moduleName": "./node_modules/core-js/library/modules/_create-property.js",
"type": "cjs require",
"userRequest": "./_object-dp",
"loc": "2:22-45"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 6,
"source": "var anObject = require('./_an-object');\nvar IE8_DOM_DEFINE = require('./_ie8-dom-define');\nvar toPrimitive = require('./_to-primitive');\nvar dP = Object.defineProperty;\n\nexports.f = require('./_descriptors') ? Object.defineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPrimitive(P, true);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return dP(O, P, Attributes);\n } catch (e) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n"
},
{
"id": 10,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_export.js",
"name": "./node_modules/core-js/library/modules/_export.js",
"index": 22,
"index2": 31,
"size": 2349,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.object.set-prototype-of.js",
"issuerId": 119,
"issuerName": "./node_modules/core-js/library/modules/es6.object.set-prototype-of.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 116,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/inherits.js",
"name": "./node_modules/babel-runtime/helpers/inherits.js"
},
{
"id": 117,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/object/set-prototype-of.js",
"name": "./node_modules/babel-runtime/core-js/object/set-prototype-of.js"
},
{
"id": 118,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/object/set-prototype-of.js",
"name": "./node_modules/core-js/library/fn/object/set-prototype-of.js"
},
{
"id": 119,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.object.set-prototype-of.js",
"name": "./node_modules/core-js/library/modules/es6.object.set-prototype-of.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 55,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_iter-define.js",
"module": "./node_modules/core-js/library/modules/_iter-define.js",
"moduleName": "./node_modules/core-js/library/modules/_iter-define.js",
"type": "cjs require",
"userRequest": "./_export",
"loc": "3:14-34"
},
{
"moduleId": 91,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.object.define-property.js",
"module": "./node_modules/core-js/library/modules/es6.object.define-property.js",
"moduleName": "./node_modules/core-js/library/modules/es6.object.define-property.js",
"type": "cjs require",
"userRequest": "./_export",
"loc": "1:14-34"
},
{
"moduleId": 108,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"module": "./node_modules/core-js/library/modules/es6.symbol.js",
"moduleName": "./node_modules/core-js/library/modules/es6.symbol.js",
"type": "cjs require",
"userRequest": "./_export",
"loc": "6:14-34"
},
{
"moduleId": 119,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.object.set-prototype-of.js",
"module": "./node_modules/core-js/library/modules/es6.object.set-prototype-of.js",
"moduleName": "./node_modules/core-js/library/modules/es6.object.set-prototype-of.js",
"type": "cjs require",
"userRequest": "./_export",
"loc": "2:14-34"
},
{
"moduleId": 123,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.object.create.js",
"module": "./node_modules/core-js/library/modules/es6.object.create.js",
"moduleName": "./node_modules/core-js/library/modules/es6.object.create.js",
"type": "cjs require",
"userRequest": "./_export",
"loc": "1:14-34"
},
{
"moduleId": 150,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.object.assign.js",
"module": "./node_modules/core-js/library/modules/es6.object.assign.js",
"moduleName": "./node_modules/core-js/library/modules/es6.object.assign.js",
"type": "cjs require",
"userRequest": "./_export",
"loc": "2:14-34"
},
{
"moduleId": 155,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.array.from.js",
"module": "./node_modules/core-js/library/modules/es6.array.from.js",
"moduleName": "./node_modules/core-js/library/modules/es6.array.from.js",
"type": "cjs require",
"userRequest": "./_export",
"loc": "3:14-34"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 6,
"source": "var global = require('./_global');\nvar core = require('./_core');\nvar ctx = require('./_ctx');\nvar hide = require('./_hide');\nvar has = require('./_has');\nvar PROTOTYPE = 'prototype';\n\nvar $export = function (type, name, source) {\n var IS_FORCED = type & $export.F;\n var IS_GLOBAL = type & $export.G;\n var IS_STATIC = type & $export.S;\n var IS_PROTO = type & $export.P;\n var IS_BIND = type & $export.B;\n var IS_WRAP = type & $export.W;\n var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});\n var expProto = exports[PROTOTYPE];\n var target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE];\n var key, own, out;\n if (IS_GLOBAL) source = name;\n for (key in source) {\n // contains in native\n own = !IS_FORCED && target && target[key] !== undefined;\n if (own && has(exports, key)) continue;\n // export native or passed\n out = own ? target[key] : source[key];\n // prevent global pollution for namespaces\n exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key]\n // bind timers to global for call from export context\n : IS_BIND && own ? ctx(out, global)\n // wrap global constructors for prevent change them in library\n : IS_WRAP && target[key] == out ? (function (C) {\n var F = function (a, b, c) {\n if (this instanceof C) {\n switch (arguments.length) {\n case 0: return new C();\n case 1: return new C(a);\n case 2: return new C(a, b);\n } return new C(a, b, c);\n } return C.apply(this, arguments);\n };\n F[PROTOTYPE] = C[PROTOTYPE];\n return F;\n // make static versions for prototype methods\n })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;\n // export proto methods to core.%CONSTRUCTOR%.methods.%NAME%\n if (IS_PROTO) {\n (exports.virtual || (exports.virtual = {}))[key] = out;\n // export proto methods to core.%CONSTRUCTOR%.prototype.%NAME%\n if (type & $export.R && expProto && !expProto[key]) hide(expProto, key, out);\n }\n }\n};\n// type bitmap\n$export.F = 1; // forced\n$export.G = 2; // global\n$export.S = 4; // static\n$export.P = 8; // proto\n$export.B = 16; // bind\n$export.W = 32; // wrap\n$export.U = 64; // safe\n$export.R = 128; // real proto method for `library`\nmodule.exports = $export;\n"
},
{
"id": 11,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_an-object.js",
"name": "./node_modules/core-js/library/modules/_an-object.js",
"index": 29,
"index2": 21,
"size": 154,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/core.get-iterator.js",
"issuerId": 143,
"issuerName": "./node_modules/core-js/library/modules/core.get-iterator.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 136,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Poly.js",
"name": "./src/modules/Poly.js"
},
{
"id": 137,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/slicedToArray.js",
"name": "./node_modules/babel-runtime/helpers/slicedToArray.js"
},
{
"id": 141,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/get-iterator.js",
"name": "./node_modules/babel-runtime/core-js/get-iterator.js"
},
{
"id": 142,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/get-iterator.js",
"name": "./node_modules/core-js/library/fn/get-iterator.js"
},
{
"id": 143,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/core.get-iterator.js",
"name": "./node_modules/core-js/library/modules/core.get-iterator.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 9,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-dp.js",
"module": "./node_modules/core-js/library/modules/_object-dp.js",
"moduleName": "./node_modules/core-js/library/modules/_object-dp.js",
"type": "cjs require",
"userRequest": "./_an-object",
"loc": "1:15-38"
},
{
"moduleId": 30,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-create.js",
"module": "./node_modules/core-js/library/modules/_object-create.js",
"moduleName": "./node_modules/core-js/library/modules/_object-create.js",
"type": "cjs require",
"userRequest": "./_an-object",
"loc": "2:15-38"
},
{
"moduleId": 98,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-dps.js",
"module": "./node_modules/core-js/library/modules/_object-dps.js",
"moduleName": "./node_modules/core-js/library/modules/_object-dps.js",
"type": "cjs require",
"userRequest": "./_an-object",
"loc": "2:15-38"
},
{
"moduleId": 108,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"module": "./node_modules/core-js/library/modules/es6.symbol.js",
"moduleName": "./node_modules/core-js/library/modules/es6.symbol.js",
"type": "cjs require",
"userRequest": "./_an-object",
"loc": "18:15-38"
},
{
"moduleId": 120,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_set-proto.js",
"module": "./node_modules/core-js/library/modules/_set-proto.js",
"moduleName": "./node_modules/core-js/library/modules/_set-proto.js",
"type": "cjs require",
"userRequest": "./_an-object",
"loc": "4:15-38"
},
{
"moduleId": 143,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/core.get-iterator.js",
"module": "./node_modules/core-js/library/modules/core.get-iterator.js",
"moduleName": "./node_modules/core-js/library/modules/core.get-iterator.js",
"type": "cjs require",
"userRequest": "./_an-object",
"loc": "1:15-38"
},
{
"moduleId": 156,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_iter-call.js",
"module": "./node_modules/core-js/library/modules/_iter-call.js",
"moduleName": "./node_modules/core-js/library/modules/_iter-call.js",
"type": "cjs require",
"userRequest": "./_an-object",
"loc": "2:15-38"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "var isObject = require('./_is-object');\nmodule.exports = function (it) {\n if (!isObject(it)) throw TypeError(it + ' is not an object!');\n return it;\n};\n"
},
{
"id": 12,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_descriptors.js",
"name": "./node_modules/core-js/library/modules/_descriptors.js",
"index": 32,
"index2": 23,
"size": 184,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.object.define-property.js",
"issuerId": 91,
"issuerName": "./node_modules/core-js/library/modules/es6.object.define-property.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 7,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/createClass.js",
"name": "./node_modules/babel-runtime/helpers/createClass.js"
},
{
"id": 51,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/object/define-property.js",
"name": "./node_modules/babel-runtime/core-js/object/define-property.js"
},
{
"id": 90,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/object/define-property.js",
"name": "./node_modules/core-js/library/fn/object/define-property.js"
},
{
"id": 91,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.object.define-property.js",
"name": "./node_modules/core-js/library/modules/es6.object.define-property.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 9,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-dp.js",
"module": "./node_modules/core-js/library/modules/_object-dp.js",
"moduleName": "./node_modules/core-js/library/modules/_object-dp.js",
"type": "cjs require",
"userRequest": "./_descriptors",
"loc": "6:12-37"
},
{
"moduleId": 14,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_hide.js",
"module": "./node_modules/core-js/library/modules/_hide.js",
"moduleName": "./node_modules/core-js/library/modules/_hide.js",
"type": "cjs require",
"userRequest": "./_descriptors",
"loc": "3:17-42"
},
{
"moduleId": 52,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_ie8-dom-define.js",
"module": "./node_modules/core-js/library/modules/_ie8-dom-define.js",
"moduleName": "./node_modules/core-js/library/modules/_ie8-dom-define.js",
"type": "cjs require",
"userRequest": "./_descriptors",
"loc": "1:18-43"
},
{
"moduleId": 61,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-gopd.js",
"module": "./node_modules/core-js/library/modules/_object-gopd.js",
"moduleName": "./node_modules/core-js/library/modules/_object-gopd.js",
"type": "cjs require",
"userRequest": "./_descriptors",
"loc": "9:12-37"
},
{
"moduleId": 91,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.object.define-property.js",
"module": "./node_modules/core-js/library/modules/es6.object.define-property.js",
"moduleName": "./node_modules/core-js/library/modules/es6.object.define-property.js",
"type": "cjs require",
"userRequest": "./_descriptors",
"loc": "3:33-58"
},
{
"moduleId": 98,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-dps.js",
"module": "./node_modules/core-js/library/modules/_object-dps.js",
"moduleName": "./node_modules/core-js/library/modules/_object-dps.js",
"type": "cjs require",
"userRequest": "./_descriptors",
"loc": "5:17-42"
},
{
"moduleId": 108,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"module": "./node_modules/core-js/library/modules/es6.symbol.js",
"moduleName": "./node_modules/core-js/library/modules/es6.symbol.js",
"type": "cjs require",
"userRequest": "./_descriptors",
"loc": "5:18-43"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 6,
"source": "// Thank's IE8 for his funny defineProperty\nmodule.exports = !require('./_fails')(function () {\n return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;\n});\n"
},
{
"id": 13,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_has.js",
"name": "./node_modules/core-js/library/modules/_has.js",
"index": 37,
"index2": 30,
"size": 120,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_export.js",
"issuerId": 10,
"issuerName": "./node_modules/core-js/library/modules/_export.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 116,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/inherits.js",
"name": "./node_modules/babel-runtime/helpers/inherits.js"
},
{
"id": 117,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/object/set-prototype-of.js",
"name": "./node_modules/babel-runtime/core-js/object/set-prototype-of.js"
},
{
"id": 118,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/object/set-prototype-of.js",
"name": "./node_modules/core-js/library/fn/object/set-prototype-of.js"
},
{
"id": 119,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.object.set-prototype-of.js",
"name": "./node_modules/core-js/library/modules/es6.object.set-prototype-of.js"
},
{
"id": 10,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_export.js",
"name": "./node_modules/core-js/library/modules/_export.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 10,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_export.js",
"module": "./node_modules/core-js/library/modules/_export.js",
"moduleName": "./node_modules/core-js/library/modules/_export.js",
"type": "cjs require",
"userRequest": "./_has",
"loc": "5:10-27"
},
{
"moduleId": 35,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_set-to-string-tag.js",
"module": "./node_modules/core-js/library/modules/_set-to-string-tag.js",
"moduleName": "./node_modules/core-js/library/modules/_set-to-string-tag.js",
"type": "cjs require",
"userRequest": "./_has",
"loc": "2:10-27"
},
{
"moduleId": 57,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-keys-internal.js",
"module": "./node_modules/core-js/library/modules/_object-keys-internal.js",
"moduleName": "./node_modules/core-js/library/modules/_object-keys-internal.js",
"type": "cjs require",
"userRequest": "./_has",
"loc": "1:10-27"
},
{
"moduleId": 61,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-gopd.js",
"module": "./node_modules/core-js/library/modules/_object-gopd.js",
"moduleName": "./node_modules/core-js/library/modules/_object-gopd.js",
"type": "cjs require",
"userRequest": "./_has",
"loc": "5:10-27"
},
{
"moduleId": 102,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-gpo.js",
"module": "./node_modules/core-js/library/modules/_object-gpo.js",
"moduleName": "./node_modules/core-js/library/modules/_object-gpo.js",
"type": "cjs require",
"userRequest": "./_has",
"loc": "2:10-27"
},
{
"moduleId": 108,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"module": "./node_modules/core-js/library/modules/es6.symbol.js",
"moduleName": "./node_modules/core-js/library/modules/es6.symbol.js",
"type": "cjs require",
"userRequest": "./_has",
"loc": "4:10-27"
},
{
"moduleId": 109,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_meta.js",
"module": "./node_modules/core-js/library/modules/_meta.js",
"moduleName": "./node_modules/core-js/library/modules/_meta.js",
"type": "cjs require",
"userRequest": "./_has",
"loc": "3:10-27"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "var hasOwnProperty = {}.hasOwnProperty;\nmodule.exports = function (it, key) {\n return hasOwnProperty.call(it, key);\n};\n"
},
{
"id": 14,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_hide.js",
"name": "./node_modules/core-js/library/modules/_hide.js",
"index": 27,
"index2": 29,
"size": 286,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/web.dom.iterable.js",
"issuerId": 37,
"issuerName": "./node_modules/core-js/library/modules/web.dom.iterable.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 93,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"name": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"
},
{
"id": 54,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"name": "./node_modules/babel-runtime/helpers/typeof.js"
},
{
"id": 94,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol/iterator.js",
"name": "./node_modules/babel-runtime/core-js/symbol/iterator.js"
},
{
"id": 95,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/iterator.js",
"name": "./node_modules/core-js/library/fn/symbol/iterator.js"
},
{
"id": 37,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/web.dom.iterable.js",
"name": "./node_modules/core-js/library/modules/web.dom.iterable.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 10,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_export.js",
"module": "./node_modules/core-js/library/modules/_export.js",
"moduleName": "./node_modules/core-js/library/modules/_export.js",
"type": "cjs require",
"userRequest": "./_hide",
"loc": "4:11-29"
},
{
"moduleId": 37,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/web.dom.iterable.js",
"module": "./node_modules/core-js/library/modules/web.dom.iterable.js",
"moduleName": "./node_modules/core-js/library/modules/web.dom.iterable.js",
"type": "cjs require",
"userRequest": "./_hide",
"loc": "3:11-29"
},
{
"moduleId": 55,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_iter-define.js",
"module": "./node_modules/core-js/library/modules/_iter-define.js",
"moduleName": "./node_modules/core-js/library/modules/_iter-define.js",
"type": "cjs require",
"userRequest": "./_hide",
"loc": "5:11-29"
},
{
"moduleId": 56,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_redefine.js",
"module": "./node_modules/core-js/library/modules/_redefine.js",
"moduleName": "./node_modules/core-js/library/modules/_redefine.js",
"type": "cjs require",
"userRequest": "./_hide",
"loc": "1:17-35"
},
{
"moduleId": 97,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_iter-create.js",
"module": "./node_modules/core-js/library/modules/_iter-create.js",
"moduleName": "./node_modules/core-js/library/modules/_iter-create.js",
"type": "cjs require",
"userRequest": "./_hide",
"loc": "8:0-18"
},
{
"moduleId": 108,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"module": "./node_modules/core-js/library/modules/es6.symbol.js",
"moduleName": "./node_modules/core-js/library/modules/es6.symbol.js",
"type": "cjs require",
"userRequest": "./_hide",
"loc": "228:36-54"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "var dP = require('./_object-dp');\nvar createDesc = require('./_property-desc');\nmodule.exports = require('./_descriptors') ? function (object, key, value) {\n return dP.f(object, key, createDesc(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n"
},
{
"id": 15,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_is-object.js",
"name": "./node_modules/core-js/library/modules/_is-object.js",
"index": 30,
"index2": 20,
"size": 110,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_set-proto.js",
"issuerId": 120,
"issuerName": "./node_modules/core-js/library/modules/_set-proto.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 116,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/inherits.js",
"name": "./node_modules/babel-runtime/helpers/inherits.js"
},
{
"id": 117,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/object/set-prototype-of.js",
"name": "./node_modules/babel-runtime/core-js/object/set-prototype-of.js"
},
{
"id": 118,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/object/set-prototype-of.js",
"name": "./node_modules/core-js/library/fn/object/set-prototype-of.js"
},
{
"id": 119,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.object.set-prototype-of.js",
"name": "./node_modules/core-js/library/modules/es6.object.set-prototype-of.js"
},
{
"id": 120,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_set-proto.js",
"name": "./node_modules/core-js/library/modules/_set-proto.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 11,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_an-object.js",
"module": "./node_modules/core-js/library/modules/_an-object.js",
"moduleName": "./node_modules/core-js/library/modules/_an-object.js",
"type": "cjs require",
"userRequest": "./_is-object",
"loc": "1:15-38"
},
{
"moduleId": 27,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_to-primitive.js",
"module": "./node_modules/core-js/library/modules/_to-primitive.js",
"moduleName": "./node_modules/core-js/library/modules/_to-primitive.js",
"type": "cjs require",
"userRequest": "./_is-object",
"loc": "2:15-38"
},
{
"moduleId": 53,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_dom-create.js",
"module": "./node_modules/core-js/library/modules/_dom-create.js",
"moduleName": "./node_modules/core-js/library/modules/_dom-create.js",
"type": "cjs require",
"userRequest": "./_is-object",
"loc": "1:15-38"
},
{
"moduleId": 108,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"module": "./node_modules/core-js/library/modules/es6.symbol.js",
"moduleName": "./node_modules/core-js/library/modules/es6.symbol.js",
"type": "cjs require",
"userRequest": "./_is-object",
"loc": "19:15-38"
},
{
"moduleId": 109,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_meta.js",
"module": "./node_modules/core-js/library/modules/_meta.js",
"moduleName": "./node_modules/core-js/library/modules/_meta.js",
"type": "cjs require",
"userRequest": "./_is-object",
"loc": "2:15-38"
},
{
"moduleId": 120,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_set-proto.js",
"module": "./node_modules/core-js/library/modules/_set-proto.js",
"moduleName": "./node_modules/core-js/library/modules/_set-proto.js",
"type": "cjs require",
"userRequest": "./_is-object",
"loc": "3:15-38"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "module.exports = function (it) {\n return typeof it === 'object' ? it !== null : typeof it === 'function';\n};\n"
},
{
"id": 16,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_iterators.js",
"name": "./node_modules/core-js/library/modules/_iterators.js",
"index": 49,
"index2": 41,
"size": 21,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/web.dom.iterable.js",
"issuerId": 37,
"issuerName": "./node_modules/core-js/library/modules/web.dom.iterable.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 93,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"name": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"
},
{
"id": 54,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"name": "./node_modules/babel-runtime/helpers/typeof.js"
},
{
"id": 94,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol/iterator.js",
"name": "./node_modules/babel-runtime/core-js/symbol/iterator.js"
},
{
"id": 95,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/iterator.js",
"name": "./node_modules/core-js/library/fn/symbol/iterator.js"
},
{
"id": 37,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/web.dom.iterable.js",
"name": "./node_modules/core-js/library/modules/web.dom.iterable.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 37,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/web.dom.iterable.js",
"module": "./node_modules/core-js/library/modules/web.dom.iterable.js",
"moduleName": "./node_modules/core-js/library/modules/web.dom.iterable.js",
"type": "cjs require",
"userRequest": "./_iterators",
"loc": "4:16-39"
},
{
"moduleId": 55,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_iter-define.js",
"module": "./node_modules/core-js/library/modules/_iter-define.js",
"moduleName": "./node_modules/core-js/library/modules/_iter-define.js",
"type": "cjs require",
"userRequest": "./_iterators",
"loc": "6:16-39"
},
{
"moduleId": 64,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/core.get-iterator-method.js",
"module": "./node_modules/core-js/library/modules/core.get-iterator-method.js",
"moduleName": "./node_modules/core-js/library/modules/core.get-iterator-method.js",
"type": "cjs require",
"userRequest": "./_iterators",
"loc": "3:16-39"
},
{
"moduleId": 103,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.array.iterator.js",
"module": "./node_modules/core-js/library/modules/es6.array.iterator.js",
"moduleName": "./node_modules/core-js/library/modules/es6.array.iterator.js",
"type": "cjs require",
"userRequest": "./_iterators",
"loc": "4:16-39"
},
{
"moduleId": 140,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/core.is-iterable.js",
"module": "./node_modules/core-js/library/modules/core.is-iterable.js",
"moduleName": "./node_modules/core-js/library/modules/core.is-iterable.js",
"type": "cjs require",
"userRequest": "./_iterators",
"loc": "3:16-39"
},
{
"moduleId": 157,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_is-array-iter.js",
"module": "./node_modules/core-js/library/modules/_is-array-iter.js",
"moduleName": "./node_modules/core-js/library/modules/_is-array-iter.js",
"type": "cjs require",
"userRequest": "./_iterators",
"loc": "2:16-39"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "module.exports = {};\n"
},
{
"id": 17,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_to-iobject.js",
"name": "./node_modules/core-js/library/modules/_to-iobject.js",
"index": 55,
"index2": 44,
"size": 217,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.array.iterator.js",
"issuerId": 103,
"issuerName": "./node_modules/core-js/library/modules/es6.array.iterator.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 93,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"name": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"
},
{
"id": 54,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"name": "./node_modules/babel-runtime/helpers/typeof.js"
},
{
"id": 94,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol/iterator.js",
"name": "./node_modules/babel-runtime/core-js/symbol/iterator.js"
},
{
"id": 95,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/iterator.js",
"name": "./node_modules/core-js/library/fn/symbol/iterator.js"
},
{
"id": 37,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/web.dom.iterable.js",
"name": "./node_modules/core-js/library/modules/web.dom.iterable.js"
},
{
"id": 103,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.array.iterator.js",
"name": "./node_modules/core-js/library/modules/es6.array.iterator.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 57,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-keys-internal.js",
"module": "./node_modules/core-js/library/modules/_object-keys-internal.js",
"moduleName": "./node_modules/core-js/library/modules/_object-keys-internal.js",
"type": "cjs require",
"userRequest": "./_to-iobject",
"loc": "2:16-40"
},
{
"moduleId": 61,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-gopd.js",
"module": "./node_modules/core-js/library/modules/_object-gopd.js",
"moduleName": "./node_modules/core-js/library/modules/_object-gopd.js",
"type": "cjs require",
"userRequest": "./_to-iobject",
"loc": "3:16-40"
},
{
"moduleId": 99,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_array-includes.js",
"module": "./node_modules/core-js/library/modules/_array-includes.js",
"moduleName": "./node_modules/core-js/library/modules/_array-includes.js",
"type": "cjs require",
"userRequest": "./_to-iobject",
"loc": "3:16-40"
},
{
"moduleId": 103,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.array.iterator.js",
"module": "./node_modules/core-js/library/modules/es6.array.iterator.js",
"moduleName": "./node_modules/core-js/library/modules/es6.array.iterator.js",
"type": "cjs require",
"userRequest": "./_to-iobject",
"loc": "5:16-40"
},
{
"moduleId": 108,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"module": "./node_modules/core-js/library/modules/es6.symbol.js",
"moduleName": "./node_modules/core-js/library/modules/es6.symbol.js",
"type": "cjs require",
"userRequest": "./_to-iobject",
"loc": "20:16-40"
},
{
"moduleId": 112,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-gopn-ext.js",
"module": "./node_modules/core-js/library/modules/_object-gopn-ext.js",
"moduleName": "./node_modules/core-js/library/modules/_object-gopn-ext.js",
"type": "cjs require",
"userRequest": "./_to-iobject",
"loc": "2:16-40"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "// to indexed object, toObject with fallback for non-array-like ES3 strings\nvar IObject = require('./_iobject');\nvar defined = require('./_defined');\nmodule.exports = function (it) {\n return IObject(defined(it));\n};\n"
},
{
"id": 18,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_fails.js",
"name": "./node_modules/core-js/library/modules/_fails.js",
"index": 33,
"index2": 22,
"size": 104,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_descriptors.js",
"issuerId": 12,
"issuerName": "./node_modules/core-js/library/modules/_descriptors.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 7,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/createClass.js",
"name": "./node_modules/babel-runtime/helpers/createClass.js"
},
{
"id": 51,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/object/define-property.js",
"name": "./node_modules/babel-runtime/core-js/object/define-property.js"
},
{
"id": 90,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/object/define-property.js",
"name": "./node_modules/core-js/library/fn/object/define-property.js"
},
{
"id": 91,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.object.define-property.js",
"name": "./node_modules/core-js/library/modules/es6.object.define-property.js"
},
{
"id": 12,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_descriptors.js",
"name": "./node_modules/core-js/library/modules/_descriptors.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 12,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_descriptors.js",
"module": "./node_modules/core-js/library/modules/_descriptors.js",
"moduleName": "./node_modules/core-js/library/modules/_descriptors.js",
"type": "cjs require",
"userRequest": "./_fails",
"loc": "2:18-37"
},
{
"moduleId": 52,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_ie8-dom-define.js",
"module": "./node_modules/core-js/library/modules/_ie8-dom-define.js",
"moduleName": "./node_modules/core-js/library/modules/_ie8-dom-define.js",
"type": "cjs require",
"userRequest": "./_fails",
"loc": "1:48-67"
},
{
"moduleId": 108,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"module": "./node_modules/core-js/library/modules/es6.symbol.js",
"moduleName": "./node_modules/core-js/library/modules/es6.symbol.js",
"type": "cjs require",
"userRequest": "./_fails",
"loc": "9:13-32"
},
{
"moduleId": 109,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_meta.js",
"module": "./node_modules/core-js/library/modules/_meta.js",
"moduleName": "./node_modules/core-js/library/modules/_meta.js",
"type": "cjs require",
"userRequest": "./_fails",
"loc": "9:14-33"
},
{
"moduleId": 151,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-assign.js",
"module": "./node_modules/core-js/library/modules/_object-assign.js",
"moduleName": "./node_modules/core-js/library/modules/_object-assign.js",
"type": "cjs require",
"userRequest": "./_fails",
"loc": "11:29-48"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "module.exports = function (exec) {\n try {\n return !!exec();\n } catch (e) {\n return true;\n }\n};\n"
},
{
"id": 19,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_property-desc.js",
"name": "./node_modules/core-js/library/modules/_property-desc.js",
"index": 36,
"index2": 28,
"size": 173,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_hide.js",
"issuerId": 14,
"issuerName": "./node_modules/core-js/library/modules/_hide.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 93,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"name": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"
},
{
"id": 54,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"name": "./node_modules/babel-runtime/helpers/typeof.js"
},
{
"id": 94,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol/iterator.js",
"name": "./node_modules/babel-runtime/core-js/symbol/iterator.js"
},
{
"id": 95,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/iterator.js",
"name": "./node_modules/core-js/library/fn/symbol/iterator.js"
},
{
"id": 37,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/web.dom.iterable.js",
"name": "./node_modules/core-js/library/modules/web.dom.iterable.js"
},
{
"id": 14,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_hide.js",
"name": "./node_modules/core-js/library/modules/_hide.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 14,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_hide.js",
"module": "./node_modules/core-js/library/modules/_hide.js",
"moduleName": "./node_modules/core-js/library/modules/_hide.js",
"type": "cjs require",
"userRequest": "./_property-desc",
"loc": "2:17-44"
},
{
"moduleId": 61,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-gopd.js",
"module": "./node_modules/core-js/library/modules/_object-gopd.js",
"moduleName": "./node_modules/core-js/library/modules/_object-gopd.js",
"type": "cjs require",
"userRequest": "./_property-desc",
"loc": "2:17-44"
},
{
"moduleId": 97,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_iter-create.js",
"module": "./node_modules/core-js/library/modules/_iter-create.js",
"moduleName": "./node_modules/core-js/library/modules/_iter-create.js",
"type": "cjs require",
"userRequest": "./_property-desc",
"loc": "3:17-44"
},
{
"moduleId": 108,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"module": "./node_modules/core-js/library/modules/es6.symbol.js",
"moduleName": "./node_modules/core-js/library/modules/es6.symbol.js",
"type": "cjs require",
"userRequest": "./_property-desc",
"loc": "22:17-44"
},
{
"moduleId": 158,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_create-property.js",
"module": "./node_modules/core-js/library/modules/_create-property.js",
"moduleName": "./node_modules/core-js/library/modules/_create-property.js",
"type": "cjs require",
"userRequest": "./_property-desc",
"loc": "3:17-44"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "module.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n"
},
{
"id": 20,
"identifier": "/Users/user/Projects/orchid/node_modules/react/index.js",
"name": "./node_modules/react/index.js",
"index": 2,
"index2": 6,
"size": 190,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"issuerId": 79,
"issuerName": "./src/index.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 79,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"module": "./src/index.js",
"moduleName": "./src/index.js",
"type": "cjs require",
"userRequest": "react",
"loc": "8:13-29"
},
{
"moduleId": 82,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/react-dom/cjs/react-dom.production.min.js",
"module": "./node_modules/react-dom/cjs/react-dom.production.min.js",
"moduleName": "./node_modules/react-dom/cjs/react-dom.production.min.js",
"type": "cjs require",
"userRequest": "react",
"loc": "13:53-69"
},
{
"moduleId": 89,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"module": "./src/containers/App.jsx",
"moduleName": "./src/containers/App.jsx",
"type": "cjs require",
"userRequest": "react",
"loc": "24:13-29"
},
{
"moduleId": 128,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/react-hot-loader/dist/react-hot-loader.production.min.js",
"module": "./node_modules/react-hot-loader/dist/react-hot-loader.production.min.js",
"moduleName": "./node_modules/react-hot-loader/dist/react-hot-loader.production.min.js",
"type": "cjs require",
"userRequest": "react",
"loc": "1:178-194"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 1,
"source": "'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react.production.min.js');\n} else {\n module.exports = require('./cjs/react.development.js');\n}\n"
},
{
"id": 21,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.string.iterator.js",
"name": "./node_modules/core-js/library/modules/es6.string.iterator.js",
"index": 42,
"index2": 63,
"size": 531,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/iterator.js",
"issuerId": 95,
"issuerName": "./node_modules/core-js/library/fn/symbol/iterator.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 93,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"name": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"
},
{
"id": 54,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"name": "./node_modules/babel-runtime/helpers/typeof.js"
},
{
"id": 94,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol/iterator.js",
"name": "./node_modules/babel-runtime/core-js/symbol/iterator.js"
},
{
"id": 95,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/iterator.js",
"name": "./node_modules/core-js/library/fn/symbol/iterator.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 95,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/iterator.js",
"module": "./node_modules/core-js/library/fn/symbol/iterator.js",
"moduleName": "./node_modules/core-js/library/fn/symbol/iterator.js",
"type": "cjs require",
"userRequest": "../../modules/es6.string.iterator",
"loc": "1:0-44"
},
{
"moduleId": 139,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/is-iterable.js",
"module": "./node_modules/core-js/library/fn/is-iterable.js",
"moduleName": "./node_modules/core-js/library/fn/is-iterable.js",
"type": "cjs require",
"userRequest": "../modules/es6.string.iterator",
"loc": "2:0-41"
},
{
"moduleId": 142,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/get-iterator.js",
"module": "./node_modules/core-js/library/fn/get-iterator.js",
"moduleName": "./node_modules/core-js/library/fn/get-iterator.js",
"type": "cjs require",
"userRequest": "../modules/es6.string.iterator",
"loc": "2:0-41"
},
{
"moduleId": 154,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/array/from.js",
"module": "./node_modules/core-js/library/fn/array/from.js",
"moduleName": "./node_modules/core-js/library/fn/array/from.js",
"type": "cjs require",
"userRequest": "../../modules/es6.string.iterator",
"loc": "1:0-44"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 6,
"source": "'use strict';\nvar $at = require('./_string-at')(true);\n\n// 21.1.3.27 String.prototype[@@iterator]()\nrequire('./_iter-define')(String, 'String', function (iterated) {\n this._t = String(iterated); // target\n this._i = 0; // next index\n// 21.1.5.2.1 %StringIteratorPrototype%.next()\n}, function () {\n var O = this._t;\n var index = this._i;\n var point;\n if (index >= O.length) return { value: undefined, done: true };\n point = $at(O, index);\n this._i += point.length;\n return { value: point, done: false };\n});\n"
},
{
"id": 22,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_library.js",
"name": "./node_modules/core-js/library/modules/_library.js",
"index": 47,
"index2": 39,
"size": 23,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_iter-define.js",
"issuerId": 55,
"issuerName": "./node_modules/core-js/library/modules/_iter-define.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 93,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"name": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"
},
{
"id": 54,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"name": "./node_modules/babel-runtime/helpers/typeof.js"
},
{
"id": 94,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol/iterator.js",
"name": "./node_modules/babel-runtime/core-js/symbol/iterator.js"
},
{
"id": 95,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/iterator.js",
"name": "./node_modules/core-js/library/fn/symbol/iterator.js"
},
{
"id": 21,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.string.iterator.js",
"name": "./node_modules/core-js/library/modules/es6.string.iterator.js"
},
{
"id": 55,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_iter-define.js",
"name": "./node_modules/core-js/library/modules/_iter-define.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 33,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_shared.js",
"module": "./node_modules/core-js/library/modules/_shared.js",
"moduleName": "./node_modules/core-js/library/modules/_shared.js",
"type": "cjs require",
"userRequest": "./_library",
"loc": "10:8-29"
},
{
"moduleId": 39,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_wks-define.js",
"module": "./node_modules/core-js/library/modules/_wks-define.js",
"moduleName": "./node_modules/core-js/library/modules/_wks-define.js",
"type": "cjs require",
"userRequest": "./_library",
"loc": "3:14-35"
},
{
"moduleId": 55,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_iter-define.js",
"module": "./node_modules/core-js/library/modules/_iter-define.js",
"moduleName": "./node_modules/core-js/library/modules/_iter-define.js",
"type": "cjs require",
"userRequest": "./_library",
"loc": "2:14-35"
},
{
"moduleId": 108,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"module": "./node_modules/core-js/library/modules/es6.symbol.js",
"moduleName": "./node_modules/core-js/library/modules/es6.symbol.js",
"type": "cjs require",
"userRequest": "./_library",
"loc": "154:22-43"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "module.exports = true;\n"
},
{
"id": 23,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-keys.js",
"name": "./node_modules/core-js/library/modules/_object-keys.js",
"index": 53,
"index2": 53,
"size": 222,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"issuerId": 108,
"issuerName": "./node_modules/core-js/library/modules/es6.symbol.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 93,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"name": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"
},
{
"id": 54,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"name": "./node_modules/babel-runtime/helpers/typeof.js"
},
{
"id": 106,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol.js",
"name": "./node_modules/babel-runtime/core-js/symbol.js"
},
{
"id": 107,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/index.js",
"name": "./node_modules/core-js/library/fn/symbol/index.js"
},
{
"id": 108,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"name": "./node_modules/core-js/library/modules/es6.symbol.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 98,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-dps.js",
"module": "./node_modules/core-js/library/modules/_object-dps.js",
"moduleName": "./node_modules/core-js/library/modules/_object-dps.js",
"type": "cjs require",
"userRequest": "./_object-keys",
"loc": "3:14-39"
},
{
"moduleId": 108,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"module": "./node_modules/core-js/library/modules/es6.symbol.js",
"moduleName": "./node_modules/core-js/library/modules/es6.symbol.js",
"type": "cjs require",
"userRequest": "./_object-keys",
"loc": "27:12-37"
},
{
"moduleId": 110,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_enum-keys.js",
"module": "./node_modules/core-js/library/modules/_enum-keys.js",
"moduleName": "./node_modules/core-js/library/modules/_enum-keys.js",
"type": "cjs require",
"userRequest": "./_object-keys",
"loc": "2:14-39"
},
{
"moduleId": 151,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-assign.js",
"module": "./node_modules/core-js/library/modules/_object-assign.js",
"moduleName": "./node_modules/core-js/library/modules/_object-assign.js",
"type": "cjs require",
"userRequest": "./_object-keys",
"loc": "3:14-39"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "// 19.1.2.14 / 15.2.3.14 Object.keys(O)\nvar $keys = require('./_object-keys-internal');\nvar enumBugKeys = require('./_enum-bug-keys');\n\nmodule.exports = Object.keys || function keys(O) {\n return $keys(O, enumBugKeys);\n};\n"
},
{
"id": 24,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_uid.js",
"name": "./node_modules/core-js/library/modules/_uid.js",
"index": 63,
"index2": 49,
"size": 162,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_wks.js",
"issuerId": 5,
"issuerName": "./node_modules/core-js/library/modules/_wks.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 93,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"name": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"
},
{
"id": 54,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"name": "./node_modules/babel-runtime/helpers/typeof.js"
},
{
"id": 94,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol/iterator.js",
"name": "./node_modules/babel-runtime/core-js/symbol/iterator.js"
},
{
"id": 95,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/iterator.js",
"name": "./node_modules/core-js/library/fn/symbol/iterator.js"
},
{
"id": 37,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/web.dom.iterable.js",
"name": "./node_modules/core-js/library/modules/web.dom.iterable.js"
},
{
"id": 5,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_wks.js",
"name": "./node_modules/core-js/library/modules/_wks.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 5,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_wks.js",
"module": "./node_modules/core-js/library/modules/_wks.js",
"moduleName": "./node_modules/core-js/library/modules/_wks.js",
"type": "cjs require",
"userRequest": "./_uid",
"loc": "2:10-27"
},
{
"moduleId": 32,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_shared-key.js",
"module": "./node_modules/core-js/library/modules/_shared-key.js",
"moduleName": "./node_modules/core-js/library/modules/_shared-key.js",
"type": "cjs require",
"userRequest": "./_uid",
"loc": "2:10-27"
},
{
"moduleId": 108,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"module": "./node_modules/core-js/library/modules/es6.symbol.js",
"moduleName": "./node_modules/core-js/library/modules/es6.symbol.js",
"type": "cjs require",
"userRequest": "./_uid",
"loc": "12:10-27"
},
{
"moduleId": 109,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_meta.js",
"module": "./node_modules/core-js/library/modules/_meta.js",
"moduleName": "./node_modules/core-js/library/modules/_meta.js",
"type": "cjs require",
"userRequest": "./_uid",
"loc": "1:11-28"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "var id = 0;\nvar px = Math.random();\nmodule.exports = function (key) {\n return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));\n};\n"
},
{
"id": 25,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-pie.js",
"name": "./node_modules/core-js/library/modules/_object-pie.js",
"index": 82,
"index2": 74,
"size": 37,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"issuerId": 108,
"issuerName": "./node_modules/core-js/library/modules/es6.symbol.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 93,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"name": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"
},
{
"id": 54,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"name": "./node_modules/babel-runtime/helpers/typeof.js"
},
{
"id": 106,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol.js",
"name": "./node_modules/babel-runtime/core-js/symbol.js"
},
{
"id": 107,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/index.js",
"name": "./node_modules/core-js/library/fn/symbol/index.js"
},
{
"id": 108,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"name": "./node_modules/core-js/library/modules/es6.symbol.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 61,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-gopd.js",
"module": "./node_modules/core-js/library/modules/_object-gopd.js",
"moduleName": "./node_modules/core-js/library/modules/_object-gopd.js",
"type": "cjs require",
"userRequest": "./_object-pie",
"loc": "1:10-34"
},
{
"moduleId": 108,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"module": "./node_modules/core-js/library/modules/es6.symbol.js",
"moduleName": "./node_modules/core-js/library/modules/es6.symbol.js",
"type": "cjs require",
"userRequest": "./_object-pie",
"loc": "151:2-26"
},
{
"moduleId": 110,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_enum-keys.js",
"module": "./node_modules/core-js/library/modules/_enum-keys.js",
"moduleName": "./node_modules/core-js/library/modules/_enum-keys.js",
"type": "cjs require",
"userRequest": "./_object-pie",
"loc": "4:10-34"
},
{
"moduleId": 151,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-assign.js",
"module": "./node_modules/core-js/library/modules/_object-assign.js",
"moduleName": "./node_modules/core-js/library/modules/_object-assign.js",
"type": "cjs require",
"userRequest": "./_object-pie",
"loc": "5:10-34"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "exports.f = {}.propertyIsEnumerable;\n"
},
{
"id": 26,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_ctx.js",
"name": "./node_modules/core-js/library/modules/_ctx.js",
"index": 25,
"index2": 19,
"size": 520,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.array.from.js",
"issuerId": 155,
"issuerName": "./node_modules/core-js/library/modules/es6.array.from.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 146,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"name": "./src/modules/Router.js"
},
{
"id": 152,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/toConsumableArray.js",
"name": "./node_modules/babel-runtime/helpers/toConsumableArray.js"
},
{
"id": 153,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/array/from.js",
"name": "./node_modules/babel-runtime/core-js/array/from.js"
},
{
"id": 154,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/array/from.js",
"name": "./node_modules/core-js/library/fn/array/from.js"
},
{
"id": 155,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.array.from.js",
"name": "./node_modules/core-js/library/modules/es6.array.from.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 10,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_export.js",
"module": "./node_modules/core-js/library/modules/_export.js",
"moduleName": "./node_modules/core-js/library/modules/_export.js",
"type": "cjs require",
"userRequest": "./_ctx",
"loc": "3:10-27"
},
{
"moduleId": 120,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_set-proto.js",
"module": "./node_modules/core-js/library/modules/_set-proto.js",
"moduleName": "./node_modules/core-js/library/modules/_set-proto.js",
"type": "cjs require",
"userRequest": "./_ctx",
"loc": "13:14-31"
},
{
"moduleId": 155,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.array.from.js",
"module": "./node_modules/core-js/library/modules/es6.array.from.js",
"moduleName": "./node_modules/core-js/library/modules/es6.array.from.js",
"type": "cjs require",
"userRequest": "./_ctx",
"loc": "2:10-27"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "// optional / simple context binding\nvar aFunction = require('./_a-function');\nmodule.exports = function (fn, that, length) {\n aFunction(fn);\n if (that === undefined) return fn;\n switch (length) {\n case 1: return function (a) {\n return fn.call(that, a);\n };\n case 2: return function (a, b) {\n return fn.call(that, a, b);\n };\n case 3: return function (a, b, c) {\n return fn.call(that, a, b, c);\n };\n }\n return function (/* ...args */) {\n return fn.apply(that, arguments);\n };\n};\n"
},
{
"id": 27,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_to-primitive.js",
"name": "./node_modules/core-js/library/modules/_to-primitive.js",
"index": 35,
"index2": 26,
"size": 655,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-dp.js",
"issuerId": 9,
"issuerName": "./node_modules/core-js/library/modules/_object-dp.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 7,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/createClass.js",
"name": "./node_modules/babel-runtime/helpers/createClass.js"
},
{
"id": 51,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/object/define-property.js",
"name": "./node_modules/babel-runtime/core-js/object/define-property.js"
},
{
"id": 90,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/object/define-property.js",
"name": "./node_modules/core-js/library/fn/object/define-property.js"
},
{
"id": 91,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.object.define-property.js",
"name": "./node_modules/core-js/library/modules/es6.object.define-property.js"
},
{
"id": 9,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-dp.js",
"name": "./node_modules/core-js/library/modules/_object-dp.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 9,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-dp.js",
"module": "./node_modules/core-js/library/modules/_object-dp.js",
"moduleName": "./node_modules/core-js/library/modules/_object-dp.js",
"type": "cjs require",
"userRequest": "./_to-primitive",
"loc": "3:18-44"
},
{
"moduleId": 61,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-gopd.js",
"module": "./node_modules/core-js/library/modules/_object-gopd.js",
"moduleName": "./node_modules/core-js/library/modules/_object-gopd.js",
"type": "cjs require",
"userRequest": "./_to-primitive",
"loc": "4:18-44"
},
{
"moduleId": 108,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"module": "./node_modules/core-js/library/modules/es6.symbol.js",
"moduleName": "./node_modules/core-js/library/modules/es6.symbol.js",
"type": "cjs require",
"userRequest": "./_to-primitive",
"loc": "21:18-44"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "// 7.1.1 ToPrimitive(input [, PreferredType])\nvar isObject = require('./_is-object');\n// instead of the ES6 spec version, we didn't implement @@toPrimitive case\n// and the second argument - flag - preferred type is a string\nmodule.exports = function (it, S) {\n if (!isObject(it)) return it;\n var fn, val;\n if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;\n if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n throw TypeError(\"Can't convert object to primitive value\");\n};\n"
},
{
"id": 28,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_to-integer.js",
"name": "./node_modules/core-js/library/modules/_to-integer.js",
"index": 44,
"index2": 36,
"size": 161,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_string-at.js",
"issuerId": 96,
"issuerName": "./node_modules/core-js/library/modules/_string-at.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 93,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"name": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"
},
{
"id": 54,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"name": "./node_modules/babel-runtime/helpers/typeof.js"
},
{
"id": 94,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol/iterator.js",
"name": "./node_modules/babel-runtime/core-js/symbol/iterator.js"
},
{
"id": 95,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/iterator.js",
"name": "./node_modules/core-js/library/fn/symbol/iterator.js"
},
{
"id": 21,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.string.iterator.js",
"name": "./node_modules/core-js/library/modules/es6.string.iterator.js"
},
{
"id": 96,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_string-at.js",
"name": "./node_modules/core-js/library/modules/_string-at.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 59,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_to-length.js",
"module": "./node_modules/core-js/library/modules/_to-length.js",
"moduleName": "./node_modules/core-js/library/modules/_to-length.js",
"type": "cjs require",
"userRequest": "./_to-integer",
"loc": "2:16-40"
},
{
"moduleId": 96,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_string-at.js",
"module": "./node_modules/core-js/library/modules/_string-at.js",
"moduleName": "./node_modules/core-js/library/modules/_string-at.js",
"type": "cjs require",
"userRequest": "./_to-integer",
"loc": "1:16-40"
},
{
"moduleId": 100,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_to-absolute-index.js",
"module": "./node_modules/core-js/library/modules/_to-absolute-index.js",
"moduleName": "./node_modules/core-js/library/modules/_to-absolute-index.js",
"type": "cjs require",
"userRequest": "./_to-integer",
"loc": "1:16-40"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 8,
"source": "// 7.1.4 ToInteger\nvar ceil = Math.ceil;\nvar floor = Math.floor;\nmodule.exports = function (it) {\n return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);\n};\n"
},
{
"id": 29,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_defined.js",
"name": "./node_modules/core-js/library/modules/_defined.js",
"index": 45,
"index2": 37,
"size": 162,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_string-at.js",
"issuerId": 96,
"issuerName": "./node_modules/core-js/library/modules/_string-at.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 93,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"name": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"
},
{
"id": 54,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"name": "./node_modules/babel-runtime/helpers/typeof.js"
},
{
"id": 94,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol/iterator.js",
"name": "./node_modules/babel-runtime/core-js/symbol/iterator.js"
},
{
"id": 95,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/iterator.js",
"name": "./node_modules/core-js/library/fn/symbol/iterator.js"
},
{
"id": 21,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.string.iterator.js",
"name": "./node_modules/core-js/library/modules/es6.string.iterator.js"
},
{
"id": 96,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_string-at.js",
"name": "./node_modules/core-js/library/modules/_string-at.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 17,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_to-iobject.js",
"module": "./node_modules/core-js/library/modules/_to-iobject.js",
"moduleName": "./node_modules/core-js/library/modules/_to-iobject.js",
"type": "cjs require",
"userRequest": "./_defined",
"loc": "3:14-35"
},
{
"moduleId": 36,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_to-object.js",
"module": "./node_modules/core-js/library/modules/_to-object.js",
"moduleName": "./node_modules/core-js/library/modules/_to-object.js",
"type": "cjs require",
"userRequest": "./_defined",
"loc": "2:14-35"
},
{
"moduleId": 96,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_string-at.js",
"module": "./node_modules/core-js/library/modules/_string-at.js",
"moduleName": "./node_modules/core-js/library/modules/_string-at.js",
"type": "cjs require",
"userRequest": "./_defined",
"loc": "2:14-35"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 8,
"source": "// 7.2.1 RequireObjectCoercible(argument)\nmodule.exports = function (it) {\n if (it == undefined) throw TypeError(\"Can't call method on \" + it);\n return it;\n};\n"
},
{
"id": 30,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-create.js",
"name": "./node_modules/core-js/library/modules/_object-create.js",
"index": 51,
"index2": 56,
"size": 1505,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.object.create.js",
"issuerId": 123,
"issuerName": "./node_modules/core-js/library/modules/es6.object.create.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 116,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/inherits.js",
"name": "./node_modules/babel-runtime/helpers/inherits.js"
},
{
"id": 121,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/object/create.js",
"name": "./node_modules/babel-runtime/core-js/object/create.js"
},
{
"id": 122,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/object/create.js",
"name": "./node_modules/core-js/library/fn/object/create.js"
},
{
"id": 123,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.object.create.js",
"name": "./node_modules/core-js/library/modules/es6.object.create.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 97,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_iter-create.js",
"module": "./node_modules/core-js/library/modules/_iter-create.js",
"moduleName": "./node_modules/core-js/library/modules/_iter-create.js",
"type": "cjs require",
"userRequest": "./_object-create",
"loc": "2:13-40"
},
{
"moduleId": 108,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"module": "./node_modules/core-js/library/modules/es6.symbol.js",
"moduleName": "./node_modules/core-js/library/modules/es6.symbol.js",
"type": "cjs require",
"userRequest": "./_object-create",
"loc": "23:14-41"
},
{
"moduleId": 123,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.object.create.js",
"module": "./node_modules/core-js/library/modules/es6.object.create.js",
"moduleName": "./node_modules/core-js/library/modules/es6.object.create.js",
"type": "cjs require",
"userRequest": "./_object-create",
"loc": "3:39-66"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 6,
"source": "// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])\nvar anObject = require('./_an-object');\nvar dPs = require('./_object-dps');\nvar enumBugKeys = require('./_enum-bug-keys');\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\nvar Empty = function () { /* empty */ };\nvar PROTOTYPE = 'prototype';\n\n// Create object with fake `null` prototype: use iframe Object with cleared prototype\nvar createDict = function () {\n // Thrash, waste and sodomy: IE GC bug\n var iframe = require('./_dom-create')('iframe');\n var i = enumBugKeys.length;\n var lt = '<';\n var gt = '>';\n var iframeDocument;\n iframe.style.display = 'none';\n require('./_html').appendChild(iframe);\n iframe.src = 'javascript:'; // eslint-disable-line no-script-url\n // createDict = iframe.contentWindow.Object;\n // html.removeChild(iframe);\n iframeDocument = iframe.contentWindow.document;\n iframeDocument.open();\n iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);\n iframeDocument.close();\n createDict = iframeDocument.F;\n while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];\n return createDict();\n};\n\nmodule.exports = Object.create || function create(O, Properties) {\n var result;\n if (O !== null) {\n Empty[PROTOTYPE] = anObject(O);\n result = new Empty();\n Empty[PROTOTYPE] = null;\n // add \"__proto__\" for Object.getPrototypeOf polyfill\n result[IE_PROTO] = O;\n } else result = createDict();\n return Properties === undefined ? result : dPs(result, Properties);\n};\n"
},
{
"id": 31,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_cof.js",
"name": "./node_modules/core-js/library/modules/_cof.js",
"index": 57,
"index2": 42,
"size": 106,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_classof.js",
"issuerId": 63,
"issuerName": "./node_modules/core-js/library/modules/_classof.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 136,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Poly.js",
"name": "./src/modules/Poly.js"
},
{
"id": 137,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/slicedToArray.js",
"name": "./node_modules/babel-runtime/helpers/slicedToArray.js"
},
{
"id": 138,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/is-iterable.js",
"name": "./node_modules/babel-runtime/core-js/is-iterable.js"
},
{
"id": 139,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/is-iterable.js",
"name": "./node_modules/core-js/library/fn/is-iterable.js"
},
{
"id": 140,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/core.is-iterable.js",
"name": "./node_modules/core-js/library/modules/core.is-iterable.js"
},
{
"id": 63,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_classof.js",
"name": "./node_modules/core-js/library/modules/_classof.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 58,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_iobject.js",
"module": "./node_modules/core-js/library/modules/_iobject.js",
"moduleName": "./node_modules/core-js/library/modules/_iobject.js",
"type": "cjs require",
"userRequest": "./_cof",
"loc": "2:10-27"
},
{
"moduleId": 63,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_classof.js",
"module": "./node_modules/core-js/library/modules/_classof.js",
"moduleName": "./node_modules/core-js/library/modules/_classof.js",
"type": "cjs require",
"userRequest": "./_cof",
"loc": "2:10-27"
},
{
"moduleId": 111,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_is-array.js",
"module": "./node_modules/core-js/library/modules/_is-array.js",
"moduleName": "./node_modules/core-js/library/modules/_is-array.js",
"type": "cjs require",
"userRequest": "./_cof",
"loc": "2:10-27"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 8,
"source": "var toString = {}.toString;\n\nmodule.exports = function (it) {\n return toString.call(it).slice(8, -1);\n};\n"
},
{
"id": 32,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_shared-key.js",
"name": "./node_modules/core-js/library/modules/_shared-key.js",
"index": 61,
"index2": 50,
"size": 159,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-create.js",
"issuerId": 30,
"issuerName": "./node_modules/core-js/library/modules/_object-create.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 116,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/inherits.js",
"name": "./node_modules/babel-runtime/helpers/inherits.js"
},
{
"id": 121,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/object/create.js",
"name": "./node_modules/babel-runtime/core-js/object/create.js"
},
{
"id": 122,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/object/create.js",
"name": "./node_modules/core-js/library/fn/object/create.js"
},
{
"id": 123,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.object.create.js",
"name": "./node_modules/core-js/library/modules/es6.object.create.js"
},
{
"id": 30,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-create.js",
"name": "./node_modules/core-js/library/modules/_object-create.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 30,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-create.js",
"module": "./node_modules/core-js/library/modules/_object-create.js",
"moduleName": "./node_modules/core-js/library/modules/_object-create.js",
"type": "cjs require",
"userRequest": "./_shared-key",
"loc": "5:15-39"
},
{
"moduleId": 57,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-keys-internal.js",
"module": "./node_modules/core-js/library/modules/_object-keys-internal.js",
"moduleName": "./node_modules/core-js/library/modules/_object-keys-internal.js",
"type": "cjs require",
"userRequest": "./_shared-key",
"loc": "4:15-39"
},
{
"moduleId": 102,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-gpo.js",
"module": "./node_modules/core-js/library/modules/_object-gpo.js",
"moduleName": "./node_modules/core-js/library/modules/_object-gpo.js",
"type": "cjs require",
"userRequest": "./_shared-key",
"loc": "4:15-39"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "var shared = require('./_shared')('keys');\nvar uid = require('./_uid');\nmodule.exports = function (key) {\n return shared[key] || (shared[key] = uid(key));\n};\n"
},
{
"id": 33,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_shared.js",
"name": "./node_modules/core-js/library/modules/_shared.js",
"index": 62,
"index2": 48,
"size": 427,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_wks.js",
"issuerId": 5,
"issuerName": "./node_modules/core-js/library/modules/_wks.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 93,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"name": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"
},
{
"id": 54,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"name": "./node_modules/babel-runtime/helpers/typeof.js"
},
{
"id": 94,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol/iterator.js",
"name": "./node_modules/babel-runtime/core-js/symbol/iterator.js"
},
{
"id": 95,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/iterator.js",
"name": "./node_modules/core-js/library/fn/symbol/iterator.js"
},
{
"id": 37,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/web.dom.iterable.js",
"name": "./node_modules/core-js/library/modules/web.dom.iterable.js"
},
{
"id": 5,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_wks.js",
"name": "./node_modules/core-js/library/modules/_wks.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 5,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_wks.js",
"module": "./node_modules/core-js/library/modules/_wks.js",
"moduleName": "./node_modules/core-js/library/modules/_wks.js",
"type": "cjs require",
"userRequest": "./_shared",
"loc": "1:12-32"
},
{
"moduleId": 32,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_shared-key.js",
"module": "./node_modules/core-js/library/modules/_shared-key.js",
"moduleName": "./node_modules/core-js/library/modules/_shared-key.js",
"type": "cjs require",
"userRequest": "./_shared",
"loc": "1:13-33"
},
{
"moduleId": 108,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"module": "./node_modules/core-js/library/modules/es6.symbol.js",
"moduleName": "./node_modules/core-js/library/modules/es6.symbol.js",
"type": "cjs require",
"userRequest": "./_shared",
"loc": "10:13-33"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "var core = require('./_core');\nvar global = require('./_global');\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || (global[SHARED] = {});\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: core.version,\n mode: require('./_library') ? 'pure' : 'global',\n copyright: '© 2018 Denis Pushkarev (zloirock.ru)'\n});\n"
},
{
"id": 34,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_enum-bug-keys.js",
"name": "./node_modules/core-js/library/modules/_enum-bug-keys.js",
"index": 64,
"index2": 52,
"size": 160,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-create.js",
"issuerId": 30,
"issuerName": "./node_modules/core-js/library/modules/_object-create.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 116,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/inherits.js",
"name": "./node_modules/babel-runtime/helpers/inherits.js"
},
{
"id": 121,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/object/create.js",
"name": "./node_modules/babel-runtime/core-js/object/create.js"
},
{
"id": 122,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/object/create.js",
"name": "./node_modules/core-js/library/fn/object/create.js"
},
{
"id": 123,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.object.create.js",
"name": "./node_modules/core-js/library/modules/es6.object.create.js"
},
{
"id": 30,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-create.js",
"name": "./node_modules/core-js/library/modules/_object-create.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 23,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-keys.js",
"module": "./node_modules/core-js/library/modules/_object-keys.js",
"moduleName": "./node_modules/core-js/library/modules/_object-keys.js",
"type": "cjs require",
"userRequest": "./_enum-bug-keys",
"loc": "3:18-45"
},
{
"moduleId": 30,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-create.js",
"module": "./node_modules/core-js/library/modules/_object-create.js",
"moduleName": "./node_modules/core-js/library/modules/_object-create.js",
"type": "cjs require",
"userRequest": "./_enum-bug-keys",
"loc": "4:18-45"
},
{
"moduleId": 60,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-gopn.js",
"module": "./node_modules/core-js/library/modules/_object-gopn.js",
"moduleName": "./node_modules/core-js/library/modules/_object-gopn.js",
"type": "cjs require",
"userRequest": "./_enum-bug-keys",
"loc": "3:17-44"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "// IE 8- don't enum bug keys\nmodule.exports = (\n 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'\n).split(',');\n"
},
{
"id": 35,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_set-to-string-tag.js",
"name": "./node_modules/core-js/library/modules/_set-to-string-tag.js",
"index": 66,
"index2": 58,
"size": 262,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_iter-define.js",
"issuerId": 55,
"issuerName": "./node_modules/core-js/library/modules/_iter-define.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 93,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"name": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"
},
{
"id": 54,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"name": "./node_modules/babel-runtime/helpers/typeof.js"
},
{
"id": 94,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol/iterator.js",
"name": "./node_modules/babel-runtime/core-js/symbol/iterator.js"
},
{
"id": 95,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/iterator.js",
"name": "./node_modules/core-js/library/fn/symbol/iterator.js"
},
{
"id": 21,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.string.iterator.js",
"name": "./node_modules/core-js/library/modules/es6.string.iterator.js"
},
{
"id": 55,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_iter-define.js",
"name": "./node_modules/core-js/library/modules/_iter-define.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 55,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_iter-define.js",
"module": "./node_modules/core-js/library/modules/_iter-define.js",
"moduleName": "./node_modules/core-js/library/modules/_iter-define.js",
"type": "cjs require",
"userRequest": "./_set-to-string-tag",
"loc": "8:21-52"
},
{
"moduleId": 97,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_iter-create.js",
"module": "./node_modules/core-js/library/modules/_iter-create.js",
"moduleName": "./node_modules/core-js/library/modules/_iter-create.js",
"type": "cjs require",
"userRequest": "./_set-to-string-tag",
"loc": "4:21-52"
},
{
"moduleId": 108,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"module": "./node_modules/core-js/library/modules/es6.symbol.js",
"moduleName": "./node_modules/core-js/library/modules/es6.symbol.js",
"type": "cjs require",
"userRequest": "./_set-to-string-tag",
"loc": "11:21-52"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "var def = require('./_object-dp').f;\nvar has = require('./_has');\nvar TAG = require('./_wks')('toStringTag');\n\nmodule.exports = function (it, tag, stat) {\n if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });\n};\n"
},
{
"id": 36,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_to-object.js",
"name": "./node_modules/core-js/library/modules/_to-object.js",
"index": 69,
"index2": 60,
"size": 132,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.array.from.js",
"issuerId": 155,
"issuerName": "./node_modules/core-js/library/modules/es6.array.from.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 146,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"name": "./src/modules/Router.js"
},
{
"id": 152,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/toConsumableArray.js",
"name": "./node_modules/babel-runtime/helpers/toConsumableArray.js"
},
{
"id": 153,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/array/from.js",
"name": "./node_modules/babel-runtime/core-js/array/from.js"
},
{
"id": 154,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/array/from.js",
"name": "./node_modules/core-js/library/fn/array/from.js"
},
{
"id": 155,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.array.from.js",
"name": "./node_modules/core-js/library/modules/es6.array.from.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 102,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-gpo.js",
"module": "./node_modules/core-js/library/modules/_object-gpo.js",
"moduleName": "./node_modules/core-js/library/modules/_object-gpo.js",
"type": "cjs require",
"userRequest": "./_to-object",
"loc": "3:15-38"
},
{
"moduleId": 151,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-assign.js",
"module": "./node_modules/core-js/library/modules/_object-assign.js",
"moduleName": "./node_modules/core-js/library/modules/_object-assign.js",
"type": "cjs require",
"userRequest": "./_to-object",
"loc": "6:15-38"
},
{
"moduleId": 155,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.array.from.js",
"module": "./node_modules/core-js/library/modules/es6.array.from.js",
"moduleName": "./node_modules/core-js/library/modules/es6.array.from.js",
"type": "cjs require",
"userRequest": "./_to-object",
"loc": "4:15-38"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 8,
"source": "// 7.1.13 ToObject(argument)\nvar defined = require('./_defined');\nmodule.exports = function (it) {\n return Object(defined(it));\n};\n"
},
{
"id": 37,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/web.dom.iterable.js",
"name": "./node_modules/core-js/library/modules/web.dom.iterable.js",
"index": 70,
"index2": 67,
"size": 969,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/iterator.js",
"issuerId": 95,
"issuerName": "./node_modules/core-js/library/fn/symbol/iterator.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 93,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"name": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"
},
{
"id": 54,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"name": "./node_modules/babel-runtime/helpers/typeof.js"
},
{
"id": 94,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol/iterator.js",
"name": "./node_modules/babel-runtime/core-js/symbol/iterator.js"
},
{
"id": 95,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/iterator.js",
"name": "./node_modules/core-js/library/fn/symbol/iterator.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 95,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/iterator.js",
"module": "./node_modules/core-js/library/fn/symbol/iterator.js",
"moduleName": "./node_modules/core-js/library/fn/symbol/iterator.js",
"type": "cjs require",
"userRequest": "../../modules/web.dom.iterable",
"loc": "2:0-41"
},
{
"moduleId": 139,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/is-iterable.js",
"module": "./node_modules/core-js/library/fn/is-iterable.js",
"moduleName": "./node_modules/core-js/library/fn/is-iterable.js",
"type": "cjs require",
"userRequest": "../modules/web.dom.iterable",
"loc": "1:0-38"
},
{
"moduleId": 142,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/get-iterator.js",
"module": "./node_modules/core-js/library/fn/get-iterator.js",
"moduleName": "./node_modules/core-js/library/fn/get-iterator.js",
"type": "cjs require",
"userRequest": "../modules/web.dom.iterable",
"loc": "1:0-38"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 6,
"source": "require('./es6.array.iterator');\nvar global = require('./_global');\nvar hide = require('./_hide');\nvar Iterators = require('./_iterators');\nvar TO_STRING_TAG = require('./_wks')('toStringTag');\n\nvar DOMIterables = ('CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,' +\n 'DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,' +\n 'MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,' +\n 'SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,' +\n 'TextTrackList,TouchList').split(',');\n\nfor (var i = 0; i < DOMIterables.length; i++) {\n var NAME = DOMIterables[i];\n var Collection = global[NAME];\n var proto = Collection && Collection.prototype;\n if (proto && !proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME);\n Iterators[NAME] = Iterators.Array;\n}\n"
},
{
"id": 38,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_wks-ext.js",
"name": "./node_modules/core-js/library/modules/_wks-ext.js",
"index": 74,
"index2": 68,
"size": 31,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/iterator.js",
"issuerId": 95,
"issuerName": "./node_modules/core-js/library/fn/symbol/iterator.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 93,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"name": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"
},
{
"id": 54,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"name": "./node_modules/babel-runtime/helpers/typeof.js"
},
{
"id": 94,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol/iterator.js",
"name": "./node_modules/babel-runtime/core-js/symbol/iterator.js"
},
{
"id": 95,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/iterator.js",
"name": "./node_modules/core-js/library/fn/symbol/iterator.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 39,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_wks-define.js",
"module": "./node_modules/core-js/library/modules/_wks-define.js",
"moduleName": "./node_modules/core-js/library/modules/_wks-define.js",
"type": "cjs require",
"userRequest": "./_wks-ext",
"loc": "4:13-34"
},
{
"moduleId": 95,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/iterator.js",
"module": "./node_modules/core-js/library/fn/symbol/iterator.js",
"moduleName": "./node_modules/core-js/library/fn/symbol/iterator.js",
"type": "cjs require",
"userRequest": "../../modules/_wks-ext",
"loc": "3:17-50"
},
{
"moduleId": 108,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"module": "./node_modules/core-js/library/modules/es6.symbol.js",
"moduleName": "./node_modules/core-js/library/modules/es6.symbol.js",
"type": "cjs require",
"userRequest": "./_wks-ext",
"loc": "14:13-34"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 6,
"source": "exports.f = require('./_wks');\n"
},
{
"id": 39,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_wks-define.js",
"name": "./node_modules/core-js/library/modules/_wks-define.js",
"index": 79,
"index2": 72,
"size": 417,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es7.symbol.async-iterator.js",
"issuerId": 114,
"issuerName": "./node_modules/core-js/library/modules/es7.symbol.async-iterator.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 93,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"name": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"
},
{
"id": 54,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"name": "./node_modules/babel-runtime/helpers/typeof.js"
},
{
"id": 106,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol.js",
"name": "./node_modules/babel-runtime/core-js/symbol.js"
},
{
"id": 107,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/index.js",
"name": "./node_modules/core-js/library/fn/symbol/index.js"
},
{
"id": 114,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es7.symbol.async-iterator.js",
"name": "./node_modules/core-js/library/modules/es7.symbol.async-iterator.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 108,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"module": "./node_modules/core-js/library/modules/es6.symbol.js",
"moduleName": "./node_modules/core-js/library/modules/es6.symbol.js",
"type": "cjs require",
"userRequest": "./_wks-define",
"loc": "15:16-40"
},
{
"moduleId": 114,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es7.symbol.async-iterator.js",
"module": "./node_modules/core-js/library/modules/es7.symbol.async-iterator.js",
"moduleName": "./node_modules/core-js/library/modules/es7.symbol.async-iterator.js",
"type": "cjs require",
"userRequest": "./_wks-define",
"loc": "1:0-24"
},
{
"moduleId": 115,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es7.symbol.observable.js",
"module": "./node_modules/core-js/library/modules/es7.symbol.observable.js",
"moduleName": "./node_modules/core-js/library/modules/es7.symbol.observable.js",
"type": "cjs require",
"userRequest": "./_wks-define",
"loc": "1:0-24"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "var global = require('./_global');\nvar core = require('./_core');\nvar LIBRARY = require('./_library');\nvar wksExt = require('./_wks-ext');\nvar defineProperty = require('./_object-dp').f;\nmodule.exports = function (name) {\n var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {});\n if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty($Symbol, name, { value: wksExt.f(name) });\n};\n"
},
{
"id": 40,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-gops.js",
"name": "./node_modules/core-js/library/modules/_object-gops.js",
"index": 81,
"index2": 73,
"size": 42,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"issuerId": 108,
"issuerName": "./node_modules/core-js/library/modules/es6.symbol.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 93,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"name": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"
},
{
"id": 54,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"name": "./node_modules/babel-runtime/helpers/typeof.js"
},
{
"id": 106,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol.js",
"name": "./node_modules/babel-runtime/core-js/symbol.js"
},
{
"id": 107,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/index.js",
"name": "./node_modules/core-js/library/fn/symbol/index.js"
},
{
"id": 108,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"name": "./node_modules/core-js/library/modules/es6.symbol.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 108,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"module": "./node_modules/core-js/library/modules/es6.symbol.js",
"moduleName": "./node_modules/core-js/library/modules/es6.symbol.js",
"type": "cjs require",
"userRequest": "./_object-gops",
"loc": "152:2-27"
},
{
"moduleId": 110,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_enum-keys.js",
"module": "./node_modules/core-js/library/modules/_enum-keys.js",
"moduleName": "./node_modules/core-js/library/modules/_enum-keys.js",
"type": "cjs require",
"userRequest": "./_object-gops",
"loc": "3:11-36"
},
{
"moduleId": 151,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-assign.js",
"module": "./node_modules/core-js/library/modules/_object-assign.js",
"moduleName": "./node_modules/core-js/library/modules/_object-assign.js",
"type": "cjs require",
"userRequest": "./_object-gops",
"loc": "4:11-36"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "exports.f = Object.getOwnPropertySymbols;\n"
},
{
"id": 41,
"identifier": "/Users/user/Projects/orchid/node_modules/css-loader/lib/css-base.js",
"name": "./node_modules/css-loader/lib/css-base.js",
"index": 108,
"index2": 102,
"size": 2260,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/css-loader/index.js!/Users/user/Projects/orchid/node_modules/less-loader/dist/cjs.js!/Users/user/Projects/orchid/src/styles/map.less",
"issuerId": 190,
"issuerName": "./node_modules/css-loader!./node_modules/less-loader/dist/cjs.js!./src/styles/map.less",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 189,
"identifier": "/Users/user/Projects/orchid/node_modules/style-loader/index.js!/Users/user/Projects/orchid/node_modules/css-loader/index.js!/Users/user/Projects/orchid/node_modules/less-loader/dist/cjs.js!/Users/user/Projects/orchid/src/styles/map.less",
"name": "./src/styles/map.less"
},
{
"id": 190,
"identifier": "/Users/user/Projects/orchid/node_modules/css-loader/index.js!/Users/user/Projects/orchid/node_modules/less-loader/dist/cjs.js!/Users/user/Projects/orchid/src/styles/map.less",
"name": "./node_modules/css-loader!./node_modules/less-loader/dist/cjs.js!./src/styles/map.less"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 130,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/css-loader/index.js!/Users/user/Projects/orchid/node_modules/leaflet/dist/leaflet.css",
"module": "./node_modules/css-loader!./node_modules/leaflet/dist/leaflet.css",
"moduleName": "./node_modules/css-loader!./node_modules/leaflet/dist/leaflet.css",
"type": "cjs require",
"userRequest": "../../css-loader/lib/css-base.js",
"loc": "2:27-70"
},
{
"moduleId": 190,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/css-loader/index.js!/Users/user/Projects/orchid/node_modules/less-loader/dist/cjs.js!/Users/user/Projects/orchid/src/styles/map.less",
"module": "./node_modules/css-loader!./node_modules/less-loader/dist/cjs.js!./src/styles/map.less",
"moduleName": "./node_modules/css-loader!./node_modules/less-loader/dist/cjs.js!./src/styles/map.less",
"type": "cjs require",
"userRequest": "../../node_modules/css-loader/lib/css-base.js",
"loc": "1:27-83"
},
{
"moduleId": 192,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/css-loader/index.js!/Users/user/Projects/orchid/node_modules/less-loader/dist/cjs.js!/Users/user/Projects/orchid/src/styles/controls.less",
"module": "./node_modules/css-loader!./node_modules/less-loader/dist/cjs.js!./src/styles/controls.less",
"moduleName": "./node_modules/css-loader!./node_modules/less-loader/dist/cjs.js!./src/styles/controls.less",
"type": "cjs require",
"userRequest": "../../node_modules/css-loader/lib/css-base.js",
"loc": "1:27-83"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 3,
"source": "/*\n\tMIT License http://www.opensource.org/licenses/mit-license.php\n\tAuthor Tobias Koppers @sokra\n*/\n// css base code, injected by the css-loader\nmodule.exports = function(useSourceMap) {\n\tvar list = [];\n\n\t// return the list of modules as css string\n\tlist.toString = function toString() {\n\t\treturn this.map(function (item) {\n\t\t\tvar content = cssWithMappingToString(item, useSourceMap);\n\t\t\tif(item[2]) {\n\t\t\t\treturn \"@media \" + item[2] + \"{\" + content + \"}\";\n\t\t\t} else {\n\t\t\t\treturn content;\n\t\t\t}\n\t\t}).join(\"\");\n\t};\n\n\t// import a list of modules into the list\n\tlist.i = function(modules, mediaQuery) {\n\t\tif(typeof modules === \"string\")\n\t\t\tmodules = [[null, modules, \"\"]];\n\t\tvar alreadyImportedModules = {};\n\t\tfor(var i = 0; i < this.length; i++) {\n\t\t\tvar id = this[i][0];\n\t\t\tif(typeof id === \"number\")\n\t\t\t\talreadyImportedModules[id] = true;\n\t\t}\n\t\tfor(i = 0; i < modules.length; i++) {\n\t\t\tvar item = modules[i];\n\t\t\t// skip already imported module\n\t\t\t// this implementation is not 100% perfect for weird media query combinations\n\t\t\t// when a module is imported multiple times with different media queries.\n\t\t\t// I hope this will never occur (Hey this way we have smaller bundles)\n\t\t\tif(typeof item[0] !== \"number\" || !alreadyImportedModules[item[0]]) {\n\t\t\t\tif(mediaQuery && !item[2]) {\n\t\t\t\t\titem[2] = mediaQuery;\n\t\t\t\t} else if(mediaQuery) {\n\t\t\t\t\titem[2] = \"(\" + item[2] + \") and (\" + mediaQuery + \")\";\n\t\t\t\t}\n\t\t\t\tlist.push(item);\n\t\t\t}\n\t\t}\n\t};\n\treturn list;\n};\n\nfunction cssWithMappingToString(item, useSourceMap) {\n\tvar content = item[1] || '';\n\tvar cssMapping = item[3];\n\tif (!cssMapping) {\n\t\treturn content;\n\t}\n\n\tif (useSourceMap && typeof btoa === 'function') {\n\t\tvar sourceMapping = toComment(cssMapping);\n\t\tvar sourceURLs = cssMapping.sources.map(function (source) {\n\t\t\treturn '/*# sourceURL=' + cssMapping.sourceRoot + source + ' */'\n\t\t});\n\n\t\treturn [content].concat(sourceURLs).concat([sourceMapping]).join('\\n');\n\t}\n\n\treturn [content].join('\\n');\n}\n\n// Adapted from convert-source-map (MIT)\nfunction toComment(sourceMap) {\n\t// eslint-disable-next-line no-undef\n\tvar base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));\n\tvar data = 'sourceMappingURL=data:application/json;charset=utf-8;base64,' + base64;\n\n\treturn '/*# ' + data + ' */';\n}\n"
},
{
"id": 42,
"identifier": "/Users/user/Projects/orchid/node_modules/style-loader/lib/addStyles.js",
"name": "./node_modules/style-loader/lib/addStyles.js",
"index": 112,
"index2": 108,
"size": 10006,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/style-loader/index.js!/Users/user/Projects/orchid/node_modules/css-loader/index.js!/Users/user/Projects/orchid/node_modules/less-loader/dist/cjs.js!/Users/user/Projects/orchid/src/styles/map.less",
"issuerId": 189,
"issuerName": "./src/styles/map.less",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 189,
"identifier": "/Users/user/Projects/orchid/node_modules/style-loader/index.js!/Users/user/Projects/orchid/node_modules/css-loader/index.js!/Users/user/Projects/orchid/node_modules/less-loader/dist/cjs.js!/Users/user/Projects/orchid/src/styles/map.less",
"name": "./src/styles/map.less"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 129,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/style-loader/index.js!/Users/user/Projects/orchid/node_modules/css-loader/index.js!/Users/user/Projects/orchid/node_modules/leaflet/dist/leaflet.css",
"module": "./node_modules/leaflet/dist/leaflet.css",
"moduleName": "./node_modules/leaflet/dist/leaflet.css",
"type": "cjs require",
"userRequest": "!../../style-loader/lib/addStyles.js",
"loc": "16:13-60"
},
{
"moduleId": 189,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/style-loader/index.js!/Users/user/Projects/orchid/node_modules/css-loader/index.js!/Users/user/Projects/orchid/node_modules/less-loader/dist/cjs.js!/Users/user/Projects/orchid/src/styles/map.less",
"module": "./src/styles/map.less",
"moduleName": "./src/styles/map.less",
"type": "cjs require",
"userRequest": "!../../node_modules/style-loader/lib/addStyles.js",
"loc": "16:13-73"
},
{
"moduleId": 191,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/style-loader/index.js!/Users/user/Projects/orchid/node_modules/css-loader/index.js!/Users/user/Projects/orchid/node_modules/less-loader/dist/cjs.js!/Users/user/Projects/orchid/src/styles/controls.less",
"module": "./src/styles/controls.less",
"moduleName": "./src/styles/controls.less",
"type": "cjs require",
"userRequest": "!../../node_modules/style-loader/lib/addStyles.js",
"loc": "16:13-73"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 2,
"source": "/*\n\tMIT License http://www.opensource.org/licenses/mit-license.php\n\tAuthor Tobias Koppers @sokra\n*/\n\nvar stylesInDom = {};\n\nvar\tmemoize = function (fn) {\n\tvar memo;\n\n\treturn function () {\n\t\tif (typeof memo === \"undefined\") memo = fn.apply(this, arguments);\n\t\treturn memo;\n\t};\n};\n\nvar isOldIE = memoize(function () {\n\t// Test for IE <= 9 as proposed by Browserhacks\n\t// @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805\n\t// Tests for existence of standard globals is to allow style-loader\n\t// to operate correctly into non-standard environments\n\t// @see https://github.com/webpack-contrib/style-loader/issues/177\n\treturn window && document && document.all && !window.atob;\n});\n\nvar getTarget = function (target) {\n return document.querySelector(target);\n};\n\nvar getElement = (function (fn) {\n\tvar memo = {};\n\n\treturn function(target) {\n // If passing function in options, then use it for resolve \"head\" element.\n // Useful for Shadow Root style i.e\n // {\n // insertInto: function () { return document.querySelector(\"#foo\").shadowRoot }\n // }\n if (typeof target === 'function') {\n return target();\n }\n if (typeof memo[target] === \"undefined\") {\n\t\t\tvar styleTarget = getTarget.call(this, target);\n\t\t\t// Special case to return head of iframe instead of iframe itself\n\t\t\tif (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {\n\t\t\t\ttry {\n\t\t\t\t\t// This will throw an exception if access to iframe is blocked\n\t\t\t\t\t// due to cross-origin restrictions\n\t\t\t\t\tstyleTarget = styleTarget.contentDocument.head;\n\t\t\t\t} catch(e) {\n\t\t\t\t\tstyleTarget = null;\n\t\t\t\t}\n\t\t\t}\n\t\t\tmemo[target] = styleTarget;\n\t\t}\n\t\treturn memo[target]\n\t};\n})();\n\nvar singleton = null;\nvar\tsingletonCounter = 0;\nvar\tstylesInsertedAtTop = [];\n\nvar\tfixUrls = require(\"./urls\");\n\nmodule.exports = function(list, options) {\n\tif (typeof DEBUG !== \"undefined\" && DEBUG) {\n\t\tif (typeof document !== \"object\") throw new Error(\"The style-loader cannot be used in a non-browser environment\");\n\t}\n\n\toptions = options || {};\n\n\toptions.attrs = typeof options.attrs === \"object\" ? options.attrs : {};\n\n\t// Force single-tag solution on IE6-9, which has a hard limit on the # of <style>\n\t// tags it will allow on a page\n\tif (!options.singleton && typeof options.singleton !== \"boolean\") options.singleton = isOldIE();\n\n\t// By default, add <style> tags to the <head> element\n if (!options.insertInto) options.insertInto = \"head\";\n\n\t// By default, add <style> tags to the bottom of the target\n\tif (!options.insertAt) options.insertAt = \"bottom\";\n\n\tvar styles = listToStyles(list, options);\n\n\taddStylesToDom(styles, options);\n\n\treturn function update (newList) {\n\t\tvar mayRemove = [];\n\n\t\tfor (var i = 0; i < styles.length; i++) {\n\t\t\tvar item = styles[i];\n\t\t\tvar domStyle = stylesInDom[item.id];\n\n\t\t\tdomStyle.refs--;\n\t\t\tmayRemove.push(domStyle);\n\t\t}\n\n\t\tif(newList) {\n\t\t\tvar newStyles = listToStyles(newList, options);\n\t\t\taddStylesToDom(newStyles, options);\n\t\t}\n\n\t\tfor (var i = 0; i < mayRemove.length; i++) {\n\t\t\tvar domStyle = mayRemove[i];\n\n\t\t\tif(domStyle.refs === 0) {\n\t\t\t\tfor (var j = 0; j < domStyle.parts.length; j++) domStyle.parts[j]();\n\n\t\t\t\tdelete stylesInDom[domStyle.id];\n\t\t\t}\n\t\t}\n\t};\n};\n\nfunction addStylesToDom (styles, options) {\n\tfor (var i = 0; i < styles.length; i++) {\n\t\tvar item = styles[i];\n\t\tvar domStyle = stylesInDom[item.id];\n\n\t\tif(domStyle) {\n\t\t\tdomStyle.refs++;\n\n\t\t\tfor(var j = 0; j < domStyle.parts.length; j++) {\n\t\t\t\tdomStyle.parts[j](item.parts[j]);\n\t\t\t}\n\n\t\t\tfor(; j < item.parts.length; j++) {\n\t\t\t\tdomStyle.parts.push(addStyle(item.parts[j], options));\n\t\t\t}\n\t\t} else {\n\t\t\tvar parts = [];\n\n\t\t\tfor(var j = 0; j < item.parts.length; j++) {\n\t\t\t\tparts.push(addStyle(item.parts[j], options));\n\t\t\t}\n\n\t\t\tstylesInDom[item.id] = {id: item.id, refs: 1, parts: parts};\n\t\t}\n\t}\n}\n\nfunction listToStyles (list, options) {\n\tvar styles = [];\n\tvar newStyles = {};\n\n\tfor (var i = 0; i < list.length; i++) {\n\t\tvar item = list[i];\n\t\tvar id = options.base ? item[0] + options.base : item[0];\n\t\tvar css = item[1];\n\t\tvar media = item[2];\n\t\tvar sourceMap = item[3];\n\t\tvar part = {css: css, media: media, sourceMap: sourceMap};\n\n\t\tif(!newStyles[id]) styles.push(newStyles[id] = {id: id, parts: [part]});\n\t\telse newStyles[id].parts.push(part);\n\t}\n\n\treturn styles;\n}\n\nfunction insertStyleElement (options, style) {\n\tvar target = getElement(options.insertInto)\n\n\tif (!target) {\n\t\tthrow new Error(\"Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.\");\n\t}\n\n\tvar lastStyleElementInsertedAtTop = stylesInsertedAtTop[stylesInsertedAtTop.length - 1];\n\n\tif (options.insertAt === \"top\") {\n\t\tif (!lastStyleElementInsertedAtTop) {\n\t\t\ttarget.insertBefore(style, target.firstChild);\n\t\t} else if (lastStyleElementInsertedAtTop.nextSibling) {\n\t\t\ttarget.insertBefore(style, lastStyleElementInsertedAtTop.nextSibling);\n\t\t} else {\n\t\t\ttarget.appendChild(style);\n\t\t}\n\t\tstylesInsertedAtTop.push(style);\n\t} else if (options.insertAt === \"bottom\") {\n\t\ttarget.appendChild(style);\n\t} else if (typeof options.insertAt === \"object\" && options.insertAt.before) {\n\t\tvar nextSibling = getElement(options.insertInto + \" \" + options.insertAt.before);\n\t\ttarget.insertBefore(style, nextSibling);\n\t} else {\n\t\tthrow new Error(\"[Style Loader]\\n\\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\\n Must be 'top', 'bottom', or Object.\\n (https://github.com/webpack-contrib/style-loader#insertat)\\n\");\n\t}\n}\n\nfunction removeStyleElement (style) {\n\tif (style.parentNode === null) return false;\n\tstyle.parentNode.removeChild(style);\n\n\tvar idx = stylesInsertedAtTop.indexOf(style);\n\tif(idx >= 0) {\n\t\tstylesInsertedAtTop.splice(idx, 1);\n\t}\n}\n\nfunction createStyleElement (options) {\n\tvar style = document.createElement(\"style\");\n\n\tif(options.attrs.type === undefined) {\n\t\toptions.attrs.type = \"text/css\";\n\t}\n\n\taddAttrs(style, options.attrs);\n\tinsertStyleElement(options, style);\n\n\treturn style;\n}\n\nfunction createLinkElement (options) {\n\tvar link = document.createElement(\"link\");\n\n\tif(options.attrs.type === undefined) {\n\t\toptions.attrs.type = \"text/css\";\n\t}\n\toptions.attrs.rel = \"stylesheet\";\n\n\taddAttrs(link, options.attrs);\n\tinsertStyleElement(options, link);\n\n\treturn link;\n}\n\nfunction addAttrs (el, attrs) {\n\tObject.keys(attrs).forEach(function (key) {\n\t\tel.setAttribute(key, attrs[key]);\n\t});\n}\n\nfunction addStyle (obj, options) {\n\tvar style, update, remove, result;\n\n\t// If a transform function was defined, run it on the css\n\tif (options.transform && obj.css) {\n\t result = options.transform(obj.css);\n\n\t if (result) {\n\t \t// If transform returns a value, use that instead of the original css.\n\t \t// This allows running runtime transformations on the css.\n\t \tobj.css = result;\n\t } else {\n\t \t// If the transform function returns a falsy value, don't add this css.\n\t \t// This allows conditional loading of css\n\t \treturn function() {\n\t \t\t// noop\n\t \t};\n\t }\n\t}\n\n\tif (options.singleton) {\n\t\tvar styleIndex = singletonCounter++;\n\n\t\tstyle = singleton || (singleton = createStyleElement(options));\n\n\t\tupdate = applyToSingletonTag.bind(null, style, styleIndex, false);\n\t\tremove = applyToSingletonTag.bind(null, style, styleIndex, true);\n\n\t} else if (\n\t\tobj.sourceMap &&\n\t\ttypeof URL === \"function\" &&\n\t\ttypeof URL.createObjectURL === \"function\" &&\n\t\ttypeof URL.revokeObjectURL === \"function\" &&\n\t\ttypeof Blob === \"function\" &&\n\t\ttypeof btoa === \"function\"\n\t) {\n\t\tstyle = createLinkElement(options);\n\t\tupdate = updateLink.bind(null, style, options);\n\t\tremove = function () {\n\t\t\tremoveStyleElement(style);\n\n\t\t\tif(style.href) URL.revokeObjectURL(style.href);\n\t\t};\n\t} else {\n\t\tstyle = createStyleElement(options);\n\t\tupdate = applyToTag.bind(null, style);\n\t\tremove = function () {\n\t\t\tremoveStyleElement(style);\n\t\t};\n\t}\n\n\tupdate(obj);\n\n\treturn function updateStyle (newObj) {\n\t\tif (newObj) {\n\t\t\tif (\n\t\t\t\tnewObj.css === obj.css &&\n\t\t\t\tnewObj.media === obj.media &&\n\t\t\t\tnewObj.sourceMap === obj.sourceMap\n\t\t\t) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tupdate(obj = newObj);\n\t\t} else {\n\t\t\tremove();\n\t\t}\n\t};\n}\n\nvar replaceText = (function () {\n\tvar textStore = [];\n\n\treturn function (index, replacement) {\n\t\ttextStore[index] = replacement;\n\n\t\treturn textStore.filter(Boolean).join('\\n');\n\t};\n})();\n\nfunction applyToSingletonTag (style, index, remove, obj) {\n\tvar css = remove ? \"\" : obj.css;\n\n\tif (style.styleSheet) {\n\t\tstyle.styleSheet.cssText = replaceText(index, css);\n\t} else {\n\t\tvar cssNode = document.createTextNode(css);\n\t\tvar childNodes = style.childNodes;\n\n\t\tif (childNodes[index]) style.removeChild(childNodes[index]);\n\n\t\tif (childNodes.length) {\n\t\t\tstyle.insertBefore(cssNode, childNodes[index]);\n\t\t} else {\n\t\t\tstyle.appendChild(cssNode);\n\t\t}\n\t}\n}\n\nfunction applyToTag (style, obj) {\n\tvar css = obj.css;\n\tvar media = obj.media;\n\n\tif(media) {\n\t\tstyle.setAttribute(\"media\", media)\n\t}\n\n\tif(style.styleSheet) {\n\t\tstyle.styleSheet.cssText = css;\n\t} else {\n\t\twhile(style.firstChild) {\n\t\t\tstyle.removeChild(style.firstChild);\n\t\t}\n\n\t\tstyle.appendChild(document.createTextNode(css));\n\t}\n}\n\nfunction updateLink (link, options, obj) {\n\tvar css = obj.css;\n\tvar sourceMap = obj.sourceMap;\n\n\t/*\n\t\tIf convertToAbsoluteUrls isn't defined, but sourcemaps are enabled\n\t\tand there is no publicPath defined then lets turn convertToAbsoluteUrls\n\t\ton by default. Otherwise default to the convertToAbsoluteUrls option\n\t\tdirectly\n\t*/\n\tvar autoFixUrls = options.convertToAbsoluteUrls === undefined && sourceMap;\n\n\tif (options.convertToAbsoluteUrls || autoFixUrls) {\n\t\tcss = fixUrls(css);\n\t}\n\n\tif (sourceMap) {\n\t\t// http://stackoverflow.com/a/26603875\n\t\tcss += \"\\n/*# sourceMappingURL=data:application/json;base64,\" + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + \" */\";\n\t}\n\n\tvar blob = new Blob([css], { type: \"text/css\" });\n\n\tvar oldSrc = link.href;\n\n\tlink.href = URL.createObjectURL(blob);\n\n\tif(oldSrc) URL.revokeObjectURL(oldSrc);\n}\n"
},
{
"id": 43,
"identifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/localization.js",
"name": "./node_modules/leaflet-routing-machine/src/localization.js",
"index": 147,
"index2": 139,
"size": 20024,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/index.js",
"issuerId": 160,
"issuerName": "./node_modules/leaflet-routing-machine/src/index.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 146,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"name": "./src/modules/Router.js"
},
{
"id": 160,
"identifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/index.js",
"name": "./node_modules/leaflet-routing-machine/src/index.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 68,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/formatter.js",
"module": "./node_modules/leaflet-routing-machine/src/formatter.js",
"moduleName": "./node_modules/leaflet-routing-machine/src/formatter.js",
"type": "cjs require",
"userRequest": "./localization",
"loc": "6:20-45"
},
{
"moduleId": 72,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/geocoder-element.js",
"module": "./node_modules/leaflet-routing-machine/src/geocoder-element.js",
"moduleName": "./node_modules/leaflet-routing-machine/src/geocoder-element.js",
"type": "cjs require",
"userRequest": "./localization",
"loc": "6:20-45"
},
{
"moduleId": 160,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/index.js",
"module": "./node_modules/leaflet-routing-machine/src/index.js",
"moduleName": "./node_modules/leaflet-routing-machine/src/index.js",
"type": "cjs require",
"userRequest": "./localization",
"loc": "11:19-44"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 5,
"source": "/* \n NOTICE\n Since version 3.2.5, the functionality in this file is by\n default NOT used for localizing OSRM instructions.\n Instead, we rely on the module osrm-text-instructions (https://github.com/Project-OSRM/osrm-text-instructions/).\n \n This file can still be used for other routing backends, or if you specify the\n stepToText option in the OSRMv1 class.\n*/\n\n(function() {\n\t'use strict';\n\n\tvar spanish = {\n\t\tdirections: {\n\t\t\tN: 'norte',\n\t\t\tNE: 'noreste',\n\t\t\tE: 'este',\n\t\t\tSE: 'sureste',\n\t\t\tS: 'sur',\n\t\t\tSW: 'suroeste',\n\t\t\tW: 'oeste',\n\t\t\tNW: 'noroeste',\n\t\t\tSlightRight: 'leve giro a la derecha',\n\t\t\tRight: 'derecha',\n\t\t\tSharpRight: 'giro pronunciado a la derecha',\n\t\t\tSlightLeft: 'leve giro a la izquierda',\n\t\t\tLeft: 'izquierda',\n\t\t\tSharpLeft: 'giro pronunciado a la izquierda',\n\t\t\tUturn: 'media vuelta'\n\t\t},\n\t\tinstructions: {\n\t\t\t// instruction, postfix if the road is named\n\t\t\t'Head':\n\t\t\t\t['Derecho {dir}', ' sobre {road}'],\n\t\t\t'Continue':\n\t\t\t\t['Continuar {dir}', ' en {road}'],\n\t\t\t'TurnAround':\n\t\t\t\t['Dar vuelta'],\n\t\t\t'WaypointReached':\n\t\t\t\t['Llegó a un punto del camino'],\n\t\t\t'Roundabout':\n\t\t\t\t['Tomar {exitStr} salida en la rotonda', ' en {road}'],\n\t\t\t'DestinationReached':\n\t\t\t\t['Llegada a destino'],\n\t\t\t'Fork': ['En el cruce gira a {modifier}', ' hacia {road}'],\n\t\t\t'Merge': ['Incorpórate {modifier}', ' hacia {road}'],\n\t\t\t'OnRamp': ['Gira {modifier} en la salida', ' hacia {road}'],\n\t\t\t'OffRamp': ['Toma la salida {modifier}', ' hacia {road}'],\n\t\t\t'EndOfRoad': ['Gira {modifier} al final de la carretera', ' hacia {road}'],\n\t\t\t'Onto': 'hacia {road}'\n\t\t},\n\t\tformatOrder: function(n) {\n\t\t\treturn n + 'º';\n\t\t},\n\t\tui: {\n\t\t\tstartPlaceholder: 'Inicio',\n\t\t\tviaPlaceholder: 'Via {viaNumber}',\n\t\t\tendPlaceholder: 'Destino'\n\t\t},\n\t\tunits: {\n\t\t\tmeters: 'm',\n\t\t\tkilometers: 'km',\n\t\t\tyards: 'yd',\n\t\t\tmiles: 'mi',\n\t\t\thours: 'h',\n\t\t\tminutes: 'min',\n\t\t\tseconds: 's'\n\t\t}\n\t};\n\n\tL.Routing = L.Routing || {};\n\n\tvar Localization = L.Class.extend({\n\t\tinitialize: function(langs) {\n\t\t\tthis._langs = L.Util.isArray(langs) ? langs : [langs, 'en'];\n\n\t\t\tfor (var i = 0, l = this._langs.length; i < l; i++) {\n\t\t\t\tif (!Localization[this._langs[i]]) {\n\t\t\t\t\tthrow new Error('No localization for language \"' + this._langs[i] + '\".');\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\n\t\tlocalize: function(keys) {\n\t\t\tvar dict,\n\t\t\t\tkey,\n\t\t\t\tvalue;\n\n\t\t\tkeys = L.Util.isArray(keys) ? keys : [keys];\n\n\t\t\tfor (var i = 0, l = this._langs.length; i < l; i++) {\n\t\t\t\tdict = Localization[this._langs[i]];\n\t\t\t\tfor (var j = 0, nKeys = keys.length; dict && j < nKeys; j++) {\n\t\t\t\t\tkey = keys[j];\n\t\t\t\t\tvalue = dict[key];\n\t\t\t\t\tdict = value;\n\t\t\t\t}\n\n\t\t\t\tif (value) {\n\t\t\t\t\treturn value;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t});\n\n\tmodule.exports = L.extend(Localization, {\n\t\t'en': {\n\t\t\tdirections: {\n\t\t\t\tN: 'north',\n\t\t\t\tNE: 'northeast',\n\t\t\t\tE: 'east',\n\t\t\t\tSE: 'southeast',\n\t\t\t\tS: 'south',\n\t\t\t\tSW: 'southwest',\n\t\t\t\tW: 'west',\n\t\t\t\tNW: 'northwest',\n\t\t\t\tSlightRight: 'slight right',\n\t\t\t\tRight: 'right',\n\t\t\t\tSharpRight: 'sharp right',\n\t\t\t\tSlightLeft: 'slight left',\n\t\t\t\tLeft: 'left',\n\t\t\t\tSharpLeft: 'sharp left',\n\t\t\t\tUturn: 'Turn around'\n\t\t\t},\n\t\t\tinstructions: {\n\t\t\t\t// instruction, postfix if the road is named\n\t\t\t\t'Head':\n\t\t\t\t\t['Head {dir}', ' on {road}'],\n\t\t\t\t'Continue':\n\t\t\t\t\t['Continue {dir}'],\n\t\t\t\t'TurnAround':\n\t\t\t\t\t['Turn around'],\n\t\t\t\t'WaypointReached':\n\t\t\t\t\t['Waypoint reached'],\n\t\t\t\t'Roundabout':\n\t\t\t\t\t['Take the {exitStr} exit in the roundabout', ' onto {road}'],\n\t\t\t\t'DestinationReached':\n\t\t\t\t\t['Destination reached'],\n\t\t\t\t'Fork': ['At the fork, turn {modifier}', ' onto {road}'],\n\t\t\t\t'Merge': ['Merge {modifier}', ' onto {road}'],\n\t\t\t\t'OnRamp': ['Turn {modifier} on the ramp', ' onto {road}'],\n\t\t\t\t'OffRamp': ['Take the ramp on the {modifier}', ' onto {road}'],\n\t\t\t\t'EndOfRoad': ['Turn {modifier} at the end of the road', ' onto {road}'],\n\t\t\t\t'Onto': 'onto {road}'\n\t\t\t},\n\t\t\tformatOrder: function(n) {\n\t\t\t\tvar i = n % 10 - 1,\n\t\t\t\tsuffix = ['st', 'nd', 'rd'];\n\n\t\t\t\treturn suffix[i] ? n + suffix[i] : n + 'th';\n\t\t\t},\n\t\t\tui: {\n\t\t\t\tstartPlaceholder: 'Start',\n\t\t\t\tviaPlaceholder: 'Via {viaNumber}',\n\t\t\t\tendPlaceholder: 'End'\n\t\t\t},\n\t\t\tunits: {\n\t\t\t\tmeters: 'm',\n\t\t\t\tkilometers: 'km',\n\t\t\t\tyards: 'yd',\n\t\t\t\tmiles: 'mi',\n\t\t\t\thours: 'h',\n\t\t\t\tminutes: 'min',\n\t\t\t\tseconds: 's'\n\t\t\t}\n\t\t},\n\n\t\t'de': {\n\t\t\tdirections: {\n\t\t\t\tN: 'Norden',\n\t\t\t\tNE: 'Nordosten',\n\t\t\t\tE: 'Osten',\n\t\t\t\tSE: 'Südosten',\n\t\t\t\tS: 'Süden',\n\t\t\t\tSW: 'Südwesten',\n\t\t\t\tW: 'Westen',\n\t\t\t\tNW: 'Nordwesten',\n\t\t\t\tSlightRight: 'leicht rechts',\n\t\t\t\tRight: 'rechts',\n\t\t\t\tSharpRight: 'scharf rechts',\n\t\t\t\tSlightLeft: 'leicht links',\n\t\t\t\tLeft: 'links',\n\t\t\t\tSharpLeft: 'scharf links',\n\t\t\t\tUturn: 'Wenden'\n\t\t\t},\n\t\t\tinstructions: {\n\t\t\t\t// instruction, postfix if the road is named\n\t\t\t\t'Head':\n\t\t\t\t\t['Richtung {dir}', ' auf {road}'],\n\t\t\t\t'Continue':\n\t\t\t\t\t['Geradeaus Richtung {dir}', ' auf {road}'],\n\t\t\t\t'SlightRight':\n\t\t\t\t\t['Leicht rechts abbiegen', ' auf {road}'],\n\t\t\t\t'Right':\n\t\t\t\t\t['Rechts abbiegen', ' auf {road}'],\n\t\t\t\t'SharpRight':\n\t\t\t\t\t['Scharf rechts abbiegen', ' auf {road}'],\n\t\t\t\t'TurnAround':\n\t\t\t\t\t['Wenden'],\n\t\t\t\t'SharpLeft':\n\t\t\t\t\t['Scharf links abbiegen', ' auf {road}'],\n\t\t\t\t'Left':\n\t\t\t\t\t['Links abbiegen', ' auf {road}'],\n\t\t\t\t'SlightLeft':\n\t\t\t\t\t['Leicht links abbiegen', ' auf {road}'],\n\t\t\t\t'WaypointReached':\n\t\t\t\t\t['Zwischenhalt erreicht'],\n\t\t\t\t'Roundabout':\n\t\t\t\t\t['Nehmen Sie die {exitStr} Ausfahrt im Kreisverkehr', ' auf {road}'],\n\t\t\t\t'DestinationReached':\n\t\t\t\t\t['Sie haben ihr Ziel erreicht'],\n\t\t\t\t'Fork': ['An der Kreuzung {modifier}', ' auf {road}'],\n\t\t\t\t'Merge': ['Fahren Sie {modifier} weiter', ' auf {road}'],\n\t\t\t\t'OnRamp': ['Fahren Sie {modifier} auf die Auffahrt', ' auf {road}'],\n\t\t\t\t'OffRamp': ['Nehmen Sie die Ausfahrt {modifier}', ' auf {road}'],\n\t\t\t\t'EndOfRoad': ['Fahren Sie {modifier} am Ende der Straße', ' auf {road}'],\n\t\t\t\t'Onto': 'auf {road}'\n\t\t\t},\n\t\t\tformatOrder: function(n) {\n\t\t\t\treturn n + '.';\n\t\t\t},\n\t\t\tui: {\n\t\t\t\tstartPlaceholder: 'Start',\n\t\t\t\tviaPlaceholder: 'Via {viaNumber}',\n\t\t\t\tendPlaceholder: 'Ziel'\n\t\t\t}\n\t\t},\n\n\t\t'sv': {\n\t\t\tdirections: {\n\t\t\t\tN: 'norr',\n\t\t\t\tNE: 'nordost',\n\t\t\t\tE: 'öst',\n\t\t\t\tSE: 'sydost',\n\t\t\t\tS: 'syd',\n\t\t\t\tSW: 'sydväst',\n\t\t\t\tW: 'väst',\n\t\t\t\tNW: 'nordväst',\n\t\t\t\tSlightRight: 'svagt höger',\n\t\t\t\tRight: 'höger',\n\t\t\t\tSharpRight: 'skarpt höger',\n\t\t\t\tSlightLeft: 'svagt vänster',\n\t\t\t\tLeft: 'vänster',\n\t\t\t\tSharpLeft: 'skarpt vänster',\n\t\t\t\tUturn: 'Vänd'\n\t\t\t},\n\t\t\tinstructions: {\n\t\t\t\t// instruction, postfix if the road is named\n\t\t\t\t'Head':\n\t\t\t\t\t['Åk åt {dir}', ' till {road}'],\n\t\t\t\t'Continue':\n\t\t\t\t\t['Fortsätt {dir}'],\n\t\t\t\t'SlightRight':\n\t\t\t\t\t['Svagt höger', ' till {road}'],\n\t\t\t\t'Right':\n\t\t\t\t\t['Sväng höger', ' till {road}'],\n\t\t\t\t'SharpRight':\n\t\t\t\t\t['Skarpt höger', ' till {road}'],\n\t\t\t\t'TurnAround':\n\t\t\t\t\t['Vänd'],\n\t\t\t\t'SharpLeft':\n\t\t\t\t\t['Skarpt vänster', ' till {road}'],\n\t\t\t\t'Left':\n\t\t\t\t\t['Sväng vänster', ' till {road}'],\n\t\t\t\t'SlightLeft':\n\t\t\t\t\t['Svagt vänster', ' till {road}'],\n\t\t\t\t'WaypointReached':\n\t\t\t\t\t['Viapunkt nådd'],\n\t\t\t\t'Roundabout':\n\t\t\t\t\t['Tag {exitStr} avfarten i rondellen', ' till {road}'],\n\t\t\t\t'DestinationReached':\n\t\t\t\t\t['Framme vid resans mål'],\n\t\t\t\t'Fork': ['Tag av {modifier}', ' till {road}'],\n\t\t\t\t'Merge': ['Anslut {modifier} ', ' till {road}'],\n\t\t\t\t'OnRamp': ['Tag påfarten {modifier}', ' till {road}'],\n\t\t\t\t'OffRamp': ['Tag avfarten {modifier}', ' till {road}'],\n\t\t\t\t'EndOfRoad': ['Sväng {modifier} vid vägens slut', ' till {road}'],\n\t\t\t\t'Onto': 'till {road}'\n\t\t\t},\n\t\t\tformatOrder: function(n) {\n\t\t\t\treturn ['första', 'andra', 'tredje', 'fjärde', 'femte',\n\t\t\t\t\t'sjätte', 'sjunde', 'åttonde', 'nionde', 'tionde'\n\t\t\t\t\t/* Can't possibly be more than ten exits, can there? */][n - 1];\n\t\t\t},\n\t\t\tui: {\n\t\t\t\tstartPlaceholder: 'Från',\n\t\t\t\tviaPlaceholder: 'Via {viaNumber}',\n\t\t\t\tendPlaceholder: 'Till'\n\t\t\t}\n\t\t},\n\n\t\t'es': spanish,\n\t\t'sp': spanish,\n\t\t\n\t\t'nl': {\n\t\t\tdirections: {\n\t\t\t\tN: 'noordelijke',\n\t\t\t\tNE: 'noordoostelijke',\n\t\t\t\tE: 'oostelijke',\n\t\t\t\tSE: 'zuidoostelijke',\n\t\t\t\tS: 'zuidelijke',\n\t\t\t\tSW: 'zuidewestelijke',\n\t\t\t\tW: 'westelijke',\n\t\t\t\tNW: 'noordwestelijke'\n\t\t\t},\n\t\t\tinstructions: {\n\t\t\t\t// instruction, postfix if the road is named\n\t\t\t\t'Head':\n\t\t\t\t\t['Vertrek in {dir} richting', ' de {road} op'],\n\t\t\t\t'Continue':\n\t\t\t\t\t['Ga in {dir} richting', ' de {road} op'],\n\t\t\t\t'SlightRight':\n\t\t\t\t\t['Volg de weg naar rechts', ' de {road} op'],\n\t\t\t\t'Right':\n\t\t\t\t\t['Ga rechtsaf', ' de {road} op'],\n\t\t\t\t'SharpRight':\n\t\t\t\t\t['Ga scherpe bocht naar rechts', ' de {road} op'],\n\t\t\t\t'TurnAround':\n\t\t\t\t\t['Keer om'],\n\t\t\t\t'SharpLeft':\n\t\t\t\t\t['Ga scherpe bocht naar links', ' de {road} op'],\n\t\t\t\t'Left':\n\t\t\t\t\t['Ga linksaf', ' de {road} op'],\n\t\t\t\t'SlightLeft':\n\t\t\t\t\t['Volg de weg naar links', ' de {road} op'],\n\t\t\t\t'WaypointReached':\n\t\t\t\t\t['Aangekomen bij tussenpunt'],\n\t\t\t\t'Roundabout':\n\t\t\t\t\t['Neem de {exitStr} afslag op de rotonde', ' de {road} op'],\n\t\t\t\t'DestinationReached':\n\t\t\t\t\t['Aangekomen op eindpunt'],\n\t\t\t},\n\t\t\tformatOrder: function(n) {\n\t\t\t\tif (n === 1 || n >= 20) {\n\t\t\t\t\treturn n + 'ste';\n\t\t\t\t} else {\n\t\t\t\t\treturn n + 'de';\n\t\t\t\t}\n\t\t\t},\n\t\t\tui: {\n\t\t\t\tstartPlaceholder: 'Vertrekpunt',\n\t\t\t\tviaPlaceholder: 'Via {viaNumber}',\n\t\t\t\tendPlaceholder: 'Bestemming'\n\t\t\t}\n\t\t},\n\t\t'fr': {\n\t\t\tdirections: {\n\t\t\t\tN: 'nord',\n\t\t\t\tNE: 'nord-est',\n\t\t\t\tE: 'est',\n\t\t\t\tSE: 'sud-est',\n\t\t\t\tS: 'sud',\n\t\t\t\tSW: 'sud-ouest',\n\t\t\t\tW: 'ouest',\n\t\t\t\tNW: 'nord-ouest'\n\t\t\t},\n\t\t\tinstructions: {\n\t\t\t\t// instruction, postfix if the road is named\n\t\t\t\t'Head':\n\t\t\t\t\t['Tout droit au {dir}', ' sur {road}'],\n\t\t\t\t'Continue':\n\t\t\t\t\t['Continuer au {dir}', ' sur {road}'],\n\t\t\t\t'SlightRight':\n\t\t\t\t\t['Légèrement à droite', ' sur {road}'],\n\t\t\t\t'Right':\n\t\t\t\t\t['A droite', ' sur {road}'],\n\t\t\t\t'SharpRight':\n\t\t\t\t\t['Complètement à droite', ' sur {road}'],\n\t\t\t\t'TurnAround':\n\t\t\t\t\t['Faire demi-tour'],\n\t\t\t\t'SharpLeft':\n\t\t\t\t\t['Complètement à gauche', ' sur {road}'],\n\t\t\t\t'Left':\n\t\t\t\t\t['A gauche', ' sur {road}'],\n\t\t\t\t'SlightLeft':\n\t\t\t\t\t['Légèrement à gauche', ' sur {road}'],\n\t\t\t\t'WaypointReached':\n\t\t\t\t\t['Point d\\'étape atteint'],\n\t\t\t\t'Roundabout':\n\t\t\t\t\t['Au rond-point, prenez la {exitStr} sortie', ' sur {road}'],\n\t\t\t\t'DestinationReached':\n\t\t\t\t\t['Destination atteinte'],\n\t\t\t},\n\t\t\tformatOrder: function(n) {\n\t\t\t\treturn n + 'º';\n\t\t\t},\n\t\t\tui: {\n\t\t\t\tstartPlaceholder: 'Départ',\n\t\t\t\tviaPlaceholder: 'Intermédiaire {viaNumber}',\n\t\t\t\tendPlaceholder: 'Arrivée'\n\t\t\t}\n\t\t},\n\t\t'it': {\n\t\t\tdirections: {\n\t\t\t\tN: 'nord',\n\t\t\t\tNE: 'nord-est',\n\t\t\t\tE: 'est',\n\t\t\t\tSE: 'sud-est',\n\t\t\t\tS: 'sud',\n\t\t\t\tSW: 'sud-ovest',\n\t\t\t\tW: 'ovest',\n\t\t\t\tNW: 'nord-ovest'\n\t\t\t},\n\t\t\tinstructions: {\n\t\t\t\t// instruction, postfix if the road is named\n\t\t\t\t'Head':\n\t\t\t\t\t['Dritto verso {dir}', ' su {road}'],\n\t\t\t\t'Continue':\n\t\t\t\t\t['Continuare verso {dir}', ' su {road}'],\n\t\t\t\t'SlightRight':\n\t\t\t\t\t['Mantenere la destra', ' su {road}'],\n\t\t\t\t'Right':\n\t\t\t\t\t['A destra', ' su {road}'],\n\t\t\t\t'SharpRight':\n\t\t\t\t\t['Strettamente a destra', ' su {road}'],\n\t\t\t\t'TurnAround':\n\t\t\t\t\t['Fare inversione di marcia'],\n\t\t\t\t'SharpLeft':\n\t\t\t\t\t['Strettamente a sinistra', ' su {road}'],\n\t\t\t\t'Left':\n\t\t\t\t\t['A sinistra', ' sur {road}'],\n\t\t\t\t'SlightLeft':\n\t\t\t\t\t['Mantenere la sinistra', ' su {road}'],\n\t\t\t\t'WaypointReached':\n\t\t\t\t\t['Punto di passaggio raggiunto'],\n\t\t\t\t'Roundabout':\n\t\t\t\t\t['Alla rotonda, prendere la {exitStr} uscita'],\n\t\t\t\t'DestinationReached':\n\t\t\t\t\t['Destinazione raggiunta'],\n\t\t\t},\n\t\t\tformatOrder: function(n) {\n\t\t\t\treturn n + 'º';\n\t\t\t},\n\t\t\tui: {\n\t\t\t\tstartPlaceholder: 'Partenza',\n\t\t\t\tviaPlaceholder: 'Intermedia {viaNumber}',\n\t\t\t\tendPlaceholder: 'Destinazione'\n\t\t\t}\n\t\t},\n\t\t'pt': {\n\t\t\tdirections: {\n\t\t\t\tN: 'norte',\n\t\t\t\tNE: 'nordeste',\n\t\t\t\tE: 'leste',\n\t\t\t\tSE: 'sudeste',\n\t\t\t\tS: 'sul',\n\t\t\t\tSW: 'sudoeste',\n\t\t\t\tW: 'oeste',\n\t\t\t\tNW: 'noroeste',\n\t\t\t\tSlightRight: 'curva ligeira a direita',\n\t\t\t\tRight: 'direita',\n\t\t\t\tSharpRight: 'curva fechada a direita',\n\t\t\t\tSlightLeft: 'ligeira a esquerda',\n\t\t\t\tLeft: 'esquerda',\n\t\t\t\tSharpLeft: 'curva fechada a esquerda',\n\t\t\t\tUturn: 'Meia volta'\n\t\t\t},\n\t\t\tinstructions: {\n\t\t\t\t// instruction, postfix if the road is named\n\t\t\t\t'Head':\n\t\t\t\t\t['Siga {dir}', ' na {road}'],\n\t\t\t\t'Continue':\n\t\t\t\t\t['Continue {dir}', ' na {road}'],\n\t\t\t\t'SlightRight':\n\t\t\t\t\t['Curva ligeira a direita', ' na {road}'],\n\t\t\t\t'Right':\n\t\t\t\t\t['Curva a direita', ' na {road}'],\n\t\t\t\t'SharpRight':\n\t\t\t\t\t['Curva fechada a direita', ' na {road}'],\n\t\t\t\t'TurnAround':\n\t\t\t\t\t['Retorne'],\n\t\t\t\t'SharpLeft':\n\t\t\t\t\t['Curva fechada a esquerda', ' na {road}'],\n\t\t\t\t'Left':\n\t\t\t\t\t['Curva a esquerda', ' na {road}'],\n\t\t\t\t'SlightLeft':\n\t\t\t\t\t['Curva ligueira a esquerda', ' na {road}'],\n\t\t\t\t'WaypointReached':\n\t\t\t\t\t['Ponto de interesse atingido'],\n\t\t\t\t'Roundabout':\n\t\t\t\t\t['Pegue a {exitStr} saída na rotatória', ' na {road}'],\n\t\t\t\t'DestinationReached':\n\t\t\t\t\t['Destino atingido'],\n\t\t\t\t'Fork': ['Na encruzilhada, vire a {modifier}', ' na {road}'],\n\t\t\t\t'Merge': ['Entre à {modifier}', ' na {road}'],\n\t\t\t\t'OnRamp': ['Vire {modifier} na rampa', ' na {road}'],\n\t\t\t\t'OffRamp': ['Entre na rampa na {modifier}', ' na {road}'],\n\t\t\t\t'EndOfRoad': ['Vire {modifier} no fim da rua', ' na {road}'],\n\t\t\t\t'Onto': 'na {road}'\n\t\t\t},\n\t\t\tformatOrder: function(n) {\n\t\t\t\treturn n + 'º';\n\t\t\t},\n\t\t\tui: {\n\t\t\t\tstartPlaceholder: 'Origem',\n\t\t\t\tviaPlaceholder: 'Intermédio {viaNumber}',\n\t\t\t\tendPlaceholder: 'Destino'\n\t\t\t}\n\t\t},\n\t\t'sk': {\n\t\t\tdirections: {\n\t\t\t\tN: 'sever',\n\t\t\t\tNE: 'serverovýchod',\n\t\t\t\tE: 'východ',\n\t\t\t\tSE: 'juhovýchod',\n\t\t\t\tS: 'juh',\n\t\t\t\tSW: 'juhozápad',\n\t\t\t\tW: 'západ',\n\t\t\t\tNW: 'serverozápad'\n\t\t\t},\n\t\t\tinstructions: {\n\t\t\t\t// instruction, postfix if the road is named\n\t\t\t\t'Head':\n\t\t\t\t\t['Mierte na {dir}', ' na {road}'],\n\t\t\t\t'Continue':\n\t\t\t\t\t['Pokračujte na {dir}', ' na {road}'],\n\t\t\t\t'SlightRight':\n\t\t\t\t\t['Mierne doprava', ' na {road}'],\n\t\t\t\t'Right':\n\t\t\t\t\t['Doprava', ' na {road}'],\n\t\t\t\t'SharpRight':\n\t\t\t\t\t['Prudko doprava', ' na {road}'],\n\t\t\t\t'TurnAround':\n\t\t\t\t\t['Otočte sa'],\n\t\t\t\t'SharpLeft':\n\t\t\t\t\t['Prudko doľava', ' na {road}'],\n\t\t\t\t'Left':\n\t\t\t\t\t['Doľava', ' na {road}'],\n\t\t\t\t'SlightLeft':\n\t\t\t\t\t['Mierne doľava', ' na {road}'],\n\t\t\t\t'WaypointReached':\n\t\t\t\t\t['Ste v prejazdovom bode.'],\n\t\t\t\t'Roundabout':\n\t\t\t\t\t['Odbočte na {exitStr} výjazde', ' na {road}'],\n\t\t\t\t'DestinationReached':\n\t\t\t\t\t['Prišli ste do cieľa.'],\n\t\t\t},\n\t\t\tformatOrder: function(n) {\n\t\t\t\tvar i = n % 10 - 1,\n\t\t\t\tsuffix = ['.', '.', '.'];\n\n\t\t\t\treturn suffix[i] ? n + suffix[i] : n + '.';\n\t\t\t},\n\t\t\tui: {\n\t\t\t\tstartPlaceholder: 'Začiatok',\n\t\t\t\tviaPlaceholder: 'Cez {viaNumber}',\n\t\t\t\tendPlaceholder: 'Koniec'\n\t\t\t}\n\t\t},\n\t\t'el': {\n\t\t\tdirections: {\n\t\t\t\tN: 'βόρεια',\n\t\t\t\tNE: 'βορειοανατολικά',\n\t\t\t\tE: 'ανατολικά',\n\t\t\t\tSE: 'νοτιοανατολικά',\n\t\t\t\tS: 'νότια',\n\t\t\t\tSW: 'νοτιοδυτικά',\n\t\t\t\tW: 'δυτικά',\n\t\t\t\tNW: 'βορειοδυτικά'\n\t\t\t},\n\t\t\tinstructions: {\n\t\t\t\t// instruction, postfix if the road is named\n\t\t\t\t'Head':\n\t\t\t\t\t['Κατευθυνθείτε {dir}', ' στην {road}'],\n\t\t\t\t'Continue':\n\t\t\t\t\t['Συνεχίστε {dir}', ' στην {road}'],\n\t\t\t\t'SlightRight':\n\t\t\t\t\t['Ελαφρώς δεξιά', ' στην {road}'],\n\t\t\t\t'Right':\n\t\t\t\t\t['Δεξιά', ' στην {road}'],\n\t\t\t\t'SharpRight':\n\t\t\t\t\t['Απότομη δεξιά στροφή', ' στην {road}'],\n\t\t\t\t'TurnAround':\n\t\t\t\t\t['Κάντε αναστροφή'],\n\t\t\t\t'SharpLeft':\n\t\t\t\t\t['Απότομη αριστερή στροφή', ' στην {road}'],\n\t\t\t\t'Left':\n\t\t\t\t\t['Αριστερά', ' στην {road}'],\n\t\t\t\t'SlightLeft':\n\t\t\t\t\t['Ελαφρώς αριστερά', ' στην {road}'],\n\t\t\t\t'WaypointReached':\n\t\t\t\t\t['Φτάσατε στο σημείο αναφοράς'],\n\t\t\t\t'Roundabout':\n\t\t\t\t\t['Ακολουθήστε την {exitStr} έξοδο στο κυκλικό κόμβο', ' στην {road}'],\n\t\t\t\t'DestinationReached':\n\t\t\t\t\t['Φτάσατε στον προορισμό σας'],\n\t\t\t},\n\t\t\tformatOrder: function(n) {\n\t\t\t\treturn n + 'º';\n\t\t\t},\n\t\t\tui: {\n\t\t\t\tstartPlaceholder: 'Αφετηρία',\n\t\t\t\tviaPlaceholder: 'μέσω {viaNumber}',\n\t\t\t\tendPlaceholder: 'Προορισμός'\n\t\t\t}\n\t\t},\n\t\t'ca': {\n\t\t\tdirections: {\n\t\t\t\tN: 'nord',\n\t\t\t\tNE: 'nord-est',\n\t\t\t\tE: 'est',\n\t\t\t\tSE: 'sud-est',\n\t\t\t\tS: 'sud',\n\t\t\t\tSW: 'sud-oest',\n\t\t\t\tW: 'oest',\n\t\t\t\tNW: 'nord-oest',\n\t\t\t\tSlightRight: 'lleu gir a la dreta',\n\t\t\t\tRight: 'dreta',\n\t\t\t\tSharpRight: 'gir pronunciat a la dreta',\n\t\t\t\tSlightLeft: 'gir pronunciat a l\\'esquerra',\n\t\t\t\tLeft: 'esquerra',\n\t\t\t\tSharpLeft: 'lleu gir a l\\'esquerra',\n\t\t\t\tUturn: 'mitja volta'\n\t\t\t},\n\t\t\tinstructions: {\n\t\t\t\t'Head':\n\t\t\t\t\t['Recte {dir}', ' sobre {road}'],\n\t\t\t\t'Continue':\n\t\t\t\t\t['Continuar {dir}'],\n\t\t\t\t'TurnAround':\n\t\t\t\t\t['Donar la volta'],\n\t\t\t\t'WaypointReached':\n\t\t\t\t\t['Ha arribat a un punt del camí'],\n\t\t\t\t'Roundabout':\n\t\t\t\t\t['Agafar {exitStr} sortida a la rotonda', ' a {road}'],\n\t\t\t\t'DestinationReached':\n\t\t\t\t\t['Arribada al destí'],\n\t\t\t\t'Fork': ['A la cruïlla gira a la {modifier}', ' cap a {road}'],\n\t\t\t\t'Merge': ['Incorpora\\'t {modifier}', ' a {road}'],\n\t\t\t\t'OnRamp': ['Gira {modifier} a la sortida', ' cap a {road}'],\n\t\t\t\t'OffRamp': ['Pren la sortida {modifier}', ' cap a {road}'],\n\t\t\t\t'EndOfRoad': ['Gira {modifier} al final de la carretera', ' cap a {road}'],\n\t\t\t\t'Onto': 'cap a {road}'\n\t\t\t},\n\t\t\tformatOrder: function(n) {\n\t\t\t\treturn n + 'º';\n\t\t\t},\n\t\t\tui: {\n\t\t\t\tstartPlaceholder: 'Origen',\n\t\t\t\tviaPlaceholder: 'Via {viaNumber}',\n\t\t\t\tendPlaceholder: 'Destí'\n\t\t\t},\n\t\t\tunits: {\n\t\t\t\tmeters: 'm',\n\t\t\t\tkilometers: 'km',\n\t\t\t\tyards: 'yd',\n\t\t\t\tmiles: 'mi',\n\t\t\t\thours: 'h',\n\t\t\t\tminutes: 'min',\n\t\t\t\tseconds: 's'\n\t\t\t}\n\t\t},\n\t\t'ru': {\n\t\t\tdirections: {\n\t\t\t\tN: 'север',\n\t\t\t\tNE: 'северовосток',\n\t\t\t\tE: 'восток',\n\t\t\t\tSE: 'юговосток',\n\t\t\t\tS: 'юг',\n\t\t\t\tSW: 'югозапад',\n\t\t\t\tW: 'запад',\n\t\t\t\tNW: 'северозапад',\n\t\t\t\tSlightRight: 'плавно направо',\n\t\t\t\tRight: 'направо',\n\t\t\t\tSharpRight: 'резко направо',\n\t\t\t\tSlightLeft: 'плавно налево',\n\t\t\t\tLeft: 'налево',\n\t\t\t\tSharpLeft: 'резко налево',\n\t\t\t\tUturn: 'развернуться'\n\t\t\t},\n\t\t\tinstructions: {\n\t\t\t\t'Head':\n\t\t\t\t\t['Начать движение на {dir}', ' по {road}'],\n\t\t\t\t'Continue':\n\t\t\t\t\t['Продолжать движение на {dir}', ' по {road}'],\n\t\t\t\t'SlightRight':\n\t\t\t\t\t['Плавный поворот направо', ' на {road}'],\n\t\t\t\t'Right':\n\t\t\t\t\t['Направо', ' на {road}'],\n\t\t\t\t'SharpRight':\n\t\t\t\t\t['Резкий поворот направо', ' на {road}'],\n\t\t\t\t'TurnAround':\n\t\t\t\t\t['Развернуться'],\n\t\t\t\t'SharpLeft':\n\t\t\t\t\t['Резкий поворот налево', ' на {road}'],\n\t\t\t\t'Left':\n\t\t\t\t\t['Поворот налево', ' на {road}'],\n\t\t\t\t'SlightLeft':\n\t\t\t\t\t['Плавный поворот налево', ' на {road}'],\n\t\t\t\t'WaypointReached':\n\t\t\t\t\t['Точка достигнута'],\n\t\t\t\t'Roundabout':\n\t\t\t\t\t['{exitStr} съезд с кольца', ' на {road}'],\n\t\t\t\t'DestinationReached':\n\t\t\t\t\t['Окончание маршрута'],\n\t\t\t\t'Fork': ['На развилке поверните {modifier}', ' на {road}'],\n\t\t\t\t'Merge': ['Перестройтесь {modifier}', ' на {road}'],\n\t\t\t\t'OnRamp': ['Поверните {modifier} на съезд', ' на {road}'],\n\t\t\t\t'OffRamp': ['Съезжайте на {modifier}', ' на {road}'],\n\t\t\t\t'EndOfRoad': ['Поверните {modifier} в конце дороги', ' на {road}'],\n\t\t\t\t'Onto': 'на {road}'\n\t\t\t},\n\t\t\tformatOrder: function(n) {\n\t\t\t\treturn n + '-й';\n\t\t\t},\n\t\t\tui: {\n\t\t\t\tstartPlaceholder: 'Начало',\n\t\t\t\tviaPlaceholder: 'Через {viaNumber}',\n\t\t\t\tendPlaceholder: 'Конец'\n\t\t\t},\n\t\t\tunits: {\n\t\t\t\tmeters: 'м',\n\t\t\t\tkilometers: 'км',\n\t\t\t\tyards: 'ярд',\n\t\t\t\tmiles: 'ми',\n\t\t\t\thours: 'ч',\n\t\t\t\tminutes: 'м',\n\t\t\t\tseconds: 'с'\n\t\t\t}\n\t\t},\n \n 'pl': {\n\t\t\tdirections: {\n\t\t\t\tN: 'północ',\n\t\t\t\tNE: 'północny wschód',\n\t\t\t\tE: 'wschód',\n\t\t\t\tSE: 'południowy wschód',\n\t\t\t\tS: 'południe',\n\t\t\t\tSW: 'południowy zachód',\n\t\t\t\tW: 'zachód',\n\t\t\t\tNW: 'północny zachód',\n\t\t\t\tSlightRight: 'lekko w prawo',\n\t\t\t\tRight: 'w prawo',\n\t\t\t\tSharpRight: 'ostro w prawo',\n\t\t\t\tSlightLeft: 'lekko w lewo',\n\t\t\t\tLeft: 'w lewo',\n\t\t\t\tSharpLeft: 'ostro w lewo',\n\t\t\t\tUturn: 'zawróć'\n\t\t\t},\n\t\t\tinstructions: {\n\t\t\t\t// instruction, postfix if the road is named\n\t\t\t\t'Head':\n\t\t\t\t\t['Kieruj się na {dir}', ' na {road}'],\n\t\t\t\t'Continue':\n\t\t\t\t\t['Jedź dalej przez {dir}'],\n\t\t\t\t'TurnAround':\n\t\t\t\t\t['Zawróć'],\n\t\t\t\t'WaypointReached':\n\t\t\t\t\t['Punkt pośredni'],\n\t\t\t\t'Roundabout':\n\t\t\t\t\t['Wyjedź {exitStr} zjazdem na rondzie', ' na {road}'],\n\t\t\t\t'DestinationReached':\n\t\t\t\t\t['Dojechano do miejsca docelowego'],\n\t\t\t\t'Fork': ['Na rozwidleniu {modifier}', ' na {road}'],\n\t\t\t\t'Merge': ['Zjedź {modifier}', ' na {road}'],\n\t\t\t\t'OnRamp': ['Wjazd {modifier}', ' na {road}'],\n\t\t\t\t'OffRamp': ['Zjazd {modifier}', ' na {road}'],\n\t\t\t\t'EndOfRoad': ['Skręć {modifier} na końcu drogi', ' na {road}'],\n\t\t\t\t'Onto': 'na {road}'\n\t\t\t},\n\t\t\tformatOrder: function(n) {\n\t\t\t\treturn n + '.';\n\t\t\t},\n\t\t\tui: {\n\t\t\t\tstartPlaceholder: 'Początek',\n\t\t\t\tviaPlaceholder: 'Przez {viaNumber}',\n\t\t\t\tendPlaceholder: 'Koniec'\n\t\t\t},\n\t\t\tunits: {\n\t\t\t\tmeters: 'm',\n\t\t\t\tkilometers: 'km',\n\t\t\t\tyards: 'yd',\n\t\t\t\tmiles: 'mi',\n\t\t\t\thours: 'godz',\n\t\t\t\tminutes: 'min',\n\t\t\t\tseconds: 's'\n\t\t\t}\n\t\t}\n\t});\n})();\n"
},
{
"id": 44,
"identifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/waypoint.js",
"name": "./node_modules/leaflet-routing-machine/src/waypoint.js",
"index": 153,
"index2": 146,
"size": 291,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/index.js",
"issuerId": 160,
"issuerName": "./node_modules/leaflet-routing-machine/src/index.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 146,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"name": "./src/modules/Router.js"
},
{
"id": 160,
"identifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/index.js",
"name": "./node_modules/leaflet-routing-machine/src/index.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 45,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/osrm-v1.js",
"module": "./node_modules/leaflet-routing-machine/src/osrm-v1.js",
"moduleName": "./node_modules/leaflet-routing-machine/src/osrm-v1.js",
"type": "cjs require",
"userRequest": "./waypoint",
"loc": "16:16-37"
},
{
"moduleId": 71,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/plan.js",
"module": "./node_modules/leaflet-routing-machine/src/plan.js",
"moduleName": "./node_modules/leaflet-routing-machine/src/plan.js",
"type": "cjs require",
"userRequest": "./waypoint",
"loc": "6:16-37"
},
{
"moduleId": 160,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/index.js",
"module": "./node_modules/leaflet-routing-machine/src/index.js",
"moduleName": "./node_modules/leaflet-routing-machine/src/index.js",
"type": "cjs require",
"userRequest": "./waypoint",
"loc": "7:15-36"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 5,
"source": "(function() {\n\t'use strict';\n\n\tvar L = require('leaflet');\n\n\tmodule.exports = L.Class.extend({\n\t\toptions: {\n\t\t\tallowUTurn: false,\n\t\t},\n\t\tinitialize: function(latLng, name, options) {\n\t\t\tL.Util.setOptions(this, options);\n\t\t\tthis.latLng = L.latLng(latLng);\n\t\t\tthis.name = name;\n\t\t}\n\t});\n})();\n"
},
{
"id": 45,
"identifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/osrm-v1.js",
"name": "./node_modules/leaflet-routing-machine/src/osrm-v1.js",
"index": 154,
"index2": 150,
"size": 9870,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/index.js",
"issuerId": 160,
"issuerName": "./node_modules/leaflet-routing-machine/src/index.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 146,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"name": "./src/modules/Router.js"
},
{
"id": 160,
"identifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/index.js",
"name": "./node_modules/leaflet-routing-machine/src/index.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 160,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/index.js",
"module": "./node_modules/leaflet-routing-machine/src/index.js",
"moduleName": "./node_modules/leaflet-routing-machine/src/index.js",
"type": "cjs require",
"userRequest": "./osrm-v1",
"loc": "5:13-33"
},
{
"moduleId": 161,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/control.js",
"module": "./node_modules/leaflet-routing-machine/src/control.js",
"moduleName": "./node_modules/leaflet-routing-machine/src/control.js",
"type": "cjs require",
"userRequest": "./osrm-v1",
"loc": "9:14-34"
},
{
"moduleId": 164,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/mapbox.js",
"module": "./node_modules/leaflet-routing-machine/src/mapbox.js",
"moduleName": "./node_modules/leaflet-routing-machine/src/mapbox.js",
"type": "cjs require",
"userRequest": "./osrm-v1",
"loc": "6:14-34"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 5,
"source": "(function() {\n\t'use strict';\n\n\tvar L = require('leaflet'),\n\t\tcorslite = require('@mapbox/corslite'),\n\t\tpolyline = require('@mapbox/polyline');\n\t\t// osrmTextInstructions = require('osrm-text-instructions')('v5');\n const osrmTextInstructions = {\n compile: () => {},\n };\n\n\t// Ignore camelcase naming for this file, since OSRM's API uses\n\t// underscores.\n\t/* jshint camelcase: false */\n\n\tvar Waypoint = require('./waypoint');\n\n\t/**\n\t * Works against OSRM's new API in version 5.0; this has\n\t * the API version v1.\n\t */\n\tmodule.exports = L.Class.extend({\n\t\toptions: {\n\t\t\tserviceUrl: 'https://router.project-osrm.org/route/v1',\n\t\t\tprofile: 'driving',\n\t\t\ttimeout: 30 * 1000,\n\t\t\troutingOptions: {\n\t\t\t\talternatives: true,\n\t\t\t\tsteps: true\n\t\t\t},\n\t\t\tpolylinePrecision: 5,\n\t\t\tuseHints: true,\n\t\t\tsuppressDemoServerWarning: false,\n\t\t\tlanguage: 'en'\n\t\t},\n\n\t\tinitialize: function(options) {\n\t\t\tL.Util.setOptions(this, options);\n\t\t\tthis._hints = {\n\t\t\t\tlocations: {}\n\t\t\t};\n\n\t\t\tif (!this.options.suppressDemoServerWarning &&\n\t\t\t\tthis.options.serviceUrl.indexOf('//router.project-osrm.org') >= 0) {\n\t\t\t\tconsole.warn('You are using OSRM\\'s demo server. ' +\n\t\t\t\t\t'Please note that it is **NOT SUITABLE FOR PRODUCTION USE**.\\n' +\n\t\t\t\t\t'Refer to the demo server\\'s usage policy: ' +\n\t\t\t\t\t'https://github.com/Project-OSRM/osrm-backend/wiki/Api-usage-policy\\n\\n' +\n\t\t\t\t\t'To change, set the serviceUrl option.\\n\\n' +\n\t\t\t\t\t'Please do not report issues with this server to neither ' +\n\t\t\t\t\t'Leaflet Routing Machine or OSRM - it\\'s for\\n' +\n\t\t\t\t\t'demo only, and will sometimes not be available, or work in ' +\n\t\t\t\t\t'unexpected ways.\\n\\n' +\n\t\t\t\t\t'Please set up your own OSRM server, or use a paid service ' +\n\t\t\t\t\t'provider for production.');\n\t\t\t}\n\t\t},\n\n\t\troute: function(waypoints, callback, context, options) {\n\t\t\tvar timedOut = false,\n\t\t\t\twps = [],\n\t\t\t\turl,\n\t\t\t\ttimer,\n\t\t\t\twp,\n\t\t\t\ti,\n\t\t\t\txhr;\n\n\t\t\toptions = L.extend({}, this.options.routingOptions, options);\n\t\t\turl = this.buildRouteUrl(waypoints, options);\n\t\t\tif (this.options.requestParameters) {\n\t\t\t\turl += L.Util.getParamString(this.options.requestParameters, url);\n\t\t\t}\n\n\t\t\ttimer = setTimeout(function() {\n\t\t\t\ttimedOut = true;\n\t\t\t\tcallback.call(context || callback, {\n\t\t\t\t\tstatus: -1,\n\t\t\t\t\tmessage: 'OSRM request timed out.'\n\t\t\t\t});\n\t\t\t}, this.options.timeout);\n\n\t\t\t// Create a copy of the waypoints, since they\n\t\t\t// might otherwise be asynchronously modified while\n\t\t\t// the request is being processed.\n\t\t\tfor (i = 0; i < waypoints.length; i++) {\n\t\t\t\twp = waypoints[i];\n\t\t\t\twps.push(new Waypoint(wp.latLng, wp.name, wp.options));\n\t\t\t}\n\n\t\t\treturn xhr = corslite(url, L.bind(function(err, resp) {\n\t\t\t\tvar data,\n\t\t\t\t\terror = {};\n\n\t\t\t\tclearTimeout(timer);\n\t\t\t\tif (!timedOut) {\n\t\t\t\t\tif (!err) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tdata = JSON.parse(resp.responseText);\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\treturn this._routeDone(data, wps, options, callback, context);\n\t\t\t\t\t\t\t} catch (ex) {\n\t\t\t\t\t\t\t\terror.status = -3;\n\t\t\t\t\t\t\t\terror.message = ex.toString();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (ex) {\n\t\t\t\t\t\t\terror.status = -2;\n\t\t\t\t\t\t\terror.message = 'Error parsing OSRM response: ' + ex.toString();\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\terror.message = 'HTTP request failed: ' + err.type +\n\t\t\t\t\t\t\t(err.target && err.target.status ? ' HTTP ' + err.target.status + ': ' + err.target.statusText : '');\n\t\t\t\t\t\terror.url = url;\n\t\t\t\t\t\terror.status = -1;\n\t\t\t\t\t\terror.target = err;\n\t\t\t\t\t}\n\n\t\t\t\t\tcallback.call(context || callback, error);\n\t\t\t\t} else {\n\t\t\t\t\txhr.abort();\n\t\t\t\t}\n\t\t\t}, this));\n\t\t},\n\n\t\trequiresMoreDetail: function(route, zoom, bounds) {\n\t\t\tif (!route.properties.isSimplified) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tvar waypoints = route.inputWaypoints,\n\t\t\t\ti;\n\t\t\tfor (i = 0; i < waypoints.length; ++i) {\n\t\t\t\tif (!bounds.contains(waypoints[i].latLng)) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn false;\n\t\t},\n\n\t\t_routeDone: function(response, inputWaypoints, options, callback, context) {\n\t\t\tvar alts = [],\n\t\t\t actualWaypoints,\n\t\t\t i,\n\t\t\t route;\n\n\t\t\tcontext = context || callback;\n\t\t\tif (response.code !== 'Ok') {\n\t\t\t\tcallback.call(context, {\n\t\t\t\t\tstatus: response.code\n\t\t\t\t});\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tactualWaypoints = this._toWaypoints(inputWaypoints, response.waypoints);\n\n\t\t\tfor (i = 0; i < response.routes.length; i++) {\n\t\t\t\troute = this._convertRoute(response.routes[i]);\n\t\t\t\troute.inputWaypoints = inputWaypoints;\n\t\t\t\troute.waypoints = actualWaypoints;\n\t\t\t\troute.properties = {isSimplified: !options || !options.geometryOnly || options.simplifyGeometry};\n\t\t\t\talts.push(route);\n\t\t\t}\n\n\t\t\tthis._saveHintData(response.waypoints, inputWaypoints);\n\n\t\t\tcallback.call(context, null, alts);\n\t\t},\n\n\t\t_convertRoute: function(responseRoute) {\n\t\t\tvar result = {\n\t\t\t\t\tname: '',\n\t\t\t\t\tcoordinates: [],\n\t\t\t\t\tinstructions: [],\n\t\t\t\t\tsummary: {\n\t\t\t\t\t\ttotalDistance: responseRoute.distance,\n\t\t\t\t\t\ttotalTime: responseRoute.duration\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\tlegNames = [],\n\t\t\t\twaypointIndices = [],\n\t\t\t\tindex = 0,\n\t\t\t\tlegCount = responseRoute.legs.length,\n\t\t\t\thasSteps = responseRoute.legs[0].steps.length > 0,\n\t\t\t\ti,\n\t\t\t\tj,\n\t\t\t\tleg,\n\t\t\t\tstep,\n\t\t\t\tgeometry,\n\t\t\t\ttype,\n\t\t\t\tmodifier,\n\t\t\t\ttext,\n\t\t\t\tstepToText;\n\n\t\t\tif (this.options.stepToText) {\n\t\t\t\tstepToText = this.options.stepToText;\n\t\t\t} else {\n\t\t\t\tstepToText = L.bind(osrmTextInstructions.compile, osrmTextInstructions, this.options.language);\n\t\t\t}\n\n\t\t\tfor (i = 0; i < legCount; i++) {\n\t\t\t\tleg = responseRoute.legs[i];\n\t\t\t\tlegNames.push(leg.summary && leg.summary.charAt(0).toUpperCase() + leg.summary.substring(1));\n\t\t\t\tfor (j = 0; j < leg.steps.length; j++) {\n\t\t\t\t\tstep = leg.steps[j];\n\t\t\t\t\tgeometry = this._decodePolyline(step.geometry);\n\t\t\t\t\tresult.coordinates.push.apply(result.coordinates, geometry);\n\t\t\t\t\ttype = this._maneuverToInstructionType(step.maneuver, i === legCount - 1);\n\t\t\t\t\tmodifier = this._maneuverToModifier(step.maneuver);\n\t\t\t\t\ttext = stepToText(step, {legCount: legCount, legIndex: i});\n\n\t\t\t\t\tif (type) {\n\t\t\t\t\t\tif ((i == 0 && step.maneuver.type == 'depart') || step.maneuver.type == 'arrive') {\n\t\t\t\t\t\t\twaypointIndices.push(index);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tresult.instructions.push({\n\t\t\t\t\t\t\ttype: type,\n\t\t\t\t\t\t\tdistance: step.distance,\n\t\t\t\t\t\t\ttime: step.duration,\n\t\t\t\t\t\t\troad: step.name,\n\t\t\t\t\t\t\tdirection: this._bearingToDirection(step.maneuver.bearing_after),\n\t\t\t\t\t\t\texit: step.maneuver.exit,\n\t\t\t\t\t\t\tindex: index,\n\t\t\t\t\t\t\tmode: step.mode,\n\t\t\t\t\t\t\tmodifier: modifier,\n\t\t\t\t\t\t\ttext: text\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\n\t\t\t\t\tindex += geometry.length;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tresult.name = legNames.join(', ');\n\t\t\tif (!hasSteps) {\n\t\t\t\tresult.coordinates = this._decodePolyline(responseRoute.geometry);\n\t\t\t} else {\n\t\t\t\tresult.waypointIndices = waypointIndices;\n\t\t\t}\n\n\t\t\treturn result;\n\t\t},\n\n\t\t_bearingToDirection: function(bearing) {\n\t\t\tvar oct = Math.round(bearing / 45) % 8;\n\t\t\treturn ['N', 'NE', 'E', 'SE', 'S', 'SW', 'W', 'NW'][oct];\n\t\t},\n\n\t\t_maneuverToInstructionType: function(maneuver, lastLeg) {\n\t\t\tswitch (maneuver.type) {\n\t\t\tcase 'new name':\n\t\t\t\treturn 'Continue';\n\t\t\tcase 'depart':\n\t\t\t\treturn 'Head';\n\t\t\tcase 'arrive':\n\t\t\t\treturn lastLeg ? 'DestinationReached' : 'WaypointReached';\n\t\t\tcase 'roundabout':\n\t\t\tcase 'rotary':\n\t\t\t\treturn 'Roundabout';\n\t\t\tcase 'merge':\n\t\t\tcase 'fork':\n\t\t\tcase 'on ramp':\n\t\t\tcase 'off ramp':\n\t\t\tcase 'end of road':\n\t\t\t\treturn this._camelCase(maneuver.type);\n\t\t\t// These are all reduced to the same instruction in the current model\n\t\t\t//case 'turn':\n\t\t\t//case 'ramp': // deprecated in v5.1\n\t\t\tdefault:\n\t\t\t\treturn this._camelCase(maneuver.modifier);\n\t\t\t}\n\t\t},\n\n\t\t_maneuverToModifier: function(maneuver) {\n\t\t\tvar modifier = maneuver.modifier;\n\n\t\t\tswitch (maneuver.type) {\n\t\t\tcase 'merge':\n\t\t\tcase 'fork':\n\t\t\tcase 'on ramp':\n\t\t\tcase 'off ramp':\n\t\t\tcase 'end of road':\n\t\t\t\tmodifier = this._leftOrRight(modifier);\n\t\t\t}\n\n\t\t\treturn modifier && this._camelCase(modifier);\n\t\t},\n\n\t\t_camelCase: function(s) {\n\t\t\tvar words = s.split(' '),\n\t\t\t\tresult = '';\n\t\t\tfor (var i = 0, l = words.length; i < l; i++) {\n\t\t\t\tresult += words[i].charAt(0).toUpperCase() + words[i].substring(1);\n\t\t\t}\n\n\t\t\treturn result;\n\t\t},\n\n\t\t_leftOrRight: function(d) {\n\t\t\treturn d.indexOf('left') >= 0 ? 'Left' : 'Right';\n\t\t},\n\n\t\t_decodePolyline: function(routeGeometry) {\n\t\t\tvar cs = polyline.decode(routeGeometry, this.options.polylinePrecision),\n\t\t\t\tresult = new Array(cs.length),\n\t\t\t\ti;\n\t\t\tfor (i = cs.length - 1; i >= 0; i--) {\n\t\t\t\tresult[i] = L.latLng(cs[i]);\n\t\t\t}\n\n\t\t\treturn result;\n\t\t},\n\n\t\t_toWaypoints: function(inputWaypoints, vias) {\n\t\t\tvar wps = [],\n\t\t\t i,\n\t\t\t viaLoc;\n\t\t\tfor (i = 0; i < vias.length; i++) {\n\t\t\t\tviaLoc = vias[i].location;\n\t\t\t\twps.push(new Waypoint(L.latLng(viaLoc[1], viaLoc[0]),\n\t\t\t\t inputWaypoints[i].name,\n\t\t\t\t\t\t\t\t\t\t\tinputWaypoints[i].options));\n\t\t\t}\n\n\t\t\treturn wps;\n\t\t},\n\n\t\tbuildRouteUrl: function(waypoints, options) {\n\t\t\tvar locs = [],\n\t\t\t\thints = [],\n\t\t\t\twp,\n\t\t\t\tlatLng,\n\t\t\t computeInstructions,\n\t\t\t computeAlternative = true;\n\n\t\t\tfor (var i = 0; i < waypoints.length; i++) {\n\t\t\t\twp = waypoints[i];\n\t\t\t\tlatLng = wp.latLng;\n\t\t\t\tlocs.push(latLng.lng + ',' + latLng.lat);\n\t\t\t\thints.push(this._hints.locations[this._locationKey(latLng)] || '');\n\t\t\t}\n\n\t\t\tcomputeInstructions =\n\t\t\t\ttrue;\n\n\t\t\treturn this.options.serviceUrl + '/' + this.options.profile + '/' +\n\t\t\t\tlocs.join(';') + '?' +\n\t\t\t\t(options.geometryOnly ? (options.simplifyGeometry ? '' : 'overview=full') : 'overview=false') +\n\t\t\t\t'&alternatives=' + computeAlternative.toString() +\n\t\t\t\t'&steps=' + computeInstructions.toString() +\n\t\t\t\t(this.options.useHints ? '&hints=' + hints.join(';') : '') +\n\t\t\t\t(options.allowUTurns ? '&continue_straight=' + !options.allowUTurns : '');\n\t\t},\n\n\t\t_locationKey: function(location) {\n\t\t\treturn location.lat + ',' + location.lng;\n\t\t},\n\n\t\t_saveHintData: function(actualWaypoints, waypoints) {\n\t\t\tvar loc;\n\t\t\tthis._hints = {\n\t\t\t\tlocations: {}\n\t\t\t};\n\t\t\tfor (var i = actualWaypoints.length - 1; i >= 0; i--) {\n\t\t\t\tloc = waypoints[i].latLng;\n\t\t\t\tthis._hints.locations[this._locationKey(loc)] = actualWaypoints[i].hint;\n\t\t\t}\n\t\t},\n\t});\n})();\n"
},
{
"id": 46,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/defaults.js",
"name": "./node_modules/axios/lib/defaults.js",
"index": 167,
"index2": 171,
"size": 2432,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/axios/lib/axios.js",
"issuerId": 169,
"issuerName": "./node_modules/axios/lib/axios.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 167,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Shotter.js",
"name": "./src/modules/Shotter.js"
},
{
"id": 168,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/index.js",
"name": "./node_modules/axios/index.js"
},
{
"id": 169,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/axios.js",
"name": "./node_modules/axios/lib/axios.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 169,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/axios/lib/axios.js",
"module": "./node_modules/axios/lib/axios.js",
"moduleName": "./node_modules/axios/lib/axios.js",
"type": "cjs require",
"userRequest": "./defaults",
"loc": "6:15-36"
},
{
"moduleId": 171,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/axios/lib/core/Axios.js",
"module": "./node_modules/axios/lib/core/Axios.js",
"moduleName": "./node_modules/axios/lib/core/Axios.js",
"type": "cjs require",
"userRequest": "./../defaults",
"loc": "3:15-39"
},
{
"moduleId": 182,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/axios/lib/core/dispatchRequest.js",
"module": "./node_modules/axios/lib/core/dispatchRequest.js",
"moduleName": "./node_modules/axios/lib/core/dispatchRequest.js",
"type": "cjs require",
"userRequest": "../defaults",
"loc": "6:15-37"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 6,
"source": "'use strict';\n\nvar utils = require('./utils');\nvar normalizeHeaderName = require('./helpers/normalizeHeaderName');\n\nvar DEFAULT_CONTENT_TYPE = {\n 'Content-Type': 'application/x-www-form-urlencoded'\n};\n\nfunction setContentTypeIfUnset(headers, value) {\n if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) {\n headers['Content-Type'] = value;\n }\n}\n\nfunction getDefaultAdapter() {\n var adapter;\n if (typeof XMLHttpRequest !== 'undefined') {\n // For browsers use XHR adapter\n adapter = require('./adapters/xhr');\n } else if (typeof process !== 'undefined') {\n // For node use HTTP adapter\n adapter = require('./adapters/http');\n }\n return adapter;\n}\n\nvar defaults = {\n adapter: getDefaultAdapter(),\n\n transformRequest: [function transformRequest(data, headers) {\n normalizeHeaderName(headers, 'Content-Type');\n if (utils.isFormData(data) ||\n utils.isArrayBuffer(data) ||\n utils.isBuffer(data) ||\n utils.isStream(data) ||\n utils.isFile(data) ||\n utils.isBlob(data)\n ) {\n return data;\n }\n if (utils.isArrayBufferView(data)) {\n return data.buffer;\n }\n if (utils.isURLSearchParams(data)) {\n setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8');\n return data.toString();\n }\n if (utils.isObject(data)) {\n setContentTypeIfUnset(headers, 'application/json;charset=utf-8');\n return JSON.stringify(data);\n }\n return data;\n }],\n\n transformResponse: [function transformResponse(data) {\n /*eslint no-param-reassign:0*/\n if (typeof data === 'string') {\n try {\n data = JSON.parse(data);\n } catch (e) { /* Ignore */ }\n }\n return data;\n }],\n\n /**\n * A timeout in milliseconds to abort a request. If set to 0 (default) a\n * timeout is not created.\n */\n timeout: 0,\n\n xsrfCookieName: 'XSRF-TOKEN',\n xsrfHeaderName: 'X-XSRF-TOKEN',\n\n maxContentLength: -1,\n\n validateStatus: function validateStatus(status) {\n return status >= 200 && status < 300;\n }\n};\n\ndefaults.headers = {\n common: {\n 'Accept': 'application/json, text/plain, */*'\n }\n};\n\nutils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) {\n defaults.headers[method] = {};\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE);\n});\n\nmodule.exports = defaults;\n"
},
{
"id": 47,
"identifier": "/Users/user/Projects/orchid/node_modules/object-assign/index.js",
"name": "./node_modules/object-assign/index.js",
"index": 4,
"index2": 1,
"size": 2108,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/react/cjs/react.production.min.js",
"issuerId": 80,
"issuerName": "./node_modules/react/cjs/react.production.min.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 20,
"identifier": "/Users/user/Projects/orchid/node_modules/react/index.js",
"name": "./node_modules/react/index.js"
},
{
"id": 80,
"identifier": "/Users/user/Projects/orchid/node_modules/react/cjs/react.production.min.js",
"name": "./node_modules/react/cjs/react.production.min.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 80,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/react/cjs/react.production.min.js",
"module": "./node_modules/react/cjs/react.production.min.js",
"moduleName": "./node_modules/react/cjs/react.production.min.js",
"type": "cjs require",
"userRequest": "object-assign",
"loc": "10:19-43"
},
{
"moduleId": 82,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/react-dom/cjs/react-dom.production.min.js",
"module": "./node_modules/react-dom/cjs/react-dom.production.min.js",
"moduleName": "./node_modules/react-dom/cjs/react-dom.production.min.js",
"type": "cjs require",
"userRequest": "object-assign",
"loc": "13:115-139"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 3,
"source": "/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\n\n'use strict';\n/* eslint-disable no-unused-vars */\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\nfunction toObject(val) {\n\tif (val === null || val === undefined) {\n\t\tthrow new TypeError('Object.assign cannot be called with null or undefined');\n\t}\n\n\treturn Object(val);\n}\n\nfunction shouldUseNative() {\n\ttry {\n\t\tif (!Object.assign) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Detect buggy property enumeration order in older V8 versions.\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=4118\n\t\tvar test1 = new String('abc'); // eslint-disable-line no-new-wrappers\n\t\ttest1[5] = 'de';\n\t\tif (Object.getOwnPropertyNames(test1)[0] === '5') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test2 = {};\n\t\tfor (var i = 0; i < 10; i++) {\n\t\t\ttest2['_' + String.fromCharCode(i)] = i;\n\t\t}\n\t\tvar order2 = Object.getOwnPropertyNames(test2).map(function (n) {\n\t\t\treturn test2[n];\n\t\t});\n\t\tif (order2.join('') !== '0123456789') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test3 = {};\n\t\t'abcdefghijklmnopqrst'.split('').forEach(function (letter) {\n\t\t\ttest3[letter] = letter;\n\t\t});\n\t\tif (Object.keys(Object.assign({}, test3)).join('') !==\n\t\t\t\t'abcdefghijklmnopqrst') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t} catch (err) {\n\t\t// We don't expect any of the above to throw, but better to be safe.\n\t\treturn false;\n\t}\n}\n\nmodule.exports = shouldUseNative() ? Object.assign : function (target, source) {\n\tvar from;\n\tvar to = toObject(target);\n\tvar symbols;\n\n\tfor (var s = 1; s < arguments.length; s++) {\n\t\tfrom = Object(arguments[s]);\n\n\t\tfor (var key in from) {\n\t\t\tif (hasOwnProperty.call(from, key)) {\n\t\t\t\tto[key] = from[key];\n\t\t\t}\n\t\t}\n\n\t\tif (getOwnPropertySymbols) {\n\t\t\tsymbols = getOwnPropertySymbols(from);\n\t\t\tfor (var i = 0; i < symbols.length; i++) {\n\t\t\t\tif (propIsEnumerable.call(from, symbols[i])) {\n\t\t\t\t\tto[symbols[i]] = from[symbols[i]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn to;\n};\n"
},
{
"id": 48,
"identifier": "/Users/user/Projects/orchid/node_modules/fbjs/lib/invariant.js",
"name": "./node_modules/fbjs/lib/invariant.js",
"index": 5,
"index2": 2,
"size": 1506,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/react/cjs/react.production.min.js",
"issuerId": 80,
"issuerName": "./node_modules/react/cjs/react.production.min.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 20,
"identifier": "/Users/user/Projects/orchid/node_modules/react/index.js",
"name": "./node_modules/react/index.js"
},
{
"id": 80,
"identifier": "/Users/user/Projects/orchid/node_modules/react/cjs/react.production.min.js",
"name": "./node_modules/react/cjs/react.production.min.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 80,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/react/cjs/react.production.min.js",
"module": "./node_modules/react/cjs/react.production.min.js",
"moduleName": "./node_modules/react/cjs/react.production.min.js",
"type": "cjs require",
"userRequest": "fbjs/lib/invariant",
"loc": "10:46-75"
},
{
"moduleId": 82,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/react-dom/cjs/react-dom.production.min.js",
"module": "./node_modules/react-dom/cjs/react-dom.production.min.js",
"moduleName": "./node_modules/react-dom/cjs/react-dom.production.min.js",
"type": "cjs require",
"userRequest": "fbjs/lib/invariant",
"loc": "13:20-49"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 3,
"source": "/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\n'use strict';\n\n/**\n * Use invariant() to assert state which your program assumes to be true.\n *\n * Provide sprintf-style format (only %s is supported) and arguments\n * to provide information about what broke and what you were\n * expecting.\n *\n * The invariant message will be stripped in production, but the invariant\n * will remain to ensure logic does not differ in production.\n */\n\nvar validateFormat = function validateFormat(format) {};\n\nif (process.env.NODE_ENV !== 'production') {\n validateFormat = function validateFormat(format) {\n if (format === undefined) {\n throw new Error('invariant requires an error message argument');\n }\n };\n}\n\nfunction invariant(condition, format, a, b, c, d, e, f) {\n validateFormat(format);\n\n if (!condition) {\n var error;\n if (format === undefined) {\n error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.');\n } else {\n var args = [a, b, c, d, e, f];\n var argIndex = 0;\n error = new Error(format.replace(/%s/g, function () {\n return args[argIndex++];\n }));\n error.name = 'Invariant Violation';\n }\n\n error.framesToPop = 1; // we don't care about invariant's own frame\n throw error;\n }\n}\n\nmodule.exports = invariant;"
},
{
"id": 49,
"identifier": "/Users/user/Projects/orchid/node_modules/fbjs/lib/emptyObject.js",
"name": "./node_modules/fbjs/lib/emptyObject.js",
"index": 6,
"index2": 3,
"size": 332,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/react/cjs/react.production.min.js",
"issuerId": 80,
"issuerName": "./node_modules/react/cjs/react.production.min.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 20,
"identifier": "/Users/user/Projects/orchid/node_modules/react/index.js",
"name": "./node_modules/react/index.js"
},
{
"id": 80,
"identifier": "/Users/user/Projects/orchid/node_modules/react/cjs/react.production.min.js",
"name": "./node_modules/react/cjs/react.production.min.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 80,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/react/cjs/react.production.min.js",
"module": "./node_modules/react/cjs/react.production.min.js",
"moduleName": "./node_modules/react/cjs/react.production.min.js",
"type": "cjs require",
"userRequest": "fbjs/lib/emptyObject",
"loc": "10:78-109"
},
{
"moduleId": 82,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/react-dom/cjs/react-dom.production.min.js",
"module": "./node_modules/react-dom/cjs/react-dom.production.min.js",
"moduleName": "./node_modules/react-dom/cjs/react-dom.production.min.js",
"type": "cjs require",
"userRequest": "fbjs/lib/emptyObject",
"loc": "13:291-322"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 3,
"source": "/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\n'use strict';\n\nvar emptyObject = {};\n\nif (process.env.NODE_ENV !== 'production') {\n Object.freeze(emptyObject);\n}\n\nmodule.exports = emptyObject;"
},
{
"id": 50,
"identifier": "/Users/user/Projects/orchid/node_modules/fbjs/lib/emptyFunction.js",
"name": "./node_modules/fbjs/lib/emptyFunction.js",
"index": 7,
"index2": 4,
"size": 959,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/react/cjs/react.production.min.js",
"issuerId": 80,
"issuerName": "./node_modules/react/cjs/react.production.min.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 20,
"identifier": "/Users/user/Projects/orchid/node_modules/react/index.js",
"name": "./node_modules/react/index.js"
},
{
"id": 80,
"identifier": "/Users/user/Projects/orchid/node_modules/react/cjs/react.production.min.js",
"name": "./node_modules/react/cjs/react.production.min.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 80,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/react/cjs/react.production.min.js",
"module": "./node_modules/react/cjs/react.production.min.js",
"moduleName": "./node_modules/react/cjs/react.production.min.js",
"type": "cjs require",
"userRequest": "fbjs/lib/emptyFunction",
"loc": "10:112-145"
},
{
"moduleId": 82,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/react-dom/cjs/react-dom.production.min.js",
"module": "./node_modules/react-dom/cjs/react-dom.production.min.js",
"moduleName": "./node_modules/react-dom/cjs/react-dom.production.min.js",
"type": "cjs require",
"userRequest": "fbjs/lib/emptyFunction",
"loc": "13:142-175"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 3,
"source": "\"use strict\";\n\n/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n */\n\nfunction makeEmptyFunction(arg) {\n return function () {\n return arg;\n };\n}\n\n/**\n * This function accepts and discards inputs; it has no side effects. This is\n * primarily useful idiomatically for overridable function endpoints which\n * always need to be callable, since JS lacks a null-call idiom ala Cocoa.\n */\nvar emptyFunction = function emptyFunction() {};\n\nemptyFunction.thatReturns = makeEmptyFunction;\nemptyFunction.thatReturnsFalse = makeEmptyFunction(false);\nemptyFunction.thatReturnsTrue = makeEmptyFunction(true);\nemptyFunction.thatReturnsNull = makeEmptyFunction(null);\nemptyFunction.thatReturnsThis = function () {\n return this;\n};\nemptyFunction.thatReturnsArgument = function (arg) {\n return arg;\n};\n\nmodule.exports = emptyFunction;"
},
{
"id": 51,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/object/define-property.js",
"name": "./node_modules/babel-runtime/core-js/object/define-property.js",
"index": 19,
"index2": 34,
"size": 103,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/createClass.js",
"issuerId": 7,
"issuerName": "./node_modules/babel-runtime/helpers/createClass.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 7,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/createClass.js",
"name": "./node_modules/babel-runtime/helpers/createClass.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 7,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/createClass.js",
"module": "./node_modules/babel-runtime/helpers/createClass.js",
"moduleName": "./node_modules/babel-runtime/helpers/createClass.js",
"type": "cjs require",
"userRequest": "../core-js/object/define-property",
"loc": "5:22-66"
},
{
"moduleId": 125,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/defineProperty.js",
"module": "./node_modules/babel-runtime/helpers/defineProperty.js",
"moduleName": "./node_modules/babel-runtime/helpers/defineProperty.js",
"type": "cjs require",
"userRequest": "../core-js/object/define-property",
"loc": "5:22-66"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 3,
"source": "module.exports = { \"default\": require(\"core-js/library/fn/object/define-property\"), __esModule: true };"
},
{
"id": 52,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_ie8-dom-define.js",
"name": "./node_modules/core-js/library/modules/_ie8-dom-define.js",
"index": 31,
"index2": 25,
"size": 199,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-dp.js",
"issuerId": 9,
"issuerName": "./node_modules/core-js/library/modules/_object-dp.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 7,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/createClass.js",
"name": "./node_modules/babel-runtime/helpers/createClass.js"
},
{
"id": 51,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/object/define-property.js",
"name": "./node_modules/babel-runtime/core-js/object/define-property.js"
},
{
"id": 90,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/object/define-property.js",
"name": "./node_modules/core-js/library/fn/object/define-property.js"
},
{
"id": 91,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.object.define-property.js",
"name": "./node_modules/core-js/library/modules/es6.object.define-property.js"
},
{
"id": 9,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-dp.js",
"name": "./node_modules/core-js/library/modules/_object-dp.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 9,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-dp.js",
"module": "./node_modules/core-js/library/modules/_object-dp.js",
"moduleName": "./node_modules/core-js/library/modules/_object-dp.js",
"type": "cjs require",
"userRequest": "./_ie8-dom-define",
"loc": "2:21-49"
},
{
"moduleId": 61,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-gopd.js",
"module": "./node_modules/core-js/library/modules/_object-gopd.js",
"moduleName": "./node_modules/core-js/library/modules/_object-gopd.js",
"type": "cjs require",
"userRequest": "./_ie8-dom-define",
"loc": "6:21-49"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "module.exports = !require('./_descriptors') && !require('./_fails')(function () {\n return Object.defineProperty(require('./_dom-create')('div'), 'a', { get: function () { return 7; } }).a != 7;\n});\n"
},
{
"id": 53,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_dom-create.js",
"name": "./node_modules/core-js/library/modules/_dom-create.js",
"index": 34,
"index2": 24,
"size": 289,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-create.js",
"issuerId": 30,
"issuerName": "./node_modules/core-js/library/modules/_object-create.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 116,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/inherits.js",
"name": "./node_modules/babel-runtime/helpers/inherits.js"
},
{
"id": 121,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/object/create.js",
"name": "./node_modules/babel-runtime/core-js/object/create.js"
},
{
"id": 122,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/object/create.js",
"name": "./node_modules/core-js/library/fn/object/create.js"
},
{
"id": 123,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.object.create.js",
"name": "./node_modules/core-js/library/modules/es6.object.create.js"
},
{
"id": 30,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-create.js",
"name": "./node_modules/core-js/library/modules/_object-create.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 30,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-create.js",
"module": "./node_modules/core-js/library/modules/_object-create.js",
"moduleName": "./node_modules/core-js/library/modules/_object-create.js",
"type": "cjs require",
"userRequest": "./_dom-create",
"loc": "12:15-39"
},
{
"moduleId": 52,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_ie8-dom-define.js",
"module": "./node_modules/core-js/library/modules/_ie8-dom-define.js",
"moduleName": "./node_modules/core-js/library/modules/_ie8-dom-define.js",
"type": "cjs require",
"userRequest": "./_dom-create",
"loc": "2:31-55"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "var isObject = require('./_is-object');\nvar document = require('./_global').document;\n// typeof document.createElement is 'object' in old IE\nvar is = isObject(document) && isObject(document.createElement);\nmodule.exports = function (it) {\n return is ? document.createElement(it) : {};\n};\n"
},
{
"id": 54,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"name": "./node_modules/babel-runtime/helpers/typeof.js",
"index": 39,
"index2": 86,
"size": 1069,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"issuerId": 93,
"issuerName": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 93,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"name": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 93,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"module": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"moduleName": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"type": "cjs require",
"userRequest": "../helpers/typeof",
"loc": "5:15-43"
},
{
"moduleId": 116,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/inherits.js",
"module": "./node_modules/babel-runtime/helpers/inherits.js",
"moduleName": "./node_modules/babel-runtime/helpers/inherits.js",
"type": "cjs require",
"userRequest": "../helpers/typeof",
"loc": "13:15-43"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 3,
"source": "\"use strict\";\n\nexports.__esModule = true;\n\nvar _iterator = require(\"../core-js/symbol/iterator\");\n\nvar _iterator2 = _interopRequireDefault(_iterator);\n\nvar _symbol = require(\"../core-js/symbol\");\n\nvar _symbol2 = _interopRequireDefault(_symbol);\n\nvar _typeof = typeof _symbol2.default === \"function\" && typeof _iterator2.default === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof _symbol2.default === \"function\" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? \"symbol\" : typeof obj; };\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = typeof _symbol2.default === \"function\" && _typeof(_iterator2.default) === \"symbol\" ? function (obj) {\n return typeof obj === \"undefined\" ? \"undefined\" : _typeof(obj);\n} : function (obj) {\n return obj && typeof _symbol2.default === \"function\" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? \"symbol\" : typeof obj === \"undefined\" ? \"undefined\" : _typeof(obj);\n};"
},
{
"id": 55,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_iter-define.js",
"name": "./node_modules/core-js/library/modules/_iter-define.js",
"index": 46,
"index2": 62,
"size": 2779,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.string.iterator.js",
"issuerId": 21,
"issuerName": "./node_modules/core-js/library/modules/es6.string.iterator.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 93,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"name": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"
},
{
"id": 54,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"name": "./node_modules/babel-runtime/helpers/typeof.js"
},
{
"id": 94,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol/iterator.js",
"name": "./node_modules/babel-runtime/core-js/symbol/iterator.js"
},
{
"id": 95,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/iterator.js",
"name": "./node_modules/core-js/library/fn/symbol/iterator.js"
},
{
"id": 21,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.string.iterator.js",
"name": "./node_modules/core-js/library/modules/es6.string.iterator.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 21,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.string.iterator.js",
"module": "./node_modules/core-js/library/modules/es6.string.iterator.js",
"moduleName": "./node_modules/core-js/library/modules/es6.string.iterator.js",
"type": "cjs require",
"userRequest": "./_iter-define",
"loc": "5:0-25"
},
{
"moduleId": 103,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.array.iterator.js",
"module": "./node_modules/core-js/library/modules/es6.array.iterator.js",
"moduleName": "./node_modules/core-js/library/modules/es6.array.iterator.js",
"type": "cjs require",
"userRequest": "./_iter-define",
"loc": "11:17-42"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "'use strict';\nvar LIBRARY = require('./_library');\nvar $export = require('./_export');\nvar redefine = require('./_redefine');\nvar hide = require('./_hide');\nvar Iterators = require('./_iterators');\nvar $iterCreate = require('./_iter-create');\nvar setToStringTag = require('./_set-to-string-tag');\nvar getPrototypeOf = require('./_object-gpo');\nvar ITERATOR = require('./_wks')('iterator');\nvar BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next`\nvar FF_ITERATOR = '@@iterator';\nvar KEYS = 'keys';\nvar VALUES = 'values';\n\nvar returnThis = function () { return this; };\n\nmodule.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) {\n $iterCreate(Constructor, NAME, next);\n var getMethod = function (kind) {\n if (!BUGGY && kind in proto) return proto[kind];\n switch (kind) {\n case KEYS: return function keys() { return new Constructor(this, kind); };\n case VALUES: return function values() { return new Constructor(this, kind); };\n } return function entries() { return new Constructor(this, kind); };\n };\n var TAG = NAME + ' Iterator';\n var DEF_VALUES = DEFAULT == VALUES;\n var VALUES_BUG = false;\n var proto = Base.prototype;\n var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT];\n var $default = $native || getMethod(DEFAULT);\n var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined;\n var $anyNative = NAME == 'Array' ? proto.entries || $native : $native;\n var methods, key, IteratorPrototype;\n // Fix native\n if ($anyNative) {\n IteratorPrototype = getPrototypeOf($anyNative.call(new Base()));\n if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) {\n // Set @@toStringTag to native iterators\n setToStringTag(IteratorPrototype, TAG, true);\n // fix for some old engines\n if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis);\n }\n }\n // fix Array#{values, @@iterator}.name in V8 / FF\n if (DEF_VALUES && $native && $native.name !== VALUES) {\n VALUES_BUG = true;\n $default = function values() { return $native.call(this); };\n }\n // Define iterator\n if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) {\n hide(proto, ITERATOR, $default);\n }\n // Plug for library\n Iterators[NAME] = $default;\n Iterators[TAG] = returnThis;\n if (DEFAULT) {\n methods = {\n values: DEF_VALUES ? $default : getMethod(VALUES),\n keys: IS_SET ? $default : getMethod(KEYS),\n entries: $entries\n };\n if (FORCED) for (key in methods) {\n if (!(key in proto)) redefine(proto, key, methods[key]);\n } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);\n }\n return methods;\n};\n"
},
{
"id": 56,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_redefine.js",
"name": "./node_modules/core-js/library/modules/_redefine.js",
"index": 48,
"index2": 40,
"size": 37,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_iter-define.js",
"issuerId": 55,
"issuerName": "./node_modules/core-js/library/modules/_iter-define.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 93,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"name": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"
},
{
"id": 54,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"name": "./node_modules/babel-runtime/helpers/typeof.js"
},
{
"id": 94,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol/iterator.js",
"name": "./node_modules/babel-runtime/core-js/symbol/iterator.js"
},
{
"id": 95,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/iterator.js",
"name": "./node_modules/core-js/library/fn/symbol/iterator.js"
},
{
"id": 21,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.string.iterator.js",
"name": "./node_modules/core-js/library/modules/es6.string.iterator.js"
},
{
"id": 55,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_iter-define.js",
"name": "./node_modules/core-js/library/modules/_iter-define.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 55,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_iter-define.js",
"module": "./node_modules/core-js/library/modules/_iter-define.js",
"moduleName": "./node_modules/core-js/library/modules/_iter-define.js",
"type": "cjs require",
"userRequest": "./_redefine",
"loc": "4:15-37"
},
{
"moduleId": 108,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"module": "./node_modules/core-js/library/modules/es6.symbol.js",
"moduleName": "./node_modules/core-js/library/modules/es6.symbol.js",
"type": "cjs require",
"userRequest": "./_redefine",
"loc": "7:15-37"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "module.exports = require('./_hide');\n"
},
{
"id": 57,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-keys-internal.js",
"name": "./node_modules/core-js/library/modules/_object-keys-internal.js",
"index": 54,
"index2": 51,
"size": 537,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-keys.js",
"issuerId": 23,
"issuerName": "./node_modules/core-js/library/modules/_object-keys.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 93,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"name": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"
},
{
"id": 54,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"name": "./node_modules/babel-runtime/helpers/typeof.js"
},
{
"id": 106,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol.js",
"name": "./node_modules/babel-runtime/core-js/symbol.js"
},
{
"id": 107,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/index.js",
"name": "./node_modules/core-js/library/fn/symbol/index.js"
},
{
"id": 108,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"name": "./node_modules/core-js/library/modules/es6.symbol.js"
},
{
"id": 23,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-keys.js",
"name": "./node_modules/core-js/library/modules/_object-keys.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 23,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-keys.js",
"module": "./node_modules/core-js/library/modules/_object-keys.js",
"moduleName": "./node_modules/core-js/library/modules/_object-keys.js",
"type": "cjs require",
"userRequest": "./_object-keys-internal",
"loc": "2:12-46"
},
{
"moduleId": 60,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-gopn.js",
"module": "./node_modules/core-js/library/modules/_object-gopn.js",
"moduleName": "./node_modules/core-js/library/modules/_object-gopn.js",
"type": "cjs require",
"userRequest": "./_object-keys-internal",
"loc": "2:12-46"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 8,
"source": "var has = require('./_has');\nvar toIObject = require('./_to-iobject');\nvar arrayIndexOf = require('./_array-includes')(false);\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\n\nmodule.exports = function (object, names) {\n var O = toIObject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (has(O, key = names[i++])) {\n ~arrayIndexOf(result, key) || result.push(key);\n }\n return result;\n};\n"
},
{
"id": 58,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_iobject.js",
"name": "./node_modules/core-js/library/modules/_iobject.js",
"index": 56,
"index2": 43,
"size": 289,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-assign.js",
"issuerId": 151,
"issuerName": "./node_modules/core-js/library/modules/_object-assign.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 146,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"name": "./src/modules/Router.js"
},
{
"id": 147,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/extends.js",
"name": "./node_modules/babel-runtime/helpers/extends.js"
},
{
"id": 148,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/object/assign.js",
"name": "./node_modules/babel-runtime/core-js/object/assign.js"
},
{
"id": 149,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/object/assign.js",
"name": "./node_modules/core-js/library/fn/object/assign.js"
},
{
"id": 150,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.object.assign.js",
"name": "./node_modules/core-js/library/modules/es6.object.assign.js"
},
{
"id": 151,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-assign.js",
"name": "./node_modules/core-js/library/modules/_object-assign.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 17,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_to-iobject.js",
"module": "./node_modules/core-js/library/modules/_to-iobject.js",
"moduleName": "./node_modules/core-js/library/modules/_to-iobject.js",
"type": "cjs require",
"userRequest": "./_iobject",
"loc": "2:14-35"
},
{
"moduleId": 151,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-assign.js",
"module": "./node_modules/core-js/library/modules/_object-assign.js",
"moduleName": "./node_modules/core-js/library/modules/_object-assign.js",
"type": "cjs require",
"userRequest": "./_iobject",
"loc": "7:14-35"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 8,
"source": "// fallback for non-array-like ES3 and non-enumerable old V8 strings\nvar cof = require('./_cof');\n// eslint-disable-next-line no-prototype-builtins\nmodule.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {\n return cof(it) == 'String' ? it.split('') : Object(it);\n};\n"
},
{
"id": 59,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_to-length.js",
"name": "./node_modules/core-js/library/modules/_to-length.js",
"index": 59,
"index2": 45,
"size": 215,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.array.from.js",
"issuerId": 155,
"issuerName": "./node_modules/core-js/library/modules/es6.array.from.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 146,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"name": "./src/modules/Router.js"
},
{
"id": 152,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/toConsumableArray.js",
"name": "./node_modules/babel-runtime/helpers/toConsumableArray.js"
},
{
"id": 153,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/array/from.js",
"name": "./node_modules/babel-runtime/core-js/array/from.js"
},
{
"id": 154,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/array/from.js",
"name": "./node_modules/core-js/library/fn/array/from.js"
},
{
"id": 155,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.array.from.js",
"name": "./node_modules/core-js/library/modules/es6.array.from.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 99,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_array-includes.js",
"module": "./node_modules/core-js/library/modules/_array-includes.js",
"moduleName": "./node_modules/core-js/library/modules/_array-includes.js",
"type": "cjs require",
"userRequest": "./_to-length",
"loc": "4:15-38"
},
{
"moduleId": 155,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.array.from.js",
"module": "./node_modules/core-js/library/modules/es6.array.from.js",
"moduleName": "./node_modules/core-js/library/modules/es6.array.from.js",
"type": "cjs require",
"userRequest": "./_to-length",
"loc": "7:15-38"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 8,
"source": "// 7.1.15 ToLength\nvar toInteger = require('./_to-integer');\nvar min = Math.min;\nmodule.exports = function (it) {\n return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991\n};\n"
},
{
"id": 60,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-gopn.js",
"name": "./node_modules/core-js/library/modules/_object-gopn.js",
"index": 85,
"index2": 77,
"size": 288,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"issuerId": 108,
"issuerName": "./node_modules/core-js/library/modules/es6.symbol.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 93,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"name": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"
},
{
"id": 54,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"name": "./node_modules/babel-runtime/helpers/typeof.js"
},
{
"id": 106,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol.js",
"name": "./node_modules/babel-runtime/core-js/symbol.js"
},
{
"id": 107,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/index.js",
"name": "./node_modules/core-js/library/fn/symbol/index.js"
},
{
"id": 108,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"name": "./node_modules/core-js/library/modules/es6.symbol.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 108,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"module": "./node_modules/core-js/library/modules/es6.symbol.js",
"moduleName": "./node_modules/core-js/library/modules/es6.symbol.js",
"type": "cjs require",
"userRequest": "./_object-gopn",
"loc": "150:2-27"
},
{
"moduleId": 112,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-gopn-ext.js",
"module": "./node_modules/core-js/library/modules/_object-gopn-ext.js",
"moduleName": "./node_modules/core-js/library/modules/_object-gopn-ext.js",
"type": "cjs require",
"userRequest": "./_object-gopn",
"loc": "3:11-36"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "// 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)\nvar $keys = require('./_object-keys-internal');\nvar hiddenKeys = require('./_enum-bug-keys').concat('length', 'prototype');\n\nexports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {\n return $keys(O, hiddenKeys);\n};\n"
},
{
"id": 61,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-gopd.js",
"name": "./node_modules/core-js/library/modules/_object-gopd.js",
"index": 86,
"index2": 79,
"size": 577,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_set-proto.js",
"issuerId": 120,
"issuerName": "./node_modules/core-js/library/modules/_set-proto.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 116,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/inherits.js",
"name": "./node_modules/babel-runtime/helpers/inherits.js"
},
{
"id": 117,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/object/set-prototype-of.js",
"name": "./node_modules/babel-runtime/core-js/object/set-prototype-of.js"
},
{
"id": 118,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/object/set-prototype-of.js",
"name": "./node_modules/core-js/library/fn/object/set-prototype-of.js"
},
{
"id": 119,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.object.set-prototype-of.js",
"name": "./node_modules/core-js/library/modules/es6.object.set-prototype-of.js"
},
{
"id": 120,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_set-proto.js",
"name": "./node_modules/core-js/library/modules/_set-proto.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 108,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"module": "./node_modules/core-js/library/modules/es6.symbol.js",
"moduleName": "./node_modules/core-js/library/modules/es6.symbol.js",
"type": "cjs require",
"userRequest": "./_object-gopd",
"loc": "25:12-37"
},
{
"moduleId": 120,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_set-proto.js",
"module": "./node_modules/core-js/library/modules/_set-proto.js",
"moduleName": "./node_modules/core-js/library/modules/_set-proto.js",
"type": "cjs require",
"userRequest": "./_object-gopd",
"loc": "13:47-72"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "var pIE = require('./_object-pie');\nvar createDesc = require('./_property-desc');\nvar toIObject = require('./_to-iobject');\nvar toPrimitive = require('./_to-primitive');\nvar has = require('./_has');\nvar IE8_DOM_DEFINE = require('./_ie8-dom-define');\nvar gOPD = Object.getOwnPropertyDescriptor;\n\nexports.f = require('./_descriptors') ? gOPD : function getOwnPropertyDescriptor(O, P) {\n O = toIObject(O);\n P = toPrimitive(P, true);\n if (IE8_DOM_DEFINE) try {\n return gOPD(O, P);\n } catch (e) { /* empty */ }\n if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]);\n};\n"
},
{
"id": 62,
"identifier": "/Users/user/Projects/orchid/node_modules/leaflet-editable/src/Leaflet.Editable.js",
"name": "./node_modules/leaflet-editable/src/Leaflet.Editable.js",
"index": 114,
"index2": 110,
"size": 73185,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Map.js",
"issuerId": 126,
"issuerName": "./src/modules/Map.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 126,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Map.js",
"name": "./src/modules/Map.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 126,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Map.js",
"module": "./src/modules/Map.js",
"moduleName": "./src/modules/Map.js",
"type": "cjs require",
"userRequest": "leaflet-editable",
"loc": "22:0-27"
},
{
"moduleId": 145,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Sticker.js",
"module": "./src/modules/Sticker.js",
"moduleName": "./src/modules/Sticker.js",
"type": "cjs require",
"userRequest": "leaflet-editable",
"loc": "18:0-27"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 4,
"source": "'use strict';\n(function (factory, window) {\n /*globals define, module, require*/\n\n // define an AMD module that relies on 'leaflet'\n if (typeof define === 'function' && define.amd) {\n define(['leaflet'], factory);\n\n\n // define a Common JS module that relies on 'leaflet'\n } else if (typeof exports === 'object') {\n module.exports = factory(require('leaflet'));\n }\n\n // attach your plugin to the global 'L' variable\n if(typeof window !== 'undefined' && window.L){\n factory(window.L);\n }\n\n}(function (L) {\n // 🍂miniclass CancelableEvent (Event objects)\n // 🍂method cancel()\n // Cancel any subsequent action.\n\n // 🍂miniclass VertexEvent (Event objects)\n // 🍂property vertex: VertexMarker\n // The vertex that fires the event.\n\n // 🍂miniclass ShapeEvent (Event objects)\n // 🍂property shape: Array\n // The shape (LatLngs array) subject of the action.\n\n // 🍂miniclass CancelableVertexEvent (Event objects)\n // 🍂inherits VertexEvent\n // 🍂inherits CancelableEvent\n\n // 🍂miniclass CancelableShapeEvent (Event objects)\n // 🍂inherits ShapeEvent\n // 🍂inherits CancelableEvent\n\n // 🍂miniclass LayerEvent (Event objects)\n // 🍂property layer: object\n // The Layer (Marker, Polyline…) subject of the action.\n\n // 🍂namespace Editable; 🍂class Editable; 🍂aka L.Editable\n // Main edition handler. By default, it is attached to the map\n // as `map.editTools` property.\n // Leaflet.Editable is made to be fully extendable. You have three ways to customize\n // the behaviour: using options, listening to events, or extending.\n L.Editable = L.Evented.extend({\n\n statics: {\n FORWARD: 1,\n BACKWARD: -1\n },\n\n options: {\n\n // You can pass them when creating a map using the `editOptions` key.\n // 🍂option zIndex: int = 1000\n // The default zIndex of the editing tools.\n zIndex: 1000,\n\n // 🍂option polygonClass: class = L.Polygon\n // Class to be used when creating a new Polygon.\n polygonClass: L.Polygon,\n\n // 🍂option polylineClass: class = L.Polyline\n // Class to be used when creating a new Polyline.\n polylineClass: L.Polyline,\n\n // 🍂option markerClass: class = L.Marker\n // Class to be used when creating a new Marker.\n markerClass: L.Marker,\n\n // 🍂option rectangleClass: class = L.Rectangle\n // Class to be used when creating a new Rectangle.\n rectangleClass: L.Rectangle,\n\n // 🍂option circleClass: class = L.Circle\n // Class to be used when creating a new Circle.\n circleClass: L.Circle,\n\n // 🍂option drawingCSSClass: string = 'leaflet-editable-drawing'\n // CSS class to be added to the map container while drawing.\n drawingCSSClass: 'leaflet-editable-drawing',\n\n // 🍂option drawingCursor: const = 'crosshair'\n // Cursor mode set to the map while drawing.\n drawingCursor: 'crosshair',\n\n // 🍂option editLayer: Layer = new L.LayerGroup()\n // Layer used to store edit tools (vertex, line guide…).\n editLayer: undefined,\n\n // 🍂option featuresLayer: Layer = new L.LayerGroup()\n // Default layer used to store drawn features (Marker, Polyline…).\n featuresLayer: undefined,\n\n // 🍂option polylineEditorClass: class = PolylineEditor\n // Class to be used as Polyline editor.\n polylineEditorClass: undefined,\n\n // 🍂option polygonEditorClass: class = PolygonEditor\n // Class to be used as Polygon editor.\n polygonEditorClass: undefined,\n\n // 🍂option markerEditorClass: class = MarkerEditor\n // Class to be used as Marker editor.\n markerEditorClass: undefined,\n\n // 🍂option rectangleEditorClass: class = RectangleEditor\n // Class to be used as Rectangle editor.\n rectangleEditorClass: undefined,\n\n // 🍂option circleEditorClass: class = CircleEditor\n // Class to be used as Circle editor.\n circleEditorClass: undefined,\n\n // 🍂option lineGuideOptions: hash = {}\n // Options to be passed to the line guides.\n lineGuideOptions: {},\n\n // 🍂option skipMiddleMarkers: boolean = false\n // Set this to true if you don't want middle markers.\n skipMiddleMarkers: false\n\n },\n\n initialize: function (map, options) {\n L.setOptions(this, options);\n this._lastZIndex = this.options.zIndex;\n this.map = map;\n this.editLayer = this.createEditLayer();\n this.featuresLayer = this.createFeaturesLayer();\n this.forwardLineGuide = this.createLineGuide();\n this.backwardLineGuide = this.createLineGuide();\n },\n\n fireAndForward: function (type, e) {\n e = e || {};\n e.editTools = this;\n this.fire(type, e);\n this.map.fire(type, e);\n },\n\n createLineGuide: function () {\n var options = L.extend({dashArray: '5,10', weight: 1, interactive: false}, this.options.lineGuideOptions);\n return L.polyline([], options);\n },\n\n createVertexIcon: function (options) {\n return L.Browser.touch ? new L.Editable.TouchVertexIcon(options) : new L.Editable.VertexIcon(options);\n },\n\n createEditLayer: function () {\n return this.options.editLayer || new L.LayerGroup().addTo(this.map);\n },\n\n createFeaturesLayer: function () {\n return this.options.featuresLayer || new L.LayerGroup().addTo(this.map);\n },\n\n moveForwardLineGuide: function (latlng) {\n if (this.forwardLineGuide._latlngs.length) {\n this.forwardLineGuide._latlngs[1] = latlng;\n this.forwardLineGuide._bounds.extend(latlng);\n this.forwardLineGuide.redraw();\n }\n },\n\n moveBackwardLineGuide: function (latlng) {\n if (this.backwardLineGuide._latlngs.length) {\n this.backwardLineGuide._latlngs[1] = latlng;\n this.backwardLineGuide._bounds.extend(latlng);\n this.backwardLineGuide.redraw();\n }\n },\n\n anchorForwardLineGuide: function (latlng) {\n this.forwardLineGuide._latlngs[0] = latlng;\n this.forwardLineGuide._bounds.extend(latlng);\n this.forwardLineGuide.redraw();\n },\n\n anchorBackwardLineGuide: function (latlng) {\n this.backwardLineGuide._latlngs[0] = latlng;\n this.backwardLineGuide._bounds.extend(latlng);\n this.backwardLineGuide.redraw();\n },\n\n attachForwardLineGuide: function () {\n this.editLayer.addLayer(this.forwardLineGuide);\n },\n\n attachBackwardLineGuide: function () {\n this.editLayer.addLayer(this.backwardLineGuide);\n },\n\n detachForwardLineGuide: function () {\n this.forwardLineGuide.setLatLngs([]);\n this.editLayer.removeLayer(this.forwardLineGuide);\n },\n\n detachBackwardLineGuide: function () {\n this.backwardLineGuide.setLatLngs([]);\n this.editLayer.removeLayer(this.backwardLineGuide);\n },\n\n blockEvents: function () {\n // Hack: force map not to listen to other layers events while drawing.\n if (!this._oldTargets) {\n this._oldTargets = this.map._targets;\n this.map._targets = {};\n }\n },\n\n unblockEvents: function () {\n if (this._oldTargets) {\n // Reset, but keep targets created while drawing.\n this.map._targets = L.extend(this.map._targets, this._oldTargets);\n delete this._oldTargets;\n }\n },\n\n registerForDrawing: function (editor) {\n if (this._drawingEditor) this.unregisterForDrawing(this._drawingEditor);\n this.blockEvents();\n editor.reset(); // Make sure editor tools still receive events.\n this._drawingEditor = editor;\n this.map.on('mousemove touchmove', editor.onDrawingMouseMove, editor);\n this.map.on('mousedown', this.onMousedown, this);\n this.map.on('mouseup', this.onMouseup, this);\n L.DomUtil.addClass(this.map._container, this.options.drawingCSSClass);\n this.defaultMapCursor = this.map._container.style.cursor;\n this.map._container.style.cursor = this.options.drawingCursor;\n },\n\n unregisterForDrawing: function (editor) {\n this.unblockEvents();\n L.DomUtil.removeClass(this.map._container, this.options.drawingCSSClass);\n this.map._container.style.cursor = this.defaultMapCursor;\n editor = editor || this._drawingEditor;\n if (!editor) return;\n this.map.off('mousemove touchmove', editor.onDrawingMouseMove, editor);\n this.map.off('mousedown', this.onMousedown, this);\n this.map.off('mouseup', this.onMouseup, this);\n if (editor !== this._drawingEditor) return;\n delete this._drawingEditor;\n if (editor._drawing) editor.cancelDrawing();\n },\n\n onMousedown: function (e) {\n this._mouseDown = e;\n this._drawingEditor.onDrawingMouseDown(e);\n },\n\n onMouseup: function (e) {\n if (this._mouseDown) {\n var editor = this._drawingEditor,\n mouseDown = this._mouseDown;\n this._mouseDown = null;\n editor.onDrawingMouseUp(e);\n if (this._drawingEditor !== editor) return; // onDrawingMouseUp may call unregisterFromDrawing.\n var origin = L.point(mouseDown.originalEvent.clientX, mouseDown.originalEvent.clientY);\n var distance = L.point(e.originalEvent.clientX, e.originalEvent.clientY).distanceTo(origin);\n if (Math.abs(distance) < 9 * (window.devicePixelRatio || 1)) this._drawingEditor.onDrawingClick(e);\n }\n },\n\n // 🍂section Public methods\n // You will generally access them by the `map.editTools`\n // instance:\n //\n // `map.editTools.startPolyline();`\n\n // 🍂method drawing(): boolean\n // Return true if any drawing action is ongoing.\n drawing: function () {\n return this._drawingEditor && this._drawingEditor.drawing();\n },\n\n // 🍂method stopDrawing()\n // When you need to stop any ongoing drawing, without needing to know which editor is active.\n stopDrawing: function () {\n this.unregisterForDrawing();\n },\n\n // 🍂method commitDrawing()\n // When you need to commit any ongoing drawing, without needing to know which editor is active.\n commitDrawing: function (e) {\n if (!this._drawingEditor) return;\n this._drawingEditor.commitDrawing(e);\n },\n\n connectCreatedToMap: function (layer) {\n return this.featuresLayer.addLayer(layer);\n },\n\n // 🍂method startPolyline(latlng: L.LatLng, options: hash): L.Polyline\n // Start drawing a Polyline. If `latlng` is given, a first point will be added. In any case, continuing on user click.\n // If `options` is given, it will be passed to the Polyline class constructor.\n startPolyline: function (latlng, options) {\n var line = this.createPolyline([], options);\n line.enableEdit(this.map).newShape(latlng);\n return line;\n },\n\n // 🍂method startPolygon(latlng: L.LatLng, options: hash): L.Polygon\n // Start drawing a Polygon. If `latlng` is given, a first point will be added. In any case, continuing on user click.\n // If `options` is given, it will be passed to the Polygon class constructor.\n startPolygon: function (latlng, options) {\n var polygon = this.createPolygon([], options);\n polygon.enableEdit(this.map).newShape(latlng);\n return polygon;\n },\n\n // 🍂method startMarker(latlng: L.LatLng, options: hash): L.Marker\n // Start adding a Marker. If `latlng` is given, the Marker will be shown first at this point.\n // In any case, it will follow the user mouse, and will have a final `latlng` on next click (or touch).\n // If `options` is given, it will be passed to the Marker class constructor.\n startMarker: function (latlng, options) {\n latlng = latlng || this.map.getCenter().clone();\n var marker = this.createMarker(latlng, options);\n marker.enableEdit(this.map).startDrawing();\n return marker;\n },\n\n // 🍂method startRectangle(latlng: L.LatLng, options: hash): L.Rectangle\n // Start drawing a Rectangle. If `latlng` is given, the Rectangle anchor will be added. In any case, continuing on user drag.\n // If `options` is given, it will be passed to the Rectangle class constructor.\n startRectangle: function(latlng, options) {\n var corner = latlng || L.latLng([0, 0]);\n var bounds = new L.LatLngBounds(corner, corner);\n var rectangle = this.createRectangle(bounds, options);\n rectangle.enableEdit(this.map).startDrawing();\n return rectangle;\n },\n\n // 🍂method startCircle(latlng: L.LatLng, options: hash): L.Circle\n // Start drawing a Circle. If `latlng` is given, the Circle anchor will be added. In any case, continuing on user drag.\n // If `options` is given, it will be passed to the Circle class constructor.\n startCircle: function (latlng, options) {\n latlng = latlng || this.map.getCenter().clone();\n var circle = this.createCircle(latlng, options);\n circle.enableEdit(this.map).startDrawing();\n return circle;\n },\n\n startHole: function (editor, latlng) {\n editor.newHole(latlng);\n },\n\n createLayer: function (klass, latlngs, options) {\n options = L.Util.extend({editOptions: {editTools: this}}, options);\n var layer = new klass(latlngs, options);\n // 🍂namespace Editable\n // 🍂event editable:created: LayerEvent\n // Fired when a new feature (Marker, Polyline…) is created.\n this.fireAndForward('editable:created', {layer: layer});\n return layer;\n },\n\n createPolyline: function (latlngs, options) {\n return this.createLayer(options && options.polylineClass || this.options.polylineClass, latlngs, options);\n },\n\n createPolygon: function (latlngs, options) {\n return this.createLayer(options && options.polygonClass || this.options.polygonClass, latlngs, options);\n },\n\n createMarker: function (latlng, options) {\n return this.createLayer(options && options.markerClass || this.options.markerClass, latlng, options);\n },\n\n createRectangle: function (bounds, options) {\n return this.createLayer(options && options.rectangleClass || this.options.rectangleClass, bounds, options);\n },\n\n createCircle: function (latlng, options) {\n return this.createLayer(options && options.circleClass || this.options.circleClass, latlng, options);\n }\n\n });\n\n L.extend(L.Editable, {\n\n makeCancellable: function (e) {\n e.cancel = function () {\n e._cancelled = true;\n };\n }\n\n });\n\n // 🍂namespace Map; 🍂class Map\n // Leaflet.Editable add options and events to the `L.Map` object.\n // See `Editable` events for the list of events fired on the Map.\n // 🍂example\n //\n // ```js\n // var map = L.map('map', {\n // editable: true,\n // editOptions: {\n // …\n // }\n // });\n // ```\n // 🍂section Editable Map Options\n L.Map.mergeOptions({\n\n // 🍂namespace Map\n // 🍂section Map Options\n // 🍂option editToolsClass: class = L.Editable\n // Class to be used as vertex, for path editing.\n editToolsClass: L.Editable,\n\n // 🍂option editable: boolean = false\n // Whether to create a L.Editable instance at map init.\n editable: false,\n\n // 🍂option editOptions: hash = {}\n // Options to pass to L.Editable when instanciating.\n editOptions: {}\n\n });\n\n L.Map.addInitHook(function () {\n\n this.whenReady(function () {\n if (this.options.editable) {\n this.editTools = new this.options.editToolsClass(this, this.options.editOptions);\n }\n });\n\n });\n\n L.Editable.VertexIcon = L.DivIcon.extend({\n\n options: {\n iconSize: new L.Point(8, 8)\n }\n\n });\n\n L.Editable.TouchVertexIcon = L.Editable.VertexIcon.extend({\n\n options: {\n iconSize: new L.Point(20, 20)\n }\n\n });\n\n\n // 🍂namespace Editable; 🍂class VertexMarker; Handler for dragging path vertices.\n L.Editable.VertexMarker = L.Marker.extend({\n\n options: {\n draggable: true,\n className: 'leaflet-div-icon leaflet-vertex-icon'\n },\n\n\n // 🍂section Public methods\n // The marker used to handle path vertex. You will usually interact with a `VertexMarker`\n // instance when listening for events like `editable:vertex:ctrlclick`.\n\n initialize: function (latlng, latlngs, editor, options) {\n // We don't use this._latlng, because on drag Leaflet replace it while\n // we want to keep reference.\n this.latlng = latlng;\n this.latlngs = latlngs;\n this.editor = editor;\n L.Marker.prototype.initialize.call(this, latlng, options);\n this.options.icon = this.editor.tools.createVertexIcon({className: this.options.className});\n this.latlng.__vertex = this;\n this.editor.editLayer.addLayer(this);\n this.setZIndexOffset(editor.tools._lastZIndex + 1);\n },\n\n onAdd: function (map) {\n L.Marker.prototype.onAdd.call(this, map);\n this.on('drag', this.onDrag);\n this.on('dragstart', this.onDragStart);\n this.on('dragend', this.onDragEnd);\n this.on('mouseup', this.onMouseup);\n this.on('click', this.onClick);\n this.on('contextmenu', this.onContextMenu);\n this.on('mousedown touchstart', this.onMouseDown);\n this.addMiddleMarkers();\n },\n\n onRemove: function (map) {\n if (this.middleMarker) this.middleMarker.delete();\n delete this.latlng.__vertex;\n this.off('drag', this.onDrag);\n this.off('dragstart', this.onDragStart);\n this.off('dragend', this.onDragEnd);\n this.off('mouseup', this.onMouseup);\n this.off('click', this.onClick);\n this.off('contextmenu', this.onContextMenu);\n this.off('mousedown touchstart', this.onMouseDown);\n L.Marker.prototype.onRemove.call(this, map);\n },\n\n onDrag: function (e) {\n e.vertex = this;\n this.editor.onVertexMarkerDrag(e);\n var iconPos = L.DomUtil.getPosition(this._icon),\n latlng = this._map.layerPointToLatLng(iconPos);\n this.latlng.update(latlng);\n this._latlng = this.latlng; // Push back to Leaflet our reference.\n this.editor.refresh();\n if (this.middleMarker) this.middleMarker.updateLatLng();\n var next = this.getNext();\n if (next && next.middleMarker) next.middleMarker.updateLatLng();\n },\n\n onDragStart: function (e) {\n e.vertex = this;\n this.editor.onVertexMarkerDragStart(e);\n },\n\n onDragEnd: function (e) {\n e.vertex = this;\n this.editor.onVertexMarkerDragEnd(e);\n },\n\n onClick: function (e) {\n e.vertex = this;\n this.editor.onVertexMarkerClick(e);\n },\n\n onMouseup: function (e) {\n L.DomEvent.stop(e);\n e.vertex = this;\n this.editor.map.fire('mouseup', e);\n },\n\n onContextMenu: function (e) {\n e.vertex = this;\n this.editor.onVertexMarkerContextMenu(e);\n },\n\n onMouseDown: function (e) {\n e.vertex = this;\n this.editor.onVertexMarkerMouseDown(e);\n },\n\n // 🍂method delete()\n // Delete a vertex and the related LatLng.\n delete: function () {\n var next = this.getNext(); // Compute before changing latlng\n this.latlngs.splice(this.getIndex(), 1);\n this.editor.editLayer.removeLayer(this);\n this.editor.onVertexDeleted({latlng: this.latlng, vertex: this});\n if (!this.latlngs.length) this.editor.deleteShape(this.latlngs);\n if (next) next.resetMiddleMarker();\n this.editor.refresh();\n },\n\n // 🍂method getIndex(): int\n // Get the index of the current vertex among others of the same LatLngs group.\n getIndex: function () {\n return this.latlngs.indexOf(this.latlng);\n },\n\n // 🍂method getLastIndex(): int\n // Get last vertex index of the LatLngs group of the current vertex.\n getLastIndex: function () {\n return this.latlngs.length - 1;\n },\n\n // 🍂method getPrevious(): VertexMarker\n // Get the previous VertexMarker in the same LatLngs group.\n getPrevious: function () {\n if (this.latlngs.length < 2) return;\n var index = this.getIndex(),\n previousIndex = index - 1;\n if (index === 0 && this.editor.CLOSED) previousIndex = this.getLastIndex();\n var previous = this.latlngs[previousIndex];\n if (previous) return previous.__vertex;\n },\n\n // 🍂method getNext(): VertexMarker\n // Get the next VertexMarker in the same LatLngs group.\n getNext: function () {\n if (this.latlngs.length < 2) return;\n var index = this.getIndex(),\n nextIndex = index + 1;\n if (index === this.getLastIndex() && this.editor.CLOSED) nextIndex = 0;\n var next = this.latlngs[nextIndex];\n if (next) return next.__vertex;\n },\n\n addMiddleMarker: function (previous) {\n if (!this.editor.hasMiddleMarkers()) return;\n previous = previous || this.getPrevious();\n if (previous && !this.middleMarker) this.middleMarker = this.editor.addMiddleMarker(previous, this, this.latlngs, this.editor);\n },\n\n addMiddleMarkers: function () {\n if (!this.editor.hasMiddleMarkers()) return;\n var previous = this.getPrevious();\n if (previous) this.addMiddleMarker(previous);\n var next = this.getNext();\n if (next) next.resetMiddleMarker();\n },\n\n resetMiddleMarker: function () {\n if (this.middleMarker) this.middleMarker.delete();\n this.addMiddleMarker();\n },\n\n // 🍂method split()\n // Split the vertex LatLngs group at its index, if possible.\n split: function () {\n if (!this.editor.splitShape) return; // Only for PolylineEditor\n this.editor.splitShape(this.latlngs, this.getIndex());\n },\n\n // 🍂method continue()\n // Continue the vertex LatLngs from this vertex. Only active for first and last vertices of a Polyline.\n continue: function () {\n if (!this.editor.continueBackward) return; // Only for PolylineEditor\n var index = this.getIndex();\n if (index === 0) this.editor.continueBackward(this.latlngs);\n else if (index === this.getLastIndex()) this.editor.continueForward(this.latlngs);\n }\n\n });\n\n L.Editable.mergeOptions({\n\n // 🍂namespace Editable\n // 🍂option vertexMarkerClass: class = VertexMarker\n // Class to be used as vertex, for path editing.\n vertexMarkerClass: L.Editable.VertexMarker\n\n });\n\n L.Editable.MiddleMarker = L.Marker.extend({\n\n options: {\n opacity: 0.5,\n className: 'leaflet-div-icon leaflet-middle-icon',\n draggable: true\n },\n\n initialize: function (left, right, latlngs, editor, options) {\n this.left = left;\n this.right = right;\n this.editor = editor;\n this.latlngs = latlngs;\n L.Marker.prototype.initialize.call(this, this.computeLatLng(), options);\n this._opacity = this.options.opacity;\n this.options.icon = this.editor.tools.createVertexIcon({className: this.options.className});\n this.editor.editLayer.addLayer(this);\n this.setVisibility();\n },\n\n setVisibility: function () {\n var leftPoint = this._map.latLngToContainerPoint(this.left.latlng),\n rightPoint = this._map.latLngToContainerPoint(this.right.latlng),\n size = L.point(this.options.icon.options.iconSize);\n if (leftPoint.distanceTo(rightPoint) < size.x * 3) this.hide();\n else this.show();\n },\n\n show: function () {\n this.setOpacity(this._opacity);\n },\n\n hide: function () {\n this.setOpacity(0);\n },\n\n updateLatLng: function () {\n this.setLatLng(this.computeLatLng());\n this.setVisibility();\n },\n\n computeLatLng: function () {\n var leftPoint = this.editor.map.latLngToContainerPoint(this.left.latlng),\n rightPoint = this.editor.map.latLngToContainerPoint(this.right.latlng),\n y = (leftPoint.y + rightPoint.y) / 2,\n x = (leftPoint.x + rightPoint.x) / 2;\n return this.editor.map.containerPointToLatLng([x, y]);\n },\n\n onAdd: function (map) {\n L.Marker.prototype.onAdd.call(this, map);\n L.DomEvent.on(this._icon, 'mousedown touchstart', this.onMouseDown, this);\n map.on('zoomend', this.setVisibility, this);\n },\n\n onRemove: function (map) {\n delete this.right.middleMarker;\n L.DomEvent.off(this._icon, 'mousedown touchstart', this.onMouseDown, this);\n map.off('zoomend', this.setVisibility, this);\n L.Marker.prototype.onRemove.call(this, map);\n },\n\n onMouseDown: function (e) {\n var iconPos = L.DomUtil.getPosition(this._icon),\n latlng = this.editor.map.layerPointToLatLng(iconPos);\n e = {\n originalEvent: e,\n latlng: latlng\n };\n if (this.options.opacity === 0) return;\n L.Editable.makeCancellable(e);\n this.editor.onMiddleMarkerMouseDown(e);\n if (e._cancelled) return;\n this.latlngs.splice(this.index(), 0, e.latlng);\n this.editor.refresh();\n var icon = this._icon;\n var marker = this.editor.addVertexMarker(e.latlng, this.latlngs);\n this.editor.onNewVertex(marker);\n /* Hack to workaround browser not firing touchend when element is no more on DOM */\n var parent = marker._icon.parentNode;\n parent.removeChild(marker._icon);\n marker._icon = icon;\n parent.appendChild(marker._icon);\n marker._initIcon();\n marker._initInteraction();\n marker.setOpacity(1);\n /* End hack */\n // Transfer ongoing dragging to real marker\n L.Draggable._dragging = false;\n marker.dragging._draggable._onDown(e.originalEvent);\n this.delete();\n },\n\n delete: function () {\n this.editor.editLayer.removeLayer(this);\n },\n\n index: function () {\n return this.latlngs.indexOf(this.right.latlng);\n }\n\n });\n\n L.Editable.mergeOptions({\n\n // 🍂namespace Editable\n // 🍂option middleMarkerClass: class = VertexMarker\n // Class to be used as middle vertex, pulled by the user to create a new point in the middle of a path.\n middleMarkerClass: L.Editable.MiddleMarker\n\n });\n\n // 🍂namespace Editable; 🍂class BaseEditor; 🍂aka L.Editable.BaseEditor\n // When editing a feature (Marker, Polyline…), an editor is attached to it. This\n // editor basically knows how to handle the edition.\n L.Editable.BaseEditor = L.Handler.extend({\n\n initialize: function (map, feature, options) {\n L.setOptions(this, options);\n this.map = map;\n this.feature = feature;\n this.feature.editor = this;\n this.editLayer = new L.LayerGroup();\n this.tools = this.options.editTools || map.editTools;\n },\n\n // 🍂method enable(): this\n // Set up the drawing tools for the feature to be editable.\n addHooks: function () {\n if (this.isConnected()) this.onFeatureAdd();\n else this.feature.once('add', this.onFeatureAdd, this);\n this.onEnable();\n this.feature.on(this._getEvents(), this);\n return;\n },\n\n // 🍂method disable(): this\n // Remove the drawing tools for the feature.\n removeHooks: function () {\n this.feature.off(this._getEvents(), this);\n if (this.feature.dragging) this.feature.dragging.disable();\n this.editLayer.clearLayers();\n this.tools.editLayer.removeLayer(this.editLayer);\n this.onDisable();\n if (this._drawing) this.cancelDrawing();\n return;\n },\n\n // 🍂method drawing(): boolean\n // Return true if any drawing action is ongoing with this editor.\n drawing: function () {\n return !!this._drawing;\n },\n\n reset: function () {},\n\n onFeatureAdd: function () {\n this.tools.editLayer.addLayer(this.editLayer);\n if (this.feature.dragging) this.feature.dragging.enable();\n },\n\n hasMiddleMarkers: function () {\n return !this.options.skipMiddleMarkers && !this.tools.options.skipMiddleMarkers;\n },\n\n fireAndForward: function (type, e) {\n e = e || {};\n e.layer = this.feature;\n this.feature.fire(type, e);\n this.tools.fireAndForward(type, e);\n },\n\n onEnable: function () {\n // 🍂namespace Editable\n // 🍂event editable:enable: Event\n // Fired when an existing feature is ready to be edited.\n this.fireAndForward('editable:enable');\n },\n\n onDisable: function () {\n // 🍂namespace Editable\n // 🍂event editable:disable: Event\n // Fired when an existing feature is not ready anymore to be edited.\n this.fireAndForward('editable:disable');\n },\n\n onEditing: function () {\n // 🍂namespace Editable\n // 🍂event editable:editing: Event\n // Fired as soon as any change is made to the feature geometry.\n this.fireAndForward('editable:editing');\n },\n\n onStartDrawing: function () {\n // 🍂namespace Editable\n // 🍂section Drawing events\n // 🍂event editable:drawing:start: Event\n // Fired when a feature is to be drawn.\n this.fireAndForward('editable:drawing:start');\n },\n\n onEndDrawing: function () {\n // 🍂namespace Editable\n // 🍂section Drawing events\n // 🍂event editable:drawing:end: Event\n // Fired when a feature is not drawn anymore.\n this.fireAndForward('editable:drawing:end');\n },\n\n onCancelDrawing: function () {\n // 🍂namespace Editable\n // 🍂section Drawing events\n // 🍂event editable:drawing:cancel: Event\n // Fired when user cancel drawing while a feature is being drawn.\n this.fireAndForward('editable:drawing:cancel');\n },\n\n onCommitDrawing: function (e) {\n // 🍂namespace Editable\n // 🍂section Drawing events\n // 🍂event editable:drawing:commit: Event\n // Fired when user finish drawing a feature.\n this.fireAndForward('editable:drawing:commit', e);\n },\n\n onDrawingMouseDown: function (e) {\n // 🍂namespace Editable\n // 🍂section Drawing events\n // 🍂event editable:drawing:mousedown: Event\n // Fired when user `mousedown` while drawing.\n this.fireAndForward('editable:drawing:mousedown', e);\n },\n\n onDrawingMouseUp: function (e) {\n // 🍂namespace Editable\n // 🍂section Drawing events\n // 🍂event editable:drawing:mouseup: Event\n // Fired when user `mouseup` while drawing.\n this.fireAndForward('editable:drawing:mouseup', e);\n },\n\n startDrawing: function () {\n if (!this._drawing) this._drawing = L.Editable.FORWARD;\n this.tools.registerForDrawing(this);\n this.onStartDrawing();\n },\n\n commitDrawing: function (e) {\n this.onCommitDrawing(e);\n this.endDrawing();\n },\n\n cancelDrawing: function () {\n // If called during a vertex drag, the vertex will be removed before\n // the mouseup fires on it. This is a workaround. Maybe better fix is\n // To have L.Draggable reset it's status on disable (Leaflet side).\n L.Draggable._dragging = false;\n this.onCancelDrawing();\n this.endDrawing();\n },\n\n endDrawing: function () {\n this._drawing = false;\n this.tools.unregisterForDrawing(this);\n this.onEndDrawing();\n },\n\n onDrawingClick: function (e) {\n if (!this.drawing()) return;\n L.Editable.makeCancellable(e);\n // 🍂namespace Editable\n // 🍂section Drawing events\n // 🍂event editable:drawing:click: CancelableEvent\n // Fired when user `click` while drawing, before any internal action is being processed.\n this.fireAndForward('editable:drawing:click', e);\n if (e._cancelled) return;\n if (!this.isConnected()) this.connect(e);\n this.processDrawingClick(e);\n },\n\n isConnected: function () {\n return this.map.hasLayer(this.feature);\n },\n\n connect: function (e) {\n this.tools.connectCreatedToMap(this.feature);\n this.tools.editLayer.addLayer(this.editLayer);\n },\n\n onMove: function (e) {\n // 🍂namespace Editable\n // 🍂section Drawing events\n // 🍂event editable:drawing:move: Event\n // Fired when `move` mouse while drawing, while dragging a marker, and while dragging a vertex.\n this.fireAndForward('editable:drawing:move', e);\n },\n\n onDrawingMouseMove: function (e) {\n this.onMove(e);\n },\n\n _getEvents: function () {\n return {\n dragstart: this.onDragStart,\n drag: this.onDrag,\n dragend: this.onDragEnd,\n remove: this.disable\n };\n },\n\n onDragStart: function (e) {\n this.onEditing();\n // 🍂namespace Editable\n // 🍂event editable:dragstart: Event\n // Fired before a path feature is dragged.\n this.fireAndForward('editable:dragstart', e);\n },\n\n onDrag: function (e) {\n this.onMove(e);\n // 🍂namespace Editable\n // 🍂event editable:drag: Event\n // Fired when a path feature is being dragged.\n this.fireAndForward('editable:drag', e);\n },\n\n onDragEnd: function (e) {\n // 🍂namespace Editable\n // 🍂event editable:dragend: Event\n // Fired after a path feature has been dragged.\n this.fireAndForward('editable:dragend', e);\n }\n\n });\n\n // 🍂namespace Editable; 🍂class MarkerEditor; 🍂aka L.Editable.MarkerEditor\n // 🍂inherits BaseEditor\n // Editor for Marker.\n L.Editable.MarkerEditor = L.Editable.BaseEditor.extend({\n\n onDrawingMouseMove: function (e) {\n L.Editable.BaseEditor.prototype.onDrawingMouseMove.call(this, e);\n if (this._drawing) this.feature.setLatLng(e.latlng);\n },\n\n processDrawingClick: function (e) {\n // 🍂namespace Editable\n // 🍂section Drawing events\n // 🍂event editable:drawing:clicked: Event\n // Fired when user `click` while drawing, after all internal actions.\n this.fireAndForward('editable:drawing:clicked', e);\n this.commitDrawing(e);\n },\n\n connect: function (e) {\n // On touch, the latlng has not been updated because there is\n // no mousemove.\n if (e) this.feature._latlng = e.latlng;\n L.Editable.BaseEditor.prototype.connect.call(this, e);\n }\n\n });\n\n // 🍂namespace Editable; 🍂class PathEditor; 🍂aka L.Editable.PathEditor\n // 🍂inherits BaseEditor\n // Base class for all path editors.\n L.Editable.PathEditor = L.Editable.BaseEditor.extend({\n\n CLOSED: false,\n MIN_VERTEX: 2,\n\n addHooks: function () {\n L.Editable.BaseEditor.prototype.addHooks.call(this);\n if (this.feature) this.initVertexMarkers();\n return this;\n },\n\n initVertexMarkers: function (latlngs) {\n if (!this.enabled()) return;\n latlngs = latlngs || this.getLatLngs();\n if (isFlat(latlngs)) this.addVertexMarkers(latlngs);\n else for (var i = 0; i < latlngs.length; i++) this.initVertexMarkers(latlngs[i]);\n },\n\n getLatLngs: function () {\n return this.feature.getLatLngs();\n },\n\n // 🍂method reset()\n // Rebuild edit elements (Vertex, MiddleMarker, etc.).\n reset: function () {\n this.editLayer.clearLayers();\n this.initVertexMarkers();\n },\n\n addVertexMarker: function (latlng, latlngs) {\n return new this.tools.options.vertexMarkerClass(latlng, latlngs, this);\n },\n\n onNewVertex: function (vertex) {\n // 🍂namespace Editable\n // 🍂section Vertex events\n // 🍂event editable:vertex:new: VertexEvent\n // Fired when a new vertex is created.\n this.fireAndForward('editable:vertex:new', {latlng: vertex.latlng, vertex: vertex});\n },\n\n addVertexMarkers: function (latlngs) {\n for (var i = 0; i < latlngs.length; i++) {\n this.addVertexMarker(latlngs[i], latlngs);\n }\n },\n\n refreshVertexMarkers: function (latlngs) {\n latlngs = latlngs || this.getDefaultLatLngs();\n for (var i = 0; i < latlngs.length; i++) {\n latlngs[i].__vertex.update();\n }\n },\n\n addMiddleMarker: function (left, right, latlngs) {\n return new this.tools.options.middleMarkerClass(left, right, latlngs, this);\n },\n\n onVertexMarkerClick: function (e) {\n L.Editable.makeCancellable(e);\n // 🍂namespace Editable\n // 🍂section Vertex events\n // 🍂event editable:vertex:click: CancelableVertexEvent\n // Fired when a `click` is issued on a vertex, before any internal action is being processed.\n this.fireAndForward('editable:vertex:click', e);\n if (e._cancelled) return;\n if (this.tools.drawing() && this.tools._drawingEditor !== this) return;\n var index = e.vertex.getIndex(), commit;\n if (e.originalEvent.ctrlKey) {\n this.onVertexMarkerCtrlClick(e);\n } else if (e.originalEvent.altKey) {\n this.onVertexMarkerAltClick(e);\n } else if (e.originalEvent.shiftKey) {\n this.onVertexMarkerShiftClick(e);\n } else if (e.originalEvent.metaKey) {\n this.onVertexMarkerMetaKeyClick(e);\n } else if (index === e.vertex.getLastIndex() && this._drawing === L.Editable.FORWARD) {\n if (index >= this.MIN_VERTEX - 1) commit = true;\n } else if (index === 0 && this._drawing === L.Editable.BACKWARD && this._drawnLatLngs.length >= this.MIN_VERTEX) {\n commit = true;\n } else if (index === 0 && this._drawing === L.Editable.FORWARD && this._drawnLatLngs.length >= this.MIN_VERTEX && this.CLOSED) {\n commit = true; // Allow to close on first point also for polygons\n } else {\n this.onVertexRawMarkerClick(e);\n }\n // 🍂namespace Editable\n // 🍂section Vertex events\n // 🍂event editable:vertex:clicked: VertexEvent\n // Fired when a `click` is issued on a vertex, after all internal actions.\n this.fireAndForward('editable:vertex:clicked', e);\n if (commit) this.commitDrawing(e);\n },\n\n onVertexRawMarkerClick: function (e) {\n // 🍂namespace Editable\n // 🍂section Vertex events\n // 🍂event editable:vertex:rawclick: CancelableVertexEvent\n // Fired when a `click` is issued on a vertex without any special key and without being in drawing mode.\n this.fireAndForward('editable:vertex:rawclick', e);\n if (e._cancelled) return;\n if (!this.vertexCanBeDeleted(e.vertex)) return;\n e.vertex.delete();\n },\n\n vertexCanBeDeleted: function (vertex) {\n return vertex.latlngs.length > this.MIN_VERTEX;\n },\n\n onVertexDeleted: function (e) {\n // 🍂namespace Editable\n // 🍂section Vertex events\n // 🍂event editable:vertex:deleted: VertexEvent\n // Fired after a vertex has been deleted by user.\n this.fireAndForward('editable:vertex:deleted', e);\n },\n\n onVertexMarkerCtrlClick: function (e) {\n // 🍂namespace Editable\n // 🍂section Vertex events\n // 🍂event editable:vertex:ctrlclick: VertexEvent\n // Fired when a `click` with `ctrlKey` is issued on a vertex.\n this.fireAndForward('editable:vertex:ctrlclick', e);\n },\n\n onVertexMarkerShiftClick: function (e) {\n // 🍂namespace Editable\n // 🍂section Vertex events\n // 🍂event editable:vertex:shiftclick: VertexEvent\n // Fired when a `click` with `shiftKey` is issued on a vertex.\n this.fireAndForward('editable:vertex:shiftclick', e);\n },\n\n onVertexMarkerMetaKeyClick: function (e) {\n // 🍂namespace Editable\n // 🍂section Vertex events\n // 🍂event editable:vertex:metakeyclick: VertexEvent\n // Fired when a `click` with `metaKey` is issued on a vertex.\n this.fireAndForward('editable:vertex:metakeyclick', e);\n },\n\n onVertexMarkerAltClick: function (e) {\n // 🍂namespace Editable\n // 🍂section Vertex events\n // 🍂event editable:vertex:altclick: VertexEvent\n // Fired when a `click` with `altKey` is issued on a vertex.\n this.fireAndForward('editable:vertex:altclick', e);\n },\n\n onVertexMarkerContextMenu: function (e) {\n // 🍂namespace Editable\n // 🍂section Vertex events\n // 🍂event editable:vertex:contextmenu: VertexEvent\n // Fired when a `contextmenu` is issued on a vertex.\n this.fireAndForward('editable:vertex:contextmenu', e);\n },\n\n onVertexMarkerMouseDown: function (e) {\n // 🍂namespace Editable\n // 🍂section Vertex events\n // 🍂event editable:vertex:mousedown: VertexEvent\n // Fired when user `mousedown` a vertex.\n this.fireAndForward('editable:vertex:mousedown', e);\n },\n\n onMiddleMarkerMouseDown: function (e) {\n // 🍂namespace Editable\n // 🍂section MiddleMarker events\n // 🍂event editable:middlemarker:mousedown: VertexEvent\n // Fired when user `mousedown` a middle marker.\n this.fireAndForward('editable:middlemarker:mousedown', e);\n },\n\n onVertexMarkerDrag: function (e) {\n this.onMove(e);\n if (this.feature._bounds) this.extendBounds(e);\n // 🍂namespace Editable\n // 🍂section Vertex events\n // 🍂event editable:vertex:drag: VertexEvent\n // Fired when a vertex is dragged by user.\n this.fireAndForward('editable:vertex:drag', e);\n },\n\n onVertexMarkerDragStart: function (e) {\n // 🍂namespace Editable\n // 🍂section Vertex events\n // 🍂event editable:vertex:dragstart: VertexEvent\n // Fired before a vertex is dragged by user.\n this.fireAndForward('editable:vertex:dragstart', e);\n },\n\n onVertexMarkerDragEnd: function (e) {\n // 🍂namespace Editable\n // 🍂section Vertex events\n // 🍂event editable:vertex:dragend: VertexEvent\n // Fired after a vertex is dragged by user.\n this.fireAndForward('editable:vertex:dragend', e);\n },\n\n setDrawnLatLngs: function (latlngs) {\n this._drawnLatLngs = latlngs || this.getDefaultLatLngs();\n },\n\n startDrawing: function () {\n if (!this._drawnLatLngs) this.setDrawnLatLngs();\n L.Editable.BaseEditor.prototype.startDrawing.call(this);\n },\n\n startDrawingForward: function () {\n this.startDrawing();\n },\n\n endDrawing: function () {\n this.tools.detachForwardLineGuide();\n this.tools.detachBackwardLineGuide();\n if (this._drawnLatLngs && this._drawnLatLngs.length < this.MIN_VERTEX) this.deleteShape(this._drawnLatLngs);\n L.Editable.BaseEditor.prototype.endDrawing.call(this);\n delete this._drawnLatLngs;\n },\n\n addLatLng: function (latlng) {\n if (this._drawing === L.Editable.FORWARD) this._drawnLatLngs.push(latlng);\n else this._drawnLatLngs.unshift(latlng);\n this.feature._bounds.extend(latlng);\n var vertex = this.addVertexMarker(latlng, this._drawnLatLngs);\n this.onNewVertex(vertex);\n this.refresh();\n },\n\n newPointForward: function (latlng) {\n this.addLatLng(latlng);\n this.tools.attachForwardLineGuide();\n this.tools.anchorForwardLineGuide(latlng);\n },\n\n newPointBackward: function (latlng) {\n this.addLatLng(latlng);\n this.tools.anchorBackwardLineGuide(latlng);\n },\n\n // 🍂namespace PathEditor\n // 🍂method push()\n // Programmatically add a point while drawing.\n push: function (latlng) {\n if (!latlng) return console.error('L.Editable.PathEditor.push expect a vaild latlng as parameter');\n if (this._drawing === L.Editable.FORWARD) this.newPointForward(latlng);\n else this.newPointBackward(latlng);\n },\n\n removeLatLng: function (latlng) {\n latlng.__vertex.delete();\n this.refresh();\n },\n\n // 🍂method pop(): L.LatLng or null\n // Programmatically remove last point (if any) while drawing.\n pop: function () {\n if (this._drawnLatLngs.length <= 1) return;\n var latlng;\n if (this._drawing === L.Editable.FORWARD) latlng = this._drawnLatLngs[this._drawnLatLngs.length - 1];\n else latlng = this._drawnLatLngs[0];\n this.removeLatLng(latlng);\n if (this._drawing === L.Editable.FORWARD) this.tools.anchorForwardLineGuide(this._drawnLatLngs[this._drawnLatLngs.length - 1]);\n else this.tools.anchorForwardLineGuide(this._drawnLatLngs[0]);\n return latlng;\n },\n\n processDrawingClick: function (e) {\n if (e.vertex && e.vertex.editor === this) return;\n if (this._drawing === L.Editable.FORWARD) this.newPointForward(e.latlng);\n else this.newPointBackward(e.latlng);\n this.fireAndForward('editable:drawing:clicked', e);\n },\n\n onDrawingMouseMove: function (e) {\n L.Editable.BaseEditor.prototype.onDrawingMouseMove.call(this, e);\n if (this._drawing) {\n this.tools.moveForwardLineGuide(e.latlng);\n this.tools.moveBackwardLineGuide(e.latlng);\n }\n },\n\n refresh: function () {\n this.feature.redraw();\n this.onEditing();\n },\n\n // 🍂namespace PathEditor\n // 🍂method newShape(latlng?: L.LatLng)\n // Add a new shape (Polyline, Polygon) in a multi, and setup up drawing tools to draw it;\n // if optional `latlng` is given, start a path at this point.\n newShape: function (latlng) {\n var shape = this.addNewEmptyShape();\n if (!shape) return;\n this.setDrawnLatLngs(shape[0] || shape); // Polygon or polyline\n this.startDrawingForward();\n // 🍂namespace Editable\n // 🍂section Shape events\n // 🍂event editable:shape:new: ShapeEvent\n // Fired when a new shape is created in a multi (Polygon or Polyline).\n this.fireAndForward('editable:shape:new', {shape: shape});\n if (latlng) this.newPointForward(latlng);\n },\n\n deleteShape: function (shape, latlngs) {\n var e = {shape: shape};\n L.Editable.makeCancellable(e);\n // 🍂namespace Editable\n // 🍂section Shape events\n // 🍂event editable:shape:delete: CancelableShapeEvent\n // Fired before a new shape is deleted in a multi (Polygon or Polyline).\n this.fireAndForward('editable:shape:delete', e);\n if (e._cancelled) return;\n shape = this._deleteShape(shape, latlngs);\n if (this.ensureNotFlat) this.ensureNotFlat(); // Polygon.\n this.feature.setLatLngs(this.getLatLngs()); // Force bounds reset.\n this.refresh();\n this.reset();\n // 🍂namespace Editable\n // 🍂section Shape events\n // 🍂event editable:shape:deleted: ShapeEvent\n // Fired after a new shape is deleted in a multi (Polygon or Polyline).\n this.fireAndForward('editable:shape:deleted', {shape: shape});\n return shape;\n },\n\n _deleteShape: function (shape, latlngs) {\n latlngs = latlngs || this.getLatLngs();\n if (!latlngs.length) return;\n var self = this,\n inplaceDelete = function (latlngs, shape) {\n // Called when deleting a flat latlngs\n shape = latlngs.splice(0, Number.MAX_VALUE);\n return shape;\n },\n spliceDelete = function (latlngs, shape) {\n // Called when removing a latlngs inside an array\n latlngs.splice(latlngs.indexOf(shape), 1);\n if (!latlngs.length) self._deleteShape(latlngs);\n return shape;\n };\n if (latlngs === shape) return inplaceDelete(latlngs, shape);\n for (var i = 0; i < latlngs.length; i++) {\n if (latlngs[i] === shape) return spliceDelete(latlngs, shape);\n else if (latlngs[i].indexOf(shape) !== -1) return spliceDelete(latlngs[i], shape);\n }\n },\n\n // 🍂namespace PathEditor\n // 🍂method deleteShapeAt(latlng: L.LatLng): Array\n // Remove a path shape at the given `latlng`.\n deleteShapeAt: function (latlng) {\n var shape = this.feature.shapeAt(latlng);\n if (shape) return this.deleteShape(shape);\n },\n\n // 🍂method appendShape(shape: Array)\n // Append a new shape to the Polygon or Polyline.\n appendShape: function (shape) {\n this.insertShape(shape);\n },\n\n // 🍂method prependShape(shape: Array)\n // Prepend a new shape to the Polygon or Polyline.\n prependShape: function (shape) {\n this.insertShape(shape, 0);\n },\n\n // 🍂method insertShape(shape: Array, index: int)\n // Insert a new shape to the Polygon or Polyline at given index (default is to append).\n insertShape: function (shape, index) {\n this.ensureMulti();\n shape = this.formatShape(shape);\n if (typeof index === 'undefined') index = this.feature._latlngs.length;\n this.feature._latlngs.splice(index, 0, shape);\n this.feature.redraw();\n if (this._enabled) this.reset();\n },\n\n extendBounds: function (e) {\n this.feature._bounds.extend(e.vertex.latlng);\n },\n\n onDragStart: function (e) {\n this.editLayer.clearLayers();\n L.Editable.BaseEditor.prototype.onDragStart.call(this, e);\n },\n\n onDragEnd: function (e) {\n this.initVertexMarkers();\n L.Editable.BaseEditor.prototype.onDragEnd.call(this, e);\n }\n\n });\n\n // 🍂namespace Editable; 🍂class PolylineEditor; 🍂aka L.Editable.PolylineEditor\n // 🍂inherits PathEditor\n L.Editable.PolylineEditor = L.Editable.PathEditor.extend({\n\n startDrawingBackward: function () {\n this._drawing = L.Editable.BACKWARD;\n this.startDrawing();\n },\n\n // 🍂method continueBackward(latlngs?: Array)\n // Set up drawing tools to continue the line backward.\n continueBackward: function (latlngs) {\n if (this.drawing()) return;\n latlngs = latlngs || this.getDefaultLatLngs();\n this.setDrawnLatLngs(latlngs);\n if (latlngs.length > 0) {\n this.tools.attachBackwardLineGuide();\n this.tools.anchorBackwardLineGuide(latlngs[0]);\n }\n this.startDrawingBackward();\n },\n\n // 🍂method continueForward(latlngs?: Array)\n // Set up drawing tools to continue the line forward.\n continueForward: function (latlngs) {\n if (this.drawing()) return;\n latlngs = latlngs || this.getDefaultLatLngs();\n this.setDrawnLatLngs(latlngs);\n if (latlngs.length > 0) {\n this.tools.attachForwardLineGuide();\n this.tools.anchorForwardLineGuide(latlngs[latlngs.length - 1]);\n }\n this.startDrawingForward();\n },\n\n getDefaultLatLngs: function (latlngs) {\n latlngs = latlngs || this.feature._latlngs;\n if (!latlngs.length || latlngs[0] instanceof L.LatLng) return latlngs;\n else return this.getDefaultLatLngs(latlngs[0]);\n },\n\n ensureMulti: function () {\n if (this.feature._latlngs.length && isFlat(this.feature._latlngs)) {\n this.feature._latlngs = [this.feature._latlngs];\n }\n },\n\n addNewEmptyShape: function () {\n if (this.feature._latlngs.length) {\n var shape = [];\n this.appendShape(shape);\n return shape;\n } else {\n return this.feature._latlngs;\n }\n },\n\n formatShape: function (shape) {\n if (isFlat(shape)) return shape;\n else if (shape[0]) return this.formatShape(shape[0]);\n },\n\n // 🍂method splitShape(latlngs?: Array, index: int)\n // Split the given `latlngs` shape at index `index` and integrate new shape in instance `latlngs`.\n splitShape: function (shape, index) {\n if (!index || index >= shape.length - 1) return;\n this.ensureMulti();\n var shapeIndex = this.feature._latlngs.indexOf(shape);\n if (shapeIndex === -1) return;\n var first = shape.slice(0, index + 1),\n second = shape.slice(index);\n // We deal with reference, we don't want twice the same latlng around.\n second[0] = L.latLng(second[0].lat, second[0].lng, second[0].alt);\n this.feature._latlngs.splice(shapeIndex, 1, first, second);\n this.refresh();\n this.reset();\n }\n\n });\n\n // 🍂namespace Editable; 🍂class PolygonEditor; 🍂aka L.Editable.PolygonEditor\n // 🍂inherits PathEditor\n L.Editable.PolygonEditor = L.Editable.PathEditor.extend({\n\n CLOSED: true,\n MIN_VERTEX: 3,\n\n newPointForward: function (latlng) {\n L.Editable.PathEditor.prototype.newPointForward.call(this, latlng);\n if (!this.tools.backwardLineGuide._latlngs.length) this.tools.anchorBackwardLineGuide(latlng);\n if (this._drawnLatLngs.length === 2) this.tools.attachBackwardLineGuide();\n },\n\n addNewEmptyHole: function (latlng) {\n this.ensureNotFlat();\n var latlngs = this.feature.shapeAt(latlng);\n if (!latlngs) return;\n var holes = [];\n latlngs.push(holes);\n return holes;\n },\n\n // 🍂method newHole(latlng?: L.LatLng, index: int)\n // Set up drawing tools for creating a new hole on the Polygon. If the `latlng` param is given, a first point is created.\n newHole: function (latlng) {\n var holes = this.addNewEmptyHole(latlng);\n if (!holes) return;\n this.setDrawnLatLngs(holes);\n this.startDrawingForward();\n if (latlng) this.newPointForward(latlng);\n },\n\n addNewEmptyShape: function () {\n if (this.feature._latlngs.length && this.feature._latlngs[0].length) {\n var shape = [];\n this.appendShape(shape);\n return shape;\n } else {\n return this.feature._latlngs;\n }\n },\n\n ensureMulti: function () {\n if (this.feature._latlngs.length && isFlat(this.feature._latlngs[0])) {\n this.feature._latlngs = [this.feature._latlngs];\n }\n },\n\n ensureNotFlat: function () {\n if (!this.feature._latlngs.length || isFlat(this.feature._latlngs)) this.feature._latlngs = [this.feature._latlngs];\n },\n\n vertexCanBeDeleted: function (vertex) {\n var parent = this.feature.parentShape(vertex.latlngs),\n idx = L.Util.indexOf(parent, vertex.latlngs);\n if (idx > 0) return true; // Holes can be totally deleted without removing the layer itself.\n return L.Editable.PathEditor.prototype.vertexCanBeDeleted.call(this, vertex);\n },\n\n getDefaultLatLngs: function () {\n if (!this.feature._latlngs.length) this.feature._latlngs.push([]);\n return this.feature._latlngs[0];\n },\n\n formatShape: function (shape) {\n // [[1, 2], [3, 4]] => must be nested\n // [] => must be nested\n // [[]] => is already nested\n if (isFlat(shape) && (!shape[0] || shape[0].length !== 0)) return [shape];\n else return shape;\n }\n\n });\n\n // 🍂namespace Editable; 🍂class RectangleEditor; 🍂aka L.Editable.RectangleEditor\n // 🍂inherits PathEditor\n L.Editable.RectangleEditor = L.Editable.PathEditor.extend({\n\n CLOSED: true,\n MIN_VERTEX: 4,\n\n options: {\n skipMiddleMarkers: true\n },\n\n extendBounds: function (e) {\n var index = e.vertex.getIndex(),\n next = e.vertex.getNext(),\n previous = e.vertex.getPrevious(),\n oppositeIndex = (index + 2) % 4,\n opposite = e.vertex.latlngs[oppositeIndex],\n bounds = new L.LatLngBounds(e.latlng, opposite);\n // Update latlngs by hand to preserve order.\n previous.latlng.update([e.latlng.lat, opposite.lng]);\n next.latlng.update([opposite.lat, e.latlng.lng]);\n this.updateBounds(bounds);\n this.refreshVertexMarkers();\n },\n\n onDrawingMouseDown: function (e) {\n L.Editable.PathEditor.prototype.onDrawingMouseDown.call(this, e);\n this.connect();\n var latlngs = this.getDefaultLatLngs();\n // L.Polygon._convertLatLngs removes last latlng if it equals first point,\n // which is the case here as all latlngs are [0, 0]\n if (latlngs.length === 3) latlngs.push(e.latlng);\n var bounds = new L.LatLngBounds(e.latlng, e.latlng);\n this.updateBounds(bounds);\n this.updateLatLngs(bounds);\n this.refresh();\n this.reset();\n // Stop dragging map.\n // L.Draggable has two workflows:\n // - mousedown => mousemove => mouseup\n // - touchstart => touchmove => touchend\n // Problem: L.Map.Tap does not allow us to listen to touchstart, so we only\n // can deal with mousedown, but then when in a touch device, we are dealing with\n // simulated events (actually simulated by L.Map.Tap), which are no more taken\n // into account by L.Draggable.\n // Ref.: https://github.com/Leaflet/Leaflet.Editable/issues/103\n e.originalEvent._simulated = false;\n this.map.dragging._draggable._onUp(e.originalEvent);\n // Now transfer ongoing drag action to the bottom right corner.\n // Should we refine which corne will handle the drag according to\n // drag direction?\n latlngs[3].__vertex.dragging._draggable._onDown(e.originalEvent);\n },\n\n onDrawingMouseUp: function (e) {\n this.commitDrawing(e);\n e.originalEvent._simulated = false;\n L.Editable.PathEditor.prototype.onDrawingMouseUp.call(this, e);\n },\n\n onDrawingMouseMove: function (e) {\n e.originalEvent._simulated = false;\n L.Editable.PathEditor.prototype.onDrawingMouseMove.call(this, e);\n },\n\n\n getDefaultLatLngs: function (latlngs) {\n return latlngs || this.feature._latlngs[0];\n },\n\n updateBounds: function (bounds) {\n this.feature._bounds = bounds;\n },\n\n updateLatLngs: function (bounds) {\n var latlngs = this.getDefaultLatLngs(),\n newLatlngs = this.feature._boundsToLatLngs(bounds);\n // Keep references.\n for (var i = 0; i < latlngs.length; i++) {\n latlngs[i].update(newLatlngs[i]);\n };\n }\n\n });\n\n // 🍂namespace Editable; 🍂class CircleEditor; 🍂aka L.Editable.CircleEditor\n // 🍂inherits PathEditor\n L.Editable.CircleEditor = L.Editable.PathEditor.extend({\n\n MIN_VERTEX: 2,\n\n options: {\n skipMiddleMarkers: true\n },\n\n initialize: function (map, feature, options) {\n L.Editable.PathEditor.prototype.initialize.call(this, map, feature, options);\n this._resizeLatLng = this.computeResizeLatLng();\n },\n\n computeResizeLatLng: function () {\n // While circle is not added to the map, _radius is not set.\n var delta = (this.feature._radius || this.feature._mRadius) * Math.cos(Math.PI / 4),\n point = this.map.project(this.feature._latlng);\n return this.map.unproject([point.x + delta, point.y - delta]);\n },\n\n updateResizeLatLng: function () {\n this._resizeLatLng.update(this.computeResizeLatLng());\n this._resizeLatLng.__vertex.update();\n },\n\n getLatLngs: function () {\n return [this.feature._latlng, this._resizeLatLng];\n },\n\n getDefaultLatLngs: function () {\n return this.getLatLngs();\n },\n\n onVertexMarkerDrag: function (e) {\n if (e.vertex.getIndex() === 1) this.resize(e);\n else this.updateResizeLatLng(e);\n L.Editable.PathEditor.prototype.onVertexMarkerDrag.call(this, e);\n },\n\n resize: function (e) {\n var radius = this.feature._latlng.distanceTo(e.latlng)\n this.feature.setRadius(radius);\n },\n\n onDrawingMouseDown: function (e) {\n L.Editable.PathEditor.prototype.onDrawingMouseDown.call(this, e);\n this._resizeLatLng.update(e.latlng);\n this.feature._latlng.update(e.latlng);\n this.connect();\n // Stop dragging map.\n e.originalEvent._simulated = false;\n this.map.dragging._draggable._onUp(e.originalEvent);\n // Now transfer ongoing drag action to the radius handler.\n this._resizeLatLng.__vertex.dragging._draggable._onDown(e.originalEvent);\n },\n\n onDrawingMouseUp: function (e) {\n this.commitDrawing(e);\n e.originalEvent._simulated = false;\n L.Editable.PathEditor.prototype.onDrawingMouseUp.call(this, e);\n },\n\n onDrawingMouseMove: function (e) {\n e.originalEvent._simulated = false;\n L.Editable.PathEditor.prototype.onDrawingMouseMove.call(this, e);\n },\n\n onDrag: function (e) {\n L.Editable.PathEditor.prototype.onDrag.call(this, e);\n this.feature.dragging.updateLatLng(this._resizeLatLng);\n }\n\n });\n\n // 🍂namespace Editable; 🍂class EditableMixin\n // `EditableMixin` is included to `L.Polyline`, `L.Polygon`, `L.Rectangle`, `L.Circle`\n // and `L.Marker`. It adds some methods to them.\n // *When editing is enabled, the editor is accessible on the instance with the\n // `editor` property.*\n var EditableMixin = {\n\n createEditor: function (map) {\n map = map || this._map;\n var tools = (this.options.editOptions || {}).editTools || map.editTools;\n if (!tools) throw Error('Unable to detect Editable instance.')\n var Klass = this.options.editorClass || this.getEditorClass(tools);\n return new Klass(map, this, this.options.editOptions);\n },\n\n // 🍂method enableEdit(map?: L.Map): this.editor\n // Enable editing, by creating an editor if not existing, and then calling `enable` on it.\n enableEdit: function (map) {\n if (!this.editor) this.createEditor(map);\n this.editor.enable();\n return this.editor;\n },\n\n // 🍂method editEnabled(): boolean\n // Return true if current instance has an editor attached, and this editor is enabled.\n editEnabled: function () {\n return this.editor && this.editor.enabled();\n },\n\n // 🍂method disableEdit()\n // Disable editing, also remove the editor property reference.\n disableEdit: function () {\n if (this.editor) {\n this.editor.disable();\n delete this.editor;\n }\n },\n\n // 🍂method toggleEdit()\n // Enable or disable editing, according to current status.\n toggleEdit: function () {\n if (this.editEnabled()) this.disableEdit();\n else this.enableEdit();\n },\n\n _onEditableAdd: function () {\n if (this.editor) this.enableEdit();\n }\n\n };\n\n var PolylineMixin = {\n\n getEditorClass: function (tools) {\n return (tools && tools.options.polylineEditorClass) ? tools.options.polylineEditorClass : L.Editable.PolylineEditor;\n },\n\n shapeAt: function (latlng, latlngs) {\n // We can have those cases:\n // - latlngs are just a flat array of latlngs, use this\n // - latlngs is an array of arrays of latlngs, loop over\n var shape = null;\n latlngs = latlngs || this._latlngs;\n if (!latlngs.length) return shape;\n else if (isFlat(latlngs) && this.isInLatLngs(latlng, latlngs)) shape = latlngs;\n else for (var i = 0; i < latlngs.length; i++) if (this.isInLatLngs(latlng, latlngs[i])) return latlngs[i];\n return shape;\n },\n\n isInLatLngs: function (l, latlngs) {\n if (!latlngs) return false;\n var i, k, len, part = [], p,\n w = this._clickTolerance();\n this._projectLatlngs(latlngs, part, this._pxBounds);\n part = part[0];\n p = this._map.latLngToLayerPoint(l);\n\n if (!this._pxBounds.contains(p)) { return false; }\n for (i = 1, len = part.length, k = 0; i < len; k = i++) {\n\n if (L.LineUtil.pointToSegmentDistance(p, part[k], part[i]) <= w) {\n return true;\n }\n }\n return false;\n }\n\n };\n\n var PolygonMixin = {\n\n getEditorClass: function (tools) {\n return (tools && tools.options.polygonEditorClass) ? tools.options.polygonEditorClass : L.Editable.PolygonEditor;\n },\n\n shapeAt: function (latlng, latlngs) {\n // We can have those cases:\n // - latlngs are just a flat array of latlngs, use this\n // - latlngs is an array of arrays of latlngs, this is a simple polygon (maybe with holes), use the first\n // - latlngs is an array of arrays of arrays, this is a multi, loop over\n var shape = null;\n latlngs = latlngs || this._latlngs;\n if (!latlngs.length) return shape;\n else if (isFlat(latlngs) && this.isInLatLngs(latlng, latlngs)) shape = latlngs;\n else if (isFlat(latlngs[0]) && this.isInLatLngs(latlng, latlngs[0])) shape = latlngs;\n else for (var i = 0; i < latlngs.length; i++) if (this.isInLatLngs(latlng, latlngs[i][0])) return latlngs[i];\n return shape;\n },\n\n isInLatLngs: function (l, latlngs) {\n var inside = false, l1, l2, j, k, len2;\n\n for (j = 0, len2 = latlngs.length, k = len2 - 1; j < len2; k = j++) {\n l1 = latlngs[j];\n l2 = latlngs[k];\n\n if (((l1.lat > l.lat) !== (l2.lat > l.lat)) &&\n (l.lng < (l2.lng - l1.lng) * (l.lat - l1.lat) / (l2.lat - l1.lat) + l1.lng)) {\n inside = !inside;\n }\n }\n\n return inside;\n },\n\n parentShape: function (shape, latlngs) {\n latlngs = latlngs || this._latlngs;\n if (!latlngs) return;\n var idx = L.Util.indexOf(latlngs, shape);\n if (idx !== -1) return latlngs;\n for (var i = 0; i < latlngs.length; i++) {\n idx = L.Util.indexOf(latlngs[i], shape);\n if (idx !== -1) return latlngs[i];\n }\n }\n\n };\n\n\n var MarkerMixin = {\n\n getEditorClass: function (tools) {\n return (tools && tools.options.markerEditorClass) ? tools.options.markerEditorClass : L.Editable.MarkerEditor;\n }\n\n };\n\n var RectangleMixin = {\n\n getEditorClass: function (tools) {\n return (tools && tools.options.rectangleEditorClass) ? tools.options.rectangleEditorClass : L.Editable.RectangleEditor;\n }\n\n };\n\n var CircleMixin = {\n\n getEditorClass: function (tools) {\n return (tools && tools.options.circleEditorClass) ? tools.options.circleEditorClass : L.Editable.CircleEditor;\n }\n\n };\n\n var keepEditable = function () {\n // Make sure you can remove/readd an editable layer.\n this.on('add', this._onEditableAdd);\n };\n\n var isFlat = L.LineUtil.isFlat || L.LineUtil._flat || L.Polyline._flat; // <=> 1.1 compat.\n\n\n if (L.Polyline) {\n L.Polyline.include(EditableMixin);\n L.Polyline.include(PolylineMixin);\n L.Polyline.addInitHook(keepEditable);\n }\n if (L.Polygon) {\n L.Polygon.include(EditableMixin);\n L.Polygon.include(PolygonMixin);\n }\n if (L.Marker) {\n L.Marker.include(EditableMixin);\n L.Marker.include(MarkerMixin);\n L.Marker.addInitHook(keepEditable);\n }\n if (L.Rectangle) {\n L.Rectangle.include(EditableMixin);\n L.Rectangle.include(RectangleMixin);\n }\n if (L.Circle) {\n L.Circle.include(EditableMixin);\n L.Circle.include(CircleMixin);\n }\n\n L.LatLng.prototype.update = function (latlng) {\n latlng = L.latLng(latlng);\n this.lat = latlng.lat;\n this.lng = latlng.lng;\n }\n\n}, window));\n"
},
{
"id": 63,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_classof.js",
"name": "./node_modules/core-js/library/modules/_classof.js",
"index": 120,
"index2": 112,
"size": 718,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/core.is-iterable.js",
"issuerId": 140,
"issuerName": "./node_modules/core-js/library/modules/core.is-iterable.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 136,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Poly.js",
"name": "./src/modules/Poly.js"
},
{
"id": 137,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/slicedToArray.js",
"name": "./node_modules/babel-runtime/helpers/slicedToArray.js"
},
{
"id": 138,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/is-iterable.js",
"name": "./node_modules/babel-runtime/core-js/is-iterable.js"
},
{
"id": 139,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/is-iterable.js",
"name": "./node_modules/core-js/library/fn/is-iterable.js"
},
{
"id": 140,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/core.is-iterable.js",
"name": "./node_modules/core-js/library/modules/core.is-iterable.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 64,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/core.get-iterator-method.js",
"module": "./node_modules/core-js/library/modules/core.get-iterator-method.js",
"moduleName": "./node_modules/core-js/library/modules/core.get-iterator-method.js",
"type": "cjs require",
"userRequest": "./_classof",
"loc": "1:14-35"
},
{
"moduleId": 140,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/core.is-iterable.js",
"module": "./node_modules/core-js/library/modules/core.is-iterable.js",
"moduleName": "./node_modules/core-js/library/modules/core.is-iterable.js",
"type": "cjs require",
"userRequest": "./_classof",
"loc": "1:14-35"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 8,
"source": "// getting tag from 19.1.3.6 Object.prototype.toString()\nvar cof = require('./_cof');\nvar TAG = require('./_wks')('toStringTag');\n// ES3 wrong here\nvar ARG = cof(function () { return arguments; }()) == 'Arguments';\n\n// fallback for IE11 Script Access Denied error\nvar tryGet = function (it, key) {\n try {\n return it[key];\n } catch (e) { /* empty */ }\n};\n\nmodule.exports = function (it) {\n var O, T, B;\n return it === undefined ? 'Undefined' : it === null ? 'Null'\n // @@toStringTag case\n : typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T\n // builtinTag case\n : ARG ? cof(O)\n // ES3 arguments fallback\n : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;\n};\n"
},
{
"id": 64,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/core.get-iterator-method.js",
"name": "./node_modules/core-js/library/modules/core.get-iterator-method.js",
"index": 124,
"index2": 116,
"size": 297,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/core.get-iterator.js",
"issuerId": 143,
"issuerName": "./node_modules/core-js/library/modules/core.get-iterator.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 136,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Poly.js",
"name": "./src/modules/Poly.js"
},
{
"id": 137,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/slicedToArray.js",
"name": "./node_modules/babel-runtime/helpers/slicedToArray.js"
},
{
"id": 141,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/get-iterator.js",
"name": "./node_modules/babel-runtime/core-js/get-iterator.js"
},
{
"id": 142,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/get-iterator.js",
"name": "./node_modules/core-js/library/fn/get-iterator.js"
},
{
"id": 143,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/core.get-iterator.js",
"name": "./node_modules/core-js/library/modules/core.get-iterator.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 143,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/core.get-iterator.js",
"module": "./node_modules/core-js/library/modules/core.get-iterator.js",
"moduleName": "./node_modules/core-js/library/modules/core.get-iterator.js",
"type": "cjs require",
"userRequest": "./core.get-iterator-method",
"loc": "2:10-47"
},
{
"moduleId": 155,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.array.from.js",
"module": "./node_modules/core-js/library/modules/es6.array.from.js",
"moduleName": "./node_modules/core-js/library/modules/es6.array.from.js",
"type": "cjs require",
"userRequest": "./core.get-iterator-method",
"loc": "9:16-53"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 8,
"source": "var classof = require('./_classof');\nvar ITERATOR = require('./_wks')('iterator');\nvar Iterators = require('./_iterators');\nmodule.exports = require('./_core').getIteratorMethod = function (it) {\n if (it != undefined) return it[ITERATOR]\n || it['@@iterator']\n || Iterators[classof(it)];\n};\n"
},
{
"id": 65,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/constants/modes.js",
"name": "./src/constants/modes.js",
"index": 125,
"index2": 122,
"size": 644,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"issuerId": 89,
"issuerName": "./src/containers/App.jsx",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 89,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"module": "./src/containers/App.jsx",
"moduleName": "./src/containers/App.jsx",
"type": "cjs require",
"userRequest": "$constants/modes",
"loc": "30:13-40"
},
{
"moduleId": 124,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"module": "./src/modules/Editor.js",
"moduleName": "./src/modules/Editor.js",
"type": "cjs require",
"userRequest": "$constants/modes",
"loc": "24:13-40"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 2,
"source": "'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\n(function () {\n var enterModule = require('react-hot-loader').enterModule;\n\n enterModule && enterModule(module);\n})();\n\nvar MODES = exports.MODES = {\n POLY: 'POLY',\n STICKERS: 'STICKERS',\n ROUTER: 'ROUTER',\n SHOTTER: 'SHOTTER',\n NONE: 'NONE'\n};\n;\n\n(function () {\n var reactHotLoader = require('react-hot-loader').default;\n\n var leaveModule = require('react-hot-loader').leaveModule;\n\n if (!reactHotLoader) {\n return;\n }\n\n reactHotLoader.register(MODES, 'MODES', '/Users/user/Projects/orchid/src/constants/modes.js');\n leaveModule(module);\n})();\n\n;"
},
{
"id": 66,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/utils/DomMarker.js",
"name": "./src/utils/DomMarker.js",
"index": 128,
"index2": 123,
"size": 1093,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"issuerId": 146,
"issuerName": "./src/modules/Router.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 146,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"name": "./src/modules/Router.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 145,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Sticker.js",
"module": "./src/modules/Sticker.js",
"moduleName": "./src/modules/Sticker.js",
"type": "cjs require",
"userRequest": "$utils/DomMarker",
"loc": "20:17-44"
},
{
"moduleId": 146,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"module": "./src/modules/Router.js",
"moduleName": "./src/modules/Router.js",
"type": "cjs require",
"userRequest": "$utils/DomMarker",
"loc": "34:17-44"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 4,
"source": "'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.DomMarker = undefined;\n\nvar _leaflet = require('leaflet');\n\n(function () {\n var enterModule = require('react-hot-loader').enterModule;\n\n enterModule && enterModule(module);\n})();\n\nvar DomMarker = exports.DomMarker = _leaflet.DivIcon.extend({\n initialize: function initialize(options) {\n this.options = options;\n },\n\n options: {\n element: null // a initialized DOM element\n // same options as divIcon except for html\n },\n\n createIcon: function createIcon() {\n var _options = this.options,\n html = _options.html,\n element = _options.element,\n className = _options.className;\n\n\n this._setIconStyles(element, 'icon');\n\n return element;\n }\n});\n;\n\n(function () {\n var reactHotLoader = require('react-hot-loader').default;\n\n var leaveModule = require('react-hot-loader').leaveModule;\n\n if (!reactHotLoader) {\n return;\n }\n\n reactHotLoader.register(DomMarker, 'DomMarker', '/Users/user/Projects/orchid/src/utils/DomMarker.js');\n leaveModule(module);\n})();\n\n;"
},
{
"id": 67,
"identifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/itinerary.js",
"name": "./node_modules/leaflet-routing-machine/src/itinerary.js",
"index": 145,
"index2": 142,
"size": 6566,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/index.js",
"issuerId": 160,
"issuerName": "./node_modules/leaflet-routing-machine/src/index.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 146,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"name": "./src/modules/Router.js"
},
{
"id": 160,
"identifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/index.js",
"name": "./node_modules/leaflet-routing-machine/src/index.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 160,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/index.js",
"module": "./node_modules/leaflet-routing-machine/src/index.js",
"moduleName": "./node_modules/leaflet-routing-machine/src/index.js",
"type": "cjs require",
"userRequest": "./itinerary",
"loc": "3:16-38"
},
{
"moduleId": 161,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/control.js",
"module": "./node_modules/leaflet-routing-machine/src/control.js",
"moduleName": "./node_modules/leaflet-routing-machine/src/control.js",
"type": "cjs require",
"userRequest": "./itinerary",
"loc": "6:17-39"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 5,
"source": "(function() {\n\t'use strict';\n\n\tvar L = require('leaflet');\n\tvar Formatter = require('./formatter');\n\tvar ItineraryBuilder = require('./itinerary-builder');\n\n\tmodule.exports = L.Control.extend({\n\t\tincludes: ((typeof L.Evented !== 'undefined' && L.Evented.prototype) || L.Mixin.Events),\n\n\t\toptions: {\n\t\t\tpointMarkerStyle: {\n\t\t\t\tradius: 5,\n\t\t\t\tcolor: '#03f',\n\t\t\t\tfillColor: 'white',\n\t\t\t\topacity: 1,\n\t\t\t\tfillOpacity: 0.7\n\t\t\t},\n\t\t\tsummaryTemplate: '<h2>{name}</h2><h3>{distance}, {time}</h3>',\n\t\t\ttimeTemplate: '{time}',\n\t\t\tcontainerClassName: '',\n\t\t\talternativeClassName: '',\n\t\t\tminimizedClassName: '',\n\t\t\titineraryClassName: '',\n\t\t\ttotalDistanceRoundingSensitivity: -1,\n\t\t\tshow: true,\n\t\t\tcollapsible: undefined,\n\t\t\tcollapseBtn: function(itinerary) {\n\t\t\t\tvar collapseBtn = L.DomUtil.create('span', itinerary.options.collapseBtnClass);\n\t\t\t\tL.DomEvent.on(collapseBtn, 'click', itinerary._toggle, itinerary);\n\t\t\t\titinerary._container.insertBefore(collapseBtn, itinerary._container.firstChild);\n\t\t\t},\n\t\t\tcollapseBtnClass: 'leaflet-routing-collapse-btn'\n\t\t},\n\n\t\tinitialize: function(options) {\n\t\t\tL.setOptions(this, options);\n\t\t\tthis._formatter = this.options.formatter || new Formatter(this.options);\n\t\t\tthis._itineraryBuilder = this.options.itineraryBuilder || new ItineraryBuilder({\n\t\t\t\tcontainerClassName: this.options.itineraryClassName\n\t\t\t});\n\t\t},\n\n\t\tonAdd: function(map) {\n\t\t\tvar collapsible = this.options.collapsible;\n\n\t\t\tcollapsible = collapsible || (collapsible === undefined && map.getSize().x <= 640);\n\n\t\t\tthis._container = L.DomUtil.create('div', 'leaflet-routing-container leaflet-bar ' +\n\t\t\t\t(!this.options.show ? 'leaflet-routing-container-hide ' : '') +\n\t\t\t\t(collapsible ? 'leaflet-routing-collapsible ' : '') +\n\t\t\t\tthis.options.containerClassName);\n\t\t\tthis._altContainer = this.createAlternativesContainer();\n\t\t\tthis._container.appendChild(this._altContainer);\n\t\t\tL.DomEvent.disableClickPropagation(this._container);\n\t\t\tL.DomEvent.addListener(this._container, 'mousewheel', function(e) {\n\t\t\t\tL.DomEvent.stopPropagation(e);\n\t\t\t});\n\n\t\t\tif (collapsible) {\n\t\t\t\tthis.options.collapseBtn(this);\n\t\t\t}\n\n\t\t\treturn this._container;\n\t\t},\n\n\t\tonRemove: function() {\n\t\t},\n\n\t\tcreateAlternativesContainer: function() {\n\t\t\treturn L.DomUtil.create('div', 'leaflet-routing-alternatives-container');\n\t\t},\n\n\t\tsetAlternatives: function(routes) {\n\t\t\tvar i,\n\t\t\t alt,\n\t\t\t altDiv;\n\n\t\t\tthis._clearAlts();\n\n\t\t\tthis._routes = routes;\n\n\t\t\tfor (i = 0; i < this._routes.length; i++) {\n\t\t\t\talt = this._routes[i];\n\t\t\t\taltDiv = this._createAlternative(alt, i);\n\t\t\t\tthis._altContainer.appendChild(altDiv);\n\t\t\t\tthis._altElements.push(altDiv);\n\t\t\t}\n\n\t\t\tthis._selectRoute({route: this._routes[0], alternatives: this._routes.slice(1)});\n\n\t\t\treturn this;\n\t\t},\n\n\t\tshow: function() {\n\t\t\tL.DomUtil.removeClass(this._container, 'leaflet-routing-container-hide');\n\t\t},\n\n\t\thide: function() {\n\t\t\tL.DomUtil.addClass(this._container, 'leaflet-routing-container-hide');\n\t\t},\n\n\t\t_toggle: function() {\n\t\t\tvar collapsed = L.DomUtil.hasClass(this._container, 'leaflet-routing-container-hide');\n\t\t\tthis[collapsed ? 'show' : 'hide']();\n\t\t},\n\n\t\t_createAlternative: function(alt, i) {\n\t\t\tvar altDiv = L.DomUtil.create('div', 'leaflet-routing-alt ' +\n\t\t\t\tthis.options.alternativeClassName +\n\t\t\t\t(i > 0 ? ' leaflet-routing-alt-minimized ' + this.options.minimizedClassName : '')),\n\t\t\t\ttemplate = this.options.summaryTemplate,\n\t\t\t\tdata = L.extend({\n\t\t\t\t\tname: alt.name,\n\t\t\t\t\tdistance: this._formatter.formatDistance(alt.summary.totalDistance, this.options.totalDistanceRoundingSensitivity),\n\t\t\t\t\ttime: this._formatter.formatTime(alt.summary.totalTime)\n\t\t\t\t}, alt);\n\t\t\taltDiv.innerHTML = typeof(template) === 'function' ? template(data) : L.Util.template(template, data);\n\t\t\tL.DomEvent.addListener(altDiv, 'click', this._onAltClicked, this);\n\t\t\tthis.on('routeselected', this._selectAlt, this);\n\n\t\t\taltDiv.appendChild(this._createItineraryContainer(alt));\n\t\t\treturn altDiv;\n\t\t},\n\n\t\t_clearAlts: function() {\n\t\t\tvar el = this._altContainer;\n\t\t\twhile (el && el.firstChild) {\n\t\t\t\tel.removeChild(el.firstChild);\n\t\t\t}\n\n\t\t\tthis._altElements = [];\n\t\t},\n\n\t\t_createItineraryContainer: function(r) {\n\t\t\tvar container = this._itineraryBuilder.createContainer(),\n\t\t\t steps = this._itineraryBuilder.createStepsContainer(),\n\t\t\t i,\n\t\t\t instr,\n\t\t\t step,\n\t\t\t distance,\n\t\t\t text,\n\t\t\t icon;\n\n\t\t\tcontainer.appendChild(steps);\n\n\t\t\tfor (i = 0; i < r.instructions.length; i++) {\n\t\t\t\tinstr = r.instructions[i];\n\t\t\t\ttext = this._formatter.formatInstruction(instr, i);\n\t\t\t\tdistance = this._formatter.formatDistance(instr.distance);\n\t\t\t\ticon = this._formatter.getIconName(instr, i);\n\t\t\t\tstep = this._itineraryBuilder.createStep(text, distance, icon, steps);\n\n\t\t\t\tif(instr.index) {\n\t\t\t\t\tthis._addRowListeners(step, r.coordinates[instr.index]);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn container;\n\t\t},\n\n\t\t_addRowListeners: function(row, coordinate) {\n\t\t\tL.DomEvent.addListener(row, 'mouseover', function() {\n\t\t\t\tthis._marker = L.circleMarker(coordinate,\n\t\t\t\t\tthis.options.pointMarkerStyle).addTo(this._map);\n\t\t\t}, this);\n\t\t\tL.DomEvent.addListener(row, 'mouseout', function() {\n\t\t\t\tif (this._marker) {\n\t\t\t\t\tthis._map.removeLayer(this._marker);\n\t\t\t\t\tdelete this._marker;\n\t\t\t\t}\n\t\t\t}, this);\n\t\t\tL.DomEvent.addListener(row, 'click', function(e) {\n\t\t\t\tthis._map.panTo(coordinate);\n\t\t\t\tL.DomEvent.stopPropagation(e);\n\t\t\t}, this);\n\t\t},\n\n\t\t_onAltClicked: function(e) {\n\t\t\tvar altElem = e.target || window.event.srcElement;\n\t\t\twhile (!L.DomUtil.hasClass(altElem, 'leaflet-routing-alt')) {\n\t\t\t\taltElem = altElem.parentElement;\n\t\t\t}\n\n\t\t\tvar j = this._altElements.indexOf(altElem);\n\t\t\tvar alts = this._routes.slice();\n\t\t\tvar route = alts.splice(j, 1)[0];\n\n\t\t\tthis.fire('routeselected', {\n\t\t\t\troute: route,\n\t\t\t\talternatives: alts\n\t\t\t});\n\t\t},\n\n\t\t_selectAlt: function(e) {\n\t\t\tvar altElem,\n\t\t\t j,\n\t\t\t n,\n\t\t\t classFn;\n\n\t\t\taltElem = this._altElements[e.route.routesIndex];\n\n\t\t\tif (L.DomUtil.hasClass(altElem, 'leaflet-routing-alt-minimized')) {\n\t\t\t\tfor (j = 0; j < this._altElements.length; j++) {\n\t\t\t\t\tn = this._altElements[j];\n\t\t\t\t\tclassFn = j === e.route.routesIndex ? 'removeClass' : 'addClass';\n\t\t\t\t\tL.DomUtil[classFn](n, 'leaflet-routing-alt-minimized');\n\t\t\t\t\tif (this.options.minimizedClassName) {\n\t\t\t\t\t\tL.DomUtil[classFn](n, this.options.minimizedClassName);\n\t\t\t\t\t}\n\n\t\t\t\t\tif (j !== e.route.routesIndex) n.scrollTop = 0;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tL.DomEvent.stop(e);\n\t\t},\n\n\t\t_selectRoute: function(routes) {\n\t\t\tif (this._marker) {\n\t\t\t\tthis._map.removeLayer(this._marker);\n\t\t\t\tdelete this._marker;\n\t\t\t}\n\t\t\tthis.fire('routeselected', routes);\n\t\t}\n\t});\n})();\n"
},
{
"id": 68,
"identifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/formatter.js",
"name": "./node_modules/leaflet-routing-machine/src/formatter.js",
"index": 146,
"index2": 140,
"size": 4127,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/index.js",
"issuerId": 160,
"issuerName": "./node_modules/leaflet-routing-machine/src/index.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 146,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"name": "./src/modules/Router.js"
},
{
"id": 160,
"identifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/index.js",
"name": "./node_modules/leaflet-routing-machine/src/index.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 67,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/itinerary.js",
"module": "./node_modules/leaflet-routing-machine/src/itinerary.js",
"moduleName": "./node_modules/leaflet-routing-machine/src/itinerary.js",
"type": "cjs require",
"userRequest": "./formatter",
"loc": "5:17-39"
},
{
"moduleId": 160,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/index.js",
"module": "./node_modules/leaflet-routing-machine/src/index.js",
"moduleName": "./node_modules/leaflet-routing-machine/src/index.js",
"type": "cjs require",
"userRequest": "./formatter",
"loc": "9:16-38"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 5,
"source": "(function() {\n\t'use strict';\n\n\tvar L = require('leaflet');\n\n\tvar Localization = require('./localization');\n\n\tmodule.exports = L.Class.extend({\n\t\toptions: {\n\t\t\tunits: 'metric',\n\t\t\tunitNames: null,\n\t\t\tlanguage: 'en',\n\t\t\troundingSensitivity: 1,\n\t\t\tdistanceTemplate: '{value} {unit}'\n\t\t},\n\n\t\tinitialize: function(options) {\n\t\t\tL.setOptions(this, options);\n\n\t\t\tvar langs = L.Util.isArray(this.options.language) ?\n\t\t\t\tthis.options.language :\n\t\t\t\t[this.options.language, 'en'];\n\t\t\tthis._localization = new Localization(langs);\n\t\t},\n\n\t\tformatDistance: function(d /* Number (meters) */, sensitivity) {\n\t\t\tvar un = this.options.unitNames || this._localization.localize('units'),\n\t\t\t\tsimpleRounding = sensitivity <= 0,\n\t\t\t\tround = simpleRounding ? function(v) { return v; } : L.bind(this._round, this),\n\t\t\t v,\n\t\t\t yards,\n\t\t\t\tdata,\n\t\t\t\tpow10;\n\n\t\t\tif (this.options.units === 'imperial') {\n\t\t\t\tyards = d / 0.9144;\n\t\t\t\tif (yards >= 1000) {\n\t\t\t\t\tdata = {\n\t\t\t\t\t\tvalue: round(d / 1609.344, sensitivity),\n\t\t\t\t\t\tunit: un.miles\n\t\t\t\t\t};\n\t\t\t\t} else {\n\t\t\t\t\tdata = {\n\t\t\t\t\t\tvalue: round(yards, sensitivity),\n\t\t\t\t\t\tunit: un.yards\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tv = round(d, sensitivity);\n\t\t\t\tdata = {\n\t\t\t\t\tvalue: v >= 1000 ? (v / 1000) : v,\n\t\t\t\t\tunit: v >= 1000 ? un.kilometers : un.meters\n\t\t\t\t};\n\t\t\t}\n\n\t\t\tif (simpleRounding) {\n\t\t\t\tdata.value = data.value.toFixed(-sensitivity);\n\t\t\t}\n\n\t\t\treturn L.Util.template(this.options.distanceTemplate, data);\n\t\t},\n\n\t\t_round: function(d, sensitivity) {\n\t\t\tvar s = sensitivity || this.options.roundingSensitivity,\n\t\t\t\tpow10 = Math.pow(10, (Math.floor(d / s) + '').length - 1),\n\t\t\t\tr = Math.floor(d / pow10),\n\t\t\t\tp = (r > 5) ? pow10 : pow10 / 2;\n\n\t\t\treturn Math.round(d / p) * p;\n\t\t},\n\n\t\tformatTime: function(t /* Number (seconds) */) {\n\t\t\tvar un = this.options.unitNames || this._localization.localize('units');\n\t\t\t// More than 30 seconds precision looks ridiculous\n\t\t\tt = Math.round(t / 30) * 30;\n\n\t\t\tif (t > 86400) {\n\t\t\t\treturn Math.round(t / 3600) + ' ' + un.hours;\n\t\t\t} else if (t > 3600) {\n\t\t\t\treturn Math.floor(t / 3600) + ' ' + un.hours + ' ' +\n\t\t\t\t\tMath.round((t % 3600) / 60) + ' ' + un.minutes;\n\t\t\t} else if (t > 300) {\n\t\t\t\treturn Math.round(t / 60) + ' ' + un.minutes;\n\t\t\t} else if (t > 60) {\n\t\t\t\treturn Math.floor(t / 60) + ' ' + un.minutes +\n\t\t\t\t\t(t % 60 !== 0 ? ' ' + (t % 60) + ' ' + un.seconds : '');\n\t\t\t} else {\n\t\t\t\treturn t + ' ' + un.seconds;\n\t\t\t}\n\t\t},\n\n\t\tformatInstruction: function(instr, i) {\n\t\t\tif (instr.text === undefined) {\n\t\t\t\treturn this.capitalize(L.Util.template(this._getInstructionTemplate(instr, i),\n\t\t\t\t\tL.extend({}, instr, {\n\t\t\t\t\t\texitStr: instr.exit ? this._localization.localize('formatOrder')(instr.exit) : '',\n\t\t\t\t\t\tdir: this._localization.localize(['directions', instr.direction]),\n\t\t\t\t\t\tmodifier: this._localization.localize(['directions', instr.modifier])\n\t\t\t\t\t})));\n\t\t\t} else {\n\t\t\t\treturn instr.text;\n\t\t\t}\n\t\t},\n\n\t\tgetIconName: function(instr, i) {\n\t\t\tswitch (instr.type) {\n\t\t\tcase 'Head':\n\t\t\t\tif (i === 0) {\n\t\t\t\t\treturn 'depart';\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'WaypointReached':\n\t\t\t\treturn 'via';\n\t\t\tcase 'Roundabout':\n\t\t\t\treturn 'enter-roundabout';\n\t\t\tcase 'DestinationReached':\n\t\t\t\treturn 'arrive';\n\t\t\t}\n\n\t\t\tswitch (instr.modifier) {\n\t\t\tcase 'Straight':\n\t\t\t\treturn 'continue';\n\t\t\tcase 'SlightRight':\n\t\t\t\treturn 'bear-right';\n\t\t\tcase 'Right':\n\t\t\t\treturn 'turn-right';\n\t\t\tcase 'SharpRight':\n\t\t\t\treturn 'sharp-right';\n\t\t\tcase 'TurnAround':\n\t\t\tcase 'Uturn':\n\t\t\t\treturn 'u-turn';\n\t\t\tcase 'SharpLeft':\n\t\t\t\treturn 'sharp-left';\n\t\t\tcase 'Left':\n\t\t\t\treturn 'turn-left';\n\t\t\tcase 'SlightLeft':\n\t\t\t\treturn 'bear-left';\n\t\t\t}\n\t\t},\n\n\t\tcapitalize: function(s) {\n\t\t\treturn s.charAt(0).toUpperCase() + s.substring(1);\n\t\t},\n\n\t\t_getInstructionTemplate: function(instr, i) {\n\t\t\tvar type = instr.type === 'Straight' ? (i === 0 ? 'Head' : 'Continue') : instr.type,\n\t\t\t\tstrings = this._localization.localize(['instructions', type]);\n\n\t\t\tif (!strings) {\n\t\t\t\tstrings = [\n\t\t\t\t\tthis._localization.localize(['directions', type]),\n\t\t\t\t\t' ' + this._localization.localize(['instructions', 'Onto'])\n\t\t\t\t];\n\t\t\t}\n\n\t\t\treturn strings[0] + (strings.length > 1 && instr.road ? strings[1] : '');\n\t\t}\n\t});\n})();\n"
},
{
"id": 69,
"identifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/itinerary-builder.js",
"name": "./node_modules/leaflet-routing-machine/src/itinerary-builder.js",
"index": 148,
"index2": 141,
"size": 1196,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/index.js",
"issuerId": 160,
"issuerName": "./node_modules/leaflet-routing-machine/src/index.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 146,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"name": "./src/modules/Router.js"
},
{
"id": 160,
"identifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/index.js",
"name": "./node_modules/leaflet-routing-machine/src/index.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 67,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/itinerary.js",
"module": "./node_modules/leaflet-routing-machine/src/itinerary.js",
"moduleName": "./node_modules/leaflet-routing-machine/src/itinerary.js",
"type": "cjs require",
"userRequest": "./itinerary-builder",
"loc": "6:24-54"
},
{
"moduleId": 160,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/index.js",
"module": "./node_modules/leaflet-routing-machine/src/index.js",
"moduleName": "./node_modules/leaflet-routing-machine/src/index.js",
"type": "cjs require",
"userRequest": "./itinerary-builder",
"loc": "12:23-53"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 5,
"source": "(function() {\n\t'use strict';\n\n\tvar L = require('leaflet');\n\n\tmodule.exports = L.Class.extend({\n\t\toptions: {\n\t\t\tcontainerClassName: ''\n\t\t},\n\n\t\tinitialize: function(options) {\n\t\t\tL.setOptions(this, options);\n\t\t},\n\n\t\tcreateContainer: function(className) {\n\t\t\tvar table = L.DomUtil.create('table', className || ''),\n\t\t\t\tcolgroup = L.DomUtil.create('colgroup', '', table);\n\n\t\t\tL.DomUtil.create('col', 'leaflet-routing-instruction-icon', colgroup);\n\t\t\tL.DomUtil.create('col', 'leaflet-routing-instruction-text', colgroup);\n\t\t\tL.DomUtil.create('col', 'leaflet-routing-instruction-distance', colgroup);\n\n\t\t\treturn table;\n\t\t},\n\n\t\tcreateStepsContainer: function() {\n\t\t\treturn L.DomUtil.create('tbody', '');\n\t\t},\n\n\t\tcreateStep: function(text, distance, icon, steps) {\n\t\t\tvar row = L.DomUtil.create('tr', '', steps),\n\t\t\t\tspan,\n\t\t\t\ttd;\n\t\t\ttd = L.DomUtil.create('td', '', row);\n\t\t\tspan = L.DomUtil.create('span', 'leaflet-routing-icon leaflet-routing-icon-'+icon, td);\n\t\t\ttd.appendChild(span);\n\t\t\ttd = L.DomUtil.create('td', '', row);\n\t\t\ttd.appendChild(document.createTextNode(text));\n\t\t\ttd = L.DomUtil.create('td', '', row);\n\t\t\ttd.appendChild(document.createTextNode(distance));\n\t\t\treturn row;\n\t\t}\n\t});\n})();\n"
},
{
"id": 70,
"identifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/line.js",
"name": "./node_modules/leaflet-routing-machine/src/line.js",
"index": 149,
"index2": 143,
"size": 3039,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/index.js",
"issuerId": 160,
"issuerName": "./node_modules/leaflet-routing-machine/src/index.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 146,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"name": "./src/modules/Router.js"
},
{
"id": 160,
"identifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/index.js",
"name": "./node_modules/leaflet-routing-machine/src/index.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 160,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/index.js",
"module": "./node_modules/leaflet-routing-machine/src/index.js",
"moduleName": "./node_modules/leaflet-routing-machine/src/index.js",
"type": "cjs require",
"userRequest": "./line",
"loc": "4:11-28"
},
{
"moduleId": 161,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/control.js",
"module": "./node_modules/leaflet-routing-machine/src/control.js",
"moduleName": "./node_modules/leaflet-routing-machine/src/control.js",
"type": "cjs require",
"userRequest": "./line",
"loc": "7:12-29"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 5,
"source": "(function() {\n\t'use strict';\n\n\tvar L = require('leaflet');\n\n\tmodule.exports = L.LayerGroup.extend({\n\t\tincludes: ((typeof L.Evented !== 'undefined' && L.Evented.prototype) || L.Mixin.Events),\n\n\t\toptions: {\n\t\t\tstyles: [\n\t\t\t\t{color: 'black', opacity: 0.15, weight: 9},\n\t\t\t\t{color: 'white', opacity: 0.8, weight: 6},\n\t\t\t\t{color: 'red', opacity: 1, weight: 2}\n\t\t\t],\n\t\t\tmissingRouteStyles: [\n\t\t\t\t{color: 'black', opacity: 0.15, weight: 7},\n\t\t\t\t{color: 'white', opacity: 0.6, weight: 4},\n\t\t\t\t{color: 'gray', opacity: 0.8, weight: 2, dashArray: '7,12'}\n\t\t\t],\n\t\t\taddWaypoints: true,\n\t\t\textendToWaypoints: true,\n\t\t\tmissingRouteTolerance: 10\n\t\t},\n\n\t\tinitialize: function(route, options) {\n\t\t\tL.setOptions(this, options);\n\t\t\tL.LayerGroup.prototype.initialize.call(this, options);\n\t\t\tthis._route = route;\n\n\t\t\tif (this.options.extendToWaypoints) {\n\t\t\t\tthis._extendToWaypoints();\n\t\t\t}\n\n\t\t\tthis._addSegment(\n\t\t\t\troute.coordinates,\n\t\t\t\tthis.options.styles,\n\t\t\t\tthis.options.addWaypoints);\n\t\t},\n\n\t\tgetBounds: function() {\n\t\t\treturn L.latLngBounds(this._route.coordinates);\n\t\t},\n\n\t\t_findWaypointIndices: function() {\n\t\t\tvar wps = this._route.inputWaypoints,\n\t\t\t indices = [],\n\t\t\t i;\n\t\t\tfor (i = 0; i < wps.length; i++) {\n\t\t\t\tindices.push(this._findClosestRoutePoint(wps[i].latLng));\n\t\t\t}\n\n\t\t\treturn indices;\n\t\t},\n\n\t\t_findClosestRoutePoint: function(latlng) {\n\t\t\tvar minDist = Number.MAX_VALUE,\n\t\t\t\tminIndex,\n\t\t\t i,\n\t\t\t d;\n\n\t\t\tfor (i = this._route.coordinates.length - 1; i >= 0 ; i--) {\n\t\t\t\t// TODO: maybe do this in pixel space instead?\n\t\t\t\td = latlng.distanceTo(this._route.coordinates[i]);\n\t\t\t\tif (d < minDist) {\n\t\t\t\t\tminIndex = i;\n\t\t\t\t\tminDist = d;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn minIndex;\n\t\t},\n\n\t\t_extendToWaypoints: function() {\n\t\t\tvar wps = this._route.inputWaypoints,\n\t\t\t\twpIndices = this._getWaypointIndices(),\n\t\t\t i,\n\t\t\t wpLatLng,\n\t\t\t routeCoord;\n\n\t\t\tfor (i = 0; i < wps.length; i++) {\n\t\t\t\twpLatLng = wps[i].latLng;\n\t\t\t\trouteCoord = L.latLng(this._route.coordinates[wpIndices[i]]);\n\t\t\t\tif (wpLatLng.distanceTo(routeCoord) >\n\t\t\t\t\tthis.options.missingRouteTolerance) {\n\t\t\t\t\tthis._addSegment([wpLatLng, routeCoord],\n\t\t\t\t\t\tthis.options.missingRouteStyles);\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\n\t\t_addSegment: function(coords, styles, mouselistener) {\n\t\t\tvar i,\n\t\t\t\tpl;\n\n\t\t\tfor (i = 0; i < styles.length; i++) {\n\t\t\t\tpl = L.polyline(coords, styles[i]);\n\t\t\t\tthis.addLayer(pl);\n\t\t\t\tif (mouselistener) {\n\t\t\t\t\tpl.on('mousedown', this._onLineTouched, this);\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\n\t\t_findNearestWpBefore: function(i) {\n\t\t\tvar wpIndices = this._getWaypointIndices(),\n\t\t\t\tj = wpIndices.length - 1;\n\t\t\twhile (j >= 0 && wpIndices[j] > i) {\n\t\t\t\tj--;\n\t\t\t}\n\n\t\t\treturn j;\n\t\t},\n\n\t\t_onLineTouched: function(e) {\n\t\t\tvar afterIndex = this._findNearestWpBefore(this._findClosestRoutePoint(e.latlng));\n\t\t\tthis.fire('linetouched', {\n\t\t\t\tafterIndex: afterIndex,\n\t\t\t\tlatlng: e.latlng\n\t\t\t});\n\t\t},\n\n\t\t_getWaypointIndices: function() {\n\t\t\tif (!this._wpIndices) {\n\t\t\t\tthis._wpIndices = this._route.waypointIndices || this._findWaypointIndices();\n\t\t\t}\n\n\t\t\treturn this._wpIndices;\n\t\t}\n\t});\n})();\n"
},
{
"id": 71,
"identifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/plan.js",
"name": "./node_modules/leaflet-routing-machine/src/plan.js",
"index": 150,
"index2": 147,
"size": 9150,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/index.js",
"issuerId": 160,
"issuerName": "./node_modules/leaflet-routing-machine/src/index.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 146,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"name": "./src/modules/Router.js"
},
{
"id": 160,
"identifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/index.js",
"name": "./node_modules/leaflet-routing-machine/src/index.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 160,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/index.js",
"module": "./node_modules/leaflet-routing-machine/src/index.js",
"moduleName": "./node_modules/leaflet-routing-machine/src/index.js",
"type": "cjs require",
"userRequest": "./plan",
"loc": "6:11-28"
},
{
"moduleId": 161,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/control.js",
"module": "./node_modules/leaflet-routing-machine/src/control.js",
"moduleName": "./node_modules/leaflet-routing-machine/src/control.js",
"type": "cjs require",
"userRequest": "./plan",
"loc": "8:12-29"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 5,
"source": "(function() {\n\t'use strict';\n\n\tvar L = require('leaflet');\n\tvar GeocoderElement = require('./geocoder-element');\n\tvar Waypoint = require('./waypoint');\n\n\tmodule.exports = (L.Layer || L.Class).extend({\n\t\tincludes: ((typeof L.Evented !== 'undefined' && L.Evented.prototype) || L.Mixin.Events),\n\n\t\toptions: {\n\t\t\tdragStyles: [\n\t\t\t\t{color: 'black', opacity: 0.15, weight: 9},\n\t\t\t\t{color: 'white', opacity: 0.8, weight: 6},\n\t\t\t\t{color: 'red', opacity: 1, weight: 2, dashArray: '7,12'}\n\t\t\t],\n\t\t\tdraggableWaypoints: true,\n\t\t\trouteWhileDragging: false,\n\t\t\taddWaypoints: true,\n\t\t\treverseWaypoints: false,\n\t\t\taddButtonClassName: '',\n\t\t\tlanguage: 'en',\n\t\t\tcreateGeocoderElement: function(wp, i, nWps, plan) {\n\t\t\t\treturn new GeocoderElement(wp, i, nWps, plan);\n\t\t\t},\n\t\t\tcreateMarker: function(i, wp) {\n\t\t\t\tvar options = {\n\t\t\t\t\t\tdraggable: this.draggableWaypoints\n\t\t\t\t\t},\n\t\t\t\t marker = L.marker(wp.latLng, options);\n\n\t\t\t\treturn marker;\n\t\t\t},\n\t\t\tgeocodersClassName: ''\n\t\t},\n\n\t\tinitialize: function(waypoints, options) {\n\t\t\tL.Util.setOptions(this, options);\n\t\t\tthis._waypoints = [];\n\t\t\tthis.setWaypoints(waypoints);\n\t\t},\n\n\t\tisReady: function() {\n\t\t\tvar i;\n\t\t\tfor (i = 0; i < this._waypoints.length; i++) {\n\t\t\t\tif (!this._waypoints[i].latLng) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn true;\n\t\t},\n\n\t\tgetWaypoints: function() {\n\t\t\tvar i,\n\t\t\t\twps = [];\n\n\t\t\tfor (i = 0; i < this._waypoints.length; i++) {\n\t\t\t\twps.push(this._waypoints[i]);\n\t\t\t}\n\n\t\t\treturn wps;\n\t\t},\n\n\t\tsetWaypoints: function(waypoints) {\n\t\t\tvar args = [0, this._waypoints.length].concat(waypoints);\n\t\t\tthis.spliceWaypoints.apply(this, args);\n\t\t\treturn this;\n\t\t},\n\n\t\tspliceWaypoints: function() {\n\t\t\tvar args = [arguments[0], arguments[1]],\n\t\t\t i;\n\n\t\t\tfor (i = 2; i < arguments.length; i++) {\n\t\t\t\targs.push(arguments[i] && arguments[i].hasOwnProperty('latLng') ? arguments[i] : new Waypoint(arguments[i]));\n\t\t\t}\n\n\t\t\t[].splice.apply(this._waypoints, args);\n\n\t\t\t// Make sure there's always at least two waypoints\n\t\t\twhile (this._waypoints.length < 2) {\n\t\t\t\tthis.spliceWaypoints(this._waypoints.length, 0, null);\n\t\t\t}\n\n\t\t\tthis._updateMarkers();\n\t\t\tthis._fireChanged.apply(this, args);\n\t\t},\n\n\t\tonAdd: function(map) {\n\t\t\tthis._map = map;\n\t\t\tthis._updateMarkers();\n\t\t},\n\n\t\tonRemove: function() {\n\t\t\tvar i;\n\t\t\tthis._removeMarkers();\n\n\t\t\tif (this._newWp) {\n\t\t\t\tfor (i = 0; i < this._newWp.lines.length; i++) {\n\t\t\t\t\tthis._map.removeLayer(this._newWp.lines[i]);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tdelete this._map;\n\t\t},\n\n\t\tcreateGeocoders: function() {\n\t\t\tvar container = L.DomUtil.create('div', 'leaflet-routing-geocoders ' + this.options.geocodersClassName),\n\t\t\t\twaypoints = this._waypoints,\n\t\t\t addWpBtn,\n\t\t\t reverseBtn;\n\n\t\t\tthis._geocoderContainer = container;\n\t\t\tthis._geocoderElems = [];\n\n\n\t\t\tif (this.options.addWaypoints) {\n\t\t\t\taddWpBtn = L.DomUtil.create('button', 'leaflet-routing-add-waypoint ' + this.options.addButtonClassName, container);\n\t\t\t\taddWpBtn.setAttribute('type', 'button');\n\t\t\t\tL.DomEvent.addListener(addWpBtn, 'click', function() {\n\t\t\t\t\tthis.spliceWaypoints(waypoints.length, 0, null);\n\t\t\t\t}, this);\n\t\t\t}\n\n\t\t\tif (this.options.reverseWaypoints) {\n\t\t\t\treverseBtn = L.DomUtil.create('button', 'leaflet-routing-reverse-waypoints', container);\n\t\t\t\treverseBtn.setAttribute('type', 'button');\n\t\t\t\tL.DomEvent.addListener(reverseBtn, 'click', function() {\n\t\t\t\t\tthis._waypoints.reverse();\n\t\t\t\t\tthis.setWaypoints(this._waypoints);\n\t\t\t\t}, this);\n\t\t\t}\n\n\t\t\tthis._updateGeocoders();\n\t\t\tthis.on('waypointsspliced', this._updateGeocoders);\n\n\t\t\treturn container;\n\t\t},\n\n\t\t_createGeocoder: function(i) {\n\t\t\tvar geocoder = this.options.createGeocoderElement(this._waypoints[i], i, this._waypoints.length, this.options);\n\t\t\tgeocoder\n\t\t\t.on('delete', function() {\n\t\t\t\tif (i > 0 || this._waypoints.length > 2) {\n\t\t\t\t\tthis.spliceWaypoints(i, 1);\n\t\t\t\t} else {\n\t\t\t\t\tthis.spliceWaypoints(i, 1, new Waypoint());\n\t\t\t\t}\n\t\t\t}, this)\n\t\t\t.on('geocoded', function(e) {\n\t\t\t\tthis._updateMarkers();\n\t\t\t\tthis._fireChanged();\n\t\t\t\tthis._focusGeocoder(i + 1);\n\t\t\t\tthis.fire('waypointgeocoded', {\n\t\t\t\t\twaypointIndex: i,\n\t\t\t\t\twaypoint: e.waypoint\n\t\t\t\t});\n\t\t\t}, this)\n\t\t\t.on('reversegeocoded', function(e) {\n\t\t\t\tthis.fire('waypointgeocoded', {\n\t\t\t\t\twaypointIndex: i,\n\t\t\t\t\twaypoint: e.waypoint\n\t\t\t\t});\n\t\t\t}, this);\n\n\t\t\treturn geocoder;\n\t\t},\n\n\t\t_updateGeocoders: function() {\n\t\t\tvar elems = [],\n\t\t\t\ti,\n\t\t\t geocoderElem;\n\n\t\t\tfor (i = 0; i < this._geocoderElems.length; i++) {\n\t\t\t\tthis._geocoderContainer.removeChild(this._geocoderElems[i].getContainer());\n\t\t\t}\n\n\t\t\tfor (i = this._waypoints.length - 1; i >= 0; i--) {\n\t\t\t\tgeocoderElem = this._createGeocoder(i);\n\t\t\t\tthis._geocoderContainer.insertBefore(geocoderElem.getContainer(), this._geocoderContainer.firstChild);\n\t\t\t\telems.push(geocoderElem);\n\t\t\t}\n\n\t\t\tthis._geocoderElems = elems.reverse();\n\t\t},\n\n\t\t_removeMarkers: function() {\n\t\t\tvar i;\n\t\t\tif (this._markers) {\n\t\t\t\tfor (i = 0; i < this._markers.length; i++) {\n\t\t\t\t\tif (this._markers[i]) {\n\t\t\t\t\t\tthis._map.removeLayer(this._markers[i]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tthis._markers = [];\n\t\t},\n\n\t\t_updateMarkers: function() {\n\t\t\tvar i,\n\t\t\t m;\n\n\t\t\tif (!this._map) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tthis._removeMarkers();\n\n\t\t\tfor (i = 0; i < this._waypoints.length; i++) {\n\t\t\t\tif (this._waypoints[i].latLng) {\n\t\t\t\t\tm = this.options.createMarker(i, this._waypoints[i], this._waypoints.length);\n\t\t\t\t\tif (m) {\n\t\t\t\t\t\tm.addTo(this._map);\n\t\t\t\t\t\tif (this.options.draggableWaypoints) {\n\t\t\t\t\t\t\tthis._hookWaypointEvents(m, i);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tm = null;\n\t\t\t\t}\n\t\t\t\tthis._markers.push(m);\n\t\t\t}\n\t\t},\n\n\t\t_fireChanged: function() {\n\t\t\tthis.fire('waypointschanged', {waypoints: this.getWaypoints()});\n\n\t\t\tif (arguments.length >= 2) {\n\t\t\t\tthis.fire('waypointsspliced', {\n\t\t\t\t\tindex: Array.prototype.shift.call(arguments),\n\t\t\t\t\tnRemoved: Array.prototype.shift.call(arguments),\n\t\t\t\t\tadded: arguments\n\t\t\t\t});\n\t\t\t}\n\t\t},\n\n\t\t_hookWaypointEvents: function(m, i, trackMouseMove) {\n\t\t\tvar eventLatLng = function(e) {\n\t\t\t\t\treturn trackMouseMove ? e.latlng : e.target.getLatLng();\n\t\t\t\t},\n\t\t\t\tdragStart = L.bind(function(e) {\n\t\t\t\t\tthis.fire('waypointdragstart', {index: i, latlng: eventLatLng(e)});\n\t\t\t\t}, this),\n\t\t\t\tdrag = L.bind(function(e) {\n\t\t\t\t\tthis._waypoints[i].latLng = eventLatLng(e);\n\t\t\t\t\tthis.fire('waypointdrag', {index: i, latlng: eventLatLng(e)});\n\t\t\t\t}, this),\n\t\t\t\tdragEnd = L.bind(function(e) {\n\t\t\t\t\tthis._waypoints[i].latLng = eventLatLng(e);\n\t\t\t\t\tthis._waypoints[i].name = '';\n\t\t\t\t\tif (this._geocoderElems) {\n\t\t\t\t\t\tthis._geocoderElems[i].update(true);\n\t\t\t\t\t}\n\t\t\t\t\tthis.fire('waypointdragend', {index: i, latlng: eventLatLng(e)});\n\t\t\t\t\tthis._fireChanged();\n\t\t\t\t}, this),\n\t\t\t\tmouseMove,\n\t\t\t\tmouseUp;\n\n\t\t\tif (trackMouseMove) {\n\t\t\t\tmouseMove = L.bind(function(e) {\n\t\t\t\t\tthis._markers[i].setLatLng(e.latlng);\n\t\t\t\t\tdrag(e);\n\t\t\t\t}, this);\n\t\t\t\tmouseUp = L.bind(function(e) {\n\t\t\t\t\tthis._map.dragging.enable();\n\t\t\t\t\tthis._map.off('mouseup', mouseUp);\n\t\t\t\t\tthis._map.off('mousemove', mouseMove);\n\t\t\t\t\tdragEnd(e);\n\t\t\t\t}, this);\n\t\t\t\tthis._map.dragging.disable();\n\t\t\t\tthis._map.on('mousemove', mouseMove);\n\t\t\t\tthis._map.on('mouseup', mouseUp);\n\t\t\t\tdragStart({latlng: this._waypoints[i].latLng});\n\t\t\t} else {\n\t\t\t\tm.on('dragstart', dragStart);\n\t\t\t\tm.on('drag', drag);\n\t\t\t\tm.on('dragend', dragEnd);\n\t\t\t}\n\t\t},\n\n\t\tdragNewWaypoint: function(e) {\n\t\t\tvar newWpIndex = e.afterIndex + 1;\n\t\t\tif (this.options.routeWhileDragging) {\n\t\t\t\tthis.spliceWaypoints(newWpIndex, 0, e.latlng);\n\t\t\t\tthis._hookWaypointEvents(this._markers[newWpIndex], newWpIndex, true);\n\t\t\t} else {\n\t\t\t\tthis._dragNewWaypoint(newWpIndex, e.latlng);\n\t\t\t}\n\t\t},\n\n\t\t_dragNewWaypoint: function(newWpIndex, initialLatLng) {\n\t\t\tvar wp = new Waypoint(initialLatLng),\n\t\t\t\tprevWp = this._waypoints[newWpIndex - 1],\n\t\t\t\tnextWp = this._waypoints[newWpIndex],\n\t\t\t\tmarker = this.options.createMarker(newWpIndex, wp, this._waypoints.length + 1),\n\t\t\t\tlines = [],\n\t\t\t\tdraggingEnabled = this._map.dragging.enabled(),\n\t\t\t\tmouseMove = L.bind(function(e) {\n\t\t\t\t\tvar i,\n\t\t\t\t\t\tlatLngs;\n\t\t\t\t\tif (marker) {\n\t\t\t\t\t\tmarker.setLatLng(e.latlng);\n\t\t\t\t\t}\n\t\t\t\t\tfor (i = 0; i < lines.length; i++) {\n\t\t\t\t\t\tlatLngs = lines[i].getLatLngs();\n\t\t\t\t\t\tlatLngs.splice(1, 1, e.latlng);\n\t\t\t\t\t\tlines[i].setLatLngs(latLngs);\n\t\t\t\t\t}\n\n\t\t\t\t\tL.DomEvent.stop(e);\n\t\t\t\t}, this),\n\t\t\t\tmouseUp = L.bind(function(e) {\n\t\t\t\t\tvar i;\n\t\t\t\t\tif (marker) {\n\t\t\t\t\t\tthis._map.removeLayer(marker);\n\t\t\t\t\t}\n\t\t\t\t\tfor (i = 0; i < lines.length; i++) {\n\t\t\t\t\t\tthis._map.removeLayer(lines[i]);\n\t\t\t\t\t}\n\t\t\t\t\tthis._map.off('mousemove', mouseMove);\n\t\t\t\t\tthis._map.off('mouseup', mouseUp);\n\t\t\t\t\tthis.spliceWaypoints(newWpIndex, 0, e.latlng);\n\t\t\t\t\tif (draggingEnabled) {\n\t\t\t\t\t\tthis._map.dragging.enable();\n\t\t\t\t\t}\n\t\t\t\t}, this),\n\t\t\t\ti;\n\n\t\t\tif (marker) {\n\t\t\t\tmarker.addTo(this._map);\n\t\t\t}\n\n\t\t\tfor (i = 0; i < this.options.dragStyles.length; i++) {\n\t\t\t\tlines.push(L.polyline([prevWp.latLng, initialLatLng, nextWp.latLng],\n\t\t\t\t\tthis.options.dragStyles[i]).addTo(this._map));\n\t\t\t}\n\n\t\t\tif (draggingEnabled) {\n\t\t\t\tthis._map.dragging.disable();\n\t\t\t}\n\n\t\t\tthis._map.on('mousemove', mouseMove);\n\t\t\tthis._map.on('mouseup', mouseUp);\n\t\t},\n\n\t\t_focusGeocoder: function(i) {\n\t\t\tif (this._geocoderElems[i]) {\n\t\t\t\tthis._geocoderElems[i].focus();\n\t\t\t} else {\n\t\t\t\tdocument.activeElement.blur();\n\t\t\t}\n\t\t}\n\t});\n})();\n"
},
{
"id": 72,
"identifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/geocoder-element.js",
"name": "./node_modules/leaflet-routing-machine/src/geocoder-element.js",
"index": 151,
"index2": 145,
"size": 4178,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/index.js",
"issuerId": 160,
"issuerName": "./node_modules/leaflet-routing-machine/src/index.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 146,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"name": "./src/modules/Router.js"
},
{
"id": 160,
"identifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/index.js",
"name": "./node_modules/leaflet-routing-machine/src/index.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 71,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/plan.js",
"module": "./node_modules/leaflet-routing-machine/src/plan.js",
"moduleName": "./node_modules/leaflet-routing-machine/src/plan.js",
"type": "cjs require",
"userRequest": "./geocoder-element",
"loc": "5:23-52"
},
{
"moduleId": 160,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/index.js",
"module": "./node_modules/leaflet-routing-machine/src/index.js",
"moduleName": "./node_modules/leaflet-routing-machine/src/index.js",
"type": "cjs require",
"userRequest": "./geocoder-element",
"loc": "10:22-51"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 5,
"source": "(function() {\n\t'use strict';\n\n\tvar L = require('leaflet');\n\tvar Autocomplete = require('./autocomplete');\n\tvar Localization = require('./localization');\n\n\tfunction selectInputText(input) {\n\t\tif (input.setSelectionRange) {\n\t\t\t// On iOS, select() doesn't work\n\t\t\tinput.setSelectionRange(0, 9999);\n\t\t} else {\n\t\t\t// On at least IE8, setSeleectionRange doesn't exist\n\t\t\tinput.select();\n\t\t}\n\t}\n\n\tmodule.exports = L.Class.extend({\n\t\tincludes: ((typeof L.Evented !== 'undefined' && L.Evented.prototype) || L.Mixin.Events),\n\n\t\toptions: {\n\t\t\tcreateGeocoder: function(i, nWps, options) {\n\t\t\t\tvar container = L.DomUtil.create('div', 'leaflet-routing-geocoder'),\n\t\t\t\t\tinput = L.DomUtil.create('input', '', container),\n\t\t\t\t\tremove = options.addWaypoints ? L.DomUtil.create('span', 'leaflet-routing-remove-waypoint', container) : undefined;\n\n\t\t\t\tinput.disabled = !options.addWaypoints;\n\n\t\t\t\treturn {\n\t\t\t\t\tcontainer: container,\n\t\t\t\t\tinput: input,\n\t\t\t\t\tcloseButton: remove\n\t\t\t\t};\n\t\t\t},\n\t\t\tgeocoderPlaceholder: function(i, numberWaypoints, geocoderElement) {\n\t\t\t\tvar l = new Localization(geocoderElement.options.language).localize('ui');\n\t\t\t\treturn i === 0 ?\n\t\t\t\t\tl.startPlaceholder :\n\t\t\t\t\t(i < numberWaypoints - 1 ?\n\t\t\t\t\t\tL.Util.template(l.viaPlaceholder, {viaNumber: i}) :\n\t\t\t\t\t\tl.endPlaceholder);\n\t\t\t},\n\n\t\t\tgeocoderClass: function() {\n\t\t\t\treturn '';\n\t\t\t},\n\n\t\t\twaypointNameFallback: function(latLng) {\n\t\t\t\tvar ns = latLng.lat < 0 ? 'S' : 'N',\n\t\t\t\t\tew = latLng.lng < 0 ? 'W' : 'E',\n\t\t\t\t\tlat = (Math.round(Math.abs(latLng.lat) * 10000) / 10000).toString(),\n\t\t\t\t\tlng = (Math.round(Math.abs(latLng.lng) * 10000) / 10000).toString();\n\t\t\t\treturn ns + lat + ', ' + ew + lng;\n\t\t\t},\n\t\t\tmaxGeocoderTolerance: 200,\n\t\t\tautocompleteOptions: {},\n\t\t\tlanguage: 'en',\n\t\t},\n\n\t\tinitialize: function(wp, i, nWps, options) {\n\t\t\tL.setOptions(this, options);\n\n\t\t\tvar g = this.options.createGeocoder(i, nWps, this.options),\n\t\t\t\tcloseButton = g.closeButton,\n\t\t\t\tgeocoderInput = g.input;\n\t\t\tgeocoderInput.setAttribute('placeholder', this.options.geocoderPlaceholder(i, nWps, this));\n\t\t\tgeocoderInput.className = this.options.geocoderClass(i, nWps);\n\n\t\t\tthis._element = g;\n\t\t\tthis._waypoint = wp;\n\n\t\t\tthis.update();\n\t\t\t// This has to be here, or geocoder's value will not be properly\n\t\t\t// initialized.\n\t\t\t// TODO: look into why and make _updateWaypointName fix this.\n\t\t\tgeocoderInput.value = wp.name;\n\n\t\t\tL.DomEvent.addListener(geocoderInput, 'click', function() {\n\t\t\t\tselectInputText(this);\n\t\t\t}, geocoderInput);\n\n\t\t\tif (closeButton) {\n\t\t\t\tL.DomEvent.addListener(closeButton, 'click', function() {\n\t\t\t\t\tthis.fire('delete', { waypoint: this._waypoint });\n\t\t\t\t}, this);\n\t\t\t}\n\n\t\t\tnew Autocomplete(geocoderInput, function(r) {\n\t\t\t\t\tgeocoderInput.value = r.name;\n\t\t\t\t\twp.name = r.name;\n\t\t\t\t\twp.latLng = r.center;\n\t\t\t\t\tthis.fire('geocoded', { waypoint: wp, value: r });\n\t\t\t\t}, this, L.extend({\n\t\t\t\t\tresultFn: this.options.geocoder.geocode,\n\t\t\t\t\tresultContext: this.options.geocoder,\n\t\t\t\t\tautocompleteFn: this.options.geocoder.suggest,\n\t\t\t\t\tautocompleteContext: this.options.geocoder\n\t\t\t\t}, this.options.autocompleteOptions));\n\t\t},\n\n\t\tgetContainer: function() {\n\t\t\treturn this._element.container;\n\t\t},\n\n\t\tsetValue: function(v) {\n\t\t\tthis._element.input.value = v;\n\t\t},\n\n\t\tupdate: function(force) {\n\t\t\tvar wp = this._waypoint,\n\t\t\t\twpCoords;\n\n\t\t\twp.name = wp.name || '';\n\n\t\t\tif (wp.latLng && (force || !wp.name)) {\n\t\t\t\twpCoords = this.options.waypointNameFallback(wp.latLng);\n\t\t\t\tif (this.options.geocoder && this.options.geocoder.reverse) {\n\t\t\t\t\tthis.options.geocoder.reverse(wp.latLng, 67108864 /* zoom 18 */, function(rs) {\n\t\t\t\t\t\tif (rs.length > 0 && rs[0].center.distanceTo(wp.latLng) < this.options.maxGeocoderTolerance) {\n\t\t\t\t\t\t\twp.name = rs[0].name;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\twp.name = wpCoords;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tthis._update();\n\t\t\t\t\t}, this);\n\t\t\t\t} else {\n\t\t\t\t\twp.name = wpCoords;\n\t\t\t\t\tthis._update();\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\n\t\tfocus: function() {\n\t\t\tvar input = this._element.input;\n\t\t\tinput.focus();\n\t\t\tselectInputText(input);\n\t\t},\n\n\t\t_update: function() {\n\t\t\tvar wp = this._waypoint,\n\t\t\t value = wp && wp.name ? wp.name : '';\n\t\t\tthis.setValue(value);\n\t\t\tthis.fire('reversegeocoded', {waypoint: wp, value: value});\n\t\t}\n\t});\n})();\n"
},
{
"id": 73,
"identifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/autocomplete.js",
"name": "./node_modules/leaflet-routing-machine/src/autocomplete.js",
"index": 152,
"index2": 144,
"size": 6010,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/index.js",
"issuerId": 160,
"issuerName": "./node_modules/leaflet-routing-machine/src/index.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 146,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"name": "./src/modules/Router.js"
},
{
"id": 160,
"identifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/index.js",
"name": "./node_modules/leaflet-routing-machine/src/index.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 72,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/geocoder-element.js",
"module": "./node_modules/leaflet-routing-machine/src/geocoder-element.js",
"moduleName": "./node_modules/leaflet-routing-machine/src/geocoder-element.js",
"type": "cjs require",
"userRequest": "./autocomplete",
"loc": "5:20-45"
},
{
"moduleId": 160,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/index.js",
"module": "./node_modules/leaflet-routing-machine/src/index.js",
"moduleName": "./node_modules/leaflet-routing-machine/src/index.js",
"type": "cjs require",
"userRequest": "./autocomplete",
"loc": "8:19-44"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 5,
"source": "(function() {\n\t'use strict';\n\n\tvar L = require('leaflet');\n\n\tmodule.exports = L.Class.extend({\n\t\toptions: {\n\t\t\ttimeout: 500,\n\t\t\tblurTimeout: 100,\n\t\t\tnoResultsMessage: 'No results found.'\n\t\t},\n\n\t\tinitialize: function(elem, callback, context, options) {\n\t\t\tL.setOptions(this, options);\n\n\t\t\tthis._elem = elem;\n\t\t\tthis._resultFn = options.resultFn ? L.Util.bind(options.resultFn, options.resultContext) : null;\n\t\t\tthis._autocomplete = options.autocompleteFn ? L.Util.bind(options.autocompleteFn, options.autocompleteContext) : null;\n\t\t\tthis._selectFn = L.Util.bind(callback, context);\n\t\t\tthis._container = L.DomUtil.create('div', 'leaflet-routing-geocoder-result');\n\t\t\tthis._resultTable = L.DomUtil.create('table', '', this._container);\n\n\t\t\t// TODO: looks a bit like a kludge to register same for input and keypress -\n\t\t\t// browsers supporting both will get duplicate events; just registering\n\t\t\t// input will not catch enter, though.\n\t\t\tL.DomEvent.addListener(this._elem, 'input', this._keyPressed, this);\n\t\t\tL.DomEvent.addListener(this._elem, 'keypress', this._keyPressed, this);\n\t\t\tL.DomEvent.addListener(this._elem, 'keydown', this._keyDown, this);\n\t\t\tL.DomEvent.addListener(this._elem, 'blur', function() {\n\t\t\t\tif (this._isOpen) {\n\t\t\t\t\tthis.close();\n\t\t\t\t}\n\t\t\t}, this);\n\t\t},\n\n\t\tclose: function() {\n\t\t\tL.DomUtil.removeClass(this._container, 'leaflet-routing-geocoder-result-open');\n\t\t\tthis._isOpen = false;\n\t\t},\n\n\t\t_open: function() {\n\t\t\tvar rect = this._elem.getBoundingClientRect();\n\t\t\tif (!this._container.parentElement) {\n\t\t\t\t// See notes section under https://developer.mozilla.org/en-US/docs/Web/API/Window/scrollX\n\t\t\t\t// This abomination is required to support all flavors of IE\n\t\t\t\tvar scrollX = (window.pageXOffset !== undefined) ? window.pageXOffset\n\t\t\t\t\t: (document.documentElement || document.body.parentNode || document.body).scrollLeft;\n\t\t\t\tvar scrollY = (window.pageYOffset !== undefined) ? window.pageYOffset\n\t\t\t\t\t: (document.documentElement || document.body.parentNode || document.body).scrollTop;\n\t\t\t\tthis._container.style.left = (rect.left + scrollX) + 'px';\n\t\t\t\tthis._container.style.top = (rect.bottom + scrollY) + 'px';\n\t\t\t\tthis._container.style.width = (rect.right - rect.left) + 'px';\n\t\t\t\tdocument.body.appendChild(this._container);\n\t\t\t}\n\n\t\t\tL.DomUtil.addClass(this._container, 'leaflet-routing-geocoder-result-open');\n\t\t\tthis._isOpen = true;\n\t\t},\n\n\t\t_setResults: function(results) {\n\t\t\tvar i,\n\t\t\t tr,\n\t\t\t td,\n\t\t\t text;\n\n\t\t\tdelete this._selection;\n\t\t\tthis._results = results;\n\n\t\t\twhile (this._resultTable.firstChild) {\n\t\t\t\tthis._resultTable.removeChild(this._resultTable.firstChild);\n\t\t\t}\n\n\t\t\tfor (i = 0; i < results.length; i++) {\n\t\t\t\ttr = L.DomUtil.create('tr', '', this._resultTable);\n\t\t\t\ttr.setAttribute('data-result-index', i);\n\t\t\t\ttd = L.DomUtil.create('td', '', tr);\n\t\t\t\ttext = document.createTextNode(results[i].name);\n\t\t\t\ttd.appendChild(text);\n\t\t\t\t// mousedown + click because:\n\t\t\t\t// http://stackoverflow.com/questions/10652852/jquery-fire-click-before-blur-event\n\t\t\t\tL.DomEvent.addListener(td, 'mousedown', L.DomEvent.preventDefault);\n\t\t\t\tL.DomEvent.addListener(td, 'click', this._createClickListener(results[i]));\n\t\t\t}\n\n\t\t\tif (!i) {\n\t\t\t\ttr = L.DomUtil.create('tr', '', this._resultTable);\n\t\t\t\ttd = L.DomUtil.create('td', 'leaflet-routing-geocoder-no-results', tr);\n\t\t\t\ttd.innerHTML = this.options.noResultsMessage;\n\t\t\t}\n\n\t\t\tthis._open();\n\n\t\t\tif (results.length > 0) {\n\t\t\t\t// Select the first entry\n\t\t\t\tthis._select(1);\n\t\t\t}\n\t\t},\n\n\t\t_createClickListener: function(r) {\n\t\t\tvar resultSelected = this._resultSelected(r);\n\t\t\treturn L.bind(function() {\n\t\t\t\tthis._elem.blur();\n\t\t\t\tresultSelected();\n\t\t\t}, this);\n\t\t},\n\n\t\t_resultSelected: function(r) {\n\t\t\treturn L.bind(function() {\n\t\t\t\tthis.close();\n\t\t\t\tthis._elem.value = r.name;\n\t\t\t\tthis._lastCompletedText = r.name;\n\t\t\t\tthis._selectFn(r);\n\t\t\t}, this);\n\t\t},\n\n\t\t_keyPressed: function(e) {\n\t\t\tvar index;\n\n\t\t\tif (this._isOpen && e.keyCode === 13 && this._selection) {\n\t\t\t\tindex = parseInt(this._selection.getAttribute('data-result-index'), 10);\n\t\t\t\tthis._resultSelected(this._results[index])();\n\t\t\t\tL.DomEvent.preventDefault(e);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (e.keyCode === 13) {\n\t\t\t\tthis._complete(this._resultFn, true);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (this._autocomplete && document.activeElement === this._elem) {\n\t\t\t\tif (this._timer) {\n\t\t\t\t\tclearTimeout(this._timer);\n\t\t\t\t}\n\t\t\t\tthis._timer = setTimeout(L.Util.bind(function() { this._complete(this._autocomplete); }, this),\n\t\t\t\t\tthis.options.timeout);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tthis._unselect();\n\t\t},\n\n\t\t_select: function(dir) {\n\t\t\tvar sel = this._selection;\n\t\t\tif (sel) {\n\t\t\t\tL.DomUtil.removeClass(sel.firstChild, 'leaflet-routing-geocoder-selected');\n\t\t\t\tsel = sel[dir > 0 ? 'nextSibling' : 'previousSibling'];\n\t\t\t}\n\t\t\tif (!sel) {\n\t\t\t\tsel = this._resultTable[dir > 0 ? 'firstChild' : 'lastChild'];\n\t\t\t}\n\n\t\t\tif (sel) {\n\t\t\t\tL.DomUtil.addClass(sel.firstChild, 'leaflet-routing-geocoder-selected');\n\t\t\t\tthis._selection = sel;\n\t\t\t}\n\t\t},\n\n\t\t_unselect: function() {\n\t\t\tif (this._selection) {\n\t\t\t\tL.DomUtil.removeClass(this._selection.firstChild, 'leaflet-routing-geocoder-selected');\n\t\t\t}\n\t\t\tdelete this._selection;\n\t\t},\n\n\t\t_keyDown: function(e) {\n\t\t\tif (this._isOpen) {\n\t\t\t\tswitch (e.keyCode) {\n\t\t\t\t// Escape\n\t\t\t\tcase 27:\n\t\t\t\t\tthis.close();\n\t\t\t\t\tL.DomEvent.preventDefault(e);\n\t\t\t\t\treturn;\n\t\t\t\t// Up\n\t\t\t\tcase 38:\n\t\t\t\t\tthis._select(-1);\n\t\t\t\t\tL.DomEvent.preventDefault(e);\n\t\t\t\t\treturn;\n\t\t\t\t// Down\n\t\t\t\tcase 40:\n\t\t\t\t\tthis._select(1);\n\t\t\t\t\tL.DomEvent.preventDefault(e);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\n\t\t_complete: function(completeFn, trySelect) {\n\t\t\tvar v = this._elem.value;\n\t\t\tfunction completeResults(results) {\n\t\t\t\tthis._lastCompletedText = v;\n\t\t\t\tif (trySelect && results.length === 1) {\n\t\t\t\t\tthis._resultSelected(results[0])();\n\t\t\t\t} else {\n\t\t\t\t\tthis._setResults(results);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (!v) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (v !== this._lastCompletedText) {\n\t\t\t\tcompleteFn(v, completeResults, this);\n\t\t\t} else if (trySelect) {\n\t\t\t\tcompleteResults.call(this, this._results);\n\t\t\t}\n\t\t}\n\t});\n})();\n"
},
{
"id": 74,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/helpers/bind.js",
"name": "./node_modules/axios/lib/helpers/bind.js",
"index": 164,
"index2": 157,
"size": 256,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/axios/lib/axios.js",
"issuerId": 169,
"issuerName": "./node_modules/axios/lib/axios.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 167,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Shotter.js",
"name": "./src/modules/Shotter.js"
},
{
"id": 168,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/index.js",
"name": "./node_modules/axios/index.js"
},
{
"id": 169,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/axios.js",
"name": "./node_modules/axios/lib/axios.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 4,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/axios/lib/utils.js",
"module": "./node_modules/axios/lib/utils.js",
"moduleName": "./node_modules/axios/lib/utils.js",
"type": "cjs require",
"userRequest": "./helpers/bind",
"loc": "3:11-36"
},
{
"moduleId": 169,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/axios/lib/axios.js",
"module": "./node_modules/axios/lib/axios.js",
"moduleName": "./node_modules/axios/lib/axios.js",
"type": "cjs require",
"userRequest": "./helpers/bind",
"loc": "4:11-36"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 6,
"source": "'use strict';\n\nmodule.exports = function bind(fn, thisArg) {\n return function wrap() {\n var args = new Array(arguments.length);\n for (var i = 0; i < args.length; i++) {\n args[i] = arguments[i];\n }\n return fn.apply(thisArg, args);\n };\n};\n"
},
{
"id": 75,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/adapters/xhr.js",
"name": "./node_modules/axios/lib/adapters/xhr.js",
"index": 170,
"index2": 170,
"size": 6170,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/axios/lib/defaults.js",
"issuerId": 46,
"issuerName": "./node_modules/axios/lib/defaults.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 167,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Shotter.js",
"name": "./src/modules/Shotter.js"
},
{
"id": 168,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/index.js",
"name": "./node_modules/axios/index.js"
},
{
"id": 169,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/axios.js",
"name": "./node_modules/axios/lib/axios.js"
},
{
"id": 46,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/defaults.js",
"name": "./node_modules/axios/lib/defaults.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 46,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/axios/lib/defaults.js",
"module": "./node_modules/axios/lib/defaults.js",
"moduleName": "./node_modules/axios/lib/defaults.js",
"type": "cjs require",
"userRequest": "./adapters/xhr",
"loc": "20:14-39"
},
{
"moduleId": 46,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/axios/lib/defaults.js",
"module": "./node_modules/axios/lib/defaults.js",
"moduleName": "./node_modules/axios/lib/defaults.js",
"type": "cjs require",
"userRequest": "./adapters/http",
"loc": "23:14-40"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "'use strict';\n\nvar utils = require('./../utils');\nvar settle = require('./../core/settle');\nvar buildURL = require('./../helpers/buildURL');\nvar parseHeaders = require('./../helpers/parseHeaders');\nvar isURLSameOrigin = require('./../helpers/isURLSameOrigin');\nvar createError = require('../core/createError');\nvar btoa = (typeof window !== 'undefined' && window.btoa && window.btoa.bind(window)) || require('./../helpers/btoa');\n\nmodule.exports = function xhrAdapter(config) {\n return new Promise(function dispatchXhrRequest(resolve, reject) {\n var requestData = config.data;\n var requestHeaders = config.headers;\n\n if (utils.isFormData(requestData)) {\n delete requestHeaders['Content-Type']; // Let the browser set it\n }\n\n var request = new XMLHttpRequest();\n var loadEvent = 'onreadystatechange';\n var xDomain = false;\n\n // For IE 8/9 CORS support\n // Only supports POST and GET calls and doesn't returns the response headers.\n // DON'T do this for testing b/c XMLHttpRequest is mocked, not XDomainRequest.\n if (process.env.NODE_ENV !== 'test' &&\n typeof window !== 'undefined' &&\n window.XDomainRequest && !('withCredentials' in request) &&\n !isURLSameOrigin(config.url)) {\n request = new window.XDomainRequest();\n loadEvent = 'onload';\n xDomain = true;\n request.onprogress = function handleProgress() {};\n request.ontimeout = function handleTimeout() {};\n }\n\n // HTTP basic authentication\n if (config.auth) {\n var username = config.auth.username || '';\n var password = config.auth.password || '';\n requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password);\n }\n\n request.open(config.method.toUpperCase(), buildURL(config.url, config.params, config.paramsSerializer), true);\n\n // Set the request timeout in MS\n request.timeout = config.timeout;\n\n // Listen for ready state\n request[loadEvent] = function handleLoad() {\n if (!request || (request.readyState !== 4 && !xDomain)) {\n return;\n }\n\n // The request errored out and we didn't get a response, this will be\n // handled by onerror instead\n // With one exception: request that using file: protocol, most browsers\n // will return status as 0 even though it's a successful request\n if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {\n return;\n }\n\n // Prepare the response\n var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null;\n var responseData = !config.responseType || config.responseType === 'text' ? request.responseText : request.response;\n var response = {\n data: responseData,\n // IE sends 1223 instead of 204 (https://github.com/axios/axios/issues/201)\n status: request.status === 1223 ? 204 : request.status,\n statusText: request.status === 1223 ? 'No Content' : request.statusText,\n headers: responseHeaders,\n config: config,\n request: request\n };\n\n settle(resolve, reject, response);\n\n // Clean up request\n request = null;\n };\n\n // Handle low level network errors\n request.onerror = function handleError() {\n // Real errors are hidden from us by the browser\n // onerror should only fire if it's a network error\n reject(createError('Network Error', config, null, request));\n\n // Clean up request\n request = null;\n };\n\n // Handle timeout\n request.ontimeout = function handleTimeout() {\n reject(createError('timeout of ' + config.timeout + 'ms exceeded', config, 'ECONNABORTED',\n request));\n\n // Clean up request\n request = null;\n };\n\n // Add xsrf header\n // This is only done if running in a standard browser environment.\n // Specifically not if we're in a web worker, or react-native.\n if (utils.isStandardBrowserEnv()) {\n var cookies = require('./../helpers/cookies');\n\n // Add xsrf header\n var xsrfValue = (config.withCredentials || isURLSameOrigin(config.url)) && config.xsrfCookieName ?\n cookies.read(config.xsrfCookieName) :\n undefined;\n\n if (xsrfValue) {\n requestHeaders[config.xsrfHeaderName] = xsrfValue;\n }\n }\n\n // Add headers to the request\n if ('setRequestHeader' in request) {\n utils.forEach(requestHeaders, function setRequestHeader(val, key) {\n if (typeof requestData === 'undefined' && key.toLowerCase() === 'content-type') {\n // Remove Content-Type if data is undefined\n delete requestHeaders[key];\n } else {\n // Otherwise add header to the request\n request.setRequestHeader(key, val);\n }\n });\n }\n\n // Add withCredentials to request if needed\n if (config.withCredentials) {\n request.withCredentials = true;\n }\n\n // Add responseType to request if needed\n if (config.responseType) {\n try {\n request.responseType = config.responseType;\n } catch (e) {\n // Expected DOMException thrown by browsers not compatible XMLHttpRequest Level 2.\n // But, this can be suppressed for 'json' type as it can be parsed by default 'transformResponse' function.\n if (config.responseType !== 'json') {\n throw e;\n }\n }\n }\n\n // Handle progress if needed\n if (typeof config.onDownloadProgress === 'function') {\n request.addEventListener('progress', config.onDownloadProgress);\n }\n\n // Not all browsers support upload events\n if (typeof config.onUploadProgress === 'function' && request.upload) {\n request.upload.addEventListener('progress', config.onUploadProgress);\n }\n\n if (config.cancelToken) {\n // Handle cancellation\n config.cancelToken.promise.then(function onCanceled(cancel) {\n if (!request) {\n return;\n }\n\n request.abort();\n reject(cancel);\n // Clean up request\n request = null;\n });\n }\n\n if (requestData === undefined) {\n requestData = null;\n }\n\n // Send the request\n request.send(requestData);\n });\n};\n"
},
{
"id": 76,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/core/createError.js",
"name": "./node_modules/axios/lib/core/createError.js",
"index": 172,
"index2": 163,
"size": 625,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/axios/lib/adapters/xhr.js",
"issuerId": 75,
"issuerName": "./node_modules/axios/lib/adapters/xhr.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 167,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Shotter.js",
"name": "./src/modules/Shotter.js"
},
{
"id": 168,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/index.js",
"name": "./node_modules/axios/index.js"
},
{
"id": 169,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/axios.js",
"name": "./node_modules/axios/lib/axios.js"
},
{
"id": 46,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/defaults.js",
"name": "./node_modules/axios/lib/defaults.js"
},
{
"id": 75,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/adapters/xhr.js",
"name": "./node_modules/axios/lib/adapters/xhr.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 75,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/axios/lib/adapters/xhr.js",
"module": "./node_modules/axios/lib/adapters/xhr.js",
"moduleName": "./node_modules/axios/lib/adapters/xhr.js",
"type": "cjs require",
"userRequest": "../core/createError",
"loc": "8:18-48"
},
{
"moduleId": 174,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/axios/lib/core/settle.js",
"module": "./node_modules/axios/lib/core/settle.js",
"moduleName": "./node_modules/axios/lib/core/settle.js",
"type": "cjs require",
"userRequest": "./createError",
"loc": "3:18-42"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 8,
"source": "'use strict';\n\nvar enhanceError = require('./enhanceError');\n\n/**\n * Create an Error with the specified message, config, error code, request and response.\n *\n * @param {string} message The error message.\n * @param {Object} config The config.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n * @returns {Error} The created error.\n */\nmodule.exports = function createError(message, config, code, request, response) {\n var error = new Error(message);\n return enhanceError(error, config, code, request, response);\n};\n"
},
{
"id": 77,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/cancel/isCancel.js",
"name": "./node_modules/axios/lib/cancel/isCancel.js",
"index": 182,
"index2": 174,
"size": 102,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/axios/lib/axios.js",
"issuerId": 169,
"issuerName": "./node_modules/axios/lib/axios.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 167,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Shotter.js",
"name": "./src/modules/Shotter.js"
},
{
"id": 168,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/index.js",
"name": "./node_modules/axios/index.js"
},
{
"id": 169,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/axios.js",
"name": "./node_modules/axios/lib/axios.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 169,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/axios/lib/axios.js",
"module": "./node_modules/axios/lib/axios.js",
"moduleName": "./node_modules/axios/lib/axios.js",
"type": "cjs require",
"userRequest": "./cancel/isCancel",
"loc": "41:17-45"
},
{
"moduleId": 182,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/axios/lib/core/dispatchRequest.js",
"module": "./node_modules/axios/lib/core/dispatchRequest.js",
"moduleName": "./node_modules/axios/lib/core/dispatchRequest.js",
"type": "cjs require",
"userRequest": "../cancel/isCancel",
"loc": "5:15-44"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 6,
"source": "'use strict';\n\nmodule.exports = function isCancel(value) {\n return !!(value && value.__CANCEL__);\n};\n"
},
{
"id": 78,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/cancel/Cancel.js",
"name": "./node_modules/axios/lib/cancel/Cancel.js",
"index": 185,
"index2": 179,
"size": 385,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/axios/lib/axios.js",
"issuerId": 169,
"issuerName": "./node_modules/axios/lib/axios.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 167,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Shotter.js",
"name": "./src/modules/Shotter.js"
},
{
"id": 168,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/index.js",
"name": "./node_modules/axios/index.js"
},
{
"id": 169,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/axios.js",
"name": "./node_modules/axios/lib/axios.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 169,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/axios/lib/axios.js",
"module": "./node_modules/axios/lib/axios.js",
"moduleName": "./node_modules/axios/lib/axios.js",
"type": "cjs require",
"userRequest": "./cancel/Cancel",
"loc": "39:15-41"
},
{
"moduleId": 186,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/axios/lib/cancel/CancelToken.js",
"module": "./node_modules/axios/lib/cancel/CancelToken.js",
"moduleName": "./node_modules/axios/lib/cancel/CancelToken.js",
"type": "cjs require",
"userRequest": "./Cancel",
"loc": "3:13-32"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 6,
"source": "'use strict';\n\n/**\n * A `Cancel` is an object that is thrown when an operation is canceled.\n *\n * @class\n * @param {string=} message The message.\n */\nfunction Cancel(message) {\n this.message = message;\n}\n\nCancel.prototype.toString = function toString() {\n return 'Cancel' + (this.message ? ': ' + this.message : '');\n};\n\nCancel.prototype.__CANCEL__ = true;\n\nmodule.exports = Cancel;\n"
},
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js",
"index": 0,
"index2": 192,
"size": 1116,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": null,
"issuerId": null,
"issuerName": null,
"issuerPath": null,
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": null,
"moduleIdentifier": null,
"module": null,
"moduleName": null,
"type": "single entry",
"userRequest": "./src/index.js",
"loc": "app"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 0,
"source": "'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.Index = undefined;\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _reactDom = require('react-dom');\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nvar _App = require('$containers/App');\n\nrequire('$styles/map.less');\n\nrequire('$styles/controls.less');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n(function () {\n var enterModule = require('react-hot-loader').enterModule;\n\n enterModule && enterModule(module);\n})();\n\nvar Index = exports.Index = function Index() {\n return _react2.default.createElement(_App.App, null);\n};\n\n_reactDom2.default.render(_react2.default.createElement(Index, null), document.getElementById('index'));\n;\n\n(function () {\n var reactHotLoader = require('react-hot-loader').default;\n\n var leaveModule = require('react-hot-loader').leaveModule;\n\n if (!reactHotLoader) {\n return;\n }\n\n reactHotLoader.register(Index, 'Index', '/Users/user/Projects/orchid/src/index.js');\n leaveModule(module);\n})();\n\n;"
},
{
"id": 80,
"identifier": "/Users/user/Projects/orchid/node_modules/react/cjs/react.production.min.js",
"name": "./node_modules/react/cjs/react.production.min.js",
"index": 3,
"index2": 5,
"size": 5724,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/react/index.js",
"issuerId": 20,
"issuerName": "./node_modules/react/index.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 20,
"identifier": "/Users/user/Projects/orchid/node_modules/react/index.js",
"name": "./node_modules/react/index.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 20,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/react/index.js",
"module": "./node_modules/react/index.js",
"moduleName": "./node_modules/react/index.js",
"type": "cjs require",
"userRequest": "./cjs/react.production.min.js",
"loc": "4:19-59"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 2,
"source": "/** @license React v16.4.2\n * react.production.min.js\n *\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';var k=require(\"object-assign\"),n=require(\"fbjs/lib/invariant\"),p=require(\"fbjs/lib/emptyObject\"),q=require(\"fbjs/lib/emptyFunction\"),r=\"function\"===typeof Symbol&&Symbol.for,t=r?Symbol.for(\"react.element\"):60103,u=r?Symbol.for(\"react.portal\"):60106,v=r?Symbol.for(\"react.fragment\"):60107,w=r?Symbol.for(\"react.strict_mode\"):60108,x=r?Symbol.for(\"react.profiler\"):60114,y=r?Symbol.for(\"react.provider\"):60109,z=r?Symbol.for(\"react.context\"):60110,A=r?Symbol.for(\"react.async_mode\"):60111,B=\nr?Symbol.for(\"react.forward_ref\"):60112;r&&Symbol.for(\"react.timeout\");var C=\"function\"===typeof Symbol&&Symbol.iterator;function D(a){for(var b=arguments.length-1,e=\"https://reactjs.org/docs/error-decoder.html?invariant=\"+a,c=0;c<b;c++)e+=\"&args[]=\"+encodeURIComponent(arguments[c+1]);n(!1,\"Minified React error #\"+a+\"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. \",e)}\nvar E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}};function F(a,b,e){this.props=a;this.context=b;this.refs=p;this.updater=e||E}F.prototype.isReactComponent={};F.prototype.setState=function(a,b){\"object\"!==typeof a&&\"function\"!==typeof a&&null!=a?D(\"85\"):void 0;this.updater.enqueueSetState(this,a,b,\"setState\")};F.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,\"forceUpdate\")};function G(){}\nG.prototype=F.prototype;function H(a,b,e){this.props=a;this.context=b;this.refs=p;this.updater=e||E}var I=H.prototype=new G;I.constructor=H;k(I,F.prototype);I.isPureReactComponent=!0;var J={current:null},K=Object.prototype.hasOwnProperty,L={key:!0,ref:!0,__self:!0,__source:!0};\nfunction M(a,b,e){var c=void 0,d={},g=null,h=null;if(null!=b)for(c in void 0!==b.ref&&(h=b.ref),void 0!==b.key&&(g=\"\"+b.key),b)K.call(b,c)&&!L.hasOwnProperty(c)&&(d[c]=b[c]);var f=arguments.length-2;if(1===f)d.children=e;else if(1<f){for(var l=Array(f),m=0;m<f;m++)l[m]=arguments[m+2];d.children=l}if(a&&a.defaultProps)for(c in f=a.defaultProps,f)void 0===d[c]&&(d[c]=f[c]);return{$$typeof:t,type:a,key:g,ref:h,props:d,_owner:J.current}}\nfunction N(a){return\"object\"===typeof a&&null!==a&&a.$$typeof===t}function escape(a){var b={\"=\":\"=0\",\":\":\"=2\"};return\"$\"+(\"\"+a).replace(/[=:]/g,function(a){return b[a]})}var O=/\\/+/g,P=[];function Q(a,b,e,c){if(P.length){var d=P.pop();d.result=a;d.keyPrefix=b;d.func=e;d.context=c;d.count=0;return d}return{result:a,keyPrefix:b,func:e,context:c,count:0}}function R(a){a.result=null;a.keyPrefix=null;a.func=null;a.context=null;a.count=0;10>P.length&&P.push(a)}\nfunction S(a,b,e,c){var d=typeof a;if(\"undefined\"===d||\"boolean\"===d)a=null;var g=!1;if(null===a)g=!0;else switch(d){case \"string\":case \"number\":g=!0;break;case \"object\":switch(a.$$typeof){case t:case u:g=!0}}if(g)return e(c,a,\"\"===b?\".\"+T(a,0):b),1;g=0;b=\"\"===b?\".\":b+\":\";if(Array.isArray(a))for(var h=0;h<a.length;h++){d=a[h];var f=b+T(d,h);g+=S(d,f,e,c)}else if(null===a||\"undefined\"===typeof a?f=null:(f=C&&a[C]||a[\"@@iterator\"],f=\"function\"===typeof f?f:null),\"function\"===typeof f)for(a=f.call(a),\nh=0;!(d=a.next()).done;)d=d.value,f=b+T(d,h++),g+=S(d,f,e,c);else\"object\"===d&&(e=\"\"+a,D(\"31\",\"[object Object]\"===e?\"object with keys {\"+Object.keys(a).join(\", \")+\"}\":e,\"\"));return g}function T(a,b){return\"object\"===typeof a&&null!==a&&null!=a.key?escape(a.key):b.toString(36)}function U(a,b){a.func.call(a.context,b,a.count++)}\nfunction V(a,b,e){var c=a.result,d=a.keyPrefix;a=a.func.call(a.context,b,a.count++);Array.isArray(a)?W(a,c,e,q.thatReturnsArgument):null!=a&&(N(a)&&(b=d+(!a.key||b&&b.key===a.key?\"\":(\"\"+a.key).replace(O,\"$&/\")+\"/\")+e,a={$$typeof:t,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}),c.push(a))}function W(a,b,e,c,d){var g=\"\";null!=e&&(g=(\"\"+e).replace(O,\"$&/\")+\"/\");b=Q(b,g,c,d);null==a||S(a,\"\",V,b);R(b)}\nvar X={Children:{map:function(a,b,e){if(null==a)return a;var c=[];W(a,c,null,b,e);return c},forEach:function(a,b,e){if(null==a)return a;b=Q(null,null,b,e);null==a||S(a,\"\",U,b);R(b)},count:function(a){return null==a?0:S(a,\"\",q.thatReturnsNull,null)},toArray:function(a){var b=[];W(a,b,null,q.thatReturnsArgument);return b},only:function(a){N(a)?void 0:D(\"143\");return a}},createRef:function(){return{current:null}},Component:F,PureComponent:H,createContext:function(a,b){void 0===b&&(b=null);a={$$typeof:z,\n_calculateChangedBits:b,_defaultValue:a,_currentValue:a,_currentValue2:a,_changedBits:0,_changedBits2:0,Provider:null,Consumer:null};a.Provider={$$typeof:y,_context:a};return a.Consumer=a},forwardRef:function(a){return{$$typeof:B,render:a}},Fragment:v,StrictMode:w,unstable_AsyncMode:A,unstable_Profiler:x,createElement:M,cloneElement:function(a,b,e){null===a||void 0===a?D(\"267\",a):void 0;var c=void 0,d=k({},a.props),g=a.key,h=a.ref,f=a._owner;if(null!=b){void 0!==b.ref&&(h=b.ref,f=J.current);void 0!==\nb.key&&(g=\"\"+b.key);var l=void 0;a.type&&a.type.defaultProps&&(l=a.type.defaultProps);for(c in b)K.call(b,c)&&!L.hasOwnProperty(c)&&(d[c]=void 0===b[c]&&void 0!==l?l[c]:b[c])}c=arguments.length-2;if(1===c)d.children=e;else if(1<c){l=Array(c);for(var m=0;m<c;m++)l[m]=arguments[m+2];d.children=l}return{$$typeof:t,type:a.type,key:g,ref:h,props:d,_owner:f}},createFactory:function(a){var b=M.bind(null,a);b.type=a;return b},isValidElement:N,version:\"16.4.2\",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:J,\nassign:k}},Y={default:X},Z=Y&&X||Y;module.exports=Z.default?Z.default:Z;\n"
},
{
"id": 81,
"identifier": "/Users/user/Projects/orchid/node_modules/react-dom/index.js",
"name": "./node_modules/react-dom/index.js",
"index": 8,
"index2": 14,
"size": 1363,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"issuerId": 79,
"issuerName": "./src/index.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 79,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"module": "./src/index.js",
"moduleName": "./src/index.js",
"type": "cjs require",
"userRequest": "react-dom",
"loc": "12:16-36"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 1,
"source": "'use strict';\n\nfunction checkDCE() {\n /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */\n if (\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' ||\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function'\n ) {\n return;\n }\n if (process.env.NODE_ENV !== 'production') {\n // This branch is unreachable because this function is only called\n // in production, but the condition is true only in development.\n // Therefore if the branch is still here, dead code elimination wasn't\n // properly applied.\n // Don't change the message. React DevTools relies on it. Also make sure\n // this message doesn't occur elsewhere in this function, or it will cause\n // a false positive.\n throw new Error('^_^');\n }\n try {\n // Verify that the code above has been dead code eliminated (DCE'd).\n __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);\n } catch (err) {\n // DevTools shouldn't crash React, no matter what.\n // We should still report in case we break this code.\n console.error(err);\n }\n}\n\nif (process.env.NODE_ENV === 'production') {\n // DCE check should happen before ReactDOM bundle executes so that\n // DevTools can report bad minification during injection.\n checkDCE();\n module.exports = require('./cjs/react-dom.production.min.js');\n} else {\n module.exports = require('./cjs/react-dom.development.js');\n}\n"
},
{
"id": 82,
"identifier": "/Users/user/Projects/orchid/node_modules/react-dom/cjs/react-dom.production.min.js",
"name": "./node_modules/react-dom/cjs/react-dom.production.min.js",
"index": 9,
"index2": 13,
"size": 94990,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/react-dom/index.js",
"issuerId": 81,
"issuerName": "./node_modules/react-dom/index.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 81,
"identifier": "/Users/user/Projects/orchid/node_modules/react-dom/index.js",
"name": "./node_modules/react-dom/index.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 81,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/react-dom/index.js",
"module": "./node_modules/react-dom/index.js",
"moduleName": "./node_modules/react-dom/index.js",
"type": "cjs require",
"userRequest": "./cjs/react-dom.production.min.js",
"loc": "35:19-63"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 2,
"source": "/** @license React v16.4.2\n * react-dom.production.min.js\n *\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n/*\n Modernizr 3.0.0pre (Custom Build) | MIT\n*/\n'use strict';var aa=require(\"fbjs/lib/invariant\"),ba=require(\"react\"),m=require(\"fbjs/lib/ExecutionEnvironment\"),p=require(\"object-assign\"),v=require(\"fbjs/lib/emptyFunction\"),da=require(\"fbjs/lib/getActiveElement\"),ea=require(\"fbjs/lib/shallowEqual\"),fa=require(\"fbjs/lib/containsNode\"),ha=require(\"fbjs/lib/emptyObject\");\nfunction A(a){for(var b=arguments.length-1,c=\"https://reactjs.org/docs/error-decoder.html?invariant=\"+a,d=0;d<b;d++)c+=\"&args[]=\"+encodeURIComponent(arguments[d+1]);aa(!1,\"Minified React error #\"+a+\"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. \",c)}ba?void 0:A(\"227\");\nfunction ia(a,b,c,d,e,f,g,h,k){this._hasCaughtError=!1;this._caughtError=null;var n=Array.prototype.slice.call(arguments,3);try{b.apply(c,n)}catch(r){this._caughtError=r,this._hasCaughtError=!0}}\nvar B={_caughtError:null,_hasCaughtError:!1,_rethrowError:null,_hasRethrowError:!1,invokeGuardedCallback:function(a,b,c,d,e,f,g,h,k){ia.apply(B,arguments)},invokeGuardedCallbackAndCatchFirstError:function(a,b,c,d,e,f,g,h,k){B.invokeGuardedCallback.apply(this,arguments);if(B.hasCaughtError()){var n=B.clearCaughtError();B._hasRethrowError||(B._hasRethrowError=!0,B._rethrowError=n)}},rethrowCaughtError:function(){return ka.apply(B,arguments)},hasCaughtError:function(){return B._hasCaughtError},clearCaughtError:function(){if(B._hasCaughtError){var a=\nB._caughtError;B._caughtError=null;B._hasCaughtError=!1;return a}A(\"198\")}};function ka(){if(B._hasRethrowError){var a=B._rethrowError;B._rethrowError=null;B._hasRethrowError=!1;throw a;}}var la=null,ma={};\nfunction na(){if(la)for(var a in ma){var b=ma[a],c=la.indexOf(a);-1<c?void 0:A(\"96\",a);if(!oa[c]){b.extractEvents?void 0:A(\"97\",a);oa[c]=b;c=b.eventTypes;for(var d in c){var e=void 0;var f=c[d],g=b,h=d;pa.hasOwnProperty(h)?A(\"99\",h):void 0;pa[h]=f;var k=f.phasedRegistrationNames;if(k){for(e in k)k.hasOwnProperty(e)&&qa(k[e],g,h);e=!0}else f.registrationName?(qa(f.registrationName,g,h),e=!0):e=!1;e?void 0:A(\"98\",d,a)}}}}\nfunction qa(a,b,c){ra[a]?A(\"100\",a):void 0;ra[a]=b;sa[a]=b.eventTypes[c].dependencies}var oa=[],pa={},ra={},sa={};function ta(a){la?A(\"101\"):void 0;la=Array.prototype.slice.call(a);na()}function ua(a){var b=!1,c;for(c in a)if(a.hasOwnProperty(c)){var d=a[c];ma.hasOwnProperty(c)&&ma[c]===d||(ma[c]?A(\"102\",c):void 0,ma[c]=d,b=!0)}b&&na()}\nvar va={plugins:oa,eventNameDispatchConfigs:pa,registrationNameModules:ra,registrationNameDependencies:sa,possibleRegistrationNames:null,injectEventPluginOrder:ta,injectEventPluginsByName:ua},wa=null,xa=null,ya=null;function za(a,b,c,d){b=a.type||\"unknown-event\";a.currentTarget=ya(d);B.invokeGuardedCallbackAndCatchFirstError(b,c,void 0,a);a.currentTarget=null}\nfunction Aa(a,b){null==b?A(\"30\"):void 0;if(null==a)return b;if(Array.isArray(a)){if(Array.isArray(b))return a.push.apply(a,b),a;a.push(b);return a}return Array.isArray(b)?[a].concat(b):[a,b]}function Ba(a,b,c){Array.isArray(a)?a.forEach(b,c):a&&b.call(c,a)}var Ca=null;\nfunction Da(a,b){if(a){var c=a._dispatchListeners,d=a._dispatchInstances;if(Array.isArray(c))for(var e=0;e<c.length&&!a.isPropagationStopped();e++)za(a,b,c[e],d[e]);else c&&za(a,b,c,d);a._dispatchListeners=null;a._dispatchInstances=null;a.isPersistent()||a.constructor.release(a)}}function Ea(a){return Da(a,!0)}function Fa(a){return Da(a,!1)}var Ga={injectEventPluginOrder:ta,injectEventPluginsByName:ua};\nfunction Ha(a,b){var c=a.stateNode;if(!c)return null;var d=wa(c);if(!d)return null;c=d[b];a:switch(b){case \"onClick\":case \"onClickCapture\":case \"onDoubleClick\":case \"onDoubleClickCapture\":case \"onMouseDown\":case \"onMouseDownCapture\":case \"onMouseMove\":case \"onMouseMoveCapture\":case \"onMouseUp\":case \"onMouseUpCapture\":(d=!d.disabled)||(a=a.type,d=!(\"button\"===a||\"input\"===a||\"select\"===a||\"textarea\"===a));a=!d;break a;default:a=!1}if(a)return null;c&&\"function\"!==typeof c?A(\"231\",b,typeof c):void 0;\nreturn c}function Ia(a,b){null!==a&&(Ca=Aa(Ca,a));a=Ca;Ca=null;a&&(b?Ba(a,Ea):Ba(a,Fa),Ca?A(\"95\"):void 0,B.rethrowCaughtError())}function Ja(a,b,c,d){for(var e=null,f=0;f<oa.length;f++){var g=oa[f];g&&(g=g.extractEvents(a,b,c,d))&&(e=Aa(e,g))}Ia(e,!1)}var Ka={injection:Ga,getListener:Ha,runEventsInBatch:Ia,runExtractedEventsInBatch:Ja},La=Math.random().toString(36).slice(2),C=\"__reactInternalInstance$\"+La,Ma=\"__reactEventHandlers$\"+La;\nfunction Na(a){if(a[C])return a[C];for(;!a[C];)if(a.parentNode)a=a.parentNode;else return null;a=a[C];return 5===a.tag||6===a.tag?a:null}function Oa(a){if(5===a.tag||6===a.tag)return a.stateNode;A(\"33\")}function Pa(a){return a[Ma]||null}var Qa={precacheFiberNode:function(a,b){b[C]=a},getClosestInstanceFromNode:Na,getInstanceFromNode:function(a){a=a[C];return!a||5!==a.tag&&6!==a.tag?null:a},getNodeFromInstance:Oa,getFiberCurrentPropsFromNode:Pa,updateFiberProps:function(a,b){a[Ma]=b}};\nfunction F(a){do a=a.return;while(a&&5!==a.tag);return a?a:null}function Ra(a,b,c){for(var d=[];a;)d.push(a),a=F(a);for(a=d.length;0<a--;)b(d[a],\"captured\",c);for(a=0;a<d.length;a++)b(d[a],\"bubbled\",c)}function Sa(a,b,c){if(b=Ha(a,c.dispatchConfig.phasedRegistrationNames[b]))c._dispatchListeners=Aa(c._dispatchListeners,b),c._dispatchInstances=Aa(c._dispatchInstances,a)}function Ta(a){a&&a.dispatchConfig.phasedRegistrationNames&&Ra(a._targetInst,Sa,a)}\nfunction Ua(a){if(a&&a.dispatchConfig.phasedRegistrationNames){var b=a._targetInst;b=b?F(b):null;Ra(b,Sa,a)}}function Va(a,b,c){a&&c&&c.dispatchConfig.registrationName&&(b=Ha(a,c.dispatchConfig.registrationName))&&(c._dispatchListeners=Aa(c._dispatchListeners,b),c._dispatchInstances=Aa(c._dispatchInstances,a))}function Xa(a){a&&a.dispatchConfig.registrationName&&Va(a._targetInst,null,a)}function Ya(a){Ba(a,Ta)}\nfunction Za(a,b,c,d){if(c&&d)a:{var e=c;for(var f=d,g=0,h=e;h;h=F(h))g++;h=0;for(var k=f;k;k=F(k))h++;for(;0<g-h;)e=F(e),g--;for(;0<h-g;)f=F(f),h--;for(;g--;){if(e===f||e===f.alternate)break a;e=F(e);f=F(f)}e=null}else e=null;f=e;for(e=[];c&&c!==f;){g=c.alternate;if(null!==g&&g===f)break;e.push(c);c=F(c)}for(c=[];d&&d!==f;){g=d.alternate;if(null!==g&&g===f)break;c.push(d);d=F(d)}for(d=0;d<e.length;d++)Va(e[d],\"bubbled\",a);for(a=c.length;0<a--;)Va(c[a],\"captured\",b)}\nvar $a={accumulateTwoPhaseDispatches:Ya,accumulateTwoPhaseDispatchesSkipTarget:function(a){Ba(a,Ua)},accumulateEnterLeaveDispatches:Za,accumulateDirectDispatches:function(a){Ba(a,Xa)}};function ab(a,b){var c={};c[a.toLowerCase()]=b.toLowerCase();c[\"Webkit\"+a]=\"webkit\"+b;c[\"Moz\"+a]=\"moz\"+b;c[\"ms\"+a]=\"MS\"+b;c[\"O\"+a]=\"o\"+b.toLowerCase();return c}\nvar bb={animationend:ab(\"Animation\",\"AnimationEnd\"),animationiteration:ab(\"Animation\",\"AnimationIteration\"),animationstart:ab(\"Animation\",\"AnimationStart\"),transitionend:ab(\"Transition\",\"TransitionEnd\")},cb={},db={};m.canUseDOM&&(db=document.createElement(\"div\").style,\"AnimationEvent\"in window||(delete bb.animationend.animation,delete bb.animationiteration.animation,delete bb.animationstart.animation),\"TransitionEvent\"in window||delete bb.transitionend.transition);\nfunction eb(a){if(cb[a])return cb[a];if(!bb[a])return a;var b=bb[a],c;for(c in b)if(b.hasOwnProperty(c)&&c in db)return cb[a]=b[c];return a}var fb=eb(\"animationend\"),gb=eb(\"animationiteration\"),hb=eb(\"animationstart\"),ib=eb(\"transitionend\"),jb=\"abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting\".split(\" \"),kb=null;\nfunction lb(){!kb&&m.canUseDOM&&(kb=\"textContent\"in document.documentElement?\"textContent\":\"innerText\");return kb}var G={_root:null,_startText:null,_fallbackText:null};function mb(){if(G._fallbackText)return G._fallbackText;var a,b=G._startText,c=b.length,d,e=nb(),f=e.length;for(a=0;a<c&&b[a]===e[a];a++);var g=c-a;for(d=1;d<=g&&b[c-d]===e[f-d];d++);G._fallbackText=e.slice(a,1<d?1-d:void 0);return G._fallbackText}function nb(){return\"value\"in G._root?G._root.value:G._root[lb()]}\nvar ob=\"dispatchConfig _targetInst nativeEvent isDefaultPrevented isPropagationStopped _dispatchListeners _dispatchInstances\".split(\" \"),pb={type:null,target:null,currentTarget:v.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};\nfunction H(a,b,c,d){this.dispatchConfig=a;this._targetInst=b;this.nativeEvent=c;a=this.constructor.Interface;for(var e in a)a.hasOwnProperty(e)&&((b=a[e])?this[e]=b(c):\"target\"===e?this.target=d:this[e]=c[e]);this.isDefaultPrevented=(null!=c.defaultPrevented?c.defaultPrevented:!1===c.returnValue)?v.thatReturnsTrue:v.thatReturnsFalse;this.isPropagationStopped=v.thatReturnsFalse;return this}\np(H.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():\"unknown\"!==typeof a.returnValue&&(a.returnValue=!1),this.isDefaultPrevented=v.thatReturnsTrue)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():\"unknown\"!==typeof a.cancelBubble&&(a.cancelBubble=!0),this.isPropagationStopped=v.thatReturnsTrue)},persist:function(){this.isPersistent=v.thatReturnsTrue},isPersistent:v.thatReturnsFalse,\ndestructor:function(){var a=this.constructor.Interface,b;for(b in a)this[b]=null;for(a=0;a<ob.length;a++)this[ob[a]]=null}});H.Interface=pb;H.extend=function(a){function b(){}function c(){return d.apply(this,arguments)}var d=this;b.prototype=d.prototype;var e=new b;p(e,c.prototype);c.prototype=e;c.prototype.constructor=c;c.Interface=p({},d.Interface,a);c.extend=d.extend;qb(c);return c};qb(H);\nfunction rb(a,b,c,d){if(this.eventPool.length){var e=this.eventPool.pop();this.call(e,a,b,c,d);return e}return new this(a,b,c,d)}function sb(a){a instanceof this?void 0:A(\"223\");a.destructor();10>this.eventPool.length&&this.eventPool.push(a)}function qb(a){a.eventPool=[];a.getPooled=rb;a.release=sb}var tb=H.extend({data:null}),ub=H.extend({data:null}),vb=[9,13,27,32],wb=m.canUseDOM&&\"CompositionEvent\"in window,xb=null;m.canUseDOM&&\"documentMode\"in document&&(xb=document.documentMode);\nvar yb=m.canUseDOM&&\"TextEvent\"in window&&!xb,zb=m.canUseDOM&&(!wb||xb&&8<xb&&11>=xb),Ab=String.fromCharCode(32),Bb={beforeInput:{phasedRegistrationNames:{bubbled:\"onBeforeInput\",captured:\"onBeforeInputCapture\"},dependencies:[\"compositionend\",\"keypress\",\"textInput\",\"paste\"]},compositionEnd:{phasedRegistrationNames:{bubbled:\"onCompositionEnd\",captured:\"onCompositionEndCapture\"},dependencies:\"blur compositionend keydown keypress keyup mousedown\".split(\" \")},compositionStart:{phasedRegistrationNames:{bubbled:\"onCompositionStart\",\ncaptured:\"onCompositionStartCapture\"},dependencies:\"blur compositionstart keydown keypress keyup mousedown\".split(\" \")},compositionUpdate:{phasedRegistrationNames:{bubbled:\"onCompositionUpdate\",captured:\"onCompositionUpdateCapture\"},dependencies:\"blur compositionupdate keydown keypress keyup mousedown\".split(\" \")}},Cb=!1;\nfunction Db(a,b){switch(a){case \"keyup\":return-1!==vb.indexOf(b.keyCode);case \"keydown\":return 229!==b.keyCode;case \"keypress\":case \"mousedown\":case \"blur\":return!0;default:return!1}}function Eb(a){a=a.detail;return\"object\"===typeof a&&\"data\"in a?a.data:null}var Fb=!1;function Gb(a,b){switch(a){case \"compositionend\":return Eb(b);case \"keypress\":if(32!==b.which)return null;Cb=!0;return Ab;case \"textInput\":return a=b.data,a===Ab&&Cb?null:a;default:return null}}\nfunction Hb(a,b){if(Fb)return\"compositionend\"===a||!wb&&Db(a,b)?(a=mb(),G._root=null,G._startText=null,G._fallbackText=null,Fb=!1,a):null;switch(a){case \"paste\":return null;case \"keypress\":if(!(b.ctrlKey||b.altKey||b.metaKey)||b.ctrlKey&&b.altKey){if(b.char&&1<b.char.length)return b.char;if(b.which)return String.fromCharCode(b.which)}return null;case \"compositionend\":return zb?null:b.data;default:return null}}\nvar Ib={eventTypes:Bb,extractEvents:function(a,b,c,d){var e=void 0;var f=void 0;if(wb)b:{switch(a){case \"compositionstart\":e=Bb.compositionStart;break b;case \"compositionend\":e=Bb.compositionEnd;break b;case \"compositionupdate\":e=Bb.compositionUpdate;break b}e=void 0}else Fb?Db(a,c)&&(e=Bb.compositionEnd):\"keydown\"===a&&229===c.keyCode&&(e=Bb.compositionStart);e?(zb&&(Fb||e!==Bb.compositionStart?e===Bb.compositionEnd&&Fb&&(f=mb()):(G._root=d,G._startText=nb(),Fb=!0)),e=tb.getPooled(e,b,c,d),f?e.data=\nf:(f=Eb(c),null!==f&&(e.data=f)),Ya(e),f=e):f=null;(a=yb?Gb(a,c):Hb(a,c))?(b=ub.getPooled(Bb.beforeInput,b,c,d),b.data=a,Ya(b)):b=null;return null===f?b:null===b?f:[f,b]}},Jb=null,Kb={injectFiberControlledHostComponent:function(a){Jb=a}},Lb=null,Mb=null;function Nb(a){if(a=xa(a)){Jb&&\"function\"===typeof Jb.restoreControlledState?void 0:A(\"194\");var b=wa(a.stateNode);Jb.restoreControlledState(a.stateNode,a.type,b)}}function Ob(a){Lb?Mb?Mb.push(a):Mb=[a]:Lb=a}\nfunction Pb(){return null!==Lb||null!==Mb}function Qb(){if(Lb){var a=Lb,b=Mb;Mb=Lb=null;Nb(a);if(b)for(a=0;a<b.length;a++)Nb(b[a])}}var Rb={injection:Kb,enqueueStateRestore:Ob,needsStateRestore:Pb,restoreStateIfNeeded:Qb};function Sb(a,b){return a(b)}function Tb(a,b,c){return a(b,c)}function Ub(){}var Vb=!1;function Wb(a,b){if(Vb)return a(b);Vb=!0;try{return Sb(a,b)}finally{Vb=!1,Pb()&&(Ub(),Qb())}}\nvar Xb={color:!0,date:!0,datetime:!0,\"datetime-local\":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Yb(a){var b=a&&a.nodeName&&a.nodeName.toLowerCase();return\"input\"===b?!!Xb[a.type]:\"textarea\"===b?!0:!1}function Zb(a){a=a.target||a.srcElement||window;a.correspondingUseElement&&(a=a.correspondingUseElement);return 3===a.nodeType?a.parentNode:a}\nfunction $b(a,b){if(!m.canUseDOM||b&&!(\"addEventListener\"in document))return!1;a=\"on\"+a;b=a in document;b||(b=document.createElement(\"div\"),b.setAttribute(a,\"return;\"),b=\"function\"===typeof b[a]);return b}function ac(a){var b=a.type;return(a=a.nodeName)&&\"input\"===a.toLowerCase()&&(\"checkbox\"===b||\"radio\"===b)}\nfunction bc(a){var b=ac(a)?\"checked\":\"value\",c=Object.getOwnPropertyDescriptor(a.constructor.prototype,b),d=\"\"+a[b];if(!a.hasOwnProperty(b)&&\"undefined\"!==typeof c&&\"function\"===typeof c.get&&\"function\"===typeof c.set){var e=c.get,f=c.set;Object.defineProperty(a,b,{configurable:!0,get:function(){return e.call(this)},set:function(a){d=\"\"+a;f.call(this,a)}});Object.defineProperty(a,b,{enumerable:c.enumerable});return{getValue:function(){return d},setValue:function(a){d=\"\"+a},stopTracking:function(){a._valueTracker=\nnull;delete a[b]}}}}function cc(a){a._valueTracker||(a._valueTracker=bc(a))}function dc(a){if(!a)return!1;var b=a._valueTracker;if(!b)return!0;var c=b.getValue();var d=\"\";a&&(d=ac(a)?a.checked?\"true\":\"false\":a.value);a=d;return a!==c?(b.setValue(a),!0):!1}\nvar ec=ba.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,fc=\"function\"===typeof Symbol&&Symbol.for,gc=fc?Symbol.for(\"react.element\"):60103,hc=fc?Symbol.for(\"react.portal\"):60106,ic=fc?Symbol.for(\"react.fragment\"):60107,jc=fc?Symbol.for(\"react.strict_mode\"):60108,kc=fc?Symbol.for(\"react.profiler\"):60114,lc=fc?Symbol.for(\"react.provider\"):60109,mc=fc?Symbol.for(\"react.context\"):60110,pc=fc?Symbol.for(\"react.async_mode\"):60111,qc=fc?Symbol.for(\"react.forward_ref\"):60112,rc=fc?Symbol.for(\"react.timeout\"):\n60113,sc=\"function\"===typeof Symbol&&Symbol.iterator;function tc(a){if(null===a||\"undefined\"===typeof a)return null;a=sc&&a[sc]||a[\"@@iterator\"];return\"function\"===typeof a?a:null}\nfunction uc(a){var b=a.type;if(\"function\"===typeof b)return b.displayName||b.name;if(\"string\"===typeof b)return b;switch(b){case pc:return\"AsyncMode\";case mc:return\"Context.Consumer\";case ic:return\"ReactFragment\";case hc:return\"ReactPortal\";case kc:return\"Profiler(\"+a.pendingProps.id+\")\";case lc:return\"Context.Provider\";case jc:return\"StrictMode\";case rc:return\"Timeout\"}if(\"object\"===typeof b&&null!==b)switch(b.$$typeof){case qc:return a=b.render.displayName||b.render.name||\"\",\"\"!==a?\"ForwardRef(\"+\na+\")\":\"ForwardRef\"}return null}function vc(a){var b=\"\";do{a:switch(a.tag){case 0:case 1:case 2:case 5:var c=a._debugOwner,d=a._debugSource;var e=uc(a);var f=null;c&&(f=uc(c));c=d;e=\"\\n in \"+(e||\"Unknown\")+(c?\" (at \"+c.fileName.replace(/^.*[\\\\\\/]/,\"\")+\":\"+c.lineNumber+\")\":f?\" (created by \"+f+\")\":\"\");break a;default:e=\"\"}b+=e;a=a.return}while(a);return b}\nvar wc=/^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$/,xc=Object.prototype.hasOwnProperty,zc={},Ac={};\nfunction Bc(a){if(xc.call(Ac,a))return!0;if(xc.call(zc,a))return!1;if(wc.test(a))return Ac[a]=!0;zc[a]=!0;return!1}function Cc(a,b,c,d){if(null!==c&&0===c.type)return!1;switch(typeof b){case \"function\":case \"symbol\":return!0;case \"boolean\":if(d)return!1;if(null!==c)return!c.acceptsBooleans;a=a.toLowerCase().slice(0,5);return\"data-\"!==a&&\"aria-\"!==a;default:return!1}}\nfunction Dc(a,b,c,d){if(null===b||\"undefined\"===typeof b||Cc(a,b,c,d))return!0;if(d)return!1;if(null!==c)switch(c.type){case 3:return!b;case 4:return!1===b;case 5:return isNaN(b);case 6:return isNaN(b)||1>b}return!1}function I(a,b,c,d,e){this.acceptsBooleans=2===b||3===b||4===b;this.attributeName=d;this.attributeNamespace=e;this.mustUseProperty=c;this.propertyName=a;this.type=b}var J={};\n\"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style\".split(\" \").forEach(function(a){J[a]=new I(a,0,!1,a,null)});[[\"acceptCharset\",\"accept-charset\"],[\"className\",\"class\"],[\"htmlFor\",\"for\"],[\"httpEquiv\",\"http-equiv\"]].forEach(function(a){var b=a[0];J[b]=new I(b,1,!1,a[1],null)});[\"contentEditable\",\"draggable\",\"spellCheck\",\"value\"].forEach(function(a){J[a]=new I(a,2,!1,a.toLowerCase(),null)});\n[\"autoReverse\",\"externalResourcesRequired\",\"preserveAlpha\"].forEach(function(a){J[a]=new I(a,2,!1,a,null)});\"allowFullScreen async autoFocus autoPlay controls default defer disabled formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope\".split(\" \").forEach(function(a){J[a]=new I(a,3,!1,a.toLowerCase(),null)});[\"checked\",\"multiple\",\"muted\",\"selected\"].forEach(function(a){J[a]=new I(a,3,!0,a.toLowerCase(),null)});\n[\"capture\",\"download\"].forEach(function(a){J[a]=new I(a,4,!1,a.toLowerCase(),null)});[\"cols\",\"rows\",\"size\",\"span\"].forEach(function(a){J[a]=new I(a,6,!1,a.toLowerCase(),null)});[\"rowSpan\",\"start\"].forEach(function(a){J[a]=new I(a,5,!1,a.toLowerCase(),null)});var Ec=/[\\-:]([a-z])/g;function Fc(a){return a[1].toUpperCase()}\n\"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height\".split(\" \").forEach(function(a){var b=a.replace(Ec,\nFc);J[b]=new I(b,1,!1,a,null)});\"xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type\".split(\" \").forEach(function(a){var b=a.replace(Ec,Fc);J[b]=new I(b,1,!1,a,\"http://www.w3.org/1999/xlink\")});[\"xml:base\",\"xml:lang\",\"xml:space\"].forEach(function(a){var b=a.replace(Ec,Fc);J[b]=new I(b,1,!1,a,\"http://www.w3.org/XML/1998/namespace\")});J.tabIndex=new I(\"tabIndex\",1,!1,\"tabindex\",null);\nfunction Gc(a,b,c,d){var e=J.hasOwnProperty(b)?J[b]:null;var f=null!==e?0===e.type:d?!1:!(2<b.length)||\"o\"!==b[0]&&\"O\"!==b[0]||\"n\"!==b[1]&&\"N\"!==b[1]?!1:!0;f||(Dc(b,c,e,d)&&(c=null),d||null===e?Bc(b)&&(null===c?a.removeAttribute(b):a.setAttribute(b,\"\"+c)):e.mustUseProperty?a[e.propertyName]=null===c?3===e.type?!1:\"\":c:(b=e.attributeName,d=e.attributeNamespace,null===c?a.removeAttribute(b):(e=e.type,c=3===e||4===e&&!0===c?\"\":\"\"+c,d?a.setAttributeNS(d,b,c):a.setAttribute(b,c))))}\nfunction Hc(a,b){var c=b.checked;return p({},b,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=c?c:a._wrapperState.initialChecked})}function Ic(a,b){var c=null==b.defaultValue?\"\":b.defaultValue,d=null!=b.checked?b.checked:b.defaultChecked;c=Jc(null!=b.value?b.value:c);a._wrapperState={initialChecked:d,initialValue:c,controlled:\"checkbox\"===b.type||\"radio\"===b.type?null!=b.checked:null!=b.value}}function Kc(a,b){b=b.checked;null!=b&&Gc(a,\"checked\",b,!1)}\nfunction Lc(a,b){Kc(a,b);var c=Jc(b.value);if(null!=c)if(\"number\"===b.type){if(0===c&&\"\"===a.value||a.value!=c)a.value=\"\"+c}else a.value!==\"\"+c&&(a.value=\"\"+c);b.hasOwnProperty(\"value\")?Mc(a,b.type,c):b.hasOwnProperty(\"defaultValue\")&&Mc(a,b.type,Jc(b.defaultValue));null==b.checked&&null!=b.defaultChecked&&(a.defaultChecked=!!b.defaultChecked)}\nfunction Nc(a,b,c){if(b.hasOwnProperty(\"value\")||b.hasOwnProperty(\"defaultValue\")){b=\"\"+a._wrapperState.initialValue;var d=a.value;c||b===d||(a.value=b);a.defaultValue=b}c=a.name;\"\"!==c&&(a.name=\"\");a.defaultChecked=!a.defaultChecked;a.defaultChecked=!a.defaultChecked;\"\"!==c&&(a.name=c)}function Mc(a,b,c){if(\"number\"!==b||a.ownerDocument.activeElement!==a)null==c?a.defaultValue=\"\"+a._wrapperState.initialValue:a.defaultValue!==\"\"+c&&(a.defaultValue=\"\"+c)}\nfunction Jc(a){switch(typeof a){case \"boolean\":case \"number\":case \"object\":case \"string\":case \"undefined\":return a;default:return\"\"}}var Oc={change:{phasedRegistrationNames:{bubbled:\"onChange\",captured:\"onChangeCapture\"},dependencies:\"blur change click focus input keydown keyup selectionchange\".split(\" \")}};function Pc(a,b,c){a=H.getPooled(Oc.change,a,b,c);a.type=\"change\";Ob(c);Ya(a);return a}var Qc=null,Rc=null;function Sc(a){Ia(a,!1)}function Tc(a){var b=Oa(a);if(dc(b))return a}\nfunction Uc(a,b){if(\"change\"===a)return b}var Vc=!1;m.canUseDOM&&(Vc=$b(\"input\")&&(!document.documentMode||9<document.documentMode));function Wc(){Qc&&(Qc.detachEvent(\"onpropertychange\",Xc),Rc=Qc=null)}function Xc(a){\"value\"===a.propertyName&&Tc(Rc)&&(a=Pc(Rc,a,Zb(a)),Wb(Sc,a))}function Yc(a,b,c){\"focus\"===a?(Wc(),Qc=b,Rc=c,Qc.attachEvent(\"onpropertychange\",Xc)):\"blur\"===a&&Wc()}function Zc(a){if(\"selectionchange\"===a||\"keyup\"===a||\"keydown\"===a)return Tc(Rc)}\nfunction $c(a,b){if(\"click\"===a)return Tc(b)}function ad(a,b){if(\"input\"===a||\"change\"===a)return Tc(b)}\nvar bd={eventTypes:Oc,_isInputEventSupported:Vc,extractEvents:function(a,b,c,d){var e=b?Oa(b):window,f=void 0,g=void 0,h=e.nodeName&&e.nodeName.toLowerCase();\"select\"===h||\"input\"===h&&\"file\"===e.type?f=Uc:Yb(e)?Vc?f=ad:(f=Zc,g=Yc):(h=e.nodeName)&&\"input\"===h.toLowerCase()&&(\"checkbox\"===e.type||\"radio\"===e.type)&&(f=$c);if(f&&(f=f(a,b)))return Pc(f,c,d);g&&g(a,e,b);\"blur\"===a&&(a=e._wrapperState)&&a.controlled&&\"number\"===e.type&&Mc(e,\"number\",e.value)}},cd=H.extend({view:null,detail:null}),dd={Alt:\"altKey\",\nControl:\"ctrlKey\",Meta:\"metaKey\",Shift:\"shiftKey\"};function ed(a){var b=this.nativeEvent;return b.getModifierState?b.getModifierState(a):(a=dd[a])?!!b[a]:!1}function fd(){return ed}\nvar gd=cd.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:fd,button:null,buttons:null,relatedTarget:function(a){return a.relatedTarget||(a.fromElement===a.srcElement?a.toElement:a.fromElement)}}),hd=gd.extend({pointerId:null,width:null,height:null,pressure:null,tiltX:null,tiltY:null,pointerType:null,isPrimary:null}),id={mouseEnter:{registrationName:\"onMouseEnter\",dependencies:[\"mouseout\",\"mouseover\"]},\nmouseLeave:{registrationName:\"onMouseLeave\",dependencies:[\"mouseout\",\"mouseover\"]},pointerEnter:{registrationName:\"onPointerEnter\",dependencies:[\"pointerout\",\"pointerover\"]},pointerLeave:{registrationName:\"onPointerLeave\",dependencies:[\"pointerout\",\"pointerover\"]}},jd={eventTypes:id,extractEvents:function(a,b,c,d){var e=\"mouseover\"===a||\"pointerover\"===a,f=\"mouseout\"===a||\"pointerout\"===a;if(e&&(c.relatedTarget||c.fromElement)||!f&&!e)return null;e=d.window===d?d:(e=d.ownerDocument)?e.defaultView||\ne.parentWindow:window;f?(f=b,b=(b=c.relatedTarget||c.toElement)?Na(b):null):f=null;if(f===b)return null;var g=void 0,h=void 0,k=void 0,n=void 0;if(\"mouseout\"===a||\"mouseover\"===a)g=gd,h=id.mouseLeave,k=id.mouseEnter,n=\"mouse\";else if(\"pointerout\"===a||\"pointerover\"===a)g=hd,h=id.pointerLeave,k=id.pointerEnter,n=\"pointer\";a=null==f?e:Oa(f);e=null==b?e:Oa(b);h=g.getPooled(h,f,c,d);h.type=n+\"leave\";h.target=a;h.relatedTarget=e;c=g.getPooled(k,b,c,d);c.type=n+\"enter\";c.target=e;c.relatedTarget=a;Za(h,\nc,f,b);return[h,c]}};function kd(a){var b=a;if(a.alternate)for(;b.return;)b=b.return;else{if(0!==(b.effectTag&2))return 1;for(;b.return;)if(b=b.return,0!==(b.effectTag&2))return 1}return 3===b.tag?2:3}function ld(a){2!==kd(a)?A(\"188\"):void 0}\nfunction md(a){var b=a.alternate;if(!b)return b=kd(a),3===b?A(\"188\"):void 0,1===b?null:a;for(var c=a,d=b;;){var e=c.return,f=e?e.alternate:null;if(!e||!f)break;if(e.child===f.child){for(var g=e.child;g;){if(g===c)return ld(e),a;if(g===d)return ld(e),b;g=g.sibling}A(\"188\")}if(c.return!==d.return)c=e,d=f;else{g=!1;for(var h=e.child;h;){if(h===c){g=!0;c=e;d=f;break}if(h===d){g=!0;d=e;c=f;break}h=h.sibling}if(!g){for(h=f.child;h;){if(h===c){g=!0;c=f;d=e;break}if(h===d){g=!0;d=f;c=e;break}h=h.sibling}g?\nvoid 0:A(\"189\")}}c.alternate!==d?A(\"190\"):void 0}3!==c.tag?A(\"188\"):void 0;return c.stateNode.current===c?a:b}function nd(a){a=md(a);if(!a)return null;for(var b=a;;){if(5===b.tag||6===b.tag)return b;if(b.child)b.child.return=b,b=b.child;else{if(b===a)break;for(;!b.sibling;){if(!b.return||b.return===a)return null;b=b.return}b.sibling.return=b.return;b=b.sibling}}return null}\nfunction od(a){a=md(a);if(!a)return null;for(var b=a;;){if(5===b.tag||6===b.tag)return b;if(b.child&&4!==b.tag)b.child.return=b,b=b.child;else{if(b===a)break;for(;!b.sibling;){if(!b.return||b.return===a)return null;b=b.return}b.sibling.return=b.return;b=b.sibling}}return null}var pd=H.extend({animationName:null,elapsedTime:null,pseudoElement:null}),qd=H.extend({clipboardData:function(a){return\"clipboardData\"in a?a.clipboardData:window.clipboardData}}),rd=cd.extend({relatedTarget:null});\nfunction sd(a){var b=a.keyCode;\"charCode\"in a?(a=a.charCode,0===a&&13===b&&(a=13)):a=b;10===a&&(a=13);return 32<=a||13===a?a:0}\nvar td={Esc:\"Escape\",Spacebar:\" \",Left:\"ArrowLeft\",Up:\"ArrowUp\",Right:\"ArrowRight\",Down:\"ArrowDown\",Del:\"Delete\",Win:\"OS\",Menu:\"ContextMenu\",Apps:\"ContextMenu\",Scroll:\"ScrollLock\",MozPrintableKey:\"Unidentified\"},ud={8:\"Backspace\",9:\"Tab\",12:\"Clear\",13:\"Enter\",16:\"Shift\",17:\"Control\",18:\"Alt\",19:\"Pause\",20:\"CapsLock\",27:\"Escape\",32:\" \",33:\"PageUp\",34:\"PageDown\",35:\"End\",36:\"Home\",37:\"ArrowLeft\",38:\"ArrowUp\",39:\"ArrowRight\",40:\"ArrowDown\",45:\"Insert\",46:\"Delete\",112:\"F1\",113:\"F2\",114:\"F3\",115:\"F4\",\n116:\"F5\",117:\"F6\",118:\"F7\",119:\"F8\",120:\"F9\",121:\"F10\",122:\"F11\",123:\"F12\",144:\"NumLock\",145:\"ScrollLock\",224:\"Meta\"},vd=cd.extend({key:function(a){if(a.key){var b=td[a.key]||a.key;if(\"Unidentified\"!==b)return b}return\"keypress\"===a.type?(a=sd(a),13===a?\"Enter\":String.fromCharCode(a)):\"keydown\"===a.type||\"keyup\"===a.type?ud[a.keyCode]||\"Unidentified\":\"\"},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:fd,charCode:function(a){return\"keypress\"===\na.type?sd(a):0},keyCode:function(a){return\"keydown\"===a.type||\"keyup\"===a.type?a.keyCode:0},which:function(a){return\"keypress\"===a.type?sd(a):\"keydown\"===a.type||\"keyup\"===a.type?a.keyCode:0}}),wd=gd.extend({dataTransfer:null}),xd=cd.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:fd}),yd=H.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),zd=gd.extend({deltaX:function(a){return\"deltaX\"in a?a.deltaX:\"wheelDeltaX\"in\na?-a.wheelDeltaX:0},deltaY:function(a){return\"deltaY\"in a?a.deltaY:\"wheelDeltaY\"in a?-a.wheelDeltaY:\"wheelDelta\"in a?-a.wheelDelta:0},deltaZ:null,deltaMode:null}),Ad=[[\"abort\",\"abort\"],[fb,\"animationEnd\"],[gb,\"animationIteration\"],[hb,\"animationStart\"],[\"canplay\",\"canPlay\"],[\"canplaythrough\",\"canPlayThrough\"],[\"drag\",\"drag\"],[\"dragenter\",\"dragEnter\"],[\"dragexit\",\"dragExit\"],[\"dragleave\",\"dragLeave\"],[\"dragover\",\"dragOver\"],[\"durationchange\",\"durationChange\"],[\"emptied\",\"emptied\"],[\"encrypted\",\"encrypted\"],\n[\"ended\",\"ended\"],[\"error\",\"error\"],[\"gotpointercapture\",\"gotPointerCapture\"],[\"load\",\"load\"],[\"loadeddata\",\"loadedData\"],[\"loadedmetadata\",\"loadedMetadata\"],[\"loadstart\",\"loadStart\"],[\"lostpointercapture\",\"lostPointerCapture\"],[\"mousemove\",\"mouseMove\"],[\"mouseout\",\"mouseOut\"],[\"mouseover\",\"mouseOver\"],[\"playing\",\"playing\"],[\"pointermove\",\"pointerMove\"],[\"pointerout\",\"pointerOut\"],[\"pointerover\",\"pointerOver\"],[\"progress\",\"progress\"],[\"scroll\",\"scroll\"],[\"seeking\",\"seeking\"],[\"stalled\",\"stalled\"],\n[\"suspend\",\"suspend\"],[\"timeupdate\",\"timeUpdate\"],[\"toggle\",\"toggle\"],[\"touchmove\",\"touchMove\"],[ib,\"transitionEnd\"],[\"waiting\",\"waiting\"],[\"wheel\",\"wheel\"]],Bd={},Cd={};function Dd(a,b){var c=a[0];a=a[1];var d=\"on\"+(a[0].toUpperCase()+a.slice(1));b={phasedRegistrationNames:{bubbled:d,captured:d+\"Capture\"},dependencies:[c],isInteractive:b};Bd[a]=b;Cd[c]=b}\n[[\"blur\",\"blur\"],[\"cancel\",\"cancel\"],[\"click\",\"click\"],[\"close\",\"close\"],[\"contextmenu\",\"contextMenu\"],[\"copy\",\"copy\"],[\"cut\",\"cut\"],[\"dblclick\",\"doubleClick\"],[\"dragend\",\"dragEnd\"],[\"dragstart\",\"dragStart\"],[\"drop\",\"drop\"],[\"focus\",\"focus\"],[\"input\",\"input\"],[\"invalid\",\"invalid\"],[\"keydown\",\"keyDown\"],[\"keypress\",\"keyPress\"],[\"keyup\",\"keyUp\"],[\"mousedown\",\"mouseDown\"],[\"mouseup\",\"mouseUp\"],[\"paste\",\"paste\"],[\"pause\",\"pause\"],[\"play\",\"play\"],[\"pointercancel\",\"pointerCancel\"],[\"pointerdown\",\"pointerDown\"],\n[\"pointerup\",\"pointerUp\"],[\"ratechange\",\"rateChange\"],[\"reset\",\"reset\"],[\"seeked\",\"seeked\"],[\"submit\",\"submit\"],[\"touchcancel\",\"touchCancel\"],[\"touchend\",\"touchEnd\"],[\"touchstart\",\"touchStart\"],[\"volumechange\",\"volumeChange\"]].forEach(function(a){Dd(a,!0)});Ad.forEach(function(a){Dd(a,!1)});\nvar Ed={eventTypes:Bd,isInteractiveTopLevelEventType:function(a){a=Cd[a];return void 0!==a&&!0===a.isInteractive},extractEvents:function(a,b,c,d){var e=Cd[a];if(!e)return null;switch(a){case \"keypress\":if(0===sd(c))return null;case \"keydown\":case \"keyup\":a=vd;break;case \"blur\":case \"focus\":a=rd;break;case \"click\":if(2===c.button)return null;case \"dblclick\":case \"mousedown\":case \"mousemove\":case \"mouseup\":case \"mouseout\":case \"mouseover\":case \"contextmenu\":a=gd;break;case \"drag\":case \"dragend\":case \"dragenter\":case \"dragexit\":case \"dragleave\":case \"dragover\":case \"dragstart\":case \"drop\":a=\nwd;break;case \"touchcancel\":case \"touchend\":case \"touchmove\":case \"touchstart\":a=xd;break;case fb:case gb:case hb:a=pd;break;case ib:a=yd;break;case \"scroll\":a=cd;break;case \"wheel\":a=zd;break;case \"copy\":case \"cut\":case \"paste\":a=qd;break;case \"gotpointercapture\":case \"lostpointercapture\":case \"pointercancel\":case \"pointerdown\":case \"pointermove\":case \"pointerout\":case \"pointerover\":case \"pointerup\":a=hd;break;default:a=H}b=a.getPooled(e,b,c,d);Ya(b);return b}},Fd=Ed.isInteractiveTopLevelEventType,\nGd=[];function Hd(a){var b=a.targetInst;do{if(!b){a.ancestors.push(b);break}var c;for(c=b;c.return;)c=c.return;c=3!==c.tag?null:c.stateNode.containerInfo;if(!c)break;a.ancestors.push(b);b=Na(c)}while(b);for(c=0;c<a.ancestors.length;c++)b=a.ancestors[c],Ja(a.topLevelType,b,a.nativeEvent,Zb(a.nativeEvent))}var Id=!0;function Kd(a){Id=!!a}function K(a,b){if(!b)return null;var c=(Fd(a)?Ld:Md).bind(null,a);b.addEventListener(a,c,!1)}\nfunction Nd(a,b){if(!b)return null;var c=(Fd(a)?Ld:Md).bind(null,a);b.addEventListener(a,c,!0)}function Ld(a,b){Tb(Md,a,b)}function Md(a,b){if(Id){var c=Zb(b);c=Na(c);null===c||\"number\"!==typeof c.tag||2===kd(c)||(c=null);if(Gd.length){var d=Gd.pop();d.topLevelType=a;d.nativeEvent=b;d.targetInst=c;a=d}else a={topLevelType:a,nativeEvent:b,targetInst:c,ancestors:[]};try{Wb(Hd,a)}finally{a.topLevelType=null,a.nativeEvent=null,a.targetInst=null,a.ancestors.length=0,10>Gd.length&&Gd.push(a)}}}\nvar Od={get _enabled(){return Id},setEnabled:Kd,isEnabled:function(){return Id},trapBubbledEvent:K,trapCapturedEvent:Nd,dispatchEvent:Md},Pd={},Qd=0,Rd=\"_reactListenersID\"+(\"\"+Math.random()).slice(2);function Sd(a){Object.prototype.hasOwnProperty.call(a,Rd)||(a[Rd]=Qd++,Pd[a[Rd]]={});return Pd[a[Rd]]}function Td(a){for(;a&&a.firstChild;)a=a.firstChild;return a}\nfunction Ud(a,b){var c=Td(a);a=0;for(var d;c;){if(3===c.nodeType){d=a+c.textContent.length;if(a<=b&&d>=b)return{node:c,offset:b-a};a=d}a:{for(;c;){if(c.nextSibling){c=c.nextSibling;break a}c=c.parentNode}c=void 0}c=Td(c)}}function Vd(a){var b=a&&a.nodeName&&a.nodeName.toLowerCase();return b&&(\"input\"===b&&(\"text\"===a.type||\"search\"===a.type||\"tel\"===a.type||\"url\"===a.type||\"password\"===a.type)||\"textarea\"===b||\"true\"===a.contentEditable)}\nvar Wd=m.canUseDOM&&\"documentMode\"in document&&11>=document.documentMode,Xd={select:{phasedRegistrationNames:{bubbled:\"onSelect\",captured:\"onSelectCapture\"},dependencies:\"blur contextmenu focus keydown keyup mousedown mouseup selectionchange\".split(\" \")}},Yd=null,Zd=null,$d=null,ae=!1;\nfunction be(a,b){if(ae||null==Yd||Yd!==da())return null;var c=Yd;\"selectionStart\"in c&&Vd(c)?c={start:c.selectionStart,end:c.selectionEnd}:window.getSelection?(c=window.getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}):c=void 0;return $d&&ea($d,c)?null:($d=c,a=H.getPooled(Xd.select,Zd,a,b),a.type=\"select\",a.target=Yd,Ya(a),a)}\nvar ce={eventTypes:Xd,extractEvents:function(a,b,c,d){var e=d.window===d?d.document:9===d.nodeType?d:d.ownerDocument,f;if(!(f=!e)){a:{e=Sd(e);f=sa.onSelect;for(var g=0;g<f.length;g++){var h=f[g];if(!e.hasOwnProperty(h)||!e[h]){e=!1;break a}}e=!0}f=!e}if(f)return null;e=b?Oa(b):window;switch(a){case \"focus\":if(Yb(e)||\"true\"===e.contentEditable)Yd=e,Zd=b,$d=null;break;case \"blur\":$d=Zd=Yd=null;break;case \"mousedown\":ae=!0;break;case \"contextmenu\":case \"mouseup\":return ae=!1,be(c,d);case \"selectionchange\":if(Wd)break;\ncase \"keydown\":case \"keyup\":return be(c,d)}return null}};Ga.injectEventPluginOrder(\"ResponderEventPlugin SimpleEventPlugin TapEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin\".split(\" \"));wa=Qa.getFiberCurrentPropsFromNode;xa=Qa.getInstanceFromNode;ya=Qa.getNodeFromInstance;Ga.injectEventPluginsByName({SimpleEventPlugin:Ed,EnterLeaveEventPlugin:jd,ChangeEventPlugin:bd,SelectEventPlugin:ce,BeforeInputEventPlugin:Ib});\nvar de=\"function\"===typeof requestAnimationFrame?requestAnimationFrame:void 0,ee=Date,fe=setTimeout,ge=clearTimeout,he=void 0;if(\"object\"===typeof performance&&\"function\"===typeof performance.now){var ie=performance;he=function(){return ie.now()}}else he=function(){return ee.now()};var je=void 0,ke=void 0;\nif(m.canUseDOM){var le=\"function\"===typeof de?de:function(){A(\"276\")},L=null,me=null,ne=-1,oe=!1,pe=!1,qe=0,re=33,se=33,te={didTimeout:!1,timeRemaining:function(){var a=qe-he();return 0<a?a:0}},ve=function(a,b){var c=a.scheduledCallback,d=!1;try{c(b),d=!0}finally{ke(a),d||(oe=!0,window.postMessage(ue,\"*\"))}},ue=\"__reactIdleCallback$\"+Math.random().toString(36).slice(2);window.addEventListener(\"message\",function(a){if(a.source===window&&a.data===ue&&(oe=!1,null!==L)){if(null!==L){var b=he();if(!(-1===\nne||ne>b)){a=-1;for(var c=[],d=L;null!==d;){var e=d.timeoutTime;-1!==e&&e<=b?c.push(d):-1!==e&&(-1===a||e<a)&&(a=e);d=d.next}if(0<c.length)for(te.didTimeout=!0,b=0,d=c.length;b<d;b++)ve(c[b],te);ne=a}}for(a=he();0<qe-a&&null!==L;)a=L,te.didTimeout=!1,ve(a,te),a=he();null===L||pe||(pe=!0,le(we))}},!1);var we=function(a){pe=!1;var b=a-qe+se;b<se&&re<se?(8>b&&(b=8),se=b<re?re:b):re=b;qe=a+se;oe||(oe=!0,window.postMessage(ue,\"*\"))};je=function(a,b){var c=-1;null!=b&&\"number\"===typeof b.timeout&&(c=he()+\nb.timeout);if(-1===ne||-1!==c&&c<ne)ne=c;a={scheduledCallback:a,timeoutTime:c,prev:null,next:null};null===L?L=a:(b=a.prev=me,null!==b&&(b.next=a));me=a;pe||(pe=!0,le(we));return a};ke=function(a){if(null!==a.prev||L===a){var b=a.next,c=a.prev;a.next=null;a.prev=null;null!==b?null!==c?(c.next=b,b.prev=c):(b.prev=null,L=b):null!==c?(c.next=null,me=c):me=L=null}}}else{var xe=new Map;je=function(a){var b={scheduledCallback:a,timeoutTime:0,next:null,prev:null},c=fe(function(){a({timeRemaining:function(){return Infinity},\ndidTimeout:!1})});xe.set(a,c);return b};ke=function(a){var b=xe.get(a.scheduledCallback);xe.delete(a);ge(b)}}function ye(a){var b=\"\";ba.Children.forEach(a,function(a){null==a||\"string\"!==typeof a&&\"number\"!==typeof a||(b+=a)});return b}function ze(a,b){a=p({children:void 0},b);if(b=ye(b.children))a.children=b;return a}\nfunction Ae(a,b,c,d){a=a.options;if(b){b={};for(var e=0;e<c.length;e++)b[\"$\"+c[e]]=!0;for(c=0;c<a.length;c++)e=b.hasOwnProperty(\"$\"+a[c].value),a[c].selected!==e&&(a[c].selected=e),e&&d&&(a[c].defaultSelected=!0)}else{c=\"\"+c;b=null;for(e=0;e<a.length;e++){if(a[e].value===c){a[e].selected=!0;d&&(a[e].defaultSelected=!0);return}null!==b||a[e].disabled||(b=a[e])}null!==b&&(b.selected=!0)}}\nfunction Be(a,b){var c=b.value;a._wrapperState={initialValue:null!=c?c:b.defaultValue,wasMultiple:!!b.multiple}}function Ce(a,b){null!=b.dangerouslySetInnerHTML?A(\"91\"):void 0;return p({},b,{value:void 0,defaultValue:void 0,children:\"\"+a._wrapperState.initialValue})}function De(a,b){var c=b.value;null==c&&(c=b.defaultValue,b=b.children,null!=b&&(null!=c?A(\"92\"):void 0,Array.isArray(b)&&(1>=b.length?void 0:A(\"93\"),b=b[0]),c=\"\"+b),null==c&&(c=\"\"));a._wrapperState={initialValue:\"\"+c}}\nfunction Ee(a,b){var c=b.value;null!=c&&(c=\"\"+c,c!==a.value&&(a.value=c),null==b.defaultValue&&(a.defaultValue=c));null!=b.defaultValue&&(a.defaultValue=b.defaultValue)}function Fe(a){var b=a.textContent;b===a._wrapperState.initialValue&&(a.value=b)}var Ge={html:\"http://www.w3.org/1999/xhtml\",mathml:\"http://www.w3.org/1998/Math/MathML\",svg:\"http://www.w3.org/2000/svg\"};\nfunction He(a){switch(a){case \"svg\":return\"http://www.w3.org/2000/svg\";case \"math\":return\"http://www.w3.org/1998/Math/MathML\";default:return\"http://www.w3.org/1999/xhtml\"}}function Ie(a,b){return null==a||\"http://www.w3.org/1999/xhtml\"===a?He(b):\"http://www.w3.org/2000/svg\"===a&&\"foreignObject\"===b?\"http://www.w3.org/1999/xhtml\":a}\nvar Je=void 0,Ke=function(a){return\"undefined\"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(b,c,d,e){MSApp.execUnsafeLocalFunction(function(){return a(b,c,d,e)})}:a}(function(a,b){if(a.namespaceURI!==Ge.svg||\"innerHTML\"in a)a.innerHTML=b;else{Je=Je||document.createElement(\"div\");Je.innerHTML=\"<svg>\"+b+\"</svg>\";for(b=Je.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;b.firstChild;)a.appendChild(b.firstChild)}});\nfunction Le(a,b){if(b){var c=a.firstChild;if(c&&c===a.lastChild&&3===c.nodeType){c.nodeValue=b;return}}a.textContent=b}\nvar Me={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,\nstopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Ne=[\"Webkit\",\"ms\",\"Moz\",\"O\"];Object.keys(Me).forEach(function(a){Ne.forEach(function(b){b=b+a.charAt(0).toUpperCase()+a.substring(1);Me[b]=Me[a]})});\nfunction Oe(a,b){a=a.style;for(var c in b)if(b.hasOwnProperty(c)){var d=0===c.indexOf(\"--\");var e=c;var f=b[c];e=null==f||\"boolean\"===typeof f||\"\"===f?\"\":d||\"number\"!==typeof f||0===f||Me.hasOwnProperty(e)&&Me[e]?(\"\"+f).trim():f+\"px\";\"float\"===c&&(c=\"cssFloat\");d?a.setProperty(c,e):a[c]=e}}var Pe=p({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});\nfunction Qe(a,b,c){b&&(Pe[a]&&(null!=b.children||null!=b.dangerouslySetInnerHTML?A(\"137\",a,c()):void 0),null!=b.dangerouslySetInnerHTML&&(null!=b.children?A(\"60\"):void 0,\"object\"===typeof b.dangerouslySetInnerHTML&&\"__html\"in b.dangerouslySetInnerHTML?void 0:A(\"61\")),null!=b.style&&\"object\"!==typeof b.style?A(\"62\",c()):void 0)}\nfunction Re(a,b){if(-1===a.indexOf(\"-\"))return\"string\"===typeof b.is;switch(a){case \"annotation-xml\":case \"color-profile\":case \"font-face\":case \"font-face-src\":case \"font-face-uri\":case \"font-face-format\":case \"font-face-name\":case \"missing-glyph\":return!1;default:return!0}}var Se=v.thatReturns(\"\");\nfunction Te(a,b){a=9===a.nodeType||11===a.nodeType?a:a.ownerDocument;var c=Sd(a);b=sa[b];for(var d=0;d<b.length;d++){var e=b[d];if(!c.hasOwnProperty(e)||!c[e]){switch(e){case \"scroll\":Nd(\"scroll\",a);break;case \"focus\":case \"blur\":Nd(\"focus\",a);Nd(\"blur\",a);c.blur=!0;c.focus=!0;break;case \"cancel\":case \"close\":$b(e,!0)&&Nd(e,a);break;case \"invalid\":case \"submit\":case \"reset\":break;default:-1===jb.indexOf(e)&&K(e,a)}c[e]=!0}}}\nfunction Ue(a,b,c,d){c=9===c.nodeType?c:c.ownerDocument;d===Ge.html&&(d=He(a));d===Ge.html?\"script\"===a?(a=c.createElement(\"div\"),a.innerHTML=\"<script>\\x3c/script>\",a=a.removeChild(a.firstChild)):a=\"string\"===typeof b.is?c.createElement(a,{is:b.is}):c.createElement(a):a=c.createElementNS(d,a);return a}function Ve(a,b){return(9===b.nodeType?b:b.ownerDocument).createTextNode(a)}\nfunction We(a,b,c,d){var e=Re(b,c);switch(b){case \"iframe\":case \"object\":K(\"load\",a);var f=c;break;case \"video\":case \"audio\":for(f=0;f<jb.length;f++)K(jb[f],a);f=c;break;case \"source\":K(\"error\",a);f=c;break;case \"img\":case \"image\":case \"link\":K(\"error\",a);K(\"load\",a);f=c;break;case \"form\":K(\"reset\",a);K(\"submit\",a);f=c;break;case \"details\":K(\"toggle\",a);f=c;break;case \"input\":Ic(a,c);f=Hc(a,c);K(\"invalid\",a);Te(d,\"onChange\");break;case \"option\":f=ze(a,c);break;case \"select\":Be(a,c);f=p({},c,{value:void 0});\nK(\"invalid\",a);Te(d,\"onChange\");break;case \"textarea\":De(a,c);f=Ce(a,c);K(\"invalid\",a);Te(d,\"onChange\");break;default:f=c}Qe(b,f,Se);var g=f,h;for(h in g)if(g.hasOwnProperty(h)){var k=g[h];\"style\"===h?Oe(a,k,Se):\"dangerouslySetInnerHTML\"===h?(k=k?k.__html:void 0,null!=k&&Ke(a,k)):\"children\"===h?\"string\"===typeof k?(\"textarea\"!==b||\"\"!==k)&&Le(a,k):\"number\"===typeof k&&Le(a,\"\"+k):\"suppressContentEditableWarning\"!==h&&\"suppressHydrationWarning\"!==h&&\"autoFocus\"!==h&&(ra.hasOwnProperty(h)?null!=k&&Te(d,\nh):null!=k&&Gc(a,h,k,e))}switch(b){case \"input\":cc(a);Nc(a,c,!1);break;case \"textarea\":cc(a);Fe(a,c);break;case \"option\":null!=c.value&&a.setAttribute(\"value\",c.value);break;case \"select\":a.multiple=!!c.multiple;b=c.value;null!=b?Ae(a,!!c.multiple,b,!1):null!=c.defaultValue&&Ae(a,!!c.multiple,c.defaultValue,!0);break;default:\"function\"===typeof f.onClick&&(a.onclick=v)}}\nfunction Xe(a,b,c,d,e){var f=null;switch(b){case \"input\":c=Hc(a,c);d=Hc(a,d);f=[];break;case \"option\":c=ze(a,c);d=ze(a,d);f=[];break;case \"select\":c=p({},c,{value:void 0});d=p({},d,{value:void 0});f=[];break;case \"textarea\":c=Ce(a,c);d=Ce(a,d);f=[];break;default:\"function\"!==typeof c.onClick&&\"function\"===typeof d.onClick&&(a.onclick=v)}Qe(b,d,Se);b=a=void 0;var g=null;for(a in c)if(!d.hasOwnProperty(a)&&c.hasOwnProperty(a)&&null!=c[a])if(\"style\"===a){var h=c[a];for(b in h)h.hasOwnProperty(b)&&(g||\n(g={}),g[b]=\"\")}else\"dangerouslySetInnerHTML\"!==a&&\"children\"!==a&&\"suppressContentEditableWarning\"!==a&&\"suppressHydrationWarning\"!==a&&\"autoFocus\"!==a&&(ra.hasOwnProperty(a)?f||(f=[]):(f=f||[]).push(a,null));for(a in d){var k=d[a];h=null!=c?c[a]:void 0;if(d.hasOwnProperty(a)&&k!==h&&(null!=k||null!=h))if(\"style\"===a)if(h){for(b in h)!h.hasOwnProperty(b)||k&&k.hasOwnProperty(b)||(g||(g={}),g[b]=\"\");for(b in k)k.hasOwnProperty(b)&&h[b]!==k[b]&&(g||(g={}),g[b]=k[b])}else g||(f||(f=[]),f.push(a,g)),\ng=k;else\"dangerouslySetInnerHTML\"===a?(k=k?k.__html:void 0,h=h?h.__html:void 0,null!=k&&h!==k&&(f=f||[]).push(a,\"\"+k)):\"children\"===a?h===k||\"string\"!==typeof k&&\"number\"!==typeof k||(f=f||[]).push(a,\"\"+k):\"suppressContentEditableWarning\"!==a&&\"suppressHydrationWarning\"!==a&&(ra.hasOwnProperty(a)?(null!=k&&Te(e,a),f||h===k||(f=[])):(f=f||[]).push(a,k))}g&&(f=f||[]).push(\"style\",g);return f}\nfunction Ye(a,b,c,d,e){\"input\"===c&&\"radio\"===e.type&&null!=e.name&&Kc(a,e);Re(c,d);d=Re(c,e);for(var f=0;f<b.length;f+=2){var g=b[f],h=b[f+1];\"style\"===g?Oe(a,h,Se):\"dangerouslySetInnerHTML\"===g?Ke(a,h):\"children\"===g?Le(a,h):Gc(a,g,h,d)}switch(c){case \"input\":Lc(a,e);break;case \"textarea\":Ee(a,e);break;case \"select\":a._wrapperState.initialValue=void 0,b=a._wrapperState.wasMultiple,a._wrapperState.wasMultiple=!!e.multiple,c=e.value,null!=c?Ae(a,!!e.multiple,c,!1):b!==!!e.multiple&&(null!=e.defaultValue?\nAe(a,!!e.multiple,e.defaultValue,!0):Ae(a,!!e.multiple,e.multiple?[]:\"\",!1))}}\nfunction Ze(a,b,c,d,e){switch(b){case \"iframe\":case \"object\":K(\"load\",a);break;case \"video\":case \"audio\":for(d=0;d<jb.length;d++)K(jb[d],a);break;case \"source\":K(\"error\",a);break;case \"img\":case \"image\":case \"link\":K(\"error\",a);K(\"load\",a);break;case \"form\":K(\"reset\",a);K(\"submit\",a);break;case \"details\":K(\"toggle\",a);break;case \"input\":Ic(a,c);K(\"invalid\",a);Te(e,\"onChange\");break;case \"select\":Be(a,c);K(\"invalid\",a);Te(e,\"onChange\");break;case \"textarea\":De(a,c),K(\"invalid\",a),Te(e,\"onChange\")}Qe(b,\nc,Se);d=null;for(var f in c)if(c.hasOwnProperty(f)){var g=c[f];\"children\"===f?\"string\"===typeof g?a.textContent!==g&&(d=[\"children\",g]):\"number\"===typeof g&&a.textContent!==\"\"+g&&(d=[\"children\",\"\"+g]):ra.hasOwnProperty(f)&&null!=g&&Te(e,f)}switch(b){case \"input\":cc(a);Nc(a,c,!0);break;case \"textarea\":cc(a);Fe(a,c);break;case \"select\":case \"option\":break;default:\"function\"===typeof c.onClick&&(a.onclick=v)}return d}function $e(a,b){return a.nodeValue!==b}\nvar af={createElement:Ue,createTextNode:Ve,setInitialProperties:We,diffProperties:Xe,updateProperties:Ye,diffHydratedProperties:Ze,diffHydratedText:$e,warnForUnmatchedText:function(){},warnForDeletedHydratableElement:function(){},warnForDeletedHydratableText:function(){},warnForInsertedHydratedElement:function(){},warnForInsertedHydratedText:function(){},restoreControlledState:function(a,b,c){switch(b){case \"input\":Lc(a,c);b=c.name;if(\"radio\"===c.type&&null!=b){for(c=a;c.parentNode;)c=c.parentNode;\nc=c.querySelectorAll(\"input[name=\"+JSON.stringify(\"\"+b)+'][type=\"radio\"]');for(b=0;b<c.length;b++){var d=c[b];if(d!==a&&d.form===a.form){var e=Pa(d);e?void 0:A(\"90\");dc(d);Lc(d,e)}}}break;case \"textarea\":Ee(a,c);break;case \"select\":b=c.value,null!=b&&Ae(a,!!c.multiple,b,!1)}}},bf=null,cf=null;function df(a,b){switch(a){case \"button\":case \"input\":case \"select\":case \"textarea\":return!!b.autoFocus}return!1}\nfunction ef(a,b){return\"textarea\"===a||\"string\"===typeof b.children||\"number\"===typeof b.children||\"object\"===typeof b.dangerouslySetInnerHTML&&null!==b.dangerouslySetInnerHTML&&\"string\"===typeof b.dangerouslySetInnerHTML.__html}var ff=he,gf=je,hf=ke;function jf(a){for(a=a.nextSibling;a&&1!==a.nodeType&&3!==a.nodeType;)a=a.nextSibling;return a}function kf(a){for(a=a.firstChild;a&&1!==a.nodeType&&3!==a.nodeType;)a=a.nextSibling;return a}new Set;var lf=[],mf=-1;function nf(a){return{current:a}}\nfunction M(a){0>mf||(a.current=lf[mf],lf[mf]=null,mf--)}function N(a,b){mf++;lf[mf]=a.current;a.current=b}var of=nf(ha),O=nf(!1),pf=ha;function qf(a){return rf(a)?pf:of.current}\nfunction sf(a,b){var c=a.type.contextTypes;if(!c)return ha;var d=a.stateNode;if(d&&d.__reactInternalMemoizedUnmaskedChildContext===b)return d.__reactInternalMemoizedMaskedChildContext;var e={},f;for(f in c)e[f]=b[f];d&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=b,a.__reactInternalMemoizedMaskedChildContext=e);return e}function rf(a){return 2===a.tag&&null!=a.type.childContextTypes}function tf(a){rf(a)&&(M(O,a),M(of,a))}function uf(a){M(O,a);M(of,a)}\nfunction vf(a,b,c){of.current!==ha?A(\"168\"):void 0;N(of,b,a);N(O,c,a)}function wf(a,b){var c=a.stateNode,d=a.type.childContextTypes;if(\"function\"!==typeof c.getChildContext)return b;c=c.getChildContext();for(var e in c)e in d?void 0:A(\"108\",uc(a)||\"Unknown\",e);return p({},b,c)}function xf(a){if(!rf(a))return!1;var b=a.stateNode;b=b&&b.__reactInternalMemoizedMergedChildContext||ha;pf=of.current;N(of,b,a);N(O,O.current,a);return!0}\nfunction yf(a,b){var c=a.stateNode;c?void 0:A(\"169\");if(b){var d=wf(a,pf);c.__reactInternalMemoizedMergedChildContext=d;M(O,a);M(of,a);N(of,d,a)}else M(O,a);N(O,b,a)}\nfunction zf(a,b,c,d){this.tag=a;this.key=c;this.sibling=this.child=this.return=this.stateNode=this.type=null;this.index=0;this.ref=null;this.pendingProps=b;this.memoizedState=this.updateQueue=this.memoizedProps=null;this.mode=d;this.effectTag=0;this.lastEffect=this.firstEffect=this.nextEffect=null;this.expirationTime=0;this.alternate=null}\nfunction Af(a,b,c){var d=a.alternate;null===d?(d=new zf(a.tag,b,a.key,a.mode),d.type=a.type,d.stateNode=a.stateNode,d.alternate=a,a.alternate=d):(d.pendingProps=b,d.effectTag=0,d.nextEffect=null,d.firstEffect=null,d.lastEffect=null);d.expirationTime=c;d.child=a.child;d.memoizedProps=a.memoizedProps;d.memoizedState=a.memoizedState;d.updateQueue=a.updateQueue;d.sibling=a.sibling;d.index=a.index;d.ref=a.ref;return d}\nfunction Bf(a,b,c){var d=a.type,e=a.key;a=a.props;if(\"function\"===typeof d)var f=d.prototype&&d.prototype.isReactComponent?2:0;else if(\"string\"===typeof d)f=5;else switch(d){case ic:return Cf(a.children,b,c,e);case pc:f=11;b|=3;break;case jc:f=11;b|=2;break;case kc:return d=new zf(15,a,e,b|4),d.type=kc,d.expirationTime=c,d;case rc:f=16;b|=2;break;default:a:{switch(\"object\"===typeof d&&null!==d?d.$$typeof:null){case lc:f=13;break a;case mc:f=12;break a;case qc:f=14;break a;default:A(\"130\",null==d?\nd:typeof d,\"\")}f=void 0}}b=new zf(f,a,e,b);b.type=d;b.expirationTime=c;return b}function Cf(a,b,c,d){a=new zf(10,a,d,b);a.expirationTime=c;return a}function Df(a,b,c){a=new zf(6,a,null,b);a.expirationTime=c;return a}function Ef(a,b,c){b=new zf(4,null!==a.children?a.children:[],a.key,b);b.expirationTime=c;b.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation};return b}\nfunction Ff(a,b,c){b=new zf(3,null,null,b?3:0);a={current:b,containerInfo:a,pendingChildren:null,earliestPendingTime:0,latestPendingTime:0,earliestSuspendedTime:0,latestSuspendedTime:0,latestPingedTime:0,pendingCommitExpirationTime:0,finishedWork:null,context:null,pendingContext:null,hydrate:c,remainingExpirationTime:0,firstBatch:null,nextScheduledRoot:null};return b.stateNode=a}var Gf=null,Hf=null;function If(a){return function(b){try{return a(b)}catch(c){}}}\nfunction Jf(a){if(\"undefined\"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var b=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(b.isDisabled||!b.supportsFiber)return!0;try{var c=b.inject(a);Gf=If(function(a){return b.onCommitFiberRoot(c,a)});Hf=If(function(a){return b.onCommitFiberUnmount(c,a)})}catch(d){}return!0}function Kf(a){\"function\"===typeof Gf&&Gf(a)}function Lf(a){\"function\"===typeof Hf&&Hf(a)}var Mf=!1;\nfunction Nf(a){return{expirationTime:0,baseState:a,firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function Of(a){return{expirationTime:a.expirationTime,baseState:a.baseState,firstUpdate:a.firstUpdate,lastUpdate:a.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}\nfunction Pf(a){return{expirationTime:a,tag:0,payload:null,callback:null,next:null,nextEffect:null}}function Qf(a,b,c){null===a.lastUpdate?a.firstUpdate=a.lastUpdate=b:(a.lastUpdate.next=b,a.lastUpdate=b);if(0===a.expirationTime||a.expirationTime>c)a.expirationTime=c}\nfunction Rf(a,b,c){var d=a.alternate;if(null===d){var e=a.updateQueue;var f=null;null===e&&(e=a.updateQueue=Nf(a.memoizedState))}else e=a.updateQueue,f=d.updateQueue,null===e?null===f?(e=a.updateQueue=Nf(a.memoizedState),f=d.updateQueue=Nf(d.memoizedState)):e=a.updateQueue=Of(f):null===f&&(f=d.updateQueue=Of(e));null===f||e===f?Qf(e,b,c):null===e.lastUpdate||null===f.lastUpdate?(Qf(e,b,c),Qf(f,b,c)):(Qf(e,b,c),f.lastUpdate=b)}\nfunction Sf(a,b,c){var d=a.updateQueue;d=null===d?a.updateQueue=Nf(a.memoizedState):Tf(a,d);null===d.lastCapturedUpdate?d.firstCapturedUpdate=d.lastCapturedUpdate=b:(d.lastCapturedUpdate.next=b,d.lastCapturedUpdate=b);if(0===d.expirationTime||d.expirationTime>c)d.expirationTime=c}function Tf(a,b){var c=a.alternate;null!==c&&b===c.updateQueue&&(b=a.updateQueue=Of(b));return b}\nfunction Uf(a,b,c,d,e,f){switch(c.tag){case 1:return a=c.payload,\"function\"===typeof a?a.call(f,d,e):a;case 3:a.effectTag=a.effectTag&-1025|64;case 0:a=c.payload;e=\"function\"===typeof a?a.call(f,d,e):a;if(null===e||void 0===e)break;return p({},d,e);case 2:Mf=!0}return d}\nfunction Vf(a,b,c,d,e){Mf=!1;if(!(0===b.expirationTime||b.expirationTime>e)){b=Tf(a,b);for(var f=b.baseState,g=null,h=0,k=b.firstUpdate,n=f;null!==k;){var r=k.expirationTime;if(r>e){if(null===g&&(g=k,f=n),0===h||h>r)h=r}else n=Uf(a,b,k,n,c,d),null!==k.callback&&(a.effectTag|=32,k.nextEffect=null,null===b.lastEffect?b.firstEffect=b.lastEffect=k:(b.lastEffect.nextEffect=k,b.lastEffect=k));k=k.next}r=null;for(k=b.firstCapturedUpdate;null!==k;){var w=k.expirationTime;if(w>e){if(null===r&&(r=k,null===\ng&&(f=n)),0===h||h>w)h=w}else n=Uf(a,b,k,n,c,d),null!==k.callback&&(a.effectTag|=32,k.nextEffect=null,null===b.lastCapturedEffect?b.firstCapturedEffect=b.lastCapturedEffect=k:(b.lastCapturedEffect.nextEffect=k,b.lastCapturedEffect=k));k=k.next}null===g&&(b.lastUpdate=null);null===r?b.lastCapturedUpdate=null:a.effectTag|=32;null===g&&null===r&&(f=n);b.baseState=f;b.firstUpdate=g;b.firstCapturedUpdate=r;b.expirationTime=h;a.memoizedState=n}}\nfunction Wf(a,b){\"function\"!==typeof a?A(\"191\",a):void 0;a.call(b)}\nfunction Xf(a,b,c){null!==b.firstCapturedUpdate&&(null!==b.lastUpdate&&(b.lastUpdate.next=b.firstCapturedUpdate,b.lastUpdate=b.lastCapturedUpdate),b.firstCapturedUpdate=b.lastCapturedUpdate=null);a=b.firstEffect;for(b.firstEffect=b.lastEffect=null;null!==a;){var d=a.callback;null!==d&&(a.callback=null,Wf(d,c));a=a.nextEffect}a=b.firstCapturedEffect;for(b.firstCapturedEffect=b.lastCapturedEffect=null;null!==a;)b=a.callback,null!==b&&(a.callback=null,Wf(b,c)),a=a.nextEffect}\nfunction Yf(a,b){return{value:a,source:b,stack:vc(b)}}var Zf=nf(null),$f=nf(null),ag=nf(0);function bg(a){var b=a.type._context;N(ag,b._changedBits,a);N($f,b._currentValue,a);N(Zf,a,a);b._currentValue=a.pendingProps.value;b._changedBits=a.stateNode}function cg(a){var b=ag.current,c=$f.current;M(Zf,a);M($f,a);M(ag,a);a=a.type._context;a._currentValue=c;a._changedBits=b}var dg={},eg=nf(dg),fg=nf(dg),gg=nf(dg);function hg(a){a===dg?A(\"174\"):void 0;return a}\nfunction jg(a,b){N(gg,b,a);N(fg,a,a);N(eg,dg,a);var c=b.nodeType;switch(c){case 9:case 11:b=(b=b.documentElement)?b.namespaceURI:Ie(null,\"\");break;default:c=8===c?b.parentNode:b,b=c.namespaceURI||null,c=c.tagName,b=Ie(b,c)}M(eg,a);N(eg,b,a)}function kg(a){M(eg,a);M(fg,a);M(gg,a)}function lg(a){fg.current===a&&(M(eg,a),M(fg,a))}function mg(a,b,c){var d=a.memoizedState;b=b(c,d);d=null===b||void 0===b?d:p({},d,b);a.memoizedState=d;a=a.updateQueue;null!==a&&0===a.expirationTime&&(a.baseState=d)}\nvar qg={isMounted:function(a){return(a=a._reactInternalFiber)?2===kd(a):!1},enqueueSetState:function(a,b,c){a=a._reactInternalFiber;var d=ng();d=og(d,a);var e=Pf(d);e.payload=b;void 0!==c&&null!==c&&(e.callback=c);Rf(a,e,d);pg(a,d)},enqueueReplaceState:function(a,b,c){a=a._reactInternalFiber;var d=ng();d=og(d,a);var e=Pf(d);e.tag=1;e.payload=b;void 0!==c&&null!==c&&(e.callback=c);Rf(a,e,d);pg(a,d)},enqueueForceUpdate:function(a,b){a=a._reactInternalFiber;var c=ng();c=og(c,a);var d=Pf(c);d.tag=2;void 0!==\nb&&null!==b&&(d.callback=b);Rf(a,d,c);pg(a,c)}};function rg(a,b,c,d,e,f){var g=a.stateNode;a=a.type;return\"function\"===typeof g.shouldComponentUpdate?g.shouldComponentUpdate(c,e,f):a.prototype&&a.prototype.isPureReactComponent?!ea(b,c)||!ea(d,e):!0}\nfunction sg(a,b,c,d){a=b.state;\"function\"===typeof b.componentWillReceiveProps&&b.componentWillReceiveProps(c,d);\"function\"===typeof b.UNSAFE_componentWillReceiveProps&&b.UNSAFE_componentWillReceiveProps(c,d);b.state!==a&&qg.enqueueReplaceState(b,b.state,null)}\nfunction tg(a,b){var c=a.type,d=a.stateNode,e=a.pendingProps,f=qf(a);d.props=e;d.state=a.memoizedState;d.refs=ha;d.context=sf(a,f);f=a.updateQueue;null!==f&&(Vf(a,f,e,d,b),d.state=a.memoizedState);f=a.type.getDerivedStateFromProps;\"function\"===typeof f&&(mg(a,f,e),d.state=a.memoizedState);\"function\"===typeof c.getDerivedStateFromProps||\"function\"===typeof d.getSnapshotBeforeUpdate||\"function\"!==typeof d.UNSAFE_componentWillMount&&\"function\"!==typeof d.componentWillMount||(c=d.state,\"function\"===typeof d.componentWillMount&&\nd.componentWillMount(),\"function\"===typeof d.UNSAFE_componentWillMount&&d.UNSAFE_componentWillMount(),c!==d.state&&qg.enqueueReplaceState(d,d.state,null),f=a.updateQueue,null!==f&&(Vf(a,f,e,d,b),d.state=a.memoizedState));\"function\"===typeof d.componentDidMount&&(a.effectTag|=4)}var ug=Array.isArray;\nfunction vg(a,b,c){a=c.ref;if(null!==a&&\"function\"!==typeof a&&\"object\"!==typeof a){if(c._owner){c=c._owner;var d=void 0;c&&(2!==c.tag?A(\"110\"):void 0,d=c.stateNode);d?void 0:A(\"147\",a);var e=\"\"+a;if(null!==b&&null!==b.ref&&\"function\"===typeof b.ref&&b.ref._stringRef===e)return b.ref;b=function(a){var b=d.refs===ha?d.refs={}:d.refs;null===a?delete b[e]:b[e]=a};b._stringRef=e;return b}\"string\"!==typeof a?A(\"148\"):void 0;c._owner?void 0:A(\"254\",a)}return a}\nfunction wg(a,b){\"textarea\"!==a.type&&A(\"31\",\"[object Object]\"===Object.prototype.toString.call(b)?\"object with keys {\"+Object.keys(b).join(\", \")+\"}\":b,\"\")}\nfunction xg(a){function b(b,c){if(a){var d=b.lastEffect;null!==d?(d.nextEffect=c,b.lastEffect=c):b.firstEffect=b.lastEffect=c;c.nextEffect=null;c.effectTag=8}}function c(c,d){if(!a)return null;for(;null!==d;)b(c,d),d=d.sibling;return null}function d(a,b){for(a=new Map;null!==b;)null!==b.key?a.set(b.key,b):a.set(b.index,b),b=b.sibling;return a}function e(a,b,c){a=Af(a,b,c);a.index=0;a.sibling=null;return a}function f(b,c,d){b.index=d;if(!a)return c;d=b.alternate;if(null!==d)return d=d.index,d<c?(b.effectTag=\n2,c):d;b.effectTag=2;return c}function g(b){a&&null===b.alternate&&(b.effectTag=2);return b}function h(a,b,c,d){if(null===b||6!==b.tag)return b=Df(c,a.mode,d),b.return=a,b;b=e(b,c,d);b.return=a;return b}function k(a,b,c,d){if(null!==b&&b.type===c.type)return d=e(b,c.props,d),d.ref=vg(a,b,c),d.return=a,d;d=Bf(c,a.mode,d);d.ref=vg(a,b,c);d.return=a;return d}function n(a,b,c,d){if(null===b||4!==b.tag||b.stateNode.containerInfo!==c.containerInfo||b.stateNode.implementation!==c.implementation)return b=\nEf(c,a.mode,d),b.return=a,b;b=e(b,c.children||[],d);b.return=a;return b}function r(a,b,c,d,f){if(null===b||10!==b.tag)return b=Cf(c,a.mode,d,f),b.return=a,b;b=e(b,c,d);b.return=a;return b}function w(a,b,c){if(\"string\"===typeof b||\"number\"===typeof b)return b=Df(\"\"+b,a.mode,c),b.return=a,b;if(\"object\"===typeof b&&null!==b){switch(b.$$typeof){case gc:return c=Bf(b,a.mode,c),c.ref=vg(a,null,b),c.return=a,c;case hc:return b=Ef(b,a.mode,c),b.return=a,b}if(ug(b)||tc(b))return b=Cf(b,a.mode,c,null),b.return=\na,b;wg(a,b)}return null}function P(a,b,c,d){var e=null!==b?b.key:null;if(\"string\"===typeof c||\"number\"===typeof c)return null!==e?null:h(a,b,\"\"+c,d);if(\"object\"===typeof c&&null!==c){switch(c.$$typeof){case gc:return c.key===e?c.type===ic?r(a,b,c.props.children,d,e):k(a,b,c,d):null;case hc:return c.key===e?n(a,b,c,d):null}if(ug(c)||tc(c))return null!==e?null:r(a,b,c,d,null);wg(a,c)}return null}function nc(a,b,c,d,e){if(\"string\"===typeof d||\"number\"===typeof d)return a=a.get(c)||null,h(b,a,\"\"+d,e);\nif(\"object\"===typeof d&&null!==d){switch(d.$$typeof){case gc:return a=a.get(null===d.key?c:d.key)||null,d.type===ic?r(b,a,d.props.children,e,d.key):k(b,a,d,e);case hc:return a=a.get(null===d.key?c:d.key)||null,n(b,a,d,e)}if(ug(d)||tc(d))return a=a.get(c)||null,r(b,a,d,e,null);wg(b,d)}return null}function Jd(e,g,h,k){for(var u=null,x=null,t=g,q=g=0,n=null;null!==t&&q<h.length;q++){t.index>q?(n=t,t=null):n=t.sibling;var l=P(e,t,h[q],k);if(null===l){null===t&&(t=n);break}a&&t&&null===l.alternate&&b(e,\nt);g=f(l,g,q);null===x?u=l:x.sibling=l;x=l;t=n}if(q===h.length)return c(e,t),u;if(null===t){for(;q<h.length;q++)if(t=w(e,h[q],k))g=f(t,g,q),null===x?u=t:x.sibling=t,x=t;return u}for(t=d(e,t);q<h.length;q++)if(n=nc(t,e,q,h[q],k))a&&null!==n.alternate&&t.delete(null===n.key?q:n.key),g=f(n,g,q),null===x?u=n:x.sibling=n,x=n;a&&t.forEach(function(a){return b(e,a)});return u}function E(e,g,h,k){var u=tc(h);\"function\"!==typeof u?A(\"150\"):void 0;h=u.call(h);null==h?A(\"151\"):void 0;for(var t=u=null,n=g,x=\ng=0,y=null,l=h.next();null!==n&&!l.done;x++,l=h.next()){n.index>x?(y=n,n=null):y=n.sibling;var r=P(e,n,l.value,k);if(null===r){n||(n=y);break}a&&n&&null===r.alternate&&b(e,n);g=f(r,g,x);null===t?u=r:t.sibling=r;t=r;n=y}if(l.done)return c(e,n),u;if(null===n){for(;!l.done;x++,l=h.next())l=w(e,l.value,k),null!==l&&(g=f(l,g,x),null===t?u=l:t.sibling=l,t=l);return u}for(n=d(e,n);!l.done;x++,l=h.next())l=nc(n,e,x,l.value,k),null!==l&&(a&&null!==l.alternate&&n.delete(null===l.key?x:l.key),g=f(l,g,x),null===\nt?u=l:t.sibling=l,t=l);a&&n.forEach(function(a){return b(e,a)});return u}return function(a,d,f,h){var k=\"object\"===typeof f&&null!==f&&f.type===ic&&null===f.key;k&&(f=f.props.children);var n=\"object\"===typeof f&&null!==f;if(n)switch(f.$$typeof){case gc:a:{n=f.key;for(k=d;null!==k;){if(k.key===n)if(10===k.tag?f.type===ic:k.type===f.type){c(a,k.sibling);d=e(k,f.type===ic?f.props.children:f.props,h);d.ref=vg(a,k,f);d.return=a;a=d;break a}else{c(a,k);break}else b(a,k);k=k.sibling}f.type===ic?(d=Cf(f.props.children,\na.mode,h,f.key),d.return=a,a=d):(h=Bf(f,a.mode,h),h.ref=vg(a,d,f),h.return=a,a=h)}return g(a);case hc:a:{for(k=f.key;null!==d;){if(d.key===k)if(4===d.tag&&d.stateNode.containerInfo===f.containerInfo&&d.stateNode.implementation===f.implementation){c(a,d.sibling);d=e(d,f.children||[],h);d.return=a;a=d;break a}else{c(a,d);break}else b(a,d);d=d.sibling}d=Ef(f,a.mode,h);d.return=a;a=d}return g(a)}if(\"string\"===typeof f||\"number\"===typeof f)return f=\"\"+f,null!==d&&6===d.tag?(c(a,d.sibling),d=e(d,f,h),d.return=\na,a=d):(c(a,d),d=Df(f,a.mode,h),d.return=a,a=d),g(a);if(ug(f))return Jd(a,d,f,h);if(tc(f))return E(a,d,f,h);n&&wg(a,f);if(\"undefined\"===typeof f&&!k)switch(a.tag){case 2:case 1:h=a.type,A(\"152\",h.displayName||h.name||\"Component\")}return c(a,d)}}var yg=xg(!0),zg=xg(!1),Ag=null,Bg=null,Cg=!1;function Dg(a,b){var c=new zf(5,null,null,0);c.type=\"DELETED\";c.stateNode=b;c.return=a;c.effectTag=8;null!==a.lastEffect?(a.lastEffect.nextEffect=c,a.lastEffect=c):a.firstEffect=a.lastEffect=c}\nfunction Eg(a,b){switch(a.tag){case 5:var c=a.type;b=1!==b.nodeType||c.toLowerCase()!==b.nodeName.toLowerCase()?null:b;return null!==b?(a.stateNode=b,!0):!1;case 6:return b=\"\"===a.pendingProps||3!==b.nodeType?null:b,null!==b?(a.stateNode=b,!0):!1;default:return!1}}function Fg(a){if(Cg){var b=Bg;if(b){var c=b;if(!Eg(a,b)){b=jf(c);if(!b||!Eg(a,b)){a.effectTag|=2;Cg=!1;Ag=a;return}Dg(Ag,c)}Ag=a;Bg=kf(b)}else a.effectTag|=2,Cg=!1,Ag=a}}\nfunction Gg(a){for(a=a.return;null!==a&&5!==a.tag&&3!==a.tag;)a=a.return;Ag=a}function Hg(a){if(a!==Ag)return!1;if(!Cg)return Gg(a),Cg=!0,!1;var b=a.type;if(5!==a.tag||\"head\"!==b&&\"body\"!==b&&!ef(b,a.memoizedProps))for(b=Bg;b;)Dg(a,b),b=jf(b);Gg(a);Bg=Ag?jf(a.stateNode):null;return!0}function Ig(){Bg=Ag=null;Cg=!1}function Q(a,b,c){Jg(a,b,c,b.expirationTime)}function Jg(a,b,c,d){b.child=null===a?zg(b,null,c,d):yg(b,a.child,c,d)}\nfunction Kg(a,b){var c=b.ref;if(null===a&&null!==c||null!==a&&a.ref!==c)b.effectTag|=128}function Lg(a,b,c,d,e){Kg(a,b);var f=0!==(b.effectTag&64);if(!c&&!f)return d&&yf(b,!1),R(a,b);c=b.stateNode;ec.current=b;var g=f?null:c.render();b.effectTag|=1;f&&(Jg(a,b,null,e),b.child=null);Jg(a,b,g,e);b.memoizedState=c.state;b.memoizedProps=c.props;d&&yf(b,!0);return b.child}\nfunction Mg(a){var b=a.stateNode;b.pendingContext?vf(a,b.pendingContext,b.pendingContext!==b.context):b.context&&vf(a,b.context,!1);jg(a,b.containerInfo)}\nfunction Ng(a,b,c,d){var e=a.child;null!==e&&(e.return=a);for(;null!==e;){switch(e.tag){case 12:var f=e.stateNode|0;if(e.type===b&&0!==(f&c)){for(f=e;null!==f;){var g=f.alternate;if(0===f.expirationTime||f.expirationTime>d)f.expirationTime=d,null!==g&&(0===g.expirationTime||g.expirationTime>d)&&(g.expirationTime=d);else if(null!==g&&(0===g.expirationTime||g.expirationTime>d))g.expirationTime=d;else break;f=f.return}f=null}else f=e.child;break;case 13:f=e.type===a.type?null:e.child;break;default:f=\ne.child}if(null!==f)f.return=e;else for(f=e;null!==f;){if(f===a){f=null;break}e=f.sibling;if(null!==e){e.return=f.return;f=e;break}f=f.return}e=f}}\nfunction Rg(a,b,c){var d=b.type._context,e=b.pendingProps,f=b.memoizedProps,g=!0;if(O.current)g=!1;else if(f===e)return b.stateNode=0,bg(b),R(a,b);var h=e.value;b.memoizedProps=e;if(null===f)h=1073741823;else if(f.value===e.value){if(f.children===e.children&&g)return b.stateNode=0,bg(b),R(a,b);h=0}else{var k=f.value;if(k===h&&(0!==k||1/k===1/h)||k!==k&&h!==h){if(f.children===e.children&&g)return b.stateNode=0,bg(b),R(a,b);h=0}else if(h=\"function\"===typeof d._calculateChangedBits?d._calculateChangedBits(k,\nh):1073741823,h|=0,0===h){if(f.children===e.children&&g)return b.stateNode=0,bg(b),R(a,b)}else Ng(b,d,h,c)}b.stateNode=h;bg(b);Q(a,b,e.children);return b.child}function R(a,b){null!==a&&b.child!==a.child?A(\"153\"):void 0;if(null!==b.child){a=b.child;var c=Af(a,a.pendingProps,a.expirationTime);b.child=c;for(c.return=b;null!==a.sibling;)a=a.sibling,c=c.sibling=Af(a,a.pendingProps,a.expirationTime),c.return=b;c.sibling=null}return b.child}\nfunction Sg(a,b,c){if(0===b.expirationTime||b.expirationTime>c){switch(b.tag){case 3:Mg(b);break;case 2:xf(b);break;case 4:jg(b,b.stateNode.containerInfo);break;case 13:bg(b)}return null}switch(b.tag){case 0:null!==a?A(\"155\"):void 0;var d=b.type,e=b.pendingProps,f=qf(b);f=sf(b,f);d=d(e,f);b.effectTag|=1;\"object\"===typeof d&&null!==d&&\"function\"===typeof d.render&&void 0===d.$$typeof?(f=b.type,b.tag=2,b.memoizedState=null!==d.state&&void 0!==d.state?d.state:null,f=f.getDerivedStateFromProps,\"function\"===\ntypeof f&&mg(b,f,e),e=xf(b),d.updater=qg,b.stateNode=d,d._reactInternalFiber=b,tg(b,c),a=Lg(a,b,!0,e,c)):(b.tag=1,Q(a,b,d),b.memoizedProps=e,a=b.child);return a;case 1:return e=b.type,c=b.pendingProps,O.current||b.memoizedProps!==c?(d=qf(b),d=sf(b,d),e=e(c,d),b.effectTag|=1,Q(a,b,e),b.memoizedProps=c,a=b.child):a=R(a,b),a;case 2:e=xf(b);if(null===a)if(null===b.stateNode){var g=b.pendingProps,h=b.type;d=qf(b);var k=2===b.tag&&null!=b.type.contextTypes;f=k?sf(b,d):ha;g=new h(g,f);b.memoizedState=null!==\ng.state&&void 0!==g.state?g.state:null;g.updater=qg;b.stateNode=g;g._reactInternalFiber=b;k&&(k=b.stateNode,k.__reactInternalMemoizedUnmaskedChildContext=d,k.__reactInternalMemoizedMaskedChildContext=f);tg(b,c);d=!0}else{h=b.type;d=b.stateNode;k=b.memoizedProps;f=b.pendingProps;d.props=k;var n=d.context;g=qf(b);g=sf(b,g);var r=h.getDerivedStateFromProps;(h=\"function\"===typeof r||\"function\"===typeof d.getSnapshotBeforeUpdate)||\"function\"!==typeof d.UNSAFE_componentWillReceiveProps&&\"function\"!==typeof d.componentWillReceiveProps||\n(k!==f||n!==g)&&sg(b,d,f,g);Mf=!1;var w=b.memoizedState;n=d.state=w;var P=b.updateQueue;null!==P&&(Vf(b,P,f,d,c),n=b.memoizedState);k!==f||w!==n||O.current||Mf?(\"function\"===typeof r&&(mg(b,r,f),n=b.memoizedState),(k=Mf||rg(b,k,f,w,n,g))?(h||\"function\"!==typeof d.UNSAFE_componentWillMount&&\"function\"!==typeof d.componentWillMount||(\"function\"===typeof d.componentWillMount&&d.componentWillMount(),\"function\"===typeof d.UNSAFE_componentWillMount&&d.UNSAFE_componentWillMount()),\"function\"===typeof d.componentDidMount&&\n(b.effectTag|=4)):(\"function\"===typeof d.componentDidMount&&(b.effectTag|=4),b.memoizedProps=f,b.memoizedState=n),d.props=f,d.state=n,d.context=g,d=k):(\"function\"===typeof d.componentDidMount&&(b.effectTag|=4),d=!1)}else h=b.type,d=b.stateNode,f=b.memoizedProps,k=b.pendingProps,d.props=f,n=d.context,g=qf(b),g=sf(b,g),r=h.getDerivedStateFromProps,(h=\"function\"===typeof r||\"function\"===typeof d.getSnapshotBeforeUpdate)||\"function\"!==typeof d.UNSAFE_componentWillReceiveProps&&\"function\"!==typeof d.componentWillReceiveProps||\n(f!==k||n!==g)&&sg(b,d,k,g),Mf=!1,n=b.memoizedState,w=d.state=n,P=b.updateQueue,null!==P&&(Vf(b,P,k,d,c),w=b.memoizedState),f!==k||n!==w||O.current||Mf?(\"function\"===typeof r&&(mg(b,r,k),w=b.memoizedState),(r=Mf||rg(b,f,k,n,w,g))?(h||\"function\"!==typeof d.UNSAFE_componentWillUpdate&&\"function\"!==typeof d.componentWillUpdate||(\"function\"===typeof d.componentWillUpdate&&d.componentWillUpdate(k,w,g),\"function\"===typeof d.UNSAFE_componentWillUpdate&&d.UNSAFE_componentWillUpdate(k,w,g)),\"function\"===typeof d.componentDidUpdate&&\n(b.effectTag|=4),\"function\"===typeof d.getSnapshotBeforeUpdate&&(b.effectTag|=256)):(\"function\"!==typeof d.componentDidUpdate||f===a.memoizedProps&&n===a.memoizedState||(b.effectTag|=4),\"function\"!==typeof d.getSnapshotBeforeUpdate||f===a.memoizedProps&&n===a.memoizedState||(b.effectTag|=256),b.memoizedProps=k,b.memoizedState=w),d.props=k,d.state=w,d.context=g,d=r):(\"function\"!==typeof d.componentDidUpdate||f===a.memoizedProps&&n===a.memoizedState||(b.effectTag|=4),\"function\"!==typeof d.getSnapshotBeforeUpdate||\nf===a.memoizedProps&&n===a.memoizedState||(b.effectTag|=256),d=!1);return Lg(a,b,d,e,c);case 3:Mg(b);e=b.updateQueue;if(null!==e)if(d=b.memoizedState,d=null!==d?d.element:null,Vf(b,e,b.pendingProps,null,c),e=b.memoizedState.element,e===d)Ig(),a=R(a,b);else{d=b.stateNode;if(d=(null===a||null===a.child)&&d.hydrate)Bg=kf(b.stateNode.containerInfo),Ag=b,d=Cg=!0;d?(b.effectTag|=2,b.child=zg(b,null,e,c)):(Ig(),Q(a,b,e));a=b.child}else Ig(),a=R(a,b);return a;case 5:a:{hg(gg.current);e=hg(eg.current);d=Ie(e,\nb.type);e!==d&&(N(fg,b,b),N(eg,d,b));null===a&&Fg(b);e=b.type;k=b.memoizedProps;d=b.pendingProps;f=null!==a?a.memoizedProps:null;if(!O.current&&k===d){if(k=b.mode&1&&!!d.hidden)b.expirationTime=1073741823;if(!k||1073741823!==c){a=R(a,b);break a}}k=d.children;ef(e,d)?k=null:f&&ef(e,f)&&(b.effectTag|=16);Kg(a,b);1073741823!==c&&b.mode&1&&d.hidden?(b.expirationTime=1073741823,b.memoizedProps=d,a=null):(Q(a,b,k),b.memoizedProps=d,a=b.child)}return a;case 6:return null===a&&Fg(b),b.memoizedProps=b.pendingProps,\nnull;case 16:return null;case 4:return jg(b,b.stateNode.containerInfo),e=b.pendingProps,O.current||b.memoizedProps!==e?(null===a?b.child=yg(b,null,e,c):Q(a,b,e),b.memoizedProps=e,a=b.child):a=R(a,b),a;case 14:return e=b.type.render,c=b.pendingProps,d=b.ref,O.current||b.memoizedProps!==c||d!==(null!==a?a.ref:null)?(e=e(c,d),Q(a,b,e),b.memoizedProps=c,a=b.child):a=R(a,b),a;case 10:return c=b.pendingProps,O.current||b.memoizedProps!==c?(Q(a,b,c),b.memoizedProps=c,a=b.child):a=R(a,b),a;case 11:return c=\nb.pendingProps.children,O.current||null!==c&&b.memoizedProps!==c?(Q(a,b,c),b.memoizedProps=c,a=b.child):a=R(a,b),a;case 15:return c=b.pendingProps,b.memoizedProps===c?a=R(a,b):(Q(a,b,c.children),b.memoizedProps=c,a=b.child),a;case 13:return Rg(a,b,c);case 12:a:if(d=b.type,f=b.pendingProps,k=b.memoizedProps,e=d._currentValue,g=d._changedBits,O.current||0!==g||k!==f){b.memoizedProps=f;h=f.unstable_observedBits;if(void 0===h||null===h)h=1073741823;b.stateNode=h;if(0!==(g&h))Ng(b,d,g,c);else if(k===f){a=\nR(a,b);break a}c=f.children;c=c(e);b.effectTag|=1;Q(a,b,c);a=b.child}else a=R(a,b);return a;default:A(\"156\")}}function Tg(a){a.effectTag|=4}var Ug=void 0,Vg=void 0,Wg=void 0;Ug=function(){};Vg=function(a,b,c){(b.updateQueue=c)&&Tg(b)};Wg=function(a,b,c,d){c!==d&&Tg(b)};\nfunction Xg(a,b){var c=b.pendingProps;switch(b.tag){case 1:return null;case 2:return tf(b),null;case 3:kg(b);uf(b);var d=b.stateNode;d.pendingContext&&(d.context=d.pendingContext,d.pendingContext=null);if(null===a||null===a.child)Hg(b),b.effectTag&=-3;Ug(b);return null;case 5:lg(b);d=hg(gg.current);var e=b.type;if(null!==a&&null!=b.stateNode){var f=a.memoizedProps,g=b.stateNode,h=hg(eg.current);g=Xe(g,e,f,c,d);Vg(a,b,g,e,f,c,d,h);a.ref!==b.ref&&(b.effectTag|=128)}else{if(!c)return null===b.stateNode?\nA(\"166\"):void 0,null;a=hg(eg.current);if(Hg(b))c=b.stateNode,e=b.type,f=b.memoizedProps,c[C]=b,c[Ma]=f,d=Ze(c,e,f,a,d),b.updateQueue=d,null!==d&&Tg(b);else{a=Ue(e,c,d,a);a[C]=b;a[Ma]=c;a:for(f=b.child;null!==f;){if(5===f.tag||6===f.tag)a.appendChild(f.stateNode);else if(4!==f.tag&&null!==f.child){f.child.return=f;f=f.child;continue}if(f===b)break;for(;null===f.sibling;){if(null===f.return||f.return===b)break a;f=f.return}f.sibling.return=f.return;f=f.sibling}We(a,e,c,d);df(e,c)&&Tg(b);b.stateNode=\na}null!==b.ref&&(b.effectTag|=128)}return null;case 6:if(a&&null!=b.stateNode)Wg(a,b,a.memoizedProps,c);else{if(\"string\"!==typeof c)return null===b.stateNode?A(\"166\"):void 0,null;d=hg(gg.current);hg(eg.current);Hg(b)?(d=b.stateNode,c=b.memoizedProps,d[C]=b,$e(d,c)&&Tg(b)):(d=Ve(c,d),d[C]=b,b.stateNode=d)}return null;case 14:return null;case 16:return null;case 10:return null;case 11:return null;case 15:return null;case 4:return kg(b),Ug(b),null;case 13:return cg(b),null;case 12:return null;case 0:A(\"167\");\ndefault:A(\"156\")}}function Yg(a,b){var c=b.source;null===b.stack&&null!==c&&vc(c);null!==c&&uc(c);b=b.value;null!==a&&2===a.tag&&uc(a);try{b&&b.suppressReactErrorLogging||console.error(b)}catch(d){d&&d.suppressReactErrorLogging||console.error(d)}}function Zg(a){var b=a.ref;if(null!==b)if(\"function\"===typeof b)try{b(null)}catch(c){$g(a,c)}else b.current=null}\nfunction ah(a){\"function\"===typeof Lf&&Lf(a);switch(a.tag){case 2:Zg(a);var b=a.stateNode;if(\"function\"===typeof b.componentWillUnmount)try{b.props=a.memoizedProps,b.state=a.memoizedState,b.componentWillUnmount()}catch(c){$g(a,c)}break;case 5:Zg(a);break;case 4:bh(a)}}function ch(a){return 5===a.tag||3===a.tag||4===a.tag}\nfunction dh(a){a:{for(var b=a.return;null!==b;){if(ch(b)){var c=b;break a}b=b.return}A(\"160\");c=void 0}var d=b=void 0;switch(c.tag){case 5:b=c.stateNode;d=!1;break;case 3:b=c.stateNode.containerInfo;d=!0;break;case 4:b=c.stateNode.containerInfo;d=!0;break;default:A(\"161\")}c.effectTag&16&&(Le(b,\"\"),c.effectTag&=-17);a:b:for(c=a;;){for(;null===c.sibling;){if(null===c.return||ch(c.return)){c=null;break a}c=c.return}c.sibling.return=c.return;for(c=c.sibling;5!==c.tag&&6!==c.tag;){if(c.effectTag&2)continue b;\nif(null===c.child||4===c.tag)continue b;else c.child.return=c,c=c.child}if(!(c.effectTag&2)){c=c.stateNode;break a}}for(var e=a;;){if(5===e.tag||6===e.tag)if(c)if(d){var f=b,g=e.stateNode,h=c;8===f.nodeType?f.parentNode.insertBefore(g,h):f.insertBefore(g,h)}else b.insertBefore(e.stateNode,c);else d?(f=b,g=e.stateNode,8===f.nodeType?f.parentNode.insertBefore(g,f):f.appendChild(g)):b.appendChild(e.stateNode);else if(4!==e.tag&&null!==e.child){e.child.return=e;e=e.child;continue}if(e===a)break;for(;null===\ne.sibling;){if(null===e.return||e.return===a)return;e=e.return}e.sibling.return=e.return;e=e.sibling}}\nfunction bh(a){for(var b=a,c=!1,d=void 0,e=void 0;;){if(!c){c=b.return;a:for(;;){null===c?A(\"160\"):void 0;switch(c.tag){case 5:d=c.stateNode;e=!1;break a;case 3:d=c.stateNode.containerInfo;e=!0;break a;case 4:d=c.stateNode.containerInfo;e=!0;break a}c=c.return}c=!0}if(5===b.tag||6===b.tag){a:for(var f=b,g=f;;)if(ah(g),null!==g.child&&4!==g.tag)g.child.return=g,g=g.child;else{if(g===f)break;for(;null===g.sibling;){if(null===g.return||g.return===f)break a;g=g.return}g.sibling.return=g.return;g=g.sibling}e?\n(f=d,g=b.stateNode,8===f.nodeType?f.parentNode.removeChild(g):f.removeChild(g)):d.removeChild(b.stateNode)}else if(4===b.tag?d=b.stateNode.containerInfo:ah(b),null!==b.child){b.child.return=b;b=b.child;continue}if(b===a)break;for(;null===b.sibling;){if(null===b.return||b.return===a)return;b=b.return;4===b.tag&&(c=!1)}b.sibling.return=b.return;b=b.sibling}}\nfunction eh(a,b){switch(b.tag){case 2:break;case 5:var c=b.stateNode;if(null!=c){var d=b.memoizedProps;a=null!==a?a.memoizedProps:d;var e=b.type,f=b.updateQueue;b.updateQueue=null;null!==f&&(c[Ma]=d,Ye(c,f,e,a,d))}break;case 6:null===b.stateNode?A(\"162\"):void 0;b.stateNode.nodeValue=b.memoizedProps;break;case 3:break;case 15:break;case 16:break;default:A(\"163\")}}function fh(a,b,c){c=Pf(c);c.tag=3;c.payload={element:null};var d=b.value;c.callback=function(){gh(d);Yg(a,b)};return c}\nfunction hh(a,b,c){c=Pf(c);c.tag=3;var d=a.stateNode;null!==d&&\"function\"===typeof d.componentDidCatch&&(c.callback=function(){null===ih?ih=new Set([this]):ih.add(this);var c=b.value,d=b.stack;Yg(a,b);this.componentDidCatch(c,{componentStack:null!==d?d:\"\"})});return c}\nfunction jh(a,b,c,d,e,f){c.effectTag|=512;c.firstEffect=c.lastEffect=null;d=Yf(d,c);a=b;do{switch(a.tag){case 3:a.effectTag|=1024;d=fh(a,d,f);Sf(a,d,f);return;case 2:if(b=d,c=a.stateNode,0===(a.effectTag&64)&&null!==c&&\"function\"===typeof c.componentDidCatch&&(null===ih||!ih.has(c))){a.effectTag|=1024;d=hh(a,b,f);Sf(a,d,f);return}}a=a.return}while(null!==a)}\nfunction kh(a){switch(a.tag){case 2:tf(a);var b=a.effectTag;return b&1024?(a.effectTag=b&-1025|64,a):null;case 3:return kg(a),uf(a),b=a.effectTag,b&1024?(a.effectTag=b&-1025|64,a):null;case 5:return lg(a),null;case 16:return b=a.effectTag,b&1024?(a.effectTag=b&-1025|64,a):null;case 4:return kg(a),null;case 13:return cg(a),null;default:return null}}var lh=ff(),mh=2,nh=lh,oh=0,ph=0,qh=!1,S=null,rh=null,T=0,sh=-1,th=!1,U=null,uh=!1,vh=!1,ih=null;\nfunction wh(){if(null!==S)for(var a=S.return;null!==a;){var b=a;switch(b.tag){case 2:tf(b);break;case 3:kg(b);uf(b);break;case 5:lg(b);break;case 4:kg(b);break;case 13:cg(b)}a=a.return}rh=null;T=0;sh=-1;th=!1;S=null;vh=!1}\nfunction xh(a){for(;;){var b=a.alternate,c=a.return,d=a.sibling;if(0===(a.effectTag&512)){b=Xg(b,a,T);var e=a;if(1073741823===T||1073741823!==e.expirationTime){var f=0;switch(e.tag){case 3:case 2:var g=e.updateQueue;null!==g&&(f=g.expirationTime)}for(g=e.child;null!==g;)0!==g.expirationTime&&(0===f||f>g.expirationTime)&&(f=g.expirationTime),g=g.sibling;e.expirationTime=f}if(null!==b)return b;null!==c&&0===(c.effectTag&512)&&(null===c.firstEffect&&(c.firstEffect=a.firstEffect),null!==a.lastEffect&&\n(null!==c.lastEffect&&(c.lastEffect.nextEffect=a.firstEffect),c.lastEffect=a.lastEffect),1<a.effectTag&&(null!==c.lastEffect?c.lastEffect.nextEffect=a:c.firstEffect=a,c.lastEffect=a));if(null!==d)return d;if(null!==c)a=c;else{vh=!0;break}}else{a=kh(a,th,T);if(null!==a)return a.effectTag&=511,a;null!==c&&(c.firstEffect=c.lastEffect=null,c.effectTag|=512);if(null!==d)return d;if(null!==c)a=c;else break}}return null}\nfunction yh(a){var b=Sg(a.alternate,a,T);null===b&&(b=xh(a));ec.current=null;return b}\nfunction zh(a,b,c){qh?A(\"243\"):void 0;qh=!0;if(b!==T||a!==rh||null===S)wh(),rh=a,T=b,sh=-1,S=Af(rh.current,null,T),a.pendingCommitExpirationTime=0;var d=!1;th=!c||T<=mh;do{try{if(c)for(;null!==S&&!Ah();)S=yh(S);else for(;null!==S;)S=yh(S)}catch(f){if(null===S)d=!0,gh(f);else{null===S?A(\"271\"):void 0;c=S;var e=c.return;if(null===e){d=!0;gh(f);break}jh(a,e,c,f,th,T,nh);S=xh(c)}}break}while(1);qh=!1;if(d)return null;if(null===S){if(vh)return a.pendingCommitExpirationTime=b,a.current.alternate;th?A(\"262\"):\nvoid 0;0<=sh&&setTimeout(function(){var b=a.current.expirationTime;0!==b&&(0===a.remainingExpirationTime||a.remainingExpirationTime<b)&&Bh(a,b)},sh);Ch(a.current.expirationTime)}return null}\nfunction $g(a,b){var c;a:{qh&&!uh?A(\"263\"):void 0;for(c=a.return;null!==c;){switch(c.tag){case 2:var d=c.stateNode;if(\"function\"===typeof c.type.getDerivedStateFromCatch||\"function\"===typeof d.componentDidCatch&&(null===ih||!ih.has(d))){a=Yf(b,a);a=hh(c,a,1);Rf(c,a,1);pg(c,1);c=void 0;break a}break;case 3:a=Yf(b,a);a=fh(c,a,1);Rf(c,a,1);pg(c,1);c=void 0;break a}c=c.return}3===a.tag&&(c=Yf(b,a),c=fh(a,c,1),Rf(a,c,1),pg(a,1));c=void 0}return c}\nfunction Dh(){var a=2+25*(((ng()-2+500)/25|0)+1);a<=oh&&(a=oh+1);return oh=a}function og(a,b){a=0!==ph?ph:qh?uh?1:T:b.mode&1?Eh?2+10*(((a-2+15)/10|0)+1):2+25*(((a-2+500)/25|0)+1):1;Eh&&(0===Fh||a>Fh)&&(Fh=a);return a}\nfunction pg(a,b){for(;null!==a;){if(0===a.expirationTime||a.expirationTime>b)a.expirationTime=b;null!==a.alternate&&(0===a.alternate.expirationTime||a.alternate.expirationTime>b)&&(a.alternate.expirationTime=b);if(null===a.return)if(3===a.tag){var c=a.stateNode;!qh&&0!==T&&b<T&&wh();var d=c.current.expirationTime;qh&&!uh&&rh===c||Bh(c,d);Gh>Hh&&A(\"185\")}else break;a=a.return}}function ng(){nh=ff()-lh;return mh=(nh/10|0)+2}\nfunction Ih(a){var b=ph;ph=2+25*(((ng()-2+500)/25|0)+1);try{return a()}finally{ph=b}}function Jh(a,b,c,d,e){var f=ph;ph=1;try{return a(b,c,d,e)}finally{ph=f}}var Kh=null,V=null,Lh=0,Mh=void 0,W=!1,X=null,Y=0,Fh=0,Nh=!1,Oh=!1,Ph=null,Qh=null,Z=!1,Rh=!1,Eh=!1,Sh=null,Hh=1E3,Gh=0,Th=1;function Uh(a){if(0!==Lh){if(a>Lh)return;null!==Mh&&hf(Mh)}var b=ff()-lh;Lh=a;Mh=gf(Vh,{timeout:10*(a-2)-b})}\nfunction Bh(a,b){if(null===a.nextScheduledRoot)a.remainingExpirationTime=b,null===V?(Kh=V=a,a.nextScheduledRoot=a):(V=V.nextScheduledRoot=a,V.nextScheduledRoot=Kh);else{var c=a.remainingExpirationTime;if(0===c||b<c)a.remainingExpirationTime=b}W||(Z?Rh&&(X=a,Y=1,Wh(a,1,!1)):1===b?Xh():Uh(b))}\nfunction Yh(){var a=0,b=null;if(null!==V)for(var c=V,d=Kh;null!==d;){var e=d.remainingExpirationTime;if(0===e){null===c||null===V?A(\"244\"):void 0;if(d===d.nextScheduledRoot){Kh=V=d.nextScheduledRoot=null;break}else if(d===Kh)Kh=e=d.nextScheduledRoot,V.nextScheduledRoot=e,d.nextScheduledRoot=null;else if(d===V){V=c;V.nextScheduledRoot=Kh;d.nextScheduledRoot=null;break}else c.nextScheduledRoot=d.nextScheduledRoot,d.nextScheduledRoot=null;d=c.nextScheduledRoot}else{if(0===a||e<a)a=e,b=d;if(d===V)break;\nc=d;d=d.nextScheduledRoot}}c=X;null!==c&&c===b&&1===a?Gh++:Gh=0;X=b;Y=a}function Vh(a){Zh(0,!0,a)}function Xh(){Zh(1,!1,null)}function Zh(a,b,c){Qh=c;Yh();if(b)for(;null!==X&&0!==Y&&(0===a||a>=Y)&&(!Nh||ng()>=Y);)ng(),Wh(X,Y,!Nh),Yh();else for(;null!==X&&0!==Y&&(0===a||a>=Y);)Wh(X,Y,!1),Yh();null!==Qh&&(Lh=0,Mh=null);0!==Y&&Uh(Y);Qh=null;Nh=!1;$h()}function ai(a,b){W?A(\"253\"):void 0;X=a;Y=b;Wh(a,b,!1);Xh();$h()}\nfunction $h(){Gh=0;if(null!==Sh){var a=Sh;Sh=null;for(var b=0;b<a.length;b++){var c=a[b];try{c._onComplete()}catch(d){Oh||(Oh=!0,Ph=d)}}}if(Oh)throw a=Ph,Ph=null,Oh=!1,a;}function Wh(a,b,c){W?A(\"245\"):void 0;W=!0;c?(c=a.finishedWork,null!==c?bi(a,c,b):(c=zh(a,b,!0),null!==c&&(Ah()?a.finishedWork=c:bi(a,c,b)))):(c=a.finishedWork,null!==c?bi(a,c,b):(c=zh(a,b,!1),null!==c&&bi(a,c,b)));W=!1}\nfunction bi(a,b,c){var d=a.firstBatch;if(null!==d&&d._expirationTime<=c&&(null===Sh?Sh=[d]:Sh.push(d),d._defer)){a.finishedWork=b;a.remainingExpirationTime=0;return}a.finishedWork=null;uh=qh=!0;c=b.stateNode;c.current===b?A(\"177\"):void 0;d=c.pendingCommitExpirationTime;0===d?A(\"261\"):void 0;c.pendingCommitExpirationTime=0;ng();ec.current=null;if(1<b.effectTag)if(null!==b.lastEffect){b.lastEffect.nextEffect=b;var e=b.firstEffect}else e=b;else e=b.firstEffect;bf=Id;var f=da();if(Vd(f)){if(\"selectionStart\"in\nf)var g={start:f.selectionStart,end:f.selectionEnd};else a:{var h=window.getSelection&&window.getSelection();if(h&&0!==h.rangeCount){g=h.anchorNode;var k=h.anchorOffset,n=h.focusNode;h=h.focusOffset;try{g.nodeType,n.nodeType}catch(Wa){g=null;break a}var r=0,w=-1,P=-1,nc=0,Jd=0,E=f,t=null;b:for(;;){for(var x;;){E!==g||0!==k&&3!==E.nodeType||(w=r+k);E!==n||0!==h&&3!==E.nodeType||(P=r+h);3===E.nodeType&&(r+=E.nodeValue.length);if(null===(x=E.firstChild))break;t=E;E=x}for(;;){if(E===f)break b;t===g&&\n++nc===k&&(w=r);t===n&&++Jd===h&&(P=r);if(null!==(x=E.nextSibling))break;E=t;t=E.parentNode}E=x}g=-1===w||-1===P?null:{start:w,end:P}}else g=null}g=g||{start:0,end:0}}else g=null;cf={focusedElem:f,selectionRange:g};Kd(!1);for(U=e;null!==U;){f=!1;g=void 0;try{for(;null!==U;){if(U.effectTag&256){var u=U.alternate;k=U;switch(k.tag){case 2:if(k.effectTag&256&&null!==u){var y=u.memoizedProps,D=u.memoizedState,ja=k.stateNode;ja.props=k.memoizedProps;ja.state=k.memoizedState;var ni=ja.getSnapshotBeforeUpdate(y,\nD);ja.__reactInternalSnapshotBeforeUpdate=ni}break;case 3:case 5:case 6:case 4:break;default:A(\"163\")}}U=U.nextEffect}}catch(Wa){f=!0,g=Wa}f&&(null===U?A(\"178\"):void 0,$g(U,g),null!==U&&(U=U.nextEffect))}for(U=e;null!==U;){u=!1;y=void 0;try{for(;null!==U;){var q=U.effectTag;q&16&&Le(U.stateNode,\"\");if(q&128){var z=U.alternate;if(null!==z){var l=z.ref;null!==l&&(\"function\"===typeof l?l(null):l.current=null)}}switch(q&14){case 2:dh(U);U.effectTag&=-3;break;case 6:dh(U);U.effectTag&=-3;eh(U.alternate,\nU);break;case 4:eh(U.alternate,U);break;case 8:D=U,bh(D),D.return=null,D.child=null,D.alternate&&(D.alternate.child=null,D.alternate.return=null)}U=U.nextEffect}}catch(Wa){u=!0,y=Wa}u&&(null===U?A(\"178\"):void 0,$g(U,y),null!==U&&(U=U.nextEffect))}l=cf;z=da();q=l.focusedElem;u=l.selectionRange;if(z!==q&&fa(document.documentElement,q)){null!==u&&Vd(q)&&(z=u.start,l=u.end,void 0===l&&(l=z),\"selectionStart\"in q?(q.selectionStart=z,q.selectionEnd=Math.min(l,q.value.length)):window.getSelection&&(z=window.getSelection(),\ny=q[lb()].length,l=Math.min(u.start,y),u=void 0===u.end?l:Math.min(u.end,y),!z.extend&&l>u&&(y=u,u=l,l=y),y=Ud(q,l),D=Ud(q,u),y&&D&&(1!==z.rangeCount||z.anchorNode!==y.node||z.anchorOffset!==y.offset||z.focusNode!==D.node||z.focusOffset!==D.offset)&&(ja=document.createRange(),ja.setStart(y.node,y.offset),z.removeAllRanges(),l>u?(z.addRange(ja),z.extend(D.node,D.offset)):(ja.setEnd(D.node,D.offset),z.addRange(ja)))));z=[];for(l=q;l=l.parentNode;)1===l.nodeType&&z.push({element:l,left:l.scrollLeft,\ntop:l.scrollTop});\"function\"===typeof q.focus&&q.focus();for(q=0;q<z.length;q++)l=z[q],l.element.scrollLeft=l.left,l.element.scrollTop=l.top}cf=null;Kd(bf);bf=null;c.current=b;for(U=e;null!==U;){e=!1;q=void 0;try{for(z=d;null!==U;){var ig=U.effectTag;if(ig&36){var oc=U.alternate;l=U;u=z;switch(l.tag){case 2:var ca=l.stateNode;if(l.effectTag&4)if(null===oc)ca.props=l.memoizedProps,ca.state=l.memoizedState,ca.componentDidMount();else{var xi=oc.memoizedProps,yi=oc.memoizedState;ca.props=l.memoizedProps;\nca.state=l.memoizedState;ca.componentDidUpdate(xi,yi,ca.__reactInternalSnapshotBeforeUpdate)}var Og=l.updateQueue;null!==Og&&(ca.props=l.memoizedProps,ca.state=l.memoizedState,Xf(l,Og,ca,u));break;case 3:var Pg=l.updateQueue;if(null!==Pg){y=null;if(null!==l.child)switch(l.child.tag){case 5:y=l.child.stateNode;break;case 2:y=l.child.stateNode}Xf(l,Pg,y,u)}break;case 5:var zi=l.stateNode;null===oc&&l.effectTag&4&&df(l.type,l.memoizedProps)&&zi.focus();break;case 6:break;case 4:break;case 15:break;case 16:break;\ndefault:A(\"163\")}}if(ig&128){l=void 0;var yc=U.ref;if(null!==yc){var Qg=U.stateNode;switch(U.tag){case 5:l=Qg;break;default:l=Qg}\"function\"===typeof yc?yc(l):yc.current=l}}var Ai=U.nextEffect;U.nextEffect=null;U=Ai}}catch(Wa){e=!0,q=Wa}e&&(null===U?A(\"178\"):void 0,$g(U,q),null!==U&&(U=U.nextEffect))}qh=uh=!1;\"function\"===typeof Kf&&Kf(b.stateNode);b=c.current.expirationTime;0===b&&(ih=null);a.remainingExpirationTime=b}function Ah(){return null===Qh||Qh.timeRemaining()>Th?!1:Nh=!0}\nfunction gh(a){null===X?A(\"246\"):void 0;X.remainingExpirationTime=0;Oh||(Oh=!0,Ph=a)}function Ch(a){null===X?A(\"246\"):void 0;X.remainingExpirationTime=a}function ci(a,b){var c=Z;Z=!0;try{return a(b)}finally{(Z=c)||W||Xh()}}function di(a,b){if(Z&&!Rh){Rh=!0;try{return a(b)}finally{Rh=!1}}return a(b)}function ei(a,b){W?A(\"187\"):void 0;var c=Z;Z=!0;try{return Jh(a,b)}finally{Z=c,Xh()}}\nfunction fi(a,b,c){if(Eh)return a(b,c);Z||W||0===Fh||(Zh(Fh,!1,null),Fh=0);var d=Eh,e=Z;Z=Eh=!0;try{return a(b,c)}finally{Eh=d,(Z=e)||W||Xh()}}function gi(a){var b=Z;Z=!0;try{Jh(a)}finally{(Z=b)||W||Zh(1,!1,null)}}\nfunction hi(a,b,c,d,e){var f=b.current;if(c){c=c._reactInternalFiber;var g;b:{2===kd(c)&&2===c.tag?void 0:A(\"170\");for(g=c;3!==g.tag;){if(rf(g)){g=g.stateNode.__reactInternalMemoizedMergedChildContext;break b}(g=g.return)?void 0:A(\"171\")}g=g.stateNode.context}c=rf(c)?wf(c,g):g}else c=ha;null===b.context?b.context=c:b.pendingContext=c;b=e;e=Pf(d);e.payload={element:a};b=void 0===b?null:b;null!==b&&(e.callback=b);Rf(f,e,d);pg(f,d);return d}\nfunction ii(a){var b=a._reactInternalFiber;void 0===b&&(\"function\"===typeof a.render?A(\"188\"):A(\"268\",Object.keys(a)));a=nd(b);return null===a?null:a.stateNode}function ji(a,b,c,d){var e=b.current,f=ng();e=og(f,e);return hi(a,b,c,e,d)}function ki(a){a=a.current;if(!a.child)return null;switch(a.child.tag){case 5:return a.child.stateNode;default:return a.child.stateNode}}\nfunction li(a){var b=a.findFiberByHostInstance;return Jf(p({},a,{findHostInstanceByFiber:function(a){a=nd(a);return null===a?null:a.stateNode},findFiberByHostInstance:function(a){return b?b(a):null}}))}\nvar mi={updateContainerAtExpirationTime:hi,createContainer:function(a,b,c){return Ff(a,b,c)},updateContainer:ji,flushRoot:ai,requestWork:Bh,computeUniqueAsyncExpiration:Dh,batchedUpdates:ci,unbatchedUpdates:di,deferredUpdates:Ih,syncUpdates:Jh,interactiveUpdates:fi,flushInteractiveUpdates:function(){W||0===Fh||(Zh(Fh,!1,null),Fh=0)},flushControlled:gi,flushSync:ei,getPublicRootInstance:ki,findHostInstance:ii,findHostInstanceWithNoPortals:function(a){a=od(a);return null===a?null:a.stateNode},injectIntoDevTools:li};\nfunction oi(a,b,c){var d=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:hc,key:null==d?null:\"\"+d,children:a,containerInfo:b,implementation:c}}Kb.injectFiberControlledHostComponent(af);function pi(a){this._expirationTime=Dh();this._root=a;this._callbacks=this._next=null;this._hasChildren=this._didComplete=!1;this._children=null;this._defer=!0}\npi.prototype.render=function(a){this._defer?void 0:A(\"250\");this._hasChildren=!0;this._children=a;var b=this._root._internalRoot,c=this._expirationTime,d=new qi;hi(a,b,null,c,d._onCommit);return d};pi.prototype.then=function(a){if(this._didComplete)a();else{var b=this._callbacks;null===b&&(b=this._callbacks=[]);b.push(a)}};\npi.prototype.commit=function(){var a=this._root._internalRoot,b=a.firstBatch;this._defer&&null!==b?void 0:A(\"251\");if(this._hasChildren){var c=this._expirationTime;if(b!==this){this._hasChildren&&(c=this._expirationTime=b._expirationTime,this.render(this._children));for(var d=null,e=b;e!==this;)d=e,e=e._next;null===d?A(\"251\"):void 0;d._next=e._next;this._next=b;a.firstBatch=this}this._defer=!1;ai(a,c);b=this._next;this._next=null;b=a.firstBatch=b;null!==b&&b._hasChildren&&b.render(b._children)}else this._next=\nnull,this._defer=!1};pi.prototype._onComplete=function(){if(!this._didComplete){this._didComplete=!0;var a=this._callbacks;if(null!==a)for(var b=0;b<a.length;b++)(0,a[b])()}};function qi(){this._callbacks=null;this._didCommit=!1;this._onCommit=this._onCommit.bind(this)}qi.prototype.then=function(a){if(this._didCommit)a();else{var b=this._callbacks;null===b&&(b=this._callbacks=[]);b.push(a)}};\nqi.prototype._onCommit=function(){if(!this._didCommit){this._didCommit=!0;var a=this._callbacks;if(null!==a)for(var b=0;b<a.length;b++){var c=a[b];\"function\"!==typeof c?A(\"191\",c):void 0;c()}}};function ri(a,b,c){this._internalRoot=Ff(a,b,c)}ri.prototype.render=function(a,b){var c=this._internalRoot,d=new qi;b=void 0===b?null:b;null!==b&&d.then(b);ji(a,c,null,d._onCommit);return d};\nri.prototype.unmount=function(a){var b=this._internalRoot,c=new qi;a=void 0===a?null:a;null!==a&&c.then(a);ji(null,b,null,c._onCommit);return c};ri.prototype.legacy_renderSubtreeIntoContainer=function(a,b,c){var d=this._internalRoot,e=new qi;c=void 0===c?null:c;null!==c&&e.then(c);ji(b,d,a,e._onCommit);return e};\nri.prototype.createBatch=function(){var a=new pi(this),b=a._expirationTime,c=this._internalRoot,d=c.firstBatch;if(null===d)c.firstBatch=a,a._next=null;else{for(c=null;null!==d&&d._expirationTime<=b;)c=d,d=d._next;a._next=d;null!==c&&(c._next=a)}return a};function si(a){return!(!a||1!==a.nodeType&&9!==a.nodeType&&11!==a.nodeType&&(8!==a.nodeType||\" react-mount-point-unstable \"!==a.nodeValue))}Sb=mi.batchedUpdates;Tb=mi.interactiveUpdates;Ub=mi.flushInteractiveUpdates;\nfunction ti(a,b){b||(b=a?9===a.nodeType?a.documentElement:a.firstChild:null,b=!(!b||1!==b.nodeType||!b.hasAttribute(\"data-reactroot\")));if(!b)for(var c;c=a.lastChild;)a.removeChild(c);return new ri(a,!1,b)}\nfunction ui(a,b,c,d,e){si(c)?void 0:A(\"200\");var f=c._reactRootContainer;if(f){if(\"function\"===typeof e){var g=e;e=function(){var a=ki(f._internalRoot);g.call(a)}}null!=a?f.legacy_renderSubtreeIntoContainer(a,b,e):f.render(b,e)}else{f=c._reactRootContainer=ti(c,d);if(\"function\"===typeof e){var h=e;e=function(){var a=ki(f._internalRoot);h.call(a)}}di(function(){null!=a?f.legacy_renderSubtreeIntoContainer(a,b,e):f.render(b,e)})}return ki(f._internalRoot)}\nfunction vi(a,b){var c=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;si(b)?void 0:A(\"200\");return oi(a,b,null,c)}\nvar wi={createPortal:vi,findDOMNode:function(a){return null==a?null:1===a.nodeType?a:ii(a)},hydrate:function(a,b,c){return ui(null,a,b,!0,c)},render:function(a,b,c){return ui(null,a,b,!1,c)},unstable_renderSubtreeIntoContainer:function(a,b,c,d){null==a||void 0===a._reactInternalFiber?A(\"38\"):void 0;return ui(a,b,c,!1,d)},unmountComponentAtNode:function(a){si(a)?void 0:A(\"40\");return a._reactRootContainer?(di(function(){ui(null,null,a,!1,function(){a._reactRootContainer=null})}),!0):!1},unstable_createPortal:function(){return vi.apply(void 0,\narguments)},unstable_batchedUpdates:ci,unstable_deferredUpdates:Ih,unstable_interactiveUpdates:fi,flushSync:ei,unstable_flushControlled:gi,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{EventPluginHub:Ka,EventPluginRegistry:va,EventPropagators:$a,ReactControlledComponent:Rb,ReactDOMComponentTree:Qa,ReactDOMEventListener:Od},unstable_createRoot:function(a,b){return new ri(a,!0,null!=b&&!0===b.hydrate)}};li({findFiberByHostInstance:Na,bundleType:0,version:\"16.4.2\",rendererPackageName:\"react-dom\"});\nvar Bi={default:wi},Ci=Bi&&wi||Bi;module.exports=Ci.default?Ci.default:Ci;\n"
},
{
"id": 83,
"identifier": "/Users/user/Projects/orchid/node_modules/fbjs/lib/ExecutionEnvironment.js",
"name": "./node_modules/fbjs/lib/ExecutionEnvironment.js",
"index": 10,
"index2": 7,
"size": 935,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/react-dom/cjs/react-dom.production.min.js",
"issuerId": 82,
"issuerName": "./node_modules/react-dom/cjs/react-dom.production.min.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 81,
"identifier": "/Users/user/Projects/orchid/node_modules/react-dom/index.js",
"name": "./node_modules/react-dom/index.js"
},
{
"id": 82,
"identifier": "/Users/user/Projects/orchid/node_modules/react-dom/cjs/react-dom.production.min.js",
"name": "./node_modules/react-dom/cjs/react-dom.production.min.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 82,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/react-dom/cjs/react-dom.production.min.js",
"module": "./node_modules/react-dom/cjs/react-dom.production.min.js",
"moduleName": "./node_modules/react-dom/cjs/react-dom.production.min.js",
"type": "cjs require",
"userRequest": "fbjs/lib/ExecutionEnvironment",
"loc": "13:72-112"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 3,
"source": "/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\n'use strict';\n\nvar canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);\n\n/**\n * Simple, lightweight module assisting with the detection and context of\n * Worker. Helps avoid circular dependencies and allows code to reason about\n * whether or not they are in a Worker, even if they never include the main\n * `ReactWorker` dependency.\n */\nvar ExecutionEnvironment = {\n\n canUseDOM: canUseDOM,\n\n canUseWorkers: typeof Worker !== 'undefined',\n\n canUseEventListeners: canUseDOM && !!(window.addEventListener || window.attachEvent),\n\n canUseViewport: canUseDOM && !!window.screen,\n\n isInWorker: !canUseDOM // For now, this is true - might change in the future.\n\n};\n\nmodule.exports = ExecutionEnvironment;"
},
{
"id": 84,
"identifier": "/Users/user/Projects/orchid/node_modules/fbjs/lib/getActiveElement.js",
"name": "./node_modules/fbjs/lib/getActiveElement.js",
"index": 11,
"index2": 8,
"size": 912,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/react-dom/cjs/react-dom.production.min.js",
"issuerId": 82,
"issuerName": "./node_modules/react-dom/cjs/react-dom.production.min.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 81,
"identifier": "/Users/user/Projects/orchid/node_modules/react-dom/index.js",
"name": "./node_modules/react-dom/index.js"
},
{
"id": 82,
"identifier": "/Users/user/Projects/orchid/node_modules/react-dom/cjs/react-dom.production.min.js",
"name": "./node_modules/react-dom/cjs/react-dom.production.min.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 82,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/react-dom/cjs/react-dom.production.min.js",
"module": "./node_modules/react-dom/cjs/react-dom.production.min.js",
"moduleName": "./node_modules/react-dom/cjs/react-dom.production.min.js",
"type": "cjs require",
"userRequest": "fbjs/lib/getActiveElement",
"loc": "13:179-215"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 3,
"source": "'use strict';\n\n/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @typechecks\n */\n\n/* eslint-disable fb-www/typeof-undefined */\n\n/**\n * Same as document.activeElement but wraps in a try-catch block. In IE it is\n * not safe to call document.activeElement if there is nothing focused.\n *\n * The activeElement will be null only if the document or document body is not\n * yet defined.\n *\n * @param {?DOMDocument} doc Defaults to current document.\n * @return {?DOMElement}\n */\nfunction getActiveElement(doc) /*?DOMElement*/{\n doc = doc || (typeof document !== 'undefined' ? document : undefined);\n if (typeof doc === 'undefined') {\n return null;\n }\n try {\n return doc.activeElement || doc.body;\n } catch (e) {\n return doc.body;\n }\n}\n\nmodule.exports = getActiveElement;"
},
{
"id": 85,
"identifier": "/Users/user/Projects/orchid/node_modules/fbjs/lib/shallowEqual.js",
"name": "./node_modules/fbjs/lib/shallowEqual.js",
"index": 12,
"index2": 9,
"size": 1616,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/react-dom/cjs/react-dom.production.min.js",
"issuerId": 82,
"issuerName": "./node_modules/react-dom/cjs/react-dom.production.min.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 81,
"identifier": "/Users/user/Projects/orchid/node_modules/react-dom/index.js",
"name": "./node_modules/react-dom/index.js"
},
{
"id": 82,
"identifier": "/Users/user/Projects/orchid/node_modules/react-dom/cjs/react-dom.production.min.js",
"name": "./node_modules/react-dom/cjs/react-dom.production.min.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 82,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/react-dom/cjs/react-dom.production.min.js",
"module": "./node_modules/react-dom/cjs/react-dom.production.min.js",
"moduleName": "./node_modules/react-dom/cjs/react-dom.production.min.js",
"type": "cjs require",
"userRequest": "fbjs/lib/shallowEqual",
"loc": "13:219-251"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 3,
"source": "/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @typechecks\n * \n */\n\n/*eslint-disable no-self-compare */\n\n'use strict';\n\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\n\n/**\n * inlined Object.is polyfill to avoid requiring consumers ship their own\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is\n */\nfunction is(x, y) {\n // SameValue algorithm\n if (x === y) {\n // Steps 1-5, 7-10\n // Steps 6.b-6.e: +0 != -0\n // Added the nonzero y check to make Flow happy, but it is redundant\n return x !== 0 || y !== 0 || 1 / x === 1 / y;\n } else {\n // Step 6.a: NaN == NaN\n return x !== x && y !== y;\n }\n}\n\n/**\n * Performs equality by iterating through keys on an object and returning false\n * when any key has values which are not strictly equal between the arguments.\n * Returns true when the values of all keys are strictly equal.\n */\nfunction shallowEqual(objA, objB) {\n if (is(objA, objB)) {\n return true;\n }\n\n if (typeof objA !== 'object' || objA === null || typeof objB !== 'object' || objB === null) {\n return false;\n }\n\n var keysA = Object.keys(objA);\n var keysB = Object.keys(objB);\n\n if (keysA.length !== keysB.length) {\n return false;\n }\n\n // Test for A's keys different from B.\n for (var i = 0; i < keysA.length; i++) {\n if (!hasOwnProperty.call(objB, keysA[i]) || !is(objA[keysA[i]], objB[keysA[i]])) {\n return false;\n }\n }\n\n return true;\n}\n\nmodule.exports = shallowEqual;"
},
{
"id": 86,
"identifier": "/Users/user/Projects/orchid/node_modules/fbjs/lib/containsNode.js",
"name": "./node_modules/fbjs/lib/containsNode.js",
"index": 13,
"index2": 12,
"size": 923,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/react-dom/cjs/react-dom.production.min.js",
"issuerId": 82,
"issuerName": "./node_modules/react-dom/cjs/react-dom.production.min.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 81,
"identifier": "/Users/user/Projects/orchid/node_modules/react-dom/index.js",
"name": "./node_modules/react-dom/index.js"
},
{
"id": 82,
"identifier": "/Users/user/Projects/orchid/node_modules/react-dom/cjs/react-dom.production.min.js",
"name": "./node_modules/react-dom/cjs/react-dom.production.min.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 82,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/react-dom/cjs/react-dom.production.min.js",
"module": "./node_modules/react-dom/cjs/react-dom.production.min.js",
"moduleName": "./node_modules/react-dom/cjs/react-dom.production.min.js",
"type": "cjs require",
"userRequest": "fbjs/lib/containsNode",
"loc": "13:255-287"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 3,
"source": "'use strict';\n\n/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n */\n\nvar isTextNode = require('./isTextNode');\n\n/*eslint-disable no-bitwise */\n\n/**\n * Checks if a given DOM node contains or is another DOM node.\n */\nfunction containsNode(outerNode, innerNode) {\n if (!outerNode || !innerNode) {\n return false;\n } else if (outerNode === innerNode) {\n return true;\n } else if (isTextNode(outerNode)) {\n return false;\n } else if (isTextNode(innerNode)) {\n return containsNode(outerNode, innerNode.parentNode);\n } else if ('contains' in outerNode) {\n return outerNode.contains(innerNode);\n } else if (outerNode.compareDocumentPosition) {\n return !!(outerNode.compareDocumentPosition(innerNode) & 16);\n } else {\n return false;\n }\n}\n\nmodule.exports = containsNode;"
},
{
"id": 87,
"identifier": "/Users/user/Projects/orchid/node_modules/fbjs/lib/isTextNode.js",
"name": "./node_modules/fbjs/lib/isTextNode.js",
"index": 14,
"index2": 11,
"size": 479,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/fbjs/lib/containsNode.js",
"issuerId": 86,
"issuerName": "./node_modules/fbjs/lib/containsNode.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 81,
"identifier": "/Users/user/Projects/orchid/node_modules/react-dom/index.js",
"name": "./node_modules/react-dom/index.js"
},
{
"id": 82,
"identifier": "/Users/user/Projects/orchid/node_modules/react-dom/cjs/react-dom.production.min.js",
"name": "./node_modules/react-dom/cjs/react-dom.production.min.js"
},
{
"id": 86,
"identifier": "/Users/user/Projects/orchid/node_modules/fbjs/lib/containsNode.js",
"name": "./node_modules/fbjs/lib/containsNode.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 86,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/fbjs/lib/containsNode.js",
"module": "./node_modules/fbjs/lib/containsNode.js",
"moduleName": "./node_modules/fbjs/lib/containsNode.js",
"type": "cjs require",
"userRequest": "./isTextNode",
"loc": "12:17-40"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 4,
"source": "'use strict';\n\n/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @typechecks\n */\n\nvar isNode = require('./isNode');\n\n/**\n * @param {*} object The object to check.\n * @return {boolean} Whether or not the object is a DOM text node.\n */\nfunction isTextNode(object) {\n return isNode(object) && object.nodeType == 3;\n}\n\nmodule.exports = isTextNode;"
},
{
"id": 88,
"identifier": "/Users/user/Projects/orchid/node_modules/fbjs/lib/isNode.js",
"name": "./node_modules/fbjs/lib/isNode.js",
"index": 15,
"index2": 10,
"size": 702,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/fbjs/lib/isTextNode.js",
"issuerId": 87,
"issuerName": "./node_modules/fbjs/lib/isTextNode.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 81,
"identifier": "/Users/user/Projects/orchid/node_modules/react-dom/index.js",
"name": "./node_modules/react-dom/index.js"
},
{
"id": 82,
"identifier": "/Users/user/Projects/orchid/node_modules/react-dom/cjs/react-dom.production.min.js",
"name": "./node_modules/react-dom/cjs/react-dom.production.min.js"
},
{
"id": 86,
"identifier": "/Users/user/Projects/orchid/node_modules/fbjs/lib/containsNode.js",
"name": "./node_modules/fbjs/lib/containsNode.js"
},
{
"id": 87,
"identifier": "/Users/user/Projects/orchid/node_modules/fbjs/lib/isTextNode.js",
"name": "./node_modules/fbjs/lib/isTextNode.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 87,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/fbjs/lib/isTextNode.js",
"module": "./node_modules/fbjs/lib/isTextNode.js",
"moduleName": "./node_modules/fbjs/lib/isTextNode.js",
"type": "cjs require",
"userRequest": "./isNode",
"loc": "12:13-32"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 5,
"source": "'use strict';\n\n/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @typechecks\n */\n\n/**\n * @param {*} object The object to check.\n * @return {boolean} Whether or not the object is a DOM node.\n */\nfunction isNode(object) {\n var doc = object ? object.ownerDocument || object : document;\n var defaultView = doc.defaultView || window;\n return !!(object && (typeof defaultView.Node === 'function' ? object instanceof defaultView.Node : typeof object === 'object' && typeof object.nodeType === 'number' && typeof object.nodeName === 'string'));\n}\n\nmodule.exports = isNode;"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx",
"index": 16,
"index2": 187,
"size": 4256,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"issuerId": 79,
"issuerName": "./src/index.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 79,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"module": "./src/index.js",
"moduleName": "./src/index.js",
"type": "cjs require",
"userRequest": "$containers/App",
"loc": "16:11-37"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 1,
"source": "'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.App = undefined;\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = require('babel-runtime/helpers/inherits');\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _Editor = require('$modules/Editor');\n\nvar _modes = require('$constants/modes');\n\nrequire('$sprites/icons.svg');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n(function () {\n var enterModule = require('react-hot-loader').enterModule;\n\n enterModule && enterModule(module);\n})();\n\nvar App = exports.App = function (_React$Component) {\n (0, _inherits3.default)(App, _React$Component);\n\n function App() {\n var _ref;\n\n var _temp, _this, _ret;\n\n (0, _classCallCheck3.default)(this, App);\n\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return _ret = (_temp = (_this = (0, _possibleConstructorReturn3.default)(this, (_ref = App.__proto__ || Object.getPrototypeOf(App)).call.apply(_ref, [this].concat(args))), _this), _this.state = {\n mode: 'none'\n }, _this.setMode = function (mode) {\n _this.setState({ mode: mode });\n }, _this.startPolyMode = function () {\n return _this.editor.changeMode(_modes.MODES.POLY);\n }, _this.startStickerMode = function () {\n return _this.editor.changeMode(_modes.MODES.STICKERS);\n }, _this.startRouterMode = function () {\n return _this.editor.changeMode(_modes.MODES.ROUTER);\n }, _this.startShotterMode = function () {\n return _this.editor.changeMode(_modes.MODES.SHOTTER);\n }, _temp), (0, _possibleConstructorReturn3.default)(_this, _ret);\n }\n\n (0, _createClass3.default)(App, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n var container = 'map';\n var mode = this.state.mode;\n\n\n this.editor = new _Editor.Editor({\n container: container,\n mode: mode,\n setMode: this.setMode\n });\n }\n }, {\n key: 'render',\n value: function render() {\n var mode = this.state.mode;\n\n\n return _react2.default.createElement(\n 'div',\n null,\n _react2.default.createElement('div', { id: 'map' }),\n _react2.default.createElement(\n 'div',\n { id: 'control-screen' },\n _react2.default.createElement(\n 'button',\n { onClick: this.startPolyMode },\n mode === _modes.MODES.POLY && '-->',\n _modes.MODES.POLY\n ),\n _react2.default.createElement(\n 'button',\n { onClick: this.startStickerMode },\n mode === _modes.MODES.STICKERS && '-->',\n _modes.MODES.STICKERS\n ),\n _react2.default.createElement(\n 'button',\n { onClick: this.startRouterMode },\n mode === _modes.MODES.ROUTER && '-->',\n _modes.MODES.ROUTER\n ),\n _react2.default.createElement(\n 'button',\n { onClick: this.startShotterMode },\n mode === _modes.MODES.SHOTTER && '-->',\n _modes.MODES.SHOTTER\n )\n )\n );\n }\n }, {\n key: '__reactstandin__regenerateByEval',\n // @ts-ignore\n value: function __reactstandin__regenerateByEval(key, code) {\n // @ts-ignore\n this[key] = eval(code);\n }\n }]);\n return App;\n}(_react2.default.Component);\n\n;\n\n(function () {\n var reactHotLoader = require('react-hot-loader').default;\n\n var leaveModule = require('react-hot-loader').leaveModule;\n\n if (!reactHotLoader) {\n return;\n }\n\n reactHotLoader.register(App, 'App', '/Users/user/Projects/orchid/src/containers/App.jsx');\n leaveModule(module);\n})();\n\n;"
},
{
"id": 90,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/object/define-property.js",
"name": "./node_modules/core-js/library/fn/object/define-property.js",
"index": 20,
"index2": 33,
"size": 215,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/object/define-property.js",
"issuerId": 51,
"issuerName": "./node_modules/babel-runtime/core-js/object/define-property.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 7,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/createClass.js",
"name": "./node_modules/babel-runtime/helpers/createClass.js"
},
{
"id": 51,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/object/define-property.js",
"name": "./node_modules/babel-runtime/core-js/object/define-property.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 51,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/object/define-property.js",
"module": "./node_modules/babel-runtime/core-js/object/define-property.js",
"moduleName": "./node_modules/babel-runtime/core-js/object/define-property.js",
"type": "cjs require",
"userRequest": "core-js/library/fn/object/define-property",
"loc": "1:30-82"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 4,
"source": "require('../../modules/es6.object.define-property');\nvar $Object = require('../../modules/_core').Object;\nmodule.exports = function defineProperty(it, key, desc) {\n return $Object.defineProperty(it, key, desc);\n};\n"
},
{
"id": 91,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.object.define-property.js",
"name": "./node_modules/core-js/library/modules/es6.object.define-property.js",
"index": 21,
"index2": 32,
"size": 217,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/object/define-property.js",
"issuerId": 90,
"issuerName": "./node_modules/core-js/library/fn/object/define-property.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 7,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/createClass.js",
"name": "./node_modules/babel-runtime/helpers/createClass.js"
},
{
"id": 51,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/object/define-property.js",
"name": "./node_modules/babel-runtime/core-js/object/define-property.js"
},
{
"id": 90,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/object/define-property.js",
"name": "./node_modules/core-js/library/fn/object/define-property.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 90,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/object/define-property.js",
"module": "./node_modules/core-js/library/fn/object/define-property.js",
"moduleName": "./node_modules/core-js/library/fn/object/define-property.js",
"type": "cjs require",
"userRequest": "../../modules/es6.object.define-property",
"loc": "1:0-51"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 5,
"source": "var $export = require('./_export');\n// 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)\n$export($export.S + $export.F * !require('./_descriptors'), 'Object', { defineProperty: require('./_object-dp').f });\n"
},
{
"id": 92,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_a-function.js",
"name": "./node_modules/core-js/library/modules/_a-function.js",
"index": 26,
"index2": 18,
"size": 125,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_ctx.js",
"issuerId": 26,
"issuerName": "./node_modules/core-js/library/modules/_ctx.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 146,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"name": "./src/modules/Router.js"
},
{
"id": 152,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/toConsumableArray.js",
"name": "./node_modules/babel-runtime/helpers/toConsumableArray.js"
},
{
"id": 153,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/array/from.js",
"name": "./node_modules/babel-runtime/core-js/array/from.js"
},
{
"id": 154,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/array/from.js",
"name": "./node_modules/core-js/library/fn/array/from.js"
},
{
"id": 155,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.array.from.js",
"name": "./node_modules/core-js/library/modules/es6.array.from.js"
},
{
"id": 26,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_ctx.js",
"name": "./node_modules/core-js/library/modules/_ctx.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 26,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_ctx.js",
"module": "./node_modules/core-js/library/modules/_ctx.js",
"moduleName": "./node_modules/core-js/library/modules/_ctx.js",
"type": "cjs require",
"userRequest": "./_a-function",
"loc": "2:16-40"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 8,
"source": "module.exports = function (it) {\n if (typeof it != 'function') throw TypeError(it + ' is not a function!');\n return it;\n};\n"
},
{
"id": 93,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"name": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"index": 38,
"index2": 87,
"size": 542,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"issuerId": 89,
"issuerName": "./src/containers/App.jsx",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 89,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"module": "./src/containers/App.jsx",
"moduleName": "./src/containers/App.jsx",
"type": "cjs require",
"userRequest": "babel-runtime/helpers/possibleConstructorReturn",
"loc": "16:34-92"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 2,
"source": "\"use strict\";\n\nexports.__esModule = true;\n\nvar _typeof2 = require(\"../helpers/typeof\");\n\nvar _typeof3 = _interopRequireDefault(_typeof2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function (self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && ((typeof call === \"undefined\" ? \"undefined\" : (0, _typeof3.default)(call)) === \"object\" || typeof call === \"function\") ? call : self;\n};"
},
{
"id": 94,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol/iterator.js",
"name": "./node_modules/babel-runtime/core-js/symbol/iterator.js",
"index": 40,
"index2": 70,
"size": 96,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"issuerId": 54,
"issuerName": "./node_modules/babel-runtime/helpers/typeof.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 93,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"name": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"
},
{
"id": 54,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"name": "./node_modules/babel-runtime/helpers/typeof.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 54,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"module": "./node_modules/babel-runtime/helpers/typeof.js",
"moduleName": "./node_modules/babel-runtime/helpers/typeof.js",
"type": "cjs require",
"userRequest": "../core-js/symbol/iterator",
"loc": "5:16-53"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 4,
"source": "module.exports = { \"default\": require(\"core-js/library/fn/symbol/iterator\"), __esModule: true };"
},
{
"id": 95,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/iterator.js",
"name": "./node_modules/core-js/library/fn/symbol/iterator.js",
"index": 41,
"index2": 69,
"size": 155,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol/iterator.js",
"issuerId": 94,
"issuerName": "./node_modules/babel-runtime/core-js/symbol/iterator.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 93,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"name": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"
},
{
"id": 54,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"name": "./node_modules/babel-runtime/helpers/typeof.js"
},
{
"id": 94,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol/iterator.js",
"name": "./node_modules/babel-runtime/core-js/symbol/iterator.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 94,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol/iterator.js",
"module": "./node_modules/babel-runtime/core-js/symbol/iterator.js",
"moduleName": "./node_modules/babel-runtime/core-js/symbol/iterator.js",
"type": "cjs require",
"userRequest": "core-js/library/fn/symbol/iterator",
"loc": "1:30-75"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 5,
"source": "require('../../modules/es6.string.iterator');\nrequire('../../modules/web.dom.iterable');\nmodule.exports = require('../../modules/_wks-ext').f('iterator');\n"
},
{
"id": 96,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_string-at.js",
"name": "./node_modules/core-js/library/modules/_string-at.js",
"index": 43,
"index2": 38,
"size": 620,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.string.iterator.js",
"issuerId": 21,
"issuerName": "./node_modules/core-js/library/modules/es6.string.iterator.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 93,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"name": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"
},
{
"id": 54,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"name": "./node_modules/babel-runtime/helpers/typeof.js"
},
{
"id": 94,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol/iterator.js",
"name": "./node_modules/babel-runtime/core-js/symbol/iterator.js"
},
{
"id": 95,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/iterator.js",
"name": "./node_modules/core-js/library/fn/symbol/iterator.js"
},
{
"id": 21,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.string.iterator.js",
"name": "./node_modules/core-js/library/modules/es6.string.iterator.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 21,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.string.iterator.js",
"module": "./node_modules/core-js/library/modules/es6.string.iterator.js",
"moduleName": "./node_modules/core-js/library/modules/es6.string.iterator.js",
"type": "cjs require",
"userRequest": "./_string-at",
"loc": "2:10-33"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "var toInteger = require('./_to-integer');\nvar defined = require('./_defined');\n// true -> String#at\n// false -> String#codePointAt\nmodule.exports = function (TO_STRING) {\n return function (that, pos) {\n var s = String(defined(that));\n var i = toInteger(pos);\n var l = s.length;\n var a, b;\n if (i < 0 || i >= l) return TO_STRING ? '' : undefined;\n a = s.charCodeAt(i);\n return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff\n ? TO_STRING ? s.charAt(i) : a\n : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;\n };\n};\n"
},
{
"id": 97,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_iter-create.js",
"name": "./node_modules/core-js/library/modules/_iter-create.js",
"index": 50,
"index2": 59,
"size": 526,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_iter-define.js",
"issuerId": 55,
"issuerName": "./node_modules/core-js/library/modules/_iter-define.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 93,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"name": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"
},
{
"id": 54,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"name": "./node_modules/babel-runtime/helpers/typeof.js"
},
{
"id": 94,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol/iterator.js",
"name": "./node_modules/babel-runtime/core-js/symbol/iterator.js"
},
{
"id": 95,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/iterator.js",
"name": "./node_modules/core-js/library/fn/symbol/iterator.js"
},
{
"id": 21,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.string.iterator.js",
"name": "./node_modules/core-js/library/modules/es6.string.iterator.js"
},
{
"id": 55,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_iter-define.js",
"name": "./node_modules/core-js/library/modules/_iter-define.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 55,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_iter-define.js",
"module": "./node_modules/core-js/library/modules/_iter-define.js",
"moduleName": "./node_modules/core-js/library/modules/_iter-define.js",
"type": "cjs require",
"userRequest": "./_iter-create",
"loc": "7:18-43"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 8,
"source": "'use strict';\nvar create = require('./_object-create');\nvar descriptor = require('./_property-desc');\nvar setToStringTag = require('./_set-to-string-tag');\nvar IteratorPrototype = {};\n\n// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()\nrequire('./_hide')(IteratorPrototype, require('./_wks')('iterator'), function () { return this; });\n\nmodule.exports = function (Constructor, NAME, next) {\n Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) });\n setToStringTag(Constructor, NAME + ' Iterator');\n};\n"
},
{
"id": 98,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-dps.js",
"name": "./node_modules/core-js/library/modules/_object-dps.js",
"index": 52,
"index2": 54,
"size": 404,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-create.js",
"issuerId": 30,
"issuerName": "./node_modules/core-js/library/modules/_object-create.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 116,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/inherits.js",
"name": "./node_modules/babel-runtime/helpers/inherits.js"
},
{
"id": 121,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/object/create.js",
"name": "./node_modules/babel-runtime/core-js/object/create.js"
},
{
"id": 122,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/object/create.js",
"name": "./node_modules/core-js/library/fn/object/create.js"
},
{
"id": 123,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.object.create.js",
"name": "./node_modules/core-js/library/modules/es6.object.create.js"
},
{
"id": 30,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-create.js",
"name": "./node_modules/core-js/library/modules/_object-create.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 30,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-create.js",
"module": "./node_modules/core-js/library/modules/_object-create.js",
"moduleName": "./node_modules/core-js/library/modules/_object-create.js",
"type": "cjs require",
"userRequest": "./_object-dps",
"loc": "3:10-34"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "var dP = require('./_object-dp');\nvar anObject = require('./_an-object');\nvar getKeys = require('./_object-keys');\n\nmodule.exports = require('./_descriptors') ? Object.defineProperties : function defineProperties(O, Properties) {\n anObject(O);\n var keys = getKeys(Properties);\n var length = keys.length;\n var i = 0;\n var P;\n while (length > i) dP.f(O, P = keys[i++], Properties[P]);\n return O;\n};\n"
},
{
"id": 99,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_array-includes.js",
"name": "./node_modules/core-js/library/modules/_array-includes.js",
"index": 58,
"index2": 47,
"size": 924,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-keys-internal.js",
"issuerId": 57,
"issuerName": "./node_modules/core-js/library/modules/_object-keys-internal.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 93,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"name": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"
},
{
"id": 54,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"name": "./node_modules/babel-runtime/helpers/typeof.js"
},
{
"id": 106,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol.js",
"name": "./node_modules/babel-runtime/core-js/symbol.js"
},
{
"id": 107,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/index.js",
"name": "./node_modules/core-js/library/fn/symbol/index.js"
},
{
"id": 108,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"name": "./node_modules/core-js/library/modules/es6.symbol.js"
},
{
"id": 23,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-keys.js",
"name": "./node_modules/core-js/library/modules/_object-keys.js"
},
{
"id": 57,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-keys-internal.js",
"name": "./node_modules/core-js/library/modules/_object-keys-internal.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 57,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-keys-internal.js",
"module": "./node_modules/core-js/library/modules/_object-keys-internal.js",
"moduleName": "./node_modules/core-js/library/modules/_object-keys-internal.js",
"type": "cjs require",
"userRequest": "./_array-includes",
"loc": "3:19-47"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 9,
"source": "// false -> Array#indexOf\n// true -> Array#includes\nvar toIObject = require('./_to-iobject');\nvar toLength = require('./_to-length');\nvar toAbsoluteIndex = require('./_to-absolute-index');\nmodule.exports = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIObject($this);\n var length = toLength(O.length);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) if (IS_INCLUDES || index in O) {\n if (O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n"
},
{
"id": 100,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_to-absolute-index.js",
"name": "./node_modules/core-js/library/modules/_to-absolute-index.js",
"index": 60,
"index2": 46,
"size": 223,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_array-includes.js",
"issuerId": 99,
"issuerName": "./node_modules/core-js/library/modules/_array-includes.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 93,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"name": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"
},
{
"id": 54,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"name": "./node_modules/babel-runtime/helpers/typeof.js"
},
{
"id": 106,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol.js",
"name": "./node_modules/babel-runtime/core-js/symbol.js"
},
{
"id": 107,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/index.js",
"name": "./node_modules/core-js/library/fn/symbol/index.js"
},
{
"id": 108,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"name": "./node_modules/core-js/library/modules/es6.symbol.js"
},
{
"id": 23,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-keys.js",
"name": "./node_modules/core-js/library/modules/_object-keys.js"
},
{
"id": 57,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-keys-internal.js",
"name": "./node_modules/core-js/library/modules/_object-keys-internal.js"
},
{
"id": 99,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_array-includes.js",
"name": "./node_modules/core-js/library/modules/_array-includes.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 99,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_array-includes.js",
"module": "./node_modules/core-js/library/modules/_array-includes.js",
"moduleName": "./node_modules/core-js/library/modules/_array-includes.js",
"type": "cjs require",
"userRequest": "./_to-absolute-index",
"loc": "5:22-53"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 10,
"source": "var toInteger = require('./_to-integer');\nvar max = Math.max;\nvar min = Math.min;\nmodule.exports = function (index, length) {\n index = toInteger(index);\n return index < 0 ? max(index + length, 0) : min(index, length);\n};\n"
},
{
"id": 101,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_html.js",
"name": "./node_modules/core-js/library/modules/_html.js",
"index": 65,
"index2": 55,
"size": 101,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-create.js",
"issuerId": 30,
"issuerName": "./node_modules/core-js/library/modules/_object-create.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 116,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/inherits.js",
"name": "./node_modules/babel-runtime/helpers/inherits.js"
},
{
"id": 121,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/object/create.js",
"name": "./node_modules/babel-runtime/core-js/object/create.js"
},
{
"id": 122,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/object/create.js",
"name": "./node_modules/core-js/library/fn/object/create.js"
},
{
"id": 123,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.object.create.js",
"name": "./node_modules/core-js/library/modules/es6.object.create.js"
},
{
"id": 30,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-create.js",
"name": "./node_modules/core-js/library/modules/_object-create.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 30,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-create.js",
"module": "./node_modules/core-js/library/modules/_object-create.js",
"moduleName": "./node_modules/core-js/library/modules/_object-create.js",
"type": "cjs require",
"userRequest": "./_html",
"loc": "18:2-20"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "var document = require('./_global').document;\nmodule.exports = document && document.documentElement;\n"
},
{
"id": 102,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-gpo.js",
"name": "./node_modules/core-js/library/modules/_object-gpo.js",
"index": 68,
"index2": 61,
"size": 493,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_iter-define.js",
"issuerId": 55,
"issuerName": "./node_modules/core-js/library/modules/_iter-define.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 93,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"name": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"
},
{
"id": 54,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"name": "./node_modules/babel-runtime/helpers/typeof.js"
},
{
"id": 94,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol/iterator.js",
"name": "./node_modules/babel-runtime/core-js/symbol/iterator.js"
},
{
"id": 95,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/iterator.js",
"name": "./node_modules/core-js/library/fn/symbol/iterator.js"
},
{
"id": 21,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.string.iterator.js",
"name": "./node_modules/core-js/library/modules/es6.string.iterator.js"
},
{
"id": 55,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_iter-define.js",
"name": "./node_modules/core-js/library/modules/_iter-define.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 55,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_iter-define.js",
"module": "./node_modules/core-js/library/modules/_iter-define.js",
"moduleName": "./node_modules/core-js/library/modules/_iter-define.js",
"type": "cjs require",
"userRequest": "./_object-gpo",
"loc": "9:21-45"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 8,
"source": "// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)\nvar has = require('./_has');\nvar toObject = require('./_to-object');\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\nvar ObjectProto = Object.prototype;\n\nmodule.exports = Object.getPrototypeOf || function (O) {\n O = toObject(O);\n if (has(O, IE_PROTO)) return O[IE_PROTO];\n if (typeof O.constructor == 'function' && O instanceof O.constructor) {\n return O.constructor.prototype;\n } return O instanceof Object ? ObjectProto : null;\n};\n"
},
{
"id": 103,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.array.iterator.js",
"name": "./node_modules/core-js/library/modules/es6.array.iterator.js",
"index": 71,
"index2": 66,
"size": 1116,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/web.dom.iterable.js",
"issuerId": 37,
"issuerName": "./node_modules/core-js/library/modules/web.dom.iterable.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 93,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"name": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"
},
{
"id": 54,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"name": "./node_modules/babel-runtime/helpers/typeof.js"
},
{
"id": 94,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol/iterator.js",
"name": "./node_modules/babel-runtime/core-js/symbol/iterator.js"
},
{
"id": 95,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/iterator.js",
"name": "./node_modules/core-js/library/fn/symbol/iterator.js"
},
{
"id": 37,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/web.dom.iterable.js",
"name": "./node_modules/core-js/library/modules/web.dom.iterable.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 37,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/web.dom.iterable.js",
"module": "./node_modules/core-js/library/modules/web.dom.iterable.js",
"moduleName": "./node_modules/core-js/library/modules/web.dom.iterable.js",
"type": "cjs require",
"userRequest": "./es6.array.iterator",
"loc": "1:0-31"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "'use strict';\nvar addToUnscopables = require('./_add-to-unscopables');\nvar step = require('./_iter-step');\nvar Iterators = require('./_iterators');\nvar toIObject = require('./_to-iobject');\n\n// 22.1.3.4 Array.prototype.entries()\n// 22.1.3.13 Array.prototype.keys()\n// 22.1.3.29 Array.prototype.values()\n// 22.1.3.30 Array.prototype[@@iterator]()\nmodule.exports = require('./_iter-define')(Array, 'Array', function (iterated, kind) {\n this._t = toIObject(iterated); // target\n this._i = 0; // next index\n this._k = kind; // kind\n// 22.1.5.2.1 %ArrayIteratorPrototype%.next()\n}, function () {\n var O = this._t;\n var kind = this._k;\n var index = this._i++;\n if (!O || index >= O.length) {\n this._t = undefined;\n return step(1);\n }\n if (kind == 'keys') return step(0, index);\n if (kind == 'values') return step(0, O[index]);\n return step(0, [index, O[index]]);\n}, 'values');\n\n// argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)\nIterators.Arguments = Iterators.Array;\n\naddToUnscopables('keys');\naddToUnscopables('values');\naddToUnscopables('entries');\n"
},
{
"id": 104,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_add-to-unscopables.js",
"name": "./node_modules/core-js/library/modules/_add-to-unscopables.js",
"index": 72,
"index2": 64,
"size": 46,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.array.iterator.js",
"issuerId": 103,
"issuerName": "./node_modules/core-js/library/modules/es6.array.iterator.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 93,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"name": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"
},
{
"id": 54,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"name": "./node_modules/babel-runtime/helpers/typeof.js"
},
{
"id": 94,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol/iterator.js",
"name": "./node_modules/babel-runtime/core-js/symbol/iterator.js"
},
{
"id": 95,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/iterator.js",
"name": "./node_modules/core-js/library/fn/symbol/iterator.js"
},
{
"id": 37,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/web.dom.iterable.js",
"name": "./node_modules/core-js/library/modules/web.dom.iterable.js"
},
{
"id": 103,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.array.iterator.js",
"name": "./node_modules/core-js/library/modules/es6.array.iterator.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 103,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.array.iterator.js",
"module": "./node_modules/core-js/library/modules/es6.array.iterator.js",
"moduleName": "./node_modules/core-js/library/modules/es6.array.iterator.js",
"type": "cjs require",
"userRequest": "./_add-to-unscopables",
"loc": "2:23-55"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 8,
"source": "module.exports = function () { /* empty */ };\n"
},
{
"id": 105,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_iter-step.js",
"name": "./node_modules/core-js/library/modules/_iter-step.js",
"index": 73,
"index2": 65,
"size": 86,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.array.iterator.js",
"issuerId": 103,
"issuerName": "./node_modules/core-js/library/modules/es6.array.iterator.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 93,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"name": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"
},
{
"id": 54,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"name": "./node_modules/babel-runtime/helpers/typeof.js"
},
{
"id": 94,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol/iterator.js",
"name": "./node_modules/babel-runtime/core-js/symbol/iterator.js"
},
{
"id": 95,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/iterator.js",
"name": "./node_modules/core-js/library/fn/symbol/iterator.js"
},
{
"id": 37,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/web.dom.iterable.js",
"name": "./node_modules/core-js/library/modules/web.dom.iterable.js"
},
{
"id": 103,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.array.iterator.js",
"name": "./node_modules/core-js/library/modules/es6.array.iterator.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 103,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.array.iterator.js",
"module": "./node_modules/core-js/library/modules/es6.array.iterator.js",
"moduleName": "./node_modules/core-js/library/modules/es6.array.iterator.js",
"type": "cjs require",
"userRequest": "./_iter-step",
"loc": "3:11-34"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 8,
"source": "module.exports = function (done, value) {\n return { value: value, done: !!done };\n};\n"
},
{
"id": 106,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol.js",
"name": "./node_modules/babel-runtime/core-js/symbol.js",
"index": 75,
"index2": 85,
"size": 87,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"issuerId": 54,
"issuerName": "./node_modules/babel-runtime/helpers/typeof.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 93,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"name": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"
},
{
"id": 54,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"name": "./node_modules/babel-runtime/helpers/typeof.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 54,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"module": "./node_modules/babel-runtime/helpers/typeof.js",
"moduleName": "./node_modules/babel-runtime/helpers/typeof.js",
"type": "cjs require",
"userRequest": "../core-js/symbol",
"loc": "9:14-42"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 4,
"source": "module.exports = { \"default\": require(\"core-js/library/fn/symbol\"), __esModule: true };"
},
{
"id": 107,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/index.js",
"name": "./node_modules/core-js/library/fn/symbol/index.js",
"index": 76,
"index2": 84,
"size": 240,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol.js",
"issuerId": 106,
"issuerName": "./node_modules/babel-runtime/core-js/symbol.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 93,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"name": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"
},
{
"id": 54,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"name": "./node_modules/babel-runtime/helpers/typeof.js"
},
{
"id": 106,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol.js",
"name": "./node_modules/babel-runtime/core-js/symbol.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 106,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol.js",
"module": "./node_modules/babel-runtime/core-js/symbol.js",
"moduleName": "./node_modules/babel-runtime/core-js/symbol.js",
"type": "cjs require",
"userRequest": "core-js/library/fn/symbol",
"loc": "1:30-66"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 5,
"source": "require('../../modules/es6.symbol');\nrequire('../../modules/es6.object.to-string');\nrequire('../../modules/es7.symbol.async-iterator');\nrequire('../../modules/es7.symbol.observable');\nmodule.exports = require('../../modules/_core').Symbol;\n"
},
{
"id": 108,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"name": "./node_modules/core-js/library/modules/es6.symbol.js",
"index": 77,
"index2": 80,
"size": 8851,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/index.js",
"issuerId": 107,
"issuerName": "./node_modules/core-js/library/fn/symbol/index.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 93,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"name": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"
},
{
"id": 54,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"name": "./node_modules/babel-runtime/helpers/typeof.js"
},
{
"id": 106,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol.js",
"name": "./node_modules/babel-runtime/core-js/symbol.js"
},
{
"id": 107,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/index.js",
"name": "./node_modules/core-js/library/fn/symbol/index.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 107,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/index.js",
"module": "./node_modules/core-js/library/fn/symbol/index.js",
"moduleName": "./node_modules/core-js/library/fn/symbol/index.js",
"type": "cjs require",
"userRequest": "../../modules/es6.symbol",
"loc": "1:0-35"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 6,
"source": "'use strict';\n// ECMAScript 6 symbols shim\nvar global = require('./_global');\nvar has = require('./_has');\nvar DESCRIPTORS = require('./_descriptors');\nvar $export = require('./_export');\nvar redefine = require('./_redefine');\nvar META = require('./_meta').KEY;\nvar $fails = require('./_fails');\nvar shared = require('./_shared');\nvar setToStringTag = require('./_set-to-string-tag');\nvar uid = require('./_uid');\nvar wks = require('./_wks');\nvar wksExt = require('./_wks-ext');\nvar wksDefine = require('./_wks-define');\nvar enumKeys = require('./_enum-keys');\nvar isArray = require('./_is-array');\nvar anObject = require('./_an-object');\nvar isObject = require('./_is-object');\nvar toIObject = require('./_to-iobject');\nvar toPrimitive = require('./_to-primitive');\nvar createDesc = require('./_property-desc');\nvar _create = require('./_object-create');\nvar gOPNExt = require('./_object-gopn-ext');\nvar $GOPD = require('./_object-gopd');\nvar $DP = require('./_object-dp');\nvar $keys = require('./_object-keys');\nvar gOPD = $GOPD.f;\nvar dP = $DP.f;\nvar gOPN = gOPNExt.f;\nvar $Symbol = global.Symbol;\nvar $JSON = global.JSON;\nvar _stringify = $JSON && $JSON.stringify;\nvar PROTOTYPE = 'prototype';\nvar HIDDEN = wks('_hidden');\nvar TO_PRIMITIVE = wks('toPrimitive');\nvar isEnum = {}.propertyIsEnumerable;\nvar SymbolRegistry = shared('symbol-registry');\nvar AllSymbols = shared('symbols');\nvar OPSymbols = shared('op-symbols');\nvar ObjectProto = Object[PROTOTYPE];\nvar USE_NATIVE = typeof $Symbol == 'function';\nvar QObject = global.QObject;\n// Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173\nvar setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;\n\n// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687\nvar setSymbolDesc = DESCRIPTORS && $fails(function () {\n return _create(dP({}, 'a', {\n get: function () { return dP(this, 'a', { value: 7 }).a; }\n })).a != 7;\n}) ? function (it, key, D) {\n var protoDesc = gOPD(ObjectProto, key);\n if (protoDesc) delete ObjectProto[key];\n dP(it, key, D);\n if (protoDesc && it !== ObjectProto) dP(ObjectProto, key, protoDesc);\n} : dP;\n\nvar wrap = function (tag) {\n var sym = AllSymbols[tag] = _create($Symbol[PROTOTYPE]);\n sym._k = tag;\n return sym;\n};\n\nvar isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function (it) {\n return typeof it == 'symbol';\n} : function (it) {\n return it instanceof $Symbol;\n};\n\nvar $defineProperty = function defineProperty(it, key, D) {\n if (it === ObjectProto) $defineProperty(OPSymbols, key, D);\n anObject(it);\n key = toPrimitive(key, true);\n anObject(D);\n if (has(AllSymbols, key)) {\n if (!D.enumerable) {\n if (!has(it, HIDDEN)) dP(it, HIDDEN, createDesc(1, {}));\n it[HIDDEN][key] = true;\n } else {\n if (has(it, HIDDEN) && it[HIDDEN][key]) it[HIDDEN][key] = false;\n D = _create(D, { enumerable: createDesc(0, false) });\n } return setSymbolDesc(it, key, D);\n } return dP(it, key, D);\n};\nvar $defineProperties = function defineProperties(it, P) {\n anObject(it);\n var keys = enumKeys(P = toIObject(P));\n var i = 0;\n var l = keys.length;\n var key;\n while (l > i) $defineProperty(it, key = keys[i++], P[key]);\n return it;\n};\nvar $create = function create(it, P) {\n return P === undefined ? _create(it) : $defineProperties(_create(it), P);\n};\nvar $propertyIsEnumerable = function propertyIsEnumerable(key) {\n var E = isEnum.call(this, key = toPrimitive(key, true));\n if (this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return false;\n return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key] ? E : true;\n};\nvar $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key) {\n it = toIObject(it);\n key = toPrimitive(key, true);\n if (it === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return;\n var D = gOPD(it, key);\n if (D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) D.enumerable = true;\n return D;\n};\nvar $getOwnPropertyNames = function getOwnPropertyNames(it) {\n var names = gOPN(toIObject(it));\n var result = [];\n var i = 0;\n var key;\n while (names.length > i) {\n if (!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META) result.push(key);\n } return result;\n};\nvar $getOwnPropertySymbols = function getOwnPropertySymbols(it) {\n var IS_OP = it === ObjectProto;\n var names = gOPN(IS_OP ? OPSymbols : toIObject(it));\n var result = [];\n var i = 0;\n var key;\n while (names.length > i) {\n if (has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto, key) : true)) result.push(AllSymbols[key]);\n } return result;\n};\n\n// 19.4.1.1 Symbol([description])\nif (!USE_NATIVE) {\n $Symbol = function Symbol() {\n if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor!');\n var tag = uid(arguments.length > 0 ? arguments[0] : undefined);\n var $set = function (value) {\n if (this === ObjectProto) $set.call(OPSymbols, value);\n if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false;\n setSymbolDesc(this, tag, createDesc(1, value));\n };\n if (DESCRIPTORS && setter) setSymbolDesc(ObjectProto, tag, { configurable: true, set: $set });\n return wrap(tag);\n };\n redefine($Symbol[PROTOTYPE], 'toString', function toString() {\n return this._k;\n });\n\n $GOPD.f = $getOwnPropertyDescriptor;\n $DP.f = $defineProperty;\n require('./_object-gopn').f = gOPNExt.f = $getOwnPropertyNames;\n require('./_object-pie').f = $propertyIsEnumerable;\n require('./_object-gops').f = $getOwnPropertySymbols;\n\n if (DESCRIPTORS && !require('./_library')) {\n redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true);\n }\n\n wksExt.f = function (name) {\n return wrap(wks(name));\n };\n}\n\n$export($export.G + $export.W + $export.F * !USE_NATIVE, { Symbol: $Symbol });\n\nfor (var es6Symbols = (\n // 19.4.2.2, 19.4.2.3, 19.4.2.4, 19.4.2.6, 19.4.2.8, 19.4.2.9, 19.4.2.10, 19.4.2.11, 19.4.2.12, 19.4.2.13, 19.4.2.14\n 'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables'\n).split(','), j = 0; es6Symbols.length > j;)wks(es6Symbols[j++]);\n\nfor (var wellKnownSymbols = $keys(wks.store), k = 0; wellKnownSymbols.length > k;) wksDefine(wellKnownSymbols[k++]);\n\n$export($export.S + $export.F * !USE_NATIVE, 'Symbol', {\n // 19.4.2.1 Symbol.for(key)\n 'for': function (key) {\n return has(SymbolRegistry, key += '')\n ? SymbolRegistry[key]\n : SymbolRegistry[key] = $Symbol(key);\n },\n // 19.4.2.5 Symbol.keyFor(sym)\n keyFor: function keyFor(sym) {\n if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol!');\n for (var key in SymbolRegistry) if (SymbolRegistry[key] === sym) return key;\n },\n useSetter: function () { setter = true; },\n useSimple: function () { setter = false; }\n});\n\n$export($export.S + $export.F * !USE_NATIVE, 'Object', {\n // 19.1.2.2 Object.create(O [, Properties])\n create: $create,\n // 19.1.2.4 Object.defineProperty(O, P, Attributes)\n defineProperty: $defineProperty,\n // 19.1.2.3 Object.defineProperties(O, Properties)\n defineProperties: $defineProperties,\n // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)\n getOwnPropertyDescriptor: $getOwnPropertyDescriptor,\n // 19.1.2.7 Object.getOwnPropertyNames(O)\n getOwnPropertyNames: $getOwnPropertyNames,\n // 19.1.2.8 Object.getOwnPropertySymbols(O)\n getOwnPropertySymbols: $getOwnPropertySymbols\n});\n\n// 24.3.2 JSON.stringify(value [, replacer [, space]])\n$JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function () {\n var S = $Symbol();\n // MS Edge converts symbol values to JSON as {}\n // WebKit converts symbol values to JSON as null\n // V8 throws on boxed symbols\n return _stringify([S]) != '[null]' || _stringify({ a: S }) != '{}' || _stringify(Object(S)) != '{}';\n})), 'JSON', {\n stringify: function stringify(it) {\n var args = [it];\n var i = 1;\n var replacer, $replacer;\n while (arguments.length > i) args.push(arguments[i++]);\n $replacer = replacer = args[1];\n if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined\n if (!isArray(replacer)) replacer = function (key, value) {\n if (typeof $replacer == 'function') value = $replacer.call(this, key, value);\n if (!isSymbol(value)) return value;\n };\n args[1] = replacer;\n return _stringify.apply($JSON, args);\n }\n});\n\n// 19.4.3.4 Symbol.prototype[@@toPrimitive](hint)\n$Symbol[PROTOTYPE][TO_PRIMITIVE] || require('./_hide')($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf);\n// 19.4.3.5 Symbol.prototype[@@toStringTag]\nsetToStringTag($Symbol, 'Symbol');\n// 20.2.1.9 Math[@@toStringTag]\nsetToStringTag(Math, 'Math', true);\n// 24.3.3 JSON[@@toStringTag]\nsetToStringTag(global.JSON, 'JSON', true);\n"
},
{
"id": 109,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_meta.js",
"name": "./node_modules/core-js/library/modules/_meta.js",
"index": 78,
"index2": 71,
"size": 1558,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"issuerId": 108,
"issuerName": "./node_modules/core-js/library/modules/es6.symbol.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 93,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"name": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"
},
{
"id": 54,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"name": "./node_modules/babel-runtime/helpers/typeof.js"
},
{
"id": 106,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol.js",
"name": "./node_modules/babel-runtime/core-js/symbol.js"
},
{
"id": 107,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/index.js",
"name": "./node_modules/core-js/library/fn/symbol/index.js"
},
{
"id": 108,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"name": "./node_modules/core-js/library/modules/es6.symbol.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 108,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"module": "./node_modules/core-js/library/modules/es6.symbol.js",
"moduleName": "./node_modules/core-js/library/modules/es6.symbol.js",
"type": "cjs require",
"userRequest": "./_meta",
"loc": "8:11-29"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "var META = require('./_uid')('meta');\nvar isObject = require('./_is-object');\nvar has = require('./_has');\nvar setDesc = require('./_object-dp').f;\nvar id = 0;\nvar isExtensible = Object.isExtensible || function () {\n return true;\n};\nvar FREEZE = !require('./_fails')(function () {\n return isExtensible(Object.preventExtensions({}));\n});\nvar setMeta = function (it) {\n setDesc(it, META, { value: {\n i: 'O' + ++id, // object ID\n w: {} // weak collections IDs\n } });\n};\nvar fastKey = function (it, create) {\n // return primitive with prefix\n if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;\n if (!has(it, META)) {\n // can't set metadata to uncaught frozen object\n if (!isExtensible(it)) return 'F';\n // not necessary to add metadata\n if (!create) return 'E';\n // add missing metadata\n setMeta(it);\n // return object ID\n } return it[META].i;\n};\nvar getWeak = function (it, create) {\n if (!has(it, META)) {\n // can't set metadata to uncaught frozen object\n if (!isExtensible(it)) return true;\n // not necessary to add metadata\n if (!create) return false;\n // add missing metadata\n setMeta(it);\n // return hash weak collections IDs\n } return it[META].w;\n};\n// add metadata on freeze-family methods calling\nvar onFreeze = function (it) {\n if (FREEZE && meta.NEED && isExtensible(it) && !has(it, META)) setMeta(it);\n return it;\n};\nvar meta = module.exports = {\n KEY: META,\n NEED: false,\n fastKey: fastKey,\n getWeak: getWeak,\n onFreeze: onFreeze\n};\n"
},
{
"id": 110,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_enum-keys.js",
"name": "./node_modules/core-js/library/modules/_enum-keys.js",
"index": 80,
"index2": 75,
"size": 469,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"issuerId": 108,
"issuerName": "./node_modules/core-js/library/modules/es6.symbol.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 93,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"name": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"
},
{
"id": 54,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"name": "./node_modules/babel-runtime/helpers/typeof.js"
},
{
"id": 106,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol.js",
"name": "./node_modules/babel-runtime/core-js/symbol.js"
},
{
"id": 107,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/index.js",
"name": "./node_modules/core-js/library/fn/symbol/index.js"
},
{
"id": 108,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"name": "./node_modules/core-js/library/modules/es6.symbol.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 108,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"module": "./node_modules/core-js/library/modules/es6.symbol.js",
"moduleName": "./node_modules/core-js/library/modules/es6.symbol.js",
"type": "cjs require",
"userRequest": "./_enum-keys",
"loc": "16:15-38"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "// all enumerable object keys, includes symbols\nvar getKeys = require('./_object-keys');\nvar gOPS = require('./_object-gops');\nvar pIE = require('./_object-pie');\nmodule.exports = function (it) {\n var result = getKeys(it);\n var getSymbols = gOPS.f;\n if (getSymbols) {\n var symbols = getSymbols(it);\n var isEnum = pIE.f;\n var i = 0;\n var key;\n while (symbols.length > i) if (isEnum.call(it, key = symbols[i++])) result.push(key);\n } return result;\n};\n"
},
{
"id": 111,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_is-array.js",
"name": "./node_modules/core-js/library/modules/_is-array.js",
"index": 83,
"index2": 76,
"size": 147,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"issuerId": 108,
"issuerName": "./node_modules/core-js/library/modules/es6.symbol.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 93,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"name": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"
},
{
"id": 54,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"name": "./node_modules/babel-runtime/helpers/typeof.js"
},
{
"id": 106,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol.js",
"name": "./node_modules/babel-runtime/core-js/symbol.js"
},
{
"id": 107,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/index.js",
"name": "./node_modules/core-js/library/fn/symbol/index.js"
},
{
"id": 108,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"name": "./node_modules/core-js/library/modules/es6.symbol.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 108,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"module": "./node_modules/core-js/library/modules/es6.symbol.js",
"moduleName": "./node_modules/core-js/library/modules/es6.symbol.js",
"type": "cjs require",
"userRequest": "./_is-array",
"loc": "17:14-36"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "// 7.2.2 IsArray(argument)\nvar cof = require('./_cof');\nmodule.exports = Array.isArray || function isArray(arg) {\n return cof(arg) == 'Array';\n};\n"
},
{
"id": 112,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-gopn-ext.js",
"name": "./node_modules/core-js/library/modules/_object-gopn-ext.js",
"index": 84,
"index2": 78,
"size": 604,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"issuerId": 108,
"issuerName": "./node_modules/core-js/library/modules/es6.symbol.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 93,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"name": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"
},
{
"id": 54,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"name": "./node_modules/babel-runtime/helpers/typeof.js"
},
{
"id": 106,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol.js",
"name": "./node_modules/babel-runtime/core-js/symbol.js"
},
{
"id": 107,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/index.js",
"name": "./node_modules/core-js/library/fn/symbol/index.js"
},
{
"id": 108,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"name": "./node_modules/core-js/library/modules/es6.symbol.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 108,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"module": "./node_modules/core-js/library/modules/es6.symbol.js",
"moduleName": "./node_modules/core-js/library/modules/es6.symbol.js",
"type": "cjs require",
"userRequest": "./_object-gopn-ext",
"loc": "24:14-43"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window\nvar toIObject = require('./_to-iobject');\nvar gOPN = require('./_object-gopn').f;\nvar toString = {}.toString;\n\nvar windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames\n ? Object.getOwnPropertyNames(window) : [];\n\nvar getWindowNames = function (it) {\n try {\n return gOPN(it);\n } catch (e) {\n return windowNames.slice();\n }\n};\n\nmodule.exports.f = function getOwnPropertyNames(it) {\n return windowNames && toString.call(it) == '[object Window]' ? getWindowNames(it) : gOPN(toIObject(it));\n};\n"
},
{
"id": 113,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.object.to-string.js",
"name": "./node_modules/core-js/library/modules/es6.object.to-string.js",
"index": 87,
"index2": 81,
"size": 0,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/index.js",
"issuerId": 107,
"issuerName": "./node_modules/core-js/library/fn/symbol/index.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 93,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"name": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"
},
{
"id": 54,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"name": "./node_modules/babel-runtime/helpers/typeof.js"
},
{
"id": 106,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol.js",
"name": "./node_modules/babel-runtime/core-js/symbol.js"
},
{
"id": 107,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/index.js",
"name": "./node_modules/core-js/library/fn/symbol/index.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 107,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/index.js",
"module": "./node_modules/core-js/library/fn/symbol/index.js",
"moduleName": "./node_modules/core-js/library/fn/symbol/index.js",
"type": "cjs require",
"userRequest": "../../modules/es6.object.to-string",
"loc": "2:0-45"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 6,
"source": ""
},
{
"id": 114,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es7.symbol.async-iterator.js",
"name": "./node_modules/core-js/library/modules/es7.symbol.async-iterator.js",
"index": 88,
"index2": 82,
"size": 43,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/index.js",
"issuerId": 107,
"issuerName": "./node_modules/core-js/library/fn/symbol/index.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 93,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"name": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"
},
{
"id": 54,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"name": "./node_modules/babel-runtime/helpers/typeof.js"
},
{
"id": 106,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol.js",
"name": "./node_modules/babel-runtime/core-js/symbol.js"
},
{
"id": 107,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/index.js",
"name": "./node_modules/core-js/library/fn/symbol/index.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 107,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/index.js",
"module": "./node_modules/core-js/library/fn/symbol/index.js",
"moduleName": "./node_modules/core-js/library/fn/symbol/index.js",
"type": "cjs require",
"userRequest": "../../modules/es7.symbol.async-iterator",
"loc": "3:0-50"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 6,
"source": "require('./_wks-define')('asyncIterator');\n"
},
{
"id": 115,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es7.symbol.observable.js",
"name": "./node_modules/core-js/library/modules/es7.symbol.observable.js",
"index": 89,
"index2": 83,
"size": 40,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/index.js",
"issuerId": 107,
"issuerName": "./node_modules/core-js/library/fn/symbol/index.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 93,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"name": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"
},
{
"id": 54,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"name": "./node_modules/babel-runtime/helpers/typeof.js"
},
{
"id": 106,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol.js",
"name": "./node_modules/babel-runtime/core-js/symbol.js"
},
{
"id": 107,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/index.js",
"name": "./node_modules/core-js/library/fn/symbol/index.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 107,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/index.js",
"module": "./node_modules/core-js/library/fn/symbol/index.js",
"moduleName": "./node_modules/core-js/library/fn/symbol/index.js",
"type": "cjs require",
"userRequest": "../../modules/es7.symbol.observable",
"loc": "4:0-46"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 6,
"source": "require('./_wks-define')('observable');\n"
},
{
"id": 116,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/inherits.js",
"name": "./node_modules/babel-runtime/helpers/inherits.js",
"index": 90,
"index2": 95,
"size": 1110,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"issuerId": 89,
"issuerName": "./src/containers/App.jsx",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 89,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"module": "./src/containers/App.jsx",
"moduleName": "./src/containers/App.jsx",
"type": "cjs require",
"userRequest": "babel-runtime/helpers/inherits",
"loc": "20:17-58"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 2,
"source": "\"use strict\";\n\nexports.__esModule = true;\n\nvar _setPrototypeOf = require(\"../core-js/object/set-prototype-of\");\n\nvar _setPrototypeOf2 = _interopRequireDefault(_setPrototypeOf);\n\nvar _create = require(\"../core-js/object/create\");\n\nvar _create2 = _interopRequireDefault(_create);\n\nvar _typeof2 = require(\"../helpers/typeof\");\n\nvar _typeof3 = _interopRequireDefault(_typeof2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function (subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + (typeof superClass === \"undefined\" ? \"undefined\" : (0, _typeof3.default)(superClass)));\n }\n\n subClass.prototype = (0, _create2.default)(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) _setPrototypeOf2.default ? (0, _setPrototypeOf2.default)(subClass, superClass) : subClass.__proto__ = superClass;\n};"
},
{
"id": 117,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/object/set-prototype-of.js",
"name": "./node_modules/babel-runtime/core-js/object/set-prototype-of.js",
"index": 91,
"index2": 91,
"size": 104,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/inherits.js",
"issuerId": 116,
"issuerName": "./node_modules/babel-runtime/helpers/inherits.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 116,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/inherits.js",
"name": "./node_modules/babel-runtime/helpers/inherits.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 116,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/inherits.js",
"module": "./node_modules/babel-runtime/helpers/inherits.js",
"moduleName": "./node_modules/babel-runtime/helpers/inherits.js",
"type": "cjs require",
"userRequest": "../core-js/object/set-prototype-of",
"loc": "5:22-67"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 3,
"source": "module.exports = { \"default\": require(\"core-js/library/fn/object/set-prototype-of\"), __esModule: true };"
},
{
"id": 118,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/object/set-prototype-of.js",
"name": "./node_modules/core-js/library/fn/object/set-prototype-of.js",
"index": 92,
"index2": 90,
"size": 125,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/object/set-prototype-of.js",
"issuerId": 117,
"issuerName": "./node_modules/babel-runtime/core-js/object/set-prototype-of.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 116,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/inherits.js",
"name": "./node_modules/babel-runtime/helpers/inherits.js"
},
{
"id": 117,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/object/set-prototype-of.js",
"name": "./node_modules/babel-runtime/core-js/object/set-prototype-of.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 117,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/object/set-prototype-of.js",
"module": "./node_modules/babel-runtime/core-js/object/set-prototype-of.js",
"moduleName": "./node_modules/babel-runtime/core-js/object/set-prototype-of.js",
"type": "cjs require",
"userRequest": "core-js/library/fn/object/set-prototype-of",
"loc": "1:30-83"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 4,
"source": "require('../../modules/es6.object.set-prototype-of');\nmodule.exports = require('../../modules/_core').Object.setPrototypeOf;\n"
},
{
"id": 119,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.object.set-prototype-of.js",
"name": "./node_modules/core-js/library/modules/es6.object.set-prototype-of.js",
"index": 93,
"index2": 89,
"size": 160,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/object/set-prototype-of.js",
"issuerId": 118,
"issuerName": "./node_modules/core-js/library/fn/object/set-prototype-of.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 116,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/inherits.js",
"name": "./node_modules/babel-runtime/helpers/inherits.js"
},
{
"id": 117,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/object/set-prototype-of.js",
"name": "./node_modules/babel-runtime/core-js/object/set-prototype-of.js"
},
{
"id": 118,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/object/set-prototype-of.js",
"name": "./node_modules/core-js/library/fn/object/set-prototype-of.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 118,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/object/set-prototype-of.js",
"module": "./node_modules/core-js/library/fn/object/set-prototype-of.js",
"moduleName": "./node_modules/core-js/library/fn/object/set-prototype-of.js",
"type": "cjs require",
"userRequest": "../../modules/es6.object.set-prototype-of",
"loc": "1:0-52"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 5,
"source": "// 19.1.3.19 Object.setPrototypeOf(O, proto)\nvar $export = require('./_export');\n$export($export.S, 'Object', { setPrototypeOf: require('./_set-proto').set });\n"
},
{
"id": 120,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_set-proto.js",
"name": "./node_modules/core-js/library/modules/_set-proto.js",
"index": 94,
"index2": 88,
"size": 906,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.object.set-prototype-of.js",
"issuerId": 119,
"issuerName": "./node_modules/core-js/library/modules/es6.object.set-prototype-of.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 116,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/inherits.js",
"name": "./node_modules/babel-runtime/helpers/inherits.js"
},
{
"id": 117,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/object/set-prototype-of.js",
"name": "./node_modules/babel-runtime/core-js/object/set-prototype-of.js"
},
{
"id": 118,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/object/set-prototype-of.js",
"name": "./node_modules/core-js/library/fn/object/set-prototype-of.js"
},
{
"id": 119,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.object.set-prototype-of.js",
"name": "./node_modules/core-js/library/modules/es6.object.set-prototype-of.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 119,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.object.set-prototype-of.js",
"module": "./node_modules/core-js/library/modules/es6.object.set-prototype-of.js",
"moduleName": "./node_modules/core-js/library/modules/es6.object.set-prototype-of.js",
"type": "cjs require",
"userRequest": "./_set-proto",
"loc": "3:47-70"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 6,
"source": "// Works with __proto__ only. Old v8 can't work with null proto objects.\n/* eslint-disable no-proto */\nvar isObject = require('./_is-object');\nvar anObject = require('./_an-object');\nvar check = function (O, proto) {\n anObject(O);\n if (!isObject(proto) && proto !== null) throw TypeError(proto + \": can't set as prototype!\");\n};\nmodule.exports = {\n set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line\n function (test, buggy, set) {\n try {\n set = require('./_ctx')(Function.call, require('./_object-gopd').f(Object.prototype, '__proto__').set, 2);\n set(test, []);\n buggy = !(test instanceof Array);\n } catch (e) { buggy = true; }\n return function setPrototypeOf(O, proto) {\n check(O, proto);\n if (buggy) O.__proto__ = proto;\n else set(O, proto);\n return O;\n };\n }({}, false) : undefined),\n check: check\n};\n"
},
{
"id": 121,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/object/create.js",
"name": "./node_modules/babel-runtime/core-js/object/create.js",
"index": 95,
"index2": 94,
"size": 94,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/inherits.js",
"issuerId": 116,
"issuerName": "./node_modules/babel-runtime/helpers/inherits.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 116,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/inherits.js",
"name": "./node_modules/babel-runtime/helpers/inherits.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 116,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/inherits.js",
"module": "./node_modules/babel-runtime/helpers/inherits.js",
"moduleName": "./node_modules/babel-runtime/helpers/inherits.js",
"type": "cjs require",
"userRequest": "../core-js/object/create",
"loc": "9:14-49"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 3,
"source": "module.exports = { \"default\": require(\"core-js/library/fn/object/create\"), __esModule: true };"
},
{
"id": 122,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/object/create.js",
"name": "./node_modules/core-js/library/fn/object/create.js",
"index": 96,
"index2": 93,
"size": 172,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/object/create.js",
"issuerId": 121,
"issuerName": "./node_modules/babel-runtime/core-js/object/create.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 116,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/inherits.js",
"name": "./node_modules/babel-runtime/helpers/inherits.js"
},
{
"id": 121,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/object/create.js",
"name": "./node_modules/babel-runtime/core-js/object/create.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 121,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/object/create.js",
"module": "./node_modules/babel-runtime/core-js/object/create.js",
"moduleName": "./node_modules/babel-runtime/core-js/object/create.js",
"type": "cjs require",
"userRequest": "core-js/library/fn/object/create",
"loc": "1:30-73"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 4,
"source": "require('../../modules/es6.object.create');\nvar $Object = require('../../modules/_core').Object;\nmodule.exports = function create(P, D) {\n return $Object.create(P, D);\n};\n"
},
{
"id": 123,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.object.create.js",
"name": "./node_modules/core-js/library/modules/es6.object.create.js",
"index": 97,
"index2": 92,
"size": 162,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/object/create.js",
"issuerId": 122,
"issuerName": "./node_modules/core-js/library/fn/object/create.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 116,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/inherits.js",
"name": "./node_modules/babel-runtime/helpers/inherits.js"
},
{
"id": 121,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/object/create.js",
"name": "./node_modules/babel-runtime/core-js/object/create.js"
},
{
"id": 122,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/object/create.js",
"name": "./node_modules/core-js/library/fn/object/create.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 122,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/object/create.js",
"module": "./node_modules/core-js/library/fn/object/create.js",
"moduleName": "./node_modules/core-js/library/fn/object/create.js",
"type": "cjs require",
"userRequest": "../../modules/es6.object.create",
"loc": "1:0-42"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 5,
"source": "var $export = require('./_export');\n// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])\n$export($export.S, 'Object', { create: require('./_object-create') });\n"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js",
"index": 98,
"index2": 185,
"size": 4926,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"issuerId": 89,
"issuerName": "./src/containers/App.jsx",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 89,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"module": "./src/containers/App.jsx",
"moduleName": "./src/containers/App.jsx",
"type": "cjs require",
"userRequest": "$modules/Editor",
"loc": "28:14-40"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 2,
"source": "'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.Editor = undefined;\n\nvar _defineProperty2 = require('babel-runtime/helpers/defineProperty');\n\nvar _defineProperty3 = _interopRequireDefault(_defineProperty2);\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _Map = require('$modules/Map');\n\nvar _Poly = require('$modules/Poly');\n\nvar _modes = require('$constants/modes');\n\nvar _Stickers = require('$modules/Stickers');\n\nvar _Router = require('$modules/Router');\n\nvar _Shotter = require('$modules/Shotter');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n(function () {\n var enterModule = require('react-hot-loader').enterModule;\n\n enterModule && enterModule(module);\n})();\n\nvar Editor = exports.Editor = function () {\n function Editor(_ref) {\n var _switches, _clickHandlers;\n\n var container = _ref.container,\n mode = _ref.mode,\n setMode = _ref.setMode;\n (0, _classCallCheck3.default)(this, Editor);\n\n _initialiseProps.call(this);\n\n this.map = new _Map.Map({ container: container });\n\n var lockMapClicks = this.lockMapClicks,\n routerMoveStart = this.routerMoveStart,\n map = this.map.map;\n\n\n this.poly = new _Poly.Poly({ map: map, routerMoveStart: routerMoveStart, lockMapClicks: lockMapClicks });\n this.stickers = new _Stickers.Stickers({ map: map, lockMapClicks: lockMapClicks });\n this.router = new _Router.Router({ map: map, lockMapClicks: lockMapClicks });\n this.shotter = new _Shotter.Shotter({ map: map });\n\n this.setMode = setMode;\n this.mode = mode;\n\n this.switches = (_switches = {}, (0, _defineProperty3.default)(_switches, _modes.MODES.POLY, {\n start: this.poly.continue,\n stop: this.poly.stop\n }), (0, _defineProperty3.default)(_switches, _modes.MODES.ROUTER, {\n start: this.routerSetStart\n }), (0, _defineProperty3.default)(_switches, _modes.MODES.SHOTTER, {\n start: this.shotter.makeShot\n }), _switches);\n\n this.clickHandlers = (_clickHandlers = {}, (0, _defineProperty3.default)(_clickHandlers, _modes.MODES.STICKERS, this.stickers.createOnClick), (0, _defineProperty3.default)(_clickHandlers, _modes.MODES.ROUTER, this.router.pushWaypointOnClick), _clickHandlers);\n\n map.addEventListener('mouseup', this.onClick);\n map.addEventListener('dragstart', function () {\n return lockMapClicks(true);\n });\n map.addEventListener('dragstop', function () {\n return lockMapClicks(false);\n });\n }\n\n (0, _createClass3.default)(Editor, [{\n key: '__reactstandin__regenerateByEval',\n // @ts-ignore\n value: function __reactstandin__regenerateByEval(key, code) {\n // @ts-ignore\n this[key] = eval(code);\n }\n }]);\n return Editor;\n}();\n\nvar _initialiseProps = function _initialiseProps() {\n var _this = this;\n\n this.changeMode = function (mode) {\n if (_this.mode === mode) {\n _this.disableMode(mode);\n _this.setMode(_modes.MODES.NONE);\n _this.mode = _modes.MODES.NONE;\n } else {\n _this.disableMode(_this.mode);\n _this.setMode(mode);\n _this.mode = mode;\n _this.enableMode(mode);\n }\n };\n\n this.enableMode = function (mode) {\n if (_this.switches[mode] && _this.switches[mode].start) _this.switches[mode].start();\n };\n\n this.disableMode = function (mode) {\n if (_this.switches[mode] && _this.switches[mode].stop) _this.switches[mode].stop();\n };\n\n this.onClick = function (e) {\n if (e.originalEvent.which === 3) return; // skip right click\n if (_this.clickHandlers[_this.mode]) _this.clickHandlers[_this.mode](e);\n };\n\n this.lockMapClicks = function (lock) {\n if (lock) {\n _this.map.map.removeEventListener('mouseup', _this.onClick);\n _this.map.map.addEventListener('mouseup', _this.unlockMapClicks);\n } else {\n _this.map.map.removeEventListener('mouseup', _this.unlockMapClicks);\n _this.map.map.addEventListener('mouseup', _this.onClick);\n }\n };\n\n this.unlockMapClicks = function () {\n _this.lockMapClicks(false);\n };\n\n this.routerSetStart = function () {\n var latlngs = _this.poly.latlngs;\n\n\n if (!latlngs || !latlngs.length) return;\n\n _this.router.startFrom(latlngs.pop());\n };\n\n this.routerMoveStart = function () {\n var _latlngs = _this.poly.poly._latlngs;\n\n\n if (_latlngs) _this.router.moveStart(_latlngs[_latlngs.length - 1]);\n };\n};\n\n;\n\n(function () {\n var reactHotLoader = require('react-hot-loader').default;\n\n var leaveModule = require('react-hot-loader').leaveModule;\n\n if (!reactHotLoader) {\n return;\n }\n\n reactHotLoader.register(Editor, 'Editor', '/Users/user/Projects/orchid/src/modules/Editor.js');\n leaveModule(module);\n})();\n\n;"
},
{
"id": 125,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/defineProperty.js",
"name": "./node_modules/babel-runtime/helpers/defineProperty.js",
"index": 99,
"index2": 96,
"size": 540,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"issuerId": 124,
"issuerName": "./src/modules/Editor.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 124,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"module": "./src/modules/Editor.js",
"moduleName": "./src/modules/Editor.js",
"type": "cjs require",
"userRequest": "babel-runtime/helpers/defineProperty",
"loc": "8:23-70"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 3,
"source": "\"use strict\";\n\nexports.__esModule = true;\n\nvar _defineProperty = require(\"../core-js/object/define-property\");\n\nvar _defineProperty2 = _interopRequireDefault(_defineProperty);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function (obj, key, value) {\n if (key in obj) {\n (0, _defineProperty2.default)(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n};"
},
{
"id": 126,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Map.js",
"name": "./src/modules/Map.js",
"index": 100,
"index2": 111,
"size": 1765,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"issuerId": 124,
"issuerName": "./src/modules/Editor.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 124,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"module": "./src/modules/Editor.js",
"moduleName": "./src/modules/Editor.js",
"type": "cjs require",
"userRequest": "$modules/Map",
"loc": "20:11-34"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 3,
"source": "'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.Map = undefined;\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _leaflet = require('leaflet');\n\nvar _providers = require('$constants/providers');\n\nrequire('leaflet/dist/leaflet.css');\n\nrequire('leaflet-editable');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n(function () {\n var enterModule = require('react-hot-loader').enterModule;\n\n enterModule && enterModule(module);\n})();\n\nvar Map = exports.Map = function () {\n function Map(_ref) {\n var container = _ref.container;\n (0, _classCallCheck3.default)(this, Map);\n\n this.map = (0, _leaflet.map)(container, { editable: true }).setView([55.0153275, 82.9071235], 13);\n\n this.tileLayer = (0, _leaflet.tileLayer)(_providers.providers.default, {\n attribution: 'Независимое Велосообщество',\n maxNativeZoom: 18,\n maxZoom: 18\n });\n\n this.tileLayer.addTo(this.map);\n }\n\n (0, _createClass3.default)(Map, [{\n key: '__reactstandin__regenerateByEval',\n // @ts-ignore\n value: function __reactstandin__regenerateByEval(key, code) {\n // @ts-ignore\n this[key] = eval(code);\n }\n }]);\n return Map;\n}();\n\n;\n\n(function () {\n var reactHotLoader = require('react-hot-loader').default;\n\n var leaveModule = require('react-hot-loader').leaveModule;\n\n if (!reactHotLoader) {\n return;\n }\n\n reactHotLoader.register(Map, 'Map', '/Users/user/Projects/orchid/src/modules/Map.js');\n leaveModule(module);\n})();\n\n;"
},
{
"id": 127,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/constants/providers.js",
"name": "./src/constants/providers.js",
"index": 102,
"index2": 100,
"size": 1274,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Map.js",
"issuerId": 126,
"issuerName": "./src/modules/Map.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 126,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Map.js",
"name": "./src/modules/Map.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 126,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Map.js",
"module": "./src/modules/Map.js",
"moduleName": "./src/modules/Map.js",
"type": "cjs require",
"userRequest": "$constants/providers",
"loc": "18:17-48"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 4,
"source": "'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\n(function () {\n var enterModule = require('react-hot-loader').enterModule;\n\n enterModule && enterModule(module);\n})();\n\n// Стили карт\nvar providers = exports.providers = {\n 'watercolor': 'http://stamen-tiles-{s}.a.ssl.fastly.net/watercolor/{z}/{x}/{y}.jpg',\n 'darq': 'http://{s}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}.png',\n 'dgis': 'https://tile1.maps.2gis.com/tiles?x={x}&y={y}&z={z}&v=1',\n 'default': 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',\n 'hot': 'http://{s}.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png',\n 'blank': 'http://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}.png',\n 'sat': 'http://mt0.google.com/vt/lyrs=s,h&x={x}&y={y}&z={z}',\n 'ymap': 'https://vec03.maps.yandex.net/tiles?l=map&v=17.04.16-0&x={x}&y={y}&z={z}&scale=1&lang=ru_RU',\n 'ysat': 'https://sat02.maps.yandex.net/tiles?l=sat&v=3.330.0&x={x}&y={y}&z={z}&lang=ru_RU'\n};\n;\n\n(function () {\n var reactHotLoader = require('react-hot-loader').default;\n\n var leaveModule = require('react-hot-loader').leaveModule;\n\n if (!reactHotLoader) {\n return;\n }\n\n reactHotLoader.register(providers, 'providers', '/Users/user/Projects/orchid/src/constants/providers.js');\n leaveModule(module);\n})();\n\n;"
},
{
"id": 128,
"identifier": "/Users/user/Projects/orchid/node_modules/react-hot-loader/dist/react-hot-loader.production.min.js",
"name": "./node_modules/react-hot-loader/dist/react-hot-loader.production.min.js",
"index": 104,
"index2": 98,
"size": 1354,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/react-hot-loader/index.js",
"issuerId": 0,
"issuerName": "./node_modules/react-hot-loader/index.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 0,
"identifier": "/Users/user/Projects/orchid/node_modules/react-hot-loader/index.js",
"name": "./node_modules/react-hot-loader/index.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 0,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/react-hot-loader/index.js",
"module": "./node_modules/react-hot-loader/index.js",
"moduleName": "./node_modules/react-hot-loader/index.js",
"type": "cjs require",
"userRequest": "./dist/react-hot-loader.production.min.js",
"loc": "4:19-71"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 2,
"source": "\"use strict\";function _interopDefault(t){return t&&\"object\"==typeof t&&\"default\"in t?t.default:t}Object.defineProperty(exports,\"__esModule\",{value:!0});var React=_interopDefault(require(\"react\")),classCallCheck=function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")},inherits=function(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)},possibleConstructorReturn=function(t,e){if(!t)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return!e||\"object\"!=typeof e&&\"function\"!=typeof e?t:e},AppContainer=function(t){function e(){return classCallCheck(this,e),possibleConstructorReturn(this,t.apply(this,arguments))}return inherits(e,t),e.prototype.render=function(){return React.Children.only(this.props.children)},e}(React.Component),hot_prod=function(){return function(t){return t}},areComponentsEqual=function(t,e){return t===e},setConfig=function(){},cold=function(t){return t};exports.AppContainer=AppContainer,exports.hot=hot_prod,exports.areComponentsEqual=areComponentsEqual,exports.setConfig=setConfig,exports.cold=cold;\n"
},
{
"id": 129,
"identifier": "/Users/user/Projects/orchid/node_modules/style-loader/index.js!/Users/user/Projects/orchid/node_modules/css-loader/index.js!/Users/user/Projects/orchid/node_modules/leaflet/dist/leaflet.css",
"name": "./node_modules/leaflet/dist/leaflet.css",
"index": 105,
"index2": 109,
"size": 1038,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Map.js",
"issuerId": 126,
"issuerName": "./src/modules/Map.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 126,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Map.js",
"name": "./src/modules/Map.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 126,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Map.js",
"module": "./src/modules/Map.js",
"moduleName": "./src/modules/Map.js",
"type": "cjs require",
"userRequest": "leaflet/dist/leaflet.css",
"loc": "20:0-35"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 4,
"source": "\nvar content = require(\"!!../../css-loader/index.js!./leaflet.css\");\n\nif(typeof content === 'string') content = [[module.id, content, '']];\n\nvar transform;\nvar insertInto;\n\n\n\nvar options = {\"hmr\":true}\n\noptions.transform = transform\noptions.insertInto = undefined;\n\nvar update = require(\"!../../style-loader/lib/addStyles.js\")(content, options);\n\nif(content.locals) module.exports = content.locals;\n\nif(module.hot) {\n\tmodule.hot.accept(\"!!../../css-loader/index.js!./leaflet.css\", function() {\n\t\tvar newContent = require(\"!!../../css-loader/index.js!./leaflet.css\");\n\n\t\tif(typeof newContent === 'string') newContent = [[module.id, newContent, '']];\n\n\t\tvar locals = (function(a, b) {\n\t\t\tvar key, idx = 0;\n\n\t\t\tfor(key in a) {\n\t\t\t\tif(!b || a[key] !== b[key]) return false;\n\t\t\t\tidx++;\n\t\t\t}\n\n\t\t\tfor(key in b) idx--;\n\n\t\t\treturn idx === 0;\n\t\t}(content.locals, newContent.locals));\n\n\t\tif(!locals) throw new Error('Aborting CSS HMR due to changed css-modules locals.');\n\n\t\tupdate(newContent);\n\t});\n\n\tmodule.hot.dispose(function() { update(); });\n}"
},
{
"id": 130,
"identifier": "/Users/user/Projects/orchid/node_modules/css-loader/index.js!/Users/user/Projects/orchid/node_modules/leaflet/dist/leaflet.css",
"name": "./node_modules/css-loader!./node_modules/leaflet/dist/leaflet.css",
"index": 106,
"index2": 106,
"size": 16158,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/style-loader/index.js!/Users/user/Projects/orchid/node_modules/css-loader/index.js!/Users/user/Projects/orchid/node_modules/leaflet/dist/leaflet.css",
"issuerId": 129,
"issuerName": "./node_modules/leaflet/dist/leaflet.css",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 126,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Map.js",
"name": "./src/modules/Map.js"
},
{
"id": 129,
"identifier": "/Users/user/Projects/orchid/node_modules/style-loader/index.js!/Users/user/Projects/orchid/node_modules/css-loader/index.js!/Users/user/Projects/orchid/node_modules/leaflet/dist/leaflet.css",
"name": "./node_modules/leaflet/dist/leaflet.css"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 129,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/style-loader/index.js!/Users/user/Projects/orchid/node_modules/css-loader/index.js!/Users/user/Projects/orchid/node_modules/leaflet/dist/leaflet.css",
"module": "./node_modules/leaflet/dist/leaflet.css",
"moduleName": "./node_modules/leaflet/dist/leaflet.css",
"type": "cjs require",
"userRequest": "!!../../css-loader/index.js!./leaflet.css",
"loc": "2:14-66"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 5,
"source": "var escape = require(\"../../css-loader/lib/url/escape.js\");\nexports = module.exports = require(\"../../css-loader/lib/css-base.js\")(false);\n// imports\n\n\n// module\nexports.push([module.id, \"/* required styles */\\r\\n\\r\\n.leaflet-pane,\\r\\n.leaflet-tile,\\r\\n.leaflet-marker-icon,\\r\\n.leaflet-marker-shadow,\\r\\n.leaflet-tile-container,\\r\\n.leaflet-pane > svg,\\r\\n.leaflet-pane > canvas,\\r\\n.leaflet-zoom-box,\\r\\n.leaflet-image-layer,\\r\\n.leaflet-layer {\\r\\n\\tposition: absolute;\\r\\n\\tleft: 0;\\r\\n\\ttop: 0;\\r\\n\\t}\\r\\n.leaflet-container {\\r\\n\\toverflow: hidden;\\r\\n\\t}\\r\\n.leaflet-tile,\\r\\n.leaflet-marker-icon,\\r\\n.leaflet-marker-shadow {\\r\\n\\t-webkit-user-select: none;\\r\\n\\t -moz-user-select: none;\\r\\n\\t user-select: none;\\r\\n\\t -webkit-user-drag: none;\\r\\n\\t}\\r\\n/* Safari renders non-retina tile on retina better with this, but Chrome is worse */\\r\\n.leaflet-safari .leaflet-tile {\\r\\n\\timage-rendering: -webkit-optimize-contrast;\\r\\n\\t}\\r\\n/* hack that prevents hw layers \\\"stretching\\\" when loading new tiles */\\r\\n.leaflet-safari .leaflet-tile-container {\\r\\n\\twidth: 1600px;\\r\\n\\theight: 1600px;\\r\\n\\t-webkit-transform-origin: 0 0;\\r\\n\\t}\\r\\n.leaflet-marker-icon,\\r\\n.leaflet-marker-shadow {\\r\\n\\tdisplay: block;\\r\\n\\t}\\r\\n/* .leaflet-container svg: reset svg max-width decleration shipped in Joomla! (joomla.org) 3.x */\\r\\n/* .leaflet-container img: map is broken in FF if you have max-width: 100% on tiles */\\r\\n.leaflet-container .leaflet-overlay-pane svg,\\r\\n.leaflet-container .leaflet-marker-pane img,\\r\\n.leaflet-container .leaflet-shadow-pane img,\\r\\n.leaflet-container .leaflet-tile-pane img,\\r\\n.leaflet-container img.leaflet-image-layer {\\r\\n\\tmax-width: none !important;\\r\\n\\tmax-height: none !important;\\r\\n\\t}\\r\\n\\r\\n.leaflet-container.leaflet-touch-zoom {\\r\\n\\t-ms-touch-action: pan-x pan-y;\\r\\n\\ttouch-action: pan-x pan-y;\\r\\n\\t}\\r\\n.leaflet-container.leaflet-touch-drag {\\r\\n\\t-ms-touch-action: pinch-zoom;\\r\\n\\t/* Fallback for FF which doesn't support pinch-zoom */\\r\\n\\ttouch-action: none;\\r\\n\\ttouch-action: pinch-zoom;\\r\\n}\\r\\n.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {\\r\\n\\t-ms-touch-action: none;\\r\\n\\ttouch-action: none;\\r\\n}\\r\\n.leaflet-container {\\r\\n\\t-webkit-tap-highlight-color: transparent;\\r\\n}\\r\\n.leaflet-container a {\\r\\n\\t-webkit-tap-highlight-color: rgba(51, 181, 229, 0.4);\\r\\n}\\r\\n.leaflet-tile {\\r\\n\\tfilter: inherit;\\r\\n\\tvisibility: hidden;\\r\\n\\t}\\r\\n.leaflet-tile-loaded {\\r\\n\\tvisibility: inherit;\\r\\n\\t}\\r\\n.leaflet-zoom-box {\\r\\n\\twidth: 0;\\r\\n\\theight: 0;\\r\\n\\t-moz-box-sizing: border-box;\\r\\n\\t box-sizing: border-box;\\r\\n\\tz-index: 800;\\r\\n\\t}\\r\\n/* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */\\r\\n.leaflet-overlay-pane svg {\\r\\n\\t-moz-user-select: none;\\r\\n\\t}\\r\\n\\r\\n.leaflet-pane { z-index: 400; }\\r\\n\\r\\n.leaflet-tile-pane { z-index: 200; }\\r\\n.leaflet-overlay-pane { z-index: 400; }\\r\\n.leaflet-shadow-pane { z-index: 500; }\\r\\n.leaflet-marker-pane { z-index: 600; }\\r\\n.leaflet-tooltip-pane { z-index: 650; }\\r\\n.leaflet-popup-pane { z-index: 700; }\\r\\n\\r\\n.leaflet-map-pane canvas { z-index: 100; }\\r\\n.leaflet-map-pane svg { z-index: 200; }\\r\\n\\r\\n.leaflet-vml-shape {\\r\\n\\twidth: 1px;\\r\\n\\theight: 1px;\\r\\n\\t}\\r\\n.lvml {\\r\\n\\tbehavior: url(#default#VML);\\r\\n\\tdisplay: inline-block;\\r\\n\\tposition: absolute;\\r\\n\\t}\\r\\n\\r\\n\\r\\n/* control positioning */\\r\\n\\r\\n.leaflet-control {\\r\\n\\tposition: relative;\\r\\n\\tz-index: 800;\\r\\n\\tpointer-events: visiblePainted; /* IE 9-10 doesn't have auto */\\r\\n\\tpointer-events: auto;\\r\\n\\t}\\r\\n.leaflet-top,\\r\\n.leaflet-bottom {\\r\\n\\tposition: absolute;\\r\\n\\tz-index: 1000;\\r\\n\\tpointer-events: none;\\r\\n\\t}\\r\\n.leaflet-top {\\r\\n\\ttop: 0;\\r\\n\\t}\\r\\n.leaflet-right {\\r\\n\\tright: 0;\\r\\n\\t}\\r\\n.leaflet-bottom {\\r\\n\\tbottom: 0;\\r\\n\\t}\\r\\n.leaflet-left {\\r\\n\\tleft: 0;\\r\\n\\t}\\r\\n.leaflet-control {\\r\\n\\tfloat: left;\\r\\n\\tclear: both;\\r\\n\\t}\\r\\n.leaflet-right .leaflet-control {\\r\\n\\tfloat: right;\\r\\n\\t}\\r\\n.leaflet-top .leaflet-control {\\r\\n\\tmargin-top: 10px;\\r\\n\\t}\\r\\n.leaflet-bottom .leaflet-control {\\r\\n\\tmargin-bottom: 10px;\\r\\n\\t}\\r\\n.leaflet-left .leaflet-control {\\r\\n\\tmargin-left: 10px;\\r\\n\\t}\\r\\n.leaflet-right .leaflet-control {\\r\\n\\tmargin-right: 10px;\\r\\n\\t}\\r\\n\\r\\n\\r\\n/* zoom and fade animations */\\r\\n\\r\\n.leaflet-fade-anim .leaflet-tile {\\r\\n\\twill-change: opacity;\\r\\n\\t}\\r\\n.leaflet-fade-anim .leaflet-popup {\\r\\n\\topacity: 0;\\r\\n\\t-webkit-transition: opacity 0.2s linear;\\r\\n\\t -moz-transition: opacity 0.2s linear;\\r\\n\\t -o-transition: opacity 0.2s linear;\\r\\n\\t transition: opacity 0.2s linear;\\r\\n\\t}\\r\\n.leaflet-fade-anim .leaflet-map-pane .leaflet-popup {\\r\\n\\topacity: 1;\\r\\n\\t}\\r\\n.leaflet-zoom-animated {\\r\\n\\t-webkit-transform-origin: 0 0;\\r\\n\\t -ms-transform-origin: 0 0;\\r\\n\\t transform-origin: 0 0;\\r\\n\\t}\\r\\n.leaflet-zoom-anim .leaflet-zoom-animated {\\r\\n\\twill-change: transform;\\r\\n\\t}\\r\\n.leaflet-zoom-anim .leaflet-zoom-animated {\\r\\n\\t-webkit-transition: -webkit-transform 0.25s cubic-bezier(0,0,0.25,1);\\r\\n\\t -moz-transition: -moz-transform 0.25s cubic-bezier(0,0,0.25,1);\\r\\n\\t -o-transition: -o-transform 0.25s cubic-bezier(0,0,0.25,1);\\r\\n\\t transition: transform 0.25s cubic-bezier(0,0,0.25,1);\\r\\n\\t}\\r\\n.leaflet-zoom-anim .leaflet-tile,\\r\\n.leaflet-pan-anim .leaflet-tile {\\r\\n\\t-webkit-transition: none;\\r\\n\\t -moz-transition: none;\\r\\n\\t -o-transition: none;\\r\\n\\t transition: none;\\r\\n\\t}\\r\\n\\r\\n.leaflet-zoom-anim .leaflet-zoom-hide {\\r\\n\\tvisibility: hidden;\\r\\n\\t}\\r\\n\\r\\n\\r\\n/* cursors */\\r\\n\\r\\n.leaflet-interactive {\\r\\n\\tcursor: pointer;\\r\\n\\t}\\r\\n.leaflet-grab {\\r\\n\\tcursor: -webkit-grab;\\r\\n\\tcursor: -moz-grab;\\r\\n\\t}\\r\\n.leaflet-crosshair,\\r\\n.leaflet-crosshair .leaflet-interactive {\\r\\n\\tcursor: crosshair;\\r\\n\\t}\\r\\n.leaflet-popup-pane,\\r\\n.leaflet-control {\\r\\n\\tcursor: auto;\\r\\n\\t}\\r\\n.leaflet-dragging .leaflet-grab,\\r\\n.leaflet-dragging .leaflet-grab .leaflet-interactive,\\r\\n.leaflet-dragging .leaflet-marker-draggable {\\r\\n\\tcursor: move;\\r\\n\\tcursor: -webkit-grabbing;\\r\\n\\tcursor: -moz-grabbing;\\r\\n\\t}\\r\\n\\r\\n/* marker & overlays interactivity */\\r\\n.leaflet-marker-icon,\\r\\n.leaflet-marker-shadow,\\r\\n.leaflet-image-layer,\\r\\n.leaflet-pane > svg path,\\r\\n.leaflet-tile-container {\\r\\n\\tpointer-events: none;\\r\\n\\t}\\r\\n\\r\\n.leaflet-marker-icon.leaflet-interactive,\\r\\n.leaflet-image-layer.leaflet-interactive,\\r\\n.leaflet-pane > svg path.leaflet-interactive {\\r\\n\\tpointer-events: visiblePainted; /* IE 9-10 doesn't have auto */\\r\\n\\tpointer-events: auto;\\r\\n\\t}\\r\\n\\r\\n/* visual tweaks */\\r\\n\\r\\n.leaflet-container {\\r\\n\\tbackground: #ddd;\\r\\n\\toutline: 0;\\r\\n\\t}\\r\\n.leaflet-container a {\\r\\n\\tcolor: #0078A8;\\r\\n\\t}\\r\\n.leaflet-container a.leaflet-active {\\r\\n\\toutline: 2px solid orange;\\r\\n\\t}\\r\\n.leaflet-zoom-box {\\r\\n\\tborder: 2px dotted #38f;\\r\\n\\tbackground: rgba(255,255,255,0.5);\\r\\n\\t}\\r\\n\\r\\n\\r\\n/* general typography */\\r\\n.leaflet-container {\\r\\n\\tfont: 12px/1.5 \\\"Helvetica Neue\\\", Arial, Helvetica, sans-serif;\\r\\n\\t}\\r\\n\\r\\n\\r\\n/* general toolbar styles */\\r\\n\\r\\n.leaflet-bar {\\r\\n\\tbox-shadow: 0 1px 5px rgba(0,0,0,0.65);\\r\\n\\tborder-radius: 4px;\\r\\n\\t}\\r\\n.leaflet-bar a,\\r\\n.leaflet-bar a:hover {\\r\\n\\tbackground-color: #fff;\\r\\n\\tborder-bottom: 1px solid #ccc;\\r\\n\\twidth: 26px;\\r\\n\\theight: 26px;\\r\\n\\tline-height: 26px;\\r\\n\\tdisplay: block;\\r\\n\\ttext-align: center;\\r\\n\\ttext-decoration: none;\\r\\n\\tcolor: black;\\r\\n\\t}\\r\\n.leaflet-bar a,\\r\\n.leaflet-control-layers-toggle {\\r\\n\\tbackground-position: 50% 50%;\\r\\n\\tbackground-repeat: no-repeat;\\r\\n\\tdisplay: block;\\r\\n\\t}\\r\\n.leaflet-bar a:hover {\\r\\n\\tbackground-color: #f4f4f4;\\r\\n\\t}\\r\\n.leaflet-bar a:first-child {\\r\\n\\tborder-top-left-radius: 4px;\\r\\n\\tborder-top-right-radius: 4px;\\r\\n\\t}\\r\\n.leaflet-bar a:last-child {\\r\\n\\tborder-bottom-left-radius: 4px;\\r\\n\\tborder-bottom-right-radius: 4px;\\r\\n\\tborder-bottom: none;\\r\\n\\t}\\r\\n.leaflet-bar a.leaflet-disabled {\\r\\n\\tcursor: default;\\r\\n\\tbackground-color: #f4f4f4;\\r\\n\\tcolor: #bbb;\\r\\n\\t}\\r\\n\\r\\n.leaflet-touch .leaflet-bar a {\\r\\n\\twidth: 30px;\\r\\n\\theight: 30px;\\r\\n\\tline-height: 30px;\\r\\n\\t}\\r\\n.leaflet-touch .leaflet-bar a:first-child {\\r\\n\\tborder-top-left-radius: 2px;\\r\\n\\tborder-top-right-radius: 2px;\\r\\n\\t}\\r\\n.leaflet-touch .leaflet-bar a:last-child {\\r\\n\\tborder-bottom-left-radius: 2px;\\r\\n\\tborder-bottom-right-radius: 2px;\\r\\n\\t}\\r\\n\\r\\n/* zoom control */\\r\\n\\r\\n.leaflet-control-zoom-in,\\r\\n.leaflet-control-zoom-out {\\r\\n\\tfont: bold 18px 'Lucida Console', Monaco, monospace;\\r\\n\\ttext-indent: 1px;\\r\\n\\t}\\r\\n\\r\\n.leaflet-touch .leaflet-control-zoom-in, .leaflet-touch .leaflet-control-zoom-out {\\r\\n\\tfont-size: 22px;\\r\\n\\t}\\r\\n\\r\\n\\r\\n/* layers control */\\r\\n\\r\\n.leaflet-control-layers {\\r\\n\\tbox-shadow: 0 1px 5px rgba(0,0,0,0.4);\\r\\n\\tbackground: #fff;\\r\\n\\tborder-radius: 5px;\\r\\n\\t}\\r\\n.leaflet-control-layers-toggle {\\r\\n\\tbackground-image: url(\" + escape(require(\"./images/layers.png\")) + \");\\r\\n\\twidth: 36px;\\r\\n\\theight: 36px;\\r\\n\\t}\\r\\n.leaflet-retina .leaflet-control-layers-toggle {\\r\\n\\tbackground-image: url(\" + escape(require(\"./images/layers-2x.png\")) + \");\\r\\n\\tbackground-size: 26px 26px;\\r\\n\\t}\\r\\n.leaflet-touch .leaflet-control-layers-toggle {\\r\\n\\twidth: 44px;\\r\\n\\theight: 44px;\\r\\n\\t}\\r\\n.leaflet-control-layers .leaflet-control-layers-list,\\r\\n.leaflet-control-layers-expanded .leaflet-control-layers-toggle {\\r\\n\\tdisplay: none;\\r\\n\\t}\\r\\n.leaflet-control-layers-expanded .leaflet-control-layers-list {\\r\\n\\tdisplay: block;\\r\\n\\tposition: relative;\\r\\n\\t}\\r\\n.leaflet-control-layers-expanded {\\r\\n\\tpadding: 6px 10px 6px 6px;\\r\\n\\tcolor: #333;\\r\\n\\tbackground: #fff;\\r\\n\\t}\\r\\n.leaflet-control-layers-scrollbar {\\r\\n\\toverflow-y: scroll;\\r\\n\\toverflow-x: hidden;\\r\\n\\tpadding-right: 5px;\\r\\n\\t}\\r\\n.leaflet-control-layers-selector {\\r\\n\\tmargin-top: 2px;\\r\\n\\tposition: relative;\\r\\n\\ttop: 1px;\\r\\n\\t}\\r\\n.leaflet-control-layers label {\\r\\n\\tdisplay: block;\\r\\n\\t}\\r\\n.leaflet-control-layers-separator {\\r\\n\\theight: 0;\\r\\n\\tborder-top: 1px solid #ddd;\\r\\n\\tmargin: 5px -10px 5px -6px;\\r\\n\\t}\\r\\n\\r\\n/* Default icon URLs */\\r\\n.leaflet-default-icon-path {\\r\\n\\tbackground-image: url(\" + escape(require(\"./images/marker-icon.png\")) + \");\\r\\n\\t}\\r\\n\\r\\n\\r\\n/* attribution and scale controls */\\r\\n\\r\\n.leaflet-container .leaflet-control-attribution {\\r\\n\\tbackground: #fff;\\r\\n\\tbackground: rgba(255, 255, 255, 0.7);\\r\\n\\tmargin: 0;\\r\\n\\t}\\r\\n.leaflet-control-attribution,\\r\\n.leaflet-control-scale-line {\\r\\n\\tpadding: 0 5px;\\r\\n\\tcolor: #333;\\r\\n\\t}\\r\\n.leaflet-control-attribution a {\\r\\n\\ttext-decoration: none;\\r\\n\\t}\\r\\n.leaflet-control-attribution a:hover {\\r\\n\\ttext-decoration: underline;\\r\\n\\t}\\r\\n.leaflet-container .leaflet-control-attribution,\\r\\n.leaflet-container .leaflet-control-scale {\\r\\n\\tfont-size: 11px;\\r\\n\\t}\\r\\n.leaflet-left .leaflet-control-scale {\\r\\n\\tmargin-left: 5px;\\r\\n\\t}\\r\\n.leaflet-bottom .leaflet-control-scale {\\r\\n\\tmargin-bottom: 5px;\\r\\n\\t}\\r\\n.leaflet-control-scale-line {\\r\\n\\tborder: 2px solid #777;\\r\\n\\tborder-top: none;\\r\\n\\tline-height: 1.1;\\r\\n\\tpadding: 2px 5px 1px;\\r\\n\\tfont-size: 11px;\\r\\n\\twhite-space: nowrap;\\r\\n\\toverflow: hidden;\\r\\n\\t-moz-box-sizing: border-box;\\r\\n\\t box-sizing: border-box;\\r\\n\\r\\n\\tbackground: #fff;\\r\\n\\tbackground: rgba(255, 255, 255, 0.5);\\r\\n\\t}\\r\\n.leaflet-control-scale-line:not(:first-child) {\\r\\n\\tborder-top: 2px solid #777;\\r\\n\\tborder-bottom: none;\\r\\n\\tmargin-top: -2px;\\r\\n\\t}\\r\\n.leaflet-control-scale-line:not(:first-child):not(:last-child) {\\r\\n\\tborder-bottom: 2px solid #777;\\r\\n\\t}\\r\\n\\r\\n.leaflet-touch .leaflet-control-attribution,\\r\\n.leaflet-touch .leaflet-control-layers,\\r\\n.leaflet-touch .leaflet-bar {\\r\\n\\tbox-shadow: none;\\r\\n\\t}\\r\\n.leaflet-touch .leaflet-control-layers,\\r\\n.leaflet-touch .leaflet-bar {\\r\\n\\tborder: 2px solid rgba(0,0,0,0.2);\\r\\n\\tbackground-clip: padding-box;\\r\\n\\t}\\r\\n\\r\\n\\r\\n/* popup */\\r\\n\\r\\n.leaflet-popup {\\r\\n\\tposition: absolute;\\r\\n\\ttext-align: center;\\r\\n\\tmargin-bottom: 20px;\\r\\n\\t}\\r\\n.leaflet-popup-content-wrapper {\\r\\n\\tpadding: 1px;\\r\\n\\ttext-align: left;\\r\\n\\tborder-radius: 12px;\\r\\n\\t}\\r\\n.leaflet-popup-content {\\r\\n\\tmargin: 13px 19px;\\r\\n\\tline-height: 1.4;\\r\\n\\t}\\r\\n.leaflet-popup-content p {\\r\\n\\tmargin: 18px 0;\\r\\n\\t}\\r\\n.leaflet-popup-tip-container {\\r\\n\\twidth: 40px;\\r\\n\\theight: 20px;\\r\\n\\tposition: absolute;\\r\\n\\tleft: 50%;\\r\\n\\tmargin-left: -20px;\\r\\n\\toverflow: hidden;\\r\\n\\tpointer-events: none;\\r\\n\\t}\\r\\n.leaflet-popup-tip {\\r\\n\\twidth: 17px;\\r\\n\\theight: 17px;\\r\\n\\tpadding: 1px;\\r\\n\\r\\n\\tmargin: -10px auto 0;\\r\\n\\r\\n\\t-webkit-transform: rotate(45deg);\\r\\n\\t -moz-transform: rotate(45deg);\\r\\n\\t -ms-transform: rotate(45deg);\\r\\n\\t -o-transform: rotate(45deg);\\r\\n\\t transform: rotate(45deg);\\r\\n\\t}\\r\\n.leaflet-popup-content-wrapper,\\r\\n.leaflet-popup-tip {\\r\\n\\tbackground: white;\\r\\n\\tcolor: #333;\\r\\n\\tbox-shadow: 0 3px 14px rgba(0,0,0,0.4);\\r\\n\\t}\\r\\n.leaflet-container a.leaflet-popup-close-button {\\r\\n\\tposition: absolute;\\r\\n\\ttop: 0;\\r\\n\\tright: 0;\\r\\n\\tpadding: 4px 4px 0 0;\\r\\n\\tborder: none;\\r\\n\\ttext-align: center;\\r\\n\\twidth: 18px;\\r\\n\\theight: 14px;\\r\\n\\tfont: 16px/14px Tahoma, Verdana, sans-serif;\\r\\n\\tcolor: #c3c3c3;\\r\\n\\ttext-decoration: none;\\r\\n\\tfont-weight: bold;\\r\\n\\tbackground: transparent;\\r\\n\\t}\\r\\n.leaflet-container a.leaflet-popup-close-button:hover {\\r\\n\\tcolor: #999;\\r\\n\\t}\\r\\n.leaflet-popup-scrolled {\\r\\n\\toverflow: auto;\\r\\n\\tborder-bottom: 1px solid #ddd;\\r\\n\\tborder-top: 1px solid #ddd;\\r\\n\\t}\\r\\n\\r\\n.leaflet-oldie .leaflet-popup-content-wrapper {\\r\\n\\tzoom: 1;\\r\\n\\t}\\r\\n.leaflet-oldie .leaflet-popup-tip {\\r\\n\\twidth: 24px;\\r\\n\\tmargin: 0 auto;\\r\\n\\r\\n\\t-ms-filter: \\\"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)\\\";\\r\\n\\tfilter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);\\r\\n\\t}\\r\\n.leaflet-oldie .leaflet-popup-tip-container {\\r\\n\\tmargin-top: -1px;\\r\\n\\t}\\r\\n\\r\\n.leaflet-oldie .leaflet-control-zoom,\\r\\n.leaflet-oldie .leaflet-control-layers,\\r\\n.leaflet-oldie .leaflet-popup-content-wrapper,\\r\\n.leaflet-oldie .leaflet-popup-tip {\\r\\n\\tborder: 1px solid #999;\\r\\n\\t}\\r\\n\\r\\n\\r\\n/* div icon */\\r\\n\\r\\n.leaflet-div-icon {\\r\\n\\tbackground: #fff;\\r\\n\\tborder: 1px solid #666;\\r\\n\\t}\\r\\n\\r\\n\\r\\n/* Tooltip */\\r\\n/* Base styles for the element that has a tooltip */\\r\\n.leaflet-tooltip {\\r\\n\\tposition: absolute;\\r\\n\\tpadding: 6px;\\r\\n\\tbackground-color: #fff;\\r\\n\\tborder: 1px solid #fff;\\r\\n\\tborder-radius: 3px;\\r\\n\\tcolor: #222;\\r\\n\\twhite-space: nowrap;\\r\\n\\t-webkit-user-select: none;\\r\\n\\t-moz-user-select: none;\\r\\n\\t-ms-user-select: none;\\r\\n\\tuser-select: none;\\r\\n\\tpointer-events: none;\\r\\n\\tbox-shadow: 0 1px 3px rgba(0,0,0,0.4);\\r\\n\\t}\\r\\n.leaflet-tooltip.leaflet-clickable {\\r\\n\\tcursor: pointer;\\r\\n\\tpointer-events: auto;\\r\\n\\t}\\r\\n.leaflet-tooltip-top:before,\\r\\n.leaflet-tooltip-bottom:before,\\r\\n.leaflet-tooltip-left:before,\\r\\n.leaflet-tooltip-right:before {\\r\\n\\tposition: absolute;\\r\\n\\tpointer-events: none;\\r\\n\\tborder: 6px solid transparent;\\r\\n\\tbackground: transparent;\\r\\n\\tcontent: \\\"\\\";\\r\\n\\t}\\r\\n\\r\\n/* Directions */\\r\\n\\r\\n.leaflet-tooltip-bottom {\\r\\n\\tmargin-top: 6px;\\r\\n}\\r\\n.leaflet-tooltip-top {\\r\\n\\tmargin-top: -6px;\\r\\n}\\r\\n.leaflet-tooltip-bottom:before,\\r\\n.leaflet-tooltip-top:before {\\r\\n\\tleft: 50%;\\r\\n\\tmargin-left: -6px;\\r\\n\\t}\\r\\n.leaflet-tooltip-top:before {\\r\\n\\tbottom: 0;\\r\\n\\tmargin-bottom: -12px;\\r\\n\\tborder-top-color: #fff;\\r\\n\\t}\\r\\n.leaflet-tooltip-bottom:before {\\r\\n\\ttop: 0;\\r\\n\\tmargin-top: -12px;\\r\\n\\tmargin-left: -6px;\\r\\n\\tborder-bottom-color: #fff;\\r\\n\\t}\\r\\n.leaflet-tooltip-left {\\r\\n\\tmargin-left: -6px;\\r\\n}\\r\\n.leaflet-tooltip-right {\\r\\n\\tmargin-left: 6px;\\r\\n}\\r\\n.leaflet-tooltip-left:before,\\r\\n.leaflet-tooltip-right:before {\\r\\n\\ttop: 50%;\\r\\n\\tmargin-top: -6px;\\r\\n\\t}\\r\\n.leaflet-tooltip-left:before {\\r\\n\\tright: 0;\\r\\n\\tmargin-right: -12px;\\r\\n\\tborder-left-color: #fff;\\r\\n\\t}\\r\\n.leaflet-tooltip-right:before {\\r\\n\\tleft: 0;\\r\\n\\tmargin-left: -12px;\\r\\n\\tborder-right-color: #fff;\\r\\n\\t}\\r\\n\", \"\"]);\n\n// exports\n"
},
{
"id": 131,
"identifier": "/Users/user/Projects/orchid/node_modules/css-loader/lib/url/escape.js",
"name": "./node_modules/css-loader/lib/url/escape.js",
"index": 107,
"index2": 101,
"size": 448,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/css-loader/index.js!/Users/user/Projects/orchid/node_modules/leaflet/dist/leaflet.css",
"issuerId": 130,
"issuerName": "./node_modules/css-loader!./node_modules/leaflet/dist/leaflet.css",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 126,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Map.js",
"name": "./src/modules/Map.js"
},
{
"id": 129,
"identifier": "/Users/user/Projects/orchid/node_modules/style-loader/index.js!/Users/user/Projects/orchid/node_modules/css-loader/index.js!/Users/user/Projects/orchid/node_modules/leaflet/dist/leaflet.css",
"name": "./node_modules/leaflet/dist/leaflet.css"
},
{
"id": 130,
"identifier": "/Users/user/Projects/orchid/node_modules/css-loader/index.js!/Users/user/Projects/orchid/node_modules/leaflet/dist/leaflet.css",
"name": "./node_modules/css-loader!./node_modules/leaflet/dist/leaflet.css"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 130,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/css-loader/index.js!/Users/user/Projects/orchid/node_modules/leaflet/dist/leaflet.css",
"module": "./node_modules/css-loader!./node_modules/leaflet/dist/leaflet.css",
"moduleName": "./node_modules/css-loader!./node_modules/leaflet/dist/leaflet.css",
"type": "cjs require",
"userRequest": "../../css-loader/lib/url/escape.js",
"loc": "1:13-58"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 6,
"source": "module.exports = function escape(url) {\n if (typeof url !== 'string') {\n return url\n }\n // If url is already wrapped in quotes, remove them\n if (/^['\"].*['\"]$/.test(url)) {\n url = url.slice(1, -1);\n }\n // Should url be wrapped?\n // See https://drafts.csswg.org/css-values-3/#urls\n if (/[\"'() \\t\\n]/.test(url)) {\n return '\"' + url.replace(/\"/g, '\\\\\"').replace(/\\n/g, '\\\\n') + '\"'\n }\n\n return url\n}\n"
},
{
"id": 132,
"identifier": "/Users/user/Projects/orchid/node_modules/file-loader/dist/cjs.js??ref--8!/Users/user/Projects/orchid/node_modules/leaflet/dist/images/layers.png",
"name": "./node_modules/leaflet/dist/images/layers.png",
"index": 109,
"index2": 103,
"size": 82,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/css-loader/index.js!/Users/user/Projects/orchid/node_modules/leaflet/dist/leaflet.css",
"issuerId": 130,
"issuerName": "./node_modules/css-loader!./node_modules/leaflet/dist/leaflet.css",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 126,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Map.js",
"name": "./src/modules/Map.js"
},
{
"id": 129,
"identifier": "/Users/user/Projects/orchid/node_modules/style-loader/index.js!/Users/user/Projects/orchid/node_modules/css-loader/index.js!/Users/user/Projects/orchid/node_modules/leaflet/dist/leaflet.css",
"name": "./node_modules/leaflet/dist/leaflet.css"
},
{
"id": 130,
"identifier": "/Users/user/Projects/orchid/node_modules/css-loader/index.js!/Users/user/Projects/orchid/node_modules/leaflet/dist/leaflet.css",
"name": "./node_modules/css-loader!./node_modules/leaflet/dist/leaflet.css"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [
"a6137456ed160d7606981aa57c559898.png"
],
"reasons": [
{
"moduleId": 130,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/css-loader/index.js!/Users/user/Projects/orchid/node_modules/leaflet/dist/leaflet.css",
"module": "./node_modules/css-loader!./node_modules/leaflet/dist/leaflet.css",
"moduleName": "./node_modules/css-loader!./node_modules/leaflet/dist/leaflet.css",
"type": "cjs require",
"userRequest": "./images/layers.png",
"loc": "7:8773-8803"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 6,
"source": "module.exports = __webpack_public_path__ + \"a6137456ed160d7606981aa57c559898.png\";"
},
{
"id": 133,
"identifier": "/Users/user/Projects/orchid/node_modules/file-loader/dist/cjs.js??ref--8!/Users/user/Projects/orchid/node_modules/leaflet/dist/images/layers-2x.png",
"name": "./node_modules/leaflet/dist/images/layers-2x.png",
"index": 110,
"index2": 104,
"size": 82,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/css-loader/index.js!/Users/user/Projects/orchid/node_modules/leaflet/dist/leaflet.css",
"issuerId": 130,
"issuerName": "./node_modules/css-loader!./node_modules/leaflet/dist/leaflet.css",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 126,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Map.js",
"name": "./src/modules/Map.js"
},
{
"id": 129,
"identifier": "/Users/user/Projects/orchid/node_modules/style-loader/index.js!/Users/user/Projects/orchid/node_modules/css-loader/index.js!/Users/user/Projects/orchid/node_modules/leaflet/dist/leaflet.css",
"name": "./node_modules/leaflet/dist/leaflet.css"
},
{
"id": 130,
"identifier": "/Users/user/Projects/orchid/node_modules/css-loader/index.js!/Users/user/Projects/orchid/node_modules/leaflet/dist/leaflet.css",
"name": "./node_modules/css-loader!./node_modules/leaflet/dist/leaflet.css"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [
"4f0283c6ce28e888000e978e537a6a56.png"
],
"reasons": [
{
"moduleId": 130,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/css-loader/index.js!/Users/user/Projects/orchid/node_modules/leaflet/dist/leaflet.css",
"module": "./node_modules/css-loader!./node_modules/leaflet/dist/leaflet.css",
"moduleName": "./node_modules/css-loader!./node_modules/leaflet/dist/leaflet.css",
"type": "cjs require",
"userRequest": "./images/layers-2x.png",
"loc": "7:8945-8978"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 6,
"source": "module.exports = __webpack_public_path__ + \"4f0283c6ce28e888000e978e537a6a56.png\";"
},
{
"id": 134,
"identifier": "/Users/user/Projects/orchid/node_modules/file-loader/dist/cjs.js??ref--8!/Users/user/Projects/orchid/node_modules/leaflet/dist/images/marker-icon.png",
"name": "./node_modules/leaflet/dist/images/marker-icon.png",
"index": 111,
"index2": 105,
"size": 82,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/css-loader/index.js!/Users/user/Projects/orchid/node_modules/leaflet/dist/leaflet.css",
"issuerId": 130,
"issuerName": "./node_modules/css-loader!./node_modules/leaflet/dist/leaflet.css",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 126,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Map.js",
"name": "./src/modules/Map.js"
},
{
"id": 129,
"identifier": "/Users/user/Projects/orchid/node_modules/style-loader/index.js!/Users/user/Projects/orchid/node_modules/css-loader/index.js!/Users/user/Projects/orchid/node_modules/leaflet/dist/leaflet.css",
"name": "./node_modules/leaflet/dist/leaflet.css"
},
{
"id": 130,
"identifier": "/Users/user/Projects/orchid/node_modules/css-loader/index.js!/Users/user/Projects/orchid/node_modules/leaflet/dist/leaflet.css",
"name": "./node_modules/css-loader!./node_modules/leaflet/dist/leaflet.css"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [
"2273e3d8ad9264b7daa5bdbf8e6b47f8.png"
],
"reasons": [
{
"moduleId": 130,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/css-loader/index.js!/Users/user/Projects/orchid/node_modules/leaflet/dist/leaflet.css",
"module": "./node_modules/css-loader!./node_modules/leaflet/dist/leaflet.css",
"moduleName": "./node_modules/css-loader!./node_modules/leaflet/dist/leaflet.css",
"type": "cjs require",
"userRequest": "./images/marker-icon.png",
"loc": "7:10032-10067"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 6,
"source": "module.exports = __webpack_public_path__ + \"2273e3d8ad9264b7daa5bdbf8e6b47f8.png\";"
},
{
"id": 135,
"identifier": "/Users/user/Projects/orchid/node_modules/style-loader/lib/urls.js",
"name": "./node_modules/style-loader/lib/urls.js",
"index": 113,
"index2": 107,
"size": 3013,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/style-loader/lib/addStyles.js",
"issuerId": 42,
"issuerName": "./node_modules/style-loader/lib/addStyles.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 189,
"identifier": "/Users/user/Projects/orchid/node_modules/style-loader/index.js!/Users/user/Projects/orchid/node_modules/css-loader/index.js!/Users/user/Projects/orchid/node_modules/less-loader/dist/cjs.js!/Users/user/Projects/orchid/src/styles/map.less",
"name": "./src/styles/map.less"
},
{
"id": 42,
"identifier": "/Users/user/Projects/orchid/node_modules/style-loader/lib/addStyles.js",
"name": "./node_modules/style-loader/lib/addStyles.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 42,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/style-loader/lib/addStyles.js",
"module": "./node_modules/style-loader/lib/addStyles.js",
"moduleName": "./node_modules/style-loader/lib/addStyles.js",
"type": "cjs require",
"userRequest": "./urls",
"loc": "64:14-31"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 3,
"source": "\n/**\n * When source maps are enabled, `style-loader` uses a link element with a data-uri to\n * embed the css on the page. This breaks all relative urls because now they are relative to a\n * bundle instead of the current page.\n *\n * One solution is to only use full urls, but that may be impossible.\n *\n * Instead, this function \"fixes\" the relative urls to be absolute according to the current page location.\n *\n * A rudimentary test suite is located at `test/fixUrls.js` and can be run via the `npm test` command.\n *\n */\n\nmodule.exports = function (css) {\n // get current location\n var location = typeof window !== \"undefined\" && window.location;\n\n if (!location) {\n throw new Error(\"fixUrls requires window.location\");\n }\n\n\t// blank or null?\n\tif (!css || typeof css !== \"string\") {\n\t return css;\n }\n\n var baseUrl = location.protocol + \"//\" + location.host;\n var currentDir = baseUrl + location.pathname.replace(/\\/[^\\/]*$/, \"/\");\n\n\t// convert each url(...)\n\t/*\n\tThis regular expression is just a way to recursively match brackets within\n\ta string.\n\n\t /url\\s*\\( = Match on the word \"url\" with any whitespace after it and then a parens\n\t ( = Start a capturing group\n\t (?: = Start a non-capturing group\n\t [^)(] = Match anything that isn't a parentheses\n\t | = OR\n\t \\( = Match a start parentheses\n\t (?: = Start another non-capturing groups\n\t [^)(]+ = Match anything that isn't a parentheses\n\t | = OR\n\t \\( = Match a start parentheses\n\t [^)(]* = Match anything that isn't a parentheses\n\t \\) = Match a end parentheses\n\t ) = End Group\n *\\) = Match anything and then a close parens\n ) = Close non-capturing group\n * = Match anything\n ) = Close capturing group\n\t \\) = Match a close parens\n\n\t /gi = Get all matches, not the first. Be case insensitive.\n\t */\n\tvar fixedCss = css.replace(/url\\s*\\(((?:[^)(]|\\((?:[^)(]+|\\([^)(]*\\))*\\))*)\\)/gi, function(fullMatch, origUrl) {\n\t\t// strip quotes (if they exist)\n\t\tvar unquotedOrigUrl = origUrl\n\t\t\t.trim()\n\t\t\t.replace(/^\"(.*)\"$/, function(o, $1){ return $1; })\n\t\t\t.replace(/^'(.*)'$/, function(o, $1){ return $1; });\n\n\t\t// already a full url? no change\n\t\tif (/^(#|data:|http:\\/\\/|https:\\/\\/|file:\\/\\/\\/|\\s*$)/i.test(unquotedOrigUrl)) {\n\t\t return fullMatch;\n\t\t}\n\n\t\t// convert the url to a full url\n\t\tvar newUrl;\n\n\t\tif (unquotedOrigUrl.indexOf(\"//\") === 0) {\n\t\t \t//TODO: should we add protocol?\n\t\t\tnewUrl = unquotedOrigUrl;\n\t\t} else if (unquotedOrigUrl.indexOf(\"/\") === 0) {\n\t\t\t// path should be relative to the base url\n\t\t\tnewUrl = baseUrl + unquotedOrigUrl; // already starts with '/'\n\t\t} else {\n\t\t\t// path should be relative to current directory\n\t\t\tnewUrl = currentDir + unquotedOrigUrl.replace(/^\\.\\//, \"\"); // Strip leading './'\n\t\t}\n\n\t\t// send back the fixed url(...)\n\t\treturn \"url(\" + JSON.stringify(newUrl) + \")\";\n\t});\n\n\t// send back the fixed css\n\treturn fixedCss;\n};\n"
},
{
"id": 136,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Poly.js",
"name": "./src/modules/Poly.js",
"index": 115,
"index2": 121,
"size": 4906,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"issuerId": 124,
"issuerName": "./src/modules/Editor.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 124,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"module": "./src/modules/Editor.js",
"moduleName": "./src/modules/Editor.js",
"type": "cjs require",
"userRequest": "$modules/Poly",
"loc": "22:12-36"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 3,
"source": "'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.Poly = undefined;\n\nvar _slicedToArray2 = require('babel-runtime/helpers/slicedToArray');\n\nvar _slicedToArray3 = _interopRequireDefault(_slicedToArray2);\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _leaflet = require('leaflet');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n(function () {\n var enterModule = require('react-hot-loader').enterModule;\n\n enterModule && enterModule(module);\n})();\n\nvar polyStyle = { color: '#ff3333', weight: '5' };\n\nvar Poly = exports.Poly = function () {\n function Poly(_ref) {\n var _this = this;\n\n var map = _ref.map,\n routerMoveStart = _ref.routerMoveStart,\n lockMapClicks = _ref.lockMapClicks;\n (0, _classCallCheck3.default)(this, Poly);\n\n this.updateMarks = function () {\n console.log('upd');\n var coords = _this.poly.toGeoJSON().geometry.coordinates;\n _this.latlngs = coords && coords.length && coords.map(function (_ref2) {\n var _ref3 = (0, _slicedToArray3.default)(_ref2, 2),\n lng = _ref3[0],\n lat = _ref3[1];\n\n return { lng: lng, lat: lat };\n }) || [];\n\n _this.routerMoveStart();\n };\n\n this.bindEvents = function () {\n // Если на карте что-то меняется, пересчитать километражи\n _this.map.editTools.addEventListener('editable:drawing:mouseup', _this.updateMarks);\n _this.map.editTools.addEventListener('editable:vertex:dragend', _this.updateMarks);\n _this.map.editTools.addEventListener('editable:vertex:mouseup', _this.updateMarks);\n _this.map.editTools.addEventListener('editable:vertex:deleted', _this.updateMarks);\n _this.map.editTools.addEventListener('editable:vertex:new', _this.updateMarks);\n\n _this.map.editTools.addEventListener('editable:vertex:dragstart', _this.lockMap);\n\n // После удаления точки - продолжить рисование\n _this.map.editTools.addEventListener('editable:vertex:deleted', _this.continueForward);\n //\n // map.editTools.addEventListener('editable:vertex:dragend', e => writeReduxData({ e, updatePolyCoords }));\n // map.editTools.addEventListener('editable:vertex:new', e => writeReduxData({ e, updatePolyCoords }));\n // map.editTools.addEventListener('editable:vertex:deleted', e => writeReduxData({ e, updatePolyCoords }));\n\n // Продолжить рисование после удаления точки\n // map.editTools.addEventListener('editable:vertex:deleted', e => {\n // poly.editor.continueForward();\n // updateMarks();\n // });\n\n // Добавлять точек в полилинию по щелчку\n // map.editTools.addEventListener('editable:drawing:click', e => insertVertex({ e, updatePolyCoords }));\n // map.editTools.addEventListener('editable:drawing:clicked', () => updateMarks({ updatePolyCoords }));\n\n // Это для точек. При перетаскивании конца указателя тащим точку\n // map.editTools.addEventListener('editable:vertex:drag', on_vertex_drag);\n\n // при перетаскивании ручек убирать все отметки километров\n // map.editTools.addEventListener('editable:vertex:dragstart', clearKmMarks);\n };\n\n this.continue = function () {\n if (_this.latlngs && _this.latlngs.length) {\n _this.poly.enableEdit().continueForward();\n _this.poly.editor.reset();\n } else {\n _this.poly = _this.map.editTools.startPolyline();\n _this.poly.setStyle(polyStyle);\n }\n };\n\n this.stop = function () {\n if (_this.map.editTools) _this.map.editTools.stopDrawing();\n };\n\n this.continueForward = function () {\n if (!_this.poly.editor) return;\n _this.poly.editor.continueForward();\n };\n\n this.lockMap = function () {\n _this.lockMapClicks(true);\n };\n\n this.poly = (0, _leaflet.polyline)([], polyStyle);\n this.latlngs = [];\n this.poly.addTo(map);\n this.map = map;\n\n this.routerMoveStart = routerMoveStart;\n this.lockMapClicks = lockMapClicks;\n this.bindEvents();\n }\n\n (0, _createClass3.default)(Poly, [{\n key: '__reactstandin__regenerateByEval',\n // @ts-ignore\n value: function __reactstandin__regenerateByEval(key, code) {\n // @ts-ignore\n this[key] = eval(code);\n }\n }]);\n return Poly;\n}();\n\n;\n\n(function () {\n var reactHotLoader = require('react-hot-loader').default;\n\n var leaveModule = require('react-hot-loader').leaveModule;\n\n if (!reactHotLoader) {\n return;\n }\n\n reactHotLoader.register(polyStyle, 'polyStyle', '/Users/user/Projects/orchid/src/modules/Poly.js');\n reactHotLoader.register(Poly, 'Poly', '/Users/user/Projects/orchid/src/modules/Poly.js');\n leaveModule(module);\n})();\n\n;"
},
{
"id": 137,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/slicedToArray.js",
"name": "./node_modules/babel-runtime/helpers/slicedToArray.js",
"index": 116,
"index2": 120,
"size": 1204,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Poly.js",
"issuerId": 136,
"issuerName": "./src/modules/Poly.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 136,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Poly.js",
"name": "./src/modules/Poly.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 136,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Poly.js",
"module": "./src/modules/Poly.js",
"moduleName": "./src/modules/Poly.js",
"type": "cjs require",
"userRequest": "babel-runtime/helpers/slicedToArray",
"loc": "8:22-68"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 4,
"source": "\"use strict\";\n\nexports.__esModule = true;\n\nvar _isIterable2 = require(\"../core-js/is-iterable\");\n\nvar _isIterable3 = _interopRequireDefault(_isIterable2);\n\nvar _getIterator2 = require(\"../core-js/get-iterator\");\n\nvar _getIterator3 = _interopRequireDefault(_getIterator2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function () {\n function sliceIterator(arr, i) {\n var _arr = [];\n var _n = true;\n var _d = false;\n var _e = undefined;\n\n try {\n for (var _i = (0, _getIterator3.default)(arr), _s; !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"]) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n\n return _arr;\n }\n\n return function (arr, i) {\n if (Array.isArray(arr)) {\n return arr;\n } else if ((0, _isIterable3.default)(Object(arr))) {\n return sliceIterator(arr, i);\n } else {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance\");\n }\n };\n}();"
},
{
"id": 138,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/is-iterable.js",
"name": "./node_modules/babel-runtime/core-js/is-iterable.js",
"index": 117,
"index2": 115,
"size": 92,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/slicedToArray.js",
"issuerId": 137,
"issuerName": "./node_modules/babel-runtime/helpers/slicedToArray.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 136,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Poly.js",
"name": "./src/modules/Poly.js"
},
{
"id": 137,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/slicedToArray.js",
"name": "./node_modules/babel-runtime/helpers/slicedToArray.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 137,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/slicedToArray.js",
"module": "./node_modules/babel-runtime/helpers/slicedToArray.js",
"moduleName": "./node_modules/babel-runtime/helpers/slicedToArray.js",
"type": "cjs require",
"userRequest": "../core-js/is-iterable",
"loc": "5:19-52"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 5,
"source": "module.exports = { \"default\": require(\"core-js/library/fn/is-iterable\"), __esModule: true };"
},
{
"id": 139,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/is-iterable.js",
"name": "./node_modules/core-js/library/fn/is-iterable.js",
"index": 118,
"index2": 114,
"size": 140,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/is-iterable.js",
"issuerId": 138,
"issuerName": "./node_modules/babel-runtime/core-js/is-iterable.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 136,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Poly.js",
"name": "./src/modules/Poly.js"
},
{
"id": 137,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/slicedToArray.js",
"name": "./node_modules/babel-runtime/helpers/slicedToArray.js"
},
{
"id": 138,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/is-iterable.js",
"name": "./node_modules/babel-runtime/core-js/is-iterable.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 138,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/is-iterable.js",
"module": "./node_modules/babel-runtime/core-js/is-iterable.js",
"moduleName": "./node_modules/babel-runtime/core-js/is-iterable.js",
"type": "cjs require",
"userRequest": "core-js/library/fn/is-iterable",
"loc": "1:30-71"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 6,
"source": "require('../modules/web.dom.iterable');\nrequire('../modules/es6.string.iterator');\nmodule.exports = require('../modules/core.is-iterable');\n"
},
{
"id": 140,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/core.is-iterable.js",
"name": "./node_modules/core-js/library/modules/core.is-iterable.js",
"index": 119,
"index2": 113,
"size": 373,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/is-iterable.js",
"issuerId": 139,
"issuerName": "./node_modules/core-js/library/fn/is-iterable.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 136,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Poly.js",
"name": "./src/modules/Poly.js"
},
{
"id": 137,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/slicedToArray.js",
"name": "./node_modules/babel-runtime/helpers/slicedToArray.js"
},
{
"id": 138,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/is-iterable.js",
"name": "./node_modules/babel-runtime/core-js/is-iterable.js"
},
{
"id": 139,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/is-iterable.js",
"name": "./node_modules/core-js/library/fn/is-iterable.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 139,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/is-iterable.js",
"module": "./node_modules/core-js/library/fn/is-iterable.js",
"moduleName": "./node_modules/core-js/library/fn/is-iterable.js",
"type": "cjs require",
"userRequest": "../modules/core.is-iterable",
"loc": "3:17-55"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "var classof = require('./_classof');\nvar ITERATOR = require('./_wks')('iterator');\nvar Iterators = require('./_iterators');\nmodule.exports = require('./_core').isIterable = function (it) {\n var O = Object(it);\n return O[ITERATOR] !== undefined\n || '@@iterator' in O\n // eslint-disable-next-line no-prototype-builtins\n || Iterators.hasOwnProperty(classof(O));\n};\n"
},
{
"id": 141,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/get-iterator.js",
"name": "./node_modules/babel-runtime/core-js/get-iterator.js",
"index": 121,
"index2": 119,
"size": 93,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/slicedToArray.js",
"issuerId": 137,
"issuerName": "./node_modules/babel-runtime/helpers/slicedToArray.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 136,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Poly.js",
"name": "./src/modules/Poly.js"
},
{
"id": 137,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/slicedToArray.js",
"name": "./node_modules/babel-runtime/helpers/slicedToArray.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 137,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/slicedToArray.js",
"module": "./node_modules/babel-runtime/helpers/slicedToArray.js",
"moduleName": "./node_modules/babel-runtime/helpers/slicedToArray.js",
"type": "cjs require",
"userRequest": "../core-js/get-iterator",
"loc": "9:20-54"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 5,
"source": "module.exports = { \"default\": require(\"core-js/library/fn/get-iterator\"), __esModule: true };"
},
{
"id": 142,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/get-iterator.js",
"name": "./node_modules/core-js/library/fn/get-iterator.js",
"index": 122,
"index2": 118,
"size": 141,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/get-iterator.js",
"issuerId": 141,
"issuerName": "./node_modules/babel-runtime/core-js/get-iterator.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 136,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Poly.js",
"name": "./src/modules/Poly.js"
},
{
"id": 137,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/slicedToArray.js",
"name": "./node_modules/babel-runtime/helpers/slicedToArray.js"
},
{
"id": 141,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/get-iterator.js",
"name": "./node_modules/babel-runtime/core-js/get-iterator.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 141,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/get-iterator.js",
"module": "./node_modules/babel-runtime/core-js/get-iterator.js",
"moduleName": "./node_modules/babel-runtime/core-js/get-iterator.js",
"type": "cjs require",
"userRequest": "core-js/library/fn/get-iterator",
"loc": "1:30-72"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 6,
"source": "require('../modules/web.dom.iterable');\nrequire('../modules/es6.string.iterator');\nmodule.exports = require('../modules/core.get-iterator');\n"
},
{
"id": 143,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/core.get-iterator.js",
"name": "./node_modules/core-js/library/modules/core.get-iterator.js",
"index": 123,
"index2": 117,
"size": 296,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/get-iterator.js",
"issuerId": 142,
"issuerName": "./node_modules/core-js/library/fn/get-iterator.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 136,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Poly.js",
"name": "./src/modules/Poly.js"
},
{
"id": 137,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/slicedToArray.js",
"name": "./node_modules/babel-runtime/helpers/slicedToArray.js"
},
{
"id": 141,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/get-iterator.js",
"name": "./node_modules/babel-runtime/core-js/get-iterator.js"
},
{
"id": 142,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/get-iterator.js",
"name": "./node_modules/core-js/library/fn/get-iterator.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 142,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/get-iterator.js",
"module": "./node_modules/core-js/library/fn/get-iterator.js",
"moduleName": "./node_modules/core-js/library/fn/get-iterator.js",
"type": "cjs require",
"userRequest": "../modules/core.get-iterator",
"loc": "3:17-56"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "var anObject = require('./_an-object');\nvar get = require('./core.get-iterator-method');\nmodule.exports = require('./_core').getIterator = function (it) {\n var iterFn = get(it);\n if (typeof iterFn != 'function') throw TypeError(it + ' is not iterable!');\n return anObject(iterFn.call(it));\n};\n"
},
{
"id": 144,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Stickers.js",
"name": "./src/modules/Stickers.js",
"index": 126,
"index2": 125,
"size": 2420,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"issuerId": 124,
"issuerName": "./src/modules/Editor.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 124,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"module": "./src/modules/Editor.js",
"moduleName": "./src/modules/Editor.js",
"type": "cjs require",
"userRequest": "$modules/Stickers",
"loc": "26:16-44"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 3,
"source": "'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.Stickers = undefined;\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _leaflet = require('leaflet');\n\nvar _Sticker = require('$modules/Sticker');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n(function () {\n var enterModule = require('react-hot-loader').enterModule;\n\n enterModule && enterModule(module);\n})();\n\nvar Stickers = exports.Stickers = function () {\n function Stickers(_ref) {\n var _this = this;\n\n var map = _ref.map,\n lockMapClicks = _ref.lockMapClicks;\n (0, _classCallCheck3.default)(this, Stickers);\n\n this.createOnClick = function (e) {\n if (!e || !e.latlng) return;\n\n var latlng = e.latlng;\n\n _this.createSticker({ latlng: latlng });\n };\n\n this.createSticker = function (_ref2) {\n var latlng = _ref2.latlng;\n\n var sticker = new _Sticker.Sticker({\n latlng: latlng,\n deleteSticker: _this.deleteStickerByReference,\n map: _this.map,\n lockMapClicks: _this.lockMapClicks\n });\n _this.stickers.push(sticker);\n\n sticker.sticker.addTo(_this.map);\n sticker.sticker.enableEdit();\n };\n\n this.deleteStickerByReference = function (ref) {\n var index = _this.stickers.indexOf(ref);\n\n if (index < 0) return;\n\n _this.map.removeLayer(ref.sticker);\n _this.stickers.splice(index, 1);\n };\n\n this.map = map;\n this.layer = (0, _leaflet.layerGroup)();\n\n this.lockMapClicks = lockMapClicks;\n this.stickers = [];\n\n this.layer.addTo(this.map);\n }\n\n (0, _createClass3.default)(Stickers, [{\n key: '__reactstandin__regenerateByEval',\n // @ts-ignore\n value: function __reactstandin__regenerateByEval(key, code) {\n // @ts-ignore\n this[key] = eval(code);\n }\n }]);\n return Stickers;\n}();\n\n;\n\n(function () {\n var reactHotLoader = require('react-hot-loader').default;\n\n var leaveModule = require('react-hot-loader').leaveModule;\n\n if (!reactHotLoader) {\n return;\n }\n\n reactHotLoader.register(Stickers, 'Stickers', '/Users/user/Projects/orchid/src/modules/Stickers.js');\n leaveModule(module);\n})();\n\n;"
},
{
"id": 145,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Sticker.js",
"name": "./src/modules/Sticker.js",
"index": 127,
"index2": 124,
"size": 4809,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Stickers.js",
"issuerId": 144,
"issuerName": "./src/modules/Stickers.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 144,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Stickers.js",
"name": "./src/modules/Stickers.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 144,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Stickers.js",
"module": "./src/modules/Stickers.js",
"moduleName": "./src/modules/Stickers.js",
"type": "cjs require",
"userRequest": "$modules/Sticker",
"loc": "18:15-42"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 4,
"source": "'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.Sticker = undefined;\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _leaflet = require('leaflet');\n\nrequire('leaflet-editable');\n\nvar _DomMarker = require('$utils/DomMarker');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n(function () {\n var enterModule = require('react-hot-loader').enterModule;\n\n enterModule && enterModule(module);\n})();\n\nvar Sticker = exports.Sticker = function () {\n function Sticker(_ref) {\n var _this = this;\n\n var latlng = _ref.latlng,\n deleteSticker = _ref.deleteSticker,\n map = _ref.map,\n lockMapClicks = _ref.lockMapClicks;\n (0, _classCallCheck3.default)(this, Sticker);\n\n this.onDelete = function () {\n if (!_this.isDragging) _this.deleteSticker(_this);\n };\n\n this.onDragStart = function (e) {\n _this.preventPropagations(e);\n\n _this.isDragging = true;\n _this.sticker.disableEdit();\n\n _this.lockMapClicks(true);\n\n window.addEventListener('mousemove', _this.onDrag);\n window.addEventListener('mouseup', _this.onDragStop);\n };\n\n this.preventPropagations = function (e) {\n if (!e || !e.stopPropagation) return;\n\n e.stopPropagation();\n e.preventDefault();\n };\n\n this.onDragStop = function (e) {\n _this.preventPropagations(e);\n\n _this.isDragging = false;\n _this.sticker.enableEdit();\n\n window.removeEventListener('mousemove', _this.onDrag);\n window.removeEventListener('mouseup', _this.onDragStop);\n\n _this.lockMapClicks(false);\n };\n\n this.onDrag = function (e) {\n _this.preventPropagations(e);\n _this.estimateAngle(e);\n };\n\n this.estimateAngle = function (e) {\n var _element$getBoundingC = _this.element.getBoundingClientRect(),\n x = _element$getBoundingC.x,\n y = _element$getBoundingC.y;\n\n var pageX = e.pageX,\n pageY = e.pageY;\n\n _this.angle = Math.atan2(y - pageY, x - pageX);\n\n _this.setAngle(_this.angle);\n };\n\n this.setAngle = function (angle) {\n // $(active_sticker.container).css('left',6+x-parseInt(active_sticker.ctrl.css('left'))).css('top',6+y-parseInt(active_sticker.ctrl.css('top')));\n //\n var rad = 30;\n var mrad = 48;\n var x = Math.cos(angle + 3.14) * rad - 30;\n var y = Math.sin(angle + 3.14) * rad - 30;\n\n var ax = Math.cos(angle + 3.4) * mrad - 12;\n var ay = Math.sin(angle + 3.4) * mrad - 12;\n\n _this.stickerImage.style.left = 6 + x;\n _this.stickerImage.style.top = 6 + y;\n\n _this.stickerDelete.style.left = ax;\n _this.stickerDelete.style.top = ay;\n\n _this.stickerArrow.style.transform = 'rotate(' + (angle + 3.14) + 'rad)';\n };\n\n this.angle = 2.2;\n this.isDragging = false;\n this.map = map;\n\n this.deleteSticker = deleteSticker;\n this.lockMapClicks = lockMapClicks;\n\n this.element = document.createElement('div');\n this.stickerImage = document.createElement('div');\n this.stickerArrow = document.createElement('div');\n this.stickerDelete = document.createElement('div');\n\n this.element.className = 'sticker-container';\n this.stickerImage.className = 'sticker-label';\n this.stickerArrow.className = 'sticker-arrow';\n this.stickerDelete.className = 'sticker-delete';\n\n this.element.appendChild(this.stickerArrow);\n this.element.appendChild(this.stickerImage);\n this.element.appendChild(this.stickerDelete);\n\n var mark = new _DomMarker.DomMarker({\n element: this.element,\n className: 'sticker-container'\n });\n\n this.sticker = (0, _leaflet.marker)(latlng, { icon: mark });\n\n this.setAngle(this.angle);\n\n this.stickerImage.addEventListener('mousedown', this.onDragStart);\n this.stickerImage.addEventListener('mouseup', this.onDragStop);\n\n this.element.addEventListener('mouseup', this.preventPropagations);\n this.stickerDelete.addEventListener('click', this.onDelete);\n }\n\n (0, _createClass3.default)(Sticker, [{\n key: '__reactstandin__regenerateByEval',\n // @ts-ignore\n value: function __reactstandin__regenerateByEval(key, code) {\n // @ts-ignore\n this[key] = eval(code);\n }\n }]);\n return Sticker;\n}();\n\n;\n\n(function () {\n var reactHotLoader = require('react-hot-loader').default;\n\n var leaveModule = require('react-hot-loader').leaveModule;\n\n if (!reactHotLoader) {\n return;\n }\n\n reactHotLoader.register(Sticker, 'Sticker', '/Users/user/Projects/orchid/src/modules/Sticker.js');\n leaveModule(module);\n})();\n\n;"
},
{
"id": 146,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"name": "./src/modules/Router.js",
"index": 129,
"index2": 156,
"size": 5673,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"issuerId": 124,
"issuerName": "./src/modules/Editor.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 124,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"module": "./src/modules/Editor.js",
"moduleName": "./src/modules/Editor.js",
"type": "cjs require",
"userRequest": "$modules/Router",
"loc": "28:14-40"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 3,
"source": "'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.Router = undefined;\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nvar _toConsumableArray2 = require('babel-runtime/helpers/toConsumableArray');\n\nvar _toConsumableArray3 = _interopRequireDefault(_toConsumableArray2);\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _leaflet = require('leaflet');\n\nvar _leaflet2 = _interopRequireDefault(_leaflet);\n\nvar _index = require('leaflet-routing-machine/src/index');\n\nvar _index2 = _interopRequireDefault(_index);\n\nvar _$config = require('$config');\n\nvar _DomMarker = require('$utils/DomMarker');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n(function () {\n var enterModule = require('react-hot-loader').enterModule;\n\n enterModule && enterModule(module);\n})();\n\nvar Router = exports.Router = function () {\n function Router(_ref) {\n var _this = this;\n\n var map = _ref.map,\n lockMapClicks = _ref.lockMapClicks;\n (0, _classCallCheck3.default)(this, Router);\n\n this.pushWaypointOnClick = function (_ref2) {\n var _ref2$latlng = _ref2.latlng,\n lat = _ref2$latlng.lat,\n lng = _ref2$latlng.lng;\n\n var waypoints = _this.router.getWaypoints().filter(function (_ref3) {\n var latLng = _ref3.latLng;\n return !!latLng;\n });\n console.log('push', waypoints);\n _this.router.setWaypoints([].concat((0, _toConsumableArray3.default)(waypoints), [{ lat: lat, lng: lng }]));\n };\n\n this.createWaypointMarker = function () {\n var element = document.createElement('div');\n\n element.addEventListener('mousedown', _this.lockPropagations);\n element.addEventListener('mouseup', _this.unlockPropagations);\n\n return new _DomMarker.DomMarker({\n element: element,\n className: 'router-waypoint'\n });\n };\n\n this.lockPropagations = function () {\n console.log('lock');\n window.addEventListener('mouseup', _this.unlockPropagations);\n _this.lockMapClicks(true);\n };\n\n this.unlockPropagations = function (e) {\n console.log('unlock');\n if (e && e.preventPropagations) {\n console.log('stop');\n e.preventDefault();\n e.preventPropagations();\n }\n\n window.removeEventListener('mouseup', _this.unlockPropagations);\n setTimeout(function () {\n return _this.lockMapClicks(false);\n }, 300);\n };\n\n this.startFrom = function (latlngs) {\n var waypoints = _this.router.getWaypoints();\n\n if (waypoints && waypoints.length) {\n waypoints[0] = (0, _extends3.default)({}, latlngs);\n _this.router.setWaypoints(waypoints);\n return;\n }\n\n _this.router.setWaypoints([(0, _extends3.default)({}, latlngs)]);\n };\n\n this.moveStart = function (latlng) {\n var waypoints = _this.router.getWaypoints();\n\n var _ref4 = waypoints[0] || {},\n latLng = _ref4.latLng;\n\n if (!latLng || !latlng) return;\n\n if (latlng.lat.toFixed(5) === latLng.lat.toFixed(5) && latlng.lng.toFixed(5) === latLng.lng.toFixed(5)) {\n return;\n }\n\n waypoints[0] = (0, _extends3.default)({}, latlng);\n\n _this.router.setWaypoints(waypoints);\n };\n\n var routeLine = function routeLine(r) {\n return _index2.default.line(r, {\n styles: [{ color: 'white', opacity: 0.8, weight: 6 }, { color: '#4597d0', opacity: 1, weight: 4, dashArray: '15,10' }],\n addWaypoints: true\n }).on('linetouched', _this.lockPropagations);\n };\n\n this.router = _index2.default.control({\n serviceUrl: _$config.CONFIG.OSRM_URL,\n profile: 'bike',\n fitSelectedRoutes: false,\n routeLine: routeLine,\n altLineOptions: {\n styles: [{ color: '#4597d0', opacity: 1, weight: 3 }]\n },\n show: false,\n plan: _index2.default.plan([], {\n createMarker: function createMarker(i, wp) {\n return _leaflet2.default.marker(wp.latLng, {\n draggable: true,\n icon: _this.createWaypointMarker()\n });\n },\n routeWhileDragging: true\n }),\n routeWhileDragging: true\n });\n // .on('waypointschanged', this.updateWaypointsByEvent);\n\n this.router.addTo(map);\n\n this.waypoints = [];\n this.lockMapClicks = lockMapClicks;\n\n console.log('router', this.router);\n // this.router._line.on('mousedown', console.log);\n console.log('map', map);\n }\n //\n\n //\n // pushWaypoint = latlng => {\n // this.waypoints.push(latlng);\n // this.updateWaypoints();\n // };\n //\n // updateWaypointsByEvent = (e) => {\n // console.log('upd', e);\n // // this.waypoints = waypoints.map(({ latlng }) => latlng);\n //\n // };\n //\n // updateWaypoints = () => {\n // this.router.setWaypoints(this.waypoints);\n // };\n //\n\n //\n\n //\n\n\n (0, _createClass3.default)(Router, [{\n key: '__reactstandin__regenerateByEval',\n // @ts-ignore\n value: function __reactstandin__regenerateByEval(key, code) {\n // @ts-ignore\n this[key] = eval(code);\n }\n }]);\n return Router;\n}();\n\n;\n\n(function () {\n var reactHotLoader = require('react-hot-loader').default;\n\n var leaveModule = require('react-hot-loader').leaveModule;\n\n if (!reactHotLoader) {\n return;\n }\n\n reactHotLoader.register(Router, 'Router', '/Users/user/Projects/orchid/src/modules/Router.js');\n leaveModule(module);\n})();\n\n;"
},
{
"id": 147,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/extends.js",
"name": "./node_modules/babel-runtime/helpers/extends.js",
"index": 130,
"index2": 130,
"size": 544,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"issuerId": 146,
"issuerName": "./src/modules/Router.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 146,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"name": "./src/modules/Router.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 146,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"module": "./src/modules/Router.js",
"moduleName": "./src/modules/Router.js",
"type": "cjs require",
"userRequest": "babel-runtime/helpers/extends",
"loc": "8:16-56"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 4,
"source": "\"use strict\";\n\nexports.__esModule = true;\n\nvar _assign = require(\"../core-js/object/assign\");\n\nvar _assign2 = _interopRequireDefault(_assign);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = _assign2.default || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n};"
},
{
"id": 148,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/object/assign.js",
"name": "./node_modules/babel-runtime/core-js/object/assign.js",
"index": 131,
"index2": 129,
"size": 94,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/extends.js",
"issuerId": 147,
"issuerName": "./node_modules/babel-runtime/helpers/extends.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 146,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"name": "./src/modules/Router.js"
},
{
"id": 147,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/extends.js",
"name": "./node_modules/babel-runtime/helpers/extends.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 147,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/extends.js",
"module": "./node_modules/babel-runtime/helpers/extends.js",
"moduleName": "./node_modules/babel-runtime/helpers/extends.js",
"type": "cjs require",
"userRequest": "../core-js/object/assign",
"loc": "5:14-49"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 5,
"source": "module.exports = { \"default\": require(\"core-js/library/fn/object/assign\"), __esModule: true };"
},
{
"id": 149,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/object/assign.js",
"name": "./node_modules/core-js/library/fn/object/assign.js",
"index": 132,
"index2": 128,
"size": 107,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/object/assign.js",
"issuerId": 148,
"issuerName": "./node_modules/babel-runtime/core-js/object/assign.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 146,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"name": "./src/modules/Router.js"
},
{
"id": 147,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/extends.js",
"name": "./node_modules/babel-runtime/helpers/extends.js"
},
{
"id": 148,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/object/assign.js",
"name": "./node_modules/babel-runtime/core-js/object/assign.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 148,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/object/assign.js",
"module": "./node_modules/babel-runtime/core-js/object/assign.js",
"moduleName": "./node_modules/babel-runtime/core-js/object/assign.js",
"type": "cjs require",
"userRequest": "core-js/library/fn/object/assign",
"loc": "1:30-73"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 6,
"source": "require('../../modules/es6.object.assign');\nmodule.exports = require('../../modules/_core').Object.assign;\n"
},
{
"id": 150,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.object.assign.js",
"name": "./node_modules/core-js/library/modules/es6.object.assign.js",
"index": 133,
"index2": 127,
"size": 162,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/object/assign.js",
"issuerId": 149,
"issuerName": "./node_modules/core-js/library/fn/object/assign.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 146,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"name": "./src/modules/Router.js"
},
{
"id": 147,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/extends.js",
"name": "./node_modules/babel-runtime/helpers/extends.js"
},
{
"id": 148,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/object/assign.js",
"name": "./node_modules/babel-runtime/core-js/object/assign.js"
},
{
"id": 149,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/object/assign.js",
"name": "./node_modules/core-js/library/fn/object/assign.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 149,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/object/assign.js",
"module": "./node_modules/core-js/library/fn/object/assign.js",
"moduleName": "./node_modules/core-js/library/fn/object/assign.js",
"type": "cjs require",
"userRequest": "../../modules/es6.object.assign",
"loc": "1:0-42"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "// 19.1.3.1 Object.assign(target, source)\nvar $export = require('./_export');\n\n$export($export.S + $export.F, 'Object', { assign: require('./_object-assign') });\n"
},
{
"id": 151,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-assign.js",
"name": "./node_modules/core-js/library/modules/_object-assign.js",
"index": 134,
"index2": 126,
"size": 1195,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.object.assign.js",
"issuerId": 150,
"issuerName": "./node_modules/core-js/library/modules/es6.object.assign.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 146,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"name": "./src/modules/Router.js"
},
{
"id": 147,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/extends.js",
"name": "./node_modules/babel-runtime/helpers/extends.js"
},
{
"id": 148,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/object/assign.js",
"name": "./node_modules/babel-runtime/core-js/object/assign.js"
},
{
"id": 149,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/object/assign.js",
"name": "./node_modules/core-js/library/fn/object/assign.js"
},
{
"id": 150,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.object.assign.js",
"name": "./node_modules/core-js/library/modules/es6.object.assign.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 150,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.object.assign.js",
"module": "./node_modules/core-js/library/modules/es6.object.assign.js",
"moduleName": "./node_modules/core-js/library/modules/es6.object.assign.js",
"type": "cjs require",
"userRequest": "./_object-assign",
"loc": "4:51-78"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 8,
"source": "'use strict';\n// 19.1.2.1 Object.assign(target, source, ...)\nvar getKeys = require('./_object-keys');\nvar gOPS = require('./_object-gops');\nvar pIE = require('./_object-pie');\nvar toObject = require('./_to-object');\nvar IObject = require('./_iobject');\nvar $assign = Object.assign;\n\n// should work with symbols and should have deterministic property order (V8 bug)\nmodule.exports = !$assign || require('./_fails')(function () {\n var A = {};\n var B = {};\n // eslint-disable-next-line no-undef\n var S = Symbol();\n var K = 'abcdefghijklmnopqrst';\n A[S] = 7;\n K.split('').forEach(function (k) { B[k] = k; });\n return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K;\n}) ? function assign(target, source) { // eslint-disable-line no-unused-vars\n var T = toObject(target);\n var aLen = arguments.length;\n var index = 1;\n var getSymbols = gOPS.f;\n var isEnum = pIE.f;\n while (aLen > index) {\n var S = IObject(arguments[index++]);\n var keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S);\n var length = keys.length;\n var j = 0;\n var key;\n while (length > j) if (isEnum.call(S, key = keys[j++])) T[key] = S[key];\n } return T;\n} : $assign;\n"
},
{
"id": 152,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/toConsumableArray.js",
"name": "./node_modules/babel-runtime/helpers/toConsumableArray.js",
"index": 135,
"index2": 138,
"size": 466,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"issuerId": 146,
"issuerName": "./src/modules/Router.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 146,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"name": "./src/modules/Router.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 146,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"module": "./src/modules/Router.js",
"moduleName": "./src/modules/Router.js",
"type": "cjs require",
"userRequest": "babel-runtime/helpers/toConsumableArray",
"loc": "12:26-76"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 4,
"source": "\"use strict\";\n\nexports.__esModule = true;\n\nvar _from = require(\"../core-js/array/from\");\n\nvar _from2 = _interopRequireDefault(_from);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function (arr) {\n if (Array.isArray(arr)) {\n for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) {\n arr2[i] = arr[i];\n }\n\n return arr2;\n } else {\n return (0, _from2.default)(arr);\n }\n};"
},
{
"id": 153,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/array/from.js",
"name": "./node_modules/babel-runtime/core-js/array/from.js",
"index": 136,
"index2": 137,
"size": 91,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/toConsumableArray.js",
"issuerId": 152,
"issuerName": "./node_modules/babel-runtime/helpers/toConsumableArray.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 146,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"name": "./src/modules/Router.js"
},
{
"id": 152,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/toConsumableArray.js",
"name": "./node_modules/babel-runtime/helpers/toConsumableArray.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 152,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/toConsumableArray.js",
"module": "./node_modules/babel-runtime/helpers/toConsumableArray.js",
"moduleName": "./node_modules/babel-runtime/helpers/toConsumableArray.js",
"type": "cjs require",
"userRequest": "../core-js/array/from",
"loc": "5:12-44"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 5,
"source": "module.exports = { \"default\": require(\"core-js/library/fn/array/from\"), __esModule: true };"
},
{
"id": 154,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/array/from.js",
"name": "./node_modules/core-js/library/fn/array/from.js",
"index": 137,
"index2": 136,
"size": 147,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/array/from.js",
"issuerId": 153,
"issuerName": "./node_modules/babel-runtime/core-js/array/from.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 146,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"name": "./src/modules/Router.js"
},
{
"id": 152,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/toConsumableArray.js",
"name": "./node_modules/babel-runtime/helpers/toConsumableArray.js"
},
{
"id": 153,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/array/from.js",
"name": "./node_modules/babel-runtime/core-js/array/from.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 153,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/array/from.js",
"module": "./node_modules/babel-runtime/core-js/array/from.js",
"moduleName": "./node_modules/babel-runtime/core-js/array/from.js",
"type": "cjs require",
"userRequest": "core-js/library/fn/array/from",
"loc": "1:30-70"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 6,
"source": "require('../../modules/es6.string.iterator');\nrequire('../../modules/es6.array.from');\nmodule.exports = require('../../modules/_core').Array.from;\n"
},
{
"id": 155,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.array.from.js",
"name": "./node_modules/core-js/library/modules/es6.array.from.js",
"index": 138,
"index2": 135,
"size": 1635,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/array/from.js",
"issuerId": 154,
"issuerName": "./node_modules/core-js/library/fn/array/from.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 146,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"name": "./src/modules/Router.js"
},
{
"id": 152,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/toConsumableArray.js",
"name": "./node_modules/babel-runtime/helpers/toConsumableArray.js"
},
{
"id": 153,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/array/from.js",
"name": "./node_modules/babel-runtime/core-js/array/from.js"
},
{
"id": 154,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/array/from.js",
"name": "./node_modules/core-js/library/fn/array/from.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 154,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/array/from.js",
"module": "./node_modules/core-js/library/fn/array/from.js",
"moduleName": "./node_modules/core-js/library/fn/array/from.js",
"type": "cjs require",
"userRequest": "../../modules/es6.array.from",
"loc": "2:0-39"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "'use strict';\nvar ctx = require('./_ctx');\nvar $export = require('./_export');\nvar toObject = require('./_to-object');\nvar call = require('./_iter-call');\nvar isArrayIter = require('./_is-array-iter');\nvar toLength = require('./_to-length');\nvar createProperty = require('./_create-property');\nvar getIterFn = require('./core.get-iterator-method');\n\n$export($export.S + $export.F * !require('./_iter-detect')(function (iter) { Array.from(iter); }), 'Array', {\n // 22.1.2.1 Array.from(arrayLike, mapfn = undefined, thisArg = undefined)\n from: function from(arrayLike /* , mapfn = undefined, thisArg = undefined */) {\n var O = toObject(arrayLike);\n var C = typeof this == 'function' ? this : Array;\n var aLen = arguments.length;\n var mapfn = aLen > 1 ? arguments[1] : undefined;\n var mapping = mapfn !== undefined;\n var index = 0;\n var iterFn = getIterFn(O);\n var length, result, step, iterator;\n if (mapping) mapfn = ctx(mapfn, aLen > 2 ? arguments[2] : undefined, 2);\n // if object isn't iterable or it's array with default iterator - use simple case\n if (iterFn != undefined && !(C == Array && isArrayIter(iterFn))) {\n for (iterator = iterFn.call(O), result = new C(); !(step = iterator.next()).done; index++) {\n createProperty(result, index, mapping ? call(iterator, mapfn, [step.value, index], true) : step.value);\n }\n } else {\n length = toLength(O.length);\n for (result = new C(length); length > index; index++) {\n createProperty(result, index, mapping ? mapfn(O[index], index) : O[index]);\n }\n }\n result.length = index;\n return result;\n }\n});\n"
},
{
"id": 156,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_iter-call.js",
"name": "./node_modules/core-js/library/modules/_iter-call.js",
"index": 139,
"index2": 131,
"size": 410,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.array.from.js",
"issuerId": 155,
"issuerName": "./node_modules/core-js/library/modules/es6.array.from.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 146,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"name": "./src/modules/Router.js"
},
{
"id": 152,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/toConsumableArray.js",
"name": "./node_modules/babel-runtime/helpers/toConsumableArray.js"
},
{
"id": 153,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/array/from.js",
"name": "./node_modules/babel-runtime/core-js/array/from.js"
},
{
"id": 154,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/array/from.js",
"name": "./node_modules/core-js/library/fn/array/from.js"
},
{
"id": 155,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.array.from.js",
"name": "./node_modules/core-js/library/modules/es6.array.from.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 155,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.array.from.js",
"module": "./node_modules/core-js/library/modules/es6.array.from.js",
"moduleName": "./node_modules/core-js/library/modules/es6.array.from.js",
"type": "cjs require",
"userRequest": "./_iter-call",
"loc": "5:11-34"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 8,
"source": "// call something on iterator step with safe closing on error\nvar anObject = require('./_an-object');\nmodule.exports = function (iterator, fn, value, entries) {\n try {\n return entries ? fn(anObject(value)[0], value[1]) : fn(value);\n // 7.4.6 IteratorClose(iterator, completion)\n } catch (e) {\n var ret = iterator['return'];\n if (ret !== undefined) anObject(ret.call(iterator));\n throw e;\n }\n};\n"
},
{
"id": 157,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_is-array-iter.js",
"name": "./node_modules/core-js/library/modules/_is-array-iter.js",
"index": 140,
"index2": 132,
"size": 279,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.array.from.js",
"issuerId": 155,
"issuerName": "./node_modules/core-js/library/modules/es6.array.from.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 146,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"name": "./src/modules/Router.js"
},
{
"id": 152,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/toConsumableArray.js",
"name": "./node_modules/babel-runtime/helpers/toConsumableArray.js"
},
{
"id": 153,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/array/from.js",
"name": "./node_modules/babel-runtime/core-js/array/from.js"
},
{
"id": 154,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/array/from.js",
"name": "./node_modules/core-js/library/fn/array/from.js"
},
{
"id": 155,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.array.from.js",
"name": "./node_modules/core-js/library/modules/es6.array.from.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 155,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.array.from.js",
"module": "./node_modules/core-js/library/modules/es6.array.from.js",
"moduleName": "./node_modules/core-js/library/modules/es6.array.from.js",
"type": "cjs require",
"userRequest": "./_is-array-iter",
"loc": "6:18-45"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 8,
"source": "// check on default Array iterator\nvar Iterators = require('./_iterators');\nvar ITERATOR = require('./_wks')('iterator');\nvar ArrayProto = Array.prototype;\n\nmodule.exports = function (it) {\n return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it);\n};\n"
},
{
"id": 158,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_create-property.js",
"name": "./node_modules/core-js/library/modules/_create-property.js",
"index": 141,
"index2": 133,
"size": 271,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.array.from.js",
"issuerId": 155,
"issuerName": "./node_modules/core-js/library/modules/es6.array.from.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 146,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"name": "./src/modules/Router.js"
},
{
"id": 152,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/toConsumableArray.js",
"name": "./node_modules/babel-runtime/helpers/toConsumableArray.js"
},
{
"id": 153,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/array/from.js",
"name": "./node_modules/babel-runtime/core-js/array/from.js"
},
{
"id": 154,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/array/from.js",
"name": "./node_modules/core-js/library/fn/array/from.js"
},
{
"id": 155,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.array.from.js",
"name": "./node_modules/core-js/library/modules/es6.array.from.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 155,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.array.from.js",
"module": "./node_modules/core-js/library/modules/es6.array.from.js",
"moduleName": "./node_modules/core-js/library/modules/es6.array.from.js",
"type": "cjs require",
"userRequest": "./_create-property",
"loc": "8:21-50"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 8,
"source": "'use strict';\nvar $defineProperty = require('./_object-dp');\nvar createDesc = require('./_property-desc');\n\nmodule.exports = function (object, index, value) {\n if (index in object) $defineProperty.f(object, index, createDesc(0, value));\n else object[index] = value;\n};\n"
},
{
"id": 159,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_iter-detect.js",
"name": "./node_modules/core-js/library/modules/_iter-detect.js",
"index": 142,
"index2": 134,
"size": 645,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.array.from.js",
"issuerId": 155,
"issuerName": "./node_modules/core-js/library/modules/es6.array.from.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 146,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"name": "./src/modules/Router.js"
},
{
"id": 152,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/toConsumableArray.js",
"name": "./node_modules/babel-runtime/helpers/toConsumableArray.js"
},
{
"id": 153,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/array/from.js",
"name": "./node_modules/babel-runtime/core-js/array/from.js"
},
{
"id": 154,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/array/from.js",
"name": "./node_modules/core-js/library/fn/array/from.js"
},
{
"id": 155,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.array.from.js",
"name": "./node_modules/core-js/library/modules/es6.array.from.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 155,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.array.from.js",
"module": "./node_modules/core-js/library/modules/es6.array.from.js",
"moduleName": "./node_modules/core-js/library/modules/es6.array.from.js",
"type": "cjs require",
"userRequest": "./_iter-detect",
"loc": "11:33-58"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 8,
"source": "var ITERATOR = require('./_wks')('iterator');\nvar SAFE_CLOSING = false;\n\ntry {\n var riter = [7][ITERATOR]();\n riter['return'] = function () { SAFE_CLOSING = true; };\n // eslint-disable-next-line no-throw-literal\n Array.from(riter, function () { throw 2; });\n} catch (e) { /* empty */ }\n\nmodule.exports = function (exec, skipClosing) {\n if (!skipClosing && !SAFE_CLOSING) return false;\n var safe = false;\n try {\n var arr = [7];\n var iter = arr[ITERATOR]();\n iter.next = function () { return { done: safe = true }; };\n arr[ITERATOR] = function () { return iter; };\n exec(arr);\n } catch (e) { /* empty */ }\n return safe;\n};\n"
},
{
"id": 160,
"identifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/index.js",
"name": "./node_modules/leaflet-routing-machine/src/index.js",
"index": 143,
"index2": 154,
"size": 2528,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"issuerId": 146,
"issuerName": "./src/modules/Router.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 146,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"name": "./src/modules/Router.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 146,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"module": "./src/modules/Router.js",
"moduleName": "./src/modules/Router.js",
"type": "cjs require",
"userRequest": "leaflet-routing-machine/src/index",
"loc": "28:13-57"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 4,
"source": "var L = require('leaflet'),\n Control = require('./control'),\n Itinerary = require('./itinerary'),\n Line = require('./line'),\n OSRMv1 = require('./osrm-v1'),\n Plan = require('./plan'),\n Waypoint = require('./waypoint'),\n Autocomplete = require('./autocomplete'),\n Formatter = require('./formatter'),\n GeocoderElement = require('./geocoder-element'),\n Localization = require('./localization'),\n ItineraryBuilder = require('./itinerary-builder'),\n Mapbox = require('./mapbox'),\n ErrorControl = require('./error-control');\n\nL.routing = {\n control: function(options) { return new Control(options); },\n itinerary: function(options) {\n return Itinerary(options);\n },\n line: function(route, options) {\n return new Line(route, options);\n },\n plan: function(waypoints, options) {\n return new Plan(waypoints, options);\n },\n waypoint: function(latLng, name, options) {\n return new Waypoint(latLng, name, options);\n },\n osrmv1: function(options) {\n return new OSRMv1(options);\n },\n localization: function(options) {\n return new Localization(options);\n },\n formatter: function(options) {\n return new Formatter(options);\n },\n geocoderElement: function(wp, i, nWps, plan) {\n return new L.Routing.GeocoderElement(wp, i, nWps, plan);\n },\n itineraryBuilder: function(options) {\n return new ItineraryBuilder(options);\n },\n mapbox: function(accessToken, options) {\n return new Mapbox(accessToken, options);\n },\n errorControl: function(routingControl, options) {\n return new ErrorControl(routingControl, options);\n },\n autocomplete: function(elem, callback, context, options) {\n return new Autocomplete(elem, callback, context, options);\n }\n};\n\nmodule.exports = L.Routing = {\n Control: Control,\n Itinerary: Itinerary,\n Line: Line,\n OSRMv1: OSRMv1,\n Plan: Plan,\n Waypoint: Waypoint,\n Autocomplete: Autocomplete,\n Formatter: Formatter,\n GeocoderElement: GeocoderElement,\n Localization: Localization,\n Formatter: Formatter,\n ItineraryBuilder: ItineraryBuilder,\n\n // Legacy; remove these in next major release\n control: L.routing.control,\n itinerary: L.routing.itinerary,\n line: L.routing.line,\n plan: L.routing.plan,\n waypoint: L.routing.waypoint,\n osrmv1: L.routing.osrmv1,\n geocoderElement: L.routing.geocoderElement,\n mapbox: L.routing.mapbox,\n errorControl: L.routing.errorControl,\n};\n"
},
{
"id": 161,
"identifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/control.js",
"name": "./node_modules/leaflet-routing-machine/src/control.js",
"index": 144,
"index2": 151,
"size": 8833,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/index.js",
"issuerId": 160,
"issuerName": "./node_modules/leaflet-routing-machine/src/index.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 146,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"name": "./src/modules/Router.js"
},
{
"id": 160,
"identifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/index.js",
"name": "./node_modules/leaflet-routing-machine/src/index.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 160,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/index.js",
"module": "./node_modules/leaflet-routing-machine/src/index.js",
"moduleName": "./node_modules/leaflet-routing-machine/src/index.js",
"type": "cjs require",
"userRequest": "./control",
"loc": "2:14-34"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 5,
"source": "(function() {\n\t'use strict';\n\n\tvar L = require('leaflet');\n\n\tvar Itinerary = require('./itinerary');\n\tvar Line = require('./line');\n\tvar Plan = require('./plan');\n\tvar OSRMv1 = require('./osrm-v1');\n\n\tmodule.exports = Itinerary.extend({\n\t\toptions: {\n\t\t\tfitSelectedRoutes: 'smart',\n\t\t\trouteLine: function(route, options) { return new Line(route, options); },\n\t\t\tautoRoute: true,\n\t\t\trouteWhileDragging: false,\n\t\t\trouteDragInterval: 500,\n\t\t\twaypointMode: 'connect',\n\t\t\tshowAlternatives: false,\n\t\t\tdefaultErrorHandler: function(e) {\n\t\t\t\tconsole.error('Routing error:', e.error);\n\t\t\t}\n\t\t},\n\n\t\tinitialize: function(options) {\n\t\t\tL.Util.setOptions(this, options);\n\n\t\t\tthis._router = this.options.router || new OSRMv1(options);\n\t\t\tthis._plan = this.options.plan || new Plan(this.options.waypoints, options);\n\t\t\tthis._requestCount = 0;\n\n\t\t\tItinerary.prototype.initialize.call(this, options);\n\n\t\t\tthis.on('routeselected', this._routeSelected, this);\n\t\t\tif (this.options.defaultErrorHandler) {\n\t\t\t\tthis.on('routingerror', this.options.defaultErrorHandler);\n\t\t\t}\n\t\t\tthis._plan.on('waypointschanged', this._onWaypointsChanged, this);\n\t\t\tif (options.routeWhileDragging) {\n\t\t\t\tthis._setupRouteDragging();\n\t\t\t}\n\n\t\t\tif (this.options.autoRoute) {\n\t\t\t\tthis.route();\n\t\t\t}\n\t\t},\n\n\t\t_onZoomEnd: function() {\n\t\t\tif (!this._selectedRoute ||\n\t\t\t\t!this._router.requiresMoreDetail) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tvar map = this._map;\n\t\t\tif (this._router.requiresMoreDetail(this._selectedRoute,\n\t\t\t\t\tmap.getZoom(), map.getBounds())) {\n\t\t\t\tthis.route({\n\t\t\t\t\tcallback: L.bind(function(err, routes) {\n\t\t\t\t\t\tvar i;\n\t\t\t\t\t\tif (!err) {\n\t\t\t\t\t\t\tfor (i = 0; i < routes.length; i++) {\n\t\t\t\t\t\t\t\tthis._routes[i].properties = routes[i].properties;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tthis._updateLineCallback(err, routes);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}, this),\n\t\t\t\t\tsimplifyGeometry: false,\n\t\t\t\t\tgeometryOnly: true\n\t\t\t\t});\n\t\t\t}\n\t\t},\n\n\t\tonAdd: function(map) {\n\t\t\tvar container = Itinerary.prototype.onAdd.call(this, map);\n\n\t\t\tthis._map = map;\n\t\t\tthis._map.addLayer(this._plan);\n\n\t\t\tthis._map.on('zoomend', this._onZoomEnd, this);\n\n\t\t\tif (this._plan.options.geocoder) {\n\t\t\t\tcontainer.insertBefore(this._plan.createGeocoders(), container.firstChild);\n\t\t\t}\n\n\t\t\treturn container;\n\t\t},\n\n\t\tonRemove: function(map) {\n\t\t\tmap.off('zoomend', this._onZoomEnd, this);\n\t\t\tif (this._line) {\n\t\t\t\tmap.removeLayer(this._line);\n\t\t\t}\n\t\t\tmap.removeLayer(this._plan);\n\t\t\tif (this._alternatives && this._alternatives.length > 0) {\n\t\t\t\tfor (var i = 0, len = this._alternatives.length; i < len; i++) {\n\t\t\t\t\tmap.removeLayer(this._alternatives[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn Itinerary.prototype.onRemove.call(this, map);\n\t\t},\n\n\t\tgetWaypoints: function() {\n\t\t\treturn this._plan.getWaypoints();\n\t\t},\n\n\t\tsetWaypoints: function(waypoints) {\n\t\t\tthis._plan.setWaypoints(waypoints);\n\t\t\treturn this;\n\t\t},\n\n\t\tspliceWaypoints: function() {\n\t\t\tvar removed = this._plan.spliceWaypoints.apply(this._plan, arguments);\n\t\t\treturn removed;\n\t\t},\n\n\t\tgetPlan: function() {\n\t\t\treturn this._plan;\n\t\t},\n\n\t\tgetRouter: function() {\n\t\t\treturn this._router;\n\t\t},\n\n\t\t_routeSelected: function(e) {\n\t\t\tvar route = this._selectedRoute = e.route,\n\t\t\t\talternatives = this.options.showAlternatives && e.alternatives,\n\t\t\t\tfitMode = this.options.fitSelectedRoutes,\n\t\t\t\tfitBounds =\n\t\t\t\t\t(fitMode === 'smart' && !this._waypointsVisible()) ||\n\t\t\t\t\t(fitMode !== 'smart' && fitMode);\n\n\t\t\tthis._updateLines({route: route, alternatives: alternatives});\n\n\t\t\tif (fitBounds) {\n\t\t\t\tthis._map.fitBounds(this._line.getBounds());\n\t\t\t}\n\n\t\t\tif (this.options.waypointMode === 'snap') {\n\t\t\t\tthis._plan.off('waypointschanged', this._onWaypointsChanged, this);\n\t\t\t\tthis.setWaypoints(route.waypoints);\n\t\t\t\tthis._plan.on('waypointschanged', this._onWaypointsChanged, this);\n\t\t\t}\n\t\t},\n\n\t\t_waypointsVisible: function() {\n\t\t\tvar wps = this.getWaypoints(),\n\t\t\t\tmapSize,\n\t\t\t\tbounds,\n\t\t\t\tboundsSize,\n\t\t\t\ti,\n\t\t\t\tp;\n\n\t\t\ttry {\n\t\t\t\tmapSize = this._map.getSize();\n\n\t\t\t\tfor (i = 0; i < wps.length; i++) {\n\t\t\t\t\tp = this._map.latLngToLayerPoint(wps[i].latLng);\n\n\t\t\t\t\tif (bounds) {\n\t\t\t\t\t\tbounds.extend(p);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tbounds = L.bounds([p]);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tboundsSize = bounds.getSize();\n\t\t\t\treturn (boundsSize.x > mapSize.x / 5 ||\n\t\t\t\t\tboundsSize.y > mapSize.y / 5) && this._waypointsInViewport();\n\n\t\t\t} catch (e) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t},\n\n\t\t_waypointsInViewport: function() {\n\t\t\tvar wps = this.getWaypoints(),\n\t\t\t\tmapBounds,\n\t\t\t\ti;\n\n\t\t\ttry {\n\t\t\t\tmapBounds = this._map.getBounds();\n\t\t\t} catch (e) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tfor (i = 0; i < wps.length; i++) {\n\t\t\t\tif (mapBounds.contains(wps[i].latLng)) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn false;\n\t\t},\n\n\t\t_updateLines: function(routes) {\n\t\t\tvar addWaypoints = this.options.addWaypoints !== undefined ?\n\t\t\t\tthis.options.addWaypoints : true;\n\t\t\tthis._clearLines();\n\n\t\t\t// add alternatives first so they lie below the main route\n\t\t\tthis._alternatives = [];\n\t\t\tif (routes.alternatives) routes.alternatives.forEach(function(alt, i) {\n\t\t\t\tthis._alternatives[i] = this.options.routeLine(alt,\n\t\t\t\t\tL.extend({\n\t\t\t\t\t\tisAlternative: true\n\t\t\t\t\t}, this.options.altLineOptions || this.options.lineOptions));\n\t\t\t\tthis._alternatives[i].addTo(this._map);\n\t\t\t\tthis._hookAltEvents(this._alternatives[i]);\n\t\t\t}, this);\n\n\t\t\tthis._line = this.options.routeLine(routes.route,\n\t\t\t\tL.extend({\n\t\t\t\t\taddWaypoints: addWaypoints,\n\t\t\t\t\textendToWaypoints: this.options.waypointMode === 'connect'\n\t\t\t\t}, this.options.lineOptions));\n\t\t\tthis._line.addTo(this._map);\n\t\t\tthis._hookEvents(this._line);\n\t\t},\n\n\t\t_hookEvents: function(l) {\n\t\t\tl.on('linetouched', function(e) {\n\t\t\t\tthis._plan.dragNewWaypoint(e);\n\t\t\t}, this);\n\t\t},\n\n\t\t_hookAltEvents: function(l) {\n\t\t\tl.on('linetouched', function(e) {\n\t\t\t\tvar alts = this._routes.slice();\n\t\t\t\tvar selected = alts.splice(e.target._route.routesIndex, 1)[0];\n\t\t\t\tthis.fire('routeselected', {route: selected, alternatives: alts});\n\t\t\t}, this);\n\t\t},\n\n\t\t_onWaypointsChanged: function(e) {\n\t\t\tif (this.options.autoRoute) {\n\t\t\t\tthis.route({});\n\t\t\t}\n\t\t\tif (!this._plan.isReady()) {\n\t\t\t\tthis._clearLines();\n\t\t\t\tthis._clearAlts();\n\t\t\t}\n\t\t\tthis.fire('waypointschanged', {waypoints: e.waypoints});\n\t\t},\n\n\t\t_setupRouteDragging: function() {\n\t\t\tvar timer = 0,\n\t\t\t\twaypoints;\n\n\t\t\tthis._plan.on('waypointdrag', L.bind(function(e) {\n\t\t\t\twaypoints = e.waypoints;\n\n\t\t\t\tif (!timer) {\n\t\t\t\t\ttimer = setTimeout(L.bind(function() {\n\t\t\t\t\t\tthis.route({\n\t\t\t\t\t\t\twaypoints: waypoints,\n\t\t\t\t\t\t\tgeometryOnly: true,\n\t\t\t\t\t\t\tcallback: L.bind(this._updateLineCallback, this)\n\t\t\t\t\t\t});\n\t\t\t\t\t\ttimer = undefined;\n\t\t\t\t\t}, this), this.options.routeDragInterval);\n\t\t\t\t}\n\t\t\t}, this));\n\t\t\tthis._plan.on('waypointdragend', function() {\n\t\t\t\tif (timer) {\n\t\t\t\t\tclearTimeout(timer);\n\t\t\t\t\ttimer = undefined;\n\t\t\t\t}\n\t\t\t\tthis.route();\n\t\t\t}, this);\n\t\t},\n\n\t\t_updateLineCallback: function(err, routes) {\n\t\t\tif (!err) {\n\t\t\t\troutes = routes.slice();\n\t\t\t\tvar selected = routes.splice(this._selectedRoute.routesIndex, 1)[0];\n\t\t\t\tthis._updateLines({\n\t\t\t\t\troute: selected,\n\t\t\t\t\talternatives: this.options.showAlternatives ? routes : []\n\t\t\t\t});\n\t\t\t} else if (err.type !== 'abort') {\n\t\t\t\tthis._clearLines();\n\t\t\t}\n\t\t},\n\n\t\troute: function(options) {\n\t\t\tvar ts = ++this._requestCount,\n\t\t\t\twps;\n\n\t\t\tif (this._pendingRequest && this._pendingRequest.abort) {\n\t\t\t\tthis._pendingRequest.abort();\n\t\t\t\tthis._pendingRequest = null;\n\t\t\t}\n\n\t\t\toptions = options || {};\n\n\t\t\tif (this._plan.isReady()) {\n\t\t\t\tif (this.options.useZoomParameter) {\n\t\t\t\t\toptions.z = this._map && this._map.getZoom();\n\t\t\t\t}\n\n\t\t\t\twps = options && options.waypoints || this._plan.getWaypoints();\n\t\t\t\tthis.fire('routingstart', {waypoints: wps});\n\t\t\t\tthis._pendingRequest = this._router.route(wps, function(err, routes) {\n\t\t\t\t\tthis._pendingRequest = null;\n\n\t\t\t\t\tif (options.callback) {\n\t\t\t\t\t\treturn options.callback.call(this, err, routes);\n\t\t\t\t\t}\n\n\t\t\t\t\t// Prevent race among multiple requests,\n\t\t\t\t\t// by checking the current request's count\n\t\t\t\t\t// against the last request's; ignore result if\n\t\t\t\t\t// this isn't the last request.\n\t\t\t\t\tif (ts === this._requestCount) {\n\t\t\t\t\t\tthis._clearLines();\n\t\t\t\t\t\tthis._clearAlts();\n\t\t\t\t\t\tif (err && err.type !== 'abort') {\n\t\t\t\t\t\t\tthis.fire('routingerror', {error: err});\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\troutes.forEach(function(route, i) { route.routesIndex = i; });\n\n\t\t\t\t\t\tif (!options.geometryOnly) {\n\t\t\t\t\t\t\tthis.fire('routesfound', {waypoints: wps, routes: routes});\n\t\t\t\t\t\t\tthis.setAlternatives(routes);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tvar selectedRoute = routes.splice(0,1)[0];\n\t\t\t\t\t\t\tthis._routeSelected({route: selectedRoute, alternatives: routes});\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}, this, options);\n\t\t\t}\n\t\t},\n\n\t\t_clearLines: function() {\n\t\t\tif (this._line) {\n\t\t\t\tthis._map.removeLayer(this._line);\n\t\t\t\tdelete this._line;\n\t\t\t}\n\t\t\tif (this._alternatives && this._alternatives.length) {\n\t\t\t\tfor (var i in this._alternatives) {\n\t\t\t\t\tthis._map.removeLayer(this._alternatives[i]);\n\t\t\t\t}\n\t\t\t\tthis._alternatives = [];\n\t\t\t}\n\t\t}\n\t});\n})();\n"
},
{
"id": 162,
"identifier": "/Users/user/Projects/orchid/node_modules/@mapbox/corslite/corslite.js",
"name": "./node_modules/@mapbox/corslite/corslite.js",
"index": 155,
"index2": 148,
"size": 2809,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/osrm-v1.js",
"issuerId": 45,
"issuerName": "./node_modules/leaflet-routing-machine/src/osrm-v1.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 146,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"name": "./src/modules/Router.js"
},
{
"id": 160,
"identifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/index.js",
"name": "./node_modules/leaflet-routing-machine/src/index.js"
},
{
"id": 45,
"identifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/osrm-v1.js",
"name": "./node_modules/leaflet-routing-machine/src/osrm-v1.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 45,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/osrm-v1.js",
"module": "./node_modules/leaflet-routing-machine/src/osrm-v1.js",
"moduleName": "./node_modules/leaflet-routing-machine/src/osrm-v1.js",
"type": "cjs require",
"userRequest": "@mapbox/corslite",
"loc": "5:13-40"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 6,
"source": "function corslite(url, callback, cors) {\n var sent = false;\n\n if (typeof window.XMLHttpRequest === 'undefined') {\n return callback(Error('Browser not supported'));\n }\n\n if (typeof cors === 'undefined') {\n var m = url.match(/^\\s*https?:\\/\\/[^\\/]*/);\n cors = m && (m[0] !== location.protocol + '//' + location.hostname +\n (location.port ? ':' + location.port : ''));\n }\n\n var x = new window.XMLHttpRequest();\n\n function isSuccessful(status) {\n return status >= 200 && status < 300 || status === 304;\n }\n\n if (cors && !('withCredentials' in x)) {\n // IE8-9\n x = new window.XDomainRequest();\n\n // Ensure callback is never called synchronously, i.e., before\n // x.send() returns (this has been observed in the wild).\n // See https://github.com/mapbox/mapbox.js/issues/472\n var original = callback;\n callback = function() {\n if (sent) {\n original.apply(this, arguments);\n } else {\n var that = this, args = arguments;\n setTimeout(function() {\n original.apply(that, args);\n }, 0);\n }\n }\n }\n\n function loaded() {\n if (\n // XDomainRequest\n x.status === undefined ||\n // modern browsers\n isSuccessful(x.status)) callback.call(x, null, x);\n else callback.call(x, x, null);\n }\n\n // Both `onreadystatechange` and `onload` can fire. `onreadystatechange`\n // has [been supported for longer](http://stackoverflow.com/a/9181508/229001).\n if ('onload' in x) {\n x.onload = loaded;\n } else {\n x.onreadystatechange = function readystate() {\n if (x.readyState === 4) {\n loaded();\n }\n };\n }\n\n // Call the callback with the XMLHttpRequest object as an error and prevent\n // it from ever being called again by reassigning it to `noop`\n x.onerror = function error(evt) {\n // XDomainRequest provides no evt parameter\n callback.call(this, evt || true, null);\n callback = function() { };\n };\n\n // IE9 must have onprogress be set to a unique function.\n x.onprogress = function() { };\n\n x.ontimeout = function(evt) {\n callback.call(this, evt, null);\n callback = function() { };\n };\n\n x.onabort = function(evt) {\n callback.call(this, evt, null);\n callback = function() { };\n };\n\n // GET is the only supported HTTP Verb by XDomainRequest and is the\n // only one supported here.\n x.open('GET', url, true);\n\n // Send the request. Sending data is not supported.\n x.send(null);\n sent = true;\n\n return x;\n}\n\nif (typeof module !== 'undefined') module.exports = corslite;\n"
},
{
"id": 163,
"identifier": "/Users/user/Projects/orchid/node_modules/@mapbox/polyline/src/polyline.js",
"name": "./node_modules/@mapbox/polyline/src/polyline.js",
"index": 156,
"index2": 149,
"size": 4382,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/osrm-v1.js",
"issuerId": 45,
"issuerName": "./node_modules/leaflet-routing-machine/src/osrm-v1.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 146,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"name": "./src/modules/Router.js"
},
{
"id": 160,
"identifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/index.js",
"name": "./node_modules/leaflet-routing-machine/src/index.js"
},
{
"id": 45,
"identifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/osrm-v1.js",
"name": "./node_modules/leaflet-routing-machine/src/osrm-v1.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 45,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/osrm-v1.js",
"module": "./node_modules/leaflet-routing-machine/src/osrm-v1.js",
"moduleName": "./node_modules/leaflet-routing-machine/src/osrm-v1.js",
"type": "cjs require",
"userRequest": "@mapbox/polyline",
"loc": "6:13-40"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 6,
"source": "'use strict';\n\n/**\n * Based off of [the offical Google document](https://developers.google.com/maps/documentation/utilities/polylinealgorithm)\n *\n * Some parts from [this implementation](http://facstaff.unca.edu/mcmcclur/GoogleMaps/EncodePolyline/PolylineEncoder.js)\n * by [Mark McClure](http://facstaff.unca.edu/mcmcclur/)\n *\n * @module polyline\n */\n\nvar polyline = {};\n\nfunction py2_round(value) {\n // Google's polyline algorithm uses the same rounding strategy as Python 2, which is different from JS for negative values\n return Math.floor(Math.abs(value) + 0.5) * Math.sign(value);\n}\n\nfunction encode(current, previous, factor) {\n current = py2_round(current * factor);\n previous = py2_round(previous * factor);\n var coordinate = current - previous;\n coordinate <<= 1;\n if (current - previous < 0) {\n coordinate = ~coordinate;\n }\n var output = '';\n while (coordinate >= 0x20) {\n output += String.fromCharCode((0x20 | (coordinate & 0x1f)) + 63);\n coordinate >>= 5;\n }\n output += String.fromCharCode(coordinate + 63);\n return output;\n}\n\n/**\n * Decodes to a [latitude, longitude] coordinates array.\n *\n * This is adapted from the implementation in Project-OSRM.\n *\n * @param {String} str\n * @param {Number} precision\n * @returns {Array}\n *\n * @see https://github.com/Project-OSRM/osrm-frontend/blob/master/WebContent/routing/OSRM.RoutingGeometry.js\n */\npolyline.decode = function(str, precision) {\n var index = 0,\n lat = 0,\n lng = 0,\n coordinates = [],\n shift = 0,\n result = 0,\n byte = null,\n latitude_change,\n longitude_change,\n factor = Math.pow(10, precision || 5);\n\n // Coordinates have variable length when encoded, so just keep\n // track of whether we've hit the end of the string. In each\n // loop iteration, a single coordinate is decoded.\n while (index < str.length) {\n\n // Reset shift, result, and byte\n byte = null;\n shift = 0;\n result = 0;\n\n do {\n byte = str.charCodeAt(index++) - 63;\n result |= (byte & 0x1f) << shift;\n shift += 5;\n } while (byte >= 0x20);\n\n latitude_change = ((result & 1) ? ~(result >> 1) : (result >> 1));\n\n shift = result = 0;\n\n do {\n byte = str.charCodeAt(index++) - 63;\n result |= (byte & 0x1f) << shift;\n shift += 5;\n } while (byte >= 0x20);\n\n longitude_change = ((result & 1) ? ~(result >> 1) : (result >> 1));\n\n lat += latitude_change;\n lng += longitude_change;\n\n coordinates.push([lat / factor, lng / factor]);\n }\n\n return coordinates;\n};\n\n/**\n * Encodes the given [latitude, longitude] coordinates array.\n *\n * @param {Array.<Array.<Number>>} coordinates\n * @param {Number} precision\n * @returns {String}\n */\npolyline.encode = function(coordinates, precision) {\n if (!coordinates.length) { return ''; }\n\n var factor = Math.pow(10, precision || 5),\n output = encode(coordinates[0][0], 0, factor) + encode(coordinates[0][1], 0, factor);\n\n for (var i = 1; i < coordinates.length; i++) {\n var a = coordinates[i], b = coordinates[i - 1];\n output += encode(a[0], b[0], factor);\n output += encode(a[1], b[1], factor);\n }\n\n return output;\n};\n\nfunction flipped(coords) {\n var flipped = [];\n for (var i = 0; i < coords.length; i++) {\n flipped.push(coords[i].slice().reverse());\n }\n return flipped;\n}\n\n/**\n * Encodes a GeoJSON LineString feature/geometry.\n *\n * @param {Object} geojson\n * @param {Number} precision\n * @returns {String}\n */\npolyline.fromGeoJSON = function(geojson, precision) {\n if (geojson && geojson.type === 'Feature') {\n geojson = geojson.geometry;\n }\n if (!geojson || geojson.type !== 'LineString') {\n throw new Error('Input must be a GeoJSON LineString');\n }\n return polyline.encode(flipped(geojson.coordinates), precision);\n};\n\n/**\n * Decodes to a GeoJSON LineString geometry.\n *\n * @param {String} str\n * @param {Number} precision\n * @returns {Object}\n */\npolyline.toGeoJSON = function(str, precision) {\n var coords = polyline.decode(str, precision);\n return {\n type: 'LineString',\n coordinates: flipped(coords)\n };\n};\n\nif (typeof module === 'object' && module.exports) {\n module.exports = polyline;\n}\n"
},
{
"id": 164,
"identifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/mapbox.js",
"name": "./node_modules/leaflet-routing-machine/src/mapbox.js",
"index": 157,
"index2": 152,
"size": 671,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/index.js",
"issuerId": 160,
"issuerName": "./node_modules/leaflet-routing-machine/src/index.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 146,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"name": "./src/modules/Router.js"
},
{
"id": 160,
"identifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/index.js",
"name": "./node_modules/leaflet-routing-machine/src/index.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 160,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/index.js",
"module": "./node_modules/leaflet-routing-machine/src/index.js",
"moduleName": "./node_modules/leaflet-routing-machine/src/index.js",
"type": "cjs require",
"userRequest": "./mapbox",
"loc": "13:13-32"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 5,
"source": "(function() {\n\t'use strict';\n\n\tvar L = require('leaflet');\n\n\tvar OSRMv1 = require('./osrm-v1');\n\n\t/**\n\t * Works against OSRM's new API in version 5.0; this has\n\t * the API version v1.\n\t */\n\tmodule.exports = OSRMv1.extend({\n\t\toptions: {\n\t\t\tserviceUrl: 'https://api.mapbox.com/directions/v5',\n\t\t\tprofile: 'mapbox/driving',\n\t\t\tuseHints: false\n\t\t},\n\n\t\tinitialize: function(accessToken, options) {\n\t\t\tL.Routing.OSRMv1.prototype.initialize.call(this, options);\n\t\t\tthis.options.requestParameters = this.options.requestParameters || {};\n\t\t\t/* jshint camelcase: false */\n\t\t\tthis.options.requestParameters.access_token = accessToken;\n\t\t\t/* jshint camelcase: true */\n\t\t}\n\t});\n})();\n"
},
{
"id": 165,
"identifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/error-control.js",
"name": "./node_modules/leaflet-routing-machine/src/error-control.js",
"index": 158,
"index2": 153,
"size": 1371,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/index.js",
"issuerId": 160,
"issuerName": "./node_modules/leaflet-routing-machine/src/index.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 146,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"name": "./src/modules/Router.js"
},
{
"id": 160,
"identifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/index.js",
"name": "./node_modules/leaflet-routing-machine/src/index.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 160,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/index.js",
"module": "./node_modules/leaflet-routing-machine/src/index.js",
"moduleName": "./node_modules/leaflet-routing-machine/src/index.js",
"type": "cjs require",
"userRequest": "./error-control",
"loc": "14:19-45"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 5,
"source": "(function() {\n\t'use strict';\n\n\tvar L = require('leaflet');\n\n\tmodule.exports = L.Control.extend({\n\t\toptions: {\n\t\t\theader: 'Routing error',\n\t\t\tformatMessage: function(error) {\n\t\t\t\tif (error.status < 0) {\n\t\t\t\t\treturn 'Calculating the route caused an error. Technical description follows: <code><pre>' +\n\t\t\t\t\t\terror.message + '</pre></code';\n\t\t\t\t} else {\n\t\t\t\t\treturn 'The route could not be calculated. ' +\n\t\t\t\t\t\terror.message;\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\n\t\tinitialize: function(routingControl, options) {\n\t\t\tL.Control.prototype.initialize.call(this, options);\n\t\t\troutingControl\n\t\t\t\t.on('routingerror', L.bind(function(e) {\n\t\t\t\t\tif (this._element) {\n\t\t\t\t\t\tthis._element.children[1].innerHTML = this.options.formatMessage(e.error);\n\t\t\t\t\t\tthis._element.style.visibility = 'visible';\n\t\t\t\t\t}\n\t\t\t\t}, this))\n\t\t\t\t.on('routingstart', L.bind(function() {\n\t\t\t\t\tif (this._element) {\n\t\t\t\t\t\tthis._element.style.visibility = 'hidden';\n\t\t\t\t\t}\n\t\t\t\t}, this));\n\t\t},\n\n\t\tonAdd: function() {\n\t\t\tvar header,\n\t\t\t\tmessage;\n\n\t\t\tthis._element = L.DomUtil.create('div', 'leaflet-bar leaflet-routing-error');\n\t\t\tthis._element.style.visibility = 'hidden';\n\n\t\t\theader = L.DomUtil.create('h3', null, this._element);\n\t\t\tmessage = L.DomUtil.create('span', null, this._element);\n\n\t\t\theader.innerHTML = this.options.header;\n\n\t\t\treturn this._element;\n\t\t},\n\n\t\tonRemove: function() {\n\t\t\tdelete this._element;\n\t\t}\n\t});\n})();\n"
},
{
"id": 166,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/config.js",
"name": "./src/config.js",
"index": 159,
"index2": 155,
"size": 589,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"issuerId": 146,
"issuerName": "./src/modules/Router.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 146,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"name": "./src/modules/Router.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 146,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"module": "./src/modules/Router.js",
"moduleName": "./src/modules/Router.js",
"type": "cjs require",
"userRequest": "$config",
"loc": "32:15-33"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 4,
"source": "'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\n(function () {\n var enterModule = require('react-hot-loader').enterModule;\n\n enterModule && enterModule(module);\n})();\n\nvar CONFIG = exports.CONFIG = {\n OSRM_URL: 'http://vault48.org:5000/route/v1'\n};\n;\n\n(function () {\n var reactHotLoader = require('react-hot-loader').default;\n\n var leaveModule = require('react-hot-loader').leaveModule;\n\n if (!reactHotLoader) {\n return;\n }\n\n reactHotLoader.register(CONFIG, 'CONFIG', '/Users/user/Projects/orchid/src/config.js');\n leaveModule(module);\n})();\n\n;"
},
{
"id": 167,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Shotter.js",
"name": "./src/modules/Shotter.js",
"index": 160,
"index2": 184,
"size": 3459,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"issuerId": 124,
"issuerName": "./src/modules/Editor.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 124,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"module": "./src/modules/Editor.js",
"moduleName": "./src/modules/Editor.js",
"type": "cjs require",
"userRequest": "$modules/Shotter",
"loc": "30:15-42"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 3,
"source": "'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.Shotter = undefined;\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _axios = require('axios');\n\nvar _axios2 = _interopRequireDefault(_axios);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n(function () {\n var enterModule = require('react-hot-loader').enterModule;\n\n enterModule && enterModule(module);\n})();\n\nvar Shotter = exports.Shotter = function () {\n function Shotter(_ref) {\n var _this = this;\n\n var map = _ref.map;\n (0, _classCallCheck3.default)(this, Shotter);\n\n this.latLngToTile = function (latlng) {\n var z = _this.map.getZoom();\n var x = parseInt(Math.floor((latlng.lng + 180) / 360 * (1 << z)), 10);\n var y = parseInt(Math.floor((1 - Math.log(Math.tan(latlng.lat * Math.PI / 180) + 1 / Math.cos(latlng.lat * Math.PI / 180)) / Math.PI) / 2 * (1 << z)), 10);\n return { x: x, y: y, z: z };\n };\n\n this.tileToLatLng = function (point) {\n var z = _this.map.getZoom();\n var lng = point.x / Math.pow(2, z) * 360 - 180;\n\n var n = Math.PI - 2 * Math.PI * point.y / Math.pow(2, z);\n var lat = 180 / Math.PI * Math.atan(0.5 * (Math.exp(n) - Math.exp(-n)));\n\n return { lat: lat, lng: lng };\n };\n\n this.makeShot = function () {\n // console.log('shot', this.getTilePlacement());\n var placement = _this.getTilePlacement();\n\n _axios2.default.get('http://alpha-map.vault48.org/engine/composerOrchid.php', {\n params: { placement: placement, mode: 'test' }\n }).then(console.log).catch(console.warn);\n };\n\n this.tiles = [];\n this.tilesLoaded = 0;\n this.map = map;\n }\n\n (0, _createClass3.default)(Shotter, [{\n key: 'getTilePlacement',\n value: function getTilePlacement() {\n var _window = window,\n innerHeight = _window.innerHeight,\n innerWidth = _window.innerWidth;\n\n var _map$getBounds = this.map.getBounds(),\n _southWest = _map$getBounds._southWest,\n _northEast = _map$getBounds._northEast;\n\n var sw = this.latLngToTile(_southWest);\n var ne = this.latLngToTile(_northEast);\n\n var zsw = this.tileToLatLng(sw);\n var zne = this.tileToLatLng(ne);\n\n var rsw = this.map.latLngToContainerPoint(zsw);\n var msw = this.map.latLngToContainerPoint(_southWest);\n\n return {\n min_x: sw.x,\n min_y: ne.y,\n max_x: ne.x,\n max_y: sw.y,\n sh_x: rsw.x - msw.x,\n sh_y: innerHeight + rsw.y - msw.y,\n size: 256,\n width: innerWidth,\n height: innerHeight,\n zoom: this.map.getZoom(),\n provider: 'dgis'\n };\n }\n }, {\n key: '__reactstandin__regenerateByEval',\n // @ts-ignore\n value: function __reactstandin__regenerateByEval(key, code) {\n // @ts-ignore\n this[key] = eval(code);\n }\n }]);\n return Shotter;\n}();\n\n;\n\n(function () {\n var reactHotLoader = require('react-hot-loader').default;\n\n var leaveModule = require('react-hot-loader').leaveModule;\n\n if (!reactHotLoader) {\n return;\n }\n\n reactHotLoader.register(Shotter, 'Shotter', '/Users/user/Projects/orchid/src/modules/Shotter.js');\n leaveModule(module);\n})();\n\n;"
},
{
"id": 168,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/index.js",
"name": "./node_modules/axios/index.js",
"index": 161,
"index2": 183,
"size": 40,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Shotter.js",
"issuerId": 167,
"issuerName": "./src/modules/Shotter.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 167,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Shotter.js",
"name": "./src/modules/Shotter.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 167,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Shotter.js",
"module": "./src/modules/Shotter.js",
"moduleName": "./src/modules/Shotter.js",
"type": "cjs require",
"userRequest": "axios",
"loc": "16:13-29"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 4,
"source": "module.exports = require('./lib/axios');"
},
{
"id": 169,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/axios.js",
"name": "./node_modules/axios/lib/axios.js",
"index": 162,
"index2": 182,
"size": 1368,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/axios/index.js",
"issuerId": 168,
"issuerName": "./node_modules/axios/index.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 167,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Shotter.js",
"name": "./src/modules/Shotter.js"
},
{
"id": 168,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/index.js",
"name": "./node_modules/axios/index.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 168,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/axios/index.js",
"module": "./node_modules/axios/index.js",
"moduleName": "./node_modules/axios/index.js",
"type": "cjs require",
"userRequest": "./lib/axios",
"loc": "1:17-39"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 5,
"source": "'use strict';\n\nvar utils = require('./utils');\nvar bind = require('./helpers/bind');\nvar Axios = require('./core/Axios');\nvar defaults = require('./defaults');\n\n/**\n * Create an instance of Axios\n *\n * @param {Object} defaultConfig The default config for the instance\n * @return {Axios} A new instance of Axios\n */\nfunction createInstance(defaultConfig) {\n var context = new Axios(defaultConfig);\n var instance = bind(Axios.prototype.request, context);\n\n // Copy axios.prototype to instance\n utils.extend(instance, Axios.prototype, context);\n\n // Copy context to instance\n utils.extend(instance, context);\n\n return instance;\n}\n\n// Create the default instance to be exported\nvar axios = createInstance(defaults);\n\n// Expose Axios class to allow class inheritance\naxios.Axios = Axios;\n\n// Factory for creating new instances\naxios.create = function create(instanceConfig) {\n return createInstance(utils.merge(defaults, instanceConfig));\n};\n\n// Expose Cancel & CancelToken\naxios.Cancel = require('./cancel/Cancel');\naxios.CancelToken = require('./cancel/CancelToken');\naxios.isCancel = require('./cancel/isCancel');\n\n// Expose all/spread\naxios.all = function all(promises) {\n return Promise.all(promises);\n};\naxios.spread = require('./helpers/spread');\n\nmodule.exports = axios;\n\n// Allow use of default import syntax in TypeScript\nmodule.exports.default = axios;\n"
},
{
"id": 170,
"identifier": "/Users/user/Projects/orchid/node_modules/is-buffer/index.js",
"name": "./node_modules/is-buffer/index.js",
"index": 165,
"index2": 158,
"size": 698,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/axios/lib/utils.js",
"issuerId": 4,
"issuerName": "./node_modules/axios/lib/utils.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 167,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Shotter.js",
"name": "./src/modules/Shotter.js"
},
{
"id": 168,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/index.js",
"name": "./node_modules/axios/index.js"
},
{
"id": 169,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/axios.js",
"name": "./node_modules/axios/lib/axios.js"
},
{
"id": 4,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/utils.js",
"name": "./node_modules/axios/lib/utils.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 4,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/axios/lib/utils.js",
"module": "./node_modules/axios/lib/utils.js",
"moduleName": "./node_modules/axios/lib/utils.js",
"type": "cjs require",
"userRequest": "is-buffer",
"loc": "4:15-35"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "/*!\n * Determine if an object is a Buffer\n *\n * @author Feross Aboukhadijeh <https://feross.org>\n * @license MIT\n */\n\n// The _isBuffer check is for Safari 5-7 support, because it's missing\n// Object.prototype.constructor. Remove this eventually\nmodule.exports = function (obj) {\n return obj != null && (isBuffer(obj) || isSlowBuffer(obj) || !!obj._isBuffer)\n}\n\nfunction isBuffer (obj) {\n return !!obj.constructor && typeof obj.constructor.isBuffer === 'function' && obj.constructor.isBuffer(obj)\n}\n\n// For Node v0.10 support. Remove this eventually.\nfunction isSlowBuffer (obj) {\n return typeof obj.readFloatLE === 'function' && typeof obj.slice === 'function' && isBuffer(obj.slice(0, 0))\n}\n"
},
{
"id": 171,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/core/Axios.js",
"name": "./node_modules/axios/lib/core/Axios.js",
"index": 166,
"index2": 178,
"size": 2187,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/axios/lib/axios.js",
"issuerId": 169,
"issuerName": "./node_modules/axios/lib/axios.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 167,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Shotter.js",
"name": "./src/modules/Shotter.js"
},
{
"id": 168,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/index.js",
"name": "./node_modules/axios/index.js"
},
{
"id": 169,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/axios.js",
"name": "./node_modules/axios/lib/axios.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 169,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/axios/lib/axios.js",
"module": "./node_modules/axios/lib/axios.js",
"moduleName": "./node_modules/axios/lib/axios.js",
"type": "cjs require",
"userRequest": "./core/Axios",
"loc": "5:12-35"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 6,
"source": "'use strict';\n\nvar defaults = require('./../defaults');\nvar utils = require('./../utils');\nvar InterceptorManager = require('./InterceptorManager');\nvar dispatchRequest = require('./dispatchRequest');\n\n/**\n * Create a new instance of Axios\n *\n * @param {Object} instanceConfig The default config for the instance\n */\nfunction Axios(instanceConfig) {\n this.defaults = instanceConfig;\n this.interceptors = {\n request: new InterceptorManager(),\n response: new InterceptorManager()\n };\n}\n\n/**\n * Dispatch a request\n *\n * @param {Object} config The config specific for this request (merged with this.defaults)\n */\nAxios.prototype.request = function request(config) {\n /*eslint no-param-reassign:0*/\n // Allow for axios('example/url'[, config]) a la fetch API\n if (typeof config === 'string') {\n config = utils.merge({\n url: arguments[0]\n }, arguments[1]);\n }\n\n config = utils.merge(defaults, {method: 'get'}, this.defaults, config);\n config.method = config.method.toLowerCase();\n\n // Hook up interceptors middleware\n var chain = [dispatchRequest, undefined];\n var promise = Promise.resolve(config);\n\n this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {\n chain.unshift(interceptor.fulfilled, interceptor.rejected);\n });\n\n this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {\n chain.push(interceptor.fulfilled, interceptor.rejected);\n });\n\n while (chain.length) {\n promise = promise.then(chain.shift(), chain.shift());\n }\n\n return promise;\n};\n\n// Provide aliases for supported request methods\nutils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {\n /*eslint func-names:0*/\n Axios.prototype[method] = function(url, config) {\n return this.request(utils.merge(config || {}, {\n method: method,\n url: url\n }));\n };\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n /*eslint func-names:0*/\n Axios.prototype[method] = function(url, data, config) {\n return this.request(utils.merge(config || {}, {\n method: method,\n url: url,\n data: data\n }));\n };\n});\n\nmodule.exports = Axios;\n"
},
{
"id": 172,
"identifier": "/Users/user/Projects/orchid/node_modules/node-libs-browser/node_modules/process/browser.js",
"name": "./node_modules/node-libs-browser/node_modules/process/browser.js",
"index": 168,
"index2": 160,
"size": 5418,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/axios/lib/defaults.js",
"issuerId": 46,
"issuerName": "./node_modules/axios/lib/defaults.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 167,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Shotter.js",
"name": "./src/modules/Shotter.js"
},
{
"id": 168,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/index.js",
"name": "./node_modules/axios/index.js"
},
{
"id": 169,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/axios.js",
"name": "./node_modules/axios/lib/axios.js"
},
{
"id": 46,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/defaults.js",
"name": "./node_modules/axios/lib/defaults.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 46,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/axios/lib/defaults.js",
"module": "./node_modules/axios/lib/defaults.js",
"moduleName": "./node_modules/axios/lib/defaults.js",
"type": "cjs require",
"userRequest": "process",
"loc": "1:0-68"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "// shim for using process in browser\nvar process = module.exports = {};\n\n// cached from whatever global is present so that test runners that stub it\n// don't break things. But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals. It's inside a\n// function because try/catches deoptimize in certain engines.\n\nvar cachedSetTimeout;\nvar cachedClearTimeout;\n\nfunction defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n}\nfunction defaultClearTimeout () {\n throw new Error('clearTimeout has not been defined');\n}\n(function () {\n try {\n if (typeof setTimeout === 'function') {\n cachedSetTimeout = setTimeout;\n } else {\n cachedSetTimeout = defaultSetTimout;\n }\n } catch (e) {\n cachedSetTimeout = defaultSetTimout;\n }\n try {\n if (typeof clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n } else {\n cachedClearTimeout = defaultClearTimeout;\n }\n } catch (e) {\n cachedClearTimeout = defaultClearTimeout;\n }\n} ())\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n }\n // if setTimeout wasn't available but was latter defined\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch(e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch(e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n\n\n}\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n }\n // if clearTimeout wasn't available but was latter defined\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n\n\n\n}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n\n var len = queue.length;\n while(len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n};\n\n// v8 likes predictible objects\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\nprocess.prependListener = noop;\nprocess.prependOnceListener = noop;\n\nprocess.listeners = function (name) { return [] }\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\nprocess.umask = function() { return 0; };\n"
},
{
"id": 173,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/helpers/normalizeHeaderName.js",
"name": "./node_modules/axios/lib/helpers/normalizeHeaderName.js",
"index": 169,
"index2": 161,
"size": 357,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/axios/lib/defaults.js",
"issuerId": 46,
"issuerName": "./node_modules/axios/lib/defaults.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 167,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Shotter.js",
"name": "./src/modules/Shotter.js"
},
{
"id": 168,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/index.js",
"name": "./node_modules/axios/index.js"
},
{
"id": 169,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/axios.js",
"name": "./node_modules/axios/lib/axios.js"
},
{
"id": 46,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/defaults.js",
"name": "./node_modules/axios/lib/defaults.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 46,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/axios/lib/defaults.js",
"module": "./node_modules/axios/lib/defaults.js",
"moduleName": "./node_modules/axios/lib/defaults.js",
"type": "cjs require",
"userRequest": "./helpers/normalizeHeaderName",
"loc": "4:26-66"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "'use strict';\n\nvar utils = require('../utils');\n\nmodule.exports = function normalizeHeaderName(headers, normalizedName) {\n utils.forEach(headers, function processHeader(value, name) {\n if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) {\n headers[normalizedName] = value;\n delete headers[name];\n }\n });\n};\n"
},
{
"id": 174,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/core/settle.js",
"name": "./node_modules/axios/lib/core/settle.js",
"index": 171,
"index2": 164,
"size": 757,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/axios/lib/adapters/xhr.js",
"issuerId": 75,
"issuerName": "./node_modules/axios/lib/adapters/xhr.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 167,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Shotter.js",
"name": "./src/modules/Shotter.js"
},
{
"id": 168,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/index.js",
"name": "./node_modules/axios/index.js"
},
{
"id": 169,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/axios.js",
"name": "./node_modules/axios/lib/axios.js"
},
{
"id": 46,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/defaults.js",
"name": "./node_modules/axios/lib/defaults.js"
},
{
"id": 75,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/adapters/xhr.js",
"name": "./node_modules/axios/lib/adapters/xhr.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 75,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/axios/lib/adapters/xhr.js",
"module": "./node_modules/axios/lib/adapters/xhr.js",
"moduleName": "./node_modules/axios/lib/adapters/xhr.js",
"type": "cjs require",
"userRequest": "./../core/settle",
"loc": "4:13-40"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 8,
"source": "'use strict';\n\nvar createError = require('./createError');\n\n/**\n * Resolve or reject a Promise based on response status.\n *\n * @param {Function} resolve A function that resolves the promise.\n * @param {Function} reject A function that rejects the promise.\n * @param {object} response The response.\n */\nmodule.exports = function settle(resolve, reject, response) {\n var validateStatus = response.config.validateStatus;\n // Note: status is not exposed by XDomainRequest\n if (!response.status || !validateStatus || validateStatus(response.status)) {\n resolve(response);\n } else {\n reject(createError(\n 'Request failed with status code ' + response.status,\n response.config,\n null,\n response.request,\n response\n ));\n }\n};\n"
},
{
"id": 175,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/core/enhanceError.js",
"name": "./node_modules/axios/lib/core/enhanceError.js",
"index": 173,
"index2": 162,
"size": 592,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/axios/lib/core/createError.js",
"issuerId": 76,
"issuerName": "./node_modules/axios/lib/core/createError.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 167,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Shotter.js",
"name": "./src/modules/Shotter.js"
},
{
"id": 168,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/index.js",
"name": "./node_modules/axios/index.js"
},
{
"id": 169,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/axios.js",
"name": "./node_modules/axios/lib/axios.js"
},
{
"id": 46,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/defaults.js",
"name": "./node_modules/axios/lib/defaults.js"
},
{
"id": 75,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/adapters/xhr.js",
"name": "./node_modules/axios/lib/adapters/xhr.js"
},
{
"id": 76,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/core/createError.js",
"name": "./node_modules/axios/lib/core/createError.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 76,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/axios/lib/core/createError.js",
"module": "./node_modules/axios/lib/core/createError.js",
"moduleName": "./node_modules/axios/lib/core/createError.js",
"type": "cjs require",
"userRequest": "./enhanceError",
"loc": "3:19-44"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 9,
"source": "'use strict';\n\n/**\n * Update an Error with the specified config, error code, and response.\n *\n * @param {Error} error The error to update.\n * @param {Object} config The config.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n * @returns {Error} The error.\n */\nmodule.exports = function enhanceError(error, config, code, request, response) {\n error.config = config;\n if (code) {\n error.code = code;\n }\n error.request = request;\n error.response = response;\n return error;\n};\n"
},
{
"id": 176,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/helpers/buildURL.js",
"name": "./node_modules/axios/lib/helpers/buildURL.js",
"index": 174,
"index2": 165,
"size": 1549,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/axios/lib/adapters/xhr.js",
"issuerId": 75,
"issuerName": "./node_modules/axios/lib/adapters/xhr.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 167,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Shotter.js",
"name": "./src/modules/Shotter.js"
},
{
"id": 168,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/index.js",
"name": "./node_modules/axios/index.js"
},
{
"id": 169,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/axios.js",
"name": "./node_modules/axios/lib/axios.js"
},
{
"id": 46,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/defaults.js",
"name": "./node_modules/axios/lib/defaults.js"
},
{
"id": 75,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/adapters/xhr.js",
"name": "./node_modules/axios/lib/adapters/xhr.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 75,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/axios/lib/adapters/xhr.js",
"module": "./node_modules/axios/lib/adapters/xhr.js",
"moduleName": "./node_modules/axios/lib/adapters/xhr.js",
"type": "cjs require",
"userRequest": "./../helpers/buildURL",
"loc": "5:15-47"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 8,
"source": "'use strict';\n\nvar utils = require('./../utils');\n\nfunction encode(val) {\n return encodeURIComponent(val).\n replace(/%40/gi, '@').\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%20/g, '+').\n replace(/%5B/gi, '[').\n replace(/%5D/gi, ']');\n}\n\n/**\n * Build a URL by appending params to the end\n *\n * @param {string} url The base of the url (e.g., http://www.google.com)\n * @param {object} [params] The params to be appended\n * @returns {string} The formatted url\n */\nmodule.exports = function buildURL(url, params, paramsSerializer) {\n /*eslint no-param-reassign:0*/\n if (!params) {\n return url;\n }\n\n var serializedParams;\n if (paramsSerializer) {\n serializedParams = paramsSerializer(params);\n } else if (utils.isURLSearchParams(params)) {\n serializedParams = params.toString();\n } else {\n var parts = [];\n\n utils.forEach(params, function serialize(val, key) {\n if (val === null || typeof val === 'undefined') {\n return;\n }\n\n if (utils.isArray(val)) {\n key = key + '[]';\n } else {\n val = [val];\n }\n\n utils.forEach(val, function parseValue(v) {\n if (utils.isDate(v)) {\n v = v.toISOString();\n } else if (utils.isObject(v)) {\n v = JSON.stringify(v);\n }\n parts.push(encode(key) + '=' + encode(v));\n });\n });\n\n serializedParams = parts.join('&');\n }\n\n if (serializedParams) {\n url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;\n }\n\n return url;\n};\n"
},
{
"id": 177,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/helpers/parseHeaders.js",
"name": "./node_modules/axios/lib/helpers/parseHeaders.js",
"index": 175,
"index2": 166,
"size": 1393,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/axios/lib/adapters/xhr.js",
"issuerId": 75,
"issuerName": "./node_modules/axios/lib/adapters/xhr.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 167,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Shotter.js",
"name": "./src/modules/Shotter.js"
},
{
"id": 168,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/index.js",
"name": "./node_modules/axios/index.js"
},
{
"id": 169,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/axios.js",
"name": "./node_modules/axios/lib/axios.js"
},
{
"id": 46,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/defaults.js",
"name": "./node_modules/axios/lib/defaults.js"
},
{
"id": 75,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/adapters/xhr.js",
"name": "./node_modules/axios/lib/adapters/xhr.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 75,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/axios/lib/adapters/xhr.js",
"module": "./node_modules/axios/lib/adapters/xhr.js",
"moduleName": "./node_modules/axios/lib/adapters/xhr.js",
"type": "cjs require",
"userRequest": "./../helpers/parseHeaders",
"loc": "6:19-55"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 8,
"source": "'use strict';\n\nvar utils = require('./../utils');\n\n// Headers whose duplicates are ignored by node\n// c.f. https://nodejs.org/api/http.html#http_message_headers\nvar ignoreDuplicateOf = [\n 'age', 'authorization', 'content-length', 'content-type', 'etag',\n 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',\n 'last-modified', 'location', 'max-forwards', 'proxy-authorization',\n 'referer', 'retry-after', 'user-agent'\n];\n\n/**\n * Parse headers into an object\n *\n * ```\n * Date: Wed, 27 Aug 2014 08:58:49 GMT\n * Content-Type: application/json\n * Connection: keep-alive\n * Transfer-Encoding: chunked\n * ```\n *\n * @param {String} headers Headers needing to be parsed\n * @returns {Object} Headers parsed into an object\n */\nmodule.exports = function parseHeaders(headers) {\n var parsed = {};\n var key;\n var val;\n var i;\n\n if (!headers) { return parsed; }\n\n utils.forEach(headers.split('\\n'), function parser(line) {\n i = line.indexOf(':');\n key = utils.trim(line.substr(0, i)).toLowerCase();\n val = utils.trim(line.substr(i + 1));\n\n if (key) {\n if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) {\n return;\n }\n if (key === 'set-cookie') {\n parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]);\n } else {\n parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n }\n }\n });\n\n return parsed;\n};\n"
},
{
"id": 178,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/helpers/isURLSameOrigin.js",
"name": "./node_modules/axios/lib/helpers/isURLSameOrigin.js",
"index": 176,
"index2": 167,
"size": 2245,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/axios/lib/adapters/xhr.js",
"issuerId": 75,
"issuerName": "./node_modules/axios/lib/adapters/xhr.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 167,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Shotter.js",
"name": "./src/modules/Shotter.js"
},
{
"id": 168,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/index.js",
"name": "./node_modules/axios/index.js"
},
{
"id": 169,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/axios.js",
"name": "./node_modules/axios/lib/axios.js"
},
{
"id": 46,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/defaults.js",
"name": "./node_modules/axios/lib/defaults.js"
},
{
"id": 75,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/adapters/xhr.js",
"name": "./node_modules/axios/lib/adapters/xhr.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 75,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/axios/lib/adapters/xhr.js",
"module": "./node_modules/axios/lib/adapters/xhr.js",
"moduleName": "./node_modules/axios/lib/adapters/xhr.js",
"type": "cjs require",
"userRequest": "./../helpers/isURLSameOrigin",
"loc": "7:22-61"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 8,
"source": "'use strict';\n\nvar utils = require('./../utils');\n\nmodule.exports = (\n utils.isStandardBrowserEnv() ?\n\n // Standard browser envs have full support of the APIs needed to test\n // whether the request URL is of the same origin as current location.\n (function standardBrowserEnv() {\n var msie = /(msie|trident)/i.test(navigator.userAgent);\n var urlParsingNode = document.createElement('a');\n var originURL;\n\n /**\n * Parse a URL to discover it's components\n *\n * @param {String} url The URL to be parsed\n * @returns {Object}\n */\n function resolveURL(url) {\n var href = url;\n\n if (msie) {\n // IE needs attribute set twice to normalize properties\n urlParsingNode.setAttribute('href', href);\n href = urlParsingNode.href;\n }\n\n urlParsingNode.setAttribute('href', href);\n\n // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils\n return {\n href: urlParsingNode.href,\n protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',\n host: urlParsingNode.host,\n search: urlParsingNode.search ? urlParsingNode.search.replace(/^\\?/, '') : '',\n hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',\n hostname: urlParsingNode.hostname,\n port: urlParsingNode.port,\n pathname: (urlParsingNode.pathname.charAt(0) === '/') ?\n urlParsingNode.pathname :\n '/' + urlParsingNode.pathname\n };\n }\n\n originURL = resolveURL(window.location.href);\n\n /**\n * Determine if a URL shares the same origin as the current location\n *\n * @param {String} requestURL The URL to test\n * @returns {boolean} True if URL shares the same origin, otherwise false\n */\n return function isURLSameOrigin(requestURL) {\n var parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL;\n return (parsed.protocol === originURL.protocol &&\n parsed.host === originURL.host);\n };\n })() :\n\n // Non standard browser envs (web workers, react-native) lack needed support.\n (function nonStandardBrowserEnv() {\n return function isURLSameOrigin() {\n return true;\n };\n })()\n);\n"
},
{
"id": 179,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/helpers/btoa.js",
"name": "./node_modules/axios/lib/helpers/btoa.js",
"index": 177,
"index2": 168,
"size": 986,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/axios/lib/adapters/xhr.js",
"issuerId": 75,
"issuerName": "./node_modules/axios/lib/adapters/xhr.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 167,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Shotter.js",
"name": "./src/modules/Shotter.js"
},
{
"id": 168,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/index.js",
"name": "./node_modules/axios/index.js"
},
{
"id": 169,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/axios.js",
"name": "./node_modules/axios/lib/axios.js"
},
{
"id": 46,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/defaults.js",
"name": "./node_modules/axios/lib/defaults.js"
},
{
"id": 75,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/adapters/xhr.js",
"name": "./node_modules/axios/lib/adapters/xhr.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 75,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/axios/lib/adapters/xhr.js",
"module": "./node_modules/axios/lib/adapters/xhr.js",
"moduleName": "./node_modules/axios/lib/adapters/xhr.js",
"type": "cjs require",
"userRequest": "./../helpers/btoa",
"loc": "9:89-117"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 8,
"source": "'use strict';\n\n// btoa polyfill for IE<10 courtesy https://github.com/davidchambers/Base64.js\n\nvar chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';\n\nfunction E() {\n this.message = 'String contains an invalid character';\n}\nE.prototype = new Error;\nE.prototype.code = 5;\nE.prototype.name = 'InvalidCharacterError';\n\nfunction btoa(input) {\n var str = String(input);\n var output = '';\n for (\n // initialize result and counter\n var block, charCode, idx = 0, map = chars;\n // if the next str index does not exist:\n // change the mapping table to \"=\"\n // check if d has no fractional digits\n str.charAt(idx | 0) || (map = '=', idx % 1);\n // \"8 - idx % 1 * 8\" generates the sequence 2, 4, 6, 8\n output += map.charAt(63 & block >> 8 - idx % 1 * 8)\n ) {\n charCode = str.charCodeAt(idx += 3 / 4);\n if (charCode > 0xFF) {\n throw new E();\n }\n block = block << 8 | charCode;\n }\n return output;\n}\n\nmodule.exports = btoa;\n"
},
{
"id": 180,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/helpers/cookies.js",
"name": "./node_modules/axios/lib/helpers/cookies.js",
"index": 178,
"index2": 169,
"size": 1365,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/axios/lib/adapters/xhr.js",
"issuerId": 75,
"issuerName": "./node_modules/axios/lib/adapters/xhr.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 167,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Shotter.js",
"name": "./src/modules/Shotter.js"
},
{
"id": 168,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/index.js",
"name": "./node_modules/axios/index.js"
},
{
"id": 169,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/axios.js",
"name": "./node_modules/axios/lib/axios.js"
},
{
"id": 46,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/defaults.js",
"name": "./node_modules/axios/lib/defaults.js"
},
{
"id": 75,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/adapters/xhr.js",
"name": "./node_modules/axios/lib/adapters/xhr.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 75,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/axios/lib/adapters/xhr.js",
"module": "./node_modules/axios/lib/adapters/xhr.js",
"moduleName": "./node_modules/axios/lib/adapters/xhr.js",
"type": "cjs require",
"userRequest": "./../helpers/cookies",
"loc": "106:20-51"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 8,
"source": "'use strict';\n\nvar utils = require('./../utils');\n\nmodule.exports = (\n utils.isStandardBrowserEnv() ?\n\n // Standard browser envs support document.cookie\n (function standardBrowserEnv() {\n return {\n write: function write(name, value, expires, path, domain, secure) {\n var cookie = [];\n cookie.push(name + '=' + encodeURIComponent(value));\n\n if (utils.isNumber(expires)) {\n cookie.push('expires=' + new Date(expires).toGMTString());\n }\n\n if (utils.isString(path)) {\n cookie.push('path=' + path);\n }\n\n if (utils.isString(domain)) {\n cookie.push('domain=' + domain);\n }\n\n if (secure === true) {\n cookie.push('secure');\n }\n\n document.cookie = cookie.join('; ');\n },\n\n read: function read(name) {\n var match = document.cookie.match(new RegExp('(^|;\\\\s*)(' + name + ')=([^;]*)'));\n return (match ? decodeURIComponent(match[3]) : null);\n },\n\n remove: function remove(name) {\n this.write(name, '', Date.now() - 86400000);\n }\n };\n })() :\n\n // Non standard browser env (web workers, react-native) lack needed support.\n (function nonStandardBrowserEnv() {\n return {\n write: function write() {},\n read: function read() { return null; },\n remove: function remove() {}\n };\n })()\n);\n"
},
{
"id": 181,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/core/InterceptorManager.js",
"name": "./node_modules/axios/lib/core/InterceptorManager.js",
"index": 179,
"index2": 172,
"size": 1251,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/axios/lib/core/Axios.js",
"issuerId": 171,
"issuerName": "./node_modules/axios/lib/core/Axios.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 167,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Shotter.js",
"name": "./src/modules/Shotter.js"
},
{
"id": 168,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/index.js",
"name": "./node_modules/axios/index.js"
},
{
"id": 169,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/axios.js",
"name": "./node_modules/axios/lib/axios.js"
},
{
"id": 171,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/core/Axios.js",
"name": "./node_modules/axios/lib/core/Axios.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 171,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/axios/lib/core/Axios.js",
"module": "./node_modules/axios/lib/core/Axios.js",
"moduleName": "./node_modules/axios/lib/core/Axios.js",
"type": "cjs require",
"userRequest": "./InterceptorManager",
"loc": "5:25-56"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "'use strict';\n\nvar utils = require('./../utils');\n\nfunction InterceptorManager() {\n this.handlers = [];\n}\n\n/**\n * Add a new interceptor to the stack\n *\n * @param {Function} fulfilled The function to handle `then` for a `Promise`\n * @param {Function} rejected The function to handle `reject` for a `Promise`\n *\n * @return {Number} An ID used to remove interceptor later\n */\nInterceptorManager.prototype.use = function use(fulfilled, rejected) {\n this.handlers.push({\n fulfilled: fulfilled,\n rejected: rejected\n });\n return this.handlers.length - 1;\n};\n\n/**\n * Remove an interceptor from the stack\n *\n * @param {Number} id The ID that was returned by `use`\n */\nInterceptorManager.prototype.eject = function eject(id) {\n if (this.handlers[id]) {\n this.handlers[id] = null;\n }\n};\n\n/**\n * Iterate over all the registered interceptors\n *\n * This method is particularly useful for skipping over any\n * interceptors that may have become `null` calling `eject`.\n *\n * @param {Function} fn The function to call for each interceptor\n */\nInterceptorManager.prototype.forEach = function forEach(fn) {\n utils.forEach(this.handlers, function forEachHandler(h) {\n if (h !== null) {\n fn(h);\n }\n });\n};\n\nmodule.exports = InterceptorManager;\n"
},
{
"id": 182,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/core/dispatchRequest.js",
"name": "./node_modules/axios/lib/core/dispatchRequest.js",
"index": 180,
"index2": 177,
"size": 2199,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/axios/lib/core/Axios.js",
"issuerId": 171,
"issuerName": "./node_modules/axios/lib/core/Axios.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 167,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Shotter.js",
"name": "./src/modules/Shotter.js"
},
{
"id": 168,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/index.js",
"name": "./node_modules/axios/index.js"
},
{
"id": 169,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/axios.js",
"name": "./node_modules/axios/lib/axios.js"
},
{
"id": 171,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/core/Axios.js",
"name": "./node_modules/axios/lib/core/Axios.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 171,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/axios/lib/core/Axios.js",
"module": "./node_modules/axios/lib/core/Axios.js",
"moduleName": "./node_modules/axios/lib/core/Axios.js",
"type": "cjs require",
"userRequest": "./dispatchRequest",
"loc": "6:22-50"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "'use strict';\n\nvar utils = require('./../utils');\nvar transformData = require('./transformData');\nvar isCancel = require('../cancel/isCancel');\nvar defaults = require('../defaults');\nvar isAbsoluteURL = require('./../helpers/isAbsoluteURL');\nvar combineURLs = require('./../helpers/combineURLs');\n\n/**\n * Throws a `Cancel` if cancellation has been requested.\n */\nfunction throwIfCancellationRequested(config) {\n if (config.cancelToken) {\n config.cancelToken.throwIfRequested();\n }\n}\n\n/**\n * Dispatch a request to the server using the configured adapter.\n *\n * @param {object} config The config that is to be used for the request\n * @returns {Promise} The Promise to be fulfilled\n */\nmodule.exports = function dispatchRequest(config) {\n throwIfCancellationRequested(config);\n\n // Support baseURL config\n if (config.baseURL && !isAbsoluteURL(config.url)) {\n config.url = combineURLs(config.baseURL, config.url);\n }\n\n // Ensure headers exist\n config.headers = config.headers || {};\n\n // Transform request data\n config.data = transformData(\n config.data,\n config.headers,\n config.transformRequest\n );\n\n // Flatten headers\n config.headers = utils.merge(\n config.headers.common || {},\n config.headers[config.method] || {},\n config.headers || {}\n );\n\n utils.forEach(\n ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],\n function cleanHeaderConfig(method) {\n delete config.headers[method];\n }\n );\n\n var adapter = config.adapter || defaults.adapter;\n\n return adapter(config).then(function onAdapterResolution(response) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n response.data = transformData(\n response.data,\n response.headers,\n config.transformResponse\n );\n\n return response;\n }, function onAdapterRejection(reason) {\n if (!isCancel(reason)) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n if (reason && reason.response) {\n reason.response.data = transformData(\n reason.response.data,\n reason.response.headers,\n config.transformResponse\n );\n }\n }\n\n return Promise.reject(reason);\n });\n};\n"
},
{
"id": 183,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/core/transformData.js",
"name": "./node_modules/axios/lib/core/transformData.js",
"index": 181,
"index2": 173,
"size": 550,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/axios/lib/core/dispatchRequest.js",
"issuerId": 182,
"issuerName": "./node_modules/axios/lib/core/dispatchRequest.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 167,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Shotter.js",
"name": "./src/modules/Shotter.js"
},
{
"id": 168,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/index.js",
"name": "./node_modules/axios/index.js"
},
{
"id": 169,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/axios.js",
"name": "./node_modules/axios/lib/axios.js"
},
{
"id": 171,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/core/Axios.js",
"name": "./node_modules/axios/lib/core/Axios.js"
},
{
"id": 182,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/core/dispatchRequest.js",
"name": "./node_modules/axios/lib/core/dispatchRequest.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 182,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/axios/lib/core/dispatchRequest.js",
"module": "./node_modules/axios/lib/core/dispatchRequest.js",
"moduleName": "./node_modules/axios/lib/core/dispatchRequest.js",
"type": "cjs require",
"userRequest": "./transformData",
"loc": "4:20-46"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 8,
"source": "'use strict';\n\nvar utils = require('./../utils');\n\n/**\n * Transform the data for a request or a response\n *\n * @param {Object|String} data The data to be transformed\n * @param {Array} headers The headers for the request or response\n * @param {Array|Function} fns A single function or Array of functions\n * @returns {*} The resulting transformed data\n */\nmodule.exports = function transformData(data, headers, fns) {\n /*eslint no-param-reassign:0*/\n utils.forEach(fns, function transform(fn) {\n data = fn(data, headers);\n });\n\n return data;\n};\n"
},
{
"id": 184,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/helpers/isAbsoluteURL.js",
"name": "./node_modules/axios/lib/helpers/isAbsoluteURL.js",
"index": 183,
"index2": 175,
"size": 563,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/axios/lib/core/dispatchRequest.js",
"issuerId": 182,
"issuerName": "./node_modules/axios/lib/core/dispatchRequest.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 167,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Shotter.js",
"name": "./src/modules/Shotter.js"
},
{
"id": 168,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/index.js",
"name": "./node_modules/axios/index.js"
},
{
"id": 169,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/axios.js",
"name": "./node_modules/axios/lib/axios.js"
},
{
"id": 171,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/core/Axios.js",
"name": "./node_modules/axios/lib/core/Axios.js"
},
{
"id": 182,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/core/dispatchRequest.js",
"name": "./node_modules/axios/lib/core/dispatchRequest.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 182,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/axios/lib/core/dispatchRequest.js",
"module": "./node_modules/axios/lib/core/dispatchRequest.js",
"moduleName": "./node_modules/axios/lib/core/dispatchRequest.js",
"type": "cjs require",
"userRequest": "./../helpers/isAbsoluteURL",
"loc": "7:20-57"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 8,
"source": "'use strict';\n\n/**\n * Determines whether the specified URL is absolute\n *\n * @param {string} url The URL to test\n * @returns {boolean} True if the specified URL is absolute, otherwise false\n */\nmodule.exports = function isAbsoluteURL(url) {\n // A URL is considered absolute if it begins with \"<scheme>://\" or \"//\" (protocol-relative URL).\n // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed\n // by any combination of letters, digits, plus, period, or hyphen.\n return /^([a-z][a-z\\d\\+\\-\\.]*:)?\\/\\//i.test(url);\n};\n"
},
{
"id": 185,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/helpers/combineURLs.js",
"name": "./node_modules/axios/lib/helpers/combineURLs.js",
"index": 184,
"index2": 176,
"size": 380,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/axios/lib/core/dispatchRequest.js",
"issuerId": 182,
"issuerName": "./node_modules/axios/lib/core/dispatchRequest.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 167,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Shotter.js",
"name": "./src/modules/Shotter.js"
},
{
"id": 168,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/index.js",
"name": "./node_modules/axios/index.js"
},
{
"id": 169,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/axios.js",
"name": "./node_modules/axios/lib/axios.js"
},
{
"id": 171,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/core/Axios.js",
"name": "./node_modules/axios/lib/core/Axios.js"
},
{
"id": 182,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/core/dispatchRequest.js",
"name": "./node_modules/axios/lib/core/dispatchRequest.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 182,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/axios/lib/core/dispatchRequest.js",
"module": "./node_modules/axios/lib/core/dispatchRequest.js",
"moduleName": "./node_modules/axios/lib/core/dispatchRequest.js",
"type": "cjs require",
"userRequest": "./../helpers/combineURLs",
"loc": "8:18-53"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 8,
"source": "'use strict';\n\n/**\n * Creates a new URL by combining the specified URLs\n *\n * @param {string} baseURL The base URL\n * @param {string} relativeURL The relative URL\n * @returns {string} The combined URL\n */\nmodule.exports = function combineURLs(baseURL, relativeURL) {\n return relativeURL\n ? baseURL.replace(/\\/+$/, '') + '/' + relativeURL.replace(/^\\/+/, '')\n : baseURL;\n};\n"
},
{
"id": 186,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/cancel/CancelToken.js",
"name": "./node_modules/axios/lib/cancel/CancelToken.js",
"index": 186,
"index2": 180,
"size": 1240,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/axios/lib/axios.js",
"issuerId": 169,
"issuerName": "./node_modules/axios/lib/axios.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 167,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Shotter.js",
"name": "./src/modules/Shotter.js"
},
{
"id": 168,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/index.js",
"name": "./node_modules/axios/index.js"
},
{
"id": 169,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/axios.js",
"name": "./node_modules/axios/lib/axios.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 169,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/axios/lib/axios.js",
"module": "./node_modules/axios/lib/axios.js",
"moduleName": "./node_modules/axios/lib/axios.js",
"type": "cjs require",
"userRequest": "./cancel/CancelToken",
"loc": "40:20-51"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 6,
"source": "'use strict';\n\nvar Cancel = require('./Cancel');\n\n/**\n * A `CancelToken` is an object that can be used to request cancellation of an operation.\n *\n * @class\n * @param {Function} executor The executor function.\n */\nfunction CancelToken(executor) {\n if (typeof executor !== 'function') {\n throw new TypeError('executor must be a function.');\n }\n\n var resolvePromise;\n this.promise = new Promise(function promiseExecutor(resolve) {\n resolvePromise = resolve;\n });\n\n var token = this;\n executor(function cancel(message) {\n if (token.reason) {\n // Cancellation has already been requested\n return;\n }\n\n token.reason = new Cancel(message);\n resolvePromise(token.reason);\n });\n}\n\n/**\n * Throws a `Cancel` if cancellation has been requested.\n */\nCancelToken.prototype.throwIfRequested = function throwIfRequested() {\n if (this.reason) {\n throw this.reason;\n }\n};\n\n/**\n * Returns an object that contains a new `CancelToken` and a function that, when called,\n * cancels the `CancelToken`.\n */\nCancelToken.source = function source() {\n var cancel;\n var token = new CancelToken(function executor(c) {\n cancel = c;\n });\n return {\n token: token,\n cancel: cancel\n };\n};\n\nmodule.exports = CancelToken;\n"
},
{
"id": 187,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/helpers/spread.js",
"name": "./node_modules/axios/lib/helpers/spread.js",
"index": 187,
"index2": 181,
"size": 564,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/axios/lib/axios.js",
"issuerId": 169,
"issuerName": "./node_modules/axios/lib/axios.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 167,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Shotter.js",
"name": "./src/modules/Shotter.js"
},
{
"id": 168,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/index.js",
"name": "./node_modules/axios/index.js"
},
{
"id": 169,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/axios.js",
"name": "./node_modules/axios/lib/axios.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 169,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/axios/lib/axios.js",
"module": "./node_modules/axios/lib/axios.js",
"moduleName": "./node_modules/axios/lib/axios.js",
"type": "cjs require",
"userRequest": "./helpers/spread",
"loc": "47:15-42"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 6,
"source": "'use strict';\n\n/**\n * Syntactic sugar for invoking a function and expanding an array for arguments.\n *\n * Common use case would be to use `Function.prototype.apply`.\n *\n * ```js\n * function f(x, y, z) {}\n * var args = [1, 2, 3];\n * f.apply(null, args);\n * ```\n *\n * With `spread` this example can be re-written.\n *\n * ```js\n * spread(function(x, y, z) {})([1, 2, 3]);\n * ```\n *\n * @param {Function} callback\n * @returns {Function}\n */\nmodule.exports = function spread(callback) {\n return function wrap(arr) {\n return callback.apply(null, arr);\n };\n};\n"
},
{
"id": 188,
"identifier": "/Users/user/Projects/orchid/node_modules/file-loader/dist/cjs.js??ref--8!/Users/user/Projects/orchid/src/sprites/icons.svg",
"name": "./src/sprites/icons.svg",
"index": 188,
"index2": 186,
"size": 82,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"issuerId": 89,
"issuerName": "./src/containers/App.jsx",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [
"e98375cc1b228aa22527deb5d5a2b406.svg"
],
"reasons": [
{
"moduleId": 89,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"module": "./src/containers/App.jsx",
"moduleName": "./src/containers/App.jsx",
"type": "cjs require",
"userRequest": "$sprites/icons.svg",
"loc": "32:0-29"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 2,
"source": "module.exports = __webpack_public_path__ + \"e98375cc1b228aa22527deb5d5a2b406.svg\";"
},
{
"id": 189,
"identifier": "/Users/user/Projects/orchid/node_modules/style-loader/index.js!/Users/user/Projects/orchid/node_modules/css-loader/index.js!/Users/user/Projects/orchid/node_modules/less-loader/dist/cjs.js!/Users/user/Projects/orchid/src/styles/map.less",
"name": "./src/styles/map.less",
"index": 189,
"index2": 189,
"size": 1210,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"issuerId": 79,
"issuerName": "./src/index.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 79,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"module": "./src/index.js",
"moduleName": "./src/index.js",
"type": "cjs require",
"userRequest": "$styles/map.less",
"loc": "18:0-27"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 1,
"source": "\nvar content = require(\"!!../../node_modules/css-loader/index.js!../../node_modules/less-loader/dist/cjs.js!./map.less\");\n\nif(typeof content === 'string') content = [[module.id, content, '']];\n\nvar transform;\nvar insertInto;\n\n\n\nvar options = {\"hmr\":true}\n\noptions.transform = transform\noptions.insertInto = undefined;\n\nvar update = require(\"!../../node_modules/style-loader/lib/addStyles.js\")(content, options);\n\nif(content.locals) module.exports = content.locals;\n\nif(module.hot) {\n\tmodule.hot.accept(\"!!../../node_modules/css-loader/index.js!../../node_modules/less-loader/dist/cjs.js!./map.less\", function() {\n\t\tvar newContent = require(\"!!../../node_modules/css-loader/index.js!../../node_modules/less-loader/dist/cjs.js!./map.less\");\n\n\t\tif(typeof newContent === 'string') newContent = [[module.id, newContent, '']];\n\n\t\tvar locals = (function(a, b) {\n\t\t\tvar key, idx = 0;\n\n\t\t\tfor(key in a) {\n\t\t\t\tif(!b || a[key] !== b[key]) return false;\n\t\t\t\tidx++;\n\t\t\t}\n\n\t\t\tfor(key in b) idx--;\n\n\t\t\treturn idx === 0;\n\t\t}(content.locals, newContent.locals));\n\n\t\tif(!locals) throw new Error('Aborting CSS HMR due to changed css-modules locals.');\n\n\t\tupdate(newContent);\n\t});\n\n\tmodule.hot.dispose(function() { update(); });\n}"
},
{
"id": 190,
"identifier": "/Users/user/Projects/orchid/node_modules/css-loader/index.js!/Users/user/Projects/orchid/node_modules/less-loader/dist/cjs.js!/Users/user/Projects/orchid/src/styles/map.less",
"name": "./node_modules/css-loader!./node_modules/less-loader/dist/cjs.js!./src/styles/map.less",
"index": 190,
"index2": 188,
"size": 2986,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/style-loader/index.js!/Users/user/Projects/orchid/node_modules/css-loader/index.js!/Users/user/Projects/orchid/node_modules/less-loader/dist/cjs.js!/Users/user/Projects/orchid/src/styles/map.less",
"issuerId": 189,
"issuerName": "./src/styles/map.less",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 189,
"identifier": "/Users/user/Projects/orchid/node_modules/style-loader/index.js!/Users/user/Projects/orchid/node_modules/css-loader/index.js!/Users/user/Projects/orchid/node_modules/less-loader/dist/cjs.js!/Users/user/Projects/orchid/src/styles/map.less",
"name": "./src/styles/map.less"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 189,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/style-loader/index.js!/Users/user/Projects/orchid/node_modules/css-loader/index.js!/Users/user/Projects/orchid/node_modules/less-loader/dist/cjs.js!/Users/user/Projects/orchid/src/styles/map.less",
"module": "./src/styles/map.less",
"moduleName": "./src/styles/map.less",
"type": "cjs require",
"userRequest": "!!../../node_modules/css-loader/index.js!../../node_modules/less-loader/dist/cjs.js!./map.less",
"loc": "2:14-119"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 2,
"source": "exports = module.exports = require(\"../../node_modules/css-loader/lib/css-base.js\")(false);\n// imports\n\n\n// module\nexports.push([module.id, \"#map {\\n width: 100%;\\n height: 100%;\\n position: absolute;\\n z-index: 1;\\n left: 0;\\n top: 0;\\n}\\n.leaflet-vertex-icon,\\n.leaflet-middle-icon {\\n border-radius: 10px;\\n opacity: 1;\\n border: none;\\n width: 16px !important;\\n height: 16px !important;\\n margin-left: -8px !important;\\n margin-top: -8px !important;\\n background: transparent;\\n}\\n.leaflet-vertex-icon::after,\\n.leaflet-middle-icon::after {\\n content: ' ';\\n position: absolute;\\n top: 4px;\\n left: 4px;\\n width: 8px;\\n height: 8px;\\n background: white;\\n border-radius: 8px;\\n transform: scale(1);\\n transition: transform 150ms;\\n}\\n.leaflet-vertex-icon:hover,\\n.leaflet-middle-icon:hover {\\n opacity: 1 !important;\\n}\\n.leaflet-vertex-icon:hover::after,\\n.leaflet-middle-icon:hover::after,\\n.leaflet-vertex-icon:active::after,\\n.leaflet-middle-icon:active::after {\\n transform: scale(2);\\n box-shadow: #999 0 0 5px 2px;\\n}\\n.leaflet-control-container .leaflet-routing-container-hide {\\n display: none;\\n}\\n.router-waypoint {\\n width: 40px;\\n height: 40px;\\n margin-left: -20px;\\n margin-top: -20px;\\n outline: none;\\n z-index: 10001;\\n}\\n.router-waypoint ::after {\\n content: ' ';\\n display: block;\\n width: 20px;\\n height: 20px;\\n border-radius: 10px;\\n box-shadow: 0 0 0 2px #4597d0;\\n margin-left: 10px;\\n margin-top: 10px;\\n}\\n.sticker-container {\\n outline: none;\\n position: relative;\\n}\\n.sticker-container ::before {\\n content: ' ';\\n box-shadow: 0 0 10px 1px #ff3344;\\n background: #ff334422;\\n width: 48px;\\n height: 48px;\\n left: -24px;\\n top: -24px;\\n position: absolute;\\n border-radius: 40px;\\n opacity: 0;\\n transition: opacity 250ms;\\n}\\n.sticker-container :hover .sticker-delete {\\n transform: scale(1);\\n pointer-events: all;\\n}\\n.sticker-container :hover ::before {\\n opacity: 1;\\n}\\n.sticker-label {\\n width: 48px;\\n height: 48px;\\n position: absolute;\\n background: white;\\n border-radius: 32px;\\n left: 0;\\n top: 0;\\n outline: none;\\n}\\n.sticker-label ::after {\\n content: ' ';\\n box-shadow: 0 0 0 1px #ff3344;\\n width: 80px;\\n height: 80px;\\n left: -16px;\\n top: -16px;\\n position: absolute;\\n border-radius: 40px;\\n pointer-events: none;\\n opacity: 0;\\n}\\n.sticker-arrow {\\n position: absolute;\\n background: red;\\n transform-origin: 0 0;\\n left: 0;\\n top: 0;\\n}\\n.sticker-arrow ::after {\\n content: ' ';\\n background: #ff3344;\\n width: 24px;\\n height: 24px;\\n transform-origin: 0 0;\\n transform: rotate(-45deg);\\n left: 0;\\n top: 0;\\n position: absolute;\\n}\\n.sticker-delete {\\n position: absolute;\\n width: 24px;\\n height: 24px;\\n background: red;\\n border-radius: 24px;\\n transition: transform 500ms;\\n transform: scale(0);\\n opacity: 1;\\n pointer-events: none;\\n}\\n.sticker-delete :hover {\\n transform: scale(1.2) !important;\\n}\\n\", \"\"]);\n\n// exports\n"
},
{
"id": 191,
"identifier": "/Users/user/Projects/orchid/node_modules/style-loader/index.js!/Users/user/Projects/orchid/node_modules/css-loader/index.js!/Users/user/Projects/orchid/node_modules/less-loader/dist/cjs.js!/Users/user/Projects/orchid/src/styles/controls.less",
"name": "./src/styles/controls.less",
"index": 191,
"index2": 191,
"size": 1225,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"issuerId": 79,
"issuerName": "./src/index.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 79,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"module": "./src/index.js",
"moduleName": "./src/index.js",
"type": "cjs require",
"userRequest": "$styles/controls.less",
"loc": "20:0-32"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 1,
"source": "\nvar content = require(\"!!../../node_modules/css-loader/index.js!../../node_modules/less-loader/dist/cjs.js!./controls.less\");\n\nif(typeof content === 'string') content = [[module.id, content, '']];\n\nvar transform;\nvar insertInto;\n\n\n\nvar options = {\"hmr\":true}\n\noptions.transform = transform\noptions.insertInto = undefined;\n\nvar update = require(\"!../../node_modules/style-loader/lib/addStyles.js\")(content, options);\n\nif(content.locals) module.exports = content.locals;\n\nif(module.hot) {\n\tmodule.hot.accept(\"!!../../node_modules/css-loader/index.js!../../node_modules/less-loader/dist/cjs.js!./controls.less\", function() {\n\t\tvar newContent = require(\"!!../../node_modules/css-loader/index.js!../../node_modules/less-loader/dist/cjs.js!./controls.less\");\n\n\t\tif(typeof newContent === 'string') newContent = [[module.id, newContent, '']];\n\n\t\tvar locals = (function(a, b) {\n\t\t\tvar key, idx = 0;\n\n\t\t\tfor(key in a) {\n\t\t\t\tif(!b || a[key] !== b[key]) return false;\n\t\t\t\tidx++;\n\t\t\t}\n\n\t\t\tfor(key in b) idx--;\n\n\t\t\treturn idx === 0;\n\t\t}(content.locals, newContent.locals));\n\n\t\tif(!locals) throw new Error('Aborting CSS HMR due to changed css-modules locals.');\n\n\t\tupdate(newContent);\n\t});\n\n\tmodule.hot.dispose(function() { update(); });\n}"
},
{
"id": 192,
"identifier": "/Users/user/Projects/orchid/node_modules/css-loader/index.js!/Users/user/Projects/orchid/node_modules/less-loader/dist/cjs.js!/Users/user/Projects/orchid/src/styles/controls.less",
"name": "./node_modules/css-loader!./node_modules/less-loader/dist/cjs.js!./src/styles/controls.less",
"index": 192,
"index2": 190,
"size": 354,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/style-loader/index.js!/Users/user/Projects/orchid/node_modules/css-loader/index.js!/Users/user/Projects/orchid/node_modules/less-loader/dist/cjs.js!/Users/user/Projects/orchid/src/styles/controls.less",
"issuerId": 191,
"issuerName": "./src/styles/controls.less",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 191,
"identifier": "/Users/user/Projects/orchid/node_modules/style-loader/index.js!/Users/user/Projects/orchid/node_modules/css-loader/index.js!/Users/user/Projects/orchid/node_modules/less-loader/dist/cjs.js!/Users/user/Projects/orchid/src/styles/controls.less",
"name": "./src/styles/controls.less"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 191,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/style-loader/index.js!/Users/user/Projects/orchid/node_modules/css-loader/index.js!/Users/user/Projects/orchid/node_modules/less-loader/dist/cjs.js!/Users/user/Projects/orchid/src/styles/controls.less",
"module": "./src/styles/controls.less",
"moduleName": "./src/styles/controls.less",
"type": "cjs require",
"userRequest": "!!../../node_modules/css-loader/index.js!../../node_modules/less-loader/dist/cjs.js!./controls.less",
"loc": "2:14-124"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 2,
"source": "exports = module.exports = require(\"../../node_modules/css-loader/lib/css-base.js\")(false);\n// imports\n\n\n// module\nexports.push([module.id, \"#control-screen {\\n position: fixed;\\n right: 10px;\\n bottom: 10px;\\n height: 48px;\\n min-width: 120px;\\n background: #333333;\\n border-radius: 2px;\\n z-index: 2;\\n color: white;\\n}\\n\", \"\"]);\n\n// exports\n"
}
],
"filteredModules": 0,
"origins": [
{
"module": "",
"moduleIdentifier": "",
"moduleName": "",
"loc": "app",
"request": "./src/index.js",
"reasons": []
}
]
}
],
"modules": [
{
"id": 0,
"identifier": "/Users/user/Projects/orchid/node_modules/react-hot-loader/index.js",
"name": "./node_modules/react-hot-loader/index.js",
"index": 103,
"index2": 99,
"size": 228,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"issuerId": 79,
"issuerName": "./src/index.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 65,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/constants/modes.js",
"module": "./src/constants/modes.js",
"moduleName": "./src/constants/modes.js",
"type": "cjs require",
"userRequest": "react-hot-loader",
"loc": "8:20-47"
},
{
"moduleId": 65,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/constants/modes.js",
"module": "./src/constants/modes.js",
"moduleName": "./src/constants/modes.js",
"type": "cjs require",
"userRequest": "react-hot-loader",
"loc": "23:23-50"
},
{
"moduleId": 65,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/constants/modes.js",
"module": "./src/constants/modes.js",
"moduleName": "./src/constants/modes.js",
"type": "cjs require",
"userRequest": "react-hot-loader",
"loc": "25:20-47"
},
{
"moduleId": 66,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/utils/DomMarker.js",
"module": "./src/utils/DomMarker.js",
"moduleName": "./src/utils/DomMarker.js",
"type": "cjs require",
"userRequest": "react-hot-loader",
"loc": "11:20-47"
},
{
"moduleId": 66,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/utils/DomMarker.js",
"module": "./src/utils/DomMarker.js",
"moduleName": "./src/utils/DomMarker.js",
"type": "cjs require",
"userRequest": "react-hot-loader",
"loc": "41:23-50"
},
{
"moduleId": 66,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/utils/DomMarker.js",
"module": "./src/utils/DomMarker.js",
"moduleName": "./src/utils/DomMarker.js",
"type": "cjs require",
"userRequest": "react-hot-loader",
"loc": "43:20-47"
},
{
"moduleId": 79,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"module": "./src/index.js",
"moduleName": "./src/index.js",
"type": "cjs require",
"userRequest": "react-hot-loader",
"loc": "25:20-47"
},
{
"moduleId": 79,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"module": "./src/index.js",
"moduleName": "./src/index.js",
"type": "cjs require",
"userRequest": "react-hot-loader",
"loc": "38:23-50"
},
{
"moduleId": 79,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"module": "./src/index.js",
"moduleName": "./src/index.js",
"type": "cjs require",
"userRequest": "react-hot-loader",
"loc": "40:20-47"
},
{
"moduleId": 89,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"module": "./src/containers/App.jsx",
"moduleName": "./src/containers/App.jsx",
"type": "cjs require",
"userRequest": "react-hot-loader",
"loc": "37:20-47"
},
{
"moduleId": 89,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"module": "./src/containers/App.jsx",
"moduleName": "./src/containers/App.jsx",
"type": "cjs require",
"userRequest": "react-hot-loader",
"loc": "138:23-50"
},
{
"moduleId": 89,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"module": "./src/containers/App.jsx",
"moduleName": "./src/containers/App.jsx",
"type": "cjs require",
"userRequest": "react-hot-loader",
"loc": "140:20-47"
},
{
"moduleId": 124,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"module": "./src/modules/Editor.js",
"moduleName": "./src/modules/Editor.js",
"type": "cjs require",
"userRequest": "react-hot-loader",
"loc": "35:20-47"
},
{
"moduleId": 124,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"module": "./src/modules/Editor.js",
"moduleName": "./src/modules/Editor.js",
"type": "cjs require",
"userRequest": "react-hot-loader",
"loc": "160:23-50"
},
{
"moduleId": 124,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"module": "./src/modules/Editor.js",
"moduleName": "./src/modules/Editor.js",
"type": "cjs require",
"userRequest": "react-hot-loader",
"loc": "162:20-47"
},
{
"moduleId": 126,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Map.js",
"module": "./src/modules/Map.js",
"moduleName": "./src/modules/Map.js",
"type": "cjs require",
"userRequest": "react-hot-loader",
"loc": "27:20-47"
},
{
"moduleId": 126,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Map.js",
"module": "./src/modules/Map.js",
"moduleName": "./src/modules/Map.js",
"type": "cjs require",
"userRequest": "react-hot-loader",
"loc": "62:23-50"
},
{
"moduleId": 126,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Map.js",
"module": "./src/modules/Map.js",
"moduleName": "./src/modules/Map.js",
"type": "cjs require",
"userRequest": "react-hot-loader",
"loc": "64:20-47"
},
{
"moduleId": 127,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/constants/providers.js",
"module": "./src/constants/providers.js",
"moduleName": "./src/constants/providers.js",
"type": "cjs require",
"userRequest": "react-hot-loader",
"loc": "8:20-47"
},
{
"moduleId": 127,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/constants/providers.js",
"module": "./src/constants/providers.js",
"moduleName": "./src/constants/providers.js",
"type": "cjs require",
"userRequest": "react-hot-loader",
"loc": "28:23-50"
},
{
"moduleId": 127,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/constants/providers.js",
"module": "./src/constants/providers.js",
"moduleName": "./src/constants/providers.js",
"type": "cjs require",
"userRequest": "react-hot-loader",
"loc": "30:20-47"
},
{
"moduleId": 136,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Poly.js",
"module": "./src/modules/Poly.js",
"moduleName": "./src/modules/Poly.js",
"type": "cjs require",
"userRequest": "react-hot-loader",
"loc": "25:20-47"
},
{
"moduleId": 136,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Poly.js",
"module": "./src/modules/Poly.js",
"moduleName": "./src/modules/Poly.js",
"type": "cjs require",
"userRequest": "react-hot-loader",
"loc": "136:23-50"
},
{
"moduleId": 136,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Poly.js",
"module": "./src/modules/Poly.js",
"moduleName": "./src/modules/Poly.js",
"type": "cjs require",
"userRequest": "react-hot-loader",
"loc": "138:20-47"
},
{
"moduleId": 144,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Stickers.js",
"module": "./src/modules/Stickers.js",
"moduleName": "./src/modules/Stickers.js",
"type": "cjs require",
"userRequest": "react-hot-loader",
"loc": "23:20-47"
},
{
"moduleId": 144,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Stickers.js",
"module": "./src/modules/Stickers.js",
"moduleName": "./src/modules/Stickers.js",
"type": "cjs require",
"userRequest": "react-hot-loader",
"loc": "91:23-50"
},
{
"moduleId": 144,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Stickers.js",
"module": "./src/modules/Stickers.js",
"moduleName": "./src/modules/Stickers.js",
"type": "cjs require",
"userRequest": "react-hot-loader",
"loc": "93:20-47"
},
{
"moduleId": 145,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Sticker.js",
"module": "./src/modules/Sticker.js",
"moduleName": "./src/modules/Sticker.js",
"type": "cjs require",
"userRequest": "react-hot-loader",
"loc": "25:20-47"
},
{
"moduleId": 145,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Sticker.js",
"module": "./src/modules/Sticker.js",
"moduleName": "./src/modules/Sticker.js",
"type": "cjs require",
"userRequest": "react-hot-loader",
"loc": "164:23-50"
},
{
"moduleId": 145,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Sticker.js",
"module": "./src/modules/Sticker.js",
"moduleName": "./src/modules/Sticker.js",
"type": "cjs require",
"userRequest": "react-hot-loader",
"loc": "166:20-47"
},
{
"moduleId": 146,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"module": "./src/modules/Router.js",
"moduleName": "./src/modules/Router.js",
"type": "cjs require",
"userRequest": "react-hot-loader",
"loc": "39:20-47"
},
{
"moduleId": 146,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"module": "./src/modules/Router.js",
"moduleName": "./src/modules/Router.js",
"type": "cjs require",
"userRequest": "react-hot-loader",
"loc": "202:23-50"
},
{
"moduleId": 146,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"module": "./src/modules/Router.js",
"moduleName": "./src/modules/Router.js",
"type": "cjs require",
"userRequest": "react-hot-loader",
"loc": "204:20-47"
},
{
"moduleId": 166,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/config.js",
"module": "./src/config.js",
"moduleName": "./src/config.js",
"type": "cjs require",
"userRequest": "react-hot-loader",
"loc": "8:20-47"
},
{
"moduleId": 166,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/config.js",
"module": "./src/config.js",
"moduleName": "./src/config.js",
"type": "cjs require",
"userRequest": "react-hot-loader",
"loc": "19:23-50"
},
{
"moduleId": 166,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/config.js",
"module": "./src/config.js",
"moduleName": "./src/config.js",
"type": "cjs require",
"userRequest": "react-hot-loader",
"loc": "21:20-47"
},
{
"moduleId": 167,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Shotter.js",
"module": "./src/modules/Shotter.js",
"moduleName": "./src/modules/Shotter.js",
"type": "cjs require",
"userRequest": "react-hot-loader",
"loc": "23:20-47"
},
{
"moduleId": 167,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Shotter.js",
"module": "./src/modules/Shotter.js",
"moduleName": "./src/modules/Shotter.js",
"type": "cjs require",
"userRequest": "react-hot-loader",
"loc": "114:23-50"
},
{
"moduleId": 167,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Shotter.js",
"module": "./src/modules/Shotter.js",
"moduleName": "./src/modules/Shotter.js",
"type": "cjs require",
"userRequest": "react-hot-loader",
"loc": "116:20-47"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 1,
"source": "'use strict'\n\nif (!module.hot || process.env.NODE_ENV === 'production') {\n module.exports = require('./dist/react-hot-loader.production.min.js');\n} else {\n module.exports = require('./dist/react-hot-loader.development.js');\n}\n"
},
{
"id": 1,
"identifier": "/Users/user/Projects/orchid/node_modules/leaflet/dist/leaflet-src.js",
"name": "./node_modules/leaflet/dist/leaflet-src.js",
"index": 101,
"index2": 97,
"size": 399628,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Map.js",
"issuerId": 126,
"issuerName": "./src/modules/Map.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 126,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Map.js",
"name": "./src/modules/Map.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 44,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/waypoint.js",
"module": "./node_modules/leaflet-routing-machine/src/waypoint.js",
"moduleName": "./node_modules/leaflet-routing-machine/src/waypoint.js",
"type": "cjs require",
"userRequest": "leaflet",
"loc": "4:9-27"
},
{
"moduleId": 45,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/osrm-v1.js",
"module": "./node_modules/leaflet-routing-machine/src/osrm-v1.js",
"moduleName": "./node_modules/leaflet-routing-machine/src/osrm-v1.js",
"type": "cjs require",
"userRequest": "leaflet",
"loc": "4:9-27"
},
{
"moduleId": 62,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/leaflet-editable/src/Leaflet.Editable.js",
"module": "./node_modules/leaflet-editable/src/Leaflet.Editable.js",
"moduleName": "./node_modules/leaflet-editable/src/Leaflet.Editable.js",
"type": "amd require",
"userRequest": "leaflet",
"loc": "7:8-36"
},
{
"moduleId": 66,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/utils/DomMarker.js",
"module": "./src/utils/DomMarker.js",
"moduleName": "./src/utils/DomMarker.js",
"type": "cjs require",
"userRequest": "leaflet",
"loc": "8:15-33"
},
{
"moduleId": 67,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/itinerary.js",
"module": "./node_modules/leaflet-routing-machine/src/itinerary.js",
"moduleName": "./node_modules/leaflet-routing-machine/src/itinerary.js",
"type": "cjs require",
"userRequest": "leaflet",
"loc": "4:9-27"
},
{
"moduleId": 68,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/formatter.js",
"module": "./node_modules/leaflet-routing-machine/src/formatter.js",
"moduleName": "./node_modules/leaflet-routing-machine/src/formatter.js",
"type": "cjs require",
"userRequest": "leaflet",
"loc": "4:9-27"
},
{
"moduleId": 69,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/itinerary-builder.js",
"module": "./node_modules/leaflet-routing-machine/src/itinerary-builder.js",
"moduleName": "./node_modules/leaflet-routing-machine/src/itinerary-builder.js",
"type": "cjs require",
"userRequest": "leaflet",
"loc": "4:9-27"
},
{
"moduleId": 70,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/line.js",
"module": "./node_modules/leaflet-routing-machine/src/line.js",
"moduleName": "./node_modules/leaflet-routing-machine/src/line.js",
"type": "cjs require",
"userRequest": "leaflet",
"loc": "4:9-27"
},
{
"moduleId": 71,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/plan.js",
"module": "./node_modules/leaflet-routing-machine/src/plan.js",
"moduleName": "./node_modules/leaflet-routing-machine/src/plan.js",
"type": "cjs require",
"userRequest": "leaflet",
"loc": "4:9-27"
},
{
"moduleId": 72,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/geocoder-element.js",
"module": "./node_modules/leaflet-routing-machine/src/geocoder-element.js",
"moduleName": "./node_modules/leaflet-routing-machine/src/geocoder-element.js",
"type": "cjs require",
"userRequest": "leaflet",
"loc": "4:9-27"
},
{
"moduleId": 73,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/autocomplete.js",
"module": "./node_modules/leaflet-routing-machine/src/autocomplete.js",
"moduleName": "./node_modules/leaflet-routing-machine/src/autocomplete.js",
"type": "cjs require",
"userRequest": "leaflet",
"loc": "4:9-27"
},
{
"moduleId": 126,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Map.js",
"module": "./src/modules/Map.js",
"moduleName": "./src/modules/Map.js",
"type": "cjs require",
"userRequest": "leaflet",
"loc": "16:15-33"
},
{
"moduleId": 136,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Poly.js",
"module": "./src/modules/Poly.js",
"moduleName": "./src/modules/Poly.js",
"type": "cjs require",
"userRequest": "leaflet",
"loc": "20:15-33"
},
{
"moduleId": 144,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Stickers.js",
"module": "./src/modules/Stickers.js",
"moduleName": "./src/modules/Stickers.js",
"type": "cjs require",
"userRequest": "leaflet",
"loc": "16:15-33"
},
{
"moduleId": 145,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Sticker.js",
"module": "./src/modules/Sticker.js",
"moduleName": "./src/modules/Sticker.js",
"type": "cjs require",
"userRequest": "leaflet",
"loc": "16:15-33"
},
{
"moduleId": 146,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"module": "./src/modules/Router.js",
"moduleName": "./src/modules/Router.js",
"type": "cjs require",
"userRequest": "leaflet",
"loc": "24:15-33"
},
{
"moduleId": 160,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/index.js",
"module": "./node_modules/leaflet-routing-machine/src/index.js",
"moduleName": "./node_modules/leaflet-routing-machine/src/index.js",
"type": "cjs require",
"userRequest": "leaflet",
"loc": "1:8-26"
},
{
"moduleId": 161,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/control.js",
"module": "./node_modules/leaflet-routing-machine/src/control.js",
"moduleName": "./node_modules/leaflet-routing-machine/src/control.js",
"type": "cjs require",
"userRequest": "leaflet",
"loc": "4:9-27"
},
{
"moduleId": 164,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/mapbox.js",
"module": "./node_modules/leaflet-routing-machine/src/mapbox.js",
"moduleName": "./node_modules/leaflet-routing-machine/src/mapbox.js",
"type": "cjs require",
"userRequest": "leaflet",
"loc": "4:9-27"
},
{
"moduleId": 165,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/error-control.js",
"module": "./node_modules/leaflet-routing-machine/src/error-control.js",
"moduleName": "./node_modules/leaflet-routing-machine/src/error-control.js",
"type": "cjs require",
"userRequest": "leaflet",
"loc": "4:9-27"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 4,
"source": "/* @preserve\n * Leaflet 1.3.3, a JS library for interactive maps. http://leafletjs.com\n * (c) 2010-2018 Vladimir Agafonkin, (c) 2010-2011 CloudMade\n */\n\n(function (global, factory) {\n\ttypeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :\n\ttypeof define === 'function' && define.amd ? define(['exports'], factory) :\n\t(factory((global.L = {})));\n}(this, (function (exports) { 'use strict';\n\nvar version = \"1.3.3\";\n\n/*\r\n * @namespace Util\r\n *\r\n * Various utility functions, used by Leaflet internally.\r\n */\r\n\r\nvar freeze = Object.freeze;\r\nObject.freeze = function (obj) { return obj; };\r\n\r\n// @function extend(dest: Object, src?: Object): Object\r\n// Merges the properties of the `src` object (or multiple objects) into `dest` object and returns the latter. Has an `L.extend` shortcut.\r\nfunction extend(dest) {\r\n\tvar i, j, len, src;\r\n\r\n\tfor (j = 1, len = arguments.length; j < len; j++) {\r\n\t\tsrc = arguments[j];\r\n\t\tfor (i in src) {\r\n\t\t\tdest[i] = src[i];\r\n\t\t}\r\n\t}\r\n\treturn dest;\r\n}\r\n\r\n// @function create(proto: Object, properties?: Object): Object\r\n// Compatibility polyfill for [Object.create](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object/create)\r\nvar create = Object.create || (function () {\r\n\tfunction F() {}\r\n\treturn function (proto) {\r\n\t\tF.prototype = proto;\r\n\t\treturn new F();\r\n\t};\r\n})();\r\n\r\n// @function bind(fn: Function, …): Function\r\n// Returns a new function bound to the arguments passed, like [Function.prototype.bind](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Function/bind).\r\n// Has a `L.bind()` shortcut.\r\nfunction bind(fn, obj) {\r\n\tvar slice = Array.prototype.slice;\r\n\r\n\tif (fn.bind) {\r\n\t\treturn fn.bind.apply(fn, slice.call(arguments, 1));\r\n\t}\r\n\r\n\tvar args = slice.call(arguments, 2);\r\n\r\n\treturn function () {\r\n\t\treturn fn.apply(obj, args.length ? args.concat(slice.call(arguments)) : arguments);\r\n\t};\r\n}\r\n\r\n// @property lastId: Number\r\n// Last unique ID used by [`stamp()`](#util-stamp)\r\nvar lastId = 0;\r\n\r\n// @function stamp(obj: Object): Number\r\n// Returns the unique ID of an object, assigning it one if it doesn't have it.\r\nfunction stamp(obj) {\r\n\t/*eslint-disable */\r\n\tobj._leaflet_id = obj._leaflet_id || ++lastId;\r\n\treturn obj._leaflet_id;\r\n\t/* eslint-enable */\r\n}\r\n\r\n// @function throttle(fn: Function, time: Number, context: Object): Function\r\n// Returns a function which executes function `fn` with the given scope `context`\r\n// (so that the `this` keyword refers to `context` inside `fn`'s code). The function\r\n// `fn` will be called no more than one time per given amount of `time`. The arguments\r\n// received by the bound function will be any arguments passed when binding the\r\n// function, followed by any arguments passed when invoking the bound function.\r\n// Has an `L.throttle` shortcut.\r\nfunction throttle(fn, time, context) {\r\n\tvar lock, args, wrapperFn, later;\r\n\r\n\tlater = function () {\r\n\t\t// reset lock and call if queued\r\n\t\tlock = false;\r\n\t\tif (args) {\r\n\t\t\twrapperFn.apply(context, args);\r\n\t\t\targs = false;\r\n\t\t}\r\n\t};\r\n\r\n\twrapperFn = function () {\r\n\t\tif (lock) {\r\n\t\t\t// called too soon, queue to call later\r\n\t\t\targs = arguments;\r\n\r\n\t\t} else {\r\n\t\t\t// call and lock until later\r\n\t\t\tfn.apply(context, arguments);\r\n\t\t\tsetTimeout(later, time);\r\n\t\t\tlock = true;\r\n\t\t}\r\n\t};\r\n\r\n\treturn wrapperFn;\r\n}\r\n\r\n// @function wrapNum(num: Number, range: Number[], includeMax?: Boolean): Number\r\n// Returns the number `num` modulo `range` in such a way so it lies within\r\n// `range[0]` and `range[1]`. The returned value will be always smaller than\r\n// `range[1]` unless `includeMax` is set to `true`.\r\nfunction wrapNum(x, range, includeMax) {\r\n\tvar max = range[1],\r\n\t min = range[0],\r\n\t d = max - min;\r\n\treturn x === max && includeMax ? x : ((x - min) % d + d) % d + min;\r\n}\r\n\r\n// @function falseFn(): Function\r\n// Returns a function which always returns `false`.\r\nfunction falseFn() { return false; }\r\n\r\n// @function formatNum(num: Number, digits?: Number): Number\r\n// Returns the number `num` rounded to `digits` decimals, or to 6 decimals by default.\r\nfunction formatNum(num, digits) {\r\n\tvar pow = Math.pow(10, (digits === undefined ? 6 : digits));\r\n\treturn Math.round(num * pow) / pow;\r\n}\r\n\r\n// @function trim(str: String): String\r\n// Compatibility polyfill for [String.prototype.trim](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String/Trim)\r\nfunction trim(str) {\r\n\treturn str.trim ? str.trim() : str.replace(/^\\s+|\\s+$/g, '');\r\n}\r\n\r\n// @function splitWords(str: String): String[]\r\n// Trims and splits the string on whitespace and returns the array of parts.\r\nfunction splitWords(str) {\r\n\treturn trim(str).split(/\\s+/);\r\n}\r\n\r\n// @function setOptions(obj: Object, options: Object): Object\r\n// Merges the given properties to the `options` of the `obj` object, returning the resulting options. See `Class options`. Has an `L.setOptions` shortcut.\r\nfunction setOptions(obj, options) {\r\n\tif (!obj.hasOwnProperty('options')) {\r\n\t\tobj.options = obj.options ? create(obj.options) : {};\r\n\t}\r\n\tfor (var i in options) {\r\n\t\tobj.options[i] = options[i];\r\n\t}\r\n\treturn obj.options;\r\n}\r\n\r\n// @function getParamString(obj: Object, existingUrl?: String, uppercase?: Boolean): String\r\n// Converts an object into a parameter URL string, e.g. `{a: \"foo\", b: \"bar\"}`\r\n// translates to `'?a=foo&b=bar'`. If `existingUrl` is set, the parameters will\r\n// be appended at the end. If `uppercase` is `true`, the parameter names will\r\n// be uppercased (e.g. `'?A=foo&B=bar'`)\r\nfunction getParamString(obj, existingUrl, uppercase) {\r\n\tvar params = [];\r\n\tfor (var i in obj) {\r\n\t\tparams.push(encodeURIComponent(uppercase ? i.toUpperCase() : i) + '=' + encodeURIComponent(obj[i]));\r\n\t}\r\n\treturn ((!existingUrl || existingUrl.indexOf('?') === -1) ? '?' : '&') + params.join('&');\r\n}\r\n\r\nvar templateRe = /\\{ *([\\w_-]+) *\\}/g;\r\n\r\n// @function template(str: String, data: Object): String\r\n// Simple templating facility, accepts a template string of the form `'Hello {a}, {b}'`\r\n// and a data object like `{a: 'foo', b: 'bar'}`, returns evaluated string\r\n// `('Hello foo, bar')`. You can also specify functions instead of strings for\r\n// data values — they will be evaluated passing `data` as an argument.\r\nfunction template(str, data) {\r\n\treturn str.replace(templateRe, function (str, key) {\r\n\t\tvar value = data[key];\r\n\r\n\t\tif (value === undefined) {\r\n\t\t\tthrow new Error('No value provided for variable ' + str);\r\n\r\n\t\t} else if (typeof value === 'function') {\r\n\t\t\tvalue = value(data);\r\n\t\t}\r\n\t\treturn value;\r\n\t});\r\n}\r\n\r\n// @function isArray(obj): Boolean\r\n// Compatibility polyfill for [Array.isArray](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array/isArray)\r\nvar isArray = Array.isArray || function (obj) {\r\n\treturn (Object.prototype.toString.call(obj) === '[object Array]');\r\n};\r\n\r\n// @function indexOf(array: Array, el: Object): Number\r\n// Compatibility polyfill for [Array.prototype.indexOf](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array/indexOf)\r\nfunction indexOf(array, el) {\r\n\tfor (var i = 0; i < array.length; i++) {\r\n\t\tif (array[i] === el) { return i; }\r\n\t}\r\n\treturn -1;\r\n}\r\n\r\n// @property emptyImageUrl: String\r\n// Data URI string containing a base64-encoded empty GIF image.\r\n// Used as a hack to free memory from unused images on WebKit-powered\r\n// mobile devices (by setting image `src` to this string).\r\nvar emptyImageUrl = 'data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=';\r\n\r\n// inspired by http://paulirish.com/2011/requestanimationframe-for-smart-animating/\r\n\r\nfunction getPrefixed(name) {\r\n\treturn window['webkit' + name] || window['moz' + name] || window['ms' + name];\r\n}\r\n\r\nvar lastTime = 0;\r\n\r\n// fallback for IE 7-8\r\nfunction timeoutDefer(fn) {\r\n\tvar time = +new Date(),\r\n\t timeToCall = Math.max(0, 16 - (time - lastTime));\r\n\r\n\tlastTime = time + timeToCall;\r\n\treturn window.setTimeout(fn, timeToCall);\r\n}\r\n\r\nvar requestFn = window.requestAnimationFrame || getPrefixed('RequestAnimationFrame') || timeoutDefer;\r\nvar cancelFn = window.cancelAnimationFrame || getPrefixed('CancelAnimationFrame') ||\r\n\t\tgetPrefixed('CancelRequestAnimationFrame') || function (id) { window.clearTimeout(id); };\r\n\r\n// @function requestAnimFrame(fn: Function, context?: Object, immediate?: Boolean): Number\r\n// Schedules `fn` to be executed when the browser repaints. `fn` is bound to\r\n// `context` if given. When `immediate` is set, `fn` is called immediately if\r\n// the browser doesn't have native support for\r\n// [`window.requestAnimationFrame`](https://developer.mozilla.org/docs/Web/API/window/requestAnimationFrame),\r\n// otherwise it's delayed. Returns a request ID that can be used to cancel the request.\r\nfunction requestAnimFrame(fn, context, immediate) {\r\n\tif (immediate && requestFn === timeoutDefer) {\r\n\t\tfn.call(context);\r\n\t} else {\r\n\t\treturn requestFn.call(window, bind(fn, context));\r\n\t}\r\n}\r\n\r\n// @function cancelAnimFrame(id: Number): undefined\r\n// Cancels a previous `requestAnimFrame`. See also [window.cancelAnimationFrame](https://developer.mozilla.org/docs/Web/API/window/cancelAnimationFrame).\r\nfunction cancelAnimFrame(id) {\r\n\tif (id) {\r\n\t\tcancelFn.call(window, id);\r\n\t}\r\n}\r\n\n\nvar Util = (Object.freeze || Object)({\n\tfreeze: freeze,\n\textend: extend,\n\tcreate: create,\n\tbind: bind,\n\tlastId: lastId,\n\tstamp: stamp,\n\tthrottle: throttle,\n\twrapNum: wrapNum,\n\tfalseFn: falseFn,\n\tformatNum: formatNum,\n\ttrim: trim,\n\tsplitWords: splitWords,\n\tsetOptions: setOptions,\n\tgetParamString: getParamString,\n\ttemplate: template,\n\tisArray: isArray,\n\tindexOf: indexOf,\n\temptyImageUrl: emptyImageUrl,\n\trequestFn: requestFn,\n\tcancelFn: cancelFn,\n\trequestAnimFrame: requestAnimFrame,\n\tcancelAnimFrame: cancelAnimFrame\n});\n\n// @class Class\r\n// @aka L.Class\r\n\r\n// @section\r\n// @uninheritable\r\n\r\n// Thanks to John Resig and Dean Edwards for inspiration!\r\n\r\nfunction Class() {}\r\n\r\nClass.extend = function (props) {\r\n\r\n\t// @function extend(props: Object): Function\r\n\t// [Extends the current class](#class-inheritance) given the properties to be included.\r\n\t// Returns a Javascript function that is a class constructor (to be called with `new`).\r\n\tvar NewClass = function () {\r\n\r\n\t\t// call the constructor\r\n\t\tif (this.initialize) {\r\n\t\t\tthis.initialize.apply(this, arguments);\r\n\t\t}\r\n\r\n\t\t// call all constructor hooks\r\n\t\tthis.callInitHooks();\r\n\t};\r\n\r\n\tvar parentProto = NewClass.__super__ = this.prototype;\r\n\r\n\tvar proto = create(parentProto);\r\n\tproto.constructor = NewClass;\r\n\r\n\tNewClass.prototype = proto;\r\n\r\n\t// inherit parent's statics\r\n\tfor (var i in this) {\r\n\t\tif (this.hasOwnProperty(i) && i !== 'prototype' && i !== '__super__') {\r\n\t\t\tNewClass[i] = this[i];\r\n\t\t}\r\n\t}\r\n\r\n\t// mix static properties into the class\r\n\tif (props.statics) {\r\n\t\textend(NewClass, props.statics);\r\n\t\tdelete props.statics;\r\n\t}\r\n\r\n\t// mix includes into the prototype\r\n\tif (props.includes) {\r\n\t\tcheckDeprecatedMixinEvents(props.includes);\r\n\t\textend.apply(null, [proto].concat(props.includes));\r\n\t\tdelete props.includes;\r\n\t}\r\n\r\n\t// merge options\r\n\tif (proto.options) {\r\n\t\tprops.options = extend(create(proto.options), props.options);\r\n\t}\r\n\r\n\t// mix given properties into the prototype\r\n\textend(proto, props);\r\n\r\n\tproto._initHooks = [];\r\n\r\n\t// add method for calling all hooks\r\n\tproto.callInitHooks = function () {\r\n\r\n\t\tif (this._initHooksCalled) { return; }\r\n\r\n\t\tif (parentProto.callInitHooks) {\r\n\t\t\tparentProto.callInitHooks.call(this);\r\n\t\t}\r\n\r\n\t\tthis._initHooksCalled = true;\r\n\r\n\t\tfor (var i = 0, len = proto._initHooks.length; i < len; i++) {\r\n\t\t\tproto._initHooks[i].call(this);\r\n\t\t}\r\n\t};\r\n\r\n\treturn NewClass;\r\n};\r\n\r\n\r\n// @function include(properties: Object): this\r\n// [Includes a mixin](#class-includes) into the current class.\r\nClass.include = function (props) {\r\n\textend(this.prototype, props);\r\n\treturn this;\r\n};\r\n\r\n// @function mergeOptions(options: Object): this\r\n// [Merges `options`](#class-options) into the defaults of the class.\r\nClass.mergeOptions = function (options) {\r\n\textend(this.prototype.options, options);\r\n\treturn this;\r\n};\r\n\r\n// @function addInitHook(fn: Function): this\r\n// Adds a [constructor hook](#class-constructor-hooks) to the class.\r\nClass.addInitHook = function (fn) { // (Function) || (String, args...)\r\n\tvar args = Array.prototype.slice.call(arguments, 1);\r\n\r\n\tvar init = typeof fn === 'function' ? fn : function () {\r\n\t\tthis[fn].apply(this, args);\r\n\t};\r\n\r\n\tthis.prototype._initHooks = this.prototype._initHooks || [];\r\n\tthis.prototype._initHooks.push(init);\r\n\treturn this;\r\n};\r\n\r\nfunction checkDeprecatedMixinEvents(includes) {\r\n\tif (typeof L === 'undefined' || !L || !L.Mixin) { return; }\r\n\r\n\tincludes = isArray(includes) ? includes : [includes];\r\n\r\n\tfor (var i = 0; i < includes.length; i++) {\r\n\t\tif (includes[i] === L.Mixin.Events) {\r\n\t\t\tconsole.warn('Deprecated include of L.Mixin.Events: ' +\r\n\t\t\t\t'this property will be removed in future releases, ' +\r\n\t\t\t\t'please inherit from L.Evented instead.', new Error().stack);\r\n\t\t}\r\n\t}\r\n}\n\n/*\r\n * @class Evented\r\n * @aka L.Evented\r\n * @inherits Class\r\n *\r\n * A set of methods shared between event-powered classes (like `Map` and `Marker`). Generally, events allow you to execute some function when something happens with an object (e.g. the user clicks on the map, causing the map to fire `'click'` event).\r\n *\r\n * @example\r\n *\r\n * ```js\r\n * map.on('click', function(e) {\r\n * \talert(e.latlng);\r\n * } );\r\n * ```\r\n *\r\n * Leaflet deals with event listeners by reference, so if you want to add a listener and then remove it, define it as a function:\r\n *\r\n * ```js\r\n * function onClick(e) { ... }\r\n *\r\n * map.on('click', onClick);\r\n * map.off('click', onClick);\r\n * ```\r\n */\r\n\r\nvar Events = {\r\n\t/* @method on(type: String, fn: Function, context?: Object): this\r\n\t * Adds a listener function (`fn`) to a particular event type of the object. You can optionally specify the context of the listener (object the this keyword will point to). You can also pass several space-separated types (e.g. `'click dblclick'`).\r\n\t *\r\n\t * @alternative\r\n\t * @method on(eventMap: Object): this\r\n\t * Adds a set of type/listener pairs, e.g. `{click: onClick, mousemove: onMouseMove}`\r\n\t */\r\n\ton: function (types, fn, context) {\r\n\r\n\t\t// types can be a map of types/handlers\r\n\t\tif (typeof types === 'object') {\r\n\t\t\tfor (var type in types) {\r\n\t\t\t\t// we don't process space-separated events here for performance;\r\n\t\t\t\t// it's a hot path since Layer uses the on(obj) syntax\r\n\t\t\t\tthis._on(type, types[type], fn);\r\n\t\t\t}\r\n\r\n\t\t} else {\r\n\t\t\t// types can be a string of space-separated words\r\n\t\t\ttypes = splitWords(types);\r\n\r\n\t\t\tfor (var i = 0, len = types.length; i < len; i++) {\r\n\t\t\t\tthis._on(types[i], fn, context);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn this;\r\n\t},\r\n\r\n\t/* @method off(type: String, fn?: Function, context?: Object): this\r\n\t * Removes a previously added listener function. If no function is specified, it will remove all the listeners of that particular event from the object. Note that if you passed a custom context to `on`, you must pass the same context to `off` in order to remove the listener.\r\n\t *\r\n\t * @alternative\r\n\t * @method off(eventMap: Object): this\r\n\t * Removes a set of type/listener pairs.\r\n\t *\r\n\t * @alternative\r\n\t * @method off: this\r\n\t * Removes all listeners to all events on the object.\r\n\t */\r\n\toff: function (types, fn, context) {\r\n\r\n\t\tif (!types) {\r\n\t\t\t// clear all listeners if called without arguments\r\n\t\t\tdelete this._events;\r\n\r\n\t\t} else if (typeof types === 'object') {\r\n\t\t\tfor (var type in types) {\r\n\t\t\t\tthis._off(type, types[type], fn);\r\n\t\t\t}\r\n\r\n\t\t} else {\r\n\t\t\ttypes = splitWords(types);\r\n\r\n\t\t\tfor (var i = 0, len = types.length; i < len; i++) {\r\n\t\t\t\tthis._off(types[i], fn, context);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// attach listener (without syntactic sugar now)\r\n\t_on: function (type, fn, context) {\r\n\t\tthis._events = this._events || {};\r\n\r\n\t\t/* get/init listeners for type */\r\n\t\tvar typeListeners = this._events[type];\r\n\t\tif (!typeListeners) {\r\n\t\t\ttypeListeners = [];\r\n\t\t\tthis._events[type] = typeListeners;\r\n\t\t}\r\n\r\n\t\tif (context === this) {\r\n\t\t\t// Less memory footprint.\r\n\t\t\tcontext = undefined;\r\n\t\t}\r\n\t\tvar newListener = {fn: fn, ctx: context},\r\n\t\t listeners = typeListeners;\r\n\r\n\t\t// check if fn already there\r\n\t\tfor (var i = 0, len = listeners.length; i < len; i++) {\r\n\t\t\tif (listeners[i].fn === fn && listeners[i].ctx === context) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tlisteners.push(newListener);\r\n\t},\r\n\r\n\t_off: function (type, fn, context) {\r\n\t\tvar listeners,\r\n\t\t i,\r\n\t\t len;\r\n\r\n\t\tif (!this._events) { return; }\r\n\r\n\t\tlisteners = this._events[type];\r\n\r\n\t\tif (!listeners) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (!fn) {\r\n\t\t\t// Set all removed listeners to noop so they are not called if remove happens in fire\r\n\t\t\tfor (i = 0, len = listeners.length; i < len; i++) {\r\n\t\t\t\tlisteners[i].fn = falseFn;\r\n\t\t\t}\r\n\t\t\t// clear all listeners for a type if function isn't specified\r\n\t\t\tdelete this._events[type];\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (context === this) {\r\n\t\t\tcontext = undefined;\r\n\t\t}\r\n\r\n\t\tif (listeners) {\r\n\r\n\t\t\t// find fn and remove it\r\n\t\t\tfor (i = 0, len = listeners.length; i < len; i++) {\r\n\t\t\t\tvar l = listeners[i];\r\n\t\t\t\tif (l.ctx !== context) { continue; }\r\n\t\t\t\tif (l.fn === fn) {\r\n\r\n\t\t\t\t\t// set the removed listener to noop so that's not called if remove happens in fire\r\n\t\t\t\t\tl.fn = falseFn;\r\n\r\n\t\t\t\t\tif (this._firingCount) {\r\n\t\t\t\t\t\t/* copy array in case events are being fired */\r\n\t\t\t\t\t\tthis._events[type] = listeners = listeners.slice();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tlisteners.splice(i, 1);\r\n\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\r\n\t// @method fire(type: String, data?: Object, propagate?: Boolean): this\r\n\t// Fires an event of the specified type. You can optionally provide an data\r\n\t// object — the first argument of the listener function will contain its\r\n\t// properties. The event can optionally be propagated to event parents.\r\n\tfire: function (type, data, propagate) {\r\n\t\tif (!this.listens(type, propagate)) { return this; }\r\n\r\n\t\tvar event = extend({}, data, {\r\n\t\t\ttype: type,\r\n\t\t\ttarget: this,\r\n\t\t\tsourceTarget: data && data.sourceTarget || this\r\n\t\t});\r\n\r\n\t\tif (this._events) {\r\n\t\t\tvar listeners = this._events[type];\r\n\r\n\t\t\tif (listeners) {\r\n\t\t\t\tthis._firingCount = (this._firingCount + 1) || 1;\r\n\t\t\t\tfor (var i = 0, len = listeners.length; i < len; i++) {\r\n\t\t\t\t\tvar l = listeners[i];\r\n\t\t\t\t\tl.fn.call(l.ctx || this, event);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis._firingCount--;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (propagate) {\r\n\t\t\t// propagate the event to parents (set with addEventParent)\r\n\t\t\tthis._propagateEvent(event);\r\n\t\t}\r\n\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method listens(type: String): Boolean\r\n\t// Returns `true` if a particular event type has any listeners attached to it.\r\n\tlistens: function (type, propagate) {\r\n\t\tvar listeners = this._events && this._events[type];\r\n\t\tif (listeners && listeners.length) { return true; }\r\n\r\n\t\tif (propagate) {\r\n\t\t\t// also check parents for listeners if event propagates\r\n\t\t\tfor (var id in this._eventParents) {\r\n\t\t\t\tif (this._eventParents[id].listens(type, propagate)) { return true; }\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t},\r\n\r\n\t// @method once(…): this\r\n\t// Behaves as [`on(…)`](#evented-on), except the listener will only get fired once and then removed.\r\n\tonce: function (types, fn, context) {\r\n\r\n\t\tif (typeof types === 'object') {\r\n\t\t\tfor (var type in types) {\r\n\t\t\t\tthis.once(type, types[type], fn);\r\n\t\t\t}\r\n\t\t\treturn this;\r\n\t\t}\r\n\r\n\t\tvar handler = bind(function () {\r\n\t\t\tthis\r\n\t\t\t .off(types, fn, context)\r\n\t\t\t .off(types, handler, context);\r\n\t\t}, this);\r\n\r\n\t\t// add a listener that's executed once and removed after that\r\n\t\treturn this\r\n\t\t .on(types, fn, context)\r\n\t\t .on(types, handler, context);\r\n\t},\r\n\r\n\t// @method addEventParent(obj: Evented): this\r\n\t// Adds an event parent - an `Evented` that will receive propagated events\r\n\taddEventParent: function (obj) {\r\n\t\tthis._eventParents = this._eventParents || {};\r\n\t\tthis._eventParents[stamp(obj)] = obj;\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method removeEventParent(obj: Evented): this\r\n\t// Removes an event parent, so it will stop receiving propagated events\r\n\tremoveEventParent: function (obj) {\r\n\t\tif (this._eventParents) {\r\n\t\t\tdelete this._eventParents[stamp(obj)];\r\n\t\t}\r\n\t\treturn this;\r\n\t},\r\n\r\n\t_propagateEvent: function (e) {\r\n\t\tfor (var id in this._eventParents) {\r\n\t\t\tthis._eventParents[id].fire(e.type, extend({\r\n\t\t\t\tlayer: e.target,\r\n\t\t\t\tpropagatedFrom: e.target\r\n\t\t\t}, e), true);\r\n\t\t}\r\n\t}\r\n};\r\n\r\n// aliases; we should ditch those eventually\r\n\r\n// @method addEventListener(…): this\r\n// Alias to [`on(…)`](#evented-on)\r\nEvents.addEventListener = Events.on;\r\n\r\n// @method removeEventListener(…): this\r\n// Alias to [`off(…)`](#evented-off)\r\n\r\n// @method clearAllEventListeners(…): this\r\n// Alias to [`off()`](#evented-off)\r\nEvents.removeEventListener = Events.clearAllEventListeners = Events.off;\r\n\r\n// @method addOneTimeEventListener(…): this\r\n// Alias to [`once(…)`](#evented-once)\r\nEvents.addOneTimeEventListener = Events.once;\r\n\r\n// @method fireEvent(…): this\r\n// Alias to [`fire(…)`](#evented-fire)\r\nEvents.fireEvent = Events.fire;\r\n\r\n// @method hasEventListeners(…): Boolean\r\n// Alias to [`listens(…)`](#evented-listens)\r\nEvents.hasEventListeners = Events.listens;\r\n\r\nvar Evented = Class.extend(Events);\n\n/*\r\n * @class Point\r\n * @aka L.Point\r\n *\r\n * Represents a point with `x` and `y` coordinates in pixels.\r\n *\r\n * @example\r\n *\r\n * ```js\r\n * var point = L.point(200, 300);\r\n * ```\r\n *\r\n * All Leaflet methods and options that accept `Point` objects also accept them in a simple Array form (unless noted otherwise), so these lines are equivalent:\r\n *\r\n * ```js\r\n * map.panBy([200, 300]);\r\n * map.panBy(L.point(200, 300));\r\n * ```\r\n *\r\n * Note that `Point` does not inherit from Leafet's `Class` object,\r\n * which means new classes can't inherit from it, and new methods\r\n * can't be added to it with the `include` function.\r\n */\r\n\r\nfunction Point(x, y, round) {\r\n\t// @property x: Number; The `x` coordinate of the point\r\n\tthis.x = (round ? Math.round(x) : x);\r\n\t// @property y: Number; The `y` coordinate of the point\r\n\tthis.y = (round ? Math.round(y) : y);\r\n}\r\n\r\nvar trunc = Math.trunc || function (v) {\r\n\treturn v > 0 ? Math.floor(v) : Math.ceil(v);\r\n};\r\n\r\nPoint.prototype = {\r\n\r\n\t// @method clone(): Point\r\n\t// Returns a copy of the current point.\r\n\tclone: function () {\r\n\t\treturn new Point(this.x, this.y);\r\n\t},\r\n\r\n\t// @method add(otherPoint: Point): Point\r\n\t// Returns the result of addition of the current and the given points.\r\n\tadd: function (point) {\r\n\t\t// non-destructive, returns a new point\r\n\t\treturn this.clone()._add(toPoint(point));\r\n\t},\r\n\r\n\t_add: function (point) {\r\n\t\t// destructive, used directly for performance in situations where it's safe to modify existing point\r\n\t\tthis.x += point.x;\r\n\t\tthis.y += point.y;\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method subtract(otherPoint: Point): Point\r\n\t// Returns the result of subtraction of the given point from the current.\r\n\tsubtract: function (point) {\r\n\t\treturn this.clone()._subtract(toPoint(point));\r\n\t},\r\n\r\n\t_subtract: function (point) {\r\n\t\tthis.x -= point.x;\r\n\t\tthis.y -= point.y;\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method divideBy(num: Number): Point\r\n\t// Returns the result of division of the current point by the given number.\r\n\tdivideBy: function (num) {\r\n\t\treturn this.clone()._divideBy(num);\r\n\t},\r\n\r\n\t_divideBy: function (num) {\r\n\t\tthis.x /= num;\r\n\t\tthis.y /= num;\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method multiplyBy(num: Number): Point\r\n\t// Returns the result of multiplication of the current point by the given number.\r\n\tmultiplyBy: function (num) {\r\n\t\treturn this.clone()._multiplyBy(num);\r\n\t},\r\n\r\n\t_multiplyBy: function (num) {\r\n\t\tthis.x *= num;\r\n\t\tthis.y *= num;\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method scaleBy(scale: Point): Point\r\n\t// Multiply each coordinate of the current point by each coordinate of\r\n\t// `scale`. In linear algebra terms, multiply the point by the\r\n\t// [scaling matrix](https://en.wikipedia.org/wiki/Scaling_%28geometry%29#Matrix_representation)\r\n\t// defined by `scale`.\r\n\tscaleBy: function (point) {\r\n\t\treturn new Point(this.x * point.x, this.y * point.y);\r\n\t},\r\n\r\n\t// @method unscaleBy(scale: Point): Point\r\n\t// Inverse of `scaleBy`. Divide each coordinate of the current point by\r\n\t// each coordinate of `scale`.\r\n\tunscaleBy: function (point) {\r\n\t\treturn new Point(this.x / point.x, this.y / point.y);\r\n\t},\r\n\r\n\t// @method round(): Point\r\n\t// Returns a copy of the current point with rounded coordinates.\r\n\tround: function () {\r\n\t\treturn this.clone()._round();\r\n\t},\r\n\r\n\t_round: function () {\r\n\t\tthis.x = Math.round(this.x);\r\n\t\tthis.y = Math.round(this.y);\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method floor(): Point\r\n\t// Returns a copy of the current point with floored coordinates (rounded down).\r\n\tfloor: function () {\r\n\t\treturn this.clone()._floor();\r\n\t},\r\n\r\n\t_floor: function () {\r\n\t\tthis.x = Math.floor(this.x);\r\n\t\tthis.y = Math.floor(this.y);\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method ceil(): Point\r\n\t// Returns a copy of the current point with ceiled coordinates (rounded up).\r\n\tceil: function () {\r\n\t\treturn this.clone()._ceil();\r\n\t},\r\n\r\n\t_ceil: function () {\r\n\t\tthis.x = Math.ceil(this.x);\r\n\t\tthis.y = Math.ceil(this.y);\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method trunc(): Point\r\n\t// Returns a copy of the current point with truncated coordinates (rounded towards zero).\r\n\ttrunc: function () {\r\n\t\treturn this.clone()._trunc();\r\n\t},\r\n\r\n\t_trunc: function () {\r\n\t\tthis.x = trunc(this.x);\r\n\t\tthis.y = trunc(this.y);\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method distanceTo(otherPoint: Point): Number\r\n\t// Returns the cartesian distance between the current and the given points.\r\n\tdistanceTo: function (point) {\r\n\t\tpoint = toPoint(point);\r\n\r\n\t\tvar x = point.x - this.x,\r\n\t\t y = point.y - this.y;\r\n\r\n\t\treturn Math.sqrt(x * x + y * y);\r\n\t},\r\n\r\n\t// @method equals(otherPoint: Point): Boolean\r\n\t// Returns `true` if the given point has the same coordinates.\r\n\tequals: function (point) {\r\n\t\tpoint = toPoint(point);\r\n\r\n\t\treturn point.x === this.x &&\r\n\t\t point.y === this.y;\r\n\t},\r\n\r\n\t// @method contains(otherPoint: Point): Boolean\r\n\t// Returns `true` if both coordinates of the given point are less than the corresponding current point coordinates (in absolute values).\r\n\tcontains: function (point) {\r\n\t\tpoint = toPoint(point);\r\n\r\n\t\treturn Math.abs(point.x) <= Math.abs(this.x) &&\r\n\t\t Math.abs(point.y) <= Math.abs(this.y);\r\n\t},\r\n\r\n\t// @method toString(): String\r\n\t// Returns a string representation of the point for debugging purposes.\r\n\ttoString: function () {\r\n\t\treturn 'Point(' +\r\n\t\t formatNum(this.x) + ', ' +\r\n\t\t formatNum(this.y) + ')';\r\n\t}\r\n};\r\n\r\n// @factory L.point(x: Number, y: Number, round?: Boolean)\r\n// Creates a Point object with the given `x` and `y` coordinates. If optional `round` is set to true, rounds the `x` and `y` values.\r\n\r\n// @alternative\r\n// @factory L.point(coords: Number[])\r\n// Expects an array of the form `[x, y]` instead.\r\n\r\n// @alternative\r\n// @factory L.point(coords: Object)\r\n// Expects a plain object of the form `{x: Number, y: Number}` instead.\r\nfunction toPoint(x, y, round) {\r\n\tif (x instanceof Point) {\r\n\t\treturn x;\r\n\t}\r\n\tif (isArray(x)) {\r\n\t\treturn new Point(x[0], x[1]);\r\n\t}\r\n\tif (x === undefined || x === null) {\r\n\t\treturn x;\r\n\t}\r\n\tif (typeof x === 'object' && 'x' in x && 'y' in x) {\r\n\t\treturn new Point(x.x, x.y);\r\n\t}\r\n\treturn new Point(x, y, round);\r\n}\n\n/*\r\n * @class Bounds\r\n * @aka L.Bounds\r\n *\r\n * Represents a rectangular area in pixel coordinates.\r\n *\r\n * @example\r\n *\r\n * ```js\r\n * var p1 = L.point(10, 10),\r\n * p2 = L.point(40, 60),\r\n * bounds = L.bounds(p1, p2);\r\n * ```\r\n *\r\n * All Leaflet methods that accept `Bounds` objects also accept them in a simple Array form (unless noted otherwise), so the bounds example above can be passed like this:\r\n *\r\n * ```js\r\n * otherBounds.intersects([[10, 10], [40, 60]]);\r\n * ```\r\n *\r\n * Note that `Bounds` does not inherit from Leafet's `Class` object,\r\n * which means new classes can't inherit from it, and new methods\r\n * can't be added to it with the `include` function.\r\n */\r\n\r\nfunction Bounds(a, b) {\r\n\tif (!a) { return; }\r\n\r\n\tvar points = b ? [a, b] : a;\r\n\r\n\tfor (var i = 0, len = points.length; i < len; i++) {\r\n\t\tthis.extend(points[i]);\r\n\t}\r\n}\r\n\r\nBounds.prototype = {\r\n\t// @method extend(point: Point): this\r\n\t// Extends the bounds to contain the given point.\r\n\textend: function (point) { // (Point)\r\n\t\tpoint = toPoint(point);\r\n\r\n\t\t// @property min: Point\r\n\t\t// The top left corner of the rectangle.\r\n\t\t// @property max: Point\r\n\t\t// The bottom right corner of the rectangle.\r\n\t\tif (!this.min && !this.max) {\r\n\t\t\tthis.min = point.clone();\r\n\t\t\tthis.max = point.clone();\r\n\t\t} else {\r\n\t\t\tthis.min.x = Math.min(point.x, this.min.x);\r\n\t\t\tthis.max.x = Math.max(point.x, this.max.x);\r\n\t\t\tthis.min.y = Math.min(point.y, this.min.y);\r\n\t\t\tthis.max.y = Math.max(point.y, this.max.y);\r\n\t\t}\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method getCenter(round?: Boolean): Point\r\n\t// Returns the center point of the bounds.\r\n\tgetCenter: function (round) {\r\n\t\treturn new Point(\r\n\t\t (this.min.x + this.max.x) / 2,\r\n\t\t (this.min.y + this.max.y) / 2, round);\r\n\t},\r\n\r\n\t// @method getBottomLeft(): Point\r\n\t// Returns the bottom-left point of the bounds.\r\n\tgetBottomLeft: function () {\r\n\t\treturn new Point(this.min.x, this.max.y);\r\n\t},\r\n\r\n\t// @method getTopRight(): Point\r\n\t// Returns the top-right point of the bounds.\r\n\tgetTopRight: function () { // -> Point\r\n\t\treturn new Point(this.max.x, this.min.y);\r\n\t},\r\n\r\n\t// @method getTopLeft(): Point\r\n\t// Returns the top-left point of the bounds (i.e. [`this.min`](#bounds-min)).\r\n\tgetTopLeft: function () {\r\n\t\treturn this.min; // left, top\r\n\t},\r\n\r\n\t// @method getBottomRight(): Point\r\n\t// Returns the bottom-right point of the bounds (i.e. [`this.max`](#bounds-max)).\r\n\tgetBottomRight: function () {\r\n\t\treturn this.max; // right, bottom\r\n\t},\r\n\r\n\t// @method getSize(): Point\r\n\t// Returns the size of the given bounds\r\n\tgetSize: function () {\r\n\t\treturn this.max.subtract(this.min);\r\n\t},\r\n\r\n\t// @method contains(otherBounds: Bounds): Boolean\r\n\t// Returns `true` if the rectangle contains the given one.\r\n\t// @alternative\r\n\t// @method contains(point: Point): Boolean\r\n\t// Returns `true` if the rectangle contains the given point.\r\n\tcontains: function (obj) {\r\n\t\tvar min, max;\r\n\r\n\t\tif (typeof obj[0] === 'number' || obj instanceof Point) {\r\n\t\t\tobj = toPoint(obj);\r\n\t\t} else {\r\n\t\t\tobj = toBounds(obj);\r\n\t\t}\r\n\r\n\t\tif (obj instanceof Bounds) {\r\n\t\t\tmin = obj.min;\r\n\t\t\tmax = obj.max;\r\n\t\t} else {\r\n\t\t\tmin = max = obj;\r\n\t\t}\r\n\r\n\t\treturn (min.x >= this.min.x) &&\r\n\t\t (max.x <= this.max.x) &&\r\n\t\t (min.y >= this.min.y) &&\r\n\t\t (max.y <= this.max.y);\r\n\t},\r\n\r\n\t// @method intersects(otherBounds: Bounds): Boolean\r\n\t// Returns `true` if the rectangle intersects the given bounds. Two bounds\r\n\t// intersect if they have at least one point in common.\r\n\tintersects: function (bounds) { // (Bounds) -> Boolean\r\n\t\tbounds = toBounds(bounds);\r\n\r\n\t\tvar min = this.min,\r\n\t\t max = this.max,\r\n\t\t min2 = bounds.min,\r\n\t\t max2 = bounds.max,\r\n\t\t xIntersects = (max2.x >= min.x) && (min2.x <= max.x),\r\n\t\t yIntersects = (max2.y >= min.y) && (min2.y <= max.y);\r\n\r\n\t\treturn xIntersects && yIntersects;\r\n\t},\r\n\r\n\t// @method overlaps(otherBounds: Bounds): Boolean\r\n\t// Returns `true` if the rectangle overlaps the given bounds. Two bounds\r\n\t// overlap if their intersection is an area.\r\n\toverlaps: function (bounds) { // (Bounds) -> Boolean\r\n\t\tbounds = toBounds(bounds);\r\n\r\n\t\tvar min = this.min,\r\n\t\t max = this.max,\r\n\t\t min2 = bounds.min,\r\n\t\t max2 = bounds.max,\r\n\t\t xOverlaps = (max2.x > min.x) && (min2.x < max.x),\r\n\t\t yOverlaps = (max2.y > min.y) && (min2.y < max.y);\r\n\r\n\t\treturn xOverlaps && yOverlaps;\r\n\t},\r\n\r\n\tisValid: function () {\r\n\t\treturn !!(this.min && this.max);\r\n\t}\r\n};\r\n\r\n\r\n// @factory L.bounds(corner1: Point, corner2: Point)\r\n// Creates a Bounds object from two corners coordinate pairs.\r\n// @alternative\r\n// @factory L.bounds(points: Point[])\r\n// Creates a Bounds object from the given array of points.\r\nfunction toBounds(a, b) {\r\n\tif (!a || a instanceof Bounds) {\r\n\t\treturn a;\r\n\t}\r\n\treturn new Bounds(a, b);\r\n}\n\n/*\r\n * @class LatLngBounds\r\n * @aka L.LatLngBounds\r\n *\r\n * Represents a rectangular geographical area on a map.\r\n *\r\n * @example\r\n *\r\n * ```js\r\n * var corner1 = L.latLng(40.712, -74.227),\r\n * corner2 = L.latLng(40.774, -74.125),\r\n * bounds = L.latLngBounds(corner1, corner2);\r\n * ```\r\n *\r\n * All Leaflet methods that accept LatLngBounds objects also accept them in a simple Array form (unless noted otherwise), so the bounds example above can be passed like this:\r\n *\r\n * ```js\r\n * map.fitBounds([\r\n * \t[40.712, -74.227],\r\n * \t[40.774, -74.125]\r\n * ]);\r\n * ```\r\n *\r\n * Caution: if the area crosses the antimeridian (often confused with the International Date Line), you must specify corners _outside_ the [-180, 180] degrees longitude range.\r\n *\r\n * Note that `LatLngBounds` does not inherit from Leafet's `Class` object,\r\n * which means new classes can't inherit from it, and new methods\r\n * can't be added to it with the `include` function.\r\n */\r\n\r\nfunction LatLngBounds(corner1, corner2) { // (LatLng, LatLng) or (LatLng[])\r\n\tif (!corner1) { return; }\r\n\r\n\tvar latlngs = corner2 ? [corner1, corner2] : corner1;\r\n\r\n\tfor (var i = 0, len = latlngs.length; i < len; i++) {\r\n\t\tthis.extend(latlngs[i]);\r\n\t}\r\n}\r\n\r\nLatLngBounds.prototype = {\r\n\r\n\t// @method extend(latlng: LatLng): this\r\n\t// Extend the bounds to contain the given point\r\n\r\n\t// @alternative\r\n\t// @method extend(otherBounds: LatLngBounds): this\r\n\t// Extend the bounds to contain the given bounds\r\n\textend: function (obj) {\r\n\t\tvar sw = this._southWest,\r\n\t\t ne = this._northEast,\r\n\t\t sw2, ne2;\r\n\r\n\t\tif (obj instanceof LatLng) {\r\n\t\t\tsw2 = obj;\r\n\t\t\tne2 = obj;\r\n\r\n\t\t} else if (obj instanceof LatLngBounds) {\r\n\t\t\tsw2 = obj._southWest;\r\n\t\t\tne2 = obj._northEast;\r\n\r\n\t\t\tif (!sw2 || !ne2) { return this; }\r\n\r\n\t\t} else {\r\n\t\t\treturn obj ? this.extend(toLatLng(obj) || toLatLngBounds(obj)) : this;\r\n\t\t}\r\n\r\n\t\tif (!sw && !ne) {\r\n\t\t\tthis._southWest = new LatLng(sw2.lat, sw2.lng);\r\n\t\t\tthis._northEast = new LatLng(ne2.lat, ne2.lng);\r\n\t\t} else {\r\n\t\t\tsw.lat = Math.min(sw2.lat, sw.lat);\r\n\t\t\tsw.lng = Math.min(sw2.lng, sw.lng);\r\n\t\t\tne.lat = Math.max(ne2.lat, ne.lat);\r\n\t\t\tne.lng = Math.max(ne2.lng, ne.lng);\r\n\t\t}\r\n\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method pad(bufferRatio: Number): LatLngBounds\r\n\t// Returns bounds created by extending or retracting the current bounds by a given ratio in each direction.\r\n\t// For example, a ratio of 0.5 extends the bounds by 50% in each direction.\r\n\t// Negative values will retract the bounds.\r\n\tpad: function (bufferRatio) {\r\n\t\tvar sw = this._southWest,\r\n\t\t ne = this._northEast,\r\n\t\t heightBuffer = Math.abs(sw.lat - ne.lat) * bufferRatio,\r\n\t\t widthBuffer = Math.abs(sw.lng - ne.lng) * bufferRatio;\r\n\r\n\t\treturn new LatLngBounds(\r\n\t\t new LatLng(sw.lat - heightBuffer, sw.lng - widthBuffer),\r\n\t\t new LatLng(ne.lat + heightBuffer, ne.lng + widthBuffer));\r\n\t},\r\n\r\n\t// @method getCenter(): LatLng\r\n\t// Returns the center point of the bounds.\r\n\tgetCenter: function () {\r\n\t\treturn new LatLng(\r\n\t\t (this._southWest.lat + this._northEast.lat) / 2,\r\n\t\t (this._southWest.lng + this._northEast.lng) / 2);\r\n\t},\r\n\r\n\t// @method getSouthWest(): LatLng\r\n\t// Returns the south-west point of the bounds.\r\n\tgetSouthWest: function () {\r\n\t\treturn this._southWest;\r\n\t},\r\n\r\n\t// @method getNorthEast(): LatLng\r\n\t// Returns the north-east point of the bounds.\r\n\tgetNorthEast: function () {\r\n\t\treturn this._northEast;\r\n\t},\r\n\r\n\t// @method getNorthWest(): LatLng\r\n\t// Returns the north-west point of the bounds.\r\n\tgetNorthWest: function () {\r\n\t\treturn new LatLng(this.getNorth(), this.getWest());\r\n\t},\r\n\r\n\t// @method getSouthEast(): LatLng\r\n\t// Returns the south-east point of the bounds.\r\n\tgetSouthEast: function () {\r\n\t\treturn new LatLng(this.getSouth(), this.getEast());\r\n\t},\r\n\r\n\t// @method getWest(): Number\r\n\t// Returns the west longitude of the bounds\r\n\tgetWest: function () {\r\n\t\treturn this._southWest.lng;\r\n\t},\r\n\r\n\t// @method getSouth(): Number\r\n\t// Returns the south latitude of the bounds\r\n\tgetSouth: function () {\r\n\t\treturn this._southWest.lat;\r\n\t},\r\n\r\n\t// @method getEast(): Number\r\n\t// Returns the east longitude of the bounds\r\n\tgetEast: function () {\r\n\t\treturn this._northEast.lng;\r\n\t},\r\n\r\n\t// @method getNorth(): Number\r\n\t// Returns the north latitude of the bounds\r\n\tgetNorth: function () {\r\n\t\treturn this._northEast.lat;\r\n\t},\r\n\r\n\t// @method contains(otherBounds: LatLngBounds): Boolean\r\n\t// Returns `true` if the rectangle contains the given one.\r\n\r\n\t// @alternative\r\n\t// @method contains (latlng: LatLng): Boolean\r\n\t// Returns `true` if the rectangle contains the given point.\r\n\tcontains: function (obj) { // (LatLngBounds) or (LatLng) -> Boolean\r\n\t\tif (typeof obj[0] === 'number' || obj instanceof LatLng || 'lat' in obj) {\r\n\t\t\tobj = toLatLng(obj);\r\n\t\t} else {\r\n\t\t\tobj = toLatLngBounds(obj);\r\n\t\t}\r\n\r\n\t\tvar sw = this._southWest,\r\n\t\t ne = this._northEast,\r\n\t\t sw2, ne2;\r\n\r\n\t\tif (obj instanceof LatLngBounds) {\r\n\t\t\tsw2 = obj.getSouthWest();\r\n\t\t\tne2 = obj.getNorthEast();\r\n\t\t} else {\r\n\t\t\tsw2 = ne2 = obj;\r\n\t\t}\r\n\r\n\t\treturn (sw2.lat >= sw.lat) && (ne2.lat <= ne.lat) &&\r\n\t\t (sw2.lng >= sw.lng) && (ne2.lng <= ne.lng);\r\n\t},\r\n\r\n\t// @method intersects(otherBounds: LatLngBounds): Boolean\r\n\t// Returns `true` if the rectangle intersects the given bounds. Two bounds intersect if they have at least one point in common.\r\n\tintersects: function (bounds) {\r\n\t\tbounds = toLatLngBounds(bounds);\r\n\r\n\t\tvar sw = this._southWest,\r\n\t\t ne = this._northEast,\r\n\t\t sw2 = bounds.getSouthWest(),\r\n\t\t ne2 = bounds.getNorthEast(),\r\n\r\n\t\t latIntersects = (ne2.lat >= sw.lat) && (sw2.lat <= ne.lat),\r\n\t\t lngIntersects = (ne2.lng >= sw.lng) && (sw2.lng <= ne.lng);\r\n\r\n\t\treturn latIntersects && lngIntersects;\r\n\t},\r\n\r\n\t// @method overlaps(otherBounds: Bounds): Boolean\r\n\t// Returns `true` if the rectangle overlaps the given bounds. Two bounds overlap if their intersection is an area.\r\n\toverlaps: function (bounds) {\r\n\t\tbounds = toLatLngBounds(bounds);\r\n\r\n\t\tvar sw = this._southWest,\r\n\t\t ne = this._northEast,\r\n\t\t sw2 = bounds.getSouthWest(),\r\n\t\t ne2 = bounds.getNorthEast(),\r\n\r\n\t\t latOverlaps = (ne2.lat > sw.lat) && (sw2.lat < ne.lat),\r\n\t\t lngOverlaps = (ne2.lng > sw.lng) && (sw2.lng < ne.lng);\r\n\r\n\t\treturn latOverlaps && lngOverlaps;\r\n\t},\r\n\r\n\t// @method toBBoxString(): String\r\n\t// Returns a string with bounding box coordinates in a 'southwest_lng,southwest_lat,northeast_lng,northeast_lat' format. Useful for sending requests to web services that return geo data.\r\n\ttoBBoxString: function () {\r\n\t\treturn [this.getWest(), this.getSouth(), this.getEast(), this.getNorth()].join(',');\r\n\t},\r\n\r\n\t// @method equals(otherBounds: LatLngBounds, maxMargin?: Number): Boolean\r\n\t// Returns `true` if the rectangle is equivalent (within a small margin of error) to the given bounds. The margin of error can be overridden by setting `maxMargin` to a small number.\r\n\tequals: function (bounds, maxMargin) {\r\n\t\tif (!bounds) { return false; }\r\n\r\n\t\tbounds = toLatLngBounds(bounds);\r\n\r\n\t\treturn this._southWest.equals(bounds.getSouthWest(), maxMargin) &&\r\n\t\t this._northEast.equals(bounds.getNorthEast(), maxMargin);\r\n\t},\r\n\r\n\t// @method isValid(): Boolean\r\n\t// Returns `true` if the bounds are properly initialized.\r\n\tisValid: function () {\r\n\t\treturn !!(this._southWest && this._northEast);\r\n\t}\r\n};\r\n\r\n// TODO International date line?\r\n\r\n// @factory L.latLngBounds(corner1: LatLng, corner2: LatLng)\r\n// Creates a `LatLngBounds` object by defining two diagonally opposite corners of the rectangle.\r\n\r\n// @alternative\r\n// @factory L.latLngBounds(latlngs: LatLng[])\r\n// Creates a `LatLngBounds` object defined by the geographical points it contains. Very useful for zooming the map to fit a particular set of locations with [`fitBounds`](#map-fitbounds).\r\nfunction toLatLngBounds(a, b) {\r\n\tif (a instanceof LatLngBounds) {\r\n\t\treturn a;\r\n\t}\r\n\treturn new LatLngBounds(a, b);\r\n}\n\n/* @class LatLng\r\n * @aka L.LatLng\r\n *\r\n * Represents a geographical point with a certain latitude and longitude.\r\n *\r\n * @example\r\n *\r\n * ```\r\n * var latlng = L.latLng(50.5, 30.5);\r\n * ```\r\n *\r\n * All Leaflet methods that accept LatLng objects also accept them in a simple Array form and simple object form (unless noted otherwise), so these lines are equivalent:\r\n *\r\n * ```\r\n * map.panTo([50, 30]);\r\n * map.panTo({lon: 30, lat: 50});\r\n * map.panTo({lat: 50, lng: 30});\r\n * map.panTo(L.latLng(50, 30));\r\n * ```\r\n *\r\n * Note that `LatLng` does not inherit from Leaflet's `Class` object,\r\n * which means new classes can't inherit from it, and new methods\r\n * can't be added to it with the `include` function.\r\n */\r\n\r\nfunction LatLng(lat, lng, alt) {\r\n\tif (isNaN(lat) || isNaN(lng)) {\r\n\t\tthrow new Error('Invalid LatLng object: (' + lat + ', ' + lng + ')');\r\n\t}\r\n\r\n\t// @property lat: Number\r\n\t// Latitude in degrees\r\n\tthis.lat = +lat;\r\n\r\n\t// @property lng: Number\r\n\t// Longitude in degrees\r\n\tthis.lng = +lng;\r\n\r\n\t// @property alt: Number\r\n\t// Altitude in meters (optional)\r\n\tif (alt !== undefined) {\r\n\t\tthis.alt = +alt;\r\n\t}\r\n}\r\n\r\nLatLng.prototype = {\r\n\t// @method equals(otherLatLng: LatLng, maxMargin?: Number): Boolean\r\n\t// Returns `true` if the given `LatLng` point is at the same position (within a small margin of error). The margin of error can be overridden by setting `maxMargin` to a small number.\r\n\tequals: function (obj, maxMargin) {\r\n\t\tif (!obj) { return false; }\r\n\r\n\t\tobj = toLatLng(obj);\r\n\r\n\t\tvar margin = Math.max(\r\n\t\t Math.abs(this.lat - obj.lat),\r\n\t\t Math.abs(this.lng - obj.lng));\r\n\r\n\t\treturn margin <= (maxMargin === undefined ? 1.0E-9 : maxMargin);\r\n\t},\r\n\r\n\t// @method toString(): String\r\n\t// Returns a string representation of the point (for debugging purposes).\r\n\ttoString: function (precision) {\r\n\t\treturn 'LatLng(' +\r\n\t\t formatNum(this.lat, precision) + ', ' +\r\n\t\t formatNum(this.lng, precision) + ')';\r\n\t},\r\n\r\n\t// @method distanceTo(otherLatLng: LatLng): Number\r\n\t// Returns the distance (in meters) to the given `LatLng` calculated using the [Spherical Law of Cosines](https://en.wikipedia.org/wiki/Spherical_law_of_cosines).\r\n\tdistanceTo: function (other) {\r\n\t\treturn Earth.distance(this, toLatLng(other));\r\n\t},\r\n\r\n\t// @method wrap(): LatLng\r\n\t// Returns a new `LatLng` object with the longitude wrapped so it's always between -180 and +180 degrees.\r\n\twrap: function () {\r\n\t\treturn Earth.wrapLatLng(this);\r\n\t},\r\n\r\n\t// @method toBounds(sizeInMeters: Number): LatLngBounds\r\n\t// Returns a new `LatLngBounds` object in which each boundary is `sizeInMeters/2` meters apart from the `LatLng`.\r\n\ttoBounds: function (sizeInMeters) {\r\n\t\tvar latAccuracy = 180 * sizeInMeters / 40075017,\r\n\t\t lngAccuracy = latAccuracy / Math.cos((Math.PI / 180) * this.lat);\r\n\r\n\t\treturn toLatLngBounds(\r\n\t\t [this.lat - latAccuracy, this.lng - lngAccuracy],\r\n\t\t [this.lat + latAccuracy, this.lng + lngAccuracy]);\r\n\t},\r\n\r\n\tclone: function () {\r\n\t\treturn new LatLng(this.lat, this.lng, this.alt);\r\n\t}\r\n};\r\n\r\n\r\n\r\n// @factory L.latLng(latitude: Number, longitude: Number, altitude?: Number): LatLng\r\n// Creates an object representing a geographical point with the given latitude and longitude (and optionally altitude).\r\n\r\n// @alternative\r\n// @factory L.latLng(coords: Array): LatLng\r\n// Expects an array of the form `[Number, Number]` or `[Number, Number, Number]` instead.\r\n\r\n// @alternative\r\n// @factory L.latLng(coords: Object): LatLng\r\n// Expects an plain object of the form `{lat: Number, lng: Number}` or `{lat: Number, lng: Number, alt: Number}` instead.\r\n\r\nfunction toLatLng(a, b, c) {\r\n\tif (a instanceof LatLng) {\r\n\t\treturn a;\r\n\t}\r\n\tif (isArray(a) && typeof a[0] !== 'object') {\r\n\t\tif (a.length === 3) {\r\n\t\t\treturn new LatLng(a[0], a[1], a[2]);\r\n\t\t}\r\n\t\tif (a.length === 2) {\r\n\t\t\treturn new LatLng(a[0], a[1]);\r\n\t\t}\r\n\t\treturn null;\r\n\t}\r\n\tif (a === undefined || a === null) {\r\n\t\treturn a;\r\n\t}\r\n\tif (typeof a === 'object' && 'lat' in a) {\r\n\t\treturn new LatLng(a.lat, 'lng' in a ? a.lng : a.lon, a.alt);\r\n\t}\r\n\tif (b === undefined) {\r\n\t\treturn null;\r\n\t}\r\n\treturn new LatLng(a, b, c);\r\n}\n\n/*\r\n * @namespace CRS\r\n * @crs L.CRS.Base\r\n * Object that defines coordinate reference systems for projecting\r\n * geographical points into pixel (screen) coordinates and back (and to\r\n * coordinates in other units for [WMS](https://en.wikipedia.org/wiki/Web_Map_Service) services). See\r\n * [spatial reference system](http://en.wikipedia.org/wiki/Coordinate_reference_system).\r\n *\r\n * Leaflet defines the most usual CRSs by default. If you want to use a\r\n * CRS not defined by default, take a look at the\r\n * [Proj4Leaflet](https://github.com/kartena/Proj4Leaflet) plugin.\r\n *\r\n * Note that the CRS instances do not inherit from Leafet's `Class` object,\r\n * and can't be instantiated. Also, new classes can't inherit from them,\r\n * and methods can't be added to them with the `include` function.\r\n */\r\n\r\nvar CRS = {\r\n\t// @method latLngToPoint(latlng: LatLng, zoom: Number): Point\r\n\t// Projects geographical coordinates into pixel coordinates for a given zoom.\r\n\tlatLngToPoint: function (latlng, zoom) {\r\n\t\tvar projectedPoint = this.projection.project(latlng),\r\n\t\t scale = this.scale(zoom);\r\n\r\n\t\treturn this.transformation._transform(projectedPoint, scale);\r\n\t},\r\n\r\n\t// @method pointToLatLng(point: Point, zoom: Number): LatLng\r\n\t// The inverse of `latLngToPoint`. Projects pixel coordinates on a given\r\n\t// zoom into geographical coordinates.\r\n\tpointToLatLng: function (point, zoom) {\r\n\t\tvar scale = this.scale(zoom),\r\n\t\t untransformedPoint = this.transformation.untransform(point, scale);\r\n\r\n\t\treturn this.projection.unproject(untransformedPoint);\r\n\t},\r\n\r\n\t// @method project(latlng: LatLng): Point\r\n\t// Projects geographical coordinates into coordinates in units accepted for\r\n\t// this CRS (e.g. meters for EPSG:3857, for passing it to WMS services).\r\n\tproject: function (latlng) {\r\n\t\treturn this.projection.project(latlng);\r\n\t},\r\n\r\n\t// @method unproject(point: Point): LatLng\r\n\t// Given a projected coordinate returns the corresponding LatLng.\r\n\t// The inverse of `project`.\r\n\tunproject: function (point) {\r\n\t\treturn this.projection.unproject(point);\r\n\t},\r\n\r\n\t// @method scale(zoom: Number): Number\r\n\t// Returns the scale used when transforming projected coordinates into\r\n\t// pixel coordinates for a particular zoom. For example, it returns\r\n\t// `256 * 2^zoom` for Mercator-based CRS.\r\n\tscale: function (zoom) {\r\n\t\treturn 256 * Math.pow(2, zoom);\r\n\t},\r\n\r\n\t// @method zoom(scale: Number): Number\r\n\t// Inverse of `scale()`, returns the zoom level corresponding to a scale\r\n\t// factor of `scale`.\r\n\tzoom: function (scale) {\r\n\t\treturn Math.log(scale / 256) / Math.LN2;\r\n\t},\r\n\r\n\t// @method getProjectedBounds(zoom: Number): Bounds\r\n\t// Returns the projection's bounds scaled and transformed for the provided `zoom`.\r\n\tgetProjectedBounds: function (zoom) {\r\n\t\tif (this.infinite) { return null; }\r\n\r\n\t\tvar b = this.projection.bounds,\r\n\t\t s = this.scale(zoom),\r\n\t\t min = this.transformation.transform(b.min, s),\r\n\t\t max = this.transformation.transform(b.max, s);\r\n\r\n\t\treturn new Bounds(min, max);\r\n\t},\r\n\r\n\t// @method distance(latlng1: LatLng, latlng2: LatLng): Number\r\n\t// Returns the distance between two geographical coordinates.\r\n\r\n\t// @property code: String\r\n\t// Standard code name of the CRS passed into WMS services (e.g. `'EPSG:3857'`)\r\n\t//\r\n\t// @property wrapLng: Number[]\r\n\t// An array of two numbers defining whether the longitude (horizontal) coordinate\r\n\t// axis wraps around a given range and how. Defaults to `[-180, 180]` in most\r\n\t// geographical CRSs. If `undefined`, the longitude axis does not wrap around.\r\n\t//\r\n\t// @property wrapLat: Number[]\r\n\t// Like `wrapLng`, but for the latitude (vertical) axis.\r\n\r\n\t// wrapLng: [min, max],\r\n\t// wrapLat: [min, max],\r\n\r\n\t// @property infinite: Boolean\r\n\t// If true, the coordinate space will be unbounded (infinite in both axes)\r\n\tinfinite: false,\r\n\r\n\t// @method wrapLatLng(latlng: LatLng): LatLng\r\n\t// Returns a `LatLng` where lat and lng has been wrapped according to the\r\n\t// CRS's `wrapLat` and `wrapLng` properties, if they are outside the CRS's bounds.\r\n\twrapLatLng: function (latlng) {\r\n\t\tvar lng = this.wrapLng ? wrapNum(latlng.lng, this.wrapLng, true) : latlng.lng,\r\n\t\t lat = this.wrapLat ? wrapNum(latlng.lat, this.wrapLat, true) : latlng.lat,\r\n\t\t alt = latlng.alt;\r\n\r\n\t\treturn new LatLng(lat, lng, alt);\r\n\t},\r\n\r\n\t// @method wrapLatLngBounds(bounds: LatLngBounds): LatLngBounds\r\n\t// Returns a `LatLngBounds` with the same size as the given one, ensuring\r\n\t// that its center is within the CRS's bounds.\r\n\t// Only accepts actual `L.LatLngBounds` instances, not arrays.\r\n\twrapLatLngBounds: function (bounds) {\r\n\t\tvar center = bounds.getCenter(),\r\n\t\t newCenter = this.wrapLatLng(center),\r\n\t\t latShift = center.lat - newCenter.lat,\r\n\t\t lngShift = center.lng - newCenter.lng;\r\n\r\n\t\tif (latShift === 0 && lngShift === 0) {\r\n\t\t\treturn bounds;\r\n\t\t}\r\n\r\n\t\tvar sw = bounds.getSouthWest(),\r\n\t\t ne = bounds.getNorthEast(),\r\n\t\t newSw = new LatLng(sw.lat - latShift, sw.lng - lngShift),\r\n\t\t newNe = new LatLng(ne.lat - latShift, ne.lng - lngShift);\r\n\r\n\t\treturn new LatLngBounds(newSw, newNe);\r\n\t}\r\n};\n\n/*\n * @namespace CRS\n * @crs L.CRS.Earth\n *\n * Serves as the base for CRS that are global such that they cover the earth.\n * Can only be used as the base for other CRS and cannot be used directly,\n * since it does not have a `code`, `projection` or `transformation`. `distance()` returns\n * meters.\n */\n\nvar Earth = extend({}, CRS, {\n\twrapLng: [-180, 180],\n\n\t// Mean Earth Radius, as recommended for use by\n\t// the International Union of Geodesy and Geophysics,\n\t// see http://rosettacode.org/wiki/Haversine_formula\n\tR: 6371000,\n\n\t// distance between two geographical points using spherical law of cosines approximation\n\tdistance: function (latlng1, latlng2) {\n\t\tvar rad = Math.PI / 180,\n\t\t lat1 = latlng1.lat * rad,\n\t\t lat2 = latlng2.lat * rad,\n\t\t sinDLat = Math.sin((latlng2.lat - latlng1.lat) * rad / 2),\n\t\t sinDLon = Math.sin((latlng2.lng - latlng1.lng) * rad / 2),\n\t\t a = sinDLat * sinDLat + Math.cos(lat1) * Math.cos(lat2) * sinDLon * sinDLon,\n\t\t c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a));\n\t\treturn this.R * c;\n\t}\n});\n\n/*\r\n * @namespace Projection\r\n * @projection L.Projection.SphericalMercator\r\n *\r\n * Spherical Mercator projection — the most common projection for online maps,\r\n * used by almost all free and commercial tile providers. Assumes that Earth is\r\n * a sphere. Used by the `EPSG:3857` CRS.\r\n */\r\n\r\nvar SphericalMercator = {\r\n\r\n\tR: 6378137,\r\n\tMAX_LATITUDE: 85.0511287798,\r\n\r\n\tproject: function (latlng) {\r\n\t\tvar d = Math.PI / 180,\r\n\t\t max = this.MAX_LATITUDE,\r\n\t\t lat = Math.max(Math.min(max, latlng.lat), -max),\r\n\t\t sin = Math.sin(lat * d);\r\n\r\n\t\treturn new Point(\r\n\t\t\tthis.R * latlng.lng * d,\r\n\t\t\tthis.R * Math.log((1 + sin) / (1 - sin)) / 2);\r\n\t},\r\n\r\n\tunproject: function (point) {\r\n\t\tvar d = 180 / Math.PI;\r\n\r\n\t\treturn new LatLng(\r\n\t\t\t(2 * Math.atan(Math.exp(point.y / this.R)) - (Math.PI / 2)) * d,\r\n\t\t\tpoint.x * d / this.R);\r\n\t},\r\n\r\n\tbounds: (function () {\r\n\t\tvar d = 6378137 * Math.PI;\r\n\t\treturn new Bounds([-d, -d], [d, d]);\r\n\t})()\r\n};\n\n/*\r\n * @class Transformation\r\n * @aka L.Transformation\r\n *\r\n * Represents an affine transformation: a set of coefficients `a`, `b`, `c`, `d`\r\n * for transforming a point of a form `(x, y)` into `(a*x + b, c*y + d)` and doing\r\n * the reverse. Used by Leaflet in its projections code.\r\n *\r\n * @example\r\n *\r\n * ```js\r\n * var transformation = L.transformation(2, 5, -1, 10),\r\n * \tp = L.point(1, 2),\r\n * \tp2 = transformation.transform(p), // L.point(7, 8)\r\n * \tp3 = transformation.untransform(p2); // L.point(1, 2)\r\n * ```\r\n */\r\n\r\n\r\n// factory new L.Transformation(a: Number, b: Number, c: Number, d: Number)\r\n// Creates a `Transformation` object with the given coefficients.\r\nfunction Transformation(a, b, c, d) {\r\n\tif (isArray(a)) {\r\n\t\t// use array properties\r\n\t\tthis._a = a[0];\r\n\t\tthis._b = a[1];\r\n\t\tthis._c = a[2];\r\n\t\tthis._d = a[3];\r\n\t\treturn;\r\n\t}\r\n\tthis._a = a;\r\n\tthis._b = b;\r\n\tthis._c = c;\r\n\tthis._d = d;\r\n}\r\n\r\nTransformation.prototype = {\r\n\t// @method transform(point: Point, scale?: Number): Point\r\n\t// Returns a transformed point, optionally multiplied by the given scale.\r\n\t// Only accepts actual `L.Point` instances, not arrays.\r\n\ttransform: function (point, scale) { // (Point, Number) -> Point\r\n\t\treturn this._transform(point.clone(), scale);\r\n\t},\r\n\r\n\t// destructive transform (faster)\r\n\t_transform: function (point, scale) {\r\n\t\tscale = scale || 1;\r\n\t\tpoint.x = scale * (this._a * point.x + this._b);\r\n\t\tpoint.y = scale * (this._c * point.y + this._d);\r\n\t\treturn point;\r\n\t},\r\n\r\n\t// @method untransform(point: Point, scale?: Number): Point\r\n\t// Returns the reverse transformation of the given point, optionally divided\r\n\t// by the given scale. Only accepts actual `L.Point` instances, not arrays.\r\n\tuntransform: function (point, scale) {\r\n\t\tscale = scale || 1;\r\n\t\treturn new Point(\r\n\t\t (point.x / scale - this._b) / this._a,\r\n\t\t (point.y / scale - this._d) / this._c);\r\n\t}\r\n};\r\n\r\n// factory L.transformation(a: Number, b: Number, c: Number, d: Number)\r\n\r\n// @factory L.transformation(a: Number, b: Number, c: Number, d: Number)\r\n// Instantiates a Transformation object with the given coefficients.\r\n\r\n// @alternative\r\n// @factory L.transformation(coefficients: Array): Transformation\r\n// Expects an coefficients array of the form\r\n// `[a: Number, b: Number, c: Number, d: Number]`.\r\n\r\nfunction toTransformation(a, b, c, d) {\r\n\treturn new Transformation(a, b, c, d);\r\n}\n\n/*\r\n * @namespace CRS\r\n * @crs L.CRS.EPSG3857\r\n *\r\n * The most common CRS for online maps, used by almost all free and commercial\r\n * tile providers. Uses Spherical Mercator projection. Set in by default in\r\n * Map's `crs` option.\r\n */\r\n\r\nvar EPSG3857 = extend({}, Earth, {\r\n\tcode: 'EPSG:3857',\r\n\tprojection: SphericalMercator,\r\n\r\n\ttransformation: (function () {\r\n\t\tvar scale = 0.5 / (Math.PI * SphericalMercator.R);\r\n\t\treturn toTransformation(scale, 0.5, -scale, 0.5);\r\n\t}())\r\n});\r\n\r\nvar EPSG900913 = extend({}, EPSG3857, {\r\n\tcode: 'EPSG:900913'\r\n});\n\n// @namespace SVG; @section\n// There are several static functions which can be called without instantiating L.SVG:\n\n// @function create(name: String): SVGElement\n// Returns a instance of [SVGElement](https://developer.mozilla.org/docs/Web/API/SVGElement),\n// corresponding to the class name passed. For example, using 'line' will return\n// an instance of [SVGLineElement](https://developer.mozilla.org/docs/Web/API/SVGLineElement).\nfunction svgCreate(name) {\n\treturn document.createElementNS('http://www.w3.org/2000/svg', name);\n}\n\n// @function pointsToPath(rings: Point[], closed: Boolean): String\n// Generates a SVG path string for multiple rings, with each ring turning\n// into \"M..L..L..\" instructions\nfunction pointsToPath(rings, closed) {\n\tvar str = '',\n\ti, j, len, len2, points, p;\n\n\tfor (i = 0, len = rings.length; i < len; i++) {\n\t\tpoints = rings[i];\n\n\t\tfor (j = 0, len2 = points.length; j < len2; j++) {\n\t\t\tp = points[j];\n\t\t\tstr += (j ? 'L' : 'M') + p.x + ' ' + p.y;\n\t\t}\n\n\t\t// closes the ring for polygons; \"x\" is VML syntax\n\t\tstr += closed ? (svg ? 'z' : 'x') : '';\n\t}\n\n\t// SVG complains about empty path strings\n\treturn str || 'M0 0';\n}\n\n/*\r\n * @namespace Browser\r\n * @aka L.Browser\r\n *\r\n * A namespace with static properties for browser/feature detection used by Leaflet internally.\r\n *\r\n * @example\r\n *\r\n * ```js\r\n * if (L.Browser.ielt9) {\r\n * alert('Upgrade your browser, dude!');\r\n * }\r\n * ```\r\n */\r\n\r\nvar style$1 = document.documentElement.style;\r\n\r\n// @property ie: Boolean; `true` for all Internet Explorer versions (not Edge).\r\nvar ie = 'ActiveXObject' in window;\r\n\r\n// @property ielt9: Boolean; `true` for Internet Explorer versions less than 9.\r\nvar ielt9 = ie && !document.addEventListener;\r\n\r\n// @property edge: Boolean; `true` for the Edge web browser.\r\nvar edge = 'msLaunchUri' in navigator && !('documentMode' in document);\r\n\r\n// @property webkit: Boolean;\r\n// `true` for webkit-based browsers like Chrome and Safari (including mobile versions).\r\nvar webkit = userAgentContains('webkit');\r\n\r\n// @property android: Boolean\r\n// `true` for any browser running on an Android platform.\r\nvar android = userAgentContains('android');\r\n\r\n// @property android23: Boolean; `true` for browsers running on Android 2 or Android 3.\r\nvar android23 = userAgentContains('android 2') || userAgentContains('android 3');\r\n\r\n/* See https://stackoverflow.com/a/17961266 for details on detecting stock Android */\r\nvar webkitVer = parseInt(/WebKit\\/([0-9]+)|$/.exec(navigator.userAgent)[1], 10); // also matches AppleWebKit\r\n// @property androidStock: Boolean; `true` for the Android stock browser (i.e. not Chrome)\r\nvar androidStock = android && userAgentContains('Google') && webkitVer < 537 && !('AudioNode' in window);\r\n\r\n// @property opera: Boolean; `true` for the Opera browser\r\nvar opera = !!window.opera;\r\n\r\n// @property chrome: Boolean; `true` for the Chrome browser.\r\nvar chrome = userAgentContains('chrome');\r\n\r\n// @property gecko: Boolean; `true` for gecko-based browsers like Firefox.\r\nvar gecko = userAgentContains('gecko') && !webkit && !opera && !ie;\r\n\r\n// @property safari: Boolean; `true` for the Safari browser.\r\nvar safari = !chrome && userAgentContains('safari');\r\n\r\nvar phantom = userAgentContains('phantom');\r\n\r\n// @property opera12: Boolean\r\n// `true` for the Opera browser supporting CSS transforms (version 12 or later).\r\nvar opera12 = 'OTransition' in style$1;\r\n\r\n// @property win: Boolean; `true` when the browser is running in a Windows platform\r\nvar win = navigator.platform.indexOf('Win') === 0;\r\n\r\n// @property ie3d: Boolean; `true` for all Internet Explorer versions supporting CSS transforms.\r\nvar ie3d = ie && ('transition' in style$1);\r\n\r\n// @property webkit3d: Boolean; `true` for webkit-based browsers supporting CSS transforms.\r\nvar webkit3d = ('WebKitCSSMatrix' in window) && ('m11' in new window.WebKitCSSMatrix()) && !android23;\r\n\r\n// @property gecko3d: Boolean; `true` for gecko-based browsers supporting CSS transforms.\r\nvar gecko3d = 'MozPerspective' in style$1;\r\n\r\n// @property any3d: Boolean\r\n// `true` for all browsers supporting CSS transforms.\r\nvar any3d = !window.L_DISABLE_3D && (ie3d || webkit3d || gecko3d) && !opera12 && !phantom;\r\n\r\n// @property mobile: Boolean; `true` for all browsers running in a mobile device.\r\nvar mobile = typeof orientation !== 'undefined' || userAgentContains('mobile');\r\n\r\n// @property mobileWebkit: Boolean; `true` for all webkit-based browsers in a mobile device.\r\nvar mobileWebkit = mobile && webkit;\r\n\r\n// @property mobileWebkit3d: Boolean\r\n// `true` for all webkit-based browsers in a mobile device supporting CSS transforms.\r\nvar mobileWebkit3d = mobile && webkit3d;\r\n\r\n// @property msPointer: Boolean\r\n// `true` for browsers implementing the Microsoft touch events model (notably IE10).\r\nvar msPointer = !window.PointerEvent && window.MSPointerEvent;\r\n\r\n// @property pointer: Boolean\r\n// `true` for all browsers supporting [pointer events](https://msdn.microsoft.com/en-us/library/dn433244%28v=vs.85%29.aspx).\r\nvar pointer = !!(window.PointerEvent || msPointer);\r\n\r\n// @property touch: Boolean\r\n// `true` for all browsers supporting [touch events](https://developer.mozilla.org/docs/Web/API/Touch_events).\r\n// This does not necessarily mean that the browser is running in a computer with\r\n// a touchscreen, it only means that the browser is capable of understanding\r\n// touch events.\r\nvar touch = !window.L_NO_TOUCH && (pointer || 'ontouchstart' in window ||\r\n\t\t(window.DocumentTouch && document instanceof window.DocumentTouch));\r\n\r\n// @property mobileOpera: Boolean; `true` for the Opera browser in a mobile device.\r\nvar mobileOpera = mobile && opera;\r\n\r\n// @property mobileGecko: Boolean\r\n// `true` for gecko-based browsers running in a mobile device.\r\nvar mobileGecko = mobile && gecko;\r\n\r\n// @property retina: Boolean\r\n// `true` for browsers on a high-resolution \"retina\" screen or on any screen when browser's display zoom is more than 100%.\r\nvar retina = (window.devicePixelRatio || (window.screen.deviceXDPI / window.screen.logicalXDPI)) > 1;\r\n\r\n\r\n// @property canvas: Boolean\r\n// `true` when the browser supports [`<canvas>`](https://developer.mozilla.org/docs/Web/API/Canvas_API).\r\nvar canvas = (function () {\r\n\treturn !!document.createElement('canvas').getContext;\r\n}());\r\n\r\n// @property svg: Boolean\r\n// `true` when the browser supports [SVG](https://developer.mozilla.org/docs/Web/SVG).\r\nvar svg = !!(document.createElementNS && svgCreate('svg').createSVGRect);\r\n\r\n// @property vml: Boolean\r\n// `true` if the browser supports [VML](https://en.wikipedia.org/wiki/Vector_Markup_Language).\r\nvar vml = !svg && (function () {\r\n\ttry {\r\n\t\tvar div = document.createElement('div');\r\n\t\tdiv.innerHTML = '<v:shape adj=\"1\"/>';\r\n\r\n\t\tvar shape = div.firstChild;\r\n\t\tshape.style.behavior = 'url(#default#VML)';\r\n\r\n\t\treturn shape && (typeof shape.adj === 'object');\r\n\r\n\t} catch (e) {\r\n\t\treturn false;\r\n\t}\r\n}());\r\n\r\n\r\nfunction userAgentContains(str) {\r\n\treturn navigator.userAgent.toLowerCase().indexOf(str) >= 0;\r\n}\r\n\n\nvar Browser = (Object.freeze || Object)({\n\tie: ie,\n\tielt9: ielt9,\n\tedge: edge,\n\twebkit: webkit,\n\tandroid: android,\n\tandroid23: android23,\n\tandroidStock: androidStock,\n\topera: opera,\n\tchrome: chrome,\n\tgecko: gecko,\n\tsafari: safari,\n\tphantom: phantom,\n\topera12: opera12,\n\twin: win,\n\tie3d: ie3d,\n\twebkit3d: webkit3d,\n\tgecko3d: gecko3d,\n\tany3d: any3d,\n\tmobile: mobile,\n\tmobileWebkit: mobileWebkit,\n\tmobileWebkit3d: mobileWebkit3d,\n\tmsPointer: msPointer,\n\tpointer: pointer,\n\ttouch: touch,\n\tmobileOpera: mobileOpera,\n\tmobileGecko: mobileGecko,\n\tretina: retina,\n\tcanvas: canvas,\n\tsvg: svg,\n\tvml: vml\n});\n\n/*\n * Extends L.DomEvent to provide touch support for Internet Explorer and Windows-based devices.\n */\n\n\nvar POINTER_DOWN = msPointer ? 'MSPointerDown' : 'pointerdown';\nvar POINTER_MOVE = msPointer ? 'MSPointerMove' : 'pointermove';\nvar POINTER_UP = msPointer ? 'MSPointerUp' : 'pointerup';\nvar POINTER_CANCEL = msPointer ? 'MSPointerCancel' : 'pointercancel';\nvar TAG_WHITE_LIST = ['INPUT', 'SELECT', 'OPTION'];\n\nvar _pointers = {};\nvar _pointerDocListener = false;\n\n// DomEvent.DoubleTap needs to know about this\nvar _pointersCount = 0;\n\n// Provides a touch events wrapper for (ms)pointer events.\n// ref http://www.w3.org/TR/pointerevents/ https://www.w3.org/Bugs/Public/show_bug.cgi?id=22890\n\nfunction addPointerListener(obj, type, handler, id) {\n\tif (type === 'touchstart') {\n\t\t_addPointerStart(obj, handler, id);\n\n\t} else if (type === 'touchmove') {\n\t\t_addPointerMove(obj, handler, id);\n\n\t} else if (type === 'touchend') {\n\t\t_addPointerEnd(obj, handler, id);\n\t}\n\n\treturn this;\n}\n\nfunction removePointerListener(obj, type, id) {\n\tvar handler = obj['_leaflet_' + type + id];\n\n\tif (type === 'touchstart') {\n\t\tobj.removeEventListener(POINTER_DOWN, handler, false);\n\n\t} else if (type === 'touchmove') {\n\t\tobj.removeEventListener(POINTER_MOVE, handler, false);\n\n\t} else if (type === 'touchend') {\n\t\tobj.removeEventListener(POINTER_UP, handler, false);\n\t\tobj.removeEventListener(POINTER_CANCEL, handler, false);\n\t}\n\n\treturn this;\n}\n\nfunction _addPointerStart(obj, handler, id) {\n\tvar onDown = bind(function (e) {\n\t\tif (e.pointerType !== 'mouse' && e.MSPOINTER_TYPE_MOUSE && e.pointerType !== e.MSPOINTER_TYPE_MOUSE) {\n\t\t\t// In IE11, some touch events needs to fire for form controls, or\n\t\t\t// the controls will stop working. We keep a whitelist of tag names that\n\t\t\t// need these events. For other target tags, we prevent default on the event.\n\t\t\tif (TAG_WHITE_LIST.indexOf(e.target.tagName) < 0) {\n\t\t\t\tpreventDefault(e);\n\t\t\t} else {\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\t_handlePointer(e, handler);\n\t});\n\n\tobj['_leaflet_touchstart' + id] = onDown;\n\tobj.addEventListener(POINTER_DOWN, onDown, false);\n\n\t// need to keep track of what pointers and how many are active to provide e.touches emulation\n\tif (!_pointerDocListener) {\n\t\t// we listen documentElement as any drags that end by moving the touch off the screen get fired there\n\t\tdocument.documentElement.addEventListener(POINTER_DOWN, _globalPointerDown, true);\n\t\tdocument.documentElement.addEventListener(POINTER_MOVE, _globalPointerMove, true);\n\t\tdocument.documentElement.addEventListener(POINTER_UP, _globalPointerUp, true);\n\t\tdocument.documentElement.addEventListener(POINTER_CANCEL, _globalPointerUp, true);\n\n\t\t_pointerDocListener = true;\n\t}\n}\n\nfunction _globalPointerDown(e) {\n\t_pointers[e.pointerId] = e;\n\t_pointersCount++;\n}\n\nfunction _globalPointerMove(e) {\n\tif (_pointers[e.pointerId]) {\n\t\t_pointers[e.pointerId] = e;\n\t}\n}\n\nfunction _globalPointerUp(e) {\n\tdelete _pointers[e.pointerId];\n\t_pointersCount--;\n}\n\nfunction _handlePointer(e, handler) {\n\te.touches = [];\n\tfor (var i in _pointers) {\n\t\te.touches.push(_pointers[i]);\n\t}\n\te.changedTouches = [e];\n\n\thandler(e);\n}\n\nfunction _addPointerMove(obj, handler, id) {\n\tvar onMove = function (e) {\n\t\t// don't fire touch moves when mouse isn't down\n\t\tif ((e.pointerType === e.MSPOINTER_TYPE_MOUSE || e.pointerType === 'mouse') && e.buttons === 0) { return; }\n\n\t\t_handlePointer(e, handler);\n\t};\n\n\tobj['_leaflet_touchmove' + id] = onMove;\n\tobj.addEventListener(POINTER_MOVE, onMove, false);\n}\n\nfunction _addPointerEnd(obj, handler, id) {\n\tvar onUp = function (e) {\n\t\t_handlePointer(e, handler);\n\t};\n\n\tobj['_leaflet_touchend' + id] = onUp;\n\tobj.addEventListener(POINTER_UP, onUp, false);\n\tobj.addEventListener(POINTER_CANCEL, onUp, false);\n}\n\n/*\r\n * Extends the event handling code with double tap support for mobile browsers.\r\n */\r\n\r\nvar _touchstart = msPointer ? 'MSPointerDown' : pointer ? 'pointerdown' : 'touchstart';\r\nvar _touchend = msPointer ? 'MSPointerUp' : pointer ? 'pointerup' : 'touchend';\r\nvar _pre = '_leaflet_';\r\n\r\n// inspired by Zepto touch code by Thomas Fuchs\r\nfunction addDoubleTapListener(obj, handler, id) {\r\n\tvar last, touch$$1,\r\n\t doubleTap = false,\r\n\t delay = 250;\r\n\r\n\tfunction onTouchStart(e) {\r\n\t\tvar count;\r\n\r\n\t\tif (pointer) {\r\n\t\t\tif ((!edge) || e.pointerType === 'mouse') { return; }\r\n\t\t\tcount = _pointersCount;\r\n\t\t} else {\r\n\t\t\tcount = e.touches.length;\r\n\t\t}\r\n\r\n\t\tif (count > 1) { return; }\r\n\r\n\t\tvar now = Date.now(),\r\n\t\t delta = now - (last || now);\r\n\r\n\t\ttouch$$1 = e.touches ? e.touches[0] : e;\r\n\t\tdoubleTap = (delta > 0 && delta <= delay);\r\n\t\tlast = now;\r\n\t}\r\n\r\n\tfunction onTouchEnd(e) {\r\n\t\tif (doubleTap && !touch$$1.cancelBubble) {\r\n\t\t\tif (pointer) {\r\n\t\t\t\tif ((!edge) || e.pointerType === 'mouse') { return; }\r\n\t\t\t\t// work around .type being readonly with MSPointer* events\r\n\t\t\t\tvar newTouch = {},\r\n\t\t\t\t prop, i;\r\n\r\n\t\t\t\tfor (i in touch$$1) {\r\n\t\t\t\t\tprop = touch$$1[i];\r\n\t\t\t\t\tnewTouch[i] = prop && prop.bind ? prop.bind(touch$$1) : prop;\r\n\t\t\t\t}\r\n\t\t\t\ttouch$$1 = newTouch;\r\n\t\t\t}\r\n\t\t\ttouch$$1.type = 'dblclick';\r\n\t\t\thandler(touch$$1);\r\n\t\t\tlast = null;\r\n\t\t}\r\n\t}\r\n\r\n\tobj[_pre + _touchstart + id] = onTouchStart;\r\n\tobj[_pre + _touchend + id] = onTouchEnd;\r\n\tobj[_pre + 'dblclick' + id] = handler;\r\n\r\n\tobj.addEventListener(_touchstart, onTouchStart, false);\r\n\tobj.addEventListener(_touchend, onTouchEnd, false);\r\n\r\n\t// On some platforms (notably, chrome<55 on win10 + touchscreen + mouse),\r\n\t// the browser doesn't fire touchend/pointerup events but does fire\r\n\t// native dblclicks. See #4127.\r\n\t// Edge 14 also fires native dblclicks, but only for pointerType mouse, see #5180.\r\n\tobj.addEventListener('dblclick', handler, false);\r\n\r\n\treturn this;\r\n}\r\n\r\nfunction removeDoubleTapListener(obj, id) {\r\n\tvar touchstart = obj[_pre + _touchstart + id],\r\n\t touchend = obj[_pre + _touchend + id],\r\n\t dblclick = obj[_pre + 'dblclick' + id];\r\n\r\n\tobj.removeEventListener(_touchstart, touchstart, false);\r\n\tobj.removeEventListener(_touchend, touchend, false);\r\n\tif (!edge) {\r\n\t\tobj.removeEventListener('dblclick', dblclick, false);\r\n\t}\r\n\r\n\treturn this;\r\n}\n\n/*\r\n * @namespace DomUtil\r\n *\r\n * Utility functions to work with the [DOM](https://developer.mozilla.org/docs/Web/API/Document_Object_Model)\r\n * tree, used by Leaflet internally.\r\n *\r\n * Most functions expecting or returning a `HTMLElement` also work for\r\n * SVG elements. The only difference is that classes refer to CSS classes\r\n * in HTML and SVG classes in SVG.\r\n */\r\n\r\n\r\n// @property TRANSFORM: String\r\n// Vendor-prefixed transform style name (e.g. `'webkitTransform'` for WebKit).\r\nvar TRANSFORM = testProp(\r\n\t['transform', 'WebkitTransform', 'OTransform', 'MozTransform', 'msTransform']);\r\n\r\n// webkitTransition comes first because some browser versions that drop vendor prefix don't do\r\n// the same for the transitionend event, in particular the Android 4.1 stock browser\r\n\r\n// @property TRANSITION: String\r\n// Vendor-prefixed transition style name.\r\nvar TRANSITION = testProp(\r\n\t['webkitTransition', 'transition', 'OTransition', 'MozTransition', 'msTransition']);\r\n\r\n// @property TRANSITION_END: String\r\n// Vendor-prefixed transitionend event name.\r\nvar TRANSITION_END =\r\n\tTRANSITION === 'webkitTransition' || TRANSITION === 'OTransition' ? TRANSITION + 'End' : 'transitionend';\r\n\r\n\r\n// @function get(id: String|HTMLElement): HTMLElement\r\n// Returns an element given its DOM id, or returns the element itself\r\n// if it was passed directly.\r\nfunction get(id) {\r\n\treturn typeof id === 'string' ? document.getElementById(id) : id;\r\n}\r\n\r\n// @function getStyle(el: HTMLElement, styleAttrib: String): String\r\n// Returns the value for a certain style attribute on an element,\r\n// including computed values or values set through CSS.\r\nfunction getStyle(el, style) {\r\n\tvar value = el.style[style] || (el.currentStyle && el.currentStyle[style]);\r\n\r\n\tif ((!value || value === 'auto') && document.defaultView) {\r\n\t\tvar css = document.defaultView.getComputedStyle(el, null);\r\n\t\tvalue = css ? css[style] : null;\r\n\t}\r\n\treturn value === 'auto' ? null : value;\r\n}\r\n\r\n// @function create(tagName: String, className?: String, container?: HTMLElement): HTMLElement\r\n// Creates an HTML element with `tagName`, sets its class to `className`, and optionally appends it to `container` element.\r\nfunction create$1(tagName, className, container) {\r\n\tvar el = document.createElement(tagName);\r\n\tel.className = className || '';\r\n\r\n\tif (container) {\r\n\t\tcontainer.appendChild(el);\r\n\t}\r\n\treturn el;\r\n}\r\n\r\n// @function remove(el: HTMLElement)\r\n// Removes `el` from its parent element\r\nfunction remove(el) {\r\n\tvar parent = el.parentNode;\r\n\tif (parent) {\r\n\t\tparent.removeChild(el);\r\n\t}\r\n}\r\n\r\n// @function empty(el: HTMLElement)\r\n// Removes all of `el`'s children elements from `el`\r\nfunction empty(el) {\r\n\twhile (el.firstChild) {\r\n\t\tel.removeChild(el.firstChild);\r\n\t}\r\n}\r\n\r\n// @function toFront(el: HTMLElement)\r\n// Makes `el` the last child of its parent, so it renders in front of the other children.\r\nfunction toFront(el) {\r\n\tvar parent = el.parentNode;\r\n\tif (parent.lastChild !== el) {\r\n\t\tparent.appendChild(el);\r\n\t}\r\n}\r\n\r\n// @function toBack(el: HTMLElement)\r\n// Makes `el` the first child of its parent, so it renders behind the other children.\r\nfunction toBack(el) {\r\n\tvar parent = el.parentNode;\r\n\tif (parent.firstChild !== el) {\r\n\t\tparent.insertBefore(el, parent.firstChild);\r\n\t}\r\n}\r\n\r\n// @function hasClass(el: HTMLElement, name: String): Boolean\r\n// Returns `true` if the element's class attribute contains `name`.\r\nfunction hasClass(el, name) {\r\n\tif (el.classList !== undefined) {\r\n\t\treturn el.classList.contains(name);\r\n\t}\r\n\tvar className = getClass(el);\r\n\treturn className.length > 0 && new RegExp('(^|\\\\s)' + name + '(\\\\s|$)').test(className);\r\n}\r\n\r\n// @function addClass(el: HTMLElement, name: String)\r\n// Adds `name` to the element's class attribute.\r\nfunction addClass(el, name) {\r\n\tif (el.classList !== undefined) {\r\n\t\tvar classes = splitWords(name);\r\n\t\tfor (var i = 0, len = classes.length; i < len; i++) {\r\n\t\t\tel.classList.add(classes[i]);\r\n\t\t}\r\n\t} else if (!hasClass(el, name)) {\r\n\t\tvar className = getClass(el);\r\n\t\tsetClass(el, (className ? className + ' ' : '') + name);\r\n\t}\r\n}\r\n\r\n// @function removeClass(el: HTMLElement, name: String)\r\n// Removes `name` from the element's class attribute.\r\nfunction removeClass(el, name) {\r\n\tif (el.classList !== undefined) {\r\n\t\tel.classList.remove(name);\r\n\t} else {\r\n\t\tsetClass(el, trim((' ' + getClass(el) + ' ').replace(' ' + name + ' ', ' ')));\r\n\t}\r\n}\r\n\r\n// @function setClass(el: HTMLElement, name: String)\r\n// Sets the element's class.\r\nfunction setClass(el, name) {\r\n\tif (el.className.baseVal === undefined) {\r\n\t\tel.className = name;\r\n\t} else {\r\n\t\t// in case of SVG element\r\n\t\tel.className.baseVal = name;\r\n\t}\r\n}\r\n\r\n// @function getClass(el: HTMLElement): String\r\n// Returns the element's class.\r\nfunction getClass(el) {\r\n\treturn el.className.baseVal === undefined ? el.className : el.className.baseVal;\r\n}\r\n\r\n// @function setOpacity(el: HTMLElement, opacity: Number)\r\n// Set the opacity of an element (including old IE support).\r\n// `opacity` must be a number from `0` to `1`.\r\nfunction setOpacity(el, value) {\r\n\tif ('opacity' in el.style) {\r\n\t\tel.style.opacity = value;\r\n\t} else if ('filter' in el.style) {\r\n\t\t_setOpacityIE(el, value);\r\n\t}\r\n}\r\n\r\nfunction _setOpacityIE(el, value) {\r\n\tvar filter = false,\r\n\t filterName = 'DXImageTransform.Microsoft.Alpha';\r\n\r\n\t// filters collection throws an error if we try to retrieve a filter that doesn't exist\r\n\ttry {\r\n\t\tfilter = el.filters.item(filterName);\r\n\t} catch (e) {\r\n\t\t// don't set opacity to 1 if we haven't already set an opacity,\r\n\t\t// it isn't needed and breaks transparent pngs.\r\n\t\tif (value === 1) { return; }\r\n\t}\r\n\r\n\tvalue = Math.round(value * 100);\r\n\r\n\tif (filter) {\r\n\t\tfilter.Enabled = (value !== 100);\r\n\t\tfilter.Opacity = value;\r\n\t} else {\r\n\t\tel.style.filter += ' progid:' + filterName + '(opacity=' + value + ')';\r\n\t}\r\n}\r\n\r\n// @function testProp(props: String[]): String|false\r\n// Goes through the array of style names and returns the first name\r\n// that is a valid style name for an element. If no such name is found,\r\n// it returns false. Useful for vendor-prefixed styles like `transform`.\r\nfunction testProp(props) {\r\n\tvar style = document.documentElement.style;\r\n\r\n\tfor (var i = 0; i < props.length; i++) {\r\n\t\tif (props[i] in style) {\r\n\t\t\treturn props[i];\r\n\t\t}\r\n\t}\r\n\treturn false;\r\n}\r\n\r\n// @function setTransform(el: HTMLElement, offset: Point, scale?: Number)\r\n// Resets the 3D CSS transform of `el` so it is translated by `offset` pixels\r\n// and optionally scaled by `scale`. Does not have an effect if the\r\n// browser doesn't support 3D CSS transforms.\r\nfunction setTransform(el, offset, scale) {\r\n\tvar pos = offset || new Point(0, 0);\r\n\r\n\tel.style[TRANSFORM] =\r\n\t\t(ie3d ?\r\n\t\t\t'translate(' + pos.x + 'px,' + pos.y + 'px)' :\r\n\t\t\t'translate3d(' + pos.x + 'px,' + pos.y + 'px,0)') +\r\n\t\t(scale ? ' scale(' + scale + ')' : '');\r\n}\r\n\r\n// @function setPosition(el: HTMLElement, position: Point)\r\n// Sets the position of `el` to coordinates specified by `position`,\r\n// using CSS translate or top/left positioning depending on the browser\r\n// (used by Leaflet internally to position its layers).\r\nfunction setPosition(el, point) {\r\n\r\n\t/*eslint-disable */\r\n\tel._leaflet_pos = point;\r\n\t/* eslint-enable */\r\n\r\n\tif (any3d) {\r\n\t\tsetTransform(el, point);\r\n\t} else {\r\n\t\tel.style.left = point.x + 'px';\r\n\t\tel.style.top = point.y + 'px';\r\n\t}\r\n}\r\n\r\n// @function getPosition(el: HTMLElement): Point\r\n// Returns the coordinates of an element previously positioned with setPosition.\r\nfunction getPosition(el) {\r\n\t// this method is only used for elements previously positioned using setPosition,\r\n\t// so it's safe to cache the position for performance\r\n\r\n\treturn el._leaflet_pos || new Point(0, 0);\r\n}\r\n\r\n// @function disableTextSelection()\r\n// Prevents the user from generating `selectstart` DOM events, usually generated\r\n// when the user drags the mouse through a page with text. Used internally\r\n// by Leaflet to override the behaviour of any click-and-drag interaction on\r\n// the map. Affects drag interactions on the whole document.\r\n\r\n// @function enableTextSelection()\r\n// Cancels the effects of a previous [`L.DomUtil.disableTextSelection`](#domutil-disabletextselection).\r\nvar disableTextSelection;\r\nvar enableTextSelection;\r\nvar _userSelect;\r\nif ('onselectstart' in document) {\r\n\tdisableTextSelection = function () {\r\n\t\ton(window, 'selectstart', preventDefault);\r\n\t};\r\n\tenableTextSelection = function () {\r\n\t\toff(window, 'selectstart', preventDefault);\r\n\t};\r\n} else {\r\n\tvar userSelectProperty = testProp(\r\n\t\t['userSelect', 'WebkitUserSelect', 'OUserSelect', 'MozUserSelect', 'msUserSelect']);\r\n\r\n\tdisableTextSelection = function () {\r\n\t\tif (userSelectProperty) {\r\n\t\t\tvar style = document.documentElement.style;\r\n\t\t\t_userSelect = style[userSelectProperty];\r\n\t\t\tstyle[userSelectProperty] = 'none';\r\n\t\t}\r\n\t};\r\n\tenableTextSelection = function () {\r\n\t\tif (userSelectProperty) {\r\n\t\t\tdocument.documentElement.style[userSelectProperty] = _userSelect;\r\n\t\t\t_userSelect = undefined;\r\n\t\t}\r\n\t};\r\n}\r\n\r\n// @function disableImageDrag()\r\n// As [`L.DomUtil.disableTextSelection`](#domutil-disabletextselection), but\r\n// for `dragstart` DOM events, usually generated when the user drags an image.\r\nfunction disableImageDrag() {\r\n\ton(window, 'dragstart', preventDefault);\r\n}\r\n\r\n// @function enableImageDrag()\r\n// Cancels the effects of a previous [`L.DomUtil.disableImageDrag`](#domutil-disabletextselection).\r\nfunction enableImageDrag() {\r\n\toff(window, 'dragstart', preventDefault);\r\n}\r\n\r\nvar _outlineElement;\nvar _outlineStyle;\r\n// @function preventOutline(el: HTMLElement)\r\n// Makes the [outline](https://developer.mozilla.org/docs/Web/CSS/outline)\r\n// of the element `el` invisible. Used internally by Leaflet to prevent\r\n// focusable elements from displaying an outline when the user performs a\r\n// drag interaction on them.\r\nfunction preventOutline(element) {\r\n\twhile (element.tabIndex === -1) {\r\n\t\telement = element.parentNode;\r\n\t}\r\n\tif (!element.style) { return; }\r\n\trestoreOutline();\r\n\t_outlineElement = element;\r\n\t_outlineStyle = element.style.outline;\r\n\telement.style.outline = 'none';\r\n\ton(window, 'keydown', restoreOutline);\r\n}\r\n\r\n// @function restoreOutline()\r\n// Cancels the effects of a previous [`L.DomUtil.preventOutline`]().\r\nfunction restoreOutline() {\r\n\tif (!_outlineElement) { return; }\r\n\t_outlineElement.style.outline = _outlineStyle;\r\n\t_outlineElement = undefined;\r\n\t_outlineStyle = undefined;\r\n\toff(window, 'keydown', restoreOutline);\r\n}\r\n\r\n// @function getSizedParentNode(el: HTMLElement): HTMLElement\r\n// Finds the closest parent node which size (width and height) is not null.\r\nfunction getSizedParentNode(element) {\r\n\tdo {\r\n\t\telement = element.parentNode;\r\n\t} while ((!element.offsetWidth || !element.offsetHeight) && element !== document.body);\r\n\treturn element;\r\n}\r\n\r\n// @function getScale(el: HTMLElement): Object\r\n// Computes the CSS scale currently applied on the element.\r\n// Returns an object with `x` and `y` members as horizontal and vertical scales respectively,\r\n// and `boundingClientRect` as the result of [`getBoundingClientRect()`](https://developer.mozilla.org/en-US/docs/Web/API/Element/getBoundingClientRect).\r\nfunction getScale(element) {\r\n\tvar rect = element.getBoundingClientRect(); // Read-only in old browsers.\r\n\r\n\treturn {\r\n\t\tx: rect.width / element.offsetWidth || 1,\r\n\t\ty: rect.height / element.offsetHeight || 1,\r\n\t\tboundingClientRect: rect\r\n\t};\r\n}\r\n\n\nvar DomUtil = (Object.freeze || Object)({\n\tTRANSFORM: TRANSFORM,\n\tTRANSITION: TRANSITION,\n\tTRANSITION_END: TRANSITION_END,\n\tget: get,\n\tgetStyle: getStyle,\n\tcreate: create$1,\n\tremove: remove,\n\tempty: empty,\n\ttoFront: toFront,\n\ttoBack: toBack,\n\thasClass: hasClass,\n\taddClass: addClass,\n\tremoveClass: removeClass,\n\tsetClass: setClass,\n\tgetClass: getClass,\n\tsetOpacity: setOpacity,\n\ttestProp: testProp,\n\tsetTransform: setTransform,\n\tsetPosition: setPosition,\n\tgetPosition: getPosition,\n\tdisableTextSelection: disableTextSelection,\n\tenableTextSelection: enableTextSelection,\n\tdisableImageDrag: disableImageDrag,\n\tenableImageDrag: enableImageDrag,\n\tpreventOutline: preventOutline,\n\trestoreOutline: restoreOutline,\n\tgetSizedParentNode: getSizedParentNode,\n\tgetScale: getScale\n});\n\n/*\r\n * @namespace DomEvent\r\n * Utility functions to work with the [DOM events](https://developer.mozilla.org/docs/Web/API/Event), used by Leaflet internally.\r\n */\r\n\r\n// Inspired by John Resig, Dean Edwards and YUI addEvent implementations.\r\n\r\n// @function on(el: HTMLElement, types: String, fn: Function, context?: Object): this\r\n// Adds a listener function (`fn`) to a particular DOM event type of the\r\n// element `el`. You can optionally specify the context of the listener\r\n// (object the `this` keyword will point to). You can also pass several\r\n// space-separated types (e.g. `'click dblclick'`).\r\n\r\n// @alternative\r\n// @function on(el: HTMLElement, eventMap: Object, context?: Object): this\r\n// Adds a set of type/listener pairs, e.g. `{click: onClick, mousemove: onMouseMove}`\r\nfunction on(obj, types, fn, context) {\r\n\r\n\tif (typeof types === 'object') {\r\n\t\tfor (var type in types) {\r\n\t\t\taddOne(obj, type, types[type], fn);\r\n\t\t}\r\n\t} else {\r\n\t\ttypes = splitWords(types);\r\n\r\n\t\tfor (var i = 0, len = types.length; i < len; i++) {\r\n\t\t\taddOne(obj, types[i], fn, context);\r\n\t\t}\r\n\t}\r\n\r\n\treturn this;\r\n}\r\n\r\nvar eventsKey = '_leaflet_events';\r\n\r\n// @function off(el: HTMLElement, types: String, fn: Function, context?: Object): this\r\n// Removes a previously added listener function.\r\n// Note that if you passed a custom context to on, you must pass the same\r\n// context to `off` in order to remove the listener.\r\n\r\n// @alternative\r\n// @function off(el: HTMLElement, eventMap: Object, context?: Object): this\r\n// Removes a set of type/listener pairs, e.g. `{click: onClick, mousemove: onMouseMove}`\r\nfunction off(obj, types, fn, context) {\r\n\r\n\tif (typeof types === 'object') {\r\n\t\tfor (var type in types) {\r\n\t\t\tremoveOne(obj, type, types[type], fn);\r\n\t\t}\r\n\t} else if (types) {\r\n\t\ttypes = splitWords(types);\r\n\r\n\t\tfor (var i = 0, len = types.length; i < len; i++) {\r\n\t\t\tremoveOne(obj, types[i], fn, context);\r\n\t\t}\r\n\t} else {\r\n\t\tfor (var j in obj[eventsKey]) {\r\n\t\t\tremoveOne(obj, j, obj[eventsKey][j]);\r\n\t\t}\r\n\t\tdelete obj[eventsKey];\r\n\t}\r\n\r\n\treturn this;\r\n}\r\n\r\nfunction addOne(obj, type, fn, context) {\r\n\tvar id = type + stamp(fn) + (context ? '_' + stamp(context) : '');\r\n\r\n\tif (obj[eventsKey] && obj[eventsKey][id]) { return this; }\r\n\r\n\tvar handler = function (e) {\r\n\t\treturn fn.call(context || obj, e || window.event);\r\n\t};\r\n\r\n\tvar originalHandler = handler;\r\n\r\n\tif (pointer && type.indexOf('touch') === 0) {\r\n\t\t// Needs DomEvent.Pointer.js\r\n\t\taddPointerListener(obj, type, handler, id);\r\n\r\n\t} else if (touch && (type === 'dblclick') && addDoubleTapListener &&\r\n\t !(pointer && chrome)) {\r\n\t\t// Chrome >55 does not need the synthetic dblclicks from addDoubleTapListener\r\n\t\t// See #5180\r\n\t\taddDoubleTapListener(obj, handler, id);\r\n\r\n\t} else if ('addEventListener' in obj) {\r\n\r\n\t\tif (type === 'mousewheel') {\r\n\t\t\tobj.addEventListener('onwheel' in obj ? 'wheel' : 'mousewheel', handler, false);\r\n\r\n\t\t} else if ((type === 'mouseenter') || (type === 'mouseleave')) {\r\n\t\t\thandler = function (e) {\r\n\t\t\t\te = e || window.event;\r\n\t\t\t\tif (isExternalTarget(obj, e)) {\r\n\t\t\t\t\toriginalHandler(e);\r\n\t\t\t\t}\r\n\t\t\t};\r\n\t\t\tobj.addEventListener(type === 'mouseenter' ? 'mouseover' : 'mouseout', handler, false);\r\n\r\n\t\t} else {\r\n\t\t\tif (type === 'click' && android) {\r\n\t\t\t\thandler = function (e) {\r\n\t\t\t\t\tfilterClick(e, originalHandler);\r\n\t\t\t\t};\r\n\t\t\t}\r\n\t\t\tobj.addEventListener(type, handler, false);\r\n\t\t}\r\n\r\n\t} else if ('attachEvent' in obj) {\r\n\t\tobj.attachEvent('on' + type, handler);\r\n\t}\r\n\r\n\tobj[eventsKey] = obj[eventsKey] || {};\r\n\tobj[eventsKey][id] = handler;\r\n}\r\n\r\nfunction removeOne(obj, type, fn, context) {\r\n\r\n\tvar id = type + stamp(fn) + (context ? '_' + stamp(context) : ''),\r\n\t handler = obj[eventsKey] && obj[eventsKey][id];\r\n\r\n\tif (!handler) { return this; }\r\n\r\n\tif (pointer && type.indexOf('touch') === 0) {\r\n\t\tremovePointerListener(obj, type, id);\r\n\r\n\t} else if (touch && (type === 'dblclick') && removeDoubleTapListener &&\r\n\t !(pointer && chrome)) {\r\n\t\tremoveDoubleTapListener(obj, id);\r\n\r\n\t} else if ('removeEventListener' in obj) {\r\n\r\n\t\tif (type === 'mousewheel') {\r\n\t\t\tobj.removeEventListener('onwheel' in obj ? 'wheel' : 'mousewheel', handler, false);\r\n\r\n\t\t} else {\r\n\t\t\tobj.removeEventListener(\r\n\t\t\t\ttype === 'mouseenter' ? 'mouseover' :\r\n\t\t\t\ttype === 'mouseleave' ? 'mouseout' : type, handler, false);\r\n\t\t}\r\n\r\n\t} else if ('detachEvent' in obj) {\r\n\t\tobj.detachEvent('on' + type, handler);\r\n\t}\r\n\r\n\tobj[eventsKey][id] = null;\r\n}\r\n\r\n// @function stopPropagation(ev: DOMEvent): this\r\n// Stop the given event from propagation to parent elements. Used inside the listener functions:\r\n// ```js\r\n// L.DomEvent.on(div, 'click', function (ev) {\r\n// \tL.DomEvent.stopPropagation(ev);\r\n// });\r\n// ```\r\nfunction stopPropagation(e) {\r\n\r\n\tif (e.stopPropagation) {\r\n\t\te.stopPropagation();\r\n\t} else if (e.originalEvent) { // In case of Leaflet event.\r\n\t\te.originalEvent._stopped = true;\r\n\t} else {\r\n\t\te.cancelBubble = true;\r\n\t}\r\n\tskipped(e);\r\n\r\n\treturn this;\r\n}\r\n\r\n// @function disableScrollPropagation(el: HTMLElement): this\r\n// Adds `stopPropagation` to the element's `'mousewheel'` events (plus browser variants).\r\nfunction disableScrollPropagation(el) {\r\n\taddOne(el, 'mousewheel', stopPropagation);\r\n\treturn this;\r\n}\r\n\r\n// @function disableClickPropagation(el: HTMLElement): this\r\n// Adds `stopPropagation` to the element's `'click'`, `'doubleclick'`,\r\n// `'mousedown'` and `'touchstart'` events (plus browser variants).\r\nfunction disableClickPropagation(el) {\r\n\ton(el, 'mousedown touchstart dblclick', stopPropagation);\r\n\taddOne(el, 'click', fakeStop);\r\n\treturn this;\r\n}\r\n\r\n// @function preventDefault(ev: DOMEvent): this\r\n// Prevents the default action of the DOM Event `ev` from happening (such as\r\n// following a link in the href of the a element, or doing a POST request\r\n// with page reload when a `<form>` is submitted).\r\n// Use it inside listener functions.\r\nfunction preventDefault(e) {\r\n\tif (e.preventDefault) {\r\n\t\te.preventDefault();\r\n\t} else {\r\n\t\te.returnValue = false;\r\n\t}\r\n\treturn this;\r\n}\r\n\r\n// @function stop(ev: DOMEvent): this\r\n// Does `stopPropagation` and `preventDefault` at the same time.\r\nfunction stop(e) {\r\n\tpreventDefault(e);\r\n\tstopPropagation(e);\r\n\treturn this;\r\n}\r\n\r\n// @function getMousePosition(ev: DOMEvent, container?: HTMLElement): Point\r\n// Gets normalized mouse position from a DOM event relative to the\r\n// `container` (border excluded) or to the whole page if not specified.\r\nfunction getMousePosition(e, container) {\r\n\tif (!container) {\r\n\t\treturn new Point(e.clientX, e.clientY);\r\n\t}\r\n\r\n\tvar scale = getScale(container),\r\n\t offset = scale.boundingClientRect; // left and top values are in page scale (like the event clientX/Y)\r\n\r\n\treturn new Point(\r\n\t\t// offset.left/top values are in page scale (like clientX/Y),\r\n\t\t// whereas clientLeft/Top (border width) values are the original values (before CSS scale applies).\r\n\t\t(e.clientX - offset.left) / scale.x - container.clientLeft,\r\n\t\t(e.clientY - offset.top) / scale.y - container.clientTop\r\n\t);\r\n}\r\n\r\n// Chrome on Win scrolls double the pixels as in other platforms (see #4538),\r\n// and Firefox scrolls device pixels, not CSS pixels\r\nvar wheelPxFactor =\r\n\t(win && chrome) ? 2 * window.devicePixelRatio :\r\n\tgecko ? window.devicePixelRatio : 1;\r\n\r\n// @function getWheelDelta(ev: DOMEvent): Number\r\n// Gets normalized wheel delta from a mousewheel DOM event, in vertical\r\n// pixels scrolled (negative if scrolling down).\r\n// Events from pointing devices without precise scrolling are mapped to\r\n// a best guess of 60 pixels.\r\nfunction getWheelDelta(e) {\r\n\treturn (edge) ? e.wheelDeltaY / 2 : // Don't trust window-geometry-based delta\r\n\t (e.deltaY && e.deltaMode === 0) ? -e.deltaY / wheelPxFactor : // Pixels\r\n\t (e.deltaY && e.deltaMode === 1) ? -e.deltaY * 20 : // Lines\r\n\t (e.deltaY && e.deltaMode === 2) ? -e.deltaY * 60 : // Pages\r\n\t (e.deltaX || e.deltaZ) ? 0 :\t// Skip horizontal/depth wheel events\r\n\t e.wheelDelta ? (e.wheelDeltaY || e.wheelDelta) / 2 : // Legacy IE pixels\r\n\t (e.detail && Math.abs(e.detail) < 32765) ? -e.detail * 20 : // Legacy Moz lines\r\n\t e.detail ? e.detail / -32765 * 60 : // Legacy Moz pages\r\n\t 0;\r\n}\r\n\r\nvar skipEvents = {};\r\n\r\nfunction fakeStop(e) {\r\n\t// fakes stopPropagation by setting a special event flag, checked/reset with skipped(e)\r\n\tskipEvents[e.type] = true;\r\n}\r\n\r\nfunction skipped(e) {\r\n\tvar events = skipEvents[e.type];\r\n\t// reset when checking, as it's only used in map container and propagates outside of the map\r\n\tskipEvents[e.type] = false;\r\n\treturn events;\r\n}\r\n\r\n// check if element really left/entered the event target (for mouseenter/mouseleave)\r\nfunction isExternalTarget(el, e) {\r\n\r\n\tvar related = e.relatedTarget;\r\n\r\n\tif (!related) { return true; }\r\n\r\n\ttry {\r\n\t\twhile (related && (related !== el)) {\r\n\t\t\trelated = related.parentNode;\r\n\t\t}\r\n\t} catch (err) {\r\n\t\treturn false;\r\n\t}\r\n\treturn (related !== el);\r\n}\r\n\r\nvar lastClick;\r\n\r\n// this is a horrible workaround for a bug in Android where a single touch triggers two click events\r\nfunction filterClick(e, handler) {\r\n\tvar timeStamp = (e.timeStamp || (e.originalEvent && e.originalEvent.timeStamp)),\r\n\t elapsed = lastClick && (timeStamp - lastClick);\r\n\r\n\t// are they closer together than 500ms yet more than 100ms?\r\n\t// Android typically triggers them ~300ms apart while multiple listeners\r\n\t// on the same event should be triggered far faster;\r\n\t// or check if click is simulated on the element, and if it is, reject any non-simulated events\r\n\r\n\tif ((elapsed && elapsed > 100 && elapsed < 500) || (e.target._simulatedClick && !e._simulated)) {\r\n\t\tstop(e);\r\n\t\treturn;\r\n\t}\r\n\tlastClick = timeStamp;\r\n\r\n\thandler(e);\r\n}\r\n\r\n\r\n\n\nvar DomEvent = (Object.freeze || Object)({\n\ton: on,\n\toff: off,\n\tstopPropagation: stopPropagation,\n\tdisableScrollPropagation: disableScrollPropagation,\n\tdisableClickPropagation: disableClickPropagation,\n\tpreventDefault: preventDefault,\n\tstop: stop,\n\tgetMousePosition: getMousePosition,\n\tgetWheelDelta: getWheelDelta,\n\tfakeStop: fakeStop,\n\tskipped: skipped,\n\tisExternalTarget: isExternalTarget,\n\taddListener: on,\n\tremoveListener: off\n});\n\n/*\n * @class PosAnimation\n * @aka L.PosAnimation\n * @inherits Evented\n * Used internally for panning animations, utilizing CSS3 Transitions for modern browsers and a timer fallback for IE6-9.\n *\n * @example\n * ```js\n * var fx = new L.PosAnimation();\n * fx.run(el, [300, 500], 0.5);\n * ```\n *\n * @constructor L.PosAnimation()\n * Creates a `PosAnimation` object.\n *\n */\n\nvar PosAnimation = Evented.extend({\n\n\t// @method run(el: HTMLElement, newPos: Point, duration?: Number, easeLinearity?: Number)\n\t// Run an animation of a given element to a new position, optionally setting\n\t// duration in seconds (`0.25` by default) and easing linearity factor (3rd\n\t// argument of the [cubic bezier curve](http://cubic-bezier.com/#0,0,.5,1),\n\t// `0.5` by default).\n\trun: function (el, newPos, duration, easeLinearity) {\n\t\tthis.stop();\n\n\t\tthis._el = el;\n\t\tthis._inProgress = true;\n\t\tthis._duration = duration || 0.25;\n\t\tthis._easeOutPower = 1 / Math.max(easeLinearity || 0.5, 0.2);\n\n\t\tthis._startPos = getPosition(el);\n\t\tthis._offset = newPos.subtract(this._startPos);\n\t\tthis._startTime = +new Date();\n\n\t\t// @event start: Event\n\t\t// Fired when the animation starts\n\t\tthis.fire('start');\n\n\t\tthis._animate();\n\t},\n\n\t// @method stop()\n\t// Stops the animation (if currently running).\n\tstop: function () {\n\t\tif (!this._inProgress) { return; }\n\n\t\tthis._step(true);\n\t\tthis._complete();\n\t},\n\n\t_animate: function () {\n\t\t// animation loop\n\t\tthis._animId = requestAnimFrame(this._animate, this);\n\t\tthis._step();\n\t},\n\n\t_step: function (round) {\n\t\tvar elapsed = (+new Date()) - this._startTime,\n\t\t duration = this._duration * 1000;\n\n\t\tif (elapsed < duration) {\n\t\t\tthis._runFrame(this._easeOut(elapsed / duration), round);\n\t\t} else {\n\t\t\tthis._runFrame(1);\n\t\t\tthis._complete();\n\t\t}\n\t},\n\n\t_runFrame: function (progress, round) {\n\t\tvar pos = this._startPos.add(this._offset.multiplyBy(progress));\n\t\tif (round) {\n\t\t\tpos._round();\n\t\t}\n\t\tsetPosition(this._el, pos);\n\n\t\t// @event step: Event\n\t\t// Fired continuously during the animation.\n\t\tthis.fire('step');\n\t},\n\n\t_complete: function () {\n\t\tcancelAnimFrame(this._animId);\n\n\t\tthis._inProgress = false;\n\t\t// @event end: Event\n\t\t// Fired when the animation ends.\n\t\tthis.fire('end');\n\t},\n\n\t_easeOut: function (t) {\n\t\treturn 1 - Math.pow(1 - t, this._easeOutPower);\n\t}\n});\n\n/*\r\n * @class Map\r\n * @aka L.Map\r\n * @inherits Evented\r\n *\r\n * The central class of the API — it is used to create a map on a page and manipulate it.\r\n *\r\n * @example\r\n *\r\n * ```js\r\n * // initialize the map on the \"map\" div with a given center and zoom\r\n * var map = L.map('map', {\r\n * \tcenter: [51.505, -0.09],\r\n * \tzoom: 13\r\n * });\r\n * ```\r\n *\r\n */\r\n\r\nvar Map = Evented.extend({\r\n\r\n\toptions: {\r\n\t\t// @section Map State Options\r\n\t\t// @option crs: CRS = L.CRS.EPSG3857\r\n\t\t// The [Coordinate Reference System](#crs) to use. Don't change this if you're not\r\n\t\t// sure what it means.\r\n\t\tcrs: EPSG3857,\r\n\r\n\t\t// @option center: LatLng = undefined\r\n\t\t// Initial geographic center of the map\r\n\t\tcenter: undefined,\r\n\r\n\t\t// @option zoom: Number = undefined\r\n\t\t// Initial map zoom level\r\n\t\tzoom: undefined,\r\n\r\n\t\t// @option minZoom: Number = *\r\n\t\t// Minimum zoom level of the map.\r\n\t\t// If not specified and at least one `GridLayer` or `TileLayer` is in the map,\r\n\t\t// the lowest of their `minZoom` options will be used instead.\r\n\t\tminZoom: undefined,\r\n\r\n\t\t// @option maxZoom: Number = *\r\n\t\t// Maximum zoom level of the map.\r\n\t\t// If not specified and at least one `GridLayer` or `TileLayer` is in the map,\r\n\t\t// the highest of their `maxZoom` options will be used instead.\r\n\t\tmaxZoom: undefined,\r\n\r\n\t\t// @option layers: Layer[] = []\r\n\t\t// Array of layers that will be added to the map initially\r\n\t\tlayers: [],\r\n\r\n\t\t// @option maxBounds: LatLngBounds = null\r\n\t\t// When this option is set, the map restricts the view to the given\r\n\t\t// geographical bounds, bouncing the user back if the user tries to pan\r\n\t\t// outside the view. To set the restriction dynamically, use\r\n\t\t// [`setMaxBounds`](#map-setmaxbounds) method.\r\n\t\tmaxBounds: undefined,\r\n\r\n\t\t// @option renderer: Renderer = *\r\n\t\t// The default method for drawing vector layers on the map. `L.SVG`\r\n\t\t// or `L.Canvas` by default depending on browser support.\r\n\t\trenderer: undefined,\r\n\r\n\r\n\t\t// @section Animation Options\r\n\t\t// @option zoomAnimation: Boolean = true\r\n\t\t// Whether the map zoom animation is enabled. By default it's enabled\r\n\t\t// in all browsers that support CSS3 Transitions except Android.\r\n\t\tzoomAnimation: true,\r\n\r\n\t\t// @option zoomAnimationThreshold: Number = 4\r\n\t\t// Won't animate zoom if the zoom difference exceeds this value.\r\n\t\tzoomAnimationThreshold: 4,\r\n\r\n\t\t// @option fadeAnimation: Boolean = true\r\n\t\t// Whether the tile fade animation is enabled. By default it's enabled\r\n\t\t// in all browsers that support CSS3 Transitions except Android.\r\n\t\tfadeAnimation: true,\r\n\r\n\t\t// @option markerZoomAnimation: Boolean = true\r\n\t\t// Whether markers animate their zoom with the zoom animation, if disabled\r\n\t\t// they will disappear for the length of the animation. By default it's\r\n\t\t// enabled in all browsers that support CSS3 Transitions except Android.\r\n\t\tmarkerZoomAnimation: true,\r\n\r\n\t\t// @option transform3DLimit: Number = 2^23\r\n\t\t// Defines the maximum size of a CSS translation transform. The default\r\n\t\t// value should not be changed unless a web browser positions layers in\r\n\t\t// the wrong place after doing a large `panBy`.\r\n\t\ttransform3DLimit: 8388608, // Precision limit of a 32-bit float\r\n\r\n\t\t// @section Interaction Options\r\n\t\t// @option zoomSnap: Number = 1\r\n\t\t// Forces the map's zoom level to always be a multiple of this, particularly\r\n\t\t// right after a [`fitBounds()`](#map-fitbounds) or a pinch-zoom.\r\n\t\t// By default, the zoom level snaps to the nearest integer; lower values\r\n\t\t// (e.g. `0.5` or `0.1`) allow for greater granularity. A value of `0`\r\n\t\t// means the zoom level will not be snapped after `fitBounds` or a pinch-zoom.\r\n\t\tzoomSnap: 1,\r\n\r\n\t\t// @option zoomDelta: Number = 1\r\n\t\t// Controls how much the map's zoom level will change after a\r\n\t\t// [`zoomIn()`](#map-zoomin), [`zoomOut()`](#map-zoomout), pressing `+`\r\n\t\t// or `-` on the keyboard, or using the [zoom controls](#control-zoom).\r\n\t\t// Values smaller than `1` (e.g. `0.5`) allow for greater granularity.\r\n\t\tzoomDelta: 1,\r\n\r\n\t\t// @option trackResize: Boolean = true\r\n\t\t// Whether the map automatically handles browser window resize to update itself.\r\n\t\ttrackResize: true\r\n\t},\r\n\r\n\tinitialize: function (id, options) { // (HTMLElement or String, Object)\r\n\t\toptions = setOptions(this, options);\r\n\r\n\t\tthis._initContainer(id);\r\n\t\tthis._initLayout();\r\n\r\n\t\t// hack for https://github.com/Leaflet/Leaflet/issues/1980\r\n\t\tthis._onResize = bind(this._onResize, this);\r\n\r\n\t\tthis._initEvents();\r\n\r\n\t\tif (options.maxBounds) {\r\n\t\t\tthis.setMaxBounds(options.maxBounds);\r\n\t\t}\r\n\r\n\t\tif (options.zoom !== undefined) {\r\n\t\t\tthis._zoom = this._limitZoom(options.zoom);\r\n\t\t}\r\n\r\n\t\tif (options.center && options.zoom !== undefined) {\r\n\t\t\tthis.setView(toLatLng(options.center), options.zoom, {reset: true});\r\n\t\t}\r\n\r\n\t\tthis._handlers = [];\r\n\t\tthis._layers = {};\r\n\t\tthis._zoomBoundLayers = {};\r\n\t\tthis._sizeChanged = true;\r\n\r\n\t\tthis.callInitHooks();\r\n\r\n\t\t// don't animate on browsers without hardware-accelerated transitions or old Android/Opera\r\n\t\tthis._zoomAnimated = TRANSITION && any3d && !mobileOpera &&\r\n\t\t\t\tthis.options.zoomAnimation;\r\n\r\n\t\t// zoom transitions run with the same duration for all layers, so if one of transitionend events\r\n\t\t// happens after starting zoom animation (propagating to the map pane), we know that it ended globally\r\n\t\tif (this._zoomAnimated) {\r\n\t\t\tthis._createAnimProxy();\r\n\t\t\ton(this._proxy, TRANSITION_END, this._catchTransitionEnd, this);\r\n\t\t}\r\n\r\n\t\tthis._addLayers(this.options.layers);\r\n\t},\r\n\r\n\r\n\t// @section Methods for modifying map state\r\n\r\n\t// @method setView(center: LatLng, zoom: Number, options?: Zoom/pan options): this\r\n\t// Sets the view of the map (geographical center and zoom) with the given\r\n\t// animation options.\r\n\tsetView: function (center, zoom, options) {\r\n\r\n\t\tzoom = zoom === undefined ? this._zoom : this._limitZoom(zoom);\r\n\t\tcenter = this._limitCenter(toLatLng(center), zoom, this.options.maxBounds);\r\n\t\toptions = options || {};\r\n\r\n\t\tthis._stop();\r\n\r\n\t\tif (this._loaded && !options.reset && options !== true) {\r\n\r\n\t\t\tif (options.animate !== undefined) {\r\n\t\t\t\toptions.zoom = extend({animate: options.animate}, options.zoom);\r\n\t\t\t\toptions.pan = extend({animate: options.animate, duration: options.duration}, options.pan);\r\n\t\t\t}\r\n\r\n\t\t\t// try animating pan or zoom\r\n\t\t\tvar moved = (this._zoom !== zoom) ?\r\n\t\t\t\tthis._tryAnimatedZoom && this._tryAnimatedZoom(center, zoom, options.zoom) :\r\n\t\t\t\tthis._tryAnimatedPan(center, options.pan);\r\n\r\n\t\t\tif (moved) {\r\n\t\t\t\t// prevent resize handler call, the view will refresh after animation anyway\r\n\t\t\t\tclearTimeout(this._sizeTimer);\r\n\t\t\t\treturn this;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// animation didn't start, just reset the map view\r\n\t\tthis._resetView(center, zoom);\r\n\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method setZoom(zoom: Number, options?: Zoom/pan options): this\r\n\t// Sets the zoom of the map.\r\n\tsetZoom: function (zoom, options) {\r\n\t\tif (!this._loaded) {\r\n\t\t\tthis._zoom = zoom;\r\n\t\t\treturn this;\r\n\t\t}\r\n\t\treturn this.setView(this.getCenter(), zoom, {zoom: options});\r\n\t},\r\n\r\n\t// @method zoomIn(delta?: Number, options?: Zoom options): this\r\n\t// Increases the zoom of the map by `delta` ([`zoomDelta`](#map-zoomdelta) by default).\r\n\tzoomIn: function (delta, options) {\r\n\t\tdelta = delta || (any3d ? this.options.zoomDelta : 1);\r\n\t\treturn this.setZoom(this._zoom + delta, options);\r\n\t},\r\n\r\n\t// @method zoomOut(delta?: Number, options?: Zoom options): this\r\n\t// Decreases the zoom of the map by `delta` ([`zoomDelta`](#map-zoomdelta) by default).\r\n\tzoomOut: function (delta, options) {\r\n\t\tdelta = delta || (any3d ? this.options.zoomDelta : 1);\r\n\t\treturn this.setZoom(this._zoom - delta, options);\r\n\t},\r\n\r\n\t// @method setZoomAround(latlng: LatLng, zoom: Number, options: Zoom options): this\r\n\t// Zooms the map while keeping a specified geographical point on the map\r\n\t// stationary (e.g. used internally for scroll zoom and double-click zoom).\r\n\t// @alternative\r\n\t// @method setZoomAround(offset: Point, zoom: Number, options: Zoom options): this\r\n\t// Zooms the map while keeping a specified pixel on the map (relative to the top-left corner) stationary.\r\n\tsetZoomAround: function (latlng, zoom, options) {\r\n\t\tvar scale = this.getZoomScale(zoom),\r\n\t\t viewHalf = this.getSize().divideBy(2),\r\n\t\t containerPoint = latlng instanceof Point ? latlng : this.latLngToContainerPoint(latlng),\r\n\r\n\t\t centerOffset = containerPoint.subtract(viewHalf).multiplyBy(1 - 1 / scale),\r\n\t\t newCenter = this.containerPointToLatLng(viewHalf.add(centerOffset));\r\n\r\n\t\treturn this.setView(newCenter, zoom, {zoom: options});\r\n\t},\r\n\r\n\t_getBoundsCenterZoom: function (bounds, options) {\r\n\r\n\t\toptions = options || {};\r\n\t\tbounds = bounds.getBounds ? bounds.getBounds() : toLatLngBounds(bounds);\r\n\r\n\t\tvar paddingTL = toPoint(options.paddingTopLeft || options.padding || [0, 0]),\r\n\t\t paddingBR = toPoint(options.paddingBottomRight || options.padding || [0, 0]),\r\n\r\n\t\t zoom = this.getBoundsZoom(bounds, false, paddingTL.add(paddingBR));\r\n\r\n\t\tzoom = (typeof options.maxZoom === 'number') ? Math.min(options.maxZoom, zoom) : zoom;\r\n\r\n\t\tif (zoom === Infinity) {\r\n\t\t\treturn {\r\n\t\t\t\tcenter: bounds.getCenter(),\r\n\t\t\t\tzoom: zoom\r\n\t\t\t};\r\n\t\t}\r\n\r\n\t\tvar paddingOffset = paddingBR.subtract(paddingTL).divideBy(2),\r\n\r\n\t\t swPoint = this.project(bounds.getSouthWest(), zoom),\r\n\t\t nePoint = this.project(bounds.getNorthEast(), zoom),\r\n\t\t center = this.unproject(swPoint.add(nePoint).divideBy(2).add(paddingOffset), zoom);\r\n\r\n\t\treturn {\r\n\t\t\tcenter: center,\r\n\t\t\tzoom: zoom\r\n\t\t};\r\n\t},\r\n\r\n\t// @method fitBounds(bounds: LatLngBounds, options?: fitBounds options): this\r\n\t// Sets a map view that contains the given geographical bounds with the\r\n\t// maximum zoom level possible.\r\n\tfitBounds: function (bounds, options) {\r\n\r\n\t\tbounds = toLatLngBounds(bounds);\r\n\r\n\t\tif (!bounds.isValid()) {\r\n\t\t\tthrow new Error('Bounds are not valid.');\r\n\t\t}\r\n\r\n\t\tvar target = this._getBoundsCenterZoom(bounds, options);\r\n\t\treturn this.setView(target.center, target.zoom, options);\r\n\t},\r\n\r\n\t// @method fitWorld(options?: fitBounds options): this\r\n\t// Sets a map view that mostly contains the whole world with the maximum\r\n\t// zoom level possible.\r\n\tfitWorld: function (options) {\r\n\t\treturn this.fitBounds([[-90, -180], [90, 180]], options);\r\n\t},\r\n\r\n\t// @method panTo(latlng: LatLng, options?: Pan options): this\r\n\t// Pans the map to a given center.\r\n\tpanTo: function (center, options) { // (LatLng)\r\n\t\treturn this.setView(center, this._zoom, {pan: options});\r\n\t},\r\n\r\n\t// @method panBy(offset: Point, options?: Pan options): this\r\n\t// Pans the map by a given number of pixels (animated).\r\n\tpanBy: function (offset, options) {\r\n\t\toffset = toPoint(offset).round();\r\n\t\toptions = options || {};\r\n\r\n\t\tif (!offset.x && !offset.y) {\r\n\t\t\treturn this.fire('moveend');\r\n\t\t}\r\n\t\t// If we pan too far, Chrome gets issues with tiles\r\n\t\t// and makes them disappear or appear in the wrong place (slightly offset) #2602\r\n\t\tif (options.animate !== true && !this.getSize().contains(offset)) {\r\n\t\t\tthis._resetView(this.unproject(this.project(this.getCenter()).add(offset)), this.getZoom());\r\n\t\t\treturn this;\r\n\t\t}\r\n\r\n\t\tif (!this._panAnim) {\r\n\t\t\tthis._panAnim = new PosAnimation();\r\n\r\n\t\t\tthis._panAnim.on({\r\n\t\t\t\t'step': this._onPanTransitionStep,\r\n\t\t\t\t'end': this._onPanTransitionEnd\r\n\t\t\t}, this);\r\n\t\t}\r\n\r\n\t\t// don't fire movestart if animating inertia\r\n\t\tif (!options.noMoveStart) {\r\n\t\t\tthis.fire('movestart');\r\n\t\t}\r\n\r\n\t\t// animate pan unless animate: false specified\r\n\t\tif (options.animate !== false) {\r\n\t\t\taddClass(this._mapPane, 'leaflet-pan-anim');\r\n\r\n\t\t\tvar newPos = this._getMapPanePos().subtract(offset).round();\r\n\t\t\tthis._panAnim.run(this._mapPane, newPos, options.duration || 0.25, options.easeLinearity);\r\n\t\t} else {\r\n\t\t\tthis._rawPanBy(offset);\r\n\t\t\tthis.fire('move').fire('moveend');\r\n\t\t}\r\n\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method flyTo(latlng: LatLng, zoom?: Number, options?: Zoom/pan options): this\r\n\t// Sets the view of the map (geographical center and zoom) performing a smooth\r\n\t// pan-zoom animation.\r\n\tflyTo: function (targetCenter, targetZoom, options) {\r\n\r\n\t\toptions = options || {};\r\n\t\tif (options.animate === false || !any3d) {\r\n\t\t\treturn this.setView(targetCenter, targetZoom, options);\r\n\t\t}\r\n\r\n\t\tthis._stop();\r\n\r\n\t\tvar from = this.project(this.getCenter()),\r\n\t\t to = this.project(targetCenter),\r\n\t\t size = this.getSize(),\r\n\t\t startZoom = this._zoom;\r\n\r\n\t\ttargetCenter = toLatLng(targetCenter);\r\n\t\ttargetZoom = targetZoom === undefined ? startZoom : targetZoom;\r\n\r\n\t\tvar w0 = Math.max(size.x, size.y),\r\n\t\t w1 = w0 * this.getZoomScale(startZoom, targetZoom),\r\n\t\t u1 = (to.distanceTo(from)) || 1,\r\n\t\t rho = 1.42,\r\n\t\t rho2 = rho * rho;\r\n\r\n\t\tfunction r(i) {\r\n\t\t\tvar s1 = i ? -1 : 1,\r\n\t\t\t s2 = i ? w1 : w0,\r\n\t\t\t t1 = w1 * w1 - w0 * w0 + s1 * rho2 * rho2 * u1 * u1,\r\n\t\t\t b1 = 2 * s2 * rho2 * u1,\r\n\t\t\t b = t1 / b1,\r\n\t\t\t sq = Math.sqrt(b * b + 1) - b;\r\n\r\n\t\t\t // workaround for floating point precision bug when sq = 0, log = -Infinite,\r\n\t\t\t // thus triggering an infinite loop in flyTo\r\n\t\t\t var log = sq < 0.000000001 ? -18 : Math.log(sq);\r\n\r\n\t\t\treturn log;\r\n\t\t}\r\n\r\n\t\tfunction sinh(n) { return (Math.exp(n) - Math.exp(-n)) / 2; }\r\n\t\tfunction cosh(n) { return (Math.exp(n) + Math.exp(-n)) / 2; }\r\n\t\tfunction tanh(n) { return sinh(n) / cosh(n); }\r\n\r\n\t\tvar r0 = r(0);\r\n\r\n\t\tfunction w(s) { return w0 * (cosh(r0) / cosh(r0 + rho * s)); }\r\n\t\tfunction u(s) { return w0 * (cosh(r0) * tanh(r0 + rho * s) - sinh(r0)) / rho2; }\r\n\r\n\t\tfunction easeOut(t) { return 1 - Math.pow(1 - t, 1.5); }\r\n\r\n\t\tvar start = Date.now(),\r\n\t\t S = (r(1) - r0) / rho,\r\n\t\t duration = options.duration ? 1000 * options.duration : 1000 * S * 0.8;\r\n\r\n\t\tfunction frame() {\r\n\t\t\tvar t = (Date.now() - start) / duration,\r\n\t\t\t s = easeOut(t) * S;\r\n\r\n\t\t\tif (t <= 1) {\r\n\t\t\t\tthis._flyToFrame = requestAnimFrame(frame, this);\r\n\r\n\t\t\t\tthis._move(\r\n\t\t\t\t\tthis.unproject(from.add(to.subtract(from).multiplyBy(u(s) / u1)), startZoom),\r\n\t\t\t\t\tthis.getScaleZoom(w0 / w(s), startZoom),\r\n\t\t\t\t\t{flyTo: true});\r\n\r\n\t\t\t} else {\r\n\t\t\t\tthis\r\n\t\t\t\t\t._move(targetCenter, targetZoom)\r\n\t\t\t\t\t._moveEnd(true);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tthis._moveStart(true, options.noMoveStart);\r\n\r\n\t\tframe.call(this);\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method flyToBounds(bounds: LatLngBounds, options?: fitBounds options): this\r\n\t// Sets the view of the map with a smooth animation like [`flyTo`](#map-flyto),\r\n\t// but takes a bounds parameter like [`fitBounds`](#map-fitbounds).\r\n\tflyToBounds: function (bounds, options) {\r\n\t\tvar target = this._getBoundsCenterZoom(bounds, options);\r\n\t\treturn this.flyTo(target.center, target.zoom, options);\r\n\t},\r\n\r\n\t// @method setMaxBounds(bounds: Bounds): this\r\n\t// Restricts the map view to the given bounds (see the [maxBounds](#map-maxbounds) option).\r\n\tsetMaxBounds: function (bounds) {\r\n\t\tbounds = toLatLngBounds(bounds);\r\n\r\n\t\tif (!bounds.isValid()) {\r\n\t\t\tthis.options.maxBounds = null;\r\n\t\t\treturn this.off('moveend', this._panInsideMaxBounds);\r\n\t\t} else if (this.options.maxBounds) {\r\n\t\t\tthis.off('moveend', this._panInsideMaxBounds);\r\n\t\t}\r\n\r\n\t\tthis.options.maxBounds = bounds;\r\n\r\n\t\tif (this._loaded) {\r\n\t\t\tthis._panInsideMaxBounds();\r\n\t\t}\r\n\r\n\t\treturn this.on('moveend', this._panInsideMaxBounds);\r\n\t},\r\n\r\n\t// @method setMinZoom(zoom: Number): this\r\n\t// Sets the lower limit for the available zoom levels (see the [minZoom](#map-minzoom) option).\r\n\tsetMinZoom: function (zoom) {\r\n\t\tvar oldZoom = this.options.minZoom;\r\n\t\tthis.options.minZoom = zoom;\r\n\r\n\t\tif (this._loaded && oldZoom !== zoom) {\r\n\t\t\tthis.fire('zoomlevelschange');\r\n\r\n\t\t\tif (this.getZoom() < this.options.minZoom) {\r\n\t\t\t\treturn this.setZoom(zoom);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method setMaxZoom(zoom: Number): this\r\n\t// Sets the upper limit for the available zoom levels (see the [maxZoom](#map-maxzoom) option).\r\n\tsetMaxZoom: function (zoom) {\r\n\t\tvar oldZoom = this.options.maxZoom;\r\n\t\tthis.options.maxZoom = zoom;\r\n\r\n\t\tif (this._loaded && oldZoom !== zoom) {\r\n\t\t\tthis.fire('zoomlevelschange');\r\n\r\n\t\t\tif (this.getZoom() > this.options.maxZoom) {\r\n\t\t\t\treturn this.setZoom(zoom);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method panInsideBounds(bounds: LatLngBounds, options?: Pan options): this\r\n\t// Pans the map to the closest view that would lie inside the given bounds (if it's not already), controlling the animation using the options specific, if any.\r\n\tpanInsideBounds: function (bounds, options) {\r\n\t\tthis._enforcingBounds = true;\r\n\t\tvar center = this.getCenter(),\r\n\t\t newCenter = this._limitCenter(center, this._zoom, toLatLngBounds(bounds));\r\n\r\n\t\tif (!center.equals(newCenter)) {\r\n\t\t\tthis.panTo(newCenter, options);\r\n\t\t}\r\n\r\n\t\tthis._enforcingBounds = false;\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method invalidateSize(options: Zoom/pan options): this\r\n\t// Checks if the map container size changed and updates the map if so —\r\n\t// call it after you've changed the map size dynamically, also animating\r\n\t// pan by default. If `options.pan` is `false`, panning will not occur.\r\n\t// If `options.debounceMoveend` is `true`, it will delay `moveend` event so\r\n\t// that it doesn't happen often even if the method is called many\r\n\t// times in a row.\r\n\r\n\t// @alternative\r\n\t// @method invalidateSize(animate: Boolean): this\r\n\t// Checks if the map container size changed and updates the map if so —\r\n\t// call it after you've changed the map size dynamically, also animating\r\n\t// pan by default.\r\n\tinvalidateSize: function (options) {\r\n\t\tif (!this._loaded) { return this; }\r\n\r\n\t\toptions = extend({\r\n\t\t\tanimate: false,\r\n\t\t\tpan: true\r\n\t\t}, options === true ? {animate: true} : options);\r\n\r\n\t\tvar oldSize = this.getSize();\r\n\t\tthis._sizeChanged = true;\r\n\t\tthis._lastCenter = null;\r\n\r\n\t\tvar newSize = this.getSize(),\r\n\t\t oldCenter = oldSize.divideBy(2).round(),\r\n\t\t newCenter = newSize.divideBy(2).round(),\r\n\t\t offset = oldCenter.subtract(newCenter);\r\n\r\n\t\tif (!offset.x && !offset.y) { return this; }\r\n\r\n\t\tif (options.animate && options.pan) {\r\n\t\t\tthis.panBy(offset);\r\n\r\n\t\t} else {\r\n\t\t\tif (options.pan) {\r\n\t\t\t\tthis._rawPanBy(offset);\r\n\t\t\t}\r\n\r\n\t\t\tthis.fire('move');\r\n\r\n\t\t\tif (options.debounceMoveend) {\r\n\t\t\t\tclearTimeout(this._sizeTimer);\r\n\t\t\t\tthis._sizeTimer = setTimeout(bind(this.fire, this, 'moveend'), 200);\r\n\t\t\t} else {\r\n\t\t\t\tthis.fire('moveend');\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// @section Map state change events\r\n\t\t// @event resize: ResizeEvent\r\n\t\t// Fired when the map is resized.\r\n\t\treturn this.fire('resize', {\r\n\t\t\toldSize: oldSize,\r\n\t\t\tnewSize: newSize\r\n\t\t});\r\n\t},\r\n\r\n\t// @section Methods for modifying map state\r\n\t// @method stop(): this\r\n\t// Stops the currently running `panTo` or `flyTo` animation, if any.\r\n\tstop: function () {\r\n\t\tthis.setZoom(this._limitZoom(this._zoom));\r\n\t\tif (!this.options.zoomSnap) {\r\n\t\t\tthis.fire('viewreset');\r\n\t\t}\r\n\t\treturn this._stop();\r\n\t},\r\n\r\n\t// @section Geolocation methods\r\n\t// @method locate(options?: Locate options): this\r\n\t// Tries to locate the user using the Geolocation API, firing a [`locationfound`](#map-locationfound)\r\n\t// event with location data on success or a [`locationerror`](#map-locationerror) event on failure,\r\n\t// and optionally sets the map view to the user's location with respect to\r\n\t// detection accuracy (or to the world view if geolocation failed).\r\n\t// Note that, if your page doesn't use HTTPS, this method will fail in\r\n\t// modern browsers ([Chrome 50 and newer](https://sites.google.com/a/chromium.org/dev/Home/chromium-security/deprecating-powerful-features-on-insecure-origins))\r\n\t// See `Locate options` for more details.\r\n\tlocate: function (options) {\r\n\r\n\t\toptions = this._locateOptions = extend({\r\n\t\t\ttimeout: 10000,\r\n\t\t\twatch: false\r\n\t\t\t// setView: false\r\n\t\t\t// maxZoom: <Number>\r\n\t\t\t// maximumAge: 0\r\n\t\t\t// enableHighAccuracy: false\r\n\t\t}, options);\r\n\r\n\t\tif (!('geolocation' in navigator)) {\r\n\t\t\tthis._handleGeolocationError({\r\n\t\t\t\tcode: 0,\r\n\t\t\t\tmessage: 'Geolocation not supported.'\r\n\t\t\t});\r\n\t\t\treturn this;\r\n\t\t}\r\n\r\n\t\tvar onResponse = bind(this._handleGeolocationResponse, this),\r\n\t\t onError = bind(this._handleGeolocationError, this);\r\n\r\n\t\tif (options.watch) {\r\n\t\t\tthis._locationWatchId =\r\n\t\t\t navigator.geolocation.watchPosition(onResponse, onError, options);\r\n\t\t} else {\r\n\t\t\tnavigator.geolocation.getCurrentPosition(onResponse, onError, options);\r\n\t\t}\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method stopLocate(): this\r\n\t// Stops watching location previously initiated by `map.locate({watch: true})`\r\n\t// and aborts resetting the map view if map.locate was called with\r\n\t// `{setView: true}`.\r\n\tstopLocate: function () {\r\n\t\tif (navigator.geolocation && navigator.geolocation.clearWatch) {\r\n\t\t\tnavigator.geolocation.clearWatch(this._locationWatchId);\r\n\t\t}\r\n\t\tif (this._locateOptions) {\r\n\t\t\tthis._locateOptions.setView = false;\r\n\t\t}\r\n\t\treturn this;\r\n\t},\r\n\r\n\t_handleGeolocationError: function (error) {\r\n\t\tvar c = error.code,\r\n\t\t message = error.message ||\r\n\t\t (c === 1 ? 'permission denied' :\r\n\t\t (c === 2 ? 'position unavailable' : 'timeout'));\r\n\r\n\t\tif (this._locateOptions.setView && !this._loaded) {\r\n\t\t\tthis.fitWorld();\r\n\t\t}\r\n\r\n\t\t// @section Location events\r\n\t\t// @event locationerror: ErrorEvent\r\n\t\t// Fired when geolocation (using the [`locate`](#map-locate) method) failed.\r\n\t\tthis.fire('locationerror', {\r\n\t\t\tcode: c,\r\n\t\t\tmessage: 'Geolocation error: ' + message + '.'\r\n\t\t});\r\n\t},\r\n\r\n\t_handleGeolocationResponse: function (pos) {\r\n\t\tvar lat = pos.coords.latitude,\r\n\t\t lng = pos.coords.longitude,\r\n\t\t latlng = new LatLng(lat, lng),\r\n\t\t bounds = latlng.toBounds(pos.coords.accuracy * 2),\r\n\t\t options = this._locateOptions;\r\n\r\n\t\tif (options.setView) {\r\n\t\t\tvar zoom = this.getBoundsZoom(bounds);\r\n\t\t\tthis.setView(latlng, options.maxZoom ? Math.min(zoom, options.maxZoom) : zoom);\r\n\t\t}\r\n\r\n\t\tvar data = {\r\n\t\t\tlatlng: latlng,\r\n\t\t\tbounds: bounds,\r\n\t\t\ttimestamp: pos.timestamp\r\n\t\t};\r\n\r\n\t\tfor (var i in pos.coords) {\r\n\t\t\tif (typeof pos.coords[i] === 'number') {\r\n\t\t\t\tdata[i] = pos.coords[i];\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// @event locationfound: LocationEvent\r\n\t\t// Fired when geolocation (using the [`locate`](#map-locate) method)\r\n\t\t// went successfully.\r\n\t\tthis.fire('locationfound', data);\r\n\t},\r\n\r\n\t// TODO Appropriate docs section?\r\n\t// @section Other Methods\r\n\t// @method addHandler(name: String, HandlerClass: Function): this\r\n\t// Adds a new `Handler` to the map, given its name and constructor function.\r\n\taddHandler: function (name, HandlerClass) {\r\n\t\tif (!HandlerClass) { return this; }\r\n\r\n\t\tvar handler = this[name] = new HandlerClass(this);\r\n\r\n\t\tthis._handlers.push(handler);\r\n\r\n\t\tif (this.options[name]) {\r\n\t\t\thandler.enable();\r\n\t\t}\r\n\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method remove(): this\r\n\t// Destroys the map and clears all related event listeners.\r\n\tremove: function () {\r\n\r\n\t\tthis._initEvents(true);\r\n\r\n\t\tif (this._containerId !== this._container._leaflet_id) {\r\n\t\t\tthrow new Error('Map container is being reused by another instance');\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\t// throws error in IE6-8\r\n\t\t\tdelete this._container._leaflet_id;\r\n\t\t\tdelete this._containerId;\r\n\t\t} catch (e) {\r\n\t\t\t/*eslint-disable */\r\n\t\t\tthis._container._leaflet_id = undefined;\r\n\t\t\t/* eslint-enable */\r\n\t\t\tthis._containerId = undefined;\r\n\t\t}\r\n\r\n\t\tif (this._locationWatchId !== undefined) {\r\n\t\t\tthis.stopLocate();\r\n\t\t}\r\n\r\n\t\tthis._stop();\r\n\r\n\t\tremove(this._mapPane);\r\n\r\n\t\tif (this._clearControlPos) {\r\n\t\t\tthis._clearControlPos();\r\n\t\t}\r\n\t\tif (this._resizeRequest) {\r\n\t\t\tcancelAnimFrame(this._resizeRequest);\r\n\t\t\tthis._resizeRequest = null;\r\n\t\t}\r\n\r\n\t\tthis._clearHandlers();\r\n\r\n\t\tif (this._loaded) {\r\n\t\t\t// @section Map state change events\r\n\t\t\t// @event unload: Event\r\n\t\t\t// Fired when the map is destroyed with [remove](#map-remove) method.\r\n\t\t\tthis.fire('unload');\r\n\t\t}\r\n\r\n\t\tvar i;\r\n\t\tfor (i in this._layers) {\r\n\t\t\tthis._layers[i].remove();\r\n\t\t}\r\n\t\tfor (i in this._panes) {\r\n\t\t\tremove(this._panes[i]);\r\n\t\t}\r\n\r\n\t\tthis._layers = [];\r\n\t\tthis._panes = [];\r\n\t\tdelete this._mapPane;\r\n\t\tdelete this._renderer;\r\n\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @section Other Methods\r\n\t// @method createPane(name: String, container?: HTMLElement): HTMLElement\r\n\t// Creates a new [map pane](#map-pane) with the given name if it doesn't exist already,\r\n\t// then returns it. The pane is created as a child of `container`, or\r\n\t// as a child of the main map pane if not set.\r\n\tcreatePane: function (name, container) {\r\n\t\tvar className = 'leaflet-pane' + (name ? ' leaflet-' + name.replace('Pane', '') + '-pane' : ''),\r\n\t\t pane = create$1('div', className, container || this._mapPane);\r\n\r\n\t\tif (name) {\r\n\t\t\tthis._panes[name] = pane;\r\n\t\t}\r\n\t\treturn pane;\r\n\t},\r\n\r\n\t// @section Methods for Getting Map State\r\n\r\n\t// @method getCenter(): LatLng\r\n\t// Returns the geographical center of the map view\r\n\tgetCenter: function () {\r\n\t\tthis._checkIfLoaded();\r\n\r\n\t\tif (this._lastCenter && !this._moved()) {\r\n\t\t\treturn this._lastCenter;\r\n\t\t}\r\n\t\treturn this.layerPointToLatLng(this._getCenterLayerPoint());\r\n\t},\r\n\r\n\t// @method getZoom(): Number\r\n\t// Returns the current zoom level of the map view\r\n\tgetZoom: function () {\r\n\t\treturn this._zoom;\r\n\t},\r\n\r\n\t// @method getBounds(): LatLngBounds\r\n\t// Returns the geographical bounds visible in the current map view\r\n\tgetBounds: function () {\r\n\t\tvar bounds = this.getPixelBounds(),\r\n\t\t sw = this.unproject(bounds.getBottomLeft()),\r\n\t\t ne = this.unproject(bounds.getTopRight());\r\n\r\n\t\treturn new LatLngBounds(sw, ne);\r\n\t},\r\n\r\n\t// @method getMinZoom(): Number\r\n\t// Returns the minimum zoom level of the map (if set in the `minZoom` option of the map or of any layers), or `0` by default.\r\n\tgetMinZoom: function () {\r\n\t\treturn this.options.minZoom === undefined ? this._layersMinZoom || 0 : this.options.minZoom;\r\n\t},\r\n\r\n\t// @method getMaxZoom(): Number\r\n\t// Returns the maximum zoom level of the map (if set in the `maxZoom` option of the map or of any layers).\r\n\tgetMaxZoom: function () {\r\n\t\treturn this.options.maxZoom === undefined ?\r\n\t\t\t(this._layersMaxZoom === undefined ? Infinity : this._layersMaxZoom) :\r\n\t\t\tthis.options.maxZoom;\r\n\t},\r\n\r\n\t// @method getBoundsZoom(bounds: LatLngBounds, inside?: Boolean, padding?: Point): Number\r\n\t// Returns the maximum zoom level on which the given bounds fit to the map\r\n\t// view in its entirety. If `inside` (optional) is set to `true`, the method\r\n\t// instead returns the minimum zoom level on which the map view fits into\r\n\t// the given bounds in its entirety.\r\n\tgetBoundsZoom: function (bounds, inside, padding) { // (LatLngBounds[, Boolean, Point]) -> Number\r\n\t\tbounds = toLatLngBounds(bounds);\r\n\t\tpadding = toPoint(padding || [0, 0]);\r\n\r\n\t\tvar zoom = this.getZoom() || 0,\r\n\t\t min = this.getMinZoom(),\r\n\t\t max = this.getMaxZoom(),\r\n\t\t nw = bounds.getNorthWest(),\r\n\t\t se = bounds.getSouthEast(),\r\n\t\t size = this.getSize().subtract(padding),\r\n\t\t boundsSize = toBounds(this.project(se, zoom), this.project(nw, zoom)).getSize(),\r\n\t\t snap = any3d ? this.options.zoomSnap : 1,\r\n\t\t scalex = size.x / boundsSize.x,\r\n\t\t scaley = size.y / boundsSize.y,\r\n\t\t scale = inside ? Math.max(scalex, scaley) : Math.min(scalex, scaley);\r\n\r\n\t\tzoom = this.getScaleZoom(scale, zoom);\r\n\r\n\t\tif (snap) {\r\n\t\t\tzoom = Math.round(zoom / (snap / 100)) * (snap / 100); // don't jump if within 1% of a snap level\r\n\t\t\tzoom = inside ? Math.ceil(zoom / snap) * snap : Math.floor(zoom / snap) * snap;\r\n\t\t}\r\n\r\n\t\treturn Math.max(min, Math.min(max, zoom));\r\n\t},\r\n\r\n\t// @method getSize(): Point\r\n\t// Returns the current size of the map container (in pixels).\r\n\tgetSize: function () {\r\n\t\tif (!this._size || this._sizeChanged) {\r\n\t\t\tthis._size = new Point(\r\n\t\t\t\tthis._container.clientWidth || 0,\r\n\t\t\t\tthis._container.clientHeight || 0);\r\n\r\n\t\t\tthis._sizeChanged = false;\r\n\t\t}\r\n\t\treturn this._size.clone();\r\n\t},\r\n\r\n\t// @method getPixelBounds(): Bounds\r\n\t// Returns the bounds of the current map view in projected pixel\r\n\t// coordinates (sometimes useful in layer and overlay implementations).\r\n\tgetPixelBounds: function (center, zoom) {\r\n\t\tvar topLeftPoint = this._getTopLeftPoint(center, zoom);\r\n\t\treturn new Bounds(topLeftPoint, topLeftPoint.add(this.getSize()));\r\n\t},\r\n\r\n\t// TODO: Check semantics - isn't the pixel origin the 0,0 coord relative to\r\n\t// the map pane? \"left point of the map layer\" can be confusing, specially\r\n\t// since there can be negative offsets.\r\n\t// @method getPixelOrigin(): Point\r\n\t// Returns the projected pixel coordinates of the top left point of\r\n\t// the map layer (useful in custom layer and overlay implementations).\r\n\tgetPixelOrigin: function () {\r\n\t\tthis._checkIfLoaded();\r\n\t\treturn this._pixelOrigin;\r\n\t},\r\n\r\n\t// @method getPixelWorldBounds(zoom?: Number): Bounds\r\n\t// Returns the world's bounds in pixel coordinates for zoom level `zoom`.\r\n\t// If `zoom` is omitted, the map's current zoom level is used.\r\n\tgetPixelWorldBounds: function (zoom) {\r\n\t\treturn this.options.crs.getProjectedBounds(zoom === undefined ? this.getZoom() : zoom);\r\n\t},\r\n\r\n\t// @section Other Methods\r\n\r\n\t// @method getPane(pane: String|HTMLElement): HTMLElement\r\n\t// Returns a [map pane](#map-pane), given its name or its HTML element (its identity).\r\n\tgetPane: function (pane) {\r\n\t\treturn typeof pane === 'string' ? this._panes[pane] : pane;\r\n\t},\r\n\r\n\t// @method getPanes(): Object\r\n\t// Returns a plain object containing the names of all [panes](#map-pane) as keys and\r\n\t// the panes as values.\r\n\tgetPanes: function () {\r\n\t\treturn this._panes;\r\n\t},\r\n\r\n\t// @method getContainer: HTMLElement\r\n\t// Returns the HTML element that contains the map.\r\n\tgetContainer: function () {\r\n\t\treturn this._container;\r\n\t},\r\n\r\n\r\n\t// @section Conversion Methods\r\n\r\n\t// @method getZoomScale(toZoom: Number, fromZoom: Number): Number\r\n\t// Returns the scale factor to be applied to a map transition from zoom level\r\n\t// `fromZoom` to `toZoom`. Used internally to help with zoom animations.\r\n\tgetZoomScale: function (toZoom, fromZoom) {\r\n\t\t// TODO replace with universal implementation after refactoring projections\r\n\t\tvar crs = this.options.crs;\r\n\t\tfromZoom = fromZoom === undefined ? this._zoom : fromZoom;\r\n\t\treturn crs.scale(toZoom) / crs.scale(fromZoom);\r\n\t},\r\n\r\n\t// @method getScaleZoom(scale: Number, fromZoom: Number): Number\r\n\t// Returns the zoom level that the map would end up at, if it is at `fromZoom`\r\n\t// level and everything is scaled by a factor of `scale`. Inverse of\r\n\t// [`getZoomScale`](#map-getZoomScale).\r\n\tgetScaleZoom: function (scale, fromZoom) {\r\n\t\tvar crs = this.options.crs;\r\n\t\tfromZoom = fromZoom === undefined ? this._zoom : fromZoom;\r\n\t\tvar zoom = crs.zoom(scale * crs.scale(fromZoom));\r\n\t\treturn isNaN(zoom) ? Infinity : zoom;\r\n\t},\r\n\r\n\t// @method project(latlng: LatLng, zoom: Number): Point\r\n\t// Projects a geographical coordinate `LatLng` according to the projection\r\n\t// of the map's CRS, then scales it according to `zoom` and the CRS's\r\n\t// `Transformation`. The result is pixel coordinate relative to\r\n\t// the CRS origin.\r\n\tproject: function (latlng, zoom) {\r\n\t\tzoom = zoom === undefined ? this._zoom : zoom;\r\n\t\treturn this.options.crs.latLngToPoint(toLatLng(latlng), zoom);\r\n\t},\r\n\r\n\t// @method unproject(point: Point, zoom: Number): LatLng\r\n\t// Inverse of [`project`](#map-project).\r\n\tunproject: function (point, zoom) {\r\n\t\tzoom = zoom === undefined ? this._zoom : zoom;\r\n\t\treturn this.options.crs.pointToLatLng(toPoint(point), zoom);\r\n\t},\r\n\r\n\t// @method layerPointToLatLng(point: Point): LatLng\r\n\t// Given a pixel coordinate relative to the [origin pixel](#map-getpixelorigin),\r\n\t// returns the corresponding geographical coordinate (for the current zoom level).\r\n\tlayerPointToLatLng: function (point) {\r\n\t\tvar projectedPoint = toPoint(point).add(this.getPixelOrigin());\r\n\t\treturn this.unproject(projectedPoint);\r\n\t},\r\n\r\n\t// @method latLngToLayerPoint(latlng: LatLng): Point\r\n\t// Given a geographical coordinate, returns the corresponding pixel coordinate\r\n\t// relative to the [origin pixel](#map-getpixelorigin).\r\n\tlatLngToLayerPoint: function (latlng) {\r\n\t\tvar projectedPoint = this.project(toLatLng(latlng))._round();\r\n\t\treturn projectedPoint._subtract(this.getPixelOrigin());\r\n\t},\r\n\r\n\t// @method wrapLatLng(latlng: LatLng): LatLng\r\n\t// Returns a `LatLng` where `lat` and `lng` has been wrapped according to the\r\n\t// map's CRS's `wrapLat` and `wrapLng` properties, if they are outside the\r\n\t// CRS's bounds.\r\n\t// By default this means longitude is wrapped around the dateline so its\r\n\t// value is between -180 and +180 degrees.\r\n\twrapLatLng: function (latlng) {\r\n\t\treturn this.options.crs.wrapLatLng(toLatLng(latlng));\r\n\t},\r\n\r\n\t// @method wrapLatLngBounds(bounds: LatLngBounds): LatLngBounds\r\n\t// Returns a `LatLngBounds` with the same size as the given one, ensuring that\r\n\t// its center is within the CRS's bounds.\r\n\t// By default this means the center longitude is wrapped around the dateline so its\r\n\t// value is between -180 and +180 degrees, and the majority of the bounds\r\n\t// overlaps the CRS's bounds.\r\n\twrapLatLngBounds: function (latlng) {\r\n\t\treturn this.options.crs.wrapLatLngBounds(toLatLngBounds(latlng));\r\n\t},\r\n\r\n\t// @method distance(latlng1: LatLng, latlng2: LatLng): Number\r\n\t// Returns the distance between two geographical coordinates according to\r\n\t// the map's CRS. By default this measures distance in meters.\r\n\tdistance: function (latlng1, latlng2) {\r\n\t\treturn this.options.crs.distance(toLatLng(latlng1), toLatLng(latlng2));\r\n\t},\r\n\r\n\t// @method containerPointToLayerPoint(point: Point): Point\r\n\t// Given a pixel coordinate relative to the map container, returns the corresponding\r\n\t// pixel coordinate relative to the [origin pixel](#map-getpixelorigin).\r\n\tcontainerPointToLayerPoint: function (point) { // (Point)\r\n\t\treturn toPoint(point).subtract(this._getMapPanePos());\r\n\t},\r\n\r\n\t// @method layerPointToContainerPoint(point: Point): Point\r\n\t// Given a pixel coordinate relative to the [origin pixel](#map-getpixelorigin),\r\n\t// returns the corresponding pixel coordinate relative to the map container.\r\n\tlayerPointToContainerPoint: function (point) { // (Point)\r\n\t\treturn toPoint(point).add(this._getMapPanePos());\r\n\t},\r\n\r\n\t// @method containerPointToLatLng(point: Point): LatLng\r\n\t// Given a pixel coordinate relative to the map container, returns\r\n\t// the corresponding geographical coordinate (for the current zoom level).\r\n\tcontainerPointToLatLng: function (point) {\r\n\t\tvar layerPoint = this.containerPointToLayerPoint(toPoint(point));\r\n\t\treturn this.layerPointToLatLng(layerPoint);\r\n\t},\r\n\r\n\t// @method latLngToContainerPoint(latlng: LatLng): Point\r\n\t// Given a geographical coordinate, returns the corresponding pixel coordinate\r\n\t// relative to the map container.\r\n\tlatLngToContainerPoint: function (latlng) {\r\n\t\treturn this.layerPointToContainerPoint(this.latLngToLayerPoint(toLatLng(latlng)));\r\n\t},\r\n\r\n\t// @method mouseEventToContainerPoint(ev: MouseEvent): Point\r\n\t// Given a MouseEvent object, returns the pixel coordinate relative to the\r\n\t// map container where the event took place.\r\n\tmouseEventToContainerPoint: function (e) {\r\n\t\treturn getMousePosition(e, this._container);\r\n\t},\r\n\r\n\t// @method mouseEventToLayerPoint(ev: MouseEvent): Point\r\n\t// Given a MouseEvent object, returns the pixel coordinate relative to\r\n\t// the [origin pixel](#map-getpixelorigin) where the event took place.\r\n\tmouseEventToLayerPoint: function (e) {\r\n\t\treturn this.containerPointToLayerPoint(this.mouseEventToContainerPoint(e));\r\n\t},\r\n\r\n\t// @method mouseEventToLatLng(ev: MouseEvent): LatLng\r\n\t// Given a MouseEvent object, returns geographical coordinate where the\r\n\t// event took place.\r\n\tmouseEventToLatLng: function (e) { // (MouseEvent)\r\n\t\treturn this.layerPointToLatLng(this.mouseEventToLayerPoint(e));\r\n\t},\r\n\r\n\r\n\t// map initialization methods\r\n\r\n\t_initContainer: function (id) {\r\n\t\tvar container = this._container = get(id);\r\n\r\n\t\tif (!container) {\r\n\t\t\tthrow new Error('Map container not found.');\r\n\t\t} else if (container._leaflet_id) {\r\n\t\t\tthrow new Error('Map container is already initialized.');\r\n\t\t}\r\n\r\n\t\ton(container, 'scroll', this._onScroll, this);\r\n\t\tthis._containerId = stamp(container);\r\n\t},\r\n\r\n\t_initLayout: function () {\r\n\t\tvar container = this._container;\r\n\r\n\t\tthis._fadeAnimated = this.options.fadeAnimation && any3d;\r\n\r\n\t\taddClass(container, 'leaflet-container' +\r\n\t\t\t(touch ? ' leaflet-touch' : '') +\r\n\t\t\t(retina ? ' leaflet-retina' : '') +\r\n\t\t\t(ielt9 ? ' leaflet-oldie' : '') +\r\n\t\t\t(safari ? ' leaflet-safari' : '') +\r\n\t\t\t(this._fadeAnimated ? ' leaflet-fade-anim' : ''));\r\n\r\n\t\tvar position = getStyle(container, 'position');\r\n\r\n\t\tif (position !== 'absolute' && position !== 'relative' && position !== 'fixed') {\r\n\t\t\tcontainer.style.position = 'relative';\r\n\t\t}\r\n\r\n\t\tthis._initPanes();\r\n\r\n\t\tif (this._initControlPos) {\r\n\t\t\tthis._initControlPos();\r\n\t\t}\r\n\t},\r\n\r\n\t_initPanes: function () {\r\n\t\tvar panes = this._panes = {};\r\n\t\tthis._paneRenderers = {};\r\n\r\n\t\t// @section\r\n\t\t//\r\n\t\t// Panes are DOM elements used to control the ordering of layers on the map. You\r\n\t\t// can access panes with [`map.getPane`](#map-getpane) or\r\n\t\t// [`map.getPanes`](#map-getpanes) methods. New panes can be created with the\r\n\t\t// [`map.createPane`](#map-createpane) method.\r\n\t\t//\r\n\t\t// Every map has the following default panes that differ only in zIndex.\r\n\t\t//\r\n\t\t// @pane mapPane: HTMLElement = 'auto'\r\n\t\t// Pane that contains all other map panes\r\n\r\n\t\tthis._mapPane = this.createPane('mapPane', this._container);\r\n\t\tsetPosition(this._mapPane, new Point(0, 0));\r\n\r\n\t\t// @pane tilePane: HTMLElement = 200\r\n\t\t// Pane for `GridLayer`s and `TileLayer`s\r\n\t\tthis.createPane('tilePane');\r\n\t\t// @pane overlayPane: HTMLElement = 400\r\n\t\t// Pane for vectors (`Path`s, like `Polyline`s and `Polygon`s), `ImageOverlay`s and `VideoOverlay`s\r\n\t\tthis.createPane('shadowPane');\r\n\t\t// @pane shadowPane: HTMLElement = 500\r\n\t\t// Pane for overlay shadows (e.g. `Marker` shadows)\r\n\t\tthis.createPane('overlayPane');\r\n\t\t// @pane markerPane: HTMLElement = 600\r\n\t\t// Pane for `Icon`s of `Marker`s\r\n\t\tthis.createPane('markerPane');\r\n\t\t// @pane tooltipPane: HTMLElement = 650\r\n\t\t// Pane for `Tooltip`s.\r\n\t\tthis.createPane('tooltipPane');\r\n\t\t// @pane popupPane: HTMLElement = 700\r\n\t\t// Pane for `Popup`s.\r\n\t\tthis.createPane('popupPane');\r\n\r\n\t\tif (!this.options.markerZoomAnimation) {\r\n\t\t\taddClass(panes.markerPane, 'leaflet-zoom-hide');\r\n\t\t\taddClass(panes.shadowPane, 'leaflet-zoom-hide');\r\n\t\t}\r\n\t},\r\n\r\n\r\n\t// private methods that modify map state\r\n\r\n\t// @section Map state change events\r\n\t_resetView: function (center, zoom) {\r\n\t\tsetPosition(this._mapPane, new Point(0, 0));\r\n\r\n\t\tvar loading = !this._loaded;\r\n\t\tthis._loaded = true;\r\n\t\tzoom = this._limitZoom(zoom);\r\n\r\n\t\tthis.fire('viewprereset');\r\n\r\n\t\tvar zoomChanged = this._zoom !== zoom;\r\n\t\tthis\r\n\t\t\t._moveStart(zoomChanged, false)\r\n\t\t\t._move(center, zoom)\r\n\t\t\t._moveEnd(zoomChanged);\r\n\r\n\t\t// @event viewreset: Event\r\n\t\t// Fired when the map needs to redraw its content (this usually happens\r\n\t\t// on map zoom or load). Very useful for creating custom overlays.\r\n\t\tthis.fire('viewreset');\r\n\r\n\t\t// @event load: Event\r\n\t\t// Fired when the map is initialized (when its center and zoom are set\r\n\t\t// for the first time).\r\n\t\tif (loading) {\r\n\t\t\tthis.fire('load');\r\n\t\t}\r\n\t},\r\n\r\n\t_moveStart: function (zoomChanged, noMoveStart) {\r\n\t\t// @event zoomstart: Event\r\n\t\t// Fired when the map zoom is about to change (e.g. before zoom animation).\r\n\t\t// @event movestart: Event\r\n\t\t// Fired when the view of the map starts changing (e.g. user starts dragging the map).\r\n\t\tif (zoomChanged) {\r\n\t\t\tthis.fire('zoomstart');\r\n\t\t}\r\n\t\tif (!noMoveStart) {\r\n\t\t\tthis.fire('movestart');\r\n\t\t}\r\n\t\treturn this;\r\n\t},\r\n\r\n\t_move: function (center, zoom, data) {\r\n\t\tif (zoom === undefined) {\r\n\t\t\tzoom = this._zoom;\r\n\t\t}\r\n\t\tvar zoomChanged = this._zoom !== zoom;\r\n\r\n\t\tthis._zoom = zoom;\r\n\t\tthis._lastCenter = center;\r\n\t\tthis._pixelOrigin = this._getNewPixelOrigin(center);\r\n\r\n\t\t// @event zoom: Event\r\n\t\t// Fired repeatedly during any change in zoom level, including zoom\r\n\t\t// and fly animations.\r\n\t\tif (zoomChanged || (data && data.pinch)) {\t// Always fire 'zoom' if pinching because #3530\r\n\t\t\tthis.fire('zoom', data);\r\n\t\t}\r\n\r\n\t\t// @event move: Event\r\n\t\t// Fired repeatedly during any movement of the map, including pan and\r\n\t\t// fly animations.\r\n\t\treturn this.fire('move', data);\r\n\t},\r\n\r\n\t_moveEnd: function (zoomChanged) {\r\n\t\t// @event zoomend: Event\r\n\t\t// Fired when the map has changed, after any animations.\r\n\t\tif (zoomChanged) {\r\n\t\t\tthis.fire('zoomend');\r\n\t\t}\r\n\r\n\t\t// @event moveend: Event\r\n\t\t// Fired when the center of the map stops changing (e.g. user stopped\r\n\t\t// dragging the map).\r\n\t\treturn this.fire('moveend');\r\n\t},\r\n\r\n\t_stop: function () {\r\n\t\tcancelAnimFrame(this._flyToFrame);\r\n\t\tif (this._panAnim) {\r\n\t\t\tthis._panAnim.stop();\r\n\t\t}\r\n\t\treturn this;\r\n\t},\r\n\r\n\t_rawPanBy: function (offset) {\r\n\t\tsetPosition(this._mapPane, this._getMapPanePos().subtract(offset));\r\n\t},\r\n\r\n\t_getZoomSpan: function () {\r\n\t\treturn this.getMaxZoom() - this.getMinZoom();\r\n\t},\r\n\r\n\t_panInsideMaxBounds: function () {\r\n\t\tif (!this._enforcingBounds) {\r\n\t\t\tthis.panInsideBounds(this.options.maxBounds);\r\n\t\t}\r\n\t},\r\n\r\n\t_checkIfLoaded: function () {\r\n\t\tif (!this._loaded) {\r\n\t\t\tthrow new Error('Set map center and zoom first.');\r\n\t\t}\r\n\t},\r\n\r\n\t// DOM event handling\r\n\r\n\t// @section Interaction events\r\n\t_initEvents: function (remove$$1) {\r\n\t\tthis._targets = {};\r\n\t\tthis._targets[stamp(this._container)] = this;\r\n\r\n\t\tvar onOff = remove$$1 ? off : on;\r\n\r\n\t\t// @event click: MouseEvent\r\n\t\t// Fired when the user clicks (or taps) the map.\r\n\t\t// @event dblclick: MouseEvent\r\n\t\t// Fired when the user double-clicks (or double-taps) the map.\r\n\t\t// @event mousedown: MouseEvent\r\n\t\t// Fired when the user pushes the mouse button on the map.\r\n\t\t// @event mouseup: MouseEvent\r\n\t\t// Fired when the user releases the mouse button on the map.\r\n\t\t// @event mouseover: MouseEvent\r\n\t\t// Fired when the mouse enters the map.\r\n\t\t// @event mouseout: MouseEvent\r\n\t\t// Fired when the mouse leaves the map.\r\n\t\t// @event mousemove: MouseEvent\r\n\t\t// Fired while the mouse moves over the map.\r\n\t\t// @event contextmenu: MouseEvent\r\n\t\t// Fired when the user pushes the right mouse button on the map, prevents\r\n\t\t// default browser context menu from showing if there are listeners on\r\n\t\t// this event. Also fired on mobile when the user holds a single touch\r\n\t\t// for a second (also called long press).\r\n\t\t// @event keypress: KeyboardEvent\r\n\t\t// Fired when the user presses a key from the keyboard while the map is focused.\r\n\t\tonOff(this._container, 'click dblclick mousedown mouseup ' +\r\n\t\t\t'mouseover mouseout mousemove contextmenu keypress', this._handleDOMEvent, this);\r\n\r\n\t\tif (this.options.trackResize) {\r\n\t\t\tonOff(window, 'resize', this._onResize, this);\r\n\t\t}\r\n\r\n\t\tif (any3d && this.options.transform3DLimit) {\r\n\t\t\t(remove$$1 ? this.off : this.on).call(this, 'moveend', this._onMoveEnd);\r\n\t\t}\r\n\t},\r\n\r\n\t_onResize: function () {\r\n\t\tcancelAnimFrame(this._resizeRequest);\r\n\t\tthis._resizeRequest = requestAnimFrame(\r\n\t\t function () { this.invalidateSize({debounceMoveend: true}); }, this);\r\n\t},\r\n\r\n\t_onScroll: function () {\r\n\t\tthis._container.scrollTop = 0;\r\n\t\tthis._container.scrollLeft = 0;\r\n\t},\r\n\r\n\t_onMoveEnd: function () {\r\n\t\tvar pos = this._getMapPanePos();\r\n\t\tif (Math.max(Math.abs(pos.x), Math.abs(pos.y)) >= this.options.transform3DLimit) {\r\n\t\t\t// https://bugzilla.mozilla.org/show_bug.cgi?id=1203873 but Webkit also have\r\n\t\t\t// a pixel offset on very high values, see: http://jsfiddle.net/dg6r5hhb/\r\n\t\t\tthis._resetView(this.getCenter(), this.getZoom());\r\n\t\t}\r\n\t},\r\n\r\n\t_findEventTargets: function (e, type) {\r\n\t\tvar targets = [],\r\n\t\t target,\r\n\t\t isHover = type === 'mouseout' || type === 'mouseover',\r\n\t\t src = e.target || e.srcElement,\r\n\t\t dragging = false;\r\n\r\n\t\twhile (src) {\r\n\t\t\ttarget = this._targets[stamp(src)];\r\n\t\t\tif (target && (type === 'click' || type === 'preclick') && !e._simulated && this._draggableMoved(target)) {\r\n\t\t\t\t// Prevent firing click after you just dragged an object.\r\n\t\t\t\tdragging = true;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tif (target && target.listens(type, true)) {\r\n\t\t\t\tif (isHover && !isExternalTarget(src, e)) { break; }\r\n\t\t\t\ttargets.push(target);\r\n\t\t\t\tif (isHover) { break; }\r\n\t\t\t}\r\n\t\t\tif (src === this._container) { break; }\r\n\t\t\tsrc = src.parentNode;\r\n\t\t}\r\n\t\tif (!targets.length && !dragging && !isHover && isExternalTarget(src, e)) {\r\n\t\t\ttargets = [this];\r\n\t\t}\r\n\t\treturn targets;\r\n\t},\r\n\r\n\t_handleDOMEvent: function (e) {\r\n\t\tif (!this._loaded || skipped(e)) { return; }\r\n\r\n\t\tvar type = e.type;\r\n\r\n\t\tif (type === 'mousedown' || type === 'keypress') {\r\n\t\t\t// prevents outline when clicking on keyboard-focusable element\r\n\t\t\tpreventOutline(e.target || e.srcElement);\r\n\t\t}\r\n\r\n\t\tthis._fireDOMEvent(e, type);\r\n\t},\r\n\r\n\t_mouseEvents: ['click', 'dblclick', 'mouseover', 'mouseout', 'contextmenu'],\r\n\r\n\t_fireDOMEvent: function (e, type, targets) {\r\n\r\n\t\tif (e.type === 'click') {\r\n\t\t\t// Fire a synthetic 'preclick' event which propagates up (mainly for closing popups).\r\n\t\t\t// @event preclick: MouseEvent\r\n\t\t\t// Fired before mouse click on the map (sometimes useful when you\r\n\t\t\t// want something to happen on click before any existing click\r\n\t\t\t// handlers start running).\r\n\t\t\tvar synth = extend({}, e);\r\n\t\t\tsynth.type = 'preclick';\r\n\t\t\tthis._fireDOMEvent(synth, synth.type, targets);\r\n\t\t}\r\n\r\n\t\tif (e._stopped) { return; }\r\n\r\n\t\t// Find the layer the event is propagating from and its parents.\r\n\t\ttargets = (targets || []).concat(this._findEventTargets(e, type));\r\n\r\n\t\tif (!targets.length) { return; }\r\n\r\n\t\tvar target = targets[0];\r\n\t\tif (type === 'contextmenu' && target.listens(type, true)) {\r\n\t\t\tpreventDefault(e);\r\n\t\t}\r\n\r\n\t\tvar data = {\r\n\t\t\toriginalEvent: e\r\n\t\t};\r\n\r\n\t\tif (e.type !== 'keypress') {\r\n\t\t\tvar isMarker = target.getLatLng && (!target._radius || target._radius <= 10);\r\n\t\t\tdata.containerPoint = isMarker ?\r\n\t\t\t\tthis.latLngToContainerPoint(target.getLatLng()) : this.mouseEventToContainerPoint(e);\r\n\t\t\tdata.layerPoint = this.containerPointToLayerPoint(data.containerPoint);\r\n\t\t\tdata.latlng = isMarker ? target.getLatLng() : this.layerPointToLatLng(data.layerPoint);\r\n\t\t}\r\n\r\n\t\tfor (var i = 0; i < targets.length; i++) {\r\n\t\t\ttargets[i].fire(type, data, true);\r\n\t\t\tif (data.originalEvent._stopped ||\r\n\t\t\t\t(targets[i].options.bubblingMouseEvents === false && indexOf(this._mouseEvents, type) !== -1)) { return; }\r\n\t\t}\r\n\t},\r\n\r\n\t_draggableMoved: function (obj) {\r\n\t\tobj = obj.dragging && obj.dragging.enabled() ? obj : this;\r\n\t\treturn (obj.dragging && obj.dragging.moved()) || (this.boxZoom && this.boxZoom.moved());\r\n\t},\r\n\r\n\t_clearHandlers: function () {\r\n\t\tfor (var i = 0, len = this._handlers.length; i < len; i++) {\r\n\t\t\tthis._handlers[i].disable();\r\n\t\t}\r\n\t},\r\n\r\n\t// @section Other Methods\r\n\r\n\t// @method whenReady(fn: Function, context?: Object): this\r\n\t// Runs the given function `fn` when the map gets initialized with\r\n\t// a view (center and zoom) and at least one layer, or immediately\r\n\t// if it's already initialized, optionally passing a function context.\r\n\twhenReady: function (callback, context) {\r\n\t\tif (this._loaded) {\r\n\t\t\tcallback.call(context || this, {target: this});\r\n\t\t} else {\r\n\t\t\tthis.on('load', callback, context);\r\n\t\t}\r\n\t\treturn this;\r\n\t},\r\n\r\n\r\n\t// private methods for getting map state\r\n\r\n\t_getMapPanePos: function () {\r\n\t\treturn getPosition(this._mapPane) || new Point(0, 0);\r\n\t},\r\n\r\n\t_moved: function () {\r\n\t\tvar pos = this._getMapPanePos();\r\n\t\treturn pos && !pos.equals([0, 0]);\r\n\t},\r\n\r\n\t_getTopLeftPoint: function (center, zoom) {\r\n\t\tvar pixelOrigin = center && zoom !== undefined ?\r\n\t\t\tthis._getNewPixelOrigin(center, zoom) :\r\n\t\t\tthis.getPixelOrigin();\r\n\t\treturn pixelOrigin.subtract(this._getMapPanePos());\r\n\t},\r\n\r\n\t_getNewPixelOrigin: function (center, zoom) {\r\n\t\tvar viewHalf = this.getSize()._divideBy(2);\r\n\t\treturn this.project(center, zoom)._subtract(viewHalf)._add(this._getMapPanePos())._round();\r\n\t},\r\n\r\n\t_latLngToNewLayerPoint: function (latlng, zoom, center) {\r\n\t\tvar topLeft = this._getNewPixelOrigin(center, zoom);\r\n\t\treturn this.project(latlng, zoom)._subtract(topLeft);\r\n\t},\r\n\r\n\t_latLngBoundsToNewLayerBounds: function (latLngBounds, zoom, center) {\r\n\t\tvar topLeft = this._getNewPixelOrigin(center, zoom);\r\n\t\treturn toBounds([\r\n\t\t\tthis.project(latLngBounds.getSouthWest(), zoom)._subtract(topLeft),\r\n\t\t\tthis.project(latLngBounds.getNorthWest(), zoom)._subtract(topLeft),\r\n\t\t\tthis.project(latLngBounds.getSouthEast(), zoom)._subtract(topLeft),\r\n\t\t\tthis.project(latLngBounds.getNorthEast(), zoom)._subtract(topLeft)\r\n\t\t]);\r\n\t},\r\n\r\n\t// layer point of the current center\r\n\t_getCenterLayerPoint: function () {\r\n\t\treturn this.containerPointToLayerPoint(this.getSize()._divideBy(2));\r\n\t},\r\n\r\n\t// offset of the specified place to the current center in pixels\r\n\t_getCenterOffset: function (latlng) {\r\n\t\treturn this.latLngToLayerPoint(latlng).subtract(this._getCenterLayerPoint());\r\n\t},\r\n\r\n\t// adjust center for view to get inside bounds\r\n\t_limitCenter: function (center, zoom, bounds) {\r\n\r\n\t\tif (!bounds) { return center; }\r\n\r\n\t\tvar centerPoint = this.project(center, zoom),\r\n\t\t viewHalf = this.getSize().divideBy(2),\r\n\t\t viewBounds = new Bounds(centerPoint.subtract(viewHalf), centerPoint.add(viewHalf)),\r\n\t\t offset = this._getBoundsOffset(viewBounds, bounds, zoom);\r\n\r\n\t\t// If offset is less than a pixel, ignore.\r\n\t\t// This prevents unstable projections from getting into\r\n\t\t// an infinite loop of tiny offsets.\r\n\t\tif (offset.round().equals([0, 0])) {\r\n\t\t\treturn center;\r\n\t\t}\r\n\r\n\t\treturn this.unproject(centerPoint.add(offset), zoom);\r\n\t},\r\n\r\n\t// adjust offset for view to get inside bounds\r\n\t_limitOffset: function (offset, bounds) {\r\n\t\tif (!bounds) { return offset; }\r\n\r\n\t\tvar viewBounds = this.getPixelBounds(),\r\n\t\t newBounds = new Bounds(viewBounds.min.add(offset), viewBounds.max.add(offset));\r\n\r\n\t\treturn offset.add(this._getBoundsOffset(newBounds, bounds));\r\n\t},\r\n\r\n\t// returns offset needed for pxBounds to get inside maxBounds at a specified zoom\r\n\t_getBoundsOffset: function (pxBounds, maxBounds, zoom) {\r\n\t\tvar projectedMaxBounds = toBounds(\r\n\t\t this.project(maxBounds.getNorthEast(), zoom),\r\n\t\t this.project(maxBounds.getSouthWest(), zoom)\r\n\t\t ),\r\n\t\t minOffset = projectedMaxBounds.min.subtract(pxBounds.min),\r\n\t\t maxOffset = projectedMaxBounds.max.subtract(pxBounds.max),\r\n\r\n\t\t dx = this._rebound(minOffset.x, -maxOffset.x),\r\n\t\t dy = this._rebound(minOffset.y, -maxOffset.y);\r\n\r\n\t\treturn new Point(dx, dy);\r\n\t},\r\n\r\n\t_rebound: function (left, right) {\r\n\t\treturn left + right > 0 ?\r\n\t\t\tMath.round(left - right) / 2 :\r\n\t\t\tMath.max(0, Math.ceil(left)) - Math.max(0, Math.floor(right));\r\n\t},\r\n\r\n\t_limitZoom: function (zoom) {\r\n\t\tvar min = this.getMinZoom(),\r\n\t\t max = this.getMaxZoom(),\r\n\t\t snap = any3d ? this.options.zoomSnap : 1;\r\n\t\tif (snap) {\r\n\t\t\tzoom = Math.round(zoom / snap) * snap;\r\n\t\t}\r\n\t\treturn Math.max(min, Math.min(max, zoom));\r\n\t},\r\n\r\n\t_onPanTransitionStep: function () {\r\n\t\tthis.fire('move');\r\n\t},\r\n\r\n\t_onPanTransitionEnd: function () {\r\n\t\tremoveClass(this._mapPane, 'leaflet-pan-anim');\r\n\t\tthis.fire('moveend');\r\n\t},\r\n\r\n\t_tryAnimatedPan: function (center, options) {\r\n\t\t// difference between the new and current centers in pixels\r\n\t\tvar offset = this._getCenterOffset(center)._trunc();\r\n\r\n\t\t// don't animate too far unless animate: true specified in options\r\n\t\tif ((options && options.animate) !== true && !this.getSize().contains(offset)) { return false; }\r\n\r\n\t\tthis.panBy(offset, options);\r\n\r\n\t\treturn true;\r\n\t},\r\n\r\n\t_createAnimProxy: function () {\r\n\r\n\t\tvar proxy = this._proxy = create$1('div', 'leaflet-proxy leaflet-zoom-animated');\r\n\t\tthis._panes.mapPane.appendChild(proxy);\r\n\r\n\t\tthis.on('zoomanim', function (e) {\r\n\t\t\tvar prop = TRANSFORM,\r\n\t\t\t transform = this._proxy.style[prop];\r\n\r\n\t\t\tsetTransform(this._proxy, this.project(e.center, e.zoom), this.getZoomScale(e.zoom, 1));\r\n\r\n\t\t\t// workaround for case when transform is the same and so transitionend event is not fired\r\n\t\t\tif (transform === this._proxy.style[prop] && this._animatingZoom) {\r\n\t\t\t\tthis._onZoomTransitionEnd();\r\n\t\t\t}\r\n\t\t}, this);\r\n\r\n\t\tthis.on('load moveend', function () {\r\n\t\t\tvar c = this.getCenter(),\r\n\t\t\t z = this.getZoom();\r\n\t\t\tsetTransform(this._proxy, this.project(c, z), this.getZoomScale(z, 1));\r\n\t\t}, this);\r\n\r\n\t\tthis._on('unload', this._destroyAnimProxy, this);\r\n\t},\r\n\r\n\t_destroyAnimProxy: function () {\r\n\t\tremove(this._proxy);\r\n\t\tdelete this._proxy;\r\n\t},\r\n\r\n\t_catchTransitionEnd: function (e) {\r\n\t\tif (this._animatingZoom && e.propertyName.indexOf('transform') >= 0) {\r\n\t\t\tthis._onZoomTransitionEnd();\r\n\t\t}\r\n\t},\r\n\r\n\t_nothingToAnimate: function () {\r\n\t\treturn !this._container.getElementsByClassName('leaflet-zoom-animated').length;\r\n\t},\r\n\r\n\t_tryAnimatedZoom: function (center, zoom, options) {\r\n\r\n\t\tif (this._animatingZoom) { return true; }\r\n\r\n\t\toptions = options || {};\r\n\r\n\t\t// don't animate if disabled, not supported or zoom difference is too large\r\n\t\tif (!this._zoomAnimated || options.animate === false || this._nothingToAnimate() ||\r\n\t\t Math.abs(zoom - this._zoom) > this.options.zoomAnimationThreshold) { return false; }\r\n\r\n\t\t// offset is the pixel coords of the zoom origin relative to the current center\r\n\t\tvar scale = this.getZoomScale(zoom),\r\n\t\t offset = this._getCenterOffset(center)._divideBy(1 - 1 / scale);\r\n\r\n\t\t// don't animate if the zoom origin isn't within one screen from the current center, unless forced\r\n\t\tif (options.animate !== true && !this.getSize().contains(offset)) { return false; }\r\n\r\n\t\trequestAnimFrame(function () {\r\n\t\t\tthis\r\n\t\t\t ._moveStart(true, false)\r\n\t\t\t ._animateZoom(center, zoom, true);\r\n\t\t}, this);\r\n\r\n\t\treturn true;\r\n\t},\r\n\r\n\t_animateZoom: function (center, zoom, startAnim, noUpdate) {\r\n\t\tif (!this._mapPane) { return; }\r\n\r\n\t\tif (startAnim) {\r\n\t\t\tthis._animatingZoom = true;\r\n\r\n\t\t\t// remember what center/zoom to set after animation\r\n\t\t\tthis._animateToCenter = center;\r\n\t\t\tthis._animateToZoom = zoom;\r\n\r\n\t\t\taddClass(this._mapPane, 'leaflet-zoom-anim');\r\n\t\t}\r\n\r\n\t\t// @event zoomanim: ZoomAnimEvent\r\n\t\t// Fired on every frame of a zoom animation\r\n\t\tthis.fire('zoomanim', {\r\n\t\t\tcenter: center,\r\n\t\t\tzoom: zoom,\r\n\t\t\tnoUpdate: noUpdate\r\n\t\t});\r\n\r\n\t\t// Work around webkit not firing 'transitionend', see https://github.com/Leaflet/Leaflet/issues/3689, 2693\r\n\t\tsetTimeout(bind(this._onZoomTransitionEnd, this), 250);\r\n\t},\r\n\r\n\t_onZoomTransitionEnd: function () {\r\n\t\tif (!this._animatingZoom) { return; }\r\n\r\n\t\tif (this._mapPane) {\r\n\t\t\tremoveClass(this._mapPane, 'leaflet-zoom-anim');\r\n\t\t}\r\n\r\n\t\tthis._animatingZoom = false;\r\n\r\n\t\tthis._move(this._animateToCenter, this._animateToZoom);\r\n\r\n\t\t// This anim frame should prevent an obscure iOS webkit tile loading race condition.\r\n\t\trequestAnimFrame(function () {\r\n\t\t\tthis._moveEnd(true);\r\n\t\t}, this);\r\n\t}\r\n});\r\n\r\n// @section\r\n\r\n// @factory L.map(id: String, options?: Map options)\r\n// Instantiates a map object given the DOM ID of a `<div>` element\r\n// and optionally an object literal with `Map options`.\r\n//\r\n// @alternative\r\n// @factory L.map(el: HTMLElement, options?: Map options)\r\n// Instantiates a map object given an instance of a `<div>` HTML element\r\n// and optionally an object literal with `Map options`.\r\nfunction createMap(id, options) {\r\n\treturn new Map(id, options);\r\n}\n\n/*\r\n * @class Control\r\n * @aka L.Control\r\n * @inherits Class\r\n *\r\n * L.Control is a base class for implementing map controls. Handles positioning.\r\n * All other controls extend from this class.\r\n */\r\n\r\nvar Control = Class.extend({\r\n\t// @section\r\n\t// @aka Control options\r\n\toptions: {\r\n\t\t// @option position: String = 'topright'\r\n\t\t// The position of the control (one of the map corners). Possible values are `'topleft'`,\r\n\t\t// `'topright'`, `'bottomleft'` or `'bottomright'`\r\n\t\tposition: 'topright'\r\n\t},\r\n\r\n\tinitialize: function (options) {\r\n\t\tsetOptions(this, options);\r\n\t},\r\n\r\n\t/* @section\r\n\t * Classes extending L.Control will inherit the following methods:\r\n\t *\r\n\t * @method getPosition: string\r\n\t * Returns the position of the control.\r\n\t */\r\n\tgetPosition: function () {\r\n\t\treturn this.options.position;\r\n\t},\r\n\r\n\t// @method setPosition(position: string): this\r\n\t// Sets the position of the control.\r\n\tsetPosition: function (position) {\r\n\t\tvar map = this._map;\r\n\r\n\t\tif (map) {\r\n\t\t\tmap.removeControl(this);\r\n\t\t}\r\n\r\n\t\tthis.options.position = position;\r\n\r\n\t\tif (map) {\r\n\t\t\tmap.addControl(this);\r\n\t\t}\r\n\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method getContainer: HTMLElement\r\n\t// Returns the HTMLElement that contains the control.\r\n\tgetContainer: function () {\r\n\t\treturn this._container;\r\n\t},\r\n\r\n\t// @method addTo(map: Map): this\r\n\t// Adds the control to the given map.\r\n\taddTo: function (map) {\r\n\t\tthis.remove();\r\n\t\tthis._map = map;\r\n\r\n\t\tvar container = this._container = this.onAdd(map),\r\n\t\t pos = this.getPosition(),\r\n\t\t corner = map._controlCorners[pos];\r\n\r\n\t\taddClass(container, 'leaflet-control');\r\n\r\n\t\tif (pos.indexOf('bottom') !== -1) {\r\n\t\t\tcorner.insertBefore(container, corner.firstChild);\r\n\t\t} else {\r\n\t\t\tcorner.appendChild(container);\r\n\t\t}\r\n\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method remove: this\r\n\t// Removes the control from the map it is currently active on.\r\n\tremove: function () {\r\n\t\tif (!this._map) {\r\n\t\t\treturn this;\r\n\t\t}\r\n\r\n\t\tremove(this._container);\r\n\r\n\t\tif (this.onRemove) {\r\n\t\t\tthis.onRemove(this._map);\r\n\t\t}\r\n\r\n\t\tthis._map = null;\r\n\r\n\t\treturn this;\r\n\t},\r\n\r\n\t_refocusOnMap: function (e) {\r\n\t\t// if map exists and event is not a keyboard event\r\n\t\tif (this._map && e && e.screenX > 0 && e.screenY > 0) {\r\n\t\t\tthis._map.getContainer().focus();\r\n\t\t}\r\n\t}\r\n});\r\n\r\nvar control = function (options) {\r\n\treturn new Control(options);\r\n};\r\n\r\n/* @section Extension methods\r\n * @uninheritable\r\n *\r\n * Every control should extend from `L.Control` and (re-)implement the following methods.\r\n *\r\n * @method onAdd(map: Map): HTMLElement\r\n * Should return the container DOM element for the control and add listeners on relevant map events. Called on [`control.addTo(map)`](#control-addTo).\r\n *\r\n * @method onRemove(map: Map)\r\n * Optional method. Should contain all clean up code that removes the listeners previously added in [`onAdd`](#control-onadd). Called on [`control.remove()`](#control-remove).\r\n */\r\n\r\n/* @namespace Map\r\n * @section Methods for Layers and Controls\r\n */\r\nMap.include({\r\n\t// @method addControl(control: Control): this\r\n\t// Adds the given control to the map\r\n\taddControl: function (control) {\r\n\t\tcontrol.addTo(this);\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method removeControl(control: Control): this\r\n\t// Removes the given control from the map\r\n\tremoveControl: function (control) {\r\n\t\tcontrol.remove();\r\n\t\treturn this;\r\n\t},\r\n\r\n\t_initControlPos: function () {\r\n\t\tvar corners = this._controlCorners = {},\r\n\t\t l = 'leaflet-',\r\n\t\t container = this._controlContainer =\r\n\t\t create$1('div', l + 'control-container', this._container);\r\n\r\n\t\tfunction createCorner(vSide, hSide) {\r\n\t\t\tvar className = l + vSide + ' ' + l + hSide;\r\n\r\n\t\t\tcorners[vSide + hSide] = create$1('div', className, container);\r\n\t\t}\r\n\r\n\t\tcreateCorner('top', 'left');\r\n\t\tcreateCorner('top', 'right');\r\n\t\tcreateCorner('bottom', 'left');\r\n\t\tcreateCorner('bottom', 'right');\r\n\t},\r\n\r\n\t_clearControlPos: function () {\r\n\t\tfor (var i in this._controlCorners) {\r\n\t\t\tremove(this._controlCorners[i]);\r\n\t\t}\r\n\t\tremove(this._controlContainer);\r\n\t\tdelete this._controlCorners;\r\n\t\tdelete this._controlContainer;\r\n\t}\r\n});\n\n/*\r\n * @class Control.Layers\r\n * @aka L.Control.Layers\r\n * @inherits Control\r\n *\r\n * The layers control gives users the ability to switch between different base layers and switch overlays on/off (check out the [detailed example](http://leafletjs.com/examples/layers-control/)). Extends `Control`.\r\n *\r\n * @example\r\n *\r\n * ```js\r\n * var baseLayers = {\r\n * \t\"Mapbox\": mapbox,\r\n * \t\"OpenStreetMap\": osm\r\n * };\r\n *\r\n * var overlays = {\r\n * \t\"Marker\": marker,\r\n * \t\"Roads\": roadsLayer\r\n * };\r\n *\r\n * L.control.layers(baseLayers, overlays).addTo(map);\r\n * ```\r\n *\r\n * The `baseLayers` and `overlays` parameters are object literals with layer names as keys and `Layer` objects as values:\r\n *\r\n * ```js\r\n * {\r\n * \"<someName1>\": layer1,\r\n * \"<someName2>\": layer2\r\n * }\r\n * ```\r\n *\r\n * The layer names can contain HTML, which allows you to add additional styling to the items:\r\n *\r\n * ```js\r\n * {\"<img src='my-layer-icon' /> <span class='my-layer-item'>My Layer</span>\": myLayer}\r\n * ```\r\n */\r\n\r\nvar Layers = Control.extend({\r\n\t// @section\r\n\t// @aka Control.Layers options\r\n\toptions: {\r\n\t\t// @option collapsed: Boolean = true\r\n\t\t// If `true`, the control will be collapsed into an icon and expanded on mouse hover or touch.\r\n\t\tcollapsed: true,\r\n\t\tposition: 'topright',\r\n\r\n\t\t// @option autoZIndex: Boolean = true\r\n\t\t// If `true`, the control will assign zIndexes in increasing order to all of its layers so that the order is preserved when switching them on/off.\r\n\t\tautoZIndex: true,\r\n\r\n\t\t// @option hideSingleBase: Boolean = false\r\n\t\t// If `true`, the base layers in the control will be hidden when there is only one.\r\n\t\thideSingleBase: false,\r\n\r\n\t\t// @option sortLayers: Boolean = false\r\n\t\t// Whether to sort the layers. When `false`, layers will keep the order\r\n\t\t// in which they were added to the control.\r\n\t\tsortLayers: false,\r\n\r\n\t\t// @option sortFunction: Function = *\r\n\t\t// A [compare function](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array/sort)\r\n\t\t// that will be used for sorting the layers, when `sortLayers` is `true`.\r\n\t\t// The function receives both the `L.Layer` instances and their names, as in\r\n\t\t// `sortFunction(layerA, layerB, nameA, nameB)`.\r\n\t\t// By default, it sorts layers alphabetically by their name.\r\n\t\tsortFunction: function (layerA, layerB, nameA, nameB) {\r\n\t\t\treturn nameA < nameB ? -1 : (nameB < nameA ? 1 : 0);\r\n\t\t}\r\n\t},\r\n\r\n\tinitialize: function (baseLayers, overlays, options) {\r\n\t\tsetOptions(this, options);\r\n\r\n\t\tthis._layerControlInputs = [];\r\n\t\tthis._layers = [];\r\n\t\tthis._lastZIndex = 0;\r\n\t\tthis._handlingClick = false;\r\n\r\n\t\tfor (var i in baseLayers) {\r\n\t\t\tthis._addLayer(baseLayers[i], i);\r\n\t\t}\r\n\r\n\t\tfor (i in overlays) {\r\n\t\t\tthis._addLayer(overlays[i], i, true);\r\n\t\t}\r\n\t},\r\n\r\n\tonAdd: function (map) {\r\n\t\tthis._initLayout();\r\n\t\tthis._update();\r\n\r\n\t\tthis._map = map;\r\n\t\tmap.on('zoomend', this._checkDisabledLayers, this);\r\n\r\n\t\tfor (var i = 0; i < this._layers.length; i++) {\r\n\t\t\tthis._layers[i].layer.on('add remove', this._onLayerChange, this);\r\n\t\t}\r\n\r\n\t\treturn this._container;\r\n\t},\r\n\r\n\taddTo: function (map) {\r\n\t\tControl.prototype.addTo.call(this, map);\r\n\t\t// Trigger expand after Layers Control has been inserted into DOM so that is now has an actual height.\r\n\t\treturn this._expandIfNotCollapsed();\r\n\t},\r\n\r\n\tonRemove: function () {\r\n\t\tthis._map.off('zoomend', this._checkDisabledLayers, this);\r\n\r\n\t\tfor (var i = 0; i < this._layers.length; i++) {\r\n\t\t\tthis._layers[i].layer.off('add remove', this._onLayerChange, this);\r\n\t\t}\r\n\t},\r\n\r\n\t// @method addBaseLayer(layer: Layer, name: String): this\r\n\t// Adds a base layer (radio button entry) with the given name to the control.\r\n\taddBaseLayer: function (layer, name) {\r\n\t\tthis._addLayer(layer, name);\r\n\t\treturn (this._map) ? this._update() : this;\r\n\t},\r\n\r\n\t// @method addOverlay(layer: Layer, name: String): this\r\n\t// Adds an overlay (checkbox entry) with the given name to the control.\r\n\taddOverlay: function (layer, name) {\r\n\t\tthis._addLayer(layer, name, true);\r\n\t\treturn (this._map) ? this._update() : this;\r\n\t},\r\n\r\n\t// @method removeLayer(layer: Layer): this\r\n\t// Remove the given layer from the control.\r\n\tremoveLayer: function (layer) {\r\n\t\tlayer.off('add remove', this._onLayerChange, this);\r\n\r\n\t\tvar obj = this._getLayer(stamp(layer));\r\n\t\tif (obj) {\r\n\t\t\tthis._layers.splice(this._layers.indexOf(obj), 1);\r\n\t\t}\r\n\t\treturn (this._map) ? this._update() : this;\r\n\t},\r\n\r\n\t// @method expand(): this\r\n\t// Expand the control container if collapsed.\r\n\texpand: function () {\r\n\t\taddClass(this._container, 'leaflet-control-layers-expanded');\r\n\t\tthis._form.style.height = null;\r\n\t\tvar acceptableHeight = this._map.getSize().y - (this._container.offsetTop + 50);\r\n\t\tif (acceptableHeight < this._form.clientHeight) {\r\n\t\t\taddClass(this._form, 'leaflet-control-layers-scrollbar');\r\n\t\t\tthis._form.style.height = acceptableHeight + 'px';\r\n\t\t} else {\r\n\t\t\tremoveClass(this._form, 'leaflet-control-layers-scrollbar');\r\n\t\t}\r\n\t\tthis._checkDisabledLayers();\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method collapse(): this\r\n\t// Collapse the control container if expanded.\r\n\tcollapse: function () {\r\n\t\tremoveClass(this._container, 'leaflet-control-layers-expanded');\r\n\t\treturn this;\r\n\t},\r\n\r\n\t_initLayout: function () {\r\n\t\tvar className = 'leaflet-control-layers',\r\n\t\t container = this._container = create$1('div', className),\r\n\t\t collapsed = this.options.collapsed;\r\n\r\n\t\t// makes this work on IE touch devices by stopping it from firing a mouseout event when the touch is released\r\n\t\tcontainer.setAttribute('aria-haspopup', true);\r\n\r\n\t\tdisableClickPropagation(container);\r\n\t\tdisableScrollPropagation(container);\r\n\r\n\t\tvar form = this._form = create$1('form', className + '-list');\r\n\r\n\t\tif (collapsed) {\r\n\t\t\tthis._map.on('click', this.collapse, this);\r\n\r\n\t\t\tif (!android) {\r\n\t\t\t\ton(container, {\r\n\t\t\t\t\tmouseenter: this.expand,\r\n\t\t\t\t\tmouseleave: this.collapse\r\n\t\t\t\t}, this);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tvar link = this._layersLink = create$1('a', className + '-toggle', container);\r\n\t\tlink.href = '#';\r\n\t\tlink.title = 'Layers';\r\n\r\n\t\tif (touch) {\r\n\t\t\ton(link, 'click', stop);\r\n\t\t\ton(link, 'click', this.expand, this);\r\n\t\t} else {\r\n\t\t\ton(link, 'focus', this.expand, this);\r\n\t\t}\r\n\r\n\t\tif (!collapsed) {\r\n\t\t\tthis.expand();\r\n\t\t}\r\n\r\n\t\tthis._baseLayersList = create$1('div', className + '-base', form);\r\n\t\tthis._separator = create$1('div', className + '-separator', form);\r\n\t\tthis._overlaysList = create$1('div', className + '-overlays', form);\r\n\r\n\t\tcontainer.appendChild(form);\r\n\t},\r\n\r\n\t_getLayer: function (id) {\r\n\t\tfor (var i = 0; i < this._layers.length; i++) {\r\n\r\n\t\t\tif (this._layers[i] && stamp(this._layers[i].layer) === id) {\r\n\t\t\t\treturn this._layers[i];\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\r\n\t_addLayer: function (layer, name, overlay) {\r\n\t\tif (this._map) {\r\n\t\t\tlayer.on('add remove', this._onLayerChange, this);\r\n\t\t}\r\n\r\n\t\tthis._layers.push({\r\n\t\t\tlayer: layer,\r\n\t\t\tname: name,\r\n\t\t\toverlay: overlay\r\n\t\t});\r\n\r\n\t\tif (this.options.sortLayers) {\r\n\t\t\tthis._layers.sort(bind(function (a, b) {\r\n\t\t\t\treturn this.options.sortFunction(a.layer, b.layer, a.name, b.name);\r\n\t\t\t}, this));\r\n\t\t}\r\n\r\n\t\tif (this.options.autoZIndex && layer.setZIndex) {\r\n\t\t\tthis._lastZIndex++;\r\n\t\t\tlayer.setZIndex(this._lastZIndex);\r\n\t\t}\r\n\r\n\t\tthis._expandIfNotCollapsed();\r\n\t},\r\n\r\n\t_update: function () {\r\n\t\tif (!this._container) { return this; }\r\n\r\n\t\tempty(this._baseLayersList);\r\n\t\tempty(this._overlaysList);\r\n\r\n\t\tthis._layerControlInputs = [];\r\n\t\tvar baseLayersPresent, overlaysPresent, i, obj, baseLayersCount = 0;\r\n\r\n\t\tfor (i = 0; i < this._layers.length; i++) {\r\n\t\t\tobj = this._layers[i];\r\n\t\t\tthis._addItem(obj);\r\n\t\t\toverlaysPresent = overlaysPresent || obj.overlay;\r\n\t\t\tbaseLayersPresent = baseLayersPresent || !obj.overlay;\r\n\t\t\tbaseLayersCount += !obj.overlay ? 1 : 0;\r\n\t\t}\r\n\r\n\t\t// Hide base layers section if there's only one layer.\r\n\t\tif (this.options.hideSingleBase) {\r\n\t\t\tbaseLayersPresent = baseLayersPresent && baseLayersCount > 1;\r\n\t\t\tthis._baseLayersList.style.display = baseLayersPresent ? '' : 'none';\r\n\t\t}\r\n\r\n\t\tthis._separator.style.display = overlaysPresent && baseLayersPresent ? '' : 'none';\r\n\r\n\t\treturn this;\r\n\t},\r\n\r\n\t_onLayerChange: function (e) {\r\n\t\tif (!this._handlingClick) {\r\n\t\t\tthis._update();\r\n\t\t}\r\n\r\n\t\tvar obj = this._getLayer(stamp(e.target));\r\n\r\n\t\t// @namespace Map\r\n\t\t// @section Layer events\r\n\t\t// @event baselayerchange: LayersControlEvent\r\n\t\t// Fired when the base layer is changed through the [layer control](#control-layers).\r\n\t\t// @event overlayadd: LayersControlEvent\r\n\t\t// Fired when an overlay is selected through the [layer control](#control-layers).\r\n\t\t// @event overlayremove: LayersControlEvent\r\n\t\t// Fired when an overlay is deselected through the [layer control](#control-layers).\r\n\t\t// @namespace Control.Layers\r\n\t\tvar type = obj.overlay ?\r\n\t\t\t(e.type === 'add' ? 'overlayadd' : 'overlayremove') :\r\n\t\t\t(e.type === 'add' ? 'baselayerchange' : null);\r\n\r\n\t\tif (type) {\r\n\t\t\tthis._map.fire(type, obj);\r\n\t\t}\r\n\t},\r\n\r\n\t// IE7 bugs out if you create a radio dynamically, so you have to do it this hacky way (see http://bit.ly/PqYLBe)\r\n\t_createRadioElement: function (name, checked) {\r\n\r\n\t\tvar radioHtml = '<input type=\"radio\" class=\"leaflet-control-layers-selector\" name=\"' +\r\n\t\t\t\tname + '\"' + (checked ? ' checked=\"checked\"' : '') + '/>';\r\n\r\n\t\tvar radioFragment = document.createElement('div');\r\n\t\tradioFragment.innerHTML = radioHtml;\r\n\r\n\t\treturn radioFragment.firstChild;\r\n\t},\r\n\r\n\t_addItem: function (obj) {\r\n\t\tvar label = document.createElement('label'),\r\n\t\t checked = this._map.hasLayer(obj.layer),\r\n\t\t input;\r\n\r\n\t\tif (obj.overlay) {\r\n\t\t\tinput = document.createElement('input');\r\n\t\t\tinput.type = 'checkbox';\r\n\t\t\tinput.className = 'leaflet-control-layers-selector';\r\n\t\t\tinput.defaultChecked = checked;\r\n\t\t} else {\r\n\t\t\tinput = this._createRadioElement('leaflet-base-layers', checked);\r\n\t\t}\r\n\r\n\t\tthis._layerControlInputs.push(input);\r\n\t\tinput.layerId = stamp(obj.layer);\r\n\r\n\t\ton(input, 'click', this._onInputClick, this);\r\n\r\n\t\tvar name = document.createElement('span');\r\n\t\tname.innerHTML = ' ' + obj.name;\r\n\r\n\t\t// Helps from preventing layer control flicker when checkboxes are disabled\r\n\t\t// https://github.com/Leaflet/Leaflet/issues/2771\r\n\t\tvar holder = document.createElement('div');\r\n\r\n\t\tlabel.appendChild(holder);\r\n\t\tholder.appendChild(input);\r\n\t\tholder.appendChild(name);\r\n\r\n\t\tvar container = obj.overlay ? this._overlaysList : this._baseLayersList;\r\n\t\tcontainer.appendChild(label);\r\n\r\n\t\tthis._checkDisabledLayers();\r\n\t\treturn label;\r\n\t},\r\n\r\n\t_onInputClick: function () {\r\n\t\tvar inputs = this._layerControlInputs,\r\n\t\t input, layer;\r\n\t\tvar addedLayers = [],\r\n\t\t removedLayers = [];\r\n\r\n\t\tthis._handlingClick = true;\r\n\r\n\t\tfor (var i = inputs.length - 1; i >= 0; i--) {\r\n\t\t\tinput = inputs[i];\r\n\t\t\tlayer = this._getLayer(input.layerId).layer;\r\n\r\n\t\t\tif (input.checked) {\r\n\t\t\t\taddedLayers.push(layer);\r\n\t\t\t} else if (!input.checked) {\r\n\t\t\t\tremovedLayers.push(layer);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Bugfix issue 2318: Should remove all old layers before readding new ones\r\n\t\tfor (i = 0; i < removedLayers.length; i++) {\r\n\t\t\tif (this._map.hasLayer(removedLayers[i])) {\r\n\t\t\t\tthis._map.removeLayer(removedLayers[i]);\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor (i = 0; i < addedLayers.length; i++) {\r\n\t\t\tif (!this._map.hasLayer(addedLayers[i])) {\r\n\t\t\t\tthis._map.addLayer(addedLayers[i]);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tthis._handlingClick = false;\r\n\r\n\t\tthis._refocusOnMap();\r\n\t},\r\n\r\n\t_checkDisabledLayers: function () {\r\n\t\tvar inputs = this._layerControlInputs,\r\n\t\t input,\r\n\t\t layer,\r\n\t\t zoom = this._map.getZoom();\r\n\r\n\t\tfor (var i = inputs.length - 1; i >= 0; i--) {\r\n\t\t\tinput = inputs[i];\r\n\t\t\tlayer = this._getLayer(input.layerId).layer;\r\n\t\t\tinput.disabled = (layer.options.minZoom !== undefined && zoom < layer.options.minZoom) ||\r\n\t\t\t (layer.options.maxZoom !== undefined && zoom > layer.options.maxZoom);\r\n\r\n\t\t}\r\n\t},\r\n\r\n\t_expandIfNotCollapsed: function () {\r\n\t\tif (this._map && !this.options.collapsed) {\r\n\t\t\tthis.expand();\r\n\t\t}\r\n\t\treturn this;\r\n\t},\r\n\r\n\t_expand: function () {\r\n\t\t// Backward compatibility, remove me in 1.1.\r\n\t\treturn this.expand();\r\n\t},\r\n\r\n\t_collapse: function () {\r\n\t\t// Backward compatibility, remove me in 1.1.\r\n\t\treturn this.collapse();\r\n\t}\r\n\r\n});\r\n\r\n\r\n// @factory L.control.layers(baselayers?: Object, overlays?: Object, options?: Control.Layers options)\r\n// Creates an attribution control with the given layers. Base layers will be switched with radio buttons, while overlays will be switched with checkboxes. Note that all base layers should be passed in the base layers object, but only one should be added to the map during map instantiation.\r\nvar layers = function (baseLayers, overlays, options) {\r\n\treturn new Layers(baseLayers, overlays, options);\r\n};\n\n/*\r\n * @class Control.Zoom\r\n * @aka L.Control.Zoom\r\n * @inherits Control\r\n *\r\n * A basic zoom control with two buttons (zoom in and zoom out). It is put on the map by default unless you set its [`zoomControl` option](#map-zoomcontrol) to `false`. Extends `Control`.\r\n */\r\n\r\nvar Zoom = Control.extend({\r\n\t// @section\r\n\t// @aka Control.Zoom options\r\n\toptions: {\r\n\t\tposition: 'topleft',\r\n\r\n\t\t// @option zoomInText: String = '+'\r\n\t\t// The text set on the 'zoom in' button.\r\n\t\tzoomInText: '+',\r\n\r\n\t\t// @option zoomInTitle: String = 'Zoom in'\r\n\t\t// The title set on the 'zoom in' button.\r\n\t\tzoomInTitle: 'Zoom in',\r\n\r\n\t\t// @option zoomOutText: String = '&#x2212;'\r\n\t\t// The text set on the 'zoom out' button.\r\n\t\tzoomOutText: '&#x2212;',\r\n\r\n\t\t// @option zoomOutTitle: String = 'Zoom out'\r\n\t\t// The title set on the 'zoom out' button.\r\n\t\tzoomOutTitle: 'Zoom out'\r\n\t},\r\n\r\n\tonAdd: function (map) {\r\n\t\tvar zoomName = 'leaflet-control-zoom',\r\n\t\t container = create$1('div', zoomName + ' leaflet-bar'),\r\n\t\t options = this.options;\r\n\r\n\t\tthis._zoomInButton = this._createButton(options.zoomInText, options.zoomInTitle,\r\n\t\t zoomName + '-in', container, this._zoomIn);\r\n\t\tthis._zoomOutButton = this._createButton(options.zoomOutText, options.zoomOutTitle,\r\n\t\t zoomName + '-out', container, this._zoomOut);\r\n\r\n\t\tthis._updateDisabled();\r\n\t\tmap.on('zoomend zoomlevelschange', this._updateDisabled, this);\r\n\r\n\t\treturn container;\r\n\t},\r\n\r\n\tonRemove: function (map) {\r\n\t\tmap.off('zoomend zoomlevelschange', this._updateDisabled, this);\r\n\t},\r\n\r\n\tdisable: function () {\r\n\t\tthis._disabled = true;\r\n\t\tthis._updateDisabled();\r\n\t\treturn this;\r\n\t},\r\n\r\n\tenable: function () {\r\n\t\tthis._disabled = false;\r\n\t\tthis._updateDisabled();\r\n\t\treturn this;\r\n\t},\r\n\r\n\t_zoomIn: function (e) {\r\n\t\tif (!this._disabled && this._map._zoom < this._map.getMaxZoom()) {\r\n\t\t\tthis._map.zoomIn(this._map.options.zoomDelta * (e.shiftKey ? 3 : 1));\r\n\t\t}\r\n\t},\r\n\r\n\t_zoomOut: function (e) {\r\n\t\tif (!this._disabled && this._map._zoom > this._map.getMinZoom()) {\r\n\t\t\tthis._map.zoomOut(this._map.options.zoomDelta * (e.shiftKey ? 3 : 1));\r\n\t\t}\r\n\t},\r\n\r\n\t_createButton: function (html, title, className, container, fn) {\r\n\t\tvar link = create$1('a', className, container);\r\n\t\tlink.innerHTML = html;\r\n\t\tlink.href = '#';\r\n\t\tlink.title = title;\r\n\r\n\t\t/*\r\n\t\t * Will force screen readers like VoiceOver to read this as \"Zoom in - button\"\r\n\t\t */\r\n\t\tlink.setAttribute('role', 'button');\r\n\t\tlink.setAttribute('aria-label', title);\r\n\r\n\t\tdisableClickPropagation(link);\r\n\t\ton(link, 'click', stop);\r\n\t\ton(link, 'click', fn, this);\r\n\t\ton(link, 'click', this._refocusOnMap, this);\r\n\r\n\t\treturn link;\r\n\t},\r\n\r\n\t_updateDisabled: function () {\r\n\t\tvar map = this._map,\r\n\t\t className = 'leaflet-disabled';\r\n\r\n\t\tremoveClass(this._zoomInButton, className);\r\n\t\tremoveClass(this._zoomOutButton, className);\r\n\r\n\t\tif (this._disabled || map._zoom === map.getMinZoom()) {\r\n\t\t\taddClass(this._zoomOutButton, className);\r\n\t\t}\r\n\t\tif (this._disabled || map._zoom === map.getMaxZoom()) {\r\n\t\t\taddClass(this._zoomInButton, className);\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// @namespace Map\r\n// @section Control options\r\n// @option zoomControl: Boolean = true\r\n// Whether a [zoom control](#control-zoom) is added to the map by default.\r\nMap.mergeOptions({\r\n\tzoomControl: true\r\n});\r\n\r\nMap.addInitHook(function () {\r\n\tif (this.options.zoomControl) {\r\n\t\tthis.zoomControl = new Zoom();\r\n\t\tthis.addControl(this.zoomControl);\r\n\t}\r\n});\r\n\r\n// @namespace Control.Zoom\r\n// @factory L.control.zoom(options: Control.Zoom options)\r\n// Creates a zoom control\r\nvar zoom = function (options) {\r\n\treturn new Zoom(options);\r\n};\n\n/*\n * @class Control.Scale\n * @aka L.Control.Scale\n * @inherits Control\n *\n * A simple scale control that shows the scale of the current center of screen in metric (m/km) and imperial (mi/ft) systems. Extends `Control`.\n *\n * @example\n *\n * ```js\n * L.control.scale().addTo(map);\n * ```\n */\n\nvar Scale = Control.extend({\n\t// @section\n\t// @aka Control.Scale options\n\toptions: {\n\t\tposition: 'bottomleft',\n\n\t\t// @option maxWidth: Number = 100\n\t\t// Maximum width of the control in pixels. The width is set dynamically to show round values (e.g. 100, 200, 500).\n\t\tmaxWidth: 100,\n\n\t\t// @option metric: Boolean = True\n\t\t// Whether to show the metric scale line (m/km).\n\t\tmetric: true,\n\n\t\t// @option imperial: Boolean = True\n\t\t// Whether to show the imperial scale line (mi/ft).\n\t\timperial: true\n\n\t\t// @option updateWhenIdle: Boolean = false\n\t\t// If `true`, the control is updated on [`moveend`](#map-moveend), otherwise it's always up-to-date (updated on [`move`](#map-move)).\n\t},\n\n\tonAdd: function (map) {\n\t\tvar className = 'leaflet-control-scale',\n\t\t container = create$1('div', className),\n\t\t options = this.options;\n\n\t\tthis._addScales(options, className + '-line', container);\n\n\t\tmap.on(options.updateWhenIdle ? 'moveend' : 'move', this._update, this);\n\t\tmap.whenReady(this._update, this);\n\n\t\treturn container;\n\t},\n\n\tonRemove: function (map) {\n\t\tmap.off(this.options.updateWhenIdle ? 'moveend' : 'move', this._update, this);\n\t},\n\n\t_addScales: function (options, className, container) {\n\t\tif (options.metric) {\n\t\t\tthis._mScale = create$1('div', className, container);\n\t\t}\n\t\tif (options.imperial) {\n\t\t\tthis._iScale = create$1('div', className, container);\n\t\t}\n\t},\n\n\t_update: function () {\n\t\tvar map = this._map,\n\t\t y = map.getSize().y / 2;\n\n\t\tvar maxMeters = map.distance(\n\t\t\tmap.containerPointToLatLng([0, y]),\n\t\t\tmap.containerPointToLatLng([this.options.maxWidth, y]));\n\n\t\tthis._updateScales(maxMeters);\n\t},\n\n\t_updateScales: function (maxMeters) {\n\t\tif (this.options.metric && maxMeters) {\n\t\t\tthis._updateMetric(maxMeters);\n\t\t}\n\t\tif (this.options.imperial && maxMeters) {\n\t\t\tthis._updateImperial(maxMeters);\n\t\t}\n\t},\n\n\t_updateMetric: function (maxMeters) {\n\t\tvar meters = this._getRoundNum(maxMeters),\n\t\t label = meters < 1000 ? meters + ' m' : (meters / 1000) + ' km';\n\n\t\tthis._updateScale(this._mScale, label, meters / maxMeters);\n\t},\n\n\t_updateImperial: function (maxMeters) {\n\t\tvar maxFeet = maxMeters * 3.2808399,\n\t\t maxMiles, miles, feet;\n\n\t\tif (maxFeet > 5280) {\n\t\t\tmaxMiles = maxFeet / 5280;\n\t\t\tmiles = this._getRoundNum(maxMiles);\n\t\t\tthis._updateScale(this._iScale, miles + ' mi', miles / maxMiles);\n\n\t\t} else {\n\t\t\tfeet = this._getRoundNum(maxFeet);\n\t\t\tthis._updateScale(this._iScale, feet + ' ft', feet / maxFeet);\n\t\t}\n\t},\n\n\t_updateScale: function (scale, text, ratio) {\n\t\tscale.style.width = Math.round(this.options.maxWidth * ratio) + 'px';\n\t\tscale.innerHTML = text;\n\t},\n\n\t_getRoundNum: function (num) {\n\t\tvar pow10 = Math.pow(10, (Math.floor(num) + '').length - 1),\n\t\t d = num / pow10;\n\n\t\td = d >= 10 ? 10 :\n\t\t d >= 5 ? 5 :\n\t\t d >= 3 ? 3 :\n\t\t d >= 2 ? 2 : 1;\n\n\t\treturn pow10 * d;\n\t}\n});\n\n\n// @factory L.control.scale(options?: Control.Scale options)\n// Creates an scale control with the given options.\nvar scale = function (options) {\n\treturn new Scale(options);\n};\n\n/*\r\n * @class Control.Attribution\r\n * @aka L.Control.Attribution\r\n * @inherits Control\r\n *\r\n * The attribution control allows you to display attribution data in a small text box on a map. It is put on the map by default unless you set its [`attributionControl` option](#map-attributioncontrol) to `false`, and it fetches attribution texts from layers with the [`getAttribution` method](#layer-getattribution) automatically. Extends Control.\r\n */\r\n\r\nvar Attribution = Control.extend({\r\n\t// @section\r\n\t// @aka Control.Attribution options\r\n\toptions: {\r\n\t\tposition: 'bottomright',\r\n\r\n\t\t// @option prefix: String = 'Leaflet'\r\n\t\t// The HTML text shown before the attributions. Pass `false` to disable.\r\n\t\tprefix: '<a href=\"http://leafletjs.com\" title=\"A JS library for interactive maps\">Leaflet</a>'\r\n\t},\r\n\r\n\tinitialize: function (options) {\r\n\t\tsetOptions(this, options);\r\n\r\n\t\tthis._attributions = {};\r\n\t},\r\n\r\n\tonAdd: function (map) {\r\n\t\tmap.attributionControl = this;\r\n\t\tthis._container = create$1('div', 'leaflet-control-attribution');\r\n\t\tdisableClickPropagation(this._container);\r\n\r\n\t\t// TODO ugly, refactor\r\n\t\tfor (var i in map._layers) {\r\n\t\t\tif (map._layers[i].getAttribution) {\r\n\t\t\t\tthis.addAttribution(map._layers[i].getAttribution());\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tthis._update();\r\n\r\n\t\treturn this._container;\r\n\t},\r\n\r\n\t// @method setPrefix(prefix: String): this\r\n\t// Sets the text before the attributions.\r\n\tsetPrefix: function (prefix) {\r\n\t\tthis.options.prefix = prefix;\r\n\t\tthis._update();\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method addAttribution(text: String): this\r\n\t// Adds an attribution text (e.g. `'Vector data &copy; Mapbox'`).\r\n\taddAttribution: function (text) {\r\n\t\tif (!text) { return this; }\r\n\r\n\t\tif (!this._attributions[text]) {\r\n\t\t\tthis._attributions[text] = 0;\r\n\t\t}\r\n\t\tthis._attributions[text]++;\r\n\r\n\t\tthis._update();\r\n\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method removeAttribution(text: String): this\r\n\t// Removes an attribution text.\r\n\tremoveAttribution: function (text) {\r\n\t\tif (!text) { return this; }\r\n\r\n\t\tif (this._attributions[text]) {\r\n\t\t\tthis._attributions[text]--;\r\n\t\t\tthis._update();\r\n\t\t}\r\n\r\n\t\treturn this;\r\n\t},\r\n\r\n\t_update: function () {\r\n\t\tif (!this._map) { return; }\r\n\r\n\t\tvar attribs = [];\r\n\r\n\t\tfor (var i in this._attributions) {\r\n\t\t\tif (this._attributions[i]) {\r\n\t\t\t\tattribs.push(i);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tvar prefixAndAttribs = [];\r\n\r\n\t\tif (this.options.prefix) {\r\n\t\t\tprefixAndAttribs.push(this.options.prefix);\r\n\t\t}\r\n\t\tif (attribs.length) {\r\n\t\t\tprefixAndAttribs.push(attribs.join(', '));\r\n\t\t}\r\n\r\n\t\tthis._container.innerHTML = prefixAndAttribs.join(' | ');\r\n\t}\r\n});\r\n\r\n// @namespace Map\r\n// @section Control options\r\n// @option attributionControl: Boolean = true\r\n// Whether a [attribution control](#control-attribution) is added to the map by default.\r\nMap.mergeOptions({\r\n\tattributionControl: true\r\n});\r\n\r\nMap.addInitHook(function () {\r\n\tif (this.options.attributionControl) {\r\n\t\tnew Attribution().addTo(this);\r\n\t}\r\n});\r\n\r\n// @namespace Control.Attribution\r\n// @factory L.control.attribution(options: Control.Attribution options)\r\n// Creates an attribution control.\r\nvar attribution = function (options) {\r\n\treturn new Attribution(options);\r\n};\n\nControl.Layers = Layers;\nControl.Zoom = Zoom;\nControl.Scale = Scale;\nControl.Attribution = Attribution;\n\ncontrol.layers = layers;\ncontrol.zoom = zoom;\ncontrol.scale = scale;\ncontrol.attribution = attribution;\n\n/*\n\tL.Handler is a base class for handler classes that are used internally to inject\n\tinteraction features like dragging to classes like Map and Marker.\n*/\n\n// @class Handler\n// @aka L.Handler\n// Abstract class for map interaction handlers\n\nvar Handler = Class.extend({\n\tinitialize: function (map) {\n\t\tthis._map = map;\n\t},\n\n\t// @method enable(): this\n\t// Enables the handler\n\tenable: function () {\n\t\tif (this._enabled) { return this; }\n\n\t\tthis._enabled = true;\n\t\tthis.addHooks();\n\t\treturn this;\n\t},\n\n\t// @method disable(): this\n\t// Disables the handler\n\tdisable: function () {\n\t\tif (!this._enabled) { return this; }\n\n\t\tthis._enabled = false;\n\t\tthis.removeHooks();\n\t\treturn this;\n\t},\n\n\t// @method enabled(): Boolean\n\t// Returns `true` if the handler is enabled\n\tenabled: function () {\n\t\treturn !!this._enabled;\n\t}\n\n\t// @section Extension methods\n\t// Classes inheriting from `Handler` must implement the two following methods:\n\t// @method addHooks()\n\t// Called when the handler is enabled, should add event hooks.\n\t// @method removeHooks()\n\t// Called when the handler is disabled, should remove the event hooks added previously.\n});\n\n// @section There is static function which can be called without instantiating L.Handler:\n// @function addTo(map: Map, name: String): this\n// Adds a new Handler to the given map with the given name.\nHandler.addTo = function (map, name) {\n\tmap.addHandler(name, this);\n\treturn this;\n};\n\nvar Mixin = {Events: Events};\n\n/*\r\n * @class Draggable\r\n * @aka L.Draggable\r\n * @inherits Evented\r\n *\r\n * A class for making DOM elements draggable (including touch support).\r\n * Used internally for map and marker dragging. Only works for elements\r\n * that were positioned with [`L.DomUtil.setPosition`](#domutil-setposition).\r\n *\r\n * @example\r\n * ```js\r\n * var draggable = new L.Draggable(elementToDrag);\r\n * draggable.enable();\r\n * ```\r\n */\r\n\r\nvar START = touch ? 'touchstart mousedown' : 'mousedown';\r\nvar END = {\r\n\tmousedown: 'mouseup',\r\n\ttouchstart: 'touchend',\r\n\tpointerdown: 'touchend',\r\n\tMSPointerDown: 'touchend'\r\n};\r\nvar MOVE = {\r\n\tmousedown: 'mousemove',\r\n\ttouchstart: 'touchmove',\r\n\tpointerdown: 'touchmove',\r\n\tMSPointerDown: 'touchmove'\r\n};\r\n\r\n\r\nvar Draggable = Evented.extend({\r\n\r\n\toptions: {\r\n\t\t// @section\r\n\t\t// @aka Draggable options\r\n\t\t// @option clickTolerance: Number = 3\r\n\t\t// The max number of pixels a user can shift the mouse pointer during a click\r\n\t\t// for it to be considered a valid click (as opposed to a mouse drag).\r\n\t\tclickTolerance: 3\r\n\t},\r\n\r\n\t// @constructor L.Draggable(el: HTMLElement, dragHandle?: HTMLElement, preventOutline?: Boolean, options?: Draggable options)\r\n\t// Creates a `Draggable` object for moving `el` when you start dragging the `dragHandle` element (equals `el` itself by default).\r\n\tinitialize: function (element, dragStartTarget, preventOutline$$1, options) {\r\n\t\tsetOptions(this, options);\r\n\r\n\t\tthis._element = element;\r\n\t\tthis._dragStartTarget = dragStartTarget || element;\r\n\t\tthis._preventOutline = preventOutline$$1;\r\n\t},\r\n\r\n\t// @method enable()\r\n\t// Enables the dragging ability\r\n\tenable: function () {\r\n\t\tif (this._enabled) { return; }\r\n\r\n\t\ton(this._dragStartTarget, START, this._onDown, this);\r\n\r\n\t\tthis._enabled = true;\r\n\t},\r\n\r\n\t// @method disable()\r\n\t// Disables the dragging ability\r\n\tdisable: function () {\r\n\t\tif (!this._enabled) { return; }\r\n\r\n\t\t// If we're currently dragging this draggable,\r\n\t\t// disabling it counts as first ending the drag.\r\n\t\tif (Draggable._dragging === this) {\r\n\t\t\tthis.finishDrag();\r\n\t\t}\r\n\r\n\t\toff(this._dragStartTarget, START, this._onDown, this);\r\n\r\n\t\tthis._enabled = false;\r\n\t\tthis._moved = false;\r\n\t},\r\n\r\n\t_onDown: function (e) {\r\n\t\t// Ignore simulated events, since we handle both touch and\r\n\t\t// mouse explicitly; otherwise we risk getting duplicates of\r\n\t\t// touch events, see #4315.\r\n\t\t// Also ignore the event if disabled; this happens in IE11\r\n\t\t// under some circumstances, see #3666.\r\n\t\tif (e._simulated || !this._enabled) { return; }\r\n\r\n\t\tthis._moved = false;\r\n\r\n\t\tif (hasClass(this._element, 'leaflet-zoom-anim')) { return; }\r\n\r\n\t\tif (Draggable._dragging || e.shiftKey || ((e.which !== 1) && (e.button !== 1) && !e.touches)) { return; }\r\n\t\tDraggable._dragging = this; // Prevent dragging multiple objects at once.\r\n\r\n\t\tif (this._preventOutline) {\r\n\t\t\tpreventOutline(this._element);\r\n\t\t}\r\n\r\n\t\tdisableImageDrag();\r\n\t\tdisableTextSelection();\r\n\r\n\t\tif (this._moving) { return; }\r\n\r\n\t\t// @event down: Event\r\n\t\t// Fired when a drag is about to start.\r\n\t\tthis.fire('down');\r\n\r\n\t\tvar first = e.touches ? e.touches[0] : e,\r\n\t\t sizedParent = getSizedParentNode(this._element);\r\n\r\n\t\tthis._startPoint = new Point(first.clientX, first.clientY);\r\n\r\n\t\t// Cache the scale, so that we can continuously compensate for it during drag (_onMove).\r\n\t\tthis._parentScale = getScale(sizedParent);\r\n\r\n\t\ton(document, MOVE[e.type], this._onMove, this);\r\n\t\ton(document, END[e.type], this._onUp, this);\r\n\t},\r\n\r\n\t_onMove: function (e) {\r\n\t\t// Ignore simulated events, since we handle both touch and\r\n\t\t// mouse explicitly; otherwise we risk getting duplicates of\r\n\t\t// touch events, see #4315.\r\n\t\t// Also ignore the event if disabled; this happens in IE11\r\n\t\t// under some circumstances, see #3666.\r\n\t\tif (e._simulated || !this._enabled) { return; }\r\n\r\n\t\tif (e.touches && e.touches.length > 1) {\r\n\t\t\tthis._moved = true;\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tvar first = (e.touches && e.touches.length === 1 ? e.touches[0] : e),\r\n\t\t offset = new Point(first.clientX, first.clientY)._subtract(this._startPoint);\r\n\r\n\t\tif (!offset.x && !offset.y) { return; }\r\n\t\tif (Math.abs(offset.x) + Math.abs(offset.y) < this.options.clickTolerance) { return; }\r\n\r\n\t\t// We assume that the parent container's position, border and scale do not change for the duration of the drag.\r\n\t\t// Therefore there is no need to account for the position and border (they are eliminated by the subtraction)\r\n\t\t// and we can use the cached value for the scale.\r\n\t\toffset.x /= this._parentScale.x;\r\n\t\toffset.y /= this._parentScale.y;\r\n\r\n\t\tpreventDefault(e);\r\n\r\n\t\tif (!this._moved) {\r\n\t\t\t// @event dragstart: Event\r\n\t\t\t// Fired when a drag starts\r\n\t\t\tthis.fire('dragstart');\r\n\r\n\t\t\tthis._moved = true;\r\n\t\t\tthis._startPos = getPosition(this._element).subtract(offset);\r\n\r\n\t\t\taddClass(document.body, 'leaflet-dragging');\r\n\r\n\t\t\tthis._lastTarget = e.target || e.srcElement;\r\n\t\t\t// IE and Edge do not give the <use> element, so fetch it\r\n\t\t\t// if necessary\r\n\t\t\tif ((window.SVGElementInstance) && (this._lastTarget instanceof SVGElementInstance)) {\r\n\t\t\t\tthis._lastTarget = this._lastTarget.correspondingUseElement;\r\n\t\t\t}\r\n\t\t\taddClass(this._lastTarget, 'leaflet-drag-target');\r\n\t\t}\r\n\r\n\t\tthis._newPos = this._startPos.add(offset);\r\n\t\tthis._moving = true;\r\n\r\n\t\tcancelAnimFrame(this._animRequest);\r\n\t\tthis._lastEvent = e;\r\n\t\tthis._animRequest = requestAnimFrame(this._updatePosition, this, true);\r\n\t},\r\n\r\n\t_updatePosition: function () {\r\n\t\tvar e = {originalEvent: this._lastEvent};\r\n\r\n\t\t// @event predrag: Event\r\n\t\t// Fired continuously during dragging *before* each corresponding\r\n\t\t// update of the element's position.\r\n\t\tthis.fire('predrag', e);\r\n\t\tsetPosition(this._element, this._newPos);\r\n\r\n\t\t// @event drag: Event\r\n\t\t// Fired continuously during dragging.\r\n\t\tthis.fire('drag', e);\r\n\t},\r\n\r\n\t_onUp: function (e) {\r\n\t\t// Ignore simulated events, since we handle both touch and\r\n\t\t// mouse explicitly; otherwise we risk getting duplicates of\r\n\t\t// touch events, see #4315.\r\n\t\t// Also ignore the event if disabled; this happens in IE11\r\n\t\t// under some circumstances, see #3666.\r\n\t\tif (e._simulated || !this._enabled) { return; }\r\n\t\tthis.finishDrag();\r\n\t},\r\n\r\n\tfinishDrag: function () {\r\n\t\tremoveClass(document.body, 'leaflet-dragging');\r\n\r\n\t\tif (this._lastTarget) {\r\n\t\t\tremoveClass(this._lastTarget, 'leaflet-drag-target');\r\n\t\t\tthis._lastTarget = null;\r\n\t\t}\r\n\r\n\t\tfor (var i in MOVE) {\r\n\t\t\toff(document, MOVE[i], this._onMove, this);\r\n\t\t\toff(document, END[i], this._onUp, this);\r\n\t\t}\r\n\r\n\t\tenableImageDrag();\r\n\t\tenableTextSelection();\r\n\r\n\t\tif (this._moved && this._moving) {\r\n\t\t\t// ensure drag is not fired after dragend\r\n\t\t\tcancelAnimFrame(this._animRequest);\r\n\r\n\t\t\t// @event dragend: DragEndEvent\r\n\t\t\t// Fired when the drag ends.\r\n\t\t\tthis.fire('dragend', {\r\n\t\t\t\tdistance: this._newPos.distanceTo(this._startPos)\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\tthis._moving = false;\r\n\t\tDraggable._dragging = false;\r\n\t}\r\n\r\n});\n\n/*\r\n * @namespace LineUtil\r\n *\r\n * Various utility functions for polyline points processing, used by Leaflet internally to make polylines lightning-fast.\r\n */\r\n\r\n// Simplify polyline with vertex reduction and Douglas-Peucker simplification.\r\n// Improves rendering performance dramatically by lessening the number of points to draw.\r\n\r\n// @function simplify(points: Point[], tolerance: Number): Point[]\r\n// Dramatically reduces the number of points in a polyline while retaining\r\n// its shape and returns a new array of simplified points, using the\r\n// [Douglas-Peucker algorithm](http://en.wikipedia.org/wiki/Douglas-Peucker_algorithm).\r\n// Used for a huge performance boost when processing/displaying Leaflet polylines for\r\n// each zoom level and also reducing visual noise. tolerance affects the amount of\r\n// simplification (lesser value means higher quality but slower and with more points).\r\n// Also released as a separated micro-library [Simplify.js](http://mourner.github.com/simplify-js/).\r\nfunction simplify(points, tolerance) {\r\n\tif (!tolerance || !points.length) {\r\n\t\treturn points.slice();\r\n\t}\r\n\r\n\tvar sqTolerance = tolerance * tolerance;\r\n\r\n\t // stage 1: vertex reduction\r\n\t points = _reducePoints(points, sqTolerance);\r\n\r\n\t // stage 2: Douglas-Peucker simplification\r\n\t points = _simplifyDP(points, sqTolerance);\r\n\r\n\treturn points;\r\n}\r\n\r\n// @function pointToSegmentDistance(p: Point, p1: Point, p2: Point): Number\r\n// Returns the distance between point `p` and segment `p1` to `p2`.\r\nfunction pointToSegmentDistance(p, p1, p2) {\r\n\treturn Math.sqrt(_sqClosestPointOnSegment(p, p1, p2, true));\r\n}\r\n\r\n// @function closestPointOnSegment(p: Point, p1: Point, p2: Point): Number\r\n// Returns the closest point from a point `p` on a segment `p1` to `p2`.\r\nfunction closestPointOnSegment(p, p1, p2) {\r\n\treturn _sqClosestPointOnSegment(p, p1, p2);\r\n}\r\n\r\n// Douglas-Peucker simplification, see http://en.wikipedia.org/wiki/Douglas-Peucker_algorithm\r\nfunction _simplifyDP(points, sqTolerance) {\r\n\r\n\tvar len = points.length,\r\n\t ArrayConstructor = typeof Uint8Array !== undefined + '' ? Uint8Array : Array,\r\n\t markers = new ArrayConstructor(len);\r\n\r\n\t markers[0] = markers[len - 1] = 1;\r\n\r\n\t_simplifyDPStep(points, markers, sqTolerance, 0, len - 1);\r\n\r\n\tvar i,\r\n\t newPoints = [];\r\n\r\n\tfor (i = 0; i < len; i++) {\r\n\t\tif (markers[i]) {\r\n\t\t\tnewPoints.push(points[i]);\r\n\t\t}\r\n\t}\r\n\r\n\treturn newPoints;\r\n}\r\n\r\nfunction _simplifyDPStep(points, markers, sqTolerance, first, last) {\r\n\r\n\tvar maxSqDist = 0,\r\n\tindex, i, sqDist;\r\n\r\n\tfor (i = first + 1; i <= last - 1; i++) {\r\n\t\tsqDist = _sqClosestPointOnSegment(points[i], points[first], points[last], true);\r\n\r\n\t\tif (sqDist > maxSqDist) {\r\n\t\t\tindex = i;\r\n\t\t\tmaxSqDist = sqDist;\r\n\t\t}\r\n\t}\r\n\r\n\tif (maxSqDist > sqTolerance) {\r\n\t\tmarkers[index] = 1;\r\n\r\n\t\t_simplifyDPStep(points, markers, sqTolerance, first, index);\r\n\t\t_simplifyDPStep(points, markers, sqTolerance, index, last);\r\n\t}\r\n}\r\n\r\n// reduce points that are too close to each other to a single point\r\nfunction _reducePoints(points, sqTolerance) {\r\n\tvar reducedPoints = [points[0]];\r\n\r\n\tfor (var i = 1, prev = 0, len = points.length; i < len; i++) {\r\n\t\tif (_sqDist(points[i], points[prev]) > sqTolerance) {\r\n\t\t\treducedPoints.push(points[i]);\r\n\t\t\tprev = i;\r\n\t\t}\r\n\t}\r\n\tif (prev < len - 1) {\r\n\t\treducedPoints.push(points[len - 1]);\r\n\t}\r\n\treturn reducedPoints;\r\n}\r\n\r\nvar _lastCode;\r\n\r\n// @function clipSegment(a: Point, b: Point, bounds: Bounds, useLastCode?: Boolean, round?: Boolean): Point[]|Boolean\r\n// Clips the segment a to b by rectangular bounds with the\r\n// [Cohen-Sutherland algorithm](https://en.wikipedia.org/wiki/Cohen%E2%80%93Sutherland_algorithm)\r\n// (modifying the segment points directly!). Used by Leaflet to only show polyline\r\n// points that are on the screen or near, increasing performance.\r\nfunction clipSegment(a, b, bounds, useLastCode, round) {\r\n\tvar codeA = useLastCode ? _lastCode : _getBitCode(a, bounds),\r\n\t codeB = _getBitCode(b, bounds),\r\n\r\n\t codeOut, p, newCode;\r\n\r\n\t // save 2nd code to avoid calculating it on the next segment\r\n\t _lastCode = codeB;\r\n\r\n\twhile (true) {\r\n\t\t// if a,b is inside the clip window (trivial accept)\r\n\t\tif (!(codeA | codeB)) {\r\n\t\t\treturn [a, b];\r\n\t\t}\r\n\r\n\t\t// if a,b is outside the clip window (trivial reject)\r\n\t\tif (codeA & codeB) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\t// other cases\r\n\t\tcodeOut = codeA || codeB;\r\n\t\tp = _getEdgeIntersection(a, b, codeOut, bounds, round);\r\n\t\tnewCode = _getBitCode(p, bounds);\r\n\r\n\t\tif (codeOut === codeA) {\r\n\t\t\ta = p;\r\n\t\t\tcodeA = newCode;\r\n\t\t} else {\r\n\t\t\tb = p;\r\n\t\t\tcodeB = newCode;\r\n\t\t}\r\n\t}\r\n}\r\n\r\nfunction _getEdgeIntersection(a, b, code, bounds, round) {\r\n\tvar dx = b.x - a.x,\r\n\t dy = b.y - a.y,\r\n\t min = bounds.min,\r\n\t max = bounds.max,\r\n\t x, y;\r\n\r\n\tif (code & 8) { // top\r\n\t\tx = a.x + dx * (max.y - a.y) / dy;\r\n\t\ty = max.y;\r\n\r\n\t} else if (code & 4) { // bottom\r\n\t\tx = a.x + dx * (min.y - a.y) / dy;\r\n\t\ty = min.y;\r\n\r\n\t} else if (code & 2) { // right\r\n\t\tx = max.x;\r\n\t\ty = a.y + dy * (max.x - a.x) / dx;\r\n\r\n\t} else if (code & 1) { // left\r\n\t\tx = min.x;\r\n\t\ty = a.y + dy * (min.x - a.x) / dx;\r\n\t}\r\n\r\n\treturn new Point(x, y, round);\r\n}\r\n\r\nfunction _getBitCode(p, bounds) {\r\n\tvar code = 0;\r\n\r\n\tif (p.x < bounds.min.x) { // left\r\n\t\tcode |= 1;\r\n\t} else if (p.x > bounds.max.x) { // right\r\n\t\tcode |= 2;\r\n\t}\r\n\r\n\tif (p.y < bounds.min.y) { // bottom\r\n\t\tcode |= 4;\r\n\t} else if (p.y > bounds.max.y) { // top\r\n\t\tcode |= 8;\r\n\t}\r\n\r\n\treturn code;\r\n}\r\n\r\n// square distance (to avoid unnecessary Math.sqrt calls)\r\nfunction _sqDist(p1, p2) {\r\n\tvar dx = p2.x - p1.x,\r\n\t dy = p2.y - p1.y;\r\n\treturn dx * dx + dy * dy;\r\n}\r\n\r\n// return closest point on segment or distance to that point\r\nfunction _sqClosestPointOnSegment(p, p1, p2, sqDist) {\r\n\tvar x = p1.x,\r\n\t y = p1.y,\r\n\t dx = p2.x - x,\r\n\t dy = p2.y - y,\r\n\t dot = dx * dx + dy * dy,\r\n\t t;\r\n\r\n\tif (dot > 0) {\r\n\t\tt = ((p.x - x) * dx + (p.y - y) * dy) / dot;\r\n\r\n\t\tif (t > 1) {\r\n\t\t\tx = p2.x;\r\n\t\t\ty = p2.y;\r\n\t\t} else if (t > 0) {\r\n\t\t\tx += dx * t;\r\n\t\t\ty += dy * t;\r\n\t\t}\r\n\t}\r\n\r\n\tdx = p.x - x;\r\n\tdy = p.y - y;\r\n\r\n\treturn sqDist ? dx * dx + dy * dy : new Point(x, y);\r\n}\r\n\r\n\r\n// @function isFlat(latlngs: LatLng[]): Boolean\r\n// Returns true if `latlngs` is a flat array, false is nested.\r\nfunction isFlat(latlngs) {\r\n\treturn !isArray(latlngs[0]) || (typeof latlngs[0][0] !== 'object' && typeof latlngs[0][0] !== 'undefined');\r\n}\r\n\r\nfunction _flat(latlngs) {\r\n\tconsole.warn('Deprecated use of _flat, please use L.LineUtil.isFlat instead.');\r\n\treturn isFlat(latlngs);\r\n}\r\n\n\nvar LineUtil = (Object.freeze || Object)({\n\tsimplify: simplify,\n\tpointToSegmentDistance: pointToSegmentDistance,\n\tclosestPointOnSegment: closestPointOnSegment,\n\tclipSegment: clipSegment,\n\t_getEdgeIntersection: _getEdgeIntersection,\n\t_getBitCode: _getBitCode,\n\t_sqClosestPointOnSegment: _sqClosestPointOnSegment,\n\tisFlat: isFlat,\n\t_flat: _flat\n});\n\n/*\r\n * @namespace PolyUtil\r\n * Various utility functions for polygon geometries.\r\n */\r\n\r\n/* @function clipPolygon(points: Point[], bounds: Bounds, round?: Boolean): Point[]\r\n * Clips the polygon geometry defined by the given `points` by the given bounds (using the [Sutherland-Hodgman algorithm](https://en.wikipedia.org/wiki/Sutherland%E2%80%93Hodgman_algorithm)).\r\n * Used by Leaflet to only show polygon points that are on the screen or near, increasing\r\n * performance. Note that polygon points needs different algorithm for clipping\r\n * than polyline, so there's a separate method for it.\r\n */\r\nfunction clipPolygon(points, bounds, round) {\r\n\tvar clippedPoints,\r\n\t edges = [1, 4, 2, 8],\r\n\t i, j, k,\r\n\t a, b,\r\n\t len, edge, p;\r\n\r\n\tfor (i = 0, len = points.length; i < len; i++) {\r\n\t\tpoints[i]._code = _getBitCode(points[i], bounds);\r\n\t}\r\n\r\n\t// for each edge (left, bottom, right, top)\r\n\tfor (k = 0; k < 4; k++) {\r\n\t\tedge = edges[k];\r\n\t\tclippedPoints = [];\r\n\r\n\t\tfor (i = 0, len = points.length, j = len - 1; i < len; j = i++) {\r\n\t\t\ta = points[i];\r\n\t\t\tb = points[j];\r\n\r\n\t\t\t// if a is inside the clip window\r\n\t\t\tif (!(a._code & edge)) {\r\n\t\t\t\t// if b is outside the clip window (a->b goes out of screen)\r\n\t\t\t\tif (b._code & edge) {\r\n\t\t\t\t\tp = _getEdgeIntersection(b, a, edge, bounds, round);\r\n\t\t\t\t\tp._code = _getBitCode(p, bounds);\r\n\t\t\t\t\tclippedPoints.push(p);\r\n\t\t\t\t}\r\n\t\t\t\tclippedPoints.push(a);\r\n\r\n\t\t\t// else if b is inside the clip window (a->b enters the screen)\r\n\t\t\t} else if (!(b._code & edge)) {\r\n\t\t\t\tp = _getEdgeIntersection(b, a, edge, bounds, round);\r\n\t\t\t\tp._code = _getBitCode(p, bounds);\r\n\t\t\t\tclippedPoints.push(p);\r\n\t\t\t}\r\n\t\t}\r\n\t\tpoints = clippedPoints;\r\n\t}\r\n\r\n\treturn points;\r\n}\r\n\n\nvar PolyUtil = (Object.freeze || Object)({\n\tclipPolygon: clipPolygon\n});\n\n/*\r\n * @namespace Projection\r\n * @section\r\n * Leaflet comes with a set of already defined Projections out of the box:\r\n *\r\n * @projection L.Projection.LonLat\r\n *\r\n * Equirectangular, or Plate Carree projection — the most simple projection,\r\n * mostly used by GIS enthusiasts. Directly maps `x` as longitude, and `y` as\r\n * latitude. Also suitable for flat worlds, e.g. game maps. Used by the\r\n * `EPSG:4326` and `Simple` CRS.\r\n */\r\n\r\nvar LonLat = {\r\n\tproject: function (latlng) {\r\n\t\treturn new Point(latlng.lng, latlng.lat);\r\n\t},\r\n\r\n\tunproject: function (point) {\r\n\t\treturn new LatLng(point.y, point.x);\r\n\t},\r\n\r\n\tbounds: new Bounds([-180, -90], [180, 90])\r\n};\n\n/*\r\n * @namespace Projection\r\n * @projection L.Projection.Mercator\r\n *\r\n * Elliptical Mercator projection — more complex than Spherical Mercator. Takes into account that Earth is a geoid, not a perfect sphere. Used by the EPSG:3395 CRS.\r\n */\r\n\r\nvar Mercator = {\r\n\tR: 6378137,\r\n\tR_MINOR: 6356752.314245179,\r\n\r\n\tbounds: new Bounds([-20037508.34279, -15496570.73972], [20037508.34279, 18764656.23138]),\r\n\r\n\tproject: function (latlng) {\r\n\t\tvar d = Math.PI / 180,\r\n\t\t r = this.R,\r\n\t\t y = latlng.lat * d,\r\n\t\t tmp = this.R_MINOR / r,\r\n\t\t e = Math.sqrt(1 - tmp * tmp),\r\n\t\t con = e * Math.sin(y);\r\n\r\n\t\tvar ts = Math.tan(Math.PI / 4 - y / 2) / Math.pow((1 - con) / (1 + con), e / 2);\r\n\t\ty = -r * Math.log(Math.max(ts, 1E-10));\r\n\r\n\t\treturn new Point(latlng.lng * d * r, y);\r\n\t},\r\n\r\n\tunproject: function (point) {\r\n\t\tvar d = 180 / Math.PI,\r\n\t\t r = this.R,\r\n\t\t tmp = this.R_MINOR / r,\r\n\t\t e = Math.sqrt(1 - tmp * tmp),\r\n\t\t ts = Math.exp(-point.y / r),\r\n\t\t phi = Math.PI / 2 - 2 * Math.atan(ts);\r\n\r\n\t\tfor (var i = 0, dphi = 0.1, con; i < 15 && Math.abs(dphi) > 1e-7; i++) {\r\n\t\t\tcon = e * Math.sin(phi);\r\n\t\t\tcon = Math.pow((1 - con) / (1 + con), e / 2);\r\n\t\t\tdphi = Math.PI / 2 - 2 * Math.atan(ts * con) - phi;\r\n\t\t\tphi += dphi;\r\n\t\t}\r\n\r\n\t\treturn new LatLng(phi * d, point.x * d / r);\r\n\t}\r\n};\n\n/*\n * @class Projection\n\n * An object with methods for projecting geographical coordinates of the world onto\n * a flat surface (and back). See [Map projection](http://en.wikipedia.org/wiki/Map_projection).\n\n * @property bounds: Bounds\n * The bounds (specified in CRS units) where the projection is valid\n\n * @method project(latlng: LatLng): Point\n * Projects geographical coordinates into a 2D point.\n * Only accepts actual `L.LatLng` instances, not arrays.\n\n * @method unproject(point: Point): LatLng\n * The inverse of `project`. Projects a 2D point into a geographical location.\n * Only accepts actual `L.Point` instances, not arrays.\n\n * Note that the projection instances do not inherit from Leafet's `Class` object,\n * and can't be instantiated. Also, new classes can't inherit from them,\n * and methods can't be added to them with the `include` function.\n\n */\n\n\n\n\nvar index = (Object.freeze || Object)({\n\tLonLat: LonLat,\n\tMercator: Mercator,\n\tSphericalMercator: SphericalMercator\n});\n\n/*\r\n * @namespace CRS\r\n * @crs L.CRS.EPSG3395\r\n *\r\n * Rarely used by some commercial tile providers. Uses Elliptical Mercator projection.\r\n */\r\nvar EPSG3395 = extend({}, Earth, {\r\n\tcode: 'EPSG:3395',\r\n\tprojection: Mercator,\r\n\r\n\ttransformation: (function () {\r\n\t\tvar scale = 0.5 / (Math.PI * Mercator.R);\r\n\t\treturn toTransformation(scale, 0.5, -scale, 0.5);\r\n\t}())\r\n});\n\n/*\r\n * @namespace CRS\r\n * @crs L.CRS.EPSG4326\r\n *\r\n * A common CRS among GIS enthusiasts. Uses simple Equirectangular projection.\r\n *\r\n * Leaflet 1.0.x complies with the [TMS coordinate scheme for EPSG:4326](https://wiki.osgeo.org/wiki/Tile_Map_Service_Specification#global-geodetic),\r\n * which is a breaking change from 0.7.x behaviour. If you are using a `TileLayer`\r\n * with this CRS, ensure that there are two 256x256 pixel tiles covering the\r\n * whole earth at zoom level zero, and that the tile coordinate origin is (-180,+90),\r\n * or (-180,-90) for `TileLayer`s with [the `tms` option](#tilelayer-tms) set.\r\n */\r\n\r\nvar EPSG4326 = extend({}, Earth, {\r\n\tcode: 'EPSG:4326',\r\n\tprojection: LonLat,\r\n\ttransformation: toTransformation(1 / 180, 1, -1 / 180, 0.5)\r\n});\n\n/*\n * @namespace CRS\n * @crs L.CRS.Simple\n *\n * A simple CRS that maps longitude and latitude into `x` and `y` directly.\n * May be used for maps of flat surfaces (e.g. game maps). Note that the `y`\n * axis should still be inverted (going from bottom to top). `distance()` returns\n * simple euclidean distance.\n */\n\nvar Simple = extend({}, CRS, {\n\tprojection: LonLat,\n\ttransformation: toTransformation(1, 0, -1, 0),\n\n\tscale: function (zoom) {\n\t\treturn Math.pow(2, zoom);\n\t},\n\n\tzoom: function (scale) {\n\t\treturn Math.log(scale) / Math.LN2;\n\t},\n\n\tdistance: function (latlng1, latlng2) {\n\t\tvar dx = latlng2.lng - latlng1.lng,\n\t\t dy = latlng2.lat - latlng1.lat;\n\n\t\treturn Math.sqrt(dx * dx + dy * dy);\n\t},\n\n\tinfinite: true\n});\n\nCRS.Earth = Earth;\nCRS.EPSG3395 = EPSG3395;\nCRS.EPSG3857 = EPSG3857;\nCRS.EPSG900913 = EPSG900913;\nCRS.EPSG4326 = EPSG4326;\nCRS.Simple = Simple;\n\n/*\n * @class Layer\n * @inherits Evented\n * @aka L.Layer\n * @aka ILayer\n *\n * A set of methods from the Layer base class that all Leaflet layers use.\n * Inherits all methods, options and events from `L.Evented`.\n *\n * @example\n *\n * ```js\n * var layer = L.Marker(latlng).addTo(map);\n * layer.addTo(map);\n * layer.remove();\n * ```\n *\n * @event add: Event\n * Fired after the layer is added to a map\n *\n * @event remove: Event\n * Fired after the layer is removed from a map\n */\n\n\nvar Layer = Evented.extend({\n\n\t// Classes extending `L.Layer` will inherit the following options:\n\toptions: {\n\t\t// @option pane: String = 'overlayPane'\n\t\t// By default the layer will be added to the map's [overlay pane](#map-overlaypane). Overriding this option will cause the layer to be placed on another pane by default.\n\t\tpane: 'overlayPane',\n\n\t\t// @option attribution: String = null\n\t\t// String to be shown in the attribution control, describes the layer data, e.g. \"© Mapbox\".\n\t\tattribution: null,\n\n\t\tbubblingMouseEvents: true\n\t},\n\n\t/* @section\n\t * Classes extending `L.Layer` will inherit the following methods:\n\t *\n\t * @method addTo(map: Map|LayerGroup): this\n\t * Adds the layer to the given map or layer group.\n\t */\n\taddTo: function (map) {\n\t\tmap.addLayer(this);\n\t\treturn this;\n\t},\n\n\t// @method remove: this\n\t// Removes the layer from the map it is currently active on.\n\tremove: function () {\n\t\treturn this.removeFrom(this._map || this._mapToAdd);\n\t},\n\n\t// @method removeFrom(map: Map): this\n\t// Removes the layer from the given map\n\tremoveFrom: function (obj) {\n\t\tif (obj) {\n\t\t\tobj.removeLayer(this);\n\t\t}\n\t\treturn this;\n\t},\n\n\t// @method getPane(name? : String): HTMLElement\n\t// Returns the `HTMLElement` representing the named pane on the map. If `name` is omitted, returns the pane for this layer.\n\tgetPane: function (name) {\n\t\treturn this._map.getPane(name ? (this.options[name] || name) : this.options.pane);\n\t},\n\n\taddInteractiveTarget: function (targetEl) {\n\t\tthis._map._targets[stamp(targetEl)] = this;\n\t\treturn this;\n\t},\n\n\tremoveInteractiveTarget: function (targetEl) {\n\t\tdelete this._map._targets[stamp(targetEl)];\n\t\treturn this;\n\t},\n\n\t// @method getAttribution: String\n\t// Used by the `attribution control`, returns the [attribution option](#gridlayer-attribution).\n\tgetAttribution: function () {\n\t\treturn this.options.attribution;\n\t},\n\n\t_layerAdd: function (e) {\n\t\tvar map = e.target;\n\n\t\t// check in case layer gets added and then removed before the map is ready\n\t\tif (!map.hasLayer(this)) { return; }\n\n\t\tthis._map = map;\n\t\tthis._zoomAnimated = map._zoomAnimated;\n\n\t\tif (this.getEvents) {\n\t\t\tvar events = this.getEvents();\n\t\t\tmap.on(events, this);\n\t\t\tthis.once('remove', function () {\n\t\t\t\tmap.off(events, this);\n\t\t\t}, this);\n\t\t}\n\n\t\tthis.onAdd(map);\n\n\t\tif (this.getAttribution && map.attributionControl) {\n\t\t\tmap.attributionControl.addAttribution(this.getAttribution());\n\t\t}\n\n\t\tthis.fire('add');\n\t\tmap.fire('layeradd', {layer: this});\n\t}\n});\n\n/* @section Extension methods\n * @uninheritable\n *\n * Every layer should extend from `L.Layer` and (re-)implement the following methods.\n *\n * @method onAdd(map: Map): this\n * Should contain code that creates DOM elements for the layer, adds them to `map panes` where they should belong and puts listeners on relevant map events. Called on [`map.addLayer(layer)`](#map-addlayer).\n *\n * @method onRemove(map: Map): this\n * Should contain all clean up code that removes the layer's elements from the DOM and removes listeners previously added in [`onAdd`](#layer-onadd). Called on [`map.removeLayer(layer)`](#map-removelayer).\n *\n * @method getEvents(): Object\n * This optional method should return an object like `{ viewreset: this._reset }` for [`addEventListener`](#evented-addeventlistener). The event handlers in this object will be automatically added and removed from the map with your layer.\n *\n * @method getAttribution(): String\n * This optional method should return a string containing HTML to be shown on the `Attribution control` whenever the layer is visible.\n *\n * @method beforeAdd(map: Map): this\n * Optional method. Called on [`map.addLayer(layer)`](#map-addlayer), before the layer is added to the map, before events are initialized, without waiting until the map is in a usable state. Use for early initialization only.\n */\n\n\n/* @namespace Map\n * @section Layer events\n *\n * @event layeradd: LayerEvent\n * Fired when a new layer is added to the map.\n *\n * @event layerremove: LayerEvent\n * Fired when some layer is removed from the map\n *\n * @section Methods for Layers and Controls\n */\nMap.include({\n\t// @method addLayer(layer: Layer): this\n\t// Adds the given layer to the map\n\taddLayer: function (layer) {\n\t\tif (!layer._layerAdd) {\n\t\t\tthrow new Error('The provided object is not a Layer.');\n\t\t}\n\n\t\tvar id = stamp(layer);\n\t\tif (this._layers[id]) { return this; }\n\t\tthis._layers[id] = layer;\n\n\t\tlayer._mapToAdd = this;\n\n\t\tif (layer.beforeAdd) {\n\t\t\tlayer.beforeAdd(this);\n\t\t}\n\n\t\tthis.whenReady(layer._layerAdd, layer);\n\n\t\treturn this;\n\t},\n\n\t// @method removeLayer(layer: Layer): this\n\t// Removes the given layer from the map.\n\tremoveLayer: function (layer) {\n\t\tvar id = stamp(layer);\n\n\t\tif (!this._layers[id]) { return this; }\n\n\t\tif (this._loaded) {\n\t\t\tlayer.onRemove(this);\n\t\t}\n\n\t\tif (layer.getAttribution && this.attributionControl) {\n\t\t\tthis.attributionControl.removeAttribution(layer.getAttribution());\n\t\t}\n\n\t\tdelete this._layers[id];\n\n\t\tif (this._loaded) {\n\t\t\tthis.fire('layerremove', {layer: layer});\n\t\t\tlayer.fire('remove');\n\t\t}\n\n\t\tlayer._map = layer._mapToAdd = null;\n\n\t\treturn this;\n\t},\n\n\t// @method hasLayer(layer: Layer): Boolean\n\t// Returns `true` if the given layer is currently added to the map\n\thasLayer: function (layer) {\n\t\treturn !!layer && (stamp(layer) in this._layers);\n\t},\n\n\t/* @method eachLayer(fn: Function, context?: Object): this\n\t * Iterates over the layers of the map, optionally specifying context of the iterator function.\n\t * ```\n\t * map.eachLayer(function(layer){\n\t * layer.bindPopup('Hello');\n\t * });\n\t * ```\n\t */\n\teachLayer: function (method, context) {\n\t\tfor (var i in this._layers) {\n\t\t\tmethod.call(context, this._layers[i]);\n\t\t}\n\t\treturn this;\n\t},\n\n\t_addLayers: function (layers) {\n\t\tlayers = layers ? (isArray(layers) ? layers : [layers]) : [];\n\n\t\tfor (var i = 0, len = layers.length; i < len; i++) {\n\t\t\tthis.addLayer(layers[i]);\n\t\t}\n\t},\n\n\t_addZoomLimit: function (layer) {\n\t\tif (isNaN(layer.options.maxZoom) || !isNaN(layer.options.minZoom)) {\n\t\t\tthis._zoomBoundLayers[stamp(layer)] = layer;\n\t\t\tthis._updateZoomLevels();\n\t\t}\n\t},\n\n\t_removeZoomLimit: function (layer) {\n\t\tvar id = stamp(layer);\n\n\t\tif (this._zoomBoundLayers[id]) {\n\t\t\tdelete this._zoomBoundLayers[id];\n\t\t\tthis._updateZoomLevels();\n\t\t}\n\t},\n\n\t_updateZoomLevels: function () {\n\t\tvar minZoom = Infinity,\n\t\t maxZoom = -Infinity,\n\t\t oldZoomSpan = this._getZoomSpan();\n\n\t\tfor (var i in this._zoomBoundLayers) {\n\t\t\tvar options = this._zoomBoundLayers[i].options;\n\n\t\t\tminZoom = options.minZoom === undefined ? minZoom : Math.min(minZoom, options.minZoom);\n\t\t\tmaxZoom = options.maxZoom === undefined ? maxZoom : Math.max(maxZoom, options.maxZoom);\n\t\t}\n\n\t\tthis._layersMaxZoom = maxZoom === -Infinity ? undefined : maxZoom;\n\t\tthis._layersMinZoom = minZoom === Infinity ? undefined : minZoom;\n\n\t\t// @section Map state change events\n\t\t// @event zoomlevelschange: Event\n\t\t// Fired when the number of zoomlevels on the map is changed due\n\t\t// to adding or removing a layer.\n\t\tif (oldZoomSpan !== this._getZoomSpan()) {\n\t\t\tthis.fire('zoomlevelschange');\n\t\t}\n\n\t\tif (this.options.maxZoom === undefined && this._layersMaxZoom && this.getZoom() > this._layersMaxZoom) {\n\t\t\tthis.setZoom(this._layersMaxZoom);\n\t\t}\n\t\tif (this.options.minZoom === undefined && this._layersMinZoom && this.getZoom() < this._layersMinZoom) {\n\t\t\tthis.setZoom(this._layersMinZoom);\n\t\t}\n\t}\n});\n\n/*\r\n * @class LayerGroup\r\n * @aka L.LayerGroup\r\n * @inherits Layer\r\n *\r\n * Used to group several layers and handle them as one. If you add it to the map,\r\n * any layers added or removed from the group will be added/removed on the map as\r\n * well. Extends `Layer`.\r\n *\r\n * @example\r\n *\r\n * ```js\r\n * L.layerGroup([marker1, marker2])\r\n * \t.addLayer(polyline)\r\n * \t.addTo(map);\r\n * ```\r\n */\r\n\r\nvar LayerGroup = Layer.extend({\r\n\r\n\tinitialize: function (layers, options) {\r\n\t\tsetOptions(this, options);\r\n\r\n\t\tthis._layers = {};\r\n\r\n\t\tvar i, len;\r\n\r\n\t\tif (layers) {\r\n\t\t\tfor (i = 0, len = layers.length; i < len; i++) {\r\n\t\t\t\tthis.addLayer(layers[i]);\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\r\n\t// @method addLayer(layer: Layer): this\r\n\t// Adds the given layer to the group.\r\n\taddLayer: function (layer) {\r\n\t\tvar id = this.getLayerId(layer);\r\n\r\n\t\tthis._layers[id] = layer;\r\n\r\n\t\tif (this._map) {\r\n\t\t\tthis._map.addLayer(layer);\r\n\t\t}\r\n\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method removeLayer(layer: Layer): this\r\n\t// Removes the given layer from the group.\r\n\t// @alternative\r\n\t// @method removeLayer(id: Number): this\r\n\t// Removes the layer with the given internal ID from the group.\r\n\tremoveLayer: function (layer) {\r\n\t\tvar id = layer in this._layers ? layer : this.getLayerId(layer);\r\n\r\n\t\tif (this._map && this._layers[id]) {\r\n\t\t\tthis._map.removeLayer(this._layers[id]);\r\n\t\t}\r\n\r\n\t\tdelete this._layers[id];\r\n\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method hasLayer(layer: Layer): Boolean\r\n\t// Returns `true` if the given layer is currently added to the group.\r\n\t// @alternative\r\n\t// @method hasLayer(id: Number): Boolean\r\n\t// Returns `true` if the given internal ID is currently added to the group.\r\n\thasLayer: function (layer) {\r\n\t\treturn !!layer && (layer in this._layers || this.getLayerId(layer) in this._layers);\r\n\t},\r\n\r\n\t// @method clearLayers(): this\r\n\t// Removes all the layers from the group.\r\n\tclearLayers: function () {\r\n\t\treturn this.eachLayer(this.removeLayer, this);\r\n\t},\r\n\r\n\t// @method invoke(methodName: String, …): this\r\n\t// Calls `methodName` on every layer contained in this group, passing any\r\n\t// additional parameters. Has no effect if the layers contained do not\r\n\t// implement `methodName`.\r\n\tinvoke: function (methodName) {\r\n\t\tvar args = Array.prototype.slice.call(arguments, 1),\r\n\t\t i, layer;\r\n\r\n\t\tfor (i in this._layers) {\r\n\t\t\tlayer = this._layers[i];\r\n\r\n\t\t\tif (layer[methodName]) {\r\n\t\t\t\tlayer[methodName].apply(layer, args);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn this;\r\n\t},\r\n\r\n\tonAdd: function (map) {\r\n\t\tthis.eachLayer(map.addLayer, map);\r\n\t},\r\n\r\n\tonRemove: function (map) {\r\n\t\tthis.eachLayer(map.removeLayer, map);\r\n\t},\r\n\r\n\t// @method eachLayer(fn: Function, context?: Object): this\r\n\t// Iterates over the layers of the group, optionally specifying context of the iterator function.\r\n\t// ```js\r\n\t// group.eachLayer(function (layer) {\r\n\t// \tlayer.bindPopup('Hello');\r\n\t// });\r\n\t// ```\r\n\teachLayer: function (method, context) {\r\n\t\tfor (var i in this._layers) {\r\n\t\t\tmethod.call(context, this._layers[i]);\r\n\t\t}\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method getLayer(id: Number): Layer\r\n\t// Returns the layer with the given internal ID.\r\n\tgetLayer: function (id) {\r\n\t\treturn this._layers[id];\r\n\t},\r\n\r\n\t// @method getLayers(): Layer[]\r\n\t// Returns an array of all the layers added to the group.\r\n\tgetLayers: function () {\r\n\t\tvar layers = [];\r\n\t\tthis.eachLayer(layers.push, layers);\r\n\t\treturn layers;\r\n\t},\r\n\r\n\t// @method setZIndex(zIndex: Number): this\r\n\t// Calls `setZIndex` on every layer contained in this group, passing the z-index.\r\n\tsetZIndex: function (zIndex) {\r\n\t\treturn this.invoke('setZIndex', zIndex);\r\n\t},\r\n\r\n\t// @method getLayerId(layer: Layer): Number\r\n\t// Returns the internal ID for a layer\r\n\tgetLayerId: function (layer) {\r\n\t\treturn stamp(layer);\r\n\t}\r\n});\r\n\r\n\r\n// @factory L.layerGroup(layers?: Layer[], options?: Object)\r\n// Create a layer group, optionally given an initial set of layers and an `options` object.\r\nvar layerGroup = function (layers, options) {\r\n\treturn new LayerGroup(layers, options);\r\n};\n\n/*\r\n * @class FeatureGroup\r\n * @aka L.FeatureGroup\r\n * @inherits LayerGroup\r\n *\r\n * Extended `LayerGroup` that makes it easier to do the same thing to all its member layers:\r\n * * [`bindPopup`](#layer-bindpopup) binds a popup to all of the layers at once (likewise with [`bindTooltip`](#layer-bindtooltip))\r\n * * Events are propagated to the `FeatureGroup`, so if the group has an event\r\n * handler, it will handle events from any of the layers. This includes mouse events\r\n * and custom events.\r\n * * Has `layeradd` and `layerremove` events\r\n *\r\n * @example\r\n *\r\n * ```js\r\n * L.featureGroup([marker1, marker2, polyline])\r\n * \t.bindPopup('Hello world!')\r\n * \t.on('click', function() { alert('Clicked on a member of the group!'); })\r\n * \t.addTo(map);\r\n * ```\r\n */\r\n\r\nvar FeatureGroup = LayerGroup.extend({\r\n\r\n\taddLayer: function (layer) {\r\n\t\tif (this.hasLayer(layer)) {\r\n\t\t\treturn this;\r\n\t\t}\r\n\r\n\t\tlayer.addEventParent(this);\r\n\r\n\t\tLayerGroup.prototype.addLayer.call(this, layer);\r\n\r\n\t\t// @event layeradd: LayerEvent\r\n\t\t// Fired when a layer is added to this `FeatureGroup`\r\n\t\treturn this.fire('layeradd', {layer: layer});\r\n\t},\r\n\r\n\tremoveLayer: function (layer) {\r\n\t\tif (!this.hasLayer(layer)) {\r\n\t\t\treturn this;\r\n\t\t}\r\n\t\tif (layer in this._layers) {\r\n\t\t\tlayer = this._layers[layer];\r\n\t\t}\r\n\r\n\t\tlayer.removeEventParent(this);\r\n\r\n\t\tLayerGroup.prototype.removeLayer.call(this, layer);\r\n\r\n\t\t// @event layerremove: LayerEvent\r\n\t\t// Fired when a layer is removed from this `FeatureGroup`\r\n\t\treturn this.fire('layerremove', {layer: layer});\r\n\t},\r\n\r\n\t// @method setStyle(style: Path options): this\r\n\t// Sets the given path options to each layer of the group that has a `setStyle` method.\r\n\tsetStyle: function (style) {\r\n\t\treturn this.invoke('setStyle', style);\r\n\t},\r\n\r\n\t// @method bringToFront(): this\r\n\t// Brings the layer group to the top of all other layers\r\n\tbringToFront: function () {\r\n\t\treturn this.invoke('bringToFront');\r\n\t},\r\n\r\n\t// @method bringToBack(): this\r\n\t// Brings the layer group to the back of all other layers\r\n\tbringToBack: function () {\r\n\t\treturn this.invoke('bringToBack');\r\n\t},\r\n\r\n\t// @method getBounds(): LatLngBounds\r\n\t// Returns the LatLngBounds of the Feature Group (created from bounds and coordinates of its children).\r\n\tgetBounds: function () {\r\n\t\tvar bounds = new LatLngBounds();\r\n\r\n\t\tfor (var id in this._layers) {\r\n\t\t\tvar layer = this._layers[id];\r\n\t\t\tbounds.extend(layer.getBounds ? layer.getBounds() : layer.getLatLng());\r\n\t\t}\r\n\t\treturn bounds;\r\n\t}\r\n});\r\n\r\n// @factory L.featureGroup(layers: Layer[])\r\n// Create a feature group, optionally given an initial set of layers.\r\nvar featureGroup = function (layers) {\r\n\treturn new FeatureGroup(layers);\r\n};\n\n/*\r\n * @class Icon\r\n * @aka L.Icon\r\n *\r\n * Represents an icon to provide when creating a marker.\r\n *\r\n * @example\r\n *\r\n * ```js\r\n * var myIcon = L.icon({\r\n * iconUrl: 'my-icon.png',\r\n * iconRetinaUrl: 'my-icon@2x.png',\r\n * iconSize: [38, 95],\r\n * iconAnchor: [22, 94],\r\n * popupAnchor: [-3, -76],\r\n * shadowUrl: 'my-icon-shadow.png',\r\n * shadowRetinaUrl: 'my-icon-shadow@2x.png',\r\n * shadowSize: [68, 95],\r\n * shadowAnchor: [22, 94]\r\n * });\r\n *\r\n * L.marker([50.505, 30.57], {icon: myIcon}).addTo(map);\r\n * ```\r\n *\r\n * `L.Icon.Default` extends `L.Icon` and is the blue icon Leaflet uses for markers by default.\r\n *\r\n */\r\n\r\nvar Icon = Class.extend({\r\n\r\n\t/* @section\r\n\t * @aka Icon options\r\n\t *\r\n\t * @option iconUrl: String = null\r\n\t * **(required)** The URL to the icon image (absolute or relative to your script path).\r\n\t *\r\n\t * @option iconRetinaUrl: String = null\r\n\t * The URL to a retina sized version of the icon image (absolute or relative to your\r\n\t * script path). Used for Retina screen devices.\r\n\t *\r\n\t * @option iconSize: Point = null\r\n\t * Size of the icon image in pixels.\r\n\t *\r\n\t * @option iconAnchor: Point = null\r\n\t * The coordinates of the \"tip\" of the icon (relative to its top left corner). The icon\r\n\t * will be aligned so that this point is at the marker's geographical location. Centered\r\n\t * by default if size is specified, also can be set in CSS with negative margins.\r\n\t *\r\n\t * @option popupAnchor: Point = [0, 0]\r\n\t * The coordinates of the point from which popups will \"open\", relative to the icon anchor.\r\n\t *\r\n\t * @option tooltipAnchor: Point = [0, 0]\r\n\t * The coordinates of the point from which tooltips will \"open\", relative to the icon anchor.\r\n\t *\r\n\t * @option shadowUrl: String = null\r\n\t * The URL to the icon shadow image. If not specified, no shadow image will be created.\r\n\t *\r\n\t * @option shadowRetinaUrl: String = null\r\n\t *\r\n\t * @option shadowSize: Point = null\r\n\t * Size of the shadow image in pixels.\r\n\t *\r\n\t * @option shadowAnchor: Point = null\r\n\t * The coordinates of the \"tip\" of the shadow (relative to its top left corner) (the same\r\n\t * as iconAnchor if not specified).\r\n\t *\r\n\t * @option className: String = ''\r\n\t * A custom class name to assign to both icon and shadow images. Empty by default.\r\n\t */\r\n\r\n\toptions: {\r\n\t\tpopupAnchor: [0, 0],\r\n\t\ttooltipAnchor: [0, 0],\r\n\t},\r\n\r\n\tinitialize: function (options) {\r\n\t\tsetOptions(this, options);\r\n\t},\r\n\r\n\t// @method createIcon(oldIcon?: HTMLElement): HTMLElement\r\n\t// Called internally when the icon has to be shown, returns a `<img>` HTML element\r\n\t// styled according to the options.\r\n\tcreateIcon: function (oldIcon) {\r\n\t\treturn this._createIcon('icon', oldIcon);\r\n\t},\r\n\r\n\t// @method createShadow(oldIcon?: HTMLElement): HTMLElement\r\n\t// As `createIcon`, but for the shadow beneath it.\r\n\tcreateShadow: function (oldIcon) {\r\n\t\treturn this._createIcon('shadow', oldIcon);\r\n\t},\r\n\r\n\t_createIcon: function (name, oldIcon) {\r\n\t\tvar src = this._getIconUrl(name);\r\n\r\n\t\tif (!src) {\r\n\t\t\tif (name === 'icon') {\r\n\t\t\t\tthrow new Error('iconUrl not set in Icon options (see the docs).');\r\n\t\t\t}\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\tvar img = this._createImg(src, oldIcon && oldIcon.tagName === 'IMG' ? oldIcon : null);\r\n\t\tthis._setIconStyles(img, name);\r\n\r\n\t\treturn img;\r\n\t},\r\n\r\n\t_setIconStyles: function (img, name) {\r\n\t\tvar options = this.options;\r\n\t\tvar sizeOption = options[name + 'Size'];\r\n\r\n\t\tif (typeof sizeOption === 'number') {\r\n\t\t\tsizeOption = [sizeOption, sizeOption];\r\n\t\t}\r\n\r\n\t\tvar size = toPoint(sizeOption),\r\n\t\t anchor = toPoint(name === 'shadow' && options.shadowAnchor || options.iconAnchor ||\r\n\t\t size && size.divideBy(2, true));\r\n\r\n\t\timg.className = 'leaflet-marker-' + name + ' ' + (options.className || '');\r\n\r\n\t\tif (anchor) {\r\n\t\t\timg.style.marginLeft = (-anchor.x) + 'px';\r\n\t\t\timg.style.marginTop = (-anchor.y) + 'px';\r\n\t\t}\r\n\r\n\t\tif (size) {\r\n\t\t\timg.style.width = size.x + 'px';\r\n\t\t\timg.style.height = size.y + 'px';\r\n\t\t}\r\n\t},\r\n\r\n\t_createImg: function (src, el) {\r\n\t\tel = el || document.createElement('img');\r\n\t\tel.src = src;\r\n\t\treturn el;\r\n\t},\r\n\r\n\t_getIconUrl: function (name) {\r\n\t\treturn retina && this.options[name + 'RetinaUrl'] || this.options[name + 'Url'];\r\n\t}\r\n});\r\n\r\n\r\n// @factory L.icon(options: Icon options)\r\n// Creates an icon instance with the given options.\r\nfunction icon(options) {\r\n\treturn new Icon(options);\r\n}\n\n/*\n * @miniclass Icon.Default (Icon)\n * @aka L.Icon.Default\n * @section\n *\n * A trivial subclass of `Icon`, represents the icon to use in `Marker`s when\n * no icon is specified. Points to the blue marker image distributed with Leaflet\n * releases.\n *\n * In order to customize the default icon, just change the properties of `L.Icon.Default.prototype.options`\n * (which is a set of `Icon options`).\n *\n * If you want to _completely_ replace the default icon, override the\n * `L.Marker.prototype.options.icon` with your own icon instead.\n */\n\nvar IconDefault = Icon.extend({\n\n\toptions: {\n\t\ticonUrl: 'marker-icon.png',\n\t\ticonRetinaUrl: 'marker-icon-2x.png',\n\t\tshadowUrl: 'marker-shadow.png',\n\t\ticonSize: [25, 41],\n\t\ticonAnchor: [12, 41],\n\t\tpopupAnchor: [1, -34],\n\t\ttooltipAnchor: [16, -28],\n\t\tshadowSize: [41, 41]\n\t},\n\n\t_getIconUrl: function (name) {\n\t\tif (!IconDefault.imagePath) {\t// Deprecated, backwards-compatibility only\n\t\t\tIconDefault.imagePath = this._detectIconPath();\n\t\t}\n\n\t\t// @option imagePath: String\n\t\t// `Icon.Default` will try to auto-detect the location of the\n\t\t// blue icon images. If you are placing these images in a non-standard\n\t\t// way, set this option to point to the right path.\n\t\treturn (this.options.imagePath || IconDefault.imagePath) + Icon.prototype._getIconUrl.call(this, name);\n\t},\n\n\t_detectIconPath: function () {\n\t\tvar el = create$1('div', 'leaflet-default-icon-path', document.body);\n\t\tvar path = getStyle(el, 'background-image') ||\n\t\t getStyle(el, 'backgroundImage');\t// IE8\n\n\t\tdocument.body.removeChild(el);\n\n\t\tif (path === null || path.indexOf('url') !== 0) {\n\t\t\tpath = '';\n\t\t} else {\n\t\t\tpath = path.replace(/^url\\([\"']?/, '').replace(/marker-icon\\.png[\"']?\\)$/, '');\n\t\t}\n\n\t\treturn path;\n\t}\n});\n\n/*\n * L.Handler.MarkerDrag is used internally by L.Marker to make the markers draggable.\n */\n\n\n/* @namespace Marker\n * @section Interaction handlers\n *\n * Interaction handlers are properties of a marker instance that allow you to control interaction behavior in runtime, enabling or disabling certain features such as dragging (see `Handler` methods). Example:\n *\n * ```js\n * marker.dragging.disable();\n * ```\n *\n * @property dragging: Handler\n * Marker dragging handler (by both mouse and touch). Only valid when the marker is on the map (Otherwise set [`marker.options.draggable`](#marker-draggable)).\n */\n\nvar MarkerDrag = Handler.extend({\n\tinitialize: function (marker) {\n\t\tthis._marker = marker;\n\t},\n\n\taddHooks: function () {\n\t\tvar icon = this._marker._icon;\n\n\t\tif (!this._draggable) {\n\t\t\tthis._draggable = new Draggable(icon, icon, true);\n\t\t}\n\n\t\tthis._draggable.on({\n\t\t\tdragstart: this._onDragStart,\n\t\t\tpredrag: this._onPreDrag,\n\t\t\tdrag: this._onDrag,\n\t\t\tdragend: this._onDragEnd\n\t\t}, this).enable();\n\n\t\taddClass(icon, 'leaflet-marker-draggable');\n\t},\n\n\tremoveHooks: function () {\n\t\tthis._draggable.off({\n\t\t\tdragstart: this._onDragStart,\n\t\t\tpredrag: this._onPreDrag,\n\t\t\tdrag: this._onDrag,\n\t\t\tdragend: this._onDragEnd\n\t\t}, this).disable();\n\n\t\tif (this._marker._icon) {\n\t\t\tremoveClass(this._marker._icon, 'leaflet-marker-draggable');\n\t\t}\n\t},\n\n\tmoved: function () {\n\t\treturn this._draggable && this._draggable._moved;\n\t},\n\n\t_adjustPan: function (e) {\n\t\tvar marker = this._marker,\n\t\t map = marker._map,\n\t\t speed = this._marker.options.autoPanSpeed,\n\t\t padding = this._marker.options.autoPanPadding,\n\t\t iconPos = getPosition(marker._icon),\n\t\t bounds = map.getPixelBounds(),\n\t\t origin = map.getPixelOrigin();\n\n\t\tvar panBounds = toBounds(\n\t\t\tbounds.min._subtract(origin).add(padding),\n\t\t\tbounds.max._subtract(origin).subtract(padding)\n\t\t);\n\n\t\tif (!panBounds.contains(iconPos)) {\n\t\t\t// Compute incremental movement\n\t\t\tvar movement = toPoint(\n\t\t\t\t(Math.max(panBounds.max.x, iconPos.x) - panBounds.max.x) / (bounds.max.x - panBounds.max.x) -\n\t\t\t\t(Math.min(panBounds.min.x, iconPos.x) - panBounds.min.x) / (bounds.min.x - panBounds.min.x),\n\n\t\t\t\t(Math.max(panBounds.max.y, iconPos.y) - panBounds.max.y) / (bounds.max.y - panBounds.max.y) -\n\t\t\t\t(Math.min(panBounds.min.y, iconPos.y) - panBounds.min.y) / (bounds.min.y - panBounds.min.y)\n\t\t\t).multiplyBy(speed);\n\n\t\t\tmap.panBy(movement, {animate: false});\n\n\t\t\tthis._draggable._newPos._add(movement);\n\t\t\tthis._draggable._startPos._add(movement);\n\n\t\t\tsetPosition(marker._icon, this._draggable._newPos);\n\t\t\tthis._onDrag(e);\n\n\t\t\tthis._panRequest = requestAnimFrame(this._adjustPan.bind(this, e));\n\t\t}\n\t},\n\n\t_onDragStart: function () {\n\t\t// @section Dragging events\n\t\t// @event dragstart: Event\n\t\t// Fired when the user starts dragging the marker.\n\n\t\t// @event movestart: Event\n\t\t// Fired when the marker starts moving (because of dragging).\n\n\t\tthis._oldLatLng = this._marker.getLatLng();\n\t\tthis._marker\n\t\t .closePopup()\n\t\t .fire('movestart')\n\t\t .fire('dragstart');\n\t},\n\n\t_onPreDrag: function (e) {\n\t\tif (this._marker.options.autoPan) {\n\t\t\tcancelAnimFrame(this._panRequest);\n\t\t\tthis._panRequest = requestAnimFrame(this._adjustPan.bind(this, e));\n\t\t}\n\t},\n\n\t_onDrag: function (e) {\n\t\tvar marker = this._marker,\n\t\t shadow = marker._shadow,\n\t\t iconPos = getPosition(marker._icon),\n\t\t latlng = marker._map.layerPointToLatLng(iconPos);\n\n\t\t// update shadow position\n\t\tif (shadow) {\n\t\t\tsetPosition(shadow, iconPos);\n\t\t}\n\n\t\tmarker._latlng = latlng;\n\t\te.latlng = latlng;\n\t\te.oldLatLng = this._oldLatLng;\n\n\t\t// @event drag: Event\n\t\t// Fired repeatedly while the user drags the marker.\n\t\tmarker\n\t\t .fire('move', e)\n\t\t .fire('drag', e);\n\t},\n\n\t_onDragEnd: function (e) {\n\t\t// @event dragend: DragEndEvent\n\t\t// Fired when the user stops dragging the marker.\n\n\t\t cancelAnimFrame(this._panRequest);\n\n\t\t// @event moveend: Event\n\t\t// Fired when the marker stops moving (because of dragging).\n\t\tdelete this._oldLatLng;\n\t\tthis._marker\n\t\t .fire('moveend')\n\t\t .fire('dragend', e);\n\t}\n});\n\n/*\r\n * @class Marker\r\n * @inherits Interactive layer\r\n * @aka L.Marker\r\n * L.Marker is used to display clickable/draggable icons on the map. Extends `Layer`.\r\n *\r\n * @example\r\n *\r\n * ```js\r\n * L.marker([50.5, 30.5]).addTo(map);\r\n * ```\r\n */\r\n\r\nvar Marker = Layer.extend({\r\n\r\n\t// @section\r\n\t// @aka Marker options\r\n\toptions: {\r\n\t\t// @option icon: Icon = *\r\n\t\t// Icon instance to use for rendering the marker.\r\n\t\t// See [Icon documentation](#L.Icon) for details on how to customize the marker icon.\r\n\t\t// If not specified, a common instance of `L.Icon.Default` is used.\r\n\t\ticon: new IconDefault(),\r\n\r\n\t\t// Option inherited from \"Interactive layer\" abstract class\r\n\t\tinteractive: true,\r\n\r\n\t\t// @option draggable: Boolean = false\r\n\t\t// Whether the marker is draggable with mouse/touch or not.\r\n\t\tdraggable: false,\r\n\r\n\t\t// @option autoPan: Boolean = false\r\n\t\t// Set it to `true` if you want the map to do panning animation when marker hits the edges.\r\n\t\tautoPan: false,\r\n\r\n\t\t// @option autoPanPadding: Point = Point(50, 50)\r\n\t\t// Equivalent of setting both top left and bottom right autopan padding to the same value.\r\n\t\tautoPanPadding: [50, 50],\r\n\r\n\t\t// @option autoPanSpeed: Number = 10\r\n\t\t// Number of pixels the map should move by.\r\n\t\tautoPanSpeed: 10,\r\n\r\n\t\t// @option keyboard: Boolean = true\r\n\t\t// Whether the marker can be tabbed to with a keyboard and clicked by pressing enter.\r\n\t\tkeyboard: true,\r\n\r\n\t\t// @option title: String = ''\r\n\t\t// Text for the browser tooltip that appear on marker hover (no tooltip by default).\r\n\t\ttitle: '',\r\n\r\n\t\t// @option alt: String = ''\r\n\t\t// Text for the `alt` attribute of the icon image (useful for accessibility).\r\n\t\talt: '',\r\n\r\n\t\t// @option zIndexOffset: Number = 0\r\n\t\t// By default, marker images zIndex is set automatically based on its latitude. Use this option if you want to put the marker on top of all others (or below), specifying a high value like `1000` (or high negative value, respectively).\r\n\t\tzIndexOffset: 0,\r\n\r\n\t\t// @option opacity: Number = 1.0\r\n\t\t// The opacity of the marker.\r\n\t\topacity: 1,\r\n\r\n\t\t// @option riseOnHover: Boolean = false\r\n\t\t// If `true`, the marker will get on top of others when you hover the mouse over it.\r\n\t\triseOnHover: false,\r\n\r\n\t\t// @option riseOffset: Number = 250\r\n\t\t// The z-index offset used for the `riseOnHover` feature.\r\n\t\triseOffset: 250,\r\n\r\n\t\t// @option pane: String = 'markerPane'\r\n\t\t// `Map pane` where the markers icon will be added.\r\n\t\tpane: 'markerPane',\r\n\r\n\t\t// @option bubblingMouseEvents: Boolean = false\r\n\t\t// When `true`, a mouse event on this marker will trigger the same event on the map\r\n\t\t// (unless [`L.DomEvent.stopPropagation`](#domevent-stoppropagation) is used).\r\n\t\tbubblingMouseEvents: false\r\n\t},\r\n\r\n\t/* @section\r\n\t *\r\n\t * In addition to [shared layer methods](#Layer) like `addTo()` and `remove()` and [popup methods](#Popup) like bindPopup() you can also use the following methods:\r\n\t */\r\n\r\n\tinitialize: function (latlng, options) {\r\n\t\tsetOptions(this, options);\r\n\t\tthis._latlng = toLatLng(latlng);\r\n\t},\r\n\r\n\tonAdd: function (map) {\r\n\t\tthis._zoomAnimated = this._zoomAnimated && map.options.markerZoomAnimation;\r\n\r\n\t\tif (this._zoomAnimated) {\r\n\t\t\tmap.on('zoomanim', this._animateZoom, this);\r\n\t\t}\r\n\r\n\t\tthis._initIcon();\r\n\t\tthis.update();\r\n\t},\r\n\r\n\tonRemove: function (map) {\r\n\t\tif (this.dragging && this.dragging.enabled()) {\r\n\t\t\tthis.options.draggable = true;\r\n\t\t\tthis.dragging.removeHooks();\r\n\t\t}\r\n\t\tdelete this.dragging;\r\n\r\n\t\tif (this._zoomAnimated) {\r\n\t\t\tmap.off('zoomanim', this._animateZoom, this);\r\n\t\t}\r\n\r\n\t\tthis._removeIcon();\r\n\t\tthis._removeShadow();\r\n\t},\r\n\r\n\tgetEvents: function () {\r\n\t\treturn {\r\n\t\t\tzoom: this.update,\r\n\t\t\tviewreset: this.update\r\n\t\t};\r\n\t},\r\n\r\n\t// @method getLatLng: LatLng\r\n\t// Returns the current geographical position of the marker.\r\n\tgetLatLng: function () {\r\n\t\treturn this._latlng;\r\n\t},\r\n\r\n\t// @method setLatLng(latlng: LatLng): this\r\n\t// Changes the marker position to the given point.\r\n\tsetLatLng: function (latlng) {\r\n\t\tvar oldLatLng = this._latlng;\r\n\t\tthis._latlng = toLatLng(latlng);\r\n\t\tthis.update();\r\n\r\n\t\t// @event move: Event\r\n\t\t// Fired when the marker is moved via [`setLatLng`](#marker-setlatlng) or by [dragging](#marker-dragging). Old and new coordinates are included in event arguments as `oldLatLng`, `latlng`.\r\n\t\treturn this.fire('move', {oldLatLng: oldLatLng, latlng: this._latlng});\r\n\t},\r\n\r\n\t// @method setZIndexOffset(offset: Number): this\r\n\t// Changes the [zIndex offset](#marker-zindexoffset) of the marker.\r\n\tsetZIndexOffset: function (offset) {\r\n\t\tthis.options.zIndexOffset = offset;\r\n\t\treturn this.update();\r\n\t},\r\n\r\n\t// @method setIcon(icon: Icon): this\r\n\t// Changes the marker icon.\r\n\tsetIcon: function (icon) {\r\n\r\n\t\tthis.options.icon = icon;\r\n\r\n\t\tif (this._map) {\r\n\t\t\tthis._initIcon();\r\n\t\t\tthis.update();\r\n\t\t}\r\n\r\n\t\tif (this._popup) {\r\n\t\t\tthis.bindPopup(this._popup, this._popup.options);\r\n\t\t}\r\n\r\n\t\treturn this;\r\n\t},\r\n\r\n\tgetElement: function () {\r\n\t\treturn this._icon;\r\n\t},\r\n\r\n\tupdate: function () {\r\n\r\n\t\tif (this._icon && this._map) {\r\n\t\t\tvar pos = this._map.latLngToLayerPoint(this._latlng).round();\r\n\t\t\tthis._setPos(pos);\r\n\t\t}\r\n\r\n\t\treturn this;\r\n\t},\r\n\r\n\t_initIcon: function () {\r\n\t\tvar options = this.options,\r\n\t\t classToAdd = 'leaflet-zoom-' + (this._zoomAnimated ? 'animated' : 'hide');\r\n\r\n\t\tvar icon = options.icon.createIcon(this._icon),\r\n\t\t addIcon = false;\r\n\r\n\t\t// if we're not reusing the icon, remove the old one and init new one\r\n\t\tif (icon !== this._icon) {\r\n\t\t\tif (this._icon) {\r\n\t\t\t\tthis._removeIcon();\r\n\t\t\t}\r\n\t\t\taddIcon = true;\r\n\r\n\t\t\tif (options.title) {\r\n\t\t\t\ticon.title = options.title;\r\n\t\t\t}\r\n\r\n\t\t\tif (icon.tagName === 'IMG') {\r\n\t\t\t\ticon.alt = options.alt || '';\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\taddClass(icon, classToAdd);\r\n\r\n\t\tif (options.keyboard) {\r\n\t\t\ticon.tabIndex = '0';\r\n\t\t}\r\n\r\n\t\tthis._icon = icon;\r\n\r\n\t\tif (options.riseOnHover) {\r\n\t\t\tthis.on({\r\n\t\t\t\tmouseover: this._bringToFront,\r\n\t\t\t\tmouseout: this._resetZIndex\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\tvar newShadow = options.icon.createShadow(this._shadow),\r\n\t\t addShadow = false;\r\n\r\n\t\tif (newShadow !== this._shadow) {\r\n\t\t\tthis._removeShadow();\r\n\t\t\taddShadow = true;\r\n\t\t}\r\n\r\n\t\tif (newShadow) {\r\n\t\t\taddClass(newShadow, classToAdd);\r\n\t\t\tnewShadow.alt = '';\r\n\t\t}\r\n\t\tthis._shadow = newShadow;\r\n\r\n\r\n\t\tif (options.opacity < 1) {\r\n\t\t\tthis._updateOpacity();\r\n\t\t}\r\n\r\n\r\n\t\tif (addIcon) {\r\n\t\t\tthis.getPane().appendChild(this._icon);\r\n\t\t}\r\n\t\tthis._initInteraction();\r\n\t\tif (newShadow && addShadow) {\r\n\t\t\tthis.getPane('shadowPane').appendChild(this._shadow);\r\n\t\t}\r\n\t},\r\n\r\n\t_removeIcon: function () {\r\n\t\tif (this.options.riseOnHover) {\r\n\t\t\tthis.off({\r\n\t\t\t\tmouseover: this._bringToFront,\r\n\t\t\t\tmouseout: this._resetZIndex\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\tremove(this._icon);\r\n\t\tthis.removeInteractiveTarget(this._icon);\r\n\r\n\t\tthis._icon = null;\r\n\t},\r\n\r\n\t_removeShadow: function () {\r\n\t\tif (this._shadow) {\r\n\t\t\tremove(this._shadow);\r\n\t\t}\r\n\t\tthis._shadow = null;\r\n\t},\r\n\r\n\t_setPos: function (pos) {\r\n\t\tsetPosition(this._icon, pos);\r\n\r\n\t\tif (this._shadow) {\r\n\t\t\tsetPosition(this._shadow, pos);\r\n\t\t}\r\n\r\n\t\tthis._zIndex = pos.y + this.options.zIndexOffset;\r\n\r\n\t\tthis._resetZIndex();\r\n\t},\r\n\r\n\t_updateZIndex: function (offset) {\r\n\t\tthis._icon.style.zIndex = this._zIndex + offset;\r\n\t},\r\n\r\n\t_animateZoom: function (opt) {\r\n\t\tvar pos = this._map._latLngToNewLayerPoint(this._latlng, opt.zoom, opt.center).round();\r\n\r\n\t\tthis._setPos(pos);\r\n\t},\r\n\r\n\t_initInteraction: function () {\r\n\r\n\t\tif (!this.options.interactive) { return; }\r\n\r\n\t\taddClass(this._icon, 'leaflet-interactive');\r\n\r\n\t\tthis.addInteractiveTarget(this._icon);\r\n\r\n\t\tif (MarkerDrag) {\r\n\t\t\tvar draggable = this.options.draggable;\r\n\t\t\tif (this.dragging) {\r\n\t\t\t\tdraggable = this.dragging.enabled();\r\n\t\t\t\tthis.dragging.disable();\r\n\t\t\t}\r\n\r\n\t\t\tthis.dragging = new MarkerDrag(this);\r\n\r\n\t\t\tif (draggable) {\r\n\t\t\t\tthis.dragging.enable();\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\r\n\t// @method setOpacity(opacity: Number): this\r\n\t// Changes the opacity of the marker.\r\n\tsetOpacity: function (opacity) {\r\n\t\tthis.options.opacity = opacity;\r\n\t\tif (this._map) {\r\n\t\t\tthis._updateOpacity();\r\n\t\t}\r\n\r\n\t\treturn this;\r\n\t},\r\n\r\n\t_updateOpacity: function () {\r\n\t\tvar opacity = this.options.opacity;\r\n\r\n\t\tsetOpacity(this._icon, opacity);\r\n\r\n\t\tif (this._shadow) {\r\n\t\t\tsetOpacity(this._shadow, opacity);\r\n\t\t}\r\n\t},\r\n\r\n\t_bringToFront: function () {\r\n\t\tthis._updateZIndex(this.options.riseOffset);\r\n\t},\r\n\r\n\t_resetZIndex: function () {\r\n\t\tthis._updateZIndex(0);\r\n\t},\r\n\r\n\t_getPopupAnchor: function () {\r\n\t\treturn this.options.icon.options.popupAnchor;\r\n\t},\r\n\r\n\t_getTooltipAnchor: function () {\r\n\t\treturn this.options.icon.options.tooltipAnchor;\r\n\t}\r\n});\r\n\r\n\r\n// factory L.marker(latlng: LatLng, options? : Marker options)\r\n\r\n// @factory L.marker(latlng: LatLng, options? : Marker options)\r\n// Instantiates a Marker object given a geographical point and optionally an options object.\r\nfunction marker(latlng, options) {\r\n\treturn new Marker(latlng, options);\r\n}\n\n/*\n * @class Path\n * @aka L.Path\n * @inherits Interactive layer\n *\n * An abstract class that contains options and constants shared between vector\n * overlays (Polygon, Polyline, Circle). Do not use it directly. Extends `Layer`.\n */\n\nvar Path = Layer.extend({\n\n\t// @section\n\t// @aka Path options\n\toptions: {\n\t\t// @option stroke: Boolean = true\n\t\t// Whether to draw stroke along the path. Set it to `false` to disable borders on polygons or circles.\n\t\tstroke: true,\n\n\t\t// @option color: String = '#3388ff'\n\t\t// Stroke color\n\t\tcolor: '#3388ff',\n\n\t\t// @option weight: Number = 3\n\t\t// Stroke width in pixels\n\t\tweight: 3,\n\n\t\t// @option opacity: Number = 1.0\n\t\t// Stroke opacity\n\t\topacity: 1,\n\n\t\t// @option lineCap: String= 'round'\n\t\t// A string that defines [shape to be used at the end](https://developer.mozilla.org/docs/Web/SVG/Attribute/stroke-linecap) of the stroke.\n\t\tlineCap: 'round',\n\n\t\t// @option lineJoin: String = 'round'\n\t\t// A string that defines [shape to be used at the corners](https://developer.mozilla.org/docs/Web/SVG/Attribute/stroke-linejoin) of the stroke.\n\t\tlineJoin: 'round',\n\n\t\t// @option dashArray: String = null\n\t\t// A string that defines the stroke [dash pattern](https://developer.mozilla.org/docs/Web/SVG/Attribute/stroke-dasharray). Doesn't work on `Canvas`-powered layers in [some old browsers](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setLineDash#Browser_compatibility).\n\t\tdashArray: null,\n\n\t\t// @option dashOffset: String = null\n\t\t// A string that defines the [distance into the dash pattern to start the dash](https://developer.mozilla.org/docs/Web/SVG/Attribute/stroke-dashoffset). Doesn't work on `Canvas`-powered layers in [some old browsers](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setLineDash#Browser_compatibility).\n\t\tdashOffset: null,\n\n\t\t// @option fill: Boolean = depends\n\t\t// Whether to fill the path with color. Set it to `false` to disable filling on polygons or circles.\n\t\tfill: false,\n\n\t\t// @option fillColor: String = *\n\t\t// Fill color. Defaults to the value of the [`color`](#path-color) option\n\t\tfillColor: null,\n\n\t\t// @option fillOpacity: Number = 0.2\n\t\t// Fill opacity.\n\t\tfillOpacity: 0.2,\n\n\t\t// @option fillRule: String = 'evenodd'\n\t\t// A string that defines [how the inside of a shape](https://developer.mozilla.org/docs/Web/SVG/Attribute/fill-rule) is determined.\n\t\tfillRule: 'evenodd',\n\n\t\t// className: '',\n\n\t\t// Option inherited from \"Interactive layer\" abstract class\n\t\tinteractive: true,\n\n\t\t// @option bubblingMouseEvents: Boolean = true\n\t\t// When `true`, a mouse event on this path will trigger the same event on the map\n\t\t// (unless [`L.DomEvent.stopPropagation`](#domevent-stoppropagation) is used).\n\t\tbubblingMouseEvents: true\n\t},\n\n\tbeforeAdd: function (map) {\n\t\t// Renderer is set here because we need to call renderer.getEvents\n\t\t// before this.getEvents.\n\t\tthis._renderer = map.getRenderer(this);\n\t},\n\n\tonAdd: function () {\n\t\tthis._renderer._initPath(this);\n\t\tthis._reset();\n\t\tthis._renderer._addPath(this);\n\t},\n\n\tonRemove: function () {\n\t\tthis._renderer._removePath(this);\n\t},\n\n\t// @method redraw(): this\n\t// Redraws the layer. Sometimes useful after you changed the coordinates that the path uses.\n\tredraw: function () {\n\t\tif (this._map) {\n\t\t\tthis._renderer._updatePath(this);\n\t\t}\n\t\treturn this;\n\t},\n\n\t// @method setStyle(style: Path options): this\n\t// Changes the appearance of a Path based on the options in the `Path options` object.\n\tsetStyle: function (style) {\n\t\tsetOptions(this, style);\n\t\tif (this._renderer) {\n\t\t\tthis._renderer._updateStyle(this);\n\t\t}\n\t\treturn this;\n\t},\n\n\t// @method bringToFront(): this\n\t// Brings the layer to the top of all path layers.\n\tbringToFront: function () {\n\t\tif (this._renderer) {\n\t\t\tthis._renderer._bringToFront(this);\n\t\t}\n\t\treturn this;\n\t},\n\n\t// @method bringToBack(): this\n\t// Brings the layer to the bottom of all path layers.\n\tbringToBack: function () {\n\t\tif (this._renderer) {\n\t\t\tthis._renderer._bringToBack(this);\n\t\t}\n\t\treturn this;\n\t},\n\n\tgetElement: function () {\n\t\treturn this._path;\n\t},\n\n\t_reset: function () {\n\t\t// defined in child classes\n\t\tthis._project();\n\t\tthis._update();\n\t},\n\n\t_clickTolerance: function () {\n\t\t// used when doing hit detection for Canvas layers\n\t\treturn (this.options.stroke ? this.options.weight / 2 : 0) + this._renderer.options.tolerance;\n\t}\n});\n\n/*\n * @class CircleMarker\n * @aka L.CircleMarker\n * @inherits Path\n *\n * A circle of a fixed size with radius specified in pixels. Extends `Path`.\n */\n\nvar CircleMarker = Path.extend({\n\n\t// @section\n\t// @aka CircleMarker options\n\toptions: {\n\t\tfill: true,\n\n\t\t// @option radius: Number = 10\n\t\t// Radius of the circle marker, in pixels\n\t\tradius: 10\n\t},\n\n\tinitialize: function (latlng, options) {\n\t\tsetOptions(this, options);\n\t\tthis._latlng = toLatLng(latlng);\n\t\tthis._radius = this.options.radius;\n\t},\n\n\t// @method setLatLng(latLng: LatLng): this\n\t// Sets the position of a circle marker to a new location.\n\tsetLatLng: function (latlng) {\n\t\tthis._latlng = toLatLng(latlng);\n\t\tthis.redraw();\n\t\treturn this.fire('move', {latlng: this._latlng});\n\t},\n\n\t// @method getLatLng(): LatLng\n\t// Returns the current geographical position of the circle marker\n\tgetLatLng: function () {\n\t\treturn this._latlng;\n\t},\n\n\t// @method setRadius(radius: Number): this\n\t// Sets the radius of a circle marker. Units are in pixels.\n\tsetRadius: function (radius) {\n\t\tthis.options.radius = this._radius = radius;\n\t\treturn this.redraw();\n\t},\n\n\t// @method getRadius(): Number\n\t// Returns the current radius of the circle\n\tgetRadius: function () {\n\t\treturn this._radius;\n\t},\n\n\tsetStyle : function (options) {\n\t\tvar radius = options && options.radius || this._radius;\n\t\tPath.prototype.setStyle.call(this, options);\n\t\tthis.setRadius(radius);\n\t\treturn this;\n\t},\n\n\t_project: function () {\n\t\tthis._point = this._map.latLngToLayerPoint(this._latlng);\n\t\tthis._updateBounds();\n\t},\n\n\t_updateBounds: function () {\n\t\tvar r = this._radius,\n\t\t r2 = this._radiusY || r,\n\t\t w = this._clickTolerance(),\n\t\t p = [r + w, r2 + w];\n\t\tthis._pxBounds = new Bounds(this._point.subtract(p), this._point.add(p));\n\t},\n\n\t_update: function () {\n\t\tif (this._map) {\n\t\t\tthis._updatePath();\n\t\t}\n\t},\n\n\t_updatePath: function () {\n\t\tthis._renderer._updateCircle(this);\n\t},\n\n\t_empty: function () {\n\t\treturn this._radius && !this._renderer._bounds.intersects(this._pxBounds);\n\t},\n\n\t// Needed by the `Canvas` renderer for interactivity\n\t_containsPoint: function (p) {\n\t\treturn p.distanceTo(this._point) <= this._radius + this._clickTolerance();\n\t}\n});\n\n\n// @factory L.circleMarker(latlng: LatLng, options?: CircleMarker options)\n// Instantiates a circle marker object given a geographical point, and an optional options object.\nfunction circleMarker(latlng, options) {\n\treturn new CircleMarker(latlng, options);\n}\n\n/*\n * @class Circle\n * @aka L.Circle\n * @inherits CircleMarker\n *\n * A class for drawing circle overlays on a map. Extends `CircleMarker`.\n *\n * It's an approximation and starts to diverge from a real circle closer to poles (due to projection distortion).\n *\n * @example\n *\n * ```js\n * L.circle([50.5, 30.5], {radius: 200}).addTo(map);\n * ```\n */\n\nvar Circle = CircleMarker.extend({\n\n\tinitialize: function (latlng, options, legacyOptions) {\n\t\tif (typeof options === 'number') {\n\t\t\t// Backwards compatibility with 0.7.x factory (latlng, radius, options?)\n\t\t\toptions = extend({}, legacyOptions, {radius: options});\n\t\t}\n\t\tsetOptions(this, options);\n\t\tthis._latlng = toLatLng(latlng);\n\n\t\tif (isNaN(this.options.radius)) { throw new Error('Circle radius cannot be NaN'); }\n\n\t\t// @section\n\t\t// @aka Circle options\n\t\t// @option radius: Number; Radius of the circle, in meters.\n\t\tthis._mRadius = this.options.radius;\n\t},\n\n\t// @method setRadius(radius: Number): this\n\t// Sets the radius of a circle. Units are in meters.\n\tsetRadius: function (radius) {\n\t\tthis._mRadius = radius;\n\t\treturn this.redraw();\n\t},\n\n\t// @method getRadius(): Number\n\t// Returns the current radius of a circle. Units are in meters.\n\tgetRadius: function () {\n\t\treturn this._mRadius;\n\t},\n\n\t// @method getBounds(): LatLngBounds\n\t// Returns the `LatLngBounds` of the path.\n\tgetBounds: function () {\n\t\tvar half = [this._radius, this._radiusY || this._radius];\n\n\t\treturn new LatLngBounds(\n\t\t\tthis._map.layerPointToLatLng(this._point.subtract(half)),\n\t\t\tthis._map.layerPointToLatLng(this._point.add(half)));\n\t},\n\n\tsetStyle: Path.prototype.setStyle,\n\n\t_project: function () {\n\n\t\tvar lng = this._latlng.lng,\n\t\t lat = this._latlng.lat,\n\t\t map = this._map,\n\t\t crs = map.options.crs;\n\n\t\tif (crs.distance === Earth.distance) {\n\t\t\tvar d = Math.PI / 180,\n\t\t\t latR = (this._mRadius / Earth.R) / d,\n\t\t\t top = map.project([lat + latR, lng]),\n\t\t\t bottom = map.project([lat - latR, lng]),\n\t\t\t p = top.add(bottom).divideBy(2),\n\t\t\t lat2 = map.unproject(p).lat,\n\t\t\t lngR = Math.acos((Math.cos(latR * d) - Math.sin(lat * d) * Math.sin(lat2 * d)) /\n\t\t\t (Math.cos(lat * d) * Math.cos(lat2 * d))) / d;\n\n\t\t\tif (isNaN(lngR) || lngR === 0) {\n\t\t\t\tlngR = latR / Math.cos(Math.PI / 180 * lat); // Fallback for edge case, #2425\n\t\t\t}\n\n\t\t\tthis._point = p.subtract(map.getPixelOrigin());\n\t\t\tthis._radius = isNaN(lngR) ? 0 : p.x - map.project([lat2, lng - lngR]).x;\n\t\t\tthis._radiusY = p.y - top.y;\n\n\t\t} else {\n\t\t\tvar latlng2 = crs.unproject(crs.project(this._latlng).subtract([this._mRadius, 0]));\n\n\t\t\tthis._point = map.latLngToLayerPoint(this._latlng);\n\t\t\tthis._radius = this._point.x - map.latLngToLayerPoint(latlng2).x;\n\t\t}\n\n\t\tthis._updateBounds();\n\t}\n});\n\n// @factory L.circle(latlng: LatLng, options?: Circle options)\n// Instantiates a circle object given a geographical point, and an options object\n// which contains the circle radius.\n// @alternative\n// @factory L.circle(latlng: LatLng, radius: Number, options?: Circle options)\n// Obsolete way of instantiating a circle, for compatibility with 0.7.x code.\n// Do not use in new applications or plugins.\nfunction circle(latlng, options, legacyOptions) {\n\treturn new Circle(latlng, options, legacyOptions);\n}\n\n/*\n * @class Polyline\n * @aka L.Polyline\n * @inherits Path\n *\n * A class for drawing polyline overlays on a map. Extends `Path`.\n *\n * @example\n *\n * ```js\n * // create a red polyline from an array of LatLng points\n * var latlngs = [\n * \t[45.51, -122.68],\n * \t[37.77, -122.43],\n * \t[34.04, -118.2]\n * ];\n *\n * var polyline = L.polyline(latlngs, {color: 'red'}).addTo(map);\n *\n * // zoom the map to the polyline\n * map.fitBounds(polyline.getBounds());\n * ```\n *\n * You can also pass a multi-dimensional array to represent a `MultiPolyline` shape:\n *\n * ```js\n * // create a red polyline from an array of arrays of LatLng points\n * var latlngs = [\n * \t[[45.51, -122.68],\n * \t [37.77, -122.43],\n * \t [34.04, -118.2]],\n * \t[[40.78, -73.91],\n * \t [41.83, -87.62],\n * \t [32.76, -96.72]]\n * ];\n * ```\n */\n\n\nvar Polyline = Path.extend({\n\n\t// @section\n\t// @aka Polyline options\n\toptions: {\n\t\t// @option smoothFactor: Number = 1.0\n\t\t// How much to simplify the polyline on each zoom level. More means\n\t\t// better performance and smoother look, and less means more accurate representation.\n\t\tsmoothFactor: 1.0,\n\n\t\t// @option noClip: Boolean = false\n\t\t// Disable polyline clipping.\n\t\tnoClip: false\n\t},\n\n\tinitialize: function (latlngs, options) {\n\t\tsetOptions(this, options);\n\t\tthis._setLatLngs(latlngs);\n\t},\n\n\t// @method getLatLngs(): LatLng[]\n\t// Returns an array of the points in the path, or nested arrays of points in case of multi-polyline.\n\tgetLatLngs: function () {\n\t\treturn this._latlngs;\n\t},\n\n\t// @method setLatLngs(latlngs: LatLng[]): this\n\t// Replaces all the points in the polyline with the given array of geographical points.\n\tsetLatLngs: function (latlngs) {\n\t\tthis._setLatLngs(latlngs);\n\t\treturn this.redraw();\n\t},\n\n\t// @method isEmpty(): Boolean\n\t// Returns `true` if the Polyline has no LatLngs.\n\tisEmpty: function () {\n\t\treturn !this._latlngs.length;\n\t},\n\n\t// @method closestLayerPoint(p: Point): Point\n\t// Returns the point closest to `p` on the Polyline.\n\tclosestLayerPoint: function (p) {\n\t\tvar minDistance = Infinity,\n\t\t minPoint = null,\n\t\t closest = _sqClosestPointOnSegment,\n\t\t p1, p2;\n\n\t\tfor (var j = 0, jLen = this._parts.length; j < jLen; j++) {\n\t\t\tvar points = this._parts[j];\n\n\t\t\tfor (var i = 1, len = points.length; i < len; i++) {\n\t\t\t\tp1 = points[i - 1];\n\t\t\t\tp2 = points[i];\n\n\t\t\t\tvar sqDist = closest(p, p1, p2, true);\n\n\t\t\t\tif (sqDist < minDistance) {\n\t\t\t\t\tminDistance = sqDist;\n\t\t\t\t\tminPoint = closest(p, p1, p2);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (minPoint) {\n\t\t\tminPoint.distance = Math.sqrt(minDistance);\n\t\t}\n\t\treturn minPoint;\n\t},\n\n\t// @method getCenter(): LatLng\n\t// Returns the center ([centroid](http://en.wikipedia.org/wiki/Centroid)) of the polyline.\n\tgetCenter: function () {\n\t\t// throws error when not yet added to map as this center calculation requires projected coordinates\n\t\tif (!this._map) {\n\t\t\tthrow new Error('Must add layer to map before using getCenter()');\n\t\t}\n\n\t\tvar i, halfDist, segDist, dist, p1, p2, ratio,\n\t\t points = this._rings[0],\n\t\t len = points.length;\n\n\t\tif (!len) { return null; }\n\n\t\t// polyline centroid algorithm; only uses the first ring if there are multiple\n\n\t\tfor (i = 0, halfDist = 0; i < len - 1; i++) {\n\t\t\thalfDist += points[i].distanceTo(points[i + 1]) / 2;\n\t\t}\n\n\t\t// The line is so small in the current view that all points are on the same pixel.\n\t\tif (halfDist === 0) {\n\t\t\treturn this._map.layerPointToLatLng(points[0]);\n\t\t}\n\n\t\tfor (i = 0, dist = 0; i < len - 1; i++) {\n\t\t\tp1 = points[i];\n\t\t\tp2 = points[i + 1];\n\t\t\tsegDist = p1.distanceTo(p2);\n\t\t\tdist += segDist;\n\n\t\t\tif (dist > halfDist) {\n\t\t\t\tratio = (dist - halfDist) / segDist;\n\t\t\t\treturn this._map.layerPointToLatLng([\n\t\t\t\t\tp2.x - ratio * (p2.x - p1.x),\n\t\t\t\t\tp2.y - ratio * (p2.y - p1.y)\n\t\t\t\t]);\n\t\t\t}\n\t\t}\n\t},\n\n\t// @method getBounds(): LatLngBounds\n\t// Returns the `LatLngBounds` of the path.\n\tgetBounds: function () {\n\t\treturn this._bounds;\n\t},\n\n\t// @method addLatLng(latlng: LatLng, latlngs? LatLng[]): this\n\t// Adds a given point to the polyline. By default, adds to the first ring of\n\t// the polyline in case of a multi-polyline, but can be overridden by passing\n\t// a specific ring as a LatLng array (that you can earlier access with [`getLatLngs`](#polyline-getlatlngs)).\n\taddLatLng: function (latlng, latlngs) {\n\t\tlatlngs = latlngs || this._defaultShape();\n\t\tlatlng = toLatLng(latlng);\n\t\tlatlngs.push(latlng);\n\t\tthis._bounds.extend(latlng);\n\t\treturn this.redraw();\n\t},\n\n\t_setLatLngs: function (latlngs) {\n\t\tthis._bounds = new LatLngBounds();\n\t\tthis._latlngs = this._convertLatLngs(latlngs);\n\t},\n\n\t_defaultShape: function () {\n\t\treturn isFlat(this._latlngs) ? this._latlngs : this._latlngs[0];\n\t},\n\n\t// recursively convert latlngs input into actual LatLng instances; calculate bounds along the way\n\t_convertLatLngs: function (latlngs) {\n\t\tvar result = [],\n\t\t flat = isFlat(latlngs);\n\n\t\tfor (var i = 0, len = latlngs.length; i < len; i++) {\n\t\t\tif (flat) {\n\t\t\t\tresult[i] = toLatLng(latlngs[i]);\n\t\t\t\tthis._bounds.extend(result[i]);\n\t\t\t} else {\n\t\t\t\tresult[i] = this._convertLatLngs(latlngs[i]);\n\t\t\t}\n\t\t}\n\n\t\treturn result;\n\t},\n\n\t_project: function () {\n\t\tvar pxBounds = new Bounds();\n\t\tthis._rings = [];\n\t\tthis._projectLatlngs(this._latlngs, this._rings, pxBounds);\n\n\t\tvar w = this._clickTolerance(),\n\t\t p = new Point(w, w);\n\n\t\tif (this._bounds.isValid() && pxBounds.isValid()) {\n\t\t\tpxBounds.min._subtract(p);\n\t\t\tpxBounds.max._add(p);\n\t\t\tthis._pxBounds = pxBounds;\n\t\t}\n\t},\n\n\t// recursively turns latlngs into a set of rings with projected coordinates\n\t_projectLatlngs: function (latlngs, result, projectedBounds) {\n\t\tvar flat = latlngs[0] instanceof LatLng,\n\t\t len = latlngs.length,\n\t\t i, ring;\n\n\t\tif (flat) {\n\t\t\tring = [];\n\t\t\tfor (i = 0; i < len; i++) {\n\t\t\t\tring[i] = this._map.latLngToLayerPoint(latlngs[i]);\n\t\t\t\tprojectedBounds.extend(ring[i]);\n\t\t\t}\n\t\t\tresult.push(ring);\n\t\t} else {\n\t\t\tfor (i = 0; i < len; i++) {\n\t\t\t\tthis._projectLatlngs(latlngs[i], result, projectedBounds);\n\t\t\t}\n\t\t}\n\t},\n\n\t// clip polyline by renderer bounds so that we have less to render for performance\n\t_clipPoints: function () {\n\t\tvar bounds = this._renderer._bounds;\n\n\t\tthis._parts = [];\n\t\tif (!this._pxBounds || !this._pxBounds.intersects(bounds)) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (this.options.noClip) {\n\t\t\tthis._parts = this._rings;\n\t\t\treturn;\n\t\t}\n\n\t\tvar parts = this._parts,\n\t\t i, j, k, len, len2, segment, points;\n\n\t\tfor (i = 0, k = 0, len = this._rings.length; i < len; i++) {\n\t\t\tpoints = this._rings[i];\n\n\t\t\tfor (j = 0, len2 = points.length; j < len2 - 1; j++) {\n\t\t\t\tsegment = clipSegment(points[j], points[j + 1], bounds, j, true);\n\n\t\t\t\tif (!segment) { continue; }\n\n\t\t\t\tparts[k] = parts[k] || [];\n\t\t\t\tparts[k].push(segment[0]);\n\n\t\t\t\t// if segment goes out of screen, or it's the last one, it's the end of the line part\n\t\t\t\tif ((segment[1] !== points[j + 1]) || (j === len2 - 2)) {\n\t\t\t\t\tparts[k].push(segment[1]);\n\t\t\t\t\tk++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t},\n\n\t// simplify each clipped part of the polyline for performance\n\t_simplifyPoints: function () {\n\t\tvar parts = this._parts,\n\t\t tolerance = this.options.smoothFactor;\n\n\t\tfor (var i = 0, len = parts.length; i < len; i++) {\n\t\t\tparts[i] = simplify(parts[i], tolerance);\n\t\t}\n\t},\n\n\t_update: function () {\n\t\tif (!this._map) { return; }\n\n\t\tthis._clipPoints();\n\t\tthis._simplifyPoints();\n\t\tthis._updatePath();\n\t},\n\n\t_updatePath: function () {\n\t\tthis._renderer._updatePoly(this);\n\t},\n\n\t// Needed by the `Canvas` renderer for interactivity\n\t_containsPoint: function (p, closed) {\n\t\tvar i, j, k, len, len2, part,\n\t\t w = this._clickTolerance();\n\n\t\tif (!this._pxBounds || !this._pxBounds.contains(p)) { return false; }\n\n\t\t// hit detection for polylines\n\t\tfor (i = 0, len = this._parts.length; i < len; i++) {\n\t\t\tpart = this._parts[i];\n\n\t\t\tfor (j = 0, len2 = part.length, k = len2 - 1; j < len2; k = j++) {\n\t\t\t\tif (!closed && (j === 0)) { continue; }\n\n\t\t\t\tif (pointToSegmentDistance(p, part[k], part[j]) <= w) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}\n});\n\n// @factory L.polyline(latlngs: LatLng[], options?: Polyline options)\n// Instantiates a polyline object given an array of geographical points and\n// optionally an options object. You can create a `Polyline` object with\n// multiple separate lines (`MultiPolyline`) by passing an array of arrays\n// of geographic points.\nfunction polyline(latlngs, options) {\n\treturn new Polyline(latlngs, options);\n}\n\n// Retrocompat. Allow plugins to support Leaflet versions before and after 1.1.\nPolyline._flat = _flat;\n\n/*\n * @class Polygon\n * @aka L.Polygon\n * @inherits Polyline\n *\n * A class for drawing polygon overlays on a map. Extends `Polyline`.\n *\n * Note that points you pass when creating a polygon shouldn't have an additional last point equal to the first one — it's better to filter out such points.\n *\n *\n * @example\n *\n * ```js\n * // create a red polygon from an array of LatLng points\n * var latlngs = [[37, -109.05],[41, -109.03],[41, -102.05],[37, -102.04]];\n *\n * var polygon = L.polygon(latlngs, {color: 'red'}).addTo(map);\n *\n * // zoom the map to the polygon\n * map.fitBounds(polygon.getBounds());\n * ```\n *\n * You can also pass an array of arrays of latlngs, with the first array representing the outer shape and the other arrays representing holes in the outer shape:\n *\n * ```js\n * var latlngs = [\n * [[37, -109.05],[41, -109.03],[41, -102.05],[37, -102.04]], // outer ring\n * [[37.29, -108.58],[40.71, -108.58],[40.71, -102.50],[37.29, -102.50]] // hole\n * ];\n * ```\n *\n * Additionally, you can pass a multi-dimensional array to represent a MultiPolygon shape.\n *\n * ```js\n * var latlngs = [\n * [ // first polygon\n * [[37, -109.05],[41, -109.03],[41, -102.05],[37, -102.04]], // outer ring\n * [[37.29, -108.58],[40.71, -108.58],[40.71, -102.50],[37.29, -102.50]] // hole\n * ],\n * [ // second polygon\n * [[41, -111.03],[45, -111.04],[45, -104.05],[41, -104.05]]\n * ]\n * ];\n * ```\n */\n\nvar Polygon = Polyline.extend({\n\n\toptions: {\n\t\tfill: true\n\t},\n\n\tisEmpty: function () {\n\t\treturn !this._latlngs.length || !this._latlngs[0].length;\n\t},\n\n\tgetCenter: function () {\n\t\t// throws error when not yet added to map as this center calculation requires projected coordinates\n\t\tif (!this._map) {\n\t\t\tthrow new Error('Must add layer to map before using getCenter()');\n\t\t}\n\n\t\tvar i, j, p1, p2, f, area, x, y, center,\n\t\t points = this._rings[0],\n\t\t len = points.length;\n\n\t\tif (!len) { return null; }\n\n\t\t// polygon centroid algorithm; only uses the first ring if there are multiple\n\n\t\tarea = x = y = 0;\n\n\t\tfor (i = 0, j = len - 1; i < len; j = i++) {\n\t\t\tp1 = points[i];\n\t\t\tp2 = points[j];\n\n\t\t\tf = p1.y * p2.x - p2.y * p1.x;\n\t\t\tx += (p1.x + p2.x) * f;\n\t\t\ty += (p1.y + p2.y) * f;\n\t\t\tarea += f * 3;\n\t\t}\n\n\t\tif (area === 0) {\n\t\t\t// Polygon is so small that all points are on same pixel.\n\t\t\tcenter = points[0];\n\t\t} else {\n\t\t\tcenter = [x / area, y / area];\n\t\t}\n\t\treturn this._map.layerPointToLatLng(center);\n\t},\n\n\t_convertLatLngs: function (latlngs) {\n\t\tvar result = Polyline.prototype._convertLatLngs.call(this, latlngs),\n\t\t len = result.length;\n\n\t\t// remove last point if it equals first one\n\t\tif (len >= 2 && result[0] instanceof LatLng && result[0].equals(result[len - 1])) {\n\t\t\tresult.pop();\n\t\t}\n\t\treturn result;\n\t},\n\n\t_setLatLngs: function (latlngs) {\n\t\tPolyline.prototype._setLatLngs.call(this, latlngs);\n\t\tif (isFlat(this._latlngs)) {\n\t\t\tthis._latlngs = [this._latlngs];\n\t\t}\n\t},\n\n\t_defaultShape: function () {\n\t\treturn isFlat(this._latlngs[0]) ? this._latlngs[0] : this._latlngs[0][0];\n\t},\n\n\t_clipPoints: function () {\n\t\t// polygons need a different clipping algorithm so we redefine that\n\n\t\tvar bounds = this._renderer._bounds,\n\t\t w = this.options.weight,\n\t\t p = new Point(w, w);\n\n\t\t// increase clip padding by stroke width to avoid stroke on clip edges\n\t\tbounds = new Bounds(bounds.min.subtract(p), bounds.max.add(p));\n\n\t\tthis._parts = [];\n\t\tif (!this._pxBounds || !this._pxBounds.intersects(bounds)) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (this.options.noClip) {\n\t\t\tthis._parts = this._rings;\n\t\t\treturn;\n\t\t}\n\n\t\tfor (var i = 0, len = this._rings.length, clipped; i < len; i++) {\n\t\t\tclipped = clipPolygon(this._rings[i], bounds, true);\n\t\t\tif (clipped.length) {\n\t\t\t\tthis._parts.push(clipped);\n\t\t\t}\n\t\t}\n\t},\n\n\t_updatePath: function () {\n\t\tthis._renderer._updatePoly(this, true);\n\t},\n\n\t// Needed by the `Canvas` renderer for interactivity\n\t_containsPoint: function (p) {\n\t\tvar inside = false,\n\t\t part, p1, p2, i, j, k, len, len2;\n\n\t\tif (!this._pxBounds || !this._pxBounds.contains(p)) { return false; }\n\n\t\t// ray casting algorithm for detecting if point is in polygon\n\t\tfor (i = 0, len = this._parts.length; i < len; i++) {\n\t\t\tpart = this._parts[i];\n\n\t\t\tfor (j = 0, len2 = part.length, k = len2 - 1; j < len2; k = j++) {\n\t\t\t\tp1 = part[j];\n\t\t\t\tp2 = part[k];\n\n\t\t\t\tif (((p1.y > p.y) !== (p2.y > p.y)) && (p.x < (p2.x - p1.x) * (p.y - p1.y) / (p2.y - p1.y) + p1.x)) {\n\t\t\t\t\tinside = !inside;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// also check if it's on polygon stroke\n\t\treturn inside || Polyline.prototype._containsPoint.call(this, p, true);\n\t}\n\n});\n\n\n// @factory L.polygon(latlngs: LatLng[], options?: Polyline options)\nfunction polygon(latlngs, options) {\n\treturn new Polygon(latlngs, options);\n}\n\n/*\r\n * @class GeoJSON\r\n * @aka L.GeoJSON\r\n * @inherits FeatureGroup\r\n *\r\n * Represents a GeoJSON object or an array of GeoJSON objects. Allows you to parse\r\n * GeoJSON data and display it on the map. Extends `FeatureGroup`.\r\n *\r\n * @example\r\n *\r\n * ```js\r\n * L.geoJSON(data, {\r\n * \tstyle: function (feature) {\r\n * \t\treturn {color: feature.properties.color};\r\n * \t}\r\n * }).bindPopup(function (layer) {\r\n * \treturn layer.feature.properties.description;\r\n * }).addTo(map);\r\n * ```\r\n */\r\n\r\nvar GeoJSON = FeatureGroup.extend({\r\n\r\n\t/* @section\r\n\t * @aka GeoJSON options\r\n\t *\r\n\t * @option pointToLayer: Function = *\r\n\t * A `Function` defining how GeoJSON points spawn Leaflet layers. It is internally\r\n\t * called when data is added, passing the GeoJSON point feature and its `LatLng`.\r\n\t * The default is to spawn a default `Marker`:\r\n\t * ```js\r\n\t * function(geoJsonPoint, latlng) {\r\n\t * \treturn L.marker(latlng);\r\n\t * }\r\n\t * ```\r\n\t *\r\n\t * @option style: Function = *\r\n\t * A `Function` defining the `Path options` for styling GeoJSON lines and polygons,\r\n\t * called internally when data is added.\r\n\t * The default value is to not override any defaults:\r\n\t * ```js\r\n\t * function (geoJsonFeature) {\r\n\t * \treturn {}\r\n\t * }\r\n\t * ```\r\n\t *\r\n\t * @option onEachFeature: Function = *\r\n\t * A `Function` that will be called once for each created `Feature`, after it has\r\n\t * been created and styled. Useful for attaching events and popups to features.\r\n\t * The default is to do nothing with the newly created layers:\r\n\t * ```js\r\n\t * function (feature, layer) {}\r\n\t * ```\r\n\t *\r\n\t * @option filter: Function = *\r\n\t * A `Function` that will be used to decide whether to include a feature or not.\r\n\t * The default is to include all features:\r\n\t * ```js\r\n\t * function (geoJsonFeature) {\r\n\t * \treturn true;\r\n\t * }\r\n\t * ```\r\n\t * Note: dynamically changing the `filter` option will have effect only on newly\r\n\t * added data. It will _not_ re-evaluate already included features.\r\n\t *\r\n\t * @option coordsToLatLng: Function = *\r\n\t * A `Function` that will be used for converting GeoJSON coordinates to `LatLng`s.\r\n\t * The default is the `coordsToLatLng` static method.\r\n\t */\r\n\r\n\tinitialize: function (geojson, options) {\r\n\t\tsetOptions(this, options);\r\n\r\n\t\tthis._layers = {};\r\n\r\n\t\tif (geojson) {\r\n\t\t\tthis.addData(geojson);\r\n\t\t}\r\n\t},\r\n\r\n\t// @method addData( <GeoJSON> data ): this\r\n\t// Adds a GeoJSON object to the layer.\r\n\taddData: function (geojson) {\r\n\t\tvar features = isArray(geojson) ? geojson : geojson.features,\r\n\t\t i, len, feature;\r\n\r\n\t\tif (features) {\r\n\t\t\tfor (i = 0, len = features.length; i < len; i++) {\r\n\t\t\t\t// only add this if geometry or geometries are set and not null\r\n\t\t\t\tfeature = features[i];\r\n\t\t\t\tif (feature.geometries || feature.geometry || feature.features || feature.coordinates) {\r\n\t\t\t\t\tthis.addData(feature);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn this;\r\n\t\t}\r\n\r\n\t\tvar options = this.options;\r\n\r\n\t\tif (options.filter && !options.filter(geojson)) { return this; }\r\n\r\n\t\tvar layer = geometryToLayer(geojson, options);\r\n\t\tif (!layer) {\r\n\t\t\treturn this;\r\n\t\t}\r\n\t\tlayer.feature = asFeature(geojson);\r\n\r\n\t\tlayer.defaultOptions = layer.options;\r\n\t\tthis.resetStyle(layer);\r\n\r\n\t\tif (options.onEachFeature) {\r\n\t\t\toptions.onEachFeature(geojson, layer);\r\n\t\t}\r\n\r\n\t\treturn this.addLayer(layer);\r\n\t},\r\n\r\n\t// @method resetStyle( <Path> layer ): this\r\n\t// Resets the given vector layer's style to the original GeoJSON style, useful for resetting style after hover events.\r\n\tresetStyle: function (layer) {\r\n\t\t// reset any custom styles\r\n\t\tlayer.options = extend({}, layer.defaultOptions);\r\n\t\tthis._setLayerStyle(layer, this.options.style);\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method setStyle( <Function> style ): this\r\n\t// Changes styles of GeoJSON vector layers with the given style function.\r\n\tsetStyle: function (style) {\r\n\t\treturn this.eachLayer(function (layer) {\r\n\t\t\tthis._setLayerStyle(layer, style);\r\n\t\t}, this);\r\n\t},\r\n\r\n\t_setLayerStyle: function (layer, style) {\r\n\t\tif (typeof style === 'function') {\r\n\t\t\tstyle = style(layer.feature);\r\n\t\t}\r\n\t\tif (layer.setStyle) {\r\n\t\t\tlayer.setStyle(style);\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// @section\r\n// There are several static functions which can be called without instantiating L.GeoJSON:\r\n\r\n// @function geometryToLayer(featureData: Object, options?: GeoJSON options): Layer\r\n// Creates a `Layer` from a given GeoJSON feature. Can use a custom\r\n// [`pointToLayer`](#geojson-pointtolayer) and/or [`coordsToLatLng`](#geojson-coordstolatlng)\r\n// functions if provided as options.\r\nfunction geometryToLayer(geojson, options) {\r\n\r\n\tvar geometry = geojson.type === 'Feature' ? geojson.geometry : geojson,\r\n\t coords = geometry ? geometry.coordinates : null,\r\n\t layers = [],\r\n\t pointToLayer = options && options.pointToLayer,\r\n\t _coordsToLatLng = options && options.coordsToLatLng || coordsToLatLng,\r\n\t latlng, latlngs, i, len;\r\n\r\n\tif (!coords && !geometry) {\r\n\t\treturn null;\r\n\t}\r\n\r\n\tswitch (geometry.type) {\r\n\tcase 'Point':\r\n\t\tlatlng = _coordsToLatLng(coords);\r\n\t\treturn pointToLayer ? pointToLayer(geojson, latlng) : new Marker(latlng);\r\n\r\n\tcase 'MultiPoint':\r\n\t\tfor (i = 0, len = coords.length; i < len; i++) {\r\n\t\t\tlatlng = _coordsToLatLng(coords[i]);\r\n\t\t\tlayers.push(pointToLayer ? pointToLayer(geojson, latlng) : new Marker(latlng));\r\n\t\t}\r\n\t\treturn new FeatureGroup(layers);\r\n\r\n\tcase 'LineString':\r\n\tcase 'MultiLineString':\r\n\t\tlatlngs = coordsToLatLngs(coords, geometry.type === 'LineString' ? 0 : 1, _coordsToLatLng);\r\n\t\treturn new Polyline(latlngs, options);\r\n\r\n\tcase 'Polygon':\r\n\tcase 'MultiPolygon':\r\n\t\tlatlngs = coordsToLatLngs(coords, geometry.type === 'Polygon' ? 1 : 2, _coordsToLatLng);\r\n\t\treturn new Polygon(latlngs, options);\r\n\r\n\tcase 'GeometryCollection':\r\n\t\tfor (i = 0, len = geometry.geometries.length; i < len; i++) {\r\n\t\t\tvar layer = geometryToLayer({\r\n\t\t\t\tgeometry: geometry.geometries[i],\r\n\t\t\t\ttype: 'Feature',\r\n\t\t\t\tproperties: geojson.properties\r\n\t\t\t}, options);\r\n\r\n\t\t\tif (layer) {\r\n\t\t\t\tlayers.push(layer);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn new FeatureGroup(layers);\r\n\r\n\tdefault:\r\n\t\tthrow new Error('Invalid GeoJSON object.');\r\n\t}\r\n}\r\n\r\n// @function coordsToLatLng(coords: Array): LatLng\r\n// Creates a `LatLng` object from an array of 2 numbers (longitude, latitude)\r\n// or 3 numbers (longitude, latitude, altitude) used in GeoJSON for points.\r\nfunction coordsToLatLng(coords) {\r\n\treturn new LatLng(coords[1], coords[0], coords[2]);\r\n}\r\n\r\n// @function coordsToLatLngs(coords: Array, levelsDeep?: Number, coordsToLatLng?: Function): Array\r\n// Creates a multidimensional array of `LatLng`s from a GeoJSON coordinates array.\r\n// `levelsDeep` specifies the nesting level (0 is for an array of points, 1 for an array of arrays of points, etc., 0 by default).\r\n// Can use a custom [`coordsToLatLng`](#geojson-coordstolatlng) function.\r\nfunction coordsToLatLngs(coords, levelsDeep, _coordsToLatLng) {\r\n\tvar latlngs = [];\r\n\r\n\tfor (var i = 0, len = coords.length, latlng; i < len; i++) {\r\n\t\tlatlng = levelsDeep ?\r\n\t\t\tcoordsToLatLngs(coords[i], levelsDeep - 1, _coordsToLatLng) :\r\n\t\t\t(_coordsToLatLng || coordsToLatLng)(coords[i]);\r\n\r\n\t\tlatlngs.push(latlng);\r\n\t}\r\n\r\n\treturn latlngs;\r\n}\r\n\r\n// @function latLngToCoords(latlng: LatLng, precision?: Number): Array\r\n// Reverse of [`coordsToLatLng`](#geojson-coordstolatlng)\r\nfunction latLngToCoords(latlng, precision) {\r\n\tprecision = typeof precision === 'number' ? precision : 6;\r\n\treturn latlng.alt !== undefined ?\r\n\t\t[formatNum(latlng.lng, precision), formatNum(latlng.lat, precision), formatNum(latlng.alt, precision)] :\r\n\t\t[formatNum(latlng.lng, precision), formatNum(latlng.lat, precision)];\r\n}\r\n\r\n// @function latLngsToCoords(latlngs: Array, levelsDeep?: Number, closed?: Boolean): Array\r\n// Reverse of [`coordsToLatLngs`](#geojson-coordstolatlngs)\r\n// `closed` determines whether the first point should be appended to the end of the array to close the feature, only used when `levelsDeep` is 0. False by default.\r\nfunction latLngsToCoords(latlngs, levelsDeep, closed, precision) {\r\n\tvar coords = [];\r\n\r\n\tfor (var i = 0, len = latlngs.length; i < len; i++) {\r\n\t\tcoords.push(levelsDeep ?\r\n\t\t\tlatLngsToCoords(latlngs[i], levelsDeep - 1, closed, precision) :\r\n\t\t\tlatLngToCoords(latlngs[i], precision));\r\n\t}\r\n\r\n\tif (!levelsDeep && closed) {\r\n\t\tcoords.push(coords[0]);\r\n\t}\r\n\r\n\treturn coords;\r\n}\r\n\r\nfunction getFeature(layer, newGeometry) {\r\n\treturn layer.feature ?\r\n\t\textend({}, layer.feature, {geometry: newGeometry}) :\r\n\t\tasFeature(newGeometry);\r\n}\r\n\r\n// @function asFeature(geojson: Object): Object\r\n// Normalize GeoJSON geometries/features into GeoJSON features.\r\nfunction asFeature(geojson) {\r\n\tif (geojson.type === 'Feature' || geojson.type === 'FeatureCollection') {\r\n\t\treturn geojson;\r\n\t}\r\n\r\n\treturn {\r\n\t\ttype: 'Feature',\r\n\t\tproperties: {},\r\n\t\tgeometry: geojson\r\n\t};\r\n}\r\n\r\nvar PointToGeoJSON = {\r\n\ttoGeoJSON: function (precision) {\r\n\t\treturn getFeature(this, {\r\n\t\t\ttype: 'Point',\r\n\t\t\tcoordinates: latLngToCoords(this.getLatLng(), precision)\r\n\t\t});\r\n\t}\r\n};\r\n\r\n// @namespace Marker\r\n// @method toGeoJSON(): Object\r\n// Returns a [`GeoJSON`](http://en.wikipedia.org/wiki/GeoJSON) representation of the marker (as a GeoJSON `Point` Feature).\r\nMarker.include(PointToGeoJSON);\r\n\r\n// @namespace CircleMarker\r\n// @method toGeoJSON(): Object\r\n// Returns a [`GeoJSON`](http://en.wikipedia.org/wiki/GeoJSON) representation of the circle marker (as a GeoJSON `Point` Feature).\r\nCircle.include(PointToGeoJSON);\r\nCircleMarker.include(PointToGeoJSON);\r\n\r\n\r\n// @namespace Polyline\r\n// @method toGeoJSON(): Object\r\n// Returns a [`GeoJSON`](http://en.wikipedia.org/wiki/GeoJSON) representation of the polyline (as a GeoJSON `LineString` or `MultiLineString` Feature).\r\nPolyline.include({\r\n\ttoGeoJSON: function (precision) {\r\n\t\tvar multi = !isFlat(this._latlngs);\r\n\r\n\t\tvar coords = latLngsToCoords(this._latlngs, multi ? 1 : 0, false, precision);\r\n\r\n\t\treturn getFeature(this, {\r\n\t\t\ttype: (multi ? 'Multi' : '') + 'LineString',\r\n\t\t\tcoordinates: coords\r\n\t\t});\r\n\t}\r\n});\r\n\r\n// @namespace Polygon\r\n// @method toGeoJSON(): Object\r\n// Returns a [`GeoJSON`](http://en.wikipedia.org/wiki/GeoJSON) representation of the polygon (as a GeoJSON `Polygon` or `MultiPolygon` Feature).\r\nPolygon.include({\r\n\ttoGeoJSON: function (precision) {\r\n\t\tvar holes = !isFlat(this._latlngs),\r\n\t\t multi = holes && !isFlat(this._latlngs[0]);\r\n\r\n\t\tvar coords = latLngsToCoords(this._latlngs, multi ? 2 : holes ? 1 : 0, true, precision);\r\n\r\n\t\tif (!holes) {\r\n\t\t\tcoords = [coords];\r\n\t\t}\r\n\r\n\t\treturn getFeature(this, {\r\n\t\t\ttype: (multi ? 'Multi' : '') + 'Polygon',\r\n\t\t\tcoordinates: coords\r\n\t\t});\r\n\t}\r\n});\r\n\r\n\r\n// @namespace LayerGroup\r\nLayerGroup.include({\r\n\ttoMultiPoint: function (precision) {\r\n\t\tvar coords = [];\r\n\r\n\t\tthis.eachLayer(function (layer) {\r\n\t\t\tcoords.push(layer.toGeoJSON(precision).geometry.coordinates);\r\n\t\t});\r\n\r\n\t\treturn getFeature(this, {\r\n\t\t\ttype: 'MultiPoint',\r\n\t\t\tcoordinates: coords\r\n\t\t});\r\n\t},\r\n\r\n\t// @method toGeoJSON(): Object\r\n\t// Returns a [`GeoJSON`](http://en.wikipedia.org/wiki/GeoJSON) representation of the layer group (as a GeoJSON `FeatureCollection`, `GeometryCollection`, or `MultiPoint`).\r\n\ttoGeoJSON: function (precision) {\r\n\r\n\t\tvar type = this.feature && this.feature.geometry && this.feature.geometry.type;\r\n\r\n\t\tif (type === 'MultiPoint') {\r\n\t\t\treturn this.toMultiPoint(precision);\r\n\t\t}\r\n\r\n\t\tvar isGeometryCollection = type === 'GeometryCollection',\r\n\t\t jsons = [];\r\n\r\n\t\tthis.eachLayer(function (layer) {\r\n\t\t\tif (layer.toGeoJSON) {\r\n\t\t\t\tvar json = layer.toGeoJSON(precision);\r\n\t\t\t\tif (isGeometryCollection) {\r\n\t\t\t\t\tjsons.push(json.geometry);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tvar feature = asFeature(json);\r\n\t\t\t\t\t// Squash nested feature collections\r\n\t\t\t\t\tif (feature.type === 'FeatureCollection') {\r\n\t\t\t\t\t\tjsons.push.apply(jsons, feature.features);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tjsons.push(feature);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tif (isGeometryCollection) {\r\n\t\t\treturn getFeature(this, {\r\n\t\t\t\tgeometries: jsons,\r\n\t\t\t\ttype: 'GeometryCollection'\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\treturn {\r\n\t\t\ttype: 'FeatureCollection',\r\n\t\t\tfeatures: jsons\r\n\t\t};\r\n\t}\r\n});\r\n\r\n// @namespace GeoJSON\r\n// @factory L.geoJSON(geojson?: Object, options?: GeoJSON options)\r\n// Creates a GeoJSON layer. Optionally accepts an object in\r\n// [GeoJSON format](https://tools.ietf.org/html/rfc7946) to display on the map\r\n// (you can alternatively add it later with `addData` method) and an `options` object.\r\nfunction geoJSON(geojson, options) {\r\n\treturn new GeoJSON(geojson, options);\r\n}\r\n\r\n// Backward compatibility.\r\nvar geoJson = geoJSON;\n\n/*\r\n * @class ImageOverlay\r\n * @aka L.ImageOverlay\r\n * @inherits Interactive layer\r\n *\r\n * Used to load and display a single image over specific bounds of the map. Extends `Layer`.\r\n *\r\n * @example\r\n *\r\n * ```js\r\n * var imageUrl = 'http://www.lib.utexas.edu/maps/historical/newark_nj_1922.jpg',\r\n * \timageBounds = [[40.712216, -74.22655], [40.773941, -74.12544]];\r\n * L.imageOverlay(imageUrl, imageBounds).addTo(map);\r\n * ```\r\n */\r\n\r\nvar ImageOverlay = Layer.extend({\r\n\r\n\t// @section\r\n\t// @aka ImageOverlay options\r\n\toptions: {\r\n\t\t// @option opacity: Number = 1.0\r\n\t\t// The opacity of the image overlay.\r\n\t\topacity: 1,\r\n\r\n\t\t// @option alt: String = ''\r\n\t\t// Text for the `alt` attribute of the image (useful for accessibility).\r\n\t\talt: '',\r\n\r\n\t\t// @option interactive: Boolean = false\r\n\t\t// If `true`, the image overlay will emit [mouse events](#interactive-layer) when clicked or hovered.\r\n\t\tinteractive: false,\r\n\r\n\t\t// @option crossOrigin: Boolean|String = false\r\n\t\t// Whether the crossOrigin attribute will be added to the image.\r\n\t\t// If a String is provided, the image will have its crossOrigin attribute set to the String provided. This is needed if you want to access image pixel data.\r\n\t\t// Refer to [CORS Settings](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_settings_attributes) for valid String values.\r\n\t\tcrossOrigin: false,\r\n\r\n\t\t// @option errorOverlayUrl: String = ''\r\n\t\t// URL to the overlay image to show in place of the overlay that failed to load.\r\n\t\terrorOverlayUrl: '',\r\n\r\n\t\t// @option zIndex: Number = 1\r\n\t\t// The explicit [zIndex](https://developer.mozilla.org/docs/Web/CSS/CSS_Positioning/Understanding_z_index) of the tile layer.\r\n\t\tzIndex: 1,\r\n\r\n\t\t// @option className: String = ''\r\n\t\t// A custom class name to assign to the image. Empty by default.\r\n\t\tclassName: '',\r\n\t},\r\n\r\n\tinitialize: function (url, bounds, options) { // (String, LatLngBounds, Object)\r\n\t\tthis._url = url;\r\n\t\tthis._bounds = toLatLngBounds(bounds);\r\n\r\n\t\tsetOptions(this, options);\r\n\t},\r\n\r\n\tonAdd: function () {\r\n\t\tif (!this._image) {\r\n\t\t\tthis._initImage();\r\n\r\n\t\t\tif (this.options.opacity < 1) {\r\n\t\t\t\tthis._updateOpacity();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (this.options.interactive) {\r\n\t\t\taddClass(this._image, 'leaflet-interactive');\r\n\t\t\tthis.addInteractiveTarget(this._image);\r\n\t\t}\r\n\r\n\t\tthis.getPane().appendChild(this._image);\r\n\t\tthis._reset();\r\n\t},\r\n\r\n\tonRemove: function () {\r\n\t\tremove(this._image);\r\n\t\tif (this.options.interactive) {\r\n\t\t\tthis.removeInteractiveTarget(this._image);\r\n\t\t}\r\n\t},\r\n\r\n\t// @method setOpacity(opacity: Number): this\r\n\t// Sets the opacity of the overlay.\r\n\tsetOpacity: function (opacity) {\r\n\t\tthis.options.opacity = opacity;\r\n\r\n\t\tif (this._image) {\r\n\t\t\tthis._updateOpacity();\r\n\t\t}\r\n\t\treturn this;\r\n\t},\r\n\r\n\tsetStyle: function (styleOpts) {\r\n\t\tif (styleOpts.opacity) {\r\n\t\t\tthis.setOpacity(styleOpts.opacity);\r\n\t\t}\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method bringToFront(): this\r\n\t// Brings the layer to the top of all overlays.\r\n\tbringToFront: function () {\r\n\t\tif (this._map) {\r\n\t\t\ttoFront(this._image);\r\n\t\t}\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method bringToBack(): this\r\n\t// Brings the layer to the bottom of all overlays.\r\n\tbringToBack: function () {\r\n\t\tif (this._map) {\r\n\t\t\ttoBack(this._image);\r\n\t\t}\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method setUrl(url: String): this\r\n\t// Changes the URL of the image.\r\n\tsetUrl: function (url) {\r\n\t\tthis._url = url;\r\n\r\n\t\tif (this._image) {\r\n\t\t\tthis._image.src = url;\r\n\t\t}\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method setBounds(bounds: LatLngBounds): this\r\n\t// Update the bounds that this ImageOverlay covers\r\n\tsetBounds: function (bounds) {\r\n\t\tthis._bounds = toLatLngBounds(bounds);\r\n\r\n\t\tif (this._map) {\r\n\t\t\tthis._reset();\r\n\t\t}\r\n\t\treturn this;\r\n\t},\r\n\r\n\tgetEvents: function () {\r\n\t\tvar events = {\r\n\t\t\tzoom: this._reset,\r\n\t\t\tviewreset: this._reset\r\n\t\t};\r\n\r\n\t\tif (this._zoomAnimated) {\r\n\t\t\tevents.zoomanim = this._animateZoom;\r\n\t\t}\r\n\r\n\t\treturn events;\r\n\t},\r\n\r\n\t// @method: setZIndex(value: Number) : this\r\n\t// Changes the [zIndex](#imageoverlay-zindex) of the image overlay.\r\n\tsetZIndex: function (value) {\r\n\t\tthis.options.zIndex = value;\r\n\t\tthis._updateZIndex();\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method getBounds(): LatLngBounds\r\n\t// Get the bounds that this ImageOverlay covers\r\n\tgetBounds: function () {\r\n\t\treturn this._bounds;\r\n\t},\r\n\r\n\t// @method getElement(): HTMLElement\r\n\t// Returns the instance of [`HTMLImageElement`](https://developer.mozilla.org/docs/Web/API/HTMLImageElement)\r\n\t// used by this overlay.\r\n\tgetElement: function () {\r\n\t\treturn this._image;\r\n\t},\r\n\r\n\t_initImage: function () {\r\n\t\tvar wasElementSupplied = this._url.tagName === 'IMG';\r\n\t\tvar img = this._image = wasElementSupplied ? this._url : create$1('img');\r\n\r\n\t\taddClass(img, 'leaflet-image-layer');\r\n\t\tif (this._zoomAnimated) { addClass(img, 'leaflet-zoom-animated'); }\r\n\t\tif (this.options.className) { addClass(img, this.options.className); }\r\n\r\n\t\timg.onselectstart = falseFn;\r\n\t\timg.onmousemove = falseFn;\r\n\r\n\t\t// @event load: Event\r\n\t\t// Fired when the ImageOverlay layer has loaded its image\r\n\t\timg.onload = bind(this.fire, this, 'load');\r\n\t\timg.onerror = bind(this._overlayOnError, this, 'error');\r\n\r\n\t\tif (this.options.crossOrigin || this.options.crossOrigin === '') {\r\n\t\t\timg.crossOrigin = this.options.crossOrigin === true ? '' : this.options.crossOrigin;\r\n\t\t}\r\n\r\n\t\tif (this.options.zIndex) {\r\n\t\t\tthis._updateZIndex();\r\n\t\t}\r\n\r\n\t\tif (wasElementSupplied) {\r\n\t\t\tthis._url = img.src;\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\timg.src = this._url;\r\n\t\timg.alt = this.options.alt;\r\n\t},\r\n\r\n\t_animateZoom: function (e) {\r\n\t\tvar scale = this._map.getZoomScale(e.zoom),\r\n\t\t offset = this._map._latLngBoundsToNewLayerBounds(this._bounds, e.zoom, e.center).min;\r\n\r\n\t\tsetTransform(this._image, offset, scale);\r\n\t},\r\n\r\n\t_reset: function () {\r\n\t\tvar image = this._image,\r\n\t\t bounds = new Bounds(\r\n\t\t this._map.latLngToLayerPoint(this._bounds.getNorthWest()),\r\n\t\t this._map.latLngToLayerPoint(this._bounds.getSouthEast())),\r\n\t\t size = bounds.getSize();\r\n\r\n\t\tsetPosition(image, bounds.min);\r\n\r\n\t\timage.style.width = size.x + 'px';\r\n\t\timage.style.height = size.y + 'px';\r\n\t},\r\n\r\n\t_updateOpacity: function () {\r\n\t\tsetOpacity(this._image, this.options.opacity);\r\n\t},\r\n\r\n\t_updateZIndex: function () {\r\n\t\tif (this._image && this.options.zIndex !== undefined && this.options.zIndex !== null) {\r\n\t\t\tthis._image.style.zIndex = this.options.zIndex;\r\n\t\t}\r\n\t},\r\n\r\n\t_overlayOnError: function () {\r\n\t\t// @event error: Event\r\n\t\t// Fired when the ImageOverlay layer has loaded its image\r\n\t\tthis.fire('error');\r\n\r\n\t\tvar errorUrl = this.options.errorOverlayUrl;\r\n\t\tif (errorUrl && this._url !== errorUrl) {\r\n\t\t\tthis._url = errorUrl;\r\n\t\t\tthis._image.src = errorUrl;\r\n\t\t}\r\n\t}\r\n});\r\n\r\n// @factory L.imageOverlay(imageUrl: String, bounds: LatLngBounds, options?: ImageOverlay options)\r\n// Instantiates an image overlay object given the URL of the image and the\r\n// geographical bounds it is tied to.\r\nvar imageOverlay = function (url, bounds, options) {\r\n\treturn new ImageOverlay(url, bounds, options);\r\n};\n\n/*\r\n * @class VideoOverlay\r\n * @aka L.VideoOverlay\r\n * @inherits ImageOverlay\r\n *\r\n * Used to load and display a video player over specific bounds of the map. Extends `ImageOverlay`.\r\n *\r\n * A video overlay uses the [`<video>`](https://developer.mozilla.org/docs/Web/HTML/Element/video)\r\n * HTML5 element.\r\n *\r\n * @example\r\n *\r\n * ```js\r\n * var videoUrl = 'https://www.mapbox.com/bites/00188/patricia_nasa.webm',\r\n * \tvideoBounds = [[ 32, -130], [ 13, -100]];\r\n * L.videoOverlay(videoUrl, videoBounds ).addTo(map);\r\n * ```\r\n */\r\n\r\nvar VideoOverlay = ImageOverlay.extend({\r\n\r\n\t// @section\r\n\t// @aka VideoOverlay options\r\n\toptions: {\r\n\t\t// @option autoplay: Boolean = true\r\n\t\t// Whether the video starts playing automatically when loaded.\r\n\t\tautoplay: true,\r\n\r\n\t\t// @option loop: Boolean = true\r\n\t\t// Whether the video will loop back to the beginning when played.\r\n\t\tloop: true\r\n\t},\r\n\r\n\t_initImage: function () {\r\n\t\tvar wasElementSupplied = this._url.tagName === 'VIDEO';\r\n\t\tvar vid = this._image = wasElementSupplied ? this._url : create$1('video');\r\n\r\n\t\taddClass(vid, 'leaflet-image-layer');\r\n\t\tif (this._zoomAnimated) { addClass(vid, 'leaflet-zoom-animated'); }\r\n\r\n\t\tvid.onselectstart = falseFn;\r\n\t\tvid.onmousemove = falseFn;\r\n\r\n\t\t// @event load: Event\r\n\t\t// Fired when the video has finished loading the first frame\r\n\t\tvid.onloadeddata = bind(this.fire, this, 'load');\r\n\r\n\t\tif (wasElementSupplied) {\r\n\t\t\tvar sourceElements = vid.getElementsByTagName('source');\r\n\t\t\tvar sources = [];\r\n\t\t\tfor (var j = 0; j < sourceElements.length; j++) {\r\n\t\t\t\tsources.push(sourceElements[j].src);\r\n\t\t\t}\r\n\r\n\t\t\tthis._url = (sourceElements.length > 0) ? sources : [vid.src];\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (!isArray(this._url)) { this._url = [this._url]; }\r\n\r\n\t\tvid.autoplay = !!this.options.autoplay;\r\n\t\tvid.loop = !!this.options.loop;\r\n\t\tfor (var i = 0; i < this._url.length; i++) {\r\n\t\t\tvar source = create$1('source');\r\n\t\t\tsource.src = this._url[i];\r\n\t\t\tvid.appendChild(source);\r\n\t\t}\r\n\t}\r\n\r\n\t// @method getElement(): HTMLVideoElement\r\n\t// Returns the instance of [`HTMLVideoElement`](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement)\r\n\t// used by this overlay.\r\n});\r\n\r\n\r\n// @factory L.videoOverlay(video: String|Array|HTMLVideoElement, bounds: LatLngBounds, options?: VideoOverlay options)\r\n// Instantiates an image overlay object given the URL of the video (or array of URLs, or even a video element) and the\r\n// geographical bounds it is tied to.\r\n\r\nfunction videoOverlay(video, bounds, options) {\r\n\treturn new VideoOverlay(video, bounds, options);\r\n}\n\n/*\r\n * @class DivOverlay\r\n * @inherits Layer\r\n * @aka L.DivOverlay\r\n * Base model for L.Popup and L.Tooltip. Inherit from it for custom popup like plugins.\r\n */\r\n\r\n// @namespace DivOverlay\r\nvar DivOverlay = Layer.extend({\r\n\r\n\t// @section\r\n\t// @aka DivOverlay options\r\n\toptions: {\r\n\t\t// @option offset: Point = Point(0, 7)\r\n\t\t// The offset of the popup position. Useful to control the anchor\r\n\t\t// of the popup when opening it on some overlays.\r\n\t\toffset: [0, 7],\r\n\r\n\t\t// @option className: String = ''\r\n\t\t// A custom CSS class name to assign to the popup.\r\n\t\tclassName: '',\r\n\r\n\t\t// @option pane: String = 'popupPane'\r\n\t\t// `Map pane` where the popup will be added.\r\n\t\tpane: 'popupPane'\r\n\t},\r\n\r\n\tinitialize: function (options, source) {\r\n\t\tsetOptions(this, options);\r\n\r\n\t\tthis._source = source;\r\n\t},\r\n\r\n\tonAdd: function (map) {\r\n\t\tthis._zoomAnimated = map._zoomAnimated;\r\n\r\n\t\tif (!this._container) {\r\n\t\t\tthis._initLayout();\r\n\t\t}\r\n\r\n\t\tif (map._fadeAnimated) {\r\n\t\t\tsetOpacity(this._container, 0);\r\n\t\t}\r\n\r\n\t\tclearTimeout(this._removeTimeout);\r\n\t\tthis.getPane().appendChild(this._container);\r\n\t\tthis.update();\r\n\r\n\t\tif (map._fadeAnimated) {\r\n\t\t\tsetOpacity(this._container, 1);\r\n\t\t}\r\n\r\n\t\tthis.bringToFront();\r\n\t},\r\n\r\n\tonRemove: function (map) {\r\n\t\tif (map._fadeAnimated) {\r\n\t\t\tsetOpacity(this._container, 0);\r\n\t\t\tthis._removeTimeout = setTimeout(bind(remove, undefined, this._container), 200);\r\n\t\t} else {\r\n\t\t\tremove(this._container);\r\n\t\t}\r\n\t},\r\n\r\n\t// @namespace Popup\r\n\t// @method getLatLng: LatLng\r\n\t// Returns the geographical point of popup.\r\n\tgetLatLng: function () {\r\n\t\treturn this._latlng;\r\n\t},\r\n\r\n\t// @method setLatLng(latlng: LatLng): this\r\n\t// Sets the geographical point where the popup will open.\r\n\tsetLatLng: function (latlng) {\r\n\t\tthis._latlng = toLatLng(latlng);\r\n\t\tif (this._map) {\r\n\t\t\tthis._updatePosition();\r\n\t\t\tthis._adjustPan();\r\n\t\t}\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method getContent: String|HTMLElement\r\n\t// Returns the content of the popup.\r\n\tgetContent: function () {\r\n\t\treturn this._content;\r\n\t},\r\n\r\n\t// @method setContent(htmlContent: String|HTMLElement|Function): this\r\n\t// Sets the HTML content of the popup. If a function is passed the source layer will be passed to the function. The function should return a `String` or `HTMLElement` to be used in the popup.\r\n\tsetContent: function (content) {\r\n\t\tthis._content = content;\r\n\t\tthis.update();\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method getElement: String|HTMLElement\r\n\t// Alias for [getContent()](#popup-getcontent)\r\n\tgetElement: function () {\r\n\t\treturn this._container;\r\n\t},\r\n\r\n\t// @method update: null\r\n\t// Updates the popup content, layout and position. Useful for updating the popup after something inside changed, e.g. image loaded.\r\n\tupdate: function () {\r\n\t\tif (!this._map) { return; }\r\n\r\n\t\tthis._container.style.visibility = 'hidden';\r\n\r\n\t\tthis._updateContent();\r\n\t\tthis._updateLayout();\r\n\t\tthis._updatePosition();\r\n\r\n\t\tthis._container.style.visibility = '';\r\n\r\n\t\tthis._adjustPan();\r\n\t},\r\n\r\n\tgetEvents: function () {\r\n\t\tvar events = {\r\n\t\t\tzoom: this._updatePosition,\r\n\t\t\tviewreset: this._updatePosition\r\n\t\t};\r\n\r\n\t\tif (this._zoomAnimated) {\r\n\t\t\tevents.zoomanim = this._animateZoom;\r\n\t\t}\r\n\t\treturn events;\r\n\t},\r\n\r\n\t// @method isOpen: Boolean\r\n\t// Returns `true` when the popup is visible on the map.\r\n\tisOpen: function () {\r\n\t\treturn !!this._map && this._map.hasLayer(this);\r\n\t},\r\n\r\n\t// @method bringToFront: this\r\n\t// Brings this popup in front of other popups (in the same map pane).\r\n\tbringToFront: function () {\r\n\t\tif (this._map) {\r\n\t\t\ttoFront(this._container);\r\n\t\t}\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method bringToBack: this\r\n\t// Brings this popup to the back of other popups (in the same map pane).\r\n\tbringToBack: function () {\r\n\t\tif (this._map) {\r\n\t\t\ttoBack(this._container);\r\n\t\t}\r\n\t\treturn this;\r\n\t},\r\n\r\n\t_updateContent: function () {\r\n\t\tif (!this._content) { return; }\r\n\r\n\t\tvar node = this._contentNode;\r\n\t\tvar content = (typeof this._content === 'function') ? this._content(this._source || this) : this._content;\r\n\r\n\t\tif (typeof content === 'string') {\r\n\t\t\tnode.innerHTML = content;\r\n\t\t} else {\r\n\t\t\twhile (node.hasChildNodes()) {\r\n\t\t\t\tnode.removeChild(node.firstChild);\r\n\t\t\t}\r\n\t\t\tnode.appendChild(content);\r\n\t\t}\r\n\t\tthis.fire('contentupdate');\r\n\t},\r\n\r\n\t_updatePosition: function () {\r\n\t\tif (!this._map) { return; }\r\n\r\n\t\tvar pos = this._map.latLngToLayerPoint(this._latlng),\r\n\t\t offset = toPoint(this.options.offset),\r\n\t\t anchor = this._getAnchor();\r\n\r\n\t\tif (this._zoomAnimated) {\r\n\t\t\tsetPosition(this._container, pos.add(anchor));\r\n\t\t} else {\r\n\t\t\toffset = offset.add(pos).add(anchor);\r\n\t\t}\r\n\r\n\t\tvar bottom = this._containerBottom = -offset.y,\r\n\t\t left = this._containerLeft = -Math.round(this._containerWidth / 2) + offset.x;\r\n\r\n\t\t// bottom position the popup in case the height of the popup changes (images loading etc)\r\n\t\tthis._container.style.bottom = bottom + 'px';\r\n\t\tthis._container.style.left = left + 'px';\r\n\t},\r\n\r\n\t_getAnchor: function () {\r\n\t\treturn [0, 0];\r\n\t}\r\n\r\n});\n\n/*\r\n * @class Popup\r\n * @inherits DivOverlay\r\n * @aka L.Popup\r\n * Used to open popups in certain places of the map. Use [Map.openPopup](#map-openpopup) to\r\n * open popups while making sure that only one popup is open at one time\r\n * (recommended for usability), or use [Map.addLayer](#map-addlayer) to open as many as you want.\r\n *\r\n * @example\r\n *\r\n * If you want to just bind a popup to marker click and then open it, it's really easy:\r\n *\r\n * ```js\r\n * marker.bindPopup(popupContent).openPopup();\r\n * ```\r\n * Path overlays like polylines also have a `bindPopup` method.\r\n * Here's a more complicated way to open a popup on a map:\r\n *\r\n * ```js\r\n * var popup = L.popup()\r\n * \t.setLatLng(latlng)\r\n * \t.setContent('<p>Hello world!<br />This is a nice popup.</p>')\r\n * \t.openOn(map);\r\n * ```\r\n */\r\n\r\n\r\n// @namespace Popup\r\nvar Popup = DivOverlay.extend({\r\n\r\n\t// @section\r\n\t// @aka Popup options\r\n\toptions: {\r\n\t\t// @option maxWidth: Number = 300\r\n\t\t// Max width of the popup, in pixels.\r\n\t\tmaxWidth: 300,\r\n\r\n\t\t// @option minWidth: Number = 50\r\n\t\t// Min width of the popup, in pixels.\r\n\t\tminWidth: 50,\r\n\r\n\t\t// @option maxHeight: Number = null\r\n\t\t// If set, creates a scrollable container of the given height\r\n\t\t// inside a popup if its content exceeds it.\r\n\t\tmaxHeight: null,\r\n\r\n\t\t// @option autoPan: Boolean = true\r\n\t\t// Set it to `false` if you don't want the map to do panning animation\r\n\t\t// to fit the opened popup.\r\n\t\tautoPan: true,\r\n\r\n\t\t// @option autoPanPaddingTopLeft: Point = null\r\n\t\t// The margin between the popup and the top left corner of the map\r\n\t\t// view after autopanning was performed.\r\n\t\tautoPanPaddingTopLeft: null,\r\n\r\n\t\t// @option autoPanPaddingBottomRight: Point = null\r\n\t\t// The margin between the popup and the bottom right corner of the map\r\n\t\t// view after autopanning was performed.\r\n\t\tautoPanPaddingBottomRight: null,\r\n\r\n\t\t// @option autoPanPadding: Point = Point(5, 5)\r\n\t\t// Equivalent of setting both top left and bottom right autopan padding to the same value.\r\n\t\tautoPanPadding: [5, 5],\r\n\r\n\t\t// @option keepInView: Boolean = false\r\n\t\t// Set it to `true` if you want to prevent users from panning the popup\r\n\t\t// off of the screen while it is open.\r\n\t\tkeepInView: false,\r\n\r\n\t\t// @option closeButton: Boolean = true\r\n\t\t// Controls the presence of a close button in the popup.\r\n\t\tcloseButton: true,\r\n\r\n\t\t// @option autoClose: Boolean = true\r\n\t\t// Set it to `false` if you want to override the default behavior of\r\n\t\t// the popup closing when another popup is opened.\r\n\t\tautoClose: true,\r\n\r\n\t\t// @option closeOnEscapeKey: Boolean = true\r\n\t\t// Set it to `false` if you want to override the default behavior of\r\n\t\t// the ESC key for closing of the popup.\r\n\t\tcloseOnEscapeKey: true,\r\n\r\n\t\t// @option closeOnClick: Boolean = *\r\n\t\t// Set it if you want to override the default behavior of the popup closing when user clicks\r\n\t\t// on the map. Defaults to the map's [`closePopupOnClick`](#map-closepopuponclick) option.\r\n\r\n\t\t// @option className: String = ''\r\n\t\t// A custom CSS class name to assign to the popup.\r\n\t\tclassName: ''\r\n\t},\r\n\r\n\t// @namespace Popup\r\n\t// @method openOn(map: Map): this\r\n\t// Adds the popup to the map and closes the previous one. The same as `map.openPopup(popup)`.\r\n\topenOn: function (map) {\r\n\t\tmap.openPopup(this);\r\n\t\treturn this;\r\n\t},\r\n\r\n\tonAdd: function (map) {\r\n\t\tDivOverlay.prototype.onAdd.call(this, map);\r\n\r\n\t\t// @namespace Map\r\n\t\t// @section Popup events\r\n\t\t// @event popupopen: PopupEvent\r\n\t\t// Fired when a popup is opened in the map\r\n\t\tmap.fire('popupopen', {popup: this});\r\n\r\n\t\tif (this._source) {\r\n\t\t\t// @namespace Layer\r\n\t\t\t// @section Popup events\r\n\t\t\t// @event popupopen: PopupEvent\r\n\t\t\t// Fired when a popup bound to this layer is opened\r\n\t\t\tthis._source.fire('popupopen', {popup: this}, true);\r\n\t\t\t// For non-path layers, we toggle the popup when clicking\r\n\t\t\t// again the layer, so prevent the map to reopen it.\r\n\t\t\tif (!(this._source instanceof Path)) {\r\n\t\t\t\tthis._source.on('preclick', stopPropagation);\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\r\n\tonRemove: function (map) {\r\n\t\tDivOverlay.prototype.onRemove.call(this, map);\r\n\r\n\t\t// @namespace Map\r\n\t\t// @section Popup events\r\n\t\t// @event popupclose: PopupEvent\r\n\t\t// Fired when a popup in the map is closed\r\n\t\tmap.fire('popupclose', {popup: this});\r\n\r\n\t\tif (this._source) {\r\n\t\t\t// @namespace Layer\r\n\t\t\t// @section Popup events\r\n\t\t\t// @event popupclose: PopupEvent\r\n\t\t\t// Fired when a popup bound to this layer is closed\r\n\t\t\tthis._source.fire('popupclose', {popup: this}, true);\r\n\t\t\tif (!(this._source instanceof Path)) {\r\n\t\t\t\tthis._source.off('preclick', stopPropagation);\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\r\n\tgetEvents: function () {\r\n\t\tvar events = DivOverlay.prototype.getEvents.call(this);\r\n\r\n\t\tif (this.options.closeOnClick !== undefined ? this.options.closeOnClick : this._map.options.closePopupOnClick) {\r\n\t\t\tevents.preclick = this._close;\r\n\t\t}\r\n\r\n\t\tif (this.options.keepInView) {\r\n\t\t\tevents.moveend = this._adjustPan;\r\n\t\t}\r\n\r\n\t\treturn events;\r\n\t},\r\n\r\n\t_close: function () {\r\n\t\tif (this._map) {\r\n\t\t\tthis._map.closePopup(this);\r\n\t\t}\r\n\t},\r\n\r\n\t_initLayout: function () {\r\n\t\tvar prefix = 'leaflet-popup',\r\n\t\t container = this._container = create$1('div',\r\n\t\t\tprefix + ' ' + (this.options.className || '') +\r\n\t\t\t' leaflet-zoom-animated');\r\n\r\n\t\tvar wrapper = this._wrapper = create$1('div', prefix + '-content-wrapper', container);\r\n\t\tthis._contentNode = create$1('div', prefix + '-content', wrapper);\r\n\r\n\t\tdisableClickPropagation(wrapper);\r\n\t\tdisableScrollPropagation(this._contentNode);\r\n\t\ton(wrapper, 'contextmenu', stopPropagation);\r\n\r\n\t\tthis._tipContainer = create$1('div', prefix + '-tip-container', container);\r\n\t\tthis._tip = create$1('div', prefix + '-tip', this._tipContainer);\r\n\r\n\t\tif (this.options.closeButton) {\r\n\t\t\tvar closeButton = this._closeButton = create$1('a', prefix + '-close-button', container);\r\n\t\t\tcloseButton.href = '#close';\r\n\t\t\tcloseButton.innerHTML = '&#215;';\r\n\r\n\t\t\ton(closeButton, 'click', this._onCloseButtonClick, this);\r\n\t\t}\r\n\t},\r\n\r\n\t_updateLayout: function () {\r\n\t\tvar container = this._contentNode,\r\n\t\t style = container.style;\r\n\r\n\t\tstyle.width = '';\r\n\t\tstyle.whiteSpace = 'nowrap';\r\n\r\n\t\tvar width = container.offsetWidth;\r\n\t\twidth = Math.min(width, this.options.maxWidth);\r\n\t\twidth = Math.max(width, this.options.minWidth);\r\n\r\n\t\tstyle.width = (width + 1) + 'px';\r\n\t\tstyle.whiteSpace = '';\r\n\r\n\t\tstyle.height = '';\r\n\r\n\t\tvar height = container.offsetHeight,\r\n\t\t maxHeight = this.options.maxHeight,\r\n\t\t scrolledClass = 'leaflet-popup-scrolled';\r\n\r\n\t\tif (maxHeight && height > maxHeight) {\r\n\t\t\tstyle.height = maxHeight + 'px';\r\n\t\t\taddClass(container, scrolledClass);\r\n\t\t} else {\r\n\t\t\tremoveClass(container, scrolledClass);\r\n\t\t}\r\n\r\n\t\tthis._containerWidth = this._container.offsetWidth;\r\n\t},\r\n\r\n\t_animateZoom: function (e) {\r\n\t\tvar pos = this._map._latLngToNewLayerPoint(this._latlng, e.zoom, e.center),\r\n\t\t anchor = this._getAnchor();\r\n\t\tsetPosition(this._container, pos.add(anchor));\r\n\t},\r\n\r\n\t_adjustPan: function () {\r\n\t\tif (!this.options.autoPan || (this._map._panAnim && this._map._panAnim._inProgress)) { return; }\r\n\r\n\t\tvar map = this._map,\r\n\t\t marginBottom = parseInt(getStyle(this._container, 'marginBottom'), 10) || 0,\r\n\t\t containerHeight = this._container.offsetHeight + marginBottom,\r\n\t\t containerWidth = this._containerWidth,\r\n\t\t layerPos = new Point(this._containerLeft, -containerHeight - this._containerBottom);\r\n\r\n\t\tlayerPos._add(getPosition(this._container));\r\n\r\n\t\tvar containerPos = map.layerPointToContainerPoint(layerPos),\r\n\t\t padding = toPoint(this.options.autoPanPadding),\r\n\t\t paddingTL = toPoint(this.options.autoPanPaddingTopLeft || padding),\r\n\t\t paddingBR = toPoint(this.options.autoPanPaddingBottomRight || padding),\r\n\t\t size = map.getSize(),\r\n\t\t dx = 0,\r\n\t\t dy = 0;\r\n\r\n\t\tif (containerPos.x + containerWidth + paddingBR.x > size.x) { // right\r\n\t\t\tdx = containerPos.x + containerWidth - size.x + paddingBR.x;\r\n\t\t}\r\n\t\tif (containerPos.x - dx - paddingTL.x < 0) { // left\r\n\t\t\tdx = containerPos.x - paddingTL.x;\r\n\t\t}\r\n\t\tif (containerPos.y + containerHeight + paddingBR.y > size.y) { // bottom\r\n\t\t\tdy = containerPos.y + containerHeight - size.y + paddingBR.y;\r\n\t\t}\r\n\t\tif (containerPos.y - dy - paddingTL.y < 0) { // top\r\n\t\t\tdy = containerPos.y - paddingTL.y;\r\n\t\t}\r\n\r\n\t\t// @namespace Map\r\n\t\t// @section Popup events\r\n\t\t// @event autopanstart: Event\r\n\t\t// Fired when the map starts autopanning when opening a popup.\r\n\t\tif (dx || dy) {\r\n\t\t\tmap\r\n\t\t\t .fire('autopanstart')\r\n\t\t\t .panBy([dx, dy]);\r\n\t\t}\r\n\t},\r\n\r\n\t_onCloseButtonClick: function (e) {\r\n\t\tthis._close();\r\n\t\tstop(e);\r\n\t},\r\n\r\n\t_getAnchor: function () {\r\n\t\t// Where should we anchor the popup on the source layer?\r\n\t\treturn toPoint(this._source && this._source._getPopupAnchor ? this._source._getPopupAnchor() : [0, 0]);\r\n\t}\r\n\r\n});\r\n\r\n// @namespace Popup\r\n// @factory L.popup(options?: Popup options, source?: Layer)\r\n// Instantiates a `Popup` object given an optional `options` object that describes its appearance and location and an optional `source` object that is used to tag the popup with a reference to the Layer to which it refers.\r\nvar popup = function (options, source) {\r\n\treturn new Popup(options, source);\r\n};\r\n\r\n\r\n/* @namespace Map\r\n * @section Interaction Options\r\n * @option closePopupOnClick: Boolean = true\r\n * Set it to `false` if you don't want popups to close when user clicks the map.\r\n */\r\nMap.mergeOptions({\r\n\tclosePopupOnClick: true\r\n});\r\n\r\n\r\n// @namespace Map\r\n// @section Methods for Layers and Controls\r\nMap.include({\r\n\t// @method openPopup(popup: Popup): this\r\n\t// Opens the specified popup while closing the previously opened (to make sure only one is opened at one time for usability).\r\n\t// @alternative\r\n\t// @method openPopup(content: String|HTMLElement, latlng: LatLng, options?: Popup options): this\r\n\t// Creates a popup with the specified content and options and opens it in the given point on a map.\r\n\topenPopup: function (popup, latlng, options) {\r\n\t\tif (!(popup instanceof Popup)) {\r\n\t\t\tpopup = new Popup(options).setContent(popup);\r\n\t\t}\r\n\r\n\t\tif (latlng) {\r\n\t\t\tpopup.setLatLng(latlng);\r\n\t\t}\r\n\r\n\t\tif (this.hasLayer(popup)) {\r\n\t\t\treturn this;\r\n\t\t}\r\n\r\n\t\tif (this._popup && this._popup.options.autoClose) {\r\n\t\t\tthis.closePopup();\r\n\t\t}\r\n\r\n\t\tthis._popup = popup;\r\n\t\treturn this.addLayer(popup);\r\n\t},\r\n\r\n\t// @method closePopup(popup?: Popup): this\r\n\t// Closes the popup previously opened with [openPopup](#map-openpopup) (or the given one).\r\n\tclosePopup: function (popup) {\r\n\t\tif (!popup || popup === this._popup) {\r\n\t\t\tpopup = this._popup;\r\n\t\t\tthis._popup = null;\r\n\t\t}\r\n\t\tif (popup) {\r\n\t\t\tthis.removeLayer(popup);\r\n\t\t}\r\n\t\treturn this;\r\n\t}\r\n});\r\n\r\n/*\r\n * @namespace Layer\r\n * @section Popup methods example\r\n *\r\n * All layers share a set of methods convenient for binding popups to it.\r\n *\r\n * ```js\r\n * var layer = L.Polygon(latlngs).bindPopup('Hi There!').addTo(map);\r\n * layer.openPopup();\r\n * layer.closePopup();\r\n * ```\r\n *\r\n * Popups will also be automatically opened when the layer is clicked on and closed when the layer is removed from the map or another popup is opened.\r\n */\r\n\r\n// @section Popup methods\r\nLayer.include({\r\n\r\n\t// @method bindPopup(content: String|HTMLElement|Function|Popup, options?: Popup options): this\r\n\t// Binds a popup to the layer with the passed `content` and sets up the\r\n\t// necessary event listeners. If a `Function` is passed it will receive\r\n\t// the layer as the first argument and should return a `String` or `HTMLElement`.\r\n\tbindPopup: function (content, options) {\r\n\r\n\t\tif (content instanceof Popup) {\r\n\t\t\tsetOptions(content, options);\r\n\t\t\tthis._popup = content;\r\n\t\t\tcontent._source = this;\r\n\t\t} else {\r\n\t\t\tif (!this._popup || options) {\r\n\t\t\t\tthis._popup = new Popup(options, this);\r\n\t\t\t}\r\n\t\t\tthis._popup.setContent(content);\r\n\t\t}\r\n\r\n\t\tif (!this._popupHandlersAdded) {\r\n\t\t\tthis.on({\r\n\t\t\t\tclick: this._openPopup,\r\n\t\t\t\tkeypress: this._onKeyPress,\r\n\t\t\t\tremove: this.closePopup,\r\n\t\t\t\tmove: this._movePopup\r\n\t\t\t});\r\n\t\t\tthis._popupHandlersAdded = true;\r\n\t\t}\r\n\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method unbindPopup(): this\r\n\t// Removes the popup previously bound with `bindPopup`.\r\n\tunbindPopup: function () {\r\n\t\tif (this._popup) {\r\n\t\t\tthis.off({\r\n\t\t\t\tclick: this._openPopup,\r\n\t\t\t\tkeypress: this._onKeyPress,\r\n\t\t\t\tremove: this.closePopup,\r\n\t\t\t\tmove: this._movePopup\r\n\t\t\t});\r\n\t\t\tthis._popupHandlersAdded = false;\r\n\t\t\tthis._popup = null;\r\n\t\t}\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method openPopup(latlng?: LatLng): this\r\n\t// Opens the bound popup at the specified `latlng` or at the default popup anchor if no `latlng` is passed.\r\n\topenPopup: function (layer, latlng) {\r\n\t\tif (!(layer instanceof Layer)) {\r\n\t\t\tlatlng = layer;\r\n\t\t\tlayer = this;\r\n\t\t}\r\n\r\n\t\tif (layer instanceof FeatureGroup) {\r\n\t\t\tfor (var id in this._layers) {\r\n\t\t\t\tlayer = this._layers[id];\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (!latlng) {\r\n\t\t\tlatlng = layer.getCenter ? layer.getCenter() : layer.getLatLng();\r\n\t\t}\r\n\r\n\t\tif (this._popup && this._map) {\r\n\t\t\t// set popup source to this layer\r\n\t\t\tthis._popup._source = layer;\r\n\r\n\t\t\t// update the popup (content, layout, ect...)\r\n\t\t\tthis._popup.update();\r\n\r\n\t\t\t// open the popup on the map\r\n\t\t\tthis._map.openPopup(this._popup, latlng);\r\n\t\t}\r\n\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method closePopup(): this\r\n\t// Closes the popup bound to this layer if it is open.\r\n\tclosePopup: function () {\r\n\t\tif (this._popup) {\r\n\t\t\tthis._popup._close();\r\n\t\t}\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method togglePopup(): this\r\n\t// Opens or closes the popup bound to this layer depending on its current state.\r\n\ttogglePopup: function (target) {\r\n\t\tif (this._popup) {\r\n\t\t\tif (this._popup._map) {\r\n\t\t\t\tthis.closePopup();\r\n\t\t\t} else {\r\n\t\t\t\tthis.openPopup(target);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method isPopupOpen(): boolean\r\n\t// Returns `true` if the popup bound to this layer is currently open.\r\n\tisPopupOpen: function () {\r\n\t\treturn (this._popup ? this._popup.isOpen() : false);\r\n\t},\r\n\r\n\t// @method setPopupContent(content: String|HTMLElement|Popup): this\r\n\t// Sets the content of the popup bound to this layer.\r\n\tsetPopupContent: function (content) {\r\n\t\tif (this._popup) {\r\n\t\t\tthis._popup.setContent(content);\r\n\t\t}\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method getPopup(): Popup\r\n\t// Returns the popup bound to this layer.\r\n\tgetPopup: function () {\r\n\t\treturn this._popup;\r\n\t},\r\n\r\n\t_openPopup: function (e) {\r\n\t\tvar layer = e.layer || e.target;\r\n\r\n\t\tif (!this._popup) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (!this._map) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// prevent map click\r\n\t\tstop(e);\r\n\r\n\t\t// if this inherits from Path its a vector and we can just\r\n\t\t// open the popup at the new location\r\n\t\tif (layer instanceof Path) {\r\n\t\t\tthis.openPopup(e.layer || e.target, e.latlng);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// otherwise treat it like a marker and figure out\r\n\t\t// if we should toggle it open/closed\r\n\t\tif (this._map.hasLayer(this._popup) && this._popup._source === layer) {\r\n\t\t\tthis.closePopup();\r\n\t\t} else {\r\n\t\t\tthis.openPopup(layer, e.latlng);\r\n\t\t}\r\n\t},\r\n\r\n\t_movePopup: function (e) {\r\n\t\tthis._popup.setLatLng(e.latlng);\r\n\t},\r\n\r\n\t_onKeyPress: function (e) {\r\n\t\tif (e.originalEvent.keyCode === 13) {\r\n\t\t\tthis._openPopup(e);\r\n\t\t}\r\n\t}\r\n});\n\n/*\n * @class Tooltip\n * @inherits DivOverlay\n * @aka L.Tooltip\n * Used to display small texts on top of map layers.\n *\n * @example\n *\n * ```js\n * marker.bindTooltip(\"my tooltip text\").openTooltip();\n * ```\n * Note about tooltip offset. Leaflet takes two options in consideration\n * for computing tooltip offsetting:\n * - the `offset` Tooltip option: it defaults to [0, 0], and it's specific to one tooltip.\n * Add a positive x offset to move the tooltip to the right, and a positive y offset to\n * move it to the bottom. Negatives will move to the left and top.\n * - the `tooltipAnchor` Icon option: this will only be considered for Marker. You\n * should adapt this value if you use a custom icon.\n */\n\n\n// @namespace Tooltip\nvar Tooltip = DivOverlay.extend({\n\n\t// @section\n\t// @aka Tooltip options\n\toptions: {\n\t\t// @option pane: String = 'tooltipPane'\n\t\t// `Map pane` where the tooltip will be added.\n\t\tpane: 'tooltipPane',\n\n\t\t// @option offset: Point = Point(0, 0)\n\t\t// Optional offset of the tooltip position.\n\t\toffset: [0, 0],\n\n\t\t// @option direction: String = 'auto'\n\t\t// Direction where to open the tooltip. Possible values are: `right`, `left`,\n\t\t// `top`, `bottom`, `center`, `auto`.\n\t\t// `auto` will dynamically switch between `right` and `left` according to the tooltip\n\t\t// position on the map.\n\t\tdirection: 'auto',\n\n\t\t// @option permanent: Boolean = false\n\t\t// Whether to open the tooltip permanently or only on mouseover.\n\t\tpermanent: false,\n\n\t\t// @option sticky: Boolean = false\n\t\t// If true, the tooltip will follow the mouse instead of being fixed at the feature center.\n\t\tsticky: false,\n\n\t\t// @option interactive: Boolean = false\n\t\t// If true, the tooltip will listen to the feature events.\n\t\tinteractive: false,\n\n\t\t// @option opacity: Number = 0.9\n\t\t// Tooltip container opacity.\n\t\topacity: 0.9\n\t},\n\n\tonAdd: function (map) {\n\t\tDivOverlay.prototype.onAdd.call(this, map);\n\t\tthis.setOpacity(this.options.opacity);\n\n\t\t// @namespace Map\n\t\t// @section Tooltip events\n\t\t// @event tooltipopen: TooltipEvent\n\t\t// Fired when a tooltip is opened in the map.\n\t\tmap.fire('tooltipopen', {tooltip: this});\n\n\t\tif (this._source) {\n\t\t\t// @namespace Layer\n\t\t\t// @section Tooltip events\n\t\t\t// @event tooltipopen: TooltipEvent\n\t\t\t// Fired when a tooltip bound to this layer is opened.\n\t\t\tthis._source.fire('tooltipopen', {tooltip: this}, true);\n\t\t}\n\t},\n\n\tonRemove: function (map) {\n\t\tDivOverlay.prototype.onRemove.call(this, map);\n\n\t\t// @namespace Map\n\t\t// @section Tooltip events\n\t\t// @event tooltipclose: TooltipEvent\n\t\t// Fired when a tooltip in the map is closed.\n\t\tmap.fire('tooltipclose', {tooltip: this});\n\n\t\tif (this._source) {\n\t\t\t// @namespace Layer\n\t\t\t// @section Tooltip events\n\t\t\t// @event tooltipclose: TooltipEvent\n\t\t\t// Fired when a tooltip bound to this layer is closed.\n\t\t\tthis._source.fire('tooltipclose', {tooltip: this}, true);\n\t\t}\n\t},\n\n\tgetEvents: function () {\n\t\tvar events = DivOverlay.prototype.getEvents.call(this);\n\n\t\tif (touch && !this.options.permanent) {\n\t\t\tevents.preclick = this._close;\n\t\t}\n\n\t\treturn events;\n\t},\n\n\t_close: function () {\n\t\tif (this._map) {\n\t\t\tthis._map.closeTooltip(this);\n\t\t}\n\t},\n\n\t_initLayout: function () {\n\t\tvar prefix = 'leaflet-tooltip',\n\t\t className = prefix + ' ' + (this.options.className || '') + ' leaflet-zoom-' + (this._zoomAnimated ? 'animated' : 'hide');\n\n\t\tthis._contentNode = this._container = create$1('div', className);\n\t},\n\n\t_updateLayout: function () {},\n\n\t_adjustPan: function () {},\n\n\t_setPosition: function (pos) {\n\t\tvar map = this._map,\n\t\t container = this._container,\n\t\t centerPoint = map.latLngToContainerPoint(map.getCenter()),\n\t\t tooltipPoint = map.layerPointToContainerPoint(pos),\n\t\t direction = this.options.direction,\n\t\t tooltipWidth = container.offsetWidth,\n\t\t tooltipHeight = container.offsetHeight,\n\t\t offset = toPoint(this.options.offset),\n\t\t anchor = this._getAnchor();\n\n\t\tif (direction === 'top') {\n\t\t\tpos = pos.add(toPoint(-tooltipWidth / 2 + offset.x, -tooltipHeight + offset.y + anchor.y, true));\n\t\t} else if (direction === 'bottom') {\n\t\t\tpos = pos.subtract(toPoint(tooltipWidth / 2 - offset.x, -offset.y, true));\n\t\t} else if (direction === 'center') {\n\t\t\tpos = pos.subtract(toPoint(tooltipWidth / 2 + offset.x, tooltipHeight / 2 - anchor.y + offset.y, true));\n\t\t} else if (direction === 'right' || direction === 'auto' && tooltipPoint.x < centerPoint.x) {\n\t\t\tdirection = 'right';\n\t\t\tpos = pos.add(toPoint(offset.x + anchor.x, anchor.y - tooltipHeight / 2 + offset.y, true));\n\t\t} else {\n\t\t\tdirection = 'left';\n\t\t\tpos = pos.subtract(toPoint(tooltipWidth + anchor.x - offset.x, tooltipHeight / 2 - anchor.y - offset.y, true));\n\t\t}\n\n\t\tremoveClass(container, 'leaflet-tooltip-right');\n\t\tremoveClass(container, 'leaflet-tooltip-left');\n\t\tremoveClass(container, 'leaflet-tooltip-top');\n\t\tremoveClass(container, 'leaflet-tooltip-bottom');\n\t\taddClass(container, 'leaflet-tooltip-' + direction);\n\t\tsetPosition(container, pos);\n\t},\n\n\t_updatePosition: function () {\n\t\tvar pos = this._map.latLngToLayerPoint(this._latlng);\n\t\tthis._setPosition(pos);\n\t},\n\n\tsetOpacity: function (opacity) {\n\t\tthis.options.opacity = opacity;\n\n\t\tif (this._container) {\n\t\t\tsetOpacity(this._container, opacity);\n\t\t}\n\t},\n\n\t_animateZoom: function (e) {\n\t\tvar pos = this._map._latLngToNewLayerPoint(this._latlng, e.zoom, e.center);\n\t\tthis._setPosition(pos);\n\t},\n\n\t_getAnchor: function () {\n\t\t// Where should we anchor the tooltip on the source layer?\n\t\treturn toPoint(this._source && this._source._getTooltipAnchor && !this.options.sticky ? this._source._getTooltipAnchor() : [0, 0]);\n\t}\n\n});\n\n// @namespace Tooltip\n// @factory L.tooltip(options?: Tooltip options, source?: Layer)\n// Instantiates a Tooltip object given an optional `options` object that describes its appearance and location and an optional `source` object that is used to tag the tooltip with a reference to the Layer to which it refers.\nvar tooltip = function (options, source) {\n\treturn new Tooltip(options, source);\n};\n\n// @namespace Map\n// @section Methods for Layers and Controls\nMap.include({\n\n\t// @method openTooltip(tooltip: Tooltip): this\n\t// Opens the specified tooltip.\n\t// @alternative\n\t// @method openTooltip(content: String|HTMLElement, latlng: LatLng, options?: Tooltip options): this\n\t// Creates a tooltip with the specified content and options and open it.\n\topenTooltip: function (tooltip, latlng, options) {\n\t\tif (!(tooltip instanceof Tooltip)) {\n\t\t\ttooltip = new Tooltip(options).setContent(tooltip);\n\t\t}\n\n\t\tif (latlng) {\n\t\t\ttooltip.setLatLng(latlng);\n\t\t}\n\n\t\tif (this.hasLayer(tooltip)) {\n\t\t\treturn this;\n\t\t}\n\n\t\treturn this.addLayer(tooltip);\n\t},\n\n\t// @method closeTooltip(tooltip?: Tooltip): this\n\t// Closes the tooltip given as parameter.\n\tcloseTooltip: function (tooltip) {\n\t\tif (tooltip) {\n\t\t\tthis.removeLayer(tooltip);\n\t\t}\n\t\treturn this;\n\t}\n\n});\n\n/*\n * @namespace Layer\n * @section Tooltip methods example\n *\n * All layers share a set of methods convenient for binding tooltips to it.\n *\n * ```js\n * var layer = L.Polygon(latlngs).bindTooltip('Hi There!').addTo(map);\n * layer.openTooltip();\n * layer.closeTooltip();\n * ```\n */\n\n// @section Tooltip methods\nLayer.include({\n\n\t// @method bindTooltip(content: String|HTMLElement|Function|Tooltip, options?: Tooltip options): this\n\t// Binds a tooltip to the layer with the passed `content` and sets up the\n\t// necessary event listeners. If a `Function` is passed it will receive\n\t// the layer as the first argument and should return a `String` or `HTMLElement`.\n\tbindTooltip: function (content, options) {\n\n\t\tif (content instanceof Tooltip) {\n\t\t\tsetOptions(content, options);\n\t\t\tthis._tooltip = content;\n\t\t\tcontent._source = this;\n\t\t} else {\n\t\t\tif (!this._tooltip || options) {\n\t\t\t\tthis._tooltip = new Tooltip(options, this);\n\t\t\t}\n\t\t\tthis._tooltip.setContent(content);\n\n\t\t}\n\n\t\tthis._initTooltipInteractions();\n\n\t\tif (this._tooltip.options.permanent && this._map && this._map.hasLayer(this)) {\n\t\t\tthis.openTooltip();\n\t\t}\n\n\t\treturn this;\n\t},\n\n\t// @method unbindTooltip(): this\n\t// Removes the tooltip previously bound with `bindTooltip`.\n\tunbindTooltip: function () {\n\t\tif (this._tooltip) {\n\t\t\tthis._initTooltipInteractions(true);\n\t\t\tthis.closeTooltip();\n\t\t\tthis._tooltip = null;\n\t\t}\n\t\treturn this;\n\t},\n\n\t_initTooltipInteractions: function (remove$$1) {\n\t\tif (!remove$$1 && this._tooltipHandlersAdded) { return; }\n\t\tvar onOff = remove$$1 ? 'off' : 'on',\n\t\t events = {\n\t\t\tremove: this.closeTooltip,\n\t\t\tmove: this._moveTooltip\n\t\t };\n\t\tif (!this._tooltip.options.permanent) {\n\t\t\tevents.mouseover = this._openTooltip;\n\t\t\tevents.mouseout = this.closeTooltip;\n\t\t\tif (this._tooltip.options.sticky) {\n\t\t\t\tevents.mousemove = this._moveTooltip;\n\t\t\t}\n\t\t\tif (touch) {\n\t\t\t\tevents.click = this._openTooltip;\n\t\t\t}\n\t\t} else {\n\t\t\tevents.add = this._openTooltip;\n\t\t}\n\t\tthis[onOff](events);\n\t\tthis._tooltipHandlersAdded = !remove$$1;\n\t},\n\n\t// @method openTooltip(latlng?: LatLng): this\n\t// Opens the bound tooltip at the specified `latlng` or at the default tooltip anchor if no `latlng` is passed.\n\topenTooltip: function (layer, latlng) {\n\t\tif (!(layer instanceof Layer)) {\n\t\t\tlatlng = layer;\n\t\t\tlayer = this;\n\t\t}\n\n\t\tif (layer instanceof FeatureGroup) {\n\t\t\tfor (var id in this._layers) {\n\t\t\t\tlayer = this._layers[id];\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif (!latlng) {\n\t\t\tlatlng = layer.getCenter ? layer.getCenter() : layer.getLatLng();\n\t\t}\n\n\t\tif (this._tooltip && this._map) {\n\n\t\t\t// set tooltip source to this layer\n\t\t\tthis._tooltip._source = layer;\n\n\t\t\t// update the tooltip (content, layout, ect...)\n\t\t\tthis._tooltip.update();\n\n\t\t\t// open the tooltip on the map\n\t\t\tthis._map.openTooltip(this._tooltip, latlng);\n\n\t\t\t// Tooltip container may not be defined if not permanent and never\n\t\t\t// opened.\n\t\t\tif (this._tooltip.options.interactive && this._tooltip._container) {\n\t\t\t\taddClass(this._tooltip._container, 'leaflet-clickable');\n\t\t\t\tthis.addInteractiveTarget(this._tooltip._container);\n\t\t\t}\n\t\t}\n\n\t\treturn this;\n\t},\n\n\t// @method closeTooltip(): this\n\t// Closes the tooltip bound to this layer if it is open.\n\tcloseTooltip: function () {\n\t\tif (this._tooltip) {\n\t\t\tthis._tooltip._close();\n\t\t\tif (this._tooltip.options.interactive && this._tooltip._container) {\n\t\t\t\tremoveClass(this._tooltip._container, 'leaflet-clickable');\n\t\t\t\tthis.removeInteractiveTarget(this._tooltip._container);\n\t\t\t}\n\t\t}\n\t\treturn this;\n\t},\n\n\t// @method toggleTooltip(): this\n\t// Opens or closes the tooltip bound to this layer depending on its current state.\n\ttoggleTooltip: function (target) {\n\t\tif (this._tooltip) {\n\t\t\tif (this._tooltip._map) {\n\t\t\t\tthis.closeTooltip();\n\t\t\t} else {\n\t\t\t\tthis.openTooltip(target);\n\t\t\t}\n\t\t}\n\t\treturn this;\n\t},\n\n\t// @method isTooltipOpen(): boolean\n\t// Returns `true` if the tooltip bound to this layer is currently open.\n\tisTooltipOpen: function () {\n\t\treturn this._tooltip.isOpen();\n\t},\n\n\t// @method setTooltipContent(content: String|HTMLElement|Tooltip): this\n\t// Sets the content of the tooltip bound to this layer.\n\tsetTooltipContent: function (content) {\n\t\tif (this._tooltip) {\n\t\t\tthis._tooltip.setContent(content);\n\t\t}\n\t\treturn this;\n\t},\n\n\t// @method getTooltip(): Tooltip\n\t// Returns the tooltip bound to this layer.\n\tgetTooltip: function () {\n\t\treturn this._tooltip;\n\t},\n\n\t_openTooltip: function (e) {\n\t\tvar layer = e.layer || e.target;\n\n\t\tif (!this._tooltip || !this._map) {\n\t\t\treturn;\n\t\t}\n\t\tthis.openTooltip(layer, this._tooltip.options.sticky ? e.latlng : undefined);\n\t},\n\n\t_moveTooltip: function (e) {\n\t\tvar latlng = e.latlng, containerPoint, layerPoint;\n\t\tif (this._tooltip.options.sticky && e.originalEvent) {\n\t\t\tcontainerPoint = this._map.mouseEventToContainerPoint(e.originalEvent);\n\t\t\tlayerPoint = this._map.containerPointToLayerPoint(containerPoint);\n\t\t\tlatlng = this._map.layerPointToLatLng(layerPoint);\n\t\t}\n\t\tthis._tooltip.setLatLng(latlng);\n\t}\n});\n\n/*\n * @class DivIcon\n * @aka L.DivIcon\n * @inherits Icon\n *\n * Represents a lightweight icon for markers that uses a simple `<div>`\n * element instead of an image. Inherits from `Icon` but ignores the `iconUrl` and shadow options.\n *\n * @example\n * ```js\n * var myIcon = L.divIcon({className: 'my-div-icon'});\n * // you can set .my-div-icon styles in CSS\n *\n * L.marker([50.505, 30.57], {icon: myIcon}).addTo(map);\n * ```\n *\n * By default, it has a 'leaflet-div-icon' CSS class and is styled as a little white square with a shadow.\n */\n\nvar DivIcon = Icon.extend({\n\toptions: {\n\t\t// @section\n\t\t// @aka DivIcon options\n\t\ticonSize: [12, 12], // also can be set through CSS\n\n\t\t// iconAnchor: (Point),\n\t\t// popupAnchor: (Point),\n\n\t\t// @option html: String = ''\n\t\t// Custom HTML code to put inside the div element, empty by default.\n\t\thtml: false,\n\n\t\t// @option bgPos: Point = [0, 0]\n\t\t// Optional relative position of the background, in pixels\n\t\tbgPos: null,\n\n\t\tclassName: 'leaflet-div-icon'\n\t},\n\n\tcreateIcon: function (oldIcon) {\n\t\tvar div = (oldIcon && oldIcon.tagName === 'DIV') ? oldIcon : document.createElement('div'),\n\t\t options = this.options;\n\n\t\tdiv.innerHTML = options.html !== false ? options.html : '';\n\n\t\tif (options.bgPos) {\n\t\t\tvar bgPos = toPoint(options.bgPos);\n\t\t\tdiv.style.backgroundPosition = (-bgPos.x) + 'px ' + (-bgPos.y) + 'px';\n\t\t}\n\t\tthis._setIconStyles(div, 'icon');\n\n\t\treturn div;\n\t},\n\n\tcreateShadow: function () {\n\t\treturn null;\n\t}\n});\n\n// @factory L.divIcon(options: DivIcon options)\n// Creates a `DivIcon` instance with the given options.\nfunction divIcon(options) {\n\treturn new DivIcon(options);\n}\n\nIcon.Default = IconDefault;\n\n/*\n * @class GridLayer\n * @inherits Layer\n * @aka L.GridLayer\n *\n * Generic class for handling a tiled grid of HTML elements. This is the base class for all tile layers and replaces `TileLayer.Canvas`.\n * GridLayer can be extended to create a tiled grid of HTML elements like `<canvas>`, `<img>` or `<div>`. GridLayer will handle creating and animating these DOM elements for you.\n *\n *\n * @section Synchronous usage\n * @example\n *\n * To create a custom layer, extend GridLayer and implement the `createTile()` method, which will be passed a `Point` object with the `x`, `y`, and `z` (zoom level) coordinates to draw your tile.\n *\n * ```js\n * var CanvasLayer = L.GridLayer.extend({\n * createTile: function(coords){\n * // create a <canvas> element for drawing\n * var tile = L.DomUtil.create('canvas', 'leaflet-tile');\n *\n * // setup tile width and height according to the options\n * var size = this.getTileSize();\n * tile.width = size.x;\n * tile.height = size.y;\n *\n * // get a canvas context and draw something on it using coords.x, coords.y and coords.z\n * var ctx = tile.getContext('2d');\n *\n * // return the tile so it can be rendered on screen\n * return tile;\n * }\n * });\n * ```\n *\n * @section Asynchronous usage\n * @example\n *\n * Tile creation can also be asynchronous, this is useful when using a third-party drawing library. Once the tile is finished drawing it can be passed to the `done()` callback.\n *\n * ```js\n * var CanvasLayer = L.GridLayer.extend({\n * createTile: function(coords, done){\n * var error;\n *\n * // create a <canvas> element for drawing\n * var tile = L.DomUtil.create('canvas', 'leaflet-tile');\n *\n * // setup tile width and height according to the options\n * var size = this.getTileSize();\n * tile.width = size.x;\n * tile.height = size.y;\n *\n * // draw something asynchronously and pass the tile to the done() callback\n * setTimeout(function() {\n * done(error, tile);\n * }, 1000);\n *\n * return tile;\n * }\n * });\n * ```\n *\n * @section\n */\n\n\nvar GridLayer = Layer.extend({\n\n\t// @section\n\t// @aka GridLayer options\n\toptions: {\n\t\t// @option tileSize: Number|Point = 256\n\t\t// Width and height of tiles in the grid. Use a number if width and height are equal, or `L.point(width, height)` otherwise.\n\t\ttileSize: 256,\n\n\t\t// @option opacity: Number = 1.0\n\t\t// Opacity of the tiles. Can be used in the `createTile()` function.\n\t\topacity: 1,\n\n\t\t// @option updateWhenIdle: Boolean = (depends)\n\t\t// Load new tiles only when panning ends.\n\t\t// `true` by default on mobile browsers, in order to avoid too many requests and keep smooth navigation.\n\t\t// `false` otherwise in order to display new tiles _during_ panning, since it is easy to pan outside the\n\t\t// [`keepBuffer`](#gridlayer-keepbuffer) option in desktop browsers.\n\t\tupdateWhenIdle: mobile,\n\n\t\t// @option updateWhenZooming: Boolean = true\n\t\t// By default, a smooth zoom animation (during a [touch zoom](#map-touchzoom) or a [`flyTo()`](#map-flyto)) will update grid layers every integer zoom level. Setting this option to `false` will update the grid layer only when the smooth animation ends.\n\t\tupdateWhenZooming: true,\n\n\t\t// @option updateInterval: Number = 200\n\t\t// Tiles will not update more than once every `updateInterval` milliseconds when panning.\n\t\tupdateInterval: 200,\n\n\t\t// @option zIndex: Number = 1\n\t\t// The explicit zIndex of the tile layer.\n\t\tzIndex: 1,\n\n\t\t// @option bounds: LatLngBounds = undefined\n\t\t// If set, tiles will only be loaded inside the set `LatLngBounds`.\n\t\tbounds: null,\n\n\t\t// @option minZoom: Number = 0\n\t\t// The minimum zoom level down to which this layer will be displayed (inclusive).\n\t\tminZoom: 0,\n\n\t\t// @option maxZoom: Number = undefined\n\t\t// The maximum zoom level up to which this layer will be displayed (inclusive).\n\t\tmaxZoom: undefined,\n\n\t\t// @option maxNativeZoom: Number = undefined\n\t\t// Maximum zoom number the tile source has available. If it is specified,\n\t\t// the tiles on all zoom levels higher than `maxNativeZoom` will be loaded\n\t\t// from `maxNativeZoom` level and auto-scaled.\n\t\tmaxNativeZoom: undefined,\n\n\t\t// @option minNativeZoom: Number = undefined\n\t\t// Minimum zoom number the tile source has available. If it is specified,\n\t\t// the tiles on all zoom levels lower than `minNativeZoom` will be loaded\n\t\t// from `minNativeZoom` level and auto-scaled.\n\t\tminNativeZoom: undefined,\n\n\t\t// @option noWrap: Boolean = false\n\t\t// Whether the layer is wrapped around the antimeridian. If `true`, the\n\t\t// GridLayer will only be displayed once at low zoom levels. Has no\n\t\t// effect when the [map CRS](#map-crs) doesn't wrap around. Can be used\n\t\t// in combination with [`bounds`](#gridlayer-bounds) to prevent requesting\n\t\t// tiles outside the CRS limits.\n\t\tnoWrap: false,\n\n\t\t// @option pane: String = 'tilePane'\n\t\t// `Map pane` where the grid layer will be added.\n\t\tpane: 'tilePane',\n\n\t\t// @option className: String = ''\n\t\t// A custom class name to assign to the tile layer. Empty by default.\n\t\tclassName: '',\n\n\t\t// @option keepBuffer: Number = 2\n\t\t// When panning the map, keep this many rows and columns of tiles before unloading them.\n\t\tkeepBuffer: 2\n\t},\n\n\tinitialize: function (options) {\n\t\tsetOptions(this, options);\n\t},\n\n\tonAdd: function () {\n\t\tthis._initContainer();\n\n\t\tthis._levels = {};\n\t\tthis._tiles = {};\n\n\t\tthis._resetView();\n\t\tthis._update();\n\t},\n\n\tbeforeAdd: function (map) {\n\t\tmap._addZoomLimit(this);\n\t},\n\n\tonRemove: function (map) {\n\t\tthis._removeAllTiles();\n\t\tremove(this._container);\n\t\tmap._removeZoomLimit(this);\n\t\tthis._container = null;\n\t\tthis._tileZoom = undefined;\n\t},\n\n\t// @method bringToFront: this\n\t// Brings the tile layer to the top of all tile layers.\n\tbringToFront: function () {\n\t\tif (this._map) {\n\t\t\ttoFront(this._container);\n\t\t\tthis._setAutoZIndex(Math.max);\n\t\t}\n\t\treturn this;\n\t},\n\n\t// @method bringToBack: this\n\t// Brings the tile layer to the bottom of all tile layers.\n\tbringToBack: function () {\n\t\tif (this._map) {\n\t\t\ttoBack(this._container);\n\t\t\tthis._setAutoZIndex(Math.min);\n\t\t}\n\t\treturn this;\n\t},\n\n\t// @method getContainer: HTMLElement\n\t// Returns the HTML element that contains the tiles for this layer.\n\tgetContainer: function () {\n\t\treturn this._container;\n\t},\n\n\t// @method setOpacity(opacity: Number): this\n\t// Changes the [opacity](#gridlayer-opacity) of the grid layer.\n\tsetOpacity: function (opacity) {\n\t\tthis.options.opacity = opacity;\n\t\tthis._updateOpacity();\n\t\treturn this;\n\t},\n\n\t// @method setZIndex(zIndex: Number): this\n\t// Changes the [zIndex](#gridlayer-zindex) of the grid layer.\n\tsetZIndex: function (zIndex) {\n\t\tthis.options.zIndex = zIndex;\n\t\tthis._updateZIndex();\n\n\t\treturn this;\n\t},\n\n\t// @method isLoading: Boolean\n\t// Returns `true` if any tile in the grid layer has not finished loading.\n\tisLoading: function () {\n\t\treturn this._loading;\n\t},\n\n\t// @method redraw: this\n\t// Causes the layer to clear all the tiles and request them again.\n\tredraw: function () {\n\t\tif (this._map) {\n\t\t\tthis._removeAllTiles();\n\t\t\tthis._update();\n\t\t}\n\t\treturn this;\n\t},\n\n\tgetEvents: function () {\n\t\tvar events = {\n\t\t\tviewprereset: this._invalidateAll,\n\t\t\tviewreset: this._resetView,\n\t\t\tzoom: this._resetView,\n\t\t\tmoveend: this._onMoveEnd\n\t\t};\n\n\t\tif (!this.options.updateWhenIdle) {\n\t\t\t// update tiles on move, but not more often than once per given interval\n\t\t\tif (!this._onMove) {\n\t\t\t\tthis._onMove = throttle(this._onMoveEnd, this.options.updateInterval, this);\n\t\t\t}\n\n\t\t\tevents.move = this._onMove;\n\t\t}\n\n\t\tif (this._zoomAnimated) {\n\t\t\tevents.zoomanim = this._animateZoom;\n\t\t}\n\n\t\treturn events;\n\t},\n\n\t// @section Extension methods\n\t// Layers extending `GridLayer` shall reimplement the following method.\n\t// @method createTile(coords: Object, done?: Function): HTMLElement\n\t// Called only internally, must be overridden by classes extending `GridLayer`.\n\t// Returns the `HTMLElement` corresponding to the given `coords`. If the `done` callback\n\t// is specified, it must be called when the tile has finished loading and drawing.\n\tcreateTile: function () {\n\t\treturn document.createElement('div');\n\t},\n\n\t// @section\n\t// @method getTileSize: Point\n\t// Normalizes the [tileSize option](#gridlayer-tilesize) into a point. Used by the `createTile()` method.\n\tgetTileSize: function () {\n\t\tvar s = this.options.tileSize;\n\t\treturn s instanceof Point ? s : new Point(s, s);\n\t},\n\n\t_updateZIndex: function () {\n\t\tif (this._container && this.options.zIndex !== undefined && this.options.zIndex !== null) {\n\t\t\tthis._container.style.zIndex = this.options.zIndex;\n\t\t}\n\t},\n\n\t_setAutoZIndex: function (compare) {\n\t\t// go through all other layers of the same pane, set zIndex to max + 1 (front) or min - 1 (back)\n\n\t\tvar layers = this.getPane().children,\n\t\t edgeZIndex = -compare(-Infinity, Infinity); // -Infinity for max, Infinity for min\n\n\t\tfor (var i = 0, len = layers.length, zIndex; i < len; i++) {\n\n\t\t\tzIndex = layers[i].style.zIndex;\n\n\t\t\tif (layers[i] !== this._container && zIndex) {\n\t\t\t\tedgeZIndex = compare(edgeZIndex, +zIndex);\n\t\t\t}\n\t\t}\n\n\t\tif (isFinite(edgeZIndex)) {\n\t\t\tthis.options.zIndex = edgeZIndex + compare(-1, 1);\n\t\t\tthis._updateZIndex();\n\t\t}\n\t},\n\n\t_updateOpacity: function () {\n\t\tif (!this._map) { return; }\n\n\t\t// IE doesn't inherit filter opacity properly, so we're forced to set it on tiles\n\t\tif (ielt9) { return; }\n\n\t\tsetOpacity(this._container, this.options.opacity);\n\n\t\tvar now = +new Date(),\n\t\t nextFrame = false,\n\t\t willPrune = false;\n\n\t\tfor (var key in this._tiles) {\n\t\t\tvar tile = this._tiles[key];\n\t\t\tif (!tile.current || !tile.loaded) { continue; }\n\n\t\t\tvar fade = Math.min(1, (now - tile.loaded) / 200);\n\n\t\t\tsetOpacity(tile.el, fade);\n\t\t\tif (fade < 1) {\n\t\t\t\tnextFrame = true;\n\t\t\t} else {\n\t\t\t\tif (tile.active) {\n\t\t\t\t\twillPrune = true;\n\t\t\t\t} else {\n\t\t\t\t\tthis._onOpaqueTile(tile);\n\t\t\t\t}\n\t\t\t\ttile.active = true;\n\t\t\t}\n\t\t}\n\n\t\tif (willPrune && !this._noPrune) { this._pruneTiles(); }\n\n\t\tif (nextFrame) {\n\t\t\tcancelAnimFrame(this._fadeFrame);\n\t\t\tthis._fadeFrame = requestAnimFrame(this._updateOpacity, this);\n\t\t}\n\t},\n\n\t_onOpaqueTile: falseFn,\n\n\t_initContainer: function () {\n\t\tif (this._container) { return; }\n\n\t\tthis._container = create$1('div', 'leaflet-layer ' + (this.options.className || ''));\n\t\tthis._updateZIndex();\n\n\t\tif (this.options.opacity < 1) {\n\t\t\tthis._updateOpacity();\n\t\t}\n\n\t\tthis.getPane().appendChild(this._container);\n\t},\n\n\t_updateLevels: function () {\n\n\t\tvar zoom = this._tileZoom,\n\t\t maxZoom = this.options.maxZoom;\n\n\t\tif (zoom === undefined) { return undefined; }\n\n\t\tfor (var z in this._levels) {\n\t\t\tif (this._levels[z].el.children.length || z === zoom) {\n\t\t\t\tthis._levels[z].el.style.zIndex = maxZoom - Math.abs(zoom - z);\n\t\t\t\tthis._onUpdateLevel(z);\n\t\t\t} else {\n\t\t\t\tremove(this._levels[z].el);\n\t\t\t\tthis._removeTilesAtZoom(z);\n\t\t\t\tthis._onRemoveLevel(z);\n\t\t\t\tdelete this._levels[z];\n\t\t\t}\n\t\t}\n\n\t\tvar level = this._levels[zoom],\n\t\t map = this._map;\n\n\t\tif (!level) {\n\t\t\tlevel = this._levels[zoom] = {};\n\n\t\t\tlevel.el = create$1('div', 'leaflet-tile-container leaflet-zoom-animated', this._container);\n\t\t\tlevel.el.style.zIndex = maxZoom;\n\n\t\t\tlevel.origin = map.project(map.unproject(map.getPixelOrigin()), zoom).round();\n\t\t\tlevel.zoom = zoom;\n\n\t\t\tthis._setZoomTransform(level, map.getCenter(), map.getZoom());\n\n\t\t\t// force the browser to consider the newly added element for transition\n\t\t\tfalseFn(level.el.offsetWidth);\n\n\t\t\tthis._onCreateLevel(level);\n\t\t}\n\n\t\tthis._level = level;\n\n\t\treturn level;\n\t},\n\n\t_onUpdateLevel: falseFn,\n\n\t_onRemoveLevel: falseFn,\n\n\t_onCreateLevel: falseFn,\n\n\t_pruneTiles: function () {\n\t\tif (!this._map) {\n\t\t\treturn;\n\t\t}\n\n\t\tvar key, tile;\n\n\t\tvar zoom = this._map.getZoom();\n\t\tif (zoom > this.options.maxZoom ||\n\t\t\tzoom < this.options.minZoom) {\n\t\t\tthis._removeAllTiles();\n\t\t\treturn;\n\t\t}\n\n\t\tfor (key in this._tiles) {\n\t\t\ttile = this._tiles[key];\n\t\t\ttile.retain = tile.current;\n\t\t}\n\n\t\tfor (key in this._tiles) {\n\t\t\ttile = this._tiles[key];\n\t\t\tif (tile.current && !tile.active) {\n\t\t\t\tvar coords = tile.coords;\n\t\t\t\tif (!this._retainParent(coords.x, coords.y, coords.z, coords.z - 5)) {\n\t\t\t\t\tthis._retainChildren(coords.x, coords.y, coords.z, coords.z + 2);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (key in this._tiles) {\n\t\t\tif (!this._tiles[key].retain) {\n\t\t\t\tthis._removeTile(key);\n\t\t\t}\n\t\t}\n\t},\n\n\t_removeTilesAtZoom: function (zoom) {\n\t\tfor (var key in this._tiles) {\n\t\t\tif (this._tiles[key].coords.z !== zoom) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tthis._removeTile(key);\n\t\t}\n\t},\n\n\t_removeAllTiles: function () {\n\t\tfor (var key in this._tiles) {\n\t\t\tthis._removeTile(key);\n\t\t}\n\t},\n\n\t_invalidateAll: function () {\n\t\tfor (var z in this._levels) {\n\t\t\tremove(this._levels[z].el);\n\t\t\tthis._onRemoveLevel(z);\n\t\t\tdelete this._levels[z];\n\t\t}\n\t\tthis._removeAllTiles();\n\n\t\tthis._tileZoom = undefined;\n\t},\n\n\t_retainParent: function (x, y, z, minZoom) {\n\t\tvar x2 = Math.floor(x / 2),\n\t\t y2 = Math.floor(y / 2),\n\t\t z2 = z - 1,\n\t\t coords2 = new Point(+x2, +y2);\n\t\tcoords2.z = +z2;\n\n\t\tvar key = this._tileCoordsToKey(coords2),\n\t\t tile = this._tiles[key];\n\n\t\tif (tile && tile.active) {\n\t\t\ttile.retain = true;\n\t\t\treturn true;\n\n\t\t} else if (tile && tile.loaded) {\n\t\t\ttile.retain = true;\n\t\t}\n\n\t\tif (z2 > minZoom) {\n\t\t\treturn this._retainParent(x2, y2, z2, minZoom);\n\t\t}\n\n\t\treturn false;\n\t},\n\n\t_retainChildren: function (x, y, z, maxZoom) {\n\n\t\tfor (var i = 2 * x; i < 2 * x + 2; i++) {\n\t\t\tfor (var j = 2 * y; j < 2 * y + 2; j++) {\n\n\t\t\t\tvar coords = new Point(i, j);\n\t\t\t\tcoords.z = z + 1;\n\n\t\t\t\tvar key = this._tileCoordsToKey(coords),\n\t\t\t\t tile = this._tiles[key];\n\n\t\t\t\tif (tile && tile.active) {\n\t\t\t\t\ttile.retain = true;\n\t\t\t\t\tcontinue;\n\n\t\t\t\t} else if (tile && tile.loaded) {\n\t\t\t\t\ttile.retain = true;\n\t\t\t\t}\n\n\t\t\t\tif (z + 1 < maxZoom) {\n\t\t\t\t\tthis._retainChildren(i, j, z + 1, maxZoom);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t},\n\n\t_resetView: function (e) {\n\t\tvar animating = e && (e.pinch || e.flyTo);\n\t\tthis._setView(this._map.getCenter(), this._map.getZoom(), animating, animating);\n\t},\n\n\t_animateZoom: function (e) {\n\t\tthis._setView(e.center, e.zoom, true, e.noUpdate);\n\t},\n\n\t_clampZoom: function (zoom) {\n\t\tvar options = this.options;\n\n\t\tif (undefined !== options.minNativeZoom && zoom < options.minNativeZoom) {\n\t\t\treturn options.minNativeZoom;\n\t\t}\n\n\t\tif (undefined !== options.maxNativeZoom && options.maxNativeZoom < zoom) {\n\t\t\treturn options.maxNativeZoom;\n\t\t}\n\n\t\treturn zoom;\n\t},\n\n\t_setView: function (center, zoom, noPrune, noUpdate) {\n\t\tvar tileZoom = this._clampZoom(Math.round(zoom));\n\t\tif ((this.options.maxZoom !== undefined && tileZoom > this.options.maxZoom) ||\n\t\t (this.options.minZoom !== undefined && tileZoom < this.options.minZoom)) {\n\t\t\ttileZoom = undefined;\n\t\t}\n\n\t\tvar tileZoomChanged = this.options.updateWhenZooming && (tileZoom !== this._tileZoom);\n\n\t\tif (!noUpdate || tileZoomChanged) {\n\n\t\t\tthis._tileZoom = tileZoom;\n\n\t\t\tif (this._abortLoading) {\n\t\t\t\tthis._abortLoading();\n\t\t\t}\n\n\t\t\tthis._updateLevels();\n\t\t\tthis._resetGrid();\n\n\t\t\tif (tileZoom !== undefined) {\n\t\t\t\tthis._update(center);\n\t\t\t}\n\n\t\t\tif (!noPrune) {\n\t\t\t\tthis._pruneTiles();\n\t\t\t}\n\n\t\t\t// Flag to prevent _updateOpacity from pruning tiles during\n\t\t\t// a zoom anim or a pinch gesture\n\t\t\tthis._noPrune = !!noPrune;\n\t\t}\n\n\t\tthis._setZoomTransforms(center, zoom);\n\t},\n\n\t_setZoomTransforms: function (center, zoom) {\n\t\tfor (var i in this._levels) {\n\t\t\tthis._setZoomTransform(this._levels[i], center, zoom);\n\t\t}\n\t},\n\n\t_setZoomTransform: function (level, center, zoom) {\n\t\tvar scale = this._map.getZoomScale(zoom, level.zoom),\n\t\t translate = level.origin.multiplyBy(scale)\n\t\t .subtract(this._map._getNewPixelOrigin(center, zoom)).round();\n\n\t\tif (any3d) {\n\t\t\tsetTransform(level.el, translate, scale);\n\t\t} else {\n\t\t\tsetPosition(level.el, translate);\n\t\t}\n\t},\n\n\t_resetGrid: function () {\n\t\tvar map = this._map,\n\t\t crs = map.options.crs,\n\t\t tileSize = this._tileSize = this.getTileSize(),\n\t\t tileZoom = this._tileZoom;\n\n\t\tvar bounds = this._map.getPixelWorldBounds(this._tileZoom);\n\t\tif (bounds) {\n\t\t\tthis._globalTileRange = this._pxBoundsToTileRange(bounds);\n\t\t}\n\n\t\tthis._wrapX = crs.wrapLng && !this.options.noWrap && [\n\t\t\tMath.floor(map.project([0, crs.wrapLng[0]], tileZoom).x / tileSize.x),\n\t\t\tMath.ceil(map.project([0, crs.wrapLng[1]], tileZoom).x / tileSize.y)\n\t\t];\n\t\tthis._wrapY = crs.wrapLat && !this.options.noWrap && [\n\t\t\tMath.floor(map.project([crs.wrapLat[0], 0], tileZoom).y / tileSize.x),\n\t\t\tMath.ceil(map.project([crs.wrapLat[1], 0], tileZoom).y / tileSize.y)\n\t\t];\n\t},\n\n\t_onMoveEnd: function () {\n\t\tif (!this._map || this._map._animatingZoom) { return; }\n\n\t\tthis._update();\n\t},\n\n\t_getTiledPixelBounds: function (center) {\n\t\tvar map = this._map,\n\t\t mapZoom = map._animatingZoom ? Math.max(map._animateToZoom, map.getZoom()) : map.getZoom(),\n\t\t scale = map.getZoomScale(mapZoom, this._tileZoom),\n\t\t pixelCenter = map.project(center, this._tileZoom).floor(),\n\t\t halfSize = map.getSize().divideBy(scale * 2);\n\n\t\treturn new Bounds(pixelCenter.subtract(halfSize), pixelCenter.add(halfSize));\n\t},\n\n\t// Private method to load tiles in the grid's active zoom level according to map bounds\n\t_update: function (center) {\n\t\tvar map = this._map;\n\t\tif (!map) { return; }\n\t\tvar zoom = this._clampZoom(map.getZoom());\n\n\t\tif (center === undefined) { center = map.getCenter(); }\n\t\tif (this._tileZoom === undefined) { return; }\t// if out of minzoom/maxzoom\n\n\t\tvar pixelBounds = this._getTiledPixelBounds(center),\n\t\t tileRange = this._pxBoundsToTileRange(pixelBounds),\n\t\t tileCenter = tileRange.getCenter(),\n\t\t queue = [],\n\t\t margin = this.options.keepBuffer,\n\t\t noPruneRange = new Bounds(tileRange.getBottomLeft().subtract([margin, -margin]),\n\t\t tileRange.getTopRight().add([margin, -margin]));\n\n\t\t// Sanity check: panic if the tile range contains Infinity somewhere.\n\t\tif (!(isFinite(tileRange.min.x) &&\n\t\t isFinite(tileRange.min.y) &&\n\t\t isFinite(tileRange.max.x) &&\n\t\t isFinite(tileRange.max.y))) { throw new Error('Attempted to load an infinite number of tiles'); }\n\n\t\tfor (var key in this._tiles) {\n\t\t\tvar c = this._tiles[key].coords;\n\t\t\tif (c.z !== this._tileZoom || !noPruneRange.contains(new Point(c.x, c.y))) {\n\t\t\t\tthis._tiles[key].current = false;\n\t\t\t}\n\t\t}\n\n\t\t// _update just loads more tiles. If the tile zoom level differs too much\n\t\t// from the map's, let _setView reset levels and prune old tiles.\n\t\tif (Math.abs(zoom - this._tileZoom) > 1) { this._setView(center, zoom); return; }\n\n\t\t// create a queue of coordinates to load tiles from\n\t\tfor (var j = tileRange.min.y; j <= tileRange.max.y; j++) {\n\t\t\tfor (var i = tileRange.min.x; i <= tileRange.max.x; i++) {\n\t\t\t\tvar coords = new Point(i, j);\n\t\t\t\tcoords.z = this._tileZoom;\n\n\t\t\t\tif (!this._isValidTile(coords)) { continue; }\n\n\t\t\t\tvar tile = this._tiles[this._tileCoordsToKey(coords)];\n\t\t\t\tif (tile) {\n\t\t\t\t\ttile.current = true;\n\t\t\t\t} else {\n\t\t\t\t\tqueue.push(coords);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// sort tile queue to load tiles in order of their distance to center\n\t\tqueue.sort(function (a, b) {\n\t\t\treturn a.distanceTo(tileCenter) - b.distanceTo(tileCenter);\n\t\t});\n\n\t\tif (queue.length !== 0) {\n\t\t\t// if it's the first batch of tiles to load\n\t\t\tif (!this._loading) {\n\t\t\t\tthis._loading = true;\n\t\t\t\t// @event loading: Event\n\t\t\t\t// Fired when the grid layer starts loading tiles.\n\t\t\t\tthis.fire('loading');\n\t\t\t}\n\n\t\t\t// create DOM fragment to append tiles in one batch\n\t\t\tvar fragment = document.createDocumentFragment();\n\n\t\t\tfor (i = 0; i < queue.length; i++) {\n\t\t\t\tthis._addTile(queue[i], fragment);\n\t\t\t}\n\n\t\t\tthis._level.el.appendChild(fragment);\n\t\t}\n\t},\n\n\t_isValidTile: function (coords) {\n\t\tvar crs = this._map.options.crs;\n\n\t\tif (!crs.infinite) {\n\t\t\t// don't load tile if it's out of bounds and not wrapped\n\t\t\tvar bounds = this._globalTileRange;\n\t\t\tif ((!crs.wrapLng && (coords.x < bounds.min.x || coords.x > bounds.max.x)) ||\n\t\t\t (!crs.wrapLat && (coords.y < bounds.min.y || coords.y > bounds.max.y))) { return false; }\n\t\t}\n\n\t\tif (!this.options.bounds) { return true; }\n\n\t\t// don't load tile if it doesn't intersect the bounds in options\n\t\tvar tileBounds = this._tileCoordsToBounds(coords);\n\t\treturn toLatLngBounds(this.options.bounds).overlaps(tileBounds);\n\t},\n\n\t_keyToBounds: function (key) {\n\t\treturn this._tileCoordsToBounds(this._keyToTileCoords(key));\n\t},\n\n\t_tileCoordsToNwSe: function (coords) {\n\t\tvar map = this._map,\n\t\t tileSize = this.getTileSize(),\n\t\t nwPoint = coords.scaleBy(tileSize),\n\t\t sePoint = nwPoint.add(tileSize),\n\t\t nw = map.unproject(nwPoint, coords.z),\n\t\t se = map.unproject(sePoint, coords.z);\n\t\treturn [nw, se];\n\t},\n\n\t// converts tile coordinates to its geographical bounds\n\t_tileCoordsToBounds: function (coords) {\n\t\tvar bp = this._tileCoordsToNwSe(coords),\n\t\t bounds = new LatLngBounds(bp[0], bp[1]);\n\n\t\tif (!this.options.noWrap) {\n\t\t\tbounds = this._map.wrapLatLngBounds(bounds);\n\t\t}\n\t\treturn bounds;\n\t},\n\t// converts tile coordinates to key for the tile cache\n\t_tileCoordsToKey: function (coords) {\n\t\treturn coords.x + ':' + coords.y + ':' + coords.z;\n\t},\n\n\t// converts tile cache key to coordinates\n\t_keyToTileCoords: function (key) {\n\t\tvar k = key.split(':'),\n\t\t coords = new Point(+k[0], +k[1]);\n\t\tcoords.z = +k[2];\n\t\treturn coords;\n\t},\n\n\t_removeTile: function (key) {\n\t\tvar tile = this._tiles[key];\n\t\tif (!tile) { return; }\n\n\t\t// Cancels any pending http requests associated with the tile\n\t\t// unless we're on Android's stock browser,\n\t\t// see https://github.com/Leaflet/Leaflet/issues/137\n\t\tif (!androidStock) {\n\t\t\ttile.el.setAttribute('src', emptyImageUrl);\n\t\t}\n\t\tremove(tile.el);\n\n\t\tdelete this._tiles[key];\n\n\t\t// @event tileunload: TileEvent\n\t\t// Fired when a tile is removed (e.g. when a tile goes off the screen).\n\t\tthis.fire('tileunload', {\n\t\t\ttile: tile.el,\n\t\t\tcoords: this._keyToTileCoords(key)\n\t\t});\n\t},\n\n\t_initTile: function (tile) {\n\t\taddClass(tile, 'leaflet-tile');\n\n\t\tvar tileSize = this.getTileSize();\n\t\ttile.style.width = tileSize.x + 'px';\n\t\ttile.style.height = tileSize.y + 'px';\n\n\t\ttile.onselectstart = falseFn;\n\t\ttile.onmousemove = falseFn;\n\n\t\t// update opacity on tiles in IE7-8 because of filter inheritance problems\n\t\tif (ielt9 && this.options.opacity < 1) {\n\t\t\tsetOpacity(tile, this.options.opacity);\n\t\t}\n\n\t\t// without this hack, tiles disappear after zoom on Chrome for Android\n\t\t// https://github.com/Leaflet/Leaflet/issues/2078\n\t\tif (android && !android23) {\n\t\t\ttile.style.WebkitBackfaceVisibility = 'hidden';\n\t\t}\n\t},\n\n\t_addTile: function (coords, container) {\n\t\tvar tilePos = this._getTilePos(coords),\n\t\t key = this._tileCoordsToKey(coords);\n\n\t\tvar tile = this.createTile(this._wrapCoords(coords), bind(this._tileReady, this, coords));\n\n\t\tthis._initTile(tile);\n\n\t\t// if createTile is defined with a second argument (\"done\" callback),\n\t\t// we know that tile is async and will be ready later; otherwise\n\t\tif (this.createTile.length < 2) {\n\t\t\t// mark tile as ready, but delay one frame for opacity animation to happen\n\t\t\trequestAnimFrame(bind(this._tileReady, this, coords, null, tile));\n\t\t}\n\n\t\tsetPosition(tile, tilePos);\n\n\t\t// save tile in cache\n\t\tthis._tiles[key] = {\n\t\t\tel: tile,\n\t\t\tcoords: coords,\n\t\t\tcurrent: true\n\t\t};\n\n\t\tcontainer.appendChild(tile);\n\t\t// @event tileloadstart: TileEvent\n\t\t// Fired when a tile is requested and starts loading.\n\t\tthis.fire('tileloadstart', {\n\t\t\ttile: tile,\n\t\t\tcoords: coords\n\t\t});\n\t},\n\n\t_tileReady: function (coords, err, tile) {\n\t\tif (!this._map || tile.getAttribute('src') === emptyImageUrl) { return; }\n\n\t\tif (err) {\n\t\t\t// @event tileerror: TileErrorEvent\n\t\t\t// Fired when there is an error loading a tile.\n\t\t\tthis.fire('tileerror', {\n\t\t\t\terror: err,\n\t\t\t\ttile: tile,\n\t\t\t\tcoords: coords\n\t\t\t});\n\t\t}\n\n\t\tvar key = this._tileCoordsToKey(coords);\n\n\t\ttile = this._tiles[key];\n\t\tif (!tile) { return; }\n\n\t\ttile.loaded = +new Date();\n\t\tif (this._map._fadeAnimated) {\n\t\t\tsetOpacity(tile.el, 0);\n\t\t\tcancelAnimFrame(this._fadeFrame);\n\t\t\tthis._fadeFrame = requestAnimFrame(this._updateOpacity, this);\n\t\t} else {\n\t\t\ttile.active = true;\n\t\t\tthis._pruneTiles();\n\t\t}\n\n\t\tif (!err) {\n\t\t\taddClass(tile.el, 'leaflet-tile-loaded');\n\n\t\t\t// @event tileload: TileEvent\n\t\t\t// Fired when a tile loads.\n\t\t\tthis.fire('tileload', {\n\t\t\t\ttile: tile.el,\n\t\t\t\tcoords: coords\n\t\t\t});\n\t\t}\n\n\t\tif (this._noTilesToLoad()) {\n\t\t\tthis._loading = false;\n\t\t\t// @event load: Event\n\t\t\t// Fired when the grid layer loaded all visible tiles.\n\t\t\tthis.fire('load');\n\n\t\t\tif (ielt9 || !this._map._fadeAnimated) {\n\t\t\t\trequestAnimFrame(this._pruneTiles, this);\n\t\t\t} else {\n\t\t\t\t// Wait a bit more than 0.2 secs (the duration of the tile fade-in)\n\t\t\t\t// to trigger a pruning.\n\t\t\t\tsetTimeout(bind(this._pruneTiles, this), 250);\n\t\t\t}\n\t\t}\n\t},\n\n\t_getTilePos: function (coords) {\n\t\treturn coords.scaleBy(this.getTileSize()).subtract(this._level.origin);\n\t},\n\n\t_wrapCoords: function (coords) {\n\t\tvar newCoords = new Point(\n\t\t\tthis._wrapX ? wrapNum(coords.x, this._wrapX) : coords.x,\n\t\t\tthis._wrapY ? wrapNum(coords.y, this._wrapY) : coords.y);\n\t\tnewCoords.z = coords.z;\n\t\treturn newCoords;\n\t},\n\n\t_pxBoundsToTileRange: function (bounds) {\n\t\tvar tileSize = this.getTileSize();\n\t\treturn new Bounds(\n\t\t\tbounds.min.unscaleBy(tileSize).floor(),\n\t\t\tbounds.max.unscaleBy(tileSize).ceil().subtract([1, 1]));\n\t},\n\n\t_noTilesToLoad: function () {\n\t\tfor (var key in this._tiles) {\n\t\t\tif (!this._tiles[key].loaded) { return false; }\n\t\t}\n\t\treturn true;\n\t}\n});\n\n// @factory L.gridLayer(options?: GridLayer options)\n// Creates a new instance of GridLayer with the supplied options.\nfunction gridLayer(options) {\n\treturn new GridLayer(options);\n}\n\n/*\r\n * @class TileLayer\r\n * @inherits GridLayer\r\n * @aka L.TileLayer\r\n * Used to load and display tile layers on the map. Extends `GridLayer`.\r\n *\r\n * @example\r\n *\r\n * ```js\r\n * L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png?{foo}', {foo: 'bar'}).addTo(map);\r\n * ```\r\n *\r\n * @section URL template\r\n * @example\r\n *\r\n * A string of the following form:\r\n *\r\n * ```\r\n * 'http://{s}.somedomain.com/blabla/{z}/{x}/{y}{r}.png'\r\n * ```\r\n *\r\n * `{s}` means one of the available subdomains (used sequentially to help with browser parallel requests per domain limitation; subdomain values are specified in options; `a`, `b` or `c` by default, can be omitted), `{z}` — zoom level, `{x}` and `{y}` — tile coordinates. `{r}` can be used to add \"&commat;2x\" to the URL to load retina tiles.\r\n *\r\n * You can use custom keys in the template, which will be [evaluated](#util-template) from TileLayer options, like this:\r\n *\r\n * ```\r\n * L.tileLayer('http://{s}.somedomain.com/{foo}/{z}/{x}/{y}.png', {foo: 'bar'});\r\n * ```\r\n */\r\n\r\n\r\nvar TileLayer = GridLayer.extend({\r\n\r\n\t// @section\r\n\t// @aka TileLayer options\r\n\toptions: {\r\n\t\t// @option minZoom: Number = 0\r\n\t\t// The minimum zoom level down to which this layer will be displayed (inclusive).\r\n\t\tminZoom: 0,\r\n\r\n\t\t// @option maxZoom: Number = 18\r\n\t\t// The maximum zoom level up to which this layer will be displayed (inclusive).\r\n\t\tmaxZoom: 18,\r\n\r\n\t\t// @option subdomains: String|String[] = 'abc'\r\n\t\t// Subdomains of the tile service. Can be passed in the form of one string (where each letter is a subdomain name) or an array of strings.\r\n\t\tsubdomains: 'abc',\r\n\r\n\t\t// @option errorTileUrl: String = ''\r\n\t\t// URL to the tile image to show in place of the tile that failed to load.\r\n\t\terrorTileUrl: '',\r\n\r\n\t\t// @option zoomOffset: Number = 0\r\n\t\t// The zoom number used in tile URLs will be offset with this value.\r\n\t\tzoomOffset: 0,\r\n\r\n\t\t// @option tms: Boolean = false\r\n\t\t// If `true`, inverses Y axis numbering for tiles (turn this on for [TMS](https://en.wikipedia.org/wiki/Tile_Map_Service) services).\r\n\t\ttms: false,\r\n\r\n\t\t// @option zoomReverse: Boolean = false\r\n\t\t// If set to true, the zoom number used in tile URLs will be reversed (`maxZoom - zoom` instead of `zoom`)\r\n\t\tzoomReverse: false,\r\n\r\n\t\t// @option detectRetina: Boolean = false\r\n\t\t// If `true` and user is on a retina display, it will request four tiles of half the specified size and a bigger zoom level in place of one to utilize the high resolution.\r\n\t\tdetectRetina: false,\r\n\r\n\t\t// @option crossOrigin: Boolean|String = false\r\n\t\t// Whether the crossOrigin attribute will be added to the tiles.\r\n\t\t// If a String is provided, all tiles will have their crossOrigin attribute set to the String provided. This is needed if you want to access tile pixel data.\r\n\t\t// Refer to [CORS Settings](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_settings_attributes) for valid String values.\r\n\t\tcrossOrigin: false\r\n\t},\r\n\r\n\tinitialize: function (url, options) {\r\n\r\n\t\tthis._url = url;\r\n\r\n\t\toptions = setOptions(this, options);\r\n\r\n\t\t// detecting retina displays, adjusting tileSize and zoom levels\r\n\t\tif (options.detectRetina && retina && options.maxZoom > 0) {\r\n\r\n\t\t\toptions.tileSize = Math.floor(options.tileSize / 2);\r\n\r\n\t\t\tif (!options.zoomReverse) {\r\n\t\t\t\toptions.zoomOffset++;\r\n\t\t\t\toptions.maxZoom--;\r\n\t\t\t} else {\r\n\t\t\t\toptions.zoomOffset--;\r\n\t\t\t\toptions.minZoom++;\r\n\t\t\t}\r\n\r\n\t\t\toptions.minZoom = Math.max(0, options.minZoom);\r\n\t\t}\r\n\r\n\t\tif (typeof options.subdomains === 'string') {\r\n\t\t\toptions.subdomains = options.subdomains.split('');\r\n\t\t}\r\n\r\n\t\t// for https://github.com/Leaflet/Leaflet/issues/137\r\n\t\tif (!android) {\r\n\t\t\tthis.on('tileunload', this._onTileRemove);\r\n\t\t}\r\n\t},\r\n\r\n\t// @method setUrl(url: String, noRedraw?: Boolean): this\r\n\t// Updates the layer's URL template and redraws it (unless `noRedraw` is set to `true`).\r\n\tsetUrl: function (url, noRedraw) {\r\n\t\tthis._url = url;\r\n\r\n\t\tif (!noRedraw) {\r\n\t\t\tthis.redraw();\r\n\t\t}\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method createTile(coords: Object, done?: Function): HTMLElement\r\n\t// Called only internally, overrides GridLayer's [`createTile()`](#gridlayer-createtile)\r\n\t// to return an `<img>` HTML element with the appropriate image URL given `coords`. The `done`\r\n\t// callback is called when the tile has been loaded.\r\n\tcreateTile: function (coords, done) {\r\n\t\tvar tile = document.createElement('img');\r\n\r\n\t\ton(tile, 'load', bind(this._tileOnLoad, this, done, tile));\r\n\t\ton(tile, 'error', bind(this._tileOnError, this, done, tile));\r\n\r\n\t\tif (this.options.crossOrigin || this.options.crossOrigin === '') {\r\n\t\t\ttile.crossOrigin = this.options.crossOrigin === true ? '' : this.options.crossOrigin;\r\n\t\t}\r\n\r\n\t\t/*\r\n\t\t Alt tag is set to empty string to keep screen readers from reading URL and for compliance reasons\r\n\t\t http://www.w3.org/TR/WCAG20-TECHS/H67\r\n\t\t*/\r\n\t\ttile.alt = '';\r\n\r\n\t\t/*\r\n\t\t Set role=\"presentation\" to force screen readers to ignore this\r\n\t\t https://www.w3.org/TR/wai-aria/roles#textalternativecomputation\r\n\t\t*/\r\n\t\ttile.setAttribute('role', 'presentation');\r\n\r\n\t\ttile.src = this.getTileUrl(coords);\r\n\r\n\t\treturn tile;\r\n\t},\r\n\r\n\t// @section Extension methods\r\n\t// @uninheritable\r\n\t// Layers extending `TileLayer` might reimplement the following method.\r\n\t// @method getTileUrl(coords: Object): String\r\n\t// Called only internally, returns the URL for a tile given its coordinates.\r\n\t// Classes extending `TileLayer` can override this function to provide custom tile URL naming schemes.\r\n\tgetTileUrl: function (coords) {\r\n\t\tvar data = {\r\n\t\t\tr: retina ? '@2x' : '',\r\n\t\t\ts: this._getSubdomain(coords),\r\n\t\t\tx: coords.x,\r\n\t\t\ty: coords.y,\r\n\t\t\tz: this._getZoomForUrl()\r\n\t\t};\r\n\t\tif (this._map && !this._map.options.crs.infinite) {\r\n\t\t\tvar invertedY = this._globalTileRange.max.y - coords.y;\r\n\t\t\tif (this.options.tms) {\r\n\t\t\t\tdata['y'] = invertedY;\r\n\t\t\t}\r\n\t\t\tdata['-y'] = invertedY;\r\n\t\t}\r\n\r\n\t\treturn template(this._url, extend(data, this.options));\r\n\t},\r\n\r\n\t_tileOnLoad: function (done, tile) {\r\n\t\t// For https://github.com/Leaflet/Leaflet/issues/3332\r\n\t\tif (ielt9) {\r\n\t\t\tsetTimeout(bind(done, this, null, tile), 0);\r\n\t\t} else {\r\n\t\t\tdone(null, tile);\r\n\t\t}\r\n\t},\r\n\r\n\t_tileOnError: function (done, tile, e) {\r\n\t\tvar errorUrl = this.options.errorTileUrl;\r\n\t\tif (errorUrl && tile.getAttribute('src') !== errorUrl) {\r\n\t\t\ttile.src = errorUrl;\r\n\t\t}\r\n\t\tdone(e, tile);\r\n\t},\r\n\r\n\t_onTileRemove: function (e) {\r\n\t\te.tile.onload = null;\r\n\t},\r\n\r\n\t_getZoomForUrl: function () {\r\n\t\tvar zoom = this._tileZoom,\r\n\t\tmaxZoom = this.options.maxZoom,\r\n\t\tzoomReverse = this.options.zoomReverse,\r\n\t\tzoomOffset = this.options.zoomOffset;\r\n\r\n\t\tif (zoomReverse) {\r\n\t\t\tzoom = maxZoom - zoom;\r\n\t\t}\r\n\r\n\t\treturn zoom + zoomOffset;\r\n\t},\r\n\r\n\t_getSubdomain: function (tilePoint) {\r\n\t\tvar index = Math.abs(tilePoint.x + tilePoint.y) % this.options.subdomains.length;\r\n\t\treturn this.options.subdomains[index];\r\n\t},\r\n\r\n\t// stops loading all tiles in the background layer\r\n\t_abortLoading: function () {\r\n\t\tvar i, tile;\r\n\t\tfor (i in this._tiles) {\r\n\t\t\tif (this._tiles[i].coords.z !== this._tileZoom) {\r\n\t\t\t\ttile = this._tiles[i].el;\r\n\r\n\t\t\t\ttile.onload = falseFn;\r\n\t\t\t\ttile.onerror = falseFn;\r\n\r\n\t\t\t\tif (!tile.complete) {\r\n\t\t\t\t\ttile.src = emptyImageUrl;\r\n\t\t\t\t\tremove(tile);\r\n\t\t\t\t\tdelete this._tiles[i];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n});\r\n\r\n\r\n// @factory L.tilelayer(urlTemplate: String, options?: TileLayer options)\r\n// Instantiates a tile layer object given a `URL template` and optionally an options object.\r\n\r\nfunction tileLayer(url, options) {\r\n\treturn new TileLayer(url, options);\r\n}\n\n/*\r\n * @class TileLayer.WMS\r\n * @inherits TileLayer\r\n * @aka L.TileLayer.WMS\r\n * Used to display [WMS](https://en.wikipedia.org/wiki/Web_Map_Service) services as tile layers on the map. Extends `TileLayer`.\r\n *\r\n * @example\r\n *\r\n * ```js\r\n * var nexrad = L.tileLayer.wms(\"http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r.cgi\", {\r\n * \tlayers: 'nexrad-n0r-900913',\r\n * \tformat: 'image/png',\r\n * \ttransparent: true,\r\n * \tattribution: \"Weather data © 2012 IEM Nexrad\"\r\n * });\r\n * ```\r\n */\r\n\r\nvar TileLayerWMS = TileLayer.extend({\r\n\r\n\t// @section\r\n\t// @aka TileLayer.WMS options\r\n\t// If any custom options not documented here are used, they will be sent to the\r\n\t// WMS server as extra parameters in each request URL. This can be useful for\r\n\t// [non-standard vendor WMS parameters](http://docs.geoserver.org/stable/en/user/services/wms/vendor.html).\r\n\tdefaultWmsParams: {\r\n\t\tservice: 'WMS',\r\n\t\trequest: 'GetMap',\r\n\r\n\t\t// @option layers: String = ''\r\n\t\t// **(required)** Comma-separated list of WMS layers to show.\r\n\t\tlayers: '',\r\n\r\n\t\t// @option styles: String = ''\r\n\t\t// Comma-separated list of WMS styles.\r\n\t\tstyles: '',\r\n\r\n\t\t// @option format: String = 'image/jpeg'\r\n\t\t// WMS image format (use `'image/png'` for layers with transparency).\r\n\t\tformat: 'image/jpeg',\r\n\r\n\t\t// @option transparent: Boolean = false\r\n\t\t// If `true`, the WMS service will return images with transparency.\r\n\t\ttransparent: false,\r\n\r\n\t\t// @option version: String = '1.1.1'\r\n\t\t// Version of the WMS service to use\r\n\t\tversion: '1.1.1'\r\n\t},\r\n\r\n\toptions: {\r\n\t\t// @option crs: CRS = null\r\n\t\t// Coordinate Reference System to use for the WMS requests, defaults to\r\n\t\t// map CRS. Don't change this if you're not sure what it means.\r\n\t\tcrs: null,\r\n\r\n\t\t// @option uppercase: Boolean = false\r\n\t\t// If `true`, WMS request parameter keys will be uppercase.\r\n\t\tuppercase: false\r\n\t},\r\n\r\n\tinitialize: function (url, options) {\r\n\r\n\t\tthis._url = url;\r\n\r\n\t\tvar wmsParams = extend({}, this.defaultWmsParams);\r\n\r\n\t\t// all keys that are not TileLayer options go to WMS params\r\n\t\tfor (var i in options) {\r\n\t\t\tif (!(i in this.options)) {\r\n\t\t\t\twmsParams[i] = options[i];\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\toptions = setOptions(this, options);\r\n\r\n\t\tvar realRetina = options.detectRetina && retina ? 2 : 1;\r\n\t\tvar tileSize = this.getTileSize();\r\n\t\twmsParams.width = tileSize.x * realRetina;\r\n\t\twmsParams.height = tileSize.y * realRetina;\r\n\r\n\t\tthis.wmsParams = wmsParams;\r\n\t},\r\n\r\n\tonAdd: function (map) {\r\n\r\n\t\tthis._crs = this.options.crs || map.options.crs;\r\n\t\tthis._wmsVersion = parseFloat(this.wmsParams.version);\r\n\r\n\t\tvar projectionKey = this._wmsVersion >= 1.3 ? 'crs' : 'srs';\r\n\t\tthis.wmsParams[projectionKey] = this._crs.code;\r\n\r\n\t\tTileLayer.prototype.onAdd.call(this, map);\r\n\t},\r\n\r\n\tgetTileUrl: function (coords) {\r\n\r\n\t\tvar tileBounds = this._tileCoordsToNwSe(coords),\r\n\t\t crs = this._crs,\r\n\t\t bounds = toBounds(crs.project(tileBounds[0]), crs.project(tileBounds[1])),\r\n\t\t min = bounds.min,\r\n\t\t max = bounds.max,\r\n\t\t bbox = (this._wmsVersion >= 1.3 && this._crs === EPSG4326 ?\r\n\t\t [min.y, min.x, max.y, max.x] :\r\n\t\t [min.x, min.y, max.x, max.y]).join(','),\r\n\t\t url = TileLayer.prototype.getTileUrl.call(this, coords);\r\n\t\treturn url +\r\n\t\t\tgetParamString(this.wmsParams, url, this.options.uppercase) +\r\n\t\t\t(this.options.uppercase ? '&BBOX=' : '&bbox=') + bbox;\r\n\t},\r\n\r\n\t// @method setParams(params: Object, noRedraw?: Boolean): this\r\n\t// Merges an object with the new parameters and re-requests tiles on the current screen (unless `noRedraw` was set to true).\r\n\tsetParams: function (params, noRedraw) {\r\n\r\n\t\textend(this.wmsParams, params);\r\n\r\n\t\tif (!noRedraw) {\r\n\t\t\tthis.redraw();\r\n\t\t}\r\n\r\n\t\treturn this;\r\n\t}\r\n});\r\n\r\n\r\n// @factory L.tileLayer.wms(baseUrl: String, options: TileLayer.WMS options)\r\n// Instantiates a WMS tile layer object given a base URL of the WMS service and a WMS parameters/options object.\r\nfunction tileLayerWMS(url, options) {\r\n\treturn new TileLayerWMS(url, options);\r\n}\n\nTileLayer.WMS = TileLayerWMS;\ntileLayer.wms = tileLayerWMS;\n\n/*\n * @class Renderer\n * @inherits Layer\n * @aka L.Renderer\n *\n * Base class for vector renderer implementations (`SVG`, `Canvas`). Handles the\n * DOM container of the renderer, its bounds, and its zoom animation.\n *\n * A `Renderer` works as an implicit layer group for all `Path`s - the renderer\n * itself can be added or removed to the map. All paths use a renderer, which can\n * be implicit (the map will decide the type of renderer and use it automatically)\n * or explicit (using the [`renderer`](#path-renderer) option of the path).\n *\n * Do not use this class directly, use `SVG` and `Canvas` instead.\n *\n * @event update: Event\n * Fired when the renderer updates its bounds, center and zoom, for example when\n * its map has moved\n */\n\nvar Renderer = Layer.extend({\n\n\t// @section\n\t// @aka Renderer options\n\toptions: {\n\t\t// @option padding: Number = 0.1\n\t\t// How much to extend the clip area around the map view (relative to its size)\n\t\t// e.g. 0.1 would be 10% of map view in each direction\n\t\tpadding: 0.1,\n\n\t\t// @option tolerance: Number = 0\n\t\t// How much to extend click tolerance round a path/object on the map\n\t\ttolerance : 0\n\t},\n\n\tinitialize: function (options) {\n\t\tsetOptions(this, options);\n\t\tstamp(this);\n\t\tthis._layers = this._layers || {};\n\t},\n\n\tonAdd: function () {\n\t\tif (!this._container) {\n\t\t\tthis._initContainer(); // defined by renderer implementations\n\n\t\t\tif (this._zoomAnimated) {\n\t\t\t\taddClass(this._container, 'leaflet-zoom-animated');\n\t\t\t}\n\t\t}\n\n\t\tthis.getPane().appendChild(this._container);\n\t\tthis._update();\n\t\tthis.on('update', this._updatePaths, this);\n\t},\n\n\tonRemove: function () {\n\t\tthis.off('update', this._updatePaths, this);\n\t\tthis._destroyContainer();\n\t},\n\n\tgetEvents: function () {\n\t\tvar events = {\n\t\t\tviewreset: this._reset,\n\t\t\tzoom: this._onZoom,\n\t\t\tmoveend: this._update,\n\t\t\tzoomend: this._onZoomEnd\n\t\t};\n\t\tif (this._zoomAnimated) {\n\t\t\tevents.zoomanim = this._onAnimZoom;\n\t\t}\n\t\treturn events;\n\t},\n\n\t_onAnimZoom: function (ev) {\n\t\tthis._updateTransform(ev.center, ev.zoom);\n\t},\n\n\t_onZoom: function () {\n\t\tthis._updateTransform(this._map.getCenter(), this._map.getZoom());\n\t},\n\n\t_updateTransform: function (center, zoom) {\n\t\tvar scale = this._map.getZoomScale(zoom, this._zoom),\n\t\t position = getPosition(this._container),\n\t\t viewHalf = this._map.getSize().multiplyBy(0.5 + this.options.padding),\n\t\t currentCenterPoint = this._map.project(this._center, zoom),\n\t\t destCenterPoint = this._map.project(center, zoom),\n\t\t centerOffset = destCenterPoint.subtract(currentCenterPoint),\n\n\t\t topLeftOffset = viewHalf.multiplyBy(-scale).add(position).add(viewHalf).subtract(centerOffset);\n\n\t\tif (any3d) {\n\t\t\tsetTransform(this._container, topLeftOffset, scale);\n\t\t} else {\n\t\t\tsetPosition(this._container, topLeftOffset);\n\t\t}\n\t},\n\n\t_reset: function () {\n\t\tthis._update();\n\t\tthis._updateTransform(this._center, this._zoom);\n\n\t\tfor (var id in this._layers) {\n\t\t\tthis._layers[id]._reset();\n\t\t}\n\t},\n\n\t_onZoomEnd: function () {\n\t\tfor (var id in this._layers) {\n\t\t\tthis._layers[id]._project();\n\t\t}\n\t},\n\n\t_updatePaths: function () {\n\t\tfor (var id in this._layers) {\n\t\t\tthis._layers[id]._update();\n\t\t}\n\t},\n\n\t_update: function () {\n\t\t// Update pixel bounds of renderer container (for positioning/sizing/clipping later)\n\t\t// Subclasses are responsible of firing the 'update' event.\n\t\tvar p = this.options.padding,\n\t\t size = this._map.getSize(),\n\t\t min = this._map.containerPointToLayerPoint(size.multiplyBy(-p)).round();\n\n\t\tthis._bounds = new Bounds(min, min.add(size.multiplyBy(1 + p * 2)).round());\n\n\t\tthis._center = this._map.getCenter();\n\t\tthis._zoom = this._map.getZoom();\n\t}\n});\n\n/*\n * @class Canvas\n * @inherits Renderer\n * @aka L.Canvas\n *\n * Allows vector layers to be displayed with [`<canvas>`](https://developer.mozilla.org/docs/Web/API/Canvas_API).\n * Inherits `Renderer`.\n *\n * Due to [technical limitations](http://caniuse.com/#search=canvas), Canvas is not\n * available in all web browsers, notably IE8, and overlapping geometries might\n * not display properly in some edge cases.\n *\n * @example\n *\n * Use Canvas by default for all paths in the map:\n *\n * ```js\n * var map = L.map('map', {\n * \trenderer: L.canvas()\n * });\n * ```\n *\n * Use a Canvas renderer with extra padding for specific vector geometries:\n *\n * ```js\n * var map = L.map('map');\n * var myRenderer = L.canvas({ padding: 0.5 });\n * var line = L.polyline( coordinates, { renderer: myRenderer } );\n * var circle = L.circle( center, { renderer: myRenderer } );\n * ```\n */\n\nvar Canvas = Renderer.extend({\n\tgetEvents: function () {\n\t\tvar events = Renderer.prototype.getEvents.call(this);\n\t\tevents.viewprereset = this._onViewPreReset;\n\t\treturn events;\n\t},\n\n\t_onViewPreReset: function () {\n\t\t// Set a flag so that a viewprereset+moveend+viewreset only updates&redraws once\n\t\tthis._postponeUpdatePaths = true;\n\t},\n\n\tonAdd: function () {\n\t\tRenderer.prototype.onAdd.call(this);\n\n\t\t// Redraw vectors since canvas is cleared upon removal,\n\t\t// in case of removing the renderer itself from the map.\n\t\tthis._draw();\n\t},\n\n\t_initContainer: function () {\n\t\tvar container = this._container = document.createElement('canvas');\n\n\t\ton(container, 'mousemove', throttle(this._onMouseMove, 32, this), this);\n\t\ton(container, 'click dblclick mousedown mouseup contextmenu', this._onClick, this);\n\t\ton(container, 'mouseout', this._handleMouseOut, this);\n\n\t\tthis._ctx = container.getContext('2d');\n\t},\n\n\t_destroyContainer: function () {\n\t\tcancelAnimFrame(this._redrawRequest);\n\t\tdelete this._ctx;\n\t\tremove(this._container);\n\t\toff(this._container);\n\t\tdelete this._container;\n\t},\n\n\t_updatePaths: function () {\n\t\tif (this._postponeUpdatePaths) { return; }\n\n\t\tvar layer;\n\t\tthis._redrawBounds = null;\n\t\tfor (var id in this._layers) {\n\t\t\tlayer = this._layers[id];\n\t\t\tlayer._update();\n\t\t}\n\t\tthis._redraw();\n\t},\n\n\t_update: function () {\n\t\tif (this._map._animatingZoom && this._bounds) { return; }\n\n\t\tthis._drawnLayers = {};\n\n\t\tRenderer.prototype._update.call(this);\n\n\t\tvar b = this._bounds,\n\t\t container = this._container,\n\t\t size = b.getSize(),\n\t\t m = retina ? 2 : 1;\n\n\t\tsetPosition(container, b.min);\n\n\t\t// set canvas size (also clearing it); use double size on retina\n\t\tcontainer.width = m * size.x;\n\t\tcontainer.height = m * size.y;\n\t\tcontainer.style.width = size.x + 'px';\n\t\tcontainer.style.height = size.y + 'px';\n\n\t\tif (retina) {\n\t\t\tthis._ctx.scale(2, 2);\n\t\t}\n\n\t\t// translate so we use the same path coordinates after canvas element moves\n\t\tthis._ctx.translate(-b.min.x, -b.min.y);\n\n\t\t// Tell paths to redraw themselves\n\t\tthis.fire('update');\n\t},\n\n\t_reset: function () {\n\t\tRenderer.prototype._reset.call(this);\n\n\t\tif (this._postponeUpdatePaths) {\n\t\t\tthis._postponeUpdatePaths = false;\n\t\t\tthis._updatePaths();\n\t\t}\n\t},\n\n\t_initPath: function (layer) {\n\t\tthis._updateDashArray(layer);\n\t\tthis._layers[stamp(layer)] = layer;\n\n\t\tvar order = layer._order = {\n\t\t\tlayer: layer,\n\t\t\tprev: this._drawLast,\n\t\t\tnext: null\n\t\t};\n\t\tif (this._drawLast) { this._drawLast.next = order; }\n\t\tthis._drawLast = order;\n\t\tthis._drawFirst = this._drawFirst || this._drawLast;\n\t},\n\n\t_addPath: function (layer) {\n\t\tthis._requestRedraw(layer);\n\t},\n\n\t_removePath: function (layer) {\n\t\tvar order = layer._order;\n\t\tvar next = order.next;\n\t\tvar prev = order.prev;\n\n\t\tif (next) {\n\t\t\tnext.prev = prev;\n\t\t} else {\n\t\t\tthis._drawLast = prev;\n\t\t}\n\t\tif (prev) {\n\t\t\tprev.next = next;\n\t\t} else {\n\t\t\tthis._drawFirst = next;\n\t\t}\n\n\t\tdelete this._drawnLayers[layer._leaflet_id];\n\n\t\tdelete layer._order;\n\n\t\tdelete this._layers[stamp(layer)];\n\n\t\tthis._requestRedraw(layer);\n\t},\n\n\t_updatePath: function (layer) {\n\t\t// Redraw the union of the layer's old pixel\n\t\t// bounds and the new pixel bounds.\n\t\tthis._extendRedrawBounds(layer);\n\t\tlayer._project();\n\t\tlayer._update();\n\t\t// The redraw will extend the redraw bounds\n\t\t// with the new pixel bounds.\n\t\tthis._requestRedraw(layer);\n\t},\n\n\t_updateStyle: function (layer) {\n\t\tthis._updateDashArray(layer);\n\t\tthis._requestRedraw(layer);\n\t},\n\n\t_updateDashArray: function (layer) {\n\t\tif (typeof layer.options.dashArray === 'string') {\n\t\t\tvar parts = layer.options.dashArray.split(','),\n\t\t\t dashArray = [],\n\t\t\t i;\n\t\t\tfor (i = 0; i < parts.length; i++) {\n\t\t\t\tdashArray.push(Number(parts[i]));\n\t\t\t}\n\t\t\tlayer.options._dashArray = dashArray;\n\t\t} else {\n\t\t\tlayer.options._dashArray = layer.options.dashArray;\n\t\t}\n\t},\n\n\t_requestRedraw: function (layer) {\n\t\tif (!this._map) { return; }\n\n\t\tthis._extendRedrawBounds(layer);\n\t\tthis._redrawRequest = this._redrawRequest || requestAnimFrame(this._redraw, this);\n\t},\n\n\t_extendRedrawBounds: function (layer) {\n\t\tif (layer._pxBounds) {\n\t\t\tvar padding = (layer.options.weight || 0) + 1;\n\t\t\tthis._redrawBounds = this._redrawBounds || new Bounds();\n\t\t\tthis._redrawBounds.extend(layer._pxBounds.min.subtract([padding, padding]));\n\t\t\tthis._redrawBounds.extend(layer._pxBounds.max.add([padding, padding]));\n\t\t}\n\t},\n\n\t_redraw: function () {\n\t\tthis._redrawRequest = null;\n\n\t\tif (this._redrawBounds) {\n\t\t\tthis._redrawBounds.min._floor();\n\t\t\tthis._redrawBounds.max._ceil();\n\t\t}\n\n\t\tthis._clear(); // clear layers in redraw bounds\n\t\tthis._draw(); // draw layers\n\n\t\tthis._redrawBounds = null;\n\t},\n\n\t_clear: function () {\n\t\tvar bounds = this._redrawBounds;\n\t\tif (bounds) {\n\t\t\tvar size = bounds.getSize();\n\t\t\tthis._ctx.clearRect(bounds.min.x, bounds.min.y, size.x, size.y);\n\t\t} else {\n\t\t\tthis._ctx.clearRect(0, 0, this._container.width, this._container.height);\n\t\t}\n\t},\n\n\t_draw: function () {\n\t\tvar layer, bounds = this._redrawBounds;\n\t\tthis._ctx.save();\n\t\tif (bounds) {\n\t\t\tvar size = bounds.getSize();\n\t\t\tthis._ctx.beginPath();\n\t\t\tthis._ctx.rect(bounds.min.x, bounds.min.y, size.x, size.y);\n\t\t\tthis._ctx.clip();\n\t\t}\n\n\t\tthis._drawing = true;\n\n\t\tfor (var order = this._drawFirst; order; order = order.next) {\n\t\t\tlayer = order.layer;\n\t\t\tif (!bounds || (layer._pxBounds && layer._pxBounds.intersects(bounds))) {\n\t\t\t\tlayer._updatePath();\n\t\t\t}\n\t\t}\n\n\t\tthis._drawing = false;\n\n\t\tthis._ctx.restore(); // Restore state before clipping.\n\t},\n\n\t_updatePoly: function (layer, closed) {\n\t\tif (!this._drawing) { return; }\n\n\t\tvar i, j, len2, p,\n\t\t parts = layer._parts,\n\t\t len = parts.length,\n\t\t ctx = this._ctx;\n\n\t\tif (!len) { return; }\n\n\t\tthis._drawnLayers[layer._leaflet_id] = layer;\n\n\t\tctx.beginPath();\n\n\t\tfor (i = 0; i < len; i++) {\n\t\t\tfor (j = 0, len2 = parts[i].length; j < len2; j++) {\n\t\t\t\tp = parts[i][j];\n\t\t\t\tctx[j ? 'lineTo' : 'moveTo'](p.x, p.y);\n\t\t\t}\n\t\t\tif (closed) {\n\t\t\t\tctx.closePath();\n\t\t\t}\n\t\t}\n\n\t\tthis._fillStroke(ctx, layer);\n\n\t\t// TODO optimization: 1 fill/stroke for all features with equal style instead of 1 for each feature\n\t},\n\n\t_updateCircle: function (layer) {\n\n\t\tif (!this._drawing || layer._empty()) { return; }\n\n\t\tvar p = layer._point,\n\t\t ctx = this._ctx,\n\t\t r = Math.max(Math.round(layer._radius), 1),\n\t\t s = (Math.max(Math.round(layer._radiusY), 1) || r) / r;\n\n\t\tthis._drawnLayers[layer._leaflet_id] = layer;\n\n\t\tif (s !== 1) {\n\t\t\tctx.save();\n\t\t\tctx.scale(1, s);\n\t\t}\n\n\t\tctx.beginPath();\n\t\tctx.arc(p.x, p.y / s, r, 0, Math.PI * 2, false);\n\n\t\tif (s !== 1) {\n\t\t\tctx.restore();\n\t\t}\n\n\t\tthis._fillStroke(ctx, layer);\n\t},\n\n\t_fillStroke: function (ctx, layer) {\n\t\tvar options = layer.options;\n\n\t\tif (options.fill) {\n\t\t\tctx.globalAlpha = options.fillOpacity;\n\t\t\tctx.fillStyle = options.fillColor || options.color;\n\t\t\tctx.fill(options.fillRule || 'evenodd');\n\t\t}\n\n\t\tif (options.stroke && options.weight !== 0) {\n\t\t\tif (ctx.setLineDash) {\n\t\t\t\tctx.setLineDash(layer.options && layer.options._dashArray || []);\n\t\t\t}\n\t\t\tctx.globalAlpha = options.opacity;\n\t\t\tctx.lineWidth = options.weight;\n\t\t\tctx.strokeStyle = options.color;\n\t\t\tctx.lineCap = options.lineCap;\n\t\t\tctx.lineJoin = options.lineJoin;\n\t\t\tctx.stroke();\n\t\t}\n\t},\n\n\t// Canvas obviously doesn't have mouse events for individual drawn objects,\n\t// so we emulate that by calculating what's under the mouse on mousemove/click manually\n\n\t_onClick: function (e) {\n\t\tvar point = this._map.mouseEventToLayerPoint(e), layer, clickedLayer;\n\n\t\tfor (var order = this._drawFirst; order; order = order.next) {\n\t\t\tlayer = order.layer;\n\t\t\tif (layer.options.interactive && layer._containsPoint(point) && !this._map._draggableMoved(layer)) {\n\t\t\t\tclickedLayer = layer;\n\t\t\t}\n\t\t}\n\t\tif (clickedLayer) {\n\t\t\tfakeStop(e);\n\t\t\tthis._fireEvent([clickedLayer], e);\n\t\t}\n\t},\n\n\t_onMouseMove: function (e) {\n\t\tif (!this._map || this._map.dragging.moving() || this._map._animatingZoom) { return; }\n\n\t\tvar point = this._map.mouseEventToLayerPoint(e);\n\t\tthis._handleMouseHover(e, point);\n\t},\n\n\n\t_handleMouseOut: function (e) {\n\t\tvar layer = this._hoveredLayer;\n\t\tif (layer) {\n\t\t\t// if we're leaving the layer, fire mouseout\n\t\t\tremoveClass(this._container, 'leaflet-interactive');\n\t\t\tthis._fireEvent([layer], e, 'mouseout');\n\t\t\tthis._hoveredLayer = null;\n\t\t}\n\t},\n\n\t_handleMouseHover: function (e, point) {\n\t\tvar layer, candidateHoveredLayer;\n\n\t\tfor (var order = this._drawFirst; order; order = order.next) {\n\t\t\tlayer = order.layer;\n\t\t\tif (layer.options.interactive && layer._containsPoint(point)) {\n\t\t\t\tcandidateHoveredLayer = layer;\n\t\t\t}\n\t\t}\n\n\t\tif (candidateHoveredLayer !== this._hoveredLayer) {\n\t\t\tthis._handleMouseOut(e);\n\n\t\t\tif (candidateHoveredLayer) {\n\t\t\t\taddClass(this._container, 'leaflet-interactive'); // change cursor\n\t\t\t\tthis._fireEvent([candidateHoveredLayer], e, 'mouseover');\n\t\t\t\tthis._hoveredLayer = candidateHoveredLayer;\n\t\t\t}\n\t\t}\n\n\t\tif (this._hoveredLayer) {\n\t\t\tthis._fireEvent([this._hoveredLayer], e);\n\t\t}\n\t},\n\n\t_fireEvent: function (layers, e, type) {\n\t\tthis._map._fireDOMEvent(e, type || e.type, layers);\n\t},\n\n\t_bringToFront: function (layer) {\n\t\tvar order = layer._order;\n\t\tvar next = order.next;\n\t\tvar prev = order.prev;\n\n\t\tif (next) {\n\t\t\tnext.prev = prev;\n\t\t} else {\n\t\t\t// Already last\n\t\t\treturn;\n\t\t}\n\t\tif (prev) {\n\t\t\tprev.next = next;\n\t\t} else if (next) {\n\t\t\t// Update first entry unless this is the\n\t\t\t// single entry\n\t\t\tthis._drawFirst = next;\n\t\t}\n\n\t\torder.prev = this._drawLast;\n\t\tthis._drawLast.next = order;\n\n\t\torder.next = null;\n\t\tthis._drawLast = order;\n\n\t\tthis._requestRedraw(layer);\n\t},\n\n\t_bringToBack: function (layer) {\n\t\tvar order = layer._order;\n\t\tvar next = order.next;\n\t\tvar prev = order.prev;\n\n\t\tif (prev) {\n\t\t\tprev.next = next;\n\t\t} else {\n\t\t\t// Already first\n\t\t\treturn;\n\t\t}\n\t\tif (next) {\n\t\t\tnext.prev = prev;\n\t\t} else if (prev) {\n\t\t\t// Update last entry unless this is the\n\t\t\t// single entry\n\t\t\tthis._drawLast = prev;\n\t\t}\n\n\t\torder.prev = null;\n\n\t\torder.next = this._drawFirst;\n\t\tthis._drawFirst.prev = order;\n\t\tthis._drawFirst = order;\n\n\t\tthis._requestRedraw(layer);\n\t}\n});\n\n// @factory L.canvas(options?: Renderer options)\n// Creates a Canvas renderer with the given options.\nfunction canvas$1(options) {\n\treturn canvas ? new Canvas(options) : null;\n}\n\n/*\n * Thanks to Dmitry Baranovsky and his Raphael library for inspiration!\n */\n\n\nvar vmlCreate = (function () {\n\ttry {\n\t\tdocument.namespaces.add('lvml', 'urn:schemas-microsoft-com:vml');\n\t\treturn function (name) {\n\t\t\treturn document.createElement('<lvml:' + name + ' class=\"lvml\">');\n\t\t};\n\t} catch (e) {\n\t\treturn function (name) {\n\t\t\treturn document.createElement('<' + name + ' xmlns=\"urn:schemas-microsoft.com:vml\" class=\"lvml\">');\n\t\t};\n\t}\n})();\n\n\n/*\n * @class SVG\n *\n * Although SVG is not available on IE7 and IE8, these browsers support [VML](https://en.wikipedia.org/wiki/Vector_Markup_Language), and the SVG renderer will fall back to VML in this case.\n *\n * VML was deprecated in 2012, which means VML functionality exists only for backwards compatibility\n * with old versions of Internet Explorer.\n */\n\n// mixin to redefine some SVG methods to handle VML syntax which is similar but with some differences\nvar vmlMixin = {\n\n\t_initContainer: function () {\n\t\tthis._container = create$1('div', 'leaflet-vml-container');\n\t},\n\n\t_update: function () {\n\t\tif (this._map._animatingZoom) { return; }\n\t\tRenderer.prototype._update.call(this);\n\t\tthis.fire('update');\n\t},\n\n\t_initPath: function (layer) {\n\t\tvar container = layer._container = vmlCreate('shape');\n\n\t\taddClass(container, 'leaflet-vml-shape ' + (this.options.className || ''));\n\n\t\tcontainer.coordsize = '1 1';\n\n\t\tlayer._path = vmlCreate('path');\n\t\tcontainer.appendChild(layer._path);\n\n\t\tthis._updateStyle(layer);\n\t\tthis._layers[stamp(layer)] = layer;\n\t},\n\n\t_addPath: function (layer) {\n\t\tvar container = layer._container;\n\t\tthis._container.appendChild(container);\n\n\t\tif (layer.options.interactive) {\n\t\t\tlayer.addInteractiveTarget(container);\n\t\t}\n\t},\n\n\t_removePath: function (layer) {\n\t\tvar container = layer._container;\n\t\tremove(container);\n\t\tlayer.removeInteractiveTarget(container);\n\t\tdelete this._layers[stamp(layer)];\n\t},\n\n\t_updateStyle: function (layer) {\n\t\tvar stroke = layer._stroke,\n\t\t fill = layer._fill,\n\t\t options = layer.options,\n\t\t container = layer._container;\n\n\t\tcontainer.stroked = !!options.stroke;\n\t\tcontainer.filled = !!options.fill;\n\n\t\tif (options.stroke) {\n\t\t\tif (!stroke) {\n\t\t\t\tstroke = layer._stroke = vmlCreate('stroke');\n\t\t\t}\n\t\t\tcontainer.appendChild(stroke);\n\t\t\tstroke.weight = options.weight + 'px';\n\t\t\tstroke.color = options.color;\n\t\t\tstroke.opacity = options.opacity;\n\n\t\t\tif (options.dashArray) {\n\t\t\t\tstroke.dashStyle = isArray(options.dashArray) ?\n\t\t\t\t options.dashArray.join(' ') :\n\t\t\t\t options.dashArray.replace(/( *, *)/g, ' ');\n\t\t\t} else {\n\t\t\t\tstroke.dashStyle = '';\n\t\t\t}\n\t\t\tstroke.endcap = options.lineCap.replace('butt', 'flat');\n\t\t\tstroke.joinstyle = options.lineJoin;\n\n\t\t} else if (stroke) {\n\t\t\tcontainer.removeChild(stroke);\n\t\t\tlayer._stroke = null;\n\t\t}\n\n\t\tif (options.fill) {\n\t\t\tif (!fill) {\n\t\t\t\tfill = layer._fill = vmlCreate('fill');\n\t\t\t}\n\t\t\tcontainer.appendChild(fill);\n\t\t\tfill.color = options.fillColor || options.color;\n\t\t\tfill.opacity = options.fillOpacity;\n\n\t\t} else if (fill) {\n\t\t\tcontainer.removeChild(fill);\n\t\t\tlayer._fill = null;\n\t\t}\n\t},\n\n\t_updateCircle: function (layer) {\n\t\tvar p = layer._point.round(),\n\t\t r = Math.round(layer._radius),\n\t\t r2 = Math.round(layer._radiusY || r);\n\n\t\tthis._setPath(layer, layer._empty() ? 'M0 0' :\n\t\t\t'AL ' + p.x + ',' + p.y + ' ' + r + ',' + r2 + ' 0,' + (65535 * 360));\n\t},\n\n\t_setPath: function (layer, path) {\n\t\tlayer._path.v = path;\n\t},\n\n\t_bringToFront: function (layer) {\n\t\ttoFront(layer._container);\n\t},\n\n\t_bringToBack: function (layer) {\n\t\ttoBack(layer._container);\n\t}\n};\n\nvar create$2 = vml ? vmlCreate : svgCreate;\n\n/*\n * @class SVG\n * @inherits Renderer\n * @aka L.SVG\n *\n * Allows vector layers to be displayed with [SVG](https://developer.mozilla.org/docs/Web/SVG).\n * Inherits `Renderer`.\n *\n * Due to [technical limitations](http://caniuse.com/#search=svg), SVG is not\n * available in all web browsers, notably Android 2.x and 3.x.\n *\n * Although SVG is not available on IE7 and IE8, these browsers support\n * [VML](https://en.wikipedia.org/wiki/Vector_Markup_Language)\n * (a now deprecated technology), and the SVG renderer will fall back to VML in\n * this case.\n *\n * @example\n *\n * Use SVG by default for all paths in the map:\n *\n * ```js\n * var map = L.map('map', {\n * \trenderer: L.svg()\n * });\n * ```\n *\n * Use a SVG renderer with extra padding for specific vector geometries:\n *\n * ```js\n * var map = L.map('map');\n * var myRenderer = L.svg({ padding: 0.5 });\n * var line = L.polyline( coordinates, { renderer: myRenderer } );\n * var circle = L.circle( center, { renderer: myRenderer } );\n * ```\n */\n\nvar SVG = Renderer.extend({\n\n\tgetEvents: function () {\n\t\tvar events = Renderer.prototype.getEvents.call(this);\n\t\tevents.zoomstart = this._onZoomStart;\n\t\treturn events;\n\t},\n\n\t_initContainer: function () {\n\t\tthis._container = create$2('svg');\n\n\t\t// makes it possible to click through svg root; we'll reset it back in individual paths\n\t\tthis._container.setAttribute('pointer-events', 'none');\n\n\t\tthis._rootGroup = create$2('g');\n\t\tthis._container.appendChild(this._rootGroup);\n\t},\n\n\t_destroyContainer: function () {\n\t\tremove(this._container);\n\t\toff(this._container);\n\t\tdelete this._container;\n\t\tdelete this._rootGroup;\n\t\tdelete this._svgSize;\n\t},\n\n\t_onZoomStart: function () {\n\t\t// Drag-then-pinch interactions might mess up the center and zoom.\n\t\t// In this case, the easiest way to prevent this is re-do the renderer\n\t\t// bounds and padding when the zooming starts.\n\t\tthis._update();\n\t},\n\n\t_update: function () {\n\t\tif (this._map._animatingZoom && this._bounds) { return; }\n\n\t\tRenderer.prototype._update.call(this);\n\n\t\tvar b = this._bounds,\n\t\t size = b.getSize(),\n\t\t container = this._container;\n\n\t\t// set size of svg-container if changed\n\t\tif (!this._svgSize || !this._svgSize.equals(size)) {\n\t\t\tthis._svgSize = size;\n\t\t\tcontainer.setAttribute('width', size.x);\n\t\t\tcontainer.setAttribute('height', size.y);\n\t\t}\n\n\t\t// movement: update container viewBox so that we don't have to change coordinates of individual layers\n\t\tsetPosition(container, b.min);\n\t\tcontainer.setAttribute('viewBox', [b.min.x, b.min.y, size.x, size.y].join(' '));\n\n\t\tthis.fire('update');\n\t},\n\n\t// methods below are called by vector layers implementations\n\n\t_initPath: function (layer) {\n\t\tvar path = layer._path = create$2('path');\n\n\t\t// @namespace Path\n\t\t// @option className: String = null\n\t\t// Custom class name set on an element. Only for SVG renderer.\n\t\tif (layer.options.className) {\n\t\t\taddClass(path, layer.options.className);\n\t\t}\n\n\t\tif (layer.options.interactive) {\n\t\t\taddClass(path, 'leaflet-interactive');\n\t\t}\n\n\t\tthis._updateStyle(layer);\n\t\tthis._layers[stamp(layer)] = layer;\n\t},\n\n\t_addPath: function (layer) {\n\t\tif (!this._rootGroup) { this._initContainer(); }\n\t\tthis._rootGroup.appendChild(layer._path);\n\t\tlayer.addInteractiveTarget(layer._path);\n\t},\n\n\t_removePath: function (layer) {\n\t\tremove(layer._path);\n\t\tlayer.removeInteractiveTarget(layer._path);\n\t\tdelete this._layers[stamp(layer)];\n\t},\n\n\t_updatePath: function (layer) {\n\t\tlayer._project();\n\t\tlayer._update();\n\t},\n\n\t_updateStyle: function (layer) {\n\t\tvar path = layer._path,\n\t\t options = layer.options;\n\n\t\tif (!path) { return; }\n\n\t\tif (options.stroke) {\n\t\t\tpath.setAttribute('stroke', options.color);\n\t\t\tpath.setAttribute('stroke-opacity', options.opacity);\n\t\t\tpath.setAttribute('stroke-width', options.weight);\n\t\t\tpath.setAttribute('stroke-linecap', options.lineCap);\n\t\t\tpath.setAttribute('stroke-linejoin', options.lineJoin);\n\n\t\t\tif (options.dashArray) {\n\t\t\t\tpath.setAttribute('stroke-dasharray', options.dashArray);\n\t\t\t} else {\n\t\t\t\tpath.removeAttribute('stroke-dasharray');\n\t\t\t}\n\n\t\t\tif (options.dashOffset) {\n\t\t\t\tpath.setAttribute('stroke-dashoffset', options.dashOffset);\n\t\t\t} else {\n\t\t\t\tpath.removeAttribute('stroke-dashoffset');\n\t\t\t}\n\t\t} else {\n\t\t\tpath.setAttribute('stroke', 'none');\n\t\t}\n\n\t\tif (options.fill) {\n\t\t\tpath.setAttribute('fill', options.fillColor || options.color);\n\t\t\tpath.setAttribute('fill-opacity', options.fillOpacity);\n\t\t\tpath.setAttribute('fill-rule', options.fillRule || 'evenodd');\n\t\t} else {\n\t\t\tpath.setAttribute('fill', 'none');\n\t\t}\n\t},\n\n\t_updatePoly: function (layer, closed) {\n\t\tthis._setPath(layer, pointsToPath(layer._parts, closed));\n\t},\n\n\t_updateCircle: function (layer) {\n\t\tvar p = layer._point,\n\t\t r = Math.max(Math.round(layer._radius), 1),\n\t\t r2 = Math.max(Math.round(layer._radiusY), 1) || r,\n\t\t arc = 'a' + r + ',' + r2 + ' 0 1,0 ';\n\n\t\t// drawing a circle with two half-arcs\n\t\tvar d = layer._empty() ? 'M0 0' :\n\t\t\t'M' + (p.x - r) + ',' + p.y +\n\t\t\tarc + (r * 2) + ',0 ' +\n\t\t\tarc + (-r * 2) + ',0 ';\n\n\t\tthis._setPath(layer, d);\n\t},\n\n\t_setPath: function (layer, path) {\n\t\tlayer._path.setAttribute('d', path);\n\t},\n\n\t// SVG does not have the concept of zIndex so we resort to changing the DOM order of elements\n\t_bringToFront: function (layer) {\n\t\ttoFront(layer._path);\n\t},\n\n\t_bringToBack: function (layer) {\n\t\ttoBack(layer._path);\n\t}\n});\n\nif (vml) {\n\tSVG.include(vmlMixin);\n}\n\n// @namespace SVG\n// @factory L.svg(options?: Renderer options)\n// Creates a SVG renderer with the given options.\nfunction svg$1(options) {\n\treturn svg || vml ? new SVG(options) : null;\n}\n\nMap.include({\n\t// @namespace Map; @method getRenderer(layer: Path): Renderer\n\t// Returns the instance of `Renderer` that should be used to render the given\n\t// `Path`. It will ensure that the `renderer` options of the map and paths\n\t// are respected, and that the renderers do exist on the map.\n\tgetRenderer: function (layer) {\n\t\t// @namespace Path; @option renderer: Renderer\n\t\t// Use this specific instance of `Renderer` for this path. Takes\n\t\t// precedence over the map's [default renderer](#map-renderer).\n\t\tvar renderer = layer.options.renderer || this._getPaneRenderer(layer.options.pane) || this.options.renderer || this._renderer;\n\n\t\tif (!renderer) {\n\t\t\trenderer = this._renderer = this._createRenderer();\n\t\t}\n\n\t\tif (!this.hasLayer(renderer)) {\n\t\t\tthis.addLayer(renderer);\n\t\t}\n\t\treturn renderer;\n\t},\n\n\t_getPaneRenderer: function (name) {\n\t\tif (name === 'overlayPane' || name === undefined) {\n\t\t\treturn false;\n\t\t}\n\n\t\tvar renderer = this._paneRenderers[name];\n\t\tif (renderer === undefined) {\n\t\t\trenderer = this._createRenderer({pane: name});\n\t\t\tthis._paneRenderers[name] = renderer;\n\t\t}\n\t\treturn renderer;\n\t},\n\n\t_createRenderer: function (options) {\n\t\t// @namespace Map; @option preferCanvas: Boolean = false\n\t\t// Whether `Path`s should be rendered on a `Canvas` renderer.\n\t\t// By default, all `Path`s are rendered in a `SVG` renderer.\n\t\treturn (this.options.preferCanvas && canvas$1(options)) || svg$1(options);\n\t}\n});\n\n/*\n * L.Rectangle extends Polygon and creates a rectangle when passed a LatLngBounds object.\n */\n\n/*\n * @class Rectangle\n * @aka L.Rectangle\n * @inherits Polygon\n *\n * A class for drawing rectangle overlays on a map. Extends `Polygon`.\n *\n * @example\n *\n * ```js\n * // define rectangle geographical bounds\n * var bounds = [[54.559322, -5.767822], [56.1210604, -3.021240]];\n *\n * // create an orange rectangle\n * L.rectangle(bounds, {color: \"#ff7800\", weight: 1}).addTo(map);\n *\n * // zoom the map to the rectangle bounds\n * map.fitBounds(bounds);\n * ```\n *\n */\n\n\nvar Rectangle = Polygon.extend({\n\tinitialize: function (latLngBounds, options) {\n\t\tPolygon.prototype.initialize.call(this, this._boundsToLatLngs(latLngBounds), options);\n\t},\n\n\t// @method setBounds(latLngBounds: LatLngBounds): this\n\t// Redraws the rectangle with the passed bounds.\n\tsetBounds: function (latLngBounds) {\n\t\treturn this.setLatLngs(this._boundsToLatLngs(latLngBounds));\n\t},\n\n\t_boundsToLatLngs: function (latLngBounds) {\n\t\tlatLngBounds = toLatLngBounds(latLngBounds);\n\t\treturn [\n\t\t\tlatLngBounds.getSouthWest(),\n\t\t\tlatLngBounds.getNorthWest(),\n\t\t\tlatLngBounds.getNorthEast(),\n\t\t\tlatLngBounds.getSouthEast()\n\t\t];\n\t}\n});\n\n\n// @factory L.rectangle(latLngBounds: LatLngBounds, options?: Polyline options)\nfunction rectangle(latLngBounds, options) {\n\treturn new Rectangle(latLngBounds, options);\n}\n\nSVG.create = create$2;\nSVG.pointsToPath = pointsToPath;\n\nGeoJSON.geometryToLayer = geometryToLayer;\nGeoJSON.coordsToLatLng = coordsToLatLng;\nGeoJSON.coordsToLatLngs = coordsToLatLngs;\nGeoJSON.latLngToCoords = latLngToCoords;\nGeoJSON.latLngsToCoords = latLngsToCoords;\nGeoJSON.getFeature = getFeature;\nGeoJSON.asFeature = asFeature;\n\n/*\n * L.Handler.BoxZoom is used to add shift-drag zoom interaction to the map\n * (zoom to a selected bounding box), enabled by default.\n */\n\n// @namespace Map\n// @section Interaction Options\nMap.mergeOptions({\n\t// @option boxZoom: Boolean = true\n\t// Whether the map can be zoomed to a rectangular area specified by\n\t// dragging the mouse while pressing the shift key.\n\tboxZoom: true\n});\n\nvar BoxZoom = Handler.extend({\n\tinitialize: function (map) {\n\t\tthis._map = map;\n\t\tthis._container = map._container;\n\t\tthis._pane = map._panes.overlayPane;\n\t\tthis._resetStateTimeout = 0;\n\t\tmap.on('unload', this._destroy, this);\n\t},\n\n\taddHooks: function () {\n\t\ton(this._container, 'mousedown', this._onMouseDown, this);\n\t},\n\n\tremoveHooks: function () {\n\t\toff(this._container, 'mousedown', this._onMouseDown, this);\n\t},\n\n\tmoved: function () {\n\t\treturn this._moved;\n\t},\n\n\t_destroy: function () {\n\t\tremove(this._pane);\n\t\tdelete this._pane;\n\t},\n\n\t_resetState: function () {\n\t\tthis._resetStateTimeout = 0;\n\t\tthis._moved = false;\n\t},\n\n\t_clearDeferredResetState: function () {\n\t\tif (this._resetStateTimeout !== 0) {\n\t\t\tclearTimeout(this._resetStateTimeout);\n\t\t\tthis._resetStateTimeout = 0;\n\t\t}\n\t},\n\n\t_onMouseDown: function (e) {\n\t\tif (!e.shiftKey || ((e.which !== 1) && (e.button !== 1))) { return false; }\n\n\t\t// Clear the deferred resetState if it hasn't executed yet, otherwise it\n\t\t// will interrupt the interaction and orphan a box element in the container.\n\t\tthis._clearDeferredResetState();\n\t\tthis._resetState();\n\n\t\tdisableTextSelection();\n\t\tdisableImageDrag();\n\n\t\tthis._startPoint = this._map.mouseEventToContainerPoint(e);\n\n\t\ton(document, {\n\t\t\tcontextmenu: stop,\n\t\t\tmousemove: this._onMouseMove,\n\t\t\tmouseup: this._onMouseUp,\n\t\t\tkeydown: this._onKeyDown\n\t\t}, this);\n\t},\n\n\t_onMouseMove: function (e) {\n\t\tif (!this._moved) {\n\t\t\tthis._moved = true;\n\n\t\t\tthis._box = create$1('div', 'leaflet-zoom-box', this._container);\n\t\t\taddClass(this._container, 'leaflet-crosshair');\n\n\t\t\tthis._map.fire('boxzoomstart');\n\t\t}\n\n\t\tthis._point = this._map.mouseEventToContainerPoint(e);\n\n\t\tvar bounds = new Bounds(this._point, this._startPoint),\n\t\t size = bounds.getSize();\n\n\t\tsetPosition(this._box, bounds.min);\n\n\t\tthis._box.style.width = size.x + 'px';\n\t\tthis._box.style.height = size.y + 'px';\n\t},\n\n\t_finish: function () {\n\t\tif (this._moved) {\n\t\t\tremove(this._box);\n\t\t\tremoveClass(this._container, 'leaflet-crosshair');\n\t\t}\n\n\t\tenableTextSelection();\n\t\tenableImageDrag();\n\n\t\toff(document, {\n\t\t\tcontextmenu: stop,\n\t\t\tmousemove: this._onMouseMove,\n\t\t\tmouseup: this._onMouseUp,\n\t\t\tkeydown: this._onKeyDown\n\t\t}, this);\n\t},\n\n\t_onMouseUp: function (e) {\n\t\tif ((e.which !== 1) && (e.button !== 1)) { return; }\n\n\t\tthis._finish();\n\n\t\tif (!this._moved) { return; }\n\t\t// Postpone to next JS tick so internal click event handling\n\t\t// still see it as \"moved\".\n\t\tthis._clearDeferredResetState();\n\t\tthis._resetStateTimeout = setTimeout(bind(this._resetState, this), 0);\n\n\t\tvar bounds = new LatLngBounds(\n\t\t this._map.containerPointToLatLng(this._startPoint),\n\t\t this._map.containerPointToLatLng(this._point));\n\n\t\tthis._map\n\t\t\t.fitBounds(bounds)\n\t\t\t.fire('boxzoomend', {boxZoomBounds: bounds});\n\t},\n\n\t_onKeyDown: function (e) {\n\t\tif (e.keyCode === 27) {\n\t\t\tthis._finish();\n\t\t}\n\t}\n});\n\n// @section Handlers\n// @property boxZoom: Handler\n// Box (shift-drag with mouse) zoom handler.\nMap.addInitHook('addHandler', 'boxZoom', BoxZoom);\n\n/*\n * L.Handler.DoubleClickZoom is used to handle double-click zoom on the map, enabled by default.\n */\n\n// @namespace Map\n// @section Interaction Options\n\nMap.mergeOptions({\n\t// @option doubleClickZoom: Boolean|String = true\n\t// Whether the map can be zoomed in by double clicking on it and\n\t// zoomed out by double clicking while holding shift. If passed\n\t// `'center'`, double-click zoom will zoom to the center of the\n\t// view regardless of where the mouse was.\n\tdoubleClickZoom: true\n});\n\nvar DoubleClickZoom = Handler.extend({\n\taddHooks: function () {\n\t\tthis._map.on('dblclick', this._onDoubleClick, this);\n\t},\n\n\tremoveHooks: function () {\n\t\tthis._map.off('dblclick', this._onDoubleClick, this);\n\t},\n\n\t_onDoubleClick: function (e) {\n\t\tvar map = this._map,\n\t\t oldZoom = map.getZoom(),\n\t\t delta = map.options.zoomDelta,\n\t\t zoom = e.originalEvent.shiftKey ? oldZoom - delta : oldZoom + delta;\n\n\t\tif (map.options.doubleClickZoom === 'center') {\n\t\t\tmap.setZoom(zoom);\n\t\t} else {\n\t\t\tmap.setZoomAround(e.containerPoint, zoom);\n\t\t}\n\t}\n});\n\n// @section Handlers\n//\n// Map properties include interaction handlers that allow you to control\n// interaction behavior in runtime, enabling or disabling certain features such\n// as dragging or touch zoom (see `Handler` methods). For example:\n//\n// ```js\n// map.doubleClickZoom.disable();\n// ```\n//\n// @property doubleClickZoom: Handler\n// Double click zoom handler.\nMap.addInitHook('addHandler', 'doubleClickZoom', DoubleClickZoom);\n\n/*\n * L.Handler.MapDrag is used to make the map draggable (with panning inertia), enabled by default.\n */\n\n// @namespace Map\n// @section Interaction Options\nMap.mergeOptions({\n\t// @option dragging: Boolean = true\n\t// Whether the map be draggable with mouse/touch or not.\n\tdragging: true,\n\n\t// @section Panning Inertia Options\n\t// @option inertia: Boolean = *\n\t// If enabled, panning of the map will have an inertia effect where\n\t// the map builds momentum while dragging and continues moving in\n\t// the same direction for some time. Feels especially nice on touch\n\t// devices. Enabled by default unless running on old Android devices.\n\tinertia: !android23,\n\n\t// @option inertiaDeceleration: Number = 3000\n\t// The rate with which the inertial movement slows down, in pixels/second².\n\tinertiaDeceleration: 3400, // px/s^2\n\n\t// @option inertiaMaxSpeed: Number = Infinity\n\t// Max speed of the inertial movement, in pixels/second.\n\tinertiaMaxSpeed: Infinity, // px/s\n\n\t// @option easeLinearity: Number = 0.2\n\teaseLinearity: 0.2,\n\n\t// TODO refactor, move to CRS\n\t// @option worldCopyJump: Boolean = false\n\t// With this option enabled, the map tracks when you pan to another \"copy\"\n\t// of the world and seamlessly jumps to the original one so that all overlays\n\t// like markers and vector layers are still visible.\n\tworldCopyJump: false,\n\n\t// @option maxBoundsViscosity: Number = 0.0\n\t// If `maxBounds` is set, this option will control how solid the bounds\n\t// are when dragging the map around. The default value of `0.0` allows the\n\t// user to drag outside the bounds at normal speed, higher values will\n\t// slow down map dragging outside bounds, and `1.0` makes the bounds fully\n\t// solid, preventing the user from dragging outside the bounds.\n\tmaxBoundsViscosity: 0.0\n});\n\nvar Drag = Handler.extend({\n\taddHooks: function () {\n\t\tif (!this._draggable) {\n\t\t\tvar map = this._map;\n\n\t\t\tthis._draggable = new Draggable(map._mapPane, map._container);\n\n\t\t\tthis._draggable.on({\n\t\t\t\tdragstart: this._onDragStart,\n\t\t\t\tdrag: this._onDrag,\n\t\t\t\tdragend: this._onDragEnd\n\t\t\t}, this);\n\n\t\t\tthis._draggable.on('predrag', this._onPreDragLimit, this);\n\t\t\tif (map.options.worldCopyJump) {\n\t\t\t\tthis._draggable.on('predrag', this._onPreDragWrap, this);\n\t\t\t\tmap.on('zoomend', this._onZoomEnd, this);\n\n\t\t\t\tmap.whenReady(this._onZoomEnd, this);\n\t\t\t}\n\t\t}\n\t\taddClass(this._map._container, 'leaflet-grab leaflet-touch-drag');\n\t\tthis._draggable.enable();\n\t\tthis._positions = [];\n\t\tthis._times = [];\n\t},\n\n\tremoveHooks: function () {\n\t\tremoveClass(this._map._container, 'leaflet-grab');\n\t\tremoveClass(this._map._container, 'leaflet-touch-drag');\n\t\tthis._draggable.disable();\n\t},\n\n\tmoved: function () {\n\t\treturn this._draggable && this._draggable._moved;\n\t},\n\n\tmoving: function () {\n\t\treturn this._draggable && this._draggable._moving;\n\t},\n\n\t_onDragStart: function () {\n\t\tvar map = this._map;\n\n\t\tmap._stop();\n\t\tif (this._map.options.maxBounds && this._map.options.maxBoundsViscosity) {\n\t\t\tvar bounds = toLatLngBounds(this._map.options.maxBounds);\n\n\t\t\tthis._offsetLimit = toBounds(\n\t\t\t\tthis._map.latLngToContainerPoint(bounds.getNorthWest()).multiplyBy(-1),\n\t\t\t\tthis._map.latLngToContainerPoint(bounds.getSouthEast()).multiplyBy(-1)\n\t\t\t\t\t.add(this._map.getSize()));\n\n\t\t\tthis._viscosity = Math.min(1.0, Math.max(0.0, this._map.options.maxBoundsViscosity));\n\t\t} else {\n\t\t\tthis._offsetLimit = null;\n\t\t}\n\n\t\tmap\n\t\t .fire('movestart')\n\t\t .fire('dragstart');\n\n\t\tif (map.options.inertia) {\n\t\t\tthis._positions = [];\n\t\t\tthis._times = [];\n\t\t}\n\t},\n\n\t_onDrag: function (e) {\n\t\tif (this._map.options.inertia) {\n\t\t\tvar time = this._lastTime = +new Date(),\n\t\t\t pos = this._lastPos = this._draggable._absPos || this._draggable._newPos;\n\n\t\t\tthis._positions.push(pos);\n\t\t\tthis._times.push(time);\n\n\t\t\tthis._prunePositions(time);\n\t\t}\n\n\t\tthis._map\n\t\t .fire('move', e)\n\t\t .fire('drag', e);\n\t},\n\n\t_prunePositions: function (time) {\n\t\twhile (this._positions.length > 1 && time - this._times[0] > 50) {\n\t\t\tthis._positions.shift();\n\t\t\tthis._times.shift();\n\t\t}\n\t},\n\n\t_onZoomEnd: function () {\n\t\tvar pxCenter = this._map.getSize().divideBy(2),\n\t\t pxWorldCenter = this._map.latLngToLayerPoint([0, 0]);\n\n\t\tthis._initialWorldOffset = pxWorldCenter.subtract(pxCenter).x;\n\t\tthis._worldWidth = this._map.getPixelWorldBounds().getSize().x;\n\t},\n\n\t_viscousLimit: function (value, threshold) {\n\t\treturn value - (value - threshold) * this._viscosity;\n\t},\n\n\t_onPreDragLimit: function () {\n\t\tif (!this._viscosity || !this._offsetLimit) { return; }\n\n\t\tvar offset = this._draggable._newPos.subtract(this._draggable._startPos);\n\n\t\tvar limit = this._offsetLimit;\n\t\tif (offset.x < limit.min.x) { offset.x = this._viscousLimit(offset.x, limit.min.x); }\n\t\tif (offset.y < limit.min.y) { offset.y = this._viscousLimit(offset.y, limit.min.y); }\n\t\tif (offset.x > limit.max.x) { offset.x = this._viscousLimit(offset.x, limit.max.x); }\n\t\tif (offset.y > limit.max.y) { offset.y = this._viscousLimit(offset.y, limit.max.y); }\n\n\t\tthis._draggable._newPos = this._draggable._startPos.add(offset);\n\t},\n\n\t_onPreDragWrap: function () {\n\t\t// TODO refactor to be able to adjust map pane position after zoom\n\t\tvar worldWidth = this._worldWidth,\n\t\t halfWidth = Math.round(worldWidth / 2),\n\t\t dx = this._initialWorldOffset,\n\t\t x = this._draggable._newPos.x,\n\t\t newX1 = (x - halfWidth + dx) % worldWidth + halfWidth - dx,\n\t\t newX2 = (x + halfWidth + dx) % worldWidth - halfWidth - dx,\n\t\t newX = Math.abs(newX1 + dx) < Math.abs(newX2 + dx) ? newX1 : newX2;\n\n\t\tthis._draggable._absPos = this._draggable._newPos.clone();\n\t\tthis._draggable._newPos.x = newX;\n\t},\n\n\t_onDragEnd: function (e) {\n\t\tvar map = this._map,\n\t\t options = map.options,\n\n\t\t noInertia = !options.inertia || this._times.length < 2;\n\n\t\tmap.fire('dragend', e);\n\n\t\tif (noInertia) {\n\t\t\tmap.fire('moveend');\n\n\t\t} else {\n\t\t\tthis._prunePositions(+new Date());\n\n\t\t\tvar direction = this._lastPos.subtract(this._positions[0]),\n\t\t\t duration = (this._lastTime - this._times[0]) / 1000,\n\t\t\t ease = options.easeLinearity,\n\n\t\t\t speedVector = direction.multiplyBy(ease / duration),\n\t\t\t speed = speedVector.distanceTo([0, 0]),\n\n\t\t\t limitedSpeed = Math.min(options.inertiaMaxSpeed, speed),\n\t\t\t limitedSpeedVector = speedVector.multiplyBy(limitedSpeed / speed),\n\n\t\t\t decelerationDuration = limitedSpeed / (options.inertiaDeceleration * ease),\n\t\t\t offset = limitedSpeedVector.multiplyBy(-decelerationDuration / 2).round();\n\n\t\t\tif (!offset.x && !offset.y) {\n\t\t\t\tmap.fire('moveend');\n\n\t\t\t} else {\n\t\t\t\toffset = map._limitOffset(offset, map.options.maxBounds);\n\n\t\t\t\trequestAnimFrame(function () {\n\t\t\t\t\tmap.panBy(offset, {\n\t\t\t\t\t\tduration: decelerationDuration,\n\t\t\t\t\t\teaseLinearity: ease,\n\t\t\t\t\t\tnoMoveStart: true,\n\t\t\t\t\t\tanimate: true\n\t\t\t\t\t});\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t}\n});\n\n// @section Handlers\n// @property dragging: Handler\n// Map dragging handler (by both mouse and touch).\nMap.addInitHook('addHandler', 'dragging', Drag);\n\n/*\n * L.Map.Keyboard is handling keyboard interaction with the map, enabled by default.\n */\n\n// @namespace Map\n// @section Keyboard Navigation Options\nMap.mergeOptions({\n\t// @option keyboard: Boolean = true\n\t// Makes the map focusable and allows users to navigate the map with keyboard\n\t// arrows and `+`/`-` keys.\n\tkeyboard: true,\n\n\t// @option keyboardPanDelta: Number = 80\n\t// Amount of pixels to pan when pressing an arrow key.\n\tkeyboardPanDelta: 80\n});\n\nvar Keyboard = Handler.extend({\n\n\tkeyCodes: {\n\t\tleft: [37],\n\t\tright: [39],\n\t\tdown: [40],\n\t\tup: [38],\n\t\tzoomIn: [187, 107, 61, 171],\n\t\tzoomOut: [189, 109, 54, 173]\n\t},\n\n\tinitialize: function (map) {\n\t\tthis._map = map;\n\n\t\tthis._setPanDelta(map.options.keyboardPanDelta);\n\t\tthis._setZoomDelta(map.options.zoomDelta);\n\t},\n\n\taddHooks: function () {\n\t\tvar container = this._map._container;\n\n\t\t// make the container focusable by tabbing\n\t\tif (container.tabIndex <= 0) {\n\t\t\tcontainer.tabIndex = '0';\n\t\t}\n\n\t\ton(container, {\n\t\t\tfocus: this._onFocus,\n\t\t\tblur: this._onBlur,\n\t\t\tmousedown: this._onMouseDown\n\t\t}, this);\n\n\t\tthis._map.on({\n\t\t\tfocus: this._addHooks,\n\t\t\tblur: this._removeHooks\n\t\t}, this);\n\t},\n\n\tremoveHooks: function () {\n\t\tthis._removeHooks();\n\n\t\toff(this._map._container, {\n\t\t\tfocus: this._onFocus,\n\t\t\tblur: this._onBlur,\n\t\t\tmousedown: this._onMouseDown\n\t\t}, this);\n\n\t\tthis._map.off({\n\t\t\tfocus: this._addHooks,\n\t\t\tblur: this._removeHooks\n\t\t}, this);\n\t},\n\n\t_onMouseDown: function () {\n\t\tif (this._focused) { return; }\n\n\t\tvar body = document.body,\n\t\t docEl = document.documentElement,\n\t\t top = body.scrollTop || docEl.scrollTop,\n\t\t left = body.scrollLeft || docEl.scrollLeft;\n\n\t\tthis._map._container.focus();\n\n\t\twindow.scrollTo(left, top);\n\t},\n\n\t_onFocus: function () {\n\t\tthis._focused = true;\n\t\tthis._map.fire('focus');\n\t},\n\n\t_onBlur: function () {\n\t\tthis._focused = false;\n\t\tthis._map.fire('blur');\n\t},\n\n\t_setPanDelta: function (panDelta) {\n\t\tvar keys = this._panKeys = {},\n\t\t codes = this.keyCodes,\n\t\t i, len;\n\n\t\tfor (i = 0, len = codes.left.length; i < len; i++) {\n\t\t\tkeys[codes.left[i]] = [-1 * panDelta, 0];\n\t\t}\n\t\tfor (i = 0, len = codes.right.length; i < len; i++) {\n\t\t\tkeys[codes.right[i]] = [panDelta, 0];\n\t\t}\n\t\tfor (i = 0, len = codes.down.length; i < len; i++) {\n\t\t\tkeys[codes.down[i]] = [0, panDelta];\n\t\t}\n\t\tfor (i = 0, len = codes.up.length; i < len; i++) {\n\t\t\tkeys[codes.up[i]] = [0, -1 * panDelta];\n\t\t}\n\t},\n\n\t_setZoomDelta: function (zoomDelta) {\n\t\tvar keys = this._zoomKeys = {},\n\t\t codes = this.keyCodes,\n\t\t i, len;\n\n\t\tfor (i = 0, len = codes.zoomIn.length; i < len; i++) {\n\t\t\tkeys[codes.zoomIn[i]] = zoomDelta;\n\t\t}\n\t\tfor (i = 0, len = codes.zoomOut.length; i < len; i++) {\n\t\t\tkeys[codes.zoomOut[i]] = -zoomDelta;\n\t\t}\n\t},\n\n\t_addHooks: function () {\n\t\ton(document, 'keydown', this._onKeyDown, this);\n\t},\n\n\t_removeHooks: function () {\n\t\toff(document, 'keydown', this._onKeyDown, this);\n\t},\n\n\t_onKeyDown: function (e) {\n\t\tif (e.altKey || e.ctrlKey || e.metaKey) { return; }\n\n\t\tvar key = e.keyCode,\n\t\t map = this._map,\n\t\t offset;\n\n\t\tif (key in this._panKeys) {\n\t\t\tif (!map._panAnim || !map._panAnim._inProgress) {\n\t\t\t\toffset = this._panKeys[key];\n\t\t\t\tif (e.shiftKey) {\n\t\t\t\t\toffset = toPoint(offset).multiplyBy(3);\n\t\t\t\t}\n\n\t\t\t\tmap.panBy(offset);\n\n\t\t\t\tif (map.options.maxBounds) {\n\t\t\t\t\tmap.panInsideBounds(map.options.maxBounds);\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (key in this._zoomKeys) {\n\t\t\tmap.setZoom(map.getZoom() + (e.shiftKey ? 3 : 1) * this._zoomKeys[key]);\n\n\t\t} else if (key === 27 && map._popup && map._popup.options.closeOnEscapeKey) {\n\t\t\tmap.closePopup();\n\n\t\t} else {\n\t\t\treturn;\n\t\t}\n\n\t\tstop(e);\n\t}\n});\n\n// @section Handlers\n// @section Handlers\n// @property keyboard: Handler\n// Keyboard navigation handler.\nMap.addInitHook('addHandler', 'keyboard', Keyboard);\n\n/*\n * L.Handler.ScrollWheelZoom is used by L.Map to enable mouse scroll wheel zoom on the map.\n */\n\n// @namespace Map\n// @section Interaction Options\nMap.mergeOptions({\n\t// @section Mousewheel options\n\t// @option scrollWheelZoom: Boolean|String = true\n\t// Whether the map can be zoomed by using the mouse wheel. If passed `'center'`,\n\t// it will zoom to the center of the view regardless of where the mouse was.\n\tscrollWheelZoom: true,\n\n\t// @option wheelDebounceTime: Number = 40\n\t// Limits the rate at which a wheel can fire (in milliseconds). By default\n\t// user can't zoom via wheel more often than once per 40 ms.\n\twheelDebounceTime: 40,\n\n\t// @option wheelPxPerZoomLevel: Number = 60\n\t// How many scroll pixels (as reported by [L.DomEvent.getWheelDelta](#domevent-getwheeldelta))\n\t// mean a change of one full zoom level. Smaller values will make wheel-zooming\n\t// faster (and vice versa).\n\twheelPxPerZoomLevel: 60\n});\n\nvar ScrollWheelZoom = Handler.extend({\n\taddHooks: function () {\n\t\ton(this._map._container, 'mousewheel', this._onWheelScroll, this);\n\n\t\tthis._delta = 0;\n\t},\n\n\tremoveHooks: function () {\n\t\toff(this._map._container, 'mousewheel', this._onWheelScroll, this);\n\t},\n\n\t_onWheelScroll: function (e) {\n\t\tvar delta = getWheelDelta(e);\n\n\t\tvar debounce = this._map.options.wheelDebounceTime;\n\n\t\tthis._delta += delta;\n\t\tthis._lastMousePos = this._map.mouseEventToContainerPoint(e);\n\n\t\tif (!this._startTime) {\n\t\t\tthis._startTime = +new Date();\n\t\t}\n\n\t\tvar left = Math.max(debounce - (+new Date() - this._startTime), 0);\n\n\t\tclearTimeout(this._timer);\n\t\tthis._timer = setTimeout(bind(this._performZoom, this), left);\n\n\t\tstop(e);\n\t},\n\n\t_performZoom: function () {\n\t\tvar map = this._map,\n\t\t zoom = map.getZoom(),\n\t\t snap = this._map.options.zoomSnap || 0;\n\n\t\tmap._stop(); // stop panning and fly animations if any\n\n\t\t// map the delta with a sigmoid function to -4..4 range leaning on -1..1\n\t\tvar d2 = this._delta / (this._map.options.wheelPxPerZoomLevel * 4),\n\t\t d3 = 4 * Math.log(2 / (1 + Math.exp(-Math.abs(d2)))) / Math.LN2,\n\t\t d4 = snap ? Math.ceil(d3 / snap) * snap : d3,\n\t\t delta = map._limitZoom(zoom + (this._delta > 0 ? d4 : -d4)) - zoom;\n\n\t\tthis._delta = 0;\n\t\tthis._startTime = null;\n\n\t\tif (!delta) { return; }\n\n\t\tif (map.options.scrollWheelZoom === 'center') {\n\t\t\tmap.setZoom(zoom + delta);\n\t\t} else {\n\t\t\tmap.setZoomAround(this._lastMousePos, zoom + delta);\n\t\t}\n\t}\n});\n\n// @section Handlers\n// @property scrollWheelZoom: Handler\n// Scroll wheel zoom handler.\nMap.addInitHook('addHandler', 'scrollWheelZoom', ScrollWheelZoom);\n\n/*\n * L.Map.Tap is used to enable mobile hacks like quick taps and long hold.\n */\n\n// @namespace Map\n// @section Interaction Options\nMap.mergeOptions({\n\t// @section Touch interaction options\n\t// @option tap: Boolean = true\n\t// Enables mobile hacks for supporting instant taps (fixing 200ms click\n\t// delay on iOS/Android) and touch holds (fired as `contextmenu` events).\n\ttap: true,\n\n\t// @option tapTolerance: Number = 15\n\t// The max number of pixels a user can shift his finger during touch\n\t// for it to be considered a valid tap.\n\ttapTolerance: 15\n});\n\nvar Tap = Handler.extend({\n\taddHooks: function () {\n\t\ton(this._map._container, 'touchstart', this._onDown, this);\n\t},\n\n\tremoveHooks: function () {\n\t\toff(this._map._container, 'touchstart', this._onDown, this);\n\t},\n\n\t_onDown: function (e) {\n\t\tif (!e.touches) { return; }\n\n\t\tpreventDefault(e);\n\n\t\tthis._fireClick = true;\n\n\t\t// don't simulate click or track longpress if more than 1 touch\n\t\tif (e.touches.length > 1) {\n\t\t\tthis._fireClick = false;\n\t\t\tclearTimeout(this._holdTimeout);\n\t\t\treturn;\n\t\t}\n\n\t\tvar first = e.touches[0],\n\t\t el = first.target;\n\n\t\tthis._startPos = this._newPos = new Point(first.clientX, first.clientY);\n\n\t\t// if touching a link, highlight it\n\t\tif (el.tagName && el.tagName.toLowerCase() === 'a') {\n\t\t\taddClass(el, 'leaflet-active');\n\t\t}\n\n\t\t// simulate long hold but setting a timeout\n\t\tthis._holdTimeout = setTimeout(bind(function () {\n\t\t\tif (this._isTapValid()) {\n\t\t\t\tthis._fireClick = false;\n\t\t\t\tthis._onUp();\n\t\t\t\tthis._simulateEvent('contextmenu', first);\n\t\t\t}\n\t\t}, this), 1000);\n\n\t\tthis._simulateEvent('mousedown', first);\n\n\t\ton(document, {\n\t\t\ttouchmove: this._onMove,\n\t\t\ttouchend: this._onUp\n\t\t}, this);\n\t},\n\n\t_onUp: function (e) {\n\t\tclearTimeout(this._holdTimeout);\n\n\t\toff(document, {\n\t\t\ttouchmove: this._onMove,\n\t\t\ttouchend: this._onUp\n\t\t}, this);\n\n\t\tif (this._fireClick && e && e.changedTouches) {\n\n\t\t\tvar first = e.changedTouches[0],\n\t\t\t el = first.target;\n\n\t\t\tif (el && el.tagName && el.tagName.toLowerCase() === 'a') {\n\t\t\t\tremoveClass(el, 'leaflet-active');\n\t\t\t}\n\n\t\t\tthis._simulateEvent('mouseup', first);\n\n\t\t\t// simulate click if the touch didn't move too much\n\t\t\tif (this._isTapValid()) {\n\t\t\t\tthis._simulateEvent('click', first);\n\t\t\t}\n\t\t}\n\t},\n\n\t_isTapValid: function () {\n\t\treturn this._newPos.distanceTo(this._startPos) <= this._map.options.tapTolerance;\n\t},\n\n\t_onMove: function (e) {\n\t\tvar first = e.touches[0];\n\t\tthis._newPos = new Point(first.clientX, first.clientY);\n\t\tthis._simulateEvent('mousemove', first);\n\t},\n\n\t_simulateEvent: function (type, e) {\n\t\tvar simulatedEvent = document.createEvent('MouseEvents');\n\n\t\tsimulatedEvent._simulated = true;\n\t\te.target._simulatedClick = true;\n\n\t\tsimulatedEvent.initMouseEvent(\n\t\t type, true, true, window, 1,\n\t\t e.screenX, e.screenY,\n\t\t e.clientX, e.clientY,\n\t\t false, false, false, false, 0, null);\n\n\t\te.target.dispatchEvent(simulatedEvent);\n\t}\n});\n\n// @section Handlers\n// @property tap: Handler\n// Mobile touch hacks (quick tap and touch hold) handler.\nif (touch && !pointer) {\n\tMap.addInitHook('addHandler', 'tap', Tap);\n}\n\n/*\n * L.Handler.TouchZoom is used by L.Map to add pinch zoom on supported mobile browsers.\n */\n\n// @namespace Map\n// @section Interaction Options\nMap.mergeOptions({\n\t// @section Touch interaction options\n\t// @option touchZoom: Boolean|String = *\n\t// Whether the map can be zoomed by touch-dragging with two fingers. If\n\t// passed `'center'`, it will zoom to the center of the view regardless of\n\t// where the touch events (fingers) were. Enabled for touch-capable web\n\t// browsers except for old Androids.\n\ttouchZoom: touch && !android23,\n\n\t// @option bounceAtZoomLimits: Boolean = true\n\t// Set it to false if you don't want the map to zoom beyond min/max zoom\n\t// and then bounce back when pinch-zooming.\n\tbounceAtZoomLimits: true\n});\n\nvar TouchZoom = Handler.extend({\n\taddHooks: function () {\n\t\taddClass(this._map._container, 'leaflet-touch-zoom');\n\t\ton(this._map._container, 'touchstart', this._onTouchStart, this);\n\t},\n\n\tremoveHooks: function () {\n\t\tremoveClass(this._map._container, 'leaflet-touch-zoom');\n\t\toff(this._map._container, 'touchstart', this._onTouchStart, this);\n\t},\n\n\t_onTouchStart: function (e) {\n\t\tvar map = this._map;\n\t\tif (!e.touches || e.touches.length !== 2 || map._animatingZoom || this._zooming) { return; }\n\n\t\tvar p1 = map.mouseEventToContainerPoint(e.touches[0]),\n\t\t p2 = map.mouseEventToContainerPoint(e.touches[1]);\n\n\t\tthis._centerPoint = map.getSize()._divideBy(2);\n\t\tthis._startLatLng = map.containerPointToLatLng(this._centerPoint);\n\t\tif (map.options.touchZoom !== 'center') {\n\t\t\tthis._pinchStartLatLng = map.containerPointToLatLng(p1.add(p2)._divideBy(2));\n\t\t}\n\n\t\tthis._startDist = p1.distanceTo(p2);\n\t\tthis._startZoom = map.getZoom();\n\n\t\tthis._moved = false;\n\t\tthis._zooming = true;\n\n\t\tmap._stop();\n\n\t\ton(document, 'touchmove', this._onTouchMove, this);\n\t\ton(document, 'touchend', this._onTouchEnd, this);\n\n\t\tpreventDefault(e);\n\t},\n\n\t_onTouchMove: function (e) {\n\t\tif (!e.touches || e.touches.length !== 2 || !this._zooming) { return; }\n\n\t\tvar map = this._map,\n\t\t p1 = map.mouseEventToContainerPoint(e.touches[0]),\n\t\t p2 = map.mouseEventToContainerPoint(e.touches[1]),\n\t\t scale = p1.distanceTo(p2) / this._startDist;\n\n\t\tthis._zoom = map.getScaleZoom(scale, this._startZoom);\n\n\t\tif (!map.options.bounceAtZoomLimits && (\n\t\t\t(this._zoom < map.getMinZoom() && scale < 1) ||\n\t\t\t(this._zoom > map.getMaxZoom() && scale > 1))) {\n\t\t\tthis._zoom = map._limitZoom(this._zoom);\n\t\t}\n\n\t\tif (map.options.touchZoom === 'center') {\n\t\t\tthis._center = this._startLatLng;\n\t\t\tif (scale === 1) { return; }\n\t\t} else {\n\t\t\t// Get delta from pinch to center, so centerLatLng is delta applied to initial pinchLatLng\n\t\t\tvar delta = p1._add(p2)._divideBy(2)._subtract(this._centerPoint);\n\t\t\tif (scale === 1 && delta.x === 0 && delta.y === 0) { return; }\n\t\t\tthis._center = map.unproject(map.project(this._pinchStartLatLng, this._zoom).subtract(delta), this._zoom);\n\t\t}\n\n\t\tif (!this._moved) {\n\t\t\tmap._moveStart(true, false);\n\t\t\tthis._moved = true;\n\t\t}\n\n\t\tcancelAnimFrame(this._animRequest);\n\n\t\tvar moveFn = bind(map._move, map, this._center, this._zoom, {pinch: true, round: false});\n\t\tthis._animRequest = requestAnimFrame(moveFn, this, true);\n\n\t\tpreventDefault(e);\n\t},\n\n\t_onTouchEnd: function () {\n\t\tif (!this._moved || !this._zooming) {\n\t\t\tthis._zooming = false;\n\t\t\treturn;\n\t\t}\n\n\t\tthis._zooming = false;\n\t\tcancelAnimFrame(this._animRequest);\n\n\t\toff(document, 'touchmove', this._onTouchMove);\n\t\toff(document, 'touchend', this._onTouchEnd);\n\n\t\t// Pinch updates GridLayers' levels only when zoomSnap is off, so zoomSnap becomes noUpdate.\n\t\tif (this._map.options.zoomAnimation) {\n\t\t\tthis._map._animateZoom(this._center, this._map._limitZoom(this._zoom), true, this._map.options.zoomSnap);\n\t\t} else {\n\t\t\tthis._map._resetView(this._center, this._map._limitZoom(this._zoom));\n\t\t}\n\t}\n});\n\n// @section Handlers\n// @property touchZoom: Handler\n// Touch zoom handler.\nMap.addInitHook('addHandler', 'touchZoom', TouchZoom);\n\nMap.BoxZoom = BoxZoom;\nMap.DoubleClickZoom = DoubleClickZoom;\nMap.Drag = Drag;\nMap.Keyboard = Keyboard;\nMap.ScrollWheelZoom = ScrollWheelZoom;\nMap.Tap = Tap;\nMap.TouchZoom = TouchZoom;\n\nObject.freeze = freeze;\n\nexports.version = version;\nexports.Control = Control;\nexports.control = control;\nexports.Browser = Browser;\nexports.Evented = Evented;\nexports.Mixin = Mixin;\nexports.Util = Util;\nexports.Class = Class;\nexports.Handler = Handler;\nexports.extend = extend;\nexports.bind = bind;\nexports.stamp = stamp;\nexports.setOptions = setOptions;\nexports.DomEvent = DomEvent;\nexports.DomUtil = DomUtil;\nexports.PosAnimation = PosAnimation;\nexports.Draggable = Draggable;\nexports.LineUtil = LineUtil;\nexports.PolyUtil = PolyUtil;\nexports.Point = Point;\nexports.point = toPoint;\nexports.Bounds = Bounds;\nexports.bounds = toBounds;\nexports.Transformation = Transformation;\nexports.transformation = toTransformation;\nexports.Projection = index;\nexports.LatLng = LatLng;\nexports.latLng = toLatLng;\nexports.LatLngBounds = LatLngBounds;\nexports.latLngBounds = toLatLngBounds;\nexports.CRS = CRS;\nexports.GeoJSON = GeoJSON;\nexports.geoJSON = geoJSON;\nexports.geoJson = geoJson;\nexports.Layer = Layer;\nexports.LayerGroup = LayerGroup;\nexports.layerGroup = layerGroup;\nexports.FeatureGroup = FeatureGroup;\nexports.featureGroup = featureGroup;\nexports.ImageOverlay = ImageOverlay;\nexports.imageOverlay = imageOverlay;\nexports.VideoOverlay = VideoOverlay;\nexports.videoOverlay = videoOverlay;\nexports.DivOverlay = DivOverlay;\nexports.Popup = Popup;\nexports.popup = popup;\nexports.Tooltip = Tooltip;\nexports.tooltip = tooltip;\nexports.Icon = Icon;\nexports.icon = icon;\nexports.DivIcon = DivIcon;\nexports.divIcon = divIcon;\nexports.Marker = Marker;\nexports.marker = marker;\nexports.TileLayer = TileLayer;\nexports.tileLayer = tileLayer;\nexports.GridLayer = GridLayer;\nexports.gridLayer = gridLayer;\nexports.SVG = SVG;\nexports.svg = svg$1;\nexports.Renderer = Renderer;\nexports.Canvas = Canvas;\nexports.canvas = canvas$1;\nexports.Path = Path;\nexports.CircleMarker = CircleMarker;\nexports.circleMarker = circleMarker;\nexports.Circle = Circle;\nexports.circle = circle;\nexports.Polyline = Polyline;\nexports.polyline = polyline;\nexports.Polygon = Polygon;\nexports.polygon = polygon;\nexports.Rectangle = Rectangle;\nexports.rectangle = rectangle;\nexports.Map = Map;\nexports.map = createMap;\n\nvar oldL = window.L;\nexports.noConflict = function() {\n\twindow.L = oldL;\n\treturn this;\n}\n\n// Always export us to window global (see #2364)\nwindow.L = exports;\n\n})));\n//# sourceMappingURL=leaflet-src.js.map\n"
},
{
"id": 2,
"identifier": "/Users/user/Projects/orchid/node_modules/webpack/buildin/module.js",
"name": "(webpack)/buildin/module.js",
"index": 1,
"index2": 0,
"size": 497,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"issuerId": 79,
"issuerName": "./src/index.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 65,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/constants/modes.js",
"module": "./src/constants/modes.js",
"moduleName": "./src/constants/modes.js",
"type": "cjs require",
"userRequest": "module",
"loc": "1:0-57"
},
{
"moduleId": 66,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/utils/DomMarker.js",
"module": "./src/utils/DomMarker.js",
"moduleName": "./src/utils/DomMarker.js",
"type": "cjs require",
"userRequest": "module",
"loc": "1:0-57"
},
{
"moduleId": 79,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"module": "./src/index.js",
"moduleName": "./src/index.js",
"type": "cjs require",
"userRequest": "module",
"loc": "1:0-54"
},
{
"moduleId": 89,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"module": "./src/containers/App.jsx",
"moduleName": "./src/containers/App.jsx",
"type": "cjs require",
"userRequest": "module",
"loc": "1:0-57"
},
{
"moduleId": 124,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"module": "./src/modules/Editor.js",
"moduleName": "./src/modules/Editor.js",
"type": "cjs require",
"userRequest": "module",
"loc": "1:0-57"
},
{
"moduleId": 126,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Map.js",
"module": "./src/modules/Map.js",
"moduleName": "./src/modules/Map.js",
"type": "cjs require",
"userRequest": "module",
"loc": "1:0-57"
},
{
"moduleId": 127,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/constants/providers.js",
"module": "./src/constants/providers.js",
"moduleName": "./src/constants/providers.js",
"type": "cjs require",
"userRequest": "module",
"loc": "1:0-57"
},
{
"moduleId": 136,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Poly.js",
"module": "./src/modules/Poly.js",
"moduleName": "./src/modules/Poly.js",
"type": "cjs require",
"userRequest": "module",
"loc": "1:0-57"
},
{
"moduleId": 144,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Stickers.js",
"module": "./src/modules/Stickers.js",
"moduleName": "./src/modules/Stickers.js",
"type": "cjs require",
"userRequest": "module",
"loc": "1:0-57"
},
{
"moduleId": 145,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Sticker.js",
"module": "./src/modules/Sticker.js",
"moduleName": "./src/modules/Sticker.js",
"type": "cjs require",
"userRequest": "module",
"loc": "1:0-57"
},
{
"moduleId": 146,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"module": "./src/modules/Router.js",
"moduleName": "./src/modules/Router.js",
"type": "cjs require",
"userRequest": "module",
"loc": "1:0-57"
},
{
"moduleId": 166,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/config.js",
"module": "./src/config.js",
"moduleName": "./src/config.js",
"type": "cjs require",
"userRequest": "module",
"loc": "1:0-54"
},
{
"moduleId": 167,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Shotter.js",
"module": "./src/modules/Shotter.js",
"moduleName": "./src/modules/Shotter.js",
"type": "cjs require",
"userRequest": "module",
"loc": "1:0-57"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 1,
"source": "module.exports = function(module) {\n\tif (!module.webpackPolyfill) {\n\t\tmodule.deprecate = function() {};\n\t\tmodule.paths = [];\n\t\t// module.parent = undefined by default\n\t\tif (!module.children) module.children = [];\n\t\tObject.defineProperty(module, \"loaded\", {\n\t\t\tenumerable: true,\n\t\t\tget: function() {\n\t\t\t\treturn module.l;\n\t\t\t}\n\t\t});\n\t\tObject.defineProperty(module, \"id\", {\n\t\t\tenumerable: true,\n\t\t\tget: function() {\n\t\t\t\treturn module.i;\n\t\t\t}\n\t\t});\n\t\tmodule.webpackPolyfill = 1;\n\t}\n\treturn module;\n};\n"
},
{
"id": 3,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_core.js",
"name": "./node_modules/core-js/library/modules/_core.js",
"index": 24,
"index2": 17,
"size": 122,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/object/set-prototype-of.js",
"issuerId": 118,
"issuerName": "./node_modules/core-js/library/fn/object/set-prototype-of.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 116,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/inherits.js",
"name": "./node_modules/babel-runtime/helpers/inherits.js"
},
{
"id": 117,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/object/set-prototype-of.js",
"name": "./node_modules/babel-runtime/core-js/object/set-prototype-of.js"
},
{
"id": 118,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/object/set-prototype-of.js",
"name": "./node_modules/core-js/library/fn/object/set-prototype-of.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 10,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_export.js",
"module": "./node_modules/core-js/library/modules/_export.js",
"moduleName": "./node_modules/core-js/library/modules/_export.js",
"type": "cjs require",
"userRequest": "./_core",
"loc": "2:11-29"
},
{
"moduleId": 33,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_shared.js",
"module": "./node_modules/core-js/library/modules/_shared.js",
"moduleName": "./node_modules/core-js/library/modules/_shared.js",
"type": "cjs require",
"userRequest": "./_core",
"loc": "1:11-29"
},
{
"moduleId": 39,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_wks-define.js",
"module": "./node_modules/core-js/library/modules/_wks-define.js",
"moduleName": "./node_modules/core-js/library/modules/_wks-define.js",
"type": "cjs require",
"userRequest": "./_core",
"loc": "2:11-29"
},
{
"moduleId": 64,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/core.get-iterator-method.js",
"module": "./node_modules/core-js/library/modules/core.get-iterator-method.js",
"moduleName": "./node_modules/core-js/library/modules/core.get-iterator-method.js",
"type": "cjs require",
"userRequest": "./_core",
"loc": "4:17-35"
},
{
"moduleId": 90,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/object/define-property.js",
"module": "./node_modules/core-js/library/fn/object/define-property.js",
"moduleName": "./node_modules/core-js/library/fn/object/define-property.js",
"type": "cjs require",
"userRequest": "../../modules/_core",
"loc": "2:14-44"
},
{
"moduleId": 107,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/index.js",
"module": "./node_modules/core-js/library/fn/symbol/index.js",
"moduleName": "./node_modules/core-js/library/fn/symbol/index.js",
"type": "cjs require",
"userRequest": "../../modules/_core",
"loc": "5:17-47"
},
{
"moduleId": 118,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/object/set-prototype-of.js",
"module": "./node_modules/core-js/library/fn/object/set-prototype-of.js",
"moduleName": "./node_modules/core-js/library/fn/object/set-prototype-of.js",
"type": "cjs require",
"userRequest": "../../modules/_core",
"loc": "2:17-47"
},
{
"moduleId": 122,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/object/create.js",
"module": "./node_modules/core-js/library/fn/object/create.js",
"moduleName": "./node_modules/core-js/library/fn/object/create.js",
"type": "cjs require",
"userRequest": "../../modules/_core",
"loc": "2:14-44"
},
{
"moduleId": 140,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/core.is-iterable.js",
"module": "./node_modules/core-js/library/modules/core.is-iterable.js",
"moduleName": "./node_modules/core-js/library/modules/core.is-iterable.js",
"type": "cjs require",
"userRequest": "./_core",
"loc": "4:17-35"
},
{
"moduleId": 143,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/core.get-iterator.js",
"module": "./node_modules/core-js/library/modules/core.get-iterator.js",
"moduleName": "./node_modules/core-js/library/modules/core.get-iterator.js",
"type": "cjs require",
"userRequest": "./_core",
"loc": "3:17-35"
},
{
"moduleId": 149,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/object/assign.js",
"module": "./node_modules/core-js/library/fn/object/assign.js",
"moduleName": "./node_modules/core-js/library/fn/object/assign.js",
"type": "cjs require",
"userRequest": "../../modules/_core",
"loc": "2:17-47"
},
{
"moduleId": 154,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/array/from.js",
"module": "./node_modules/core-js/library/fn/array/from.js",
"moduleName": "./node_modules/core-js/library/fn/array/from.js",
"type": "cjs require",
"userRequest": "../../modules/_core",
"loc": "3:17-47"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 5,
"source": "var core = module.exports = { version: '2.5.7' };\nif (typeof __e == 'number') __e = core; // eslint-disable-line no-undef\n"
},
{
"id": 4,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/utils.js",
"name": "./node_modules/axios/lib/utils.js",
"index": 163,
"index2": 159,
"size": 7541,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/axios/lib/axios.js",
"issuerId": 169,
"issuerName": "./node_modules/axios/lib/axios.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 167,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Shotter.js",
"name": "./src/modules/Shotter.js"
},
{
"id": 168,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/index.js",
"name": "./node_modules/axios/index.js"
},
{
"id": 169,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/axios.js",
"name": "./node_modules/axios/lib/axios.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 46,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/axios/lib/defaults.js",
"module": "./node_modules/axios/lib/defaults.js",
"moduleName": "./node_modules/axios/lib/defaults.js",
"type": "cjs require",
"userRequest": "./utils",
"loc": "3:12-30"
},
{
"moduleId": 75,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/axios/lib/adapters/xhr.js",
"module": "./node_modules/axios/lib/adapters/xhr.js",
"moduleName": "./node_modules/axios/lib/adapters/xhr.js",
"type": "cjs require",
"userRequest": "./../utils",
"loc": "3:12-33"
},
{
"moduleId": 169,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/axios/lib/axios.js",
"module": "./node_modules/axios/lib/axios.js",
"moduleName": "./node_modules/axios/lib/axios.js",
"type": "cjs require",
"userRequest": "./utils",
"loc": "3:12-30"
},
{
"moduleId": 171,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/axios/lib/core/Axios.js",
"module": "./node_modules/axios/lib/core/Axios.js",
"moduleName": "./node_modules/axios/lib/core/Axios.js",
"type": "cjs require",
"userRequest": "./../utils",
"loc": "4:12-33"
},
{
"moduleId": 173,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/axios/lib/helpers/normalizeHeaderName.js",
"module": "./node_modules/axios/lib/helpers/normalizeHeaderName.js",
"moduleName": "./node_modules/axios/lib/helpers/normalizeHeaderName.js",
"type": "cjs require",
"userRequest": "../utils",
"loc": "3:12-31"
},
{
"moduleId": 176,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/axios/lib/helpers/buildURL.js",
"module": "./node_modules/axios/lib/helpers/buildURL.js",
"moduleName": "./node_modules/axios/lib/helpers/buildURL.js",
"type": "cjs require",
"userRequest": "./../utils",
"loc": "3:12-33"
},
{
"moduleId": 177,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/axios/lib/helpers/parseHeaders.js",
"module": "./node_modules/axios/lib/helpers/parseHeaders.js",
"moduleName": "./node_modules/axios/lib/helpers/parseHeaders.js",
"type": "cjs require",
"userRequest": "./../utils",
"loc": "3:12-33"
},
{
"moduleId": 178,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/axios/lib/helpers/isURLSameOrigin.js",
"module": "./node_modules/axios/lib/helpers/isURLSameOrigin.js",
"moduleName": "./node_modules/axios/lib/helpers/isURLSameOrigin.js",
"type": "cjs require",
"userRequest": "./../utils",
"loc": "3:12-33"
},
{
"moduleId": 180,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/axios/lib/helpers/cookies.js",
"module": "./node_modules/axios/lib/helpers/cookies.js",
"moduleName": "./node_modules/axios/lib/helpers/cookies.js",
"type": "cjs require",
"userRequest": "./../utils",
"loc": "3:12-33"
},
{
"moduleId": 181,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/axios/lib/core/InterceptorManager.js",
"module": "./node_modules/axios/lib/core/InterceptorManager.js",
"moduleName": "./node_modules/axios/lib/core/InterceptorManager.js",
"type": "cjs require",
"userRequest": "./../utils",
"loc": "3:12-33"
},
{
"moduleId": 182,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/axios/lib/core/dispatchRequest.js",
"module": "./node_modules/axios/lib/core/dispatchRequest.js",
"moduleName": "./node_modules/axios/lib/core/dispatchRequest.js",
"type": "cjs require",
"userRequest": "./../utils",
"loc": "3:12-33"
},
{
"moduleId": 183,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/axios/lib/core/transformData.js",
"module": "./node_modules/axios/lib/core/transformData.js",
"moduleName": "./node_modules/axios/lib/core/transformData.js",
"type": "cjs require",
"userRequest": "./../utils",
"loc": "3:12-33"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 6,
"source": "'use strict';\n\nvar bind = require('./helpers/bind');\nvar isBuffer = require('is-buffer');\n\n/*global toString:true*/\n\n// utils is a library of generic helper functions non-specific to axios\n\nvar toString = Object.prototype.toString;\n\n/**\n * Determine if a value is an Array\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an Array, otherwise false\n */\nfunction isArray(val) {\n return toString.call(val) === '[object Array]';\n}\n\n/**\n * Determine if a value is an ArrayBuffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an ArrayBuffer, otherwise false\n */\nfunction isArrayBuffer(val) {\n return toString.call(val) === '[object ArrayBuffer]';\n}\n\n/**\n * Determine if a value is a FormData\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an FormData, otherwise false\n */\nfunction isFormData(val) {\n return (typeof FormData !== 'undefined') && (val instanceof FormData);\n}\n\n/**\n * Determine if a value is a view on an ArrayBuffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false\n */\nfunction isArrayBufferView(val) {\n var result;\n if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {\n result = ArrayBuffer.isView(val);\n } else {\n result = (val) && (val.buffer) && (val.buffer instanceof ArrayBuffer);\n }\n return result;\n}\n\n/**\n * Determine if a value is a String\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a String, otherwise false\n */\nfunction isString(val) {\n return typeof val === 'string';\n}\n\n/**\n * Determine if a value is a Number\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Number, otherwise false\n */\nfunction isNumber(val) {\n return typeof val === 'number';\n}\n\n/**\n * Determine if a value is undefined\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if the value is undefined, otherwise false\n */\nfunction isUndefined(val) {\n return typeof val === 'undefined';\n}\n\n/**\n * Determine if a value is an Object\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an Object, otherwise false\n */\nfunction isObject(val) {\n return val !== null && typeof val === 'object';\n}\n\n/**\n * Determine if a value is a Date\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Date, otherwise false\n */\nfunction isDate(val) {\n return toString.call(val) === '[object Date]';\n}\n\n/**\n * Determine if a value is a File\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a File, otherwise false\n */\nfunction isFile(val) {\n return toString.call(val) === '[object File]';\n}\n\n/**\n * Determine if a value is a Blob\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Blob, otherwise false\n */\nfunction isBlob(val) {\n return toString.call(val) === '[object Blob]';\n}\n\n/**\n * Determine if a value is a Function\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Function, otherwise false\n */\nfunction isFunction(val) {\n return toString.call(val) === '[object Function]';\n}\n\n/**\n * Determine if a value is a Stream\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Stream, otherwise false\n */\nfunction isStream(val) {\n return isObject(val) && isFunction(val.pipe);\n}\n\n/**\n * Determine if a value is a URLSearchParams object\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a URLSearchParams object, otherwise false\n */\nfunction isURLSearchParams(val) {\n return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams;\n}\n\n/**\n * Trim excess whitespace off the beginning and end of a string\n *\n * @param {String} str The String to trim\n * @returns {String} The String freed of excess whitespace\n */\nfunction trim(str) {\n return str.replace(/^\\s*/, '').replace(/\\s*$/, '');\n}\n\n/**\n * Determine if we're running in a standard browser environment\n *\n * This allows axios to run in a web worker, and react-native.\n * Both environments support XMLHttpRequest, but not fully standard globals.\n *\n * web workers:\n * typeof window -> undefined\n * typeof document -> undefined\n *\n * react-native:\n * navigator.product -> 'ReactNative'\n */\nfunction isStandardBrowserEnv() {\n if (typeof navigator !== 'undefined' && navigator.product === 'ReactNative') {\n return false;\n }\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined'\n );\n}\n\n/**\n * Iterate over an Array or an Object invoking a function for each item.\n *\n * If `obj` is an Array callback will be called passing\n * the value, index, and complete array for each item.\n *\n * If 'obj' is an Object callback will be called passing\n * the value, key, and complete object for each property.\n *\n * @param {Object|Array} obj The object to iterate\n * @param {Function} fn The callback to invoke for each item\n */\nfunction forEach(obj, fn) {\n // Don't bother if no value provided\n if (obj === null || typeof obj === 'undefined') {\n return;\n }\n\n // Force an array if not already something iterable\n if (typeof obj !== 'object') {\n /*eslint no-param-reassign:0*/\n obj = [obj];\n }\n\n if (isArray(obj)) {\n // Iterate over array values\n for (var i = 0, l = obj.length; i < l; i++) {\n fn.call(null, obj[i], i, obj);\n }\n } else {\n // Iterate over object keys\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) {\n fn.call(null, obj[key], key, obj);\n }\n }\n }\n}\n\n/**\n * Accepts varargs expecting each argument to be an object, then\n * immutably merges the properties of each object and returns result.\n *\n * When multiple objects contain the same key the later object in\n * the arguments list will take precedence.\n *\n * Example:\n *\n * ```js\n * var result = merge({foo: 123}, {foo: 456});\n * console.log(result.foo); // outputs 456\n * ```\n *\n * @param {Object} obj1 Object to merge\n * @returns {Object} Result of all merge properties\n */\nfunction merge(/* obj1, obj2, obj3, ... */) {\n var result = {};\n function assignValue(val, key) {\n if (typeof result[key] === 'object' && typeof val === 'object') {\n result[key] = merge(result[key], val);\n } else {\n result[key] = val;\n }\n }\n\n for (var i = 0, l = arguments.length; i < l; i++) {\n forEach(arguments[i], assignValue);\n }\n return result;\n}\n\n/**\n * Extends object a by mutably adding to it the properties of object b.\n *\n * @param {Object} a The object to be extended\n * @param {Object} b The object to copy properties from\n * @param {Object} thisArg The object to bind function to\n * @return {Object} The resulting value of object a\n */\nfunction extend(a, b, thisArg) {\n forEach(b, function assignValue(val, key) {\n if (thisArg && typeof val === 'function') {\n a[key] = bind(val, thisArg);\n } else {\n a[key] = val;\n }\n });\n return a;\n}\n\nmodule.exports = {\n isArray: isArray,\n isArrayBuffer: isArrayBuffer,\n isBuffer: isBuffer,\n isFormData: isFormData,\n isArrayBufferView: isArrayBufferView,\n isString: isString,\n isNumber: isNumber,\n isObject: isObject,\n isUndefined: isUndefined,\n isDate: isDate,\n isFile: isFile,\n isBlob: isBlob,\n isFunction: isFunction,\n isStream: isStream,\n isURLSearchParams: isURLSearchParams,\n isStandardBrowserEnv: isStandardBrowserEnv,\n forEach: forEach,\n merge: merge,\n extend: extend,\n trim: trim\n};\n"
},
{
"id": 5,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_wks.js",
"name": "./node_modules/core-js/library/modules/_wks.js",
"index": 67,
"index2": 57,
"size": 358,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/web.dom.iterable.js",
"issuerId": 37,
"issuerName": "./node_modules/core-js/library/modules/web.dom.iterable.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 93,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"name": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"
},
{
"id": 54,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"name": "./node_modules/babel-runtime/helpers/typeof.js"
},
{
"id": 94,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol/iterator.js",
"name": "./node_modules/babel-runtime/core-js/symbol/iterator.js"
},
{
"id": 95,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/iterator.js",
"name": "./node_modules/core-js/library/fn/symbol/iterator.js"
},
{
"id": 37,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/web.dom.iterable.js",
"name": "./node_modules/core-js/library/modules/web.dom.iterable.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 35,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_set-to-string-tag.js",
"module": "./node_modules/core-js/library/modules/_set-to-string-tag.js",
"moduleName": "./node_modules/core-js/library/modules/_set-to-string-tag.js",
"type": "cjs require",
"userRequest": "./_wks",
"loc": "3:10-27"
},
{
"moduleId": 37,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/web.dom.iterable.js",
"module": "./node_modules/core-js/library/modules/web.dom.iterable.js",
"moduleName": "./node_modules/core-js/library/modules/web.dom.iterable.js",
"type": "cjs require",
"userRequest": "./_wks",
"loc": "5:20-37"
},
{
"moduleId": 38,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_wks-ext.js",
"module": "./node_modules/core-js/library/modules/_wks-ext.js",
"moduleName": "./node_modules/core-js/library/modules/_wks-ext.js",
"type": "cjs require",
"userRequest": "./_wks",
"loc": "1:12-29"
},
{
"moduleId": 55,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_iter-define.js",
"module": "./node_modules/core-js/library/modules/_iter-define.js",
"moduleName": "./node_modules/core-js/library/modules/_iter-define.js",
"type": "cjs require",
"userRequest": "./_wks",
"loc": "10:15-32"
},
{
"moduleId": 63,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_classof.js",
"module": "./node_modules/core-js/library/modules/_classof.js",
"moduleName": "./node_modules/core-js/library/modules/_classof.js",
"type": "cjs require",
"userRequest": "./_wks",
"loc": "3:10-27"
},
{
"moduleId": 64,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/core.get-iterator-method.js",
"module": "./node_modules/core-js/library/modules/core.get-iterator-method.js",
"moduleName": "./node_modules/core-js/library/modules/core.get-iterator-method.js",
"type": "cjs require",
"userRequest": "./_wks",
"loc": "2:15-32"
},
{
"moduleId": 97,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_iter-create.js",
"module": "./node_modules/core-js/library/modules/_iter-create.js",
"moduleName": "./node_modules/core-js/library/modules/_iter-create.js",
"type": "cjs require",
"userRequest": "./_wks",
"loc": "8:38-55"
},
{
"moduleId": 108,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"module": "./node_modules/core-js/library/modules/es6.symbol.js",
"moduleName": "./node_modules/core-js/library/modules/es6.symbol.js",
"type": "cjs require",
"userRequest": "./_wks",
"loc": "13:10-27"
},
{
"moduleId": 140,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/core.is-iterable.js",
"module": "./node_modules/core-js/library/modules/core.is-iterable.js",
"moduleName": "./node_modules/core-js/library/modules/core.is-iterable.js",
"type": "cjs require",
"userRequest": "./_wks",
"loc": "2:15-32"
},
{
"moduleId": 157,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_is-array-iter.js",
"module": "./node_modules/core-js/library/modules/_is-array-iter.js",
"moduleName": "./node_modules/core-js/library/modules/_is-array-iter.js",
"type": "cjs require",
"userRequest": "./_wks",
"loc": "3:15-32"
},
{
"moduleId": 159,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_iter-detect.js",
"module": "./node_modules/core-js/library/modules/_iter-detect.js",
"moduleName": "./node_modules/core-js/library/modules/_iter-detect.js",
"type": "cjs require",
"userRequest": "./_wks",
"loc": "1:15-32"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "var store = require('./_shared')('wks');\nvar uid = require('./_uid');\nvar Symbol = require('./_global').Symbol;\nvar USE_SYMBOL = typeof Symbol == 'function';\n\nvar $exports = module.exports = function (name) {\n return store[name] || (store[name] =\n USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));\n};\n\n$exports.store = store;\n"
},
{
"id": 6,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/classCallCheck.js",
"name": "./node_modules/babel-runtime/helpers/classCallCheck.js",
"index": 17,
"index2": 15,
"size": 208,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"issuerId": 89,
"issuerName": "./src/containers/App.jsx",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 89,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"module": "./src/containers/App.jsx",
"moduleName": "./src/containers/App.jsx",
"type": "cjs require",
"userRequest": "babel-runtime/helpers/classCallCheck",
"loc": "8:23-70"
},
{
"moduleId": 124,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"module": "./src/modules/Editor.js",
"moduleName": "./src/modules/Editor.js",
"type": "cjs require",
"userRequest": "babel-runtime/helpers/classCallCheck",
"loc": "12:23-70"
},
{
"moduleId": 126,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Map.js",
"module": "./src/modules/Map.js",
"moduleName": "./src/modules/Map.js",
"type": "cjs require",
"userRequest": "babel-runtime/helpers/classCallCheck",
"loc": "8:23-70"
},
{
"moduleId": 136,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Poly.js",
"module": "./src/modules/Poly.js",
"moduleName": "./src/modules/Poly.js",
"type": "cjs require",
"userRequest": "babel-runtime/helpers/classCallCheck",
"loc": "12:23-70"
},
{
"moduleId": 144,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Stickers.js",
"module": "./src/modules/Stickers.js",
"moduleName": "./src/modules/Stickers.js",
"type": "cjs require",
"userRequest": "babel-runtime/helpers/classCallCheck",
"loc": "8:23-70"
},
{
"moduleId": 145,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Sticker.js",
"module": "./src/modules/Sticker.js",
"moduleName": "./src/modules/Sticker.js",
"type": "cjs require",
"userRequest": "babel-runtime/helpers/classCallCheck",
"loc": "8:23-70"
},
{
"moduleId": 146,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"module": "./src/modules/Router.js",
"moduleName": "./src/modules/Router.js",
"type": "cjs require",
"userRequest": "babel-runtime/helpers/classCallCheck",
"loc": "16:23-70"
},
{
"moduleId": 167,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Shotter.js",
"module": "./src/modules/Shotter.js",
"moduleName": "./src/modules/Shotter.js",
"type": "cjs require",
"userRequest": "babel-runtime/helpers/classCallCheck",
"loc": "8:23-70"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 2,
"source": "\"use strict\";\n\nexports.__esModule = true;\n\nexports.default = function (instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n};"
},
{
"id": 7,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/createClass.js",
"name": "./node_modules/babel-runtime/helpers/createClass.js",
"index": 18,
"index2": 35,
"size": 904,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"issuerId": 89,
"issuerName": "./src/containers/App.jsx",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 89,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"module": "./src/containers/App.jsx",
"moduleName": "./src/containers/App.jsx",
"type": "cjs require",
"userRequest": "babel-runtime/helpers/createClass",
"loc": "12:20-64"
},
{
"moduleId": 124,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"module": "./src/modules/Editor.js",
"moduleName": "./src/modules/Editor.js",
"type": "cjs require",
"userRequest": "babel-runtime/helpers/createClass",
"loc": "16:20-64"
},
{
"moduleId": 126,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Map.js",
"module": "./src/modules/Map.js",
"moduleName": "./src/modules/Map.js",
"type": "cjs require",
"userRequest": "babel-runtime/helpers/createClass",
"loc": "12:20-64"
},
{
"moduleId": 136,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Poly.js",
"module": "./src/modules/Poly.js",
"moduleName": "./src/modules/Poly.js",
"type": "cjs require",
"userRequest": "babel-runtime/helpers/createClass",
"loc": "16:20-64"
},
{
"moduleId": 144,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Stickers.js",
"module": "./src/modules/Stickers.js",
"moduleName": "./src/modules/Stickers.js",
"type": "cjs require",
"userRequest": "babel-runtime/helpers/createClass",
"loc": "12:20-64"
},
{
"moduleId": 145,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Sticker.js",
"module": "./src/modules/Sticker.js",
"moduleName": "./src/modules/Sticker.js",
"type": "cjs require",
"userRequest": "babel-runtime/helpers/createClass",
"loc": "12:20-64"
},
{
"moduleId": 146,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"module": "./src/modules/Router.js",
"moduleName": "./src/modules/Router.js",
"type": "cjs require",
"userRequest": "babel-runtime/helpers/createClass",
"loc": "20:20-64"
},
{
"moduleId": 167,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Shotter.js",
"module": "./src/modules/Shotter.js",
"moduleName": "./src/modules/Shotter.js",
"type": "cjs require",
"userRequest": "babel-runtime/helpers/createClass",
"loc": "12:20-64"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 2,
"source": "\"use strict\";\n\nexports.__esModule = true;\n\nvar _defineProperty = require(\"../core-js/object/define-property\");\n\nvar _defineProperty2 = _interopRequireDefault(_defineProperty);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n (0, _defineProperty2.default)(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();"
},
{
"id": 8,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_global.js",
"name": "./node_modules/core-js/library/modules/_global.js",
"index": 23,
"index2": 16,
"size": 369,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/web.dom.iterable.js",
"issuerId": 37,
"issuerName": "./node_modules/core-js/library/modules/web.dom.iterable.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 93,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"name": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"
},
{
"id": 54,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"name": "./node_modules/babel-runtime/helpers/typeof.js"
},
{
"id": 94,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol/iterator.js",
"name": "./node_modules/babel-runtime/core-js/symbol/iterator.js"
},
{
"id": 95,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/iterator.js",
"name": "./node_modules/core-js/library/fn/symbol/iterator.js"
},
{
"id": 37,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/web.dom.iterable.js",
"name": "./node_modules/core-js/library/modules/web.dom.iterable.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 5,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_wks.js",
"module": "./node_modules/core-js/library/modules/_wks.js",
"moduleName": "./node_modules/core-js/library/modules/_wks.js",
"type": "cjs require",
"userRequest": "./_global",
"loc": "3:13-33"
},
{
"moduleId": 10,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_export.js",
"module": "./node_modules/core-js/library/modules/_export.js",
"moduleName": "./node_modules/core-js/library/modules/_export.js",
"type": "cjs require",
"userRequest": "./_global",
"loc": "1:13-33"
},
{
"moduleId": 33,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_shared.js",
"module": "./node_modules/core-js/library/modules/_shared.js",
"moduleName": "./node_modules/core-js/library/modules/_shared.js",
"type": "cjs require",
"userRequest": "./_global",
"loc": "2:13-33"
},
{
"moduleId": 37,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/web.dom.iterable.js",
"module": "./node_modules/core-js/library/modules/web.dom.iterable.js",
"moduleName": "./node_modules/core-js/library/modules/web.dom.iterable.js",
"type": "cjs require",
"userRequest": "./_global",
"loc": "2:13-33"
},
{
"moduleId": 39,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_wks-define.js",
"module": "./node_modules/core-js/library/modules/_wks-define.js",
"moduleName": "./node_modules/core-js/library/modules/_wks-define.js",
"type": "cjs require",
"userRequest": "./_global",
"loc": "1:13-33"
},
{
"moduleId": 53,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_dom-create.js",
"module": "./node_modules/core-js/library/modules/_dom-create.js",
"moduleName": "./node_modules/core-js/library/modules/_dom-create.js",
"type": "cjs require",
"userRequest": "./_global",
"loc": "2:15-35"
},
{
"moduleId": 101,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_html.js",
"module": "./node_modules/core-js/library/modules/_html.js",
"moduleName": "./node_modules/core-js/library/modules/_html.js",
"type": "cjs require",
"userRequest": "./_global",
"loc": "1:15-35"
},
{
"moduleId": 108,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"module": "./node_modules/core-js/library/modules/es6.symbol.js",
"moduleName": "./node_modules/core-js/library/modules/es6.symbol.js",
"type": "cjs require",
"userRequest": "./_global",
"loc": "3:13-33"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nvar global = module.exports = typeof window != 'undefined' && window.Math == Math\n ? window : typeof self != 'undefined' && self.Math == Math ? self\n // eslint-disable-next-line no-new-func\n : Function('return this')();\nif (typeof __g == 'number') __g = global; // eslint-disable-line no-undef\n"
},
{
"id": 9,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-dp.js",
"name": "./node_modules/core-js/library/modules/_object-dp.js",
"index": 28,
"index2": 27,
"size": 600,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.object.define-property.js",
"issuerId": 91,
"issuerName": "./node_modules/core-js/library/modules/es6.object.define-property.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 7,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/createClass.js",
"name": "./node_modules/babel-runtime/helpers/createClass.js"
},
{
"id": 51,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/object/define-property.js",
"name": "./node_modules/babel-runtime/core-js/object/define-property.js"
},
{
"id": 90,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/object/define-property.js",
"name": "./node_modules/core-js/library/fn/object/define-property.js"
},
{
"id": 91,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.object.define-property.js",
"name": "./node_modules/core-js/library/modules/es6.object.define-property.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 14,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_hide.js",
"module": "./node_modules/core-js/library/modules/_hide.js",
"moduleName": "./node_modules/core-js/library/modules/_hide.js",
"type": "cjs require",
"userRequest": "./_object-dp",
"loc": "1:9-32"
},
{
"moduleId": 35,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_set-to-string-tag.js",
"module": "./node_modules/core-js/library/modules/_set-to-string-tag.js",
"moduleName": "./node_modules/core-js/library/modules/_set-to-string-tag.js",
"type": "cjs require",
"userRequest": "./_object-dp",
"loc": "1:10-33"
},
{
"moduleId": 39,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_wks-define.js",
"module": "./node_modules/core-js/library/modules/_wks-define.js",
"moduleName": "./node_modules/core-js/library/modules/_wks-define.js",
"type": "cjs require",
"userRequest": "./_object-dp",
"loc": "5:21-44"
},
{
"moduleId": 91,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.object.define-property.js",
"module": "./node_modules/core-js/library/modules/es6.object.define-property.js",
"moduleName": "./node_modules/core-js/library/modules/es6.object.define-property.js",
"type": "cjs require",
"userRequest": "./_object-dp",
"loc": "3:88-111"
},
{
"moduleId": 98,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-dps.js",
"module": "./node_modules/core-js/library/modules/_object-dps.js",
"moduleName": "./node_modules/core-js/library/modules/_object-dps.js",
"type": "cjs require",
"userRequest": "./_object-dp",
"loc": "1:9-32"
},
{
"moduleId": 108,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"module": "./node_modules/core-js/library/modules/es6.symbol.js",
"moduleName": "./node_modules/core-js/library/modules/es6.symbol.js",
"type": "cjs require",
"userRequest": "./_object-dp",
"loc": "26:10-33"
},
{
"moduleId": 109,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_meta.js",
"module": "./node_modules/core-js/library/modules/_meta.js",
"moduleName": "./node_modules/core-js/library/modules/_meta.js",
"type": "cjs require",
"userRequest": "./_object-dp",
"loc": "4:14-37"
},
{
"moduleId": 158,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_create-property.js",
"module": "./node_modules/core-js/library/modules/_create-property.js",
"moduleName": "./node_modules/core-js/library/modules/_create-property.js",
"type": "cjs require",
"userRequest": "./_object-dp",
"loc": "2:22-45"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 6,
"source": "var anObject = require('./_an-object');\nvar IE8_DOM_DEFINE = require('./_ie8-dom-define');\nvar toPrimitive = require('./_to-primitive');\nvar dP = Object.defineProperty;\n\nexports.f = require('./_descriptors') ? Object.defineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPrimitive(P, true);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return dP(O, P, Attributes);\n } catch (e) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n"
},
{
"id": 10,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_export.js",
"name": "./node_modules/core-js/library/modules/_export.js",
"index": 22,
"index2": 31,
"size": 2349,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.object.set-prototype-of.js",
"issuerId": 119,
"issuerName": "./node_modules/core-js/library/modules/es6.object.set-prototype-of.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 116,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/inherits.js",
"name": "./node_modules/babel-runtime/helpers/inherits.js"
},
{
"id": 117,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/object/set-prototype-of.js",
"name": "./node_modules/babel-runtime/core-js/object/set-prototype-of.js"
},
{
"id": 118,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/object/set-prototype-of.js",
"name": "./node_modules/core-js/library/fn/object/set-prototype-of.js"
},
{
"id": 119,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.object.set-prototype-of.js",
"name": "./node_modules/core-js/library/modules/es6.object.set-prototype-of.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 55,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_iter-define.js",
"module": "./node_modules/core-js/library/modules/_iter-define.js",
"moduleName": "./node_modules/core-js/library/modules/_iter-define.js",
"type": "cjs require",
"userRequest": "./_export",
"loc": "3:14-34"
},
{
"moduleId": 91,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.object.define-property.js",
"module": "./node_modules/core-js/library/modules/es6.object.define-property.js",
"moduleName": "./node_modules/core-js/library/modules/es6.object.define-property.js",
"type": "cjs require",
"userRequest": "./_export",
"loc": "1:14-34"
},
{
"moduleId": 108,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"module": "./node_modules/core-js/library/modules/es6.symbol.js",
"moduleName": "./node_modules/core-js/library/modules/es6.symbol.js",
"type": "cjs require",
"userRequest": "./_export",
"loc": "6:14-34"
},
{
"moduleId": 119,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.object.set-prototype-of.js",
"module": "./node_modules/core-js/library/modules/es6.object.set-prototype-of.js",
"moduleName": "./node_modules/core-js/library/modules/es6.object.set-prototype-of.js",
"type": "cjs require",
"userRequest": "./_export",
"loc": "2:14-34"
},
{
"moduleId": 123,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.object.create.js",
"module": "./node_modules/core-js/library/modules/es6.object.create.js",
"moduleName": "./node_modules/core-js/library/modules/es6.object.create.js",
"type": "cjs require",
"userRequest": "./_export",
"loc": "1:14-34"
},
{
"moduleId": 150,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.object.assign.js",
"module": "./node_modules/core-js/library/modules/es6.object.assign.js",
"moduleName": "./node_modules/core-js/library/modules/es6.object.assign.js",
"type": "cjs require",
"userRequest": "./_export",
"loc": "2:14-34"
},
{
"moduleId": 155,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.array.from.js",
"module": "./node_modules/core-js/library/modules/es6.array.from.js",
"moduleName": "./node_modules/core-js/library/modules/es6.array.from.js",
"type": "cjs require",
"userRequest": "./_export",
"loc": "3:14-34"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 6,
"source": "var global = require('./_global');\nvar core = require('./_core');\nvar ctx = require('./_ctx');\nvar hide = require('./_hide');\nvar has = require('./_has');\nvar PROTOTYPE = 'prototype';\n\nvar $export = function (type, name, source) {\n var IS_FORCED = type & $export.F;\n var IS_GLOBAL = type & $export.G;\n var IS_STATIC = type & $export.S;\n var IS_PROTO = type & $export.P;\n var IS_BIND = type & $export.B;\n var IS_WRAP = type & $export.W;\n var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});\n var expProto = exports[PROTOTYPE];\n var target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE];\n var key, own, out;\n if (IS_GLOBAL) source = name;\n for (key in source) {\n // contains in native\n own = !IS_FORCED && target && target[key] !== undefined;\n if (own && has(exports, key)) continue;\n // export native or passed\n out = own ? target[key] : source[key];\n // prevent global pollution for namespaces\n exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key]\n // bind timers to global for call from export context\n : IS_BIND && own ? ctx(out, global)\n // wrap global constructors for prevent change them in library\n : IS_WRAP && target[key] == out ? (function (C) {\n var F = function (a, b, c) {\n if (this instanceof C) {\n switch (arguments.length) {\n case 0: return new C();\n case 1: return new C(a);\n case 2: return new C(a, b);\n } return new C(a, b, c);\n } return C.apply(this, arguments);\n };\n F[PROTOTYPE] = C[PROTOTYPE];\n return F;\n // make static versions for prototype methods\n })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;\n // export proto methods to core.%CONSTRUCTOR%.methods.%NAME%\n if (IS_PROTO) {\n (exports.virtual || (exports.virtual = {}))[key] = out;\n // export proto methods to core.%CONSTRUCTOR%.prototype.%NAME%\n if (type & $export.R && expProto && !expProto[key]) hide(expProto, key, out);\n }\n }\n};\n// type bitmap\n$export.F = 1; // forced\n$export.G = 2; // global\n$export.S = 4; // static\n$export.P = 8; // proto\n$export.B = 16; // bind\n$export.W = 32; // wrap\n$export.U = 64; // safe\n$export.R = 128; // real proto method for `library`\nmodule.exports = $export;\n"
},
{
"id": 11,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_an-object.js",
"name": "./node_modules/core-js/library/modules/_an-object.js",
"index": 29,
"index2": 21,
"size": 154,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/core.get-iterator.js",
"issuerId": 143,
"issuerName": "./node_modules/core-js/library/modules/core.get-iterator.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 136,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Poly.js",
"name": "./src/modules/Poly.js"
},
{
"id": 137,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/slicedToArray.js",
"name": "./node_modules/babel-runtime/helpers/slicedToArray.js"
},
{
"id": 141,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/get-iterator.js",
"name": "./node_modules/babel-runtime/core-js/get-iterator.js"
},
{
"id": 142,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/get-iterator.js",
"name": "./node_modules/core-js/library/fn/get-iterator.js"
},
{
"id": 143,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/core.get-iterator.js",
"name": "./node_modules/core-js/library/modules/core.get-iterator.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 9,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-dp.js",
"module": "./node_modules/core-js/library/modules/_object-dp.js",
"moduleName": "./node_modules/core-js/library/modules/_object-dp.js",
"type": "cjs require",
"userRequest": "./_an-object",
"loc": "1:15-38"
},
{
"moduleId": 30,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-create.js",
"module": "./node_modules/core-js/library/modules/_object-create.js",
"moduleName": "./node_modules/core-js/library/modules/_object-create.js",
"type": "cjs require",
"userRequest": "./_an-object",
"loc": "2:15-38"
},
{
"moduleId": 98,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-dps.js",
"module": "./node_modules/core-js/library/modules/_object-dps.js",
"moduleName": "./node_modules/core-js/library/modules/_object-dps.js",
"type": "cjs require",
"userRequest": "./_an-object",
"loc": "2:15-38"
},
{
"moduleId": 108,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"module": "./node_modules/core-js/library/modules/es6.symbol.js",
"moduleName": "./node_modules/core-js/library/modules/es6.symbol.js",
"type": "cjs require",
"userRequest": "./_an-object",
"loc": "18:15-38"
},
{
"moduleId": 120,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_set-proto.js",
"module": "./node_modules/core-js/library/modules/_set-proto.js",
"moduleName": "./node_modules/core-js/library/modules/_set-proto.js",
"type": "cjs require",
"userRequest": "./_an-object",
"loc": "4:15-38"
},
{
"moduleId": 143,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/core.get-iterator.js",
"module": "./node_modules/core-js/library/modules/core.get-iterator.js",
"moduleName": "./node_modules/core-js/library/modules/core.get-iterator.js",
"type": "cjs require",
"userRequest": "./_an-object",
"loc": "1:15-38"
},
{
"moduleId": 156,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_iter-call.js",
"module": "./node_modules/core-js/library/modules/_iter-call.js",
"moduleName": "./node_modules/core-js/library/modules/_iter-call.js",
"type": "cjs require",
"userRequest": "./_an-object",
"loc": "2:15-38"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "var isObject = require('./_is-object');\nmodule.exports = function (it) {\n if (!isObject(it)) throw TypeError(it + ' is not an object!');\n return it;\n};\n"
},
{
"id": 12,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_descriptors.js",
"name": "./node_modules/core-js/library/modules/_descriptors.js",
"index": 32,
"index2": 23,
"size": 184,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.object.define-property.js",
"issuerId": 91,
"issuerName": "./node_modules/core-js/library/modules/es6.object.define-property.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 7,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/createClass.js",
"name": "./node_modules/babel-runtime/helpers/createClass.js"
},
{
"id": 51,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/object/define-property.js",
"name": "./node_modules/babel-runtime/core-js/object/define-property.js"
},
{
"id": 90,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/object/define-property.js",
"name": "./node_modules/core-js/library/fn/object/define-property.js"
},
{
"id": 91,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.object.define-property.js",
"name": "./node_modules/core-js/library/modules/es6.object.define-property.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 9,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-dp.js",
"module": "./node_modules/core-js/library/modules/_object-dp.js",
"moduleName": "./node_modules/core-js/library/modules/_object-dp.js",
"type": "cjs require",
"userRequest": "./_descriptors",
"loc": "6:12-37"
},
{
"moduleId": 14,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_hide.js",
"module": "./node_modules/core-js/library/modules/_hide.js",
"moduleName": "./node_modules/core-js/library/modules/_hide.js",
"type": "cjs require",
"userRequest": "./_descriptors",
"loc": "3:17-42"
},
{
"moduleId": 52,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_ie8-dom-define.js",
"module": "./node_modules/core-js/library/modules/_ie8-dom-define.js",
"moduleName": "./node_modules/core-js/library/modules/_ie8-dom-define.js",
"type": "cjs require",
"userRequest": "./_descriptors",
"loc": "1:18-43"
},
{
"moduleId": 61,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-gopd.js",
"module": "./node_modules/core-js/library/modules/_object-gopd.js",
"moduleName": "./node_modules/core-js/library/modules/_object-gopd.js",
"type": "cjs require",
"userRequest": "./_descriptors",
"loc": "9:12-37"
},
{
"moduleId": 91,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.object.define-property.js",
"module": "./node_modules/core-js/library/modules/es6.object.define-property.js",
"moduleName": "./node_modules/core-js/library/modules/es6.object.define-property.js",
"type": "cjs require",
"userRequest": "./_descriptors",
"loc": "3:33-58"
},
{
"moduleId": 98,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-dps.js",
"module": "./node_modules/core-js/library/modules/_object-dps.js",
"moduleName": "./node_modules/core-js/library/modules/_object-dps.js",
"type": "cjs require",
"userRequest": "./_descriptors",
"loc": "5:17-42"
},
{
"moduleId": 108,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"module": "./node_modules/core-js/library/modules/es6.symbol.js",
"moduleName": "./node_modules/core-js/library/modules/es6.symbol.js",
"type": "cjs require",
"userRequest": "./_descriptors",
"loc": "5:18-43"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 6,
"source": "// Thank's IE8 for his funny defineProperty\nmodule.exports = !require('./_fails')(function () {\n return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;\n});\n"
},
{
"id": 13,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_has.js",
"name": "./node_modules/core-js/library/modules/_has.js",
"index": 37,
"index2": 30,
"size": 120,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_export.js",
"issuerId": 10,
"issuerName": "./node_modules/core-js/library/modules/_export.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 116,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/inherits.js",
"name": "./node_modules/babel-runtime/helpers/inherits.js"
},
{
"id": 117,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/object/set-prototype-of.js",
"name": "./node_modules/babel-runtime/core-js/object/set-prototype-of.js"
},
{
"id": 118,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/object/set-prototype-of.js",
"name": "./node_modules/core-js/library/fn/object/set-prototype-of.js"
},
{
"id": 119,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.object.set-prototype-of.js",
"name": "./node_modules/core-js/library/modules/es6.object.set-prototype-of.js"
},
{
"id": 10,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_export.js",
"name": "./node_modules/core-js/library/modules/_export.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 10,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_export.js",
"module": "./node_modules/core-js/library/modules/_export.js",
"moduleName": "./node_modules/core-js/library/modules/_export.js",
"type": "cjs require",
"userRequest": "./_has",
"loc": "5:10-27"
},
{
"moduleId": 35,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_set-to-string-tag.js",
"module": "./node_modules/core-js/library/modules/_set-to-string-tag.js",
"moduleName": "./node_modules/core-js/library/modules/_set-to-string-tag.js",
"type": "cjs require",
"userRequest": "./_has",
"loc": "2:10-27"
},
{
"moduleId": 57,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-keys-internal.js",
"module": "./node_modules/core-js/library/modules/_object-keys-internal.js",
"moduleName": "./node_modules/core-js/library/modules/_object-keys-internal.js",
"type": "cjs require",
"userRequest": "./_has",
"loc": "1:10-27"
},
{
"moduleId": 61,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-gopd.js",
"module": "./node_modules/core-js/library/modules/_object-gopd.js",
"moduleName": "./node_modules/core-js/library/modules/_object-gopd.js",
"type": "cjs require",
"userRequest": "./_has",
"loc": "5:10-27"
},
{
"moduleId": 102,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-gpo.js",
"module": "./node_modules/core-js/library/modules/_object-gpo.js",
"moduleName": "./node_modules/core-js/library/modules/_object-gpo.js",
"type": "cjs require",
"userRequest": "./_has",
"loc": "2:10-27"
},
{
"moduleId": 108,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"module": "./node_modules/core-js/library/modules/es6.symbol.js",
"moduleName": "./node_modules/core-js/library/modules/es6.symbol.js",
"type": "cjs require",
"userRequest": "./_has",
"loc": "4:10-27"
},
{
"moduleId": 109,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_meta.js",
"module": "./node_modules/core-js/library/modules/_meta.js",
"moduleName": "./node_modules/core-js/library/modules/_meta.js",
"type": "cjs require",
"userRequest": "./_has",
"loc": "3:10-27"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "var hasOwnProperty = {}.hasOwnProperty;\nmodule.exports = function (it, key) {\n return hasOwnProperty.call(it, key);\n};\n"
},
{
"id": 14,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_hide.js",
"name": "./node_modules/core-js/library/modules/_hide.js",
"index": 27,
"index2": 29,
"size": 286,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/web.dom.iterable.js",
"issuerId": 37,
"issuerName": "./node_modules/core-js/library/modules/web.dom.iterable.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 93,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"name": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"
},
{
"id": 54,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"name": "./node_modules/babel-runtime/helpers/typeof.js"
},
{
"id": 94,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol/iterator.js",
"name": "./node_modules/babel-runtime/core-js/symbol/iterator.js"
},
{
"id": 95,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/iterator.js",
"name": "./node_modules/core-js/library/fn/symbol/iterator.js"
},
{
"id": 37,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/web.dom.iterable.js",
"name": "./node_modules/core-js/library/modules/web.dom.iterable.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 10,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_export.js",
"module": "./node_modules/core-js/library/modules/_export.js",
"moduleName": "./node_modules/core-js/library/modules/_export.js",
"type": "cjs require",
"userRequest": "./_hide",
"loc": "4:11-29"
},
{
"moduleId": 37,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/web.dom.iterable.js",
"module": "./node_modules/core-js/library/modules/web.dom.iterable.js",
"moduleName": "./node_modules/core-js/library/modules/web.dom.iterable.js",
"type": "cjs require",
"userRequest": "./_hide",
"loc": "3:11-29"
},
{
"moduleId": 55,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_iter-define.js",
"module": "./node_modules/core-js/library/modules/_iter-define.js",
"moduleName": "./node_modules/core-js/library/modules/_iter-define.js",
"type": "cjs require",
"userRequest": "./_hide",
"loc": "5:11-29"
},
{
"moduleId": 56,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_redefine.js",
"module": "./node_modules/core-js/library/modules/_redefine.js",
"moduleName": "./node_modules/core-js/library/modules/_redefine.js",
"type": "cjs require",
"userRequest": "./_hide",
"loc": "1:17-35"
},
{
"moduleId": 97,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_iter-create.js",
"module": "./node_modules/core-js/library/modules/_iter-create.js",
"moduleName": "./node_modules/core-js/library/modules/_iter-create.js",
"type": "cjs require",
"userRequest": "./_hide",
"loc": "8:0-18"
},
{
"moduleId": 108,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"module": "./node_modules/core-js/library/modules/es6.symbol.js",
"moduleName": "./node_modules/core-js/library/modules/es6.symbol.js",
"type": "cjs require",
"userRequest": "./_hide",
"loc": "228:36-54"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "var dP = require('./_object-dp');\nvar createDesc = require('./_property-desc');\nmodule.exports = require('./_descriptors') ? function (object, key, value) {\n return dP.f(object, key, createDesc(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n"
},
{
"id": 15,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_is-object.js",
"name": "./node_modules/core-js/library/modules/_is-object.js",
"index": 30,
"index2": 20,
"size": 110,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_set-proto.js",
"issuerId": 120,
"issuerName": "./node_modules/core-js/library/modules/_set-proto.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 116,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/inherits.js",
"name": "./node_modules/babel-runtime/helpers/inherits.js"
},
{
"id": 117,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/object/set-prototype-of.js",
"name": "./node_modules/babel-runtime/core-js/object/set-prototype-of.js"
},
{
"id": 118,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/object/set-prototype-of.js",
"name": "./node_modules/core-js/library/fn/object/set-prototype-of.js"
},
{
"id": 119,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.object.set-prototype-of.js",
"name": "./node_modules/core-js/library/modules/es6.object.set-prototype-of.js"
},
{
"id": 120,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_set-proto.js",
"name": "./node_modules/core-js/library/modules/_set-proto.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 11,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_an-object.js",
"module": "./node_modules/core-js/library/modules/_an-object.js",
"moduleName": "./node_modules/core-js/library/modules/_an-object.js",
"type": "cjs require",
"userRequest": "./_is-object",
"loc": "1:15-38"
},
{
"moduleId": 27,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_to-primitive.js",
"module": "./node_modules/core-js/library/modules/_to-primitive.js",
"moduleName": "./node_modules/core-js/library/modules/_to-primitive.js",
"type": "cjs require",
"userRequest": "./_is-object",
"loc": "2:15-38"
},
{
"moduleId": 53,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_dom-create.js",
"module": "./node_modules/core-js/library/modules/_dom-create.js",
"moduleName": "./node_modules/core-js/library/modules/_dom-create.js",
"type": "cjs require",
"userRequest": "./_is-object",
"loc": "1:15-38"
},
{
"moduleId": 108,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"module": "./node_modules/core-js/library/modules/es6.symbol.js",
"moduleName": "./node_modules/core-js/library/modules/es6.symbol.js",
"type": "cjs require",
"userRequest": "./_is-object",
"loc": "19:15-38"
},
{
"moduleId": 109,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_meta.js",
"module": "./node_modules/core-js/library/modules/_meta.js",
"moduleName": "./node_modules/core-js/library/modules/_meta.js",
"type": "cjs require",
"userRequest": "./_is-object",
"loc": "2:15-38"
},
{
"moduleId": 120,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_set-proto.js",
"module": "./node_modules/core-js/library/modules/_set-proto.js",
"moduleName": "./node_modules/core-js/library/modules/_set-proto.js",
"type": "cjs require",
"userRequest": "./_is-object",
"loc": "3:15-38"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "module.exports = function (it) {\n return typeof it === 'object' ? it !== null : typeof it === 'function';\n};\n"
},
{
"id": 16,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_iterators.js",
"name": "./node_modules/core-js/library/modules/_iterators.js",
"index": 49,
"index2": 41,
"size": 21,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/web.dom.iterable.js",
"issuerId": 37,
"issuerName": "./node_modules/core-js/library/modules/web.dom.iterable.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 93,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"name": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"
},
{
"id": 54,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"name": "./node_modules/babel-runtime/helpers/typeof.js"
},
{
"id": 94,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol/iterator.js",
"name": "./node_modules/babel-runtime/core-js/symbol/iterator.js"
},
{
"id": 95,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/iterator.js",
"name": "./node_modules/core-js/library/fn/symbol/iterator.js"
},
{
"id": 37,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/web.dom.iterable.js",
"name": "./node_modules/core-js/library/modules/web.dom.iterable.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 37,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/web.dom.iterable.js",
"module": "./node_modules/core-js/library/modules/web.dom.iterable.js",
"moduleName": "./node_modules/core-js/library/modules/web.dom.iterable.js",
"type": "cjs require",
"userRequest": "./_iterators",
"loc": "4:16-39"
},
{
"moduleId": 55,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_iter-define.js",
"module": "./node_modules/core-js/library/modules/_iter-define.js",
"moduleName": "./node_modules/core-js/library/modules/_iter-define.js",
"type": "cjs require",
"userRequest": "./_iterators",
"loc": "6:16-39"
},
{
"moduleId": 64,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/core.get-iterator-method.js",
"module": "./node_modules/core-js/library/modules/core.get-iterator-method.js",
"moduleName": "./node_modules/core-js/library/modules/core.get-iterator-method.js",
"type": "cjs require",
"userRequest": "./_iterators",
"loc": "3:16-39"
},
{
"moduleId": 103,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.array.iterator.js",
"module": "./node_modules/core-js/library/modules/es6.array.iterator.js",
"moduleName": "./node_modules/core-js/library/modules/es6.array.iterator.js",
"type": "cjs require",
"userRequest": "./_iterators",
"loc": "4:16-39"
},
{
"moduleId": 140,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/core.is-iterable.js",
"module": "./node_modules/core-js/library/modules/core.is-iterable.js",
"moduleName": "./node_modules/core-js/library/modules/core.is-iterable.js",
"type": "cjs require",
"userRequest": "./_iterators",
"loc": "3:16-39"
},
{
"moduleId": 157,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_is-array-iter.js",
"module": "./node_modules/core-js/library/modules/_is-array-iter.js",
"moduleName": "./node_modules/core-js/library/modules/_is-array-iter.js",
"type": "cjs require",
"userRequest": "./_iterators",
"loc": "2:16-39"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "module.exports = {};\n"
},
{
"id": 17,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_to-iobject.js",
"name": "./node_modules/core-js/library/modules/_to-iobject.js",
"index": 55,
"index2": 44,
"size": 217,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.array.iterator.js",
"issuerId": 103,
"issuerName": "./node_modules/core-js/library/modules/es6.array.iterator.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 93,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"name": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"
},
{
"id": 54,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"name": "./node_modules/babel-runtime/helpers/typeof.js"
},
{
"id": 94,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol/iterator.js",
"name": "./node_modules/babel-runtime/core-js/symbol/iterator.js"
},
{
"id": 95,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/iterator.js",
"name": "./node_modules/core-js/library/fn/symbol/iterator.js"
},
{
"id": 37,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/web.dom.iterable.js",
"name": "./node_modules/core-js/library/modules/web.dom.iterable.js"
},
{
"id": 103,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.array.iterator.js",
"name": "./node_modules/core-js/library/modules/es6.array.iterator.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 57,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-keys-internal.js",
"module": "./node_modules/core-js/library/modules/_object-keys-internal.js",
"moduleName": "./node_modules/core-js/library/modules/_object-keys-internal.js",
"type": "cjs require",
"userRequest": "./_to-iobject",
"loc": "2:16-40"
},
{
"moduleId": 61,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-gopd.js",
"module": "./node_modules/core-js/library/modules/_object-gopd.js",
"moduleName": "./node_modules/core-js/library/modules/_object-gopd.js",
"type": "cjs require",
"userRequest": "./_to-iobject",
"loc": "3:16-40"
},
{
"moduleId": 99,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_array-includes.js",
"module": "./node_modules/core-js/library/modules/_array-includes.js",
"moduleName": "./node_modules/core-js/library/modules/_array-includes.js",
"type": "cjs require",
"userRequest": "./_to-iobject",
"loc": "3:16-40"
},
{
"moduleId": 103,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.array.iterator.js",
"module": "./node_modules/core-js/library/modules/es6.array.iterator.js",
"moduleName": "./node_modules/core-js/library/modules/es6.array.iterator.js",
"type": "cjs require",
"userRequest": "./_to-iobject",
"loc": "5:16-40"
},
{
"moduleId": 108,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"module": "./node_modules/core-js/library/modules/es6.symbol.js",
"moduleName": "./node_modules/core-js/library/modules/es6.symbol.js",
"type": "cjs require",
"userRequest": "./_to-iobject",
"loc": "20:16-40"
},
{
"moduleId": 112,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-gopn-ext.js",
"module": "./node_modules/core-js/library/modules/_object-gopn-ext.js",
"moduleName": "./node_modules/core-js/library/modules/_object-gopn-ext.js",
"type": "cjs require",
"userRequest": "./_to-iobject",
"loc": "2:16-40"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "// to indexed object, toObject with fallback for non-array-like ES3 strings\nvar IObject = require('./_iobject');\nvar defined = require('./_defined');\nmodule.exports = function (it) {\n return IObject(defined(it));\n};\n"
},
{
"id": 18,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_fails.js",
"name": "./node_modules/core-js/library/modules/_fails.js",
"index": 33,
"index2": 22,
"size": 104,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_descriptors.js",
"issuerId": 12,
"issuerName": "./node_modules/core-js/library/modules/_descriptors.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 7,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/createClass.js",
"name": "./node_modules/babel-runtime/helpers/createClass.js"
},
{
"id": 51,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/object/define-property.js",
"name": "./node_modules/babel-runtime/core-js/object/define-property.js"
},
{
"id": 90,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/object/define-property.js",
"name": "./node_modules/core-js/library/fn/object/define-property.js"
},
{
"id": 91,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.object.define-property.js",
"name": "./node_modules/core-js/library/modules/es6.object.define-property.js"
},
{
"id": 12,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_descriptors.js",
"name": "./node_modules/core-js/library/modules/_descriptors.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 12,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_descriptors.js",
"module": "./node_modules/core-js/library/modules/_descriptors.js",
"moduleName": "./node_modules/core-js/library/modules/_descriptors.js",
"type": "cjs require",
"userRequest": "./_fails",
"loc": "2:18-37"
},
{
"moduleId": 52,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_ie8-dom-define.js",
"module": "./node_modules/core-js/library/modules/_ie8-dom-define.js",
"moduleName": "./node_modules/core-js/library/modules/_ie8-dom-define.js",
"type": "cjs require",
"userRequest": "./_fails",
"loc": "1:48-67"
},
{
"moduleId": 108,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"module": "./node_modules/core-js/library/modules/es6.symbol.js",
"moduleName": "./node_modules/core-js/library/modules/es6.symbol.js",
"type": "cjs require",
"userRequest": "./_fails",
"loc": "9:13-32"
},
{
"moduleId": 109,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_meta.js",
"module": "./node_modules/core-js/library/modules/_meta.js",
"moduleName": "./node_modules/core-js/library/modules/_meta.js",
"type": "cjs require",
"userRequest": "./_fails",
"loc": "9:14-33"
},
{
"moduleId": 151,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-assign.js",
"module": "./node_modules/core-js/library/modules/_object-assign.js",
"moduleName": "./node_modules/core-js/library/modules/_object-assign.js",
"type": "cjs require",
"userRequest": "./_fails",
"loc": "11:29-48"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "module.exports = function (exec) {\n try {\n return !!exec();\n } catch (e) {\n return true;\n }\n};\n"
},
{
"id": 19,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_property-desc.js",
"name": "./node_modules/core-js/library/modules/_property-desc.js",
"index": 36,
"index2": 28,
"size": 173,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_hide.js",
"issuerId": 14,
"issuerName": "./node_modules/core-js/library/modules/_hide.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 93,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"name": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"
},
{
"id": 54,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"name": "./node_modules/babel-runtime/helpers/typeof.js"
},
{
"id": 94,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol/iterator.js",
"name": "./node_modules/babel-runtime/core-js/symbol/iterator.js"
},
{
"id": 95,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/iterator.js",
"name": "./node_modules/core-js/library/fn/symbol/iterator.js"
},
{
"id": 37,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/web.dom.iterable.js",
"name": "./node_modules/core-js/library/modules/web.dom.iterable.js"
},
{
"id": 14,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_hide.js",
"name": "./node_modules/core-js/library/modules/_hide.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 14,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_hide.js",
"module": "./node_modules/core-js/library/modules/_hide.js",
"moduleName": "./node_modules/core-js/library/modules/_hide.js",
"type": "cjs require",
"userRequest": "./_property-desc",
"loc": "2:17-44"
},
{
"moduleId": 61,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-gopd.js",
"module": "./node_modules/core-js/library/modules/_object-gopd.js",
"moduleName": "./node_modules/core-js/library/modules/_object-gopd.js",
"type": "cjs require",
"userRequest": "./_property-desc",
"loc": "2:17-44"
},
{
"moduleId": 97,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_iter-create.js",
"module": "./node_modules/core-js/library/modules/_iter-create.js",
"moduleName": "./node_modules/core-js/library/modules/_iter-create.js",
"type": "cjs require",
"userRequest": "./_property-desc",
"loc": "3:17-44"
},
{
"moduleId": 108,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"module": "./node_modules/core-js/library/modules/es6.symbol.js",
"moduleName": "./node_modules/core-js/library/modules/es6.symbol.js",
"type": "cjs require",
"userRequest": "./_property-desc",
"loc": "22:17-44"
},
{
"moduleId": 158,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_create-property.js",
"module": "./node_modules/core-js/library/modules/_create-property.js",
"moduleName": "./node_modules/core-js/library/modules/_create-property.js",
"type": "cjs require",
"userRequest": "./_property-desc",
"loc": "3:17-44"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "module.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n"
},
{
"id": 20,
"identifier": "/Users/user/Projects/orchid/node_modules/react/index.js",
"name": "./node_modules/react/index.js",
"index": 2,
"index2": 6,
"size": 190,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"issuerId": 79,
"issuerName": "./src/index.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 79,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"module": "./src/index.js",
"moduleName": "./src/index.js",
"type": "cjs require",
"userRequest": "react",
"loc": "8:13-29"
},
{
"moduleId": 82,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/react-dom/cjs/react-dom.production.min.js",
"module": "./node_modules/react-dom/cjs/react-dom.production.min.js",
"moduleName": "./node_modules/react-dom/cjs/react-dom.production.min.js",
"type": "cjs require",
"userRequest": "react",
"loc": "13:53-69"
},
{
"moduleId": 89,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"module": "./src/containers/App.jsx",
"moduleName": "./src/containers/App.jsx",
"type": "cjs require",
"userRequest": "react",
"loc": "24:13-29"
},
{
"moduleId": 128,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/react-hot-loader/dist/react-hot-loader.production.min.js",
"module": "./node_modules/react-hot-loader/dist/react-hot-loader.production.min.js",
"moduleName": "./node_modules/react-hot-loader/dist/react-hot-loader.production.min.js",
"type": "cjs require",
"userRequest": "react",
"loc": "1:178-194"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 1,
"source": "'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react.production.min.js');\n} else {\n module.exports = require('./cjs/react.development.js');\n}\n"
},
{
"id": 21,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.string.iterator.js",
"name": "./node_modules/core-js/library/modules/es6.string.iterator.js",
"index": 42,
"index2": 63,
"size": 531,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/iterator.js",
"issuerId": 95,
"issuerName": "./node_modules/core-js/library/fn/symbol/iterator.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 93,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"name": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"
},
{
"id": 54,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"name": "./node_modules/babel-runtime/helpers/typeof.js"
},
{
"id": 94,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol/iterator.js",
"name": "./node_modules/babel-runtime/core-js/symbol/iterator.js"
},
{
"id": 95,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/iterator.js",
"name": "./node_modules/core-js/library/fn/symbol/iterator.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 95,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/iterator.js",
"module": "./node_modules/core-js/library/fn/symbol/iterator.js",
"moduleName": "./node_modules/core-js/library/fn/symbol/iterator.js",
"type": "cjs require",
"userRequest": "../../modules/es6.string.iterator",
"loc": "1:0-44"
},
{
"moduleId": 139,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/is-iterable.js",
"module": "./node_modules/core-js/library/fn/is-iterable.js",
"moduleName": "./node_modules/core-js/library/fn/is-iterable.js",
"type": "cjs require",
"userRequest": "../modules/es6.string.iterator",
"loc": "2:0-41"
},
{
"moduleId": 142,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/get-iterator.js",
"module": "./node_modules/core-js/library/fn/get-iterator.js",
"moduleName": "./node_modules/core-js/library/fn/get-iterator.js",
"type": "cjs require",
"userRequest": "../modules/es6.string.iterator",
"loc": "2:0-41"
},
{
"moduleId": 154,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/array/from.js",
"module": "./node_modules/core-js/library/fn/array/from.js",
"moduleName": "./node_modules/core-js/library/fn/array/from.js",
"type": "cjs require",
"userRequest": "../../modules/es6.string.iterator",
"loc": "1:0-44"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 6,
"source": "'use strict';\nvar $at = require('./_string-at')(true);\n\n// 21.1.3.27 String.prototype[@@iterator]()\nrequire('./_iter-define')(String, 'String', function (iterated) {\n this._t = String(iterated); // target\n this._i = 0; // next index\n// 21.1.5.2.1 %StringIteratorPrototype%.next()\n}, function () {\n var O = this._t;\n var index = this._i;\n var point;\n if (index >= O.length) return { value: undefined, done: true };\n point = $at(O, index);\n this._i += point.length;\n return { value: point, done: false };\n});\n"
},
{
"id": 22,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_library.js",
"name": "./node_modules/core-js/library/modules/_library.js",
"index": 47,
"index2": 39,
"size": 23,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_iter-define.js",
"issuerId": 55,
"issuerName": "./node_modules/core-js/library/modules/_iter-define.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 93,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"name": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"
},
{
"id": 54,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"name": "./node_modules/babel-runtime/helpers/typeof.js"
},
{
"id": 94,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol/iterator.js",
"name": "./node_modules/babel-runtime/core-js/symbol/iterator.js"
},
{
"id": 95,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/iterator.js",
"name": "./node_modules/core-js/library/fn/symbol/iterator.js"
},
{
"id": 21,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.string.iterator.js",
"name": "./node_modules/core-js/library/modules/es6.string.iterator.js"
},
{
"id": 55,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_iter-define.js",
"name": "./node_modules/core-js/library/modules/_iter-define.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 33,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_shared.js",
"module": "./node_modules/core-js/library/modules/_shared.js",
"moduleName": "./node_modules/core-js/library/modules/_shared.js",
"type": "cjs require",
"userRequest": "./_library",
"loc": "10:8-29"
},
{
"moduleId": 39,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_wks-define.js",
"module": "./node_modules/core-js/library/modules/_wks-define.js",
"moduleName": "./node_modules/core-js/library/modules/_wks-define.js",
"type": "cjs require",
"userRequest": "./_library",
"loc": "3:14-35"
},
{
"moduleId": 55,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_iter-define.js",
"module": "./node_modules/core-js/library/modules/_iter-define.js",
"moduleName": "./node_modules/core-js/library/modules/_iter-define.js",
"type": "cjs require",
"userRequest": "./_library",
"loc": "2:14-35"
},
{
"moduleId": 108,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"module": "./node_modules/core-js/library/modules/es6.symbol.js",
"moduleName": "./node_modules/core-js/library/modules/es6.symbol.js",
"type": "cjs require",
"userRequest": "./_library",
"loc": "154:22-43"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "module.exports = true;\n"
},
{
"id": 23,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-keys.js",
"name": "./node_modules/core-js/library/modules/_object-keys.js",
"index": 53,
"index2": 53,
"size": 222,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"issuerId": 108,
"issuerName": "./node_modules/core-js/library/modules/es6.symbol.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 93,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"name": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"
},
{
"id": 54,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"name": "./node_modules/babel-runtime/helpers/typeof.js"
},
{
"id": 106,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol.js",
"name": "./node_modules/babel-runtime/core-js/symbol.js"
},
{
"id": 107,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/index.js",
"name": "./node_modules/core-js/library/fn/symbol/index.js"
},
{
"id": 108,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"name": "./node_modules/core-js/library/modules/es6.symbol.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 98,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-dps.js",
"module": "./node_modules/core-js/library/modules/_object-dps.js",
"moduleName": "./node_modules/core-js/library/modules/_object-dps.js",
"type": "cjs require",
"userRequest": "./_object-keys",
"loc": "3:14-39"
},
{
"moduleId": 108,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"module": "./node_modules/core-js/library/modules/es6.symbol.js",
"moduleName": "./node_modules/core-js/library/modules/es6.symbol.js",
"type": "cjs require",
"userRequest": "./_object-keys",
"loc": "27:12-37"
},
{
"moduleId": 110,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_enum-keys.js",
"module": "./node_modules/core-js/library/modules/_enum-keys.js",
"moduleName": "./node_modules/core-js/library/modules/_enum-keys.js",
"type": "cjs require",
"userRequest": "./_object-keys",
"loc": "2:14-39"
},
{
"moduleId": 151,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-assign.js",
"module": "./node_modules/core-js/library/modules/_object-assign.js",
"moduleName": "./node_modules/core-js/library/modules/_object-assign.js",
"type": "cjs require",
"userRequest": "./_object-keys",
"loc": "3:14-39"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "// 19.1.2.14 / 15.2.3.14 Object.keys(O)\nvar $keys = require('./_object-keys-internal');\nvar enumBugKeys = require('./_enum-bug-keys');\n\nmodule.exports = Object.keys || function keys(O) {\n return $keys(O, enumBugKeys);\n};\n"
},
{
"id": 24,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_uid.js",
"name": "./node_modules/core-js/library/modules/_uid.js",
"index": 63,
"index2": 49,
"size": 162,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_wks.js",
"issuerId": 5,
"issuerName": "./node_modules/core-js/library/modules/_wks.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 93,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"name": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"
},
{
"id": 54,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"name": "./node_modules/babel-runtime/helpers/typeof.js"
},
{
"id": 94,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol/iterator.js",
"name": "./node_modules/babel-runtime/core-js/symbol/iterator.js"
},
{
"id": 95,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/iterator.js",
"name": "./node_modules/core-js/library/fn/symbol/iterator.js"
},
{
"id": 37,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/web.dom.iterable.js",
"name": "./node_modules/core-js/library/modules/web.dom.iterable.js"
},
{
"id": 5,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_wks.js",
"name": "./node_modules/core-js/library/modules/_wks.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 5,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_wks.js",
"module": "./node_modules/core-js/library/modules/_wks.js",
"moduleName": "./node_modules/core-js/library/modules/_wks.js",
"type": "cjs require",
"userRequest": "./_uid",
"loc": "2:10-27"
},
{
"moduleId": 32,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_shared-key.js",
"module": "./node_modules/core-js/library/modules/_shared-key.js",
"moduleName": "./node_modules/core-js/library/modules/_shared-key.js",
"type": "cjs require",
"userRequest": "./_uid",
"loc": "2:10-27"
},
{
"moduleId": 108,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"module": "./node_modules/core-js/library/modules/es6.symbol.js",
"moduleName": "./node_modules/core-js/library/modules/es6.symbol.js",
"type": "cjs require",
"userRequest": "./_uid",
"loc": "12:10-27"
},
{
"moduleId": 109,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_meta.js",
"module": "./node_modules/core-js/library/modules/_meta.js",
"moduleName": "./node_modules/core-js/library/modules/_meta.js",
"type": "cjs require",
"userRequest": "./_uid",
"loc": "1:11-28"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "var id = 0;\nvar px = Math.random();\nmodule.exports = function (key) {\n return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));\n};\n"
},
{
"id": 25,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-pie.js",
"name": "./node_modules/core-js/library/modules/_object-pie.js",
"index": 82,
"index2": 74,
"size": 37,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"issuerId": 108,
"issuerName": "./node_modules/core-js/library/modules/es6.symbol.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 93,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"name": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"
},
{
"id": 54,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"name": "./node_modules/babel-runtime/helpers/typeof.js"
},
{
"id": 106,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol.js",
"name": "./node_modules/babel-runtime/core-js/symbol.js"
},
{
"id": 107,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/index.js",
"name": "./node_modules/core-js/library/fn/symbol/index.js"
},
{
"id": 108,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"name": "./node_modules/core-js/library/modules/es6.symbol.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 61,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-gopd.js",
"module": "./node_modules/core-js/library/modules/_object-gopd.js",
"moduleName": "./node_modules/core-js/library/modules/_object-gopd.js",
"type": "cjs require",
"userRequest": "./_object-pie",
"loc": "1:10-34"
},
{
"moduleId": 108,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"module": "./node_modules/core-js/library/modules/es6.symbol.js",
"moduleName": "./node_modules/core-js/library/modules/es6.symbol.js",
"type": "cjs require",
"userRequest": "./_object-pie",
"loc": "151:2-26"
},
{
"moduleId": 110,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_enum-keys.js",
"module": "./node_modules/core-js/library/modules/_enum-keys.js",
"moduleName": "./node_modules/core-js/library/modules/_enum-keys.js",
"type": "cjs require",
"userRequest": "./_object-pie",
"loc": "4:10-34"
},
{
"moduleId": 151,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-assign.js",
"module": "./node_modules/core-js/library/modules/_object-assign.js",
"moduleName": "./node_modules/core-js/library/modules/_object-assign.js",
"type": "cjs require",
"userRequest": "./_object-pie",
"loc": "5:10-34"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "exports.f = {}.propertyIsEnumerable;\n"
},
{
"id": 26,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_ctx.js",
"name": "./node_modules/core-js/library/modules/_ctx.js",
"index": 25,
"index2": 19,
"size": 520,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.array.from.js",
"issuerId": 155,
"issuerName": "./node_modules/core-js/library/modules/es6.array.from.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 146,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"name": "./src/modules/Router.js"
},
{
"id": 152,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/toConsumableArray.js",
"name": "./node_modules/babel-runtime/helpers/toConsumableArray.js"
},
{
"id": 153,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/array/from.js",
"name": "./node_modules/babel-runtime/core-js/array/from.js"
},
{
"id": 154,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/array/from.js",
"name": "./node_modules/core-js/library/fn/array/from.js"
},
{
"id": 155,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.array.from.js",
"name": "./node_modules/core-js/library/modules/es6.array.from.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 10,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_export.js",
"module": "./node_modules/core-js/library/modules/_export.js",
"moduleName": "./node_modules/core-js/library/modules/_export.js",
"type": "cjs require",
"userRequest": "./_ctx",
"loc": "3:10-27"
},
{
"moduleId": 120,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_set-proto.js",
"module": "./node_modules/core-js/library/modules/_set-proto.js",
"moduleName": "./node_modules/core-js/library/modules/_set-proto.js",
"type": "cjs require",
"userRequest": "./_ctx",
"loc": "13:14-31"
},
{
"moduleId": 155,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.array.from.js",
"module": "./node_modules/core-js/library/modules/es6.array.from.js",
"moduleName": "./node_modules/core-js/library/modules/es6.array.from.js",
"type": "cjs require",
"userRequest": "./_ctx",
"loc": "2:10-27"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "// optional / simple context binding\nvar aFunction = require('./_a-function');\nmodule.exports = function (fn, that, length) {\n aFunction(fn);\n if (that === undefined) return fn;\n switch (length) {\n case 1: return function (a) {\n return fn.call(that, a);\n };\n case 2: return function (a, b) {\n return fn.call(that, a, b);\n };\n case 3: return function (a, b, c) {\n return fn.call(that, a, b, c);\n };\n }\n return function (/* ...args */) {\n return fn.apply(that, arguments);\n };\n};\n"
},
{
"id": 27,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_to-primitive.js",
"name": "./node_modules/core-js/library/modules/_to-primitive.js",
"index": 35,
"index2": 26,
"size": 655,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-dp.js",
"issuerId": 9,
"issuerName": "./node_modules/core-js/library/modules/_object-dp.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 7,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/createClass.js",
"name": "./node_modules/babel-runtime/helpers/createClass.js"
},
{
"id": 51,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/object/define-property.js",
"name": "./node_modules/babel-runtime/core-js/object/define-property.js"
},
{
"id": 90,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/object/define-property.js",
"name": "./node_modules/core-js/library/fn/object/define-property.js"
},
{
"id": 91,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.object.define-property.js",
"name": "./node_modules/core-js/library/modules/es6.object.define-property.js"
},
{
"id": 9,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-dp.js",
"name": "./node_modules/core-js/library/modules/_object-dp.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 9,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-dp.js",
"module": "./node_modules/core-js/library/modules/_object-dp.js",
"moduleName": "./node_modules/core-js/library/modules/_object-dp.js",
"type": "cjs require",
"userRequest": "./_to-primitive",
"loc": "3:18-44"
},
{
"moduleId": 61,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-gopd.js",
"module": "./node_modules/core-js/library/modules/_object-gopd.js",
"moduleName": "./node_modules/core-js/library/modules/_object-gopd.js",
"type": "cjs require",
"userRequest": "./_to-primitive",
"loc": "4:18-44"
},
{
"moduleId": 108,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"module": "./node_modules/core-js/library/modules/es6.symbol.js",
"moduleName": "./node_modules/core-js/library/modules/es6.symbol.js",
"type": "cjs require",
"userRequest": "./_to-primitive",
"loc": "21:18-44"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "// 7.1.1 ToPrimitive(input [, PreferredType])\nvar isObject = require('./_is-object');\n// instead of the ES6 spec version, we didn't implement @@toPrimitive case\n// and the second argument - flag - preferred type is a string\nmodule.exports = function (it, S) {\n if (!isObject(it)) return it;\n var fn, val;\n if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;\n if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n throw TypeError(\"Can't convert object to primitive value\");\n};\n"
},
{
"id": 28,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_to-integer.js",
"name": "./node_modules/core-js/library/modules/_to-integer.js",
"index": 44,
"index2": 36,
"size": 161,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_string-at.js",
"issuerId": 96,
"issuerName": "./node_modules/core-js/library/modules/_string-at.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 93,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"name": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"
},
{
"id": 54,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"name": "./node_modules/babel-runtime/helpers/typeof.js"
},
{
"id": 94,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol/iterator.js",
"name": "./node_modules/babel-runtime/core-js/symbol/iterator.js"
},
{
"id": 95,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/iterator.js",
"name": "./node_modules/core-js/library/fn/symbol/iterator.js"
},
{
"id": 21,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.string.iterator.js",
"name": "./node_modules/core-js/library/modules/es6.string.iterator.js"
},
{
"id": 96,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_string-at.js",
"name": "./node_modules/core-js/library/modules/_string-at.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 59,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_to-length.js",
"module": "./node_modules/core-js/library/modules/_to-length.js",
"moduleName": "./node_modules/core-js/library/modules/_to-length.js",
"type": "cjs require",
"userRequest": "./_to-integer",
"loc": "2:16-40"
},
{
"moduleId": 96,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_string-at.js",
"module": "./node_modules/core-js/library/modules/_string-at.js",
"moduleName": "./node_modules/core-js/library/modules/_string-at.js",
"type": "cjs require",
"userRequest": "./_to-integer",
"loc": "1:16-40"
},
{
"moduleId": 100,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_to-absolute-index.js",
"module": "./node_modules/core-js/library/modules/_to-absolute-index.js",
"moduleName": "./node_modules/core-js/library/modules/_to-absolute-index.js",
"type": "cjs require",
"userRequest": "./_to-integer",
"loc": "1:16-40"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 8,
"source": "// 7.1.4 ToInteger\nvar ceil = Math.ceil;\nvar floor = Math.floor;\nmodule.exports = function (it) {\n return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);\n};\n"
},
{
"id": 29,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_defined.js",
"name": "./node_modules/core-js/library/modules/_defined.js",
"index": 45,
"index2": 37,
"size": 162,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_string-at.js",
"issuerId": 96,
"issuerName": "./node_modules/core-js/library/modules/_string-at.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 93,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"name": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"
},
{
"id": 54,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"name": "./node_modules/babel-runtime/helpers/typeof.js"
},
{
"id": 94,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol/iterator.js",
"name": "./node_modules/babel-runtime/core-js/symbol/iterator.js"
},
{
"id": 95,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/iterator.js",
"name": "./node_modules/core-js/library/fn/symbol/iterator.js"
},
{
"id": 21,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.string.iterator.js",
"name": "./node_modules/core-js/library/modules/es6.string.iterator.js"
},
{
"id": 96,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_string-at.js",
"name": "./node_modules/core-js/library/modules/_string-at.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 17,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_to-iobject.js",
"module": "./node_modules/core-js/library/modules/_to-iobject.js",
"moduleName": "./node_modules/core-js/library/modules/_to-iobject.js",
"type": "cjs require",
"userRequest": "./_defined",
"loc": "3:14-35"
},
{
"moduleId": 36,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_to-object.js",
"module": "./node_modules/core-js/library/modules/_to-object.js",
"moduleName": "./node_modules/core-js/library/modules/_to-object.js",
"type": "cjs require",
"userRequest": "./_defined",
"loc": "2:14-35"
},
{
"moduleId": 96,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_string-at.js",
"module": "./node_modules/core-js/library/modules/_string-at.js",
"moduleName": "./node_modules/core-js/library/modules/_string-at.js",
"type": "cjs require",
"userRequest": "./_defined",
"loc": "2:14-35"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 8,
"source": "// 7.2.1 RequireObjectCoercible(argument)\nmodule.exports = function (it) {\n if (it == undefined) throw TypeError(\"Can't call method on \" + it);\n return it;\n};\n"
},
{
"id": 30,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-create.js",
"name": "./node_modules/core-js/library/modules/_object-create.js",
"index": 51,
"index2": 56,
"size": 1505,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.object.create.js",
"issuerId": 123,
"issuerName": "./node_modules/core-js/library/modules/es6.object.create.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 116,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/inherits.js",
"name": "./node_modules/babel-runtime/helpers/inherits.js"
},
{
"id": 121,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/object/create.js",
"name": "./node_modules/babel-runtime/core-js/object/create.js"
},
{
"id": 122,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/object/create.js",
"name": "./node_modules/core-js/library/fn/object/create.js"
},
{
"id": 123,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.object.create.js",
"name": "./node_modules/core-js/library/modules/es6.object.create.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 97,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_iter-create.js",
"module": "./node_modules/core-js/library/modules/_iter-create.js",
"moduleName": "./node_modules/core-js/library/modules/_iter-create.js",
"type": "cjs require",
"userRequest": "./_object-create",
"loc": "2:13-40"
},
{
"moduleId": 108,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"module": "./node_modules/core-js/library/modules/es6.symbol.js",
"moduleName": "./node_modules/core-js/library/modules/es6.symbol.js",
"type": "cjs require",
"userRequest": "./_object-create",
"loc": "23:14-41"
},
{
"moduleId": 123,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.object.create.js",
"module": "./node_modules/core-js/library/modules/es6.object.create.js",
"moduleName": "./node_modules/core-js/library/modules/es6.object.create.js",
"type": "cjs require",
"userRequest": "./_object-create",
"loc": "3:39-66"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 6,
"source": "// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])\nvar anObject = require('./_an-object');\nvar dPs = require('./_object-dps');\nvar enumBugKeys = require('./_enum-bug-keys');\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\nvar Empty = function () { /* empty */ };\nvar PROTOTYPE = 'prototype';\n\n// Create object with fake `null` prototype: use iframe Object with cleared prototype\nvar createDict = function () {\n // Thrash, waste and sodomy: IE GC bug\n var iframe = require('./_dom-create')('iframe');\n var i = enumBugKeys.length;\n var lt = '<';\n var gt = '>';\n var iframeDocument;\n iframe.style.display = 'none';\n require('./_html').appendChild(iframe);\n iframe.src = 'javascript:'; // eslint-disable-line no-script-url\n // createDict = iframe.contentWindow.Object;\n // html.removeChild(iframe);\n iframeDocument = iframe.contentWindow.document;\n iframeDocument.open();\n iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);\n iframeDocument.close();\n createDict = iframeDocument.F;\n while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];\n return createDict();\n};\n\nmodule.exports = Object.create || function create(O, Properties) {\n var result;\n if (O !== null) {\n Empty[PROTOTYPE] = anObject(O);\n result = new Empty();\n Empty[PROTOTYPE] = null;\n // add \"__proto__\" for Object.getPrototypeOf polyfill\n result[IE_PROTO] = O;\n } else result = createDict();\n return Properties === undefined ? result : dPs(result, Properties);\n};\n"
},
{
"id": 31,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_cof.js",
"name": "./node_modules/core-js/library/modules/_cof.js",
"index": 57,
"index2": 42,
"size": 106,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_classof.js",
"issuerId": 63,
"issuerName": "./node_modules/core-js/library/modules/_classof.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 136,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Poly.js",
"name": "./src/modules/Poly.js"
},
{
"id": 137,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/slicedToArray.js",
"name": "./node_modules/babel-runtime/helpers/slicedToArray.js"
},
{
"id": 138,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/is-iterable.js",
"name": "./node_modules/babel-runtime/core-js/is-iterable.js"
},
{
"id": 139,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/is-iterable.js",
"name": "./node_modules/core-js/library/fn/is-iterable.js"
},
{
"id": 140,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/core.is-iterable.js",
"name": "./node_modules/core-js/library/modules/core.is-iterable.js"
},
{
"id": 63,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_classof.js",
"name": "./node_modules/core-js/library/modules/_classof.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 58,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_iobject.js",
"module": "./node_modules/core-js/library/modules/_iobject.js",
"moduleName": "./node_modules/core-js/library/modules/_iobject.js",
"type": "cjs require",
"userRequest": "./_cof",
"loc": "2:10-27"
},
{
"moduleId": 63,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_classof.js",
"module": "./node_modules/core-js/library/modules/_classof.js",
"moduleName": "./node_modules/core-js/library/modules/_classof.js",
"type": "cjs require",
"userRequest": "./_cof",
"loc": "2:10-27"
},
{
"moduleId": 111,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_is-array.js",
"module": "./node_modules/core-js/library/modules/_is-array.js",
"moduleName": "./node_modules/core-js/library/modules/_is-array.js",
"type": "cjs require",
"userRequest": "./_cof",
"loc": "2:10-27"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 8,
"source": "var toString = {}.toString;\n\nmodule.exports = function (it) {\n return toString.call(it).slice(8, -1);\n};\n"
},
{
"id": 32,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_shared-key.js",
"name": "./node_modules/core-js/library/modules/_shared-key.js",
"index": 61,
"index2": 50,
"size": 159,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-create.js",
"issuerId": 30,
"issuerName": "./node_modules/core-js/library/modules/_object-create.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 116,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/inherits.js",
"name": "./node_modules/babel-runtime/helpers/inherits.js"
},
{
"id": 121,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/object/create.js",
"name": "./node_modules/babel-runtime/core-js/object/create.js"
},
{
"id": 122,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/object/create.js",
"name": "./node_modules/core-js/library/fn/object/create.js"
},
{
"id": 123,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.object.create.js",
"name": "./node_modules/core-js/library/modules/es6.object.create.js"
},
{
"id": 30,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-create.js",
"name": "./node_modules/core-js/library/modules/_object-create.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 30,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-create.js",
"module": "./node_modules/core-js/library/modules/_object-create.js",
"moduleName": "./node_modules/core-js/library/modules/_object-create.js",
"type": "cjs require",
"userRequest": "./_shared-key",
"loc": "5:15-39"
},
{
"moduleId": 57,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-keys-internal.js",
"module": "./node_modules/core-js/library/modules/_object-keys-internal.js",
"moduleName": "./node_modules/core-js/library/modules/_object-keys-internal.js",
"type": "cjs require",
"userRequest": "./_shared-key",
"loc": "4:15-39"
},
{
"moduleId": 102,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-gpo.js",
"module": "./node_modules/core-js/library/modules/_object-gpo.js",
"moduleName": "./node_modules/core-js/library/modules/_object-gpo.js",
"type": "cjs require",
"userRequest": "./_shared-key",
"loc": "4:15-39"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "var shared = require('./_shared')('keys');\nvar uid = require('./_uid');\nmodule.exports = function (key) {\n return shared[key] || (shared[key] = uid(key));\n};\n"
},
{
"id": 33,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_shared.js",
"name": "./node_modules/core-js/library/modules/_shared.js",
"index": 62,
"index2": 48,
"size": 427,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_wks.js",
"issuerId": 5,
"issuerName": "./node_modules/core-js/library/modules/_wks.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 93,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"name": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"
},
{
"id": 54,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"name": "./node_modules/babel-runtime/helpers/typeof.js"
},
{
"id": 94,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol/iterator.js",
"name": "./node_modules/babel-runtime/core-js/symbol/iterator.js"
},
{
"id": 95,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/iterator.js",
"name": "./node_modules/core-js/library/fn/symbol/iterator.js"
},
{
"id": 37,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/web.dom.iterable.js",
"name": "./node_modules/core-js/library/modules/web.dom.iterable.js"
},
{
"id": 5,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_wks.js",
"name": "./node_modules/core-js/library/modules/_wks.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 5,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_wks.js",
"module": "./node_modules/core-js/library/modules/_wks.js",
"moduleName": "./node_modules/core-js/library/modules/_wks.js",
"type": "cjs require",
"userRequest": "./_shared",
"loc": "1:12-32"
},
{
"moduleId": 32,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_shared-key.js",
"module": "./node_modules/core-js/library/modules/_shared-key.js",
"moduleName": "./node_modules/core-js/library/modules/_shared-key.js",
"type": "cjs require",
"userRequest": "./_shared",
"loc": "1:13-33"
},
{
"moduleId": 108,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"module": "./node_modules/core-js/library/modules/es6.symbol.js",
"moduleName": "./node_modules/core-js/library/modules/es6.symbol.js",
"type": "cjs require",
"userRequest": "./_shared",
"loc": "10:13-33"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "var core = require('./_core');\nvar global = require('./_global');\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || (global[SHARED] = {});\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: core.version,\n mode: require('./_library') ? 'pure' : 'global',\n copyright: '© 2018 Denis Pushkarev (zloirock.ru)'\n});\n"
},
{
"id": 34,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_enum-bug-keys.js",
"name": "./node_modules/core-js/library/modules/_enum-bug-keys.js",
"index": 64,
"index2": 52,
"size": 160,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-create.js",
"issuerId": 30,
"issuerName": "./node_modules/core-js/library/modules/_object-create.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 116,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/inherits.js",
"name": "./node_modules/babel-runtime/helpers/inherits.js"
},
{
"id": 121,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/object/create.js",
"name": "./node_modules/babel-runtime/core-js/object/create.js"
},
{
"id": 122,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/object/create.js",
"name": "./node_modules/core-js/library/fn/object/create.js"
},
{
"id": 123,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.object.create.js",
"name": "./node_modules/core-js/library/modules/es6.object.create.js"
},
{
"id": 30,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-create.js",
"name": "./node_modules/core-js/library/modules/_object-create.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 23,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-keys.js",
"module": "./node_modules/core-js/library/modules/_object-keys.js",
"moduleName": "./node_modules/core-js/library/modules/_object-keys.js",
"type": "cjs require",
"userRequest": "./_enum-bug-keys",
"loc": "3:18-45"
},
{
"moduleId": 30,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-create.js",
"module": "./node_modules/core-js/library/modules/_object-create.js",
"moduleName": "./node_modules/core-js/library/modules/_object-create.js",
"type": "cjs require",
"userRequest": "./_enum-bug-keys",
"loc": "4:18-45"
},
{
"moduleId": 60,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-gopn.js",
"module": "./node_modules/core-js/library/modules/_object-gopn.js",
"moduleName": "./node_modules/core-js/library/modules/_object-gopn.js",
"type": "cjs require",
"userRequest": "./_enum-bug-keys",
"loc": "3:17-44"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "// IE 8- don't enum bug keys\nmodule.exports = (\n 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'\n).split(',');\n"
},
{
"id": 35,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_set-to-string-tag.js",
"name": "./node_modules/core-js/library/modules/_set-to-string-tag.js",
"index": 66,
"index2": 58,
"size": 262,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_iter-define.js",
"issuerId": 55,
"issuerName": "./node_modules/core-js/library/modules/_iter-define.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 93,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"name": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"
},
{
"id": 54,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"name": "./node_modules/babel-runtime/helpers/typeof.js"
},
{
"id": 94,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol/iterator.js",
"name": "./node_modules/babel-runtime/core-js/symbol/iterator.js"
},
{
"id": 95,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/iterator.js",
"name": "./node_modules/core-js/library/fn/symbol/iterator.js"
},
{
"id": 21,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.string.iterator.js",
"name": "./node_modules/core-js/library/modules/es6.string.iterator.js"
},
{
"id": 55,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_iter-define.js",
"name": "./node_modules/core-js/library/modules/_iter-define.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 55,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_iter-define.js",
"module": "./node_modules/core-js/library/modules/_iter-define.js",
"moduleName": "./node_modules/core-js/library/modules/_iter-define.js",
"type": "cjs require",
"userRequest": "./_set-to-string-tag",
"loc": "8:21-52"
},
{
"moduleId": 97,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_iter-create.js",
"module": "./node_modules/core-js/library/modules/_iter-create.js",
"moduleName": "./node_modules/core-js/library/modules/_iter-create.js",
"type": "cjs require",
"userRequest": "./_set-to-string-tag",
"loc": "4:21-52"
},
{
"moduleId": 108,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"module": "./node_modules/core-js/library/modules/es6.symbol.js",
"moduleName": "./node_modules/core-js/library/modules/es6.symbol.js",
"type": "cjs require",
"userRequest": "./_set-to-string-tag",
"loc": "11:21-52"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "var def = require('./_object-dp').f;\nvar has = require('./_has');\nvar TAG = require('./_wks')('toStringTag');\n\nmodule.exports = function (it, tag, stat) {\n if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });\n};\n"
},
{
"id": 36,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_to-object.js",
"name": "./node_modules/core-js/library/modules/_to-object.js",
"index": 69,
"index2": 60,
"size": 132,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.array.from.js",
"issuerId": 155,
"issuerName": "./node_modules/core-js/library/modules/es6.array.from.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 146,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"name": "./src/modules/Router.js"
},
{
"id": 152,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/toConsumableArray.js",
"name": "./node_modules/babel-runtime/helpers/toConsumableArray.js"
},
{
"id": 153,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/array/from.js",
"name": "./node_modules/babel-runtime/core-js/array/from.js"
},
{
"id": 154,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/array/from.js",
"name": "./node_modules/core-js/library/fn/array/from.js"
},
{
"id": 155,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.array.from.js",
"name": "./node_modules/core-js/library/modules/es6.array.from.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 102,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-gpo.js",
"module": "./node_modules/core-js/library/modules/_object-gpo.js",
"moduleName": "./node_modules/core-js/library/modules/_object-gpo.js",
"type": "cjs require",
"userRequest": "./_to-object",
"loc": "3:15-38"
},
{
"moduleId": 151,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-assign.js",
"module": "./node_modules/core-js/library/modules/_object-assign.js",
"moduleName": "./node_modules/core-js/library/modules/_object-assign.js",
"type": "cjs require",
"userRequest": "./_to-object",
"loc": "6:15-38"
},
{
"moduleId": 155,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.array.from.js",
"module": "./node_modules/core-js/library/modules/es6.array.from.js",
"moduleName": "./node_modules/core-js/library/modules/es6.array.from.js",
"type": "cjs require",
"userRequest": "./_to-object",
"loc": "4:15-38"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 8,
"source": "// 7.1.13 ToObject(argument)\nvar defined = require('./_defined');\nmodule.exports = function (it) {\n return Object(defined(it));\n};\n"
},
{
"id": 37,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/web.dom.iterable.js",
"name": "./node_modules/core-js/library/modules/web.dom.iterable.js",
"index": 70,
"index2": 67,
"size": 969,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/iterator.js",
"issuerId": 95,
"issuerName": "./node_modules/core-js/library/fn/symbol/iterator.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 93,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"name": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"
},
{
"id": 54,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"name": "./node_modules/babel-runtime/helpers/typeof.js"
},
{
"id": 94,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol/iterator.js",
"name": "./node_modules/babel-runtime/core-js/symbol/iterator.js"
},
{
"id": 95,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/iterator.js",
"name": "./node_modules/core-js/library/fn/symbol/iterator.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 95,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/iterator.js",
"module": "./node_modules/core-js/library/fn/symbol/iterator.js",
"moduleName": "./node_modules/core-js/library/fn/symbol/iterator.js",
"type": "cjs require",
"userRequest": "../../modules/web.dom.iterable",
"loc": "2:0-41"
},
{
"moduleId": 139,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/is-iterable.js",
"module": "./node_modules/core-js/library/fn/is-iterable.js",
"moduleName": "./node_modules/core-js/library/fn/is-iterable.js",
"type": "cjs require",
"userRequest": "../modules/web.dom.iterable",
"loc": "1:0-38"
},
{
"moduleId": 142,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/get-iterator.js",
"module": "./node_modules/core-js/library/fn/get-iterator.js",
"moduleName": "./node_modules/core-js/library/fn/get-iterator.js",
"type": "cjs require",
"userRequest": "../modules/web.dom.iterable",
"loc": "1:0-38"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 6,
"source": "require('./es6.array.iterator');\nvar global = require('./_global');\nvar hide = require('./_hide');\nvar Iterators = require('./_iterators');\nvar TO_STRING_TAG = require('./_wks')('toStringTag');\n\nvar DOMIterables = ('CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,' +\n 'DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,' +\n 'MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,' +\n 'SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,' +\n 'TextTrackList,TouchList').split(',');\n\nfor (var i = 0; i < DOMIterables.length; i++) {\n var NAME = DOMIterables[i];\n var Collection = global[NAME];\n var proto = Collection && Collection.prototype;\n if (proto && !proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME);\n Iterators[NAME] = Iterators.Array;\n}\n"
},
{
"id": 38,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_wks-ext.js",
"name": "./node_modules/core-js/library/modules/_wks-ext.js",
"index": 74,
"index2": 68,
"size": 31,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/iterator.js",
"issuerId": 95,
"issuerName": "./node_modules/core-js/library/fn/symbol/iterator.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 93,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"name": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"
},
{
"id": 54,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"name": "./node_modules/babel-runtime/helpers/typeof.js"
},
{
"id": 94,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol/iterator.js",
"name": "./node_modules/babel-runtime/core-js/symbol/iterator.js"
},
{
"id": 95,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/iterator.js",
"name": "./node_modules/core-js/library/fn/symbol/iterator.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 39,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_wks-define.js",
"module": "./node_modules/core-js/library/modules/_wks-define.js",
"moduleName": "./node_modules/core-js/library/modules/_wks-define.js",
"type": "cjs require",
"userRequest": "./_wks-ext",
"loc": "4:13-34"
},
{
"moduleId": 95,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/iterator.js",
"module": "./node_modules/core-js/library/fn/symbol/iterator.js",
"moduleName": "./node_modules/core-js/library/fn/symbol/iterator.js",
"type": "cjs require",
"userRequest": "../../modules/_wks-ext",
"loc": "3:17-50"
},
{
"moduleId": 108,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"module": "./node_modules/core-js/library/modules/es6.symbol.js",
"moduleName": "./node_modules/core-js/library/modules/es6.symbol.js",
"type": "cjs require",
"userRequest": "./_wks-ext",
"loc": "14:13-34"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 6,
"source": "exports.f = require('./_wks');\n"
},
{
"id": 39,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_wks-define.js",
"name": "./node_modules/core-js/library/modules/_wks-define.js",
"index": 79,
"index2": 72,
"size": 417,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es7.symbol.async-iterator.js",
"issuerId": 114,
"issuerName": "./node_modules/core-js/library/modules/es7.symbol.async-iterator.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 93,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"name": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"
},
{
"id": 54,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"name": "./node_modules/babel-runtime/helpers/typeof.js"
},
{
"id": 106,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol.js",
"name": "./node_modules/babel-runtime/core-js/symbol.js"
},
{
"id": 107,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/index.js",
"name": "./node_modules/core-js/library/fn/symbol/index.js"
},
{
"id": 114,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es7.symbol.async-iterator.js",
"name": "./node_modules/core-js/library/modules/es7.symbol.async-iterator.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 108,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"module": "./node_modules/core-js/library/modules/es6.symbol.js",
"moduleName": "./node_modules/core-js/library/modules/es6.symbol.js",
"type": "cjs require",
"userRequest": "./_wks-define",
"loc": "15:16-40"
},
{
"moduleId": 114,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es7.symbol.async-iterator.js",
"module": "./node_modules/core-js/library/modules/es7.symbol.async-iterator.js",
"moduleName": "./node_modules/core-js/library/modules/es7.symbol.async-iterator.js",
"type": "cjs require",
"userRequest": "./_wks-define",
"loc": "1:0-24"
},
{
"moduleId": 115,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es7.symbol.observable.js",
"module": "./node_modules/core-js/library/modules/es7.symbol.observable.js",
"moduleName": "./node_modules/core-js/library/modules/es7.symbol.observable.js",
"type": "cjs require",
"userRequest": "./_wks-define",
"loc": "1:0-24"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "var global = require('./_global');\nvar core = require('./_core');\nvar LIBRARY = require('./_library');\nvar wksExt = require('./_wks-ext');\nvar defineProperty = require('./_object-dp').f;\nmodule.exports = function (name) {\n var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {});\n if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty($Symbol, name, { value: wksExt.f(name) });\n};\n"
},
{
"id": 40,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-gops.js",
"name": "./node_modules/core-js/library/modules/_object-gops.js",
"index": 81,
"index2": 73,
"size": 42,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"issuerId": 108,
"issuerName": "./node_modules/core-js/library/modules/es6.symbol.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 93,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"name": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"
},
{
"id": 54,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"name": "./node_modules/babel-runtime/helpers/typeof.js"
},
{
"id": 106,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol.js",
"name": "./node_modules/babel-runtime/core-js/symbol.js"
},
{
"id": 107,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/index.js",
"name": "./node_modules/core-js/library/fn/symbol/index.js"
},
{
"id": 108,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"name": "./node_modules/core-js/library/modules/es6.symbol.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 108,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"module": "./node_modules/core-js/library/modules/es6.symbol.js",
"moduleName": "./node_modules/core-js/library/modules/es6.symbol.js",
"type": "cjs require",
"userRequest": "./_object-gops",
"loc": "152:2-27"
},
{
"moduleId": 110,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_enum-keys.js",
"module": "./node_modules/core-js/library/modules/_enum-keys.js",
"moduleName": "./node_modules/core-js/library/modules/_enum-keys.js",
"type": "cjs require",
"userRequest": "./_object-gops",
"loc": "3:11-36"
},
{
"moduleId": 151,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-assign.js",
"module": "./node_modules/core-js/library/modules/_object-assign.js",
"moduleName": "./node_modules/core-js/library/modules/_object-assign.js",
"type": "cjs require",
"userRequest": "./_object-gops",
"loc": "4:11-36"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "exports.f = Object.getOwnPropertySymbols;\n"
},
{
"id": 41,
"identifier": "/Users/user/Projects/orchid/node_modules/css-loader/lib/css-base.js",
"name": "./node_modules/css-loader/lib/css-base.js",
"index": 108,
"index2": 102,
"size": 2260,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/css-loader/index.js!/Users/user/Projects/orchid/node_modules/less-loader/dist/cjs.js!/Users/user/Projects/orchid/src/styles/map.less",
"issuerId": 190,
"issuerName": "./node_modules/css-loader!./node_modules/less-loader/dist/cjs.js!./src/styles/map.less",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 189,
"identifier": "/Users/user/Projects/orchid/node_modules/style-loader/index.js!/Users/user/Projects/orchid/node_modules/css-loader/index.js!/Users/user/Projects/orchid/node_modules/less-loader/dist/cjs.js!/Users/user/Projects/orchid/src/styles/map.less",
"name": "./src/styles/map.less"
},
{
"id": 190,
"identifier": "/Users/user/Projects/orchid/node_modules/css-loader/index.js!/Users/user/Projects/orchid/node_modules/less-loader/dist/cjs.js!/Users/user/Projects/orchid/src/styles/map.less",
"name": "./node_modules/css-loader!./node_modules/less-loader/dist/cjs.js!./src/styles/map.less"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 130,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/css-loader/index.js!/Users/user/Projects/orchid/node_modules/leaflet/dist/leaflet.css",
"module": "./node_modules/css-loader!./node_modules/leaflet/dist/leaflet.css",
"moduleName": "./node_modules/css-loader!./node_modules/leaflet/dist/leaflet.css",
"type": "cjs require",
"userRequest": "../../css-loader/lib/css-base.js",
"loc": "2:27-70"
},
{
"moduleId": 190,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/css-loader/index.js!/Users/user/Projects/orchid/node_modules/less-loader/dist/cjs.js!/Users/user/Projects/orchid/src/styles/map.less",
"module": "./node_modules/css-loader!./node_modules/less-loader/dist/cjs.js!./src/styles/map.less",
"moduleName": "./node_modules/css-loader!./node_modules/less-loader/dist/cjs.js!./src/styles/map.less",
"type": "cjs require",
"userRequest": "../../node_modules/css-loader/lib/css-base.js",
"loc": "1:27-83"
},
{
"moduleId": 192,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/css-loader/index.js!/Users/user/Projects/orchid/node_modules/less-loader/dist/cjs.js!/Users/user/Projects/orchid/src/styles/controls.less",
"module": "./node_modules/css-loader!./node_modules/less-loader/dist/cjs.js!./src/styles/controls.less",
"moduleName": "./node_modules/css-loader!./node_modules/less-loader/dist/cjs.js!./src/styles/controls.less",
"type": "cjs require",
"userRequest": "../../node_modules/css-loader/lib/css-base.js",
"loc": "1:27-83"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 3,
"source": "/*\n\tMIT License http://www.opensource.org/licenses/mit-license.php\n\tAuthor Tobias Koppers @sokra\n*/\n// css base code, injected by the css-loader\nmodule.exports = function(useSourceMap) {\n\tvar list = [];\n\n\t// return the list of modules as css string\n\tlist.toString = function toString() {\n\t\treturn this.map(function (item) {\n\t\t\tvar content = cssWithMappingToString(item, useSourceMap);\n\t\t\tif(item[2]) {\n\t\t\t\treturn \"@media \" + item[2] + \"{\" + content + \"}\";\n\t\t\t} else {\n\t\t\t\treturn content;\n\t\t\t}\n\t\t}).join(\"\");\n\t};\n\n\t// import a list of modules into the list\n\tlist.i = function(modules, mediaQuery) {\n\t\tif(typeof modules === \"string\")\n\t\t\tmodules = [[null, modules, \"\"]];\n\t\tvar alreadyImportedModules = {};\n\t\tfor(var i = 0; i < this.length; i++) {\n\t\t\tvar id = this[i][0];\n\t\t\tif(typeof id === \"number\")\n\t\t\t\talreadyImportedModules[id] = true;\n\t\t}\n\t\tfor(i = 0; i < modules.length; i++) {\n\t\t\tvar item = modules[i];\n\t\t\t// skip already imported module\n\t\t\t// this implementation is not 100% perfect for weird media query combinations\n\t\t\t// when a module is imported multiple times with different media queries.\n\t\t\t// I hope this will never occur (Hey this way we have smaller bundles)\n\t\t\tif(typeof item[0] !== \"number\" || !alreadyImportedModules[item[0]]) {\n\t\t\t\tif(mediaQuery && !item[2]) {\n\t\t\t\t\titem[2] = mediaQuery;\n\t\t\t\t} else if(mediaQuery) {\n\t\t\t\t\titem[2] = \"(\" + item[2] + \") and (\" + mediaQuery + \")\";\n\t\t\t\t}\n\t\t\t\tlist.push(item);\n\t\t\t}\n\t\t}\n\t};\n\treturn list;\n};\n\nfunction cssWithMappingToString(item, useSourceMap) {\n\tvar content = item[1] || '';\n\tvar cssMapping = item[3];\n\tif (!cssMapping) {\n\t\treturn content;\n\t}\n\n\tif (useSourceMap && typeof btoa === 'function') {\n\t\tvar sourceMapping = toComment(cssMapping);\n\t\tvar sourceURLs = cssMapping.sources.map(function (source) {\n\t\t\treturn '/*# sourceURL=' + cssMapping.sourceRoot + source + ' */'\n\t\t});\n\n\t\treturn [content].concat(sourceURLs).concat([sourceMapping]).join('\\n');\n\t}\n\n\treturn [content].join('\\n');\n}\n\n// Adapted from convert-source-map (MIT)\nfunction toComment(sourceMap) {\n\t// eslint-disable-next-line no-undef\n\tvar base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));\n\tvar data = 'sourceMappingURL=data:application/json;charset=utf-8;base64,' + base64;\n\n\treturn '/*# ' + data + ' */';\n}\n"
},
{
"id": 42,
"identifier": "/Users/user/Projects/orchid/node_modules/style-loader/lib/addStyles.js",
"name": "./node_modules/style-loader/lib/addStyles.js",
"index": 112,
"index2": 108,
"size": 10006,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/style-loader/index.js!/Users/user/Projects/orchid/node_modules/css-loader/index.js!/Users/user/Projects/orchid/node_modules/less-loader/dist/cjs.js!/Users/user/Projects/orchid/src/styles/map.less",
"issuerId": 189,
"issuerName": "./src/styles/map.less",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 189,
"identifier": "/Users/user/Projects/orchid/node_modules/style-loader/index.js!/Users/user/Projects/orchid/node_modules/css-loader/index.js!/Users/user/Projects/orchid/node_modules/less-loader/dist/cjs.js!/Users/user/Projects/orchid/src/styles/map.less",
"name": "./src/styles/map.less"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 129,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/style-loader/index.js!/Users/user/Projects/orchid/node_modules/css-loader/index.js!/Users/user/Projects/orchid/node_modules/leaflet/dist/leaflet.css",
"module": "./node_modules/leaflet/dist/leaflet.css",
"moduleName": "./node_modules/leaflet/dist/leaflet.css",
"type": "cjs require",
"userRequest": "!../../style-loader/lib/addStyles.js",
"loc": "16:13-60"
},
{
"moduleId": 189,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/style-loader/index.js!/Users/user/Projects/orchid/node_modules/css-loader/index.js!/Users/user/Projects/orchid/node_modules/less-loader/dist/cjs.js!/Users/user/Projects/orchid/src/styles/map.less",
"module": "./src/styles/map.less",
"moduleName": "./src/styles/map.less",
"type": "cjs require",
"userRequest": "!../../node_modules/style-loader/lib/addStyles.js",
"loc": "16:13-73"
},
{
"moduleId": 191,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/style-loader/index.js!/Users/user/Projects/orchid/node_modules/css-loader/index.js!/Users/user/Projects/orchid/node_modules/less-loader/dist/cjs.js!/Users/user/Projects/orchid/src/styles/controls.less",
"module": "./src/styles/controls.less",
"moduleName": "./src/styles/controls.less",
"type": "cjs require",
"userRequest": "!../../node_modules/style-loader/lib/addStyles.js",
"loc": "16:13-73"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 2,
"source": "/*\n\tMIT License http://www.opensource.org/licenses/mit-license.php\n\tAuthor Tobias Koppers @sokra\n*/\n\nvar stylesInDom = {};\n\nvar\tmemoize = function (fn) {\n\tvar memo;\n\n\treturn function () {\n\t\tif (typeof memo === \"undefined\") memo = fn.apply(this, arguments);\n\t\treturn memo;\n\t};\n};\n\nvar isOldIE = memoize(function () {\n\t// Test for IE <= 9 as proposed by Browserhacks\n\t// @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805\n\t// Tests for existence of standard globals is to allow style-loader\n\t// to operate correctly into non-standard environments\n\t// @see https://github.com/webpack-contrib/style-loader/issues/177\n\treturn window && document && document.all && !window.atob;\n});\n\nvar getTarget = function (target) {\n return document.querySelector(target);\n};\n\nvar getElement = (function (fn) {\n\tvar memo = {};\n\n\treturn function(target) {\n // If passing function in options, then use it for resolve \"head\" element.\n // Useful for Shadow Root style i.e\n // {\n // insertInto: function () { return document.querySelector(\"#foo\").shadowRoot }\n // }\n if (typeof target === 'function') {\n return target();\n }\n if (typeof memo[target] === \"undefined\") {\n\t\t\tvar styleTarget = getTarget.call(this, target);\n\t\t\t// Special case to return head of iframe instead of iframe itself\n\t\t\tif (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {\n\t\t\t\ttry {\n\t\t\t\t\t// This will throw an exception if access to iframe is blocked\n\t\t\t\t\t// due to cross-origin restrictions\n\t\t\t\t\tstyleTarget = styleTarget.contentDocument.head;\n\t\t\t\t} catch(e) {\n\t\t\t\t\tstyleTarget = null;\n\t\t\t\t}\n\t\t\t}\n\t\t\tmemo[target] = styleTarget;\n\t\t}\n\t\treturn memo[target]\n\t};\n})();\n\nvar singleton = null;\nvar\tsingletonCounter = 0;\nvar\tstylesInsertedAtTop = [];\n\nvar\tfixUrls = require(\"./urls\");\n\nmodule.exports = function(list, options) {\n\tif (typeof DEBUG !== \"undefined\" && DEBUG) {\n\t\tif (typeof document !== \"object\") throw new Error(\"The style-loader cannot be used in a non-browser environment\");\n\t}\n\n\toptions = options || {};\n\n\toptions.attrs = typeof options.attrs === \"object\" ? options.attrs : {};\n\n\t// Force single-tag solution on IE6-9, which has a hard limit on the # of <style>\n\t// tags it will allow on a page\n\tif (!options.singleton && typeof options.singleton !== \"boolean\") options.singleton = isOldIE();\n\n\t// By default, add <style> tags to the <head> element\n if (!options.insertInto) options.insertInto = \"head\";\n\n\t// By default, add <style> tags to the bottom of the target\n\tif (!options.insertAt) options.insertAt = \"bottom\";\n\n\tvar styles = listToStyles(list, options);\n\n\taddStylesToDom(styles, options);\n\n\treturn function update (newList) {\n\t\tvar mayRemove = [];\n\n\t\tfor (var i = 0; i < styles.length; i++) {\n\t\t\tvar item = styles[i];\n\t\t\tvar domStyle = stylesInDom[item.id];\n\n\t\t\tdomStyle.refs--;\n\t\t\tmayRemove.push(domStyle);\n\t\t}\n\n\t\tif(newList) {\n\t\t\tvar newStyles = listToStyles(newList, options);\n\t\t\taddStylesToDom(newStyles, options);\n\t\t}\n\n\t\tfor (var i = 0; i < mayRemove.length; i++) {\n\t\t\tvar domStyle = mayRemove[i];\n\n\t\t\tif(domStyle.refs === 0) {\n\t\t\t\tfor (var j = 0; j < domStyle.parts.length; j++) domStyle.parts[j]();\n\n\t\t\t\tdelete stylesInDom[domStyle.id];\n\t\t\t}\n\t\t}\n\t};\n};\n\nfunction addStylesToDom (styles, options) {\n\tfor (var i = 0; i < styles.length; i++) {\n\t\tvar item = styles[i];\n\t\tvar domStyle = stylesInDom[item.id];\n\n\t\tif(domStyle) {\n\t\t\tdomStyle.refs++;\n\n\t\t\tfor(var j = 0; j < domStyle.parts.length; j++) {\n\t\t\t\tdomStyle.parts[j](item.parts[j]);\n\t\t\t}\n\n\t\t\tfor(; j < item.parts.length; j++) {\n\t\t\t\tdomStyle.parts.push(addStyle(item.parts[j], options));\n\t\t\t}\n\t\t} else {\n\t\t\tvar parts = [];\n\n\t\t\tfor(var j = 0; j < item.parts.length; j++) {\n\t\t\t\tparts.push(addStyle(item.parts[j], options));\n\t\t\t}\n\n\t\t\tstylesInDom[item.id] = {id: item.id, refs: 1, parts: parts};\n\t\t}\n\t}\n}\n\nfunction listToStyles (list, options) {\n\tvar styles = [];\n\tvar newStyles = {};\n\n\tfor (var i = 0; i < list.length; i++) {\n\t\tvar item = list[i];\n\t\tvar id = options.base ? item[0] + options.base : item[0];\n\t\tvar css = item[1];\n\t\tvar media = item[2];\n\t\tvar sourceMap = item[3];\n\t\tvar part = {css: css, media: media, sourceMap: sourceMap};\n\n\t\tif(!newStyles[id]) styles.push(newStyles[id] = {id: id, parts: [part]});\n\t\telse newStyles[id].parts.push(part);\n\t}\n\n\treturn styles;\n}\n\nfunction insertStyleElement (options, style) {\n\tvar target = getElement(options.insertInto)\n\n\tif (!target) {\n\t\tthrow new Error(\"Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.\");\n\t}\n\n\tvar lastStyleElementInsertedAtTop = stylesInsertedAtTop[stylesInsertedAtTop.length - 1];\n\n\tif (options.insertAt === \"top\") {\n\t\tif (!lastStyleElementInsertedAtTop) {\n\t\t\ttarget.insertBefore(style, target.firstChild);\n\t\t} else if (lastStyleElementInsertedAtTop.nextSibling) {\n\t\t\ttarget.insertBefore(style, lastStyleElementInsertedAtTop.nextSibling);\n\t\t} else {\n\t\t\ttarget.appendChild(style);\n\t\t}\n\t\tstylesInsertedAtTop.push(style);\n\t} else if (options.insertAt === \"bottom\") {\n\t\ttarget.appendChild(style);\n\t} else if (typeof options.insertAt === \"object\" && options.insertAt.before) {\n\t\tvar nextSibling = getElement(options.insertInto + \" \" + options.insertAt.before);\n\t\ttarget.insertBefore(style, nextSibling);\n\t} else {\n\t\tthrow new Error(\"[Style Loader]\\n\\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\\n Must be 'top', 'bottom', or Object.\\n (https://github.com/webpack-contrib/style-loader#insertat)\\n\");\n\t}\n}\n\nfunction removeStyleElement (style) {\n\tif (style.parentNode === null) return false;\n\tstyle.parentNode.removeChild(style);\n\n\tvar idx = stylesInsertedAtTop.indexOf(style);\n\tif(idx >= 0) {\n\t\tstylesInsertedAtTop.splice(idx, 1);\n\t}\n}\n\nfunction createStyleElement (options) {\n\tvar style = document.createElement(\"style\");\n\n\tif(options.attrs.type === undefined) {\n\t\toptions.attrs.type = \"text/css\";\n\t}\n\n\taddAttrs(style, options.attrs);\n\tinsertStyleElement(options, style);\n\n\treturn style;\n}\n\nfunction createLinkElement (options) {\n\tvar link = document.createElement(\"link\");\n\n\tif(options.attrs.type === undefined) {\n\t\toptions.attrs.type = \"text/css\";\n\t}\n\toptions.attrs.rel = \"stylesheet\";\n\n\taddAttrs(link, options.attrs);\n\tinsertStyleElement(options, link);\n\n\treturn link;\n}\n\nfunction addAttrs (el, attrs) {\n\tObject.keys(attrs).forEach(function (key) {\n\t\tel.setAttribute(key, attrs[key]);\n\t});\n}\n\nfunction addStyle (obj, options) {\n\tvar style, update, remove, result;\n\n\t// If a transform function was defined, run it on the css\n\tif (options.transform && obj.css) {\n\t result = options.transform(obj.css);\n\n\t if (result) {\n\t \t// If transform returns a value, use that instead of the original css.\n\t \t// This allows running runtime transformations on the css.\n\t \tobj.css = result;\n\t } else {\n\t \t// If the transform function returns a falsy value, don't add this css.\n\t \t// This allows conditional loading of css\n\t \treturn function() {\n\t \t\t// noop\n\t \t};\n\t }\n\t}\n\n\tif (options.singleton) {\n\t\tvar styleIndex = singletonCounter++;\n\n\t\tstyle = singleton || (singleton = createStyleElement(options));\n\n\t\tupdate = applyToSingletonTag.bind(null, style, styleIndex, false);\n\t\tremove = applyToSingletonTag.bind(null, style, styleIndex, true);\n\n\t} else if (\n\t\tobj.sourceMap &&\n\t\ttypeof URL === \"function\" &&\n\t\ttypeof URL.createObjectURL === \"function\" &&\n\t\ttypeof URL.revokeObjectURL === \"function\" &&\n\t\ttypeof Blob === \"function\" &&\n\t\ttypeof btoa === \"function\"\n\t) {\n\t\tstyle = createLinkElement(options);\n\t\tupdate = updateLink.bind(null, style, options);\n\t\tremove = function () {\n\t\t\tremoveStyleElement(style);\n\n\t\t\tif(style.href) URL.revokeObjectURL(style.href);\n\t\t};\n\t} else {\n\t\tstyle = createStyleElement(options);\n\t\tupdate = applyToTag.bind(null, style);\n\t\tremove = function () {\n\t\t\tremoveStyleElement(style);\n\t\t};\n\t}\n\n\tupdate(obj);\n\n\treturn function updateStyle (newObj) {\n\t\tif (newObj) {\n\t\t\tif (\n\t\t\t\tnewObj.css === obj.css &&\n\t\t\t\tnewObj.media === obj.media &&\n\t\t\t\tnewObj.sourceMap === obj.sourceMap\n\t\t\t) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tupdate(obj = newObj);\n\t\t} else {\n\t\t\tremove();\n\t\t}\n\t};\n}\n\nvar replaceText = (function () {\n\tvar textStore = [];\n\n\treturn function (index, replacement) {\n\t\ttextStore[index] = replacement;\n\n\t\treturn textStore.filter(Boolean).join('\\n');\n\t};\n})();\n\nfunction applyToSingletonTag (style, index, remove, obj) {\n\tvar css = remove ? \"\" : obj.css;\n\n\tif (style.styleSheet) {\n\t\tstyle.styleSheet.cssText = replaceText(index, css);\n\t} else {\n\t\tvar cssNode = document.createTextNode(css);\n\t\tvar childNodes = style.childNodes;\n\n\t\tif (childNodes[index]) style.removeChild(childNodes[index]);\n\n\t\tif (childNodes.length) {\n\t\t\tstyle.insertBefore(cssNode, childNodes[index]);\n\t\t} else {\n\t\t\tstyle.appendChild(cssNode);\n\t\t}\n\t}\n}\n\nfunction applyToTag (style, obj) {\n\tvar css = obj.css;\n\tvar media = obj.media;\n\n\tif(media) {\n\t\tstyle.setAttribute(\"media\", media)\n\t}\n\n\tif(style.styleSheet) {\n\t\tstyle.styleSheet.cssText = css;\n\t} else {\n\t\twhile(style.firstChild) {\n\t\t\tstyle.removeChild(style.firstChild);\n\t\t}\n\n\t\tstyle.appendChild(document.createTextNode(css));\n\t}\n}\n\nfunction updateLink (link, options, obj) {\n\tvar css = obj.css;\n\tvar sourceMap = obj.sourceMap;\n\n\t/*\n\t\tIf convertToAbsoluteUrls isn't defined, but sourcemaps are enabled\n\t\tand there is no publicPath defined then lets turn convertToAbsoluteUrls\n\t\ton by default. Otherwise default to the convertToAbsoluteUrls option\n\t\tdirectly\n\t*/\n\tvar autoFixUrls = options.convertToAbsoluteUrls === undefined && sourceMap;\n\n\tif (options.convertToAbsoluteUrls || autoFixUrls) {\n\t\tcss = fixUrls(css);\n\t}\n\n\tif (sourceMap) {\n\t\t// http://stackoverflow.com/a/26603875\n\t\tcss += \"\\n/*# sourceMappingURL=data:application/json;base64,\" + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + \" */\";\n\t}\n\n\tvar blob = new Blob([css], { type: \"text/css\" });\n\n\tvar oldSrc = link.href;\n\n\tlink.href = URL.createObjectURL(blob);\n\n\tif(oldSrc) URL.revokeObjectURL(oldSrc);\n}\n"
},
{
"id": 43,
"identifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/localization.js",
"name": "./node_modules/leaflet-routing-machine/src/localization.js",
"index": 147,
"index2": 139,
"size": 20024,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/index.js",
"issuerId": 160,
"issuerName": "./node_modules/leaflet-routing-machine/src/index.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 146,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"name": "./src/modules/Router.js"
},
{
"id": 160,
"identifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/index.js",
"name": "./node_modules/leaflet-routing-machine/src/index.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 68,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/formatter.js",
"module": "./node_modules/leaflet-routing-machine/src/formatter.js",
"moduleName": "./node_modules/leaflet-routing-machine/src/formatter.js",
"type": "cjs require",
"userRequest": "./localization",
"loc": "6:20-45"
},
{
"moduleId": 72,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/geocoder-element.js",
"module": "./node_modules/leaflet-routing-machine/src/geocoder-element.js",
"moduleName": "./node_modules/leaflet-routing-machine/src/geocoder-element.js",
"type": "cjs require",
"userRequest": "./localization",
"loc": "6:20-45"
},
{
"moduleId": 160,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/index.js",
"module": "./node_modules/leaflet-routing-machine/src/index.js",
"moduleName": "./node_modules/leaflet-routing-machine/src/index.js",
"type": "cjs require",
"userRequest": "./localization",
"loc": "11:19-44"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 5,
"source": "/* \n NOTICE\n Since version 3.2.5, the functionality in this file is by\n default NOT used for localizing OSRM instructions.\n Instead, we rely on the module osrm-text-instructions (https://github.com/Project-OSRM/osrm-text-instructions/).\n \n This file can still be used for other routing backends, or if you specify the\n stepToText option in the OSRMv1 class.\n*/\n\n(function() {\n\t'use strict';\n\n\tvar spanish = {\n\t\tdirections: {\n\t\t\tN: 'norte',\n\t\t\tNE: 'noreste',\n\t\t\tE: 'este',\n\t\t\tSE: 'sureste',\n\t\t\tS: 'sur',\n\t\t\tSW: 'suroeste',\n\t\t\tW: 'oeste',\n\t\t\tNW: 'noroeste',\n\t\t\tSlightRight: 'leve giro a la derecha',\n\t\t\tRight: 'derecha',\n\t\t\tSharpRight: 'giro pronunciado a la derecha',\n\t\t\tSlightLeft: 'leve giro a la izquierda',\n\t\t\tLeft: 'izquierda',\n\t\t\tSharpLeft: 'giro pronunciado a la izquierda',\n\t\t\tUturn: 'media vuelta'\n\t\t},\n\t\tinstructions: {\n\t\t\t// instruction, postfix if the road is named\n\t\t\t'Head':\n\t\t\t\t['Derecho {dir}', ' sobre {road}'],\n\t\t\t'Continue':\n\t\t\t\t['Continuar {dir}', ' en {road}'],\n\t\t\t'TurnAround':\n\t\t\t\t['Dar vuelta'],\n\t\t\t'WaypointReached':\n\t\t\t\t['Llegó a un punto del camino'],\n\t\t\t'Roundabout':\n\t\t\t\t['Tomar {exitStr} salida en la rotonda', ' en {road}'],\n\t\t\t'DestinationReached':\n\t\t\t\t['Llegada a destino'],\n\t\t\t'Fork': ['En el cruce gira a {modifier}', ' hacia {road}'],\n\t\t\t'Merge': ['Incorpórate {modifier}', ' hacia {road}'],\n\t\t\t'OnRamp': ['Gira {modifier} en la salida', ' hacia {road}'],\n\t\t\t'OffRamp': ['Toma la salida {modifier}', ' hacia {road}'],\n\t\t\t'EndOfRoad': ['Gira {modifier} al final de la carretera', ' hacia {road}'],\n\t\t\t'Onto': 'hacia {road}'\n\t\t},\n\t\tformatOrder: function(n) {\n\t\t\treturn n + 'º';\n\t\t},\n\t\tui: {\n\t\t\tstartPlaceholder: 'Inicio',\n\t\t\tviaPlaceholder: 'Via {viaNumber}',\n\t\t\tendPlaceholder: 'Destino'\n\t\t},\n\t\tunits: {\n\t\t\tmeters: 'm',\n\t\t\tkilometers: 'km',\n\t\t\tyards: 'yd',\n\t\t\tmiles: 'mi',\n\t\t\thours: 'h',\n\t\t\tminutes: 'min',\n\t\t\tseconds: 's'\n\t\t}\n\t};\n\n\tL.Routing = L.Routing || {};\n\n\tvar Localization = L.Class.extend({\n\t\tinitialize: function(langs) {\n\t\t\tthis._langs = L.Util.isArray(langs) ? langs : [langs, 'en'];\n\n\t\t\tfor (var i = 0, l = this._langs.length; i < l; i++) {\n\t\t\t\tif (!Localization[this._langs[i]]) {\n\t\t\t\t\tthrow new Error('No localization for language \"' + this._langs[i] + '\".');\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\n\t\tlocalize: function(keys) {\n\t\t\tvar dict,\n\t\t\t\tkey,\n\t\t\t\tvalue;\n\n\t\t\tkeys = L.Util.isArray(keys) ? keys : [keys];\n\n\t\t\tfor (var i = 0, l = this._langs.length; i < l; i++) {\n\t\t\t\tdict = Localization[this._langs[i]];\n\t\t\t\tfor (var j = 0, nKeys = keys.length; dict && j < nKeys; j++) {\n\t\t\t\t\tkey = keys[j];\n\t\t\t\t\tvalue = dict[key];\n\t\t\t\t\tdict = value;\n\t\t\t\t}\n\n\t\t\t\tif (value) {\n\t\t\t\t\treturn value;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t});\n\n\tmodule.exports = L.extend(Localization, {\n\t\t'en': {\n\t\t\tdirections: {\n\t\t\t\tN: 'north',\n\t\t\t\tNE: 'northeast',\n\t\t\t\tE: 'east',\n\t\t\t\tSE: 'southeast',\n\t\t\t\tS: 'south',\n\t\t\t\tSW: 'southwest',\n\t\t\t\tW: 'west',\n\t\t\t\tNW: 'northwest',\n\t\t\t\tSlightRight: 'slight right',\n\t\t\t\tRight: 'right',\n\t\t\t\tSharpRight: 'sharp right',\n\t\t\t\tSlightLeft: 'slight left',\n\t\t\t\tLeft: 'left',\n\t\t\t\tSharpLeft: 'sharp left',\n\t\t\t\tUturn: 'Turn around'\n\t\t\t},\n\t\t\tinstructions: {\n\t\t\t\t// instruction, postfix if the road is named\n\t\t\t\t'Head':\n\t\t\t\t\t['Head {dir}', ' on {road}'],\n\t\t\t\t'Continue':\n\t\t\t\t\t['Continue {dir}'],\n\t\t\t\t'TurnAround':\n\t\t\t\t\t['Turn around'],\n\t\t\t\t'WaypointReached':\n\t\t\t\t\t['Waypoint reached'],\n\t\t\t\t'Roundabout':\n\t\t\t\t\t['Take the {exitStr} exit in the roundabout', ' onto {road}'],\n\t\t\t\t'DestinationReached':\n\t\t\t\t\t['Destination reached'],\n\t\t\t\t'Fork': ['At the fork, turn {modifier}', ' onto {road}'],\n\t\t\t\t'Merge': ['Merge {modifier}', ' onto {road}'],\n\t\t\t\t'OnRamp': ['Turn {modifier} on the ramp', ' onto {road}'],\n\t\t\t\t'OffRamp': ['Take the ramp on the {modifier}', ' onto {road}'],\n\t\t\t\t'EndOfRoad': ['Turn {modifier} at the end of the road', ' onto {road}'],\n\t\t\t\t'Onto': 'onto {road}'\n\t\t\t},\n\t\t\tformatOrder: function(n) {\n\t\t\t\tvar i = n % 10 - 1,\n\t\t\t\tsuffix = ['st', 'nd', 'rd'];\n\n\t\t\t\treturn suffix[i] ? n + suffix[i] : n + 'th';\n\t\t\t},\n\t\t\tui: {\n\t\t\t\tstartPlaceholder: 'Start',\n\t\t\t\tviaPlaceholder: 'Via {viaNumber}',\n\t\t\t\tendPlaceholder: 'End'\n\t\t\t},\n\t\t\tunits: {\n\t\t\t\tmeters: 'm',\n\t\t\t\tkilometers: 'km',\n\t\t\t\tyards: 'yd',\n\t\t\t\tmiles: 'mi',\n\t\t\t\thours: 'h',\n\t\t\t\tminutes: 'min',\n\t\t\t\tseconds: 's'\n\t\t\t}\n\t\t},\n\n\t\t'de': {\n\t\t\tdirections: {\n\t\t\t\tN: 'Norden',\n\t\t\t\tNE: 'Nordosten',\n\t\t\t\tE: 'Osten',\n\t\t\t\tSE: 'Südosten',\n\t\t\t\tS: 'Süden',\n\t\t\t\tSW: 'Südwesten',\n\t\t\t\tW: 'Westen',\n\t\t\t\tNW: 'Nordwesten',\n\t\t\t\tSlightRight: 'leicht rechts',\n\t\t\t\tRight: 'rechts',\n\t\t\t\tSharpRight: 'scharf rechts',\n\t\t\t\tSlightLeft: 'leicht links',\n\t\t\t\tLeft: 'links',\n\t\t\t\tSharpLeft: 'scharf links',\n\t\t\t\tUturn: 'Wenden'\n\t\t\t},\n\t\t\tinstructions: {\n\t\t\t\t// instruction, postfix if the road is named\n\t\t\t\t'Head':\n\t\t\t\t\t['Richtung {dir}', ' auf {road}'],\n\t\t\t\t'Continue':\n\t\t\t\t\t['Geradeaus Richtung {dir}', ' auf {road}'],\n\t\t\t\t'SlightRight':\n\t\t\t\t\t['Leicht rechts abbiegen', ' auf {road}'],\n\t\t\t\t'Right':\n\t\t\t\t\t['Rechts abbiegen', ' auf {road}'],\n\t\t\t\t'SharpRight':\n\t\t\t\t\t['Scharf rechts abbiegen', ' auf {road}'],\n\t\t\t\t'TurnAround':\n\t\t\t\t\t['Wenden'],\n\t\t\t\t'SharpLeft':\n\t\t\t\t\t['Scharf links abbiegen', ' auf {road}'],\n\t\t\t\t'Left':\n\t\t\t\t\t['Links abbiegen', ' auf {road}'],\n\t\t\t\t'SlightLeft':\n\t\t\t\t\t['Leicht links abbiegen', ' auf {road}'],\n\t\t\t\t'WaypointReached':\n\t\t\t\t\t['Zwischenhalt erreicht'],\n\t\t\t\t'Roundabout':\n\t\t\t\t\t['Nehmen Sie die {exitStr} Ausfahrt im Kreisverkehr', ' auf {road}'],\n\t\t\t\t'DestinationReached':\n\t\t\t\t\t['Sie haben ihr Ziel erreicht'],\n\t\t\t\t'Fork': ['An der Kreuzung {modifier}', ' auf {road}'],\n\t\t\t\t'Merge': ['Fahren Sie {modifier} weiter', ' auf {road}'],\n\t\t\t\t'OnRamp': ['Fahren Sie {modifier} auf die Auffahrt', ' auf {road}'],\n\t\t\t\t'OffRamp': ['Nehmen Sie die Ausfahrt {modifier}', ' auf {road}'],\n\t\t\t\t'EndOfRoad': ['Fahren Sie {modifier} am Ende der Straße', ' auf {road}'],\n\t\t\t\t'Onto': 'auf {road}'\n\t\t\t},\n\t\t\tformatOrder: function(n) {\n\t\t\t\treturn n + '.';\n\t\t\t},\n\t\t\tui: {\n\t\t\t\tstartPlaceholder: 'Start',\n\t\t\t\tviaPlaceholder: 'Via {viaNumber}',\n\t\t\t\tendPlaceholder: 'Ziel'\n\t\t\t}\n\t\t},\n\n\t\t'sv': {\n\t\t\tdirections: {\n\t\t\t\tN: 'norr',\n\t\t\t\tNE: 'nordost',\n\t\t\t\tE: 'öst',\n\t\t\t\tSE: 'sydost',\n\t\t\t\tS: 'syd',\n\t\t\t\tSW: 'sydväst',\n\t\t\t\tW: 'väst',\n\t\t\t\tNW: 'nordväst',\n\t\t\t\tSlightRight: 'svagt höger',\n\t\t\t\tRight: 'höger',\n\t\t\t\tSharpRight: 'skarpt höger',\n\t\t\t\tSlightLeft: 'svagt vänster',\n\t\t\t\tLeft: 'vänster',\n\t\t\t\tSharpLeft: 'skarpt vänster',\n\t\t\t\tUturn: 'Vänd'\n\t\t\t},\n\t\t\tinstructions: {\n\t\t\t\t// instruction, postfix if the road is named\n\t\t\t\t'Head':\n\t\t\t\t\t['Åk åt {dir}', ' till {road}'],\n\t\t\t\t'Continue':\n\t\t\t\t\t['Fortsätt {dir}'],\n\t\t\t\t'SlightRight':\n\t\t\t\t\t['Svagt höger', ' till {road}'],\n\t\t\t\t'Right':\n\t\t\t\t\t['Sväng höger', ' till {road}'],\n\t\t\t\t'SharpRight':\n\t\t\t\t\t['Skarpt höger', ' till {road}'],\n\t\t\t\t'TurnAround':\n\t\t\t\t\t['Vänd'],\n\t\t\t\t'SharpLeft':\n\t\t\t\t\t['Skarpt vänster', ' till {road}'],\n\t\t\t\t'Left':\n\t\t\t\t\t['Sväng vänster', ' till {road}'],\n\t\t\t\t'SlightLeft':\n\t\t\t\t\t['Svagt vänster', ' till {road}'],\n\t\t\t\t'WaypointReached':\n\t\t\t\t\t['Viapunkt nådd'],\n\t\t\t\t'Roundabout':\n\t\t\t\t\t['Tag {exitStr} avfarten i rondellen', ' till {road}'],\n\t\t\t\t'DestinationReached':\n\t\t\t\t\t['Framme vid resans mål'],\n\t\t\t\t'Fork': ['Tag av {modifier}', ' till {road}'],\n\t\t\t\t'Merge': ['Anslut {modifier} ', ' till {road}'],\n\t\t\t\t'OnRamp': ['Tag påfarten {modifier}', ' till {road}'],\n\t\t\t\t'OffRamp': ['Tag avfarten {modifier}', ' till {road}'],\n\t\t\t\t'EndOfRoad': ['Sväng {modifier} vid vägens slut', ' till {road}'],\n\t\t\t\t'Onto': 'till {road}'\n\t\t\t},\n\t\t\tformatOrder: function(n) {\n\t\t\t\treturn ['första', 'andra', 'tredje', 'fjärde', 'femte',\n\t\t\t\t\t'sjätte', 'sjunde', 'åttonde', 'nionde', 'tionde'\n\t\t\t\t\t/* Can't possibly be more than ten exits, can there? */][n - 1];\n\t\t\t},\n\t\t\tui: {\n\t\t\t\tstartPlaceholder: 'Från',\n\t\t\t\tviaPlaceholder: 'Via {viaNumber}',\n\t\t\t\tendPlaceholder: 'Till'\n\t\t\t}\n\t\t},\n\n\t\t'es': spanish,\n\t\t'sp': spanish,\n\t\t\n\t\t'nl': {\n\t\t\tdirections: {\n\t\t\t\tN: 'noordelijke',\n\t\t\t\tNE: 'noordoostelijke',\n\t\t\t\tE: 'oostelijke',\n\t\t\t\tSE: 'zuidoostelijke',\n\t\t\t\tS: 'zuidelijke',\n\t\t\t\tSW: 'zuidewestelijke',\n\t\t\t\tW: 'westelijke',\n\t\t\t\tNW: 'noordwestelijke'\n\t\t\t},\n\t\t\tinstructions: {\n\t\t\t\t// instruction, postfix if the road is named\n\t\t\t\t'Head':\n\t\t\t\t\t['Vertrek in {dir} richting', ' de {road} op'],\n\t\t\t\t'Continue':\n\t\t\t\t\t['Ga in {dir} richting', ' de {road} op'],\n\t\t\t\t'SlightRight':\n\t\t\t\t\t['Volg de weg naar rechts', ' de {road} op'],\n\t\t\t\t'Right':\n\t\t\t\t\t['Ga rechtsaf', ' de {road} op'],\n\t\t\t\t'SharpRight':\n\t\t\t\t\t['Ga scherpe bocht naar rechts', ' de {road} op'],\n\t\t\t\t'TurnAround':\n\t\t\t\t\t['Keer om'],\n\t\t\t\t'SharpLeft':\n\t\t\t\t\t['Ga scherpe bocht naar links', ' de {road} op'],\n\t\t\t\t'Left':\n\t\t\t\t\t['Ga linksaf', ' de {road} op'],\n\t\t\t\t'SlightLeft':\n\t\t\t\t\t['Volg de weg naar links', ' de {road} op'],\n\t\t\t\t'WaypointReached':\n\t\t\t\t\t['Aangekomen bij tussenpunt'],\n\t\t\t\t'Roundabout':\n\t\t\t\t\t['Neem de {exitStr} afslag op de rotonde', ' de {road} op'],\n\t\t\t\t'DestinationReached':\n\t\t\t\t\t['Aangekomen op eindpunt'],\n\t\t\t},\n\t\t\tformatOrder: function(n) {\n\t\t\t\tif (n === 1 || n >= 20) {\n\t\t\t\t\treturn n + 'ste';\n\t\t\t\t} else {\n\t\t\t\t\treturn n + 'de';\n\t\t\t\t}\n\t\t\t},\n\t\t\tui: {\n\t\t\t\tstartPlaceholder: 'Vertrekpunt',\n\t\t\t\tviaPlaceholder: 'Via {viaNumber}',\n\t\t\t\tendPlaceholder: 'Bestemming'\n\t\t\t}\n\t\t},\n\t\t'fr': {\n\t\t\tdirections: {\n\t\t\t\tN: 'nord',\n\t\t\t\tNE: 'nord-est',\n\t\t\t\tE: 'est',\n\t\t\t\tSE: 'sud-est',\n\t\t\t\tS: 'sud',\n\t\t\t\tSW: 'sud-ouest',\n\t\t\t\tW: 'ouest',\n\t\t\t\tNW: 'nord-ouest'\n\t\t\t},\n\t\t\tinstructions: {\n\t\t\t\t// instruction, postfix if the road is named\n\t\t\t\t'Head':\n\t\t\t\t\t['Tout droit au {dir}', ' sur {road}'],\n\t\t\t\t'Continue':\n\t\t\t\t\t['Continuer au {dir}', ' sur {road}'],\n\t\t\t\t'SlightRight':\n\t\t\t\t\t['Légèrement à droite', ' sur {road}'],\n\t\t\t\t'Right':\n\t\t\t\t\t['A droite', ' sur {road}'],\n\t\t\t\t'SharpRight':\n\t\t\t\t\t['Complètement à droite', ' sur {road}'],\n\t\t\t\t'TurnAround':\n\t\t\t\t\t['Faire demi-tour'],\n\t\t\t\t'SharpLeft':\n\t\t\t\t\t['Complètement à gauche', ' sur {road}'],\n\t\t\t\t'Left':\n\t\t\t\t\t['A gauche', ' sur {road}'],\n\t\t\t\t'SlightLeft':\n\t\t\t\t\t['Légèrement à gauche', ' sur {road}'],\n\t\t\t\t'WaypointReached':\n\t\t\t\t\t['Point d\\'étape atteint'],\n\t\t\t\t'Roundabout':\n\t\t\t\t\t['Au rond-point, prenez la {exitStr} sortie', ' sur {road}'],\n\t\t\t\t'DestinationReached':\n\t\t\t\t\t['Destination atteinte'],\n\t\t\t},\n\t\t\tformatOrder: function(n) {\n\t\t\t\treturn n + 'º';\n\t\t\t},\n\t\t\tui: {\n\t\t\t\tstartPlaceholder: 'Départ',\n\t\t\t\tviaPlaceholder: 'Intermédiaire {viaNumber}',\n\t\t\t\tendPlaceholder: 'Arrivée'\n\t\t\t}\n\t\t},\n\t\t'it': {\n\t\t\tdirections: {\n\t\t\t\tN: 'nord',\n\t\t\t\tNE: 'nord-est',\n\t\t\t\tE: 'est',\n\t\t\t\tSE: 'sud-est',\n\t\t\t\tS: 'sud',\n\t\t\t\tSW: 'sud-ovest',\n\t\t\t\tW: 'ovest',\n\t\t\t\tNW: 'nord-ovest'\n\t\t\t},\n\t\t\tinstructions: {\n\t\t\t\t// instruction, postfix if the road is named\n\t\t\t\t'Head':\n\t\t\t\t\t['Dritto verso {dir}', ' su {road}'],\n\t\t\t\t'Continue':\n\t\t\t\t\t['Continuare verso {dir}', ' su {road}'],\n\t\t\t\t'SlightRight':\n\t\t\t\t\t['Mantenere la destra', ' su {road}'],\n\t\t\t\t'Right':\n\t\t\t\t\t['A destra', ' su {road}'],\n\t\t\t\t'SharpRight':\n\t\t\t\t\t['Strettamente a destra', ' su {road}'],\n\t\t\t\t'TurnAround':\n\t\t\t\t\t['Fare inversione di marcia'],\n\t\t\t\t'SharpLeft':\n\t\t\t\t\t['Strettamente a sinistra', ' su {road}'],\n\t\t\t\t'Left':\n\t\t\t\t\t['A sinistra', ' sur {road}'],\n\t\t\t\t'SlightLeft':\n\t\t\t\t\t['Mantenere la sinistra', ' su {road}'],\n\t\t\t\t'WaypointReached':\n\t\t\t\t\t['Punto di passaggio raggiunto'],\n\t\t\t\t'Roundabout':\n\t\t\t\t\t['Alla rotonda, prendere la {exitStr} uscita'],\n\t\t\t\t'DestinationReached':\n\t\t\t\t\t['Destinazione raggiunta'],\n\t\t\t},\n\t\t\tformatOrder: function(n) {\n\t\t\t\treturn n + 'º';\n\t\t\t},\n\t\t\tui: {\n\t\t\t\tstartPlaceholder: 'Partenza',\n\t\t\t\tviaPlaceholder: 'Intermedia {viaNumber}',\n\t\t\t\tendPlaceholder: 'Destinazione'\n\t\t\t}\n\t\t},\n\t\t'pt': {\n\t\t\tdirections: {\n\t\t\t\tN: 'norte',\n\t\t\t\tNE: 'nordeste',\n\t\t\t\tE: 'leste',\n\t\t\t\tSE: 'sudeste',\n\t\t\t\tS: 'sul',\n\t\t\t\tSW: 'sudoeste',\n\t\t\t\tW: 'oeste',\n\t\t\t\tNW: 'noroeste',\n\t\t\t\tSlightRight: 'curva ligeira a direita',\n\t\t\t\tRight: 'direita',\n\t\t\t\tSharpRight: 'curva fechada a direita',\n\t\t\t\tSlightLeft: 'ligeira a esquerda',\n\t\t\t\tLeft: 'esquerda',\n\t\t\t\tSharpLeft: 'curva fechada a esquerda',\n\t\t\t\tUturn: 'Meia volta'\n\t\t\t},\n\t\t\tinstructions: {\n\t\t\t\t// instruction, postfix if the road is named\n\t\t\t\t'Head':\n\t\t\t\t\t['Siga {dir}', ' na {road}'],\n\t\t\t\t'Continue':\n\t\t\t\t\t['Continue {dir}', ' na {road}'],\n\t\t\t\t'SlightRight':\n\t\t\t\t\t['Curva ligeira a direita', ' na {road}'],\n\t\t\t\t'Right':\n\t\t\t\t\t['Curva a direita', ' na {road}'],\n\t\t\t\t'SharpRight':\n\t\t\t\t\t['Curva fechada a direita', ' na {road}'],\n\t\t\t\t'TurnAround':\n\t\t\t\t\t['Retorne'],\n\t\t\t\t'SharpLeft':\n\t\t\t\t\t['Curva fechada a esquerda', ' na {road}'],\n\t\t\t\t'Left':\n\t\t\t\t\t['Curva a esquerda', ' na {road}'],\n\t\t\t\t'SlightLeft':\n\t\t\t\t\t['Curva ligueira a esquerda', ' na {road}'],\n\t\t\t\t'WaypointReached':\n\t\t\t\t\t['Ponto de interesse atingido'],\n\t\t\t\t'Roundabout':\n\t\t\t\t\t['Pegue a {exitStr} saída na rotatória', ' na {road}'],\n\t\t\t\t'DestinationReached':\n\t\t\t\t\t['Destino atingido'],\n\t\t\t\t'Fork': ['Na encruzilhada, vire a {modifier}', ' na {road}'],\n\t\t\t\t'Merge': ['Entre à {modifier}', ' na {road}'],\n\t\t\t\t'OnRamp': ['Vire {modifier} na rampa', ' na {road}'],\n\t\t\t\t'OffRamp': ['Entre na rampa na {modifier}', ' na {road}'],\n\t\t\t\t'EndOfRoad': ['Vire {modifier} no fim da rua', ' na {road}'],\n\t\t\t\t'Onto': 'na {road}'\n\t\t\t},\n\t\t\tformatOrder: function(n) {\n\t\t\t\treturn n + 'º';\n\t\t\t},\n\t\t\tui: {\n\t\t\t\tstartPlaceholder: 'Origem',\n\t\t\t\tviaPlaceholder: 'Intermédio {viaNumber}',\n\t\t\t\tendPlaceholder: 'Destino'\n\t\t\t}\n\t\t},\n\t\t'sk': {\n\t\t\tdirections: {\n\t\t\t\tN: 'sever',\n\t\t\t\tNE: 'serverovýchod',\n\t\t\t\tE: 'východ',\n\t\t\t\tSE: 'juhovýchod',\n\t\t\t\tS: 'juh',\n\t\t\t\tSW: 'juhozápad',\n\t\t\t\tW: 'západ',\n\t\t\t\tNW: 'serverozápad'\n\t\t\t},\n\t\t\tinstructions: {\n\t\t\t\t// instruction, postfix if the road is named\n\t\t\t\t'Head':\n\t\t\t\t\t['Mierte na {dir}', ' na {road}'],\n\t\t\t\t'Continue':\n\t\t\t\t\t['Pokračujte na {dir}', ' na {road}'],\n\t\t\t\t'SlightRight':\n\t\t\t\t\t['Mierne doprava', ' na {road}'],\n\t\t\t\t'Right':\n\t\t\t\t\t['Doprava', ' na {road}'],\n\t\t\t\t'SharpRight':\n\t\t\t\t\t['Prudko doprava', ' na {road}'],\n\t\t\t\t'TurnAround':\n\t\t\t\t\t['Otočte sa'],\n\t\t\t\t'SharpLeft':\n\t\t\t\t\t['Prudko doľava', ' na {road}'],\n\t\t\t\t'Left':\n\t\t\t\t\t['Doľava', ' na {road}'],\n\t\t\t\t'SlightLeft':\n\t\t\t\t\t['Mierne doľava', ' na {road}'],\n\t\t\t\t'WaypointReached':\n\t\t\t\t\t['Ste v prejazdovom bode.'],\n\t\t\t\t'Roundabout':\n\t\t\t\t\t['Odbočte na {exitStr} výjazde', ' na {road}'],\n\t\t\t\t'DestinationReached':\n\t\t\t\t\t['Prišli ste do cieľa.'],\n\t\t\t},\n\t\t\tformatOrder: function(n) {\n\t\t\t\tvar i = n % 10 - 1,\n\t\t\t\tsuffix = ['.', '.', '.'];\n\n\t\t\t\treturn suffix[i] ? n + suffix[i] : n + '.';\n\t\t\t},\n\t\t\tui: {\n\t\t\t\tstartPlaceholder: 'Začiatok',\n\t\t\t\tviaPlaceholder: 'Cez {viaNumber}',\n\t\t\t\tendPlaceholder: 'Koniec'\n\t\t\t}\n\t\t},\n\t\t'el': {\n\t\t\tdirections: {\n\t\t\t\tN: 'βόρεια',\n\t\t\t\tNE: 'βορειοανατολικά',\n\t\t\t\tE: 'ανατολικά',\n\t\t\t\tSE: 'νοτιοανατολικά',\n\t\t\t\tS: 'νότια',\n\t\t\t\tSW: 'νοτιοδυτικά',\n\t\t\t\tW: 'δυτικά',\n\t\t\t\tNW: 'βορειοδυτικά'\n\t\t\t},\n\t\t\tinstructions: {\n\t\t\t\t// instruction, postfix if the road is named\n\t\t\t\t'Head':\n\t\t\t\t\t['Κατευθυνθείτε {dir}', ' στην {road}'],\n\t\t\t\t'Continue':\n\t\t\t\t\t['Συνεχίστε {dir}', ' στην {road}'],\n\t\t\t\t'SlightRight':\n\t\t\t\t\t['Ελαφρώς δεξιά', ' στην {road}'],\n\t\t\t\t'Right':\n\t\t\t\t\t['Δεξιά', ' στην {road}'],\n\t\t\t\t'SharpRight':\n\t\t\t\t\t['Απότομη δεξιά στροφή', ' στην {road}'],\n\t\t\t\t'TurnAround':\n\t\t\t\t\t['Κάντε αναστροφή'],\n\t\t\t\t'SharpLeft':\n\t\t\t\t\t['Απότομη αριστερή στροφή', ' στην {road}'],\n\t\t\t\t'Left':\n\t\t\t\t\t['Αριστερά', ' στην {road}'],\n\t\t\t\t'SlightLeft':\n\t\t\t\t\t['Ελαφρώς αριστερά', ' στην {road}'],\n\t\t\t\t'WaypointReached':\n\t\t\t\t\t['Φτάσατε στο σημείο αναφοράς'],\n\t\t\t\t'Roundabout':\n\t\t\t\t\t['Ακολουθήστε την {exitStr} έξοδο στο κυκλικό κόμβο', ' στην {road}'],\n\t\t\t\t'DestinationReached':\n\t\t\t\t\t['Φτάσατε στον προορισμό σας'],\n\t\t\t},\n\t\t\tformatOrder: function(n) {\n\t\t\t\treturn n + 'º';\n\t\t\t},\n\t\t\tui: {\n\t\t\t\tstartPlaceholder: 'Αφετηρία',\n\t\t\t\tviaPlaceholder: 'μέσω {viaNumber}',\n\t\t\t\tendPlaceholder: 'Προορισμός'\n\t\t\t}\n\t\t},\n\t\t'ca': {\n\t\t\tdirections: {\n\t\t\t\tN: 'nord',\n\t\t\t\tNE: 'nord-est',\n\t\t\t\tE: 'est',\n\t\t\t\tSE: 'sud-est',\n\t\t\t\tS: 'sud',\n\t\t\t\tSW: 'sud-oest',\n\t\t\t\tW: 'oest',\n\t\t\t\tNW: 'nord-oest',\n\t\t\t\tSlightRight: 'lleu gir a la dreta',\n\t\t\t\tRight: 'dreta',\n\t\t\t\tSharpRight: 'gir pronunciat a la dreta',\n\t\t\t\tSlightLeft: 'gir pronunciat a l\\'esquerra',\n\t\t\t\tLeft: 'esquerra',\n\t\t\t\tSharpLeft: 'lleu gir a l\\'esquerra',\n\t\t\t\tUturn: 'mitja volta'\n\t\t\t},\n\t\t\tinstructions: {\n\t\t\t\t'Head':\n\t\t\t\t\t['Recte {dir}', ' sobre {road}'],\n\t\t\t\t'Continue':\n\t\t\t\t\t['Continuar {dir}'],\n\t\t\t\t'TurnAround':\n\t\t\t\t\t['Donar la volta'],\n\t\t\t\t'WaypointReached':\n\t\t\t\t\t['Ha arribat a un punt del camí'],\n\t\t\t\t'Roundabout':\n\t\t\t\t\t['Agafar {exitStr} sortida a la rotonda', ' a {road}'],\n\t\t\t\t'DestinationReached':\n\t\t\t\t\t['Arribada al destí'],\n\t\t\t\t'Fork': ['A la cruïlla gira a la {modifier}', ' cap a {road}'],\n\t\t\t\t'Merge': ['Incorpora\\'t {modifier}', ' a {road}'],\n\t\t\t\t'OnRamp': ['Gira {modifier} a la sortida', ' cap a {road}'],\n\t\t\t\t'OffRamp': ['Pren la sortida {modifier}', ' cap a {road}'],\n\t\t\t\t'EndOfRoad': ['Gira {modifier} al final de la carretera', ' cap a {road}'],\n\t\t\t\t'Onto': 'cap a {road}'\n\t\t\t},\n\t\t\tformatOrder: function(n) {\n\t\t\t\treturn n + 'º';\n\t\t\t},\n\t\t\tui: {\n\t\t\t\tstartPlaceholder: 'Origen',\n\t\t\t\tviaPlaceholder: 'Via {viaNumber}',\n\t\t\t\tendPlaceholder: 'Destí'\n\t\t\t},\n\t\t\tunits: {\n\t\t\t\tmeters: 'm',\n\t\t\t\tkilometers: 'km',\n\t\t\t\tyards: 'yd',\n\t\t\t\tmiles: 'mi',\n\t\t\t\thours: 'h',\n\t\t\t\tminutes: 'min',\n\t\t\t\tseconds: 's'\n\t\t\t}\n\t\t},\n\t\t'ru': {\n\t\t\tdirections: {\n\t\t\t\tN: 'север',\n\t\t\t\tNE: 'северовосток',\n\t\t\t\tE: 'восток',\n\t\t\t\tSE: 'юговосток',\n\t\t\t\tS: 'юг',\n\t\t\t\tSW: 'югозапад',\n\t\t\t\tW: 'запад',\n\t\t\t\tNW: 'северозапад',\n\t\t\t\tSlightRight: 'плавно направо',\n\t\t\t\tRight: 'направо',\n\t\t\t\tSharpRight: 'резко направо',\n\t\t\t\tSlightLeft: 'плавно налево',\n\t\t\t\tLeft: 'налево',\n\t\t\t\tSharpLeft: 'резко налево',\n\t\t\t\tUturn: 'развернуться'\n\t\t\t},\n\t\t\tinstructions: {\n\t\t\t\t'Head':\n\t\t\t\t\t['Начать движение на {dir}', ' по {road}'],\n\t\t\t\t'Continue':\n\t\t\t\t\t['Продолжать движение на {dir}', ' по {road}'],\n\t\t\t\t'SlightRight':\n\t\t\t\t\t['Плавный поворот направо', ' на {road}'],\n\t\t\t\t'Right':\n\t\t\t\t\t['Направо', ' на {road}'],\n\t\t\t\t'SharpRight':\n\t\t\t\t\t['Резкий поворот направо', ' на {road}'],\n\t\t\t\t'TurnAround':\n\t\t\t\t\t['Развернуться'],\n\t\t\t\t'SharpLeft':\n\t\t\t\t\t['Резкий поворот налево', ' на {road}'],\n\t\t\t\t'Left':\n\t\t\t\t\t['Поворот налево', ' на {road}'],\n\t\t\t\t'SlightLeft':\n\t\t\t\t\t['Плавный поворот налево', ' на {road}'],\n\t\t\t\t'WaypointReached':\n\t\t\t\t\t['Точка достигнута'],\n\t\t\t\t'Roundabout':\n\t\t\t\t\t['{exitStr} съезд с кольца', ' на {road}'],\n\t\t\t\t'DestinationReached':\n\t\t\t\t\t['Окончание маршрута'],\n\t\t\t\t'Fork': ['На развилке поверните {modifier}', ' на {road}'],\n\t\t\t\t'Merge': ['Перестройтесь {modifier}', ' на {road}'],\n\t\t\t\t'OnRamp': ['Поверните {modifier} на съезд', ' на {road}'],\n\t\t\t\t'OffRamp': ['Съезжайте на {modifier}', ' на {road}'],\n\t\t\t\t'EndOfRoad': ['Поверните {modifier} в конце дороги', ' на {road}'],\n\t\t\t\t'Onto': 'на {road}'\n\t\t\t},\n\t\t\tformatOrder: function(n) {\n\t\t\t\treturn n + '-й';\n\t\t\t},\n\t\t\tui: {\n\t\t\t\tstartPlaceholder: 'Начало',\n\t\t\t\tviaPlaceholder: 'Через {viaNumber}',\n\t\t\t\tendPlaceholder: 'Конец'\n\t\t\t},\n\t\t\tunits: {\n\t\t\t\tmeters: 'м',\n\t\t\t\tkilometers: 'км',\n\t\t\t\tyards: 'ярд',\n\t\t\t\tmiles: 'ми',\n\t\t\t\thours: 'ч',\n\t\t\t\tminutes: 'м',\n\t\t\t\tseconds: 'с'\n\t\t\t}\n\t\t},\n \n 'pl': {\n\t\t\tdirections: {\n\t\t\t\tN: 'północ',\n\t\t\t\tNE: 'północny wschód',\n\t\t\t\tE: 'wschód',\n\t\t\t\tSE: 'południowy wschód',\n\t\t\t\tS: 'południe',\n\t\t\t\tSW: 'południowy zachód',\n\t\t\t\tW: 'zachód',\n\t\t\t\tNW: 'północny zachód',\n\t\t\t\tSlightRight: 'lekko w prawo',\n\t\t\t\tRight: 'w prawo',\n\t\t\t\tSharpRight: 'ostro w prawo',\n\t\t\t\tSlightLeft: 'lekko w lewo',\n\t\t\t\tLeft: 'w lewo',\n\t\t\t\tSharpLeft: 'ostro w lewo',\n\t\t\t\tUturn: 'zawróć'\n\t\t\t},\n\t\t\tinstructions: {\n\t\t\t\t// instruction, postfix if the road is named\n\t\t\t\t'Head':\n\t\t\t\t\t['Kieruj się na {dir}', ' na {road}'],\n\t\t\t\t'Continue':\n\t\t\t\t\t['Jedź dalej przez {dir}'],\n\t\t\t\t'TurnAround':\n\t\t\t\t\t['Zawróć'],\n\t\t\t\t'WaypointReached':\n\t\t\t\t\t['Punkt pośredni'],\n\t\t\t\t'Roundabout':\n\t\t\t\t\t['Wyjedź {exitStr} zjazdem na rondzie', ' na {road}'],\n\t\t\t\t'DestinationReached':\n\t\t\t\t\t['Dojechano do miejsca docelowego'],\n\t\t\t\t'Fork': ['Na rozwidleniu {modifier}', ' na {road}'],\n\t\t\t\t'Merge': ['Zjedź {modifier}', ' na {road}'],\n\t\t\t\t'OnRamp': ['Wjazd {modifier}', ' na {road}'],\n\t\t\t\t'OffRamp': ['Zjazd {modifier}', ' na {road}'],\n\t\t\t\t'EndOfRoad': ['Skręć {modifier} na końcu drogi', ' na {road}'],\n\t\t\t\t'Onto': 'na {road}'\n\t\t\t},\n\t\t\tformatOrder: function(n) {\n\t\t\t\treturn n + '.';\n\t\t\t},\n\t\t\tui: {\n\t\t\t\tstartPlaceholder: 'Początek',\n\t\t\t\tviaPlaceholder: 'Przez {viaNumber}',\n\t\t\t\tendPlaceholder: 'Koniec'\n\t\t\t},\n\t\t\tunits: {\n\t\t\t\tmeters: 'm',\n\t\t\t\tkilometers: 'km',\n\t\t\t\tyards: 'yd',\n\t\t\t\tmiles: 'mi',\n\t\t\t\thours: 'godz',\n\t\t\t\tminutes: 'min',\n\t\t\t\tseconds: 's'\n\t\t\t}\n\t\t}\n\t});\n})();\n"
},
{
"id": 44,
"identifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/waypoint.js",
"name": "./node_modules/leaflet-routing-machine/src/waypoint.js",
"index": 153,
"index2": 146,
"size": 291,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/index.js",
"issuerId": 160,
"issuerName": "./node_modules/leaflet-routing-machine/src/index.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 146,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"name": "./src/modules/Router.js"
},
{
"id": 160,
"identifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/index.js",
"name": "./node_modules/leaflet-routing-machine/src/index.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 45,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/osrm-v1.js",
"module": "./node_modules/leaflet-routing-machine/src/osrm-v1.js",
"moduleName": "./node_modules/leaflet-routing-machine/src/osrm-v1.js",
"type": "cjs require",
"userRequest": "./waypoint",
"loc": "16:16-37"
},
{
"moduleId": 71,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/plan.js",
"module": "./node_modules/leaflet-routing-machine/src/plan.js",
"moduleName": "./node_modules/leaflet-routing-machine/src/plan.js",
"type": "cjs require",
"userRequest": "./waypoint",
"loc": "6:16-37"
},
{
"moduleId": 160,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/index.js",
"module": "./node_modules/leaflet-routing-machine/src/index.js",
"moduleName": "./node_modules/leaflet-routing-machine/src/index.js",
"type": "cjs require",
"userRequest": "./waypoint",
"loc": "7:15-36"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 5,
"source": "(function() {\n\t'use strict';\n\n\tvar L = require('leaflet');\n\n\tmodule.exports = L.Class.extend({\n\t\toptions: {\n\t\t\tallowUTurn: false,\n\t\t},\n\t\tinitialize: function(latLng, name, options) {\n\t\t\tL.Util.setOptions(this, options);\n\t\t\tthis.latLng = L.latLng(latLng);\n\t\t\tthis.name = name;\n\t\t}\n\t});\n})();\n"
},
{
"id": 45,
"identifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/osrm-v1.js",
"name": "./node_modules/leaflet-routing-machine/src/osrm-v1.js",
"index": 154,
"index2": 150,
"size": 9870,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/index.js",
"issuerId": 160,
"issuerName": "./node_modules/leaflet-routing-machine/src/index.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 146,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"name": "./src/modules/Router.js"
},
{
"id": 160,
"identifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/index.js",
"name": "./node_modules/leaflet-routing-machine/src/index.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 160,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/index.js",
"module": "./node_modules/leaflet-routing-machine/src/index.js",
"moduleName": "./node_modules/leaflet-routing-machine/src/index.js",
"type": "cjs require",
"userRequest": "./osrm-v1",
"loc": "5:13-33"
},
{
"moduleId": 161,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/control.js",
"module": "./node_modules/leaflet-routing-machine/src/control.js",
"moduleName": "./node_modules/leaflet-routing-machine/src/control.js",
"type": "cjs require",
"userRequest": "./osrm-v1",
"loc": "9:14-34"
},
{
"moduleId": 164,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/mapbox.js",
"module": "./node_modules/leaflet-routing-machine/src/mapbox.js",
"moduleName": "./node_modules/leaflet-routing-machine/src/mapbox.js",
"type": "cjs require",
"userRequest": "./osrm-v1",
"loc": "6:14-34"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 5,
"source": "(function() {\n\t'use strict';\n\n\tvar L = require('leaflet'),\n\t\tcorslite = require('@mapbox/corslite'),\n\t\tpolyline = require('@mapbox/polyline');\n\t\t// osrmTextInstructions = require('osrm-text-instructions')('v5');\n const osrmTextInstructions = {\n compile: () => {},\n };\n\n\t// Ignore camelcase naming for this file, since OSRM's API uses\n\t// underscores.\n\t/* jshint camelcase: false */\n\n\tvar Waypoint = require('./waypoint');\n\n\t/**\n\t * Works against OSRM's new API in version 5.0; this has\n\t * the API version v1.\n\t */\n\tmodule.exports = L.Class.extend({\n\t\toptions: {\n\t\t\tserviceUrl: 'https://router.project-osrm.org/route/v1',\n\t\t\tprofile: 'driving',\n\t\t\ttimeout: 30 * 1000,\n\t\t\troutingOptions: {\n\t\t\t\talternatives: true,\n\t\t\t\tsteps: true\n\t\t\t},\n\t\t\tpolylinePrecision: 5,\n\t\t\tuseHints: true,\n\t\t\tsuppressDemoServerWarning: false,\n\t\t\tlanguage: 'en'\n\t\t},\n\n\t\tinitialize: function(options) {\n\t\t\tL.Util.setOptions(this, options);\n\t\t\tthis._hints = {\n\t\t\t\tlocations: {}\n\t\t\t};\n\n\t\t\tif (!this.options.suppressDemoServerWarning &&\n\t\t\t\tthis.options.serviceUrl.indexOf('//router.project-osrm.org') >= 0) {\n\t\t\t\tconsole.warn('You are using OSRM\\'s demo server. ' +\n\t\t\t\t\t'Please note that it is **NOT SUITABLE FOR PRODUCTION USE**.\\n' +\n\t\t\t\t\t'Refer to the demo server\\'s usage policy: ' +\n\t\t\t\t\t'https://github.com/Project-OSRM/osrm-backend/wiki/Api-usage-policy\\n\\n' +\n\t\t\t\t\t'To change, set the serviceUrl option.\\n\\n' +\n\t\t\t\t\t'Please do not report issues with this server to neither ' +\n\t\t\t\t\t'Leaflet Routing Machine or OSRM - it\\'s for\\n' +\n\t\t\t\t\t'demo only, and will sometimes not be available, or work in ' +\n\t\t\t\t\t'unexpected ways.\\n\\n' +\n\t\t\t\t\t'Please set up your own OSRM server, or use a paid service ' +\n\t\t\t\t\t'provider for production.');\n\t\t\t}\n\t\t},\n\n\t\troute: function(waypoints, callback, context, options) {\n\t\t\tvar timedOut = false,\n\t\t\t\twps = [],\n\t\t\t\turl,\n\t\t\t\ttimer,\n\t\t\t\twp,\n\t\t\t\ti,\n\t\t\t\txhr;\n\n\t\t\toptions = L.extend({}, this.options.routingOptions, options);\n\t\t\turl = this.buildRouteUrl(waypoints, options);\n\t\t\tif (this.options.requestParameters) {\n\t\t\t\turl += L.Util.getParamString(this.options.requestParameters, url);\n\t\t\t}\n\n\t\t\ttimer = setTimeout(function() {\n\t\t\t\ttimedOut = true;\n\t\t\t\tcallback.call(context || callback, {\n\t\t\t\t\tstatus: -1,\n\t\t\t\t\tmessage: 'OSRM request timed out.'\n\t\t\t\t});\n\t\t\t}, this.options.timeout);\n\n\t\t\t// Create a copy of the waypoints, since they\n\t\t\t// might otherwise be asynchronously modified while\n\t\t\t// the request is being processed.\n\t\t\tfor (i = 0; i < waypoints.length; i++) {\n\t\t\t\twp = waypoints[i];\n\t\t\t\twps.push(new Waypoint(wp.latLng, wp.name, wp.options));\n\t\t\t}\n\n\t\t\treturn xhr = corslite(url, L.bind(function(err, resp) {\n\t\t\t\tvar data,\n\t\t\t\t\terror = {};\n\n\t\t\t\tclearTimeout(timer);\n\t\t\t\tif (!timedOut) {\n\t\t\t\t\tif (!err) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tdata = JSON.parse(resp.responseText);\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\treturn this._routeDone(data, wps, options, callback, context);\n\t\t\t\t\t\t\t} catch (ex) {\n\t\t\t\t\t\t\t\terror.status = -3;\n\t\t\t\t\t\t\t\terror.message = ex.toString();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (ex) {\n\t\t\t\t\t\t\terror.status = -2;\n\t\t\t\t\t\t\terror.message = 'Error parsing OSRM response: ' + ex.toString();\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\terror.message = 'HTTP request failed: ' + err.type +\n\t\t\t\t\t\t\t(err.target && err.target.status ? ' HTTP ' + err.target.status + ': ' + err.target.statusText : '');\n\t\t\t\t\t\terror.url = url;\n\t\t\t\t\t\terror.status = -1;\n\t\t\t\t\t\terror.target = err;\n\t\t\t\t\t}\n\n\t\t\t\t\tcallback.call(context || callback, error);\n\t\t\t\t} else {\n\t\t\t\t\txhr.abort();\n\t\t\t\t}\n\t\t\t}, this));\n\t\t},\n\n\t\trequiresMoreDetail: function(route, zoom, bounds) {\n\t\t\tif (!route.properties.isSimplified) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tvar waypoints = route.inputWaypoints,\n\t\t\t\ti;\n\t\t\tfor (i = 0; i < waypoints.length; ++i) {\n\t\t\t\tif (!bounds.contains(waypoints[i].latLng)) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn false;\n\t\t},\n\n\t\t_routeDone: function(response, inputWaypoints, options, callback, context) {\n\t\t\tvar alts = [],\n\t\t\t actualWaypoints,\n\t\t\t i,\n\t\t\t route;\n\n\t\t\tcontext = context || callback;\n\t\t\tif (response.code !== 'Ok') {\n\t\t\t\tcallback.call(context, {\n\t\t\t\t\tstatus: response.code\n\t\t\t\t});\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tactualWaypoints = this._toWaypoints(inputWaypoints, response.waypoints);\n\n\t\t\tfor (i = 0; i < response.routes.length; i++) {\n\t\t\t\troute = this._convertRoute(response.routes[i]);\n\t\t\t\troute.inputWaypoints = inputWaypoints;\n\t\t\t\troute.waypoints = actualWaypoints;\n\t\t\t\troute.properties = {isSimplified: !options || !options.geometryOnly || options.simplifyGeometry};\n\t\t\t\talts.push(route);\n\t\t\t}\n\n\t\t\tthis._saveHintData(response.waypoints, inputWaypoints);\n\n\t\t\tcallback.call(context, null, alts);\n\t\t},\n\n\t\t_convertRoute: function(responseRoute) {\n\t\t\tvar result = {\n\t\t\t\t\tname: '',\n\t\t\t\t\tcoordinates: [],\n\t\t\t\t\tinstructions: [],\n\t\t\t\t\tsummary: {\n\t\t\t\t\t\ttotalDistance: responseRoute.distance,\n\t\t\t\t\t\ttotalTime: responseRoute.duration\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\tlegNames = [],\n\t\t\t\twaypointIndices = [],\n\t\t\t\tindex = 0,\n\t\t\t\tlegCount = responseRoute.legs.length,\n\t\t\t\thasSteps = responseRoute.legs[0].steps.length > 0,\n\t\t\t\ti,\n\t\t\t\tj,\n\t\t\t\tleg,\n\t\t\t\tstep,\n\t\t\t\tgeometry,\n\t\t\t\ttype,\n\t\t\t\tmodifier,\n\t\t\t\ttext,\n\t\t\t\tstepToText;\n\n\t\t\tif (this.options.stepToText) {\n\t\t\t\tstepToText = this.options.stepToText;\n\t\t\t} else {\n\t\t\t\tstepToText = L.bind(osrmTextInstructions.compile, osrmTextInstructions, this.options.language);\n\t\t\t}\n\n\t\t\tfor (i = 0; i < legCount; i++) {\n\t\t\t\tleg = responseRoute.legs[i];\n\t\t\t\tlegNames.push(leg.summary && leg.summary.charAt(0).toUpperCase() + leg.summary.substring(1));\n\t\t\t\tfor (j = 0; j < leg.steps.length; j++) {\n\t\t\t\t\tstep = leg.steps[j];\n\t\t\t\t\tgeometry = this._decodePolyline(step.geometry);\n\t\t\t\t\tresult.coordinates.push.apply(result.coordinates, geometry);\n\t\t\t\t\ttype = this._maneuverToInstructionType(step.maneuver, i === legCount - 1);\n\t\t\t\t\tmodifier = this._maneuverToModifier(step.maneuver);\n\t\t\t\t\ttext = stepToText(step, {legCount: legCount, legIndex: i});\n\n\t\t\t\t\tif (type) {\n\t\t\t\t\t\tif ((i == 0 && step.maneuver.type == 'depart') || step.maneuver.type == 'arrive') {\n\t\t\t\t\t\t\twaypointIndices.push(index);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tresult.instructions.push({\n\t\t\t\t\t\t\ttype: type,\n\t\t\t\t\t\t\tdistance: step.distance,\n\t\t\t\t\t\t\ttime: step.duration,\n\t\t\t\t\t\t\troad: step.name,\n\t\t\t\t\t\t\tdirection: this._bearingToDirection(step.maneuver.bearing_after),\n\t\t\t\t\t\t\texit: step.maneuver.exit,\n\t\t\t\t\t\t\tindex: index,\n\t\t\t\t\t\t\tmode: step.mode,\n\t\t\t\t\t\t\tmodifier: modifier,\n\t\t\t\t\t\t\ttext: text\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\n\t\t\t\t\tindex += geometry.length;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tresult.name = legNames.join(', ');\n\t\t\tif (!hasSteps) {\n\t\t\t\tresult.coordinates = this._decodePolyline(responseRoute.geometry);\n\t\t\t} else {\n\t\t\t\tresult.waypointIndices = waypointIndices;\n\t\t\t}\n\n\t\t\treturn result;\n\t\t},\n\n\t\t_bearingToDirection: function(bearing) {\n\t\t\tvar oct = Math.round(bearing / 45) % 8;\n\t\t\treturn ['N', 'NE', 'E', 'SE', 'S', 'SW', 'W', 'NW'][oct];\n\t\t},\n\n\t\t_maneuverToInstructionType: function(maneuver, lastLeg) {\n\t\t\tswitch (maneuver.type) {\n\t\t\tcase 'new name':\n\t\t\t\treturn 'Continue';\n\t\t\tcase 'depart':\n\t\t\t\treturn 'Head';\n\t\t\tcase 'arrive':\n\t\t\t\treturn lastLeg ? 'DestinationReached' : 'WaypointReached';\n\t\t\tcase 'roundabout':\n\t\t\tcase 'rotary':\n\t\t\t\treturn 'Roundabout';\n\t\t\tcase 'merge':\n\t\t\tcase 'fork':\n\t\t\tcase 'on ramp':\n\t\t\tcase 'off ramp':\n\t\t\tcase 'end of road':\n\t\t\t\treturn this._camelCase(maneuver.type);\n\t\t\t// These are all reduced to the same instruction in the current model\n\t\t\t//case 'turn':\n\t\t\t//case 'ramp': // deprecated in v5.1\n\t\t\tdefault:\n\t\t\t\treturn this._camelCase(maneuver.modifier);\n\t\t\t}\n\t\t},\n\n\t\t_maneuverToModifier: function(maneuver) {\n\t\t\tvar modifier = maneuver.modifier;\n\n\t\t\tswitch (maneuver.type) {\n\t\t\tcase 'merge':\n\t\t\tcase 'fork':\n\t\t\tcase 'on ramp':\n\t\t\tcase 'off ramp':\n\t\t\tcase 'end of road':\n\t\t\t\tmodifier = this._leftOrRight(modifier);\n\t\t\t}\n\n\t\t\treturn modifier && this._camelCase(modifier);\n\t\t},\n\n\t\t_camelCase: function(s) {\n\t\t\tvar words = s.split(' '),\n\t\t\t\tresult = '';\n\t\t\tfor (var i = 0, l = words.length; i < l; i++) {\n\t\t\t\tresult += words[i].charAt(0).toUpperCase() + words[i].substring(1);\n\t\t\t}\n\n\t\t\treturn result;\n\t\t},\n\n\t\t_leftOrRight: function(d) {\n\t\t\treturn d.indexOf('left') >= 0 ? 'Left' : 'Right';\n\t\t},\n\n\t\t_decodePolyline: function(routeGeometry) {\n\t\t\tvar cs = polyline.decode(routeGeometry, this.options.polylinePrecision),\n\t\t\t\tresult = new Array(cs.length),\n\t\t\t\ti;\n\t\t\tfor (i = cs.length - 1; i >= 0; i--) {\n\t\t\t\tresult[i] = L.latLng(cs[i]);\n\t\t\t}\n\n\t\t\treturn result;\n\t\t},\n\n\t\t_toWaypoints: function(inputWaypoints, vias) {\n\t\t\tvar wps = [],\n\t\t\t i,\n\t\t\t viaLoc;\n\t\t\tfor (i = 0; i < vias.length; i++) {\n\t\t\t\tviaLoc = vias[i].location;\n\t\t\t\twps.push(new Waypoint(L.latLng(viaLoc[1], viaLoc[0]),\n\t\t\t\t inputWaypoints[i].name,\n\t\t\t\t\t\t\t\t\t\t\tinputWaypoints[i].options));\n\t\t\t}\n\n\t\t\treturn wps;\n\t\t},\n\n\t\tbuildRouteUrl: function(waypoints, options) {\n\t\t\tvar locs = [],\n\t\t\t\thints = [],\n\t\t\t\twp,\n\t\t\t\tlatLng,\n\t\t\t computeInstructions,\n\t\t\t computeAlternative = true;\n\n\t\t\tfor (var i = 0; i < waypoints.length; i++) {\n\t\t\t\twp = waypoints[i];\n\t\t\t\tlatLng = wp.latLng;\n\t\t\t\tlocs.push(latLng.lng + ',' + latLng.lat);\n\t\t\t\thints.push(this._hints.locations[this._locationKey(latLng)] || '');\n\t\t\t}\n\n\t\t\tcomputeInstructions =\n\t\t\t\ttrue;\n\n\t\t\treturn this.options.serviceUrl + '/' + this.options.profile + '/' +\n\t\t\t\tlocs.join(';') + '?' +\n\t\t\t\t(options.geometryOnly ? (options.simplifyGeometry ? '' : 'overview=full') : 'overview=false') +\n\t\t\t\t'&alternatives=' + computeAlternative.toString() +\n\t\t\t\t'&steps=' + computeInstructions.toString() +\n\t\t\t\t(this.options.useHints ? '&hints=' + hints.join(';') : '') +\n\t\t\t\t(options.allowUTurns ? '&continue_straight=' + !options.allowUTurns : '');\n\t\t},\n\n\t\t_locationKey: function(location) {\n\t\t\treturn location.lat + ',' + location.lng;\n\t\t},\n\n\t\t_saveHintData: function(actualWaypoints, waypoints) {\n\t\t\tvar loc;\n\t\t\tthis._hints = {\n\t\t\t\tlocations: {}\n\t\t\t};\n\t\t\tfor (var i = actualWaypoints.length - 1; i >= 0; i--) {\n\t\t\t\tloc = waypoints[i].latLng;\n\t\t\t\tthis._hints.locations[this._locationKey(loc)] = actualWaypoints[i].hint;\n\t\t\t}\n\t\t},\n\t});\n})();\n"
},
{
"id": 46,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/defaults.js",
"name": "./node_modules/axios/lib/defaults.js",
"index": 167,
"index2": 171,
"size": 2432,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/axios/lib/axios.js",
"issuerId": 169,
"issuerName": "./node_modules/axios/lib/axios.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 167,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Shotter.js",
"name": "./src/modules/Shotter.js"
},
{
"id": 168,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/index.js",
"name": "./node_modules/axios/index.js"
},
{
"id": 169,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/axios.js",
"name": "./node_modules/axios/lib/axios.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 169,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/axios/lib/axios.js",
"module": "./node_modules/axios/lib/axios.js",
"moduleName": "./node_modules/axios/lib/axios.js",
"type": "cjs require",
"userRequest": "./defaults",
"loc": "6:15-36"
},
{
"moduleId": 171,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/axios/lib/core/Axios.js",
"module": "./node_modules/axios/lib/core/Axios.js",
"moduleName": "./node_modules/axios/lib/core/Axios.js",
"type": "cjs require",
"userRequest": "./../defaults",
"loc": "3:15-39"
},
{
"moduleId": 182,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/axios/lib/core/dispatchRequest.js",
"module": "./node_modules/axios/lib/core/dispatchRequest.js",
"moduleName": "./node_modules/axios/lib/core/dispatchRequest.js",
"type": "cjs require",
"userRequest": "../defaults",
"loc": "6:15-37"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 6,
"source": "'use strict';\n\nvar utils = require('./utils');\nvar normalizeHeaderName = require('./helpers/normalizeHeaderName');\n\nvar DEFAULT_CONTENT_TYPE = {\n 'Content-Type': 'application/x-www-form-urlencoded'\n};\n\nfunction setContentTypeIfUnset(headers, value) {\n if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) {\n headers['Content-Type'] = value;\n }\n}\n\nfunction getDefaultAdapter() {\n var adapter;\n if (typeof XMLHttpRequest !== 'undefined') {\n // For browsers use XHR adapter\n adapter = require('./adapters/xhr');\n } else if (typeof process !== 'undefined') {\n // For node use HTTP adapter\n adapter = require('./adapters/http');\n }\n return adapter;\n}\n\nvar defaults = {\n adapter: getDefaultAdapter(),\n\n transformRequest: [function transformRequest(data, headers) {\n normalizeHeaderName(headers, 'Content-Type');\n if (utils.isFormData(data) ||\n utils.isArrayBuffer(data) ||\n utils.isBuffer(data) ||\n utils.isStream(data) ||\n utils.isFile(data) ||\n utils.isBlob(data)\n ) {\n return data;\n }\n if (utils.isArrayBufferView(data)) {\n return data.buffer;\n }\n if (utils.isURLSearchParams(data)) {\n setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8');\n return data.toString();\n }\n if (utils.isObject(data)) {\n setContentTypeIfUnset(headers, 'application/json;charset=utf-8');\n return JSON.stringify(data);\n }\n return data;\n }],\n\n transformResponse: [function transformResponse(data) {\n /*eslint no-param-reassign:0*/\n if (typeof data === 'string') {\n try {\n data = JSON.parse(data);\n } catch (e) { /* Ignore */ }\n }\n return data;\n }],\n\n /**\n * A timeout in milliseconds to abort a request. If set to 0 (default) a\n * timeout is not created.\n */\n timeout: 0,\n\n xsrfCookieName: 'XSRF-TOKEN',\n xsrfHeaderName: 'X-XSRF-TOKEN',\n\n maxContentLength: -1,\n\n validateStatus: function validateStatus(status) {\n return status >= 200 && status < 300;\n }\n};\n\ndefaults.headers = {\n common: {\n 'Accept': 'application/json, text/plain, */*'\n }\n};\n\nutils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) {\n defaults.headers[method] = {};\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE);\n});\n\nmodule.exports = defaults;\n"
},
{
"id": 47,
"identifier": "/Users/user/Projects/orchid/node_modules/object-assign/index.js",
"name": "./node_modules/object-assign/index.js",
"index": 4,
"index2": 1,
"size": 2108,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/react/cjs/react.production.min.js",
"issuerId": 80,
"issuerName": "./node_modules/react/cjs/react.production.min.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 20,
"identifier": "/Users/user/Projects/orchid/node_modules/react/index.js",
"name": "./node_modules/react/index.js"
},
{
"id": 80,
"identifier": "/Users/user/Projects/orchid/node_modules/react/cjs/react.production.min.js",
"name": "./node_modules/react/cjs/react.production.min.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 80,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/react/cjs/react.production.min.js",
"module": "./node_modules/react/cjs/react.production.min.js",
"moduleName": "./node_modules/react/cjs/react.production.min.js",
"type": "cjs require",
"userRequest": "object-assign",
"loc": "10:19-43"
},
{
"moduleId": 82,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/react-dom/cjs/react-dom.production.min.js",
"module": "./node_modules/react-dom/cjs/react-dom.production.min.js",
"moduleName": "./node_modules/react-dom/cjs/react-dom.production.min.js",
"type": "cjs require",
"userRequest": "object-assign",
"loc": "13:115-139"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 3,
"source": "/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\n\n'use strict';\n/* eslint-disable no-unused-vars */\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\nfunction toObject(val) {\n\tif (val === null || val === undefined) {\n\t\tthrow new TypeError('Object.assign cannot be called with null or undefined');\n\t}\n\n\treturn Object(val);\n}\n\nfunction shouldUseNative() {\n\ttry {\n\t\tif (!Object.assign) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Detect buggy property enumeration order in older V8 versions.\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=4118\n\t\tvar test1 = new String('abc'); // eslint-disable-line no-new-wrappers\n\t\ttest1[5] = 'de';\n\t\tif (Object.getOwnPropertyNames(test1)[0] === '5') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test2 = {};\n\t\tfor (var i = 0; i < 10; i++) {\n\t\t\ttest2['_' + String.fromCharCode(i)] = i;\n\t\t}\n\t\tvar order2 = Object.getOwnPropertyNames(test2).map(function (n) {\n\t\t\treturn test2[n];\n\t\t});\n\t\tif (order2.join('') !== '0123456789') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test3 = {};\n\t\t'abcdefghijklmnopqrst'.split('').forEach(function (letter) {\n\t\t\ttest3[letter] = letter;\n\t\t});\n\t\tif (Object.keys(Object.assign({}, test3)).join('') !==\n\t\t\t\t'abcdefghijklmnopqrst') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t} catch (err) {\n\t\t// We don't expect any of the above to throw, but better to be safe.\n\t\treturn false;\n\t}\n}\n\nmodule.exports = shouldUseNative() ? Object.assign : function (target, source) {\n\tvar from;\n\tvar to = toObject(target);\n\tvar symbols;\n\n\tfor (var s = 1; s < arguments.length; s++) {\n\t\tfrom = Object(arguments[s]);\n\n\t\tfor (var key in from) {\n\t\t\tif (hasOwnProperty.call(from, key)) {\n\t\t\t\tto[key] = from[key];\n\t\t\t}\n\t\t}\n\n\t\tif (getOwnPropertySymbols) {\n\t\t\tsymbols = getOwnPropertySymbols(from);\n\t\t\tfor (var i = 0; i < symbols.length; i++) {\n\t\t\t\tif (propIsEnumerable.call(from, symbols[i])) {\n\t\t\t\t\tto[symbols[i]] = from[symbols[i]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn to;\n};\n"
},
{
"id": 48,
"identifier": "/Users/user/Projects/orchid/node_modules/fbjs/lib/invariant.js",
"name": "./node_modules/fbjs/lib/invariant.js",
"index": 5,
"index2": 2,
"size": 1506,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/react/cjs/react.production.min.js",
"issuerId": 80,
"issuerName": "./node_modules/react/cjs/react.production.min.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 20,
"identifier": "/Users/user/Projects/orchid/node_modules/react/index.js",
"name": "./node_modules/react/index.js"
},
{
"id": 80,
"identifier": "/Users/user/Projects/orchid/node_modules/react/cjs/react.production.min.js",
"name": "./node_modules/react/cjs/react.production.min.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 80,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/react/cjs/react.production.min.js",
"module": "./node_modules/react/cjs/react.production.min.js",
"moduleName": "./node_modules/react/cjs/react.production.min.js",
"type": "cjs require",
"userRequest": "fbjs/lib/invariant",
"loc": "10:46-75"
},
{
"moduleId": 82,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/react-dom/cjs/react-dom.production.min.js",
"module": "./node_modules/react-dom/cjs/react-dom.production.min.js",
"moduleName": "./node_modules/react-dom/cjs/react-dom.production.min.js",
"type": "cjs require",
"userRequest": "fbjs/lib/invariant",
"loc": "13:20-49"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 3,
"source": "/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\n'use strict';\n\n/**\n * Use invariant() to assert state which your program assumes to be true.\n *\n * Provide sprintf-style format (only %s is supported) and arguments\n * to provide information about what broke and what you were\n * expecting.\n *\n * The invariant message will be stripped in production, but the invariant\n * will remain to ensure logic does not differ in production.\n */\n\nvar validateFormat = function validateFormat(format) {};\n\nif (process.env.NODE_ENV !== 'production') {\n validateFormat = function validateFormat(format) {\n if (format === undefined) {\n throw new Error('invariant requires an error message argument');\n }\n };\n}\n\nfunction invariant(condition, format, a, b, c, d, e, f) {\n validateFormat(format);\n\n if (!condition) {\n var error;\n if (format === undefined) {\n error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.');\n } else {\n var args = [a, b, c, d, e, f];\n var argIndex = 0;\n error = new Error(format.replace(/%s/g, function () {\n return args[argIndex++];\n }));\n error.name = 'Invariant Violation';\n }\n\n error.framesToPop = 1; // we don't care about invariant's own frame\n throw error;\n }\n}\n\nmodule.exports = invariant;"
},
{
"id": 49,
"identifier": "/Users/user/Projects/orchid/node_modules/fbjs/lib/emptyObject.js",
"name": "./node_modules/fbjs/lib/emptyObject.js",
"index": 6,
"index2": 3,
"size": 332,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/react/cjs/react.production.min.js",
"issuerId": 80,
"issuerName": "./node_modules/react/cjs/react.production.min.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 20,
"identifier": "/Users/user/Projects/orchid/node_modules/react/index.js",
"name": "./node_modules/react/index.js"
},
{
"id": 80,
"identifier": "/Users/user/Projects/orchid/node_modules/react/cjs/react.production.min.js",
"name": "./node_modules/react/cjs/react.production.min.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 80,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/react/cjs/react.production.min.js",
"module": "./node_modules/react/cjs/react.production.min.js",
"moduleName": "./node_modules/react/cjs/react.production.min.js",
"type": "cjs require",
"userRequest": "fbjs/lib/emptyObject",
"loc": "10:78-109"
},
{
"moduleId": 82,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/react-dom/cjs/react-dom.production.min.js",
"module": "./node_modules/react-dom/cjs/react-dom.production.min.js",
"moduleName": "./node_modules/react-dom/cjs/react-dom.production.min.js",
"type": "cjs require",
"userRequest": "fbjs/lib/emptyObject",
"loc": "13:291-322"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 3,
"source": "/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\n'use strict';\n\nvar emptyObject = {};\n\nif (process.env.NODE_ENV !== 'production') {\n Object.freeze(emptyObject);\n}\n\nmodule.exports = emptyObject;"
},
{
"id": 50,
"identifier": "/Users/user/Projects/orchid/node_modules/fbjs/lib/emptyFunction.js",
"name": "./node_modules/fbjs/lib/emptyFunction.js",
"index": 7,
"index2": 4,
"size": 959,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/react/cjs/react.production.min.js",
"issuerId": 80,
"issuerName": "./node_modules/react/cjs/react.production.min.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 20,
"identifier": "/Users/user/Projects/orchid/node_modules/react/index.js",
"name": "./node_modules/react/index.js"
},
{
"id": 80,
"identifier": "/Users/user/Projects/orchid/node_modules/react/cjs/react.production.min.js",
"name": "./node_modules/react/cjs/react.production.min.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 80,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/react/cjs/react.production.min.js",
"module": "./node_modules/react/cjs/react.production.min.js",
"moduleName": "./node_modules/react/cjs/react.production.min.js",
"type": "cjs require",
"userRequest": "fbjs/lib/emptyFunction",
"loc": "10:112-145"
},
{
"moduleId": 82,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/react-dom/cjs/react-dom.production.min.js",
"module": "./node_modules/react-dom/cjs/react-dom.production.min.js",
"moduleName": "./node_modules/react-dom/cjs/react-dom.production.min.js",
"type": "cjs require",
"userRequest": "fbjs/lib/emptyFunction",
"loc": "13:142-175"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 3,
"source": "\"use strict\";\n\n/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n */\n\nfunction makeEmptyFunction(arg) {\n return function () {\n return arg;\n };\n}\n\n/**\n * This function accepts and discards inputs; it has no side effects. This is\n * primarily useful idiomatically for overridable function endpoints which\n * always need to be callable, since JS lacks a null-call idiom ala Cocoa.\n */\nvar emptyFunction = function emptyFunction() {};\n\nemptyFunction.thatReturns = makeEmptyFunction;\nemptyFunction.thatReturnsFalse = makeEmptyFunction(false);\nemptyFunction.thatReturnsTrue = makeEmptyFunction(true);\nemptyFunction.thatReturnsNull = makeEmptyFunction(null);\nemptyFunction.thatReturnsThis = function () {\n return this;\n};\nemptyFunction.thatReturnsArgument = function (arg) {\n return arg;\n};\n\nmodule.exports = emptyFunction;"
},
{
"id": 51,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/object/define-property.js",
"name": "./node_modules/babel-runtime/core-js/object/define-property.js",
"index": 19,
"index2": 34,
"size": 103,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/createClass.js",
"issuerId": 7,
"issuerName": "./node_modules/babel-runtime/helpers/createClass.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 7,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/createClass.js",
"name": "./node_modules/babel-runtime/helpers/createClass.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 7,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/createClass.js",
"module": "./node_modules/babel-runtime/helpers/createClass.js",
"moduleName": "./node_modules/babel-runtime/helpers/createClass.js",
"type": "cjs require",
"userRequest": "../core-js/object/define-property",
"loc": "5:22-66"
},
{
"moduleId": 125,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/defineProperty.js",
"module": "./node_modules/babel-runtime/helpers/defineProperty.js",
"moduleName": "./node_modules/babel-runtime/helpers/defineProperty.js",
"type": "cjs require",
"userRequest": "../core-js/object/define-property",
"loc": "5:22-66"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 3,
"source": "module.exports = { \"default\": require(\"core-js/library/fn/object/define-property\"), __esModule: true };"
},
{
"id": 52,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_ie8-dom-define.js",
"name": "./node_modules/core-js/library/modules/_ie8-dom-define.js",
"index": 31,
"index2": 25,
"size": 199,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-dp.js",
"issuerId": 9,
"issuerName": "./node_modules/core-js/library/modules/_object-dp.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 7,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/createClass.js",
"name": "./node_modules/babel-runtime/helpers/createClass.js"
},
{
"id": 51,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/object/define-property.js",
"name": "./node_modules/babel-runtime/core-js/object/define-property.js"
},
{
"id": 90,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/object/define-property.js",
"name": "./node_modules/core-js/library/fn/object/define-property.js"
},
{
"id": 91,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.object.define-property.js",
"name": "./node_modules/core-js/library/modules/es6.object.define-property.js"
},
{
"id": 9,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-dp.js",
"name": "./node_modules/core-js/library/modules/_object-dp.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 9,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-dp.js",
"module": "./node_modules/core-js/library/modules/_object-dp.js",
"moduleName": "./node_modules/core-js/library/modules/_object-dp.js",
"type": "cjs require",
"userRequest": "./_ie8-dom-define",
"loc": "2:21-49"
},
{
"moduleId": 61,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-gopd.js",
"module": "./node_modules/core-js/library/modules/_object-gopd.js",
"moduleName": "./node_modules/core-js/library/modules/_object-gopd.js",
"type": "cjs require",
"userRequest": "./_ie8-dom-define",
"loc": "6:21-49"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "module.exports = !require('./_descriptors') && !require('./_fails')(function () {\n return Object.defineProperty(require('./_dom-create')('div'), 'a', { get: function () { return 7; } }).a != 7;\n});\n"
},
{
"id": 53,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_dom-create.js",
"name": "./node_modules/core-js/library/modules/_dom-create.js",
"index": 34,
"index2": 24,
"size": 289,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-create.js",
"issuerId": 30,
"issuerName": "./node_modules/core-js/library/modules/_object-create.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 116,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/inherits.js",
"name": "./node_modules/babel-runtime/helpers/inherits.js"
},
{
"id": 121,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/object/create.js",
"name": "./node_modules/babel-runtime/core-js/object/create.js"
},
{
"id": 122,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/object/create.js",
"name": "./node_modules/core-js/library/fn/object/create.js"
},
{
"id": 123,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.object.create.js",
"name": "./node_modules/core-js/library/modules/es6.object.create.js"
},
{
"id": 30,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-create.js",
"name": "./node_modules/core-js/library/modules/_object-create.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 30,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-create.js",
"module": "./node_modules/core-js/library/modules/_object-create.js",
"moduleName": "./node_modules/core-js/library/modules/_object-create.js",
"type": "cjs require",
"userRequest": "./_dom-create",
"loc": "12:15-39"
},
{
"moduleId": 52,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_ie8-dom-define.js",
"module": "./node_modules/core-js/library/modules/_ie8-dom-define.js",
"moduleName": "./node_modules/core-js/library/modules/_ie8-dom-define.js",
"type": "cjs require",
"userRequest": "./_dom-create",
"loc": "2:31-55"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "var isObject = require('./_is-object');\nvar document = require('./_global').document;\n// typeof document.createElement is 'object' in old IE\nvar is = isObject(document) && isObject(document.createElement);\nmodule.exports = function (it) {\n return is ? document.createElement(it) : {};\n};\n"
},
{
"id": 54,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"name": "./node_modules/babel-runtime/helpers/typeof.js",
"index": 39,
"index2": 86,
"size": 1069,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"issuerId": 93,
"issuerName": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 93,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"name": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 93,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"module": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"moduleName": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"type": "cjs require",
"userRequest": "../helpers/typeof",
"loc": "5:15-43"
},
{
"moduleId": 116,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/inherits.js",
"module": "./node_modules/babel-runtime/helpers/inherits.js",
"moduleName": "./node_modules/babel-runtime/helpers/inherits.js",
"type": "cjs require",
"userRequest": "../helpers/typeof",
"loc": "13:15-43"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 3,
"source": "\"use strict\";\n\nexports.__esModule = true;\n\nvar _iterator = require(\"../core-js/symbol/iterator\");\n\nvar _iterator2 = _interopRequireDefault(_iterator);\n\nvar _symbol = require(\"../core-js/symbol\");\n\nvar _symbol2 = _interopRequireDefault(_symbol);\n\nvar _typeof = typeof _symbol2.default === \"function\" && typeof _iterator2.default === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof _symbol2.default === \"function\" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? \"symbol\" : typeof obj; };\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = typeof _symbol2.default === \"function\" && _typeof(_iterator2.default) === \"symbol\" ? function (obj) {\n return typeof obj === \"undefined\" ? \"undefined\" : _typeof(obj);\n} : function (obj) {\n return obj && typeof _symbol2.default === \"function\" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? \"symbol\" : typeof obj === \"undefined\" ? \"undefined\" : _typeof(obj);\n};"
},
{
"id": 55,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_iter-define.js",
"name": "./node_modules/core-js/library/modules/_iter-define.js",
"index": 46,
"index2": 62,
"size": 2779,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.string.iterator.js",
"issuerId": 21,
"issuerName": "./node_modules/core-js/library/modules/es6.string.iterator.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 93,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"name": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"
},
{
"id": 54,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"name": "./node_modules/babel-runtime/helpers/typeof.js"
},
{
"id": 94,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol/iterator.js",
"name": "./node_modules/babel-runtime/core-js/symbol/iterator.js"
},
{
"id": 95,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/iterator.js",
"name": "./node_modules/core-js/library/fn/symbol/iterator.js"
},
{
"id": 21,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.string.iterator.js",
"name": "./node_modules/core-js/library/modules/es6.string.iterator.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 21,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.string.iterator.js",
"module": "./node_modules/core-js/library/modules/es6.string.iterator.js",
"moduleName": "./node_modules/core-js/library/modules/es6.string.iterator.js",
"type": "cjs require",
"userRequest": "./_iter-define",
"loc": "5:0-25"
},
{
"moduleId": 103,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.array.iterator.js",
"module": "./node_modules/core-js/library/modules/es6.array.iterator.js",
"moduleName": "./node_modules/core-js/library/modules/es6.array.iterator.js",
"type": "cjs require",
"userRequest": "./_iter-define",
"loc": "11:17-42"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "'use strict';\nvar LIBRARY = require('./_library');\nvar $export = require('./_export');\nvar redefine = require('./_redefine');\nvar hide = require('./_hide');\nvar Iterators = require('./_iterators');\nvar $iterCreate = require('./_iter-create');\nvar setToStringTag = require('./_set-to-string-tag');\nvar getPrototypeOf = require('./_object-gpo');\nvar ITERATOR = require('./_wks')('iterator');\nvar BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next`\nvar FF_ITERATOR = '@@iterator';\nvar KEYS = 'keys';\nvar VALUES = 'values';\n\nvar returnThis = function () { return this; };\n\nmodule.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) {\n $iterCreate(Constructor, NAME, next);\n var getMethod = function (kind) {\n if (!BUGGY && kind in proto) return proto[kind];\n switch (kind) {\n case KEYS: return function keys() { return new Constructor(this, kind); };\n case VALUES: return function values() { return new Constructor(this, kind); };\n } return function entries() { return new Constructor(this, kind); };\n };\n var TAG = NAME + ' Iterator';\n var DEF_VALUES = DEFAULT == VALUES;\n var VALUES_BUG = false;\n var proto = Base.prototype;\n var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT];\n var $default = $native || getMethod(DEFAULT);\n var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined;\n var $anyNative = NAME == 'Array' ? proto.entries || $native : $native;\n var methods, key, IteratorPrototype;\n // Fix native\n if ($anyNative) {\n IteratorPrototype = getPrototypeOf($anyNative.call(new Base()));\n if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) {\n // Set @@toStringTag to native iterators\n setToStringTag(IteratorPrototype, TAG, true);\n // fix for some old engines\n if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis);\n }\n }\n // fix Array#{values, @@iterator}.name in V8 / FF\n if (DEF_VALUES && $native && $native.name !== VALUES) {\n VALUES_BUG = true;\n $default = function values() { return $native.call(this); };\n }\n // Define iterator\n if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) {\n hide(proto, ITERATOR, $default);\n }\n // Plug for library\n Iterators[NAME] = $default;\n Iterators[TAG] = returnThis;\n if (DEFAULT) {\n methods = {\n values: DEF_VALUES ? $default : getMethod(VALUES),\n keys: IS_SET ? $default : getMethod(KEYS),\n entries: $entries\n };\n if (FORCED) for (key in methods) {\n if (!(key in proto)) redefine(proto, key, methods[key]);\n } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);\n }\n return methods;\n};\n"
},
{
"id": 56,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_redefine.js",
"name": "./node_modules/core-js/library/modules/_redefine.js",
"index": 48,
"index2": 40,
"size": 37,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_iter-define.js",
"issuerId": 55,
"issuerName": "./node_modules/core-js/library/modules/_iter-define.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 93,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"name": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"
},
{
"id": 54,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"name": "./node_modules/babel-runtime/helpers/typeof.js"
},
{
"id": 94,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol/iterator.js",
"name": "./node_modules/babel-runtime/core-js/symbol/iterator.js"
},
{
"id": 95,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/iterator.js",
"name": "./node_modules/core-js/library/fn/symbol/iterator.js"
},
{
"id": 21,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.string.iterator.js",
"name": "./node_modules/core-js/library/modules/es6.string.iterator.js"
},
{
"id": 55,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_iter-define.js",
"name": "./node_modules/core-js/library/modules/_iter-define.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 55,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_iter-define.js",
"module": "./node_modules/core-js/library/modules/_iter-define.js",
"moduleName": "./node_modules/core-js/library/modules/_iter-define.js",
"type": "cjs require",
"userRequest": "./_redefine",
"loc": "4:15-37"
},
{
"moduleId": 108,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"module": "./node_modules/core-js/library/modules/es6.symbol.js",
"moduleName": "./node_modules/core-js/library/modules/es6.symbol.js",
"type": "cjs require",
"userRequest": "./_redefine",
"loc": "7:15-37"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "module.exports = require('./_hide');\n"
},
{
"id": 57,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-keys-internal.js",
"name": "./node_modules/core-js/library/modules/_object-keys-internal.js",
"index": 54,
"index2": 51,
"size": 537,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-keys.js",
"issuerId": 23,
"issuerName": "./node_modules/core-js/library/modules/_object-keys.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 93,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"name": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"
},
{
"id": 54,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"name": "./node_modules/babel-runtime/helpers/typeof.js"
},
{
"id": 106,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol.js",
"name": "./node_modules/babel-runtime/core-js/symbol.js"
},
{
"id": 107,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/index.js",
"name": "./node_modules/core-js/library/fn/symbol/index.js"
},
{
"id": 108,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"name": "./node_modules/core-js/library/modules/es6.symbol.js"
},
{
"id": 23,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-keys.js",
"name": "./node_modules/core-js/library/modules/_object-keys.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 23,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-keys.js",
"module": "./node_modules/core-js/library/modules/_object-keys.js",
"moduleName": "./node_modules/core-js/library/modules/_object-keys.js",
"type": "cjs require",
"userRequest": "./_object-keys-internal",
"loc": "2:12-46"
},
{
"moduleId": 60,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-gopn.js",
"module": "./node_modules/core-js/library/modules/_object-gopn.js",
"moduleName": "./node_modules/core-js/library/modules/_object-gopn.js",
"type": "cjs require",
"userRequest": "./_object-keys-internal",
"loc": "2:12-46"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 8,
"source": "var has = require('./_has');\nvar toIObject = require('./_to-iobject');\nvar arrayIndexOf = require('./_array-includes')(false);\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\n\nmodule.exports = function (object, names) {\n var O = toIObject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (has(O, key = names[i++])) {\n ~arrayIndexOf(result, key) || result.push(key);\n }\n return result;\n};\n"
},
{
"id": 58,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_iobject.js",
"name": "./node_modules/core-js/library/modules/_iobject.js",
"index": 56,
"index2": 43,
"size": 289,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-assign.js",
"issuerId": 151,
"issuerName": "./node_modules/core-js/library/modules/_object-assign.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 146,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"name": "./src/modules/Router.js"
},
{
"id": 147,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/extends.js",
"name": "./node_modules/babel-runtime/helpers/extends.js"
},
{
"id": 148,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/object/assign.js",
"name": "./node_modules/babel-runtime/core-js/object/assign.js"
},
{
"id": 149,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/object/assign.js",
"name": "./node_modules/core-js/library/fn/object/assign.js"
},
{
"id": 150,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.object.assign.js",
"name": "./node_modules/core-js/library/modules/es6.object.assign.js"
},
{
"id": 151,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-assign.js",
"name": "./node_modules/core-js/library/modules/_object-assign.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 17,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_to-iobject.js",
"module": "./node_modules/core-js/library/modules/_to-iobject.js",
"moduleName": "./node_modules/core-js/library/modules/_to-iobject.js",
"type": "cjs require",
"userRequest": "./_iobject",
"loc": "2:14-35"
},
{
"moduleId": 151,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-assign.js",
"module": "./node_modules/core-js/library/modules/_object-assign.js",
"moduleName": "./node_modules/core-js/library/modules/_object-assign.js",
"type": "cjs require",
"userRequest": "./_iobject",
"loc": "7:14-35"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 8,
"source": "// fallback for non-array-like ES3 and non-enumerable old V8 strings\nvar cof = require('./_cof');\n// eslint-disable-next-line no-prototype-builtins\nmodule.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {\n return cof(it) == 'String' ? it.split('') : Object(it);\n};\n"
},
{
"id": 59,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_to-length.js",
"name": "./node_modules/core-js/library/modules/_to-length.js",
"index": 59,
"index2": 45,
"size": 215,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.array.from.js",
"issuerId": 155,
"issuerName": "./node_modules/core-js/library/modules/es6.array.from.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 146,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"name": "./src/modules/Router.js"
},
{
"id": 152,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/toConsumableArray.js",
"name": "./node_modules/babel-runtime/helpers/toConsumableArray.js"
},
{
"id": 153,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/array/from.js",
"name": "./node_modules/babel-runtime/core-js/array/from.js"
},
{
"id": 154,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/array/from.js",
"name": "./node_modules/core-js/library/fn/array/from.js"
},
{
"id": 155,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.array.from.js",
"name": "./node_modules/core-js/library/modules/es6.array.from.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 99,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_array-includes.js",
"module": "./node_modules/core-js/library/modules/_array-includes.js",
"moduleName": "./node_modules/core-js/library/modules/_array-includes.js",
"type": "cjs require",
"userRequest": "./_to-length",
"loc": "4:15-38"
},
{
"moduleId": 155,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.array.from.js",
"module": "./node_modules/core-js/library/modules/es6.array.from.js",
"moduleName": "./node_modules/core-js/library/modules/es6.array.from.js",
"type": "cjs require",
"userRequest": "./_to-length",
"loc": "7:15-38"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 8,
"source": "// 7.1.15 ToLength\nvar toInteger = require('./_to-integer');\nvar min = Math.min;\nmodule.exports = function (it) {\n return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991\n};\n"
},
{
"id": 60,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-gopn.js",
"name": "./node_modules/core-js/library/modules/_object-gopn.js",
"index": 85,
"index2": 77,
"size": 288,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"issuerId": 108,
"issuerName": "./node_modules/core-js/library/modules/es6.symbol.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 93,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"name": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"
},
{
"id": 54,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"name": "./node_modules/babel-runtime/helpers/typeof.js"
},
{
"id": 106,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol.js",
"name": "./node_modules/babel-runtime/core-js/symbol.js"
},
{
"id": 107,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/index.js",
"name": "./node_modules/core-js/library/fn/symbol/index.js"
},
{
"id": 108,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"name": "./node_modules/core-js/library/modules/es6.symbol.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 108,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"module": "./node_modules/core-js/library/modules/es6.symbol.js",
"moduleName": "./node_modules/core-js/library/modules/es6.symbol.js",
"type": "cjs require",
"userRequest": "./_object-gopn",
"loc": "150:2-27"
},
{
"moduleId": 112,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-gopn-ext.js",
"module": "./node_modules/core-js/library/modules/_object-gopn-ext.js",
"moduleName": "./node_modules/core-js/library/modules/_object-gopn-ext.js",
"type": "cjs require",
"userRequest": "./_object-gopn",
"loc": "3:11-36"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "// 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)\nvar $keys = require('./_object-keys-internal');\nvar hiddenKeys = require('./_enum-bug-keys').concat('length', 'prototype');\n\nexports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {\n return $keys(O, hiddenKeys);\n};\n"
},
{
"id": 61,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-gopd.js",
"name": "./node_modules/core-js/library/modules/_object-gopd.js",
"index": 86,
"index2": 79,
"size": 577,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_set-proto.js",
"issuerId": 120,
"issuerName": "./node_modules/core-js/library/modules/_set-proto.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 116,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/inherits.js",
"name": "./node_modules/babel-runtime/helpers/inherits.js"
},
{
"id": 117,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/object/set-prototype-of.js",
"name": "./node_modules/babel-runtime/core-js/object/set-prototype-of.js"
},
{
"id": 118,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/object/set-prototype-of.js",
"name": "./node_modules/core-js/library/fn/object/set-prototype-of.js"
},
{
"id": 119,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.object.set-prototype-of.js",
"name": "./node_modules/core-js/library/modules/es6.object.set-prototype-of.js"
},
{
"id": 120,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_set-proto.js",
"name": "./node_modules/core-js/library/modules/_set-proto.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 108,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"module": "./node_modules/core-js/library/modules/es6.symbol.js",
"moduleName": "./node_modules/core-js/library/modules/es6.symbol.js",
"type": "cjs require",
"userRequest": "./_object-gopd",
"loc": "25:12-37"
},
{
"moduleId": 120,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_set-proto.js",
"module": "./node_modules/core-js/library/modules/_set-proto.js",
"moduleName": "./node_modules/core-js/library/modules/_set-proto.js",
"type": "cjs require",
"userRequest": "./_object-gopd",
"loc": "13:47-72"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "var pIE = require('./_object-pie');\nvar createDesc = require('./_property-desc');\nvar toIObject = require('./_to-iobject');\nvar toPrimitive = require('./_to-primitive');\nvar has = require('./_has');\nvar IE8_DOM_DEFINE = require('./_ie8-dom-define');\nvar gOPD = Object.getOwnPropertyDescriptor;\n\nexports.f = require('./_descriptors') ? gOPD : function getOwnPropertyDescriptor(O, P) {\n O = toIObject(O);\n P = toPrimitive(P, true);\n if (IE8_DOM_DEFINE) try {\n return gOPD(O, P);\n } catch (e) { /* empty */ }\n if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]);\n};\n"
},
{
"id": 62,
"identifier": "/Users/user/Projects/orchid/node_modules/leaflet-editable/src/Leaflet.Editable.js",
"name": "./node_modules/leaflet-editable/src/Leaflet.Editable.js",
"index": 114,
"index2": 110,
"size": 73185,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Map.js",
"issuerId": 126,
"issuerName": "./src/modules/Map.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 126,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Map.js",
"name": "./src/modules/Map.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 126,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Map.js",
"module": "./src/modules/Map.js",
"moduleName": "./src/modules/Map.js",
"type": "cjs require",
"userRequest": "leaflet-editable",
"loc": "22:0-27"
},
{
"moduleId": 145,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Sticker.js",
"module": "./src/modules/Sticker.js",
"moduleName": "./src/modules/Sticker.js",
"type": "cjs require",
"userRequest": "leaflet-editable",
"loc": "18:0-27"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 4,
"source": "'use strict';\n(function (factory, window) {\n /*globals define, module, require*/\n\n // define an AMD module that relies on 'leaflet'\n if (typeof define === 'function' && define.amd) {\n define(['leaflet'], factory);\n\n\n // define a Common JS module that relies on 'leaflet'\n } else if (typeof exports === 'object') {\n module.exports = factory(require('leaflet'));\n }\n\n // attach your plugin to the global 'L' variable\n if(typeof window !== 'undefined' && window.L){\n factory(window.L);\n }\n\n}(function (L) {\n // 🍂miniclass CancelableEvent (Event objects)\n // 🍂method cancel()\n // Cancel any subsequent action.\n\n // 🍂miniclass VertexEvent (Event objects)\n // 🍂property vertex: VertexMarker\n // The vertex that fires the event.\n\n // 🍂miniclass ShapeEvent (Event objects)\n // 🍂property shape: Array\n // The shape (LatLngs array) subject of the action.\n\n // 🍂miniclass CancelableVertexEvent (Event objects)\n // 🍂inherits VertexEvent\n // 🍂inherits CancelableEvent\n\n // 🍂miniclass CancelableShapeEvent (Event objects)\n // 🍂inherits ShapeEvent\n // 🍂inherits CancelableEvent\n\n // 🍂miniclass LayerEvent (Event objects)\n // 🍂property layer: object\n // The Layer (Marker, Polyline…) subject of the action.\n\n // 🍂namespace Editable; 🍂class Editable; 🍂aka L.Editable\n // Main edition handler. By default, it is attached to the map\n // as `map.editTools` property.\n // Leaflet.Editable is made to be fully extendable. You have three ways to customize\n // the behaviour: using options, listening to events, or extending.\n L.Editable = L.Evented.extend({\n\n statics: {\n FORWARD: 1,\n BACKWARD: -1\n },\n\n options: {\n\n // You can pass them when creating a map using the `editOptions` key.\n // 🍂option zIndex: int = 1000\n // The default zIndex of the editing tools.\n zIndex: 1000,\n\n // 🍂option polygonClass: class = L.Polygon\n // Class to be used when creating a new Polygon.\n polygonClass: L.Polygon,\n\n // 🍂option polylineClass: class = L.Polyline\n // Class to be used when creating a new Polyline.\n polylineClass: L.Polyline,\n\n // 🍂option markerClass: class = L.Marker\n // Class to be used when creating a new Marker.\n markerClass: L.Marker,\n\n // 🍂option rectangleClass: class = L.Rectangle\n // Class to be used when creating a new Rectangle.\n rectangleClass: L.Rectangle,\n\n // 🍂option circleClass: class = L.Circle\n // Class to be used when creating a new Circle.\n circleClass: L.Circle,\n\n // 🍂option drawingCSSClass: string = 'leaflet-editable-drawing'\n // CSS class to be added to the map container while drawing.\n drawingCSSClass: 'leaflet-editable-drawing',\n\n // 🍂option drawingCursor: const = 'crosshair'\n // Cursor mode set to the map while drawing.\n drawingCursor: 'crosshair',\n\n // 🍂option editLayer: Layer = new L.LayerGroup()\n // Layer used to store edit tools (vertex, line guide…).\n editLayer: undefined,\n\n // 🍂option featuresLayer: Layer = new L.LayerGroup()\n // Default layer used to store drawn features (Marker, Polyline…).\n featuresLayer: undefined,\n\n // 🍂option polylineEditorClass: class = PolylineEditor\n // Class to be used as Polyline editor.\n polylineEditorClass: undefined,\n\n // 🍂option polygonEditorClass: class = PolygonEditor\n // Class to be used as Polygon editor.\n polygonEditorClass: undefined,\n\n // 🍂option markerEditorClass: class = MarkerEditor\n // Class to be used as Marker editor.\n markerEditorClass: undefined,\n\n // 🍂option rectangleEditorClass: class = RectangleEditor\n // Class to be used as Rectangle editor.\n rectangleEditorClass: undefined,\n\n // 🍂option circleEditorClass: class = CircleEditor\n // Class to be used as Circle editor.\n circleEditorClass: undefined,\n\n // 🍂option lineGuideOptions: hash = {}\n // Options to be passed to the line guides.\n lineGuideOptions: {},\n\n // 🍂option skipMiddleMarkers: boolean = false\n // Set this to true if you don't want middle markers.\n skipMiddleMarkers: false\n\n },\n\n initialize: function (map, options) {\n L.setOptions(this, options);\n this._lastZIndex = this.options.zIndex;\n this.map = map;\n this.editLayer = this.createEditLayer();\n this.featuresLayer = this.createFeaturesLayer();\n this.forwardLineGuide = this.createLineGuide();\n this.backwardLineGuide = this.createLineGuide();\n },\n\n fireAndForward: function (type, e) {\n e = e || {};\n e.editTools = this;\n this.fire(type, e);\n this.map.fire(type, e);\n },\n\n createLineGuide: function () {\n var options = L.extend({dashArray: '5,10', weight: 1, interactive: false}, this.options.lineGuideOptions);\n return L.polyline([], options);\n },\n\n createVertexIcon: function (options) {\n return L.Browser.touch ? new L.Editable.TouchVertexIcon(options) : new L.Editable.VertexIcon(options);\n },\n\n createEditLayer: function () {\n return this.options.editLayer || new L.LayerGroup().addTo(this.map);\n },\n\n createFeaturesLayer: function () {\n return this.options.featuresLayer || new L.LayerGroup().addTo(this.map);\n },\n\n moveForwardLineGuide: function (latlng) {\n if (this.forwardLineGuide._latlngs.length) {\n this.forwardLineGuide._latlngs[1] = latlng;\n this.forwardLineGuide._bounds.extend(latlng);\n this.forwardLineGuide.redraw();\n }\n },\n\n moveBackwardLineGuide: function (latlng) {\n if (this.backwardLineGuide._latlngs.length) {\n this.backwardLineGuide._latlngs[1] = latlng;\n this.backwardLineGuide._bounds.extend(latlng);\n this.backwardLineGuide.redraw();\n }\n },\n\n anchorForwardLineGuide: function (latlng) {\n this.forwardLineGuide._latlngs[0] = latlng;\n this.forwardLineGuide._bounds.extend(latlng);\n this.forwardLineGuide.redraw();\n },\n\n anchorBackwardLineGuide: function (latlng) {\n this.backwardLineGuide._latlngs[0] = latlng;\n this.backwardLineGuide._bounds.extend(latlng);\n this.backwardLineGuide.redraw();\n },\n\n attachForwardLineGuide: function () {\n this.editLayer.addLayer(this.forwardLineGuide);\n },\n\n attachBackwardLineGuide: function () {\n this.editLayer.addLayer(this.backwardLineGuide);\n },\n\n detachForwardLineGuide: function () {\n this.forwardLineGuide.setLatLngs([]);\n this.editLayer.removeLayer(this.forwardLineGuide);\n },\n\n detachBackwardLineGuide: function () {\n this.backwardLineGuide.setLatLngs([]);\n this.editLayer.removeLayer(this.backwardLineGuide);\n },\n\n blockEvents: function () {\n // Hack: force map not to listen to other layers events while drawing.\n if (!this._oldTargets) {\n this._oldTargets = this.map._targets;\n this.map._targets = {};\n }\n },\n\n unblockEvents: function () {\n if (this._oldTargets) {\n // Reset, but keep targets created while drawing.\n this.map._targets = L.extend(this.map._targets, this._oldTargets);\n delete this._oldTargets;\n }\n },\n\n registerForDrawing: function (editor) {\n if (this._drawingEditor) this.unregisterForDrawing(this._drawingEditor);\n this.blockEvents();\n editor.reset(); // Make sure editor tools still receive events.\n this._drawingEditor = editor;\n this.map.on('mousemove touchmove', editor.onDrawingMouseMove, editor);\n this.map.on('mousedown', this.onMousedown, this);\n this.map.on('mouseup', this.onMouseup, this);\n L.DomUtil.addClass(this.map._container, this.options.drawingCSSClass);\n this.defaultMapCursor = this.map._container.style.cursor;\n this.map._container.style.cursor = this.options.drawingCursor;\n },\n\n unregisterForDrawing: function (editor) {\n this.unblockEvents();\n L.DomUtil.removeClass(this.map._container, this.options.drawingCSSClass);\n this.map._container.style.cursor = this.defaultMapCursor;\n editor = editor || this._drawingEditor;\n if (!editor) return;\n this.map.off('mousemove touchmove', editor.onDrawingMouseMove, editor);\n this.map.off('mousedown', this.onMousedown, this);\n this.map.off('mouseup', this.onMouseup, this);\n if (editor !== this._drawingEditor) return;\n delete this._drawingEditor;\n if (editor._drawing) editor.cancelDrawing();\n },\n\n onMousedown: function (e) {\n this._mouseDown = e;\n this._drawingEditor.onDrawingMouseDown(e);\n },\n\n onMouseup: function (e) {\n if (this._mouseDown) {\n var editor = this._drawingEditor,\n mouseDown = this._mouseDown;\n this._mouseDown = null;\n editor.onDrawingMouseUp(e);\n if (this._drawingEditor !== editor) return; // onDrawingMouseUp may call unregisterFromDrawing.\n var origin = L.point(mouseDown.originalEvent.clientX, mouseDown.originalEvent.clientY);\n var distance = L.point(e.originalEvent.clientX, e.originalEvent.clientY).distanceTo(origin);\n if (Math.abs(distance) < 9 * (window.devicePixelRatio || 1)) this._drawingEditor.onDrawingClick(e);\n }\n },\n\n // 🍂section Public methods\n // You will generally access them by the `map.editTools`\n // instance:\n //\n // `map.editTools.startPolyline();`\n\n // 🍂method drawing(): boolean\n // Return true if any drawing action is ongoing.\n drawing: function () {\n return this._drawingEditor && this._drawingEditor.drawing();\n },\n\n // 🍂method stopDrawing()\n // When you need to stop any ongoing drawing, without needing to know which editor is active.\n stopDrawing: function () {\n this.unregisterForDrawing();\n },\n\n // 🍂method commitDrawing()\n // When you need to commit any ongoing drawing, without needing to know which editor is active.\n commitDrawing: function (e) {\n if (!this._drawingEditor) return;\n this._drawingEditor.commitDrawing(e);\n },\n\n connectCreatedToMap: function (layer) {\n return this.featuresLayer.addLayer(layer);\n },\n\n // 🍂method startPolyline(latlng: L.LatLng, options: hash): L.Polyline\n // Start drawing a Polyline. If `latlng` is given, a first point will be added. In any case, continuing on user click.\n // If `options` is given, it will be passed to the Polyline class constructor.\n startPolyline: function (latlng, options) {\n var line = this.createPolyline([], options);\n line.enableEdit(this.map).newShape(latlng);\n return line;\n },\n\n // 🍂method startPolygon(latlng: L.LatLng, options: hash): L.Polygon\n // Start drawing a Polygon. If `latlng` is given, a first point will be added. In any case, continuing on user click.\n // If `options` is given, it will be passed to the Polygon class constructor.\n startPolygon: function (latlng, options) {\n var polygon = this.createPolygon([], options);\n polygon.enableEdit(this.map).newShape(latlng);\n return polygon;\n },\n\n // 🍂method startMarker(latlng: L.LatLng, options: hash): L.Marker\n // Start adding a Marker. If `latlng` is given, the Marker will be shown first at this point.\n // In any case, it will follow the user mouse, and will have a final `latlng` on next click (or touch).\n // If `options` is given, it will be passed to the Marker class constructor.\n startMarker: function (latlng, options) {\n latlng = latlng || this.map.getCenter().clone();\n var marker = this.createMarker(latlng, options);\n marker.enableEdit(this.map).startDrawing();\n return marker;\n },\n\n // 🍂method startRectangle(latlng: L.LatLng, options: hash): L.Rectangle\n // Start drawing a Rectangle. If `latlng` is given, the Rectangle anchor will be added. In any case, continuing on user drag.\n // If `options` is given, it will be passed to the Rectangle class constructor.\n startRectangle: function(latlng, options) {\n var corner = latlng || L.latLng([0, 0]);\n var bounds = new L.LatLngBounds(corner, corner);\n var rectangle = this.createRectangle(bounds, options);\n rectangle.enableEdit(this.map).startDrawing();\n return rectangle;\n },\n\n // 🍂method startCircle(latlng: L.LatLng, options: hash): L.Circle\n // Start drawing a Circle. If `latlng` is given, the Circle anchor will be added. In any case, continuing on user drag.\n // If `options` is given, it will be passed to the Circle class constructor.\n startCircle: function (latlng, options) {\n latlng = latlng || this.map.getCenter().clone();\n var circle = this.createCircle(latlng, options);\n circle.enableEdit(this.map).startDrawing();\n return circle;\n },\n\n startHole: function (editor, latlng) {\n editor.newHole(latlng);\n },\n\n createLayer: function (klass, latlngs, options) {\n options = L.Util.extend({editOptions: {editTools: this}}, options);\n var layer = new klass(latlngs, options);\n // 🍂namespace Editable\n // 🍂event editable:created: LayerEvent\n // Fired when a new feature (Marker, Polyline…) is created.\n this.fireAndForward('editable:created', {layer: layer});\n return layer;\n },\n\n createPolyline: function (latlngs, options) {\n return this.createLayer(options && options.polylineClass || this.options.polylineClass, latlngs, options);\n },\n\n createPolygon: function (latlngs, options) {\n return this.createLayer(options && options.polygonClass || this.options.polygonClass, latlngs, options);\n },\n\n createMarker: function (latlng, options) {\n return this.createLayer(options && options.markerClass || this.options.markerClass, latlng, options);\n },\n\n createRectangle: function (bounds, options) {\n return this.createLayer(options && options.rectangleClass || this.options.rectangleClass, bounds, options);\n },\n\n createCircle: function (latlng, options) {\n return this.createLayer(options && options.circleClass || this.options.circleClass, latlng, options);\n }\n\n });\n\n L.extend(L.Editable, {\n\n makeCancellable: function (e) {\n e.cancel = function () {\n e._cancelled = true;\n };\n }\n\n });\n\n // 🍂namespace Map; 🍂class Map\n // Leaflet.Editable add options and events to the `L.Map` object.\n // See `Editable` events for the list of events fired on the Map.\n // 🍂example\n //\n // ```js\n // var map = L.map('map', {\n // editable: true,\n // editOptions: {\n // …\n // }\n // });\n // ```\n // 🍂section Editable Map Options\n L.Map.mergeOptions({\n\n // 🍂namespace Map\n // 🍂section Map Options\n // 🍂option editToolsClass: class = L.Editable\n // Class to be used as vertex, for path editing.\n editToolsClass: L.Editable,\n\n // 🍂option editable: boolean = false\n // Whether to create a L.Editable instance at map init.\n editable: false,\n\n // 🍂option editOptions: hash = {}\n // Options to pass to L.Editable when instanciating.\n editOptions: {}\n\n });\n\n L.Map.addInitHook(function () {\n\n this.whenReady(function () {\n if (this.options.editable) {\n this.editTools = new this.options.editToolsClass(this, this.options.editOptions);\n }\n });\n\n });\n\n L.Editable.VertexIcon = L.DivIcon.extend({\n\n options: {\n iconSize: new L.Point(8, 8)\n }\n\n });\n\n L.Editable.TouchVertexIcon = L.Editable.VertexIcon.extend({\n\n options: {\n iconSize: new L.Point(20, 20)\n }\n\n });\n\n\n // 🍂namespace Editable; 🍂class VertexMarker; Handler for dragging path vertices.\n L.Editable.VertexMarker = L.Marker.extend({\n\n options: {\n draggable: true,\n className: 'leaflet-div-icon leaflet-vertex-icon'\n },\n\n\n // 🍂section Public methods\n // The marker used to handle path vertex. You will usually interact with a `VertexMarker`\n // instance when listening for events like `editable:vertex:ctrlclick`.\n\n initialize: function (latlng, latlngs, editor, options) {\n // We don't use this._latlng, because on drag Leaflet replace it while\n // we want to keep reference.\n this.latlng = latlng;\n this.latlngs = latlngs;\n this.editor = editor;\n L.Marker.prototype.initialize.call(this, latlng, options);\n this.options.icon = this.editor.tools.createVertexIcon({className: this.options.className});\n this.latlng.__vertex = this;\n this.editor.editLayer.addLayer(this);\n this.setZIndexOffset(editor.tools._lastZIndex + 1);\n },\n\n onAdd: function (map) {\n L.Marker.prototype.onAdd.call(this, map);\n this.on('drag', this.onDrag);\n this.on('dragstart', this.onDragStart);\n this.on('dragend', this.onDragEnd);\n this.on('mouseup', this.onMouseup);\n this.on('click', this.onClick);\n this.on('contextmenu', this.onContextMenu);\n this.on('mousedown touchstart', this.onMouseDown);\n this.addMiddleMarkers();\n },\n\n onRemove: function (map) {\n if (this.middleMarker) this.middleMarker.delete();\n delete this.latlng.__vertex;\n this.off('drag', this.onDrag);\n this.off('dragstart', this.onDragStart);\n this.off('dragend', this.onDragEnd);\n this.off('mouseup', this.onMouseup);\n this.off('click', this.onClick);\n this.off('contextmenu', this.onContextMenu);\n this.off('mousedown touchstart', this.onMouseDown);\n L.Marker.prototype.onRemove.call(this, map);\n },\n\n onDrag: function (e) {\n e.vertex = this;\n this.editor.onVertexMarkerDrag(e);\n var iconPos = L.DomUtil.getPosition(this._icon),\n latlng = this._map.layerPointToLatLng(iconPos);\n this.latlng.update(latlng);\n this._latlng = this.latlng; // Push back to Leaflet our reference.\n this.editor.refresh();\n if (this.middleMarker) this.middleMarker.updateLatLng();\n var next = this.getNext();\n if (next && next.middleMarker) next.middleMarker.updateLatLng();\n },\n\n onDragStart: function (e) {\n e.vertex = this;\n this.editor.onVertexMarkerDragStart(e);\n },\n\n onDragEnd: function (e) {\n e.vertex = this;\n this.editor.onVertexMarkerDragEnd(e);\n },\n\n onClick: function (e) {\n e.vertex = this;\n this.editor.onVertexMarkerClick(e);\n },\n\n onMouseup: function (e) {\n L.DomEvent.stop(e);\n e.vertex = this;\n this.editor.map.fire('mouseup', e);\n },\n\n onContextMenu: function (e) {\n e.vertex = this;\n this.editor.onVertexMarkerContextMenu(e);\n },\n\n onMouseDown: function (e) {\n e.vertex = this;\n this.editor.onVertexMarkerMouseDown(e);\n },\n\n // 🍂method delete()\n // Delete a vertex and the related LatLng.\n delete: function () {\n var next = this.getNext(); // Compute before changing latlng\n this.latlngs.splice(this.getIndex(), 1);\n this.editor.editLayer.removeLayer(this);\n this.editor.onVertexDeleted({latlng: this.latlng, vertex: this});\n if (!this.latlngs.length) this.editor.deleteShape(this.latlngs);\n if (next) next.resetMiddleMarker();\n this.editor.refresh();\n },\n\n // 🍂method getIndex(): int\n // Get the index of the current vertex among others of the same LatLngs group.\n getIndex: function () {\n return this.latlngs.indexOf(this.latlng);\n },\n\n // 🍂method getLastIndex(): int\n // Get last vertex index of the LatLngs group of the current vertex.\n getLastIndex: function () {\n return this.latlngs.length - 1;\n },\n\n // 🍂method getPrevious(): VertexMarker\n // Get the previous VertexMarker in the same LatLngs group.\n getPrevious: function () {\n if (this.latlngs.length < 2) return;\n var index = this.getIndex(),\n previousIndex = index - 1;\n if (index === 0 && this.editor.CLOSED) previousIndex = this.getLastIndex();\n var previous = this.latlngs[previousIndex];\n if (previous) return previous.__vertex;\n },\n\n // 🍂method getNext(): VertexMarker\n // Get the next VertexMarker in the same LatLngs group.\n getNext: function () {\n if (this.latlngs.length < 2) return;\n var index = this.getIndex(),\n nextIndex = index + 1;\n if (index === this.getLastIndex() && this.editor.CLOSED) nextIndex = 0;\n var next = this.latlngs[nextIndex];\n if (next) return next.__vertex;\n },\n\n addMiddleMarker: function (previous) {\n if (!this.editor.hasMiddleMarkers()) return;\n previous = previous || this.getPrevious();\n if (previous && !this.middleMarker) this.middleMarker = this.editor.addMiddleMarker(previous, this, this.latlngs, this.editor);\n },\n\n addMiddleMarkers: function () {\n if (!this.editor.hasMiddleMarkers()) return;\n var previous = this.getPrevious();\n if (previous) this.addMiddleMarker(previous);\n var next = this.getNext();\n if (next) next.resetMiddleMarker();\n },\n\n resetMiddleMarker: function () {\n if (this.middleMarker) this.middleMarker.delete();\n this.addMiddleMarker();\n },\n\n // 🍂method split()\n // Split the vertex LatLngs group at its index, if possible.\n split: function () {\n if (!this.editor.splitShape) return; // Only for PolylineEditor\n this.editor.splitShape(this.latlngs, this.getIndex());\n },\n\n // 🍂method continue()\n // Continue the vertex LatLngs from this vertex. Only active for first and last vertices of a Polyline.\n continue: function () {\n if (!this.editor.continueBackward) return; // Only for PolylineEditor\n var index = this.getIndex();\n if (index === 0) this.editor.continueBackward(this.latlngs);\n else if (index === this.getLastIndex()) this.editor.continueForward(this.latlngs);\n }\n\n });\n\n L.Editable.mergeOptions({\n\n // 🍂namespace Editable\n // 🍂option vertexMarkerClass: class = VertexMarker\n // Class to be used as vertex, for path editing.\n vertexMarkerClass: L.Editable.VertexMarker\n\n });\n\n L.Editable.MiddleMarker = L.Marker.extend({\n\n options: {\n opacity: 0.5,\n className: 'leaflet-div-icon leaflet-middle-icon',\n draggable: true\n },\n\n initialize: function (left, right, latlngs, editor, options) {\n this.left = left;\n this.right = right;\n this.editor = editor;\n this.latlngs = latlngs;\n L.Marker.prototype.initialize.call(this, this.computeLatLng(), options);\n this._opacity = this.options.opacity;\n this.options.icon = this.editor.tools.createVertexIcon({className: this.options.className});\n this.editor.editLayer.addLayer(this);\n this.setVisibility();\n },\n\n setVisibility: function () {\n var leftPoint = this._map.latLngToContainerPoint(this.left.latlng),\n rightPoint = this._map.latLngToContainerPoint(this.right.latlng),\n size = L.point(this.options.icon.options.iconSize);\n if (leftPoint.distanceTo(rightPoint) < size.x * 3) this.hide();\n else this.show();\n },\n\n show: function () {\n this.setOpacity(this._opacity);\n },\n\n hide: function () {\n this.setOpacity(0);\n },\n\n updateLatLng: function () {\n this.setLatLng(this.computeLatLng());\n this.setVisibility();\n },\n\n computeLatLng: function () {\n var leftPoint = this.editor.map.latLngToContainerPoint(this.left.latlng),\n rightPoint = this.editor.map.latLngToContainerPoint(this.right.latlng),\n y = (leftPoint.y + rightPoint.y) / 2,\n x = (leftPoint.x + rightPoint.x) / 2;\n return this.editor.map.containerPointToLatLng([x, y]);\n },\n\n onAdd: function (map) {\n L.Marker.prototype.onAdd.call(this, map);\n L.DomEvent.on(this._icon, 'mousedown touchstart', this.onMouseDown, this);\n map.on('zoomend', this.setVisibility, this);\n },\n\n onRemove: function (map) {\n delete this.right.middleMarker;\n L.DomEvent.off(this._icon, 'mousedown touchstart', this.onMouseDown, this);\n map.off('zoomend', this.setVisibility, this);\n L.Marker.prototype.onRemove.call(this, map);\n },\n\n onMouseDown: function (e) {\n var iconPos = L.DomUtil.getPosition(this._icon),\n latlng = this.editor.map.layerPointToLatLng(iconPos);\n e = {\n originalEvent: e,\n latlng: latlng\n };\n if (this.options.opacity === 0) return;\n L.Editable.makeCancellable(e);\n this.editor.onMiddleMarkerMouseDown(e);\n if (e._cancelled) return;\n this.latlngs.splice(this.index(), 0, e.latlng);\n this.editor.refresh();\n var icon = this._icon;\n var marker = this.editor.addVertexMarker(e.latlng, this.latlngs);\n this.editor.onNewVertex(marker);\n /* Hack to workaround browser not firing touchend when element is no more on DOM */\n var parent = marker._icon.parentNode;\n parent.removeChild(marker._icon);\n marker._icon = icon;\n parent.appendChild(marker._icon);\n marker._initIcon();\n marker._initInteraction();\n marker.setOpacity(1);\n /* End hack */\n // Transfer ongoing dragging to real marker\n L.Draggable._dragging = false;\n marker.dragging._draggable._onDown(e.originalEvent);\n this.delete();\n },\n\n delete: function () {\n this.editor.editLayer.removeLayer(this);\n },\n\n index: function () {\n return this.latlngs.indexOf(this.right.latlng);\n }\n\n });\n\n L.Editable.mergeOptions({\n\n // 🍂namespace Editable\n // 🍂option middleMarkerClass: class = VertexMarker\n // Class to be used as middle vertex, pulled by the user to create a new point in the middle of a path.\n middleMarkerClass: L.Editable.MiddleMarker\n\n });\n\n // 🍂namespace Editable; 🍂class BaseEditor; 🍂aka L.Editable.BaseEditor\n // When editing a feature (Marker, Polyline…), an editor is attached to it. This\n // editor basically knows how to handle the edition.\n L.Editable.BaseEditor = L.Handler.extend({\n\n initialize: function (map, feature, options) {\n L.setOptions(this, options);\n this.map = map;\n this.feature = feature;\n this.feature.editor = this;\n this.editLayer = new L.LayerGroup();\n this.tools = this.options.editTools || map.editTools;\n },\n\n // 🍂method enable(): this\n // Set up the drawing tools for the feature to be editable.\n addHooks: function () {\n if (this.isConnected()) this.onFeatureAdd();\n else this.feature.once('add', this.onFeatureAdd, this);\n this.onEnable();\n this.feature.on(this._getEvents(), this);\n return;\n },\n\n // 🍂method disable(): this\n // Remove the drawing tools for the feature.\n removeHooks: function () {\n this.feature.off(this._getEvents(), this);\n if (this.feature.dragging) this.feature.dragging.disable();\n this.editLayer.clearLayers();\n this.tools.editLayer.removeLayer(this.editLayer);\n this.onDisable();\n if (this._drawing) this.cancelDrawing();\n return;\n },\n\n // 🍂method drawing(): boolean\n // Return true if any drawing action is ongoing with this editor.\n drawing: function () {\n return !!this._drawing;\n },\n\n reset: function () {},\n\n onFeatureAdd: function () {\n this.tools.editLayer.addLayer(this.editLayer);\n if (this.feature.dragging) this.feature.dragging.enable();\n },\n\n hasMiddleMarkers: function () {\n return !this.options.skipMiddleMarkers && !this.tools.options.skipMiddleMarkers;\n },\n\n fireAndForward: function (type, e) {\n e = e || {};\n e.layer = this.feature;\n this.feature.fire(type, e);\n this.tools.fireAndForward(type, e);\n },\n\n onEnable: function () {\n // 🍂namespace Editable\n // 🍂event editable:enable: Event\n // Fired when an existing feature is ready to be edited.\n this.fireAndForward('editable:enable');\n },\n\n onDisable: function () {\n // 🍂namespace Editable\n // 🍂event editable:disable: Event\n // Fired when an existing feature is not ready anymore to be edited.\n this.fireAndForward('editable:disable');\n },\n\n onEditing: function () {\n // 🍂namespace Editable\n // 🍂event editable:editing: Event\n // Fired as soon as any change is made to the feature geometry.\n this.fireAndForward('editable:editing');\n },\n\n onStartDrawing: function () {\n // 🍂namespace Editable\n // 🍂section Drawing events\n // 🍂event editable:drawing:start: Event\n // Fired when a feature is to be drawn.\n this.fireAndForward('editable:drawing:start');\n },\n\n onEndDrawing: function () {\n // 🍂namespace Editable\n // 🍂section Drawing events\n // 🍂event editable:drawing:end: Event\n // Fired when a feature is not drawn anymore.\n this.fireAndForward('editable:drawing:end');\n },\n\n onCancelDrawing: function () {\n // 🍂namespace Editable\n // 🍂section Drawing events\n // 🍂event editable:drawing:cancel: Event\n // Fired when user cancel drawing while a feature is being drawn.\n this.fireAndForward('editable:drawing:cancel');\n },\n\n onCommitDrawing: function (e) {\n // 🍂namespace Editable\n // 🍂section Drawing events\n // 🍂event editable:drawing:commit: Event\n // Fired when user finish drawing a feature.\n this.fireAndForward('editable:drawing:commit', e);\n },\n\n onDrawingMouseDown: function (e) {\n // 🍂namespace Editable\n // 🍂section Drawing events\n // 🍂event editable:drawing:mousedown: Event\n // Fired when user `mousedown` while drawing.\n this.fireAndForward('editable:drawing:mousedown', e);\n },\n\n onDrawingMouseUp: function (e) {\n // 🍂namespace Editable\n // 🍂section Drawing events\n // 🍂event editable:drawing:mouseup: Event\n // Fired when user `mouseup` while drawing.\n this.fireAndForward('editable:drawing:mouseup', e);\n },\n\n startDrawing: function () {\n if (!this._drawing) this._drawing = L.Editable.FORWARD;\n this.tools.registerForDrawing(this);\n this.onStartDrawing();\n },\n\n commitDrawing: function (e) {\n this.onCommitDrawing(e);\n this.endDrawing();\n },\n\n cancelDrawing: function () {\n // If called during a vertex drag, the vertex will be removed before\n // the mouseup fires on it. This is a workaround. Maybe better fix is\n // To have L.Draggable reset it's status on disable (Leaflet side).\n L.Draggable._dragging = false;\n this.onCancelDrawing();\n this.endDrawing();\n },\n\n endDrawing: function () {\n this._drawing = false;\n this.tools.unregisterForDrawing(this);\n this.onEndDrawing();\n },\n\n onDrawingClick: function (e) {\n if (!this.drawing()) return;\n L.Editable.makeCancellable(e);\n // 🍂namespace Editable\n // 🍂section Drawing events\n // 🍂event editable:drawing:click: CancelableEvent\n // Fired when user `click` while drawing, before any internal action is being processed.\n this.fireAndForward('editable:drawing:click', e);\n if (e._cancelled) return;\n if (!this.isConnected()) this.connect(e);\n this.processDrawingClick(e);\n },\n\n isConnected: function () {\n return this.map.hasLayer(this.feature);\n },\n\n connect: function (e) {\n this.tools.connectCreatedToMap(this.feature);\n this.tools.editLayer.addLayer(this.editLayer);\n },\n\n onMove: function (e) {\n // 🍂namespace Editable\n // 🍂section Drawing events\n // 🍂event editable:drawing:move: Event\n // Fired when `move` mouse while drawing, while dragging a marker, and while dragging a vertex.\n this.fireAndForward('editable:drawing:move', e);\n },\n\n onDrawingMouseMove: function (e) {\n this.onMove(e);\n },\n\n _getEvents: function () {\n return {\n dragstart: this.onDragStart,\n drag: this.onDrag,\n dragend: this.onDragEnd,\n remove: this.disable\n };\n },\n\n onDragStart: function (e) {\n this.onEditing();\n // 🍂namespace Editable\n // 🍂event editable:dragstart: Event\n // Fired before a path feature is dragged.\n this.fireAndForward('editable:dragstart', e);\n },\n\n onDrag: function (e) {\n this.onMove(e);\n // 🍂namespace Editable\n // 🍂event editable:drag: Event\n // Fired when a path feature is being dragged.\n this.fireAndForward('editable:drag', e);\n },\n\n onDragEnd: function (e) {\n // 🍂namespace Editable\n // 🍂event editable:dragend: Event\n // Fired after a path feature has been dragged.\n this.fireAndForward('editable:dragend', e);\n }\n\n });\n\n // 🍂namespace Editable; 🍂class MarkerEditor; 🍂aka L.Editable.MarkerEditor\n // 🍂inherits BaseEditor\n // Editor for Marker.\n L.Editable.MarkerEditor = L.Editable.BaseEditor.extend({\n\n onDrawingMouseMove: function (e) {\n L.Editable.BaseEditor.prototype.onDrawingMouseMove.call(this, e);\n if (this._drawing) this.feature.setLatLng(e.latlng);\n },\n\n processDrawingClick: function (e) {\n // 🍂namespace Editable\n // 🍂section Drawing events\n // 🍂event editable:drawing:clicked: Event\n // Fired when user `click` while drawing, after all internal actions.\n this.fireAndForward('editable:drawing:clicked', e);\n this.commitDrawing(e);\n },\n\n connect: function (e) {\n // On touch, the latlng has not been updated because there is\n // no mousemove.\n if (e) this.feature._latlng = e.latlng;\n L.Editable.BaseEditor.prototype.connect.call(this, e);\n }\n\n });\n\n // 🍂namespace Editable; 🍂class PathEditor; 🍂aka L.Editable.PathEditor\n // 🍂inherits BaseEditor\n // Base class for all path editors.\n L.Editable.PathEditor = L.Editable.BaseEditor.extend({\n\n CLOSED: false,\n MIN_VERTEX: 2,\n\n addHooks: function () {\n L.Editable.BaseEditor.prototype.addHooks.call(this);\n if (this.feature) this.initVertexMarkers();\n return this;\n },\n\n initVertexMarkers: function (latlngs) {\n if (!this.enabled()) return;\n latlngs = latlngs || this.getLatLngs();\n if (isFlat(latlngs)) this.addVertexMarkers(latlngs);\n else for (var i = 0; i < latlngs.length; i++) this.initVertexMarkers(latlngs[i]);\n },\n\n getLatLngs: function () {\n return this.feature.getLatLngs();\n },\n\n // 🍂method reset()\n // Rebuild edit elements (Vertex, MiddleMarker, etc.).\n reset: function () {\n this.editLayer.clearLayers();\n this.initVertexMarkers();\n },\n\n addVertexMarker: function (latlng, latlngs) {\n return new this.tools.options.vertexMarkerClass(latlng, latlngs, this);\n },\n\n onNewVertex: function (vertex) {\n // 🍂namespace Editable\n // 🍂section Vertex events\n // 🍂event editable:vertex:new: VertexEvent\n // Fired when a new vertex is created.\n this.fireAndForward('editable:vertex:new', {latlng: vertex.latlng, vertex: vertex});\n },\n\n addVertexMarkers: function (latlngs) {\n for (var i = 0; i < latlngs.length; i++) {\n this.addVertexMarker(latlngs[i], latlngs);\n }\n },\n\n refreshVertexMarkers: function (latlngs) {\n latlngs = latlngs || this.getDefaultLatLngs();\n for (var i = 0; i < latlngs.length; i++) {\n latlngs[i].__vertex.update();\n }\n },\n\n addMiddleMarker: function (left, right, latlngs) {\n return new this.tools.options.middleMarkerClass(left, right, latlngs, this);\n },\n\n onVertexMarkerClick: function (e) {\n L.Editable.makeCancellable(e);\n // 🍂namespace Editable\n // 🍂section Vertex events\n // 🍂event editable:vertex:click: CancelableVertexEvent\n // Fired when a `click` is issued on a vertex, before any internal action is being processed.\n this.fireAndForward('editable:vertex:click', e);\n if (e._cancelled) return;\n if (this.tools.drawing() && this.tools._drawingEditor !== this) return;\n var index = e.vertex.getIndex(), commit;\n if (e.originalEvent.ctrlKey) {\n this.onVertexMarkerCtrlClick(e);\n } else if (e.originalEvent.altKey) {\n this.onVertexMarkerAltClick(e);\n } else if (e.originalEvent.shiftKey) {\n this.onVertexMarkerShiftClick(e);\n } else if (e.originalEvent.metaKey) {\n this.onVertexMarkerMetaKeyClick(e);\n } else if (index === e.vertex.getLastIndex() && this._drawing === L.Editable.FORWARD) {\n if (index >= this.MIN_VERTEX - 1) commit = true;\n } else if (index === 0 && this._drawing === L.Editable.BACKWARD && this._drawnLatLngs.length >= this.MIN_VERTEX) {\n commit = true;\n } else if (index === 0 && this._drawing === L.Editable.FORWARD && this._drawnLatLngs.length >= this.MIN_VERTEX && this.CLOSED) {\n commit = true; // Allow to close on first point also for polygons\n } else {\n this.onVertexRawMarkerClick(e);\n }\n // 🍂namespace Editable\n // 🍂section Vertex events\n // 🍂event editable:vertex:clicked: VertexEvent\n // Fired when a `click` is issued on a vertex, after all internal actions.\n this.fireAndForward('editable:vertex:clicked', e);\n if (commit) this.commitDrawing(e);\n },\n\n onVertexRawMarkerClick: function (e) {\n // 🍂namespace Editable\n // 🍂section Vertex events\n // 🍂event editable:vertex:rawclick: CancelableVertexEvent\n // Fired when a `click` is issued on a vertex without any special key and without being in drawing mode.\n this.fireAndForward('editable:vertex:rawclick', e);\n if (e._cancelled) return;\n if (!this.vertexCanBeDeleted(e.vertex)) return;\n e.vertex.delete();\n },\n\n vertexCanBeDeleted: function (vertex) {\n return vertex.latlngs.length > this.MIN_VERTEX;\n },\n\n onVertexDeleted: function (e) {\n // 🍂namespace Editable\n // 🍂section Vertex events\n // 🍂event editable:vertex:deleted: VertexEvent\n // Fired after a vertex has been deleted by user.\n this.fireAndForward('editable:vertex:deleted', e);\n },\n\n onVertexMarkerCtrlClick: function (e) {\n // 🍂namespace Editable\n // 🍂section Vertex events\n // 🍂event editable:vertex:ctrlclick: VertexEvent\n // Fired when a `click` with `ctrlKey` is issued on a vertex.\n this.fireAndForward('editable:vertex:ctrlclick', e);\n },\n\n onVertexMarkerShiftClick: function (e) {\n // 🍂namespace Editable\n // 🍂section Vertex events\n // 🍂event editable:vertex:shiftclick: VertexEvent\n // Fired when a `click` with `shiftKey` is issued on a vertex.\n this.fireAndForward('editable:vertex:shiftclick', e);\n },\n\n onVertexMarkerMetaKeyClick: function (e) {\n // 🍂namespace Editable\n // 🍂section Vertex events\n // 🍂event editable:vertex:metakeyclick: VertexEvent\n // Fired when a `click` with `metaKey` is issued on a vertex.\n this.fireAndForward('editable:vertex:metakeyclick', e);\n },\n\n onVertexMarkerAltClick: function (e) {\n // 🍂namespace Editable\n // 🍂section Vertex events\n // 🍂event editable:vertex:altclick: VertexEvent\n // Fired when a `click` with `altKey` is issued on a vertex.\n this.fireAndForward('editable:vertex:altclick', e);\n },\n\n onVertexMarkerContextMenu: function (e) {\n // 🍂namespace Editable\n // 🍂section Vertex events\n // 🍂event editable:vertex:contextmenu: VertexEvent\n // Fired when a `contextmenu` is issued on a vertex.\n this.fireAndForward('editable:vertex:contextmenu', e);\n },\n\n onVertexMarkerMouseDown: function (e) {\n // 🍂namespace Editable\n // 🍂section Vertex events\n // 🍂event editable:vertex:mousedown: VertexEvent\n // Fired when user `mousedown` a vertex.\n this.fireAndForward('editable:vertex:mousedown', e);\n },\n\n onMiddleMarkerMouseDown: function (e) {\n // 🍂namespace Editable\n // 🍂section MiddleMarker events\n // 🍂event editable:middlemarker:mousedown: VertexEvent\n // Fired when user `mousedown` a middle marker.\n this.fireAndForward('editable:middlemarker:mousedown', e);\n },\n\n onVertexMarkerDrag: function (e) {\n this.onMove(e);\n if (this.feature._bounds) this.extendBounds(e);\n // 🍂namespace Editable\n // 🍂section Vertex events\n // 🍂event editable:vertex:drag: VertexEvent\n // Fired when a vertex is dragged by user.\n this.fireAndForward('editable:vertex:drag', e);\n },\n\n onVertexMarkerDragStart: function (e) {\n // 🍂namespace Editable\n // 🍂section Vertex events\n // 🍂event editable:vertex:dragstart: VertexEvent\n // Fired before a vertex is dragged by user.\n this.fireAndForward('editable:vertex:dragstart', e);\n },\n\n onVertexMarkerDragEnd: function (e) {\n // 🍂namespace Editable\n // 🍂section Vertex events\n // 🍂event editable:vertex:dragend: VertexEvent\n // Fired after a vertex is dragged by user.\n this.fireAndForward('editable:vertex:dragend', e);\n },\n\n setDrawnLatLngs: function (latlngs) {\n this._drawnLatLngs = latlngs || this.getDefaultLatLngs();\n },\n\n startDrawing: function () {\n if (!this._drawnLatLngs) this.setDrawnLatLngs();\n L.Editable.BaseEditor.prototype.startDrawing.call(this);\n },\n\n startDrawingForward: function () {\n this.startDrawing();\n },\n\n endDrawing: function () {\n this.tools.detachForwardLineGuide();\n this.tools.detachBackwardLineGuide();\n if (this._drawnLatLngs && this._drawnLatLngs.length < this.MIN_VERTEX) this.deleteShape(this._drawnLatLngs);\n L.Editable.BaseEditor.prototype.endDrawing.call(this);\n delete this._drawnLatLngs;\n },\n\n addLatLng: function (latlng) {\n if (this._drawing === L.Editable.FORWARD) this._drawnLatLngs.push(latlng);\n else this._drawnLatLngs.unshift(latlng);\n this.feature._bounds.extend(latlng);\n var vertex = this.addVertexMarker(latlng, this._drawnLatLngs);\n this.onNewVertex(vertex);\n this.refresh();\n },\n\n newPointForward: function (latlng) {\n this.addLatLng(latlng);\n this.tools.attachForwardLineGuide();\n this.tools.anchorForwardLineGuide(latlng);\n },\n\n newPointBackward: function (latlng) {\n this.addLatLng(latlng);\n this.tools.anchorBackwardLineGuide(latlng);\n },\n\n // 🍂namespace PathEditor\n // 🍂method push()\n // Programmatically add a point while drawing.\n push: function (latlng) {\n if (!latlng) return console.error('L.Editable.PathEditor.push expect a vaild latlng as parameter');\n if (this._drawing === L.Editable.FORWARD) this.newPointForward(latlng);\n else this.newPointBackward(latlng);\n },\n\n removeLatLng: function (latlng) {\n latlng.__vertex.delete();\n this.refresh();\n },\n\n // 🍂method pop(): L.LatLng or null\n // Programmatically remove last point (if any) while drawing.\n pop: function () {\n if (this._drawnLatLngs.length <= 1) return;\n var latlng;\n if (this._drawing === L.Editable.FORWARD) latlng = this._drawnLatLngs[this._drawnLatLngs.length - 1];\n else latlng = this._drawnLatLngs[0];\n this.removeLatLng(latlng);\n if (this._drawing === L.Editable.FORWARD) this.tools.anchorForwardLineGuide(this._drawnLatLngs[this._drawnLatLngs.length - 1]);\n else this.tools.anchorForwardLineGuide(this._drawnLatLngs[0]);\n return latlng;\n },\n\n processDrawingClick: function (e) {\n if (e.vertex && e.vertex.editor === this) return;\n if (this._drawing === L.Editable.FORWARD) this.newPointForward(e.latlng);\n else this.newPointBackward(e.latlng);\n this.fireAndForward('editable:drawing:clicked', e);\n },\n\n onDrawingMouseMove: function (e) {\n L.Editable.BaseEditor.prototype.onDrawingMouseMove.call(this, e);\n if (this._drawing) {\n this.tools.moveForwardLineGuide(e.latlng);\n this.tools.moveBackwardLineGuide(e.latlng);\n }\n },\n\n refresh: function () {\n this.feature.redraw();\n this.onEditing();\n },\n\n // 🍂namespace PathEditor\n // 🍂method newShape(latlng?: L.LatLng)\n // Add a new shape (Polyline, Polygon) in a multi, and setup up drawing tools to draw it;\n // if optional `latlng` is given, start a path at this point.\n newShape: function (latlng) {\n var shape = this.addNewEmptyShape();\n if (!shape) return;\n this.setDrawnLatLngs(shape[0] || shape); // Polygon or polyline\n this.startDrawingForward();\n // 🍂namespace Editable\n // 🍂section Shape events\n // 🍂event editable:shape:new: ShapeEvent\n // Fired when a new shape is created in a multi (Polygon or Polyline).\n this.fireAndForward('editable:shape:new', {shape: shape});\n if (latlng) this.newPointForward(latlng);\n },\n\n deleteShape: function (shape, latlngs) {\n var e = {shape: shape};\n L.Editable.makeCancellable(e);\n // 🍂namespace Editable\n // 🍂section Shape events\n // 🍂event editable:shape:delete: CancelableShapeEvent\n // Fired before a new shape is deleted in a multi (Polygon or Polyline).\n this.fireAndForward('editable:shape:delete', e);\n if (e._cancelled) return;\n shape = this._deleteShape(shape, latlngs);\n if (this.ensureNotFlat) this.ensureNotFlat(); // Polygon.\n this.feature.setLatLngs(this.getLatLngs()); // Force bounds reset.\n this.refresh();\n this.reset();\n // 🍂namespace Editable\n // 🍂section Shape events\n // 🍂event editable:shape:deleted: ShapeEvent\n // Fired after a new shape is deleted in a multi (Polygon or Polyline).\n this.fireAndForward('editable:shape:deleted', {shape: shape});\n return shape;\n },\n\n _deleteShape: function (shape, latlngs) {\n latlngs = latlngs || this.getLatLngs();\n if (!latlngs.length) return;\n var self = this,\n inplaceDelete = function (latlngs, shape) {\n // Called when deleting a flat latlngs\n shape = latlngs.splice(0, Number.MAX_VALUE);\n return shape;\n },\n spliceDelete = function (latlngs, shape) {\n // Called when removing a latlngs inside an array\n latlngs.splice(latlngs.indexOf(shape), 1);\n if (!latlngs.length) self._deleteShape(latlngs);\n return shape;\n };\n if (latlngs === shape) return inplaceDelete(latlngs, shape);\n for (var i = 0; i < latlngs.length; i++) {\n if (latlngs[i] === shape) return spliceDelete(latlngs, shape);\n else if (latlngs[i].indexOf(shape) !== -1) return spliceDelete(latlngs[i], shape);\n }\n },\n\n // 🍂namespace PathEditor\n // 🍂method deleteShapeAt(latlng: L.LatLng): Array\n // Remove a path shape at the given `latlng`.\n deleteShapeAt: function (latlng) {\n var shape = this.feature.shapeAt(latlng);\n if (shape) return this.deleteShape(shape);\n },\n\n // 🍂method appendShape(shape: Array)\n // Append a new shape to the Polygon or Polyline.\n appendShape: function (shape) {\n this.insertShape(shape);\n },\n\n // 🍂method prependShape(shape: Array)\n // Prepend a new shape to the Polygon or Polyline.\n prependShape: function (shape) {\n this.insertShape(shape, 0);\n },\n\n // 🍂method insertShape(shape: Array, index: int)\n // Insert a new shape to the Polygon or Polyline at given index (default is to append).\n insertShape: function (shape, index) {\n this.ensureMulti();\n shape = this.formatShape(shape);\n if (typeof index === 'undefined') index = this.feature._latlngs.length;\n this.feature._latlngs.splice(index, 0, shape);\n this.feature.redraw();\n if (this._enabled) this.reset();\n },\n\n extendBounds: function (e) {\n this.feature._bounds.extend(e.vertex.latlng);\n },\n\n onDragStart: function (e) {\n this.editLayer.clearLayers();\n L.Editable.BaseEditor.prototype.onDragStart.call(this, e);\n },\n\n onDragEnd: function (e) {\n this.initVertexMarkers();\n L.Editable.BaseEditor.prototype.onDragEnd.call(this, e);\n }\n\n });\n\n // 🍂namespace Editable; 🍂class PolylineEditor; 🍂aka L.Editable.PolylineEditor\n // 🍂inherits PathEditor\n L.Editable.PolylineEditor = L.Editable.PathEditor.extend({\n\n startDrawingBackward: function () {\n this._drawing = L.Editable.BACKWARD;\n this.startDrawing();\n },\n\n // 🍂method continueBackward(latlngs?: Array)\n // Set up drawing tools to continue the line backward.\n continueBackward: function (latlngs) {\n if (this.drawing()) return;\n latlngs = latlngs || this.getDefaultLatLngs();\n this.setDrawnLatLngs(latlngs);\n if (latlngs.length > 0) {\n this.tools.attachBackwardLineGuide();\n this.tools.anchorBackwardLineGuide(latlngs[0]);\n }\n this.startDrawingBackward();\n },\n\n // 🍂method continueForward(latlngs?: Array)\n // Set up drawing tools to continue the line forward.\n continueForward: function (latlngs) {\n if (this.drawing()) return;\n latlngs = latlngs || this.getDefaultLatLngs();\n this.setDrawnLatLngs(latlngs);\n if (latlngs.length > 0) {\n this.tools.attachForwardLineGuide();\n this.tools.anchorForwardLineGuide(latlngs[latlngs.length - 1]);\n }\n this.startDrawingForward();\n },\n\n getDefaultLatLngs: function (latlngs) {\n latlngs = latlngs || this.feature._latlngs;\n if (!latlngs.length || latlngs[0] instanceof L.LatLng) return latlngs;\n else return this.getDefaultLatLngs(latlngs[0]);\n },\n\n ensureMulti: function () {\n if (this.feature._latlngs.length && isFlat(this.feature._latlngs)) {\n this.feature._latlngs = [this.feature._latlngs];\n }\n },\n\n addNewEmptyShape: function () {\n if (this.feature._latlngs.length) {\n var shape = [];\n this.appendShape(shape);\n return shape;\n } else {\n return this.feature._latlngs;\n }\n },\n\n formatShape: function (shape) {\n if (isFlat(shape)) return shape;\n else if (shape[0]) return this.formatShape(shape[0]);\n },\n\n // 🍂method splitShape(latlngs?: Array, index: int)\n // Split the given `latlngs` shape at index `index` and integrate new shape in instance `latlngs`.\n splitShape: function (shape, index) {\n if (!index || index >= shape.length - 1) return;\n this.ensureMulti();\n var shapeIndex = this.feature._latlngs.indexOf(shape);\n if (shapeIndex === -1) return;\n var first = shape.slice(0, index + 1),\n second = shape.slice(index);\n // We deal with reference, we don't want twice the same latlng around.\n second[0] = L.latLng(second[0].lat, second[0].lng, second[0].alt);\n this.feature._latlngs.splice(shapeIndex, 1, first, second);\n this.refresh();\n this.reset();\n }\n\n });\n\n // 🍂namespace Editable; 🍂class PolygonEditor; 🍂aka L.Editable.PolygonEditor\n // 🍂inherits PathEditor\n L.Editable.PolygonEditor = L.Editable.PathEditor.extend({\n\n CLOSED: true,\n MIN_VERTEX: 3,\n\n newPointForward: function (latlng) {\n L.Editable.PathEditor.prototype.newPointForward.call(this, latlng);\n if (!this.tools.backwardLineGuide._latlngs.length) this.tools.anchorBackwardLineGuide(latlng);\n if (this._drawnLatLngs.length === 2) this.tools.attachBackwardLineGuide();\n },\n\n addNewEmptyHole: function (latlng) {\n this.ensureNotFlat();\n var latlngs = this.feature.shapeAt(latlng);\n if (!latlngs) return;\n var holes = [];\n latlngs.push(holes);\n return holes;\n },\n\n // 🍂method newHole(latlng?: L.LatLng, index: int)\n // Set up drawing tools for creating a new hole on the Polygon. If the `latlng` param is given, a first point is created.\n newHole: function (latlng) {\n var holes = this.addNewEmptyHole(latlng);\n if (!holes) return;\n this.setDrawnLatLngs(holes);\n this.startDrawingForward();\n if (latlng) this.newPointForward(latlng);\n },\n\n addNewEmptyShape: function () {\n if (this.feature._latlngs.length && this.feature._latlngs[0].length) {\n var shape = [];\n this.appendShape(shape);\n return shape;\n } else {\n return this.feature._latlngs;\n }\n },\n\n ensureMulti: function () {\n if (this.feature._latlngs.length && isFlat(this.feature._latlngs[0])) {\n this.feature._latlngs = [this.feature._latlngs];\n }\n },\n\n ensureNotFlat: function () {\n if (!this.feature._latlngs.length || isFlat(this.feature._latlngs)) this.feature._latlngs = [this.feature._latlngs];\n },\n\n vertexCanBeDeleted: function (vertex) {\n var parent = this.feature.parentShape(vertex.latlngs),\n idx = L.Util.indexOf(parent, vertex.latlngs);\n if (idx > 0) return true; // Holes can be totally deleted without removing the layer itself.\n return L.Editable.PathEditor.prototype.vertexCanBeDeleted.call(this, vertex);\n },\n\n getDefaultLatLngs: function () {\n if (!this.feature._latlngs.length) this.feature._latlngs.push([]);\n return this.feature._latlngs[0];\n },\n\n formatShape: function (shape) {\n // [[1, 2], [3, 4]] => must be nested\n // [] => must be nested\n // [[]] => is already nested\n if (isFlat(shape) && (!shape[0] || shape[0].length !== 0)) return [shape];\n else return shape;\n }\n\n });\n\n // 🍂namespace Editable; 🍂class RectangleEditor; 🍂aka L.Editable.RectangleEditor\n // 🍂inherits PathEditor\n L.Editable.RectangleEditor = L.Editable.PathEditor.extend({\n\n CLOSED: true,\n MIN_VERTEX: 4,\n\n options: {\n skipMiddleMarkers: true\n },\n\n extendBounds: function (e) {\n var index = e.vertex.getIndex(),\n next = e.vertex.getNext(),\n previous = e.vertex.getPrevious(),\n oppositeIndex = (index + 2) % 4,\n opposite = e.vertex.latlngs[oppositeIndex],\n bounds = new L.LatLngBounds(e.latlng, opposite);\n // Update latlngs by hand to preserve order.\n previous.latlng.update([e.latlng.lat, opposite.lng]);\n next.latlng.update([opposite.lat, e.latlng.lng]);\n this.updateBounds(bounds);\n this.refreshVertexMarkers();\n },\n\n onDrawingMouseDown: function (e) {\n L.Editable.PathEditor.prototype.onDrawingMouseDown.call(this, e);\n this.connect();\n var latlngs = this.getDefaultLatLngs();\n // L.Polygon._convertLatLngs removes last latlng if it equals first point,\n // which is the case here as all latlngs are [0, 0]\n if (latlngs.length === 3) latlngs.push(e.latlng);\n var bounds = new L.LatLngBounds(e.latlng, e.latlng);\n this.updateBounds(bounds);\n this.updateLatLngs(bounds);\n this.refresh();\n this.reset();\n // Stop dragging map.\n // L.Draggable has two workflows:\n // - mousedown => mousemove => mouseup\n // - touchstart => touchmove => touchend\n // Problem: L.Map.Tap does not allow us to listen to touchstart, so we only\n // can deal with mousedown, but then when in a touch device, we are dealing with\n // simulated events (actually simulated by L.Map.Tap), which are no more taken\n // into account by L.Draggable.\n // Ref.: https://github.com/Leaflet/Leaflet.Editable/issues/103\n e.originalEvent._simulated = false;\n this.map.dragging._draggable._onUp(e.originalEvent);\n // Now transfer ongoing drag action to the bottom right corner.\n // Should we refine which corne will handle the drag according to\n // drag direction?\n latlngs[3].__vertex.dragging._draggable._onDown(e.originalEvent);\n },\n\n onDrawingMouseUp: function (e) {\n this.commitDrawing(e);\n e.originalEvent._simulated = false;\n L.Editable.PathEditor.prototype.onDrawingMouseUp.call(this, e);\n },\n\n onDrawingMouseMove: function (e) {\n e.originalEvent._simulated = false;\n L.Editable.PathEditor.prototype.onDrawingMouseMove.call(this, e);\n },\n\n\n getDefaultLatLngs: function (latlngs) {\n return latlngs || this.feature._latlngs[0];\n },\n\n updateBounds: function (bounds) {\n this.feature._bounds = bounds;\n },\n\n updateLatLngs: function (bounds) {\n var latlngs = this.getDefaultLatLngs(),\n newLatlngs = this.feature._boundsToLatLngs(bounds);\n // Keep references.\n for (var i = 0; i < latlngs.length; i++) {\n latlngs[i].update(newLatlngs[i]);\n };\n }\n\n });\n\n // 🍂namespace Editable; 🍂class CircleEditor; 🍂aka L.Editable.CircleEditor\n // 🍂inherits PathEditor\n L.Editable.CircleEditor = L.Editable.PathEditor.extend({\n\n MIN_VERTEX: 2,\n\n options: {\n skipMiddleMarkers: true\n },\n\n initialize: function (map, feature, options) {\n L.Editable.PathEditor.prototype.initialize.call(this, map, feature, options);\n this._resizeLatLng = this.computeResizeLatLng();\n },\n\n computeResizeLatLng: function () {\n // While circle is not added to the map, _radius is not set.\n var delta = (this.feature._radius || this.feature._mRadius) * Math.cos(Math.PI / 4),\n point = this.map.project(this.feature._latlng);\n return this.map.unproject([point.x + delta, point.y - delta]);\n },\n\n updateResizeLatLng: function () {\n this._resizeLatLng.update(this.computeResizeLatLng());\n this._resizeLatLng.__vertex.update();\n },\n\n getLatLngs: function () {\n return [this.feature._latlng, this._resizeLatLng];\n },\n\n getDefaultLatLngs: function () {\n return this.getLatLngs();\n },\n\n onVertexMarkerDrag: function (e) {\n if (e.vertex.getIndex() === 1) this.resize(e);\n else this.updateResizeLatLng(e);\n L.Editable.PathEditor.prototype.onVertexMarkerDrag.call(this, e);\n },\n\n resize: function (e) {\n var radius = this.feature._latlng.distanceTo(e.latlng)\n this.feature.setRadius(radius);\n },\n\n onDrawingMouseDown: function (e) {\n L.Editable.PathEditor.prototype.onDrawingMouseDown.call(this, e);\n this._resizeLatLng.update(e.latlng);\n this.feature._latlng.update(e.latlng);\n this.connect();\n // Stop dragging map.\n e.originalEvent._simulated = false;\n this.map.dragging._draggable._onUp(e.originalEvent);\n // Now transfer ongoing drag action to the radius handler.\n this._resizeLatLng.__vertex.dragging._draggable._onDown(e.originalEvent);\n },\n\n onDrawingMouseUp: function (e) {\n this.commitDrawing(e);\n e.originalEvent._simulated = false;\n L.Editable.PathEditor.prototype.onDrawingMouseUp.call(this, e);\n },\n\n onDrawingMouseMove: function (e) {\n e.originalEvent._simulated = false;\n L.Editable.PathEditor.prototype.onDrawingMouseMove.call(this, e);\n },\n\n onDrag: function (e) {\n L.Editable.PathEditor.prototype.onDrag.call(this, e);\n this.feature.dragging.updateLatLng(this._resizeLatLng);\n }\n\n });\n\n // 🍂namespace Editable; 🍂class EditableMixin\n // `EditableMixin` is included to `L.Polyline`, `L.Polygon`, `L.Rectangle`, `L.Circle`\n // and `L.Marker`. It adds some methods to them.\n // *When editing is enabled, the editor is accessible on the instance with the\n // `editor` property.*\n var EditableMixin = {\n\n createEditor: function (map) {\n map = map || this._map;\n var tools = (this.options.editOptions || {}).editTools || map.editTools;\n if (!tools) throw Error('Unable to detect Editable instance.')\n var Klass = this.options.editorClass || this.getEditorClass(tools);\n return new Klass(map, this, this.options.editOptions);\n },\n\n // 🍂method enableEdit(map?: L.Map): this.editor\n // Enable editing, by creating an editor if not existing, and then calling `enable` on it.\n enableEdit: function (map) {\n if (!this.editor) this.createEditor(map);\n this.editor.enable();\n return this.editor;\n },\n\n // 🍂method editEnabled(): boolean\n // Return true if current instance has an editor attached, and this editor is enabled.\n editEnabled: function () {\n return this.editor && this.editor.enabled();\n },\n\n // 🍂method disableEdit()\n // Disable editing, also remove the editor property reference.\n disableEdit: function () {\n if (this.editor) {\n this.editor.disable();\n delete this.editor;\n }\n },\n\n // 🍂method toggleEdit()\n // Enable or disable editing, according to current status.\n toggleEdit: function () {\n if (this.editEnabled()) this.disableEdit();\n else this.enableEdit();\n },\n\n _onEditableAdd: function () {\n if (this.editor) this.enableEdit();\n }\n\n };\n\n var PolylineMixin = {\n\n getEditorClass: function (tools) {\n return (tools && tools.options.polylineEditorClass) ? tools.options.polylineEditorClass : L.Editable.PolylineEditor;\n },\n\n shapeAt: function (latlng, latlngs) {\n // We can have those cases:\n // - latlngs are just a flat array of latlngs, use this\n // - latlngs is an array of arrays of latlngs, loop over\n var shape = null;\n latlngs = latlngs || this._latlngs;\n if (!latlngs.length) return shape;\n else if (isFlat(latlngs) && this.isInLatLngs(latlng, latlngs)) shape = latlngs;\n else for (var i = 0; i < latlngs.length; i++) if (this.isInLatLngs(latlng, latlngs[i])) return latlngs[i];\n return shape;\n },\n\n isInLatLngs: function (l, latlngs) {\n if (!latlngs) return false;\n var i, k, len, part = [], p,\n w = this._clickTolerance();\n this._projectLatlngs(latlngs, part, this._pxBounds);\n part = part[0];\n p = this._map.latLngToLayerPoint(l);\n\n if (!this._pxBounds.contains(p)) { return false; }\n for (i = 1, len = part.length, k = 0; i < len; k = i++) {\n\n if (L.LineUtil.pointToSegmentDistance(p, part[k], part[i]) <= w) {\n return true;\n }\n }\n return false;\n }\n\n };\n\n var PolygonMixin = {\n\n getEditorClass: function (tools) {\n return (tools && tools.options.polygonEditorClass) ? tools.options.polygonEditorClass : L.Editable.PolygonEditor;\n },\n\n shapeAt: function (latlng, latlngs) {\n // We can have those cases:\n // - latlngs are just a flat array of latlngs, use this\n // - latlngs is an array of arrays of latlngs, this is a simple polygon (maybe with holes), use the first\n // - latlngs is an array of arrays of arrays, this is a multi, loop over\n var shape = null;\n latlngs = latlngs || this._latlngs;\n if (!latlngs.length) return shape;\n else if (isFlat(latlngs) && this.isInLatLngs(latlng, latlngs)) shape = latlngs;\n else if (isFlat(latlngs[0]) && this.isInLatLngs(latlng, latlngs[0])) shape = latlngs;\n else for (var i = 0; i < latlngs.length; i++) if (this.isInLatLngs(latlng, latlngs[i][0])) return latlngs[i];\n return shape;\n },\n\n isInLatLngs: function (l, latlngs) {\n var inside = false, l1, l2, j, k, len2;\n\n for (j = 0, len2 = latlngs.length, k = len2 - 1; j < len2; k = j++) {\n l1 = latlngs[j];\n l2 = latlngs[k];\n\n if (((l1.lat > l.lat) !== (l2.lat > l.lat)) &&\n (l.lng < (l2.lng - l1.lng) * (l.lat - l1.lat) / (l2.lat - l1.lat) + l1.lng)) {\n inside = !inside;\n }\n }\n\n return inside;\n },\n\n parentShape: function (shape, latlngs) {\n latlngs = latlngs || this._latlngs;\n if (!latlngs) return;\n var idx = L.Util.indexOf(latlngs, shape);\n if (idx !== -1) return latlngs;\n for (var i = 0; i < latlngs.length; i++) {\n idx = L.Util.indexOf(latlngs[i], shape);\n if (idx !== -1) return latlngs[i];\n }\n }\n\n };\n\n\n var MarkerMixin = {\n\n getEditorClass: function (tools) {\n return (tools && tools.options.markerEditorClass) ? tools.options.markerEditorClass : L.Editable.MarkerEditor;\n }\n\n };\n\n var RectangleMixin = {\n\n getEditorClass: function (tools) {\n return (tools && tools.options.rectangleEditorClass) ? tools.options.rectangleEditorClass : L.Editable.RectangleEditor;\n }\n\n };\n\n var CircleMixin = {\n\n getEditorClass: function (tools) {\n return (tools && tools.options.circleEditorClass) ? tools.options.circleEditorClass : L.Editable.CircleEditor;\n }\n\n };\n\n var keepEditable = function () {\n // Make sure you can remove/readd an editable layer.\n this.on('add', this._onEditableAdd);\n };\n\n var isFlat = L.LineUtil.isFlat || L.LineUtil._flat || L.Polyline._flat; // <=> 1.1 compat.\n\n\n if (L.Polyline) {\n L.Polyline.include(EditableMixin);\n L.Polyline.include(PolylineMixin);\n L.Polyline.addInitHook(keepEditable);\n }\n if (L.Polygon) {\n L.Polygon.include(EditableMixin);\n L.Polygon.include(PolygonMixin);\n }\n if (L.Marker) {\n L.Marker.include(EditableMixin);\n L.Marker.include(MarkerMixin);\n L.Marker.addInitHook(keepEditable);\n }\n if (L.Rectangle) {\n L.Rectangle.include(EditableMixin);\n L.Rectangle.include(RectangleMixin);\n }\n if (L.Circle) {\n L.Circle.include(EditableMixin);\n L.Circle.include(CircleMixin);\n }\n\n L.LatLng.prototype.update = function (latlng) {\n latlng = L.latLng(latlng);\n this.lat = latlng.lat;\n this.lng = latlng.lng;\n }\n\n}, window));\n"
},
{
"id": 63,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_classof.js",
"name": "./node_modules/core-js/library/modules/_classof.js",
"index": 120,
"index2": 112,
"size": 718,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/core.is-iterable.js",
"issuerId": 140,
"issuerName": "./node_modules/core-js/library/modules/core.is-iterable.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 136,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Poly.js",
"name": "./src/modules/Poly.js"
},
{
"id": 137,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/slicedToArray.js",
"name": "./node_modules/babel-runtime/helpers/slicedToArray.js"
},
{
"id": 138,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/is-iterable.js",
"name": "./node_modules/babel-runtime/core-js/is-iterable.js"
},
{
"id": 139,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/is-iterable.js",
"name": "./node_modules/core-js/library/fn/is-iterable.js"
},
{
"id": 140,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/core.is-iterable.js",
"name": "./node_modules/core-js/library/modules/core.is-iterable.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 64,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/core.get-iterator-method.js",
"module": "./node_modules/core-js/library/modules/core.get-iterator-method.js",
"moduleName": "./node_modules/core-js/library/modules/core.get-iterator-method.js",
"type": "cjs require",
"userRequest": "./_classof",
"loc": "1:14-35"
},
{
"moduleId": 140,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/core.is-iterable.js",
"module": "./node_modules/core-js/library/modules/core.is-iterable.js",
"moduleName": "./node_modules/core-js/library/modules/core.is-iterable.js",
"type": "cjs require",
"userRequest": "./_classof",
"loc": "1:14-35"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 8,
"source": "// getting tag from 19.1.3.6 Object.prototype.toString()\nvar cof = require('./_cof');\nvar TAG = require('./_wks')('toStringTag');\n// ES3 wrong here\nvar ARG = cof(function () { return arguments; }()) == 'Arguments';\n\n// fallback for IE11 Script Access Denied error\nvar tryGet = function (it, key) {\n try {\n return it[key];\n } catch (e) { /* empty */ }\n};\n\nmodule.exports = function (it) {\n var O, T, B;\n return it === undefined ? 'Undefined' : it === null ? 'Null'\n // @@toStringTag case\n : typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T\n // builtinTag case\n : ARG ? cof(O)\n // ES3 arguments fallback\n : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;\n};\n"
},
{
"id": 64,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/core.get-iterator-method.js",
"name": "./node_modules/core-js/library/modules/core.get-iterator-method.js",
"index": 124,
"index2": 116,
"size": 297,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/core.get-iterator.js",
"issuerId": 143,
"issuerName": "./node_modules/core-js/library/modules/core.get-iterator.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 136,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Poly.js",
"name": "./src/modules/Poly.js"
},
{
"id": 137,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/slicedToArray.js",
"name": "./node_modules/babel-runtime/helpers/slicedToArray.js"
},
{
"id": 141,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/get-iterator.js",
"name": "./node_modules/babel-runtime/core-js/get-iterator.js"
},
{
"id": 142,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/get-iterator.js",
"name": "./node_modules/core-js/library/fn/get-iterator.js"
},
{
"id": 143,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/core.get-iterator.js",
"name": "./node_modules/core-js/library/modules/core.get-iterator.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 143,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/core.get-iterator.js",
"module": "./node_modules/core-js/library/modules/core.get-iterator.js",
"moduleName": "./node_modules/core-js/library/modules/core.get-iterator.js",
"type": "cjs require",
"userRequest": "./core.get-iterator-method",
"loc": "2:10-47"
},
{
"moduleId": 155,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.array.from.js",
"module": "./node_modules/core-js/library/modules/es6.array.from.js",
"moduleName": "./node_modules/core-js/library/modules/es6.array.from.js",
"type": "cjs require",
"userRequest": "./core.get-iterator-method",
"loc": "9:16-53"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 8,
"source": "var classof = require('./_classof');\nvar ITERATOR = require('./_wks')('iterator');\nvar Iterators = require('./_iterators');\nmodule.exports = require('./_core').getIteratorMethod = function (it) {\n if (it != undefined) return it[ITERATOR]\n || it['@@iterator']\n || Iterators[classof(it)];\n};\n"
},
{
"id": 65,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/constants/modes.js",
"name": "./src/constants/modes.js",
"index": 125,
"index2": 122,
"size": 644,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"issuerId": 89,
"issuerName": "./src/containers/App.jsx",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 89,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"module": "./src/containers/App.jsx",
"moduleName": "./src/containers/App.jsx",
"type": "cjs require",
"userRequest": "$constants/modes",
"loc": "30:13-40"
},
{
"moduleId": 124,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"module": "./src/modules/Editor.js",
"moduleName": "./src/modules/Editor.js",
"type": "cjs require",
"userRequest": "$constants/modes",
"loc": "24:13-40"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 2,
"source": "'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\n(function () {\n var enterModule = require('react-hot-loader').enterModule;\n\n enterModule && enterModule(module);\n})();\n\nvar MODES = exports.MODES = {\n POLY: 'POLY',\n STICKERS: 'STICKERS',\n ROUTER: 'ROUTER',\n SHOTTER: 'SHOTTER',\n NONE: 'NONE'\n};\n;\n\n(function () {\n var reactHotLoader = require('react-hot-loader').default;\n\n var leaveModule = require('react-hot-loader').leaveModule;\n\n if (!reactHotLoader) {\n return;\n }\n\n reactHotLoader.register(MODES, 'MODES', '/Users/user/Projects/orchid/src/constants/modes.js');\n leaveModule(module);\n})();\n\n;"
},
{
"id": 66,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/utils/DomMarker.js",
"name": "./src/utils/DomMarker.js",
"index": 128,
"index2": 123,
"size": 1093,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"issuerId": 146,
"issuerName": "./src/modules/Router.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 146,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"name": "./src/modules/Router.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 145,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Sticker.js",
"module": "./src/modules/Sticker.js",
"moduleName": "./src/modules/Sticker.js",
"type": "cjs require",
"userRequest": "$utils/DomMarker",
"loc": "20:17-44"
},
{
"moduleId": 146,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"module": "./src/modules/Router.js",
"moduleName": "./src/modules/Router.js",
"type": "cjs require",
"userRequest": "$utils/DomMarker",
"loc": "34:17-44"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 4,
"source": "'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.DomMarker = undefined;\n\nvar _leaflet = require('leaflet');\n\n(function () {\n var enterModule = require('react-hot-loader').enterModule;\n\n enterModule && enterModule(module);\n})();\n\nvar DomMarker = exports.DomMarker = _leaflet.DivIcon.extend({\n initialize: function initialize(options) {\n this.options = options;\n },\n\n options: {\n element: null // a initialized DOM element\n // same options as divIcon except for html\n },\n\n createIcon: function createIcon() {\n var _options = this.options,\n html = _options.html,\n element = _options.element,\n className = _options.className;\n\n\n this._setIconStyles(element, 'icon');\n\n return element;\n }\n});\n;\n\n(function () {\n var reactHotLoader = require('react-hot-loader').default;\n\n var leaveModule = require('react-hot-loader').leaveModule;\n\n if (!reactHotLoader) {\n return;\n }\n\n reactHotLoader.register(DomMarker, 'DomMarker', '/Users/user/Projects/orchid/src/utils/DomMarker.js');\n leaveModule(module);\n})();\n\n;"
},
{
"id": 67,
"identifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/itinerary.js",
"name": "./node_modules/leaflet-routing-machine/src/itinerary.js",
"index": 145,
"index2": 142,
"size": 6566,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/index.js",
"issuerId": 160,
"issuerName": "./node_modules/leaflet-routing-machine/src/index.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 146,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"name": "./src/modules/Router.js"
},
{
"id": 160,
"identifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/index.js",
"name": "./node_modules/leaflet-routing-machine/src/index.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 160,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/index.js",
"module": "./node_modules/leaflet-routing-machine/src/index.js",
"moduleName": "./node_modules/leaflet-routing-machine/src/index.js",
"type": "cjs require",
"userRequest": "./itinerary",
"loc": "3:16-38"
},
{
"moduleId": 161,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/control.js",
"module": "./node_modules/leaflet-routing-machine/src/control.js",
"moduleName": "./node_modules/leaflet-routing-machine/src/control.js",
"type": "cjs require",
"userRequest": "./itinerary",
"loc": "6:17-39"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 5,
"source": "(function() {\n\t'use strict';\n\n\tvar L = require('leaflet');\n\tvar Formatter = require('./formatter');\n\tvar ItineraryBuilder = require('./itinerary-builder');\n\n\tmodule.exports = L.Control.extend({\n\t\tincludes: ((typeof L.Evented !== 'undefined' && L.Evented.prototype) || L.Mixin.Events),\n\n\t\toptions: {\n\t\t\tpointMarkerStyle: {\n\t\t\t\tradius: 5,\n\t\t\t\tcolor: '#03f',\n\t\t\t\tfillColor: 'white',\n\t\t\t\topacity: 1,\n\t\t\t\tfillOpacity: 0.7\n\t\t\t},\n\t\t\tsummaryTemplate: '<h2>{name}</h2><h3>{distance}, {time}</h3>',\n\t\t\ttimeTemplate: '{time}',\n\t\t\tcontainerClassName: '',\n\t\t\talternativeClassName: '',\n\t\t\tminimizedClassName: '',\n\t\t\titineraryClassName: '',\n\t\t\ttotalDistanceRoundingSensitivity: -1,\n\t\t\tshow: true,\n\t\t\tcollapsible: undefined,\n\t\t\tcollapseBtn: function(itinerary) {\n\t\t\t\tvar collapseBtn = L.DomUtil.create('span', itinerary.options.collapseBtnClass);\n\t\t\t\tL.DomEvent.on(collapseBtn, 'click', itinerary._toggle, itinerary);\n\t\t\t\titinerary._container.insertBefore(collapseBtn, itinerary._container.firstChild);\n\t\t\t},\n\t\t\tcollapseBtnClass: 'leaflet-routing-collapse-btn'\n\t\t},\n\n\t\tinitialize: function(options) {\n\t\t\tL.setOptions(this, options);\n\t\t\tthis._formatter = this.options.formatter || new Formatter(this.options);\n\t\t\tthis._itineraryBuilder = this.options.itineraryBuilder || new ItineraryBuilder({\n\t\t\t\tcontainerClassName: this.options.itineraryClassName\n\t\t\t});\n\t\t},\n\n\t\tonAdd: function(map) {\n\t\t\tvar collapsible = this.options.collapsible;\n\n\t\t\tcollapsible = collapsible || (collapsible === undefined && map.getSize().x <= 640);\n\n\t\t\tthis._container = L.DomUtil.create('div', 'leaflet-routing-container leaflet-bar ' +\n\t\t\t\t(!this.options.show ? 'leaflet-routing-container-hide ' : '') +\n\t\t\t\t(collapsible ? 'leaflet-routing-collapsible ' : '') +\n\t\t\t\tthis.options.containerClassName);\n\t\t\tthis._altContainer = this.createAlternativesContainer();\n\t\t\tthis._container.appendChild(this._altContainer);\n\t\t\tL.DomEvent.disableClickPropagation(this._container);\n\t\t\tL.DomEvent.addListener(this._container, 'mousewheel', function(e) {\n\t\t\t\tL.DomEvent.stopPropagation(e);\n\t\t\t});\n\n\t\t\tif (collapsible) {\n\t\t\t\tthis.options.collapseBtn(this);\n\t\t\t}\n\n\t\t\treturn this._container;\n\t\t},\n\n\t\tonRemove: function() {\n\t\t},\n\n\t\tcreateAlternativesContainer: function() {\n\t\t\treturn L.DomUtil.create('div', 'leaflet-routing-alternatives-container');\n\t\t},\n\n\t\tsetAlternatives: function(routes) {\n\t\t\tvar i,\n\t\t\t alt,\n\t\t\t altDiv;\n\n\t\t\tthis._clearAlts();\n\n\t\t\tthis._routes = routes;\n\n\t\t\tfor (i = 0; i < this._routes.length; i++) {\n\t\t\t\talt = this._routes[i];\n\t\t\t\taltDiv = this._createAlternative(alt, i);\n\t\t\t\tthis._altContainer.appendChild(altDiv);\n\t\t\t\tthis._altElements.push(altDiv);\n\t\t\t}\n\n\t\t\tthis._selectRoute({route: this._routes[0], alternatives: this._routes.slice(1)});\n\n\t\t\treturn this;\n\t\t},\n\n\t\tshow: function() {\n\t\t\tL.DomUtil.removeClass(this._container, 'leaflet-routing-container-hide');\n\t\t},\n\n\t\thide: function() {\n\t\t\tL.DomUtil.addClass(this._container, 'leaflet-routing-container-hide');\n\t\t},\n\n\t\t_toggle: function() {\n\t\t\tvar collapsed = L.DomUtil.hasClass(this._container, 'leaflet-routing-container-hide');\n\t\t\tthis[collapsed ? 'show' : 'hide']();\n\t\t},\n\n\t\t_createAlternative: function(alt, i) {\n\t\t\tvar altDiv = L.DomUtil.create('div', 'leaflet-routing-alt ' +\n\t\t\t\tthis.options.alternativeClassName +\n\t\t\t\t(i > 0 ? ' leaflet-routing-alt-minimized ' + this.options.minimizedClassName : '')),\n\t\t\t\ttemplate = this.options.summaryTemplate,\n\t\t\t\tdata = L.extend({\n\t\t\t\t\tname: alt.name,\n\t\t\t\t\tdistance: this._formatter.formatDistance(alt.summary.totalDistance, this.options.totalDistanceRoundingSensitivity),\n\t\t\t\t\ttime: this._formatter.formatTime(alt.summary.totalTime)\n\t\t\t\t}, alt);\n\t\t\taltDiv.innerHTML = typeof(template) === 'function' ? template(data) : L.Util.template(template, data);\n\t\t\tL.DomEvent.addListener(altDiv, 'click', this._onAltClicked, this);\n\t\t\tthis.on('routeselected', this._selectAlt, this);\n\n\t\t\taltDiv.appendChild(this._createItineraryContainer(alt));\n\t\t\treturn altDiv;\n\t\t},\n\n\t\t_clearAlts: function() {\n\t\t\tvar el = this._altContainer;\n\t\t\twhile (el && el.firstChild) {\n\t\t\t\tel.removeChild(el.firstChild);\n\t\t\t}\n\n\t\t\tthis._altElements = [];\n\t\t},\n\n\t\t_createItineraryContainer: function(r) {\n\t\t\tvar container = this._itineraryBuilder.createContainer(),\n\t\t\t steps = this._itineraryBuilder.createStepsContainer(),\n\t\t\t i,\n\t\t\t instr,\n\t\t\t step,\n\t\t\t distance,\n\t\t\t text,\n\t\t\t icon;\n\n\t\t\tcontainer.appendChild(steps);\n\n\t\t\tfor (i = 0; i < r.instructions.length; i++) {\n\t\t\t\tinstr = r.instructions[i];\n\t\t\t\ttext = this._formatter.formatInstruction(instr, i);\n\t\t\t\tdistance = this._formatter.formatDistance(instr.distance);\n\t\t\t\ticon = this._formatter.getIconName(instr, i);\n\t\t\t\tstep = this._itineraryBuilder.createStep(text, distance, icon, steps);\n\n\t\t\t\tif(instr.index) {\n\t\t\t\t\tthis._addRowListeners(step, r.coordinates[instr.index]);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn container;\n\t\t},\n\n\t\t_addRowListeners: function(row, coordinate) {\n\t\t\tL.DomEvent.addListener(row, 'mouseover', function() {\n\t\t\t\tthis._marker = L.circleMarker(coordinate,\n\t\t\t\t\tthis.options.pointMarkerStyle).addTo(this._map);\n\t\t\t}, this);\n\t\t\tL.DomEvent.addListener(row, 'mouseout', function() {\n\t\t\t\tif (this._marker) {\n\t\t\t\t\tthis._map.removeLayer(this._marker);\n\t\t\t\t\tdelete this._marker;\n\t\t\t\t}\n\t\t\t}, this);\n\t\t\tL.DomEvent.addListener(row, 'click', function(e) {\n\t\t\t\tthis._map.panTo(coordinate);\n\t\t\t\tL.DomEvent.stopPropagation(e);\n\t\t\t}, this);\n\t\t},\n\n\t\t_onAltClicked: function(e) {\n\t\t\tvar altElem = e.target || window.event.srcElement;\n\t\t\twhile (!L.DomUtil.hasClass(altElem, 'leaflet-routing-alt')) {\n\t\t\t\taltElem = altElem.parentElement;\n\t\t\t}\n\n\t\t\tvar j = this._altElements.indexOf(altElem);\n\t\t\tvar alts = this._routes.slice();\n\t\t\tvar route = alts.splice(j, 1)[0];\n\n\t\t\tthis.fire('routeselected', {\n\t\t\t\troute: route,\n\t\t\t\talternatives: alts\n\t\t\t});\n\t\t},\n\n\t\t_selectAlt: function(e) {\n\t\t\tvar altElem,\n\t\t\t j,\n\t\t\t n,\n\t\t\t classFn;\n\n\t\t\taltElem = this._altElements[e.route.routesIndex];\n\n\t\t\tif (L.DomUtil.hasClass(altElem, 'leaflet-routing-alt-minimized')) {\n\t\t\t\tfor (j = 0; j < this._altElements.length; j++) {\n\t\t\t\t\tn = this._altElements[j];\n\t\t\t\t\tclassFn = j === e.route.routesIndex ? 'removeClass' : 'addClass';\n\t\t\t\t\tL.DomUtil[classFn](n, 'leaflet-routing-alt-minimized');\n\t\t\t\t\tif (this.options.minimizedClassName) {\n\t\t\t\t\t\tL.DomUtil[classFn](n, this.options.minimizedClassName);\n\t\t\t\t\t}\n\n\t\t\t\t\tif (j !== e.route.routesIndex) n.scrollTop = 0;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tL.DomEvent.stop(e);\n\t\t},\n\n\t\t_selectRoute: function(routes) {\n\t\t\tif (this._marker) {\n\t\t\t\tthis._map.removeLayer(this._marker);\n\t\t\t\tdelete this._marker;\n\t\t\t}\n\t\t\tthis.fire('routeselected', routes);\n\t\t}\n\t});\n})();\n"
},
{
"id": 68,
"identifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/formatter.js",
"name": "./node_modules/leaflet-routing-machine/src/formatter.js",
"index": 146,
"index2": 140,
"size": 4127,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/index.js",
"issuerId": 160,
"issuerName": "./node_modules/leaflet-routing-machine/src/index.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 146,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"name": "./src/modules/Router.js"
},
{
"id": 160,
"identifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/index.js",
"name": "./node_modules/leaflet-routing-machine/src/index.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 67,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/itinerary.js",
"module": "./node_modules/leaflet-routing-machine/src/itinerary.js",
"moduleName": "./node_modules/leaflet-routing-machine/src/itinerary.js",
"type": "cjs require",
"userRequest": "./formatter",
"loc": "5:17-39"
},
{
"moduleId": 160,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/index.js",
"module": "./node_modules/leaflet-routing-machine/src/index.js",
"moduleName": "./node_modules/leaflet-routing-machine/src/index.js",
"type": "cjs require",
"userRequest": "./formatter",
"loc": "9:16-38"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 5,
"source": "(function() {\n\t'use strict';\n\n\tvar L = require('leaflet');\n\n\tvar Localization = require('./localization');\n\n\tmodule.exports = L.Class.extend({\n\t\toptions: {\n\t\t\tunits: 'metric',\n\t\t\tunitNames: null,\n\t\t\tlanguage: 'en',\n\t\t\troundingSensitivity: 1,\n\t\t\tdistanceTemplate: '{value} {unit}'\n\t\t},\n\n\t\tinitialize: function(options) {\n\t\t\tL.setOptions(this, options);\n\n\t\t\tvar langs = L.Util.isArray(this.options.language) ?\n\t\t\t\tthis.options.language :\n\t\t\t\t[this.options.language, 'en'];\n\t\t\tthis._localization = new Localization(langs);\n\t\t},\n\n\t\tformatDistance: function(d /* Number (meters) */, sensitivity) {\n\t\t\tvar un = this.options.unitNames || this._localization.localize('units'),\n\t\t\t\tsimpleRounding = sensitivity <= 0,\n\t\t\t\tround = simpleRounding ? function(v) { return v; } : L.bind(this._round, this),\n\t\t\t v,\n\t\t\t yards,\n\t\t\t\tdata,\n\t\t\t\tpow10;\n\n\t\t\tif (this.options.units === 'imperial') {\n\t\t\t\tyards = d / 0.9144;\n\t\t\t\tif (yards >= 1000) {\n\t\t\t\t\tdata = {\n\t\t\t\t\t\tvalue: round(d / 1609.344, sensitivity),\n\t\t\t\t\t\tunit: un.miles\n\t\t\t\t\t};\n\t\t\t\t} else {\n\t\t\t\t\tdata = {\n\t\t\t\t\t\tvalue: round(yards, sensitivity),\n\t\t\t\t\t\tunit: un.yards\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tv = round(d, sensitivity);\n\t\t\t\tdata = {\n\t\t\t\t\tvalue: v >= 1000 ? (v / 1000) : v,\n\t\t\t\t\tunit: v >= 1000 ? un.kilometers : un.meters\n\t\t\t\t};\n\t\t\t}\n\n\t\t\tif (simpleRounding) {\n\t\t\t\tdata.value = data.value.toFixed(-sensitivity);\n\t\t\t}\n\n\t\t\treturn L.Util.template(this.options.distanceTemplate, data);\n\t\t},\n\n\t\t_round: function(d, sensitivity) {\n\t\t\tvar s = sensitivity || this.options.roundingSensitivity,\n\t\t\t\tpow10 = Math.pow(10, (Math.floor(d / s) + '').length - 1),\n\t\t\t\tr = Math.floor(d / pow10),\n\t\t\t\tp = (r > 5) ? pow10 : pow10 / 2;\n\n\t\t\treturn Math.round(d / p) * p;\n\t\t},\n\n\t\tformatTime: function(t /* Number (seconds) */) {\n\t\t\tvar un = this.options.unitNames || this._localization.localize('units');\n\t\t\t// More than 30 seconds precision looks ridiculous\n\t\t\tt = Math.round(t / 30) * 30;\n\n\t\t\tif (t > 86400) {\n\t\t\t\treturn Math.round(t / 3600) + ' ' + un.hours;\n\t\t\t} else if (t > 3600) {\n\t\t\t\treturn Math.floor(t / 3600) + ' ' + un.hours + ' ' +\n\t\t\t\t\tMath.round((t % 3600) / 60) + ' ' + un.minutes;\n\t\t\t} else if (t > 300) {\n\t\t\t\treturn Math.round(t / 60) + ' ' + un.minutes;\n\t\t\t} else if (t > 60) {\n\t\t\t\treturn Math.floor(t / 60) + ' ' + un.minutes +\n\t\t\t\t\t(t % 60 !== 0 ? ' ' + (t % 60) + ' ' + un.seconds : '');\n\t\t\t} else {\n\t\t\t\treturn t + ' ' + un.seconds;\n\t\t\t}\n\t\t},\n\n\t\tformatInstruction: function(instr, i) {\n\t\t\tif (instr.text === undefined) {\n\t\t\t\treturn this.capitalize(L.Util.template(this._getInstructionTemplate(instr, i),\n\t\t\t\t\tL.extend({}, instr, {\n\t\t\t\t\t\texitStr: instr.exit ? this._localization.localize('formatOrder')(instr.exit) : '',\n\t\t\t\t\t\tdir: this._localization.localize(['directions', instr.direction]),\n\t\t\t\t\t\tmodifier: this._localization.localize(['directions', instr.modifier])\n\t\t\t\t\t})));\n\t\t\t} else {\n\t\t\t\treturn instr.text;\n\t\t\t}\n\t\t},\n\n\t\tgetIconName: function(instr, i) {\n\t\t\tswitch (instr.type) {\n\t\t\tcase 'Head':\n\t\t\t\tif (i === 0) {\n\t\t\t\t\treturn 'depart';\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'WaypointReached':\n\t\t\t\treturn 'via';\n\t\t\tcase 'Roundabout':\n\t\t\t\treturn 'enter-roundabout';\n\t\t\tcase 'DestinationReached':\n\t\t\t\treturn 'arrive';\n\t\t\t}\n\n\t\t\tswitch (instr.modifier) {\n\t\t\tcase 'Straight':\n\t\t\t\treturn 'continue';\n\t\t\tcase 'SlightRight':\n\t\t\t\treturn 'bear-right';\n\t\t\tcase 'Right':\n\t\t\t\treturn 'turn-right';\n\t\t\tcase 'SharpRight':\n\t\t\t\treturn 'sharp-right';\n\t\t\tcase 'TurnAround':\n\t\t\tcase 'Uturn':\n\t\t\t\treturn 'u-turn';\n\t\t\tcase 'SharpLeft':\n\t\t\t\treturn 'sharp-left';\n\t\t\tcase 'Left':\n\t\t\t\treturn 'turn-left';\n\t\t\tcase 'SlightLeft':\n\t\t\t\treturn 'bear-left';\n\t\t\t}\n\t\t},\n\n\t\tcapitalize: function(s) {\n\t\t\treturn s.charAt(0).toUpperCase() + s.substring(1);\n\t\t},\n\n\t\t_getInstructionTemplate: function(instr, i) {\n\t\t\tvar type = instr.type === 'Straight' ? (i === 0 ? 'Head' : 'Continue') : instr.type,\n\t\t\t\tstrings = this._localization.localize(['instructions', type]);\n\n\t\t\tif (!strings) {\n\t\t\t\tstrings = [\n\t\t\t\t\tthis._localization.localize(['directions', type]),\n\t\t\t\t\t' ' + this._localization.localize(['instructions', 'Onto'])\n\t\t\t\t];\n\t\t\t}\n\n\t\t\treturn strings[0] + (strings.length > 1 && instr.road ? strings[1] : '');\n\t\t}\n\t});\n})();\n"
},
{
"id": 69,
"identifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/itinerary-builder.js",
"name": "./node_modules/leaflet-routing-machine/src/itinerary-builder.js",
"index": 148,
"index2": 141,
"size": 1196,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/index.js",
"issuerId": 160,
"issuerName": "./node_modules/leaflet-routing-machine/src/index.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 146,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"name": "./src/modules/Router.js"
},
{
"id": 160,
"identifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/index.js",
"name": "./node_modules/leaflet-routing-machine/src/index.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 67,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/itinerary.js",
"module": "./node_modules/leaflet-routing-machine/src/itinerary.js",
"moduleName": "./node_modules/leaflet-routing-machine/src/itinerary.js",
"type": "cjs require",
"userRequest": "./itinerary-builder",
"loc": "6:24-54"
},
{
"moduleId": 160,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/index.js",
"module": "./node_modules/leaflet-routing-machine/src/index.js",
"moduleName": "./node_modules/leaflet-routing-machine/src/index.js",
"type": "cjs require",
"userRequest": "./itinerary-builder",
"loc": "12:23-53"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 5,
"source": "(function() {\n\t'use strict';\n\n\tvar L = require('leaflet');\n\n\tmodule.exports = L.Class.extend({\n\t\toptions: {\n\t\t\tcontainerClassName: ''\n\t\t},\n\n\t\tinitialize: function(options) {\n\t\t\tL.setOptions(this, options);\n\t\t},\n\n\t\tcreateContainer: function(className) {\n\t\t\tvar table = L.DomUtil.create('table', className || ''),\n\t\t\t\tcolgroup = L.DomUtil.create('colgroup', '', table);\n\n\t\t\tL.DomUtil.create('col', 'leaflet-routing-instruction-icon', colgroup);\n\t\t\tL.DomUtil.create('col', 'leaflet-routing-instruction-text', colgroup);\n\t\t\tL.DomUtil.create('col', 'leaflet-routing-instruction-distance', colgroup);\n\n\t\t\treturn table;\n\t\t},\n\n\t\tcreateStepsContainer: function() {\n\t\t\treturn L.DomUtil.create('tbody', '');\n\t\t},\n\n\t\tcreateStep: function(text, distance, icon, steps) {\n\t\t\tvar row = L.DomUtil.create('tr', '', steps),\n\t\t\t\tspan,\n\t\t\t\ttd;\n\t\t\ttd = L.DomUtil.create('td', '', row);\n\t\t\tspan = L.DomUtil.create('span', 'leaflet-routing-icon leaflet-routing-icon-'+icon, td);\n\t\t\ttd.appendChild(span);\n\t\t\ttd = L.DomUtil.create('td', '', row);\n\t\t\ttd.appendChild(document.createTextNode(text));\n\t\t\ttd = L.DomUtil.create('td', '', row);\n\t\t\ttd.appendChild(document.createTextNode(distance));\n\t\t\treturn row;\n\t\t}\n\t});\n})();\n"
},
{
"id": 70,
"identifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/line.js",
"name": "./node_modules/leaflet-routing-machine/src/line.js",
"index": 149,
"index2": 143,
"size": 3039,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/index.js",
"issuerId": 160,
"issuerName": "./node_modules/leaflet-routing-machine/src/index.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 146,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"name": "./src/modules/Router.js"
},
{
"id": 160,
"identifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/index.js",
"name": "./node_modules/leaflet-routing-machine/src/index.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 160,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/index.js",
"module": "./node_modules/leaflet-routing-machine/src/index.js",
"moduleName": "./node_modules/leaflet-routing-machine/src/index.js",
"type": "cjs require",
"userRequest": "./line",
"loc": "4:11-28"
},
{
"moduleId": 161,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/control.js",
"module": "./node_modules/leaflet-routing-machine/src/control.js",
"moduleName": "./node_modules/leaflet-routing-machine/src/control.js",
"type": "cjs require",
"userRequest": "./line",
"loc": "7:12-29"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 5,
"source": "(function() {\n\t'use strict';\n\n\tvar L = require('leaflet');\n\n\tmodule.exports = L.LayerGroup.extend({\n\t\tincludes: ((typeof L.Evented !== 'undefined' && L.Evented.prototype) || L.Mixin.Events),\n\n\t\toptions: {\n\t\t\tstyles: [\n\t\t\t\t{color: 'black', opacity: 0.15, weight: 9},\n\t\t\t\t{color: 'white', opacity: 0.8, weight: 6},\n\t\t\t\t{color: 'red', opacity: 1, weight: 2}\n\t\t\t],\n\t\t\tmissingRouteStyles: [\n\t\t\t\t{color: 'black', opacity: 0.15, weight: 7},\n\t\t\t\t{color: 'white', opacity: 0.6, weight: 4},\n\t\t\t\t{color: 'gray', opacity: 0.8, weight: 2, dashArray: '7,12'}\n\t\t\t],\n\t\t\taddWaypoints: true,\n\t\t\textendToWaypoints: true,\n\t\t\tmissingRouteTolerance: 10\n\t\t},\n\n\t\tinitialize: function(route, options) {\n\t\t\tL.setOptions(this, options);\n\t\t\tL.LayerGroup.prototype.initialize.call(this, options);\n\t\t\tthis._route = route;\n\n\t\t\tif (this.options.extendToWaypoints) {\n\t\t\t\tthis._extendToWaypoints();\n\t\t\t}\n\n\t\t\tthis._addSegment(\n\t\t\t\troute.coordinates,\n\t\t\t\tthis.options.styles,\n\t\t\t\tthis.options.addWaypoints);\n\t\t},\n\n\t\tgetBounds: function() {\n\t\t\treturn L.latLngBounds(this._route.coordinates);\n\t\t},\n\n\t\t_findWaypointIndices: function() {\n\t\t\tvar wps = this._route.inputWaypoints,\n\t\t\t indices = [],\n\t\t\t i;\n\t\t\tfor (i = 0; i < wps.length; i++) {\n\t\t\t\tindices.push(this._findClosestRoutePoint(wps[i].latLng));\n\t\t\t}\n\n\t\t\treturn indices;\n\t\t},\n\n\t\t_findClosestRoutePoint: function(latlng) {\n\t\t\tvar minDist = Number.MAX_VALUE,\n\t\t\t\tminIndex,\n\t\t\t i,\n\t\t\t d;\n\n\t\t\tfor (i = this._route.coordinates.length - 1; i >= 0 ; i--) {\n\t\t\t\t// TODO: maybe do this in pixel space instead?\n\t\t\t\td = latlng.distanceTo(this._route.coordinates[i]);\n\t\t\t\tif (d < minDist) {\n\t\t\t\t\tminIndex = i;\n\t\t\t\t\tminDist = d;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn minIndex;\n\t\t},\n\n\t\t_extendToWaypoints: function() {\n\t\t\tvar wps = this._route.inputWaypoints,\n\t\t\t\twpIndices = this._getWaypointIndices(),\n\t\t\t i,\n\t\t\t wpLatLng,\n\t\t\t routeCoord;\n\n\t\t\tfor (i = 0; i < wps.length; i++) {\n\t\t\t\twpLatLng = wps[i].latLng;\n\t\t\t\trouteCoord = L.latLng(this._route.coordinates[wpIndices[i]]);\n\t\t\t\tif (wpLatLng.distanceTo(routeCoord) >\n\t\t\t\t\tthis.options.missingRouteTolerance) {\n\t\t\t\t\tthis._addSegment([wpLatLng, routeCoord],\n\t\t\t\t\t\tthis.options.missingRouteStyles);\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\n\t\t_addSegment: function(coords, styles, mouselistener) {\n\t\t\tvar i,\n\t\t\t\tpl;\n\n\t\t\tfor (i = 0; i < styles.length; i++) {\n\t\t\t\tpl = L.polyline(coords, styles[i]);\n\t\t\t\tthis.addLayer(pl);\n\t\t\t\tif (mouselistener) {\n\t\t\t\t\tpl.on('mousedown', this._onLineTouched, this);\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\n\t\t_findNearestWpBefore: function(i) {\n\t\t\tvar wpIndices = this._getWaypointIndices(),\n\t\t\t\tj = wpIndices.length - 1;\n\t\t\twhile (j >= 0 && wpIndices[j] > i) {\n\t\t\t\tj--;\n\t\t\t}\n\n\t\t\treturn j;\n\t\t},\n\n\t\t_onLineTouched: function(e) {\n\t\t\tvar afterIndex = this._findNearestWpBefore(this._findClosestRoutePoint(e.latlng));\n\t\t\tthis.fire('linetouched', {\n\t\t\t\tafterIndex: afterIndex,\n\t\t\t\tlatlng: e.latlng\n\t\t\t});\n\t\t},\n\n\t\t_getWaypointIndices: function() {\n\t\t\tif (!this._wpIndices) {\n\t\t\t\tthis._wpIndices = this._route.waypointIndices || this._findWaypointIndices();\n\t\t\t}\n\n\t\t\treturn this._wpIndices;\n\t\t}\n\t});\n})();\n"
},
{
"id": 71,
"identifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/plan.js",
"name": "./node_modules/leaflet-routing-machine/src/plan.js",
"index": 150,
"index2": 147,
"size": 9150,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/index.js",
"issuerId": 160,
"issuerName": "./node_modules/leaflet-routing-machine/src/index.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 146,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"name": "./src/modules/Router.js"
},
{
"id": 160,
"identifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/index.js",
"name": "./node_modules/leaflet-routing-machine/src/index.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 160,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/index.js",
"module": "./node_modules/leaflet-routing-machine/src/index.js",
"moduleName": "./node_modules/leaflet-routing-machine/src/index.js",
"type": "cjs require",
"userRequest": "./plan",
"loc": "6:11-28"
},
{
"moduleId": 161,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/control.js",
"module": "./node_modules/leaflet-routing-machine/src/control.js",
"moduleName": "./node_modules/leaflet-routing-machine/src/control.js",
"type": "cjs require",
"userRequest": "./plan",
"loc": "8:12-29"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 5,
"source": "(function() {\n\t'use strict';\n\n\tvar L = require('leaflet');\n\tvar GeocoderElement = require('./geocoder-element');\n\tvar Waypoint = require('./waypoint');\n\n\tmodule.exports = (L.Layer || L.Class).extend({\n\t\tincludes: ((typeof L.Evented !== 'undefined' && L.Evented.prototype) || L.Mixin.Events),\n\n\t\toptions: {\n\t\t\tdragStyles: [\n\t\t\t\t{color: 'black', opacity: 0.15, weight: 9},\n\t\t\t\t{color: 'white', opacity: 0.8, weight: 6},\n\t\t\t\t{color: 'red', opacity: 1, weight: 2, dashArray: '7,12'}\n\t\t\t],\n\t\t\tdraggableWaypoints: true,\n\t\t\trouteWhileDragging: false,\n\t\t\taddWaypoints: true,\n\t\t\treverseWaypoints: false,\n\t\t\taddButtonClassName: '',\n\t\t\tlanguage: 'en',\n\t\t\tcreateGeocoderElement: function(wp, i, nWps, plan) {\n\t\t\t\treturn new GeocoderElement(wp, i, nWps, plan);\n\t\t\t},\n\t\t\tcreateMarker: function(i, wp) {\n\t\t\t\tvar options = {\n\t\t\t\t\t\tdraggable: this.draggableWaypoints\n\t\t\t\t\t},\n\t\t\t\t marker = L.marker(wp.latLng, options);\n\n\t\t\t\treturn marker;\n\t\t\t},\n\t\t\tgeocodersClassName: ''\n\t\t},\n\n\t\tinitialize: function(waypoints, options) {\n\t\t\tL.Util.setOptions(this, options);\n\t\t\tthis._waypoints = [];\n\t\t\tthis.setWaypoints(waypoints);\n\t\t},\n\n\t\tisReady: function() {\n\t\t\tvar i;\n\t\t\tfor (i = 0; i < this._waypoints.length; i++) {\n\t\t\t\tif (!this._waypoints[i].latLng) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn true;\n\t\t},\n\n\t\tgetWaypoints: function() {\n\t\t\tvar i,\n\t\t\t\twps = [];\n\n\t\t\tfor (i = 0; i < this._waypoints.length; i++) {\n\t\t\t\twps.push(this._waypoints[i]);\n\t\t\t}\n\n\t\t\treturn wps;\n\t\t},\n\n\t\tsetWaypoints: function(waypoints) {\n\t\t\tvar args = [0, this._waypoints.length].concat(waypoints);\n\t\t\tthis.spliceWaypoints.apply(this, args);\n\t\t\treturn this;\n\t\t},\n\n\t\tspliceWaypoints: function() {\n\t\t\tvar args = [arguments[0], arguments[1]],\n\t\t\t i;\n\n\t\t\tfor (i = 2; i < arguments.length; i++) {\n\t\t\t\targs.push(arguments[i] && arguments[i].hasOwnProperty('latLng') ? arguments[i] : new Waypoint(arguments[i]));\n\t\t\t}\n\n\t\t\t[].splice.apply(this._waypoints, args);\n\n\t\t\t// Make sure there's always at least two waypoints\n\t\t\twhile (this._waypoints.length < 2) {\n\t\t\t\tthis.spliceWaypoints(this._waypoints.length, 0, null);\n\t\t\t}\n\n\t\t\tthis._updateMarkers();\n\t\t\tthis._fireChanged.apply(this, args);\n\t\t},\n\n\t\tonAdd: function(map) {\n\t\t\tthis._map = map;\n\t\t\tthis._updateMarkers();\n\t\t},\n\n\t\tonRemove: function() {\n\t\t\tvar i;\n\t\t\tthis._removeMarkers();\n\n\t\t\tif (this._newWp) {\n\t\t\t\tfor (i = 0; i < this._newWp.lines.length; i++) {\n\t\t\t\t\tthis._map.removeLayer(this._newWp.lines[i]);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tdelete this._map;\n\t\t},\n\n\t\tcreateGeocoders: function() {\n\t\t\tvar container = L.DomUtil.create('div', 'leaflet-routing-geocoders ' + this.options.geocodersClassName),\n\t\t\t\twaypoints = this._waypoints,\n\t\t\t addWpBtn,\n\t\t\t reverseBtn;\n\n\t\t\tthis._geocoderContainer = container;\n\t\t\tthis._geocoderElems = [];\n\n\n\t\t\tif (this.options.addWaypoints) {\n\t\t\t\taddWpBtn = L.DomUtil.create('button', 'leaflet-routing-add-waypoint ' + this.options.addButtonClassName, container);\n\t\t\t\taddWpBtn.setAttribute('type', 'button');\n\t\t\t\tL.DomEvent.addListener(addWpBtn, 'click', function() {\n\t\t\t\t\tthis.spliceWaypoints(waypoints.length, 0, null);\n\t\t\t\t}, this);\n\t\t\t}\n\n\t\t\tif (this.options.reverseWaypoints) {\n\t\t\t\treverseBtn = L.DomUtil.create('button', 'leaflet-routing-reverse-waypoints', container);\n\t\t\t\treverseBtn.setAttribute('type', 'button');\n\t\t\t\tL.DomEvent.addListener(reverseBtn, 'click', function() {\n\t\t\t\t\tthis._waypoints.reverse();\n\t\t\t\t\tthis.setWaypoints(this._waypoints);\n\t\t\t\t}, this);\n\t\t\t}\n\n\t\t\tthis._updateGeocoders();\n\t\t\tthis.on('waypointsspliced', this._updateGeocoders);\n\n\t\t\treturn container;\n\t\t},\n\n\t\t_createGeocoder: function(i) {\n\t\t\tvar geocoder = this.options.createGeocoderElement(this._waypoints[i], i, this._waypoints.length, this.options);\n\t\t\tgeocoder\n\t\t\t.on('delete', function() {\n\t\t\t\tif (i > 0 || this._waypoints.length > 2) {\n\t\t\t\t\tthis.spliceWaypoints(i, 1);\n\t\t\t\t} else {\n\t\t\t\t\tthis.spliceWaypoints(i, 1, new Waypoint());\n\t\t\t\t}\n\t\t\t}, this)\n\t\t\t.on('geocoded', function(e) {\n\t\t\t\tthis._updateMarkers();\n\t\t\t\tthis._fireChanged();\n\t\t\t\tthis._focusGeocoder(i + 1);\n\t\t\t\tthis.fire('waypointgeocoded', {\n\t\t\t\t\twaypointIndex: i,\n\t\t\t\t\twaypoint: e.waypoint\n\t\t\t\t});\n\t\t\t}, this)\n\t\t\t.on('reversegeocoded', function(e) {\n\t\t\t\tthis.fire('waypointgeocoded', {\n\t\t\t\t\twaypointIndex: i,\n\t\t\t\t\twaypoint: e.waypoint\n\t\t\t\t});\n\t\t\t}, this);\n\n\t\t\treturn geocoder;\n\t\t},\n\n\t\t_updateGeocoders: function() {\n\t\t\tvar elems = [],\n\t\t\t\ti,\n\t\t\t geocoderElem;\n\n\t\t\tfor (i = 0; i < this._geocoderElems.length; i++) {\n\t\t\t\tthis._geocoderContainer.removeChild(this._geocoderElems[i].getContainer());\n\t\t\t}\n\n\t\t\tfor (i = this._waypoints.length - 1; i >= 0; i--) {\n\t\t\t\tgeocoderElem = this._createGeocoder(i);\n\t\t\t\tthis._geocoderContainer.insertBefore(geocoderElem.getContainer(), this._geocoderContainer.firstChild);\n\t\t\t\telems.push(geocoderElem);\n\t\t\t}\n\n\t\t\tthis._geocoderElems = elems.reverse();\n\t\t},\n\n\t\t_removeMarkers: function() {\n\t\t\tvar i;\n\t\t\tif (this._markers) {\n\t\t\t\tfor (i = 0; i < this._markers.length; i++) {\n\t\t\t\t\tif (this._markers[i]) {\n\t\t\t\t\t\tthis._map.removeLayer(this._markers[i]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tthis._markers = [];\n\t\t},\n\n\t\t_updateMarkers: function() {\n\t\t\tvar i,\n\t\t\t m;\n\n\t\t\tif (!this._map) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tthis._removeMarkers();\n\n\t\t\tfor (i = 0; i < this._waypoints.length; i++) {\n\t\t\t\tif (this._waypoints[i].latLng) {\n\t\t\t\t\tm = this.options.createMarker(i, this._waypoints[i], this._waypoints.length);\n\t\t\t\t\tif (m) {\n\t\t\t\t\t\tm.addTo(this._map);\n\t\t\t\t\t\tif (this.options.draggableWaypoints) {\n\t\t\t\t\t\t\tthis._hookWaypointEvents(m, i);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tm = null;\n\t\t\t\t}\n\t\t\t\tthis._markers.push(m);\n\t\t\t}\n\t\t},\n\n\t\t_fireChanged: function() {\n\t\t\tthis.fire('waypointschanged', {waypoints: this.getWaypoints()});\n\n\t\t\tif (arguments.length >= 2) {\n\t\t\t\tthis.fire('waypointsspliced', {\n\t\t\t\t\tindex: Array.prototype.shift.call(arguments),\n\t\t\t\t\tnRemoved: Array.prototype.shift.call(arguments),\n\t\t\t\t\tadded: arguments\n\t\t\t\t});\n\t\t\t}\n\t\t},\n\n\t\t_hookWaypointEvents: function(m, i, trackMouseMove) {\n\t\t\tvar eventLatLng = function(e) {\n\t\t\t\t\treturn trackMouseMove ? e.latlng : e.target.getLatLng();\n\t\t\t\t},\n\t\t\t\tdragStart = L.bind(function(e) {\n\t\t\t\t\tthis.fire('waypointdragstart', {index: i, latlng: eventLatLng(e)});\n\t\t\t\t}, this),\n\t\t\t\tdrag = L.bind(function(e) {\n\t\t\t\t\tthis._waypoints[i].latLng = eventLatLng(e);\n\t\t\t\t\tthis.fire('waypointdrag', {index: i, latlng: eventLatLng(e)});\n\t\t\t\t}, this),\n\t\t\t\tdragEnd = L.bind(function(e) {\n\t\t\t\t\tthis._waypoints[i].latLng = eventLatLng(e);\n\t\t\t\t\tthis._waypoints[i].name = '';\n\t\t\t\t\tif (this._geocoderElems) {\n\t\t\t\t\t\tthis._geocoderElems[i].update(true);\n\t\t\t\t\t}\n\t\t\t\t\tthis.fire('waypointdragend', {index: i, latlng: eventLatLng(e)});\n\t\t\t\t\tthis._fireChanged();\n\t\t\t\t}, this),\n\t\t\t\tmouseMove,\n\t\t\t\tmouseUp;\n\n\t\t\tif (trackMouseMove) {\n\t\t\t\tmouseMove = L.bind(function(e) {\n\t\t\t\t\tthis._markers[i].setLatLng(e.latlng);\n\t\t\t\t\tdrag(e);\n\t\t\t\t}, this);\n\t\t\t\tmouseUp = L.bind(function(e) {\n\t\t\t\t\tthis._map.dragging.enable();\n\t\t\t\t\tthis._map.off('mouseup', mouseUp);\n\t\t\t\t\tthis._map.off('mousemove', mouseMove);\n\t\t\t\t\tdragEnd(e);\n\t\t\t\t}, this);\n\t\t\t\tthis._map.dragging.disable();\n\t\t\t\tthis._map.on('mousemove', mouseMove);\n\t\t\t\tthis._map.on('mouseup', mouseUp);\n\t\t\t\tdragStart({latlng: this._waypoints[i].latLng});\n\t\t\t} else {\n\t\t\t\tm.on('dragstart', dragStart);\n\t\t\t\tm.on('drag', drag);\n\t\t\t\tm.on('dragend', dragEnd);\n\t\t\t}\n\t\t},\n\n\t\tdragNewWaypoint: function(e) {\n\t\t\tvar newWpIndex = e.afterIndex + 1;\n\t\t\tif (this.options.routeWhileDragging) {\n\t\t\t\tthis.spliceWaypoints(newWpIndex, 0, e.latlng);\n\t\t\t\tthis._hookWaypointEvents(this._markers[newWpIndex], newWpIndex, true);\n\t\t\t} else {\n\t\t\t\tthis._dragNewWaypoint(newWpIndex, e.latlng);\n\t\t\t}\n\t\t},\n\n\t\t_dragNewWaypoint: function(newWpIndex, initialLatLng) {\n\t\t\tvar wp = new Waypoint(initialLatLng),\n\t\t\t\tprevWp = this._waypoints[newWpIndex - 1],\n\t\t\t\tnextWp = this._waypoints[newWpIndex],\n\t\t\t\tmarker = this.options.createMarker(newWpIndex, wp, this._waypoints.length + 1),\n\t\t\t\tlines = [],\n\t\t\t\tdraggingEnabled = this._map.dragging.enabled(),\n\t\t\t\tmouseMove = L.bind(function(e) {\n\t\t\t\t\tvar i,\n\t\t\t\t\t\tlatLngs;\n\t\t\t\t\tif (marker) {\n\t\t\t\t\t\tmarker.setLatLng(e.latlng);\n\t\t\t\t\t}\n\t\t\t\t\tfor (i = 0; i < lines.length; i++) {\n\t\t\t\t\t\tlatLngs = lines[i].getLatLngs();\n\t\t\t\t\t\tlatLngs.splice(1, 1, e.latlng);\n\t\t\t\t\t\tlines[i].setLatLngs(latLngs);\n\t\t\t\t\t}\n\n\t\t\t\t\tL.DomEvent.stop(e);\n\t\t\t\t}, this),\n\t\t\t\tmouseUp = L.bind(function(e) {\n\t\t\t\t\tvar i;\n\t\t\t\t\tif (marker) {\n\t\t\t\t\t\tthis._map.removeLayer(marker);\n\t\t\t\t\t}\n\t\t\t\t\tfor (i = 0; i < lines.length; i++) {\n\t\t\t\t\t\tthis._map.removeLayer(lines[i]);\n\t\t\t\t\t}\n\t\t\t\t\tthis._map.off('mousemove', mouseMove);\n\t\t\t\t\tthis._map.off('mouseup', mouseUp);\n\t\t\t\t\tthis.spliceWaypoints(newWpIndex, 0, e.latlng);\n\t\t\t\t\tif (draggingEnabled) {\n\t\t\t\t\t\tthis._map.dragging.enable();\n\t\t\t\t\t}\n\t\t\t\t}, this),\n\t\t\t\ti;\n\n\t\t\tif (marker) {\n\t\t\t\tmarker.addTo(this._map);\n\t\t\t}\n\n\t\t\tfor (i = 0; i < this.options.dragStyles.length; i++) {\n\t\t\t\tlines.push(L.polyline([prevWp.latLng, initialLatLng, nextWp.latLng],\n\t\t\t\t\tthis.options.dragStyles[i]).addTo(this._map));\n\t\t\t}\n\n\t\t\tif (draggingEnabled) {\n\t\t\t\tthis._map.dragging.disable();\n\t\t\t}\n\n\t\t\tthis._map.on('mousemove', mouseMove);\n\t\t\tthis._map.on('mouseup', mouseUp);\n\t\t},\n\n\t\t_focusGeocoder: function(i) {\n\t\t\tif (this._geocoderElems[i]) {\n\t\t\t\tthis._geocoderElems[i].focus();\n\t\t\t} else {\n\t\t\t\tdocument.activeElement.blur();\n\t\t\t}\n\t\t}\n\t});\n})();\n"
},
{
"id": 72,
"identifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/geocoder-element.js",
"name": "./node_modules/leaflet-routing-machine/src/geocoder-element.js",
"index": 151,
"index2": 145,
"size": 4178,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/index.js",
"issuerId": 160,
"issuerName": "./node_modules/leaflet-routing-machine/src/index.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 146,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"name": "./src/modules/Router.js"
},
{
"id": 160,
"identifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/index.js",
"name": "./node_modules/leaflet-routing-machine/src/index.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 71,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/plan.js",
"module": "./node_modules/leaflet-routing-machine/src/plan.js",
"moduleName": "./node_modules/leaflet-routing-machine/src/plan.js",
"type": "cjs require",
"userRequest": "./geocoder-element",
"loc": "5:23-52"
},
{
"moduleId": 160,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/index.js",
"module": "./node_modules/leaflet-routing-machine/src/index.js",
"moduleName": "./node_modules/leaflet-routing-machine/src/index.js",
"type": "cjs require",
"userRequest": "./geocoder-element",
"loc": "10:22-51"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 5,
"source": "(function() {\n\t'use strict';\n\n\tvar L = require('leaflet');\n\tvar Autocomplete = require('./autocomplete');\n\tvar Localization = require('./localization');\n\n\tfunction selectInputText(input) {\n\t\tif (input.setSelectionRange) {\n\t\t\t// On iOS, select() doesn't work\n\t\t\tinput.setSelectionRange(0, 9999);\n\t\t} else {\n\t\t\t// On at least IE8, setSeleectionRange doesn't exist\n\t\t\tinput.select();\n\t\t}\n\t}\n\n\tmodule.exports = L.Class.extend({\n\t\tincludes: ((typeof L.Evented !== 'undefined' && L.Evented.prototype) || L.Mixin.Events),\n\n\t\toptions: {\n\t\t\tcreateGeocoder: function(i, nWps, options) {\n\t\t\t\tvar container = L.DomUtil.create('div', 'leaflet-routing-geocoder'),\n\t\t\t\t\tinput = L.DomUtil.create('input', '', container),\n\t\t\t\t\tremove = options.addWaypoints ? L.DomUtil.create('span', 'leaflet-routing-remove-waypoint', container) : undefined;\n\n\t\t\t\tinput.disabled = !options.addWaypoints;\n\n\t\t\t\treturn {\n\t\t\t\t\tcontainer: container,\n\t\t\t\t\tinput: input,\n\t\t\t\t\tcloseButton: remove\n\t\t\t\t};\n\t\t\t},\n\t\t\tgeocoderPlaceholder: function(i, numberWaypoints, geocoderElement) {\n\t\t\t\tvar l = new Localization(geocoderElement.options.language).localize('ui');\n\t\t\t\treturn i === 0 ?\n\t\t\t\t\tl.startPlaceholder :\n\t\t\t\t\t(i < numberWaypoints - 1 ?\n\t\t\t\t\t\tL.Util.template(l.viaPlaceholder, {viaNumber: i}) :\n\t\t\t\t\t\tl.endPlaceholder);\n\t\t\t},\n\n\t\t\tgeocoderClass: function() {\n\t\t\t\treturn '';\n\t\t\t},\n\n\t\t\twaypointNameFallback: function(latLng) {\n\t\t\t\tvar ns = latLng.lat < 0 ? 'S' : 'N',\n\t\t\t\t\tew = latLng.lng < 0 ? 'W' : 'E',\n\t\t\t\t\tlat = (Math.round(Math.abs(latLng.lat) * 10000) / 10000).toString(),\n\t\t\t\t\tlng = (Math.round(Math.abs(latLng.lng) * 10000) / 10000).toString();\n\t\t\t\treturn ns + lat + ', ' + ew + lng;\n\t\t\t},\n\t\t\tmaxGeocoderTolerance: 200,\n\t\t\tautocompleteOptions: {},\n\t\t\tlanguage: 'en',\n\t\t},\n\n\t\tinitialize: function(wp, i, nWps, options) {\n\t\t\tL.setOptions(this, options);\n\n\t\t\tvar g = this.options.createGeocoder(i, nWps, this.options),\n\t\t\t\tcloseButton = g.closeButton,\n\t\t\t\tgeocoderInput = g.input;\n\t\t\tgeocoderInput.setAttribute('placeholder', this.options.geocoderPlaceholder(i, nWps, this));\n\t\t\tgeocoderInput.className = this.options.geocoderClass(i, nWps);\n\n\t\t\tthis._element = g;\n\t\t\tthis._waypoint = wp;\n\n\t\t\tthis.update();\n\t\t\t// This has to be here, or geocoder's value will not be properly\n\t\t\t// initialized.\n\t\t\t// TODO: look into why and make _updateWaypointName fix this.\n\t\t\tgeocoderInput.value = wp.name;\n\n\t\t\tL.DomEvent.addListener(geocoderInput, 'click', function() {\n\t\t\t\tselectInputText(this);\n\t\t\t}, geocoderInput);\n\n\t\t\tif (closeButton) {\n\t\t\t\tL.DomEvent.addListener(closeButton, 'click', function() {\n\t\t\t\t\tthis.fire('delete', { waypoint: this._waypoint });\n\t\t\t\t}, this);\n\t\t\t}\n\n\t\t\tnew Autocomplete(geocoderInput, function(r) {\n\t\t\t\t\tgeocoderInput.value = r.name;\n\t\t\t\t\twp.name = r.name;\n\t\t\t\t\twp.latLng = r.center;\n\t\t\t\t\tthis.fire('geocoded', { waypoint: wp, value: r });\n\t\t\t\t}, this, L.extend({\n\t\t\t\t\tresultFn: this.options.geocoder.geocode,\n\t\t\t\t\tresultContext: this.options.geocoder,\n\t\t\t\t\tautocompleteFn: this.options.geocoder.suggest,\n\t\t\t\t\tautocompleteContext: this.options.geocoder\n\t\t\t\t}, this.options.autocompleteOptions));\n\t\t},\n\n\t\tgetContainer: function() {\n\t\t\treturn this._element.container;\n\t\t},\n\n\t\tsetValue: function(v) {\n\t\t\tthis._element.input.value = v;\n\t\t},\n\n\t\tupdate: function(force) {\n\t\t\tvar wp = this._waypoint,\n\t\t\t\twpCoords;\n\n\t\t\twp.name = wp.name || '';\n\n\t\t\tif (wp.latLng && (force || !wp.name)) {\n\t\t\t\twpCoords = this.options.waypointNameFallback(wp.latLng);\n\t\t\t\tif (this.options.geocoder && this.options.geocoder.reverse) {\n\t\t\t\t\tthis.options.geocoder.reverse(wp.latLng, 67108864 /* zoom 18 */, function(rs) {\n\t\t\t\t\t\tif (rs.length > 0 && rs[0].center.distanceTo(wp.latLng) < this.options.maxGeocoderTolerance) {\n\t\t\t\t\t\t\twp.name = rs[0].name;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\twp.name = wpCoords;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tthis._update();\n\t\t\t\t\t}, this);\n\t\t\t\t} else {\n\t\t\t\t\twp.name = wpCoords;\n\t\t\t\t\tthis._update();\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\n\t\tfocus: function() {\n\t\t\tvar input = this._element.input;\n\t\t\tinput.focus();\n\t\t\tselectInputText(input);\n\t\t},\n\n\t\t_update: function() {\n\t\t\tvar wp = this._waypoint,\n\t\t\t value = wp && wp.name ? wp.name : '';\n\t\t\tthis.setValue(value);\n\t\t\tthis.fire('reversegeocoded', {waypoint: wp, value: value});\n\t\t}\n\t});\n})();\n"
},
{
"id": 73,
"identifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/autocomplete.js",
"name": "./node_modules/leaflet-routing-machine/src/autocomplete.js",
"index": 152,
"index2": 144,
"size": 6010,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/index.js",
"issuerId": 160,
"issuerName": "./node_modules/leaflet-routing-machine/src/index.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 146,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"name": "./src/modules/Router.js"
},
{
"id": 160,
"identifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/index.js",
"name": "./node_modules/leaflet-routing-machine/src/index.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 72,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/geocoder-element.js",
"module": "./node_modules/leaflet-routing-machine/src/geocoder-element.js",
"moduleName": "./node_modules/leaflet-routing-machine/src/geocoder-element.js",
"type": "cjs require",
"userRequest": "./autocomplete",
"loc": "5:20-45"
},
{
"moduleId": 160,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/index.js",
"module": "./node_modules/leaflet-routing-machine/src/index.js",
"moduleName": "./node_modules/leaflet-routing-machine/src/index.js",
"type": "cjs require",
"userRequest": "./autocomplete",
"loc": "8:19-44"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 5,
"source": "(function() {\n\t'use strict';\n\n\tvar L = require('leaflet');\n\n\tmodule.exports = L.Class.extend({\n\t\toptions: {\n\t\t\ttimeout: 500,\n\t\t\tblurTimeout: 100,\n\t\t\tnoResultsMessage: 'No results found.'\n\t\t},\n\n\t\tinitialize: function(elem, callback, context, options) {\n\t\t\tL.setOptions(this, options);\n\n\t\t\tthis._elem = elem;\n\t\t\tthis._resultFn = options.resultFn ? L.Util.bind(options.resultFn, options.resultContext) : null;\n\t\t\tthis._autocomplete = options.autocompleteFn ? L.Util.bind(options.autocompleteFn, options.autocompleteContext) : null;\n\t\t\tthis._selectFn = L.Util.bind(callback, context);\n\t\t\tthis._container = L.DomUtil.create('div', 'leaflet-routing-geocoder-result');\n\t\t\tthis._resultTable = L.DomUtil.create('table', '', this._container);\n\n\t\t\t// TODO: looks a bit like a kludge to register same for input and keypress -\n\t\t\t// browsers supporting both will get duplicate events; just registering\n\t\t\t// input will not catch enter, though.\n\t\t\tL.DomEvent.addListener(this._elem, 'input', this._keyPressed, this);\n\t\t\tL.DomEvent.addListener(this._elem, 'keypress', this._keyPressed, this);\n\t\t\tL.DomEvent.addListener(this._elem, 'keydown', this._keyDown, this);\n\t\t\tL.DomEvent.addListener(this._elem, 'blur', function() {\n\t\t\t\tif (this._isOpen) {\n\t\t\t\t\tthis.close();\n\t\t\t\t}\n\t\t\t}, this);\n\t\t},\n\n\t\tclose: function() {\n\t\t\tL.DomUtil.removeClass(this._container, 'leaflet-routing-geocoder-result-open');\n\t\t\tthis._isOpen = false;\n\t\t},\n\n\t\t_open: function() {\n\t\t\tvar rect = this._elem.getBoundingClientRect();\n\t\t\tif (!this._container.parentElement) {\n\t\t\t\t// See notes section under https://developer.mozilla.org/en-US/docs/Web/API/Window/scrollX\n\t\t\t\t// This abomination is required to support all flavors of IE\n\t\t\t\tvar scrollX = (window.pageXOffset !== undefined) ? window.pageXOffset\n\t\t\t\t\t: (document.documentElement || document.body.parentNode || document.body).scrollLeft;\n\t\t\t\tvar scrollY = (window.pageYOffset !== undefined) ? window.pageYOffset\n\t\t\t\t\t: (document.documentElement || document.body.parentNode || document.body).scrollTop;\n\t\t\t\tthis._container.style.left = (rect.left + scrollX) + 'px';\n\t\t\t\tthis._container.style.top = (rect.bottom + scrollY) + 'px';\n\t\t\t\tthis._container.style.width = (rect.right - rect.left) + 'px';\n\t\t\t\tdocument.body.appendChild(this._container);\n\t\t\t}\n\n\t\t\tL.DomUtil.addClass(this._container, 'leaflet-routing-geocoder-result-open');\n\t\t\tthis._isOpen = true;\n\t\t},\n\n\t\t_setResults: function(results) {\n\t\t\tvar i,\n\t\t\t tr,\n\t\t\t td,\n\t\t\t text;\n\n\t\t\tdelete this._selection;\n\t\t\tthis._results = results;\n\n\t\t\twhile (this._resultTable.firstChild) {\n\t\t\t\tthis._resultTable.removeChild(this._resultTable.firstChild);\n\t\t\t}\n\n\t\t\tfor (i = 0; i < results.length; i++) {\n\t\t\t\ttr = L.DomUtil.create('tr', '', this._resultTable);\n\t\t\t\ttr.setAttribute('data-result-index', i);\n\t\t\t\ttd = L.DomUtil.create('td', '', tr);\n\t\t\t\ttext = document.createTextNode(results[i].name);\n\t\t\t\ttd.appendChild(text);\n\t\t\t\t// mousedown + click because:\n\t\t\t\t// http://stackoverflow.com/questions/10652852/jquery-fire-click-before-blur-event\n\t\t\t\tL.DomEvent.addListener(td, 'mousedown', L.DomEvent.preventDefault);\n\t\t\t\tL.DomEvent.addListener(td, 'click', this._createClickListener(results[i]));\n\t\t\t}\n\n\t\t\tif (!i) {\n\t\t\t\ttr = L.DomUtil.create('tr', '', this._resultTable);\n\t\t\t\ttd = L.DomUtil.create('td', 'leaflet-routing-geocoder-no-results', tr);\n\t\t\t\ttd.innerHTML = this.options.noResultsMessage;\n\t\t\t}\n\n\t\t\tthis._open();\n\n\t\t\tif (results.length > 0) {\n\t\t\t\t// Select the first entry\n\t\t\t\tthis._select(1);\n\t\t\t}\n\t\t},\n\n\t\t_createClickListener: function(r) {\n\t\t\tvar resultSelected = this._resultSelected(r);\n\t\t\treturn L.bind(function() {\n\t\t\t\tthis._elem.blur();\n\t\t\t\tresultSelected();\n\t\t\t}, this);\n\t\t},\n\n\t\t_resultSelected: function(r) {\n\t\t\treturn L.bind(function() {\n\t\t\t\tthis.close();\n\t\t\t\tthis._elem.value = r.name;\n\t\t\t\tthis._lastCompletedText = r.name;\n\t\t\t\tthis._selectFn(r);\n\t\t\t}, this);\n\t\t},\n\n\t\t_keyPressed: function(e) {\n\t\t\tvar index;\n\n\t\t\tif (this._isOpen && e.keyCode === 13 && this._selection) {\n\t\t\t\tindex = parseInt(this._selection.getAttribute('data-result-index'), 10);\n\t\t\t\tthis._resultSelected(this._results[index])();\n\t\t\t\tL.DomEvent.preventDefault(e);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (e.keyCode === 13) {\n\t\t\t\tthis._complete(this._resultFn, true);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (this._autocomplete && document.activeElement === this._elem) {\n\t\t\t\tif (this._timer) {\n\t\t\t\t\tclearTimeout(this._timer);\n\t\t\t\t}\n\t\t\t\tthis._timer = setTimeout(L.Util.bind(function() { this._complete(this._autocomplete); }, this),\n\t\t\t\t\tthis.options.timeout);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tthis._unselect();\n\t\t},\n\n\t\t_select: function(dir) {\n\t\t\tvar sel = this._selection;\n\t\t\tif (sel) {\n\t\t\t\tL.DomUtil.removeClass(sel.firstChild, 'leaflet-routing-geocoder-selected');\n\t\t\t\tsel = sel[dir > 0 ? 'nextSibling' : 'previousSibling'];\n\t\t\t}\n\t\t\tif (!sel) {\n\t\t\t\tsel = this._resultTable[dir > 0 ? 'firstChild' : 'lastChild'];\n\t\t\t}\n\n\t\t\tif (sel) {\n\t\t\t\tL.DomUtil.addClass(sel.firstChild, 'leaflet-routing-geocoder-selected');\n\t\t\t\tthis._selection = sel;\n\t\t\t}\n\t\t},\n\n\t\t_unselect: function() {\n\t\t\tif (this._selection) {\n\t\t\t\tL.DomUtil.removeClass(this._selection.firstChild, 'leaflet-routing-geocoder-selected');\n\t\t\t}\n\t\t\tdelete this._selection;\n\t\t},\n\n\t\t_keyDown: function(e) {\n\t\t\tif (this._isOpen) {\n\t\t\t\tswitch (e.keyCode) {\n\t\t\t\t// Escape\n\t\t\t\tcase 27:\n\t\t\t\t\tthis.close();\n\t\t\t\t\tL.DomEvent.preventDefault(e);\n\t\t\t\t\treturn;\n\t\t\t\t// Up\n\t\t\t\tcase 38:\n\t\t\t\t\tthis._select(-1);\n\t\t\t\t\tL.DomEvent.preventDefault(e);\n\t\t\t\t\treturn;\n\t\t\t\t// Down\n\t\t\t\tcase 40:\n\t\t\t\t\tthis._select(1);\n\t\t\t\t\tL.DomEvent.preventDefault(e);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\n\t\t_complete: function(completeFn, trySelect) {\n\t\t\tvar v = this._elem.value;\n\t\t\tfunction completeResults(results) {\n\t\t\t\tthis._lastCompletedText = v;\n\t\t\t\tif (trySelect && results.length === 1) {\n\t\t\t\t\tthis._resultSelected(results[0])();\n\t\t\t\t} else {\n\t\t\t\t\tthis._setResults(results);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (!v) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (v !== this._lastCompletedText) {\n\t\t\t\tcompleteFn(v, completeResults, this);\n\t\t\t} else if (trySelect) {\n\t\t\t\tcompleteResults.call(this, this._results);\n\t\t\t}\n\t\t}\n\t});\n})();\n"
},
{
"id": 74,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/helpers/bind.js",
"name": "./node_modules/axios/lib/helpers/bind.js",
"index": 164,
"index2": 157,
"size": 256,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/axios/lib/axios.js",
"issuerId": 169,
"issuerName": "./node_modules/axios/lib/axios.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 167,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Shotter.js",
"name": "./src/modules/Shotter.js"
},
{
"id": 168,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/index.js",
"name": "./node_modules/axios/index.js"
},
{
"id": 169,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/axios.js",
"name": "./node_modules/axios/lib/axios.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 4,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/axios/lib/utils.js",
"module": "./node_modules/axios/lib/utils.js",
"moduleName": "./node_modules/axios/lib/utils.js",
"type": "cjs require",
"userRequest": "./helpers/bind",
"loc": "3:11-36"
},
{
"moduleId": 169,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/axios/lib/axios.js",
"module": "./node_modules/axios/lib/axios.js",
"moduleName": "./node_modules/axios/lib/axios.js",
"type": "cjs require",
"userRequest": "./helpers/bind",
"loc": "4:11-36"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 6,
"source": "'use strict';\n\nmodule.exports = function bind(fn, thisArg) {\n return function wrap() {\n var args = new Array(arguments.length);\n for (var i = 0; i < args.length; i++) {\n args[i] = arguments[i];\n }\n return fn.apply(thisArg, args);\n };\n};\n"
},
{
"id": 75,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/adapters/xhr.js",
"name": "./node_modules/axios/lib/adapters/xhr.js",
"index": 170,
"index2": 170,
"size": 6170,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/axios/lib/defaults.js",
"issuerId": 46,
"issuerName": "./node_modules/axios/lib/defaults.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 167,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Shotter.js",
"name": "./src/modules/Shotter.js"
},
{
"id": 168,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/index.js",
"name": "./node_modules/axios/index.js"
},
{
"id": 169,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/axios.js",
"name": "./node_modules/axios/lib/axios.js"
},
{
"id": 46,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/defaults.js",
"name": "./node_modules/axios/lib/defaults.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 46,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/axios/lib/defaults.js",
"module": "./node_modules/axios/lib/defaults.js",
"moduleName": "./node_modules/axios/lib/defaults.js",
"type": "cjs require",
"userRequest": "./adapters/xhr",
"loc": "20:14-39"
},
{
"moduleId": 46,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/axios/lib/defaults.js",
"module": "./node_modules/axios/lib/defaults.js",
"moduleName": "./node_modules/axios/lib/defaults.js",
"type": "cjs require",
"userRequest": "./adapters/http",
"loc": "23:14-40"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "'use strict';\n\nvar utils = require('./../utils');\nvar settle = require('./../core/settle');\nvar buildURL = require('./../helpers/buildURL');\nvar parseHeaders = require('./../helpers/parseHeaders');\nvar isURLSameOrigin = require('./../helpers/isURLSameOrigin');\nvar createError = require('../core/createError');\nvar btoa = (typeof window !== 'undefined' && window.btoa && window.btoa.bind(window)) || require('./../helpers/btoa');\n\nmodule.exports = function xhrAdapter(config) {\n return new Promise(function dispatchXhrRequest(resolve, reject) {\n var requestData = config.data;\n var requestHeaders = config.headers;\n\n if (utils.isFormData(requestData)) {\n delete requestHeaders['Content-Type']; // Let the browser set it\n }\n\n var request = new XMLHttpRequest();\n var loadEvent = 'onreadystatechange';\n var xDomain = false;\n\n // For IE 8/9 CORS support\n // Only supports POST and GET calls and doesn't returns the response headers.\n // DON'T do this for testing b/c XMLHttpRequest is mocked, not XDomainRequest.\n if (process.env.NODE_ENV !== 'test' &&\n typeof window !== 'undefined' &&\n window.XDomainRequest && !('withCredentials' in request) &&\n !isURLSameOrigin(config.url)) {\n request = new window.XDomainRequest();\n loadEvent = 'onload';\n xDomain = true;\n request.onprogress = function handleProgress() {};\n request.ontimeout = function handleTimeout() {};\n }\n\n // HTTP basic authentication\n if (config.auth) {\n var username = config.auth.username || '';\n var password = config.auth.password || '';\n requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password);\n }\n\n request.open(config.method.toUpperCase(), buildURL(config.url, config.params, config.paramsSerializer), true);\n\n // Set the request timeout in MS\n request.timeout = config.timeout;\n\n // Listen for ready state\n request[loadEvent] = function handleLoad() {\n if (!request || (request.readyState !== 4 && !xDomain)) {\n return;\n }\n\n // The request errored out and we didn't get a response, this will be\n // handled by onerror instead\n // With one exception: request that using file: protocol, most browsers\n // will return status as 0 even though it's a successful request\n if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {\n return;\n }\n\n // Prepare the response\n var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null;\n var responseData = !config.responseType || config.responseType === 'text' ? request.responseText : request.response;\n var response = {\n data: responseData,\n // IE sends 1223 instead of 204 (https://github.com/axios/axios/issues/201)\n status: request.status === 1223 ? 204 : request.status,\n statusText: request.status === 1223 ? 'No Content' : request.statusText,\n headers: responseHeaders,\n config: config,\n request: request\n };\n\n settle(resolve, reject, response);\n\n // Clean up request\n request = null;\n };\n\n // Handle low level network errors\n request.onerror = function handleError() {\n // Real errors are hidden from us by the browser\n // onerror should only fire if it's a network error\n reject(createError('Network Error', config, null, request));\n\n // Clean up request\n request = null;\n };\n\n // Handle timeout\n request.ontimeout = function handleTimeout() {\n reject(createError('timeout of ' + config.timeout + 'ms exceeded', config, 'ECONNABORTED',\n request));\n\n // Clean up request\n request = null;\n };\n\n // Add xsrf header\n // This is only done if running in a standard browser environment.\n // Specifically not if we're in a web worker, or react-native.\n if (utils.isStandardBrowserEnv()) {\n var cookies = require('./../helpers/cookies');\n\n // Add xsrf header\n var xsrfValue = (config.withCredentials || isURLSameOrigin(config.url)) && config.xsrfCookieName ?\n cookies.read(config.xsrfCookieName) :\n undefined;\n\n if (xsrfValue) {\n requestHeaders[config.xsrfHeaderName] = xsrfValue;\n }\n }\n\n // Add headers to the request\n if ('setRequestHeader' in request) {\n utils.forEach(requestHeaders, function setRequestHeader(val, key) {\n if (typeof requestData === 'undefined' && key.toLowerCase() === 'content-type') {\n // Remove Content-Type if data is undefined\n delete requestHeaders[key];\n } else {\n // Otherwise add header to the request\n request.setRequestHeader(key, val);\n }\n });\n }\n\n // Add withCredentials to request if needed\n if (config.withCredentials) {\n request.withCredentials = true;\n }\n\n // Add responseType to request if needed\n if (config.responseType) {\n try {\n request.responseType = config.responseType;\n } catch (e) {\n // Expected DOMException thrown by browsers not compatible XMLHttpRequest Level 2.\n // But, this can be suppressed for 'json' type as it can be parsed by default 'transformResponse' function.\n if (config.responseType !== 'json') {\n throw e;\n }\n }\n }\n\n // Handle progress if needed\n if (typeof config.onDownloadProgress === 'function') {\n request.addEventListener('progress', config.onDownloadProgress);\n }\n\n // Not all browsers support upload events\n if (typeof config.onUploadProgress === 'function' && request.upload) {\n request.upload.addEventListener('progress', config.onUploadProgress);\n }\n\n if (config.cancelToken) {\n // Handle cancellation\n config.cancelToken.promise.then(function onCanceled(cancel) {\n if (!request) {\n return;\n }\n\n request.abort();\n reject(cancel);\n // Clean up request\n request = null;\n });\n }\n\n if (requestData === undefined) {\n requestData = null;\n }\n\n // Send the request\n request.send(requestData);\n });\n};\n"
},
{
"id": 76,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/core/createError.js",
"name": "./node_modules/axios/lib/core/createError.js",
"index": 172,
"index2": 163,
"size": 625,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/axios/lib/adapters/xhr.js",
"issuerId": 75,
"issuerName": "./node_modules/axios/lib/adapters/xhr.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 167,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Shotter.js",
"name": "./src/modules/Shotter.js"
},
{
"id": 168,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/index.js",
"name": "./node_modules/axios/index.js"
},
{
"id": 169,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/axios.js",
"name": "./node_modules/axios/lib/axios.js"
},
{
"id": 46,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/defaults.js",
"name": "./node_modules/axios/lib/defaults.js"
},
{
"id": 75,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/adapters/xhr.js",
"name": "./node_modules/axios/lib/adapters/xhr.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 75,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/axios/lib/adapters/xhr.js",
"module": "./node_modules/axios/lib/adapters/xhr.js",
"moduleName": "./node_modules/axios/lib/adapters/xhr.js",
"type": "cjs require",
"userRequest": "../core/createError",
"loc": "8:18-48"
},
{
"moduleId": 174,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/axios/lib/core/settle.js",
"module": "./node_modules/axios/lib/core/settle.js",
"moduleName": "./node_modules/axios/lib/core/settle.js",
"type": "cjs require",
"userRequest": "./createError",
"loc": "3:18-42"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 8,
"source": "'use strict';\n\nvar enhanceError = require('./enhanceError');\n\n/**\n * Create an Error with the specified message, config, error code, request and response.\n *\n * @param {string} message The error message.\n * @param {Object} config The config.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n * @returns {Error} The created error.\n */\nmodule.exports = function createError(message, config, code, request, response) {\n var error = new Error(message);\n return enhanceError(error, config, code, request, response);\n};\n"
},
{
"id": 77,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/cancel/isCancel.js",
"name": "./node_modules/axios/lib/cancel/isCancel.js",
"index": 182,
"index2": 174,
"size": 102,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/axios/lib/axios.js",
"issuerId": 169,
"issuerName": "./node_modules/axios/lib/axios.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 167,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Shotter.js",
"name": "./src/modules/Shotter.js"
},
{
"id": 168,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/index.js",
"name": "./node_modules/axios/index.js"
},
{
"id": 169,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/axios.js",
"name": "./node_modules/axios/lib/axios.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 169,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/axios/lib/axios.js",
"module": "./node_modules/axios/lib/axios.js",
"moduleName": "./node_modules/axios/lib/axios.js",
"type": "cjs require",
"userRequest": "./cancel/isCancel",
"loc": "41:17-45"
},
{
"moduleId": 182,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/axios/lib/core/dispatchRequest.js",
"module": "./node_modules/axios/lib/core/dispatchRequest.js",
"moduleName": "./node_modules/axios/lib/core/dispatchRequest.js",
"type": "cjs require",
"userRequest": "../cancel/isCancel",
"loc": "5:15-44"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 6,
"source": "'use strict';\n\nmodule.exports = function isCancel(value) {\n return !!(value && value.__CANCEL__);\n};\n"
},
{
"id": 78,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/cancel/Cancel.js",
"name": "./node_modules/axios/lib/cancel/Cancel.js",
"index": 185,
"index2": 179,
"size": 385,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/axios/lib/axios.js",
"issuerId": 169,
"issuerName": "./node_modules/axios/lib/axios.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 167,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Shotter.js",
"name": "./src/modules/Shotter.js"
},
{
"id": 168,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/index.js",
"name": "./node_modules/axios/index.js"
},
{
"id": 169,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/axios.js",
"name": "./node_modules/axios/lib/axios.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 169,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/axios/lib/axios.js",
"module": "./node_modules/axios/lib/axios.js",
"moduleName": "./node_modules/axios/lib/axios.js",
"type": "cjs require",
"userRequest": "./cancel/Cancel",
"loc": "39:15-41"
},
{
"moduleId": 186,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/axios/lib/cancel/CancelToken.js",
"module": "./node_modules/axios/lib/cancel/CancelToken.js",
"moduleName": "./node_modules/axios/lib/cancel/CancelToken.js",
"type": "cjs require",
"userRequest": "./Cancel",
"loc": "3:13-32"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 6,
"source": "'use strict';\n\n/**\n * A `Cancel` is an object that is thrown when an operation is canceled.\n *\n * @class\n * @param {string=} message The message.\n */\nfunction Cancel(message) {\n this.message = message;\n}\n\nCancel.prototype.toString = function toString() {\n return 'Cancel' + (this.message ? ': ' + this.message : '');\n};\n\nCancel.prototype.__CANCEL__ = true;\n\nmodule.exports = Cancel;\n"
},
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js",
"index": 0,
"index2": 192,
"size": 1116,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": null,
"issuerId": null,
"issuerName": null,
"issuerPath": null,
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": null,
"moduleIdentifier": null,
"module": null,
"moduleName": null,
"type": "single entry",
"userRequest": "./src/index.js",
"loc": "app"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 0,
"source": "'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.Index = undefined;\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _reactDom = require('react-dom');\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nvar _App = require('$containers/App');\n\nrequire('$styles/map.less');\n\nrequire('$styles/controls.less');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n(function () {\n var enterModule = require('react-hot-loader').enterModule;\n\n enterModule && enterModule(module);\n})();\n\nvar Index = exports.Index = function Index() {\n return _react2.default.createElement(_App.App, null);\n};\n\n_reactDom2.default.render(_react2.default.createElement(Index, null), document.getElementById('index'));\n;\n\n(function () {\n var reactHotLoader = require('react-hot-loader').default;\n\n var leaveModule = require('react-hot-loader').leaveModule;\n\n if (!reactHotLoader) {\n return;\n }\n\n reactHotLoader.register(Index, 'Index', '/Users/user/Projects/orchid/src/index.js');\n leaveModule(module);\n})();\n\n;"
},
{
"id": 80,
"identifier": "/Users/user/Projects/orchid/node_modules/react/cjs/react.production.min.js",
"name": "./node_modules/react/cjs/react.production.min.js",
"index": 3,
"index2": 5,
"size": 5724,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/react/index.js",
"issuerId": 20,
"issuerName": "./node_modules/react/index.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 20,
"identifier": "/Users/user/Projects/orchid/node_modules/react/index.js",
"name": "./node_modules/react/index.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 20,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/react/index.js",
"module": "./node_modules/react/index.js",
"moduleName": "./node_modules/react/index.js",
"type": "cjs require",
"userRequest": "./cjs/react.production.min.js",
"loc": "4:19-59"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 2,
"source": "/** @license React v16.4.2\n * react.production.min.js\n *\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';var k=require(\"object-assign\"),n=require(\"fbjs/lib/invariant\"),p=require(\"fbjs/lib/emptyObject\"),q=require(\"fbjs/lib/emptyFunction\"),r=\"function\"===typeof Symbol&&Symbol.for,t=r?Symbol.for(\"react.element\"):60103,u=r?Symbol.for(\"react.portal\"):60106,v=r?Symbol.for(\"react.fragment\"):60107,w=r?Symbol.for(\"react.strict_mode\"):60108,x=r?Symbol.for(\"react.profiler\"):60114,y=r?Symbol.for(\"react.provider\"):60109,z=r?Symbol.for(\"react.context\"):60110,A=r?Symbol.for(\"react.async_mode\"):60111,B=\nr?Symbol.for(\"react.forward_ref\"):60112;r&&Symbol.for(\"react.timeout\");var C=\"function\"===typeof Symbol&&Symbol.iterator;function D(a){for(var b=arguments.length-1,e=\"https://reactjs.org/docs/error-decoder.html?invariant=\"+a,c=0;c<b;c++)e+=\"&args[]=\"+encodeURIComponent(arguments[c+1]);n(!1,\"Minified React error #\"+a+\"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. \",e)}\nvar E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}};function F(a,b,e){this.props=a;this.context=b;this.refs=p;this.updater=e||E}F.prototype.isReactComponent={};F.prototype.setState=function(a,b){\"object\"!==typeof a&&\"function\"!==typeof a&&null!=a?D(\"85\"):void 0;this.updater.enqueueSetState(this,a,b,\"setState\")};F.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,\"forceUpdate\")};function G(){}\nG.prototype=F.prototype;function H(a,b,e){this.props=a;this.context=b;this.refs=p;this.updater=e||E}var I=H.prototype=new G;I.constructor=H;k(I,F.prototype);I.isPureReactComponent=!0;var J={current:null},K=Object.prototype.hasOwnProperty,L={key:!0,ref:!0,__self:!0,__source:!0};\nfunction M(a,b,e){var c=void 0,d={},g=null,h=null;if(null!=b)for(c in void 0!==b.ref&&(h=b.ref),void 0!==b.key&&(g=\"\"+b.key),b)K.call(b,c)&&!L.hasOwnProperty(c)&&(d[c]=b[c]);var f=arguments.length-2;if(1===f)d.children=e;else if(1<f){for(var l=Array(f),m=0;m<f;m++)l[m]=arguments[m+2];d.children=l}if(a&&a.defaultProps)for(c in f=a.defaultProps,f)void 0===d[c]&&(d[c]=f[c]);return{$$typeof:t,type:a,key:g,ref:h,props:d,_owner:J.current}}\nfunction N(a){return\"object\"===typeof a&&null!==a&&a.$$typeof===t}function escape(a){var b={\"=\":\"=0\",\":\":\"=2\"};return\"$\"+(\"\"+a).replace(/[=:]/g,function(a){return b[a]})}var O=/\\/+/g,P=[];function Q(a,b,e,c){if(P.length){var d=P.pop();d.result=a;d.keyPrefix=b;d.func=e;d.context=c;d.count=0;return d}return{result:a,keyPrefix:b,func:e,context:c,count:0}}function R(a){a.result=null;a.keyPrefix=null;a.func=null;a.context=null;a.count=0;10>P.length&&P.push(a)}\nfunction S(a,b,e,c){var d=typeof a;if(\"undefined\"===d||\"boolean\"===d)a=null;var g=!1;if(null===a)g=!0;else switch(d){case \"string\":case \"number\":g=!0;break;case \"object\":switch(a.$$typeof){case t:case u:g=!0}}if(g)return e(c,a,\"\"===b?\".\"+T(a,0):b),1;g=0;b=\"\"===b?\".\":b+\":\";if(Array.isArray(a))for(var h=0;h<a.length;h++){d=a[h];var f=b+T(d,h);g+=S(d,f,e,c)}else if(null===a||\"undefined\"===typeof a?f=null:(f=C&&a[C]||a[\"@@iterator\"],f=\"function\"===typeof f?f:null),\"function\"===typeof f)for(a=f.call(a),\nh=0;!(d=a.next()).done;)d=d.value,f=b+T(d,h++),g+=S(d,f,e,c);else\"object\"===d&&(e=\"\"+a,D(\"31\",\"[object Object]\"===e?\"object with keys {\"+Object.keys(a).join(\", \")+\"}\":e,\"\"));return g}function T(a,b){return\"object\"===typeof a&&null!==a&&null!=a.key?escape(a.key):b.toString(36)}function U(a,b){a.func.call(a.context,b,a.count++)}\nfunction V(a,b,e){var c=a.result,d=a.keyPrefix;a=a.func.call(a.context,b,a.count++);Array.isArray(a)?W(a,c,e,q.thatReturnsArgument):null!=a&&(N(a)&&(b=d+(!a.key||b&&b.key===a.key?\"\":(\"\"+a.key).replace(O,\"$&/\")+\"/\")+e,a={$$typeof:t,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}),c.push(a))}function W(a,b,e,c,d){var g=\"\";null!=e&&(g=(\"\"+e).replace(O,\"$&/\")+\"/\");b=Q(b,g,c,d);null==a||S(a,\"\",V,b);R(b)}\nvar X={Children:{map:function(a,b,e){if(null==a)return a;var c=[];W(a,c,null,b,e);return c},forEach:function(a,b,e){if(null==a)return a;b=Q(null,null,b,e);null==a||S(a,\"\",U,b);R(b)},count:function(a){return null==a?0:S(a,\"\",q.thatReturnsNull,null)},toArray:function(a){var b=[];W(a,b,null,q.thatReturnsArgument);return b},only:function(a){N(a)?void 0:D(\"143\");return a}},createRef:function(){return{current:null}},Component:F,PureComponent:H,createContext:function(a,b){void 0===b&&(b=null);a={$$typeof:z,\n_calculateChangedBits:b,_defaultValue:a,_currentValue:a,_currentValue2:a,_changedBits:0,_changedBits2:0,Provider:null,Consumer:null};a.Provider={$$typeof:y,_context:a};return a.Consumer=a},forwardRef:function(a){return{$$typeof:B,render:a}},Fragment:v,StrictMode:w,unstable_AsyncMode:A,unstable_Profiler:x,createElement:M,cloneElement:function(a,b,e){null===a||void 0===a?D(\"267\",a):void 0;var c=void 0,d=k({},a.props),g=a.key,h=a.ref,f=a._owner;if(null!=b){void 0!==b.ref&&(h=b.ref,f=J.current);void 0!==\nb.key&&(g=\"\"+b.key);var l=void 0;a.type&&a.type.defaultProps&&(l=a.type.defaultProps);for(c in b)K.call(b,c)&&!L.hasOwnProperty(c)&&(d[c]=void 0===b[c]&&void 0!==l?l[c]:b[c])}c=arguments.length-2;if(1===c)d.children=e;else if(1<c){l=Array(c);for(var m=0;m<c;m++)l[m]=arguments[m+2];d.children=l}return{$$typeof:t,type:a.type,key:g,ref:h,props:d,_owner:f}},createFactory:function(a){var b=M.bind(null,a);b.type=a;return b},isValidElement:N,version:\"16.4.2\",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:J,\nassign:k}},Y={default:X},Z=Y&&X||Y;module.exports=Z.default?Z.default:Z;\n"
},
{
"id": 81,
"identifier": "/Users/user/Projects/orchid/node_modules/react-dom/index.js",
"name": "./node_modules/react-dom/index.js",
"index": 8,
"index2": 14,
"size": 1363,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"issuerId": 79,
"issuerName": "./src/index.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 79,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"module": "./src/index.js",
"moduleName": "./src/index.js",
"type": "cjs require",
"userRequest": "react-dom",
"loc": "12:16-36"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 1,
"source": "'use strict';\n\nfunction checkDCE() {\n /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */\n if (\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' ||\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function'\n ) {\n return;\n }\n if (process.env.NODE_ENV !== 'production') {\n // This branch is unreachable because this function is only called\n // in production, but the condition is true only in development.\n // Therefore if the branch is still here, dead code elimination wasn't\n // properly applied.\n // Don't change the message. React DevTools relies on it. Also make sure\n // this message doesn't occur elsewhere in this function, or it will cause\n // a false positive.\n throw new Error('^_^');\n }\n try {\n // Verify that the code above has been dead code eliminated (DCE'd).\n __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);\n } catch (err) {\n // DevTools shouldn't crash React, no matter what.\n // We should still report in case we break this code.\n console.error(err);\n }\n}\n\nif (process.env.NODE_ENV === 'production') {\n // DCE check should happen before ReactDOM bundle executes so that\n // DevTools can report bad minification during injection.\n checkDCE();\n module.exports = require('./cjs/react-dom.production.min.js');\n} else {\n module.exports = require('./cjs/react-dom.development.js');\n}\n"
},
{
"id": 82,
"identifier": "/Users/user/Projects/orchid/node_modules/react-dom/cjs/react-dom.production.min.js",
"name": "./node_modules/react-dom/cjs/react-dom.production.min.js",
"index": 9,
"index2": 13,
"size": 94990,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/react-dom/index.js",
"issuerId": 81,
"issuerName": "./node_modules/react-dom/index.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 81,
"identifier": "/Users/user/Projects/orchid/node_modules/react-dom/index.js",
"name": "./node_modules/react-dom/index.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 81,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/react-dom/index.js",
"module": "./node_modules/react-dom/index.js",
"moduleName": "./node_modules/react-dom/index.js",
"type": "cjs require",
"userRequest": "./cjs/react-dom.production.min.js",
"loc": "35:19-63"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 2,
"source": "/** @license React v16.4.2\n * react-dom.production.min.js\n *\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n/*\n Modernizr 3.0.0pre (Custom Build) | MIT\n*/\n'use strict';var aa=require(\"fbjs/lib/invariant\"),ba=require(\"react\"),m=require(\"fbjs/lib/ExecutionEnvironment\"),p=require(\"object-assign\"),v=require(\"fbjs/lib/emptyFunction\"),da=require(\"fbjs/lib/getActiveElement\"),ea=require(\"fbjs/lib/shallowEqual\"),fa=require(\"fbjs/lib/containsNode\"),ha=require(\"fbjs/lib/emptyObject\");\nfunction A(a){for(var b=arguments.length-1,c=\"https://reactjs.org/docs/error-decoder.html?invariant=\"+a,d=0;d<b;d++)c+=\"&args[]=\"+encodeURIComponent(arguments[d+1]);aa(!1,\"Minified React error #\"+a+\"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. \",c)}ba?void 0:A(\"227\");\nfunction ia(a,b,c,d,e,f,g,h,k){this._hasCaughtError=!1;this._caughtError=null;var n=Array.prototype.slice.call(arguments,3);try{b.apply(c,n)}catch(r){this._caughtError=r,this._hasCaughtError=!0}}\nvar B={_caughtError:null,_hasCaughtError:!1,_rethrowError:null,_hasRethrowError:!1,invokeGuardedCallback:function(a,b,c,d,e,f,g,h,k){ia.apply(B,arguments)},invokeGuardedCallbackAndCatchFirstError:function(a,b,c,d,e,f,g,h,k){B.invokeGuardedCallback.apply(this,arguments);if(B.hasCaughtError()){var n=B.clearCaughtError();B._hasRethrowError||(B._hasRethrowError=!0,B._rethrowError=n)}},rethrowCaughtError:function(){return ka.apply(B,arguments)},hasCaughtError:function(){return B._hasCaughtError},clearCaughtError:function(){if(B._hasCaughtError){var a=\nB._caughtError;B._caughtError=null;B._hasCaughtError=!1;return a}A(\"198\")}};function ka(){if(B._hasRethrowError){var a=B._rethrowError;B._rethrowError=null;B._hasRethrowError=!1;throw a;}}var la=null,ma={};\nfunction na(){if(la)for(var a in ma){var b=ma[a],c=la.indexOf(a);-1<c?void 0:A(\"96\",a);if(!oa[c]){b.extractEvents?void 0:A(\"97\",a);oa[c]=b;c=b.eventTypes;for(var d in c){var e=void 0;var f=c[d],g=b,h=d;pa.hasOwnProperty(h)?A(\"99\",h):void 0;pa[h]=f;var k=f.phasedRegistrationNames;if(k){for(e in k)k.hasOwnProperty(e)&&qa(k[e],g,h);e=!0}else f.registrationName?(qa(f.registrationName,g,h),e=!0):e=!1;e?void 0:A(\"98\",d,a)}}}}\nfunction qa(a,b,c){ra[a]?A(\"100\",a):void 0;ra[a]=b;sa[a]=b.eventTypes[c].dependencies}var oa=[],pa={},ra={},sa={};function ta(a){la?A(\"101\"):void 0;la=Array.prototype.slice.call(a);na()}function ua(a){var b=!1,c;for(c in a)if(a.hasOwnProperty(c)){var d=a[c];ma.hasOwnProperty(c)&&ma[c]===d||(ma[c]?A(\"102\",c):void 0,ma[c]=d,b=!0)}b&&na()}\nvar va={plugins:oa,eventNameDispatchConfigs:pa,registrationNameModules:ra,registrationNameDependencies:sa,possibleRegistrationNames:null,injectEventPluginOrder:ta,injectEventPluginsByName:ua},wa=null,xa=null,ya=null;function za(a,b,c,d){b=a.type||\"unknown-event\";a.currentTarget=ya(d);B.invokeGuardedCallbackAndCatchFirstError(b,c,void 0,a);a.currentTarget=null}\nfunction Aa(a,b){null==b?A(\"30\"):void 0;if(null==a)return b;if(Array.isArray(a)){if(Array.isArray(b))return a.push.apply(a,b),a;a.push(b);return a}return Array.isArray(b)?[a].concat(b):[a,b]}function Ba(a,b,c){Array.isArray(a)?a.forEach(b,c):a&&b.call(c,a)}var Ca=null;\nfunction Da(a,b){if(a){var c=a._dispatchListeners,d=a._dispatchInstances;if(Array.isArray(c))for(var e=0;e<c.length&&!a.isPropagationStopped();e++)za(a,b,c[e],d[e]);else c&&za(a,b,c,d);a._dispatchListeners=null;a._dispatchInstances=null;a.isPersistent()||a.constructor.release(a)}}function Ea(a){return Da(a,!0)}function Fa(a){return Da(a,!1)}var Ga={injectEventPluginOrder:ta,injectEventPluginsByName:ua};\nfunction Ha(a,b){var c=a.stateNode;if(!c)return null;var d=wa(c);if(!d)return null;c=d[b];a:switch(b){case \"onClick\":case \"onClickCapture\":case \"onDoubleClick\":case \"onDoubleClickCapture\":case \"onMouseDown\":case \"onMouseDownCapture\":case \"onMouseMove\":case \"onMouseMoveCapture\":case \"onMouseUp\":case \"onMouseUpCapture\":(d=!d.disabled)||(a=a.type,d=!(\"button\"===a||\"input\"===a||\"select\"===a||\"textarea\"===a));a=!d;break a;default:a=!1}if(a)return null;c&&\"function\"!==typeof c?A(\"231\",b,typeof c):void 0;\nreturn c}function Ia(a,b){null!==a&&(Ca=Aa(Ca,a));a=Ca;Ca=null;a&&(b?Ba(a,Ea):Ba(a,Fa),Ca?A(\"95\"):void 0,B.rethrowCaughtError())}function Ja(a,b,c,d){for(var e=null,f=0;f<oa.length;f++){var g=oa[f];g&&(g=g.extractEvents(a,b,c,d))&&(e=Aa(e,g))}Ia(e,!1)}var Ka={injection:Ga,getListener:Ha,runEventsInBatch:Ia,runExtractedEventsInBatch:Ja},La=Math.random().toString(36).slice(2),C=\"__reactInternalInstance$\"+La,Ma=\"__reactEventHandlers$\"+La;\nfunction Na(a){if(a[C])return a[C];for(;!a[C];)if(a.parentNode)a=a.parentNode;else return null;a=a[C];return 5===a.tag||6===a.tag?a:null}function Oa(a){if(5===a.tag||6===a.tag)return a.stateNode;A(\"33\")}function Pa(a){return a[Ma]||null}var Qa={precacheFiberNode:function(a,b){b[C]=a},getClosestInstanceFromNode:Na,getInstanceFromNode:function(a){a=a[C];return!a||5!==a.tag&&6!==a.tag?null:a},getNodeFromInstance:Oa,getFiberCurrentPropsFromNode:Pa,updateFiberProps:function(a,b){a[Ma]=b}};\nfunction F(a){do a=a.return;while(a&&5!==a.tag);return a?a:null}function Ra(a,b,c){for(var d=[];a;)d.push(a),a=F(a);for(a=d.length;0<a--;)b(d[a],\"captured\",c);for(a=0;a<d.length;a++)b(d[a],\"bubbled\",c)}function Sa(a,b,c){if(b=Ha(a,c.dispatchConfig.phasedRegistrationNames[b]))c._dispatchListeners=Aa(c._dispatchListeners,b),c._dispatchInstances=Aa(c._dispatchInstances,a)}function Ta(a){a&&a.dispatchConfig.phasedRegistrationNames&&Ra(a._targetInst,Sa,a)}\nfunction Ua(a){if(a&&a.dispatchConfig.phasedRegistrationNames){var b=a._targetInst;b=b?F(b):null;Ra(b,Sa,a)}}function Va(a,b,c){a&&c&&c.dispatchConfig.registrationName&&(b=Ha(a,c.dispatchConfig.registrationName))&&(c._dispatchListeners=Aa(c._dispatchListeners,b),c._dispatchInstances=Aa(c._dispatchInstances,a))}function Xa(a){a&&a.dispatchConfig.registrationName&&Va(a._targetInst,null,a)}function Ya(a){Ba(a,Ta)}\nfunction Za(a,b,c,d){if(c&&d)a:{var e=c;for(var f=d,g=0,h=e;h;h=F(h))g++;h=0;for(var k=f;k;k=F(k))h++;for(;0<g-h;)e=F(e),g--;for(;0<h-g;)f=F(f),h--;for(;g--;){if(e===f||e===f.alternate)break a;e=F(e);f=F(f)}e=null}else e=null;f=e;for(e=[];c&&c!==f;){g=c.alternate;if(null!==g&&g===f)break;e.push(c);c=F(c)}for(c=[];d&&d!==f;){g=d.alternate;if(null!==g&&g===f)break;c.push(d);d=F(d)}for(d=0;d<e.length;d++)Va(e[d],\"bubbled\",a);for(a=c.length;0<a--;)Va(c[a],\"captured\",b)}\nvar $a={accumulateTwoPhaseDispatches:Ya,accumulateTwoPhaseDispatchesSkipTarget:function(a){Ba(a,Ua)},accumulateEnterLeaveDispatches:Za,accumulateDirectDispatches:function(a){Ba(a,Xa)}};function ab(a,b){var c={};c[a.toLowerCase()]=b.toLowerCase();c[\"Webkit\"+a]=\"webkit\"+b;c[\"Moz\"+a]=\"moz\"+b;c[\"ms\"+a]=\"MS\"+b;c[\"O\"+a]=\"o\"+b.toLowerCase();return c}\nvar bb={animationend:ab(\"Animation\",\"AnimationEnd\"),animationiteration:ab(\"Animation\",\"AnimationIteration\"),animationstart:ab(\"Animation\",\"AnimationStart\"),transitionend:ab(\"Transition\",\"TransitionEnd\")},cb={},db={};m.canUseDOM&&(db=document.createElement(\"div\").style,\"AnimationEvent\"in window||(delete bb.animationend.animation,delete bb.animationiteration.animation,delete bb.animationstart.animation),\"TransitionEvent\"in window||delete bb.transitionend.transition);\nfunction eb(a){if(cb[a])return cb[a];if(!bb[a])return a;var b=bb[a],c;for(c in b)if(b.hasOwnProperty(c)&&c in db)return cb[a]=b[c];return a}var fb=eb(\"animationend\"),gb=eb(\"animationiteration\"),hb=eb(\"animationstart\"),ib=eb(\"transitionend\"),jb=\"abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting\".split(\" \"),kb=null;\nfunction lb(){!kb&&m.canUseDOM&&(kb=\"textContent\"in document.documentElement?\"textContent\":\"innerText\");return kb}var G={_root:null,_startText:null,_fallbackText:null};function mb(){if(G._fallbackText)return G._fallbackText;var a,b=G._startText,c=b.length,d,e=nb(),f=e.length;for(a=0;a<c&&b[a]===e[a];a++);var g=c-a;for(d=1;d<=g&&b[c-d]===e[f-d];d++);G._fallbackText=e.slice(a,1<d?1-d:void 0);return G._fallbackText}function nb(){return\"value\"in G._root?G._root.value:G._root[lb()]}\nvar ob=\"dispatchConfig _targetInst nativeEvent isDefaultPrevented isPropagationStopped _dispatchListeners _dispatchInstances\".split(\" \"),pb={type:null,target:null,currentTarget:v.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};\nfunction H(a,b,c,d){this.dispatchConfig=a;this._targetInst=b;this.nativeEvent=c;a=this.constructor.Interface;for(var e in a)a.hasOwnProperty(e)&&((b=a[e])?this[e]=b(c):\"target\"===e?this.target=d:this[e]=c[e]);this.isDefaultPrevented=(null!=c.defaultPrevented?c.defaultPrevented:!1===c.returnValue)?v.thatReturnsTrue:v.thatReturnsFalse;this.isPropagationStopped=v.thatReturnsFalse;return this}\np(H.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():\"unknown\"!==typeof a.returnValue&&(a.returnValue=!1),this.isDefaultPrevented=v.thatReturnsTrue)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():\"unknown\"!==typeof a.cancelBubble&&(a.cancelBubble=!0),this.isPropagationStopped=v.thatReturnsTrue)},persist:function(){this.isPersistent=v.thatReturnsTrue},isPersistent:v.thatReturnsFalse,\ndestructor:function(){var a=this.constructor.Interface,b;for(b in a)this[b]=null;for(a=0;a<ob.length;a++)this[ob[a]]=null}});H.Interface=pb;H.extend=function(a){function b(){}function c(){return d.apply(this,arguments)}var d=this;b.prototype=d.prototype;var e=new b;p(e,c.prototype);c.prototype=e;c.prototype.constructor=c;c.Interface=p({},d.Interface,a);c.extend=d.extend;qb(c);return c};qb(H);\nfunction rb(a,b,c,d){if(this.eventPool.length){var e=this.eventPool.pop();this.call(e,a,b,c,d);return e}return new this(a,b,c,d)}function sb(a){a instanceof this?void 0:A(\"223\");a.destructor();10>this.eventPool.length&&this.eventPool.push(a)}function qb(a){a.eventPool=[];a.getPooled=rb;a.release=sb}var tb=H.extend({data:null}),ub=H.extend({data:null}),vb=[9,13,27,32],wb=m.canUseDOM&&\"CompositionEvent\"in window,xb=null;m.canUseDOM&&\"documentMode\"in document&&(xb=document.documentMode);\nvar yb=m.canUseDOM&&\"TextEvent\"in window&&!xb,zb=m.canUseDOM&&(!wb||xb&&8<xb&&11>=xb),Ab=String.fromCharCode(32),Bb={beforeInput:{phasedRegistrationNames:{bubbled:\"onBeforeInput\",captured:\"onBeforeInputCapture\"},dependencies:[\"compositionend\",\"keypress\",\"textInput\",\"paste\"]},compositionEnd:{phasedRegistrationNames:{bubbled:\"onCompositionEnd\",captured:\"onCompositionEndCapture\"},dependencies:\"blur compositionend keydown keypress keyup mousedown\".split(\" \")},compositionStart:{phasedRegistrationNames:{bubbled:\"onCompositionStart\",\ncaptured:\"onCompositionStartCapture\"},dependencies:\"blur compositionstart keydown keypress keyup mousedown\".split(\" \")},compositionUpdate:{phasedRegistrationNames:{bubbled:\"onCompositionUpdate\",captured:\"onCompositionUpdateCapture\"},dependencies:\"blur compositionupdate keydown keypress keyup mousedown\".split(\" \")}},Cb=!1;\nfunction Db(a,b){switch(a){case \"keyup\":return-1!==vb.indexOf(b.keyCode);case \"keydown\":return 229!==b.keyCode;case \"keypress\":case \"mousedown\":case \"blur\":return!0;default:return!1}}function Eb(a){a=a.detail;return\"object\"===typeof a&&\"data\"in a?a.data:null}var Fb=!1;function Gb(a,b){switch(a){case \"compositionend\":return Eb(b);case \"keypress\":if(32!==b.which)return null;Cb=!0;return Ab;case \"textInput\":return a=b.data,a===Ab&&Cb?null:a;default:return null}}\nfunction Hb(a,b){if(Fb)return\"compositionend\"===a||!wb&&Db(a,b)?(a=mb(),G._root=null,G._startText=null,G._fallbackText=null,Fb=!1,a):null;switch(a){case \"paste\":return null;case \"keypress\":if(!(b.ctrlKey||b.altKey||b.metaKey)||b.ctrlKey&&b.altKey){if(b.char&&1<b.char.length)return b.char;if(b.which)return String.fromCharCode(b.which)}return null;case \"compositionend\":return zb?null:b.data;default:return null}}\nvar Ib={eventTypes:Bb,extractEvents:function(a,b,c,d){var e=void 0;var f=void 0;if(wb)b:{switch(a){case \"compositionstart\":e=Bb.compositionStart;break b;case \"compositionend\":e=Bb.compositionEnd;break b;case \"compositionupdate\":e=Bb.compositionUpdate;break b}e=void 0}else Fb?Db(a,c)&&(e=Bb.compositionEnd):\"keydown\"===a&&229===c.keyCode&&(e=Bb.compositionStart);e?(zb&&(Fb||e!==Bb.compositionStart?e===Bb.compositionEnd&&Fb&&(f=mb()):(G._root=d,G._startText=nb(),Fb=!0)),e=tb.getPooled(e,b,c,d),f?e.data=\nf:(f=Eb(c),null!==f&&(e.data=f)),Ya(e),f=e):f=null;(a=yb?Gb(a,c):Hb(a,c))?(b=ub.getPooled(Bb.beforeInput,b,c,d),b.data=a,Ya(b)):b=null;return null===f?b:null===b?f:[f,b]}},Jb=null,Kb={injectFiberControlledHostComponent:function(a){Jb=a}},Lb=null,Mb=null;function Nb(a){if(a=xa(a)){Jb&&\"function\"===typeof Jb.restoreControlledState?void 0:A(\"194\");var b=wa(a.stateNode);Jb.restoreControlledState(a.stateNode,a.type,b)}}function Ob(a){Lb?Mb?Mb.push(a):Mb=[a]:Lb=a}\nfunction Pb(){return null!==Lb||null!==Mb}function Qb(){if(Lb){var a=Lb,b=Mb;Mb=Lb=null;Nb(a);if(b)for(a=0;a<b.length;a++)Nb(b[a])}}var Rb={injection:Kb,enqueueStateRestore:Ob,needsStateRestore:Pb,restoreStateIfNeeded:Qb};function Sb(a,b){return a(b)}function Tb(a,b,c){return a(b,c)}function Ub(){}var Vb=!1;function Wb(a,b){if(Vb)return a(b);Vb=!0;try{return Sb(a,b)}finally{Vb=!1,Pb()&&(Ub(),Qb())}}\nvar Xb={color:!0,date:!0,datetime:!0,\"datetime-local\":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Yb(a){var b=a&&a.nodeName&&a.nodeName.toLowerCase();return\"input\"===b?!!Xb[a.type]:\"textarea\"===b?!0:!1}function Zb(a){a=a.target||a.srcElement||window;a.correspondingUseElement&&(a=a.correspondingUseElement);return 3===a.nodeType?a.parentNode:a}\nfunction $b(a,b){if(!m.canUseDOM||b&&!(\"addEventListener\"in document))return!1;a=\"on\"+a;b=a in document;b||(b=document.createElement(\"div\"),b.setAttribute(a,\"return;\"),b=\"function\"===typeof b[a]);return b}function ac(a){var b=a.type;return(a=a.nodeName)&&\"input\"===a.toLowerCase()&&(\"checkbox\"===b||\"radio\"===b)}\nfunction bc(a){var b=ac(a)?\"checked\":\"value\",c=Object.getOwnPropertyDescriptor(a.constructor.prototype,b),d=\"\"+a[b];if(!a.hasOwnProperty(b)&&\"undefined\"!==typeof c&&\"function\"===typeof c.get&&\"function\"===typeof c.set){var e=c.get,f=c.set;Object.defineProperty(a,b,{configurable:!0,get:function(){return e.call(this)},set:function(a){d=\"\"+a;f.call(this,a)}});Object.defineProperty(a,b,{enumerable:c.enumerable});return{getValue:function(){return d},setValue:function(a){d=\"\"+a},stopTracking:function(){a._valueTracker=\nnull;delete a[b]}}}}function cc(a){a._valueTracker||(a._valueTracker=bc(a))}function dc(a){if(!a)return!1;var b=a._valueTracker;if(!b)return!0;var c=b.getValue();var d=\"\";a&&(d=ac(a)?a.checked?\"true\":\"false\":a.value);a=d;return a!==c?(b.setValue(a),!0):!1}\nvar ec=ba.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,fc=\"function\"===typeof Symbol&&Symbol.for,gc=fc?Symbol.for(\"react.element\"):60103,hc=fc?Symbol.for(\"react.portal\"):60106,ic=fc?Symbol.for(\"react.fragment\"):60107,jc=fc?Symbol.for(\"react.strict_mode\"):60108,kc=fc?Symbol.for(\"react.profiler\"):60114,lc=fc?Symbol.for(\"react.provider\"):60109,mc=fc?Symbol.for(\"react.context\"):60110,pc=fc?Symbol.for(\"react.async_mode\"):60111,qc=fc?Symbol.for(\"react.forward_ref\"):60112,rc=fc?Symbol.for(\"react.timeout\"):\n60113,sc=\"function\"===typeof Symbol&&Symbol.iterator;function tc(a){if(null===a||\"undefined\"===typeof a)return null;a=sc&&a[sc]||a[\"@@iterator\"];return\"function\"===typeof a?a:null}\nfunction uc(a){var b=a.type;if(\"function\"===typeof b)return b.displayName||b.name;if(\"string\"===typeof b)return b;switch(b){case pc:return\"AsyncMode\";case mc:return\"Context.Consumer\";case ic:return\"ReactFragment\";case hc:return\"ReactPortal\";case kc:return\"Profiler(\"+a.pendingProps.id+\")\";case lc:return\"Context.Provider\";case jc:return\"StrictMode\";case rc:return\"Timeout\"}if(\"object\"===typeof b&&null!==b)switch(b.$$typeof){case qc:return a=b.render.displayName||b.render.name||\"\",\"\"!==a?\"ForwardRef(\"+\na+\")\":\"ForwardRef\"}return null}function vc(a){var b=\"\";do{a:switch(a.tag){case 0:case 1:case 2:case 5:var c=a._debugOwner,d=a._debugSource;var e=uc(a);var f=null;c&&(f=uc(c));c=d;e=\"\\n in \"+(e||\"Unknown\")+(c?\" (at \"+c.fileName.replace(/^.*[\\\\\\/]/,\"\")+\":\"+c.lineNumber+\")\":f?\" (created by \"+f+\")\":\"\");break a;default:e=\"\"}b+=e;a=a.return}while(a);return b}\nvar wc=/^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$/,xc=Object.prototype.hasOwnProperty,zc={},Ac={};\nfunction Bc(a){if(xc.call(Ac,a))return!0;if(xc.call(zc,a))return!1;if(wc.test(a))return Ac[a]=!0;zc[a]=!0;return!1}function Cc(a,b,c,d){if(null!==c&&0===c.type)return!1;switch(typeof b){case \"function\":case \"symbol\":return!0;case \"boolean\":if(d)return!1;if(null!==c)return!c.acceptsBooleans;a=a.toLowerCase().slice(0,5);return\"data-\"!==a&&\"aria-\"!==a;default:return!1}}\nfunction Dc(a,b,c,d){if(null===b||\"undefined\"===typeof b||Cc(a,b,c,d))return!0;if(d)return!1;if(null!==c)switch(c.type){case 3:return!b;case 4:return!1===b;case 5:return isNaN(b);case 6:return isNaN(b)||1>b}return!1}function I(a,b,c,d,e){this.acceptsBooleans=2===b||3===b||4===b;this.attributeName=d;this.attributeNamespace=e;this.mustUseProperty=c;this.propertyName=a;this.type=b}var J={};\n\"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style\".split(\" \").forEach(function(a){J[a]=new I(a,0,!1,a,null)});[[\"acceptCharset\",\"accept-charset\"],[\"className\",\"class\"],[\"htmlFor\",\"for\"],[\"httpEquiv\",\"http-equiv\"]].forEach(function(a){var b=a[0];J[b]=new I(b,1,!1,a[1],null)});[\"contentEditable\",\"draggable\",\"spellCheck\",\"value\"].forEach(function(a){J[a]=new I(a,2,!1,a.toLowerCase(),null)});\n[\"autoReverse\",\"externalResourcesRequired\",\"preserveAlpha\"].forEach(function(a){J[a]=new I(a,2,!1,a,null)});\"allowFullScreen async autoFocus autoPlay controls default defer disabled formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope\".split(\" \").forEach(function(a){J[a]=new I(a,3,!1,a.toLowerCase(),null)});[\"checked\",\"multiple\",\"muted\",\"selected\"].forEach(function(a){J[a]=new I(a,3,!0,a.toLowerCase(),null)});\n[\"capture\",\"download\"].forEach(function(a){J[a]=new I(a,4,!1,a.toLowerCase(),null)});[\"cols\",\"rows\",\"size\",\"span\"].forEach(function(a){J[a]=new I(a,6,!1,a.toLowerCase(),null)});[\"rowSpan\",\"start\"].forEach(function(a){J[a]=new I(a,5,!1,a.toLowerCase(),null)});var Ec=/[\\-:]([a-z])/g;function Fc(a){return a[1].toUpperCase()}\n\"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height\".split(\" \").forEach(function(a){var b=a.replace(Ec,\nFc);J[b]=new I(b,1,!1,a,null)});\"xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type\".split(\" \").forEach(function(a){var b=a.replace(Ec,Fc);J[b]=new I(b,1,!1,a,\"http://www.w3.org/1999/xlink\")});[\"xml:base\",\"xml:lang\",\"xml:space\"].forEach(function(a){var b=a.replace(Ec,Fc);J[b]=new I(b,1,!1,a,\"http://www.w3.org/XML/1998/namespace\")});J.tabIndex=new I(\"tabIndex\",1,!1,\"tabindex\",null);\nfunction Gc(a,b,c,d){var e=J.hasOwnProperty(b)?J[b]:null;var f=null!==e?0===e.type:d?!1:!(2<b.length)||\"o\"!==b[0]&&\"O\"!==b[0]||\"n\"!==b[1]&&\"N\"!==b[1]?!1:!0;f||(Dc(b,c,e,d)&&(c=null),d||null===e?Bc(b)&&(null===c?a.removeAttribute(b):a.setAttribute(b,\"\"+c)):e.mustUseProperty?a[e.propertyName]=null===c?3===e.type?!1:\"\":c:(b=e.attributeName,d=e.attributeNamespace,null===c?a.removeAttribute(b):(e=e.type,c=3===e||4===e&&!0===c?\"\":\"\"+c,d?a.setAttributeNS(d,b,c):a.setAttribute(b,c))))}\nfunction Hc(a,b){var c=b.checked;return p({},b,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=c?c:a._wrapperState.initialChecked})}function Ic(a,b){var c=null==b.defaultValue?\"\":b.defaultValue,d=null!=b.checked?b.checked:b.defaultChecked;c=Jc(null!=b.value?b.value:c);a._wrapperState={initialChecked:d,initialValue:c,controlled:\"checkbox\"===b.type||\"radio\"===b.type?null!=b.checked:null!=b.value}}function Kc(a,b){b=b.checked;null!=b&&Gc(a,\"checked\",b,!1)}\nfunction Lc(a,b){Kc(a,b);var c=Jc(b.value);if(null!=c)if(\"number\"===b.type){if(0===c&&\"\"===a.value||a.value!=c)a.value=\"\"+c}else a.value!==\"\"+c&&(a.value=\"\"+c);b.hasOwnProperty(\"value\")?Mc(a,b.type,c):b.hasOwnProperty(\"defaultValue\")&&Mc(a,b.type,Jc(b.defaultValue));null==b.checked&&null!=b.defaultChecked&&(a.defaultChecked=!!b.defaultChecked)}\nfunction Nc(a,b,c){if(b.hasOwnProperty(\"value\")||b.hasOwnProperty(\"defaultValue\")){b=\"\"+a._wrapperState.initialValue;var d=a.value;c||b===d||(a.value=b);a.defaultValue=b}c=a.name;\"\"!==c&&(a.name=\"\");a.defaultChecked=!a.defaultChecked;a.defaultChecked=!a.defaultChecked;\"\"!==c&&(a.name=c)}function Mc(a,b,c){if(\"number\"!==b||a.ownerDocument.activeElement!==a)null==c?a.defaultValue=\"\"+a._wrapperState.initialValue:a.defaultValue!==\"\"+c&&(a.defaultValue=\"\"+c)}\nfunction Jc(a){switch(typeof a){case \"boolean\":case \"number\":case \"object\":case \"string\":case \"undefined\":return a;default:return\"\"}}var Oc={change:{phasedRegistrationNames:{bubbled:\"onChange\",captured:\"onChangeCapture\"},dependencies:\"blur change click focus input keydown keyup selectionchange\".split(\" \")}};function Pc(a,b,c){a=H.getPooled(Oc.change,a,b,c);a.type=\"change\";Ob(c);Ya(a);return a}var Qc=null,Rc=null;function Sc(a){Ia(a,!1)}function Tc(a){var b=Oa(a);if(dc(b))return a}\nfunction Uc(a,b){if(\"change\"===a)return b}var Vc=!1;m.canUseDOM&&(Vc=$b(\"input\")&&(!document.documentMode||9<document.documentMode));function Wc(){Qc&&(Qc.detachEvent(\"onpropertychange\",Xc),Rc=Qc=null)}function Xc(a){\"value\"===a.propertyName&&Tc(Rc)&&(a=Pc(Rc,a,Zb(a)),Wb(Sc,a))}function Yc(a,b,c){\"focus\"===a?(Wc(),Qc=b,Rc=c,Qc.attachEvent(\"onpropertychange\",Xc)):\"blur\"===a&&Wc()}function Zc(a){if(\"selectionchange\"===a||\"keyup\"===a||\"keydown\"===a)return Tc(Rc)}\nfunction $c(a,b){if(\"click\"===a)return Tc(b)}function ad(a,b){if(\"input\"===a||\"change\"===a)return Tc(b)}\nvar bd={eventTypes:Oc,_isInputEventSupported:Vc,extractEvents:function(a,b,c,d){var e=b?Oa(b):window,f=void 0,g=void 0,h=e.nodeName&&e.nodeName.toLowerCase();\"select\"===h||\"input\"===h&&\"file\"===e.type?f=Uc:Yb(e)?Vc?f=ad:(f=Zc,g=Yc):(h=e.nodeName)&&\"input\"===h.toLowerCase()&&(\"checkbox\"===e.type||\"radio\"===e.type)&&(f=$c);if(f&&(f=f(a,b)))return Pc(f,c,d);g&&g(a,e,b);\"blur\"===a&&(a=e._wrapperState)&&a.controlled&&\"number\"===e.type&&Mc(e,\"number\",e.value)}},cd=H.extend({view:null,detail:null}),dd={Alt:\"altKey\",\nControl:\"ctrlKey\",Meta:\"metaKey\",Shift:\"shiftKey\"};function ed(a){var b=this.nativeEvent;return b.getModifierState?b.getModifierState(a):(a=dd[a])?!!b[a]:!1}function fd(){return ed}\nvar gd=cd.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:fd,button:null,buttons:null,relatedTarget:function(a){return a.relatedTarget||(a.fromElement===a.srcElement?a.toElement:a.fromElement)}}),hd=gd.extend({pointerId:null,width:null,height:null,pressure:null,tiltX:null,tiltY:null,pointerType:null,isPrimary:null}),id={mouseEnter:{registrationName:\"onMouseEnter\",dependencies:[\"mouseout\",\"mouseover\"]},\nmouseLeave:{registrationName:\"onMouseLeave\",dependencies:[\"mouseout\",\"mouseover\"]},pointerEnter:{registrationName:\"onPointerEnter\",dependencies:[\"pointerout\",\"pointerover\"]},pointerLeave:{registrationName:\"onPointerLeave\",dependencies:[\"pointerout\",\"pointerover\"]}},jd={eventTypes:id,extractEvents:function(a,b,c,d){var e=\"mouseover\"===a||\"pointerover\"===a,f=\"mouseout\"===a||\"pointerout\"===a;if(e&&(c.relatedTarget||c.fromElement)||!f&&!e)return null;e=d.window===d?d:(e=d.ownerDocument)?e.defaultView||\ne.parentWindow:window;f?(f=b,b=(b=c.relatedTarget||c.toElement)?Na(b):null):f=null;if(f===b)return null;var g=void 0,h=void 0,k=void 0,n=void 0;if(\"mouseout\"===a||\"mouseover\"===a)g=gd,h=id.mouseLeave,k=id.mouseEnter,n=\"mouse\";else if(\"pointerout\"===a||\"pointerover\"===a)g=hd,h=id.pointerLeave,k=id.pointerEnter,n=\"pointer\";a=null==f?e:Oa(f);e=null==b?e:Oa(b);h=g.getPooled(h,f,c,d);h.type=n+\"leave\";h.target=a;h.relatedTarget=e;c=g.getPooled(k,b,c,d);c.type=n+\"enter\";c.target=e;c.relatedTarget=a;Za(h,\nc,f,b);return[h,c]}};function kd(a){var b=a;if(a.alternate)for(;b.return;)b=b.return;else{if(0!==(b.effectTag&2))return 1;for(;b.return;)if(b=b.return,0!==(b.effectTag&2))return 1}return 3===b.tag?2:3}function ld(a){2!==kd(a)?A(\"188\"):void 0}\nfunction md(a){var b=a.alternate;if(!b)return b=kd(a),3===b?A(\"188\"):void 0,1===b?null:a;for(var c=a,d=b;;){var e=c.return,f=e?e.alternate:null;if(!e||!f)break;if(e.child===f.child){for(var g=e.child;g;){if(g===c)return ld(e),a;if(g===d)return ld(e),b;g=g.sibling}A(\"188\")}if(c.return!==d.return)c=e,d=f;else{g=!1;for(var h=e.child;h;){if(h===c){g=!0;c=e;d=f;break}if(h===d){g=!0;d=e;c=f;break}h=h.sibling}if(!g){for(h=f.child;h;){if(h===c){g=!0;c=f;d=e;break}if(h===d){g=!0;d=f;c=e;break}h=h.sibling}g?\nvoid 0:A(\"189\")}}c.alternate!==d?A(\"190\"):void 0}3!==c.tag?A(\"188\"):void 0;return c.stateNode.current===c?a:b}function nd(a){a=md(a);if(!a)return null;for(var b=a;;){if(5===b.tag||6===b.tag)return b;if(b.child)b.child.return=b,b=b.child;else{if(b===a)break;for(;!b.sibling;){if(!b.return||b.return===a)return null;b=b.return}b.sibling.return=b.return;b=b.sibling}}return null}\nfunction od(a){a=md(a);if(!a)return null;for(var b=a;;){if(5===b.tag||6===b.tag)return b;if(b.child&&4!==b.tag)b.child.return=b,b=b.child;else{if(b===a)break;for(;!b.sibling;){if(!b.return||b.return===a)return null;b=b.return}b.sibling.return=b.return;b=b.sibling}}return null}var pd=H.extend({animationName:null,elapsedTime:null,pseudoElement:null}),qd=H.extend({clipboardData:function(a){return\"clipboardData\"in a?a.clipboardData:window.clipboardData}}),rd=cd.extend({relatedTarget:null});\nfunction sd(a){var b=a.keyCode;\"charCode\"in a?(a=a.charCode,0===a&&13===b&&(a=13)):a=b;10===a&&(a=13);return 32<=a||13===a?a:0}\nvar td={Esc:\"Escape\",Spacebar:\" \",Left:\"ArrowLeft\",Up:\"ArrowUp\",Right:\"ArrowRight\",Down:\"ArrowDown\",Del:\"Delete\",Win:\"OS\",Menu:\"ContextMenu\",Apps:\"ContextMenu\",Scroll:\"ScrollLock\",MozPrintableKey:\"Unidentified\"},ud={8:\"Backspace\",9:\"Tab\",12:\"Clear\",13:\"Enter\",16:\"Shift\",17:\"Control\",18:\"Alt\",19:\"Pause\",20:\"CapsLock\",27:\"Escape\",32:\" \",33:\"PageUp\",34:\"PageDown\",35:\"End\",36:\"Home\",37:\"ArrowLeft\",38:\"ArrowUp\",39:\"ArrowRight\",40:\"ArrowDown\",45:\"Insert\",46:\"Delete\",112:\"F1\",113:\"F2\",114:\"F3\",115:\"F4\",\n116:\"F5\",117:\"F6\",118:\"F7\",119:\"F8\",120:\"F9\",121:\"F10\",122:\"F11\",123:\"F12\",144:\"NumLock\",145:\"ScrollLock\",224:\"Meta\"},vd=cd.extend({key:function(a){if(a.key){var b=td[a.key]||a.key;if(\"Unidentified\"!==b)return b}return\"keypress\"===a.type?(a=sd(a),13===a?\"Enter\":String.fromCharCode(a)):\"keydown\"===a.type||\"keyup\"===a.type?ud[a.keyCode]||\"Unidentified\":\"\"},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:fd,charCode:function(a){return\"keypress\"===\na.type?sd(a):0},keyCode:function(a){return\"keydown\"===a.type||\"keyup\"===a.type?a.keyCode:0},which:function(a){return\"keypress\"===a.type?sd(a):\"keydown\"===a.type||\"keyup\"===a.type?a.keyCode:0}}),wd=gd.extend({dataTransfer:null}),xd=cd.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:fd}),yd=H.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),zd=gd.extend({deltaX:function(a){return\"deltaX\"in a?a.deltaX:\"wheelDeltaX\"in\na?-a.wheelDeltaX:0},deltaY:function(a){return\"deltaY\"in a?a.deltaY:\"wheelDeltaY\"in a?-a.wheelDeltaY:\"wheelDelta\"in a?-a.wheelDelta:0},deltaZ:null,deltaMode:null}),Ad=[[\"abort\",\"abort\"],[fb,\"animationEnd\"],[gb,\"animationIteration\"],[hb,\"animationStart\"],[\"canplay\",\"canPlay\"],[\"canplaythrough\",\"canPlayThrough\"],[\"drag\",\"drag\"],[\"dragenter\",\"dragEnter\"],[\"dragexit\",\"dragExit\"],[\"dragleave\",\"dragLeave\"],[\"dragover\",\"dragOver\"],[\"durationchange\",\"durationChange\"],[\"emptied\",\"emptied\"],[\"encrypted\",\"encrypted\"],\n[\"ended\",\"ended\"],[\"error\",\"error\"],[\"gotpointercapture\",\"gotPointerCapture\"],[\"load\",\"load\"],[\"loadeddata\",\"loadedData\"],[\"loadedmetadata\",\"loadedMetadata\"],[\"loadstart\",\"loadStart\"],[\"lostpointercapture\",\"lostPointerCapture\"],[\"mousemove\",\"mouseMove\"],[\"mouseout\",\"mouseOut\"],[\"mouseover\",\"mouseOver\"],[\"playing\",\"playing\"],[\"pointermove\",\"pointerMove\"],[\"pointerout\",\"pointerOut\"],[\"pointerover\",\"pointerOver\"],[\"progress\",\"progress\"],[\"scroll\",\"scroll\"],[\"seeking\",\"seeking\"],[\"stalled\",\"stalled\"],\n[\"suspend\",\"suspend\"],[\"timeupdate\",\"timeUpdate\"],[\"toggle\",\"toggle\"],[\"touchmove\",\"touchMove\"],[ib,\"transitionEnd\"],[\"waiting\",\"waiting\"],[\"wheel\",\"wheel\"]],Bd={},Cd={};function Dd(a,b){var c=a[0];a=a[1];var d=\"on\"+(a[0].toUpperCase()+a.slice(1));b={phasedRegistrationNames:{bubbled:d,captured:d+\"Capture\"},dependencies:[c],isInteractive:b};Bd[a]=b;Cd[c]=b}\n[[\"blur\",\"blur\"],[\"cancel\",\"cancel\"],[\"click\",\"click\"],[\"close\",\"close\"],[\"contextmenu\",\"contextMenu\"],[\"copy\",\"copy\"],[\"cut\",\"cut\"],[\"dblclick\",\"doubleClick\"],[\"dragend\",\"dragEnd\"],[\"dragstart\",\"dragStart\"],[\"drop\",\"drop\"],[\"focus\",\"focus\"],[\"input\",\"input\"],[\"invalid\",\"invalid\"],[\"keydown\",\"keyDown\"],[\"keypress\",\"keyPress\"],[\"keyup\",\"keyUp\"],[\"mousedown\",\"mouseDown\"],[\"mouseup\",\"mouseUp\"],[\"paste\",\"paste\"],[\"pause\",\"pause\"],[\"play\",\"play\"],[\"pointercancel\",\"pointerCancel\"],[\"pointerdown\",\"pointerDown\"],\n[\"pointerup\",\"pointerUp\"],[\"ratechange\",\"rateChange\"],[\"reset\",\"reset\"],[\"seeked\",\"seeked\"],[\"submit\",\"submit\"],[\"touchcancel\",\"touchCancel\"],[\"touchend\",\"touchEnd\"],[\"touchstart\",\"touchStart\"],[\"volumechange\",\"volumeChange\"]].forEach(function(a){Dd(a,!0)});Ad.forEach(function(a){Dd(a,!1)});\nvar Ed={eventTypes:Bd,isInteractiveTopLevelEventType:function(a){a=Cd[a];return void 0!==a&&!0===a.isInteractive},extractEvents:function(a,b,c,d){var e=Cd[a];if(!e)return null;switch(a){case \"keypress\":if(0===sd(c))return null;case \"keydown\":case \"keyup\":a=vd;break;case \"blur\":case \"focus\":a=rd;break;case \"click\":if(2===c.button)return null;case \"dblclick\":case \"mousedown\":case \"mousemove\":case \"mouseup\":case \"mouseout\":case \"mouseover\":case \"contextmenu\":a=gd;break;case \"drag\":case \"dragend\":case \"dragenter\":case \"dragexit\":case \"dragleave\":case \"dragover\":case \"dragstart\":case \"drop\":a=\nwd;break;case \"touchcancel\":case \"touchend\":case \"touchmove\":case \"touchstart\":a=xd;break;case fb:case gb:case hb:a=pd;break;case ib:a=yd;break;case \"scroll\":a=cd;break;case \"wheel\":a=zd;break;case \"copy\":case \"cut\":case \"paste\":a=qd;break;case \"gotpointercapture\":case \"lostpointercapture\":case \"pointercancel\":case \"pointerdown\":case \"pointermove\":case \"pointerout\":case \"pointerover\":case \"pointerup\":a=hd;break;default:a=H}b=a.getPooled(e,b,c,d);Ya(b);return b}},Fd=Ed.isInteractiveTopLevelEventType,\nGd=[];function Hd(a){var b=a.targetInst;do{if(!b){a.ancestors.push(b);break}var c;for(c=b;c.return;)c=c.return;c=3!==c.tag?null:c.stateNode.containerInfo;if(!c)break;a.ancestors.push(b);b=Na(c)}while(b);for(c=0;c<a.ancestors.length;c++)b=a.ancestors[c],Ja(a.topLevelType,b,a.nativeEvent,Zb(a.nativeEvent))}var Id=!0;function Kd(a){Id=!!a}function K(a,b){if(!b)return null;var c=(Fd(a)?Ld:Md).bind(null,a);b.addEventListener(a,c,!1)}\nfunction Nd(a,b){if(!b)return null;var c=(Fd(a)?Ld:Md).bind(null,a);b.addEventListener(a,c,!0)}function Ld(a,b){Tb(Md,a,b)}function Md(a,b){if(Id){var c=Zb(b);c=Na(c);null===c||\"number\"!==typeof c.tag||2===kd(c)||(c=null);if(Gd.length){var d=Gd.pop();d.topLevelType=a;d.nativeEvent=b;d.targetInst=c;a=d}else a={topLevelType:a,nativeEvent:b,targetInst:c,ancestors:[]};try{Wb(Hd,a)}finally{a.topLevelType=null,a.nativeEvent=null,a.targetInst=null,a.ancestors.length=0,10>Gd.length&&Gd.push(a)}}}\nvar Od={get _enabled(){return Id},setEnabled:Kd,isEnabled:function(){return Id},trapBubbledEvent:K,trapCapturedEvent:Nd,dispatchEvent:Md},Pd={},Qd=0,Rd=\"_reactListenersID\"+(\"\"+Math.random()).slice(2);function Sd(a){Object.prototype.hasOwnProperty.call(a,Rd)||(a[Rd]=Qd++,Pd[a[Rd]]={});return Pd[a[Rd]]}function Td(a){for(;a&&a.firstChild;)a=a.firstChild;return a}\nfunction Ud(a,b){var c=Td(a);a=0;for(var d;c;){if(3===c.nodeType){d=a+c.textContent.length;if(a<=b&&d>=b)return{node:c,offset:b-a};a=d}a:{for(;c;){if(c.nextSibling){c=c.nextSibling;break a}c=c.parentNode}c=void 0}c=Td(c)}}function Vd(a){var b=a&&a.nodeName&&a.nodeName.toLowerCase();return b&&(\"input\"===b&&(\"text\"===a.type||\"search\"===a.type||\"tel\"===a.type||\"url\"===a.type||\"password\"===a.type)||\"textarea\"===b||\"true\"===a.contentEditable)}\nvar Wd=m.canUseDOM&&\"documentMode\"in document&&11>=document.documentMode,Xd={select:{phasedRegistrationNames:{bubbled:\"onSelect\",captured:\"onSelectCapture\"},dependencies:\"blur contextmenu focus keydown keyup mousedown mouseup selectionchange\".split(\" \")}},Yd=null,Zd=null,$d=null,ae=!1;\nfunction be(a,b){if(ae||null==Yd||Yd!==da())return null;var c=Yd;\"selectionStart\"in c&&Vd(c)?c={start:c.selectionStart,end:c.selectionEnd}:window.getSelection?(c=window.getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}):c=void 0;return $d&&ea($d,c)?null:($d=c,a=H.getPooled(Xd.select,Zd,a,b),a.type=\"select\",a.target=Yd,Ya(a),a)}\nvar ce={eventTypes:Xd,extractEvents:function(a,b,c,d){var e=d.window===d?d.document:9===d.nodeType?d:d.ownerDocument,f;if(!(f=!e)){a:{e=Sd(e);f=sa.onSelect;for(var g=0;g<f.length;g++){var h=f[g];if(!e.hasOwnProperty(h)||!e[h]){e=!1;break a}}e=!0}f=!e}if(f)return null;e=b?Oa(b):window;switch(a){case \"focus\":if(Yb(e)||\"true\"===e.contentEditable)Yd=e,Zd=b,$d=null;break;case \"blur\":$d=Zd=Yd=null;break;case \"mousedown\":ae=!0;break;case \"contextmenu\":case \"mouseup\":return ae=!1,be(c,d);case \"selectionchange\":if(Wd)break;\ncase \"keydown\":case \"keyup\":return be(c,d)}return null}};Ga.injectEventPluginOrder(\"ResponderEventPlugin SimpleEventPlugin TapEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin\".split(\" \"));wa=Qa.getFiberCurrentPropsFromNode;xa=Qa.getInstanceFromNode;ya=Qa.getNodeFromInstance;Ga.injectEventPluginsByName({SimpleEventPlugin:Ed,EnterLeaveEventPlugin:jd,ChangeEventPlugin:bd,SelectEventPlugin:ce,BeforeInputEventPlugin:Ib});\nvar de=\"function\"===typeof requestAnimationFrame?requestAnimationFrame:void 0,ee=Date,fe=setTimeout,ge=clearTimeout,he=void 0;if(\"object\"===typeof performance&&\"function\"===typeof performance.now){var ie=performance;he=function(){return ie.now()}}else he=function(){return ee.now()};var je=void 0,ke=void 0;\nif(m.canUseDOM){var le=\"function\"===typeof de?de:function(){A(\"276\")},L=null,me=null,ne=-1,oe=!1,pe=!1,qe=0,re=33,se=33,te={didTimeout:!1,timeRemaining:function(){var a=qe-he();return 0<a?a:0}},ve=function(a,b){var c=a.scheduledCallback,d=!1;try{c(b),d=!0}finally{ke(a),d||(oe=!0,window.postMessage(ue,\"*\"))}},ue=\"__reactIdleCallback$\"+Math.random().toString(36).slice(2);window.addEventListener(\"message\",function(a){if(a.source===window&&a.data===ue&&(oe=!1,null!==L)){if(null!==L){var b=he();if(!(-1===\nne||ne>b)){a=-1;for(var c=[],d=L;null!==d;){var e=d.timeoutTime;-1!==e&&e<=b?c.push(d):-1!==e&&(-1===a||e<a)&&(a=e);d=d.next}if(0<c.length)for(te.didTimeout=!0,b=0,d=c.length;b<d;b++)ve(c[b],te);ne=a}}for(a=he();0<qe-a&&null!==L;)a=L,te.didTimeout=!1,ve(a,te),a=he();null===L||pe||(pe=!0,le(we))}},!1);var we=function(a){pe=!1;var b=a-qe+se;b<se&&re<se?(8>b&&(b=8),se=b<re?re:b):re=b;qe=a+se;oe||(oe=!0,window.postMessage(ue,\"*\"))};je=function(a,b){var c=-1;null!=b&&\"number\"===typeof b.timeout&&(c=he()+\nb.timeout);if(-1===ne||-1!==c&&c<ne)ne=c;a={scheduledCallback:a,timeoutTime:c,prev:null,next:null};null===L?L=a:(b=a.prev=me,null!==b&&(b.next=a));me=a;pe||(pe=!0,le(we));return a};ke=function(a){if(null!==a.prev||L===a){var b=a.next,c=a.prev;a.next=null;a.prev=null;null!==b?null!==c?(c.next=b,b.prev=c):(b.prev=null,L=b):null!==c?(c.next=null,me=c):me=L=null}}}else{var xe=new Map;je=function(a){var b={scheduledCallback:a,timeoutTime:0,next:null,prev:null},c=fe(function(){a({timeRemaining:function(){return Infinity},\ndidTimeout:!1})});xe.set(a,c);return b};ke=function(a){var b=xe.get(a.scheduledCallback);xe.delete(a);ge(b)}}function ye(a){var b=\"\";ba.Children.forEach(a,function(a){null==a||\"string\"!==typeof a&&\"number\"!==typeof a||(b+=a)});return b}function ze(a,b){a=p({children:void 0},b);if(b=ye(b.children))a.children=b;return a}\nfunction Ae(a,b,c,d){a=a.options;if(b){b={};for(var e=0;e<c.length;e++)b[\"$\"+c[e]]=!0;for(c=0;c<a.length;c++)e=b.hasOwnProperty(\"$\"+a[c].value),a[c].selected!==e&&(a[c].selected=e),e&&d&&(a[c].defaultSelected=!0)}else{c=\"\"+c;b=null;for(e=0;e<a.length;e++){if(a[e].value===c){a[e].selected=!0;d&&(a[e].defaultSelected=!0);return}null!==b||a[e].disabled||(b=a[e])}null!==b&&(b.selected=!0)}}\nfunction Be(a,b){var c=b.value;a._wrapperState={initialValue:null!=c?c:b.defaultValue,wasMultiple:!!b.multiple}}function Ce(a,b){null!=b.dangerouslySetInnerHTML?A(\"91\"):void 0;return p({},b,{value:void 0,defaultValue:void 0,children:\"\"+a._wrapperState.initialValue})}function De(a,b){var c=b.value;null==c&&(c=b.defaultValue,b=b.children,null!=b&&(null!=c?A(\"92\"):void 0,Array.isArray(b)&&(1>=b.length?void 0:A(\"93\"),b=b[0]),c=\"\"+b),null==c&&(c=\"\"));a._wrapperState={initialValue:\"\"+c}}\nfunction Ee(a,b){var c=b.value;null!=c&&(c=\"\"+c,c!==a.value&&(a.value=c),null==b.defaultValue&&(a.defaultValue=c));null!=b.defaultValue&&(a.defaultValue=b.defaultValue)}function Fe(a){var b=a.textContent;b===a._wrapperState.initialValue&&(a.value=b)}var Ge={html:\"http://www.w3.org/1999/xhtml\",mathml:\"http://www.w3.org/1998/Math/MathML\",svg:\"http://www.w3.org/2000/svg\"};\nfunction He(a){switch(a){case \"svg\":return\"http://www.w3.org/2000/svg\";case \"math\":return\"http://www.w3.org/1998/Math/MathML\";default:return\"http://www.w3.org/1999/xhtml\"}}function Ie(a,b){return null==a||\"http://www.w3.org/1999/xhtml\"===a?He(b):\"http://www.w3.org/2000/svg\"===a&&\"foreignObject\"===b?\"http://www.w3.org/1999/xhtml\":a}\nvar Je=void 0,Ke=function(a){return\"undefined\"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(b,c,d,e){MSApp.execUnsafeLocalFunction(function(){return a(b,c,d,e)})}:a}(function(a,b){if(a.namespaceURI!==Ge.svg||\"innerHTML\"in a)a.innerHTML=b;else{Je=Je||document.createElement(\"div\");Je.innerHTML=\"<svg>\"+b+\"</svg>\";for(b=Je.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;b.firstChild;)a.appendChild(b.firstChild)}});\nfunction Le(a,b){if(b){var c=a.firstChild;if(c&&c===a.lastChild&&3===c.nodeType){c.nodeValue=b;return}}a.textContent=b}\nvar Me={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,\nstopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Ne=[\"Webkit\",\"ms\",\"Moz\",\"O\"];Object.keys(Me).forEach(function(a){Ne.forEach(function(b){b=b+a.charAt(0).toUpperCase()+a.substring(1);Me[b]=Me[a]})});\nfunction Oe(a,b){a=a.style;for(var c in b)if(b.hasOwnProperty(c)){var d=0===c.indexOf(\"--\");var e=c;var f=b[c];e=null==f||\"boolean\"===typeof f||\"\"===f?\"\":d||\"number\"!==typeof f||0===f||Me.hasOwnProperty(e)&&Me[e]?(\"\"+f).trim():f+\"px\";\"float\"===c&&(c=\"cssFloat\");d?a.setProperty(c,e):a[c]=e}}var Pe=p({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});\nfunction Qe(a,b,c){b&&(Pe[a]&&(null!=b.children||null!=b.dangerouslySetInnerHTML?A(\"137\",a,c()):void 0),null!=b.dangerouslySetInnerHTML&&(null!=b.children?A(\"60\"):void 0,\"object\"===typeof b.dangerouslySetInnerHTML&&\"__html\"in b.dangerouslySetInnerHTML?void 0:A(\"61\")),null!=b.style&&\"object\"!==typeof b.style?A(\"62\",c()):void 0)}\nfunction Re(a,b){if(-1===a.indexOf(\"-\"))return\"string\"===typeof b.is;switch(a){case \"annotation-xml\":case \"color-profile\":case \"font-face\":case \"font-face-src\":case \"font-face-uri\":case \"font-face-format\":case \"font-face-name\":case \"missing-glyph\":return!1;default:return!0}}var Se=v.thatReturns(\"\");\nfunction Te(a,b){a=9===a.nodeType||11===a.nodeType?a:a.ownerDocument;var c=Sd(a);b=sa[b];for(var d=0;d<b.length;d++){var e=b[d];if(!c.hasOwnProperty(e)||!c[e]){switch(e){case \"scroll\":Nd(\"scroll\",a);break;case \"focus\":case \"blur\":Nd(\"focus\",a);Nd(\"blur\",a);c.blur=!0;c.focus=!0;break;case \"cancel\":case \"close\":$b(e,!0)&&Nd(e,a);break;case \"invalid\":case \"submit\":case \"reset\":break;default:-1===jb.indexOf(e)&&K(e,a)}c[e]=!0}}}\nfunction Ue(a,b,c,d){c=9===c.nodeType?c:c.ownerDocument;d===Ge.html&&(d=He(a));d===Ge.html?\"script\"===a?(a=c.createElement(\"div\"),a.innerHTML=\"<script>\\x3c/script>\",a=a.removeChild(a.firstChild)):a=\"string\"===typeof b.is?c.createElement(a,{is:b.is}):c.createElement(a):a=c.createElementNS(d,a);return a}function Ve(a,b){return(9===b.nodeType?b:b.ownerDocument).createTextNode(a)}\nfunction We(a,b,c,d){var e=Re(b,c);switch(b){case \"iframe\":case \"object\":K(\"load\",a);var f=c;break;case \"video\":case \"audio\":for(f=0;f<jb.length;f++)K(jb[f],a);f=c;break;case \"source\":K(\"error\",a);f=c;break;case \"img\":case \"image\":case \"link\":K(\"error\",a);K(\"load\",a);f=c;break;case \"form\":K(\"reset\",a);K(\"submit\",a);f=c;break;case \"details\":K(\"toggle\",a);f=c;break;case \"input\":Ic(a,c);f=Hc(a,c);K(\"invalid\",a);Te(d,\"onChange\");break;case \"option\":f=ze(a,c);break;case \"select\":Be(a,c);f=p({},c,{value:void 0});\nK(\"invalid\",a);Te(d,\"onChange\");break;case \"textarea\":De(a,c);f=Ce(a,c);K(\"invalid\",a);Te(d,\"onChange\");break;default:f=c}Qe(b,f,Se);var g=f,h;for(h in g)if(g.hasOwnProperty(h)){var k=g[h];\"style\"===h?Oe(a,k,Se):\"dangerouslySetInnerHTML\"===h?(k=k?k.__html:void 0,null!=k&&Ke(a,k)):\"children\"===h?\"string\"===typeof k?(\"textarea\"!==b||\"\"!==k)&&Le(a,k):\"number\"===typeof k&&Le(a,\"\"+k):\"suppressContentEditableWarning\"!==h&&\"suppressHydrationWarning\"!==h&&\"autoFocus\"!==h&&(ra.hasOwnProperty(h)?null!=k&&Te(d,\nh):null!=k&&Gc(a,h,k,e))}switch(b){case \"input\":cc(a);Nc(a,c,!1);break;case \"textarea\":cc(a);Fe(a,c);break;case \"option\":null!=c.value&&a.setAttribute(\"value\",c.value);break;case \"select\":a.multiple=!!c.multiple;b=c.value;null!=b?Ae(a,!!c.multiple,b,!1):null!=c.defaultValue&&Ae(a,!!c.multiple,c.defaultValue,!0);break;default:\"function\"===typeof f.onClick&&(a.onclick=v)}}\nfunction Xe(a,b,c,d,e){var f=null;switch(b){case \"input\":c=Hc(a,c);d=Hc(a,d);f=[];break;case \"option\":c=ze(a,c);d=ze(a,d);f=[];break;case \"select\":c=p({},c,{value:void 0});d=p({},d,{value:void 0});f=[];break;case \"textarea\":c=Ce(a,c);d=Ce(a,d);f=[];break;default:\"function\"!==typeof c.onClick&&\"function\"===typeof d.onClick&&(a.onclick=v)}Qe(b,d,Se);b=a=void 0;var g=null;for(a in c)if(!d.hasOwnProperty(a)&&c.hasOwnProperty(a)&&null!=c[a])if(\"style\"===a){var h=c[a];for(b in h)h.hasOwnProperty(b)&&(g||\n(g={}),g[b]=\"\")}else\"dangerouslySetInnerHTML\"!==a&&\"children\"!==a&&\"suppressContentEditableWarning\"!==a&&\"suppressHydrationWarning\"!==a&&\"autoFocus\"!==a&&(ra.hasOwnProperty(a)?f||(f=[]):(f=f||[]).push(a,null));for(a in d){var k=d[a];h=null!=c?c[a]:void 0;if(d.hasOwnProperty(a)&&k!==h&&(null!=k||null!=h))if(\"style\"===a)if(h){for(b in h)!h.hasOwnProperty(b)||k&&k.hasOwnProperty(b)||(g||(g={}),g[b]=\"\");for(b in k)k.hasOwnProperty(b)&&h[b]!==k[b]&&(g||(g={}),g[b]=k[b])}else g||(f||(f=[]),f.push(a,g)),\ng=k;else\"dangerouslySetInnerHTML\"===a?(k=k?k.__html:void 0,h=h?h.__html:void 0,null!=k&&h!==k&&(f=f||[]).push(a,\"\"+k)):\"children\"===a?h===k||\"string\"!==typeof k&&\"number\"!==typeof k||(f=f||[]).push(a,\"\"+k):\"suppressContentEditableWarning\"!==a&&\"suppressHydrationWarning\"!==a&&(ra.hasOwnProperty(a)?(null!=k&&Te(e,a),f||h===k||(f=[])):(f=f||[]).push(a,k))}g&&(f=f||[]).push(\"style\",g);return f}\nfunction Ye(a,b,c,d,e){\"input\"===c&&\"radio\"===e.type&&null!=e.name&&Kc(a,e);Re(c,d);d=Re(c,e);for(var f=0;f<b.length;f+=2){var g=b[f],h=b[f+1];\"style\"===g?Oe(a,h,Se):\"dangerouslySetInnerHTML\"===g?Ke(a,h):\"children\"===g?Le(a,h):Gc(a,g,h,d)}switch(c){case \"input\":Lc(a,e);break;case \"textarea\":Ee(a,e);break;case \"select\":a._wrapperState.initialValue=void 0,b=a._wrapperState.wasMultiple,a._wrapperState.wasMultiple=!!e.multiple,c=e.value,null!=c?Ae(a,!!e.multiple,c,!1):b!==!!e.multiple&&(null!=e.defaultValue?\nAe(a,!!e.multiple,e.defaultValue,!0):Ae(a,!!e.multiple,e.multiple?[]:\"\",!1))}}\nfunction Ze(a,b,c,d,e){switch(b){case \"iframe\":case \"object\":K(\"load\",a);break;case \"video\":case \"audio\":for(d=0;d<jb.length;d++)K(jb[d],a);break;case \"source\":K(\"error\",a);break;case \"img\":case \"image\":case \"link\":K(\"error\",a);K(\"load\",a);break;case \"form\":K(\"reset\",a);K(\"submit\",a);break;case \"details\":K(\"toggle\",a);break;case \"input\":Ic(a,c);K(\"invalid\",a);Te(e,\"onChange\");break;case \"select\":Be(a,c);K(\"invalid\",a);Te(e,\"onChange\");break;case \"textarea\":De(a,c),K(\"invalid\",a),Te(e,\"onChange\")}Qe(b,\nc,Se);d=null;for(var f in c)if(c.hasOwnProperty(f)){var g=c[f];\"children\"===f?\"string\"===typeof g?a.textContent!==g&&(d=[\"children\",g]):\"number\"===typeof g&&a.textContent!==\"\"+g&&(d=[\"children\",\"\"+g]):ra.hasOwnProperty(f)&&null!=g&&Te(e,f)}switch(b){case \"input\":cc(a);Nc(a,c,!0);break;case \"textarea\":cc(a);Fe(a,c);break;case \"select\":case \"option\":break;default:\"function\"===typeof c.onClick&&(a.onclick=v)}return d}function $e(a,b){return a.nodeValue!==b}\nvar af={createElement:Ue,createTextNode:Ve,setInitialProperties:We,diffProperties:Xe,updateProperties:Ye,diffHydratedProperties:Ze,diffHydratedText:$e,warnForUnmatchedText:function(){},warnForDeletedHydratableElement:function(){},warnForDeletedHydratableText:function(){},warnForInsertedHydratedElement:function(){},warnForInsertedHydratedText:function(){},restoreControlledState:function(a,b,c){switch(b){case \"input\":Lc(a,c);b=c.name;if(\"radio\"===c.type&&null!=b){for(c=a;c.parentNode;)c=c.parentNode;\nc=c.querySelectorAll(\"input[name=\"+JSON.stringify(\"\"+b)+'][type=\"radio\"]');for(b=0;b<c.length;b++){var d=c[b];if(d!==a&&d.form===a.form){var e=Pa(d);e?void 0:A(\"90\");dc(d);Lc(d,e)}}}break;case \"textarea\":Ee(a,c);break;case \"select\":b=c.value,null!=b&&Ae(a,!!c.multiple,b,!1)}}},bf=null,cf=null;function df(a,b){switch(a){case \"button\":case \"input\":case \"select\":case \"textarea\":return!!b.autoFocus}return!1}\nfunction ef(a,b){return\"textarea\"===a||\"string\"===typeof b.children||\"number\"===typeof b.children||\"object\"===typeof b.dangerouslySetInnerHTML&&null!==b.dangerouslySetInnerHTML&&\"string\"===typeof b.dangerouslySetInnerHTML.__html}var ff=he,gf=je,hf=ke;function jf(a){for(a=a.nextSibling;a&&1!==a.nodeType&&3!==a.nodeType;)a=a.nextSibling;return a}function kf(a){for(a=a.firstChild;a&&1!==a.nodeType&&3!==a.nodeType;)a=a.nextSibling;return a}new Set;var lf=[],mf=-1;function nf(a){return{current:a}}\nfunction M(a){0>mf||(a.current=lf[mf],lf[mf]=null,mf--)}function N(a,b){mf++;lf[mf]=a.current;a.current=b}var of=nf(ha),O=nf(!1),pf=ha;function qf(a){return rf(a)?pf:of.current}\nfunction sf(a,b){var c=a.type.contextTypes;if(!c)return ha;var d=a.stateNode;if(d&&d.__reactInternalMemoizedUnmaskedChildContext===b)return d.__reactInternalMemoizedMaskedChildContext;var e={},f;for(f in c)e[f]=b[f];d&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=b,a.__reactInternalMemoizedMaskedChildContext=e);return e}function rf(a){return 2===a.tag&&null!=a.type.childContextTypes}function tf(a){rf(a)&&(M(O,a),M(of,a))}function uf(a){M(O,a);M(of,a)}\nfunction vf(a,b,c){of.current!==ha?A(\"168\"):void 0;N(of,b,a);N(O,c,a)}function wf(a,b){var c=a.stateNode,d=a.type.childContextTypes;if(\"function\"!==typeof c.getChildContext)return b;c=c.getChildContext();for(var e in c)e in d?void 0:A(\"108\",uc(a)||\"Unknown\",e);return p({},b,c)}function xf(a){if(!rf(a))return!1;var b=a.stateNode;b=b&&b.__reactInternalMemoizedMergedChildContext||ha;pf=of.current;N(of,b,a);N(O,O.current,a);return!0}\nfunction yf(a,b){var c=a.stateNode;c?void 0:A(\"169\");if(b){var d=wf(a,pf);c.__reactInternalMemoizedMergedChildContext=d;M(O,a);M(of,a);N(of,d,a)}else M(O,a);N(O,b,a)}\nfunction zf(a,b,c,d){this.tag=a;this.key=c;this.sibling=this.child=this.return=this.stateNode=this.type=null;this.index=0;this.ref=null;this.pendingProps=b;this.memoizedState=this.updateQueue=this.memoizedProps=null;this.mode=d;this.effectTag=0;this.lastEffect=this.firstEffect=this.nextEffect=null;this.expirationTime=0;this.alternate=null}\nfunction Af(a,b,c){var d=a.alternate;null===d?(d=new zf(a.tag,b,a.key,a.mode),d.type=a.type,d.stateNode=a.stateNode,d.alternate=a,a.alternate=d):(d.pendingProps=b,d.effectTag=0,d.nextEffect=null,d.firstEffect=null,d.lastEffect=null);d.expirationTime=c;d.child=a.child;d.memoizedProps=a.memoizedProps;d.memoizedState=a.memoizedState;d.updateQueue=a.updateQueue;d.sibling=a.sibling;d.index=a.index;d.ref=a.ref;return d}\nfunction Bf(a,b,c){var d=a.type,e=a.key;a=a.props;if(\"function\"===typeof d)var f=d.prototype&&d.prototype.isReactComponent?2:0;else if(\"string\"===typeof d)f=5;else switch(d){case ic:return Cf(a.children,b,c,e);case pc:f=11;b|=3;break;case jc:f=11;b|=2;break;case kc:return d=new zf(15,a,e,b|4),d.type=kc,d.expirationTime=c,d;case rc:f=16;b|=2;break;default:a:{switch(\"object\"===typeof d&&null!==d?d.$$typeof:null){case lc:f=13;break a;case mc:f=12;break a;case qc:f=14;break a;default:A(\"130\",null==d?\nd:typeof d,\"\")}f=void 0}}b=new zf(f,a,e,b);b.type=d;b.expirationTime=c;return b}function Cf(a,b,c,d){a=new zf(10,a,d,b);a.expirationTime=c;return a}function Df(a,b,c){a=new zf(6,a,null,b);a.expirationTime=c;return a}function Ef(a,b,c){b=new zf(4,null!==a.children?a.children:[],a.key,b);b.expirationTime=c;b.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation};return b}\nfunction Ff(a,b,c){b=new zf(3,null,null,b?3:0);a={current:b,containerInfo:a,pendingChildren:null,earliestPendingTime:0,latestPendingTime:0,earliestSuspendedTime:0,latestSuspendedTime:0,latestPingedTime:0,pendingCommitExpirationTime:0,finishedWork:null,context:null,pendingContext:null,hydrate:c,remainingExpirationTime:0,firstBatch:null,nextScheduledRoot:null};return b.stateNode=a}var Gf=null,Hf=null;function If(a){return function(b){try{return a(b)}catch(c){}}}\nfunction Jf(a){if(\"undefined\"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var b=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(b.isDisabled||!b.supportsFiber)return!0;try{var c=b.inject(a);Gf=If(function(a){return b.onCommitFiberRoot(c,a)});Hf=If(function(a){return b.onCommitFiberUnmount(c,a)})}catch(d){}return!0}function Kf(a){\"function\"===typeof Gf&&Gf(a)}function Lf(a){\"function\"===typeof Hf&&Hf(a)}var Mf=!1;\nfunction Nf(a){return{expirationTime:0,baseState:a,firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function Of(a){return{expirationTime:a.expirationTime,baseState:a.baseState,firstUpdate:a.firstUpdate,lastUpdate:a.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}\nfunction Pf(a){return{expirationTime:a,tag:0,payload:null,callback:null,next:null,nextEffect:null}}function Qf(a,b,c){null===a.lastUpdate?a.firstUpdate=a.lastUpdate=b:(a.lastUpdate.next=b,a.lastUpdate=b);if(0===a.expirationTime||a.expirationTime>c)a.expirationTime=c}\nfunction Rf(a,b,c){var d=a.alternate;if(null===d){var e=a.updateQueue;var f=null;null===e&&(e=a.updateQueue=Nf(a.memoizedState))}else e=a.updateQueue,f=d.updateQueue,null===e?null===f?(e=a.updateQueue=Nf(a.memoizedState),f=d.updateQueue=Nf(d.memoizedState)):e=a.updateQueue=Of(f):null===f&&(f=d.updateQueue=Of(e));null===f||e===f?Qf(e,b,c):null===e.lastUpdate||null===f.lastUpdate?(Qf(e,b,c),Qf(f,b,c)):(Qf(e,b,c),f.lastUpdate=b)}\nfunction Sf(a,b,c){var d=a.updateQueue;d=null===d?a.updateQueue=Nf(a.memoizedState):Tf(a,d);null===d.lastCapturedUpdate?d.firstCapturedUpdate=d.lastCapturedUpdate=b:(d.lastCapturedUpdate.next=b,d.lastCapturedUpdate=b);if(0===d.expirationTime||d.expirationTime>c)d.expirationTime=c}function Tf(a,b){var c=a.alternate;null!==c&&b===c.updateQueue&&(b=a.updateQueue=Of(b));return b}\nfunction Uf(a,b,c,d,e,f){switch(c.tag){case 1:return a=c.payload,\"function\"===typeof a?a.call(f,d,e):a;case 3:a.effectTag=a.effectTag&-1025|64;case 0:a=c.payload;e=\"function\"===typeof a?a.call(f,d,e):a;if(null===e||void 0===e)break;return p({},d,e);case 2:Mf=!0}return d}\nfunction Vf(a,b,c,d,e){Mf=!1;if(!(0===b.expirationTime||b.expirationTime>e)){b=Tf(a,b);for(var f=b.baseState,g=null,h=0,k=b.firstUpdate,n=f;null!==k;){var r=k.expirationTime;if(r>e){if(null===g&&(g=k,f=n),0===h||h>r)h=r}else n=Uf(a,b,k,n,c,d),null!==k.callback&&(a.effectTag|=32,k.nextEffect=null,null===b.lastEffect?b.firstEffect=b.lastEffect=k:(b.lastEffect.nextEffect=k,b.lastEffect=k));k=k.next}r=null;for(k=b.firstCapturedUpdate;null!==k;){var w=k.expirationTime;if(w>e){if(null===r&&(r=k,null===\ng&&(f=n)),0===h||h>w)h=w}else n=Uf(a,b,k,n,c,d),null!==k.callback&&(a.effectTag|=32,k.nextEffect=null,null===b.lastCapturedEffect?b.firstCapturedEffect=b.lastCapturedEffect=k:(b.lastCapturedEffect.nextEffect=k,b.lastCapturedEffect=k));k=k.next}null===g&&(b.lastUpdate=null);null===r?b.lastCapturedUpdate=null:a.effectTag|=32;null===g&&null===r&&(f=n);b.baseState=f;b.firstUpdate=g;b.firstCapturedUpdate=r;b.expirationTime=h;a.memoizedState=n}}\nfunction Wf(a,b){\"function\"!==typeof a?A(\"191\",a):void 0;a.call(b)}\nfunction Xf(a,b,c){null!==b.firstCapturedUpdate&&(null!==b.lastUpdate&&(b.lastUpdate.next=b.firstCapturedUpdate,b.lastUpdate=b.lastCapturedUpdate),b.firstCapturedUpdate=b.lastCapturedUpdate=null);a=b.firstEffect;for(b.firstEffect=b.lastEffect=null;null!==a;){var d=a.callback;null!==d&&(a.callback=null,Wf(d,c));a=a.nextEffect}a=b.firstCapturedEffect;for(b.firstCapturedEffect=b.lastCapturedEffect=null;null!==a;)b=a.callback,null!==b&&(a.callback=null,Wf(b,c)),a=a.nextEffect}\nfunction Yf(a,b){return{value:a,source:b,stack:vc(b)}}var Zf=nf(null),$f=nf(null),ag=nf(0);function bg(a){var b=a.type._context;N(ag,b._changedBits,a);N($f,b._currentValue,a);N(Zf,a,a);b._currentValue=a.pendingProps.value;b._changedBits=a.stateNode}function cg(a){var b=ag.current,c=$f.current;M(Zf,a);M($f,a);M(ag,a);a=a.type._context;a._currentValue=c;a._changedBits=b}var dg={},eg=nf(dg),fg=nf(dg),gg=nf(dg);function hg(a){a===dg?A(\"174\"):void 0;return a}\nfunction jg(a,b){N(gg,b,a);N(fg,a,a);N(eg,dg,a);var c=b.nodeType;switch(c){case 9:case 11:b=(b=b.documentElement)?b.namespaceURI:Ie(null,\"\");break;default:c=8===c?b.parentNode:b,b=c.namespaceURI||null,c=c.tagName,b=Ie(b,c)}M(eg,a);N(eg,b,a)}function kg(a){M(eg,a);M(fg,a);M(gg,a)}function lg(a){fg.current===a&&(M(eg,a),M(fg,a))}function mg(a,b,c){var d=a.memoizedState;b=b(c,d);d=null===b||void 0===b?d:p({},d,b);a.memoizedState=d;a=a.updateQueue;null!==a&&0===a.expirationTime&&(a.baseState=d)}\nvar qg={isMounted:function(a){return(a=a._reactInternalFiber)?2===kd(a):!1},enqueueSetState:function(a,b,c){a=a._reactInternalFiber;var d=ng();d=og(d,a);var e=Pf(d);e.payload=b;void 0!==c&&null!==c&&(e.callback=c);Rf(a,e,d);pg(a,d)},enqueueReplaceState:function(a,b,c){a=a._reactInternalFiber;var d=ng();d=og(d,a);var e=Pf(d);e.tag=1;e.payload=b;void 0!==c&&null!==c&&(e.callback=c);Rf(a,e,d);pg(a,d)},enqueueForceUpdate:function(a,b){a=a._reactInternalFiber;var c=ng();c=og(c,a);var d=Pf(c);d.tag=2;void 0!==\nb&&null!==b&&(d.callback=b);Rf(a,d,c);pg(a,c)}};function rg(a,b,c,d,e,f){var g=a.stateNode;a=a.type;return\"function\"===typeof g.shouldComponentUpdate?g.shouldComponentUpdate(c,e,f):a.prototype&&a.prototype.isPureReactComponent?!ea(b,c)||!ea(d,e):!0}\nfunction sg(a,b,c,d){a=b.state;\"function\"===typeof b.componentWillReceiveProps&&b.componentWillReceiveProps(c,d);\"function\"===typeof b.UNSAFE_componentWillReceiveProps&&b.UNSAFE_componentWillReceiveProps(c,d);b.state!==a&&qg.enqueueReplaceState(b,b.state,null)}\nfunction tg(a,b){var c=a.type,d=a.stateNode,e=a.pendingProps,f=qf(a);d.props=e;d.state=a.memoizedState;d.refs=ha;d.context=sf(a,f);f=a.updateQueue;null!==f&&(Vf(a,f,e,d,b),d.state=a.memoizedState);f=a.type.getDerivedStateFromProps;\"function\"===typeof f&&(mg(a,f,e),d.state=a.memoizedState);\"function\"===typeof c.getDerivedStateFromProps||\"function\"===typeof d.getSnapshotBeforeUpdate||\"function\"!==typeof d.UNSAFE_componentWillMount&&\"function\"!==typeof d.componentWillMount||(c=d.state,\"function\"===typeof d.componentWillMount&&\nd.componentWillMount(),\"function\"===typeof d.UNSAFE_componentWillMount&&d.UNSAFE_componentWillMount(),c!==d.state&&qg.enqueueReplaceState(d,d.state,null),f=a.updateQueue,null!==f&&(Vf(a,f,e,d,b),d.state=a.memoizedState));\"function\"===typeof d.componentDidMount&&(a.effectTag|=4)}var ug=Array.isArray;\nfunction vg(a,b,c){a=c.ref;if(null!==a&&\"function\"!==typeof a&&\"object\"!==typeof a){if(c._owner){c=c._owner;var d=void 0;c&&(2!==c.tag?A(\"110\"):void 0,d=c.stateNode);d?void 0:A(\"147\",a);var e=\"\"+a;if(null!==b&&null!==b.ref&&\"function\"===typeof b.ref&&b.ref._stringRef===e)return b.ref;b=function(a){var b=d.refs===ha?d.refs={}:d.refs;null===a?delete b[e]:b[e]=a};b._stringRef=e;return b}\"string\"!==typeof a?A(\"148\"):void 0;c._owner?void 0:A(\"254\",a)}return a}\nfunction wg(a,b){\"textarea\"!==a.type&&A(\"31\",\"[object Object]\"===Object.prototype.toString.call(b)?\"object with keys {\"+Object.keys(b).join(\", \")+\"}\":b,\"\")}\nfunction xg(a){function b(b,c){if(a){var d=b.lastEffect;null!==d?(d.nextEffect=c,b.lastEffect=c):b.firstEffect=b.lastEffect=c;c.nextEffect=null;c.effectTag=8}}function c(c,d){if(!a)return null;for(;null!==d;)b(c,d),d=d.sibling;return null}function d(a,b){for(a=new Map;null!==b;)null!==b.key?a.set(b.key,b):a.set(b.index,b),b=b.sibling;return a}function e(a,b,c){a=Af(a,b,c);a.index=0;a.sibling=null;return a}function f(b,c,d){b.index=d;if(!a)return c;d=b.alternate;if(null!==d)return d=d.index,d<c?(b.effectTag=\n2,c):d;b.effectTag=2;return c}function g(b){a&&null===b.alternate&&(b.effectTag=2);return b}function h(a,b,c,d){if(null===b||6!==b.tag)return b=Df(c,a.mode,d),b.return=a,b;b=e(b,c,d);b.return=a;return b}function k(a,b,c,d){if(null!==b&&b.type===c.type)return d=e(b,c.props,d),d.ref=vg(a,b,c),d.return=a,d;d=Bf(c,a.mode,d);d.ref=vg(a,b,c);d.return=a;return d}function n(a,b,c,d){if(null===b||4!==b.tag||b.stateNode.containerInfo!==c.containerInfo||b.stateNode.implementation!==c.implementation)return b=\nEf(c,a.mode,d),b.return=a,b;b=e(b,c.children||[],d);b.return=a;return b}function r(a,b,c,d,f){if(null===b||10!==b.tag)return b=Cf(c,a.mode,d,f),b.return=a,b;b=e(b,c,d);b.return=a;return b}function w(a,b,c){if(\"string\"===typeof b||\"number\"===typeof b)return b=Df(\"\"+b,a.mode,c),b.return=a,b;if(\"object\"===typeof b&&null!==b){switch(b.$$typeof){case gc:return c=Bf(b,a.mode,c),c.ref=vg(a,null,b),c.return=a,c;case hc:return b=Ef(b,a.mode,c),b.return=a,b}if(ug(b)||tc(b))return b=Cf(b,a.mode,c,null),b.return=\na,b;wg(a,b)}return null}function P(a,b,c,d){var e=null!==b?b.key:null;if(\"string\"===typeof c||\"number\"===typeof c)return null!==e?null:h(a,b,\"\"+c,d);if(\"object\"===typeof c&&null!==c){switch(c.$$typeof){case gc:return c.key===e?c.type===ic?r(a,b,c.props.children,d,e):k(a,b,c,d):null;case hc:return c.key===e?n(a,b,c,d):null}if(ug(c)||tc(c))return null!==e?null:r(a,b,c,d,null);wg(a,c)}return null}function nc(a,b,c,d,e){if(\"string\"===typeof d||\"number\"===typeof d)return a=a.get(c)||null,h(b,a,\"\"+d,e);\nif(\"object\"===typeof d&&null!==d){switch(d.$$typeof){case gc:return a=a.get(null===d.key?c:d.key)||null,d.type===ic?r(b,a,d.props.children,e,d.key):k(b,a,d,e);case hc:return a=a.get(null===d.key?c:d.key)||null,n(b,a,d,e)}if(ug(d)||tc(d))return a=a.get(c)||null,r(b,a,d,e,null);wg(b,d)}return null}function Jd(e,g,h,k){for(var u=null,x=null,t=g,q=g=0,n=null;null!==t&&q<h.length;q++){t.index>q?(n=t,t=null):n=t.sibling;var l=P(e,t,h[q],k);if(null===l){null===t&&(t=n);break}a&&t&&null===l.alternate&&b(e,\nt);g=f(l,g,q);null===x?u=l:x.sibling=l;x=l;t=n}if(q===h.length)return c(e,t),u;if(null===t){for(;q<h.length;q++)if(t=w(e,h[q],k))g=f(t,g,q),null===x?u=t:x.sibling=t,x=t;return u}for(t=d(e,t);q<h.length;q++)if(n=nc(t,e,q,h[q],k))a&&null!==n.alternate&&t.delete(null===n.key?q:n.key),g=f(n,g,q),null===x?u=n:x.sibling=n,x=n;a&&t.forEach(function(a){return b(e,a)});return u}function E(e,g,h,k){var u=tc(h);\"function\"!==typeof u?A(\"150\"):void 0;h=u.call(h);null==h?A(\"151\"):void 0;for(var t=u=null,n=g,x=\ng=0,y=null,l=h.next();null!==n&&!l.done;x++,l=h.next()){n.index>x?(y=n,n=null):y=n.sibling;var r=P(e,n,l.value,k);if(null===r){n||(n=y);break}a&&n&&null===r.alternate&&b(e,n);g=f(r,g,x);null===t?u=r:t.sibling=r;t=r;n=y}if(l.done)return c(e,n),u;if(null===n){for(;!l.done;x++,l=h.next())l=w(e,l.value,k),null!==l&&(g=f(l,g,x),null===t?u=l:t.sibling=l,t=l);return u}for(n=d(e,n);!l.done;x++,l=h.next())l=nc(n,e,x,l.value,k),null!==l&&(a&&null!==l.alternate&&n.delete(null===l.key?x:l.key),g=f(l,g,x),null===\nt?u=l:t.sibling=l,t=l);a&&n.forEach(function(a){return b(e,a)});return u}return function(a,d,f,h){var k=\"object\"===typeof f&&null!==f&&f.type===ic&&null===f.key;k&&(f=f.props.children);var n=\"object\"===typeof f&&null!==f;if(n)switch(f.$$typeof){case gc:a:{n=f.key;for(k=d;null!==k;){if(k.key===n)if(10===k.tag?f.type===ic:k.type===f.type){c(a,k.sibling);d=e(k,f.type===ic?f.props.children:f.props,h);d.ref=vg(a,k,f);d.return=a;a=d;break a}else{c(a,k);break}else b(a,k);k=k.sibling}f.type===ic?(d=Cf(f.props.children,\na.mode,h,f.key),d.return=a,a=d):(h=Bf(f,a.mode,h),h.ref=vg(a,d,f),h.return=a,a=h)}return g(a);case hc:a:{for(k=f.key;null!==d;){if(d.key===k)if(4===d.tag&&d.stateNode.containerInfo===f.containerInfo&&d.stateNode.implementation===f.implementation){c(a,d.sibling);d=e(d,f.children||[],h);d.return=a;a=d;break a}else{c(a,d);break}else b(a,d);d=d.sibling}d=Ef(f,a.mode,h);d.return=a;a=d}return g(a)}if(\"string\"===typeof f||\"number\"===typeof f)return f=\"\"+f,null!==d&&6===d.tag?(c(a,d.sibling),d=e(d,f,h),d.return=\na,a=d):(c(a,d),d=Df(f,a.mode,h),d.return=a,a=d),g(a);if(ug(f))return Jd(a,d,f,h);if(tc(f))return E(a,d,f,h);n&&wg(a,f);if(\"undefined\"===typeof f&&!k)switch(a.tag){case 2:case 1:h=a.type,A(\"152\",h.displayName||h.name||\"Component\")}return c(a,d)}}var yg=xg(!0),zg=xg(!1),Ag=null,Bg=null,Cg=!1;function Dg(a,b){var c=new zf(5,null,null,0);c.type=\"DELETED\";c.stateNode=b;c.return=a;c.effectTag=8;null!==a.lastEffect?(a.lastEffect.nextEffect=c,a.lastEffect=c):a.firstEffect=a.lastEffect=c}\nfunction Eg(a,b){switch(a.tag){case 5:var c=a.type;b=1!==b.nodeType||c.toLowerCase()!==b.nodeName.toLowerCase()?null:b;return null!==b?(a.stateNode=b,!0):!1;case 6:return b=\"\"===a.pendingProps||3!==b.nodeType?null:b,null!==b?(a.stateNode=b,!0):!1;default:return!1}}function Fg(a){if(Cg){var b=Bg;if(b){var c=b;if(!Eg(a,b)){b=jf(c);if(!b||!Eg(a,b)){a.effectTag|=2;Cg=!1;Ag=a;return}Dg(Ag,c)}Ag=a;Bg=kf(b)}else a.effectTag|=2,Cg=!1,Ag=a}}\nfunction Gg(a){for(a=a.return;null!==a&&5!==a.tag&&3!==a.tag;)a=a.return;Ag=a}function Hg(a){if(a!==Ag)return!1;if(!Cg)return Gg(a),Cg=!0,!1;var b=a.type;if(5!==a.tag||\"head\"!==b&&\"body\"!==b&&!ef(b,a.memoizedProps))for(b=Bg;b;)Dg(a,b),b=jf(b);Gg(a);Bg=Ag?jf(a.stateNode):null;return!0}function Ig(){Bg=Ag=null;Cg=!1}function Q(a,b,c){Jg(a,b,c,b.expirationTime)}function Jg(a,b,c,d){b.child=null===a?zg(b,null,c,d):yg(b,a.child,c,d)}\nfunction Kg(a,b){var c=b.ref;if(null===a&&null!==c||null!==a&&a.ref!==c)b.effectTag|=128}function Lg(a,b,c,d,e){Kg(a,b);var f=0!==(b.effectTag&64);if(!c&&!f)return d&&yf(b,!1),R(a,b);c=b.stateNode;ec.current=b;var g=f?null:c.render();b.effectTag|=1;f&&(Jg(a,b,null,e),b.child=null);Jg(a,b,g,e);b.memoizedState=c.state;b.memoizedProps=c.props;d&&yf(b,!0);return b.child}\nfunction Mg(a){var b=a.stateNode;b.pendingContext?vf(a,b.pendingContext,b.pendingContext!==b.context):b.context&&vf(a,b.context,!1);jg(a,b.containerInfo)}\nfunction Ng(a,b,c,d){var e=a.child;null!==e&&(e.return=a);for(;null!==e;){switch(e.tag){case 12:var f=e.stateNode|0;if(e.type===b&&0!==(f&c)){for(f=e;null!==f;){var g=f.alternate;if(0===f.expirationTime||f.expirationTime>d)f.expirationTime=d,null!==g&&(0===g.expirationTime||g.expirationTime>d)&&(g.expirationTime=d);else if(null!==g&&(0===g.expirationTime||g.expirationTime>d))g.expirationTime=d;else break;f=f.return}f=null}else f=e.child;break;case 13:f=e.type===a.type?null:e.child;break;default:f=\ne.child}if(null!==f)f.return=e;else for(f=e;null!==f;){if(f===a){f=null;break}e=f.sibling;if(null!==e){e.return=f.return;f=e;break}f=f.return}e=f}}\nfunction Rg(a,b,c){var d=b.type._context,e=b.pendingProps,f=b.memoizedProps,g=!0;if(O.current)g=!1;else if(f===e)return b.stateNode=0,bg(b),R(a,b);var h=e.value;b.memoizedProps=e;if(null===f)h=1073741823;else if(f.value===e.value){if(f.children===e.children&&g)return b.stateNode=0,bg(b),R(a,b);h=0}else{var k=f.value;if(k===h&&(0!==k||1/k===1/h)||k!==k&&h!==h){if(f.children===e.children&&g)return b.stateNode=0,bg(b),R(a,b);h=0}else if(h=\"function\"===typeof d._calculateChangedBits?d._calculateChangedBits(k,\nh):1073741823,h|=0,0===h){if(f.children===e.children&&g)return b.stateNode=0,bg(b),R(a,b)}else Ng(b,d,h,c)}b.stateNode=h;bg(b);Q(a,b,e.children);return b.child}function R(a,b){null!==a&&b.child!==a.child?A(\"153\"):void 0;if(null!==b.child){a=b.child;var c=Af(a,a.pendingProps,a.expirationTime);b.child=c;for(c.return=b;null!==a.sibling;)a=a.sibling,c=c.sibling=Af(a,a.pendingProps,a.expirationTime),c.return=b;c.sibling=null}return b.child}\nfunction Sg(a,b,c){if(0===b.expirationTime||b.expirationTime>c){switch(b.tag){case 3:Mg(b);break;case 2:xf(b);break;case 4:jg(b,b.stateNode.containerInfo);break;case 13:bg(b)}return null}switch(b.tag){case 0:null!==a?A(\"155\"):void 0;var d=b.type,e=b.pendingProps,f=qf(b);f=sf(b,f);d=d(e,f);b.effectTag|=1;\"object\"===typeof d&&null!==d&&\"function\"===typeof d.render&&void 0===d.$$typeof?(f=b.type,b.tag=2,b.memoizedState=null!==d.state&&void 0!==d.state?d.state:null,f=f.getDerivedStateFromProps,\"function\"===\ntypeof f&&mg(b,f,e),e=xf(b),d.updater=qg,b.stateNode=d,d._reactInternalFiber=b,tg(b,c),a=Lg(a,b,!0,e,c)):(b.tag=1,Q(a,b,d),b.memoizedProps=e,a=b.child);return a;case 1:return e=b.type,c=b.pendingProps,O.current||b.memoizedProps!==c?(d=qf(b),d=sf(b,d),e=e(c,d),b.effectTag|=1,Q(a,b,e),b.memoizedProps=c,a=b.child):a=R(a,b),a;case 2:e=xf(b);if(null===a)if(null===b.stateNode){var g=b.pendingProps,h=b.type;d=qf(b);var k=2===b.tag&&null!=b.type.contextTypes;f=k?sf(b,d):ha;g=new h(g,f);b.memoizedState=null!==\ng.state&&void 0!==g.state?g.state:null;g.updater=qg;b.stateNode=g;g._reactInternalFiber=b;k&&(k=b.stateNode,k.__reactInternalMemoizedUnmaskedChildContext=d,k.__reactInternalMemoizedMaskedChildContext=f);tg(b,c);d=!0}else{h=b.type;d=b.stateNode;k=b.memoizedProps;f=b.pendingProps;d.props=k;var n=d.context;g=qf(b);g=sf(b,g);var r=h.getDerivedStateFromProps;(h=\"function\"===typeof r||\"function\"===typeof d.getSnapshotBeforeUpdate)||\"function\"!==typeof d.UNSAFE_componentWillReceiveProps&&\"function\"!==typeof d.componentWillReceiveProps||\n(k!==f||n!==g)&&sg(b,d,f,g);Mf=!1;var w=b.memoizedState;n=d.state=w;var P=b.updateQueue;null!==P&&(Vf(b,P,f,d,c),n=b.memoizedState);k!==f||w!==n||O.current||Mf?(\"function\"===typeof r&&(mg(b,r,f),n=b.memoizedState),(k=Mf||rg(b,k,f,w,n,g))?(h||\"function\"!==typeof d.UNSAFE_componentWillMount&&\"function\"!==typeof d.componentWillMount||(\"function\"===typeof d.componentWillMount&&d.componentWillMount(),\"function\"===typeof d.UNSAFE_componentWillMount&&d.UNSAFE_componentWillMount()),\"function\"===typeof d.componentDidMount&&\n(b.effectTag|=4)):(\"function\"===typeof d.componentDidMount&&(b.effectTag|=4),b.memoizedProps=f,b.memoizedState=n),d.props=f,d.state=n,d.context=g,d=k):(\"function\"===typeof d.componentDidMount&&(b.effectTag|=4),d=!1)}else h=b.type,d=b.stateNode,f=b.memoizedProps,k=b.pendingProps,d.props=f,n=d.context,g=qf(b),g=sf(b,g),r=h.getDerivedStateFromProps,(h=\"function\"===typeof r||\"function\"===typeof d.getSnapshotBeforeUpdate)||\"function\"!==typeof d.UNSAFE_componentWillReceiveProps&&\"function\"!==typeof d.componentWillReceiveProps||\n(f!==k||n!==g)&&sg(b,d,k,g),Mf=!1,n=b.memoizedState,w=d.state=n,P=b.updateQueue,null!==P&&(Vf(b,P,k,d,c),w=b.memoizedState),f!==k||n!==w||O.current||Mf?(\"function\"===typeof r&&(mg(b,r,k),w=b.memoizedState),(r=Mf||rg(b,f,k,n,w,g))?(h||\"function\"!==typeof d.UNSAFE_componentWillUpdate&&\"function\"!==typeof d.componentWillUpdate||(\"function\"===typeof d.componentWillUpdate&&d.componentWillUpdate(k,w,g),\"function\"===typeof d.UNSAFE_componentWillUpdate&&d.UNSAFE_componentWillUpdate(k,w,g)),\"function\"===typeof d.componentDidUpdate&&\n(b.effectTag|=4),\"function\"===typeof d.getSnapshotBeforeUpdate&&(b.effectTag|=256)):(\"function\"!==typeof d.componentDidUpdate||f===a.memoizedProps&&n===a.memoizedState||(b.effectTag|=4),\"function\"!==typeof d.getSnapshotBeforeUpdate||f===a.memoizedProps&&n===a.memoizedState||(b.effectTag|=256),b.memoizedProps=k,b.memoizedState=w),d.props=k,d.state=w,d.context=g,d=r):(\"function\"!==typeof d.componentDidUpdate||f===a.memoizedProps&&n===a.memoizedState||(b.effectTag|=4),\"function\"!==typeof d.getSnapshotBeforeUpdate||\nf===a.memoizedProps&&n===a.memoizedState||(b.effectTag|=256),d=!1);return Lg(a,b,d,e,c);case 3:Mg(b);e=b.updateQueue;if(null!==e)if(d=b.memoizedState,d=null!==d?d.element:null,Vf(b,e,b.pendingProps,null,c),e=b.memoizedState.element,e===d)Ig(),a=R(a,b);else{d=b.stateNode;if(d=(null===a||null===a.child)&&d.hydrate)Bg=kf(b.stateNode.containerInfo),Ag=b,d=Cg=!0;d?(b.effectTag|=2,b.child=zg(b,null,e,c)):(Ig(),Q(a,b,e));a=b.child}else Ig(),a=R(a,b);return a;case 5:a:{hg(gg.current);e=hg(eg.current);d=Ie(e,\nb.type);e!==d&&(N(fg,b,b),N(eg,d,b));null===a&&Fg(b);e=b.type;k=b.memoizedProps;d=b.pendingProps;f=null!==a?a.memoizedProps:null;if(!O.current&&k===d){if(k=b.mode&1&&!!d.hidden)b.expirationTime=1073741823;if(!k||1073741823!==c){a=R(a,b);break a}}k=d.children;ef(e,d)?k=null:f&&ef(e,f)&&(b.effectTag|=16);Kg(a,b);1073741823!==c&&b.mode&1&&d.hidden?(b.expirationTime=1073741823,b.memoizedProps=d,a=null):(Q(a,b,k),b.memoizedProps=d,a=b.child)}return a;case 6:return null===a&&Fg(b),b.memoizedProps=b.pendingProps,\nnull;case 16:return null;case 4:return jg(b,b.stateNode.containerInfo),e=b.pendingProps,O.current||b.memoizedProps!==e?(null===a?b.child=yg(b,null,e,c):Q(a,b,e),b.memoizedProps=e,a=b.child):a=R(a,b),a;case 14:return e=b.type.render,c=b.pendingProps,d=b.ref,O.current||b.memoizedProps!==c||d!==(null!==a?a.ref:null)?(e=e(c,d),Q(a,b,e),b.memoizedProps=c,a=b.child):a=R(a,b),a;case 10:return c=b.pendingProps,O.current||b.memoizedProps!==c?(Q(a,b,c),b.memoizedProps=c,a=b.child):a=R(a,b),a;case 11:return c=\nb.pendingProps.children,O.current||null!==c&&b.memoizedProps!==c?(Q(a,b,c),b.memoizedProps=c,a=b.child):a=R(a,b),a;case 15:return c=b.pendingProps,b.memoizedProps===c?a=R(a,b):(Q(a,b,c.children),b.memoizedProps=c,a=b.child),a;case 13:return Rg(a,b,c);case 12:a:if(d=b.type,f=b.pendingProps,k=b.memoizedProps,e=d._currentValue,g=d._changedBits,O.current||0!==g||k!==f){b.memoizedProps=f;h=f.unstable_observedBits;if(void 0===h||null===h)h=1073741823;b.stateNode=h;if(0!==(g&h))Ng(b,d,g,c);else if(k===f){a=\nR(a,b);break a}c=f.children;c=c(e);b.effectTag|=1;Q(a,b,c);a=b.child}else a=R(a,b);return a;default:A(\"156\")}}function Tg(a){a.effectTag|=4}var Ug=void 0,Vg=void 0,Wg=void 0;Ug=function(){};Vg=function(a,b,c){(b.updateQueue=c)&&Tg(b)};Wg=function(a,b,c,d){c!==d&&Tg(b)};\nfunction Xg(a,b){var c=b.pendingProps;switch(b.tag){case 1:return null;case 2:return tf(b),null;case 3:kg(b);uf(b);var d=b.stateNode;d.pendingContext&&(d.context=d.pendingContext,d.pendingContext=null);if(null===a||null===a.child)Hg(b),b.effectTag&=-3;Ug(b);return null;case 5:lg(b);d=hg(gg.current);var e=b.type;if(null!==a&&null!=b.stateNode){var f=a.memoizedProps,g=b.stateNode,h=hg(eg.current);g=Xe(g,e,f,c,d);Vg(a,b,g,e,f,c,d,h);a.ref!==b.ref&&(b.effectTag|=128)}else{if(!c)return null===b.stateNode?\nA(\"166\"):void 0,null;a=hg(eg.current);if(Hg(b))c=b.stateNode,e=b.type,f=b.memoizedProps,c[C]=b,c[Ma]=f,d=Ze(c,e,f,a,d),b.updateQueue=d,null!==d&&Tg(b);else{a=Ue(e,c,d,a);a[C]=b;a[Ma]=c;a:for(f=b.child;null!==f;){if(5===f.tag||6===f.tag)a.appendChild(f.stateNode);else if(4!==f.tag&&null!==f.child){f.child.return=f;f=f.child;continue}if(f===b)break;for(;null===f.sibling;){if(null===f.return||f.return===b)break a;f=f.return}f.sibling.return=f.return;f=f.sibling}We(a,e,c,d);df(e,c)&&Tg(b);b.stateNode=\na}null!==b.ref&&(b.effectTag|=128)}return null;case 6:if(a&&null!=b.stateNode)Wg(a,b,a.memoizedProps,c);else{if(\"string\"!==typeof c)return null===b.stateNode?A(\"166\"):void 0,null;d=hg(gg.current);hg(eg.current);Hg(b)?(d=b.stateNode,c=b.memoizedProps,d[C]=b,$e(d,c)&&Tg(b)):(d=Ve(c,d),d[C]=b,b.stateNode=d)}return null;case 14:return null;case 16:return null;case 10:return null;case 11:return null;case 15:return null;case 4:return kg(b),Ug(b),null;case 13:return cg(b),null;case 12:return null;case 0:A(\"167\");\ndefault:A(\"156\")}}function Yg(a,b){var c=b.source;null===b.stack&&null!==c&&vc(c);null!==c&&uc(c);b=b.value;null!==a&&2===a.tag&&uc(a);try{b&&b.suppressReactErrorLogging||console.error(b)}catch(d){d&&d.suppressReactErrorLogging||console.error(d)}}function Zg(a){var b=a.ref;if(null!==b)if(\"function\"===typeof b)try{b(null)}catch(c){$g(a,c)}else b.current=null}\nfunction ah(a){\"function\"===typeof Lf&&Lf(a);switch(a.tag){case 2:Zg(a);var b=a.stateNode;if(\"function\"===typeof b.componentWillUnmount)try{b.props=a.memoizedProps,b.state=a.memoizedState,b.componentWillUnmount()}catch(c){$g(a,c)}break;case 5:Zg(a);break;case 4:bh(a)}}function ch(a){return 5===a.tag||3===a.tag||4===a.tag}\nfunction dh(a){a:{for(var b=a.return;null!==b;){if(ch(b)){var c=b;break a}b=b.return}A(\"160\");c=void 0}var d=b=void 0;switch(c.tag){case 5:b=c.stateNode;d=!1;break;case 3:b=c.stateNode.containerInfo;d=!0;break;case 4:b=c.stateNode.containerInfo;d=!0;break;default:A(\"161\")}c.effectTag&16&&(Le(b,\"\"),c.effectTag&=-17);a:b:for(c=a;;){for(;null===c.sibling;){if(null===c.return||ch(c.return)){c=null;break a}c=c.return}c.sibling.return=c.return;for(c=c.sibling;5!==c.tag&&6!==c.tag;){if(c.effectTag&2)continue b;\nif(null===c.child||4===c.tag)continue b;else c.child.return=c,c=c.child}if(!(c.effectTag&2)){c=c.stateNode;break a}}for(var e=a;;){if(5===e.tag||6===e.tag)if(c)if(d){var f=b,g=e.stateNode,h=c;8===f.nodeType?f.parentNode.insertBefore(g,h):f.insertBefore(g,h)}else b.insertBefore(e.stateNode,c);else d?(f=b,g=e.stateNode,8===f.nodeType?f.parentNode.insertBefore(g,f):f.appendChild(g)):b.appendChild(e.stateNode);else if(4!==e.tag&&null!==e.child){e.child.return=e;e=e.child;continue}if(e===a)break;for(;null===\ne.sibling;){if(null===e.return||e.return===a)return;e=e.return}e.sibling.return=e.return;e=e.sibling}}\nfunction bh(a){for(var b=a,c=!1,d=void 0,e=void 0;;){if(!c){c=b.return;a:for(;;){null===c?A(\"160\"):void 0;switch(c.tag){case 5:d=c.stateNode;e=!1;break a;case 3:d=c.stateNode.containerInfo;e=!0;break a;case 4:d=c.stateNode.containerInfo;e=!0;break a}c=c.return}c=!0}if(5===b.tag||6===b.tag){a:for(var f=b,g=f;;)if(ah(g),null!==g.child&&4!==g.tag)g.child.return=g,g=g.child;else{if(g===f)break;for(;null===g.sibling;){if(null===g.return||g.return===f)break a;g=g.return}g.sibling.return=g.return;g=g.sibling}e?\n(f=d,g=b.stateNode,8===f.nodeType?f.parentNode.removeChild(g):f.removeChild(g)):d.removeChild(b.stateNode)}else if(4===b.tag?d=b.stateNode.containerInfo:ah(b),null!==b.child){b.child.return=b;b=b.child;continue}if(b===a)break;for(;null===b.sibling;){if(null===b.return||b.return===a)return;b=b.return;4===b.tag&&(c=!1)}b.sibling.return=b.return;b=b.sibling}}\nfunction eh(a,b){switch(b.tag){case 2:break;case 5:var c=b.stateNode;if(null!=c){var d=b.memoizedProps;a=null!==a?a.memoizedProps:d;var e=b.type,f=b.updateQueue;b.updateQueue=null;null!==f&&(c[Ma]=d,Ye(c,f,e,a,d))}break;case 6:null===b.stateNode?A(\"162\"):void 0;b.stateNode.nodeValue=b.memoizedProps;break;case 3:break;case 15:break;case 16:break;default:A(\"163\")}}function fh(a,b,c){c=Pf(c);c.tag=3;c.payload={element:null};var d=b.value;c.callback=function(){gh(d);Yg(a,b)};return c}\nfunction hh(a,b,c){c=Pf(c);c.tag=3;var d=a.stateNode;null!==d&&\"function\"===typeof d.componentDidCatch&&(c.callback=function(){null===ih?ih=new Set([this]):ih.add(this);var c=b.value,d=b.stack;Yg(a,b);this.componentDidCatch(c,{componentStack:null!==d?d:\"\"})});return c}\nfunction jh(a,b,c,d,e,f){c.effectTag|=512;c.firstEffect=c.lastEffect=null;d=Yf(d,c);a=b;do{switch(a.tag){case 3:a.effectTag|=1024;d=fh(a,d,f);Sf(a,d,f);return;case 2:if(b=d,c=a.stateNode,0===(a.effectTag&64)&&null!==c&&\"function\"===typeof c.componentDidCatch&&(null===ih||!ih.has(c))){a.effectTag|=1024;d=hh(a,b,f);Sf(a,d,f);return}}a=a.return}while(null!==a)}\nfunction kh(a){switch(a.tag){case 2:tf(a);var b=a.effectTag;return b&1024?(a.effectTag=b&-1025|64,a):null;case 3:return kg(a),uf(a),b=a.effectTag,b&1024?(a.effectTag=b&-1025|64,a):null;case 5:return lg(a),null;case 16:return b=a.effectTag,b&1024?(a.effectTag=b&-1025|64,a):null;case 4:return kg(a),null;case 13:return cg(a),null;default:return null}}var lh=ff(),mh=2,nh=lh,oh=0,ph=0,qh=!1,S=null,rh=null,T=0,sh=-1,th=!1,U=null,uh=!1,vh=!1,ih=null;\nfunction wh(){if(null!==S)for(var a=S.return;null!==a;){var b=a;switch(b.tag){case 2:tf(b);break;case 3:kg(b);uf(b);break;case 5:lg(b);break;case 4:kg(b);break;case 13:cg(b)}a=a.return}rh=null;T=0;sh=-1;th=!1;S=null;vh=!1}\nfunction xh(a){for(;;){var b=a.alternate,c=a.return,d=a.sibling;if(0===(a.effectTag&512)){b=Xg(b,a,T);var e=a;if(1073741823===T||1073741823!==e.expirationTime){var f=0;switch(e.tag){case 3:case 2:var g=e.updateQueue;null!==g&&(f=g.expirationTime)}for(g=e.child;null!==g;)0!==g.expirationTime&&(0===f||f>g.expirationTime)&&(f=g.expirationTime),g=g.sibling;e.expirationTime=f}if(null!==b)return b;null!==c&&0===(c.effectTag&512)&&(null===c.firstEffect&&(c.firstEffect=a.firstEffect),null!==a.lastEffect&&\n(null!==c.lastEffect&&(c.lastEffect.nextEffect=a.firstEffect),c.lastEffect=a.lastEffect),1<a.effectTag&&(null!==c.lastEffect?c.lastEffect.nextEffect=a:c.firstEffect=a,c.lastEffect=a));if(null!==d)return d;if(null!==c)a=c;else{vh=!0;break}}else{a=kh(a,th,T);if(null!==a)return a.effectTag&=511,a;null!==c&&(c.firstEffect=c.lastEffect=null,c.effectTag|=512);if(null!==d)return d;if(null!==c)a=c;else break}}return null}\nfunction yh(a){var b=Sg(a.alternate,a,T);null===b&&(b=xh(a));ec.current=null;return b}\nfunction zh(a,b,c){qh?A(\"243\"):void 0;qh=!0;if(b!==T||a!==rh||null===S)wh(),rh=a,T=b,sh=-1,S=Af(rh.current,null,T),a.pendingCommitExpirationTime=0;var d=!1;th=!c||T<=mh;do{try{if(c)for(;null!==S&&!Ah();)S=yh(S);else for(;null!==S;)S=yh(S)}catch(f){if(null===S)d=!0,gh(f);else{null===S?A(\"271\"):void 0;c=S;var e=c.return;if(null===e){d=!0;gh(f);break}jh(a,e,c,f,th,T,nh);S=xh(c)}}break}while(1);qh=!1;if(d)return null;if(null===S){if(vh)return a.pendingCommitExpirationTime=b,a.current.alternate;th?A(\"262\"):\nvoid 0;0<=sh&&setTimeout(function(){var b=a.current.expirationTime;0!==b&&(0===a.remainingExpirationTime||a.remainingExpirationTime<b)&&Bh(a,b)},sh);Ch(a.current.expirationTime)}return null}\nfunction $g(a,b){var c;a:{qh&&!uh?A(\"263\"):void 0;for(c=a.return;null!==c;){switch(c.tag){case 2:var d=c.stateNode;if(\"function\"===typeof c.type.getDerivedStateFromCatch||\"function\"===typeof d.componentDidCatch&&(null===ih||!ih.has(d))){a=Yf(b,a);a=hh(c,a,1);Rf(c,a,1);pg(c,1);c=void 0;break a}break;case 3:a=Yf(b,a);a=fh(c,a,1);Rf(c,a,1);pg(c,1);c=void 0;break a}c=c.return}3===a.tag&&(c=Yf(b,a),c=fh(a,c,1),Rf(a,c,1),pg(a,1));c=void 0}return c}\nfunction Dh(){var a=2+25*(((ng()-2+500)/25|0)+1);a<=oh&&(a=oh+1);return oh=a}function og(a,b){a=0!==ph?ph:qh?uh?1:T:b.mode&1?Eh?2+10*(((a-2+15)/10|0)+1):2+25*(((a-2+500)/25|0)+1):1;Eh&&(0===Fh||a>Fh)&&(Fh=a);return a}\nfunction pg(a,b){for(;null!==a;){if(0===a.expirationTime||a.expirationTime>b)a.expirationTime=b;null!==a.alternate&&(0===a.alternate.expirationTime||a.alternate.expirationTime>b)&&(a.alternate.expirationTime=b);if(null===a.return)if(3===a.tag){var c=a.stateNode;!qh&&0!==T&&b<T&&wh();var d=c.current.expirationTime;qh&&!uh&&rh===c||Bh(c,d);Gh>Hh&&A(\"185\")}else break;a=a.return}}function ng(){nh=ff()-lh;return mh=(nh/10|0)+2}\nfunction Ih(a){var b=ph;ph=2+25*(((ng()-2+500)/25|0)+1);try{return a()}finally{ph=b}}function Jh(a,b,c,d,e){var f=ph;ph=1;try{return a(b,c,d,e)}finally{ph=f}}var Kh=null,V=null,Lh=0,Mh=void 0,W=!1,X=null,Y=0,Fh=0,Nh=!1,Oh=!1,Ph=null,Qh=null,Z=!1,Rh=!1,Eh=!1,Sh=null,Hh=1E3,Gh=0,Th=1;function Uh(a){if(0!==Lh){if(a>Lh)return;null!==Mh&&hf(Mh)}var b=ff()-lh;Lh=a;Mh=gf(Vh,{timeout:10*(a-2)-b})}\nfunction Bh(a,b){if(null===a.nextScheduledRoot)a.remainingExpirationTime=b,null===V?(Kh=V=a,a.nextScheduledRoot=a):(V=V.nextScheduledRoot=a,V.nextScheduledRoot=Kh);else{var c=a.remainingExpirationTime;if(0===c||b<c)a.remainingExpirationTime=b}W||(Z?Rh&&(X=a,Y=1,Wh(a,1,!1)):1===b?Xh():Uh(b))}\nfunction Yh(){var a=0,b=null;if(null!==V)for(var c=V,d=Kh;null!==d;){var e=d.remainingExpirationTime;if(0===e){null===c||null===V?A(\"244\"):void 0;if(d===d.nextScheduledRoot){Kh=V=d.nextScheduledRoot=null;break}else if(d===Kh)Kh=e=d.nextScheduledRoot,V.nextScheduledRoot=e,d.nextScheduledRoot=null;else if(d===V){V=c;V.nextScheduledRoot=Kh;d.nextScheduledRoot=null;break}else c.nextScheduledRoot=d.nextScheduledRoot,d.nextScheduledRoot=null;d=c.nextScheduledRoot}else{if(0===a||e<a)a=e,b=d;if(d===V)break;\nc=d;d=d.nextScheduledRoot}}c=X;null!==c&&c===b&&1===a?Gh++:Gh=0;X=b;Y=a}function Vh(a){Zh(0,!0,a)}function Xh(){Zh(1,!1,null)}function Zh(a,b,c){Qh=c;Yh();if(b)for(;null!==X&&0!==Y&&(0===a||a>=Y)&&(!Nh||ng()>=Y);)ng(),Wh(X,Y,!Nh),Yh();else for(;null!==X&&0!==Y&&(0===a||a>=Y);)Wh(X,Y,!1),Yh();null!==Qh&&(Lh=0,Mh=null);0!==Y&&Uh(Y);Qh=null;Nh=!1;$h()}function ai(a,b){W?A(\"253\"):void 0;X=a;Y=b;Wh(a,b,!1);Xh();$h()}\nfunction $h(){Gh=0;if(null!==Sh){var a=Sh;Sh=null;for(var b=0;b<a.length;b++){var c=a[b];try{c._onComplete()}catch(d){Oh||(Oh=!0,Ph=d)}}}if(Oh)throw a=Ph,Ph=null,Oh=!1,a;}function Wh(a,b,c){W?A(\"245\"):void 0;W=!0;c?(c=a.finishedWork,null!==c?bi(a,c,b):(c=zh(a,b,!0),null!==c&&(Ah()?a.finishedWork=c:bi(a,c,b)))):(c=a.finishedWork,null!==c?bi(a,c,b):(c=zh(a,b,!1),null!==c&&bi(a,c,b)));W=!1}\nfunction bi(a,b,c){var d=a.firstBatch;if(null!==d&&d._expirationTime<=c&&(null===Sh?Sh=[d]:Sh.push(d),d._defer)){a.finishedWork=b;a.remainingExpirationTime=0;return}a.finishedWork=null;uh=qh=!0;c=b.stateNode;c.current===b?A(\"177\"):void 0;d=c.pendingCommitExpirationTime;0===d?A(\"261\"):void 0;c.pendingCommitExpirationTime=0;ng();ec.current=null;if(1<b.effectTag)if(null!==b.lastEffect){b.lastEffect.nextEffect=b;var e=b.firstEffect}else e=b;else e=b.firstEffect;bf=Id;var f=da();if(Vd(f)){if(\"selectionStart\"in\nf)var g={start:f.selectionStart,end:f.selectionEnd};else a:{var h=window.getSelection&&window.getSelection();if(h&&0!==h.rangeCount){g=h.anchorNode;var k=h.anchorOffset,n=h.focusNode;h=h.focusOffset;try{g.nodeType,n.nodeType}catch(Wa){g=null;break a}var r=0,w=-1,P=-1,nc=0,Jd=0,E=f,t=null;b:for(;;){for(var x;;){E!==g||0!==k&&3!==E.nodeType||(w=r+k);E!==n||0!==h&&3!==E.nodeType||(P=r+h);3===E.nodeType&&(r+=E.nodeValue.length);if(null===(x=E.firstChild))break;t=E;E=x}for(;;){if(E===f)break b;t===g&&\n++nc===k&&(w=r);t===n&&++Jd===h&&(P=r);if(null!==(x=E.nextSibling))break;E=t;t=E.parentNode}E=x}g=-1===w||-1===P?null:{start:w,end:P}}else g=null}g=g||{start:0,end:0}}else g=null;cf={focusedElem:f,selectionRange:g};Kd(!1);for(U=e;null!==U;){f=!1;g=void 0;try{for(;null!==U;){if(U.effectTag&256){var u=U.alternate;k=U;switch(k.tag){case 2:if(k.effectTag&256&&null!==u){var y=u.memoizedProps,D=u.memoizedState,ja=k.stateNode;ja.props=k.memoizedProps;ja.state=k.memoizedState;var ni=ja.getSnapshotBeforeUpdate(y,\nD);ja.__reactInternalSnapshotBeforeUpdate=ni}break;case 3:case 5:case 6:case 4:break;default:A(\"163\")}}U=U.nextEffect}}catch(Wa){f=!0,g=Wa}f&&(null===U?A(\"178\"):void 0,$g(U,g),null!==U&&(U=U.nextEffect))}for(U=e;null!==U;){u=!1;y=void 0;try{for(;null!==U;){var q=U.effectTag;q&16&&Le(U.stateNode,\"\");if(q&128){var z=U.alternate;if(null!==z){var l=z.ref;null!==l&&(\"function\"===typeof l?l(null):l.current=null)}}switch(q&14){case 2:dh(U);U.effectTag&=-3;break;case 6:dh(U);U.effectTag&=-3;eh(U.alternate,\nU);break;case 4:eh(U.alternate,U);break;case 8:D=U,bh(D),D.return=null,D.child=null,D.alternate&&(D.alternate.child=null,D.alternate.return=null)}U=U.nextEffect}}catch(Wa){u=!0,y=Wa}u&&(null===U?A(\"178\"):void 0,$g(U,y),null!==U&&(U=U.nextEffect))}l=cf;z=da();q=l.focusedElem;u=l.selectionRange;if(z!==q&&fa(document.documentElement,q)){null!==u&&Vd(q)&&(z=u.start,l=u.end,void 0===l&&(l=z),\"selectionStart\"in q?(q.selectionStart=z,q.selectionEnd=Math.min(l,q.value.length)):window.getSelection&&(z=window.getSelection(),\ny=q[lb()].length,l=Math.min(u.start,y),u=void 0===u.end?l:Math.min(u.end,y),!z.extend&&l>u&&(y=u,u=l,l=y),y=Ud(q,l),D=Ud(q,u),y&&D&&(1!==z.rangeCount||z.anchorNode!==y.node||z.anchorOffset!==y.offset||z.focusNode!==D.node||z.focusOffset!==D.offset)&&(ja=document.createRange(),ja.setStart(y.node,y.offset),z.removeAllRanges(),l>u?(z.addRange(ja),z.extend(D.node,D.offset)):(ja.setEnd(D.node,D.offset),z.addRange(ja)))));z=[];for(l=q;l=l.parentNode;)1===l.nodeType&&z.push({element:l,left:l.scrollLeft,\ntop:l.scrollTop});\"function\"===typeof q.focus&&q.focus();for(q=0;q<z.length;q++)l=z[q],l.element.scrollLeft=l.left,l.element.scrollTop=l.top}cf=null;Kd(bf);bf=null;c.current=b;for(U=e;null!==U;){e=!1;q=void 0;try{for(z=d;null!==U;){var ig=U.effectTag;if(ig&36){var oc=U.alternate;l=U;u=z;switch(l.tag){case 2:var ca=l.stateNode;if(l.effectTag&4)if(null===oc)ca.props=l.memoizedProps,ca.state=l.memoizedState,ca.componentDidMount();else{var xi=oc.memoizedProps,yi=oc.memoizedState;ca.props=l.memoizedProps;\nca.state=l.memoizedState;ca.componentDidUpdate(xi,yi,ca.__reactInternalSnapshotBeforeUpdate)}var Og=l.updateQueue;null!==Og&&(ca.props=l.memoizedProps,ca.state=l.memoizedState,Xf(l,Og,ca,u));break;case 3:var Pg=l.updateQueue;if(null!==Pg){y=null;if(null!==l.child)switch(l.child.tag){case 5:y=l.child.stateNode;break;case 2:y=l.child.stateNode}Xf(l,Pg,y,u)}break;case 5:var zi=l.stateNode;null===oc&&l.effectTag&4&&df(l.type,l.memoizedProps)&&zi.focus();break;case 6:break;case 4:break;case 15:break;case 16:break;\ndefault:A(\"163\")}}if(ig&128){l=void 0;var yc=U.ref;if(null!==yc){var Qg=U.stateNode;switch(U.tag){case 5:l=Qg;break;default:l=Qg}\"function\"===typeof yc?yc(l):yc.current=l}}var Ai=U.nextEffect;U.nextEffect=null;U=Ai}}catch(Wa){e=!0,q=Wa}e&&(null===U?A(\"178\"):void 0,$g(U,q),null!==U&&(U=U.nextEffect))}qh=uh=!1;\"function\"===typeof Kf&&Kf(b.stateNode);b=c.current.expirationTime;0===b&&(ih=null);a.remainingExpirationTime=b}function Ah(){return null===Qh||Qh.timeRemaining()>Th?!1:Nh=!0}\nfunction gh(a){null===X?A(\"246\"):void 0;X.remainingExpirationTime=0;Oh||(Oh=!0,Ph=a)}function Ch(a){null===X?A(\"246\"):void 0;X.remainingExpirationTime=a}function ci(a,b){var c=Z;Z=!0;try{return a(b)}finally{(Z=c)||W||Xh()}}function di(a,b){if(Z&&!Rh){Rh=!0;try{return a(b)}finally{Rh=!1}}return a(b)}function ei(a,b){W?A(\"187\"):void 0;var c=Z;Z=!0;try{return Jh(a,b)}finally{Z=c,Xh()}}\nfunction fi(a,b,c){if(Eh)return a(b,c);Z||W||0===Fh||(Zh(Fh,!1,null),Fh=0);var d=Eh,e=Z;Z=Eh=!0;try{return a(b,c)}finally{Eh=d,(Z=e)||W||Xh()}}function gi(a){var b=Z;Z=!0;try{Jh(a)}finally{(Z=b)||W||Zh(1,!1,null)}}\nfunction hi(a,b,c,d,e){var f=b.current;if(c){c=c._reactInternalFiber;var g;b:{2===kd(c)&&2===c.tag?void 0:A(\"170\");for(g=c;3!==g.tag;){if(rf(g)){g=g.stateNode.__reactInternalMemoizedMergedChildContext;break b}(g=g.return)?void 0:A(\"171\")}g=g.stateNode.context}c=rf(c)?wf(c,g):g}else c=ha;null===b.context?b.context=c:b.pendingContext=c;b=e;e=Pf(d);e.payload={element:a};b=void 0===b?null:b;null!==b&&(e.callback=b);Rf(f,e,d);pg(f,d);return d}\nfunction ii(a){var b=a._reactInternalFiber;void 0===b&&(\"function\"===typeof a.render?A(\"188\"):A(\"268\",Object.keys(a)));a=nd(b);return null===a?null:a.stateNode}function ji(a,b,c,d){var e=b.current,f=ng();e=og(f,e);return hi(a,b,c,e,d)}function ki(a){a=a.current;if(!a.child)return null;switch(a.child.tag){case 5:return a.child.stateNode;default:return a.child.stateNode}}\nfunction li(a){var b=a.findFiberByHostInstance;return Jf(p({},a,{findHostInstanceByFiber:function(a){a=nd(a);return null===a?null:a.stateNode},findFiberByHostInstance:function(a){return b?b(a):null}}))}\nvar mi={updateContainerAtExpirationTime:hi,createContainer:function(a,b,c){return Ff(a,b,c)},updateContainer:ji,flushRoot:ai,requestWork:Bh,computeUniqueAsyncExpiration:Dh,batchedUpdates:ci,unbatchedUpdates:di,deferredUpdates:Ih,syncUpdates:Jh,interactiveUpdates:fi,flushInteractiveUpdates:function(){W||0===Fh||(Zh(Fh,!1,null),Fh=0)},flushControlled:gi,flushSync:ei,getPublicRootInstance:ki,findHostInstance:ii,findHostInstanceWithNoPortals:function(a){a=od(a);return null===a?null:a.stateNode},injectIntoDevTools:li};\nfunction oi(a,b,c){var d=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:hc,key:null==d?null:\"\"+d,children:a,containerInfo:b,implementation:c}}Kb.injectFiberControlledHostComponent(af);function pi(a){this._expirationTime=Dh();this._root=a;this._callbacks=this._next=null;this._hasChildren=this._didComplete=!1;this._children=null;this._defer=!0}\npi.prototype.render=function(a){this._defer?void 0:A(\"250\");this._hasChildren=!0;this._children=a;var b=this._root._internalRoot,c=this._expirationTime,d=new qi;hi(a,b,null,c,d._onCommit);return d};pi.prototype.then=function(a){if(this._didComplete)a();else{var b=this._callbacks;null===b&&(b=this._callbacks=[]);b.push(a)}};\npi.prototype.commit=function(){var a=this._root._internalRoot,b=a.firstBatch;this._defer&&null!==b?void 0:A(\"251\");if(this._hasChildren){var c=this._expirationTime;if(b!==this){this._hasChildren&&(c=this._expirationTime=b._expirationTime,this.render(this._children));for(var d=null,e=b;e!==this;)d=e,e=e._next;null===d?A(\"251\"):void 0;d._next=e._next;this._next=b;a.firstBatch=this}this._defer=!1;ai(a,c);b=this._next;this._next=null;b=a.firstBatch=b;null!==b&&b._hasChildren&&b.render(b._children)}else this._next=\nnull,this._defer=!1};pi.prototype._onComplete=function(){if(!this._didComplete){this._didComplete=!0;var a=this._callbacks;if(null!==a)for(var b=0;b<a.length;b++)(0,a[b])()}};function qi(){this._callbacks=null;this._didCommit=!1;this._onCommit=this._onCommit.bind(this)}qi.prototype.then=function(a){if(this._didCommit)a();else{var b=this._callbacks;null===b&&(b=this._callbacks=[]);b.push(a)}};\nqi.prototype._onCommit=function(){if(!this._didCommit){this._didCommit=!0;var a=this._callbacks;if(null!==a)for(var b=0;b<a.length;b++){var c=a[b];\"function\"!==typeof c?A(\"191\",c):void 0;c()}}};function ri(a,b,c){this._internalRoot=Ff(a,b,c)}ri.prototype.render=function(a,b){var c=this._internalRoot,d=new qi;b=void 0===b?null:b;null!==b&&d.then(b);ji(a,c,null,d._onCommit);return d};\nri.prototype.unmount=function(a){var b=this._internalRoot,c=new qi;a=void 0===a?null:a;null!==a&&c.then(a);ji(null,b,null,c._onCommit);return c};ri.prototype.legacy_renderSubtreeIntoContainer=function(a,b,c){var d=this._internalRoot,e=new qi;c=void 0===c?null:c;null!==c&&e.then(c);ji(b,d,a,e._onCommit);return e};\nri.prototype.createBatch=function(){var a=new pi(this),b=a._expirationTime,c=this._internalRoot,d=c.firstBatch;if(null===d)c.firstBatch=a,a._next=null;else{for(c=null;null!==d&&d._expirationTime<=b;)c=d,d=d._next;a._next=d;null!==c&&(c._next=a)}return a};function si(a){return!(!a||1!==a.nodeType&&9!==a.nodeType&&11!==a.nodeType&&(8!==a.nodeType||\" react-mount-point-unstable \"!==a.nodeValue))}Sb=mi.batchedUpdates;Tb=mi.interactiveUpdates;Ub=mi.flushInteractiveUpdates;\nfunction ti(a,b){b||(b=a?9===a.nodeType?a.documentElement:a.firstChild:null,b=!(!b||1!==b.nodeType||!b.hasAttribute(\"data-reactroot\")));if(!b)for(var c;c=a.lastChild;)a.removeChild(c);return new ri(a,!1,b)}\nfunction ui(a,b,c,d,e){si(c)?void 0:A(\"200\");var f=c._reactRootContainer;if(f){if(\"function\"===typeof e){var g=e;e=function(){var a=ki(f._internalRoot);g.call(a)}}null!=a?f.legacy_renderSubtreeIntoContainer(a,b,e):f.render(b,e)}else{f=c._reactRootContainer=ti(c,d);if(\"function\"===typeof e){var h=e;e=function(){var a=ki(f._internalRoot);h.call(a)}}di(function(){null!=a?f.legacy_renderSubtreeIntoContainer(a,b,e):f.render(b,e)})}return ki(f._internalRoot)}\nfunction vi(a,b){var c=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;si(b)?void 0:A(\"200\");return oi(a,b,null,c)}\nvar wi={createPortal:vi,findDOMNode:function(a){return null==a?null:1===a.nodeType?a:ii(a)},hydrate:function(a,b,c){return ui(null,a,b,!0,c)},render:function(a,b,c){return ui(null,a,b,!1,c)},unstable_renderSubtreeIntoContainer:function(a,b,c,d){null==a||void 0===a._reactInternalFiber?A(\"38\"):void 0;return ui(a,b,c,!1,d)},unmountComponentAtNode:function(a){si(a)?void 0:A(\"40\");return a._reactRootContainer?(di(function(){ui(null,null,a,!1,function(){a._reactRootContainer=null})}),!0):!1},unstable_createPortal:function(){return vi.apply(void 0,\narguments)},unstable_batchedUpdates:ci,unstable_deferredUpdates:Ih,unstable_interactiveUpdates:fi,flushSync:ei,unstable_flushControlled:gi,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{EventPluginHub:Ka,EventPluginRegistry:va,EventPropagators:$a,ReactControlledComponent:Rb,ReactDOMComponentTree:Qa,ReactDOMEventListener:Od},unstable_createRoot:function(a,b){return new ri(a,!0,null!=b&&!0===b.hydrate)}};li({findFiberByHostInstance:Na,bundleType:0,version:\"16.4.2\",rendererPackageName:\"react-dom\"});\nvar Bi={default:wi},Ci=Bi&&wi||Bi;module.exports=Ci.default?Ci.default:Ci;\n"
},
{
"id": 83,
"identifier": "/Users/user/Projects/orchid/node_modules/fbjs/lib/ExecutionEnvironment.js",
"name": "./node_modules/fbjs/lib/ExecutionEnvironment.js",
"index": 10,
"index2": 7,
"size": 935,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/react-dom/cjs/react-dom.production.min.js",
"issuerId": 82,
"issuerName": "./node_modules/react-dom/cjs/react-dom.production.min.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 81,
"identifier": "/Users/user/Projects/orchid/node_modules/react-dom/index.js",
"name": "./node_modules/react-dom/index.js"
},
{
"id": 82,
"identifier": "/Users/user/Projects/orchid/node_modules/react-dom/cjs/react-dom.production.min.js",
"name": "./node_modules/react-dom/cjs/react-dom.production.min.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 82,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/react-dom/cjs/react-dom.production.min.js",
"module": "./node_modules/react-dom/cjs/react-dom.production.min.js",
"moduleName": "./node_modules/react-dom/cjs/react-dom.production.min.js",
"type": "cjs require",
"userRequest": "fbjs/lib/ExecutionEnvironment",
"loc": "13:72-112"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 3,
"source": "/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\n'use strict';\n\nvar canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);\n\n/**\n * Simple, lightweight module assisting with the detection and context of\n * Worker. Helps avoid circular dependencies and allows code to reason about\n * whether or not they are in a Worker, even if they never include the main\n * `ReactWorker` dependency.\n */\nvar ExecutionEnvironment = {\n\n canUseDOM: canUseDOM,\n\n canUseWorkers: typeof Worker !== 'undefined',\n\n canUseEventListeners: canUseDOM && !!(window.addEventListener || window.attachEvent),\n\n canUseViewport: canUseDOM && !!window.screen,\n\n isInWorker: !canUseDOM // For now, this is true - might change in the future.\n\n};\n\nmodule.exports = ExecutionEnvironment;"
},
{
"id": 84,
"identifier": "/Users/user/Projects/orchid/node_modules/fbjs/lib/getActiveElement.js",
"name": "./node_modules/fbjs/lib/getActiveElement.js",
"index": 11,
"index2": 8,
"size": 912,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/react-dom/cjs/react-dom.production.min.js",
"issuerId": 82,
"issuerName": "./node_modules/react-dom/cjs/react-dom.production.min.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 81,
"identifier": "/Users/user/Projects/orchid/node_modules/react-dom/index.js",
"name": "./node_modules/react-dom/index.js"
},
{
"id": 82,
"identifier": "/Users/user/Projects/orchid/node_modules/react-dom/cjs/react-dom.production.min.js",
"name": "./node_modules/react-dom/cjs/react-dom.production.min.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 82,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/react-dom/cjs/react-dom.production.min.js",
"module": "./node_modules/react-dom/cjs/react-dom.production.min.js",
"moduleName": "./node_modules/react-dom/cjs/react-dom.production.min.js",
"type": "cjs require",
"userRequest": "fbjs/lib/getActiveElement",
"loc": "13:179-215"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 3,
"source": "'use strict';\n\n/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @typechecks\n */\n\n/* eslint-disable fb-www/typeof-undefined */\n\n/**\n * Same as document.activeElement but wraps in a try-catch block. In IE it is\n * not safe to call document.activeElement if there is nothing focused.\n *\n * The activeElement will be null only if the document or document body is not\n * yet defined.\n *\n * @param {?DOMDocument} doc Defaults to current document.\n * @return {?DOMElement}\n */\nfunction getActiveElement(doc) /*?DOMElement*/{\n doc = doc || (typeof document !== 'undefined' ? document : undefined);\n if (typeof doc === 'undefined') {\n return null;\n }\n try {\n return doc.activeElement || doc.body;\n } catch (e) {\n return doc.body;\n }\n}\n\nmodule.exports = getActiveElement;"
},
{
"id": 85,
"identifier": "/Users/user/Projects/orchid/node_modules/fbjs/lib/shallowEqual.js",
"name": "./node_modules/fbjs/lib/shallowEqual.js",
"index": 12,
"index2": 9,
"size": 1616,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/react-dom/cjs/react-dom.production.min.js",
"issuerId": 82,
"issuerName": "./node_modules/react-dom/cjs/react-dom.production.min.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 81,
"identifier": "/Users/user/Projects/orchid/node_modules/react-dom/index.js",
"name": "./node_modules/react-dom/index.js"
},
{
"id": 82,
"identifier": "/Users/user/Projects/orchid/node_modules/react-dom/cjs/react-dom.production.min.js",
"name": "./node_modules/react-dom/cjs/react-dom.production.min.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 82,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/react-dom/cjs/react-dom.production.min.js",
"module": "./node_modules/react-dom/cjs/react-dom.production.min.js",
"moduleName": "./node_modules/react-dom/cjs/react-dom.production.min.js",
"type": "cjs require",
"userRequest": "fbjs/lib/shallowEqual",
"loc": "13:219-251"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 3,
"source": "/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @typechecks\n * \n */\n\n/*eslint-disable no-self-compare */\n\n'use strict';\n\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\n\n/**\n * inlined Object.is polyfill to avoid requiring consumers ship their own\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is\n */\nfunction is(x, y) {\n // SameValue algorithm\n if (x === y) {\n // Steps 1-5, 7-10\n // Steps 6.b-6.e: +0 != -0\n // Added the nonzero y check to make Flow happy, but it is redundant\n return x !== 0 || y !== 0 || 1 / x === 1 / y;\n } else {\n // Step 6.a: NaN == NaN\n return x !== x && y !== y;\n }\n}\n\n/**\n * Performs equality by iterating through keys on an object and returning false\n * when any key has values which are not strictly equal between the arguments.\n * Returns true when the values of all keys are strictly equal.\n */\nfunction shallowEqual(objA, objB) {\n if (is(objA, objB)) {\n return true;\n }\n\n if (typeof objA !== 'object' || objA === null || typeof objB !== 'object' || objB === null) {\n return false;\n }\n\n var keysA = Object.keys(objA);\n var keysB = Object.keys(objB);\n\n if (keysA.length !== keysB.length) {\n return false;\n }\n\n // Test for A's keys different from B.\n for (var i = 0; i < keysA.length; i++) {\n if (!hasOwnProperty.call(objB, keysA[i]) || !is(objA[keysA[i]], objB[keysA[i]])) {\n return false;\n }\n }\n\n return true;\n}\n\nmodule.exports = shallowEqual;"
},
{
"id": 86,
"identifier": "/Users/user/Projects/orchid/node_modules/fbjs/lib/containsNode.js",
"name": "./node_modules/fbjs/lib/containsNode.js",
"index": 13,
"index2": 12,
"size": 923,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/react-dom/cjs/react-dom.production.min.js",
"issuerId": 82,
"issuerName": "./node_modules/react-dom/cjs/react-dom.production.min.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 81,
"identifier": "/Users/user/Projects/orchid/node_modules/react-dom/index.js",
"name": "./node_modules/react-dom/index.js"
},
{
"id": 82,
"identifier": "/Users/user/Projects/orchid/node_modules/react-dom/cjs/react-dom.production.min.js",
"name": "./node_modules/react-dom/cjs/react-dom.production.min.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 82,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/react-dom/cjs/react-dom.production.min.js",
"module": "./node_modules/react-dom/cjs/react-dom.production.min.js",
"moduleName": "./node_modules/react-dom/cjs/react-dom.production.min.js",
"type": "cjs require",
"userRequest": "fbjs/lib/containsNode",
"loc": "13:255-287"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 3,
"source": "'use strict';\n\n/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n */\n\nvar isTextNode = require('./isTextNode');\n\n/*eslint-disable no-bitwise */\n\n/**\n * Checks if a given DOM node contains or is another DOM node.\n */\nfunction containsNode(outerNode, innerNode) {\n if (!outerNode || !innerNode) {\n return false;\n } else if (outerNode === innerNode) {\n return true;\n } else if (isTextNode(outerNode)) {\n return false;\n } else if (isTextNode(innerNode)) {\n return containsNode(outerNode, innerNode.parentNode);\n } else if ('contains' in outerNode) {\n return outerNode.contains(innerNode);\n } else if (outerNode.compareDocumentPosition) {\n return !!(outerNode.compareDocumentPosition(innerNode) & 16);\n } else {\n return false;\n }\n}\n\nmodule.exports = containsNode;"
},
{
"id": 87,
"identifier": "/Users/user/Projects/orchid/node_modules/fbjs/lib/isTextNode.js",
"name": "./node_modules/fbjs/lib/isTextNode.js",
"index": 14,
"index2": 11,
"size": 479,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/fbjs/lib/containsNode.js",
"issuerId": 86,
"issuerName": "./node_modules/fbjs/lib/containsNode.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 81,
"identifier": "/Users/user/Projects/orchid/node_modules/react-dom/index.js",
"name": "./node_modules/react-dom/index.js"
},
{
"id": 82,
"identifier": "/Users/user/Projects/orchid/node_modules/react-dom/cjs/react-dom.production.min.js",
"name": "./node_modules/react-dom/cjs/react-dom.production.min.js"
},
{
"id": 86,
"identifier": "/Users/user/Projects/orchid/node_modules/fbjs/lib/containsNode.js",
"name": "./node_modules/fbjs/lib/containsNode.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 86,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/fbjs/lib/containsNode.js",
"module": "./node_modules/fbjs/lib/containsNode.js",
"moduleName": "./node_modules/fbjs/lib/containsNode.js",
"type": "cjs require",
"userRequest": "./isTextNode",
"loc": "12:17-40"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 4,
"source": "'use strict';\n\n/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @typechecks\n */\n\nvar isNode = require('./isNode');\n\n/**\n * @param {*} object The object to check.\n * @return {boolean} Whether or not the object is a DOM text node.\n */\nfunction isTextNode(object) {\n return isNode(object) && object.nodeType == 3;\n}\n\nmodule.exports = isTextNode;"
},
{
"id": 88,
"identifier": "/Users/user/Projects/orchid/node_modules/fbjs/lib/isNode.js",
"name": "./node_modules/fbjs/lib/isNode.js",
"index": 15,
"index2": 10,
"size": 702,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/fbjs/lib/isTextNode.js",
"issuerId": 87,
"issuerName": "./node_modules/fbjs/lib/isTextNode.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 81,
"identifier": "/Users/user/Projects/orchid/node_modules/react-dom/index.js",
"name": "./node_modules/react-dom/index.js"
},
{
"id": 82,
"identifier": "/Users/user/Projects/orchid/node_modules/react-dom/cjs/react-dom.production.min.js",
"name": "./node_modules/react-dom/cjs/react-dom.production.min.js"
},
{
"id": 86,
"identifier": "/Users/user/Projects/orchid/node_modules/fbjs/lib/containsNode.js",
"name": "./node_modules/fbjs/lib/containsNode.js"
},
{
"id": 87,
"identifier": "/Users/user/Projects/orchid/node_modules/fbjs/lib/isTextNode.js",
"name": "./node_modules/fbjs/lib/isTextNode.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 87,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/fbjs/lib/isTextNode.js",
"module": "./node_modules/fbjs/lib/isTextNode.js",
"moduleName": "./node_modules/fbjs/lib/isTextNode.js",
"type": "cjs require",
"userRequest": "./isNode",
"loc": "12:13-32"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 5,
"source": "'use strict';\n\n/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @typechecks\n */\n\n/**\n * @param {*} object The object to check.\n * @return {boolean} Whether or not the object is a DOM node.\n */\nfunction isNode(object) {\n var doc = object ? object.ownerDocument || object : document;\n var defaultView = doc.defaultView || window;\n return !!(object && (typeof defaultView.Node === 'function' ? object instanceof defaultView.Node : typeof object === 'object' && typeof object.nodeType === 'number' && typeof object.nodeName === 'string'));\n}\n\nmodule.exports = isNode;"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx",
"index": 16,
"index2": 187,
"size": 4256,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"issuerId": 79,
"issuerName": "./src/index.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 79,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"module": "./src/index.js",
"moduleName": "./src/index.js",
"type": "cjs require",
"userRequest": "$containers/App",
"loc": "16:11-37"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 1,
"source": "'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.App = undefined;\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = require('babel-runtime/helpers/inherits');\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _Editor = require('$modules/Editor');\n\nvar _modes = require('$constants/modes');\n\nrequire('$sprites/icons.svg');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n(function () {\n var enterModule = require('react-hot-loader').enterModule;\n\n enterModule && enterModule(module);\n})();\n\nvar App = exports.App = function (_React$Component) {\n (0, _inherits3.default)(App, _React$Component);\n\n function App() {\n var _ref;\n\n var _temp, _this, _ret;\n\n (0, _classCallCheck3.default)(this, App);\n\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return _ret = (_temp = (_this = (0, _possibleConstructorReturn3.default)(this, (_ref = App.__proto__ || Object.getPrototypeOf(App)).call.apply(_ref, [this].concat(args))), _this), _this.state = {\n mode: 'none'\n }, _this.setMode = function (mode) {\n _this.setState({ mode: mode });\n }, _this.startPolyMode = function () {\n return _this.editor.changeMode(_modes.MODES.POLY);\n }, _this.startStickerMode = function () {\n return _this.editor.changeMode(_modes.MODES.STICKERS);\n }, _this.startRouterMode = function () {\n return _this.editor.changeMode(_modes.MODES.ROUTER);\n }, _this.startShotterMode = function () {\n return _this.editor.changeMode(_modes.MODES.SHOTTER);\n }, _temp), (0, _possibleConstructorReturn3.default)(_this, _ret);\n }\n\n (0, _createClass3.default)(App, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n var container = 'map';\n var mode = this.state.mode;\n\n\n this.editor = new _Editor.Editor({\n container: container,\n mode: mode,\n setMode: this.setMode\n });\n }\n }, {\n key: 'render',\n value: function render() {\n var mode = this.state.mode;\n\n\n return _react2.default.createElement(\n 'div',\n null,\n _react2.default.createElement('div', { id: 'map' }),\n _react2.default.createElement(\n 'div',\n { id: 'control-screen' },\n _react2.default.createElement(\n 'button',\n { onClick: this.startPolyMode },\n mode === _modes.MODES.POLY && '-->',\n _modes.MODES.POLY\n ),\n _react2.default.createElement(\n 'button',\n { onClick: this.startStickerMode },\n mode === _modes.MODES.STICKERS && '-->',\n _modes.MODES.STICKERS\n ),\n _react2.default.createElement(\n 'button',\n { onClick: this.startRouterMode },\n mode === _modes.MODES.ROUTER && '-->',\n _modes.MODES.ROUTER\n ),\n _react2.default.createElement(\n 'button',\n { onClick: this.startShotterMode },\n mode === _modes.MODES.SHOTTER && '-->',\n _modes.MODES.SHOTTER\n )\n )\n );\n }\n }, {\n key: '__reactstandin__regenerateByEval',\n // @ts-ignore\n value: function __reactstandin__regenerateByEval(key, code) {\n // @ts-ignore\n this[key] = eval(code);\n }\n }]);\n return App;\n}(_react2.default.Component);\n\n;\n\n(function () {\n var reactHotLoader = require('react-hot-loader').default;\n\n var leaveModule = require('react-hot-loader').leaveModule;\n\n if (!reactHotLoader) {\n return;\n }\n\n reactHotLoader.register(App, 'App', '/Users/user/Projects/orchid/src/containers/App.jsx');\n leaveModule(module);\n})();\n\n;"
},
{
"id": 90,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/object/define-property.js",
"name": "./node_modules/core-js/library/fn/object/define-property.js",
"index": 20,
"index2": 33,
"size": 215,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/object/define-property.js",
"issuerId": 51,
"issuerName": "./node_modules/babel-runtime/core-js/object/define-property.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 7,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/createClass.js",
"name": "./node_modules/babel-runtime/helpers/createClass.js"
},
{
"id": 51,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/object/define-property.js",
"name": "./node_modules/babel-runtime/core-js/object/define-property.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 51,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/object/define-property.js",
"module": "./node_modules/babel-runtime/core-js/object/define-property.js",
"moduleName": "./node_modules/babel-runtime/core-js/object/define-property.js",
"type": "cjs require",
"userRequest": "core-js/library/fn/object/define-property",
"loc": "1:30-82"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 4,
"source": "require('../../modules/es6.object.define-property');\nvar $Object = require('../../modules/_core').Object;\nmodule.exports = function defineProperty(it, key, desc) {\n return $Object.defineProperty(it, key, desc);\n};\n"
},
{
"id": 91,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.object.define-property.js",
"name": "./node_modules/core-js/library/modules/es6.object.define-property.js",
"index": 21,
"index2": 32,
"size": 217,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/object/define-property.js",
"issuerId": 90,
"issuerName": "./node_modules/core-js/library/fn/object/define-property.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 7,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/createClass.js",
"name": "./node_modules/babel-runtime/helpers/createClass.js"
},
{
"id": 51,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/object/define-property.js",
"name": "./node_modules/babel-runtime/core-js/object/define-property.js"
},
{
"id": 90,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/object/define-property.js",
"name": "./node_modules/core-js/library/fn/object/define-property.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 90,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/object/define-property.js",
"module": "./node_modules/core-js/library/fn/object/define-property.js",
"moduleName": "./node_modules/core-js/library/fn/object/define-property.js",
"type": "cjs require",
"userRequest": "../../modules/es6.object.define-property",
"loc": "1:0-51"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 5,
"source": "var $export = require('./_export');\n// 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)\n$export($export.S + $export.F * !require('./_descriptors'), 'Object', { defineProperty: require('./_object-dp').f });\n"
},
{
"id": 92,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_a-function.js",
"name": "./node_modules/core-js/library/modules/_a-function.js",
"index": 26,
"index2": 18,
"size": 125,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_ctx.js",
"issuerId": 26,
"issuerName": "./node_modules/core-js/library/modules/_ctx.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 146,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"name": "./src/modules/Router.js"
},
{
"id": 152,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/toConsumableArray.js",
"name": "./node_modules/babel-runtime/helpers/toConsumableArray.js"
},
{
"id": 153,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/array/from.js",
"name": "./node_modules/babel-runtime/core-js/array/from.js"
},
{
"id": 154,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/array/from.js",
"name": "./node_modules/core-js/library/fn/array/from.js"
},
{
"id": 155,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.array.from.js",
"name": "./node_modules/core-js/library/modules/es6.array.from.js"
},
{
"id": 26,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_ctx.js",
"name": "./node_modules/core-js/library/modules/_ctx.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 26,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_ctx.js",
"module": "./node_modules/core-js/library/modules/_ctx.js",
"moduleName": "./node_modules/core-js/library/modules/_ctx.js",
"type": "cjs require",
"userRequest": "./_a-function",
"loc": "2:16-40"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 8,
"source": "module.exports = function (it) {\n if (typeof it != 'function') throw TypeError(it + ' is not a function!');\n return it;\n};\n"
},
{
"id": 93,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"name": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"index": 38,
"index2": 87,
"size": 542,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"issuerId": 89,
"issuerName": "./src/containers/App.jsx",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 89,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"module": "./src/containers/App.jsx",
"moduleName": "./src/containers/App.jsx",
"type": "cjs require",
"userRequest": "babel-runtime/helpers/possibleConstructorReturn",
"loc": "16:34-92"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 2,
"source": "\"use strict\";\n\nexports.__esModule = true;\n\nvar _typeof2 = require(\"../helpers/typeof\");\n\nvar _typeof3 = _interopRequireDefault(_typeof2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function (self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && ((typeof call === \"undefined\" ? \"undefined\" : (0, _typeof3.default)(call)) === \"object\" || typeof call === \"function\") ? call : self;\n};"
},
{
"id": 94,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol/iterator.js",
"name": "./node_modules/babel-runtime/core-js/symbol/iterator.js",
"index": 40,
"index2": 70,
"size": 96,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"issuerId": 54,
"issuerName": "./node_modules/babel-runtime/helpers/typeof.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 93,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"name": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"
},
{
"id": 54,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"name": "./node_modules/babel-runtime/helpers/typeof.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 54,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"module": "./node_modules/babel-runtime/helpers/typeof.js",
"moduleName": "./node_modules/babel-runtime/helpers/typeof.js",
"type": "cjs require",
"userRequest": "../core-js/symbol/iterator",
"loc": "5:16-53"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 4,
"source": "module.exports = { \"default\": require(\"core-js/library/fn/symbol/iterator\"), __esModule: true };"
},
{
"id": 95,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/iterator.js",
"name": "./node_modules/core-js/library/fn/symbol/iterator.js",
"index": 41,
"index2": 69,
"size": 155,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol/iterator.js",
"issuerId": 94,
"issuerName": "./node_modules/babel-runtime/core-js/symbol/iterator.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 93,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"name": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"
},
{
"id": 54,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"name": "./node_modules/babel-runtime/helpers/typeof.js"
},
{
"id": 94,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol/iterator.js",
"name": "./node_modules/babel-runtime/core-js/symbol/iterator.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 94,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol/iterator.js",
"module": "./node_modules/babel-runtime/core-js/symbol/iterator.js",
"moduleName": "./node_modules/babel-runtime/core-js/symbol/iterator.js",
"type": "cjs require",
"userRequest": "core-js/library/fn/symbol/iterator",
"loc": "1:30-75"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 5,
"source": "require('../../modules/es6.string.iterator');\nrequire('../../modules/web.dom.iterable');\nmodule.exports = require('../../modules/_wks-ext').f('iterator');\n"
},
{
"id": 96,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_string-at.js",
"name": "./node_modules/core-js/library/modules/_string-at.js",
"index": 43,
"index2": 38,
"size": 620,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.string.iterator.js",
"issuerId": 21,
"issuerName": "./node_modules/core-js/library/modules/es6.string.iterator.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 93,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"name": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"
},
{
"id": 54,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"name": "./node_modules/babel-runtime/helpers/typeof.js"
},
{
"id": 94,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol/iterator.js",
"name": "./node_modules/babel-runtime/core-js/symbol/iterator.js"
},
{
"id": 95,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/iterator.js",
"name": "./node_modules/core-js/library/fn/symbol/iterator.js"
},
{
"id": 21,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.string.iterator.js",
"name": "./node_modules/core-js/library/modules/es6.string.iterator.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 21,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.string.iterator.js",
"module": "./node_modules/core-js/library/modules/es6.string.iterator.js",
"moduleName": "./node_modules/core-js/library/modules/es6.string.iterator.js",
"type": "cjs require",
"userRequest": "./_string-at",
"loc": "2:10-33"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "var toInteger = require('./_to-integer');\nvar defined = require('./_defined');\n// true -> String#at\n// false -> String#codePointAt\nmodule.exports = function (TO_STRING) {\n return function (that, pos) {\n var s = String(defined(that));\n var i = toInteger(pos);\n var l = s.length;\n var a, b;\n if (i < 0 || i >= l) return TO_STRING ? '' : undefined;\n a = s.charCodeAt(i);\n return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff\n ? TO_STRING ? s.charAt(i) : a\n : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;\n };\n};\n"
},
{
"id": 97,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_iter-create.js",
"name": "./node_modules/core-js/library/modules/_iter-create.js",
"index": 50,
"index2": 59,
"size": 526,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_iter-define.js",
"issuerId": 55,
"issuerName": "./node_modules/core-js/library/modules/_iter-define.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 93,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"name": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"
},
{
"id": 54,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"name": "./node_modules/babel-runtime/helpers/typeof.js"
},
{
"id": 94,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol/iterator.js",
"name": "./node_modules/babel-runtime/core-js/symbol/iterator.js"
},
{
"id": 95,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/iterator.js",
"name": "./node_modules/core-js/library/fn/symbol/iterator.js"
},
{
"id": 21,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.string.iterator.js",
"name": "./node_modules/core-js/library/modules/es6.string.iterator.js"
},
{
"id": 55,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_iter-define.js",
"name": "./node_modules/core-js/library/modules/_iter-define.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 55,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_iter-define.js",
"module": "./node_modules/core-js/library/modules/_iter-define.js",
"moduleName": "./node_modules/core-js/library/modules/_iter-define.js",
"type": "cjs require",
"userRequest": "./_iter-create",
"loc": "7:18-43"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 8,
"source": "'use strict';\nvar create = require('./_object-create');\nvar descriptor = require('./_property-desc');\nvar setToStringTag = require('./_set-to-string-tag');\nvar IteratorPrototype = {};\n\n// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()\nrequire('./_hide')(IteratorPrototype, require('./_wks')('iterator'), function () { return this; });\n\nmodule.exports = function (Constructor, NAME, next) {\n Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) });\n setToStringTag(Constructor, NAME + ' Iterator');\n};\n"
},
{
"id": 98,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-dps.js",
"name": "./node_modules/core-js/library/modules/_object-dps.js",
"index": 52,
"index2": 54,
"size": 404,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-create.js",
"issuerId": 30,
"issuerName": "./node_modules/core-js/library/modules/_object-create.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 116,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/inherits.js",
"name": "./node_modules/babel-runtime/helpers/inherits.js"
},
{
"id": 121,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/object/create.js",
"name": "./node_modules/babel-runtime/core-js/object/create.js"
},
{
"id": 122,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/object/create.js",
"name": "./node_modules/core-js/library/fn/object/create.js"
},
{
"id": 123,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.object.create.js",
"name": "./node_modules/core-js/library/modules/es6.object.create.js"
},
{
"id": 30,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-create.js",
"name": "./node_modules/core-js/library/modules/_object-create.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 30,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-create.js",
"module": "./node_modules/core-js/library/modules/_object-create.js",
"moduleName": "./node_modules/core-js/library/modules/_object-create.js",
"type": "cjs require",
"userRequest": "./_object-dps",
"loc": "3:10-34"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "var dP = require('./_object-dp');\nvar anObject = require('./_an-object');\nvar getKeys = require('./_object-keys');\n\nmodule.exports = require('./_descriptors') ? Object.defineProperties : function defineProperties(O, Properties) {\n anObject(O);\n var keys = getKeys(Properties);\n var length = keys.length;\n var i = 0;\n var P;\n while (length > i) dP.f(O, P = keys[i++], Properties[P]);\n return O;\n};\n"
},
{
"id": 99,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_array-includes.js",
"name": "./node_modules/core-js/library/modules/_array-includes.js",
"index": 58,
"index2": 47,
"size": 924,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-keys-internal.js",
"issuerId": 57,
"issuerName": "./node_modules/core-js/library/modules/_object-keys-internal.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 93,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"name": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"
},
{
"id": 54,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"name": "./node_modules/babel-runtime/helpers/typeof.js"
},
{
"id": 106,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol.js",
"name": "./node_modules/babel-runtime/core-js/symbol.js"
},
{
"id": 107,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/index.js",
"name": "./node_modules/core-js/library/fn/symbol/index.js"
},
{
"id": 108,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"name": "./node_modules/core-js/library/modules/es6.symbol.js"
},
{
"id": 23,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-keys.js",
"name": "./node_modules/core-js/library/modules/_object-keys.js"
},
{
"id": 57,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-keys-internal.js",
"name": "./node_modules/core-js/library/modules/_object-keys-internal.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 57,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-keys-internal.js",
"module": "./node_modules/core-js/library/modules/_object-keys-internal.js",
"moduleName": "./node_modules/core-js/library/modules/_object-keys-internal.js",
"type": "cjs require",
"userRequest": "./_array-includes",
"loc": "3:19-47"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 9,
"source": "// false -> Array#indexOf\n// true -> Array#includes\nvar toIObject = require('./_to-iobject');\nvar toLength = require('./_to-length');\nvar toAbsoluteIndex = require('./_to-absolute-index');\nmodule.exports = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIObject($this);\n var length = toLength(O.length);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) if (IS_INCLUDES || index in O) {\n if (O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n"
},
{
"id": 100,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_to-absolute-index.js",
"name": "./node_modules/core-js/library/modules/_to-absolute-index.js",
"index": 60,
"index2": 46,
"size": 223,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_array-includes.js",
"issuerId": 99,
"issuerName": "./node_modules/core-js/library/modules/_array-includes.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 93,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"name": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"
},
{
"id": 54,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"name": "./node_modules/babel-runtime/helpers/typeof.js"
},
{
"id": 106,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol.js",
"name": "./node_modules/babel-runtime/core-js/symbol.js"
},
{
"id": 107,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/index.js",
"name": "./node_modules/core-js/library/fn/symbol/index.js"
},
{
"id": 108,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"name": "./node_modules/core-js/library/modules/es6.symbol.js"
},
{
"id": 23,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-keys.js",
"name": "./node_modules/core-js/library/modules/_object-keys.js"
},
{
"id": 57,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-keys-internal.js",
"name": "./node_modules/core-js/library/modules/_object-keys-internal.js"
},
{
"id": 99,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_array-includes.js",
"name": "./node_modules/core-js/library/modules/_array-includes.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 99,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_array-includes.js",
"module": "./node_modules/core-js/library/modules/_array-includes.js",
"moduleName": "./node_modules/core-js/library/modules/_array-includes.js",
"type": "cjs require",
"userRequest": "./_to-absolute-index",
"loc": "5:22-53"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 10,
"source": "var toInteger = require('./_to-integer');\nvar max = Math.max;\nvar min = Math.min;\nmodule.exports = function (index, length) {\n index = toInteger(index);\n return index < 0 ? max(index + length, 0) : min(index, length);\n};\n"
},
{
"id": 101,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_html.js",
"name": "./node_modules/core-js/library/modules/_html.js",
"index": 65,
"index2": 55,
"size": 101,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-create.js",
"issuerId": 30,
"issuerName": "./node_modules/core-js/library/modules/_object-create.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 116,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/inherits.js",
"name": "./node_modules/babel-runtime/helpers/inherits.js"
},
{
"id": 121,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/object/create.js",
"name": "./node_modules/babel-runtime/core-js/object/create.js"
},
{
"id": 122,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/object/create.js",
"name": "./node_modules/core-js/library/fn/object/create.js"
},
{
"id": 123,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.object.create.js",
"name": "./node_modules/core-js/library/modules/es6.object.create.js"
},
{
"id": 30,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-create.js",
"name": "./node_modules/core-js/library/modules/_object-create.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 30,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-create.js",
"module": "./node_modules/core-js/library/modules/_object-create.js",
"moduleName": "./node_modules/core-js/library/modules/_object-create.js",
"type": "cjs require",
"userRequest": "./_html",
"loc": "18:2-20"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "var document = require('./_global').document;\nmodule.exports = document && document.documentElement;\n"
},
{
"id": 102,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-gpo.js",
"name": "./node_modules/core-js/library/modules/_object-gpo.js",
"index": 68,
"index2": 61,
"size": 493,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_iter-define.js",
"issuerId": 55,
"issuerName": "./node_modules/core-js/library/modules/_iter-define.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 93,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"name": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"
},
{
"id": 54,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"name": "./node_modules/babel-runtime/helpers/typeof.js"
},
{
"id": 94,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol/iterator.js",
"name": "./node_modules/babel-runtime/core-js/symbol/iterator.js"
},
{
"id": 95,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/iterator.js",
"name": "./node_modules/core-js/library/fn/symbol/iterator.js"
},
{
"id": 21,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.string.iterator.js",
"name": "./node_modules/core-js/library/modules/es6.string.iterator.js"
},
{
"id": 55,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_iter-define.js",
"name": "./node_modules/core-js/library/modules/_iter-define.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 55,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_iter-define.js",
"module": "./node_modules/core-js/library/modules/_iter-define.js",
"moduleName": "./node_modules/core-js/library/modules/_iter-define.js",
"type": "cjs require",
"userRequest": "./_object-gpo",
"loc": "9:21-45"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 8,
"source": "// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)\nvar has = require('./_has');\nvar toObject = require('./_to-object');\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\nvar ObjectProto = Object.prototype;\n\nmodule.exports = Object.getPrototypeOf || function (O) {\n O = toObject(O);\n if (has(O, IE_PROTO)) return O[IE_PROTO];\n if (typeof O.constructor == 'function' && O instanceof O.constructor) {\n return O.constructor.prototype;\n } return O instanceof Object ? ObjectProto : null;\n};\n"
},
{
"id": 103,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.array.iterator.js",
"name": "./node_modules/core-js/library/modules/es6.array.iterator.js",
"index": 71,
"index2": 66,
"size": 1116,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/web.dom.iterable.js",
"issuerId": 37,
"issuerName": "./node_modules/core-js/library/modules/web.dom.iterable.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 93,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"name": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"
},
{
"id": 54,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"name": "./node_modules/babel-runtime/helpers/typeof.js"
},
{
"id": 94,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol/iterator.js",
"name": "./node_modules/babel-runtime/core-js/symbol/iterator.js"
},
{
"id": 95,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/iterator.js",
"name": "./node_modules/core-js/library/fn/symbol/iterator.js"
},
{
"id": 37,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/web.dom.iterable.js",
"name": "./node_modules/core-js/library/modules/web.dom.iterable.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 37,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/web.dom.iterable.js",
"module": "./node_modules/core-js/library/modules/web.dom.iterable.js",
"moduleName": "./node_modules/core-js/library/modules/web.dom.iterable.js",
"type": "cjs require",
"userRequest": "./es6.array.iterator",
"loc": "1:0-31"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "'use strict';\nvar addToUnscopables = require('./_add-to-unscopables');\nvar step = require('./_iter-step');\nvar Iterators = require('./_iterators');\nvar toIObject = require('./_to-iobject');\n\n// 22.1.3.4 Array.prototype.entries()\n// 22.1.3.13 Array.prototype.keys()\n// 22.1.3.29 Array.prototype.values()\n// 22.1.3.30 Array.prototype[@@iterator]()\nmodule.exports = require('./_iter-define')(Array, 'Array', function (iterated, kind) {\n this._t = toIObject(iterated); // target\n this._i = 0; // next index\n this._k = kind; // kind\n// 22.1.5.2.1 %ArrayIteratorPrototype%.next()\n}, function () {\n var O = this._t;\n var kind = this._k;\n var index = this._i++;\n if (!O || index >= O.length) {\n this._t = undefined;\n return step(1);\n }\n if (kind == 'keys') return step(0, index);\n if (kind == 'values') return step(0, O[index]);\n return step(0, [index, O[index]]);\n}, 'values');\n\n// argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)\nIterators.Arguments = Iterators.Array;\n\naddToUnscopables('keys');\naddToUnscopables('values');\naddToUnscopables('entries');\n"
},
{
"id": 104,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_add-to-unscopables.js",
"name": "./node_modules/core-js/library/modules/_add-to-unscopables.js",
"index": 72,
"index2": 64,
"size": 46,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.array.iterator.js",
"issuerId": 103,
"issuerName": "./node_modules/core-js/library/modules/es6.array.iterator.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 93,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"name": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"
},
{
"id": 54,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"name": "./node_modules/babel-runtime/helpers/typeof.js"
},
{
"id": 94,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol/iterator.js",
"name": "./node_modules/babel-runtime/core-js/symbol/iterator.js"
},
{
"id": 95,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/iterator.js",
"name": "./node_modules/core-js/library/fn/symbol/iterator.js"
},
{
"id": 37,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/web.dom.iterable.js",
"name": "./node_modules/core-js/library/modules/web.dom.iterable.js"
},
{
"id": 103,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.array.iterator.js",
"name": "./node_modules/core-js/library/modules/es6.array.iterator.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 103,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.array.iterator.js",
"module": "./node_modules/core-js/library/modules/es6.array.iterator.js",
"moduleName": "./node_modules/core-js/library/modules/es6.array.iterator.js",
"type": "cjs require",
"userRequest": "./_add-to-unscopables",
"loc": "2:23-55"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 8,
"source": "module.exports = function () { /* empty */ };\n"
},
{
"id": 105,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_iter-step.js",
"name": "./node_modules/core-js/library/modules/_iter-step.js",
"index": 73,
"index2": 65,
"size": 86,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.array.iterator.js",
"issuerId": 103,
"issuerName": "./node_modules/core-js/library/modules/es6.array.iterator.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 93,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"name": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"
},
{
"id": 54,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"name": "./node_modules/babel-runtime/helpers/typeof.js"
},
{
"id": 94,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol/iterator.js",
"name": "./node_modules/babel-runtime/core-js/symbol/iterator.js"
},
{
"id": 95,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/iterator.js",
"name": "./node_modules/core-js/library/fn/symbol/iterator.js"
},
{
"id": 37,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/web.dom.iterable.js",
"name": "./node_modules/core-js/library/modules/web.dom.iterable.js"
},
{
"id": 103,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.array.iterator.js",
"name": "./node_modules/core-js/library/modules/es6.array.iterator.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 103,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.array.iterator.js",
"module": "./node_modules/core-js/library/modules/es6.array.iterator.js",
"moduleName": "./node_modules/core-js/library/modules/es6.array.iterator.js",
"type": "cjs require",
"userRequest": "./_iter-step",
"loc": "3:11-34"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 8,
"source": "module.exports = function (done, value) {\n return { value: value, done: !!done };\n};\n"
},
{
"id": 106,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol.js",
"name": "./node_modules/babel-runtime/core-js/symbol.js",
"index": 75,
"index2": 85,
"size": 87,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"issuerId": 54,
"issuerName": "./node_modules/babel-runtime/helpers/typeof.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 93,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"name": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"
},
{
"id": 54,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"name": "./node_modules/babel-runtime/helpers/typeof.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 54,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"module": "./node_modules/babel-runtime/helpers/typeof.js",
"moduleName": "./node_modules/babel-runtime/helpers/typeof.js",
"type": "cjs require",
"userRequest": "../core-js/symbol",
"loc": "9:14-42"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 4,
"source": "module.exports = { \"default\": require(\"core-js/library/fn/symbol\"), __esModule: true };"
},
{
"id": 107,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/index.js",
"name": "./node_modules/core-js/library/fn/symbol/index.js",
"index": 76,
"index2": 84,
"size": 240,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol.js",
"issuerId": 106,
"issuerName": "./node_modules/babel-runtime/core-js/symbol.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 93,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"name": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"
},
{
"id": 54,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"name": "./node_modules/babel-runtime/helpers/typeof.js"
},
{
"id": 106,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol.js",
"name": "./node_modules/babel-runtime/core-js/symbol.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 106,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol.js",
"module": "./node_modules/babel-runtime/core-js/symbol.js",
"moduleName": "./node_modules/babel-runtime/core-js/symbol.js",
"type": "cjs require",
"userRequest": "core-js/library/fn/symbol",
"loc": "1:30-66"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 5,
"source": "require('../../modules/es6.symbol');\nrequire('../../modules/es6.object.to-string');\nrequire('../../modules/es7.symbol.async-iterator');\nrequire('../../modules/es7.symbol.observable');\nmodule.exports = require('../../modules/_core').Symbol;\n"
},
{
"id": 108,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"name": "./node_modules/core-js/library/modules/es6.symbol.js",
"index": 77,
"index2": 80,
"size": 8851,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/index.js",
"issuerId": 107,
"issuerName": "./node_modules/core-js/library/fn/symbol/index.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 93,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"name": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"
},
{
"id": 54,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"name": "./node_modules/babel-runtime/helpers/typeof.js"
},
{
"id": 106,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol.js",
"name": "./node_modules/babel-runtime/core-js/symbol.js"
},
{
"id": 107,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/index.js",
"name": "./node_modules/core-js/library/fn/symbol/index.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 107,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/index.js",
"module": "./node_modules/core-js/library/fn/symbol/index.js",
"moduleName": "./node_modules/core-js/library/fn/symbol/index.js",
"type": "cjs require",
"userRequest": "../../modules/es6.symbol",
"loc": "1:0-35"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 6,
"source": "'use strict';\n// ECMAScript 6 symbols shim\nvar global = require('./_global');\nvar has = require('./_has');\nvar DESCRIPTORS = require('./_descriptors');\nvar $export = require('./_export');\nvar redefine = require('./_redefine');\nvar META = require('./_meta').KEY;\nvar $fails = require('./_fails');\nvar shared = require('./_shared');\nvar setToStringTag = require('./_set-to-string-tag');\nvar uid = require('./_uid');\nvar wks = require('./_wks');\nvar wksExt = require('./_wks-ext');\nvar wksDefine = require('./_wks-define');\nvar enumKeys = require('./_enum-keys');\nvar isArray = require('./_is-array');\nvar anObject = require('./_an-object');\nvar isObject = require('./_is-object');\nvar toIObject = require('./_to-iobject');\nvar toPrimitive = require('./_to-primitive');\nvar createDesc = require('./_property-desc');\nvar _create = require('./_object-create');\nvar gOPNExt = require('./_object-gopn-ext');\nvar $GOPD = require('./_object-gopd');\nvar $DP = require('./_object-dp');\nvar $keys = require('./_object-keys');\nvar gOPD = $GOPD.f;\nvar dP = $DP.f;\nvar gOPN = gOPNExt.f;\nvar $Symbol = global.Symbol;\nvar $JSON = global.JSON;\nvar _stringify = $JSON && $JSON.stringify;\nvar PROTOTYPE = 'prototype';\nvar HIDDEN = wks('_hidden');\nvar TO_PRIMITIVE = wks('toPrimitive');\nvar isEnum = {}.propertyIsEnumerable;\nvar SymbolRegistry = shared('symbol-registry');\nvar AllSymbols = shared('symbols');\nvar OPSymbols = shared('op-symbols');\nvar ObjectProto = Object[PROTOTYPE];\nvar USE_NATIVE = typeof $Symbol == 'function';\nvar QObject = global.QObject;\n// Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173\nvar setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;\n\n// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687\nvar setSymbolDesc = DESCRIPTORS && $fails(function () {\n return _create(dP({}, 'a', {\n get: function () { return dP(this, 'a', { value: 7 }).a; }\n })).a != 7;\n}) ? function (it, key, D) {\n var protoDesc = gOPD(ObjectProto, key);\n if (protoDesc) delete ObjectProto[key];\n dP(it, key, D);\n if (protoDesc && it !== ObjectProto) dP(ObjectProto, key, protoDesc);\n} : dP;\n\nvar wrap = function (tag) {\n var sym = AllSymbols[tag] = _create($Symbol[PROTOTYPE]);\n sym._k = tag;\n return sym;\n};\n\nvar isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function (it) {\n return typeof it == 'symbol';\n} : function (it) {\n return it instanceof $Symbol;\n};\n\nvar $defineProperty = function defineProperty(it, key, D) {\n if (it === ObjectProto) $defineProperty(OPSymbols, key, D);\n anObject(it);\n key = toPrimitive(key, true);\n anObject(D);\n if (has(AllSymbols, key)) {\n if (!D.enumerable) {\n if (!has(it, HIDDEN)) dP(it, HIDDEN, createDesc(1, {}));\n it[HIDDEN][key] = true;\n } else {\n if (has(it, HIDDEN) && it[HIDDEN][key]) it[HIDDEN][key] = false;\n D = _create(D, { enumerable: createDesc(0, false) });\n } return setSymbolDesc(it, key, D);\n } return dP(it, key, D);\n};\nvar $defineProperties = function defineProperties(it, P) {\n anObject(it);\n var keys = enumKeys(P = toIObject(P));\n var i = 0;\n var l = keys.length;\n var key;\n while (l > i) $defineProperty(it, key = keys[i++], P[key]);\n return it;\n};\nvar $create = function create(it, P) {\n return P === undefined ? _create(it) : $defineProperties(_create(it), P);\n};\nvar $propertyIsEnumerable = function propertyIsEnumerable(key) {\n var E = isEnum.call(this, key = toPrimitive(key, true));\n if (this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return false;\n return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key] ? E : true;\n};\nvar $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key) {\n it = toIObject(it);\n key = toPrimitive(key, true);\n if (it === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return;\n var D = gOPD(it, key);\n if (D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) D.enumerable = true;\n return D;\n};\nvar $getOwnPropertyNames = function getOwnPropertyNames(it) {\n var names = gOPN(toIObject(it));\n var result = [];\n var i = 0;\n var key;\n while (names.length > i) {\n if (!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META) result.push(key);\n } return result;\n};\nvar $getOwnPropertySymbols = function getOwnPropertySymbols(it) {\n var IS_OP = it === ObjectProto;\n var names = gOPN(IS_OP ? OPSymbols : toIObject(it));\n var result = [];\n var i = 0;\n var key;\n while (names.length > i) {\n if (has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto, key) : true)) result.push(AllSymbols[key]);\n } return result;\n};\n\n// 19.4.1.1 Symbol([description])\nif (!USE_NATIVE) {\n $Symbol = function Symbol() {\n if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor!');\n var tag = uid(arguments.length > 0 ? arguments[0] : undefined);\n var $set = function (value) {\n if (this === ObjectProto) $set.call(OPSymbols, value);\n if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false;\n setSymbolDesc(this, tag, createDesc(1, value));\n };\n if (DESCRIPTORS && setter) setSymbolDesc(ObjectProto, tag, { configurable: true, set: $set });\n return wrap(tag);\n };\n redefine($Symbol[PROTOTYPE], 'toString', function toString() {\n return this._k;\n });\n\n $GOPD.f = $getOwnPropertyDescriptor;\n $DP.f = $defineProperty;\n require('./_object-gopn').f = gOPNExt.f = $getOwnPropertyNames;\n require('./_object-pie').f = $propertyIsEnumerable;\n require('./_object-gops').f = $getOwnPropertySymbols;\n\n if (DESCRIPTORS && !require('./_library')) {\n redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true);\n }\n\n wksExt.f = function (name) {\n return wrap(wks(name));\n };\n}\n\n$export($export.G + $export.W + $export.F * !USE_NATIVE, { Symbol: $Symbol });\n\nfor (var es6Symbols = (\n // 19.4.2.2, 19.4.2.3, 19.4.2.4, 19.4.2.6, 19.4.2.8, 19.4.2.9, 19.4.2.10, 19.4.2.11, 19.4.2.12, 19.4.2.13, 19.4.2.14\n 'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables'\n).split(','), j = 0; es6Symbols.length > j;)wks(es6Symbols[j++]);\n\nfor (var wellKnownSymbols = $keys(wks.store), k = 0; wellKnownSymbols.length > k;) wksDefine(wellKnownSymbols[k++]);\n\n$export($export.S + $export.F * !USE_NATIVE, 'Symbol', {\n // 19.4.2.1 Symbol.for(key)\n 'for': function (key) {\n return has(SymbolRegistry, key += '')\n ? SymbolRegistry[key]\n : SymbolRegistry[key] = $Symbol(key);\n },\n // 19.4.2.5 Symbol.keyFor(sym)\n keyFor: function keyFor(sym) {\n if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol!');\n for (var key in SymbolRegistry) if (SymbolRegistry[key] === sym) return key;\n },\n useSetter: function () { setter = true; },\n useSimple: function () { setter = false; }\n});\n\n$export($export.S + $export.F * !USE_NATIVE, 'Object', {\n // 19.1.2.2 Object.create(O [, Properties])\n create: $create,\n // 19.1.2.4 Object.defineProperty(O, P, Attributes)\n defineProperty: $defineProperty,\n // 19.1.2.3 Object.defineProperties(O, Properties)\n defineProperties: $defineProperties,\n // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)\n getOwnPropertyDescriptor: $getOwnPropertyDescriptor,\n // 19.1.2.7 Object.getOwnPropertyNames(O)\n getOwnPropertyNames: $getOwnPropertyNames,\n // 19.1.2.8 Object.getOwnPropertySymbols(O)\n getOwnPropertySymbols: $getOwnPropertySymbols\n});\n\n// 24.3.2 JSON.stringify(value [, replacer [, space]])\n$JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function () {\n var S = $Symbol();\n // MS Edge converts symbol values to JSON as {}\n // WebKit converts symbol values to JSON as null\n // V8 throws on boxed symbols\n return _stringify([S]) != '[null]' || _stringify({ a: S }) != '{}' || _stringify(Object(S)) != '{}';\n})), 'JSON', {\n stringify: function stringify(it) {\n var args = [it];\n var i = 1;\n var replacer, $replacer;\n while (arguments.length > i) args.push(arguments[i++]);\n $replacer = replacer = args[1];\n if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined\n if (!isArray(replacer)) replacer = function (key, value) {\n if (typeof $replacer == 'function') value = $replacer.call(this, key, value);\n if (!isSymbol(value)) return value;\n };\n args[1] = replacer;\n return _stringify.apply($JSON, args);\n }\n});\n\n// 19.4.3.4 Symbol.prototype[@@toPrimitive](hint)\n$Symbol[PROTOTYPE][TO_PRIMITIVE] || require('./_hide')($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf);\n// 19.4.3.5 Symbol.prototype[@@toStringTag]\nsetToStringTag($Symbol, 'Symbol');\n// 20.2.1.9 Math[@@toStringTag]\nsetToStringTag(Math, 'Math', true);\n// 24.3.3 JSON[@@toStringTag]\nsetToStringTag(global.JSON, 'JSON', true);\n"
},
{
"id": 109,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_meta.js",
"name": "./node_modules/core-js/library/modules/_meta.js",
"index": 78,
"index2": 71,
"size": 1558,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"issuerId": 108,
"issuerName": "./node_modules/core-js/library/modules/es6.symbol.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 93,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"name": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"
},
{
"id": 54,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"name": "./node_modules/babel-runtime/helpers/typeof.js"
},
{
"id": 106,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol.js",
"name": "./node_modules/babel-runtime/core-js/symbol.js"
},
{
"id": 107,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/index.js",
"name": "./node_modules/core-js/library/fn/symbol/index.js"
},
{
"id": 108,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"name": "./node_modules/core-js/library/modules/es6.symbol.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 108,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"module": "./node_modules/core-js/library/modules/es6.symbol.js",
"moduleName": "./node_modules/core-js/library/modules/es6.symbol.js",
"type": "cjs require",
"userRequest": "./_meta",
"loc": "8:11-29"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "var META = require('./_uid')('meta');\nvar isObject = require('./_is-object');\nvar has = require('./_has');\nvar setDesc = require('./_object-dp').f;\nvar id = 0;\nvar isExtensible = Object.isExtensible || function () {\n return true;\n};\nvar FREEZE = !require('./_fails')(function () {\n return isExtensible(Object.preventExtensions({}));\n});\nvar setMeta = function (it) {\n setDesc(it, META, { value: {\n i: 'O' + ++id, // object ID\n w: {} // weak collections IDs\n } });\n};\nvar fastKey = function (it, create) {\n // return primitive with prefix\n if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;\n if (!has(it, META)) {\n // can't set metadata to uncaught frozen object\n if (!isExtensible(it)) return 'F';\n // not necessary to add metadata\n if (!create) return 'E';\n // add missing metadata\n setMeta(it);\n // return object ID\n } return it[META].i;\n};\nvar getWeak = function (it, create) {\n if (!has(it, META)) {\n // can't set metadata to uncaught frozen object\n if (!isExtensible(it)) return true;\n // not necessary to add metadata\n if (!create) return false;\n // add missing metadata\n setMeta(it);\n // return hash weak collections IDs\n } return it[META].w;\n};\n// add metadata on freeze-family methods calling\nvar onFreeze = function (it) {\n if (FREEZE && meta.NEED && isExtensible(it) && !has(it, META)) setMeta(it);\n return it;\n};\nvar meta = module.exports = {\n KEY: META,\n NEED: false,\n fastKey: fastKey,\n getWeak: getWeak,\n onFreeze: onFreeze\n};\n"
},
{
"id": 110,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_enum-keys.js",
"name": "./node_modules/core-js/library/modules/_enum-keys.js",
"index": 80,
"index2": 75,
"size": 469,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"issuerId": 108,
"issuerName": "./node_modules/core-js/library/modules/es6.symbol.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 93,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"name": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"
},
{
"id": 54,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"name": "./node_modules/babel-runtime/helpers/typeof.js"
},
{
"id": 106,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol.js",
"name": "./node_modules/babel-runtime/core-js/symbol.js"
},
{
"id": 107,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/index.js",
"name": "./node_modules/core-js/library/fn/symbol/index.js"
},
{
"id": 108,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"name": "./node_modules/core-js/library/modules/es6.symbol.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 108,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"module": "./node_modules/core-js/library/modules/es6.symbol.js",
"moduleName": "./node_modules/core-js/library/modules/es6.symbol.js",
"type": "cjs require",
"userRequest": "./_enum-keys",
"loc": "16:15-38"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "// all enumerable object keys, includes symbols\nvar getKeys = require('./_object-keys');\nvar gOPS = require('./_object-gops');\nvar pIE = require('./_object-pie');\nmodule.exports = function (it) {\n var result = getKeys(it);\n var getSymbols = gOPS.f;\n if (getSymbols) {\n var symbols = getSymbols(it);\n var isEnum = pIE.f;\n var i = 0;\n var key;\n while (symbols.length > i) if (isEnum.call(it, key = symbols[i++])) result.push(key);\n } return result;\n};\n"
},
{
"id": 111,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_is-array.js",
"name": "./node_modules/core-js/library/modules/_is-array.js",
"index": 83,
"index2": 76,
"size": 147,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"issuerId": 108,
"issuerName": "./node_modules/core-js/library/modules/es6.symbol.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 93,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"name": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"
},
{
"id": 54,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"name": "./node_modules/babel-runtime/helpers/typeof.js"
},
{
"id": 106,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol.js",
"name": "./node_modules/babel-runtime/core-js/symbol.js"
},
{
"id": 107,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/index.js",
"name": "./node_modules/core-js/library/fn/symbol/index.js"
},
{
"id": 108,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"name": "./node_modules/core-js/library/modules/es6.symbol.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 108,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"module": "./node_modules/core-js/library/modules/es6.symbol.js",
"moduleName": "./node_modules/core-js/library/modules/es6.symbol.js",
"type": "cjs require",
"userRequest": "./_is-array",
"loc": "17:14-36"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "// 7.2.2 IsArray(argument)\nvar cof = require('./_cof');\nmodule.exports = Array.isArray || function isArray(arg) {\n return cof(arg) == 'Array';\n};\n"
},
{
"id": 112,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-gopn-ext.js",
"name": "./node_modules/core-js/library/modules/_object-gopn-ext.js",
"index": 84,
"index2": 78,
"size": 604,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"issuerId": 108,
"issuerName": "./node_modules/core-js/library/modules/es6.symbol.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 93,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"name": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"
},
{
"id": 54,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"name": "./node_modules/babel-runtime/helpers/typeof.js"
},
{
"id": 106,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol.js",
"name": "./node_modules/babel-runtime/core-js/symbol.js"
},
{
"id": 107,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/index.js",
"name": "./node_modules/core-js/library/fn/symbol/index.js"
},
{
"id": 108,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"name": "./node_modules/core-js/library/modules/es6.symbol.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 108,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.symbol.js",
"module": "./node_modules/core-js/library/modules/es6.symbol.js",
"moduleName": "./node_modules/core-js/library/modules/es6.symbol.js",
"type": "cjs require",
"userRequest": "./_object-gopn-ext",
"loc": "24:14-43"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window\nvar toIObject = require('./_to-iobject');\nvar gOPN = require('./_object-gopn').f;\nvar toString = {}.toString;\n\nvar windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames\n ? Object.getOwnPropertyNames(window) : [];\n\nvar getWindowNames = function (it) {\n try {\n return gOPN(it);\n } catch (e) {\n return windowNames.slice();\n }\n};\n\nmodule.exports.f = function getOwnPropertyNames(it) {\n return windowNames && toString.call(it) == '[object Window]' ? getWindowNames(it) : gOPN(toIObject(it));\n};\n"
},
{
"id": 113,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.object.to-string.js",
"name": "./node_modules/core-js/library/modules/es6.object.to-string.js",
"index": 87,
"index2": 81,
"size": 0,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/index.js",
"issuerId": 107,
"issuerName": "./node_modules/core-js/library/fn/symbol/index.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 93,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"name": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"
},
{
"id": 54,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"name": "./node_modules/babel-runtime/helpers/typeof.js"
},
{
"id": 106,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol.js",
"name": "./node_modules/babel-runtime/core-js/symbol.js"
},
{
"id": 107,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/index.js",
"name": "./node_modules/core-js/library/fn/symbol/index.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 107,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/index.js",
"module": "./node_modules/core-js/library/fn/symbol/index.js",
"moduleName": "./node_modules/core-js/library/fn/symbol/index.js",
"type": "cjs require",
"userRequest": "../../modules/es6.object.to-string",
"loc": "2:0-45"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 6,
"source": ""
},
{
"id": 114,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es7.symbol.async-iterator.js",
"name": "./node_modules/core-js/library/modules/es7.symbol.async-iterator.js",
"index": 88,
"index2": 82,
"size": 43,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/index.js",
"issuerId": 107,
"issuerName": "./node_modules/core-js/library/fn/symbol/index.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 93,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"name": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"
},
{
"id": 54,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"name": "./node_modules/babel-runtime/helpers/typeof.js"
},
{
"id": 106,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol.js",
"name": "./node_modules/babel-runtime/core-js/symbol.js"
},
{
"id": 107,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/index.js",
"name": "./node_modules/core-js/library/fn/symbol/index.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 107,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/index.js",
"module": "./node_modules/core-js/library/fn/symbol/index.js",
"moduleName": "./node_modules/core-js/library/fn/symbol/index.js",
"type": "cjs require",
"userRequest": "../../modules/es7.symbol.async-iterator",
"loc": "3:0-50"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 6,
"source": "require('./_wks-define')('asyncIterator');\n"
},
{
"id": 115,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es7.symbol.observable.js",
"name": "./node_modules/core-js/library/modules/es7.symbol.observable.js",
"index": 89,
"index2": 83,
"size": 40,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/index.js",
"issuerId": 107,
"issuerName": "./node_modules/core-js/library/fn/symbol/index.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 93,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/possibleConstructorReturn.js",
"name": "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"
},
{
"id": 54,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/typeof.js",
"name": "./node_modules/babel-runtime/helpers/typeof.js"
},
{
"id": 106,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/symbol.js",
"name": "./node_modules/babel-runtime/core-js/symbol.js"
},
{
"id": 107,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/index.js",
"name": "./node_modules/core-js/library/fn/symbol/index.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 107,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/symbol/index.js",
"module": "./node_modules/core-js/library/fn/symbol/index.js",
"moduleName": "./node_modules/core-js/library/fn/symbol/index.js",
"type": "cjs require",
"userRequest": "../../modules/es7.symbol.observable",
"loc": "4:0-46"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 6,
"source": "require('./_wks-define')('observable');\n"
},
{
"id": 116,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/inherits.js",
"name": "./node_modules/babel-runtime/helpers/inherits.js",
"index": 90,
"index2": 95,
"size": 1110,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"issuerId": 89,
"issuerName": "./src/containers/App.jsx",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 89,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"module": "./src/containers/App.jsx",
"moduleName": "./src/containers/App.jsx",
"type": "cjs require",
"userRequest": "babel-runtime/helpers/inherits",
"loc": "20:17-58"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 2,
"source": "\"use strict\";\n\nexports.__esModule = true;\n\nvar _setPrototypeOf = require(\"../core-js/object/set-prototype-of\");\n\nvar _setPrototypeOf2 = _interopRequireDefault(_setPrototypeOf);\n\nvar _create = require(\"../core-js/object/create\");\n\nvar _create2 = _interopRequireDefault(_create);\n\nvar _typeof2 = require(\"../helpers/typeof\");\n\nvar _typeof3 = _interopRequireDefault(_typeof2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function (subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + (typeof superClass === \"undefined\" ? \"undefined\" : (0, _typeof3.default)(superClass)));\n }\n\n subClass.prototype = (0, _create2.default)(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) _setPrototypeOf2.default ? (0, _setPrototypeOf2.default)(subClass, superClass) : subClass.__proto__ = superClass;\n};"
},
{
"id": 117,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/object/set-prototype-of.js",
"name": "./node_modules/babel-runtime/core-js/object/set-prototype-of.js",
"index": 91,
"index2": 91,
"size": 104,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/inherits.js",
"issuerId": 116,
"issuerName": "./node_modules/babel-runtime/helpers/inherits.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 116,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/inherits.js",
"name": "./node_modules/babel-runtime/helpers/inherits.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 116,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/inherits.js",
"module": "./node_modules/babel-runtime/helpers/inherits.js",
"moduleName": "./node_modules/babel-runtime/helpers/inherits.js",
"type": "cjs require",
"userRequest": "../core-js/object/set-prototype-of",
"loc": "5:22-67"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 3,
"source": "module.exports = { \"default\": require(\"core-js/library/fn/object/set-prototype-of\"), __esModule: true };"
},
{
"id": 118,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/object/set-prototype-of.js",
"name": "./node_modules/core-js/library/fn/object/set-prototype-of.js",
"index": 92,
"index2": 90,
"size": 125,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/object/set-prototype-of.js",
"issuerId": 117,
"issuerName": "./node_modules/babel-runtime/core-js/object/set-prototype-of.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 116,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/inherits.js",
"name": "./node_modules/babel-runtime/helpers/inherits.js"
},
{
"id": 117,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/object/set-prototype-of.js",
"name": "./node_modules/babel-runtime/core-js/object/set-prototype-of.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 117,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/object/set-prototype-of.js",
"module": "./node_modules/babel-runtime/core-js/object/set-prototype-of.js",
"moduleName": "./node_modules/babel-runtime/core-js/object/set-prototype-of.js",
"type": "cjs require",
"userRequest": "core-js/library/fn/object/set-prototype-of",
"loc": "1:30-83"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 4,
"source": "require('../../modules/es6.object.set-prototype-of');\nmodule.exports = require('../../modules/_core').Object.setPrototypeOf;\n"
},
{
"id": 119,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.object.set-prototype-of.js",
"name": "./node_modules/core-js/library/modules/es6.object.set-prototype-of.js",
"index": 93,
"index2": 89,
"size": 160,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/object/set-prototype-of.js",
"issuerId": 118,
"issuerName": "./node_modules/core-js/library/fn/object/set-prototype-of.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 116,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/inherits.js",
"name": "./node_modules/babel-runtime/helpers/inherits.js"
},
{
"id": 117,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/object/set-prototype-of.js",
"name": "./node_modules/babel-runtime/core-js/object/set-prototype-of.js"
},
{
"id": 118,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/object/set-prototype-of.js",
"name": "./node_modules/core-js/library/fn/object/set-prototype-of.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 118,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/object/set-prototype-of.js",
"module": "./node_modules/core-js/library/fn/object/set-prototype-of.js",
"moduleName": "./node_modules/core-js/library/fn/object/set-prototype-of.js",
"type": "cjs require",
"userRequest": "../../modules/es6.object.set-prototype-of",
"loc": "1:0-52"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 5,
"source": "// 19.1.3.19 Object.setPrototypeOf(O, proto)\nvar $export = require('./_export');\n$export($export.S, 'Object', { setPrototypeOf: require('./_set-proto').set });\n"
},
{
"id": 120,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_set-proto.js",
"name": "./node_modules/core-js/library/modules/_set-proto.js",
"index": 94,
"index2": 88,
"size": 906,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.object.set-prototype-of.js",
"issuerId": 119,
"issuerName": "./node_modules/core-js/library/modules/es6.object.set-prototype-of.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 116,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/inherits.js",
"name": "./node_modules/babel-runtime/helpers/inherits.js"
},
{
"id": 117,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/object/set-prototype-of.js",
"name": "./node_modules/babel-runtime/core-js/object/set-prototype-of.js"
},
{
"id": 118,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/object/set-prototype-of.js",
"name": "./node_modules/core-js/library/fn/object/set-prototype-of.js"
},
{
"id": 119,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.object.set-prototype-of.js",
"name": "./node_modules/core-js/library/modules/es6.object.set-prototype-of.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 119,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.object.set-prototype-of.js",
"module": "./node_modules/core-js/library/modules/es6.object.set-prototype-of.js",
"moduleName": "./node_modules/core-js/library/modules/es6.object.set-prototype-of.js",
"type": "cjs require",
"userRequest": "./_set-proto",
"loc": "3:47-70"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 6,
"source": "// Works with __proto__ only. Old v8 can't work with null proto objects.\n/* eslint-disable no-proto */\nvar isObject = require('./_is-object');\nvar anObject = require('./_an-object');\nvar check = function (O, proto) {\n anObject(O);\n if (!isObject(proto) && proto !== null) throw TypeError(proto + \": can't set as prototype!\");\n};\nmodule.exports = {\n set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line\n function (test, buggy, set) {\n try {\n set = require('./_ctx')(Function.call, require('./_object-gopd').f(Object.prototype, '__proto__').set, 2);\n set(test, []);\n buggy = !(test instanceof Array);\n } catch (e) { buggy = true; }\n return function setPrototypeOf(O, proto) {\n check(O, proto);\n if (buggy) O.__proto__ = proto;\n else set(O, proto);\n return O;\n };\n }({}, false) : undefined),\n check: check\n};\n"
},
{
"id": 121,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/object/create.js",
"name": "./node_modules/babel-runtime/core-js/object/create.js",
"index": 95,
"index2": 94,
"size": 94,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/inherits.js",
"issuerId": 116,
"issuerName": "./node_modules/babel-runtime/helpers/inherits.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 116,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/inherits.js",
"name": "./node_modules/babel-runtime/helpers/inherits.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 116,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/inherits.js",
"module": "./node_modules/babel-runtime/helpers/inherits.js",
"moduleName": "./node_modules/babel-runtime/helpers/inherits.js",
"type": "cjs require",
"userRequest": "../core-js/object/create",
"loc": "9:14-49"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 3,
"source": "module.exports = { \"default\": require(\"core-js/library/fn/object/create\"), __esModule: true };"
},
{
"id": 122,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/object/create.js",
"name": "./node_modules/core-js/library/fn/object/create.js",
"index": 96,
"index2": 93,
"size": 172,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/object/create.js",
"issuerId": 121,
"issuerName": "./node_modules/babel-runtime/core-js/object/create.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 116,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/inherits.js",
"name": "./node_modules/babel-runtime/helpers/inherits.js"
},
{
"id": 121,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/object/create.js",
"name": "./node_modules/babel-runtime/core-js/object/create.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 121,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/object/create.js",
"module": "./node_modules/babel-runtime/core-js/object/create.js",
"moduleName": "./node_modules/babel-runtime/core-js/object/create.js",
"type": "cjs require",
"userRequest": "core-js/library/fn/object/create",
"loc": "1:30-73"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 4,
"source": "require('../../modules/es6.object.create');\nvar $Object = require('../../modules/_core').Object;\nmodule.exports = function create(P, D) {\n return $Object.create(P, D);\n};\n"
},
{
"id": 123,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.object.create.js",
"name": "./node_modules/core-js/library/modules/es6.object.create.js",
"index": 97,
"index2": 92,
"size": 162,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/object/create.js",
"issuerId": 122,
"issuerName": "./node_modules/core-js/library/fn/object/create.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 116,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/inherits.js",
"name": "./node_modules/babel-runtime/helpers/inherits.js"
},
{
"id": 121,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/object/create.js",
"name": "./node_modules/babel-runtime/core-js/object/create.js"
},
{
"id": 122,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/object/create.js",
"name": "./node_modules/core-js/library/fn/object/create.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 122,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/object/create.js",
"module": "./node_modules/core-js/library/fn/object/create.js",
"moduleName": "./node_modules/core-js/library/fn/object/create.js",
"type": "cjs require",
"userRequest": "../../modules/es6.object.create",
"loc": "1:0-42"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 5,
"source": "var $export = require('./_export');\n// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])\n$export($export.S, 'Object', { create: require('./_object-create') });\n"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js",
"index": 98,
"index2": 185,
"size": 4926,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"issuerId": 89,
"issuerName": "./src/containers/App.jsx",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 89,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"module": "./src/containers/App.jsx",
"moduleName": "./src/containers/App.jsx",
"type": "cjs require",
"userRequest": "$modules/Editor",
"loc": "28:14-40"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 2,
"source": "'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.Editor = undefined;\n\nvar _defineProperty2 = require('babel-runtime/helpers/defineProperty');\n\nvar _defineProperty3 = _interopRequireDefault(_defineProperty2);\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _Map = require('$modules/Map');\n\nvar _Poly = require('$modules/Poly');\n\nvar _modes = require('$constants/modes');\n\nvar _Stickers = require('$modules/Stickers');\n\nvar _Router = require('$modules/Router');\n\nvar _Shotter = require('$modules/Shotter');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n(function () {\n var enterModule = require('react-hot-loader').enterModule;\n\n enterModule && enterModule(module);\n})();\n\nvar Editor = exports.Editor = function () {\n function Editor(_ref) {\n var _switches, _clickHandlers;\n\n var container = _ref.container,\n mode = _ref.mode,\n setMode = _ref.setMode;\n (0, _classCallCheck3.default)(this, Editor);\n\n _initialiseProps.call(this);\n\n this.map = new _Map.Map({ container: container });\n\n var lockMapClicks = this.lockMapClicks,\n routerMoveStart = this.routerMoveStart,\n map = this.map.map;\n\n\n this.poly = new _Poly.Poly({ map: map, routerMoveStart: routerMoveStart, lockMapClicks: lockMapClicks });\n this.stickers = new _Stickers.Stickers({ map: map, lockMapClicks: lockMapClicks });\n this.router = new _Router.Router({ map: map, lockMapClicks: lockMapClicks });\n this.shotter = new _Shotter.Shotter({ map: map });\n\n this.setMode = setMode;\n this.mode = mode;\n\n this.switches = (_switches = {}, (0, _defineProperty3.default)(_switches, _modes.MODES.POLY, {\n start: this.poly.continue,\n stop: this.poly.stop\n }), (0, _defineProperty3.default)(_switches, _modes.MODES.ROUTER, {\n start: this.routerSetStart\n }), (0, _defineProperty3.default)(_switches, _modes.MODES.SHOTTER, {\n start: this.shotter.makeShot\n }), _switches);\n\n this.clickHandlers = (_clickHandlers = {}, (0, _defineProperty3.default)(_clickHandlers, _modes.MODES.STICKERS, this.stickers.createOnClick), (0, _defineProperty3.default)(_clickHandlers, _modes.MODES.ROUTER, this.router.pushWaypointOnClick), _clickHandlers);\n\n map.addEventListener('mouseup', this.onClick);\n map.addEventListener('dragstart', function () {\n return lockMapClicks(true);\n });\n map.addEventListener('dragstop', function () {\n return lockMapClicks(false);\n });\n }\n\n (0, _createClass3.default)(Editor, [{\n key: '__reactstandin__regenerateByEval',\n // @ts-ignore\n value: function __reactstandin__regenerateByEval(key, code) {\n // @ts-ignore\n this[key] = eval(code);\n }\n }]);\n return Editor;\n}();\n\nvar _initialiseProps = function _initialiseProps() {\n var _this = this;\n\n this.changeMode = function (mode) {\n if (_this.mode === mode) {\n _this.disableMode(mode);\n _this.setMode(_modes.MODES.NONE);\n _this.mode = _modes.MODES.NONE;\n } else {\n _this.disableMode(_this.mode);\n _this.setMode(mode);\n _this.mode = mode;\n _this.enableMode(mode);\n }\n };\n\n this.enableMode = function (mode) {\n if (_this.switches[mode] && _this.switches[mode].start) _this.switches[mode].start();\n };\n\n this.disableMode = function (mode) {\n if (_this.switches[mode] && _this.switches[mode].stop) _this.switches[mode].stop();\n };\n\n this.onClick = function (e) {\n if (e.originalEvent.which === 3) return; // skip right click\n if (_this.clickHandlers[_this.mode]) _this.clickHandlers[_this.mode](e);\n };\n\n this.lockMapClicks = function (lock) {\n if (lock) {\n _this.map.map.removeEventListener('mouseup', _this.onClick);\n _this.map.map.addEventListener('mouseup', _this.unlockMapClicks);\n } else {\n _this.map.map.removeEventListener('mouseup', _this.unlockMapClicks);\n _this.map.map.addEventListener('mouseup', _this.onClick);\n }\n };\n\n this.unlockMapClicks = function () {\n _this.lockMapClicks(false);\n };\n\n this.routerSetStart = function () {\n var latlngs = _this.poly.latlngs;\n\n\n if (!latlngs || !latlngs.length) return;\n\n _this.router.startFrom(latlngs.pop());\n };\n\n this.routerMoveStart = function () {\n var _latlngs = _this.poly.poly._latlngs;\n\n\n if (_latlngs) _this.router.moveStart(_latlngs[_latlngs.length - 1]);\n };\n};\n\n;\n\n(function () {\n var reactHotLoader = require('react-hot-loader').default;\n\n var leaveModule = require('react-hot-loader').leaveModule;\n\n if (!reactHotLoader) {\n return;\n }\n\n reactHotLoader.register(Editor, 'Editor', '/Users/user/Projects/orchid/src/modules/Editor.js');\n leaveModule(module);\n})();\n\n;"
},
{
"id": 125,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/defineProperty.js",
"name": "./node_modules/babel-runtime/helpers/defineProperty.js",
"index": 99,
"index2": 96,
"size": 540,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"issuerId": 124,
"issuerName": "./src/modules/Editor.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 124,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"module": "./src/modules/Editor.js",
"moduleName": "./src/modules/Editor.js",
"type": "cjs require",
"userRequest": "babel-runtime/helpers/defineProperty",
"loc": "8:23-70"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 3,
"source": "\"use strict\";\n\nexports.__esModule = true;\n\nvar _defineProperty = require(\"../core-js/object/define-property\");\n\nvar _defineProperty2 = _interopRequireDefault(_defineProperty);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function (obj, key, value) {\n if (key in obj) {\n (0, _defineProperty2.default)(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n};"
},
{
"id": 126,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Map.js",
"name": "./src/modules/Map.js",
"index": 100,
"index2": 111,
"size": 1765,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"issuerId": 124,
"issuerName": "./src/modules/Editor.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 124,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"module": "./src/modules/Editor.js",
"moduleName": "./src/modules/Editor.js",
"type": "cjs require",
"userRequest": "$modules/Map",
"loc": "20:11-34"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 3,
"source": "'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.Map = undefined;\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _leaflet = require('leaflet');\n\nvar _providers = require('$constants/providers');\n\nrequire('leaflet/dist/leaflet.css');\n\nrequire('leaflet-editable');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n(function () {\n var enterModule = require('react-hot-loader').enterModule;\n\n enterModule && enterModule(module);\n})();\n\nvar Map = exports.Map = function () {\n function Map(_ref) {\n var container = _ref.container;\n (0, _classCallCheck3.default)(this, Map);\n\n this.map = (0, _leaflet.map)(container, { editable: true }).setView([55.0153275, 82.9071235], 13);\n\n this.tileLayer = (0, _leaflet.tileLayer)(_providers.providers.default, {\n attribution: 'Независимое Велосообщество',\n maxNativeZoom: 18,\n maxZoom: 18\n });\n\n this.tileLayer.addTo(this.map);\n }\n\n (0, _createClass3.default)(Map, [{\n key: '__reactstandin__regenerateByEval',\n // @ts-ignore\n value: function __reactstandin__regenerateByEval(key, code) {\n // @ts-ignore\n this[key] = eval(code);\n }\n }]);\n return Map;\n}();\n\n;\n\n(function () {\n var reactHotLoader = require('react-hot-loader').default;\n\n var leaveModule = require('react-hot-loader').leaveModule;\n\n if (!reactHotLoader) {\n return;\n }\n\n reactHotLoader.register(Map, 'Map', '/Users/user/Projects/orchid/src/modules/Map.js');\n leaveModule(module);\n})();\n\n;"
},
{
"id": 127,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/constants/providers.js",
"name": "./src/constants/providers.js",
"index": 102,
"index2": 100,
"size": 1274,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Map.js",
"issuerId": 126,
"issuerName": "./src/modules/Map.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 126,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Map.js",
"name": "./src/modules/Map.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 126,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Map.js",
"module": "./src/modules/Map.js",
"moduleName": "./src/modules/Map.js",
"type": "cjs require",
"userRequest": "$constants/providers",
"loc": "18:17-48"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 4,
"source": "'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\n(function () {\n var enterModule = require('react-hot-loader').enterModule;\n\n enterModule && enterModule(module);\n})();\n\n// Стили карт\nvar providers = exports.providers = {\n 'watercolor': 'http://stamen-tiles-{s}.a.ssl.fastly.net/watercolor/{z}/{x}/{y}.jpg',\n 'darq': 'http://{s}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}.png',\n 'dgis': 'https://tile1.maps.2gis.com/tiles?x={x}&y={y}&z={z}&v=1',\n 'default': 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',\n 'hot': 'http://{s}.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png',\n 'blank': 'http://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}.png',\n 'sat': 'http://mt0.google.com/vt/lyrs=s,h&x={x}&y={y}&z={z}',\n 'ymap': 'https://vec03.maps.yandex.net/tiles?l=map&v=17.04.16-0&x={x}&y={y}&z={z}&scale=1&lang=ru_RU',\n 'ysat': 'https://sat02.maps.yandex.net/tiles?l=sat&v=3.330.0&x={x}&y={y}&z={z}&lang=ru_RU'\n};\n;\n\n(function () {\n var reactHotLoader = require('react-hot-loader').default;\n\n var leaveModule = require('react-hot-loader').leaveModule;\n\n if (!reactHotLoader) {\n return;\n }\n\n reactHotLoader.register(providers, 'providers', '/Users/user/Projects/orchid/src/constants/providers.js');\n leaveModule(module);\n})();\n\n;"
},
{
"id": 128,
"identifier": "/Users/user/Projects/orchid/node_modules/react-hot-loader/dist/react-hot-loader.production.min.js",
"name": "./node_modules/react-hot-loader/dist/react-hot-loader.production.min.js",
"index": 104,
"index2": 98,
"size": 1354,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/react-hot-loader/index.js",
"issuerId": 0,
"issuerName": "./node_modules/react-hot-loader/index.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 0,
"identifier": "/Users/user/Projects/orchid/node_modules/react-hot-loader/index.js",
"name": "./node_modules/react-hot-loader/index.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 0,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/react-hot-loader/index.js",
"module": "./node_modules/react-hot-loader/index.js",
"moduleName": "./node_modules/react-hot-loader/index.js",
"type": "cjs require",
"userRequest": "./dist/react-hot-loader.production.min.js",
"loc": "4:19-71"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 2,
"source": "\"use strict\";function _interopDefault(t){return t&&\"object\"==typeof t&&\"default\"in t?t.default:t}Object.defineProperty(exports,\"__esModule\",{value:!0});var React=_interopDefault(require(\"react\")),classCallCheck=function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")},inherits=function(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)},possibleConstructorReturn=function(t,e){if(!t)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return!e||\"object\"!=typeof e&&\"function\"!=typeof e?t:e},AppContainer=function(t){function e(){return classCallCheck(this,e),possibleConstructorReturn(this,t.apply(this,arguments))}return inherits(e,t),e.prototype.render=function(){return React.Children.only(this.props.children)},e}(React.Component),hot_prod=function(){return function(t){return t}},areComponentsEqual=function(t,e){return t===e},setConfig=function(){},cold=function(t){return t};exports.AppContainer=AppContainer,exports.hot=hot_prod,exports.areComponentsEqual=areComponentsEqual,exports.setConfig=setConfig,exports.cold=cold;\n"
},
{
"id": 129,
"identifier": "/Users/user/Projects/orchid/node_modules/style-loader/index.js!/Users/user/Projects/orchid/node_modules/css-loader/index.js!/Users/user/Projects/orchid/node_modules/leaflet/dist/leaflet.css",
"name": "./node_modules/leaflet/dist/leaflet.css",
"index": 105,
"index2": 109,
"size": 1038,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Map.js",
"issuerId": 126,
"issuerName": "./src/modules/Map.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 126,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Map.js",
"name": "./src/modules/Map.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 126,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Map.js",
"module": "./src/modules/Map.js",
"moduleName": "./src/modules/Map.js",
"type": "cjs require",
"userRequest": "leaflet/dist/leaflet.css",
"loc": "20:0-35"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 4,
"source": "\nvar content = require(\"!!../../css-loader/index.js!./leaflet.css\");\n\nif(typeof content === 'string') content = [[module.id, content, '']];\n\nvar transform;\nvar insertInto;\n\n\n\nvar options = {\"hmr\":true}\n\noptions.transform = transform\noptions.insertInto = undefined;\n\nvar update = require(\"!../../style-loader/lib/addStyles.js\")(content, options);\n\nif(content.locals) module.exports = content.locals;\n\nif(module.hot) {\n\tmodule.hot.accept(\"!!../../css-loader/index.js!./leaflet.css\", function() {\n\t\tvar newContent = require(\"!!../../css-loader/index.js!./leaflet.css\");\n\n\t\tif(typeof newContent === 'string') newContent = [[module.id, newContent, '']];\n\n\t\tvar locals = (function(a, b) {\n\t\t\tvar key, idx = 0;\n\n\t\t\tfor(key in a) {\n\t\t\t\tif(!b || a[key] !== b[key]) return false;\n\t\t\t\tidx++;\n\t\t\t}\n\n\t\t\tfor(key in b) idx--;\n\n\t\t\treturn idx === 0;\n\t\t}(content.locals, newContent.locals));\n\n\t\tif(!locals) throw new Error('Aborting CSS HMR due to changed css-modules locals.');\n\n\t\tupdate(newContent);\n\t});\n\n\tmodule.hot.dispose(function() { update(); });\n}"
},
{
"id": 130,
"identifier": "/Users/user/Projects/orchid/node_modules/css-loader/index.js!/Users/user/Projects/orchid/node_modules/leaflet/dist/leaflet.css",
"name": "./node_modules/css-loader!./node_modules/leaflet/dist/leaflet.css",
"index": 106,
"index2": 106,
"size": 16158,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/style-loader/index.js!/Users/user/Projects/orchid/node_modules/css-loader/index.js!/Users/user/Projects/orchid/node_modules/leaflet/dist/leaflet.css",
"issuerId": 129,
"issuerName": "./node_modules/leaflet/dist/leaflet.css",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 126,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Map.js",
"name": "./src/modules/Map.js"
},
{
"id": 129,
"identifier": "/Users/user/Projects/orchid/node_modules/style-loader/index.js!/Users/user/Projects/orchid/node_modules/css-loader/index.js!/Users/user/Projects/orchid/node_modules/leaflet/dist/leaflet.css",
"name": "./node_modules/leaflet/dist/leaflet.css"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 129,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/style-loader/index.js!/Users/user/Projects/orchid/node_modules/css-loader/index.js!/Users/user/Projects/orchid/node_modules/leaflet/dist/leaflet.css",
"module": "./node_modules/leaflet/dist/leaflet.css",
"moduleName": "./node_modules/leaflet/dist/leaflet.css",
"type": "cjs require",
"userRequest": "!!../../css-loader/index.js!./leaflet.css",
"loc": "2:14-66"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 5,
"source": "var escape = require(\"../../css-loader/lib/url/escape.js\");\nexports = module.exports = require(\"../../css-loader/lib/css-base.js\")(false);\n// imports\n\n\n// module\nexports.push([module.id, \"/* required styles */\\r\\n\\r\\n.leaflet-pane,\\r\\n.leaflet-tile,\\r\\n.leaflet-marker-icon,\\r\\n.leaflet-marker-shadow,\\r\\n.leaflet-tile-container,\\r\\n.leaflet-pane > svg,\\r\\n.leaflet-pane > canvas,\\r\\n.leaflet-zoom-box,\\r\\n.leaflet-image-layer,\\r\\n.leaflet-layer {\\r\\n\\tposition: absolute;\\r\\n\\tleft: 0;\\r\\n\\ttop: 0;\\r\\n\\t}\\r\\n.leaflet-container {\\r\\n\\toverflow: hidden;\\r\\n\\t}\\r\\n.leaflet-tile,\\r\\n.leaflet-marker-icon,\\r\\n.leaflet-marker-shadow {\\r\\n\\t-webkit-user-select: none;\\r\\n\\t -moz-user-select: none;\\r\\n\\t user-select: none;\\r\\n\\t -webkit-user-drag: none;\\r\\n\\t}\\r\\n/* Safari renders non-retina tile on retina better with this, but Chrome is worse */\\r\\n.leaflet-safari .leaflet-tile {\\r\\n\\timage-rendering: -webkit-optimize-contrast;\\r\\n\\t}\\r\\n/* hack that prevents hw layers \\\"stretching\\\" when loading new tiles */\\r\\n.leaflet-safari .leaflet-tile-container {\\r\\n\\twidth: 1600px;\\r\\n\\theight: 1600px;\\r\\n\\t-webkit-transform-origin: 0 0;\\r\\n\\t}\\r\\n.leaflet-marker-icon,\\r\\n.leaflet-marker-shadow {\\r\\n\\tdisplay: block;\\r\\n\\t}\\r\\n/* .leaflet-container svg: reset svg max-width decleration shipped in Joomla! (joomla.org) 3.x */\\r\\n/* .leaflet-container img: map is broken in FF if you have max-width: 100% on tiles */\\r\\n.leaflet-container .leaflet-overlay-pane svg,\\r\\n.leaflet-container .leaflet-marker-pane img,\\r\\n.leaflet-container .leaflet-shadow-pane img,\\r\\n.leaflet-container .leaflet-tile-pane img,\\r\\n.leaflet-container img.leaflet-image-layer {\\r\\n\\tmax-width: none !important;\\r\\n\\tmax-height: none !important;\\r\\n\\t}\\r\\n\\r\\n.leaflet-container.leaflet-touch-zoom {\\r\\n\\t-ms-touch-action: pan-x pan-y;\\r\\n\\ttouch-action: pan-x pan-y;\\r\\n\\t}\\r\\n.leaflet-container.leaflet-touch-drag {\\r\\n\\t-ms-touch-action: pinch-zoom;\\r\\n\\t/* Fallback for FF which doesn't support pinch-zoom */\\r\\n\\ttouch-action: none;\\r\\n\\ttouch-action: pinch-zoom;\\r\\n}\\r\\n.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {\\r\\n\\t-ms-touch-action: none;\\r\\n\\ttouch-action: none;\\r\\n}\\r\\n.leaflet-container {\\r\\n\\t-webkit-tap-highlight-color: transparent;\\r\\n}\\r\\n.leaflet-container a {\\r\\n\\t-webkit-tap-highlight-color: rgba(51, 181, 229, 0.4);\\r\\n}\\r\\n.leaflet-tile {\\r\\n\\tfilter: inherit;\\r\\n\\tvisibility: hidden;\\r\\n\\t}\\r\\n.leaflet-tile-loaded {\\r\\n\\tvisibility: inherit;\\r\\n\\t}\\r\\n.leaflet-zoom-box {\\r\\n\\twidth: 0;\\r\\n\\theight: 0;\\r\\n\\t-moz-box-sizing: border-box;\\r\\n\\t box-sizing: border-box;\\r\\n\\tz-index: 800;\\r\\n\\t}\\r\\n/* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */\\r\\n.leaflet-overlay-pane svg {\\r\\n\\t-moz-user-select: none;\\r\\n\\t}\\r\\n\\r\\n.leaflet-pane { z-index: 400; }\\r\\n\\r\\n.leaflet-tile-pane { z-index: 200; }\\r\\n.leaflet-overlay-pane { z-index: 400; }\\r\\n.leaflet-shadow-pane { z-index: 500; }\\r\\n.leaflet-marker-pane { z-index: 600; }\\r\\n.leaflet-tooltip-pane { z-index: 650; }\\r\\n.leaflet-popup-pane { z-index: 700; }\\r\\n\\r\\n.leaflet-map-pane canvas { z-index: 100; }\\r\\n.leaflet-map-pane svg { z-index: 200; }\\r\\n\\r\\n.leaflet-vml-shape {\\r\\n\\twidth: 1px;\\r\\n\\theight: 1px;\\r\\n\\t}\\r\\n.lvml {\\r\\n\\tbehavior: url(#default#VML);\\r\\n\\tdisplay: inline-block;\\r\\n\\tposition: absolute;\\r\\n\\t}\\r\\n\\r\\n\\r\\n/* control positioning */\\r\\n\\r\\n.leaflet-control {\\r\\n\\tposition: relative;\\r\\n\\tz-index: 800;\\r\\n\\tpointer-events: visiblePainted; /* IE 9-10 doesn't have auto */\\r\\n\\tpointer-events: auto;\\r\\n\\t}\\r\\n.leaflet-top,\\r\\n.leaflet-bottom {\\r\\n\\tposition: absolute;\\r\\n\\tz-index: 1000;\\r\\n\\tpointer-events: none;\\r\\n\\t}\\r\\n.leaflet-top {\\r\\n\\ttop: 0;\\r\\n\\t}\\r\\n.leaflet-right {\\r\\n\\tright: 0;\\r\\n\\t}\\r\\n.leaflet-bottom {\\r\\n\\tbottom: 0;\\r\\n\\t}\\r\\n.leaflet-left {\\r\\n\\tleft: 0;\\r\\n\\t}\\r\\n.leaflet-control {\\r\\n\\tfloat: left;\\r\\n\\tclear: both;\\r\\n\\t}\\r\\n.leaflet-right .leaflet-control {\\r\\n\\tfloat: right;\\r\\n\\t}\\r\\n.leaflet-top .leaflet-control {\\r\\n\\tmargin-top: 10px;\\r\\n\\t}\\r\\n.leaflet-bottom .leaflet-control {\\r\\n\\tmargin-bottom: 10px;\\r\\n\\t}\\r\\n.leaflet-left .leaflet-control {\\r\\n\\tmargin-left: 10px;\\r\\n\\t}\\r\\n.leaflet-right .leaflet-control {\\r\\n\\tmargin-right: 10px;\\r\\n\\t}\\r\\n\\r\\n\\r\\n/* zoom and fade animations */\\r\\n\\r\\n.leaflet-fade-anim .leaflet-tile {\\r\\n\\twill-change: opacity;\\r\\n\\t}\\r\\n.leaflet-fade-anim .leaflet-popup {\\r\\n\\topacity: 0;\\r\\n\\t-webkit-transition: opacity 0.2s linear;\\r\\n\\t -moz-transition: opacity 0.2s linear;\\r\\n\\t -o-transition: opacity 0.2s linear;\\r\\n\\t transition: opacity 0.2s linear;\\r\\n\\t}\\r\\n.leaflet-fade-anim .leaflet-map-pane .leaflet-popup {\\r\\n\\topacity: 1;\\r\\n\\t}\\r\\n.leaflet-zoom-animated {\\r\\n\\t-webkit-transform-origin: 0 0;\\r\\n\\t -ms-transform-origin: 0 0;\\r\\n\\t transform-origin: 0 0;\\r\\n\\t}\\r\\n.leaflet-zoom-anim .leaflet-zoom-animated {\\r\\n\\twill-change: transform;\\r\\n\\t}\\r\\n.leaflet-zoom-anim .leaflet-zoom-animated {\\r\\n\\t-webkit-transition: -webkit-transform 0.25s cubic-bezier(0,0,0.25,1);\\r\\n\\t -moz-transition: -moz-transform 0.25s cubic-bezier(0,0,0.25,1);\\r\\n\\t -o-transition: -o-transform 0.25s cubic-bezier(0,0,0.25,1);\\r\\n\\t transition: transform 0.25s cubic-bezier(0,0,0.25,1);\\r\\n\\t}\\r\\n.leaflet-zoom-anim .leaflet-tile,\\r\\n.leaflet-pan-anim .leaflet-tile {\\r\\n\\t-webkit-transition: none;\\r\\n\\t -moz-transition: none;\\r\\n\\t -o-transition: none;\\r\\n\\t transition: none;\\r\\n\\t}\\r\\n\\r\\n.leaflet-zoom-anim .leaflet-zoom-hide {\\r\\n\\tvisibility: hidden;\\r\\n\\t}\\r\\n\\r\\n\\r\\n/* cursors */\\r\\n\\r\\n.leaflet-interactive {\\r\\n\\tcursor: pointer;\\r\\n\\t}\\r\\n.leaflet-grab {\\r\\n\\tcursor: -webkit-grab;\\r\\n\\tcursor: -moz-grab;\\r\\n\\t}\\r\\n.leaflet-crosshair,\\r\\n.leaflet-crosshair .leaflet-interactive {\\r\\n\\tcursor: crosshair;\\r\\n\\t}\\r\\n.leaflet-popup-pane,\\r\\n.leaflet-control {\\r\\n\\tcursor: auto;\\r\\n\\t}\\r\\n.leaflet-dragging .leaflet-grab,\\r\\n.leaflet-dragging .leaflet-grab .leaflet-interactive,\\r\\n.leaflet-dragging .leaflet-marker-draggable {\\r\\n\\tcursor: move;\\r\\n\\tcursor: -webkit-grabbing;\\r\\n\\tcursor: -moz-grabbing;\\r\\n\\t}\\r\\n\\r\\n/* marker & overlays interactivity */\\r\\n.leaflet-marker-icon,\\r\\n.leaflet-marker-shadow,\\r\\n.leaflet-image-layer,\\r\\n.leaflet-pane > svg path,\\r\\n.leaflet-tile-container {\\r\\n\\tpointer-events: none;\\r\\n\\t}\\r\\n\\r\\n.leaflet-marker-icon.leaflet-interactive,\\r\\n.leaflet-image-layer.leaflet-interactive,\\r\\n.leaflet-pane > svg path.leaflet-interactive {\\r\\n\\tpointer-events: visiblePainted; /* IE 9-10 doesn't have auto */\\r\\n\\tpointer-events: auto;\\r\\n\\t}\\r\\n\\r\\n/* visual tweaks */\\r\\n\\r\\n.leaflet-container {\\r\\n\\tbackground: #ddd;\\r\\n\\toutline: 0;\\r\\n\\t}\\r\\n.leaflet-container a {\\r\\n\\tcolor: #0078A8;\\r\\n\\t}\\r\\n.leaflet-container a.leaflet-active {\\r\\n\\toutline: 2px solid orange;\\r\\n\\t}\\r\\n.leaflet-zoom-box {\\r\\n\\tborder: 2px dotted #38f;\\r\\n\\tbackground: rgba(255,255,255,0.5);\\r\\n\\t}\\r\\n\\r\\n\\r\\n/* general typography */\\r\\n.leaflet-container {\\r\\n\\tfont: 12px/1.5 \\\"Helvetica Neue\\\", Arial, Helvetica, sans-serif;\\r\\n\\t}\\r\\n\\r\\n\\r\\n/* general toolbar styles */\\r\\n\\r\\n.leaflet-bar {\\r\\n\\tbox-shadow: 0 1px 5px rgba(0,0,0,0.65);\\r\\n\\tborder-radius: 4px;\\r\\n\\t}\\r\\n.leaflet-bar a,\\r\\n.leaflet-bar a:hover {\\r\\n\\tbackground-color: #fff;\\r\\n\\tborder-bottom: 1px solid #ccc;\\r\\n\\twidth: 26px;\\r\\n\\theight: 26px;\\r\\n\\tline-height: 26px;\\r\\n\\tdisplay: block;\\r\\n\\ttext-align: center;\\r\\n\\ttext-decoration: none;\\r\\n\\tcolor: black;\\r\\n\\t}\\r\\n.leaflet-bar a,\\r\\n.leaflet-control-layers-toggle {\\r\\n\\tbackground-position: 50% 50%;\\r\\n\\tbackground-repeat: no-repeat;\\r\\n\\tdisplay: block;\\r\\n\\t}\\r\\n.leaflet-bar a:hover {\\r\\n\\tbackground-color: #f4f4f4;\\r\\n\\t}\\r\\n.leaflet-bar a:first-child {\\r\\n\\tborder-top-left-radius: 4px;\\r\\n\\tborder-top-right-radius: 4px;\\r\\n\\t}\\r\\n.leaflet-bar a:last-child {\\r\\n\\tborder-bottom-left-radius: 4px;\\r\\n\\tborder-bottom-right-radius: 4px;\\r\\n\\tborder-bottom: none;\\r\\n\\t}\\r\\n.leaflet-bar a.leaflet-disabled {\\r\\n\\tcursor: default;\\r\\n\\tbackground-color: #f4f4f4;\\r\\n\\tcolor: #bbb;\\r\\n\\t}\\r\\n\\r\\n.leaflet-touch .leaflet-bar a {\\r\\n\\twidth: 30px;\\r\\n\\theight: 30px;\\r\\n\\tline-height: 30px;\\r\\n\\t}\\r\\n.leaflet-touch .leaflet-bar a:first-child {\\r\\n\\tborder-top-left-radius: 2px;\\r\\n\\tborder-top-right-radius: 2px;\\r\\n\\t}\\r\\n.leaflet-touch .leaflet-bar a:last-child {\\r\\n\\tborder-bottom-left-radius: 2px;\\r\\n\\tborder-bottom-right-radius: 2px;\\r\\n\\t}\\r\\n\\r\\n/* zoom control */\\r\\n\\r\\n.leaflet-control-zoom-in,\\r\\n.leaflet-control-zoom-out {\\r\\n\\tfont: bold 18px 'Lucida Console', Monaco, monospace;\\r\\n\\ttext-indent: 1px;\\r\\n\\t}\\r\\n\\r\\n.leaflet-touch .leaflet-control-zoom-in, .leaflet-touch .leaflet-control-zoom-out {\\r\\n\\tfont-size: 22px;\\r\\n\\t}\\r\\n\\r\\n\\r\\n/* layers control */\\r\\n\\r\\n.leaflet-control-layers {\\r\\n\\tbox-shadow: 0 1px 5px rgba(0,0,0,0.4);\\r\\n\\tbackground: #fff;\\r\\n\\tborder-radius: 5px;\\r\\n\\t}\\r\\n.leaflet-control-layers-toggle {\\r\\n\\tbackground-image: url(\" + escape(require(\"./images/layers.png\")) + \");\\r\\n\\twidth: 36px;\\r\\n\\theight: 36px;\\r\\n\\t}\\r\\n.leaflet-retina .leaflet-control-layers-toggle {\\r\\n\\tbackground-image: url(\" + escape(require(\"./images/layers-2x.png\")) + \");\\r\\n\\tbackground-size: 26px 26px;\\r\\n\\t}\\r\\n.leaflet-touch .leaflet-control-layers-toggle {\\r\\n\\twidth: 44px;\\r\\n\\theight: 44px;\\r\\n\\t}\\r\\n.leaflet-control-layers .leaflet-control-layers-list,\\r\\n.leaflet-control-layers-expanded .leaflet-control-layers-toggle {\\r\\n\\tdisplay: none;\\r\\n\\t}\\r\\n.leaflet-control-layers-expanded .leaflet-control-layers-list {\\r\\n\\tdisplay: block;\\r\\n\\tposition: relative;\\r\\n\\t}\\r\\n.leaflet-control-layers-expanded {\\r\\n\\tpadding: 6px 10px 6px 6px;\\r\\n\\tcolor: #333;\\r\\n\\tbackground: #fff;\\r\\n\\t}\\r\\n.leaflet-control-layers-scrollbar {\\r\\n\\toverflow-y: scroll;\\r\\n\\toverflow-x: hidden;\\r\\n\\tpadding-right: 5px;\\r\\n\\t}\\r\\n.leaflet-control-layers-selector {\\r\\n\\tmargin-top: 2px;\\r\\n\\tposition: relative;\\r\\n\\ttop: 1px;\\r\\n\\t}\\r\\n.leaflet-control-layers label {\\r\\n\\tdisplay: block;\\r\\n\\t}\\r\\n.leaflet-control-layers-separator {\\r\\n\\theight: 0;\\r\\n\\tborder-top: 1px solid #ddd;\\r\\n\\tmargin: 5px -10px 5px -6px;\\r\\n\\t}\\r\\n\\r\\n/* Default icon URLs */\\r\\n.leaflet-default-icon-path {\\r\\n\\tbackground-image: url(\" + escape(require(\"./images/marker-icon.png\")) + \");\\r\\n\\t}\\r\\n\\r\\n\\r\\n/* attribution and scale controls */\\r\\n\\r\\n.leaflet-container .leaflet-control-attribution {\\r\\n\\tbackground: #fff;\\r\\n\\tbackground: rgba(255, 255, 255, 0.7);\\r\\n\\tmargin: 0;\\r\\n\\t}\\r\\n.leaflet-control-attribution,\\r\\n.leaflet-control-scale-line {\\r\\n\\tpadding: 0 5px;\\r\\n\\tcolor: #333;\\r\\n\\t}\\r\\n.leaflet-control-attribution a {\\r\\n\\ttext-decoration: none;\\r\\n\\t}\\r\\n.leaflet-control-attribution a:hover {\\r\\n\\ttext-decoration: underline;\\r\\n\\t}\\r\\n.leaflet-container .leaflet-control-attribution,\\r\\n.leaflet-container .leaflet-control-scale {\\r\\n\\tfont-size: 11px;\\r\\n\\t}\\r\\n.leaflet-left .leaflet-control-scale {\\r\\n\\tmargin-left: 5px;\\r\\n\\t}\\r\\n.leaflet-bottom .leaflet-control-scale {\\r\\n\\tmargin-bottom: 5px;\\r\\n\\t}\\r\\n.leaflet-control-scale-line {\\r\\n\\tborder: 2px solid #777;\\r\\n\\tborder-top: none;\\r\\n\\tline-height: 1.1;\\r\\n\\tpadding: 2px 5px 1px;\\r\\n\\tfont-size: 11px;\\r\\n\\twhite-space: nowrap;\\r\\n\\toverflow: hidden;\\r\\n\\t-moz-box-sizing: border-box;\\r\\n\\t box-sizing: border-box;\\r\\n\\r\\n\\tbackground: #fff;\\r\\n\\tbackground: rgba(255, 255, 255, 0.5);\\r\\n\\t}\\r\\n.leaflet-control-scale-line:not(:first-child) {\\r\\n\\tborder-top: 2px solid #777;\\r\\n\\tborder-bottom: none;\\r\\n\\tmargin-top: -2px;\\r\\n\\t}\\r\\n.leaflet-control-scale-line:not(:first-child):not(:last-child) {\\r\\n\\tborder-bottom: 2px solid #777;\\r\\n\\t}\\r\\n\\r\\n.leaflet-touch .leaflet-control-attribution,\\r\\n.leaflet-touch .leaflet-control-layers,\\r\\n.leaflet-touch .leaflet-bar {\\r\\n\\tbox-shadow: none;\\r\\n\\t}\\r\\n.leaflet-touch .leaflet-control-layers,\\r\\n.leaflet-touch .leaflet-bar {\\r\\n\\tborder: 2px solid rgba(0,0,0,0.2);\\r\\n\\tbackground-clip: padding-box;\\r\\n\\t}\\r\\n\\r\\n\\r\\n/* popup */\\r\\n\\r\\n.leaflet-popup {\\r\\n\\tposition: absolute;\\r\\n\\ttext-align: center;\\r\\n\\tmargin-bottom: 20px;\\r\\n\\t}\\r\\n.leaflet-popup-content-wrapper {\\r\\n\\tpadding: 1px;\\r\\n\\ttext-align: left;\\r\\n\\tborder-radius: 12px;\\r\\n\\t}\\r\\n.leaflet-popup-content {\\r\\n\\tmargin: 13px 19px;\\r\\n\\tline-height: 1.4;\\r\\n\\t}\\r\\n.leaflet-popup-content p {\\r\\n\\tmargin: 18px 0;\\r\\n\\t}\\r\\n.leaflet-popup-tip-container {\\r\\n\\twidth: 40px;\\r\\n\\theight: 20px;\\r\\n\\tposition: absolute;\\r\\n\\tleft: 50%;\\r\\n\\tmargin-left: -20px;\\r\\n\\toverflow: hidden;\\r\\n\\tpointer-events: none;\\r\\n\\t}\\r\\n.leaflet-popup-tip {\\r\\n\\twidth: 17px;\\r\\n\\theight: 17px;\\r\\n\\tpadding: 1px;\\r\\n\\r\\n\\tmargin: -10px auto 0;\\r\\n\\r\\n\\t-webkit-transform: rotate(45deg);\\r\\n\\t -moz-transform: rotate(45deg);\\r\\n\\t -ms-transform: rotate(45deg);\\r\\n\\t -o-transform: rotate(45deg);\\r\\n\\t transform: rotate(45deg);\\r\\n\\t}\\r\\n.leaflet-popup-content-wrapper,\\r\\n.leaflet-popup-tip {\\r\\n\\tbackground: white;\\r\\n\\tcolor: #333;\\r\\n\\tbox-shadow: 0 3px 14px rgba(0,0,0,0.4);\\r\\n\\t}\\r\\n.leaflet-container a.leaflet-popup-close-button {\\r\\n\\tposition: absolute;\\r\\n\\ttop: 0;\\r\\n\\tright: 0;\\r\\n\\tpadding: 4px 4px 0 0;\\r\\n\\tborder: none;\\r\\n\\ttext-align: center;\\r\\n\\twidth: 18px;\\r\\n\\theight: 14px;\\r\\n\\tfont: 16px/14px Tahoma, Verdana, sans-serif;\\r\\n\\tcolor: #c3c3c3;\\r\\n\\ttext-decoration: none;\\r\\n\\tfont-weight: bold;\\r\\n\\tbackground: transparent;\\r\\n\\t}\\r\\n.leaflet-container a.leaflet-popup-close-button:hover {\\r\\n\\tcolor: #999;\\r\\n\\t}\\r\\n.leaflet-popup-scrolled {\\r\\n\\toverflow: auto;\\r\\n\\tborder-bottom: 1px solid #ddd;\\r\\n\\tborder-top: 1px solid #ddd;\\r\\n\\t}\\r\\n\\r\\n.leaflet-oldie .leaflet-popup-content-wrapper {\\r\\n\\tzoom: 1;\\r\\n\\t}\\r\\n.leaflet-oldie .leaflet-popup-tip {\\r\\n\\twidth: 24px;\\r\\n\\tmargin: 0 auto;\\r\\n\\r\\n\\t-ms-filter: \\\"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)\\\";\\r\\n\\tfilter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);\\r\\n\\t}\\r\\n.leaflet-oldie .leaflet-popup-tip-container {\\r\\n\\tmargin-top: -1px;\\r\\n\\t}\\r\\n\\r\\n.leaflet-oldie .leaflet-control-zoom,\\r\\n.leaflet-oldie .leaflet-control-layers,\\r\\n.leaflet-oldie .leaflet-popup-content-wrapper,\\r\\n.leaflet-oldie .leaflet-popup-tip {\\r\\n\\tborder: 1px solid #999;\\r\\n\\t}\\r\\n\\r\\n\\r\\n/* div icon */\\r\\n\\r\\n.leaflet-div-icon {\\r\\n\\tbackground: #fff;\\r\\n\\tborder: 1px solid #666;\\r\\n\\t}\\r\\n\\r\\n\\r\\n/* Tooltip */\\r\\n/* Base styles for the element that has a tooltip */\\r\\n.leaflet-tooltip {\\r\\n\\tposition: absolute;\\r\\n\\tpadding: 6px;\\r\\n\\tbackground-color: #fff;\\r\\n\\tborder: 1px solid #fff;\\r\\n\\tborder-radius: 3px;\\r\\n\\tcolor: #222;\\r\\n\\twhite-space: nowrap;\\r\\n\\t-webkit-user-select: none;\\r\\n\\t-moz-user-select: none;\\r\\n\\t-ms-user-select: none;\\r\\n\\tuser-select: none;\\r\\n\\tpointer-events: none;\\r\\n\\tbox-shadow: 0 1px 3px rgba(0,0,0,0.4);\\r\\n\\t}\\r\\n.leaflet-tooltip.leaflet-clickable {\\r\\n\\tcursor: pointer;\\r\\n\\tpointer-events: auto;\\r\\n\\t}\\r\\n.leaflet-tooltip-top:before,\\r\\n.leaflet-tooltip-bottom:before,\\r\\n.leaflet-tooltip-left:before,\\r\\n.leaflet-tooltip-right:before {\\r\\n\\tposition: absolute;\\r\\n\\tpointer-events: none;\\r\\n\\tborder: 6px solid transparent;\\r\\n\\tbackground: transparent;\\r\\n\\tcontent: \\\"\\\";\\r\\n\\t}\\r\\n\\r\\n/* Directions */\\r\\n\\r\\n.leaflet-tooltip-bottom {\\r\\n\\tmargin-top: 6px;\\r\\n}\\r\\n.leaflet-tooltip-top {\\r\\n\\tmargin-top: -6px;\\r\\n}\\r\\n.leaflet-tooltip-bottom:before,\\r\\n.leaflet-tooltip-top:before {\\r\\n\\tleft: 50%;\\r\\n\\tmargin-left: -6px;\\r\\n\\t}\\r\\n.leaflet-tooltip-top:before {\\r\\n\\tbottom: 0;\\r\\n\\tmargin-bottom: -12px;\\r\\n\\tborder-top-color: #fff;\\r\\n\\t}\\r\\n.leaflet-tooltip-bottom:before {\\r\\n\\ttop: 0;\\r\\n\\tmargin-top: -12px;\\r\\n\\tmargin-left: -6px;\\r\\n\\tborder-bottom-color: #fff;\\r\\n\\t}\\r\\n.leaflet-tooltip-left {\\r\\n\\tmargin-left: -6px;\\r\\n}\\r\\n.leaflet-tooltip-right {\\r\\n\\tmargin-left: 6px;\\r\\n}\\r\\n.leaflet-tooltip-left:before,\\r\\n.leaflet-tooltip-right:before {\\r\\n\\ttop: 50%;\\r\\n\\tmargin-top: -6px;\\r\\n\\t}\\r\\n.leaflet-tooltip-left:before {\\r\\n\\tright: 0;\\r\\n\\tmargin-right: -12px;\\r\\n\\tborder-left-color: #fff;\\r\\n\\t}\\r\\n.leaflet-tooltip-right:before {\\r\\n\\tleft: 0;\\r\\n\\tmargin-left: -12px;\\r\\n\\tborder-right-color: #fff;\\r\\n\\t}\\r\\n\", \"\"]);\n\n// exports\n"
},
{
"id": 131,
"identifier": "/Users/user/Projects/orchid/node_modules/css-loader/lib/url/escape.js",
"name": "./node_modules/css-loader/lib/url/escape.js",
"index": 107,
"index2": 101,
"size": 448,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/css-loader/index.js!/Users/user/Projects/orchid/node_modules/leaflet/dist/leaflet.css",
"issuerId": 130,
"issuerName": "./node_modules/css-loader!./node_modules/leaflet/dist/leaflet.css",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 126,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Map.js",
"name": "./src/modules/Map.js"
},
{
"id": 129,
"identifier": "/Users/user/Projects/orchid/node_modules/style-loader/index.js!/Users/user/Projects/orchid/node_modules/css-loader/index.js!/Users/user/Projects/orchid/node_modules/leaflet/dist/leaflet.css",
"name": "./node_modules/leaflet/dist/leaflet.css"
},
{
"id": 130,
"identifier": "/Users/user/Projects/orchid/node_modules/css-loader/index.js!/Users/user/Projects/orchid/node_modules/leaflet/dist/leaflet.css",
"name": "./node_modules/css-loader!./node_modules/leaflet/dist/leaflet.css"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 130,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/css-loader/index.js!/Users/user/Projects/orchid/node_modules/leaflet/dist/leaflet.css",
"module": "./node_modules/css-loader!./node_modules/leaflet/dist/leaflet.css",
"moduleName": "./node_modules/css-loader!./node_modules/leaflet/dist/leaflet.css",
"type": "cjs require",
"userRequest": "../../css-loader/lib/url/escape.js",
"loc": "1:13-58"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 6,
"source": "module.exports = function escape(url) {\n if (typeof url !== 'string') {\n return url\n }\n // If url is already wrapped in quotes, remove them\n if (/^['\"].*['\"]$/.test(url)) {\n url = url.slice(1, -1);\n }\n // Should url be wrapped?\n // See https://drafts.csswg.org/css-values-3/#urls\n if (/[\"'() \\t\\n]/.test(url)) {\n return '\"' + url.replace(/\"/g, '\\\\\"').replace(/\\n/g, '\\\\n') + '\"'\n }\n\n return url\n}\n"
},
{
"id": 132,
"identifier": "/Users/user/Projects/orchid/node_modules/file-loader/dist/cjs.js??ref--8!/Users/user/Projects/orchid/node_modules/leaflet/dist/images/layers.png",
"name": "./node_modules/leaflet/dist/images/layers.png",
"index": 109,
"index2": 103,
"size": 82,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/css-loader/index.js!/Users/user/Projects/orchid/node_modules/leaflet/dist/leaflet.css",
"issuerId": 130,
"issuerName": "./node_modules/css-loader!./node_modules/leaflet/dist/leaflet.css",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 126,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Map.js",
"name": "./src/modules/Map.js"
},
{
"id": 129,
"identifier": "/Users/user/Projects/orchid/node_modules/style-loader/index.js!/Users/user/Projects/orchid/node_modules/css-loader/index.js!/Users/user/Projects/orchid/node_modules/leaflet/dist/leaflet.css",
"name": "./node_modules/leaflet/dist/leaflet.css"
},
{
"id": 130,
"identifier": "/Users/user/Projects/orchid/node_modules/css-loader/index.js!/Users/user/Projects/orchid/node_modules/leaflet/dist/leaflet.css",
"name": "./node_modules/css-loader!./node_modules/leaflet/dist/leaflet.css"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [
"a6137456ed160d7606981aa57c559898.png"
],
"reasons": [
{
"moduleId": 130,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/css-loader/index.js!/Users/user/Projects/orchid/node_modules/leaflet/dist/leaflet.css",
"module": "./node_modules/css-loader!./node_modules/leaflet/dist/leaflet.css",
"moduleName": "./node_modules/css-loader!./node_modules/leaflet/dist/leaflet.css",
"type": "cjs require",
"userRequest": "./images/layers.png",
"loc": "7:8773-8803"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 6,
"source": "module.exports = __webpack_public_path__ + \"a6137456ed160d7606981aa57c559898.png\";"
},
{
"id": 133,
"identifier": "/Users/user/Projects/orchid/node_modules/file-loader/dist/cjs.js??ref--8!/Users/user/Projects/orchid/node_modules/leaflet/dist/images/layers-2x.png",
"name": "./node_modules/leaflet/dist/images/layers-2x.png",
"index": 110,
"index2": 104,
"size": 82,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/css-loader/index.js!/Users/user/Projects/orchid/node_modules/leaflet/dist/leaflet.css",
"issuerId": 130,
"issuerName": "./node_modules/css-loader!./node_modules/leaflet/dist/leaflet.css",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 126,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Map.js",
"name": "./src/modules/Map.js"
},
{
"id": 129,
"identifier": "/Users/user/Projects/orchid/node_modules/style-loader/index.js!/Users/user/Projects/orchid/node_modules/css-loader/index.js!/Users/user/Projects/orchid/node_modules/leaflet/dist/leaflet.css",
"name": "./node_modules/leaflet/dist/leaflet.css"
},
{
"id": 130,
"identifier": "/Users/user/Projects/orchid/node_modules/css-loader/index.js!/Users/user/Projects/orchid/node_modules/leaflet/dist/leaflet.css",
"name": "./node_modules/css-loader!./node_modules/leaflet/dist/leaflet.css"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [
"4f0283c6ce28e888000e978e537a6a56.png"
],
"reasons": [
{
"moduleId": 130,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/css-loader/index.js!/Users/user/Projects/orchid/node_modules/leaflet/dist/leaflet.css",
"module": "./node_modules/css-loader!./node_modules/leaflet/dist/leaflet.css",
"moduleName": "./node_modules/css-loader!./node_modules/leaflet/dist/leaflet.css",
"type": "cjs require",
"userRequest": "./images/layers-2x.png",
"loc": "7:8945-8978"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 6,
"source": "module.exports = __webpack_public_path__ + \"4f0283c6ce28e888000e978e537a6a56.png\";"
},
{
"id": 134,
"identifier": "/Users/user/Projects/orchid/node_modules/file-loader/dist/cjs.js??ref--8!/Users/user/Projects/orchid/node_modules/leaflet/dist/images/marker-icon.png",
"name": "./node_modules/leaflet/dist/images/marker-icon.png",
"index": 111,
"index2": 105,
"size": 82,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/css-loader/index.js!/Users/user/Projects/orchid/node_modules/leaflet/dist/leaflet.css",
"issuerId": 130,
"issuerName": "./node_modules/css-loader!./node_modules/leaflet/dist/leaflet.css",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 126,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Map.js",
"name": "./src/modules/Map.js"
},
{
"id": 129,
"identifier": "/Users/user/Projects/orchid/node_modules/style-loader/index.js!/Users/user/Projects/orchid/node_modules/css-loader/index.js!/Users/user/Projects/orchid/node_modules/leaflet/dist/leaflet.css",
"name": "./node_modules/leaflet/dist/leaflet.css"
},
{
"id": 130,
"identifier": "/Users/user/Projects/orchid/node_modules/css-loader/index.js!/Users/user/Projects/orchid/node_modules/leaflet/dist/leaflet.css",
"name": "./node_modules/css-loader!./node_modules/leaflet/dist/leaflet.css"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [
"2273e3d8ad9264b7daa5bdbf8e6b47f8.png"
],
"reasons": [
{
"moduleId": 130,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/css-loader/index.js!/Users/user/Projects/orchid/node_modules/leaflet/dist/leaflet.css",
"module": "./node_modules/css-loader!./node_modules/leaflet/dist/leaflet.css",
"moduleName": "./node_modules/css-loader!./node_modules/leaflet/dist/leaflet.css",
"type": "cjs require",
"userRequest": "./images/marker-icon.png",
"loc": "7:10032-10067"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 6,
"source": "module.exports = __webpack_public_path__ + \"2273e3d8ad9264b7daa5bdbf8e6b47f8.png\";"
},
{
"id": 135,
"identifier": "/Users/user/Projects/orchid/node_modules/style-loader/lib/urls.js",
"name": "./node_modules/style-loader/lib/urls.js",
"index": 113,
"index2": 107,
"size": 3013,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/style-loader/lib/addStyles.js",
"issuerId": 42,
"issuerName": "./node_modules/style-loader/lib/addStyles.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 189,
"identifier": "/Users/user/Projects/orchid/node_modules/style-loader/index.js!/Users/user/Projects/orchid/node_modules/css-loader/index.js!/Users/user/Projects/orchid/node_modules/less-loader/dist/cjs.js!/Users/user/Projects/orchid/src/styles/map.less",
"name": "./src/styles/map.less"
},
{
"id": 42,
"identifier": "/Users/user/Projects/orchid/node_modules/style-loader/lib/addStyles.js",
"name": "./node_modules/style-loader/lib/addStyles.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 42,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/style-loader/lib/addStyles.js",
"module": "./node_modules/style-loader/lib/addStyles.js",
"moduleName": "./node_modules/style-loader/lib/addStyles.js",
"type": "cjs require",
"userRequest": "./urls",
"loc": "64:14-31"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 3,
"source": "\n/**\n * When source maps are enabled, `style-loader` uses a link element with a data-uri to\n * embed the css on the page. This breaks all relative urls because now they are relative to a\n * bundle instead of the current page.\n *\n * One solution is to only use full urls, but that may be impossible.\n *\n * Instead, this function \"fixes\" the relative urls to be absolute according to the current page location.\n *\n * A rudimentary test suite is located at `test/fixUrls.js` and can be run via the `npm test` command.\n *\n */\n\nmodule.exports = function (css) {\n // get current location\n var location = typeof window !== \"undefined\" && window.location;\n\n if (!location) {\n throw new Error(\"fixUrls requires window.location\");\n }\n\n\t// blank or null?\n\tif (!css || typeof css !== \"string\") {\n\t return css;\n }\n\n var baseUrl = location.protocol + \"//\" + location.host;\n var currentDir = baseUrl + location.pathname.replace(/\\/[^\\/]*$/, \"/\");\n\n\t// convert each url(...)\n\t/*\n\tThis regular expression is just a way to recursively match brackets within\n\ta string.\n\n\t /url\\s*\\( = Match on the word \"url\" with any whitespace after it and then a parens\n\t ( = Start a capturing group\n\t (?: = Start a non-capturing group\n\t [^)(] = Match anything that isn't a parentheses\n\t | = OR\n\t \\( = Match a start parentheses\n\t (?: = Start another non-capturing groups\n\t [^)(]+ = Match anything that isn't a parentheses\n\t | = OR\n\t \\( = Match a start parentheses\n\t [^)(]* = Match anything that isn't a parentheses\n\t \\) = Match a end parentheses\n\t ) = End Group\n *\\) = Match anything and then a close parens\n ) = Close non-capturing group\n * = Match anything\n ) = Close capturing group\n\t \\) = Match a close parens\n\n\t /gi = Get all matches, not the first. Be case insensitive.\n\t */\n\tvar fixedCss = css.replace(/url\\s*\\(((?:[^)(]|\\((?:[^)(]+|\\([^)(]*\\))*\\))*)\\)/gi, function(fullMatch, origUrl) {\n\t\t// strip quotes (if they exist)\n\t\tvar unquotedOrigUrl = origUrl\n\t\t\t.trim()\n\t\t\t.replace(/^\"(.*)\"$/, function(o, $1){ return $1; })\n\t\t\t.replace(/^'(.*)'$/, function(o, $1){ return $1; });\n\n\t\t// already a full url? no change\n\t\tif (/^(#|data:|http:\\/\\/|https:\\/\\/|file:\\/\\/\\/|\\s*$)/i.test(unquotedOrigUrl)) {\n\t\t return fullMatch;\n\t\t}\n\n\t\t// convert the url to a full url\n\t\tvar newUrl;\n\n\t\tif (unquotedOrigUrl.indexOf(\"//\") === 0) {\n\t\t \t//TODO: should we add protocol?\n\t\t\tnewUrl = unquotedOrigUrl;\n\t\t} else if (unquotedOrigUrl.indexOf(\"/\") === 0) {\n\t\t\t// path should be relative to the base url\n\t\t\tnewUrl = baseUrl + unquotedOrigUrl; // already starts with '/'\n\t\t} else {\n\t\t\t// path should be relative to current directory\n\t\t\tnewUrl = currentDir + unquotedOrigUrl.replace(/^\\.\\//, \"\"); // Strip leading './'\n\t\t}\n\n\t\t// send back the fixed url(...)\n\t\treturn \"url(\" + JSON.stringify(newUrl) + \")\";\n\t});\n\n\t// send back the fixed css\n\treturn fixedCss;\n};\n"
},
{
"id": 136,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Poly.js",
"name": "./src/modules/Poly.js",
"index": 115,
"index2": 121,
"size": 4906,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"issuerId": 124,
"issuerName": "./src/modules/Editor.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 124,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"module": "./src/modules/Editor.js",
"moduleName": "./src/modules/Editor.js",
"type": "cjs require",
"userRequest": "$modules/Poly",
"loc": "22:12-36"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 3,
"source": "'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.Poly = undefined;\n\nvar _slicedToArray2 = require('babel-runtime/helpers/slicedToArray');\n\nvar _slicedToArray3 = _interopRequireDefault(_slicedToArray2);\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _leaflet = require('leaflet');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n(function () {\n var enterModule = require('react-hot-loader').enterModule;\n\n enterModule && enterModule(module);\n})();\n\nvar polyStyle = { color: '#ff3333', weight: '5' };\n\nvar Poly = exports.Poly = function () {\n function Poly(_ref) {\n var _this = this;\n\n var map = _ref.map,\n routerMoveStart = _ref.routerMoveStart,\n lockMapClicks = _ref.lockMapClicks;\n (0, _classCallCheck3.default)(this, Poly);\n\n this.updateMarks = function () {\n console.log('upd');\n var coords = _this.poly.toGeoJSON().geometry.coordinates;\n _this.latlngs = coords && coords.length && coords.map(function (_ref2) {\n var _ref3 = (0, _slicedToArray3.default)(_ref2, 2),\n lng = _ref3[0],\n lat = _ref3[1];\n\n return { lng: lng, lat: lat };\n }) || [];\n\n _this.routerMoveStart();\n };\n\n this.bindEvents = function () {\n // Если на карте что-то меняется, пересчитать километражи\n _this.map.editTools.addEventListener('editable:drawing:mouseup', _this.updateMarks);\n _this.map.editTools.addEventListener('editable:vertex:dragend', _this.updateMarks);\n _this.map.editTools.addEventListener('editable:vertex:mouseup', _this.updateMarks);\n _this.map.editTools.addEventListener('editable:vertex:deleted', _this.updateMarks);\n _this.map.editTools.addEventListener('editable:vertex:new', _this.updateMarks);\n\n _this.map.editTools.addEventListener('editable:vertex:dragstart', _this.lockMap);\n\n // После удаления точки - продолжить рисование\n _this.map.editTools.addEventListener('editable:vertex:deleted', _this.continueForward);\n //\n // map.editTools.addEventListener('editable:vertex:dragend', e => writeReduxData({ e, updatePolyCoords }));\n // map.editTools.addEventListener('editable:vertex:new', e => writeReduxData({ e, updatePolyCoords }));\n // map.editTools.addEventListener('editable:vertex:deleted', e => writeReduxData({ e, updatePolyCoords }));\n\n // Продолжить рисование после удаления точки\n // map.editTools.addEventListener('editable:vertex:deleted', e => {\n // poly.editor.continueForward();\n // updateMarks();\n // });\n\n // Добавлять точек в полилинию по щелчку\n // map.editTools.addEventListener('editable:drawing:click', e => insertVertex({ e, updatePolyCoords }));\n // map.editTools.addEventListener('editable:drawing:clicked', () => updateMarks({ updatePolyCoords }));\n\n // Это для точек. При перетаскивании конца указателя тащим точку\n // map.editTools.addEventListener('editable:vertex:drag', on_vertex_drag);\n\n // при перетаскивании ручек убирать все отметки километров\n // map.editTools.addEventListener('editable:vertex:dragstart', clearKmMarks);\n };\n\n this.continue = function () {\n if (_this.latlngs && _this.latlngs.length) {\n _this.poly.enableEdit().continueForward();\n _this.poly.editor.reset();\n } else {\n _this.poly = _this.map.editTools.startPolyline();\n _this.poly.setStyle(polyStyle);\n }\n };\n\n this.stop = function () {\n if (_this.map.editTools) _this.map.editTools.stopDrawing();\n };\n\n this.continueForward = function () {\n if (!_this.poly.editor) return;\n _this.poly.editor.continueForward();\n };\n\n this.lockMap = function () {\n _this.lockMapClicks(true);\n };\n\n this.poly = (0, _leaflet.polyline)([], polyStyle);\n this.latlngs = [];\n this.poly.addTo(map);\n this.map = map;\n\n this.routerMoveStart = routerMoveStart;\n this.lockMapClicks = lockMapClicks;\n this.bindEvents();\n }\n\n (0, _createClass3.default)(Poly, [{\n key: '__reactstandin__regenerateByEval',\n // @ts-ignore\n value: function __reactstandin__regenerateByEval(key, code) {\n // @ts-ignore\n this[key] = eval(code);\n }\n }]);\n return Poly;\n}();\n\n;\n\n(function () {\n var reactHotLoader = require('react-hot-loader').default;\n\n var leaveModule = require('react-hot-loader').leaveModule;\n\n if (!reactHotLoader) {\n return;\n }\n\n reactHotLoader.register(polyStyle, 'polyStyle', '/Users/user/Projects/orchid/src/modules/Poly.js');\n reactHotLoader.register(Poly, 'Poly', '/Users/user/Projects/orchid/src/modules/Poly.js');\n leaveModule(module);\n})();\n\n;"
},
{
"id": 137,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/slicedToArray.js",
"name": "./node_modules/babel-runtime/helpers/slicedToArray.js",
"index": 116,
"index2": 120,
"size": 1204,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Poly.js",
"issuerId": 136,
"issuerName": "./src/modules/Poly.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 136,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Poly.js",
"name": "./src/modules/Poly.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 136,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Poly.js",
"module": "./src/modules/Poly.js",
"moduleName": "./src/modules/Poly.js",
"type": "cjs require",
"userRequest": "babel-runtime/helpers/slicedToArray",
"loc": "8:22-68"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 4,
"source": "\"use strict\";\n\nexports.__esModule = true;\n\nvar _isIterable2 = require(\"../core-js/is-iterable\");\n\nvar _isIterable3 = _interopRequireDefault(_isIterable2);\n\nvar _getIterator2 = require(\"../core-js/get-iterator\");\n\nvar _getIterator3 = _interopRequireDefault(_getIterator2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function () {\n function sliceIterator(arr, i) {\n var _arr = [];\n var _n = true;\n var _d = false;\n var _e = undefined;\n\n try {\n for (var _i = (0, _getIterator3.default)(arr), _s; !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"]) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n\n return _arr;\n }\n\n return function (arr, i) {\n if (Array.isArray(arr)) {\n return arr;\n } else if ((0, _isIterable3.default)(Object(arr))) {\n return sliceIterator(arr, i);\n } else {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance\");\n }\n };\n}();"
},
{
"id": 138,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/is-iterable.js",
"name": "./node_modules/babel-runtime/core-js/is-iterable.js",
"index": 117,
"index2": 115,
"size": 92,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/slicedToArray.js",
"issuerId": 137,
"issuerName": "./node_modules/babel-runtime/helpers/slicedToArray.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 136,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Poly.js",
"name": "./src/modules/Poly.js"
},
{
"id": 137,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/slicedToArray.js",
"name": "./node_modules/babel-runtime/helpers/slicedToArray.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 137,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/slicedToArray.js",
"module": "./node_modules/babel-runtime/helpers/slicedToArray.js",
"moduleName": "./node_modules/babel-runtime/helpers/slicedToArray.js",
"type": "cjs require",
"userRequest": "../core-js/is-iterable",
"loc": "5:19-52"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 5,
"source": "module.exports = { \"default\": require(\"core-js/library/fn/is-iterable\"), __esModule: true };"
},
{
"id": 139,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/is-iterable.js",
"name": "./node_modules/core-js/library/fn/is-iterable.js",
"index": 118,
"index2": 114,
"size": 140,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/is-iterable.js",
"issuerId": 138,
"issuerName": "./node_modules/babel-runtime/core-js/is-iterable.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 136,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Poly.js",
"name": "./src/modules/Poly.js"
},
{
"id": 137,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/slicedToArray.js",
"name": "./node_modules/babel-runtime/helpers/slicedToArray.js"
},
{
"id": 138,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/is-iterable.js",
"name": "./node_modules/babel-runtime/core-js/is-iterable.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 138,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/is-iterable.js",
"module": "./node_modules/babel-runtime/core-js/is-iterable.js",
"moduleName": "./node_modules/babel-runtime/core-js/is-iterable.js",
"type": "cjs require",
"userRequest": "core-js/library/fn/is-iterable",
"loc": "1:30-71"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 6,
"source": "require('../modules/web.dom.iterable');\nrequire('../modules/es6.string.iterator');\nmodule.exports = require('../modules/core.is-iterable');\n"
},
{
"id": 140,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/core.is-iterable.js",
"name": "./node_modules/core-js/library/modules/core.is-iterable.js",
"index": 119,
"index2": 113,
"size": 373,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/is-iterable.js",
"issuerId": 139,
"issuerName": "./node_modules/core-js/library/fn/is-iterable.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 136,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Poly.js",
"name": "./src/modules/Poly.js"
},
{
"id": 137,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/slicedToArray.js",
"name": "./node_modules/babel-runtime/helpers/slicedToArray.js"
},
{
"id": 138,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/is-iterable.js",
"name": "./node_modules/babel-runtime/core-js/is-iterable.js"
},
{
"id": 139,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/is-iterable.js",
"name": "./node_modules/core-js/library/fn/is-iterable.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 139,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/is-iterable.js",
"module": "./node_modules/core-js/library/fn/is-iterable.js",
"moduleName": "./node_modules/core-js/library/fn/is-iterable.js",
"type": "cjs require",
"userRequest": "../modules/core.is-iterable",
"loc": "3:17-55"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "var classof = require('./_classof');\nvar ITERATOR = require('./_wks')('iterator');\nvar Iterators = require('./_iterators');\nmodule.exports = require('./_core').isIterable = function (it) {\n var O = Object(it);\n return O[ITERATOR] !== undefined\n || '@@iterator' in O\n // eslint-disable-next-line no-prototype-builtins\n || Iterators.hasOwnProperty(classof(O));\n};\n"
},
{
"id": 141,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/get-iterator.js",
"name": "./node_modules/babel-runtime/core-js/get-iterator.js",
"index": 121,
"index2": 119,
"size": 93,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/slicedToArray.js",
"issuerId": 137,
"issuerName": "./node_modules/babel-runtime/helpers/slicedToArray.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 136,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Poly.js",
"name": "./src/modules/Poly.js"
},
{
"id": 137,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/slicedToArray.js",
"name": "./node_modules/babel-runtime/helpers/slicedToArray.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 137,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/slicedToArray.js",
"module": "./node_modules/babel-runtime/helpers/slicedToArray.js",
"moduleName": "./node_modules/babel-runtime/helpers/slicedToArray.js",
"type": "cjs require",
"userRequest": "../core-js/get-iterator",
"loc": "9:20-54"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 5,
"source": "module.exports = { \"default\": require(\"core-js/library/fn/get-iterator\"), __esModule: true };"
},
{
"id": 142,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/get-iterator.js",
"name": "./node_modules/core-js/library/fn/get-iterator.js",
"index": 122,
"index2": 118,
"size": 141,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/get-iterator.js",
"issuerId": 141,
"issuerName": "./node_modules/babel-runtime/core-js/get-iterator.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 136,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Poly.js",
"name": "./src/modules/Poly.js"
},
{
"id": 137,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/slicedToArray.js",
"name": "./node_modules/babel-runtime/helpers/slicedToArray.js"
},
{
"id": 141,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/get-iterator.js",
"name": "./node_modules/babel-runtime/core-js/get-iterator.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 141,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/get-iterator.js",
"module": "./node_modules/babel-runtime/core-js/get-iterator.js",
"moduleName": "./node_modules/babel-runtime/core-js/get-iterator.js",
"type": "cjs require",
"userRequest": "core-js/library/fn/get-iterator",
"loc": "1:30-72"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 6,
"source": "require('../modules/web.dom.iterable');\nrequire('../modules/es6.string.iterator');\nmodule.exports = require('../modules/core.get-iterator');\n"
},
{
"id": 143,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/core.get-iterator.js",
"name": "./node_modules/core-js/library/modules/core.get-iterator.js",
"index": 123,
"index2": 117,
"size": 296,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/get-iterator.js",
"issuerId": 142,
"issuerName": "./node_modules/core-js/library/fn/get-iterator.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 136,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Poly.js",
"name": "./src/modules/Poly.js"
},
{
"id": 137,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/slicedToArray.js",
"name": "./node_modules/babel-runtime/helpers/slicedToArray.js"
},
{
"id": 141,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/get-iterator.js",
"name": "./node_modules/babel-runtime/core-js/get-iterator.js"
},
{
"id": 142,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/get-iterator.js",
"name": "./node_modules/core-js/library/fn/get-iterator.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 142,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/get-iterator.js",
"module": "./node_modules/core-js/library/fn/get-iterator.js",
"moduleName": "./node_modules/core-js/library/fn/get-iterator.js",
"type": "cjs require",
"userRequest": "../modules/core.get-iterator",
"loc": "3:17-56"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "var anObject = require('./_an-object');\nvar get = require('./core.get-iterator-method');\nmodule.exports = require('./_core').getIterator = function (it) {\n var iterFn = get(it);\n if (typeof iterFn != 'function') throw TypeError(it + ' is not iterable!');\n return anObject(iterFn.call(it));\n};\n"
},
{
"id": 144,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Stickers.js",
"name": "./src/modules/Stickers.js",
"index": 126,
"index2": 125,
"size": 2420,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"issuerId": 124,
"issuerName": "./src/modules/Editor.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 124,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"module": "./src/modules/Editor.js",
"moduleName": "./src/modules/Editor.js",
"type": "cjs require",
"userRequest": "$modules/Stickers",
"loc": "26:16-44"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 3,
"source": "'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.Stickers = undefined;\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _leaflet = require('leaflet');\n\nvar _Sticker = require('$modules/Sticker');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n(function () {\n var enterModule = require('react-hot-loader').enterModule;\n\n enterModule && enterModule(module);\n})();\n\nvar Stickers = exports.Stickers = function () {\n function Stickers(_ref) {\n var _this = this;\n\n var map = _ref.map,\n lockMapClicks = _ref.lockMapClicks;\n (0, _classCallCheck3.default)(this, Stickers);\n\n this.createOnClick = function (e) {\n if (!e || !e.latlng) return;\n\n var latlng = e.latlng;\n\n _this.createSticker({ latlng: latlng });\n };\n\n this.createSticker = function (_ref2) {\n var latlng = _ref2.latlng;\n\n var sticker = new _Sticker.Sticker({\n latlng: latlng,\n deleteSticker: _this.deleteStickerByReference,\n map: _this.map,\n lockMapClicks: _this.lockMapClicks\n });\n _this.stickers.push(sticker);\n\n sticker.sticker.addTo(_this.map);\n sticker.sticker.enableEdit();\n };\n\n this.deleteStickerByReference = function (ref) {\n var index = _this.stickers.indexOf(ref);\n\n if (index < 0) return;\n\n _this.map.removeLayer(ref.sticker);\n _this.stickers.splice(index, 1);\n };\n\n this.map = map;\n this.layer = (0, _leaflet.layerGroup)();\n\n this.lockMapClicks = lockMapClicks;\n this.stickers = [];\n\n this.layer.addTo(this.map);\n }\n\n (0, _createClass3.default)(Stickers, [{\n key: '__reactstandin__regenerateByEval',\n // @ts-ignore\n value: function __reactstandin__regenerateByEval(key, code) {\n // @ts-ignore\n this[key] = eval(code);\n }\n }]);\n return Stickers;\n}();\n\n;\n\n(function () {\n var reactHotLoader = require('react-hot-loader').default;\n\n var leaveModule = require('react-hot-loader').leaveModule;\n\n if (!reactHotLoader) {\n return;\n }\n\n reactHotLoader.register(Stickers, 'Stickers', '/Users/user/Projects/orchid/src/modules/Stickers.js');\n leaveModule(module);\n})();\n\n;"
},
{
"id": 145,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Sticker.js",
"name": "./src/modules/Sticker.js",
"index": 127,
"index2": 124,
"size": 4809,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Stickers.js",
"issuerId": 144,
"issuerName": "./src/modules/Stickers.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 144,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Stickers.js",
"name": "./src/modules/Stickers.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 144,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Stickers.js",
"module": "./src/modules/Stickers.js",
"moduleName": "./src/modules/Stickers.js",
"type": "cjs require",
"userRequest": "$modules/Sticker",
"loc": "18:15-42"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 4,
"source": "'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.Sticker = undefined;\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _leaflet = require('leaflet');\n\nrequire('leaflet-editable');\n\nvar _DomMarker = require('$utils/DomMarker');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n(function () {\n var enterModule = require('react-hot-loader').enterModule;\n\n enterModule && enterModule(module);\n})();\n\nvar Sticker = exports.Sticker = function () {\n function Sticker(_ref) {\n var _this = this;\n\n var latlng = _ref.latlng,\n deleteSticker = _ref.deleteSticker,\n map = _ref.map,\n lockMapClicks = _ref.lockMapClicks;\n (0, _classCallCheck3.default)(this, Sticker);\n\n this.onDelete = function () {\n if (!_this.isDragging) _this.deleteSticker(_this);\n };\n\n this.onDragStart = function (e) {\n _this.preventPropagations(e);\n\n _this.isDragging = true;\n _this.sticker.disableEdit();\n\n _this.lockMapClicks(true);\n\n window.addEventListener('mousemove', _this.onDrag);\n window.addEventListener('mouseup', _this.onDragStop);\n };\n\n this.preventPropagations = function (e) {\n if (!e || !e.stopPropagation) return;\n\n e.stopPropagation();\n e.preventDefault();\n };\n\n this.onDragStop = function (e) {\n _this.preventPropagations(e);\n\n _this.isDragging = false;\n _this.sticker.enableEdit();\n\n window.removeEventListener('mousemove', _this.onDrag);\n window.removeEventListener('mouseup', _this.onDragStop);\n\n _this.lockMapClicks(false);\n };\n\n this.onDrag = function (e) {\n _this.preventPropagations(e);\n _this.estimateAngle(e);\n };\n\n this.estimateAngle = function (e) {\n var _element$getBoundingC = _this.element.getBoundingClientRect(),\n x = _element$getBoundingC.x,\n y = _element$getBoundingC.y;\n\n var pageX = e.pageX,\n pageY = e.pageY;\n\n _this.angle = Math.atan2(y - pageY, x - pageX);\n\n _this.setAngle(_this.angle);\n };\n\n this.setAngle = function (angle) {\n // $(active_sticker.container).css('left',6+x-parseInt(active_sticker.ctrl.css('left'))).css('top',6+y-parseInt(active_sticker.ctrl.css('top')));\n //\n var rad = 30;\n var mrad = 48;\n var x = Math.cos(angle + 3.14) * rad - 30;\n var y = Math.sin(angle + 3.14) * rad - 30;\n\n var ax = Math.cos(angle + 3.4) * mrad - 12;\n var ay = Math.sin(angle + 3.4) * mrad - 12;\n\n _this.stickerImage.style.left = 6 + x;\n _this.stickerImage.style.top = 6 + y;\n\n _this.stickerDelete.style.left = ax;\n _this.stickerDelete.style.top = ay;\n\n _this.stickerArrow.style.transform = 'rotate(' + (angle + 3.14) + 'rad)';\n };\n\n this.angle = 2.2;\n this.isDragging = false;\n this.map = map;\n\n this.deleteSticker = deleteSticker;\n this.lockMapClicks = lockMapClicks;\n\n this.element = document.createElement('div');\n this.stickerImage = document.createElement('div');\n this.stickerArrow = document.createElement('div');\n this.stickerDelete = document.createElement('div');\n\n this.element.className = 'sticker-container';\n this.stickerImage.className = 'sticker-label';\n this.stickerArrow.className = 'sticker-arrow';\n this.stickerDelete.className = 'sticker-delete';\n\n this.element.appendChild(this.stickerArrow);\n this.element.appendChild(this.stickerImage);\n this.element.appendChild(this.stickerDelete);\n\n var mark = new _DomMarker.DomMarker({\n element: this.element,\n className: 'sticker-container'\n });\n\n this.sticker = (0, _leaflet.marker)(latlng, { icon: mark });\n\n this.setAngle(this.angle);\n\n this.stickerImage.addEventListener('mousedown', this.onDragStart);\n this.stickerImage.addEventListener('mouseup', this.onDragStop);\n\n this.element.addEventListener('mouseup', this.preventPropagations);\n this.stickerDelete.addEventListener('click', this.onDelete);\n }\n\n (0, _createClass3.default)(Sticker, [{\n key: '__reactstandin__regenerateByEval',\n // @ts-ignore\n value: function __reactstandin__regenerateByEval(key, code) {\n // @ts-ignore\n this[key] = eval(code);\n }\n }]);\n return Sticker;\n}();\n\n;\n\n(function () {\n var reactHotLoader = require('react-hot-loader').default;\n\n var leaveModule = require('react-hot-loader').leaveModule;\n\n if (!reactHotLoader) {\n return;\n }\n\n reactHotLoader.register(Sticker, 'Sticker', '/Users/user/Projects/orchid/src/modules/Sticker.js');\n leaveModule(module);\n})();\n\n;"
},
{
"id": 146,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"name": "./src/modules/Router.js",
"index": 129,
"index2": 156,
"size": 5673,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"issuerId": 124,
"issuerName": "./src/modules/Editor.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 124,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"module": "./src/modules/Editor.js",
"moduleName": "./src/modules/Editor.js",
"type": "cjs require",
"userRequest": "$modules/Router",
"loc": "28:14-40"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 3,
"source": "'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.Router = undefined;\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nvar _toConsumableArray2 = require('babel-runtime/helpers/toConsumableArray');\n\nvar _toConsumableArray3 = _interopRequireDefault(_toConsumableArray2);\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _leaflet = require('leaflet');\n\nvar _leaflet2 = _interopRequireDefault(_leaflet);\n\nvar _index = require('leaflet-routing-machine/src/index');\n\nvar _index2 = _interopRequireDefault(_index);\n\nvar _$config = require('$config');\n\nvar _DomMarker = require('$utils/DomMarker');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n(function () {\n var enterModule = require('react-hot-loader').enterModule;\n\n enterModule && enterModule(module);\n})();\n\nvar Router = exports.Router = function () {\n function Router(_ref) {\n var _this = this;\n\n var map = _ref.map,\n lockMapClicks = _ref.lockMapClicks;\n (0, _classCallCheck3.default)(this, Router);\n\n this.pushWaypointOnClick = function (_ref2) {\n var _ref2$latlng = _ref2.latlng,\n lat = _ref2$latlng.lat,\n lng = _ref2$latlng.lng;\n\n var waypoints = _this.router.getWaypoints().filter(function (_ref3) {\n var latLng = _ref3.latLng;\n return !!latLng;\n });\n console.log('push', waypoints);\n _this.router.setWaypoints([].concat((0, _toConsumableArray3.default)(waypoints), [{ lat: lat, lng: lng }]));\n };\n\n this.createWaypointMarker = function () {\n var element = document.createElement('div');\n\n element.addEventListener('mousedown', _this.lockPropagations);\n element.addEventListener('mouseup', _this.unlockPropagations);\n\n return new _DomMarker.DomMarker({\n element: element,\n className: 'router-waypoint'\n });\n };\n\n this.lockPropagations = function () {\n console.log('lock');\n window.addEventListener('mouseup', _this.unlockPropagations);\n _this.lockMapClicks(true);\n };\n\n this.unlockPropagations = function (e) {\n console.log('unlock');\n if (e && e.preventPropagations) {\n console.log('stop');\n e.preventDefault();\n e.preventPropagations();\n }\n\n window.removeEventListener('mouseup', _this.unlockPropagations);\n setTimeout(function () {\n return _this.lockMapClicks(false);\n }, 300);\n };\n\n this.startFrom = function (latlngs) {\n var waypoints = _this.router.getWaypoints();\n\n if (waypoints && waypoints.length) {\n waypoints[0] = (0, _extends3.default)({}, latlngs);\n _this.router.setWaypoints(waypoints);\n return;\n }\n\n _this.router.setWaypoints([(0, _extends3.default)({}, latlngs)]);\n };\n\n this.moveStart = function (latlng) {\n var waypoints = _this.router.getWaypoints();\n\n var _ref4 = waypoints[0] || {},\n latLng = _ref4.latLng;\n\n if (!latLng || !latlng) return;\n\n if (latlng.lat.toFixed(5) === latLng.lat.toFixed(5) && latlng.lng.toFixed(5) === latLng.lng.toFixed(5)) {\n return;\n }\n\n waypoints[0] = (0, _extends3.default)({}, latlng);\n\n _this.router.setWaypoints(waypoints);\n };\n\n var routeLine = function routeLine(r) {\n return _index2.default.line(r, {\n styles: [{ color: 'white', opacity: 0.8, weight: 6 }, { color: '#4597d0', opacity: 1, weight: 4, dashArray: '15,10' }],\n addWaypoints: true\n }).on('linetouched', _this.lockPropagations);\n };\n\n this.router = _index2.default.control({\n serviceUrl: _$config.CONFIG.OSRM_URL,\n profile: 'bike',\n fitSelectedRoutes: false,\n routeLine: routeLine,\n altLineOptions: {\n styles: [{ color: '#4597d0', opacity: 1, weight: 3 }]\n },\n show: false,\n plan: _index2.default.plan([], {\n createMarker: function createMarker(i, wp) {\n return _leaflet2.default.marker(wp.latLng, {\n draggable: true,\n icon: _this.createWaypointMarker()\n });\n },\n routeWhileDragging: true\n }),\n routeWhileDragging: true\n });\n // .on('waypointschanged', this.updateWaypointsByEvent);\n\n this.router.addTo(map);\n\n this.waypoints = [];\n this.lockMapClicks = lockMapClicks;\n\n console.log('router', this.router);\n // this.router._line.on('mousedown', console.log);\n console.log('map', map);\n }\n //\n\n //\n // pushWaypoint = latlng => {\n // this.waypoints.push(latlng);\n // this.updateWaypoints();\n // };\n //\n // updateWaypointsByEvent = (e) => {\n // console.log('upd', e);\n // // this.waypoints = waypoints.map(({ latlng }) => latlng);\n //\n // };\n //\n // updateWaypoints = () => {\n // this.router.setWaypoints(this.waypoints);\n // };\n //\n\n //\n\n //\n\n\n (0, _createClass3.default)(Router, [{\n key: '__reactstandin__regenerateByEval',\n // @ts-ignore\n value: function __reactstandin__regenerateByEval(key, code) {\n // @ts-ignore\n this[key] = eval(code);\n }\n }]);\n return Router;\n}();\n\n;\n\n(function () {\n var reactHotLoader = require('react-hot-loader').default;\n\n var leaveModule = require('react-hot-loader').leaveModule;\n\n if (!reactHotLoader) {\n return;\n }\n\n reactHotLoader.register(Router, 'Router', '/Users/user/Projects/orchid/src/modules/Router.js');\n leaveModule(module);\n})();\n\n;"
},
{
"id": 147,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/extends.js",
"name": "./node_modules/babel-runtime/helpers/extends.js",
"index": 130,
"index2": 130,
"size": 544,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"issuerId": 146,
"issuerName": "./src/modules/Router.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 146,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"name": "./src/modules/Router.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 146,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"module": "./src/modules/Router.js",
"moduleName": "./src/modules/Router.js",
"type": "cjs require",
"userRequest": "babel-runtime/helpers/extends",
"loc": "8:16-56"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 4,
"source": "\"use strict\";\n\nexports.__esModule = true;\n\nvar _assign = require(\"../core-js/object/assign\");\n\nvar _assign2 = _interopRequireDefault(_assign);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = _assign2.default || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n};"
},
{
"id": 148,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/object/assign.js",
"name": "./node_modules/babel-runtime/core-js/object/assign.js",
"index": 131,
"index2": 129,
"size": 94,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/extends.js",
"issuerId": 147,
"issuerName": "./node_modules/babel-runtime/helpers/extends.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 146,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"name": "./src/modules/Router.js"
},
{
"id": 147,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/extends.js",
"name": "./node_modules/babel-runtime/helpers/extends.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 147,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/extends.js",
"module": "./node_modules/babel-runtime/helpers/extends.js",
"moduleName": "./node_modules/babel-runtime/helpers/extends.js",
"type": "cjs require",
"userRequest": "../core-js/object/assign",
"loc": "5:14-49"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 5,
"source": "module.exports = { \"default\": require(\"core-js/library/fn/object/assign\"), __esModule: true };"
},
{
"id": 149,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/object/assign.js",
"name": "./node_modules/core-js/library/fn/object/assign.js",
"index": 132,
"index2": 128,
"size": 107,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/object/assign.js",
"issuerId": 148,
"issuerName": "./node_modules/babel-runtime/core-js/object/assign.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 146,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"name": "./src/modules/Router.js"
},
{
"id": 147,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/extends.js",
"name": "./node_modules/babel-runtime/helpers/extends.js"
},
{
"id": 148,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/object/assign.js",
"name": "./node_modules/babel-runtime/core-js/object/assign.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 148,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/object/assign.js",
"module": "./node_modules/babel-runtime/core-js/object/assign.js",
"moduleName": "./node_modules/babel-runtime/core-js/object/assign.js",
"type": "cjs require",
"userRequest": "core-js/library/fn/object/assign",
"loc": "1:30-73"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 6,
"source": "require('../../modules/es6.object.assign');\nmodule.exports = require('../../modules/_core').Object.assign;\n"
},
{
"id": 150,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.object.assign.js",
"name": "./node_modules/core-js/library/modules/es6.object.assign.js",
"index": 133,
"index2": 127,
"size": 162,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/object/assign.js",
"issuerId": 149,
"issuerName": "./node_modules/core-js/library/fn/object/assign.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 146,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"name": "./src/modules/Router.js"
},
{
"id": 147,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/extends.js",
"name": "./node_modules/babel-runtime/helpers/extends.js"
},
{
"id": 148,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/object/assign.js",
"name": "./node_modules/babel-runtime/core-js/object/assign.js"
},
{
"id": 149,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/object/assign.js",
"name": "./node_modules/core-js/library/fn/object/assign.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 149,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/object/assign.js",
"module": "./node_modules/core-js/library/fn/object/assign.js",
"moduleName": "./node_modules/core-js/library/fn/object/assign.js",
"type": "cjs require",
"userRequest": "../../modules/es6.object.assign",
"loc": "1:0-42"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "// 19.1.3.1 Object.assign(target, source)\nvar $export = require('./_export');\n\n$export($export.S + $export.F, 'Object', { assign: require('./_object-assign') });\n"
},
{
"id": 151,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_object-assign.js",
"name": "./node_modules/core-js/library/modules/_object-assign.js",
"index": 134,
"index2": 126,
"size": 1195,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.object.assign.js",
"issuerId": 150,
"issuerName": "./node_modules/core-js/library/modules/es6.object.assign.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 146,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"name": "./src/modules/Router.js"
},
{
"id": 147,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/extends.js",
"name": "./node_modules/babel-runtime/helpers/extends.js"
},
{
"id": 148,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/object/assign.js",
"name": "./node_modules/babel-runtime/core-js/object/assign.js"
},
{
"id": 149,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/object/assign.js",
"name": "./node_modules/core-js/library/fn/object/assign.js"
},
{
"id": 150,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.object.assign.js",
"name": "./node_modules/core-js/library/modules/es6.object.assign.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 150,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.object.assign.js",
"module": "./node_modules/core-js/library/modules/es6.object.assign.js",
"moduleName": "./node_modules/core-js/library/modules/es6.object.assign.js",
"type": "cjs require",
"userRequest": "./_object-assign",
"loc": "4:51-78"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 8,
"source": "'use strict';\n// 19.1.2.1 Object.assign(target, source, ...)\nvar getKeys = require('./_object-keys');\nvar gOPS = require('./_object-gops');\nvar pIE = require('./_object-pie');\nvar toObject = require('./_to-object');\nvar IObject = require('./_iobject');\nvar $assign = Object.assign;\n\n// should work with symbols and should have deterministic property order (V8 bug)\nmodule.exports = !$assign || require('./_fails')(function () {\n var A = {};\n var B = {};\n // eslint-disable-next-line no-undef\n var S = Symbol();\n var K = 'abcdefghijklmnopqrst';\n A[S] = 7;\n K.split('').forEach(function (k) { B[k] = k; });\n return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K;\n}) ? function assign(target, source) { // eslint-disable-line no-unused-vars\n var T = toObject(target);\n var aLen = arguments.length;\n var index = 1;\n var getSymbols = gOPS.f;\n var isEnum = pIE.f;\n while (aLen > index) {\n var S = IObject(arguments[index++]);\n var keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S);\n var length = keys.length;\n var j = 0;\n var key;\n while (length > j) if (isEnum.call(S, key = keys[j++])) T[key] = S[key];\n } return T;\n} : $assign;\n"
},
{
"id": 152,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/toConsumableArray.js",
"name": "./node_modules/babel-runtime/helpers/toConsumableArray.js",
"index": 135,
"index2": 138,
"size": 466,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"issuerId": 146,
"issuerName": "./src/modules/Router.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 146,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"name": "./src/modules/Router.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 146,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"module": "./src/modules/Router.js",
"moduleName": "./src/modules/Router.js",
"type": "cjs require",
"userRequest": "babel-runtime/helpers/toConsumableArray",
"loc": "12:26-76"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 4,
"source": "\"use strict\";\n\nexports.__esModule = true;\n\nvar _from = require(\"../core-js/array/from\");\n\nvar _from2 = _interopRequireDefault(_from);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function (arr) {\n if (Array.isArray(arr)) {\n for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) {\n arr2[i] = arr[i];\n }\n\n return arr2;\n } else {\n return (0, _from2.default)(arr);\n }\n};"
},
{
"id": 153,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/array/from.js",
"name": "./node_modules/babel-runtime/core-js/array/from.js",
"index": 136,
"index2": 137,
"size": 91,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/toConsumableArray.js",
"issuerId": 152,
"issuerName": "./node_modules/babel-runtime/helpers/toConsumableArray.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 146,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"name": "./src/modules/Router.js"
},
{
"id": 152,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/toConsumableArray.js",
"name": "./node_modules/babel-runtime/helpers/toConsumableArray.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 152,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/toConsumableArray.js",
"module": "./node_modules/babel-runtime/helpers/toConsumableArray.js",
"moduleName": "./node_modules/babel-runtime/helpers/toConsumableArray.js",
"type": "cjs require",
"userRequest": "../core-js/array/from",
"loc": "5:12-44"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 5,
"source": "module.exports = { \"default\": require(\"core-js/library/fn/array/from\"), __esModule: true };"
},
{
"id": 154,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/array/from.js",
"name": "./node_modules/core-js/library/fn/array/from.js",
"index": 137,
"index2": 136,
"size": 147,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/array/from.js",
"issuerId": 153,
"issuerName": "./node_modules/babel-runtime/core-js/array/from.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 146,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"name": "./src/modules/Router.js"
},
{
"id": 152,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/toConsumableArray.js",
"name": "./node_modules/babel-runtime/helpers/toConsumableArray.js"
},
{
"id": 153,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/array/from.js",
"name": "./node_modules/babel-runtime/core-js/array/from.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 153,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/array/from.js",
"module": "./node_modules/babel-runtime/core-js/array/from.js",
"moduleName": "./node_modules/babel-runtime/core-js/array/from.js",
"type": "cjs require",
"userRequest": "core-js/library/fn/array/from",
"loc": "1:30-70"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 6,
"source": "require('../../modules/es6.string.iterator');\nrequire('../../modules/es6.array.from');\nmodule.exports = require('../../modules/_core').Array.from;\n"
},
{
"id": 155,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.array.from.js",
"name": "./node_modules/core-js/library/modules/es6.array.from.js",
"index": 138,
"index2": 135,
"size": 1635,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/array/from.js",
"issuerId": 154,
"issuerName": "./node_modules/core-js/library/fn/array/from.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 146,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"name": "./src/modules/Router.js"
},
{
"id": 152,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/toConsumableArray.js",
"name": "./node_modules/babel-runtime/helpers/toConsumableArray.js"
},
{
"id": 153,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/array/from.js",
"name": "./node_modules/babel-runtime/core-js/array/from.js"
},
{
"id": 154,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/array/from.js",
"name": "./node_modules/core-js/library/fn/array/from.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 154,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/array/from.js",
"module": "./node_modules/core-js/library/fn/array/from.js",
"moduleName": "./node_modules/core-js/library/fn/array/from.js",
"type": "cjs require",
"userRequest": "../../modules/es6.array.from",
"loc": "2:0-39"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "'use strict';\nvar ctx = require('./_ctx');\nvar $export = require('./_export');\nvar toObject = require('./_to-object');\nvar call = require('./_iter-call');\nvar isArrayIter = require('./_is-array-iter');\nvar toLength = require('./_to-length');\nvar createProperty = require('./_create-property');\nvar getIterFn = require('./core.get-iterator-method');\n\n$export($export.S + $export.F * !require('./_iter-detect')(function (iter) { Array.from(iter); }), 'Array', {\n // 22.1.2.1 Array.from(arrayLike, mapfn = undefined, thisArg = undefined)\n from: function from(arrayLike /* , mapfn = undefined, thisArg = undefined */) {\n var O = toObject(arrayLike);\n var C = typeof this == 'function' ? this : Array;\n var aLen = arguments.length;\n var mapfn = aLen > 1 ? arguments[1] : undefined;\n var mapping = mapfn !== undefined;\n var index = 0;\n var iterFn = getIterFn(O);\n var length, result, step, iterator;\n if (mapping) mapfn = ctx(mapfn, aLen > 2 ? arguments[2] : undefined, 2);\n // if object isn't iterable or it's array with default iterator - use simple case\n if (iterFn != undefined && !(C == Array && isArrayIter(iterFn))) {\n for (iterator = iterFn.call(O), result = new C(); !(step = iterator.next()).done; index++) {\n createProperty(result, index, mapping ? call(iterator, mapfn, [step.value, index], true) : step.value);\n }\n } else {\n length = toLength(O.length);\n for (result = new C(length); length > index; index++) {\n createProperty(result, index, mapping ? mapfn(O[index], index) : O[index]);\n }\n }\n result.length = index;\n return result;\n }\n});\n"
},
{
"id": 156,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_iter-call.js",
"name": "./node_modules/core-js/library/modules/_iter-call.js",
"index": 139,
"index2": 131,
"size": 410,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.array.from.js",
"issuerId": 155,
"issuerName": "./node_modules/core-js/library/modules/es6.array.from.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 146,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"name": "./src/modules/Router.js"
},
{
"id": 152,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/toConsumableArray.js",
"name": "./node_modules/babel-runtime/helpers/toConsumableArray.js"
},
{
"id": 153,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/array/from.js",
"name": "./node_modules/babel-runtime/core-js/array/from.js"
},
{
"id": 154,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/array/from.js",
"name": "./node_modules/core-js/library/fn/array/from.js"
},
{
"id": 155,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.array.from.js",
"name": "./node_modules/core-js/library/modules/es6.array.from.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 155,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.array.from.js",
"module": "./node_modules/core-js/library/modules/es6.array.from.js",
"moduleName": "./node_modules/core-js/library/modules/es6.array.from.js",
"type": "cjs require",
"userRequest": "./_iter-call",
"loc": "5:11-34"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 8,
"source": "// call something on iterator step with safe closing on error\nvar anObject = require('./_an-object');\nmodule.exports = function (iterator, fn, value, entries) {\n try {\n return entries ? fn(anObject(value)[0], value[1]) : fn(value);\n // 7.4.6 IteratorClose(iterator, completion)\n } catch (e) {\n var ret = iterator['return'];\n if (ret !== undefined) anObject(ret.call(iterator));\n throw e;\n }\n};\n"
},
{
"id": 157,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_is-array-iter.js",
"name": "./node_modules/core-js/library/modules/_is-array-iter.js",
"index": 140,
"index2": 132,
"size": 279,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.array.from.js",
"issuerId": 155,
"issuerName": "./node_modules/core-js/library/modules/es6.array.from.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 146,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"name": "./src/modules/Router.js"
},
{
"id": 152,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/toConsumableArray.js",
"name": "./node_modules/babel-runtime/helpers/toConsumableArray.js"
},
{
"id": 153,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/array/from.js",
"name": "./node_modules/babel-runtime/core-js/array/from.js"
},
{
"id": 154,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/array/from.js",
"name": "./node_modules/core-js/library/fn/array/from.js"
},
{
"id": 155,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.array.from.js",
"name": "./node_modules/core-js/library/modules/es6.array.from.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 155,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.array.from.js",
"module": "./node_modules/core-js/library/modules/es6.array.from.js",
"moduleName": "./node_modules/core-js/library/modules/es6.array.from.js",
"type": "cjs require",
"userRequest": "./_is-array-iter",
"loc": "6:18-45"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 8,
"source": "// check on default Array iterator\nvar Iterators = require('./_iterators');\nvar ITERATOR = require('./_wks')('iterator');\nvar ArrayProto = Array.prototype;\n\nmodule.exports = function (it) {\n return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it);\n};\n"
},
{
"id": 158,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_create-property.js",
"name": "./node_modules/core-js/library/modules/_create-property.js",
"index": 141,
"index2": 133,
"size": 271,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.array.from.js",
"issuerId": 155,
"issuerName": "./node_modules/core-js/library/modules/es6.array.from.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 146,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"name": "./src/modules/Router.js"
},
{
"id": 152,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/toConsumableArray.js",
"name": "./node_modules/babel-runtime/helpers/toConsumableArray.js"
},
{
"id": 153,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/array/from.js",
"name": "./node_modules/babel-runtime/core-js/array/from.js"
},
{
"id": 154,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/array/from.js",
"name": "./node_modules/core-js/library/fn/array/from.js"
},
{
"id": 155,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.array.from.js",
"name": "./node_modules/core-js/library/modules/es6.array.from.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 155,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.array.from.js",
"module": "./node_modules/core-js/library/modules/es6.array.from.js",
"moduleName": "./node_modules/core-js/library/modules/es6.array.from.js",
"type": "cjs require",
"userRequest": "./_create-property",
"loc": "8:21-50"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 8,
"source": "'use strict';\nvar $defineProperty = require('./_object-dp');\nvar createDesc = require('./_property-desc');\n\nmodule.exports = function (object, index, value) {\n if (index in object) $defineProperty.f(object, index, createDesc(0, value));\n else object[index] = value;\n};\n"
},
{
"id": 159,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/_iter-detect.js",
"name": "./node_modules/core-js/library/modules/_iter-detect.js",
"index": 142,
"index2": 134,
"size": 645,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.array.from.js",
"issuerId": 155,
"issuerName": "./node_modules/core-js/library/modules/es6.array.from.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 146,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"name": "./src/modules/Router.js"
},
{
"id": 152,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/helpers/toConsumableArray.js",
"name": "./node_modules/babel-runtime/helpers/toConsumableArray.js"
},
{
"id": 153,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-runtime/core-js/array/from.js",
"name": "./node_modules/babel-runtime/core-js/array/from.js"
},
{
"id": 154,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/fn/array/from.js",
"name": "./node_modules/core-js/library/fn/array/from.js"
},
{
"id": 155,
"identifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.array.from.js",
"name": "./node_modules/core-js/library/modules/es6.array.from.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 155,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/core-js/library/modules/es6.array.from.js",
"module": "./node_modules/core-js/library/modules/es6.array.from.js",
"moduleName": "./node_modules/core-js/library/modules/es6.array.from.js",
"type": "cjs require",
"userRequest": "./_iter-detect",
"loc": "11:33-58"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 8,
"source": "var ITERATOR = require('./_wks')('iterator');\nvar SAFE_CLOSING = false;\n\ntry {\n var riter = [7][ITERATOR]();\n riter['return'] = function () { SAFE_CLOSING = true; };\n // eslint-disable-next-line no-throw-literal\n Array.from(riter, function () { throw 2; });\n} catch (e) { /* empty */ }\n\nmodule.exports = function (exec, skipClosing) {\n if (!skipClosing && !SAFE_CLOSING) return false;\n var safe = false;\n try {\n var arr = [7];\n var iter = arr[ITERATOR]();\n iter.next = function () { return { done: safe = true }; };\n arr[ITERATOR] = function () { return iter; };\n exec(arr);\n } catch (e) { /* empty */ }\n return safe;\n};\n"
},
{
"id": 160,
"identifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/index.js",
"name": "./node_modules/leaflet-routing-machine/src/index.js",
"index": 143,
"index2": 154,
"size": 2528,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"issuerId": 146,
"issuerName": "./src/modules/Router.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 146,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"name": "./src/modules/Router.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 146,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"module": "./src/modules/Router.js",
"moduleName": "./src/modules/Router.js",
"type": "cjs require",
"userRequest": "leaflet-routing-machine/src/index",
"loc": "28:13-57"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 4,
"source": "var L = require('leaflet'),\n Control = require('./control'),\n Itinerary = require('./itinerary'),\n Line = require('./line'),\n OSRMv1 = require('./osrm-v1'),\n Plan = require('./plan'),\n Waypoint = require('./waypoint'),\n Autocomplete = require('./autocomplete'),\n Formatter = require('./formatter'),\n GeocoderElement = require('./geocoder-element'),\n Localization = require('./localization'),\n ItineraryBuilder = require('./itinerary-builder'),\n Mapbox = require('./mapbox'),\n ErrorControl = require('./error-control');\n\nL.routing = {\n control: function(options) { return new Control(options); },\n itinerary: function(options) {\n return Itinerary(options);\n },\n line: function(route, options) {\n return new Line(route, options);\n },\n plan: function(waypoints, options) {\n return new Plan(waypoints, options);\n },\n waypoint: function(latLng, name, options) {\n return new Waypoint(latLng, name, options);\n },\n osrmv1: function(options) {\n return new OSRMv1(options);\n },\n localization: function(options) {\n return new Localization(options);\n },\n formatter: function(options) {\n return new Formatter(options);\n },\n geocoderElement: function(wp, i, nWps, plan) {\n return new L.Routing.GeocoderElement(wp, i, nWps, plan);\n },\n itineraryBuilder: function(options) {\n return new ItineraryBuilder(options);\n },\n mapbox: function(accessToken, options) {\n return new Mapbox(accessToken, options);\n },\n errorControl: function(routingControl, options) {\n return new ErrorControl(routingControl, options);\n },\n autocomplete: function(elem, callback, context, options) {\n return new Autocomplete(elem, callback, context, options);\n }\n};\n\nmodule.exports = L.Routing = {\n Control: Control,\n Itinerary: Itinerary,\n Line: Line,\n OSRMv1: OSRMv1,\n Plan: Plan,\n Waypoint: Waypoint,\n Autocomplete: Autocomplete,\n Formatter: Formatter,\n GeocoderElement: GeocoderElement,\n Localization: Localization,\n Formatter: Formatter,\n ItineraryBuilder: ItineraryBuilder,\n\n // Legacy; remove these in next major release\n control: L.routing.control,\n itinerary: L.routing.itinerary,\n line: L.routing.line,\n plan: L.routing.plan,\n waypoint: L.routing.waypoint,\n osrmv1: L.routing.osrmv1,\n geocoderElement: L.routing.geocoderElement,\n mapbox: L.routing.mapbox,\n errorControl: L.routing.errorControl,\n};\n"
},
{
"id": 161,
"identifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/control.js",
"name": "./node_modules/leaflet-routing-machine/src/control.js",
"index": 144,
"index2": 151,
"size": 8833,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/index.js",
"issuerId": 160,
"issuerName": "./node_modules/leaflet-routing-machine/src/index.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 146,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"name": "./src/modules/Router.js"
},
{
"id": 160,
"identifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/index.js",
"name": "./node_modules/leaflet-routing-machine/src/index.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 160,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/index.js",
"module": "./node_modules/leaflet-routing-machine/src/index.js",
"moduleName": "./node_modules/leaflet-routing-machine/src/index.js",
"type": "cjs require",
"userRequest": "./control",
"loc": "2:14-34"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 5,
"source": "(function() {\n\t'use strict';\n\n\tvar L = require('leaflet');\n\n\tvar Itinerary = require('./itinerary');\n\tvar Line = require('./line');\n\tvar Plan = require('./plan');\n\tvar OSRMv1 = require('./osrm-v1');\n\n\tmodule.exports = Itinerary.extend({\n\t\toptions: {\n\t\t\tfitSelectedRoutes: 'smart',\n\t\t\trouteLine: function(route, options) { return new Line(route, options); },\n\t\t\tautoRoute: true,\n\t\t\trouteWhileDragging: false,\n\t\t\trouteDragInterval: 500,\n\t\t\twaypointMode: 'connect',\n\t\t\tshowAlternatives: false,\n\t\t\tdefaultErrorHandler: function(e) {\n\t\t\t\tconsole.error('Routing error:', e.error);\n\t\t\t}\n\t\t},\n\n\t\tinitialize: function(options) {\n\t\t\tL.Util.setOptions(this, options);\n\n\t\t\tthis._router = this.options.router || new OSRMv1(options);\n\t\t\tthis._plan = this.options.plan || new Plan(this.options.waypoints, options);\n\t\t\tthis._requestCount = 0;\n\n\t\t\tItinerary.prototype.initialize.call(this, options);\n\n\t\t\tthis.on('routeselected', this._routeSelected, this);\n\t\t\tif (this.options.defaultErrorHandler) {\n\t\t\t\tthis.on('routingerror', this.options.defaultErrorHandler);\n\t\t\t}\n\t\t\tthis._plan.on('waypointschanged', this._onWaypointsChanged, this);\n\t\t\tif (options.routeWhileDragging) {\n\t\t\t\tthis._setupRouteDragging();\n\t\t\t}\n\n\t\t\tif (this.options.autoRoute) {\n\t\t\t\tthis.route();\n\t\t\t}\n\t\t},\n\n\t\t_onZoomEnd: function() {\n\t\t\tif (!this._selectedRoute ||\n\t\t\t\t!this._router.requiresMoreDetail) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tvar map = this._map;\n\t\t\tif (this._router.requiresMoreDetail(this._selectedRoute,\n\t\t\t\t\tmap.getZoom(), map.getBounds())) {\n\t\t\t\tthis.route({\n\t\t\t\t\tcallback: L.bind(function(err, routes) {\n\t\t\t\t\t\tvar i;\n\t\t\t\t\t\tif (!err) {\n\t\t\t\t\t\t\tfor (i = 0; i < routes.length; i++) {\n\t\t\t\t\t\t\t\tthis._routes[i].properties = routes[i].properties;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tthis._updateLineCallback(err, routes);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}, this),\n\t\t\t\t\tsimplifyGeometry: false,\n\t\t\t\t\tgeometryOnly: true\n\t\t\t\t});\n\t\t\t}\n\t\t},\n\n\t\tonAdd: function(map) {\n\t\t\tvar container = Itinerary.prototype.onAdd.call(this, map);\n\n\t\t\tthis._map = map;\n\t\t\tthis._map.addLayer(this._plan);\n\n\t\t\tthis._map.on('zoomend', this._onZoomEnd, this);\n\n\t\t\tif (this._plan.options.geocoder) {\n\t\t\t\tcontainer.insertBefore(this._plan.createGeocoders(), container.firstChild);\n\t\t\t}\n\n\t\t\treturn container;\n\t\t},\n\n\t\tonRemove: function(map) {\n\t\t\tmap.off('zoomend', this._onZoomEnd, this);\n\t\t\tif (this._line) {\n\t\t\t\tmap.removeLayer(this._line);\n\t\t\t}\n\t\t\tmap.removeLayer(this._plan);\n\t\t\tif (this._alternatives && this._alternatives.length > 0) {\n\t\t\t\tfor (var i = 0, len = this._alternatives.length; i < len; i++) {\n\t\t\t\t\tmap.removeLayer(this._alternatives[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn Itinerary.prototype.onRemove.call(this, map);\n\t\t},\n\n\t\tgetWaypoints: function() {\n\t\t\treturn this._plan.getWaypoints();\n\t\t},\n\n\t\tsetWaypoints: function(waypoints) {\n\t\t\tthis._plan.setWaypoints(waypoints);\n\t\t\treturn this;\n\t\t},\n\n\t\tspliceWaypoints: function() {\n\t\t\tvar removed = this._plan.spliceWaypoints.apply(this._plan, arguments);\n\t\t\treturn removed;\n\t\t},\n\n\t\tgetPlan: function() {\n\t\t\treturn this._plan;\n\t\t},\n\n\t\tgetRouter: function() {\n\t\t\treturn this._router;\n\t\t},\n\n\t\t_routeSelected: function(e) {\n\t\t\tvar route = this._selectedRoute = e.route,\n\t\t\t\talternatives = this.options.showAlternatives && e.alternatives,\n\t\t\t\tfitMode = this.options.fitSelectedRoutes,\n\t\t\t\tfitBounds =\n\t\t\t\t\t(fitMode === 'smart' && !this._waypointsVisible()) ||\n\t\t\t\t\t(fitMode !== 'smart' && fitMode);\n\n\t\t\tthis._updateLines({route: route, alternatives: alternatives});\n\n\t\t\tif (fitBounds) {\n\t\t\t\tthis._map.fitBounds(this._line.getBounds());\n\t\t\t}\n\n\t\t\tif (this.options.waypointMode === 'snap') {\n\t\t\t\tthis._plan.off('waypointschanged', this._onWaypointsChanged, this);\n\t\t\t\tthis.setWaypoints(route.waypoints);\n\t\t\t\tthis._plan.on('waypointschanged', this._onWaypointsChanged, this);\n\t\t\t}\n\t\t},\n\n\t\t_waypointsVisible: function() {\n\t\t\tvar wps = this.getWaypoints(),\n\t\t\t\tmapSize,\n\t\t\t\tbounds,\n\t\t\t\tboundsSize,\n\t\t\t\ti,\n\t\t\t\tp;\n\n\t\t\ttry {\n\t\t\t\tmapSize = this._map.getSize();\n\n\t\t\t\tfor (i = 0; i < wps.length; i++) {\n\t\t\t\t\tp = this._map.latLngToLayerPoint(wps[i].latLng);\n\n\t\t\t\t\tif (bounds) {\n\t\t\t\t\t\tbounds.extend(p);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tbounds = L.bounds([p]);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tboundsSize = bounds.getSize();\n\t\t\t\treturn (boundsSize.x > mapSize.x / 5 ||\n\t\t\t\t\tboundsSize.y > mapSize.y / 5) && this._waypointsInViewport();\n\n\t\t\t} catch (e) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t},\n\n\t\t_waypointsInViewport: function() {\n\t\t\tvar wps = this.getWaypoints(),\n\t\t\t\tmapBounds,\n\t\t\t\ti;\n\n\t\t\ttry {\n\t\t\t\tmapBounds = this._map.getBounds();\n\t\t\t} catch (e) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tfor (i = 0; i < wps.length; i++) {\n\t\t\t\tif (mapBounds.contains(wps[i].latLng)) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn false;\n\t\t},\n\n\t\t_updateLines: function(routes) {\n\t\t\tvar addWaypoints = this.options.addWaypoints !== undefined ?\n\t\t\t\tthis.options.addWaypoints : true;\n\t\t\tthis._clearLines();\n\n\t\t\t// add alternatives first so they lie below the main route\n\t\t\tthis._alternatives = [];\n\t\t\tif (routes.alternatives) routes.alternatives.forEach(function(alt, i) {\n\t\t\t\tthis._alternatives[i] = this.options.routeLine(alt,\n\t\t\t\t\tL.extend({\n\t\t\t\t\t\tisAlternative: true\n\t\t\t\t\t}, this.options.altLineOptions || this.options.lineOptions));\n\t\t\t\tthis._alternatives[i].addTo(this._map);\n\t\t\t\tthis._hookAltEvents(this._alternatives[i]);\n\t\t\t}, this);\n\n\t\t\tthis._line = this.options.routeLine(routes.route,\n\t\t\t\tL.extend({\n\t\t\t\t\taddWaypoints: addWaypoints,\n\t\t\t\t\textendToWaypoints: this.options.waypointMode === 'connect'\n\t\t\t\t}, this.options.lineOptions));\n\t\t\tthis._line.addTo(this._map);\n\t\t\tthis._hookEvents(this._line);\n\t\t},\n\n\t\t_hookEvents: function(l) {\n\t\t\tl.on('linetouched', function(e) {\n\t\t\t\tthis._plan.dragNewWaypoint(e);\n\t\t\t}, this);\n\t\t},\n\n\t\t_hookAltEvents: function(l) {\n\t\t\tl.on('linetouched', function(e) {\n\t\t\t\tvar alts = this._routes.slice();\n\t\t\t\tvar selected = alts.splice(e.target._route.routesIndex, 1)[0];\n\t\t\t\tthis.fire('routeselected', {route: selected, alternatives: alts});\n\t\t\t}, this);\n\t\t},\n\n\t\t_onWaypointsChanged: function(e) {\n\t\t\tif (this.options.autoRoute) {\n\t\t\t\tthis.route({});\n\t\t\t}\n\t\t\tif (!this._plan.isReady()) {\n\t\t\t\tthis._clearLines();\n\t\t\t\tthis._clearAlts();\n\t\t\t}\n\t\t\tthis.fire('waypointschanged', {waypoints: e.waypoints});\n\t\t},\n\n\t\t_setupRouteDragging: function() {\n\t\t\tvar timer = 0,\n\t\t\t\twaypoints;\n\n\t\t\tthis._plan.on('waypointdrag', L.bind(function(e) {\n\t\t\t\twaypoints = e.waypoints;\n\n\t\t\t\tif (!timer) {\n\t\t\t\t\ttimer = setTimeout(L.bind(function() {\n\t\t\t\t\t\tthis.route({\n\t\t\t\t\t\t\twaypoints: waypoints,\n\t\t\t\t\t\t\tgeometryOnly: true,\n\t\t\t\t\t\t\tcallback: L.bind(this._updateLineCallback, this)\n\t\t\t\t\t\t});\n\t\t\t\t\t\ttimer = undefined;\n\t\t\t\t\t}, this), this.options.routeDragInterval);\n\t\t\t\t}\n\t\t\t}, this));\n\t\t\tthis._plan.on('waypointdragend', function() {\n\t\t\t\tif (timer) {\n\t\t\t\t\tclearTimeout(timer);\n\t\t\t\t\ttimer = undefined;\n\t\t\t\t}\n\t\t\t\tthis.route();\n\t\t\t}, this);\n\t\t},\n\n\t\t_updateLineCallback: function(err, routes) {\n\t\t\tif (!err) {\n\t\t\t\troutes = routes.slice();\n\t\t\t\tvar selected = routes.splice(this._selectedRoute.routesIndex, 1)[0];\n\t\t\t\tthis._updateLines({\n\t\t\t\t\troute: selected,\n\t\t\t\t\talternatives: this.options.showAlternatives ? routes : []\n\t\t\t\t});\n\t\t\t} else if (err.type !== 'abort') {\n\t\t\t\tthis._clearLines();\n\t\t\t}\n\t\t},\n\n\t\troute: function(options) {\n\t\t\tvar ts = ++this._requestCount,\n\t\t\t\twps;\n\n\t\t\tif (this._pendingRequest && this._pendingRequest.abort) {\n\t\t\t\tthis._pendingRequest.abort();\n\t\t\t\tthis._pendingRequest = null;\n\t\t\t}\n\n\t\t\toptions = options || {};\n\n\t\t\tif (this._plan.isReady()) {\n\t\t\t\tif (this.options.useZoomParameter) {\n\t\t\t\t\toptions.z = this._map && this._map.getZoom();\n\t\t\t\t}\n\n\t\t\t\twps = options && options.waypoints || this._plan.getWaypoints();\n\t\t\t\tthis.fire('routingstart', {waypoints: wps});\n\t\t\t\tthis._pendingRequest = this._router.route(wps, function(err, routes) {\n\t\t\t\t\tthis._pendingRequest = null;\n\n\t\t\t\t\tif (options.callback) {\n\t\t\t\t\t\treturn options.callback.call(this, err, routes);\n\t\t\t\t\t}\n\n\t\t\t\t\t// Prevent race among multiple requests,\n\t\t\t\t\t// by checking the current request's count\n\t\t\t\t\t// against the last request's; ignore result if\n\t\t\t\t\t// this isn't the last request.\n\t\t\t\t\tif (ts === this._requestCount) {\n\t\t\t\t\t\tthis._clearLines();\n\t\t\t\t\t\tthis._clearAlts();\n\t\t\t\t\t\tif (err && err.type !== 'abort') {\n\t\t\t\t\t\t\tthis.fire('routingerror', {error: err});\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\troutes.forEach(function(route, i) { route.routesIndex = i; });\n\n\t\t\t\t\t\tif (!options.geometryOnly) {\n\t\t\t\t\t\t\tthis.fire('routesfound', {waypoints: wps, routes: routes});\n\t\t\t\t\t\t\tthis.setAlternatives(routes);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tvar selectedRoute = routes.splice(0,1)[0];\n\t\t\t\t\t\t\tthis._routeSelected({route: selectedRoute, alternatives: routes});\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}, this, options);\n\t\t\t}\n\t\t},\n\n\t\t_clearLines: function() {\n\t\t\tif (this._line) {\n\t\t\t\tthis._map.removeLayer(this._line);\n\t\t\t\tdelete this._line;\n\t\t\t}\n\t\t\tif (this._alternatives && this._alternatives.length) {\n\t\t\t\tfor (var i in this._alternatives) {\n\t\t\t\t\tthis._map.removeLayer(this._alternatives[i]);\n\t\t\t\t}\n\t\t\t\tthis._alternatives = [];\n\t\t\t}\n\t\t}\n\t});\n})();\n"
},
{
"id": 162,
"identifier": "/Users/user/Projects/orchid/node_modules/@mapbox/corslite/corslite.js",
"name": "./node_modules/@mapbox/corslite/corslite.js",
"index": 155,
"index2": 148,
"size": 2809,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/osrm-v1.js",
"issuerId": 45,
"issuerName": "./node_modules/leaflet-routing-machine/src/osrm-v1.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 146,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"name": "./src/modules/Router.js"
},
{
"id": 160,
"identifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/index.js",
"name": "./node_modules/leaflet-routing-machine/src/index.js"
},
{
"id": 45,
"identifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/osrm-v1.js",
"name": "./node_modules/leaflet-routing-machine/src/osrm-v1.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 45,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/osrm-v1.js",
"module": "./node_modules/leaflet-routing-machine/src/osrm-v1.js",
"moduleName": "./node_modules/leaflet-routing-machine/src/osrm-v1.js",
"type": "cjs require",
"userRequest": "@mapbox/corslite",
"loc": "5:13-40"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 6,
"source": "function corslite(url, callback, cors) {\n var sent = false;\n\n if (typeof window.XMLHttpRequest === 'undefined') {\n return callback(Error('Browser not supported'));\n }\n\n if (typeof cors === 'undefined') {\n var m = url.match(/^\\s*https?:\\/\\/[^\\/]*/);\n cors = m && (m[0] !== location.protocol + '//' + location.hostname +\n (location.port ? ':' + location.port : ''));\n }\n\n var x = new window.XMLHttpRequest();\n\n function isSuccessful(status) {\n return status >= 200 && status < 300 || status === 304;\n }\n\n if (cors && !('withCredentials' in x)) {\n // IE8-9\n x = new window.XDomainRequest();\n\n // Ensure callback is never called synchronously, i.e., before\n // x.send() returns (this has been observed in the wild).\n // See https://github.com/mapbox/mapbox.js/issues/472\n var original = callback;\n callback = function() {\n if (sent) {\n original.apply(this, arguments);\n } else {\n var that = this, args = arguments;\n setTimeout(function() {\n original.apply(that, args);\n }, 0);\n }\n }\n }\n\n function loaded() {\n if (\n // XDomainRequest\n x.status === undefined ||\n // modern browsers\n isSuccessful(x.status)) callback.call(x, null, x);\n else callback.call(x, x, null);\n }\n\n // Both `onreadystatechange` and `onload` can fire. `onreadystatechange`\n // has [been supported for longer](http://stackoverflow.com/a/9181508/229001).\n if ('onload' in x) {\n x.onload = loaded;\n } else {\n x.onreadystatechange = function readystate() {\n if (x.readyState === 4) {\n loaded();\n }\n };\n }\n\n // Call the callback with the XMLHttpRequest object as an error and prevent\n // it from ever being called again by reassigning it to `noop`\n x.onerror = function error(evt) {\n // XDomainRequest provides no evt parameter\n callback.call(this, evt || true, null);\n callback = function() { };\n };\n\n // IE9 must have onprogress be set to a unique function.\n x.onprogress = function() { };\n\n x.ontimeout = function(evt) {\n callback.call(this, evt, null);\n callback = function() { };\n };\n\n x.onabort = function(evt) {\n callback.call(this, evt, null);\n callback = function() { };\n };\n\n // GET is the only supported HTTP Verb by XDomainRequest and is the\n // only one supported here.\n x.open('GET', url, true);\n\n // Send the request. Sending data is not supported.\n x.send(null);\n sent = true;\n\n return x;\n}\n\nif (typeof module !== 'undefined') module.exports = corslite;\n"
},
{
"id": 163,
"identifier": "/Users/user/Projects/orchid/node_modules/@mapbox/polyline/src/polyline.js",
"name": "./node_modules/@mapbox/polyline/src/polyline.js",
"index": 156,
"index2": 149,
"size": 4382,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/osrm-v1.js",
"issuerId": 45,
"issuerName": "./node_modules/leaflet-routing-machine/src/osrm-v1.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 146,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"name": "./src/modules/Router.js"
},
{
"id": 160,
"identifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/index.js",
"name": "./node_modules/leaflet-routing-machine/src/index.js"
},
{
"id": 45,
"identifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/osrm-v1.js",
"name": "./node_modules/leaflet-routing-machine/src/osrm-v1.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 45,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/osrm-v1.js",
"module": "./node_modules/leaflet-routing-machine/src/osrm-v1.js",
"moduleName": "./node_modules/leaflet-routing-machine/src/osrm-v1.js",
"type": "cjs require",
"userRequest": "@mapbox/polyline",
"loc": "6:13-40"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 6,
"source": "'use strict';\n\n/**\n * Based off of [the offical Google document](https://developers.google.com/maps/documentation/utilities/polylinealgorithm)\n *\n * Some parts from [this implementation](http://facstaff.unca.edu/mcmcclur/GoogleMaps/EncodePolyline/PolylineEncoder.js)\n * by [Mark McClure](http://facstaff.unca.edu/mcmcclur/)\n *\n * @module polyline\n */\n\nvar polyline = {};\n\nfunction py2_round(value) {\n // Google's polyline algorithm uses the same rounding strategy as Python 2, which is different from JS for negative values\n return Math.floor(Math.abs(value) + 0.5) * Math.sign(value);\n}\n\nfunction encode(current, previous, factor) {\n current = py2_round(current * factor);\n previous = py2_round(previous * factor);\n var coordinate = current - previous;\n coordinate <<= 1;\n if (current - previous < 0) {\n coordinate = ~coordinate;\n }\n var output = '';\n while (coordinate >= 0x20) {\n output += String.fromCharCode((0x20 | (coordinate & 0x1f)) + 63);\n coordinate >>= 5;\n }\n output += String.fromCharCode(coordinate + 63);\n return output;\n}\n\n/**\n * Decodes to a [latitude, longitude] coordinates array.\n *\n * This is adapted from the implementation in Project-OSRM.\n *\n * @param {String} str\n * @param {Number} precision\n * @returns {Array}\n *\n * @see https://github.com/Project-OSRM/osrm-frontend/blob/master/WebContent/routing/OSRM.RoutingGeometry.js\n */\npolyline.decode = function(str, precision) {\n var index = 0,\n lat = 0,\n lng = 0,\n coordinates = [],\n shift = 0,\n result = 0,\n byte = null,\n latitude_change,\n longitude_change,\n factor = Math.pow(10, precision || 5);\n\n // Coordinates have variable length when encoded, so just keep\n // track of whether we've hit the end of the string. In each\n // loop iteration, a single coordinate is decoded.\n while (index < str.length) {\n\n // Reset shift, result, and byte\n byte = null;\n shift = 0;\n result = 0;\n\n do {\n byte = str.charCodeAt(index++) - 63;\n result |= (byte & 0x1f) << shift;\n shift += 5;\n } while (byte >= 0x20);\n\n latitude_change = ((result & 1) ? ~(result >> 1) : (result >> 1));\n\n shift = result = 0;\n\n do {\n byte = str.charCodeAt(index++) - 63;\n result |= (byte & 0x1f) << shift;\n shift += 5;\n } while (byte >= 0x20);\n\n longitude_change = ((result & 1) ? ~(result >> 1) : (result >> 1));\n\n lat += latitude_change;\n lng += longitude_change;\n\n coordinates.push([lat / factor, lng / factor]);\n }\n\n return coordinates;\n};\n\n/**\n * Encodes the given [latitude, longitude] coordinates array.\n *\n * @param {Array.<Array.<Number>>} coordinates\n * @param {Number} precision\n * @returns {String}\n */\npolyline.encode = function(coordinates, precision) {\n if (!coordinates.length) { return ''; }\n\n var factor = Math.pow(10, precision || 5),\n output = encode(coordinates[0][0], 0, factor) + encode(coordinates[0][1], 0, factor);\n\n for (var i = 1; i < coordinates.length; i++) {\n var a = coordinates[i], b = coordinates[i - 1];\n output += encode(a[0], b[0], factor);\n output += encode(a[1], b[1], factor);\n }\n\n return output;\n};\n\nfunction flipped(coords) {\n var flipped = [];\n for (var i = 0; i < coords.length; i++) {\n flipped.push(coords[i].slice().reverse());\n }\n return flipped;\n}\n\n/**\n * Encodes a GeoJSON LineString feature/geometry.\n *\n * @param {Object} geojson\n * @param {Number} precision\n * @returns {String}\n */\npolyline.fromGeoJSON = function(geojson, precision) {\n if (geojson && geojson.type === 'Feature') {\n geojson = geojson.geometry;\n }\n if (!geojson || geojson.type !== 'LineString') {\n throw new Error('Input must be a GeoJSON LineString');\n }\n return polyline.encode(flipped(geojson.coordinates), precision);\n};\n\n/**\n * Decodes to a GeoJSON LineString geometry.\n *\n * @param {String} str\n * @param {Number} precision\n * @returns {Object}\n */\npolyline.toGeoJSON = function(str, precision) {\n var coords = polyline.decode(str, precision);\n return {\n type: 'LineString',\n coordinates: flipped(coords)\n };\n};\n\nif (typeof module === 'object' && module.exports) {\n module.exports = polyline;\n}\n"
},
{
"id": 164,
"identifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/mapbox.js",
"name": "./node_modules/leaflet-routing-machine/src/mapbox.js",
"index": 157,
"index2": 152,
"size": 671,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/index.js",
"issuerId": 160,
"issuerName": "./node_modules/leaflet-routing-machine/src/index.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 146,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"name": "./src/modules/Router.js"
},
{
"id": 160,
"identifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/index.js",
"name": "./node_modules/leaflet-routing-machine/src/index.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 160,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/index.js",
"module": "./node_modules/leaflet-routing-machine/src/index.js",
"moduleName": "./node_modules/leaflet-routing-machine/src/index.js",
"type": "cjs require",
"userRequest": "./mapbox",
"loc": "13:13-32"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 5,
"source": "(function() {\n\t'use strict';\n\n\tvar L = require('leaflet');\n\n\tvar OSRMv1 = require('./osrm-v1');\n\n\t/**\n\t * Works against OSRM's new API in version 5.0; this has\n\t * the API version v1.\n\t */\n\tmodule.exports = OSRMv1.extend({\n\t\toptions: {\n\t\t\tserviceUrl: 'https://api.mapbox.com/directions/v5',\n\t\t\tprofile: 'mapbox/driving',\n\t\t\tuseHints: false\n\t\t},\n\n\t\tinitialize: function(accessToken, options) {\n\t\t\tL.Routing.OSRMv1.prototype.initialize.call(this, options);\n\t\t\tthis.options.requestParameters = this.options.requestParameters || {};\n\t\t\t/* jshint camelcase: false */\n\t\t\tthis.options.requestParameters.access_token = accessToken;\n\t\t\t/* jshint camelcase: true */\n\t\t}\n\t});\n})();\n"
},
{
"id": 165,
"identifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/error-control.js",
"name": "./node_modules/leaflet-routing-machine/src/error-control.js",
"index": 158,
"index2": 153,
"size": 1371,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/index.js",
"issuerId": 160,
"issuerName": "./node_modules/leaflet-routing-machine/src/index.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 146,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"name": "./src/modules/Router.js"
},
{
"id": 160,
"identifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/index.js",
"name": "./node_modules/leaflet-routing-machine/src/index.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 160,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/leaflet-routing-machine/src/index.js",
"module": "./node_modules/leaflet-routing-machine/src/index.js",
"moduleName": "./node_modules/leaflet-routing-machine/src/index.js",
"type": "cjs require",
"userRequest": "./error-control",
"loc": "14:19-45"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 5,
"source": "(function() {\n\t'use strict';\n\n\tvar L = require('leaflet');\n\n\tmodule.exports = L.Control.extend({\n\t\toptions: {\n\t\t\theader: 'Routing error',\n\t\t\tformatMessage: function(error) {\n\t\t\t\tif (error.status < 0) {\n\t\t\t\t\treturn 'Calculating the route caused an error. Technical description follows: <code><pre>' +\n\t\t\t\t\t\terror.message + '</pre></code';\n\t\t\t\t} else {\n\t\t\t\t\treturn 'The route could not be calculated. ' +\n\t\t\t\t\t\terror.message;\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\n\t\tinitialize: function(routingControl, options) {\n\t\t\tL.Control.prototype.initialize.call(this, options);\n\t\t\troutingControl\n\t\t\t\t.on('routingerror', L.bind(function(e) {\n\t\t\t\t\tif (this._element) {\n\t\t\t\t\t\tthis._element.children[1].innerHTML = this.options.formatMessage(e.error);\n\t\t\t\t\t\tthis._element.style.visibility = 'visible';\n\t\t\t\t\t}\n\t\t\t\t}, this))\n\t\t\t\t.on('routingstart', L.bind(function() {\n\t\t\t\t\tif (this._element) {\n\t\t\t\t\t\tthis._element.style.visibility = 'hidden';\n\t\t\t\t\t}\n\t\t\t\t}, this));\n\t\t},\n\n\t\tonAdd: function() {\n\t\t\tvar header,\n\t\t\t\tmessage;\n\n\t\t\tthis._element = L.DomUtil.create('div', 'leaflet-bar leaflet-routing-error');\n\t\t\tthis._element.style.visibility = 'hidden';\n\n\t\t\theader = L.DomUtil.create('h3', null, this._element);\n\t\t\tmessage = L.DomUtil.create('span', null, this._element);\n\n\t\t\theader.innerHTML = this.options.header;\n\n\t\t\treturn this._element;\n\t\t},\n\n\t\tonRemove: function() {\n\t\t\tdelete this._element;\n\t\t}\n\t});\n})();\n"
},
{
"id": 166,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/config.js",
"name": "./src/config.js",
"index": 159,
"index2": 155,
"size": 589,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"issuerId": 146,
"issuerName": "./src/modules/Router.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 146,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"name": "./src/modules/Router.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 146,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Router.js",
"module": "./src/modules/Router.js",
"moduleName": "./src/modules/Router.js",
"type": "cjs require",
"userRequest": "$config",
"loc": "32:15-33"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 4,
"source": "'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\n(function () {\n var enterModule = require('react-hot-loader').enterModule;\n\n enterModule && enterModule(module);\n})();\n\nvar CONFIG = exports.CONFIG = {\n OSRM_URL: 'http://vault48.org:5000/route/v1'\n};\n;\n\n(function () {\n var reactHotLoader = require('react-hot-loader').default;\n\n var leaveModule = require('react-hot-loader').leaveModule;\n\n if (!reactHotLoader) {\n return;\n }\n\n reactHotLoader.register(CONFIG, 'CONFIG', '/Users/user/Projects/orchid/src/config.js');\n leaveModule(module);\n})();\n\n;"
},
{
"id": 167,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Shotter.js",
"name": "./src/modules/Shotter.js",
"index": 160,
"index2": 184,
"size": 3459,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"issuerId": 124,
"issuerName": "./src/modules/Editor.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 124,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"module": "./src/modules/Editor.js",
"moduleName": "./src/modules/Editor.js",
"type": "cjs require",
"userRequest": "$modules/Shotter",
"loc": "30:15-42"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 3,
"source": "'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.Shotter = undefined;\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _axios = require('axios');\n\nvar _axios2 = _interopRequireDefault(_axios);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n(function () {\n var enterModule = require('react-hot-loader').enterModule;\n\n enterModule && enterModule(module);\n})();\n\nvar Shotter = exports.Shotter = function () {\n function Shotter(_ref) {\n var _this = this;\n\n var map = _ref.map;\n (0, _classCallCheck3.default)(this, Shotter);\n\n this.latLngToTile = function (latlng) {\n var z = _this.map.getZoom();\n var x = parseInt(Math.floor((latlng.lng + 180) / 360 * (1 << z)), 10);\n var y = parseInt(Math.floor((1 - Math.log(Math.tan(latlng.lat * Math.PI / 180) + 1 / Math.cos(latlng.lat * Math.PI / 180)) / Math.PI) / 2 * (1 << z)), 10);\n return { x: x, y: y, z: z };\n };\n\n this.tileToLatLng = function (point) {\n var z = _this.map.getZoom();\n var lng = point.x / Math.pow(2, z) * 360 - 180;\n\n var n = Math.PI - 2 * Math.PI * point.y / Math.pow(2, z);\n var lat = 180 / Math.PI * Math.atan(0.5 * (Math.exp(n) - Math.exp(-n)));\n\n return { lat: lat, lng: lng };\n };\n\n this.makeShot = function () {\n // console.log('shot', this.getTilePlacement());\n var placement = _this.getTilePlacement();\n\n _axios2.default.get('http://alpha-map.vault48.org/engine/composerOrchid.php', {\n params: { placement: placement, mode: 'test' }\n }).then(console.log).catch(console.warn);\n };\n\n this.tiles = [];\n this.tilesLoaded = 0;\n this.map = map;\n }\n\n (0, _createClass3.default)(Shotter, [{\n key: 'getTilePlacement',\n value: function getTilePlacement() {\n var _window = window,\n innerHeight = _window.innerHeight,\n innerWidth = _window.innerWidth;\n\n var _map$getBounds = this.map.getBounds(),\n _southWest = _map$getBounds._southWest,\n _northEast = _map$getBounds._northEast;\n\n var sw = this.latLngToTile(_southWest);\n var ne = this.latLngToTile(_northEast);\n\n var zsw = this.tileToLatLng(sw);\n var zne = this.tileToLatLng(ne);\n\n var rsw = this.map.latLngToContainerPoint(zsw);\n var msw = this.map.latLngToContainerPoint(_southWest);\n\n return {\n min_x: sw.x,\n min_y: ne.y,\n max_x: ne.x,\n max_y: sw.y,\n sh_x: rsw.x - msw.x,\n sh_y: innerHeight + rsw.y - msw.y,\n size: 256,\n width: innerWidth,\n height: innerHeight,\n zoom: this.map.getZoom(),\n provider: 'dgis'\n };\n }\n }, {\n key: '__reactstandin__regenerateByEval',\n // @ts-ignore\n value: function __reactstandin__regenerateByEval(key, code) {\n // @ts-ignore\n this[key] = eval(code);\n }\n }]);\n return Shotter;\n}();\n\n;\n\n(function () {\n var reactHotLoader = require('react-hot-loader').default;\n\n var leaveModule = require('react-hot-loader').leaveModule;\n\n if (!reactHotLoader) {\n return;\n }\n\n reactHotLoader.register(Shotter, 'Shotter', '/Users/user/Projects/orchid/src/modules/Shotter.js');\n leaveModule(module);\n})();\n\n;"
},
{
"id": 168,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/index.js",
"name": "./node_modules/axios/index.js",
"index": 161,
"index2": 183,
"size": 40,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Shotter.js",
"issuerId": 167,
"issuerName": "./src/modules/Shotter.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 167,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Shotter.js",
"name": "./src/modules/Shotter.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 167,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Shotter.js",
"module": "./src/modules/Shotter.js",
"moduleName": "./src/modules/Shotter.js",
"type": "cjs require",
"userRequest": "axios",
"loc": "16:13-29"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 4,
"source": "module.exports = require('./lib/axios');"
},
{
"id": 169,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/axios.js",
"name": "./node_modules/axios/lib/axios.js",
"index": 162,
"index2": 182,
"size": 1368,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/axios/index.js",
"issuerId": 168,
"issuerName": "./node_modules/axios/index.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 167,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Shotter.js",
"name": "./src/modules/Shotter.js"
},
{
"id": 168,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/index.js",
"name": "./node_modules/axios/index.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 168,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/axios/index.js",
"module": "./node_modules/axios/index.js",
"moduleName": "./node_modules/axios/index.js",
"type": "cjs require",
"userRequest": "./lib/axios",
"loc": "1:17-39"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 5,
"source": "'use strict';\n\nvar utils = require('./utils');\nvar bind = require('./helpers/bind');\nvar Axios = require('./core/Axios');\nvar defaults = require('./defaults');\n\n/**\n * Create an instance of Axios\n *\n * @param {Object} defaultConfig The default config for the instance\n * @return {Axios} A new instance of Axios\n */\nfunction createInstance(defaultConfig) {\n var context = new Axios(defaultConfig);\n var instance = bind(Axios.prototype.request, context);\n\n // Copy axios.prototype to instance\n utils.extend(instance, Axios.prototype, context);\n\n // Copy context to instance\n utils.extend(instance, context);\n\n return instance;\n}\n\n// Create the default instance to be exported\nvar axios = createInstance(defaults);\n\n// Expose Axios class to allow class inheritance\naxios.Axios = Axios;\n\n// Factory for creating new instances\naxios.create = function create(instanceConfig) {\n return createInstance(utils.merge(defaults, instanceConfig));\n};\n\n// Expose Cancel & CancelToken\naxios.Cancel = require('./cancel/Cancel');\naxios.CancelToken = require('./cancel/CancelToken');\naxios.isCancel = require('./cancel/isCancel');\n\n// Expose all/spread\naxios.all = function all(promises) {\n return Promise.all(promises);\n};\naxios.spread = require('./helpers/spread');\n\nmodule.exports = axios;\n\n// Allow use of default import syntax in TypeScript\nmodule.exports.default = axios;\n"
},
{
"id": 170,
"identifier": "/Users/user/Projects/orchid/node_modules/is-buffer/index.js",
"name": "./node_modules/is-buffer/index.js",
"index": 165,
"index2": 158,
"size": 698,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/axios/lib/utils.js",
"issuerId": 4,
"issuerName": "./node_modules/axios/lib/utils.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 167,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Shotter.js",
"name": "./src/modules/Shotter.js"
},
{
"id": 168,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/index.js",
"name": "./node_modules/axios/index.js"
},
{
"id": 169,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/axios.js",
"name": "./node_modules/axios/lib/axios.js"
},
{
"id": 4,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/utils.js",
"name": "./node_modules/axios/lib/utils.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 4,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/axios/lib/utils.js",
"module": "./node_modules/axios/lib/utils.js",
"moduleName": "./node_modules/axios/lib/utils.js",
"type": "cjs require",
"userRequest": "is-buffer",
"loc": "4:15-35"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "/*!\n * Determine if an object is a Buffer\n *\n * @author Feross Aboukhadijeh <https://feross.org>\n * @license MIT\n */\n\n// The _isBuffer check is for Safari 5-7 support, because it's missing\n// Object.prototype.constructor. Remove this eventually\nmodule.exports = function (obj) {\n return obj != null && (isBuffer(obj) || isSlowBuffer(obj) || !!obj._isBuffer)\n}\n\nfunction isBuffer (obj) {\n return !!obj.constructor && typeof obj.constructor.isBuffer === 'function' && obj.constructor.isBuffer(obj)\n}\n\n// For Node v0.10 support. Remove this eventually.\nfunction isSlowBuffer (obj) {\n return typeof obj.readFloatLE === 'function' && typeof obj.slice === 'function' && isBuffer(obj.slice(0, 0))\n}\n"
},
{
"id": 171,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/core/Axios.js",
"name": "./node_modules/axios/lib/core/Axios.js",
"index": 166,
"index2": 178,
"size": 2187,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/axios/lib/axios.js",
"issuerId": 169,
"issuerName": "./node_modules/axios/lib/axios.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 167,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Shotter.js",
"name": "./src/modules/Shotter.js"
},
{
"id": 168,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/index.js",
"name": "./node_modules/axios/index.js"
},
{
"id": 169,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/axios.js",
"name": "./node_modules/axios/lib/axios.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 169,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/axios/lib/axios.js",
"module": "./node_modules/axios/lib/axios.js",
"moduleName": "./node_modules/axios/lib/axios.js",
"type": "cjs require",
"userRequest": "./core/Axios",
"loc": "5:12-35"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 6,
"source": "'use strict';\n\nvar defaults = require('./../defaults');\nvar utils = require('./../utils');\nvar InterceptorManager = require('./InterceptorManager');\nvar dispatchRequest = require('./dispatchRequest');\n\n/**\n * Create a new instance of Axios\n *\n * @param {Object} instanceConfig The default config for the instance\n */\nfunction Axios(instanceConfig) {\n this.defaults = instanceConfig;\n this.interceptors = {\n request: new InterceptorManager(),\n response: new InterceptorManager()\n };\n}\n\n/**\n * Dispatch a request\n *\n * @param {Object} config The config specific for this request (merged with this.defaults)\n */\nAxios.prototype.request = function request(config) {\n /*eslint no-param-reassign:0*/\n // Allow for axios('example/url'[, config]) a la fetch API\n if (typeof config === 'string') {\n config = utils.merge({\n url: arguments[0]\n }, arguments[1]);\n }\n\n config = utils.merge(defaults, {method: 'get'}, this.defaults, config);\n config.method = config.method.toLowerCase();\n\n // Hook up interceptors middleware\n var chain = [dispatchRequest, undefined];\n var promise = Promise.resolve(config);\n\n this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {\n chain.unshift(interceptor.fulfilled, interceptor.rejected);\n });\n\n this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {\n chain.push(interceptor.fulfilled, interceptor.rejected);\n });\n\n while (chain.length) {\n promise = promise.then(chain.shift(), chain.shift());\n }\n\n return promise;\n};\n\n// Provide aliases for supported request methods\nutils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {\n /*eslint func-names:0*/\n Axios.prototype[method] = function(url, config) {\n return this.request(utils.merge(config || {}, {\n method: method,\n url: url\n }));\n };\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n /*eslint func-names:0*/\n Axios.prototype[method] = function(url, data, config) {\n return this.request(utils.merge(config || {}, {\n method: method,\n url: url,\n data: data\n }));\n };\n});\n\nmodule.exports = Axios;\n"
},
{
"id": 172,
"identifier": "/Users/user/Projects/orchid/node_modules/node-libs-browser/node_modules/process/browser.js",
"name": "./node_modules/node-libs-browser/node_modules/process/browser.js",
"index": 168,
"index2": 160,
"size": 5418,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/axios/lib/defaults.js",
"issuerId": 46,
"issuerName": "./node_modules/axios/lib/defaults.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 167,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Shotter.js",
"name": "./src/modules/Shotter.js"
},
{
"id": 168,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/index.js",
"name": "./node_modules/axios/index.js"
},
{
"id": 169,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/axios.js",
"name": "./node_modules/axios/lib/axios.js"
},
{
"id": 46,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/defaults.js",
"name": "./node_modules/axios/lib/defaults.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 46,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/axios/lib/defaults.js",
"module": "./node_modules/axios/lib/defaults.js",
"moduleName": "./node_modules/axios/lib/defaults.js",
"type": "cjs require",
"userRequest": "process",
"loc": "1:0-68"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "// shim for using process in browser\nvar process = module.exports = {};\n\n// cached from whatever global is present so that test runners that stub it\n// don't break things. But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals. It's inside a\n// function because try/catches deoptimize in certain engines.\n\nvar cachedSetTimeout;\nvar cachedClearTimeout;\n\nfunction defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n}\nfunction defaultClearTimeout () {\n throw new Error('clearTimeout has not been defined');\n}\n(function () {\n try {\n if (typeof setTimeout === 'function') {\n cachedSetTimeout = setTimeout;\n } else {\n cachedSetTimeout = defaultSetTimout;\n }\n } catch (e) {\n cachedSetTimeout = defaultSetTimout;\n }\n try {\n if (typeof clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n } else {\n cachedClearTimeout = defaultClearTimeout;\n }\n } catch (e) {\n cachedClearTimeout = defaultClearTimeout;\n }\n} ())\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n }\n // if setTimeout wasn't available but was latter defined\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch(e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch(e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n\n\n}\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n }\n // if clearTimeout wasn't available but was latter defined\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n\n\n\n}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n\n var len = queue.length;\n while(len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n};\n\n// v8 likes predictible objects\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\nprocess.prependListener = noop;\nprocess.prependOnceListener = noop;\n\nprocess.listeners = function (name) { return [] }\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\nprocess.umask = function() { return 0; };\n"
},
{
"id": 173,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/helpers/normalizeHeaderName.js",
"name": "./node_modules/axios/lib/helpers/normalizeHeaderName.js",
"index": 169,
"index2": 161,
"size": 357,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/axios/lib/defaults.js",
"issuerId": 46,
"issuerName": "./node_modules/axios/lib/defaults.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 167,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Shotter.js",
"name": "./src/modules/Shotter.js"
},
{
"id": 168,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/index.js",
"name": "./node_modules/axios/index.js"
},
{
"id": 169,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/axios.js",
"name": "./node_modules/axios/lib/axios.js"
},
{
"id": 46,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/defaults.js",
"name": "./node_modules/axios/lib/defaults.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 46,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/axios/lib/defaults.js",
"module": "./node_modules/axios/lib/defaults.js",
"moduleName": "./node_modules/axios/lib/defaults.js",
"type": "cjs require",
"userRequest": "./helpers/normalizeHeaderName",
"loc": "4:26-66"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "'use strict';\n\nvar utils = require('../utils');\n\nmodule.exports = function normalizeHeaderName(headers, normalizedName) {\n utils.forEach(headers, function processHeader(value, name) {\n if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) {\n headers[normalizedName] = value;\n delete headers[name];\n }\n });\n};\n"
},
{
"id": 174,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/core/settle.js",
"name": "./node_modules/axios/lib/core/settle.js",
"index": 171,
"index2": 164,
"size": 757,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/axios/lib/adapters/xhr.js",
"issuerId": 75,
"issuerName": "./node_modules/axios/lib/adapters/xhr.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 167,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Shotter.js",
"name": "./src/modules/Shotter.js"
},
{
"id": 168,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/index.js",
"name": "./node_modules/axios/index.js"
},
{
"id": 169,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/axios.js",
"name": "./node_modules/axios/lib/axios.js"
},
{
"id": 46,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/defaults.js",
"name": "./node_modules/axios/lib/defaults.js"
},
{
"id": 75,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/adapters/xhr.js",
"name": "./node_modules/axios/lib/adapters/xhr.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 75,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/axios/lib/adapters/xhr.js",
"module": "./node_modules/axios/lib/adapters/xhr.js",
"moduleName": "./node_modules/axios/lib/adapters/xhr.js",
"type": "cjs require",
"userRequest": "./../core/settle",
"loc": "4:13-40"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 8,
"source": "'use strict';\n\nvar createError = require('./createError');\n\n/**\n * Resolve or reject a Promise based on response status.\n *\n * @param {Function} resolve A function that resolves the promise.\n * @param {Function} reject A function that rejects the promise.\n * @param {object} response The response.\n */\nmodule.exports = function settle(resolve, reject, response) {\n var validateStatus = response.config.validateStatus;\n // Note: status is not exposed by XDomainRequest\n if (!response.status || !validateStatus || validateStatus(response.status)) {\n resolve(response);\n } else {\n reject(createError(\n 'Request failed with status code ' + response.status,\n response.config,\n null,\n response.request,\n response\n ));\n }\n};\n"
},
{
"id": 175,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/core/enhanceError.js",
"name": "./node_modules/axios/lib/core/enhanceError.js",
"index": 173,
"index2": 162,
"size": 592,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/axios/lib/core/createError.js",
"issuerId": 76,
"issuerName": "./node_modules/axios/lib/core/createError.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 167,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Shotter.js",
"name": "./src/modules/Shotter.js"
},
{
"id": 168,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/index.js",
"name": "./node_modules/axios/index.js"
},
{
"id": 169,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/axios.js",
"name": "./node_modules/axios/lib/axios.js"
},
{
"id": 46,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/defaults.js",
"name": "./node_modules/axios/lib/defaults.js"
},
{
"id": 75,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/adapters/xhr.js",
"name": "./node_modules/axios/lib/adapters/xhr.js"
},
{
"id": 76,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/core/createError.js",
"name": "./node_modules/axios/lib/core/createError.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 76,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/axios/lib/core/createError.js",
"module": "./node_modules/axios/lib/core/createError.js",
"moduleName": "./node_modules/axios/lib/core/createError.js",
"type": "cjs require",
"userRequest": "./enhanceError",
"loc": "3:19-44"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 9,
"source": "'use strict';\n\n/**\n * Update an Error with the specified config, error code, and response.\n *\n * @param {Error} error The error to update.\n * @param {Object} config The config.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n * @returns {Error} The error.\n */\nmodule.exports = function enhanceError(error, config, code, request, response) {\n error.config = config;\n if (code) {\n error.code = code;\n }\n error.request = request;\n error.response = response;\n return error;\n};\n"
},
{
"id": 176,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/helpers/buildURL.js",
"name": "./node_modules/axios/lib/helpers/buildURL.js",
"index": 174,
"index2": 165,
"size": 1549,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/axios/lib/adapters/xhr.js",
"issuerId": 75,
"issuerName": "./node_modules/axios/lib/adapters/xhr.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 167,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Shotter.js",
"name": "./src/modules/Shotter.js"
},
{
"id": 168,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/index.js",
"name": "./node_modules/axios/index.js"
},
{
"id": 169,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/axios.js",
"name": "./node_modules/axios/lib/axios.js"
},
{
"id": 46,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/defaults.js",
"name": "./node_modules/axios/lib/defaults.js"
},
{
"id": 75,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/adapters/xhr.js",
"name": "./node_modules/axios/lib/adapters/xhr.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 75,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/axios/lib/adapters/xhr.js",
"module": "./node_modules/axios/lib/adapters/xhr.js",
"moduleName": "./node_modules/axios/lib/adapters/xhr.js",
"type": "cjs require",
"userRequest": "./../helpers/buildURL",
"loc": "5:15-47"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 8,
"source": "'use strict';\n\nvar utils = require('./../utils');\n\nfunction encode(val) {\n return encodeURIComponent(val).\n replace(/%40/gi, '@').\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%20/g, '+').\n replace(/%5B/gi, '[').\n replace(/%5D/gi, ']');\n}\n\n/**\n * Build a URL by appending params to the end\n *\n * @param {string} url The base of the url (e.g., http://www.google.com)\n * @param {object} [params] The params to be appended\n * @returns {string} The formatted url\n */\nmodule.exports = function buildURL(url, params, paramsSerializer) {\n /*eslint no-param-reassign:0*/\n if (!params) {\n return url;\n }\n\n var serializedParams;\n if (paramsSerializer) {\n serializedParams = paramsSerializer(params);\n } else if (utils.isURLSearchParams(params)) {\n serializedParams = params.toString();\n } else {\n var parts = [];\n\n utils.forEach(params, function serialize(val, key) {\n if (val === null || typeof val === 'undefined') {\n return;\n }\n\n if (utils.isArray(val)) {\n key = key + '[]';\n } else {\n val = [val];\n }\n\n utils.forEach(val, function parseValue(v) {\n if (utils.isDate(v)) {\n v = v.toISOString();\n } else if (utils.isObject(v)) {\n v = JSON.stringify(v);\n }\n parts.push(encode(key) + '=' + encode(v));\n });\n });\n\n serializedParams = parts.join('&');\n }\n\n if (serializedParams) {\n url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;\n }\n\n return url;\n};\n"
},
{
"id": 177,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/helpers/parseHeaders.js",
"name": "./node_modules/axios/lib/helpers/parseHeaders.js",
"index": 175,
"index2": 166,
"size": 1393,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/axios/lib/adapters/xhr.js",
"issuerId": 75,
"issuerName": "./node_modules/axios/lib/adapters/xhr.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 167,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Shotter.js",
"name": "./src/modules/Shotter.js"
},
{
"id": 168,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/index.js",
"name": "./node_modules/axios/index.js"
},
{
"id": 169,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/axios.js",
"name": "./node_modules/axios/lib/axios.js"
},
{
"id": 46,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/defaults.js",
"name": "./node_modules/axios/lib/defaults.js"
},
{
"id": 75,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/adapters/xhr.js",
"name": "./node_modules/axios/lib/adapters/xhr.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 75,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/axios/lib/adapters/xhr.js",
"module": "./node_modules/axios/lib/adapters/xhr.js",
"moduleName": "./node_modules/axios/lib/adapters/xhr.js",
"type": "cjs require",
"userRequest": "./../helpers/parseHeaders",
"loc": "6:19-55"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 8,
"source": "'use strict';\n\nvar utils = require('./../utils');\n\n// Headers whose duplicates are ignored by node\n// c.f. https://nodejs.org/api/http.html#http_message_headers\nvar ignoreDuplicateOf = [\n 'age', 'authorization', 'content-length', 'content-type', 'etag',\n 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',\n 'last-modified', 'location', 'max-forwards', 'proxy-authorization',\n 'referer', 'retry-after', 'user-agent'\n];\n\n/**\n * Parse headers into an object\n *\n * ```\n * Date: Wed, 27 Aug 2014 08:58:49 GMT\n * Content-Type: application/json\n * Connection: keep-alive\n * Transfer-Encoding: chunked\n * ```\n *\n * @param {String} headers Headers needing to be parsed\n * @returns {Object} Headers parsed into an object\n */\nmodule.exports = function parseHeaders(headers) {\n var parsed = {};\n var key;\n var val;\n var i;\n\n if (!headers) { return parsed; }\n\n utils.forEach(headers.split('\\n'), function parser(line) {\n i = line.indexOf(':');\n key = utils.trim(line.substr(0, i)).toLowerCase();\n val = utils.trim(line.substr(i + 1));\n\n if (key) {\n if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) {\n return;\n }\n if (key === 'set-cookie') {\n parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]);\n } else {\n parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n }\n }\n });\n\n return parsed;\n};\n"
},
{
"id": 178,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/helpers/isURLSameOrigin.js",
"name": "./node_modules/axios/lib/helpers/isURLSameOrigin.js",
"index": 176,
"index2": 167,
"size": 2245,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/axios/lib/adapters/xhr.js",
"issuerId": 75,
"issuerName": "./node_modules/axios/lib/adapters/xhr.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 167,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Shotter.js",
"name": "./src/modules/Shotter.js"
},
{
"id": 168,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/index.js",
"name": "./node_modules/axios/index.js"
},
{
"id": 169,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/axios.js",
"name": "./node_modules/axios/lib/axios.js"
},
{
"id": 46,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/defaults.js",
"name": "./node_modules/axios/lib/defaults.js"
},
{
"id": 75,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/adapters/xhr.js",
"name": "./node_modules/axios/lib/adapters/xhr.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 75,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/axios/lib/adapters/xhr.js",
"module": "./node_modules/axios/lib/adapters/xhr.js",
"moduleName": "./node_modules/axios/lib/adapters/xhr.js",
"type": "cjs require",
"userRequest": "./../helpers/isURLSameOrigin",
"loc": "7:22-61"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 8,
"source": "'use strict';\n\nvar utils = require('./../utils');\n\nmodule.exports = (\n utils.isStandardBrowserEnv() ?\n\n // Standard browser envs have full support of the APIs needed to test\n // whether the request URL is of the same origin as current location.\n (function standardBrowserEnv() {\n var msie = /(msie|trident)/i.test(navigator.userAgent);\n var urlParsingNode = document.createElement('a');\n var originURL;\n\n /**\n * Parse a URL to discover it's components\n *\n * @param {String} url The URL to be parsed\n * @returns {Object}\n */\n function resolveURL(url) {\n var href = url;\n\n if (msie) {\n // IE needs attribute set twice to normalize properties\n urlParsingNode.setAttribute('href', href);\n href = urlParsingNode.href;\n }\n\n urlParsingNode.setAttribute('href', href);\n\n // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils\n return {\n href: urlParsingNode.href,\n protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',\n host: urlParsingNode.host,\n search: urlParsingNode.search ? urlParsingNode.search.replace(/^\\?/, '') : '',\n hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',\n hostname: urlParsingNode.hostname,\n port: urlParsingNode.port,\n pathname: (urlParsingNode.pathname.charAt(0) === '/') ?\n urlParsingNode.pathname :\n '/' + urlParsingNode.pathname\n };\n }\n\n originURL = resolveURL(window.location.href);\n\n /**\n * Determine if a URL shares the same origin as the current location\n *\n * @param {String} requestURL The URL to test\n * @returns {boolean} True if URL shares the same origin, otherwise false\n */\n return function isURLSameOrigin(requestURL) {\n var parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL;\n return (parsed.protocol === originURL.protocol &&\n parsed.host === originURL.host);\n };\n })() :\n\n // Non standard browser envs (web workers, react-native) lack needed support.\n (function nonStandardBrowserEnv() {\n return function isURLSameOrigin() {\n return true;\n };\n })()\n);\n"
},
{
"id": 179,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/helpers/btoa.js",
"name": "./node_modules/axios/lib/helpers/btoa.js",
"index": 177,
"index2": 168,
"size": 986,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/axios/lib/adapters/xhr.js",
"issuerId": 75,
"issuerName": "./node_modules/axios/lib/adapters/xhr.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 167,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Shotter.js",
"name": "./src/modules/Shotter.js"
},
{
"id": 168,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/index.js",
"name": "./node_modules/axios/index.js"
},
{
"id": 169,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/axios.js",
"name": "./node_modules/axios/lib/axios.js"
},
{
"id": 46,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/defaults.js",
"name": "./node_modules/axios/lib/defaults.js"
},
{
"id": 75,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/adapters/xhr.js",
"name": "./node_modules/axios/lib/adapters/xhr.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 75,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/axios/lib/adapters/xhr.js",
"module": "./node_modules/axios/lib/adapters/xhr.js",
"moduleName": "./node_modules/axios/lib/adapters/xhr.js",
"type": "cjs require",
"userRequest": "./../helpers/btoa",
"loc": "9:89-117"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 8,
"source": "'use strict';\n\n// btoa polyfill for IE<10 courtesy https://github.com/davidchambers/Base64.js\n\nvar chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';\n\nfunction E() {\n this.message = 'String contains an invalid character';\n}\nE.prototype = new Error;\nE.prototype.code = 5;\nE.prototype.name = 'InvalidCharacterError';\n\nfunction btoa(input) {\n var str = String(input);\n var output = '';\n for (\n // initialize result and counter\n var block, charCode, idx = 0, map = chars;\n // if the next str index does not exist:\n // change the mapping table to \"=\"\n // check if d has no fractional digits\n str.charAt(idx | 0) || (map = '=', idx % 1);\n // \"8 - idx % 1 * 8\" generates the sequence 2, 4, 6, 8\n output += map.charAt(63 & block >> 8 - idx % 1 * 8)\n ) {\n charCode = str.charCodeAt(idx += 3 / 4);\n if (charCode > 0xFF) {\n throw new E();\n }\n block = block << 8 | charCode;\n }\n return output;\n}\n\nmodule.exports = btoa;\n"
},
{
"id": 180,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/helpers/cookies.js",
"name": "./node_modules/axios/lib/helpers/cookies.js",
"index": 178,
"index2": 169,
"size": 1365,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/axios/lib/adapters/xhr.js",
"issuerId": 75,
"issuerName": "./node_modules/axios/lib/adapters/xhr.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 167,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Shotter.js",
"name": "./src/modules/Shotter.js"
},
{
"id": 168,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/index.js",
"name": "./node_modules/axios/index.js"
},
{
"id": 169,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/axios.js",
"name": "./node_modules/axios/lib/axios.js"
},
{
"id": 46,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/defaults.js",
"name": "./node_modules/axios/lib/defaults.js"
},
{
"id": 75,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/adapters/xhr.js",
"name": "./node_modules/axios/lib/adapters/xhr.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 75,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/axios/lib/adapters/xhr.js",
"module": "./node_modules/axios/lib/adapters/xhr.js",
"moduleName": "./node_modules/axios/lib/adapters/xhr.js",
"type": "cjs require",
"userRequest": "./../helpers/cookies",
"loc": "106:20-51"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 8,
"source": "'use strict';\n\nvar utils = require('./../utils');\n\nmodule.exports = (\n utils.isStandardBrowserEnv() ?\n\n // Standard browser envs support document.cookie\n (function standardBrowserEnv() {\n return {\n write: function write(name, value, expires, path, domain, secure) {\n var cookie = [];\n cookie.push(name + '=' + encodeURIComponent(value));\n\n if (utils.isNumber(expires)) {\n cookie.push('expires=' + new Date(expires).toGMTString());\n }\n\n if (utils.isString(path)) {\n cookie.push('path=' + path);\n }\n\n if (utils.isString(domain)) {\n cookie.push('domain=' + domain);\n }\n\n if (secure === true) {\n cookie.push('secure');\n }\n\n document.cookie = cookie.join('; ');\n },\n\n read: function read(name) {\n var match = document.cookie.match(new RegExp('(^|;\\\\s*)(' + name + ')=([^;]*)'));\n return (match ? decodeURIComponent(match[3]) : null);\n },\n\n remove: function remove(name) {\n this.write(name, '', Date.now() - 86400000);\n }\n };\n })() :\n\n // Non standard browser env (web workers, react-native) lack needed support.\n (function nonStandardBrowserEnv() {\n return {\n write: function write() {},\n read: function read() { return null; },\n remove: function remove() {}\n };\n })()\n);\n"
},
{
"id": 181,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/core/InterceptorManager.js",
"name": "./node_modules/axios/lib/core/InterceptorManager.js",
"index": 179,
"index2": 172,
"size": 1251,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/axios/lib/core/Axios.js",
"issuerId": 171,
"issuerName": "./node_modules/axios/lib/core/Axios.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 167,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Shotter.js",
"name": "./src/modules/Shotter.js"
},
{
"id": 168,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/index.js",
"name": "./node_modules/axios/index.js"
},
{
"id": 169,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/axios.js",
"name": "./node_modules/axios/lib/axios.js"
},
{
"id": 171,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/core/Axios.js",
"name": "./node_modules/axios/lib/core/Axios.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 171,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/axios/lib/core/Axios.js",
"module": "./node_modules/axios/lib/core/Axios.js",
"moduleName": "./node_modules/axios/lib/core/Axios.js",
"type": "cjs require",
"userRequest": "./InterceptorManager",
"loc": "5:25-56"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "'use strict';\n\nvar utils = require('./../utils');\n\nfunction InterceptorManager() {\n this.handlers = [];\n}\n\n/**\n * Add a new interceptor to the stack\n *\n * @param {Function} fulfilled The function to handle `then` for a `Promise`\n * @param {Function} rejected The function to handle `reject` for a `Promise`\n *\n * @return {Number} An ID used to remove interceptor later\n */\nInterceptorManager.prototype.use = function use(fulfilled, rejected) {\n this.handlers.push({\n fulfilled: fulfilled,\n rejected: rejected\n });\n return this.handlers.length - 1;\n};\n\n/**\n * Remove an interceptor from the stack\n *\n * @param {Number} id The ID that was returned by `use`\n */\nInterceptorManager.prototype.eject = function eject(id) {\n if (this.handlers[id]) {\n this.handlers[id] = null;\n }\n};\n\n/**\n * Iterate over all the registered interceptors\n *\n * This method is particularly useful for skipping over any\n * interceptors that may have become `null` calling `eject`.\n *\n * @param {Function} fn The function to call for each interceptor\n */\nInterceptorManager.prototype.forEach = function forEach(fn) {\n utils.forEach(this.handlers, function forEachHandler(h) {\n if (h !== null) {\n fn(h);\n }\n });\n};\n\nmodule.exports = InterceptorManager;\n"
},
{
"id": 182,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/core/dispatchRequest.js",
"name": "./node_modules/axios/lib/core/dispatchRequest.js",
"index": 180,
"index2": 177,
"size": 2199,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/axios/lib/core/Axios.js",
"issuerId": 171,
"issuerName": "./node_modules/axios/lib/core/Axios.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 167,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Shotter.js",
"name": "./src/modules/Shotter.js"
},
{
"id": 168,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/index.js",
"name": "./node_modules/axios/index.js"
},
{
"id": 169,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/axios.js",
"name": "./node_modules/axios/lib/axios.js"
},
{
"id": 171,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/core/Axios.js",
"name": "./node_modules/axios/lib/core/Axios.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 171,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/axios/lib/core/Axios.js",
"module": "./node_modules/axios/lib/core/Axios.js",
"moduleName": "./node_modules/axios/lib/core/Axios.js",
"type": "cjs require",
"userRequest": "./dispatchRequest",
"loc": "6:22-50"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 7,
"source": "'use strict';\n\nvar utils = require('./../utils');\nvar transformData = require('./transformData');\nvar isCancel = require('../cancel/isCancel');\nvar defaults = require('../defaults');\nvar isAbsoluteURL = require('./../helpers/isAbsoluteURL');\nvar combineURLs = require('./../helpers/combineURLs');\n\n/**\n * Throws a `Cancel` if cancellation has been requested.\n */\nfunction throwIfCancellationRequested(config) {\n if (config.cancelToken) {\n config.cancelToken.throwIfRequested();\n }\n}\n\n/**\n * Dispatch a request to the server using the configured adapter.\n *\n * @param {object} config The config that is to be used for the request\n * @returns {Promise} The Promise to be fulfilled\n */\nmodule.exports = function dispatchRequest(config) {\n throwIfCancellationRequested(config);\n\n // Support baseURL config\n if (config.baseURL && !isAbsoluteURL(config.url)) {\n config.url = combineURLs(config.baseURL, config.url);\n }\n\n // Ensure headers exist\n config.headers = config.headers || {};\n\n // Transform request data\n config.data = transformData(\n config.data,\n config.headers,\n config.transformRequest\n );\n\n // Flatten headers\n config.headers = utils.merge(\n config.headers.common || {},\n config.headers[config.method] || {},\n config.headers || {}\n );\n\n utils.forEach(\n ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],\n function cleanHeaderConfig(method) {\n delete config.headers[method];\n }\n );\n\n var adapter = config.adapter || defaults.adapter;\n\n return adapter(config).then(function onAdapterResolution(response) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n response.data = transformData(\n response.data,\n response.headers,\n config.transformResponse\n );\n\n return response;\n }, function onAdapterRejection(reason) {\n if (!isCancel(reason)) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n if (reason && reason.response) {\n reason.response.data = transformData(\n reason.response.data,\n reason.response.headers,\n config.transformResponse\n );\n }\n }\n\n return Promise.reject(reason);\n });\n};\n"
},
{
"id": 183,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/core/transformData.js",
"name": "./node_modules/axios/lib/core/transformData.js",
"index": 181,
"index2": 173,
"size": 550,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/axios/lib/core/dispatchRequest.js",
"issuerId": 182,
"issuerName": "./node_modules/axios/lib/core/dispatchRequest.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 167,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Shotter.js",
"name": "./src/modules/Shotter.js"
},
{
"id": 168,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/index.js",
"name": "./node_modules/axios/index.js"
},
{
"id": 169,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/axios.js",
"name": "./node_modules/axios/lib/axios.js"
},
{
"id": 171,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/core/Axios.js",
"name": "./node_modules/axios/lib/core/Axios.js"
},
{
"id": 182,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/core/dispatchRequest.js",
"name": "./node_modules/axios/lib/core/dispatchRequest.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 182,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/axios/lib/core/dispatchRequest.js",
"module": "./node_modules/axios/lib/core/dispatchRequest.js",
"moduleName": "./node_modules/axios/lib/core/dispatchRequest.js",
"type": "cjs require",
"userRequest": "./transformData",
"loc": "4:20-46"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 8,
"source": "'use strict';\n\nvar utils = require('./../utils');\n\n/**\n * Transform the data for a request or a response\n *\n * @param {Object|String} data The data to be transformed\n * @param {Array} headers The headers for the request or response\n * @param {Array|Function} fns A single function or Array of functions\n * @returns {*} The resulting transformed data\n */\nmodule.exports = function transformData(data, headers, fns) {\n /*eslint no-param-reassign:0*/\n utils.forEach(fns, function transform(fn) {\n data = fn(data, headers);\n });\n\n return data;\n};\n"
},
{
"id": 184,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/helpers/isAbsoluteURL.js",
"name": "./node_modules/axios/lib/helpers/isAbsoluteURL.js",
"index": 183,
"index2": 175,
"size": 563,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/axios/lib/core/dispatchRequest.js",
"issuerId": 182,
"issuerName": "./node_modules/axios/lib/core/dispatchRequest.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 167,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Shotter.js",
"name": "./src/modules/Shotter.js"
},
{
"id": 168,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/index.js",
"name": "./node_modules/axios/index.js"
},
{
"id": 169,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/axios.js",
"name": "./node_modules/axios/lib/axios.js"
},
{
"id": 171,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/core/Axios.js",
"name": "./node_modules/axios/lib/core/Axios.js"
},
{
"id": 182,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/core/dispatchRequest.js",
"name": "./node_modules/axios/lib/core/dispatchRequest.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 182,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/axios/lib/core/dispatchRequest.js",
"module": "./node_modules/axios/lib/core/dispatchRequest.js",
"moduleName": "./node_modules/axios/lib/core/dispatchRequest.js",
"type": "cjs require",
"userRequest": "./../helpers/isAbsoluteURL",
"loc": "7:20-57"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 8,
"source": "'use strict';\n\n/**\n * Determines whether the specified URL is absolute\n *\n * @param {string} url The URL to test\n * @returns {boolean} True if the specified URL is absolute, otherwise false\n */\nmodule.exports = function isAbsoluteURL(url) {\n // A URL is considered absolute if it begins with \"<scheme>://\" or \"//\" (protocol-relative URL).\n // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed\n // by any combination of letters, digits, plus, period, or hyphen.\n return /^([a-z][a-z\\d\\+\\-\\.]*:)?\\/\\//i.test(url);\n};\n"
},
{
"id": 185,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/helpers/combineURLs.js",
"name": "./node_modules/axios/lib/helpers/combineURLs.js",
"index": 184,
"index2": 176,
"size": 380,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/axios/lib/core/dispatchRequest.js",
"issuerId": 182,
"issuerName": "./node_modules/axios/lib/core/dispatchRequest.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 167,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Shotter.js",
"name": "./src/modules/Shotter.js"
},
{
"id": 168,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/index.js",
"name": "./node_modules/axios/index.js"
},
{
"id": 169,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/axios.js",
"name": "./node_modules/axios/lib/axios.js"
},
{
"id": 171,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/core/Axios.js",
"name": "./node_modules/axios/lib/core/Axios.js"
},
{
"id": 182,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/core/dispatchRequest.js",
"name": "./node_modules/axios/lib/core/dispatchRequest.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 182,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/axios/lib/core/dispatchRequest.js",
"module": "./node_modules/axios/lib/core/dispatchRequest.js",
"moduleName": "./node_modules/axios/lib/core/dispatchRequest.js",
"type": "cjs require",
"userRequest": "./../helpers/combineURLs",
"loc": "8:18-53"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 8,
"source": "'use strict';\n\n/**\n * Creates a new URL by combining the specified URLs\n *\n * @param {string} baseURL The base URL\n * @param {string} relativeURL The relative URL\n * @returns {string} The combined URL\n */\nmodule.exports = function combineURLs(baseURL, relativeURL) {\n return relativeURL\n ? baseURL.replace(/\\/+$/, '') + '/' + relativeURL.replace(/^\\/+/, '')\n : baseURL;\n};\n"
},
{
"id": 186,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/cancel/CancelToken.js",
"name": "./node_modules/axios/lib/cancel/CancelToken.js",
"index": 186,
"index2": 180,
"size": 1240,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/axios/lib/axios.js",
"issuerId": 169,
"issuerName": "./node_modules/axios/lib/axios.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 167,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Shotter.js",
"name": "./src/modules/Shotter.js"
},
{
"id": 168,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/index.js",
"name": "./node_modules/axios/index.js"
},
{
"id": 169,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/axios.js",
"name": "./node_modules/axios/lib/axios.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 169,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/axios/lib/axios.js",
"module": "./node_modules/axios/lib/axios.js",
"moduleName": "./node_modules/axios/lib/axios.js",
"type": "cjs require",
"userRequest": "./cancel/CancelToken",
"loc": "40:20-51"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 6,
"source": "'use strict';\n\nvar Cancel = require('./Cancel');\n\n/**\n * A `CancelToken` is an object that can be used to request cancellation of an operation.\n *\n * @class\n * @param {Function} executor The executor function.\n */\nfunction CancelToken(executor) {\n if (typeof executor !== 'function') {\n throw new TypeError('executor must be a function.');\n }\n\n var resolvePromise;\n this.promise = new Promise(function promiseExecutor(resolve) {\n resolvePromise = resolve;\n });\n\n var token = this;\n executor(function cancel(message) {\n if (token.reason) {\n // Cancellation has already been requested\n return;\n }\n\n token.reason = new Cancel(message);\n resolvePromise(token.reason);\n });\n}\n\n/**\n * Throws a `Cancel` if cancellation has been requested.\n */\nCancelToken.prototype.throwIfRequested = function throwIfRequested() {\n if (this.reason) {\n throw this.reason;\n }\n};\n\n/**\n * Returns an object that contains a new `CancelToken` and a function that, when called,\n * cancels the `CancelToken`.\n */\nCancelToken.source = function source() {\n var cancel;\n var token = new CancelToken(function executor(c) {\n cancel = c;\n });\n return {\n token: token,\n cancel: cancel\n };\n};\n\nmodule.exports = CancelToken;\n"
},
{
"id": 187,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/helpers/spread.js",
"name": "./node_modules/axios/lib/helpers/spread.js",
"index": 187,
"index2": 181,
"size": 564,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/axios/lib/axios.js",
"issuerId": 169,
"issuerName": "./node_modules/axios/lib/axios.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
},
{
"id": 124,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Editor.js",
"name": "./src/modules/Editor.js"
},
{
"id": 167,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/modules/Shotter.js",
"name": "./src/modules/Shotter.js"
},
{
"id": 168,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/index.js",
"name": "./node_modules/axios/index.js"
},
{
"id": 169,
"identifier": "/Users/user/Projects/orchid/node_modules/axios/lib/axios.js",
"name": "./node_modules/axios/lib/axios.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 169,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/axios/lib/axios.js",
"module": "./node_modules/axios/lib/axios.js",
"moduleName": "./node_modules/axios/lib/axios.js",
"type": "cjs require",
"userRequest": "./helpers/spread",
"loc": "47:15-42"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 6,
"source": "'use strict';\n\n/**\n * Syntactic sugar for invoking a function and expanding an array for arguments.\n *\n * Common use case would be to use `Function.prototype.apply`.\n *\n * ```js\n * function f(x, y, z) {}\n * var args = [1, 2, 3];\n * f.apply(null, args);\n * ```\n *\n * With `spread` this example can be re-written.\n *\n * ```js\n * spread(function(x, y, z) {})([1, 2, 3]);\n * ```\n *\n * @param {Function} callback\n * @returns {Function}\n */\nmodule.exports = function spread(callback) {\n return function wrap(arr) {\n return callback.apply(null, arr);\n };\n};\n"
},
{
"id": 188,
"identifier": "/Users/user/Projects/orchid/node_modules/file-loader/dist/cjs.js??ref--8!/Users/user/Projects/orchid/src/sprites/icons.svg",
"name": "./src/sprites/icons.svg",
"index": 188,
"index2": 186,
"size": 82,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"issuerId": 89,
"issuerName": "./src/containers/App.jsx",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 89,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"name": "./src/containers/App.jsx"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [
"e98375cc1b228aa22527deb5d5a2b406.svg"
],
"reasons": [
{
"moduleId": 89,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/containers/App.jsx",
"module": "./src/containers/App.jsx",
"moduleName": "./src/containers/App.jsx",
"type": "cjs require",
"userRequest": "$sprites/icons.svg",
"loc": "32:0-29"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 2,
"source": "module.exports = __webpack_public_path__ + \"e98375cc1b228aa22527deb5d5a2b406.svg\";"
},
{
"id": 189,
"identifier": "/Users/user/Projects/orchid/node_modules/style-loader/index.js!/Users/user/Projects/orchid/node_modules/css-loader/index.js!/Users/user/Projects/orchid/node_modules/less-loader/dist/cjs.js!/Users/user/Projects/orchid/src/styles/map.less",
"name": "./src/styles/map.less",
"index": 189,
"index2": 189,
"size": 1210,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"issuerId": 79,
"issuerName": "./src/index.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 79,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"module": "./src/index.js",
"moduleName": "./src/index.js",
"type": "cjs require",
"userRequest": "$styles/map.less",
"loc": "18:0-27"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 1,
"source": "\nvar content = require(\"!!../../node_modules/css-loader/index.js!../../node_modules/less-loader/dist/cjs.js!./map.less\");\n\nif(typeof content === 'string') content = [[module.id, content, '']];\n\nvar transform;\nvar insertInto;\n\n\n\nvar options = {\"hmr\":true}\n\noptions.transform = transform\noptions.insertInto = undefined;\n\nvar update = require(\"!../../node_modules/style-loader/lib/addStyles.js\")(content, options);\n\nif(content.locals) module.exports = content.locals;\n\nif(module.hot) {\n\tmodule.hot.accept(\"!!../../node_modules/css-loader/index.js!../../node_modules/less-loader/dist/cjs.js!./map.less\", function() {\n\t\tvar newContent = require(\"!!../../node_modules/css-loader/index.js!../../node_modules/less-loader/dist/cjs.js!./map.less\");\n\n\t\tif(typeof newContent === 'string') newContent = [[module.id, newContent, '']];\n\n\t\tvar locals = (function(a, b) {\n\t\t\tvar key, idx = 0;\n\n\t\t\tfor(key in a) {\n\t\t\t\tif(!b || a[key] !== b[key]) return false;\n\t\t\t\tidx++;\n\t\t\t}\n\n\t\t\tfor(key in b) idx--;\n\n\t\t\treturn idx === 0;\n\t\t}(content.locals, newContent.locals));\n\n\t\tif(!locals) throw new Error('Aborting CSS HMR due to changed css-modules locals.');\n\n\t\tupdate(newContent);\n\t});\n\n\tmodule.hot.dispose(function() { update(); });\n}"
},
{
"id": 190,
"identifier": "/Users/user/Projects/orchid/node_modules/css-loader/index.js!/Users/user/Projects/orchid/node_modules/less-loader/dist/cjs.js!/Users/user/Projects/orchid/src/styles/map.less",
"name": "./node_modules/css-loader!./node_modules/less-loader/dist/cjs.js!./src/styles/map.less",
"index": 190,
"index2": 188,
"size": 2986,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/style-loader/index.js!/Users/user/Projects/orchid/node_modules/css-loader/index.js!/Users/user/Projects/orchid/node_modules/less-loader/dist/cjs.js!/Users/user/Projects/orchid/src/styles/map.less",
"issuerId": 189,
"issuerName": "./src/styles/map.less",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 189,
"identifier": "/Users/user/Projects/orchid/node_modules/style-loader/index.js!/Users/user/Projects/orchid/node_modules/css-loader/index.js!/Users/user/Projects/orchid/node_modules/less-loader/dist/cjs.js!/Users/user/Projects/orchid/src/styles/map.less",
"name": "./src/styles/map.less"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 189,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/style-loader/index.js!/Users/user/Projects/orchid/node_modules/css-loader/index.js!/Users/user/Projects/orchid/node_modules/less-loader/dist/cjs.js!/Users/user/Projects/orchid/src/styles/map.less",
"module": "./src/styles/map.less",
"moduleName": "./src/styles/map.less",
"type": "cjs require",
"userRequest": "!!../../node_modules/css-loader/index.js!../../node_modules/less-loader/dist/cjs.js!./map.less",
"loc": "2:14-119"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 2,
"source": "exports = module.exports = require(\"../../node_modules/css-loader/lib/css-base.js\")(false);\n// imports\n\n\n// module\nexports.push([module.id, \"#map {\\n width: 100%;\\n height: 100%;\\n position: absolute;\\n z-index: 1;\\n left: 0;\\n top: 0;\\n}\\n.leaflet-vertex-icon,\\n.leaflet-middle-icon {\\n border-radius: 10px;\\n opacity: 1;\\n border: none;\\n width: 16px !important;\\n height: 16px !important;\\n margin-left: -8px !important;\\n margin-top: -8px !important;\\n background: transparent;\\n}\\n.leaflet-vertex-icon::after,\\n.leaflet-middle-icon::after {\\n content: ' ';\\n position: absolute;\\n top: 4px;\\n left: 4px;\\n width: 8px;\\n height: 8px;\\n background: white;\\n border-radius: 8px;\\n transform: scale(1);\\n transition: transform 150ms;\\n}\\n.leaflet-vertex-icon:hover,\\n.leaflet-middle-icon:hover {\\n opacity: 1 !important;\\n}\\n.leaflet-vertex-icon:hover::after,\\n.leaflet-middle-icon:hover::after,\\n.leaflet-vertex-icon:active::after,\\n.leaflet-middle-icon:active::after {\\n transform: scale(2);\\n box-shadow: #999 0 0 5px 2px;\\n}\\n.leaflet-control-container .leaflet-routing-container-hide {\\n display: none;\\n}\\n.router-waypoint {\\n width: 40px;\\n height: 40px;\\n margin-left: -20px;\\n margin-top: -20px;\\n outline: none;\\n z-index: 10001;\\n}\\n.router-waypoint ::after {\\n content: ' ';\\n display: block;\\n width: 20px;\\n height: 20px;\\n border-radius: 10px;\\n box-shadow: 0 0 0 2px #4597d0;\\n margin-left: 10px;\\n margin-top: 10px;\\n}\\n.sticker-container {\\n outline: none;\\n position: relative;\\n}\\n.sticker-container ::before {\\n content: ' ';\\n box-shadow: 0 0 10px 1px #ff3344;\\n background: #ff334422;\\n width: 48px;\\n height: 48px;\\n left: -24px;\\n top: -24px;\\n position: absolute;\\n border-radius: 40px;\\n opacity: 0;\\n transition: opacity 250ms;\\n}\\n.sticker-container :hover .sticker-delete {\\n transform: scale(1);\\n pointer-events: all;\\n}\\n.sticker-container :hover ::before {\\n opacity: 1;\\n}\\n.sticker-label {\\n width: 48px;\\n height: 48px;\\n position: absolute;\\n background: white;\\n border-radius: 32px;\\n left: 0;\\n top: 0;\\n outline: none;\\n}\\n.sticker-label ::after {\\n content: ' ';\\n box-shadow: 0 0 0 1px #ff3344;\\n width: 80px;\\n height: 80px;\\n left: -16px;\\n top: -16px;\\n position: absolute;\\n border-radius: 40px;\\n pointer-events: none;\\n opacity: 0;\\n}\\n.sticker-arrow {\\n position: absolute;\\n background: red;\\n transform-origin: 0 0;\\n left: 0;\\n top: 0;\\n}\\n.sticker-arrow ::after {\\n content: ' ';\\n background: #ff3344;\\n width: 24px;\\n height: 24px;\\n transform-origin: 0 0;\\n transform: rotate(-45deg);\\n left: 0;\\n top: 0;\\n position: absolute;\\n}\\n.sticker-delete {\\n position: absolute;\\n width: 24px;\\n height: 24px;\\n background: red;\\n border-radius: 24px;\\n transition: transform 500ms;\\n transform: scale(0);\\n opacity: 1;\\n pointer-events: none;\\n}\\n.sticker-delete :hover {\\n transform: scale(1.2) !important;\\n}\\n\", \"\"]);\n\n// exports\n"
},
{
"id": 191,
"identifier": "/Users/user/Projects/orchid/node_modules/style-loader/index.js!/Users/user/Projects/orchid/node_modules/css-loader/index.js!/Users/user/Projects/orchid/node_modules/less-loader/dist/cjs.js!/Users/user/Projects/orchid/src/styles/controls.less",
"name": "./src/styles/controls.less",
"index": 191,
"index2": 191,
"size": 1225,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"issuerId": 79,
"issuerName": "./src/index.js",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 79,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"module": "./src/index.js",
"moduleName": "./src/index.js",
"type": "cjs require",
"userRequest": "$styles/controls.less",
"loc": "20:0-32"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 1,
"source": "\nvar content = require(\"!!../../node_modules/css-loader/index.js!../../node_modules/less-loader/dist/cjs.js!./controls.less\");\n\nif(typeof content === 'string') content = [[module.id, content, '']];\n\nvar transform;\nvar insertInto;\n\n\n\nvar options = {\"hmr\":true}\n\noptions.transform = transform\noptions.insertInto = undefined;\n\nvar update = require(\"!../../node_modules/style-loader/lib/addStyles.js\")(content, options);\n\nif(content.locals) module.exports = content.locals;\n\nif(module.hot) {\n\tmodule.hot.accept(\"!!../../node_modules/css-loader/index.js!../../node_modules/less-loader/dist/cjs.js!./controls.less\", function() {\n\t\tvar newContent = require(\"!!../../node_modules/css-loader/index.js!../../node_modules/less-loader/dist/cjs.js!./controls.less\");\n\n\t\tif(typeof newContent === 'string') newContent = [[module.id, newContent, '']];\n\n\t\tvar locals = (function(a, b) {\n\t\t\tvar key, idx = 0;\n\n\t\t\tfor(key in a) {\n\t\t\t\tif(!b || a[key] !== b[key]) return false;\n\t\t\t\tidx++;\n\t\t\t}\n\n\t\t\tfor(key in b) idx--;\n\n\t\t\treturn idx === 0;\n\t\t}(content.locals, newContent.locals));\n\n\t\tif(!locals) throw new Error('Aborting CSS HMR due to changed css-modules locals.');\n\n\t\tupdate(newContent);\n\t});\n\n\tmodule.hot.dispose(function() { update(); });\n}"
},
{
"id": 192,
"identifier": "/Users/user/Projects/orchid/node_modules/css-loader/index.js!/Users/user/Projects/orchid/node_modules/less-loader/dist/cjs.js!/Users/user/Projects/orchid/src/styles/controls.less",
"name": "./node_modules/css-loader!./node_modules/less-loader/dist/cjs.js!./src/styles/controls.less",
"index": 192,
"index2": 190,
"size": 354,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/style-loader/index.js!/Users/user/Projects/orchid/node_modules/css-loader/index.js!/Users/user/Projects/orchid/node_modules/less-loader/dist/cjs.js!/Users/user/Projects/orchid/src/styles/controls.less",
"issuerId": 191,
"issuerName": "./src/styles/controls.less",
"issuerPath": [
{
"id": 79,
"identifier": "/Users/user/Projects/orchid/node_modules/babel-loader/lib/index.js!/Users/user/Projects/orchid/src/index.js",
"name": "./src/index.js"
},
{
"id": 191,
"identifier": "/Users/user/Projects/orchid/node_modules/style-loader/index.js!/Users/user/Projects/orchid/node_modules/css-loader/index.js!/Users/user/Projects/orchid/node_modules/less-loader/dist/cjs.js!/Users/user/Projects/orchid/src/styles/controls.less",
"name": "./src/styles/controls.less"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 191,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/style-loader/index.js!/Users/user/Projects/orchid/node_modules/css-loader/index.js!/Users/user/Projects/orchid/node_modules/less-loader/dist/cjs.js!/Users/user/Projects/orchid/src/styles/controls.less",
"module": "./src/styles/controls.less",
"moduleName": "./src/styles/controls.less",
"type": "cjs require",
"userRequest": "!!../../node_modules/css-loader/index.js!../../node_modules/less-loader/dist/cjs.js!./controls.less",
"loc": "2:14-124"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 2,
"source": "exports = module.exports = require(\"../../node_modules/css-loader/lib/css-base.js\")(false);\n// imports\n\n\n// module\nexports.push([module.id, \"#control-screen {\\n position: fixed;\\n right: 10px;\\n bottom: 10px;\\n height: 48px;\\n min-width: 120px;\\n background: #333333;\\n border-radius: 2px;\\n z-index: 2;\\n color: white;\\n}\\n\", \"\"]);\n\n// exports\n"
}
],
"filteredModules": 0,
"children": [
{
"errors": [],
"warnings": [],
"publicPath": "",
"outputPath": "/Users/user/Projects/orchid/dist",
"assetsByChunkName": {},
"assets": [
{
"name": "./index.html",
"size": 1424865,
"chunks": [
0
],
"chunkNames": []
}
],
"filteredAssets": 0,
"entrypoints": {
"undefined": {
"chunks": [
0
],
"assets": [
"./index.html"
],
"children": {},
"childAssets": {}
}
},
"namedChunkGroups": {
"undefined": {
"chunks": [
0
],
"assets": [
"./index.html"
],
"children": {},
"childAssets": {}
}
},
"chunks": [
{
"id": 0,
"rendered": true,
"initial": true,
"entry": true,
"size": 541501,
"names": [],
"files": [
"./index.html"
],
"hash": "e813378948766e5378b3",
"siblings": [],
"parents": [],
"children": [],
"childrenByOrder": {},
"modules": [
{
"id": 0,
"identifier": "/Users/user/Projects/orchid/node_modules/html-webpack-plugin/lib/loader.js!/Users/user/Projects/orchid/src/index.html",
"name": "./node_modules/html-webpack-plugin/lib/loader.js!./src/index.html",
"index": 0,
"index2": 3,
"size": 679,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": null,
"issuerId": null,
"issuerName": null,
"issuerPath": null,
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": null,
"moduleIdentifier": null,
"module": null,
"moduleName": null,
"type": "single entry",
"userRequest": "/Users/user/Projects/orchid/node_modules/html-webpack-plugin/lib/loader.js!/Users/user/Projects/orchid/src/index.html"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 0,
"source": "var _ = require(\"!!../node_modules/lodash/lodash.js\");module.exports = function (templateParams) { with(templateParams) {return (function(data) {\nvar __t, __p = '';\n__p += '<html>\\n<head>\\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\\n <meta name=\"viewport\" content=\"initial-scale=1, maximum-scale=0.8\">\\n <link rel=\"icon\" href=\"favicon.png?d\" type=\"image/png\" />\\n\\n <title>@ORCHID</title>\\n\\n <link rel=\"shortcut icon\" href=\"/favicon.png?wd\" type=\"image/png\">\\n <meta property=\"og:image\" content=\"/misc/vk_preview.png\" />\\n <meta content=\"/misc/vk_preview.png\">\\n</head>\\n<body>\\n <section id=\"index\"></section>\\n</body>\\n';\nreturn __p\n})();}}"
},
{
"id": 1,
"identifier": "/Users/user/Projects/orchid/node_modules/lodash/lodash.js",
"name": "./node_modules/lodash/lodash.js",
"index": 1,
"index2": 2,
"size": 539836,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/html-webpack-plugin/lib/loader.js!/Users/user/Projects/orchid/src/index.html",
"issuerId": 0,
"issuerName": "./node_modules/html-webpack-plugin/lib/loader.js!./src/index.html",
"issuerPath": [
{
"id": 0,
"identifier": "/Users/user/Projects/orchid/node_modules/html-webpack-plugin/lib/loader.js!/Users/user/Projects/orchid/src/index.html",
"name": "./node_modules/html-webpack-plugin/lib/loader.js!./src/index.html"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 0,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/html-webpack-plugin/lib/loader.js!/Users/user/Projects/orchid/src/index.html",
"module": "./node_modules/html-webpack-plugin/lib/loader.js!./src/index.html",
"moduleName": "./node_modules/html-webpack-plugin/lib/loader.js!./src/index.html",
"type": "cjs require",
"userRequest": "!!../node_modules/lodash/lodash.js",
"loc": "1:8-53"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 1,
"source": "/**\n * @license\n * Lodash <https://lodash.com/>\n * Copyright JS Foundation and other contributors <https://js.foundation/>\n * Released under MIT license <https://lodash.com/license>\n * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>\n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */\n;(function() {\n\n /** Used as a safe reference for `undefined` in pre-ES5 environments. */\n var undefined;\n\n /** Used as the semantic version number. */\n var VERSION = '4.17.10';\n\n /** Used as the size to enable large array optimizations. */\n var LARGE_ARRAY_SIZE = 200;\n\n /** Error message constants. */\n var CORE_ERROR_TEXT = 'Unsupported core-js use. Try https://npms.io/search?q=ponyfill.',\n FUNC_ERROR_TEXT = 'Expected a function';\n\n /** Used to stand-in for `undefined` hash values. */\n var HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n /** Used as the maximum memoize cache size. */\n var MAX_MEMOIZE_SIZE = 500;\n\n /** Used as the internal argument placeholder. */\n var PLACEHOLDER = '__lodash_placeholder__';\n\n /** Used to compose bitmasks for cloning. */\n var CLONE_DEEP_FLAG = 1,\n CLONE_FLAT_FLAG = 2,\n CLONE_SYMBOLS_FLAG = 4;\n\n /** Used to compose bitmasks for value comparisons. */\n var COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n /** Used to compose bitmasks for function metadata. */\n var WRAP_BIND_FLAG = 1,\n WRAP_BIND_KEY_FLAG = 2,\n WRAP_CURRY_BOUND_FLAG = 4,\n WRAP_CURRY_FLAG = 8,\n WRAP_CURRY_RIGHT_FLAG = 16,\n WRAP_PARTIAL_FLAG = 32,\n WRAP_PARTIAL_RIGHT_FLAG = 64,\n WRAP_ARY_FLAG = 128,\n WRAP_REARG_FLAG = 256,\n WRAP_FLIP_FLAG = 512;\n\n /** Used as default options for `_.truncate`. */\n var DEFAULT_TRUNC_LENGTH = 30,\n DEFAULT_TRUNC_OMISSION = '...';\n\n /** Used to detect hot functions by number of calls within a span of milliseconds. */\n var HOT_COUNT = 800,\n HOT_SPAN = 16;\n\n /** Used to indicate the type of lazy iteratees. */\n var LAZY_FILTER_FLAG = 1,\n LAZY_MAP_FLAG = 2,\n LAZY_WHILE_FLAG = 3;\n\n /** Used as references for various `Number` constants. */\n var INFINITY = 1 / 0,\n MAX_SAFE_INTEGER = 9007199254740991,\n MAX_INTEGER = 1.7976931348623157e+308,\n NAN = 0 / 0;\n\n /** Used as references for the maximum length and index of an array. */\n var MAX_ARRAY_LENGTH = 4294967295,\n MAX_ARRAY_INDEX = MAX_ARRAY_LENGTH - 1,\n HALF_MAX_ARRAY_LENGTH = MAX_ARRAY_LENGTH >>> 1;\n\n /** Used to associate wrap methods with their bit flags. */\n var wrapFlags = [\n ['ary', WRAP_ARY_FLAG],\n ['bind', WRAP_BIND_FLAG],\n ['bindKey', WRAP_BIND_KEY_FLAG],\n ['curry', WRAP_CURRY_FLAG],\n ['curryRight', WRAP_CURRY_RIGHT_FLAG],\n ['flip', WRAP_FLIP_FLAG],\n ['partial', WRAP_PARTIAL_FLAG],\n ['partialRight', WRAP_PARTIAL_RIGHT_FLAG],\n ['rearg', WRAP_REARG_FLAG]\n ];\n\n /** `Object#toString` result references. */\n var argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n asyncTag = '[object AsyncFunction]',\n boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n domExcTag = '[object DOMException]',\n errorTag = '[object Error]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n nullTag = '[object Null]',\n objectTag = '[object Object]',\n promiseTag = '[object Promise]',\n proxyTag = '[object Proxy]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n symbolTag = '[object Symbol]',\n undefinedTag = '[object Undefined]',\n weakMapTag = '[object WeakMap]',\n weakSetTag = '[object WeakSet]';\n\n var arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n /** Used to match empty string literals in compiled template source. */\n var reEmptyStringLeading = /\\b__p \\+= '';/g,\n reEmptyStringMiddle = /\\b(__p \\+=) '' \\+/g,\n reEmptyStringTrailing = /(__e\\(.*?\\)|\\b__t\\)) \\+\\n'';/g;\n\n /** Used to match HTML entities and HTML characters. */\n var reEscapedHtml = /&(?:amp|lt|gt|quot|#39);/g,\n reUnescapedHtml = /[&<>\"']/g,\n reHasEscapedHtml = RegExp(reEscapedHtml.source),\n reHasUnescapedHtml = RegExp(reUnescapedHtml.source);\n\n /** Used to match template delimiters. */\n var reEscape = /<%-([\\s\\S]+?)%>/g,\n reEvaluate = /<%([\\s\\S]+?)%>/g,\n reInterpolate = /<%=([\\s\\S]+?)%>/g;\n\n /** Used to match property names within property paths. */\n var reIsDeepProp = /\\.|\\[(?:[^[\\]]*|([\"'])(?:(?!\\1)[^\\\\]|\\\\.)*?\\1)\\]/,\n reIsPlainProp = /^\\w*$/,\n rePropName = /[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))/g;\n\n /**\n * Used to match `RegExp`\n * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).\n */\n var reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g,\n reHasRegExpChar = RegExp(reRegExpChar.source);\n\n /** Used to match leading and trailing whitespace. */\n var reTrim = /^\\s+|\\s+$/g,\n reTrimStart = /^\\s+/,\n reTrimEnd = /\\s+$/;\n\n /** Used to match wrap detail comments. */\n var reWrapComment = /\\{(?:\\n\\/\\* \\[wrapped with .+\\] \\*\\/)?\\n?/,\n reWrapDetails = /\\{\\n\\/\\* \\[wrapped with (.+)\\] \\*/,\n reSplitDetails = /,? & /;\n\n /** Used to match words composed of alphanumeric characters. */\n var reAsciiWord = /[^\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\x7f]+/g;\n\n /** Used to match backslashes in property paths. */\n var reEscapeChar = /\\\\(\\\\)?/g;\n\n /**\n * Used to match\n * [ES template delimiters](http://ecma-international.org/ecma-262/7.0/#sec-template-literal-lexical-components).\n */\n var reEsTemplate = /\\$\\{([^\\\\}]*(?:\\\\.[^\\\\}]*)*)\\}/g;\n\n /** Used to match `RegExp` flags from their coerced string values. */\n var reFlags = /\\w*$/;\n\n /** Used to detect bad signed hexadecimal string values. */\n var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n /** Used to detect binary string values. */\n var reIsBinary = /^0b[01]+$/i;\n\n /** Used to detect host constructors (Safari). */\n var reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n\n /** Used to detect octal string values. */\n var reIsOctal = /^0o[0-7]+$/i;\n\n /** Used to detect unsigned integer values. */\n var reIsUint = /^(?:0|[1-9]\\d*)$/;\n\n /** Used to match Latin Unicode letters (excluding mathematical operators). */\n var reLatin = /[\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\xff\\u0100-\\u017f]/g;\n\n /** Used to ensure capturing order of template delimiters. */\n var reNoMatch = /($^)/;\n\n /** Used to match unescaped characters in compiled string literals. */\n var reUnescapedString = /['\\n\\r\\u2028\\u2029\\\\]/g;\n\n /** Used to compose unicode character classes. */\n var rsAstralRange = '\\\\ud800-\\\\udfff',\n rsComboMarksRange = '\\\\u0300-\\\\u036f',\n reComboHalfMarksRange = '\\\\ufe20-\\\\ufe2f',\n rsComboSymbolsRange = '\\\\u20d0-\\\\u20ff',\n rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,\n rsDingbatRange = '\\\\u2700-\\\\u27bf',\n rsLowerRange = 'a-z\\\\xdf-\\\\xf6\\\\xf8-\\\\xff',\n rsMathOpRange = '\\\\xac\\\\xb1\\\\xd7\\\\xf7',\n rsNonCharRange = '\\\\x00-\\\\x2f\\\\x3a-\\\\x40\\\\x5b-\\\\x60\\\\x7b-\\\\xbf',\n rsPunctuationRange = '\\\\u2000-\\\\u206f',\n rsSpaceRange = ' \\\\t\\\\x0b\\\\f\\\\xa0\\\\ufeff\\\\n\\\\r\\\\u2028\\\\u2029\\\\u1680\\\\u180e\\\\u2000\\\\u2001\\\\u2002\\\\u2003\\\\u2004\\\\u2005\\\\u2006\\\\u2007\\\\u2008\\\\u2009\\\\u200a\\\\u202f\\\\u205f\\\\u3000',\n rsUpperRange = 'A-Z\\\\xc0-\\\\xd6\\\\xd8-\\\\xde',\n rsVarRange = '\\\\ufe0e\\\\ufe0f',\n rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange;\n\n /** Used to compose unicode capture groups. */\n var rsApos = \"['\\u2019]\",\n rsAstral = '[' + rsAstralRange + ']',\n rsBreak = '[' + rsBreakRange + ']',\n rsCombo = '[' + rsComboRange + ']',\n rsDigits = '\\\\d+',\n rsDingbat = '[' + rsDingbatRange + ']',\n rsLower = '[' + rsLowerRange + ']',\n rsMisc = '[^' + rsAstralRange + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + ']',\n rsFitz = '\\\\ud83c[\\\\udffb-\\\\udfff]',\n rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',\n rsNonAstral = '[^' + rsAstralRange + ']',\n rsRegional = '(?:\\\\ud83c[\\\\udde6-\\\\uddff]){2}',\n rsSurrPair = '[\\\\ud800-\\\\udbff][\\\\udc00-\\\\udfff]',\n rsUpper = '[' + rsUpperRange + ']',\n rsZWJ = '\\\\u200d';\n\n /** Used to compose unicode regexes. */\n var rsMiscLower = '(?:' + rsLower + '|' + rsMisc + ')',\n rsMiscUpper = '(?:' + rsUpper + '|' + rsMisc + ')',\n rsOptContrLower = '(?:' + rsApos + '(?:d|ll|m|re|s|t|ve))?',\n rsOptContrUpper = '(?:' + rsApos + '(?:D|LL|M|RE|S|T|VE))?',\n reOptMod = rsModifier + '?',\n rsOptVar = '[' + rsVarRange + ']?',\n rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',\n rsOrdLower = '\\\\d*(?:1st|2nd|3rd|(?![123])\\\\dth)(?=\\\\b|[A-Z_])',\n rsOrdUpper = '\\\\d*(?:1ST|2ND|3RD|(?![123])\\\\dTH)(?=\\\\b|[a-z_])',\n rsSeq = rsOptVar + reOptMod + rsOptJoin,\n rsEmoji = '(?:' + [rsDingbat, rsRegional, rsSurrPair].join('|') + ')' + rsSeq,\n rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';\n\n /** Used to match apostrophes. */\n var reApos = RegExp(rsApos, 'g');\n\n /**\n * Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks) and\n * [combining diacritical marks for symbols](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks_for_Symbols).\n */\n var reComboMark = RegExp(rsCombo, 'g');\n\n /** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */\n var reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');\n\n /** Used to match complex or compound words. */\n var reUnicodeWord = RegExp([\n rsUpper + '?' + rsLower + '+' + rsOptContrLower + '(?=' + [rsBreak, rsUpper, '$'].join('|') + ')',\n rsMiscUpper + '+' + rsOptContrUpper + '(?=' + [rsBreak, rsUpper + rsMiscLower, '$'].join('|') + ')',\n rsUpper + '?' + rsMiscLower + '+' + rsOptContrLower,\n rsUpper + '+' + rsOptContrUpper,\n rsOrdUpper,\n rsOrdLower,\n rsDigits,\n rsEmoji\n ].join('|'), 'g');\n\n /** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */\n var reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + ']');\n\n /** Used to detect strings that need a more robust regexp to match words. */\n var reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;\n\n /** Used to assign default `context` object properties. */\n var contextProps = [\n 'Array', 'Buffer', 'DataView', 'Date', 'Error', 'Float32Array', 'Float64Array',\n 'Function', 'Int8Array', 'Int16Array', 'Int32Array', 'Map', 'Math', 'Object',\n 'Promise', 'RegExp', 'Set', 'String', 'Symbol', 'TypeError', 'Uint8Array',\n 'Uint8ClampedArray', 'Uint16Array', 'Uint32Array', 'WeakMap',\n '_', 'clearTimeout', 'isFinite', 'parseInt', 'setTimeout'\n ];\n\n /** Used to make template sourceURLs easier to identify. */\n var templateCounter = -1;\n\n /** Used to identify `toStringTag` values of typed arrays. */\n var typedArrayTags = {};\n typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =\n typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =\n typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =\n typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =\n typedArrayTags[uint32Tag] = true;\n typedArrayTags[argsTag] = typedArrayTags[arrayTag] =\n typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =\n typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =\n typedArrayTags[errorTag] = typedArrayTags[funcTag] =\n typedArrayTags[mapTag] = typedArrayTags[numberTag] =\n typedArrayTags[objectTag] = typedArrayTags[regexpTag] =\n typedArrayTags[setTag] = typedArrayTags[stringTag] =\n typedArrayTags[weakMapTag] = false;\n\n /** Used to identify `toStringTag` values supported by `_.clone`. */\n var cloneableTags = {};\n cloneableTags[argsTag] = cloneableTags[arrayTag] =\n cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =\n cloneableTags[boolTag] = cloneableTags[dateTag] =\n cloneableTags[float32Tag] = cloneableTags[float64Tag] =\n cloneableTags[int8Tag] = cloneableTags[int16Tag] =\n cloneableTags[int32Tag] = cloneableTags[mapTag] =\n cloneableTags[numberTag] = cloneableTags[objectTag] =\n cloneableTags[regexpTag] = cloneableTags[setTag] =\n cloneableTags[stringTag] = cloneableTags[symbolTag] =\n cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =\n cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;\n cloneableTags[errorTag] = cloneableTags[funcTag] =\n cloneableTags[weakMapTag] = false;\n\n /** Used to map Latin Unicode letters to basic Latin letters. */\n var deburredLetters = {\n // Latin-1 Supplement block.\n '\\xc0': 'A', '\\xc1': 'A', '\\xc2': 'A', '\\xc3': 'A', '\\xc4': 'A', '\\xc5': 'A',\n '\\xe0': 'a', '\\xe1': 'a', '\\xe2': 'a', '\\xe3': 'a', '\\xe4': 'a', '\\xe5': 'a',\n '\\xc7': 'C', '\\xe7': 'c',\n '\\xd0': 'D', '\\xf0': 'd',\n '\\xc8': 'E', '\\xc9': 'E', '\\xca': 'E', '\\xcb': 'E',\n '\\xe8': 'e', '\\xe9': 'e', '\\xea': 'e', '\\xeb': 'e',\n '\\xcc': 'I', '\\xcd': 'I', '\\xce': 'I', '\\xcf': 'I',\n '\\xec': 'i', '\\xed': 'i', '\\xee': 'i', '\\xef': 'i',\n '\\xd1': 'N', '\\xf1': 'n',\n '\\xd2': 'O', '\\xd3': 'O', '\\xd4': 'O', '\\xd5': 'O', '\\xd6': 'O', '\\xd8': 'O',\n '\\xf2': 'o', '\\xf3': 'o', '\\xf4': 'o', '\\xf5': 'o', '\\xf6': 'o', '\\xf8': 'o',\n '\\xd9': 'U', '\\xda': 'U', '\\xdb': 'U', '\\xdc': 'U',\n '\\xf9': 'u', '\\xfa': 'u', '\\xfb': 'u', '\\xfc': 'u',\n '\\xdd': 'Y', '\\xfd': 'y', '\\xff': 'y',\n '\\xc6': 'Ae', '\\xe6': 'ae',\n '\\xde': 'Th', '\\xfe': 'th',\n '\\xdf': 'ss',\n // Latin Extended-A block.\n '\\u0100': 'A', '\\u0102': 'A', '\\u0104': 'A',\n '\\u0101': 'a', '\\u0103': 'a', '\\u0105': 'a',\n '\\u0106': 'C', '\\u0108': 'C', '\\u010a': 'C', '\\u010c': 'C',\n '\\u0107': 'c', '\\u0109': 'c', '\\u010b': 'c', '\\u010d': 'c',\n '\\u010e': 'D', '\\u0110': 'D', '\\u010f': 'd', '\\u0111': 'd',\n '\\u0112': 'E', '\\u0114': 'E', '\\u0116': 'E', '\\u0118': 'E', '\\u011a': 'E',\n '\\u0113': 'e', '\\u0115': 'e', '\\u0117': 'e', '\\u0119': 'e', '\\u011b': 'e',\n '\\u011c': 'G', '\\u011e': 'G', '\\u0120': 'G', '\\u0122': 'G',\n '\\u011d': 'g', '\\u011f': 'g', '\\u0121': 'g', '\\u0123': 'g',\n '\\u0124': 'H', '\\u0126': 'H', '\\u0125': 'h', '\\u0127': 'h',\n '\\u0128': 'I', '\\u012a': 'I', '\\u012c': 'I', '\\u012e': 'I', '\\u0130': 'I',\n '\\u0129': 'i', '\\u012b': 'i', '\\u012d': 'i', '\\u012f': 'i', '\\u0131': 'i',\n '\\u0134': 'J', '\\u0135': 'j',\n '\\u0136': 'K', '\\u0137': 'k', '\\u0138': 'k',\n '\\u0139': 'L', '\\u013b': 'L', '\\u013d': 'L', '\\u013f': 'L', '\\u0141': 'L',\n '\\u013a': 'l', '\\u013c': 'l', '\\u013e': 'l', '\\u0140': 'l', '\\u0142': 'l',\n '\\u0143': 'N', '\\u0145': 'N', '\\u0147': 'N', '\\u014a': 'N',\n '\\u0144': 'n', '\\u0146': 'n', '\\u0148': 'n', '\\u014b': 'n',\n '\\u014c': 'O', '\\u014e': 'O', '\\u0150': 'O',\n '\\u014d': 'o', '\\u014f': 'o', '\\u0151': 'o',\n '\\u0154': 'R', '\\u0156': 'R', '\\u0158': 'R',\n '\\u0155': 'r', '\\u0157': 'r', '\\u0159': 'r',\n '\\u015a': 'S', '\\u015c': 'S', '\\u015e': 'S', '\\u0160': 'S',\n '\\u015b': 's', '\\u015d': 's', '\\u015f': 's', '\\u0161': 's',\n '\\u0162': 'T', '\\u0164': 'T', '\\u0166': 'T',\n '\\u0163': 't', '\\u0165': 't', '\\u0167': 't',\n '\\u0168': 'U', '\\u016a': 'U', '\\u016c': 'U', '\\u016e': 'U', '\\u0170': 'U', '\\u0172': 'U',\n '\\u0169': 'u', '\\u016b': 'u', '\\u016d': 'u', '\\u016f': 'u', '\\u0171': 'u', '\\u0173': 'u',\n '\\u0174': 'W', '\\u0175': 'w',\n '\\u0176': 'Y', '\\u0177': 'y', '\\u0178': 'Y',\n '\\u0179': 'Z', '\\u017b': 'Z', '\\u017d': 'Z',\n '\\u017a': 'z', '\\u017c': 'z', '\\u017e': 'z',\n '\\u0132': 'IJ', '\\u0133': 'ij',\n '\\u0152': 'Oe', '\\u0153': 'oe',\n '\\u0149': \"'n\", '\\u017f': 's'\n };\n\n /** Used to map characters to HTML entities. */\n var htmlEscapes = {\n '&': '&amp;',\n '<': '&lt;',\n '>': '&gt;',\n '\"': '&quot;',\n \"'\": '&#39;'\n };\n\n /** Used to map HTML entities to characters. */\n var htmlUnescapes = {\n '&amp;': '&',\n '&lt;': '<',\n '&gt;': '>',\n '&quot;': '\"',\n '&#39;': \"'\"\n };\n\n /** Used to escape characters for inclusion in compiled string literals. */\n var stringEscapes = {\n '\\\\': '\\\\',\n \"'\": \"'\",\n '\\n': 'n',\n '\\r': 'r',\n '\\u2028': 'u2028',\n '\\u2029': 'u2029'\n };\n\n /** Built-in method references without a dependency on `root`. */\n var freeParseFloat = parseFloat,\n freeParseInt = parseInt;\n\n /** Detect free variable `global` from Node.js. */\n var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\n /** Detect free variable `self`. */\n var freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n /** Used as a reference to the global object. */\n var root = freeGlobal || freeSelf || Function('return this')();\n\n /** Detect free variable `exports`. */\n var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n /** Detect free variable `module`. */\n var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n /** Detect the popular CommonJS extension `module.exports`. */\n var moduleExports = freeModule && freeModule.exports === freeExports;\n\n /** Detect free variable `process` from Node.js. */\n var freeProcess = moduleExports && freeGlobal.process;\n\n /** Used to access faster Node.js helpers. */\n var nodeUtil = (function() {\n try {\n // Use `util.types` for Node.js 10+.\n var types = freeModule && freeModule.require && freeModule.require('util').types;\n\n if (types) {\n return types;\n }\n\n // Legacy `process.binding('util')` for Node.js < 10.\n return freeProcess && freeProcess.binding && freeProcess.binding('util');\n } catch (e) {}\n }());\n\n /* Node.js helper references. */\n var nodeIsArrayBuffer = nodeUtil && nodeUtil.isArrayBuffer,\n nodeIsDate = nodeUtil && nodeUtil.isDate,\n nodeIsMap = nodeUtil && nodeUtil.isMap,\n nodeIsRegExp = nodeUtil && nodeUtil.isRegExp,\n nodeIsSet = nodeUtil && nodeUtil.isSet,\n nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;\n\n /*--------------------------------------------------------------------------*/\n\n /**\n * A faster alternative to `Function#apply`, this function invokes `func`\n * with the `this` binding of `thisArg` and the arguments of `args`.\n *\n * @private\n * @param {Function} func The function to invoke.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {Array} args The arguments to invoke `func` with.\n * @returns {*} Returns the result of `func`.\n */\n function apply(func, thisArg, args) {\n switch (args.length) {\n case 0: return func.call(thisArg);\n case 1: return func.call(thisArg, args[0]);\n case 2: return func.call(thisArg, args[0], args[1]);\n case 3: return func.call(thisArg, args[0], args[1], args[2]);\n }\n return func.apply(thisArg, args);\n }\n\n /**\n * A specialized version of `baseAggregator` for arrays.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} setter The function to set `accumulator` values.\n * @param {Function} iteratee The iteratee to transform keys.\n * @param {Object} accumulator The initial aggregated object.\n * @returns {Function} Returns `accumulator`.\n */\n function arrayAggregator(array, setter, iteratee, accumulator) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n var value = array[index];\n setter(accumulator, value, iteratee(value), array);\n }\n return accumulator;\n }\n\n /**\n * A specialized version of `_.forEach` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns `array`.\n */\n function arrayEach(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (iteratee(array[index], index, array) === false) {\n break;\n }\n }\n return array;\n }\n\n /**\n * A specialized version of `_.forEachRight` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns `array`.\n */\n function arrayEachRight(array, iteratee) {\n var length = array == null ? 0 : array.length;\n\n while (length--) {\n if (iteratee(array[length], length, array) === false) {\n break;\n }\n }\n return array;\n }\n\n /**\n * A specialized version of `_.every` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if all elements pass the predicate check,\n * else `false`.\n */\n function arrayEvery(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (!predicate(array[index], index, array)) {\n return false;\n }\n }\n return true;\n }\n\n /**\n * A specialized version of `_.filter` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\n function arrayFilter(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n if (predicate(value, index, array)) {\n result[resIndex++] = value;\n }\n }\n return result;\n }\n\n /**\n * A specialized version of `_.includes` for arrays without support for\n * specifying an index to search from.\n *\n * @private\n * @param {Array} [array] The array to inspect.\n * @param {*} target The value to search for.\n * @returns {boolean} Returns `true` if `target` is found, else `false`.\n */\n function arrayIncludes(array, value) {\n var length = array == null ? 0 : array.length;\n return !!length && baseIndexOf(array, value, 0) > -1;\n }\n\n /**\n * This function is like `arrayIncludes` except that it accepts a comparator.\n *\n * @private\n * @param {Array} [array] The array to inspect.\n * @param {*} target The value to search for.\n * @param {Function} comparator The comparator invoked per element.\n * @returns {boolean} Returns `true` if `target` is found, else `false`.\n */\n function arrayIncludesWith(array, value, comparator) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (comparator(value, array[index])) {\n return true;\n }\n }\n return false;\n }\n\n /**\n * A specialized version of `_.map` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\n function arrayMap(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length,\n result = Array(length);\n\n while (++index < length) {\n result[index] = iteratee(array[index], index, array);\n }\n return result;\n }\n\n /**\n * Appends the elements of `values` to `array`.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {Array} values The values to append.\n * @returns {Array} Returns `array`.\n */\n function arrayPush(array, values) {\n var index = -1,\n length = values.length,\n offset = array.length;\n\n while (++index < length) {\n array[offset + index] = values[index];\n }\n return array;\n }\n\n /**\n * A specialized version of `_.reduce` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @param {boolean} [initAccum] Specify using the first element of `array` as\n * the initial value.\n * @returns {*} Returns the accumulated value.\n */\n function arrayReduce(array, iteratee, accumulator, initAccum) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n if (initAccum && length) {\n accumulator = array[++index];\n }\n while (++index < length) {\n accumulator = iteratee(accumulator, array[index], index, array);\n }\n return accumulator;\n }\n\n /**\n * A specialized version of `_.reduceRight` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @param {boolean} [initAccum] Specify using the last element of `array` as\n * the initial value.\n * @returns {*} Returns the accumulated value.\n */\n function arrayReduceRight(array, iteratee, accumulator, initAccum) {\n var length = array == null ? 0 : array.length;\n if (initAccum && length) {\n accumulator = array[--length];\n }\n while (length--) {\n accumulator = iteratee(accumulator, array[length], length, array);\n }\n return accumulator;\n }\n\n /**\n * A specialized version of `_.some` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if any element passes the predicate check,\n * else `false`.\n */\n function arraySome(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (predicate(array[index], index, array)) {\n return true;\n }\n }\n return false;\n }\n\n /**\n * Gets the size of an ASCII `string`.\n *\n * @private\n * @param {string} string The string inspect.\n * @returns {number} Returns the string size.\n */\n var asciiSize = baseProperty('length');\n\n /**\n * Converts an ASCII `string` to an array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the converted array.\n */\n function asciiToArray(string) {\n return string.split('');\n }\n\n /**\n * Splits an ASCII `string` into an array of its words.\n *\n * @private\n * @param {string} The string to inspect.\n * @returns {Array} Returns the words of `string`.\n */\n function asciiWords(string) {\n return string.match(reAsciiWord) || [];\n }\n\n /**\n * The base implementation of methods like `_.findKey` and `_.findLastKey`,\n * without support for iteratee shorthands, which iterates over `collection`\n * using `eachFunc`.\n *\n * @private\n * @param {Array|Object} collection The collection to inspect.\n * @param {Function} predicate The function invoked per iteration.\n * @param {Function} eachFunc The function to iterate over `collection`.\n * @returns {*} Returns the found element or its key, else `undefined`.\n */\n function baseFindKey(collection, predicate, eachFunc) {\n var result;\n eachFunc(collection, function(value, key, collection) {\n if (predicate(value, key, collection)) {\n result = key;\n return false;\n }\n });\n return result;\n }\n\n /**\n * The base implementation of `_.findIndex` and `_.findLastIndex` without\n * support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} predicate The function invoked per iteration.\n * @param {number} fromIndex The index to search from.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function baseFindIndex(array, predicate, fromIndex, fromRight) {\n var length = array.length,\n index = fromIndex + (fromRight ? 1 : -1);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (predicate(array[index], index, array)) {\n return index;\n }\n }\n return -1;\n }\n\n /**\n * The base implementation of `_.indexOf` without `fromIndex` bounds checks.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function baseIndexOf(array, value, fromIndex) {\n return value === value\n ? strictIndexOf(array, value, fromIndex)\n : baseFindIndex(array, baseIsNaN, fromIndex);\n }\n\n /**\n * This function is like `baseIndexOf` except that it accepts a comparator.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @param {Function} comparator The comparator invoked per element.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function baseIndexOfWith(array, value, fromIndex, comparator) {\n var index = fromIndex - 1,\n length = array.length;\n\n while (++index < length) {\n if (comparator(array[index], value)) {\n return index;\n }\n }\n return -1;\n }\n\n /**\n * The base implementation of `_.isNaN` without support for number objects.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.\n */\n function baseIsNaN(value) {\n return value !== value;\n }\n\n /**\n * The base implementation of `_.mean` and `_.meanBy` without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {number} Returns the mean.\n */\n function baseMean(array, iteratee) {\n var length = array == null ? 0 : array.length;\n return length ? (baseSum(array, iteratee) / length) : NAN;\n }\n\n /**\n * The base implementation of `_.property` without support for deep paths.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @returns {Function} Returns the new accessor function.\n */\n function baseProperty(key) {\n return function(object) {\n return object == null ? undefined : object[key];\n };\n }\n\n /**\n * The base implementation of `_.propertyOf` without support for deep paths.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Function} Returns the new accessor function.\n */\n function basePropertyOf(object) {\n return function(key) {\n return object == null ? undefined : object[key];\n };\n }\n\n /**\n * The base implementation of `_.reduce` and `_.reduceRight`, without support\n * for iteratee shorthands, which iterates over `collection` using `eachFunc`.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {*} accumulator The initial value.\n * @param {boolean} initAccum Specify using the first or last element of\n * `collection` as the initial value.\n * @param {Function} eachFunc The function to iterate over `collection`.\n * @returns {*} Returns the accumulated value.\n */\n function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {\n eachFunc(collection, function(value, index, collection) {\n accumulator = initAccum\n ? (initAccum = false, value)\n : iteratee(accumulator, value, index, collection);\n });\n return accumulator;\n }\n\n /**\n * The base implementation of `_.sortBy` which uses `comparer` to define the\n * sort order of `array` and replaces criteria objects with their corresponding\n * values.\n *\n * @private\n * @param {Array} array The array to sort.\n * @param {Function} comparer The function to define sort order.\n * @returns {Array} Returns `array`.\n */\n function baseSortBy(array, comparer) {\n var length = array.length;\n\n array.sort(comparer);\n while (length--) {\n array[length] = array[length].value;\n }\n return array;\n }\n\n /**\n * The base implementation of `_.sum` and `_.sumBy` without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {number} Returns the sum.\n */\n function baseSum(array, iteratee) {\n var result,\n index = -1,\n length = array.length;\n\n while (++index < length) {\n var current = iteratee(array[index]);\n if (current !== undefined) {\n result = result === undefined ? current : (result + current);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.times` without support for iteratee shorthands\n * or max array length checks.\n *\n * @private\n * @param {number} n The number of times to invoke `iteratee`.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the array of results.\n */\n function baseTimes(n, iteratee) {\n var index = -1,\n result = Array(n);\n\n while (++index < n) {\n result[index] = iteratee(index);\n }\n return result;\n }\n\n /**\n * The base implementation of `_.toPairs` and `_.toPairsIn` which creates an array\n * of key-value pairs for `object` corresponding to the property names of `props`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array} props The property names to get values for.\n * @returns {Object} Returns the key-value pairs.\n */\n function baseToPairs(object, props) {\n return arrayMap(props, function(key) {\n return [key, object[key]];\n });\n }\n\n /**\n * The base implementation of `_.unary` without support for storing metadata.\n *\n * @private\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n */\n function baseUnary(func) {\n return function(value) {\n return func(value);\n };\n }\n\n /**\n * The base implementation of `_.values` and `_.valuesIn` which creates an\n * array of `object` property values corresponding to the property names\n * of `props`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array} props The property names to get values for.\n * @returns {Object} Returns the array of property values.\n */\n function baseValues(object, props) {\n return arrayMap(props, function(key) {\n return object[key];\n });\n }\n\n /**\n * Checks if a `cache` value for `key` exists.\n *\n * @private\n * @param {Object} cache The cache to query.\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function cacheHas(cache, key) {\n return cache.has(key);\n }\n\n /**\n * Used by `_.trim` and `_.trimStart` to get the index of the first string symbol\n * that is not found in the character symbols.\n *\n * @private\n * @param {Array} strSymbols The string symbols to inspect.\n * @param {Array} chrSymbols The character symbols to find.\n * @returns {number} Returns the index of the first unmatched string symbol.\n */\n function charsStartIndex(strSymbols, chrSymbols) {\n var index = -1,\n length = strSymbols.length;\n\n while (++index < length && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {}\n return index;\n }\n\n /**\n * Used by `_.trim` and `_.trimEnd` to get the index of the last string symbol\n * that is not found in the character symbols.\n *\n * @private\n * @param {Array} strSymbols The string symbols to inspect.\n * @param {Array} chrSymbols The character symbols to find.\n * @returns {number} Returns the index of the last unmatched string symbol.\n */\n function charsEndIndex(strSymbols, chrSymbols) {\n var index = strSymbols.length;\n\n while (index-- && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {}\n return index;\n }\n\n /**\n * Gets the number of `placeholder` occurrences in `array`.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} placeholder The placeholder to search for.\n * @returns {number} Returns the placeholder count.\n */\n function countHolders(array, placeholder) {\n var length = array.length,\n result = 0;\n\n while (length--) {\n if (array[length] === placeholder) {\n ++result;\n }\n }\n return result;\n }\n\n /**\n * Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A\n * letters to basic Latin letters.\n *\n * @private\n * @param {string} letter The matched letter to deburr.\n * @returns {string} Returns the deburred letter.\n */\n var deburrLetter = basePropertyOf(deburredLetters);\n\n /**\n * Used by `_.escape` to convert characters to HTML entities.\n *\n * @private\n * @param {string} chr The matched character to escape.\n * @returns {string} Returns the escaped character.\n */\n var escapeHtmlChar = basePropertyOf(htmlEscapes);\n\n /**\n * Used by `_.template` to escape characters for inclusion in compiled string literals.\n *\n * @private\n * @param {string} chr The matched character to escape.\n * @returns {string} Returns the escaped character.\n */\n function escapeStringChar(chr) {\n return '\\\\' + stringEscapes[chr];\n }\n\n /**\n * Gets the value at `key` of `object`.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\n function getValue(object, key) {\n return object == null ? undefined : object[key];\n }\n\n /**\n * Checks if `string` contains Unicode symbols.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {boolean} Returns `true` if a symbol is found, else `false`.\n */\n function hasUnicode(string) {\n return reHasUnicode.test(string);\n }\n\n /**\n * Checks if `string` contains a word composed of Unicode symbols.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {boolean} Returns `true` if a word is found, else `false`.\n */\n function hasUnicodeWord(string) {\n return reHasUnicodeWord.test(string);\n }\n\n /**\n * Converts `iterator` to an array.\n *\n * @private\n * @param {Object} iterator The iterator to convert.\n * @returns {Array} Returns the converted array.\n */\n function iteratorToArray(iterator) {\n var data,\n result = [];\n\n while (!(data = iterator.next()).done) {\n result.push(data.value);\n }\n return result;\n }\n\n /**\n * Converts `map` to its key-value pairs.\n *\n * @private\n * @param {Object} map The map to convert.\n * @returns {Array} Returns the key-value pairs.\n */\n function mapToArray(map) {\n var index = -1,\n result = Array(map.size);\n\n map.forEach(function(value, key) {\n result[++index] = [key, value];\n });\n return result;\n }\n\n /**\n * Creates a unary function that invokes `func` with its argument transformed.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {Function} transform The argument transform.\n * @returns {Function} Returns the new function.\n */\n function overArg(func, transform) {\n return function(arg) {\n return func(transform(arg));\n };\n }\n\n /**\n * Replaces all `placeholder` elements in `array` with an internal placeholder\n * and returns an array of their indexes.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {*} placeholder The placeholder to replace.\n * @returns {Array} Returns the new array of placeholder indexes.\n */\n function replaceHolders(array, placeholder) {\n var index = -1,\n length = array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n if (value === placeholder || value === PLACEHOLDER) {\n array[index] = PLACEHOLDER;\n result[resIndex++] = index;\n }\n }\n return result;\n }\n\n /**\n * Gets the value at `key`, unless `key` is \"__proto__\".\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\n function safeGet(object, key) {\n return key == '__proto__'\n ? undefined\n : object[key];\n }\n\n /**\n * Converts `set` to an array of its values.\n *\n * @private\n * @param {Object} set The set to convert.\n * @returns {Array} Returns the values.\n */\n function setToArray(set) {\n var index = -1,\n result = Array(set.size);\n\n set.forEach(function(value) {\n result[++index] = value;\n });\n return result;\n }\n\n /**\n * Converts `set` to its value-value pairs.\n *\n * @private\n * @param {Object} set The set to convert.\n * @returns {Array} Returns the value-value pairs.\n */\n function setToPairs(set) {\n var index = -1,\n result = Array(set.size);\n\n set.forEach(function(value) {\n result[++index] = [value, value];\n });\n return result;\n }\n\n /**\n * A specialized version of `_.indexOf` which performs strict equality\n * comparisons of values, i.e. `===`.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function strictIndexOf(array, value, fromIndex) {\n var index = fromIndex - 1,\n length = array.length;\n\n while (++index < length) {\n if (array[index] === value) {\n return index;\n }\n }\n return -1;\n }\n\n /**\n * A specialized version of `_.lastIndexOf` which performs strict equality\n * comparisons of values, i.e. `===`.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function strictLastIndexOf(array, value, fromIndex) {\n var index = fromIndex + 1;\n while (index--) {\n if (array[index] === value) {\n return index;\n }\n }\n return index;\n }\n\n /**\n * Gets the number of symbols in `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the string size.\n */\n function stringSize(string) {\n return hasUnicode(string)\n ? unicodeSize(string)\n : asciiSize(string);\n }\n\n /**\n * Converts `string` to an array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the converted array.\n */\n function stringToArray(string) {\n return hasUnicode(string)\n ? unicodeToArray(string)\n : asciiToArray(string);\n }\n\n /**\n * Used by `_.unescape` to convert HTML entities to characters.\n *\n * @private\n * @param {string} chr The matched character to unescape.\n * @returns {string} Returns the unescaped character.\n */\n var unescapeHtmlChar = basePropertyOf(htmlUnescapes);\n\n /**\n * Gets the size of a Unicode `string`.\n *\n * @private\n * @param {string} string The string inspect.\n * @returns {number} Returns the string size.\n */\n function unicodeSize(string) {\n var result = reUnicode.lastIndex = 0;\n while (reUnicode.test(string)) {\n ++result;\n }\n return result;\n }\n\n /**\n * Converts a Unicode `string` to an array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the converted array.\n */\n function unicodeToArray(string) {\n return string.match(reUnicode) || [];\n }\n\n /**\n * Splits a Unicode `string` into an array of its words.\n *\n * @private\n * @param {string} The string to inspect.\n * @returns {Array} Returns the words of `string`.\n */\n function unicodeWords(string) {\n return string.match(reUnicodeWord) || [];\n }\n\n /*--------------------------------------------------------------------------*/\n\n /**\n * Create a new pristine `lodash` function using the `context` object.\n *\n * @static\n * @memberOf _\n * @since 1.1.0\n * @category Util\n * @param {Object} [context=root] The context object.\n * @returns {Function} Returns a new `lodash` function.\n * @example\n *\n * _.mixin({ 'foo': _.constant('foo') });\n *\n * var lodash = _.runInContext();\n * lodash.mixin({ 'bar': lodash.constant('bar') });\n *\n * _.isFunction(_.foo);\n * // => true\n * _.isFunction(_.bar);\n * // => false\n *\n * lodash.isFunction(lodash.foo);\n * // => false\n * lodash.isFunction(lodash.bar);\n * // => true\n *\n * // Create a suped-up `defer` in Node.js.\n * var defer = _.runInContext({ 'setTimeout': setImmediate }).defer;\n */\n var runInContext = (function runInContext(context) {\n context = context == null ? root : _.defaults(root.Object(), context, _.pick(root, contextProps));\n\n /** Built-in constructor references. */\n var Array = context.Array,\n Date = context.Date,\n Error = context.Error,\n Function = context.Function,\n Math = context.Math,\n Object = context.Object,\n RegExp = context.RegExp,\n String = context.String,\n TypeError = context.TypeError;\n\n /** Used for built-in method references. */\n var arrayProto = Array.prototype,\n funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n /** Used to detect overreaching core-js shims. */\n var coreJsData = context['__core-js_shared__'];\n\n /** Used to resolve the decompiled source of functions. */\n var funcToString = funcProto.toString;\n\n /** Used to check objects for own properties. */\n var hasOwnProperty = objectProto.hasOwnProperty;\n\n /** Used to generate unique IDs. */\n var idCounter = 0;\n\n /** Used to detect methods masquerading as native. */\n var maskSrcKey = (function() {\n var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');\n return uid ? ('Symbol(src)_1.' + uid) : '';\n }());\n\n /**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\n var nativeObjectToString = objectProto.toString;\n\n /** Used to infer the `Object` constructor. */\n var objectCtorString = funcToString.call(Object);\n\n /** Used to restore the original `_` reference in `_.noConflict`. */\n var oldDash = root._;\n\n /** Used to detect if a method is native. */\n var reIsNative = RegExp('^' +\n funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\\\$&')\n .replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$'\n );\n\n /** Built-in value references. */\n var Buffer = moduleExports ? context.Buffer : undefined,\n Symbol = context.Symbol,\n Uint8Array = context.Uint8Array,\n allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined,\n getPrototype = overArg(Object.getPrototypeOf, Object),\n objectCreate = Object.create,\n propertyIsEnumerable = objectProto.propertyIsEnumerable,\n splice = arrayProto.splice,\n spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined,\n symIterator = Symbol ? Symbol.iterator : undefined,\n symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n var defineProperty = (function() {\n try {\n var func = getNative(Object, 'defineProperty');\n func({}, '', {});\n return func;\n } catch (e) {}\n }());\n\n /** Mocked built-ins. */\n var ctxClearTimeout = context.clearTimeout !== root.clearTimeout && context.clearTimeout,\n ctxNow = Date && Date.now !== root.Date.now && Date.now,\n ctxSetTimeout = context.setTimeout !== root.setTimeout && context.setTimeout;\n\n /* Built-in method references for those with the same name as other `lodash` methods. */\n var nativeCeil = Math.ceil,\n nativeFloor = Math.floor,\n nativeGetSymbols = Object.getOwnPropertySymbols,\n nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined,\n nativeIsFinite = context.isFinite,\n nativeJoin = arrayProto.join,\n nativeKeys = overArg(Object.keys, Object),\n nativeMax = Math.max,\n nativeMin = Math.min,\n nativeNow = Date.now,\n nativeParseInt = context.parseInt,\n nativeRandom = Math.random,\n nativeReverse = arrayProto.reverse;\n\n /* Built-in method references that are verified to be native. */\n var DataView = getNative(context, 'DataView'),\n Map = getNative(context, 'Map'),\n Promise = getNative(context, 'Promise'),\n Set = getNative(context, 'Set'),\n WeakMap = getNative(context, 'WeakMap'),\n nativeCreate = getNative(Object, 'create');\n\n /** Used to store function metadata. */\n var metaMap = WeakMap && new WeakMap;\n\n /** Used to lookup unminified function names. */\n var realNames = {};\n\n /** Used to detect maps, sets, and weakmaps. */\n var dataViewCtorString = toSource(DataView),\n mapCtorString = toSource(Map),\n promiseCtorString = toSource(Promise),\n setCtorString = toSource(Set),\n weakMapCtorString = toSource(WeakMap);\n\n /** Used to convert symbols to primitives and strings. */\n var symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolValueOf = symbolProto ? symbolProto.valueOf : undefined,\n symbolToString = symbolProto ? symbolProto.toString : undefined;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a `lodash` object which wraps `value` to enable implicit method\n * chain sequences. Methods that operate on and return arrays, collections,\n * and functions can be chained together. Methods that retrieve a single value\n * or may return a primitive value will automatically end the chain sequence\n * and return the unwrapped value. Otherwise, the value must be unwrapped\n * with `_#value`.\n *\n * Explicit chain sequences, which must be unwrapped with `_#value`, may be\n * enabled using `_.chain`.\n *\n * The execution of chained methods is lazy, that is, it's deferred until\n * `_#value` is implicitly or explicitly called.\n *\n * Lazy evaluation allows several methods to support shortcut fusion.\n * Shortcut fusion is an optimization to merge iteratee calls; this avoids\n * the creation of intermediate arrays and can greatly reduce the number of\n * iteratee executions. Sections of a chain sequence qualify for shortcut\n * fusion if the section is applied to an array and iteratees accept only\n * one argument. The heuristic for whether a section qualifies for shortcut\n * fusion is subject to change.\n *\n * Chaining is supported in custom builds as long as the `_#value` method is\n * directly or indirectly included in the build.\n *\n * In addition to lodash methods, wrappers have `Array` and `String` methods.\n *\n * The wrapper `Array` methods are:\n * `concat`, `join`, `pop`, `push`, `shift`, `sort`, `splice`, and `unshift`\n *\n * The wrapper `String` methods are:\n * `replace` and `split`\n *\n * The wrapper methods that support shortcut fusion are:\n * `at`, `compact`, `drop`, `dropRight`, `dropWhile`, `filter`, `find`,\n * `findLast`, `head`, `initial`, `last`, `map`, `reject`, `reverse`, `slice`,\n * `tail`, `take`, `takeRight`, `takeRightWhile`, `takeWhile`, and `toArray`\n *\n * The chainable wrapper methods are:\n * `after`, `ary`, `assign`, `assignIn`, `assignInWith`, `assignWith`, `at`,\n * `before`, `bind`, `bindAll`, `bindKey`, `castArray`, `chain`, `chunk`,\n * `commit`, `compact`, `concat`, `conforms`, `constant`, `countBy`, `create`,\n * `curry`, `debounce`, `defaults`, `defaultsDeep`, `defer`, `delay`,\n * `difference`, `differenceBy`, `differenceWith`, `drop`, `dropRight`,\n * `dropRightWhile`, `dropWhile`, `extend`, `extendWith`, `fill`, `filter`,\n * `flatMap`, `flatMapDeep`, `flatMapDepth`, `flatten`, `flattenDeep`,\n * `flattenDepth`, `flip`, `flow`, `flowRight`, `fromPairs`, `functions`,\n * `functionsIn`, `groupBy`, `initial`, `intersection`, `intersectionBy`,\n * `intersectionWith`, `invert`, `invertBy`, `invokeMap`, `iteratee`, `keyBy`,\n * `keys`, `keysIn`, `map`, `mapKeys`, `mapValues`, `matches`, `matchesProperty`,\n * `memoize`, `merge`, `mergeWith`, `method`, `methodOf`, `mixin`, `negate`,\n * `nthArg`, `omit`, `omitBy`, `once`, `orderBy`, `over`, `overArgs`,\n * `overEvery`, `overSome`, `partial`, `partialRight`, `partition`, `pick`,\n * `pickBy`, `plant`, `property`, `propertyOf`, `pull`, `pullAll`, `pullAllBy`,\n * `pullAllWith`, `pullAt`, `push`, `range`, `rangeRight`, `rearg`, `reject`,\n * `remove`, `rest`, `reverse`, `sampleSize`, `set`, `setWith`, `shuffle`,\n * `slice`, `sort`, `sortBy`, `splice`, `spread`, `tail`, `take`, `takeRight`,\n * `takeRightWhile`, `takeWhile`, `tap`, `throttle`, `thru`, `toArray`,\n * `toPairs`, `toPairsIn`, `toPath`, `toPlainObject`, `transform`, `unary`,\n * `union`, `unionBy`, `unionWith`, `uniq`, `uniqBy`, `uniqWith`, `unset`,\n * `unshift`, `unzip`, `unzipWith`, `update`, `updateWith`, `values`,\n * `valuesIn`, `without`, `wrap`, `xor`, `xorBy`, `xorWith`, `zip`,\n * `zipObject`, `zipObjectDeep`, and `zipWith`\n *\n * The wrapper methods that are **not** chainable by default are:\n * `add`, `attempt`, `camelCase`, `capitalize`, `ceil`, `clamp`, `clone`,\n * `cloneDeep`, `cloneDeepWith`, `cloneWith`, `conformsTo`, `deburr`,\n * `defaultTo`, `divide`, `each`, `eachRight`, `endsWith`, `eq`, `escape`,\n * `escapeRegExp`, `every`, `find`, `findIndex`, `findKey`, `findLast`,\n * `findLastIndex`, `findLastKey`, `first`, `floor`, `forEach`, `forEachRight`,\n * `forIn`, `forInRight`, `forOwn`, `forOwnRight`, `get`, `gt`, `gte`, `has`,\n * `hasIn`, `head`, `identity`, `includes`, `indexOf`, `inRange`, `invoke`,\n * `isArguments`, `isArray`, `isArrayBuffer`, `isArrayLike`, `isArrayLikeObject`,\n * `isBoolean`, `isBuffer`, `isDate`, `isElement`, `isEmpty`, `isEqual`,\n * `isEqualWith`, `isError`, `isFinite`, `isFunction`, `isInteger`, `isLength`,\n * `isMap`, `isMatch`, `isMatchWith`, `isNaN`, `isNative`, `isNil`, `isNull`,\n * `isNumber`, `isObject`, `isObjectLike`, `isPlainObject`, `isRegExp`,\n * `isSafeInteger`, `isSet`, `isString`, `isUndefined`, `isTypedArray`,\n * `isWeakMap`, `isWeakSet`, `join`, `kebabCase`, `last`, `lastIndexOf`,\n * `lowerCase`, `lowerFirst`, `lt`, `lte`, `max`, `maxBy`, `mean`, `meanBy`,\n * `min`, `minBy`, `multiply`, `noConflict`, `noop`, `now`, `nth`, `pad`,\n * `padEnd`, `padStart`, `parseInt`, `pop`, `random`, `reduce`, `reduceRight`,\n * `repeat`, `result`, `round`, `runInContext`, `sample`, `shift`, `size`,\n * `snakeCase`, `some`, `sortedIndex`, `sortedIndexBy`, `sortedLastIndex`,\n * `sortedLastIndexBy`, `startCase`, `startsWith`, `stubArray`, `stubFalse`,\n * `stubObject`, `stubString`, `stubTrue`, `subtract`, `sum`, `sumBy`,\n * `template`, `times`, `toFinite`, `toInteger`, `toJSON`, `toLength`,\n * `toLower`, `toNumber`, `toSafeInteger`, `toString`, `toUpper`, `trim`,\n * `trimEnd`, `trimStart`, `truncate`, `unescape`, `uniqueId`, `upperCase`,\n * `upperFirst`, `value`, and `words`\n *\n * @name _\n * @constructor\n * @category Seq\n * @param {*} value The value to wrap in a `lodash` instance.\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * function square(n) {\n * return n * n;\n * }\n *\n * var wrapped = _([1, 2, 3]);\n *\n * // Returns an unwrapped value.\n * wrapped.reduce(_.add);\n * // => 6\n *\n * // Returns a wrapped value.\n * var squares = wrapped.map(square);\n *\n * _.isArray(squares);\n * // => false\n *\n * _.isArray(squares.value());\n * // => true\n */\n function lodash(value) {\n if (isObjectLike(value) && !isArray(value) && !(value instanceof LazyWrapper)) {\n if (value instanceof LodashWrapper) {\n return value;\n }\n if (hasOwnProperty.call(value, '__wrapped__')) {\n return wrapperClone(value);\n }\n }\n return new LodashWrapper(value);\n }\n\n /**\n * The base implementation of `_.create` without support for assigning\n * properties to the created object.\n *\n * @private\n * @param {Object} proto The object to inherit from.\n * @returns {Object} Returns the new object.\n */\n var baseCreate = (function() {\n function object() {}\n return function(proto) {\n if (!isObject(proto)) {\n return {};\n }\n if (objectCreate) {\n return objectCreate(proto);\n }\n object.prototype = proto;\n var result = new object;\n object.prototype = undefined;\n return result;\n };\n }());\n\n /**\n * The function whose prototype chain sequence wrappers inherit from.\n *\n * @private\n */\n function baseLodash() {\n // No operation performed.\n }\n\n /**\n * The base constructor for creating `lodash` wrapper objects.\n *\n * @private\n * @param {*} value The value to wrap.\n * @param {boolean} [chainAll] Enable explicit method chain sequences.\n */\n function LodashWrapper(value, chainAll) {\n this.__wrapped__ = value;\n this.__actions__ = [];\n this.__chain__ = !!chainAll;\n this.__index__ = 0;\n this.__values__ = undefined;\n }\n\n /**\n * By default, the template delimiters used by lodash are like those in\n * embedded Ruby (ERB) as well as ES2015 template strings. Change the\n * following template settings to use alternative delimiters.\n *\n * @static\n * @memberOf _\n * @type {Object}\n */\n lodash.templateSettings = {\n\n /**\n * Used to detect `data` property values to be HTML-escaped.\n *\n * @memberOf _.templateSettings\n * @type {RegExp}\n */\n 'escape': reEscape,\n\n /**\n * Used to detect code to be evaluated.\n *\n * @memberOf _.templateSettings\n * @type {RegExp}\n */\n 'evaluate': reEvaluate,\n\n /**\n * Used to detect `data` property values to inject.\n *\n * @memberOf _.templateSettings\n * @type {RegExp}\n */\n 'interpolate': reInterpolate,\n\n /**\n * Used to reference the data object in the template text.\n *\n * @memberOf _.templateSettings\n * @type {string}\n */\n 'variable': '',\n\n /**\n * Used to import variables into the compiled template.\n *\n * @memberOf _.templateSettings\n * @type {Object}\n */\n 'imports': {\n\n /**\n * A reference to the `lodash` function.\n *\n * @memberOf _.templateSettings.imports\n * @type {Function}\n */\n '_': lodash\n }\n };\n\n // Ensure wrappers are instances of `baseLodash`.\n lodash.prototype = baseLodash.prototype;\n lodash.prototype.constructor = lodash;\n\n LodashWrapper.prototype = baseCreate(baseLodash.prototype);\n LodashWrapper.prototype.constructor = LodashWrapper;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a lazy wrapper object which wraps `value` to enable lazy evaluation.\n *\n * @private\n * @constructor\n * @param {*} value The value to wrap.\n */\n function LazyWrapper(value) {\n this.__wrapped__ = value;\n this.__actions__ = [];\n this.__dir__ = 1;\n this.__filtered__ = false;\n this.__iteratees__ = [];\n this.__takeCount__ = MAX_ARRAY_LENGTH;\n this.__views__ = [];\n }\n\n /**\n * Creates a clone of the lazy wrapper object.\n *\n * @private\n * @name clone\n * @memberOf LazyWrapper\n * @returns {Object} Returns the cloned `LazyWrapper` object.\n */\n function lazyClone() {\n var result = new LazyWrapper(this.__wrapped__);\n result.__actions__ = copyArray(this.__actions__);\n result.__dir__ = this.__dir__;\n result.__filtered__ = this.__filtered__;\n result.__iteratees__ = copyArray(this.__iteratees__);\n result.__takeCount__ = this.__takeCount__;\n result.__views__ = copyArray(this.__views__);\n return result;\n }\n\n /**\n * Reverses the direction of lazy iteration.\n *\n * @private\n * @name reverse\n * @memberOf LazyWrapper\n * @returns {Object} Returns the new reversed `LazyWrapper` object.\n */\n function lazyReverse() {\n if (this.__filtered__) {\n var result = new LazyWrapper(this);\n result.__dir__ = -1;\n result.__filtered__ = true;\n } else {\n result = this.clone();\n result.__dir__ *= -1;\n }\n return result;\n }\n\n /**\n * Extracts the unwrapped value from its lazy wrapper.\n *\n * @private\n * @name value\n * @memberOf LazyWrapper\n * @returns {*} Returns the unwrapped value.\n */\n function lazyValue() {\n var array = this.__wrapped__.value(),\n dir = this.__dir__,\n isArr = isArray(array),\n isRight = dir < 0,\n arrLength = isArr ? array.length : 0,\n view = getView(0, arrLength, this.__views__),\n start = view.start,\n end = view.end,\n length = end - start,\n index = isRight ? end : (start - 1),\n iteratees = this.__iteratees__,\n iterLength = iteratees.length,\n resIndex = 0,\n takeCount = nativeMin(length, this.__takeCount__);\n\n if (!isArr || (!isRight && arrLength == length && takeCount == length)) {\n return baseWrapperValue(array, this.__actions__);\n }\n var result = [];\n\n outer:\n while (length-- && resIndex < takeCount) {\n index += dir;\n\n var iterIndex = -1,\n value = array[index];\n\n while (++iterIndex < iterLength) {\n var data = iteratees[iterIndex],\n iteratee = data.iteratee,\n type = data.type,\n computed = iteratee(value);\n\n if (type == LAZY_MAP_FLAG) {\n value = computed;\n } else if (!computed) {\n if (type == LAZY_FILTER_FLAG) {\n continue outer;\n } else {\n break outer;\n }\n }\n }\n result[resIndex++] = value;\n }\n return result;\n }\n\n // Ensure `LazyWrapper` is an instance of `baseLodash`.\n LazyWrapper.prototype = baseCreate(baseLodash.prototype);\n LazyWrapper.prototype.constructor = LazyWrapper;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a hash object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\n function Hash(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n }\n\n /**\n * Removes all key-value entries from the hash.\n *\n * @private\n * @name clear\n * @memberOf Hash\n */\n function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }\n\n /**\n * Removes `key` and its value from the hash.\n *\n * @private\n * @name delete\n * @memberOf Hash\n * @param {Object} hash The hash to modify.\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\n function hashDelete(key) {\n var result = this.has(key) && delete this.__data__[key];\n this.size -= result ? 1 : 0;\n return result;\n }\n\n /**\n * Gets the hash value for `key`.\n *\n * @private\n * @name get\n * @memberOf Hash\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\n function hashGet(key) {\n var data = this.__data__;\n if (nativeCreate) {\n var result = data[key];\n return result === HASH_UNDEFINED ? undefined : result;\n }\n return hasOwnProperty.call(data, key) ? data[key] : undefined;\n }\n\n /**\n * Checks if a hash value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Hash\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function hashHas(key) {\n var data = this.__data__;\n return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);\n }\n\n /**\n * Sets the hash `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Hash\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the hash instance.\n */\n function hashSet(key, value) {\n var data = this.__data__;\n this.size += this.has(key) ? 0 : 1;\n data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;\n return this;\n }\n\n // Add methods to `Hash`.\n Hash.prototype.clear = hashClear;\n Hash.prototype['delete'] = hashDelete;\n Hash.prototype.get = hashGet;\n Hash.prototype.has = hashHas;\n Hash.prototype.set = hashSet;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates an list cache object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\n function ListCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n }\n\n /**\n * Removes all key-value entries from the list cache.\n *\n * @private\n * @name clear\n * @memberOf ListCache\n */\n function listCacheClear() {\n this.__data__ = [];\n this.size = 0;\n }\n\n /**\n * Removes `key` and its value from the list cache.\n *\n * @private\n * @name delete\n * @memberOf ListCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\n function listCacheDelete(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n return false;\n }\n var lastIndex = data.length - 1;\n if (index == lastIndex) {\n data.pop();\n } else {\n splice.call(data, index, 1);\n }\n --this.size;\n return true;\n }\n\n /**\n * Gets the list cache value for `key`.\n *\n * @private\n * @name get\n * @memberOf ListCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\n function listCacheGet(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n return index < 0 ? undefined : data[index][1];\n }\n\n /**\n * Checks if a list cache value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf ListCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function listCacheHas(key) {\n return assocIndexOf(this.__data__, key) > -1;\n }\n\n /**\n * Sets the list cache `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf ListCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the list cache instance.\n */\n function listCacheSet(key, value) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n ++this.size;\n data.push([key, value]);\n } else {\n data[index][1] = value;\n }\n return this;\n }\n\n // Add methods to `ListCache`.\n ListCache.prototype.clear = listCacheClear;\n ListCache.prototype['delete'] = listCacheDelete;\n ListCache.prototype.get = listCacheGet;\n ListCache.prototype.has = listCacheHas;\n ListCache.prototype.set = listCacheSet;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a map cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\n function MapCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n }\n\n /**\n * Removes all key-value entries from the map.\n *\n * @private\n * @name clear\n * @memberOf MapCache\n */\n function mapCacheClear() {\n this.size = 0;\n this.__data__ = {\n 'hash': new Hash,\n 'map': new (Map || ListCache),\n 'string': new Hash\n };\n }\n\n /**\n * Removes `key` and its value from the map.\n *\n * @private\n * @name delete\n * @memberOf MapCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\n function mapCacheDelete(key) {\n var result = getMapData(this, key)['delete'](key);\n this.size -= result ? 1 : 0;\n return result;\n }\n\n /**\n * Gets the map value for `key`.\n *\n * @private\n * @name get\n * @memberOf MapCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\n function mapCacheGet(key) {\n return getMapData(this, key).get(key);\n }\n\n /**\n * Checks if a map value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf MapCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function mapCacheHas(key) {\n return getMapData(this, key).has(key);\n }\n\n /**\n * Sets the map `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf MapCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the map cache instance.\n */\n function mapCacheSet(key, value) {\n var data = getMapData(this, key),\n size = data.size;\n\n data.set(key, value);\n this.size += data.size == size ? 0 : 1;\n return this;\n }\n\n // Add methods to `MapCache`.\n MapCache.prototype.clear = mapCacheClear;\n MapCache.prototype['delete'] = mapCacheDelete;\n MapCache.prototype.get = mapCacheGet;\n MapCache.prototype.has = mapCacheHas;\n MapCache.prototype.set = mapCacheSet;\n\n /*------------------------------------------------------------------------*/\n\n /**\n *\n * Creates an array cache object to store unique values.\n *\n * @private\n * @constructor\n * @param {Array} [values] The values to cache.\n */\n function SetCache(values) {\n var index = -1,\n length = values == null ? 0 : values.length;\n\n this.__data__ = new MapCache;\n while (++index < length) {\n this.add(values[index]);\n }\n }\n\n /**\n * Adds `value` to the array cache.\n *\n * @private\n * @name add\n * @memberOf SetCache\n * @alias push\n * @param {*} value The value to cache.\n * @returns {Object} Returns the cache instance.\n */\n function setCacheAdd(value) {\n this.__data__.set(value, HASH_UNDEFINED);\n return this;\n }\n\n /**\n * Checks if `value` is in the array cache.\n *\n * @private\n * @name has\n * @memberOf SetCache\n * @param {*} value The value to search for.\n * @returns {number} Returns `true` if `value` is found, else `false`.\n */\n function setCacheHas(value) {\n return this.__data__.has(value);\n }\n\n // Add methods to `SetCache`.\n SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;\n SetCache.prototype.has = setCacheHas;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a stack cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\n function Stack(entries) {\n var data = this.__data__ = new ListCache(entries);\n this.size = data.size;\n }\n\n /**\n * Removes all key-value entries from the stack.\n *\n * @private\n * @name clear\n * @memberOf Stack\n */\n function stackClear() {\n this.__data__ = new ListCache;\n this.size = 0;\n }\n\n /**\n * Removes `key` and its value from the stack.\n *\n * @private\n * @name delete\n * @memberOf Stack\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\n function stackDelete(key) {\n var data = this.__data__,\n result = data['delete'](key);\n\n this.size = data.size;\n return result;\n }\n\n /**\n * Gets the stack value for `key`.\n *\n * @private\n * @name get\n * @memberOf Stack\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\n function stackGet(key) {\n return this.__data__.get(key);\n }\n\n /**\n * Checks if a stack value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Stack\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function stackHas(key) {\n return this.__data__.has(key);\n }\n\n /**\n * Sets the stack `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Stack\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the stack cache instance.\n */\n function stackSet(key, value) {\n var data = this.__data__;\n if (data instanceof ListCache) {\n var pairs = data.__data__;\n if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {\n pairs.push([key, value]);\n this.size = ++data.size;\n return this;\n }\n data = this.__data__ = new MapCache(pairs);\n }\n data.set(key, value);\n this.size = data.size;\n return this;\n }\n\n // Add methods to `Stack`.\n Stack.prototype.clear = stackClear;\n Stack.prototype['delete'] = stackDelete;\n Stack.prototype.get = stackGet;\n Stack.prototype.has = stackHas;\n Stack.prototype.set = stackSet;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates an array of the enumerable property names of the array-like `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @param {boolean} inherited Specify returning inherited property names.\n * @returns {Array} Returns the array of property names.\n */\n function arrayLikeKeys(value, inherited) {\n var isArr = isArray(value),\n isArg = !isArr && isArguments(value),\n isBuff = !isArr && !isArg && isBuffer(value),\n isType = !isArr && !isArg && !isBuff && isTypedArray(value),\n skipIndexes = isArr || isArg || isBuff || isType,\n result = skipIndexes ? baseTimes(value.length, String) : [],\n length = result.length;\n\n for (var key in value) {\n if ((inherited || hasOwnProperty.call(value, key)) &&\n !(skipIndexes && (\n // Safari 9 has enumerable `arguments.length` in strict mode.\n key == 'length' ||\n // Node.js 0.10 has enumerable non-index properties on buffers.\n (isBuff && (key == 'offset' || key == 'parent')) ||\n // PhantomJS 2 has enumerable non-index properties on typed arrays.\n (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||\n // Skip index properties.\n isIndex(key, length)\n ))) {\n result.push(key);\n }\n }\n return result;\n }\n\n /**\n * A specialized version of `_.sample` for arrays.\n *\n * @private\n * @param {Array} array The array to sample.\n * @returns {*} Returns the random element.\n */\n function arraySample(array) {\n var length = array.length;\n return length ? array[baseRandom(0, length - 1)] : undefined;\n }\n\n /**\n * A specialized version of `_.sampleSize` for arrays.\n *\n * @private\n * @param {Array} array The array to sample.\n * @param {number} n The number of elements to sample.\n * @returns {Array} Returns the random elements.\n */\n function arraySampleSize(array, n) {\n return shuffleSelf(copyArray(array), baseClamp(n, 0, array.length));\n }\n\n /**\n * A specialized version of `_.shuffle` for arrays.\n *\n * @private\n * @param {Array} array The array to shuffle.\n * @returns {Array} Returns the new shuffled array.\n */\n function arrayShuffle(array) {\n return shuffleSelf(copyArray(array));\n }\n\n /**\n * This function is like `assignValue` except that it doesn't assign\n * `undefined` values.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\n function assignMergeValue(object, key, value) {\n if ((value !== undefined && !eq(object[key], value)) ||\n (value === undefined && !(key in object))) {\n baseAssignValue(object, key, value);\n }\n }\n\n /**\n * Assigns `value` to `key` of `object` if the existing value is not equivalent\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\n function assignValue(object, key, value) {\n var objValue = object[key];\n if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||\n (value === undefined && !(key in object))) {\n baseAssignValue(object, key, value);\n }\n }\n\n /**\n * Gets the index at which the `key` is found in `array` of key-value pairs.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} key The key to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function assocIndexOf(array, key) {\n var length = array.length;\n while (length--) {\n if (eq(array[length][0], key)) {\n return length;\n }\n }\n return -1;\n }\n\n /**\n * Aggregates elements of `collection` on `accumulator` with keys transformed\n * by `iteratee` and values set by `setter`.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} setter The function to set `accumulator` values.\n * @param {Function} iteratee The iteratee to transform keys.\n * @param {Object} accumulator The initial aggregated object.\n * @returns {Function} Returns `accumulator`.\n */\n function baseAggregator(collection, setter, iteratee, accumulator) {\n baseEach(collection, function(value, key, collection) {\n setter(accumulator, value, iteratee(value), collection);\n });\n return accumulator;\n }\n\n /**\n * The base implementation of `_.assign` without support for multiple sources\n * or `customizer` functions.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @returns {Object} Returns `object`.\n */\n function baseAssign(object, source) {\n return object && copyObject(source, keys(source), object);\n }\n\n /**\n * The base implementation of `_.assignIn` without support for multiple sources\n * or `customizer` functions.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @returns {Object} Returns `object`.\n */\n function baseAssignIn(object, source) {\n return object && copyObject(source, keysIn(source), object);\n }\n\n /**\n * The base implementation of `assignValue` and `assignMergeValue` without\n * value checks.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\n function baseAssignValue(object, key, value) {\n if (key == '__proto__' && defineProperty) {\n defineProperty(object, key, {\n 'configurable': true,\n 'enumerable': true,\n 'value': value,\n 'writable': true\n });\n } else {\n object[key] = value;\n }\n }\n\n /**\n * The base implementation of `_.at` without support for individual paths.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {string[]} paths The property paths to pick.\n * @returns {Array} Returns the picked elements.\n */\n function baseAt(object, paths) {\n var index = -1,\n length = paths.length,\n result = Array(length),\n skip = object == null;\n\n while (++index < length) {\n result[index] = skip ? undefined : get(object, paths[index]);\n }\n return result;\n }\n\n /**\n * The base implementation of `_.clamp` which doesn't coerce arguments.\n *\n * @private\n * @param {number} number The number to clamp.\n * @param {number} [lower] The lower bound.\n * @param {number} upper The upper bound.\n * @returns {number} Returns the clamped number.\n */\n function baseClamp(number, lower, upper) {\n if (number === number) {\n if (upper !== undefined) {\n number = number <= upper ? number : upper;\n }\n if (lower !== undefined) {\n number = number >= lower ? number : lower;\n }\n }\n return number;\n }\n\n /**\n * The base implementation of `_.clone` and `_.cloneDeep` which tracks\n * traversed objects.\n *\n * @private\n * @param {*} value The value to clone.\n * @param {boolean} bitmask The bitmask flags.\n * 1 - Deep clone\n * 2 - Flatten inherited properties\n * 4 - Clone symbols\n * @param {Function} [customizer] The function to customize cloning.\n * @param {string} [key] The key of `value`.\n * @param {Object} [object] The parent object of `value`.\n * @param {Object} [stack] Tracks traversed objects and their clone counterparts.\n * @returns {*} Returns the cloned value.\n */\n function baseClone(value, bitmask, customizer, key, object, stack) {\n var result,\n isDeep = bitmask & CLONE_DEEP_FLAG,\n isFlat = bitmask & CLONE_FLAT_FLAG,\n isFull = bitmask & CLONE_SYMBOLS_FLAG;\n\n if (customizer) {\n result = object ? customizer(value, key, object, stack) : customizer(value);\n }\n if (result !== undefined) {\n return result;\n }\n if (!isObject(value)) {\n return value;\n }\n var isArr = isArray(value);\n if (isArr) {\n result = initCloneArray(value);\n if (!isDeep) {\n return copyArray(value, result);\n }\n } else {\n var tag = getTag(value),\n isFunc = tag == funcTag || tag == genTag;\n\n if (isBuffer(value)) {\n return cloneBuffer(value, isDeep);\n }\n if (tag == objectTag || tag == argsTag || (isFunc && !object)) {\n result = (isFlat || isFunc) ? {} : initCloneObject(value);\n if (!isDeep) {\n return isFlat\n ? copySymbolsIn(value, baseAssignIn(result, value))\n : copySymbols(value, baseAssign(result, value));\n }\n } else {\n if (!cloneableTags[tag]) {\n return object ? value : {};\n }\n result = initCloneByTag(value, tag, isDeep);\n }\n }\n // Check for circular references and return its corresponding clone.\n stack || (stack = new Stack);\n var stacked = stack.get(value);\n if (stacked) {\n return stacked;\n }\n stack.set(value, result);\n\n if (isSet(value)) {\n value.forEach(function(subValue) {\n result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));\n });\n\n return result;\n }\n\n if (isMap(value)) {\n value.forEach(function(subValue, key) {\n result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));\n });\n\n return result;\n }\n\n var keysFunc = isFull\n ? (isFlat ? getAllKeysIn : getAllKeys)\n : (isFlat ? keysIn : keys);\n\n var props = isArr ? undefined : keysFunc(value);\n arrayEach(props || value, function(subValue, key) {\n if (props) {\n key = subValue;\n subValue = value[key];\n }\n // Recursively populate clone (susceptible to call stack limits).\n assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));\n });\n return result;\n }\n\n /**\n * The base implementation of `_.conforms` which doesn't clone `source`.\n *\n * @private\n * @param {Object} source The object of property predicates to conform to.\n * @returns {Function} Returns the new spec function.\n */\n function baseConforms(source) {\n var props = keys(source);\n return function(object) {\n return baseConformsTo(object, source, props);\n };\n }\n\n /**\n * The base implementation of `_.conformsTo` which accepts `props` to check.\n *\n * @private\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property predicates to conform to.\n * @returns {boolean} Returns `true` if `object` conforms, else `false`.\n */\n function baseConformsTo(object, source, props) {\n var length = props.length;\n if (object == null) {\n return !length;\n }\n object = Object(object);\n while (length--) {\n var key = props[length],\n predicate = source[key],\n value = object[key];\n\n if ((value === undefined && !(key in object)) || !predicate(value)) {\n return false;\n }\n }\n return true;\n }\n\n /**\n * The base implementation of `_.delay` and `_.defer` which accepts `args`\n * to provide to `func`.\n *\n * @private\n * @param {Function} func The function to delay.\n * @param {number} wait The number of milliseconds to delay invocation.\n * @param {Array} args The arguments to provide to `func`.\n * @returns {number|Object} Returns the timer id or timeout object.\n */\n function baseDelay(func, wait, args) {\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n return setTimeout(function() { func.apply(undefined, args); }, wait);\n }\n\n /**\n * The base implementation of methods like `_.difference` without support\n * for excluding multiple arrays or iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Array} values The values to exclude.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of filtered values.\n */\n function baseDifference(array, values, iteratee, comparator) {\n var index = -1,\n includes = arrayIncludes,\n isCommon = true,\n length = array.length,\n result = [],\n valuesLength = values.length;\n\n if (!length) {\n return result;\n }\n if (iteratee) {\n values = arrayMap(values, baseUnary(iteratee));\n }\n if (comparator) {\n includes = arrayIncludesWith;\n isCommon = false;\n }\n else if (values.length >= LARGE_ARRAY_SIZE) {\n includes = cacheHas;\n isCommon = false;\n values = new SetCache(values);\n }\n outer:\n while (++index < length) {\n var value = array[index],\n computed = iteratee == null ? value : iteratee(value);\n\n value = (comparator || value !== 0) ? value : 0;\n if (isCommon && computed === computed) {\n var valuesIndex = valuesLength;\n while (valuesIndex--) {\n if (values[valuesIndex] === computed) {\n continue outer;\n }\n }\n result.push(value);\n }\n else if (!includes(values, computed, comparator)) {\n result.push(value);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.forEach` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n */\n var baseEach = createBaseEach(baseForOwn);\n\n /**\n * The base implementation of `_.forEachRight` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n */\n var baseEachRight = createBaseEach(baseForOwnRight, true);\n\n /**\n * The base implementation of `_.every` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if all elements pass the predicate check,\n * else `false`\n */\n function baseEvery(collection, predicate) {\n var result = true;\n baseEach(collection, function(value, index, collection) {\n result = !!predicate(value, index, collection);\n return result;\n });\n return result;\n }\n\n /**\n * The base implementation of methods like `_.max` and `_.min` which accepts a\n * `comparator` to determine the extremum value.\n *\n * @private\n * @param {Array} array The array to iterate over.\n * @param {Function} iteratee The iteratee invoked per iteration.\n * @param {Function} comparator The comparator used to compare values.\n * @returns {*} Returns the extremum value.\n */\n function baseExtremum(array, iteratee, comparator) {\n var index = -1,\n length = array.length;\n\n while (++index < length) {\n var value = array[index],\n current = iteratee(value);\n\n if (current != null && (computed === undefined\n ? (current === current && !isSymbol(current))\n : comparator(current, computed)\n )) {\n var computed = current,\n result = value;\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.fill` without an iteratee call guard.\n *\n * @private\n * @param {Array} array The array to fill.\n * @param {*} value The value to fill `array` with.\n * @param {number} [start=0] The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns `array`.\n */\n function baseFill(array, value, start, end) {\n var length = array.length;\n\n start = toInteger(start);\n if (start < 0) {\n start = -start > length ? 0 : (length + start);\n }\n end = (end === undefined || end > length) ? length : toInteger(end);\n if (end < 0) {\n end += length;\n }\n end = start > end ? 0 : toLength(end);\n while (start < end) {\n array[start++] = value;\n }\n return array;\n }\n\n /**\n * The base implementation of `_.filter` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\n function baseFilter(collection, predicate) {\n var result = [];\n baseEach(collection, function(value, index, collection) {\n if (predicate(value, index, collection)) {\n result.push(value);\n }\n });\n return result;\n }\n\n /**\n * The base implementation of `_.flatten` with support for restricting flattening.\n *\n * @private\n * @param {Array} array The array to flatten.\n * @param {number} depth The maximum recursion depth.\n * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.\n * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.\n * @param {Array} [result=[]] The initial result value.\n * @returns {Array} Returns the new flattened array.\n */\n function baseFlatten(array, depth, predicate, isStrict, result) {\n var index = -1,\n length = array.length;\n\n predicate || (predicate = isFlattenable);\n result || (result = []);\n\n while (++index < length) {\n var value = array[index];\n if (depth > 0 && predicate(value)) {\n if (depth > 1) {\n // Recursively flatten arrays (susceptible to call stack limits).\n baseFlatten(value, depth - 1, predicate, isStrict, result);\n } else {\n arrayPush(result, value);\n }\n } else if (!isStrict) {\n result[result.length] = value;\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `baseForOwn` which iterates over `object`\n * properties returned by `keysFunc` and invokes `iteratee` for each property.\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @returns {Object} Returns `object`.\n */\n var baseFor = createBaseFor();\n\n /**\n * This function is like `baseFor` except that it iterates over properties\n * in the opposite order.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @returns {Object} Returns `object`.\n */\n var baseForRight = createBaseFor(true);\n\n /**\n * The base implementation of `_.forOwn` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Object} Returns `object`.\n */\n function baseForOwn(object, iteratee) {\n return object && baseFor(object, iteratee, keys);\n }\n\n /**\n * The base implementation of `_.forOwnRight` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Object} Returns `object`.\n */\n function baseForOwnRight(object, iteratee) {\n return object && baseForRight(object, iteratee, keys);\n }\n\n /**\n * The base implementation of `_.functions` which creates an array of\n * `object` function property names filtered from `props`.\n *\n * @private\n * @param {Object} object The object to inspect.\n * @param {Array} props The property names to filter.\n * @returns {Array} Returns the function names.\n */\n function baseFunctions(object, props) {\n return arrayFilter(props, function(key) {\n return isFunction(object[key]);\n });\n }\n\n /**\n * The base implementation of `_.get` without support for default values.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @returns {*} Returns the resolved value.\n */\n function baseGet(object, path) {\n path = castPath(path, object);\n\n var index = 0,\n length = path.length;\n\n while (object != null && index < length) {\n object = object[toKey(path[index++])];\n }\n return (index && index == length) ? object : undefined;\n }\n\n /**\n * The base implementation of `getAllKeys` and `getAllKeysIn` which uses\n * `keysFunc` and `symbolsFunc` to get the enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @param {Function} symbolsFunc The function to get the symbols of `object`.\n * @returns {Array} Returns the array of property names and symbols.\n */\n function baseGetAllKeys(object, keysFunc, symbolsFunc) {\n var result = keysFunc(object);\n return isArray(object) ? result : arrayPush(result, symbolsFunc(object));\n }\n\n /**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\n function baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n }\n\n /**\n * The base implementation of `_.gt` which doesn't coerce arguments.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is greater than `other`,\n * else `false`.\n */\n function baseGt(value, other) {\n return value > other;\n }\n\n /**\n * The base implementation of `_.has` without support for deep paths.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {Array|string} key The key to check.\n * @returns {boolean} Returns `true` if `key` exists, else `false`.\n */\n function baseHas(object, key) {\n return object != null && hasOwnProperty.call(object, key);\n }\n\n /**\n * The base implementation of `_.hasIn` without support for deep paths.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {Array|string} key The key to check.\n * @returns {boolean} Returns `true` if `key` exists, else `false`.\n */\n function baseHasIn(object, key) {\n return object != null && key in Object(object);\n }\n\n /**\n * The base implementation of `_.inRange` which doesn't coerce arguments.\n *\n * @private\n * @param {number} number The number to check.\n * @param {number} start The start of the range.\n * @param {number} end The end of the range.\n * @returns {boolean} Returns `true` if `number` is in the range, else `false`.\n */\n function baseInRange(number, start, end) {\n return number >= nativeMin(start, end) && number < nativeMax(start, end);\n }\n\n /**\n * The base implementation of methods like `_.intersection`, without support\n * for iteratee shorthands, that accepts an array of arrays to inspect.\n *\n * @private\n * @param {Array} arrays The arrays to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of shared values.\n */\n function baseIntersection(arrays, iteratee, comparator) {\n var includes = comparator ? arrayIncludesWith : arrayIncludes,\n length = arrays[0].length,\n othLength = arrays.length,\n othIndex = othLength,\n caches = Array(othLength),\n maxLength = Infinity,\n result = [];\n\n while (othIndex--) {\n var array = arrays[othIndex];\n if (othIndex && iteratee) {\n array = arrayMap(array, baseUnary(iteratee));\n }\n maxLength = nativeMin(array.length, maxLength);\n caches[othIndex] = !comparator && (iteratee || (length >= 120 && array.length >= 120))\n ? new SetCache(othIndex && array)\n : undefined;\n }\n array = arrays[0];\n\n var index = -1,\n seen = caches[0];\n\n outer:\n while (++index < length && result.length < maxLength) {\n var value = array[index],\n computed = iteratee ? iteratee(value) : value;\n\n value = (comparator || value !== 0) ? value : 0;\n if (!(seen\n ? cacheHas(seen, computed)\n : includes(result, computed, comparator)\n )) {\n othIndex = othLength;\n while (--othIndex) {\n var cache = caches[othIndex];\n if (!(cache\n ? cacheHas(cache, computed)\n : includes(arrays[othIndex], computed, comparator))\n ) {\n continue outer;\n }\n }\n if (seen) {\n seen.push(computed);\n }\n result.push(value);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.invert` and `_.invertBy` which inverts\n * `object` with values transformed by `iteratee` and set by `setter`.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} setter The function to set `accumulator` values.\n * @param {Function} iteratee The iteratee to transform values.\n * @param {Object} accumulator The initial inverted object.\n * @returns {Function} Returns `accumulator`.\n */\n function baseInverter(object, setter, iteratee, accumulator) {\n baseForOwn(object, function(value, key, object) {\n setter(accumulator, iteratee(value), key, object);\n });\n return accumulator;\n }\n\n /**\n * The base implementation of `_.invoke` without support for individual\n * method arguments.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the method to invoke.\n * @param {Array} args The arguments to invoke the method with.\n * @returns {*} Returns the result of the invoked method.\n */\n function baseInvoke(object, path, args) {\n path = castPath(path, object);\n object = parent(object, path);\n var func = object == null ? object : object[toKey(last(path))];\n return func == null ? undefined : apply(func, object, args);\n }\n\n /**\n * The base implementation of `_.isArguments`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n */\n function baseIsArguments(value) {\n return isObjectLike(value) && baseGetTag(value) == argsTag;\n }\n\n /**\n * The base implementation of `_.isArrayBuffer` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array buffer, else `false`.\n */\n function baseIsArrayBuffer(value) {\n return isObjectLike(value) && baseGetTag(value) == arrayBufferTag;\n }\n\n /**\n * The base implementation of `_.isDate` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a date object, else `false`.\n */\n function baseIsDate(value) {\n return isObjectLike(value) && baseGetTag(value) == dateTag;\n }\n\n /**\n * The base implementation of `_.isEqual` which supports partial comparisons\n * and tracks traversed objects.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @param {boolean} bitmask The bitmask flags.\n * 1 - Unordered comparison\n * 2 - Partial comparison\n * @param {Function} [customizer] The function to customize comparisons.\n * @param {Object} [stack] Tracks traversed `value` and `other` objects.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n */\n function baseIsEqual(value, other, bitmask, customizer, stack) {\n if (value === other) {\n return true;\n }\n if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {\n return value !== value && other !== other;\n }\n return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);\n }\n\n /**\n * A specialized version of `baseIsEqual` for arrays and objects which performs\n * deep comparisons and tracks traversed objects enabling objects with circular\n * references to be compared.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} [stack] Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\n function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {\n var objIsArr = isArray(object),\n othIsArr = isArray(other),\n objTag = objIsArr ? arrayTag : getTag(object),\n othTag = othIsArr ? arrayTag : getTag(other);\n\n objTag = objTag == argsTag ? objectTag : objTag;\n othTag = othTag == argsTag ? objectTag : othTag;\n\n var objIsObj = objTag == objectTag,\n othIsObj = othTag == objectTag,\n isSameTag = objTag == othTag;\n\n if (isSameTag && isBuffer(object)) {\n if (!isBuffer(other)) {\n return false;\n }\n objIsArr = true;\n objIsObj = false;\n }\n if (isSameTag && !objIsObj) {\n stack || (stack = new Stack);\n return (objIsArr || isTypedArray(object))\n ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)\n : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);\n }\n if (!(bitmask & COMPARE_PARTIAL_FLAG)) {\n var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),\n othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');\n\n if (objIsWrapped || othIsWrapped) {\n var objUnwrapped = objIsWrapped ? object.value() : object,\n othUnwrapped = othIsWrapped ? other.value() : other;\n\n stack || (stack = new Stack);\n return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);\n }\n }\n if (!isSameTag) {\n return false;\n }\n stack || (stack = new Stack);\n return equalObjects(object, other, bitmask, customizer, equalFunc, stack);\n }\n\n /**\n * The base implementation of `_.isMap` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a map, else `false`.\n */\n function baseIsMap(value) {\n return isObjectLike(value) && getTag(value) == mapTag;\n }\n\n /**\n * The base implementation of `_.isMatch` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property values to match.\n * @param {Array} matchData The property names, values, and compare flags to match.\n * @param {Function} [customizer] The function to customize comparisons.\n * @returns {boolean} Returns `true` if `object` is a match, else `false`.\n */\n function baseIsMatch(object, source, matchData, customizer) {\n var index = matchData.length,\n length = index,\n noCustomizer = !customizer;\n\n if (object == null) {\n return !length;\n }\n object = Object(object);\n while (index--) {\n var data = matchData[index];\n if ((noCustomizer && data[2])\n ? data[1] !== object[data[0]]\n : !(data[0] in object)\n ) {\n return false;\n }\n }\n while (++index < length) {\n data = matchData[index];\n var key = data[0],\n objValue = object[key],\n srcValue = data[1];\n\n if (noCustomizer && data[2]) {\n if (objValue === undefined && !(key in object)) {\n return false;\n }\n } else {\n var stack = new Stack;\n if (customizer) {\n var result = customizer(objValue, srcValue, key, object, source, stack);\n }\n if (!(result === undefined\n ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack)\n : result\n )) {\n return false;\n }\n }\n }\n return true;\n }\n\n /**\n * The base implementation of `_.isNative` without bad shim checks.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n * else `false`.\n */\n function baseIsNative(value) {\n if (!isObject(value) || isMasked(value)) {\n return false;\n }\n var pattern = isFunction(value) ? reIsNative : reIsHostCtor;\n return pattern.test(toSource(value));\n }\n\n /**\n * The base implementation of `_.isRegExp` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.\n */\n function baseIsRegExp(value) {\n return isObjectLike(value) && baseGetTag(value) == regexpTag;\n }\n\n /**\n * The base implementation of `_.isSet` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a set, else `false`.\n */\n function baseIsSet(value) {\n return isObjectLike(value) && getTag(value) == setTag;\n }\n\n /**\n * The base implementation of `_.isTypedArray` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n */\n function baseIsTypedArray(value) {\n return isObjectLike(value) &&\n isLength(value.length) && !!typedArrayTags[baseGetTag(value)];\n }\n\n /**\n * The base implementation of `_.iteratee`.\n *\n * @private\n * @param {*} [value=_.identity] The value to convert to an iteratee.\n * @returns {Function} Returns the iteratee.\n */\n function baseIteratee(value) {\n // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.\n // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.\n if (typeof value == 'function') {\n return value;\n }\n if (value == null) {\n return identity;\n }\n if (typeof value == 'object') {\n return isArray(value)\n ? baseMatchesProperty(value[0], value[1])\n : baseMatches(value);\n }\n return property(value);\n }\n\n /**\n * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\n function baseKeys(object) {\n if (!isPrototype(object)) {\n return nativeKeys(object);\n }\n var result = [];\n for (var key in Object(object)) {\n if (hasOwnProperty.call(object, key) && key != 'constructor') {\n result.push(key);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\n function baseKeysIn(object) {\n if (!isObject(object)) {\n return nativeKeysIn(object);\n }\n var isProto = isPrototype(object),\n result = [];\n\n for (var key in object) {\n if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {\n result.push(key);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.lt` which doesn't coerce arguments.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is less than `other`,\n * else `false`.\n */\n function baseLt(value, other) {\n return value < other;\n }\n\n /**\n * The base implementation of `_.map` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\n function baseMap(collection, iteratee) {\n var index = -1,\n result = isArrayLike(collection) ? Array(collection.length) : [];\n\n baseEach(collection, function(value, key, collection) {\n result[++index] = iteratee(value, key, collection);\n });\n return result;\n }\n\n /**\n * The base implementation of `_.matches` which doesn't clone `source`.\n *\n * @private\n * @param {Object} source The object of property values to match.\n * @returns {Function} Returns the new spec function.\n */\n function baseMatches(source) {\n var matchData = getMatchData(source);\n if (matchData.length == 1 && matchData[0][2]) {\n return matchesStrictComparable(matchData[0][0], matchData[0][1]);\n }\n return function(object) {\n return object === source || baseIsMatch(object, source, matchData);\n };\n }\n\n /**\n * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.\n *\n * @private\n * @param {string} path The path of the property to get.\n * @param {*} srcValue The value to match.\n * @returns {Function} Returns the new spec function.\n */\n function baseMatchesProperty(path, srcValue) {\n if (isKey(path) && isStrictComparable(srcValue)) {\n return matchesStrictComparable(toKey(path), srcValue);\n }\n return function(object) {\n var objValue = get(object, path);\n return (objValue === undefined && objValue === srcValue)\n ? hasIn(object, path)\n : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);\n };\n }\n\n /**\n * The base implementation of `_.merge` without support for multiple sources.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @param {number} srcIndex The index of `source`.\n * @param {Function} [customizer] The function to customize merged values.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n */\n function baseMerge(object, source, srcIndex, customizer, stack) {\n if (object === source) {\n return;\n }\n baseFor(source, function(srcValue, key) {\n if (isObject(srcValue)) {\n stack || (stack = new Stack);\n baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);\n }\n else {\n var newValue = customizer\n ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)\n : undefined;\n\n if (newValue === undefined) {\n newValue = srcValue;\n }\n assignMergeValue(object, key, newValue);\n }\n }, keysIn);\n }\n\n /**\n * A specialized version of `baseMerge` for arrays and objects which performs\n * deep merges and tracks traversed objects enabling objects with circular\n * references to be merged.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @param {string} key The key of the value to merge.\n * @param {number} srcIndex The index of `source`.\n * @param {Function} mergeFunc The function to merge values.\n * @param {Function} [customizer] The function to customize assigned values.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n */\n function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {\n var objValue = safeGet(object, key),\n srcValue = safeGet(source, key),\n stacked = stack.get(srcValue);\n\n if (stacked) {\n assignMergeValue(object, key, stacked);\n return;\n }\n var newValue = customizer\n ? customizer(objValue, srcValue, (key + ''), object, source, stack)\n : undefined;\n\n var isCommon = newValue === undefined;\n\n if (isCommon) {\n var isArr = isArray(srcValue),\n isBuff = !isArr && isBuffer(srcValue),\n isTyped = !isArr && !isBuff && isTypedArray(srcValue);\n\n newValue = srcValue;\n if (isArr || isBuff || isTyped) {\n if (isArray(objValue)) {\n newValue = objValue;\n }\n else if (isArrayLikeObject(objValue)) {\n newValue = copyArray(objValue);\n }\n else if (isBuff) {\n isCommon = false;\n newValue = cloneBuffer(srcValue, true);\n }\n else if (isTyped) {\n isCommon = false;\n newValue = cloneTypedArray(srcValue, true);\n }\n else {\n newValue = [];\n }\n }\n else if (isPlainObject(srcValue) || isArguments(srcValue)) {\n newValue = objValue;\n if (isArguments(objValue)) {\n newValue = toPlainObject(objValue);\n }\n else if (!isObject(objValue) || (srcIndex && isFunction(objValue))) {\n newValue = initCloneObject(srcValue);\n }\n }\n else {\n isCommon = false;\n }\n }\n if (isCommon) {\n // Recursively merge objects and arrays (susceptible to call stack limits).\n stack.set(srcValue, newValue);\n mergeFunc(newValue, srcValue, srcIndex, customizer, stack);\n stack['delete'](srcValue);\n }\n assignMergeValue(object, key, newValue);\n }\n\n /**\n * The base implementation of `_.nth` which doesn't coerce arguments.\n *\n * @private\n * @param {Array} array The array to query.\n * @param {number} n The index of the element to return.\n * @returns {*} Returns the nth element of `array`.\n */\n function baseNth(array, n) {\n var length = array.length;\n if (!length) {\n return;\n }\n n += n < 0 ? length : 0;\n return isIndex(n, length) ? array[n] : undefined;\n }\n\n /**\n * The base implementation of `_.orderBy` without param guards.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by.\n * @param {string[]} orders The sort orders of `iteratees`.\n * @returns {Array} Returns the new sorted array.\n */\n function baseOrderBy(collection, iteratees, orders) {\n var index = -1;\n iteratees = arrayMap(iteratees.length ? iteratees : [identity], baseUnary(getIteratee()));\n\n var result = baseMap(collection, function(value, key, collection) {\n var criteria = arrayMap(iteratees, function(iteratee) {\n return iteratee(value);\n });\n return { 'criteria': criteria, 'index': ++index, 'value': value };\n });\n\n return baseSortBy(result, function(object, other) {\n return compareMultiple(object, other, orders);\n });\n }\n\n /**\n * The base implementation of `_.pick` without support for individual\n * property identifiers.\n *\n * @private\n * @param {Object} object The source object.\n * @param {string[]} paths The property paths to pick.\n * @returns {Object} Returns the new object.\n */\n function basePick(object, paths) {\n return basePickBy(object, paths, function(value, path) {\n return hasIn(object, path);\n });\n }\n\n /**\n * The base implementation of `_.pickBy` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The source object.\n * @param {string[]} paths The property paths to pick.\n * @param {Function} predicate The function invoked per property.\n * @returns {Object} Returns the new object.\n */\n function basePickBy(object, paths, predicate) {\n var index = -1,\n length = paths.length,\n result = {};\n\n while (++index < length) {\n var path = paths[index],\n value = baseGet(object, path);\n\n if (predicate(value, path)) {\n baseSet(result, castPath(path, object), value);\n }\n }\n return result;\n }\n\n /**\n * A specialized version of `baseProperty` which supports deep paths.\n *\n * @private\n * @param {Array|string} path The path of the property to get.\n * @returns {Function} Returns the new accessor function.\n */\n function basePropertyDeep(path) {\n return function(object) {\n return baseGet(object, path);\n };\n }\n\n /**\n * The base implementation of `_.pullAllBy` without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {Array} values The values to remove.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns `array`.\n */\n function basePullAll(array, values, iteratee, comparator) {\n var indexOf = comparator ? baseIndexOfWith : baseIndexOf,\n index = -1,\n length = values.length,\n seen = array;\n\n if (array === values) {\n values = copyArray(values);\n }\n if (iteratee) {\n seen = arrayMap(array, baseUnary(iteratee));\n }\n while (++index < length) {\n var fromIndex = 0,\n value = values[index],\n computed = iteratee ? iteratee(value) : value;\n\n while ((fromIndex = indexOf(seen, computed, fromIndex, comparator)) > -1) {\n if (seen !== array) {\n splice.call(seen, fromIndex, 1);\n }\n splice.call(array, fromIndex, 1);\n }\n }\n return array;\n }\n\n /**\n * The base implementation of `_.pullAt` without support for individual\n * indexes or capturing the removed elements.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {number[]} indexes The indexes of elements to remove.\n * @returns {Array} Returns `array`.\n */\n function basePullAt(array, indexes) {\n var length = array ? indexes.length : 0,\n lastIndex = length - 1;\n\n while (length--) {\n var index = indexes[length];\n if (length == lastIndex || index !== previous) {\n var previous = index;\n if (isIndex(index)) {\n splice.call(array, index, 1);\n } else {\n baseUnset(array, index);\n }\n }\n }\n return array;\n }\n\n /**\n * The base implementation of `_.random` without support for returning\n * floating-point numbers.\n *\n * @private\n * @param {number} lower The lower bound.\n * @param {number} upper The upper bound.\n * @returns {number} Returns the random number.\n */\n function baseRandom(lower, upper) {\n return lower + nativeFloor(nativeRandom() * (upper - lower + 1));\n }\n\n /**\n * The base implementation of `_.range` and `_.rangeRight` which doesn't\n * coerce arguments.\n *\n * @private\n * @param {number} start The start of the range.\n * @param {number} end The end of the range.\n * @param {number} step The value to increment or decrement by.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Array} Returns the range of numbers.\n */\n function baseRange(start, end, step, fromRight) {\n var index = -1,\n length = nativeMax(nativeCeil((end - start) / (step || 1)), 0),\n result = Array(length);\n\n while (length--) {\n result[fromRight ? length : ++index] = start;\n start += step;\n }\n return result;\n }\n\n /**\n * The base implementation of `_.repeat` which doesn't coerce arguments.\n *\n * @private\n * @param {string} string The string to repeat.\n * @param {number} n The number of times to repeat the string.\n * @returns {string} Returns the repeated string.\n */\n function baseRepeat(string, n) {\n var result = '';\n if (!string || n < 1 || n > MAX_SAFE_INTEGER) {\n return result;\n }\n // Leverage the exponentiation by squaring algorithm for a faster repeat.\n // See https://en.wikipedia.org/wiki/Exponentiation_by_squaring for more details.\n do {\n if (n % 2) {\n result += string;\n }\n n = nativeFloor(n / 2);\n if (n) {\n string += string;\n }\n } while (n);\n\n return result;\n }\n\n /**\n * The base implementation of `_.rest` which doesn't validate or coerce arguments.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @returns {Function} Returns the new function.\n */\n function baseRest(func, start) {\n return setToString(overRest(func, start, identity), func + '');\n }\n\n /**\n * The base implementation of `_.sample`.\n *\n * @private\n * @param {Array|Object} collection The collection to sample.\n * @returns {*} Returns the random element.\n */\n function baseSample(collection) {\n return arraySample(values(collection));\n }\n\n /**\n * The base implementation of `_.sampleSize` without param guards.\n *\n * @private\n * @param {Array|Object} collection The collection to sample.\n * @param {number} n The number of elements to sample.\n * @returns {Array} Returns the random elements.\n */\n function baseSampleSize(collection, n) {\n var array = values(collection);\n return shuffleSelf(array, baseClamp(n, 0, array.length));\n }\n\n /**\n * The base implementation of `_.set`.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {*} value The value to set.\n * @param {Function} [customizer] The function to customize path creation.\n * @returns {Object} Returns `object`.\n */\n function baseSet(object, path, value, customizer) {\n if (!isObject(object)) {\n return object;\n }\n path = castPath(path, object);\n\n var index = -1,\n length = path.length,\n lastIndex = length - 1,\n nested = object;\n\n while (nested != null && ++index < length) {\n var key = toKey(path[index]),\n newValue = value;\n\n if (index != lastIndex) {\n var objValue = nested[key];\n newValue = customizer ? customizer(objValue, key, nested) : undefined;\n if (newValue === undefined) {\n newValue = isObject(objValue)\n ? objValue\n : (isIndex(path[index + 1]) ? [] : {});\n }\n }\n assignValue(nested, key, newValue);\n nested = nested[key];\n }\n return object;\n }\n\n /**\n * The base implementation of `setData` without support for hot loop shorting.\n *\n * @private\n * @param {Function} func The function to associate metadata with.\n * @param {*} data The metadata.\n * @returns {Function} Returns `func`.\n */\n var baseSetData = !metaMap ? identity : function(func, data) {\n metaMap.set(func, data);\n return func;\n };\n\n /**\n * The base implementation of `setToString` without support for hot loop shorting.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\n var baseSetToString = !defineProperty ? identity : function(func, string) {\n return defineProperty(func, 'toString', {\n 'configurable': true,\n 'enumerable': false,\n 'value': constant(string),\n 'writable': true\n });\n };\n\n /**\n * The base implementation of `_.shuffle`.\n *\n * @private\n * @param {Array|Object} collection The collection to shuffle.\n * @returns {Array} Returns the new shuffled array.\n */\n function baseShuffle(collection) {\n return shuffleSelf(values(collection));\n }\n\n /**\n * The base implementation of `_.slice` without an iteratee call guard.\n *\n * @private\n * @param {Array} array The array to slice.\n * @param {number} [start=0] The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns the slice of `array`.\n */\n function baseSlice(array, start, end) {\n var index = -1,\n length = array.length;\n\n if (start < 0) {\n start = -start > length ? 0 : (length + start);\n }\n end = end > length ? length : end;\n if (end < 0) {\n end += length;\n }\n length = start > end ? 0 : ((end - start) >>> 0);\n start >>>= 0;\n\n var result = Array(length);\n while (++index < length) {\n result[index] = array[index + start];\n }\n return result;\n }\n\n /**\n * The base implementation of `_.some` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if any element passes the predicate check,\n * else `false`.\n */\n function baseSome(collection, predicate) {\n var result;\n\n baseEach(collection, function(value, index, collection) {\n result = predicate(value, index, collection);\n return !result;\n });\n return !!result;\n }\n\n /**\n * The base implementation of `_.sortedIndex` and `_.sortedLastIndex` which\n * performs a binary search of `array` to determine the index at which `value`\n * should be inserted into `array` in order to maintain its sort order.\n *\n * @private\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @param {boolean} [retHighest] Specify returning the highest qualified index.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n */\n function baseSortedIndex(array, value, retHighest) {\n var low = 0,\n high = array == null ? low : array.length;\n\n if (typeof value == 'number' && value === value && high <= HALF_MAX_ARRAY_LENGTH) {\n while (low < high) {\n var mid = (low + high) >>> 1,\n computed = array[mid];\n\n if (computed !== null && !isSymbol(computed) &&\n (retHighest ? (computed <= value) : (computed < value))) {\n low = mid + 1;\n } else {\n high = mid;\n }\n }\n return high;\n }\n return baseSortedIndexBy(array, value, identity, retHighest);\n }\n\n /**\n * The base implementation of `_.sortedIndexBy` and `_.sortedLastIndexBy`\n * which invokes `iteratee` for `value` and each element of `array` to compute\n * their sort ranking. The iteratee is invoked with one argument; (value).\n *\n * @private\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @param {Function} iteratee The iteratee invoked per element.\n * @param {boolean} [retHighest] Specify returning the highest qualified index.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n */\n function baseSortedIndexBy(array, value, iteratee, retHighest) {\n value = iteratee(value);\n\n var low = 0,\n high = array == null ? 0 : array.length,\n valIsNaN = value !== value,\n valIsNull = value === null,\n valIsSymbol = isSymbol(value),\n valIsUndefined = value === undefined;\n\n while (low < high) {\n var mid = nativeFloor((low + high) / 2),\n computed = iteratee(array[mid]),\n othIsDefined = computed !== undefined,\n othIsNull = computed === null,\n othIsReflexive = computed === computed,\n othIsSymbol = isSymbol(computed);\n\n if (valIsNaN) {\n var setLow = retHighest || othIsReflexive;\n } else if (valIsUndefined) {\n setLow = othIsReflexive && (retHighest || othIsDefined);\n } else if (valIsNull) {\n setLow = othIsReflexive && othIsDefined && (retHighest || !othIsNull);\n } else if (valIsSymbol) {\n setLow = othIsReflexive && othIsDefined && !othIsNull && (retHighest || !othIsSymbol);\n } else if (othIsNull || othIsSymbol) {\n setLow = false;\n } else {\n setLow = retHighest ? (computed <= value) : (computed < value);\n }\n if (setLow) {\n low = mid + 1;\n } else {\n high = mid;\n }\n }\n return nativeMin(high, MAX_ARRAY_INDEX);\n }\n\n /**\n * The base implementation of `_.sortedUniq` and `_.sortedUniqBy` without\n * support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n */\n function baseSortedUniq(array, iteratee) {\n var index = -1,\n length = array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index],\n computed = iteratee ? iteratee(value) : value;\n\n if (!index || !eq(computed, seen)) {\n var seen = computed;\n result[resIndex++] = value === 0 ? 0 : value;\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.toNumber` which doesn't ensure correct\n * conversions of binary, hexadecimal, or octal string values.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n */\n function baseToNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n return +value;\n }\n\n /**\n * The base implementation of `_.toString` which doesn't convert nullish\n * values to empty strings.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {string} Returns the string.\n */\n function baseToString(value) {\n // Exit early for strings to avoid a performance hit in some environments.\n if (typeof value == 'string') {\n return value;\n }\n if (isArray(value)) {\n // Recursively convert values (susceptible to call stack limits).\n return arrayMap(value, baseToString) + '';\n }\n if (isSymbol(value)) {\n return symbolToString ? symbolToString.call(value) : '';\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n }\n\n /**\n * The base implementation of `_.uniqBy` without support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n */\n function baseUniq(array, iteratee, comparator) {\n var index = -1,\n includes = arrayIncludes,\n length = array.length,\n isCommon = true,\n result = [],\n seen = result;\n\n if (comparator) {\n isCommon = false;\n includes = arrayIncludesWith;\n }\n else if (length >= LARGE_ARRAY_SIZE) {\n var set = iteratee ? null : createSet(array);\n if (set) {\n return setToArray(set);\n }\n isCommon = false;\n includes = cacheHas;\n seen = new SetCache;\n }\n else {\n seen = iteratee ? [] : result;\n }\n outer:\n while (++index < length) {\n var value = array[index],\n computed = iteratee ? iteratee(value) : value;\n\n value = (comparator || value !== 0) ? value : 0;\n if (isCommon && computed === computed) {\n var seenIndex = seen.length;\n while (seenIndex--) {\n if (seen[seenIndex] === computed) {\n continue outer;\n }\n }\n if (iteratee) {\n seen.push(computed);\n }\n result.push(value);\n }\n else if (!includes(seen, computed, comparator)) {\n if (seen !== result) {\n seen.push(computed);\n }\n result.push(value);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.unset`.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {Array|string} path The property path to unset.\n * @returns {boolean} Returns `true` if the property is deleted, else `false`.\n */\n function baseUnset(object, path) {\n path = castPath(path, object);\n object = parent(object, path);\n return object == null || delete object[toKey(last(path))];\n }\n\n /**\n * The base implementation of `_.update`.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to update.\n * @param {Function} updater The function to produce the updated value.\n * @param {Function} [customizer] The function to customize path creation.\n * @returns {Object} Returns `object`.\n */\n function baseUpdate(object, path, updater, customizer) {\n return baseSet(object, path, updater(baseGet(object, path)), customizer);\n }\n\n /**\n * The base implementation of methods like `_.dropWhile` and `_.takeWhile`\n * without support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to query.\n * @param {Function} predicate The function invoked per iteration.\n * @param {boolean} [isDrop] Specify dropping elements instead of taking them.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Array} Returns the slice of `array`.\n */\n function baseWhile(array, predicate, isDrop, fromRight) {\n var length = array.length,\n index = fromRight ? length : -1;\n\n while ((fromRight ? index-- : ++index < length) &&\n predicate(array[index], index, array)) {}\n\n return isDrop\n ? baseSlice(array, (fromRight ? 0 : index), (fromRight ? index + 1 : length))\n : baseSlice(array, (fromRight ? index + 1 : 0), (fromRight ? length : index));\n }\n\n /**\n * The base implementation of `wrapperValue` which returns the result of\n * performing a sequence of actions on the unwrapped `value`, where each\n * successive action is supplied the return value of the previous.\n *\n * @private\n * @param {*} value The unwrapped value.\n * @param {Array} actions Actions to perform to resolve the unwrapped value.\n * @returns {*} Returns the resolved value.\n */\n function baseWrapperValue(value, actions) {\n var result = value;\n if (result instanceof LazyWrapper) {\n result = result.value();\n }\n return arrayReduce(actions, function(result, action) {\n return action.func.apply(action.thisArg, arrayPush([result], action.args));\n }, result);\n }\n\n /**\n * The base implementation of methods like `_.xor`, without support for\n * iteratee shorthands, that accepts an array of arrays to inspect.\n *\n * @private\n * @param {Array} arrays The arrays to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of values.\n */\n function baseXor(arrays, iteratee, comparator) {\n var length = arrays.length;\n if (length < 2) {\n return length ? baseUniq(arrays[0]) : [];\n }\n var index = -1,\n result = Array(length);\n\n while (++index < length) {\n var array = arrays[index],\n othIndex = -1;\n\n while (++othIndex < length) {\n if (othIndex != index) {\n result[index] = baseDifference(result[index] || array, arrays[othIndex], iteratee, comparator);\n }\n }\n }\n return baseUniq(baseFlatten(result, 1), iteratee, comparator);\n }\n\n /**\n * This base implementation of `_.zipObject` which assigns values using `assignFunc`.\n *\n * @private\n * @param {Array} props The property identifiers.\n * @param {Array} values The property values.\n * @param {Function} assignFunc The function to assign values.\n * @returns {Object} Returns the new object.\n */\n function baseZipObject(props, values, assignFunc) {\n var index = -1,\n length = props.length,\n valsLength = values.length,\n result = {};\n\n while (++index < length) {\n var value = index < valsLength ? values[index] : undefined;\n assignFunc(result, props[index], value);\n }\n return result;\n }\n\n /**\n * Casts `value` to an empty array if it's not an array like object.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {Array|Object} Returns the cast array-like object.\n */\n function castArrayLikeObject(value) {\n return isArrayLikeObject(value) ? value : [];\n }\n\n /**\n * Casts `value` to `identity` if it's not a function.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {Function} Returns cast function.\n */\n function castFunction(value) {\n return typeof value == 'function' ? value : identity;\n }\n\n /**\n * Casts `value` to a path array if it's not one.\n *\n * @private\n * @param {*} value The value to inspect.\n * @param {Object} [object] The object to query keys on.\n * @returns {Array} Returns the cast property path array.\n */\n function castPath(value, object) {\n if (isArray(value)) {\n return value;\n }\n return isKey(value, object) ? [value] : stringToPath(toString(value));\n }\n\n /**\n * A `baseRest` alias which can be replaced with `identity` by module\n * replacement plugins.\n *\n * @private\n * @type {Function}\n * @param {Function} func The function to apply a rest parameter to.\n * @returns {Function} Returns the new function.\n */\n var castRest = baseRest;\n\n /**\n * Casts `array` to a slice if it's needed.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {number} start The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns the cast slice.\n */\n function castSlice(array, start, end) {\n var length = array.length;\n end = end === undefined ? length : end;\n return (!start && end >= length) ? array : baseSlice(array, start, end);\n }\n\n /**\n * A simple wrapper around the global [`clearTimeout`](https://mdn.io/clearTimeout).\n *\n * @private\n * @param {number|Object} id The timer id or timeout object of the timer to clear.\n */\n var clearTimeout = ctxClearTimeout || function(id) {\n return root.clearTimeout(id);\n };\n\n /**\n * Creates a clone of `buffer`.\n *\n * @private\n * @param {Buffer} buffer The buffer to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Buffer} Returns the cloned buffer.\n */\n function cloneBuffer(buffer, isDeep) {\n if (isDeep) {\n return buffer.slice();\n }\n var length = buffer.length,\n result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);\n\n buffer.copy(result);\n return result;\n }\n\n /**\n * Creates a clone of `arrayBuffer`.\n *\n * @private\n * @param {ArrayBuffer} arrayBuffer The array buffer to clone.\n * @returns {ArrayBuffer} Returns the cloned array buffer.\n */\n function cloneArrayBuffer(arrayBuffer) {\n var result = new arrayBuffer.constructor(arrayBuffer.byteLength);\n new Uint8Array(result).set(new Uint8Array(arrayBuffer));\n return result;\n }\n\n /**\n * Creates a clone of `dataView`.\n *\n * @private\n * @param {Object} dataView The data view to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned data view.\n */\n function cloneDataView(dataView, isDeep) {\n var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;\n return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);\n }\n\n /**\n * Creates a clone of `regexp`.\n *\n * @private\n * @param {Object} regexp The regexp to clone.\n * @returns {Object} Returns the cloned regexp.\n */\n function cloneRegExp(regexp) {\n var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));\n result.lastIndex = regexp.lastIndex;\n return result;\n }\n\n /**\n * Creates a clone of the `symbol` object.\n *\n * @private\n * @param {Object} symbol The symbol object to clone.\n * @returns {Object} Returns the cloned symbol object.\n */\n function cloneSymbol(symbol) {\n return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};\n }\n\n /**\n * Creates a clone of `typedArray`.\n *\n * @private\n * @param {Object} typedArray The typed array to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned typed array.\n */\n function cloneTypedArray(typedArray, isDeep) {\n var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;\n return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);\n }\n\n /**\n * Compares values to sort them in ascending order.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {number} Returns the sort order indicator for `value`.\n */\n function compareAscending(value, other) {\n if (value !== other) {\n var valIsDefined = value !== undefined,\n valIsNull = value === null,\n valIsReflexive = value === value,\n valIsSymbol = isSymbol(value);\n\n var othIsDefined = other !== undefined,\n othIsNull = other === null,\n othIsReflexive = other === other,\n othIsSymbol = isSymbol(other);\n\n if ((!othIsNull && !othIsSymbol && !valIsSymbol && value > other) ||\n (valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol) ||\n (valIsNull && othIsDefined && othIsReflexive) ||\n (!valIsDefined && othIsReflexive) ||\n !valIsReflexive) {\n return 1;\n }\n if ((!valIsNull && !valIsSymbol && !othIsSymbol && value < other) ||\n (othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol) ||\n (othIsNull && valIsDefined && valIsReflexive) ||\n (!othIsDefined && valIsReflexive) ||\n !othIsReflexive) {\n return -1;\n }\n }\n return 0;\n }\n\n /**\n * Used by `_.orderBy` to compare multiple properties of a value to another\n * and stable sort them.\n *\n * If `orders` is unspecified, all values are sorted in ascending order. Otherwise,\n * specify an order of \"desc\" for descending or \"asc\" for ascending sort order\n * of corresponding values.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {boolean[]|string[]} orders The order to sort by for each property.\n * @returns {number} Returns the sort order indicator for `object`.\n */\n function compareMultiple(object, other, orders) {\n var index = -1,\n objCriteria = object.criteria,\n othCriteria = other.criteria,\n length = objCriteria.length,\n ordersLength = orders.length;\n\n while (++index < length) {\n var result = compareAscending(objCriteria[index], othCriteria[index]);\n if (result) {\n if (index >= ordersLength) {\n return result;\n }\n var order = orders[index];\n return result * (order == 'desc' ? -1 : 1);\n }\n }\n // Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications\n // that causes it, under certain circumstances, to provide the same value for\n // `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247\n // for more details.\n //\n // This also ensures a stable sort in V8 and other engines.\n // See https://bugs.chromium.org/p/v8/issues/detail?id=90 for more details.\n return object.index - other.index;\n }\n\n /**\n * Creates an array that is the composition of partially applied arguments,\n * placeholders, and provided arguments into a single array of arguments.\n *\n * @private\n * @param {Array} args The provided arguments.\n * @param {Array} partials The arguments to prepend to those provided.\n * @param {Array} holders The `partials` placeholder indexes.\n * @params {boolean} [isCurried] Specify composing for a curried function.\n * @returns {Array} Returns the new array of composed arguments.\n */\n function composeArgs(args, partials, holders, isCurried) {\n var argsIndex = -1,\n argsLength = args.length,\n holdersLength = holders.length,\n leftIndex = -1,\n leftLength = partials.length,\n rangeLength = nativeMax(argsLength - holdersLength, 0),\n result = Array(leftLength + rangeLength),\n isUncurried = !isCurried;\n\n while (++leftIndex < leftLength) {\n result[leftIndex] = partials[leftIndex];\n }\n while (++argsIndex < holdersLength) {\n if (isUncurried || argsIndex < argsLength) {\n result[holders[argsIndex]] = args[argsIndex];\n }\n }\n while (rangeLength--) {\n result[leftIndex++] = args[argsIndex++];\n }\n return result;\n }\n\n /**\n * This function is like `composeArgs` except that the arguments composition\n * is tailored for `_.partialRight`.\n *\n * @private\n * @param {Array} args The provided arguments.\n * @param {Array} partials The arguments to append to those provided.\n * @param {Array} holders The `partials` placeholder indexes.\n * @params {boolean} [isCurried] Specify composing for a curried function.\n * @returns {Array} Returns the new array of composed arguments.\n */\n function composeArgsRight(args, partials, holders, isCurried) {\n var argsIndex = -1,\n argsLength = args.length,\n holdersIndex = -1,\n holdersLength = holders.length,\n rightIndex = -1,\n rightLength = partials.length,\n rangeLength = nativeMax(argsLength - holdersLength, 0),\n result = Array(rangeLength + rightLength),\n isUncurried = !isCurried;\n\n while (++argsIndex < rangeLength) {\n result[argsIndex] = args[argsIndex];\n }\n var offset = argsIndex;\n while (++rightIndex < rightLength) {\n result[offset + rightIndex] = partials[rightIndex];\n }\n while (++holdersIndex < holdersLength) {\n if (isUncurried || argsIndex < argsLength) {\n result[offset + holders[holdersIndex]] = args[argsIndex++];\n }\n }\n return result;\n }\n\n /**\n * Copies the values of `source` to `array`.\n *\n * @private\n * @param {Array} source The array to copy values from.\n * @param {Array} [array=[]] The array to copy values to.\n * @returns {Array} Returns `array`.\n */\n function copyArray(source, array) {\n var index = -1,\n length = source.length;\n\n array || (array = Array(length));\n while (++index < length) {\n array[index] = source[index];\n }\n return array;\n }\n\n /**\n * Copies properties of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy properties from.\n * @param {Array} props The property identifiers to copy.\n * @param {Object} [object={}] The object to copy properties to.\n * @param {Function} [customizer] The function to customize copied values.\n * @returns {Object} Returns `object`.\n */\n function copyObject(source, props, object, customizer) {\n var isNew = !object;\n object || (object = {});\n\n var index = -1,\n length = props.length;\n\n while (++index < length) {\n var key = props[index];\n\n var newValue = customizer\n ? customizer(object[key], source[key], key, object, source)\n : undefined;\n\n if (newValue === undefined) {\n newValue = source[key];\n }\n if (isNew) {\n baseAssignValue(object, key, newValue);\n } else {\n assignValue(object, key, newValue);\n }\n }\n return object;\n }\n\n /**\n * Copies own symbols of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy symbols from.\n * @param {Object} [object={}] The object to copy symbols to.\n * @returns {Object} Returns `object`.\n */\n function copySymbols(source, object) {\n return copyObject(source, getSymbols(source), object);\n }\n\n /**\n * Copies own and inherited symbols of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy symbols from.\n * @param {Object} [object={}] The object to copy symbols to.\n * @returns {Object} Returns `object`.\n */\n function copySymbolsIn(source, object) {\n return copyObject(source, getSymbolsIn(source), object);\n }\n\n /**\n * Creates a function like `_.groupBy`.\n *\n * @private\n * @param {Function} setter The function to set accumulator values.\n * @param {Function} [initializer] The accumulator object initializer.\n * @returns {Function} Returns the new aggregator function.\n */\n function createAggregator(setter, initializer) {\n return function(collection, iteratee) {\n var func = isArray(collection) ? arrayAggregator : baseAggregator,\n accumulator = initializer ? initializer() : {};\n\n return func(collection, setter, getIteratee(iteratee, 2), accumulator);\n };\n }\n\n /**\n * Creates a function like `_.assign`.\n *\n * @private\n * @param {Function} assigner The function to assign values.\n * @returns {Function} Returns the new assigner function.\n */\n function createAssigner(assigner) {\n return baseRest(function(object, sources) {\n var index = -1,\n length = sources.length,\n customizer = length > 1 ? sources[length - 1] : undefined,\n guard = length > 2 ? sources[2] : undefined;\n\n customizer = (assigner.length > 3 && typeof customizer == 'function')\n ? (length--, customizer)\n : undefined;\n\n if (guard && isIterateeCall(sources[0], sources[1], guard)) {\n customizer = length < 3 ? undefined : customizer;\n length = 1;\n }\n object = Object(object);\n while (++index < length) {\n var source = sources[index];\n if (source) {\n assigner(object, source, index, customizer);\n }\n }\n return object;\n });\n }\n\n /**\n * Creates a `baseEach` or `baseEachRight` function.\n *\n * @private\n * @param {Function} eachFunc The function to iterate over a collection.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\n function createBaseEach(eachFunc, fromRight) {\n return function(collection, iteratee) {\n if (collection == null) {\n return collection;\n }\n if (!isArrayLike(collection)) {\n return eachFunc(collection, iteratee);\n }\n var length = collection.length,\n index = fromRight ? length : -1,\n iterable = Object(collection);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (iteratee(iterable[index], index, iterable) === false) {\n break;\n }\n }\n return collection;\n };\n }\n\n /**\n * Creates a base function for methods like `_.forIn` and `_.forOwn`.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\n function createBaseFor(fromRight) {\n return function(object, iteratee, keysFunc) {\n var index = -1,\n iterable = Object(object),\n props = keysFunc(object),\n length = props.length;\n\n while (length--) {\n var key = props[fromRight ? length : ++index];\n if (iteratee(iterable[key], key, iterable) === false) {\n break;\n }\n }\n return object;\n };\n }\n\n /**\n * Creates a function that wraps `func` to invoke it with the optional `this`\n * binding of `thisArg`.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @param {*} [thisArg] The `this` binding of `func`.\n * @returns {Function} Returns the new wrapped function.\n */\n function createBind(func, bitmask, thisArg) {\n var isBind = bitmask & WRAP_BIND_FLAG,\n Ctor = createCtor(func);\n\n function wrapper() {\n var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;\n return fn.apply(isBind ? thisArg : this, arguments);\n }\n return wrapper;\n }\n\n /**\n * Creates a function like `_.lowerFirst`.\n *\n * @private\n * @param {string} methodName The name of the `String` case method to use.\n * @returns {Function} Returns the new case function.\n */\n function createCaseFirst(methodName) {\n return function(string) {\n string = toString(string);\n\n var strSymbols = hasUnicode(string)\n ? stringToArray(string)\n : undefined;\n\n var chr = strSymbols\n ? strSymbols[0]\n : string.charAt(0);\n\n var trailing = strSymbols\n ? castSlice(strSymbols, 1).join('')\n : string.slice(1);\n\n return chr[methodName]() + trailing;\n };\n }\n\n /**\n * Creates a function like `_.camelCase`.\n *\n * @private\n * @param {Function} callback The function to combine each word.\n * @returns {Function} Returns the new compounder function.\n */\n function createCompounder(callback) {\n return function(string) {\n return arrayReduce(words(deburr(string).replace(reApos, '')), callback, '');\n };\n }\n\n /**\n * Creates a function that produces an instance of `Ctor` regardless of\n * whether it was invoked as part of a `new` expression or by `call` or `apply`.\n *\n * @private\n * @param {Function} Ctor The constructor to wrap.\n * @returns {Function} Returns the new wrapped function.\n */\n function createCtor(Ctor) {\n return function() {\n // Use a `switch` statement to work with class constructors. See\n // http://ecma-international.org/ecma-262/7.0/#sec-ecmascript-function-objects-call-thisargument-argumentslist\n // for more details.\n var args = arguments;\n switch (args.length) {\n case 0: return new Ctor;\n case 1: return new Ctor(args[0]);\n case 2: return new Ctor(args[0], args[1]);\n case 3: return new Ctor(args[0], args[1], args[2]);\n case 4: return new Ctor(args[0], args[1], args[2], args[3]);\n case 5: return new Ctor(args[0], args[1], args[2], args[3], args[4]);\n case 6: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5]);\n case 7: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5], args[6]);\n }\n var thisBinding = baseCreate(Ctor.prototype),\n result = Ctor.apply(thisBinding, args);\n\n // Mimic the constructor's `return` behavior.\n // See https://es5.github.io/#x13.2.2 for more details.\n return isObject(result) ? result : thisBinding;\n };\n }\n\n /**\n * Creates a function that wraps `func` to enable currying.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @param {number} arity The arity of `func`.\n * @returns {Function} Returns the new wrapped function.\n */\n function createCurry(func, bitmask, arity) {\n var Ctor = createCtor(func);\n\n function wrapper() {\n var length = arguments.length,\n args = Array(length),\n index = length,\n placeholder = getHolder(wrapper);\n\n while (index--) {\n args[index] = arguments[index];\n }\n var holders = (length < 3 && args[0] !== placeholder && args[length - 1] !== placeholder)\n ? []\n : replaceHolders(args, placeholder);\n\n length -= holders.length;\n if (length < arity) {\n return createRecurry(\n func, bitmask, createHybrid, wrapper.placeholder, undefined,\n args, holders, undefined, undefined, arity - length);\n }\n var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;\n return apply(fn, this, args);\n }\n return wrapper;\n }\n\n /**\n * Creates a `_.find` or `_.findLast` function.\n *\n * @private\n * @param {Function} findIndexFunc The function to find the collection index.\n * @returns {Function} Returns the new find function.\n */\n function createFind(findIndexFunc) {\n return function(collection, predicate, fromIndex) {\n var iterable = Object(collection);\n if (!isArrayLike(collection)) {\n var iteratee = getIteratee(predicate, 3);\n collection = keys(collection);\n predicate = function(key) { return iteratee(iterable[key], key, iterable); };\n }\n var index = findIndexFunc(collection, predicate, fromIndex);\n return index > -1 ? iterable[iteratee ? collection[index] : index] : undefined;\n };\n }\n\n /**\n * Creates a `_.flow` or `_.flowRight` function.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new flow function.\n */\n function createFlow(fromRight) {\n return flatRest(function(funcs) {\n var length = funcs.length,\n index = length,\n prereq = LodashWrapper.prototype.thru;\n\n if (fromRight) {\n funcs.reverse();\n }\n while (index--) {\n var func = funcs[index];\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n if (prereq && !wrapper && getFuncName(func) == 'wrapper') {\n var wrapper = new LodashWrapper([], true);\n }\n }\n index = wrapper ? index : length;\n while (++index < length) {\n func = funcs[index];\n\n var funcName = getFuncName(func),\n data = funcName == 'wrapper' ? getData(func) : undefined;\n\n if (data && isLaziable(data[0]) &&\n data[1] == (WRAP_ARY_FLAG | WRAP_CURRY_FLAG | WRAP_PARTIAL_FLAG | WRAP_REARG_FLAG) &&\n !data[4].length && data[9] == 1\n ) {\n wrapper = wrapper[getFuncName(data[0])].apply(wrapper, data[3]);\n } else {\n wrapper = (func.length == 1 && isLaziable(func))\n ? wrapper[funcName]()\n : wrapper.thru(func);\n }\n }\n return function() {\n var args = arguments,\n value = args[0];\n\n if (wrapper && args.length == 1 && isArray(value)) {\n return wrapper.plant(value).value();\n }\n var index = 0,\n result = length ? funcs[index].apply(this, args) : value;\n\n while (++index < length) {\n result = funcs[index].call(this, result);\n }\n return result;\n };\n });\n }\n\n /**\n * Creates a function that wraps `func` to invoke it with optional `this`\n * binding of `thisArg`, partial application, and currying.\n *\n * @private\n * @param {Function|string} func The function or method name to wrap.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @param {*} [thisArg] The `this` binding of `func`.\n * @param {Array} [partials] The arguments to prepend to those provided to\n * the new function.\n * @param {Array} [holders] The `partials` placeholder indexes.\n * @param {Array} [partialsRight] The arguments to append to those provided\n * to the new function.\n * @param {Array} [holdersRight] The `partialsRight` placeholder indexes.\n * @param {Array} [argPos] The argument positions of the new function.\n * @param {number} [ary] The arity cap of `func`.\n * @param {number} [arity] The arity of `func`.\n * @returns {Function} Returns the new wrapped function.\n */\n function createHybrid(func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary, arity) {\n var isAry = bitmask & WRAP_ARY_FLAG,\n isBind = bitmask & WRAP_BIND_FLAG,\n isBindKey = bitmask & WRAP_BIND_KEY_FLAG,\n isCurried = bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG),\n isFlip = bitmask & WRAP_FLIP_FLAG,\n Ctor = isBindKey ? undefined : createCtor(func);\n\n function wrapper() {\n var length = arguments.length,\n args = Array(length),\n index = length;\n\n while (index--) {\n args[index] = arguments[index];\n }\n if (isCurried) {\n var placeholder = getHolder(wrapper),\n holdersCount = countHolders(args, placeholder);\n }\n if (partials) {\n args = composeArgs(args, partials, holders, isCurried);\n }\n if (partialsRight) {\n args = composeArgsRight(args, partialsRight, holdersRight, isCurried);\n }\n length -= holdersCount;\n if (isCurried && length < arity) {\n var newHolders = replaceHolders(args, placeholder);\n return createRecurry(\n func, bitmask, createHybrid, wrapper.placeholder, thisArg,\n args, newHolders, argPos, ary, arity - length\n );\n }\n var thisBinding = isBind ? thisArg : this,\n fn = isBindKey ? thisBinding[func] : func;\n\n length = args.length;\n if (argPos) {\n args = reorder(args, argPos);\n } else if (isFlip && length > 1) {\n args.reverse();\n }\n if (isAry && ary < length) {\n args.length = ary;\n }\n if (this && this !== root && this instanceof wrapper) {\n fn = Ctor || createCtor(fn);\n }\n return fn.apply(thisBinding, args);\n }\n return wrapper;\n }\n\n /**\n * Creates a function like `_.invertBy`.\n *\n * @private\n * @param {Function} setter The function to set accumulator values.\n * @param {Function} toIteratee The function to resolve iteratees.\n * @returns {Function} Returns the new inverter function.\n */\n function createInverter(setter, toIteratee) {\n return function(object, iteratee) {\n return baseInverter(object, setter, toIteratee(iteratee), {});\n };\n }\n\n /**\n * Creates a function that performs a mathematical operation on two values.\n *\n * @private\n * @param {Function} operator The function to perform the operation.\n * @param {number} [defaultValue] The value used for `undefined` arguments.\n * @returns {Function} Returns the new mathematical operation function.\n */\n function createMathOperation(operator, defaultValue) {\n return function(value, other) {\n var result;\n if (value === undefined && other === undefined) {\n return defaultValue;\n }\n if (value !== undefined) {\n result = value;\n }\n if (other !== undefined) {\n if (result === undefined) {\n return other;\n }\n if (typeof value == 'string' || typeof other == 'string') {\n value = baseToString(value);\n other = baseToString(other);\n } else {\n value = baseToNumber(value);\n other = baseToNumber(other);\n }\n result = operator(value, other);\n }\n return result;\n };\n }\n\n /**\n * Creates a function like `_.over`.\n *\n * @private\n * @param {Function} arrayFunc The function to iterate over iteratees.\n * @returns {Function} Returns the new over function.\n */\n function createOver(arrayFunc) {\n return flatRest(function(iteratees) {\n iteratees = arrayMap(iteratees, baseUnary(getIteratee()));\n return baseRest(function(args) {\n var thisArg = this;\n return arrayFunc(iteratees, function(iteratee) {\n return apply(iteratee, thisArg, args);\n });\n });\n });\n }\n\n /**\n * Creates the padding for `string` based on `length`. The `chars` string\n * is truncated if the number of characters exceeds `length`.\n *\n * @private\n * @param {number} length The padding length.\n * @param {string} [chars=' '] The string used as padding.\n * @returns {string} Returns the padding for `string`.\n */\n function createPadding(length, chars) {\n chars = chars === undefined ? ' ' : baseToString(chars);\n\n var charsLength = chars.length;\n if (charsLength < 2) {\n return charsLength ? baseRepeat(chars, length) : chars;\n }\n var result = baseRepeat(chars, nativeCeil(length / stringSize(chars)));\n return hasUnicode(chars)\n ? castSlice(stringToArray(result), 0, length).join('')\n : result.slice(0, length);\n }\n\n /**\n * Creates a function that wraps `func` to invoke it with the `this` binding\n * of `thisArg` and `partials` prepended to the arguments it receives.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {Array} partials The arguments to prepend to those provided to\n * the new function.\n * @returns {Function} Returns the new wrapped function.\n */\n function createPartial(func, bitmask, thisArg, partials) {\n var isBind = bitmask & WRAP_BIND_FLAG,\n Ctor = createCtor(func);\n\n function wrapper() {\n var argsIndex = -1,\n argsLength = arguments.length,\n leftIndex = -1,\n leftLength = partials.length,\n args = Array(leftLength + argsLength),\n fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;\n\n while (++leftIndex < leftLength) {\n args[leftIndex] = partials[leftIndex];\n }\n while (argsLength--) {\n args[leftIndex++] = arguments[++argsIndex];\n }\n return apply(fn, isBind ? thisArg : this, args);\n }\n return wrapper;\n }\n\n /**\n * Creates a `_.range` or `_.rangeRight` function.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new range function.\n */\n function createRange(fromRight) {\n return function(start, end, step) {\n if (step && typeof step != 'number' && isIterateeCall(start, end, step)) {\n end = step = undefined;\n }\n // Ensure the sign of `-0` is preserved.\n start = toFinite(start);\n if (end === undefined) {\n end = start;\n start = 0;\n } else {\n end = toFinite(end);\n }\n step = step === undefined ? (start < end ? 1 : -1) : toFinite(step);\n return baseRange(start, end, step, fromRight);\n };\n }\n\n /**\n * Creates a function that performs a relational operation on two values.\n *\n * @private\n * @param {Function} operator The function to perform the operation.\n * @returns {Function} Returns the new relational operation function.\n */\n function createRelationalOperation(operator) {\n return function(value, other) {\n if (!(typeof value == 'string' && typeof other == 'string')) {\n value = toNumber(value);\n other = toNumber(other);\n }\n return operator(value, other);\n };\n }\n\n /**\n * Creates a function that wraps `func` to continue currying.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @param {Function} wrapFunc The function to create the `func` wrapper.\n * @param {*} placeholder The placeholder value.\n * @param {*} [thisArg] The `this` binding of `func`.\n * @param {Array} [partials] The arguments to prepend to those provided to\n * the new function.\n * @param {Array} [holders] The `partials` placeholder indexes.\n * @param {Array} [argPos] The argument positions of the new function.\n * @param {number} [ary] The arity cap of `func`.\n * @param {number} [arity] The arity of `func`.\n * @returns {Function} Returns the new wrapped function.\n */\n function createRecurry(func, bitmask, wrapFunc, placeholder, thisArg, partials, holders, argPos, ary, arity) {\n var isCurry = bitmask & WRAP_CURRY_FLAG,\n newHolders = isCurry ? holders : undefined,\n newHoldersRight = isCurry ? undefined : holders,\n newPartials = isCurry ? partials : undefined,\n newPartialsRight = isCurry ? undefined : partials;\n\n bitmask |= (isCurry ? WRAP_PARTIAL_FLAG : WRAP_PARTIAL_RIGHT_FLAG);\n bitmask &= ~(isCurry ? WRAP_PARTIAL_RIGHT_FLAG : WRAP_PARTIAL_FLAG);\n\n if (!(bitmask & WRAP_CURRY_BOUND_FLAG)) {\n bitmask &= ~(WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG);\n }\n var newData = [\n func, bitmask, thisArg, newPartials, newHolders, newPartialsRight,\n newHoldersRight, argPos, ary, arity\n ];\n\n var result = wrapFunc.apply(undefined, newData);\n if (isLaziable(func)) {\n setData(result, newData);\n }\n result.placeholder = placeholder;\n return setWrapToString(result, func, bitmask);\n }\n\n /**\n * Creates a function like `_.round`.\n *\n * @private\n * @param {string} methodName The name of the `Math` method to use when rounding.\n * @returns {Function} Returns the new round function.\n */\n function createRound(methodName) {\n var func = Math[methodName];\n return function(number, precision) {\n number = toNumber(number);\n precision = precision == null ? 0 : nativeMin(toInteger(precision), 292);\n if (precision) {\n // Shift with exponential notation to avoid floating-point issues.\n // See [MDN](https://mdn.io/round#Examples) for more details.\n var pair = (toString(number) + 'e').split('e'),\n value = func(pair[0] + 'e' + (+pair[1] + precision));\n\n pair = (toString(value) + 'e').split('e');\n return +(pair[0] + 'e' + (+pair[1] - precision));\n }\n return func(number);\n };\n }\n\n /**\n * Creates a set object of `values`.\n *\n * @private\n * @param {Array} values The values to add to the set.\n * @returns {Object} Returns the new set.\n */\n var createSet = !(Set && (1 / setToArray(new Set([,-0]))[1]) == INFINITY) ? noop : function(values) {\n return new Set(values);\n };\n\n /**\n * Creates a `_.toPairs` or `_.toPairsIn` function.\n *\n * @private\n * @param {Function} keysFunc The function to get the keys of a given object.\n * @returns {Function} Returns the new pairs function.\n */\n function createToPairs(keysFunc) {\n return function(object) {\n var tag = getTag(object);\n if (tag == mapTag) {\n return mapToArray(object);\n }\n if (tag == setTag) {\n return setToPairs(object);\n }\n return baseToPairs(object, keysFunc(object));\n };\n }\n\n /**\n * Creates a function that either curries or invokes `func` with optional\n * `this` binding and partially applied arguments.\n *\n * @private\n * @param {Function|string} func The function or method name to wrap.\n * @param {number} bitmask The bitmask flags.\n * 1 - `_.bind`\n * 2 - `_.bindKey`\n * 4 - `_.curry` or `_.curryRight` of a bound function\n * 8 - `_.curry`\n * 16 - `_.curryRight`\n * 32 - `_.partial`\n * 64 - `_.partialRight`\n * 128 - `_.rearg`\n * 256 - `_.ary`\n * 512 - `_.flip`\n * @param {*} [thisArg] The `this` binding of `func`.\n * @param {Array} [partials] The arguments to be partially applied.\n * @param {Array} [holders] The `partials` placeholder indexes.\n * @param {Array} [argPos] The argument positions of the new function.\n * @param {number} [ary] The arity cap of `func`.\n * @param {number} [arity] The arity of `func`.\n * @returns {Function} Returns the new wrapped function.\n */\n function createWrap(func, bitmask, thisArg, partials, holders, argPos, ary, arity) {\n var isBindKey = bitmask & WRAP_BIND_KEY_FLAG;\n if (!isBindKey && typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n var length = partials ? partials.length : 0;\n if (!length) {\n bitmask &= ~(WRAP_PARTIAL_FLAG | WRAP_PARTIAL_RIGHT_FLAG);\n partials = holders = undefined;\n }\n ary = ary === undefined ? ary : nativeMax(toInteger(ary), 0);\n arity = arity === undefined ? arity : toInteger(arity);\n length -= holders ? holders.length : 0;\n\n if (bitmask & WRAP_PARTIAL_RIGHT_FLAG) {\n var partialsRight = partials,\n holdersRight = holders;\n\n partials = holders = undefined;\n }\n var data = isBindKey ? undefined : getData(func);\n\n var newData = [\n func, bitmask, thisArg, partials, holders, partialsRight, holdersRight,\n argPos, ary, arity\n ];\n\n if (data) {\n mergeData(newData, data);\n }\n func = newData[0];\n bitmask = newData[1];\n thisArg = newData[2];\n partials = newData[3];\n holders = newData[4];\n arity = newData[9] = newData[9] === undefined\n ? (isBindKey ? 0 : func.length)\n : nativeMax(newData[9] - length, 0);\n\n if (!arity && bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG)) {\n bitmask &= ~(WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG);\n }\n if (!bitmask || bitmask == WRAP_BIND_FLAG) {\n var result = createBind(func, bitmask, thisArg);\n } else if (bitmask == WRAP_CURRY_FLAG || bitmask == WRAP_CURRY_RIGHT_FLAG) {\n result = createCurry(func, bitmask, arity);\n } else if ((bitmask == WRAP_PARTIAL_FLAG || bitmask == (WRAP_BIND_FLAG | WRAP_PARTIAL_FLAG)) && !holders.length) {\n result = createPartial(func, bitmask, thisArg, partials);\n } else {\n result = createHybrid.apply(undefined, newData);\n }\n var setter = data ? baseSetData : setData;\n return setWrapToString(setter(result, newData), func, bitmask);\n }\n\n /**\n * Used by `_.defaults` to customize its `_.assignIn` use to assign properties\n * of source objects to the destination object for all destination properties\n * that resolve to `undefined`.\n *\n * @private\n * @param {*} objValue The destination value.\n * @param {*} srcValue The source value.\n * @param {string} key The key of the property to assign.\n * @param {Object} object The parent object of `objValue`.\n * @returns {*} Returns the value to assign.\n */\n function customDefaultsAssignIn(objValue, srcValue, key, object) {\n if (objValue === undefined ||\n (eq(objValue, objectProto[key]) && !hasOwnProperty.call(object, key))) {\n return srcValue;\n }\n return objValue;\n }\n\n /**\n * Used by `_.defaultsDeep` to customize its `_.merge` use to merge source\n * objects into destination objects that are passed thru.\n *\n * @private\n * @param {*} objValue The destination value.\n * @param {*} srcValue The source value.\n * @param {string} key The key of the property to merge.\n * @param {Object} object The parent object of `objValue`.\n * @param {Object} source The parent object of `srcValue`.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n * @returns {*} Returns the value to assign.\n */\n function customDefaultsMerge(objValue, srcValue, key, object, source, stack) {\n if (isObject(objValue) && isObject(srcValue)) {\n // Recursively merge objects and arrays (susceptible to call stack limits).\n stack.set(srcValue, objValue);\n baseMerge(objValue, srcValue, undefined, customDefaultsMerge, stack);\n stack['delete'](srcValue);\n }\n return objValue;\n }\n\n /**\n * Used by `_.omit` to customize its `_.cloneDeep` use to only clone plain\n * objects.\n *\n * @private\n * @param {*} value The value to inspect.\n * @param {string} key The key of the property to inspect.\n * @returns {*} Returns the uncloned value or `undefined` to defer cloning to `_.cloneDeep`.\n */\n function customOmitClone(value) {\n return isPlainObject(value) ? undefined : value;\n }\n\n /**\n * A specialized version of `baseIsEqualDeep` for arrays with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Array} array The array to compare.\n * @param {Array} other The other array to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `array` and `other` objects.\n * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.\n */\n function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n arrLength = array.length,\n othLength = other.length;\n\n if (arrLength != othLength && !(isPartial && othLength > arrLength)) {\n return false;\n }\n // Assume cyclic values are equal.\n var stacked = stack.get(array);\n if (stacked && stack.get(other)) {\n return stacked == other;\n }\n var index = -1,\n result = true,\n seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;\n\n stack.set(array, other);\n stack.set(other, array);\n\n // Ignore non-index properties.\n while (++index < arrLength) {\n var arrValue = array[index],\n othValue = other[index];\n\n if (customizer) {\n var compared = isPartial\n ? customizer(othValue, arrValue, index, other, array, stack)\n : customizer(arrValue, othValue, index, array, other, stack);\n }\n if (compared !== undefined) {\n if (compared) {\n continue;\n }\n result = false;\n break;\n }\n // Recursively compare arrays (susceptible to call stack limits).\n if (seen) {\n if (!arraySome(other, function(othValue, othIndex) {\n if (!cacheHas(seen, othIndex) &&\n (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {\n return seen.push(othIndex);\n }\n })) {\n result = false;\n break;\n }\n } else if (!(\n arrValue === othValue ||\n equalFunc(arrValue, othValue, bitmask, customizer, stack)\n )) {\n result = false;\n break;\n }\n }\n stack['delete'](array);\n stack['delete'](other);\n return result;\n }\n\n /**\n * A specialized version of `baseIsEqualDeep` for comparing objects of\n * the same `toStringTag`.\n *\n * **Note:** This function only supports comparing values with tags of\n * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {string} tag The `toStringTag` of the objects to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\n function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {\n switch (tag) {\n case dataViewTag:\n if ((object.byteLength != other.byteLength) ||\n (object.byteOffset != other.byteOffset)) {\n return false;\n }\n object = object.buffer;\n other = other.buffer;\n\n case arrayBufferTag:\n if ((object.byteLength != other.byteLength) ||\n !equalFunc(new Uint8Array(object), new Uint8Array(other))) {\n return false;\n }\n return true;\n\n case boolTag:\n case dateTag:\n case numberTag:\n // Coerce booleans to `1` or `0` and dates to milliseconds.\n // Invalid dates are coerced to `NaN`.\n return eq(+object, +other);\n\n case errorTag:\n return object.name == other.name && object.message == other.message;\n\n case regexpTag:\n case stringTag:\n // Coerce regexes to strings and treat strings, primitives and objects,\n // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring\n // for more details.\n return object == (other + '');\n\n case mapTag:\n var convert = mapToArray;\n\n case setTag:\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG;\n convert || (convert = setToArray);\n\n if (object.size != other.size && !isPartial) {\n return false;\n }\n // Assume cyclic values are equal.\n var stacked = stack.get(object);\n if (stacked) {\n return stacked == other;\n }\n bitmask |= COMPARE_UNORDERED_FLAG;\n\n // Recursively compare objects (susceptible to call stack limits).\n stack.set(object, other);\n var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);\n stack['delete'](object);\n return result;\n\n case symbolTag:\n if (symbolValueOf) {\n return symbolValueOf.call(object) == symbolValueOf.call(other);\n }\n }\n return false;\n }\n\n /**\n * A specialized version of `baseIsEqualDeep` for objects with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\n function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n objProps = getAllKeys(object),\n objLength = objProps.length,\n othProps = getAllKeys(other),\n othLength = othProps.length;\n\n if (objLength != othLength && !isPartial) {\n return false;\n }\n var index = objLength;\n while (index--) {\n var key = objProps[index];\n if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {\n return false;\n }\n }\n // Assume cyclic values are equal.\n var stacked = stack.get(object);\n if (stacked && stack.get(other)) {\n return stacked == other;\n }\n var result = true;\n stack.set(object, other);\n stack.set(other, object);\n\n var skipCtor = isPartial;\n while (++index < objLength) {\n key = objProps[index];\n var objValue = object[key],\n othValue = other[key];\n\n if (customizer) {\n var compared = isPartial\n ? customizer(othValue, objValue, key, other, object, stack)\n : customizer(objValue, othValue, key, object, other, stack);\n }\n // Recursively compare objects (susceptible to call stack limits).\n if (!(compared === undefined\n ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))\n : compared\n )) {\n result = false;\n break;\n }\n skipCtor || (skipCtor = key == 'constructor');\n }\n if (result && !skipCtor) {\n var objCtor = object.constructor,\n othCtor = other.constructor;\n\n // Non `Object` object instances with different constructors are not equal.\n if (objCtor != othCtor &&\n ('constructor' in object && 'constructor' in other) &&\n !(typeof objCtor == 'function' && objCtor instanceof objCtor &&\n typeof othCtor == 'function' && othCtor instanceof othCtor)) {\n result = false;\n }\n }\n stack['delete'](object);\n stack['delete'](other);\n return result;\n }\n\n /**\n * A specialized version of `baseRest` which flattens the rest array.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @returns {Function} Returns the new function.\n */\n function flatRest(func) {\n return setToString(overRest(func, undefined, flatten), func + '');\n }\n\n /**\n * Creates an array of own enumerable property names and symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\n function getAllKeys(object) {\n return baseGetAllKeys(object, keys, getSymbols);\n }\n\n /**\n * Creates an array of own and inherited enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\n function getAllKeysIn(object) {\n return baseGetAllKeys(object, keysIn, getSymbolsIn);\n }\n\n /**\n * Gets metadata for `func`.\n *\n * @private\n * @param {Function} func The function to query.\n * @returns {*} Returns the metadata for `func`.\n */\n var getData = !metaMap ? noop : function(func) {\n return metaMap.get(func);\n };\n\n /**\n * Gets the name of `func`.\n *\n * @private\n * @param {Function} func The function to query.\n * @returns {string} Returns the function name.\n */\n function getFuncName(func) {\n var result = (func.name + ''),\n array = realNames[result],\n length = hasOwnProperty.call(realNames, result) ? array.length : 0;\n\n while (length--) {\n var data = array[length],\n otherFunc = data.func;\n if (otherFunc == null || otherFunc == func) {\n return data.name;\n }\n }\n return result;\n }\n\n /**\n * Gets the argument placeholder value for `func`.\n *\n * @private\n * @param {Function} func The function to inspect.\n * @returns {*} Returns the placeholder value.\n */\n function getHolder(func) {\n var object = hasOwnProperty.call(lodash, 'placeholder') ? lodash : func;\n return object.placeholder;\n }\n\n /**\n * Gets the appropriate \"iteratee\" function. If `_.iteratee` is customized,\n * this function returns the custom method, otherwise it returns `baseIteratee`.\n * If arguments are provided, the chosen function is invoked with them and\n * its result is returned.\n *\n * @private\n * @param {*} [value] The value to convert to an iteratee.\n * @param {number} [arity] The arity of the created iteratee.\n * @returns {Function} Returns the chosen function or its result.\n */\n function getIteratee() {\n var result = lodash.iteratee || iteratee;\n result = result === iteratee ? baseIteratee : result;\n return arguments.length ? result(arguments[0], arguments[1]) : result;\n }\n\n /**\n * Gets the data for `map`.\n *\n * @private\n * @param {Object} map The map to query.\n * @param {string} key The reference key.\n * @returns {*} Returns the map data.\n */\n function getMapData(map, key) {\n var data = map.__data__;\n return isKeyable(key)\n ? data[typeof key == 'string' ? 'string' : 'hash']\n : data.map;\n }\n\n /**\n * Gets the property names, values, and compare flags of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the match data of `object`.\n */\n function getMatchData(object) {\n var result = keys(object),\n length = result.length;\n\n while (length--) {\n var key = result[length],\n value = object[key];\n\n result[length] = [key, value, isStrictComparable(value)];\n }\n return result;\n }\n\n /**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\n function getNative(object, key) {\n var value = getValue(object, key);\n return baseIsNative(value) ? value : undefined;\n }\n\n /**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\n function getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n }\n\n /**\n * Creates an array of the own enumerable symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\n var getSymbols = !nativeGetSymbols ? stubArray : function(object) {\n if (object == null) {\n return [];\n }\n object = Object(object);\n return arrayFilter(nativeGetSymbols(object), function(symbol) {\n return propertyIsEnumerable.call(object, symbol);\n });\n };\n\n /**\n * Creates an array of the own and inherited enumerable symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\n var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {\n var result = [];\n while (object) {\n arrayPush(result, getSymbols(object));\n object = getPrototype(object);\n }\n return result;\n };\n\n /**\n * Gets the `toStringTag` of `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\n var getTag = baseGetTag;\n\n // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.\n if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||\n (Map && getTag(new Map) != mapTag) ||\n (Promise && getTag(Promise.resolve()) != promiseTag) ||\n (Set && getTag(new Set) != setTag) ||\n (WeakMap && getTag(new WeakMap) != weakMapTag)) {\n getTag = function(value) {\n var result = baseGetTag(value),\n Ctor = result == objectTag ? value.constructor : undefined,\n ctorString = Ctor ? toSource(Ctor) : '';\n\n if (ctorString) {\n switch (ctorString) {\n case dataViewCtorString: return dataViewTag;\n case mapCtorString: return mapTag;\n case promiseCtorString: return promiseTag;\n case setCtorString: return setTag;\n case weakMapCtorString: return weakMapTag;\n }\n }\n return result;\n };\n }\n\n /**\n * Gets the view, applying any `transforms` to the `start` and `end` positions.\n *\n * @private\n * @param {number} start The start of the view.\n * @param {number} end The end of the view.\n * @param {Array} transforms The transformations to apply to the view.\n * @returns {Object} Returns an object containing the `start` and `end`\n * positions of the view.\n */\n function getView(start, end, transforms) {\n var index = -1,\n length = transforms.length;\n\n while (++index < length) {\n var data = transforms[index],\n size = data.size;\n\n switch (data.type) {\n case 'drop': start += size; break;\n case 'dropRight': end -= size; break;\n case 'take': end = nativeMin(end, start + size); break;\n case 'takeRight': start = nativeMax(start, end - size); break;\n }\n }\n return { 'start': start, 'end': end };\n }\n\n /**\n * Extracts wrapper details from the `source` body comment.\n *\n * @private\n * @param {string} source The source to inspect.\n * @returns {Array} Returns the wrapper details.\n */\n function getWrapDetails(source) {\n var match = source.match(reWrapDetails);\n return match ? match[1].split(reSplitDetails) : [];\n }\n\n /**\n * Checks if `path` exists on `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @param {Function} hasFunc The function to check properties.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n */\n function hasPath(object, path, hasFunc) {\n path = castPath(path, object);\n\n var index = -1,\n length = path.length,\n result = false;\n\n while (++index < length) {\n var key = toKey(path[index]);\n if (!(result = object != null && hasFunc(object, key))) {\n break;\n }\n object = object[key];\n }\n if (result || ++index != length) {\n return result;\n }\n length = object == null ? 0 : object.length;\n return !!length && isLength(length) && isIndex(key, length) &&\n (isArray(object) || isArguments(object));\n }\n\n /**\n * Initializes an array clone.\n *\n * @private\n * @param {Array} array The array to clone.\n * @returns {Array} Returns the initialized clone.\n */\n function initCloneArray(array) {\n var length = array.length,\n result = new array.constructor(length);\n\n // Add properties assigned by `RegExp#exec`.\n if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {\n result.index = array.index;\n result.input = array.input;\n }\n return result;\n }\n\n /**\n * Initializes an object clone.\n *\n * @private\n * @param {Object} object The object to clone.\n * @returns {Object} Returns the initialized clone.\n */\n function initCloneObject(object) {\n return (typeof object.constructor == 'function' && !isPrototype(object))\n ? baseCreate(getPrototype(object))\n : {};\n }\n\n /**\n * Initializes an object clone based on its `toStringTag`.\n *\n * **Note:** This function only supports cloning values with tags of\n * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.\n *\n * @private\n * @param {Object} object The object to clone.\n * @param {string} tag The `toStringTag` of the object to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the initialized clone.\n */\n function initCloneByTag(object, tag, isDeep) {\n var Ctor = object.constructor;\n switch (tag) {\n case arrayBufferTag:\n return cloneArrayBuffer(object);\n\n case boolTag:\n case dateTag:\n return new Ctor(+object);\n\n case dataViewTag:\n return cloneDataView(object, isDeep);\n\n case float32Tag: case float64Tag:\n case int8Tag: case int16Tag: case int32Tag:\n case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag:\n return cloneTypedArray(object, isDeep);\n\n case mapTag:\n return new Ctor;\n\n case numberTag:\n case stringTag:\n return new Ctor(object);\n\n case regexpTag:\n return cloneRegExp(object);\n\n case setTag:\n return new Ctor;\n\n case symbolTag:\n return cloneSymbol(object);\n }\n }\n\n /**\n * Inserts wrapper `details` in a comment at the top of the `source` body.\n *\n * @private\n * @param {string} source The source to modify.\n * @returns {Array} details The details to insert.\n * @returns {string} Returns the modified source.\n */\n function insertWrapDetails(source, details) {\n var length = details.length;\n if (!length) {\n return source;\n }\n var lastIndex = length - 1;\n details[lastIndex] = (length > 1 ? '& ' : '') + details[lastIndex];\n details = details.join(length > 2 ? ', ' : ' ');\n return source.replace(reWrapComment, '{\\n/* [wrapped with ' + details + '] */\\n');\n }\n\n /**\n * Checks if `value` is a flattenable `arguments` object or array.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.\n */\n function isFlattenable(value) {\n return isArray(value) || isArguments(value) ||\n !!(spreadableSymbol && value && value[spreadableSymbol]);\n }\n\n /**\n * Checks if `value` is a valid array-like index.\n *\n * @private\n * @param {*} value The value to check.\n * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.\n * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.\n */\n function isIndex(value, length) {\n var type = typeof value;\n length = length == null ? MAX_SAFE_INTEGER : length;\n\n return !!length &&\n (type == 'number' ||\n (type != 'symbol' && reIsUint.test(value))) &&\n (value > -1 && value % 1 == 0 && value < length);\n }\n\n /**\n * Checks if the given arguments are from an iteratee call.\n *\n * @private\n * @param {*} value The potential iteratee value argument.\n * @param {*} index The potential iteratee index or key argument.\n * @param {*} object The potential iteratee object argument.\n * @returns {boolean} Returns `true` if the arguments are from an iteratee call,\n * else `false`.\n */\n function isIterateeCall(value, index, object) {\n if (!isObject(object)) {\n return false;\n }\n var type = typeof index;\n if (type == 'number'\n ? (isArrayLike(object) && isIndex(index, object.length))\n : (type == 'string' && index in object)\n ) {\n return eq(object[index], value);\n }\n return false;\n }\n\n /**\n * Checks if `value` is a property name and not a property path.\n *\n * @private\n * @param {*} value The value to check.\n * @param {Object} [object] The object to query keys on.\n * @returns {boolean} Returns `true` if `value` is a property name, else `false`.\n */\n function isKey(value, object) {\n if (isArray(value)) {\n return false;\n }\n var type = typeof value;\n if (type == 'number' || type == 'symbol' || type == 'boolean' ||\n value == null || isSymbol(value)) {\n return true;\n }\n return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||\n (object != null && value in Object(object));\n }\n\n /**\n * Checks if `value` is suitable for use as unique object key.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is suitable, else `false`.\n */\n function isKeyable(value) {\n var type = typeof value;\n return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')\n ? (value !== '__proto__')\n : (value === null);\n }\n\n /**\n * Checks if `func` has a lazy counterpart.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` has a lazy counterpart,\n * else `false`.\n */\n function isLaziable(func) {\n var funcName = getFuncName(func),\n other = lodash[funcName];\n\n if (typeof other != 'function' || !(funcName in LazyWrapper.prototype)) {\n return false;\n }\n if (func === other) {\n return true;\n }\n var data = getData(other);\n return !!data && func === data[0];\n }\n\n /**\n * Checks if `func` has its source masked.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` is masked, else `false`.\n */\n function isMasked(func) {\n return !!maskSrcKey && (maskSrcKey in func);\n }\n\n /**\n * Checks if `func` is capable of being masked.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `func` is maskable, else `false`.\n */\n var isMaskable = coreJsData ? isFunction : stubFalse;\n\n /**\n * Checks if `value` is likely a prototype object.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.\n */\n function isPrototype(value) {\n var Ctor = value && value.constructor,\n proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;\n\n return value === proto;\n }\n\n /**\n * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` if suitable for strict\n * equality comparisons, else `false`.\n */\n function isStrictComparable(value) {\n return value === value && !isObject(value);\n }\n\n /**\n * A specialized version of `matchesProperty` for source values suitable\n * for strict equality comparisons, i.e. `===`.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @param {*} srcValue The value to match.\n * @returns {Function} Returns the new spec function.\n */\n function matchesStrictComparable(key, srcValue) {\n return function(object) {\n if (object == null) {\n return false;\n }\n return object[key] === srcValue &&\n (srcValue !== undefined || (key in Object(object)));\n };\n }\n\n /**\n * A specialized version of `_.memoize` which clears the memoized function's\n * cache when it exceeds `MAX_MEMOIZE_SIZE`.\n *\n * @private\n * @param {Function} func The function to have its output memoized.\n * @returns {Function} Returns the new memoized function.\n */\n function memoizeCapped(func) {\n var result = memoize(func, function(key) {\n if (cache.size === MAX_MEMOIZE_SIZE) {\n cache.clear();\n }\n return key;\n });\n\n var cache = result.cache;\n return result;\n }\n\n /**\n * Merges the function metadata of `source` into `data`.\n *\n * Merging metadata reduces the number of wrappers used to invoke a function.\n * This is possible because methods like `_.bind`, `_.curry`, and `_.partial`\n * may be applied regardless of execution order. Methods like `_.ary` and\n * `_.rearg` modify function arguments, making the order in which they are\n * executed important, preventing the merging of metadata. However, we make\n * an exception for a safe combined case where curried functions have `_.ary`\n * and or `_.rearg` applied.\n *\n * @private\n * @param {Array} data The destination metadata.\n * @param {Array} source The source metadata.\n * @returns {Array} Returns `data`.\n */\n function mergeData(data, source) {\n var bitmask = data[1],\n srcBitmask = source[1],\n newBitmask = bitmask | srcBitmask,\n isCommon = newBitmask < (WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG | WRAP_ARY_FLAG);\n\n var isCombo =\n ((srcBitmask == WRAP_ARY_FLAG) && (bitmask == WRAP_CURRY_FLAG)) ||\n ((srcBitmask == WRAP_ARY_FLAG) && (bitmask == WRAP_REARG_FLAG) && (data[7].length <= source[8])) ||\n ((srcBitmask == (WRAP_ARY_FLAG | WRAP_REARG_FLAG)) && (source[7].length <= source[8]) && (bitmask == WRAP_CURRY_FLAG));\n\n // Exit early if metadata can't be merged.\n if (!(isCommon || isCombo)) {\n return data;\n }\n // Use source `thisArg` if available.\n if (srcBitmask & WRAP_BIND_FLAG) {\n data[2] = source[2];\n // Set when currying a bound function.\n newBitmask |= bitmask & WRAP_BIND_FLAG ? 0 : WRAP_CURRY_BOUND_FLAG;\n }\n // Compose partial arguments.\n var value = source[3];\n if (value) {\n var partials = data[3];\n data[3] = partials ? composeArgs(partials, value, source[4]) : value;\n data[4] = partials ? replaceHolders(data[3], PLACEHOLDER) : source[4];\n }\n // Compose partial right arguments.\n value = source[5];\n if (value) {\n partials = data[5];\n data[5] = partials ? composeArgsRight(partials, value, source[6]) : value;\n data[6] = partials ? replaceHolders(data[5], PLACEHOLDER) : source[6];\n }\n // Use source `argPos` if available.\n value = source[7];\n if (value) {\n data[7] = value;\n }\n // Use source `ary` if it's smaller.\n if (srcBitmask & WRAP_ARY_FLAG) {\n data[8] = data[8] == null ? source[8] : nativeMin(data[8], source[8]);\n }\n // Use source `arity` if one is not provided.\n if (data[9] == null) {\n data[9] = source[9];\n }\n // Use source `func` and merge bitmasks.\n data[0] = source[0];\n data[1] = newBitmask;\n\n return data;\n }\n\n /**\n * This function is like\n * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * except that it includes inherited enumerable properties.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\n function nativeKeysIn(object) {\n var result = [];\n if (object != null) {\n for (var key in Object(object)) {\n result.push(key);\n }\n }\n return result;\n }\n\n /**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\n function objectToString(value) {\n return nativeObjectToString.call(value);\n }\n\n /**\n * A specialized version of `baseRest` which transforms the rest array.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @param {Function} transform The rest array transform.\n * @returns {Function} Returns the new function.\n */\n function overRest(func, start, transform) {\n start = nativeMax(start === undefined ? (func.length - 1) : start, 0);\n return function() {\n var args = arguments,\n index = -1,\n length = nativeMax(args.length - start, 0),\n array = Array(length);\n\n while (++index < length) {\n array[index] = args[start + index];\n }\n index = -1;\n var otherArgs = Array(start + 1);\n while (++index < start) {\n otherArgs[index] = args[index];\n }\n otherArgs[start] = transform(array);\n return apply(func, this, otherArgs);\n };\n }\n\n /**\n * Gets the parent value at `path` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array} path The path to get the parent value of.\n * @returns {*} Returns the parent value.\n */\n function parent(object, path) {\n return path.length < 2 ? object : baseGet(object, baseSlice(path, 0, -1));\n }\n\n /**\n * Reorder `array` according to the specified indexes where the element at\n * the first index is assigned as the first element, the element at\n * the second index is assigned as the second element, and so on.\n *\n * @private\n * @param {Array} array The array to reorder.\n * @param {Array} indexes The arranged array indexes.\n * @returns {Array} Returns `array`.\n */\n function reorder(array, indexes) {\n var arrLength = array.length,\n length = nativeMin(indexes.length, arrLength),\n oldArray = copyArray(array);\n\n while (length--) {\n var index = indexes[length];\n array[length] = isIndex(index, arrLength) ? oldArray[index] : undefined;\n }\n return array;\n }\n\n /**\n * Sets metadata for `func`.\n *\n * **Note:** If this function becomes hot, i.e. is invoked a lot in a short\n * period of time, it will trip its breaker and transition to an identity\n * function to avoid garbage collection pauses in V8. See\n * [V8 issue 2070](https://bugs.chromium.org/p/v8/issues/detail?id=2070)\n * for more details.\n *\n * @private\n * @param {Function} func The function to associate metadata with.\n * @param {*} data The metadata.\n * @returns {Function} Returns `func`.\n */\n var setData = shortOut(baseSetData);\n\n /**\n * A simple wrapper around the global [`setTimeout`](https://mdn.io/setTimeout).\n *\n * @private\n * @param {Function} func The function to delay.\n * @param {number} wait The number of milliseconds to delay invocation.\n * @returns {number|Object} Returns the timer id or timeout object.\n */\n var setTimeout = ctxSetTimeout || function(func, wait) {\n return root.setTimeout(func, wait);\n };\n\n /**\n * Sets the `toString` method of `func` to return `string`.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\n var setToString = shortOut(baseSetToString);\n\n /**\n * Sets the `toString` method of `wrapper` to mimic the source of `reference`\n * with wrapper details in a comment at the top of the source body.\n *\n * @private\n * @param {Function} wrapper The function to modify.\n * @param {Function} reference The reference function.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @returns {Function} Returns `wrapper`.\n */\n function setWrapToString(wrapper, reference, bitmask) {\n var source = (reference + '');\n return setToString(wrapper, insertWrapDetails(source, updateWrapDetails(getWrapDetails(source), bitmask)));\n }\n\n /**\n * Creates a function that'll short out and invoke `identity` instead\n * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`\n * milliseconds.\n *\n * @private\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new shortable function.\n */\n function shortOut(func) {\n var count = 0,\n lastCalled = 0;\n\n return function() {\n var stamp = nativeNow(),\n remaining = HOT_SPAN - (stamp - lastCalled);\n\n lastCalled = stamp;\n if (remaining > 0) {\n if (++count >= HOT_COUNT) {\n return arguments[0];\n }\n } else {\n count = 0;\n }\n return func.apply(undefined, arguments);\n };\n }\n\n /**\n * A specialized version of `_.shuffle` which mutates and sets the size of `array`.\n *\n * @private\n * @param {Array} array The array to shuffle.\n * @param {number} [size=array.length] The size of `array`.\n * @returns {Array} Returns `array`.\n */\n function shuffleSelf(array, size) {\n var index = -1,\n length = array.length,\n lastIndex = length - 1;\n\n size = size === undefined ? length : size;\n while (++index < size) {\n var rand = baseRandom(index, lastIndex),\n value = array[rand];\n\n array[rand] = array[index];\n array[index] = value;\n }\n array.length = size;\n return array;\n }\n\n /**\n * Converts `string` to a property path array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the property path array.\n */\n var stringToPath = memoizeCapped(function(string) {\n var result = [];\n if (string.charCodeAt(0) === 46 /* . */) {\n result.push('');\n }\n string.replace(rePropName, function(match, number, quote, subString) {\n result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));\n });\n return result;\n });\n\n /**\n * Converts `value` to a string key if it's not a string or symbol.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {string|symbol} Returns the key.\n */\n function toKey(value) {\n if (typeof value == 'string' || isSymbol(value)) {\n return value;\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n }\n\n /**\n * Converts `func` to its source code.\n *\n * @private\n * @param {Function} func The function to convert.\n * @returns {string} Returns the source code.\n */\n function toSource(func) {\n if (func != null) {\n try {\n return funcToString.call(func);\n } catch (e) {}\n try {\n return (func + '');\n } catch (e) {}\n }\n return '';\n }\n\n /**\n * Updates wrapper `details` based on `bitmask` flags.\n *\n * @private\n * @returns {Array} details The details to modify.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @returns {Array} Returns `details`.\n */\n function updateWrapDetails(details, bitmask) {\n arrayEach(wrapFlags, function(pair) {\n var value = '_.' + pair[0];\n if ((bitmask & pair[1]) && !arrayIncludes(details, value)) {\n details.push(value);\n }\n });\n return details.sort();\n }\n\n /**\n * Creates a clone of `wrapper`.\n *\n * @private\n * @param {Object} wrapper The wrapper to clone.\n * @returns {Object} Returns the cloned wrapper.\n */\n function wrapperClone(wrapper) {\n if (wrapper instanceof LazyWrapper) {\n return wrapper.clone();\n }\n var result = new LodashWrapper(wrapper.__wrapped__, wrapper.__chain__);\n result.__actions__ = copyArray(wrapper.__actions__);\n result.__index__ = wrapper.__index__;\n result.__values__ = wrapper.__values__;\n return result;\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates an array of elements split into groups the length of `size`.\n * If `array` can't be split evenly, the final chunk will be the remaining\n * elements.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to process.\n * @param {number} [size=1] The length of each chunk\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the new array of chunks.\n * @example\n *\n * _.chunk(['a', 'b', 'c', 'd'], 2);\n * // => [['a', 'b'], ['c', 'd']]\n *\n * _.chunk(['a', 'b', 'c', 'd'], 3);\n * // => [['a', 'b', 'c'], ['d']]\n */\n function chunk(array, size, guard) {\n if ((guard ? isIterateeCall(array, size, guard) : size === undefined)) {\n size = 1;\n } else {\n size = nativeMax(toInteger(size), 0);\n }\n var length = array == null ? 0 : array.length;\n if (!length || size < 1) {\n return [];\n }\n var index = 0,\n resIndex = 0,\n result = Array(nativeCeil(length / size));\n\n while (index < length) {\n result[resIndex++] = baseSlice(array, index, (index += size));\n }\n return result;\n }\n\n /**\n * Creates an array with all falsey values removed. The values `false`, `null`,\n * `0`, `\"\"`, `undefined`, and `NaN` are falsey.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to compact.\n * @returns {Array} Returns the new array of filtered values.\n * @example\n *\n * _.compact([0, 1, false, 2, '', 3]);\n * // => [1, 2, 3]\n */\n function compact(array) {\n var index = -1,\n length = array == null ? 0 : array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n if (value) {\n result[resIndex++] = value;\n }\n }\n return result;\n }\n\n /**\n * Creates a new array concatenating `array` with any additional arrays\n * and/or values.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to concatenate.\n * @param {...*} [values] The values to concatenate.\n * @returns {Array} Returns the new concatenated array.\n * @example\n *\n * var array = [1];\n * var other = _.concat(array, 2, [3], [[4]]);\n *\n * console.log(other);\n * // => [1, 2, 3, [4]]\n *\n * console.log(array);\n * // => [1]\n */\n function concat() {\n var length = arguments.length;\n if (!length) {\n return [];\n }\n var args = Array(length - 1),\n array = arguments[0],\n index = length;\n\n while (index--) {\n args[index - 1] = arguments[index];\n }\n return arrayPush(isArray(array) ? copyArray(array) : [array], baseFlatten(args, 1));\n }\n\n /**\n * Creates an array of `array` values not included in the other given arrays\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons. The order and references of result values are\n * determined by the first array.\n *\n * **Note:** Unlike `_.pullAll`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {...Array} [values] The values to exclude.\n * @returns {Array} Returns the new array of filtered values.\n * @see _.without, _.xor\n * @example\n *\n * _.difference([2, 1], [2, 3]);\n * // => [1]\n */\n var difference = baseRest(function(array, values) {\n return isArrayLikeObject(array)\n ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true))\n : [];\n });\n\n /**\n * This method is like `_.difference` except that it accepts `iteratee` which\n * is invoked for each element of `array` and `values` to generate the criterion\n * by which they're compared. The order and references of result values are\n * determined by the first array. The iteratee is invoked with one argument:\n * (value).\n *\n * **Note:** Unlike `_.pullAllBy`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {...Array} [values] The values to exclude.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns the new array of filtered values.\n * @example\n *\n * _.differenceBy([2.1, 1.2], [2.3, 3.4], Math.floor);\n * // => [1.2]\n *\n * // The `_.property` iteratee shorthand.\n * _.differenceBy([{ 'x': 2 }, { 'x': 1 }], [{ 'x': 1 }], 'x');\n * // => [{ 'x': 2 }]\n */\n var differenceBy = baseRest(function(array, values) {\n var iteratee = last(values);\n if (isArrayLikeObject(iteratee)) {\n iteratee = undefined;\n }\n return isArrayLikeObject(array)\n ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true), getIteratee(iteratee, 2))\n : [];\n });\n\n /**\n * This method is like `_.difference` except that it accepts `comparator`\n * which is invoked to compare elements of `array` to `values`. The order and\n * references of result values are determined by the first array. The comparator\n * is invoked with two arguments: (arrVal, othVal).\n *\n * **Note:** Unlike `_.pullAllWith`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {...Array} [values] The values to exclude.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of filtered values.\n * @example\n *\n * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];\n *\n * _.differenceWith(objects, [{ 'x': 1, 'y': 2 }], _.isEqual);\n * // => [{ 'x': 2, 'y': 1 }]\n */\n var differenceWith = baseRest(function(array, values) {\n var comparator = last(values);\n if (isArrayLikeObject(comparator)) {\n comparator = undefined;\n }\n return isArrayLikeObject(array)\n ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true), undefined, comparator)\n : [];\n });\n\n /**\n * Creates a slice of `array` with `n` elements dropped from the beginning.\n *\n * @static\n * @memberOf _\n * @since 0.5.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {number} [n=1] The number of elements to drop.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.drop([1, 2, 3]);\n * // => [2, 3]\n *\n * _.drop([1, 2, 3], 2);\n * // => [3]\n *\n * _.drop([1, 2, 3], 5);\n * // => []\n *\n * _.drop([1, 2, 3], 0);\n * // => [1, 2, 3]\n */\n function drop(array, n, guard) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n n = (guard || n === undefined) ? 1 : toInteger(n);\n return baseSlice(array, n < 0 ? 0 : n, length);\n }\n\n /**\n * Creates a slice of `array` with `n` elements dropped from the end.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {number} [n=1] The number of elements to drop.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.dropRight([1, 2, 3]);\n * // => [1, 2]\n *\n * _.dropRight([1, 2, 3], 2);\n * // => [1]\n *\n * _.dropRight([1, 2, 3], 5);\n * // => []\n *\n * _.dropRight([1, 2, 3], 0);\n * // => [1, 2, 3]\n */\n function dropRight(array, n, guard) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n n = (guard || n === undefined) ? 1 : toInteger(n);\n n = length - n;\n return baseSlice(array, 0, n < 0 ? 0 : n);\n }\n\n /**\n * Creates a slice of `array` excluding elements dropped from the end.\n * Elements are dropped until `predicate` returns falsey. The predicate is\n * invoked with three arguments: (value, index, array).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': true },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': false }\n * ];\n *\n * _.dropRightWhile(users, function(o) { return !o.active; });\n * // => objects for ['barney']\n *\n * // The `_.matches` iteratee shorthand.\n * _.dropRightWhile(users, { 'user': 'pebbles', 'active': false });\n * // => objects for ['barney', 'fred']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.dropRightWhile(users, ['active', false]);\n * // => objects for ['barney']\n *\n * // The `_.property` iteratee shorthand.\n * _.dropRightWhile(users, 'active');\n * // => objects for ['barney', 'fred', 'pebbles']\n */\n function dropRightWhile(array, predicate) {\n return (array && array.length)\n ? baseWhile(array, getIteratee(predicate, 3), true, true)\n : [];\n }\n\n /**\n * Creates a slice of `array` excluding elements dropped from the beginning.\n * Elements are dropped until `predicate` returns falsey. The predicate is\n * invoked with three arguments: (value, index, array).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': false },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': true }\n * ];\n *\n * _.dropWhile(users, function(o) { return !o.active; });\n * // => objects for ['pebbles']\n *\n * // The `_.matches` iteratee shorthand.\n * _.dropWhile(users, { 'user': 'barney', 'active': false });\n * // => objects for ['fred', 'pebbles']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.dropWhile(users, ['active', false]);\n * // => objects for ['pebbles']\n *\n * // The `_.property` iteratee shorthand.\n * _.dropWhile(users, 'active');\n * // => objects for ['barney', 'fred', 'pebbles']\n */\n function dropWhile(array, predicate) {\n return (array && array.length)\n ? baseWhile(array, getIteratee(predicate, 3), true)\n : [];\n }\n\n /**\n * Fills elements of `array` with `value` from `start` up to, but not\n * including, `end`.\n *\n * **Note:** This method mutates `array`.\n *\n * @static\n * @memberOf _\n * @since 3.2.0\n * @category Array\n * @param {Array} array The array to fill.\n * @param {*} value The value to fill `array` with.\n * @param {number} [start=0] The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = [1, 2, 3];\n *\n * _.fill(array, 'a');\n * console.log(array);\n * // => ['a', 'a', 'a']\n *\n * _.fill(Array(3), 2);\n * // => [2, 2, 2]\n *\n * _.fill([4, 6, 8, 10], '*', 1, 3);\n * // => [4, '*', '*', 10]\n */\n function fill(array, value, start, end) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n if (start && typeof start != 'number' && isIterateeCall(array, value, start)) {\n start = 0;\n end = length;\n }\n return baseFill(array, value, start, end);\n }\n\n /**\n * This method is like `_.find` except that it returns the index of the first\n * element `predicate` returns truthy for instead of the element itself.\n *\n * @static\n * @memberOf _\n * @since 1.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=0] The index to search from.\n * @returns {number} Returns the index of the found element, else `-1`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': false },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': true }\n * ];\n *\n * _.findIndex(users, function(o) { return o.user == 'barney'; });\n * // => 0\n *\n * // The `_.matches` iteratee shorthand.\n * _.findIndex(users, { 'user': 'fred', 'active': false });\n * // => 1\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.findIndex(users, ['active', false]);\n * // => 0\n *\n * // The `_.property` iteratee shorthand.\n * _.findIndex(users, 'active');\n * // => 2\n */\n function findIndex(array, predicate, fromIndex) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return -1;\n }\n var index = fromIndex == null ? 0 : toInteger(fromIndex);\n if (index < 0) {\n index = nativeMax(length + index, 0);\n }\n return baseFindIndex(array, getIteratee(predicate, 3), index);\n }\n\n /**\n * This method is like `_.findIndex` except that it iterates over elements\n * of `collection` from right to left.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=array.length-1] The index to search from.\n * @returns {number} Returns the index of the found element, else `-1`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': true },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': false }\n * ];\n *\n * _.findLastIndex(users, function(o) { return o.user == 'pebbles'; });\n * // => 2\n *\n * // The `_.matches` iteratee shorthand.\n * _.findLastIndex(users, { 'user': 'barney', 'active': true });\n * // => 0\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.findLastIndex(users, ['active', false]);\n * // => 2\n *\n * // The `_.property` iteratee shorthand.\n * _.findLastIndex(users, 'active');\n * // => 0\n */\n function findLastIndex(array, predicate, fromIndex) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return -1;\n }\n var index = length - 1;\n if (fromIndex !== undefined) {\n index = toInteger(fromIndex);\n index = fromIndex < 0\n ? nativeMax(length + index, 0)\n : nativeMin(index, length - 1);\n }\n return baseFindIndex(array, getIteratee(predicate, 3), index, true);\n }\n\n /**\n * Flattens `array` a single level deep.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to flatten.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * _.flatten([1, [2, [3, [4]], 5]]);\n * // => [1, 2, [3, [4]], 5]\n */\n function flatten(array) {\n var length = array == null ? 0 : array.length;\n return length ? baseFlatten(array, 1) : [];\n }\n\n /**\n * Recursively flattens `array`.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to flatten.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * _.flattenDeep([1, [2, [3, [4]], 5]]);\n * // => [1, 2, 3, 4, 5]\n */\n function flattenDeep(array) {\n var length = array == null ? 0 : array.length;\n return length ? baseFlatten(array, INFINITY) : [];\n }\n\n /**\n * Recursively flatten `array` up to `depth` times.\n *\n * @static\n * @memberOf _\n * @since 4.4.0\n * @category Array\n * @param {Array} array The array to flatten.\n * @param {number} [depth=1] The maximum recursion depth.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * var array = [1, [2, [3, [4]], 5]];\n *\n * _.flattenDepth(array, 1);\n * // => [1, 2, [3, [4]], 5]\n *\n * _.flattenDepth(array, 2);\n * // => [1, 2, 3, [4], 5]\n */\n function flattenDepth(array, depth) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n depth = depth === undefined ? 1 : toInteger(depth);\n return baseFlatten(array, depth);\n }\n\n /**\n * The inverse of `_.toPairs`; this method returns an object composed\n * from key-value `pairs`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} pairs The key-value pairs.\n * @returns {Object} Returns the new object.\n * @example\n *\n * _.fromPairs([['a', 1], ['b', 2]]);\n * // => { 'a': 1, 'b': 2 }\n */\n function fromPairs(pairs) {\n var index = -1,\n length = pairs == null ? 0 : pairs.length,\n result = {};\n\n while (++index < length) {\n var pair = pairs[index];\n result[pair[0]] = pair[1];\n }\n return result;\n }\n\n /**\n * Gets the first element of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @alias first\n * @category Array\n * @param {Array} array The array to query.\n * @returns {*} Returns the first element of `array`.\n * @example\n *\n * _.head([1, 2, 3]);\n * // => 1\n *\n * _.head([]);\n * // => undefined\n */\n function head(array) {\n return (array && array.length) ? array[0] : undefined;\n }\n\n /**\n * Gets the index at which the first occurrence of `value` is found in `array`\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons. If `fromIndex` is negative, it's used as the\n * offset from the end of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} [fromIndex=0] The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n * @example\n *\n * _.indexOf([1, 2, 1, 2], 2);\n * // => 1\n *\n * // Search from the `fromIndex`.\n * _.indexOf([1, 2, 1, 2], 2, 2);\n * // => 3\n */\n function indexOf(array, value, fromIndex) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return -1;\n }\n var index = fromIndex == null ? 0 : toInteger(fromIndex);\n if (index < 0) {\n index = nativeMax(length + index, 0);\n }\n return baseIndexOf(array, value, index);\n }\n\n /**\n * Gets all but the last element of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to query.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.initial([1, 2, 3]);\n * // => [1, 2]\n */\n function initial(array) {\n var length = array == null ? 0 : array.length;\n return length ? baseSlice(array, 0, -1) : [];\n }\n\n /**\n * Creates an array of unique values that are included in all given arrays\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons. The order and references of result values are\n * determined by the first array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @returns {Array} Returns the new array of intersecting values.\n * @example\n *\n * _.intersection([2, 1], [2, 3]);\n * // => [2]\n */\n var intersection = baseRest(function(arrays) {\n var mapped = arrayMap(arrays, castArrayLikeObject);\n return (mapped.length && mapped[0] === arrays[0])\n ? baseIntersection(mapped)\n : [];\n });\n\n /**\n * This method is like `_.intersection` except that it accepts `iteratee`\n * which is invoked for each element of each `arrays` to generate the criterion\n * by which they're compared. The order and references of result values are\n * determined by the first array. The iteratee is invoked with one argument:\n * (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns the new array of intersecting values.\n * @example\n *\n * _.intersectionBy([2.1, 1.2], [2.3, 3.4], Math.floor);\n * // => [2.1]\n *\n * // The `_.property` iteratee shorthand.\n * _.intersectionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');\n * // => [{ 'x': 1 }]\n */\n var intersectionBy = baseRest(function(arrays) {\n var iteratee = last(arrays),\n mapped = arrayMap(arrays, castArrayLikeObject);\n\n if (iteratee === last(mapped)) {\n iteratee = undefined;\n } else {\n mapped.pop();\n }\n return (mapped.length && mapped[0] === arrays[0])\n ? baseIntersection(mapped, getIteratee(iteratee, 2))\n : [];\n });\n\n /**\n * This method is like `_.intersection` except that it accepts `comparator`\n * which is invoked to compare elements of `arrays`. The order and references\n * of result values are determined by the first array. The comparator is\n * invoked with two arguments: (arrVal, othVal).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of intersecting values.\n * @example\n *\n * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];\n * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];\n *\n * _.intersectionWith(objects, others, _.isEqual);\n * // => [{ 'x': 1, 'y': 2 }]\n */\n var intersectionWith = baseRest(function(arrays) {\n var comparator = last(arrays),\n mapped = arrayMap(arrays, castArrayLikeObject);\n\n comparator = typeof comparator == 'function' ? comparator : undefined;\n if (comparator) {\n mapped.pop();\n }\n return (mapped.length && mapped[0] === arrays[0])\n ? baseIntersection(mapped, undefined, comparator)\n : [];\n });\n\n /**\n * Converts all elements in `array` into a string separated by `separator`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to convert.\n * @param {string} [separator=','] The element separator.\n * @returns {string} Returns the joined string.\n * @example\n *\n * _.join(['a', 'b', 'c'], '~');\n * // => 'a~b~c'\n */\n function join(array, separator) {\n return array == null ? '' : nativeJoin.call(array, separator);\n }\n\n /**\n * Gets the last element of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to query.\n * @returns {*} Returns the last element of `array`.\n * @example\n *\n * _.last([1, 2, 3]);\n * // => 3\n */\n function last(array) {\n var length = array == null ? 0 : array.length;\n return length ? array[length - 1] : undefined;\n }\n\n /**\n * This method is like `_.indexOf` except that it iterates over elements of\n * `array` from right to left.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} [fromIndex=array.length-1] The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n * @example\n *\n * _.lastIndexOf([1, 2, 1, 2], 2);\n * // => 3\n *\n * // Search from the `fromIndex`.\n * _.lastIndexOf([1, 2, 1, 2], 2, 2);\n * // => 1\n */\n function lastIndexOf(array, value, fromIndex) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return -1;\n }\n var index = length;\n if (fromIndex !== undefined) {\n index = toInteger(fromIndex);\n index = index < 0 ? nativeMax(length + index, 0) : nativeMin(index, length - 1);\n }\n return value === value\n ? strictLastIndexOf(array, value, index)\n : baseFindIndex(array, baseIsNaN, index, true);\n }\n\n /**\n * Gets the element at index `n` of `array`. If `n` is negative, the nth\n * element from the end is returned.\n *\n * @static\n * @memberOf _\n * @since 4.11.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {number} [n=0] The index of the element to return.\n * @returns {*} Returns the nth element of `array`.\n * @example\n *\n * var array = ['a', 'b', 'c', 'd'];\n *\n * _.nth(array, 1);\n * // => 'b'\n *\n * _.nth(array, -2);\n * // => 'c';\n */\n function nth(array, n) {\n return (array && array.length) ? baseNth(array, toInteger(n)) : undefined;\n }\n\n /**\n * Removes all given values from `array` using\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * **Note:** Unlike `_.without`, this method mutates `array`. Use `_.remove`\n * to remove elements from an array by predicate.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {...*} [values] The values to remove.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = ['a', 'b', 'c', 'a', 'b', 'c'];\n *\n * _.pull(array, 'a', 'c');\n * console.log(array);\n * // => ['b', 'b']\n */\n var pull = baseRest(pullAll);\n\n /**\n * This method is like `_.pull` except that it accepts an array of values to remove.\n *\n * **Note:** Unlike `_.difference`, this method mutates `array`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {Array} values The values to remove.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = ['a', 'b', 'c', 'a', 'b', 'c'];\n *\n * _.pullAll(array, ['a', 'c']);\n * console.log(array);\n * // => ['b', 'b']\n */\n function pullAll(array, values) {\n return (array && array.length && values && values.length)\n ? basePullAll(array, values)\n : array;\n }\n\n /**\n * This method is like `_.pullAll` except that it accepts `iteratee` which is\n * invoked for each element of `array` and `values` to generate the criterion\n * by which they're compared. The iteratee is invoked with one argument: (value).\n *\n * **Note:** Unlike `_.differenceBy`, this method mutates `array`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {Array} values The values to remove.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = [{ 'x': 1 }, { 'x': 2 }, { 'x': 3 }, { 'x': 1 }];\n *\n * _.pullAllBy(array, [{ 'x': 1 }, { 'x': 3 }], 'x');\n * console.log(array);\n * // => [{ 'x': 2 }]\n */\n function pullAllBy(array, values, iteratee) {\n return (array && array.length && values && values.length)\n ? basePullAll(array, values, getIteratee(iteratee, 2))\n : array;\n }\n\n /**\n * This method is like `_.pullAll` except that it accepts `comparator` which\n * is invoked to compare elements of `array` to `values`. The comparator is\n * invoked with two arguments: (arrVal, othVal).\n *\n * **Note:** Unlike `_.differenceWith`, this method mutates `array`.\n *\n * @static\n * @memberOf _\n * @since 4.6.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {Array} values The values to remove.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = [{ 'x': 1, 'y': 2 }, { 'x': 3, 'y': 4 }, { 'x': 5, 'y': 6 }];\n *\n * _.pullAllWith(array, [{ 'x': 3, 'y': 4 }], _.isEqual);\n * console.log(array);\n * // => [{ 'x': 1, 'y': 2 }, { 'x': 5, 'y': 6 }]\n */\n function pullAllWith(array, values, comparator) {\n return (array && array.length && values && values.length)\n ? basePullAll(array, values, undefined, comparator)\n : array;\n }\n\n /**\n * Removes elements from `array` corresponding to `indexes` and returns an\n * array of removed elements.\n *\n * **Note:** Unlike `_.at`, this method mutates `array`.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {...(number|number[])} [indexes] The indexes of elements to remove.\n * @returns {Array} Returns the new array of removed elements.\n * @example\n *\n * var array = ['a', 'b', 'c', 'd'];\n * var pulled = _.pullAt(array, [1, 3]);\n *\n * console.log(array);\n * // => ['a', 'c']\n *\n * console.log(pulled);\n * // => ['b', 'd']\n */\n var pullAt = flatRest(function(array, indexes) {\n var length = array == null ? 0 : array.length,\n result = baseAt(array, indexes);\n\n basePullAt(array, arrayMap(indexes, function(index) {\n return isIndex(index, length) ? +index : index;\n }).sort(compareAscending));\n\n return result;\n });\n\n /**\n * Removes all elements from `array` that `predicate` returns truthy for\n * and returns an array of the removed elements. The predicate is invoked\n * with three arguments: (value, index, array).\n *\n * **Note:** Unlike `_.filter`, this method mutates `array`. Use `_.pull`\n * to pull elements from an array by value.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new array of removed elements.\n * @example\n *\n * var array = [1, 2, 3, 4];\n * var evens = _.remove(array, function(n) {\n * return n % 2 == 0;\n * });\n *\n * console.log(array);\n * // => [1, 3]\n *\n * console.log(evens);\n * // => [2, 4]\n */\n function remove(array, predicate) {\n var result = [];\n if (!(array && array.length)) {\n return result;\n }\n var index = -1,\n indexes = [],\n length = array.length;\n\n predicate = getIteratee(predicate, 3);\n while (++index < length) {\n var value = array[index];\n if (predicate(value, index, array)) {\n result.push(value);\n indexes.push(index);\n }\n }\n basePullAt(array, indexes);\n return result;\n }\n\n /**\n * Reverses `array` so that the first element becomes the last, the second\n * element becomes the second to last, and so on.\n *\n * **Note:** This method mutates `array` and is based on\n * [`Array#reverse`](https://mdn.io/Array/reverse).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = [1, 2, 3];\n *\n * _.reverse(array);\n * // => [3, 2, 1]\n *\n * console.log(array);\n * // => [3, 2, 1]\n */\n function reverse(array) {\n return array == null ? array : nativeReverse.call(array);\n }\n\n /**\n * Creates a slice of `array` from `start` up to, but not including, `end`.\n *\n * **Note:** This method is used instead of\n * [`Array#slice`](https://mdn.io/Array/slice) to ensure dense arrays are\n * returned.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to slice.\n * @param {number} [start=0] The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns the slice of `array`.\n */\n function slice(array, start, end) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n if (end && typeof end != 'number' && isIterateeCall(array, start, end)) {\n start = 0;\n end = length;\n }\n else {\n start = start == null ? 0 : toInteger(start);\n end = end === undefined ? length : toInteger(end);\n }\n return baseSlice(array, start, end);\n }\n\n /**\n * Uses a binary search to determine the lowest index at which `value`\n * should be inserted into `array` in order to maintain its sort order.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n * @example\n *\n * _.sortedIndex([30, 50], 40);\n * // => 1\n */\n function sortedIndex(array, value) {\n return baseSortedIndex(array, value);\n }\n\n /**\n * This method is like `_.sortedIndex` except that it accepts `iteratee`\n * which is invoked for `value` and each element of `array` to compute their\n * sort ranking. The iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n * @example\n *\n * var objects = [{ 'x': 4 }, { 'x': 5 }];\n *\n * _.sortedIndexBy(objects, { 'x': 4 }, function(o) { return o.x; });\n * // => 0\n *\n * // The `_.property` iteratee shorthand.\n * _.sortedIndexBy(objects, { 'x': 4 }, 'x');\n * // => 0\n */\n function sortedIndexBy(array, value, iteratee) {\n return baseSortedIndexBy(array, value, getIteratee(iteratee, 2));\n }\n\n /**\n * This method is like `_.indexOf` except that it performs a binary\n * search on a sorted `array`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n * @example\n *\n * _.sortedIndexOf([4, 5, 5, 5, 6], 5);\n * // => 1\n */\n function sortedIndexOf(array, value) {\n var length = array == null ? 0 : array.length;\n if (length) {\n var index = baseSortedIndex(array, value);\n if (index < length && eq(array[index], value)) {\n return index;\n }\n }\n return -1;\n }\n\n /**\n * This method is like `_.sortedIndex` except that it returns the highest\n * index at which `value` should be inserted into `array` in order to\n * maintain its sort order.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n * @example\n *\n * _.sortedLastIndex([4, 5, 5, 5, 6], 5);\n * // => 4\n */\n function sortedLastIndex(array, value) {\n return baseSortedIndex(array, value, true);\n }\n\n /**\n * This method is like `_.sortedLastIndex` except that it accepts `iteratee`\n * which is invoked for `value` and each element of `array` to compute their\n * sort ranking. The iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n * @example\n *\n * var objects = [{ 'x': 4 }, { 'x': 5 }];\n *\n * _.sortedLastIndexBy(objects, { 'x': 4 }, function(o) { return o.x; });\n * // => 1\n *\n * // The `_.property` iteratee shorthand.\n * _.sortedLastIndexBy(objects, { 'x': 4 }, 'x');\n * // => 1\n */\n function sortedLastIndexBy(array, value, iteratee) {\n return baseSortedIndexBy(array, value, getIteratee(iteratee, 2), true);\n }\n\n /**\n * This method is like `_.lastIndexOf` except that it performs a binary\n * search on a sorted `array`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n * @example\n *\n * _.sortedLastIndexOf([4, 5, 5, 5, 6], 5);\n * // => 3\n */\n function sortedLastIndexOf(array, value) {\n var length = array == null ? 0 : array.length;\n if (length) {\n var index = baseSortedIndex(array, value, true) - 1;\n if (eq(array[index], value)) {\n return index;\n }\n }\n return -1;\n }\n\n /**\n * This method is like `_.uniq` except that it's designed and optimized\n * for sorted arrays.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @returns {Array} Returns the new duplicate free array.\n * @example\n *\n * _.sortedUniq([1, 1, 2]);\n * // => [1, 2]\n */\n function sortedUniq(array) {\n return (array && array.length)\n ? baseSortedUniq(array)\n : [];\n }\n\n /**\n * This method is like `_.uniqBy` except that it's designed and optimized\n * for sorted arrays.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n * @example\n *\n * _.sortedUniqBy([1.1, 1.2, 2.3, 2.4], Math.floor);\n * // => [1.1, 2.3]\n */\n function sortedUniqBy(array, iteratee) {\n return (array && array.length)\n ? baseSortedUniq(array, getIteratee(iteratee, 2))\n : [];\n }\n\n /**\n * Gets all but the first element of `array`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.tail([1, 2, 3]);\n * // => [2, 3]\n */\n function tail(array) {\n var length = array == null ? 0 : array.length;\n return length ? baseSlice(array, 1, length) : [];\n }\n\n /**\n * Creates a slice of `array` with `n` elements taken from the beginning.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {number} [n=1] The number of elements to take.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.take([1, 2, 3]);\n * // => [1]\n *\n * _.take([1, 2, 3], 2);\n * // => [1, 2]\n *\n * _.take([1, 2, 3], 5);\n * // => [1, 2, 3]\n *\n * _.take([1, 2, 3], 0);\n * // => []\n */\n function take(array, n, guard) {\n if (!(array && array.length)) {\n return [];\n }\n n = (guard || n === undefined) ? 1 : toInteger(n);\n return baseSlice(array, 0, n < 0 ? 0 : n);\n }\n\n /**\n * Creates a slice of `array` with `n` elements taken from the end.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {number} [n=1] The number of elements to take.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.takeRight([1, 2, 3]);\n * // => [3]\n *\n * _.takeRight([1, 2, 3], 2);\n * // => [2, 3]\n *\n * _.takeRight([1, 2, 3], 5);\n * // => [1, 2, 3]\n *\n * _.takeRight([1, 2, 3], 0);\n * // => []\n */\n function takeRight(array, n, guard) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n n = (guard || n === undefined) ? 1 : toInteger(n);\n n = length - n;\n return baseSlice(array, n < 0 ? 0 : n, length);\n }\n\n /**\n * Creates a slice of `array` with elements taken from the end. Elements are\n * taken until `predicate` returns falsey. The predicate is invoked with\n * three arguments: (value, index, array).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': true },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': false }\n * ];\n *\n * _.takeRightWhile(users, function(o) { return !o.active; });\n * // => objects for ['fred', 'pebbles']\n *\n * // The `_.matches` iteratee shorthand.\n * _.takeRightWhile(users, { 'user': 'pebbles', 'active': false });\n * // => objects for ['pebbles']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.takeRightWhile(users, ['active', false]);\n * // => objects for ['fred', 'pebbles']\n *\n * // The `_.property` iteratee shorthand.\n * _.takeRightWhile(users, 'active');\n * // => []\n */\n function takeRightWhile(array, predicate) {\n return (array && array.length)\n ? baseWhile(array, getIteratee(predicate, 3), false, true)\n : [];\n }\n\n /**\n * Creates a slice of `array` with elements taken from the beginning. Elements\n * are taken until `predicate` returns falsey. The predicate is invoked with\n * three arguments: (value, index, array).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': false },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': true }\n * ];\n *\n * _.takeWhile(users, function(o) { return !o.active; });\n * // => objects for ['barney', 'fred']\n *\n * // The `_.matches` iteratee shorthand.\n * _.takeWhile(users, { 'user': 'barney', 'active': false });\n * // => objects for ['barney']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.takeWhile(users, ['active', false]);\n * // => objects for ['barney', 'fred']\n *\n * // The `_.property` iteratee shorthand.\n * _.takeWhile(users, 'active');\n * // => []\n */\n function takeWhile(array, predicate) {\n return (array && array.length)\n ? baseWhile(array, getIteratee(predicate, 3))\n : [];\n }\n\n /**\n * Creates an array of unique values, in order, from all given arrays using\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @returns {Array} Returns the new array of combined values.\n * @example\n *\n * _.union([2], [1, 2]);\n * // => [2, 1]\n */\n var union = baseRest(function(arrays) {\n return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true));\n });\n\n /**\n * This method is like `_.union` except that it accepts `iteratee` which is\n * invoked for each element of each `arrays` to generate the criterion by\n * which uniqueness is computed. Result values are chosen from the first\n * array in which the value occurs. The iteratee is invoked with one argument:\n * (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns the new array of combined values.\n * @example\n *\n * _.unionBy([2.1], [1.2, 2.3], Math.floor);\n * // => [2.1, 1.2]\n *\n * // The `_.property` iteratee shorthand.\n * _.unionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');\n * // => [{ 'x': 1 }, { 'x': 2 }]\n */\n var unionBy = baseRest(function(arrays) {\n var iteratee = last(arrays);\n if (isArrayLikeObject(iteratee)) {\n iteratee = undefined;\n }\n return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), getIteratee(iteratee, 2));\n });\n\n /**\n * This method is like `_.union` except that it accepts `comparator` which\n * is invoked to compare elements of `arrays`. Result values are chosen from\n * the first array in which the value occurs. The comparator is invoked\n * with two arguments: (arrVal, othVal).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of combined values.\n * @example\n *\n * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];\n * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];\n *\n * _.unionWith(objects, others, _.isEqual);\n * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]\n */\n var unionWith = baseRest(function(arrays) {\n var comparator = last(arrays);\n comparator = typeof comparator == 'function' ? comparator : undefined;\n return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), undefined, comparator);\n });\n\n /**\n * Creates a duplicate-free version of an array, using\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons, in which only the first occurrence of each element\n * is kept. The order of result values is determined by the order they occur\n * in the array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @returns {Array} Returns the new duplicate free array.\n * @example\n *\n * _.uniq([2, 1, 2]);\n * // => [2, 1]\n */\n function uniq(array) {\n return (array && array.length) ? baseUniq(array) : [];\n }\n\n /**\n * This method is like `_.uniq` except that it accepts `iteratee` which is\n * invoked for each element in `array` to generate the criterion by which\n * uniqueness is computed. The order of result values is determined by the\n * order they occur in the array. The iteratee is invoked with one argument:\n * (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n * @example\n *\n * _.uniqBy([2.1, 1.2, 2.3], Math.floor);\n * // => [2.1, 1.2]\n *\n * // The `_.property` iteratee shorthand.\n * _.uniqBy([{ 'x': 1 }, { 'x': 2 }, { 'x': 1 }], 'x');\n * // => [{ 'x': 1 }, { 'x': 2 }]\n */\n function uniqBy(array, iteratee) {\n return (array && array.length) ? baseUniq(array, getIteratee(iteratee, 2)) : [];\n }\n\n /**\n * This method is like `_.uniq` except that it accepts `comparator` which\n * is invoked to compare elements of `array`. The order of result values is\n * determined by the order they occur in the array.The comparator is invoked\n * with two arguments: (arrVal, othVal).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n * @example\n *\n * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 2 }];\n *\n * _.uniqWith(objects, _.isEqual);\n * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }]\n */\n function uniqWith(array, comparator) {\n comparator = typeof comparator == 'function' ? comparator : undefined;\n return (array && array.length) ? baseUniq(array, undefined, comparator) : [];\n }\n\n /**\n * This method is like `_.zip` except that it accepts an array of grouped\n * elements and creates an array regrouping the elements to their pre-zip\n * configuration.\n *\n * @static\n * @memberOf _\n * @since 1.2.0\n * @category Array\n * @param {Array} array The array of grouped elements to process.\n * @returns {Array} Returns the new array of regrouped elements.\n * @example\n *\n * var zipped = _.zip(['a', 'b'], [1, 2], [true, false]);\n * // => [['a', 1, true], ['b', 2, false]]\n *\n * _.unzip(zipped);\n * // => [['a', 'b'], [1, 2], [true, false]]\n */\n function unzip(array) {\n if (!(array && array.length)) {\n return [];\n }\n var length = 0;\n array = arrayFilter(array, function(group) {\n if (isArrayLikeObject(group)) {\n length = nativeMax(group.length, length);\n return true;\n }\n });\n return baseTimes(length, function(index) {\n return arrayMap(array, baseProperty(index));\n });\n }\n\n /**\n * This method is like `_.unzip` except that it accepts `iteratee` to specify\n * how regrouped values should be combined. The iteratee is invoked with the\n * elements of each group: (...group).\n *\n * @static\n * @memberOf _\n * @since 3.8.0\n * @category Array\n * @param {Array} array The array of grouped elements to process.\n * @param {Function} [iteratee=_.identity] The function to combine\n * regrouped values.\n * @returns {Array} Returns the new array of regrouped elements.\n * @example\n *\n * var zipped = _.zip([1, 2], [10, 20], [100, 200]);\n * // => [[1, 10, 100], [2, 20, 200]]\n *\n * _.unzipWith(zipped, _.add);\n * // => [3, 30, 300]\n */\n function unzipWith(array, iteratee) {\n if (!(array && array.length)) {\n return [];\n }\n var result = unzip(array);\n if (iteratee == null) {\n return result;\n }\n return arrayMap(result, function(group) {\n return apply(iteratee, undefined, group);\n });\n }\n\n /**\n * Creates an array excluding all given values using\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * **Note:** Unlike `_.pull`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {...*} [values] The values to exclude.\n * @returns {Array} Returns the new array of filtered values.\n * @see _.difference, _.xor\n * @example\n *\n * _.without([2, 1, 2, 3], 1, 2);\n * // => [3]\n */\n var without = baseRest(function(array, values) {\n return isArrayLikeObject(array)\n ? baseDifference(array, values)\n : [];\n });\n\n /**\n * Creates an array of unique values that is the\n * [symmetric difference](https://en.wikipedia.org/wiki/Symmetric_difference)\n * of the given arrays. The order of result values is determined by the order\n * they occur in the arrays.\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @returns {Array} Returns the new array of filtered values.\n * @see _.difference, _.without\n * @example\n *\n * _.xor([2, 1], [2, 3]);\n * // => [1, 3]\n */\n var xor = baseRest(function(arrays) {\n return baseXor(arrayFilter(arrays, isArrayLikeObject));\n });\n\n /**\n * This method is like `_.xor` except that it accepts `iteratee` which is\n * invoked for each element of each `arrays` to generate the criterion by\n * which by which they're compared. The order of result values is determined\n * by the order they occur in the arrays. The iteratee is invoked with one\n * argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns the new array of filtered values.\n * @example\n *\n * _.xorBy([2.1, 1.2], [2.3, 3.4], Math.floor);\n * // => [1.2, 3.4]\n *\n * // The `_.property` iteratee shorthand.\n * _.xorBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');\n * // => [{ 'x': 2 }]\n */\n var xorBy = baseRest(function(arrays) {\n var iteratee = last(arrays);\n if (isArrayLikeObject(iteratee)) {\n iteratee = undefined;\n }\n return baseXor(arrayFilter(arrays, isArrayLikeObject), getIteratee(iteratee, 2));\n });\n\n /**\n * This method is like `_.xor` except that it accepts `comparator` which is\n * invoked to compare elements of `arrays`. The order of result values is\n * determined by the order they occur in the arrays. The comparator is invoked\n * with two arguments: (arrVal, othVal).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of filtered values.\n * @example\n *\n * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];\n * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];\n *\n * _.xorWith(objects, others, _.isEqual);\n * // => [{ 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]\n */\n var xorWith = baseRest(function(arrays) {\n var comparator = last(arrays);\n comparator = typeof comparator == 'function' ? comparator : undefined;\n return baseXor(arrayFilter(arrays, isArrayLikeObject), undefined, comparator);\n });\n\n /**\n * Creates an array of grouped elements, the first of which contains the\n * first elements of the given arrays, the second of which contains the\n * second elements of the given arrays, and so on.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {...Array} [arrays] The arrays to process.\n * @returns {Array} Returns the new array of grouped elements.\n * @example\n *\n * _.zip(['a', 'b'], [1, 2], [true, false]);\n * // => [['a', 1, true], ['b', 2, false]]\n */\n var zip = baseRest(unzip);\n\n /**\n * This method is like `_.fromPairs` except that it accepts two arrays,\n * one of property identifiers and one of corresponding values.\n *\n * @static\n * @memberOf _\n * @since 0.4.0\n * @category Array\n * @param {Array} [props=[]] The property identifiers.\n * @param {Array} [values=[]] The property values.\n * @returns {Object} Returns the new object.\n * @example\n *\n * _.zipObject(['a', 'b'], [1, 2]);\n * // => { 'a': 1, 'b': 2 }\n */\n function zipObject(props, values) {\n return baseZipObject(props || [], values || [], assignValue);\n }\n\n /**\n * This method is like `_.zipObject` except that it supports property paths.\n *\n * @static\n * @memberOf _\n * @since 4.1.0\n * @category Array\n * @param {Array} [props=[]] The property identifiers.\n * @param {Array} [values=[]] The property values.\n * @returns {Object} Returns the new object.\n * @example\n *\n * _.zipObjectDeep(['a.b[0].c', 'a.b[1].d'], [1, 2]);\n * // => { 'a': { 'b': [{ 'c': 1 }, { 'd': 2 }] } }\n */\n function zipObjectDeep(props, values) {\n return baseZipObject(props || [], values || [], baseSet);\n }\n\n /**\n * This method is like `_.zip` except that it accepts `iteratee` to specify\n * how grouped values should be combined. The iteratee is invoked with the\n * elements of each group: (...group).\n *\n * @static\n * @memberOf _\n * @since 3.8.0\n * @category Array\n * @param {...Array} [arrays] The arrays to process.\n * @param {Function} [iteratee=_.identity] The function to combine\n * grouped values.\n * @returns {Array} Returns the new array of grouped elements.\n * @example\n *\n * _.zipWith([1, 2], [10, 20], [100, 200], function(a, b, c) {\n * return a + b + c;\n * });\n * // => [111, 222]\n */\n var zipWith = baseRest(function(arrays) {\n var length = arrays.length,\n iteratee = length > 1 ? arrays[length - 1] : undefined;\n\n iteratee = typeof iteratee == 'function' ? (arrays.pop(), iteratee) : undefined;\n return unzipWith(arrays, iteratee);\n });\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a `lodash` wrapper instance that wraps `value` with explicit method\n * chain sequences enabled. The result of such sequences must be unwrapped\n * with `_#value`.\n *\n * @static\n * @memberOf _\n * @since 1.3.0\n * @category Seq\n * @param {*} value The value to wrap.\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36 },\n * { 'user': 'fred', 'age': 40 },\n * { 'user': 'pebbles', 'age': 1 }\n * ];\n *\n * var youngest = _\n * .chain(users)\n * .sortBy('age')\n * .map(function(o) {\n * return o.user + ' is ' + o.age;\n * })\n * .head()\n * .value();\n * // => 'pebbles is 1'\n */\n function chain(value) {\n var result = lodash(value);\n result.__chain__ = true;\n return result;\n }\n\n /**\n * This method invokes `interceptor` and returns `value`. The interceptor\n * is invoked with one argument; (value). The purpose of this method is to\n * \"tap into\" a method chain sequence in order to modify intermediate results.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Seq\n * @param {*} value The value to provide to `interceptor`.\n * @param {Function} interceptor The function to invoke.\n * @returns {*} Returns `value`.\n * @example\n *\n * _([1, 2, 3])\n * .tap(function(array) {\n * // Mutate input array.\n * array.pop();\n * })\n * .reverse()\n * .value();\n * // => [2, 1]\n */\n function tap(value, interceptor) {\n interceptor(value);\n return value;\n }\n\n /**\n * This method is like `_.tap` except that it returns the result of `interceptor`.\n * The purpose of this method is to \"pass thru\" values replacing intermediate\n * results in a method chain sequence.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Seq\n * @param {*} value The value to provide to `interceptor`.\n * @param {Function} interceptor The function to invoke.\n * @returns {*} Returns the result of `interceptor`.\n * @example\n *\n * _(' abc ')\n * .chain()\n * .trim()\n * .thru(function(value) {\n * return [value];\n * })\n * .value();\n * // => ['abc']\n */\n function thru(value, interceptor) {\n return interceptor(value);\n }\n\n /**\n * This method is the wrapper version of `_.at`.\n *\n * @name at\n * @memberOf _\n * @since 1.0.0\n * @category Seq\n * @param {...(string|string[])} [paths] The property paths to pick.\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }, 4] };\n *\n * _(object).at(['a[0].b.c', 'a[1]']).value();\n * // => [3, 4]\n */\n var wrapperAt = flatRest(function(paths) {\n var length = paths.length,\n start = length ? paths[0] : 0,\n value = this.__wrapped__,\n interceptor = function(object) { return baseAt(object, paths); };\n\n if (length > 1 || this.__actions__.length ||\n !(value instanceof LazyWrapper) || !isIndex(start)) {\n return this.thru(interceptor);\n }\n value = value.slice(start, +start + (length ? 1 : 0));\n value.__actions__.push({\n 'func': thru,\n 'args': [interceptor],\n 'thisArg': undefined\n });\n return new LodashWrapper(value, this.__chain__).thru(function(array) {\n if (length && !array.length) {\n array.push(undefined);\n }\n return array;\n });\n });\n\n /**\n * Creates a `lodash` wrapper instance with explicit method chain sequences enabled.\n *\n * @name chain\n * @memberOf _\n * @since 0.1.0\n * @category Seq\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36 },\n * { 'user': 'fred', 'age': 40 }\n * ];\n *\n * // A sequence without explicit chaining.\n * _(users).head();\n * // => { 'user': 'barney', 'age': 36 }\n *\n * // A sequence with explicit chaining.\n * _(users)\n * .chain()\n * .head()\n * .pick('user')\n * .value();\n * // => { 'user': 'barney' }\n */\n function wrapperChain() {\n return chain(this);\n }\n\n /**\n * Executes the chain sequence and returns the wrapped result.\n *\n * @name commit\n * @memberOf _\n * @since 3.2.0\n * @category Seq\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * var array = [1, 2];\n * var wrapped = _(array).push(3);\n *\n * console.log(array);\n * // => [1, 2]\n *\n * wrapped = wrapped.commit();\n * console.log(array);\n * // => [1, 2, 3]\n *\n * wrapped.last();\n * // => 3\n *\n * console.log(array);\n * // => [1, 2, 3]\n */\n function wrapperCommit() {\n return new LodashWrapper(this.value(), this.__chain__);\n }\n\n /**\n * Gets the next value on a wrapped object following the\n * [iterator protocol](https://mdn.io/iteration_protocols#iterator).\n *\n * @name next\n * @memberOf _\n * @since 4.0.0\n * @category Seq\n * @returns {Object} Returns the next iterator value.\n * @example\n *\n * var wrapped = _([1, 2]);\n *\n * wrapped.next();\n * // => { 'done': false, 'value': 1 }\n *\n * wrapped.next();\n * // => { 'done': false, 'value': 2 }\n *\n * wrapped.next();\n * // => { 'done': true, 'value': undefined }\n */\n function wrapperNext() {\n if (this.__values__ === undefined) {\n this.__values__ = toArray(this.value());\n }\n var done = this.__index__ >= this.__values__.length,\n value = done ? undefined : this.__values__[this.__index__++];\n\n return { 'done': done, 'value': value };\n }\n\n /**\n * Enables the wrapper to be iterable.\n *\n * @name Symbol.iterator\n * @memberOf _\n * @since 4.0.0\n * @category Seq\n * @returns {Object} Returns the wrapper object.\n * @example\n *\n * var wrapped = _([1, 2]);\n *\n * wrapped[Symbol.iterator]() === wrapped;\n * // => true\n *\n * Array.from(wrapped);\n * // => [1, 2]\n */\n function wrapperToIterator() {\n return this;\n }\n\n /**\n * Creates a clone of the chain sequence planting `value` as the wrapped value.\n *\n * @name plant\n * @memberOf _\n * @since 3.2.0\n * @category Seq\n * @param {*} value The value to plant.\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * function square(n) {\n * return n * n;\n * }\n *\n * var wrapped = _([1, 2]).map(square);\n * var other = wrapped.plant([3, 4]);\n *\n * other.value();\n * // => [9, 16]\n *\n * wrapped.value();\n * // => [1, 4]\n */\n function wrapperPlant(value) {\n var result,\n parent = this;\n\n while (parent instanceof baseLodash) {\n var clone = wrapperClone(parent);\n clone.__index__ = 0;\n clone.__values__ = undefined;\n if (result) {\n previous.__wrapped__ = clone;\n } else {\n result = clone;\n }\n var previous = clone;\n parent = parent.__wrapped__;\n }\n previous.__wrapped__ = value;\n return result;\n }\n\n /**\n * This method is the wrapper version of `_.reverse`.\n *\n * **Note:** This method mutates the wrapped array.\n *\n * @name reverse\n * @memberOf _\n * @since 0.1.0\n * @category Seq\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * var array = [1, 2, 3];\n *\n * _(array).reverse().value()\n * // => [3, 2, 1]\n *\n * console.log(array);\n * // => [3, 2, 1]\n */\n function wrapperReverse() {\n var value = this.__wrapped__;\n if (value instanceof LazyWrapper) {\n var wrapped = value;\n if (this.__actions__.length) {\n wrapped = new LazyWrapper(this);\n }\n wrapped = wrapped.reverse();\n wrapped.__actions__.push({\n 'func': thru,\n 'args': [reverse],\n 'thisArg': undefined\n });\n return new LodashWrapper(wrapped, this.__chain__);\n }\n return this.thru(reverse);\n }\n\n /**\n * Executes the chain sequence to resolve the unwrapped value.\n *\n * @name value\n * @memberOf _\n * @since 0.1.0\n * @alias toJSON, valueOf\n * @category Seq\n * @returns {*} Returns the resolved unwrapped value.\n * @example\n *\n * _([1, 2, 3]).value();\n * // => [1, 2, 3]\n */\n function wrapperValue() {\n return baseWrapperValue(this.__wrapped__, this.__actions__);\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates an object composed of keys generated from the results of running\n * each element of `collection` thru `iteratee`. The corresponding value of\n * each key is the number of times the key was returned by `iteratee`. The\n * iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 0.5.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The iteratee to transform keys.\n * @returns {Object} Returns the composed aggregate object.\n * @example\n *\n * _.countBy([6.1, 4.2, 6.3], Math.floor);\n * // => { '4': 1, '6': 2 }\n *\n * // The `_.property` iteratee shorthand.\n * _.countBy(['one', 'two', 'three'], 'length');\n * // => { '3': 2, '5': 1 }\n */\n var countBy = createAggregator(function(result, value, key) {\n if (hasOwnProperty.call(result, key)) {\n ++result[key];\n } else {\n baseAssignValue(result, key, 1);\n }\n });\n\n /**\n * Checks if `predicate` returns truthy for **all** elements of `collection`.\n * Iteration is stopped once `predicate` returns falsey. The predicate is\n * invoked with three arguments: (value, index|key, collection).\n *\n * **Note:** This method returns `true` for\n * [empty collections](https://en.wikipedia.org/wiki/Empty_set) because\n * [everything is true](https://en.wikipedia.org/wiki/Vacuous_truth) of\n * elements of empty collections.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {boolean} Returns `true` if all elements pass the predicate check,\n * else `false`.\n * @example\n *\n * _.every([true, 1, null, 'yes'], Boolean);\n * // => false\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': false },\n * { 'user': 'fred', 'age': 40, 'active': false }\n * ];\n *\n * // The `_.matches` iteratee shorthand.\n * _.every(users, { 'user': 'barney', 'active': false });\n * // => false\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.every(users, ['active', false]);\n * // => true\n *\n * // The `_.property` iteratee shorthand.\n * _.every(users, 'active');\n * // => false\n */\n function every(collection, predicate, guard) {\n var func = isArray(collection) ? arrayEvery : baseEvery;\n if (guard && isIterateeCall(collection, predicate, guard)) {\n predicate = undefined;\n }\n return func(collection, getIteratee(predicate, 3));\n }\n\n /**\n * Iterates over elements of `collection`, returning an array of all elements\n * `predicate` returns truthy for. The predicate is invoked with three\n * arguments: (value, index|key, collection).\n *\n * **Note:** Unlike `_.remove`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n * @see _.reject\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': true },\n * { 'user': 'fred', 'age': 40, 'active': false }\n * ];\n *\n * _.filter(users, function(o) { return !o.active; });\n * // => objects for ['fred']\n *\n * // The `_.matches` iteratee shorthand.\n * _.filter(users, { 'age': 36, 'active': true });\n * // => objects for ['barney']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.filter(users, ['active', false]);\n * // => objects for ['fred']\n *\n * // The `_.property` iteratee shorthand.\n * _.filter(users, 'active');\n * // => objects for ['barney']\n */\n function filter(collection, predicate) {\n var func = isArray(collection) ? arrayFilter : baseFilter;\n return func(collection, getIteratee(predicate, 3));\n }\n\n /**\n * Iterates over elements of `collection`, returning the first element\n * `predicate` returns truthy for. The predicate is invoked with three\n * arguments: (value, index|key, collection).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=0] The index to search from.\n * @returns {*} Returns the matched element, else `undefined`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': true },\n * { 'user': 'fred', 'age': 40, 'active': false },\n * { 'user': 'pebbles', 'age': 1, 'active': true }\n * ];\n *\n * _.find(users, function(o) { return o.age < 40; });\n * // => object for 'barney'\n *\n * // The `_.matches` iteratee shorthand.\n * _.find(users, { 'age': 1, 'active': true });\n * // => object for 'pebbles'\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.find(users, ['active', false]);\n * // => object for 'fred'\n *\n * // The `_.property` iteratee shorthand.\n * _.find(users, 'active');\n * // => object for 'barney'\n */\n var find = createFind(findIndex);\n\n /**\n * This method is like `_.find` except that it iterates over elements of\n * `collection` from right to left.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=collection.length-1] The index to search from.\n * @returns {*} Returns the matched element, else `undefined`.\n * @example\n *\n * _.findLast([1, 2, 3, 4], function(n) {\n * return n % 2 == 1;\n * });\n * // => 3\n */\n var findLast = createFind(findLastIndex);\n\n /**\n * Creates a flattened array of values by running each element in `collection`\n * thru `iteratee` and flattening the mapped results. The iteratee is invoked\n * with three arguments: (value, index|key, collection).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * function duplicate(n) {\n * return [n, n];\n * }\n *\n * _.flatMap([1, 2], duplicate);\n * // => [1, 1, 2, 2]\n */\n function flatMap(collection, iteratee) {\n return baseFlatten(map(collection, iteratee), 1);\n }\n\n /**\n * This method is like `_.flatMap` except that it recursively flattens the\n * mapped results.\n *\n * @static\n * @memberOf _\n * @since 4.7.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * function duplicate(n) {\n * return [[[n, n]]];\n * }\n *\n * _.flatMapDeep([1, 2], duplicate);\n * // => [1, 1, 2, 2]\n */\n function flatMapDeep(collection, iteratee) {\n return baseFlatten(map(collection, iteratee), INFINITY);\n }\n\n /**\n * This method is like `_.flatMap` except that it recursively flattens the\n * mapped results up to `depth` times.\n *\n * @static\n * @memberOf _\n * @since 4.7.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @param {number} [depth=1] The maximum recursion depth.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * function duplicate(n) {\n * return [[[n, n]]];\n * }\n *\n * _.flatMapDepth([1, 2], duplicate, 2);\n * // => [[1, 1], [2, 2]]\n */\n function flatMapDepth(collection, iteratee, depth) {\n depth = depth === undefined ? 1 : toInteger(depth);\n return baseFlatten(map(collection, iteratee), depth);\n }\n\n /**\n * Iterates over elements of `collection` and invokes `iteratee` for each element.\n * The iteratee is invoked with three arguments: (value, index|key, collection).\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * **Note:** As with other \"Collections\" methods, objects with a \"length\"\n * property are iterated like arrays. To avoid this behavior use `_.forIn`\n * or `_.forOwn` for object iteration.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @alias each\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n * @see _.forEachRight\n * @example\n *\n * _.forEach([1, 2], function(value) {\n * console.log(value);\n * });\n * // => Logs `1` then `2`.\n *\n * _.forEach({ 'a': 1, 'b': 2 }, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'a' then 'b' (iteration order is not guaranteed).\n */\n function forEach(collection, iteratee) {\n var func = isArray(collection) ? arrayEach : baseEach;\n return func(collection, getIteratee(iteratee, 3));\n }\n\n /**\n * This method is like `_.forEach` except that it iterates over elements of\n * `collection` from right to left.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @alias eachRight\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n * @see _.forEach\n * @example\n *\n * _.forEachRight([1, 2], function(value) {\n * console.log(value);\n * });\n * // => Logs `2` then `1`.\n */\n function forEachRight(collection, iteratee) {\n var func = isArray(collection) ? arrayEachRight : baseEachRight;\n return func(collection, getIteratee(iteratee, 3));\n }\n\n /**\n * Creates an object composed of keys generated from the results of running\n * each element of `collection` thru `iteratee`. The order of grouped values\n * is determined by the order they occur in `collection`. The corresponding\n * value of each key is an array of elements responsible for generating the\n * key. The iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The iteratee to transform keys.\n * @returns {Object} Returns the composed aggregate object.\n * @example\n *\n * _.groupBy([6.1, 4.2, 6.3], Math.floor);\n * // => { '4': [4.2], '6': [6.1, 6.3] }\n *\n * // The `_.property` iteratee shorthand.\n * _.groupBy(['one', 'two', 'three'], 'length');\n * // => { '3': ['one', 'two'], '5': ['three'] }\n */\n var groupBy = createAggregator(function(result, value, key) {\n if (hasOwnProperty.call(result, key)) {\n result[key].push(value);\n } else {\n baseAssignValue(result, key, [value]);\n }\n });\n\n /**\n * Checks if `value` is in `collection`. If `collection` is a string, it's\n * checked for a substring of `value`, otherwise\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * is used for equality comparisons. If `fromIndex` is negative, it's used as\n * the offset from the end of `collection`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object|string} collection The collection to inspect.\n * @param {*} value The value to search for.\n * @param {number} [fromIndex=0] The index to search from.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.\n * @returns {boolean} Returns `true` if `value` is found, else `false`.\n * @example\n *\n * _.includes([1, 2, 3], 1);\n * // => true\n *\n * _.includes([1, 2, 3], 1, 2);\n * // => false\n *\n * _.includes({ 'a': 1, 'b': 2 }, 1);\n * // => true\n *\n * _.includes('abcd', 'bc');\n * // => true\n */\n function includes(collection, value, fromIndex, guard) {\n collection = isArrayLike(collection) ? collection : values(collection);\n fromIndex = (fromIndex && !guard) ? toInteger(fromIndex) : 0;\n\n var length = collection.length;\n if (fromIndex < 0) {\n fromIndex = nativeMax(length + fromIndex, 0);\n }\n return isString(collection)\n ? (fromIndex <= length && collection.indexOf(value, fromIndex) > -1)\n : (!!length && baseIndexOf(collection, value, fromIndex) > -1);\n }\n\n /**\n * Invokes the method at `path` of each element in `collection`, returning\n * an array of the results of each invoked method. Any additional arguments\n * are provided to each invoked method. If `path` is a function, it's invoked\n * for, and `this` bound to, each element in `collection`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Array|Function|string} path The path of the method to invoke or\n * the function invoked per iteration.\n * @param {...*} [args] The arguments to invoke each method with.\n * @returns {Array} Returns the array of results.\n * @example\n *\n * _.invokeMap([[5, 1, 7], [3, 2, 1]], 'sort');\n * // => [[1, 5, 7], [1, 2, 3]]\n *\n * _.invokeMap([123, 456], String.prototype.split, '');\n * // => [['1', '2', '3'], ['4', '5', '6']]\n */\n var invokeMap = baseRest(function(collection, path, args) {\n var index = -1,\n isFunc = typeof path == 'function',\n result = isArrayLike(collection) ? Array(collection.length) : [];\n\n baseEach(collection, function(value) {\n result[++index] = isFunc ? apply(path, value, args) : baseInvoke(value, path, args);\n });\n return result;\n });\n\n /**\n * Creates an object composed of keys generated from the results of running\n * each element of `collection` thru `iteratee`. The corresponding value of\n * each key is the last element responsible for generating the key. The\n * iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The iteratee to transform keys.\n * @returns {Object} Returns the composed aggregate object.\n * @example\n *\n * var array = [\n * { 'dir': 'left', 'code': 97 },\n * { 'dir': 'right', 'code': 100 }\n * ];\n *\n * _.keyBy(array, function(o) {\n * return String.fromCharCode(o.code);\n * });\n * // => { 'a': { 'dir': 'left', 'code': 97 }, 'd': { 'dir': 'right', 'code': 100 } }\n *\n * _.keyBy(array, 'dir');\n * // => { 'left': { 'dir': 'left', 'code': 97 }, 'right': { 'dir': 'right', 'code': 100 } }\n */\n var keyBy = createAggregator(function(result, value, key) {\n baseAssignValue(result, key, value);\n });\n\n /**\n * Creates an array of values by running each element in `collection` thru\n * `iteratee`. The iteratee is invoked with three arguments:\n * (value, index|key, collection).\n *\n * Many lodash methods are guarded to work as iteratees for methods like\n * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.\n *\n * The guarded methods are:\n * `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`,\n * `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`,\n * `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`,\n * `template`, `trim`, `trimEnd`, `trimStart`, and `words`\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n * @example\n *\n * function square(n) {\n * return n * n;\n * }\n *\n * _.map([4, 8], square);\n * // => [16, 64]\n *\n * _.map({ 'a': 4, 'b': 8 }, square);\n * // => [16, 64] (iteration order is not guaranteed)\n *\n * var users = [\n * { 'user': 'barney' },\n * { 'user': 'fred' }\n * ];\n *\n * // The `_.property` iteratee shorthand.\n * _.map(users, 'user');\n * // => ['barney', 'fred']\n */\n function map(collection, iteratee) {\n var func = isArray(collection) ? arrayMap : baseMap;\n return func(collection, getIteratee(iteratee, 3));\n }\n\n /**\n * This method is like `_.sortBy` except that it allows specifying the sort\n * orders of the iteratees to sort by. If `orders` is unspecified, all values\n * are sorted in ascending order. Otherwise, specify an order of \"desc\" for\n * descending or \"asc\" for ascending sort order of corresponding values.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Array[]|Function[]|Object[]|string[]} [iteratees=[_.identity]]\n * The iteratees to sort by.\n * @param {string[]} [orders] The sort orders of `iteratees`.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.\n * @returns {Array} Returns the new sorted array.\n * @example\n *\n * var users = [\n * { 'user': 'fred', 'age': 48 },\n * { 'user': 'barney', 'age': 34 },\n * { 'user': 'fred', 'age': 40 },\n * { 'user': 'barney', 'age': 36 }\n * ];\n *\n * // Sort by `user` in ascending order and by `age` in descending order.\n * _.orderBy(users, ['user', 'age'], ['asc', 'desc']);\n * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]\n */\n function orderBy(collection, iteratees, orders, guard) {\n if (collection == null) {\n return [];\n }\n if (!isArray(iteratees)) {\n iteratees = iteratees == null ? [] : [iteratees];\n }\n orders = guard ? undefined : orders;\n if (!isArray(orders)) {\n orders = orders == null ? [] : [orders];\n }\n return baseOrderBy(collection, iteratees, orders);\n }\n\n /**\n * Creates an array of elements split into two groups, the first of which\n * contains elements `predicate` returns truthy for, the second of which\n * contains elements `predicate` returns falsey for. The predicate is\n * invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the array of grouped elements.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': false },\n * { 'user': 'fred', 'age': 40, 'active': true },\n * { 'user': 'pebbles', 'age': 1, 'active': false }\n * ];\n *\n * _.partition(users, function(o) { return o.active; });\n * // => objects for [['fred'], ['barney', 'pebbles']]\n *\n * // The `_.matches` iteratee shorthand.\n * _.partition(users, { 'age': 1, 'active': false });\n * // => objects for [['pebbles'], ['barney', 'fred']]\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.partition(users, ['active', false]);\n * // => objects for [['barney', 'pebbles'], ['fred']]\n *\n * // The `_.property` iteratee shorthand.\n * _.partition(users, 'active');\n * // => objects for [['fred'], ['barney', 'pebbles']]\n */\n var partition = createAggregator(function(result, value, key) {\n result[key ? 0 : 1].push(value);\n }, function() { return [[], []]; });\n\n /**\n * Reduces `collection` to a value which is the accumulated result of running\n * each element in `collection` thru `iteratee`, where each successive\n * invocation is supplied the return value of the previous. If `accumulator`\n * is not given, the first element of `collection` is used as the initial\n * value. The iteratee is invoked with four arguments:\n * (accumulator, value, index|key, collection).\n *\n * Many lodash methods are guarded to work as iteratees for methods like\n * `_.reduce`, `_.reduceRight`, and `_.transform`.\n *\n * The guarded methods are:\n * `assign`, `defaults`, `defaultsDeep`, `includes`, `merge`, `orderBy`,\n * and `sortBy`\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @returns {*} Returns the accumulated value.\n * @see _.reduceRight\n * @example\n *\n * _.reduce([1, 2], function(sum, n) {\n * return sum + n;\n * }, 0);\n * // => 3\n *\n * _.reduce({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {\n * (result[value] || (result[value] = [])).push(key);\n * return result;\n * }, {});\n * // => { '1': ['a', 'c'], '2': ['b'] } (iteration order is not guaranteed)\n */\n function reduce(collection, iteratee, accumulator) {\n var func = isArray(collection) ? arrayReduce : baseReduce,\n initAccum = arguments.length < 3;\n\n return func(collection, getIteratee(iteratee, 4), accumulator, initAccum, baseEach);\n }\n\n /**\n * This method is like `_.reduce` except that it iterates over elements of\n * `collection` from right to left.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @returns {*} Returns the accumulated value.\n * @see _.reduce\n * @example\n *\n * var array = [[0, 1], [2, 3], [4, 5]];\n *\n * _.reduceRight(array, function(flattened, other) {\n * return flattened.concat(other);\n * }, []);\n * // => [4, 5, 2, 3, 0, 1]\n */\n function reduceRight(collection, iteratee, accumulator) {\n var func = isArray(collection) ? arrayReduceRight : baseReduce,\n initAccum = arguments.length < 3;\n\n return func(collection, getIteratee(iteratee, 4), accumulator, initAccum, baseEachRight);\n }\n\n /**\n * The opposite of `_.filter`; this method returns the elements of `collection`\n * that `predicate` does **not** return truthy for.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n * @see _.filter\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': false },\n * { 'user': 'fred', 'age': 40, 'active': true }\n * ];\n *\n * _.reject(users, function(o) { return !o.active; });\n * // => objects for ['fred']\n *\n * // The `_.matches` iteratee shorthand.\n * _.reject(users, { 'age': 40, 'active': true });\n * // => objects for ['barney']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.reject(users, ['active', false]);\n * // => objects for ['fred']\n *\n * // The `_.property` iteratee shorthand.\n * _.reject(users, 'active');\n * // => objects for ['barney']\n */\n function reject(collection, predicate) {\n var func = isArray(collection) ? arrayFilter : baseFilter;\n return func(collection, negate(getIteratee(predicate, 3)));\n }\n\n /**\n * Gets a random element from `collection`.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to sample.\n * @returns {*} Returns the random element.\n * @example\n *\n * _.sample([1, 2, 3, 4]);\n * // => 2\n */\n function sample(collection) {\n var func = isArray(collection) ? arraySample : baseSample;\n return func(collection);\n }\n\n /**\n * Gets `n` random elements at unique keys from `collection` up to the\n * size of `collection`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to sample.\n * @param {number} [n=1] The number of elements to sample.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the random elements.\n * @example\n *\n * _.sampleSize([1, 2, 3], 2);\n * // => [3, 1]\n *\n * _.sampleSize([1, 2, 3], 4);\n * // => [2, 3, 1]\n */\n function sampleSize(collection, n, guard) {\n if ((guard ? isIterateeCall(collection, n, guard) : n === undefined)) {\n n = 1;\n } else {\n n = toInteger(n);\n }\n var func = isArray(collection) ? arraySampleSize : baseSampleSize;\n return func(collection, n);\n }\n\n /**\n * Creates an array of shuffled values, using a version of the\n * [Fisher-Yates shuffle](https://en.wikipedia.org/wiki/Fisher-Yates_shuffle).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to shuffle.\n * @returns {Array} Returns the new shuffled array.\n * @example\n *\n * _.shuffle([1, 2, 3, 4]);\n * // => [4, 1, 3, 2]\n */\n function shuffle(collection) {\n var func = isArray(collection) ? arrayShuffle : baseShuffle;\n return func(collection);\n }\n\n /**\n * Gets the size of `collection` by returning its length for array-like\n * values or the number of own enumerable string keyed properties for objects.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object|string} collection The collection to inspect.\n * @returns {number} Returns the collection size.\n * @example\n *\n * _.size([1, 2, 3]);\n * // => 3\n *\n * _.size({ 'a': 1, 'b': 2 });\n * // => 2\n *\n * _.size('pebbles');\n * // => 7\n */\n function size(collection) {\n if (collection == null) {\n return 0;\n }\n if (isArrayLike(collection)) {\n return isString(collection) ? stringSize(collection) : collection.length;\n }\n var tag = getTag(collection);\n if (tag == mapTag || tag == setTag) {\n return collection.size;\n }\n return baseKeys(collection).length;\n }\n\n /**\n * Checks if `predicate` returns truthy for **any** element of `collection`.\n * Iteration is stopped once `predicate` returns truthy. The predicate is\n * invoked with three arguments: (value, index|key, collection).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {boolean} Returns `true` if any element passes the predicate check,\n * else `false`.\n * @example\n *\n * _.some([null, 0, 'yes', false], Boolean);\n * // => true\n *\n * var users = [\n * { 'user': 'barney', 'active': true },\n * { 'user': 'fred', 'active': false }\n * ];\n *\n * // The `_.matches` iteratee shorthand.\n * _.some(users, { 'user': 'barney', 'active': false });\n * // => false\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.some(users, ['active', false]);\n * // => true\n *\n * // The `_.property` iteratee shorthand.\n * _.some(users, 'active');\n * // => true\n */\n function some(collection, predicate, guard) {\n var func = isArray(collection) ? arraySome : baseSome;\n if (guard && isIterateeCall(collection, predicate, guard)) {\n predicate = undefined;\n }\n return func(collection, getIteratee(predicate, 3));\n }\n\n /**\n * Creates an array of elements, sorted in ascending order by the results of\n * running each element in a collection thru each iteratee. This method\n * performs a stable sort, that is, it preserves the original sort order of\n * equal elements. The iteratees are invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {...(Function|Function[])} [iteratees=[_.identity]]\n * The iteratees to sort by.\n * @returns {Array} Returns the new sorted array.\n * @example\n *\n * var users = [\n * { 'user': 'fred', 'age': 48 },\n * { 'user': 'barney', 'age': 36 },\n * { 'user': 'fred', 'age': 40 },\n * { 'user': 'barney', 'age': 34 }\n * ];\n *\n * _.sortBy(users, [function(o) { return o.user; }]);\n * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]\n *\n * _.sortBy(users, ['user', 'age']);\n * // => objects for [['barney', 34], ['barney', 36], ['fred', 40], ['fred', 48]]\n */\n var sortBy = baseRest(function(collection, iteratees) {\n if (collection == null) {\n return [];\n }\n var length = iteratees.length;\n if (length > 1 && isIterateeCall(collection, iteratees[0], iteratees[1])) {\n iteratees = [];\n } else if (length > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2])) {\n iteratees = [iteratees[0]];\n }\n return baseOrderBy(collection, baseFlatten(iteratees, 1), []);\n });\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\n var now = ctxNow || function() {\n return root.Date.now();\n };\n\n /*------------------------------------------------------------------------*/\n\n /**\n * The opposite of `_.before`; this method creates a function that invokes\n * `func` once it's called `n` or more times.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {number} n The number of calls before `func` is invoked.\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new restricted function.\n * @example\n *\n * var saves = ['profile', 'settings'];\n *\n * var done = _.after(saves.length, function() {\n * console.log('done saving!');\n * });\n *\n * _.forEach(saves, function(type) {\n * asyncSave({ 'type': type, 'complete': done });\n * });\n * // => Logs 'done saving!' after the two async saves have completed.\n */\n function after(n, func) {\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n n = toInteger(n);\n return function() {\n if (--n < 1) {\n return func.apply(this, arguments);\n }\n };\n }\n\n /**\n * Creates a function that invokes `func`, with up to `n` arguments,\n * ignoring any additional arguments.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {Function} func The function to cap arguments for.\n * @param {number} [n=func.length] The arity cap.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Function} Returns the new capped function.\n * @example\n *\n * _.map(['6', '8', '10'], _.ary(parseInt, 1));\n * // => [6, 8, 10]\n */\n function ary(func, n, guard) {\n n = guard ? undefined : n;\n n = (func && n == null) ? func.length : n;\n return createWrap(func, WRAP_ARY_FLAG, undefined, undefined, undefined, undefined, n);\n }\n\n /**\n * Creates a function that invokes `func`, with the `this` binding and arguments\n * of the created function, while it's called less than `n` times. Subsequent\n * calls to the created function return the result of the last `func` invocation.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {number} n The number of calls at which `func` is no longer invoked.\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new restricted function.\n * @example\n *\n * jQuery(element).on('click', _.before(5, addContactToList));\n * // => Allows adding up to 4 contacts to the list.\n */\n function before(n, func) {\n var result;\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n n = toInteger(n);\n return function() {\n if (--n > 0) {\n result = func.apply(this, arguments);\n }\n if (n <= 1) {\n func = undefined;\n }\n return result;\n };\n }\n\n /**\n * Creates a function that invokes `func` with the `this` binding of `thisArg`\n * and `partials` prepended to the arguments it receives.\n *\n * The `_.bind.placeholder` value, which defaults to `_` in monolithic builds,\n * may be used as a placeholder for partially applied arguments.\n *\n * **Note:** Unlike native `Function#bind`, this method doesn't set the \"length\"\n * property of bound functions.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to bind.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {...*} [partials] The arguments to be partially applied.\n * @returns {Function} Returns the new bound function.\n * @example\n *\n * function greet(greeting, punctuation) {\n * return greeting + ' ' + this.user + punctuation;\n * }\n *\n * var object = { 'user': 'fred' };\n *\n * var bound = _.bind(greet, object, 'hi');\n * bound('!');\n * // => 'hi fred!'\n *\n * // Bound with placeholders.\n * var bound = _.bind(greet, object, _, '!');\n * bound('hi');\n * // => 'hi fred!'\n */\n var bind = baseRest(function(func, thisArg, partials) {\n var bitmask = WRAP_BIND_FLAG;\n if (partials.length) {\n var holders = replaceHolders(partials, getHolder(bind));\n bitmask |= WRAP_PARTIAL_FLAG;\n }\n return createWrap(func, bitmask, thisArg, partials, holders);\n });\n\n /**\n * Creates a function that invokes the method at `object[key]` with `partials`\n * prepended to the arguments it receives.\n *\n * This method differs from `_.bind` by allowing bound functions to reference\n * methods that may be redefined or don't yet exist. See\n * [Peter Michaux's article](http://peter.michaux.ca/articles/lazy-function-definition-pattern)\n * for more details.\n *\n * The `_.bindKey.placeholder` value, which defaults to `_` in monolithic\n * builds, may be used as a placeholder for partially applied arguments.\n *\n * @static\n * @memberOf _\n * @since 0.10.0\n * @category Function\n * @param {Object} object The object to invoke the method on.\n * @param {string} key The key of the method.\n * @param {...*} [partials] The arguments to be partially applied.\n * @returns {Function} Returns the new bound function.\n * @example\n *\n * var object = {\n * 'user': 'fred',\n * 'greet': function(greeting, punctuation) {\n * return greeting + ' ' + this.user + punctuation;\n * }\n * };\n *\n * var bound = _.bindKey(object, 'greet', 'hi');\n * bound('!');\n * // => 'hi fred!'\n *\n * object.greet = function(greeting, punctuation) {\n * return greeting + 'ya ' + this.user + punctuation;\n * };\n *\n * bound('!');\n * // => 'hiya fred!'\n *\n * // Bound with placeholders.\n * var bound = _.bindKey(object, 'greet', _, '!');\n * bound('hi');\n * // => 'hiya fred!'\n */\n var bindKey = baseRest(function(object, key, partials) {\n var bitmask = WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG;\n if (partials.length) {\n var holders = replaceHolders(partials, getHolder(bindKey));\n bitmask |= WRAP_PARTIAL_FLAG;\n }\n return createWrap(key, bitmask, object, partials, holders);\n });\n\n /**\n * Creates a function that accepts arguments of `func` and either invokes\n * `func` returning its result, if at least `arity` number of arguments have\n * been provided, or returns a function that accepts the remaining `func`\n * arguments, and so on. The arity of `func` may be specified if `func.length`\n * is not sufficient.\n *\n * The `_.curry.placeholder` value, which defaults to `_` in monolithic builds,\n * may be used as a placeholder for provided arguments.\n *\n * **Note:** This method doesn't set the \"length\" property of curried functions.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Function\n * @param {Function} func The function to curry.\n * @param {number} [arity=func.length] The arity of `func`.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Function} Returns the new curried function.\n * @example\n *\n * var abc = function(a, b, c) {\n * return [a, b, c];\n * };\n *\n * var curried = _.curry(abc);\n *\n * curried(1)(2)(3);\n * // => [1, 2, 3]\n *\n * curried(1, 2)(3);\n * // => [1, 2, 3]\n *\n * curried(1, 2, 3);\n * // => [1, 2, 3]\n *\n * // Curried with placeholders.\n * curried(1)(_, 3)(2);\n * // => [1, 2, 3]\n */\n function curry(func, arity, guard) {\n arity = guard ? undefined : arity;\n var result = createWrap(func, WRAP_CURRY_FLAG, undefined, undefined, undefined, undefined, undefined, arity);\n result.placeholder = curry.placeholder;\n return result;\n }\n\n /**\n * This method is like `_.curry` except that arguments are applied to `func`\n * in the manner of `_.partialRight` instead of `_.partial`.\n *\n * The `_.curryRight.placeholder` value, which defaults to `_` in monolithic\n * builds, may be used as a placeholder for provided arguments.\n *\n * **Note:** This method doesn't set the \"length\" property of curried functions.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {Function} func The function to curry.\n * @param {number} [arity=func.length] The arity of `func`.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Function} Returns the new curried function.\n * @example\n *\n * var abc = function(a, b, c) {\n * return [a, b, c];\n * };\n *\n * var curried = _.curryRight(abc);\n *\n * curried(3)(2)(1);\n * // => [1, 2, 3]\n *\n * curried(2, 3)(1);\n * // => [1, 2, 3]\n *\n * curried(1, 2, 3);\n * // => [1, 2, 3]\n *\n * // Curried with placeholders.\n * curried(3)(1, _)(2);\n * // => [1, 2, 3]\n */\n function curryRight(func, arity, guard) {\n arity = guard ? undefined : arity;\n var result = createWrap(func, WRAP_CURRY_RIGHT_FLAG, undefined, undefined, undefined, undefined, undefined, arity);\n result.placeholder = curryRight.placeholder;\n return result;\n }\n\n /**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\n function debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n timeWaiting = wait - timeSinceLastCall;\n\n return maxing\n ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)\n : timeWaiting;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n }\n\n /**\n * Defers invoking the `func` until the current call stack has cleared. Any\n * additional arguments are provided to `func` when it's invoked.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to defer.\n * @param {...*} [args] The arguments to invoke `func` with.\n * @returns {number} Returns the timer id.\n * @example\n *\n * _.defer(function(text) {\n * console.log(text);\n * }, 'deferred');\n * // => Logs 'deferred' after one millisecond.\n */\n var defer = baseRest(function(func, args) {\n return baseDelay(func, 1, args);\n });\n\n /**\n * Invokes `func` after `wait` milliseconds. Any additional arguments are\n * provided to `func` when it's invoked.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to delay.\n * @param {number} wait The number of milliseconds to delay invocation.\n * @param {...*} [args] The arguments to invoke `func` with.\n * @returns {number} Returns the timer id.\n * @example\n *\n * _.delay(function(text) {\n * console.log(text);\n * }, 1000, 'later');\n * // => Logs 'later' after one second.\n */\n var delay = baseRest(function(func, wait, args) {\n return baseDelay(func, toNumber(wait) || 0, args);\n });\n\n /**\n * Creates a function that invokes `func` with arguments reversed.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Function\n * @param {Function} func The function to flip arguments for.\n * @returns {Function} Returns the new flipped function.\n * @example\n *\n * var flipped = _.flip(function() {\n * return _.toArray(arguments);\n * });\n *\n * flipped('a', 'b', 'c', 'd');\n * // => ['d', 'c', 'b', 'a']\n */\n function flip(func) {\n return createWrap(func, WRAP_FLIP_FLAG);\n }\n\n /**\n * Creates a function that memoizes the result of `func`. If `resolver` is\n * provided, it determines the cache key for storing the result based on the\n * arguments provided to the memoized function. By default, the first argument\n * provided to the memoized function is used as the map cache key. The `func`\n * is invoked with the `this` binding of the memoized function.\n *\n * **Note:** The cache is exposed as the `cache` property on the memoized\n * function. Its creation may be customized by replacing the `_.memoize.Cache`\n * constructor with one whose instances implement the\n * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)\n * method interface of `clear`, `delete`, `get`, `has`, and `set`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to have its output memoized.\n * @param {Function} [resolver] The function to resolve the cache key.\n * @returns {Function} Returns the new memoized function.\n * @example\n *\n * var object = { 'a': 1, 'b': 2 };\n * var other = { 'c': 3, 'd': 4 };\n *\n * var values = _.memoize(_.values);\n * values(object);\n * // => [1, 2]\n *\n * values(other);\n * // => [3, 4]\n *\n * object.a = 2;\n * values(object);\n * // => [1, 2]\n *\n * // Modify the result cache.\n * values.cache.set(object, ['a', 'b']);\n * values(object);\n * // => ['a', 'b']\n *\n * // Replace `_.memoize.Cache`.\n * _.memoize.Cache = WeakMap;\n */\n function memoize(func, resolver) {\n if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n var memoized = function() {\n var args = arguments,\n key = resolver ? resolver.apply(this, args) : args[0],\n cache = memoized.cache;\n\n if (cache.has(key)) {\n return cache.get(key);\n }\n var result = func.apply(this, args);\n memoized.cache = cache.set(key, result) || cache;\n return result;\n };\n memoized.cache = new (memoize.Cache || MapCache);\n return memoized;\n }\n\n // Expose `MapCache`.\n memoize.Cache = MapCache;\n\n /**\n * Creates a function that negates the result of the predicate `func`. The\n * `func` predicate is invoked with the `this` binding and arguments of the\n * created function.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {Function} predicate The predicate to negate.\n * @returns {Function} Returns the new negated function.\n * @example\n *\n * function isEven(n) {\n * return n % 2 == 0;\n * }\n *\n * _.filter([1, 2, 3, 4, 5, 6], _.negate(isEven));\n * // => [1, 3, 5]\n */\n function negate(predicate) {\n if (typeof predicate != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n return function() {\n var args = arguments;\n switch (args.length) {\n case 0: return !predicate.call(this);\n case 1: return !predicate.call(this, args[0]);\n case 2: return !predicate.call(this, args[0], args[1]);\n case 3: return !predicate.call(this, args[0], args[1], args[2]);\n }\n return !predicate.apply(this, args);\n };\n }\n\n /**\n * Creates a function that is restricted to invoking `func` once. Repeat calls\n * to the function return the value of the first invocation. The `func` is\n * invoked with the `this` binding and arguments of the created function.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new restricted function.\n * @example\n *\n * var initialize = _.once(createApplication);\n * initialize();\n * initialize();\n * // => `createApplication` is invoked once\n */\n function once(func) {\n return before(2, func);\n }\n\n /**\n * Creates a function that invokes `func` with its arguments transformed.\n *\n * @static\n * @since 4.0.0\n * @memberOf _\n * @category Function\n * @param {Function} func The function to wrap.\n * @param {...(Function|Function[])} [transforms=[_.identity]]\n * The argument transforms.\n * @returns {Function} Returns the new function.\n * @example\n *\n * function doubled(n) {\n * return n * 2;\n * }\n *\n * function square(n) {\n * return n * n;\n * }\n *\n * var func = _.overArgs(function(x, y) {\n * return [x, y];\n * }, [square, doubled]);\n *\n * func(9, 3);\n * // => [81, 6]\n *\n * func(10, 5);\n * // => [100, 10]\n */\n var overArgs = castRest(function(func, transforms) {\n transforms = (transforms.length == 1 && isArray(transforms[0]))\n ? arrayMap(transforms[0], baseUnary(getIteratee()))\n : arrayMap(baseFlatten(transforms, 1), baseUnary(getIteratee()));\n\n var funcsLength = transforms.length;\n return baseRest(function(args) {\n var index = -1,\n length = nativeMin(args.length, funcsLength);\n\n while (++index < length) {\n args[index] = transforms[index].call(this, args[index]);\n }\n return apply(func, this, args);\n });\n });\n\n /**\n * Creates a function that invokes `func` with `partials` prepended to the\n * arguments it receives. This method is like `_.bind` except it does **not**\n * alter the `this` binding.\n *\n * The `_.partial.placeholder` value, which defaults to `_` in monolithic\n * builds, may be used as a placeholder for partially applied arguments.\n *\n * **Note:** This method doesn't set the \"length\" property of partially\n * applied functions.\n *\n * @static\n * @memberOf _\n * @since 0.2.0\n * @category Function\n * @param {Function} func The function to partially apply arguments to.\n * @param {...*} [partials] The arguments to be partially applied.\n * @returns {Function} Returns the new partially applied function.\n * @example\n *\n * function greet(greeting, name) {\n * return greeting + ' ' + name;\n * }\n *\n * var sayHelloTo = _.partial(greet, 'hello');\n * sayHelloTo('fred');\n * // => 'hello fred'\n *\n * // Partially applied with placeholders.\n * var greetFred = _.partial(greet, _, 'fred');\n * greetFred('hi');\n * // => 'hi fred'\n */\n var partial = baseRest(function(func, partials) {\n var holders = replaceHolders(partials, getHolder(partial));\n return createWrap(func, WRAP_PARTIAL_FLAG, undefined, partials, holders);\n });\n\n /**\n * This method is like `_.partial` except that partially applied arguments\n * are appended to the arguments it receives.\n *\n * The `_.partialRight.placeholder` value, which defaults to `_` in monolithic\n * builds, may be used as a placeholder for partially applied arguments.\n *\n * **Note:** This method doesn't set the \"length\" property of partially\n * applied functions.\n *\n * @static\n * @memberOf _\n * @since 1.0.0\n * @category Function\n * @param {Function} func The function to partially apply arguments to.\n * @param {...*} [partials] The arguments to be partially applied.\n * @returns {Function} Returns the new partially applied function.\n * @example\n *\n * function greet(greeting, name) {\n * return greeting + ' ' + name;\n * }\n *\n * var greetFred = _.partialRight(greet, 'fred');\n * greetFred('hi');\n * // => 'hi fred'\n *\n * // Partially applied with placeholders.\n * var sayHelloTo = _.partialRight(greet, 'hello', _);\n * sayHelloTo('fred');\n * // => 'hello fred'\n */\n var partialRight = baseRest(function(func, partials) {\n var holders = replaceHolders(partials, getHolder(partialRight));\n return createWrap(func, WRAP_PARTIAL_RIGHT_FLAG, undefined, partials, holders);\n });\n\n /**\n * Creates a function that invokes `func` with arguments arranged according\n * to the specified `indexes` where the argument value at the first index is\n * provided as the first argument, the argument value at the second index is\n * provided as the second argument, and so on.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {Function} func The function to rearrange arguments for.\n * @param {...(number|number[])} indexes The arranged argument indexes.\n * @returns {Function} Returns the new function.\n * @example\n *\n * var rearged = _.rearg(function(a, b, c) {\n * return [a, b, c];\n * }, [2, 0, 1]);\n *\n * rearged('b', 'c', 'a')\n * // => ['a', 'b', 'c']\n */\n var rearg = flatRest(function(func, indexes) {\n return createWrap(func, WRAP_REARG_FLAG, undefined, undefined, undefined, indexes);\n });\n\n /**\n * Creates a function that invokes `func` with the `this` binding of the\n * created function and arguments from `start` and beyond provided as\n * an array.\n *\n * **Note:** This method is based on the\n * [rest parameter](https://mdn.io/rest_parameters).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Function\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @returns {Function} Returns the new function.\n * @example\n *\n * var say = _.rest(function(what, names) {\n * return what + ' ' + _.initial(names).join(', ') +\n * (_.size(names) > 1 ? ', & ' : '') + _.last(names);\n * });\n *\n * say('hello', 'fred', 'barney', 'pebbles');\n * // => 'hello fred, barney, & pebbles'\n */\n function rest(func, start) {\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n start = start === undefined ? start : toInteger(start);\n return baseRest(func, start);\n }\n\n /**\n * Creates a function that invokes `func` with the `this` binding of the\n * create function and an array of arguments much like\n * [`Function#apply`](http://www.ecma-international.org/ecma-262/7.0/#sec-function.prototype.apply).\n *\n * **Note:** This method is based on the\n * [spread operator](https://mdn.io/spread_operator).\n *\n * @static\n * @memberOf _\n * @since 3.2.0\n * @category Function\n * @param {Function} func The function to spread arguments over.\n * @param {number} [start=0] The start position of the spread.\n * @returns {Function} Returns the new function.\n * @example\n *\n * var say = _.spread(function(who, what) {\n * return who + ' says ' + what;\n * });\n *\n * say(['fred', 'hello']);\n * // => 'fred says hello'\n *\n * var numbers = Promise.all([\n * Promise.resolve(40),\n * Promise.resolve(36)\n * ]);\n *\n * numbers.then(_.spread(function(x, y) {\n * return x + y;\n * }));\n * // => a Promise of 76\n */\n function spread(func, start) {\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n start = start == null ? 0 : nativeMax(toInteger(start), 0);\n return baseRest(function(args) {\n var array = args[start],\n otherArgs = castSlice(args, 0, start);\n\n if (array) {\n arrayPush(otherArgs, array);\n }\n return apply(func, this, otherArgs);\n });\n }\n\n /**\n * Creates a throttled function that only invokes `func` at most once per\n * every `wait` milliseconds. The throttled function comes with a `cancel`\n * method to cancel delayed `func` invocations and a `flush` method to\n * immediately invoke them. Provide `options` to indicate whether `func`\n * should be invoked on the leading and/or trailing edge of the `wait`\n * timeout. The `func` is invoked with the last arguments provided to the\n * throttled function. Subsequent calls to the throttled function return the\n * result of the last `func` invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the throttled function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.throttle` and `_.debounce`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to throttle.\n * @param {number} [wait=0] The number of milliseconds to throttle invocations to.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=true]\n * Specify invoking on the leading edge of the timeout.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new throttled function.\n * @example\n *\n * // Avoid excessively updating the position while scrolling.\n * jQuery(window).on('scroll', _.throttle(updatePosition, 100));\n *\n * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.\n * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });\n * jQuery(element).on('click', throttled);\n *\n * // Cancel the trailing throttled invocation.\n * jQuery(window).on('popstate', throttled.cancel);\n */\n function throttle(func, wait, options) {\n var leading = true,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n if (isObject(options)) {\n leading = 'leading' in options ? !!options.leading : leading;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n return debounce(func, wait, {\n 'leading': leading,\n 'maxWait': wait,\n 'trailing': trailing\n });\n }\n\n /**\n * Creates a function that accepts up to one argument, ignoring any\n * additional arguments.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Function\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n * @example\n *\n * _.map(['6', '8', '10'], _.unary(parseInt));\n * // => [6, 8, 10]\n */\n function unary(func) {\n return ary(func, 1);\n }\n\n /**\n * Creates a function that provides `value` to `wrapper` as its first\n * argument. Any additional arguments provided to the function are appended\n * to those provided to the `wrapper`. The wrapper is invoked with the `this`\n * binding of the created function.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {*} value The value to wrap.\n * @param {Function} [wrapper=identity] The wrapper function.\n * @returns {Function} Returns the new function.\n * @example\n *\n * var p = _.wrap(_.escape, function(func, text) {\n * return '<p>' + func(text) + '</p>';\n * });\n *\n * p('fred, barney, & pebbles');\n * // => '<p>fred, barney, &amp; pebbles</p>'\n */\n function wrap(value, wrapper) {\n return partial(castFunction(wrapper), value);\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Casts `value` as an array if it's not one.\n *\n * @static\n * @memberOf _\n * @since 4.4.0\n * @category Lang\n * @param {*} value The value to inspect.\n * @returns {Array} Returns the cast array.\n * @example\n *\n * _.castArray(1);\n * // => [1]\n *\n * _.castArray({ 'a': 1 });\n * // => [{ 'a': 1 }]\n *\n * _.castArray('abc');\n * // => ['abc']\n *\n * _.castArray(null);\n * // => [null]\n *\n * _.castArray(undefined);\n * // => [undefined]\n *\n * _.castArray();\n * // => []\n *\n * var array = [1, 2, 3];\n * console.log(_.castArray(array) === array);\n * // => true\n */\n function castArray() {\n if (!arguments.length) {\n return [];\n }\n var value = arguments[0];\n return isArray(value) ? value : [value];\n }\n\n /**\n * Creates a shallow clone of `value`.\n *\n * **Note:** This method is loosely based on the\n * [structured clone algorithm](https://mdn.io/Structured_clone_algorithm)\n * and supports cloning arrays, array buffers, booleans, date objects, maps,\n * numbers, `Object` objects, regexes, sets, strings, symbols, and typed\n * arrays. The own enumerable properties of `arguments` objects are cloned\n * as plain objects. An empty object is returned for uncloneable values such\n * as error objects, functions, DOM nodes, and WeakMaps.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to clone.\n * @returns {*} Returns the cloned value.\n * @see _.cloneDeep\n * @example\n *\n * var objects = [{ 'a': 1 }, { 'b': 2 }];\n *\n * var shallow = _.clone(objects);\n * console.log(shallow[0] === objects[0]);\n * // => true\n */\n function clone(value) {\n return baseClone(value, CLONE_SYMBOLS_FLAG);\n }\n\n /**\n * This method is like `_.clone` except that it accepts `customizer` which\n * is invoked to produce the cloned value. If `customizer` returns `undefined`,\n * cloning is handled by the method instead. The `customizer` is invoked with\n * up to four arguments; (value [, index|key, object, stack]).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to clone.\n * @param {Function} [customizer] The function to customize cloning.\n * @returns {*} Returns the cloned value.\n * @see _.cloneDeepWith\n * @example\n *\n * function customizer(value) {\n * if (_.isElement(value)) {\n * return value.cloneNode(false);\n * }\n * }\n *\n * var el = _.cloneWith(document.body, customizer);\n *\n * console.log(el === document.body);\n * // => false\n * console.log(el.nodeName);\n * // => 'BODY'\n * console.log(el.childNodes.length);\n * // => 0\n */\n function cloneWith(value, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined;\n return baseClone(value, CLONE_SYMBOLS_FLAG, customizer);\n }\n\n /**\n * This method is like `_.clone` except that it recursively clones `value`.\n *\n * @static\n * @memberOf _\n * @since 1.0.0\n * @category Lang\n * @param {*} value The value to recursively clone.\n * @returns {*} Returns the deep cloned value.\n * @see _.clone\n * @example\n *\n * var objects = [{ 'a': 1 }, { 'b': 2 }];\n *\n * var deep = _.cloneDeep(objects);\n * console.log(deep[0] === objects[0]);\n * // => false\n */\n function cloneDeep(value) {\n return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);\n }\n\n /**\n * This method is like `_.cloneWith` except that it recursively clones `value`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to recursively clone.\n * @param {Function} [customizer] The function to customize cloning.\n * @returns {*} Returns the deep cloned value.\n * @see _.cloneWith\n * @example\n *\n * function customizer(value) {\n * if (_.isElement(value)) {\n * return value.cloneNode(true);\n * }\n * }\n *\n * var el = _.cloneDeepWith(document.body, customizer);\n *\n * console.log(el === document.body);\n * // => false\n * console.log(el.nodeName);\n * // => 'BODY'\n * console.log(el.childNodes.length);\n * // => 20\n */\n function cloneDeepWith(value, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined;\n return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG, customizer);\n }\n\n /**\n * Checks if `object` conforms to `source` by invoking the predicate\n * properties of `source` with the corresponding property values of `object`.\n *\n * **Note:** This method is equivalent to `_.conforms` when `source` is\n * partially applied.\n *\n * @static\n * @memberOf _\n * @since 4.14.0\n * @category Lang\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property predicates to conform to.\n * @returns {boolean} Returns `true` if `object` conforms, else `false`.\n * @example\n *\n * var object = { 'a': 1, 'b': 2 };\n *\n * _.conformsTo(object, { 'b': function(n) { return n > 1; } });\n * // => true\n *\n * _.conformsTo(object, { 'b': function(n) { return n > 2; } });\n * // => false\n */\n function conformsTo(object, source) {\n return source == null || baseConformsTo(object, source, keys(source));\n }\n\n /**\n * Performs a\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * comparison between two values to determine if they are equivalent.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.eq(object, object);\n * // => true\n *\n * _.eq(object, other);\n * // => false\n *\n * _.eq('a', 'a');\n * // => true\n *\n * _.eq('a', Object('a'));\n * // => false\n *\n * _.eq(NaN, NaN);\n * // => true\n */\n function eq(value, other) {\n return value === other || (value !== value && other !== other);\n }\n\n /**\n * Checks if `value` is greater than `other`.\n *\n * @static\n * @memberOf _\n * @since 3.9.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is greater than `other`,\n * else `false`.\n * @see _.lt\n * @example\n *\n * _.gt(3, 1);\n * // => true\n *\n * _.gt(3, 3);\n * // => false\n *\n * _.gt(1, 3);\n * // => false\n */\n var gt = createRelationalOperation(baseGt);\n\n /**\n * Checks if `value` is greater than or equal to `other`.\n *\n * @static\n * @memberOf _\n * @since 3.9.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is greater than or equal to\n * `other`, else `false`.\n * @see _.lte\n * @example\n *\n * _.gte(3, 1);\n * // => true\n *\n * _.gte(3, 3);\n * // => true\n *\n * _.gte(1, 3);\n * // => false\n */\n var gte = createRelationalOperation(function(value, other) {\n return value >= other;\n });\n\n /**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n * else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */\n var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {\n return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&\n !propertyIsEnumerable.call(value, 'callee');\n };\n\n /**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\n var isArray = Array.isArray;\n\n /**\n * Checks if `value` is classified as an `ArrayBuffer` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array buffer, else `false`.\n * @example\n *\n * _.isArrayBuffer(new ArrayBuffer(2));\n * // => true\n *\n * _.isArrayBuffer(new Array(2));\n * // => false\n */\n var isArrayBuffer = nodeIsArrayBuffer ? baseUnary(nodeIsArrayBuffer) : baseIsArrayBuffer;\n\n /**\n * Checks if `value` is array-like. A value is considered array-like if it's\n * not a function and has a `value.length` that's an integer greater than or\n * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n * @example\n *\n * _.isArrayLike([1, 2, 3]);\n * // => true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */\n function isArrayLike(value) {\n return value != null && isLength(value.length) && !isFunction(value);\n }\n\n /**\n * This method is like `_.isArrayLike` except that it also checks if `value`\n * is an object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array-like object,\n * else `false`.\n * @example\n *\n * _.isArrayLikeObject([1, 2, 3]);\n * // => true\n *\n * _.isArrayLikeObject(document.body.children);\n * // => true\n *\n * _.isArrayLikeObject('abc');\n * // => false\n *\n * _.isArrayLikeObject(_.noop);\n * // => false\n */\n function isArrayLikeObject(value) {\n return isObjectLike(value) && isArrayLike(value);\n }\n\n /**\n * Checks if `value` is classified as a boolean primitive or object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a boolean, else `false`.\n * @example\n *\n * _.isBoolean(false);\n * // => true\n *\n * _.isBoolean(null);\n * // => false\n */\n function isBoolean(value) {\n return value === true || value === false ||\n (isObjectLike(value) && baseGetTag(value) == boolTag);\n }\n\n /**\n * Checks if `value` is a buffer.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.\n * @example\n *\n * _.isBuffer(new Buffer(2));\n * // => true\n *\n * _.isBuffer(new Uint8Array(2));\n * // => false\n */\n var isBuffer = nativeIsBuffer || stubFalse;\n\n /**\n * Checks if `value` is classified as a `Date` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a date object, else `false`.\n * @example\n *\n * _.isDate(new Date);\n * // => true\n *\n * _.isDate('Mon April 23 2012');\n * // => false\n */\n var isDate = nodeIsDate ? baseUnary(nodeIsDate) : baseIsDate;\n\n /**\n * Checks if `value` is likely a DOM element.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a DOM element, else `false`.\n * @example\n *\n * _.isElement(document.body);\n * // => true\n *\n * _.isElement('<body>');\n * // => false\n */\n function isElement(value) {\n return isObjectLike(value) && value.nodeType === 1 && !isPlainObject(value);\n }\n\n /**\n * Checks if `value` is an empty object, collection, map, or set.\n *\n * Objects are considered empty if they have no own enumerable string keyed\n * properties.\n *\n * Array-like values such as `arguments` objects, arrays, buffers, strings, or\n * jQuery-like collections are considered empty if they have a `length` of `0`.\n * Similarly, maps and sets are considered empty if they have a `size` of `0`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is empty, else `false`.\n * @example\n *\n * _.isEmpty(null);\n * // => true\n *\n * _.isEmpty(true);\n * // => true\n *\n * _.isEmpty(1);\n * // => true\n *\n * _.isEmpty([1, 2, 3]);\n * // => false\n *\n * _.isEmpty({ 'a': 1 });\n * // => false\n */\n function isEmpty(value) {\n if (value == null) {\n return true;\n }\n if (isArrayLike(value) &&\n (isArray(value) || typeof value == 'string' || typeof value.splice == 'function' ||\n isBuffer(value) || isTypedArray(value) || isArguments(value))) {\n return !value.length;\n }\n var tag = getTag(value);\n if (tag == mapTag || tag == setTag) {\n return !value.size;\n }\n if (isPrototype(value)) {\n return !baseKeys(value).length;\n }\n for (var key in value) {\n if (hasOwnProperty.call(value, key)) {\n return false;\n }\n }\n return true;\n }\n\n /**\n * Performs a deep comparison between two values to determine if they are\n * equivalent.\n *\n * **Note:** This method supports comparing arrays, array buffers, booleans,\n * date objects, error objects, maps, numbers, `Object` objects, regexes,\n * sets, strings, symbols, and typed arrays. `Object` objects are compared\n * by their own, not inherited, enumerable properties. Functions and DOM\n * nodes are compared by strict equality, i.e. `===`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.isEqual(object, other);\n * // => true\n *\n * object === other;\n * // => false\n */\n function isEqual(value, other) {\n return baseIsEqual(value, other);\n }\n\n /**\n * This method is like `_.isEqual` except that it accepts `customizer` which\n * is invoked to compare values. If `customizer` returns `undefined`, comparisons\n * are handled by the method instead. The `customizer` is invoked with up to\n * six arguments: (objValue, othValue [, index|key, object, other, stack]).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @param {Function} [customizer] The function to customize comparisons.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * function isGreeting(value) {\n * return /^h(?:i|ello)$/.test(value);\n * }\n *\n * function customizer(objValue, othValue) {\n * if (isGreeting(objValue) && isGreeting(othValue)) {\n * return true;\n * }\n * }\n *\n * var array = ['hello', 'goodbye'];\n * var other = ['hi', 'goodbye'];\n *\n * _.isEqualWith(array, other, customizer);\n * // => true\n */\n function isEqualWith(value, other, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined;\n var result = customizer ? customizer(value, other) : undefined;\n return result === undefined ? baseIsEqual(value, other, undefined, customizer) : !!result;\n }\n\n /**\n * Checks if `value` is an `Error`, `EvalError`, `RangeError`, `ReferenceError`,\n * `SyntaxError`, `TypeError`, or `URIError` object.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an error object, else `false`.\n * @example\n *\n * _.isError(new Error);\n * // => true\n *\n * _.isError(Error);\n * // => false\n */\n function isError(value) {\n if (!isObjectLike(value)) {\n return false;\n }\n var tag = baseGetTag(value);\n return tag == errorTag || tag == domExcTag ||\n (typeof value.message == 'string' && typeof value.name == 'string' && !isPlainObject(value));\n }\n\n /**\n * Checks if `value` is a finite primitive number.\n *\n * **Note:** This method is based on\n * [`Number.isFinite`](https://mdn.io/Number/isFinite).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a finite number, else `false`.\n * @example\n *\n * _.isFinite(3);\n * // => true\n *\n * _.isFinite(Number.MIN_VALUE);\n * // => true\n *\n * _.isFinite(Infinity);\n * // => false\n *\n * _.isFinite('3');\n * // => false\n */\n function isFinite(value) {\n return typeof value == 'number' && nativeIsFinite(value);\n }\n\n /**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\n function isFunction(value) {\n if (!isObject(value)) {\n return false;\n }\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in Safari 9 which returns 'object' for typed arrays and other constructors.\n var tag = baseGetTag(value);\n return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;\n }\n\n /**\n * Checks if `value` is an integer.\n *\n * **Note:** This method is based on\n * [`Number.isInteger`](https://mdn.io/Number/isInteger).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an integer, else `false`.\n * @example\n *\n * _.isInteger(3);\n * // => true\n *\n * _.isInteger(Number.MIN_VALUE);\n * // => false\n *\n * _.isInteger(Infinity);\n * // => false\n *\n * _.isInteger('3');\n * // => false\n */\n function isInteger(value) {\n return typeof value == 'number' && value == toInteger(value);\n }\n\n /**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This method is loosely based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\n function isLength(value) {\n return typeof value == 'number' &&\n value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n }\n\n /**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\n function isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n }\n\n /**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\n function isObjectLike(value) {\n return value != null && typeof value == 'object';\n }\n\n /**\n * Checks if `value` is classified as a `Map` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a map, else `false`.\n * @example\n *\n * _.isMap(new Map);\n * // => true\n *\n * _.isMap(new WeakMap);\n * // => false\n */\n var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;\n\n /**\n * Performs a partial deep comparison between `object` and `source` to\n * determine if `object` contains equivalent property values.\n *\n * **Note:** This method is equivalent to `_.matches` when `source` is\n * partially applied.\n *\n * Partial comparisons will match empty array and empty object `source`\n * values against any array or object value, respectively. See `_.isEqual`\n * for a list of supported value comparisons.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property values to match.\n * @returns {boolean} Returns `true` if `object` is a match, else `false`.\n * @example\n *\n * var object = { 'a': 1, 'b': 2 };\n *\n * _.isMatch(object, { 'b': 2 });\n * // => true\n *\n * _.isMatch(object, { 'b': 1 });\n * // => false\n */\n function isMatch(object, source) {\n return object === source || baseIsMatch(object, source, getMatchData(source));\n }\n\n /**\n * This method is like `_.isMatch` except that it accepts `customizer` which\n * is invoked to compare values. If `customizer` returns `undefined`, comparisons\n * are handled by the method instead. The `customizer` is invoked with five\n * arguments: (objValue, srcValue, index|key, object, source).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property values to match.\n * @param {Function} [customizer] The function to customize comparisons.\n * @returns {boolean} Returns `true` if `object` is a match, else `false`.\n * @example\n *\n * function isGreeting(value) {\n * return /^h(?:i|ello)$/.test(value);\n * }\n *\n * function customizer(objValue, srcValue) {\n * if (isGreeting(objValue) && isGreeting(srcValue)) {\n * return true;\n * }\n * }\n *\n * var object = { 'greeting': 'hello' };\n * var source = { 'greeting': 'hi' };\n *\n * _.isMatchWith(object, source, customizer);\n * // => true\n */\n function isMatchWith(object, source, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined;\n return baseIsMatch(object, source, getMatchData(source), customizer);\n }\n\n /**\n * Checks if `value` is `NaN`.\n *\n * **Note:** This method is based on\n * [`Number.isNaN`](https://mdn.io/Number/isNaN) and is not the same as\n * global [`isNaN`](https://mdn.io/isNaN) which returns `true` for\n * `undefined` and other non-number values.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.\n * @example\n *\n * _.isNaN(NaN);\n * // => true\n *\n * _.isNaN(new Number(NaN));\n * // => true\n *\n * isNaN(undefined);\n * // => true\n *\n * _.isNaN(undefined);\n * // => false\n */\n function isNaN(value) {\n // An `NaN` primitive is the only value that is not equal to itself.\n // Perform the `toStringTag` check first to avoid errors with some\n // ActiveX objects in IE.\n return isNumber(value) && value != +value;\n }\n\n /**\n * Checks if `value` is a pristine native function.\n *\n * **Note:** This method can't reliably detect native functions in the presence\n * of the core-js package because core-js circumvents this kind of detection.\n * Despite multiple requests, the core-js maintainer has made it clear: any\n * attempt to fix the detection will be obstructed. As a result, we're left\n * with little choice but to throw an error. Unfortunately, this also affects\n * packages, like [babel-polyfill](https://www.npmjs.com/package/babel-polyfill),\n * which rely on core-js.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n * else `false`.\n * @example\n *\n * _.isNative(Array.prototype.push);\n * // => true\n *\n * _.isNative(_);\n * // => false\n */\n function isNative(value) {\n if (isMaskable(value)) {\n throw new Error(CORE_ERROR_TEXT);\n }\n return baseIsNative(value);\n }\n\n /**\n * Checks if `value` is `null`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `null`, else `false`.\n * @example\n *\n * _.isNull(null);\n * // => true\n *\n * _.isNull(void 0);\n * // => false\n */\n function isNull(value) {\n return value === null;\n }\n\n /**\n * Checks if `value` is `null` or `undefined`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is nullish, else `false`.\n * @example\n *\n * _.isNil(null);\n * // => true\n *\n * _.isNil(void 0);\n * // => true\n *\n * _.isNil(NaN);\n * // => false\n */\n function isNil(value) {\n return value == null;\n }\n\n /**\n * Checks if `value` is classified as a `Number` primitive or object.\n *\n * **Note:** To exclude `Infinity`, `-Infinity`, and `NaN`, which are\n * classified as numbers, use the `_.isFinite` method.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a number, else `false`.\n * @example\n *\n * _.isNumber(3);\n * // => true\n *\n * _.isNumber(Number.MIN_VALUE);\n * // => true\n *\n * _.isNumber(Infinity);\n * // => true\n *\n * _.isNumber('3');\n * // => false\n */\n function isNumber(value) {\n return typeof value == 'number' ||\n (isObjectLike(value) && baseGetTag(value) == numberTag);\n }\n\n /**\n * Checks if `value` is a plain object, that is, an object created by the\n * `Object` constructor or one with a `[[Prototype]]` of `null`.\n *\n * @static\n * @memberOf _\n * @since 0.8.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * _.isPlainObject(new Foo);\n * // => false\n *\n * _.isPlainObject([1, 2, 3]);\n * // => false\n *\n * _.isPlainObject({ 'x': 0, 'y': 0 });\n * // => true\n *\n * _.isPlainObject(Object.create(null));\n * // => true\n */\n function isPlainObject(value) {\n if (!isObjectLike(value) || baseGetTag(value) != objectTag) {\n return false;\n }\n var proto = getPrototype(value);\n if (proto === null) {\n return true;\n }\n var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;\n return typeof Ctor == 'function' && Ctor instanceof Ctor &&\n funcToString.call(Ctor) == objectCtorString;\n }\n\n /**\n * Checks if `value` is classified as a `RegExp` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.\n * @example\n *\n * _.isRegExp(/abc/);\n * // => true\n *\n * _.isRegExp('/abc/');\n * // => false\n */\n var isRegExp = nodeIsRegExp ? baseUnary(nodeIsRegExp) : baseIsRegExp;\n\n /**\n * Checks if `value` is a safe integer. An integer is safe if it's an IEEE-754\n * double precision number which isn't the result of a rounded unsafe integer.\n *\n * **Note:** This method is based on\n * [`Number.isSafeInteger`](https://mdn.io/Number/isSafeInteger).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a safe integer, else `false`.\n * @example\n *\n * _.isSafeInteger(3);\n * // => true\n *\n * _.isSafeInteger(Number.MIN_VALUE);\n * // => false\n *\n * _.isSafeInteger(Infinity);\n * // => false\n *\n * _.isSafeInteger('3');\n * // => false\n */\n function isSafeInteger(value) {\n return isInteger(value) && value >= -MAX_SAFE_INTEGER && value <= MAX_SAFE_INTEGER;\n }\n\n /**\n * Checks if `value` is classified as a `Set` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a set, else `false`.\n * @example\n *\n * _.isSet(new Set);\n * // => true\n *\n * _.isSet(new WeakSet);\n * // => false\n */\n var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;\n\n /**\n * Checks if `value` is classified as a `String` primitive or object.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a string, else `false`.\n * @example\n *\n * _.isString('abc');\n * // => true\n *\n * _.isString(1);\n * // => false\n */\n function isString(value) {\n return typeof value == 'string' ||\n (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag);\n }\n\n /**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\n function isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && baseGetTag(value) == symbolTag);\n }\n\n /**\n * Checks if `value` is classified as a typed array.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n * @example\n *\n * _.isTypedArray(new Uint8Array);\n * // => true\n *\n * _.isTypedArray([]);\n * // => false\n */\n var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;\n\n /**\n * Checks if `value` is `undefined`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.\n * @example\n *\n * _.isUndefined(void 0);\n * // => true\n *\n * _.isUndefined(null);\n * // => false\n */\n function isUndefined(value) {\n return value === undefined;\n }\n\n /**\n * Checks if `value` is classified as a `WeakMap` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a weak map, else `false`.\n * @example\n *\n * _.isWeakMap(new WeakMap);\n * // => true\n *\n * _.isWeakMap(new Map);\n * // => false\n */\n function isWeakMap(value) {\n return isObjectLike(value) && getTag(value) == weakMapTag;\n }\n\n /**\n * Checks if `value` is classified as a `WeakSet` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a weak set, else `false`.\n * @example\n *\n * _.isWeakSet(new WeakSet);\n * // => true\n *\n * _.isWeakSet(new Set);\n * // => false\n */\n function isWeakSet(value) {\n return isObjectLike(value) && baseGetTag(value) == weakSetTag;\n }\n\n /**\n * Checks if `value` is less than `other`.\n *\n * @static\n * @memberOf _\n * @since 3.9.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is less than `other`,\n * else `false`.\n * @see _.gt\n * @example\n *\n * _.lt(1, 3);\n * // => true\n *\n * _.lt(3, 3);\n * // => false\n *\n * _.lt(3, 1);\n * // => false\n */\n var lt = createRelationalOperation(baseLt);\n\n /**\n * Checks if `value` is less than or equal to `other`.\n *\n * @static\n * @memberOf _\n * @since 3.9.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is less than or equal to\n * `other`, else `false`.\n * @see _.gte\n * @example\n *\n * _.lte(1, 3);\n * // => true\n *\n * _.lte(3, 3);\n * // => true\n *\n * _.lte(3, 1);\n * // => false\n */\n var lte = createRelationalOperation(function(value, other) {\n return value <= other;\n });\n\n /**\n * Converts `value` to an array.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {Array} Returns the converted array.\n * @example\n *\n * _.toArray({ 'a': 1, 'b': 2 });\n * // => [1, 2]\n *\n * _.toArray('abc');\n * // => ['a', 'b', 'c']\n *\n * _.toArray(1);\n * // => []\n *\n * _.toArray(null);\n * // => []\n */\n function toArray(value) {\n if (!value) {\n return [];\n }\n if (isArrayLike(value)) {\n return isString(value) ? stringToArray(value) : copyArray(value);\n }\n if (symIterator && value[symIterator]) {\n return iteratorToArray(value[symIterator]());\n }\n var tag = getTag(value),\n func = tag == mapTag ? mapToArray : (tag == setTag ? setToArray : values);\n\n return func(value);\n }\n\n /**\n * Converts `value` to a finite number.\n *\n * @static\n * @memberOf _\n * @since 4.12.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted number.\n * @example\n *\n * _.toFinite(3.2);\n * // => 3.2\n *\n * _.toFinite(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toFinite(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toFinite('3.2');\n * // => 3.2\n */\n function toFinite(value) {\n if (!value) {\n return value === 0 ? value : 0;\n }\n value = toNumber(value);\n if (value === INFINITY || value === -INFINITY) {\n var sign = (value < 0 ? -1 : 1);\n return sign * MAX_INTEGER;\n }\n return value === value ? value : 0;\n }\n\n /**\n * Converts `value` to an integer.\n *\n * **Note:** This method is loosely based on\n * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.toInteger(3.2);\n * // => 3\n *\n * _.toInteger(Number.MIN_VALUE);\n * // => 0\n *\n * _.toInteger(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toInteger('3.2');\n * // => 3\n */\n function toInteger(value) {\n var result = toFinite(value),\n remainder = result % 1;\n\n return result === result ? (remainder ? result - remainder : result) : 0;\n }\n\n /**\n * Converts `value` to an integer suitable for use as the length of an\n * array-like object.\n *\n * **Note:** This method is based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.toLength(3.2);\n * // => 3\n *\n * _.toLength(Number.MIN_VALUE);\n * // => 0\n *\n * _.toLength(Infinity);\n * // => 4294967295\n *\n * _.toLength('3.2');\n * // => 3\n */\n function toLength(value) {\n return value ? baseClamp(toInteger(value), 0, MAX_ARRAY_LENGTH) : 0;\n }\n\n /**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\n function toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = value.replace(reTrim, '');\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n }\n\n /**\n * Converts `value` to a plain object flattening inherited enumerable string\n * keyed properties of `value` to own properties of the plain object.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {Object} Returns the converted plain object.\n * @example\n *\n * function Foo() {\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.assign({ 'a': 1 }, new Foo);\n * // => { 'a': 1, 'b': 2 }\n *\n * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));\n * // => { 'a': 1, 'b': 2, 'c': 3 }\n */\n function toPlainObject(value) {\n return copyObject(value, keysIn(value));\n }\n\n /**\n * Converts `value` to a safe integer. A safe integer can be compared and\n * represented correctly.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.toSafeInteger(3.2);\n * // => 3\n *\n * _.toSafeInteger(Number.MIN_VALUE);\n * // => 0\n *\n * _.toSafeInteger(Infinity);\n * // => 9007199254740991\n *\n * _.toSafeInteger('3.2');\n * // => 3\n */\n function toSafeInteger(value) {\n return value\n ? baseClamp(toInteger(value), -MAX_SAFE_INTEGER, MAX_SAFE_INTEGER)\n : (value === 0 ? value : 0);\n }\n\n /**\n * Converts `value` to a string. An empty string is returned for `null`\n * and `undefined` values. The sign of `-0` is preserved.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n * @example\n *\n * _.toString(null);\n * // => ''\n *\n * _.toString(-0);\n * // => '-0'\n *\n * _.toString([1, 2, 3]);\n * // => '1,2,3'\n */\n function toString(value) {\n return value == null ? '' : baseToString(value);\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Assigns own enumerable string keyed properties of source objects to the\n * destination object. Source objects are applied from left to right.\n * Subsequent sources overwrite property assignments of previous sources.\n *\n * **Note:** This method mutates `object` and is loosely based on\n * [`Object.assign`](https://mdn.io/Object/assign).\n *\n * @static\n * @memberOf _\n * @since 0.10.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @see _.assignIn\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * function Bar() {\n * this.c = 3;\n * }\n *\n * Foo.prototype.b = 2;\n * Bar.prototype.d = 4;\n *\n * _.assign({ 'a': 0 }, new Foo, new Bar);\n * // => { 'a': 1, 'c': 3 }\n */\n var assign = createAssigner(function(object, source) {\n if (isPrototype(source) || isArrayLike(source)) {\n copyObject(source, keys(source), object);\n return;\n }\n for (var key in source) {\n if (hasOwnProperty.call(source, key)) {\n assignValue(object, key, source[key]);\n }\n }\n });\n\n /**\n * This method is like `_.assign` except that it iterates over own and\n * inherited source properties.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @alias extend\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @see _.assign\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * function Bar() {\n * this.c = 3;\n * }\n *\n * Foo.prototype.b = 2;\n * Bar.prototype.d = 4;\n *\n * _.assignIn({ 'a': 0 }, new Foo, new Bar);\n * // => { 'a': 1, 'b': 2, 'c': 3, 'd': 4 }\n */\n var assignIn = createAssigner(function(object, source) {\n copyObject(source, keysIn(source), object);\n });\n\n /**\n * This method is like `_.assignIn` except that it accepts `customizer`\n * which is invoked to produce the assigned values. If `customizer` returns\n * `undefined`, assignment is handled by the method instead. The `customizer`\n * is invoked with five arguments: (objValue, srcValue, key, object, source).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @alias extendWith\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} sources The source objects.\n * @param {Function} [customizer] The function to customize assigned values.\n * @returns {Object} Returns `object`.\n * @see _.assignWith\n * @example\n *\n * function customizer(objValue, srcValue) {\n * return _.isUndefined(objValue) ? srcValue : objValue;\n * }\n *\n * var defaults = _.partialRight(_.assignInWith, customizer);\n *\n * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });\n * // => { 'a': 1, 'b': 2 }\n */\n var assignInWith = createAssigner(function(object, source, srcIndex, customizer) {\n copyObject(source, keysIn(source), object, customizer);\n });\n\n /**\n * This method is like `_.assign` except that it accepts `customizer`\n * which is invoked to produce the assigned values. If `customizer` returns\n * `undefined`, assignment is handled by the method instead. The `customizer`\n * is invoked with five arguments: (objValue, srcValue, key, object, source).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} sources The source objects.\n * @param {Function} [customizer] The function to customize assigned values.\n * @returns {Object} Returns `object`.\n * @see _.assignInWith\n * @example\n *\n * function customizer(objValue, srcValue) {\n * return _.isUndefined(objValue) ? srcValue : objValue;\n * }\n *\n * var defaults = _.partialRight(_.assignWith, customizer);\n *\n * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });\n * // => { 'a': 1, 'b': 2 }\n */\n var assignWith = createAssigner(function(object, source, srcIndex, customizer) {\n copyObject(source, keys(source), object, customizer);\n });\n\n /**\n * Creates an array of values corresponding to `paths` of `object`.\n *\n * @static\n * @memberOf _\n * @since 1.0.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {...(string|string[])} [paths] The property paths to pick.\n * @returns {Array} Returns the picked values.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }, 4] };\n *\n * _.at(object, ['a[0].b.c', 'a[1]']);\n * // => [3, 4]\n */\n var at = flatRest(baseAt);\n\n /**\n * Creates an object that inherits from the `prototype` object. If a\n * `properties` object is given, its own enumerable string keyed properties\n * are assigned to the created object.\n *\n * @static\n * @memberOf _\n * @since 2.3.0\n * @category Object\n * @param {Object} prototype The object to inherit from.\n * @param {Object} [properties] The properties to assign to the object.\n * @returns {Object} Returns the new object.\n * @example\n *\n * function Shape() {\n * this.x = 0;\n * this.y = 0;\n * }\n *\n * function Circle() {\n * Shape.call(this);\n * }\n *\n * Circle.prototype = _.create(Shape.prototype, {\n * 'constructor': Circle\n * });\n *\n * var circle = new Circle;\n * circle instanceof Circle;\n * // => true\n *\n * circle instanceof Shape;\n * // => true\n */\n function create(prototype, properties) {\n var result = baseCreate(prototype);\n return properties == null ? result : baseAssign(result, properties);\n }\n\n /**\n * Assigns own and inherited enumerable string keyed properties of source\n * objects to the destination object for all destination properties that\n * resolve to `undefined`. Source objects are applied from left to right.\n * Once a property is set, additional values of the same property are ignored.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @see _.defaultsDeep\n * @example\n *\n * _.defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });\n * // => { 'a': 1, 'b': 2 }\n */\n var defaults = baseRest(function(object, sources) {\n object = Object(object);\n\n var index = -1;\n var length = sources.length;\n var guard = length > 2 ? sources[2] : undefined;\n\n if (guard && isIterateeCall(sources[0], sources[1], guard)) {\n length = 1;\n }\n\n while (++index < length) {\n var source = sources[index];\n var props = keysIn(source);\n var propsIndex = -1;\n var propsLength = props.length;\n\n while (++propsIndex < propsLength) {\n var key = props[propsIndex];\n var value = object[key];\n\n if (value === undefined ||\n (eq(value, objectProto[key]) && !hasOwnProperty.call(object, key))) {\n object[key] = source[key];\n }\n }\n }\n\n return object;\n });\n\n /**\n * This method is like `_.defaults` except that it recursively assigns\n * default properties.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 3.10.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @see _.defaults\n * @example\n *\n * _.defaultsDeep({ 'a': { 'b': 2 } }, { 'a': { 'b': 1, 'c': 3 } });\n * // => { 'a': { 'b': 2, 'c': 3 } }\n */\n var defaultsDeep = baseRest(function(args) {\n args.push(undefined, customDefaultsMerge);\n return apply(mergeWith, undefined, args);\n });\n\n /**\n * This method is like `_.find` except that it returns the key of the first\n * element `predicate` returns truthy for instead of the element itself.\n *\n * @static\n * @memberOf _\n * @since 1.1.0\n * @category Object\n * @param {Object} object The object to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {string|undefined} Returns the key of the matched element,\n * else `undefined`.\n * @example\n *\n * var users = {\n * 'barney': { 'age': 36, 'active': true },\n * 'fred': { 'age': 40, 'active': false },\n * 'pebbles': { 'age': 1, 'active': true }\n * };\n *\n * _.findKey(users, function(o) { return o.age < 40; });\n * // => 'barney' (iteration order is not guaranteed)\n *\n * // The `_.matches` iteratee shorthand.\n * _.findKey(users, { 'age': 1, 'active': true });\n * // => 'pebbles'\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.findKey(users, ['active', false]);\n * // => 'fred'\n *\n * // The `_.property` iteratee shorthand.\n * _.findKey(users, 'active');\n * // => 'barney'\n */\n function findKey(object, predicate) {\n return baseFindKey(object, getIteratee(predicate, 3), baseForOwn);\n }\n\n /**\n * This method is like `_.findKey` except that it iterates over elements of\n * a collection in the opposite order.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Object\n * @param {Object} object The object to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {string|undefined} Returns the key of the matched element,\n * else `undefined`.\n * @example\n *\n * var users = {\n * 'barney': { 'age': 36, 'active': true },\n * 'fred': { 'age': 40, 'active': false },\n * 'pebbles': { 'age': 1, 'active': true }\n * };\n *\n * _.findLastKey(users, function(o) { return o.age < 40; });\n * // => returns 'pebbles' assuming `_.findKey` returns 'barney'\n *\n * // The `_.matches` iteratee shorthand.\n * _.findLastKey(users, { 'age': 36, 'active': true });\n * // => 'barney'\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.findLastKey(users, ['active', false]);\n * // => 'fred'\n *\n * // The `_.property` iteratee shorthand.\n * _.findLastKey(users, 'active');\n * // => 'pebbles'\n */\n function findLastKey(object, predicate) {\n return baseFindKey(object, getIteratee(predicate, 3), baseForOwnRight);\n }\n\n /**\n * Iterates over own and inherited enumerable string keyed properties of an\n * object and invokes `iteratee` for each property. The iteratee is invoked\n * with three arguments: (value, key, object). Iteratee functions may exit\n * iteration early by explicitly returning `false`.\n *\n * @static\n * @memberOf _\n * @since 0.3.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns `object`.\n * @see _.forInRight\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.forIn(new Foo, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'a', 'b', then 'c' (iteration order is not guaranteed).\n */\n function forIn(object, iteratee) {\n return object == null\n ? object\n : baseFor(object, getIteratee(iteratee, 3), keysIn);\n }\n\n /**\n * This method is like `_.forIn` except that it iterates over properties of\n * `object` in the opposite order.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns `object`.\n * @see _.forIn\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.forInRight(new Foo, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'c', 'b', then 'a' assuming `_.forIn` logs 'a', 'b', then 'c'.\n */\n function forInRight(object, iteratee) {\n return object == null\n ? object\n : baseForRight(object, getIteratee(iteratee, 3), keysIn);\n }\n\n /**\n * Iterates over own enumerable string keyed properties of an object and\n * invokes `iteratee` for each property. The iteratee is invoked with three\n * arguments: (value, key, object). Iteratee functions may exit iteration\n * early by explicitly returning `false`.\n *\n * @static\n * @memberOf _\n * @since 0.3.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns `object`.\n * @see _.forOwnRight\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.forOwn(new Foo, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'a' then 'b' (iteration order is not guaranteed).\n */\n function forOwn(object, iteratee) {\n return object && baseForOwn(object, getIteratee(iteratee, 3));\n }\n\n /**\n * This method is like `_.forOwn` except that it iterates over properties of\n * `object` in the opposite order.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns `object`.\n * @see _.forOwn\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.forOwnRight(new Foo, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'b' then 'a' assuming `_.forOwn` logs 'a' then 'b'.\n */\n function forOwnRight(object, iteratee) {\n return object && baseForOwnRight(object, getIteratee(iteratee, 3));\n }\n\n /**\n * Creates an array of function property names from own enumerable properties\n * of `object`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to inspect.\n * @returns {Array} Returns the function names.\n * @see _.functionsIn\n * @example\n *\n * function Foo() {\n * this.a = _.constant('a');\n * this.b = _.constant('b');\n * }\n *\n * Foo.prototype.c = _.constant('c');\n *\n * _.functions(new Foo);\n * // => ['a', 'b']\n */\n function functions(object) {\n return object == null ? [] : baseFunctions(object, keys(object));\n }\n\n /**\n * Creates an array of function property names from own and inherited\n * enumerable properties of `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to inspect.\n * @returns {Array} Returns the function names.\n * @see _.functions\n * @example\n *\n * function Foo() {\n * this.a = _.constant('a');\n * this.b = _.constant('b');\n * }\n *\n * Foo.prototype.c = _.constant('c');\n *\n * _.functionsIn(new Foo);\n * // => ['a', 'b', 'c']\n */\n function functionsIn(object) {\n return object == null ? [] : baseFunctions(object, keysIn(object));\n }\n\n /**\n * Gets the value at `path` of `object`. If the resolved value is\n * `undefined`, the `defaultValue` is returned in its place.\n *\n * @static\n * @memberOf _\n * @since 3.7.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @param {*} [defaultValue] The value returned for `undefined` resolved values.\n * @returns {*} Returns the resolved value.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }] };\n *\n * _.get(object, 'a[0].b.c');\n * // => 3\n *\n * _.get(object, ['a', '0', 'b', 'c']);\n * // => 3\n *\n * _.get(object, 'a.b.c', 'default');\n * // => 'default'\n */\n function get(object, path, defaultValue) {\n var result = object == null ? undefined : baseGet(object, path);\n return result === undefined ? defaultValue : result;\n }\n\n /**\n * Checks if `path` is a direct property of `object`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n * @example\n *\n * var object = { 'a': { 'b': 2 } };\n * var other = _.create({ 'a': _.create({ 'b': 2 }) });\n *\n * _.has(object, 'a');\n * // => true\n *\n * _.has(object, 'a.b');\n * // => true\n *\n * _.has(object, ['a', 'b']);\n * // => true\n *\n * _.has(other, 'a');\n * // => false\n */\n function has(object, path) {\n return object != null && hasPath(object, path, baseHas);\n }\n\n /**\n * Checks if `path` is a direct or inherited property of `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n * @example\n *\n * var object = _.create({ 'a': _.create({ 'b': 2 }) });\n *\n * _.hasIn(object, 'a');\n * // => true\n *\n * _.hasIn(object, 'a.b');\n * // => true\n *\n * _.hasIn(object, ['a', 'b']);\n * // => true\n *\n * _.hasIn(object, 'b');\n * // => false\n */\n function hasIn(object, path) {\n return object != null && hasPath(object, path, baseHasIn);\n }\n\n /**\n * Creates an object composed of the inverted keys and values of `object`.\n * If `object` contains duplicate values, subsequent values overwrite\n * property assignments of previous values.\n *\n * @static\n * @memberOf _\n * @since 0.7.0\n * @category Object\n * @param {Object} object The object to invert.\n * @returns {Object} Returns the new inverted object.\n * @example\n *\n * var object = { 'a': 1, 'b': 2, 'c': 1 };\n *\n * _.invert(object);\n * // => { '1': 'c', '2': 'b' }\n */\n var invert = createInverter(function(result, value, key) {\n if (value != null &&\n typeof value.toString != 'function') {\n value = nativeObjectToString.call(value);\n }\n\n result[value] = key;\n }, constant(identity));\n\n /**\n * This method is like `_.invert` except that the inverted object is generated\n * from the results of running each element of `object` thru `iteratee`. The\n * corresponding inverted value of each inverted key is an array of keys\n * responsible for generating the inverted value. The iteratee is invoked\n * with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.1.0\n * @category Object\n * @param {Object} object The object to invert.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Object} Returns the new inverted object.\n * @example\n *\n * var object = { 'a': 1, 'b': 2, 'c': 1 };\n *\n * _.invertBy(object);\n * // => { '1': ['a', 'c'], '2': ['b'] }\n *\n * _.invertBy(object, function(value) {\n * return 'group' + value;\n * });\n * // => { 'group1': ['a', 'c'], 'group2': ['b'] }\n */\n var invertBy = createInverter(function(result, value, key) {\n if (value != null &&\n typeof value.toString != 'function') {\n value = nativeObjectToString.call(value);\n }\n\n if (hasOwnProperty.call(result, value)) {\n result[value].push(key);\n } else {\n result[value] = [key];\n }\n }, getIteratee);\n\n /**\n * Invokes the method at `path` of `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the method to invoke.\n * @param {...*} [args] The arguments to invoke the method with.\n * @returns {*} Returns the result of the invoked method.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': [1, 2, 3, 4] } }] };\n *\n * _.invoke(object, 'a[0].b.c.slice', 1, 3);\n * // => [2, 3]\n */\n var invoke = baseRest(baseInvoke);\n\n /**\n * Creates an array of the own enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects. See the\n * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * for more details.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keys(new Foo);\n * // => ['a', 'b'] (iteration order is not guaranteed)\n *\n * _.keys('hi');\n * // => ['0', '1']\n */\n function keys(object) {\n return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);\n }\n\n /**\n * Creates an array of the own and inherited enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keysIn(new Foo);\n * // => ['a', 'b', 'c'] (iteration order is not guaranteed)\n */\n function keysIn(object) {\n return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);\n }\n\n /**\n * The opposite of `_.mapValues`; this method creates an object with the\n * same values as `object` and keys generated by running each own enumerable\n * string keyed property of `object` thru `iteratee`. The iteratee is invoked\n * with three arguments: (value, key, object).\n *\n * @static\n * @memberOf _\n * @since 3.8.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns the new mapped object.\n * @see _.mapValues\n * @example\n *\n * _.mapKeys({ 'a': 1, 'b': 2 }, function(value, key) {\n * return key + value;\n * });\n * // => { 'a1': 1, 'b2': 2 }\n */\n function mapKeys(object, iteratee) {\n var result = {};\n iteratee = getIteratee(iteratee, 3);\n\n baseForOwn(object, function(value, key, object) {\n baseAssignValue(result, iteratee(value, key, object), value);\n });\n return result;\n }\n\n /**\n * Creates an object with the same keys as `object` and values generated\n * by running each own enumerable string keyed property of `object` thru\n * `iteratee`. The iteratee is invoked with three arguments:\n * (value, key, object).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns the new mapped object.\n * @see _.mapKeys\n * @example\n *\n * var users = {\n * 'fred': { 'user': 'fred', 'age': 40 },\n * 'pebbles': { 'user': 'pebbles', 'age': 1 }\n * };\n *\n * _.mapValues(users, function(o) { return o.age; });\n * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)\n *\n * // The `_.property` iteratee shorthand.\n * _.mapValues(users, 'age');\n * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)\n */\n function mapValues(object, iteratee) {\n var result = {};\n iteratee = getIteratee(iteratee, 3);\n\n baseForOwn(object, function(value, key, object) {\n baseAssignValue(result, key, iteratee(value, key, object));\n });\n return result;\n }\n\n /**\n * This method is like `_.assign` except that it recursively merges own and\n * inherited enumerable string keyed properties of source objects into the\n * destination object. Source properties that resolve to `undefined` are\n * skipped if a destination value exists. Array and plain object properties\n * are merged recursively. Other objects and value types are overridden by\n * assignment. Source objects are applied from left to right. Subsequent\n * sources overwrite property assignments of previous sources.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 0.5.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = {\n * 'a': [{ 'b': 2 }, { 'd': 4 }]\n * };\n *\n * var other = {\n * 'a': [{ 'c': 3 }, { 'e': 5 }]\n * };\n *\n * _.merge(object, other);\n * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }\n */\n var merge = createAssigner(function(object, source, srcIndex) {\n baseMerge(object, source, srcIndex);\n });\n\n /**\n * This method is like `_.merge` except that it accepts `customizer` which\n * is invoked to produce the merged values of the destination and source\n * properties. If `customizer` returns `undefined`, merging is handled by the\n * method instead. The `customizer` is invoked with six arguments:\n * (objValue, srcValue, key, object, source, stack).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} sources The source objects.\n * @param {Function} customizer The function to customize assigned values.\n * @returns {Object} Returns `object`.\n * @example\n *\n * function customizer(objValue, srcValue) {\n * if (_.isArray(objValue)) {\n * return objValue.concat(srcValue);\n * }\n * }\n *\n * var object = { 'a': [1], 'b': [2] };\n * var other = { 'a': [3], 'b': [4] };\n *\n * _.mergeWith(object, other, customizer);\n * // => { 'a': [1, 3], 'b': [2, 4] }\n */\n var mergeWith = createAssigner(function(object, source, srcIndex, customizer) {\n baseMerge(object, source, srcIndex, customizer);\n });\n\n /**\n * The opposite of `_.pick`; this method creates an object composed of the\n * own and inherited enumerable property paths of `object` that are not omitted.\n *\n * **Note:** This method is considerably slower than `_.pick`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The source object.\n * @param {...(string|string[])} [paths] The property paths to omit.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.omit(object, ['a', 'c']);\n * // => { 'b': '2' }\n */\n var omit = flatRest(function(object, paths) {\n var result = {};\n if (object == null) {\n return result;\n }\n var isDeep = false;\n paths = arrayMap(paths, function(path) {\n path = castPath(path, object);\n isDeep || (isDeep = path.length > 1);\n return path;\n });\n copyObject(object, getAllKeysIn(object), result);\n if (isDeep) {\n result = baseClone(result, CLONE_DEEP_FLAG | CLONE_FLAT_FLAG | CLONE_SYMBOLS_FLAG, customOmitClone);\n }\n var length = paths.length;\n while (length--) {\n baseUnset(result, paths[length]);\n }\n return result;\n });\n\n /**\n * The opposite of `_.pickBy`; this method creates an object composed of\n * the own and inherited enumerable string keyed properties of `object` that\n * `predicate` doesn't return truthy for. The predicate is invoked with two\n * arguments: (value, key).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The source object.\n * @param {Function} [predicate=_.identity] The function invoked per property.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.omitBy(object, _.isNumber);\n * // => { 'b': '2' }\n */\n function omitBy(object, predicate) {\n return pickBy(object, negate(getIteratee(predicate)));\n }\n\n /**\n * Creates an object composed of the picked `object` properties.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The source object.\n * @param {...(string|string[])} [paths] The property paths to pick.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.pick(object, ['a', 'c']);\n * // => { 'a': 1, 'c': 3 }\n */\n var pick = flatRest(function(object, paths) {\n return object == null ? {} : basePick(object, paths);\n });\n\n /**\n * Creates an object composed of the `object` properties `predicate` returns\n * truthy for. The predicate is invoked with two arguments: (value, key).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The source object.\n * @param {Function} [predicate=_.identity] The function invoked per property.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.pickBy(object, _.isNumber);\n * // => { 'a': 1, 'c': 3 }\n */\n function pickBy(object, predicate) {\n if (object == null) {\n return {};\n }\n var props = arrayMap(getAllKeysIn(object), function(prop) {\n return [prop];\n });\n predicate = getIteratee(predicate);\n return basePickBy(object, props, function(value, path) {\n return predicate(value, path[0]);\n });\n }\n\n /**\n * This method is like `_.get` except that if the resolved value is a\n * function it's invoked with the `this` binding of its parent object and\n * its result is returned.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to resolve.\n * @param {*} [defaultValue] The value returned for `undefined` resolved values.\n * @returns {*} Returns the resolved value.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c1': 3, 'c2': _.constant(4) } }] };\n *\n * _.result(object, 'a[0].b.c1');\n * // => 3\n *\n * _.result(object, 'a[0].b.c2');\n * // => 4\n *\n * _.result(object, 'a[0].b.c3', 'default');\n * // => 'default'\n *\n * _.result(object, 'a[0].b.c3', _.constant('default'));\n * // => 'default'\n */\n function result(object, path, defaultValue) {\n path = castPath(path, object);\n\n var index = -1,\n length = path.length;\n\n // Ensure the loop is entered when path is empty.\n if (!length) {\n length = 1;\n object = undefined;\n }\n while (++index < length) {\n var value = object == null ? undefined : object[toKey(path[index])];\n if (value === undefined) {\n index = length;\n value = defaultValue;\n }\n object = isFunction(value) ? value.call(object) : value;\n }\n return object;\n }\n\n /**\n * Sets the value at `path` of `object`. If a portion of `path` doesn't exist,\n * it's created. Arrays are created for missing index properties while objects\n * are created for all other missing properties. Use `_.setWith` to customize\n * `path` creation.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 3.7.0\n * @category Object\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }] };\n *\n * _.set(object, 'a[0].b.c', 4);\n * console.log(object.a[0].b.c);\n * // => 4\n *\n * _.set(object, ['x', '0', 'y', 'z'], 5);\n * console.log(object.x[0].y.z);\n * // => 5\n */\n function set(object, path, value) {\n return object == null ? object : baseSet(object, path, value);\n }\n\n /**\n * This method is like `_.set` except that it accepts `customizer` which is\n * invoked to produce the objects of `path`. If `customizer` returns `undefined`\n * path creation is handled by the method instead. The `customizer` is invoked\n * with three arguments: (nsValue, key, nsObject).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {*} value The value to set.\n * @param {Function} [customizer] The function to customize assigned values.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = {};\n *\n * _.setWith(object, '[0][1]', 'a', Object);\n * // => { '0': { '1': 'a' } }\n */\n function setWith(object, path, value, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined;\n return object == null ? object : baseSet(object, path, value, customizer);\n }\n\n /**\n * Creates an array of own enumerable string keyed-value pairs for `object`\n * which can be consumed by `_.fromPairs`. If `object` is a map or set, its\n * entries are returned.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @alias entries\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the key-value pairs.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.toPairs(new Foo);\n * // => [['a', 1], ['b', 2]] (iteration order is not guaranteed)\n */\n var toPairs = createToPairs(keys);\n\n /**\n * Creates an array of own and inherited enumerable string keyed-value pairs\n * for `object` which can be consumed by `_.fromPairs`. If `object` is a map\n * or set, its entries are returned.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @alias entriesIn\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the key-value pairs.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.toPairsIn(new Foo);\n * // => [['a', 1], ['b', 2], ['c', 3]] (iteration order is not guaranteed)\n */\n var toPairsIn = createToPairs(keysIn);\n\n /**\n * An alternative to `_.reduce`; this method transforms `object` to a new\n * `accumulator` object which is the result of running each of its own\n * enumerable string keyed properties thru `iteratee`, with each invocation\n * potentially mutating the `accumulator` object. If `accumulator` is not\n * provided, a new object with the same `[[Prototype]]` will be used. The\n * iteratee is invoked with four arguments: (accumulator, value, key, object).\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * @static\n * @memberOf _\n * @since 1.3.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @param {*} [accumulator] The custom accumulator value.\n * @returns {*} Returns the accumulated value.\n * @example\n *\n * _.transform([2, 3, 4], function(result, n) {\n * result.push(n *= n);\n * return n % 2 == 0;\n * }, []);\n * // => [4, 9]\n *\n * _.transform({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {\n * (result[value] || (result[value] = [])).push(key);\n * }, {});\n * // => { '1': ['a', 'c'], '2': ['b'] }\n */\n function transform(object, iteratee, accumulator) {\n var isArr = isArray(object),\n isArrLike = isArr || isBuffer(object) || isTypedArray(object);\n\n iteratee = getIteratee(iteratee, 4);\n if (accumulator == null) {\n var Ctor = object && object.constructor;\n if (isArrLike) {\n accumulator = isArr ? new Ctor : [];\n }\n else if (isObject(object)) {\n accumulator = isFunction(Ctor) ? baseCreate(getPrototype(object)) : {};\n }\n else {\n accumulator = {};\n }\n }\n (isArrLike ? arrayEach : baseForOwn)(object, function(value, index, object) {\n return iteratee(accumulator, value, index, object);\n });\n return accumulator;\n }\n\n /**\n * Removes the property at `path` of `object`.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to unset.\n * @returns {boolean} Returns `true` if the property is deleted, else `false`.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 7 } }] };\n * _.unset(object, 'a[0].b.c');\n * // => true\n *\n * console.log(object);\n * // => { 'a': [{ 'b': {} }] };\n *\n * _.unset(object, ['a', '0', 'b', 'c']);\n * // => true\n *\n * console.log(object);\n * // => { 'a': [{ 'b': {} }] };\n */\n function unset(object, path) {\n return object == null ? true : baseUnset(object, path);\n }\n\n /**\n * This method is like `_.set` except that accepts `updater` to produce the\n * value to set. Use `_.updateWith` to customize `path` creation. The `updater`\n * is invoked with one argument: (value).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.6.0\n * @category Object\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {Function} updater The function to produce the updated value.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }] };\n *\n * _.update(object, 'a[0].b.c', function(n) { return n * n; });\n * console.log(object.a[0].b.c);\n * // => 9\n *\n * _.update(object, 'x[0].y.z', function(n) { return n ? n + 1 : 0; });\n * console.log(object.x[0].y.z);\n * // => 0\n */\n function update(object, path, updater) {\n return object == null ? object : baseUpdate(object, path, castFunction(updater));\n }\n\n /**\n * This method is like `_.update` except that it accepts `customizer` which is\n * invoked to produce the objects of `path`. If `customizer` returns `undefined`\n * path creation is handled by the method instead. The `customizer` is invoked\n * with three arguments: (nsValue, key, nsObject).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.6.0\n * @category Object\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {Function} updater The function to produce the updated value.\n * @param {Function} [customizer] The function to customize assigned values.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = {};\n *\n * _.updateWith(object, '[0][1]', _.constant('a'), Object);\n * // => { '0': { '1': 'a' } }\n */\n function updateWith(object, path, updater, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined;\n return object == null ? object : baseUpdate(object, path, castFunction(updater), customizer);\n }\n\n /**\n * Creates an array of the own enumerable string keyed property values of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property values.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.values(new Foo);\n * // => [1, 2] (iteration order is not guaranteed)\n *\n * _.values('hi');\n * // => ['h', 'i']\n */\n function values(object) {\n return object == null ? [] : baseValues(object, keys(object));\n }\n\n /**\n * Creates an array of the own and inherited enumerable string keyed property\n * values of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property values.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.valuesIn(new Foo);\n * // => [1, 2, 3] (iteration order is not guaranteed)\n */\n function valuesIn(object) {\n return object == null ? [] : baseValues(object, keysIn(object));\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Clamps `number` within the inclusive `lower` and `upper` bounds.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Number\n * @param {number} number The number to clamp.\n * @param {number} [lower] The lower bound.\n * @param {number} upper The upper bound.\n * @returns {number} Returns the clamped number.\n * @example\n *\n * _.clamp(-10, -5, 5);\n * // => -5\n *\n * _.clamp(10, -5, 5);\n * // => 5\n */\n function clamp(number, lower, upper) {\n if (upper === undefined) {\n upper = lower;\n lower = undefined;\n }\n if (upper !== undefined) {\n upper = toNumber(upper);\n upper = upper === upper ? upper : 0;\n }\n if (lower !== undefined) {\n lower = toNumber(lower);\n lower = lower === lower ? lower : 0;\n }\n return baseClamp(toNumber(number), lower, upper);\n }\n\n /**\n * Checks if `n` is between `start` and up to, but not including, `end`. If\n * `end` is not specified, it's set to `start` with `start` then set to `0`.\n * If `start` is greater than `end` the params are swapped to support\n * negative ranges.\n *\n * @static\n * @memberOf _\n * @since 3.3.0\n * @category Number\n * @param {number} number The number to check.\n * @param {number} [start=0] The start of the range.\n * @param {number} end The end of the range.\n * @returns {boolean} Returns `true` if `number` is in the range, else `false`.\n * @see _.range, _.rangeRight\n * @example\n *\n * _.inRange(3, 2, 4);\n * // => true\n *\n * _.inRange(4, 8);\n * // => true\n *\n * _.inRange(4, 2);\n * // => false\n *\n * _.inRange(2, 2);\n * // => false\n *\n * _.inRange(1.2, 2);\n * // => true\n *\n * _.inRange(5.2, 4);\n * // => false\n *\n * _.inRange(-3, -2, -6);\n * // => true\n */\n function inRange(number, start, end) {\n start = toFinite(start);\n if (end === undefined) {\n end = start;\n start = 0;\n } else {\n end = toFinite(end);\n }\n number = toNumber(number);\n return baseInRange(number, start, end);\n }\n\n /**\n * Produces a random number between the inclusive `lower` and `upper` bounds.\n * If only one argument is provided a number between `0` and the given number\n * is returned. If `floating` is `true`, or either `lower` or `upper` are\n * floats, a floating-point number is returned instead of an integer.\n *\n * **Note:** JavaScript follows the IEEE-754 standard for resolving\n * floating-point values which can produce unexpected results.\n *\n * @static\n * @memberOf _\n * @since 0.7.0\n * @category Number\n * @param {number} [lower=0] The lower bound.\n * @param {number} [upper=1] The upper bound.\n * @param {boolean} [floating] Specify returning a floating-point number.\n * @returns {number} Returns the random number.\n * @example\n *\n * _.random(0, 5);\n * // => an integer between 0 and 5\n *\n * _.random(5);\n * // => also an integer between 0 and 5\n *\n * _.random(5, true);\n * // => a floating-point number between 0 and 5\n *\n * _.random(1.2, 5.2);\n * // => a floating-point number between 1.2 and 5.2\n */\n function random(lower, upper, floating) {\n if (floating && typeof floating != 'boolean' && isIterateeCall(lower, upper, floating)) {\n upper = floating = undefined;\n }\n if (floating === undefined) {\n if (typeof upper == 'boolean') {\n floating = upper;\n upper = undefined;\n }\n else if (typeof lower == 'boolean') {\n floating = lower;\n lower = undefined;\n }\n }\n if (lower === undefined && upper === undefined) {\n lower = 0;\n upper = 1;\n }\n else {\n lower = toFinite(lower);\n if (upper === undefined) {\n upper = lower;\n lower = 0;\n } else {\n upper = toFinite(upper);\n }\n }\n if (lower > upper) {\n var temp = lower;\n lower = upper;\n upper = temp;\n }\n if (floating || lower % 1 || upper % 1) {\n var rand = nativeRandom();\n return nativeMin(lower + (rand * (upper - lower + freeParseFloat('1e-' + ((rand + '').length - 1)))), upper);\n }\n return baseRandom(lower, upper);\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Converts `string` to [camel case](https://en.wikipedia.org/wiki/CamelCase).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the camel cased string.\n * @example\n *\n * _.camelCase('Foo Bar');\n * // => 'fooBar'\n *\n * _.camelCase('--foo-bar--');\n * // => 'fooBar'\n *\n * _.camelCase('__FOO_BAR__');\n * // => 'fooBar'\n */\n var camelCase = createCompounder(function(result, word, index) {\n word = word.toLowerCase();\n return result + (index ? capitalize(word) : word);\n });\n\n /**\n * Converts the first character of `string` to upper case and the remaining\n * to lower case.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to capitalize.\n * @returns {string} Returns the capitalized string.\n * @example\n *\n * _.capitalize('FRED');\n * // => 'Fred'\n */\n function capitalize(string) {\n return upperFirst(toString(string).toLowerCase());\n }\n\n /**\n * Deburrs `string` by converting\n * [Latin-1 Supplement](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table)\n * and [Latin Extended-A](https://en.wikipedia.org/wiki/Latin_Extended-A)\n * letters to basic Latin letters and removing\n * [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to deburr.\n * @returns {string} Returns the deburred string.\n * @example\n *\n * _.deburr('déjà vu');\n * // => 'deja vu'\n */\n function deburr(string) {\n string = toString(string);\n return string && string.replace(reLatin, deburrLetter).replace(reComboMark, '');\n }\n\n /**\n * Checks if `string` ends with the given target string.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to inspect.\n * @param {string} [target] The string to search for.\n * @param {number} [position=string.length] The position to search up to.\n * @returns {boolean} Returns `true` if `string` ends with `target`,\n * else `false`.\n * @example\n *\n * _.endsWith('abc', 'c');\n * // => true\n *\n * _.endsWith('abc', 'b');\n * // => false\n *\n * _.endsWith('abc', 'b', 2);\n * // => true\n */\n function endsWith(string, target, position) {\n string = toString(string);\n target = baseToString(target);\n\n var length = string.length;\n position = position === undefined\n ? length\n : baseClamp(toInteger(position), 0, length);\n\n var end = position;\n position -= target.length;\n return position >= 0 && string.slice(position, end) == target;\n }\n\n /**\n * Converts the characters \"&\", \"<\", \">\", '\"', and \"'\" in `string` to their\n * corresponding HTML entities.\n *\n * **Note:** No other characters are escaped. To escape additional\n * characters use a third-party library like [_he_](https://mths.be/he).\n *\n * Though the \">\" character is escaped for symmetry, characters like\n * \">\" and \"/\" don't need escaping in HTML and have no special meaning\n * unless they're part of a tag or unquoted attribute value. See\n * [Mathias Bynens's article](https://mathiasbynens.be/notes/ambiguous-ampersands)\n * (under \"semi-related fun fact\") for more details.\n *\n * When working with HTML you should always\n * [quote attribute values](http://wonko.com/post/html-escaping) to reduce\n * XSS vectors.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category String\n * @param {string} [string=''] The string to escape.\n * @returns {string} Returns the escaped string.\n * @example\n *\n * _.escape('fred, barney, & pebbles');\n * // => 'fred, barney, &amp; pebbles'\n */\n function escape(string) {\n string = toString(string);\n return (string && reHasUnescapedHtml.test(string))\n ? string.replace(reUnescapedHtml, escapeHtmlChar)\n : string;\n }\n\n /**\n * Escapes the `RegExp` special characters \"^\", \"$\", \"\\\", \".\", \"*\", \"+\",\n * \"?\", \"(\", \")\", \"[\", \"]\", \"{\", \"}\", and \"|\" in `string`.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to escape.\n * @returns {string} Returns the escaped string.\n * @example\n *\n * _.escapeRegExp('[lodash](https://lodash.com/)');\n * // => '\\[lodash\\]\\(https://lodash\\.com/\\)'\n */\n function escapeRegExp(string) {\n string = toString(string);\n return (string && reHasRegExpChar.test(string))\n ? string.replace(reRegExpChar, '\\\\$&')\n : string;\n }\n\n /**\n * Converts `string` to\n * [kebab case](https://en.wikipedia.org/wiki/Letter_case#Special_case_styles).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the kebab cased string.\n * @example\n *\n * _.kebabCase('Foo Bar');\n * // => 'foo-bar'\n *\n * _.kebabCase('fooBar');\n * // => 'foo-bar'\n *\n * _.kebabCase('__FOO_BAR__');\n * // => 'foo-bar'\n */\n var kebabCase = createCompounder(function(result, word, index) {\n return result + (index ? '-' : '') + word.toLowerCase();\n });\n\n /**\n * Converts `string`, as space separated words, to lower case.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the lower cased string.\n * @example\n *\n * _.lowerCase('--Foo-Bar--');\n * // => 'foo bar'\n *\n * _.lowerCase('fooBar');\n * // => 'foo bar'\n *\n * _.lowerCase('__FOO_BAR__');\n * // => 'foo bar'\n */\n var lowerCase = createCompounder(function(result, word, index) {\n return result + (index ? ' ' : '') + word.toLowerCase();\n });\n\n /**\n * Converts the first character of `string` to lower case.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the converted string.\n * @example\n *\n * _.lowerFirst('Fred');\n * // => 'fred'\n *\n * _.lowerFirst('FRED');\n * // => 'fRED'\n */\n var lowerFirst = createCaseFirst('toLowerCase');\n\n /**\n * Pads `string` on the left and right sides if it's shorter than `length`.\n * Padding characters are truncated if they can't be evenly divided by `length`.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to pad.\n * @param {number} [length=0] The padding length.\n * @param {string} [chars=' '] The string used as padding.\n * @returns {string} Returns the padded string.\n * @example\n *\n * _.pad('abc', 8);\n * // => ' abc '\n *\n * _.pad('abc', 8, '_-');\n * // => '_-abc_-_'\n *\n * _.pad('abc', 3);\n * // => 'abc'\n */\n function pad(string, length, chars) {\n string = toString(string);\n length = toInteger(length);\n\n var strLength = length ? stringSize(string) : 0;\n if (!length || strLength >= length) {\n return string;\n }\n var mid = (length - strLength) / 2;\n return (\n createPadding(nativeFloor(mid), chars) +\n string +\n createPadding(nativeCeil(mid), chars)\n );\n }\n\n /**\n * Pads `string` on the right side if it's shorter than `length`. Padding\n * characters are truncated if they exceed `length`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to pad.\n * @param {number} [length=0] The padding length.\n * @param {string} [chars=' '] The string used as padding.\n * @returns {string} Returns the padded string.\n * @example\n *\n * _.padEnd('abc', 6);\n * // => 'abc '\n *\n * _.padEnd('abc', 6, '_-');\n * // => 'abc_-_'\n *\n * _.padEnd('abc', 3);\n * // => 'abc'\n */\n function padEnd(string, length, chars) {\n string = toString(string);\n length = toInteger(length);\n\n var strLength = length ? stringSize(string) : 0;\n return (length && strLength < length)\n ? (string + createPadding(length - strLength, chars))\n : string;\n }\n\n /**\n * Pads `string` on the left side if it's shorter than `length`. Padding\n * characters are truncated if they exceed `length`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to pad.\n * @param {number} [length=0] The padding length.\n * @param {string} [chars=' '] The string used as padding.\n * @returns {string} Returns the padded string.\n * @example\n *\n * _.padStart('abc', 6);\n * // => ' abc'\n *\n * _.padStart('abc', 6, '_-');\n * // => '_-_abc'\n *\n * _.padStart('abc', 3);\n * // => 'abc'\n */\n function padStart(string, length, chars) {\n string = toString(string);\n length = toInteger(length);\n\n var strLength = length ? stringSize(string) : 0;\n return (length && strLength < length)\n ? (createPadding(length - strLength, chars) + string)\n : string;\n }\n\n /**\n * Converts `string` to an integer of the specified radix. If `radix` is\n * `undefined` or `0`, a `radix` of `10` is used unless `value` is a\n * hexadecimal, in which case a `radix` of `16` is used.\n *\n * **Note:** This method aligns with the\n * [ES5 implementation](https://es5.github.io/#x15.1.2.2) of `parseInt`.\n *\n * @static\n * @memberOf _\n * @since 1.1.0\n * @category String\n * @param {string} string The string to convert.\n * @param {number} [radix=10] The radix to interpret `value` by.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.parseInt('08');\n * // => 8\n *\n * _.map(['6', '08', '10'], _.parseInt);\n * // => [6, 8, 10]\n */\n function parseInt(string, radix, guard) {\n if (guard || radix == null) {\n radix = 0;\n } else if (radix) {\n radix = +radix;\n }\n return nativeParseInt(toString(string).replace(reTrimStart, ''), radix || 0);\n }\n\n /**\n * Repeats the given string `n` times.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to repeat.\n * @param {number} [n=1] The number of times to repeat the string.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {string} Returns the repeated string.\n * @example\n *\n * _.repeat('*', 3);\n * // => '***'\n *\n * _.repeat('abc', 2);\n * // => 'abcabc'\n *\n * _.repeat('abc', 0);\n * // => ''\n */\n function repeat(string, n, guard) {\n if ((guard ? isIterateeCall(string, n, guard) : n === undefined)) {\n n = 1;\n } else {\n n = toInteger(n);\n }\n return baseRepeat(toString(string), n);\n }\n\n /**\n * Replaces matches for `pattern` in `string` with `replacement`.\n *\n * **Note:** This method is based on\n * [`String#replace`](https://mdn.io/String/replace).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to modify.\n * @param {RegExp|string} pattern The pattern to replace.\n * @param {Function|string} replacement The match replacement.\n * @returns {string} Returns the modified string.\n * @example\n *\n * _.replace('Hi Fred', 'Fred', 'Barney');\n * // => 'Hi Barney'\n */\n function replace() {\n var args = arguments,\n string = toString(args[0]);\n\n return args.length < 3 ? string : string.replace(args[1], args[2]);\n }\n\n /**\n * Converts `string` to\n * [snake case](https://en.wikipedia.org/wiki/Snake_case).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the snake cased string.\n * @example\n *\n * _.snakeCase('Foo Bar');\n * // => 'foo_bar'\n *\n * _.snakeCase('fooBar');\n * // => 'foo_bar'\n *\n * _.snakeCase('--FOO-BAR--');\n * // => 'foo_bar'\n */\n var snakeCase = createCompounder(function(result, word, index) {\n return result + (index ? '_' : '') + word.toLowerCase();\n });\n\n /**\n * Splits `string` by `separator`.\n *\n * **Note:** This method is based on\n * [`String#split`](https://mdn.io/String/split).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to split.\n * @param {RegExp|string} separator The separator pattern to split by.\n * @param {number} [limit] The length to truncate results to.\n * @returns {Array} Returns the string segments.\n * @example\n *\n * _.split('a-b-c', '-', 2);\n * // => ['a', 'b']\n */\n function split(string, separator, limit) {\n if (limit && typeof limit != 'number' && isIterateeCall(string, separator, limit)) {\n separator = limit = undefined;\n }\n limit = limit === undefined ? MAX_ARRAY_LENGTH : limit >>> 0;\n if (!limit) {\n return [];\n }\n string = toString(string);\n if (string && (\n typeof separator == 'string' ||\n (separator != null && !isRegExp(separator))\n )) {\n separator = baseToString(separator);\n if (!separator && hasUnicode(string)) {\n return castSlice(stringToArray(string), 0, limit);\n }\n }\n return string.split(separator, limit);\n }\n\n /**\n * Converts `string` to\n * [start case](https://en.wikipedia.org/wiki/Letter_case#Stylistic_or_specialised_usage).\n *\n * @static\n * @memberOf _\n * @since 3.1.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the start cased string.\n * @example\n *\n * _.startCase('--foo-bar--');\n * // => 'Foo Bar'\n *\n * _.startCase('fooBar');\n * // => 'Foo Bar'\n *\n * _.startCase('__FOO_BAR__');\n * // => 'FOO BAR'\n */\n var startCase = createCompounder(function(result, word, index) {\n return result + (index ? ' ' : '') + upperFirst(word);\n });\n\n /**\n * Checks if `string` starts with the given target string.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to inspect.\n * @param {string} [target] The string to search for.\n * @param {number} [position=0] The position to search from.\n * @returns {boolean} Returns `true` if `string` starts with `target`,\n * else `false`.\n * @example\n *\n * _.startsWith('abc', 'a');\n * // => true\n *\n * _.startsWith('abc', 'b');\n * // => false\n *\n * _.startsWith('abc', 'b', 1);\n * // => true\n */\n function startsWith(string, target, position) {\n string = toString(string);\n position = position == null\n ? 0\n : baseClamp(toInteger(position), 0, string.length);\n\n target = baseToString(target);\n return string.slice(position, position + target.length) == target;\n }\n\n /**\n * Creates a compiled template function that can interpolate data properties\n * in \"interpolate\" delimiters, HTML-escape interpolated data properties in\n * \"escape\" delimiters, and execute JavaScript in \"evaluate\" delimiters. Data\n * properties may be accessed as free variables in the template. If a setting\n * object is given, it takes precedence over `_.templateSettings` values.\n *\n * **Note:** In the development build `_.template` utilizes\n * [sourceURLs](http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl)\n * for easier debugging.\n *\n * For more information on precompiling templates see\n * [lodash's custom builds documentation](https://lodash.com/custom-builds).\n *\n * For more information on Chrome extension sandboxes see\n * [Chrome's extensions documentation](https://developer.chrome.com/extensions/sandboxingEval).\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category String\n * @param {string} [string=''] The template string.\n * @param {Object} [options={}] The options object.\n * @param {RegExp} [options.escape=_.templateSettings.escape]\n * The HTML \"escape\" delimiter.\n * @param {RegExp} [options.evaluate=_.templateSettings.evaluate]\n * The \"evaluate\" delimiter.\n * @param {Object} [options.imports=_.templateSettings.imports]\n * An object to import into the template as free variables.\n * @param {RegExp} [options.interpolate=_.templateSettings.interpolate]\n * The \"interpolate\" delimiter.\n * @param {string} [options.sourceURL='lodash.templateSources[n]']\n * The sourceURL of the compiled template.\n * @param {string} [options.variable='obj']\n * The data object variable name.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Function} Returns the compiled template function.\n * @example\n *\n * // Use the \"interpolate\" delimiter to create a compiled template.\n * var compiled = _.template('hello <%= user %>!');\n * compiled({ 'user': 'fred' });\n * // => 'hello fred!'\n *\n * // Use the HTML \"escape\" delimiter to escape data property values.\n * var compiled = _.template('<b><%- value %></b>');\n * compiled({ 'value': '<script>' });\n * // => '<b>&lt;script&gt;</b>'\n *\n * // Use the \"evaluate\" delimiter to execute JavaScript and generate HTML.\n * var compiled = _.template('<% _.forEach(users, function(user) { %><li><%- user %></li><% }); %>');\n * compiled({ 'users': ['fred', 'barney'] });\n * // => '<li>fred</li><li>barney</li>'\n *\n * // Use the internal `print` function in \"evaluate\" delimiters.\n * var compiled = _.template('<% print(\"hello \" + user); %>!');\n * compiled({ 'user': 'barney' });\n * // => 'hello barney!'\n *\n * // Use the ES template literal delimiter as an \"interpolate\" delimiter.\n * // Disable support by replacing the \"interpolate\" delimiter.\n * var compiled = _.template('hello ${ user }!');\n * compiled({ 'user': 'pebbles' });\n * // => 'hello pebbles!'\n *\n * // Use backslashes to treat delimiters as plain text.\n * var compiled = _.template('<%= \"\\\\<%- value %\\\\>\" %>');\n * compiled({ 'value': 'ignored' });\n * // => '<%- value %>'\n *\n * // Use the `imports` option to import `jQuery` as `jq`.\n * var text = '<% jq.each(users, function(user) { %><li><%- user %></li><% }); %>';\n * var compiled = _.template(text, { 'imports': { 'jq': jQuery } });\n * compiled({ 'users': ['fred', 'barney'] });\n * // => '<li>fred</li><li>barney</li>'\n *\n * // Use the `sourceURL` option to specify a custom sourceURL for the template.\n * var compiled = _.template('hello <%= user %>!', { 'sourceURL': '/basic/greeting.jst' });\n * compiled(data);\n * // => Find the source of \"greeting.jst\" under the Sources tab or Resources panel of the web inspector.\n *\n * // Use the `variable` option to ensure a with-statement isn't used in the compiled template.\n * var compiled = _.template('hi <%= data.user %>!', { 'variable': 'data' });\n * compiled.source;\n * // => function(data) {\n * // var __t, __p = '';\n * // __p += 'hi ' + ((__t = ( data.user )) == null ? '' : __t) + '!';\n * // return __p;\n * // }\n *\n * // Use custom template delimiters.\n * _.templateSettings.interpolate = /{{([\\s\\S]+?)}}/g;\n * var compiled = _.template('hello {{ user }}!');\n * compiled({ 'user': 'mustache' });\n * // => 'hello mustache!'\n *\n * // Use the `source` property to inline compiled templates for meaningful\n * // line numbers in error messages and stack traces.\n * fs.writeFileSync(path.join(process.cwd(), 'jst.js'), '\\\n * var JST = {\\\n * \"main\": ' + _.template(mainText).source + '\\\n * };\\\n * ');\n */\n function template(string, options, guard) {\n // Based on John Resig's `tmpl` implementation\n // (http://ejohn.org/blog/javascript-micro-templating/)\n // and Laura Doktorova's doT.js (https://github.com/olado/doT).\n var settings = lodash.templateSettings;\n\n if (guard && isIterateeCall(string, options, guard)) {\n options = undefined;\n }\n string = toString(string);\n options = assignInWith({}, options, settings, customDefaultsAssignIn);\n\n var imports = assignInWith({}, options.imports, settings.imports, customDefaultsAssignIn),\n importsKeys = keys(imports),\n importsValues = baseValues(imports, importsKeys);\n\n var isEscaping,\n isEvaluating,\n index = 0,\n interpolate = options.interpolate || reNoMatch,\n source = \"__p += '\";\n\n // Compile the regexp to match each delimiter.\n var reDelimiters = RegExp(\n (options.escape || reNoMatch).source + '|' +\n interpolate.source + '|' +\n (interpolate === reInterpolate ? reEsTemplate : reNoMatch).source + '|' +\n (options.evaluate || reNoMatch).source + '|$'\n , 'g');\n\n // Use a sourceURL for easier debugging.\n var sourceURL = '//# sourceURL=' +\n ('sourceURL' in options\n ? options.sourceURL\n : ('lodash.templateSources[' + (++templateCounter) + ']')\n ) + '\\n';\n\n string.replace(reDelimiters, function(match, escapeValue, interpolateValue, esTemplateValue, evaluateValue, offset) {\n interpolateValue || (interpolateValue = esTemplateValue);\n\n // Escape characters that can't be included in string literals.\n source += string.slice(index, offset).replace(reUnescapedString, escapeStringChar);\n\n // Replace delimiters with snippets.\n if (escapeValue) {\n isEscaping = true;\n source += \"' +\\n__e(\" + escapeValue + \") +\\n'\";\n }\n if (evaluateValue) {\n isEvaluating = true;\n source += \"';\\n\" + evaluateValue + \";\\n__p += '\";\n }\n if (interpolateValue) {\n source += \"' +\\n((__t = (\" + interpolateValue + \")) == null ? '' : __t) +\\n'\";\n }\n index = offset + match.length;\n\n // The JS engine embedded in Adobe products needs `match` returned in\n // order to produce the correct `offset` value.\n return match;\n });\n\n source += \"';\\n\";\n\n // If `variable` is not specified wrap a with-statement around the generated\n // code to add the data object to the top of the scope chain.\n var variable = options.variable;\n if (!variable) {\n source = 'with (obj) {\\n' + source + '\\n}\\n';\n }\n // Cleanup code by stripping empty strings.\n source = (isEvaluating ? source.replace(reEmptyStringLeading, '') : source)\n .replace(reEmptyStringMiddle, '$1')\n .replace(reEmptyStringTrailing, '$1;');\n\n // Frame code as the function body.\n source = 'function(' + (variable || 'obj') + ') {\\n' +\n (variable\n ? ''\n : 'obj || (obj = {});\\n'\n ) +\n \"var __t, __p = ''\" +\n (isEscaping\n ? ', __e = _.escape'\n : ''\n ) +\n (isEvaluating\n ? ', __j = Array.prototype.join;\\n' +\n \"function print() { __p += __j.call(arguments, '') }\\n\"\n : ';\\n'\n ) +\n source +\n 'return __p\\n}';\n\n var result = attempt(function() {\n return Function(importsKeys, sourceURL + 'return ' + source)\n .apply(undefined, importsValues);\n });\n\n // Provide the compiled function's source by its `toString` method or\n // the `source` property as a convenience for inlining compiled templates.\n result.source = source;\n if (isError(result)) {\n throw result;\n }\n return result;\n }\n\n /**\n * Converts `string`, as a whole, to lower case just like\n * [String#toLowerCase](https://mdn.io/toLowerCase).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the lower cased string.\n * @example\n *\n * _.toLower('--Foo-Bar--');\n * // => '--foo-bar--'\n *\n * _.toLower('fooBar');\n * // => 'foobar'\n *\n * _.toLower('__FOO_BAR__');\n * // => '__foo_bar__'\n */\n function toLower(value) {\n return toString(value).toLowerCase();\n }\n\n /**\n * Converts `string`, as a whole, to upper case just like\n * [String#toUpperCase](https://mdn.io/toUpperCase).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the upper cased string.\n * @example\n *\n * _.toUpper('--foo-bar--');\n * // => '--FOO-BAR--'\n *\n * _.toUpper('fooBar');\n * // => 'FOOBAR'\n *\n * _.toUpper('__foo_bar__');\n * // => '__FOO_BAR__'\n */\n function toUpper(value) {\n return toString(value).toUpperCase();\n }\n\n /**\n * Removes leading and trailing whitespace or specified characters from `string`.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to trim.\n * @param {string} [chars=whitespace] The characters to trim.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {string} Returns the trimmed string.\n * @example\n *\n * _.trim(' abc ');\n * // => 'abc'\n *\n * _.trim('-_-abc-_-', '_-');\n * // => 'abc'\n *\n * _.map([' foo ', ' bar '], _.trim);\n * // => ['foo', 'bar']\n */\n function trim(string, chars, guard) {\n string = toString(string);\n if (string && (guard || chars === undefined)) {\n return string.replace(reTrim, '');\n }\n if (!string || !(chars = baseToString(chars))) {\n return string;\n }\n var strSymbols = stringToArray(string),\n chrSymbols = stringToArray(chars),\n start = charsStartIndex(strSymbols, chrSymbols),\n end = charsEndIndex(strSymbols, chrSymbols) + 1;\n\n return castSlice(strSymbols, start, end).join('');\n }\n\n /**\n * Removes trailing whitespace or specified characters from `string`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to trim.\n * @param {string} [chars=whitespace] The characters to trim.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {string} Returns the trimmed string.\n * @example\n *\n * _.trimEnd(' abc ');\n * // => ' abc'\n *\n * _.trimEnd('-_-abc-_-', '_-');\n * // => '-_-abc'\n */\n function trimEnd(string, chars, guard) {\n string = toString(string);\n if (string && (guard || chars === undefined)) {\n return string.replace(reTrimEnd, '');\n }\n if (!string || !(chars = baseToString(chars))) {\n return string;\n }\n var strSymbols = stringToArray(string),\n end = charsEndIndex(strSymbols, stringToArray(chars)) + 1;\n\n return castSlice(strSymbols, 0, end).join('');\n }\n\n /**\n * Removes leading whitespace or specified characters from `string`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to trim.\n * @param {string} [chars=whitespace] The characters to trim.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {string} Returns the trimmed string.\n * @example\n *\n * _.trimStart(' abc ');\n * // => 'abc '\n *\n * _.trimStart('-_-abc-_-', '_-');\n * // => 'abc-_-'\n */\n function trimStart(string, chars, guard) {\n string = toString(string);\n if (string && (guard || chars === undefined)) {\n return string.replace(reTrimStart, '');\n }\n if (!string || !(chars = baseToString(chars))) {\n return string;\n }\n var strSymbols = stringToArray(string),\n start = charsStartIndex(strSymbols, stringToArray(chars));\n\n return castSlice(strSymbols, start).join('');\n }\n\n /**\n * Truncates `string` if it's longer than the given maximum string length.\n * The last characters of the truncated string are replaced with the omission\n * string which defaults to \"...\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to truncate.\n * @param {Object} [options={}] The options object.\n * @param {number} [options.length=30] The maximum string length.\n * @param {string} [options.omission='...'] The string to indicate text is omitted.\n * @param {RegExp|string} [options.separator] The separator pattern to truncate to.\n * @returns {string} Returns the truncated string.\n * @example\n *\n * _.truncate('hi-diddly-ho there, neighborino');\n * // => 'hi-diddly-ho there, neighbo...'\n *\n * _.truncate('hi-diddly-ho there, neighborino', {\n * 'length': 24,\n * 'separator': ' '\n * });\n * // => 'hi-diddly-ho there,...'\n *\n * _.truncate('hi-diddly-ho there, neighborino', {\n * 'length': 24,\n * 'separator': /,? +/\n * });\n * // => 'hi-diddly-ho there...'\n *\n * _.truncate('hi-diddly-ho there, neighborino', {\n * 'omission': ' [...]'\n * });\n * // => 'hi-diddly-ho there, neig [...]'\n */\n function truncate(string, options) {\n var length = DEFAULT_TRUNC_LENGTH,\n omission = DEFAULT_TRUNC_OMISSION;\n\n if (isObject(options)) {\n var separator = 'separator' in options ? options.separator : separator;\n length = 'length' in options ? toInteger(options.length) : length;\n omission = 'omission' in options ? baseToString(options.omission) : omission;\n }\n string = toString(string);\n\n var strLength = string.length;\n if (hasUnicode(string)) {\n var strSymbols = stringToArray(string);\n strLength = strSymbols.length;\n }\n if (length >= strLength) {\n return string;\n }\n var end = length - stringSize(omission);\n if (end < 1) {\n return omission;\n }\n var result = strSymbols\n ? castSlice(strSymbols, 0, end).join('')\n : string.slice(0, end);\n\n if (separator === undefined) {\n return result + omission;\n }\n if (strSymbols) {\n end += (result.length - end);\n }\n if (isRegExp(separator)) {\n if (string.slice(end).search(separator)) {\n var match,\n substring = result;\n\n if (!separator.global) {\n separator = RegExp(separator.source, toString(reFlags.exec(separator)) + 'g');\n }\n separator.lastIndex = 0;\n while ((match = separator.exec(substring))) {\n var newEnd = match.index;\n }\n result = result.slice(0, newEnd === undefined ? end : newEnd);\n }\n } else if (string.indexOf(baseToString(separator), end) != end) {\n var index = result.lastIndexOf(separator);\n if (index > -1) {\n result = result.slice(0, index);\n }\n }\n return result + omission;\n }\n\n /**\n * The inverse of `_.escape`; this method converts the HTML entities\n * `&amp;`, `&lt;`, `&gt;`, `&quot;`, and `&#39;` in `string` to\n * their corresponding characters.\n *\n * **Note:** No other HTML entities are unescaped. To unescape additional\n * HTML entities use a third-party library like [_he_](https://mths.be/he).\n *\n * @static\n * @memberOf _\n * @since 0.6.0\n * @category String\n * @param {string} [string=''] The string to unescape.\n * @returns {string} Returns the unescaped string.\n * @example\n *\n * _.unescape('fred, barney, &amp; pebbles');\n * // => 'fred, barney, & pebbles'\n */\n function unescape(string) {\n string = toString(string);\n return (string && reHasEscapedHtml.test(string))\n ? string.replace(reEscapedHtml, unescapeHtmlChar)\n : string;\n }\n\n /**\n * Converts `string`, as space separated words, to upper case.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the upper cased string.\n * @example\n *\n * _.upperCase('--foo-bar');\n * // => 'FOO BAR'\n *\n * _.upperCase('fooBar');\n * // => 'FOO BAR'\n *\n * _.upperCase('__foo_bar__');\n * // => 'FOO BAR'\n */\n var upperCase = createCompounder(function(result, word, index) {\n return result + (index ? ' ' : '') + word.toUpperCase();\n });\n\n /**\n * Converts the first character of `string` to upper case.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the converted string.\n * @example\n *\n * _.upperFirst('fred');\n * // => 'Fred'\n *\n * _.upperFirst('FRED');\n * // => 'FRED'\n */\n var upperFirst = createCaseFirst('toUpperCase');\n\n /**\n * Splits `string` into an array of its words.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to inspect.\n * @param {RegExp|string} [pattern] The pattern to match words.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the words of `string`.\n * @example\n *\n * _.words('fred, barney, & pebbles');\n * // => ['fred', 'barney', 'pebbles']\n *\n * _.words('fred, barney, & pebbles', /[^, ]+/g);\n * // => ['fred', 'barney', '&', 'pebbles']\n */\n function words(string, pattern, guard) {\n string = toString(string);\n pattern = guard ? undefined : pattern;\n\n if (pattern === undefined) {\n return hasUnicodeWord(string) ? unicodeWords(string) : asciiWords(string);\n }\n return string.match(pattern) || [];\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Attempts to invoke `func`, returning either the result or the caught error\n * object. Any additional arguments are provided to `func` when it's invoked.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Util\n * @param {Function} func The function to attempt.\n * @param {...*} [args] The arguments to invoke `func` with.\n * @returns {*} Returns the `func` result or error object.\n * @example\n *\n * // Avoid throwing errors for invalid selectors.\n * var elements = _.attempt(function(selector) {\n * return document.querySelectorAll(selector);\n * }, '>_>');\n *\n * if (_.isError(elements)) {\n * elements = [];\n * }\n */\n var attempt = baseRest(function(func, args) {\n try {\n return apply(func, undefined, args);\n } catch (e) {\n return isError(e) ? e : new Error(e);\n }\n });\n\n /**\n * Binds methods of an object to the object itself, overwriting the existing\n * method.\n *\n * **Note:** This method doesn't set the \"length\" property of bound functions.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {Object} object The object to bind and assign the bound methods to.\n * @param {...(string|string[])} methodNames The object method names to bind.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var view = {\n * 'label': 'docs',\n * 'click': function() {\n * console.log('clicked ' + this.label);\n * }\n * };\n *\n * _.bindAll(view, ['click']);\n * jQuery(element).on('click', view.click);\n * // => Logs 'clicked docs' when clicked.\n */\n var bindAll = flatRest(function(object, methodNames) {\n arrayEach(methodNames, function(key) {\n key = toKey(key);\n baseAssignValue(object, key, bind(object[key], object));\n });\n return object;\n });\n\n /**\n * Creates a function that iterates over `pairs` and invokes the corresponding\n * function of the first predicate to return truthy. The predicate-function\n * pairs are invoked with the `this` binding and arguments of the created\n * function.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Util\n * @param {Array} pairs The predicate-function pairs.\n * @returns {Function} Returns the new composite function.\n * @example\n *\n * var func = _.cond([\n * [_.matches({ 'a': 1 }), _.constant('matches A')],\n * [_.conforms({ 'b': _.isNumber }), _.constant('matches B')],\n * [_.stubTrue, _.constant('no match')]\n * ]);\n *\n * func({ 'a': 1, 'b': 2 });\n * // => 'matches A'\n *\n * func({ 'a': 0, 'b': 1 });\n * // => 'matches B'\n *\n * func({ 'a': '1', 'b': '2' });\n * // => 'no match'\n */\n function cond(pairs) {\n var length = pairs == null ? 0 : pairs.length,\n toIteratee = getIteratee();\n\n pairs = !length ? [] : arrayMap(pairs, function(pair) {\n if (typeof pair[1] != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n return [toIteratee(pair[0]), pair[1]];\n });\n\n return baseRest(function(args) {\n var index = -1;\n while (++index < length) {\n var pair = pairs[index];\n if (apply(pair[0], this, args)) {\n return apply(pair[1], this, args);\n }\n }\n });\n }\n\n /**\n * Creates a function that invokes the predicate properties of `source` with\n * the corresponding property values of a given object, returning `true` if\n * all predicates return truthy, else `false`.\n *\n * **Note:** The created function is equivalent to `_.conformsTo` with\n * `source` partially applied.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Util\n * @param {Object} source The object of property predicates to conform to.\n * @returns {Function} Returns the new spec function.\n * @example\n *\n * var objects = [\n * { 'a': 2, 'b': 1 },\n * { 'a': 1, 'b': 2 }\n * ];\n *\n * _.filter(objects, _.conforms({ 'b': function(n) { return n > 1; } }));\n * // => [{ 'a': 1, 'b': 2 }]\n */\n function conforms(source) {\n return baseConforms(baseClone(source, CLONE_DEEP_FLAG));\n }\n\n /**\n * Creates a function that returns `value`.\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Util\n * @param {*} value The value to return from the new function.\n * @returns {Function} Returns the new constant function.\n * @example\n *\n * var objects = _.times(2, _.constant({ 'a': 1 }));\n *\n * console.log(objects);\n * // => [{ 'a': 1 }, { 'a': 1 }]\n *\n * console.log(objects[0] === objects[1]);\n * // => true\n */\n function constant(value) {\n return function() {\n return value;\n };\n }\n\n /**\n * Checks `value` to determine whether a default value should be returned in\n * its place. The `defaultValue` is returned if `value` is `NaN`, `null`,\n * or `undefined`.\n *\n * @static\n * @memberOf _\n * @since 4.14.0\n * @category Util\n * @param {*} value The value to check.\n * @param {*} defaultValue The default value.\n * @returns {*} Returns the resolved value.\n * @example\n *\n * _.defaultTo(1, 10);\n * // => 1\n *\n * _.defaultTo(undefined, 10);\n * // => 10\n */\n function defaultTo(value, defaultValue) {\n return (value == null || value !== value) ? defaultValue : value;\n }\n\n /**\n * Creates a function that returns the result of invoking the given functions\n * with the `this` binding of the created function, where each successive\n * invocation is supplied the return value of the previous.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Util\n * @param {...(Function|Function[])} [funcs] The functions to invoke.\n * @returns {Function} Returns the new composite function.\n * @see _.flowRight\n * @example\n *\n * function square(n) {\n * return n * n;\n * }\n *\n * var addSquare = _.flow([_.add, square]);\n * addSquare(1, 2);\n * // => 9\n */\n var flow = createFlow();\n\n /**\n * This method is like `_.flow` except that it creates a function that\n * invokes the given functions from right to left.\n *\n * @static\n * @since 3.0.0\n * @memberOf _\n * @category Util\n * @param {...(Function|Function[])} [funcs] The functions to invoke.\n * @returns {Function} Returns the new composite function.\n * @see _.flow\n * @example\n *\n * function square(n) {\n * return n * n;\n * }\n *\n * var addSquare = _.flowRight([square, _.add]);\n * addSquare(1, 2);\n * // => 9\n */\n var flowRight = createFlow(true);\n\n /**\n * This method returns the first argument it receives.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {*} value Any value.\n * @returns {*} Returns `value`.\n * @example\n *\n * var object = { 'a': 1 };\n *\n * console.log(_.identity(object) === object);\n * // => true\n */\n function identity(value) {\n return value;\n }\n\n /**\n * Creates a function that invokes `func` with the arguments of the created\n * function. If `func` is a property name, the created function returns the\n * property value for a given element. If `func` is an array or object, the\n * created function returns `true` for elements that contain the equivalent\n * source properties, otherwise it returns `false`.\n *\n * @static\n * @since 4.0.0\n * @memberOf _\n * @category Util\n * @param {*} [func=_.identity] The value to convert to a callback.\n * @returns {Function} Returns the callback.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': true },\n * { 'user': 'fred', 'age': 40, 'active': false }\n * ];\n *\n * // The `_.matches` iteratee shorthand.\n * _.filter(users, _.iteratee({ 'user': 'barney', 'active': true }));\n * // => [{ 'user': 'barney', 'age': 36, 'active': true }]\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.filter(users, _.iteratee(['user', 'fred']));\n * // => [{ 'user': 'fred', 'age': 40 }]\n *\n * // The `_.property` iteratee shorthand.\n * _.map(users, _.iteratee('user'));\n * // => ['barney', 'fred']\n *\n * // Create custom iteratee shorthands.\n * _.iteratee = _.wrap(_.iteratee, function(iteratee, func) {\n * return !_.isRegExp(func) ? iteratee(func) : function(string) {\n * return func.test(string);\n * };\n * });\n *\n * _.filter(['abc', 'def'], /ef/);\n * // => ['def']\n */\n function iteratee(func) {\n return baseIteratee(typeof func == 'function' ? func : baseClone(func, CLONE_DEEP_FLAG));\n }\n\n /**\n * Creates a function that performs a partial deep comparison between a given\n * object and `source`, returning `true` if the given object has equivalent\n * property values, else `false`.\n *\n * **Note:** The created function is equivalent to `_.isMatch` with `source`\n * partially applied.\n *\n * Partial comparisons will match empty array and empty object `source`\n * values against any array or object value, respectively. See `_.isEqual`\n * for a list of supported value comparisons.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Util\n * @param {Object} source The object of property values to match.\n * @returns {Function} Returns the new spec function.\n * @example\n *\n * var objects = [\n * { 'a': 1, 'b': 2, 'c': 3 },\n * { 'a': 4, 'b': 5, 'c': 6 }\n * ];\n *\n * _.filter(objects, _.matches({ 'a': 4, 'c': 6 }));\n * // => [{ 'a': 4, 'b': 5, 'c': 6 }]\n */\n function matches(source) {\n return baseMatches(baseClone(source, CLONE_DEEP_FLAG));\n }\n\n /**\n * Creates a function that performs a partial deep comparison between the\n * value at `path` of a given object to `srcValue`, returning `true` if the\n * object value is equivalent, else `false`.\n *\n * **Note:** Partial comparisons will match empty array and empty object\n * `srcValue` values against any array or object value, respectively. See\n * `_.isEqual` for a list of supported value comparisons.\n *\n * @static\n * @memberOf _\n * @since 3.2.0\n * @category Util\n * @param {Array|string} path The path of the property to get.\n * @param {*} srcValue The value to match.\n * @returns {Function} Returns the new spec function.\n * @example\n *\n * var objects = [\n * { 'a': 1, 'b': 2, 'c': 3 },\n * { 'a': 4, 'b': 5, 'c': 6 }\n * ];\n *\n * _.find(objects, _.matchesProperty('a', 4));\n * // => { 'a': 4, 'b': 5, 'c': 6 }\n */\n function matchesProperty(path, srcValue) {\n return baseMatchesProperty(path, baseClone(srcValue, CLONE_DEEP_FLAG));\n }\n\n /**\n * Creates a function that invokes the method at `path` of a given object.\n * Any additional arguments are provided to the invoked method.\n *\n * @static\n * @memberOf _\n * @since 3.7.0\n * @category Util\n * @param {Array|string} path The path of the method to invoke.\n * @param {...*} [args] The arguments to invoke the method with.\n * @returns {Function} Returns the new invoker function.\n * @example\n *\n * var objects = [\n * { 'a': { 'b': _.constant(2) } },\n * { 'a': { 'b': _.constant(1) } }\n * ];\n *\n * _.map(objects, _.method('a.b'));\n * // => [2, 1]\n *\n * _.map(objects, _.method(['a', 'b']));\n * // => [2, 1]\n */\n var method = baseRest(function(path, args) {\n return function(object) {\n return baseInvoke(object, path, args);\n };\n });\n\n /**\n * The opposite of `_.method`; this method creates a function that invokes\n * the method at a given path of `object`. Any additional arguments are\n * provided to the invoked method.\n *\n * @static\n * @memberOf _\n * @since 3.7.0\n * @category Util\n * @param {Object} object The object to query.\n * @param {...*} [args] The arguments to invoke the method with.\n * @returns {Function} Returns the new invoker function.\n * @example\n *\n * var array = _.times(3, _.constant),\n * object = { 'a': array, 'b': array, 'c': array };\n *\n * _.map(['a[2]', 'c[0]'], _.methodOf(object));\n * // => [2, 0]\n *\n * _.map([['a', '2'], ['c', '0']], _.methodOf(object));\n * // => [2, 0]\n */\n var methodOf = baseRest(function(object, args) {\n return function(path) {\n return baseInvoke(object, path, args);\n };\n });\n\n /**\n * Adds all own enumerable string keyed function properties of a source\n * object to the destination object. If `object` is a function, then methods\n * are added to its prototype as well.\n *\n * **Note:** Use `_.runInContext` to create a pristine `lodash` function to\n * avoid conflicts caused by modifying the original.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {Function|Object} [object=lodash] The destination object.\n * @param {Object} source The object of functions to add.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.chain=true] Specify whether mixins are chainable.\n * @returns {Function|Object} Returns `object`.\n * @example\n *\n * function vowels(string) {\n * return _.filter(string, function(v) {\n * return /[aeiou]/i.test(v);\n * });\n * }\n *\n * _.mixin({ 'vowels': vowels });\n * _.vowels('fred');\n * // => ['e']\n *\n * _('fred').vowels().value();\n * // => ['e']\n *\n * _.mixin({ 'vowels': vowels }, { 'chain': false });\n * _('fred').vowels();\n * // => ['e']\n */\n function mixin(object, source, options) {\n var props = keys(source),\n methodNames = baseFunctions(source, props);\n\n if (options == null &&\n !(isObject(source) && (methodNames.length || !props.length))) {\n options = source;\n source = object;\n object = this;\n methodNames = baseFunctions(source, keys(source));\n }\n var chain = !(isObject(options) && 'chain' in options) || !!options.chain,\n isFunc = isFunction(object);\n\n arrayEach(methodNames, function(methodName) {\n var func = source[methodName];\n object[methodName] = func;\n if (isFunc) {\n object.prototype[methodName] = function() {\n var chainAll = this.__chain__;\n if (chain || chainAll) {\n var result = object(this.__wrapped__),\n actions = result.__actions__ = copyArray(this.__actions__);\n\n actions.push({ 'func': func, 'args': arguments, 'thisArg': object });\n result.__chain__ = chainAll;\n return result;\n }\n return func.apply(object, arrayPush([this.value()], arguments));\n };\n }\n });\n\n return object;\n }\n\n /**\n * Reverts the `_` variable to its previous value and returns a reference to\n * the `lodash` function.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @returns {Function} Returns the `lodash` function.\n * @example\n *\n * var lodash = _.noConflict();\n */\n function noConflict() {\n if (root._ === this) {\n root._ = oldDash;\n }\n return this;\n }\n\n /**\n * This method returns `undefined`.\n *\n * @static\n * @memberOf _\n * @since 2.3.0\n * @category Util\n * @example\n *\n * _.times(2, _.noop);\n * // => [undefined, undefined]\n */\n function noop() {\n // No operation performed.\n }\n\n /**\n * Creates a function that gets the argument at index `n`. If `n` is negative,\n * the nth argument from the end is returned.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Util\n * @param {number} [n=0] The index of the argument to return.\n * @returns {Function} Returns the new pass-thru function.\n * @example\n *\n * var func = _.nthArg(1);\n * func('a', 'b', 'c', 'd');\n * // => 'b'\n *\n * var func = _.nthArg(-2);\n * func('a', 'b', 'c', 'd');\n * // => 'c'\n */\n function nthArg(n) {\n n = toInteger(n);\n return baseRest(function(args) {\n return baseNth(args, n);\n });\n }\n\n /**\n * Creates a function that invokes `iteratees` with the arguments it receives\n * and returns their results.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Util\n * @param {...(Function|Function[])} [iteratees=[_.identity]]\n * The iteratees to invoke.\n * @returns {Function} Returns the new function.\n * @example\n *\n * var func = _.over([Math.max, Math.min]);\n *\n * func(1, 2, 3, 4);\n * // => [4, 1]\n */\n var over = createOver(arrayMap);\n\n /**\n * Creates a function that checks if **all** of the `predicates` return\n * truthy when invoked with the arguments it receives.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Util\n * @param {...(Function|Function[])} [predicates=[_.identity]]\n * The predicates to check.\n * @returns {Function} Returns the new function.\n * @example\n *\n * var func = _.overEvery([Boolean, isFinite]);\n *\n * func('1');\n * // => true\n *\n * func(null);\n * // => false\n *\n * func(NaN);\n * // => false\n */\n var overEvery = createOver(arrayEvery);\n\n /**\n * Creates a function that checks if **any** of the `predicates` return\n * truthy when invoked with the arguments it receives.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Util\n * @param {...(Function|Function[])} [predicates=[_.identity]]\n * The predicates to check.\n * @returns {Function} Returns the new function.\n * @example\n *\n * var func = _.overSome([Boolean, isFinite]);\n *\n * func('1');\n * // => true\n *\n * func(null);\n * // => true\n *\n * func(NaN);\n * // => false\n */\n var overSome = createOver(arraySome);\n\n /**\n * Creates a function that returns the value at `path` of a given object.\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Util\n * @param {Array|string} path The path of the property to get.\n * @returns {Function} Returns the new accessor function.\n * @example\n *\n * var objects = [\n * { 'a': { 'b': 2 } },\n * { 'a': { 'b': 1 } }\n * ];\n *\n * _.map(objects, _.property('a.b'));\n * // => [2, 1]\n *\n * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');\n * // => [1, 2]\n */\n function property(path) {\n return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);\n }\n\n /**\n * The opposite of `_.property`; this method creates a function that returns\n * the value at a given path of `object`.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Util\n * @param {Object} object The object to query.\n * @returns {Function} Returns the new accessor function.\n * @example\n *\n * var array = [0, 1, 2],\n * object = { 'a': array, 'b': array, 'c': array };\n *\n * _.map(['a[2]', 'c[0]'], _.propertyOf(object));\n * // => [2, 0]\n *\n * _.map([['a', '2'], ['c', '0']], _.propertyOf(object));\n * // => [2, 0]\n */\n function propertyOf(object) {\n return function(path) {\n return object == null ? undefined : baseGet(object, path);\n };\n }\n\n /**\n * Creates an array of numbers (positive and/or negative) progressing from\n * `start` up to, but not including, `end`. A step of `-1` is used if a negative\n * `start` is specified without an `end` or `step`. If `end` is not specified,\n * it's set to `start` with `start` then set to `0`.\n *\n * **Note:** JavaScript follows the IEEE-754 standard for resolving\n * floating-point values which can produce unexpected results.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {number} [start=0] The start of the range.\n * @param {number} end The end of the range.\n * @param {number} [step=1] The value to increment or decrement by.\n * @returns {Array} Returns the range of numbers.\n * @see _.inRange, _.rangeRight\n * @example\n *\n * _.range(4);\n * // => [0, 1, 2, 3]\n *\n * _.range(-4);\n * // => [0, -1, -2, -3]\n *\n * _.range(1, 5);\n * // => [1, 2, 3, 4]\n *\n * _.range(0, 20, 5);\n * // => [0, 5, 10, 15]\n *\n * _.range(0, -4, -1);\n * // => [0, -1, -2, -3]\n *\n * _.range(1, 4, 0);\n * // => [1, 1, 1]\n *\n * _.range(0);\n * // => []\n */\n var range = createRange();\n\n /**\n * This method is like `_.range` except that it populates values in\n * descending order.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Util\n * @param {number} [start=0] The start of the range.\n * @param {number} end The end of the range.\n * @param {number} [step=1] The value to increment or decrement by.\n * @returns {Array} Returns the range of numbers.\n * @see _.inRange, _.range\n * @example\n *\n * _.rangeRight(4);\n * // => [3, 2, 1, 0]\n *\n * _.rangeRight(-4);\n * // => [-3, -2, -1, 0]\n *\n * _.rangeRight(1, 5);\n * // => [4, 3, 2, 1]\n *\n * _.rangeRight(0, 20, 5);\n * // => [15, 10, 5, 0]\n *\n * _.rangeRight(0, -4, -1);\n * // => [-3, -2, -1, 0]\n *\n * _.rangeRight(1, 4, 0);\n * // => [1, 1, 1]\n *\n * _.rangeRight(0);\n * // => []\n */\n var rangeRight = createRange(true);\n\n /**\n * This method returns a new empty array.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {Array} Returns the new empty array.\n * @example\n *\n * var arrays = _.times(2, _.stubArray);\n *\n * console.log(arrays);\n * // => [[], []]\n *\n * console.log(arrays[0] === arrays[1]);\n * // => false\n */\n function stubArray() {\n return [];\n }\n\n /**\n * This method returns `false`.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {boolean} Returns `false`.\n * @example\n *\n * _.times(2, _.stubFalse);\n * // => [false, false]\n */\n function stubFalse() {\n return false;\n }\n\n /**\n * This method returns a new empty object.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {Object} Returns the new empty object.\n * @example\n *\n * var objects = _.times(2, _.stubObject);\n *\n * console.log(objects);\n * // => [{}, {}]\n *\n * console.log(objects[0] === objects[1]);\n * // => false\n */\n function stubObject() {\n return {};\n }\n\n /**\n * This method returns an empty string.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {string} Returns the empty string.\n * @example\n *\n * _.times(2, _.stubString);\n * // => ['', '']\n */\n function stubString() {\n return '';\n }\n\n /**\n * This method returns `true`.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {boolean} Returns `true`.\n * @example\n *\n * _.times(2, _.stubTrue);\n * // => [true, true]\n */\n function stubTrue() {\n return true;\n }\n\n /**\n * Invokes the iteratee `n` times, returning an array of the results of\n * each invocation. The iteratee is invoked with one argument; (index).\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {number} n The number of times to invoke `iteratee`.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the array of results.\n * @example\n *\n * _.times(3, String);\n * // => ['0', '1', '2']\n *\n * _.times(4, _.constant(0));\n * // => [0, 0, 0, 0]\n */\n function times(n, iteratee) {\n n = toInteger(n);\n if (n < 1 || n > MAX_SAFE_INTEGER) {\n return [];\n }\n var index = MAX_ARRAY_LENGTH,\n length = nativeMin(n, MAX_ARRAY_LENGTH);\n\n iteratee = getIteratee(iteratee);\n n -= MAX_ARRAY_LENGTH;\n\n var result = baseTimes(length, iteratee);\n while (++index < n) {\n iteratee(index);\n }\n return result;\n }\n\n /**\n * Converts `value` to a property path array.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Util\n * @param {*} value The value to convert.\n * @returns {Array} Returns the new property path array.\n * @example\n *\n * _.toPath('a.b.c');\n * // => ['a', 'b', 'c']\n *\n * _.toPath('a[0].b.c');\n * // => ['a', '0', 'b', 'c']\n */\n function toPath(value) {\n if (isArray(value)) {\n return arrayMap(value, toKey);\n }\n return isSymbol(value) ? [value] : copyArray(stringToPath(toString(value)));\n }\n\n /**\n * Generates a unique ID. If `prefix` is given, the ID is appended to it.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {string} [prefix=''] The value to prefix the ID with.\n * @returns {string} Returns the unique ID.\n * @example\n *\n * _.uniqueId('contact_');\n * // => 'contact_104'\n *\n * _.uniqueId();\n * // => '105'\n */\n function uniqueId(prefix) {\n var id = ++idCounter;\n return toString(prefix) + id;\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Adds two numbers.\n *\n * @static\n * @memberOf _\n * @since 3.4.0\n * @category Math\n * @param {number} augend The first number in an addition.\n * @param {number} addend The second number in an addition.\n * @returns {number} Returns the total.\n * @example\n *\n * _.add(6, 4);\n * // => 10\n */\n var add = createMathOperation(function(augend, addend) {\n return augend + addend;\n }, 0);\n\n /**\n * Computes `number` rounded up to `precision`.\n *\n * @static\n * @memberOf _\n * @since 3.10.0\n * @category Math\n * @param {number} number The number to round up.\n * @param {number} [precision=0] The precision to round up to.\n * @returns {number} Returns the rounded up number.\n * @example\n *\n * _.ceil(4.006);\n * // => 5\n *\n * _.ceil(6.004, 2);\n * // => 6.01\n *\n * _.ceil(6040, -2);\n * // => 6100\n */\n var ceil = createRound('ceil');\n\n /**\n * Divide two numbers.\n *\n * @static\n * @memberOf _\n * @since 4.7.0\n * @category Math\n * @param {number} dividend The first number in a division.\n * @param {number} divisor The second number in a division.\n * @returns {number} Returns the quotient.\n * @example\n *\n * _.divide(6, 4);\n * // => 1.5\n */\n var divide = createMathOperation(function(dividend, divisor) {\n return dividend / divisor;\n }, 1);\n\n /**\n * Computes `number` rounded down to `precision`.\n *\n * @static\n * @memberOf _\n * @since 3.10.0\n * @category Math\n * @param {number} number The number to round down.\n * @param {number} [precision=0] The precision to round down to.\n * @returns {number} Returns the rounded down number.\n * @example\n *\n * _.floor(4.006);\n * // => 4\n *\n * _.floor(0.046, 2);\n * // => 0.04\n *\n * _.floor(4060, -2);\n * // => 4000\n */\n var floor = createRound('floor');\n\n /**\n * Computes the maximum value of `array`. If `array` is empty or falsey,\n * `undefined` is returned.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Math\n * @param {Array} array The array to iterate over.\n * @returns {*} Returns the maximum value.\n * @example\n *\n * _.max([4, 2, 8, 6]);\n * // => 8\n *\n * _.max([]);\n * // => undefined\n */\n function max(array) {\n return (array && array.length)\n ? baseExtremum(array, identity, baseGt)\n : undefined;\n }\n\n /**\n * This method is like `_.max` except that it accepts `iteratee` which is\n * invoked for each element in `array` to generate the criterion by which\n * the value is ranked. The iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Math\n * @param {Array} array The array to iterate over.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {*} Returns the maximum value.\n * @example\n *\n * var objects = [{ 'n': 1 }, { 'n': 2 }];\n *\n * _.maxBy(objects, function(o) { return o.n; });\n * // => { 'n': 2 }\n *\n * // The `_.property` iteratee shorthand.\n * _.maxBy(objects, 'n');\n * // => { 'n': 2 }\n */\n function maxBy(array, iteratee) {\n return (array && array.length)\n ? baseExtremum(array, getIteratee(iteratee, 2), baseGt)\n : undefined;\n }\n\n /**\n * Computes the mean of the values in `array`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Math\n * @param {Array} array The array to iterate over.\n * @returns {number} Returns the mean.\n * @example\n *\n * _.mean([4, 2, 8, 6]);\n * // => 5\n */\n function mean(array) {\n return baseMean(array, identity);\n }\n\n /**\n * This method is like `_.mean` except that it accepts `iteratee` which is\n * invoked for each element in `array` to generate the value to be averaged.\n * The iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.7.0\n * @category Math\n * @param {Array} array The array to iterate over.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {number} Returns the mean.\n * @example\n *\n * var objects = [{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }];\n *\n * _.meanBy(objects, function(o) { return o.n; });\n * // => 5\n *\n * // The `_.property` iteratee shorthand.\n * _.meanBy(objects, 'n');\n * // => 5\n */\n function meanBy(array, iteratee) {\n return baseMean(array, getIteratee(iteratee, 2));\n }\n\n /**\n * Computes the minimum value of `array`. If `array` is empty or falsey,\n * `undefined` is returned.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Math\n * @param {Array} array The array to iterate over.\n * @returns {*} Returns the minimum value.\n * @example\n *\n * _.min([4, 2, 8, 6]);\n * // => 2\n *\n * _.min([]);\n * // => undefined\n */\n function min(array) {\n return (array && array.length)\n ? baseExtremum(array, identity, baseLt)\n : undefined;\n }\n\n /**\n * This method is like `_.min` except that it accepts `iteratee` which is\n * invoked for each element in `array` to generate the criterion by which\n * the value is ranked. The iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Math\n * @param {Array} array The array to iterate over.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {*} Returns the minimum value.\n * @example\n *\n * var objects = [{ 'n': 1 }, { 'n': 2 }];\n *\n * _.minBy(objects, function(o) { return o.n; });\n * // => { 'n': 1 }\n *\n * // The `_.property` iteratee shorthand.\n * _.minBy(objects, 'n');\n * // => { 'n': 1 }\n */\n function minBy(array, iteratee) {\n return (array && array.length)\n ? baseExtremum(array, getIteratee(iteratee, 2), baseLt)\n : undefined;\n }\n\n /**\n * Multiply two numbers.\n *\n * @static\n * @memberOf _\n * @since 4.7.0\n * @category Math\n * @param {number} multiplier The first number in a multiplication.\n * @param {number} multiplicand The second number in a multiplication.\n * @returns {number} Returns the product.\n * @example\n *\n * _.multiply(6, 4);\n * // => 24\n */\n var multiply = createMathOperation(function(multiplier, multiplicand) {\n return multiplier * multiplicand;\n }, 1);\n\n /**\n * Computes `number` rounded to `precision`.\n *\n * @static\n * @memberOf _\n * @since 3.10.0\n * @category Math\n * @param {number} number The number to round.\n * @param {number} [precision=0] The precision to round to.\n * @returns {number} Returns the rounded number.\n * @example\n *\n * _.round(4.006);\n * // => 4\n *\n * _.round(4.006, 2);\n * // => 4.01\n *\n * _.round(4060, -2);\n * // => 4100\n */\n var round = createRound('round');\n\n /**\n * Subtract two numbers.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Math\n * @param {number} minuend The first number in a subtraction.\n * @param {number} subtrahend The second number in a subtraction.\n * @returns {number} Returns the difference.\n * @example\n *\n * _.subtract(6, 4);\n * // => 2\n */\n var subtract = createMathOperation(function(minuend, subtrahend) {\n return minuend - subtrahend;\n }, 0);\n\n /**\n * Computes the sum of the values in `array`.\n *\n * @static\n * @memberOf _\n * @since 3.4.0\n * @category Math\n * @param {Array} array The array to iterate over.\n * @returns {number} Returns the sum.\n * @example\n *\n * _.sum([4, 2, 8, 6]);\n * // => 20\n */\n function sum(array) {\n return (array && array.length)\n ? baseSum(array, identity)\n : 0;\n }\n\n /**\n * This method is like `_.sum` except that it accepts `iteratee` which is\n * invoked for each element in `array` to generate the value to be summed.\n * The iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Math\n * @param {Array} array The array to iterate over.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {number} Returns the sum.\n * @example\n *\n * var objects = [{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }];\n *\n * _.sumBy(objects, function(o) { return o.n; });\n * // => 20\n *\n * // The `_.property` iteratee shorthand.\n * _.sumBy(objects, 'n');\n * // => 20\n */\n function sumBy(array, iteratee) {\n return (array && array.length)\n ? baseSum(array, getIteratee(iteratee, 2))\n : 0;\n }\n\n /*------------------------------------------------------------------------*/\n\n // Add methods that return wrapped values in chain sequences.\n lodash.after = after;\n lodash.ary = ary;\n lodash.assign = assign;\n lodash.assignIn = assignIn;\n lodash.assignInWith = assignInWith;\n lodash.assignWith = assignWith;\n lodash.at = at;\n lodash.before = before;\n lodash.bind = bind;\n lodash.bindAll = bindAll;\n lodash.bindKey = bindKey;\n lodash.castArray = castArray;\n lodash.chain = chain;\n lodash.chunk = chunk;\n lodash.compact = compact;\n lodash.concat = concat;\n lodash.cond = cond;\n lodash.conforms = conforms;\n lodash.constant = constant;\n lodash.countBy = countBy;\n lodash.create = create;\n lodash.curry = curry;\n lodash.curryRight = curryRight;\n lodash.debounce = debounce;\n lodash.defaults = defaults;\n lodash.defaultsDeep = defaultsDeep;\n lodash.defer = defer;\n lodash.delay = delay;\n lodash.difference = difference;\n lodash.differenceBy = differenceBy;\n lodash.differenceWith = differenceWith;\n lodash.drop = drop;\n lodash.dropRight = dropRight;\n lodash.dropRightWhile = dropRightWhile;\n lodash.dropWhile = dropWhile;\n lodash.fill = fill;\n lodash.filter = filter;\n lodash.flatMap = flatMap;\n lodash.flatMapDeep = flatMapDeep;\n lodash.flatMapDepth = flatMapDepth;\n lodash.flatten = flatten;\n lodash.flattenDeep = flattenDeep;\n lodash.flattenDepth = flattenDepth;\n lodash.flip = flip;\n lodash.flow = flow;\n lodash.flowRight = flowRight;\n lodash.fromPairs = fromPairs;\n lodash.functions = functions;\n lodash.functionsIn = functionsIn;\n lodash.groupBy = groupBy;\n lodash.initial = initial;\n lodash.intersection = intersection;\n lodash.intersectionBy = intersectionBy;\n lodash.intersectionWith = intersectionWith;\n lodash.invert = invert;\n lodash.invertBy = invertBy;\n lodash.invokeMap = invokeMap;\n lodash.iteratee = iteratee;\n lodash.keyBy = keyBy;\n lodash.keys = keys;\n lodash.keysIn = keysIn;\n lodash.map = map;\n lodash.mapKeys = mapKeys;\n lodash.mapValues = mapValues;\n lodash.matches = matches;\n lodash.matchesProperty = matchesProperty;\n lodash.memoize = memoize;\n lodash.merge = merge;\n lodash.mergeWith = mergeWith;\n lodash.method = method;\n lodash.methodOf = methodOf;\n lodash.mixin = mixin;\n lodash.negate = negate;\n lodash.nthArg = nthArg;\n lodash.omit = omit;\n lodash.omitBy = omitBy;\n lodash.once = once;\n lodash.orderBy = orderBy;\n lodash.over = over;\n lodash.overArgs = overArgs;\n lodash.overEvery = overEvery;\n lodash.overSome = overSome;\n lodash.partial = partial;\n lodash.partialRight = partialRight;\n lodash.partition = partition;\n lodash.pick = pick;\n lodash.pickBy = pickBy;\n lodash.property = property;\n lodash.propertyOf = propertyOf;\n lodash.pull = pull;\n lodash.pullAll = pullAll;\n lodash.pullAllBy = pullAllBy;\n lodash.pullAllWith = pullAllWith;\n lodash.pullAt = pullAt;\n lodash.range = range;\n lodash.rangeRight = rangeRight;\n lodash.rearg = rearg;\n lodash.reject = reject;\n lodash.remove = remove;\n lodash.rest = rest;\n lodash.reverse = reverse;\n lodash.sampleSize = sampleSize;\n lodash.set = set;\n lodash.setWith = setWith;\n lodash.shuffle = shuffle;\n lodash.slice = slice;\n lodash.sortBy = sortBy;\n lodash.sortedUniq = sortedUniq;\n lodash.sortedUniqBy = sortedUniqBy;\n lodash.split = split;\n lodash.spread = spread;\n lodash.tail = tail;\n lodash.take = take;\n lodash.takeRight = takeRight;\n lodash.takeRightWhile = takeRightWhile;\n lodash.takeWhile = takeWhile;\n lodash.tap = tap;\n lodash.throttle = throttle;\n lodash.thru = thru;\n lodash.toArray = toArray;\n lodash.toPairs = toPairs;\n lodash.toPairsIn = toPairsIn;\n lodash.toPath = toPath;\n lodash.toPlainObject = toPlainObject;\n lodash.transform = transform;\n lodash.unary = unary;\n lodash.union = union;\n lodash.unionBy = unionBy;\n lodash.unionWith = unionWith;\n lodash.uniq = uniq;\n lodash.uniqBy = uniqBy;\n lodash.uniqWith = uniqWith;\n lodash.unset = unset;\n lodash.unzip = unzip;\n lodash.unzipWith = unzipWith;\n lodash.update = update;\n lodash.updateWith = updateWith;\n lodash.values = values;\n lodash.valuesIn = valuesIn;\n lodash.without = without;\n lodash.words = words;\n lodash.wrap = wrap;\n lodash.xor = xor;\n lodash.xorBy = xorBy;\n lodash.xorWith = xorWith;\n lodash.zip = zip;\n lodash.zipObject = zipObject;\n lodash.zipObjectDeep = zipObjectDeep;\n lodash.zipWith = zipWith;\n\n // Add aliases.\n lodash.entries = toPairs;\n lodash.entriesIn = toPairsIn;\n lodash.extend = assignIn;\n lodash.extendWith = assignInWith;\n\n // Add methods to `lodash.prototype`.\n mixin(lodash, lodash);\n\n /*------------------------------------------------------------------------*/\n\n // Add methods that return unwrapped values in chain sequences.\n lodash.add = add;\n lodash.attempt = attempt;\n lodash.camelCase = camelCase;\n lodash.capitalize = capitalize;\n lodash.ceil = ceil;\n lodash.clamp = clamp;\n lodash.clone = clone;\n lodash.cloneDeep = cloneDeep;\n lodash.cloneDeepWith = cloneDeepWith;\n lodash.cloneWith = cloneWith;\n lodash.conformsTo = conformsTo;\n lodash.deburr = deburr;\n lodash.defaultTo = defaultTo;\n lodash.divide = divide;\n lodash.endsWith = endsWith;\n lodash.eq = eq;\n lodash.escape = escape;\n lodash.escapeRegExp = escapeRegExp;\n lodash.every = every;\n lodash.find = find;\n lodash.findIndex = findIndex;\n lodash.findKey = findKey;\n lodash.findLast = findLast;\n lodash.findLastIndex = findLastIndex;\n lodash.findLastKey = findLastKey;\n lodash.floor = floor;\n lodash.forEach = forEach;\n lodash.forEachRight = forEachRight;\n lodash.forIn = forIn;\n lodash.forInRight = forInRight;\n lodash.forOwn = forOwn;\n lodash.forOwnRight = forOwnRight;\n lodash.get = get;\n lodash.gt = gt;\n lodash.gte = gte;\n lodash.has = has;\n lodash.hasIn = hasIn;\n lodash.head = head;\n lodash.identity = identity;\n lodash.includes = includes;\n lodash.indexOf = indexOf;\n lodash.inRange = inRange;\n lodash.invoke = invoke;\n lodash.isArguments = isArguments;\n lodash.isArray = isArray;\n lodash.isArrayBuffer = isArrayBuffer;\n lodash.isArrayLike = isArrayLike;\n lodash.isArrayLikeObject = isArrayLikeObject;\n lodash.isBoolean = isBoolean;\n lodash.isBuffer = isBuffer;\n lodash.isDate = isDate;\n lodash.isElement = isElement;\n lodash.isEmpty = isEmpty;\n lodash.isEqual = isEqual;\n lodash.isEqualWith = isEqualWith;\n lodash.isError = isError;\n lodash.isFinite = isFinite;\n lodash.isFunction = isFunction;\n lodash.isInteger = isInteger;\n lodash.isLength = isLength;\n lodash.isMap = isMap;\n lodash.isMatch = isMatch;\n lodash.isMatchWith = isMatchWith;\n lodash.isNaN = isNaN;\n lodash.isNative = isNative;\n lodash.isNil = isNil;\n lodash.isNull = isNull;\n lodash.isNumber = isNumber;\n lodash.isObject = isObject;\n lodash.isObjectLike = isObjectLike;\n lodash.isPlainObject = isPlainObject;\n lodash.isRegExp = isRegExp;\n lodash.isSafeInteger = isSafeInteger;\n lodash.isSet = isSet;\n lodash.isString = isString;\n lodash.isSymbol = isSymbol;\n lodash.isTypedArray = isTypedArray;\n lodash.isUndefined = isUndefined;\n lodash.isWeakMap = isWeakMap;\n lodash.isWeakSet = isWeakSet;\n lodash.join = join;\n lodash.kebabCase = kebabCase;\n lodash.last = last;\n lodash.lastIndexOf = lastIndexOf;\n lodash.lowerCase = lowerCase;\n lodash.lowerFirst = lowerFirst;\n lodash.lt = lt;\n lodash.lte = lte;\n lodash.max = max;\n lodash.maxBy = maxBy;\n lodash.mean = mean;\n lodash.meanBy = meanBy;\n lodash.min = min;\n lodash.minBy = minBy;\n lodash.stubArray = stubArray;\n lodash.stubFalse = stubFalse;\n lodash.stubObject = stubObject;\n lodash.stubString = stubString;\n lodash.stubTrue = stubTrue;\n lodash.multiply = multiply;\n lodash.nth = nth;\n lodash.noConflict = noConflict;\n lodash.noop = noop;\n lodash.now = now;\n lodash.pad = pad;\n lodash.padEnd = padEnd;\n lodash.padStart = padStart;\n lodash.parseInt = parseInt;\n lodash.random = random;\n lodash.reduce = reduce;\n lodash.reduceRight = reduceRight;\n lodash.repeat = repeat;\n lodash.replace = replace;\n lodash.result = result;\n lodash.round = round;\n lodash.runInContext = runInContext;\n lodash.sample = sample;\n lodash.size = size;\n lodash.snakeCase = snakeCase;\n lodash.some = some;\n lodash.sortedIndex = sortedIndex;\n lodash.sortedIndexBy = sortedIndexBy;\n lodash.sortedIndexOf = sortedIndexOf;\n lodash.sortedLastIndex = sortedLastIndex;\n lodash.sortedLastIndexBy = sortedLastIndexBy;\n lodash.sortedLastIndexOf = sortedLastIndexOf;\n lodash.startCase = startCase;\n lodash.startsWith = startsWith;\n lodash.subtract = subtract;\n lodash.sum = sum;\n lodash.sumBy = sumBy;\n lodash.template = template;\n lodash.times = times;\n lodash.toFinite = toFinite;\n lodash.toInteger = toInteger;\n lodash.toLength = toLength;\n lodash.toLower = toLower;\n lodash.toNumber = toNumber;\n lodash.toSafeInteger = toSafeInteger;\n lodash.toString = toString;\n lodash.toUpper = toUpper;\n lodash.trim = trim;\n lodash.trimEnd = trimEnd;\n lodash.trimStart = trimStart;\n lodash.truncate = truncate;\n lodash.unescape = unescape;\n lodash.uniqueId = uniqueId;\n lodash.upperCase = upperCase;\n lodash.upperFirst = upperFirst;\n\n // Add aliases.\n lodash.each = forEach;\n lodash.eachRight = forEachRight;\n lodash.first = head;\n\n mixin(lodash, (function() {\n var source = {};\n baseForOwn(lodash, function(func, methodName) {\n if (!hasOwnProperty.call(lodash.prototype, methodName)) {\n source[methodName] = func;\n }\n });\n return source;\n }()), { 'chain': false });\n\n /*------------------------------------------------------------------------*/\n\n /**\n * The semantic version number.\n *\n * @static\n * @memberOf _\n * @type {string}\n */\n lodash.VERSION = VERSION;\n\n // Assign default placeholders.\n arrayEach(['bind', 'bindKey', 'curry', 'curryRight', 'partial', 'partialRight'], function(methodName) {\n lodash[methodName].placeholder = lodash;\n });\n\n // Add `LazyWrapper` methods for `_.drop` and `_.take` variants.\n arrayEach(['drop', 'take'], function(methodName, index) {\n LazyWrapper.prototype[methodName] = function(n) {\n n = n === undefined ? 1 : nativeMax(toInteger(n), 0);\n\n var result = (this.__filtered__ && !index)\n ? new LazyWrapper(this)\n : this.clone();\n\n if (result.__filtered__) {\n result.__takeCount__ = nativeMin(n, result.__takeCount__);\n } else {\n result.__views__.push({\n 'size': nativeMin(n, MAX_ARRAY_LENGTH),\n 'type': methodName + (result.__dir__ < 0 ? 'Right' : '')\n });\n }\n return result;\n };\n\n LazyWrapper.prototype[methodName + 'Right'] = function(n) {\n return this.reverse()[methodName](n).reverse();\n };\n });\n\n // Add `LazyWrapper` methods that accept an `iteratee` value.\n arrayEach(['filter', 'map', 'takeWhile'], function(methodName, index) {\n var type = index + 1,\n isFilter = type == LAZY_FILTER_FLAG || type == LAZY_WHILE_FLAG;\n\n LazyWrapper.prototype[methodName] = function(iteratee) {\n var result = this.clone();\n result.__iteratees__.push({\n 'iteratee': getIteratee(iteratee, 3),\n 'type': type\n });\n result.__filtered__ = result.__filtered__ || isFilter;\n return result;\n };\n });\n\n // Add `LazyWrapper` methods for `_.head` and `_.last`.\n arrayEach(['head', 'last'], function(methodName, index) {\n var takeName = 'take' + (index ? 'Right' : '');\n\n LazyWrapper.prototype[methodName] = function() {\n return this[takeName](1).value()[0];\n };\n });\n\n // Add `LazyWrapper` methods for `_.initial` and `_.tail`.\n arrayEach(['initial', 'tail'], function(methodName, index) {\n var dropName = 'drop' + (index ? '' : 'Right');\n\n LazyWrapper.prototype[methodName] = function() {\n return this.__filtered__ ? new LazyWrapper(this) : this[dropName](1);\n };\n });\n\n LazyWrapper.prototype.compact = function() {\n return this.filter(identity);\n };\n\n LazyWrapper.prototype.find = function(predicate) {\n return this.filter(predicate).head();\n };\n\n LazyWrapper.prototype.findLast = function(predicate) {\n return this.reverse().find(predicate);\n };\n\n LazyWrapper.prototype.invokeMap = baseRest(function(path, args) {\n if (typeof path == 'function') {\n return new LazyWrapper(this);\n }\n return this.map(function(value) {\n return baseInvoke(value, path, args);\n });\n });\n\n LazyWrapper.prototype.reject = function(predicate) {\n return this.filter(negate(getIteratee(predicate)));\n };\n\n LazyWrapper.prototype.slice = function(start, end) {\n start = toInteger(start);\n\n var result = this;\n if (result.__filtered__ && (start > 0 || end < 0)) {\n return new LazyWrapper(result);\n }\n if (start < 0) {\n result = result.takeRight(-start);\n } else if (start) {\n result = result.drop(start);\n }\n if (end !== undefined) {\n end = toInteger(end);\n result = end < 0 ? result.dropRight(-end) : result.take(end - start);\n }\n return result;\n };\n\n LazyWrapper.prototype.takeRightWhile = function(predicate) {\n return this.reverse().takeWhile(predicate).reverse();\n };\n\n LazyWrapper.prototype.toArray = function() {\n return this.take(MAX_ARRAY_LENGTH);\n };\n\n // Add `LazyWrapper` methods to `lodash.prototype`.\n baseForOwn(LazyWrapper.prototype, function(func, methodName) {\n var checkIteratee = /^(?:filter|find|map|reject)|While$/.test(methodName),\n isTaker = /^(?:head|last)$/.test(methodName),\n lodashFunc = lodash[isTaker ? ('take' + (methodName == 'last' ? 'Right' : '')) : methodName],\n retUnwrapped = isTaker || /^find/.test(methodName);\n\n if (!lodashFunc) {\n return;\n }\n lodash.prototype[methodName] = function() {\n var value = this.__wrapped__,\n args = isTaker ? [1] : arguments,\n isLazy = value instanceof LazyWrapper,\n iteratee = args[0],\n useLazy = isLazy || isArray(value);\n\n var interceptor = function(value) {\n var result = lodashFunc.apply(lodash, arrayPush([value], args));\n return (isTaker && chainAll) ? result[0] : result;\n };\n\n if (useLazy && checkIteratee && typeof iteratee == 'function' && iteratee.length != 1) {\n // Avoid lazy use if the iteratee has a \"length\" value other than `1`.\n isLazy = useLazy = false;\n }\n var chainAll = this.__chain__,\n isHybrid = !!this.__actions__.length,\n isUnwrapped = retUnwrapped && !chainAll,\n onlyLazy = isLazy && !isHybrid;\n\n if (!retUnwrapped && useLazy) {\n value = onlyLazy ? value : new LazyWrapper(this);\n var result = func.apply(value, args);\n result.__actions__.push({ 'func': thru, 'args': [interceptor], 'thisArg': undefined });\n return new LodashWrapper(result, chainAll);\n }\n if (isUnwrapped && onlyLazy) {\n return func.apply(this, args);\n }\n result = this.thru(interceptor);\n return isUnwrapped ? (isTaker ? result.value()[0] : result.value()) : result;\n };\n });\n\n // Add `Array` methods to `lodash.prototype`.\n arrayEach(['pop', 'push', 'shift', 'sort', 'splice', 'unshift'], function(methodName) {\n var func = arrayProto[methodName],\n chainName = /^(?:push|sort|unshift)$/.test(methodName) ? 'tap' : 'thru',\n retUnwrapped = /^(?:pop|shift)$/.test(methodName);\n\n lodash.prototype[methodName] = function() {\n var args = arguments;\n if (retUnwrapped && !this.__chain__) {\n var value = this.value();\n return func.apply(isArray(value) ? value : [], args);\n }\n return this[chainName](function(value) {\n return func.apply(isArray(value) ? value : [], args);\n });\n };\n });\n\n // Map minified method names to their real names.\n baseForOwn(LazyWrapper.prototype, function(func, methodName) {\n var lodashFunc = lodash[methodName];\n if (lodashFunc) {\n var key = (lodashFunc.name + ''),\n names = realNames[key] || (realNames[key] = []);\n\n names.push({ 'name': methodName, 'func': lodashFunc });\n }\n });\n\n realNames[createHybrid(undefined, WRAP_BIND_KEY_FLAG).name] = [{\n 'name': 'wrapper',\n 'func': undefined\n }];\n\n // Add methods to `LazyWrapper`.\n LazyWrapper.prototype.clone = lazyClone;\n LazyWrapper.prototype.reverse = lazyReverse;\n LazyWrapper.prototype.value = lazyValue;\n\n // Add chain sequence methods to the `lodash` wrapper.\n lodash.prototype.at = wrapperAt;\n lodash.prototype.chain = wrapperChain;\n lodash.prototype.commit = wrapperCommit;\n lodash.prototype.next = wrapperNext;\n lodash.prototype.plant = wrapperPlant;\n lodash.prototype.reverse = wrapperReverse;\n lodash.prototype.toJSON = lodash.prototype.valueOf = lodash.prototype.value = wrapperValue;\n\n // Add lazy aliases.\n lodash.prototype.first = lodash.prototype.head;\n\n if (symIterator) {\n lodash.prototype[symIterator] = wrapperToIterator;\n }\n return lodash;\n });\n\n /*--------------------------------------------------------------------------*/\n\n // Export lodash.\n var _ = runInContext();\n\n // Some AMD build optimizers, like r.js, check for condition patterns like:\n if (typeof define == 'function' && typeof define.amd == 'object' && define.amd) {\n // Expose Lodash on the global object to prevent errors when Lodash is\n // loaded by a script tag in the presence of an AMD loader.\n // See http://requirejs.org/docs/errors.html#mismatch for more details.\n // Use `_.noConflict` to remove Lodash from the global object.\n root._ = _;\n\n // Define as an anonymous module so, through path mapping, it can be\n // referenced as the \"underscore\" module.\n define(function() {\n return _;\n });\n }\n // Check for `exports` after `define` in case a build optimizer adds it.\n else if (freeModule) {\n // Export for Node.js.\n (freeModule.exports = _)._ = _;\n // Export for CommonJS support.\n freeExports._ = _;\n }\n else {\n // Export to the global object.\n root._ = _;\n }\n}.call(this));\n"
},
{
"id": 2,
"identifier": "/Users/user/Projects/orchid/node_modules/webpack/buildin/global.js",
"name": "(webpack)/buildin/global.js",
"index": 2,
"index2": 0,
"size": 489,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/lodash/lodash.js",
"issuerId": 1,
"issuerName": "./node_modules/lodash/lodash.js",
"issuerPath": [
{
"id": 0,
"identifier": "/Users/user/Projects/orchid/node_modules/html-webpack-plugin/lib/loader.js!/Users/user/Projects/orchid/src/index.html",
"name": "./node_modules/html-webpack-plugin/lib/loader.js!./src/index.html"
},
{
"id": 1,
"identifier": "/Users/user/Projects/orchid/node_modules/lodash/lodash.js",
"name": "./node_modules/lodash/lodash.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 1,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/lodash/lodash.js",
"module": "./node_modules/lodash/lodash.js",
"moduleName": "./node_modules/lodash/lodash.js",
"type": "cjs require",
"userRequest": "global",
"loc": "1:0-41"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 2,
"source": "var g;\n\n// This works in non-strict mode\ng = (function() {\n\treturn this;\n})();\n\ntry {\n\t// This works if eval is allowed (see CSP)\n\tg = g || Function(\"return this\")() || (1, eval)(\"this\");\n} catch (e) {\n\t// This works if the window reference is available\n\tif (typeof window === \"object\") g = window;\n}\n\n// g can still be undefined, but nothing to do about it...\n// We return undefined, instead of nothing here, so it's\n// easier to handle this case. if(!global) { ...}\n\nmodule.exports = g;\n"
},
{
"id": 3,
"identifier": "/Users/user/Projects/orchid/node_modules/webpack/buildin/module.js",
"name": "(webpack)/buildin/module.js",
"index": 3,
"index2": 1,
"size": 497,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/lodash/lodash.js",
"issuerId": 1,
"issuerName": "./node_modules/lodash/lodash.js",
"issuerPath": [
{
"id": 0,
"identifier": "/Users/user/Projects/orchid/node_modules/html-webpack-plugin/lib/loader.js!/Users/user/Projects/orchid/src/index.html",
"name": "./node_modules/html-webpack-plugin/lib/loader.js!./src/index.html"
},
{
"id": 1,
"identifier": "/Users/user/Projects/orchid/node_modules/lodash/lodash.js",
"name": "./node_modules/lodash/lodash.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 1,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/lodash/lodash.js",
"module": "./node_modules/lodash/lodash.js",
"moduleName": "./node_modules/lodash/lodash.js",
"type": "cjs require",
"userRequest": "module",
"loc": "1:0-41"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 2,
"source": "module.exports = function(module) {\n\tif (!module.webpackPolyfill) {\n\t\tmodule.deprecate = function() {};\n\t\tmodule.paths = [];\n\t\t// module.parent = undefined by default\n\t\tif (!module.children) module.children = [];\n\t\tObject.defineProperty(module, \"loaded\", {\n\t\t\tenumerable: true,\n\t\t\tget: function() {\n\t\t\t\treturn module.l;\n\t\t\t}\n\t\t});\n\t\tObject.defineProperty(module, \"id\", {\n\t\t\tenumerable: true,\n\t\t\tget: function() {\n\t\t\t\treturn module.i;\n\t\t\t}\n\t\t});\n\t\tmodule.webpackPolyfill = 1;\n\t}\n\treturn module;\n};\n"
}
],
"filteredModules": 0,
"origins": [
{
"module": "",
"moduleIdentifier": "",
"moduleName": "",
"loc": "",
"request": "/Users/user/Projects/orchid/node_modules/html-webpack-plugin/lib/loader.js!/Users/user/Projects/orchid/src/index.html",
"reasons": []
}
]
}
],
"modules": [
{
"id": 0,
"identifier": "/Users/user/Projects/orchid/node_modules/html-webpack-plugin/lib/loader.js!/Users/user/Projects/orchid/src/index.html",
"name": "./node_modules/html-webpack-plugin/lib/loader.js!./src/index.html",
"index": 0,
"index2": 3,
"size": 679,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": null,
"issuerId": null,
"issuerName": null,
"issuerPath": null,
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": null,
"moduleIdentifier": null,
"module": null,
"moduleName": null,
"type": "single entry",
"userRequest": "/Users/user/Projects/orchid/node_modules/html-webpack-plugin/lib/loader.js!/Users/user/Projects/orchid/src/index.html"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 0,
"source": "var _ = require(\"!!../node_modules/lodash/lodash.js\");module.exports = function (templateParams) { with(templateParams) {return (function(data) {\nvar __t, __p = '';\n__p += '<html>\\n<head>\\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\\n <meta name=\"viewport\" content=\"initial-scale=1, maximum-scale=0.8\">\\n <link rel=\"icon\" href=\"favicon.png?d\" type=\"image/png\" />\\n\\n <title>@ORCHID</title>\\n\\n <link rel=\"shortcut icon\" href=\"/favicon.png?wd\" type=\"image/png\">\\n <meta property=\"og:image\" content=\"/misc/vk_preview.png\" />\\n <meta content=\"/misc/vk_preview.png\">\\n</head>\\n<body>\\n <section id=\"index\"></section>\\n</body>\\n';\nreturn __p\n})();}}"
},
{
"id": 1,
"identifier": "/Users/user/Projects/orchid/node_modules/lodash/lodash.js",
"name": "./node_modules/lodash/lodash.js",
"index": 1,
"index2": 2,
"size": 539836,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/html-webpack-plugin/lib/loader.js!/Users/user/Projects/orchid/src/index.html",
"issuerId": 0,
"issuerName": "./node_modules/html-webpack-plugin/lib/loader.js!./src/index.html",
"issuerPath": [
{
"id": 0,
"identifier": "/Users/user/Projects/orchid/node_modules/html-webpack-plugin/lib/loader.js!/Users/user/Projects/orchid/src/index.html",
"name": "./node_modules/html-webpack-plugin/lib/loader.js!./src/index.html"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 0,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/html-webpack-plugin/lib/loader.js!/Users/user/Projects/orchid/src/index.html",
"module": "./node_modules/html-webpack-plugin/lib/loader.js!./src/index.html",
"moduleName": "./node_modules/html-webpack-plugin/lib/loader.js!./src/index.html",
"type": "cjs require",
"userRequest": "!!../node_modules/lodash/lodash.js",
"loc": "1:8-53"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 1,
"source": "/**\n * @license\n * Lodash <https://lodash.com/>\n * Copyright JS Foundation and other contributors <https://js.foundation/>\n * Released under MIT license <https://lodash.com/license>\n * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>\n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */\n;(function() {\n\n /** Used as a safe reference for `undefined` in pre-ES5 environments. */\n var undefined;\n\n /** Used as the semantic version number. */\n var VERSION = '4.17.10';\n\n /** Used as the size to enable large array optimizations. */\n var LARGE_ARRAY_SIZE = 200;\n\n /** Error message constants. */\n var CORE_ERROR_TEXT = 'Unsupported core-js use. Try https://npms.io/search?q=ponyfill.',\n FUNC_ERROR_TEXT = 'Expected a function';\n\n /** Used to stand-in for `undefined` hash values. */\n var HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n /** Used as the maximum memoize cache size. */\n var MAX_MEMOIZE_SIZE = 500;\n\n /** Used as the internal argument placeholder. */\n var PLACEHOLDER = '__lodash_placeholder__';\n\n /** Used to compose bitmasks for cloning. */\n var CLONE_DEEP_FLAG = 1,\n CLONE_FLAT_FLAG = 2,\n CLONE_SYMBOLS_FLAG = 4;\n\n /** Used to compose bitmasks for value comparisons. */\n var COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n /** Used to compose bitmasks for function metadata. */\n var WRAP_BIND_FLAG = 1,\n WRAP_BIND_KEY_FLAG = 2,\n WRAP_CURRY_BOUND_FLAG = 4,\n WRAP_CURRY_FLAG = 8,\n WRAP_CURRY_RIGHT_FLAG = 16,\n WRAP_PARTIAL_FLAG = 32,\n WRAP_PARTIAL_RIGHT_FLAG = 64,\n WRAP_ARY_FLAG = 128,\n WRAP_REARG_FLAG = 256,\n WRAP_FLIP_FLAG = 512;\n\n /** Used as default options for `_.truncate`. */\n var DEFAULT_TRUNC_LENGTH = 30,\n DEFAULT_TRUNC_OMISSION = '...';\n\n /** Used to detect hot functions by number of calls within a span of milliseconds. */\n var HOT_COUNT = 800,\n HOT_SPAN = 16;\n\n /** Used to indicate the type of lazy iteratees. */\n var LAZY_FILTER_FLAG = 1,\n LAZY_MAP_FLAG = 2,\n LAZY_WHILE_FLAG = 3;\n\n /** Used as references for various `Number` constants. */\n var INFINITY = 1 / 0,\n MAX_SAFE_INTEGER = 9007199254740991,\n MAX_INTEGER = 1.7976931348623157e+308,\n NAN = 0 / 0;\n\n /** Used as references for the maximum length and index of an array. */\n var MAX_ARRAY_LENGTH = 4294967295,\n MAX_ARRAY_INDEX = MAX_ARRAY_LENGTH - 1,\n HALF_MAX_ARRAY_LENGTH = MAX_ARRAY_LENGTH >>> 1;\n\n /** Used to associate wrap methods with their bit flags. */\n var wrapFlags = [\n ['ary', WRAP_ARY_FLAG],\n ['bind', WRAP_BIND_FLAG],\n ['bindKey', WRAP_BIND_KEY_FLAG],\n ['curry', WRAP_CURRY_FLAG],\n ['curryRight', WRAP_CURRY_RIGHT_FLAG],\n ['flip', WRAP_FLIP_FLAG],\n ['partial', WRAP_PARTIAL_FLAG],\n ['partialRight', WRAP_PARTIAL_RIGHT_FLAG],\n ['rearg', WRAP_REARG_FLAG]\n ];\n\n /** `Object#toString` result references. */\n var argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n asyncTag = '[object AsyncFunction]',\n boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n domExcTag = '[object DOMException]',\n errorTag = '[object Error]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n nullTag = '[object Null]',\n objectTag = '[object Object]',\n promiseTag = '[object Promise]',\n proxyTag = '[object Proxy]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n symbolTag = '[object Symbol]',\n undefinedTag = '[object Undefined]',\n weakMapTag = '[object WeakMap]',\n weakSetTag = '[object WeakSet]';\n\n var arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n /** Used to match empty string literals in compiled template source. */\n var reEmptyStringLeading = /\\b__p \\+= '';/g,\n reEmptyStringMiddle = /\\b(__p \\+=) '' \\+/g,\n reEmptyStringTrailing = /(__e\\(.*?\\)|\\b__t\\)) \\+\\n'';/g;\n\n /** Used to match HTML entities and HTML characters. */\n var reEscapedHtml = /&(?:amp|lt|gt|quot|#39);/g,\n reUnescapedHtml = /[&<>\"']/g,\n reHasEscapedHtml = RegExp(reEscapedHtml.source),\n reHasUnescapedHtml = RegExp(reUnescapedHtml.source);\n\n /** Used to match template delimiters. */\n var reEscape = /<%-([\\s\\S]+?)%>/g,\n reEvaluate = /<%([\\s\\S]+?)%>/g,\n reInterpolate = /<%=([\\s\\S]+?)%>/g;\n\n /** Used to match property names within property paths. */\n var reIsDeepProp = /\\.|\\[(?:[^[\\]]*|([\"'])(?:(?!\\1)[^\\\\]|\\\\.)*?\\1)\\]/,\n reIsPlainProp = /^\\w*$/,\n rePropName = /[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))/g;\n\n /**\n * Used to match `RegExp`\n * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).\n */\n var reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g,\n reHasRegExpChar = RegExp(reRegExpChar.source);\n\n /** Used to match leading and trailing whitespace. */\n var reTrim = /^\\s+|\\s+$/g,\n reTrimStart = /^\\s+/,\n reTrimEnd = /\\s+$/;\n\n /** Used to match wrap detail comments. */\n var reWrapComment = /\\{(?:\\n\\/\\* \\[wrapped with .+\\] \\*\\/)?\\n?/,\n reWrapDetails = /\\{\\n\\/\\* \\[wrapped with (.+)\\] \\*/,\n reSplitDetails = /,? & /;\n\n /** Used to match words composed of alphanumeric characters. */\n var reAsciiWord = /[^\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\x7f]+/g;\n\n /** Used to match backslashes in property paths. */\n var reEscapeChar = /\\\\(\\\\)?/g;\n\n /**\n * Used to match\n * [ES template delimiters](http://ecma-international.org/ecma-262/7.0/#sec-template-literal-lexical-components).\n */\n var reEsTemplate = /\\$\\{([^\\\\}]*(?:\\\\.[^\\\\}]*)*)\\}/g;\n\n /** Used to match `RegExp` flags from their coerced string values. */\n var reFlags = /\\w*$/;\n\n /** Used to detect bad signed hexadecimal string values. */\n var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n /** Used to detect binary string values. */\n var reIsBinary = /^0b[01]+$/i;\n\n /** Used to detect host constructors (Safari). */\n var reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n\n /** Used to detect octal string values. */\n var reIsOctal = /^0o[0-7]+$/i;\n\n /** Used to detect unsigned integer values. */\n var reIsUint = /^(?:0|[1-9]\\d*)$/;\n\n /** Used to match Latin Unicode letters (excluding mathematical operators). */\n var reLatin = /[\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\xff\\u0100-\\u017f]/g;\n\n /** Used to ensure capturing order of template delimiters. */\n var reNoMatch = /($^)/;\n\n /** Used to match unescaped characters in compiled string literals. */\n var reUnescapedString = /['\\n\\r\\u2028\\u2029\\\\]/g;\n\n /** Used to compose unicode character classes. */\n var rsAstralRange = '\\\\ud800-\\\\udfff',\n rsComboMarksRange = '\\\\u0300-\\\\u036f',\n reComboHalfMarksRange = '\\\\ufe20-\\\\ufe2f',\n rsComboSymbolsRange = '\\\\u20d0-\\\\u20ff',\n rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,\n rsDingbatRange = '\\\\u2700-\\\\u27bf',\n rsLowerRange = 'a-z\\\\xdf-\\\\xf6\\\\xf8-\\\\xff',\n rsMathOpRange = '\\\\xac\\\\xb1\\\\xd7\\\\xf7',\n rsNonCharRange = '\\\\x00-\\\\x2f\\\\x3a-\\\\x40\\\\x5b-\\\\x60\\\\x7b-\\\\xbf',\n rsPunctuationRange = '\\\\u2000-\\\\u206f',\n rsSpaceRange = ' \\\\t\\\\x0b\\\\f\\\\xa0\\\\ufeff\\\\n\\\\r\\\\u2028\\\\u2029\\\\u1680\\\\u180e\\\\u2000\\\\u2001\\\\u2002\\\\u2003\\\\u2004\\\\u2005\\\\u2006\\\\u2007\\\\u2008\\\\u2009\\\\u200a\\\\u202f\\\\u205f\\\\u3000',\n rsUpperRange = 'A-Z\\\\xc0-\\\\xd6\\\\xd8-\\\\xde',\n rsVarRange = '\\\\ufe0e\\\\ufe0f',\n rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange;\n\n /** Used to compose unicode capture groups. */\n var rsApos = \"['\\u2019]\",\n rsAstral = '[' + rsAstralRange + ']',\n rsBreak = '[' + rsBreakRange + ']',\n rsCombo = '[' + rsComboRange + ']',\n rsDigits = '\\\\d+',\n rsDingbat = '[' + rsDingbatRange + ']',\n rsLower = '[' + rsLowerRange + ']',\n rsMisc = '[^' + rsAstralRange + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + ']',\n rsFitz = '\\\\ud83c[\\\\udffb-\\\\udfff]',\n rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',\n rsNonAstral = '[^' + rsAstralRange + ']',\n rsRegional = '(?:\\\\ud83c[\\\\udde6-\\\\uddff]){2}',\n rsSurrPair = '[\\\\ud800-\\\\udbff][\\\\udc00-\\\\udfff]',\n rsUpper = '[' + rsUpperRange + ']',\n rsZWJ = '\\\\u200d';\n\n /** Used to compose unicode regexes. */\n var rsMiscLower = '(?:' + rsLower + '|' + rsMisc + ')',\n rsMiscUpper = '(?:' + rsUpper + '|' + rsMisc + ')',\n rsOptContrLower = '(?:' + rsApos + '(?:d|ll|m|re|s|t|ve))?',\n rsOptContrUpper = '(?:' + rsApos + '(?:D|LL|M|RE|S|T|VE))?',\n reOptMod = rsModifier + '?',\n rsOptVar = '[' + rsVarRange + ']?',\n rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',\n rsOrdLower = '\\\\d*(?:1st|2nd|3rd|(?![123])\\\\dth)(?=\\\\b|[A-Z_])',\n rsOrdUpper = '\\\\d*(?:1ST|2ND|3RD|(?![123])\\\\dTH)(?=\\\\b|[a-z_])',\n rsSeq = rsOptVar + reOptMod + rsOptJoin,\n rsEmoji = '(?:' + [rsDingbat, rsRegional, rsSurrPair].join('|') + ')' + rsSeq,\n rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';\n\n /** Used to match apostrophes. */\n var reApos = RegExp(rsApos, 'g');\n\n /**\n * Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks) and\n * [combining diacritical marks for symbols](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks_for_Symbols).\n */\n var reComboMark = RegExp(rsCombo, 'g');\n\n /** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */\n var reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');\n\n /** Used to match complex or compound words. */\n var reUnicodeWord = RegExp([\n rsUpper + '?' + rsLower + '+' + rsOptContrLower + '(?=' + [rsBreak, rsUpper, '$'].join('|') + ')',\n rsMiscUpper + '+' + rsOptContrUpper + '(?=' + [rsBreak, rsUpper + rsMiscLower, '$'].join('|') + ')',\n rsUpper + '?' + rsMiscLower + '+' + rsOptContrLower,\n rsUpper + '+' + rsOptContrUpper,\n rsOrdUpper,\n rsOrdLower,\n rsDigits,\n rsEmoji\n ].join('|'), 'g');\n\n /** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */\n var reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + ']');\n\n /** Used to detect strings that need a more robust regexp to match words. */\n var reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;\n\n /** Used to assign default `context` object properties. */\n var contextProps = [\n 'Array', 'Buffer', 'DataView', 'Date', 'Error', 'Float32Array', 'Float64Array',\n 'Function', 'Int8Array', 'Int16Array', 'Int32Array', 'Map', 'Math', 'Object',\n 'Promise', 'RegExp', 'Set', 'String', 'Symbol', 'TypeError', 'Uint8Array',\n 'Uint8ClampedArray', 'Uint16Array', 'Uint32Array', 'WeakMap',\n '_', 'clearTimeout', 'isFinite', 'parseInt', 'setTimeout'\n ];\n\n /** Used to make template sourceURLs easier to identify. */\n var templateCounter = -1;\n\n /** Used to identify `toStringTag` values of typed arrays. */\n var typedArrayTags = {};\n typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =\n typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =\n typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =\n typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =\n typedArrayTags[uint32Tag] = true;\n typedArrayTags[argsTag] = typedArrayTags[arrayTag] =\n typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =\n typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =\n typedArrayTags[errorTag] = typedArrayTags[funcTag] =\n typedArrayTags[mapTag] = typedArrayTags[numberTag] =\n typedArrayTags[objectTag] = typedArrayTags[regexpTag] =\n typedArrayTags[setTag] = typedArrayTags[stringTag] =\n typedArrayTags[weakMapTag] = false;\n\n /** Used to identify `toStringTag` values supported by `_.clone`. */\n var cloneableTags = {};\n cloneableTags[argsTag] = cloneableTags[arrayTag] =\n cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =\n cloneableTags[boolTag] = cloneableTags[dateTag] =\n cloneableTags[float32Tag] = cloneableTags[float64Tag] =\n cloneableTags[int8Tag] = cloneableTags[int16Tag] =\n cloneableTags[int32Tag] = cloneableTags[mapTag] =\n cloneableTags[numberTag] = cloneableTags[objectTag] =\n cloneableTags[regexpTag] = cloneableTags[setTag] =\n cloneableTags[stringTag] = cloneableTags[symbolTag] =\n cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =\n cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;\n cloneableTags[errorTag] = cloneableTags[funcTag] =\n cloneableTags[weakMapTag] = false;\n\n /** Used to map Latin Unicode letters to basic Latin letters. */\n var deburredLetters = {\n // Latin-1 Supplement block.\n '\\xc0': 'A', '\\xc1': 'A', '\\xc2': 'A', '\\xc3': 'A', '\\xc4': 'A', '\\xc5': 'A',\n '\\xe0': 'a', '\\xe1': 'a', '\\xe2': 'a', '\\xe3': 'a', '\\xe4': 'a', '\\xe5': 'a',\n '\\xc7': 'C', '\\xe7': 'c',\n '\\xd0': 'D', '\\xf0': 'd',\n '\\xc8': 'E', '\\xc9': 'E', '\\xca': 'E', '\\xcb': 'E',\n '\\xe8': 'e', '\\xe9': 'e', '\\xea': 'e', '\\xeb': 'e',\n '\\xcc': 'I', '\\xcd': 'I', '\\xce': 'I', '\\xcf': 'I',\n '\\xec': 'i', '\\xed': 'i', '\\xee': 'i', '\\xef': 'i',\n '\\xd1': 'N', '\\xf1': 'n',\n '\\xd2': 'O', '\\xd3': 'O', '\\xd4': 'O', '\\xd5': 'O', '\\xd6': 'O', '\\xd8': 'O',\n '\\xf2': 'o', '\\xf3': 'o', '\\xf4': 'o', '\\xf5': 'o', '\\xf6': 'o', '\\xf8': 'o',\n '\\xd9': 'U', '\\xda': 'U', '\\xdb': 'U', '\\xdc': 'U',\n '\\xf9': 'u', '\\xfa': 'u', '\\xfb': 'u', '\\xfc': 'u',\n '\\xdd': 'Y', '\\xfd': 'y', '\\xff': 'y',\n '\\xc6': 'Ae', '\\xe6': 'ae',\n '\\xde': 'Th', '\\xfe': 'th',\n '\\xdf': 'ss',\n // Latin Extended-A block.\n '\\u0100': 'A', '\\u0102': 'A', '\\u0104': 'A',\n '\\u0101': 'a', '\\u0103': 'a', '\\u0105': 'a',\n '\\u0106': 'C', '\\u0108': 'C', '\\u010a': 'C', '\\u010c': 'C',\n '\\u0107': 'c', '\\u0109': 'c', '\\u010b': 'c', '\\u010d': 'c',\n '\\u010e': 'D', '\\u0110': 'D', '\\u010f': 'd', '\\u0111': 'd',\n '\\u0112': 'E', '\\u0114': 'E', '\\u0116': 'E', '\\u0118': 'E', '\\u011a': 'E',\n '\\u0113': 'e', '\\u0115': 'e', '\\u0117': 'e', '\\u0119': 'e', '\\u011b': 'e',\n '\\u011c': 'G', '\\u011e': 'G', '\\u0120': 'G', '\\u0122': 'G',\n '\\u011d': 'g', '\\u011f': 'g', '\\u0121': 'g', '\\u0123': 'g',\n '\\u0124': 'H', '\\u0126': 'H', '\\u0125': 'h', '\\u0127': 'h',\n '\\u0128': 'I', '\\u012a': 'I', '\\u012c': 'I', '\\u012e': 'I', '\\u0130': 'I',\n '\\u0129': 'i', '\\u012b': 'i', '\\u012d': 'i', '\\u012f': 'i', '\\u0131': 'i',\n '\\u0134': 'J', '\\u0135': 'j',\n '\\u0136': 'K', '\\u0137': 'k', '\\u0138': 'k',\n '\\u0139': 'L', '\\u013b': 'L', '\\u013d': 'L', '\\u013f': 'L', '\\u0141': 'L',\n '\\u013a': 'l', '\\u013c': 'l', '\\u013e': 'l', '\\u0140': 'l', '\\u0142': 'l',\n '\\u0143': 'N', '\\u0145': 'N', '\\u0147': 'N', '\\u014a': 'N',\n '\\u0144': 'n', '\\u0146': 'n', '\\u0148': 'n', '\\u014b': 'n',\n '\\u014c': 'O', '\\u014e': 'O', '\\u0150': 'O',\n '\\u014d': 'o', '\\u014f': 'o', '\\u0151': 'o',\n '\\u0154': 'R', '\\u0156': 'R', '\\u0158': 'R',\n '\\u0155': 'r', '\\u0157': 'r', '\\u0159': 'r',\n '\\u015a': 'S', '\\u015c': 'S', '\\u015e': 'S', '\\u0160': 'S',\n '\\u015b': 's', '\\u015d': 's', '\\u015f': 's', '\\u0161': 's',\n '\\u0162': 'T', '\\u0164': 'T', '\\u0166': 'T',\n '\\u0163': 't', '\\u0165': 't', '\\u0167': 't',\n '\\u0168': 'U', '\\u016a': 'U', '\\u016c': 'U', '\\u016e': 'U', '\\u0170': 'U', '\\u0172': 'U',\n '\\u0169': 'u', '\\u016b': 'u', '\\u016d': 'u', '\\u016f': 'u', '\\u0171': 'u', '\\u0173': 'u',\n '\\u0174': 'W', '\\u0175': 'w',\n '\\u0176': 'Y', '\\u0177': 'y', '\\u0178': 'Y',\n '\\u0179': 'Z', '\\u017b': 'Z', '\\u017d': 'Z',\n '\\u017a': 'z', '\\u017c': 'z', '\\u017e': 'z',\n '\\u0132': 'IJ', '\\u0133': 'ij',\n '\\u0152': 'Oe', '\\u0153': 'oe',\n '\\u0149': \"'n\", '\\u017f': 's'\n };\n\n /** Used to map characters to HTML entities. */\n var htmlEscapes = {\n '&': '&amp;',\n '<': '&lt;',\n '>': '&gt;',\n '\"': '&quot;',\n \"'\": '&#39;'\n };\n\n /** Used to map HTML entities to characters. */\n var htmlUnescapes = {\n '&amp;': '&',\n '&lt;': '<',\n '&gt;': '>',\n '&quot;': '\"',\n '&#39;': \"'\"\n };\n\n /** Used to escape characters for inclusion in compiled string literals. */\n var stringEscapes = {\n '\\\\': '\\\\',\n \"'\": \"'\",\n '\\n': 'n',\n '\\r': 'r',\n '\\u2028': 'u2028',\n '\\u2029': 'u2029'\n };\n\n /** Built-in method references without a dependency on `root`. */\n var freeParseFloat = parseFloat,\n freeParseInt = parseInt;\n\n /** Detect free variable `global` from Node.js. */\n var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\n /** Detect free variable `self`. */\n var freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n /** Used as a reference to the global object. */\n var root = freeGlobal || freeSelf || Function('return this')();\n\n /** Detect free variable `exports`. */\n var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n /** Detect free variable `module`. */\n var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n /** Detect the popular CommonJS extension `module.exports`. */\n var moduleExports = freeModule && freeModule.exports === freeExports;\n\n /** Detect free variable `process` from Node.js. */\n var freeProcess = moduleExports && freeGlobal.process;\n\n /** Used to access faster Node.js helpers. */\n var nodeUtil = (function() {\n try {\n // Use `util.types` for Node.js 10+.\n var types = freeModule && freeModule.require && freeModule.require('util').types;\n\n if (types) {\n return types;\n }\n\n // Legacy `process.binding('util')` for Node.js < 10.\n return freeProcess && freeProcess.binding && freeProcess.binding('util');\n } catch (e) {}\n }());\n\n /* Node.js helper references. */\n var nodeIsArrayBuffer = nodeUtil && nodeUtil.isArrayBuffer,\n nodeIsDate = nodeUtil && nodeUtil.isDate,\n nodeIsMap = nodeUtil && nodeUtil.isMap,\n nodeIsRegExp = nodeUtil && nodeUtil.isRegExp,\n nodeIsSet = nodeUtil && nodeUtil.isSet,\n nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;\n\n /*--------------------------------------------------------------------------*/\n\n /**\n * A faster alternative to `Function#apply`, this function invokes `func`\n * with the `this` binding of `thisArg` and the arguments of `args`.\n *\n * @private\n * @param {Function} func The function to invoke.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {Array} args The arguments to invoke `func` with.\n * @returns {*} Returns the result of `func`.\n */\n function apply(func, thisArg, args) {\n switch (args.length) {\n case 0: return func.call(thisArg);\n case 1: return func.call(thisArg, args[0]);\n case 2: return func.call(thisArg, args[0], args[1]);\n case 3: return func.call(thisArg, args[0], args[1], args[2]);\n }\n return func.apply(thisArg, args);\n }\n\n /**\n * A specialized version of `baseAggregator` for arrays.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} setter The function to set `accumulator` values.\n * @param {Function} iteratee The iteratee to transform keys.\n * @param {Object} accumulator The initial aggregated object.\n * @returns {Function} Returns `accumulator`.\n */\n function arrayAggregator(array, setter, iteratee, accumulator) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n var value = array[index];\n setter(accumulator, value, iteratee(value), array);\n }\n return accumulator;\n }\n\n /**\n * A specialized version of `_.forEach` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns `array`.\n */\n function arrayEach(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (iteratee(array[index], index, array) === false) {\n break;\n }\n }\n return array;\n }\n\n /**\n * A specialized version of `_.forEachRight` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns `array`.\n */\n function arrayEachRight(array, iteratee) {\n var length = array == null ? 0 : array.length;\n\n while (length--) {\n if (iteratee(array[length], length, array) === false) {\n break;\n }\n }\n return array;\n }\n\n /**\n * A specialized version of `_.every` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if all elements pass the predicate check,\n * else `false`.\n */\n function arrayEvery(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (!predicate(array[index], index, array)) {\n return false;\n }\n }\n return true;\n }\n\n /**\n * A specialized version of `_.filter` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\n function arrayFilter(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n if (predicate(value, index, array)) {\n result[resIndex++] = value;\n }\n }\n return result;\n }\n\n /**\n * A specialized version of `_.includes` for arrays without support for\n * specifying an index to search from.\n *\n * @private\n * @param {Array} [array] The array to inspect.\n * @param {*} target The value to search for.\n * @returns {boolean} Returns `true` if `target` is found, else `false`.\n */\n function arrayIncludes(array, value) {\n var length = array == null ? 0 : array.length;\n return !!length && baseIndexOf(array, value, 0) > -1;\n }\n\n /**\n * This function is like `arrayIncludes` except that it accepts a comparator.\n *\n * @private\n * @param {Array} [array] The array to inspect.\n * @param {*} target The value to search for.\n * @param {Function} comparator The comparator invoked per element.\n * @returns {boolean} Returns `true` if `target` is found, else `false`.\n */\n function arrayIncludesWith(array, value, comparator) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (comparator(value, array[index])) {\n return true;\n }\n }\n return false;\n }\n\n /**\n * A specialized version of `_.map` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\n function arrayMap(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length,\n result = Array(length);\n\n while (++index < length) {\n result[index] = iteratee(array[index], index, array);\n }\n return result;\n }\n\n /**\n * Appends the elements of `values` to `array`.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {Array} values The values to append.\n * @returns {Array} Returns `array`.\n */\n function arrayPush(array, values) {\n var index = -1,\n length = values.length,\n offset = array.length;\n\n while (++index < length) {\n array[offset + index] = values[index];\n }\n return array;\n }\n\n /**\n * A specialized version of `_.reduce` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @param {boolean} [initAccum] Specify using the first element of `array` as\n * the initial value.\n * @returns {*} Returns the accumulated value.\n */\n function arrayReduce(array, iteratee, accumulator, initAccum) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n if (initAccum && length) {\n accumulator = array[++index];\n }\n while (++index < length) {\n accumulator = iteratee(accumulator, array[index], index, array);\n }\n return accumulator;\n }\n\n /**\n * A specialized version of `_.reduceRight` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @param {boolean} [initAccum] Specify using the last element of `array` as\n * the initial value.\n * @returns {*} Returns the accumulated value.\n */\n function arrayReduceRight(array, iteratee, accumulator, initAccum) {\n var length = array == null ? 0 : array.length;\n if (initAccum && length) {\n accumulator = array[--length];\n }\n while (length--) {\n accumulator = iteratee(accumulator, array[length], length, array);\n }\n return accumulator;\n }\n\n /**\n * A specialized version of `_.some` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if any element passes the predicate check,\n * else `false`.\n */\n function arraySome(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (predicate(array[index], index, array)) {\n return true;\n }\n }\n return false;\n }\n\n /**\n * Gets the size of an ASCII `string`.\n *\n * @private\n * @param {string} string The string inspect.\n * @returns {number} Returns the string size.\n */\n var asciiSize = baseProperty('length');\n\n /**\n * Converts an ASCII `string` to an array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the converted array.\n */\n function asciiToArray(string) {\n return string.split('');\n }\n\n /**\n * Splits an ASCII `string` into an array of its words.\n *\n * @private\n * @param {string} The string to inspect.\n * @returns {Array} Returns the words of `string`.\n */\n function asciiWords(string) {\n return string.match(reAsciiWord) || [];\n }\n\n /**\n * The base implementation of methods like `_.findKey` and `_.findLastKey`,\n * without support for iteratee shorthands, which iterates over `collection`\n * using `eachFunc`.\n *\n * @private\n * @param {Array|Object} collection The collection to inspect.\n * @param {Function} predicate The function invoked per iteration.\n * @param {Function} eachFunc The function to iterate over `collection`.\n * @returns {*} Returns the found element or its key, else `undefined`.\n */\n function baseFindKey(collection, predicate, eachFunc) {\n var result;\n eachFunc(collection, function(value, key, collection) {\n if (predicate(value, key, collection)) {\n result = key;\n return false;\n }\n });\n return result;\n }\n\n /**\n * The base implementation of `_.findIndex` and `_.findLastIndex` without\n * support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} predicate The function invoked per iteration.\n * @param {number} fromIndex The index to search from.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function baseFindIndex(array, predicate, fromIndex, fromRight) {\n var length = array.length,\n index = fromIndex + (fromRight ? 1 : -1);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (predicate(array[index], index, array)) {\n return index;\n }\n }\n return -1;\n }\n\n /**\n * The base implementation of `_.indexOf` without `fromIndex` bounds checks.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function baseIndexOf(array, value, fromIndex) {\n return value === value\n ? strictIndexOf(array, value, fromIndex)\n : baseFindIndex(array, baseIsNaN, fromIndex);\n }\n\n /**\n * This function is like `baseIndexOf` except that it accepts a comparator.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @param {Function} comparator The comparator invoked per element.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function baseIndexOfWith(array, value, fromIndex, comparator) {\n var index = fromIndex - 1,\n length = array.length;\n\n while (++index < length) {\n if (comparator(array[index], value)) {\n return index;\n }\n }\n return -1;\n }\n\n /**\n * The base implementation of `_.isNaN` without support for number objects.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.\n */\n function baseIsNaN(value) {\n return value !== value;\n }\n\n /**\n * The base implementation of `_.mean` and `_.meanBy` without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {number} Returns the mean.\n */\n function baseMean(array, iteratee) {\n var length = array == null ? 0 : array.length;\n return length ? (baseSum(array, iteratee) / length) : NAN;\n }\n\n /**\n * The base implementation of `_.property` without support for deep paths.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @returns {Function} Returns the new accessor function.\n */\n function baseProperty(key) {\n return function(object) {\n return object == null ? undefined : object[key];\n };\n }\n\n /**\n * The base implementation of `_.propertyOf` without support for deep paths.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Function} Returns the new accessor function.\n */\n function basePropertyOf(object) {\n return function(key) {\n return object == null ? undefined : object[key];\n };\n }\n\n /**\n * The base implementation of `_.reduce` and `_.reduceRight`, without support\n * for iteratee shorthands, which iterates over `collection` using `eachFunc`.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {*} accumulator The initial value.\n * @param {boolean} initAccum Specify using the first or last element of\n * `collection` as the initial value.\n * @param {Function} eachFunc The function to iterate over `collection`.\n * @returns {*} Returns the accumulated value.\n */\n function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {\n eachFunc(collection, function(value, index, collection) {\n accumulator = initAccum\n ? (initAccum = false, value)\n : iteratee(accumulator, value, index, collection);\n });\n return accumulator;\n }\n\n /**\n * The base implementation of `_.sortBy` which uses `comparer` to define the\n * sort order of `array` and replaces criteria objects with their corresponding\n * values.\n *\n * @private\n * @param {Array} array The array to sort.\n * @param {Function} comparer The function to define sort order.\n * @returns {Array} Returns `array`.\n */\n function baseSortBy(array, comparer) {\n var length = array.length;\n\n array.sort(comparer);\n while (length--) {\n array[length] = array[length].value;\n }\n return array;\n }\n\n /**\n * The base implementation of `_.sum` and `_.sumBy` without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {number} Returns the sum.\n */\n function baseSum(array, iteratee) {\n var result,\n index = -1,\n length = array.length;\n\n while (++index < length) {\n var current = iteratee(array[index]);\n if (current !== undefined) {\n result = result === undefined ? current : (result + current);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.times` without support for iteratee shorthands\n * or max array length checks.\n *\n * @private\n * @param {number} n The number of times to invoke `iteratee`.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the array of results.\n */\n function baseTimes(n, iteratee) {\n var index = -1,\n result = Array(n);\n\n while (++index < n) {\n result[index] = iteratee(index);\n }\n return result;\n }\n\n /**\n * The base implementation of `_.toPairs` and `_.toPairsIn` which creates an array\n * of key-value pairs for `object` corresponding to the property names of `props`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array} props The property names to get values for.\n * @returns {Object} Returns the key-value pairs.\n */\n function baseToPairs(object, props) {\n return arrayMap(props, function(key) {\n return [key, object[key]];\n });\n }\n\n /**\n * The base implementation of `_.unary` without support for storing metadata.\n *\n * @private\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n */\n function baseUnary(func) {\n return function(value) {\n return func(value);\n };\n }\n\n /**\n * The base implementation of `_.values` and `_.valuesIn` which creates an\n * array of `object` property values corresponding to the property names\n * of `props`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array} props The property names to get values for.\n * @returns {Object} Returns the array of property values.\n */\n function baseValues(object, props) {\n return arrayMap(props, function(key) {\n return object[key];\n });\n }\n\n /**\n * Checks if a `cache` value for `key` exists.\n *\n * @private\n * @param {Object} cache The cache to query.\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function cacheHas(cache, key) {\n return cache.has(key);\n }\n\n /**\n * Used by `_.trim` and `_.trimStart` to get the index of the first string symbol\n * that is not found in the character symbols.\n *\n * @private\n * @param {Array} strSymbols The string symbols to inspect.\n * @param {Array} chrSymbols The character symbols to find.\n * @returns {number} Returns the index of the first unmatched string symbol.\n */\n function charsStartIndex(strSymbols, chrSymbols) {\n var index = -1,\n length = strSymbols.length;\n\n while (++index < length && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {}\n return index;\n }\n\n /**\n * Used by `_.trim` and `_.trimEnd` to get the index of the last string symbol\n * that is not found in the character symbols.\n *\n * @private\n * @param {Array} strSymbols The string symbols to inspect.\n * @param {Array} chrSymbols The character symbols to find.\n * @returns {number} Returns the index of the last unmatched string symbol.\n */\n function charsEndIndex(strSymbols, chrSymbols) {\n var index = strSymbols.length;\n\n while (index-- && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {}\n return index;\n }\n\n /**\n * Gets the number of `placeholder` occurrences in `array`.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} placeholder The placeholder to search for.\n * @returns {number} Returns the placeholder count.\n */\n function countHolders(array, placeholder) {\n var length = array.length,\n result = 0;\n\n while (length--) {\n if (array[length] === placeholder) {\n ++result;\n }\n }\n return result;\n }\n\n /**\n * Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A\n * letters to basic Latin letters.\n *\n * @private\n * @param {string} letter The matched letter to deburr.\n * @returns {string} Returns the deburred letter.\n */\n var deburrLetter = basePropertyOf(deburredLetters);\n\n /**\n * Used by `_.escape` to convert characters to HTML entities.\n *\n * @private\n * @param {string} chr The matched character to escape.\n * @returns {string} Returns the escaped character.\n */\n var escapeHtmlChar = basePropertyOf(htmlEscapes);\n\n /**\n * Used by `_.template` to escape characters for inclusion in compiled string literals.\n *\n * @private\n * @param {string} chr The matched character to escape.\n * @returns {string} Returns the escaped character.\n */\n function escapeStringChar(chr) {\n return '\\\\' + stringEscapes[chr];\n }\n\n /**\n * Gets the value at `key` of `object`.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\n function getValue(object, key) {\n return object == null ? undefined : object[key];\n }\n\n /**\n * Checks if `string` contains Unicode symbols.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {boolean} Returns `true` if a symbol is found, else `false`.\n */\n function hasUnicode(string) {\n return reHasUnicode.test(string);\n }\n\n /**\n * Checks if `string` contains a word composed of Unicode symbols.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {boolean} Returns `true` if a word is found, else `false`.\n */\n function hasUnicodeWord(string) {\n return reHasUnicodeWord.test(string);\n }\n\n /**\n * Converts `iterator` to an array.\n *\n * @private\n * @param {Object} iterator The iterator to convert.\n * @returns {Array} Returns the converted array.\n */\n function iteratorToArray(iterator) {\n var data,\n result = [];\n\n while (!(data = iterator.next()).done) {\n result.push(data.value);\n }\n return result;\n }\n\n /**\n * Converts `map` to its key-value pairs.\n *\n * @private\n * @param {Object} map The map to convert.\n * @returns {Array} Returns the key-value pairs.\n */\n function mapToArray(map) {\n var index = -1,\n result = Array(map.size);\n\n map.forEach(function(value, key) {\n result[++index] = [key, value];\n });\n return result;\n }\n\n /**\n * Creates a unary function that invokes `func` with its argument transformed.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {Function} transform The argument transform.\n * @returns {Function} Returns the new function.\n */\n function overArg(func, transform) {\n return function(arg) {\n return func(transform(arg));\n };\n }\n\n /**\n * Replaces all `placeholder` elements in `array` with an internal placeholder\n * and returns an array of their indexes.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {*} placeholder The placeholder to replace.\n * @returns {Array} Returns the new array of placeholder indexes.\n */\n function replaceHolders(array, placeholder) {\n var index = -1,\n length = array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n if (value === placeholder || value === PLACEHOLDER) {\n array[index] = PLACEHOLDER;\n result[resIndex++] = index;\n }\n }\n return result;\n }\n\n /**\n * Gets the value at `key`, unless `key` is \"__proto__\".\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\n function safeGet(object, key) {\n return key == '__proto__'\n ? undefined\n : object[key];\n }\n\n /**\n * Converts `set` to an array of its values.\n *\n * @private\n * @param {Object} set The set to convert.\n * @returns {Array} Returns the values.\n */\n function setToArray(set) {\n var index = -1,\n result = Array(set.size);\n\n set.forEach(function(value) {\n result[++index] = value;\n });\n return result;\n }\n\n /**\n * Converts `set` to its value-value pairs.\n *\n * @private\n * @param {Object} set The set to convert.\n * @returns {Array} Returns the value-value pairs.\n */\n function setToPairs(set) {\n var index = -1,\n result = Array(set.size);\n\n set.forEach(function(value) {\n result[++index] = [value, value];\n });\n return result;\n }\n\n /**\n * A specialized version of `_.indexOf` which performs strict equality\n * comparisons of values, i.e. `===`.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function strictIndexOf(array, value, fromIndex) {\n var index = fromIndex - 1,\n length = array.length;\n\n while (++index < length) {\n if (array[index] === value) {\n return index;\n }\n }\n return -1;\n }\n\n /**\n * A specialized version of `_.lastIndexOf` which performs strict equality\n * comparisons of values, i.e. `===`.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function strictLastIndexOf(array, value, fromIndex) {\n var index = fromIndex + 1;\n while (index--) {\n if (array[index] === value) {\n return index;\n }\n }\n return index;\n }\n\n /**\n * Gets the number of symbols in `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the string size.\n */\n function stringSize(string) {\n return hasUnicode(string)\n ? unicodeSize(string)\n : asciiSize(string);\n }\n\n /**\n * Converts `string` to an array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the converted array.\n */\n function stringToArray(string) {\n return hasUnicode(string)\n ? unicodeToArray(string)\n : asciiToArray(string);\n }\n\n /**\n * Used by `_.unescape` to convert HTML entities to characters.\n *\n * @private\n * @param {string} chr The matched character to unescape.\n * @returns {string} Returns the unescaped character.\n */\n var unescapeHtmlChar = basePropertyOf(htmlUnescapes);\n\n /**\n * Gets the size of a Unicode `string`.\n *\n * @private\n * @param {string} string The string inspect.\n * @returns {number} Returns the string size.\n */\n function unicodeSize(string) {\n var result = reUnicode.lastIndex = 0;\n while (reUnicode.test(string)) {\n ++result;\n }\n return result;\n }\n\n /**\n * Converts a Unicode `string` to an array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the converted array.\n */\n function unicodeToArray(string) {\n return string.match(reUnicode) || [];\n }\n\n /**\n * Splits a Unicode `string` into an array of its words.\n *\n * @private\n * @param {string} The string to inspect.\n * @returns {Array} Returns the words of `string`.\n */\n function unicodeWords(string) {\n return string.match(reUnicodeWord) || [];\n }\n\n /*--------------------------------------------------------------------------*/\n\n /**\n * Create a new pristine `lodash` function using the `context` object.\n *\n * @static\n * @memberOf _\n * @since 1.1.0\n * @category Util\n * @param {Object} [context=root] The context object.\n * @returns {Function} Returns a new `lodash` function.\n * @example\n *\n * _.mixin({ 'foo': _.constant('foo') });\n *\n * var lodash = _.runInContext();\n * lodash.mixin({ 'bar': lodash.constant('bar') });\n *\n * _.isFunction(_.foo);\n * // => true\n * _.isFunction(_.bar);\n * // => false\n *\n * lodash.isFunction(lodash.foo);\n * // => false\n * lodash.isFunction(lodash.bar);\n * // => true\n *\n * // Create a suped-up `defer` in Node.js.\n * var defer = _.runInContext({ 'setTimeout': setImmediate }).defer;\n */\n var runInContext = (function runInContext(context) {\n context = context == null ? root : _.defaults(root.Object(), context, _.pick(root, contextProps));\n\n /** Built-in constructor references. */\n var Array = context.Array,\n Date = context.Date,\n Error = context.Error,\n Function = context.Function,\n Math = context.Math,\n Object = context.Object,\n RegExp = context.RegExp,\n String = context.String,\n TypeError = context.TypeError;\n\n /** Used for built-in method references. */\n var arrayProto = Array.prototype,\n funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n /** Used to detect overreaching core-js shims. */\n var coreJsData = context['__core-js_shared__'];\n\n /** Used to resolve the decompiled source of functions. */\n var funcToString = funcProto.toString;\n\n /** Used to check objects for own properties. */\n var hasOwnProperty = objectProto.hasOwnProperty;\n\n /** Used to generate unique IDs. */\n var idCounter = 0;\n\n /** Used to detect methods masquerading as native. */\n var maskSrcKey = (function() {\n var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');\n return uid ? ('Symbol(src)_1.' + uid) : '';\n }());\n\n /**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\n var nativeObjectToString = objectProto.toString;\n\n /** Used to infer the `Object` constructor. */\n var objectCtorString = funcToString.call(Object);\n\n /** Used to restore the original `_` reference in `_.noConflict`. */\n var oldDash = root._;\n\n /** Used to detect if a method is native. */\n var reIsNative = RegExp('^' +\n funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\\\$&')\n .replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$'\n );\n\n /** Built-in value references. */\n var Buffer = moduleExports ? context.Buffer : undefined,\n Symbol = context.Symbol,\n Uint8Array = context.Uint8Array,\n allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined,\n getPrototype = overArg(Object.getPrototypeOf, Object),\n objectCreate = Object.create,\n propertyIsEnumerable = objectProto.propertyIsEnumerable,\n splice = arrayProto.splice,\n spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined,\n symIterator = Symbol ? Symbol.iterator : undefined,\n symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n var defineProperty = (function() {\n try {\n var func = getNative(Object, 'defineProperty');\n func({}, '', {});\n return func;\n } catch (e) {}\n }());\n\n /** Mocked built-ins. */\n var ctxClearTimeout = context.clearTimeout !== root.clearTimeout && context.clearTimeout,\n ctxNow = Date && Date.now !== root.Date.now && Date.now,\n ctxSetTimeout = context.setTimeout !== root.setTimeout && context.setTimeout;\n\n /* Built-in method references for those with the same name as other `lodash` methods. */\n var nativeCeil = Math.ceil,\n nativeFloor = Math.floor,\n nativeGetSymbols = Object.getOwnPropertySymbols,\n nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined,\n nativeIsFinite = context.isFinite,\n nativeJoin = arrayProto.join,\n nativeKeys = overArg(Object.keys, Object),\n nativeMax = Math.max,\n nativeMin = Math.min,\n nativeNow = Date.now,\n nativeParseInt = context.parseInt,\n nativeRandom = Math.random,\n nativeReverse = arrayProto.reverse;\n\n /* Built-in method references that are verified to be native. */\n var DataView = getNative(context, 'DataView'),\n Map = getNative(context, 'Map'),\n Promise = getNative(context, 'Promise'),\n Set = getNative(context, 'Set'),\n WeakMap = getNative(context, 'WeakMap'),\n nativeCreate = getNative(Object, 'create');\n\n /** Used to store function metadata. */\n var metaMap = WeakMap && new WeakMap;\n\n /** Used to lookup unminified function names. */\n var realNames = {};\n\n /** Used to detect maps, sets, and weakmaps. */\n var dataViewCtorString = toSource(DataView),\n mapCtorString = toSource(Map),\n promiseCtorString = toSource(Promise),\n setCtorString = toSource(Set),\n weakMapCtorString = toSource(WeakMap);\n\n /** Used to convert symbols to primitives and strings. */\n var symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolValueOf = symbolProto ? symbolProto.valueOf : undefined,\n symbolToString = symbolProto ? symbolProto.toString : undefined;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a `lodash` object which wraps `value` to enable implicit method\n * chain sequences. Methods that operate on and return arrays, collections,\n * and functions can be chained together. Methods that retrieve a single value\n * or may return a primitive value will automatically end the chain sequence\n * and return the unwrapped value. Otherwise, the value must be unwrapped\n * with `_#value`.\n *\n * Explicit chain sequences, which must be unwrapped with `_#value`, may be\n * enabled using `_.chain`.\n *\n * The execution of chained methods is lazy, that is, it's deferred until\n * `_#value` is implicitly or explicitly called.\n *\n * Lazy evaluation allows several methods to support shortcut fusion.\n * Shortcut fusion is an optimization to merge iteratee calls; this avoids\n * the creation of intermediate arrays and can greatly reduce the number of\n * iteratee executions. Sections of a chain sequence qualify for shortcut\n * fusion if the section is applied to an array and iteratees accept only\n * one argument. The heuristic for whether a section qualifies for shortcut\n * fusion is subject to change.\n *\n * Chaining is supported in custom builds as long as the `_#value` method is\n * directly or indirectly included in the build.\n *\n * In addition to lodash methods, wrappers have `Array` and `String` methods.\n *\n * The wrapper `Array` methods are:\n * `concat`, `join`, `pop`, `push`, `shift`, `sort`, `splice`, and `unshift`\n *\n * The wrapper `String` methods are:\n * `replace` and `split`\n *\n * The wrapper methods that support shortcut fusion are:\n * `at`, `compact`, `drop`, `dropRight`, `dropWhile`, `filter`, `find`,\n * `findLast`, `head`, `initial`, `last`, `map`, `reject`, `reverse`, `slice`,\n * `tail`, `take`, `takeRight`, `takeRightWhile`, `takeWhile`, and `toArray`\n *\n * The chainable wrapper methods are:\n * `after`, `ary`, `assign`, `assignIn`, `assignInWith`, `assignWith`, `at`,\n * `before`, `bind`, `bindAll`, `bindKey`, `castArray`, `chain`, `chunk`,\n * `commit`, `compact`, `concat`, `conforms`, `constant`, `countBy`, `create`,\n * `curry`, `debounce`, `defaults`, `defaultsDeep`, `defer`, `delay`,\n * `difference`, `differenceBy`, `differenceWith`, `drop`, `dropRight`,\n * `dropRightWhile`, `dropWhile`, `extend`, `extendWith`, `fill`, `filter`,\n * `flatMap`, `flatMapDeep`, `flatMapDepth`, `flatten`, `flattenDeep`,\n * `flattenDepth`, `flip`, `flow`, `flowRight`, `fromPairs`, `functions`,\n * `functionsIn`, `groupBy`, `initial`, `intersection`, `intersectionBy`,\n * `intersectionWith`, `invert`, `invertBy`, `invokeMap`, `iteratee`, `keyBy`,\n * `keys`, `keysIn`, `map`, `mapKeys`, `mapValues`, `matches`, `matchesProperty`,\n * `memoize`, `merge`, `mergeWith`, `method`, `methodOf`, `mixin`, `negate`,\n * `nthArg`, `omit`, `omitBy`, `once`, `orderBy`, `over`, `overArgs`,\n * `overEvery`, `overSome`, `partial`, `partialRight`, `partition`, `pick`,\n * `pickBy`, `plant`, `property`, `propertyOf`, `pull`, `pullAll`, `pullAllBy`,\n * `pullAllWith`, `pullAt`, `push`, `range`, `rangeRight`, `rearg`, `reject`,\n * `remove`, `rest`, `reverse`, `sampleSize`, `set`, `setWith`, `shuffle`,\n * `slice`, `sort`, `sortBy`, `splice`, `spread`, `tail`, `take`, `takeRight`,\n * `takeRightWhile`, `takeWhile`, `tap`, `throttle`, `thru`, `toArray`,\n * `toPairs`, `toPairsIn`, `toPath`, `toPlainObject`, `transform`, `unary`,\n * `union`, `unionBy`, `unionWith`, `uniq`, `uniqBy`, `uniqWith`, `unset`,\n * `unshift`, `unzip`, `unzipWith`, `update`, `updateWith`, `values`,\n * `valuesIn`, `without`, `wrap`, `xor`, `xorBy`, `xorWith`, `zip`,\n * `zipObject`, `zipObjectDeep`, and `zipWith`\n *\n * The wrapper methods that are **not** chainable by default are:\n * `add`, `attempt`, `camelCase`, `capitalize`, `ceil`, `clamp`, `clone`,\n * `cloneDeep`, `cloneDeepWith`, `cloneWith`, `conformsTo`, `deburr`,\n * `defaultTo`, `divide`, `each`, `eachRight`, `endsWith`, `eq`, `escape`,\n * `escapeRegExp`, `every`, `find`, `findIndex`, `findKey`, `findLast`,\n * `findLastIndex`, `findLastKey`, `first`, `floor`, `forEach`, `forEachRight`,\n * `forIn`, `forInRight`, `forOwn`, `forOwnRight`, `get`, `gt`, `gte`, `has`,\n * `hasIn`, `head`, `identity`, `includes`, `indexOf`, `inRange`, `invoke`,\n * `isArguments`, `isArray`, `isArrayBuffer`, `isArrayLike`, `isArrayLikeObject`,\n * `isBoolean`, `isBuffer`, `isDate`, `isElement`, `isEmpty`, `isEqual`,\n * `isEqualWith`, `isError`, `isFinite`, `isFunction`, `isInteger`, `isLength`,\n * `isMap`, `isMatch`, `isMatchWith`, `isNaN`, `isNative`, `isNil`, `isNull`,\n * `isNumber`, `isObject`, `isObjectLike`, `isPlainObject`, `isRegExp`,\n * `isSafeInteger`, `isSet`, `isString`, `isUndefined`, `isTypedArray`,\n * `isWeakMap`, `isWeakSet`, `join`, `kebabCase`, `last`, `lastIndexOf`,\n * `lowerCase`, `lowerFirst`, `lt`, `lte`, `max`, `maxBy`, `mean`, `meanBy`,\n * `min`, `minBy`, `multiply`, `noConflict`, `noop`, `now`, `nth`, `pad`,\n * `padEnd`, `padStart`, `parseInt`, `pop`, `random`, `reduce`, `reduceRight`,\n * `repeat`, `result`, `round`, `runInContext`, `sample`, `shift`, `size`,\n * `snakeCase`, `some`, `sortedIndex`, `sortedIndexBy`, `sortedLastIndex`,\n * `sortedLastIndexBy`, `startCase`, `startsWith`, `stubArray`, `stubFalse`,\n * `stubObject`, `stubString`, `stubTrue`, `subtract`, `sum`, `sumBy`,\n * `template`, `times`, `toFinite`, `toInteger`, `toJSON`, `toLength`,\n * `toLower`, `toNumber`, `toSafeInteger`, `toString`, `toUpper`, `trim`,\n * `trimEnd`, `trimStart`, `truncate`, `unescape`, `uniqueId`, `upperCase`,\n * `upperFirst`, `value`, and `words`\n *\n * @name _\n * @constructor\n * @category Seq\n * @param {*} value The value to wrap in a `lodash` instance.\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * function square(n) {\n * return n * n;\n * }\n *\n * var wrapped = _([1, 2, 3]);\n *\n * // Returns an unwrapped value.\n * wrapped.reduce(_.add);\n * // => 6\n *\n * // Returns a wrapped value.\n * var squares = wrapped.map(square);\n *\n * _.isArray(squares);\n * // => false\n *\n * _.isArray(squares.value());\n * // => true\n */\n function lodash(value) {\n if (isObjectLike(value) && !isArray(value) && !(value instanceof LazyWrapper)) {\n if (value instanceof LodashWrapper) {\n return value;\n }\n if (hasOwnProperty.call(value, '__wrapped__')) {\n return wrapperClone(value);\n }\n }\n return new LodashWrapper(value);\n }\n\n /**\n * The base implementation of `_.create` without support for assigning\n * properties to the created object.\n *\n * @private\n * @param {Object} proto The object to inherit from.\n * @returns {Object} Returns the new object.\n */\n var baseCreate = (function() {\n function object() {}\n return function(proto) {\n if (!isObject(proto)) {\n return {};\n }\n if (objectCreate) {\n return objectCreate(proto);\n }\n object.prototype = proto;\n var result = new object;\n object.prototype = undefined;\n return result;\n };\n }());\n\n /**\n * The function whose prototype chain sequence wrappers inherit from.\n *\n * @private\n */\n function baseLodash() {\n // No operation performed.\n }\n\n /**\n * The base constructor for creating `lodash` wrapper objects.\n *\n * @private\n * @param {*} value The value to wrap.\n * @param {boolean} [chainAll] Enable explicit method chain sequences.\n */\n function LodashWrapper(value, chainAll) {\n this.__wrapped__ = value;\n this.__actions__ = [];\n this.__chain__ = !!chainAll;\n this.__index__ = 0;\n this.__values__ = undefined;\n }\n\n /**\n * By default, the template delimiters used by lodash are like those in\n * embedded Ruby (ERB) as well as ES2015 template strings. Change the\n * following template settings to use alternative delimiters.\n *\n * @static\n * @memberOf _\n * @type {Object}\n */\n lodash.templateSettings = {\n\n /**\n * Used to detect `data` property values to be HTML-escaped.\n *\n * @memberOf _.templateSettings\n * @type {RegExp}\n */\n 'escape': reEscape,\n\n /**\n * Used to detect code to be evaluated.\n *\n * @memberOf _.templateSettings\n * @type {RegExp}\n */\n 'evaluate': reEvaluate,\n\n /**\n * Used to detect `data` property values to inject.\n *\n * @memberOf _.templateSettings\n * @type {RegExp}\n */\n 'interpolate': reInterpolate,\n\n /**\n * Used to reference the data object in the template text.\n *\n * @memberOf _.templateSettings\n * @type {string}\n */\n 'variable': '',\n\n /**\n * Used to import variables into the compiled template.\n *\n * @memberOf _.templateSettings\n * @type {Object}\n */\n 'imports': {\n\n /**\n * A reference to the `lodash` function.\n *\n * @memberOf _.templateSettings.imports\n * @type {Function}\n */\n '_': lodash\n }\n };\n\n // Ensure wrappers are instances of `baseLodash`.\n lodash.prototype = baseLodash.prototype;\n lodash.prototype.constructor = lodash;\n\n LodashWrapper.prototype = baseCreate(baseLodash.prototype);\n LodashWrapper.prototype.constructor = LodashWrapper;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a lazy wrapper object which wraps `value` to enable lazy evaluation.\n *\n * @private\n * @constructor\n * @param {*} value The value to wrap.\n */\n function LazyWrapper(value) {\n this.__wrapped__ = value;\n this.__actions__ = [];\n this.__dir__ = 1;\n this.__filtered__ = false;\n this.__iteratees__ = [];\n this.__takeCount__ = MAX_ARRAY_LENGTH;\n this.__views__ = [];\n }\n\n /**\n * Creates a clone of the lazy wrapper object.\n *\n * @private\n * @name clone\n * @memberOf LazyWrapper\n * @returns {Object} Returns the cloned `LazyWrapper` object.\n */\n function lazyClone() {\n var result = new LazyWrapper(this.__wrapped__);\n result.__actions__ = copyArray(this.__actions__);\n result.__dir__ = this.__dir__;\n result.__filtered__ = this.__filtered__;\n result.__iteratees__ = copyArray(this.__iteratees__);\n result.__takeCount__ = this.__takeCount__;\n result.__views__ = copyArray(this.__views__);\n return result;\n }\n\n /**\n * Reverses the direction of lazy iteration.\n *\n * @private\n * @name reverse\n * @memberOf LazyWrapper\n * @returns {Object} Returns the new reversed `LazyWrapper` object.\n */\n function lazyReverse() {\n if (this.__filtered__) {\n var result = new LazyWrapper(this);\n result.__dir__ = -1;\n result.__filtered__ = true;\n } else {\n result = this.clone();\n result.__dir__ *= -1;\n }\n return result;\n }\n\n /**\n * Extracts the unwrapped value from its lazy wrapper.\n *\n * @private\n * @name value\n * @memberOf LazyWrapper\n * @returns {*} Returns the unwrapped value.\n */\n function lazyValue() {\n var array = this.__wrapped__.value(),\n dir = this.__dir__,\n isArr = isArray(array),\n isRight = dir < 0,\n arrLength = isArr ? array.length : 0,\n view = getView(0, arrLength, this.__views__),\n start = view.start,\n end = view.end,\n length = end - start,\n index = isRight ? end : (start - 1),\n iteratees = this.__iteratees__,\n iterLength = iteratees.length,\n resIndex = 0,\n takeCount = nativeMin(length, this.__takeCount__);\n\n if (!isArr || (!isRight && arrLength == length && takeCount == length)) {\n return baseWrapperValue(array, this.__actions__);\n }\n var result = [];\n\n outer:\n while (length-- && resIndex < takeCount) {\n index += dir;\n\n var iterIndex = -1,\n value = array[index];\n\n while (++iterIndex < iterLength) {\n var data = iteratees[iterIndex],\n iteratee = data.iteratee,\n type = data.type,\n computed = iteratee(value);\n\n if (type == LAZY_MAP_FLAG) {\n value = computed;\n } else if (!computed) {\n if (type == LAZY_FILTER_FLAG) {\n continue outer;\n } else {\n break outer;\n }\n }\n }\n result[resIndex++] = value;\n }\n return result;\n }\n\n // Ensure `LazyWrapper` is an instance of `baseLodash`.\n LazyWrapper.prototype = baseCreate(baseLodash.prototype);\n LazyWrapper.prototype.constructor = LazyWrapper;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a hash object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\n function Hash(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n }\n\n /**\n * Removes all key-value entries from the hash.\n *\n * @private\n * @name clear\n * @memberOf Hash\n */\n function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }\n\n /**\n * Removes `key` and its value from the hash.\n *\n * @private\n * @name delete\n * @memberOf Hash\n * @param {Object} hash The hash to modify.\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\n function hashDelete(key) {\n var result = this.has(key) && delete this.__data__[key];\n this.size -= result ? 1 : 0;\n return result;\n }\n\n /**\n * Gets the hash value for `key`.\n *\n * @private\n * @name get\n * @memberOf Hash\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\n function hashGet(key) {\n var data = this.__data__;\n if (nativeCreate) {\n var result = data[key];\n return result === HASH_UNDEFINED ? undefined : result;\n }\n return hasOwnProperty.call(data, key) ? data[key] : undefined;\n }\n\n /**\n * Checks if a hash value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Hash\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function hashHas(key) {\n var data = this.__data__;\n return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);\n }\n\n /**\n * Sets the hash `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Hash\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the hash instance.\n */\n function hashSet(key, value) {\n var data = this.__data__;\n this.size += this.has(key) ? 0 : 1;\n data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;\n return this;\n }\n\n // Add methods to `Hash`.\n Hash.prototype.clear = hashClear;\n Hash.prototype['delete'] = hashDelete;\n Hash.prototype.get = hashGet;\n Hash.prototype.has = hashHas;\n Hash.prototype.set = hashSet;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates an list cache object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\n function ListCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n }\n\n /**\n * Removes all key-value entries from the list cache.\n *\n * @private\n * @name clear\n * @memberOf ListCache\n */\n function listCacheClear() {\n this.__data__ = [];\n this.size = 0;\n }\n\n /**\n * Removes `key` and its value from the list cache.\n *\n * @private\n * @name delete\n * @memberOf ListCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\n function listCacheDelete(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n return false;\n }\n var lastIndex = data.length - 1;\n if (index == lastIndex) {\n data.pop();\n } else {\n splice.call(data, index, 1);\n }\n --this.size;\n return true;\n }\n\n /**\n * Gets the list cache value for `key`.\n *\n * @private\n * @name get\n * @memberOf ListCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\n function listCacheGet(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n return index < 0 ? undefined : data[index][1];\n }\n\n /**\n * Checks if a list cache value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf ListCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function listCacheHas(key) {\n return assocIndexOf(this.__data__, key) > -1;\n }\n\n /**\n * Sets the list cache `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf ListCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the list cache instance.\n */\n function listCacheSet(key, value) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n ++this.size;\n data.push([key, value]);\n } else {\n data[index][1] = value;\n }\n return this;\n }\n\n // Add methods to `ListCache`.\n ListCache.prototype.clear = listCacheClear;\n ListCache.prototype['delete'] = listCacheDelete;\n ListCache.prototype.get = listCacheGet;\n ListCache.prototype.has = listCacheHas;\n ListCache.prototype.set = listCacheSet;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a map cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\n function MapCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n }\n\n /**\n * Removes all key-value entries from the map.\n *\n * @private\n * @name clear\n * @memberOf MapCache\n */\n function mapCacheClear() {\n this.size = 0;\n this.__data__ = {\n 'hash': new Hash,\n 'map': new (Map || ListCache),\n 'string': new Hash\n };\n }\n\n /**\n * Removes `key` and its value from the map.\n *\n * @private\n * @name delete\n * @memberOf MapCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\n function mapCacheDelete(key) {\n var result = getMapData(this, key)['delete'](key);\n this.size -= result ? 1 : 0;\n return result;\n }\n\n /**\n * Gets the map value for `key`.\n *\n * @private\n * @name get\n * @memberOf MapCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\n function mapCacheGet(key) {\n return getMapData(this, key).get(key);\n }\n\n /**\n * Checks if a map value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf MapCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function mapCacheHas(key) {\n return getMapData(this, key).has(key);\n }\n\n /**\n * Sets the map `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf MapCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the map cache instance.\n */\n function mapCacheSet(key, value) {\n var data = getMapData(this, key),\n size = data.size;\n\n data.set(key, value);\n this.size += data.size == size ? 0 : 1;\n return this;\n }\n\n // Add methods to `MapCache`.\n MapCache.prototype.clear = mapCacheClear;\n MapCache.prototype['delete'] = mapCacheDelete;\n MapCache.prototype.get = mapCacheGet;\n MapCache.prototype.has = mapCacheHas;\n MapCache.prototype.set = mapCacheSet;\n\n /*------------------------------------------------------------------------*/\n\n /**\n *\n * Creates an array cache object to store unique values.\n *\n * @private\n * @constructor\n * @param {Array} [values] The values to cache.\n */\n function SetCache(values) {\n var index = -1,\n length = values == null ? 0 : values.length;\n\n this.__data__ = new MapCache;\n while (++index < length) {\n this.add(values[index]);\n }\n }\n\n /**\n * Adds `value` to the array cache.\n *\n * @private\n * @name add\n * @memberOf SetCache\n * @alias push\n * @param {*} value The value to cache.\n * @returns {Object} Returns the cache instance.\n */\n function setCacheAdd(value) {\n this.__data__.set(value, HASH_UNDEFINED);\n return this;\n }\n\n /**\n * Checks if `value` is in the array cache.\n *\n * @private\n * @name has\n * @memberOf SetCache\n * @param {*} value The value to search for.\n * @returns {number} Returns `true` if `value` is found, else `false`.\n */\n function setCacheHas(value) {\n return this.__data__.has(value);\n }\n\n // Add methods to `SetCache`.\n SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;\n SetCache.prototype.has = setCacheHas;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a stack cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\n function Stack(entries) {\n var data = this.__data__ = new ListCache(entries);\n this.size = data.size;\n }\n\n /**\n * Removes all key-value entries from the stack.\n *\n * @private\n * @name clear\n * @memberOf Stack\n */\n function stackClear() {\n this.__data__ = new ListCache;\n this.size = 0;\n }\n\n /**\n * Removes `key` and its value from the stack.\n *\n * @private\n * @name delete\n * @memberOf Stack\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\n function stackDelete(key) {\n var data = this.__data__,\n result = data['delete'](key);\n\n this.size = data.size;\n return result;\n }\n\n /**\n * Gets the stack value for `key`.\n *\n * @private\n * @name get\n * @memberOf Stack\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\n function stackGet(key) {\n return this.__data__.get(key);\n }\n\n /**\n * Checks if a stack value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Stack\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function stackHas(key) {\n return this.__data__.has(key);\n }\n\n /**\n * Sets the stack `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Stack\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the stack cache instance.\n */\n function stackSet(key, value) {\n var data = this.__data__;\n if (data instanceof ListCache) {\n var pairs = data.__data__;\n if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {\n pairs.push([key, value]);\n this.size = ++data.size;\n return this;\n }\n data = this.__data__ = new MapCache(pairs);\n }\n data.set(key, value);\n this.size = data.size;\n return this;\n }\n\n // Add methods to `Stack`.\n Stack.prototype.clear = stackClear;\n Stack.prototype['delete'] = stackDelete;\n Stack.prototype.get = stackGet;\n Stack.prototype.has = stackHas;\n Stack.prototype.set = stackSet;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates an array of the enumerable property names of the array-like `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @param {boolean} inherited Specify returning inherited property names.\n * @returns {Array} Returns the array of property names.\n */\n function arrayLikeKeys(value, inherited) {\n var isArr = isArray(value),\n isArg = !isArr && isArguments(value),\n isBuff = !isArr && !isArg && isBuffer(value),\n isType = !isArr && !isArg && !isBuff && isTypedArray(value),\n skipIndexes = isArr || isArg || isBuff || isType,\n result = skipIndexes ? baseTimes(value.length, String) : [],\n length = result.length;\n\n for (var key in value) {\n if ((inherited || hasOwnProperty.call(value, key)) &&\n !(skipIndexes && (\n // Safari 9 has enumerable `arguments.length` in strict mode.\n key == 'length' ||\n // Node.js 0.10 has enumerable non-index properties on buffers.\n (isBuff && (key == 'offset' || key == 'parent')) ||\n // PhantomJS 2 has enumerable non-index properties on typed arrays.\n (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||\n // Skip index properties.\n isIndex(key, length)\n ))) {\n result.push(key);\n }\n }\n return result;\n }\n\n /**\n * A specialized version of `_.sample` for arrays.\n *\n * @private\n * @param {Array} array The array to sample.\n * @returns {*} Returns the random element.\n */\n function arraySample(array) {\n var length = array.length;\n return length ? array[baseRandom(0, length - 1)] : undefined;\n }\n\n /**\n * A specialized version of `_.sampleSize` for arrays.\n *\n * @private\n * @param {Array} array The array to sample.\n * @param {number} n The number of elements to sample.\n * @returns {Array} Returns the random elements.\n */\n function arraySampleSize(array, n) {\n return shuffleSelf(copyArray(array), baseClamp(n, 0, array.length));\n }\n\n /**\n * A specialized version of `_.shuffle` for arrays.\n *\n * @private\n * @param {Array} array The array to shuffle.\n * @returns {Array} Returns the new shuffled array.\n */\n function arrayShuffle(array) {\n return shuffleSelf(copyArray(array));\n }\n\n /**\n * This function is like `assignValue` except that it doesn't assign\n * `undefined` values.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\n function assignMergeValue(object, key, value) {\n if ((value !== undefined && !eq(object[key], value)) ||\n (value === undefined && !(key in object))) {\n baseAssignValue(object, key, value);\n }\n }\n\n /**\n * Assigns `value` to `key` of `object` if the existing value is not equivalent\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\n function assignValue(object, key, value) {\n var objValue = object[key];\n if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||\n (value === undefined && !(key in object))) {\n baseAssignValue(object, key, value);\n }\n }\n\n /**\n * Gets the index at which the `key` is found in `array` of key-value pairs.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} key The key to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function assocIndexOf(array, key) {\n var length = array.length;\n while (length--) {\n if (eq(array[length][0], key)) {\n return length;\n }\n }\n return -1;\n }\n\n /**\n * Aggregates elements of `collection` on `accumulator` with keys transformed\n * by `iteratee` and values set by `setter`.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} setter The function to set `accumulator` values.\n * @param {Function} iteratee The iteratee to transform keys.\n * @param {Object} accumulator The initial aggregated object.\n * @returns {Function} Returns `accumulator`.\n */\n function baseAggregator(collection, setter, iteratee, accumulator) {\n baseEach(collection, function(value, key, collection) {\n setter(accumulator, value, iteratee(value), collection);\n });\n return accumulator;\n }\n\n /**\n * The base implementation of `_.assign` without support for multiple sources\n * or `customizer` functions.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @returns {Object} Returns `object`.\n */\n function baseAssign(object, source) {\n return object && copyObject(source, keys(source), object);\n }\n\n /**\n * The base implementation of `_.assignIn` without support for multiple sources\n * or `customizer` functions.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @returns {Object} Returns `object`.\n */\n function baseAssignIn(object, source) {\n return object && copyObject(source, keysIn(source), object);\n }\n\n /**\n * The base implementation of `assignValue` and `assignMergeValue` without\n * value checks.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\n function baseAssignValue(object, key, value) {\n if (key == '__proto__' && defineProperty) {\n defineProperty(object, key, {\n 'configurable': true,\n 'enumerable': true,\n 'value': value,\n 'writable': true\n });\n } else {\n object[key] = value;\n }\n }\n\n /**\n * The base implementation of `_.at` without support for individual paths.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {string[]} paths The property paths to pick.\n * @returns {Array} Returns the picked elements.\n */\n function baseAt(object, paths) {\n var index = -1,\n length = paths.length,\n result = Array(length),\n skip = object == null;\n\n while (++index < length) {\n result[index] = skip ? undefined : get(object, paths[index]);\n }\n return result;\n }\n\n /**\n * The base implementation of `_.clamp` which doesn't coerce arguments.\n *\n * @private\n * @param {number} number The number to clamp.\n * @param {number} [lower] The lower bound.\n * @param {number} upper The upper bound.\n * @returns {number} Returns the clamped number.\n */\n function baseClamp(number, lower, upper) {\n if (number === number) {\n if (upper !== undefined) {\n number = number <= upper ? number : upper;\n }\n if (lower !== undefined) {\n number = number >= lower ? number : lower;\n }\n }\n return number;\n }\n\n /**\n * The base implementation of `_.clone` and `_.cloneDeep` which tracks\n * traversed objects.\n *\n * @private\n * @param {*} value The value to clone.\n * @param {boolean} bitmask The bitmask flags.\n * 1 - Deep clone\n * 2 - Flatten inherited properties\n * 4 - Clone symbols\n * @param {Function} [customizer] The function to customize cloning.\n * @param {string} [key] The key of `value`.\n * @param {Object} [object] The parent object of `value`.\n * @param {Object} [stack] Tracks traversed objects and their clone counterparts.\n * @returns {*} Returns the cloned value.\n */\n function baseClone(value, bitmask, customizer, key, object, stack) {\n var result,\n isDeep = bitmask & CLONE_DEEP_FLAG,\n isFlat = bitmask & CLONE_FLAT_FLAG,\n isFull = bitmask & CLONE_SYMBOLS_FLAG;\n\n if (customizer) {\n result = object ? customizer(value, key, object, stack) : customizer(value);\n }\n if (result !== undefined) {\n return result;\n }\n if (!isObject(value)) {\n return value;\n }\n var isArr = isArray(value);\n if (isArr) {\n result = initCloneArray(value);\n if (!isDeep) {\n return copyArray(value, result);\n }\n } else {\n var tag = getTag(value),\n isFunc = tag == funcTag || tag == genTag;\n\n if (isBuffer(value)) {\n return cloneBuffer(value, isDeep);\n }\n if (tag == objectTag || tag == argsTag || (isFunc && !object)) {\n result = (isFlat || isFunc) ? {} : initCloneObject(value);\n if (!isDeep) {\n return isFlat\n ? copySymbolsIn(value, baseAssignIn(result, value))\n : copySymbols(value, baseAssign(result, value));\n }\n } else {\n if (!cloneableTags[tag]) {\n return object ? value : {};\n }\n result = initCloneByTag(value, tag, isDeep);\n }\n }\n // Check for circular references and return its corresponding clone.\n stack || (stack = new Stack);\n var stacked = stack.get(value);\n if (stacked) {\n return stacked;\n }\n stack.set(value, result);\n\n if (isSet(value)) {\n value.forEach(function(subValue) {\n result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));\n });\n\n return result;\n }\n\n if (isMap(value)) {\n value.forEach(function(subValue, key) {\n result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));\n });\n\n return result;\n }\n\n var keysFunc = isFull\n ? (isFlat ? getAllKeysIn : getAllKeys)\n : (isFlat ? keysIn : keys);\n\n var props = isArr ? undefined : keysFunc(value);\n arrayEach(props || value, function(subValue, key) {\n if (props) {\n key = subValue;\n subValue = value[key];\n }\n // Recursively populate clone (susceptible to call stack limits).\n assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));\n });\n return result;\n }\n\n /**\n * The base implementation of `_.conforms` which doesn't clone `source`.\n *\n * @private\n * @param {Object} source The object of property predicates to conform to.\n * @returns {Function} Returns the new spec function.\n */\n function baseConforms(source) {\n var props = keys(source);\n return function(object) {\n return baseConformsTo(object, source, props);\n };\n }\n\n /**\n * The base implementation of `_.conformsTo` which accepts `props` to check.\n *\n * @private\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property predicates to conform to.\n * @returns {boolean} Returns `true` if `object` conforms, else `false`.\n */\n function baseConformsTo(object, source, props) {\n var length = props.length;\n if (object == null) {\n return !length;\n }\n object = Object(object);\n while (length--) {\n var key = props[length],\n predicate = source[key],\n value = object[key];\n\n if ((value === undefined && !(key in object)) || !predicate(value)) {\n return false;\n }\n }\n return true;\n }\n\n /**\n * The base implementation of `_.delay` and `_.defer` which accepts `args`\n * to provide to `func`.\n *\n * @private\n * @param {Function} func The function to delay.\n * @param {number} wait The number of milliseconds to delay invocation.\n * @param {Array} args The arguments to provide to `func`.\n * @returns {number|Object} Returns the timer id or timeout object.\n */\n function baseDelay(func, wait, args) {\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n return setTimeout(function() { func.apply(undefined, args); }, wait);\n }\n\n /**\n * The base implementation of methods like `_.difference` without support\n * for excluding multiple arrays or iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Array} values The values to exclude.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of filtered values.\n */\n function baseDifference(array, values, iteratee, comparator) {\n var index = -1,\n includes = arrayIncludes,\n isCommon = true,\n length = array.length,\n result = [],\n valuesLength = values.length;\n\n if (!length) {\n return result;\n }\n if (iteratee) {\n values = arrayMap(values, baseUnary(iteratee));\n }\n if (comparator) {\n includes = arrayIncludesWith;\n isCommon = false;\n }\n else if (values.length >= LARGE_ARRAY_SIZE) {\n includes = cacheHas;\n isCommon = false;\n values = new SetCache(values);\n }\n outer:\n while (++index < length) {\n var value = array[index],\n computed = iteratee == null ? value : iteratee(value);\n\n value = (comparator || value !== 0) ? value : 0;\n if (isCommon && computed === computed) {\n var valuesIndex = valuesLength;\n while (valuesIndex--) {\n if (values[valuesIndex] === computed) {\n continue outer;\n }\n }\n result.push(value);\n }\n else if (!includes(values, computed, comparator)) {\n result.push(value);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.forEach` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n */\n var baseEach = createBaseEach(baseForOwn);\n\n /**\n * The base implementation of `_.forEachRight` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n */\n var baseEachRight = createBaseEach(baseForOwnRight, true);\n\n /**\n * The base implementation of `_.every` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if all elements pass the predicate check,\n * else `false`\n */\n function baseEvery(collection, predicate) {\n var result = true;\n baseEach(collection, function(value, index, collection) {\n result = !!predicate(value, index, collection);\n return result;\n });\n return result;\n }\n\n /**\n * The base implementation of methods like `_.max` and `_.min` which accepts a\n * `comparator` to determine the extremum value.\n *\n * @private\n * @param {Array} array The array to iterate over.\n * @param {Function} iteratee The iteratee invoked per iteration.\n * @param {Function} comparator The comparator used to compare values.\n * @returns {*} Returns the extremum value.\n */\n function baseExtremum(array, iteratee, comparator) {\n var index = -1,\n length = array.length;\n\n while (++index < length) {\n var value = array[index],\n current = iteratee(value);\n\n if (current != null && (computed === undefined\n ? (current === current && !isSymbol(current))\n : comparator(current, computed)\n )) {\n var computed = current,\n result = value;\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.fill` without an iteratee call guard.\n *\n * @private\n * @param {Array} array The array to fill.\n * @param {*} value The value to fill `array` with.\n * @param {number} [start=0] The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns `array`.\n */\n function baseFill(array, value, start, end) {\n var length = array.length;\n\n start = toInteger(start);\n if (start < 0) {\n start = -start > length ? 0 : (length + start);\n }\n end = (end === undefined || end > length) ? length : toInteger(end);\n if (end < 0) {\n end += length;\n }\n end = start > end ? 0 : toLength(end);\n while (start < end) {\n array[start++] = value;\n }\n return array;\n }\n\n /**\n * The base implementation of `_.filter` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\n function baseFilter(collection, predicate) {\n var result = [];\n baseEach(collection, function(value, index, collection) {\n if (predicate(value, index, collection)) {\n result.push(value);\n }\n });\n return result;\n }\n\n /**\n * The base implementation of `_.flatten` with support for restricting flattening.\n *\n * @private\n * @param {Array} array The array to flatten.\n * @param {number} depth The maximum recursion depth.\n * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.\n * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.\n * @param {Array} [result=[]] The initial result value.\n * @returns {Array} Returns the new flattened array.\n */\n function baseFlatten(array, depth, predicate, isStrict, result) {\n var index = -1,\n length = array.length;\n\n predicate || (predicate = isFlattenable);\n result || (result = []);\n\n while (++index < length) {\n var value = array[index];\n if (depth > 0 && predicate(value)) {\n if (depth > 1) {\n // Recursively flatten arrays (susceptible to call stack limits).\n baseFlatten(value, depth - 1, predicate, isStrict, result);\n } else {\n arrayPush(result, value);\n }\n } else if (!isStrict) {\n result[result.length] = value;\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `baseForOwn` which iterates over `object`\n * properties returned by `keysFunc` and invokes `iteratee` for each property.\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @returns {Object} Returns `object`.\n */\n var baseFor = createBaseFor();\n\n /**\n * This function is like `baseFor` except that it iterates over properties\n * in the opposite order.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @returns {Object} Returns `object`.\n */\n var baseForRight = createBaseFor(true);\n\n /**\n * The base implementation of `_.forOwn` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Object} Returns `object`.\n */\n function baseForOwn(object, iteratee) {\n return object && baseFor(object, iteratee, keys);\n }\n\n /**\n * The base implementation of `_.forOwnRight` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Object} Returns `object`.\n */\n function baseForOwnRight(object, iteratee) {\n return object && baseForRight(object, iteratee, keys);\n }\n\n /**\n * The base implementation of `_.functions` which creates an array of\n * `object` function property names filtered from `props`.\n *\n * @private\n * @param {Object} object The object to inspect.\n * @param {Array} props The property names to filter.\n * @returns {Array} Returns the function names.\n */\n function baseFunctions(object, props) {\n return arrayFilter(props, function(key) {\n return isFunction(object[key]);\n });\n }\n\n /**\n * The base implementation of `_.get` without support for default values.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @returns {*} Returns the resolved value.\n */\n function baseGet(object, path) {\n path = castPath(path, object);\n\n var index = 0,\n length = path.length;\n\n while (object != null && index < length) {\n object = object[toKey(path[index++])];\n }\n return (index && index == length) ? object : undefined;\n }\n\n /**\n * The base implementation of `getAllKeys` and `getAllKeysIn` which uses\n * `keysFunc` and `symbolsFunc` to get the enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @param {Function} symbolsFunc The function to get the symbols of `object`.\n * @returns {Array} Returns the array of property names and symbols.\n */\n function baseGetAllKeys(object, keysFunc, symbolsFunc) {\n var result = keysFunc(object);\n return isArray(object) ? result : arrayPush(result, symbolsFunc(object));\n }\n\n /**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\n function baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n }\n\n /**\n * The base implementation of `_.gt` which doesn't coerce arguments.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is greater than `other`,\n * else `false`.\n */\n function baseGt(value, other) {\n return value > other;\n }\n\n /**\n * The base implementation of `_.has` without support for deep paths.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {Array|string} key The key to check.\n * @returns {boolean} Returns `true` if `key` exists, else `false`.\n */\n function baseHas(object, key) {\n return object != null && hasOwnProperty.call(object, key);\n }\n\n /**\n * The base implementation of `_.hasIn` without support for deep paths.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {Array|string} key The key to check.\n * @returns {boolean} Returns `true` if `key` exists, else `false`.\n */\n function baseHasIn(object, key) {\n return object != null && key in Object(object);\n }\n\n /**\n * The base implementation of `_.inRange` which doesn't coerce arguments.\n *\n * @private\n * @param {number} number The number to check.\n * @param {number} start The start of the range.\n * @param {number} end The end of the range.\n * @returns {boolean} Returns `true` if `number` is in the range, else `false`.\n */\n function baseInRange(number, start, end) {\n return number >= nativeMin(start, end) && number < nativeMax(start, end);\n }\n\n /**\n * The base implementation of methods like `_.intersection`, without support\n * for iteratee shorthands, that accepts an array of arrays to inspect.\n *\n * @private\n * @param {Array} arrays The arrays to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of shared values.\n */\n function baseIntersection(arrays, iteratee, comparator) {\n var includes = comparator ? arrayIncludesWith : arrayIncludes,\n length = arrays[0].length,\n othLength = arrays.length,\n othIndex = othLength,\n caches = Array(othLength),\n maxLength = Infinity,\n result = [];\n\n while (othIndex--) {\n var array = arrays[othIndex];\n if (othIndex && iteratee) {\n array = arrayMap(array, baseUnary(iteratee));\n }\n maxLength = nativeMin(array.length, maxLength);\n caches[othIndex] = !comparator && (iteratee || (length >= 120 && array.length >= 120))\n ? new SetCache(othIndex && array)\n : undefined;\n }\n array = arrays[0];\n\n var index = -1,\n seen = caches[0];\n\n outer:\n while (++index < length && result.length < maxLength) {\n var value = array[index],\n computed = iteratee ? iteratee(value) : value;\n\n value = (comparator || value !== 0) ? value : 0;\n if (!(seen\n ? cacheHas(seen, computed)\n : includes(result, computed, comparator)\n )) {\n othIndex = othLength;\n while (--othIndex) {\n var cache = caches[othIndex];\n if (!(cache\n ? cacheHas(cache, computed)\n : includes(arrays[othIndex], computed, comparator))\n ) {\n continue outer;\n }\n }\n if (seen) {\n seen.push(computed);\n }\n result.push(value);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.invert` and `_.invertBy` which inverts\n * `object` with values transformed by `iteratee` and set by `setter`.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} setter The function to set `accumulator` values.\n * @param {Function} iteratee The iteratee to transform values.\n * @param {Object} accumulator The initial inverted object.\n * @returns {Function} Returns `accumulator`.\n */\n function baseInverter(object, setter, iteratee, accumulator) {\n baseForOwn(object, function(value, key, object) {\n setter(accumulator, iteratee(value), key, object);\n });\n return accumulator;\n }\n\n /**\n * The base implementation of `_.invoke` without support for individual\n * method arguments.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the method to invoke.\n * @param {Array} args The arguments to invoke the method with.\n * @returns {*} Returns the result of the invoked method.\n */\n function baseInvoke(object, path, args) {\n path = castPath(path, object);\n object = parent(object, path);\n var func = object == null ? object : object[toKey(last(path))];\n return func == null ? undefined : apply(func, object, args);\n }\n\n /**\n * The base implementation of `_.isArguments`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n */\n function baseIsArguments(value) {\n return isObjectLike(value) && baseGetTag(value) == argsTag;\n }\n\n /**\n * The base implementation of `_.isArrayBuffer` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array buffer, else `false`.\n */\n function baseIsArrayBuffer(value) {\n return isObjectLike(value) && baseGetTag(value) == arrayBufferTag;\n }\n\n /**\n * The base implementation of `_.isDate` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a date object, else `false`.\n */\n function baseIsDate(value) {\n return isObjectLike(value) && baseGetTag(value) == dateTag;\n }\n\n /**\n * The base implementation of `_.isEqual` which supports partial comparisons\n * and tracks traversed objects.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @param {boolean} bitmask The bitmask flags.\n * 1 - Unordered comparison\n * 2 - Partial comparison\n * @param {Function} [customizer] The function to customize comparisons.\n * @param {Object} [stack] Tracks traversed `value` and `other` objects.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n */\n function baseIsEqual(value, other, bitmask, customizer, stack) {\n if (value === other) {\n return true;\n }\n if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {\n return value !== value && other !== other;\n }\n return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);\n }\n\n /**\n * A specialized version of `baseIsEqual` for arrays and objects which performs\n * deep comparisons and tracks traversed objects enabling objects with circular\n * references to be compared.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} [stack] Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\n function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {\n var objIsArr = isArray(object),\n othIsArr = isArray(other),\n objTag = objIsArr ? arrayTag : getTag(object),\n othTag = othIsArr ? arrayTag : getTag(other);\n\n objTag = objTag == argsTag ? objectTag : objTag;\n othTag = othTag == argsTag ? objectTag : othTag;\n\n var objIsObj = objTag == objectTag,\n othIsObj = othTag == objectTag,\n isSameTag = objTag == othTag;\n\n if (isSameTag && isBuffer(object)) {\n if (!isBuffer(other)) {\n return false;\n }\n objIsArr = true;\n objIsObj = false;\n }\n if (isSameTag && !objIsObj) {\n stack || (stack = new Stack);\n return (objIsArr || isTypedArray(object))\n ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)\n : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);\n }\n if (!(bitmask & COMPARE_PARTIAL_FLAG)) {\n var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),\n othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');\n\n if (objIsWrapped || othIsWrapped) {\n var objUnwrapped = objIsWrapped ? object.value() : object,\n othUnwrapped = othIsWrapped ? other.value() : other;\n\n stack || (stack = new Stack);\n return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);\n }\n }\n if (!isSameTag) {\n return false;\n }\n stack || (stack = new Stack);\n return equalObjects(object, other, bitmask, customizer, equalFunc, stack);\n }\n\n /**\n * The base implementation of `_.isMap` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a map, else `false`.\n */\n function baseIsMap(value) {\n return isObjectLike(value) && getTag(value) == mapTag;\n }\n\n /**\n * The base implementation of `_.isMatch` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property values to match.\n * @param {Array} matchData The property names, values, and compare flags to match.\n * @param {Function} [customizer] The function to customize comparisons.\n * @returns {boolean} Returns `true` if `object` is a match, else `false`.\n */\n function baseIsMatch(object, source, matchData, customizer) {\n var index = matchData.length,\n length = index,\n noCustomizer = !customizer;\n\n if (object == null) {\n return !length;\n }\n object = Object(object);\n while (index--) {\n var data = matchData[index];\n if ((noCustomizer && data[2])\n ? data[1] !== object[data[0]]\n : !(data[0] in object)\n ) {\n return false;\n }\n }\n while (++index < length) {\n data = matchData[index];\n var key = data[0],\n objValue = object[key],\n srcValue = data[1];\n\n if (noCustomizer && data[2]) {\n if (objValue === undefined && !(key in object)) {\n return false;\n }\n } else {\n var stack = new Stack;\n if (customizer) {\n var result = customizer(objValue, srcValue, key, object, source, stack);\n }\n if (!(result === undefined\n ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack)\n : result\n )) {\n return false;\n }\n }\n }\n return true;\n }\n\n /**\n * The base implementation of `_.isNative` without bad shim checks.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n * else `false`.\n */\n function baseIsNative(value) {\n if (!isObject(value) || isMasked(value)) {\n return false;\n }\n var pattern = isFunction(value) ? reIsNative : reIsHostCtor;\n return pattern.test(toSource(value));\n }\n\n /**\n * The base implementation of `_.isRegExp` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.\n */\n function baseIsRegExp(value) {\n return isObjectLike(value) && baseGetTag(value) == regexpTag;\n }\n\n /**\n * The base implementation of `_.isSet` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a set, else `false`.\n */\n function baseIsSet(value) {\n return isObjectLike(value) && getTag(value) == setTag;\n }\n\n /**\n * The base implementation of `_.isTypedArray` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n */\n function baseIsTypedArray(value) {\n return isObjectLike(value) &&\n isLength(value.length) && !!typedArrayTags[baseGetTag(value)];\n }\n\n /**\n * The base implementation of `_.iteratee`.\n *\n * @private\n * @param {*} [value=_.identity] The value to convert to an iteratee.\n * @returns {Function} Returns the iteratee.\n */\n function baseIteratee(value) {\n // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.\n // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.\n if (typeof value == 'function') {\n return value;\n }\n if (value == null) {\n return identity;\n }\n if (typeof value == 'object') {\n return isArray(value)\n ? baseMatchesProperty(value[0], value[1])\n : baseMatches(value);\n }\n return property(value);\n }\n\n /**\n * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\n function baseKeys(object) {\n if (!isPrototype(object)) {\n return nativeKeys(object);\n }\n var result = [];\n for (var key in Object(object)) {\n if (hasOwnProperty.call(object, key) && key != 'constructor') {\n result.push(key);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\n function baseKeysIn(object) {\n if (!isObject(object)) {\n return nativeKeysIn(object);\n }\n var isProto = isPrototype(object),\n result = [];\n\n for (var key in object) {\n if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {\n result.push(key);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.lt` which doesn't coerce arguments.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is less than `other`,\n * else `false`.\n */\n function baseLt(value, other) {\n return value < other;\n }\n\n /**\n * The base implementation of `_.map` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\n function baseMap(collection, iteratee) {\n var index = -1,\n result = isArrayLike(collection) ? Array(collection.length) : [];\n\n baseEach(collection, function(value, key, collection) {\n result[++index] = iteratee(value, key, collection);\n });\n return result;\n }\n\n /**\n * The base implementation of `_.matches` which doesn't clone `source`.\n *\n * @private\n * @param {Object} source The object of property values to match.\n * @returns {Function} Returns the new spec function.\n */\n function baseMatches(source) {\n var matchData = getMatchData(source);\n if (matchData.length == 1 && matchData[0][2]) {\n return matchesStrictComparable(matchData[0][0], matchData[0][1]);\n }\n return function(object) {\n return object === source || baseIsMatch(object, source, matchData);\n };\n }\n\n /**\n * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.\n *\n * @private\n * @param {string} path The path of the property to get.\n * @param {*} srcValue The value to match.\n * @returns {Function} Returns the new spec function.\n */\n function baseMatchesProperty(path, srcValue) {\n if (isKey(path) && isStrictComparable(srcValue)) {\n return matchesStrictComparable(toKey(path), srcValue);\n }\n return function(object) {\n var objValue = get(object, path);\n return (objValue === undefined && objValue === srcValue)\n ? hasIn(object, path)\n : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);\n };\n }\n\n /**\n * The base implementation of `_.merge` without support for multiple sources.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @param {number} srcIndex The index of `source`.\n * @param {Function} [customizer] The function to customize merged values.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n */\n function baseMerge(object, source, srcIndex, customizer, stack) {\n if (object === source) {\n return;\n }\n baseFor(source, function(srcValue, key) {\n if (isObject(srcValue)) {\n stack || (stack = new Stack);\n baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);\n }\n else {\n var newValue = customizer\n ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)\n : undefined;\n\n if (newValue === undefined) {\n newValue = srcValue;\n }\n assignMergeValue(object, key, newValue);\n }\n }, keysIn);\n }\n\n /**\n * A specialized version of `baseMerge` for arrays and objects which performs\n * deep merges and tracks traversed objects enabling objects with circular\n * references to be merged.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @param {string} key The key of the value to merge.\n * @param {number} srcIndex The index of `source`.\n * @param {Function} mergeFunc The function to merge values.\n * @param {Function} [customizer] The function to customize assigned values.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n */\n function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {\n var objValue = safeGet(object, key),\n srcValue = safeGet(source, key),\n stacked = stack.get(srcValue);\n\n if (stacked) {\n assignMergeValue(object, key, stacked);\n return;\n }\n var newValue = customizer\n ? customizer(objValue, srcValue, (key + ''), object, source, stack)\n : undefined;\n\n var isCommon = newValue === undefined;\n\n if (isCommon) {\n var isArr = isArray(srcValue),\n isBuff = !isArr && isBuffer(srcValue),\n isTyped = !isArr && !isBuff && isTypedArray(srcValue);\n\n newValue = srcValue;\n if (isArr || isBuff || isTyped) {\n if (isArray(objValue)) {\n newValue = objValue;\n }\n else if (isArrayLikeObject(objValue)) {\n newValue = copyArray(objValue);\n }\n else if (isBuff) {\n isCommon = false;\n newValue = cloneBuffer(srcValue, true);\n }\n else if (isTyped) {\n isCommon = false;\n newValue = cloneTypedArray(srcValue, true);\n }\n else {\n newValue = [];\n }\n }\n else if (isPlainObject(srcValue) || isArguments(srcValue)) {\n newValue = objValue;\n if (isArguments(objValue)) {\n newValue = toPlainObject(objValue);\n }\n else if (!isObject(objValue) || (srcIndex && isFunction(objValue))) {\n newValue = initCloneObject(srcValue);\n }\n }\n else {\n isCommon = false;\n }\n }\n if (isCommon) {\n // Recursively merge objects and arrays (susceptible to call stack limits).\n stack.set(srcValue, newValue);\n mergeFunc(newValue, srcValue, srcIndex, customizer, stack);\n stack['delete'](srcValue);\n }\n assignMergeValue(object, key, newValue);\n }\n\n /**\n * The base implementation of `_.nth` which doesn't coerce arguments.\n *\n * @private\n * @param {Array} array The array to query.\n * @param {number} n The index of the element to return.\n * @returns {*} Returns the nth element of `array`.\n */\n function baseNth(array, n) {\n var length = array.length;\n if (!length) {\n return;\n }\n n += n < 0 ? length : 0;\n return isIndex(n, length) ? array[n] : undefined;\n }\n\n /**\n * The base implementation of `_.orderBy` without param guards.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by.\n * @param {string[]} orders The sort orders of `iteratees`.\n * @returns {Array} Returns the new sorted array.\n */\n function baseOrderBy(collection, iteratees, orders) {\n var index = -1;\n iteratees = arrayMap(iteratees.length ? iteratees : [identity], baseUnary(getIteratee()));\n\n var result = baseMap(collection, function(value, key, collection) {\n var criteria = arrayMap(iteratees, function(iteratee) {\n return iteratee(value);\n });\n return { 'criteria': criteria, 'index': ++index, 'value': value };\n });\n\n return baseSortBy(result, function(object, other) {\n return compareMultiple(object, other, orders);\n });\n }\n\n /**\n * The base implementation of `_.pick` without support for individual\n * property identifiers.\n *\n * @private\n * @param {Object} object The source object.\n * @param {string[]} paths The property paths to pick.\n * @returns {Object} Returns the new object.\n */\n function basePick(object, paths) {\n return basePickBy(object, paths, function(value, path) {\n return hasIn(object, path);\n });\n }\n\n /**\n * The base implementation of `_.pickBy` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The source object.\n * @param {string[]} paths The property paths to pick.\n * @param {Function} predicate The function invoked per property.\n * @returns {Object} Returns the new object.\n */\n function basePickBy(object, paths, predicate) {\n var index = -1,\n length = paths.length,\n result = {};\n\n while (++index < length) {\n var path = paths[index],\n value = baseGet(object, path);\n\n if (predicate(value, path)) {\n baseSet(result, castPath(path, object), value);\n }\n }\n return result;\n }\n\n /**\n * A specialized version of `baseProperty` which supports deep paths.\n *\n * @private\n * @param {Array|string} path The path of the property to get.\n * @returns {Function} Returns the new accessor function.\n */\n function basePropertyDeep(path) {\n return function(object) {\n return baseGet(object, path);\n };\n }\n\n /**\n * The base implementation of `_.pullAllBy` without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {Array} values The values to remove.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns `array`.\n */\n function basePullAll(array, values, iteratee, comparator) {\n var indexOf = comparator ? baseIndexOfWith : baseIndexOf,\n index = -1,\n length = values.length,\n seen = array;\n\n if (array === values) {\n values = copyArray(values);\n }\n if (iteratee) {\n seen = arrayMap(array, baseUnary(iteratee));\n }\n while (++index < length) {\n var fromIndex = 0,\n value = values[index],\n computed = iteratee ? iteratee(value) : value;\n\n while ((fromIndex = indexOf(seen, computed, fromIndex, comparator)) > -1) {\n if (seen !== array) {\n splice.call(seen, fromIndex, 1);\n }\n splice.call(array, fromIndex, 1);\n }\n }\n return array;\n }\n\n /**\n * The base implementation of `_.pullAt` without support for individual\n * indexes or capturing the removed elements.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {number[]} indexes The indexes of elements to remove.\n * @returns {Array} Returns `array`.\n */\n function basePullAt(array, indexes) {\n var length = array ? indexes.length : 0,\n lastIndex = length - 1;\n\n while (length--) {\n var index = indexes[length];\n if (length == lastIndex || index !== previous) {\n var previous = index;\n if (isIndex(index)) {\n splice.call(array, index, 1);\n } else {\n baseUnset(array, index);\n }\n }\n }\n return array;\n }\n\n /**\n * The base implementation of `_.random` without support for returning\n * floating-point numbers.\n *\n * @private\n * @param {number} lower The lower bound.\n * @param {number} upper The upper bound.\n * @returns {number} Returns the random number.\n */\n function baseRandom(lower, upper) {\n return lower + nativeFloor(nativeRandom() * (upper - lower + 1));\n }\n\n /**\n * The base implementation of `_.range` and `_.rangeRight` which doesn't\n * coerce arguments.\n *\n * @private\n * @param {number} start The start of the range.\n * @param {number} end The end of the range.\n * @param {number} step The value to increment or decrement by.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Array} Returns the range of numbers.\n */\n function baseRange(start, end, step, fromRight) {\n var index = -1,\n length = nativeMax(nativeCeil((end - start) / (step || 1)), 0),\n result = Array(length);\n\n while (length--) {\n result[fromRight ? length : ++index] = start;\n start += step;\n }\n return result;\n }\n\n /**\n * The base implementation of `_.repeat` which doesn't coerce arguments.\n *\n * @private\n * @param {string} string The string to repeat.\n * @param {number} n The number of times to repeat the string.\n * @returns {string} Returns the repeated string.\n */\n function baseRepeat(string, n) {\n var result = '';\n if (!string || n < 1 || n > MAX_SAFE_INTEGER) {\n return result;\n }\n // Leverage the exponentiation by squaring algorithm for a faster repeat.\n // See https://en.wikipedia.org/wiki/Exponentiation_by_squaring for more details.\n do {\n if (n % 2) {\n result += string;\n }\n n = nativeFloor(n / 2);\n if (n) {\n string += string;\n }\n } while (n);\n\n return result;\n }\n\n /**\n * The base implementation of `_.rest` which doesn't validate or coerce arguments.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @returns {Function} Returns the new function.\n */\n function baseRest(func, start) {\n return setToString(overRest(func, start, identity), func + '');\n }\n\n /**\n * The base implementation of `_.sample`.\n *\n * @private\n * @param {Array|Object} collection The collection to sample.\n * @returns {*} Returns the random element.\n */\n function baseSample(collection) {\n return arraySample(values(collection));\n }\n\n /**\n * The base implementation of `_.sampleSize` without param guards.\n *\n * @private\n * @param {Array|Object} collection The collection to sample.\n * @param {number} n The number of elements to sample.\n * @returns {Array} Returns the random elements.\n */\n function baseSampleSize(collection, n) {\n var array = values(collection);\n return shuffleSelf(array, baseClamp(n, 0, array.length));\n }\n\n /**\n * The base implementation of `_.set`.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {*} value The value to set.\n * @param {Function} [customizer] The function to customize path creation.\n * @returns {Object} Returns `object`.\n */\n function baseSet(object, path, value, customizer) {\n if (!isObject(object)) {\n return object;\n }\n path = castPath(path, object);\n\n var index = -1,\n length = path.length,\n lastIndex = length - 1,\n nested = object;\n\n while (nested != null && ++index < length) {\n var key = toKey(path[index]),\n newValue = value;\n\n if (index != lastIndex) {\n var objValue = nested[key];\n newValue = customizer ? customizer(objValue, key, nested) : undefined;\n if (newValue === undefined) {\n newValue = isObject(objValue)\n ? objValue\n : (isIndex(path[index + 1]) ? [] : {});\n }\n }\n assignValue(nested, key, newValue);\n nested = nested[key];\n }\n return object;\n }\n\n /**\n * The base implementation of `setData` without support for hot loop shorting.\n *\n * @private\n * @param {Function} func The function to associate metadata with.\n * @param {*} data The metadata.\n * @returns {Function} Returns `func`.\n */\n var baseSetData = !metaMap ? identity : function(func, data) {\n metaMap.set(func, data);\n return func;\n };\n\n /**\n * The base implementation of `setToString` without support for hot loop shorting.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\n var baseSetToString = !defineProperty ? identity : function(func, string) {\n return defineProperty(func, 'toString', {\n 'configurable': true,\n 'enumerable': false,\n 'value': constant(string),\n 'writable': true\n });\n };\n\n /**\n * The base implementation of `_.shuffle`.\n *\n * @private\n * @param {Array|Object} collection The collection to shuffle.\n * @returns {Array} Returns the new shuffled array.\n */\n function baseShuffle(collection) {\n return shuffleSelf(values(collection));\n }\n\n /**\n * The base implementation of `_.slice` without an iteratee call guard.\n *\n * @private\n * @param {Array} array The array to slice.\n * @param {number} [start=0] The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns the slice of `array`.\n */\n function baseSlice(array, start, end) {\n var index = -1,\n length = array.length;\n\n if (start < 0) {\n start = -start > length ? 0 : (length + start);\n }\n end = end > length ? length : end;\n if (end < 0) {\n end += length;\n }\n length = start > end ? 0 : ((end - start) >>> 0);\n start >>>= 0;\n\n var result = Array(length);\n while (++index < length) {\n result[index] = array[index + start];\n }\n return result;\n }\n\n /**\n * The base implementation of `_.some` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if any element passes the predicate check,\n * else `false`.\n */\n function baseSome(collection, predicate) {\n var result;\n\n baseEach(collection, function(value, index, collection) {\n result = predicate(value, index, collection);\n return !result;\n });\n return !!result;\n }\n\n /**\n * The base implementation of `_.sortedIndex` and `_.sortedLastIndex` which\n * performs a binary search of `array` to determine the index at which `value`\n * should be inserted into `array` in order to maintain its sort order.\n *\n * @private\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @param {boolean} [retHighest] Specify returning the highest qualified index.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n */\n function baseSortedIndex(array, value, retHighest) {\n var low = 0,\n high = array == null ? low : array.length;\n\n if (typeof value == 'number' && value === value && high <= HALF_MAX_ARRAY_LENGTH) {\n while (low < high) {\n var mid = (low + high) >>> 1,\n computed = array[mid];\n\n if (computed !== null && !isSymbol(computed) &&\n (retHighest ? (computed <= value) : (computed < value))) {\n low = mid + 1;\n } else {\n high = mid;\n }\n }\n return high;\n }\n return baseSortedIndexBy(array, value, identity, retHighest);\n }\n\n /**\n * The base implementation of `_.sortedIndexBy` and `_.sortedLastIndexBy`\n * which invokes `iteratee` for `value` and each element of `array` to compute\n * their sort ranking. The iteratee is invoked with one argument; (value).\n *\n * @private\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @param {Function} iteratee The iteratee invoked per element.\n * @param {boolean} [retHighest] Specify returning the highest qualified index.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n */\n function baseSortedIndexBy(array, value, iteratee, retHighest) {\n value = iteratee(value);\n\n var low = 0,\n high = array == null ? 0 : array.length,\n valIsNaN = value !== value,\n valIsNull = value === null,\n valIsSymbol = isSymbol(value),\n valIsUndefined = value === undefined;\n\n while (low < high) {\n var mid = nativeFloor((low + high) / 2),\n computed = iteratee(array[mid]),\n othIsDefined = computed !== undefined,\n othIsNull = computed === null,\n othIsReflexive = computed === computed,\n othIsSymbol = isSymbol(computed);\n\n if (valIsNaN) {\n var setLow = retHighest || othIsReflexive;\n } else if (valIsUndefined) {\n setLow = othIsReflexive && (retHighest || othIsDefined);\n } else if (valIsNull) {\n setLow = othIsReflexive && othIsDefined && (retHighest || !othIsNull);\n } else if (valIsSymbol) {\n setLow = othIsReflexive && othIsDefined && !othIsNull && (retHighest || !othIsSymbol);\n } else if (othIsNull || othIsSymbol) {\n setLow = false;\n } else {\n setLow = retHighest ? (computed <= value) : (computed < value);\n }\n if (setLow) {\n low = mid + 1;\n } else {\n high = mid;\n }\n }\n return nativeMin(high, MAX_ARRAY_INDEX);\n }\n\n /**\n * The base implementation of `_.sortedUniq` and `_.sortedUniqBy` without\n * support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n */\n function baseSortedUniq(array, iteratee) {\n var index = -1,\n length = array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index],\n computed = iteratee ? iteratee(value) : value;\n\n if (!index || !eq(computed, seen)) {\n var seen = computed;\n result[resIndex++] = value === 0 ? 0 : value;\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.toNumber` which doesn't ensure correct\n * conversions of binary, hexadecimal, or octal string values.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n */\n function baseToNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n return +value;\n }\n\n /**\n * The base implementation of `_.toString` which doesn't convert nullish\n * values to empty strings.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {string} Returns the string.\n */\n function baseToString(value) {\n // Exit early for strings to avoid a performance hit in some environments.\n if (typeof value == 'string') {\n return value;\n }\n if (isArray(value)) {\n // Recursively convert values (susceptible to call stack limits).\n return arrayMap(value, baseToString) + '';\n }\n if (isSymbol(value)) {\n return symbolToString ? symbolToString.call(value) : '';\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n }\n\n /**\n * The base implementation of `_.uniqBy` without support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n */\n function baseUniq(array, iteratee, comparator) {\n var index = -1,\n includes = arrayIncludes,\n length = array.length,\n isCommon = true,\n result = [],\n seen = result;\n\n if (comparator) {\n isCommon = false;\n includes = arrayIncludesWith;\n }\n else if (length >= LARGE_ARRAY_SIZE) {\n var set = iteratee ? null : createSet(array);\n if (set) {\n return setToArray(set);\n }\n isCommon = false;\n includes = cacheHas;\n seen = new SetCache;\n }\n else {\n seen = iteratee ? [] : result;\n }\n outer:\n while (++index < length) {\n var value = array[index],\n computed = iteratee ? iteratee(value) : value;\n\n value = (comparator || value !== 0) ? value : 0;\n if (isCommon && computed === computed) {\n var seenIndex = seen.length;\n while (seenIndex--) {\n if (seen[seenIndex] === computed) {\n continue outer;\n }\n }\n if (iteratee) {\n seen.push(computed);\n }\n result.push(value);\n }\n else if (!includes(seen, computed, comparator)) {\n if (seen !== result) {\n seen.push(computed);\n }\n result.push(value);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.unset`.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {Array|string} path The property path to unset.\n * @returns {boolean} Returns `true` if the property is deleted, else `false`.\n */\n function baseUnset(object, path) {\n path = castPath(path, object);\n object = parent(object, path);\n return object == null || delete object[toKey(last(path))];\n }\n\n /**\n * The base implementation of `_.update`.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to update.\n * @param {Function} updater The function to produce the updated value.\n * @param {Function} [customizer] The function to customize path creation.\n * @returns {Object} Returns `object`.\n */\n function baseUpdate(object, path, updater, customizer) {\n return baseSet(object, path, updater(baseGet(object, path)), customizer);\n }\n\n /**\n * The base implementation of methods like `_.dropWhile` and `_.takeWhile`\n * without support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to query.\n * @param {Function} predicate The function invoked per iteration.\n * @param {boolean} [isDrop] Specify dropping elements instead of taking them.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Array} Returns the slice of `array`.\n */\n function baseWhile(array, predicate, isDrop, fromRight) {\n var length = array.length,\n index = fromRight ? length : -1;\n\n while ((fromRight ? index-- : ++index < length) &&\n predicate(array[index], index, array)) {}\n\n return isDrop\n ? baseSlice(array, (fromRight ? 0 : index), (fromRight ? index + 1 : length))\n : baseSlice(array, (fromRight ? index + 1 : 0), (fromRight ? length : index));\n }\n\n /**\n * The base implementation of `wrapperValue` which returns the result of\n * performing a sequence of actions on the unwrapped `value`, where each\n * successive action is supplied the return value of the previous.\n *\n * @private\n * @param {*} value The unwrapped value.\n * @param {Array} actions Actions to perform to resolve the unwrapped value.\n * @returns {*} Returns the resolved value.\n */\n function baseWrapperValue(value, actions) {\n var result = value;\n if (result instanceof LazyWrapper) {\n result = result.value();\n }\n return arrayReduce(actions, function(result, action) {\n return action.func.apply(action.thisArg, arrayPush([result], action.args));\n }, result);\n }\n\n /**\n * The base implementation of methods like `_.xor`, without support for\n * iteratee shorthands, that accepts an array of arrays to inspect.\n *\n * @private\n * @param {Array} arrays The arrays to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of values.\n */\n function baseXor(arrays, iteratee, comparator) {\n var length = arrays.length;\n if (length < 2) {\n return length ? baseUniq(arrays[0]) : [];\n }\n var index = -1,\n result = Array(length);\n\n while (++index < length) {\n var array = arrays[index],\n othIndex = -1;\n\n while (++othIndex < length) {\n if (othIndex != index) {\n result[index] = baseDifference(result[index] || array, arrays[othIndex], iteratee, comparator);\n }\n }\n }\n return baseUniq(baseFlatten(result, 1), iteratee, comparator);\n }\n\n /**\n * This base implementation of `_.zipObject` which assigns values using `assignFunc`.\n *\n * @private\n * @param {Array} props The property identifiers.\n * @param {Array} values The property values.\n * @param {Function} assignFunc The function to assign values.\n * @returns {Object} Returns the new object.\n */\n function baseZipObject(props, values, assignFunc) {\n var index = -1,\n length = props.length,\n valsLength = values.length,\n result = {};\n\n while (++index < length) {\n var value = index < valsLength ? values[index] : undefined;\n assignFunc(result, props[index], value);\n }\n return result;\n }\n\n /**\n * Casts `value` to an empty array if it's not an array like object.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {Array|Object} Returns the cast array-like object.\n */\n function castArrayLikeObject(value) {\n return isArrayLikeObject(value) ? value : [];\n }\n\n /**\n * Casts `value` to `identity` if it's not a function.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {Function} Returns cast function.\n */\n function castFunction(value) {\n return typeof value == 'function' ? value : identity;\n }\n\n /**\n * Casts `value` to a path array if it's not one.\n *\n * @private\n * @param {*} value The value to inspect.\n * @param {Object} [object] The object to query keys on.\n * @returns {Array} Returns the cast property path array.\n */\n function castPath(value, object) {\n if (isArray(value)) {\n return value;\n }\n return isKey(value, object) ? [value] : stringToPath(toString(value));\n }\n\n /**\n * A `baseRest` alias which can be replaced with `identity` by module\n * replacement plugins.\n *\n * @private\n * @type {Function}\n * @param {Function} func The function to apply a rest parameter to.\n * @returns {Function} Returns the new function.\n */\n var castRest = baseRest;\n\n /**\n * Casts `array` to a slice if it's needed.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {number} start The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns the cast slice.\n */\n function castSlice(array, start, end) {\n var length = array.length;\n end = end === undefined ? length : end;\n return (!start && end >= length) ? array : baseSlice(array, start, end);\n }\n\n /**\n * A simple wrapper around the global [`clearTimeout`](https://mdn.io/clearTimeout).\n *\n * @private\n * @param {number|Object} id The timer id or timeout object of the timer to clear.\n */\n var clearTimeout = ctxClearTimeout || function(id) {\n return root.clearTimeout(id);\n };\n\n /**\n * Creates a clone of `buffer`.\n *\n * @private\n * @param {Buffer} buffer The buffer to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Buffer} Returns the cloned buffer.\n */\n function cloneBuffer(buffer, isDeep) {\n if (isDeep) {\n return buffer.slice();\n }\n var length = buffer.length,\n result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);\n\n buffer.copy(result);\n return result;\n }\n\n /**\n * Creates a clone of `arrayBuffer`.\n *\n * @private\n * @param {ArrayBuffer} arrayBuffer The array buffer to clone.\n * @returns {ArrayBuffer} Returns the cloned array buffer.\n */\n function cloneArrayBuffer(arrayBuffer) {\n var result = new arrayBuffer.constructor(arrayBuffer.byteLength);\n new Uint8Array(result).set(new Uint8Array(arrayBuffer));\n return result;\n }\n\n /**\n * Creates a clone of `dataView`.\n *\n * @private\n * @param {Object} dataView The data view to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned data view.\n */\n function cloneDataView(dataView, isDeep) {\n var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;\n return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);\n }\n\n /**\n * Creates a clone of `regexp`.\n *\n * @private\n * @param {Object} regexp The regexp to clone.\n * @returns {Object} Returns the cloned regexp.\n */\n function cloneRegExp(regexp) {\n var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));\n result.lastIndex = regexp.lastIndex;\n return result;\n }\n\n /**\n * Creates a clone of the `symbol` object.\n *\n * @private\n * @param {Object} symbol The symbol object to clone.\n * @returns {Object} Returns the cloned symbol object.\n */\n function cloneSymbol(symbol) {\n return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};\n }\n\n /**\n * Creates a clone of `typedArray`.\n *\n * @private\n * @param {Object} typedArray The typed array to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned typed array.\n */\n function cloneTypedArray(typedArray, isDeep) {\n var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;\n return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);\n }\n\n /**\n * Compares values to sort them in ascending order.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {number} Returns the sort order indicator for `value`.\n */\n function compareAscending(value, other) {\n if (value !== other) {\n var valIsDefined = value !== undefined,\n valIsNull = value === null,\n valIsReflexive = value === value,\n valIsSymbol = isSymbol(value);\n\n var othIsDefined = other !== undefined,\n othIsNull = other === null,\n othIsReflexive = other === other,\n othIsSymbol = isSymbol(other);\n\n if ((!othIsNull && !othIsSymbol && !valIsSymbol && value > other) ||\n (valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol) ||\n (valIsNull && othIsDefined && othIsReflexive) ||\n (!valIsDefined && othIsReflexive) ||\n !valIsReflexive) {\n return 1;\n }\n if ((!valIsNull && !valIsSymbol && !othIsSymbol && value < other) ||\n (othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol) ||\n (othIsNull && valIsDefined && valIsReflexive) ||\n (!othIsDefined && valIsReflexive) ||\n !othIsReflexive) {\n return -1;\n }\n }\n return 0;\n }\n\n /**\n * Used by `_.orderBy` to compare multiple properties of a value to another\n * and stable sort them.\n *\n * If `orders` is unspecified, all values are sorted in ascending order. Otherwise,\n * specify an order of \"desc\" for descending or \"asc\" for ascending sort order\n * of corresponding values.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {boolean[]|string[]} orders The order to sort by for each property.\n * @returns {number} Returns the sort order indicator for `object`.\n */\n function compareMultiple(object, other, orders) {\n var index = -1,\n objCriteria = object.criteria,\n othCriteria = other.criteria,\n length = objCriteria.length,\n ordersLength = orders.length;\n\n while (++index < length) {\n var result = compareAscending(objCriteria[index], othCriteria[index]);\n if (result) {\n if (index >= ordersLength) {\n return result;\n }\n var order = orders[index];\n return result * (order == 'desc' ? -1 : 1);\n }\n }\n // Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications\n // that causes it, under certain circumstances, to provide the same value for\n // `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247\n // for more details.\n //\n // This also ensures a stable sort in V8 and other engines.\n // See https://bugs.chromium.org/p/v8/issues/detail?id=90 for more details.\n return object.index - other.index;\n }\n\n /**\n * Creates an array that is the composition of partially applied arguments,\n * placeholders, and provided arguments into a single array of arguments.\n *\n * @private\n * @param {Array} args The provided arguments.\n * @param {Array} partials The arguments to prepend to those provided.\n * @param {Array} holders The `partials` placeholder indexes.\n * @params {boolean} [isCurried] Specify composing for a curried function.\n * @returns {Array} Returns the new array of composed arguments.\n */\n function composeArgs(args, partials, holders, isCurried) {\n var argsIndex = -1,\n argsLength = args.length,\n holdersLength = holders.length,\n leftIndex = -1,\n leftLength = partials.length,\n rangeLength = nativeMax(argsLength - holdersLength, 0),\n result = Array(leftLength + rangeLength),\n isUncurried = !isCurried;\n\n while (++leftIndex < leftLength) {\n result[leftIndex] = partials[leftIndex];\n }\n while (++argsIndex < holdersLength) {\n if (isUncurried || argsIndex < argsLength) {\n result[holders[argsIndex]] = args[argsIndex];\n }\n }\n while (rangeLength--) {\n result[leftIndex++] = args[argsIndex++];\n }\n return result;\n }\n\n /**\n * This function is like `composeArgs` except that the arguments composition\n * is tailored for `_.partialRight`.\n *\n * @private\n * @param {Array} args The provided arguments.\n * @param {Array} partials The arguments to append to those provided.\n * @param {Array} holders The `partials` placeholder indexes.\n * @params {boolean} [isCurried] Specify composing for a curried function.\n * @returns {Array} Returns the new array of composed arguments.\n */\n function composeArgsRight(args, partials, holders, isCurried) {\n var argsIndex = -1,\n argsLength = args.length,\n holdersIndex = -1,\n holdersLength = holders.length,\n rightIndex = -1,\n rightLength = partials.length,\n rangeLength = nativeMax(argsLength - holdersLength, 0),\n result = Array(rangeLength + rightLength),\n isUncurried = !isCurried;\n\n while (++argsIndex < rangeLength) {\n result[argsIndex] = args[argsIndex];\n }\n var offset = argsIndex;\n while (++rightIndex < rightLength) {\n result[offset + rightIndex] = partials[rightIndex];\n }\n while (++holdersIndex < holdersLength) {\n if (isUncurried || argsIndex < argsLength) {\n result[offset + holders[holdersIndex]] = args[argsIndex++];\n }\n }\n return result;\n }\n\n /**\n * Copies the values of `source` to `array`.\n *\n * @private\n * @param {Array} source The array to copy values from.\n * @param {Array} [array=[]] The array to copy values to.\n * @returns {Array} Returns `array`.\n */\n function copyArray(source, array) {\n var index = -1,\n length = source.length;\n\n array || (array = Array(length));\n while (++index < length) {\n array[index] = source[index];\n }\n return array;\n }\n\n /**\n * Copies properties of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy properties from.\n * @param {Array} props The property identifiers to copy.\n * @param {Object} [object={}] The object to copy properties to.\n * @param {Function} [customizer] The function to customize copied values.\n * @returns {Object} Returns `object`.\n */\n function copyObject(source, props, object, customizer) {\n var isNew = !object;\n object || (object = {});\n\n var index = -1,\n length = props.length;\n\n while (++index < length) {\n var key = props[index];\n\n var newValue = customizer\n ? customizer(object[key], source[key], key, object, source)\n : undefined;\n\n if (newValue === undefined) {\n newValue = source[key];\n }\n if (isNew) {\n baseAssignValue(object, key, newValue);\n } else {\n assignValue(object, key, newValue);\n }\n }\n return object;\n }\n\n /**\n * Copies own symbols of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy symbols from.\n * @param {Object} [object={}] The object to copy symbols to.\n * @returns {Object} Returns `object`.\n */\n function copySymbols(source, object) {\n return copyObject(source, getSymbols(source), object);\n }\n\n /**\n * Copies own and inherited symbols of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy symbols from.\n * @param {Object} [object={}] The object to copy symbols to.\n * @returns {Object} Returns `object`.\n */\n function copySymbolsIn(source, object) {\n return copyObject(source, getSymbolsIn(source), object);\n }\n\n /**\n * Creates a function like `_.groupBy`.\n *\n * @private\n * @param {Function} setter The function to set accumulator values.\n * @param {Function} [initializer] The accumulator object initializer.\n * @returns {Function} Returns the new aggregator function.\n */\n function createAggregator(setter, initializer) {\n return function(collection, iteratee) {\n var func = isArray(collection) ? arrayAggregator : baseAggregator,\n accumulator = initializer ? initializer() : {};\n\n return func(collection, setter, getIteratee(iteratee, 2), accumulator);\n };\n }\n\n /**\n * Creates a function like `_.assign`.\n *\n * @private\n * @param {Function} assigner The function to assign values.\n * @returns {Function} Returns the new assigner function.\n */\n function createAssigner(assigner) {\n return baseRest(function(object, sources) {\n var index = -1,\n length = sources.length,\n customizer = length > 1 ? sources[length - 1] : undefined,\n guard = length > 2 ? sources[2] : undefined;\n\n customizer = (assigner.length > 3 && typeof customizer == 'function')\n ? (length--, customizer)\n : undefined;\n\n if (guard && isIterateeCall(sources[0], sources[1], guard)) {\n customizer = length < 3 ? undefined : customizer;\n length = 1;\n }\n object = Object(object);\n while (++index < length) {\n var source = sources[index];\n if (source) {\n assigner(object, source, index, customizer);\n }\n }\n return object;\n });\n }\n\n /**\n * Creates a `baseEach` or `baseEachRight` function.\n *\n * @private\n * @param {Function} eachFunc The function to iterate over a collection.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\n function createBaseEach(eachFunc, fromRight) {\n return function(collection, iteratee) {\n if (collection == null) {\n return collection;\n }\n if (!isArrayLike(collection)) {\n return eachFunc(collection, iteratee);\n }\n var length = collection.length,\n index = fromRight ? length : -1,\n iterable = Object(collection);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (iteratee(iterable[index], index, iterable) === false) {\n break;\n }\n }\n return collection;\n };\n }\n\n /**\n * Creates a base function for methods like `_.forIn` and `_.forOwn`.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\n function createBaseFor(fromRight) {\n return function(object, iteratee, keysFunc) {\n var index = -1,\n iterable = Object(object),\n props = keysFunc(object),\n length = props.length;\n\n while (length--) {\n var key = props[fromRight ? length : ++index];\n if (iteratee(iterable[key], key, iterable) === false) {\n break;\n }\n }\n return object;\n };\n }\n\n /**\n * Creates a function that wraps `func` to invoke it with the optional `this`\n * binding of `thisArg`.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @param {*} [thisArg] The `this` binding of `func`.\n * @returns {Function} Returns the new wrapped function.\n */\n function createBind(func, bitmask, thisArg) {\n var isBind = bitmask & WRAP_BIND_FLAG,\n Ctor = createCtor(func);\n\n function wrapper() {\n var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;\n return fn.apply(isBind ? thisArg : this, arguments);\n }\n return wrapper;\n }\n\n /**\n * Creates a function like `_.lowerFirst`.\n *\n * @private\n * @param {string} methodName The name of the `String` case method to use.\n * @returns {Function} Returns the new case function.\n */\n function createCaseFirst(methodName) {\n return function(string) {\n string = toString(string);\n\n var strSymbols = hasUnicode(string)\n ? stringToArray(string)\n : undefined;\n\n var chr = strSymbols\n ? strSymbols[0]\n : string.charAt(0);\n\n var trailing = strSymbols\n ? castSlice(strSymbols, 1).join('')\n : string.slice(1);\n\n return chr[methodName]() + trailing;\n };\n }\n\n /**\n * Creates a function like `_.camelCase`.\n *\n * @private\n * @param {Function} callback The function to combine each word.\n * @returns {Function} Returns the new compounder function.\n */\n function createCompounder(callback) {\n return function(string) {\n return arrayReduce(words(deburr(string).replace(reApos, '')), callback, '');\n };\n }\n\n /**\n * Creates a function that produces an instance of `Ctor` regardless of\n * whether it was invoked as part of a `new` expression or by `call` or `apply`.\n *\n * @private\n * @param {Function} Ctor The constructor to wrap.\n * @returns {Function} Returns the new wrapped function.\n */\n function createCtor(Ctor) {\n return function() {\n // Use a `switch` statement to work with class constructors. See\n // http://ecma-international.org/ecma-262/7.0/#sec-ecmascript-function-objects-call-thisargument-argumentslist\n // for more details.\n var args = arguments;\n switch (args.length) {\n case 0: return new Ctor;\n case 1: return new Ctor(args[0]);\n case 2: return new Ctor(args[0], args[1]);\n case 3: return new Ctor(args[0], args[1], args[2]);\n case 4: return new Ctor(args[0], args[1], args[2], args[3]);\n case 5: return new Ctor(args[0], args[1], args[2], args[3], args[4]);\n case 6: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5]);\n case 7: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5], args[6]);\n }\n var thisBinding = baseCreate(Ctor.prototype),\n result = Ctor.apply(thisBinding, args);\n\n // Mimic the constructor's `return` behavior.\n // See https://es5.github.io/#x13.2.2 for more details.\n return isObject(result) ? result : thisBinding;\n };\n }\n\n /**\n * Creates a function that wraps `func` to enable currying.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @param {number} arity The arity of `func`.\n * @returns {Function} Returns the new wrapped function.\n */\n function createCurry(func, bitmask, arity) {\n var Ctor = createCtor(func);\n\n function wrapper() {\n var length = arguments.length,\n args = Array(length),\n index = length,\n placeholder = getHolder(wrapper);\n\n while (index--) {\n args[index] = arguments[index];\n }\n var holders = (length < 3 && args[0] !== placeholder && args[length - 1] !== placeholder)\n ? []\n : replaceHolders(args, placeholder);\n\n length -= holders.length;\n if (length < arity) {\n return createRecurry(\n func, bitmask, createHybrid, wrapper.placeholder, undefined,\n args, holders, undefined, undefined, arity - length);\n }\n var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;\n return apply(fn, this, args);\n }\n return wrapper;\n }\n\n /**\n * Creates a `_.find` or `_.findLast` function.\n *\n * @private\n * @param {Function} findIndexFunc The function to find the collection index.\n * @returns {Function} Returns the new find function.\n */\n function createFind(findIndexFunc) {\n return function(collection, predicate, fromIndex) {\n var iterable = Object(collection);\n if (!isArrayLike(collection)) {\n var iteratee = getIteratee(predicate, 3);\n collection = keys(collection);\n predicate = function(key) { return iteratee(iterable[key], key, iterable); };\n }\n var index = findIndexFunc(collection, predicate, fromIndex);\n return index > -1 ? iterable[iteratee ? collection[index] : index] : undefined;\n };\n }\n\n /**\n * Creates a `_.flow` or `_.flowRight` function.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new flow function.\n */\n function createFlow(fromRight) {\n return flatRest(function(funcs) {\n var length = funcs.length,\n index = length,\n prereq = LodashWrapper.prototype.thru;\n\n if (fromRight) {\n funcs.reverse();\n }\n while (index--) {\n var func = funcs[index];\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n if (prereq && !wrapper && getFuncName(func) == 'wrapper') {\n var wrapper = new LodashWrapper([], true);\n }\n }\n index = wrapper ? index : length;\n while (++index < length) {\n func = funcs[index];\n\n var funcName = getFuncName(func),\n data = funcName == 'wrapper' ? getData(func) : undefined;\n\n if (data && isLaziable(data[0]) &&\n data[1] == (WRAP_ARY_FLAG | WRAP_CURRY_FLAG | WRAP_PARTIAL_FLAG | WRAP_REARG_FLAG) &&\n !data[4].length && data[9] == 1\n ) {\n wrapper = wrapper[getFuncName(data[0])].apply(wrapper, data[3]);\n } else {\n wrapper = (func.length == 1 && isLaziable(func))\n ? wrapper[funcName]()\n : wrapper.thru(func);\n }\n }\n return function() {\n var args = arguments,\n value = args[0];\n\n if (wrapper && args.length == 1 && isArray(value)) {\n return wrapper.plant(value).value();\n }\n var index = 0,\n result = length ? funcs[index].apply(this, args) : value;\n\n while (++index < length) {\n result = funcs[index].call(this, result);\n }\n return result;\n };\n });\n }\n\n /**\n * Creates a function that wraps `func` to invoke it with optional `this`\n * binding of `thisArg`, partial application, and currying.\n *\n * @private\n * @param {Function|string} func The function or method name to wrap.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @param {*} [thisArg] The `this` binding of `func`.\n * @param {Array} [partials] The arguments to prepend to those provided to\n * the new function.\n * @param {Array} [holders] The `partials` placeholder indexes.\n * @param {Array} [partialsRight] The arguments to append to those provided\n * to the new function.\n * @param {Array} [holdersRight] The `partialsRight` placeholder indexes.\n * @param {Array} [argPos] The argument positions of the new function.\n * @param {number} [ary] The arity cap of `func`.\n * @param {number} [arity] The arity of `func`.\n * @returns {Function} Returns the new wrapped function.\n */\n function createHybrid(func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary, arity) {\n var isAry = bitmask & WRAP_ARY_FLAG,\n isBind = bitmask & WRAP_BIND_FLAG,\n isBindKey = bitmask & WRAP_BIND_KEY_FLAG,\n isCurried = bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG),\n isFlip = bitmask & WRAP_FLIP_FLAG,\n Ctor = isBindKey ? undefined : createCtor(func);\n\n function wrapper() {\n var length = arguments.length,\n args = Array(length),\n index = length;\n\n while (index--) {\n args[index] = arguments[index];\n }\n if (isCurried) {\n var placeholder = getHolder(wrapper),\n holdersCount = countHolders(args, placeholder);\n }\n if (partials) {\n args = composeArgs(args, partials, holders, isCurried);\n }\n if (partialsRight) {\n args = composeArgsRight(args, partialsRight, holdersRight, isCurried);\n }\n length -= holdersCount;\n if (isCurried && length < arity) {\n var newHolders = replaceHolders(args, placeholder);\n return createRecurry(\n func, bitmask, createHybrid, wrapper.placeholder, thisArg,\n args, newHolders, argPos, ary, arity - length\n );\n }\n var thisBinding = isBind ? thisArg : this,\n fn = isBindKey ? thisBinding[func] : func;\n\n length = args.length;\n if (argPos) {\n args = reorder(args, argPos);\n } else if (isFlip && length > 1) {\n args.reverse();\n }\n if (isAry && ary < length) {\n args.length = ary;\n }\n if (this && this !== root && this instanceof wrapper) {\n fn = Ctor || createCtor(fn);\n }\n return fn.apply(thisBinding, args);\n }\n return wrapper;\n }\n\n /**\n * Creates a function like `_.invertBy`.\n *\n * @private\n * @param {Function} setter The function to set accumulator values.\n * @param {Function} toIteratee The function to resolve iteratees.\n * @returns {Function} Returns the new inverter function.\n */\n function createInverter(setter, toIteratee) {\n return function(object, iteratee) {\n return baseInverter(object, setter, toIteratee(iteratee), {});\n };\n }\n\n /**\n * Creates a function that performs a mathematical operation on two values.\n *\n * @private\n * @param {Function} operator The function to perform the operation.\n * @param {number} [defaultValue] The value used for `undefined` arguments.\n * @returns {Function} Returns the new mathematical operation function.\n */\n function createMathOperation(operator, defaultValue) {\n return function(value, other) {\n var result;\n if (value === undefined && other === undefined) {\n return defaultValue;\n }\n if (value !== undefined) {\n result = value;\n }\n if (other !== undefined) {\n if (result === undefined) {\n return other;\n }\n if (typeof value == 'string' || typeof other == 'string') {\n value = baseToString(value);\n other = baseToString(other);\n } else {\n value = baseToNumber(value);\n other = baseToNumber(other);\n }\n result = operator(value, other);\n }\n return result;\n };\n }\n\n /**\n * Creates a function like `_.over`.\n *\n * @private\n * @param {Function} arrayFunc The function to iterate over iteratees.\n * @returns {Function} Returns the new over function.\n */\n function createOver(arrayFunc) {\n return flatRest(function(iteratees) {\n iteratees = arrayMap(iteratees, baseUnary(getIteratee()));\n return baseRest(function(args) {\n var thisArg = this;\n return arrayFunc(iteratees, function(iteratee) {\n return apply(iteratee, thisArg, args);\n });\n });\n });\n }\n\n /**\n * Creates the padding for `string` based on `length`. The `chars` string\n * is truncated if the number of characters exceeds `length`.\n *\n * @private\n * @param {number} length The padding length.\n * @param {string} [chars=' '] The string used as padding.\n * @returns {string} Returns the padding for `string`.\n */\n function createPadding(length, chars) {\n chars = chars === undefined ? ' ' : baseToString(chars);\n\n var charsLength = chars.length;\n if (charsLength < 2) {\n return charsLength ? baseRepeat(chars, length) : chars;\n }\n var result = baseRepeat(chars, nativeCeil(length / stringSize(chars)));\n return hasUnicode(chars)\n ? castSlice(stringToArray(result), 0, length).join('')\n : result.slice(0, length);\n }\n\n /**\n * Creates a function that wraps `func` to invoke it with the `this` binding\n * of `thisArg` and `partials` prepended to the arguments it receives.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {Array} partials The arguments to prepend to those provided to\n * the new function.\n * @returns {Function} Returns the new wrapped function.\n */\n function createPartial(func, bitmask, thisArg, partials) {\n var isBind = bitmask & WRAP_BIND_FLAG,\n Ctor = createCtor(func);\n\n function wrapper() {\n var argsIndex = -1,\n argsLength = arguments.length,\n leftIndex = -1,\n leftLength = partials.length,\n args = Array(leftLength + argsLength),\n fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;\n\n while (++leftIndex < leftLength) {\n args[leftIndex] = partials[leftIndex];\n }\n while (argsLength--) {\n args[leftIndex++] = arguments[++argsIndex];\n }\n return apply(fn, isBind ? thisArg : this, args);\n }\n return wrapper;\n }\n\n /**\n * Creates a `_.range` or `_.rangeRight` function.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new range function.\n */\n function createRange(fromRight) {\n return function(start, end, step) {\n if (step && typeof step != 'number' && isIterateeCall(start, end, step)) {\n end = step = undefined;\n }\n // Ensure the sign of `-0` is preserved.\n start = toFinite(start);\n if (end === undefined) {\n end = start;\n start = 0;\n } else {\n end = toFinite(end);\n }\n step = step === undefined ? (start < end ? 1 : -1) : toFinite(step);\n return baseRange(start, end, step, fromRight);\n };\n }\n\n /**\n * Creates a function that performs a relational operation on two values.\n *\n * @private\n * @param {Function} operator The function to perform the operation.\n * @returns {Function} Returns the new relational operation function.\n */\n function createRelationalOperation(operator) {\n return function(value, other) {\n if (!(typeof value == 'string' && typeof other == 'string')) {\n value = toNumber(value);\n other = toNumber(other);\n }\n return operator(value, other);\n };\n }\n\n /**\n * Creates a function that wraps `func` to continue currying.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @param {Function} wrapFunc The function to create the `func` wrapper.\n * @param {*} placeholder The placeholder value.\n * @param {*} [thisArg] The `this` binding of `func`.\n * @param {Array} [partials] The arguments to prepend to those provided to\n * the new function.\n * @param {Array} [holders] The `partials` placeholder indexes.\n * @param {Array} [argPos] The argument positions of the new function.\n * @param {number} [ary] The arity cap of `func`.\n * @param {number} [arity] The arity of `func`.\n * @returns {Function} Returns the new wrapped function.\n */\n function createRecurry(func, bitmask, wrapFunc, placeholder, thisArg, partials, holders, argPos, ary, arity) {\n var isCurry = bitmask & WRAP_CURRY_FLAG,\n newHolders = isCurry ? holders : undefined,\n newHoldersRight = isCurry ? undefined : holders,\n newPartials = isCurry ? partials : undefined,\n newPartialsRight = isCurry ? undefined : partials;\n\n bitmask |= (isCurry ? WRAP_PARTIAL_FLAG : WRAP_PARTIAL_RIGHT_FLAG);\n bitmask &= ~(isCurry ? WRAP_PARTIAL_RIGHT_FLAG : WRAP_PARTIAL_FLAG);\n\n if (!(bitmask & WRAP_CURRY_BOUND_FLAG)) {\n bitmask &= ~(WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG);\n }\n var newData = [\n func, bitmask, thisArg, newPartials, newHolders, newPartialsRight,\n newHoldersRight, argPos, ary, arity\n ];\n\n var result = wrapFunc.apply(undefined, newData);\n if (isLaziable(func)) {\n setData(result, newData);\n }\n result.placeholder = placeholder;\n return setWrapToString(result, func, bitmask);\n }\n\n /**\n * Creates a function like `_.round`.\n *\n * @private\n * @param {string} methodName The name of the `Math` method to use when rounding.\n * @returns {Function} Returns the new round function.\n */\n function createRound(methodName) {\n var func = Math[methodName];\n return function(number, precision) {\n number = toNumber(number);\n precision = precision == null ? 0 : nativeMin(toInteger(precision), 292);\n if (precision) {\n // Shift with exponential notation to avoid floating-point issues.\n // See [MDN](https://mdn.io/round#Examples) for more details.\n var pair = (toString(number) + 'e').split('e'),\n value = func(pair[0] + 'e' + (+pair[1] + precision));\n\n pair = (toString(value) + 'e').split('e');\n return +(pair[0] + 'e' + (+pair[1] - precision));\n }\n return func(number);\n };\n }\n\n /**\n * Creates a set object of `values`.\n *\n * @private\n * @param {Array} values The values to add to the set.\n * @returns {Object} Returns the new set.\n */\n var createSet = !(Set && (1 / setToArray(new Set([,-0]))[1]) == INFINITY) ? noop : function(values) {\n return new Set(values);\n };\n\n /**\n * Creates a `_.toPairs` or `_.toPairsIn` function.\n *\n * @private\n * @param {Function} keysFunc The function to get the keys of a given object.\n * @returns {Function} Returns the new pairs function.\n */\n function createToPairs(keysFunc) {\n return function(object) {\n var tag = getTag(object);\n if (tag == mapTag) {\n return mapToArray(object);\n }\n if (tag == setTag) {\n return setToPairs(object);\n }\n return baseToPairs(object, keysFunc(object));\n };\n }\n\n /**\n * Creates a function that either curries or invokes `func` with optional\n * `this` binding and partially applied arguments.\n *\n * @private\n * @param {Function|string} func The function or method name to wrap.\n * @param {number} bitmask The bitmask flags.\n * 1 - `_.bind`\n * 2 - `_.bindKey`\n * 4 - `_.curry` or `_.curryRight` of a bound function\n * 8 - `_.curry`\n * 16 - `_.curryRight`\n * 32 - `_.partial`\n * 64 - `_.partialRight`\n * 128 - `_.rearg`\n * 256 - `_.ary`\n * 512 - `_.flip`\n * @param {*} [thisArg] The `this` binding of `func`.\n * @param {Array} [partials] The arguments to be partially applied.\n * @param {Array} [holders] The `partials` placeholder indexes.\n * @param {Array} [argPos] The argument positions of the new function.\n * @param {number} [ary] The arity cap of `func`.\n * @param {number} [arity] The arity of `func`.\n * @returns {Function} Returns the new wrapped function.\n */\n function createWrap(func, bitmask, thisArg, partials, holders, argPos, ary, arity) {\n var isBindKey = bitmask & WRAP_BIND_KEY_FLAG;\n if (!isBindKey && typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n var length = partials ? partials.length : 0;\n if (!length) {\n bitmask &= ~(WRAP_PARTIAL_FLAG | WRAP_PARTIAL_RIGHT_FLAG);\n partials = holders = undefined;\n }\n ary = ary === undefined ? ary : nativeMax(toInteger(ary), 0);\n arity = arity === undefined ? arity : toInteger(arity);\n length -= holders ? holders.length : 0;\n\n if (bitmask & WRAP_PARTIAL_RIGHT_FLAG) {\n var partialsRight = partials,\n holdersRight = holders;\n\n partials = holders = undefined;\n }\n var data = isBindKey ? undefined : getData(func);\n\n var newData = [\n func, bitmask, thisArg, partials, holders, partialsRight, holdersRight,\n argPos, ary, arity\n ];\n\n if (data) {\n mergeData(newData, data);\n }\n func = newData[0];\n bitmask = newData[1];\n thisArg = newData[2];\n partials = newData[3];\n holders = newData[4];\n arity = newData[9] = newData[9] === undefined\n ? (isBindKey ? 0 : func.length)\n : nativeMax(newData[9] - length, 0);\n\n if (!arity && bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG)) {\n bitmask &= ~(WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG);\n }\n if (!bitmask || bitmask == WRAP_BIND_FLAG) {\n var result = createBind(func, bitmask, thisArg);\n } else if (bitmask == WRAP_CURRY_FLAG || bitmask == WRAP_CURRY_RIGHT_FLAG) {\n result = createCurry(func, bitmask, arity);\n } else if ((bitmask == WRAP_PARTIAL_FLAG || bitmask == (WRAP_BIND_FLAG | WRAP_PARTIAL_FLAG)) && !holders.length) {\n result = createPartial(func, bitmask, thisArg, partials);\n } else {\n result = createHybrid.apply(undefined, newData);\n }\n var setter = data ? baseSetData : setData;\n return setWrapToString(setter(result, newData), func, bitmask);\n }\n\n /**\n * Used by `_.defaults` to customize its `_.assignIn` use to assign properties\n * of source objects to the destination object for all destination properties\n * that resolve to `undefined`.\n *\n * @private\n * @param {*} objValue The destination value.\n * @param {*} srcValue The source value.\n * @param {string} key The key of the property to assign.\n * @param {Object} object The parent object of `objValue`.\n * @returns {*} Returns the value to assign.\n */\n function customDefaultsAssignIn(objValue, srcValue, key, object) {\n if (objValue === undefined ||\n (eq(objValue, objectProto[key]) && !hasOwnProperty.call(object, key))) {\n return srcValue;\n }\n return objValue;\n }\n\n /**\n * Used by `_.defaultsDeep` to customize its `_.merge` use to merge source\n * objects into destination objects that are passed thru.\n *\n * @private\n * @param {*} objValue The destination value.\n * @param {*} srcValue The source value.\n * @param {string} key The key of the property to merge.\n * @param {Object} object The parent object of `objValue`.\n * @param {Object} source The parent object of `srcValue`.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n * @returns {*} Returns the value to assign.\n */\n function customDefaultsMerge(objValue, srcValue, key, object, source, stack) {\n if (isObject(objValue) && isObject(srcValue)) {\n // Recursively merge objects and arrays (susceptible to call stack limits).\n stack.set(srcValue, objValue);\n baseMerge(objValue, srcValue, undefined, customDefaultsMerge, stack);\n stack['delete'](srcValue);\n }\n return objValue;\n }\n\n /**\n * Used by `_.omit` to customize its `_.cloneDeep` use to only clone plain\n * objects.\n *\n * @private\n * @param {*} value The value to inspect.\n * @param {string} key The key of the property to inspect.\n * @returns {*} Returns the uncloned value or `undefined` to defer cloning to `_.cloneDeep`.\n */\n function customOmitClone(value) {\n return isPlainObject(value) ? undefined : value;\n }\n\n /**\n * A specialized version of `baseIsEqualDeep` for arrays with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Array} array The array to compare.\n * @param {Array} other The other array to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `array` and `other` objects.\n * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.\n */\n function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n arrLength = array.length,\n othLength = other.length;\n\n if (arrLength != othLength && !(isPartial && othLength > arrLength)) {\n return false;\n }\n // Assume cyclic values are equal.\n var stacked = stack.get(array);\n if (stacked && stack.get(other)) {\n return stacked == other;\n }\n var index = -1,\n result = true,\n seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;\n\n stack.set(array, other);\n stack.set(other, array);\n\n // Ignore non-index properties.\n while (++index < arrLength) {\n var arrValue = array[index],\n othValue = other[index];\n\n if (customizer) {\n var compared = isPartial\n ? customizer(othValue, arrValue, index, other, array, stack)\n : customizer(arrValue, othValue, index, array, other, stack);\n }\n if (compared !== undefined) {\n if (compared) {\n continue;\n }\n result = false;\n break;\n }\n // Recursively compare arrays (susceptible to call stack limits).\n if (seen) {\n if (!arraySome(other, function(othValue, othIndex) {\n if (!cacheHas(seen, othIndex) &&\n (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {\n return seen.push(othIndex);\n }\n })) {\n result = false;\n break;\n }\n } else if (!(\n arrValue === othValue ||\n equalFunc(arrValue, othValue, bitmask, customizer, stack)\n )) {\n result = false;\n break;\n }\n }\n stack['delete'](array);\n stack['delete'](other);\n return result;\n }\n\n /**\n * A specialized version of `baseIsEqualDeep` for comparing objects of\n * the same `toStringTag`.\n *\n * **Note:** This function only supports comparing values with tags of\n * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {string} tag The `toStringTag` of the objects to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\n function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {\n switch (tag) {\n case dataViewTag:\n if ((object.byteLength != other.byteLength) ||\n (object.byteOffset != other.byteOffset)) {\n return false;\n }\n object = object.buffer;\n other = other.buffer;\n\n case arrayBufferTag:\n if ((object.byteLength != other.byteLength) ||\n !equalFunc(new Uint8Array(object), new Uint8Array(other))) {\n return false;\n }\n return true;\n\n case boolTag:\n case dateTag:\n case numberTag:\n // Coerce booleans to `1` or `0` and dates to milliseconds.\n // Invalid dates are coerced to `NaN`.\n return eq(+object, +other);\n\n case errorTag:\n return object.name == other.name && object.message == other.message;\n\n case regexpTag:\n case stringTag:\n // Coerce regexes to strings and treat strings, primitives and objects,\n // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring\n // for more details.\n return object == (other + '');\n\n case mapTag:\n var convert = mapToArray;\n\n case setTag:\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG;\n convert || (convert = setToArray);\n\n if (object.size != other.size && !isPartial) {\n return false;\n }\n // Assume cyclic values are equal.\n var stacked = stack.get(object);\n if (stacked) {\n return stacked == other;\n }\n bitmask |= COMPARE_UNORDERED_FLAG;\n\n // Recursively compare objects (susceptible to call stack limits).\n stack.set(object, other);\n var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);\n stack['delete'](object);\n return result;\n\n case symbolTag:\n if (symbolValueOf) {\n return symbolValueOf.call(object) == symbolValueOf.call(other);\n }\n }\n return false;\n }\n\n /**\n * A specialized version of `baseIsEqualDeep` for objects with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\n function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n objProps = getAllKeys(object),\n objLength = objProps.length,\n othProps = getAllKeys(other),\n othLength = othProps.length;\n\n if (objLength != othLength && !isPartial) {\n return false;\n }\n var index = objLength;\n while (index--) {\n var key = objProps[index];\n if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {\n return false;\n }\n }\n // Assume cyclic values are equal.\n var stacked = stack.get(object);\n if (stacked && stack.get(other)) {\n return stacked == other;\n }\n var result = true;\n stack.set(object, other);\n stack.set(other, object);\n\n var skipCtor = isPartial;\n while (++index < objLength) {\n key = objProps[index];\n var objValue = object[key],\n othValue = other[key];\n\n if (customizer) {\n var compared = isPartial\n ? customizer(othValue, objValue, key, other, object, stack)\n : customizer(objValue, othValue, key, object, other, stack);\n }\n // Recursively compare objects (susceptible to call stack limits).\n if (!(compared === undefined\n ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))\n : compared\n )) {\n result = false;\n break;\n }\n skipCtor || (skipCtor = key == 'constructor');\n }\n if (result && !skipCtor) {\n var objCtor = object.constructor,\n othCtor = other.constructor;\n\n // Non `Object` object instances with different constructors are not equal.\n if (objCtor != othCtor &&\n ('constructor' in object && 'constructor' in other) &&\n !(typeof objCtor == 'function' && objCtor instanceof objCtor &&\n typeof othCtor == 'function' && othCtor instanceof othCtor)) {\n result = false;\n }\n }\n stack['delete'](object);\n stack['delete'](other);\n return result;\n }\n\n /**\n * A specialized version of `baseRest` which flattens the rest array.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @returns {Function} Returns the new function.\n */\n function flatRest(func) {\n return setToString(overRest(func, undefined, flatten), func + '');\n }\n\n /**\n * Creates an array of own enumerable property names and symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\n function getAllKeys(object) {\n return baseGetAllKeys(object, keys, getSymbols);\n }\n\n /**\n * Creates an array of own and inherited enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\n function getAllKeysIn(object) {\n return baseGetAllKeys(object, keysIn, getSymbolsIn);\n }\n\n /**\n * Gets metadata for `func`.\n *\n * @private\n * @param {Function} func The function to query.\n * @returns {*} Returns the metadata for `func`.\n */\n var getData = !metaMap ? noop : function(func) {\n return metaMap.get(func);\n };\n\n /**\n * Gets the name of `func`.\n *\n * @private\n * @param {Function} func The function to query.\n * @returns {string} Returns the function name.\n */\n function getFuncName(func) {\n var result = (func.name + ''),\n array = realNames[result],\n length = hasOwnProperty.call(realNames, result) ? array.length : 0;\n\n while (length--) {\n var data = array[length],\n otherFunc = data.func;\n if (otherFunc == null || otherFunc == func) {\n return data.name;\n }\n }\n return result;\n }\n\n /**\n * Gets the argument placeholder value for `func`.\n *\n * @private\n * @param {Function} func The function to inspect.\n * @returns {*} Returns the placeholder value.\n */\n function getHolder(func) {\n var object = hasOwnProperty.call(lodash, 'placeholder') ? lodash : func;\n return object.placeholder;\n }\n\n /**\n * Gets the appropriate \"iteratee\" function. If `_.iteratee` is customized,\n * this function returns the custom method, otherwise it returns `baseIteratee`.\n * If arguments are provided, the chosen function is invoked with them and\n * its result is returned.\n *\n * @private\n * @param {*} [value] The value to convert to an iteratee.\n * @param {number} [arity] The arity of the created iteratee.\n * @returns {Function} Returns the chosen function or its result.\n */\n function getIteratee() {\n var result = lodash.iteratee || iteratee;\n result = result === iteratee ? baseIteratee : result;\n return arguments.length ? result(arguments[0], arguments[1]) : result;\n }\n\n /**\n * Gets the data for `map`.\n *\n * @private\n * @param {Object} map The map to query.\n * @param {string} key The reference key.\n * @returns {*} Returns the map data.\n */\n function getMapData(map, key) {\n var data = map.__data__;\n return isKeyable(key)\n ? data[typeof key == 'string' ? 'string' : 'hash']\n : data.map;\n }\n\n /**\n * Gets the property names, values, and compare flags of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the match data of `object`.\n */\n function getMatchData(object) {\n var result = keys(object),\n length = result.length;\n\n while (length--) {\n var key = result[length],\n value = object[key];\n\n result[length] = [key, value, isStrictComparable(value)];\n }\n return result;\n }\n\n /**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\n function getNative(object, key) {\n var value = getValue(object, key);\n return baseIsNative(value) ? value : undefined;\n }\n\n /**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\n function getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n }\n\n /**\n * Creates an array of the own enumerable symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\n var getSymbols = !nativeGetSymbols ? stubArray : function(object) {\n if (object == null) {\n return [];\n }\n object = Object(object);\n return arrayFilter(nativeGetSymbols(object), function(symbol) {\n return propertyIsEnumerable.call(object, symbol);\n });\n };\n\n /**\n * Creates an array of the own and inherited enumerable symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\n var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {\n var result = [];\n while (object) {\n arrayPush(result, getSymbols(object));\n object = getPrototype(object);\n }\n return result;\n };\n\n /**\n * Gets the `toStringTag` of `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\n var getTag = baseGetTag;\n\n // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.\n if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||\n (Map && getTag(new Map) != mapTag) ||\n (Promise && getTag(Promise.resolve()) != promiseTag) ||\n (Set && getTag(new Set) != setTag) ||\n (WeakMap && getTag(new WeakMap) != weakMapTag)) {\n getTag = function(value) {\n var result = baseGetTag(value),\n Ctor = result == objectTag ? value.constructor : undefined,\n ctorString = Ctor ? toSource(Ctor) : '';\n\n if (ctorString) {\n switch (ctorString) {\n case dataViewCtorString: return dataViewTag;\n case mapCtorString: return mapTag;\n case promiseCtorString: return promiseTag;\n case setCtorString: return setTag;\n case weakMapCtorString: return weakMapTag;\n }\n }\n return result;\n };\n }\n\n /**\n * Gets the view, applying any `transforms` to the `start` and `end` positions.\n *\n * @private\n * @param {number} start The start of the view.\n * @param {number} end The end of the view.\n * @param {Array} transforms The transformations to apply to the view.\n * @returns {Object} Returns an object containing the `start` and `end`\n * positions of the view.\n */\n function getView(start, end, transforms) {\n var index = -1,\n length = transforms.length;\n\n while (++index < length) {\n var data = transforms[index],\n size = data.size;\n\n switch (data.type) {\n case 'drop': start += size; break;\n case 'dropRight': end -= size; break;\n case 'take': end = nativeMin(end, start + size); break;\n case 'takeRight': start = nativeMax(start, end - size); break;\n }\n }\n return { 'start': start, 'end': end };\n }\n\n /**\n * Extracts wrapper details from the `source` body comment.\n *\n * @private\n * @param {string} source The source to inspect.\n * @returns {Array} Returns the wrapper details.\n */\n function getWrapDetails(source) {\n var match = source.match(reWrapDetails);\n return match ? match[1].split(reSplitDetails) : [];\n }\n\n /**\n * Checks if `path` exists on `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @param {Function} hasFunc The function to check properties.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n */\n function hasPath(object, path, hasFunc) {\n path = castPath(path, object);\n\n var index = -1,\n length = path.length,\n result = false;\n\n while (++index < length) {\n var key = toKey(path[index]);\n if (!(result = object != null && hasFunc(object, key))) {\n break;\n }\n object = object[key];\n }\n if (result || ++index != length) {\n return result;\n }\n length = object == null ? 0 : object.length;\n return !!length && isLength(length) && isIndex(key, length) &&\n (isArray(object) || isArguments(object));\n }\n\n /**\n * Initializes an array clone.\n *\n * @private\n * @param {Array} array The array to clone.\n * @returns {Array} Returns the initialized clone.\n */\n function initCloneArray(array) {\n var length = array.length,\n result = new array.constructor(length);\n\n // Add properties assigned by `RegExp#exec`.\n if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {\n result.index = array.index;\n result.input = array.input;\n }\n return result;\n }\n\n /**\n * Initializes an object clone.\n *\n * @private\n * @param {Object} object The object to clone.\n * @returns {Object} Returns the initialized clone.\n */\n function initCloneObject(object) {\n return (typeof object.constructor == 'function' && !isPrototype(object))\n ? baseCreate(getPrototype(object))\n : {};\n }\n\n /**\n * Initializes an object clone based on its `toStringTag`.\n *\n * **Note:** This function only supports cloning values with tags of\n * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.\n *\n * @private\n * @param {Object} object The object to clone.\n * @param {string} tag The `toStringTag` of the object to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the initialized clone.\n */\n function initCloneByTag(object, tag, isDeep) {\n var Ctor = object.constructor;\n switch (tag) {\n case arrayBufferTag:\n return cloneArrayBuffer(object);\n\n case boolTag:\n case dateTag:\n return new Ctor(+object);\n\n case dataViewTag:\n return cloneDataView(object, isDeep);\n\n case float32Tag: case float64Tag:\n case int8Tag: case int16Tag: case int32Tag:\n case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag:\n return cloneTypedArray(object, isDeep);\n\n case mapTag:\n return new Ctor;\n\n case numberTag:\n case stringTag:\n return new Ctor(object);\n\n case regexpTag:\n return cloneRegExp(object);\n\n case setTag:\n return new Ctor;\n\n case symbolTag:\n return cloneSymbol(object);\n }\n }\n\n /**\n * Inserts wrapper `details` in a comment at the top of the `source` body.\n *\n * @private\n * @param {string} source The source to modify.\n * @returns {Array} details The details to insert.\n * @returns {string} Returns the modified source.\n */\n function insertWrapDetails(source, details) {\n var length = details.length;\n if (!length) {\n return source;\n }\n var lastIndex = length - 1;\n details[lastIndex] = (length > 1 ? '& ' : '') + details[lastIndex];\n details = details.join(length > 2 ? ', ' : ' ');\n return source.replace(reWrapComment, '{\\n/* [wrapped with ' + details + '] */\\n');\n }\n\n /**\n * Checks if `value` is a flattenable `arguments` object or array.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.\n */\n function isFlattenable(value) {\n return isArray(value) || isArguments(value) ||\n !!(spreadableSymbol && value && value[spreadableSymbol]);\n }\n\n /**\n * Checks if `value` is a valid array-like index.\n *\n * @private\n * @param {*} value The value to check.\n * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.\n * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.\n */\n function isIndex(value, length) {\n var type = typeof value;\n length = length == null ? MAX_SAFE_INTEGER : length;\n\n return !!length &&\n (type == 'number' ||\n (type != 'symbol' && reIsUint.test(value))) &&\n (value > -1 && value % 1 == 0 && value < length);\n }\n\n /**\n * Checks if the given arguments are from an iteratee call.\n *\n * @private\n * @param {*} value The potential iteratee value argument.\n * @param {*} index The potential iteratee index or key argument.\n * @param {*} object The potential iteratee object argument.\n * @returns {boolean} Returns `true` if the arguments are from an iteratee call,\n * else `false`.\n */\n function isIterateeCall(value, index, object) {\n if (!isObject(object)) {\n return false;\n }\n var type = typeof index;\n if (type == 'number'\n ? (isArrayLike(object) && isIndex(index, object.length))\n : (type == 'string' && index in object)\n ) {\n return eq(object[index], value);\n }\n return false;\n }\n\n /**\n * Checks if `value` is a property name and not a property path.\n *\n * @private\n * @param {*} value The value to check.\n * @param {Object} [object] The object to query keys on.\n * @returns {boolean} Returns `true` if `value` is a property name, else `false`.\n */\n function isKey(value, object) {\n if (isArray(value)) {\n return false;\n }\n var type = typeof value;\n if (type == 'number' || type == 'symbol' || type == 'boolean' ||\n value == null || isSymbol(value)) {\n return true;\n }\n return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||\n (object != null && value in Object(object));\n }\n\n /**\n * Checks if `value` is suitable for use as unique object key.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is suitable, else `false`.\n */\n function isKeyable(value) {\n var type = typeof value;\n return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')\n ? (value !== '__proto__')\n : (value === null);\n }\n\n /**\n * Checks if `func` has a lazy counterpart.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` has a lazy counterpart,\n * else `false`.\n */\n function isLaziable(func) {\n var funcName = getFuncName(func),\n other = lodash[funcName];\n\n if (typeof other != 'function' || !(funcName in LazyWrapper.prototype)) {\n return false;\n }\n if (func === other) {\n return true;\n }\n var data = getData(other);\n return !!data && func === data[0];\n }\n\n /**\n * Checks if `func` has its source masked.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` is masked, else `false`.\n */\n function isMasked(func) {\n return !!maskSrcKey && (maskSrcKey in func);\n }\n\n /**\n * Checks if `func` is capable of being masked.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `func` is maskable, else `false`.\n */\n var isMaskable = coreJsData ? isFunction : stubFalse;\n\n /**\n * Checks if `value` is likely a prototype object.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.\n */\n function isPrototype(value) {\n var Ctor = value && value.constructor,\n proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;\n\n return value === proto;\n }\n\n /**\n * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` if suitable for strict\n * equality comparisons, else `false`.\n */\n function isStrictComparable(value) {\n return value === value && !isObject(value);\n }\n\n /**\n * A specialized version of `matchesProperty` for source values suitable\n * for strict equality comparisons, i.e. `===`.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @param {*} srcValue The value to match.\n * @returns {Function} Returns the new spec function.\n */\n function matchesStrictComparable(key, srcValue) {\n return function(object) {\n if (object == null) {\n return false;\n }\n return object[key] === srcValue &&\n (srcValue !== undefined || (key in Object(object)));\n };\n }\n\n /**\n * A specialized version of `_.memoize` which clears the memoized function's\n * cache when it exceeds `MAX_MEMOIZE_SIZE`.\n *\n * @private\n * @param {Function} func The function to have its output memoized.\n * @returns {Function} Returns the new memoized function.\n */\n function memoizeCapped(func) {\n var result = memoize(func, function(key) {\n if (cache.size === MAX_MEMOIZE_SIZE) {\n cache.clear();\n }\n return key;\n });\n\n var cache = result.cache;\n return result;\n }\n\n /**\n * Merges the function metadata of `source` into `data`.\n *\n * Merging metadata reduces the number of wrappers used to invoke a function.\n * This is possible because methods like `_.bind`, `_.curry`, and `_.partial`\n * may be applied regardless of execution order. Methods like `_.ary` and\n * `_.rearg` modify function arguments, making the order in which they are\n * executed important, preventing the merging of metadata. However, we make\n * an exception for a safe combined case where curried functions have `_.ary`\n * and or `_.rearg` applied.\n *\n * @private\n * @param {Array} data The destination metadata.\n * @param {Array} source The source metadata.\n * @returns {Array} Returns `data`.\n */\n function mergeData(data, source) {\n var bitmask = data[1],\n srcBitmask = source[1],\n newBitmask = bitmask | srcBitmask,\n isCommon = newBitmask < (WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG | WRAP_ARY_FLAG);\n\n var isCombo =\n ((srcBitmask == WRAP_ARY_FLAG) && (bitmask == WRAP_CURRY_FLAG)) ||\n ((srcBitmask == WRAP_ARY_FLAG) && (bitmask == WRAP_REARG_FLAG) && (data[7].length <= source[8])) ||\n ((srcBitmask == (WRAP_ARY_FLAG | WRAP_REARG_FLAG)) && (source[7].length <= source[8]) && (bitmask == WRAP_CURRY_FLAG));\n\n // Exit early if metadata can't be merged.\n if (!(isCommon || isCombo)) {\n return data;\n }\n // Use source `thisArg` if available.\n if (srcBitmask & WRAP_BIND_FLAG) {\n data[2] = source[2];\n // Set when currying a bound function.\n newBitmask |= bitmask & WRAP_BIND_FLAG ? 0 : WRAP_CURRY_BOUND_FLAG;\n }\n // Compose partial arguments.\n var value = source[3];\n if (value) {\n var partials = data[3];\n data[3] = partials ? composeArgs(partials, value, source[4]) : value;\n data[4] = partials ? replaceHolders(data[3], PLACEHOLDER) : source[4];\n }\n // Compose partial right arguments.\n value = source[5];\n if (value) {\n partials = data[5];\n data[5] = partials ? composeArgsRight(partials, value, source[6]) : value;\n data[6] = partials ? replaceHolders(data[5], PLACEHOLDER) : source[6];\n }\n // Use source `argPos` if available.\n value = source[7];\n if (value) {\n data[7] = value;\n }\n // Use source `ary` if it's smaller.\n if (srcBitmask & WRAP_ARY_FLAG) {\n data[8] = data[8] == null ? source[8] : nativeMin(data[8], source[8]);\n }\n // Use source `arity` if one is not provided.\n if (data[9] == null) {\n data[9] = source[9];\n }\n // Use source `func` and merge bitmasks.\n data[0] = source[0];\n data[1] = newBitmask;\n\n return data;\n }\n\n /**\n * This function is like\n * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * except that it includes inherited enumerable properties.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\n function nativeKeysIn(object) {\n var result = [];\n if (object != null) {\n for (var key in Object(object)) {\n result.push(key);\n }\n }\n return result;\n }\n\n /**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\n function objectToString(value) {\n return nativeObjectToString.call(value);\n }\n\n /**\n * A specialized version of `baseRest` which transforms the rest array.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @param {Function} transform The rest array transform.\n * @returns {Function} Returns the new function.\n */\n function overRest(func, start, transform) {\n start = nativeMax(start === undefined ? (func.length - 1) : start, 0);\n return function() {\n var args = arguments,\n index = -1,\n length = nativeMax(args.length - start, 0),\n array = Array(length);\n\n while (++index < length) {\n array[index] = args[start + index];\n }\n index = -1;\n var otherArgs = Array(start + 1);\n while (++index < start) {\n otherArgs[index] = args[index];\n }\n otherArgs[start] = transform(array);\n return apply(func, this, otherArgs);\n };\n }\n\n /**\n * Gets the parent value at `path` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array} path The path to get the parent value of.\n * @returns {*} Returns the parent value.\n */\n function parent(object, path) {\n return path.length < 2 ? object : baseGet(object, baseSlice(path, 0, -1));\n }\n\n /**\n * Reorder `array` according to the specified indexes where the element at\n * the first index is assigned as the first element, the element at\n * the second index is assigned as the second element, and so on.\n *\n * @private\n * @param {Array} array The array to reorder.\n * @param {Array} indexes The arranged array indexes.\n * @returns {Array} Returns `array`.\n */\n function reorder(array, indexes) {\n var arrLength = array.length,\n length = nativeMin(indexes.length, arrLength),\n oldArray = copyArray(array);\n\n while (length--) {\n var index = indexes[length];\n array[length] = isIndex(index, arrLength) ? oldArray[index] : undefined;\n }\n return array;\n }\n\n /**\n * Sets metadata for `func`.\n *\n * **Note:** If this function becomes hot, i.e. is invoked a lot in a short\n * period of time, it will trip its breaker and transition to an identity\n * function to avoid garbage collection pauses in V8. See\n * [V8 issue 2070](https://bugs.chromium.org/p/v8/issues/detail?id=2070)\n * for more details.\n *\n * @private\n * @param {Function} func The function to associate metadata with.\n * @param {*} data The metadata.\n * @returns {Function} Returns `func`.\n */\n var setData = shortOut(baseSetData);\n\n /**\n * A simple wrapper around the global [`setTimeout`](https://mdn.io/setTimeout).\n *\n * @private\n * @param {Function} func The function to delay.\n * @param {number} wait The number of milliseconds to delay invocation.\n * @returns {number|Object} Returns the timer id or timeout object.\n */\n var setTimeout = ctxSetTimeout || function(func, wait) {\n return root.setTimeout(func, wait);\n };\n\n /**\n * Sets the `toString` method of `func` to return `string`.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\n var setToString = shortOut(baseSetToString);\n\n /**\n * Sets the `toString` method of `wrapper` to mimic the source of `reference`\n * with wrapper details in a comment at the top of the source body.\n *\n * @private\n * @param {Function} wrapper The function to modify.\n * @param {Function} reference The reference function.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @returns {Function} Returns `wrapper`.\n */\n function setWrapToString(wrapper, reference, bitmask) {\n var source = (reference + '');\n return setToString(wrapper, insertWrapDetails(source, updateWrapDetails(getWrapDetails(source), bitmask)));\n }\n\n /**\n * Creates a function that'll short out and invoke `identity` instead\n * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`\n * milliseconds.\n *\n * @private\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new shortable function.\n */\n function shortOut(func) {\n var count = 0,\n lastCalled = 0;\n\n return function() {\n var stamp = nativeNow(),\n remaining = HOT_SPAN - (stamp - lastCalled);\n\n lastCalled = stamp;\n if (remaining > 0) {\n if (++count >= HOT_COUNT) {\n return arguments[0];\n }\n } else {\n count = 0;\n }\n return func.apply(undefined, arguments);\n };\n }\n\n /**\n * A specialized version of `_.shuffle` which mutates and sets the size of `array`.\n *\n * @private\n * @param {Array} array The array to shuffle.\n * @param {number} [size=array.length] The size of `array`.\n * @returns {Array} Returns `array`.\n */\n function shuffleSelf(array, size) {\n var index = -1,\n length = array.length,\n lastIndex = length - 1;\n\n size = size === undefined ? length : size;\n while (++index < size) {\n var rand = baseRandom(index, lastIndex),\n value = array[rand];\n\n array[rand] = array[index];\n array[index] = value;\n }\n array.length = size;\n return array;\n }\n\n /**\n * Converts `string` to a property path array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the property path array.\n */\n var stringToPath = memoizeCapped(function(string) {\n var result = [];\n if (string.charCodeAt(0) === 46 /* . */) {\n result.push('');\n }\n string.replace(rePropName, function(match, number, quote, subString) {\n result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));\n });\n return result;\n });\n\n /**\n * Converts `value` to a string key if it's not a string or symbol.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {string|symbol} Returns the key.\n */\n function toKey(value) {\n if (typeof value == 'string' || isSymbol(value)) {\n return value;\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n }\n\n /**\n * Converts `func` to its source code.\n *\n * @private\n * @param {Function} func The function to convert.\n * @returns {string} Returns the source code.\n */\n function toSource(func) {\n if (func != null) {\n try {\n return funcToString.call(func);\n } catch (e) {}\n try {\n return (func + '');\n } catch (e) {}\n }\n return '';\n }\n\n /**\n * Updates wrapper `details` based on `bitmask` flags.\n *\n * @private\n * @returns {Array} details The details to modify.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @returns {Array} Returns `details`.\n */\n function updateWrapDetails(details, bitmask) {\n arrayEach(wrapFlags, function(pair) {\n var value = '_.' + pair[0];\n if ((bitmask & pair[1]) && !arrayIncludes(details, value)) {\n details.push(value);\n }\n });\n return details.sort();\n }\n\n /**\n * Creates a clone of `wrapper`.\n *\n * @private\n * @param {Object} wrapper The wrapper to clone.\n * @returns {Object} Returns the cloned wrapper.\n */\n function wrapperClone(wrapper) {\n if (wrapper instanceof LazyWrapper) {\n return wrapper.clone();\n }\n var result = new LodashWrapper(wrapper.__wrapped__, wrapper.__chain__);\n result.__actions__ = copyArray(wrapper.__actions__);\n result.__index__ = wrapper.__index__;\n result.__values__ = wrapper.__values__;\n return result;\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates an array of elements split into groups the length of `size`.\n * If `array` can't be split evenly, the final chunk will be the remaining\n * elements.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to process.\n * @param {number} [size=1] The length of each chunk\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the new array of chunks.\n * @example\n *\n * _.chunk(['a', 'b', 'c', 'd'], 2);\n * // => [['a', 'b'], ['c', 'd']]\n *\n * _.chunk(['a', 'b', 'c', 'd'], 3);\n * // => [['a', 'b', 'c'], ['d']]\n */\n function chunk(array, size, guard) {\n if ((guard ? isIterateeCall(array, size, guard) : size === undefined)) {\n size = 1;\n } else {\n size = nativeMax(toInteger(size), 0);\n }\n var length = array == null ? 0 : array.length;\n if (!length || size < 1) {\n return [];\n }\n var index = 0,\n resIndex = 0,\n result = Array(nativeCeil(length / size));\n\n while (index < length) {\n result[resIndex++] = baseSlice(array, index, (index += size));\n }\n return result;\n }\n\n /**\n * Creates an array with all falsey values removed. The values `false`, `null`,\n * `0`, `\"\"`, `undefined`, and `NaN` are falsey.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to compact.\n * @returns {Array} Returns the new array of filtered values.\n * @example\n *\n * _.compact([0, 1, false, 2, '', 3]);\n * // => [1, 2, 3]\n */\n function compact(array) {\n var index = -1,\n length = array == null ? 0 : array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n if (value) {\n result[resIndex++] = value;\n }\n }\n return result;\n }\n\n /**\n * Creates a new array concatenating `array` with any additional arrays\n * and/or values.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to concatenate.\n * @param {...*} [values] The values to concatenate.\n * @returns {Array} Returns the new concatenated array.\n * @example\n *\n * var array = [1];\n * var other = _.concat(array, 2, [3], [[4]]);\n *\n * console.log(other);\n * // => [1, 2, 3, [4]]\n *\n * console.log(array);\n * // => [1]\n */\n function concat() {\n var length = arguments.length;\n if (!length) {\n return [];\n }\n var args = Array(length - 1),\n array = arguments[0],\n index = length;\n\n while (index--) {\n args[index - 1] = arguments[index];\n }\n return arrayPush(isArray(array) ? copyArray(array) : [array], baseFlatten(args, 1));\n }\n\n /**\n * Creates an array of `array` values not included in the other given arrays\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons. The order and references of result values are\n * determined by the first array.\n *\n * **Note:** Unlike `_.pullAll`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {...Array} [values] The values to exclude.\n * @returns {Array} Returns the new array of filtered values.\n * @see _.without, _.xor\n * @example\n *\n * _.difference([2, 1], [2, 3]);\n * // => [1]\n */\n var difference = baseRest(function(array, values) {\n return isArrayLikeObject(array)\n ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true))\n : [];\n });\n\n /**\n * This method is like `_.difference` except that it accepts `iteratee` which\n * is invoked for each element of `array` and `values` to generate the criterion\n * by which they're compared. The order and references of result values are\n * determined by the first array. The iteratee is invoked with one argument:\n * (value).\n *\n * **Note:** Unlike `_.pullAllBy`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {...Array} [values] The values to exclude.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns the new array of filtered values.\n * @example\n *\n * _.differenceBy([2.1, 1.2], [2.3, 3.4], Math.floor);\n * // => [1.2]\n *\n * // The `_.property` iteratee shorthand.\n * _.differenceBy([{ 'x': 2 }, { 'x': 1 }], [{ 'x': 1 }], 'x');\n * // => [{ 'x': 2 }]\n */\n var differenceBy = baseRest(function(array, values) {\n var iteratee = last(values);\n if (isArrayLikeObject(iteratee)) {\n iteratee = undefined;\n }\n return isArrayLikeObject(array)\n ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true), getIteratee(iteratee, 2))\n : [];\n });\n\n /**\n * This method is like `_.difference` except that it accepts `comparator`\n * which is invoked to compare elements of `array` to `values`. The order and\n * references of result values are determined by the first array. The comparator\n * is invoked with two arguments: (arrVal, othVal).\n *\n * **Note:** Unlike `_.pullAllWith`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {...Array} [values] The values to exclude.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of filtered values.\n * @example\n *\n * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];\n *\n * _.differenceWith(objects, [{ 'x': 1, 'y': 2 }], _.isEqual);\n * // => [{ 'x': 2, 'y': 1 }]\n */\n var differenceWith = baseRest(function(array, values) {\n var comparator = last(values);\n if (isArrayLikeObject(comparator)) {\n comparator = undefined;\n }\n return isArrayLikeObject(array)\n ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true), undefined, comparator)\n : [];\n });\n\n /**\n * Creates a slice of `array` with `n` elements dropped from the beginning.\n *\n * @static\n * @memberOf _\n * @since 0.5.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {number} [n=1] The number of elements to drop.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.drop([1, 2, 3]);\n * // => [2, 3]\n *\n * _.drop([1, 2, 3], 2);\n * // => [3]\n *\n * _.drop([1, 2, 3], 5);\n * // => []\n *\n * _.drop([1, 2, 3], 0);\n * // => [1, 2, 3]\n */\n function drop(array, n, guard) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n n = (guard || n === undefined) ? 1 : toInteger(n);\n return baseSlice(array, n < 0 ? 0 : n, length);\n }\n\n /**\n * Creates a slice of `array` with `n` elements dropped from the end.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {number} [n=1] The number of elements to drop.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.dropRight([1, 2, 3]);\n * // => [1, 2]\n *\n * _.dropRight([1, 2, 3], 2);\n * // => [1]\n *\n * _.dropRight([1, 2, 3], 5);\n * // => []\n *\n * _.dropRight([1, 2, 3], 0);\n * // => [1, 2, 3]\n */\n function dropRight(array, n, guard) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n n = (guard || n === undefined) ? 1 : toInteger(n);\n n = length - n;\n return baseSlice(array, 0, n < 0 ? 0 : n);\n }\n\n /**\n * Creates a slice of `array` excluding elements dropped from the end.\n * Elements are dropped until `predicate` returns falsey. The predicate is\n * invoked with three arguments: (value, index, array).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': true },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': false }\n * ];\n *\n * _.dropRightWhile(users, function(o) { return !o.active; });\n * // => objects for ['barney']\n *\n * // The `_.matches` iteratee shorthand.\n * _.dropRightWhile(users, { 'user': 'pebbles', 'active': false });\n * // => objects for ['barney', 'fred']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.dropRightWhile(users, ['active', false]);\n * // => objects for ['barney']\n *\n * // The `_.property` iteratee shorthand.\n * _.dropRightWhile(users, 'active');\n * // => objects for ['barney', 'fred', 'pebbles']\n */\n function dropRightWhile(array, predicate) {\n return (array && array.length)\n ? baseWhile(array, getIteratee(predicate, 3), true, true)\n : [];\n }\n\n /**\n * Creates a slice of `array` excluding elements dropped from the beginning.\n * Elements are dropped until `predicate` returns falsey. The predicate is\n * invoked with three arguments: (value, index, array).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': false },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': true }\n * ];\n *\n * _.dropWhile(users, function(o) { return !o.active; });\n * // => objects for ['pebbles']\n *\n * // The `_.matches` iteratee shorthand.\n * _.dropWhile(users, { 'user': 'barney', 'active': false });\n * // => objects for ['fred', 'pebbles']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.dropWhile(users, ['active', false]);\n * // => objects for ['pebbles']\n *\n * // The `_.property` iteratee shorthand.\n * _.dropWhile(users, 'active');\n * // => objects for ['barney', 'fred', 'pebbles']\n */\n function dropWhile(array, predicate) {\n return (array && array.length)\n ? baseWhile(array, getIteratee(predicate, 3), true)\n : [];\n }\n\n /**\n * Fills elements of `array` with `value` from `start` up to, but not\n * including, `end`.\n *\n * **Note:** This method mutates `array`.\n *\n * @static\n * @memberOf _\n * @since 3.2.0\n * @category Array\n * @param {Array} array The array to fill.\n * @param {*} value The value to fill `array` with.\n * @param {number} [start=0] The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = [1, 2, 3];\n *\n * _.fill(array, 'a');\n * console.log(array);\n * // => ['a', 'a', 'a']\n *\n * _.fill(Array(3), 2);\n * // => [2, 2, 2]\n *\n * _.fill([4, 6, 8, 10], '*', 1, 3);\n * // => [4, '*', '*', 10]\n */\n function fill(array, value, start, end) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n if (start && typeof start != 'number' && isIterateeCall(array, value, start)) {\n start = 0;\n end = length;\n }\n return baseFill(array, value, start, end);\n }\n\n /**\n * This method is like `_.find` except that it returns the index of the first\n * element `predicate` returns truthy for instead of the element itself.\n *\n * @static\n * @memberOf _\n * @since 1.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=0] The index to search from.\n * @returns {number} Returns the index of the found element, else `-1`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': false },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': true }\n * ];\n *\n * _.findIndex(users, function(o) { return o.user == 'barney'; });\n * // => 0\n *\n * // The `_.matches` iteratee shorthand.\n * _.findIndex(users, { 'user': 'fred', 'active': false });\n * // => 1\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.findIndex(users, ['active', false]);\n * // => 0\n *\n * // The `_.property` iteratee shorthand.\n * _.findIndex(users, 'active');\n * // => 2\n */\n function findIndex(array, predicate, fromIndex) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return -1;\n }\n var index = fromIndex == null ? 0 : toInteger(fromIndex);\n if (index < 0) {\n index = nativeMax(length + index, 0);\n }\n return baseFindIndex(array, getIteratee(predicate, 3), index);\n }\n\n /**\n * This method is like `_.findIndex` except that it iterates over elements\n * of `collection` from right to left.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=array.length-1] The index to search from.\n * @returns {number} Returns the index of the found element, else `-1`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': true },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': false }\n * ];\n *\n * _.findLastIndex(users, function(o) { return o.user == 'pebbles'; });\n * // => 2\n *\n * // The `_.matches` iteratee shorthand.\n * _.findLastIndex(users, { 'user': 'barney', 'active': true });\n * // => 0\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.findLastIndex(users, ['active', false]);\n * // => 2\n *\n * // The `_.property` iteratee shorthand.\n * _.findLastIndex(users, 'active');\n * // => 0\n */\n function findLastIndex(array, predicate, fromIndex) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return -1;\n }\n var index = length - 1;\n if (fromIndex !== undefined) {\n index = toInteger(fromIndex);\n index = fromIndex < 0\n ? nativeMax(length + index, 0)\n : nativeMin(index, length - 1);\n }\n return baseFindIndex(array, getIteratee(predicate, 3), index, true);\n }\n\n /**\n * Flattens `array` a single level deep.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to flatten.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * _.flatten([1, [2, [3, [4]], 5]]);\n * // => [1, 2, [3, [4]], 5]\n */\n function flatten(array) {\n var length = array == null ? 0 : array.length;\n return length ? baseFlatten(array, 1) : [];\n }\n\n /**\n * Recursively flattens `array`.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to flatten.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * _.flattenDeep([1, [2, [3, [4]], 5]]);\n * // => [1, 2, 3, 4, 5]\n */\n function flattenDeep(array) {\n var length = array == null ? 0 : array.length;\n return length ? baseFlatten(array, INFINITY) : [];\n }\n\n /**\n * Recursively flatten `array` up to `depth` times.\n *\n * @static\n * @memberOf _\n * @since 4.4.0\n * @category Array\n * @param {Array} array The array to flatten.\n * @param {number} [depth=1] The maximum recursion depth.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * var array = [1, [2, [3, [4]], 5]];\n *\n * _.flattenDepth(array, 1);\n * // => [1, 2, [3, [4]], 5]\n *\n * _.flattenDepth(array, 2);\n * // => [1, 2, 3, [4], 5]\n */\n function flattenDepth(array, depth) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n depth = depth === undefined ? 1 : toInteger(depth);\n return baseFlatten(array, depth);\n }\n\n /**\n * The inverse of `_.toPairs`; this method returns an object composed\n * from key-value `pairs`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} pairs The key-value pairs.\n * @returns {Object} Returns the new object.\n * @example\n *\n * _.fromPairs([['a', 1], ['b', 2]]);\n * // => { 'a': 1, 'b': 2 }\n */\n function fromPairs(pairs) {\n var index = -1,\n length = pairs == null ? 0 : pairs.length,\n result = {};\n\n while (++index < length) {\n var pair = pairs[index];\n result[pair[0]] = pair[1];\n }\n return result;\n }\n\n /**\n * Gets the first element of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @alias first\n * @category Array\n * @param {Array} array The array to query.\n * @returns {*} Returns the first element of `array`.\n * @example\n *\n * _.head([1, 2, 3]);\n * // => 1\n *\n * _.head([]);\n * // => undefined\n */\n function head(array) {\n return (array && array.length) ? array[0] : undefined;\n }\n\n /**\n * Gets the index at which the first occurrence of `value` is found in `array`\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons. If `fromIndex` is negative, it's used as the\n * offset from the end of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} [fromIndex=0] The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n * @example\n *\n * _.indexOf([1, 2, 1, 2], 2);\n * // => 1\n *\n * // Search from the `fromIndex`.\n * _.indexOf([1, 2, 1, 2], 2, 2);\n * // => 3\n */\n function indexOf(array, value, fromIndex) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return -1;\n }\n var index = fromIndex == null ? 0 : toInteger(fromIndex);\n if (index < 0) {\n index = nativeMax(length + index, 0);\n }\n return baseIndexOf(array, value, index);\n }\n\n /**\n * Gets all but the last element of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to query.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.initial([1, 2, 3]);\n * // => [1, 2]\n */\n function initial(array) {\n var length = array == null ? 0 : array.length;\n return length ? baseSlice(array, 0, -1) : [];\n }\n\n /**\n * Creates an array of unique values that are included in all given arrays\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons. The order and references of result values are\n * determined by the first array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @returns {Array} Returns the new array of intersecting values.\n * @example\n *\n * _.intersection([2, 1], [2, 3]);\n * // => [2]\n */\n var intersection = baseRest(function(arrays) {\n var mapped = arrayMap(arrays, castArrayLikeObject);\n return (mapped.length && mapped[0] === arrays[0])\n ? baseIntersection(mapped)\n : [];\n });\n\n /**\n * This method is like `_.intersection` except that it accepts `iteratee`\n * which is invoked for each element of each `arrays` to generate the criterion\n * by which they're compared. The order and references of result values are\n * determined by the first array. The iteratee is invoked with one argument:\n * (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns the new array of intersecting values.\n * @example\n *\n * _.intersectionBy([2.1, 1.2], [2.3, 3.4], Math.floor);\n * // => [2.1]\n *\n * // The `_.property` iteratee shorthand.\n * _.intersectionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');\n * // => [{ 'x': 1 }]\n */\n var intersectionBy = baseRest(function(arrays) {\n var iteratee = last(arrays),\n mapped = arrayMap(arrays, castArrayLikeObject);\n\n if (iteratee === last(mapped)) {\n iteratee = undefined;\n } else {\n mapped.pop();\n }\n return (mapped.length && mapped[0] === arrays[0])\n ? baseIntersection(mapped, getIteratee(iteratee, 2))\n : [];\n });\n\n /**\n * This method is like `_.intersection` except that it accepts `comparator`\n * which is invoked to compare elements of `arrays`. The order and references\n * of result values are determined by the first array. The comparator is\n * invoked with two arguments: (arrVal, othVal).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of intersecting values.\n * @example\n *\n * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];\n * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];\n *\n * _.intersectionWith(objects, others, _.isEqual);\n * // => [{ 'x': 1, 'y': 2 }]\n */\n var intersectionWith = baseRest(function(arrays) {\n var comparator = last(arrays),\n mapped = arrayMap(arrays, castArrayLikeObject);\n\n comparator = typeof comparator == 'function' ? comparator : undefined;\n if (comparator) {\n mapped.pop();\n }\n return (mapped.length && mapped[0] === arrays[0])\n ? baseIntersection(mapped, undefined, comparator)\n : [];\n });\n\n /**\n * Converts all elements in `array` into a string separated by `separator`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to convert.\n * @param {string} [separator=','] The element separator.\n * @returns {string} Returns the joined string.\n * @example\n *\n * _.join(['a', 'b', 'c'], '~');\n * // => 'a~b~c'\n */\n function join(array, separator) {\n return array == null ? '' : nativeJoin.call(array, separator);\n }\n\n /**\n * Gets the last element of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to query.\n * @returns {*} Returns the last element of `array`.\n * @example\n *\n * _.last([1, 2, 3]);\n * // => 3\n */\n function last(array) {\n var length = array == null ? 0 : array.length;\n return length ? array[length - 1] : undefined;\n }\n\n /**\n * This method is like `_.indexOf` except that it iterates over elements of\n * `array` from right to left.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} [fromIndex=array.length-1] The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n * @example\n *\n * _.lastIndexOf([1, 2, 1, 2], 2);\n * // => 3\n *\n * // Search from the `fromIndex`.\n * _.lastIndexOf([1, 2, 1, 2], 2, 2);\n * // => 1\n */\n function lastIndexOf(array, value, fromIndex) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return -1;\n }\n var index = length;\n if (fromIndex !== undefined) {\n index = toInteger(fromIndex);\n index = index < 0 ? nativeMax(length + index, 0) : nativeMin(index, length - 1);\n }\n return value === value\n ? strictLastIndexOf(array, value, index)\n : baseFindIndex(array, baseIsNaN, index, true);\n }\n\n /**\n * Gets the element at index `n` of `array`. If `n` is negative, the nth\n * element from the end is returned.\n *\n * @static\n * @memberOf _\n * @since 4.11.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {number} [n=0] The index of the element to return.\n * @returns {*} Returns the nth element of `array`.\n * @example\n *\n * var array = ['a', 'b', 'c', 'd'];\n *\n * _.nth(array, 1);\n * // => 'b'\n *\n * _.nth(array, -2);\n * // => 'c';\n */\n function nth(array, n) {\n return (array && array.length) ? baseNth(array, toInteger(n)) : undefined;\n }\n\n /**\n * Removes all given values from `array` using\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * **Note:** Unlike `_.without`, this method mutates `array`. Use `_.remove`\n * to remove elements from an array by predicate.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {...*} [values] The values to remove.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = ['a', 'b', 'c', 'a', 'b', 'c'];\n *\n * _.pull(array, 'a', 'c');\n * console.log(array);\n * // => ['b', 'b']\n */\n var pull = baseRest(pullAll);\n\n /**\n * This method is like `_.pull` except that it accepts an array of values to remove.\n *\n * **Note:** Unlike `_.difference`, this method mutates `array`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {Array} values The values to remove.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = ['a', 'b', 'c', 'a', 'b', 'c'];\n *\n * _.pullAll(array, ['a', 'c']);\n * console.log(array);\n * // => ['b', 'b']\n */\n function pullAll(array, values) {\n return (array && array.length && values && values.length)\n ? basePullAll(array, values)\n : array;\n }\n\n /**\n * This method is like `_.pullAll` except that it accepts `iteratee` which is\n * invoked for each element of `array` and `values` to generate the criterion\n * by which they're compared. The iteratee is invoked with one argument: (value).\n *\n * **Note:** Unlike `_.differenceBy`, this method mutates `array`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {Array} values The values to remove.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = [{ 'x': 1 }, { 'x': 2 }, { 'x': 3 }, { 'x': 1 }];\n *\n * _.pullAllBy(array, [{ 'x': 1 }, { 'x': 3 }], 'x');\n * console.log(array);\n * // => [{ 'x': 2 }]\n */\n function pullAllBy(array, values, iteratee) {\n return (array && array.length && values && values.length)\n ? basePullAll(array, values, getIteratee(iteratee, 2))\n : array;\n }\n\n /**\n * This method is like `_.pullAll` except that it accepts `comparator` which\n * is invoked to compare elements of `array` to `values`. The comparator is\n * invoked with two arguments: (arrVal, othVal).\n *\n * **Note:** Unlike `_.differenceWith`, this method mutates `array`.\n *\n * @static\n * @memberOf _\n * @since 4.6.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {Array} values The values to remove.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = [{ 'x': 1, 'y': 2 }, { 'x': 3, 'y': 4 }, { 'x': 5, 'y': 6 }];\n *\n * _.pullAllWith(array, [{ 'x': 3, 'y': 4 }], _.isEqual);\n * console.log(array);\n * // => [{ 'x': 1, 'y': 2 }, { 'x': 5, 'y': 6 }]\n */\n function pullAllWith(array, values, comparator) {\n return (array && array.length && values && values.length)\n ? basePullAll(array, values, undefined, comparator)\n : array;\n }\n\n /**\n * Removes elements from `array` corresponding to `indexes` and returns an\n * array of removed elements.\n *\n * **Note:** Unlike `_.at`, this method mutates `array`.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {...(number|number[])} [indexes] The indexes of elements to remove.\n * @returns {Array} Returns the new array of removed elements.\n * @example\n *\n * var array = ['a', 'b', 'c', 'd'];\n * var pulled = _.pullAt(array, [1, 3]);\n *\n * console.log(array);\n * // => ['a', 'c']\n *\n * console.log(pulled);\n * // => ['b', 'd']\n */\n var pullAt = flatRest(function(array, indexes) {\n var length = array == null ? 0 : array.length,\n result = baseAt(array, indexes);\n\n basePullAt(array, arrayMap(indexes, function(index) {\n return isIndex(index, length) ? +index : index;\n }).sort(compareAscending));\n\n return result;\n });\n\n /**\n * Removes all elements from `array` that `predicate` returns truthy for\n * and returns an array of the removed elements. The predicate is invoked\n * with three arguments: (value, index, array).\n *\n * **Note:** Unlike `_.filter`, this method mutates `array`. Use `_.pull`\n * to pull elements from an array by value.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new array of removed elements.\n * @example\n *\n * var array = [1, 2, 3, 4];\n * var evens = _.remove(array, function(n) {\n * return n % 2 == 0;\n * });\n *\n * console.log(array);\n * // => [1, 3]\n *\n * console.log(evens);\n * // => [2, 4]\n */\n function remove(array, predicate) {\n var result = [];\n if (!(array && array.length)) {\n return result;\n }\n var index = -1,\n indexes = [],\n length = array.length;\n\n predicate = getIteratee(predicate, 3);\n while (++index < length) {\n var value = array[index];\n if (predicate(value, index, array)) {\n result.push(value);\n indexes.push(index);\n }\n }\n basePullAt(array, indexes);\n return result;\n }\n\n /**\n * Reverses `array` so that the first element becomes the last, the second\n * element becomes the second to last, and so on.\n *\n * **Note:** This method mutates `array` and is based on\n * [`Array#reverse`](https://mdn.io/Array/reverse).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = [1, 2, 3];\n *\n * _.reverse(array);\n * // => [3, 2, 1]\n *\n * console.log(array);\n * // => [3, 2, 1]\n */\n function reverse(array) {\n return array == null ? array : nativeReverse.call(array);\n }\n\n /**\n * Creates a slice of `array` from `start` up to, but not including, `end`.\n *\n * **Note:** This method is used instead of\n * [`Array#slice`](https://mdn.io/Array/slice) to ensure dense arrays are\n * returned.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to slice.\n * @param {number} [start=0] The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns the slice of `array`.\n */\n function slice(array, start, end) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n if (end && typeof end != 'number' && isIterateeCall(array, start, end)) {\n start = 0;\n end = length;\n }\n else {\n start = start == null ? 0 : toInteger(start);\n end = end === undefined ? length : toInteger(end);\n }\n return baseSlice(array, start, end);\n }\n\n /**\n * Uses a binary search to determine the lowest index at which `value`\n * should be inserted into `array` in order to maintain its sort order.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n * @example\n *\n * _.sortedIndex([30, 50], 40);\n * // => 1\n */\n function sortedIndex(array, value) {\n return baseSortedIndex(array, value);\n }\n\n /**\n * This method is like `_.sortedIndex` except that it accepts `iteratee`\n * which is invoked for `value` and each element of `array` to compute their\n * sort ranking. The iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n * @example\n *\n * var objects = [{ 'x': 4 }, { 'x': 5 }];\n *\n * _.sortedIndexBy(objects, { 'x': 4 }, function(o) { return o.x; });\n * // => 0\n *\n * // The `_.property` iteratee shorthand.\n * _.sortedIndexBy(objects, { 'x': 4 }, 'x');\n * // => 0\n */\n function sortedIndexBy(array, value, iteratee) {\n return baseSortedIndexBy(array, value, getIteratee(iteratee, 2));\n }\n\n /**\n * This method is like `_.indexOf` except that it performs a binary\n * search on a sorted `array`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n * @example\n *\n * _.sortedIndexOf([4, 5, 5, 5, 6], 5);\n * // => 1\n */\n function sortedIndexOf(array, value) {\n var length = array == null ? 0 : array.length;\n if (length) {\n var index = baseSortedIndex(array, value);\n if (index < length && eq(array[index], value)) {\n return index;\n }\n }\n return -1;\n }\n\n /**\n * This method is like `_.sortedIndex` except that it returns the highest\n * index at which `value` should be inserted into `array` in order to\n * maintain its sort order.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n * @example\n *\n * _.sortedLastIndex([4, 5, 5, 5, 6], 5);\n * // => 4\n */\n function sortedLastIndex(array, value) {\n return baseSortedIndex(array, value, true);\n }\n\n /**\n * This method is like `_.sortedLastIndex` except that it accepts `iteratee`\n * which is invoked for `value` and each element of `array` to compute their\n * sort ranking. The iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n * @example\n *\n * var objects = [{ 'x': 4 }, { 'x': 5 }];\n *\n * _.sortedLastIndexBy(objects, { 'x': 4 }, function(o) { return o.x; });\n * // => 1\n *\n * // The `_.property` iteratee shorthand.\n * _.sortedLastIndexBy(objects, { 'x': 4 }, 'x');\n * // => 1\n */\n function sortedLastIndexBy(array, value, iteratee) {\n return baseSortedIndexBy(array, value, getIteratee(iteratee, 2), true);\n }\n\n /**\n * This method is like `_.lastIndexOf` except that it performs a binary\n * search on a sorted `array`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n * @example\n *\n * _.sortedLastIndexOf([4, 5, 5, 5, 6], 5);\n * // => 3\n */\n function sortedLastIndexOf(array, value) {\n var length = array == null ? 0 : array.length;\n if (length) {\n var index = baseSortedIndex(array, value, true) - 1;\n if (eq(array[index], value)) {\n return index;\n }\n }\n return -1;\n }\n\n /**\n * This method is like `_.uniq` except that it's designed and optimized\n * for sorted arrays.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @returns {Array} Returns the new duplicate free array.\n * @example\n *\n * _.sortedUniq([1, 1, 2]);\n * // => [1, 2]\n */\n function sortedUniq(array) {\n return (array && array.length)\n ? baseSortedUniq(array)\n : [];\n }\n\n /**\n * This method is like `_.uniqBy` except that it's designed and optimized\n * for sorted arrays.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n * @example\n *\n * _.sortedUniqBy([1.1, 1.2, 2.3, 2.4], Math.floor);\n * // => [1.1, 2.3]\n */\n function sortedUniqBy(array, iteratee) {\n return (array && array.length)\n ? baseSortedUniq(array, getIteratee(iteratee, 2))\n : [];\n }\n\n /**\n * Gets all but the first element of `array`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.tail([1, 2, 3]);\n * // => [2, 3]\n */\n function tail(array) {\n var length = array == null ? 0 : array.length;\n return length ? baseSlice(array, 1, length) : [];\n }\n\n /**\n * Creates a slice of `array` with `n` elements taken from the beginning.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {number} [n=1] The number of elements to take.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.take([1, 2, 3]);\n * // => [1]\n *\n * _.take([1, 2, 3], 2);\n * // => [1, 2]\n *\n * _.take([1, 2, 3], 5);\n * // => [1, 2, 3]\n *\n * _.take([1, 2, 3], 0);\n * // => []\n */\n function take(array, n, guard) {\n if (!(array && array.length)) {\n return [];\n }\n n = (guard || n === undefined) ? 1 : toInteger(n);\n return baseSlice(array, 0, n < 0 ? 0 : n);\n }\n\n /**\n * Creates a slice of `array` with `n` elements taken from the end.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {number} [n=1] The number of elements to take.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.takeRight([1, 2, 3]);\n * // => [3]\n *\n * _.takeRight([1, 2, 3], 2);\n * // => [2, 3]\n *\n * _.takeRight([1, 2, 3], 5);\n * // => [1, 2, 3]\n *\n * _.takeRight([1, 2, 3], 0);\n * // => []\n */\n function takeRight(array, n, guard) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n n = (guard || n === undefined) ? 1 : toInteger(n);\n n = length - n;\n return baseSlice(array, n < 0 ? 0 : n, length);\n }\n\n /**\n * Creates a slice of `array` with elements taken from the end. Elements are\n * taken until `predicate` returns falsey. The predicate is invoked with\n * three arguments: (value, index, array).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': true },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': false }\n * ];\n *\n * _.takeRightWhile(users, function(o) { return !o.active; });\n * // => objects for ['fred', 'pebbles']\n *\n * // The `_.matches` iteratee shorthand.\n * _.takeRightWhile(users, { 'user': 'pebbles', 'active': false });\n * // => objects for ['pebbles']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.takeRightWhile(users, ['active', false]);\n * // => objects for ['fred', 'pebbles']\n *\n * // The `_.property` iteratee shorthand.\n * _.takeRightWhile(users, 'active');\n * // => []\n */\n function takeRightWhile(array, predicate) {\n return (array && array.length)\n ? baseWhile(array, getIteratee(predicate, 3), false, true)\n : [];\n }\n\n /**\n * Creates a slice of `array` with elements taken from the beginning. Elements\n * are taken until `predicate` returns falsey. The predicate is invoked with\n * three arguments: (value, index, array).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': false },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': true }\n * ];\n *\n * _.takeWhile(users, function(o) { return !o.active; });\n * // => objects for ['barney', 'fred']\n *\n * // The `_.matches` iteratee shorthand.\n * _.takeWhile(users, { 'user': 'barney', 'active': false });\n * // => objects for ['barney']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.takeWhile(users, ['active', false]);\n * // => objects for ['barney', 'fred']\n *\n * // The `_.property` iteratee shorthand.\n * _.takeWhile(users, 'active');\n * // => []\n */\n function takeWhile(array, predicate) {\n return (array && array.length)\n ? baseWhile(array, getIteratee(predicate, 3))\n : [];\n }\n\n /**\n * Creates an array of unique values, in order, from all given arrays using\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @returns {Array} Returns the new array of combined values.\n * @example\n *\n * _.union([2], [1, 2]);\n * // => [2, 1]\n */\n var union = baseRest(function(arrays) {\n return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true));\n });\n\n /**\n * This method is like `_.union` except that it accepts `iteratee` which is\n * invoked for each element of each `arrays` to generate the criterion by\n * which uniqueness is computed. Result values are chosen from the first\n * array in which the value occurs. The iteratee is invoked with one argument:\n * (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns the new array of combined values.\n * @example\n *\n * _.unionBy([2.1], [1.2, 2.3], Math.floor);\n * // => [2.1, 1.2]\n *\n * // The `_.property` iteratee shorthand.\n * _.unionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');\n * // => [{ 'x': 1 }, { 'x': 2 }]\n */\n var unionBy = baseRest(function(arrays) {\n var iteratee = last(arrays);\n if (isArrayLikeObject(iteratee)) {\n iteratee = undefined;\n }\n return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), getIteratee(iteratee, 2));\n });\n\n /**\n * This method is like `_.union` except that it accepts `comparator` which\n * is invoked to compare elements of `arrays`. Result values are chosen from\n * the first array in which the value occurs. The comparator is invoked\n * with two arguments: (arrVal, othVal).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of combined values.\n * @example\n *\n * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];\n * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];\n *\n * _.unionWith(objects, others, _.isEqual);\n * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]\n */\n var unionWith = baseRest(function(arrays) {\n var comparator = last(arrays);\n comparator = typeof comparator == 'function' ? comparator : undefined;\n return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), undefined, comparator);\n });\n\n /**\n * Creates a duplicate-free version of an array, using\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons, in which only the first occurrence of each element\n * is kept. The order of result values is determined by the order they occur\n * in the array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @returns {Array} Returns the new duplicate free array.\n * @example\n *\n * _.uniq([2, 1, 2]);\n * // => [2, 1]\n */\n function uniq(array) {\n return (array && array.length) ? baseUniq(array) : [];\n }\n\n /**\n * This method is like `_.uniq` except that it accepts `iteratee` which is\n * invoked for each element in `array` to generate the criterion by which\n * uniqueness is computed. The order of result values is determined by the\n * order they occur in the array. The iteratee is invoked with one argument:\n * (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n * @example\n *\n * _.uniqBy([2.1, 1.2, 2.3], Math.floor);\n * // => [2.1, 1.2]\n *\n * // The `_.property` iteratee shorthand.\n * _.uniqBy([{ 'x': 1 }, { 'x': 2 }, { 'x': 1 }], 'x');\n * // => [{ 'x': 1 }, { 'x': 2 }]\n */\n function uniqBy(array, iteratee) {\n return (array && array.length) ? baseUniq(array, getIteratee(iteratee, 2)) : [];\n }\n\n /**\n * This method is like `_.uniq` except that it accepts `comparator` which\n * is invoked to compare elements of `array`. The order of result values is\n * determined by the order they occur in the array.The comparator is invoked\n * with two arguments: (arrVal, othVal).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n * @example\n *\n * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 2 }];\n *\n * _.uniqWith(objects, _.isEqual);\n * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }]\n */\n function uniqWith(array, comparator) {\n comparator = typeof comparator == 'function' ? comparator : undefined;\n return (array && array.length) ? baseUniq(array, undefined, comparator) : [];\n }\n\n /**\n * This method is like `_.zip` except that it accepts an array of grouped\n * elements and creates an array regrouping the elements to their pre-zip\n * configuration.\n *\n * @static\n * @memberOf _\n * @since 1.2.0\n * @category Array\n * @param {Array} array The array of grouped elements to process.\n * @returns {Array} Returns the new array of regrouped elements.\n * @example\n *\n * var zipped = _.zip(['a', 'b'], [1, 2], [true, false]);\n * // => [['a', 1, true], ['b', 2, false]]\n *\n * _.unzip(zipped);\n * // => [['a', 'b'], [1, 2], [true, false]]\n */\n function unzip(array) {\n if (!(array && array.length)) {\n return [];\n }\n var length = 0;\n array = arrayFilter(array, function(group) {\n if (isArrayLikeObject(group)) {\n length = nativeMax(group.length, length);\n return true;\n }\n });\n return baseTimes(length, function(index) {\n return arrayMap(array, baseProperty(index));\n });\n }\n\n /**\n * This method is like `_.unzip` except that it accepts `iteratee` to specify\n * how regrouped values should be combined. The iteratee is invoked with the\n * elements of each group: (...group).\n *\n * @static\n * @memberOf _\n * @since 3.8.0\n * @category Array\n * @param {Array} array The array of grouped elements to process.\n * @param {Function} [iteratee=_.identity] The function to combine\n * regrouped values.\n * @returns {Array} Returns the new array of regrouped elements.\n * @example\n *\n * var zipped = _.zip([1, 2], [10, 20], [100, 200]);\n * // => [[1, 10, 100], [2, 20, 200]]\n *\n * _.unzipWith(zipped, _.add);\n * // => [3, 30, 300]\n */\n function unzipWith(array, iteratee) {\n if (!(array && array.length)) {\n return [];\n }\n var result = unzip(array);\n if (iteratee == null) {\n return result;\n }\n return arrayMap(result, function(group) {\n return apply(iteratee, undefined, group);\n });\n }\n\n /**\n * Creates an array excluding all given values using\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * **Note:** Unlike `_.pull`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {...*} [values] The values to exclude.\n * @returns {Array} Returns the new array of filtered values.\n * @see _.difference, _.xor\n * @example\n *\n * _.without([2, 1, 2, 3], 1, 2);\n * // => [3]\n */\n var without = baseRest(function(array, values) {\n return isArrayLikeObject(array)\n ? baseDifference(array, values)\n : [];\n });\n\n /**\n * Creates an array of unique values that is the\n * [symmetric difference](https://en.wikipedia.org/wiki/Symmetric_difference)\n * of the given arrays. The order of result values is determined by the order\n * they occur in the arrays.\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @returns {Array} Returns the new array of filtered values.\n * @see _.difference, _.without\n * @example\n *\n * _.xor([2, 1], [2, 3]);\n * // => [1, 3]\n */\n var xor = baseRest(function(arrays) {\n return baseXor(arrayFilter(arrays, isArrayLikeObject));\n });\n\n /**\n * This method is like `_.xor` except that it accepts `iteratee` which is\n * invoked for each element of each `arrays` to generate the criterion by\n * which by which they're compared. The order of result values is determined\n * by the order they occur in the arrays. The iteratee is invoked with one\n * argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns the new array of filtered values.\n * @example\n *\n * _.xorBy([2.1, 1.2], [2.3, 3.4], Math.floor);\n * // => [1.2, 3.4]\n *\n * // The `_.property` iteratee shorthand.\n * _.xorBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');\n * // => [{ 'x': 2 }]\n */\n var xorBy = baseRest(function(arrays) {\n var iteratee = last(arrays);\n if (isArrayLikeObject(iteratee)) {\n iteratee = undefined;\n }\n return baseXor(arrayFilter(arrays, isArrayLikeObject), getIteratee(iteratee, 2));\n });\n\n /**\n * This method is like `_.xor` except that it accepts `comparator` which is\n * invoked to compare elements of `arrays`. The order of result values is\n * determined by the order they occur in the arrays. The comparator is invoked\n * with two arguments: (arrVal, othVal).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of filtered values.\n * @example\n *\n * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];\n * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];\n *\n * _.xorWith(objects, others, _.isEqual);\n * // => [{ 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]\n */\n var xorWith = baseRest(function(arrays) {\n var comparator = last(arrays);\n comparator = typeof comparator == 'function' ? comparator : undefined;\n return baseXor(arrayFilter(arrays, isArrayLikeObject), undefined, comparator);\n });\n\n /**\n * Creates an array of grouped elements, the first of which contains the\n * first elements of the given arrays, the second of which contains the\n * second elements of the given arrays, and so on.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {...Array} [arrays] The arrays to process.\n * @returns {Array} Returns the new array of grouped elements.\n * @example\n *\n * _.zip(['a', 'b'], [1, 2], [true, false]);\n * // => [['a', 1, true], ['b', 2, false]]\n */\n var zip = baseRest(unzip);\n\n /**\n * This method is like `_.fromPairs` except that it accepts two arrays,\n * one of property identifiers and one of corresponding values.\n *\n * @static\n * @memberOf _\n * @since 0.4.0\n * @category Array\n * @param {Array} [props=[]] The property identifiers.\n * @param {Array} [values=[]] The property values.\n * @returns {Object} Returns the new object.\n * @example\n *\n * _.zipObject(['a', 'b'], [1, 2]);\n * // => { 'a': 1, 'b': 2 }\n */\n function zipObject(props, values) {\n return baseZipObject(props || [], values || [], assignValue);\n }\n\n /**\n * This method is like `_.zipObject` except that it supports property paths.\n *\n * @static\n * @memberOf _\n * @since 4.1.0\n * @category Array\n * @param {Array} [props=[]] The property identifiers.\n * @param {Array} [values=[]] The property values.\n * @returns {Object} Returns the new object.\n * @example\n *\n * _.zipObjectDeep(['a.b[0].c', 'a.b[1].d'], [1, 2]);\n * // => { 'a': { 'b': [{ 'c': 1 }, { 'd': 2 }] } }\n */\n function zipObjectDeep(props, values) {\n return baseZipObject(props || [], values || [], baseSet);\n }\n\n /**\n * This method is like `_.zip` except that it accepts `iteratee` to specify\n * how grouped values should be combined. The iteratee is invoked with the\n * elements of each group: (...group).\n *\n * @static\n * @memberOf _\n * @since 3.8.0\n * @category Array\n * @param {...Array} [arrays] The arrays to process.\n * @param {Function} [iteratee=_.identity] The function to combine\n * grouped values.\n * @returns {Array} Returns the new array of grouped elements.\n * @example\n *\n * _.zipWith([1, 2], [10, 20], [100, 200], function(a, b, c) {\n * return a + b + c;\n * });\n * // => [111, 222]\n */\n var zipWith = baseRest(function(arrays) {\n var length = arrays.length,\n iteratee = length > 1 ? arrays[length - 1] : undefined;\n\n iteratee = typeof iteratee == 'function' ? (arrays.pop(), iteratee) : undefined;\n return unzipWith(arrays, iteratee);\n });\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a `lodash` wrapper instance that wraps `value` with explicit method\n * chain sequences enabled. The result of such sequences must be unwrapped\n * with `_#value`.\n *\n * @static\n * @memberOf _\n * @since 1.3.0\n * @category Seq\n * @param {*} value The value to wrap.\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36 },\n * { 'user': 'fred', 'age': 40 },\n * { 'user': 'pebbles', 'age': 1 }\n * ];\n *\n * var youngest = _\n * .chain(users)\n * .sortBy('age')\n * .map(function(o) {\n * return o.user + ' is ' + o.age;\n * })\n * .head()\n * .value();\n * // => 'pebbles is 1'\n */\n function chain(value) {\n var result = lodash(value);\n result.__chain__ = true;\n return result;\n }\n\n /**\n * This method invokes `interceptor` and returns `value`. The interceptor\n * is invoked with one argument; (value). The purpose of this method is to\n * \"tap into\" a method chain sequence in order to modify intermediate results.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Seq\n * @param {*} value The value to provide to `interceptor`.\n * @param {Function} interceptor The function to invoke.\n * @returns {*} Returns `value`.\n * @example\n *\n * _([1, 2, 3])\n * .tap(function(array) {\n * // Mutate input array.\n * array.pop();\n * })\n * .reverse()\n * .value();\n * // => [2, 1]\n */\n function tap(value, interceptor) {\n interceptor(value);\n return value;\n }\n\n /**\n * This method is like `_.tap` except that it returns the result of `interceptor`.\n * The purpose of this method is to \"pass thru\" values replacing intermediate\n * results in a method chain sequence.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Seq\n * @param {*} value The value to provide to `interceptor`.\n * @param {Function} interceptor The function to invoke.\n * @returns {*} Returns the result of `interceptor`.\n * @example\n *\n * _(' abc ')\n * .chain()\n * .trim()\n * .thru(function(value) {\n * return [value];\n * })\n * .value();\n * // => ['abc']\n */\n function thru(value, interceptor) {\n return interceptor(value);\n }\n\n /**\n * This method is the wrapper version of `_.at`.\n *\n * @name at\n * @memberOf _\n * @since 1.0.0\n * @category Seq\n * @param {...(string|string[])} [paths] The property paths to pick.\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }, 4] };\n *\n * _(object).at(['a[0].b.c', 'a[1]']).value();\n * // => [3, 4]\n */\n var wrapperAt = flatRest(function(paths) {\n var length = paths.length,\n start = length ? paths[0] : 0,\n value = this.__wrapped__,\n interceptor = function(object) { return baseAt(object, paths); };\n\n if (length > 1 || this.__actions__.length ||\n !(value instanceof LazyWrapper) || !isIndex(start)) {\n return this.thru(interceptor);\n }\n value = value.slice(start, +start + (length ? 1 : 0));\n value.__actions__.push({\n 'func': thru,\n 'args': [interceptor],\n 'thisArg': undefined\n });\n return new LodashWrapper(value, this.__chain__).thru(function(array) {\n if (length && !array.length) {\n array.push(undefined);\n }\n return array;\n });\n });\n\n /**\n * Creates a `lodash` wrapper instance with explicit method chain sequences enabled.\n *\n * @name chain\n * @memberOf _\n * @since 0.1.0\n * @category Seq\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36 },\n * { 'user': 'fred', 'age': 40 }\n * ];\n *\n * // A sequence without explicit chaining.\n * _(users).head();\n * // => { 'user': 'barney', 'age': 36 }\n *\n * // A sequence with explicit chaining.\n * _(users)\n * .chain()\n * .head()\n * .pick('user')\n * .value();\n * // => { 'user': 'barney' }\n */\n function wrapperChain() {\n return chain(this);\n }\n\n /**\n * Executes the chain sequence and returns the wrapped result.\n *\n * @name commit\n * @memberOf _\n * @since 3.2.0\n * @category Seq\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * var array = [1, 2];\n * var wrapped = _(array).push(3);\n *\n * console.log(array);\n * // => [1, 2]\n *\n * wrapped = wrapped.commit();\n * console.log(array);\n * // => [1, 2, 3]\n *\n * wrapped.last();\n * // => 3\n *\n * console.log(array);\n * // => [1, 2, 3]\n */\n function wrapperCommit() {\n return new LodashWrapper(this.value(), this.__chain__);\n }\n\n /**\n * Gets the next value on a wrapped object following the\n * [iterator protocol](https://mdn.io/iteration_protocols#iterator).\n *\n * @name next\n * @memberOf _\n * @since 4.0.0\n * @category Seq\n * @returns {Object} Returns the next iterator value.\n * @example\n *\n * var wrapped = _([1, 2]);\n *\n * wrapped.next();\n * // => { 'done': false, 'value': 1 }\n *\n * wrapped.next();\n * // => { 'done': false, 'value': 2 }\n *\n * wrapped.next();\n * // => { 'done': true, 'value': undefined }\n */\n function wrapperNext() {\n if (this.__values__ === undefined) {\n this.__values__ = toArray(this.value());\n }\n var done = this.__index__ >= this.__values__.length,\n value = done ? undefined : this.__values__[this.__index__++];\n\n return { 'done': done, 'value': value };\n }\n\n /**\n * Enables the wrapper to be iterable.\n *\n * @name Symbol.iterator\n * @memberOf _\n * @since 4.0.0\n * @category Seq\n * @returns {Object} Returns the wrapper object.\n * @example\n *\n * var wrapped = _([1, 2]);\n *\n * wrapped[Symbol.iterator]() === wrapped;\n * // => true\n *\n * Array.from(wrapped);\n * // => [1, 2]\n */\n function wrapperToIterator() {\n return this;\n }\n\n /**\n * Creates a clone of the chain sequence planting `value` as the wrapped value.\n *\n * @name plant\n * @memberOf _\n * @since 3.2.0\n * @category Seq\n * @param {*} value The value to plant.\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * function square(n) {\n * return n * n;\n * }\n *\n * var wrapped = _([1, 2]).map(square);\n * var other = wrapped.plant([3, 4]);\n *\n * other.value();\n * // => [9, 16]\n *\n * wrapped.value();\n * // => [1, 4]\n */\n function wrapperPlant(value) {\n var result,\n parent = this;\n\n while (parent instanceof baseLodash) {\n var clone = wrapperClone(parent);\n clone.__index__ = 0;\n clone.__values__ = undefined;\n if (result) {\n previous.__wrapped__ = clone;\n } else {\n result = clone;\n }\n var previous = clone;\n parent = parent.__wrapped__;\n }\n previous.__wrapped__ = value;\n return result;\n }\n\n /**\n * This method is the wrapper version of `_.reverse`.\n *\n * **Note:** This method mutates the wrapped array.\n *\n * @name reverse\n * @memberOf _\n * @since 0.1.0\n * @category Seq\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * var array = [1, 2, 3];\n *\n * _(array).reverse().value()\n * // => [3, 2, 1]\n *\n * console.log(array);\n * // => [3, 2, 1]\n */\n function wrapperReverse() {\n var value = this.__wrapped__;\n if (value instanceof LazyWrapper) {\n var wrapped = value;\n if (this.__actions__.length) {\n wrapped = new LazyWrapper(this);\n }\n wrapped = wrapped.reverse();\n wrapped.__actions__.push({\n 'func': thru,\n 'args': [reverse],\n 'thisArg': undefined\n });\n return new LodashWrapper(wrapped, this.__chain__);\n }\n return this.thru(reverse);\n }\n\n /**\n * Executes the chain sequence to resolve the unwrapped value.\n *\n * @name value\n * @memberOf _\n * @since 0.1.0\n * @alias toJSON, valueOf\n * @category Seq\n * @returns {*} Returns the resolved unwrapped value.\n * @example\n *\n * _([1, 2, 3]).value();\n * // => [1, 2, 3]\n */\n function wrapperValue() {\n return baseWrapperValue(this.__wrapped__, this.__actions__);\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates an object composed of keys generated from the results of running\n * each element of `collection` thru `iteratee`. The corresponding value of\n * each key is the number of times the key was returned by `iteratee`. The\n * iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 0.5.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The iteratee to transform keys.\n * @returns {Object} Returns the composed aggregate object.\n * @example\n *\n * _.countBy([6.1, 4.2, 6.3], Math.floor);\n * // => { '4': 1, '6': 2 }\n *\n * // The `_.property` iteratee shorthand.\n * _.countBy(['one', 'two', 'three'], 'length');\n * // => { '3': 2, '5': 1 }\n */\n var countBy = createAggregator(function(result, value, key) {\n if (hasOwnProperty.call(result, key)) {\n ++result[key];\n } else {\n baseAssignValue(result, key, 1);\n }\n });\n\n /**\n * Checks if `predicate` returns truthy for **all** elements of `collection`.\n * Iteration is stopped once `predicate` returns falsey. The predicate is\n * invoked with three arguments: (value, index|key, collection).\n *\n * **Note:** This method returns `true` for\n * [empty collections](https://en.wikipedia.org/wiki/Empty_set) because\n * [everything is true](https://en.wikipedia.org/wiki/Vacuous_truth) of\n * elements of empty collections.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {boolean} Returns `true` if all elements pass the predicate check,\n * else `false`.\n * @example\n *\n * _.every([true, 1, null, 'yes'], Boolean);\n * // => false\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': false },\n * { 'user': 'fred', 'age': 40, 'active': false }\n * ];\n *\n * // The `_.matches` iteratee shorthand.\n * _.every(users, { 'user': 'barney', 'active': false });\n * // => false\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.every(users, ['active', false]);\n * // => true\n *\n * // The `_.property` iteratee shorthand.\n * _.every(users, 'active');\n * // => false\n */\n function every(collection, predicate, guard) {\n var func = isArray(collection) ? arrayEvery : baseEvery;\n if (guard && isIterateeCall(collection, predicate, guard)) {\n predicate = undefined;\n }\n return func(collection, getIteratee(predicate, 3));\n }\n\n /**\n * Iterates over elements of `collection`, returning an array of all elements\n * `predicate` returns truthy for. The predicate is invoked with three\n * arguments: (value, index|key, collection).\n *\n * **Note:** Unlike `_.remove`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n * @see _.reject\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': true },\n * { 'user': 'fred', 'age': 40, 'active': false }\n * ];\n *\n * _.filter(users, function(o) { return !o.active; });\n * // => objects for ['fred']\n *\n * // The `_.matches` iteratee shorthand.\n * _.filter(users, { 'age': 36, 'active': true });\n * // => objects for ['barney']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.filter(users, ['active', false]);\n * // => objects for ['fred']\n *\n * // The `_.property` iteratee shorthand.\n * _.filter(users, 'active');\n * // => objects for ['barney']\n */\n function filter(collection, predicate) {\n var func = isArray(collection) ? arrayFilter : baseFilter;\n return func(collection, getIteratee(predicate, 3));\n }\n\n /**\n * Iterates over elements of `collection`, returning the first element\n * `predicate` returns truthy for. The predicate is invoked with three\n * arguments: (value, index|key, collection).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=0] The index to search from.\n * @returns {*} Returns the matched element, else `undefined`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': true },\n * { 'user': 'fred', 'age': 40, 'active': false },\n * { 'user': 'pebbles', 'age': 1, 'active': true }\n * ];\n *\n * _.find(users, function(o) { return o.age < 40; });\n * // => object for 'barney'\n *\n * // The `_.matches` iteratee shorthand.\n * _.find(users, { 'age': 1, 'active': true });\n * // => object for 'pebbles'\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.find(users, ['active', false]);\n * // => object for 'fred'\n *\n * // The `_.property` iteratee shorthand.\n * _.find(users, 'active');\n * // => object for 'barney'\n */\n var find = createFind(findIndex);\n\n /**\n * This method is like `_.find` except that it iterates over elements of\n * `collection` from right to left.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=collection.length-1] The index to search from.\n * @returns {*} Returns the matched element, else `undefined`.\n * @example\n *\n * _.findLast([1, 2, 3, 4], function(n) {\n * return n % 2 == 1;\n * });\n * // => 3\n */\n var findLast = createFind(findLastIndex);\n\n /**\n * Creates a flattened array of values by running each element in `collection`\n * thru `iteratee` and flattening the mapped results. The iteratee is invoked\n * with three arguments: (value, index|key, collection).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * function duplicate(n) {\n * return [n, n];\n * }\n *\n * _.flatMap([1, 2], duplicate);\n * // => [1, 1, 2, 2]\n */\n function flatMap(collection, iteratee) {\n return baseFlatten(map(collection, iteratee), 1);\n }\n\n /**\n * This method is like `_.flatMap` except that it recursively flattens the\n * mapped results.\n *\n * @static\n * @memberOf _\n * @since 4.7.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * function duplicate(n) {\n * return [[[n, n]]];\n * }\n *\n * _.flatMapDeep([1, 2], duplicate);\n * // => [1, 1, 2, 2]\n */\n function flatMapDeep(collection, iteratee) {\n return baseFlatten(map(collection, iteratee), INFINITY);\n }\n\n /**\n * This method is like `_.flatMap` except that it recursively flattens the\n * mapped results up to `depth` times.\n *\n * @static\n * @memberOf _\n * @since 4.7.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @param {number} [depth=1] The maximum recursion depth.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * function duplicate(n) {\n * return [[[n, n]]];\n * }\n *\n * _.flatMapDepth([1, 2], duplicate, 2);\n * // => [[1, 1], [2, 2]]\n */\n function flatMapDepth(collection, iteratee, depth) {\n depth = depth === undefined ? 1 : toInteger(depth);\n return baseFlatten(map(collection, iteratee), depth);\n }\n\n /**\n * Iterates over elements of `collection` and invokes `iteratee` for each element.\n * The iteratee is invoked with three arguments: (value, index|key, collection).\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * **Note:** As with other \"Collections\" methods, objects with a \"length\"\n * property are iterated like arrays. To avoid this behavior use `_.forIn`\n * or `_.forOwn` for object iteration.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @alias each\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n * @see _.forEachRight\n * @example\n *\n * _.forEach([1, 2], function(value) {\n * console.log(value);\n * });\n * // => Logs `1` then `2`.\n *\n * _.forEach({ 'a': 1, 'b': 2 }, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'a' then 'b' (iteration order is not guaranteed).\n */\n function forEach(collection, iteratee) {\n var func = isArray(collection) ? arrayEach : baseEach;\n return func(collection, getIteratee(iteratee, 3));\n }\n\n /**\n * This method is like `_.forEach` except that it iterates over elements of\n * `collection` from right to left.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @alias eachRight\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n * @see _.forEach\n * @example\n *\n * _.forEachRight([1, 2], function(value) {\n * console.log(value);\n * });\n * // => Logs `2` then `1`.\n */\n function forEachRight(collection, iteratee) {\n var func = isArray(collection) ? arrayEachRight : baseEachRight;\n return func(collection, getIteratee(iteratee, 3));\n }\n\n /**\n * Creates an object composed of keys generated from the results of running\n * each element of `collection` thru `iteratee`. The order of grouped values\n * is determined by the order they occur in `collection`. The corresponding\n * value of each key is an array of elements responsible for generating the\n * key. The iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The iteratee to transform keys.\n * @returns {Object} Returns the composed aggregate object.\n * @example\n *\n * _.groupBy([6.1, 4.2, 6.3], Math.floor);\n * // => { '4': [4.2], '6': [6.1, 6.3] }\n *\n * // The `_.property` iteratee shorthand.\n * _.groupBy(['one', 'two', 'three'], 'length');\n * // => { '3': ['one', 'two'], '5': ['three'] }\n */\n var groupBy = createAggregator(function(result, value, key) {\n if (hasOwnProperty.call(result, key)) {\n result[key].push(value);\n } else {\n baseAssignValue(result, key, [value]);\n }\n });\n\n /**\n * Checks if `value` is in `collection`. If `collection` is a string, it's\n * checked for a substring of `value`, otherwise\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * is used for equality comparisons. If `fromIndex` is negative, it's used as\n * the offset from the end of `collection`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object|string} collection The collection to inspect.\n * @param {*} value The value to search for.\n * @param {number} [fromIndex=0] The index to search from.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.\n * @returns {boolean} Returns `true` if `value` is found, else `false`.\n * @example\n *\n * _.includes([1, 2, 3], 1);\n * // => true\n *\n * _.includes([1, 2, 3], 1, 2);\n * // => false\n *\n * _.includes({ 'a': 1, 'b': 2 }, 1);\n * // => true\n *\n * _.includes('abcd', 'bc');\n * // => true\n */\n function includes(collection, value, fromIndex, guard) {\n collection = isArrayLike(collection) ? collection : values(collection);\n fromIndex = (fromIndex && !guard) ? toInteger(fromIndex) : 0;\n\n var length = collection.length;\n if (fromIndex < 0) {\n fromIndex = nativeMax(length + fromIndex, 0);\n }\n return isString(collection)\n ? (fromIndex <= length && collection.indexOf(value, fromIndex) > -1)\n : (!!length && baseIndexOf(collection, value, fromIndex) > -1);\n }\n\n /**\n * Invokes the method at `path` of each element in `collection`, returning\n * an array of the results of each invoked method. Any additional arguments\n * are provided to each invoked method. If `path` is a function, it's invoked\n * for, and `this` bound to, each element in `collection`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Array|Function|string} path The path of the method to invoke or\n * the function invoked per iteration.\n * @param {...*} [args] The arguments to invoke each method with.\n * @returns {Array} Returns the array of results.\n * @example\n *\n * _.invokeMap([[5, 1, 7], [3, 2, 1]], 'sort');\n * // => [[1, 5, 7], [1, 2, 3]]\n *\n * _.invokeMap([123, 456], String.prototype.split, '');\n * // => [['1', '2', '3'], ['4', '5', '6']]\n */\n var invokeMap = baseRest(function(collection, path, args) {\n var index = -1,\n isFunc = typeof path == 'function',\n result = isArrayLike(collection) ? Array(collection.length) : [];\n\n baseEach(collection, function(value) {\n result[++index] = isFunc ? apply(path, value, args) : baseInvoke(value, path, args);\n });\n return result;\n });\n\n /**\n * Creates an object composed of keys generated from the results of running\n * each element of `collection` thru `iteratee`. The corresponding value of\n * each key is the last element responsible for generating the key. The\n * iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The iteratee to transform keys.\n * @returns {Object} Returns the composed aggregate object.\n * @example\n *\n * var array = [\n * { 'dir': 'left', 'code': 97 },\n * { 'dir': 'right', 'code': 100 }\n * ];\n *\n * _.keyBy(array, function(o) {\n * return String.fromCharCode(o.code);\n * });\n * // => { 'a': { 'dir': 'left', 'code': 97 }, 'd': { 'dir': 'right', 'code': 100 } }\n *\n * _.keyBy(array, 'dir');\n * // => { 'left': { 'dir': 'left', 'code': 97 }, 'right': { 'dir': 'right', 'code': 100 } }\n */\n var keyBy = createAggregator(function(result, value, key) {\n baseAssignValue(result, key, value);\n });\n\n /**\n * Creates an array of values by running each element in `collection` thru\n * `iteratee`. The iteratee is invoked with three arguments:\n * (value, index|key, collection).\n *\n * Many lodash methods are guarded to work as iteratees for methods like\n * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.\n *\n * The guarded methods are:\n * `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`,\n * `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`,\n * `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`,\n * `template`, `trim`, `trimEnd`, `trimStart`, and `words`\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n * @example\n *\n * function square(n) {\n * return n * n;\n * }\n *\n * _.map([4, 8], square);\n * // => [16, 64]\n *\n * _.map({ 'a': 4, 'b': 8 }, square);\n * // => [16, 64] (iteration order is not guaranteed)\n *\n * var users = [\n * { 'user': 'barney' },\n * { 'user': 'fred' }\n * ];\n *\n * // The `_.property` iteratee shorthand.\n * _.map(users, 'user');\n * // => ['barney', 'fred']\n */\n function map(collection, iteratee) {\n var func = isArray(collection) ? arrayMap : baseMap;\n return func(collection, getIteratee(iteratee, 3));\n }\n\n /**\n * This method is like `_.sortBy` except that it allows specifying the sort\n * orders of the iteratees to sort by. If `orders` is unspecified, all values\n * are sorted in ascending order. Otherwise, specify an order of \"desc\" for\n * descending or \"asc\" for ascending sort order of corresponding values.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Array[]|Function[]|Object[]|string[]} [iteratees=[_.identity]]\n * The iteratees to sort by.\n * @param {string[]} [orders] The sort orders of `iteratees`.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.\n * @returns {Array} Returns the new sorted array.\n * @example\n *\n * var users = [\n * { 'user': 'fred', 'age': 48 },\n * { 'user': 'barney', 'age': 34 },\n * { 'user': 'fred', 'age': 40 },\n * { 'user': 'barney', 'age': 36 }\n * ];\n *\n * // Sort by `user` in ascending order and by `age` in descending order.\n * _.orderBy(users, ['user', 'age'], ['asc', 'desc']);\n * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]\n */\n function orderBy(collection, iteratees, orders, guard) {\n if (collection == null) {\n return [];\n }\n if (!isArray(iteratees)) {\n iteratees = iteratees == null ? [] : [iteratees];\n }\n orders = guard ? undefined : orders;\n if (!isArray(orders)) {\n orders = orders == null ? [] : [orders];\n }\n return baseOrderBy(collection, iteratees, orders);\n }\n\n /**\n * Creates an array of elements split into two groups, the first of which\n * contains elements `predicate` returns truthy for, the second of which\n * contains elements `predicate` returns falsey for. The predicate is\n * invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the array of grouped elements.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': false },\n * { 'user': 'fred', 'age': 40, 'active': true },\n * { 'user': 'pebbles', 'age': 1, 'active': false }\n * ];\n *\n * _.partition(users, function(o) { return o.active; });\n * // => objects for [['fred'], ['barney', 'pebbles']]\n *\n * // The `_.matches` iteratee shorthand.\n * _.partition(users, { 'age': 1, 'active': false });\n * // => objects for [['pebbles'], ['barney', 'fred']]\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.partition(users, ['active', false]);\n * // => objects for [['barney', 'pebbles'], ['fred']]\n *\n * // The `_.property` iteratee shorthand.\n * _.partition(users, 'active');\n * // => objects for [['fred'], ['barney', 'pebbles']]\n */\n var partition = createAggregator(function(result, value, key) {\n result[key ? 0 : 1].push(value);\n }, function() { return [[], []]; });\n\n /**\n * Reduces `collection` to a value which is the accumulated result of running\n * each element in `collection` thru `iteratee`, where each successive\n * invocation is supplied the return value of the previous. If `accumulator`\n * is not given, the first element of `collection` is used as the initial\n * value. The iteratee is invoked with four arguments:\n * (accumulator, value, index|key, collection).\n *\n * Many lodash methods are guarded to work as iteratees for methods like\n * `_.reduce`, `_.reduceRight`, and `_.transform`.\n *\n * The guarded methods are:\n * `assign`, `defaults`, `defaultsDeep`, `includes`, `merge`, `orderBy`,\n * and `sortBy`\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @returns {*} Returns the accumulated value.\n * @see _.reduceRight\n * @example\n *\n * _.reduce([1, 2], function(sum, n) {\n * return sum + n;\n * }, 0);\n * // => 3\n *\n * _.reduce({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {\n * (result[value] || (result[value] = [])).push(key);\n * return result;\n * }, {});\n * // => { '1': ['a', 'c'], '2': ['b'] } (iteration order is not guaranteed)\n */\n function reduce(collection, iteratee, accumulator) {\n var func = isArray(collection) ? arrayReduce : baseReduce,\n initAccum = arguments.length < 3;\n\n return func(collection, getIteratee(iteratee, 4), accumulator, initAccum, baseEach);\n }\n\n /**\n * This method is like `_.reduce` except that it iterates over elements of\n * `collection` from right to left.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @returns {*} Returns the accumulated value.\n * @see _.reduce\n * @example\n *\n * var array = [[0, 1], [2, 3], [4, 5]];\n *\n * _.reduceRight(array, function(flattened, other) {\n * return flattened.concat(other);\n * }, []);\n * // => [4, 5, 2, 3, 0, 1]\n */\n function reduceRight(collection, iteratee, accumulator) {\n var func = isArray(collection) ? arrayReduceRight : baseReduce,\n initAccum = arguments.length < 3;\n\n return func(collection, getIteratee(iteratee, 4), accumulator, initAccum, baseEachRight);\n }\n\n /**\n * The opposite of `_.filter`; this method returns the elements of `collection`\n * that `predicate` does **not** return truthy for.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n * @see _.filter\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': false },\n * { 'user': 'fred', 'age': 40, 'active': true }\n * ];\n *\n * _.reject(users, function(o) { return !o.active; });\n * // => objects for ['fred']\n *\n * // The `_.matches` iteratee shorthand.\n * _.reject(users, { 'age': 40, 'active': true });\n * // => objects for ['barney']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.reject(users, ['active', false]);\n * // => objects for ['fred']\n *\n * // The `_.property` iteratee shorthand.\n * _.reject(users, 'active');\n * // => objects for ['barney']\n */\n function reject(collection, predicate) {\n var func = isArray(collection) ? arrayFilter : baseFilter;\n return func(collection, negate(getIteratee(predicate, 3)));\n }\n\n /**\n * Gets a random element from `collection`.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to sample.\n * @returns {*} Returns the random element.\n * @example\n *\n * _.sample([1, 2, 3, 4]);\n * // => 2\n */\n function sample(collection) {\n var func = isArray(collection) ? arraySample : baseSample;\n return func(collection);\n }\n\n /**\n * Gets `n` random elements at unique keys from `collection` up to the\n * size of `collection`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to sample.\n * @param {number} [n=1] The number of elements to sample.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the random elements.\n * @example\n *\n * _.sampleSize([1, 2, 3], 2);\n * // => [3, 1]\n *\n * _.sampleSize([1, 2, 3], 4);\n * // => [2, 3, 1]\n */\n function sampleSize(collection, n, guard) {\n if ((guard ? isIterateeCall(collection, n, guard) : n === undefined)) {\n n = 1;\n } else {\n n = toInteger(n);\n }\n var func = isArray(collection) ? arraySampleSize : baseSampleSize;\n return func(collection, n);\n }\n\n /**\n * Creates an array of shuffled values, using a version of the\n * [Fisher-Yates shuffle](https://en.wikipedia.org/wiki/Fisher-Yates_shuffle).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to shuffle.\n * @returns {Array} Returns the new shuffled array.\n * @example\n *\n * _.shuffle([1, 2, 3, 4]);\n * // => [4, 1, 3, 2]\n */\n function shuffle(collection) {\n var func = isArray(collection) ? arrayShuffle : baseShuffle;\n return func(collection);\n }\n\n /**\n * Gets the size of `collection` by returning its length for array-like\n * values or the number of own enumerable string keyed properties for objects.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object|string} collection The collection to inspect.\n * @returns {number} Returns the collection size.\n * @example\n *\n * _.size([1, 2, 3]);\n * // => 3\n *\n * _.size({ 'a': 1, 'b': 2 });\n * // => 2\n *\n * _.size('pebbles');\n * // => 7\n */\n function size(collection) {\n if (collection == null) {\n return 0;\n }\n if (isArrayLike(collection)) {\n return isString(collection) ? stringSize(collection) : collection.length;\n }\n var tag = getTag(collection);\n if (tag == mapTag || tag == setTag) {\n return collection.size;\n }\n return baseKeys(collection).length;\n }\n\n /**\n * Checks if `predicate` returns truthy for **any** element of `collection`.\n * Iteration is stopped once `predicate` returns truthy. The predicate is\n * invoked with three arguments: (value, index|key, collection).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {boolean} Returns `true` if any element passes the predicate check,\n * else `false`.\n * @example\n *\n * _.some([null, 0, 'yes', false], Boolean);\n * // => true\n *\n * var users = [\n * { 'user': 'barney', 'active': true },\n * { 'user': 'fred', 'active': false }\n * ];\n *\n * // The `_.matches` iteratee shorthand.\n * _.some(users, { 'user': 'barney', 'active': false });\n * // => false\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.some(users, ['active', false]);\n * // => true\n *\n * // The `_.property` iteratee shorthand.\n * _.some(users, 'active');\n * // => true\n */\n function some(collection, predicate, guard) {\n var func = isArray(collection) ? arraySome : baseSome;\n if (guard && isIterateeCall(collection, predicate, guard)) {\n predicate = undefined;\n }\n return func(collection, getIteratee(predicate, 3));\n }\n\n /**\n * Creates an array of elements, sorted in ascending order by the results of\n * running each element in a collection thru each iteratee. This method\n * performs a stable sort, that is, it preserves the original sort order of\n * equal elements. The iteratees are invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {...(Function|Function[])} [iteratees=[_.identity]]\n * The iteratees to sort by.\n * @returns {Array} Returns the new sorted array.\n * @example\n *\n * var users = [\n * { 'user': 'fred', 'age': 48 },\n * { 'user': 'barney', 'age': 36 },\n * { 'user': 'fred', 'age': 40 },\n * { 'user': 'barney', 'age': 34 }\n * ];\n *\n * _.sortBy(users, [function(o) { return o.user; }]);\n * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]\n *\n * _.sortBy(users, ['user', 'age']);\n * // => objects for [['barney', 34], ['barney', 36], ['fred', 40], ['fred', 48]]\n */\n var sortBy = baseRest(function(collection, iteratees) {\n if (collection == null) {\n return [];\n }\n var length = iteratees.length;\n if (length > 1 && isIterateeCall(collection, iteratees[0], iteratees[1])) {\n iteratees = [];\n } else if (length > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2])) {\n iteratees = [iteratees[0]];\n }\n return baseOrderBy(collection, baseFlatten(iteratees, 1), []);\n });\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\n var now = ctxNow || function() {\n return root.Date.now();\n };\n\n /*------------------------------------------------------------------------*/\n\n /**\n * The opposite of `_.before`; this method creates a function that invokes\n * `func` once it's called `n` or more times.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {number} n The number of calls before `func` is invoked.\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new restricted function.\n * @example\n *\n * var saves = ['profile', 'settings'];\n *\n * var done = _.after(saves.length, function() {\n * console.log('done saving!');\n * });\n *\n * _.forEach(saves, function(type) {\n * asyncSave({ 'type': type, 'complete': done });\n * });\n * // => Logs 'done saving!' after the two async saves have completed.\n */\n function after(n, func) {\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n n = toInteger(n);\n return function() {\n if (--n < 1) {\n return func.apply(this, arguments);\n }\n };\n }\n\n /**\n * Creates a function that invokes `func`, with up to `n` arguments,\n * ignoring any additional arguments.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {Function} func The function to cap arguments for.\n * @param {number} [n=func.length] The arity cap.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Function} Returns the new capped function.\n * @example\n *\n * _.map(['6', '8', '10'], _.ary(parseInt, 1));\n * // => [6, 8, 10]\n */\n function ary(func, n, guard) {\n n = guard ? undefined : n;\n n = (func && n == null) ? func.length : n;\n return createWrap(func, WRAP_ARY_FLAG, undefined, undefined, undefined, undefined, n);\n }\n\n /**\n * Creates a function that invokes `func`, with the `this` binding and arguments\n * of the created function, while it's called less than `n` times. Subsequent\n * calls to the created function return the result of the last `func` invocation.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {number} n The number of calls at which `func` is no longer invoked.\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new restricted function.\n * @example\n *\n * jQuery(element).on('click', _.before(5, addContactToList));\n * // => Allows adding up to 4 contacts to the list.\n */\n function before(n, func) {\n var result;\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n n = toInteger(n);\n return function() {\n if (--n > 0) {\n result = func.apply(this, arguments);\n }\n if (n <= 1) {\n func = undefined;\n }\n return result;\n };\n }\n\n /**\n * Creates a function that invokes `func` with the `this` binding of `thisArg`\n * and `partials` prepended to the arguments it receives.\n *\n * The `_.bind.placeholder` value, which defaults to `_` in monolithic builds,\n * may be used as a placeholder for partially applied arguments.\n *\n * **Note:** Unlike native `Function#bind`, this method doesn't set the \"length\"\n * property of bound functions.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to bind.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {...*} [partials] The arguments to be partially applied.\n * @returns {Function} Returns the new bound function.\n * @example\n *\n * function greet(greeting, punctuation) {\n * return greeting + ' ' + this.user + punctuation;\n * }\n *\n * var object = { 'user': 'fred' };\n *\n * var bound = _.bind(greet, object, 'hi');\n * bound('!');\n * // => 'hi fred!'\n *\n * // Bound with placeholders.\n * var bound = _.bind(greet, object, _, '!');\n * bound('hi');\n * // => 'hi fred!'\n */\n var bind = baseRest(function(func, thisArg, partials) {\n var bitmask = WRAP_BIND_FLAG;\n if (partials.length) {\n var holders = replaceHolders(partials, getHolder(bind));\n bitmask |= WRAP_PARTIAL_FLAG;\n }\n return createWrap(func, bitmask, thisArg, partials, holders);\n });\n\n /**\n * Creates a function that invokes the method at `object[key]` with `partials`\n * prepended to the arguments it receives.\n *\n * This method differs from `_.bind` by allowing bound functions to reference\n * methods that may be redefined or don't yet exist. See\n * [Peter Michaux's article](http://peter.michaux.ca/articles/lazy-function-definition-pattern)\n * for more details.\n *\n * The `_.bindKey.placeholder` value, which defaults to `_` in monolithic\n * builds, may be used as a placeholder for partially applied arguments.\n *\n * @static\n * @memberOf _\n * @since 0.10.0\n * @category Function\n * @param {Object} object The object to invoke the method on.\n * @param {string} key The key of the method.\n * @param {...*} [partials] The arguments to be partially applied.\n * @returns {Function} Returns the new bound function.\n * @example\n *\n * var object = {\n * 'user': 'fred',\n * 'greet': function(greeting, punctuation) {\n * return greeting + ' ' + this.user + punctuation;\n * }\n * };\n *\n * var bound = _.bindKey(object, 'greet', 'hi');\n * bound('!');\n * // => 'hi fred!'\n *\n * object.greet = function(greeting, punctuation) {\n * return greeting + 'ya ' + this.user + punctuation;\n * };\n *\n * bound('!');\n * // => 'hiya fred!'\n *\n * // Bound with placeholders.\n * var bound = _.bindKey(object, 'greet', _, '!');\n * bound('hi');\n * // => 'hiya fred!'\n */\n var bindKey = baseRest(function(object, key, partials) {\n var bitmask = WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG;\n if (partials.length) {\n var holders = replaceHolders(partials, getHolder(bindKey));\n bitmask |= WRAP_PARTIAL_FLAG;\n }\n return createWrap(key, bitmask, object, partials, holders);\n });\n\n /**\n * Creates a function that accepts arguments of `func` and either invokes\n * `func` returning its result, if at least `arity` number of arguments have\n * been provided, or returns a function that accepts the remaining `func`\n * arguments, and so on. The arity of `func` may be specified if `func.length`\n * is not sufficient.\n *\n * The `_.curry.placeholder` value, which defaults to `_` in monolithic builds,\n * may be used as a placeholder for provided arguments.\n *\n * **Note:** This method doesn't set the \"length\" property of curried functions.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Function\n * @param {Function} func The function to curry.\n * @param {number} [arity=func.length] The arity of `func`.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Function} Returns the new curried function.\n * @example\n *\n * var abc = function(a, b, c) {\n * return [a, b, c];\n * };\n *\n * var curried = _.curry(abc);\n *\n * curried(1)(2)(3);\n * // => [1, 2, 3]\n *\n * curried(1, 2)(3);\n * // => [1, 2, 3]\n *\n * curried(1, 2, 3);\n * // => [1, 2, 3]\n *\n * // Curried with placeholders.\n * curried(1)(_, 3)(2);\n * // => [1, 2, 3]\n */\n function curry(func, arity, guard) {\n arity = guard ? undefined : arity;\n var result = createWrap(func, WRAP_CURRY_FLAG, undefined, undefined, undefined, undefined, undefined, arity);\n result.placeholder = curry.placeholder;\n return result;\n }\n\n /**\n * This method is like `_.curry` except that arguments are applied to `func`\n * in the manner of `_.partialRight` instead of `_.partial`.\n *\n * The `_.curryRight.placeholder` value, which defaults to `_` in monolithic\n * builds, may be used as a placeholder for provided arguments.\n *\n * **Note:** This method doesn't set the \"length\" property of curried functions.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {Function} func The function to curry.\n * @param {number} [arity=func.length] The arity of `func`.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Function} Returns the new curried function.\n * @example\n *\n * var abc = function(a, b, c) {\n * return [a, b, c];\n * };\n *\n * var curried = _.curryRight(abc);\n *\n * curried(3)(2)(1);\n * // => [1, 2, 3]\n *\n * curried(2, 3)(1);\n * // => [1, 2, 3]\n *\n * curried(1, 2, 3);\n * // => [1, 2, 3]\n *\n * // Curried with placeholders.\n * curried(3)(1, _)(2);\n * // => [1, 2, 3]\n */\n function curryRight(func, arity, guard) {\n arity = guard ? undefined : arity;\n var result = createWrap(func, WRAP_CURRY_RIGHT_FLAG, undefined, undefined, undefined, undefined, undefined, arity);\n result.placeholder = curryRight.placeholder;\n return result;\n }\n\n /**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\n function debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n timeWaiting = wait - timeSinceLastCall;\n\n return maxing\n ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)\n : timeWaiting;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n }\n\n /**\n * Defers invoking the `func` until the current call stack has cleared. Any\n * additional arguments are provided to `func` when it's invoked.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to defer.\n * @param {...*} [args] The arguments to invoke `func` with.\n * @returns {number} Returns the timer id.\n * @example\n *\n * _.defer(function(text) {\n * console.log(text);\n * }, 'deferred');\n * // => Logs 'deferred' after one millisecond.\n */\n var defer = baseRest(function(func, args) {\n return baseDelay(func, 1, args);\n });\n\n /**\n * Invokes `func` after `wait` milliseconds. Any additional arguments are\n * provided to `func` when it's invoked.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to delay.\n * @param {number} wait The number of milliseconds to delay invocation.\n * @param {...*} [args] The arguments to invoke `func` with.\n * @returns {number} Returns the timer id.\n * @example\n *\n * _.delay(function(text) {\n * console.log(text);\n * }, 1000, 'later');\n * // => Logs 'later' after one second.\n */\n var delay = baseRest(function(func, wait, args) {\n return baseDelay(func, toNumber(wait) || 0, args);\n });\n\n /**\n * Creates a function that invokes `func` with arguments reversed.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Function\n * @param {Function} func The function to flip arguments for.\n * @returns {Function} Returns the new flipped function.\n * @example\n *\n * var flipped = _.flip(function() {\n * return _.toArray(arguments);\n * });\n *\n * flipped('a', 'b', 'c', 'd');\n * // => ['d', 'c', 'b', 'a']\n */\n function flip(func) {\n return createWrap(func, WRAP_FLIP_FLAG);\n }\n\n /**\n * Creates a function that memoizes the result of `func`. If `resolver` is\n * provided, it determines the cache key for storing the result based on the\n * arguments provided to the memoized function. By default, the first argument\n * provided to the memoized function is used as the map cache key. The `func`\n * is invoked with the `this` binding of the memoized function.\n *\n * **Note:** The cache is exposed as the `cache` property on the memoized\n * function. Its creation may be customized by replacing the `_.memoize.Cache`\n * constructor with one whose instances implement the\n * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)\n * method interface of `clear`, `delete`, `get`, `has`, and `set`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to have its output memoized.\n * @param {Function} [resolver] The function to resolve the cache key.\n * @returns {Function} Returns the new memoized function.\n * @example\n *\n * var object = { 'a': 1, 'b': 2 };\n * var other = { 'c': 3, 'd': 4 };\n *\n * var values = _.memoize(_.values);\n * values(object);\n * // => [1, 2]\n *\n * values(other);\n * // => [3, 4]\n *\n * object.a = 2;\n * values(object);\n * // => [1, 2]\n *\n * // Modify the result cache.\n * values.cache.set(object, ['a', 'b']);\n * values(object);\n * // => ['a', 'b']\n *\n * // Replace `_.memoize.Cache`.\n * _.memoize.Cache = WeakMap;\n */\n function memoize(func, resolver) {\n if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n var memoized = function() {\n var args = arguments,\n key = resolver ? resolver.apply(this, args) : args[0],\n cache = memoized.cache;\n\n if (cache.has(key)) {\n return cache.get(key);\n }\n var result = func.apply(this, args);\n memoized.cache = cache.set(key, result) || cache;\n return result;\n };\n memoized.cache = new (memoize.Cache || MapCache);\n return memoized;\n }\n\n // Expose `MapCache`.\n memoize.Cache = MapCache;\n\n /**\n * Creates a function that negates the result of the predicate `func`. The\n * `func` predicate is invoked with the `this` binding and arguments of the\n * created function.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {Function} predicate The predicate to negate.\n * @returns {Function} Returns the new negated function.\n * @example\n *\n * function isEven(n) {\n * return n % 2 == 0;\n * }\n *\n * _.filter([1, 2, 3, 4, 5, 6], _.negate(isEven));\n * // => [1, 3, 5]\n */\n function negate(predicate) {\n if (typeof predicate != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n return function() {\n var args = arguments;\n switch (args.length) {\n case 0: return !predicate.call(this);\n case 1: return !predicate.call(this, args[0]);\n case 2: return !predicate.call(this, args[0], args[1]);\n case 3: return !predicate.call(this, args[0], args[1], args[2]);\n }\n return !predicate.apply(this, args);\n };\n }\n\n /**\n * Creates a function that is restricted to invoking `func` once. Repeat calls\n * to the function return the value of the first invocation. The `func` is\n * invoked with the `this` binding and arguments of the created function.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new restricted function.\n * @example\n *\n * var initialize = _.once(createApplication);\n * initialize();\n * initialize();\n * // => `createApplication` is invoked once\n */\n function once(func) {\n return before(2, func);\n }\n\n /**\n * Creates a function that invokes `func` with its arguments transformed.\n *\n * @static\n * @since 4.0.0\n * @memberOf _\n * @category Function\n * @param {Function} func The function to wrap.\n * @param {...(Function|Function[])} [transforms=[_.identity]]\n * The argument transforms.\n * @returns {Function} Returns the new function.\n * @example\n *\n * function doubled(n) {\n * return n * 2;\n * }\n *\n * function square(n) {\n * return n * n;\n * }\n *\n * var func = _.overArgs(function(x, y) {\n * return [x, y];\n * }, [square, doubled]);\n *\n * func(9, 3);\n * // => [81, 6]\n *\n * func(10, 5);\n * // => [100, 10]\n */\n var overArgs = castRest(function(func, transforms) {\n transforms = (transforms.length == 1 && isArray(transforms[0]))\n ? arrayMap(transforms[0], baseUnary(getIteratee()))\n : arrayMap(baseFlatten(transforms, 1), baseUnary(getIteratee()));\n\n var funcsLength = transforms.length;\n return baseRest(function(args) {\n var index = -1,\n length = nativeMin(args.length, funcsLength);\n\n while (++index < length) {\n args[index] = transforms[index].call(this, args[index]);\n }\n return apply(func, this, args);\n });\n });\n\n /**\n * Creates a function that invokes `func` with `partials` prepended to the\n * arguments it receives. This method is like `_.bind` except it does **not**\n * alter the `this` binding.\n *\n * The `_.partial.placeholder` value, which defaults to `_` in monolithic\n * builds, may be used as a placeholder for partially applied arguments.\n *\n * **Note:** This method doesn't set the \"length\" property of partially\n * applied functions.\n *\n * @static\n * @memberOf _\n * @since 0.2.0\n * @category Function\n * @param {Function} func The function to partially apply arguments to.\n * @param {...*} [partials] The arguments to be partially applied.\n * @returns {Function} Returns the new partially applied function.\n * @example\n *\n * function greet(greeting, name) {\n * return greeting + ' ' + name;\n * }\n *\n * var sayHelloTo = _.partial(greet, 'hello');\n * sayHelloTo('fred');\n * // => 'hello fred'\n *\n * // Partially applied with placeholders.\n * var greetFred = _.partial(greet, _, 'fred');\n * greetFred('hi');\n * // => 'hi fred'\n */\n var partial = baseRest(function(func, partials) {\n var holders = replaceHolders(partials, getHolder(partial));\n return createWrap(func, WRAP_PARTIAL_FLAG, undefined, partials, holders);\n });\n\n /**\n * This method is like `_.partial` except that partially applied arguments\n * are appended to the arguments it receives.\n *\n * The `_.partialRight.placeholder` value, which defaults to `_` in monolithic\n * builds, may be used as a placeholder for partially applied arguments.\n *\n * **Note:** This method doesn't set the \"length\" property of partially\n * applied functions.\n *\n * @static\n * @memberOf _\n * @since 1.0.0\n * @category Function\n * @param {Function} func The function to partially apply arguments to.\n * @param {...*} [partials] The arguments to be partially applied.\n * @returns {Function} Returns the new partially applied function.\n * @example\n *\n * function greet(greeting, name) {\n * return greeting + ' ' + name;\n * }\n *\n * var greetFred = _.partialRight(greet, 'fred');\n * greetFred('hi');\n * // => 'hi fred'\n *\n * // Partially applied with placeholders.\n * var sayHelloTo = _.partialRight(greet, 'hello', _);\n * sayHelloTo('fred');\n * // => 'hello fred'\n */\n var partialRight = baseRest(function(func, partials) {\n var holders = replaceHolders(partials, getHolder(partialRight));\n return createWrap(func, WRAP_PARTIAL_RIGHT_FLAG, undefined, partials, holders);\n });\n\n /**\n * Creates a function that invokes `func` with arguments arranged according\n * to the specified `indexes` where the argument value at the first index is\n * provided as the first argument, the argument value at the second index is\n * provided as the second argument, and so on.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {Function} func The function to rearrange arguments for.\n * @param {...(number|number[])} indexes The arranged argument indexes.\n * @returns {Function} Returns the new function.\n * @example\n *\n * var rearged = _.rearg(function(a, b, c) {\n * return [a, b, c];\n * }, [2, 0, 1]);\n *\n * rearged('b', 'c', 'a')\n * // => ['a', 'b', 'c']\n */\n var rearg = flatRest(function(func, indexes) {\n return createWrap(func, WRAP_REARG_FLAG, undefined, undefined, undefined, indexes);\n });\n\n /**\n * Creates a function that invokes `func` with the `this` binding of the\n * created function and arguments from `start` and beyond provided as\n * an array.\n *\n * **Note:** This method is based on the\n * [rest parameter](https://mdn.io/rest_parameters).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Function\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @returns {Function} Returns the new function.\n * @example\n *\n * var say = _.rest(function(what, names) {\n * return what + ' ' + _.initial(names).join(', ') +\n * (_.size(names) > 1 ? ', & ' : '') + _.last(names);\n * });\n *\n * say('hello', 'fred', 'barney', 'pebbles');\n * // => 'hello fred, barney, & pebbles'\n */\n function rest(func, start) {\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n start = start === undefined ? start : toInteger(start);\n return baseRest(func, start);\n }\n\n /**\n * Creates a function that invokes `func` with the `this` binding of the\n * create function and an array of arguments much like\n * [`Function#apply`](http://www.ecma-international.org/ecma-262/7.0/#sec-function.prototype.apply).\n *\n * **Note:** This method is based on the\n * [spread operator](https://mdn.io/spread_operator).\n *\n * @static\n * @memberOf _\n * @since 3.2.0\n * @category Function\n * @param {Function} func The function to spread arguments over.\n * @param {number} [start=0] The start position of the spread.\n * @returns {Function} Returns the new function.\n * @example\n *\n * var say = _.spread(function(who, what) {\n * return who + ' says ' + what;\n * });\n *\n * say(['fred', 'hello']);\n * // => 'fred says hello'\n *\n * var numbers = Promise.all([\n * Promise.resolve(40),\n * Promise.resolve(36)\n * ]);\n *\n * numbers.then(_.spread(function(x, y) {\n * return x + y;\n * }));\n * // => a Promise of 76\n */\n function spread(func, start) {\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n start = start == null ? 0 : nativeMax(toInteger(start), 0);\n return baseRest(function(args) {\n var array = args[start],\n otherArgs = castSlice(args, 0, start);\n\n if (array) {\n arrayPush(otherArgs, array);\n }\n return apply(func, this, otherArgs);\n });\n }\n\n /**\n * Creates a throttled function that only invokes `func` at most once per\n * every `wait` milliseconds. The throttled function comes with a `cancel`\n * method to cancel delayed `func` invocations and a `flush` method to\n * immediately invoke them. Provide `options` to indicate whether `func`\n * should be invoked on the leading and/or trailing edge of the `wait`\n * timeout. The `func` is invoked with the last arguments provided to the\n * throttled function. Subsequent calls to the throttled function return the\n * result of the last `func` invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the throttled function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.throttle` and `_.debounce`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to throttle.\n * @param {number} [wait=0] The number of milliseconds to throttle invocations to.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=true]\n * Specify invoking on the leading edge of the timeout.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new throttled function.\n * @example\n *\n * // Avoid excessively updating the position while scrolling.\n * jQuery(window).on('scroll', _.throttle(updatePosition, 100));\n *\n * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.\n * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });\n * jQuery(element).on('click', throttled);\n *\n * // Cancel the trailing throttled invocation.\n * jQuery(window).on('popstate', throttled.cancel);\n */\n function throttle(func, wait, options) {\n var leading = true,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n if (isObject(options)) {\n leading = 'leading' in options ? !!options.leading : leading;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n return debounce(func, wait, {\n 'leading': leading,\n 'maxWait': wait,\n 'trailing': trailing\n });\n }\n\n /**\n * Creates a function that accepts up to one argument, ignoring any\n * additional arguments.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Function\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n * @example\n *\n * _.map(['6', '8', '10'], _.unary(parseInt));\n * // => [6, 8, 10]\n */\n function unary(func) {\n return ary(func, 1);\n }\n\n /**\n * Creates a function that provides `value` to `wrapper` as its first\n * argument. Any additional arguments provided to the function are appended\n * to those provided to the `wrapper`. The wrapper is invoked with the `this`\n * binding of the created function.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {*} value The value to wrap.\n * @param {Function} [wrapper=identity] The wrapper function.\n * @returns {Function} Returns the new function.\n * @example\n *\n * var p = _.wrap(_.escape, function(func, text) {\n * return '<p>' + func(text) + '</p>';\n * });\n *\n * p('fred, barney, & pebbles');\n * // => '<p>fred, barney, &amp; pebbles</p>'\n */\n function wrap(value, wrapper) {\n return partial(castFunction(wrapper), value);\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Casts `value` as an array if it's not one.\n *\n * @static\n * @memberOf _\n * @since 4.4.0\n * @category Lang\n * @param {*} value The value to inspect.\n * @returns {Array} Returns the cast array.\n * @example\n *\n * _.castArray(1);\n * // => [1]\n *\n * _.castArray({ 'a': 1 });\n * // => [{ 'a': 1 }]\n *\n * _.castArray('abc');\n * // => ['abc']\n *\n * _.castArray(null);\n * // => [null]\n *\n * _.castArray(undefined);\n * // => [undefined]\n *\n * _.castArray();\n * // => []\n *\n * var array = [1, 2, 3];\n * console.log(_.castArray(array) === array);\n * // => true\n */\n function castArray() {\n if (!arguments.length) {\n return [];\n }\n var value = arguments[0];\n return isArray(value) ? value : [value];\n }\n\n /**\n * Creates a shallow clone of `value`.\n *\n * **Note:** This method is loosely based on the\n * [structured clone algorithm](https://mdn.io/Structured_clone_algorithm)\n * and supports cloning arrays, array buffers, booleans, date objects, maps,\n * numbers, `Object` objects, regexes, sets, strings, symbols, and typed\n * arrays. The own enumerable properties of `arguments` objects are cloned\n * as plain objects. An empty object is returned for uncloneable values such\n * as error objects, functions, DOM nodes, and WeakMaps.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to clone.\n * @returns {*} Returns the cloned value.\n * @see _.cloneDeep\n * @example\n *\n * var objects = [{ 'a': 1 }, { 'b': 2 }];\n *\n * var shallow = _.clone(objects);\n * console.log(shallow[0] === objects[0]);\n * // => true\n */\n function clone(value) {\n return baseClone(value, CLONE_SYMBOLS_FLAG);\n }\n\n /**\n * This method is like `_.clone` except that it accepts `customizer` which\n * is invoked to produce the cloned value. If `customizer` returns `undefined`,\n * cloning is handled by the method instead. The `customizer` is invoked with\n * up to four arguments; (value [, index|key, object, stack]).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to clone.\n * @param {Function} [customizer] The function to customize cloning.\n * @returns {*} Returns the cloned value.\n * @see _.cloneDeepWith\n * @example\n *\n * function customizer(value) {\n * if (_.isElement(value)) {\n * return value.cloneNode(false);\n * }\n * }\n *\n * var el = _.cloneWith(document.body, customizer);\n *\n * console.log(el === document.body);\n * // => false\n * console.log(el.nodeName);\n * // => 'BODY'\n * console.log(el.childNodes.length);\n * // => 0\n */\n function cloneWith(value, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined;\n return baseClone(value, CLONE_SYMBOLS_FLAG, customizer);\n }\n\n /**\n * This method is like `_.clone` except that it recursively clones `value`.\n *\n * @static\n * @memberOf _\n * @since 1.0.0\n * @category Lang\n * @param {*} value The value to recursively clone.\n * @returns {*} Returns the deep cloned value.\n * @see _.clone\n * @example\n *\n * var objects = [{ 'a': 1 }, { 'b': 2 }];\n *\n * var deep = _.cloneDeep(objects);\n * console.log(deep[0] === objects[0]);\n * // => false\n */\n function cloneDeep(value) {\n return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);\n }\n\n /**\n * This method is like `_.cloneWith` except that it recursively clones `value`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to recursively clone.\n * @param {Function} [customizer] The function to customize cloning.\n * @returns {*} Returns the deep cloned value.\n * @see _.cloneWith\n * @example\n *\n * function customizer(value) {\n * if (_.isElement(value)) {\n * return value.cloneNode(true);\n * }\n * }\n *\n * var el = _.cloneDeepWith(document.body, customizer);\n *\n * console.log(el === document.body);\n * // => false\n * console.log(el.nodeName);\n * // => 'BODY'\n * console.log(el.childNodes.length);\n * // => 20\n */\n function cloneDeepWith(value, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined;\n return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG, customizer);\n }\n\n /**\n * Checks if `object` conforms to `source` by invoking the predicate\n * properties of `source` with the corresponding property values of `object`.\n *\n * **Note:** This method is equivalent to `_.conforms` when `source` is\n * partially applied.\n *\n * @static\n * @memberOf _\n * @since 4.14.0\n * @category Lang\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property predicates to conform to.\n * @returns {boolean} Returns `true` if `object` conforms, else `false`.\n * @example\n *\n * var object = { 'a': 1, 'b': 2 };\n *\n * _.conformsTo(object, { 'b': function(n) { return n > 1; } });\n * // => true\n *\n * _.conformsTo(object, { 'b': function(n) { return n > 2; } });\n * // => false\n */\n function conformsTo(object, source) {\n return source == null || baseConformsTo(object, source, keys(source));\n }\n\n /**\n * Performs a\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * comparison between two values to determine if they are equivalent.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.eq(object, object);\n * // => true\n *\n * _.eq(object, other);\n * // => false\n *\n * _.eq('a', 'a');\n * // => true\n *\n * _.eq('a', Object('a'));\n * // => false\n *\n * _.eq(NaN, NaN);\n * // => true\n */\n function eq(value, other) {\n return value === other || (value !== value && other !== other);\n }\n\n /**\n * Checks if `value` is greater than `other`.\n *\n * @static\n * @memberOf _\n * @since 3.9.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is greater than `other`,\n * else `false`.\n * @see _.lt\n * @example\n *\n * _.gt(3, 1);\n * // => true\n *\n * _.gt(3, 3);\n * // => false\n *\n * _.gt(1, 3);\n * // => false\n */\n var gt = createRelationalOperation(baseGt);\n\n /**\n * Checks if `value` is greater than or equal to `other`.\n *\n * @static\n * @memberOf _\n * @since 3.9.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is greater than or equal to\n * `other`, else `false`.\n * @see _.lte\n * @example\n *\n * _.gte(3, 1);\n * // => true\n *\n * _.gte(3, 3);\n * // => true\n *\n * _.gte(1, 3);\n * // => false\n */\n var gte = createRelationalOperation(function(value, other) {\n return value >= other;\n });\n\n /**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n * else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */\n var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {\n return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&\n !propertyIsEnumerable.call(value, 'callee');\n };\n\n /**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\n var isArray = Array.isArray;\n\n /**\n * Checks if `value` is classified as an `ArrayBuffer` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array buffer, else `false`.\n * @example\n *\n * _.isArrayBuffer(new ArrayBuffer(2));\n * // => true\n *\n * _.isArrayBuffer(new Array(2));\n * // => false\n */\n var isArrayBuffer = nodeIsArrayBuffer ? baseUnary(nodeIsArrayBuffer) : baseIsArrayBuffer;\n\n /**\n * Checks if `value` is array-like. A value is considered array-like if it's\n * not a function and has a `value.length` that's an integer greater than or\n * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n * @example\n *\n * _.isArrayLike([1, 2, 3]);\n * // => true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */\n function isArrayLike(value) {\n return value != null && isLength(value.length) && !isFunction(value);\n }\n\n /**\n * This method is like `_.isArrayLike` except that it also checks if `value`\n * is an object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array-like object,\n * else `false`.\n * @example\n *\n * _.isArrayLikeObject([1, 2, 3]);\n * // => true\n *\n * _.isArrayLikeObject(document.body.children);\n * // => true\n *\n * _.isArrayLikeObject('abc');\n * // => false\n *\n * _.isArrayLikeObject(_.noop);\n * // => false\n */\n function isArrayLikeObject(value) {\n return isObjectLike(value) && isArrayLike(value);\n }\n\n /**\n * Checks if `value` is classified as a boolean primitive or object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a boolean, else `false`.\n * @example\n *\n * _.isBoolean(false);\n * // => true\n *\n * _.isBoolean(null);\n * // => false\n */\n function isBoolean(value) {\n return value === true || value === false ||\n (isObjectLike(value) && baseGetTag(value) == boolTag);\n }\n\n /**\n * Checks if `value` is a buffer.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.\n * @example\n *\n * _.isBuffer(new Buffer(2));\n * // => true\n *\n * _.isBuffer(new Uint8Array(2));\n * // => false\n */\n var isBuffer = nativeIsBuffer || stubFalse;\n\n /**\n * Checks if `value` is classified as a `Date` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a date object, else `false`.\n * @example\n *\n * _.isDate(new Date);\n * // => true\n *\n * _.isDate('Mon April 23 2012');\n * // => false\n */\n var isDate = nodeIsDate ? baseUnary(nodeIsDate) : baseIsDate;\n\n /**\n * Checks if `value` is likely a DOM element.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a DOM element, else `false`.\n * @example\n *\n * _.isElement(document.body);\n * // => true\n *\n * _.isElement('<body>');\n * // => false\n */\n function isElement(value) {\n return isObjectLike(value) && value.nodeType === 1 && !isPlainObject(value);\n }\n\n /**\n * Checks if `value` is an empty object, collection, map, or set.\n *\n * Objects are considered empty if they have no own enumerable string keyed\n * properties.\n *\n * Array-like values such as `arguments` objects, arrays, buffers, strings, or\n * jQuery-like collections are considered empty if they have a `length` of `0`.\n * Similarly, maps and sets are considered empty if they have a `size` of `0`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is empty, else `false`.\n * @example\n *\n * _.isEmpty(null);\n * // => true\n *\n * _.isEmpty(true);\n * // => true\n *\n * _.isEmpty(1);\n * // => true\n *\n * _.isEmpty([1, 2, 3]);\n * // => false\n *\n * _.isEmpty({ 'a': 1 });\n * // => false\n */\n function isEmpty(value) {\n if (value == null) {\n return true;\n }\n if (isArrayLike(value) &&\n (isArray(value) || typeof value == 'string' || typeof value.splice == 'function' ||\n isBuffer(value) || isTypedArray(value) || isArguments(value))) {\n return !value.length;\n }\n var tag = getTag(value);\n if (tag == mapTag || tag == setTag) {\n return !value.size;\n }\n if (isPrototype(value)) {\n return !baseKeys(value).length;\n }\n for (var key in value) {\n if (hasOwnProperty.call(value, key)) {\n return false;\n }\n }\n return true;\n }\n\n /**\n * Performs a deep comparison between two values to determine if they are\n * equivalent.\n *\n * **Note:** This method supports comparing arrays, array buffers, booleans,\n * date objects, error objects, maps, numbers, `Object` objects, regexes,\n * sets, strings, symbols, and typed arrays. `Object` objects are compared\n * by their own, not inherited, enumerable properties. Functions and DOM\n * nodes are compared by strict equality, i.e. `===`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.isEqual(object, other);\n * // => true\n *\n * object === other;\n * // => false\n */\n function isEqual(value, other) {\n return baseIsEqual(value, other);\n }\n\n /**\n * This method is like `_.isEqual` except that it accepts `customizer` which\n * is invoked to compare values. If `customizer` returns `undefined`, comparisons\n * are handled by the method instead. The `customizer` is invoked with up to\n * six arguments: (objValue, othValue [, index|key, object, other, stack]).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @param {Function} [customizer] The function to customize comparisons.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * function isGreeting(value) {\n * return /^h(?:i|ello)$/.test(value);\n * }\n *\n * function customizer(objValue, othValue) {\n * if (isGreeting(objValue) && isGreeting(othValue)) {\n * return true;\n * }\n * }\n *\n * var array = ['hello', 'goodbye'];\n * var other = ['hi', 'goodbye'];\n *\n * _.isEqualWith(array, other, customizer);\n * // => true\n */\n function isEqualWith(value, other, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined;\n var result = customizer ? customizer(value, other) : undefined;\n return result === undefined ? baseIsEqual(value, other, undefined, customizer) : !!result;\n }\n\n /**\n * Checks if `value` is an `Error`, `EvalError`, `RangeError`, `ReferenceError`,\n * `SyntaxError`, `TypeError`, or `URIError` object.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an error object, else `false`.\n * @example\n *\n * _.isError(new Error);\n * // => true\n *\n * _.isError(Error);\n * // => false\n */\n function isError(value) {\n if (!isObjectLike(value)) {\n return false;\n }\n var tag = baseGetTag(value);\n return tag == errorTag || tag == domExcTag ||\n (typeof value.message == 'string' && typeof value.name == 'string' && !isPlainObject(value));\n }\n\n /**\n * Checks if `value` is a finite primitive number.\n *\n * **Note:** This method is based on\n * [`Number.isFinite`](https://mdn.io/Number/isFinite).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a finite number, else `false`.\n * @example\n *\n * _.isFinite(3);\n * // => true\n *\n * _.isFinite(Number.MIN_VALUE);\n * // => true\n *\n * _.isFinite(Infinity);\n * // => false\n *\n * _.isFinite('3');\n * // => false\n */\n function isFinite(value) {\n return typeof value == 'number' && nativeIsFinite(value);\n }\n\n /**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\n function isFunction(value) {\n if (!isObject(value)) {\n return false;\n }\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in Safari 9 which returns 'object' for typed arrays and other constructors.\n var tag = baseGetTag(value);\n return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;\n }\n\n /**\n * Checks if `value` is an integer.\n *\n * **Note:** This method is based on\n * [`Number.isInteger`](https://mdn.io/Number/isInteger).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an integer, else `false`.\n * @example\n *\n * _.isInteger(3);\n * // => true\n *\n * _.isInteger(Number.MIN_VALUE);\n * // => false\n *\n * _.isInteger(Infinity);\n * // => false\n *\n * _.isInteger('3');\n * // => false\n */\n function isInteger(value) {\n return typeof value == 'number' && value == toInteger(value);\n }\n\n /**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This method is loosely based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\n function isLength(value) {\n return typeof value == 'number' &&\n value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n }\n\n /**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\n function isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n }\n\n /**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\n function isObjectLike(value) {\n return value != null && typeof value == 'object';\n }\n\n /**\n * Checks if `value` is classified as a `Map` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a map, else `false`.\n * @example\n *\n * _.isMap(new Map);\n * // => true\n *\n * _.isMap(new WeakMap);\n * // => false\n */\n var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;\n\n /**\n * Performs a partial deep comparison between `object` and `source` to\n * determine if `object` contains equivalent property values.\n *\n * **Note:** This method is equivalent to `_.matches` when `source` is\n * partially applied.\n *\n * Partial comparisons will match empty array and empty object `source`\n * values against any array or object value, respectively. See `_.isEqual`\n * for a list of supported value comparisons.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property values to match.\n * @returns {boolean} Returns `true` if `object` is a match, else `false`.\n * @example\n *\n * var object = { 'a': 1, 'b': 2 };\n *\n * _.isMatch(object, { 'b': 2 });\n * // => true\n *\n * _.isMatch(object, { 'b': 1 });\n * // => false\n */\n function isMatch(object, source) {\n return object === source || baseIsMatch(object, source, getMatchData(source));\n }\n\n /**\n * This method is like `_.isMatch` except that it accepts `customizer` which\n * is invoked to compare values. If `customizer` returns `undefined`, comparisons\n * are handled by the method instead. The `customizer` is invoked with five\n * arguments: (objValue, srcValue, index|key, object, source).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property values to match.\n * @param {Function} [customizer] The function to customize comparisons.\n * @returns {boolean} Returns `true` if `object` is a match, else `false`.\n * @example\n *\n * function isGreeting(value) {\n * return /^h(?:i|ello)$/.test(value);\n * }\n *\n * function customizer(objValue, srcValue) {\n * if (isGreeting(objValue) && isGreeting(srcValue)) {\n * return true;\n * }\n * }\n *\n * var object = { 'greeting': 'hello' };\n * var source = { 'greeting': 'hi' };\n *\n * _.isMatchWith(object, source, customizer);\n * // => true\n */\n function isMatchWith(object, source, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined;\n return baseIsMatch(object, source, getMatchData(source), customizer);\n }\n\n /**\n * Checks if `value` is `NaN`.\n *\n * **Note:** This method is based on\n * [`Number.isNaN`](https://mdn.io/Number/isNaN) and is not the same as\n * global [`isNaN`](https://mdn.io/isNaN) which returns `true` for\n * `undefined` and other non-number values.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.\n * @example\n *\n * _.isNaN(NaN);\n * // => true\n *\n * _.isNaN(new Number(NaN));\n * // => true\n *\n * isNaN(undefined);\n * // => true\n *\n * _.isNaN(undefined);\n * // => false\n */\n function isNaN(value) {\n // An `NaN` primitive is the only value that is not equal to itself.\n // Perform the `toStringTag` check first to avoid errors with some\n // ActiveX objects in IE.\n return isNumber(value) && value != +value;\n }\n\n /**\n * Checks if `value` is a pristine native function.\n *\n * **Note:** This method can't reliably detect native functions in the presence\n * of the core-js package because core-js circumvents this kind of detection.\n * Despite multiple requests, the core-js maintainer has made it clear: any\n * attempt to fix the detection will be obstructed. As a result, we're left\n * with little choice but to throw an error. Unfortunately, this also affects\n * packages, like [babel-polyfill](https://www.npmjs.com/package/babel-polyfill),\n * which rely on core-js.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n * else `false`.\n * @example\n *\n * _.isNative(Array.prototype.push);\n * // => true\n *\n * _.isNative(_);\n * // => false\n */\n function isNative(value) {\n if (isMaskable(value)) {\n throw new Error(CORE_ERROR_TEXT);\n }\n return baseIsNative(value);\n }\n\n /**\n * Checks if `value` is `null`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `null`, else `false`.\n * @example\n *\n * _.isNull(null);\n * // => true\n *\n * _.isNull(void 0);\n * // => false\n */\n function isNull(value) {\n return value === null;\n }\n\n /**\n * Checks if `value` is `null` or `undefined`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is nullish, else `false`.\n * @example\n *\n * _.isNil(null);\n * // => true\n *\n * _.isNil(void 0);\n * // => true\n *\n * _.isNil(NaN);\n * // => false\n */\n function isNil(value) {\n return value == null;\n }\n\n /**\n * Checks if `value` is classified as a `Number` primitive or object.\n *\n * **Note:** To exclude `Infinity`, `-Infinity`, and `NaN`, which are\n * classified as numbers, use the `_.isFinite` method.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a number, else `false`.\n * @example\n *\n * _.isNumber(3);\n * // => true\n *\n * _.isNumber(Number.MIN_VALUE);\n * // => true\n *\n * _.isNumber(Infinity);\n * // => true\n *\n * _.isNumber('3');\n * // => false\n */\n function isNumber(value) {\n return typeof value == 'number' ||\n (isObjectLike(value) && baseGetTag(value) == numberTag);\n }\n\n /**\n * Checks if `value` is a plain object, that is, an object created by the\n * `Object` constructor or one with a `[[Prototype]]` of `null`.\n *\n * @static\n * @memberOf _\n * @since 0.8.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * _.isPlainObject(new Foo);\n * // => false\n *\n * _.isPlainObject([1, 2, 3]);\n * // => false\n *\n * _.isPlainObject({ 'x': 0, 'y': 0 });\n * // => true\n *\n * _.isPlainObject(Object.create(null));\n * // => true\n */\n function isPlainObject(value) {\n if (!isObjectLike(value) || baseGetTag(value) != objectTag) {\n return false;\n }\n var proto = getPrototype(value);\n if (proto === null) {\n return true;\n }\n var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;\n return typeof Ctor == 'function' && Ctor instanceof Ctor &&\n funcToString.call(Ctor) == objectCtorString;\n }\n\n /**\n * Checks if `value` is classified as a `RegExp` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.\n * @example\n *\n * _.isRegExp(/abc/);\n * // => true\n *\n * _.isRegExp('/abc/');\n * // => false\n */\n var isRegExp = nodeIsRegExp ? baseUnary(nodeIsRegExp) : baseIsRegExp;\n\n /**\n * Checks if `value` is a safe integer. An integer is safe if it's an IEEE-754\n * double precision number which isn't the result of a rounded unsafe integer.\n *\n * **Note:** This method is based on\n * [`Number.isSafeInteger`](https://mdn.io/Number/isSafeInteger).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a safe integer, else `false`.\n * @example\n *\n * _.isSafeInteger(3);\n * // => true\n *\n * _.isSafeInteger(Number.MIN_VALUE);\n * // => false\n *\n * _.isSafeInteger(Infinity);\n * // => false\n *\n * _.isSafeInteger('3');\n * // => false\n */\n function isSafeInteger(value) {\n return isInteger(value) && value >= -MAX_SAFE_INTEGER && value <= MAX_SAFE_INTEGER;\n }\n\n /**\n * Checks if `value` is classified as a `Set` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a set, else `false`.\n * @example\n *\n * _.isSet(new Set);\n * // => true\n *\n * _.isSet(new WeakSet);\n * // => false\n */\n var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;\n\n /**\n * Checks if `value` is classified as a `String` primitive or object.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a string, else `false`.\n * @example\n *\n * _.isString('abc');\n * // => true\n *\n * _.isString(1);\n * // => false\n */\n function isString(value) {\n return typeof value == 'string' ||\n (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag);\n }\n\n /**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\n function isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && baseGetTag(value) == symbolTag);\n }\n\n /**\n * Checks if `value` is classified as a typed array.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n * @example\n *\n * _.isTypedArray(new Uint8Array);\n * // => true\n *\n * _.isTypedArray([]);\n * // => false\n */\n var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;\n\n /**\n * Checks if `value` is `undefined`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.\n * @example\n *\n * _.isUndefined(void 0);\n * // => true\n *\n * _.isUndefined(null);\n * // => false\n */\n function isUndefined(value) {\n return value === undefined;\n }\n\n /**\n * Checks if `value` is classified as a `WeakMap` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a weak map, else `false`.\n * @example\n *\n * _.isWeakMap(new WeakMap);\n * // => true\n *\n * _.isWeakMap(new Map);\n * // => false\n */\n function isWeakMap(value) {\n return isObjectLike(value) && getTag(value) == weakMapTag;\n }\n\n /**\n * Checks if `value` is classified as a `WeakSet` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a weak set, else `false`.\n * @example\n *\n * _.isWeakSet(new WeakSet);\n * // => true\n *\n * _.isWeakSet(new Set);\n * // => false\n */\n function isWeakSet(value) {\n return isObjectLike(value) && baseGetTag(value) == weakSetTag;\n }\n\n /**\n * Checks if `value` is less than `other`.\n *\n * @static\n * @memberOf _\n * @since 3.9.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is less than `other`,\n * else `false`.\n * @see _.gt\n * @example\n *\n * _.lt(1, 3);\n * // => true\n *\n * _.lt(3, 3);\n * // => false\n *\n * _.lt(3, 1);\n * // => false\n */\n var lt = createRelationalOperation(baseLt);\n\n /**\n * Checks if `value` is less than or equal to `other`.\n *\n * @static\n * @memberOf _\n * @since 3.9.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is less than or equal to\n * `other`, else `false`.\n * @see _.gte\n * @example\n *\n * _.lte(1, 3);\n * // => true\n *\n * _.lte(3, 3);\n * // => true\n *\n * _.lte(3, 1);\n * // => false\n */\n var lte = createRelationalOperation(function(value, other) {\n return value <= other;\n });\n\n /**\n * Converts `value` to an array.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {Array} Returns the converted array.\n * @example\n *\n * _.toArray({ 'a': 1, 'b': 2 });\n * // => [1, 2]\n *\n * _.toArray('abc');\n * // => ['a', 'b', 'c']\n *\n * _.toArray(1);\n * // => []\n *\n * _.toArray(null);\n * // => []\n */\n function toArray(value) {\n if (!value) {\n return [];\n }\n if (isArrayLike(value)) {\n return isString(value) ? stringToArray(value) : copyArray(value);\n }\n if (symIterator && value[symIterator]) {\n return iteratorToArray(value[symIterator]());\n }\n var tag = getTag(value),\n func = tag == mapTag ? mapToArray : (tag == setTag ? setToArray : values);\n\n return func(value);\n }\n\n /**\n * Converts `value` to a finite number.\n *\n * @static\n * @memberOf _\n * @since 4.12.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted number.\n * @example\n *\n * _.toFinite(3.2);\n * // => 3.2\n *\n * _.toFinite(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toFinite(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toFinite('3.2');\n * // => 3.2\n */\n function toFinite(value) {\n if (!value) {\n return value === 0 ? value : 0;\n }\n value = toNumber(value);\n if (value === INFINITY || value === -INFINITY) {\n var sign = (value < 0 ? -1 : 1);\n return sign * MAX_INTEGER;\n }\n return value === value ? value : 0;\n }\n\n /**\n * Converts `value` to an integer.\n *\n * **Note:** This method is loosely based on\n * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.toInteger(3.2);\n * // => 3\n *\n * _.toInteger(Number.MIN_VALUE);\n * // => 0\n *\n * _.toInteger(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toInteger('3.2');\n * // => 3\n */\n function toInteger(value) {\n var result = toFinite(value),\n remainder = result % 1;\n\n return result === result ? (remainder ? result - remainder : result) : 0;\n }\n\n /**\n * Converts `value` to an integer suitable for use as the length of an\n * array-like object.\n *\n * **Note:** This method is based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.toLength(3.2);\n * // => 3\n *\n * _.toLength(Number.MIN_VALUE);\n * // => 0\n *\n * _.toLength(Infinity);\n * // => 4294967295\n *\n * _.toLength('3.2');\n * // => 3\n */\n function toLength(value) {\n return value ? baseClamp(toInteger(value), 0, MAX_ARRAY_LENGTH) : 0;\n }\n\n /**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\n function toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = value.replace(reTrim, '');\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n }\n\n /**\n * Converts `value` to a plain object flattening inherited enumerable string\n * keyed properties of `value` to own properties of the plain object.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {Object} Returns the converted plain object.\n * @example\n *\n * function Foo() {\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.assign({ 'a': 1 }, new Foo);\n * // => { 'a': 1, 'b': 2 }\n *\n * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));\n * // => { 'a': 1, 'b': 2, 'c': 3 }\n */\n function toPlainObject(value) {\n return copyObject(value, keysIn(value));\n }\n\n /**\n * Converts `value` to a safe integer. A safe integer can be compared and\n * represented correctly.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.toSafeInteger(3.2);\n * // => 3\n *\n * _.toSafeInteger(Number.MIN_VALUE);\n * // => 0\n *\n * _.toSafeInteger(Infinity);\n * // => 9007199254740991\n *\n * _.toSafeInteger('3.2');\n * // => 3\n */\n function toSafeInteger(value) {\n return value\n ? baseClamp(toInteger(value), -MAX_SAFE_INTEGER, MAX_SAFE_INTEGER)\n : (value === 0 ? value : 0);\n }\n\n /**\n * Converts `value` to a string. An empty string is returned for `null`\n * and `undefined` values. The sign of `-0` is preserved.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n * @example\n *\n * _.toString(null);\n * // => ''\n *\n * _.toString(-0);\n * // => '-0'\n *\n * _.toString([1, 2, 3]);\n * // => '1,2,3'\n */\n function toString(value) {\n return value == null ? '' : baseToString(value);\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Assigns own enumerable string keyed properties of source objects to the\n * destination object. Source objects are applied from left to right.\n * Subsequent sources overwrite property assignments of previous sources.\n *\n * **Note:** This method mutates `object` and is loosely based on\n * [`Object.assign`](https://mdn.io/Object/assign).\n *\n * @static\n * @memberOf _\n * @since 0.10.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @see _.assignIn\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * function Bar() {\n * this.c = 3;\n * }\n *\n * Foo.prototype.b = 2;\n * Bar.prototype.d = 4;\n *\n * _.assign({ 'a': 0 }, new Foo, new Bar);\n * // => { 'a': 1, 'c': 3 }\n */\n var assign = createAssigner(function(object, source) {\n if (isPrototype(source) || isArrayLike(source)) {\n copyObject(source, keys(source), object);\n return;\n }\n for (var key in source) {\n if (hasOwnProperty.call(source, key)) {\n assignValue(object, key, source[key]);\n }\n }\n });\n\n /**\n * This method is like `_.assign` except that it iterates over own and\n * inherited source properties.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @alias extend\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @see _.assign\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * function Bar() {\n * this.c = 3;\n * }\n *\n * Foo.prototype.b = 2;\n * Bar.prototype.d = 4;\n *\n * _.assignIn({ 'a': 0 }, new Foo, new Bar);\n * // => { 'a': 1, 'b': 2, 'c': 3, 'd': 4 }\n */\n var assignIn = createAssigner(function(object, source) {\n copyObject(source, keysIn(source), object);\n });\n\n /**\n * This method is like `_.assignIn` except that it accepts `customizer`\n * which is invoked to produce the assigned values. If `customizer` returns\n * `undefined`, assignment is handled by the method instead. The `customizer`\n * is invoked with five arguments: (objValue, srcValue, key, object, source).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @alias extendWith\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} sources The source objects.\n * @param {Function} [customizer] The function to customize assigned values.\n * @returns {Object} Returns `object`.\n * @see _.assignWith\n * @example\n *\n * function customizer(objValue, srcValue) {\n * return _.isUndefined(objValue) ? srcValue : objValue;\n * }\n *\n * var defaults = _.partialRight(_.assignInWith, customizer);\n *\n * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });\n * // => { 'a': 1, 'b': 2 }\n */\n var assignInWith = createAssigner(function(object, source, srcIndex, customizer) {\n copyObject(source, keysIn(source), object, customizer);\n });\n\n /**\n * This method is like `_.assign` except that it accepts `customizer`\n * which is invoked to produce the assigned values. If `customizer` returns\n * `undefined`, assignment is handled by the method instead. The `customizer`\n * is invoked with five arguments: (objValue, srcValue, key, object, source).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} sources The source objects.\n * @param {Function} [customizer] The function to customize assigned values.\n * @returns {Object} Returns `object`.\n * @see _.assignInWith\n * @example\n *\n * function customizer(objValue, srcValue) {\n * return _.isUndefined(objValue) ? srcValue : objValue;\n * }\n *\n * var defaults = _.partialRight(_.assignWith, customizer);\n *\n * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });\n * // => { 'a': 1, 'b': 2 }\n */\n var assignWith = createAssigner(function(object, source, srcIndex, customizer) {\n copyObject(source, keys(source), object, customizer);\n });\n\n /**\n * Creates an array of values corresponding to `paths` of `object`.\n *\n * @static\n * @memberOf _\n * @since 1.0.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {...(string|string[])} [paths] The property paths to pick.\n * @returns {Array} Returns the picked values.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }, 4] };\n *\n * _.at(object, ['a[0].b.c', 'a[1]']);\n * // => [3, 4]\n */\n var at = flatRest(baseAt);\n\n /**\n * Creates an object that inherits from the `prototype` object. If a\n * `properties` object is given, its own enumerable string keyed properties\n * are assigned to the created object.\n *\n * @static\n * @memberOf _\n * @since 2.3.0\n * @category Object\n * @param {Object} prototype The object to inherit from.\n * @param {Object} [properties] The properties to assign to the object.\n * @returns {Object} Returns the new object.\n * @example\n *\n * function Shape() {\n * this.x = 0;\n * this.y = 0;\n * }\n *\n * function Circle() {\n * Shape.call(this);\n * }\n *\n * Circle.prototype = _.create(Shape.prototype, {\n * 'constructor': Circle\n * });\n *\n * var circle = new Circle;\n * circle instanceof Circle;\n * // => true\n *\n * circle instanceof Shape;\n * // => true\n */\n function create(prototype, properties) {\n var result = baseCreate(prototype);\n return properties == null ? result : baseAssign(result, properties);\n }\n\n /**\n * Assigns own and inherited enumerable string keyed properties of source\n * objects to the destination object for all destination properties that\n * resolve to `undefined`. Source objects are applied from left to right.\n * Once a property is set, additional values of the same property are ignored.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @see _.defaultsDeep\n * @example\n *\n * _.defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });\n * // => { 'a': 1, 'b': 2 }\n */\n var defaults = baseRest(function(object, sources) {\n object = Object(object);\n\n var index = -1;\n var length = sources.length;\n var guard = length > 2 ? sources[2] : undefined;\n\n if (guard && isIterateeCall(sources[0], sources[1], guard)) {\n length = 1;\n }\n\n while (++index < length) {\n var source = sources[index];\n var props = keysIn(source);\n var propsIndex = -1;\n var propsLength = props.length;\n\n while (++propsIndex < propsLength) {\n var key = props[propsIndex];\n var value = object[key];\n\n if (value === undefined ||\n (eq(value, objectProto[key]) && !hasOwnProperty.call(object, key))) {\n object[key] = source[key];\n }\n }\n }\n\n return object;\n });\n\n /**\n * This method is like `_.defaults` except that it recursively assigns\n * default properties.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 3.10.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @see _.defaults\n * @example\n *\n * _.defaultsDeep({ 'a': { 'b': 2 } }, { 'a': { 'b': 1, 'c': 3 } });\n * // => { 'a': { 'b': 2, 'c': 3 } }\n */\n var defaultsDeep = baseRest(function(args) {\n args.push(undefined, customDefaultsMerge);\n return apply(mergeWith, undefined, args);\n });\n\n /**\n * This method is like `_.find` except that it returns the key of the first\n * element `predicate` returns truthy for instead of the element itself.\n *\n * @static\n * @memberOf _\n * @since 1.1.0\n * @category Object\n * @param {Object} object The object to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {string|undefined} Returns the key of the matched element,\n * else `undefined`.\n * @example\n *\n * var users = {\n * 'barney': { 'age': 36, 'active': true },\n * 'fred': { 'age': 40, 'active': false },\n * 'pebbles': { 'age': 1, 'active': true }\n * };\n *\n * _.findKey(users, function(o) { return o.age < 40; });\n * // => 'barney' (iteration order is not guaranteed)\n *\n * // The `_.matches` iteratee shorthand.\n * _.findKey(users, { 'age': 1, 'active': true });\n * // => 'pebbles'\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.findKey(users, ['active', false]);\n * // => 'fred'\n *\n * // The `_.property` iteratee shorthand.\n * _.findKey(users, 'active');\n * // => 'barney'\n */\n function findKey(object, predicate) {\n return baseFindKey(object, getIteratee(predicate, 3), baseForOwn);\n }\n\n /**\n * This method is like `_.findKey` except that it iterates over elements of\n * a collection in the opposite order.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Object\n * @param {Object} object The object to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {string|undefined} Returns the key of the matched element,\n * else `undefined`.\n * @example\n *\n * var users = {\n * 'barney': { 'age': 36, 'active': true },\n * 'fred': { 'age': 40, 'active': false },\n * 'pebbles': { 'age': 1, 'active': true }\n * };\n *\n * _.findLastKey(users, function(o) { return o.age < 40; });\n * // => returns 'pebbles' assuming `_.findKey` returns 'barney'\n *\n * // The `_.matches` iteratee shorthand.\n * _.findLastKey(users, { 'age': 36, 'active': true });\n * // => 'barney'\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.findLastKey(users, ['active', false]);\n * // => 'fred'\n *\n * // The `_.property` iteratee shorthand.\n * _.findLastKey(users, 'active');\n * // => 'pebbles'\n */\n function findLastKey(object, predicate) {\n return baseFindKey(object, getIteratee(predicate, 3), baseForOwnRight);\n }\n\n /**\n * Iterates over own and inherited enumerable string keyed properties of an\n * object and invokes `iteratee` for each property. The iteratee is invoked\n * with three arguments: (value, key, object). Iteratee functions may exit\n * iteration early by explicitly returning `false`.\n *\n * @static\n * @memberOf _\n * @since 0.3.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns `object`.\n * @see _.forInRight\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.forIn(new Foo, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'a', 'b', then 'c' (iteration order is not guaranteed).\n */\n function forIn(object, iteratee) {\n return object == null\n ? object\n : baseFor(object, getIteratee(iteratee, 3), keysIn);\n }\n\n /**\n * This method is like `_.forIn` except that it iterates over properties of\n * `object` in the opposite order.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns `object`.\n * @see _.forIn\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.forInRight(new Foo, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'c', 'b', then 'a' assuming `_.forIn` logs 'a', 'b', then 'c'.\n */\n function forInRight(object, iteratee) {\n return object == null\n ? object\n : baseForRight(object, getIteratee(iteratee, 3), keysIn);\n }\n\n /**\n * Iterates over own enumerable string keyed properties of an object and\n * invokes `iteratee` for each property. The iteratee is invoked with three\n * arguments: (value, key, object). Iteratee functions may exit iteration\n * early by explicitly returning `false`.\n *\n * @static\n * @memberOf _\n * @since 0.3.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns `object`.\n * @see _.forOwnRight\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.forOwn(new Foo, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'a' then 'b' (iteration order is not guaranteed).\n */\n function forOwn(object, iteratee) {\n return object && baseForOwn(object, getIteratee(iteratee, 3));\n }\n\n /**\n * This method is like `_.forOwn` except that it iterates over properties of\n * `object` in the opposite order.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns `object`.\n * @see _.forOwn\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.forOwnRight(new Foo, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'b' then 'a' assuming `_.forOwn` logs 'a' then 'b'.\n */\n function forOwnRight(object, iteratee) {\n return object && baseForOwnRight(object, getIteratee(iteratee, 3));\n }\n\n /**\n * Creates an array of function property names from own enumerable properties\n * of `object`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to inspect.\n * @returns {Array} Returns the function names.\n * @see _.functionsIn\n * @example\n *\n * function Foo() {\n * this.a = _.constant('a');\n * this.b = _.constant('b');\n * }\n *\n * Foo.prototype.c = _.constant('c');\n *\n * _.functions(new Foo);\n * // => ['a', 'b']\n */\n function functions(object) {\n return object == null ? [] : baseFunctions(object, keys(object));\n }\n\n /**\n * Creates an array of function property names from own and inherited\n * enumerable properties of `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to inspect.\n * @returns {Array} Returns the function names.\n * @see _.functions\n * @example\n *\n * function Foo() {\n * this.a = _.constant('a');\n * this.b = _.constant('b');\n * }\n *\n * Foo.prototype.c = _.constant('c');\n *\n * _.functionsIn(new Foo);\n * // => ['a', 'b', 'c']\n */\n function functionsIn(object) {\n return object == null ? [] : baseFunctions(object, keysIn(object));\n }\n\n /**\n * Gets the value at `path` of `object`. If the resolved value is\n * `undefined`, the `defaultValue` is returned in its place.\n *\n * @static\n * @memberOf _\n * @since 3.7.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @param {*} [defaultValue] The value returned for `undefined` resolved values.\n * @returns {*} Returns the resolved value.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }] };\n *\n * _.get(object, 'a[0].b.c');\n * // => 3\n *\n * _.get(object, ['a', '0', 'b', 'c']);\n * // => 3\n *\n * _.get(object, 'a.b.c', 'default');\n * // => 'default'\n */\n function get(object, path, defaultValue) {\n var result = object == null ? undefined : baseGet(object, path);\n return result === undefined ? defaultValue : result;\n }\n\n /**\n * Checks if `path` is a direct property of `object`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n * @example\n *\n * var object = { 'a': { 'b': 2 } };\n * var other = _.create({ 'a': _.create({ 'b': 2 }) });\n *\n * _.has(object, 'a');\n * // => true\n *\n * _.has(object, 'a.b');\n * // => true\n *\n * _.has(object, ['a', 'b']);\n * // => true\n *\n * _.has(other, 'a');\n * // => false\n */\n function has(object, path) {\n return object != null && hasPath(object, path, baseHas);\n }\n\n /**\n * Checks if `path` is a direct or inherited property of `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n * @example\n *\n * var object = _.create({ 'a': _.create({ 'b': 2 }) });\n *\n * _.hasIn(object, 'a');\n * // => true\n *\n * _.hasIn(object, 'a.b');\n * // => true\n *\n * _.hasIn(object, ['a', 'b']);\n * // => true\n *\n * _.hasIn(object, 'b');\n * // => false\n */\n function hasIn(object, path) {\n return object != null && hasPath(object, path, baseHasIn);\n }\n\n /**\n * Creates an object composed of the inverted keys and values of `object`.\n * If `object` contains duplicate values, subsequent values overwrite\n * property assignments of previous values.\n *\n * @static\n * @memberOf _\n * @since 0.7.0\n * @category Object\n * @param {Object} object The object to invert.\n * @returns {Object} Returns the new inverted object.\n * @example\n *\n * var object = { 'a': 1, 'b': 2, 'c': 1 };\n *\n * _.invert(object);\n * // => { '1': 'c', '2': 'b' }\n */\n var invert = createInverter(function(result, value, key) {\n if (value != null &&\n typeof value.toString != 'function') {\n value = nativeObjectToString.call(value);\n }\n\n result[value] = key;\n }, constant(identity));\n\n /**\n * This method is like `_.invert` except that the inverted object is generated\n * from the results of running each element of `object` thru `iteratee`. The\n * corresponding inverted value of each inverted key is an array of keys\n * responsible for generating the inverted value. The iteratee is invoked\n * with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.1.0\n * @category Object\n * @param {Object} object The object to invert.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Object} Returns the new inverted object.\n * @example\n *\n * var object = { 'a': 1, 'b': 2, 'c': 1 };\n *\n * _.invertBy(object);\n * // => { '1': ['a', 'c'], '2': ['b'] }\n *\n * _.invertBy(object, function(value) {\n * return 'group' + value;\n * });\n * // => { 'group1': ['a', 'c'], 'group2': ['b'] }\n */\n var invertBy = createInverter(function(result, value, key) {\n if (value != null &&\n typeof value.toString != 'function') {\n value = nativeObjectToString.call(value);\n }\n\n if (hasOwnProperty.call(result, value)) {\n result[value].push(key);\n } else {\n result[value] = [key];\n }\n }, getIteratee);\n\n /**\n * Invokes the method at `path` of `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the method to invoke.\n * @param {...*} [args] The arguments to invoke the method with.\n * @returns {*} Returns the result of the invoked method.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': [1, 2, 3, 4] } }] };\n *\n * _.invoke(object, 'a[0].b.c.slice', 1, 3);\n * // => [2, 3]\n */\n var invoke = baseRest(baseInvoke);\n\n /**\n * Creates an array of the own enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects. See the\n * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * for more details.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keys(new Foo);\n * // => ['a', 'b'] (iteration order is not guaranteed)\n *\n * _.keys('hi');\n * // => ['0', '1']\n */\n function keys(object) {\n return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);\n }\n\n /**\n * Creates an array of the own and inherited enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keysIn(new Foo);\n * // => ['a', 'b', 'c'] (iteration order is not guaranteed)\n */\n function keysIn(object) {\n return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);\n }\n\n /**\n * The opposite of `_.mapValues`; this method creates an object with the\n * same values as `object` and keys generated by running each own enumerable\n * string keyed property of `object` thru `iteratee`. The iteratee is invoked\n * with three arguments: (value, key, object).\n *\n * @static\n * @memberOf _\n * @since 3.8.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns the new mapped object.\n * @see _.mapValues\n * @example\n *\n * _.mapKeys({ 'a': 1, 'b': 2 }, function(value, key) {\n * return key + value;\n * });\n * // => { 'a1': 1, 'b2': 2 }\n */\n function mapKeys(object, iteratee) {\n var result = {};\n iteratee = getIteratee(iteratee, 3);\n\n baseForOwn(object, function(value, key, object) {\n baseAssignValue(result, iteratee(value, key, object), value);\n });\n return result;\n }\n\n /**\n * Creates an object with the same keys as `object` and values generated\n * by running each own enumerable string keyed property of `object` thru\n * `iteratee`. The iteratee is invoked with three arguments:\n * (value, key, object).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns the new mapped object.\n * @see _.mapKeys\n * @example\n *\n * var users = {\n * 'fred': { 'user': 'fred', 'age': 40 },\n * 'pebbles': { 'user': 'pebbles', 'age': 1 }\n * };\n *\n * _.mapValues(users, function(o) { return o.age; });\n * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)\n *\n * // The `_.property` iteratee shorthand.\n * _.mapValues(users, 'age');\n * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)\n */\n function mapValues(object, iteratee) {\n var result = {};\n iteratee = getIteratee(iteratee, 3);\n\n baseForOwn(object, function(value, key, object) {\n baseAssignValue(result, key, iteratee(value, key, object));\n });\n return result;\n }\n\n /**\n * This method is like `_.assign` except that it recursively merges own and\n * inherited enumerable string keyed properties of source objects into the\n * destination object. Source properties that resolve to `undefined` are\n * skipped if a destination value exists. Array and plain object properties\n * are merged recursively. Other objects and value types are overridden by\n * assignment. Source objects are applied from left to right. Subsequent\n * sources overwrite property assignments of previous sources.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 0.5.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = {\n * 'a': [{ 'b': 2 }, { 'd': 4 }]\n * };\n *\n * var other = {\n * 'a': [{ 'c': 3 }, { 'e': 5 }]\n * };\n *\n * _.merge(object, other);\n * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }\n */\n var merge = createAssigner(function(object, source, srcIndex) {\n baseMerge(object, source, srcIndex);\n });\n\n /**\n * This method is like `_.merge` except that it accepts `customizer` which\n * is invoked to produce the merged values of the destination and source\n * properties. If `customizer` returns `undefined`, merging is handled by the\n * method instead. The `customizer` is invoked with six arguments:\n * (objValue, srcValue, key, object, source, stack).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} sources The source objects.\n * @param {Function} customizer The function to customize assigned values.\n * @returns {Object} Returns `object`.\n * @example\n *\n * function customizer(objValue, srcValue) {\n * if (_.isArray(objValue)) {\n * return objValue.concat(srcValue);\n * }\n * }\n *\n * var object = { 'a': [1], 'b': [2] };\n * var other = { 'a': [3], 'b': [4] };\n *\n * _.mergeWith(object, other, customizer);\n * // => { 'a': [1, 3], 'b': [2, 4] }\n */\n var mergeWith = createAssigner(function(object, source, srcIndex, customizer) {\n baseMerge(object, source, srcIndex, customizer);\n });\n\n /**\n * The opposite of `_.pick`; this method creates an object composed of the\n * own and inherited enumerable property paths of `object` that are not omitted.\n *\n * **Note:** This method is considerably slower than `_.pick`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The source object.\n * @param {...(string|string[])} [paths] The property paths to omit.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.omit(object, ['a', 'c']);\n * // => { 'b': '2' }\n */\n var omit = flatRest(function(object, paths) {\n var result = {};\n if (object == null) {\n return result;\n }\n var isDeep = false;\n paths = arrayMap(paths, function(path) {\n path = castPath(path, object);\n isDeep || (isDeep = path.length > 1);\n return path;\n });\n copyObject(object, getAllKeysIn(object), result);\n if (isDeep) {\n result = baseClone(result, CLONE_DEEP_FLAG | CLONE_FLAT_FLAG | CLONE_SYMBOLS_FLAG, customOmitClone);\n }\n var length = paths.length;\n while (length--) {\n baseUnset(result, paths[length]);\n }\n return result;\n });\n\n /**\n * The opposite of `_.pickBy`; this method creates an object composed of\n * the own and inherited enumerable string keyed properties of `object` that\n * `predicate` doesn't return truthy for. The predicate is invoked with two\n * arguments: (value, key).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The source object.\n * @param {Function} [predicate=_.identity] The function invoked per property.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.omitBy(object, _.isNumber);\n * // => { 'b': '2' }\n */\n function omitBy(object, predicate) {\n return pickBy(object, negate(getIteratee(predicate)));\n }\n\n /**\n * Creates an object composed of the picked `object` properties.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The source object.\n * @param {...(string|string[])} [paths] The property paths to pick.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.pick(object, ['a', 'c']);\n * // => { 'a': 1, 'c': 3 }\n */\n var pick = flatRest(function(object, paths) {\n return object == null ? {} : basePick(object, paths);\n });\n\n /**\n * Creates an object composed of the `object` properties `predicate` returns\n * truthy for. The predicate is invoked with two arguments: (value, key).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The source object.\n * @param {Function} [predicate=_.identity] The function invoked per property.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.pickBy(object, _.isNumber);\n * // => { 'a': 1, 'c': 3 }\n */\n function pickBy(object, predicate) {\n if (object == null) {\n return {};\n }\n var props = arrayMap(getAllKeysIn(object), function(prop) {\n return [prop];\n });\n predicate = getIteratee(predicate);\n return basePickBy(object, props, function(value, path) {\n return predicate(value, path[0]);\n });\n }\n\n /**\n * This method is like `_.get` except that if the resolved value is a\n * function it's invoked with the `this` binding of its parent object and\n * its result is returned.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to resolve.\n * @param {*} [defaultValue] The value returned for `undefined` resolved values.\n * @returns {*} Returns the resolved value.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c1': 3, 'c2': _.constant(4) } }] };\n *\n * _.result(object, 'a[0].b.c1');\n * // => 3\n *\n * _.result(object, 'a[0].b.c2');\n * // => 4\n *\n * _.result(object, 'a[0].b.c3', 'default');\n * // => 'default'\n *\n * _.result(object, 'a[0].b.c3', _.constant('default'));\n * // => 'default'\n */\n function result(object, path, defaultValue) {\n path = castPath(path, object);\n\n var index = -1,\n length = path.length;\n\n // Ensure the loop is entered when path is empty.\n if (!length) {\n length = 1;\n object = undefined;\n }\n while (++index < length) {\n var value = object == null ? undefined : object[toKey(path[index])];\n if (value === undefined) {\n index = length;\n value = defaultValue;\n }\n object = isFunction(value) ? value.call(object) : value;\n }\n return object;\n }\n\n /**\n * Sets the value at `path` of `object`. If a portion of `path` doesn't exist,\n * it's created. Arrays are created for missing index properties while objects\n * are created for all other missing properties. Use `_.setWith` to customize\n * `path` creation.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 3.7.0\n * @category Object\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }] };\n *\n * _.set(object, 'a[0].b.c', 4);\n * console.log(object.a[0].b.c);\n * // => 4\n *\n * _.set(object, ['x', '0', 'y', 'z'], 5);\n * console.log(object.x[0].y.z);\n * // => 5\n */\n function set(object, path, value) {\n return object == null ? object : baseSet(object, path, value);\n }\n\n /**\n * This method is like `_.set` except that it accepts `customizer` which is\n * invoked to produce the objects of `path`. If `customizer` returns `undefined`\n * path creation is handled by the method instead. The `customizer` is invoked\n * with three arguments: (nsValue, key, nsObject).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {*} value The value to set.\n * @param {Function} [customizer] The function to customize assigned values.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = {};\n *\n * _.setWith(object, '[0][1]', 'a', Object);\n * // => { '0': { '1': 'a' } }\n */\n function setWith(object, path, value, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined;\n return object == null ? object : baseSet(object, path, value, customizer);\n }\n\n /**\n * Creates an array of own enumerable string keyed-value pairs for `object`\n * which can be consumed by `_.fromPairs`. If `object` is a map or set, its\n * entries are returned.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @alias entries\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the key-value pairs.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.toPairs(new Foo);\n * // => [['a', 1], ['b', 2]] (iteration order is not guaranteed)\n */\n var toPairs = createToPairs(keys);\n\n /**\n * Creates an array of own and inherited enumerable string keyed-value pairs\n * for `object` which can be consumed by `_.fromPairs`. If `object` is a map\n * or set, its entries are returned.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @alias entriesIn\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the key-value pairs.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.toPairsIn(new Foo);\n * // => [['a', 1], ['b', 2], ['c', 3]] (iteration order is not guaranteed)\n */\n var toPairsIn = createToPairs(keysIn);\n\n /**\n * An alternative to `_.reduce`; this method transforms `object` to a new\n * `accumulator` object which is the result of running each of its own\n * enumerable string keyed properties thru `iteratee`, with each invocation\n * potentially mutating the `accumulator` object. If `accumulator` is not\n * provided, a new object with the same `[[Prototype]]` will be used. The\n * iteratee is invoked with four arguments: (accumulator, value, key, object).\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * @static\n * @memberOf _\n * @since 1.3.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @param {*} [accumulator] The custom accumulator value.\n * @returns {*} Returns the accumulated value.\n * @example\n *\n * _.transform([2, 3, 4], function(result, n) {\n * result.push(n *= n);\n * return n % 2 == 0;\n * }, []);\n * // => [4, 9]\n *\n * _.transform({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {\n * (result[value] || (result[value] = [])).push(key);\n * }, {});\n * // => { '1': ['a', 'c'], '2': ['b'] }\n */\n function transform(object, iteratee, accumulator) {\n var isArr = isArray(object),\n isArrLike = isArr || isBuffer(object) || isTypedArray(object);\n\n iteratee = getIteratee(iteratee, 4);\n if (accumulator == null) {\n var Ctor = object && object.constructor;\n if (isArrLike) {\n accumulator = isArr ? new Ctor : [];\n }\n else if (isObject(object)) {\n accumulator = isFunction(Ctor) ? baseCreate(getPrototype(object)) : {};\n }\n else {\n accumulator = {};\n }\n }\n (isArrLike ? arrayEach : baseForOwn)(object, function(value, index, object) {\n return iteratee(accumulator, value, index, object);\n });\n return accumulator;\n }\n\n /**\n * Removes the property at `path` of `object`.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to unset.\n * @returns {boolean} Returns `true` if the property is deleted, else `false`.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 7 } }] };\n * _.unset(object, 'a[0].b.c');\n * // => true\n *\n * console.log(object);\n * // => { 'a': [{ 'b': {} }] };\n *\n * _.unset(object, ['a', '0', 'b', 'c']);\n * // => true\n *\n * console.log(object);\n * // => { 'a': [{ 'b': {} }] };\n */\n function unset(object, path) {\n return object == null ? true : baseUnset(object, path);\n }\n\n /**\n * This method is like `_.set` except that accepts `updater` to produce the\n * value to set. Use `_.updateWith` to customize `path` creation. The `updater`\n * is invoked with one argument: (value).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.6.0\n * @category Object\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {Function} updater The function to produce the updated value.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }] };\n *\n * _.update(object, 'a[0].b.c', function(n) { return n * n; });\n * console.log(object.a[0].b.c);\n * // => 9\n *\n * _.update(object, 'x[0].y.z', function(n) { return n ? n + 1 : 0; });\n * console.log(object.x[0].y.z);\n * // => 0\n */\n function update(object, path, updater) {\n return object == null ? object : baseUpdate(object, path, castFunction(updater));\n }\n\n /**\n * This method is like `_.update` except that it accepts `customizer` which is\n * invoked to produce the objects of `path`. If `customizer` returns `undefined`\n * path creation is handled by the method instead. The `customizer` is invoked\n * with three arguments: (nsValue, key, nsObject).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.6.0\n * @category Object\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {Function} updater The function to produce the updated value.\n * @param {Function} [customizer] The function to customize assigned values.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = {};\n *\n * _.updateWith(object, '[0][1]', _.constant('a'), Object);\n * // => { '0': { '1': 'a' } }\n */\n function updateWith(object, path, updater, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined;\n return object == null ? object : baseUpdate(object, path, castFunction(updater), customizer);\n }\n\n /**\n * Creates an array of the own enumerable string keyed property values of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property values.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.values(new Foo);\n * // => [1, 2] (iteration order is not guaranteed)\n *\n * _.values('hi');\n * // => ['h', 'i']\n */\n function values(object) {\n return object == null ? [] : baseValues(object, keys(object));\n }\n\n /**\n * Creates an array of the own and inherited enumerable string keyed property\n * values of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property values.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.valuesIn(new Foo);\n * // => [1, 2, 3] (iteration order is not guaranteed)\n */\n function valuesIn(object) {\n return object == null ? [] : baseValues(object, keysIn(object));\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Clamps `number` within the inclusive `lower` and `upper` bounds.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Number\n * @param {number} number The number to clamp.\n * @param {number} [lower] The lower bound.\n * @param {number} upper The upper bound.\n * @returns {number} Returns the clamped number.\n * @example\n *\n * _.clamp(-10, -5, 5);\n * // => -5\n *\n * _.clamp(10, -5, 5);\n * // => 5\n */\n function clamp(number, lower, upper) {\n if (upper === undefined) {\n upper = lower;\n lower = undefined;\n }\n if (upper !== undefined) {\n upper = toNumber(upper);\n upper = upper === upper ? upper : 0;\n }\n if (lower !== undefined) {\n lower = toNumber(lower);\n lower = lower === lower ? lower : 0;\n }\n return baseClamp(toNumber(number), lower, upper);\n }\n\n /**\n * Checks if `n` is between `start` and up to, but not including, `end`. If\n * `end` is not specified, it's set to `start` with `start` then set to `0`.\n * If `start` is greater than `end` the params are swapped to support\n * negative ranges.\n *\n * @static\n * @memberOf _\n * @since 3.3.0\n * @category Number\n * @param {number} number The number to check.\n * @param {number} [start=0] The start of the range.\n * @param {number} end The end of the range.\n * @returns {boolean} Returns `true` if `number` is in the range, else `false`.\n * @see _.range, _.rangeRight\n * @example\n *\n * _.inRange(3, 2, 4);\n * // => true\n *\n * _.inRange(4, 8);\n * // => true\n *\n * _.inRange(4, 2);\n * // => false\n *\n * _.inRange(2, 2);\n * // => false\n *\n * _.inRange(1.2, 2);\n * // => true\n *\n * _.inRange(5.2, 4);\n * // => false\n *\n * _.inRange(-3, -2, -6);\n * // => true\n */\n function inRange(number, start, end) {\n start = toFinite(start);\n if (end === undefined) {\n end = start;\n start = 0;\n } else {\n end = toFinite(end);\n }\n number = toNumber(number);\n return baseInRange(number, start, end);\n }\n\n /**\n * Produces a random number between the inclusive `lower` and `upper` bounds.\n * If only one argument is provided a number between `0` and the given number\n * is returned. If `floating` is `true`, or either `lower` or `upper` are\n * floats, a floating-point number is returned instead of an integer.\n *\n * **Note:** JavaScript follows the IEEE-754 standard for resolving\n * floating-point values which can produce unexpected results.\n *\n * @static\n * @memberOf _\n * @since 0.7.0\n * @category Number\n * @param {number} [lower=0] The lower bound.\n * @param {number} [upper=1] The upper bound.\n * @param {boolean} [floating] Specify returning a floating-point number.\n * @returns {number} Returns the random number.\n * @example\n *\n * _.random(0, 5);\n * // => an integer between 0 and 5\n *\n * _.random(5);\n * // => also an integer between 0 and 5\n *\n * _.random(5, true);\n * // => a floating-point number between 0 and 5\n *\n * _.random(1.2, 5.2);\n * // => a floating-point number between 1.2 and 5.2\n */\n function random(lower, upper, floating) {\n if (floating && typeof floating != 'boolean' && isIterateeCall(lower, upper, floating)) {\n upper = floating = undefined;\n }\n if (floating === undefined) {\n if (typeof upper == 'boolean') {\n floating = upper;\n upper = undefined;\n }\n else if (typeof lower == 'boolean') {\n floating = lower;\n lower = undefined;\n }\n }\n if (lower === undefined && upper === undefined) {\n lower = 0;\n upper = 1;\n }\n else {\n lower = toFinite(lower);\n if (upper === undefined) {\n upper = lower;\n lower = 0;\n } else {\n upper = toFinite(upper);\n }\n }\n if (lower > upper) {\n var temp = lower;\n lower = upper;\n upper = temp;\n }\n if (floating || lower % 1 || upper % 1) {\n var rand = nativeRandom();\n return nativeMin(lower + (rand * (upper - lower + freeParseFloat('1e-' + ((rand + '').length - 1)))), upper);\n }\n return baseRandom(lower, upper);\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Converts `string` to [camel case](https://en.wikipedia.org/wiki/CamelCase).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the camel cased string.\n * @example\n *\n * _.camelCase('Foo Bar');\n * // => 'fooBar'\n *\n * _.camelCase('--foo-bar--');\n * // => 'fooBar'\n *\n * _.camelCase('__FOO_BAR__');\n * // => 'fooBar'\n */\n var camelCase = createCompounder(function(result, word, index) {\n word = word.toLowerCase();\n return result + (index ? capitalize(word) : word);\n });\n\n /**\n * Converts the first character of `string` to upper case and the remaining\n * to lower case.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to capitalize.\n * @returns {string} Returns the capitalized string.\n * @example\n *\n * _.capitalize('FRED');\n * // => 'Fred'\n */\n function capitalize(string) {\n return upperFirst(toString(string).toLowerCase());\n }\n\n /**\n * Deburrs `string` by converting\n * [Latin-1 Supplement](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table)\n * and [Latin Extended-A](https://en.wikipedia.org/wiki/Latin_Extended-A)\n * letters to basic Latin letters and removing\n * [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to deburr.\n * @returns {string} Returns the deburred string.\n * @example\n *\n * _.deburr('déjà vu');\n * // => 'deja vu'\n */\n function deburr(string) {\n string = toString(string);\n return string && string.replace(reLatin, deburrLetter).replace(reComboMark, '');\n }\n\n /**\n * Checks if `string` ends with the given target string.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to inspect.\n * @param {string} [target] The string to search for.\n * @param {number} [position=string.length] The position to search up to.\n * @returns {boolean} Returns `true` if `string` ends with `target`,\n * else `false`.\n * @example\n *\n * _.endsWith('abc', 'c');\n * // => true\n *\n * _.endsWith('abc', 'b');\n * // => false\n *\n * _.endsWith('abc', 'b', 2);\n * // => true\n */\n function endsWith(string, target, position) {\n string = toString(string);\n target = baseToString(target);\n\n var length = string.length;\n position = position === undefined\n ? length\n : baseClamp(toInteger(position), 0, length);\n\n var end = position;\n position -= target.length;\n return position >= 0 && string.slice(position, end) == target;\n }\n\n /**\n * Converts the characters \"&\", \"<\", \">\", '\"', and \"'\" in `string` to their\n * corresponding HTML entities.\n *\n * **Note:** No other characters are escaped. To escape additional\n * characters use a third-party library like [_he_](https://mths.be/he).\n *\n * Though the \">\" character is escaped for symmetry, characters like\n * \">\" and \"/\" don't need escaping in HTML and have no special meaning\n * unless they're part of a tag or unquoted attribute value. See\n * [Mathias Bynens's article](https://mathiasbynens.be/notes/ambiguous-ampersands)\n * (under \"semi-related fun fact\") for more details.\n *\n * When working with HTML you should always\n * [quote attribute values](http://wonko.com/post/html-escaping) to reduce\n * XSS vectors.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category String\n * @param {string} [string=''] The string to escape.\n * @returns {string} Returns the escaped string.\n * @example\n *\n * _.escape('fred, barney, & pebbles');\n * // => 'fred, barney, &amp; pebbles'\n */\n function escape(string) {\n string = toString(string);\n return (string && reHasUnescapedHtml.test(string))\n ? string.replace(reUnescapedHtml, escapeHtmlChar)\n : string;\n }\n\n /**\n * Escapes the `RegExp` special characters \"^\", \"$\", \"\\\", \".\", \"*\", \"+\",\n * \"?\", \"(\", \")\", \"[\", \"]\", \"{\", \"}\", and \"|\" in `string`.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to escape.\n * @returns {string} Returns the escaped string.\n * @example\n *\n * _.escapeRegExp('[lodash](https://lodash.com/)');\n * // => '\\[lodash\\]\\(https://lodash\\.com/\\)'\n */\n function escapeRegExp(string) {\n string = toString(string);\n return (string && reHasRegExpChar.test(string))\n ? string.replace(reRegExpChar, '\\\\$&')\n : string;\n }\n\n /**\n * Converts `string` to\n * [kebab case](https://en.wikipedia.org/wiki/Letter_case#Special_case_styles).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the kebab cased string.\n * @example\n *\n * _.kebabCase('Foo Bar');\n * // => 'foo-bar'\n *\n * _.kebabCase('fooBar');\n * // => 'foo-bar'\n *\n * _.kebabCase('__FOO_BAR__');\n * // => 'foo-bar'\n */\n var kebabCase = createCompounder(function(result, word, index) {\n return result + (index ? '-' : '') + word.toLowerCase();\n });\n\n /**\n * Converts `string`, as space separated words, to lower case.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the lower cased string.\n * @example\n *\n * _.lowerCase('--Foo-Bar--');\n * // => 'foo bar'\n *\n * _.lowerCase('fooBar');\n * // => 'foo bar'\n *\n * _.lowerCase('__FOO_BAR__');\n * // => 'foo bar'\n */\n var lowerCase = createCompounder(function(result, word, index) {\n return result + (index ? ' ' : '') + word.toLowerCase();\n });\n\n /**\n * Converts the first character of `string` to lower case.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the converted string.\n * @example\n *\n * _.lowerFirst('Fred');\n * // => 'fred'\n *\n * _.lowerFirst('FRED');\n * // => 'fRED'\n */\n var lowerFirst = createCaseFirst('toLowerCase');\n\n /**\n * Pads `string` on the left and right sides if it's shorter than `length`.\n * Padding characters are truncated if they can't be evenly divided by `length`.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to pad.\n * @param {number} [length=0] The padding length.\n * @param {string} [chars=' '] The string used as padding.\n * @returns {string} Returns the padded string.\n * @example\n *\n * _.pad('abc', 8);\n * // => ' abc '\n *\n * _.pad('abc', 8, '_-');\n * // => '_-abc_-_'\n *\n * _.pad('abc', 3);\n * // => 'abc'\n */\n function pad(string, length, chars) {\n string = toString(string);\n length = toInteger(length);\n\n var strLength = length ? stringSize(string) : 0;\n if (!length || strLength >= length) {\n return string;\n }\n var mid = (length - strLength) / 2;\n return (\n createPadding(nativeFloor(mid), chars) +\n string +\n createPadding(nativeCeil(mid), chars)\n );\n }\n\n /**\n * Pads `string` on the right side if it's shorter than `length`. Padding\n * characters are truncated if they exceed `length`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to pad.\n * @param {number} [length=0] The padding length.\n * @param {string} [chars=' '] The string used as padding.\n * @returns {string} Returns the padded string.\n * @example\n *\n * _.padEnd('abc', 6);\n * // => 'abc '\n *\n * _.padEnd('abc', 6, '_-');\n * // => 'abc_-_'\n *\n * _.padEnd('abc', 3);\n * // => 'abc'\n */\n function padEnd(string, length, chars) {\n string = toString(string);\n length = toInteger(length);\n\n var strLength = length ? stringSize(string) : 0;\n return (length && strLength < length)\n ? (string + createPadding(length - strLength, chars))\n : string;\n }\n\n /**\n * Pads `string` on the left side if it's shorter than `length`. Padding\n * characters are truncated if they exceed `length`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to pad.\n * @param {number} [length=0] The padding length.\n * @param {string} [chars=' '] The string used as padding.\n * @returns {string} Returns the padded string.\n * @example\n *\n * _.padStart('abc', 6);\n * // => ' abc'\n *\n * _.padStart('abc', 6, '_-');\n * // => '_-_abc'\n *\n * _.padStart('abc', 3);\n * // => 'abc'\n */\n function padStart(string, length, chars) {\n string = toString(string);\n length = toInteger(length);\n\n var strLength = length ? stringSize(string) : 0;\n return (length && strLength < length)\n ? (createPadding(length - strLength, chars) + string)\n : string;\n }\n\n /**\n * Converts `string` to an integer of the specified radix. If `radix` is\n * `undefined` or `0`, a `radix` of `10` is used unless `value` is a\n * hexadecimal, in which case a `radix` of `16` is used.\n *\n * **Note:** This method aligns with the\n * [ES5 implementation](https://es5.github.io/#x15.1.2.2) of `parseInt`.\n *\n * @static\n * @memberOf _\n * @since 1.1.0\n * @category String\n * @param {string} string The string to convert.\n * @param {number} [radix=10] The radix to interpret `value` by.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.parseInt('08');\n * // => 8\n *\n * _.map(['6', '08', '10'], _.parseInt);\n * // => [6, 8, 10]\n */\n function parseInt(string, radix, guard) {\n if (guard || radix == null) {\n radix = 0;\n } else if (radix) {\n radix = +radix;\n }\n return nativeParseInt(toString(string).replace(reTrimStart, ''), radix || 0);\n }\n\n /**\n * Repeats the given string `n` times.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to repeat.\n * @param {number} [n=1] The number of times to repeat the string.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {string} Returns the repeated string.\n * @example\n *\n * _.repeat('*', 3);\n * // => '***'\n *\n * _.repeat('abc', 2);\n * // => 'abcabc'\n *\n * _.repeat('abc', 0);\n * // => ''\n */\n function repeat(string, n, guard) {\n if ((guard ? isIterateeCall(string, n, guard) : n === undefined)) {\n n = 1;\n } else {\n n = toInteger(n);\n }\n return baseRepeat(toString(string), n);\n }\n\n /**\n * Replaces matches for `pattern` in `string` with `replacement`.\n *\n * **Note:** This method is based on\n * [`String#replace`](https://mdn.io/String/replace).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to modify.\n * @param {RegExp|string} pattern The pattern to replace.\n * @param {Function|string} replacement The match replacement.\n * @returns {string} Returns the modified string.\n * @example\n *\n * _.replace('Hi Fred', 'Fred', 'Barney');\n * // => 'Hi Barney'\n */\n function replace() {\n var args = arguments,\n string = toString(args[0]);\n\n return args.length < 3 ? string : string.replace(args[1], args[2]);\n }\n\n /**\n * Converts `string` to\n * [snake case](https://en.wikipedia.org/wiki/Snake_case).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the snake cased string.\n * @example\n *\n * _.snakeCase('Foo Bar');\n * // => 'foo_bar'\n *\n * _.snakeCase('fooBar');\n * // => 'foo_bar'\n *\n * _.snakeCase('--FOO-BAR--');\n * // => 'foo_bar'\n */\n var snakeCase = createCompounder(function(result, word, index) {\n return result + (index ? '_' : '') + word.toLowerCase();\n });\n\n /**\n * Splits `string` by `separator`.\n *\n * **Note:** This method is based on\n * [`String#split`](https://mdn.io/String/split).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to split.\n * @param {RegExp|string} separator The separator pattern to split by.\n * @param {number} [limit] The length to truncate results to.\n * @returns {Array} Returns the string segments.\n * @example\n *\n * _.split('a-b-c', '-', 2);\n * // => ['a', 'b']\n */\n function split(string, separator, limit) {\n if (limit && typeof limit != 'number' && isIterateeCall(string, separator, limit)) {\n separator = limit = undefined;\n }\n limit = limit === undefined ? MAX_ARRAY_LENGTH : limit >>> 0;\n if (!limit) {\n return [];\n }\n string = toString(string);\n if (string && (\n typeof separator == 'string' ||\n (separator != null && !isRegExp(separator))\n )) {\n separator = baseToString(separator);\n if (!separator && hasUnicode(string)) {\n return castSlice(stringToArray(string), 0, limit);\n }\n }\n return string.split(separator, limit);\n }\n\n /**\n * Converts `string` to\n * [start case](https://en.wikipedia.org/wiki/Letter_case#Stylistic_or_specialised_usage).\n *\n * @static\n * @memberOf _\n * @since 3.1.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the start cased string.\n * @example\n *\n * _.startCase('--foo-bar--');\n * // => 'Foo Bar'\n *\n * _.startCase('fooBar');\n * // => 'Foo Bar'\n *\n * _.startCase('__FOO_BAR__');\n * // => 'FOO BAR'\n */\n var startCase = createCompounder(function(result, word, index) {\n return result + (index ? ' ' : '') + upperFirst(word);\n });\n\n /**\n * Checks if `string` starts with the given target string.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to inspect.\n * @param {string} [target] The string to search for.\n * @param {number} [position=0] The position to search from.\n * @returns {boolean} Returns `true` if `string` starts with `target`,\n * else `false`.\n * @example\n *\n * _.startsWith('abc', 'a');\n * // => true\n *\n * _.startsWith('abc', 'b');\n * // => false\n *\n * _.startsWith('abc', 'b', 1);\n * // => true\n */\n function startsWith(string, target, position) {\n string = toString(string);\n position = position == null\n ? 0\n : baseClamp(toInteger(position), 0, string.length);\n\n target = baseToString(target);\n return string.slice(position, position + target.length) == target;\n }\n\n /**\n * Creates a compiled template function that can interpolate data properties\n * in \"interpolate\" delimiters, HTML-escape interpolated data properties in\n * \"escape\" delimiters, and execute JavaScript in \"evaluate\" delimiters. Data\n * properties may be accessed as free variables in the template. If a setting\n * object is given, it takes precedence over `_.templateSettings` values.\n *\n * **Note:** In the development build `_.template` utilizes\n * [sourceURLs](http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl)\n * for easier debugging.\n *\n * For more information on precompiling templates see\n * [lodash's custom builds documentation](https://lodash.com/custom-builds).\n *\n * For more information on Chrome extension sandboxes see\n * [Chrome's extensions documentation](https://developer.chrome.com/extensions/sandboxingEval).\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category String\n * @param {string} [string=''] The template string.\n * @param {Object} [options={}] The options object.\n * @param {RegExp} [options.escape=_.templateSettings.escape]\n * The HTML \"escape\" delimiter.\n * @param {RegExp} [options.evaluate=_.templateSettings.evaluate]\n * The \"evaluate\" delimiter.\n * @param {Object} [options.imports=_.templateSettings.imports]\n * An object to import into the template as free variables.\n * @param {RegExp} [options.interpolate=_.templateSettings.interpolate]\n * The \"interpolate\" delimiter.\n * @param {string} [options.sourceURL='lodash.templateSources[n]']\n * The sourceURL of the compiled template.\n * @param {string} [options.variable='obj']\n * The data object variable name.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Function} Returns the compiled template function.\n * @example\n *\n * // Use the \"interpolate\" delimiter to create a compiled template.\n * var compiled = _.template('hello <%= user %>!');\n * compiled({ 'user': 'fred' });\n * // => 'hello fred!'\n *\n * // Use the HTML \"escape\" delimiter to escape data property values.\n * var compiled = _.template('<b><%- value %></b>');\n * compiled({ 'value': '<script>' });\n * // => '<b>&lt;script&gt;</b>'\n *\n * // Use the \"evaluate\" delimiter to execute JavaScript and generate HTML.\n * var compiled = _.template('<% _.forEach(users, function(user) { %><li><%- user %></li><% }); %>');\n * compiled({ 'users': ['fred', 'barney'] });\n * // => '<li>fred</li><li>barney</li>'\n *\n * // Use the internal `print` function in \"evaluate\" delimiters.\n * var compiled = _.template('<% print(\"hello \" + user); %>!');\n * compiled({ 'user': 'barney' });\n * // => 'hello barney!'\n *\n * // Use the ES template literal delimiter as an \"interpolate\" delimiter.\n * // Disable support by replacing the \"interpolate\" delimiter.\n * var compiled = _.template('hello ${ user }!');\n * compiled({ 'user': 'pebbles' });\n * // => 'hello pebbles!'\n *\n * // Use backslashes to treat delimiters as plain text.\n * var compiled = _.template('<%= \"\\\\<%- value %\\\\>\" %>');\n * compiled({ 'value': 'ignored' });\n * // => '<%- value %>'\n *\n * // Use the `imports` option to import `jQuery` as `jq`.\n * var text = '<% jq.each(users, function(user) { %><li><%- user %></li><% }); %>';\n * var compiled = _.template(text, { 'imports': { 'jq': jQuery } });\n * compiled({ 'users': ['fred', 'barney'] });\n * // => '<li>fred</li><li>barney</li>'\n *\n * // Use the `sourceURL` option to specify a custom sourceURL for the template.\n * var compiled = _.template('hello <%= user %>!', { 'sourceURL': '/basic/greeting.jst' });\n * compiled(data);\n * // => Find the source of \"greeting.jst\" under the Sources tab or Resources panel of the web inspector.\n *\n * // Use the `variable` option to ensure a with-statement isn't used in the compiled template.\n * var compiled = _.template('hi <%= data.user %>!', { 'variable': 'data' });\n * compiled.source;\n * // => function(data) {\n * // var __t, __p = '';\n * // __p += 'hi ' + ((__t = ( data.user )) == null ? '' : __t) + '!';\n * // return __p;\n * // }\n *\n * // Use custom template delimiters.\n * _.templateSettings.interpolate = /{{([\\s\\S]+?)}}/g;\n * var compiled = _.template('hello {{ user }}!');\n * compiled({ 'user': 'mustache' });\n * // => 'hello mustache!'\n *\n * // Use the `source` property to inline compiled templates for meaningful\n * // line numbers in error messages and stack traces.\n * fs.writeFileSync(path.join(process.cwd(), 'jst.js'), '\\\n * var JST = {\\\n * \"main\": ' + _.template(mainText).source + '\\\n * };\\\n * ');\n */\n function template(string, options, guard) {\n // Based on John Resig's `tmpl` implementation\n // (http://ejohn.org/blog/javascript-micro-templating/)\n // and Laura Doktorova's doT.js (https://github.com/olado/doT).\n var settings = lodash.templateSettings;\n\n if (guard && isIterateeCall(string, options, guard)) {\n options = undefined;\n }\n string = toString(string);\n options = assignInWith({}, options, settings, customDefaultsAssignIn);\n\n var imports = assignInWith({}, options.imports, settings.imports, customDefaultsAssignIn),\n importsKeys = keys(imports),\n importsValues = baseValues(imports, importsKeys);\n\n var isEscaping,\n isEvaluating,\n index = 0,\n interpolate = options.interpolate || reNoMatch,\n source = \"__p += '\";\n\n // Compile the regexp to match each delimiter.\n var reDelimiters = RegExp(\n (options.escape || reNoMatch).source + '|' +\n interpolate.source + '|' +\n (interpolate === reInterpolate ? reEsTemplate : reNoMatch).source + '|' +\n (options.evaluate || reNoMatch).source + '|$'\n , 'g');\n\n // Use a sourceURL for easier debugging.\n var sourceURL = '//# sourceURL=' +\n ('sourceURL' in options\n ? options.sourceURL\n : ('lodash.templateSources[' + (++templateCounter) + ']')\n ) + '\\n';\n\n string.replace(reDelimiters, function(match, escapeValue, interpolateValue, esTemplateValue, evaluateValue, offset) {\n interpolateValue || (interpolateValue = esTemplateValue);\n\n // Escape characters that can't be included in string literals.\n source += string.slice(index, offset).replace(reUnescapedString, escapeStringChar);\n\n // Replace delimiters with snippets.\n if (escapeValue) {\n isEscaping = true;\n source += \"' +\\n__e(\" + escapeValue + \") +\\n'\";\n }\n if (evaluateValue) {\n isEvaluating = true;\n source += \"';\\n\" + evaluateValue + \";\\n__p += '\";\n }\n if (interpolateValue) {\n source += \"' +\\n((__t = (\" + interpolateValue + \")) == null ? '' : __t) +\\n'\";\n }\n index = offset + match.length;\n\n // The JS engine embedded in Adobe products needs `match` returned in\n // order to produce the correct `offset` value.\n return match;\n });\n\n source += \"';\\n\";\n\n // If `variable` is not specified wrap a with-statement around the generated\n // code to add the data object to the top of the scope chain.\n var variable = options.variable;\n if (!variable) {\n source = 'with (obj) {\\n' + source + '\\n}\\n';\n }\n // Cleanup code by stripping empty strings.\n source = (isEvaluating ? source.replace(reEmptyStringLeading, '') : source)\n .replace(reEmptyStringMiddle, '$1')\n .replace(reEmptyStringTrailing, '$1;');\n\n // Frame code as the function body.\n source = 'function(' + (variable || 'obj') + ') {\\n' +\n (variable\n ? ''\n : 'obj || (obj = {});\\n'\n ) +\n \"var __t, __p = ''\" +\n (isEscaping\n ? ', __e = _.escape'\n : ''\n ) +\n (isEvaluating\n ? ', __j = Array.prototype.join;\\n' +\n \"function print() { __p += __j.call(arguments, '') }\\n\"\n : ';\\n'\n ) +\n source +\n 'return __p\\n}';\n\n var result = attempt(function() {\n return Function(importsKeys, sourceURL + 'return ' + source)\n .apply(undefined, importsValues);\n });\n\n // Provide the compiled function's source by its `toString` method or\n // the `source` property as a convenience for inlining compiled templates.\n result.source = source;\n if (isError(result)) {\n throw result;\n }\n return result;\n }\n\n /**\n * Converts `string`, as a whole, to lower case just like\n * [String#toLowerCase](https://mdn.io/toLowerCase).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the lower cased string.\n * @example\n *\n * _.toLower('--Foo-Bar--');\n * // => '--foo-bar--'\n *\n * _.toLower('fooBar');\n * // => 'foobar'\n *\n * _.toLower('__FOO_BAR__');\n * // => '__foo_bar__'\n */\n function toLower(value) {\n return toString(value).toLowerCase();\n }\n\n /**\n * Converts `string`, as a whole, to upper case just like\n * [String#toUpperCase](https://mdn.io/toUpperCase).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the upper cased string.\n * @example\n *\n * _.toUpper('--foo-bar--');\n * // => '--FOO-BAR--'\n *\n * _.toUpper('fooBar');\n * // => 'FOOBAR'\n *\n * _.toUpper('__foo_bar__');\n * // => '__FOO_BAR__'\n */\n function toUpper(value) {\n return toString(value).toUpperCase();\n }\n\n /**\n * Removes leading and trailing whitespace or specified characters from `string`.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to trim.\n * @param {string} [chars=whitespace] The characters to trim.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {string} Returns the trimmed string.\n * @example\n *\n * _.trim(' abc ');\n * // => 'abc'\n *\n * _.trim('-_-abc-_-', '_-');\n * // => 'abc'\n *\n * _.map([' foo ', ' bar '], _.trim);\n * // => ['foo', 'bar']\n */\n function trim(string, chars, guard) {\n string = toString(string);\n if (string && (guard || chars === undefined)) {\n return string.replace(reTrim, '');\n }\n if (!string || !(chars = baseToString(chars))) {\n return string;\n }\n var strSymbols = stringToArray(string),\n chrSymbols = stringToArray(chars),\n start = charsStartIndex(strSymbols, chrSymbols),\n end = charsEndIndex(strSymbols, chrSymbols) + 1;\n\n return castSlice(strSymbols, start, end).join('');\n }\n\n /**\n * Removes trailing whitespace or specified characters from `string`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to trim.\n * @param {string} [chars=whitespace] The characters to trim.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {string} Returns the trimmed string.\n * @example\n *\n * _.trimEnd(' abc ');\n * // => ' abc'\n *\n * _.trimEnd('-_-abc-_-', '_-');\n * // => '-_-abc'\n */\n function trimEnd(string, chars, guard) {\n string = toString(string);\n if (string && (guard || chars === undefined)) {\n return string.replace(reTrimEnd, '');\n }\n if (!string || !(chars = baseToString(chars))) {\n return string;\n }\n var strSymbols = stringToArray(string),\n end = charsEndIndex(strSymbols, stringToArray(chars)) + 1;\n\n return castSlice(strSymbols, 0, end).join('');\n }\n\n /**\n * Removes leading whitespace or specified characters from `string`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to trim.\n * @param {string} [chars=whitespace] The characters to trim.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {string} Returns the trimmed string.\n * @example\n *\n * _.trimStart(' abc ');\n * // => 'abc '\n *\n * _.trimStart('-_-abc-_-', '_-');\n * // => 'abc-_-'\n */\n function trimStart(string, chars, guard) {\n string = toString(string);\n if (string && (guard || chars === undefined)) {\n return string.replace(reTrimStart, '');\n }\n if (!string || !(chars = baseToString(chars))) {\n return string;\n }\n var strSymbols = stringToArray(string),\n start = charsStartIndex(strSymbols, stringToArray(chars));\n\n return castSlice(strSymbols, start).join('');\n }\n\n /**\n * Truncates `string` if it's longer than the given maximum string length.\n * The last characters of the truncated string are replaced with the omission\n * string which defaults to \"...\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to truncate.\n * @param {Object} [options={}] The options object.\n * @param {number} [options.length=30] The maximum string length.\n * @param {string} [options.omission='...'] The string to indicate text is omitted.\n * @param {RegExp|string} [options.separator] The separator pattern to truncate to.\n * @returns {string} Returns the truncated string.\n * @example\n *\n * _.truncate('hi-diddly-ho there, neighborino');\n * // => 'hi-diddly-ho there, neighbo...'\n *\n * _.truncate('hi-diddly-ho there, neighborino', {\n * 'length': 24,\n * 'separator': ' '\n * });\n * // => 'hi-diddly-ho there,...'\n *\n * _.truncate('hi-diddly-ho there, neighborino', {\n * 'length': 24,\n * 'separator': /,? +/\n * });\n * // => 'hi-diddly-ho there...'\n *\n * _.truncate('hi-diddly-ho there, neighborino', {\n * 'omission': ' [...]'\n * });\n * // => 'hi-diddly-ho there, neig [...]'\n */\n function truncate(string, options) {\n var length = DEFAULT_TRUNC_LENGTH,\n omission = DEFAULT_TRUNC_OMISSION;\n\n if (isObject(options)) {\n var separator = 'separator' in options ? options.separator : separator;\n length = 'length' in options ? toInteger(options.length) : length;\n omission = 'omission' in options ? baseToString(options.omission) : omission;\n }\n string = toString(string);\n\n var strLength = string.length;\n if (hasUnicode(string)) {\n var strSymbols = stringToArray(string);\n strLength = strSymbols.length;\n }\n if (length >= strLength) {\n return string;\n }\n var end = length - stringSize(omission);\n if (end < 1) {\n return omission;\n }\n var result = strSymbols\n ? castSlice(strSymbols, 0, end).join('')\n : string.slice(0, end);\n\n if (separator === undefined) {\n return result + omission;\n }\n if (strSymbols) {\n end += (result.length - end);\n }\n if (isRegExp(separator)) {\n if (string.slice(end).search(separator)) {\n var match,\n substring = result;\n\n if (!separator.global) {\n separator = RegExp(separator.source, toString(reFlags.exec(separator)) + 'g');\n }\n separator.lastIndex = 0;\n while ((match = separator.exec(substring))) {\n var newEnd = match.index;\n }\n result = result.slice(0, newEnd === undefined ? end : newEnd);\n }\n } else if (string.indexOf(baseToString(separator), end) != end) {\n var index = result.lastIndexOf(separator);\n if (index > -1) {\n result = result.slice(0, index);\n }\n }\n return result + omission;\n }\n\n /**\n * The inverse of `_.escape`; this method converts the HTML entities\n * `&amp;`, `&lt;`, `&gt;`, `&quot;`, and `&#39;` in `string` to\n * their corresponding characters.\n *\n * **Note:** No other HTML entities are unescaped. To unescape additional\n * HTML entities use a third-party library like [_he_](https://mths.be/he).\n *\n * @static\n * @memberOf _\n * @since 0.6.0\n * @category String\n * @param {string} [string=''] The string to unescape.\n * @returns {string} Returns the unescaped string.\n * @example\n *\n * _.unescape('fred, barney, &amp; pebbles');\n * // => 'fred, barney, & pebbles'\n */\n function unescape(string) {\n string = toString(string);\n return (string && reHasEscapedHtml.test(string))\n ? string.replace(reEscapedHtml, unescapeHtmlChar)\n : string;\n }\n\n /**\n * Converts `string`, as space separated words, to upper case.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the upper cased string.\n * @example\n *\n * _.upperCase('--foo-bar');\n * // => 'FOO BAR'\n *\n * _.upperCase('fooBar');\n * // => 'FOO BAR'\n *\n * _.upperCase('__foo_bar__');\n * // => 'FOO BAR'\n */\n var upperCase = createCompounder(function(result, word, index) {\n return result + (index ? ' ' : '') + word.toUpperCase();\n });\n\n /**\n * Converts the first character of `string` to upper case.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the converted string.\n * @example\n *\n * _.upperFirst('fred');\n * // => 'Fred'\n *\n * _.upperFirst('FRED');\n * // => 'FRED'\n */\n var upperFirst = createCaseFirst('toUpperCase');\n\n /**\n * Splits `string` into an array of its words.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to inspect.\n * @param {RegExp|string} [pattern] The pattern to match words.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the words of `string`.\n * @example\n *\n * _.words('fred, barney, & pebbles');\n * // => ['fred', 'barney', 'pebbles']\n *\n * _.words('fred, barney, & pebbles', /[^, ]+/g);\n * // => ['fred', 'barney', '&', 'pebbles']\n */\n function words(string, pattern, guard) {\n string = toString(string);\n pattern = guard ? undefined : pattern;\n\n if (pattern === undefined) {\n return hasUnicodeWord(string) ? unicodeWords(string) : asciiWords(string);\n }\n return string.match(pattern) || [];\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Attempts to invoke `func`, returning either the result or the caught error\n * object. Any additional arguments are provided to `func` when it's invoked.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Util\n * @param {Function} func The function to attempt.\n * @param {...*} [args] The arguments to invoke `func` with.\n * @returns {*} Returns the `func` result or error object.\n * @example\n *\n * // Avoid throwing errors for invalid selectors.\n * var elements = _.attempt(function(selector) {\n * return document.querySelectorAll(selector);\n * }, '>_>');\n *\n * if (_.isError(elements)) {\n * elements = [];\n * }\n */\n var attempt = baseRest(function(func, args) {\n try {\n return apply(func, undefined, args);\n } catch (e) {\n return isError(e) ? e : new Error(e);\n }\n });\n\n /**\n * Binds methods of an object to the object itself, overwriting the existing\n * method.\n *\n * **Note:** This method doesn't set the \"length\" property of bound functions.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {Object} object The object to bind and assign the bound methods to.\n * @param {...(string|string[])} methodNames The object method names to bind.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var view = {\n * 'label': 'docs',\n * 'click': function() {\n * console.log('clicked ' + this.label);\n * }\n * };\n *\n * _.bindAll(view, ['click']);\n * jQuery(element).on('click', view.click);\n * // => Logs 'clicked docs' when clicked.\n */\n var bindAll = flatRest(function(object, methodNames) {\n arrayEach(methodNames, function(key) {\n key = toKey(key);\n baseAssignValue(object, key, bind(object[key], object));\n });\n return object;\n });\n\n /**\n * Creates a function that iterates over `pairs` and invokes the corresponding\n * function of the first predicate to return truthy. The predicate-function\n * pairs are invoked with the `this` binding and arguments of the created\n * function.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Util\n * @param {Array} pairs The predicate-function pairs.\n * @returns {Function} Returns the new composite function.\n * @example\n *\n * var func = _.cond([\n * [_.matches({ 'a': 1 }), _.constant('matches A')],\n * [_.conforms({ 'b': _.isNumber }), _.constant('matches B')],\n * [_.stubTrue, _.constant('no match')]\n * ]);\n *\n * func({ 'a': 1, 'b': 2 });\n * // => 'matches A'\n *\n * func({ 'a': 0, 'b': 1 });\n * // => 'matches B'\n *\n * func({ 'a': '1', 'b': '2' });\n * // => 'no match'\n */\n function cond(pairs) {\n var length = pairs == null ? 0 : pairs.length,\n toIteratee = getIteratee();\n\n pairs = !length ? [] : arrayMap(pairs, function(pair) {\n if (typeof pair[1] != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n return [toIteratee(pair[0]), pair[1]];\n });\n\n return baseRest(function(args) {\n var index = -1;\n while (++index < length) {\n var pair = pairs[index];\n if (apply(pair[0], this, args)) {\n return apply(pair[1], this, args);\n }\n }\n });\n }\n\n /**\n * Creates a function that invokes the predicate properties of `source` with\n * the corresponding property values of a given object, returning `true` if\n * all predicates return truthy, else `false`.\n *\n * **Note:** The created function is equivalent to `_.conformsTo` with\n * `source` partially applied.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Util\n * @param {Object} source The object of property predicates to conform to.\n * @returns {Function} Returns the new spec function.\n * @example\n *\n * var objects = [\n * { 'a': 2, 'b': 1 },\n * { 'a': 1, 'b': 2 }\n * ];\n *\n * _.filter(objects, _.conforms({ 'b': function(n) { return n > 1; } }));\n * // => [{ 'a': 1, 'b': 2 }]\n */\n function conforms(source) {\n return baseConforms(baseClone(source, CLONE_DEEP_FLAG));\n }\n\n /**\n * Creates a function that returns `value`.\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Util\n * @param {*} value The value to return from the new function.\n * @returns {Function} Returns the new constant function.\n * @example\n *\n * var objects = _.times(2, _.constant({ 'a': 1 }));\n *\n * console.log(objects);\n * // => [{ 'a': 1 }, { 'a': 1 }]\n *\n * console.log(objects[0] === objects[1]);\n * // => true\n */\n function constant(value) {\n return function() {\n return value;\n };\n }\n\n /**\n * Checks `value` to determine whether a default value should be returned in\n * its place. The `defaultValue` is returned if `value` is `NaN`, `null`,\n * or `undefined`.\n *\n * @static\n * @memberOf _\n * @since 4.14.0\n * @category Util\n * @param {*} value The value to check.\n * @param {*} defaultValue The default value.\n * @returns {*} Returns the resolved value.\n * @example\n *\n * _.defaultTo(1, 10);\n * // => 1\n *\n * _.defaultTo(undefined, 10);\n * // => 10\n */\n function defaultTo(value, defaultValue) {\n return (value == null || value !== value) ? defaultValue : value;\n }\n\n /**\n * Creates a function that returns the result of invoking the given functions\n * with the `this` binding of the created function, where each successive\n * invocation is supplied the return value of the previous.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Util\n * @param {...(Function|Function[])} [funcs] The functions to invoke.\n * @returns {Function} Returns the new composite function.\n * @see _.flowRight\n * @example\n *\n * function square(n) {\n * return n * n;\n * }\n *\n * var addSquare = _.flow([_.add, square]);\n * addSquare(1, 2);\n * // => 9\n */\n var flow = createFlow();\n\n /**\n * This method is like `_.flow` except that it creates a function that\n * invokes the given functions from right to left.\n *\n * @static\n * @since 3.0.0\n * @memberOf _\n * @category Util\n * @param {...(Function|Function[])} [funcs] The functions to invoke.\n * @returns {Function} Returns the new composite function.\n * @see _.flow\n * @example\n *\n * function square(n) {\n * return n * n;\n * }\n *\n * var addSquare = _.flowRight([square, _.add]);\n * addSquare(1, 2);\n * // => 9\n */\n var flowRight = createFlow(true);\n\n /**\n * This method returns the first argument it receives.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {*} value Any value.\n * @returns {*} Returns `value`.\n * @example\n *\n * var object = { 'a': 1 };\n *\n * console.log(_.identity(object) === object);\n * // => true\n */\n function identity(value) {\n return value;\n }\n\n /**\n * Creates a function that invokes `func` with the arguments of the created\n * function. If `func` is a property name, the created function returns the\n * property value for a given element. If `func` is an array or object, the\n * created function returns `true` for elements that contain the equivalent\n * source properties, otherwise it returns `false`.\n *\n * @static\n * @since 4.0.0\n * @memberOf _\n * @category Util\n * @param {*} [func=_.identity] The value to convert to a callback.\n * @returns {Function} Returns the callback.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': true },\n * { 'user': 'fred', 'age': 40, 'active': false }\n * ];\n *\n * // The `_.matches` iteratee shorthand.\n * _.filter(users, _.iteratee({ 'user': 'barney', 'active': true }));\n * // => [{ 'user': 'barney', 'age': 36, 'active': true }]\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.filter(users, _.iteratee(['user', 'fred']));\n * // => [{ 'user': 'fred', 'age': 40 }]\n *\n * // The `_.property` iteratee shorthand.\n * _.map(users, _.iteratee('user'));\n * // => ['barney', 'fred']\n *\n * // Create custom iteratee shorthands.\n * _.iteratee = _.wrap(_.iteratee, function(iteratee, func) {\n * return !_.isRegExp(func) ? iteratee(func) : function(string) {\n * return func.test(string);\n * };\n * });\n *\n * _.filter(['abc', 'def'], /ef/);\n * // => ['def']\n */\n function iteratee(func) {\n return baseIteratee(typeof func == 'function' ? func : baseClone(func, CLONE_DEEP_FLAG));\n }\n\n /**\n * Creates a function that performs a partial deep comparison between a given\n * object and `source`, returning `true` if the given object has equivalent\n * property values, else `false`.\n *\n * **Note:** The created function is equivalent to `_.isMatch` with `source`\n * partially applied.\n *\n * Partial comparisons will match empty array and empty object `source`\n * values against any array or object value, respectively. See `_.isEqual`\n * for a list of supported value comparisons.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Util\n * @param {Object} source The object of property values to match.\n * @returns {Function} Returns the new spec function.\n * @example\n *\n * var objects = [\n * { 'a': 1, 'b': 2, 'c': 3 },\n * { 'a': 4, 'b': 5, 'c': 6 }\n * ];\n *\n * _.filter(objects, _.matches({ 'a': 4, 'c': 6 }));\n * // => [{ 'a': 4, 'b': 5, 'c': 6 }]\n */\n function matches(source) {\n return baseMatches(baseClone(source, CLONE_DEEP_FLAG));\n }\n\n /**\n * Creates a function that performs a partial deep comparison between the\n * value at `path` of a given object to `srcValue`, returning `true` if the\n * object value is equivalent, else `false`.\n *\n * **Note:** Partial comparisons will match empty array and empty object\n * `srcValue` values against any array or object value, respectively. See\n * `_.isEqual` for a list of supported value comparisons.\n *\n * @static\n * @memberOf _\n * @since 3.2.0\n * @category Util\n * @param {Array|string} path The path of the property to get.\n * @param {*} srcValue The value to match.\n * @returns {Function} Returns the new spec function.\n * @example\n *\n * var objects = [\n * { 'a': 1, 'b': 2, 'c': 3 },\n * { 'a': 4, 'b': 5, 'c': 6 }\n * ];\n *\n * _.find(objects, _.matchesProperty('a', 4));\n * // => { 'a': 4, 'b': 5, 'c': 6 }\n */\n function matchesProperty(path, srcValue) {\n return baseMatchesProperty(path, baseClone(srcValue, CLONE_DEEP_FLAG));\n }\n\n /**\n * Creates a function that invokes the method at `path` of a given object.\n * Any additional arguments are provided to the invoked method.\n *\n * @static\n * @memberOf _\n * @since 3.7.0\n * @category Util\n * @param {Array|string} path The path of the method to invoke.\n * @param {...*} [args] The arguments to invoke the method with.\n * @returns {Function} Returns the new invoker function.\n * @example\n *\n * var objects = [\n * { 'a': { 'b': _.constant(2) } },\n * { 'a': { 'b': _.constant(1) } }\n * ];\n *\n * _.map(objects, _.method('a.b'));\n * // => [2, 1]\n *\n * _.map(objects, _.method(['a', 'b']));\n * // => [2, 1]\n */\n var method = baseRest(function(path, args) {\n return function(object) {\n return baseInvoke(object, path, args);\n };\n });\n\n /**\n * The opposite of `_.method`; this method creates a function that invokes\n * the method at a given path of `object`. Any additional arguments are\n * provided to the invoked method.\n *\n * @static\n * @memberOf _\n * @since 3.7.0\n * @category Util\n * @param {Object} object The object to query.\n * @param {...*} [args] The arguments to invoke the method with.\n * @returns {Function} Returns the new invoker function.\n * @example\n *\n * var array = _.times(3, _.constant),\n * object = { 'a': array, 'b': array, 'c': array };\n *\n * _.map(['a[2]', 'c[0]'], _.methodOf(object));\n * // => [2, 0]\n *\n * _.map([['a', '2'], ['c', '0']], _.methodOf(object));\n * // => [2, 0]\n */\n var methodOf = baseRest(function(object, args) {\n return function(path) {\n return baseInvoke(object, path, args);\n };\n });\n\n /**\n * Adds all own enumerable string keyed function properties of a source\n * object to the destination object. If `object` is a function, then methods\n * are added to its prototype as well.\n *\n * **Note:** Use `_.runInContext` to create a pristine `lodash` function to\n * avoid conflicts caused by modifying the original.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {Function|Object} [object=lodash] The destination object.\n * @param {Object} source The object of functions to add.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.chain=true] Specify whether mixins are chainable.\n * @returns {Function|Object} Returns `object`.\n * @example\n *\n * function vowels(string) {\n * return _.filter(string, function(v) {\n * return /[aeiou]/i.test(v);\n * });\n * }\n *\n * _.mixin({ 'vowels': vowels });\n * _.vowels('fred');\n * // => ['e']\n *\n * _('fred').vowels().value();\n * // => ['e']\n *\n * _.mixin({ 'vowels': vowels }, { 'chain': false });\n * _('fred').vowels();\n * // => ['e']\n */\n function mixin(object, source, options) {\n var props = keys(source),\n methodNames = baseFunctions(source, props);\n\n if (options == null &&\n !(isObject(source) && (methodNames.length || !props.length))) {\n options = source;\n source = object;\n object = this;\n methodNames = baseFunctions(source, keys(source));\n }\n var chain = !(isObject(options) && 'chain' in options) || !!options.chain,\n isFunc = isFunction(object);\n\n arrayEach(methodNames, function(methodName) {\n var func = source[methodName];\n object[methodName] = func;\n if (isFunc) {\n object.prototype[methodName] = function() {\n var chainAll = this.__chain__;\n if (chain || chainAll) {\n var result = object(this.__wrapped__),\n actions = result.__actions__ = copyArray(this.__actions__);\n\n actions.push({ 'func': func, 'args': arguments, 'thisArg': object });\n result.__chain__ = chainAll;\n return result;\n }\n return func.apply(object, arrayPush([this.value()], arguments));\n };\n }\n });\n\n return object;\n }\n\n /**\n * Reverts the `_` variable to its previous value and returns a reference to\n * the `lodash` function.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @returns {Function} Returns the `lodash` function.\n * @example\n *\n * var lodash = _.noConflict();\n */\n function noConflict() {\n if (root._ === this) {\n root._ = oldDash;\n }\n return this;\n }\n\n /**\n * This method returns `undefined`.\n *\n * @static\n * @memberOf _\n * @since 2.3.0\n * @category Util\n * @example\n *\n * _.times(2, _.noop);\n * // => [undefined, undefined]\n */\n function noop() {\n // No operation performed.\n }\n\n /**\n * Creates a function that gets the argument at index `n`. If `n` is negative,\n * the nth argument from the end is returned.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Util\n * @param {number} [n=0] The index of the argument to return.\n * @returns {Function} Returns the new pass-thru function.\n * @example\n *\n * var func = _.nthArg(1);\n * func('a', 'b', 'c', 'd');\n * // => 'b'\n *\n * var func = _.nthArg(-2);\n * func('a', 'b', 'c', 'd');\n * // => 'c'\n */\n function nthArg(n) {\n n = toInteger(n);\n return baseRest(function(args) {\n return baseNth(args, n);\n });\n }\n\n /**\n * Creates a function that invokes `iteratees` with the arguments it receives\n * and returns their results.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Util\n * @param {...(Function|Function[])} [iteratees=[_.identity]]\n * The iteratees to invoke.\n * @returns {Function} Returns the new function.\n * @example\n *\n * var func = _.over([Math.max, Math.min]);\n *\n * func(1, 2, 3, 4);\n * // => [4, 1]\n */\n var over = createOver(arrayMap);\n\n /**\n * Creates a function that checks if **all** of the `predicates` return\n * truthy when invoked with the arguments it receives.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Util\n * @param {...(Function|Function[])} [predicates=[_.identity]]\n * The predicates to check.\n * @returns {Function} Returns the new function.\n * @example\n *\n * var func = _.overEvery([Boolean, isFinite]);\n *\n * func('1');\n * // => true\n *\n * func(null);\n * // => false\n *\n * func(NaN);\n * // => false\n */\n var overEvery = createOver(arrayEvery);\n\n /**\n * Creates a function that checks if **any** of the `predicates` return\n * truthy when invoked with the arguments it receives.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Util\n * @param {...(Function|Function[])} [predicates=[_.identity]]\n * The predicates to check.\n * @returns {Function} Returns the new function.\n * @example\n *\n * var func = _.overSome([Boolean, isFinite]);\n *\n * func('1');\n * // => true\n *\n * func(null);\n * // => true\n *\n * func(NaN);\n * // => false\n */\n var overSome = createOver(arraySome);\n\n /**\n * Creates a function that returns the value at `path` of a given object.\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Util\n * @param {Array|string} path The path of the property to get.\n * @returns {Function} Returns the new accessor function.\n * @example\n *\n * var objects = [\n * { 'a': { 'b': 2 } },\n * { 'a': { 'b': 1 } }\n * ];\n *\n * _.map(objects, _.property('a.b'));\n * // => [2, 1]\n *\n * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');\n * // => [1, 2]\n */\n function property(path) {\n return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);\n }\n\n /**\n * The opposite of `_.property`; this method creates a function that returns\n * the value at a given path of `object`.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Util\n * @param {Object} object The object to query.\n * @returns {Function} Returns the new accessor function.\n * @example\n *\n * var array = [0, 1, 2],\n * object = { 'a': array, 'b': array, 'c': array };\n *\n * _.map(['a[2]', 'c[0]'], _.propertyOf(object));\n * // => [2, 0]\n *\n * _.map([['a', '2'], ['c', '0']], _.propertyOf(object));\n * // => [2, 0]\n */\n function propertyOf(object) {\n return function(path) {\n return object == null ? undefined : baseGet(object, path);\n };\n }\n\n /**\n * Creates an array of numbers (positive and/or negative) progressing from\n * `start` up to, but not including, `end`. A step of `-1` is used if a negative\n * `start` is specified without an `end` or `step`. If `end` is not specified,\n * it's set to `start` with `start` then set to `0`.\n *\n * **Note:** JavaScript follows the IEEE-754 standard for resolving\n * floating-point values which can produce unexpected results.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {number} [start=0] The start of the range.\n * @param {number} end The end of the range.\n * @param {number} [step=1] The value to increment or decrement by.\n * @returns {Array} Returns the range of numbers.\n * @see _.inRange, _.rangeRight\n * @example\n *\n * _.range(4);\n * // => [0, 1, 2, 3]\n *\n * _.range(-4);\n * // => [0, -1, -2, -3]\n *\n * _.range(1, 5);\n * // => [1, 2, 3, 4]\n *\n * _.range(0, 20, 5);\n * // => [0, 5, 10, 15]\n *\n * _.range(0, -4, -1);\n * // => [0, -1, -2, -3]\n *\n * _.range(1, 4, 0);\n * // => [1, 1, 1]\n *\n * _.range(0);\n * // => []\n */\n var range = createRange();\n\n /**\n * This method is like `_.range` except that it populates values in\n * descending order.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Util\n * @param {number} [start=0] The start of the range.\n * @param {number} end The end of the range.\n * @param {number} [step=1] The value to increment or decrement by.\n * @returns {Array} Returns the range of numbers.\n * @see _.inRange, _.range\n * @example\n *\n * _.rangeRight(4);\n * // => [3, 2, 1, 0]\n *\n * _.rangeRight(-4);\n * // => [-3, -2, -1, 0]\n *\n * _.rangeRight(1, 5);\n * // => [4, 3, 2, 1]\n *\n * _.rangeRight(0, 20, 5);\n * // => [15, 10, 5, 0]\n *\n * _.rangeRight(0, -4, -1);\n * // => [-3, -2, -1, 0]\n *\n * _.rangeRight(1, 4, 0);\n * // => [1, 1, 1]\n *\n * _.rangeRight(0);\n * // => []\n */\n var rangeRight = createRange(true);\n\n /**\n * This method returns a new empty array.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {Array} Returns the new empty array.\n * @example\n *\n * var arrays = _.times(2, _.stubArray);\n *\n * console.log(arrays);\n * // => [[], []]\n *\n * console.log(arrays[0] === arrays[1]);\n * // => false\n */\n function stubArray() {\n return [];\n }\n\n /**\n * This method returns `false`.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {boolean} Returns `false`.\n * @example\n *\n * _.times(2, _.stubFalse);\n * // => [false, false]\n */\n function stubFalse() {\n return false;\n }\n\n /**\n * This method returns a new empty object.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {Object} Returns the new empty object.\n * @example\n *\n * var objects = _.times(2, _.stubObject);\n *\n * console.log(objects);\n * // => [{}, {}]\n *\n * console.log(objects[0] === objects[1]);\n * // => false\n */\n function stubObject() {\n return {};\n }\n\n /**\n * This method returns an empty string.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {string} Returns the empty string.\n * @example\n *\n * _.times(2, _.stubString);\n * // => ['', '']\n */\n function stubString() {\n return '';\n }\n\n /**\n * This method returns `true`.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {boolean} Returns `true`.\n * @example\n *\n * _.times(2, _.stubTrue);\n * // => [true, true]\n */\n function stubTrue() {\n return true;\n }\n\n /**\n * Invokes the iteratee `n` times, returning an array of the results of\n * each invocation. The iteratee is invoked with one argument; (index).\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {number} n The number of times to invoke `iteratee`.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the array of results.\n * @example\n *\n * _.times(3, String);\n * // => ['0', '1', '2']\n *\n * _.times(4, _.constant(0));\n * // => [0, 0, 0, 0]\n */\n function times(n, iteratee) {\n n = toInteger(n);\n if (n < 1 || n > MAX_SAFE_INTEGER) {\n return [];\n }\n var index = MAX_ARRAY_LENGTH,\n length = nativeMin(n, MAX_ARRAY_LENGTH);\n\n iteratee = getIteratee(iteratee);\n n -= MAX_ARRAY_LENGTH;\n\n var result = baseTimes(length, iteratee);\n while (++index < n) {\n iteratee(index);\n }\n return result;\n }\n\n /**\n * Converts `value` to a property path array.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Util\n * @param {*} value The value to convert.\n * @returns {Array} Returns the new property path array.\n * @example\n *\n * _.toPath('a.b.c');\n * // => ['a', 'b', 'c']\n *\n * _.toPath('a[0].b.c');\n * // => ['a', '0', 'b', 'c']\n */\n function toPath(value) {\n if (isArray(value)) {\n return arrayMap(value, toKey);\n }\n return isSymbol(value) ? [value] : copyArray(stringToPath(toString(value)));\n }\n\n /**\n * Generates a unique ID. If `prefix` is given, the ID is appended to it.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {string} [prefix=''] The value to prefix the ID with.\n * @returns {string} Returns the unique ID.\n * @example\n *\n * _.uniqueId('contact_');\n * // => 'contact_104'\n *\n * _.uniqueId();\n * // => '105'\n */\n function uniqueId(prefix) {\n var id = ++idCounter;\n return toString(prefix) + id;\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Adds two numbers.\n *\n * @static\n * @memberOf _\n * @since 3.4.0\n * @category Math\n * @param {number} augend The first number in an addition.\n * @param {number} addend The second number in an addition.\n * @returns {number} Returns the total.\n * @example\n *\n * _.add(6, 4);\n * // => 10\n */\n var add = createMathOperation(function(augend, addend) {\n return augend + addend;\n }, 0);\n\n /**\n * Computes `number` rounded up to `precision`.\n *\n * @static\n * @memberOf _\n * @since 3.10.0\n * @category Math\n * @param {number} number The number to round up.\n * @param {number} [precision=0] The precision to round up to.\n * @returns {number} Returns the rounded up number.\n * @example\n *\n * _.ceil(4.006);\n * // => 5\n *\n * _.ceil(6.004, 2);\n * // => 6.01\n *\n * _.ceil(6040, -2);\n * // => 6100\n */\n var ceil = createRound('ceil');\n\n /**\n * Divide two numbers.\n *\n * @static\n * @memberOf _\n * @since 4.7.0\n * @category Math\n * @param {number} dividend The first number in a division.\n * @param {number} divisor The second number in a division.\n * @returns {number} Returns the quotient.\n * @example\n *\n * _.divide(6, 4);\n * // => 1.5\n */\n var divide = createMathOperation(function(dividend, divisor) {\n return dividend / divisor;\n }, 1);\n\n /**\n * Computes `number` rounded down to `precision`.\n *\n * @static\n * @memberOf _\n * @since 3.10.0\n * @category Math\n * @param {number} number The number to round down.\n * @param {number} [precision=0] The precision to round down to.\n * @returns {number} Returns the rounded down number.\n * @example\n *\n * _.floor(4.006);\n * // => 4\n *\n * _.floor(0.046, 2);\n * // => 0.04\n *\n * _.floor(4060, -2);\n * // => 4000\n */\n var floor = createRound('floor');\n\n /**\n * Computes the maximum value of `array`. If `array` is empty or falsey,\n * `undefined` is returned.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Math\n * @param {Array} array The array to iterate over.\n * @returns {*} Returns the maximum value.\n * @example\n *\n * _.max([4, 2, 8, 6]);\n * // => 8\n *\n * _.max([]);\n * // => undefined\n */\n function max(array) {\n return (array && array.length)\n ? baseExtremum(array, identity, baseGt)\n : undefined;\n }\n\n /**\n * This method is like `_.max` except that it accepts `iteratee` which is\n * invoked for each element in `array` to generate the criterion by which\n * the value is ranked. The iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Math\n * @param {Array} array The array to iterate over.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {*} Returns the maximum value.\n * @example\n *\n * var objects = [{ 'n': 1 }, { 'n': 2 }];\n *\n * _.maxBy(objects, function(o) { return o.n; });\n * // => { 'n': 2 }\n *\n * // The `_.property` iteratee shorthand.\n * _.maxBy(objects, 'n');\n * // => { 'n': 2 }\n */\n function maxBy(array, iteratee) {\n return (array && array.length)\n ? baseExtremum(array, getIteratee(iteratee, 2), baseGt)\n : undefined;\n }\n\n /**\n * Computes the mean of the values in `array`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Math\n * @param {Array} array The array to iterate over.\n * @returns {number} Returns the mean.\n * @example\n *\n * _.mean([4, 2, 8, 6]);\n * // => 5\n */\n function mean(array) {\n return baseMean(array, identity);\n }\n\n /**\n * This method is like `_.mean` except that it accepts `iteratee` which is\n * invoked for each element in `array` to generate the value to be averaged.\n * The iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.7.0\n * @category Math\n * @param {Array} array The array to iterate over.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {number} Returns the mean.\n * @example\n *\n * var objects = [{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }];\n *\n * _.meanBy(objects, function(o) { return o.n; });\n * // => 5\n *\n * // The `_.property` iteratee shorthand.\n * _.meanBy(objects, 'n');\n * // => 5\n */\n function meanBy(array, iteratee) {\n return baseMean(array, getIteratee(iteratee, 2));\n }\n\n /**\n * Computes the minimum value of `array`. If `array` is empty or falsey,\n * `undefined` is returned.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Math\n * @param {Array} array The array to iterate over.\n * @returns {*} Returns the minimum value.\n * @example\n *\n * _.min([4, 2, 8, 6]);\n * // => 2\n *\n * _.min([]);\n * // => undefined\n */\n function min(array) {\n return (array && array.length)\n ? baseExtremum(array, identity, baseLt)\n : undefined;\n }\n\n /**\n * This method is like `_.min` except that it accepts `iteratee` which is\n * invoked for each element in `array` to generate the criterion by which\n * the value is ranked. The iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Math\n * @param {Array} array The array to iterate over.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {*} Returns the minimum value.\n * @example\n *\n * var objects = [{ 'n': 1 }, { 'n': 2 }];\n *\n * _.minBy(objects, function(o) { return o.n; });\n * // => { 'n': 1 }\n *\n * // The `_.property` iteratee shorthand.\n * _.minBy(objects, 'n');\n * // => { 'n': 1 }\n */\n function minBy(array, iteratee) {\n return (array && array.length)\n ? baseExtremum(array, getIteratee(iteratee, 2), baseLt)\n : undefined;\n }\n\n /**\n * Multiply two numbers.\n *\n * @static\n * @memberOf _\n * @since 4.7.0\n * @category Math\n * @param {number} multiplier The first number in a multiplication.\n * @param {number} multiplicand The second number in a multiplication.\n * @returns {number} Returns the product.\n * @example\n *\n * _.multiply(6, 4);\n * // => 24\n */\n var multiply = createMathOperation(function(multiplier, multiplicand) {\n return multiplier * multiplicand;\n }, 1);\n\n /**\n * Computes `number` rounded to `precision`.\n *\n * @static\n * @memberOf _\n * @since 3.10.0\n * @category Math\n * @param {number} number The number to round.\n * @param {number} [precision=0] The precision to round to.\n * @returns {number} Returns the rounded number.\n * @example\n *\n * _.round(4.006);\n * // => 4\n *\n * _.round(4.006, 2);\n * // => 4.01\n *\n * _.round(4060, -2);\n * // => 4100\n */\n var round = createRound('round');\n\n /**\n * Subtract two numbers.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Math\n * @param {number} minuend The first number in a subtraction.\n * @param {number} subtrahend The second number in a subtraction.\n * @returns {number} Returns the difference.\n * @example\n *\n * _.subtract(6, 4);\n * // => 2\n */\n var subtract = createMathOperation(function(minuend, subtrahend) {\n return minuend - subtrahend;\n }, 0);\n\n /**\n * Computes the sum of the values in `array`.\n *\n * @static\n * @memberOf _\n * @since 3.4.0\n * @category Math\n * @param {Array} array The array to iterate over.\n * @returns {number} Returns the sum.\n * @example\n *\n * _.sum([4, 2, 8, 6]);\n * // => 20\n */\n function sum(array) {\n return (array && array.length)\n ? baseSum(array, identity)\n : 0;\n }\n\n /**\n * This method is like `_.sum` except that it accepts `iteratee` which is\n * invoked for each element in `array` to generate the value to be summed.\n * The iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Math\n * @param {Array} array The array to iterate over.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {number} Returns the sum.\n * @example\n *\n * var objects = [{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }];\n *\n * _.sumBy(objects, function(o) { return o.n; });\n * // => 20\n *\n * // The `_.property` iteratee shorthand.\n * _.sumBy(objects, 'n');\n * // => 20\n */\n function sumBy(array, iteratee) {\n return (array && array.length)\n ? baseSum(array, getIteratee(iteratee, 2))\n : 0;\n }\n\n /*------------------------------------------------------------------------*/\n\n // Add methods that return wrapped values in chain sequences.\n lodash.after = after;\n lodash.ary = ary;\n lodash.assign = assign;\n lodash.assignIn = assignIn;\n lodash.assignInWith = assignInWith;\n lodash.assignWith = assignWith;\n lodash.at = at;\n lodash.before = before;\n lodash.bind = bind;\n lodash.bindAll = bindAll;\n lodash.bindKey = bindKey;\n lodash.castArray = castArray;\n lodash.chain = chain;\n lodash.chunk = chunk;\n lodash.compact = compact;\n lodash.concat = concat;\n lodash.cond = cond;\n lodash.conforms = conforms;\n lodash.constant = constant;\n lodash.countBy = countBy;\n lodash.create = create;\n lodash.curry = curry;\n lodash.curryRight = curryRight;\n lodash.debounce = debounce;\n lodash.defaults = defaults;\n lodash.defaultsDeep = defaultsDeep;\n lodash.defer = defer;\n lodash.delay = delay;\n lodash.difference = difference;\n lodash.differenceBy = differenceBy;\n lodash.differenceWith = differenceWith;\n lodash.drop = drop;\n lodash.dropRight = dropRight;\n lodash.dropRightWhile = dropRightWhile;\n lodash.dropWhile = dropWhile;\n lodash.fill = fill;\n lodash.filter = filter;\n lodash.flatMap = flatMap;\n lodash.flatMapDeep = flatMapDeep;\n lodash.flatMapDepth = flatMapDepth;\n lodash.flatten = flatten;\n lodash.flattenDeep = flattenDeep;\n lodash.flattenDepth = flattenDepth;\n lodash.flip = flip;\n lodash.flow = flow;\n lodash.flowRight = flowRight;\n lodash.fromPairs = fromPairs;\n lodash.functions = functions;\n lodash.functionsIn = functionsIn;\n lodash.groupBy = groupBy;\n lodash.initial = initial;\n lodash.intersection = intersection;\n lodash.intersectionBy = intersectionBy;\n lodash.intersectionWith = intersectionWith;\n lodash.invert = invert;\n lodash.invertBy = invertBy;\n lodash.invokeMap = invokeMap;\n lodash.iteratee = iteratee;\n lodash.keyBy = keyBy;\n lodash.keys = keys;\n lodash.keysIn = keysIn;\n lodash.map = map;\n lodash.mapKeys = mapKeys;\n lodash.mapValues = mapValues;\n lodash.matches = matches;\n lodash.matchesProperty = matchesProperty;\n lodash.memoize = memoize;\n lodash.merge = merge;\n lodash.mergeWith = mergeWith;\n lodash.method = method;\n lodash.methodOf = methodOf;\n lodash.mixin = mixin;\n lodash.negate = negate;\n lodash.nthArg = nthArg;\n lodash.omit = omit;\n lodash.omitBy = omitBy;\n lodash.once = once;\n lodash.orderBy = orderBy;\n lodash.over = over;\n lodash.overArgs = overArgs;\n lodash.overEvery = overEvery;\n lodash.overSome = overSome;\n lodash.partial = partial;\n lodash.partialRight = partialRight;\n lodash.partition = partition;\n lodash.pick = pick;\n lodash.pickBy = pickBy;\n lodash.property = property;\n lodash.propertyOf = propertyOf;\n lodash.pull = pull;\n lodash.pullAll = pullAll;\n lodash.pullAllBy = pullAllBy;\n lodash.pullAllWith = pullAllWith;\n lodash.pullAt = pullAt;\n lodash.range = range;\n lodash.rangeRight = rangeRight;\n lodash.rearg = rearg;\n lodash.reject = reject;\n lodash.remove = remove;\n lodash.rest = rest;\n lodash.reverse = reverse;\n lodash.sampleSize = sampleSize;\n lodash.set = set;\n lodash.setWith = setWith;\n lodash.shuffle = shuffle;\n lodash.slice = slice;\n lodash.sortBy = sortBy;\n lodash.sortedUniq = sortedUniq;\n lodash.sortedUniqBy = sortedUniqBy;\n lodash.split = split;\n lodash.spread = spread;\n lodash.tail = tail;\n lodash.take = take;\n lodash.takeRight = takeRight;\n lodash.takeRightWhile = takeRightWhile;\n lodash.takeWhile = takeWhile;\n lodash.tap = tap;\n lodash.throttle = throttle;\n lodash.thru = thru;\n lodash.toArray = toArray;\n lodash.toPairs = toPairs;\n lodash.toPairsIn = toPairsIn;\n lodash.toPath = toPath;\n lodash.toPlainObject = toPlainObject;\n lodash.transform = transform;\n lodash.unary = unary;\n lodash.union = union;\n lodash.unionBy = unionBy;\n lodash.unionWith = unionWith;\n lodash.uniq = uniq;\n lodash.uniqBy = uniqBy;\n lodash.uniqWith = uniqWith;\n lodash.unset = unset;\n lodash.unzip = unzip;\n lodash.unzipWith = unzipWith;\n lodash.update = update;\n lodash.updateWith = updateWith;\n lodash.values = values;\n lodash.valuesIn = valuesIn;\n lodash.without = without;\n lodash.words = words;\n lodash.wrap = wrap;\n lodash.xor = xor;\n lodash.xorBy = xorBy;\n lodash.xorWith = xorWith;\n lodash.zip = zip;\n lodash.zipObject = zipObject;\n lodash.zipObjectDeep = zipObjectDeep;\n lodash.zipWith = zipWith;\n\n // Add aliases.\n lodash.entries = toPairs;\n lodash.entriesIn = toPairsIn;\n lodash.extend = assignIn;\n lodash.extendWith = assignInWith;\n\n // Add methods to `lodash.prototype`.\n mixin(lodash, lodash);\n\n /*------------------------------------------------------------------------*/\n\n // Add methods that return unwrapped values in chain sequences.\n lodash.add = add;\n lodash.attempt = attempt;\n lodash.camelCase = camelCase;\n lodash.capitalize = capitalize;\n lodash.ceil = ceil;\n lodash.clamp = clamp;\n lodash.clone = clone;\n lodash.cloneDeep = cloneDeep;\n lodash.cloneDeepWith = cloneDeepWith;\n lodash.cloneWith = cloneWith;\n lodash.conformsTo = conformsTo;\n lodash.deburr = deburr;\n lodash.defaultTo = defaultTo;\n lodash.divide = divide;\n lodash.endsWith = endsWith;\n lodash.eq = eq;\n lodash.escape = escape;\n lodash.escapeRegExp = escapeRegExp;\n lodash.every = every;\n lodash.find = find;\n lodash.findIndex = findIndex;\n lodash.findKey = findKey;\n lodash.findLast = findLast;\n lodash.findLastIndex = findLastIndex;\n lodash.findLastKey = findLastKey;\n lodash.floor = floor;\n lodash.forEach = forEach;\n lodash.forEachRight = forEachRight;\n lodash.forIn = forIn;\n lodash.forInRight = forInRight;\n lodash.forOwn = forOwn;\n lodash.forOwnRight = forOwnRight;\n lodash.get = get;\n lodash.gt = gt;\n lodash.gte = gte;\n lodash.has = has;\n lodash.hasIn = hasIn;\n lodash.head = head;\n lodash.identity = identity;\n lodash.includes = includes;\n lodash.indexOf = indexOf;\n lodash.inRange = inRange;\n lodash.invoke = invoke;\n lodash.isArguments = isArguments;\n lodash.isArray = isArray;\n lodash.isArrayBuffer = isArrayBuffer;\n lodash.isArrayLike = isArrayLike;\n lodash.isArrayLikeObject = isArrayLikeObject;\n lodash.isBoolean = isBoolean;\n lodash.isBuffer = isBuffer;\n lodash.isDate = isDate;\n lodash.isElement = isElement;\n lodash.isEmpty = isEmpty;\n lodash.isEqual = isEqual;\n lodash.isEqualWith = isEqualWith;\n lodash.isError = isError;\n lodash.isFinite = isFinite;\n lodash.isFunction = isFunction;\n lodash.isInteger = isInteger;\n lodash.isLength = isLength;\n lodash.isMap = isMap;\n lodash.isMatch = isMatch;\n lodash.isMatchWith = isMatchWith;\n lodash.isNaN = isNaN;\n lodash.isNative = isNative;\n lodash.isNil = isNil;\n lodash.isNull = isNull;\n lodash.isNumber = isNumber;\n lodash.isObject = isObject;\n lodash.isObjectLike = isObjectLike;\n lodash.isPlainObject = isPlainObject;\n lodash.isRegExp = isRegExp;\n lodash.isSafeInteger = isSafeInteger;\n lodash.isSet = isSet;\n lodash.isString = isString;\n lodash.isSymbol = isSymbol;\n lodash.isTypedArray = isTypedArray;\n lodash.isUndefined = isUndefined;\n lodash.isWeakMap = isWeakMap;\n lodash.isWeakSet = isWeakSet;\n lodash.join = join;\n lodash.kebabCase = kebabCase;\n lodash.last = last;\n lodash.lastIndexOf = lastIndexOf;\n lodash.lowerCase = lowerCase;\n lodash.lowerFirst = lowerFirst;\n lodash.lt = lt;\n lodash.lte = lte;\n lodash.max = max;\n lodash.maxBy = maxBy;\n lodash.mean = mean;\n lodash.meanBy = meanBy;\n lodash.min = min;\n lodash.minBy = minBy;\n lodash.stubArray = stubArray;\n lodash.stubFalse = stubFalse;\n lodash.stubObject = stubObject;\n lodash.stubString = stubString;\n lodash.stubTrue = stubTrue;\n lodash.multiply = multiply;\n lodash.nth = nth;\n lodash.noConflict = noConflict;\n lodash.noop = noop;\n lodash.now = now;\n lodash.pad = pad;\n lodash.padEnd = padEnd;\n lodash.padStart = padStart;\n lodash.parseInt = parseInt;\n lodash.random = random;\n lodash.reduce = reduce;\n lodash.reduceRight = reduceRight;\n lodash.repeat = repeat;\n lodash.replace = replace;\n lodash.result = result;\n lodash.round = round;\n lodash.runInContext = runInContext;\n lodash.sample = sample;\n lodash.size = size;\n lodash.snakeCase = snakeCase;\n lodash.some = some;\n lodash.sortedIndex = sortedIndex;\n lodash.sortedIndexBy = sortedIndexBy;\n lodash.sortedIndexOf = sortedIndexOf;\n lodash.sortedLastIndex = sortedLastIndex;\n lodash.sortedLastIndexBy = sortedLastIndexBy;\n lodash.sortedLastIndexOf = sortedLastIndexOf;\n lodash.startCase = startCase;\n lodash.startsWith = startsWith;\n lodash.subtract = subtract;\n lodash.sum = sum;\n lodash.sumBy = sumBy;\n lodash.template = template;\n lodash.times = times;\n lodash.toFinite = toFinite;\n lodash.toInteger = toInteger;\n lodash.toLength = toLength;\n lodash.toLower = toLower;\n lodash.toNumber = toNumber;\n lodash.toSafeInteger = toSafeInteger;\n lodash.toString = toString;\n lodash.toUpper = toUpper;\n lodash.trim = trim;\n lodash.trimEnd = trimEnd;\n lodash.trimStart = trimStart;\n lodash.truncate = truncate;\n lodash.unescape = unescape;\n lodash.uniqueId = uniqueId;\n lodash.upperCase = upperCase;\n lodash.upperFirst = upperFirst;\n\n // Add aliases.\n lodash.each = forEach;\n lodash.eachRight = forEachRight;\n lodash.first = head;\n\n mixin(lodash, (function() {\n var source = {};\n baseForOwn(lodash, function(func, methodName) {\n if (!hasOwnProperty.call(lodash.prototype, methodName)) {\n source[methodName] = func;\n }\n });\n return source;\n }()), { 'chain': false });\n\n /*------------------------------------------------------------------------*/\n\n /**\n * The semantic version number.\n *\n * @static\n * @memberOf _\n * @type {string}\n */\n lodash.VERSION = VERSION;\n\n // Assign default placeholders.\n arrayEach(['bind', 'bindKey', 'curry', 'curryRight', 'partial', 'partialRight'], function(methodName) {\n lodash[methodName].placeholder = lodash;\n });\n\n // Add `LazyWrapper` methods for `_.drop` and `_.take` variants.\n arrayEach(['drop', 'take'], function(methodName, index) {\n LazyWrapper.prototype[methodName] = function(n) {\n n = n === undefined ? 1 : nativeMax(toInteger(n), 0);\n\n var result = (this.__filtered__ && !index)\n ? new LazyWrapper(this)\n : this.clone();\n\n if (result.__filtered__) {\n result.__takeCount__ = nativeMin(n, result.__takeCount__);\n } else {\n result.__views__.push({\n 'size': nativeMin(n, MAX_ARRAY_LENGTH),\n 'type': methodName + (result.__dir__ < 0 ? 'Right' : '')\n });\n }\n return result;\n };\n\n LazyWrapper.prototype[methodName + 'Right'] = function(n) {\n return this.reverse()[methodName](n).reverse();\n };\n });\n\n // Add `LazyWrapper` methods that accept an `iteratee` value.\n arrayEach(['filter', 'map', 'takeWhile'], function(methodName, index) {\n var type = index + 1,\n isFilter = type == LAZY_FILTER_FLAG || type == LAZY_WHILE_FLAG;\n\n LazyWrapper.prototype[methodName] = function(iteratee) {\n var result = this.clone();\n result.__iteratees__.push({\n 'iteratee': getIteratee(iteratee, 3),\n 'type': type\n });\n result.__filtered__ = result.__filtered__ || isFilter;\n return result;\n };\n });\n\n // Add `LazyWrapper` methods for `_.head` and `_.last`.\n arrayEach(['head', 'last'], function(methodName, index) {\n var takeName = 'take' + (index ? 'Right' : '');\n\n LazyWrapper.prototype[methodName] = function() {\n return this[takeName](1).value()[0];\n };\n });\n\n // Add `LazyWrapper` methods for `_.initial` and `_.tail`.\n arrayEach(['initial', 'tail'], function(methodName, index) {\n var dropName = 'drop' + (index ? '' : 'Right');\n\n LazyWrapper.prototype[methodName] = function() {\n return this.__filtered__ ? new LazyWrapper(this) : this[dropName](1);\n };\n });\n\n LazyWrapper.prototype.compact = function() {\n return this.filter(identity);\n };\n\n LazyWrapper.prototype.find = function(predicate) {\n return this.filter(predicate).head();\n };\n\n LazyWrapper.prototype.findLast = function(predicate) {\n return this.reverse().find(predicate);\n };\n\n LazyWrapper.prototype.invokeMap = baseRest(function(path, args) {\n if (typeof path == 'function') {\n return new LazyWrapper(this);\n }\n return this.map(function(value) {\n return baseInvoke(value, path, args);\n });\n });\n\n LazyWrapper.prototype.reject = function(predicate) {\n return this.filter(negate(getIteratee(predicate)));\n };\n\n LazyWrapper.prototype.slice = function(start, end) {\n start = toInteger(start);\n\n var result = this;\n if (result.__filtered__ && (start > 0 || end < 0)) {\n return new LazyWrapper(result);\n }\n if (start < 0) {\n result = result.takeRight(-start);\n } else if (start) {\n result = result.drop(start);\n }\n if (end !== undefined) {\n end = toInteger(end);\n result = end < 0 ? result.dropRight(-end) : result.take(end - start);\n }\n return result;\n };\n\n LazyWrapper.prototype.takeRightWhile = function(predicate) {\n return this.reverse().takeWhile(predicate).reverse();\n };\n\n LazyWrapper.prototype.toArray = function() {\n return this.take(MAX_ARRAY_LENGTH);\n };\n\n // Add `LazyWrapper` methods to `lodash.prototype`.\n baseForOwn(LazyWrapper.prototype, function(func, methodName) {\n var checkIteratee = /^(?:filter|find|map|reject)|While$/.test(methodName),\n isTaker = /^(?:head|last)$/.test(methodName),\n lodashFunc = lodash[isTaker ? ('take' + (methodName == 'last' ? 'Right' : '')) : methodName],\n retUnwrapped = isTaker || /^find/.test(methodName);\n\n if (!lodashFunc) {\n return;\n }\n lodash.prototype[methodName] = function() {\n var value = this.__wrapped__,\n args = isTaker ? [1] : arguments,\n isLazy = value instanceof LazyWrapper,\n iteratee = args[0],\n useLazy = isLazy || isArray(value);\n\n var interceptor = function(value) {\n var result = lodashFunc.apply(lodash, arrayPush([value], args));\n return (isTaker && chainAll) ? result[0] : result;\n };\n\n if (useLazy && checkIteratee && typeof iteratee == 'function' && iteratee.length != 1) {\n // Avoid lazy use if the iteratee has a \"length\" value other than `1`.\n isLazy = useLazy = false;\n }\n var chainAll = this.__chain__,\n isHybrid = !!this.__actions__.length,\n isUnwrapped = retUnwrapped && !chainAll,\n onlyLazy = isLazy && !isHybrid;\n\n if (!retUnwrapped && useLazy) {\n value = onlyLazy ? value : new LazyWrapper(this);\n var result = func.apply(value, args);\n result.__actions__.push({ 'func': thru, 'args': [interceptor], 'thisArg': undefined });\n return new LodashWrapper(result, chainAll);\n }\n if (isUnwrapped && onlyLazy) {\n return func.apply(this, args);\n }\n result = this.thru(interceptor);\n return isUnwrapped ? (isTaker ? result.value()[0] : result.value()) : result;\n };\n });\n\n // Add `Array` methods to `lodash.prototype`.\n arrayEach(['pop', 'push', 'shift', 'sort', 'splice', 'unshift'], function(methodName) {\n var func = arrayProto[methodName],\n chainName = /^(?:push|sort|unshift)$/.test(methodName) ? 'tap' : 'thru',\n retUnwrapped = /^(?:pop|shift)$/.test(methodName);\n\n lodash.prototype[methodName] = function() {\n var args = arguments;\n if (retUnwrapped && !this.__chain__) {\n var value = this.value();\n return func.apply(isArray(value) ? value : [], args);\n }\n return this[chainName](function(value) {\n return func.apply(isArray(value) ? value : [], args);\n });\n };\n });\n\n // Map minified method names to their real names.\n baseForOwn(LazyWrapper.prototype, function(func, methodName) {\n var lodashFunc = lodash[methodName];\n if (lodashFunc) {\n var key = (lodashFunc.name + ''),\n names = realNames[key] || (realNames[key] = []);\n\n names.push({ 'name': methodName, 'func': lodashFunc });\n }\n });\n\n realNames[createHybrid(undefined, WRAP_BIND_KEY_FLAG).name] = [{\n 'name': 'wrapper',\n 'func': undefined\n }];\n\n // Add methods to `LazyWrapper`.\n LazyWrapper.prototype.clone = lazyClone;\n LazyWrapper.prototype.reverse = lazyReverse;\n LazyWrapper.prototype.value = lazyValue;\n\n // Add chain sequence methods to the `lodash` wrapper.\n lodash.prototype.at = wrapperAt;\n lodash.prototype.chain = wrapperChain;\n lodash.prototype.commit = wrapperCommit;\n lodash.prototype.next = wrapperNext;\n lodash.prototype.plant = wrapperPlant;\n lodash.prototype.reverse = wrapperReverse;\n lodash.prototype.toJSON = lodash.prototype.valueOf = lodash.prototype.value = wrapperValue;\n\n // Add lazy aliases.\n lodash.prototype.first = lodash.prototype.head;\n\n if (symIterator) {\n lodash.prototype[symIterator] = wrapperToIterator;\n }\n return lodash;\n });\n\n /*--------------------------------------------------------------------------*/\n\n // Export lodash.\n var _ = runInContext();\n\n // Some AMD build optimizers, like r.js, check for condition patterns like:\n if (typeof define == 'function' && typeof define.amd == 'object' && define.amd) {\n // Expose Lodash on the global object to prevent errors when Lodash is\n // loaded by a script tag in the presence of an AMD loader.\n // See http://requirejs.org/docs/errors.html#mismatch for more details.\n // Use `_.noConflict` to remove Lodash from the global object.\n root._ = _;\n\n // Define as an anonymous module so, through path mapping, it can be\n // referenced as the \"underscore\" module.\n define(function() {\n return _;\n });\n }\n // Check for `exports` after `define` in case a build optimizer adds it.\n else if (freeModule) {\n // Export for Node.js.\n (freeModule.exports = _)._ = _;\n // Export for CommonJS support.\n freeExports._ = _;\n }\n else {\n // Export to the global object.\n root._ = _;\n }\n}.call(this));\n"
},
{
"id": 2,
"identifier": "/Users/user/Projects/orchid/node_modules/webpack/buildin/global.js",
"name": "(webpack)/buildin/global.js",
"index": 2,
"index2": 0,
"size": 489,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/lodash/lodash.js",
"issuerId": 1,
"issuerName": "./node_modules/lodash/lodash.js",
"issuerPath": [
{
"id": 0,
"identifier": "/Users/user/Projects/orchid/node_modules/html-webpack-plugin/lib/loader.js!/Users/user/Projects/orchid/src/index.html",
"name": "./node_modules/html-webpack-plugin/lib/loader.js!./src/index.html"
},
{
"id": 1,
"identifier": "/Users/user/Projects/orchid/node_modules/lodash/lodash.js",
"name": "./node_modules/lodash/lodash.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 1,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/lodash/lodash.js",
"module": "./node_modules/lodash/lodash.js",
"moduleName": "./node_modules/lodash/lodash.js",
"type": "cjs require",
"userRequest": "global",
"loc": "1:0-41"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 2,
"source": "var g;\n\n// This works in non-strict mode\ng = (function() {\n\treturn this;\n})();\n\ntry {\n\t// This works if eval is allowed (see CSP)\n\tg = g || Function(\"return this\")() || (1, eval)(\"this\");\n} catch (e) {\n\t// This works if the window reference is available\n\tif (typeof window === \"object\") g = window;\n}\n\n// g can still be undefined, but nothing to do about it...\n// We return undefined, instead of nothing here, so it's\n// easier to handle this case. if(!global) { ...}\n\nmodule.exports = g;\n"
},
{
"id": 3,
"identifier": "/Users/user/Projects/orchid/node_modules/webpack/buildin/module.js",
"name": "(webpack)/buildin/module.js",
"index": 3,
"index2": 1,
"size": 497,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"issuer": "/Users/user/Projects/orchid/node_modules/lodash/lodash.js",
"issuerId": 1,
"issuerName": "./node_modules/lodash/lodash.js",
"issuerPath": [
{
"id": 0,
"identifier": "/Users/user/Projects/orchid/node_modules/html-webpack-plugin/lib/loader.js!/Users/user/Projects/orchid/src/index.html",
"name": "./node_modules/html-webpack-plugin/lib/loader.js!./src/index.html"
},
{
"id": 1,
"identifier": "/Users/user/Projects/orchid/node_modules/lodash/lodash.js",
"name": "./node_modules/lodash/lodash.js"
}
],
"failed": false,
"errors": 0,
"warnings": 0,
"assets": [],
"reasons": [
{
"moduleId": 1,
"moduleIdentifier": "/Users/user/Projects/orchid/node_modules/lodash/lodash.js",
"module": "./node_modules/lodash/lodash.js",
"moduleName": "./node_modules/lodash/lodash.js",
"type": "cjs require",
"userRequest": "module",
"loc": "1:0-41"
}
],
"usedExports": true,
"providedExports": null,
"optimizationBailout": [
"ModuleConcatenation bailout: Module is not an ECMAScript module",
"ModuleConcatenation bailout: Module is not an ECMAScript module"
],
"depth": 2,
"source": "module.exports = function(module) {\n\tif (!module.webpackPolyfill) {\n\t\tmodule.deprecate = function() {};\n\t\tmodule.paths = [];\n\t\t// module.parent = undefined by default\n\t\tif (!module.children) module.children = [];\n\t\tObject.defineProperty(module, \"loaded\", {\n\t\t\tenumerable: true,\n\t\t\tget: function() {\n\t\t\t\treturn module.l;\n\t\t\t}\n\t\t});\n\t\tObject.defineProperty(module, \"id\", {\n\t\t\tenumerable: true,\n\t\t\tget: function() {\n\t\t\t\treturn module.i;\n\t\t\t}\n\t\t});\n\t\tmodule.webpackPolyfill = 1;\n\t}\n\treturn module;\n};\n"
}
],
"filteredModules": 0,
"children": [],
"name": "html-webpack-plugin for \"index.html\""
}
]
}