(function(){function t(b,a){g.apply(this,arguments);try{if(l.test(a)){var c=q+"-"+ ++u;this.__idm_request_id__=c;this.setRequestHeader("Accept","x-idm-request-id/"+c);this.addEventListener("loadend",v.bind(this))}}catch(d){}}function v(){try{var b=this.__idm_request_id__;if(b){var a=m.exec(this.responseText);k([1229212979,b,a&&(a[1]||this.responseText)],"/")}}catch(c){}}function w(b,a){var c=h.apply(this,arguments);try{if(l.test(b.url||b))return c.then(x)}catch(d){}return c}function x(b){try{var a=
b.headers.get("x-idm-request-id");if(a)if(b.ok){var c=b.text,d=b.json;b.text=function(){return c.call(this).then(r.bind(null,a,!1))};b.json=function(){return d.call(this).then(r.bind(null,a,!0))}}else k([1229212979,a],"/")}catch(e){}return b}function r(b,a,c){try{var d=a?JSON.stringify(c):c;k([1229212979,b,m.test(d)&&d||null],"/")}catch(e){}return c}const y=window.origin||document.origin||location.origin,k=window.postMessage.bind(window),z=Array.isArray;var u=0,q=0,l,m,g,h;const A=Object.isExtensible,
B=Function.call.bind(Object.hasOwnProperty);window.addEventListener("message",function(b){var a=b.data;if(z(a)&&b.origin==y)switch(a[0]){case 1229212978:q=a[1];var c=a[2],d=a[3],e=a[4];a=a[5];e?(l=RegExp(e),m=RegExp(a)):c=d=!1;try{c?g||(g=XMLHttpRequest.prototype.open)&&(XMLHttpRequest.prototype.open=t):g&&(XMLHttpRequest.prototype.open=g,g=null),d?h||(h=fetch)&&(fetch=w):h&&(fetch=h,h=null)}catch(n){}break;case 1229212980:b=a[1];a=a[2];try{if(c=document.querySelector('[__idm_id__="'+b+'"]'))a:{var f=
c;e=a.split(".");if("*"==e[0]){e.shift();for(var C of Object.getOwnPropertyNames(c))try{if(A(f=c[C])&&B(f,e[0])){for(var p of e)f=f[p];d=f;break a}}catch(n){}}else try{for(p of e)f=f[p];d=f;break a}catch(n){}d=void 0}else d=null;k([1229212981,b,d],"/")}catch(n){}}},!1);k([1229212977],"/")})();
