{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///(webpack)/buildin/module.js","webpack:///./app/javascript/packs/shared/ads.js","webpack:///./node_modules/node-libs-browser/node_modules/punycode/punycode.js","webpack:///(webpack)/buildin/global.js","webpack:///./node_modules/url/util.js","webpack:///./node_modules/querystring-es3/index.js","webpack:///./node_modules/querystring-es3/decode.js","webpack:///./node_modules/querystring-es3/encode.js","webpack:///./app/javascript/packs/utils/constants.js","webpack:///./app/javascript/packs/utils/findAdsRoute.js","webpack:///./app/javascript/packs/utils/getCurrentRoute.js","webpack:///./app/javascript/packs/shared/adsYahoo.js","webpack:///./app/javascript/packs/utils/isSmartPhone.js","webpack:///(webpack)/buildin/amd-options.js","webpack:///./node_modules/url/url.js"],"names":["installedModules","__webpack_require__","moduleId","exports","module","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","webpackPolyfill","deprecate","paths","children","initAds","urlParams","Url","parse","window","location","href","query","ads","navigator","userAgent","toLowerCase","indexOf","document","querySelectorAll","forEach","mpRecommendsItem","style","display","adsItem","article_ad","querySelector","ad_unit","getAttribute","ad_option","adsRoute","findAdsRoute","getCurrentRoute","adsItems","console","log","Array","position","ADS_PROMOTION_UNIT_NAME","adsId","opt","id","sequenceAdsCall","defaultSize","isSmartphone","googletag","cmd","push","map","unit","destroySlots","defineSlot","size","addService","pubads","disableInitialLoad","enableSingleRequest","enableServices","slots","slotID","slotName","sizes","apstag","fetchBids","timeout","setDisplayBids","refresh","utm_source","adsYahoo","_typeof","iterator","obj","constructor","root","freeExports","nodeType","freeModule","freeGlobal","global","self","punycode","maxInt","regexPunycode","regexNonASCII","regexSeparators","errors","floor","Math","stringFromCharCode","String","fromCharCode","error","type","RangeError","array","fn","length","result","mapDomain","string","parts","split","replace","join","ucs2decode","extra","output","counter","charCodeAt","ucs2encode","digitToBasic","digit","flag","adapt","delta","numPoints","firstTime","k","baseMinusTMin","base","decode","input","out","basic","j","index","oldi","w","baseMinusT","codePoint","inputLength","bias","lastIndexOf","splice","encode","handledCPCount","basicLength","q","currentValue","handledCPCountPlusOne","qMinusT","test","slice","this","g","Function","e","isString","arg","isObject","isNull","isNullOrUndefined","stringify","prop","qs","sep","eq","options","regexp","maxKeys","len","kstr","vstr","v","x","idx","substr","decodeURIComponent","isArray","xs","toString","stringifyPrimitive","isFinite","undefined","objectKeys","ks","encodeURIComponent","f","res","keys","PAGINATOR_NUM_MAX","PAGINATOR_NUM_RANGE","ARTICLE_DATE_NEW_ICON","BREAK_POINT_PC","FETCH_NTH_TRY","FETCH_DERAY_TIME","constants","routeName","fixed","consult","aside01","aside02","aside03","screen01","screen02","screen03","getAdsRouteSP","getAdsRoutePC","getElementsByTagName","requestYads","yadsRequestAsync","yads_ad_ds","yads_parent_element","yads","createElement","src","async","addEventListener","onload","onreadystatechange","readyState","body","appendChild","getElementById","isSmartPhone","innerWidth","__webpack_amd_options__","util","protocol","slashes","auth","host","port","hostname","hash","search","pathname","path","urlParse","resolve","source","relative","resolveObject","format","protocolPattern","portPattern","simplePathPattern","unwise","concat","autoEscape","nonHostChars","hostEndingChars","hostnamePartPattern","hostnamePartStart","unsafeProtocol","hostlessProtocol","slashedProtocol","querystring","url","parseQueryString","slashesDenoteHost","u","TypeError","queryIndex","splitter","uSplit","rest","trim","simplePath","exec","proto","lowerProto","match","atSign","hostEnd","hec","parseHost","ipv6Hostname","hostparts","part","newpart","validParts","notHost","bit","unshift","toASCII","h","ae","esc","escape","qm","charAt","rel","tkeys","tk","tkey","rkeys","rk","rkey","relPath","shift","isSourceAbs","isRelAbs","mustEndAbs","removeAllDots","srcPath","psychotic","pop","authInHost","last","hasTrailingSlash","up","isAbsolute"],"mappings":";aACE,IAAIA,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUC,QAGnC,IAAIC,EAASJ,EAAiBE,GAA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,EAAO8H,SAAW9H,EAAO4H,KAAOiF,EAAa,GAAKP,EAAQvM,OAASuM,EAAQL,QAAU,IAIjFQ,KAAazM,EAAO4H,MAAQ5H,EAAO4H,KAAK5M,QAAQ,KAAO,IAAIgF,EAAO4H,KAAKxH,MAAM,QAG/EJ,EAAO2H,KAAO8E,EAAWR,QACzBjM,EAAO4H,KAAO5H,EAAO8H,SAAW2E,EAAWR,UAyB/C,OArBAG,EAAaA,GAAcpM,EAAO4H,MAAQ0E,EAAQvM,UAE/B8M,GACjBP,EAAQrB,QAAQ,IAGbqB,EAAQvM,OAIXC,EAAOiI,SAAWqE,EAAQhM,KAAK,MAH/BN,EAAOiI,SAAW,KAClBjI,EAAOkI,KAAO,MAMXV,EAAKnE,OAAOrD,EAAOiI,WAAcT,EAAKnE,OAAOrD,EAAOgI,UACvDhI,EAAOkI,MAAQlI,EAAOiI,SAAWjI,EAAOiI,SAAW,KAAOjI,EAAOgI,OAAShI,EAAOgI,OAAS,KAG5FhI,EAAO2H,KAAOW,EAASX,MAAQ3H,EAAO2H,KACtC3H,EAAO0H,QAAU1H,EAAO0H,SAAWY,EAASZ,QAC5C1H,EAAOtF,KAAOsF,EAAOwI,SACdxI,GAGT1F,EAAIV,UAAU6Q,UAAY,WACxB,IAAI7C,EAAO9E,KAAK8E,KACZC,EAAOa,EAAYwB,KAAKtC,GAExBC,IAGW,OAFbA,EAAOA,EAAK,MAGV/E,KAAK+E,KAAOA,EAAKxD,OAAO,IAG1BuD,EAAOA,EAAKvD,OAAO,EAAGuD,EAAK7H,OAAS8H,EAAK9H,SAGvC6H,IAAM9E,KAAKgF,SAAWF","file":"js/shared/ads-d9b9b5eabc2f9f84045a.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/packs/\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 148);\n","module.exports = function (module) {\n if (!module.webpackPolyfill) {\n module.deprecate = function () {};\n\n module.paths = []; // module.parent = undefined by default\n\n if (!module.children) module.children = [];\n Object.defineProperty(module, \"loaded\", {\n enumerable: true,\n get: function get() {\n return module.l;\n }\n });\n Object.defineProperty(module, \"id\", {\n enumerable: true,\n get: function get() {\n return module.i;\n }\n });\n module.webpackPolyfill = 1;\n }\n\n return module;\n};","import findAdsRoute from \"../utils/findAdsRoute\";\nimport isSmartphone from \"../utils/isSmartPhone\";\nimport getCurrentRoute from \"../utils/getCurrentRoute\";\nimport { ADS_PROMOTION_UNIT_NAME } from \"../utils/constants\";\nimport adsYahoo from \"./adsYahoo\";\nimport Url from \"url\";\n\nexport default function initAds() {\n const urlParams = Url.parse(window.location.href, true).query;\n if (urlParams.ads === \"kill\"\n || navigator.userAgent.toLowerCase().indexOf('googlebot') > -1\n || navigator.userAgent.toLowerCase().indexOf('lighthouse') > -1) {\n const mpRecommends = document.querySelectorAll('.mp-recommends');\n mpRecommends.forEach(mpRecommendsItem => {\n mpRecommendsItem.style.display = 'none';\n })\n const adsList = document.querySelectorAll('.ads-img-screen');\n adsList.forEach(adsItem => {\n adsItem.style.display = 'none';\n })\n return;\n }\n\n const article_ad = document.querySelector('article.article');\n const ad_unit = article_ad ? article_ad.getAttribute(\"data-ad-unit\") : null;\n const ad_option = article_ad ? article_ad.getAttribute(\"data-ad-option\") : null;\n const adsRoute = findAdsRoute(getCurrentRoute());\n var adsItems = document.querySelectorAll(\"[data-ads]\");\n\n console.log(`position:${ad_unit}`);\n console.log(`opt:${ad_option}`);\n\n Array.prototype.forEach.call(adsItems, function (ads) {\n var position = ads.getAttribute(\"data-ads-position\");\n\n if (position === ADS_PROMOTION_UNIT_NAME && ad_option) {\n var adsId = ad_option;\n } else {\n var adsId = adsRoute[position].opt;\n }\n\n ads.querySelectorAll(\"[data-ads-id]\")[0].id = adsId;\n });\n\n var sequenceAdsCall = [\n \"fixed\",\n \"screen01\",\n \"screen02\",\n \"screen03\",\n \"aside01\",\n \"aside02\",\n \"aside03\",\n \"consult\",\n ];\n\n var defaultSizePc = [\n [300, 250],\n [336, 280],\n ];\n\n var defaultSizeSp = [\n [300, 250],\n [320, 50],\n [336, 280],\n [728, 90],\n [468, 60],\n ];\n\n var defaultSize = isSmartphone() ? defaultSizeSp : defaultSizePc;\n\n window.googletag.cmd.push(() => {\n sequenceAdsCall.map((s) => {\n if (!adsRoute[s]) return false;\n const r = adsRoute[s];\n var unit = (s === ADS_PROMOTION_UNIT_NAME && ad_unit) ? ad_unit : r.unit;\n var opt = (s === ADS_PROMOTION_UNIT_NAME && ad_option) ? ad_option : r.opt;\n if (window.googletag[`__mpt_${s}`]) {\n window.googletag.destroySlots([window.googletag[`__mpt_${s}`]]);\n }\n if (r.unit && r.opt) {\n window.googletag[`__mpt_${s}`] = window.googletag.defineSlot(unit, (r.size || defaultSize), opt);\n window.googletag[`__mpt_${s}`].addService(window.googletag.pubads());\n }\n return false;\n });\n window.googletag.pubads().disableInitialLoad();\n window.googletag.pubads().enableSingleRequest();\n window.googletag.enableServices();\n });\n\n const slots = [];\n sequenceAdsCall.map((s) => {\n if (!adsRoute[s]) return false;\n const r = adsRoute[s];\n var unit = (s === ADS_PROMOTION_UNIT_NAME && ad_unit) ? ad_unit : r.unit;\n var opt = (s === ADS_PROMOTION_UNIT_NAME && ad_option) ? ad_option : r.opt;\n if (!r.size) {\n slots.push({\n slotID: opt,\n slotName: unit,\n sizes: (r.size || defaultSize),\n });\n }\n return false;\n });\n\n window.apstag.fetchBids({\n slots,\n timeout: 2e3,\n }, () => {\n window.googletag.cmd.push(() => {\n window.apstag.setDisplayBids();\n window.googletag.pubads().refresh();\n });\n });\n\n sequenceAdsCall.map((s) => {\n if (!adsRoute[s]) return false;\n const r = adsRoute[s];\n window.googletag.cmd.push(() => window.googletag.display(r.opt));\n return false;\n });\n\n if (urlParams.utm_source === \"yahoo\") {\n adsYahoo();\n }\n}\n\ninitAds();\n","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\n/*! https://mths.be/punycode v1.4.1 by @mathias */\n;\n\n(function (root) {\n /** Detect free variables */\n var freeExports = (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) == 'object' && exports && !exports.nodeType && exports;\n var freeModule = (typeof module === \"undefined\" ? \"undefined\" : _typeof(module)) == 'object' && module && !module.nodeType && module;\n var freeGlobal = (typeof global === \"undefined\" ? \"undefined\" : _typeof(global)) == 'object' && global;\n\n if (freeGlobal.global === freeGlobal || freeGlobal.window === freeGlobal || freeGlobal.self === freeGlobal) {\n root = freeGlobal;\n }\n /**\n * The `punycode` object.\n * @name punycode\n * @type Object\n */\n\n\n var punycode,\n\n /** Highest positive signed 32-bit float value */\n maxInt = 2147483647,\n // aka. 0x7FFFFFFF or 2^31-1\n\n /** Bootstring parameters */\n base = 36,\n tMin = 1,\n tMax = 26,\n skew = 38,\n damp = 700,\n initialBias = 72,\n initialN = 128,\n // 0x80\n delimiter = '-',\n // '\\x2D'\n\n /** Regular expressions */\n regexPunycode = /^xn--/,\n regexNonASCII = /[^\\x20-\\x7E]/,\n // unprintable ASCII chars + non-ASCII chars\n regexSeparators = /[\\x2E\\u3002\\uFF0E\\uFF61]/g,\n // RFC 3490 separators\n\n /** Error messages */\n errors = {\n 'overflow': 'Overflow: input needs wider integers to process',\n 'not-basic': 'Illegal input >= 0x80 (not a basic code point)',\n 'invalid-input': 'Invalid input'\n },\n\n /** Convenience shortcuts */\n baseMinusTMin = base - tMin,\n floor = Math.floor,\n stringFromCharCode = String.fromCharCode,\n\n /** Temporary variable */\n key;\n /*--------------------------------------------------------------------------*/\n\n /**\n * A generic error utility function.\n * @private\n * @param {String} type The error type.\n * @returns {Error} Throws a `RangeError` with the applicable error message.\n */\n\n function error(type) {\n throw new RangeError(errors[type]);\n }\n /**\n * A generic `Array#map` utility function.\n * @private\n * @param {Array} array The array to iterate over.\n * @param {Function} callback The function that gets called for every array\n * item.\n * @returns {Array} A new array of values returned by the callback function.\n */\n\n\n function map(array, fn) {\n var length = array.length;\n var result = [];\n\n while (length--) {\n result[length] = fn(array[length]);\n }\n\n return result;\n }\n /**\n * A simple `Array#map`-like wrapper to work with domain name strings or email\n * addresses.\n * @private\n * @param {String} domain The domain name or email address.\n * @param {Function} callback The function that gets called for every\n * character.\n * @returns {Array} A new string of characters returned by the callback\n * function.\n */\n\n\n function mapDomain(string, fn) {\n var parts = string.split('@');\n var result = '';\n\n if (parts.length > 1) {\n // In email addresses, only the domain name should be punycoded. Leave\n // the local part (i.e. everything up to `@`) intact.\n result = parts[0] + '@';\n string = parts[1];\n } // Avoid `split(regex)` for IE8 compatibility. See #17.\n\n\n string = string.replace(regexSeparators, '\\x2E');\n var labels = string.split('.');\n var encoded = map(labels, fn).join('.');\n return result + encoded;\n }\n /**\n * Creates an array containing the numeric code points of each Unicode\n * character in the string. While JavaScript uses UCS-2 internally,\n * this function will convert a pair of surrogate halves (each of which\n * UCS-2 exposes as separate characters) into a single code point,\n * matching UTF-16.\n * @see `punycode.ucs2.encode`\n * @see \n * @memberOf punycode.ucs2\n * @name decode\n * @param {String} string The Unicode input string (UCS-2).\n * @returns {Array} The new array of code points.\n */\n\n\n function ucs2decode(string) {\n var output = [],\n counter = 0,\n length = string.length,\n value,\n extra;\n\n while (counter < length) {\n value = string.charCodeAt(counter++);\n\n if (value >= 0xD800 && value <= 0xDBFF && counter < length) {\n // high surrogate, and there is a next character\n extra = string.charCodeAt(counter++);\n\n if ((extra & 0xFC00) == 0xDC00) {\n // low surrogate\n output.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000);\n } else {\n // unmatched surrogate; only append this code unit, in case the next\n // code unit is the high surrogate of a surrogate pair\n output.push(value);\n counter--;\n }\n } else {\n output.push(value);\n }\n }\n\n return output;\n }\n /**\n * Creates a string based on an array of numeric code points.\n * @see `punycode.ucs2.decode`\n * @memberOf punycode.ucs2\n * @name encode\n * @param {Array} codePoints The array of numeric code points.\n * @returns {String} The new Unicode string (UCS-2).\n */\n\n\n function ucs2encode(array) {\n return map(array, function (value) {\n var output = '';\n\n if (value > 0xFFFF) {\n value -= 0x10000;\n output += stringFromCharCode(value >>> 10 & 0x3FF | 0xD800);\n value = 0xDC00 | value & 0x3FF;\n }\n\n output += stringFromCharCode(value);\n return output;\n }).join('');\n }\n /**\n * Converts a basic code point into a digit/integer.\n * @see `digitToBasic()`\n * @private\n * @param {Number} codePoint The basic numeric code point value.\n * @returns {Number} The numeric value of a basic code point (for use in\n * representing integers) in the range `0` to `base - 1`, or `base` if\n * the code point does not represent a value.\n */\n\n\n function basicToDigit(codePoint) {\n if (codePoint - 48 < 10) {\n return codePoint - 22;\n }\n\n if (codePoint - 65 < 26) {\n return codePoint - 65;\n }\n\n if (codePoint - 97 < 26) {\n return codePoint - 97;\n }\n\n return base;\n }\n /**\n * Converts a digit/integer into a basic code point.\n * @see `basicToDigit()`\n * @private\n * @param {Number} digit The numeric value of a basic code point.\n * @returns {Number} The basic code point whose value (when used for\n * representing integers) is `digit`, which needs to be in the range\n * `0` to `base - 1`. If `flag` is non-zero, the uppercase form is\n * used; else, the lowercase form is used. The behavior is undefined\n * if `flag` is non-zero and `digit` has no uppercase form.\n */\n\n\n function digitToBasic(digit, flag) {\n // 0..25 map to ASCII a..z or A..Z\n // 26..35 map to ASCII 0..9\n return digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5);\n }\n /**\n * Bias adaptation function as per section 3.4 of RFC 3492.\n * https://tools.ietf.org/html/rfc3492#section-3.4\n * @private\n */\n\n\n function adapt(delta, numPoints, firstTime) {\n var k = 0;\n delta = firstTime ? floor(delta / damp) : delta >> 1;\n delta += floor(delta / numPoints);\n\n for (; delta > baseMinusTMin * tMax >> 1; k += base) {\n delta = floor(delta / baseMinusTMin);\n }\n\n return floor(k + (baseMinusTMin + 1) * delta / (delta + skew));\n }\n /**\n * Converts a Punycode string of ASCII-only symbols to a string of Unicode\n * symbols.\n * @memberOf punycode\n * @param {String} input The Punycode string of ASCII-only symbols.\n * @returns {String} The resulting string of Unicode symbols.\n */\n\n\n function decode(input) {\n // Don't use UCS-2\n var output = [],\n inputLength = input.length,\n out,\n i = 0,\n n = initialN,\n bias = initialBias,\n basic,\n j,\n index,\n oldi,\n w,\n k,\n digit,\n t,\n\n /** Cached calculation results */\n baseMinusT; // Handle the basic code points: let `basic` be the number of input code\n // points before the last delimiter, or `0` if there is none, then copy\n // the first basic code points to the output.\n\n basic = input.lastIndexOf(delimiter);\n\n if (basic < 0) {\n basic = 0;\n }\n\n for (j = 0; j < basic; ++j) {\n // if it's not a basic code point\n if (input.charCodeAt(j) >= 0x80) {\n error('not-basic');\n }\n\n output.push(input.charCodeAt(j));\n } // Main decoding loop: start just after the last delimiter if any basic code\n // points were copied; start at the beginning otherwise.\n\n\n for (index = basic > 0 ? basic + 1 : 0; index < inputLength;) {\n // `index` is the index of the next character to be consumed.\n // Decode a generalized variable-length integer into `delta`,\n // which gets added to `i`. The overflow checking is easier\n // if we increase `i` as we go, then subtract off its starting\n // value at the end to obtain `delta`.\n for (oldi = i, w = 1, k = base;; k += base) {\n if (index >= inputLength) {\n error('invalid-input');\n }\n\n digit = basicToDigit(input.charCodeAt(index++));\n\n if (digit >= base || digit > floor((maxInt - i) / w)) {\n error('overflow');\n }\n\n i += digit * w;\n t = k <= bias ? tMin : k >= bias + tMax ? tMax : k - bias;\n\n if (digit < t) {\n break;\n }\n\n baseMinusT = base - t;\n\n if (w > floor(maxInt / baseMinusT)) {\n error('overflow');\n }\n\n w *= baseMinusT;\n }\n\n out = output.length + 1;\n bias = adapt(i - oldi, out, oldi == 0); // `i` was supposed to wrap around from `out` to `0`,\n // incrementing `n` each time, so we'll fix that now:\n\n if (floor(i / out) > maxInt - n) {\n error('overflow');\n }\n\n n += floor(i / out);\n i %= out; // Insert `n` at position `i` of the output\n\n output.splice(i++, 0, n);\n }\n\n return ucs2encode(output);\n }\n /**\n * Converts a string of Unicode symbols (e.g. a domain name label) to a\n * Punycode string of ASCII-only symbols.\n * @memberOf punycode\n * @param {String} input The string of Unicode symbols.\n * @returns {String} The resulting Punycode string of ASCII-only symbols.\n */\n\n\n function encode(input) {\n var n,\n delta,\n handledCPCount,\n basicLength,\n bias,\n j,\n m,\n q,\n k,\n t,\n currentValue,\n output = [],\n\n /** `inputLength` will hold the number of code points in `input`. */\n inputLength,\n\n /** Cached calculation results */\n handledCPCountPlusOne,\n baseMinusT,\n qMinusT; // Convert the input in UCS-2 to Unicode\n\n input = ucs2decode(input); // Cache the length\n\n inputLength = input.length; // Initialize the state\n\n n = initialN;\n delta = 0;\n bias = initialBias; // Handle the basic code points\n\n for (j = 0; j < inputLength; ++j) {\n currentValue = input[j];\n\n if (currentValue < 0x80) {\n output.push(stringFromCharCode(currentValue));\n }\n }\n\n handledCPCount = basicLength = output.length; // `handledCPCount` is the number of code points that have been handled;\n // `basicLength` is the number of basic code points.\n // Finish the basic string - if it is not empty - with a delimiter\n\n if (basicLength) {\n output.push(delimiter);\n } // Main encoding loop:\n\n\n while (handledCPCount < inputLength) {\n // All non-basic code points < n have been handled already. Find the next\n // larger one:\n for (m = maxInt, j = 0; j < inputLength; ++j) {\n currentValue = input[j];\n\n if (currentValue >= n && currentValue < m) {\n m = currentValue;\n }\n } // Increase `delta` enough to advance the decoder's state to ,\n // but guard against overflow\n\n\n handledCPCountPlusOne = handledCPCount + 1;\n\n if (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) {\n error('overflow');\n }\n\n delta += (m - n) * handledCPCountPlusOne;\n n = m;\n\n for (j = 0; j < inputLength; ++j) {\n currentValue = input[j];\n\n if (currentValue < n && ++delta > maxInt) {\n error('overflow');\n }\n\n if (currentValue == n) {\n // Represent delta as a generalized variable-length integer\n for (q = delta, k = base;; k += base) {\n t = k <= bias ? tMin : k >= bias + tMax ? tMax : k - bias;\n\n if (q < t) {\n break;\n }\n\n qMinusT = q - t;\n baseMinusT = base - t;\n output.push(stringFromCharCode(digitToBasic(t + qMinusT % baseMinusT, 0)));\n q = floor(qMinusT / baseMinusT);\n }\n\n output.push(stringFromCharCode(digitToBasic(q, 0)));\n bias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength);\n delta = 0;\n ++handledCPCount;\n }\n }\n\n ++delta;\n ++n;\n }\n\n return output.join('');\n }\n /**\n * Converts a Punycode string representing a domain name or an email address\n * to Unicode. Only the Punycoded parts of the input will be converted, i.e.\n * it doesn't matter if you call it on a string that has already been\n * converted to Unicode.\n * @memberOf punycode\n * @param {String} input The Punycoded domain name or email address to\n * convert to Unicode.\n * @returns {String} The Unicode representation of the given Punycode\n * string.\n */\n\n\n function toUnicode(input) {\n return mapDomain(input, function (string) {\n return regexPunycode.test(string) ? decode(string.slice(4).toLowerCase()) : string;\n });\n }\n /**\n * Converts a Unicode string representing a domain name or an email address to\n * Punycode. Only the non-ASCII parts of the domain name will be converted,\n * i.e. it doesn't matter if you call it with a domain that's already in\n * ASCII.\n * @memberOf punycode\n * @param {String} input The domain name or email address to convert, as a\n * Unicode string.\n * @returns {String} The Punycode representation of the given domain name or\n * email address.\n */\n\n\n function toASCII(input) {\n return mapDomain(input, function (string) {\n return regexNonASCII.test(string) ? 'xn--' + encode(string) : string;\n });\n }\n /*--------------------------------------------------------------------------*/\n\n /** Define the public API */\n\n\n punycode = {\n /**\n * A string representing the current Punycode.js version number.\n * @memberOf punycode\n * @type String\n */\n 'version': '1.4.1',\n\n /**\n * An object of methods to convert from JavaScript's internal character\n * representation (UCS-2) to Unicode code points, and back.\n * @see \n * @memberOf punycode\n * @type Object\n */\n 'ucs2': {\n 'decode': ucs2decode,\n 'encode': ucs2encode\n },\n 'decode': decode,\n 'encode': encode,\n 'toASCII': toASCII,\n 'toUnicode': toUnicode\n };\n /** Expose `punycode` */\n // Some AMD build optimizers, like r.js, check for specific condition patterns\n // like the following:\n\n if (typeof define == 'function' && _typeof(define.amd) == 'object' && define.amd) {\n define('punycode', function () {\n return punycode;\n });\n } else if (freeExports && freeModule) {\n if (module.exports == freeExports) {\n // in Node.js, io.js, or RingoJS v0.8.0+\n freeModule.exports = punycode;\n } else {\n // in Narwhal or RingoJS v0.7.0-\n for (key in punycode) {\n punycode.hasOwnProperty(key) && (freeExports[key] = punycode[key]);\n }\n }\n } else {\n // in Rhino or a web browser\n root.punycode = punycode;\n }\n})(this);","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\nvar g; // This works in non-strict mode\n\ng = function () {\n return this;\n}();\n\ntry {\n // This works if eval is allowed (see CSP)\n g = g || new Function(\"return this\")();\n} catch (e) {\n // This works if the window reference is available\n if ((typeof window === \"undefined\" ? \"undefined\" : _typeof(window)) === \"object\") g = window;\n} // g can still be undefined, but nothing to do about it...\n// We return undefined, instead of nothing here, so it's\n// easier to handle this case. if(!global) { ...}\n\n\nmodule.exports = g;","'use strict';\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\nmodule.exports = {\n isString: function isString(arg) {\n return typeof arg === 'string';\n },\n isObject: function isObject(arg) {\n return _typeof(arg) === 'object' && arg !== null;\n },\n isNull: function isNull(arg) {\n return arg === null;\n },\n isNullOrUndefined: function isNullOrUndefined(arg) {\n return arg == null;\n }\n};","'use strict';\n\nexports.decode = exports.parse = require('./decode');\nexports.encode = exports.stringify = require('./encode');","// 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'use strict'; // If obj.hasOwnProperty has been overridden, then calling\n// obj.hasOwnProperty(prop) will break.\n// See: https://github.com/joyent/node/issues/1707\n\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 var maxKeys = 1000;\n\n if (options && typeof options.maxKeys === 'number') {\n maxKeys = options.maxKeys;\n }\n\n var len = qs.length; // maxKeys <= 0 means that we should not limit keys count\n\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,\n vstr,\n k,\n 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 (isArray(obj[k])) {\n obj[k].push(v);\n } else {\n obj[k] = [obj[k], v];\n }\n }\n\n return obj;\n};\n\nvar isArray = Array.isArray || function (xs) {\n return Object.prototype.toString.call(xs) === '[object Array]';\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'use strict';\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\nvar stringifyPrimitive = function stringifyPrimitive(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\n if (obj === null) {\n obj = undefined;\n }\n\n if (_typeof(obj) === 'object') {\n return map(objectKeys(obj), function (k) {\n var ks = encodeURIComponent(stringifyPrimitive(k)) + eq;\n\n if (isArray(obj[k])) {\n return map(obj[k], 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 if (!name) return '';\n return encodeURIComponent(stringifyPrimitive(name)) + eq + encodeURIComponent(stringifyPrimitive(obj));\n};\n\nvar isArray = Array.isArray || function (xs) {\n return Object.prototype.toString.call(xs) === '[object Array]';\n};\n\nfunction map(xs, f) {\n if (xs.map) return xs.map(f);\n var res = [];\n\n for (var i = 0; i < xs.length; i++) {\n res.push(f(xs[i], i));\n }\n\n return res;\n}\n\nvar objectKeys = Object.keys || function (obj) {\n var res = [];\n\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) res.push(key);\n }\n\n return res;\n};","export const PAGINATOR_NUM_MAX = 5; // 表示最大数\nexport const PAGINATOR_NUM_RANGE = 2; // 表示幅\nexport const ARTICLE_DATE_NEW_ICON = 7; // NEWアイコンを表示する日数\nexport const BREAK_POINT_PC = 960; // PC, Tablet間のブレイクポイント\nexport const ADS_PROMOTION_UNIT_NAME = 'aside01'; // 記事広告に使用する広告枠の名前\nexport const FETCH_NTH_TRY = 5; // fetchの繰り返し処理時の試行回数。\nexport const FETCH_DERAY_TIME = 2000; // fetchの繰り返し処理時の試行間隔ms。\n\nconst constants = {\n PAGINATOR_NUM_MAX,\n PAGINATOR_NUM_RANGE,\n ARTICLE_DATE_NEW_ICON,\n BREAK_POINT_PC,\n ADS_PROMOTION_UNIT_NAME,\n FETCH_NTH_TRY,\n FETCH_DERAY_TIME,\n};\n\nexport default constants;\n","import isSmartphone from './isSmartPhone';\n\nfunction getAdsRoutePC(routeName) {\n const adsRoute = {\n fixed: { unit: '/76346382/header_pc_ad_00', opt: 'div-gpt-ad-1585893993855-0', size: [728, 90] },\n consult: { unit: '/76346382/single_sp_house_02', opt: 'div-gpt-ad-1552967771239-0', size: [320, 100] },\n };\n\n switch (routeName) {\n case 'ArticlesHome':\n adsRoute.fixed = { unit: '', opt: '' };\n adsRoute.aside01 = { unit: '/76346382/home_pc_ad_01', opt: 'div-gpt-ad-1474440125884-0' };\n adsRoute.aside02 = { unit: '/76346382/home_pc_ad_02', opt: 'div-gpt-ad-1474449675219-0' };\n adsRoute.aside03 = { unit: '/76346382/home_pc_ad_03', opt: 'div-gpt-ad-1474450059683-0' };\n break;\n case 'SeriesIndex':\n adsRoute.aside01 = { unit: '/76346382/special_pc_ad_01', opt: 'div-gpt-ad-1516355569517-0' };\n adsRoute.aside02 = { unit: '/76346382/special_pc_ad_02', opt: 'div-gpt-ad-1474452104898-0' };\n adsRoute.aside03 = { unit: '/76346382/special_pc_ad_03', opt: 'div-gpt-ad-1474452302663-0' };\n break;\n case 'SeriesShow':\n adsRoute.aside01 = { unit: '/76346382/special_pc_ad_01', opt: 'div-gpt-ad-1516355569517-0' };\n adsRoute.aside02 = { unit: '/76346382/special_pc_ad_02', opt: 'div-gpt-ad-1474452104898-0' };\n adsRoute.aside03 = { unit: '/76346382/special_pc_ad_03', opt: 'div-gpt-ad-1474452302663-0' };\n break;\n case 'AuthorsIndex':\n adsRoute.aside01 = { unit: '/76346382/author_pc_ad_01', opt: 'div-gpt-ad-1474458417594-0' };\n adsRoute.aside02 = { unit: '/76346382/author_pc_ad_02', opt: 'div-gpt-ad-1474458578809-0' };\n adsRoute.aside03 = { unit: '/76346382/author_pc_ad_03', opt: 'div-gpt-ad-1474458623319-0' };\n break;\n case 'AuthorsShow':\n adsRoute.aside01 = { unit: '/76346382/author_pc_ad_01', opt: 'div-gpt-ad-1474458417594-0' };\n adsRoute.aside02 = { unit: '/76346382/author_pc_ad_02', opt: 'div-gpt-ad-1474458578809-0' };\n adsRoute.aside03 = { unit: '/76346382/author_pc_ad_03', opt: 'div-gpt-ad-1474458623319-0' };\n break;\n case 'PhotographersIndex':\n adsRoute.aside01 = { unit: '/76346382/author_pc_ad_01', opt: 'div-gpt-ad-1474458417594-0' };\n adsRoute.aside02 = { unit: '/76346382/author_pc_ad_02', opt: 'div-gpt-ad-1474458578809-0' };\n adsRoute.aside03 = { unit: '/76346382/author_pc_ad_03', opt: 'div-gpt-ad-1474458623319-0' };\n break;\n case 'ArticlesIndex':\n adsRoute.aside01 = { unit: '/76346382/newpost_pc_ad_01', opt: 'div-gpt-ad-1474451168127-0' };\n adsRoute.aside02 = { unit: '/76346382/newpost_pc_ad_02', opt: 'div-gpt-ad-1474451244650-0' };\n adsRoute.aside03 = { unit: '/76346382/newpost_pc_ad_03', opt: 'div-gpt-ad-1474451350038-0' };\n break;\n case 'ArticlesShow':\n adsRoute.aside01 = { unit: '/76346382/single_pc_ad_01', opt: 'div-gpt-ad-1506160475625-0' };\n adsRoute.aside02 = { unit: '/76346382/single_pc_ad_02', opt: 'div-gpt-ad-1474452471535-0' };\n adsRoute.aside03 = { unit: '/76346382/single_pc_ad_03', opt: 'div-gpt-ad-1474452538346-0' };\n adsRoute.screen01 = { unit: '/76346382/single_pc_ad_00', opt: 'div-gpt-ad-1548925854010-0' };\n adsRoute.screen02 = { unit: '/76346382/single_pc_ad_05', opt: 'div-gpt-ad-1582883375589-0', size: [468, 60] };\n adsRoute.screen03 = { unit: '/76346382/single_pc_house_01', opt: 'div-gpt-ad-1548038003611-0', size: [320, 100] };\n break;\n case 'ArticlesPreview':\n adsRoute.aside01 = { unit: '/76346382/single_pc_ad_01', opt: 'div-gpt-ad-1506160475625-0' };\n adsRoute.aside02 = { unit: '/76346382/single_pc_ad_02', opt: 'div-gpt-ad-1474452471535-0' };\n adsRoute.aside03 = { unit: '/76346382/single_pc_ad_03', opt: 'div-gpt-ad-1474452538346-0' };\n adsRoute.screen01 = { unit: '/76346382/single_pc_ad_00', opt: 'div-gpt-ad-1548925854010-0' };\n adsRoute.screen02 = { unit: '/76346382/single_pc_ad_05', opt: 'div-gpt-ad-1582883375589-0', size: [468, 60] };\n adsRoute.screen03 = { unit: '/76346382/single_pc_house_01', opt: 'div-gpt-ad-1548038003611-0', size: [320, 100] };\n break;\n case 'ArticlesSummary':\n adsRoute.aside01 = { unit: '/76346382/summary_pc_ad_01', opt: 'div-gpt-ad-1577256419874-0' };\n adsRoute.aside02 = { unit: '/76346382/summary_pc_ad_02', opt: 'div-gpt-ad-1577256690108-0' };\n adsRoute.aside03 = { unit: '/76346382/summary_pc_ad_03', opt: 'div-gpt-ad-1577256776111-0' };\n adsRoute.screen01 = { unit: '/76346382/summary_pc_ad_00', opt: 'div-gpt-ad-1577256322355-0' };\n break;\n case 'ArticlesPromoted':\n adsRoute.aside01 = { unit: '/76346382/pr_pc_ad_01', opt: 'div-gpt-ad-1474451463211-0' };\n adsRoute.aside02 = { unit: '/76346382/pr_pc_ad_02', opt: 'div-gpt-ad-1474451539617-0' };\n adsRoute.aside03 = { unit: '/76346382/pr_pc_ad_03', opt: 'div-gpt-ad-1474451618303-0' };\n break;\n case 'GalleriesIndex':\n adsRoute.aside01 = { unit: '/76346382/galleries_pc_ad_01', opt: 'div-gpt-ad-1577255095655-0' };\n adsRoute.aside02 = { unit: '/76346382/galleries_pc_ad_02', opt: 'div-gpt-ad-1577255404097-0' };\n adsRoute.aside03 = { unit: '/76346382/galleries_pc_ad_03', opt: 'div-gpt-ad-1577255528575-0' };\n break;\n case 'GalleriesShow':\n adsRoute.aside01 = { unit: '/76346382/galleries_pc_ad_01', opt: 'div-gpt-ad-1577255095655-0' };\n adsRoute.aside02 = { unit: '/76346382/galleries_pc_ad_02', opt: 'div-gpt-ad-1577255404097-0' };\n adsRoute.aside03 = { unit: '/76346382/galleries_pc_ad_03', opt: 'div-gpt-ad-1577255528575-0' };\n adsRoute.screen01 = { unit: '', opt: '' };\n break;\n case 'CategoriesShow':\n adsRoute.aside01 = { unit: '/76346382/category_pc_ad_01', opt: 'div-gpt-ad-1474450137233-0' };\n adsRoute.aside02 = { unit: '/76346382/category_pc_ad_02', opt: 'div-gpt-ad-1474450206825-0' };\n adsRoute.aside03 = { unit: '/76346382/category_pc_ad_03', opt: 'div-gpt-ad-1474450501561-0' };\n break;\n default:\n adsRoute.aside01 = { unit: '/76346382/single_pc_ad_01', opt: 'div-gpt-ad-1506160475625-0' };\n adsRoute.aside02 = { unit: '/76346382/single_pc_ad_02', opt: 'div-gpt-ad-1474452471535-0' };\n adsRoute.aside03 = { unit: '/76346382/single_pc_ad_03', opt: 'div-gpt-ad-1474452538346-0' };\n adsRoute.screen01 = { unit: '/76346382/single_pc_ad_00', opt: 'div-gpt-ad-1548925854010-0' };\n adsRoute.screen02 = { unit: '/76346382/single_pc_ad_05', opt: 'div-gpt-ad-1582883375589-0', size: [468, 60] };\n adsRoute.screen03 = { unit: '/76346382/single_pc_house_01', opt: 'div-gpt-ad-1548038003611-0', size: [320, 100] };\n }\n return adsRoute;\n}\n\nfunction getAdsRouteSP(routeName) {\n const adsRoute = {\n fixed: { unit: '/76346382/footer_sp_ad_00', opt: 'div-gpt-ad-1583996390256-0', size: [320, 50] },\n consult: { unit: '/76346382/single_sp_house_02', opt: 'div-gpt-ad-1552967771239-0', size: [320, 100] },\n };\n switch (routeName) {\n case 'ArticlesHome':\n adsRoute.fixed = { unit: '', opt: '' };\n adsRoute.aside01 = { unit: '/76346382/home_sp_ad_01', opt: 'div-gpt-ad-1511754157093-0' };\n adsRoute.aside02 = { unit: '/76346382/home_sp_ad_02', opt: 'div-gpt-ad-1511754297200-0' };\n adsRoute.aside03 = { unit: '/76346382/home_sp_ad_03', opt: 'div-gpt-ad-1511754326513-0' };\n break;\n case 'SeriesIndex':\n adsRoute.aside01 = { unit: '/76346382/special_sp_ad_01', opt: 'div-gpt-ad-1511761921357-0' };\n adsRoute.aside02 = { unit: '/76346382/special_sp_ad_02', opt: 'div-gpt-ad-1511762086269-0' };\n adsRoute.aside03 = { unit: '/76346382/special_sp_ad_03', opt: 'div-gpt-ad-1540195270377-0' };\n break;\n case 'SeriesShow':\n adsRoute.aside01 = { unit: '/76346382/special_sp_ad_01', opt: 'div-gpt-ad-1511761921357-0' };\n adsRoute.aside02 = { unit: '/76346382/special_sp_ad_02', opt: 'div-gpt-ad-1511762086269-0' };\n adsRoute.aside03 = { unit: '/76346382/special_sp_ad_03', opt: 'div-gpt-ad-1540195270377-0' };\n break;\n case 'AuthorsIndex':\n adsRoute.aside01 = { unit: '/76346382/author_sp_ad_01', opt: 'div-gpt-ad-1511761350850-0' };\n adsRoute.aside02 = { unit: '/76346382/author_sp_ad_02', opt: 'div-gpt-ad-1511761409321-0' };\n adsRoute.aside03 = { unit: '/76346382/author_sp_ad_03', opt: 'div-gpt-ad-1540194172206-0' };\n break;\n case 'AuthorsShow':\n adsRoute.aside01 = { unit: '/76346382/author_sp_ad_01', opt: 'div-gpt-ad-1511761350850-0' };\n adsRoute.aside02 = { unit: '/76346382/author_sp_ad_02', opt: 'div-gpt-ad-1511761409321-0' };\n adsRoute.aside03 = { unit: '/76346382/author_sp_ad_03', opt: 'div-gpt-ad-1540194172206-0' };\n break;\n case 'PhotographersIndex':\n adsRoute.aside01 = { unit: '/76346382/author_sp_ad_01', opt: 'div-gpt-ad-1511761350850-0' };\n adsRoute.aside02 = { unit: '/76346382/author_sp_ad_02', opt: 'div-gpt-ad-1511761409321-0' };\n adsRoute.aside03 = { unit: '/76346382/author_sp_ad_03', opt: 'div-gpt-ad-1540194172206-0' };\n break;\n case 'ArticlesIndex':\n adsRoute.aside01 = { unit: '/76346382/newpost_sp_ad_01', opt: 'div-gpt-ad-1511761237759-0' };\n adsRoute.aside02 = { unit: '/76346382/newpost_sp_ad_02', opt: 'div-gpt-ad-1511761300195-0' };\n adsRoute.aside03 = { unit: '/76346382/newpost_sp_ad_03', opt: 'div-gpt-ad-1540194621384-0' };\n break;\n case 'ArticlesShow':\n adsRoute.aside01 = { unit: '/76346382/single_sp_ad_01', opt: 'div-gpt-ad-1511761830032-0' };\n adsRoute.aside02 = { unit: '/76346382/single_sp_ad_02', opt: 'div-gpt-ad-1511761864154-0' };\n adsRoute.aside03 = { unit: '/76346382/single_sp_ad_03', opt: 'div-gpt-ad-1540195119877-0' };\n adsRoute.screen01 = { unit: '/76346382/single_sp_ad_00', opt: 'div-gpt-ad-1548925957164-0' };\n adsRoute.screen02 = { unit: '/76346382/single_sp_ad_05', opt: 'div-gpt-ad-1582883883764-0', size: [320, 50] };\n adsRoute.screen03 = { unit: '/76346382/single_pc_house_01', opt: 'div-gpt-ad-1548038003611-0', size: [320, 100] };\n break;\n case 'ArticlesPreview':\n adsRoute.aside01 = { unit: '/76346382/single_sp_ad_01', opt: 'div-gpt-ad-1511761830032-0' };\n adsRoute.aside02 = { unit: '/76346382/single_sp_ad_02', opt: 'div-gpt-ad-1511761864154-0' };\n adsRoute.aside03 = { unit: '/76346382/single_sp_ad_03', opt: 'div-gpt-ad-1540195119877-0' };\n adsRoute.screen01 = { unit: '/76346382/single_sp_ad_00', opt: 'div-gpt-ad-1548925957164-0' };\n adsRoute.screen02 = { unit: '/76346382/single_sp_ad_05', opt: 'div-gpt-ad-1582883883764-0', size: [320, 50] };\n adsRoute.screen03 = { unit: '/76346382/single_pc_house_01', opt: 'div-gpt-ad-1548038003611-0', size: [320, 100] };\n break;\n case 'ArticlesSummary':\n adsRoute.aside01 = { unit: '/76346382/summary_sp_ad_01', opt: 'div-gpt-ad-1577257018134-0' };\n adsRoute.aside02 = { unit: '/76346382/summary_sp_ad_02', opt: 'div-gpt-ad-1577257615238-0' };\n adsRoute.aside03 = { unit: '/76346382/summary_sp_ad_03', opt: 'div-gpt-ad-1577257679950-0' };\n adsRoute.screen01 = { unit: '/76346382/summary_sp_ad_00', opt: 'div-gpt-ad-1577256901012-0' };\n break;\n case 'ArticlesPromoted':\n adsRoute.aside01 = { unit: '/76346382/pr_sp_ad_01', opt: 'div-gpt-ad-1511761761562-0' };\n adsRoute.aside02 = { unit: '/76346382/pr_sp_ad_02', opt: 'div-gpt-ad-1511761783729-0' };\n adsRoute.aside03 = { unit: '/76346382/pr_sp_ad_03', opt: 'div-gpt-ad-1540194908536-0' };\n break;\n case 'GalleriesIndex':\n adsRoute.aside01 = { unit: '/76346382/galleries_sp_ad_01', opt: 'div-gpt-ad-1577255984192-0' };\n adsRoute.aside02 = { unit: '/76346382/galleries_sp_ad_02', opt: 'div-gpt-ad-1577256055359-0' };\n adsRoute.aside03 = { unit: '/76346382/galleries_sp_ad_03', opt: 'div-gpt-ad-1577256135530-0' };\n break;\n case 'GalleriesShow':\n adsRoute.aside01 = { unit: '/76346382/galleries_sp_ad_01', opt: 'div-gpt-ad-1577255984192-0' };\n adsRoute.aside02 = { unit: '/76346382/galleries_sp_ad_02', opt: 'div-gpt-ad-1577256055359-0' };\n adsRoute.aside03 = { unit: '/76346382/galleries_sp_ad_03', opt: 'div-gpt-ad-1577256135530-0' };\n adsRoute.screen01 = { unit: '/76346382/galleries_sp_ad_00', opt: 'div-gpt-ad-1588934439392-0', size: [320, 50] };\n break;\n case 'CategoriesShow':\n adsRoute.aside01 = { unit: '/76346382/category_sp_ad_01', opt: 'div-gpt-ad-1511753990486-0' };\n adsRoute.aside02 = { unit: '/76346382/category_sp_ad_02', opt: 'div-gpt-ad-1511754119702-0' };\n adsRoute.aside03 = { unit: '/76346382/category_sp_ad_03', opt: 'div-gpt-ad-1540194489786-0' };\n break;\n default:\n adsRoute.aside01 = { unit: '/76346382/single_sp_ad_01', opt: 'div-gpt-ad-1511761830032-0' };\n adsRoute.aside02 = { unit: '/76346382/single_sp_ad_02', opt: 'div-gpt-ad-1511761864154-0' };\n adsRoute.aside03 = { unit: '/76346382/single_sp_ad_03', opt: 'div-gpt-ad-1540195119877-0' };\n adsRoute.screen01 = { unit: '/76346382/single_sp_ad_00', opt: 'div-gpt-ad-1548925957164-0' };\n adsRoute.screen02 = { unit: '/76346382/single_sp_ad_05', opt: 'div-gpt-ad-1582883883764-0', size: [320, 50] };\n adsRoute.screen03 = { unit: '/76346382/single_pc_house_01', opt: 'div-gpt-ad-1548038003611-0', size: [320, 100] };\n }\n return adsRoute;\n}\n/*\n * csr時しか呼ばない想定。windowサイズを取得している。\n */\nexport default function findAdsRoute(routeName) {\n return isSmartphone() ? getAdsRouteSP(routeName) : getAdsRoutePC(routeName);\n}\n","export default function getCurrentRoute() {\n var body = document.getElementsByTagName(\"body\")[0];\n return body.getAttribute('data-route');\n}\n","function requestYads() {\n window.yadsRequestAsync({\n yads_ad_ds: \"93111_258558\",\n yads_parent_element: \"yads\",\n });\n}\n\nexport default function adsYahoo() {\n const yads = window.document.createElement(\"script\");\n yads.type = \"text/javascript\";\n yads.src = \"//yads.c.yimg.jp/js/yads-async.js\";\n yads.async = true;\n if (yads.addEventListener) {\n yads.onload = requestYads;\n } else {\n yads.onreadystatechange = () => {\n if (yads.readyState === \"loaded\" || yads.readyState === \"complete\") {\n yads.onreadystatechange = null;\n requestYads();\n }\n };\n }\n window.document.body.appendChild(yads);\n document.getElementById(\"yads\").style.display = \"block\";\n}\n","import { BREAK_POINT_PC } from './constants';\n\nexport default function isSmartPhone() {\n return window.innerWidth < BREAK_POINT_PC;\n}\n","/* globals __webpack_amd_options__ */\nmodule.exports = __webpack_amd_options__;\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'use strict';\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\nvar punycode = require('punycode');\n\nvar util = require('./util');\n\nexports.parse = urlParse;\nexports.resolve = urlResolve;\nexports.resolveObject = urlResolveObject;\nexports.format = urlFormat;\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} // Reference: RFC 3986, RFC 1808, RFC 2396\n// define these here so at least they only have to be\n// compiled once on the first module load.\n\n\nvar protocolPattern = /^([a-z0-9.+-]+:)/i,\n portPattern = /:[0-9]*$/,\n // Special case for a simple path URL\nsimplePathPattern = /^(\\/\\/?(?!\\/)[^\\?\\s]*)(\\?[^\\s]*)?$/,\n // RFC 2396: characters reserved for delimiting URLs.\n// We actually just auto-escape these.\ndelims = ['<', '>', '\"', '`', ' ', '\\r', '\\n', '\\t'],\n // RFC 2396: characters not allowed for various reasons.\nunwise = ['{', '}', '|', '\\\\', '^', '`'].concat(delims),\n // Allowed by RFCs, but cause of XSS attacks. Always escape these.\nautoEscape = ['\\''].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.\nnonHostChars = ['%', '/', '?', ';', '#'].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.\nunsafeProtocol = {\n 'javascript': true,\n 'javascript:': true\n},\n // protocols that never have a hostname.\nhostlessProtocol = {\n 'javascript': true,\n 'javascript:': true\n},\n // protocols that always contain a // bit.\nslashedProtocol = {\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 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 } // 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\n\n var queryIndex = url.indexOf('?'),\n splitter = 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 var rest = url; // trim before proceeding.\n // This is to support parse stuff like \" http://foo.com \\n\"\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\n if (simplePath) {\n this.path = rest;\n this.href = rest;\n this.pathname = simplePath[1];\n\n if (simplePath[2]) {\n this.search = simplePath[2];\n\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\n return this;\n }\n }\n\n var proto = protocolPattern.exec(rest);\n\n if (proto) {\n proto = proto[0];\n var lowerProto = proto.toLowerCase();\n this.protocol = lowerProto;\n rest = rest.substr(proto.length);\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\n\n if (slashesDenoteHost || proto || rest.match(/^\\/\\/[^@\\/]+@[^@\\/]+/)) {\n var slashes = rest.substr(0, 2) === '//';\n\n if (slashes && !(proto && hostlessProtocol[proto])) {\n rest = rest.substr(2);\n this.slashes = true;\n }\n }\n\n if (!hostlessProtocol[proto] && (slashes || proto && !slashedProtocol[proto])) {\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 // v0.12 TODO(isaacs): This is not quite how Chrome does things.\n // Review our test case against browsers more comprehensively.\n // find the first instance of any hostEndingChars\n var hostEnd = -1;\n\n for (var i = 0; i < hostEndingChars.length; i++) {\n var hec = rest.indexOf(hostEndingChars[i]);\n if (hec !== -1 && (hostEnd === -1 || hec < hostEnd)) hostEnd = hec;\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\n\n var auth, atSign;\n\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 } // Now we have a portion which is definitely the auth.\n // Pull that off.\n\n\n if (atSign !== -1) {\n auth = rest.slice(0, atSign);\n rest = rest.slice(atSign + 1);\n this.auth = decodeURIComponent(auth);\n } // the host is the remaining to the left of the first non-host char\n\n\n hostEnd = -1;\n\n for (var i = 0; i < nonHostChars.length; i++) {\n var hec = rest.indexOf(nonHostChars[i]);\n if (hec !== -1 && (hostEnd === -1 || hec < hostEnd)) hostEnd = hec;\n } // if we still have not hit it, then the entire thing is a host.\n\n\n if (hostEnd === -1) hostEnd = rest.length;\n this.host = rest.slice(0, hostEnd);\n rest = rest.slice(hostEnd); // pull out port.\n\n this.parseHost(); // we've indicated that there is a hostname,\n // so even if it's empty, it has to be present.\n\n this.hostname = this.hostname || ''; // if hostname begins with [ and ends with ]\n // assume that it's an IPv6 address.\n\n var ipv6Hostname = this.hostname[0] === '[' && this.hostname[this.hostname.length - 1] === ']'; // validate a little.\n\n if (!ipv6Hostname) {\n var hostparts = this.hostname.split(/\\./);\n\n for (var i = 0, l = hostparts.length; i < l; i++) {\n var part = hostparts[i];\n if (!part) continue;\n\n if (!part.match(hostnamePartPattern)) {\n var newpart = '';\n\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 } // we test again with ASCII char only\n\n\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\n if (bit) {\n validParts.push(bit[1]);\n notHost.unshift(bit[2]);\n }\n\n if (notHost.length) {\n rest = '/' + notHost.join('.') + rest;\n }\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; // strip [ and ] from the hostname\n // the host field still retains them, though\n\n if (ipv6Hostname) {\n this.hostname = this.hostname.substr(1, this.hostname.length - 2);\n\n if (rest[0] !== '/') {\n rest = '/' + rest;\n }\n }\n } // now rest is set to the post-host stuff.\n // chop off any delim chars.\n\n\n if (!unsafeProtocol[lowerProto]) {\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) continue;\n var esc = encodeURIComponent(ae);\n\n if (esc === ae) {\n esc = escape(ae);\n }\n\n rest = rest.split(ae).join(esc);\n }\n } // chop off from the tail first.\n\n\n var hash = rest.indexOf('#');\n\n if (hash !== -1) {\n // got a fragment string.\n this.hash = rest.substr(hash);\n rest = rest.slice(0, hash);\n }\n\n var qm = rest.indexOf('?');\n\n if (qm !== -1) {\n this.search = rest.substr(qm);\n this.query = rest.substr(qm + 1);\n\n if (parseQueryString) {\n this.query = querystring.parse(this.query);\n }\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\n if (rest) this.pathname = rest;\n\n if (slashedProtocol[lowerProto] && this.hostname && !this.pathname) {\n this.pathname = '/';\n } //to support http.request\n\n\n if (this.pathname || this.search) {\n var p = this.pathname || '';\n var s = this.search || '';\n this.path = p + s;\n } // finally, reconstruct the href based on what has been validated.\n\n\n this.href = this.format();\n return this;\n}; // format a parsed object into a url string\n\n\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\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 ? this.hostname : '[' + this.hostname + ']');\n\n if (this.port) {\n host += ':' + this.port;\n }\n }\n\n if (this.query && util.isObject(this.query) && Object.keys(this.query).length) {\n query = querystring.stringify(this.query);\n }\n\n var search = this.search || query && '?' + query || '';\n if (protocol && protocol.substr(-1) !== ':') protocol += ':'; // only the slashedProtocols get the //. Not mailto:, xmpp:, etc.\n // unless they had them to begin with.\n\n if (this.slashes || (!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 pathname = pathname.replace(/[?#]/g, function (match) {\n return encodeURIComponent(match);\n });\n search = search.replace('#', '%23');\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\n for (var tk = 0; tk < tkeys.length; tk++) {\n var tkey = tkeys[tk];\n result[tkey] = this[tkey];\n } // hash is always overridden, no matter what.\n // even href=\"\" will remove it.\n\n\n result.hash = relative.hash; // if the relative url is empty, then there's nothing left to do here.\n\n if (relative.href === '') {\n result.href = result.format();\n return result;\n } // hrefs like //foo/bar always cut to the protocol.\n\n\n if (relative.slashes && !relative.protocol) {\n // take everything except the protocol from relative\n var rkeys = Object.keys(relative);\n\n for (var rk = 0; rk < rkeys.length; rk++) {\n var rkey = rkeys[rk];\n if (rkey !== 'protocol') result[rkey] = relative[rkey];\n } //urlParse appends trailing / to urls like http://www.example.com\n\n\n if (slashedProtocol[result.protocol] && 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\n for (var v = 0; v < keys.length; v++) {\n var k = keys[v];\n result[k] = relative[k];\n }\n\n result.href = result.format();\n return result;\n }\n\n result.protocol = relative.protocol;\n\n if (!relative.host && !hostlessProtocol[relative.protocol]) {\n var relPath = (relative.pathname || '').split('/');\n\n while (relPath.length && !(relative.host = relPath.shift())) {\n ;\n }\n\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\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; // to support http.request\n\n if (result.pathname || result.search) {\n var p = result.pathname || '';\n var s = result.search || '';\n result.path = p + s;\n }\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 = relative.host || relative.pathname && relative.pathname.charAt(0) === '/',\n mustEndAbs = isRelAbs || isSourceAbs || 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]; // 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\n if (psychotic) {\n result.hostname = '';\n result.port = null;\n\n if (result.host) {\n if (srcPath[0] === '') srcPath[0] = result.host;else srcPath.unshift(result.host);\n }\n\n result.host = '';\n\n if (relative.protocol) {\n relative.hostname = null;\n relative.port = null;\n\n if (relative.host) {\n if (relPath[0] === '') relPath[0] = relative.host;else relPath.unshift(relative.host);\n }\n\n relative.host = null;\n }\n\n mustEndAbs = mustEndAbs && (relPath[0] === '' || srcPath[0] === '');\n }\n\n if (isRelAbs) {\n // it's absolute.\n result.host = relative.host || relative.host === '' ? relative.host : result.host;\n result.hostname = relative.hostname || relative.hostname === '' ? relative.hostname : result.hostname;\n result.search = relative.search;\n result.query = relative.query;\n srcPath = relPath; // 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(); //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\n var authInHost = result.host && result.host.indexOf('@') > 0 ? result.host.split('@') : false;\n\n if (authInHost) {\n result.auth = authInHost.shift();\n result.host = result.hostname = authInHost.shift();\n }\n }\n\n result.search = relative.search;\n result.query = relative.query; //to support http.request\n\n if (!util.isNull(result.pathname) || !util.isNull(result.search)) {\n result.path = (result.pathname ? result.pathname : '') + (result.search ? result.search : '');\n }\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; //to support http.request\n\n if (result.search) {\n result.path = '/' + result.search;\n } else {\n result.path = null;\n }\n\n result.href = result.format();\n return result;\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\n\n var last = srcPath.slice(-1)[0];\n var hasTrailingSlash = (result.host || relative.host || srcPath.length > 1) && (last === '.' || last === '..') || last === ''; // strip single dots, resolve double dots to parent dir\n // if the path tries to go above the root, `up` ends up > 0\n\n var up = 0;\n\n for (var i = srcPath.length; i >= 0; i--) {\n last = srcPath[i];\n\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 } // if the path is allowed to go above the root, restore leading ..s\n\n\n if (!mustEndAbs && !removeAllDots) {\n for (; up--; up) {\n srcPath.unshift('..');\n }\n }\n\n if (mustEndAbs && srcPath[0] !== '' && (!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] === '' || srcPath[0] && srcPath[0].charAt(0) === '/'; // put the host back\n\n if (psychotic) {\n result.hostname = result.host = isAbsolute ? '' : srcPath.length ? srcPath.shift() : ''; //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\n var authInHost = result.host && result.host.indexOf('@') > 0 ? result.host.split('@') : false;\n\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 } //to support request.http\n\n\n if (!util.isNull(result.pathname) || !util.isNull(result.search)) {\n result.path = (result.pathname ? result.pathname : '') + (result.search ? result.search : '');\n }\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\n if (port) {\n port = port[0];\n\n if (port !== ':') {\n this.port = port.substr(1);\n }\n\n host = host.substr(0, host.length - port.length);\n }\n\n if (host) this.hostname = host;\n};"],"sourceRoot":""}