1
/*! js-cookie v3.0.0-rc.0 | MIT */
2
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self,function(){var r=e.Cookies,n=e.Cookies=t();n.noConflict=function(){return e.Cookies=r,n}
3
}
4
())}
5
(this,function(){"use strict";function e(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}
6
return e}
7
var t={read:function(e){return e.replace(/%3B/g,";")}
8
,write:function(e){return e.replace(/;/g,"%3B")}
9
}
10
;return function r(n,i){function o(r,o,u){if("undefined"!=typeof document){"number"==typeof(u=e({}
11
,i,u)).expires&&(u.expires=new Date(Date.now()+864e5*u.expires)),u.expires&&(u.expires=u.expires.toUTCString()),r=t.write(r).replace(/=/g,"%3D"),o=n.write(String(o),r);var c="";for(var f in u)u[f]&&(c+="; "+f,!0!==u[f]&&(c+="="+u[f].split(";")[0]));return document.cookie=r+"="+o+c}
12
}
13
return Object.create({set:o,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var r=document.cookie?document.cookie.split("; "):[],i={}
14
,o=0;o<r.length;o++){var u=r[o].split("="),c=u.slice(1).join("="),f=t.read(u[0]).replace(/%3D/g,"=");if(i[f]=n.read(c,f),e===f)break}
15
return e?i[e]:i}
16
}
17
,remove:function(t,r){o(t,"",e({}
18
,r,{expires:-1}
19
))}
20
,withAttributes:function(t){return r(this.converter,e({}
21
,this.attributes,t))}
22
,withConverter:function(t){return r(e({}
23
,this.converter,t),this.attributes)}
24
}
25
,{attributes:{value:Object.freeze(i)}
26
,converter:{value:Object.freeze(n)}
27
}
28
)}
29
(t,{path:"/"}
30
)}
31
);