1/*!
2 * jQuery Cookie Plugin v1.4.1
3 * https://github.com/carhartl/jquery-cookie
4 *
5 * Copyright 2006, 2014 Klaus Hartl
6 * Released under the MIT license
7 */
8(function (factory) {
9 if (typeof define === 'function' && define.amd) {
10 // AMD (Register as an anonymous module)
11 define(['jquery'], factory);
12 } else if (typeof exports === 'object') {
13 // Node/CommonJS
14 module.exports = factory(require('jquery'));
15 } else {
16 // Browser globals
17 factory(jQuery);
18 }
19}(function ($) {
20
21 var pluses = /\+/g;
22
23 function encode(s) {
24 return config.raw ? s : encodeURIComponent(s);
25 }
26
27 function decode(s) {
28 return config.raw ? s : decodeURIComponent(s);
29 }
30
31 function stringifyCookieValue(value) {
32 return encode(config.json ? JSON.stringify(value) : String(value));
33 }
34
35 function parseCookieValue(s) {
36 if (s.indexOf('"') === 0) {
37 // This is a quoted cookie as according to RFC2068, unescape...
38 s = s.slice(1, -1).replace(/\\"/g, '"').replace(/\\\\/g, '\\');
39 }
40
...
</html>