{"version":3,"sources":["webpack:///./node_modules/tiny-cookie/tiny-cookie.js"],"names":["root","factory","this","Cookie","key","value","opts","get","remove","set","escapeRe","str","replace","convert","res","p","hasOwnProperty","expires","computeExpires","toUTCString","Date","lastCh","charAt","length","parseInt","setFullYear","getFullYear","setMonth","getMonth","setDate","getDate","setHours","getHours","setMinutes","getMinutes","setSeconds","getSeconds","enabled","document","cookie","raw","reKey","RegExp","exec","decodeURIComponent","getRaw","encodeURIComponent","setRaw"],"mappings":"sGAAA;;;;;IAME,SAASA,EAAMC,GAMb,IAAc,oEANjB,CAeCC,GAAM,WAEN,aAGA,SAASC,EAAOC,EAAKC,EAAOC,GAC1B,QAAc,IAAVD,EACF,OAAOF,EAAOI,IAAIH,GACC,OAAVC,EACTF,EAAOK,OAAOJ,GAEdD,EAAOM,IAAIL,EAAKC,EAAOC,GA2D3B,SAASI,EAASC,GAChB,OAAOA,EAAIC,QAAQ,uBAAwB,QAI7C,SAASC,EAAQP,GACf,IAAIQ,EAAM,GAEV,IAAK,IAAIC,KAAKT,EACZ,GAAIA,EAAKU,eAAeD,GAAI,CAE1B,GAAU,YAANA,EAAiB,CACnB,IAAIE,EAAUX,EAAKS,GACI,kBAAZE,IACTA,GAA8B,kBAAZA,EAAuB,IAAM,GAC/CA,EAAUC,EAAeD,IAE3BX,EAAKS,GAAKE,EAAQE,cAGpB,GAAU,WAANJ,EAAgB,CACdT,EAAKS,KACPD,GAAO,IAAMC,GAGf,SAGFD,GAAO,IAAMC,EAAI,IAAMT,EAAKS,GAQhC,OAJKT,EAAKU,eAAe,UACvBF,GAAO,WAGFA,EAIT,SAASI,EAAeP,GACtB,IAAIM,EAAU,IAAIG,KACdC,EAASV,EAAIW,OAAOX,EAAIY,OAAS,GACjClB,EAAQmB,SAASb,EAAK,IAE1B,OAAQU,GACN,IAAK,IAAKJ,EAAQQ,YAAYR,EAAQS,cAAgBrB,GAAQ,MAC9D,IAAK,IAAKY,EAAQU,SAASV,EAAQW,WAAavB,GAAQ,MACxD,IAAK,IAAKY,EAAQY,QAAQZ,EAAQa,UAAYzB,GAAQ,MACtD,IAAK,IAAKY,EAAQc,SAASd,EAAQe,WAAa3B,GAAQ,MACxD,IAAK,IAAKY,EAAQgB,WAAWhB,EAAQiB,aAAe7B,GAAQ,MAC5D,IAAK,IAAKY,EAAQkB,WAAWlB,EAAQmB,aAAe/B,GAAQ,MAC5D,QAASY,EAAU,IAAIG,KAAKT,GAG9B,OAAOM,EAGT,OAhHAd,EAAOkC,QAAU,WACf,IACIA,EADAjC,EAAM,aAQV,OALAkC,SAASC,OAASnC,EAAM,KACxBiC,IAAYC,SAASC,OAEjBF,GAASlC,EAAOK,OAAOJ,GAEpBiC,GAITlC,EAAOI,IAAM,SAASH,EAAKoC,GACzB,GAAmB,kBAARpC,IAAqBA,EAAK,OAAO,KAE5CA,EAAM,WAAaM,EAASN,GAAO,wBAEnC,IAAIqC,EAAQ,IAAIC,OAAOtC,GACnBU,EAAM2B,EAAME,KAAKL,SAASC,QAE9B,OAAe,OAARzB,EAAgB0B,EAAM1B,EAAI,GAAK8B,mBAAmB9B,EAAI,IAAO,MAItEX,EAAO0C,OAAS,SAASzC,GACvB,OAAOD,EAAOI,IAAIH,GAAK,IAIzBD,EAAOM,IAAM,SAASL,EAAKC,EAAOmC,EAAKlC,IACzB,IAARkC,IACFlC,EAAOkC,EACPA,GAAM,GAERlC,EAAcO,EAAPP,GAA+B,IACtC,IAAIiC,EAASnC,EAAM,KAAOoC,EAAMnC,EAAQyC,mBAAmBzC,IAAUC,EACrEgC,SAASC,OAASA,GAIpBpC,EAAO4C,OAAS,SAAS3C,EAAKC,EAAOC,GACnCH,EAAOM,IAAIL,EAAKC,GAAO,EAAMC,IAI/BH,EAAOK,OAAS,SAASJ,GACvBD,EAAOM,IAAIL,EAAK,IAAK,CAAEa,QAAS,IAAIG,QAiE/BjB","file":"js/npm.tiny-cookie.b160a220.js","sourcesContent":["/*!\n * tiny-cookie - A tiny cookie manipulation plugin\n * https://github.com/Alex1990/tiny-cookie\n * Under the MIT license | (c) Alex Chao\n */\n\n!(function(root, factory) {\n\n // Uses CommonJS, AMD or browser global to create a jQuery plugin.\n // See: https://github.com/umdjs/umd\n if (typeof define === 'function' && define.amd) {\n // Expose this plugin as an AMD module. Register an anonymous module.\n define(factory);\n } else if (typeof exports === 'object') {\n // Node/CommonJS module\n module.exports = factory();\n } else {\n // Browser globals \n root.Cookie = factory();\n }\n\n}(this, function() {\n\n 'use strict';\n\n // The public function which can get/set/remove cookie.\n function Cookie(key, value, opts) {\n if (value === void 0) {\n return Cookie.get(key);\n } else if (value === null) {\n Cookie.remove(key);\n } else {\n Cookie.set(key, value, opts);\n }\n }\n\n // Check if the cookie is enabled.\n Cookie.enabled = function() {\n var key = '__test_key';\n var enabled;\n\n document.cookie = key + '=1';\n enabled = !!document.cookie;\n\n if (enabled) Cookie.remove(key);\n\n return enabled;\n };\n\n // Get the cookie value by the key.\n Cookie.get = function(key, raw) {\n if (typeof key !== 'string' || !key) return null;\n\n key = '(?:^|; )' + escapeRe(key) + '(?:=([^;]*?))?(?:;|$)';\n\n var reKey = new RegExp(key);\n var res = reKey.exec(document.cookie);\n\n return res !== null ? (raw ? res[1] : decodeURIComponent(res[1])) : null;\n };\n\n // Get the cookie's value without decoding.\n Cookie.getRaw = function(key) {\n return Cookie.get(key, true);\n };\n\n // Set a cookie.\n Cookie.set = function(key, value, raw, opts) {\n if (raw !== true) {\n opts = raw;\n raw = false;\n }\n opts = opts ? convert(opts) : convert({});\n var cookie = key + '=' + (raw ? value : encodeURIComponent(value)) + opts;\n document.cookie = cookie;\n };\n\n // Set a cookie without encoding the value.\n Cookie.setRaw = function(key, value, opts) {\n Cookie.set(key, value, true, opts);\n };\n\n // Remove a cookie by the specified key.\n Cookie.remove = function(key) {\n Cookie.set(key, 'a', { expires: new Date() });\n };\n\n // Helper function\n // ---------------\n\n // Escape special characters.\n function escapeRe(str) {\n return str.replace(/[.*+?^$|[\\](){}\\\\-]/g, '\\\\$&');\n }\n\n // Convert an object to a cookie option string.\n function convert(opts) {\n var res = '';\n\n for (var p in opts) {\n if (opts.hasOwnProperty(p)) {\n\n if (p === 'expires') {\n var expires = opts[p];\n if (typeof expires !== 'object') {\n expires += typeof expires === 'number' ? 'D' : '';\n expires = computeExpires(expires);\n }\n opts[p] = expires.toUTCString();\n }\n\n if (p === 'secure') {\n if (opts[p]) {\n res += ';' + p;\n }\n\n continue;\n }\n\n res += ';' + p + '=' + opts[p];\n }\n }\n\n if (!opts.hasOwnProperty('path')) {\n res += ';path=/';\n }\n\n return res;\n }\n\n // Return a future date by the given string.\n function computeExpires(str) {\n var expires = new Date();\n var lastCh = str.charAt(str.length - 1);\n var value = parseInt(str, 10);\n\n switch (lastCh) {\n case 'Y': expires.setFullYear(expires.getFullYear() + value); break;\n case 'M': expires.setMonth(expires.getMonth() + value); break;\n case 'D': expires.setDate(expires.getDate() + value); break;\n case 'h': expires.setHours(expires.getHours() + value); break;\n case 'm': expires.setMinutes(expires.getMinutes() + value); break;\n case 's': expires.setSeconds(expires.getSeconds() + value); break;\n default: expires = new Date(str);\n }\n\n return expires;\n }\n\n return Cookie;\n\n}));\n"],"sourceRoot":""}