"use strict";!function(){function e(e,n,o){f&&console.log("owComposerAPI "+e+": "+n+" -> "+o)}function n(n){var o=n.data;if("string"==typeof o&&(o=JSON.parse(o)),"object"==typeof o&&"string"==typeof o.name){var t=o.name.toLowerCase(),a=o.data,r=new Date;if("loaded"===t&&(v&&e("PERFORMANCE","__onMessage","Loading time (ms): "+r.getTime()-v.getTime()),u=a),0===t.indexOf("__response-")&&c[t])e("PERFORMANCE","__onMessage",'"'+c[t].eventName+'" response time (ms):',r.getTime()-c[t].start.getTime()),c[t].func(a),c[t]=null,delete c[t];else if("__redirect"===t)e("DEBUG","__onMessage","Redirecting to "+a),location.href=a;else if("__expandview"===t)e("DEBUG","__onMessage","Expanding the Composer Viewport area"),l&&!g&&(m=l.style.cssText,l.style.position="fixed",l.style.top="0px",l.style.left="0px",l.style.right="0px",l.style.bottom="0px",l.style.zIndex="99999",g=!0);else if("__collapseview"===t)e("DEBUG","__onMessage","Collapsing the Composer Viewport area"),l&&g&&(l.style.cssText=m,g=!1);else{var d=0,f=0,p=[];for(d=0;d0?o+="&":n&&(o="?"),o+=t[a]+"="+encodeURIComponent(e[t[a]]).replace(/%20/g,"+");return o}function a(e,o){var t=!1;l&&!o.forceReload&&e===p||(t=!0),t?(l&&(l.parentNode&&l.parentNode.removeChild(l),l=null),l=document.createElement("IFRAME"),l.src=e,p=e,g=!1):setTimeout(function(){n({data:{name:"loaded",data:u}})},0),l.style.cssText=m,l.setAttribute("allowFullScreen","true");var a="no";"boolean"==typeof o.scrolling?a=o.scrolling?"yes":"no":"string"==typeof o.scrolling&&/^auto|yes$/i.test(o.scrolling)&&(a=o.scrolling),l.setAttribute("scrolling",a),t&&r.appendChild(l)}var r=null,l=null,s=[],i=[],c={},d=0,f=!1,p=null,u=500,m="",g=!1,v=null;window.owComposerAPI={init:function(s,i,c,d){if(f=!0,("object"==typeof Node?i instanceof Node:i&&"object"==typeof i&&"number"==typeof i.nodeType&&"string"==typeof i.nodeName)&&(d=c,c=i,i=void 0),d=d||{},!("object"==typeof Node?c instanceof Node:c&&"object"==typeof c&&"number"==typeof c.nodeType&&"string"==typeof c.nodeName))return e("ERROR","init(authToken, container)","container must be a DOM node!"),!1;if(r=c,!l){if(!window.postMessage)return e("ERROR","init(authToken, container)","Failed to initialize event messenging system, your browser does not support postMessage!"),!1;window.addEventListener?window.addEventListener("message",o,!1):window.attachEvent&&window.attachEvent("onmessage",o)}window.owComposerAPI.off();var p={width:"100%",height:"100%",border:"0px",display:"none"},g=0,w="",y=d.style||{};for(w in p)({}).hasOwnProperty.call(y,w)||(y[w]=p[w]);m="";for(w in y)m+=w+":"+y[w]+";";var R="http";d.secure&&(R="https");var h="apt2b-composer.outwardinc.com",b=d.queries||{};if(v=new Date,s.indexOf("?")>-1){var k=s.split("?")[1].split("&");for(s=s.split("?")[0],g=0;g