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+X,K,8CCxtB5Bhc,EAAOC,QAAU,CACfuc,SAAU,SAASld,GACjB,MAAuB,iBAAV,GAEfke,SAAU,SAASle,GACjB,MAAuB,iBAAV,GAA8B,OAARA,GAErCihB,OAAQ,SAASjhB,GACf,OAAe,OAARA,GAET+gB,kBAAmB,SAAS/gB,GAC1B,OAAc,MAAPA","sources":["webpack://elc-service-stores/./node_modules/@estee/elc-formatters/src/business-unit-id-parser/BusinessUnitIdParser.ts","webpack://elc-service-stores/./node_modules/@estee/elc-formatters/src/number-formatter/NumberFormatter.tsx","webpack://elc-service-stores/./node_modules/@estee/elc-formatters/src/price-formatter/PriceFormatter.ts","webpack://elc-service-stores/./node_modules/@estee/elc-formatters/src/url-formatter/UrlFormatter.ts","webpack://elc-service-stores/./node_modules/@estee/elc-service/src/ViewController.ts","webpack://elc-service-stores/./node_modules/@estee/elc-service/src/decorators/Decorators.ts","webpack://elc-service-stores/./node_modules/@estee/elc-static-maps/src/utils/stylesToString.ts","webpack://elc-service-stores/./node_modules/@estee/elc-static-maps/src/views/StaticMap.tsx","webpack://elc-service-stores/./node_modules/classnames/index.js","webpack://elc-service-stores/./node_modules/graphql.js/graphql.js","webpack://elc-service-stores/./node_modules/prop-types/factoryWithThrowingShims.js","webpack://elc-service-stores/./node_modules/prop-types/index.js","webpack://elc-service-stores/./node_modules/prop-types/lib/ReactPropTypesSecret.js","webpack://elc-service-stores/./node_modules/react-static-google-map/dist/react-static-google-map.umd.js","webpack://elc-service-stores/./node_modules/url/node_modules/punycode/punycode.js","webpack://elc-service-stores/./node_modules/url/node_modules/querystring/decode.js","webpack://elc-service-stores/./node_modules/url/node_modules/querystring/encode.js","webpack://elc-service-stores/./node_modules/url/node_modules/querystring/index.js","webpack://elc-service-stores/./node_modules/url/url.js","webpack://elc-service-stores/./node_modules/url/util.js"],"sourcesContent":["const BUSINESS_UNIT_ID_REG = /([1-9])(-)([a-z]{1,3})(-)([a-z]{1,3})(-)([a-z]{1,3})\\w+/;\nconst WRONG_BUSINESS_UNIT_ID = 'Please provide a valid business unit id like 1-xx-xx-xx';\n\nexport class BusinessUnitIdParser {\n public brand: string = '';\n public region: string = 'us';\n public language: string = 'en';\n\n constructor(businessUnitId: string) {\n const separator = '-';\n if (!BUSINESS_UNIT_ID_REG.test(businessUnitId)) {\n throw new Error(WRONG_BUSINESS_UNIT_ID);\n }\n\n const [brand, region, language] = businessUnitId.split(separator).slice(-4);\n this.brand = brand;\n this.region = region;\n this.language = language;\n }\n\n public get locale() {\n return `${this.language}-${this.region.toLocaleUpperCase()}`;\n }\n}\n","export interface INumberFormatter {\n locale: string;\n}\n\nexport interface INumberOptions {\n decimals?: number;\n}\n\nexport class NumberFormatter {\n private locale: string;\n\n constructor(config: INumberFormatter) {\n this.locale = config.locale;\n }\n\n public formatNumber = (amount: number, options: INumberOptions) => {\n const { decimals, ...rest } = options;\n\n return new Intl.NumberFormat(this.locale, {\n ...rest,\n maximumFractionDigits: decimals\n }).format(amount);\n };\n}\n","export interface IPriceFormatter {\n currency: string;\n locale: string;\n}\n\nexport class PriceFormatter {\n private currency: string;\n private locale: string;\n constructor(config: IPriceFormatter) {\n this.currency = config.currency;\n this.locale = config.locale;\n }\n\n public formatPriceWithCurrency = (price: number) => {\n return Intl.NumberFormat(this.locale, {\n style: 'currency',\n currency: this.currency\n }).format(price);\n };\n}\n","export interface IUrlFormatter {\n langPrefix: string;\n}\n\nexport class UrlFormatter {\n private langPrefix: string;\n\n constructor(config: IUrlFormatter) {\n this.langPrefix = this.prefixHandler(config.langPrefix);\n }\n\n private prefixHandler = (prefix: string | null | undefined) => {\n return prefix !== null && prefix !== undefined ? prefix.replace(/^\\/+|\\/+$/g, '') : '';\n };\n\n public langPrefixUrl = (url: string = '') => {\n return this.langPrefix !== '' ? `/${this.langPrefix}${url}` : url;\n };\n}\n","import { observable } from 'mobx';\nimport {\n IComponentViewController,\n IViewControllerData,\n ViewControllerLoadedMethod\n} from '@estee/elc-universal-utils';\n\nexport class ViewController implements IComponentViewController {\n public id?: string;\n public dataState?: IViewControllerData;\n public loaded?: ViewControllerLoadedMethod;\n public configMergeStrategy?: Function;\n @observable public isLoading: boolean = true;\n\n public setSSRState = (data?: IViewControllerData) => {\n this.dataState = data;\n };\n\n public setId = (id?: string) => {\n this.id = id && btoa(unescape(encodeURIComponent(id)));\n };\n\n public get data(): IViewControllerData {\n return {};\n }\n}\n","import { Container } from 'hypo-container';\nexport const getDecorators = (container: Container) => ({\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n lazyInject: (name?: string) => (\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n target: any,\n key: string,\n descriptor?: PropertyDescriptor\n ) => {\n const resourceName = name || key;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const sbGetter = function (this: any) {\n const resource = container.get(resourceName);\n if (!resource) {\n throw new Error(`The requested ${resourceName} does not exists`);\n }\n\n return resource;\n };\n let propertyDescriptor = descriptor || {};\n if (!descriptor) {\n propertyDescriptor = {\n get: sbGetter\n };\n Object.defineProperty(target, key, propertyDescriptor);\n } else {\n propertyDescriptor.get = sbGetter;\n }\n }\n});\n","import MapTypeStyle = google.maps.MapTypeStyle;\nimport MapTypeStyler = google.maps.MapTypeStyler;\n\nconst stylersToString = (stylers: MapTypeStyler) =>\n Object.entries(stylers)\n .map(([key, value]) => `${key}:${value.replace('#', '0x')}`)\n .join('|');\n\nconst styleToString = ({ elementType, featureType, stylers }: MapTypeStyle, isFirst: boolean) => {\n const stylesString = !isFirst ? 'style=' : '';\n const featureString = featureType ? `feature:${featureType}|` : '';\n const elementString = elementType ? `element:${elementType}|` : '';\n const stylersString = stylers ? stylersToString(stylers[0]) : '';\n\n return encodeURI(`${stylesString}${featureString}${elementString}${stylersString}`);\n};\n\nexport const stylesToString = (styles: MapTypeStyle[]) =>\n styles.map((style, index) => styleToString(style, index === 0)).join('&');\n\n/*\n note: This currently only supports 1 styler object per style. It should cover most of the use cases.\n result format: style=feature:myFeatureArgument|element:myElementArgument|myRule1:myRule1Argument|myRule2:myRule2Argument&style2=...\n The first 'style=' is added by the package\n*/\n","import * as classnames from 'classnames';\nimport * as React from 'react';\nimport styled from 'styled-components';\nimport { StaticGoogleMap, Marker } from 'react-static-google-map';\nimport { stylesToString } from '../utils/stylesToString';\nimport MapTypeStyle = google.maps.MapTypeStyle;\n\nexport enum MarkerColors {\n BLACK = 'black',\n BROWN = 'brown',\n GREEN = 'green',\n PURPLE = 'purple',\n YELLOW = 'yellow',\n BLUE = 'blue',\n GRAY = 'gray',\n ORANGE = 'orange',\n RED = 'red',\n WHITE = 'white'\n}\n\nexport interface IMarkers {\n latitude: number;\n longitude: number;\n icon?: string;\n color?: MarkerColors | number;\n label?: string;\n}\n\nexport interface IStaticMap {\n className?: string;\n apiKey: string;\n size: string;\n markers: IMarkers[];\n zoom?: number;\n styles?: MapTypeStyle[];\n WrapperElement?: React.ElementType;\n alt?: string;\n scale?: '1' | '2' | '4' | 1 | 2 | 4;\n}\n\nconst StaticMapWrapper = styled.div`\n margin: auto;\n padding: 20px;\n`;\n\nexport const StaticMap = (props: IStaticMap) => {\n const classNames = classnames('elc-static-maps', 'js-static-maps', props.className);\n const WrapperElement = props.WrapperElement || StaticMapWrapper;\n\n const { apiKey, size, markers, zoom, styles, alt, scale } = props;\n\n return (\n \n \n {markers.map(marker => (\n \n ))}\n \n \n );\n};\n","/*!\n Copyright (c) 2018 Jed Watson.\n Licensed under the MIT License (MIT), see\n http://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames() {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg)) {\n\t\t\t\tif (arg.length) {\n\t\t\t\t\tvar inner = classNames.apply(null, arg);\n\t\t\t\t\tif (inner) {\n\t\t\t\t\t\tclasses.push(inner);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tif (arg.toString === Object.prototype.toString) {\n\t\t\t\t\tfor (var key in arg) {\n\t\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tclasses.push(arg.toString());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","(function () {\n function __extend() {\n var extended = {}, deep = false, i = 0, length = arguments.length\n if (Object.prototype.toString.call( arguments[0] ) == '[object Boolean]') {\n deep = arguments[0]\n i++\n }\n var merge = function (obj) {\n for (var prop in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, prop)) {\n if (deep && Object.prototype.toString.call(obj[prop]) == '[object Object]') {\n extended[prop] = __extend(true, extended[prop], obj[prop])\n } else {\n extended[prop] = obj[prop]\n }\n }\n }\n }\n\n for (; i < length; i++) {\n var obj = arguments[i]\n merge(obj)\n }\n\n return extended\n }\n\n function __unique(array) {\n return array.filter( function onlyUnique(value, index, self) {\n return self.indexOf(value) === index;\n })\n }\n\n var __doRequest\n\n if (typeof XMLHttpRequest !== 'undefined') {\n __doRequest = function (\n method, url, contentType, accept, headers, body, _onRequestError, callback\n ) {\n var xhr = new XMLHttpRequest\n xhr.open(method, url, true)\n xhr.setRequestHeader('Content-Type', contentType)\n xhr.setRequestHeader('Accept', accept)\n for (var key in headers) { xhr.setRequestHeader(key, headers[key]) }\n xhr.onerror = function () { callback(xhr, xhr.status) }\n xhr.onload = function () {\n try {\n callback(JSON.parse(xhr.responseText), xhr.status)\n }\n catch (e) {\n callback(xhr, xhr.status)\n }\n }\n xhr.send(body)\n }\n } else if (typeof require === 'function') {\n __doRequest = function (\n method, url, contentType, accept, headers, body, onRequestError, callback\n ) {\n var http = require('http'), https = require('https'), URL = require('url'), uri = URL.parse(url)\n var req = (uri.protocol === 'https:' ? https : http).request({\n protocol: uri.protocol,\n hostname: uri.hostname,\n port: uri.port,\n path: uri.path,\n method: method.toUpperCase(),\n headers: __extend({ 'Content-type': contentType, 'Accept': accept }, headers)\n }, function (response) {\n var str = ''\n response.setEncoding('utf8')\n response.on('data', function (chunk) { str += chunk })\n response.on('end', function () {\n callback(JSON.parse(str), response.statusCode)\n })\n })\n if (typeof onRequestError === 'function') {\n req.on('error', function (err) {\n onRequestError(err);\n });\n }\n req.write(body)\n req.end()\n }\n }\n\n function __request(debug, method, url, headers, data, asJson, onRequestError, callback) {\n if (!url) {\n return;\n }\n if (asJson) {\n var body = JSON.stringify({query: data.query, variables: data.variables});\n } else {\n var body = \"query=\" + encodeURIComponent(data.query) + \"&variables=\" + encodeURIComponent(JSON.stringify(data.variables))\n }\n if (debug) {\n console.groupCollapsed('[graphql]: '\n + method.toUpperCase() + ' ' + url + ': '\n + data.query.split(/\\n/)[0].substr(0, 50) + '... with '\n + JSON.stringify(data.variables).substr(0, 50) + '...')\n console.log('QUERY: %c%s', 'font-weight: bold', data.query)\n console.log('VARIABLES: %c%s\\n\\nsending as ' + (asJson ? 'json' : 'form url-data'), 'font-weight: bold', JSON.stringify(data.variables, null, 2), data.variables)\n console.groupEnd()\n }\n\n for (var key in headers) {\n if (typeof headers[key] === 'function') {\n headers[key] = headers[key]()\n }\n }\n\n __doRequest(\n method,\n url,\n asJson ? 'application/json' : 'application/x-www-form-urlencoded',\n 'application/json',\n headers,\n body,\n onRequestError,\n callback\n )\n }\n\n function __isTagCall(strings) {\n return Object.prototype.toString.call(strings) == '[object Array]' && strings.raw\n }\n\n function GraphQLClient(url, options) {\n if (!(this instanceof GraphQLClient)) {\n var client = new GraphQLClient(url, options, true)\n var _lazy = client._sender\n for (var m in client) {\n if (typeof client[m] == 'function') {\n _lazy[m] = client[m].bind(client)\n if (client[m].declare) _lazy[m].declare = client[m].declare.bind(client)\n if (client[m].run) _lazy[m].run = client[m].run.bind(client)\n }\n }\n return _lazy\n } else if (arguments[2] !== true) {\n throw new Error(\"You cannot create GraphQLClient instance. Please call GraphQLClient as function.\")\n }\n if (!options)\n options = {}\n\n if (!options.fragments)\n options.fragments = {}\n\n this.url = url\n this.options = options || {}\n this._fragments = this.buildFragments(options.fragments)\n this._sender = this.createSenderFunction(options.debug)\n this.createHelpers(this._sender)\n this._transaction = {}\n }\n\n // \"fragment auth.login\" will be \"fragment auth_login\"\n var FRAGMENT_SEPERATOR = \"_\"\n\n // The autodeclare keyword.\n GraphQLClient.AUTODECLARE_PATTERN = /\\(@autodeclare\\)|\\(@autotype\\)/g\n\n GraphQLClient.FRAGMENT_PATTERN = /\\.\\.\\.\\s*([A-Za-z0-9\\.\\_]+)/g\n\n // Flattens nested object\n /*\n * {a: {b: {c: 1, d: 2}}} => {\"a.b.c\": 1, \"a.b.d\": 2}\n */\n GraphQLClient.prototype.flatten = function (object) {\n var prefix = arguments[1] || \"\", out = arguments[2] || {}, name\n for (name in object) {\n if (object.hasOwnProperty(name)) {\n typeof object[name] == \"object\"\n ? this.flatten(object[name], prefix + name + FRAGMENT_SEPERATOR, out)\n : out[prefix + name] = object[name]\n }\n }\n return out\n }\n\n GraphQLClient.prototype.setUrl = function (url) {\n this.url = url\n return this.url\n }\n\n GraphQLClient.prototype.getUrl = function () {\n return this.url\n }\n\n // Gets path from object\n /*\n * {a: {b: {c: 1, d: 2}}}, \"a.b.c\" => 1\n */\n GraphQLClient.prototype.fragmentPath = function (fragments, path) {\n var getter = new Function(\"fragments\", \"return fragments.\" + path.replace(/\\./g, FRAGMENT_SEPERATOR))\n var obj = getter(fragments)\n if (path != \"on\" && (!obj || typeof obj != \"string\")) {\n throw new Error(\"Fragment \" + path + \" not found\")\n }\n return obj\n }\n\n GraphQLClient.prototype.collectFragments = function (query, fragments) {\n var that = this\n var fragmentRegexp = GraphQLClient.FRAGMENT_PATTERN\n var collectedFragments = []\n ;(query.match(fragmentRegexp)||[]).forEach(function (fragment) {\n var path = fragment.replace(fragmentRegexp, function (_, $m) {return $m})\n var fragment = that.fragmentPath(fragments, path)\n if (fragment) {\n var pathRegexp = new RegExp(fragmentRegexp.source.replace(/\\((.*)\\)/, path) + '$')\n if (fragment.match(pathRegexp)) {\n throw new Error(\"Recursive fragment usage detected on \" + path + \".\")\n }\n collectedFragments.push(fragment)\n // Collect sub fragments\n var alreadyCollectedFragments = collectedFragments.filter(function (alreadyCollected) {\n return alreadyCollected.match(new RegExp(\"fragment \" + path))\n })\n if (alreadyCollectedFragments.length > 0 && fragmentRegexp.test(fragment)) {\n that.collectFragments(fragment, fragments).forEach(function (fragment) {\n collectedFragments.unshift(fragment)\n })\n }\n }\n })\n return __unique(collectedFragments)\n }\n\n GraphQLClient.prototype.processQuery = function (query, fragments) {\n if (typeof query == 'object' && query.hasOwnProperty('kind') && query.hasOwnProperty('definitions')) {\n throw new Error(\"Do not use graphql AST to send requests. Please generate query as string first using `graphql.print(query)`\")\n }\n var fragmentRegexp = GraphQLClient.FRAGMENT_PATTERN\n var collectedFragments = this.collectFragments(query, fragments)\n query = query.replace(fragmentRegexp, function (_, $m) {\n return \"... \" + $m.split(\".\").join(FRAGMENT_SEPERATOR)\n })\n return [query].concat(collectedFragments.filter(function (fragment) {\n // Remove already used fragments\n return !query.match(fragment)\n })).join(\"\\n\")\n }\n\n GraphQLClient.prototype.autoDeclare = function (query, variables) {\n var that = this\n var typeMap = {\n string: \"String\",\n number: function (value) {\n return value % 1 === 0 ? \"Int\" : \"Float\";\n },\n boolean: \"Boolean\"\n }\n return query.replace(GraphQLClient.AUTODECLARE_PATTERN, function () {\n var types = []\n for (var key in variables) {\n var value = variables[key]\n var keyAndType = key.split(/^(.*?)\\!/)\n if (keyAndType.length > 1) {\n keyAndType = keyAndType.slice(1)\n keyAndType[1] = keyAndType[1].replace(/(.*?)\\!$/, \"$1\")\n }\n var mapping = typeMap[typeof(value)]\n var mappedType = typeof(mapping) === \"function\" ? mapping(value) : mapping\n if (!key.match(\"!\") && keyAndType[0].match(/_?id/i)) {\n mappedType = \"ID\"\n }\n var type = (keyAndType[1] || mappedType)\n if (type) {\n types.push(\"$\" + keyAndType[0] + \": \" + type + \"!\")\n }\n }\n types = types.join(\", \")\n return types ? \"(\"+ types +\")\" : \"\"\n })\n }\n\n GraphQLClient.prototype.cleanAutoDeclareAnnotations = function (variables) {\n if (!variables) variables = {}\n var newVariables = {}\n for (var key in variables) {\n var value = variables[key]\n var keyAndType = key.split(\"!\")\n newVariables[keyAndType[0]] = value\n }\n return newVariables\n }\n\n GraphQLClient.prototype.buildFragments = function (fragments) {\n var that = this\n fragments = this.flatten(fragments || {})\n var fragmentObject = {}\n for (var name in fragments) {\n var fragment = fragments[name]\n if (typeof fragment == \"object\") {\n fragmentObject[name] = that.buildFragments(fragment)\n } else {\n fragmentObject[name] = \"\\nfragment \" + name + \" \" + fragment\n }\n }\n return fragmentObject\n }\n\n GraphQLClient.prototype.buildQuery = function (query, variables) {\n return this.autoDeclare(this.processQuery(query, this._fragments), variables)\n }\n\n GraphQLClient.prototype.parseType = function (query) {\n var match = query.trim().match(/^(query|mutation|subscription)/)\n if (!match) return 'query'\n return match[1]\n }\n\n GraphQLClient.prototype.createSenderFunction = function (debug) {\n var that = this\n return function (query, originalQuery, type) {\n if (__isTagCall(query)) {\n return that.run(that.ql.apply(that, arguments))\n }\n var caller = function (variables, requestOptions) {\n if (!requestOptions) requestOptions = {}\n if (!variables) variables = {}\n var fragmentedQuery = that.buildQuery(query, variables)\n var headers = __extend((that.options.headers||{}), (requestOptions.headers||{}))\n\n return new Promise(function (resolve, reject) {\n __request(debug, that.options.method || \"post\", that.getUrl(), headers, {\n query: fragmentedQuery,\n variables: that.cleanAutoDeclareAnnotations(variables)\n }, !!that.options.asJSON, that.options.onRequestError, function (response, status) {\n if (status == 200) {\n if (response.errors) {\n reject(response.errors)\n } else if (response.data) {\n resolve(response.data)\n } else {\n resolve(response)\n }\n } else {\n reject(response)\n }\n })\n })\n }\n\n caller.merge = function (mergeName, variables) {\n if (!type) {\n type = that.parseType(query)\n query = query.trim()\n .replace(/^(query|mutation|subscription)\\s*/, '').trim()\n .replace(GraphQLClient.AUTODECLARE_PATTERN, '').trim()\n .replace(/^\\{|\\}$/g, '')\n }\n if (!originalQuery) {\n originalQuery = query\n }\n that._transaction[mergeName] = that._transaction[mergeName] || {\n query: [],\n mutation: []\n }\n return new Promise(function (resolve) {\n that._transaction[mergeName][type].push({\n type: type,\n query: originalQuery,\n variables: variables,\n resolver: resolve\n })\n })\n }\n if (arguments.length > 3) {\n return caller.apply(null, Array.prototype.slice.call(arguments, 3))\n }\n return caller\n }\n }\n\n GraphQLClient.prototype.commit = function (mergeName) {\n if (!this._transaction[mergeName]) {\n throw new Error(\"You cannot commit the merge \" + mergeName + \" without creating it first.\")\n }\n var that = this\n var resolveMap = {}\n var mergedVariables = {}\n var mergedQueries = {}\n Object.keys(this._transaction[mergeName]).forEach(function (method) {\n if (that._transaction[mergeName][method].length === 0) return\n var subQuery = that._transaction[mergeName][method].map(function (merge) {\n var reqId = 'merge' + Math.random().toString().split('.')[1].substr(0, 6)\n resolveMap[reqId] = merge.resolver\n var query = merge.query.replace(/\\$([^\\.\\,\\s\\)]*)/g, function (_, m) {\n if (!merge.variables) {\n throw new Error('Unused variable on merge ' + mergeName + ': $' + m[0])\n }\n var matchingKey = Object.keys(merge.variables).filter(function (key) {\n return key === m || key.match(new RegExp('^' + m + '!'))\n })[0]\n var variable = reqId + '__' + matchingKey\n mergedVariables[method] = mergedVariables[method] || {}\n mergedVariables[method][variable] = merge.variables[matchingKey]\n return '$' + variable.split('!')[0]\n })\n var alias = query.trim().match(/^[^\\(]+\\:/)\n if (!alias) {\n alias = query.replace(/^\\{|\\}$/gm, '').trim().match(/^[^\\(\\{]+/)[0] + ':'\n } else {\n query = query.replace(/^[^\\(]+\\:/, '')\n }\n return reqId + '_' + alias + query\n }).join('\\n')\n\n mergedQueries[method] = mergedQueries[method] || []\n mergedQueries[method].push(method + \" (@autodeclare) {\\n\" + subQuery + \"\\n }\")\n })\n\n return Promise.all(Object.keys(mergedQueries).map(function (method) {\n var query = mergedQueries[method].join('\\n')\n var variables = mergedVariables[method]\n return that._sender(query, query, null, variables)\n })).then(function (responses) {\n var newResponses = {}\n responses.forEach(function (response) {\n Object.keys(response).forEach(function (mergeKey) {\n var parsedKey = mergeKey.match(/^(merge\\d+)\\_(.*)/)\n if (!parsedKey) {\n throw new Error('Multiple root keys detected on response. Merging doesn\\'t support it yet.')\n }\n var reqId = parsedKey[1]\n var fieldName = parsedKey[2]\n var newResponse = {}\n newResponse[fieldName] = response[mergeKey]\n newResponses[fieldName] = (newResponses[fieldName] || []).concat([response[mergeKey]])\n resolveMap[reqId](newResponse)\n })\n })\n return newResponses\n }).catch(function (responses) {\n return { error: true, errors: responses }\n }).finally(function (responses) {\n that._transaction[mergeName] = { query: [], mutation: [] }\n return responses\n })\n }\n\n GraphQLClient.prototype.createHelpers = function (sender) {\n var that = this\n function helper(query) {\n if (__isTagCall(query)) {\n that.__prefix = this.prefix\n that.__suffix = this.suffix\n var result = that.run(that.ql.apply(that, arguments))\n that.__prefix = \"\"\n that.__suffix = \"\"\n return result\n }\n var caller = sender(this.prefix + \" \" + query + \" \" + this.suffix, query.trim(), this.type)\n if (arguments.length > 1 && arguments[1] != null) {\n return caller.apply(null, Array.prototype.slice.call(arguments, 1))\n }\n return caller\n }\n\n var helpers = [\n {method: 'mutate', type: 'mutation'},\n {method: 'query', type: 'query'},\n {method: 'subscribe', type: 'subscription'}\n ]\n helpers.forEach(function (m) {\n that[m.method] = function (query, variables, options) {\n if (that.options.alwaysAutodeclare === true || (options && options.declare === true)) {\n return helper.call({type: m.type, prefix: m.type + \" (@autodeclare) {\", suffix: \"}\"}, query, variables)\n }\n return helper.call({type: m.type, prefix: m.type, suffix: \"\"}, query, variables)\n }\n that[m.method].run = function (query, options) {\n return that[m.method](query, options)({})\n }\n })\n this.run = function (query) {\n return sender(query, originalQuery, m.type, {})\n }\n }\n\n GraphQLClient.prototype.fragments = function () {\n return this._fragments\n }\n\n GraphQLClient.prototype.getOptions = function () {\n return this.options || {}\n }\n\n GraphQLClient.prototype.headers = function (newHeaders) {\n return this.options.headers = __extend(this.options.headers, newHeaders)\n }\n\n GraphQLClient.prototype.fragment = function (fragment) {\n if (typeof fragment == 'string') {\n var _fragment = this._fragments[fragment.replace(/\\./g, FRAGMENT_SEPERATOR)]\n if (!_fragment) {\n throw \"Fragment \" + fragment + \" not found!\"\n }\n return _fragment.trim()\n } else {\n this.options.fragments = __extend(true, this.options.fragments, fragment)\n this._fragments = this.buildFragments(this.options.fragments)\n return this._fragments\n }\n }\n\n GraphQLClient.prototype.ql = function (strings) {\n fragments = Array.prototype.slice.call(arguments, 1)\n fragments = fragments.map(function (fragment) {\n if (typeof fragment == 'string') {\n return fragment.match(/fragment\\s+([^\\s]*)\\s/)[1]\n }\n })\n var query = (typeof strings == 'string') ? strings : strings.reduce(function (acc, seg, i) {\n return acc + fragments[i - 1] + seg\n })\n query = this.buildQuery(query)\n query = ((this.__prefix||\"\") + \" \" + query + \" \" + (this.__suffix||\"\")).trim()\n return query\n }\n\n ;(function (root, factory) {\n if (typeof define === 'function' && define.amd) {\n define(function () {\n return (root.graphql = factory(GraphQLClient))\n });\n } else if (typeof module === 'object' && module.exports) {\n module.exports = factory(root.GraphQLClient)\n } else {\n root.graphql = factory(root.GraphQLClient)\n }\n }(this || self, function () {\n return GraphQLClient\n }))\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'use strict';\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n\nfunction emptyFunction() {}\nfunction emptyFunctionWithReset() {}\nemptyFunctionWithReset.resetWarningCache = emptyFunction;\n\nmodule.exports = function() {\n function shim(props, propName, componentName, location, propFullName, secret) {\n if (secret === ReactPropTypesSecret) {\n // It is still safe when called from React.\n return;\n }\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use PropTypes.checkPropTypes() to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n };\n shim.isRequired = shim;\n function getShim() {\n return shim;\n };\n // Important!\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n var ReactPropTypes = {\n array: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n\n any: shim,\n arrayOf: getShim,\n element: shim,\n elementType: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim,\n exact: getShim,\n\n checkPropTypes: emptyFunctionWithReset,\n resetWarningCache: emptyFunction\n };\n\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\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\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\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'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n","(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react'), require('prop-types')) :\n typeof define === 'function' && define.amd ? define(['exports', 'react', 'prop-types'], factory) :\n (global = global || self, factory(global.ReactStaticGoogleMap = {}, global.React, global.PropTypes));\n}(this, function (exports, React, PropTypes) { 'use strict';\n\n var React__default = 'default' in React ? React['default'] : React;\n PropTypes = PropTypes && PropTypes.hasOwnProperty('default') ? PropTypes['default'] : PropTypes;\n\n var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\n var statusTypes = {\n none: 'none',\n pending: 'pending',\n rejected: 'rejected',\n resolved: 'resolved'\n };\n\n var Async = function (_React$Component) {\n _inherits(Async, _React$Component);\n\n function Async(props) {\n _classCallCheck(this, Async);\n\n var _this = _possibleConstructorReturn(this, (Async.__proto__ || Object.getPrototypeOf(Async)).call(this, props));\n\n _this.state = {\n status: statusTypes.none\n };\n return _this;\n }\n\n _createClass(Async, [{\n key: 'componentWillReceiveProps',\n value: function componentWillReceiveProps(nP) {\n if (nP.promise !== this.props.promise) {\n this.setState({\n status: statusTypes.none\n });\n this.handlePromise(nP.promise);\n }\n }\n }, {\n key: 'handlePromise',\n value: function handlePromise(prom) {\n var _this2 = this;\n\n this.setState({\n status: statusTypes.pending\n });\n prom.then(function (res) {\n _this2.setState({\n status: statusTypes.resolved,\n value: res\n });\n }, function (err) {\n _this2.setState({\n status: statusTypes.rejected,\n value: err\n });\n });\n }\n }, {\n key: 'componentWillMount',\n value: function componentWillMount() {\n if (this.props.promise) {\n this.handlePromise(this.props.promise);\n }\n }\n }, {\n key: 'render',\n value: function render() {\n var props = this.props,\n state = this.state;\n\n\n switch (state.status) {\n case statusTypes.none:\n if (props.before) {\n return props.before(this.handlePromise.bind(this));\n }\n break;\n case statusTypes.pending:\n if (props.pending) {\n return props.pending;\n }\n break;\n case statusTypes.resolved:\n if (props.then) {\n return props.then(state.value);\n }\n break;\n case statusTypes.rejected:\n if (props.catch) {\n return props.catch(state.value);\n }\n break;\n }\n\n return null;\n }\n }]);\n\n return Async;\n }(React__default.Component);\n\n Async.propTypes = {\n before: PropTypes.func, // renders it's return value before promise is handled\n then: PropTypes.func, // renders it's return value when promise is resolved\n catch: PropTypes.func, // renders it's return value when promise is rejected\n pending: PropTypes.node, // renders it's value when promise is pending\n promise: PropTypes.object // promise itself\n };\n\n /**\n * Copyright 2013-2015, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n */\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\n var NODE_ENV = process.env.NODE_ENV;\n\n var invariant = function(condition, format, a, b, c, d, e, f) {\n if (NODE_ENV !== 'production') {\n if (format === undefined) {\n throw new Error('invariant requires an error message argument');\n }\n }\n\n if (!condition) {\n var error;\n if (format === undefined) {\n error = new Error(\n 'Minified exception occurred; use the non-minified dev environment ' +\n 'for the full error message and additional helpful warnings.'\n );\n } else {\n var args = [a, b, c, d, e, f];\n var argIndex = 0;\n error = new Error(\n format.replace(/%s/g, function() { 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\n var invariant_1 = invariant;\n\n var _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) {\n return typeof obj;\n } : function (obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n\n var classCallCheck = function (instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n };\n\n var createClass = 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 Object.defineProperty(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 }();\n\n var _extends = Object.assign || 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 };\n\n var inherits = 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);\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n };\n\n var objectWithoutProperties = function (obj, keys) {\n var target = {};\n\n for (var i in obj) {\n if (keys.indexOf(i) >= 0) continue;\n if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;\n target[i] = obj[i];\n }\n\n return target;\n };\n\n var possibleConstructorReturn = 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 === \"object\" || typeof call === \"function\") ? call : self;\n };\n\n var toConsumableArray = function (arr) {\n if (Array.isArray(arr)) {\n for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];\n\n return arr2;\n } else {\n return Array.from(arr);\n }\n };\n\n function urlBuilder(property, value, separator) {\n if (value) {\n return '' + property + separator + value;\n }\n\n return null;\n }\n\n function locationBuilder(location) {\n var urlParts = [];\n\n if (Array.isArray(location)) {\n var arrParts = location.map(function (val) {\n return locationBuilder(val);\n });\n urlParts.push.apply(urlParts, toConsumableArray(arrParts));\n }\n\n if (typeof location === 'string' || typeof location === 'number') {\n urlParts.push(location);\n }\n\n if ((typeof location === 'undefined' ? 'undefined' : _typeof(location)) === 'object' && location.lat && location.lng) {\n urlParts.push(location.lat + ',' + location.lng);\n }\n\n return urlParts.join('%7C'); // |\n }\n\n function isStatelessComponent(component) {\n return !component.render && !(component.prototype && component.prototype.render);\n }\n\n function isClassComponent(component) {\n return Boolean(component && component.prototype.isReactComponent && component.prototype.render);\n }\n\n function renderStatelessComponent(component, props) {\n return component(props);\n }\n\n function renderClassComponent(component, props) {\n return new component(props).render();\n }\n\n var markerStrategy = function markerStrategy(_ref, parentProps) {\n var props = _ref.props,\n defaultProps = _ref.type.defaultProps;\n var size = props.size,\n color = props.color,\n label = props.label,\n anchor = props.anchor,\n iconURL = props.iconURL,\n location = props.location,\n scale = props.scale;\n\n\n invariant_1(location, 'Marker expects a valid location prop');\n\n var urlParts = [];\n\n // Todo: Remove the property if the defaultProp and Prop value is the same\n\n urlParts.push(urlBuilder('size', size, ':'));\n urlParts.push(urlBuilder('color', color, ':'));\n urlParts.push(urlBuilder('label', label, ':'));\n urlParts.push(urlBuilder('anchor', anchor, ':'));\n urlParts.push(urlBuilder('scale', scale, ':'));\n urlParts.push(urlBuilder('icon', iconURL, ':'));\n urlParts.push(urlBuilder('', locationBuilder(location), ''));\n\n var url = urlParts.filter(function (x) {\n return x;\n }).join('%7C'); // |\n\n return 'markers=' + url;\n };\n\n var pathStrategy = function pathStrategy(_ref, parentProps) {\n var props = _ref.props,\n defaultProps = _ref.type.defaultProps;\n var weight = props.weight,\n color = props.color,\n fillcolor = props.fillcolor,\n geodesic = props.geodesic,\n points = props.points;\n\n\n invariant_1(points, 'Path expects a valid points prop');\n\n var urlParts = [];\n // Todo: Remove the property if the defaultProp and Prop value is the same\n\n urlParts.push(urlBuilder('color', color, ':'));\n urlParts.push(urlBuilder('weight', weight, ':'));\n urlParts.push(urlBuilder('fillcolor', fillcolor, ':'));\n urlParts.push(urlBuilder('geodesic', geodesic, ':'));\n urlParts.push(urlBuilder('', locationBuilder(points), ''));\n\n var url = urlParts.filter(function (x) {\n return x;\n }).join('%7C'); //|\n\n return 'path=' + url;\n };\n\n var markerGroupStrategy = function markerGroupStrategy(_ref, parentProps) {\n var props = _ref.props,\n defaultProps = _ref.type.defaultProps;\n var size = props.size,\n color = props.color,\n label = props.label,\n anchor = props.anchor,\n iconURL = props.iconURL,\n children = props.children,\n scale = props.scale;\n\n\n var location = React.Children.map(children, function (child) {\n return child.props.location;\n });\n\n return markerStrategy({\n props: { size: size, color: color, label: label, anchor: anchor, iconURL: iconURL, location: location, scale: scale },\n type: { defaultProps: defaultProps }\n });\n };\n\n var pathGroupStrategy = function pathGroupStrategy(_ref, parentProps) {\n var props = _ref.props,\n defaultProps = _ref.type.defaultProps;\n var weight = props.weight,\n color = props.color,\n fillcolor = props.fillcolor,\n geodesic = props.geodesic,\n children = props.children;\n\n\n var points = React.Children.map(children, function (child) {\n return child.props.points;\n });\n\n return pathStrategy({\n props: { weight: weight, color: color, fillcolor: fillcolor, geodesic: geodesic, points: points },\n type: { defaultProps: defaultProps }\n });\n };\n\n function nativeStrategy(data) {\n var origin = data.origin,\n destination = data.destination,\n travelMode = data.travelMode;\n\n\n var originLocation = void 0;\n var destinationLocation = void 0;\n\n if ((typeof origin === 'undefined' ? 'undefined' : _typeof(origin)) === 'object' && origin.lat && origin.lng) {\n originLocation = new google.maps.LatLng(origin);\n } else {\n originLocation = origin;\n }\n\n if ((typeof destination === 'undefined' ? 'undefined' : _typeof(destination)) === 'object' && destination.lat && destination.lng) {\n destinationLocation = new google.maps.LatLng(destination);\n } else {\n destinationLocation = destination;\n }\n\n var DirectionsService = new google.maps.DirectionsService();\n return new Promise(function (resolve, reject) {\n DirectionsService.route({\n origin: originLocation,\n destination: destinationLocation,\n travelMode: travelMode.toUpperCase()\n }, function (result, status) {\n if (status === google.maps.DirectionsStatus.OK) {\n resolve(result.routes[0].overview_polyline);\n }\n\n reject(status);\n });\n });\n }\n\n function fetchStrategy(data) {\n var baseURL = data.baseURL,\n key = data.key,\n origin = data.origin,\n destination = data.destination;\n\n\n var options = {\n method: 'GET',\n mode: 'cors',\n cache: 'default'\n };\n\n var originLocation = void 0;\n var destinationLocation = void 0;\n\n if ((typeof origin === 'undefined' ? 'undefined' : _typeof(origin)) === 'object' && origin.lat && origin.lng) {\n originLocation = origin.lat + ',' + origin.lng;\n } else {\n originLocation = origin;\n }\n\n if ((typeof destination === 'undefined' ? 'undefined' : _typeof(destination)) === 'object' && destination.lat && destination.lng) {\n destinationLocation = destination.lat + ',' + destination.lng;\n } else {\n destinationLocation = destination;\n }\n\n var URL = baseURL + '?origin=' + originLocation + '&destination=' + destinationLocation + '&key=' + key;\n\n return fetch(URL, options).then(function (res) {\n return res.json();\n }).then(function (res) {\n return res.routes[0].overview_polyline.points;\n });\n }\n\n var memoizeDirectionStrategy = function memoizeDirectionStrategy(directionStrategy) {\n var cache = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n return function (_ref, parentProps) {\n var props = _ref.props;\n\n var key = JSON.stringify(props);\n if (cache[key]) {\n return cache[key];\n } else {\n var promise = directionStrategy.apply(null, arguments).then(function (strat) {\n // When this finally resolves, set the value of the cache to\n // the string path result. Subsequent renders will return a string\n // and use the base component instead of the Async component and\n // not cause the flash\n cache[key] = strat;\n if (parentProps.onCacheUpdate) {\n parentProps.onCacheUpdate(_extends({}, cache));\n }\n return strat;\n });\n // Return the pending promise immedietly and the StaticGoogleMap\n // usage of the Async component will eventually handle it because\n // this function returned a Promise. This piece of the code prevents\n // multiple calls to google on each render, but does not solve the\n // \"flash\" of the Async component.\n cache[key] = promise;\n return promise;\n }\n };\n };\n\n var directionStrategy = function directionStrategy(_ref2, parentProps) {\n var props = _ref2.props,\n defaultProps = _ref2.type.defaultProps;\n var baseURL = props.baseURL,\n requestStrategy = props.requestStrategy,\n origin = props.origin,\n destination = props.destination,\n apiKey = props.apiKey,\n waypoints = props.waypoints,\n avoid = props.avoid,\n travelMode = props.travelMode,\n transitMode = props.transitMode,\n transitRoutingPreference = props.transitRoutingPreference,\n weight = props.weight,\n color = props.color,\n fillcolor = props.fillcolor,\n geodesic = props.geodesic,\n rest = objectWithoutProperties(props, ['baseURL', 'requestStrategy', 'origin', 'destination', 'apiKey', 'waypoints', 'avoid', 'travelMode', 'transitMode', 'transitRoutingPreference', 'weight', 'color', 'fillcolor', 'geodesic']);\n\n\n invariant_1(origin, 'Origin prop is required');\n invariant_1(destination, 'Destination prop is required');\n\n // Use the parent's API key if one isn't set here.\n var key = apiKey ? apiKey : parentProps ? parentProps.apiKey : '';\n\n var data = _extends({\n key: key,\n baseURL: baseURL,\n origin: origin,\n destination: destination,\n waypoints: waypoints,\n avoid: avoid,\n travelMode: travelMode,\n transitMode: transitMode,\n transitRoutingPreference: transitRoutingPreference\n }, rest);\n\n var pathPromise = void 0;\n\n if (typeof requestStrategy !== 'string') {\n pathPromise = requestStrategy(data);\n } else {\n switch (requestStrategy) {\n case 'native':\n pathPromise = nativeStrategy(data);\n break;\n case 'fetch':\n pathPromise = fetchStrategy(data);\n break;\n default:\n throw new Error('Specify a Request strategy to get directions from');\n }\n }\n\n return pathPromise.then(function (path) {\n return pathStrategy({\n props: { weight: weight, color: color, fillcolor: fillcolor, geodesic: geodesic, points: 'enc:' + path },\n type: { defaultProps: defaultProps }\n });\n });\n };\n\n var MapStrategy = function MapStrategy(props) {\n var rootURL = props.rootURL,\n size = props.size,\n zoom = props.zoom,\n scale = props.scale,\n style = props.style,\n center = props.center,\n format = props.format,\n client = props.client,\n region = props.region,\n visible = props.visible,\n channel = props.channel,\n maptype = props.maptype,\n language = props.language,\n signature = props.signature,\n apiKey = props.apiKey;\n\n\n var urlParts = [];\n\n urlParts.push(urlBuilder('size', size, '='));\n urlParts.push(urlBuilder('zoom', zoom, '='));\n urlParts.push(urlBuilder('scale', scale, '='));\n urlParts.push(urlBuilder('style', style, '='));\n urlParts.push(urlBuilder('center', center, '=')); // Todo: Allow Objects.\n urlParts.push(urlBuilder('format', format, '='));\n urlParts.push(urlBuilder('client', client, '='));\n urlParts.push(urlBuilder('region', region, '='));\n urlParts.push(urlBuilder('visible', visible, '='));\n urlParts.push(urlBuilder('channel', channel, '='));\n urlParts.push(urlBuilder('maptype', maptype, '='));\n urlParts.push(urlBuilder('language', language, '='));\n urlParts.push(urlBuilder('signature', signature, '='));\n urlParts.push(urlBuilder('key', apiKey, '='));\n\n var parts = urlParts.filter(function (x) {\n return x;\n }).join('&');\n\n return rootURL + '?' + parts;\n };\n\n var propTypes = {\n size: PropTypes.oneOf(['tiny', 'mid', 'small', 'normal']),\n color: PropTypes.string,\n iconURL: PropTypes.string,\n label: PropTypes.string,\n anchor: PropTypes.string,\n location: PropTypes.any.isRequired\n };\n\n var defaultProps = {\n size: 'normal'\n };\n\n var groupPropTypes = {\n size: PropTypes.oneOf(['tiny', 'mid', 'small', 'normal']),\n color: PropTypes.string,\n iconURL: PropTypes.string,\n label: PropTypes.string,\n anchor: PropTypes.string\n };\n\n var Marker = function Marker(props) {\n return null;\n };\n Marker.propTypes = propTypes;\n Marker.defaultProps = defaultProps;\n\n var MarkerGroup = function MarkerGroup(props) {\n return null;\n };\n MarkerGroup.propTypes = groupPropTypes;\n MarkerGroup.defaultProps = defaultProps;\n\n Marker.Group = MarkerGroup;\n\n var propTypes$1 = {\n weight: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),\n color: PropTypes.string,\n fillcolor: PropTypes.string,\n geodesic: PropTypes.bool,\n points: PropTypes.any.isRequired\n };\n\n var groupPropTypes$1 = {\n weight: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),\n color: PropTypes.string,\n fillcolor: PropTypes.string,\n geodesic: PropTypes.bool\n };\n\n var defaultProps$1 = {\n weight: 5,\n geodesic: false\n };\n\n var Path = function Path(props) {\n return null;\n };\n Path.propTypes = propTypes$1;\n Path.defaultProps = defaultProps$1;\n\n var PathGroup = function PathGroup(props) {\n return null;\n };\n PathGroup.propsTypes = groupPropTypes$1;\n PathGroup.defaultProps = defaultProps$1;\n\n Path.Group = PathGroup;\n\n var propTypes$2 = {\n baseURL: PropTypes.string,\n origin: PropTypes.string.isRequired,\n destination: PropTypes.string.isRequired,\n apiKey: PropTypes.string,\n waypoints: PropTypes.any,\n\n avoid: PropTypes.string,\n travelMode: PropTypes.oneOf(['driving', 'walking', 'bicycling', 'transit']),\n transitMode: PropTypes.oneOf(['bus', 'subway', 'train', 'tram', 'rail']),\n transitRoutingPreference: PropTypes.oneOf(['less_walking', 'fewer_transfers']),\n requestStrategy: PropTypes.oneOfType([PropTypes.func, PropTypes.oneOf(['fetch', 'native'])]).isRequired,\n\n weight: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),\n color: PropTypes.string,\n fillcolor: PropTypes.string,\n geodesic: PropTypes.bool\n };\n\n var defaultProps$2 = {\n baseURL: 'https://maps.googleapis.com/maps/api/directions/json',\n travelMode: 'driving',\n requestStrategy: 'native',\n\n weight: 5,\n geodesic: false\n };\n\n var Direction = function Direction(props) {\n return null;\n };\n\n Direction.propTypes = propTypes$2;\n Direction.defaultProps = defaultProps$2;\n\n var StaticGoogleMap = function (_Component) {\n inherits(StaticGoogleMap, _Component);\n\n function StaticGoogleMap() {\n var _ref;\n\n var _temp, _this, _ret;\n\n classCallCheck(this, StaticGoogleMap);\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 = possibleConstructorReturn(this, (_ref = StaticGoogleMap.__proto__ || Object.getPrototypeOf(StaticGoogleMap)).call.apply(_ref, [this].concat(args))), _this), _this.MemoizedDirectionStrategy = memoizeDirectionStrategy(directionStrategy, _extends({}, _this.props.cache)), _temp), possibleConstructorReturn(_this, _ret);\n }\n\n createClass(StaticGoogleMap, [{\n key: 'buildParts',\n value: function buildParts(children, props) {\n var _this2 = this;\n\n return React__default.Children.map(children, function (child) {\n if (!React__default.isValidElement(child)) {\n return null;\n }\n\n switch (child.type) {\n case Marker:\n return markerStrategy(child, props);\n case Marker.Group:\n return markerGroupStrategy(child, props);\n case Path:\n return pathStrategy(child, props);\n case Path.Group:\n return pathGroupStrategy(child, props);\n case Direction:\n if (props.cache) {\n return _this2.MemoizedDirectionStrategy(child, props);\n }\n return directionStrategy(child, props);\n default:\n var componentType = child.type;\n\n if (isStatelessComponent(componentType)) {\n return _this2.buildParts(renderStatelessComponent(componentType, _extends({}, child.props)), props);\n }\n\n if (isClassComponent(componentType)) {\n return _this2.buildParts(renderClassComponent(componentType, _extends({}, child.props)), props);\n }\n\n return null;\n }\n });\n }\n }, {\n key: 'render',\n value: function render() {\n var _props = this.props,\n children = _props.children,\n onGenerate = _props.onGenerate,\n Component = _props.as,\n props = objectWithoutProperties(_props, ['children', 'onGenerate', 'as']);\n var size = props.size,\n componentProps = objectWithoutProperties(props, ['rootURL', 'size', 'zoom', 'scale', 'style', 'center', 'format', 'client', 'region', 'visible', 'channel', 'maptype', 'language', 'signature', 'apiKey', 'cache', 'onCacheUpdate']);\n\n\n invariant_1(size, 'size property is not set');\n invariant_1(children, 'Component must have `Marker`, `Path` or `Direction` child');\n\n var childrenUrlParts = this.buildParts(children, props) || [];\n var mainUrlParts = MapStrategy(props);\n\n /**\n * All the parts should return a string if a component that does not return a promise isn't used\n * The Directions's component returns a promise and would instead use the Async component to render\n * This allows us render sync otherwise and partially support server side rendering.\n */\n if (!childrenUrlParts.some(function (part) {\n return (typeof part === 'undefined' ? 'undefined' : _typeof(part)) === 'object';\n })) {\n var childURL = childrenUrlParts.filter(function (part) {\n return part;\n }).join('&');\n var url = mainUrlParts + '&' + childURL;\n\n if (onGenerate) {\n onGenerate(url);\n }\n\n return React__default.createElement(Component, _extends({}, componentProps, { src: url }));\n }\n\n var urlParts = Promise.all(childrenUrlParts).then(function (parts) {\n return mainUrlParts + '&' + parts.filter(function (part) {\n return part;\n }).join('&');\n });\n\n return React__default.createElement(Async, {\n promise: urlParts,\n then: function then(URL) {\n if (onGenerate) {\n onGenerate(URL);\n }\n\n return React__default.createElement(Component, _extends({}, componentProps, { src: URL }));\n },\n 'catch': function _catch(err) {\n return console.error(err), React__default.createElement(\n 'span',\n null,\n 'Image generation failed.'\n );\n }\n });\n }\n }]);\n return StaticGoogleMap;\n }(React.Component);\n\n StaticGoogleMap.defaultProps = {\n as: 'img',\n scale: 1,\n format: 'png',\n rootURL: 'https://maps.googleapis.com/maps/api/staticmap',\n apiKey: '',\n maptype: 'roadmap',\n cache: true\n };\n\n exports.StaticGoogleMap = StaticGoogleMap;\n exports.Marker = Marker;\n exports.Path = Path;\n exports.Direction = Direction;\n\n Object.defineProperty(exports, '__esModule', { value: true });\n\n}));\n","/*! https://mths.be/punycode v1.3.2 by @mathias */\n;(function(root) {\n\n\t/** Detect free variables */\n\tvar freeExports = typeof exports == 'object' && exports &&\n\t\t!exports.nodeType && exports;\n\tvar freeModule = typeof module == 'object' && module &&\n\t\t!module.nodeType && module;\n\tvar freeGlobal = typeof global == 'object' && global;\n\tif (\n\t\tfreeGlobal.global === freeGlobal ||\n\t\tfreeGlobal.window === freeGlobal ||\n\t\tfreeGlobal.self === freeGlobal\n\t) {\n\t\troot = freeGlobal;\n\t}\n\n\t/**\n\t * The `punycode` object.\n\t * @name punycode\n\t * @type Object\n\t */\n\tvar punycode,\n\n\t/** Highest positive signed 32-bit float value */\n\tmaxInt = 2147483647, // aka. 0x7FFFFFFF or 2^31-1\n\n\t/** Bootstring parameters */\n\tbase = 36,\n\ttMin = 1,\n\ttMax = 26,\n\tskew = 38,\n\tdamp = 700,\n\tinitialBias = 72,\n\tinitialN = 128, // 0x80\n\tdelimiter = '-', // '\\x2D'\n\n\t/** Regular expressions */\n\tregexPunycode = /^xn--/,\n\tregexNonASCII = /[^\\x20-\\x7E]/, // unprintable ASCII chars + non-ASCII chars\n\tregexSeparators = /[\\x2E\\u3002\\uFF0E\\uFF61]/g, // RFC 3490 separators\n\n\t/** Error messages */\n\terrors = {\n\t\t'overflow': 'Overflow: input needs wider integers to process',\n\t\t'not-basic': 'Illegal input >= 0x80 (not a basic code point)',\n\t\t'invalid-input': 'Invalid input'\n\t},\n\n\t/** Convenience shortcuts */\n\tbaseMinusTMin = base - tMin,\n\tfloor = Math.floor,\n\tstringFromCharCode = String.fromCharCode,\n\n\t/** Temporary variable */\n\tkey;\n\n\t/*--------------------------------------------------------------------------*/\n\n\t/**\n\t * A generic error utility function.\n\t * @private\n\t * @param {String} type The error type.\n\t * @returns {Error} Throws a `RangeError` with the applicable error message.\n\t */\n\tfunction error(type) {\n\t\tthrow RangeError(errors[type]);\n\t}\n\n\t/**\n\t * A generic `Array#map` utility function.\n\t * @private\n\t * @param {Array} array The array to iterate over.\n\t * @param {Function} callback The function that gets called for every array\n\t * item.\n\t * @returns {Array} A new array of values returned by the callback function.\n\t */\n\tfunction map(array, fn) {\n\t\tvar length = array.length;\n\t\tvar result = [];\n\t\twhile (length--) {\n\t\t\tresult[length] = fn(array[length]);\n\t\t}\n\t\treturn result;\n\t}\n\n\t/**\n\t * A simple `Array#map`-like wrapper to work with domain name strings or email\n\t * addresses.\n\t * @private\n\t * @param {String} domain The domain name or email address.\n\t * @param {Function} callback The function that gets called for every\n\t * character.\n\t * @returns {Array} A new string of characters returned by the callback\n\t * function.\n\t */\n\tfunction mapDomain(string, fn) {\n\t\tvar parts = string.split('@');\n\t\tvar result = '';\n\t\tif (parts.length > 1) {\n\t\t\t// In email addresses, only the domain name should be punycoded. Leave\n\t\t\t// the local part (i.e. everything up to `@`) intact.\n\t\t\tresult = parts[0] + '@';\n\t\t\tstring = parts[1];\n\t\t}\n\t\t// Avoid `split(regex)` for IE8 compatibility. See #17.\n\t\tstring = string.replace(regexSeparators, '\\x2E');\n\t\tvar labels = string.split('.');\n\t\tvar encoded = map(labels, fn).join('.');\n\t\treturn result + encoded;\n\t}\n\n\t/**\n\t * Creates an array containing the numeric code points of each Unicode\n\t * character in the string. While JavaScript uses UCS-2 internally,\n\t * this function will convert a pair of surrogate halves (each of which\n\t * UCS-2 exposes as separate characters) into a single code point,\n\t * matching UTF-16.\n\t * @see `punycode.ucs2.encode`\n\t * @see \n\t * @memberOf punycode.ucs2\n\t * @name decode\n\t * @param {String} string The Unicode input string (UCS-2).\n\t * @returns {Array} The new array of code points.\n\t */\n\tfunction ucs2decode(string) {\n\t\tvar output = [],\n\t\t counter = 0,\n\t\t length = string.length,\n\t\t value,\n\t\t extra;\n\t\twhile (counter < length) {\n\t\t\tvalue = string.charCodeAt(counter++);\n\t\t\tif (value >= 0xD800 && value <= 0xDBFF && counter < length) {\n\t\t\t\t// high surrogate, and there is a next character\n\t\t\t\textra = string.charCodeAt(counter++);\n\t\t\t\tif ((extra & 0xFC00) == 0xDC00) { // low surrogate\n\t\t\t\t\toutput.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000);\n\t\t\t\t} else {\n\t\t\t\t\t// unmatched surrogate; only append this code unit, in case the next\n\t\t\t\t\t// code unit is the high surrogate of a surrogate pair\n\t\t\t\t\toutput.push(value);\n\t\t\t\t\tcounter--;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\toutput.push(value);\n\t\t\t}\n\t\t}\n\t\treturn output;\n\t}\n\n\t/**\n\t * Creates a string based on an array of numeric code points.\n\t * @see `punycode.ucs2.decode`\n\t * @memberOf punycode.ucs2\n\t * @name encode\n\t * @param {Array} codePoints The array of numeric code points.\n\t * @returns {String} The new Unicode string (UCS-2).\n\t */\n\tfunction ucs2encode(array) {\n\t\treturn map(array, function(value) {\n\t\t\tvar output = '';\n\t\t\tif (value > 0xFFFF) {\n\t\t\t\tvalue -= 0x10000;\n\t\t\t\toutput += stringFromCharCode(value >>> 10 & 0x3FF | 0xD800);\n\t\t\t\tvalue = 0xDC00 | value & 0x3FF;\n\t\t\t}\n\t\t\toutput += stringFromCharCode(value);\n\t\t\treturn output;\n\t\t}).join('');\n\t}\n\n\t/**\n\t * Converts a basic code point into a digit/integer.\n\t * @see `digitToBasic()`\n\t * @private\n\t * @param {Number} codePoint The basic numeric code point value.\n\t * @returns {Number} The numeric value of a basic code point (for use in\n\t * representing integers) in the range `0` to `base - 1`, or `base` if\n\t * the code point does not represent a value.\n\t */\n\tfunction basicToDigit(codePoint) {\n\t\tif (codePoint - 48 < 10) {\n\t\t\treturn codePoint - 22;\n\t\t}\n\t\tif (codePoint - 65 < 26) {\n\t\t\treturn codePoint - 65;\n\t\t}\n\t\tif (codePoint - 97 < 26) {\n\t\t\treturn codePoint - 97;\n\t\t}\n\t\treturn base;\n\t}\n\n\t/**\n\t * Converts a digit/integer into a basic code point.\n\t * @see `basicToDigit()`\n\t * @private\n\t * @param {Number} digit The numeric value of a basic code point.\n\t * @returns {Number} The basic code point whose value (when used for\n\t * representing integers) is `digit`, which needs to be in the range\n\t * `0` to `base - 1`. If `flag` is non-zero, the uppercase form is\n\t * used; else, the lowercase form is used. The behavior is undefined\n\t * if `flag` is non-zero and `digit` has no uppercase form.\n\t */\n\tfunction digitToBasic(digit, flag) {\n\t\t// 0..25 map to ASCII a..z or A..Z\n\t\t// 26..35 map to ASCII 0..9\n\t\treturn digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5);\n\t}\n\n\t/**\n\t * Bias adaptation function as per section 3.4 of RFC 3492.\n\t * http://tools.ietf.org/html/rfc3492#section-3.4\n\t * @private\n\t */\n\tfunction adapt(delta, numPoints, firstTime) {\n\t\tvar k = 0;\n\t\tdelta = firstTime ? floor(delta / damp) : delta >> 1;\n\t\tdelta += floor(delta / numPoints);\n\t\tfor (/* no initialization */; delta > baseMinusTMin * tMax >> 1; k += base) {\n\t\t\tdelta = floor(delta / baseMinusTMin);\n\t\t}\n\t\treturn floor(k + (baseMinusTMin + 1) * delta / (delta + skew));\n\t}\n\n\t/**\n\t * Converts a Punycode string of ASCII-only symbols to a string of Unicode\n\t * symbols.\n\t * @memberOf punycode\n\t * @param {String} input The Punycode string of ASCII-only symbols.\n\t * @returns {String} The resulting string of Unicode symbols.\n\t */\n\tfunction decode(input) {\n\t\t// Don't use UCS-2\n\t\tvar output = [],\n\t\t inputLength = input.length,\n\t\t out,\n\t\t i = 0,\n\t\t n = initialN,\n\t\t bias = initialBias,\n\t\t basic,\n\t\t j,\n\t\t index,\n\t\t oldi,\n\t\t w,\n\t\t k,\n\t\t digit,\n\t\t t,\n\t\t /** Cached calculation results */\n\t\t baseMinusT;\n\n\t\t// Handle the basic code points: let `basic` be the number of input code\n\t\t// points before the last delimiter, or `0` if there is none, then copy\n\t\t// the first basic code points to the output.\n\n\t\tbasic = input.lastIndexOf(delimiter);\n\t\tif (basic < 0) {\n\t\t\tbasic = 0;\n\t\t}\n\n\t\tfor (j = 0; j < basic; ++j) {\n\t\t\t// if it's not a basic code point\n\t\t\tif (input.charCodeAt(j) >= 0x80) {\n\t\t\t\terror('not-basic');\n\t\t\t}\n\t\t\toutput.push(input.charCodeAt(j));\n\t\t}\n\n\t\t// Main decoding loop: start just after the last delimiter if any basic code\n\t\t// points were copied; start at the beginning otherwise.\n\n\t\tfor (index = basic > 0 ? basic + 1 : 0; index < inputLength; /* no final expression */) {\n\n\t\t\t// `index` is the index of the next character to be consumed.\n\t\t\t// Decode a generalized variable-length integer into `delta`,\n\t\t\t// which gets added to `i`. The overflow checking is easier\n\t\t\t// if we increase `i` as we go, then subtract off its starting\n\t\t\t// value at the end to obtain `delta`.\n\t\t\tfor (oldi = i, w = 1, k = base; /* no condition */; k += base) {\n\n\t\t\t\tif (index >= inputLength) {\n\t\t\t\t\terror('invalid-input');\n\t\t\t\t}\n\n\t\t\t\tdigit = basicToDigit(input.charCodeAt(index++));\n\n\t\t\t\tif (digit >= base || digit > floor((maxInt - i) / w)) {\n\t\t\t\t\terror('overflow');\n\t\t\t\t}\n\n\t\t\t\ti += digit * w;\n\t\t\t\tt = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);\n\n\t\t\t\tif (digit < t) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tbaseMinusT = base - t;\n\t\t\t\tif (w > floor(maxInt / baseMinusT)) {\n\t\t\t\t\terror('overflow');\n\t\t\t\t}\n\n\t\t\t\tw *= baseMinusT;\n\n\t\t\t}\n\n\t\t\tout = output.length + 1;\n\t\t\tbias = adapt(i - oldi, out, oldi == 0);\n\n\t\t\t// `i` was supposed to wrap around from `out` to `0`,\n\t\t\t// incrementing `n` each time, so we'll fix that now:\n\t\t\tif (floor(i / out) > maxInt - n) {\n\t\t\t\terror('overflow');\n\t\t\t}\n\n\t\t\tn += floor(i / out);\n\t\t\ti %= out;\n\n\t\t\t// Insert `n` at position `i` of the output\n\t\t\toutput.splice(i++, 0, n);\n\n\t\t}\n\n\t\treturn ucs2encode(output);\n\t}\n\n\t/**\n\t * Converts a string of Unicode symbols (e.g. a domain name label) to a\n\t * Punycode string of ASCII-only symbols.\n\t * @memberOf punycode\n\t * @param {String} input The string of Unicode symbols.\n\t * @returns {String} The resulting Punycode string of ASCII-only symbols.\n\t */\n\tfunction encode(input) {\n\t\tvar n,\n\t\t delta,\n\t\t handledCPCount,\n\t\t basicLength,\n\t\t bias,\n\t\t j,\n\t\t m,\n\t\t q,\n\t\t k,\n\t\t t,\n\t\t currentValue,\n\t\t output = [],\n\t\t /** `inputLength` will hold the number of code points in `input`. */\n\t\t inputLength,\n\t\t /** Cached calculation results */\n\t\t handledCPCountPlusOne,\n\t\t baseMinusT,\n\t\t qMinusT;\n\n\t\t// Convert the input in UCS-2 to Unicode\n\t\tinput = ucs2decode(input);\n\n\t\t// Cache the length\n\t\tinputLength = input.length;\n\n\t\t// Initialize the state\n\t\tn = initialN;\n\t\tdelta = 0;\n\t\tbias = initialBias;\n\n\t\t// Handle the basic code points\n\t\tfor (j = 0; j < inputLength; ++j) {\n\t\t\tcurrentValue = input[j];\n\t\t\tif (currentValue < 0x80) {\n\t\t\t\toutput.push(stringFromCharCode(currentValue));\n\t\t\t}\n\t\t}\n\n\t\thandledCPCount = basicLength = output.length;\n\n\t\t// `handledCPCount` is the number of code points that have been handled;\n\t\t// `basicLength` is the number of basic code points.\n\n\t\t// Finish the basic string - if it is not empty - with a delimiter\n\t\tif (basicLength) {\n\t\t\toutput.push(delimiter);\n\t\t}\n\n\t\t// Main encoding loop:\n\t\twhile (handledCPCount < inputLength) {\n\n\t\t\t// All non-basic code points < n have been handled already. Find the next\n\t\t\t// larger one:\n\t\t\tfor (m = maxInt, j = 0; j < inputLength; ++j) {\n\t\t\t\tcurrentValue = input[j];\n\t\t\t\tif (currentValue >= n && currentValue < m) {\n\t\t\t\t\tm = currentValue;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Increase `delta` enough to advance the decoder's state to ,\n\t\t\t// but guard against overflow\n\t\t\thandledCPCountPlusOne = handledCPCount + 1;\n\t\t\tif (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) {\n\t\t\t\terror('overflow');\n\t\t\t}\n\n\t\t\tdelta += (m - n) * handledCPCountPlusOne;\n\t\t\tn = m;\n\n\t\t\tfor (j = 0; j < inputLength; ++j) {\n\t\t\t\tcurrentValue = input[j];\n\n\t\t\t\tif (currentValue < n && ++delta > maxInt) {\n\t\t\t\t\terror('overflow');\n\t\t\t\t}\n\n\t\t\t\tif (currentValue == n) {\n\t\t\t\t\t// Represent delta as a generalized variable-length integer\n\t\t\t\t\tfor (q = delta, k = base; /* no condition */; k += base) {\n\t\t\t\t\t\tt = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);\n\t\t\t\t\t\tif (q < t) {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tqMinusT = q - t;\n\t\t\t\t\t\tbaseMinusT = base - t;\n\t\t\t\t\t\toutput.push(\n\t\t\t\t\t\t\tstringFromCharCode(digitToBasic(t + qMinusT % baseMinusT, 0))\n\t\t\t\t\t\t);\n\t\t\t\t\t\tq = floor(qMinusT / baseMinusT);\n\t\t\t\t\t}\n\n\t\t\t\t\toutput.push(stringFromCharCode(digitToBasic(q, 0)));\n\t\t\t\t\tbias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength);\n\t\t\t\t\tdelta = 0;\n\t\t\t\t\t++handledCPCount;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t++delta;\n\t\t\t++n;\n\n\t\t}\n\t\treturn output.join('');\n\t}\n\n\t/**\n\t * Converts a Punycode string representing a domain name or an email address\n\t * to Unicode. Only the Punycoded parts of the input will be converted, i.e.\n\t * it doesn't matter if you call it on a string that has already been\n\t * converted to Unicode.\n\t * @memberOf punycode\n\t * @param {String} input The Punycoded domain name or email address to\n\t * convert to Unicode.\n\t * @returns {String} The Unicode representation of the given Punycode\n\t * string.\n\t */\n\tfunction toUnicode(input) {\n\t\treturn mapDomain(input, function(string) {\n\t\t\treturn regexPunycode.test(string)\n\t\t\t\t? decode(string.slice(4).toLowerCase())\n\t\t\t\t: string;\n\t\t});\n\t}\n\n\t/**\n\t * Converts a Unicode string representing a domain name or an email address to\n\t * Punycode. Only the non-ASCII parts of the domain name will be converted,\n\t * i.e. it doesn't matter if you call it with a domain that's already in\n\t * ASCII.\n\t * @memberOf punycode\n\t * @param {String} input The domain name or email address to convert, as a\n\t * Unicode string.\n\t * @returns {String} The Punycode representation of the given domain name or\n\t * email address.\n\t */\n\tfunction toASCII(input) {\n\t\treturn mapDomain(input, function(string) {\n\t\t\treturn regexNonASCII.test(string)\n\t\t\t\t? 'xn--' + encode(string)\n\t\t\t\t: string;\n\t\t});\n\t}\n\n\t/*--------------------------------------------------------------------------*/\n\n\t/** Define the public API */\n\tpunycode = {\n\t\t/**\n\t\t * A string representing the current Punycode.js version number.\n\t\t * @memberOf punycode\n\t\t * @type String\n\t\t */\n\t\t'version': '1.3.2',\n\t\t/**\n\t\t * An object of methods to convert from JavaScript's internal character\n\t\t * representation (UCS-2) to Unicode code points, and back.\n\t\t * @see \n\t\t * @memberOf punycode\n\t\t * @type Object\n\t\t */\n\t\t'ucs2': {\n\t\t\t'decode': ucs2decode,\n\t\t\t'encode': ucs2encode\n\t\t},\n\t\t'decode': decode,\n\t\t'encode': encode,\n\t\t'toASCII': toASCII,\n\t\t'toUnicode': toUnicode\n\t};\n\n\t/** Expose `punycode` */\n\t// Some AMD build optimizers, like r.js, check for specific condition patterns\n\t// like the following:\n\tif (\n\t\ttypeof define == 'function' &&\n\t\ttypeof define.amd == 'object' &&\n\t\tdefine.amd\n\t) {\n\t\tdefine('punycode', function() {\n\t\t\treturn punycode;\n\t\t});\n\t} else if (freeExports && freeModule) {\n\t\tif (module.exports == freeExports) { // in Node.js or RingoJS v0.8.0+\n\t\t\tfreeModule.exports = punycode;\n\t\t} else { // in Narwhal or RingoJS v0.7.0-\n\t\t\tfor (key in punycode) {\n\t\t\t\tpunycode.hasOwnProperty(key) && (freeExports[key] = punycode[key]);\n\t\t\t}\n\t\t}\n\t} else { // in Rhino or a web browser\n\t\troot.punycode = punycode;\n\t}\n\n}(this));\n","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n'use strict';\n\n// If obj.hasOwnProperty has been overridden, then calling\n// obj.hasOwnProperty(prop) will break.\n// See: https://github.com/joyent/node/issues/1707\nfunction hasOwnProperty(obj, prop) {\n return Object.prototype.hasOwnProperty.call(obj, prop);\n}\n\nmodule.exports = function(qs, sep, eq, options) {\n sep = sep || '&';\n eq = eq || '=';\n var obj = {};\n\n if (typeof qs !== 'string' || qs.length === 0) {\n return obj;\n }\n\n var regexp = /\\+/g;\n qs = qs.split(sep);\n\n var maxKeys = 1000;\n if (options && typeof options.maxKeys === 'number') {\n maxKeys = options.maxKeys;\n }\n\n var len = qs.length;\n // maxKeys <= 0 means that we should not limit keys count\n if (maxKeys > 0 && len > maxKeys) {\n len = maxKeys;\n }\n\n for (var i = 0; i < len; ++i) {\n var x = qs[i].replace(regexp, '%20'),\n idx = x.indexOf(eq),\n kstr, vstr, k, v;\n\n if (idx >= 0) {\n kstr = x.substr(0, idx);\n vstr = x.substr(idx + 1);\n } else {\n kstr = x;\n vstr = '';\n }\n\n k = decodeURIComponent(kstr);\n v = decodeURIComponent(vstr);\n\n if (!hasOwnProperty(obj, k)) {\n obj[k] = v;\n } else if (Array.isArray(obj[k])) {\n obj[k].push(v);\n } else {\n obj[k] = [obj[k], v];\n }\n }\n\n return obj;\n};\n","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n'use strict';\n\nvar stringifyPrimitive = function(v) {\n switch (typeof v) {\n case 'string':\n return v;\n\n case 'boolean':\n return v ? 'true' : 'false';\n\n case 'number':\n return isFinite(v) ? v : '';\n\n default:\n return '';\n }\n};\n\nmodule.exports = function(obj, sep, eq, name) {\n sep = sep || '&';\n eq = eq || '=';\n if (obj === null) {\n obj = undefined;\n }\n\n if (typeof obj === 'object') {\n return Object.keys(obj).map(function(k) {\n var ks = encodeURIComponent(stringifyPrimitive(k)) + eq;\n if (Array.isArray(obj[k])) {\n return obj[k].map(function(v) {\n return ks + encodeURIComponent(stringifyPrimitive(v));\n }).join(sep);\n } else {\n return ks + encodeURIComponent(stringifyPrimitive(obj[k]));\n }\n }).join(sep);\n\n }\n\n if (!name) return '';\n return encodeURIComponent(stringifyPrimitive(name)) + eq +\n encodeURIComponent(stringifyPrimitive(obj));\n};\n","'use strict';\n\nexports.decode = exports.parse = require('./decode');\nexports.encode = exports.stringify = require('./encode');\n","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n'use strict';\n\nvar punycode = require('punycode');\nvar util = require('./util');\n\nexports.parse = urlParse;\nexports.resolve = urlResolve;\nexports.resolveObject = urlResolveObject;\nexports.format = urlFormat;\n\nexports.Url = Url;\n\nfunction Url() {\n this.protocol = null;\n this.slashes = null;\n this.auth = null;\n this.host = null;\n this.port = null;\n this.hostname = null;\n this.hash = null;\n this.search = null;\n this.query = null;\n this.pathname = null;\n this.path = null;\n this.href = null;\n}\n\n// Reference: RFC 3986, RFC 1808, RFC 2396\n\n// define these here so at least they only have to be\n// compiled once on the first module load.\nvar protocolPattern = /^([a-z0-9.+-]+:)/i,\n portPattern = /:[0-9]*$/,\n\n // Special case for a simple path URL\n simplePathPattern = /^(\\/\\/?(?!\\/)[^\\?\\s]*)(\\?[^\\s]*)?$/,\n\n // RFC 2396: characters reserved for delimiting URLs.\n // We actually just auto-escape these.\n delims = ['<', '>', '\"', '`', ' ', '\\r', '\\n', '\\t'],\n\n // RFC 2396: characters not allowed for various reasons.\n unwise = ['{', '}', '|', '\\\\', '^', '`'].concat(delims),\n\n // Allowed by RFCs, but cause of XSS attacks. Always escape these.\n autoEscape = ['\\''].concat(unwise),\n // Characters that are never ever allowed in a hostname.\n // Note that any invalid chars are also handled, but these\n // are the ones that are *expected* to be seen, so we fast-path\n // them.\n nonHostChars = ['%', '/', '?', ';', '#'].concat(autoEscape),\n hostEndingChars = ['/', '?', '#'],\n hostnameMaxLen = 255,\n hostnamePartPattern = /^[+a-z0-9A-Z_-]{0,63}$/,\n hostnamePartStart = /^([+a-z0-9A-Z_-]{0,63})(.*)$/,\n // protocols that can allow \"unsafe\" and \"unwise\" chars.\n unsafeProtocol = {\n 'javascript': true,\n 'javascript:': true\n },\n // protocols that never have a hostname.\n hostlessProtocol = {\n 'javascript': true,\n 'javascript:': true\n },\n // protocols that always contain a // bit.\n slashedProtocol = {\n 'http': true,\n 'https': true,\n 'ftp': true,\n 'gopher': true,\n 'file': true,\n 'http:': true,\n 'https:': true,\n 'ftp:': true,\n 'gopher:': true,\n 'file:': true\n },\n querystring = require('querystring');\n\nfunction urlParse(url, parseQueryString, slashesDenoteHost) {\n if (url && util.isObject(url) && url instanceof Url) return url;\n\n var u = new Url;\n u.parse(url, parseQueryString, slashesDenoteHost);\n return u;\n}\n\nUrl.prototype.parse = function(url, parseQueryString, slashesDenoteHost) {\n if (!util.isString(url)) {\n throw new TypeError(\"Parameter 'url' must be a string, not \" + typeof url);\n }\n\n // Copy chrome, IE, opera backslash-handling behavior.\n // Back slashes before the query string get converted to forward slashes\n // See: https://code.google.com/p/chromium/issues/detail?id=25916\n var queryIndex = url.indexOf('?'),\n splitter =\n (queryIndex !== -1 && queryIndex < url.indexOf('#')) ? '?' : '#',\n uSplit = url.split(splitter),\n slashRegex = /\\\\/g;\n uSplit[0] = uSplit[0].replace(slashRegex, '/');\n url = uSplit.join(splitter);\n\n var rest = url;\n\n // trim before proceeding.\n // This is to support parse stuff like \" http://foo.com \\n\"\n rest = rest.trim();\n\n if (!slashesDenoteHost && url.split('#').length === 1) {\n // Try fast path regexp\n var simplePath = simplePathPattern.exec(rest);\n if (simplePath) {\n this.path = rest;\n this.href = rest;\n this.pathname = simplePath[1];\n if (simplePath[2]) {\n this.search = simplePath[2];\n if (parseQueryString) {\n this.query = querystring.parse(this.search.substr(1));\n } else {\n this.query = this.search.substr(1);\n }\n } else if (parseQueryString) {\n this.search = '';\n this.query = {};\n }\n return this;\n }\n }\n\n var proto = protocolPattern.exec(rest);\n if (proto) {\n proto = proto[0];\n var lowerProto = proto.toLowerCase();\n this.protocol = lowerProto;\n rest = rest.substr(proto.length);\n }\n\n // figure out if it's got a host\n // user@server is *always* interpreted as a hostname, and url\n // resolution will treat //foo/bar as host=foo,path=bar because that's\n // how the browser resolves relative URLs.\n if (slashesDenoteHost || proto || rest.match(/^\\/\\/[^@\\/]+@[^@\\/]+/)) {\n var slashes = rest.substr(0, 2) === '//';\n if (slashes && !(proto && hostlessProtocol[proto])) {\n rest = rest.substr(2);\n this.slashes = true;\n }\n }\n\n if (!hostlessProtocol[proto] &&\n (slashes || (proto && !slashedProtocol[proto]))) {\n\n // there's a hostname.\n // the first instance of /, ?, ;, or # ends the host.\n //\n // If there is an @ in the hostname, then non-host chars *are* allowed\n // to the left of the last @ sign, unless some host-ending character\n // comes *before* the @-sign.\n // URLs are obnoxious.\n //\n // ex:\n // http://a@b@c/ => user:a@b host:c\n // http://a@b?@c => user:a host:c path:/?@c\n\n // v0.12 TODO(isaacs): This is not quite how Chrome does things.\n // Review our test case against browsers more comprehensively.\n\n // find the first instance of any hostEndingChars\n var hostEnd = -1;\n for (var i = 0; i < hostEndingChars.length; i++) {\n var hec = rest.indexOf(hostEndingChars[i]);\n if (hec !== -1 && (hostEnd === -1 || hec < hostEnd))\n hostEnd = hec;\n }\n\n // at this point, either we have an explicit point where the\n // auth portion cannot go past, or the last @ char is the decider.\n var auth, atSign;\n if (hostEnd === -1) {\n // atSign can be anywhere.\n atSign = rest.lastIndexOf('@');\n } else {\n // atSign must be in auth portion.\n // http://a@b/c@d => host:b auth:a path:/c@d\n atSign = rest.lastIndexOf('@', hostEnd);\n }\n\n // Now we have a portion which is definitely the auth.\n // Pull that off.\n if (atSign !== -1) {\n auth = rest.slice(0, atSign);\n rest = rest.slice(atSign + 1);\n this.auth = decodeURIComponent(auth);\n }\n\n // the host is the remaining to the left of the first non-host char\n hostEnd = -1;\n for (var i = 0; i < nonHostChars.length; i++) {\n var hec = rest.indexOf(nonHostChars[i]);\n if (hec !== -1 && (hostEnd === -1 || hec < hostEnd))\n hostEnd = hec;\n }\n // if we still have not hit it, then the entire thing is a host.\n if (hostEnd === -1)\n hostEnd = rest.length;\n\n this.host = rest.slice(0, hostEnd);\n rest = rest.slice(hostEnd);\n\n // pull out port.\n this.parseHost();\n\n // we've indicated that there is a hostname,\n // so even if it's empty, it has to be present.\n this.hostname = this.hostname || '';\n\n // if hostname begins with [ and ends with ]\n // assume that it's an IPv6 address.\n var ipv6Hostname = this.hostname[0] === '[' &&\n this.hostname[this.hostname.length - 1] === ']';\n\n // validate a little.\n if (!ipv6Hostname) {\n var hostparts = this.hostname.split(/\\./);\n for (var i = 0, l = hostparts.length; i < l; i++) {\n var part = hostparts[i];\n if (!part) continue;\n if (!part.match(hostnamePartPattern)) {\n var newpart = '';\n for (var j = 0, k = part.length; j < k; j++) {\n if (part.charCodeAt(j) > 127) {\n // we replace non-ASCII char with a temporary placeholder\n // we need this to make sure size of hostname is not\n // broken by replacing non-ASCII by nothing\n newpart += 'x';\n } else {\n newpart += part[j];\n }\n }\n // we test again with ASCII char only\n if (!newpart.match(hostnamePartPattern)) {\n var validParts = hostparts.slice(0, i);\n var notHost = hostparts.slice(i + 1);\n var bit = part.match(hostnamePartStart);\n if (bit) {\n validParts.push(bit[1]);\n notHost.unshift(bit[2]);\n }\n if (notHost.length) {\n rest = '/' + notHost.join('.') + rest;\n }\n this.hostname = validParts.join('.');\n break;\n }\n }\n }\n }\n\n if (this.hostname.length > hostnameMaxLen) {\n this.hostname = '';\n } else {\n // hostnames are always lower case.\n this.hostname = this.hostname.toLowerCase();\n }\n\n if (!ipv6Hostname) {\n // IDNA Support: Returns a punycoded representation of \"domain\".\n // It only converts parts of the domain name that\n // have non-ASCII characters, i.e. it doesn't matter if\n // you call it with a domain that already is ASCII-only.\n this.hostname = punycode.toASCII(this.hostname);\n }\n\n var p = this.port ? ':' + this.port : '';\n var h = this.hostname || '';\n this.host = h + p;\n this.href += this.host;\n\n // strip [ and ] from the hostname\n // the host field still retains them, though\n if (ipv6Hostname) {\n this.hostname = this.hostname.substr(1, this.hostname.length - 2);\n if (rest[0] !== '/') {\n rest = '/' + rest;\n }\n }\n }\n\n // now rest is set to the post-host stuff.\n // chop off any delim chars.\n if (!unsafeProtocol[lowerProto]) {\n\n // First, make 100% sure that any \"autoEscape\" chars get\n // escaped, even if encodeURIComponent doesn't think they\n // need to be.\n for (var i = 0, l = autoEscape.length; i < l; i++) {\n var ae = autoEscape[i];\n if (rest.indexOf(ae) === -1)\n continue;\n var esc = encodeURIComponent(ae);\n if (esc === ae) {\n esc = escape(ae);\n }\n rest = rest.split(ae).join(esc);\n }\n }\n\n\n // chop off from the tail first.\n var hash = rest.indexOf('#');\n if (hash !== -1) {\n // got a fragment string.\n this.hash = rest.substr(hash);\n rest = rest.slice(0, hash);\n }\n var qm = rest.indexOf('?');\n if (qm !== -1) {\n this.search = rest.substr(qm);\n this.query = rest.substr(qm + 1);\n if (parseQueryString) {\n this.query = querystring.parse(this.query);\n }\n rest = rest.slice(0, qm);\n } else if (parseQueryString) {\n // no query string, but parseQueryString still requested\n this.search = '';\n this.query = {};\n }\n if (rest) this.pathname = rest;\n if (slashedProtocol[lowerProto] &&\n this.hostname && !this.pathname) {\n this.pathname = '/';\n }\n\n //to support http.request\n if (this.pathname || this.search) {\n var p = this.pathname || '';\n var s = this.search || '';\n this.path = p + s;\n }\n\n // finally, reconstruct the href based on what has been validated.\n this.href = this.format();\n return this;\n};\n\n// format a parsed object into a url string\nfunction urlFormat(obj) {\n // ensure it's an object, and not a string url.\n // If it's an obj, this is a no-op.\n // this way, you can call url_format() on strings\n // to clean up potentially wonky urls.\n if (util.isString(obj)) obj = urlParse(obj);\n if (!(obj instanceof Url)) return Url.prototype.format.call(obj);\n return obj.format();\n}\n\nUrl.prototype.format = function() {\n var auth = this.auth || '';\n if (auth) {\n auth = encodeURIComponent(auth);\n auth = auth.replace(/%3A/i, ':');\n auth += '@';\n }\n\n var protocol = this.protocol || '',\n pathname = this.pathname || '',\n hash = this.hash || '',\n host = false,\n query = '';\n\n if (this.host) {\n host = auth + this.host;\n } else if (this.hostname) {\n host = auth + (this.hostname.indexOf(':') === -1 ?\n this.hostname :\n '[' + this.hostname + ']');\n if (this.port) {\n host += ':' + this.port;\n }\n }\n\n if (this.query &&\n util.isObject(this.query) &&\n Object.keys(this.query).length) {\n query = querystring.stringify(this.query);\n }\n\n var search = this.search || (query && ('?' + query)) || '';\n\n if (protocol && protocol.substr(-1) !== ':') protocol += ':';\n\n // only the slashedProtocols get the //. Not mailto:, xmpp:, etc.\n // unless they had them to begin with.\n if (this.slashes ||\n (!protocol || slashedProtocol[protocol]) && host !== false) {\n host = '//' + (host || '');\n if (pathname && pathname.charAt(0) !== '/') pathname = '/' + pathname;\n } else if (!host) {\n host = '';\n }\n\n if (hash && hash.charAt(0) !== '#') hash = '#' + hash;\n if (search && search.charAt(0) !== '?') search = '?' + search;\n\n pathname = pathname.replace(/[?#]/g, function(match) {\n return encodeURIComponent(match);\n });\n search = search.replace('#', '%23');\n\n return protocol + host + pathname + search + hash;\n};\n\nfunction urlResolve(source, relative) {\n return urlParse(source, false, true).resolve(relative);\n}\n\nUrl.prototype.resolve = function(relative) {\n return this.resolveObject(urlParse(relative, false, true)).format();\n};\n\nfunction urlResolveObject(source, relative) {\n if (!source) return relative;\n return urlParse(source, false, true).resolveObject(relative);\n}\n\nUrl.prototype.resolveObject = function(relative) {\n if (util.isString(relative)) {\n var rel = new Url();\n rel.parse(relative, false, true);\n relative = rel;\n }\n\n var result = new Url();\n var tkeys = Object.keys(this);\n for (var tk = 0; tk < tkeys.length; tk++) {\n var tkey = tkeys[tk];\n result[tkey] = this[tkey];\n }\n\n // hash is always overridden, no matter what.\n // even href=\"\" will remove it.\n result.hash = relative.hash;\n\n // if the relative url is empty, then there's nothing left to do here.\n if (relative.href === '') {\n result.href = result.format();\n return result;\n }\n\n // hrefs like //foo/bar always cut to the protocol.\n if (relative.slashes && !relative.protocol) {\n // take everything except the protocol from relative\n var rkeys = Object.keys(relative);\n for (var rk = 0; rk < rkeys.length; rk++) {\n var rkey = rkeys[rk];\n if (rkey !== 'protocol')\n result[rkey] = relative[rkey];\n }\n\n //urlParse appends trailing / to urls like http://www.example.com\n if (slashedProtocol[result.protocol] &&\n result.hostname && !result.pathname) {\n result.path = result.pathname = '/';\n }\n\n result.href = result.format();\n return result;\n }\n\n if (relative.protocol && relative.protocol !== result.protocol) {\n // if it's a known url protocol, then changing\n // the protocol does weird things\n // first, if it's not file:, then we MUST have a host,\n // and if there was a path\n // to begin with, then we MUST have a path.\n // if it is file:, then the host is dropped,\n // because that's known to be hostless.\n // anything else is assumed to be absolute.\n if (!slashedProtocol[relative.protocol]) {\n var keys = Object.keys(relative);\n for (var v = 0; v < keys.length; v++) {\n var k = keys[v];\n result[k] = relative[k];\n }\n result.href = result.format();\n return result;\n }\n\n result.protocol = relative.protocol;\n if (!relative.host && !hostlessProtocol[relative.protocol]) {\n var relPath = (relative.pathname || '').split('/');\n while (relPath.length && !(relative.host = relPath.shift()));\n if (!relative.host) relative.host = '';\n if (!relative.hostname) relative.hostname = '';\n if (relPath[0] !== '') relPath.unshift('');\n if (relPath.length < 2) relPath.unshift('');\n result.pathname = relPath.join('/');\n } else {\n result.pathname = relative.pathname;\n }\n result.search = relative.search;\n result.query = relative.query;\n result.host = relative.host || '';\n result.auth = relative.auth;\n result.hostname = relative.hostname || relative.host;\n result.port = relative.port;\n // to support http.request\n if (result.pathname || result.search) {\n var p = result.pathname || '';\n var s = result.search || '';\n result.path = p + s;\n }\n result.slashes = result.slashes || relative.slashes;\n result.href = result.format();\n return result;\n }\n\n var isSourceAbs = (result.pathname && result.pathname.charAt(0) === '/'),\n isRelAbs = (\n relative.host ||\n relative.pathname && relative.pathname.charAt(0) === '/'\n ),\n mustEndAbs = (isRelAbs || isSourceAbs ||\n (result.host && relative.pathname)),\n removeAllDots = mustEndAbs,\n srcPath = result.pathname && result.pathname.split('/') || [],\n relPath = relative.pathname && relative.pathname.split('/') || [],\n psychotic = result.protocol && !slashedProtocol[result.protocol];\n\n // if the url is a non-slashed url, then relative\n // links like ../.. should be able\n // to crawl up to the hostname, as well. This is strange.\n // result.protocol has already been set by now.\n // Later on, put the first path part into the host field.\n if (psychotic) {\n result.hostname = '';\n result.port = null;\n if (result.host) {\n if (srcPath[0] === '') srcPath[0] = result.host;\n else srcPath.unshift(result.host);\n }\n result.host = '';\n if (relative.protocol) {\n relative.hostname = null;\n relative.port = null;\n if (relative.host) {\n if (relPath[0] === '') relPath[0] = relative.host;\n else relPath.unshift(relative.host);\n }\n relative.host = null;\n }\n mustEndAbs = mustEndAbs && (relPath[0] === '' || srcPath[0] === '');\n }\n\n if (isRelAbs) {\n // it's absolute.\n result.host = (relative.host || relative.host === '') ?\n relative.host : result.host;\n result.hostname = (relative.hostname || relative.hostname === '') ?\n relative.hostname : result.hostname;\n result.search = relative.search;\n result.query = relative.query;\n srcPath = relPath;\n // fall through to the dot-handling below.\n } else if (relPath.length) {\n // it's relative\n // throw away the existing file, and take the new path instead.\n if (!srcPath) srcPath = [];\n srcPath.pop();\n srcPath = srcPath.concat(relPath);\n result.search = relative.search;\n result.query = relative.query;\n } else if (!util.isNullOrUndefined(relative.search)) {\n // just pull out the search.\n // like href='?foo'.\n // Put this after the other two cases because it simplifies the booleans\n if (psychotic) {\n result.hostname = result.host = srcPath.shift();\n //occationaly the auth can get stuck only in host\n //this especially happens in cases like\n //url.resolveObject('mailto:local1@domain1', 'local2@domain2')\n var authInHost = result.host && result.host.indexOf('@') > 0 ?\n result.host.split('@') : false;\n if (authInHost) {\n result.auth = authInHost.shift();\n result.host = result.hostname = authInHost.shift();\n }\n }\n result.search = relative.search;\n result.query = relative.query;\n //to support http.request\n if (!util.isNull(result.pathname) || !util.isNull(result.search)) {\n result.path = (result.pathname ? result.pathname : '') +\n (result.search ? result.search : '');\n }\n result.href = result.format();\n return result;\n }\n\n if (!srcPath.length) {\n // no path at all. easy.\n // we've already handled the other stuff above.\n result.pathname = null;\n //to support http.request\n if (result.search) {\n result.path = '/' + result.search;\n } else {\n result.path = null;\n }\n result.href = result.format();\n return result;\n }\n\n // if a url ENDs in . or .., then it must get a trailing slash.\n // however, if it ends in anything else non-slashy,\n // then it must NOT get a trailing slash.\n var last = srcPath.slice(-1)[0];\n var hasTrailingSlash = (\n (result.host || relative.host || srcPath.length > 1) &&\n (last === '.' || last === '..') || last === '');\n\n // strip single dots, resolve double dots to parent dir\n // if the path tries to go above the root, `up` ends up > 0\n var up = 0;\n for (var i = srcPath.length; i >= 0; i--) {\n last = srcPath[i];\n if (last === '.') {\n srcPath.splice(i, 1);\n } else if (last === '..') {\n srcPath.splice(i, 1);\n up++;\n } else if (up) {\n srcPath.splice(i, 1);\n up--;\n }\n }\n\n // if the path is allowed to go above the root, restore leading ..s\n if (!mustEndAbs && !removeAllDots) {\n for (; up--; up) {\n srcPath.unshift('..');\n }\n }\n\n if (mustEndAbs && srcPath[0] !== '' &&\n (!srcPath[0] || srcPath[0].charAt(0) !== '/')) {\n srcPath.unshift('');\n }\n\n if (hasTrailingSlash && (srcPath.join('/').substr(-1) !== '/')) {\n srcPath.push('');\n }\n\n var isAbsolute = srcPath[0] === '' ||\n (srcPath[0] && srcPath[0].charAt(0) === '/');\n\n // put the host back\n if (psychotic) {\n result.hostname = result.host = isAbsolute ? '' :\n srcPath.length ? srcPath.shift() : '';\n //occationaly the auth can get stuck only in host\n //this especially happens in cases like\n //url.resolveObject('mailto:local1@domain1', 'local2@domain2')\n var authInHost = result.host && result.host.indexOf('@') > 0 ?\n result.host.split('@') : false;\n if (authInHost) {\n result.auth = authInHost.shift();\n result.host = result.hostname = authInHost.shift();\n }\n }\n\n mustEndAbs = mustEndAbs || (result.host && srcPath.length);\n\n if (mustEndAbs && !isAbsolute) {\n srcPath.unshift('');\n }\n\n if (!srcPath.length) {\n result.pathname = null;\n result.path = null;\n } else {\n result.pathname = srcPath.join('/');\n }\n\n //to support request.http\n if (!util.isNull(result.pathname) || !util.isNull(result.search)) {\n result.path = (result.pathname ? result.pathname : '') +\n (result.search ? result.search : '');\n }\n result.auth = relative.auth || result.auth;\n result.slashes = result.slashes || relative.slashes;\n result.href = result.format();\n return result;\n};\n\nUrl.prototype.parseHost = function() {\n var host = this.host;\n var port = portPattern.exec(host);\n if (port) {\n port = port[0];\n if (port !== ':') {\n this.port = port.substr(1);\n }\n host = host.substr(0, host.length - port.length);\n }\n if (host) this.hostname = host;\n};\n","'use strict';\n\nmodule.exports = {\n isString: function(arg) {\n return typeof(arg) === 'string';\n },\n isObject: function(arg) {\n return typeof(arg) === 'object' && arg !== null;\n },\n isNull: function(arg) {\n return arg === null;\n },\n isNullOrUndefined: function(arg) {\n return arg == null;\n }\n};\n"],"names":["BUSINESS_UNIT_ID_REG","BusinessUnitIdParser","constructor","businessUnitId","brand","region","language","test","Error","split","slice","this","locale","toLocaleUpperCase","NumberFormatter","config","formatNumber","amount","options","decimals","rest","Intl","NumberFormat","maximumFractionDigits","format","PriceFormatter","formatPriceWithCurrency","price","style","currency","UrlFormatter","prefixHandler","prefix","replace","langPrefixUrl","url","langPrefix","ViewController","isLoading","setSSRState","data","dataState","setId","id","btoa","unescape","encodeURIComponent","observable","getDecorators","container","lazyInject","name","target","key","descriptor","resourceName","sbGetter","resource","get","propertyDescriptor","Object","defineProperty","styleToString","elementType","featureType","stylers","isFirst","stylesString","featureString","elementString","stylersString","entries","map","value","join","stylersToString","encodeURI","stylesToString","styles","index","MarkerColors","StaticMapWrapper","StaticMap","props","classNames","classnames","className","WrapperElement","apiKey","size","markers","zoom","alt","scale","StaticGoogleMap","marker","Marker","latitude","longitude","location","iconURL","icon","color","label","hasOwn","hasOwnProperty","classes","i","arguments","length","arg","argType","push","Array","isArray","inner","apply","toString","prototype","call","module","exports","default","__extend","extended","deep","merge","obj","prop","__doRequest","__request","debug","method","headers","asJson","onRequestError","callback","body","JSON","stringify","query","variables","console","groupCollapsed","toUpperCase","substr","log","groupEnd","__isTagCall","strings","raw","GraphQLClient","client","_lazy","_sender","m","bind","declare","run","fragments","_fragments","buildFragments","createSenderFunction","createHelpers","_transaction","XMLHttpRequest","contentType","accept","_onRequestError","xhr","open","setRequestHeader","onerror","status","onload","parse","responseText","e","send","http","https","uri","req","protocol","request","hostname","port","path","response","str","setEncoding","on","chunk","statusCode","err","write","end","root","FRAGMENT_SEPERATOR","AUTODECLARE_PATTERN","FRAGMENT_PATTERN","flatten","object","out","setUrl","getUrl","fragmentPath","Function","getter","collectFragments","that","fragmentRegexp","collectedFragments","match","forEach","fragment","_","$m","pathRegexp","RegExp","source","filter","alreadyCollected","unshift","self","indexOf","processQuery","concat","autoDeclare","typeMap","string","number","boolean","types","keyAndType","mapping","mappedType","type","cleanAutoDeclareAnnotations","newVariables","fragmentObject","buildQuery","parseType","trim","originalQuery","ql","caller","requestOptions","fragmentedQuery","Promise","resolve","reject","asJSON","errors","mergeName","mutation","resolver","commit","resolveMap","mergedVariables","mergedQueries","keys","subQuery","reqId","Math","random","matchingKey","variable","alias","all","then","responses","newResponses","mergeKey","parsedKey","fieldName","newResponse","catch","error","finally","sender","helper","__prefix","__suffix","suffix","result","alwaysAutodeclare","getOptions","newHeaders","_fragment","reduce","acc","seg","graphql","ReactPropTypesSecret","emptyFunction","emptyFunctionWithReset","resetWarningCache","shim","propName","componentName","propFullName","secret","getShim","isRequired","ReactPropTypes","array","bool","func","symbol","any","arrayOf","element","instanceOf","node","objectOf","oneOf","oneOfType","shape","exact","checkPropTypes","PropTypes","React","React__default","_createClass","defineProperties","enumerable","configurable","writable","Constructor","protoProps","staticProps","_classCallCheck","instance","TypeError","_possibleConstructorReturn","ReferenceError","_inherits","subClass","superClass","create","setPrototypeOf","__proto__","statusTypes","none","pending","rejected","resolved","Async","_React$Component","_this","getPrototypeOf","state","nP","promise","setState","handlePromise","prom","_this2","res","before","Component","propTypes","NODE_ENV","invariant_1","condition","a","b","c","d","f","undefined","args","argIndex","framesToPop","_typeof","Symbol","iterator","classCallCheck","createClass","_extends","assign","inherits","objectWithoutProperties","possibleConstructorReturn","toConsumableArray","arr","arr2","from","urlBuilder","property","separator","locationBuilder","urlParts","arrParts","val","lat","lng","isStatelessComponent","component","render","isClassComponent","Boolean","isReactComponent","renderStatelessComponent","renderClassComponent","markerStrategy","_ref","parentProps","defaultProps","anchor","x","pathStrategy","weight","fillcolor","geodesic","points","markerGroupStrategy","children","Children","child","pathGroupStrategy","nativeStrategy","origin","destination","travelMode","originLocation","destinationLocation","google","maps","LatLng","DirectionsService","route","DirectionsStatus","OK","routes","overview_polyline","fetchStrategy","baseURL","mode","cache","fetch","json","memoizeDirectionStrategy","directionStrategy","strat","onCacheUpdate","_ref2","requestStrategy","waypoints","avoid","transitMode","transitRoutingPreference","pathPromise","MapStrategy","rootURL","center","visible","channel","maptype","signature","groupPropTypes","MarkerGroup","Group","propTypes$1","groupPropTypes$1","defaultProps$1","Path","PathGroup","propsTypes","propTypes$2","defaultProps$2","Direction","_Component","_temp","_len","_key","MemoizedDirectionStrategy","isValidElement","componentType","buildParts","_props","onGenerate","as","componentProps","childrenUrlParts","mainUrlParts","some","part","childURL","createElement","src","parts","URL","factory","nodeType","freeGlobal","g","global","window","punycode","maxInt","base","regexPunycode","regexNonASCII","regexSeparators","floor","stringFromCharCode","String","fromCharCode","RangeError","fn","mapDomain","ucs2decode","extra","output","counter","charCodeAt","ucs2encode","digitToBasic","digit","flag","adapt","delta","numPoints","firstTime","k","baseMinusTMin","decode","input","basic","j","oldi","w","t","baseMinusT","codePoint","inputLength","n","bias","lastIndexOf","splice","encode","handledCPCount","basicLength","q","currentValue","handledCPCountPlusOne","qMinusT","toLowerCase","qs","sep","eq","regexp","maxKeys","len","kstr","vstr","v","idx","decodeURIComponent","stringifyPrimitive","isFinite","ks","util","Url","slashes","auth","host","hash","search","pathname","href","urlParse","relative","resolveObject","isString","protocolPattern","portPattern","simplePathPattern","unwise","autoEscape","nonHostChars","hostEndingChars","hostnamePartPattern","hostnamePartStart","unsafeProtocol","hostlessProtocol","slashedProtocol","querystring","parseQueryString","slashesDenoteHost","isObject","u","queryIndex","splitter","uSplit","simplePath","exec","proto","lowerProto","atSign","hostEnd","hec","parseHost","ipv6Hostname","hostparts","l","newpart","validParts","notHost","bit","toASCII","p","h","ae","esc","escape","qm","s","charAt","rel","tkeys","tk","tkey","rkeys","rk","rkey","relPath","shift","isSourceAbs","isRelAbs","mustEndAbs","removeAllDots","srcPath","psychotic","pop","isNullOrUndefined","authInHost","isNull","last","hasTrailingSlash","up","isAbsolute"],"sourceRoot":""}