System.register([],(function(n){"use strict";return{execute:function(){var t=function(){function n(){}n.is=function(n){return typeof n=="object"&&typeof n.destination=="string"&&n.content!=undefined};n.send=function(t,i,e){if(n.is(t)&&e==undefined){e=i;if(!e)e=window;var o=t.destination.split("#",2);t={destination:o[1],content:t.content};e.postMessage(t,o[0])}else if(typeof e!="string"){if(!e)e=window;if(typeof t=="string")n.send({destination:t,content:i},e)}};n.listen=function(t,i,e){var o=t.split("#",2);var s="";if(o.length==2){t=o[0];s=o[1]}(e||window).addEventListener("message",(function(e){var o=e.data;if(n.is(o)&&(t=="*"||e.origin==t)&&(s==""||o.destination==s))i(o.destination,o.content)}))};return n}();n("M",t);var i=function(){function n(){}n.is=function(n){return typeof n=="object"&&typeof n.name=="string"};return n}();n("T",i)}}}));