var __extends=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(e.hasOwnProperty(r))t[r]=e[r]};return t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();System.register([],(function(t){"use strict";return{execute:function(){var e=function(){function t(){this.items={}}t.prototype.clear=function(){this.items={}};t.prototype.getItem=function(t){return this.items[t]||null};t.prototype.setItem=function(t,e){this.items[t]=e};t.prototype.removeItem=function(t){delete this.items[t]};return t}();t("F",e);var r=function(){function t(t){this.storage=t}t.hasStorage=function(t){try{var e="anjHasStorage"+ +new Date;var r=window[t];r.setItem(e,e);var n=r.getItem(e);r.removeItem(e);return n===e}catch(o){return false}};t.prototype.clear=function(){return this.storage.clear()};t.prototype.getItem=function(t){return JSON.parse(this.storage.getItem(t))};t.prototype.removeItem=function(t){return this.storage.removeItem(t)};t.prototype.setItem=function(t,e){return this.storage.setItem(t,JSON.stringify(e))};return t}();t("S",r);var n=function(t){__extends(r,t);function r(){var n=this;if(r.hasStorage("sessionStorage")){n=t.call(this,window.sessionStorage)||this}else{n=t.call(this,new e)||this}return n}return r}(r);t("a",n);var o=function(t){__extends(r,t);function r(){var n=this;if(r.hasStorage("localStorage")){n=t.call(this,window.localStorage)||this}else{n=t.call(this,new e)||this}return n}return r}(r);t("L",o)}}}));