/*! For license information please see vidoomy-player.js.LICENSE.txt */ (()=>{var t={4655:(t,e,r)=>{"use strict";r.r(e),r.d(e,{ApmBase:()=>Mr,apm:()=>Rr,apmBase:()=>Rr,default:()=>Ur,init:()=>Nr});const n=function(t){var e=this.constructor;return this.then((function(r){return e.resolve(t()).then((function(){return r}))}),(function(r){return e.resolve(t()).then((function(){return e.reject(r)}))}))};function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}const o=function(t){return new this((function(e,r){if(!t||void 0===t.length)return r(new TypeError(i(t)+" "+t+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var n=Array.prototype.slice.call(t);if(0===n.length)return e([]);var o=n.length;function a(t,r){if(r&&("object"===i(r)||"function"==typeof r)){var s=r.then;if("function"==typeof s)return void s.call(r,(function(e){a(t,e)}),(function(r){n[t]={status:"rejected",reason:r},0==--o&&e(n)}))}n[t]={status:"fulfilled",value:r},0==--o&&e(n)}for(var s=0;s0)return n}}()}}function V(t){return N(t,S.call(arguments,1),!1)}function F(t){return N(t,S.call(arguments,1),!0)}function D(t){return void 0===t}function B(){}function q(t){return t.replace(/[.*"]/g,"_")}function G(t,e){for(var r=null,n=0;n=0?t:z()}function W(t,e){return D(e)||D(t)?null:parseInt(e-t)}function Q(t){E.resolve().then(t)}function Y(){return"function"==typeof x.getEntriesByType}function J(t){return"undefined"!=typeof PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.indexOf(t)>=0}function X(){return"interactionCount"in performance}function K(t){return t.redirectStart>0}var Z={fetchInProgress:!1};function $(t){return"__apm_symbol__"+t}function tt(t,e,r){for(var n=t;n&&!n.hasOwnProperty(e);)n=Object.getPrototypeOf(n);!n&&t[e]&&(n=t);var i,o,a,s,u=$(e);if(n&&!(i=n[u])){i=n[u]=n[e];var c=n&&Object.getOwnPropertyDescriptor(n,e);if(!(s=c)||!1!==s.writable&&("function"!=typeof s.get||void 0!==s.set)){var l=r(i,u,e);n[e]=function(){return l(this,arguments)},o=n[e],a=i,o[$("OriginalDelegate")]=a}}return i}var et=$("xhrIgnore"),rt=$("xhrSync"),nt=$("xhrURL"),it=$("xhrMethod"),ot="schedule",at="invoke",st="addEventListener",ut=["link","css","script","img","xmlhttprequest","fetch","beacon","iframe"],ct=3e5,lt="page-load",dt="custom",ft="user-interaction",ht="http-request",pt="temporary",vt="Unknown",mt="page-exit",yt=[lt,"route-change",ft,ht,dt,pt],gt=60,bt="transaction:end",wt="config:change",Et="queue:flush",At="queue:add_transaction",St="transaction:ignore",Tt="xmlhttprequest",xt="fetch",kt="history",_t="eventtarget",Ct="click",Pt="error",Ot=":after",Lt="elastic_apm_config",It="longtask",jt="largest-contentful-paint",Mt="first-input",Rt="layout-shift",Nt="errors",Ut="transactions",Vt="ConfigService",Ft="LoggingService",Dt="TransactionService",Bt="ApmServer",qt="PerformanceMonitoring",Gt="ErrorLogging",zt=".truncated",Ht=1024;function Wt(t){var e=XMLHttpRequest.prototype;if(e&&e[st])var r="readystatechange",n="load",i="error",o=tt(e,"open",(function(){return function(t,e){return t[et]||(t[it]=e[0],t[nt]=e[1],t[rt]=!1===e[2]),o.apply(t,e)}})),a=tt(e,"send",(function(){return function(e,o){if(e[et])return a.apply(e,o);var u={source:Tt,state:"",type:"macroTask",data:{target:e,method:e[it],sync:e[rt],url:e[nt],status:""}};try{return function(e){if(e.state!==ot){e.state=ot,t(ot,e);var o=e.data.target;a(r),a(n),a("timeout"),a(i),a("abort")}function a(t){o[st](t,(function(t){var i=t.type;i===r?4===o.readyState&&0!==o.status&&s(e,"success"):s(e,i===n?"success":i)}))}}(u),a.apply(e,o)}catch(t){throw s(u,i),t}}}));function s(e,r){e.state!==at&&(e.state=at,e.data.status=r,t(at,e))}}function Qt(t){return!(0===t||t>399&&t<600)}function Yt(){return Yt=Object.assign||function(t){for(var e=1;e-1&&r.observers[t].splice(n,1)}},e.sendOnly=function(t,e){var r=this.observers[t];r&&r.forEach((function(t){try{t.apply(void 0,e)}catch(t){console.log(t,t.stack)}}))},e.send=function(t,e){this.sendOnly(t+":before",e),this.sendOnly(t,e),this.sendOnly(t+Ot,e)},t}();var $t=new Zt,te=!1;function ee(){return te||(te=!0,Wt((function(t,e){$t.send(Tt,[t,e])})),Kt((function(t,e){$t.send(xt,[t,e])})),function(t){if(window.history){var e=history.pushState;"function"==typeof e&&(history.pushState=function(r,n,i){t(at,{source:kt,data:{state:r,title:n,url:i}}),e.apply(this,arguments)})}}((function(t,e){$t.send(kt,[t,e])}))),$t}var re=!1,ne={bootstrapTime:null,lastHiddenStart:Number.MIN_SAFE_INTEGER},ie=!1;function oe(){return I()?(ee(),ne.bootstrapTime=z(),ie=!0):T&&console.log("[Elastic APM] platform is not supported!"),ie}function ae(t,e){var r=e.error,n=e.filename,i=e.lineno,o=e.colno,a=[];if(r)try{a=t.parse(r)}catch(t){}return function(t){return 0!==t.length&&(1!==t.length||"lineNumber"in t[0])}(a)||(a=[{fileName:n,lineNumber:i,columnNumber:o}]),a.map((function(t){return t.functionName&&(t.functionName=(e=t.functionName,r=e.split("/"),e=r.length>1?["Object",r[r.length-1]].join("."):r[0],e=(r=(e=(e=e.replace(/.<$/gi,".")).replace(/^Anonymous function$/,"")).split(".")).length>1?r[r.length-1]:r[0])),t;var e,r})).map((function(t){var e=t.fileName,r=t.lineNumber,n=t.columnNumber,i=t.functionName,o=void 0===i?"":i;if(!e&&!r)return{};if(!n&&!r)return{};var a,s,u=function(t){return void 0===t&&(t=""),""===t&&(t=""),t}(e),c=(a=u,s=window.location.origin||window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:""),a.indexOf(s)>-1&&(a=a.replace(s+"/","")),a);return function(t){return!!t&&0===window.location.href.indexOf(t)}(u)&&(c="(inline script)"),{abs_path:e,filename:c,function:o,lineno:r,colno:n}}))}var se=[["#","hash"],["?","query"],["/","path"],["@","auth",1],[NaN,"host",void 0,1]],ue=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\S\s]*)/i,ce=function(){function t(t){var e,r=this.extractProtocol(t||""),n=r.protocol,i=r.address,o=r.slashes,a=!n&&!o,s=this.getLocation(),u=se.slice();i=i.replace("\\","/"),o||(u[2]=[NaN,"path"]);for(var c=0;c=0||(i[r]=t[r]);return i}(r,le)),i=ve(),o={};if(t.type===mt)t.ensureContext(),t.context.page&&t.context.page.url&&(i.page.url=t.context.page.url);else if(t.type===lt&&Y()){var a=x.getEntriesByType("navigation");a&&a.length>0&&(o={response:he(a[0])})}t.addContext(i,o,n)}var ge={service:{name:[Ht,!0],version:!0,agent:{version:[Ht,!0]},environment:!0},labels:{"*":!0}},be={"*":!0,headers:{"*":!0}},we={user:{id:!0,email:!0,username:!0},tags:{"*":!0},http:{response:be},destination:{address:[Ht],service:{"*":[Ht,!0]}},response:be},Ee={name:[Ht,!0],type:[Ht,!0],id:[Ht,!0],trace_id:[Ht,!0],parent_id:[Ht,!0],transaction_id:[Ht,!0],subtype:!0,action:!0,context:we},Ae={name:!0,parent_id:!0,type:[Ht,!0],id:[Ht,!0],trace_id:[Ht,!0],span_count:{started:[Ht,!0]},context:we},Se={id:[Ht,!0],trace_id:!0,transaction_id:!0,parent_id:!0,culprit:!0,exception:{type:!0},transaction:{type:!0},context:we};function Te(t){return null==t||""===t||void 0===t}function xe(t,e,r){var n=function(t,e,r,n){return void 0===e&&(e=Ht),void 0===r&&(r=!1),void 0===n&&(n="N/A"),r&&Te(t)&&(t=n),"string"==typeof t?t.substring(0,e):t}(t[e],r[0],r[1]);Te(n)?delete t[e]:t[e]=n}function ke(t,e,r){void 0===t&&(t={}),void 0===r&&(r=e);for(var n=Object.keys(t),i=[],o=function(o){var a=n[o],s=!0===t[a]?i:t[a];Array.isArray(s)?"*"===a?Object.keys(r).forEach((function(t){return xe(r,t,s)})):xe(r,a,s):ke(s,e,r[a])},a=0;a=0)){var i=t[n];if(null!=i&&"function"!=typeof i){if("object"===Pe(i)){if("function"!=typeof i.toISOString)return;i=i.toISOString()}r[n]=i,e=!0}}})),e)return r}(o);c&&(u.custom=c)}s||a&&a.indexOf(":")>-1&&(s=a.split(":")[0]);var l=this._transactionService.getCurrentTransaction(),d=l?l.context:{},f=this._configService.get("context"),h=(f.tags,function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n=0||(i[r]=t[r]);return i}(f,Oe)),p=F({},ve(),d,h,u),v={id:P(),culprit:r,exception:{message:a,stacktrace:e,type:s},context:p};return l&&(v=V(v,{trace_id:l.traceId,parent_id:l.id,transaction_id:l.id,transaction:{type:l.type,sampled:l.sampled}})),ke(Se,v)},e.logErrorEvent=function(t){if(void 0!==t){var e=this.createErrorDataModel(t);void 0!==e.exception.message&&this._apmServer.addError(e)}},e.registerListeners=function(){var t=this;window.addEventListener("error",(function(e){return t.logErrorEvent(e)})),window.addEventListener("unhandledrejection",(function(e){return t.logPromiseEvent(e)}))},e.logPromiseEvent=function(t){var e,r=t.reason;if(null==r&&(r=""),"string"==typeof r.message){var n=r.name?r.name+": ":"";e={error:r,message:Ie+n+r.message}}else e=this._parseRejectReason(r);this.logErrorEvent(e)},e.logError=function(t){var e={};return"string"==typeof t?e.message=t:e.error=t,this.logErrorEvent(e)},e._parseRejectReason=function(t){var e={message:Ie};if(Array.isArray(t))e.message+="";else if("object"===Pe(t))try{e.message+=JSON.stringify(t),e.error=t}catch(t){e.message+=""}else e.message+="function"==typeof t?"":t;return e},t}();const Me=je;const Re=function(){function t(t,e){void 0===e&&(e={}),this.onFlush=t,this.items=[],this.queueLimit=e.queueLimit||-1,this.flushInterval=e.flushInterval||0,this.timeoutId=void 0}var e=t.prototype;return e._setTimer=function(){var t=this;this.timeoutId=setTimeout((function(){return t.flush()}),this.flushInterval)},e._clear=function(){void 0!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=void 0),this.items=[]},e.flush=function(){this.onFlush(this.items),this._clear()},e.add=function(t){this.items.push(t),-1!==this.queueLimit&&this.items.length>=this.queueLimit?this.flush():void 0===this.timeoutId&&this._setTimer()},t}();const Ne=function(){function t(){}return t.stringify=function(t){return JSON.stringify(t)+"\n"},t}();var Ue=["fetchStart","domainLookupStart","domainLookupEnd","connectStart","connectEnd","requestStart","responseStart","responseEnd","domLoading","domInteractive","domContentLoadedEventStart","domContentLoadedEventEnd","domComplete","loadEventStart","loadEventEnd"],Ve=["fs","ls","le","cs","ce","qs","rs","re","dl","di","ds","de","dc","es","ee"];function Fe(t){var e=function(t){var e=t.redirectStart,r=t.fetchStart,n=t.navigationStart,i=t.responseStart,o=t.responseEnd;if(r>=n&&i>=r&&o>=i){var a={};return Ue.forEach((function(n){var i=t[n];i&&i>=r&&(K(t)?a[n]=parseInt(i-e):a[n]=parseInt(i-r))})),a}return null}(t);return null==e?null:{navigationTiming:e,agent:{timeToFirstByte:e.responseStart,domInteractive:e.domInteractive,domComplete:e.domComplete}}}function De(t){return{ts:t.transfer_size,ebs:t.encoded_body_size,dbs:t.decoded_body_size}}function Be(t){if(!t)return null;var e={},r=t.page,n=t.http,i=t.response,o=t.destination,a=t.user,s=t.custom;if(r&&(e.p={rf:r.referer,url:r.url}),n&&(e.h=function(t){var e={},r=t.method,n=t.status_code,i=t.url,o=t.response;return e.url=i,r&&(e.mt=r),n&&(e.sc=n),o&&(e.r=De(o)),e}(n)),i&&(e.r=De(i)),o){var u=o.service;e.dt={se:{n:u.name,t:u.type,rc:u.resource},ad:o.address,po:o.port}}return a&&(e.u={id:a.id,un:a.username,em:a.email}),s&&(e.cu=s),e}function qe(t){if(!t)return null;var e=function(t){if(!t)return null;var e={};return Ve.forEach((function(r,n){var i=Ue[n];e[r]=t[i]})),e}(t.navigationTiming);return{nt:e,a:Ge(e,t.agent)}}function Ge(t,e){var r={};if(t&&(r={fb:t.rs,di:t.di,dc:t.dc}),e){var n=e.firstContentfulPaint,i=e.largestContentfulPaint;n&&(r.fp=n),i&&(r.lp=i)}return 0===Object.keys(r).length?null:r}function ze(t,e){void 0===e&&(e="gzip");var r="function"==typeof CompressionStream;return new E((function(n){if(!r)return n(t);if(function(){var t="_elastic_inspect_beacon_";if(null!=sessionStorage.getItem(t))return!0;if(!window.URL||!window.URLSearchParams)return!1;try{var e=new URL(window.location.href).searchParams.has(t);return e&&sessionStorage.setItem(t,!0),e}catch(t){}return!1}())return n(t);var i=t.payload,o=t.headers,a=t.beforeSend,s=new Blob([i]).stream().pipeThrough(new CompressionStream(e));return new Response(s).blob().then((function(t){return o["Content-Encoding"]=e,n({payload:t,headers:o,beforeSend:a})}))}))}function He(t,e,r){var n=r.timeout,i=void 0===n?HTTP_REQUEST_TIMEOUT:n,o=r.payload,a=r.headers,s=r.beforeSend,u=r.sendCredentials;return new E((function(r,n){var c=new window.XMLHttpRequest;if(c[et]=!0,c.open(t,e,!0),c.timeout=i,c.withCredentials=u,a)for(var l in a)a.hasOwnProperty(l)&&c.setRequestHeader(l,a[l]);c.onreadystatechange=function(){if(4===c.readyState){var t=c.status,i=c.responseText;Qt(t)?r(c):n({url:e,status:t,responseText:i})}},c.onerror=function(){var t=c.status,r=c.responseText;n({url:e,status:t,responseText:r})};var d=!0;"function"==typeof s&&(d=s({url:e,method:t,headers:a,payload:o,xhr:c})),d?c.send(o):n({url:e,status:0,responseText:"Request rejected by user configuration."})}))}var We=function(){function t(t,e){this._configService=t,this._loggingService=e,this.queue=void 0,this.throttleEvents=B}var e=t.prototype;return e.init=function(){var t=this,e=this._configService.get("queueLimit"),r=this._configService.get("flushInterval"),n=this._configService.get("eventsLimit");this.queue=new Re((function(e){var r=t.sendEvents(e);r&&r.catch((function(e){t._loggingService.warn("Failed sending events!",t._constructError(e))}))}),{queueLimit:e,flushInterval:r}),this.throttleEvents=function(t,e,r){var n,i=this,o=r.limit,a=r.interval,s=0;return function(){return s++,void 0===n&&(n=setTimeout((function(){s=0,n=void 0}),a)),s>o&&"function"==typeof e?e.apply(i,arguments):t.apply(i,arguments)}}(this.queue.add.bind(this.queue),(function(){return t._loggingService.warn("Dropped events due to throttling!")}),{limit:n,interval:6e4}),this._configService.observeEvent(Et,(function(){t.queue.flush()}))},e._postJson=function(t,e){var r=this,n={payload:e,headers:{"Content-Type":"application/x-ndjson"},beforeSend:this._configService.get("apmRequest")};return ze(n).catch((function(t){return n})).then((function(e){return r._makeHttpRequest("POST",t,e)})).then((function(t){return t.responseText}))},e._constructError=function(t){var e=t.url,r=t.status;t.responseText;if(void 0===r)return t;var n=e+" HTTP status: "+r;return new Error(n)},e._makeHttpRequest=function(t,e,r){var n=void 0===r?{}:r,i=n.timeout,o=void 0===i?1e4:i,a=n.payload,s=n.headers,u=n.beforeSend,c=this._configService.get("sendCredentials");return!u&&Jt(t,a)?function(t,e,r){var n,i=r.keepalive,o=void 0!==i&&i,a=r.timeout,s=void 0===a?1e4:a,u=r.payload,c=r.headers,l=r.sendCredentials,d={};if("function"==typeof AbortController){var f=new AbortController;d.signal=f.signal,setTimeout((function(){return f.abort()}),s)}return window.fetch(e,Yt({body:u,headers:c,method:t,keepalive:o,credentials:l?"include":"omit"},d)).then((function(t){return(n=t).text()})).then((function(t){var r={url:e,status:n.status,responseText:t};if(!Qt(n.status))throw r;return r}))}(t,e,{keepalive:!0,timeout:o,payload:a,headers:s,sendCredentials:c}).catch((function(r){if(r instanceof TypeError)return He(t,e,{timeout:o,payload:a,headers:s,beforeSend:u,sendCredentials:c});throw r})):He(t,e,{timeout:o,payload:a,headers:s,beforeSend:u,sendCredentials:c})},e.fetchConfig=function(t,e){var r=this,n=this.getEndpoints().configEndpoint;if(!t)return E.reject("serviceName is required for fetching central config.");n+="?service.name="+t,e&&(n+="&service.environment="+e);var i=this._configService.getLocalConfig();i&&(n+="&ifnonematch="+i.etag);var o=this._configService.get("apmRequest");return this._makeHttpRequest("GET",n,{timeout:5e3,beforeSend:o}).then((function(t){var e=t.status,n=t.responseText;if(304===e)return i;var o=JSON.parse(n),a=t.getResponseHeader("etag");return a&&(o.etag=a.replace(/["]/g,""),r._configService.setLocalConfig(o,!0)),o})).catch((function(t){var e=r._constructError(t);return E.reject(e)}))},e.createMetaData=function(){var t=this._configService,e={service:{name:t.get("serviceName"),version:t.get("serviceVersion"),agent:{name:"rum-js",version:t.version},language:{name:"javascript"},environment:t.get("environment")},labels:t.get("context.tags")};return ke(ge,e)},e.addError=function(t){var e;this.throttleEvents(((e={})[Nt]=t,e))},e.addTransaction=function(t){var e;this.throttleEvents(((e={})[Ut]=t,e))},e.ndjsonErrors=function(t,e){var r=e?"e":"error";return t.map((function(t){var n;return Ne.stringify(((n={})[r]=e?function(t){var e,r=t.exception,n={id:t.id,cl:t.culprit,ex:{mg:r.message,st:(e=r.stacktrace,e.map((function(t){return{ap:t.abs_path,f:t.filename,fn:t.function,li:t.lineno,co:t.colno}}))),t:t.type},c:Be(t.context)},i=t.transaction;return i&&(n.tid=t.trace_id,n.pid=t.parent_id,n.xid=t.transaction_id,n.x={t:i.type,sm:i.sampled}),n}(t):t,n))}))},e.ndjsonMetricsets=function(t){return t.map((function(t){return Ne.stringify({metricset:t})})).join("")},e.ndjsonTransactions=function(t,e){var r=this,n=e?"x":"transaction";return t.map((function(t){var i,o="",a="";return e||(t.spans&&(o=t.spans.map((function(t){return Ne.stringify({span:t})})).join(""),delete t.spans),t.breakdown&&(a=r.ndjsonMetricsets(t.breakdown),delete t.breakdown)),Ne.stringify(((i={})[n]=e?function(t){var e,r=t.spans.map((function(e){var r={id:e.id,n:e.name,t:e.type,s:e.start,d:e.duration,c:Be(e.context),o:e.outcome,sr:e.sample_rate};return e.parent_id!==t.id&&(r.pid=e.parent_id),!0===e.sync&&(r.sy=!0),e.subtype&&(r.su=e.subtype),e.action&&(r.ac=e.action),r})),n={id:t.id,tid:t.trace_id,n:t.name,t:t.type,d:t.duration,c:Be(t.context),k:qe(t.marks),me:(e=t.breakdown,e.map((function(t){var e=t.span,r=t.samples;return{y:{t:e.type},sa:{ysc:{v:r["span.self_time.count"].value},yss:{v:r["span.self_time.sum.us"].value}}}}))),y:r,yc:{sd:r.length},sm:t.sampled,sr:t.sample_rate,o:t.outcome};if(t.experience){var i=t.experience,o=i.cls,a=i.fid,s=i.tbt,u=i.longtask;n.exp={cls:o,fid:a,tbt:s,lt:u}}if(t.session){var c=t.session,l=c.id,d=c.sequence;n.ses={id:l,seq:d}}return n}(t):t,i))+o+a}))},e.sendEvents=function(t){var e,r;if(0!==t.length){for(var n=[],i=[],o=0;o2,d=[],f=this.createMetaData(),h=l?"m":"metadata";d.push(Ne.stringify(((r={})[h]=l?function(t){var e=t.service,r=t.labels,n=e.agent,i=e.language;return{se:{n:e.name,ve:e.version,a:{n:n.name,ve:n.version},la:{n:i.name},en:e.environment},l:r}}(f):f,r)));var p=(d=d.concat(this.ndjsonErrors(c[Nt],l),this.ndjsonTransactions(c[Ut],l))).join(""),v=this.getEndpoints().intakeEndpoint;return this._postJson(v,p)}this._loggingService.warn("Dropped payload due to filtering!")}}},e.getEndpoints=function(){var t=this._configService.get("serverUrl"),e=this._configService.get("apiVersion");return{intakeEndpoint:t+(this._configService.get("serverUrlPrefix")||"/intake/v"+e+"/rum/events"),configEndpoint:t+"/config/v1/rum/agents"}},t}();const Qe=We;function Ye(){return Ye=Object.assign||function(t){for(var e=1;e0?t.charAt(0).toUpperCase()+t.substring(1):t})).join("")]=o.value||o.nodeValue)}return e}(U()),t);this.setConfig(e)},e.setVersion=function(t){this.version=t},e.addFilter=function(t){if("function"!=typeof t)throw new Error("Argument to must be function");this.filters.push(t)},e.applyFilters=function(t){for(var e=0;e0&&(r=1e-4),t.transactionSampleRate=Math.round(1e4*r)/1e4),F(this.config,t),this.events.send(wt,[this.config])},e.validate=function(t){void 0===t&&(t={});var e=["serviceName","serverUrl"],r=Object.keys(this.config),n={missing:[],invalid:[],unknown:[]};Object.keys(t).forEach((function(i){-1===e.indexOf(i)||t[i]||n.missing.push(i),-1===r.indexOf(i)&&n.unknown.push(i)})),t.serviceName&&!/^[a-zA-Z0-9 _-]+$/.test(t.serviceName)&&n.invalid.push({key:"serviceName",value:t.serviceName,allowed:"a-z, A-Z, 0-9, _, -, "});var i=t.transactionSampleRate;return void 0!==i&&("number"!=typeof i||isNaN(i)||i<0||i>1)&&n.invalid.push({key:"transactionSampleRate",value:i,allowed:"Number between 0 and 1"}),n},e.getLocalConfig=function(){var t=sessionStorage;this.config.session&&(t=localStorage);var e=t.getItem(Lt);if(e)return JSON.parse(e)},e.setLocalConfig=function(t,e){if(t){if(e)t=Ye({},this.getLocalConfig(),t);var r=sessionStorage;this.config.session&&(r=localStorage),r.setItem(Lt,JSON.stringify(t))}},e.dispatchEvent=function(t,e){this.events.send(t,e)},e.observeEvent=function(t,e){return this.events.observe(t,e)},t}();const Xe=Je;const Ke=function(){function t(t){void 0===t&&(t={}),this.levels=["trace","debug","info","warn","error"],this.level=t.level||"warn",this.prefix=t.prefix||"",this.resetLogMethods()}var e=t.prototype;return e.shouldLog=function(t){return this.levels.indexOf(t)>=this.levels.indexOf(this.level)},e.setLevel=function(t){t!==this.level&&(this.level=t,this.resetLogMethods())},e.resetLogMethods=function(){var t=this;this.levels.forEach((function(e){t[e]=t.shouldLog(e)?function(){var t=e;"trace"!==e&&"debug"!==e||(t="info");var r=arguments;if(r[0]=this.prefix+r[0],console){var n=console[t]||console.log;"function"==typeof n&&n.apply(console,r)}}:B}))},t}();var Ze,$e=((Ze={})[Vt]=function(){return new Xe},Ze[Ft]=function(){return new Ke({prefix:"[Elastic APM] "})},Ze[Bt]=function(t){var e=t.getService([Vt,Ft]),r=e[0],n=e[1];return new Qe(r,n)},Ze),tr=function(){function t(){this.instances={},this.initialized=!1}var e=t.prototype;return e.init=function(){if(!this.initialized){this.initialized=!0;var t=this.getService(Vt);t.init();var e=this.getService([Ft,Bt]),r=e[0],n=e[1];t.events.observe(wt,(function(){var e=t.get("logLevel");r.setLevel(e)})),n.init()}},e.getService=function(t){var e=this;return"string"==typeof t?(this.instances[t]||"function"==typeof $e[t]&&(this.instances[t]=$e[t](this)),this.instances[t]):Array.isArray(t)?t.map((function(t){return e.getService(t)})):void 0},t}();var er=function(){function t(t,e,r,n){this._apmServer=t,this._configService=e,this._logginService=r,this._transactionService=n}var e=t.prototype;return e.init=function(t){var e=this;void 0===t&&(t={}),this._configService.events.observe(bt+Ot,(function(t){var r=e.createTransactionPayload(t);r&&(e._apmServer.addTransaction(r),e._configService.dispatchEvent(At))})),t[kt]&&$t.observe(kt,this.getHistorySub()),t[Tt]&&$t.observe(Tt,this.getXHRSub()),t[xt]&&$t.observe(xt,this.getFetchSub())},e.getHistorySub=function(){var t=this._transactionService;return function(e,r){r.source===kt&&e===at&&t.startTransaction(r.data.title,"route-change",{managed:!0,canReuse:!0})}},e.getXHRSub=function(){var t=this;return function(e,r){r.source!==Tt||Z.fetchInProgress||t.processAPICalls(e,r)}},e.getFetchSub=function(){var t=this;return function(e,r){r.source===xt&&t.processAPICalls(e,r)}},e.processAPICalls=function(t,e){var r=this._configService,n=this._transactionService;if(e.data&&e.data.url){var i=this._apmServer.getEndpoints();if(Object.keys(i).some((function(t){return-1!==e.data.url.indexOf(i[t])})))return}if(t===ot&&e.data){var o=e.data,a=new ce(o.url),s=o.method+" "+(a.relative?a.path:M(a.href));n.getCurrentTransaction()||n.startTransaction(s,ht,{managed:!0});var u=n.startSpan(s,"external.http",{blocking:!0});if(!u)return;var c=r.get("distributedTracing"),l=r.get("distributedTracingOrigins"),d=new ce(window.location.href),f=L(a.origin,d.origin)||L(a.origin,l),h=o.target;if(c&&f&&h)this.injectDtHeader(u,h),r.get("propagateTracestate")&&this.injectTSHeader(u,h);else re;o.sync&&(u.sync=o.sync),o.span=u}else if(t===at){var p=e.data;if(p&&p.span){var v,m,y=p.span,g=p.response,b=p.target;v=g?g.status:b.status,m="abort"==p.status||p.aborted?"unknown":v>=400||0==v?"failure":"success",y.outcome=m;var w=n.getCurrentTransaction();w&&w.type===ht&&(w.outcome=m),n.endSpan(y,p)}}},e.injectDtHeader=function(t,e){var r,n=this._configService.get("distributedTracingHeaderName"),i=function(t){if(t&&t.traceId&&t.id&&t.parentId){var e=t.sampled?"01":"00",r=t.sampled?t.id:t.parentId;return"00-"+t.traceId+"-"+r+"-"+e}}(t);/^[\da-f]{2}-[\da-f]{32}-[\da-f]{16}-[\da-f]{2}$/.test(r=i)&&"00000000000000000000000000000000"!==r.slice(3,35)&&"0000000000000000"!==r.slice(36,52)&&i&&n&&O(e,n,i)},e.injectTSHeader=function(t,e){var r=function(t){var e=t.sampleRate;if(!("number"!=typeof e||String(e).length>256))return"es=s:"+e}(t);r&&O(e,"tracestate",r)},e.extractDtHeader=function(t){var e=this._configService.get("distributedTracingHeaderName");if(t)return function(t){var e=/^([\da-f]{2})-([\da-f]{32})-([\da-f]{16})-([\da-f]{2})$/.exec(t);if(e){var r="00"!==e[4];return{traceId:e[2],id:e[3],sampled:r}}}(t[e])},e.filterTransaction=function(t){var e=t.duration();if(!e)return!1;if(t.isManaged()){if(e>6e4)return!1;if(t.sampled&&0===t.spans.length)return!1}return!0},e.createTransactionDataModel=function(t){var e=t._start,r=t.spans.map((function(r){var n={id:r.id,transaction_id:t.id,parent_id:r.parentId||t.id,trace_id:t.traceId,name:r.name,type:r.type,subtype:r.subtype,action:r.action,sync:r.sync,start:parseInt(r._start-e),duration:r.duration(),context:r.context,outcome:r.outcome,sample_rate:r.sampleRate};return ke(Ee,n)})),n={id:t.id,trace_id:t.traceId,session:t.session,name:t.name,type:t.type,duration:t.duration(),spans:r,context:t.context,marks:t.marks,breakdown:t.breakdownTimings,span_count:{started:r.length},sampled:t.sampled,sample_rate:t.sampleRate,experience:t.experience,outcome:t.outcome};return ke(Ae,n)},e.createTransactionPayload=function(t){var e=function(t){if(t.sampled){var e=t.spans.filter((function(e){return e.duration()>0&&e._start>=t._start&&e._end<=t._end}));if(t.isManaged()){var r=function(t,e,r){t.sort((function(t,e){return t._start-e._start}));var n=[],i=1;return t.forEach((function(o,a){if(0===n.length)n.push(o);else{var s=n[n.length-1],u=s.type===o.type&&s.subtype===o.subtype&&s.action===o.action&&s.name===o.name&&o.duration()/e1&&(!u||c)&&(s.name=i+"x "+s.name,i=1),u||n.push(o)}})),n}(e,t.duration(),.05);t.spans=r}else t.spans=e}else t.resetFields();return t}(t);if(this.filterTransaction(e))return this.createTransactionDataModel(t);this._configService.dispatchEvent(St)},t}();const rr=function(){function t(t,e,r){void 0===r&&(r={}),t||(t=vt),e||(e=dt),this.name=t,this.type=e,this.options=r,this.id=r.id||P(16),this.traceId=r.traceId,this.sampled=r.sampled,this.sampleRate=r.sampleRate,this.timestamp=r.timestamp,this._start=H(r.startTime),this._end=void 0,this.ended=!1,this.outcome=void 0,this.onEnd=r.onEnd}var e=t.prototype;return e.ensureContext=function(){this.context||(this.context={})},e.addLabels=function(t){this.ensureContext();var e=this.context;e.tags||(e.tags={}),Object.keys(t).forEach((function(r){return j(r,t[r],e.tags)}))},e.addContext=function(){for(var t=arguments.length,e=new Array(t),r=0;rs?(u+=a-s,s=o):o>s&&(s=o);return s=n})),o=function(t,e){for(var r=[],n=0;n0){var d=u[0],f=d.name,h=d.containerType,p=d.containerName,v=d.containerId,m={attribution:f,type:h};p&&(m.name=p),v&&(m.id=v),l.addContext({custom:m})}l.end(c),r.push(l)}return r}(i,fr.longtask),a={spans:o,marks:{}};if(!r)return a;var s=t.getEntriesByType(jt),u=s[s.length-1];if(u){var c=parseInt(u.startTime);fr.lcp=c,a.marks.largestContentfulPaint=c}var l=x.timing,d=l.fetchStart-l.navigationStart;K(l)&&(d=0);var f=t.getEntriesByName("first-contentful-paint")[0];if(f){var h=parseInt(d>=0?f.startTime-d:f.startTime);fr.fcp=h,a.marks.firstContentfulPaint=h}var p=function(t){var e=t[0];if(e){var r=e.startTime,n=e.processingStart,i=new ir("First Input Delay",Mt,{startTime:r});return i.end(n),i}}(t.getEntriesByType(Mt));return p&&(fr.fid=p.duration(),a.spans.push(p)),function(t){t.forEach((function(t){var e=t.name,r=t.startTime,n=t.duration;if(!(r0&&(fr.tbt.duration+=i)}}))}(i),function(t){t.forEach((function(t){!t.hadRecentInput&&t.value&&((t.startTime-fr.cls.firstEntryTime>5e3||t.startTime-fr.cls.prevEntryTime>1e3)&&(fr.cls.firstEntryTime=t.startTime,fr.cls.currentSessionScore=0),fr.cls.prevEntryTime=t.startTime,fr.cls.currentSessionScore+=t.value,fr.cls.score=Math.max(fr.cls.score,fr.cls.currentSessionScore))}))}(t.getEntriesByType(Rt)),a}var vr=function(){function t(t){this.po={observe:B,disconnect:B},window.PerformanceObserver&&(this.po=new PerformanceObserver(t))}var e=t.prototype;return e.start=function(t,e){void 0===e&&(e={buffered:!0});try{if(!J(t))return;this.po.observe(dr({type:t},e))}catch(t){}},e.stop=function(){this.po.disconnect()},t}();function mr(t,e,r,n,i){return void 0===i&&(i=0),"number"==typeof t&&"number"==typeof e&&t>=i&&e>t&&t-i>=r&&e-i<=n&&e-te}function wr(t){if(t.captureTimings){var e=t._end;if(t.type===lt){if(t.marks&&t.marks.custom){var r=t.marks.custom;Object.keys(r).forEach((function(e){r[e]+=t._start}))}t._start=0;var n=x.timing;(function(t,e,r,n){for(var i=[],o=0;o=0&&s=t._start)e._config.dispatchEvent(St);else if(e.shouldIgnoreTransaction(n)||i===pt)e._config.dispatchEvent(St);else{if(i===lt){var o=e._config.get("pageLoadTransactionName");if(n===vt&&o&&(t.name=o),t.captureTimings){var a=fr.cls,s=fr.fid,u=fr.tbt,c=fr.longtask;u.duration>0&&t.spans.push((d=(l=u).start,f=l.duration,(h=new ir("Total Blocking Time",It,{startTime:d})).end(d+f),h)),t.experience={},J(It)&&(t.experience.tbt=u.duration),J(Rt)&&(t.experience.cls=a.score),s>0&&(t.experience.fid=s),c.count>0&&(t.experience.longtask={count:c.count,sum:c.duration,max:c.max})}e.setSession(t)}var l,d,f,h;t.name===vt&&(t.name=function(t,e){void 0===e&&(e=2);for(var r=new ce(t),n=r.query,i=r.path.substring(1).split("/"),o=":id",a=/\W|_/g,s=/[0-9]/g,u=/[a-z]/g,c=/[A-Z]/g,l=[],d=!1,f=0;fe-1){h&&l.push("*");break}if((h.match(a)||[]).length>=2)l.push(o),d=!0;else{var p=(h.match(s)||[]).length;if(p>3||h.length>3&&p/h.length>=.3)l.push(o),d=!0;else{var v=(h.match(c)||[]).length,m=(h.match(u)||[]).length/h.length,y=v/h.length;h.length>5&&(y>.3&&y<.6||m>.3&&m<.6)?(l.push(o),d=!0):h&&l.push(h)}}}return"/"+(l.length>=2?l.join("/"):l.join(""))+(n?"?{query}":"")}(r)),wr(t),e.adjustTransactionTime(t),e._config.get("breakdownMetrics")&&t.captureBreakdown();var p=e._config.get("context");ye(t,p),e._config.events.send(bt,[t])}}),(function(t){re}))},e.setSession=function(t){var e=this._config.get("session");if(e){"boolean"==typeof e||e.timestamp&&Date.now()-e.timestamp>18e5?t.session={id:P(16),sequence:1}:t.session={id:e.id,sequence:e.sequence?e.sequence+1:1};var r={session:{id:t.session.id,sequence:t.session.sequence,timestamp:Date.now()}};this._config.setConfig(r),this._config.setLocalConfig(r,!0)}},e.adjustTransactionTime=function(t){var e=t.spans,r=function(t){for(var e=t[0],r=1;rn._start&&(e=n)}return e}(e);r&&r._startt._end&&(t._end=i);this.truncateSpans(e,t._end)},e.truncateSpans=function(t,e){for(var r=0;re&&(n._end=e,n.type+=zt),n._start>e&&(n._start=e)}},e.shouldIgnoreTransaction=function(t){var e=this._config.get("ignoreTransactions");if(e&&e.length)for(var r=0;r0){var n=r[0];n.duration=Math.max(n.duration,t.duration)}else kr.longestInteractions.push({id:t.interactionId,duration:t.duration});kr.longestInteractions.sort((function(t,e){return e.duration-t.duration})),kr.longestInteractions.splice(xr)}(t))}))}function Cr(){return performance.interactionCount||kr.interactionCount}function Pr(t){var e=function(){if(0===kr.longestInteractions.length)return Cr()>0?0:void 0;var t=Math.min(kr.longestInteractions.length-1,Math.floor(Cr()/50));return kr.longestInteractions[t].duration}();if(e>=0){var r=z(),n=t.startTransaction(mt,mt,{startTime:r}),i=performance.getEntriesByType("navigation");if(i.length>0){var o=i[0].name;n.addContext({page:{url:o}})}n.addLabels({inp_value:e});var a=r+e+1;return n.end(a),kr.minInteractionId=1/0,kr.maxInteractionId=0,kr.interactionCount=0,kr.longestInteractions=[],n}}function Or(t,e){if(Pr(e))var r=t.observeEvent(At,(function(){Lr(t,e),r()}));else Lr(t,e)}function Lr(t,e){var r=e.getCurrentTransaction();if(r){var n=t.observeEvent(St,(function(){ne.lastHiddenStart=z(),n(),i()})),i=t.observeEvent(At,(function(){t.dispatchEvent(Et),ne.lastHiddenStart=z(),i(),n()}));r.end()}else t.dispatchEvent(Et),ne.lastHiddenStart=z()}var Ir="a[data-transaction-name], button[data-transaction-name]";function jr(t){var e=function(e){e.target instanceof Element&&function(t,e){var r=function(t){var e={transactionName:null,context:null};e.transactionName=function(t){var e=function(t){var e="data-transaction-name",r=t.getAttribute(e);if(t.closest){var n=t.closest(Ir);return n?n.getAttribute(e):r}return r}(t);if(e)return e;var r=t.tagName.toLowerCase(),n=t.getAttribute("name");if(n)return r+'["'+n+'"]';return r}(t);var r=t.getAttribute("class");r&&(e.context={custom:{classes:r}});return e}(e),n=r.transactionName,i=r.context,o=t.startTransaction("Click - "+n,ft,{managed:!0,canReuse:!0,reuseThreshold:300});o&&i&&o.addContext(i)}(t,e.target)},r="click",n=!0;return window.addEventListener(r,e,n),function(){window.removeEventListener(r,e,n)}}var Mr=function(){function t(t,e){this._disable=e,this.serviceFactory=t,this._initialized=!1}var e=t.prototype;return e.isEnabled=function(){return!this._disable},e.isActive=function(){var t=this.serviceFactory.getService(Vt);return this.isEnabled()&&this._initialized&&t.get("active")},e.init=function(t){var e=this;if(this.isEnabled()&&!this._initialized){this._initialized=!0;var r=this.serviceFactory.getService([Vt,Ft,Dt]),n=r[0],i=r[1],o=r[2];n.setVersion("5.16.0"),this.config(t);var a=n.get("logLevel");if(i.setLevel(a),n.get("active")){this.serviceFactory.init();var s=function(t,e){var r,n=((r={})[Tt]=!1,r[xt]=!1,r[kt]=!1,r[lt]=!1,r[Pt]=!1,r[_t]=!1,r[Ct]=!1,r);return t?(Object.keys(n).forEach((function(t){-1===e.indexOf(t)&&(n[t]=!0)})),n):n}(n.get("instrument"),n.get("disableInstrumentations"));if(this.serviceFactory.getService(qt).init(s),s[Pt])this.serviceFactory.getService(Gt).registerListeners();if(n.get("session")){var u=n.getLocalConfig();u&&u.session&&n.setConfig({session:u.session})}var c=function(){return s[lt]&&e._sendPageLoadMetrics()};n.get("centralConfig")?this.fetchCentralConfig().then(c):c(),function(t,e){"hidden"===document.visibilityState&&(ne.lastHiddenStart=0);var r=function(){"hidden"===document.visibilityState&&Or(t,e)},n=function(){return Or(t,e)},i=!0;window.addEventListener("visibilitychange",r,i),window.addEventListener("pagehide",n,i)}(n,o),s[_t]&&s[Ct]&&jr(o),function(t){void 0===t&&(t=new vr(_r));var e=X(),r=e?Tr:16;t.start("event",{buffered:!0,durationThreshold:r}),e||t.start(Mt)}()}else this._disable=!0,i.warn("RUM agent is inactive")}return this},e.fetchCentralConfig=function(){var t=this.serviceFactory.getService([Bt,Ft,Vt]),e=t[0],r=t[1],n=t[2];return e.fetchConfig(n.get("serviceName"),n.get("environment")).then((function(t){var e=t.transaction_sample_rate;if(e){var i={transactionSampleRate:e=Number(e)},o=n.validate(i).invalid;if(0===o.length)n.setConfig(i);else{var a=o[0],s=a.key,u=a.value,c=a.allowed;r.warn('invalid value "'+u+'" for '+s+". Allowed: "+c+".")}}return t})).catch((function(t){r.warn("failed fetching config:",t)}))},e._sendPageLoadMetrics=function(){var t=this.startTransaction(void 0,lt,{managed:!0,canReuse:!0});if(t){t.addTask(lt);var e=function(){setTimeout((function(){return t.removeTask(lt)}),1e3)};"complete"===document.readyState?e():window.addEventListener("load",e)}},e.observe=function(t,e){this.serviceFactory.getService(Vt).events.observe(t,e)},e.config=function(t){var e=this.serviceFactory.getService([Vt,Ft]),r=e[0],n=e[1],i=r.validate(t),o=i.missing,a=i.invalid,s=i.unknown;if(s.length>0){var u="Unknown config options are specified for RUM agent: "+s.join(", ");n.warn(u)}if(0===o.length&&0===a.length)r.setConfig(t);else{var c=", ",l="RUM agent isn't correctly configured. ";o.length>0&&(l+=o.join(c)+" is missing",a.length>0&&(l+=c)),a.forEach((function(t,e){var r=t.key,n=t.value,i=t.allowed;l+=r+' "'+n+'" contains invalid characters! (allowed: '+i+")"+(e!==a.length-1?c:"")})),n.error(l),r.setConfig({active:!1})}},e.setUserContext=function(t){this.serviceFactory.getService(Vt).setUserContext(t)},e.setCustomContext=function(t){this.serviceFactory.getService(Vt).setCustomContext(t)},e.addLabels=function(t){this.serviceFactory.getService(Vt).addLabels(t)},e.setInitialPageLoadName=function(t){this.serviceFactory.getService(Vt).setConfig({pageLoadTransactionName:t})},e.startTransaction=function(t,e,r){if(this.isEnabled())return this.serviceFactory.getService(Dt).startTransaction(t,e,r)},e.startSpan=function(t,e,r){if(this.isEnabled())return this.serviceFactory.getService(Dt).startSpan(t,e,r)},e.getCurrentTransaction=function(){if(this.isEnabled())return this.serviceFactory.getService(Dt).getCurrentTransaction()},e.captureError=function(t){if(this.isEnabled())return this.serviceFactory.getService(Gt).logError(t)},e.addFilter=function(t){this.serviceFactory.getService(Vt).addFilter(t)},t}();var Rr=function(){if(T&&window.elasticApm)return window.elasticApm;var t=oe(),e=Sr(),r=new Mr(e,!t);return T&&(window.elasticApm=r),r}(),Nr=Rr.init.bind(Rr);const Ur=Nr},5808:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.cyrb53=e.javaHashCode=e.murmurhash3_32_gc=void 0,e.murmurhash3_32_gc=function(t,e){var r,n,i,o,a,s,u,c;for(r=3&t.length,n=t.length-r,i=e,a=3432918353,s=461845907,c=0;c>>16)*a&65535)<<16)&4294967295)<<15|u>>>17))*s+(((u>>>16)*s&65535)<<16)&4294967295)<<13|i>>>19))+((5*(i>>>16)&65535)<<16)&4294967295))+((58964+(o>>>16)&65535)<<16);switch(u=0,r){case 3:u^=(255&t.charCodeAt(c+2))<<16;break;case 2:u^=(255&t.charCodeAt(c+1))<<8;break;case 1:i^=u=(65535&(u=(u=(65535&(u^=255&t.charCodeAt(c)))*a+(((u>>>16)*a&65535)<<16)&4294967295)<<15|u>>>17))*s+(((u>>>16)*s&65535)<<16)&4294967295;break;default:return 0}return i^=t.length,i=2246822507*(65535&(i^=i>>>16))+((2246822507*(i>>>16)&65535)<<16)&4294967295,i=3266489909*(65535&(i^=i>>>13))+((3266489909*(i>>>16)&65535)<<16)&4294967295,(i^=i>>>16)>>>0};e.javaHashCode=function(t,e){var r=0;if(0===t.length)return r;for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:0,n=3735928559^r,i=1103547991^r,o=0;o>>16,2246822507)^Math.imul(i^i>>>13,3266489909),4294967296*(2097151&(i=Math.imul(i^i>>>16,2246822507)^Math.imul(n^n>>>13,3266489909)))+(n>>>0)}},2533:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getCanvasFingerprint=e.isCanvasSupported=void 0;e.isCanvasSupported=function(){var t=document.createElement("canvas");return!(!t.getContext||!t.getContext("2d"))};e.getCanvasFingerprint=function(){if(!(0,e.isCanvasSupported)())return"broprint.js";var t=document.createElement("canvas"),r=t.getContext("2d"),n="BroPrint.65@345876";return r.textBaseline="top",r.font="14px 'Arial'",r.textBaseline="alphabetic",r.fillStyle="#f60",r.fillRect(125,1,62,20),r.fillStyle="#069",r.fillText(n,2,15),r.fillStyle="rgba(102, 204, 0, 0.7)",r.fillText(n,4,17),t.toDataURL()}},8766:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.generateTheAudioFingerPrint=void 0,e.generateTheAudioFingerPrint=function(){var t=null,e=null,r=null,n=null,i=null,o=null;function a(e,r){void 0!==n[e]&&"function"==typeof n[e].setValueAtTime&&n[e].setValueAtTime(r,t.currentTime)}function s(t){!function(t){for(var e=null,r=4500;5e3>r;r++){var n=t.renderedBuffer.getChannelData(0)[r];e+=Math.abs(n)}if(i=e.toString(),"function"==typeof o)o(i)}(t),n.disconnect()}return{run:function(i){var u,c=arguments.length>1&&void 0!==arguments[1]&&arguments[1];o=i;try{u=window.OfflineAudioContext||window.webkitOfflineAudioContext,t=new u(1,44100,44100),e=t.currentTime,(r=t.createOscillator()).type="triangle",r.frequency.setValueAtTime(1e4,e),n=t.createDynamicsCompressor(),a("threshold",-50),a("knee",40),a("ratio",12),a("reduction",-20),a("attack",0),a("release",.25),r.connect(n),n.connect(t.destination),r.start(0),t.startRendering(),t.oncomplete=s}catch(t){if(c)throw t}}}}()},632:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getCurrentBrowserFingerPrint=void 0;var n=r(5808),i=r(2533),o=r(8766);e.getCurrentBrowserFingerPrint=function(){var t=new Promise((function(t,e){o.generateTheAudioFingerPrint.run((function(e){t(e)}))}));return new Promise((function(e,r){t.then((function(t){var r=window.btoa(t)+(0,i.getCanvasFingerprint)();e((0,n.cyrb53)(r,0))})).catch((function(){try{e((0,n.cyrb53)((0,i.getCanvasFingerprint)()).toString())}catch(t){r("Failed to generate the finger print of this browser")}}))}))}},8787:function(t,e,r){var n,i,o,a;function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}a=function(t){"use strict";var e,n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self?self:{},i=(function(t){!function(e){var r,n=Object.prototype,i=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag",l=e.regeneratorRuntime;if(l)t.exports=l;else{(l=e.regeneratorRuntime=t.exports).wrap=w;var d="suspendedStart",f="suspendedYield",h="executing",p="completed",v={},m={};m[a]=function(){return this};var y=Object.getPrototypeOf,g=y&&y(y(L([])));g&&g!==n&&i.call(g,a)&&(m=g);var b=T.prototype=A.prototype=Object.create(m);S.prototype=b.constructor=T,T.constructor=S,T[c]=S.displayName="GeneratorFunction",l.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===S||"GeneratorFunction"===(e.displayName||e.name))},l.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,T):(t.__proto__=T,c in t||(t[c]="GeneratorFunction")),t.prototype=Object.create(b),t},l.awrap=function(t){return{__await:t}},x(k.prototype),k.prototype[u]=function(){return this},l.AsyncIterator=k,l.async=function(t,e,r,n){var i=new k(w(t,e,r,n));return l.isGeneratorFunction(e)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},x(b),b[c]="Generator",b[a]=function(){return this},b.toString=function(){return"[object Generator]"},l.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},l.values=L,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(P),!t)for(var e in this)"t"===e.charAt(0)&&i.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=r)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(n,i){return s.type="throw",s.arg=t,e.next=n,i&&(e.method="next",e.arg=r),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var u=i.call(a,"catchLoc"),c=i.call(a,"finallyLoc");if(u&&c){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;P(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:L(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=r),v}}}function w(t,e,r,n){var i=e&&e.prototype instanceof A?e:A,o=Object.create(i.prototype),a=new O(n||[]);return o._invoke=function(t,e,r){var n=d;return function(i,o){if(n===h)throw new Error("Generator is already running");if(n===p){if("throw"===i)throw o;return I()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===v)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===d)throw n=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=h;var u=E(t,e,r);if("normal"===u.type){if(n=r.done?p:f,u.arg===v)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n=p,r.method="throw",r.arg=u.arg)}}}(t,r,a),o}function E(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}function A(){}function S(){}function T(){}function x(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function k(t){var e;this._invoke=function(r,n){function o(){return new Promise((function(e,o){!function e(r,n,o,a){var u=E(t[r],t,n);if("throw"!==u.type){var c=u.arg,l=c.value;return l&&"object"==s(l)&&i.call(l,"__await")?Promise.resolve(l.__await).then((function(t){e("next",t,o,a)}),(function(t){e("throw",t,o,a)})):Promise.resolve(l).then((function(t){c.value=t,o(c)}),a)}a(u.arg)}(r,n,e,o)}))}return e=e?e.then(o,o):o()}}function _(t,e){var n=t.iterator[e.method];if(n===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=r,_(t,e),"throw"===e.method))return v;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var i=E(n,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,v;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=r),e.delegate=null,v):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,v)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function L(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n=0,u=a&&o.regeneratorRuntime;o.regeneratorRuntime=void 0;var c=i;if(a)o.regeneratorRuntime=u;else try{delete o.regeneratorRuntime}catch(t){o.regeneratorRuntime=void 0}var l,d,f,h=c,p={clickThrough:"clickThrough",closeLinear:"closeLinear",complete:"complete",error:"error",exitFullscreen:"exitFullscreen",firstQuartile:"firstQuartile",fullscreen:"fullscreen",iconClick:"iconClick",iconView:"iconView",impression:"impression",midpoint:"midpoint",mute:"mute",otherAdInteraction:"otherAdInteraction",pause:"pause",playerCollapse:"playerCollapse",playerExpand:"playerExpand",progress:"progress",resume:"resume",rewind:"rewind",skip:"skip",start:"start",thirdQuartile:"thirdQuartile",timeSpentViewing:"timeSpentViewing",unmute:"unmute"},v="acceptInvitation",m="adCollapse",y="creativeView",g={acceptInvitation:v,adCollapse:m,close:"close",creativeView:y},b=[new RegExp("^]*>This page contains the following errors:]*>(.+?)\n?"),new RegExp("^(.+)\n")],w=function(t){return function(t){var e;if(null===t)throw new Error("Parse error");var r=function(t){return"parsererror"===t.documentElement.tagName&&"http://www.mozilla.org/newlayout/xml/parsererror.xml"===t.documentElement.namespaceURI?t.documentElement:("xml"===t.documentElement.tagName||"html"===t.documentElement.tagName)&&t.documentElement.childNodes&&t.documentElement.childNodes.length>0&&"parsererror"===t.documentElement.childNodes[0].nodeName?t.documentElement.childNodes[0]:"html"===t.documentElement.tagName&&t.documentElement.childNodes&&t.documentElement.childNodes.length>0&&"body"===t.documentElement.childNodes[0].nodeName&&t.documentElement.childNodes[0].childNodes&&t.documentElement.childNodes[0].childNodes.length&&"parsererror"===t.documentElement.childNodes[0].childNodes[0].nodeName?t.documentElement.childNodes[0].childNodes[0]:void 0}(t);if(void 0!==r)throw e=function(t){var e,r,n,i,o=(e=t,r=new XMLSerializer,Array.prototype.map.call(e.childNodes,(function(t){return r.serializeToString(t)})).join(""));for(n=0;n0){n.attributes={};var i=!0,o=!1,a=void 0;try{for(var s,u=Array.from(e.attributes)[Symbol.iterator]();!(i=(s=u.next()).done);i=!0){var c=s.value;n.attributes[c.nodeName]=c.nodeValue}}catch(t){o=!0,a=t}finally{try{!i&&u.return&&u.return()}finally{if(o)throw a}}}}else r===A&&(n.text=e.nodeValue.replace("","").trim());if(e.hasChildNodes()){var l=Array.from(e.childNodes).filter((function(t){return[1,3,4].includes(t.nodeType)})),d=[];n.elements=d;var f=!0,h=!1,p=void 0;try{for(var v,m=l[Symbol.iterator]();!(f=(v=m.next()).done);f=!0){var y=t(v.value);(y.type!==A||y.text.length>0)&&d.push(y)}}catch(t){h=!0,p=t}finally{try{!f&&m.return&&m.return()}finally{if(h)throw p}}}return n},T=function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).elements;return void 0===t?[]:t},x=function(t,e){return T(t).find((function(t){var r=t.name;return(void 0===r?"":r).toUpperCase()===e.toUpperCase()}))},k=function(t,e){return"string"==typeof e?function(t,e){return T(t).filter((function(t){var r=t.name;return(void 0===r?"":r).toUpperCase()===e.toUpperCase()}))}(t,e):T(t)},_=function(t){return T(t)[0]||null},C=function(t){var e=t&&_(t);return e&&e.text||null},P=function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).attributes;return void 0===t?{}:t},O=function(t,e){return P(t)[e]},L=new DOMParser,I=function(t){return function(t,e){var r=t.parseFromString(e,"application/xml");return w(r),S(r)}(L,t)},j=function(t){if("string"==typeof t){var e=t.match(/(\d\d):(\d\d):(\d\d)(\.(\d\d\d))?/);if(e){var r=(o=e[1],60*parseInt(o,10)*60*1e3+(i=e[2],60*parseInt(i,10)*1e3)+(n=e[3],1e3*parseInt(n,10))+parseInt(e[5]||0,10));if(!isNaN(r))return r}}var n,i,o;return null},M=function(t){return function(t){return/^\d+(\.\d+)?%$/g.test(t)}(t)?t:j(t)},R=function(t){var e=_(t),r=e&&x(e,"creatives");return r&&k(r).find((function(t){return x(t,"linear")}))||null},N=function(t,e){var r=t&&R(t);if(r){var n=x(r,"Linear"),i=n&&x(n,"TrackingEvents"),o=i&&k(i,"Tracking");if(o&&o.length>0){var a=o.map((function(t){var e=P(t),r=e.event,n=e.offset,i=C(t);return{event:r,offset:n&&M(n),uri:i}}));if(!e)return a;var s=a.filter((function(t){return t.event===e}));if(s.length>0)return s}}return null},U=function(t,e){var r=t&&R(t);if(r){var n=x(r,"NonLinearAds"),i=n&&x(n,"TrackingEvents"),o=i&&k(i,"Tracking");if(o&&o.length>0){var a=o.map((function(t){return{event:P(t).event,uri:C(t)}}));if(!e)return a;var s=a.filter((function(t){return t.event===e}));if(s.length>0)return s}}return null},V=function(t){return function(){var e=t.apply(this,arguments);return new Promise((function(t,r){return function n(i,o){try{var a=e[i](o),s=a.value}catch(t){return void r(t)}if(!a.done)return Promise.resolve(s).then((function(t){n("next",t)}),(function(t){n("throw",t)}));t(s)}("next")}))}},F=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},D=function(){function t(t,e){for(var r=0;r0?i.map((function(t){return q({},function(t){var e=P(t),r=e.duration,n=e.height,i=e.offset,o=e.program,a=e.pxratio,s=e.width,u=e.xPosition,c=void 0===u?"right":u,l=e.yPosition,d=void 0===l?"top":l;return{duration:r&&j(r),height:n&&Y(n),offset:i&&j(i),program:o,pxratio:a&&parseInt(a,10),width:s&&Y(s),xPosition:c&&J(c),yPosition:d&&J(d)}}(t),function(t){var e=x(t,"StaticResource"),r=x(t,"HTMLResource"),n=x(t,"IFrameResource");return e?{staticResource:C(e)}:r?{htmlResource:C(r)}:n?{iFrameResource:C(n)}:{staticResource:C(t)}}(t),function(t){var e=k(t,"IconViewTracking").map((function(t){return C(t)}));return 0===e.length?{}:{iconViewTracking:e}}(t),function(t){var e=x(t,"IconClicks"),r=e&&x(e,"IconClickThrough"),n=e&&k(e,"IconClickTracking").map((function(t){return C(t)}));return{iconClickThrough:r&&C(r),iconClickTracking:n&&n.length>0?n:void 0}}(t))})):null},K=function(t){return"string"==typeof t?"true"===t:Boolean(t)},Z=function(t,e){var r=parseInt(O(t,"sequence"),10),n=parseInt(O(e,"sequence"),10);return rn?1:0},$=function(t){var e=t&&x(t,"VAST"),r=e&&k(e,"Ad");return r&&r.length>0?r:[]},tt=function(t){var e=t&&x(t,"VAST");if(e){var r=x(e,"Error");if(r)return C(r)}return null},et=function(t){var e=parseInt(O(t,"sequence"),10);return"number"!=typeof e||isNaN(e)?null:e},rt=function(t){return Boolean(et(t))},nt=function(t){var e=$(t);return Array.isArray(e)&&e.filter(rt).length>1},it=function(t){var e=$(t);return Array.isArray(e)&&e.length>0?nt(t)?e.filter(rt).sort(Z)[0]:e[0]:null},ot=function(){return Boolean(x((arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})||{},"Wrapper"))},at=function(t){return Boolean(x(t||{},"Inline"))},st=function(t){var e=x(t,"Wrapper"),r=e&&x(e,"VastAdTagUri");return r&&C(r)||null},ut=function(t){var e=P(x(t,"Wrapper")),r=e.allowMultipleAds,n=e.fallbackOnNoAd,i=e.followAdditionalWrappers,o={};return r&&(o.allowMultipleAds=K(r)),n&&(o.fallbackOnNoAd=K(n)),i&&(o.followAdditionalWrappers=K(i)),o},ct=function(t){var e=t&&_(t);if(e){var r=x(e,"Error");if(r)return C(r)}return null},lt=function(t){var e=t&&_(t);if(e){var r=k(e,"Impression");if(Array.isArray(r)&&r.length>0)return r.map((function(t){return{uri:C(t)}}))}return null},dt=function(t){var e=t&&R(t);if(e){var r=x(e,"UniversalAdId"),n=r&&C(r)||null,i=x(e,"Linear"),o=x(i,"MediaFiles"),a=o&&k(o,"MediaFile");if(a&&a.length>0)return a.map((function(t){var e=C(t),r=P(t),i=r.apiFramework,o=r.bitrate,a=r.codec,s=r.delivery,u=r.height,c=r.id,l=r.maintainAspectRatio,d=r.maxBitrate,f=r.minBitrate,h=r.scalable,p=r.type,v=r.width;return{apiFramework:i,bitrate:o,codec:a,delivery:s,height:u,id:c,maintainAspectRatio:l,maxBitrate:d,minBitrate:f,scalable:h,src:e,type:p,universalAdId:n,width:v}}))}return null},ft=function(t){var e=t&&R(t);if(e){var r=x(e,"Linear"),n=x(r,"MediaFiles"),i=n&&k(n,"InteractiveCreativeFile");if(i&&i.length>0)return i.map((function(t){var e=P(t),r=e.apiFramework,n=e.type;return{apiFramework:r,src:C(t),type:n}}))}return null},ht=function(t){var e=ft(t);if(e)return e;var r=dt(t);return r&&(e=r.filter((function(t){var e=t.apiFramework;return"vpaid"===(void 0===e?"":e).toLowerCase()})).map((function(t){return{apiFramework:t.apiFramework,src:t.src,type:t.type}}))).length>0?e:null},pt=function(t){var e=t&&R(t),r=e&&x(e,"Linear");return r&&x(r,"VideoClicks")||null},vt=function(t){var e=pt(t),r=e&&x(e,"ClickThrough");return r?C(r):null},mt=function(t){var e=pt(t),r=e&&k(e,"ClickTracking");return r&&r.length>0?r.map((function(t){return C(t)})):null},yt=function(t){var e=pt(t),r=e&&k(e,"CustomClick");return r&&r.length>0?r.map((function(t){return C(t)})):null},gt=function(t){var e=t&&R(t),r=e&&x(e,"Linear"),n=r&&O(r,"skipoffset");return n?M(n):null},bt=function(t){var e=function(t){var e=/([\s\S]*)<\/AdParameters>/gm.exec(t);return e&&e[1].replace(/[\n\s]*[\n\s]*$/,"").replace(/\]\]\]\]>/,"]]>").trim()}(e),xmlEncoded:e&&function(t){var e=//gim.exec(t);return Boolean(e)&&"true"===e[1]}(e)}},wt=Object.freeze({getAds:$,getVastErrorURI:tt,getPodAdSequence:et,isPodAd:rt,hasAdPod:nt,isAdPod:function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map((function(t){return t.parsedXML})).some(nt)},getFirstAd:it,isWrapper:ot,isInline:at,getVASTAdTagURI:st,getWrapperOptions:ut,getAdErrorURI:ct,getImpressionUri:function(t){var e=t&&_(t);if(e){var r=x(e,"Impression");if(r)return C(r)}return null},getAllImpressionUris:lt,getMediaFiles:dt,getInteractiveCreativeFiles:ft,getInteractiveFiles:ht,getClickThrough:vt,getClickTracking:mt,getCustomClick:yt,getSkipOffset:gt,getCreativeData:bt,getIcons:X,getLinearTrackingEvents:N,getNonLinearTrackingEvents:U}),Et=function(t,e){var r=new Image;return r.src=function(t){var e,r,n=t,i=(e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={},Object.keys(e).forEach((function(t){r[t.toUpperCase()]=e[t]})),r);return Boolean(i.CACHEBUSTING)||(i.CACHEBUSTING=Math.round(1e10*Math.random())),Boolean(i.TIMESTAMP)||(i.TIMESTAMP=(new Date).toISOString()),Object.keys(i).forEach((function(t){if(n&&"string"==typeof n){var e=encodeURIComponent(i[t]);n=n.replace(new RegExp("\\["+t+"\\]","gm"),e)}})),n}(t,e),r},At=function(t,e){var r=e.errorCode,n=e.tracker,i=void 0===n?Et:n;t.forEach((function(t){var e=t.ad,n=t.parsedXML,o=ct(e)||tt(n);Boolean(o)&&i(o,{errorCode:r})}))},St=function(t){return function(e,r){var n=r.data,i=r.tracker,o=void 0===i?Et:i;e.forEach((function(e){var r=e.ad,i=t(r);if(Boolean(i))switch(!0){case"string"==typeof i:o(i,n);break;case Array.isArray(i):i.map((function(t){var e=t.uri;return o(e,n)}))}}))}},Tt=function(t){return function(e){return N(e,t)}},xt=(B(l={},"clickThrough",St((function(t){var e=[],r=mt(t),n=yt(t);return Array.isArray(r)&&r.length>0&&e.push.apply(e,Q(r.map((function(t){return{uri:t}})))),Array.isArray(n)&&n.length>0&&e.push.apply(e,Q(n.map((function(t){return{uri:t}})))),e}))),B(l,"closeLinear",St(Tt("closeLinear"))),B(l,"complete",St(Tt("complete"))),B(l,"error",At),B(l,"exitFullscreen",St(Tt("exitFullscreen"))),B(l,"firstQuartile",St(Tt("firstQuartile"))),B(l,"fullscreen",St(Tt("fullscreen"))),B(l,"iconClick",(function(t,e){var r=e.data,n=e.tracker,i=void 0===n?Et:n,o=r.iconClickTracking;if(Array.isArray(o)){var a=!0,s=!1,u=void 0;try{for(var c,l=o[Symbol.iterator]();!(a=(c=l.next()).done);a=!0)i(c.value,q({},r))}catch(t){s=!0,u=t}finally{try{!a&&l.return&&l.return()}finally{if(s)throw u}}}})),B(l,"iconView",(function(t,e){var r=e.data,n=e.tracker,i=void 0===n?Et:n,o=r.iconViewTracking;if(Array.isArray(o)){var a=!0,s=!1,u=void 0;try{for(var c,l=o[Symbol.iterator]();!(a=(c=l.next()).done);a=!0)i(c.value,q({},r))}catch(t){s=!0,u=t}finally{try{!a&&l.return&&l.return()}finally{if(s)throw u}}}})),B(l,"impression",St(lt)),B(l,"midpoint",St(Tt("midpoint"))),B(l,"mute",St(Tt("mute"))),B(l,"pause",St(Tt("pause"))),B(l,"playerCollapse",St(Tt("playerCollapse"))),B(l,"playerExpand",St(Tt("playerExpand"))),B(l,"progress",(function(t,e){var r=e.data,n=e.tracker,i=void 0===n?Et:n,o=r.progressUri;Boolean(o)&&i(o,q({},r))})),B(l,"resume",St(Tt("resume"))),B(l,"rewind",St(Tt("rewind"))),B(l,"skip",St(Tt("skip"))),B(l,"start",St(Tt("start"))),B(l,"thirdQuartile",St(Tt("thirdQuartile"))),B(l,"unmute",St(Tt("unmute"))),l),kt=function(t){return function(e){return U(e,t)}},_t=(B(d={},v,St(kt(v))),B(d,m,St(kt(m))),B(d,"close",St(kt("close"))),B(d,y,St(kt(y))),d),Ct=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.async,n=void 0!==r&&r,i=e.defer,o=void 0!==i&&i,a=e.type,s=void 0===a?"text/javascript":a,u=e.placeholder;if(!t)throw new TypeError('Missing required "src" parameter');return new Promise((function(e,r){var i=document.createElement("script"),a=u;i.type=s,i.async=n,i.defer=o,i.onerror=function(){return r(new URIError("The script "+t+" is not accessible."))},i.onload=function(){return e(i)},a||(a=document.currentScript?document.currentScript.parentNode:document.head),i.src=t,a.appendChild(i)}))},Pt=function(t){return t.contentDocument||t.contentWindow&&t.contentWindow.document},Ot="srcdoc"in document.createElement("iframe"),Lt=function(){var t=document.createElement("IFRAME");return t.sandbox="allow-forms allow-popups allow-scripts allow-same-origin",t.style.margin="0",t.style.padding="0",t.style.border="none",t.style.width="0",t.style.height="0",t.style.position="absolute",t},It=function(t,e){return new Promise((function(r,n){var i,o=function(t,e){return"\n\n \n \n