lz-string.min.js 592 Bytes
!function(r,e){var n={compress:function(r){"use strict";var e,n,t,o={},i="",c=[],f=65536;for(e=0;e<r.length;e+=1)t=i+(n=r.charAt(e)),i=o.hasOwnProperty(t)?t:(i&&!o[i]&&(o[i]=i.charCodeAt()),o[i]&&(c.push(o[i]),o[t]=f++),String(n));return""!==i&&c.push(o[i]||i.charCodeAt()),c.join(",")},decompress:function(r){"use strict";var e,n,t,o,i=[],c="",f=65536;for(t=n=String.fromCharCode(r[0]),e=1;e<r.length;e+=1)t+=c=i[o=r[e]]?i[o]:o===f?n+n.charAt(0):String.fromCharCode(o),i[f++]=n+c.charAt(0),n=c;return t}};"undefined"!=typeof define&&define.amd&&define(function(){return n}),r.LZW=n}(window);