/*! * javascript cookie v2.0.4 * https://github.com/js-cookie/js-cookie * * copyright 2006, 2015 klaus hartl & fagner brack * released under the mit license */ !function(e){if("function"==typeof define&&define.amd)define(e);else if("object"==typeof exports)module.exports=e();else{var n=window.cookies,t=window.cookies=e();t.noconflict=function(){return window.cookies=n,t}}}(function(){function e(){for(var e=0,n={};e1){if(i=e({path:"/"},o.defaults,i),"number"==typeof i.expires){var s=new date;s.setmilliseconds(s.getmilliseconds()+864e5*i.expires),i.expires=s}try{c=json.stringify(r),/^[\{\[]/.test(c)&&(r=c)}catch(a){}return r=encodeuricomponent(string(r)),r=r.replace(/%(23|24|26|2b|3a|3c|3e|3d|2f|3f|40|5b|5d|5e|60|7b|7d|7c)/g,decodeuricomponent),n=encodeuricomponent(string(n)),n=n.replace(/%(23|24|26|2b|5e|60|7c)/g,decodeuricomponent),n=n.replace(/[\(\)]/g,escape),document.cookie=[n,"=",r,i.expires&&"; expires="+i.expires.toutcstring(),i.path&&"; path="+i.path,i.domain&&"; domain="+i.domain,i.secure?"; secure":""].join("")}n||(c={});for(var p=document.cookie?document.cookie.split("; "):[],u=/(%[0-9a-z]{2})+/g,d=0;d