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