Image
Server is temporary down for maintenance
We will be back in few minutes! You can check our Twitter for updates meanwhile...
")}).then(function(){t.close(),o.resolve(a)})}),a.src=["javascript:",'document.write("");',"try { window.parent.document; }",'catch (e) { document.domain="'+u.domain+'"; }',"window.parent."+g.fullPath(["sandbox",s])+"();"].join(""),a.addEventListener("error",o.reject,!1),c.write(function(){r.parentNode.replaceChild(a,r)}),o.promise}t.exports=o.couple(n(57),function(t){t.overrideProperty("id",{get:function(){return this.sandboxEl&&this.sandboxEl.id}}),t.overrideProperty("initialized",{get:function(){return!!this.win}}),t.overrideProperty("width",{get:function(){return this._width}}),t.overrideProperty("height",{get:function(){return this._height}}),t.overrideProperty("sandboxEl",{get:function(){return this.iframeEl}}),t.defineProperty("iframeEl",{get:function(){return this._iframe}}),t.defineProperty("rootEl",{get:function(){return this.doc&&this.doc.documentElement}}),t.defineProperty("widgetEl",{get:function(){return this.doc&&this.doc.body.firstElementChild}}),t.defineProperty("win",{get:function(){return this.iframeEl&&this.iframeEl.contentWindow}}),t.defineProperty("doc",{get:function(){return this.win&&this.win.document}}),t.define("_updateCachedDimensions",function(){var n=this;return c.read(function(){var t,e=h(n.sandboxEl);"visible"==n.sandboxEl.style.visibility?n._width=e.width:(t=h(n.sandboxEl.parentElement).width,n._width=Math.min(e.width,t)),n._height=e.height})}),t.define("_setTargetToBlank",function(){var t=this.createElement("base");t.target="_blank",this.doc.head.appendChild(t)}),t.define("_didResize",function(){var e=this,t=this._resizeHandlers.slice(0);return this._updateCachedDimensions().then(function(){t.forEach(function(t){t(e)})})}),t.define("setTitle",function(t){this.iframeEl.title=t}),t.override("createElement",function(t){return this.doc.createElement(t)}),t.override("createFragment",function(){return this.doc.createDocumentFragment()}),t.override("htmlToElement",function(t){var e;return(e=this.createElement("div")).innerHTML=t,e.firstElementChild}),t.override("hasSelectedText",function(){return!!i.getSelectedText(this.win)}),t.override("addRootClass",function(t){var e=this.rootEl;return t=Array.isArray(t)?t:[t],this.initialized?c.write(function(){t.forEach(function(t){r.add(e,t)})}):m.reject(new Error("sandbox not initialized"))}),t.override("removeRootClass",function(t){var e=this.rootEl;return t=Array.isArray(t)?t:[t],this.initialized?c.write(function(){t.forEach(function(t){r.remove(e,t)})}):m.reject(new Error("sandbox not initialized"))}),t.override("hasRootClass",function(t){return r.present(this.rootEl,t)}),t.define("addStyleSheet",function(t,e){var n,r=new p;return this.initialized?((n=this.createElement("link")).type="text/css",n.rel="stylesheet",n.href=t,n.addEventListener("load",r.resolve,!1),n.addEventListener("error",r.reject,!1),c.write(y(e,null,n)).then(function(){return s(t).then(r.resolve,r.reject),r.promise})):m.reject(new Error("sandbox not initialized"))}),t.override("prependStyleSheet",function(t){var n=this.doc;return this.addStyleSheet(t,function(t){var e=n.head.firstElementChild;return e?n.head.insertBefore(t,e):n.head.appendChild(t)})}),t.override("appendStyleSheet",function(t){var e=this.doc;return this.addStyleSheet(t,function(t){return e.head.appendChild(t)})}),t.define("addCss",function(t,e){var n;return a.inlineStyle()?((n=this.createElement("style")).type="text/css",n.appendChild(this.doc.createTextNode(t)),c.write(y(e,null,n))):(f.devError("CSP enabled; cannot embed inline styles"),m.resolve())}),t.override("prependCss",function(t){var n=this.doc;return this.addCss(t,function(t){var e=n.head.firstElementChild;return e?n.head.insertBefore(t,e):n.head.appendChild(t)})}),t.override("appendCss",function(t){var e=this.doc;return this.addCss(t,function(t){return e.head.appendChild(t)})}),t.override("makeVisible",function(){var t=this;return this.styleSelf(E).then(function(){t._updateCachedDimensions()})}),t.override("injectWidgetEl",function(t){var e=this;return this.initialized?this.widgetEl?m.reject(new Error("widget already injected")):c.write(function(){e.doc.body.appendChild(t)}):m.reject(new Error("sandbox not initialized"))}),t.override("matchHeightToContent",function(){var t,e=this;return c.read(function(){t=e.widgetEl?h(e.widgetEl).height:0}),c.write(function(){e.sandboxEl.style.height=t+"px"}).then(function(){return e._updateCachedDimensions()})}),t.override("matchWidthToContent",function(){var t,e=this;return c.read(function(){t=e.widgetEl?h(e.widgetEl).width:0}),c.write(function(){e.sandboxEl.style.width=t+"px"}).then(function(){return e._updateCachedDimensions()})}),t.after("initialize",function(){this._iframe=null,this._width=this._height=0,this._resizeHandlers=[]}),t.override("insert",function(t,e,n,r){var i=this,o=new p,s=this.targetGlobal.document,a=x(t,e,n,s);return c.write(y(r,null,a)),a.addEventListener("load",function(){(function(t){try{t.contentWindow.document}catch(t){return m.reject(t)}return m.resolve(t)})(a).then(null,y(T,null,t,e,n,a,s)).then(o.resolve,o.reject)},!1),a.addEventListener("error",o.reject,!1),o.promise.then(function(t){var e=d(i._didResize,50,i);return i._iframe=t,i.win.addEventListener("resize",e,!1),m.all([i._setTargetToBlank(),i.addRootClass("SandboxRoot"),i.prependCss(".SandboxRoot { display: none; }")])})}),t.override("onResize",function(t){this._resizeHandlers.push(t)}),t.after("styleSelf",function(){return this._updateCachedDimensions()})})},function(t,e){t.exports=function(){throw new Error("unimplemented method")}},function(t,e,n){var r=n(20),o=n(54),s=n(11),a=n(22),u=n(0),c=n(9).get("scribeCallback"),i=[],d=s.url(a.CLIENT_EVENT_ENDPOINT,{dnt:0,l:""}),l=encodeURIComponent(d).length;function f(t,e,n,r){var i=!u.isObject(t),o=!!e&&!u.isObject(e);i||o||(c&&c(arguments),h(a.formatClientEventNamespace(t),a.formatClientEventData(e,n,r),a.CLIENT_EVENT_ENDPOINT))}function h(t,e,n){var r,i;n&&u.isObject(t)&&u.isObject(e)&&(o.log(t,e),r=a.flattenClientEventPayload(t,e),i={l:a.stringify(r)},a.noticeSeen(t)&&(i.notice_seen=!0),r.dnt&&(i.dnt=1),g(s.url(n,i)))}function p(t,e,n,r){var i=!u.isObject(t),o=!!e&&!u.isObject(e);if(!i&&!o)return m(a.flattenClientEventPayload(a.formatClientEventNamespace(t),a.formatClientEventData(e,n,r)))}function m(t){return i.push(t),i}function v(t){return encodeURIComponent(t).length+3}function g(t){return(new Image).src=t}t.exports={canFlushOneItem:function(t){var e=v(a.stringify(t));return l+e<2083},_enqueueRawObject:m,scribe:h,clientEvent:f,clientEvent2:function(t,e,n){return f(t,e,n,2)},enqueueClientEvent:p,flushClientEvents:function(){var o;return 1
',t.appendChild(t.resizeSensor),{fixed:1,absolute:1}[(r="position",(n=t).currentStyle?n.currentStyle[r]:window.getComputedStyle?window.getComputedStyle(n,null).getPropertyValue(r):n.style[r])]||(t.style.position="relative");var s,a,u=t.resizeSensor.childNodes[0],c=u.childNodes[0],d=t.resizeSensor.childNodes[1],l=(d.childNodes[0],function(){c.style.width=u.offsetWidth+10+"px",c.style.height=u.offsetHeight+10+"px",u.scrollLeft=u.scrollWidth,u.scrollTop=u.scrollHeight,d.scrollLeft=d.scrollWidth,d.scrollTop=d.scrollHeight,s=t.offsetWidth,a=t.offsetHeight});l();function f(t,e,n){t.attachEvent?t.attachEvent("on"+e,n):t.addEventListener(e,n)}function h(){t.offsetWidth==s&&t.offsetHeight==a||t.resizedAttached&&t.resizedAttached.call(),l()}f(u,"scroll",h),f(d,"scroll",h)}var r=Object.prototype.toString.call(n),i="[object Array]"===r||"[object NodeList]"===r||"[object HTMLCollection]"===r||"undefined"!=typeof jQuery&&n instanceof jQuery||"undefined"!=typeof Elements&&n instanceof Elements;if(i)for(var o=0,s=n.length;o
::CLOUDFLARE_ERROR_500S_BOX::