/*!
 * jQuery Cookie Plugin v1.4.0
 * https://github.com/carhartl/jquery-cookie
 *
 * Copyright 2013 Klaus Hartl
 * Released under the MIT license
 */(function(d){"function"===typeof define&&define.amd?define(["jquery"],d):d(jQuery)})(function(d){function n(b){b=f.json?JSON.stringify(b):String(b);return f.raw?b:encodeURIComponent(b)}function l(b,e){var a;if(f.raw)a=b;else a:{var c=b;0===c.indexOf('"')&&(c=c.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{c=decodeURIComponent(c.replace(m," "))}catch(g){a=void 0;break a}try{a=f.json?JSON.parse(c):c;break a}catch(l){}a=void 0}return d.isFunction(e)?e(a):a}var m=/\+/g,f=d.cookie=function(b, e,a){if(void 0!==e&&!d.isFunction(e)){a=d.extend({},f.defaults,a);if("number"===typeof a.expires){var c=a.expires,g=a.expires=new Date;g.setDate(g.getDate()+c)}return document.cookie=[f.raw?b:encodeURIComponent(b),"=",n(e),a.expires?"; expires="+a.expires.toUTCString():"",a.path?"; path="+a.path:"",a.domain?"; domain="+a.domain:"",a.secure?"; secure":""].join("")}a=b?void 0:{};for(var c=document.cookie?document.cookie.split("; "):[],g=0,m=c.length;g<m;g++){var h=c[g].split("="),k;k=h.shift();k=f.raw? k:decodeURIComponent(k);h=h.join("=");if(b&&b===k){a=l(h,e);break}b||void 0===(h=l(h))||(a[k]=h)}return a};f.defaults={};d.removeCookie=function(b,e){return void 0!==d.cookie(b)?(d.cookie(b,"",d.extend({},e,{expires:-1})),!0):!1}});