1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[368],{2026:(e,t,n)=>{"use strict";n.d(t,{u:()=>r});let r=performance},2632:(e,t,n)=>{"use strict";n.d(t,{c:()=>r});class r{constructor(){this.subscribers=[]}subscribe(e){return this.subscribers.push(e),{unsubscribe:()=>this.unsubscribe(e)}}unsubscribe(e){this.subscribers=this.subscribers.filter(t=>t!==e)}notify(e){this.subscribers.forEach(t=>t(e))}first(){let e=new r,t=t=>{e.notify(t),n.unsubscribe()},n=this.subscribe(t),i=e.unsubscribe.bind(e);return this.withUnsubscribeOverride(e,i,t)}takeWhile(e){let t=new r,n=r=>{e(r)?t.notify(r):t.unsubscribe(n)};this.subscribe(n);let i=t.unsubscribe.bind(t);return this.withUnsubscribeOverride(t,i,n)}filter(e){let t=new r,n=n=>{e(n)&&t.notify(n)};this.subscribe(n);let i=t.unsubscribe.bind(t);return this.withUnsubscribeOverride(t,i,n)}merge(...e){let t=new r,n=[];e.forEach(e=>{let r=e.subscribe(e=>{t.notify(e)});n.push(r)});let i=t.unsubscribeAll.bind(t);return t.unsubscribe=()=>{n.forEach(e=>e.unsubscribe()),i()},t}withUnsubscribeOverride(e,t,n){return e.unsubscribe=e=>{t(e),this.unsubscribe(n)},e}unsubscribeAll(){this.subscribers=[]}}},3985:(e,t,n)=>{"use strict";n.d(t,{G:()=>l});var r=n(42645),i=n(62525),s=n(50483),o=n(61040),a=n(16979),u=n(57978);class l{constructor(){this.updateSession=(0,s.n)(()=>this.updateUserSession(),a.MM),this.updateUserSession=(0,u.vP)({fetchUserSession:l.fetchUserSession,storeUserSession:l.storeUserSession}),this.init()}static removeUserSession(){(0,o.Ai)(a.AQ,l.storageTypeLocal)}static storeUserSession(e){(0,o.SO)(a.AQ,(0,r.xD)(e),l.storageTypeLocal)}static fetchUserSession(){let e=(0,o.Gq)(a.AQ,l.storageTypeLocal);return e?JSON.parse(e):null}init(){document.addEventListener("visibilitychange",()=>{"visible"===document.visibilityState&&this.updateSession()}),i.P.metas.addListener((0,u.h$)({fetchUserSession:l.fetchUserSession,storeUserSession:l.storeUserSession}))}}l.storageTypeLocal=o.Uy.local},4425:(e,t,n)=>{"use strict";n.d(t,{u:()=>E});var r=n(92550),i=n(16799),s=n(85469),o=n(72762),a=(0,s.n)("OpenTelemetry Context Key SPAN");function u(e){return e.getValue(a)||void 0}function l(){return u(i._.getInstance().active())}function c(e,t){return e.setValue(a,t)}function d(e){return e.deleteValue(a)}function f(e,t){return c(e,new o.d(t))}function p(e){var t;return null==(t=u(e))?void 0:t.spanContext()}var h=n(94727),m=i._.getInstance(),g=function(){function e(){}return e.prototype.startSpan=function(e,t,n){if(void 0===n&&(n=m.active()),null==t?void 0:t.root)return new o.d;var r,i=n&&p(n);return"object"==typeof(r=i)&&"string"==typeof r.spanId&&"string"==typeof r.traceId&&"number"==typeof r.traceFlags&&(0,h.YA)(i)?new o.d(i):new o.d},e.prototype.startActiveSpan=function(e,t,n,r){if(!(arguments.length<2)){2==arguments.length?o=t:3==arguments.length?(i=t,o=n):(i=t,s=n,o=r);var i,s,o,a=null!=s?s:m.active(),u=this.startSpan(e,i,a),l=c(a,u);return m.with(l,o,void 0,u)}},e}(),b=new g,v=function(){function e(e,t,n,r){this._provider=e,this.name=t,this.version=n,this.options=r}return e.prototype.startSpan=function(e,t,n){return this._getTracer().startSpan(e,t,n)},e.prototype.startActiveSpan=function(e,t,n,r){var i=this._getTracer();return Reflect.apply(i.startActiveSpan,i,arguments)},e.prototype._getTracer=function(){if(this._delegate)return this._delegate;var e=this._provider.getDelegateTracer(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):b},e}(),y=new(function(){function e(){}return e.prototype.getTracer=function(e,t,n){return new g},e}()),_=function(){function e(){}return e.prototype.getTracer=function(e,t,n){var r;return null!=(r=this.getDelegateTracer(e,t,n))?r:new v(this,e,t,n)},e.prototype.getDelegate=function(){var e;return null!=(e=this._delegate)?e:y},e.prototype.setDelegate=function(e){this._delegate=e},e.prototype.getDelegateTracer=function(e,t,n){var r;return null==(r=this._delegate)?void 0:r.getTracer(e,t,n)},e}(),w=n(80894),S="trace",E=(function(){function e(){this._proxyTracerProvider=new _,this.wrapSpanContext=h.IP,this.isSpanContextValid=h.YA,this.deleteSpan=d,this.get
1Span=u,this.getActiveSpan=l,this.getSpanContext=p,this.setSpan=c,this.setSpanContext=f}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalTracerProvider=function(e){var t=(0,r.$G)(S,this._proxyTracerProvider,w.K.instance());return t&&this._proxyTracerProvider.setDelegate(e),t},e.prototype.getTracerProvider=function(){return(0,r.mS)(S)||this._proxyTracerProvider},e.prototype.getTracer=function(e,t){return this.getTracerProvider().getTracer(e,t)},e.prototype.disable=function(){(0,r.kv)(S,w.K.instance()),this._proxyTracerProvider=new _},e})().getInstance()},5202:(e,t,n)=>{"use strict";n.d(t,{RH:()=>s,dM:()=>o,w9:()=>i});var r=n(40865),i="0000000000000000",s="00000000000000000000000000000000",o={traceId:s,spanId:i,traceFlags:r.X.NONE}},6027:(e,t,n)=>{"use strict";n.d(t,{$g:()=>i,OV:()=>r,_G:()=>s,vX:()=>o});let r="user-action-start",i="user-action-end",s="user-action-cancel",o="user-action-halt"},8139:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i.a});var r=n(44760),i=n.n(r),s={};for(let e in r)"default"!==e&&(s[e]=()=>r[e]);n.d(t,s)},10506:(e,t,n)=>{"use strict";n.d(t,{H:()=>s});var r=n(70904),i=n(82826);class s{constructor(){this.unpatchedConsole=i.Z,this.internalLogger=r.vc,this.config={},this.metas={}}logDebug(...e){this.internalLogger.debug(`${this.name} 2`,...e)}logInfo(...e){this.internalLogger.info(`${this.name} 3`,...e)}logWarn(...e){this.internalLogger.warn(`${this.name} 4`,...e)}logError(...e){this.internalLogger.error(`${this.name} 5`,...e)}}},11107:(e,t,n)=>{"use strict";function r(){}n.d(t,{l:()=>r})},11838:(e,t,n)=>{"use strict";function r(e,t){return"string"==typeof t?e===t:!!e.match(t)}function i(e,t){if(!t)return!1;for(let n of t)if(r(e,n))return!0;return!1}n.d(t,{K:()=>i,f:()=>r})},12463:(e,t,n)=>{"use strict";n.d(t,{HU:()=>i,I1:()=>o,IU:()=>s,Ij:()=>u,jJ:()=>a,sk:()=>l,vb:()=>r});let r="resource-entry",i="http-request-start",s="http-request-end",o="dom-mutation",a="faroUserActionName",u="data-faro-user-action-name",l="faroApiCall"},13092:(e,t,n)=>{"use strict";n.d(t,{s:()=>r});var r=n(80894).K.instance()},16799:(e,t,n)=>{"use strict";n.d(t,{_:()=>p});var r=n(85469),i=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,s=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=s.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(i)throw i.error}}return o},s=function(e,t,n){if(n||2==arguments.length)for(var r,i=0,s=t.length;i<s;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},o=function(){function e(){}return e.prototype.active=function(){return r.l},e.prototype.with=function(e,t,n){for(var r=[],o=3;o<arguments.length;o++)r[o-3]=arguments[o];return t.call.apply(t,s([n],i(r),!1))},e.prototype.bind=function(e,t){return t},e.prototype.enable=function(){return this},e.prototype.disable=function(){return this},e}(),a=n(92550),u=n(80894),l=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,s=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=s.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(i)throw i.error}}return o},c=function(e,t,n){if(n||2==arguments.length)for(var r,i=0,s=t.length;i<s;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},d="context",f=new o,p=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalContextManager=function(e){return(0,a.$G)(d,e,u.K.instance())},e.prototype.active=function(){return this._getContextManager().active()},e.prototype.with=function(e,t,n){for(var r,i=[],s=3;s<arguments.length;s++)i[s-3]=arguments[s];return(r=this._getContextManager()).with.apply(r,c([e,t,n],l(i),!1))},e.prototype.bind=function(e,t){return this._getContextManager().bind(e,t)},e.prototype._getContextManager=function(){return(0,a.mS)(d)||f},e.prototype.disable=function(){this._getContextManager().disable(),(0,a.kv)(d,u.K.instance())},e}()},16979:(e,t,n)=>{"use strict";n.d(t,{AQ:()=>r,Fm:()=>a,MM:()=>o,Zl:()=>i,gG:()=>s});let r="com.grafana.faro.session",i=144e5,s=9e5,o=1e3,a={enabled:!0,persistent:!1,maxSessionPersistenceTime:9e5}},16984:function(e,t,n){var r;!function(i,s){"use strict";var o="function",a="undefined",u="object",l="string",c="major",d="model",f="name",p="type",h="vendor",m="version",g
vendor: 4,485 bytes, line 5
5="architecture",b="console",v="mobile",y="tablet",_="smarttv",w="wearable",S="embedded",E="Amazon",T="Apple",O="ASUS",A="BlackBerry",R="Browser",x="Chrome",C="Firefox",L="Google",P="Honor",N="Huawei",I="Microsoft",k="Motorola",j="Nvidia",D="OnePlus",M="Opera",U="OPPO",B="Samsung",F="Sharp",$="Sony",z="Xiaomi",V="Zebra",H="Facebook",q="Chromium OS",G="Mac OS",K=" Browser",W=function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n},J=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},X=function(e,t){return typeof e===l&&-1!==Q(t).indexOf(Q(e))},Q=function(e){return e.toLowerCase()},Z=function(e,t){if(typeof e===l)return e=e.replace(/^\s\s*/,""),typeof t===a?e:e.substring(0,500)},Y=function(e,t){for(var n,r,i,a,l,c,d=0;d<t.length&&!l;){var f=t[d],p=t[d+1];for(n=r=0;n<f.length&&!l&&f[n];)if(l=f[n++].exec(e))for(i=0;i<p.length;i++)c=l[++r],typeof(a=p[i])===u&&a.length>0?2===a.length?typeof a[1]==o?this[a[0]]=a[1].call(this,c):this[a[0]]=a[1]:3===a.length?typeof a[1]!==o||a[1].exec&&a[1].test?this[a[0]]=c?c.replace(a[1],a[2]):void 0:this[a[0]]=c?a[1].call(this,c,a[2]):void 0:4===a.length&&(this[a[0]]=c?a[3].call(this,c.replace(a[1],a[2])):s):this[a]=c||s;d+=2}},ee=function(e,t){for(var n in t)if(typeof t[n]===u&&t[n].length>0){for(var r=0;r<t[n].length;r++)if(X(t[n][r],e))return"?"===n?s:n}else if(X(t[n],e))return"?"===n?s:n;return t.hasOwnProperty("*")?t["*"]:e},et={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},en={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[m,[f,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[m,[f,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[f,m],[/opios[\/ ]+([\w\.]+)/i],[m,[f,M+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[m,[f,M+" GX"]],[/\bopr\/([\w\.]+)/i],[m,[f,M]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[m,[f,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[m,[f,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[f,m],[/quark(?:pc)?\/([-\w\.]+)/i],[m,[f,"Quark"]],[/\bddg\/([\w\.]+)/i],[m,[f,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[m,[f,"UC"+R]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[m,[f,"WeChat"]],[/konqueror\/([\w\.]+)/i],[m,[f,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[m,[f,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[m,[f,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[m,[f,"Smart Lenovo "+R]],[/(avast|avg)\/([\w\.]+)/i],[[f,/(.+)/,"$1 Secure "+R],m],[/\bfocus\/([\w\.]+)/i],[m,[f,C+" Focus"]],[/\bopt\/([\w\.]+)/i],[m,[f,M+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[m,[f,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[m,[f,"Dolphin"]],[/coast\/([\w\.]+)/i],[m,[f,M+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[m,[f,"MIUI"+K]],[/fxios\/([\w\.-]+)/i],[m,[f,C]],[/\bqihoobrowser\/?([\w\.]*)/i],[m,[f,"360"]],[/\b(qq)\/([\w\.]+)/i],[[f,/(.+)/,"$1Browser"],m],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[f,/(.+)/,"$1"+K],m],[/samsungbrowser\/([\w\.]+)/i],[m,[f,B+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[m,[f,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[f,"Sogou Mobile"],m],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[f,m],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[f],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[m,f],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[f,H],m],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[f,m],[/\bgsa\/([\w\.]+) .*safari\//i],[m,[f,"GSA"]],[/musical_ly(?:.
5+app_?version\/|_)([\w\.]+)/i],[m,[f,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[m,[f,x+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[f,x+" WebView"],m],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[m,[f,"Android "+R]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[f,m],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[m,[f,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[m,f],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[f,[m,ee,{"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[f,m],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[f,"Netscape"],m],[/(wolvic|librewolf)\/([\w\.]+)/i],[f,m],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[m,[f,C+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[f,[m,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[f,[m,/master.|lts./,""]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[g,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[g,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[g,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[g,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[g,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[g,/ower/,"",Q]],[/ sun4\w[;\)]/i],[[g,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[g,Q]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[d,[h,B],[p,y]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[d,[h,B],[p,v]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[d,[h,T],[p,v]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[d,[h,T],[p,y]],[/(macintosh);/i],[d,[h,T]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[d,[h,F],[p,v]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[d,[h,P],[p,y]],[/honor([-\w ]+)[;\)]/i],[d,[h,P],[p,v]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[d,[h,N],[p,y]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[d,[h,N],[p,v]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[d,/_/g," "],[h,z],[p,y]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[d,/_/g," "],[h,z],[p,v]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[d,[h,U],[p,v]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[d,[h,ee,{OnePlus:["304","403","203"],"*":U}],[p,y]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[d,[h,"Vivo"],[p,v]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[d,[h,"Realme"],[p,v]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[d,[h,k],[p,v]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[d,[h,k],[p,y]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[d,[h,"LG"],[p,y]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i,/\blg-?([\d\w]+) bui/i],[d,[h,"LG"],[p,v]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}
5(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[d,[h,"Lenovo"],[p,y]],[/(nokia) (t[12][01])/i],[h,d,[p,y]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[d,/_/g," "],[p,v],[h,"Nokia"]],[/(pixel (c|tablet))\b/i],[d,[h,L],[p,y]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[d,[h,L],[p,v]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[d,[h,$],[p,v]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[d,"Xperia Tablet"],[h,$],[p,y]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[d,[h,D],[p,v]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[d,[h,E],[p,y]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[d,/(.+)/g,"Fire Phone $1"],[h,E],[p,v]],[/(playbook);[-\w\),; ]+(rim)/i],[d,h,[p,y]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[d,[h,A],[p,v]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[d,[h,O],[p,y]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[d,[h,O],[p,v]],[/(nexus 9)/i],[d,[h,"HTC"],[p,y]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[h,[d,/_/g," "],[p,v]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[d,[h,"TCL"],[p,y]],[/(itel) ((\w+))/i],[[h,Q],d,[p,ee,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[d,[h,"Acer"],[p,y]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[d,[h,"Meizu"],[p,v]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[d,[h,"Ulefone"],[p,v]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[d,[h,"Energizer"],[p,v]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[d,[h,"Cat"],[p,v]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[d,[h,"Smartfren"],[p,v]],[/droid.+; (a(?:015|06[35]|142p?))/i],[d,[h,"Nothing"],[p,v]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[d,[h,"Archos"],[p,y]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[d,[h,"Archos"],[p,v]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[h,d,[p,y]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (hmd|imo) ([\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i,/(oppo) ?([\w ]+) bui/i],[h,d,[p,v]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[h,d,[p,y]],[/(surface duo)/i],[d,[h,I],[p,y]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[d,[h,"Fairphone"],[p,v]],[/(u304aa)/i],[d,[h,"AT&T"],[p,v]],[/\bsie-(\w*)/i],[d,[h,"Siemens"],[p,v]],[/\b(rct\w+) b/i],[d,[h,"RCA"],[p,y]],[/\b(venue[\d ]{2,7}) b/i],[d,[h,"Dell"],[p,y]],[/\b(q(?:mv|ta)\w+) b/i],[d,[h,"Verizon"],[p,y]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[d,[h,"Barnes & Noble"],[p,y]],[/\b(tm\d{3}\w+) b/i],[d,[h,"NuVision"],[p,y]],[/\b(k88) b/i],[d,[h,"ZTE"],[p,y]],[/\b(nx\d{3}j) b/i],[d,[h,"ZTE"],[p,v]],[/\b(gen\d{3}) b.+49h/i],[d,[h,"Swiss"],[p,v]],[/\b(zur\d{3}) b/i],[d,[h,"Swiss"],[p,y]],[/\b((zeki)?tb.*\b) b/i],[d,[h,"Zeki"],[p,y]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[h,"Dragon Touch"],d,[p,y]],[/\b(ns-?\w{0,9}) b/i],[d,[h,"Insignia"],[p,y]],[/\b((nxa|next)-?\w{0,9}) b/i],[d,[h,"NextBook"],[p,y]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[h,"Voice"],d,[p,v]],[/\b(lvtel\-)?(v1[12]) b/i],[[h,"LvTel"],d,[p,v]],[/\b(ph-1) /i],[d,[h,"Essential"],[p,v]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[d,[h,"Envizen"],[p,y]],[/\b(trio[-\w\. ]+) b/i],[d,[h,"MachSpeed"],[p,y]],[/\btu_(1491) b/i],[d,[h,"Rotor"],[p,y]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[d,[h,j],[p,y]],[/(sprint) (\w+)/i],[h,d,[p,v]],[/(kin\.[onetw]{3})/i],[[d,/\./g," "],[h,I],[p,v]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[d,[h,V],[p,y]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[d,[h,V],[p,v]],[/smart-tv.+(samsung)/i],[h,[p,_]],[/hbbtv.+maple;(\d+)/i],[[d,/^/,"SmartTV"],[h,B],[p,_]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[h,"LG"],[p,_]],[/(apple) ?tv/i],[h,[d,T+" TV"],[p,_]],[/crkey/i],[[d,x+"cast"],[h,L],[p,_]],[/droid.+aft(\w+)( bui|\))/i],[d,[h,E],[p,_]],[/(shield \w+ tv)/i],[d,[h,j],[p,_]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[d,[h,F],[p,_]],[/(bravia[\w ]+)( bui|\))/i],[d,[h,$],[p,_]],[/(mi(tv|box)-?\w+) bui/i],[d,[h,z],[p,_]],[/Hbbtv.*(technisat) (.*);/i],[h,d,[p,_]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[h,Z],[d,Z],[p,_]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[d,[p,_]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[p,_]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[h,d,[p,b]],[/droid.+; (shield)( bui|\))/i],[d,[h,j],[p,b]],[/(playstation \w+)/i],[d,[h,$],[p,b]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[d,[h,I],[p,b]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[d,[h,B],[p,w]],[/((pebble))app/i,/(asu
vendor: 4,090 bytes, line 5
5s|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[h,d,[p,w]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[d,[h,U],[p,w]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[d,[h,T],[p,w]],[/(opwwe\d{3})/i],[d,[h,D],[p,w]],[/(moto 360)/i],[d,[h,k],[p,w]],[/(smartwatch 3)/i],[d,[h,$],[p,w]],[/(g watch r)/i],[d,[h,"LG"],[p,w]],[/droid.+; (wt63?0{2,3})\)/i],[d,[h,V],[p,w]],[/droid.+; (glass) \d/i],[d,[h,L],[p,w]],[/(pico) (4|neo3(?: link|pro)?)/i],[h,d,[p,w]],[/; (quest( \d| pro)?)/i],[d,[h,H],[p,w]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[h,[p,S]],[/(aeobc)\b/i],[d,[h,E],[p,S]],[/(homepod).+mac os/i],[d,[h,T],[p,S]],[/windows iot/i],[[p,S]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[d,[p,v]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[d,[p,y]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[p,y]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[p,v]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[d,[h,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[m,[f,"EdgeHTML"]],[/(arkweb)\/([\w\.]+)/i],[f,m],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[m,[f,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[f,m],[/ladybird\//i],[[f,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[m,f]],os:[[/microsoft (windows) (vista|xp)/i],[f,m],[/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i],[f,[m,ee,et]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[m,ee,et],[f,"Windows"]],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[m,/_/g,"."],[f,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[f,G],[m,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[m,f],[/(ubuntu) ([\w\.]+) like android/i],[[f,/(.+)/,"$1 Touch"],m],[/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i],[f,m],[/\(bb(10);/i],[m,[f,A]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[m,[f,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[m,[f,C+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[m,[f,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[m,[f,"watchOS"]],[/crkey\/([\d\.]+)/i],[m,[f,x+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[f,q],m],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[f,m],[/(sunos) ?([\w\.\d]*)/i],[[f,"Solaris"],m],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[f,m]]},er=function(e,t){if(typeof e===u&&(t=e,e=s),!(this instanceof er))return new er(e,t).getResult();var n=typeof i!==a&&i.navigator?i.navigator:s,r=e||(n&&n.userAgent?n.userAgent:""),b=n&&n.userAgentData?n.userAgentData:s,_=t?W(en,t):en,w=n&&n.userAgent==r;return this.getBrowser=function(){var e,t={};return t[f]=s,t[m]=s,Y.call(t,r,_.browser),t[c]=typeof(e=t[m])===l?e.replace(/[^\d\.]/g,"").split(".")[0]:s,w&&n&&n.brave&&typeof n.brave.isBrave==o&&(t[f]="Brave"),t},this.getCPU=function(){var e={};return e[g]=s,Y.call(e,r,_.cpu),e},this.getDevice=function(){var e={};
5return e[h]=s,e[d]=s,e[p]=s,Y.call(e,r,_.device),w&&!e[p]&&b&&b.mobile&&(e[p]=v),w&&"Macintosh"==e[d]&&n&&typeof n.standalone!==a&&n.maxTouchPoints&&n.maxTouchPoints>2&&(e[d]="iPad",e[p]=y),e},this.getEngine=function(){var e={};return e[f]=s,e[m]=s,Y.call(e,r,_.engine),e},this.getOS=function(){var e={};return e[f]=s,e[m]=s,Y.call(e,r,_.os),w&&!e[f]&&b&&b.platform&&"Unknown"!=b.platform&&(e[f]=b.platform.replace(/chrome os/i,q).replace(/macos/i,G)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return r},this.setUA=function(e){return r=typeof e===l&&e.length>500?Z(e,500):e,this},this.setUA(r),this};er.VERSION="1.0.41",er.BROWSER=J([f,m,c]),er.CPU=J([g]),er.DEVICE=J([d,h,p,b,v,_,y,w,S]),er.ENGINE=er.OS=J([f,m]),typeof t!==a?(e.exports&&(t=e.exports=er),t.UAParser=er):n.amdO?s===(r=(function(){return er}).call(t,n,t,e))||(e.exports=r):typeof i!==a&&(i.UAParser=er);var ei=typeof i!==a&&(i.jQuery||i.Zepto);if(ei&&!ei.ua){var es=new er;ei.ua=es.getResult(),ei.ua.get=function(){return es.getUA()},ei.ua.set=function(e){es.setUA(e);var t=es.getResult();for(var n in t)ei.ua[n]=t[n]}}}("object"==typeof window?window:this)},19416:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AnchoredClock:()=>g,BindOnceFuture:()=>eb,CompositePropagator:()=>N,ExportResultCode:()=>r,RPCType:()=>i,SDK_INFO:()=>R,TRACE_PARENT_HEADER:()=>V,TRACE_STATE_HEADER:()=>H,TimeoutError:()=>ep,TraceState:()=>z,W3CBaggagePropagator:()=>m,W3CTraceContextPropagator:()=>K,_globalThis:()=>C.X,addHrTimes:()=>O.mw,callWithTimeout:()=>eh,deleteRPCMetadata:()=>X,diagLogLevelFromString:()=>e_,getBooleanFromEnv:()=>L.Ix,getNumberFromEnv:()=>L.Jk,getRPCMetadata:()=>Q,getStringFromEnv:()=>L.HF,getStringListFromEnv:()=>L.f7,getTimeOrigin:()=>O.uc,globalErrorHandler:()=>T,hrTime:()=>O._5,hrTimeDuration:()=>O.W5,hrTimeToMicroseconds:()=>O.w_,hrTimeToMilliseconds:()=>O.JU,hrTimeToNanoseconds:()=>O.u5,hrTimeToTimeStamp:()=>O.tq,internal:()=>eS,isAttributeValue:()=>y,isTimeInput:()=>O.Ir,isTimeInputHrTime:()=>O.VL,isTracingSuppressed:()=>c,isUrlIgnored:()=>em.K,loggingErrorHandler:()=>w,merge:()=>eo,millisToHrTime:()=>O.lg,otperformance:()=>P.u,parseKeyPairsIntoRecord:()=>h,parseTraceParent:()=>G,sanitizeAttributes:()=>v,setGlobalErrorHandler:()=>E,setRPCMetadata:()=>J,suppressTracing:()=>u,timeInputToHrTime:()=>O.KJ,unrefTimer:()=>x,unsuppressTracing:()=>l,urlMatches:()=>em.f});var r,i,s=n(90616),o=n(85469);let a=(0,o.n)("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function u(e){return e.setValue(a,!0)}function l(e){return e.deleteValue(a)}function c(e){return!0===e.getValue(a)}let d="baggage";var f=n(79148);function p(e){let t,n=e.split(";");if(n.length<=0)return;let r=n.shift();if(!r)return;let i=r.indexOf("=");if(i<=0)return;let s=decodeURIComponent(r.substring(0,i).trim()),o=decodeURIComponent(r.substring(i+1).trim());return n.length>0&&(t=(0,f.B)(n.join(";"))),{key:s,value:o,metadata:t}}function h(e){let t={};return"string"==typeof e&&e.length>0&&e.split(",").forEach(e=>{let n=p(e);void 0!==n&&n.value.length>0&&(t[n.key]=n.value)}),t}class m{inject(e,t,n){let r=s.$.getBaggage(e);if(!r||c(e))return;let i=r.getAllEntries().map(([e,t])=>{let n=`${encodeURIComponent(e)}=${encodeURIComponent(t.value)}`;return void 0!==t.metadata&&(n+=";"+t.metadata.toString()),n}).filter(e=>e.length<=4096).slice(0,180).reduce((e,t)=>{let n=`${e}${""!==e?",":""}${t}`;return n.length>8192?e:n},"");i.length>0&&n.set(t,d,i)}extract(e,t,n){let r=n.get(t,d),i=Array.isArray(r)?r.join(","):r;if(!i)return e;let o={};return 0===i.length||(i.split(",").forEach(e=>{let t=p(e);if(t){let e={value:t.value};t.metadata&&(e.metadata=t.metadata),o[t.key]=e}}),0===Object.entries(o).length)?e:s.$.setBaggage(e,s.$.createBaggage(o))}fields(){return[d]}}class g{_monotonicClock;_epochMillis;_performanceMillis;constructor(e,t){this._monotonicClock=t,this._epochMillis=e.now(),this._performanceMillis=t.now()}now(){let e=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+e}}var b=n(13092);function v(e){let t={};if("object"!=typeof e||null==e)return t;for(let[r,i]of Object.entries(e)){var n;if(!("string"==typeof(n=r)&&n.length>0)){b.s.warn(`Invalid attribute key: ${r}`);continue}if(!y(i)){b.s.warn(`Invalid attribute value set for key: ${r}`);continue}Array.isArray(i)?t[r]=i.slice():t[r]=i}return t}function y(e){return null==e||(Array.isArray(e)?function(e){let t;for(let n of e)if(null!=n){if(!t){if(_(n)){t=typeof n;continue}return!1}if(typeof n!==t)return!1}return!0}(e):_(e))}function _(e){switch(typeof e){case"number":case"boolean":case"string":return!0}return!1}function w(){return e=>{var t;b.s.error("string"==typeof(t=e)?t:JSON.stringify(function(e){let t={},n=e;for(;null!==n;
5)Object.getOwnPropertyNames(n).forEach(e=>{if(t[e])return;let r=n[e];r&&(t[e]=String(r))}),n=Object.getPrototypeOf(n);return t}(t)))}}let S=w();function E(e){S=e}function T(e){try{S(e)}catch{}}var O=n(49218);!function(e){e[e.SUCCESS=0]="SUCCESS",e[e.FAILED=1]="FAILED"}(r||(r={}));var A=n(50314);let R={[A.aO]:"opentelemetry","process.runtime.name":"browser",[A.E$]:A.qV,[A.aJ]:"2.0.1"};function x(e){}var C=n(75491),L=n(79565),P=n(2026);class N{_propagators;_fields;constructor(e={}){this._propagators=e.propagators??[],this._fields=Array.from(new Set(this._propagators.map(e=>"function"==typeof e.fields?e.fields():[]).reduce((e,t)=>e.concat(t),[])))}inject(e,t,n){for(let r of this._propagators)try{r.inject(e,t,n)}catch(e){b.s.warn(`Failed to inject with ${r.constructor.name}. Err: ${e.message}`)}}extract(e,t,n){return this._propagators.reduce((e,r)=>{try{return r.extract(e,t,n)}catch(e){b.s.warn(`Failed to extract with ${r.constructor.name}. Err: ${e.message}`)}return e},e)}fields(){return this._fields.slice()}}var I=n(4425),k=n(94727),j=n(40865);let D="[_0-9a-z-*/]",M=`[a-z]${D}{0,255}`,U=`[a-z0-9]${D}{0,240}@[a-z]${D}{0,13}`,B=RegExp(`^(?:${M}|${U})$`),F=/^[ -~]{0,255}[!-~]$/,$=/,|=/;class z{_internalState=new Map;constructor(e){e&&this._parse(e)}set(e,t){let n=this._clone();return n._internalState.has(e)&&n._internalState.delete(e),n._internalState.set(e,t),n}unset(e){let t=this._clone();return t._internalState.delete(e),t}get(e){return this._internalState.get(e)}serialize(){return this._keys().reduce((e,t)=>(e.push(t+"="+this.get(t)),e),[]).join(",")}_parse(e){!(e.length>512)&&(this._internalState=e.split(",").reverse().reduce((e,t)=>{let n=t.trim(),r=n.indexOf("=");if(-1!==r){let i=n.slice(0,r),s=n.slice(r+1,t.length);B.test(i)&&F.test(s)&&!$.test(s)&&e.set(i,s)}return e},new Map),this._internalState.size>32&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,32))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){let e=new z;return e._internalState=new Map(this._internalState),e}}let V="traceparent",H="tracestate",q=RegExp("^\\s?((?!ff)[\\da-f]{2})-((?![0]{32})[\\da-f]{32})-((?![0]{16})[\\da-f]{16})-([\\da-f]{2})(-.*)?\\s?$");function G(e){let t=q.exec(e);return!t||"00"===t[1]&&t[5]?null:{traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}}class K{inject(e,t,n){let r=I.u.getSpanContext(e);if(!r||c(e)||!(0,k.YA)(r))return;let i=`00-${r.traceId}-${r.spanId}-0${Number(r.traceFlags||j.X.NONE).toString(16)}`;n.set(t,V,i),r.traceState&&n.set(t,H,r.traceState.serialize())}extract(e,t,n){let r=n.get(t,V);if(!r)return e;let i=Array.isArray(r)?r[0]:r;if("string"!=typeof i)return e;let s=G(i);if(!s)return e;s.isRemote=!0;let o=n.get(t,H);if(o){let e=Array.isArray(o)?o.join(","):o;s.traceState=new z("string"==typeof e?e:void 0)}return I.u.setSpanContext(e,s)}fields(){return[V,H]}}let W=(0,o.n)("OpenTelemetry SDK Context Key RPC_METADATA");function J(e,t){return e.setValue(W,t)}function X(e){return e.deleteValue(W)}function Q(e){return e.getValue(W)}(i||(i={})).HTTP="http";let Z=Function.prototype.toString,Y=Z.call(Object),ee=Object.getPrototypeOf,et=Object.prototype,en=et.hasOwnProperty,er=Symbol?Symbol.toStringTag:void 0,ei=et.toString;function es(e){var t,n,r;if(null==(t=e)||"object"!=typeof t||"[object Object]"!==(null==(n=e)?void 0===n?"[object Undefined]":"[object Null]":er&&er in Object(n)?function(e){let t=en.call(e,er),n=e[er],r=!1;try{e[er]=void 0,r=!0}catch(e){}let i=ei.call(e);return r&&(t?e[er]=n:delete e[er]),i}(n):(r=n,ei.call(r))))return!1;let i=ee(e);if(null===i)return!0;let s=en.call(i,"constructor")&&i.constructor;return"function"==typeof s&&s instanceof s&&Z.call(s)===Y}function eo(...e){let t=e.shift(),n=new WeakMap;for(;e.length>0;)t=function e(t,n,r=0,i){let s;if(!(r>20)){if(r++,ef(t)||ef(n)||ec(n))s=ea(n);else if(el(t)){if(s=t.slice(),el(n))for(let e=0,t=n.length;e<t;e++)s.push(ea(n[e]));else if(ed(n)){let e=Object.keys(n);for(let t=0,r=e.length;t<r;t++){let r=e[t];s[r]=ea(n[r])}}}else if(ed(t))if(ed(n)){var o,a;if(o=t,a=n,!(es(o)&&es(a)))return n;s=Object.assign({},t);let u=Object.keys(n);for(let o=0,a=u.length;o<a;o++){let a=u[o],l=n[a];if(ef(l))void 0===l?delete s[a]:s[a]=l;else{let o=s[a];if(eu(t,a,i)||eu(n,a,i))delete s[a];else{if(ed(o)&&ed(l)){let e=i.get(o)||[],r=i.get(l)||[];e.push({obj:t,key:a}),r.push({obj:n,key:a}),i.set(o,e),i.set(l,r)}s[a]=e(s[a],l,r,i)}}}}else s=n;return s}}(t,e.shift(),0,n);return t}function ea(e){return el(e)?e.slice():e}function eu(e,t,n){let r=n.get(e[t])||[];for(let n=0,i=r.length;n<i;n++){let i=r[n];if(i.key===t&&i.obj===e)return!0}return!1}function el(e){return Array.isArray(e)}function ec(e){return"function"==typeof e}function ed(e){return!ef(e)&&!el(e)&&!ec(e)&&"object"==typeof e}function ef(e){return"string"==typeof e||"number"==typeof e||"boolean"==typeof e||void 0===e||e instanceof Date||e instanceof RegExp||null===e}
5class ep extends Error{constructor(e){super(e),Object.setPrototypeOf(this,ep.prototype)}}function eh(e,t){let n;return Promise.race([e,new Promise(function(e,r){n=setTimeout(function(){r(new ep("Operation timed out."))},t)})]).then(e=>(clearTimeout(n),e),e=>{throw clearTimeout(n),e})}var em=n(11838);class eg{_promise;_resolve;_reject;constructor(){this._promise=new Promise((e,t)=>{this._resolve=e,this._reject=t})}get promise(){return this._promise}resolve(e){this._resolve(e)}reject(e){this._reject(e)}}class eb{_callback;_that;_isCalled=!1;_deferred=new eg;constructor(e,t){this._callback=e,this._that=t}get isCalled(){return this._isCalled}get promise(){return this._deferred.promise}call(...e){if(!this._isCalled){this._isCalled=!0;try{Promise.resolve(this._callback.call(this._that,...e)).then(e=>this._deferred.resolve(e),e=>this._deferred.reject(e))}catch(e){this._deferred.reject(e)}}return this._deferred.promise}}var ev=n(40907);let ey={ALL:ev.u.ALL,VERBOSE:ev.u.VERBOSE,DEBUG:ev.u.DEBUG,INFO:ev.u.INFO,WARN:ev.u.WARN,ERROR:ev.u.ERROR,NONE:ev.u.NONE};function e_(e){if(null==e)return;let t=ey[e.toUpperCase()];return null==t?(b.s.warn(`Unknown log level "${e}", expected one of ${Object.keys(ey)}, using default`),ev.u.INFO):t}var ew=n(29520);let eS={_export:function(e,t){return new Promise(n=>{ew._.with(u(ew._.active()),()=>{e.export(t,e=>{n(e)})})})}}},20705:(e,t)=>{"use strict";t.ds=t.XV=t.a3=t.v8=t.z4=t.Me=t.rp=t.Mm=void 0,t.Mm="http.host",t.rp="http.method",t.Me="http.request.body.size",t.z4="http.request_content_length_uncompressed",t.v8="http.scheme",t.a3="http.status_code",t.XV="http.url",t.ds="http.user_agent"},21681:(e,t,n)=>{"use strict";t.sJ=void 0;let r=n(79569),i=n(44521);t.sJ=function(e,t){return{resourceSpans:function(e,t){let n=function(e){let t=new Map;for(let n of e){let e=t.get(n.resource);e||(e=new Map,t.set(n.resource,e));let r=`${n.instrumentationScope.name}@${n.instrumentationScope.version||""}:${n.instrumentationScope.schemaUrl||""}`,i=e.get(r);i||(i=[],e.set(r,i)),i.push(n)}return t}(e),i=[],s=n.entries(),o=s.next();for(;!o.done;){let[e,n]=o.value,a=[],u=n.values(),l=u.next();for(;!l.done;){let e=l.value;if(e.length>0){let n=e.map(e=>(function(e,t){let n=e.spanContext(),i=e.status,s=e.parentSpanContext?.spanId?t.encodeSpanContext(e.parentSpanContext?.spanId):void 0;return{traceId:t.encodeSpanContext(n.traceId),spanId:t.encodeSpanContext(n.spanId),parentSpanId:s,traceState:n.traceState?.serialize(),name:e.name,kind:null==e.kind?0:e.kind+1,startTimeUnixNano:t.encodeHrTime(e.startTime),endTimeUnixNano:t.encodeHrTime(e.endTime),attributes:(0,r.toAttributes)(e.attributes),droppedAttributesCount:e.droppedAttributesCount,events:e.events.map(e=>(function(e,t){return{attributes:e.attributes?(0,r.toAttributes)(e.attributes):[],name:e.name,timeUnixNano:t.encodeHrTime(e.time),droppedAttributesCount:e.droppedAttributesCount||0}})(e,t)),droppedEventsCount:e.droppedEventsCount,status:{code:i.code,message:i.message},links:e.links.map(e=>(function(e,t){return{attributes:e.attributes?(0,r.toAttributes)(e.attributes):[],spanId:t.encodeSpanContext(e.context.spanId),traceId:t.encodeSpanContext(e.context.traceId),traceState:e.context.traceState?.serialize(),droppedAttributesCount:e.droppedAttributesCount||0}})(e,t)),droppedLinksCount:e.droppedLinksCount}})(e,t));a.push({scope:(0,r.createInstrumentationScope)(e[0].instrumentationScope),spans:n,schemaUrl:e[0].instrumentationScope.schemaUrl})}l=u.next()}let c={resource:(0,r.createResource)(e),scopeSpans:a,schemaUrl:void 0};i.push(c),o=s.next()}return i}(e,(0,i.getOtlpEncoder)(t))}}},26015:(e,t,n)=>{"use strict";n.d(t,{x:()=>r});let r="1.19.0"},29520:(e,t,n)=>{"use strict";n.d(t,{_:()=>r});var r=n(16799)._.getInstance()},29871:(e,t,n)=>{"use strict";n.d(t,{R:()=>d});var r=n(3985),i=n(42645),s=n(62525),o=n(50483),a=n(61040),u=n(16979),l=n(57978);class c{constructor(){this.updateSession=(0,o.n)(()=>this.updateUserSession(),u.MM),this.updateUserSession=(0,l.vP)({fetchUserSession:c.fetchUserSession,storeUserSession:c.storeUserSession}),this.init()}static removeUserSession(){(0,a.Ai)(u.AQ,c.storageTypeSession)}static storeUserSession(e){(0,a.SO)(u.AQ,(0,i.xD)(e),c.storageTypeSession)}static fetchUserSession(){let e=(0,a.Gq)(u.AQ,c.storageTypeSession);return e?JSON.parse(e):null}init(){document.addEventListener("visibilitychange",()=>{"visible"===document.visibilityState&&this.updateSession()}),s.P.metas.addListener((0,l.h$)({fetchUserSession:c.fetchUserSession,storeUserSession:c.storeUserSession}))}}function d(e){return(null==e?void 0:e.persistent)?r.G:c}c.storageTypeSession=a.Uy.session}
5,33152:(e,t,n)=>{"use strict";let r,i,s,o;n.d(t,{v:()=>nc});var a,u,l,c,d,f,p,h,m,g,b,v,y=n(4425),_=n(29520),w=n(94727),S=n(40865),E=n(85469);let T=(0,E.n)("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function O(e){return!0===e.getValue(T)}let A="[_0-9a-z-*/]",R=`[a-z]${A}{0,255}`,x=`[a-z0-9]${A}{0,240}@[a-z]${A}{0,13}`,C=RegExp(`^(?:${R}|${x})$`),L=/^[ -~]{0,255}[!-~]$/,P=/,|=/;class N{_internalState=new Map;constructor(e){e&&this._parse(e)}set(e,t){let n=this._clone();return n._internalState.has(e)&&n._internalState.delete(e),n._internalState.set(e,t),n}unset(e){let t=this._clone();return t._internalState.delete(e),t}get(e){return this._internalState.get(e)}serialize(){return this._keys().reduce((e,t)=>(e.push(t+"="+this.get(t)),e),[]).join(",")}_parse(e){!(e.length>512)&&(this._internalState=e.split(",").reverse().reduce((e,t)=>{let n=t.trim(),r=n.indexOf("=");if(-1!==r){let i=n.slice(0,r),s=n.slice(r+1,t.length);C.test(i)&&L.test(s)&&!P.test(s)&&e.set(i,s)}return e},new Map),this._internalState.size>32&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,32))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){let e=new N;return e._internalState=new Map(this._internalState),e}}let I="traceparent",k="tracestate",j=RegExp("^\\s?((?!ff)[\\da-f]{2})-((?![0]{32})[\\da-f]{32})-((?![0]{16})[\\da-f]{16})-([\\da-f]{2})(-.*)?\\s?$");class D{inject(e,t,n){let r=y.u.getSpanContext(e);if(!r||O(e)||!(0,w.YA)(r))return;let i=`00-${r.traceId}-${r.spanId}-0${Number(r.traceFlags||S.X.NONE).toString(16)}`;n.set(t,I,i),r.traceState&&n.set(t,k,r.traceState.serialize())}extract(e,t,n){let r=n.get(t,I);if(!r)return e;let i=Array.isArray(r)?r[0]:r;if("string"!=typeof i)return e;let s=function(e){let t=j.exec(e);return!t||"00"===t[1]&&t[5]?null:{traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}}(i);if(!s)return e;s.isRemote=!0;let o=n.get(t,k);if(o){let e=Array.isArray(o)?o.join(","):o;s.traceState=new N("string"==typeof e?e:void 0)}return y.u.setSpanContext(e,s)}fields(){return[I,k]}}var M=function(){var e=function(t,n){return(e=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),U=function(){function e(){}return e.prototype.createGauge=function(e,t){return X},e.prototype.createHistogram=function(e,t){return Q},e.prototype.createCounter=function(e,t){return J},e.prototype.createUpDownCounter=function(e,t){return Z},e.prototype.createObservableGauge=function(e,t){return ee},e.prototype.createObservableCounter=function(e,t){return Y},e.prototype.createObservableUpDownCounter=function(e,t){return et},e.prototype.addBatchObservableCallback=function(e,t){},e.prototype.removeBatchObservableCallback=function(e){},e}(),B=function(){},F=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return M(t,e),t.prototype.add=function(e,t){},t}(B),$=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return M(t,e),t.prototype.add=function(e,t){},t}(B),z=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return M(t,e),t.prototype.record=function(e,t){},t}(B),V=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return M(t,e),t.prototype.record=function(e,t){},t}(B),H=function(){function e(){}return e.prototype.addCallback=function(e){},e.prototype.removeCallback=function(e){},e}(),q=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return M(t,e),t}(H),G=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return M(t,e),t}(H),K=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return M(t,e),t}(H),W=new U,J=new F,X=new z,Q=new V,Z=new $,Y=new q,ee=new G,et=new K,en=new(function(){function e(){}return e.prototype.getMeter=function(e,t,n){return W},e}()),er=n(92550),ei=n(80894),es="metrics",eo=(function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalMeterProvider=function(e){return(0,er.$G)(es,e,ei.K.instance())},e.prototype.getMeterProvider=function(){return(0,er.mS)(es)||en},e.prototype.getMeter=function(e,t,n){return this.getMeterProvider().getMeter(e,t,n)},e.prototype.disable=function(){(0,er.kv)(es,ei.K.instance())},e})().getInstance();let ea="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof n.g?n.g:{},eu=Symbol.for("io.opentelemetry.js.api.logs");class el{emit(e){}}let ec=new el;class ed{getLogger(e,t,n){return new el}}let ef=new ed;class ep{constructor(e,t,n,r){this._provider=e,this.name=t,this.version=n,this.options=r}emit(e){this._getLogger().emit(e)}_getLogger(){if(this._delegate)return this._delegate;let e=this._provider.getDelegateLogger(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):ec}}class eh{getLogger(e,t,n){var r;return null!=(r=this.getDelegateLogger(e,t,n))?r:new ep(this,e,t,n)}getDelegate(){var e;return null!=(e=this._delegate)?e:ef}setDelegate(e){this._delegate=e}getDelegateLogger(e,t,n){var r;return null==(r=this._delegate)?void 0:r.getLogger(e,t,n)}}class em{constructor(){this._proxyLoggerProvider=new eh}static getInstance(){return this._instance||(this._instance=new em),this._instance}setGlobalLoggerProvider(e){return ea[eu]?this.getLoggerProvider():(ea[eu]=t=>1===t?e:ef,this._proxyLoggerProvider.setDelegate(e),e)}getLoggerProvider(){var e,t;return null!=(t=null==(e=ea[eu])?void 0:e.call(ea,1))?t:this._proxyLoggerProvider}getLogger(e,t,n){return this.getLoggerProvider().getLogger(e,t,n)}disable(){delete ea[eu],this._proxyLoggerProvider=new eh}}let eg=em.getInstance();var eb=n(13092),ev=n(50314);let ey={[ev.aO]:"opentelemetry","process.runtime.name":"browser",[ev.E$]:ev.qV,[ev.aJ]:"2.6.0"},e_=e=>null!==e&&"object"==typeof e&&"function"==typeof e.then;class ew{_rawAttributes;_asyncAttributesPending=!1;_schemaUrl;_memoizedAttributes;static FromAttributeList(e,t){let n=new ew({},t);return n._rawAttributes=eT(e),n._asyncAttributesPending=e.filter(([e,t])=>e_(t)).length>0,n}constructor(e,t){let n=e.attributes??{};this._rawAttributes=Object.entries(n).map(([e,t])=>(e_(t)&&(this._asyncAttributesPending=!0),[e,t])),this._rawAttributes=eT(this._rawAttributes),this._schemaUrl=function(e){if("string"==typeof e||void 0===e)return e;eb.s.warn("Schema URL must be string or undefined, got %s. Schema URL will be ignored.",e)}(t?.schemaUrl)}get asyncAttributesPending(){return this._asyncAttributesPending}async waitForAsyncAttributes(){if(this.asyncAttributesPending){for(let e=0;e<this._rawAttributes.length;e++){let[t,n]=this._rawAttributes[e];this._rawAttributes[e]=[t,e_(n)?await n:n]}this._asyncAttributesPending=!1}}get attributes(){if(this.asyncAttributesPending&&eb.s.error("Accessing resource attributes before async attributes settled"),this._memoizedAttributes)return this._memoizedAttributes;let e={};
5for(let[t,n]of this._rawAttributes){if(e_(n)){eb.s.debug(`Unsettled resource attribute ${t} skipped`);continue}null!=n&&(e[t]??=n)}return this._asyncAttributesPending||(this._memoizedAttributes=e),e}getRawAttributes(){return this._rawAttributes}get schemaUrl(){return this._schemaUrl}merge(e){if(null==e)return this;let t=function(e,t){let n=e?.schemaUrl,r=t?.schemaUrl,i=void 0===r||""===r;return void 0===n||""===n?r:i||n===r?n:void eb.s.warn('Schema URL merge conflict: old resource has "%s", updating resource has "%s". Resulting resource will have undefined Schema URL.',n,r)}(this,e);return ew.FromAttributeList([...e.getRawAttributes(),...this.getRawAttributes()],t?{schemaUrl:t}:void 0)}}function eS(e,t){return ew.FromAttributeList(Object.entries(e),t)}function eE(){return eS({[ev.UX]:function(){if(void 0===r)try{let e=globalThis.process.argv0;r=e?`unknown_service:${e}`:"unknown_service"}catch{r="unknown_service"}return r}(),[ev.E$]:ey[ev.E$],[ev.aO]:ey[ev.aO],[ev.aJ]:ey[ev.aJ]})}function eT(e){return e.map(([e,t])=>e_(t)?[e,t.catch(t=>{eb.s.debug("promise rejection for resource attribute: %s - %s",e,t)})]:[e,t])}let eO=Function.prototype.toString,eA=eO.call(Object),eR=Object.getPrototypeOf,ex=Object.prototype,eC=ex.hasOwnProperty,eL=Symbol?Symbol.toStringTag:void 0,eP=ex.toString;function eN(e){var t,n,r;if(null==(t=e)||"object"!=typeof t||"[object Object]"!==(null==(n=e)?void 0===n?"[object Undefined]":"[object Null]":eL&&eL in Object(n)?function(e){let t=eC.call(e,eL),n=e[eL],r=!1;try{e[eL]=void 0,r=!0}catch{}let i=eP.call(e);return r&&(t?e[eL]=n:delete e[eL]),i}(n):(r=n,eP.call(r))))return!1;let i=eR(e);if(null===i)return!0;let s=eC.call(i,"constructor")&&i.constructor;return"function"==typeof s&&s instanceof s&&eO.call(s)===eA}function eI(e){return ej(e)?e.slice():e}function ek(e,t,n){let r=n.get(e[t])||[];for(let n=0,i=r.length;n<i;n++){let i=r[n];if(i.key===t&&i.obj===e)return!0}return!1}function ej(e){return Array.isArray(e)}function eD(e){return"function"==typeof e}function eM(e){return!eU(e)&&!ej(e)&&!eD(e)&&"object"==typeof e}function eU(e){return"string"==typeof e||"number"==typeof e||"boolean"==typeof e||void 0===e||e instanceof Date||e instanceof RegExp||null===e}var eB=n(5202);function eF(e){let t={};if("object"!=typeof e||null==e)return t;for(let r in e){var n;if(!Object.prototype.hasOwnProperty.call(e,r))continue;if("string"!=typeof(n=r)||""===n){eb.s.warn(`Invalid attribute key: ${r}`);continue}let i=e[r];if(!e$(i)){eb.s.warn(`Invalid attribute value set for key: ${r}`);continue}Array.isArray(i)?t[r]=i.slice():t[r]=i}return t}function e$(e){return null==e||(Array.isArray(e)?function(e){let t;for(let n of e){if(null==n)continue;let e=typeof n;if(e!==t){if(!t&&ez(e)){t=e;continue}return!1}}return!0}(e):ez(typeof e))}function ez(e){switch(e){case"number":case"boolean":case"string":return!0}return!1}!function(e){e[e.INTERNAL=0]="INTERNAL",e[e.SERVER=1]="SERVER",e[e.CLIENT=2]="CLIENT",e[e.PRODUCER=3]="PRODUCER",e[e.CONSUMER=4]="CONSUMER"}(a||(a={})),function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"}(u||(u={})),!function(e){e[e.UNSET=0]="UNSET",e[e.OK=1]="OK",e[e.ERROR=2]="ERROR"}(l||(l={}));let eV=performance;function eH(e){return[Math.trunc(e/1e3),Math.round(e%1e3*1e6)]}function eq(e){return Array.isArray(e)&&2===e.length&&"number"==typeof e[0]&&"number"==typeof e[1]}function eG(e){return eq(e)||"number"==typeof e||e instanceof Date}function eK(e,t){let n=[e[0]+t[0],e[1]+t[1]];return n[1]>=1e9&&(n[1]-=1e9,n[0]+=1),n}class eW{_spanContext;kind;parentSpanContext;attributes={};links=[];events=[];startTime;resource;instrumentationScope;_droppedAttributesCount=0;_droppedEventsCount=0;_droppedLinksCount=0;_attributesCount=0;name;status={code:l.UNSET};endTime=[0,0];_ended=!1;_duration=[-1,-1];_spanProcessor;_spanLimits;_attributeValueLengthLimit;_recordEndMetrics;_performanceStartTime;_performanceOffset;_startTimeProvided;constructor(e){let t=Date.now();this._spanContext=e.spanContext,this._performanceStartTime=eV.now(),this._performanceOffset=t-(this._performanceStartTime+eV.timeOrigin),this._startTimeProvided=null!=e.startTime,this._spanLimits=e.spanLimits,this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0,this._spanProcessor=e.spanProcessor,this.name=e.name,this.parentSpanContext=e.parentSpanContext,this.kind=e.kind,this.links=e.links||[],this.startTime=this._getTime(e.startTime??t),this.resource=e.resource,this.instrumentationScope=e.scope,this._recordEndMetrics=e.recordEndMetrics,null!=e.attributes&&this.setAttributes(e.attributes),this._spanProcessor.onStart(this,e.context)}spanContext(){return this._spanContext}setAttribute(e,t){if(null==t||this._isSpanEnded())return this;if(0===e.length)return eb.s.warn(`Invalid attribute key: ${e}`),this;if(!e$(t))return eb.s.warn(`Invalid attribute value set for key: ${e}`),this;let{attributeCountLimit:n}=this._spanLimits,r=!Object.prototype.hasOwnProperty.call(this.attributes,e);return void 0!==n&&this._attributesCount>=n&&r?this._droppedAttributesCount++:(this.attributes[e]=this._truncateToSize(t),r&&this._attributesCount++),this}setAttributes(e){for(let[t,n]of Object.entries(e))this.setAttribute(t,n);return this}addEvent(e,t,n){if(this._isSpanEnded())return this;let{eventCountLimit:r}=this._spanLimits;if(0===r)return eb.s.warn("No events allowed."),this._droppedEventsCount++,this;void 0!==r&&this.events.length>=r&&(0===this._droppedEventsCount&&eb.s.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),eG(t)&&(eG(n)||(n=t),t=void 0);let i=eF(t);return this.events.push({name:e,attributes:i,time:this._getTime(n),droppedAttributesCount:0}),this}addLink(e){return this.links.push(e),this}addLinks(e){return this.links.push(...e),this}setStatus(e){return this._isSpanEnded()||(this.status={...e},null!=this.status.message&&"string"!=typeof e.message&&(eb.s.warn(`Dropping invalid status.message of type '${typeof e.message}', expected 'string'`),delete this.status.message)),this}updateName(e){return this._isSpanEnded()||(this.name=e),this}end(e){var t,n;let r,i;if(this._isSpanEnded())return void eb.s.error(`${this.name} ${this._spanContext.traceId}-${this._spanContext.spanId} - You can only call end() on a span once.`);this.endTime=this._getTime(e),this._duration=(t=this.startTime,r=(n=this.endTime)[0]-t[0],(i=n[1]-t[1])<0&&(r-=1,i+=1e9),[r,i]),this._duration[0]<0&&(eb.s.warn("Inconsistent start and end time, startTime > endTime. Setting span duration to 0ms.",this.startTime,this.endTime),this.endTime=this.startTime.slice(),this._duration=[0,0]),this._droppedEventsCount>0&&eb.s.warn(`Dropped ${this._droppedEventsCount} events because eventCountLimit reached`),this._spanProcessor.onEnding&&this._spanProcessor.onEnding(this),this._recordEndMetrics?.(),this._ended=!0,this._spanProcessor.onEnd(this)}_getTime(e){if("number"==typeof e&&e<=eV.now()){var t;return t=e+this._performanceOffset,eK(eH(eV.timeOrigin),eH("number"==typeof t?t:eV.now()))}if("number"==typeof e)return eH(e);if(e instanceof Date)return eH(e.getTime());if(eq(e))return e;if(this._startTimeProvided)return eH(Date.now());let n=eV.now()-this._performanceStartTime;return eK(this.startTime,eH(n))}isRecording(){return!1===this._ended}recordException(e,t){let n={};"string"==typeof e?n[ev.wL]=e:e&&(e.code?n[ev.d6]=e.code.toString():e.name&&(n[ev.d6]=e.name),e.message&&(n[ev.wL]=e.message),e.stack&&(n[ev.Mb]=e.stack)),n[ev.d6]||n[ev.wL]?this.addEvent("exception",n,t):eb.s.warn(`Failed to record an exception ${e}`)}get duration(){return this._duration}get ended(){return this._ended}get droppedAttributesCount(){return this._droppedAttributesCount}get droppedEventsCount(){return this._droppedEventsCount}get droppedLinksCount(){return this._droppedLinksCount}_isSpanEnded(){if(this._ended){let e=Error(`Operation attempted on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`);eb.s.warn(`Cannot execute the operation on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`,e)}return this._ended}_truncateToLimitUtil(e,t){return e.length<=t?e:e.substring(0,t)}_truncateToSize(e){let t=this._attributeValueLengthLimit;return t<=0?(eb.s.warn(`Attribute value limit must be positive, got ${t}`),e):"string"==typeof e?this._truncateToLimitUtil(e,t):Array.isArray(e)?e.map(e=>"string"==typeof e?this._truncateToLimitUtil(e,t):e):e}}function eJ(e){}!function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"}(c||(c={}));
5class eX{shouldSample(){return{decision:c.NOT_RECORD}}toString(){return"AlwaysOffSampler"}}class eQ{shouldSample(){return{decision:c.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}}let eZ=e=>{eb.s.error(function(e){return"string"==typeof e?e:JSON.stringify(function(e){let t={},n=e;for(;null!==n;)Object.getOwnPropertyNames(n).forEach(e=>{if(t[e])return;let r=n[e];r&&(t[e]=String(r))}),n=Object.getPrototypeOf(n);return t}(e))}(e))};function eY(e){try{eZ(e)}catch{}}class e0{_root;_remoteParentSampled;_remoteParentNotSampled;_localParentSampled;_localParentNotSampled;constructor(e){this._root=e.root,this._root||(eY(Error("ParentBasedSampler must have a root sampler configured")),this._root=new eQ),this._remoteParentSampled=e.remoteParentSampled??new eQ,this._remoteParentNotSampled=e.remoteParentNotSampled??new eX,this._localParentSampled=e.localParentSampled??new eQ,this._localParentNotSampled=e.localParentNotSampled??new eX}shouldSample(e,t,n,r,i,s){let o=y.u.getSpanContext(e);return o&&(0,w.YA)(o)?o.isRemote?o.traceFlags&S.X.SAMPLED?this._remoteParentSampled.shouldSample(e,t,n,r,i,s):this._remoteParentNotSampled.shouldSample(e,t,n,r,i,s):o.traceFlags&S.X.SAMPLED?this._localParentSampled.shouldSample(e,t,n,r,i,s):this._localParentNotSampled.shouldSample(e,t,n,r,i,s):this._root.shouldSample(e,t,n,r,i,s)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}}class e1{_ratio;_upperBound;constructor(e=0){this._ratio=this._normalize(e),this._upperBound=Math.floor(0xffffffff*this._ratio)}shouldSample(e,t){return{decision:(0,w.hX)(t)&&this._accumulate(t)<this._upperBound?c.RECORD_AND_SAMPLED:c.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(e){return"number"!=typeof e||isNaN(e)?0:e>=1?1:e<=0?0:e}_accumulate(e){let t=0;for(let n=0;n<e.length/8;n++){let r=8*n;t=(t^parseInt(e.slice(r,r+8),16))>>>0}return t}}function e2(){return{sampler:e5(),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:eJ("OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT")??1/0,attributeCountLimit:eJ("OTEL_ATTRIBUTE_COUNT_LIMIT")??128},spanLimits:{attributeValueLengthLimit:eJ("OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT")??1/0,attributeCountLimit:eJ("OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT")??128,linkCountLimit:eJ("OTEL_SPAN_LINK_COUNT_LIMIT")??128,eventCountLimit:eJ("OTEL_SPAN_EVENT_COUNT_LIMIT")??128,attributePerEventCountLimit:eJ("OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT")??128,attributePerLinkCountLimit:eJ("OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT")??128}}}function e5(){let e=(void 0)??d.ParentBasedAlwaysOn;switch(e){case d.AlwaysOn:return new eQ;case d.AlwaysOff:return new eX;case d.ParentBasedAlwaysOn:return new e0({root:new eQ});case d.ParentBasedAlwaysOff:return new e0({root:new eX});case d.TraceIdRatio:return new e1(e4());case d.ParentBasedTraceIdRatio:return new e0({root:new e1(e4())});default:return eb.s.error(`OTEL_TRACES_SAMPLER value "${e}" invalid, defaulting to "${d.ParentBasedAlwaysOn}".`),new e0({root:new eQ})}}function e4(){let e=eJ("OTEL_TRACES_SAMPLER_ARG");return null==e?(eb.s.error("OTEL_TRACES_SAMPLER_ARG is blank, defaulting to 1."),1):e<0||e>1?(eb.s.error(`OTEL_TRACES_SAMPLER_ARG=${e} was given, but it is out of range ([0..1]), defaulting to 1.`),1):e}!function(e){e.AlwaysOff="always_off",e.AlwaysOn="always_on",e.ParentBasedAlwaysOff="parentbased_always_off",e.ParentBasedAlwaysOn="parentbased_always_on",e.ParentBasedTraceIdRatio="parentbased_traceidratio",e.TraceIdRatio="traceidratio"}(d||(d={}));let e6=1/0,e3=new Uint8Array(16),e8=new Uint8Array(8),e9=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function e7(e){for(let t=0;t<e.length;t++)e[t]=256*Math.random()>>>0;for(let t=0;t<e.length;t++)if(e[t]>0)return;e[e.length-1]=1}function te(e){let t="";for(let n=0;n<e.length;n++)t+=e9[e[n]];return t}class tt{generateTraceId(){return e7(e3),te(e3)}generateSpanId(){return e7(e8),te(e8)}}let tn="otel.span.sampling_result";class tr{startedSpans;liveSpans;constructor(e){this.startedSpans=e.createCounter("otel.sdk.span.started",{unit:"{span}",description:"The number of created spans."}),this.liveSpans=e.createUpDownCounter("otel.sdk.span.live",{unit:"{span}",description:"The number of currently live spans."})}startSpan(e,t){var n;let r=function(e){switch(e){case c.RECORD_AND_SAMPLED:return"RECORD_AND_SAMPLE";case c.RECORD:return"RECORD_ONLY";case c.NOT_RECORD:return"DROP"}}(t);if(this.startedSpans.add(1,{"otel.span.parent.origin":(n=e)?n.isRemote?"remote":"local":"none",[tn]:r}),t===c.NOT_RECORD)return()=>{};let i={[tn]:r};return this.liveSpans.add(1,i),()=>{this.liveSpans.add(-1,i)}}}class ti{_sampler;_generalLimits;_spanLimits;_idGenerator;instrumentationScope;_resource;_spanProcessor;_tracerMetrics;constructor(e,t,n,r){let i=function(e){let t={sampler:e5()},n=e2(),r=Object.assign({},n,t,e);return r.generalLimits=Object.assign({},n.generalLimits,e.generalLimits||{}),r.spanLimits=Object.assign({},n.spanLimits,e.spanLimits||{}),r}(t);this._sampler=i.sampler,this._generalLimits=i.generalLimits,this._spanLimits=i.spanLimits,this._idGenerator=t.idGenerator||new tt,this._resource=n,this._spanProcessor=r,this.instrumentationScope=e;let s=i.meterProvider?i.meterProvider.getMeter("@opentelemetry/sdk-trace","2.6.0"):W;this._tracerMetrics=new tr(s)}startSpan(e,t={},n=_._.active()){let r,i,s;t.root&&(n=y.u.deleteSpan(n));let o=y.u.getSpan(n);if(O(n))return eb.s.debug("Instrumentation suppressed, returning Noop Span"),y.u.wrapSpanContext(eB.dM);let l=o?.spanContext(),c=this._idGenerator.generateSpanId();l&&y.u.isSpanContextValid(l)?(i=l.traceId,s=l.traceState,r=l):i=this._idGenerator.generateTraceId();let d=t.kind??a.INTERNAL,f=(t.links??[]).map(e=>({context:e.context,attributes:eF(e.attributes)})),p=eF(t.attributes),h=this._sampler.shouldSample(n,i,e,d,p,f),m=this._tracerMetrics.startSpan(l,h.decision);s=h.traceState??s;let g={traceId:i,spanId:c,traceFlags:h.decision===u.RECORD_AND_SAMPLED?S.X.SAMPLED:S.X.NONE,traceState:s};if(h.decision===u.NOT_RECORD)return eb.s.debug("Recording is off, prop
5agating context in a non-recording span"),y.u.wrapSpanContext(g);let b=eF(Object.assign(p,h.attributes));return new eW({resource:this._resource,scope:this.instrumentationScope,context:n,spanContext:g,name:e,kind:d,links:f,parentSpanContext:r,attributes:b,startTime:t.startTime,spanProcessor:this._spanProcessor,spanLimits:this._spanLimits,recordEndMetrics:m})}startActiveSpan(e,t,n,r){let i,s,o;if(arguments.length<2)return;2==arguments.length?o=t:3==arguments.length?(i=t,o=n):(i=t,s=n,o=r);let a=s??_._.active(),u=this.startSpan(e,i,a),l=y.u.setSpan(a,u);return _._.with(l,o,void 0,u)}getGeneralLimits(){return this._generalLimits}getSpanLimits(){return this._spanLimits}}class ts{_spanProcessors;constructor(e){this._spanProcessors=e}forceFlush(){let e=[];for(let t of this._spanProcessors)e.push(t.forceFlush());return new Promise(t=>{Promise.all(e).then(()=>{t()}).catch(e=>{eY(e||Error("MultiSpanProcessor: forceFlush failed")),t()})})}onStart(e,t){for(let n of this._spanProcessors)n.onStart(e,t)}onEnding(e){for(let t of this._spanProcessors)t.onEnding&&t.onEnding(e)}onEnd(e){for(let t of this._spanProcessors)t.onEnd(e)}shutdown(){let e=[];for(let t of this._spanProcessors)e.push(t.shutdown());return new Promise((t,n)=>{Promise.all(e).then(()=>{t()},n)})}}!function(e){e[e.resolved=0]="resolved",e[e.timeout=1]="timeout",e[e.error=2]="error",e[e.unresolved=3]="unresolved"}(f||(f={}));class to{_config;_tracers=new Map;_resource;_activeSpanProcessor;constructor(e={}){let t=function(...e){let t=e.shift(),n=new WeakMap;for(;e.length>0;)t=function e(t,n,r=0,i){let s;if(!(r>20)){if(r++,eU(t)||eU(n)||eD(n))s=eI(n);else if(ej(t)){if(s=t.slice(),ej(n))for(let e=0,t=n.length;e<t;e++)s.push(eI(n[e]));else if(eM(n)){let e=Object.keys(n);for(let t=0,r=e.length;t<r;t++){let r=e[t];s[r]=eI(n[r])}}}else if(eM(t))if(eM(n)){var o,a;if(o=t,a=n,!(eN(o)&&eN(a)))return n;s=Object.assign({},t);let u=Object.keys(n);for(let o=0,a=u.length;o<a;o++){let a=u[o],l=n[a];if(eU(l))void 0===l?delete s[a]:s[a]=l;else{let o=s[a];if(ek(t,a,i)||ek(n,a,i))delete s[a];else{if(eM(o)&&eM(l)){let e=i.get(o)||[],r=i.get(l)||[];e.push({obj:t,key:a}),r.push({obj:n,key:a}),i.set(o,e),i.set(l,r)}s[a]=e(s[a],l,r,i)}}}}else s=n;return s}}(t,e.shift(),0,n);return t}({},e2(),function(e){let t=Object.assign({},e.spanLimits);return t.attributeCountLimit=e.spanLimits?.attributeCountLimit??e.generalLimits?.attributeCountLimit??eJ("OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT")??eJ("OTEL_ATTRIBUTE_COUNT_LIMIT")??128,t.attributeValueLengthLimit=e.spanLimits?.attributeValueLengthLimit??e.generalLimits?.attributeValueLengthLimit??eJ("OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT")??eJ("OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT")??e6,Object.assign({},e,{spanLimits:t})}(e));this._resource=t.resource??eE(),this._config=Object.assign({},t,{resource:this._resource});let n=[];e.spanProcessors?.length&&n.push(...e.spanProcessors),this._activeSpanProcessor=new ts(n)}getTracer(e,t,n){let r=`${e}@${t||""}:${n?.schemaUrl||""}`;return this._tracers.has(r)||this._tracers.set(r,new ti({name:e,version:t,schemaUrl:n?.schemaUrl},this._config,this._resource,this._activeSpanProcessor)),this._tracers.get(r)}forceFlush(){let e=this._config.forceFlushTimeoutMillis,t=this._activeSpanProcessor._spanProcessors.map(t=>new Promise(n=>{let r,i=setTimeout(()=>{n(Error(`Span processor did not completed within timeout period of ${e} ms`)),r=f.timeout},e);t.forceFlush().then(()=>{clearTimeout(i),r!==f.timeout&&n(r=f.resolved)}).catch(e=>{clearTimeout(i),r=f.error,n(e)})}));return new Promise((e,n)=>{Promise.all(t).then(t=>{let r=t.filter(e=>e!==f.resolved);r.length>0?n(r):e()}).catch(e=>n([e]))})}shutdown(){return this._activeSpanProcessor.shutdown()}}class ta{_enabled=!1;_currentContext=E.l;_bindFunction(e=E.l,t){let n=this,r=function(...r){return n.with(e,()=>t.apply(this,r))};return Object.defineProperty(r,"length",{enumerable:!1,configurable:!0,writable:!1,value:t.length}),r}active(){return this._currentContext}bind(e,t){return(void 0===e&&(e=this.active()),"function"==typeof t)?this._bindFunction(e,t):t}disable(){return this._currentContext=E.l,this._enabled=!1,this}enable(){return this._enabled||(this._enabled=!0,this._currentContext=E.l),this}with(e,t,n,...r){let i=this._currentContext;this._currentContext=e||E.l;try{return t.call(n,...r)}finally{this._currentContext=i}}}var tu=n(90616);class tl{_propagators;_fields;constructor(e={}){this._propagators=e.propagators??[],this._fields=Array.from(new Set(this._propagators.map(e=>"function"==typeof e.fields?e.fields():[]).reduce((e,t)=>
5e.concat(t),[])))}inject(e,t,n){for(let r of this._propagators)try{r.inject(e,t,n)}catch(e){eb.s.warn(`Failed to inject with ${r.constructor.name}. Err: ${e.message}`)}}extract(e,t,n){return this._propagators.reduce((e,r)=>{try{return r.extract(e,t,n)}catch(e){eb.s.warn(`Failed to extract with ${r.constructor.name}. Err: ${e.message}`)}return e},e)}fields(){return this._fields.slice()}}let tc="baggage";var td=n(79148);class tf{inject(e,t,n){let r=tu.$.getBaggage(e);if(!r||O(e))return;let i=r.getAllEntries().map(([e,t])=>{let n=`${encodeURIComponent(e)}=${encodeURIComponent(t.value)}`;return void 0!==t.metadata&&(n+=";"+t.metadata.toString()),n}).filter(e=>e.length<=4096).slice(0,180).reduce((e,t)=>{let n=`${e}${""!==e?",":""}${t}`;return n.length>8192?e:n},"");i.length>0&&n.set(t,tc,i)}extract(e,t,n){let r=n.get(t,tc),i=Array.isArray(r)?r.join(","):r;if(!i)return e;let s={};return 0===i.length||(i.split(",").forEach(e=>{let t=function(e){let t,n,r;if(!e)return;let i=e.indexOf(";"),s=-1===i?e:e.substring(0,i),o=s.indexOf("=");if(o<=0)return;let a=s.substring(0,o).trim(),u=s.substring(o+1).trim();if(a&&u){try{t=decodeURIComponent(a),n=decodeURIComponent(u)}catch{return}if(-1!==i&&i<e.length-1){let t=e.substring(i+1);r=(0,td.B)(t)}return{key:t,value:n,metadata:r}}}(e);if(t){let e={value:t.value};t.metadata&&(e.metadata=t.metadata),s[t.key]=e}}),0===Object.entries(s).length)?e:tu.$.setBaggage(e,tu.$.createBaggage(s))}fields(){return[tc]}}class tp extends to{constructor(e={}){super(e)}register(e={}){y.u.setGlobalTracerProvider(this),function(e){if(null!==e){if(void 0===e)return tu.$.setGlobalPropagator(new tl({propagators:[new D,new tf]}));tu.$.setGlobalPropagator(e)}}(e.propagator),function(e){if(null!==e){if(void 0===e){let e=new ta;e.enable(),_._.setGlobalContextManager(e);return}e.enable(),_._.setGlobalContextManager(e)}}(e.contextManager)}}class th{_promise;_resolve;_reject;constructor(){this._promise=new Promise((e,t)=>{this._resolve=e,this._reject=t})}get promise(){return this._promise}resolve(e){this._resolve(e)}reject(e){this._reject(e)}}class tm{_isCalled=!1;_deferred=new th;_callback;_that;constructor(e,t){this._callback=e,this._that=t}get isCalled(){return this._isCalled}get promise(){return this._deferred.promise}call(...e){if(!this._isCalled){this._isCalled=!0;try{Promise.resolve(this._callback.call(this._that,...e)).then(e=>this._deferred.resolve(e),e=>this._deferred.reject(e))}catch(e){this._deferred.reject(e)}}return this._deferred.promise}}!function(e){e[e.SUCCESS=0]="SUCCESS",e[e.FAILED=1]="FAILED"}(p||(p={}));class tg{_maxExportBatchSize;_maxQueueSize;_scheduledDelayMillis;_exportTimeoutMillis;_exporter;_isExporting=!1;_finishedSpans=[];_timer;_shutdownOnce;_droppedSpansCount=0;constructor(e,t){this._exporter=e,this._maxExportBatchSize="number"==typeof t?.maxExportBatchSize?t.maxExportBatchSize:eJ("OTEL_BSP_MAX_EXPORT_BATCH_SIZE")??512,this._maxQueueSize="number"==typeof t?.maxQueueSize?t.maxQueueSize:eJ("OTEL_BSP_MAX_QUEUE_SIZE")??2048,this._scheduledDelayMillis="number"==typeof t?.scheduledDelayMillis?t.scheduledDelayMillis:eJ("OTEL_BSP_SCHEDULE_DELAY")??5e3,this._exportTimeoutMillis="number"==typeof t?.exportTimeoutMillis?t.exportTimeoutMillis:eJ("OTEL_BSP_EXPORT_TIMEOUT")??3e4,this._shutdownOnce=new tm(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(eb.s.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize)}forceFlush(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()}onStart(e,t){}onEnd(e){this._shutdownOnce.isCalled||(e.spanContext().traceFlags&S.X.SAMPLED)!=0&&this._addToBuffer(e)}shutdown(){return this._shutdownOnce.call()}_shutdown(){return Promise.resolve().then(()=>this.onShutdown()).then(()=>this._flushAll()).then(()=>this._exporter.shutdown())}_addToBuffer(e){if(this._finishedSpans.length>=this._maxQueueSize){0===this._droppedSpansCount&&eb.s.debug("maxQueueSize reached, dropping spans"),this._droppedSpansCount++;return}this._droppedSpansCount>0&&(eb.s.warn(`Dropped ${this._droppedSpansCount} spans because maxQueueSize reached`),this._droppedSpansCount=0),this._finishedSpans.push(e),this._maybeStartTimer()}_flushAll(){return new Promise((e,t)=>
5{let n=[],r=Math.ceil(this._finishedSpans.length/this._maxExportBatchSize);for(let e=0;e<r;e++)n.push(this._flushOneBatch());Promise.all(n).then(()=>{e()}).catch(t)})}_flushOneBatch(){return(this._clearTimer(),0===this._finishedSpans.length)?Promise.resolve():new Promise((e,t)=>{let n=setTimeout(()=>{t(Error("Timeout"))},this._exportTimeoutMillis);_._.with(_._.active().setValue(T,!0),()=>{let r;this._finishedSpans.length<=this._maxExportBatchSize?(r=this._finishedSpans,this._finishedSpans=[]):r=this._finishedSpans.splice(0,this._maxExportBatchSize);let i=()=>this._exporter.export(r,r=>{clearTimeout(n),r.code===p.SUCCESS?e():t(r.error??Error("BatchSpanProcessor: span export failed"))}),s=null;for(let e=0,t=r.length;e<t;e++){let t=r[e];t.resource.asyncAttributesPending&&t.resource.waitForAsyncAttributes&&(s??=[]).push(t.resource.waitForAsyncAttributes())}null===s?i():Promise.all(s).then(i,e=>{eY(e),t(e)})})})}_maybeStartTimer(){if(this._isExporting)return;let e=()=>{this._isExporting=!0,this._flushOneBatch().finally(()=>{this._isExporting=!1,this._finishedSpans.length>0&&(this._clearTimer(),this._maybeStartTimer())}).catch(e=>{this._isExporting=!1,eY(e)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return e();void 0===this._timer&&(this._timer=setTimeout(()=>e(),this._scheduledDelayMillis),"number"!=typeof this._timer&&this._timer.unref())}_clearTimer(){void 0!==this._timer&&(clearTimeout(this._timer),this._timer=void 0)}}class tb extends tg{_visibilityChangeListener;_pageHideListener;constructor(e,t){super(e,t),this.onInit(t)}onInit(e){e?.disableAutoFlushOnDocumentHide!==!0&&"undefined"!=typeof document&&(this._visibilityChangeListener=()=>{"hidden"===document.visibilityState&&this.forceFlush().catch(e=>{eY(e)})},this._pageHideListener=()=>{this.forceFlush().catch(e=>{eY(e)})},document.addEventListener("visibilitychange",this._visibilityChangeListener),document.addEventListener("pagehide",this._pageHideListener))}onShutdown(){"undefined"!=typeof document&&(this._visibilityChangeListener&&document.removeEventListener("visibilitychange",this._visibilityChangeListener),this._pageHideListener&&document.removeEventListener("pagehide",this._pageHideListener))}}var tv=n(71298),ty=n(26015),t_=n(85251);class tw{constructor(e,t){this.processor=e,this.metas=t}forceFlush(){return this.processor.forceFlush()}onStart(e,t){var n;let r=this.metas.value.session;
5(null==r?void 0:r.id)&&(e.attributes["session.id"]=r.id,e.attributes.session_id=r.id);let i=null!=(n=this.metas.value.user)?n:{};i.email&&(e.attributes["user.email"]=i.email),i.id&&(e.attributes["user.id"]=i.id),i.username&&(e.attributes["user.name"]=i.username),i.fullName&&(e.attributes["user.full_name"]=i.fullName),i.roles&&(e.attributes["user.roles"]=i.roles.split(",").map(e=>e.trim())),i.hash&&(e.attributes["user.hash"]=i.hash),this.processor.onStart(e,t)}onEnd(e){this.processor.onEnd(e)}shutdown(){return this.processor.shutdown()}}var tS=n(21681),tE=n(34601),tT=n(34181),tO=n(62525);class tA{constructor(e){this.config=e}export(e,t){let n=(0,tS.sJ)(e,{useHex:!0,useLongBits:!1});this.config.api.pushTraces(n),function(e=[]){var t,n;for(let r of e){let{scopeSpans:e}=r;for(let r of e){let{scope:e,spans:i=[]}=r;for(let r of i){if(r.kind!==tE.i1.SPAN_KIND_CLIENT)continue;let i={traceId:r.traceId.toString(),spanId:r.spanId.toString()},s={};for(let e of r.attributes)s[e.key]=String(Object.values(e.value)[0]);Number.isNaN(r.endTimeUnixNano)||Number.isNaN(r.startTimeUnixNano)||(s.duration_ns=String(Number(r.endTimeUnixNano)-Number(r.startTimeUnixNano)));let o=(null!=(t=null==e?void 0:e.name)?t:"").indexOf("-"),a=tT.y;(null==e?void 0:e.name)&&(-1===o&&(a=null!=(n=e.name.split("/")[1])?n:e.name),o>-1&&(a=null==e?void 0:e.name.substring(o+1))),tO.P.api.pushEvent(`faro.tracing.${a}`,s,void 0,{spanContext:i,timestampOverwriteMs:Number(r.endTimeUnixNano)/1e6,customPayloadTransformer:e=>{var t,n;return null!=s["faro.action.user.name"]&&null!=s["faro.action.user.parentId"]&&(e.action={name:s["faro.action.user.name"],parentId:s["faro.action.user.parentId"]},null==(t=e.attributes)||delete t["faro.action.user.name"],null==(n=e.attributes)||delete n["faro.action.user.parentId"]),e}})}}}}(n.resourceSpans),t({code:p.SUCCESS})}shutdown(){return Promise.resolve(void 0)}}var tR=n(52821),tx=n(6027);class tC{constructor(e){this.processor=e,tR.Q.subscribe(e=>{if(e.type===tx.OV){this.message=e;return}[tx.$g,tx.vX,tx._G].includes(e.type)&&(this.message=void 0)})}forceFlush(){return this.processor.forceFlush()}onStart(e,t){var n,r;e.kind===a.CLIENT&&this.message&&(e.attributes["faro.action.user.name"]=null==(n=this.message)?void 0:n.name,e.attributes["faro.action.user.parentId"]=null==(r=this.message)?void 0:r.parentId),this.processor.onStart(e,t)}onEnd(e){this.processor.onEnd(e)}shutdown(){return this.processor.shutdown()}}let tL=console.error.bind(console);function tP(e,t,n){let r=!!e[t]&&Object.prototype.propertyIsEnumerable.call(e,t);Object.defineProperty(e,t,{configurable:!0,enumerable:r,writable:!0,value:n})}let tN=(e,t,n)=>{if(!e||!e[t])return void tL("no original function "+String(t)+" to wrap");if(!n){tL("no wrapper function"),tL(Error().stack);return}let r=e[t];if("function"!=typeof r||"function"!=typeof n)return void tL("original object and wrapper must be functions");let i=n(r,t);return tP(i,"__original",r),tP(i,"__unwrap",()=>{e[t]===i&&tP(e,t,r)}),tP(i,"__wrapped",!0),tP(e,t,i),i},tI=(e,t,n)=>{if(e)Array.isArray(e)||(e=[e]);else{tL("must provide one or more modules to patch"),tL(Error().stack);return}if(!(t&&Array.isArray(t)))return void tL("must provide one or more functions to wrap on modules");e.forEach(e=>{t.forEach(t=>{tN(e,t,n)})})},tk=(e,t)=>{if(!e||!e[t]){tL("no function to unwrap."),tL(Error().stack);return}let n=e[t];if(n.__unwrap)return void n.__unwrap();tL("no original to unwrap to -- has "+String(t)+" already been unwrapped?")},tj=(e,t)=>{if(e)Array.isArray(e)||(e=[e]);else{tL("must provide one or more modules to patch"),tL(Error().stack);return}if(!(t&&Array.isArray(t)))return void tL("must provide one or more functions to unwrap on modules");e.forEach(e=>{t.forEach(t=>{tk(e,t)})})};function tD(e){e&&e.logger&&("function"!=typeof e.logger?tL("new logger isn't a function, not replacing"):tL=e.logger)}tD.wrap=tN,tD.massWrap=tI,tD.unwrap=tk,tD.massUnwrap=tj;class tM{instrumentationName;instrumentationVersion;_config={};_tracer;_meter;_logger;_diag;constructor(e,t,n){this.instrumentationName=e,this.instrumentationVersion=t,this.setConfig(n),this._diag=eb.s.createComponentLogger({namespace:e}),this._tracer=y.u.getTracer(e,t),this._meter=eo.getMeter(e,t),this._logger=eg.getLogger(e,t),this._updateMetricInstruments()}_wrap=tN;_unwrap=tk;_massWrap=tI;_massUnwrap=tj;get meter(){return this._meter}setMeterProvider(e){this._meter=e.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()}get logger(){return this._logger}setLoggerProvider(e){this._logger=e.getLogger(this.instrumentationName,this.instrumentationVersion)}getModuleDefinitions(){let e=this.init()??[];return Array.isArray(e)?e:[e]}_updateMetricInstruments(){}getConfig(){return this._config}setConfig(e){this._config={enabled:!0,...e}}setTracerProvider(e){this._tracer=e.getTracer(this.instrumentationName,this.instrumentationVersion)}get tracer(){return this._tracer}_runSpanCustomizationHook(e,t,n,r){if(e)try{e(n,r)}catch(e){this._diag.error("Error running span customization hook due to exception in handler",{triggerName:t},e)}}}class tU extends tM{constructor(e,t,n){super(e,t,n),this._config.enabled&&this.enable()}}function tB(e,t){let n=h.OLD;for(let r of t?.split(",").map(e=>e.trim()).filter(e=>""!==e)??[])if(r.toLowerCase()===e+"/dup"){n=h.DUPLICATE;break}else r.toLowerCase()===e&&(n=h.STABLE);return n}function tF(e,t,n){let r,i;try{i=e()}catch(e){r=e}finally{if(t(r,i),r&&!n)throw r;return i}}function t$(e){return"function"==typeof e&&"function"==typeof e.__original&&"function"==typeof e.__unwrap&&!0===e.__wrapped}!function(e){e[e.STABLE=1]="STABLE",e[e.OLD=2]="OLD",e[e.DUPLICATE=3]="DUPLICATE"}(h||(h={}));var tz=n(11838),tV=n(49218);function tH(e,t,n,r=!0){if(t in n&&"number"==typeof n[t]&&!(r&&0===n[t]))return e.addEvent(t,n[t])}function tq(e,t,n=!1,r,i){if(void 0===r&&(r=0!==t[m.START_TIME]),n||(tH(e,m.FETCH_START,t,r),tH(e,m.DOMAIN_LOOKUP_START,t,r),tH(e,m.DOMAIN_LOOKUP_END,t,r),tH(e,m.CONNECT_START,t,r),tH(e,m.SECURE_CONNECTION_START,t,r),tH(e,m.CONNECT_END,t,r),tH(e,m.REQUEST_START,t,r),tH(e,m.RESPONSE_START,t,r),tH(e,m.RESPONSE_END,t,r)),!i){let n=t[m.ENCODED_BODY_SIZE];void 0!==n&&e.setAttribute("http.response_content_length",n);let r=t[m.DECODED_BODY_SIZE];void 0!==r&&n!==r&&e.setAttribute("http.response_content_length_uncompressed",r)}}function tG(){return"undefined"!=typeof location?location.origin:void 0}function tK(e,t,n,r,i=new WeakSet,s){let o=tW(e),a=function(e,t,n,r,i,s){let o=(0,tV.u5)(t),a=(0,tV.u5)(n),u=r.filter(t=>
5{let n=(0,tV.u5)((0,tV.KJ)(t[m.FETCH_START])),r=(0,tV.u5)((0,tV.KJ)(t[m.RESPONSE_END]));return t.initiatorType.toLowerCase()===(s||"xmlhttprequest")&&t.name===e&&n>=o&&r<=a});return u.length>0&&(u=u.filter(e=>!i.has(e))),u}(e=o.toString(),t,n,r,i,s);if(0===a.length)return{mainRequest:void 0};if(1===a.length)return{mainRequest:a[0]};let u=a.slice().sort((e,t)=>{let n=e[m.FETCH_START],r=t[m.FETCH_START];return n>r?1:n<r?-1:0});if(o.origin===tG()||!(u.length>1))return{mainRequest:a[0]};{let e=u[0],t=function(e,t,n){let r,i=(0,tV.u5)(n),s=(0,tV.u5)((0,tV.KJ)(t)),o=e[1],a=e.length;for(let t=1;t<a;t++){let n=e[t],a=(0,tV.u5)((0,tV.KJ)(n[m.FETCH_START])),u=i-(0,tV.u5)((0,tV.KJ)(n[m.RESPONSE_END]));a>=s&&(!r||u<r)&&(r=u,o=n)}return o}(u,e[m.RESPONSE_END],n),r=e[m.RESPONSE_END];return t[m.FETCH_START]<r&&(t=e,e=void 0),{corsPreFlightRequest:e,mainRequest:t}}}function tW(e){if("function"==typeof URL)return new URL(e,"undefined"!=typeof document?document.baseURI:"undefined"!=typeof location?location.href:void 0);let t=(i||(i=document.createElement("a")),i);return t.href=e,t}function tJ(e,t){let n=t||[];return("string"==typeof n||n instanceof RegExp)&&(n=[n]),tW(e).origin===tG()||n.some(t=>(0,tz.f)(e,t))}!function(e){e.CONNECT_END="connectEnd",e.CONNECT_START="connectStart",e.DECODED_BODY_SIZE="decodedBodySize",e.DOM_COMPLETE="domComplete",e.DOM_CONTENT_LOADED_EVENT_END="domContentLoadedEventEnd",e.DOM_CONTENT_LOADED_EVENT_START="domContentLoadedEventStart",e.DOM_INTERACTIVE="domInteractive",e.DOMAIN_LOOKUP_END="domainLookupEnd",e.DOMAIN_LOOKUP_START="domainLookupStart",e.ENCODED_BODY_SIZE="encodedBodySize",e.FETCH_START="fetchStart",e.LOAD_EVENT_END="loadEventEnd",e.LOAD_EVENT_START="loadEventStart",e.NAVIGATION_START="navigationStart",e.REDIRECT_END="redirectEnd",e.REDIRECT_START="redirectStart",e.REQUEST_START="requestStart",e.RESPONSE_END="responseEnd",e.RESPONSE_START="responseStart",e.SECURE_CONNECTION_START="secureConnectionStart",e.START_TIME="startTime",e.UNLOAD_EVENT_END="unloadEventEnd",e.UNLOAD_EVENT_START="unloadEventStart"}(m||(m={})),!function(e){e.COMPONENT="component",e.HTTP_STATUS_TEXT="http.status_text"}(g||(g={}));var tX=n(20705),tQ=n(79565);let tZ=eb.s.createComponentLogger({namespace:"@opentelemetry/opentelemetry-instrumentation-fetch/utils"}),tY=new TextEncoder;function t0(e){return tY.encode(e).byteLength}let t1={CONNECT:!0,DELETE:!0,GET:!0,HEAD:!0,OPTIONS:!0,PATCH:!0,POST:!0,PUT:!0,TRACE:!0},t2={"https:":"443","http:":"80"},t5="0.202.0";var t4=n(75491),t6=n(40459);let t3="object"==typeof t6&&t6.release?.name==="node";class t8 extends tU{component="fetch";version=t5;moduleName=this.component;_usedResources=new WeakSet;_tasksCount=0;_semconvStability;constructor(e={}){super("@opentelemetry/instrumentation-fetch",t5,e),this._semconvStability=tB("http",e?.semconvStabilityOptIn)}init(){}_addChildSpan(e,t){let n=this.tracer.startSpan("CORS Preflight",{startTime:t[m.FETCH_START]},y.u.setSpan(_._.active(),e)),r=!(this._semconvStability&h.OLD);tq(n,t,this.getConfig().ignoreNetworkEvents,void 0,r),n.end(t[m.RESPONSE_END])}_addFinalSpanAttributes(e,t){let n=tW(t.url);if(this._semconvStability&h.OLD&&(e.setAttribute(tX.a3,t.status),null!=t.statusText&&e.setAttribute(g.HTTP_STATUS_TEXT,t.statusText),e.setAttribute(tX.Mm,n.host),e.setAttribute(tX.v8,n.protocol.replace(":","")),"undefined"!=typeof navigator&&e.setAttribute(tX.ds,navigator.userAgent)),this._semconvStability&h.STABLE){e.setAttribute(ev.OR,t.status),e.setAttribute(ev.kS,n.hostname);let r=function(e){let t=Number(e.port||t2[e.protocol]);return t&&!isNaN(t)?t:void 0}(n);r&&e.setAttribute(ev.A2,r)}}_addHeaders(e,t){if(!tJ(t,this.getConfig().propagateTraceHeaderCorsUrls)){let e={};tu.$.inject(_._.active(),e),Object.keys(e).length>0&&this._diag.debug("headers inject skipped due to CORS policy");return}if(e instanceof Request)tu.$.inject(_._.active(),e.headers,{set:(e,t,n)=>e.set(t,"string"==typeof n?n:String(n))});else if(e.headers instanceof Headers)tu.$.inject(_._.active(),e.headers,{set:(e,t,n)=>e.set(t,"string"==typeof n?n:String(n))});else if(e.headers instanceof Map)tu.$.inject(_._.active(),e.headers,{set:(e,t,n)=>e.set(t,"string"==typeof n?n:String(n))});else{let t={};tu.$.inject(_._.active(),t),e.headers=Object.assign({},t,e.headers||{})}}_clearResources(){0===this._tasksCount&&this.getConfig().clearTimingResources&&(performance.clearResourceTimings(),this._usedResources=new WeakSet)}_createSpan(e,t={}){if(tz.K(e,this.getConfig().ignoreUrls))return void this._diag.debug("ignoring span as url matches ignored url");let n="",r={};if(this._semconvStability&h.OLD){let i=(t.method||"GET").toUpperCase();n=`HTTP ${i}`,r[g.COMPONENT]=this.moduleName,r[tX.rp]=i,r[tX.XV]=e}if(this._semconvStability&h.STABLE){let i=t.method,o=function(e){let t=function(){if(void 0===s){let e=(0,tQ.f7)("OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS");e&&e.length>0?(s={}
5,e.forEach(e=>{s[e]=!0})):s=t1}return s}(),n=e.toUpperCase();return n in t?n:"_OTHER"}(t.method||"GET");n||(n=o),r[ev.n4]=o,o!==i&&(r[ev.nW]=i),r[ev.WQ]=e}return this.tracer.startSpan(n,{kind:a.CLIENT,attributes:r})}_findResourceAndAddNetworkEvents(e,t,n){let r=t.entries;if(!r.length){if(!performance.getEntriesByType)return;r=performance.getEntriesByType("resource")}let i=tK(t.spanUrl,t.startTime,n,r,this._usedResources,"fetch");if(i.mainRequest){let t=i.mainRequest;this._markResourceAsUsed(t);let n=i.corsPreFlightRequest;n&&(this._addChildSpan(e,n),this._markResourceAsUsed(n));let r=!(this._semconvStability&h.OLD);tq(e,t,this.getConfig().ignoreNetworkEvents,void 0,r)}}_markResourceAsUsed(e){this._usedResources.add(e)}_endSpan(e,t,n){let r=tV.lg(Date.now()),i=tV._5();this._addFinalSpanAttributes(e,n),this._semconvStability&h.STABLE&&n.status>=400&&(e.setStatus({code:l.ERROR}),e.setAttribute(ev.oJ,String(n.status))),setTimeout(()=>{t.observer?.disconnect(),this._findResourceAndAddNetworkEvents(e,t,i),this._tasksCount--,this._clearResources(),e.end(r)},300)}_patchConstructor(){return e=>{let t=this;return function(...n){let r=this,i=tW(n[0]instanceof Request?n[0].url:String(n[0])).href,s=n[0]instanceof Request?n[0]:n[1]||{},o=t._createSpan(i,s);if(!o)return e.apply(this,n);let a=t._prepareSpanData(i);function u(e,n){t._applyAttributesAfterFetch(e,s,n),t._endSpan(e,a,{status:n.status||0,statusText:n.message,url:i})}function l(e,n){t._applyAttributesAfterFetch(e,s,n),n.status>=200&&n.status<400?t._endSpan(e,a,n):t._endSpan(e,a,{status:n.status,statusText:n.statusText,url:i})}function c(e,t,n){try{let t=n.clone().body;if(t){let r=t.getReader(),i=()=>{r.read().then(({done:t})=>{t?l(e,n):i()},t=>{u(e,t)})};i()}else l(e,n)}finally{t(n)}}function d(e,t,n){try{u(e,n)}finally{t(n)}}return t.getConfig().measureRequestSize&&(function(...e){if(e[0]instanceof URL||"string"==typeof e[0]){let t=e[1];if(!t?.body)return Promise.resolve();if(!(t.body instanceof ReadableStream))return Promise.resolve(function(e){return"undefined"!=typeof Document&&e instanceof Document?new XMLSerializer().serializeToString(document).length:"string"==typeof e?t0(e):e instanceof Blob?e.size:e instanceof FormData?function(e){let t=0;for(let[n,r]of e.entries())t+=n.length,r instanceof Blob?t+=r.size:t+=r.length;return t}(e):e instanceof URLSearchParams?t0(e.toString()):void 0!==e.byteLength?e.byteLength:void tZ.warn("unknown body type")}(t.body));{let{body:e,length:n}=function(e){let t;if(!e.pipeThrough)return tZ.warn("Platform has ReadableStream but not pipeThrough!"),{body:e,length:Promise.resolve(void 0)};let n=0,r=new Promise(e=>{t=e}),i=new TransformStream({start(){},async transform(e,t){let r=await e;n+=r.byteLength,t.enqueue(e)},flush(){t(n)}});return{body:e.pipeThrough(i),length:r}}(t.body);return t.body=e,n}}{let t=e[0];return t?.body?t.clone().text().then(e=>t0(e)):Promise.resolve()}})(...n).then(e=>{e&&(t._semconvStability&h.OLD&&o.setAttribute(tX.z4,e),t._semconvStability&h.STABLE&&o.setAttribute(tX.Me,e))}).catch(e=>{t._diag.warn("getFetchBodyLength",e)}),new Promise((n,a)=>_._.with(y.u.setSpan(_._.active(),o),()=>(t._addHeaders(s,i),t._callRequestHook(o,s),t._tasksCount++,e.apply(r,s instanceof Request?[s]:[i,s]).then(c.bind(r,o,n),d.bind(r,o,a)))))}}}_applyAttributesAfterFetch(e,t,n){let r=this.getConfig().applyCustomAttributesOnSpan;r&&tF(()=>r(e,t,n),e=>{e&&this._diag.error("applyCustomAttributesOnSpan",e)},!0)}_callRequestHook(e,t){let n=this.getConfig().requestHook;n&&tF(()=>n(e,t),e=>{e&&this._diag.error("requestHook",e)},!0)}_prepareSpanData(e){let t=tV._5(),n=[];if("function"!=typeof PerformanceObserver)return{entries:n,startTime:t,spanUrl:e};let r=new PerformanceObserver(t=>{t.getEntries().forEach(t=>{"fetch"===t.initiatorType&&t.name===e&&n.push(t)})});return r.observe({entryTypes:["resource"]}),{entries:n,observer:r,startTime:t,spanUrl:e}}enable(){if(t3)return void this._diag.warn("this instrumentation is intended for web usage only, it does not instrument Node.js's fetch()");t$(fetch)&&(this._unwrap(t4.X,"fetch"),this._diag.debug("removing previous patch for constructor")),this._wrap(t4.X,"fetch",this._patchConstructor())}disable(){t3||(this._unwrap(t4.X,"fetch"),this._usedResources=new WeakSet)}}var t9=n(2026);!function(e){e.METHOD_OPEN="open",e.METHOD_SEND="send",e.EVENT_ABORT="abort",e.EVENT_ERROR="error",e.EVENT_LOAD="loaded",e.EVENT_TIMEOUT="timeout"}(b||(b={}));let t7=eb.s.createComponentLogger({namespace:"@opentelemetry/opentelemetry-instrumentation-xml-http-request/utils"}),ne=new TextEncoder;function nt(e){return ne.encode(e).byteLength}let nn={CONNECT:!0,DELETE:!0,GET:!0,HEAD:!0,OPTIONS:!0,PATCH:!0,POST:!0,PUT:!0,TRACE:!0},nr={"https:":"443","http:":"80"},ni="0.202.0";(v||(v={})).HTTP_STATUS_TEXT="http.status_text";class ns extends tU{component="xml-http-request";version=ni;moduleName=this.component;_tasksCount=0;_xhrMem=new WeakMap;_usedResources=new WeakSet;_semconvStability;constructor(e={}){super("@opentelemetry/instrumentation-xml-http-request",ni,e),this._semconvStability=tB("http",e?.semconvStabilityOptIn)}init(){}_addHeaders(e,t){if(!tJ(tW(t).href,this.getConfig().propagateTraceHeaderCorsUrls)){let e={};tu.$.inject(_._.active(),e),Object.keys(e).length>0&&this._diag.debug("headers inject skipped due to CORS policy");return}let n={};
5tu.$.inject(_._.active(),n),Object.keys(n).forEach(t=>{e.setRequestHeader(t,String(n[t]))})}_addChildSpan(e,t){_._.with(y.u.setSpan(_._.active(),e),()=>{let e=this.tracer.startSpan("CORS Preflight",{startTime:t[m.FETCH_START]}),n=!(this._semconvStability&h.OLD);tq(e,t,this.getConfig().ignoreNetworkEvents,void 0,n),e.end(t[m.RESPONSE_END])})}_addFinalSpanAttributes(e,t,n){if(this._semconvStability&h.OLD){if(void 0!==t.status&&e.setAttribute("http.status_code",t.status),void 0!==t.statusText&&e.setAttribute(v.HTTP_STATUS_TEXT,t.statusText),"string"==typeof n){let t=tW(n);e.setAttribute("http.host",t.host),e.setAttribute("http.scheme",t.protocol.replace(":",""))}e.setAttribute("http.user_agent",navigator.userAgent)}this._semconvStability&h.STABLE&&t.status&&e.setAttribute(ev.OR,t.status)}_applyAttributesAfterXHR(e,t){let n=this.getConfig().applyCustomAttributesOnSpan;"function"==typeof n&&tF(()=>n(e,t),e=>{e&&this._diag.error("applyCustomAttributesOnSpan",e)},!0)}_addResourceObserver(e,t){let n=this._xhrMem.get(e);n&&"function"==typeof PerformanceObserver&&"function"==typeof PerformanceResourceTiming&&(n.createdResources={observer:new PerformanceObserver(e=>{let r=e.getEntries(),i=tW(t);r.forEach(e=>{"xmlhttprequest"===e.initiatorType&&e.name===i.href&&n.createdResources&&n.createdResources.entries.push(e)})}),entries:[]},n.createdResources.observer.observe({entryTypes:["resource"]}))}_clearResources(){0===this._tasksCount&&this.getConfig().clearTimingResources&&(t9.u.clearResourceTimings(),this._xhrMem=new WeakMap,this._usedResources=new WeakSet)}_findResourceAndAddNetworkEvents(e,t,n,r,i){if(!n||!r||!i||!e.createdResources)return;let s=e.createdResources.entries;s&&s.length||(s=t9.u.getEntriesByType("resource"));let o=tK(tW(n).href,r,i,s,this._usedResources);if(o.mainRequest){let e=o.mainRequest;this._markResourceAsUsed(e);let n=o.corsPreFlightRequest;n&&(this._addChildSpan(t,n),this._markResourceAsUsed(n));let r=!(this._semconvStability&h.OLD);tq(t,e,this.getConfig().ignoreNetworkEvents,void 0,r)}}_cleanPreviousSpanInformation(e){let t=this._xhrMem.get(e);if(t){let n=t.callbackToRemoveEvents;n&&n(),this._xhrMem.delete(e)}}_createSpan(e,t,n){if((0,tz.K)(t,this.getConfig().ignoreUrls))return void this._diag.debug("ignoring span as url matches ignored url");let r="",i=tW(t),s={};if(this._semconvStability&h.OLD&&(r=n.toUpperCase(),s["http.method"]=n,s["http.url"]=i.toString()),this._semconvStability&h.STABLE){let e=function(e){let t=function(){if(void 0===o){let e=(0,tQ.f7)("OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS");e&&e.length>0?(o={},e.forEach(e=>{o[e]=!0})):o=nn}return o}(),n=e.toUpperCase();return n in t?n:"_OTHER"}(n);r||(r=e),s[ev.n4]=e,e!==n&&(s[ev.nW]=n),s[ev.WQ]=i.toString(),s[ev.kS]=i.hostname;let t=function(e){let t=Number(e.port||nr[e.protocol]);return t&&!isNaN(t)?t:void 0}(i);t&&(s[ev.A2]=t)}let u=this.tracer.startSpan(r,{kind:a.CLIENT,attributes:s});return u.addEvent(b.METHOD_OPEN),this._cleanPreviousSpanInformation(e),this._xhrMem.set(e,{span:u,spanUrl:t}),u}_markResourceAsUsed(e){this._usedResources.add(e)}_patchOpen(){return e=>{let t=this;return function(...n){let r=n[0],i=n[1];return t._createSpan(this,i,r),e.apply(this,n)}}}_patchSend(){let e=this;function t(t,n,r,i){let s=e._xhrMem.get(n);if(!s)return;if(s.status=n.status,s.statusText=n.statusText,e._xhrMem.delete(n),s.span){let t=s.span;e._applyAttributesAfterXHR(t,n),e._semconvStability&h.STABLE&&(r?i&&(t.setStatus({code:l.ERROR,message:i}),t.setAttribute(ev.oJ,i)):s.status&&s.status>=400&&(t.setStatus({code:l.ERROR}),t.setAttribute(ev.oJ,String(s.status))))}let o=(0,tV._5)(),a=Date.now();setTimeout(()=>{let n=s.callbackToRemoveEvents;"function"==typeof n&&n();let{span:r,spanUrl:i,sendStartTime:u}=s;r&&(e._findResourceAndAddNetworkEvents(s,r,i,u,o),r.addEvent(t,a),e._addFinalSpanAttributes(r,s,i),r.end(a),e._tasksCount--),e._clearResources()},300)}function n(){t(b.EVENT_ERROR,this,!0,"error")}function r(){t(b.EVENT_ABORT,this,!1)}function i(){t(b.EVENT_TIMEOUT,this,!0,"timeout")}function s(){this.status<299?t(b.EVENT_LOAD,this,!1):t(b.EVENT_ERROR,this,!1)}return t=>function(...o){let a=e._xhrMem.get(this);if(!a)return t.apply(this,o);let u=a.span,l=a.spanUrl;if(u&&l){if(e.getConfig().measureRequestSize&&o?.[0]){var c,d;let t=(d=c=o[0],"undefined"!=typeof Document&&d instanceof Document)?new XMLSerializer().serializeToString(document).length:"string"==typeof c?nt(c):c instanceof Blob?c.size:c instanceof FormData?function(e){let t=0;for(let[n,r]of e.entries())t+=n.length,r instanceof Blob?t+=r.size:t+=r.length;return t}(c):c instanceof URLSearchParams?nt(c.toString()):void 0!==c.byteLength?c.byteLength:void t7.warn("unknown body type");void 0!==t&&(e._semconvStability&h.OLD&&u.setAttribute("http.request_content_length_uncompressed",t),e._semconvStability&h.STABLE&&u.setAttribute("http.request.body.size",t))}_._.with(y.u.setSpan(_._.active(),u),()=>{e._tasksCount++,a.sendStartTime=(0,tV._5)(),u.addEvent(b.METHOD_SEND),this.addEventListener("abort",r),this.addEventListener("error",n),this.addEventListener("load",s),this.addEventListener("timeout",i),a.callbackToRemoveEvents=()=>{this.removeEventListener("abort",r),this.removeEventListener("error",n),this.removeEventListener("load",s),this.removeEventListener("timeout",i);let t=e._xhrMem.get(this);t&&(t.callbackToRemoveEvents=void 0),a.createdResources&&a.createdResources.observer.disconnect()},e._addHeaders(this,l),e._addResourceObserver(this,l)})}return t.apply(this,o)}}enable(){this._diag.debug("applying patch to",this.moduleName,this.version),t$(XMLHttpRequest.prototype.open)&&(this._unwrap(XMLHttpRequest.prototype,"open"),this._diag.debug("removing previous patch from method open")),t$(XMLHttpRequest.prototype.send)&&(this._unwrap(XMLHttpRequest.prototype,"send"),this._diag.debug("removing previous patch from method send")),this._wrap(XMLHttpRequest.prototype,"open",this._patchOpen()),this._wrap(XMLHttpRequest.prototype,"send",this._patchSend())}disable(){this._diag.debug("removing patch from",this.moduleName,this.version),this._unwrap(XMLHttpRequest.prototype,"open"),this._unwrap(XMLHttpRequest.prototype,"send"),this._tasksCount=0,this._xhrMem=new WeakMap,this._usedResources=new WeakSet}}var no=n(45908);class na extends ns{constructor(e={}){super(e),this.parentCreateSpan=this._createSpan.bind(this)}_patchOpen(){return e=>{let t=this;return function(...n){try{let e=n[0],r=(0,no.iM)(n[1]);t.parentCreateSpan(this,r,e)}catch(e){tO.P.internalLogger.error(e)}return e.apply(this,n)}}}}function nu(e,t){null!=t&&(0===t||t>=400&&t<600)&&e.setStatus({code:l.ERROR})}var nl=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};
5class nc extends tv.i{constructor(e={}){super(),this.options=e,this.name="@grafana/faro-web-tracing",this.version=ty.x}initialize(){var e,t,n,r,i;let s=this.options,o={};this.config.app.name&&(o[ev.UX]=this.config.app.name),this.config.app.namespace&&(o["service.namespace"]=this.config.app.namespace),this.config.app.version&&(o[ev.HZ]=this.config.app.version),this.config.app.environment&&(o["deployment.environment.name"]=this.config.app.environment,o["deployment.environment"]=this.config.app.environment);let a=this.metas.value.browser;(0,t_.cy)(null==a?void 0:a.brands)&&(o["browser.brands"]=a.brands.map(e=>e.brand)),(null==a?void 0:a.language)&&(o["browser.language"]=a.language),"boolean"==typeof(null==a?void 0:a.mobile)&&(o["browser.mobile"]=!!a.mobile),(null==a?void 0:a.os)&&(o["browser.platform"]=a.os),(null==a?void 0:a.userAgent)&&(o[ev.Mz]=a.userAgent),o["process.runtime.name"]="browser",o["process.runtime.version"]=null==(e=this.metas.value.browser)?void 0:e.userAgent,o["telemetry.distro.name"]="faro-web-sdk",o["telemetry.distro.version"]=ty.x,Object.assign(o,s.resourceAttributes),new tp({resource:eE().merge(eS(o)),sampler:{shouldSample:()=>({decision:function(e={}){var t;return(null==(t=e.attributes)?void 0:t.isSampled)==="true"?c.RECORD_AND_SAMPLED:c.NOT_RECORD}(this.api.getSession())})},spanProcessors:[null!=(t=s.spanProcessor)?t:new tC(new tw(new tb(new tA({api:this.api}),{scheduledDelayMillis:nc.SCHEDULED_BATCH_DELAY_MS,maxExportBatchSize:30}),this.metas))]}).register({propagator:null!=(n=s.propagator)?n:new D,contextManager:s.contextManager});let{propagateTraceHeaderCorsUrls:u,fetchInstrumentationOptions:l,xhrInstrumentationOptions:d}=null!=(r=this.options.instrumentationOptions)?r:{};!function(e){let t=e.tracerProvider||y.u.getTracerProvider(),n=e.meterProvider||eo.getMeterProvider(),r=e.loggerProvider||eg.getLoggerProvider(),i=e.instrumentations?.flat()??[];for(let e=0,s=i.length;e<s;e++){let s=i[e];t&&s.setTracerProvider(t),n&&s.setMeterProvider(n),r&&s.setLoggerProvider&&s.setLoggerProvider(r),s.getConfig().enabled||s.enable()}}({instrumentations:null!=(i=s.instrumentations)?i:function(e={}){var t,n,r,i;let{fetchInstrumentationOptions:s,xhrInstrumentationOptions:o}=e,a=nl(e,["fetchInstrumentationOptions","xhrInstrumentationOptions"]),u=(t=s,Object.assign(Object.assign(Object.assign(Object.assign({},a),{ignoreNetworkEvents:!0}),t),{applyCustomAttributesOnSpan:(n=null==t?void 0:t.applyCustomAttributesOnSpan,(e,t,r)=>{nu(e,r instanceof Error?0:r.status),null==n||n(e,t,r)})})),l=(r=o,Object.assign(Object.assign(Object.assign(Object.assign({},a),{ignoreNetworkEvents:!0}),r),{applyCustomAttributesOnSpan:(i=null==r?void 0:r.applyCustomAttributesOnSpan,(e,t)=>{nu(e,t.status),null==i||i(e,t)})}));return[new t8(u),new na(l)]}({ignoreUrls:this.getIgnoreUrls(),propagateTraceHeaderCorsUrls:u,fetchInstrumentationOptions:l,xhrInstrumentationOptions:d})}),this.api.initOTEL(y.u,_._)}getIgnoreUrls(){return this.transports.transports.flatMap(e=>e.getIgnoreUrls())}}nc.SCHEDULED_BATCH_DELAY_MS=1e3},33667:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});let r=e=>e.map(e=>{try{return String(e)}catch(e){return""}}).join(" ")},34181:(e,t,n)=>{"use strict";n.d(t,{y:()=>r});let r="unknown"},34601:(e,t)=>{"use strict";t.BR=t.i1=void 0,function(e){e[e.SPAN_KIND_UNSPECIFIED=0]="SPAN_KIND_UNSPECIFIED",e[e.SPAN_KIND_INTERNAL=1]="SPAN_KIND_INTERNAL",e[e.SPAN_KIND_SERVER=2]="SPAN_KIND_SERVER",e[e.SPAN_KIND_CLIENT=3]="SPAN_KIND_CLIENT",e[e.SPAN_KIND_PRODUCER=4]="SPAN_KIND_PRODUCER",e[e.SPAN_KIND_CONSUMER=5]="SPAN_KIND_CONSUMER"}(t.i1||(t.i1={})),function(e){e[e.STATUS_CODE_UNSET=0]="STATUS_CODE_UNSET",e[e.STATUS_CODE_OK=1]="STATUS_CODE_OK",e[e.STATUS_CODE_ERROR=2]="STATUS_CODE_ERROR"}(t.BR||(t.BR={}))},37932:(e,t,n)=>{"use strict";function r(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}n.d(t,{A:()=>i});var i=function e(t,n){function i(e,i,s){if("undefined"!=typeof document){"number"==typeof(s=r({},n,s)).expires&&(s.expires=new Date(Date.now()+864e5*s.expires)),s.expires&&(s.expires=s.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decode
5URIComponent).replace(/[()]/g,escape);var o="";for(var a in s)s[a]&&(o+="; "+a,!0!==s[a]&&(o+="="+s[a].split(";")[0]));return document.cookie=e+"="+t.write(i,e)+o}}return Object.create({set:i,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var n=document.cookie?document.cookie.split("; "):[],r={},i=0;i<n.length;i++){var s=n[i].split("="),o=s.slice(1).join("=");try{var a=decodeURIComponent(s[0]);if(r[a]=t.read(o,a),e===a)break}catch(e){}}return e?r[e]:r}},remove:function(e,t){i(e,"",r({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,r({},this.attributes,t))},withConverter:function(t){return e(r({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"})},39689:(e,t,n)=>{"use strict";n.d(t,{Td:()=>o,Vl:()=>i,ki:()=>s,nT:()=>a,wM:()=>r});let r="view_changed",i="session_start",s="session_resume",o="session_extend",a="service_name_override"},40865:(e,t,n)=>{"use strict";var r;n.d(t,{X:()=>r}),function(e){e[e.NONE=0]="NONE",e[e.SAMPLED=1]="SAMPLED"}(r||(r={}))},40907:(e,t,n)=>{"use strict";var r;n.d(t,{u:()=>r}),function(e){e[e.NONE=0]="NONE",e[e.ERROR=30]="ERROR",e[e.WARN=50]="WARN",e[e.INFO=60]="INFO",e[e.DEBUG=70]="DEBUG",e[e.VERBOSE=80]="VERBOSE",e[e.ALL=9999]="ALL"}(r||(r={}))},42215:(e,t,n)=>{"use strict";function r(){return Date.now()}function i(){return new Date().toISOString()}function s(e){return new Date(e).toISOString()}n.d(t,{mI:()=>i,q5:()=>s,x3:()=>r})},42645:(e,t,n)=>{"use strict";n.d(t,{Ti:()=>s,xD:()=>i});var r=n(85251);function i(e={}){return JSON.stringify(null!=e?e:{},function(){let e=new WeakSet;return function(t,n){if((0,r.Gv)(n)&&null!==n){if(e.has(n))return null;e.add(n)}return n}}())}function s(e={}){let t={};for(let[n,s]of Object.entries(e))t[n]=(0,r.Gv)(s)&&null!==s?i(s):String(s);return t}},44521:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getOtlpEncoder=t.encodeAsString=t.encodeAsLongBits=t.toLongBits=t.hrTimeToNanos=void 0;let r=n(19416),i=n(65721);function s(e){let t=BigInt(1e9);return BigInt(e[0])*t+BigInt(e[1])}function o(e){return{low:Number(BigInt.asUintN(32,e)),high:Number(BigInt.asUintN(32,e>>BigInt(32)))}}function a(e){return o(s(e))}function u(e){return s(e).toString()}t.hrTimeToNanos=s,t.toLongBits=o,t.encodeAsLongBits=a,t.encodeAsString=u;let l="undefined"!=typeof BigInt?u:r.hrTimeToNanoseconds;function c(e){return e}function d(e){if(void 0!==e)return(0,i.hexToBinary)(e)}let f={encodeHrTime:a,encodeSpanContext:i.hexToBinary,encodeOptionalSpanContext:d};t.getOtlpEncoder=function(e){if(void 0===e)return f;let t=e.useLongBits??!0,n=e.useHex??!1;return{encodeHrTime:t?a:l,encodeSpanContext:n?c:i.hexToBinary,encodeOptionalSpanContext:n?c:d}}},45908:(e,t,n)=>{"use strict";n.d(t,{Ki:()=>s,iM:()=>o});var r=n(62525),i=n(85251);function s(e=""){return r.P.transports.transports.flatMap(e=>e.getIgnoreUrls()).some(t=>e&&null!=e.match(t))}function o(e){return(0,i.Kg)(e)?e:e instanceof URL?e.href:!(0,i.Im)(e)&&(0,i.Tn)(null==e?void 0:e.toString)?e.toString():void 0}},49218:(e,t,n)=>{"use strict";n.d(t,{Ir:()=>h,JU:()=>d,KJ:()=>a,VL:()=>p,W5:()=>u,_5:()=>o,lg:()=>i,mw:()=>m,tq:()=>l,u5:()=>c,uc:()=>s,w_:()=>f});var r=n(2026);function i(e){return[Math.trunc(e/1e3),Math.round(e%1e3*1e6)]}function s(){let e=r.u.timeOrigin;if("number"!=typeof e){let t=r.u;e=t.timing&&t.timing.fetchStart}return e}function o(e){return m(i(s()),i("number"==typeof e?e:r.u.now()))}function a(e){if(p(e))return e;if("number"==typeof e)if(e<s())return o(e);else return i(e);if(e instanceof Date)return i(e.getTime());throw TypeError("Invalid input type")}function u(e,t){let n=t[0]-e[0],r=t[1]-e[1];return r<0&&(n-=1,r+=1e9),[n,r]}function l(e){let t=`${"0".repeat(9)}${e[1]}Z`,n=t.substring(t.length-9-1);return new Date(1e3*e[0]).toISOString().replace("000Z",n)}function c(e){return 1e9*e[0]+e[1]}function d(e){return 1e3*e[0]+e[1]/1e6}function f(e){return 1e6*e[0]+e[1]/1e3}function p(e){return Array.isArray(e)&&2===e.length&&"number"==typeof e[0]&&"number"==typeof e[1]}function h(e){return p(e)||"number"==typeof e||e instanceof Date}function m(e,t){let n=[e[0]+t[0],e[1]+t[1]];return n[1]>=1e9&&(n[1]-=1e9,n[0]+=1),n}}
5,50314:(e,t,n)=>{"use strict";n.d(t,{A2:()=>d,E$:()=>h,HZ:()=>p,Mb:()=>s,Mz:()=>y,OR:()=>l,UX:()=>f,WQ:()=>v,aJ:()=>b,aO:()=>g,d6:()=>o,kS:()=>c,n4:()=>a,nW:()=>u,oJ:()=>r,qV:()=>m,wL:()=>i});let r="error.type",i="exception.message",s="exception.stacktrace",o="exception.type",a="http.request.method",u="http.request.method_original",l="http.response.status_code",c="server.address",d="server.port",f="service.name",p="service.version",h="telemetry.sdk.language",m="webjs",g="telemetry.sdk.name",b="telemetry.sdk.version",v="url.full",y="user_agent.original"},50483:(e,t,n)=>{"use strict";function r(e,t){let n,r=!1,i=()=>{if(null==n){r=!1;return}e(...n),n=null,setTimeout(i,t)};return(...s)=>{if(r){n=s;return}e(...s),r=!0,setTimeout(i,t)}}n.d(t,{n:()=>r})},52565:(e,t,n)=>{"use strict";n.d(t,{HS:()=>g,Lo:()=>p,N9:()=>f,Sy:()=>u,Wf:()=>i,Wo:()=>l,bz:()=>d,cB:()=>a,iC:()=>s,k4:()=>r,ld:()=>m,mZ:()=>b,rD:()=>h,tE:()=>c,xQ:()=>o});let r="\n",i="eval",s="?",o="@",a=/^\s*at (?:(.*?) ?\((?:address at )?)?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,u=/\((\S*)(?::(\d+))(?::(\d+))\)/,l="eval",c="address at ",d=c.length,f=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|safari-extension|safari-web-extension|capacitor)?:\/.*?|\[native code]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,p=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,h=" > eval",m="safari-extension",g="safari-web-extension",b=/Minified React error #\d+;/i},52821:(e,t,n)=>{"use strict";let r;n.d(t,{Q:()=>m,X:()=>g});var i=n(2632),s=n(56203),o=n(42645),a=n(85251),u=n(42215),l=n(97051),c=n(6027),d=n(65490),f=n(87804),p=n(33667);class h{constructor(){this.buffer=[]}addItem(e){this.buffer.push(e)}flushBuffer(e){if((0,a.Tn)(e))for(let t of this.buffer)e(t);this.buffer.length=0}size(){return this.buffer.length}}let m=new i.c;function g(e,t,n,i,g){let b;t.debug("Initializing API");let{actionBuffer:v,getMessage:y}=function({apiMessageBus:e,transports:t,config:n}){let r,i=new h,o=n.trackUserActionsExcludeItem;return e.subscribe(e=>{if(c.OV===e.type||c.vX===e.type){r=e;return}if(e.type===c.$g){let{id:n,name:a}=e;i.flushBuffer(e=>{var r,i;if(r=e,(null==(i=o)?void 0:i(r))||r.type===s.f.MEASUREMENT&&"web-vitals"===r.payload.type)return void t.execute(e);let u=Object.assign(Object.assign({},e),{payload:Object.assign(Object.assign({},e.payload),{action:{parentId:n,name:a}})});t.execute(u)}),r=void 0;return}e.type===c._G&&(r=void 0,i.flushBuffer(e=>{t.execute(e)}))}),{actionBuffer:i,getMessage:()=>r}}({apiMessageBus:m,transports:g,config:n}),_=(t.debug("Initializing traces API"),{getOTEL:()=>b,getTraceContext:()=>{let e=null==b?void 0:b.trace.getSpanContext(b.context.active());return e?{trace_id:e.traceId,span_id:e.spanId}:void 0},initOTEL:(e,n)=>{t.debug("Initializing OpenTelemetry"),b={trace:e,context:n}},isOTELInitialized:()=>!!b,pushTraces:e=>{try{let n={type:s.f.TRACE,payload:e,meta:i.value};t.debug("Pushing trace\n",n),g.execute(n)}catch(e){t.error("Error pushing trace\n",e)}}}),w={unpatchedConsole:e,internalLogger:t,config:n,metas:i,transports:g,tracesApi:_,actionBuffer:v,getMessage:y};return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},_),function({internalLogger:e,config:t,metas:n,transports:i,tracesApi:f,actionBuffer:p,getMessage:h}){var m;e.debug("Initializing exceptions API");let g=null;r=null!=(m=t.parseStacktrace)?m:r;let b=t=>{e.debug("Changing stacktrace parser"),r=null!=t?t:r},{ignoreErrors:v=[],preserveOriginalError:y}=t;return b(t.parseStacktrace),{changeStacktraceParser:b,getStacktraceParser:()=>r,pushError:(m,{skipDedupe:b,stackFrames:_,type:w,context:S,spanContext:E,timestampOverwriteMs:T,originalError:O}={})=>{if(!function(e,t){var n;let{message:r,name:i,stack:s}=t;return n=r+" "+i+" "+s,e.some(e=>(0,a.Kg)(e)?n.includes(e):!!n.match(e))}(v,null!=O?O:m))try{var A;let v,R=(0,o.Ti)(Object.assign(Object.assign({},(v=(A=null!=O?O:m).cause,(0,a.bJ)(v)?v=A.cause.toString():null!==v&&((0,a.Gv)(A.cause)||(0,a.cy)(A.cause))?v=(0,o.xD)(A.cause):null!=v&&(v=A.cause.toString()),null==v?{}:{cause:v})),null!=S?S:{})),x={meta:n.value,payload:Object.assign(Object.assign({type:w||m.name||d.x,value:m.message,timestamp:T?(0,u.q5)(T):(0,u.mI)(),trace:E?{trace_id:E.traceId,span_id:E.spanId}:f.getTraceContext()},(0,a.Im)(R)?{}:{context:R}),y?{originalError:O}:{}),type:s.f.EXCEPTION};(null==(_=null!=_?_:m.stack?null==r?void 0:r(m).frames:void 0)?void 0:_.length)&&(x.payload.stacktrace={frames:_});let C={type:x.payload.type,value:x.payload.value,stackTrace:x.payload.stacktrace,context:x.payload.context};if(!b&&t.dedupe&&!(0,a.kZ)(g)&&(0,l.b)(C,g))return void e.debug("Skipping error push because it is the same as the last one\n",x.payload);g=C,e.debug("Pushing exception\n",x);let L=h();L&&L.type===c.OV?p.addItem(x):i.execute(x)}catch(t){e.error("Error pushing event",t)}}}}(w)),function({internalLogger:e,metas:t}){let n,r,i,s;e.debug("Initializing meta API");let o=e=>{r&&t.remove(r),r={user:e},t.add(r)},u=(e,r)=>{var i;let s=null==r?void 0:r.overrides,o=s?{overrides:Object.assign(Object.assign({},null==(i=null==n?void 0:n.session)?void 0:i.overrides),s)}:{};n&&t.remove(n),n={session:Object.assign(Object.assign({},(0,a.Im)(e)?void 0:e),o)},t.add(n)},l=()=>t.value.session,c=()=>t.value.page;return{setUser:o,resetUser:o,setSession:u,resetSession:u,getSession:l,setView:(e,n)=>{var r;if((null==n?void 0:n.overrides)&&u(l(),{overrides:n.overrides}),(null==(r=null==i?void 0:i.view)?void 0:r.name)===(null==e?void 0:e.name))return;let s=i;i={view:e},t.add(i),s&&t.remove(s)},getView:()=>t.value.view,setPage:e=>{var n;let r=(0,a.Kg)(e)?Object.assign(Object.assign({},null!=(n=null==s?void 0:s.page)?n:c()),{id:e}):e;s&&t.remove(s),s={page:r},t.add(s)},getPage:c}}(w)),function({internalLogger:e,config:t,metas:n,transports:r,tracesApi:i,actionBuffer:d,getMessage:h}){var m;e.debug("Initializing logs API");
5let g=null,b=null!=(m=t.logArgsSerializer)?m:p.Z;return{pushLog:(p,{context:m,level:v,skipDedupe:y,spanContext:_,timestampOverwriteMs:w}={})=>{try{let S=(0,o.Ti)(m),E={type:s.f.LOG,payload:{message:b(p),level:null!=v?v:f.Ic,context:(0,a.Im)(S)?void 0:S,timestamp:w?(0,u.q5)(w):(0,u.mI)(),trace:_?{trace_id:_.traceId,span_id:_.spanId}:i.getTraceContext()},meta:n.value},T={message:E.payload.message,level:E.payload.level,context:E.payload.context};if(!y&&t.dedupe&&!(0,a.kZ)(g)&&(0,l.b)(T,g))return void e.debug("Skipping log push because it is the same as the last one\n",E.payload);g=T,e.debug("Pushing log\n",E);let O=h();O&&O.type===c.OV?d.addItem(E):r.execute(E)}catch(t){e.error("Error pushing log\n",t)}}}}(w)),function({internalLogger:e,config:t,metas:n,transports:r,tracesApi:i,actionBuffer:d,getMessage:f}){e.debug("Initializing measurements API");let p=null;return{pushMeasurement:(h,{skipDedupe:m,context:g,spanContext:b,timestampOverwriteMs:v}={})=>{try{let y=(0,o.Ti)(g),_={type:s.f.MEASUREMENT,payload:Object.assign(Object.assign({},h),{trace:b?{trace_id:b.traceId,span_id:b.spanId}:i.getTraceContext(),timestamp:v?(0,u.q5)(v):(0,u.mI)(),context:(0,a.Im)(y)?void 0:y}),meta:n.value},w={type:_.payload.type,values:_.payload.values,context:_.payload.context};if(!m&&t.dedupe&&!(0,a.kZ)(p)&&(0,l.b)(w,p))return void e.debug("Skipping measurement push because it is the same as the last one\n",_.payload);p=w,e.debug("Pushing measurement\n",_);let S=f();S&&S.type===c.OV?d.addItem(_):r.execute(_)}catch(t){e.error("Error pushing measurement\n",t)}}}}(w)),function({internalLogger:e,config:t,metas:n,transports:r,tracesApi:i,actionBuffer:d,getMessage:f}){let p=null;return{pushEvent:(h,m,g,{skipDedupe:b,spanContext:v,timestampOverwriteMs:y,customPayloadTransformer:_=e=>e}={})=>{try{let w=(0,o.Ti)(m),S={meta:n.value,payload:_({name:h,domain:null!=g?g:t.eventDomain,attributes:(0,a.Im)(w)?void 0:w,timestamp:y?(0,u.q5)(y):(0,u.mI)(),trace:v?{trace_id:v.traceId,span_id:v.spanId}:i.getTraceContext()}),type:s.f.EVENT},E={name:S.payload.name,attributes:S.payload.attributes,domain:S.payload.domain};if(!b&&t.dedupe&&!(0,a.kZ)(p)&&(0,l.b)(E,p))return void e.debug("Skipping event push because it is the same as the last one\n",S.payload);p=E,e.debug("Pushing event\n",S);let T=f();T&&T.type===c.OV?d.addItem(S):r.execute(S)}catch(t){e.error("Error pushing event",t)}}}}(w))}},54803:(e,t,n)=>{"use strict";n.d(t,{S:()=>i});var r=n(52565);function i(e,t,n,i){let s={filename:e||document.location.href,function:t||r.iC};return void 0!==n&&(s.lineno=n),void 0!==i&&(s.colno=i),s}},56203:(e,t,n)=>{"use strict";var r;n.d(t,{J:()=>i,f:()=>r}),function(e){e.EXCEPTION="exception",e.LOG="log",e.MEASUREMENT="measurement",e.TRACE="trace",e.EVENT="event"}(r||(r={}));let i={[r.EXCEPTION]:"exceptions",[r.LOG]:"logs",[r.MEASUREMENT]:"measurements",[r.TRACE]:"traces",[r.EVENT]:"events"}},57175:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){let{html:t,height:n=null,width:s=null,children:o,dataNtpc:a=""}=e;return(0,i.useEffect)(()=>{a&&performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-".concat(a)}})},[a]),(0,r.jsxs)(r.Fragment,{children:[o,t?(0,r.jsx)("div",{style:{height:null!=n?"".concat(n,"px"):"auto",width:null!=s?"".concat(s,"px"):"auto"},"data-ntpc":a,dangerouslySetInnerHTML:{__html:t}}):null]})};let r=n(54568),i=n(7620)},57978:(e,t,n)=>{"use strict";n.d(t,{Bc:()=>f,OW:()=>p,h$:()=>g,vP:()=>h});var r=n(42215),i=n(62525),s=n(87210),o=n(85251),a=n(97051),u=n(39689),l=n(61040),c=n(72543),d=n(16979);function f({sessionId:e,started:t,lastActivity:n,isSampled:o=!0}={}){var a,u;let l=(0,r.x3)(),c=null==(u=null==(a=i.P.config)?void 0:a.sessionTracking)?void 0:u.generateSessionId;return null==e&&(e="function"==typeof c?c():(0,s.S)()),{sessionId:e,lastActivity:null!=n?n:l,started:null!=t?t:l,isSampled:o}}function p(e){if(null==e)return!1;let t=(0,r.x3)();return t-e.started<d.Zl&&t-e.lastActivity<d.gG}function h({fetchUserSession:e,storeUserSession:t}){return function({forceSessionExtend:n}={forceSessionExtend:!1}){var s,o,a;if(!e||!t)return;let u=i.P.config.sessionTracking,d=null==u?void 0:u.persistent;if(d&&!l.OE||!d&&!l.Vv)return;let h=e();if(!1===n&&p(h))t(Object.assign(Object.assign({},h),{lastActivity:(0,r.x3)()}));else{let e=m(f({isSampled:(0,c.$)()}),h);t(e),null==(s=i.P.api)||s.setSession(e.sessionMeta),null==(o=null==u?void 0:u.onSessionChange)||o.call(u,null!=(a=null==h?void 0:h.sessionMeta)?a:null,e.sessionMeta)}}}function m(e,t){var n,r,s,a,u,l,c;let d=Object.assign(Object.assign({},e),{sessionMeta:{id:e.sessionId,attributes:Object.assign(Object.assign(Object.assign({},null==(r=null==(n=i.P.config.sessionTracking)?void 0:n.session)?void 0:r.attributes),null!=(a=null==(s=i.P.metas.value.session)?void 0:s.attributes)?a:{}),{isSampled:e.isSampled.toString()})}}),f=null!=(l=null==(u=i.P.metas.value.session)?void 0:u.overrides)?l:null==(c=null==t?void 0:t.sessionMeta)?void 0:c.overrides;(0,o.Im)(f)||(d.sessionMeta.overrides=f);let p=null==t?void 0:t.sessionId;return null!=p&&(d.sessionMeta.attributes.previousSession=p),d}function g({fetchUserSession:e,storeUserSession:t}){return function(n){let r=n.session,s=e(),o=null==r?void 0:r.id,l=null==r?void 0:r.attributes,d=null==r?void 0:r.overrides,p=null==s?void 0:s.sessionMeta,h=null==p?void 0:p.overrides,g=!!d&&!(0,a.b)(d,h),b=!!l&&!(0,a.b)(l,null==p?void 0:p.attributes);if(r&&o!==(null==s?void 0:s.sessionId)||b||g){let e=m(f({sessionId:o,isSampled:(0,c.$)()}),s);t(e),function(e,t={},n={}){var r,s,o;if(!e)return;let a=t.serviceName,l=null!=(o=null!=(r=n.serviceName)?r:null==(s=i.P.metas.value.app)?void 0:s.name)?o:"";a&&a!==l&&i.P.api.pushEvent(u.nT,{serviceName:a,previousServiceName:l})}(g,d,h),i.P.api.setSession(e.sessionMeta)}}}}
5,58362:(e,t,n)=>{"use strict";n.d(t,{J:()=>r});let r="undefined"!=typeof globalThis?globalThis:void 0!==n.g?n.g:"undefined"!=typeof self?self:void 0},58568:(e,t,n)=>{"use strict";let r,i;n.d(t,{p:()=>U});var s=n(52821),o=n(70904),a=n(82826),u=n(11107);function l(e=a.Z,t=o.vI){let n=o.vc;return t>o.wK.OFF&&(n.error=t>=o.wK.ERROR?function(...t){e.error(`${n.prefix} 6`,...t)}:u.l,n.warn=t>=o.wK.WARN?function(...t){e.warn(`${n.prefix} 7`,...t)}:u.l,n.info=t>=o.wK.INFO?function(...t){e.info(`${n.prefix} 8`,...t)}:u.l,n.debug=t>=o.wK.VERBOSE?function(...t){e.debug(`${n.prefix} 9`,...t)}:u.l),n}let c=o.vc;var d=n(85251),f=n(58362),p=n(26015),h=n(73740),m=n(62525);class g{constructor(e,t){var n,r;this.signalBuffer=[],this.itemLimit=null!=(n=null==t?void 0:t.itemLimit)?n:50,this.sendTimeout=null!=(r=null==t?void 0:t.sendTimeout)?r:250,this.paused=(null==t?void 0:t.paused)||!1,this.sendFn=e,this.flushInterval=-1,this.paused||this.start(),document.addEventListener("visibilitychange",()=>{"hidden"===document.visibilityState&&this.flush()})}addItem(e){!this.paused&&(this.signalBuffer.push(e),this.signalBuffer.length>=this.itemLimit&&this.flush())}start(){this.paused=!1,this.sendTimeout>0&&(this.flushInterval=window.setInterval(()=>this.flush(),this.sendTimeout))}pause(){this.paused=!0,clearInterval(this.flushInterval)}groupItems(e){let t=new Map;return e.forEach(e=>{let n=JSON.stringify(e.meta),r=t.get(n);r=void 0===r?[e]:[...r,e],t.set(n,r)}),Array.from(t.values())}flush(){this.paused||0===this.signalBuffer.length||(this.groupItems(this.signalBuffer).forEach(this.sendFn),this.signalBuffer=[])}}var b=n(56203);let v=a.Z,y={enabled:!0,sendTimeout:250,itemLimit:50};var _=n(33667),w=n(67120);function S(e){return{frames:(0,w.D)(e)}}var E=n(16979),T=n(12463),O=n(16984),A=n(34181);let R=()=>{let e=new O.UAParser,{name:t,version:n}=e.getBrowser(),{name:r,version:i}=e.getOS(),s=e.getUA(),o=navigator.language,a=navigator.userAgent.includes("Mobi"),u=function(){if(t&&n&&"userAgentData"in navigator&&navigator.userAgentData)return navigator.userAgentData.brands}();return{browser:{name:null!=t?t:A.y,version:null!=n?n:A.y,os:`${null!=r?r:A.y} ${null!=i?i:A.y}`,userAgent:null!=s?s:A.y,language:null!=o?o:A.y,mobile:a,brands:null!=u?u:A.y,viewportWidth:`${window.innerWidth}`,viewportHeight:`${window.innerHeight}`}}},x=()=>{let e=window.k6;return{k6:Object.assign({isK6Browser:!0},(null==e?void 0:e.testRunId)&&{testRunId:null==e?void 0:e.testRunId})}};var C=n(10506);class L extends C.H{isBatched(){return!1}getIgnoreUrls(){return[]}}var P=n(29871),N=n(57978),I=function(e,t,n,r){return new(n||(n=Promise))(function(i,s){function o(e){try{u(r.next(e))}catch(e){s(e)}}function a(e){try{u(r.throw(e))}catch(e){s(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(o,a)}u((r=r.apply(e,t||[])).next())})},k=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};class j extends L{constructor(e){var t,n,r,i;super(),this.options=e,this.name="@grafana/faro-web-sdk:transport-fetch",this.version=p.x,this.disabledUntil=new Date,this.rateLimitBackoffMs=null!=(t=e.defaultRateLimitBackoffMs)?t:5e3,this.getNow=null!=(n=e.getNow)?n:()=>Date.now(),this.promiseBuffer=function(e){let{size:t,concurrency:n}=e,r=[],i=0,s=()=>{if(i<n&&r.length){let{producer:e,resolve:t,reject:n}=r.shift();i++,e().then(e=>{i--,s(),t(e)},e=>{i--,s(),n(e)})}};return{add:e=>{if(r.length+i>=t)throw Error("Task buffer full");return new Promise((t,n)=>{r.push({producer:e,resolve:t,reject:n}),s()})}}}({size:null!=(r=e.bufferSize)?r:30,concurrency:null!=(i=e.concurrency)?i:5})}send(e){return I(this,void 0,void 0,function*(){try{if(this.disabledUntil>new Date(this.getNow()))return this.logWarn(`Dropping transport item due to too many requests. Backoff until ${this.disabledUntil}`),Promise.resolve();yield this.promiseBuffer.add(()=>{let t,n,r=JSON.stringify((n={meta:{}}
9,void 0!==e[0]&&(n.meta=e[0].meta),e.forEach(e=>{switch(e.type){case b.f.LOG:case b.f.EVENT:case b.f.EXCEPTION:case b.f.MEASUREMENT:let t=b.J[e.type],r=n[t];n=Object.assign(Object.assign({},n),{[t]:void 0===r?[e.payload]:[...r,e.payload]});break;case b.f.TRACE:n=Object.assign(Object.assign({},n),{traces:function(e,t){var n,r;if(void 0===t)return e;if(void 0===e)return{resourceSpans:t};let i=null==(n=e.resourceSpans)?void 0:n[0];if(void 0===i)return e;let s=(null==i?void 0:i.scopeSpans)||[],o=(null==(r=null==t?void 0:t[0])?void 0:r.scopeSpans)||[];return Object.assign(Object.assign({},e),{resourceSpans:[Object.assign(Object.assign({},i),{scopeSpans:[...s,...o]})]})}(n.traces,e.payload.resourceSpans)})}}),n)),{url:i,requestOptions:s,apiKey:o}=this.options,a=null!=s?s:{},{headers:l}=a,c=k(a,["headers"]),d=this.metas.value.session;return null!=d&&(t=d.id),fetch(i,Object.assign({method:"POST",headers:Object.assign(Object.assign(Object.assign({"Content-Type":"application/json"},null!=l?l:{}),o?{"x-api-key":o}:{}),t?{"x-faro-session-id":t}:{}),body:r,keepalive:r.length<=6e4},null!=c?c:{})).then(e=>I(this,void 0,void 0,function*(){return 202===e.status&&"invalid"===e.headers.get("X-Faro-Session-Status")&&this.extendFaroSession(this.config,this.logDebug),429===e.status&&(this.disabledUntil=this.getRetryAfterDate(e),this.logWarn(`Too many requests, backing off until ${this.disabledUntil}`)),e.text().catch(u.l),e})).catch(e=>{this.logError("Failed sending payload to the receiver\n",JSON.parse(r),e)})})}catch(e){this.logError(e)}})}getIgnoreUrls(){var e;return[this.options.url].concat(null!=(e=this.config.ignoreUrls)?e:[])}isBatched(){return!0}getRetryAfterDate(e){let t=this.getNow(),n=e.headers.get("Retry-After");if(n){let e=Number(n);if(!isNaN(e))return new Date(1e3*e+t);let r=Date.parse(n);if(!isNaN(r))return new Date(r)}return new Date(t+this.rateLimitBackoffMs)}extendFaroSession(e,t){let n="Session expired",r=e.sessionTracking;if(null==r?void 0:r.enabled){let{fetchUserSession:e,storeUserSession:i}=(0,P.R)(r);(0,N.vP)({fetchUserSession:e,storeUserSession:i})({forceSessionExtend:!0}),t(`${n} created new session.`)}else t(`${n}.`)}}var D=n(99858),M=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function U(e){let t=function(e){var t;let n=[],s=l(e.unpatchedConsole,e.internalLoggerLevel);e.transports?((e.url||e.apiKey)&&s.error('if "transports" is defined, "url" and "apiKey" should not be defined'),n.push(...e.transports)):e.url?n.push(new j({url:e.url,apiKey:e.apiKey})):s.error('either "url" or "transports" must be defined');let{dedupe:u=!0,eventDomain:c="browser",globalObjectKey:f="faro",instrumentations:p=(0,D.w)(),internalLoggerLevel:h=o.vI,isolate:m=!1,logArgsSerializer:g=_.Z,metas:b=function(e){var t,n;let{page:s,generatePageId:o}=null!=(t=null==e?void 0:e.pageTracking)?t:{},a=[R,function({generatePageId:e,initialPageMeta:t}={}){return()=>{let n=location.href;return(0,d.Tn)(e)&&r!==n&&(r=n,i=e(location)),{page:Object.assign(Object.assign({url:n},i?{id:i}:{}),t)}}}({generatePageId:o,initialPageMeta:s}),...null!=(n=e.metas)?n:[]];return(0,d.Gv)(window.k6)?[...a,x]:a}(e),paused:v=!1,preventGlobalExposure:w=!1,unpatchedConsole:O=a.Z,trackUserActionsPreview:A=!1,trackUserActionsDataAttributeName:C=T.Ij,url:L}=e;return Object.assign(Object.assign({},M(e,["dedupe","eventDomain","globalObjectKey","instrumentations","internalLoggerLevel","isolate","logArg
9sSerializer","metas","paused","preventGlobalExposure","unpatchedConsole","trackUserActionsPreview","trackUserActionsDataAttributeName","url"])),{batching:Object.assign(Object.assign({},y),e.batching),dedupe:u,globalObjectKey:f,instrumentations:function(e,{trackUserActionsPreview:t}){return e.filter(e=>"@grafana/faro-web-sdk:instrumentation-user-action"!==e.name||!!t)}(p,e),internalLoggerLevel:h,isolate:m,logArgsSerializer:g,metas:b,parseStacktrace:S,paused:v,preventGlobalExposure:w,transports:n,unpatchedConsole:O,eventDomain:c,ignoreUrls:[...null!=(t=e.ignoreUrls)?t:[],...L?[L]:[],/\/collect(?:\/[\w]*)?$/],sessionTracking:Object.assign(Object.assign(Object.assign({},E.Fm),e.sessionTracking),function({trackGeolocation:e,sessionTracking:t}){var n;let r={};return((0,d.Lm)(e)&&(r.geoLocationTrackingEnabled=e),(0,d.Im)(r))?{}:{session:Object.assign(Object.assign({},null!=(n=null==t?void 0:t.session)?n:{}),{overrides:r})}}({trackGeolocation:e.trackGeolocation,sessionTracking:e.sessionTracking})),trackUserActionsPreview:A,trackUserActionsDataAttributeName:C})}(e);if(t)return function(e){var t;let n=v=null!=(t=e.unpatchedConsole)?t:v,r=l(n,e.internalLoggerLevel);if((0,h.rI)()&&!e.isolate)return void r.error('Faro is already registered. Either add instrumentations, transports etc. to the global faro instance or use the "isolate" property');r.debug("Initializing");let i=function(e,t,n){let r=[],i=[],s=()=>r.reduce((e,t)=>Object.assign(e,(0,d.Tn)(t)?t():t),{}),o=()=>{if(i.length){let e=s();i.forEach(t=>t(e))}};return{add:(...e)=>{t.debug("Adding metas\n",e),r.push(...e),o()},remove:(...e)=>{t.debug("Removing metas\n",e),r=r.filter(t=>!e.includes(t)),o()},addListener:e=>{t.debug("Adding metas listener\n",e),i.push(e)},removeListener:e=>{t.debug("Removing metas listener\n",e),i=i.filter(t=>t!==e)},get value(){return s()}}}(0,r,0),o=function(e,t,n,r){var i;let s;t.debug("Initializing transports");let o=[],a=n.paused,u=[],l=e=>{let t=e;for(let e of u){let r=t.map(e).filter(Boolean);if(0===r.length)return[];t=function(e,t){if(t.preserveOriginalError)for(let t of e)t.type===b.f.EXCEPTION&&delete t.payload.originalError;return e}(r,n)}return t},c=e=>{var r,i;if((null==(r=n.batching)?void 0:r.enabled)&&o.every(e=>e.isBatched()))return;let[s]=l([e]);if(void 0!==s)for(let e of o)t.debug(`Transporting item using ${e.name} 10`,s),e.isBatched()?(null==(i=n.batching)?void 0:i.enabled)||e.send([s]):e.send(s)};return(null==(i=n.batching)?void 0:i.enabled)&&(s=new g(e=>{let n=l(e);if(0!==n.length)for(let e of o)t.debug(`Transporting item using ${e.name} 11`,n),e.isBatched()&&e.send(n)},{sendTimeout:n.batching.sendTimeout,itemLimit:n.batching.itemLimit,paused:a})),{add:(...i)=>{t.debug("Adding transports"),i.forEach(i=>{if(t.debug(`Adding "${i.name}" transport`),o.some(e=>e===i))return void t.warn(`Transport ${i.name} is already added`);i.unpatchedConsole=e,i.internalLogger=t,i.config=n,i.metas=r,o.push(i)})},addBeforeSendHooks:(...e)=>{t.debug("Adding beforeSendHooks\n",u),e.forEach(e=>{e&&u.push(e)})},getBeforeSendHooks:()=>[...u],execute:e=>{var t;a||((null==(t=n.batching)?void 0:t.enabled)&&(null==s||s.addItem(e)),c(e))},isPaused:()=>a,pause:()=>{t.debug("Pausing transports"),null==s||s.pause(),a=!0},remove:(...e)=>{t.debug("Removing transports"),e.forEach(e=>{t.debug(`Removing "${e.name}" transport`);let n=o.indexOf(e);if(-1===n)return void t.warn(`Transport "${e.name}" is not added`);o.splice(n,1)})},removeBeforeSendHooks:(...e)=>{u.filter(t=>!e.includes(t))},get transports(){return[...o]},unpause:()=>{t.debug("Unpausing transports"),null==s||s.start(),a=!1}}}(n,r,e,i),a=(0,s.X)(n,r,e,i,o),u=function(e,t,n,r,i,s){t.debug("Initializing instrumentations");let o=[];return{add:(...a)=>{t.debug("Adding instrumentations"),a.forEach(a=>{if(t.debug(`Adding "${a.name}" instrumentation`),o.some(e=>e.name===a.name))return void t.warn(`Instrumentation ${a.name} is already added`);a.unpatchedConsole=e,a.internalLogger=t,a.config=n,a.metas=r,a.transports=i,a.api=s,o.push(a),a.initialize()})},get instrumentations(){return[...o]},remove:(...e)=>
11{t.debug("Removing instrumentations"),e.forEach(e=>{var n,r;t.debug(`Removing "${e.name}" instrumentation`);let i=o.reduce((t,n,r)=>null===t&&n.name===e.name?r:null,null);if(null===i)return void t.warn(`Instrumentation "${e.name}" is not added`);null==(r=(n=o[i]).destroy)||r.call(n),o.splice(i,1)})}}}(n,r,e,i,o,a),c=(0,m.A)(n,r,e,i,o,a,u);return!function(e){var t,n,r;let i={sdk:{version:p.x},app:{bundleId:e.config.app.name&&(r=e.config.app.name,null===f.J||void 0===f.J?void 0:f.J[`__faroBundleId_${r}`])}},s=null==(t=e.config.sessionTracking)?void 0:t.session;s&&e.api.setSession(s),e.config.app&&(i.app=Object.assign(Object.assign({},e.config.app),i.app)),e.config.user&&(i.user=e.config.user),e.config.view&&(i.view=e.config.view),e.metas.add(i,...null!=(n=e.config.metas)?n:[])}(c),c.transports.add(...c.config.transports),c.transports.addBeforeSendHooks(c.config.beforeSend),c.instrumentations.add(...c.config.instrumentations),c}(t)}},61040:(e,t,n)=>{"use strict";n.d(t,{Ai:()=>u,Gq:()=>o,OE:()=>l,SO:()=>a,Uy:()=>i,Vv:()=>c});var r=n(62525);let i={session:"sessionStorage",local:"localStorage"};function s(e){var t;try{let t;t=window[e];let n="__faro_storage_test__";return t.setItem(n,n),t.removeItem(n),!0}catch(n){return null==(t=r.P.internalLogger)||t.info(`Web storage of type ${e} is not available. Reason: ${n}`),!1}}function o(e,t){return d(t)?window[t].getItem(e):null}function a(e,t,n){if(d(n))try{window[n].setItem(e,t)}catch(e){}}function u(e,t){d(t)&&window[t].removeItem(e)}let l=s(i.local),c=s(i.session);function d(e){return e===i.local?l:e===i.session&&c}},62525:(e,t,n)=>{"use strict";n.d(t,{P:()=>s,A:()=>o});var r=n(58362),i=n(73740);let s={};function o(e,t,n,o,a,u,l){return t.debug("Initializing Faro"),s={api:u,config:n,instrumentations:l,internalLogger:t,metas:o,pause:a.pause,transports:a,unpatchedConsole:e,unpause:a.unpause},(0,i.N2)(s),!function(e){if(e.config.preventGlobalExposure)e.internalLogger.debug("Skipping registering public Faro instance in the global scope");else{if(e.internalLogger.debug(`Registering public faro reference in the global scope using "${e.config.globalObjectKey}" key`),e.config.globalObjectKey in r.J)return e.internalLogger.warn(`Skipping global registration due to key "${e.config.globalObjectKey}" being used already. Please set "globalObjectKey" to something else or set "preventGlobalExposure" to "true"`);Object.defineProperty(r.J,e.config.globalObjectKey,{configurable:!1,writable:!1,value:e})}}(s),s}},65490:(e,t,n)=>{"use strict";n.d(t,{n:()=>o,x:()=>s});var r=n(85251),i=n(42645);let s="Error",o=e=>e.map(e=>(0,r.Gv)(e)?(0,i.xD)(e):String(e)).join(" ")},65721:(e,t)=>{"use strict";function n(e){return e>=48&&e<=57?e-48:e>=97&&e<=102?e-87:e-55}Object.defineProperty(t,"__esModule",{value:!0}),t.hexToBinary=void 0,t.hexToBinary=function(e){let t=new Uint8Array(e.length/2),r=0;for(let i=0;i<e.length;i+=2){let s=n(e.charCodeAt(i)),o=n(e.charCodeAt(i+1));t[r++]=s<<4|o}return t}},67120:(e,t,n)=>{"use strict";n.d(t,{D:()=>a});var r=n(85251),i=n(54803),s=n(52565);function o(e,t){let n=null==e?void 0:e.includes(s.ld),r=!n&&(null==e?void 0:e.includes(s.HS));return n||r?[(null==e?void 0:e.includes(s.xQ))?e.split(s.xQ)[0]:e,n?`${s.ld}:${t}`:`${s.HS}:${t}`]:[e,t]}function a(e){let t=[];e.stacktrace?t=e.stacktrace.split(s.k4).filter((e,t)=>t%2==0):e.stack&&(t=e.stack.split(s.k4));let n=t.reduce((t,n,a)=>{let u,l,c,d,f;if(u=s.cB.exec(n)){if(l=u[1],c=u[2],d=u[3],f=u[4],null==c?void 0:c.startsWith(s.Wo)){let e=s.Sy.exec(c);e&&(c=e[1],d=e[2],f=e[3])}c=(null==c?void 0:c.startsWith(s.tE))?c.substring(s.bz):c,[l,c]=o(l,c)}else if(u=s.N9.exec(n)){if(l=u[1],c=u[3],d=u[4],f=u[5],c&&c.includes(s.rD)){let e=s.Lo.exec(c);e&&(l=l||s.Wf,c=e[1],d=e[2])}else 0===a&&!f&&(0,r.Et)(e.columnNumber)&&(f=String(e.columnNumber+1));[l,c]=o(l,c)}return(c||l)&&t.push((0,i.S)(c,l,d?Number(d):void 0,f?Number(f):void 0)),t},[]);return s.mZ.test(e.message)?n.slice(1):n}},70904:(e,t,n)=>{"use strict";n.d(t,{vI:()=>o,vc:()=>s,wK:()=>r});var r,i=n(11107);!function(e){e[e.OFF=0]="OFF",e[e.ERROR=1]="ERROR",e[e.WARN=2]="WARN",e[e.INFO=3]="INFO",e[e.VERBOSE=4]="VERBOSE"}(r||(r={}));let s={debug:i.l,error:i.l,info:i.l,prefix:"Faro",warn:i.l},o=r.ERROR}
11,71298:(e,t,n)=>{"use strict";n.d(t,{i:()=>i});var r=n(10506);class i extends r.H{constructor(){super(...arguments),this.api={},this.transports={}}}},72543:(e,t,n)=>{"use strict";n.d(t,{$:()=>i});var r=n(62525);function i(){var e,t,n;let i=r.P.config.sessionTracking,s=null!=(n=null!=(t=null==(e=null==i?void 0:i.sampler)?void 0:e.call(i,{metas:r.P.metas.value}))?t:null==i?void 0:i.samplingRate)?n:1;return"number"!=typeof s&&(s=0),Math.random()<s}},72762:(e,t,n)=>{"use strict";n.d(t,{d:()=>i});var r=n(5202),i=function(){function e(e){void 0===e&&(e=r.dM),this._spanContext=e}return e.prototype.spanContext=function(){return this._spanContext},e.prototype.setAttribute=function(e,t){return this},e.prototype.setAttributes=function(e){return this},e.prototype.addEvent=function(e,t){return this},e.prototype.addLink=function(e){return this},e.prototype.addLinks=function(e){return this},e.prototype.setStatus=function(e){return this},e.prototype.updateName=function(e){return this},e.prototype.end=function(e){},e.prototype.isRecording=function(){return!1},e.prototype.recordException=function(e,t){},e}()},73740:(e,t,n)=>{"use strict";n.d(t,{rI:()=>o,N2:()=>s});var r=n(58362);let i="_faroInternal";function s(e){e.config.isolate?e.internalLogger.debug("Skipping registering internal Faro instance on global object"):(e.internalLogger.debug("Registering internal Faro instance on global object"),Object.defineProperty(r.J,i,{configurable:!1,enumerable:!1,writable:!1,value:e}))}function o(){return i in r.J}},75491:(e,t,n)=>{"use strict";n.d(t,{X:()=>r});let r="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof n.g?n.g:{}},76206:(e,t,n)=>{"use strict";let r;Object.defineProperty(t,"__esModule",{value:!0}),t.GoogleAnalytics=function(e){let{gaId:t,debugMode:n,dataLayerName:a="dataLayer",nonce:u}=e;return void 0===r&&(r=a),(0,s.useEffect)(()=>{performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-ga"}})},[]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o.default,{id:"_next-ga-init",dangerouslySetInnerHTML:{__html:"\n window['".concat(a,"'] = window['").concat(a,"'] || [];\n function gtag(){window['").concat(a,"'].push(arguments);}\n gtag('js', new Date());\n\n gtag('config', '").concat(t,"' ").concat(n?",{ 'debug_mode': true }":"",");")},nonce:u}),(0,i.jsx)(o.default,{id:"_next-ga",src:"https://www.googletagmanager.com/gtag/js?id=".concat(t),nonce:u})]})},t.sendGAEvent=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];if(void 0===r)return void console.warn("@next/third-parties: GA has not been initialized");window[r]?window[r].push(arguments):console.warn("@next/third-parties: GA dataLayer ".concat(r," does not exist"))};let i=n(54568),s=n(7620),o=function(e){return e&&e.__esModule?e:{default:e}}(n(8139))},79148:(e,t,n)=>{"use strict";n.d(t,{B:()=>c,L:()=>l});var r=n(80894),i=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,s=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=s.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(i)throw i.error}}return o},s=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},o=function(){function e(e){this._entries=e?new Map(e):new Map}return e.prototype.getEntry=function(e){var t=this._entries.get(e);if(t)return Object.assign({},t)},e.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(e){var t=i(e,2);return[t[0],t[1]]})},e.prototype.setEntry=function(t,n){var r=new e(this._entries);return r._entries.set(t,n),r},e.prototype.removeEntry=function(t){var n=new e(this._entries);return n._entries.delete(t),n},e.prototype.removeEntries=function(){for(var t,n,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var o=new e(this._entries);try{for(var a=s(r),u=a.next();!u.done;u=a.next()){var l=u.value;o._entries.delete(l)}}catch(e){t={error:e}}finally{try{u&&!u.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return o},e.prototype.clear=function(){return new e},e}(),a=Symbol("BaggageEntryMetadata"),u=r.K.instance();function l(e){return void 0===e&&(e={}),new o(new Map(Object.entries(e)))}function c(e){return"string"!=typeof e&&(u.error("Cannot create baggage metadata from unknown type: "+typeof e),e=""),{__TYPE__:a,toString:function(){return e}}}},79565:(e,t,n)=>{"use strict";function r(e){}function i(e){}function s(e){}function o(e){}n.d(t,{HF:()=>r,Ix:()=>i,Jk:()=>s,f7:()=>o})},79569:(e,t)=>{"use strict";function n(e){return Object.keys(e).map(t=>r(t,e[t]))}function r(e,t){return{key:e,value:i(t)}}function i(e){let t=typeof e;return"string"===t?{stringValue:e}:"number"===t?Number.isInteger(e)?{intValue:e}:{doubleValue:e}:"boolean"===t?{boolValue:e}:e instanceof Uint8Array?{bytesValue:e}:Array.isArray(e)?{arrayValue:{values:e.map(i)}}:"object"===t&&null!=e?{kvlistValue:{values:Object.entries(e).map(([e,t])=>r(e,t))}}:{}}
11Object.defineProperty(t,"__esModule",{value:!0}),t.toAnyValue=t.toKeyValue=t.toAttributes=t.createInstrumentationScope=t.createResource=void 0,t.createResource=function(e){return{attributes:n(e.attributes),droppedAttributesCount:0}},t.createInstrumentationScope=function(e){return{name:e.name,version:e.version}},t.toAttributes=n,t.toKeyValue=r,t.toAnyValue=i},80894:(e,t,n)=>{"use strict";n.d(t,{K:()=>d});var r=n(92550),i=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,s=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=s.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(i)throw i.error}}return o},s=function(e,t,n){if(n||2==arguments.length)for(var r,i=0,s=t.length;i<s;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},o=function(){function e(e){this._namespace=e.namespace||"DiagComponentLogger"}return e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return a("debug",this._namespace,e)},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return a("error",this._namespace,e)},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return a("info",this._namespace,e)},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return a("warn",this._namespace,e)},e.prototype.verbose=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return a("verbose",this._namespace,e)},e}();function a(e,t,n){var o=(0,r.mS)("diag");if(o)return n.unshift(t),o[e].apply(o,s([],i(n),!1))}var u=n(40907),l=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,s=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=s.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(i)throw i.error}}return o},c=function(e,t,n){if(n||2==arguments.length)for(var r,i=0,s=t.length;i<s;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},d=function(){function e(){function e(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i=(0,r.mS)("diag");if(i)return i[e].apply(i,c([],l(t),!1))}}var t=this;t.setLogger=function(e,n){if(void 0===n&&(n={logLevel:u.u.INFO}),e===t){var i,s,o,a=Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return t.error(null!=(i=a.stack)?i:a.message),!1}"number"==typeof n&&(n={logLevel:n});var l=(0,r.mS)("diag"),c=function(e,t){function n(n,r){var i=t[n];return"function"==typeof i&&e>=r?i.bind(t):function(){}}return e<u.u.NONE?e=u.u.NONE:e>u.u.ALL&&(e=u.u.ALL),t=t||{},{error:n("error",u.u.ERROR),warn:n("warn",u.u.WARN),info:n("info",u.u.INFO),debug:n("debug",u.u.DEBUG),verbose:n("verbose",u.u.VERBOSE)}}(null!=(s=n.logLevel)?s:u.u.INFO,e);if(l&&!n.suppressOverrideMessage){var d=null!=(o=Error().stack)?o:"<failed to generate stacktrace>";l.warn("Current logger will be overwritten from "+d),c.warn("Current logger will over
11write one already registered from "+d)}return(0,r.$G)("diag",c,t,!0)},t.disable=function(){(0,r.kv)("diag",t)},t.createComponentLogger=function(e){return new o(e)},t.verbose=e("verbose"),t.debug=e("debug"),t.info=e("info"),t.warn=e("warn"),t.error=e("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e}()},82826:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});let r=Object.assign({},console)},85251:(e,t,n)=>{"use strict";function r(e,t){return typeof e===t}function i(e,t){return Object.prototype.toString.call(e)===`[object ${t}]`}function s(e,t){try{return e instanceof t}catch(e){return!1}}n.d(t,{Ed:()=>r,Et:()=>u,Gv:()=>c,Im:()=>w,Kg:()=>a,Lm:()=>l,T2:()=>v,Tn:()=>d,bJ:()=>b,cy:()=>f,kZ:()=>o,pp:()=>y,sO:()=>p,wX:()=>_,xH:()=>m});let o=e=>r(e,"null"),a=e=>r(e,"string"),u=e=>r(e,"number")&&!isNaN(e)||r(e,"bigint"),l=e=>r(e,"boolean"),c=e=>!o(e)&&r(e,"object"),d=e=>r(e,"function"),f=e=>i(e,"Array"),p=e=>!c(e)&&!d(e),h="undefined"!=typeof Event,m=e=>h&&s(e,Event),g="undefined"!=typeof Error,b=e=>g&&s(e,Error),v=e=>i(e,"ErrorEvent"),y=e=>i(e,"DOMError"),_=e=>i(e,"DOMException");function w(e){return null==e||(f(e)||a(e)?0===e.length:!!c(e)&&0===Object.keys(e).length)}},85469:(e,t,n)=>{"use strict";function r(e){return Symbol.for(e)}n.d(t,{l:()=>i,n:()=>r});var i=new function e(t){var n=this;n._currentContext=t?new Map(t):new Map,n.getValue=function(e){return n._currentContext.get(e)},n.setValue=function(t,r){var i=new e(n._currentContext);return i._currentContext.set(t,r),i},n.deleteValue=function(t){var r=new e(n._currentContext);return r._currentContext.delete(t),r}}},87210:(e,t,n)=>{"use strict";n.d(t,{S:()=>i});let r="abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ0123456789";function i(e=10){return Array.from(Array(e)).map(()=>r[Math.floor(Math.random()*r.length)]).join("")}},87804:(e,t,n)=>{"use strict";var r;n.d(t,{$b:()=>r,HT:()=>s,Ic:()=>i}),function(e){e.TRACE="trace",e.DEBUG="debug",e.INFO="info",e.LOG="log",e.WARN="warn",e.ERROR="error"}(r||(r={}));let i=r.LOG,s=[r.TRACE,r.DEBUG,r.INFO,r.LOG,r.WARN,r.ERROR]},89329:(e,t,n)=>{"use strict";n.d(t,{A:()=>tu});var r,i,s={};function o(e,t){return function(){return e.apply(t,arguments)}}n.r(s),n.d(s,{hasBrowserEnv:()=>ef,hasStandardBrowserEnv:()=>eh,hasStandardBrowserWebWorkerEnv:()=>em,navigator:()=>ep,origin:()=>eg});var a=n(40459);let{toString:u}=Object.prototype,{getPrototypeOf:l}=Object,{iterator:c,toStringTag:d}=Symbol,f=(e=>t=>{let n=u.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),p=e=>(e=e.toLowerCase(),t=>f(t)===e),h=e=>t=>typeof t===e,{isArray:m}=Array,g=h("undefined");function b(e){return null!==e&&!g(e)&&null!==e.constructor&&!g(e.constructor)&&_(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}let v=p("ArrayBuffer"),y=h("string"),_=h("function"),w=h("number"),S=e=>null!==e&&"object"==typeof e,E=e=>{if("object"!==f(e))return!1;let t=l(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(d in e)&&!(c in e)},T=p("Date"),O=p("File"),A=p("Blob"),R=p("FileList"),x="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},C=void 0!==x.FormData?x.FormData:void 0,L=p("URLSearchParams"),[P,N,I,k]=["ReadableStream","Request","Response","Headers"].map(p);function j(e,t,{allOwnKeys:n=!1}={}){let r,i;if(null!=e)if("object"!=typeof e&&(e=[e]),m(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{let i;if(b(e))return;let s=n?Object.getOwnPropertyNames(e):Object.keys(e),o=s.length;for(r=0;r<o;r++)i=s[r],t.call(null,e[i],i,e)}}function D(e,t){let n;if(b(e))return null;t=t.toLowerCase();let r=Object.keys(e),i=r.length;for(;i-- >0;)if(t===(n=r[i]).toLowerCase())return n;return null}let M="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,U=e=>!g(e)&&e!==M,B=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&l(Uint8Array)),F=p("HTMLFormElement"),$=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),z=p("RegExp"),V=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),r={};j(n,(n,i)=>{let s;!1!==(s=t(n,i,e))&&(r[i]=s||n)}),Object.defineProperties(e,r)},H=p("AsyncFunction"),q=(r="function"==typeof setImmediate,i=_(M.postMessage),r?setImmediate:i?((e,t)=>
11(M.addEventListener("message",({source:n,data:r})=>{n===M&&r===e&&t.length&&t.shift()()},!1),n=>{t.push(n),M.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e)),G="undefined"!=typeof queueMicrotask?queueMicrotask.bind(M):void 0!==a&&a.nextTick||q,K={isArray:m,isArrayBuffer:v,isBuffer:b,isFormData:e=>{let t;return e&&(C&&e instanceof C||_(e.append)&&("formdata"===(t=f(e))||"object"===t&&_(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&v(e.buffer)},isString:y,isNumber:w,isBoolean:e=>!0===e||!1===e,isObject:S,isPlainObject:E,isEmptyObject:e=>{if(!S(e)||b(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:P,isRequest:N,isResponse:I,isHeaders:k,isUndefined:g,isDate:T,isFile:O,isReactNativeBlob:e=>!!(e&&void 0!==e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:A,isRegExp:z,isFunction:_,isStream:e=>S(e)&&_(e.pipe),isURLSearchParams:L,isTypedArray:B,isFileList:R,forEach:j,merge:function e(){let{caseless:t,skipUndefined:n}=U(this)&&this||{},r={},i=(i,s)=>{if("__proto__"===s||"constructor"===s||"prototype"===s)return;let o=t&&D(r,s)||s;E(r[o])&&E(i)?r[o]=e(r[o],i):E(i)?r[o]=e({},i):m(i)?r[o]=i.slice():n&&g(i)||(r[o]=i)};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&j(arguments[e],i);return r},extend:(e,t,n,{allOwnKeys:r}={})=>(j(t,(t,r)=>{n&&_(t)?Object.defineProperty(e,r,{value:o(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let i,s,o,a={};if(t=t||{},null==e)return t;do{for(s=(i=Object.getOwnPropertyNames(e)).length;s-- >0;)o=i[s],(!r||r(o,e,t))&&!a[o]&&(t[o]=e[o],a[o]=!0);e=!1!==n&&l(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:f,kindOfTest:p,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;let r=e.indexOf(t,n);return -1!==r&&r===n},toArray:e=>{if(!e)return null;if(m(e))return e;let t=e.length;if(!w(t))return null;let n=Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{let n,r=(e&&e[c]).call(e);for(;(n=r.next())&&!n.done;){let r=n.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let n,r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:F,hasOwnProperty:$,hasOwnProp:$,reduceDescriptors:V,freezeMethods:e=>{V(e,(t,n)=>{if(_(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;if(_(e[n])){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},toObjectSet:(e,t)=>{let n={};return(m(e)?e:String(e).split(t)).forEach(e=>{n[e]=!0}),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e*=1)?e:t,findKey:D,global:M,isContextDefined:U,isSpecCompliantForm:function(e){return!!(e&&_(e.append)&&"FormData"===e[d]&&e[c])},toJSONObject:e=>{let t=Array(10),n=(e,r)=>
11{if(S(e)){if(t.indexOf(e)>=0)return;if(b(e))return e;if(!("toJSON"in e)){t[r]=e;let i=m(e)?[]:{};return j(e,(e,t)=>{let s=n(e,r+1);g(s)||(i[t]=s)}),t[r]=void 0,i}}return e};return n(e,0)},isAsyncFn:H,isThenable:e=>e&&(S(e)||_(e))&&_(e.then)&&_(e.catch),setImmediate:q,asap:G,isIterable:e=>null!=e&&_(e[c])};class W extends Error{static from(e,t,n,r,i,s){let o=new W(e.message,t||e.code,n,r,i);return o.cause=e,o.name=e.name,null!=e.status&&null==o.status&&(o.status=e.status),s&&Object.assign(o,s),o}constructor(e,t,n,r,i){super(e),Object.defineProperty(this,"message",{value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:K.toJSONObject(this.config),code:this.code,status:this.status}}}W.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",W.ERR_BAD_OPTION="ERR_BAD_OPTION",W.ECONNABORTED="ECONNABORTED",W.ETIMEDOUT="ETIMEDOUT",W.ERR_NETWORK="ERR_NETWORK",W.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",W.ERR_DEPRECATED="ERR_DEPRECATED",W.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",W.ERR_BAD_REQUEST="ERR_BAD_REQUEST",W.ERR_CANCELED="ERR_CANCELED",W.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",W.ERR_INVALID_URL="ERR_INVALID_URL";let J=W;var X=n(50887).hp;function Q(e){return K.isPlainObject(e)||K.isArray(e)}function Z(e){return K.endsWith(e,"[]")?e.slice(0,-2):e}function Y(e,t,n){return e?e.concat(t).map(function(e,t){return e=Z(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}let ee=K.toFlatObject(K,{},null,function(e){return/^is[A-Z]/.test(e)}),et=function(e,t,n){if(!K.isObject(e))throw TypeError("target must be an object");t=t||new FormData;let r=(n=K.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!K.isUndefined(t[e])})).metaTokens,i=n.visitor||l,s=n.dots,o=n.indexes,a=(n.Blob||"undefined"!=typeof Blob&&Blob)&&K.isSpecCompliantForm(t);if(!K.isFunction(i))throw TypeError("visitor must be a function");function u(e){if(null===e)return"";if(K.isDate(e))return e.toISOString();if(K.isBoolean(e))return e.toString();if(!a&&K.isBlob(e))throw new J("Blob is not supported. Use a Buffer instead.");return K.isArrayBuffer(e)||K.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):X.from(e):e}function l(e,n,i){let a=e;if(K.isReactNative(t)&&K.isReactNativeBlob(e))return t.append(Y(i,n,s),u(e)),!1;if(e&&!i&&"object"==typeof e)if(K.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else{var l;if(K.isArray(e)&&(l=e,K.isArray(l)&&!l.some(Q))||(K.isFileList(e)||K.endsWith(n,"[]"))&&(a=K.toArray(e)))return n=Z(n),a.forEach(function(e,r){K.isUndefined(e)||null===e||t.append(!0===o?Y([n],r,s):null===o?n:n+"[]",u(e))}),!1}return!!Q(e)||(t.append(Y(i,n,s),u(e)),!1)}let c=[],d=Object.assign(ee,{defaultVisitor:l,convertValue:u,isVisitable:Q});if(!K.isObject(e))throw TypeError("data must be an object");return!function e(n,r){if(!K.isUndefined(n)){if(-1!==c.indexOf(n))throw Error("Circular reference detected in "+r.join("."));c.push(n),K.forEach(n,function(n,s){!0===(!(K.isUndefined(n)||null===n)&&i.call(t,n,K.isString(s)?s.trim():s,r,d))&&e(n,r?r.concat(s):[s])}),c.pop()}}(e),t};function en(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function er(e,t){this._pairs=[],e&&et(e,this,t)}let ei=er.prototype;function es(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function eo(e,t,n){let r;if(!t)return e;let i=n&&n.encode||es,s=K.isFunction(n)?{serialize:n}:n,o=s&&s.serialize;if(r=o?o(t,s):K.isURLSearchParams(t)?t.toString():new er(t,s).toString(i)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e}ei.append=function(e,t){this._pairs.push([e,t])},ei.toString=function(e){let t=e?function(t){return e.call(this,t,en)}:en;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};class ea{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}
11forEach(e){K.forEach(this.handlers,function(t){null!==t&&e(t)})}}let eu={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},el="undefined"!=typeof URLSearchParams?URLSearchParams:er,ec="undefined"!=typeof FormData?FormData:null,ed="undefined"!=typeof Blob?Blob:null,ef="undefined"!=typeof window&&"undefined"!=typeof document,ep="object"==typeof navigator&&navigator||void 0,eh=ef&&(!ep||0>["ReactNative","NativeScript","NS"].indexOf(ep.product)),em="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,eg=ef&&window.location.href||"http://localhost",eb={...s,isBrowser:!0,classes:{URLSearchParams:el,FormData:ec,Blob:ed},protocols:["http","https","file","blob","url","data"]},ev=function(e){if(K.isFormData(e)&&K.isFunction(e.entries)){let t={};return K.forEachEntry(e,(e,n)=>{!function e(t,n,r,i){let s=t[i++];if("__proto__"===s)return!0;let o=Number.isFinite(+s),a=i>=t.length;return(s=!s&&K.isArray(r)?r.length:s,a)?K.hasOwnProp(r,s)?r[s]=[r[s],n]:r[s]=n:(r[s]&&K.isObject(r[s])||(r[s]=[]),e(t,n,r[s],i)&&K.isArray(r[s])&&(r[s]=function(e){let t,n,r={},i=Object.keys(e),s=i.length;for(t=0;t<s;t++)r[n=i[t]]=e[n];return r}(r[s]))),!o}(K.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0]),n,t,0)}),t}return null},ey={transitional:eu,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){let n,r=t.getContentType()||"",i=r.indexOf("application/json")>-1,s=K.isObject(e);if(s&&K.isHTMLForm(e)&&(e=new FormData(e)),K.isFormData(e))return i?JSON.stringify(ev(e)):e;if(K.isArrayBuffer(e)||K.isBuffer(e)||K.isStream(e)||K.isFile(e)||K.isBlob(e)||K.isReadableStream(e))return e;if(K.isArrayBufferView(e))return e.buffer;if(K.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1){var o,a;return(o=e,a=this.formSerializer,et(o,new eb.classes.URLSearchParams,{visitor:function(e,t,n,r){return eb.isNode&&K.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...a})).toString()}if((n=K.isFileList(e))||r.indexOf("multipart/form-data")>-1){let t=this.env&&this.env.FormData;return et(n?{"files[]":e}:e,t&&new t,this.formSerializer)}}if(s||i){t.setContentType("application/json",!1);var u=e;if(K.isString(u))try{return(0,JSON.parse)(u),K.trim(u)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(u)}return e}],transformResponse:[function(e){let t=this.transitional||ey.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(K.isResponse(e)||K.isReadableStream(e))return e;if(e&&K.isString(e)&&(n&&!this.responseType||r)){let n=t&&t.silentJSONParsing;try{return JSON.parse(e,this.parseReviver)}catch(e){if(!n&&r){if("SyntaxError"===e.name)throw J.from(e,J.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:eb.classes.FormData,Blob:eb.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};K.forEach(["delete","get","head","post","put","patch"],e=>{ey.headers[e]={}});let e_=K.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ew=e=>{let t,n,r,i={};return e&&e.split("\n").forEach(function(e){r=e.indexOf(":"),t=e.substring(0,r).trim().toLowerCase(),n=e.substring(r+1).trim(),!t||i[t]&&e_[t]||("set-cookie"===t?i[t]?i[t].push(n):i[t]=[n]:i[t]=i[t]?i[t]+", "+n:n)}),i},eS=Symbol("internals");function eE(e){return e&&String(e).trim().toLowerCase()}function eT(e){return!1===e||null==e?e:K.isArray(e)?e.map(eT):String(e)}let eO=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function eA(e,t,n,r,i){if(K.isFunction(r))return r.call(this,t,n);if(i&&(t=n),K.isString(t)){if(K.isString(r))return -1!==t.indexOf(r);if(K.isRegExp(r))return r.test(t)}}class eR{constructor(e){e&&this.set(e)}set(e,t,n){let r=this;function i(e,t,n){let i=eE(t);if(!i)throw Error("header name must be a non-empty string");let s=K.findKey(r,i);s&&void 0!==r[s]&&!0!==n&&(void 0!==n||!1===r[s])||(r[s||t]=eT(e))}let s=(e,t)=>K.forEach(e,(e,n)=>i(e,n,t));if(K.isPlainObject(e)||e instanceof this.constructor)s(e,t);else if(K.isString(e)&&(e=e.trim())&&!eO(e))s(ew(e),t);else if(K.isObject(e)&&K.isIterable(e)){let n={},r,i;for(let t of e){if(!K.isArray(t))throw TypeError("Object iterator must return a key-value pair");n[i=t[0]]=(r=n[i])?K.isArray(r)?[...r,t[1]]:[r,t[1]]:t[1]}s(n,t)}else null!=e&&i(t,e,n);return this}get(e,t){if(e=eE(e)){let n=K.findKey(this,e);if(n){let e=this[n];if(!t)return e;if(!0===t){let t,n=Object.create(null),r=/([^\s,;
11=]+)\s*(?:=\s*([^,;]+))?/g;for(;t=r.exec(e);)n[t[1]]=t[2];return n}if(K.isFunction(t))return t.call(this,e,n);if(K.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=eE(e)){let n=K.findKey(this,e);return!!(n&&void 0!==this[n]&&(!t||eA(this,this[n],n,t)))}return!1}delete(e,t){let n=this,r=!1;function i(e){if(e=eE(e)){let i=K.findKey(n,e);i&&(!t||eA(n,n[i],i,t))&&(delete n[i],r=!0)}}return K.isArray(e)?e.forEach(i):i(e),r}clear(e){let t=Object.keys(this),n=t.length,r=!1;for(;n--;){let i=t[n];(!e||eA(this,this[i],i,e,!0))&&(delete this[i],r=!0)}return r}normalize(e){let t=this,n={};return K.forEach(this,(r,i)=>{let s=K.findKey(n,i);if(s){t[s]=eT(r),delete t[i];return}let o=e?i.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n):String(i).trim();o!==i&&delete t[i],t[o]=eT(r),n[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return K.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&K.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){let t=(this[eS]=this[eS]={accessors:{}}).accessors,n=this.prototype;function r(e){let r=eE(e);if(!t[r]){let i=K.toCamelCase(" "+e);["get","set","has"].forEach(t=>{Object.defineProperty(n,t+i,{value:function(n,r,i){return this[t].call(this,e,n,r,i)},configurable:!0})}),t[r]=!0}}return K.isArray(e)?e.forEach(r):r(e),this}}function ex(e,t){let n=this||ey,r=t||n,i=eR.from(r.headers),s=r.data;return K.forEach(e,function(e){s=e.call(n,s,i.normalize(),t?t.status:void 0)}),i.normalize(),s}function eC(e){return!!(e&&e.__CANCEL__)}eR.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),K.reduceDescriptors(eR.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),K.freezeMethods(eR);class eL extends J{constructor(e,t,n){super(null==e?"canceled":e,J.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}}function eP(e,t,n){let r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new J("Request failed with status code "+n.status,[J.ERR_BAD_REQUEST,J.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}let eN=function(e,t){let n,r=Array(e=e||10),i=Array(e),s=0,o=0;return t=void 0!==t?t:1e3,function(a){let u=Date.now(),l=i[o];n||(n=u),r[s]=a,i[s]=u;let c=o,d=0;for(;c!==s;)d+=r[c++],c%=e;if((s=(s+1)%e)===o&&(o=(o+1)%e),u-n<t)return;let f=l&&u-l;return f?Math.round(1e3*d/f):void 0}},eI=function(e,t){let n,r,i=0,s=1e3/t,o=(t,s=Date.now())=>{i=s,n=null,r&&(clearTimeout(r),r=null),e(...t)};return[(...e)=>{let t=Date.now(),a=t-i;a>=s?o(e,t):(n=e,r||(r=setTimeout(()=>{r=null,o(n)},s-a)))},()=>n&&o(n)]},ek=(e,t,n=3)=>{let r=0,i=eN(50,250);return eI(n=>{let s=n.loaded,o=n.lengthComputable?n.total:void 0,a=s-r,u=i(a);r=s,e({loaded:s,total:o,progress:o?s/o:void 0,bytes:a,rate:u||void 0,estimated:u&&o&&s<=o?(o-s)/u:void 0,event:n,lengthComputable:null!=o,[t?"download":"upload"]:!0})},n)},ej=(e,t)=>{let n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},eD=e=>(...t)=>K.asap(()=>e(...t)),eM=eb.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,eb.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(eb.origin),eb.navigator&&/(msie|trident)/i.test(eb.navigator.userAgent)):()=>!0,eU=eb.hasStandardBrowserEnv?{write(e,t,n,r,i,s,o){if("undefined"==typeof document)return;let a=[`${e}=${encodeURIComponent(t)}`];K.isNumber(n)&&a.push(`expires=${new Date(n).toUTCString()}`),K.isString(r)&&a.push(`path=${r}`),K.isString(i)&&a.push(`domain=${i}`),!0===s&&a.push("secure"),K.isString(o)&&a.push(`SameSite=${o}`),document.cookie=a.join("; ")},read(e){if("undefined"==typeof document)return null;let t=document.cookie.match(RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function eB(e,t,n){let r=!("string"==typeof t&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t));return e&&(r||!1==n)?t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e:t}let eF=e=>e instanceof eR?{...e}:e;function e$(e,t){t=t||{};let n={};function r(e,t,n,r){return K.isPlainObject(e)&&K.isPlainObject(t)?K.merge.call({caseless:r},e,t):K.isPlainObject(t)?K.merge({},t):K.isArray(t)?t.slice():t}function i(e,t,n,i){return K.isUndefined(t)?K.isUndefined(e)?void 0:r(void 0,e,n,i):r(e,t,n,i)}function s(e,t){if(!K.isUndefined(t))return r(void 0,t)}function o(e,t){return K.isUndefined(t)?K.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function a(n,i,s){return s in t?r(n,i):s in e?r(void 0,n):void 0}let u={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBo
11dyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(e,t,n)=>i(eF(e),eF(t),n,!0)};return K.forEach(Object.keys({...e,...t}),function(r){if("__proto__"===r||"constructor"===r||"prototype"===r)return;let s=K.hasOwnProp(u,r)?u[r]:i,o=s(e[r],t[r],r);K.isUndefined(o)&&s!==a||(n[r]=o)}),n}let ez=e=>{let t=e$({},e),{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:s,headers:o,auth:a}=t;if(t.headers=o=eR.from(o),t.url=eo(eB(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&o.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),K.isFormData(n)){if(eb.hasStandardBrowserEnv||eb.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(K.isFunction(n.getHeaders)){let e=n.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,n])=>{t.includes(e.toLowerCase())&&o.set(e,n)})}}if(eb.hasStandardBrowserEnv&&(r&&K.isFunction(r)&&(r=r(t)),r||!1!==r&&eM(t.url))){let e=i&&s&&eU.read(s);e&&o.set(i,e)}return t},eV="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){let r,i,s,o,a,u=ez(e),l=u.data,c=eR.from(u.headers).normalize(),{responseType:d,onUploadProgress:f,onDownloadProgress:p}=u;function h(){o&&o(),a&&a(),u.cancelToken&&u.cancelToken.unsubscribe(r),u.signal&&u.signal.removeEventListener("abort",r)}let m=new XMLHttpRequest;function g(){if(!m)return;let r=eR.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());eP(function(e){t(e),h()},function(e){n(e),h()},{data:d&&"text"!==d&&"json"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(u.method.toUpperCase(),u.url,!0),m.timeout=u.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(n(new J("Request aborted",J.ECONNABORTED,e,m)),m=null)},m.onerror=function(t){let r=new J(t&&t.message?t.message:"Network Error",J.ERR_NETWORK,e,m);r.event=t||null,n(r),m=null},m.ontimeout=function(){let t=u.timeout?"timeout of "+u.timeout+"ms exceeded":"timeout exceeded",r=u.transitional||eu;u.timeoutErrorMessage&&(t=u.timeoutErrorMessage),n(new J(t,r.clarifyTimeoutError?J.ETIMEDOUT:J.ECONNABORTED,e,m)),m=null},void 0===l&&c.setContentType(null),"setRequestHeader"in m&&K.forEach(c.toJSON(),function(e,t){m.setRequestHeader(t,e)}),K.isUndefined(u.withCredentials)||(m.withCredentials=!!u.withCredentials),d&&"json"!==d&&(m.responseType=u.responseType),p&&([s,a]=ek(p,!0),m.addEventListener("progress",s)),f&&m.upload&&([i,o]=ek(f),m.upload.addEventListener("progress",i),m.upload.addEventListener("loadend",o)),(u.cancelToken||u.signal)&&(r=t=>{m&&(n(!t||t.type?new eL(null,e,m):t),m.abort(),m=null)},u.cancelToken&&u.cancelToken.subscribe(r),u.signal&&(u.signal.aborted?r():u.signal.addEventListener("abort",r)));let b=function(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(u.url);if(b&&-1===eb.protocols.indexOf(b))return void n(new J("Unsupported protocol "+b+":",J.ERR_BAD_REQUEST,e));m.send(l||null)})},eH=(e,t)=>{let{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController,i=function(e){if(!n){n=!0,o();let t=e instanceof Error?e:this.reason;r.abort(t instanceof J?t:new eL(t instanceof Error?t.message:t))}},s=t&&setTimeout(()=>{s=null,i(new J(`timeout of ${t}ms exceeded`,J.ETIMEDOUT))},t),o=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)}),e=null)};e.forEach(e=>e.addEventListener("abort",i));let{signal:a}=r;return a.unsubscribe=()=>K.asap(o),a}},eq=function*(e,t){let n,r=e.byteLength;if(!t||r<t)return void(yield e);let i=0;for(;i<r;)n=i+t,yield e.slice(i,n),i=n},eG=async function*(e,t){for await(let n of eK(e))yield*eq(n,t)},eK=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);let t=e.getReader();try{for(;;){let{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},eW=(e,t,n,r)=>{let i,s=eG(e,t),o=0,a=e=>{!i&&(i=!0,r&&r(e))};return new ReadableStream({async pull(e){try{let{done:t,value:r}=await s.next();if(t){a(),e.close();return}let i=r.byteLength;if(n){let e=o+=i;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw a(e),e}},cancel:e=>(a(e),s.return())},{highWaterMark:2})},{isFunction:eJ}=K,eX=(({Request:e,Response:t})=>({Request:e,Response:t}))(K.global),{ReadableStream:eQ,TextEncoder:eZ}=K.global,eY=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},e0=e=>{let t,{fetch:n,Request:r,Response:i}=e=K.merge.call({skipUndefined:!0},eX,e),s=n?eJ(n):"function"==typeof fetch,o=eJ(r),a=eJ(i);if(!s)return!1;let u=s&&eJ(eQ),l=s&&("function"==typeof eZ?(t=new eZ,e=>t.encode(e)):async e=>new Uint8Array(await new r(e).arrayBuffer())),c=o&&u&&eY(()=>{let e=!1,t=new r(eb.origin,{body:new eQ,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),d=a&&u&&eY(()=>
11K.isReadableStream(new i("").body)),f={stream:d&&(e=>e.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{f[e]||(f[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new J(`Response type '${e}' is not supported`,J.ERR_NOT_SUPPORT,n)})});let p=async e=>{if(null==e)return 0;if(K.isBlob(e))return e.size;if(K.isSpecCompliantForm(e)){let t=new r(eb.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return K.isArrayBufferView(e)||K.isArrayBuffer(e)?e.byteLength:(K.isURLSearchParams(e)&&(e+=""),K.isString(e))?(await l(e)).byteLength:void 0},h=async(e,t)=>{let n=K.toFiniteNumber(e.getContentLength());return null==n?p(t):n};return async e=>{let t,{url:s,method:a,data:u,signal:l,cancelToken:p,timeout:m,onDownloadProgress:g,onUploadProgress:b,responseType:v,headers:y,withCredentials:_="same-origin",fetchOptions:w}=ez(e),S=n||fetch;v=v?(v+"").toLowerCase():"text";let E=eH([l,p&&p.toAbortSignal()],m),T=null,O=E&&E.unsubscribe&&(()=>{E.unsubscribe()});try{if(b&&c&&"get"!==a&&"head"!==a&&0!==(t=await h(y,u))){let e,n=new r(s,{method:"POST",body:u,duplex:"half"});if(K.isFormData(u)&&(e=n.headers.get("content-type"))&&y.setContentType(e),n.body){let[e,r]=ej(t,ek(eD(b)));u=eW(n.body,65536,e,r)}}K.isString(_)||(_=_?"include":"omit");let n=o&&"credentials"in r.prototype,l={...w,signal:E,method:a.toUpperCase(),headers:y.normalize().toJSON(),body:u,duplex:"half",credentials:n?_:void 0};T=o&&new r(s,l);let p=await (o?S(T,w):S(s,l)),m=d&&("stream"===v||"response"===v);if(d&&(g||m&&O)){let e={};["status","statusText","headers"].forEach(t=>{e[t]=p[t]});let t=K.toFiniteNumber(p.headers.get("content-length")),[n,r]=g&&ej(t,ek(eD(g),!0))||[];p=new i(eW(p.body,65536,n,()=>{r&&r(),O&&O()}),e)}v=v||"text";let A=await f[K.findKey(f,v)||"text"](p,e);return!m&&O&&O(),await new Promise((t,n)=>{eP(t,n,{data:A,headers:eR.from(p.headers),status:p.status,statusText:p.statusText,config:e,request:T})})}catch(t){if(O&&O(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new J("Network Error",J.ERR_NETWORK,e,T,t&&t.response),{cause:t.cause||t});throw J.from(t,t&&t.code,e,T,t&&t.response)}}},e1=new Map,e2=e=>{let t=e&&e.env||{},{fetch:n,Request:r,Response:i}=t,s=[r,i,n],o=s.length,a,u,l=e1;for(;o--;)a=s[o],void 0===(u=l.get(a))&&l.set(a,u=o?new Map:e0(t)),l=u;return u};e2();let e5={http:null,xhr:eV,fetch:{get:e2}};K.forEach(e5,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});let e4=e=>`- ${e}`,e6=e=>K.isFunction(e)||null===e||!1===e,e3={getAdapter:function(e,t){let n,r,{length:i}=e=K.isArray(e)?e:[e],s={};for(let o=0;o<i;o++){let i;if(r=n=e[o],!e6(n)&&void 0===(r=e5[(i=String(n)).toLowerCase()]))throw new J(`Unknown adapter '${i}'`);if(r&&(K.isFunction(r)||(r=r.get(t))))break;s[i||"#"+o]=r}if(!r){let e=Object.entries(s).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new J("There is no suitable adapter to dispatch the request "+(i?e.length>1?"since :\n"+e.map(e4).join("\n"):" "+e4(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r}};function e8(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new eL(null,e)}function e9(e){return e8(e),e.headers=eR.from(e.headers),e.data=ex.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),e3.getAdapter(e.adapter||ey.adapter,e)(e).then(function(t){return e8(e),t.data=ex.call(e,e.transformResponse,t),t.headers=eR.from(t.headers),t},function(t){return!eC(t)&&(e8(e),t&&t.response&&(t.response.data=ex.call(e,e.transformResponse,t.response),t.response.headers=eR.from(t.response.headers))),Promise.reject(t)})}let e7="1.13.6",te={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{te[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});let tt={};te.transitional=function(e,t,n){function r(e,t){return"[Axios v"+e7+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,i,s)=>{if(!1===e)throw new J(r(i," has been removed"+(t?" in "+t:"")),J.ERR_DEPRECATED);return t&&!tt[i]&&(tt[i]=!0,console.warn(r(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,s)}},te.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}
11`),!0)};let tn={assertOptions:function(e,t,n){if("object"!=typeof e)throw new J("options must be an object",J.ERR_BAD_OPTION_VALUE);let r=Object.keys(e),i=r.length;for(;i-- >0;){let s=r[i],o=t[s];if(o){let t=e[s],n=void 0===t||o(t,s,e);if(!0!==n)throw new J("option "+s+" must be "+n,J.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new J("Unknown option "+s,J.ERR_BAD_OPTION)}},validators:te},tr=tn.validators;class ti{constructor(e){this.defaults=e||{},this.interceptors={request:new ea,response:new ea}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){let n,r;"string"==typeof e?(t=t||{}).url=e:t=e||{};let{transitional:i,paramsSerializer:s,headers:o}=t=e$(this.defaults,t);void 0!==i&&tn.assertOptions(i,{silentJSONParsing:tr.transitional(tr.boolean),forcedJSONParsing:tr.transitional(tr.boolean),clarifyTimeoutError:tr.transitional(tr.boolean),legacyInterceptorReqResOrdering:tr.transitional(tr.boolean)},!1),null!=s&&(K.isFunction(s)?t.paramsSerializer={serialize:s}:tn.assertOptions(s,{encode:tr.function,serialize:tr.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),tn.assertOptions(t,{baseUrl:tr.spelling("baseURL"),withXsrfToken:tr.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=o&&K.merge(o.common,o[t.method]);o&&K.forEach(["delete","get","head","post","put","patch","common"],e=>{delete o[e]}),t.headers=eR.concat(a,o);let u=[],l=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;l=l&&e.synchronous;let n=t.transitional||eu;n&&n.legacyInterceptorReqResOrdering?u.unshift(e.fulfilled,e.rejected):u.push(e.fulfilled,e.rejected)});let c=[];this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let d=0;if(!l){let e=[e9.bind(this),void 0];for(e.unshift(...u),e.push(...c),r=e.length,n=Promise.resolve(t);d<r;)n=n.then(e[d++],e[d++]);return n}r=u.length;let f=t;for(;d<r;){let e=u[d++],t=u[d++];try{f=e(f)}catch(e){t.call(this,e);break}}try{n=e9.call(this,f)}catch(e){return Promise.reject(e)}for(d=0,r=c.length;d<r;)n=n.then(c[d++],c[d++]);return n}getUri(e){return eo(eB((e=e$(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}K.forEach(["delete","get","head","options"],function(e){ti.prototype[e]=function(t,n){return this.request(e$(n||{},{method:e,url:t,data:(n||{}).data}))}}),K.forEach(["post","put","patch"],function(e){function t(t){return function(n,r,i){return this.request(e$(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}ti.prototype[e]=t(),ti.prototype[e+"Form"]=t(!0)});class ts{constructor(e){let t;if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});let n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t,r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,i){n.reason||(n.reason=new eL(e,r,i),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason)return void e(this.reason);this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new ts(function(t){e=t}),cancel:e}}}let to={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,Re
11setContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(to).forEach(([e,t])=>{to[t]=e});let ta=function e(t){let n=new ti(t),r=o(ti.prototype.request,n);return K.extend(r,ti.prototype,n,{allOwnKeys:!0}),K.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(e$(t,n))},r}(ey);ta.Axios=ti,ta.CanceledError=eL,ta.CancelToken=ts,ta.isCancel=eC,ta.VERSION=e7,ta.toFormData=et,ta.AxiosError=J,ta.Cancel=ta.CanceledError,ta.all=function(e){return Promise.all(e)},ta.spread=function(e){return function(t){return e.apply(null,t)}},ta.isAxiosError=function(e){return K.isObject(e)&&!0===e.isAxiosError},ta.mergeConfig=e$,ta.AxiosHeaders=eR,ta.formToJSON=e=>ev(K.isHTMLForm(e)?new FormData(e):e),ta.getAdapter=e3.getAdapter,ta.HttpStatusCode=to,ta.default=ta;let tu=ta},90616:(e,t,n)=>{"use strict";n.d(t,{$:()=>b});var r=n(92550),i=function(){function e(){}return e.prototype.inject=function(e,t){},e.prototype.extract=function(e,t){return e},e.prototype.fields=function(){return[]},e}(),s={get:function(e,t){if(null!=e)return e[t]},keys:function(e){return null==e?[]:Object.keys(e)}},o={set:function(e,t,n){null!=e&&(e[t]=n)}},a=n(16799),u=(0,n(85469).n)("OpenTelemetry Baggage Key");function l(e){return e.getValue(u)||void 0}function c(){return l(a._.getInstance().active())}function d(e,t){return e.setValue(u,t)}function f(e){return e.deleteValue(u)}var p=n(79148),h=n(80894),m="propagation",g=new i,b=(function(){function e(){this.createBaggage=p.L,this.getBaggage=l,this.getActiveBaggage=c,this.setBaggage=d,this.deleteBaggage=f}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalPropagator=function(e){return(0,r.$G)(m,e,h.K.instance())},e.prototype.inject=function(e,t,n){return void 0===n&&(n=o),this._getGlobalPropagator().inject(e,t,n)},e.prototype.extract=function(e,t,n){return void 0===n&&(n=s),this._getGlobalPropagator().extract(e,t,n)},e.prototype.fields=function(){return this._getGlobalPropagator().fields()},e.prototype.disable=function(){(0,r.kv)(m,h.K.instance())},e.prototype._getGlobalPropagator=function(){return(0,r.mS)(m)||g},e})().getInstance()},91728:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sendGTMEvent=void 0,t.GoogleTagManager=function(e){let{gtmId:t,gtmScriptUrl:n="https://www.googletagmanager.com/gtm.js",dataLayerName:a="dataLayer",auth:u,preview:l,dataLayer:c,nonce:d}=e;o=a;let f="dataLayer"!==a?"&l=".concat(a):"";return(0,i.useEffect)(()=>{performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-gtm"}})},[]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s.default,{id:"_next-gtm-init",dangerouslySetInnerHTML:{__html:"\n (function(w,l){\n w[l]=w[l]||[];\n w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});\n ".concat(c?"w[l].push(".concat(JSON.stringify(c),")"):"","\n })(window,'").concat(a,"');")},nonce:d}),(0,r.jsx)(s.default,{id:"_next-gtm","data-ntpc":"GTM",src:"".concat(n,"?id=").concat(t).concat(f).concat(u?">m_auth=".concat(u):"").concat(l?">m_preview=".concat(l,">m_cookies_win=x"):""),nonce:d})]})};
11let r=n(54568),i=n(7620),s=function(e){return e&&e.__esModule?e:{default:e}}(n(8139)),o="dataLayer";t.sendGTMEvent=(e,t)=>{let n=t||o;window[n]=window[n]||[],window[n].push(e)}},92550:(e,t,n)=>{"use strict";n.d(t,{mS:()=>l,$G:()=>u,kv:()=>c});var r="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof n.g?n.g:{},i="1.9.0",s=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/,o=function(e){var t=new Set([e]),n=new Set,r=e.match(s);if(!r)return function(){return!1};var i={major:+r[1],minor:+r[2],patch:+r[3],prerelease:r[4]};if(null!=i.prerelease)return function(t){return t===e};function o(e){return n.add(e),!1}return function(e){if(t.has(e))return!0;if(n.has(e))return!1;var r=e.match(s);if(!r)return o(e);var a={major:+r[1],minor:+r[2],patch:+r[3],prerelease:r[4]};if(null!=a.prerelease||i.major!==a.major)return o(e);if(0===i.major)return i.minor===a.minor&&i.patch<=a.patch?(t.add(e),!0):o(e);return i.minor<=a.minor?(t.add(e),!0):o(e)}}(i),a=Symbol.for("opentelemetry.js.api."+i.split(".")[0]);function u(e,t,n,s){void 0===s&&(s=!1);var o,u=r[a]=null!=(o=r[a])?o:{version:i};if(!s&&u[e]){var l=Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return n.error(l.stack||l.message),!1}if(u.version!==i){var l=Error("@opentelemetry/api: Registration of version v"+u.version+" for "+e+" does not match previously registered API v"+i);return n.error(l.stack||l.message),!1}return u[e]=t,n.debug("@opentelemetry/api: Registered a global for "+e+" v"+i+"."),!0}function l(e){var t,n,i=null==(t=r[a])?void 0:t.version;if(i&&o(i))return null==(n=r[a])?void 0:n[e]}function c(e,t){t.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+i+".");var n=r[a];n&&delete n[e]}},94727:(e,t,n)=>{"use strict";n.d(t,{IP:()=>l,YA:()=>u,hX:()=>a});var r=n(5202),i=n(72762),s=/^([0-9a-f]{32})$/i,o=/^[0-9a-f]{16}$/i;function a(e){return s.test(e)&&e!==r.RH}function u(e){var t;return a(e.traceId)&&(t=e.spanId,o.test(t)&&t!==r.w9)}function l(e){return new i.d(e)}},97051:(e,t,n)=>{"use strict";n.d(t,{b:()=>function e(t,n){if(t===n)return!0;if((0,r.Ed)(t,"number")&&isNaN(t))return(0,r.Ed)(n,"number")&&isNaN(n);let i=(0,r.cy)(t),s=(0,r.cy)(n);if(i!==s)return!1;if(i&&s){let r=t.length;if(r!==n.length)return!1;for(let i=r;0!=i--;)if(!e(t[i],n[i]))return!1;return!0}let o=(0,r.Gv)(t),a=(0,r.Gv)(n);if(o!==a)return!1;if(t&&n&&o&&a){let r=Object.keys(t),i=Object.keys(n);if(r.length!==i.length)return!1;for(let e of r)if(!i.includes(e))return!1;for(let i of r)if(!e(t[i],n[i]))return!1;return!0}return!1}});var r=n(85251)},99858:(e,t,n)=>{"use strict";let r;n.d(t,{w:()=>t7});var i=n(71298),s=n(26015),o=n(62525),a=n(42215),u=n(87210),l=n(52821),c=n(6027),d=n(2632),f=n(42645),p=n(12463),h=n(45908);let m="fetch";var g=n(34181),b=n(61040);let v="com.grafana.faro.lastNavigationId",y="resource";var _=n(85251);let w=/^00-[a-f0-9]{32}-[a-f0-9]{16}-[0-9]{1,2}$/;function S(e=[]){for(let t of e)if("traceparent"===t.name){if(!w.test(t.description))continue;let[,e,n]=t.description.split("-");if(null!=e&&null!=n)return{traceId:e,spanId:n};break}}function E(e){let t,{connectEnd:n,connectStart:r,decodedBodySize:i,domainLookupEnd:s,domainLookupStart:o,duration:a,encodedBodySize:u,fetchStart:l,initiatorType:c,name:d,nextHopProtocol:f,redirectEnd:p,redirectStart:h,renderBlockingStatus:m,requestStart:g,responseEnd:b,responseStart:v,responseStatus:y,secureConnectionStart:_,transferSize:w,workerStart:S}=e;return{name:d,duration:T(a),tcpHandshakeTime:T(n-r),dnsLookupTime:T(s-o),tlsNegotiationTime:T(n-_),responseStatus:T(y),redirectTime:T(p-h),requestTime:T(v-g),responseTime:T(b-v),fetchTime:T(b-l),serviceWorkerTime:T(l-S),decodedBodySize:T(i),encodedBodySize:T(u),cacheHitStatus:(t="fullLoad",0===w?i>0&&(t="cache"):null!=y?304===y&&(t="conditionalFetch"):u>0&&w<u&&(t="conditionalFetch"),t),renderBlockingStatus:T(m),protocol:f,initiatorType:c,visibilityState:document.visibilityState,ttfb:T(v-g),transferSize:T(w)}}function T(e){return null==e?g.y:"number"==typeof e?Math.round(e>0?e:0).toString():e.toString()}let O={initiatorType:["xmlhttprequest","fetch"]},A=new d.c;class R extends i.i{constructor(){super(...arguments),this.name="@grafana/faro-web-sdk:instrumentation-performance",this.version=s.x}initialize(){if(!("PerformanceObserver"in window))return void this.logDebug("performance observer not supported. Disable performance instrumentation.");var e=()=>{var e,t,n,r;return e=this,t=void 0,n=void 0,r=function*(){let e=this.api.pushEvent,{faroNavigationId:t}=yield function(e){let t,n=new Promise(e=>{t=e});return new PerformanceObserver(n=>{var r;let[i]=n.getEntries();if(null==i||(0,h.Ki)(i.name))return;let s=i.toJSON(),o=S(null==s?void 0:s.serverTiming),a=null!=(r=(0,b.Gq)(v,b.Uy.session))?r:g.y,l=Object.assign(Object.assign({},function(e){var t;let{activationStart:n,domComplete:r,domContentLoadedEventEnd:i,domContentLoadedEventStart:s,domInteractive:o,fetchStart:a,loadEventEnd:u,loadEventStart:l,responseStart:c,type:d}=e,f=(null==(t=performance.timing)?void 0:t.domLoading)!=null?performance.timing.domLoading-performance.timeOrigin:null;return Object.assign(Object.assign({},E(e)),{pageLoadTime:T(r-a),documentParsingTime:T(f?o-f:null),domProcessingTime:T(r-o),domContentLoadHandlerTime:T(i-s),onLoadTime:T(u-l),ttfb:T(Math.max(c-(null!=n?n:0),0)),type:d})}(s)),{faroNavigationId:(0,u.S)(),faroPreviousNavigationId:a});(0,b.SO)(v,l.faroNavigationId,b.Uy.session),e("faro.performance.navigation",l,void 0,{spanContext:o,timestampOverwriteMs:performance.timeOrigin+s.startTime}),t(l)}).observe({type:"navigation",buffered:!0}),n}(e);null!=t&&function(e,t,n){let r=o.P.config.trackResources;new PerformanceObserver(i=>{for(let s of i.getEntries()){if((0,h.Ki)(s.name))return;let i=s.toJSON(),a=S(null==i?void 0:i.serverTiming);if(null==r&&function(e,t={}){for(let[n,r]of Object.entries(t)){let t=e[n];if(null==t)return!1;if((0,_.cy)(r))return r.includes(t);return t===r}return!0}(i,O)||r){let r=Object.assign(Object.assign({},E(i)),{faroNavigationId:e,faroResourceId:(0,u.S)()});o.P.config.trackUserActionsPreview&&(null==n||n.notify({type:y})),t("faro.performance.resource",r,void 0,{spanContext:a,timestampOverwriteMs:performance.timeOrigin+i.startTime})}}}).observe({type:y,buffered:!0})}(t,e,A)}
11,new(n||(n=Promise))(function(i,s){function o(e){try{u(r.next(e))}catch(e){s(e)}}function a(e){try{u(r.throw(e))}catch(e){s(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(o,a)}u((r=r.apply(e,t||[])).next())})};if("complete"===document.readyState)e();else{let t=()=>{"complete"===document.readyState&&(e(),document.removeEventListener("readystatechange",t))};document.addEventListener("readystatechange",t)}}}function x(e){let{api:t,userActionName:n,startTime:r,endTime:i,actionId:s,event:o,attributes:a}=e,u=i-r,d=o.type;l.Q.notify({type:c.$g,name:n,id:s,startTime:r,endTime:i,duration:u,eventType:d}),t.pushEvent(n,Object.assign({userActionStartTime:r.toString(),userActionEndTime:i.toString(),userActionDuration:u.toString(),userActionTrigger:d},(0,f.Ti)(a)),void 0,{timestampOverwriteMs:r,customPayloadTransformer:e=>(e.action={id:s,name:n},e)})}function C(e,t,n){return e&&clearTimeout(e),e=setTimeout(()=>{t()},n)}function L(e){null==e||e.unsubscribe(),e=void 0}function P(e){return e.type===p.IU}class N extends i.i{constructor(){super(...arguments),this.name="@grafana/faro-web-sdk:instrumentation-user-action",this.version=s.x}initialize(){r=function(e){let t,{api:n,config:r}=e,i=function(){let e=new d.c;function t(t){e.notify({type:p.HU,request:t})}function n(t){e.notify({type:p.IU,request:t})}return function({onRequestEnd:e,onRequestStart:t}){let n=window.fetch;window.fetch=function(){var r,i;let s=null!=(r=(0,h.iM)(arguments[0]))?r:"",o=(0,h.Ki)(s),a=(null!=(i=arguments[1])?i:{}).method,l=(0,u.S)();return o||t({url:s,method:a,requestId:l,apiType:m}),n.apply(this,arguments).then(t=>(o||e({url:s,method:a,requestId:l,apiType:m}),t)).catch(t=>{throw o||e({url:s,method:a,requestId:l,apiType:m}),t})}}({onRequestStart:t,onRequestEnd:n}),function({onRequestStart:e,onRequestEnd:t}){let n=XMLHttpRequest.prototype.open;XMLHttpRequest.prototype.open=function(){let r=arguments[1],i=(0,h.Ki)(r),s=arguments[0],o=(0,u.S)();this.addEventListener("loadstart",function(){i||e({url:r,method:s,requestId:o,apiType:"xhr"})}),this.addEventListener("load",function(){i||t({url:r,method:s,requestId:o,apiType:"xhr"})}),this.addEventListener("error",function(){i||t({url:r,method:s,requestId:o,apiType:"xhr"})}),this.addEventListener("abort",function(){i||t({url:r,method:s,requestId:o,apiType:"xhr"})}),n.apply(this,arguments)}}({onRequestStart:t,onRequestEnd:n}),e}(),s=function(){let e=new d.c;return new MutationObserver((t,n)=>{e.notify({type:p.I1})}).observe(document,{attributes:!0,childList:!0,subtree:!0,characterData:!0}),e}(),o=function(){let e=new d.c;return A.subscribe(t=>{t.type===y&&e.notify({type:p.vb})}),e}(),f=!1;return function(e){var h,m;let g,b,v,y=(m=e).type===p.sk&&"string"==typeof m.name;if(g=y?e.name:function(e,t){let n=function(e){let t=e.split("data-")[1],n=null==t?void 0:t.replace(/-(.)/g,(e,t)=>t.toUpperCase());return null==n?void 0:n.replace(/-/g,"")}(t),r=e.dataset;for(let e in r)if(e===n)return r[e]}(e.target,null!=(h=r.trackUserActionsDataAttributeName)?h:p.jJ),f||null==g)return;f=!0;let _=(0,a.x3)(),w=(0,u.S)();l.Q.notify({type:c.OV,name:g,startTime:_,parentId:w}),t=C(t,()=>{var e,t;b=(0,a.x3)(),f=!1,e=g,t=w,l.Q.notify({type:c._G,name:e,parentId:t})},100);let S=new Map,E=!1,T=new d.c().merge(i,s,o).takeWhile(()=>f).filter(e=>!E||!!(P(e)&&S.has(e.request.requestId))).subscribe(r=>{r.type===p.HU&&S.set(r.request.requestId,r.request),P(r)&&S.delete(r.request.requestId),t=C(t,()=>{let t=Object.assign({api:n,userActionName:g,startTime:_,endTime:b=(0,a.x3)(),actionId:w,event:e},y?{attributes:e.attributes}:{}),r=S.size>0;E&&!r&&(clearTimeout(v),E=!1),r?(E=!0,l.Q.notify({type:c.vX,name:g,parentId:w,reason:"pending-requests",haltTime:(0,a.x3)()}),v=C(void 0,()=>{L(T),x(t),f=!1,E=!1},1e4)):(L(T),x(t),f=!1,E=!1)},100)})}}(o.P),window.addEventListener("pointerdown",r),window.addEventListener("keydown",r)}}let I=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;var k=n(65490),j=n(67120),D=n(54803);function M(e){let t,n,r,i,s=[];if((0,_.T2)(e)&&e.error)t=e.error.message,n=e.error.name,s=(0,j.D)(e.error);else if((r=(0,_.pp)(e))||(0,_.wX)(e)){let{name:i,message:s}=e;n=null!=i?i:r?"DOMError":"DOMException",t=s?`${n}: ${s}`:n}else(0,_.bJ)(e)?(t=e.message,s=(0,j.D)(e)):((0,_.Gv)(e)||(i=(0,_.xH)(e)))&&(n=i?e.constructor.name:void 0,t=`Non-Error exception captured with keys: ${Object.keys(e)}`);return[t,n,s]}function U(e){let t,n,[r,i,s,o,a]=e,u=[],l=(0,_.Kg)(r),c=(0,D.S)(i,"?",s,o);return a||!l?([t,n,u]=M(null!=a?a:r),0===u.length&&(u=[c])):l&&([t,n]=function(e){var t,n;let r=e.match(I),i=null!=(t=null==r?void 0:r[1])?t:k.x;return[null!=(n=null==r?void 0:r[2])?n:e,i]}(r),u=[c]),{value:t,type:n,stackFrames:u}}function B(e,t){return(0,_.bJ)(e[0])?U(e):{value:t(e)}}class F extends i.i{constructor(){super(...arguments),this.name="@grafana/faro-web-sdk:instrumentation-errors",this.version=s.x}initialize(){this.logDebug("Initializing");var e,t=this.api;let n=window.onerror;window.onerror=(...e)=>{try{let{value:n,type:r,stackFrames:i}=U(e),s=e[4];if(n){let e={type:r,stackFrames:i};null!=s&&(e.originalError=s),t.pushError(Error(n),e)}}finally{null==n||n.apply(window,e)}},e=this.api,window.addEventListener("unhandledrejection",t=>{var n,r;let i,s,o=t;o.reason?o=t.reason:(null==(n=t.detail)?void 0:n.reason)&&(o=null==(r=t.detail)?void 0:r.reason);let a=[];(0,_.sO)(o)?(i=`Non-Error promise rejection captured with value: ${String(o)}`,s="UnhandledRejection"):[i,s,a]=M(o),i&&e.pushError(Error(i),{t
11ype:s,stackFrames:a})})}}var $,z,V,H,q,G=-1,K=function(e){addEventListener("pageshow",function(t){t.persisted&&(G=t.timeStamp,e(t))},!0)},W=function(){var e=self.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},J=function(){var e=W();return e&&e.activationStart||0},X=function(e,t){var n=W(),r="navigate";return G>=0?r="back-forward-cache":n&&(document.prerendering||J()>0?r="prerender":document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:"v4-".concat(Date.now(),"-").concat(Math.floor(0x82f79cd8fff*Math.random())+1e12),navigationType:r}},Q=function(e,t,n){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var r=new PerformanceObserver(function(e){Promise.resolve().then(function(){t(e.getEntries())})});return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch(e){}},Z=function(e,t,n,r){var i,s;return function(o){var a;t.value>=0&&(o||r)&&((s=t.value-(i||0))||void 0===i)&&(i=t.value,t.delta=s,a=t.value,t.rating=a>n[1]?"poor":a>n[0]?"needs-improvement":"good",e(t))}},Y=function(e){requestAnimationFrame(function(){return requestAnimationFrame(function(){return e()})})},ee=function(e){document.addEventListener("visibilitychange",function(){"hidden"===document.visibilityState&&e()})},et=function(e){var t=!1;return function(){t||(e(),t=!0)}},en=-1,er=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},ei=function(e){"hidden"===document.visibilityState&&en>-1&&(en="visibilitychange"===e.type?e.timeStamp:0,eo())},es=function(){addEventListener("visibilitychange",ei,!0),addEventListener("prerenderingchange",ei,!0)},eo=function(){removeEventListener("visibilitychange",ei,!0),removeEventListener("prerenderingchange",ei,!0)},ea=function(){return en<0&&(en=er(),es(),K(function(){setTimeout(function(){en=er(),es()},0)})),{get firstHiddenTime(){return en}}},eu=function(e){document.prerendering?addEventListener("prerenderingchange",function(){return e()},!0):e()},el=[1800,3e3],ec=function(e,t){t=t||{},eu(function(){var n,r=ea(),i=X("FCP"),s=Q("paint",function(e){e.forEach(function(e){"first-contentful-paint"===e.name&&(s.disconnect(),e.startTime<r.firstHiddenTime&&(i.value=Math.max(e.startTime-J(),0),i.entries.push(e),n(!0)))})});s&&(n=Z(e,i,el,t.reportAllChanges),K(function(r){n=Z(e,i=X("FCP"),el,t.reportAllChanges),Y(function(){i.value=performance.now()-r.timeStamp,n(!0)})}))})},ed=[.1,.25],ef=0,ep=1/0,eh=0,em=function(e){e.forEach(function(e){e.interactionId&&(ep=Math.min(ep,e.interactionId),ef=(eh=Math.max(eh,e.interactionId))?(eh-ep)/7+1:0)})},eg=function(){return $?ef:performance.interactionCount||0},eb=function(){"interactionCount"in performance||$||($=Q("event",em,{type:"event",buffered:!0,durationThreshold:0}))},ev=[],ey=new Map,e_=0,ew=function(){var e=Math.min(ev.length-1,Math.floor((eg()-e_)/50));return ev[e]},eS=[],eE=function(e){if(eS.forEach(function(t){return t(e)}),e.interactionId||"first-input"===e.entryType){var t=ev[ev.length-1],n=ey.get(e.interactionId);if(n||ev.length<10||e.duration>t.latency){if(n)e.duration>n.latency?(n.entries=[e],n.latency=e.duration):e.duration===n.latency&&e.startTime===n.entries[0].startTime&&n.entries.push(e);else{var r={id:e.interactionId,latency:e.duration,entries:[e]};ey.set(r.id,r),ev.push(r)}ev.sort(function(e,t){return t.latency-e.latency}),ev.length>10&&ev.splice(10).forEach(function(e){return ey.delete(e.id)})}}},eT=function(e){var t=self.requestIdleCallback||self.setTimeout,n=-1;return e=et(e),"hidden"===document.visibilityState?e():(n=t(e),ee(e)),n},eO=[200,500],eA=[2500,4e3],eR={},ex=[800,1800],eC=function e(t){document.prerendering?eu(function(){return e(t)}):"complete"!==document.readyState?addEventListener("load",function(){return e(t)},!0):setTimeout(t,0)},eL={passive:!0,capture:!0},eP=new Date,eN=function(e,t){z||(z=t,V=e,H=new Date,ej(removeEventListener),eI())},eI=function(){if(V>=0&&V<H-eP){var e={entryType:"first-input",name:z.type,target:z.target,cancelable:z.cancelable,startTime:z.timeStamp,processingStart:z.timeStamp+V};q.forEach(function(t){t(e)}),q=[]}},ek=function(e){if(e.cancelable){var t,n,r,i=(e.timeStamp>1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?(t=function(){eN(i,e),r()},n=function(){r()},r=function(){removeEventListener("pointerup",t,eL),removeEventListener("pointercancel",n,eL)},addEventListener("pointerup",t,eL),addEventListener("pointercancel",n,eL)):eN(i,e)}},ej=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach(function(t){return e(t,ek,eL)})},eD=[100,300];class eM{constructor(e,t){this.pushMeasurement=e,this.webVitalConfig=t}initialize(){Object.entries(eM.mapping).forEach(([e,t])=>{var n;t(t=>{this.pushMeasurement({type:"web-vitals",values:{[e]:t.value}})},{reportAllChanges:null==(n=this.webVitalConfig)?void 0:n.reportAllChanges})})}}eM.mapping={cls:function(e,t){t=t||{},ec(et(function(){var n,r=X("CLS",0),i=0,s=[],o=function(e){e.forEach(function(e){if(!e.hadRecentInput){var t=s[0],n=s[s.length-1];i&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(i+=e.value,s.push(e)):(i=e.value,s=[e])}}),i>r.value&&(r.value=i,r.entries=s,n())},a=Q("layout-shift",o);a&&(n=Z(e,r,ed,t.reportAllChanges),ee(function(){o(a.takeRecords()),n(!0)}
11),K(function(){i=0,n=Z(e,r=X("CLS",0),ed,t.reportAllChanges),Y(function(){return n()})}),setTimeout(n,0))}))},fcp:ec,fid:function(e,t){t=t||{},eu(function(){var n,r=ea(),i=X("FID"),s=function(e){e.startTime<r.firstHiddenTime&&(i.value=e.processingStart-e.startTime,i.entries.push(e),n(!0))},o=function(e){e.forEach(s)},a=Q("first-input",o);n=Z(e,i,eD,t.reportAllChanges),a&&(ee(et(function(){o(a.takeRecords()),a.disconnect()})),K(function(){n=Z(e,i=X("FID"),eD,t.reportAllChanges),q=[],V=-1,z=null,ej(addEventListener),q.push(s),eI()}))})},inp:function(e,t){"PerformanceEventTiming"in self&&"interactionId"in PerformanceEventTiming.prototype&&(t=t||{},eu(function(){eb();var n,r,i=X("INP"),s=function(e){eT(function(){e.forEach(eE);var t=ew();t&&t.latency!==i.value&&(i.value=t.latency,i.entries=t.entries,r())})},o=Q("event",s,{durationThreshold:null!=(n=t.durationThreshold)?n:40});r=Z(e,i,eO,t.reportAllChanges),o&&(o.observe({type:"first-input",buffered:!0}),ee(function(){s(o.takeRecords()),r(!0)}),K(function(){e_=eg(),ev.length=0,ey.clear(),r=Z(e,i=X("INP"),eO,t.reportAllChanges)}))}))},lcp:function(e,t){t=t||{},eu(function(){var n,r=ea(),i=X("LCP"),s=function(e){t.reportAllChanges||(e=e.slice(-1)),e.forEach(function(e){e.startTime<r.firstHiddenTime&&(i.value=Math.max(e.startTime-J(),0),i.entries=[e],n())})},o=Q("largest-contentful-paint",s);if(o){n=Z(e,i,eA,t.reportAllChanges);var a=et(function(){eR[i.id]||(s(o.takeRecords()),o.disconnect(),eR[i.id]=!0,n(!0))});["keydown","click"].forEach(function(e){addEventListener(e,function(){return eT(a)},{once:!0,capture:!0})}),ee(a),K(function(r){n=Z(e,i=X("LCP"),eA,t.reportAllChanges),Y(function(){i.value=performance.now()-r.timeStamp,eR[i.id]=!0,n(!0)})})}})},ttfb:function(e,t){t=t||{};var n=X("TTFB"),r=Z(e,n,ex,t.reportAllChanges);eC(function(){var i=W();i&&(n.value=Math.max(i.responseStart-J(),0),n.entries=[i],r(!0),K(function(){(r=Z(e,n=X("TTFB",0),ex,t.reportAllChanges))(!0)}))})}};var eU,eB,eF=function(){var e=self.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},e$=function(e){if("loading"===document.readyState)return"loading";var t=eF();if(t){if(e<t.domInteractive)return"loading";if(0===t.domContentLoadedEventStart||e<t.domContentLoadedEventStart)return"dom-interactive";if(0===t.domComplete||e<t.domComplete)return"dom-content-loaded"}return"complete"},ez=function(e){var t=e.nodeName;return 1===e.nodeType?t.toLowerCase():t.toUpperCase().replace(/^#/,"")},eV=function(e,t){var n="";try{for(;e&&9!==e.nodeType;){var r=e,i=r.id?"#"+r.id:ez(r)+(r.classList&&r.classList.value&&r.classList.value.trim()&&r.classList.value.trim().length?"."+r.classList.value.trim().replace(/\s+/g,"."):"");if(n.length+i.length>(t||100)-1)return n||i;if(n=n?i+">"+n:i,r.id)break;e=r.parentNode}}catch(e){}return n},eH=-1,eq=function(){return eH},eG=function(e){addEventListener("pageshow",function(t){t.persisted&&(eH=t.timeStamp,e(t))},!0)},eK=function(){var e=eF();return e&&e.activationStart||0},eW=function(e,t){var n=eF(),r="navigate";return eq()>=0?r="back-forward-cache":n&&(document.prerendering||eK()>0?r="prerender":document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:"v4-".concat(Date.now(),"-").concat(Math.floor(0x82f79cd8fff*Math.random())+1e12),navigationType:r}},eJ=function(e,t,n){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var r=new PerformanceObserver(function(e){Promise.resolve().then(function(){t(e.getEntries())})});return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch(e){}},eX=function(e,t,n,r){var i,s;return function(o){var a;t.value>=0&&(o||r)&&((s=t.value-(i||0))||void 0===i)&&(i=t.value,t.delta=s,a=t.value,t.rating=a>n[1]?"poor":a>n[0]?"needs-improvement":"good",e(t))}},eQ=function(e){requestAnimationFrame(function(){return requestAnimationFrame(function(){return e()})})},eZ=function(e){document.addEventListener("visibilitychange",function(){"hidden"===document.visibilityState&&e()})},eY=function(e){var t=!1;return function(){t||(e(),t=!0)}},e0=-1,e1=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},e2=function(e){"hidden"===document.visibilityState&&e0>-1&&(e0="visibilitychange"===e.type?e.timeStamp:0,e4())},e5=function(){addEventListener("visibilitychange",e2,!0),addEventListener("prerenderingchange",e2,!0)},e4=function(){removeEventListener("visibilitychange",e2,!0),removeEventListener("prerenderingchange",e2,!0)},e6=function(){return e0<0&&(e0=e1(),e5(),eG(function(){setTimeout(function(){e0=e1(),e5()},0)})),{get firstHiddenTime(){return e0}}},e3=function(e){document.prerendering?addEventListener("prerenderingchange",function(){return e()},!0):e()},e8=[1800,3e3],e9=function(e,t){t=t||{},e3(function(){var n,r=e6(),i=eW("FCP"),s=eJ("paint",function(e){e.forEach(function(e){"first-contentful-paint"===e.name&&(s.disconnect(),e.startTime<r.firstHiddenTime&&(i.value=Math.max(e.startTime-eK(),0),i.entries.push(e),n(!0)))})});s&&(n=eX(e,i,e8,t.reportAllChanges),eG(function(r){n=eX(e,i=eW("FCP"),e8,t.reportAllChanges),eQ(function(){i.value=performance.now()-r.timeStamp,n(!0)})}))})},e7=[.1,.25],te=function(e,t){var n,r;n=function(t){e(function(e){var t,n={};if(e.entries.length){var r=e.entries.reduce(function(e,t){return e&&e.value>t.value?e:t});if(r&&r.sources&&r.sources.length){var i=(t=r.sources).find(function(e){return e.no
11de&&1===e.node.nodeType})||t[0];i&&(n={largestShiftTarget:eV(i.node),largestShiftTime:r.startTime,largestShiftValue:r.value,largestShiftSource:i,largestShiftEntry:r,loadState:e$(r.startTime)})}}return Object.assign(e,{attribution:n})}(t))},r=(r=t)||{},e9(eY(function(){var e,t=eW("CLS",0),i=0,s=[],o=function(n){n.forEach(function(e){if(!e.hadRecentInput){var t=s[0],n=s[s.length-1];i&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(i+=e.value,s.push(e)):(i=e.value,s=[e])}}),i>t.value&&(t.value=i,t.entries=s,e())},a=eJ("layout-shift",o);a&&(e=eX(n,t,e7,r.reportAllChanges),eZ(function(){o(a.takeRecords()),e(!0)}),eG(function(){i=0,e=eX(n,t=eW("CLS",0),e7,r.reportAllChanges),eQ(function(){return e()})}),setTimeout(e,0))}))},tt=function(e,t){e9(function(t){e(function(e){var t={timeToFirstByte:0,firstByteToFCP:e.value,loadState:e$(eq())};if(e.entries.length){var n=eF(),r=e.entries[e.entries.length-1];if(n){var i=n.activationStart||0,s=Math.max(0,n.responseStart-i);t={timeToFirstByte:s,firstByteToFCP:e.value-s,loadState:e$(e.entries[0].startTime),navigationEntry:n,fcpEntry:r}}}return Object.assign(e,{attribution:t})}(t))},t)},tn=0,tr=1/0,ti=0,ts=function(e){e.forEach(function(e){e.interactionId&&(tr=Math.min(tr,e.interactionId),tn=(ti=Math.max(ti,e.interactionId))?(ti-tr)/7+1:0)})},to=function(){return eU?tn:performance.interactionCount||0},ta=function(){"interactionCount"in performance||eU||(eU=eJ("event",ts,{type:"event",buffered:!0,durationThreshold:0}))},tu=[],tl=new Map,tc=0,td=function(){var e=Math.min(tu.length-1,Math.floor((to()-tc)/50));return tu[e]},tf=[],tp=function(e){if(tf.forEach(function(t){return t(e)}),e.interactionId||"first-input"===e.entryType){var t=tu[tu.length-1],n=tl.get(e.interactionId);if(n||tu.length<10||e.duration>t.latency){if(n)e.duration>n.latency?(n.entries=[e],n.latency=e.duration):e.duration===n.latency&&e.startTime===n.entries[0].startTime&&n.entries.push(e);else{var r={id:e.interactionId,latency:e.duration,entries:[e]};tl.set(r.id,r),tu.push(r)}tu.sort(function(e,t){return t.latency-e.latency}),tu.length>10&&tu.splice(10).forEach(function(e){return tl.delete(e.id)})}}},th=function(e){var t=self.requestIdleCallback||self.setTimeout,n=-1;return e=eY(e),"hidden"===document.visibilityState?e():(n=t(e),eZ(e)),n},tm=[200,500],tg=function(e,t){"PerformanceEventTiming"in self&&"interactionId"in PerformanceEventTiming.prototype&&(t=t||{},e3(function(){ta();var n,r,i=eW("INP"),s=function(e){th(function(){e.forEach(tp);var t=td();t&&t.latency!==i.value&&(i.value=t.latency,i.entries=t.entries,r())})},o=eJ("event",s,{durationThreshold:null!=(n=t.durationThreshold)?n:40});r=eX(e,i,tm,t.reportAllChanges),o&&(o.observe({type:"first-input",buffered:!0}),eZ(function(){s(o.takeRecords()),r(!0)}),eG(function(){tc=to(),tu.length=0,tl.clear(),r=eX(e,i=eW("INP"),tm,t.reportAllChanges)}))}))},tb=[],tv=[],ty=0,t_=new WeakMap,tw=new Map,tS=-1,tE=function(e){tb=tb.concat(e),tT()},tT=function(){tS<0&&(tS=th(tO))},tO=function(){tw.size>10&&tw.forEach(function(e,t){tl.has(t)||tw.delete(t)});var e=tu.map(function(e){return t_.get(e.entries[0])}),t=tv.length-50;tv=tv.filter(function(n,r){return r>=t||e.includes(n)});for(var n=new Set,r=0;r<tv.length;r++){var i=tv[r];tL(i.startTime,i.processingEnd).forEach(function(e){n.add(e)})}var s=tb.length-1-50;tb=tb.filter(function(e,t){return e.startTime>ty&&t>s||n.has(e)}),tS=-1};tf.push(function(e){e.interactionId&&e.target&&!tw.has(e.interactionId)&&tw.set(e.interactionId,e.target)},function(e){var t,n=e.startTime+e.duration;ty=Math.max(ty,e.processingEnd);for(var r=tv.length-1;r>=0;r--){var i=tv[r];if(8>=Math.abs(n-i.renderTime)){(t=i).startTime=Math.min(e.startTime,t.startTime),t.processingStart=Math.min(e.processingStart,t.processingStart),t.processingEnd=Math.max(e.processingEnd,t.processingEnd),t.entries.push(e);break}}t||(t={startTime:e.startTime,processingStart:e.processingStart,processingEnd:e.processingEnd,renderTime:n,entries:[e]},tv.push(t)),(e.interactionId||"first-input"===e.entryType)&&t_.set(e,t),tT()});var tA,tR,tx,tC,tL=function(e,t){for(var n,r=[],i=0;n=tb[i];
11i++)if(!(n.startTime+n.duration<e)){if(n.startTime>t)break;r.push(n)}return r},tP=function(e,t){eB||(eB=eJ("long-animation-frame",tE)),tg(function(t){var n,r,i,s,o,a,u,l,c,d;e((n=t.entries[0],r=t_.get(n),i=n.processingStart,s=r.processingEnd,o=r.entries.sort(function(e,t){return e.processingStart-t.processingStart}),a=tL(n.startTime,s),l=(u=t.entries.find(function(e){return e.target}))&&u.target||tw.get(n.interactionId),c=[n.startTime+n.duration,s].concat(a.map(function(e){return e.startTime+e.duration})),d=Math.max.apply(Math,c),Object.assign(t,{attribution:{interactionTarget:eV(l),interactionTargetElement:l,interactionType:n.name.startsWith("key")?"keyboard":"pointer",interactionTime:n.startTime,nextPaintTime:d,processedEventEntries:o,longAnimationFrameEntries:a,inputDelay:i-n.startTime,processingDuration:s-i,presentationDelay:Math.max(d-s,0),loadState:e$(n.startTime)}})))},t)},tN=[2500,4e3],tI={},tk=function(e,t){var n,r;n=function(t){e(function(e){var t={timeToFirstByte:0,resourceLoadDelay:0,resourceLoadDuration:0,elementRenderDelay:e.value};if(e.entries.length){var n=eF();if(n){var r=n.activationStart||0,i=e.entries[e.entries.length-1],s=i.url&&performance.getEntriesByType("resource").filter(function(e){return e.name===i.url})[0],o=Math.max(0,n.responseStart-r),a=Math.max(o,s?(s.requestStart||s.startTime)-r:0),u=Math.max(a,s?s.responseEnd-r:0),l=Math.max(u,i.startTime-r);t={element:eV(i.element),timeToFirstByte:o,resourceLoadDelay:a-o,resourceLoadDuration:u-a,elementRenderDelay:l-u,navigationEntry:n,lcpEntry:i},i.url&&(t.url=i.url),s&&(t.lcpResourceEntry=s)}}return Object.assign(e,{attribution:t})}(t))},r=(r=t)||{},e3(function(){var e,t=e6(),i=eW("LCP"),s=function(n){r.reportAllChanges||(n=n.slice(-1)),n.forEach(function(n){n.startTime<t.firstHiddenTime&&(i.value=Math.max(n.startTime-eK(),0),i.entries=[n],e())})},o=eJ("largest-contentful-paint",s);if(o){e=eX(n,i,tN,r.reportAllChanges);var a=eY(function(){tI[i.id]||(s(o.takeRecords()),o.disconnect(),tI[i.id]=!0,e(!0))});["keydown","click"].forEach(function(e){addEventListener(e,function(){return th(a)},{once:!0,capture:!0})}),eZ(a),eG(function(t){e=eX(n,i=eW("LCP"),tN,r.reportAllChanges),eQ(function(){i.value=performance.now()-t.timeStamp,tI[i.id]=!0,e(!0)})})}})},tj=[800,1800],tD=function e(t){document.prerendering?e3(function(){return e(t)}):"complete"!==document.readyState?addEventListener("load",function(){return e(t)},!0):setTimeout(t,0)},tM=function(e,t){t=t||{};var n=eW("TTFB"),r=eX(e,n,tj,t.reportAllChanges);tD(function(){var i=eF();i&&(n.value=Math.max(i.responseStart-eK(),0),n.entries=[i],r(!0),eG(function(){(r=eX(e,n=eW("TTFB",0),tj,t.reportAllChanges))(!0)}))})},tU=function(e,t){tM(function(t){e(function(e){var t={waitingDuration:0,cacheDuration:0,dnsDuration:0,connectionDuration:0,requestDuration:0};if(e.entries.length){var n=e.entries[0],r=n.activationStart||0,i=Math.max((n.workerStart||n.fetchStart)-r,0),s=Math.max(n.domainLookupStart-r,0),o=Math.max(n.connectStart-r,0),a=Math.max(n.connectEnd-r,0);t={waitingDuration:i,cacheDuration:s-i,dnsDuration:o-s,connectionDuration:a-o,requestDuration:e.value-a,navigationEntry:n}}return Object.assign(e,{attribution:t})}(t))},t)},tB={passive:!0,capture:!0},tF=new Date,t$=function(e,t){tA||(tA=t,tR=e,tx=new Date,tH(removeEventListener),tz())},tz=function(){if(tR>=0&&tR<tx-tF){var e={entryType:"first-input",name:tA.type,target:tA.target,cancelable:tA.cancelable,startTime:tA.timeStamp,processingStart:tA.timeStamp+tR};tC.forEach(function(t){t(e)}),tC=[]}},tV=function(e){if(e.cancelable){var t,n,r,i=(e.timeStamp>1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?(t=function(){t$(i,e),r()},n=function(){r()},r=function(){removeEventListener("pointerup",t,tB),removeEventListener("pointercancel",n,tB)},addEventListener("pointerup",t,tB),addEventListener("pointercancel",n,tB)):t$(i,e)}},tH=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach(function(t){return e(t,tV,tB)})},tq=[100,300],tG=function(e,t){t=t||{},e3(function(){var n,r=e6(),i=eW("FID"),s=function(e){e.startTime<r.firstHiddenTime&&(i.value=e.processingStart-e.startTime,i.entr
11ies.push(e),n(!0))},o=function(e){e.forEach(s)},a=eJ("first-input",o);n=eX(e,i,tq,t.reportAllChanges),a&&(eZ(eY(function(){o(a.takeRecords()),a.disconnect()})),eG(function(){n=eX(e,i=eW("FID"),tq,t.reportAllChanges),tC=[],tR=-1,tA=null,tH(addEventListener),tC.push(s),tz()}))})},tK=function(e,t){tG(function(t){var n;e((n=t.entries[0],Object.assign(t,{attribution:{eventTarget:eV(n.target),eventType:n.name,eventTime:n.startTime,eventEntry:n,loadState:e$(n.startTime)}})))},t)};let tW="load_state",tJ="time_to_first_byte";class tX{constructor(e,t){this.corePushMeasurement=e,this.webVitalConfig=t}initialize(){this.measureCLS(),this.measureFCP(),this.measureFID(),this.measureINP(),this.measureLCP(),this.measureTTFB()}measureCLS(){var e;te(e=>{let{loadState:t,largestShiftValue:n,largestShiftTime:r,largestShiftTarget:i}=e.attribution,s=this.buildInitialValues(e);this.addIfPresent(s,"largest_shift_value",n),this.addIfPresent(s,"largest_shift_time",r);let o=this.buildInitialContext(e);this.addIfPresent(o,tW,t),this.addIfPresent(o,"largest_shift_target",i),this.pushMeasurement(s,o)},{reportAllChanges:null==(e=this.webVitalConfig)?void 0:e.reportAllChanges})}measureFCP(){var e;tt(e=>{let{firstByteToFCP:t,timeToFirstByte:n,loadState:r}=e.attribution,i=this.buildInitialValues(e);this.addIfPresent(i,"first_byte_to_fcp",t),this.addIfPresent(i,tJ,n);let s=this.buildInitialContext(e);this.addIfPresent(s,tW,r),this.pushMeasurement(i,s)},{reportAllChanges:null==(e=this.webVitalConfig)?void 0:e.reportAllChanges})}measureFID(){var e;tK(e=>{let{eventTime:t,eventTarget:n,eventType:r,loadState:i}=e.attribution,s=this.buildInitialValues(e);this.addIfPresent(s,"event_time",t);let o=this.buildInitialContext(e);this.addIfPresent(o,"event_target",n),this.addIfPresent(o,"event_type",r),this.addIfPresent(o,tW,i),this.pushMeasurement(s,o)},{reportAllChanges:null==(e=this.webVitalConfig)?void 0:e.reportAllChanges})}measureINP(){var e;tP(e=>{let{interactionTime:t,presentationDelay:n,inputDelay:r,processingDuration:i,nextPaintTime:s,loadState:o,interactionTarget:a,interactionType:u}=e.attribution,l=this.buildInitialValues(e);this.addIfPresent(l,"interaction_time",t),this.addIfPresent(l,"presentation_delay",n),this.addIfPresent(l,"input_delay",r),this.addIfPresent(l,"processing_duration",i),this.addIfPresent(l,"next_paint_time",s);let c=this.buildInitialContext(e);this.addIfPresent(c,tW,o),this.addIfPresent(c,"interaction_target",a),this.addIfPresent(c,"interaction_type",u),this.pushMeasurement(l,c)},{reportAllChanges:null==(e=this.webVitalConfig)?void 0:e.reportAllChanges})}measureLCP(){var e;tk(e=>{let{elementRenderDelay:t,resourceLoadDelay:n,resourceLoadDuration:r,timeToFirstByte:i,element:s}=e.attribution,o=this.buildInitialValues(e);this.addIfPresent(o,"element_render_delay",t),this.addIfPresent(o,"resource_load_delay",n),this.addIfPresent(o,"resource_load_duration",r),this.addIfPresent(o,tJ,i);let a=this.buildInitialContext(e);this.addIfPresent(a,"element",s),this.pushMeasurement(o,a)},{reportAllChanges:null==(e=this.webVitalConfig)?void 0:e.reportAllChanges})}measureTTFB(){var e;tU(e=>{let{dnsDuration:t,connectionDuration:n,requestDuration:r,waitingDuration:i,cacheDuration:s}=e.attribution,o=this.buildInitialValues(e);this.addIfPresent(o,"dns_duration",t),this.addIfPresent(o,"connection_duration",n),this.addIfPresent(o,"request_duration",r),this.addIfPresent(o,"waiting_duration",i),this.addIfPresent(o,"cache_duration",s);let a=this.buildInitialContext(e);this.pushMeasurement(o,a)},{reportAllChanges:null==(e=this.webVitalConfig)?void 0:e.reportAllChanges})}buildInitialValues(e){return{[e.name.toLowerCase()]:e.value,delta:e.delta}}buildInitialContext(e){var t;let n=null!=(t=(0,b.Gq)(v,b.Uy.session))?t:g.y;return{id:e.id,rating:e.rating,navigation_type:e.navigationType,navigation_entry_id:n}}pushMeasurement(e,t){this.corePushMeasurement({type:"web-vitals",values:e},{context:t})}addIfPresent(e,t,n){n&&(e[t]=n)}}class tQ extends i.i{constructor(){super(...arguments),this.name="@grafana/faro-web-sdk:instrumentation-web-vitals",this.version=s.x}initialize(){this.logDebug("Initializing"),this.intializeWebVitalsInstrumentation().initialize()}intializeWebVitalsInstrumentation(){var e,t,n;return(null==(e=this.config)?void 0:e.trackWebVitalsAttribution)===!1||(null==(n=null==(t=this.config)?void 0:t.webVitalsInstrumentation)?void 0:n.trackAttribution)===!1?new eM(this.api.pushMeasurement,this.config.webVitalsInstrumentation):new tX(this.api.pushMeasurement,this.config.webVitalsInstrumentation)}}var tZ=n(39689),tY=n(72543),t0=n(29871),t1=n(3985),t2=n(57978);class t5 extends i.i{constructor(){super(...arguments),this.name="@grafana/faro-web-sdk:instrumentation-se
11ssion",this.version=s.x}sendSessionStartEvent(e){var t,n;let r=e.session;if(r&&r.id!==(null==(t=this.notifiedSession)?void 0:t.id)){if(this.notifiedSession&&this.notifiedSession.id===(null==(n=r.attributes)?void 0:n.previousSession)){this.api.pushEvent(tZ.Td,{},void 0,{skipDedupe:!0}),this.notifiedSession=r;return}this.notifiedSession=r,this.api.pushEvent(tZ.Vl,{},void 0,{skipDedupe:!0})}}createInitialSession(e,t){var n,r,i,s,l,c,d,f,p,h;let m,g,b=e.fetchUserSession();if(t.persistent&&t.maxSessionPersistenceTime&&b){let e=(0,a.x3)();b.lastActivity<e-t.maxSessionPersistenceTime&&(t1.G.removeUserSession(),b=null)}if((0,t2.OW)(b)){let e=null==b?void 0:b.sessionId;g=(0,t2.Bc)({sessionId:e,isSampled:b.isSampled||!1,started:null==b?void 0:b.started});let i=null==b?void 0:b.sessionMeta,s=Object.assign(Object.assign({},null==(n=t.session)?void 0:n.overrides),null==i?void 0:i.overrides);g.sessionMeta=Object.assign(Object.assign({},t.session),{id:e,attributes:Object.assign(Object.assign(Object.assign({},null==(r=t.session)?void 0:r.attributes),null==i?void 0:i.attributes),{isSampled:g.isSampled.toString()}),overrides:s}),m=tZ.ki}else{let e=null!=(s=null==(i=t.session)?void 0:i.id)?s:({id:null!=(h=null==(p=null==(f=null==(d=o.P.config)?void 0:d.sessionTracking)?void 0:f.generateSessionId)?void 0:p.call(f))?h:(0,u.S)(),attributes:void 0}).id;g=(0,t2.Bc)({sessionId:e,isSampled:(0,tY.$)()});let n=null==(l=t.session)?void 0:l.overrides;g.sessionMeta=Object.assign({id:e,attributes:Object.assign({isSampled:g.isSampled.toString()},null==(c=t.session)?void 0:c.attributes)},n?{overrides:n}:{}),m=tZ.Vl}return{initialSession:g,lifecycleType:m}}registerBeforeSendHook(e){var t;let{updateSession:n}=new e;null==(t=this.transports)||t.addBeforeSendHooks(e=>{var t,r,i;n();let s=null==(t=e.meta.session)?void 0:t.attributes;if(s&&(null==s?void 0:s.isSampled)==="true"){let t=JSON.parse(JSON.stringify(e)),n=null==(r=t.meta.session)?void 0:r.attributes;return null==n||delete n.isSampled,0===Object.keys(null!=n?n:{}).length&&(null==(i=t.meta.session)||delete i.attributes),t}return null})}initialize(){this.logDebug("init session instrumentation");let e=this.config.sessionTracking;if(null==e?void 0:e.enabled){let t=(0,t0.R)(e);this.registerBeforeSendHook(t);let{initialSession:n,lifecycleType:r}=this.createInitialSession(t,e);t.storeUserSession(n);let i=n.sessionMeta;this.notifiedSession=i,this.api.setSession(i),r===tZ.Vl&&this.api.pushEvent(tZ.Vl,{},void 0,{skipDedupe:!0}),r===tZ.ki&&this.api.pushEvent(tZ.ki,{},void 0,{skipDedupe:!0})}this.metas.addListener(this.sendSessionStartEvent.bind(this))}}class t4 extends i.i{constructor(){super(...arguments),this.name="@grafana/faro-web-sdk:instrumentation-view",this.version=s.x}sendViewChangedEvent(e){var t,n,r,i;let s=e.view;s&&s.name!==(null==(t=this.notifiedView)?void 0:t.name)&&(this.api.pushEvent(tZ.wM,{fromView:null!=(r=null==(n=this.notifiedView)?void 0:n.name)?r:g.y,toView:null!=(i=s.name)?i:g.y},void 0,{skipDedupe:!0}),this.notifiedView=s)}initialize(){this.metas.addListener(this.sendViewChangedEvent.bind(this))}}class t6 extends i.i{constructor(){super(),this.name="@grafana/faro-web-sdk:instrumentation-csp",this.version=s.x}initialize(){document.addEventListener("securitypolicyviolation",this.securitypolicyviolationHandler.bind(this))}destroy(){document.removeEventListener("securitypolicyviolation",this.securitypolicyviolationHandler)}securitypolicyviolationHandler(e){this.api.pushEvent("securitypolicyviolation",(0,f.Ti)(e))}}var t3=n(33667),t8=n(87804);class t9 extends i.i{constructor(e={}){super(),this.options=e,this.name="@grafana/faro-web-sdk:instrumentation-console",this.version=s.x,this.errorSerializer=t3.Z}initialize(){var e,t,n,r;this.options=Object.assign(Object.assign({},this.options),this.config.consoleInstrumentation);let i=(null==(e=this.options)?void 0:e.serializeErrors)||!!(null==(t=this.options)?void 0:t.errorSerializer);this.errorSerializer=i?null!=(r=null==(n=this.options)?void 0:n.errorSerializer)?r:k.n:t3.Z,t8.HT.filter(e=>{var t,n;return!(null!=(n=null==(t=this.options)?void 0:t.disabledLevels)?n:t9.defaultDisabledLevels).includes(e)}
11).forEach(e=>{console[e]=(...t)=>{var n,r;try{if(e!==t8.$b.ERROR||(null==(n=this.options)?void 0:n.consoleErrorAsLog))if(e===t8.$b.ERROR&&(null==(r=this.options)?void 0:r.consoleErrorAsLog)){let{value:n,type:r,stackFrames:i}=B(t,this.errorSerializer);this.api.pushLog(n?[t9.consoleErrorPrefix+n]:t,{level:e,context:{value:null!=n?n:"",type:null!=r?r:"",stackFrames:(null==i?void 0:i.length)?(0,k.n)(i):""}})}else this.api.pushLog(t,{level:e});else{let{value:e,type:n,stackFrames:r}=B(t,this.errorSerializer);if(e&&!n&&!r)return void this.api.pushError(Error(t9.consoleErrorPrefix+e));this.api.pushError(Error(t9.consoleErrorPrefix+e),{type:n,stackFrames:r})}}catch(e){this.logError(e)}finally{this.unpatchedConsole[e](...t)}}})}}function t7(e={}){let t=[new N,new F,new tQ,new t5,new t4];return!1!==e.enablePerformanceInstrumentation&&t.unshift(new R),!1!==e.enableContentSecurityPolicyInstrumentation&&t.push(new t6),!1!==e.captureConsole&&t.push(new t9({disabledLevels:e.captureConsoleDisabledLevels})),t}t9.defaultDisabledLevels=[t8.$b.DEBUG,t8.$b.TRACE,t8.$b.LOG],t9.consoleErrorPrefix="console.error: "}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.