window.addEventListener(\"message\",function(t){var e=JSON.parse(t.data);if(\"crtg\"===e.type)switch(e.action){case\"get\":var r={};try{r=JSON.parse(localStorage.getItem(\"_crtg\")||\"{}\")}catch(t){}return void t.source.postMessage(JSON.stringify({type:e.type,action:e.action,value:Object.keys(r).map(function(t){return parseInt(t,10)})}),t.origin);case\"set\":r={};try{r=JSON.parse(localStorage.getItem(\"_crtg\")||\"{}\")}catch(t){}return 1===r[e.id]?void 0:(r[e.id]=1,localStorage.setItem(\"_crtg\",JSON.stringify(r)),void t.source.postMessage(JSON.stringify({type:e.type,action:\"new\"}),t.origin))}})