1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9854],{1705:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var i in t)Object.defineProperty(e,i,{enumerable:!0,get:t[i]})}(t,{default:function(){return g},handleClientScriptLoad:function(){return h},initScriptLoader:function(){return m}});let n=i(65873),r=i(99562),s=i(65322),o=n._(i(47871)),a=r._(i(6978)),l=i(18533),u=i(8837),d=i(3641),c=new Map,f=new Set,p=e=>{let{src:t,id:i,onLoad:n=()=>{},onReady:r=null,dangerouslySetInnerHTML:s,children:a="",strategy:l="afterInteractive",onError:d,stylesheets:p}=e,h=i||t;if(h&&f.has(h))return;if(c.has(t)){f.add(h),c.get(t).then(n,d);return}let m=()=>{r&&r(),f.add(h)},v=document.createElement("script"),g=new Promise((e,t)=>{v.addEventListener("load",function(t){e(),n&&n.call(this,t),m()}),v.addEventListener("error",function(e){t(e)})}).catch(function(e){d&&d(e)});s?(v.innerHTML=s.__html||"",m()):a?(v.textContent="string"==typeof a?a:Array.isArray(a)?a.join(""):"",m()):t&&(v.src=t,c.set(t,g)),(0,u.setAttributesFromProps)(v,e),"worker"===l&&v.setAttribute("type","text/partytown"),v.setAttribute("data-nscript",l),p&&(e=>{if(o.default.preinit)return e.forEach(e=>{o.default.preinit(e,{as:"style"})});{let t=document.head;e.forEach(e=>{let i=document.createElement("link");i.type="text/css",i.rel="stylesheet",i.href=e,t.appendChild(i)})}})(p),document.body.appendChild(v)};function h(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,d.requestIdleCallback)(()=>p(e))}):p(e)}function m(e){e.forEach(h),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(e=>{let t=e.id||e.getAttribute("src");f.add(t)})}function v(e){let{id:t,src:i="",onLoad:n=()=>{},onReady:r=null,strategy:u="afterInteractive",onError:c,stylesheets:h,...m}=e,{updateScripts:v,scripts:g,getIsSsr:b,appDir:y,nonce:w}=(0,a.useContext)(l.HeadManagerContext);w=m.nonce||w;let S=(0,a.useRef)(!1);(0,a.useEffect)(()=>{let e=t||i;S.current||(r&&e&&f.has(e)&&r(),S.current=!0)},[r,t,i]);let T=(0,a.useRef)(!1);if((0,a.useEffect)(()=>{if(!T.current){if("afterInteractive"===u)p(e);else"lazyOnload"===u&&("complete"===document.readyState?(0,d.requestIdleCallback)(()=>p(e)):window.addEventListener("load",()=>{(0,d.requestIdleCallback)(()=>p(e))}));T.current=!0}},[e,u]),("beforeInteractive"===u||"worker"===u)&&(v?(g[u]=(g[u]||[]).concat([{id:t,src:i,onLoad:n,onReady:r,onError:c,...m,nonce:w}]),v(g)):b&&b()?f.add(t||i):b&&!b()&&p({...e,nonce:w})),y){if(h&&h.forEach(e=>{o.default.preinit(e,{as:"style"})}),"beforeInteractive"===u)if(!i)return m.dangerouslySetInnerHTML&&(m.children=m.dangerouslySetInnerHTML.__html,delete m.dangerouslySetInnerHTML),(0,s.jsx)("script",{nonce:w,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([0,{...m,id:t}])+")"}});else return o.default.preload(i,m.integrity?{as:"script",integrity:m.integrity,nonce:w,crossOrigin:m.crossOrigin}:{as:"script",nonce:w,crossOrigin:m.crossOrigin}),(0,s.jsx)("script",{nonce:w,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([i,{...m,id:t}])+")"}});"afterInteractive"===u&&i&&o.default.preload(i,m.integrity?{as:"script",integrity:m.integrity,nonce:w,crossOrigin:m.crossOrigin}:{as:"script",nonce:w,crossOrigin:m.crossOrigin})}return null}Object.defineProperty(v,"__nextScript",{value:!0});let g=v;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3641:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var i in t)Object.defineProperty(e,i,{enumerable:!0,get:t[i]})}(t,{cancelIdleCallback:function(){return n},requestIdleCallback:function(){return i}});let i="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},n="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
1dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8837:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"setAttributesFromProps",{enumerable:!0,get:function(){return s}});let i={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"},n=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"];function r(e){return["async","defer","noModule"].includes(e)}function s(e,t){for(let[s,o]of Object.entries(t)){if(!t.hasOwnProperty(s)||n.includes(s)||void 0===o)continue;let a=i[s]||s.toLowerCase();"SCRIPT"===e.tagName&&r(a)?e[a]=!!o:e.setAttribute(a,String(o)),(!1===o||"SCRIPT"===e.tagName&&r(a)&&(!o||"false"===o))&&(e.setAttribute(a,""),e.removeAttribute(a))}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},10473:function(e,t,i){var n;!function(r,s){"use strict";var o="function",a="undefined",l="object",u="string",d="major",c="model",f="name",p="type",h="vendor",m="version",v="architecture",g="console",b="mobile",y="tablet",w="smarttv",S="wearable",T="embedded",k="Amazon",x="Apple",E="ASUS",I="BlackBerry",_="Browser",A="Chrome",M="Firefox",O="Google",P="Honor",C="Huawei",L="Microsoft",N="Motorola",U="Nvidia",j="OnePlus",D="Opera",R="OPPO",q="Samsung",z="Sharp",B="Sony",$="Xiaomi",F="Zebra",H="Facebook",V="Chromium OS",W="Mac OS",K=" Browser",J=function(e,t){var i={};for(var n in e)t[n]&&t[n].length%2==0?i[n]=t[n].concat(e[n]):i[n]=e[n];return i},G=function(e){for(var t={},i=0;i<e.length;i++)t[e[i].toUpperCase()]=e[i];return t},Q=function(e,t){return typeof e===u&&-1!==X(t).indexOf(X(e))},X=function(e){return e.toLowerCase()},Z=function(e,t){if(typeof e===u)return e=e.replace(/^\s\s*/,""),typeof t===a?e:e.substring(0,500)},Y=function(e,t){for(var i,n,r,a,u,d,c=0;c<t.length&&!u;){var f=t[c],p=t[c+1];for(i=n=0;i<f.length&&!u&&f[i];)if(u=f[i++].exec(e))for(r=0;r<p.length;r++)d=u[++n],typeof(a=p[r])===l&&a.length>0?2===a.length?typeof a[1]==o?this[a[0]]=a[1].call(this,d):this[a[0]]=a[1]:3===a.length?typeof a[1]!==o||a[1].exec&&a[1].test?this[a[0]]=d?d.replace(a[1],a[2]):void 0:this[a[0]]=d?a[1].call(this,d,a[2]):void 0:4===a.length&&(this[a[0]]=d?a[3].call(this,d.replace(a[1],a[2])):s):this[a]=d||s;c+=2}},ee=function(e,t){for(var i in t)if(typeof t[i]===l&&t[i].length>0){for(var n=0;n<t[i].length;n++)if(Q(t[i][n],e))return"?"===i?s:i}else if(Q(t[i],e))return"?"===i?s:i;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"},ei={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,D+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[m,[f,D+" GX"]],[/\bopr\/([\w\.]+)/i],[m,[f,D]],[/\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"+_]],[/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 "+_]],[/(avast|avg)\/([\w\.]+)/i],[[f,/(.+)/,"$1 Secure "+_],m],[/\bfocus\/([\w\.]+)/i],[m,[f,M+" Focus"]],[/\bopt\/([\w\.]+)/i],[m,[f,D+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[m,[f,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[m,[f,"Dolphin"]],[/coast\/([\w\.]+)/i],[m,[f,D+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[m,[f,"MIUI"+K]],[/fxios\/([\w\.-]+)/i],[m,[f,M]],[/\bqihoobrowser\/?([\w\.]*)/i],[m,[f,"3
160"]],[/\b(qq)\/([\w\.]+)/i],[[f,/(.+)/,"$1Browser"],m],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[f,/(.+)/,"$1"+K],m],[/samsungbrowser\/([\w\.]+)/i],[m,[f,q+" 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(?:.+app_?version\/|_)([\w\.]+)/i],[m,[f,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[m,[f,A+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[f,A+" WebView"],m],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[m,[f,"Android "+_]],[/(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,M+" 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],[[v,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[v,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[v,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[v,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[v,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[v,/ower/,"",X]],[/ sun4\w[;\)]/i],[[v,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[v,X]]],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],[c,[h,q],[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],[c,[h,q],[p,b]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[c,[h,x],[p,b]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[c,[h,x],[p,y]],[/(macintosh);/i],[c,[h,x]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[c,[h,z],[p,b]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[c,[h,P],[p,y]],[/honor([-\w ]+)[;\)]/i],[c,[h,P],[p,b]],[/\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],[c,[h,C],[p,y]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[c,[h,C],[p,b]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[c,/_/g," "],[h,$],[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],[[c,/_/g," "],[h,$],[p,b]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[c,[h,R],[p,b]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[c,[h,ee,{OnePlus:["304","403","203"],"*":R}],[p,y]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[c,[h,"Vivo"],[p,b]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[c,[h,"Realme"],[p,b]],[/\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],[c,[h,N],[p,b]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[c,[h,N],[p,y]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[c,[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],[c,[h,"LG"],[p,b]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}
1(?: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],[c,[h,"Lenovo"],[p,y]],[/(nokia) (t[12][01])/i],[h,c,[p,y]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[c,/_/g," "],[p,b],[h,"Nokia"]],[/(pixel (c|tablet))\b/i],[c,[h,O],[p,y]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[c,[h,O],[p,b]],[/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],[c,[h,B],[p,b]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[c,"Xperia Tablet"],[h,B],[p,y]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[c,[h,j],[p,b]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[c,[h,k],[p,y]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[c,/(.+)/g,"Fire Phone $1"],[h,k],[p,b]],[/(playbook);[-\w\),; ]+(rim)/i],[c,h,[p,y]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[c,[h,I],[p,b]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[c,[h,E],[p,y]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[c,[h,E],[p,b]],[/(nexus 9)/i],[c,[h,"HTC"],[p,y]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[h,[c,/_/g," "],[p,b]],[/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],[c,[h,"TCL"],[p,y]],[/(itel) ((\w+))/i],[[h,X],c,[p,ee,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[c,[h,"Acer"],[p,y]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[c,[h,"Meizu"],[p,b]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[c,[h,"Ulefone"],[p,b]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[c,[h,"Energizer"],[p,b]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[c,[h,"Cat"],[p,b]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[c,[h,"Smartfren"],[p,b]],[/droid.+; (a(?:015|06[35]|142p?))/i],[c,[h,"Nothing"],[p,b]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[c,[h,"Archos"],[p,y]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[c,[h,"Archos"],[p,b]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[h,c,[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,c,[p,b]],[/(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,c,[p,y]],[/(surface duo)/i],[c,[h,L],[p,y]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[c,[h,"Fairphone"],[p,b]],[/(u304aa)/i],[c,[h,"AT&T"],[p,b]],[/\bsie-(\w*)/i],[c,[h,"Siemens"],[p,b]],[/\b(rct\w+) b/i],[c,[h,"RCA"],[p,y]],[/\b(venue[\d ]{2,7}) b/i],[c,[h,"Dell"],[p,y]],[/\b(q(?:mv|ta)\w+) b/i],[c,[h,"Verizon"],[p,y]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[c,[h,"Barnes & Noble"],[p,y]],[/\b(tm\d{3}\w+) b/i],[c,[h,"NuVision"],[p,y]],[/\b(k88) b/i],[c,[h,"ZTE"],[p,y]],[/\b(nx\d{3}j) b/i],[c,[h,"ZTE"],[p,b]],[/\b(gen\d{3}) b.+49h/i],[c,[h,"Swiss"],[p,b]],[/\b(zur\d{3}) b/i],[c,[h,"Swiss"],[p,y]],[/\b((zeki)?tb.*\b) b/i],[c,[h,"Zeki"],[p,y]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[h,"Dragon Touch"],c,[p,y]],[/\b(ns-?\w{0,9}) b/i],[c,[h,"Insignia"],[p,y]],[/\b((nxa|next)-?\w{0,9}) b/i],[c,[h,"NextBook"],[p,y]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[h,"Voice"],c,[p,b]],[/\b(lvtel\-)?(v1[12]) b/i],[[h,"LvTel"],c,[p,b]],[/\b(ph-1) /i],[c,[h,"Essential"],[p,b]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[c,[h,"Envizen"],[p,y]],[/\b(trio[-\w\. ]+) b/i],[c,[h,"MachSpeed"],[p,y]],[/\btu_(1491) b/i],[c,[h,"Rotor"],[p,y]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[c,[h,U],[p,y]],[/(sprint) (\w+)/i],[h,c,[p,b]],[/(kin\.[onetw]{3})/i],[[c,/\./g," "],[h,L],[p,b]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[c,[h,F],[p,y]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[c,[h,F],[p,b]],[/smart-tv.+(samsung)/i],[h,[p,w]],[/hbbtv.+maple;(\d+)/i],[[c,/^/,"SmartTV"],[h,q],[p,w]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[h,"LG"],[p,w]],[/(apple) ?tv/i],[h,[c,x+" TV"],[p,w]],[/crkey/i],[[c,A+"cast"],[h,O],[p,w]],[/droid.+aft(\w+)( bui|\))/i],[c,[h,k],[p,w]],[/(shield \w+ tv)/i],[c,[h,U],[p,w]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[c,[h,z],[p,w]],[/(bravia[\w ]+)( bui|\))/i],[c,[h,B],[p,w]],[/(mi(tv|box)-?\w+) bui/i],[c,[h,$],[p,w]],[/Hbbtv.*(technisat) (.*);/i],[h,c,[p,w]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[h,Z],[c,Z],[p,w]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[c,[p,w]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[p,w]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[h,c,[p,g]],[/droid.+; (shield)( bui|\))/i],[c,[h,U],[p,g]],[/(playstation \w+)/i],[c,[h,B],[p,g]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[c,[h,L],[p,g]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[c,[h,q],[p,S]],[/((pebble))app/i,/(asu
vendor: 5,409 bytes, line 1
1s|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[h,c,[p,S]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[c,[h,R],[p,S]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[c,[h,x],[p,S]],[/(opwwe\d{3})/i],[c,[h,j],[p,S]],[/(moto 360)/i],[c,[h,N],[p,S]],[/(smartwatch 3)/i],[c,[h,B],[p,S]],[/(g watch r)/i],[c,[h,"LG"],[p,S]],[/droid.+; (wt63?0{2,3})\)/i],[c,[h,F],[p,S]],[/droid.+; (glass) \d/i],[c,[h,O],[p,S]],[/(pico) (4|neo3(?: link|pro)?)/i],[h,c,[p,S]],[/; (quest( \d| pro)?)/i],[c,[h,H],[p,S]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[h,[p,T]],[/(aeobc)\b/i],[c,[h,k],[p,T]],[/(homepod).+mac os/i],[c,[h,x],[p,T]],[/windows iot/i],[[p,T]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[c,[p,b]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[c,[p,y]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[p,y]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[p,b]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[c,[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,W],[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,I]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[m,[f,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[m,[f,M+" 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,A+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[f,V],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]]},en=function(e,t){if(typeof e===l&&(t=e,e=s),!(this instanceof en))return new en(e,t).getResult();var i=typeof r!==a&&r.navigator?r.navigator:s,n=e||(i&&i.userAgent?i.userAgent:""),g=i&&i.userAgentData?i.userAgentData:s,w=t?J(ei,t):ei,S=i&&i.userAgent==n;return this.getBrowser=function(){var e,t={};return t[f]=s,t[m]=s,Y.call(t,n,w.browser),t[d]=typeof(e=t[m])===u?e.replace(/[^\d\.]/g,"").split(".")[0]:s,S&&i&&i.brave&&typeof i.brave.isBrave==o&&(t[f]="Brave"),t},this.getCPU=function(){var e={};return e[v]=s,Y.call(e,n,w.cpu),e},this.getDevice=function(){var e={};return e[h]=s,e[c]=s,e[p]=s,Y.call(e,n,w.device),S&&!e[p]&&g&&g.mobile&&(e[p]=b),S&&"Macintosh"==e[c]&&i&&typeof i.standalone!==a&&i.maxTouchPoints&&i.maxTouchPoints>2&&(e[c]="iPad",e[p]=y),e},this.getEngine=function(){var e={};return e[f]=s,e[m]=s,Y.call(e,n,w.engine),e},this.getOS=function(){var e={};return e[f]=s,e[m]=s,Y.call(e,n,w.os),S&&!e[f]&&g&&g.platform&&"Unknown"!=g.platform&&(e[f]=g.platform.replace(/chrome os/i,V).replace(/macos/i,W)),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 n},this.setUA=function(e){return n=typeof e===u&&e.length>500?Z(e,500):e,this},this.setUA(n),this};en.VERSION="1.0.41",en.BROWSER=G([f,m,d]),en.CPU=G([v]),en.DEVICE=G([c,h,p,g,b,w,y,S,T]),en.ENGINE=en.OS=G([f,m]),typeof t!==a?(e.exports&&(t=e.exports=en),t.UAParser=en):i.amdO?s===(n=(function(){return en}).call(t,i,t,e))||(e.exports=n):typeof r!==a&&(r.UAParser=en);var er=typeof r!==a&&(r.jQuery||r.Zepto);if(er&&!er.ua){var es=new en;er.ua=es.getResult(),er.ua.get=function(){return es.getUA()},er.ua.set=function(e){es.setUA(e);var t=es.getResult();for(var i in t)er.ua[i]=t[i]}}}("object"==typeof window?window:this)},20763:(e,t)=>{"use strict";function i(){return null}
1Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},33408:(e,t,i)=>{"use strict";e.exports=i(48420)},44496:(e,t,i)=>{"use strict";let n,r,s,o,a,l,u,d,c,f,p,h,m,v,g,b,y,w,S,T,k,x,E,I,_,A,M,O,P,C,L;i.d(t,{KP:()=>eb,wt:()=>iR,pu:()=>nu});var N=i(6978);let U=N.version,j=function(){let e=U.split(".");try{return e[0]?parseInt(e[0],10):null}catch(e){return null}}();function D(e){return null!==j&&j>=e}function R(e,t){return typeof e===t}function q(e,t){return Object.prototype.toString.call(e)===`[object ${t}]`}function z(e,t){try{return e instanceof t}catch(e){return!1}}D(19),D(18),D(17),D(16);let B=e=>R(e,"null"),$=e=>R(e,"string"),F=e=>!B(e)&&R(e,"object"),H=e=>R(e,"function"),V=e=>q(e,"Array"),W="undefined"!=typeof Event,K="undefined"!=typeof Error,J=e=>K&&z(e,Error);function G(e){return null==e||(V(e)||$(e)?0===e.length:!!F(e)&&0===Object.keys(e).length)}N.Component;var Q=i(82480),X=i.n(Q);let Z="session_start",Y="session_resume",ee="route_change";function et(e){return L={route:"",url:e}}function ei(e){var t,i;return(null==e||null==(t=e.computedMatch)?void 0:t.isExact)&&(i=e.computedMatch.path,L&&(L.route=i)),N.createElement(s,e)}let en="undefined"!=typeof globalThis?globalThis:void 0!==i.g?i.g:"undefined"!=typeof self?self:void 0,er=!1;function es(e){return e.split(/\\?\//).filter(e=>e.length>0&&","!==e).length}function eo(e){return(eo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ea(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,n)}return i}function el(e){var t;let i=null==u?void 0:u(),n=null==d?void 0:d(),s=(0,N.useMemo)(()=>{var t;return null!=(t=null==o?void 0:o(e.children))?t:[]},[e.children]),c=(0,N.useRef)({});(0,N.useEffect)(()=>{if(er&&("PUSH"===n||"POP"===n)){var e,t;let n=function(e,t){if(!e||0===e.length)return t.pathname;let i=a(e,t),n="";if(i)for(let e=0;e<i.length;e++){let r=i[e],s=r.route;if(s){if(s.index)return r.pathname;let e=s.path;if(e&&(n+=e=e.startsWith("/")?e:`/${e}`,r.pathname===t.pathname)){if(es(n)!==es(r.pathname))return e;return n}}}return t.pathname}(s,i),o=null==(e=en.location)?void 0:e.href;r.pushEvent(ee,function(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?ea(Object(i),!0).forEach(function(t){!function(e,t,i){var n;(n=function(e,t){if("object"!=eo(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=eo(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==eo(n)?n:n+"")in e)?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i}(e,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):ea(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}({toRoute:n,toUrl:null==(t=en.location)?void 0:t.href},c.current)),c.current={fromRoute:n,fromUrl:o}}},[i,n,s]);let f=null!=(t=e.routesComponent)?t:l;return N.createElement(f,e)}function eu(){}let ed={debug:eu,error:eu,info:eu,prefix:"Faro",warn:eu};function ec(e){return(ec="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ef(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,n)}return i}function ep(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};
1t%2?ef(Object(i),!0).forEach(function(t){!function(e,t,i){var n;(n=function(e,t){if("object"!=ec(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=ec(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==ec(n)?n:n+"")in e)?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i}(e,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):ef(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}let eh=ep({},console);var em=class{constructor(){this.unpatchedConsole=eh,this.internalLogger=ed,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)}},ev=class extends em{constructor(...e){super(...e),this.api={},this.transports={}}};let eg="2.12.1";var eb=class extends ev{constructor(e={}){super(),this.options=e,this.name="@grafana/faro-react",this.version=eg}initialize(){var e,t;e=this.internalLogger,t=this.api,n=e,r=t,function(e){let t="Initializing React Router";switch(null==(i=e.router)?void 0:i.version){case"v7":case"v6":n.debug(`${t} ${e.router.version} instrumentation`),c=e.router.dependencies,X()(el,c.Routes),er=!0,o=c.createRoutesFromChildren,a=c.matchRoutes,l=c.Routes,u=c.useLocation,d=c.useNavigationType;break;case"v7_data_router":case"v6_data_router":n.debug(`${t} ${e.router.version} data router instrumentation`);var i,c,f=e.router.dependencies;er=!0,a=f.matchRoutes;break;case"v5":case"v4":n.debug(`${t} ${e.router.version} instrumentation`),function(e){var t,i,n,o;let a=e.Route,l=null!=(t=a.displayName)?t:a.name;ei.displayName=`faroRoute(${l})`,X()(ei,a),e.history,s=e.Route,et(null==(i=en.location)?void 0:i.href),null==(n=(o=e.history).listen)||n.call(o,(e,t)=>{if("PUSH"===t||"POP"===t){var i;r.pushEvent(ee,L,void 0,{skipDedupe:!0}),L=void 0,et(null==(i=en.location)?void 0:i.href)}})}(e.router.dependencies);break;default:n.debug("Skipping initialization of React Router instrumentation")}}(this.options)}};function ey(e){return(ey="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ew(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,n)}return i}function eS(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?ew(Object(i),!0).forEach(function(t){!function(e,t,i){var n;(n=function(e,t){if("object"!=ey(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=ey(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==ey(n)?n:n+"")in e)?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i}(e,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):ew(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}N.Component;let eT=new WeakMap;function ek(e){let t=eT.get(e);if(!t){let i=[],n=[];t={addSessionUpdateListener:e=>{i.push(e)},removeSessionUpdateListener:e=>{i=i.filter(t=>t!==e)},notifySessionUpdate:e=>{i.forEach(t=>t(e))},shouldCapture:()=>n.every(e=>e()),addCaptureFilter:e=>{n.push(e)},removeCaptureFilter:e=>{n=n.filter(t=>t!==e)}},eT.set(e,t)}return t}var ex=class{constructor(e,t,i){this.metas=e,this.transports=t,this.onActivate=i,this.waiting=!1,this.shouldCapture=()=>!document.prerendering,this.discard=()=>null,this.recordUpdate=e=>{var t,i,n,r,s;let o=this.pending;if("overrides"===e.type){this.pending={reset:null!=(r=null==o?void 0:o.reset)&&r,inheritOverrides:null==(s=null==o?void 0:o.inheritOverrides)||s,session:eS(eS({},null==o?void 0:o.session),{},{overrides:eS(eS({},null==o?void 0:o.session.overrides),e.overrides)})};return}let a=e.session,l=G(a)||null!=a&&"id"in a&&!a.id,u=null!=(t=null==a?void 0:a.overrides)?t:null==o?void 0:o.session.overrides;this.pending={reset:l||!(null==a?void 0:a.id)&&null!=(i=null==o?void 0:o.reset)&&i,inheritOverrides:(!!e.overrides||(null==a?void 0:a.overrides)===void 0)&&(null==(n=null==o?void 0:o.inheritOverrides)||n),session:{id:null==a?void 0:a.id,attributes:(null==a?void 0:a.attributes)&&eS({},a.attributes),overrides:e.overrides?eS(eS({},null==o?void 0:o.session.overrides),e.overrides):u&&eS({},u)}}},this.activate=()=>
5{this.waiting&&this.shouldCapture()&&(this.destroy(),this.onActivate(this.pending))}}initialize(){var e,t;this.waiting=!0,ek(this.metas).addSessionUpdateListener(this.recordUpdate),ek(this.metas).addCaptureFilter(this.shouldCapture),this.transports.addBeforeSendHooks(this.discard),document.addEventListener("prerenderingchange",this.activate),null==(e=(t=this.metas).addCaptureListener)||e.call(t,this.activate),this.activate()}destroy(){var e,t;this.waiting=!1,document.removeEventListener("prerenderingchange",this.activate),ek(this.metas).removeSessionUpdateListener(this.recordUpdate),null==(e=(t=this.metas).removeCaptureListener)||e.call(t,this.activate),ek(this.metas).removeCaptureFilter(this.shouldCapture),this.transports.removeBeforeSendHooks(this.discard)}};let eE="_faroInternal",eI={api:{pushLog:()=>{},pushError:()=>{},changeStacktraceParser:()=>{},getStacktraceParser:()=>void 0,pushMeasurement:()=>{},pushTraces:()=>{},getOTEL:()=>void 0,getTraceContext:()=>void 0,initOTEL:()=>{},isOTELInitialized:()=>!1,setUser:()=>{},resetUser:()=>{},setSession:()=>{},resetSession:()=>{},getSession:()=>void 0,setView:()=>{},getView:()=>void 0,setPage:()=>{},getPage:()=>void 0,pushEvent:()=>{},startUserAction:()=>void 0,getActiveUserAction:()=>void 0}};function e_(e=eI){var t,i,n;let r=e.config.sessionTracking,s=null!=(t=null!=(i=null==r||null==(n=r.sampler)?void 0:n.call(r,{metas:e.metas.value}))?i:null==r?void 0:r.samplingRate)?t:1,o="number"==typeof s?Math.min(1,Math.max(0,s)):0;if(!(o>0))return!1;if(1===o)return!0;try{let e="undefined"!=typeof window?window.crypto:void 0;if("function"==typeof(null==e?void 0:e.getRandomValues)){let t=new Uint32Array(1);return e.getRandomValues(t),t[0]/0x100000000<o}}catch(e){}return Math.random()<o}let eA={session:"sessionStorage",local:"localStorage"};function eM(e){try{let t;t=window[e];let i="__faro_storage_test__";return t.setItem(i,i),t.removeItem(i),!0}catch(i){var t;return null==(t=eI.internalLogger)||t.info(`Web storage of type ${e} is not available. Reason: ${i}`),!1}}function eO(e,t){return eU(t)?window[t].getItem(e):null}function eP(e,t,i){if(eU(i))try{window[i].setItem(e,t)}catch(e){}}function eC(e,t){eU(t)&&window[t].removeItem(e)}let eL=eM(eA.local),eN=eM(eA.session);function eU(e){return e===eA.local?eL:e===eA.session&&eN}let ej="com.grafana.faro.session",eD={enabled:!0,persistent:!1,maxSessionPersistenceTime:9e5};function eR(){return Date.now()}function eq(){return"undefined"!=typeof performance&&"function"==typeof performance.now?performance.now():Date.now()}function ez(){return new Date().toISOString()}function eB(e){return new Date(e).toISOString()}function e$(e=10){let t=new Uint32Array(e),i="undefined"!=typeof globalThis?globalThis.crypto:void 0;if(null==i?void 0:i.getRandomValues)i.getRandomValues(t);else for(let i=0;i<e;i++)t[i]=Math.floor(0x100000000*Math.random());let n="";for(let i=0;i<e;i++)n+="abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ0123456789"[t[i]%59];return n}function eF(e,t){if(e===t)return!0;if(R(e,"number")&&isNaN(e))return R(t,"number")&&isNaN(t);let i=V(e),n=V(t);if(i!==n)return!1;if(i&&n){let i=e.length;if(i!==t.length)return!1;for(let n=i;0!=n--;)if(!eF(e[n],t[n]))return!1;return!0}let r=F(e),s=F(t);if(r!==s)return!1;if(e&&t&&r&&s){let i=Object.keys(e),n=Object.keys(t);if(i.length!==n.length)return!1;for(let e of i)if(!n.includes(e))return!1;for(let n of i)if(!eF(e[n],t[n]))return!1;return!0}return!1}function eH({sessionId:e,started:t,lastActivity:i,isSampled:n=!0}={},r=eI){var s;let o=eR(),a=null==(s=r.config)||null==(s=s.sessionTracking)?void 0:s.generateSessionId;return null==e&&(e="function"==typeof a?a():e$()),{sessionId:e,lastActivity:null!=i?i:o,started:null!=t?t:o,isSampled:n}}function eV(e){if(null==e)return!1;let t=eR();return t-e.started<144e5&&t-e.lastActivity<9e5}function eW({fetchUserSession:e,storeUserSession:t,adoptSession:i,updateInterval:n=0},r=eI){let s=0;return function({forceSessionExtend:o=!1,refreshActivity:a=!0}={}){var l,u,d,c,f,p;if(!e||!t)return;let h=eR();if(!o&&h<s&&s-h<=n)return;let m=r.config.sessionTracking,v=null==m?void 0:m.persistent;if(v&&!eL||!v&&!eN)return;let g=e();if(s=Math.min(h+n,(null!=(l=null==g?void 0:g.started)?l:h)+144e5,(null!=(u=null==g?void 0:g.lastActivity)?u:h)+9e5),!1===o&&eV(g)){a&&t(eS(eS({},g),{},{lastActivity:h}));let e=null==(d=r.metas.value.session)?void 0:d.id;null!=i&&null!=g.sessionMeta&&g.sessionId!==e&&i(g.sessionMeta)}else{let e=eJ(eH({isSampled:e_(r)},r),g,r);s=h+n,t(e),null==(c=r.api)||c.setSession(e.sessionMeta),null==m||null==(f=m.onSessionChange)||f.call(m,null!=(p=null==g?void 0:g.sessionMeta)?p:null,e.sessionMeta)}}}function eK({fetchUserSession:e,storeUserSession:t,updateInterval:i=0}){let n,r=0;return s=>{let o=eR();if(s===n&&o<r&&r-o<=i)return;n=s,r=o+i;let a=e();(null==a?void 0:a.sessionId)===s&&eV(a)&&t(eS(eS({},a),{},{lastActivity:o}))}}function eJ(e,t,i=eI){var n,r,s,o,a,l;let u=eS(eS({},e),{},{sessionMeta:{id:e.sessionId,attributes:function(e){let t={};for(let i of Object.keys(e)){let n=e[i];void 0!==n&&(t[i]=n)}return t}(eS(eS(eS({},null==(n=i.config.sessionTracking)||null==(n=n.session)?void 0:n.attributes),null!=(r=null==(s=i.metas.value.session)?void 0:s.attributes)?r:{}),{},{isSampled:e.isSampled.toString()}))}}),d=null!=(o=null==(a=i.metas.value.session)?void 0:a.overrides)?o:null==t||null==(l=t.sessionMeta)?void 0:l.overrides;G(d)||(u.sessionMeta.overrides=d);let c=null==t?void 0:t.sessionId;return null!=c&&(u.sessionMeta.attributes.previousSession=c),u}function eG({fetchUserSession:e,storeUserSession:t},i=eI){let n=!1;return function(r){if(n)return;let s=r.session,o=e(),a=null==s?void 0:s.id,l=null==s?void 0:s.attributes,u=null==s?void 0:s.overrides,d=null==o?void 0:o.sessionMeta,c=null==d?void 0:d.overrides,f=!!u&&!eF(u,c),p=!!l&&!eF(l,null==d?void 0:d.attributes);if(s&&a!==(null==o?void 0:o.sessionId)||p||f){var h,m;let e=null!=o&&a===o.sessionId,r=e?eJ(o,o,i):eJ(eH({sessionId:a,isSampled:e_(i)},i),o,i),s=null==o||null==(h=o.sessionMeta)||null==(h=h.attributes)?void 0:h.previousSession;e&&null!=s&&s!==r.sessionId&&(r.sessionMeta.attributes.previousSession=s),(null==(m=r.sessionMeta.attributes)?void 0:m.previousSession)===r.sessionId&&delete r.sessionMeta.attributes.previousSession,t(r),function(e,t,i={},n={}){var r,s,o;if(!t)return;let a=i.serviceName,l=null!=(r=null!=(s=n.serviceName)?s:null==(o=e.metas.value.app)?void 0:o.name)?r:"";a&&a!==l&&e.api.pushEvent("service_name_override",{serviceName:a,previousServiceName:l})}(i,f,u,c),n=!0;try{i.api.setSession(r.sessionMeta)}finally{n=!1}}}}function eQ(e={}){return JSON.stringify(null!=e?e:{},function(){let e=new WeakSet;return function(t,i){if(F(i)&&null!==i){if(e.has(i))return null;e.add(i)}return i}}())}function eX(e={}){let t={};for(let[i,n]of Object.entries(e))t[i]=F(n)&&null!==n?eQ(n):String(n);return t}var eZ=class e{constructor(t=eI){this.context=t,this.adopting=!1,this.isAdopting=()=>this.adopting,this.adoptSession=e=>{this.adopting=!0;try{var t;null==(t=this.context.api)||t.setSession(e)}finally{this.adopting=!1}},this.updateSession=({refreshActivity:e=!0}={})=>this.updateUserSession({refreshActivity:e}),this.recordActivity=eK({fetchUserSession:e.fetchUserSession,storeUserSession:e.storeUserSession,updateInterval:1e3}),this.updateUserSession=eW({fetchUserSession:e.fetchUserSession,storeUserSession:e.storeUserSession,adoptSession:this.adoptSession,updateInterval:1e3},t),this.init()}
5static removeUserSession(){eC(ej,e.storageTypeLocal)}static storeUserSession(t){eP(ej,eQ(t),e.storageTypeLocal)}static fetchUserSession(){let t=eO(ej,e.storageTypeLocal);return t?JSON.parse(t):null}init(){document.addEventListener("visibilitychange",()=>{if("visible"===document.visibilityState){var e;this.updateSession({refreshActivity:!1});let t=null==(e=this.context.api)||null==(e=e.getSession())?void 0:e.id;t&&this.recordActivity(t)}}),this.context.metas.addListener(eG({fetchUserSession:e.fetchUserSession,storeUserSession:e.storeUserSession},this.context))}};eZ.storageTypeLocal=eA.local;var eY=class e{constructor(t=eI){this.context=t,this.isAdopting=()=>!1,this.updateSession=({refreshActivity:e=!0}={})=>this.updateUserSession({refreshActivity:e}),this.recordActivity=eK({fetchUserSession:e.fetchUserSession,storeUserSession:e.storeUserSession,updateInterval:1e3}),this.updateUserSession=eW({fetchUserSession:e.fetchUserSession,storeUserSession:e.storeUserSession,updateInterval:1e3},t),this.init()}static removeUserSession(){eC(ej,e.storageTypeSession)}static storeUserSession(t){eP(ej,eQ(t),e.storageTypeSession)}static fetchUserSession(){let t=eO(ej,e.storageTypeSession);return t?JSON.parse(t):null}init(){document.addEventListener("visibilitychange",()=>{if("visible"===document.visibilityState){var e;this.updateSession({refreshActivity:!1});let t=null==(e=this.context.api)||null==(e=e.getSession())?void 0:e.id;t&&this.recordActivity(t)}}),this.context.metas.addListener(eG({fetchUserSession:e.fetchUserSession,storeUserSession:e.storeUserSession},this.context))}};function e0(e){return(null==e?void 0:e.persistent)?eZ:eY}eY.storageTypeSession=eA.session;var e1=class extends ev{constructor(...e){super(...e),this.name="@grafana/faro-web-sdk:instrumentation-session",this.version=eg,this.isAdoptingSession=()=>!1}sendSessionStartEvent(e){var t,i;let n=e.session;if(n&&n.id!==(null==(t=this.notifiedSession)?void 0:t.id)){if(this.isAdoptingSession()){this.notifiedSession=n;return}if(this.notifiedSession&&this.notifiedSession.id===(null==(i=n.attributes)?void 0:i.previousSession)){this.api.pushEvent("session_extend",{},void 0,{skipDedupe:!0}),this.notifiedSession=n;return}this.notifiedSession=n,this.api.pushEvent(Z,{},void 0,{skipDedupe:!0})}}createInitialSession(e,t,i){var n,r,s,o,a,l,u,d,c;let f,p,h=null==i?void 0:i.session,m=e.fetchUserSession();if(t.persistent&&t.maxSessionPersistenceTime&&m){let e=eR();m.lastActivity<e-t.maxSessionPersistenceTime&&(eZ.removeUserSession(),m=null)}let v=eV(m);if((null==i?void 0:i.reset)||!v||(null==h?void 0:h.id)&&h.id!==(null==m?void 0:m.sessionId)){let e=(p=eH({sessionId:(null==i?void 0:i.reset)?void 0:null!=(s=null==h?void 0:h.id)?s:null==(o=t.session)?void 0:o.id,isSampled:e_(this)},this)).sessionId,n=i&&v?null==m||null==(a=m.sessionMeta)?void 0:a.overrides:void 0,r=n?eS(eS({},null==(l=t.session)?void 0:l.overrides),n):null==(u=t.session)?void 0:u.overrides;p.sessionMeta=eS({id:e,attributes:eS({isSampled:p.isSampled.toString()},null==(d=t.session)?void 0:d.attributes)},r?{overrides:r}:{}),f=Z}else{let e=null==m?void 0:m.sessionId;p=eH({sessionId:e,isSampled:m.isSampled||!1,started:null==m?void 0:m.started},this);let i=null==m?void 0:m.sessionMeta,s=eS(eS({},null==(n=t.session)?void 0:n.overrides),null==i?void 0:i.overrides);p.sessionMeta=eS(eS({},t.session),{},{id:e,attributes:eS(eS(eS({},null==(r=t.session)?void 0:r.attributes),null==i?void 0:i.attributes),{},{isSampled:p.isSampled.toString()}),overrides:s}),f=Y}if(h&&(p.sessionMeta=eS(eS({},p.sessionMeta),{},{attributes:eS(eS(eS({},null==(c=p.sessionMeta)?void 0:c.attributes),h.attributes),{},{isSampled:p.isSampled.toString()})}),h.overrides)){let e=(null==i?void 0:i.inheritOverrides)?eS(eS({},p.sessionMeta.overrides),h.overrides):h.overrides;Object.keys(e).length>0?p.sessionMeta.overrides=e:delete p.sessionMeta.overrides}return{initialSession:p,lifecycleType:f}}registerBeforeSendHook(e){var t;this.beforeSendHook=t=>{var i,n,r,s;let o=null==(i=t.meta.session)?void 0:i.id;o&&!this.transports.isPaused()&&e(o);let a=null==(n=t.meta.session)?void 0:n.attributes;if(a&&(null==a?void 0:a.isSampled)==="true"){let e=JSON.parse(JSON.stringify(t)),i=null==(r=e.meta.session)?void 0:r.attributes;return null==i||delete i.isSampled,0===Object.keys(null!=i?i:{}).length&&(null==(s=e.meta.session)||delete s.attributes),e}return null},null==(t=this.transports)||t.addBeforeSendHooks(this.beforeSendHook)}initialize(){var e;this.logDebug("init session instrumentation");let t=document.prerendering;if((null==(e=this.config.sessionTracking)?void 0:e.enabled)&&(t||this.prerenderSession)){null!=this.prerenderSession||(this.prerenderSession=new ex(this.metas,this.transports,e=>{this.prerenderSession=void 0,this.initializeSession(e)})),this.prerenderSession.initialize();return}this.initializeSession()}initializeSession(e){let t=this.config.sessionTracking;if(null==t?void 0:t.enabled){var i,n;let r=e0(t),s=new r(this);this.isAdoptingSession=s.isAdopting,this.registerBeforeSendHook(s.recordActivity);let{initialSession:o,lifecycleType:a}=this.createInitialSession(r,t,e);r.storeUserSession(o);let l=o.sessionMeta;this.notifiedSession=l,this.api.setSession(l),this.captureListener=()=>{this.transports.isPaused()||s.updateSession({refreshActivity:!1})},null==(i=(n=this.metas).addCaptureListener)||i.call(n,this.captureListener),a===Z&&this.api.pushEvent(Z,{},void 0,{skipDedupe:!0}),a===Y&&this.api.pushEvent(Y,{},void 0,{skipDedupe:!0})}this.sessionStartListener=this.sendSessionStartEvent.bind(this),this.metas.addListener(this.sessionStartListener)}destroy(){var e,t,i;null==(e=this.prerenderSession)||e.destroy(),this.captureListener&&(null==(t=(i=this.metas).removeCaptureListener)||t.call(i,this.captureListener),this.captureListener=void 0),this.beforeSendHook&&(this.transports.removeBeforeSendHooks(this.beforeSendHook),this.beforeSendHook=void 0),this.sessionStartListener&&(this.metas.removeListener(this.sessionStartListener),this.sessionStartListener=void 0)}};let e2="http-request-start",e3="http-request-end";var e6=class e{constructor(){this.subscribers=[]}subscribe(e){return this.subscribers.push(e),{unsubscribe:()=>this.unsubscribe(e)}}unsubscribe(e){this.subscribers=this.subscribers.filter(t=>t!==e)}
5notify(e){this.subscribers.forEach(t=>t(e))}first(){let t=new e,i=e=>{t.notify(e),n.unsubscribe()},n=this.subscribe(i),r=t.unsubscribe.bind(t);return this.withUnsubscribeOverride(t,r,i)}takeWhile(t){let i=new e,n=e=>{t(e)?i.notify(e):i.unsubscribe(n)};this.subscribe(n);let r=i.unsubscribe.bind(i);return this.withUnsubscribeOverride(i,r,n)}filter(t){let i=new e,n=e=>{t(e)&&i.notify(e)};this.subscribe(n);let r=i.unsubscribe.bind(i);return this.withUnsubscribeOverride(i,r,n)}merge(...t){let i=new e,n=[];t.forEach(e=>{let t=e.subscribe(e=>{i.notify(e)});n.push(t)});let r=i.unsubscribeAll.bind(i);return i.unsubscribe=()=>{n.forEach(e=>e.unsubscribe()),r()},i}withUnsubscribeOverride(e,t,i){return e.unsubscribe=e=>{t(e),this.unsubscribe(i)},e}unsubscribeAll(){this.subscribers=[]}};let e4=function(e){return e.TRACE="trace",e.DEBUG="debug",e.INFO="info",e.LOG="log",e.WARN="warn",e.ERROR="error",e}({}),e5=["trace","debug","info","log","warn","error"],e9=!1,e8=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i,e7=e=>e.map(e=>F(e)?eQ(e):String(e)).join(" ");function te(e,t,i,n){let r={filename:e||document.location.href,function:t||"?"};return void 0!==i&&(r.lineno=i),void 0!==n&&(r.colno=n),r}let tt=/^\s*at (?:(?![a-z]+:\/\/)([^(]+?) ?\((?:address at )?)?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,ti=/\((\S*)(?::(\d+))(?::(\d+))\)/,tn=/^(?=[\s\S]*?(?:\/|bundle|\.js|\[native code]))\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,tr=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,ts="safari-extension",to=/Minified React error #\d+;/i;function ta(e,t){let i=null==e?void 0:e.includes(ts),n=!i&&(null==e?void 0:e.includes("safari-web-extension"));return i||n?[(null==e?void 0:e.includes("@"))?e.split("@")[0]:e,i?`${ts}:${t}`:`safari-web-extension:${t}`]:[e,t]}function tl(e){let t=[];e.stacktrace?t=e.stacktrace.split("\n").filter((e,t)=>t%2==0):e.stack&&(t=e.stack.split("\n"));let i=t.reduce((t,i,n)=>{let r,s,o,a,l;if(i.length>1024)return t;if(r=tt.exec(i)){if(s=r[1],o=r[2],a=r[3],l=r[4],null==o?void 0:o.startsWith("eval")){let e=ti.exec(o);e&&(o=e[1],a=e[2],l=e[3])}o=(null==o?void 0:o.startsWith("address at "))?o.substring(11):o,[s,o]=ta(s,o)}else if(r=tn.exec(i)){if(s=r[1],o=r[3],a=r[4],l=r[5],o&&o.includes(" > eval")){let e=tr.exec(o);e&&(s=s||"eval",o=e[1],a=e[2])}else{let t;0===n&&!l&&(R(t=e.columnNumber,"number")&&!isNaN(t)||R(t,"bigint"))&&(l=String(e.columnNumber+1))}[s,o]=ta(s,o)}return(o||s)&&t.push(te(o,s,a?Number(a):void 0,l?Number(l):void 0)),t},[]);return to.test(e.message)?i.slice(1):i}function tu(e){let t,i,n,r,s=[];if(q(e,"ErrorEvent")&&e.error)t=e.error.message,i=e.error.name,s=tl(e.error);else if((n=q(e,"DOMError"))||q(e,"DOMException")){let{name:r,message:s}=e;i=null!=r?r:n?"DOMError":"DOMException",t=s?`${i}: ${s}`:i}else if(J(e))i=e.name,t=e.message,s=tl(e);else(F(e)||(r=W&&z(e,Event)))&&(i=r?e.constructor.name:void 0,t=`Non-Error exception captured with keys: ${Object.keys(e)}`);return[t,i,s]}function td(e){let t,i,[n,r,s,o,a]=e,l=[],u=$(n),d=te(r,"?",s,o);return a||!u?([t,i,l]=tu(null!=a?a:n),0===l.length&&(l=[d])):u&&([t,i]=function(e){var t,i;let n=e.match(e8),r=null!=(t=null==n?void 0:n[1])?t:"Error";return[null!=(i=null==n?void 0:n[2])?i:e,r]}(n),l=[d]),{value:t,type:i,stackFrames:l}}function tc(e,t){return J(e[0])?td(e):{value:t(e)}}let tf=e=>e.map(e=>{try{return String(e)}catch(e){return""}}).join(" ");var tp=class e extends ev{constructor(...e){super(...e),this.name="@grafana/faro-web-sdk:instrumentation-console",this.version=eg,this.errorSerializer=tf}initialize(){var t,i;let n=this.config.consoleInstrumentation,r=(null==n?void 0:n.serializeErrors)||!!(null==n?void 0:n.errorSerializer);this.errorSerializer=r?null!=(t=null==n?void 0:n.errorSerializer)?t:e7:tf;let s=null!=(i=null==n?void 0:n.disabledLevels)?i:e.defaultDisabledLevels,o=function(e){if(c||(c=new e6),!e9){let t=null!=e?e:eh;
5e5.forEach(e=>{console[e]=(...i)=>{var n;c.notify({type:"console",level:e,args:i}),null==(n=t[e])||n.apply(console,i)}}),e9=!0}return c}(this.unpatchedConsole);this.subscription=o.subscribe(({level:t,args:i})=>{if(!s.includes(t))try{if(t!==e4.ERROR||(null==n?void 0:n.consoleErrorAsLog))if(t===e4.ERROR&&(null==n?void 0:n.consoleErrorAsLog)){let{value:n,type:r,stackFrames:s}=tc(i,this.errorSerializer);this.api.pushLog(n?[e.consoleErrorPrefix+n]:i,{level:t,context:{value:null!=n?n:"",type:null!=r?r:"",stackFrames:(null==s?void 0:s.length)?e7(s):""}})}else this.api.pushLog(i,{level:t});else{let{value:t,type:n,stackFrames:r}=tc(i,this.errorSerializer);if(t&&!n&&!r)return void this.api.pushError(Error(e.consoleErrorPrefix+t));this.api.pushError(Error(e.consoleErrorPrefix+t),{type:n,stackFrames:r})}}catch(e){this.logError(e)}})}destroy(){var e;null==(e=this.subscription)||e.unsubscribe(),this.subscription=void 0}};tp.defaultDisabledLevels=[e4.DEBUG,e4.TRACE,e4.LOG],tp.consoleErrorPrefix="console.error: ";let th=[];var tm=class extends ev{constructor(...e){super(...e),this.name="@grafana/faro-web-sdk:instrumentation-errors",this.version=eg}initialize(){this.logDebug("Initializing");var e=this.api;let t=window.onerror;window.onerror=(...i)=>{try{let{value:t,type:n,stackFrames:r}=td(i),s=i[4];if(t){let i={type:n,stackFrames:r};null!=s&&(i.originalError=s),e.pushError(Error(t),i)}}finally{null==t||t.apply(window,i)}};var i=this.api;let n=e=>{var t,n;let r,s,o,a=e;a.reason?a=e.reason:(null==(t=e.detail)?void 0:t.reason)&&(a=null==(n=e.detail)?void 0:n.reason);let l=[];F(o=a)||H(o)?[r,s,l]=tu(a):(r=`Non-Error promise rejection captured with value: ${String(a)}`,s="UnhandledRejection"),r&&i.pushError(Error(r),{type:s,stackFrames:l})};window.addEventListener("unhandledrejection",n),th.push(n)}};let tv="unknown";var tg=class extends ev{constructor(...e){super(...e),this.name="@grafana/faro-web-sdk:instrumentation-view",this.version=eg,this.waitingForActivation=!1,this.sendViewChangedEvent=e=>{var t,i,n,r;if(this.waitingForActivation||document.prerendering)return;let s=e.view;if(s&&s.name!==(null==(t=this.notifiedView)?void 0:t.name)){let e=null!=(i=null==(n=this.notifiedView)?void 0:n.name)?i:tv;this.notifiedView=s,this.api.pushEvent("view_changed",{fromView:e,toView:null!=(r=s.name)?r:tv},void 0,{skipDedupe:!0})}},this.prerenderListener=()=>{window.queueMicrotask(()=>{this.waitingForActivation&&(this.waitingForActivation=!1,this.sendViewChangedEvent(this.metas.value))})}}initialize(){this.metas.addListener(this.sendViewChangedEvent),document.prerendering&&(this.waitingForActivation=!0,document.addEventListener("prerenderingchange",this.prerenderListener,{once:!0}))}destroy(){this.waitingForActivation=!1,this.metas.removeListener(this.sendViewChangedEvent),document.removeEventListener("prerenderingchange",this.prerenderListener)}};class tb{t;o=0;i=[];l(e){if(e.hadRecentInput)return;let t=this.i[0],i=this.i.at(-1);this.o&&t&&i&&e.startTime-i.startTime<1e3&&e.startTime-t.startTime<5e3?(this.o+=e.value,this.i.push(e)):(this.o=e.value,this.i=[e]),this.t?.(e)}}let ty=()=>{let e=performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},tw=e=>{if("loading"===document.readyState)return"loading";let t=ty();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"},tS=e=>{let t=e.nodeName;return 1===e.nodeType?t.toLowerCase():t.toUpperCase().replace(/^#/,"")},tT=e=>{let t="";try{for(;9!==e?.nodeType;){let i=e,n=i.id?"#"+i.id:[tS(i),...Array.from(i.classList??[]).sort()].join(".");if(t.length+n.length>99)return t||n;if(t=t?n+">"+t:n,i.id)break;e=i.parentNode}}catch{}return t},tk=new WeakMap;function tx(e,t){let i=tk.get(t);return i||(i=new WeakMap,tk.set(t,i)),i.get(e)||i.set(e,new t),i.get(e)}let tE=-1,tI=e=>{addEventListener("pageshow",t=>{t.persisted&&(tE=t.timeStamp,e(t))},!0)},t_=(e,t,i,n)=>{let r,s;return o=>{t.value>
5=0&&(o||n)&&((s=t.value-(r??0))||void 0===r)&&(r=t.value,t.delta=s,t.rating=((e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good")(t.value,i),e(t))}},tA=e=>{requestAnimationFrame(()=>requestAnimationFrame(()=>e()))},tM=()=>ty()?.activationStart??0,tO=-1,tP=new Set,tC=()=>"hidden"!==document.visibilityState||document.prerendering?1/0:0,tL=e=>{if("hidden"===document.visibilityState){if("visibilitychange"===e.type)for(let e of tP)e();isFinite(tO)||(tO="visibilitychange"===e.type?e.timeStamp:0,removeEventListener("prerenderingchange",tL,!0))}},tN=(e=!1)=>{if(e&&(tO=1/0),tO<0){let e=tM();tO=(document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").find(t=>"hidden"===t.name&&t.startTime>=e)?.startTime)??tC(),addEventListener("visibilitychange",tL,!0),addEventListener("prerenderingchange",tL,!0),tI(()=>{setTimeout(()=>{tO=tC()})})}return{get firstHiddenTime(){return tO},onHidden(e){tP.add(e)}}},tU=(e,t=-1,i,n=0,r,s,o)=>{let a=ty(),l=a?.navigationId||0,u="navigate";return i?u=i:tE>=0?u="back-forward-cache":a&&(document.prerendering||tM()>0?u="prerender":document.wasDiscarded?u="restore":a.type&&(u=a.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:`v6-${Date.now()}-${Math.floor(0x82f79cd8fff*Math.random())+1e12}`,navigationType:u,navigationId:n||l,navigationInteractionId:r,navigationURL:s||a?.name,navigationStartTime:o||0}},tj=(e,t,i={})=>{try{let n=e.filter(e=>PerformanceObserver.supportedEntryTypes.includes(e));if(n.length>0){let e=new PerformanceObserver(e=>{queueMicrotask(()=>{let i=e.getEntries();n.length>1&&i.sort((e,t)=>e.startTime+e.duration-(t.startTime+t.duration)),t(i)})});for(let t of n)e.observe({type:t,buffered:!0,...i});return e}}catch{}},tD=e=>globalThis.PerformanceObserver?.supportedEntryTypes?.includes("soft-navigation")&&"function"==typeof globalThis.PerformanceSoftNavigation?.prototype?.getLargestInteractionContentfulPaint&&e&&e.reportSoftNavs,tR=(e,t)=>{if(e.set(t.navigationId,t),e.size>2){let t=e.keys().next().value;void 0!==t&&e.delete(t)}},tq=e=>{let t=!1;return()=>{t||(e(),t=!0)}};class tz{u}let tB=e=>{document.prerendering?addEventListener("prerenderingchange",e,!0):e()},t$=[1800,3e3],tF=(e,t={})=>{let i=tD(t);tB(()=>{let n=tx(t,tz),r=tN(),s,o=tU("FCP"),a=tj(["paint"],e=>{for(let t of e)"first-contentful-paint"===t.name&&(a.disconnect(),t.startTime<r.firstHiddenTime&&(o.value=Math.max(t.startTime-tM(),0),o.entries.push(t),o.navigationId=t.navigationId||o.navigationId,s(!0)))});a&&(s=t_(e,o,t$,t.reportAllChanges),tI(i=>{s=t_(e,o=tU("FCP",-1,"back-forward-cache",o.navigationId,o.navigationInteractionId,o.navigationURL,tE),t$,t.reportAllChanges),tA(()=>{o.value=performance.now()-i.timeStamp,s(!0)})})),i&&tj(["soft-navigation"],i=>{i.forEach(i=>{n.u&&i.navigationId&&tR(n.u,i),(s=t_(e,o=tU("FCP",Math.max((i.presentationTime||i.paintTime||0)-i.startTime,0),"soft-navigation",i.navigationId,i.interactionId,i.name,i.startTime),t$,t.reportAllChanges))(!0)})},t)})},tH=[.1,.25],tV=e=>e.find(e=>1===e.node?.nodeType)||e[0],tW=0,tK=1/0,tJ=0,tG=e=>{for(let t of e)t.interactionId&&(tK=Math.min(tK,t.interactionId),tW=(tJ=Math.max(tJ,t.interactionId))?(tJ-tK)/7+1:0)},tQ=()=>f?tW:performance.interactionCount??0;class tX{h=0;v=[];p=new Map;m;M;T(){return tQ()-this.h}D(){this.h=tQ(),this.v.length=0,this.p.clear()}S(e){let t=this.T(),i=Math.min(this.v.length-1,Math.floor(t/50));return t&&-1===i&&("soft-navigation"===e||"back-forward-cache"===e)?{k:8,id:-1,entries:[]}:this.v[i]}l(e){if(this.m?.(e),!e.interactionId)return;let t=this.v.at(-1),i=this.p.get(e.interactionId);if(i||this.v.length<10||e.duration>t.k){if(i?e.duration>i.k?(i.entries=[e],i.k=e.duration):e.duration===i.k&&e.startTime===i.entries[0].startTime&&i.entries.push(e):(i={id:e.interactionId,entries:[e],k:e.duration},this.p.set(i.id,i),this.v.push(i)),this.v.sort((e,t)=>t.k-e.k),this.v.length>10)for(let e of this.v.splice(10))this.p.delete(e.id);this.M?.(i)}}}let tZ=e=>{let t=1e3*("requestIdleCallback"in globalThis),i=globalThis.requestIdleCallback||setTimeout,n=globalThis.cancelIdleCallback||clearTimeout;if("hidden"===document.visibilityState)e();else{let r=tq(e),s=-1,o=()=>{n(s),r()};addEventListener("visibilitychange",o,{once:!0,capture:!0}),s=i(()=>{removeEventListener("visibilitychange",o,{capture:!0}),r()},{timeout:t})}},tY=[200,500];class t0{m;u;l(e){this.m?.(e)}}let t1=[2500,4e3],t2=50,t3=[];tj(["resource"],e=>{for(let t of e)t3.push(t),t3.length>t2&&t3.shift()});let t6=[800,1800],t4=e=>{document.prerendering?tB(()=>t4(e)):"complete"!==document.readyState?addEventListener("load",()=>t4(e),!0):setTimeout(e)},t5="load_state",t9="time_to_first_byte";var t8=class{constructor(e,t){this.corePushMeasurement=e,this.webVitalConfig=t}initialize(){this.measureCLS(),this.measureFCP(),this.measureINP(),this.measureLCP(),this.measureTTFB()}measureCLS(){var e;((e,t={})=>{let i=tx(t=Object.assign({},t),tb),n=new WeakMap;i.t=e=>{if(e?.sources?.length){let i=tV(e.sources),r=i?.node;if(r){let e=t.generateTarget?.(r)??tT(r);n.set(i,e)}}},((e,t={})=>{let i=tN();tF(tq(()=>{let n,r=tU("CLS",0),s=tx(t,tb),o=(i,o,a,l,u)=>{r=tU("CLS",0,i,o,a,l,u),s.o=0,n=t_(e,r,tH,t.reportAllChanges)},a=(e=!1)=>{s.o>r.value&&(r.value=s.o,r.entries=s.i),n(e)},l=e=>{a(!0),o("soft-navigation",e.navigationId,e.interactionId,e.name,e.startTime)},u=e=>{for(let t of e)"soft-navigation"!==t.entryType?s.l(t):l(t);a()},d=["layout-shift"];tD(t)&&d.push("soft-navigation");let c=tj(d,u);c&&(n=t_(e,r,tH,t.reportAllChanges),i.onHidden(()=>{u(c.takeRecords()),n(!0)}),tI(()=>{o("back-forward-cache",r.navigationId,r.navigationInteractionId,r.navigationURL,tE),tA(n)}),setTimeout(n))}))})(t=>{e((e=>{let t={};if(e.entries.length){let i=e.entries.reduce((e,t)=>
5e.value>t.value?e:t);if(i?.sources?.length){let e=tV(i.sources);e&&(t={largestShiftTarget:n.get(e),largestShiftTime:i.startTime,largestShiftValue:i.value,largestShiftSource:e,largestShiftEntry:i,loadState:tw(i.startTime)})}}return Object.assign(e,{attribution:t})})(t))},t)})(e=>{let{loadState:t,largestShiftValue:i,largestShiftTime:n,largestShiftTarget:r}=e.attribution,s=this.buildInitialValues(e);this.addIfPresent(s,"largest_shift_value",i),this.addIfPresent(s,"largest_shift_time",n);let o=this.buildInitialContext(e);this.addIfPresent(o,t5,t),this.addIfPresent(o,"largest_shift_target",r),this.pushMeasurement(s,o)},{reportAllChanges:null==(e=this.webVitalConfig)?void 0:e.reportAllChanges})}measureFCP(){var e;((e,t={})=>{let i=tx(t=Object.assign({},t),tz);tD(t)&&(i.u=new Map),tF(t=>{e((e=>{let t={timeToFirstByte:0,firstByteToFCP:e.value,loadState:tw(tE)};if("soft-navigation"!==e.navigationType){if(e.entries.length){let i=ty(),n=e.entries.at(-1);if(i){let r=Math.max(0,i.responseStart-(i.activationStart||0));t={timeToFirstByte:r,firstByteToFCP:e.value-r,loadState:tw(e.entries[0].startTime),navigationEntry:i,fcpEntry:n}}}}else{let n=i.u?.get(e.navigationId);n&&(t={timeToFirstByte:0,firstByteToFCP:e.value,loadState:"complete",navigationEntry:n})}return Object.assign(e,{attribution:t})})(t))},t)})(e=>{let{firstByteToFCP:t,timeToFirstByte:i,loadState:n}=e.attribution,r=this.buildInitialValues(e);this.addIfPresent(r,"first_byte_to_fcp",t),this.addIfPresent(r,t9,i);let s=this.buildInitialContext(e);this.addIfPresent(s,t5,n),this.pushMeasurement(r,s)},{reportAllChanges:null==(e=this.webVitalConfig)?void 0:e.reportAllChanges})}measureINP(){var e;((e,t={})=>{let i=tx(t=Object.assign({},t),tX),n=[],r=[],s=0,o=new WeakMap,a=new WeakMap,l=!1,u=()=>{l||(tZ(d),l=!0)},d=()=>{let e=new Set(i.v.map(e=>o.get(e.entries[0]))),t=r.length-10;r=r.filter((i,n)=>n>=t||e.has(i));let a=new Set;for(let e of r)for(let t of c(e.startTime,e.processingEnd))a.add(t);let u=n.length-10;n=n.filter((e,t)=>a.has(e)||t>=u&&e.startTime>s),l=!1};i.m=e=>{let i,n=e.startTime+e.duration;s=Math.max(s,e.processingEnd);for(let s=r.length-1;s>=0;s--){let o=r[s];if(8>=Math.abs(n-o.renderTime)){(i=o).startTime=Math.min(e.startTime,i.startTime),i.processingStart=Math.min(e.processingStart,i.processingStart),i.processingEnd=Math.max(e.processingEnd,i.processingEnd),t.includeProcessedEventEntries&&i.entries.push(e);break}}i||(i={startTime:e.startTime,processingStart:e.processingStart,processingEnd:e.processingEnd,renderTime:n,entries:t.includeProcessedEventEntries?[e]:[]},r.push(i)),e.interactionId&&o.set(e,i),u()},i.M=e=>{if(!a.get(e)){let i=e.entries.find(e=>e.target)?.target;if(i){let n=t.generateTarget?.(i)??tT(i);a.set(e,n)}else{let t=e.entries.find(e=>e.targetSelector)?.targetSelector;t&&a.set(e,t)}}};let c=(e,t)=>{let i=[];for(let r of n)if(!(r.startTime+r.duration<e)){if(r.startTime>t)break;i.push(r)}return i};tj(["long-animation-frame"],e=>{n=n.concat(e),u()},t),((e,t={})=>{if(!globalThis.PerformanceEventTiming||!("interactionId"in PerformanceEventTiming.prototype))return;let i=tN();tB(()=>{"interactionCount"in performance||f||(f=tj(["event"],tG,{durationThreshold:0}));let n,r=tU("INP"),s=tx(t,tX),o=(i,o,a,l,u)=>{s.D(),n=t_(e,r=tU("INP",-1,i,o,a,l,u),tY,t.reportAllChanges)},a=()=>{let e=s.S(r.navigationType);e&&e.k!==r.value&&(r.value=e.k,r.entries=e.entries,n())},l=e=>{a(),n(!0),o("soft-navigation",e.navigationId,e.interactionId,e.name,e.startTime)},u=(e,t=!1)=>{tZ(()=>{for(let t of e)"soft-navigation"!==t.entryType?s.l(t):l(t);a(),t&&n(!0)})},d=["event","first-input"];tD(t)&&d.push("soft-navigation");let c=tj(d,u,{...t,durationThreshold:t.durationThreshold??40});n=t_(e,r,tY,t.reportAllChanges),c&&(i.onHidden(()=>{u(c.takeRecords(),!0)}),tI(()=>{o("back-forward-cache",r.navigationId,r.navigationInteractionId,r.navigationURL,tE)}))})})(t=>{e((e=>{if(0===e.entries.length){let t=e.navigationStartTime||0,i={processedEventEntries:[],longAnimationFrameEntries:[],inputDelay:0,processingDuration:0,presentationDelay:e.value,loadState:tw(t)};return Object.assign(e,{attribution:i})}let t=e.entries[0],n=o.get(t),r=Math.max(n.processingStart,t.startTime),s=Math.max(t.startTime+t.duration,r),l=Math.min(n.processingEnd,s),u=n.entries.sort((e,t)=>
5e.processingStart-t.processingStart),d=c(t.startTime,l),f=i.p.get(t.interactionId),p={interactionTarget:a.get(f),interactionType:t.name.startsWith("key")?"keyboard":"pointer",interactionTime:t.startTime,nextPaintTime:s,processedEventEntries:u,longAnimationFrameEntries:d,inputDelay:r-t.startTime,processingDuration:l-r,presentationDelay:s-l,loadState:tw(t.startTime),longestScript:void 0,totalScriptDuration:void 0,totalStyleAndLayoutDuration:void 0,totalPaintDuration:void 0,totalUnattributedDuration:void 0};return(e=>{let t=e.interactionTime,i=e.nextPaintTime;if(!e.longAnimationFrameEntries?.length||!t||!i)return;let n=e.inputDelay,r=e.processingDuration,s,o,a=0,l=0,u=0,d=0;for(let i of e.longAnimationFrameEntries)for(let e of(l=l+i.startTime+i.duration-i.styleAndLayoutStart,i.scripts)){let i=e.startTime+e.duration;if(i<t)continue;let u=i-Math.max(t,e.startTime),c=e.duration?u/e.duration*e.forcedStyleAndLayoutDuration:0;a+=u-c,l+=c,u>d&&(o=e.startTime<t+n?"input-delay":e.startTime>=t+n+r?"presentation-delay":"processing-duration",s=e,d=u)}let c=e.longAnimationFrameEntries.at(-1),f=c?c.startTime+c.duration:0;f>=t+n+r&&(u=i-f),s&&o&&(e.longestScript={entry:s,subpart:o,intersectingDuration:d}),e.totalScriptDuration=a,e.totalStyleAndLayoutDuration=l,e.totalPaintDuration=u,e.totalUnattributedDuration=i-t-a-l-u})(p),Object.assign(e,{attribution:p})})(t))},t)})(e=>{var t;let{interactionTime:i,presentationDelay:n,inputDelay:r,processingDuration:s,nextPaintTime:o,loadState:a,interactionTarget:l,interactionType:u,totalScriptDuration:d,totalStyleAndLayoutDuration:c,totalPaintDuration:f,totalUnattributedDuration:p,longestScript:h}=e.attribution,m=this.buildInitialValues(e);this.addIfPresent(m,"interaction_time",i),this.addIfPresent(m,"presentation_delay",n),this.addIfPresent(m,"input_delay",r),this.addIfPresent(m,"processing_duration",s),this.addIfPresent(m,"next_paint_time",o),this.addNumberIfDefined(m,"total_script_duration",d),this.addNumberIfDefined(m,"total_style_and_layout_duration",c),this.addNumberIfDefined(m,"total_paint_duration",f),this.addNumberIfDefined(m,"total_unattributed_duration",p),this.addNumberIfDefined(m,"longest_script_intersecting_duration",null==h?void 0:h.intersectingDuration);let v=this.buildInitialContext(e);this.addIfPresent(v,t5,a),this.addIfPresent(v,"interaction_target",l),this.addIfPresent(v,"interaction_type",u),this.addIfPresent(v,"longest_script_subpart",null==h?void 0:h.subpart),this.addIfPresent(v,"longest_script_invoker_type",null==h?void 0:h.entry.invokerType),(null==(t=this.webVitalConfig)?void 0:t.trackAttributionSources)&&(this.addIfPresent(v,"longest_script_invoker",null==h?void 0:h.entry.invoker),this.addIfPresent(v,"longest_script_source_url",null==h?void 0:h.entry.sourceURL),this.addIfPresent(v,"longest_script_source_function_name",null==h?void 0:h.entry.sourceFunctionName),this.addIfPresent(v,"longest_script_source_char_position",(null==h?void 0:h.entry.sourceCharPosition)!==void 0?String(h.entry.sourceCharPosition):void 0)),this.pushMeasurement(m,v)},{reportAllChanges:null==(e=this.webVitalConfig)?void 0:e.reportAllChanges})}measureLCP(){var e;((e,t={})=>{null!=(t=Object.assign({},t)).resourceBufferSize&&(t2=t.resourceBufferSize);let i=tx(t,t0),n=new WeakMap;tD(t)&&(i.u=new Map),i.m=e=>{let i=e.element;if(i){let r=t.generateTarget?.(i)??tT(i);n.set(e,r)}else e.id&&n.set(e,`#${e.id}`)},((e,t={})=>{let i=!1,n=tD(t);tB(()=>{let r,s=tN(),o=tU("LCP"),a=tx(t,t0),l=(n,a,l,u,d)=>{r=t_(e,o=tU("LCP",-1,n,a,l,u,d),t1,t.reportAllChanges),i=!1,"soft-navigation"===n&&(s=tN(!0))},u=e=>{a.u&&e.navigationId&&tR(a.u,e),i||r(!0),l("soft-navigation",e.navigationId,e.interactionId,e.name,e.startTime);let t=e.getLargestInteractionContentfulPaint?.();t&&d([t])},d=e=>{for(let i of(t.reportAllChanges||n||(e=e.slice(-1)),e)){if(!i)continue;if("soft-navigation"===i.entryType){u(i);continue}let e=0,t=[],n=i.startTime;if("largest-contentful-paint"===i.entryType)e=Math.max(i.startTime-tM(),0),a.l(i),t=[i];else if("interaction-contentful-paint"===i.entryType){if(!o.navigationId||"interactionId"in i&&i.interactionId!=o.navigationInteractionId)continue;e=Math.max((n=i.largestContentfulPaint?.renderTime||0)-i.startTime,0),i.largestContentfulPaint&&(a.l(i.largestContentfulPaint),t=[i.largestContentfulPaint])}n<s.firstHiddenTime&&(o.value=e,o.entries=t,r())}},c=["largest-contentful-paint"];n&&c.push("interaction-contentful-paint","soft-navigation");let f=tj(c,d);if(f){r=t_(e,o,t1,t.reportAllChanges);
5let s=["keydown","click","visibilitychange"],a=e=>{if(e.isTrusted&&!i){let e=o.id;tZ(()=>{if(!i){if(!n)for(let e of(f.disconnect(),s))removeEventListener(e,a,{capture:!0});e===o.id&&(i=!0,r(!0))}})}};for(let e of s)addEventListener(e,a,{capture:!0});tI(n=>{l("back-forward-cache",o.navigationId,o.navigationInteractionId,o.navigationURL,tE),r=t_(e,o,t1,t.reportAllChanges),tA(()=>{o.value=performance.now()-n.timeStamp,i=!0,r(!0)})})}})})(t=>{e((e=>{let t={timeToFirstByte:0,resourceLoadDelay:0,resourceLoadDuration:0,elementRenderDelay:e.value};if(e.entries.length){let r,s=e.entries.at(-1),o=s.url&&(t3.findLast(e=>e.name===s.url)||performance.getEntriesByType("resource").findLast(e=>e.name===s.url));t.target=n.get(s),t.lcpEntry=s,s.url&&(t.url=s.url),o&&(t.lcpResourceEntry=o);let a=0,l=0;if("soft-navigation"!==e.navigationType?(r=ty(),a=r?.activationStart??0,l=r?.responseStart??0):(a=e.navigationStartTime||0,r=i.u?.get(e.navigationId)),r){let i=Math.max(0,l-a),n=Math.max(i,o?(o.requestStart||o.startTime)-a:0),s=Math.min(e.value,Math.max(n,o?o.responseEnd-a:0));t={...t,timeToFirstByte:i,resourceLoadDelay:n-i,resourceLoadDuration:s-n,elementRenderDelay:e.value-s,navigationEntry:r}}}return Object.assign(e,{attribution:t})})(t))},t)})(e=>{var t;let{elementRenderDelay:i,resourceLoadDelay:n,resourceLoadDuration:r,timeToFirstByte:s,target:o,url:a,lcpResourceEntry:l}=e.attribution,u=this.buildInitialValues(e);this.addIfPresent(u,"element_render_delay",i),this.addIfPresent(u,"resource_load_delay",n),this.addIfPresent(u,"resource_load_duration",r),this.addIfPresent(u,t9,s);let d=this.buildInitialContext(e);this.addIfPresent(d,"element",o),(null==(t=this.webVitalConfig)?void 0:t.trackAttributionSources)&&(this.addIfPresent(d,"resource_url",a),this.addIfPresent(d,"resource_delivery_type",null==l?void 0:l.deliveryType),this.addIfPresent(d,"resource_initiator_type",null==l?void 0:l.initiatorType)),this.pushMeasurement(u,d)},{reportAllChanges:null==(e=this.webVitalConfig)?void 0:e.reportAllChanges})}measureTTFB(){var e;((e,t={})=>{((e,t={})=>{let i=tD(t),n=tU("TTFB"),r=t_(e,n,t6,t.reportAllChanges);t4(()=>{let s=ty();if(s){let o=s.responseStart;n.value=Math.max(o-tM(),0),n.entries=[s],r(!0),tI(()=>{(r=t_(e,n=tU("TTFB",0,"back-forward-cache",n.navigationId,n.navigationInteractionId,n.navigationURL,tE),t6,t.reportAllChanges))(!0)}),i&&tj(["soft-navigation"],i=>{i.forEach(i=>{i.navigationId&&((n=tU("TTFB",0,"soft-navigation",i.navigationId,i.interactionId,i.name,i.startTime)).entries=[i],(r=t_(e,n,t6,t.reportAllChanges))(!0))})},t)}})})(t=>{e((e=>{let t=e.entries[0],i={waitingDuration:0,cacheDuration:0,dnsDuration:0,connectionDuration:0,requestDuration:0,navigationEntry:t};if(e.entries.length&&t instanceof PerformanceNavigationTiming){let n=t.activationStart||0,r=Math.max((t.workerStart||t.fetchStart||0)-n,0),s=Math.max(t.domainLookupStart-n,0),o=Math.max(t.connectStart-n,0),a=Math.max(t.connectEnd-n,0);i={waitingDuration:r,cacheDuration:s-r,dnsDuration:o-s,connectionDuration:a-o,requestDuration:e.value-a,navigationEntry:t}}return Object.assign(e,{attribution:i})})(t))},t)})(e=>{let{dnsDuration:t,connectionDuration:i,requestDuration:n,waitingDuration:r,cacheDuration:s}=e.attribution,o=this.buildInitialValues(e);this.addIfPresent(o,"dns_duration",t),this.addIfPresent(o,"connection_duration",i),this.addIfPresent(o,"request_duration",n),this.addIfPresent(o,"waiting_duration",r),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 i=null!=(t=eO("com.grafana.faro.lastNavigationId",eA.session))?t:tv;return{id:e.id,rating:e.rating,navigation_type:e.navigationType,navigation_entry_id:i}}pushMeasurement(e,t){this.corePushMeasurement({type:"web-vitals",values:e},{context:t})}addIfPresent(e,t,i){i&&(e[t]=i)}addNumberIfDefined(e,t,i){void 0!==i&&(e[t]=i)}},t7=class extends ev{constructor(...e){super(...e),this.name="@grafana/faro-web-sdk:instrumentation-web-vitals",this.version=eg}initialize(){this.logDebug("Initializing"),new t8(this.api.pushMeasurement,this.config.webVitalsInstrumentation).initialize()}};let ie=/^00-[a-f0-9]{32}-[a-f0-9]{16}-[0-9]{1,2}$/;function it(e=[]){for(let t of e)if("traceparent"===t.name){if(!ie.test(t.description))continue;let[,e,i]=t.description.split("-");if(null!=e&&null!=i)return{traceId:e,spanId:i};break}}function ii(e,t={wallNow:Date.now(),monoNow:performance.now()}){let{wallNow:i,monoNow:n}=t;return Math.min(i,i-(n-e))}function ir(e){let t,{connectEnd:i,connectStart:n,decodedBodySize:r,domainLookupEnd:s,domainLookupStart:o,duration:a,encodedBodySize:l,fetchStart:u,initiatorType:d,name:c,nextHopProtocol:f,redirectEnd:p,redirectStart:h,renderBlockingStatus:m,requestStart:v,responseEnd:g,responseStart:b,responseStatus:y,secureConnectionStart:w,transferSize:S,workerStart:T}=e;return{name:c,httpHost:function(e){try{return new URL(e).host||tv}catch(e){return tv}}(c),duration:is(a),tcpHandshakeTime:is(i-n),dnsLookupTime:is(s-o),tlsNegotiationTime:is(i-w),responseStatus:is(y),redirectTime:is(p-h),requestTime:is(b-v),responseTime:is(g-b),fetchTime:is(g-u),serviceWorkerTime:is(T>0?u-T:0),decodedBodySize:is(r),encodedBodySize:is(l),cacheHitStatus:(t="fullLoad",0===S?r>
50&&(t="cache"):null!=y?304===y&&(t="conditionalFetch"):l>0&&S<l&&(t="conditionalFetch"),t),renderBlockingStatus:is(m),protocol:f,initiatorType:d,visibilityState:document.visibilityState,ttfb:is(b-v),transferSize:is(S)}}function is(e){return null==e?tv:"number"==typeof e?Math.round(e>0?e:0).toString():e.toString()}function io(e=""){return eI.transports.transports.flatMap(e=>e.getIgnoreUrls()).some(t=>e&&null!=e.match(t))}let ia={initiatorType:["xmlhttprequest","fetch"]};function il(e,t,i,n,r,s,o){try{var a=e[s](o),l=a.value}catch(e){i(e);return}a.done?t(l):Promise.resolve(l).then(n,r)}function iu(e){return function(){var t=this,i=arguments;return new Promise(function(n,r){var s=e.apply(t,i);function o(e){il(s,n,r,o,a,"next",e)}function a(e){il(s,n,r,o,a,"throw",e)}o(void 0)})}}let id=new e6;var ic=class extends ev{constructor(...e){super(...e),this.name="@grafana/faro-web-sdk:instrumentation-performance",this.version=eg}initialize(){var e=this;if(!("PerformanceObserver"in window))return void this.logDebug("performance observer not supported. Disable performance instrumentation.");let t=!1,i=()=>{var i=iu(function*(){if(t)return;let i=e.api.pushEvent,{faroNavigationId:n}=yield function(e){let t,i=new Promise(e=>{t=e});return new PerformanceObserver(i=>{var n;let[r]=i.getEntries();if(null==r||io(r.name))return;let s=r.toJSON(),o=it(null==s?void 0:s.serverTiming),a=null!=(n=eO("com.grafana.faro.lastNavigationId",eA.session))?n:tv,l=eS(eS({},function(e){var t;let{activationStart:i,domComplete:n,domContentLoadedEventEnd:r,domContentLoadedEventStart:s,domInteractive:o,fetchStart:a,loadEventEnd:l,loadEventStart:u,responseStart:d,type:c}=e,f=(null==(t=performance.timing)?void 0:t.domLoading)!=null?performance.timing.domLoading-performance.timeOrigin:null;return eS(eS({},ir(e)),{},{pageLoadTime:is(n-a),documentParsingTime:is(f?o-f:null),domProcessingTime:is(n-o),domContentLoadHandlerTime:is(r-s),onLoadTime:is(l-u),ttfb:is(Math.max(d-(null!=i?i:0),0)),type:c})}(s)),{},{faroNavigationId:e$(),faroPreviousNavigationId:a});eP("com.grafana.faro.lastNavigationId",l.faroNavigationId,eA.session),e("faro.performance.navigation",l,void 0,{spanContext:o,timestampOverwriteMs:ii(s.startTime)}),t(l)}).observe({type:"navigation",buffered:!0}),i}(i);t||null==n||function(e,t,i,n){let r=n.trackResources;new PerformanceObserver(n=>{let s=n.getEntries(),o={wallNow:Date.now(),monoNow:performance.now()};for(let n of s){if(io(n.name))continue;null==i||i.notify({type:"resource"});let s=n.toJSON(),a=it(null==s?void 0:s.serverTiming);(null==r&&function(e,t={}){for(let[i,n]of Object.entries(t)){let t=e[i];if(null==t)return!1;if(V(n))return n.includes(t);return t===n}return!0}(s,ia)||r)&&t("faro.performance.resource",eS(eS({},ir(s)),{},{faroNavigationId:e,faroResourceId:e$()}),void 0,{spanContext:a,timestampOverwriteMs:ii(s.startTime,o)})}}).observe({type:"resource",buffered:!0})}(n,i,id,e.config)});if("complete"===document.readyState)i();else{let e=()=>{"complete"===document.readyState&&(i(),document.removeEventListener("readystatechange",e))};document.addEventListener("readystatechange",e)}};this.cancelInitialization=()=>{t=!0,document.removeEventListener("prerenderingchange",i)},document.prerendering?document.addEventListener("prerenderingchange",i,{once:!0}):i()}destroy(){var e;null==(e=this.cancelInitialization)||e.call(this),this.cancelInitialization=void 0}};let ip="data-faro-user-action-name";function ih(e){return`data-${(e.startsWith("data-")?e.slice(5):e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`}function im(e,t=100,i=eu){if(void 0===e)return t;let n=NaN;try{n="string"==typeof e&&""===e.trim()?NaN:Number(e)}catch(e){}return!Number.isFinite(n)||n<=0?(i(`initialActivityTimeout must be a finite number greater than zero; using ${t} ms`),t):n>1e3?(i("initialActivityTimeout cannot exceed 1000 ms; clamping to the maximum"),1e3):n}function iv(e,t,i){return void 0!==e&&window.clearTimeout(e),window.setTimeout(()=>{t()},i)}function ig(e){return e.type===e3}function ib(){return p||(p=new e6),h||(h=new MutationObserver((e,t)=>{p.notify({type:"dom-mutation"})})).observe(document,{attributes:!0,childList:!0,subtree:!0,characterData:!0}
5),p}ip.replace(/-name$/,"-timeout");let iy="fetch",iw=!1;function iS(){if(m)return m;function e(e){m.notify({type:e2,request:e})}function t(e){m.notify({type:e3,request:e})}return m=new e6,iw||(function({onRequestEnd:e,onRequestStart:t}){g||(g=window.fetch),window.fetch=function(){var i,n,r;let s=null!==(r=arguments[0],i=$(r)?r:r instanceof URL?r.href:!G(r)&&H(null==r?void 0:r.toString)?r.toString():void 0)&&void 0!==i?i:"",o=io(s),a=(null!=(n=arguments[1])?n:{}).method,l=e$();return o||t({url:s,method:a,requestId:l,apiType:iy}),g.apply(this,arguments).then(t=>(o||e({url:s,method:a,requestId:l,apiType:iy}),t)).catch(t=>{throw o||e({url:s,method:a,requestId:l,apiType:iy}),t})}}({onRequestStart:e,onRequestEnd:t}),function({onRequestStart:e,onRequestEnd:t}){v||(v=XMLHttpRequest.prototype.open),XMLHttpRequest.prototype.open=function(){let i=arguments[1],n=io(i),r=arguments[0],s=e$();this.addEventListener("loadstart",function(){n||e({url:i,method:r,requestId:s,apiType:"xhr"})}),this.addEventListener("load",function(){n||t({url:i,method:r,requestId:s,apiType:"xhr"})}),this.addEventListener("error",function(){n||t({url:i,method:r,requestId:s,apiType:"xhr"})}),this.addEventListener("abort",function(){n||t({url:i,method:r,requestId:s,apiType:"xhr"})}),v.apply(this,arguments)}}({onRequestStart:e,onRequestEnd:t}),iw=!0),m}let iT=!1,ik=function(e){return e[e.Started=0]="Started",e[e.Halted=1]="Halted",e[e.Cancelled=2]="Cancelled",e[e.Ended=3]="Ended",e}({});var ix=class{constructor(e,t,i=100){this.userAction=e,this.logDebug=t,this.initialActivityTimeout=i,this.http=iS(),this.dom=ib(),this.perf=(b||(b=ne
5w e6),iT||(id.subscribe(e=>{"resource"===e.type&&b.notify({type:"resource-entry"})}),iT=!0),b),this.isValid=!1,this.runningRequests=new Map}attach(){this.allMonitorsSub=new e6().merge(this.http,this.dom,this.perf).takeWhile(()=>[ik.Started,ik.Halted].includes(this.userAction.getState())).filter(e=>this.userAction.getState()!==ik.Halted||!!(ig(e)&&this.runningRequests.has(e.request.requestId))).subscribe(e=>{e.type===e2&&this.runningRequests.set(e.request.requestId,e.request),ig(e)&&this.runningRequests.delete(e.request.requestId),ig(e)?this.userAction.getState()===ik.Halted&&0===this.runningRequests.size&&this.endAction():(this.isValid||(this.isValid=!0,this.clearTimer(this.startupTid)),this.scheduleFollowUp())}),this.stateSub=this.userAction.filter(e=>[ik.Ended,ik.Cancelled].includes(e)).first().subscribe(()=>this.cleanup()),this.startupTid=iv(this.startupTid,()=>{this.logDebug("User action not sent; no DOM, resource, or HTTP activity:",this.userAction.name),this.cancelAction()},this.initialActivityTimeout)}scheduleFollowUp(){this.clearTimer(this.followUpTid),this.followUpTid=window.setTimeout(()=>this.userAction.getState()===ik.Started&&this.runningRequests.size>0?void this.haltAction():this.isValid?void this.endAction():void this.cancelAction(),100)}haltAction(){this.userAction.getState()===ik.Started&&(this.userAction.halt(),this.startHaltTimeout())}startHaltTimeout(){this.clearTimer(this.haltTid),this.haltTid=iv(this.haltTid,()=>{this.userAction.getState()===ik.Halted&&this.endAction()},1e4)}endAction(){this.userAction.end(),this.cleanup()}cancelAction(){this.userAction.cancel(),this.cleanup()}cleanup(){var e,t;this.clearTimer(this.startupTid),this.clearTimer(this.followUpTid),this.clearTimer(this.haltTid),null==(e=this.allMonitorsSub)||e.unsubscribe(),null==(t=this.stateSub)||t.unsubscribe(),this.allMonitorsSub=void 0,this.stateSub=void 0,this.runningRequests.clear()}clearTimer(e){void 0!==e&&window.clearTimeout(e)}};let iE={Normal:"normal"};var iI=class{constructor(){this.buffer=[]}addItem(e){this.buffer.push(e)}flushBuffer(e){if(H(e))for(let t of this.buffer)e(t);this.buffer.length=0}size(){return this.buffer.length}},i_=class extends e6{constructor({name:e,parentId:t,trigger:i,transports:n,attributes:r,trackUserActionsExcludeItem:s,importance:o=iE.Normal,pushEvent:a}){super(),this.name=e,this.attributes=r,this.id=e$(),this.trigger=i,this.parentId=null!=t?t:this.id,this.trackUserActionsExcludeItem=s,this.importance=o,this._pushEvent=a,this._itemBuffer=new iI,this._transports=n,this._state=0,this._start()}addItem(e){return 0===this._state&&(this._itemBuffer.addItem(e),!0)}_start(){this._state=0,0===this._state&&(this.startTime=eR(),this._startTimeMono=eq())}halt(){0===this._state&&(this._state=1,this.notify(this._state))}cancel(){0===this._state&&this._itemBuffer.flushBuffer(e=>{this._transports.execute(e)}),this._state=2,this.notify(this._state)}end(){if(2===this._state)return;let e=eR(),t=eq()-this._startTimeMono;this._state=3,this._itemBuffer.flushBuffer(e=>{var t,i;if(t=e,(null==(i=this.trackUserActionsExcludeItem)?void 0:i(t))||"measurement"===t.type&&"web-vitals"===t.payload.type)return void this._transports.execute(e);let n=ep(ep({},e),{},{payload:ep(ep({},e.payload),{},{action:{parentId:this.id,name:this.name}})});this._transports.execute(n)}),this._state=3,this.notify(this._state),this._pushEvent("faro.user.action",ep({userActionName:this.name,userActionStartTime:this.startTime.toString(),userActionEndTime:e.toString(),userActionDuration:t.toString(),userActionTrigger:this.trigger,userActionImportance:this.importance},eX(this.attributes)),void 0,{timestampOverwriteMs:this.startTime,customPayloadTransformer:e=>(e.action={id:this.id,name:this.name},e)})}getState(){return this._state}};let iA=new e6;function iM(e,t){return!!e&&(null==e?void 0:e.getState())===0&&(e.addItem(t),!0)}var iO=class extends ev{constructor(...e){super(...e),this.name="@grafana/faro-web-sdk:instrumentation-user-action",this.version=eg}initialize(){let{processUserEvent:e,processUserActionStarted:t}=function(e,t=eu){var i;let{api:n,config:r,internalLogger:s}=e,o=im(null==(i=r.userActionsInstrumentation)?void 0:i.initialActivityTimeout,100,t);return{processUserEvent:function(e){var t,i;let s=null!=(t=null==(i=r.userActionsInstrumentation)?void 0:i.dataAttributeName)?t:ip,o=e.target;if(!(o instanceof Element))return;let a=function(e,t){let i=e;for(;i;){if(i.hasAttribute(t))return i;i=i.parentElement}return null}(o,ih(s)),l=function(e,t){if(!e)return;let i=ih(t).slice(5).replace(/-(.)/g,(e,t)=>t.toUpperCase()),n=e.dataset;for(let e in n)if(e===i)return n[e]}(a,s);if(!a||!l)return;let u=function(e,t){let i=e.getAttribute(function(e){let t=ih(e);return t.endsWith("-name")?`${t.slice(0,-5)}-timeout`:`${t}-timeout`}(t));return null===i?void 0:Number(i)}(a,s);n.startUserAction(l,{},{triggerName:e.type,initialActivityTimeout:u})},processUserActionStarted:function(e,i){let n=im(i,o,t);new ix(e,s.debug,n).attach()}}}(eI,e=>this.logWarn(e));this._processUserEvent=e,this._processKeydown=t=>{[" ","Enter"].includes(t.key)&&e(t)},window.addEventListener("pointerdown",this._processUserEvent),window.addEventListener("keydown",this._processKeydown),this._userActionSub=iA.subscribe(({type:e,userAction:i,initialActivityTimeout:n})=>{"user_action_start"===e&&t(i,n)})}destroy(){var e;this._processUserEvent&&window.removeEventListener("pointerdown",this._processUserEvent),this._processKeydown&&window.removeEventListener("keydown",this._processKeydown),null==(e=this._userActionSub)||e.unsubscribe()}},iP=class extends ev{constructor(){super(),this.name="@grafana/faro-web-sdk:instrumentation-csp",this.version=eg,this.boundSecuritypolicyviolationHandler=this.securitypolicyviolationHandler.bind(this)}initialize(){document.addEventListener("securitypolicyviolation",this.boundSecuritypolicyviolationHandler)}destroy(){document.removeEventListener("securitypolicyviolation",this.boundSecuritypolicyviolationHandler)}securitypolicyviolationHandler(e){let t={blockedURI:e.blockedURI,columnNumber:e.columnNumber,dis
5position:e.disposition,documentURI:e.documentURI,effectiveDirective:e.effectiveDirective,lineNumber:e.lineNumber,originalPolicy:e.originalPolicy,referrer:e.referrer,sample:e.sample,sourceFile:e.sourceFile,statusCode:e.statusCode,violatedDirective:e.violatedDirective};this.api.pushEvent("securitypolicyviolation",eX(t))}},iC=class extends e6{constructor(e,t){var i,n,r,s;super(),this._tracking=!1,this.eventsObservable=e,this._options={inactivityMs:null!=(i=null==t?void 0:t.inactivityMs)?i:100,drainTimeoutMs:null!=(n=null==t?void 0:t.drainTimeoutMs)?n:1e4,isOperationStart:null!=(r=null==t?void 0:t.isOperationStart)?r:()=>void 0,isOperationEnd:null!=(s=null==t?void 0:t.isOperationEnd)?s:()=>void 0},this._initialize()}_initialize(){this.eventsObservable.filter(()=>this._tracking).subscribe(e=>{var t,i,n;this._lastEventTime=eq(),null==(t=this._currentEvents)||t.push(e);let r=this._options.isOperationStart(e);r&&(null==(i=this._activeOperations)||i.set(r,!0));let s=this._options.isOperationEnd(e);s&&(null==(n=this._activeOperations)||n.delete(s)),this._scheduleInactivityCheck()})}startTracking(){this._tracking||(this._tracking=!0,this._startTime=eq(),this._lastEventTime=this._startTime,this.notify({message:"tracking-started"}),this._currentEvents=[],this._activeOperations=new Map,this._scheduleInactivityCheck())}stopTracking(){let e;this._tracking=!1,this._clearTimer(this._inactivityTid),this._clearTimer(this._drainTid),e=this.hasActiveOperations()?eq()-this._startTime:this._lastEventTime?this._lastEventTime-this._startTime:0,this.notify({message:"tracking-ended",events:this._currentEvents,duration:e})}
5_scheduleInactivityCheck(){this._inactivityTid=iL(this._inactivityTid,()=>{this.hasActiveOperations()?this._startDrainTimeout():this.stopTracking()},this._options.inactivityMs)}_startDrainTimeout(){this._drainTid=iL(this._drainTid,()=>{this.stopTracking()},this._options.drainTimeoutMs)}hasActiveOperations(){return!!this._activeOperations&&this._activeOperations.size>0}_clearTimer(e){e&&clearTimeout(e)}};function iL(e,t,i){return e&&clearTimeout(e),e=setTimeout(()=>{t()},i)}let iN=new Set,iU=new Map,ij=!1;var iD=class extends ev{constructor(...e){super(...e),this.name="@grafana/faro-web-sdk:instrumentation-navigation",this.version=eg}initialize(){var e;let t=iS(),i=ib(),n=function(){function e(e,t){let i=null!=t?t:location.href;i!==S&&(w.notify({type:"url-change",from:S,to:i,trigger:e}),S=i)}if(w||(w=new e6,S=location.href),!ij)if("navigation"in window&&"NavigateEvent"in window){I=t=>{try{let i=null==t?void 0:t.destination;(null==i?void 0:i.sameDocument)&&"string"==typeof i.url&&e("navigate",i.url)}catch(e){}},window.navigation.addEventListener("navigate",I);let t=window.NavigateEvent;t&&t.prototype&&"function"==typeof t.prototype.intercept&&(_||(_=t.prototype.intercept),t.prototype.intercept=function(t){try{let t=!!(null===this||void 0===this?void 0:this.canIntercept),i=null===this||void 0===this?void 0:this.destination;t&&i&&!1===i.sameDocument&&"string"==typeof i.url&&e("navigate-intercept",i.url)}catch(e){}return _.call(this,t)}),ij=!0}else T||(T=window.history.pushState),window.history.pushState=function(...t){let i=T.apply(window.history,t);return e("pushState"),i},k||(k=window.history.replaceState),window.history.replaceState=function(...t){let i=k.apply(window.history,t);return e("replaceState"),i},x=()=>e("popstate"),E=()=>e("hashchange"),window.addEventListener("popstate",x),window.addEventListener("hashchange",E),ij=!0;return w}(),r=(e=["pointerdown","keydown"],y||(y=new e6),e.forEach(e=>{if(!iN.has(e)){let t=()=>{y.notify({type:"interaction",name:e})};window.addEventListener(e,t),iN.add(e),iU.set(e,t)}}),y),s=new iC(new e6().merge(t,i,n),{inactivityMs:100,drainTimeoutMs:1e4,isOperationStart:e=>e.type===e2?e.request.requestId:void 0,isOperationEnd:e=>e.type===e3?e.request.requestId:void 0});s.filter(e=>"tracking-ended"===e.message).subscribe(e=>{var t,i,n;if((null==(t=e.events)?void 0:t.some(e=>"url-change"===e.type))&&(null==(i=e.events)?void 0:i.some(e=>"dom-mutation"===e.type))){let t=null==(n=e.events)?void 0:n.find(e=>"url-change"===e.type);eI.api.pushEvent("faro.navigation",{fromUrl:null==t?void 0:t.from,toUrl:null==t?void 0:t.to,sameDocument:String(!0),duration:e.duration})}}),r.subscribe(()=>{s.startTracking()})}};function iR(e={}){let t=[new iO,new tm,new t7,new e1,new tg,new iD];return!1!==e.enablePerformanceInstrumentation&&t.unshift(new ic),!1!==e.enableContentSecurityPolicyInstrumentation&&t.push(new iP),!1!==e.captureConsole&&t.push(new tp),t}function iq(e){return{frames:tl(e)}}var iz=i(10473);function iB(){let e="undefined"!=typeof navigator?navigator.userAgent:"";return A===e&&M||(M=new iz.UAParser(e).getResult(),A=e),M}let i$=()=>{let{browser:e,os:t,ua:i}=iB(),{name:n,version:r}=e,{name:s,version:o}=t,a=navigator.language,l=i.includes("Mobi"),u=function(){if(n&&r&&"userAgentData"in navigator&&navigator.userAgentData)return navigator.userAgentData.brands}();return{browser:{name:null!=n?n:tv,version:null!=r?r:tv,os:`${null!=s?s:tv} ${null!=o?o:tv}`,userAgent:null!=i?i:tv,language:null!=a?a:tv,mobile:l,brands:null!=u?u:tv,viewportWidth:`${window.innerWidth}`,viewportHeight:`${window.innerHeight}`}}},iF=()=>{let{name:e,version:t}=iB().os;if(!e&&!t)return{};let i={};return e&&(i.name=e),t&&(i.version=t),{os:i}},iH=()=>({sdk:{name:"faro-web",version:eg}}),iV=()=>{let e=window.k6;return{k6:eS({isK6Browser:!0},(null==e?void 0:e.testRunId)&&{testRunId:null==e?void 0:e.testRunId})}};function iW(e,t){if(null==e)return{};var i,n,r=function(e,t){if(null==e)return{};var i={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(t.includes(n))continue;i[n]=e[n]}return i}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(n=0;n<s.length;n++)i=s[n],t.includes(i)||({}).propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}let iK=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), ([0-9]{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ([0-9]{4}) ([0-9]{2}):([0-9]{2}):([0-9]{2}
5) GMT$/,iJ=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), ([0-9]{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-([0-9]{2}) ([0-9]{2}):([0-9]{2}):([0-9]{2}) GMT$/,iG=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (?:(?:([0-9]{2}))|(?: ([0-9]))) ([0-9]{2}):([0-9]{2}):([0-9]{2}) ([0-9]{4})$/,iQ=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],iX=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],iZ=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function iY({weekday:e,day:t,month:i,year:n,hour:r,minute:s,second:o}){if(n<1900||t<1||r>23||s>59||o>60)return;let a=60===o,l=new Date(0);if(l.setUTCFullYear(n,i,t),l.setUTCHours(r,s,a?59:o,0),l.getUTCDay()===e&&l.getUTCDate()===t&&l.getUTCMonth()===i&&l.getUTCFullYear()===n&&l.getUTCHours()===r&&l.getUTCMinutes()===s&&l.getUTCSeconds()===(a?59:o))return l.getTime()+1e3*!!a}var i0=class{constructor(e){this.options=e,this.admitted=0,this.inProgress=0,this.sequence=0,this.nextSendAt=0,this.attemptQueue=[],this.waiting=[],this.unloading=!1}reserve(){var e,t=this;if(this.admitted>=this.options.bufferSize)return;this.admitted++;let i=this.sequence++,n=!1,r=()=>{!n&&(n=!0,this.admitted--)};return{deliver:(e=iu(function*(e){let n,r=t.options.getNow(),s=0;for(;;){var o,a,l;let u=t.options.retry.maxAttempts-s,d=yield t.runAttempt(()=>e(u,t.unloading),s>0);if(s+=d.attemptsMade,"success"===d.kind)return{kind:"success",attempts:s,elapsedTimeMs:t.options.getNow()-r};if(n=d.failure,"terminal"===d.kind||t.unloading)return{kind:"terminal",attempts:s,elapsedTimeMs:t.options.getNow()-r,failure:n};if(s>=t.options.retry.maxAttempts)return{kind:"terminal",attempts:s,elapsedTimeMs:t.options.getNow()-r,failure:n,reason:"retries-exhausted"};if(null!=d.retryAfterMs&&d.retryAfterMs>t.options.retry.maxBackoffMs)return{kind:"terminal",attempts:s,elapsedTimeMs:t.options.getNow()-r,failure:n,reason:"retry-after-too-long"};let c=Math.min(null!=(o=d.retryAfterMs)?o:t.options.retry.initialBackoffMs*Math.pow(t.options.retry.backoffMultiplier,s-1),t.options.retry.maxBackoffMs);if(null==(a=(l=t.options).onRetry)||a.call(l,c,s+1),yield t.waitForTurn(i,c)){let i=t.options.retry.maxAttempts-s,n=yield t.runAttempt(()=>e(i,!0));return s+=n.attemptsMade,{kind:"success"===n.kind?"success":"terminal",attempts:s,elapsedTimeMs:t.options.getNow()-r,failure:"success"===n.kind?void 0:n.failure}}}}),function(t){return e.apply(this,arguments)}),release:r}}flush(){this.unloading=!0,this.nextSendAt=0;let e=this.waiting.splice(0);for(let t of(null!=this.redeliveryTimer&&(clearTimeout(this.redeliveryTimer),this.redeliveryTimer=void 0),null!=this.waitingTimer&&(clearTimeout(this.waitingTimer),this.waitingTimer=void 0),e))t.resolve(!0);this.runNextAttempt()}resume(){this.unloading=!1}runAttempt(e,t=!1){return new Promise((i,n)=>{let r=()=>{this.inProgress++;let t=()=>{this.inProgress--,this.runNextAttempt()};e().then(e=>{t(),i(e)},e=>{t(),n(e)})};this.attemptQueue.push({run:r,isRedelivery:t}),this.runNextAttempt()})}runNextAttempt(){for(null!=this.redeliveryTimer&&(clearTimeout(this.redeliveryTimer),this.redeliveryTimer=void 0);this.inProgress<this.options.concurrency&&this.attemptQueue.length>0;){let e=this.options.getNow(),t=this.attemptQueue.findIndex(({isRedelivery:t})=>this.unloading||!t||e>=this.nextSendAt);if(t<0){this.redeliveryTimer=setTimeout(()=>{this.redeliveryTimer=void 0,this.runNextAttempt()},Math.max(0,this.nextSendAt-e));return}let[i]=this.attemptQueue.splice(t,1);i.isRedelivery&&!this.unloading&&(this.nextSendAt=e+1),i.run()}}waitForTurn(e,t){let i=Math.min(t*(1+.2*this.options.getRandom()),this.options.retry.maxBackoffMs);return new Promise(t=>{this.waiting.push({sequence:e,readyAt:this.options.getNow()+i,resolve:t}),this.waiting.sort((e,t)=>e.readyAt===t.readyAt?e.sequence-t.sequence:e.readyAt-t.readyAt),null!=this.waitingTimer&&(clearTimeout(this.waitingTimer),this.waitingTimer=void 0),this.scheduleNext()})}scheduleNext(){if(null!=this.waitingTimer||0===this.waiting.length)return;let e=this.waiting[0],t=e.readyAt;this.waitingTimer=setTimeout(()=>{this.waitingTimer=void 0;let t=this.waiting.indexOf(e);t>=0&&this.waiting.splice(t,1),e.resolve(!1),this.scheduleNext()},Math.max(0,t-this.options.getNow()))}},i1=class extends em{isBatched(){return!1}getIgnoreUrls(){return[]}};let i2={exception:"exceptions",log:"logs",measurement:"measurements",trace:"traces",event:"events"},i3=["headers"],i6=["keepalive","signal"],i4=new Set([408,425,429,500,502,503,504]),i5=new Set([429,503]),i9=0,i8=0;
5var i7=class extends Error{},ne=class extends i1{constructor(e){var t,i,n,r,s,o,a,l,u,d,c,f,p,h,m,v,g;super(),this.options=e,this.name="@grafana/faro-web-sdk:transport-fetch",this.version=eg,this.pendingCustomSends=0,this.getNow=null!=(t=e.getNow)?t:Date.now,this.requestTimeoutMs=null!=(i=e.requestTimeoutMs)?i:1e4,this.compressionEnabled=null!=(n=e.requestCompression)&&n&&"undefined"!=typeof CompressionStream,e.requestCompression&&!this.compressionEnabled&&this.logWarn("requestCompression is enabled but CompressionStream is not available. Falling back to uncompressed."),this.requestTimeoutMs>0&&"undefined"==typeof AbortController&&this.logWarn("AbortController is unavailable. Requests will be sent without the configured timeout."),this.deliveryQueue=new i0({bufferSize:null!=(r=e.bufferSize)?r:30,concurrency:null!=(s=e.concurrency)?s:5,retry:{maxAttempts:null!=(o=null==(a=e.retry)?void 0:a.maxAttempts)?o:3,initialBackoffMs:null!=(l=null!=(u=null==(d=e.retry)?void 0:d.initialBackoffMs)?u:e.defaultRateLimitBackoffMs)?l:1e3,maxBackoffMs:null!=(c=null==(f=e.retry)?void 0:f.maxBackoffMs)?c:3e4,backoffMultiplier:null!=(p=null==(h=e.retry)?void 0:h.backoffMultiplier)?p:2},getNow:this.getNow,getRandom:null!=(m=e.getRandom)?m:Math.random,onRetry:(e,t)=>{this.logDebug(`Retrying failed request after ${e}ms. Attempt ${t}.`)}}),this.customPromiseBuffer=function(e){let{size:t,concurrency:i}=e,n=[],r=0,s=()=>{if(r<i&&n.length){let{producer:e,resolve:t,reject:i}=n.shift();r++,e().then(e=>{r--,s(),t(e)},e=>{r--,s(),i(e)})}};return{add:e=>{if(n.length+r>=t)throw Error("Task buffer full");return new Promise((t,i)=>{n.push({producer:e,resolve:t,reject:i}),s()})}}}({size:null!=(v=e.bufferSize)?v:30,concurrency:null!=(g=e.concurrency)?g:5}),this.defaultPromiseBuffer={add:e=>{if(this.promiseBuffer!==this.defaultPromiseBuffer||this.promiseBuffer.add!==this.defaultBufferAdd||this.pendingCustomSends>0)return this.customPromiseBuffer.add(e);let t=this.deliveryQueue.reserve();if(!t)throw Error("Task buffer full");return this.runBufferedTask(t,e)}},this.defaultBufferAdd=this.defaultPromiseBuffer.add,this.promiseBuffer=this.defaultPromiseBuffer,"undefined"!=typeof window&&(window.addEventListener("pagehide",()=>this.deliveryQueue.flush()),window.addEventListener("pageshow",e=>{e.persisted&&this.deliveryQueue.resume()}))}send(e){var t=this;return iu(function*(){let i=t.promiseBuffer;if(i===t.defaultPromiseBuffer&&i.add===t.defaultBufferAdd)return void(yield t.deliver(e));t.pendingCustomSends++;try{yield i.add(()=>t.deliver(e))}catch(e){t.logError("Permanent delivery failure",{error:e,attempts:0,elapsedTimeMs:0})}finally{t.pendingCustomSends--}})()}runBufferedTask(e,t){return iu(function*(){let i;try{return yield e.deliver(iu(function*(){return i=yield t(),{kind:"success",attemptsMade:1}})),i}finally{e.release()}})()}deliver(e){var t=this;return iu(function*(){let i=t.deliveryQueue.reserve();if(!i)return void t.logError("Permanent delivery failure",{error:"Reliable delivery queue is full",attempts:0,elapsedTimeMs:0});try{let n=yield t.prepareRequest(e),r=yield i.deliver((e,i)=>t.performAttempt(n,e,i));"terminal"===r.kind&&t.logError("retries-exhausted"===r.reason?"Delivery retries exhausted":"Permanent delivery failure",eS(eS({},r.failure),{},{reason:r.reason,attempts:r.attempts,elapsedTimeMs:r.elapsedTimeMs}))}catch(e){t.logError("Permanent delivery failure",{error:e,attempts:0,elapsedTimeMs:0})}finally{i.release()}})()}getIgnoreUrls(){var e;return[this.options.url].concat(null!=(e=this.config.ignoreUrls)?e:[])}isBatched(){return!0}prepareRequest(e){var t=this;return iu(function*(){var i,n;let r,s=(r={meta:{}},void 0!==e[0]&&(r.meta=e[0].meta),e.forEach(e=>{switch(e.type){case"log":case"event":case"exception":case"measurement":{let t=i2[e.type],i=r[t];r=ep(ep({},r),{},{[t]:void 0===i?[e.payload]:[...i,e.payload]});break}case"trace":r=ep(ep({},r),{},{traces:function(e,t){var i,n;if(void 0===t)return e;if(void 0===e)return{resourceSpans:t};let r=null==(i=e.resourceSpans)?void 0:i[0];if(void 0===r)return e;let s=(null==r?void 0:r.scopeSpans)||[],o=(null==t||null==(n=t[0])?void 0:n.scopeSpans)||[];return ep(ep({},e),{},{resourceSpans:[ep(ep({},r),{},{scopeSpans:[...s,...o]})]})}(r.traces,e.payload.resourceSpans)})}}),r),o=null==(i=s.meta.session)?void 0:i.id,a=JSON.stringify(s),l=null!=(n=t.options.requestOptions)?n:{},{headers:u={}}=l,d=iW(l,i3),{keepalive:c,signal:f}=d,p=iW(d,i6),h={};for(let[e,t]of Object.entries(u))h[e]="function"==typeof t?yield t():t;let m=a,v="undefined"==typeof TextEncoder?a.length:new TextEncoder().encode(a).byteLength,g={};return t.compressionEnabled&&(v=(m=yield t.compress(a)).size,g["Content-Encoding"]="gzip"),{bodySize:v,sessionId:o,requestInit:eS({method:"POST",headers:eS(eS(eS(eS(eS({"Content-Type":"application/json"},g),h),t.options.apiKey?{"x-api-key":t.options.apiKey}:{}),o?{"x-faro-session-id":o}:{}),{},{"Idempotency-Key":e$(20)}),body:m},p)}})()}performAttempt(e,t,i){var n=this;return iu(function*(){var r,s;let o=null==(r=n.options.requestOptions)?void 0:r.signal;if(null==o?void 0:o.aborted)return{kind:"terminal",failure:{error:o.reason},attemptsMade:0};let a=0;try{let r=yield n.fetchWithKeepaliveFallback(e.requestInit,e.bodySize,!!i||(null==(s=n.options.requestOptions)?void 0:s.keepalive),t,()=>a++);if(n.handleResponse(r,e.sessionId),r.status>=200&&r.status<300)return{kind:"success",attemptsMade:a};let o={status:r.status};if(!i4.has(r.status)||i)return{kind:"terminal",failure:o,attemptsMade:a};return{kind:"retry",failure:o,attemptsMade:a,retryAfterMs:i5.has(r.status)?n.getRetryAfterDelayMs(r):void 0}}catch(t){let e={error:t};if((null==o?void 0:o.aborted)||!n.isFetchNetworkError(t)||i)return{kind:"terminal",failure:e,attemptsMade:a};return{kind:"retry",failure:e,attemptsMade:a}}})()}fetchWithKeepaliveFallback(e,t,i,n,r){var s=this;return iu(function*(){let o=s.getNow(),a=s.reserveKeepalive(t,i);try{return yield s.fetchWithTimeout(eS(eS({},e),{},{keepalive:a.keepalive}),s.requestTimeoutMs,r)}catch(t){var l;if(a.keepalive&&n>1&&s.isFetchNetworkError(t)&&!(t instanceof i7)&&!(null==(l=s.options.requestOptions)||null==(l=l.signal)?void 0:l.aborted)){s.logDebug("Retrying failed keepalive request with keepalive disabled.");let t=s.requestTimeoutMs-(s.getNow()-o);return s.fetchWithTimeout(eS(eS({},e),{},{keepalive:!1}),t,r)}throw t}finally{a.release()}})()}fetchWithTimeout(e,t,i){var n=this;return iu(function*(){var r;let s=null==(r=n.options.requestOptions)?void 0:r.signal;if(n.requestTimeoutMs<=0||"undefined"==typeof AbortController)return i(),fetch(n.options.url,eS(eS({},e),{},{signal:s}));if(t<=0)throw new i7("Request timed out");let o=new AbortController,a=()=>o.abort(null==s?void 0:s.reason);null==s||s.addEventListener("abort",a,{once:!0});let l=!1,u=setTimeout(()=>{l=!0,o.abort()},t);try{return i(),yield fetch(n.options.url,eS(eS({},e),{},{signal:o.signal}))}catch(e){if(l&&!(null==s?void 0:s.aborted))throw new i7("Request timed out");throw e}finally{clearTimeout(u),null==s||s.removeEventListener("abort",a)}})()}getRetryAfterDelayMs(e){let t=e.headers.get("Retry-After");if(!t)return;if(/^\d+$/.test(t)){let e=1e3*Number(t);return Number.isFinite(e)?e:1/0}let i=this.getNow(),n=function(e,t){let i=iK.exec(e);if(i){let[,e,t,n,r,s,o,a]=i;return iY({weekday:iQ.indexOf(e),day:Number(t),month:iZ.indexOf(n),year:Number(r),hour:Number(s),minute:Number(o),second:Number(a)})}let n=iJ.exec(e);if(n){let[,e,i,r,s,o,a,l]=n,u=new Date(t);if(Number.isNaN(u.getTime()))return;let d=u.getUTCFullYear(),c=100*Math.floor(d/100)+Number(s);c<d&&(c+=100);let f=iZ.indexOf(r),p={month:f,day:Number(i),hour:Number(o),minute:Number(a),second:Number(l),millisecond:0},h={month:u.getUTCMonth(),day:u.getUTCDate(),hour:u.getUTCHours(),minute:u.getUTCMinutes(),second:u.getUTCSeconds(),millisecond:u.getUTCMilliseconds()};return(c>d+50||c===d+50&&(p.month-h.month||p.day-h.day||p.hour-h.hour||p.minute-h.minute||p.second-h.second||p.millisecond-h.millisecond)>0)&&(c-=100),iY({weekday:iX.indexOf(e),day:Number(i),month:f,year:c,hour:Number(o),minute:Number(a),second:Number(l)})}let r=iG.exec(e);if(!r)return;let[,s,o,a,l,u,d,c,f]=r;return iY({weekday:iQ.indexOf(s),day:Number(null!=a?a:l),month:iZ.indexOf(o),year:Number(f),hour:Number(u),minute:Number(d),second:Number(c)})}(t,i);return null==n?void 0:Math.max(0,n-i)}reserveKeepalive(e,t){if(!1===t||e>6e4||i9+e>6e4||i8>=9)return{keepalive:!1,release:eu};i9+=e,i8++;let i=!1;return{keepalive:!0,release:()=>{!i&&(i=!0,i9-=e,i8--)}}}handleResponse(e,t){202===e.status&&"invalid"===e.headers.get("X-Faro-Session-Status")&&this.extendFaroSession(this.config,this.logDebug.bind(this),t),e.text().catch(eu)}isFetchNetworkError(e){return e instanceof TypeError||e instanceof i7||e instanceof DOMException&&"AbortError"===e.name}compress(e){return iu(function*(){let t=new ReadableStream({start(t){t.enqueue(new TextEncoder().encode(e)),t.close()}}).pipeThrough(new CompressionStream("gzip")),i=[],n=t.getReader();for(;;){let{done:e,value:t}=yield n.read();if(e)return new Blob(i);i.push(t)}})()}extendFaroSession(e,t,i){var n,r;let s=e.sessionTracking;if(!(null==s?void 0:s.enabled))return void t("Session expired.");let{fetchUserSession:o,storeUserSession:a}=e0(s),l=null==(n=this.metas.value.session)?void 0:n.id,u=null==(r=o())?void 0:r.sessionId;if(!i||i!==l||i!==u)return void t("Ignoring stale or cross-tab session-invalid response; request session no longer current.");eW({fetchUserSession:o,storeUserSession:a})({forceSessionExtend:!0}),t("Session expired; created new session.")}};function nt(e=eh,t=1){return t>0&&(ed.error=t>=1?function(...t){e.error(`${ed.prefix} 6`,...t)}:eu,ed.warn=t>=2?function(...t){e.warn(`${ed.prefix} 7`,...t)}:eu,ed.info=t>=3?function(...t){e.info(`${ed.prefix} 8`,...t)}:eu,ed.debug=t>=4?function(...t){e.debug(`${ed.prefix} 9`,...t)}:eu),ed}let ni={enabled:!0,sendTimeout:250,itemLimit:50},nn=["dedupe","eventDomain","globalObjectKey","instrumentations","internalLoggerLevel","isolate","logArg
9sSerializer","metas","paused","preventGlobalExposure","unpatchedConsole","url","experimental"],nr=new WeakSet;function ns(e){return nr.add(e),e}function no(e,t){if(e.capture)return ns(e.capture(t));let i=ns(e.value);return null==t||t(),i}var na=class{constructor(e,t){var i,n;this.signalBuffer=[],this.itemLimit=null!=(i=null==t?void 0:t.itemLimit)?i:50,this.sendTimeout=null!=(n=null==t?void 0:t.sendTimeout)?n:250,this.paused=(null==t?void 0:t.paused)||!1,this.sendFn=e,this.paused||this.start(),"undefined"!=typeof document&&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=setInterval(()=>this.flush(),this.sendTimeout))}pause(){this.paused=!0,clearInterval(this.flushInterval)}groupItems(e){let t=new Map;return e.forEach(e=>{let i=JSON.stringify(e.meta),n=t.get(i);n=void 0===n?[e]:[...n,e],t.set(i,n)}),Array.from(t.values())}flush(){if(this.paused||0===this.signalBuffer.length)return;let e=this.signalBuffer;this.signalBuffer=[];try{this.groupItems(e).forEach(this.sendFn)}catch(t){throw this.signalBuffer=[...e,...this.signalBuffer],this.trimBufferToLimit(),t}}trimBufferToLimit(){this.signalBuffer.length>this.itemLimit&&(this.signalBuffer=this.signalBuffer.slice(0,this.itemLimit))}};let nl=eh;function nu(e){let t=function(e){var t,i,n,r,s,o;let a=[],l=nt(e.unpatchedConsole,e.internalLoggerLevel);e.transports?((e.url||e.apiKey)&&l.error('if "transports" is defined, "url" and "apiKey" should not be defined'),a.push(...e.transports)):e.url?a.push(new ne({url:e.url,apiKey:e.apiKey,requestCompression:e.requestCompression})):l.error('either "url" or "transports" must be defined');let{dedupe:u=!0,eventDomain:d="browser",globalObjectKey:c="faro",instrumentations:f=iR(),internalLoggerLevel:p=1,isolate:h=!1,logArgsSerializer:m=tf,metas:v=function(e){var t,i,n;let{page:r,generatePageId:s}=null!=(t=null==e?void 0:e.pageTracking)?t:{},o=[i$,iF,function({generatePageId:e,initialPageMeta:t}={}){return()=>{let i=location.href;return H(e)&&O!==i&&(O=i,P=e(location)),{page:eS(eS({url:i},P?{id:P}:{}),t)}}}({generatePageId:s,initialPageMeta:r}),...null!=(i=e.metas)?i:[],iH];return F(null==(n=window)?void 0:n.k6)?[...o,iV]:o}(e),paused:g=!1,preventGlobalExposure:b=!1,unpatchedConsole:y=eh,url:w,experimental:S}=e,T=iW(e,nn),k=null!=(t=null==S?void 0:S.trackNavigation)&&t,x={dataAttributeName:ih(null!=(i=null==(n=e.userActionsInstrumentation)?void 0:n.dataAttributeName)?i:ip),excludeItem:null==(r=e.userActionsInstrumentation)?void 0:r.excludeItem,initialActivityTimeout:im(null==(s=e.userActionsInstrumentation)?void 0:s.initialActivityTimeout,100,e=>l.warn(e))};return eS(eS({},T),{},{batching:eS(eS({},ni),e.batching),dedupe:u,globalObjectKey:c,instrumentations:function(e,{experimental:t}){var i;let n=null!=(i=null==t?void 0:t.trackNavigation)&&i;return e.filter(e=>"@grafana/faro-web-sdk:instrumentation-navigation"!==e.name||!!n)}(f,e),internalLoggerLevel:p,isolate:h,logArgsSerializer:m,metas:v,parseStacktrace:iq,paused:g,preventGlobalExposure:b,transports:a,unpatchedConsole:y,eventDomain:d,ignoreUrls:[...null!=(o=e.ignoreUrls)?o:[],...w?[w]:[],/\/collect(?:\/[\w]*)?$/],sessionTracking:eS(eS(eS({},eD),e.sessionTracking),function({trackGeolocation:e,sessionTracking:t}){var i;let n={};return(R(e,"boolean")&&(n.geoLocationTrackingEnabled=e),G(n))?{}:{session:eS(eS({},null!=(i=null==t?void 0:t.session)?i:{}),{},{overrides:n})}}({trackGeolocation:e.trackGeolocation,sessionTracking:e.sessionTracking})),userActionsInstrumentation:x,experimental:{trackNavigation:k}})}(e);if(t)return function(e){var t,i;let n=nl=null!=(t=e.unpatchedConsole)?t:nl,r=nt(n,e.internalLoggerLevel);if(eE in en&&!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 s=function(e,t,i){let n,r=[],s=[],o=[],a=0,l=0,u=()=>r.reduce((e,t)=>
9Object.assign(e,H(t)?t():t),{}),d=()=>{if(s.length){let e=u();s.forEach(t=>t(e))}};return{add:(...e)=>{t.debug("Adding metas\n",e),r.push(...e),d()},remove:(...e)=>{t.debug("Removing metas\n",e),r=r.filter(t=>!e.includes(t)),d()},addListener:e=>{t.debug("Adding metas listener\n",e),s.push(e)},removeListener:e=>{t.debug("Removing metas listener\n",e),s=s.filter(t=>t!==e)},capture:e=>{var t;let i=void 0!==n,r=null!=(t=n)?t:o;i||(n=r,a=0,l=r.length);try{for(;a<l;){let e=r[a++];null==e||e()}let t=ns(u());return null==e||e(),t}finally{i||(n=void 0)}},addCaptureListener:e=>{o.push(e)},removeCaptureListener:e=>{o=o.filter(t=>t!==e)},get value(){return u()}}}(0,r,0),o=function(e,t,i,n){var r;let s;t.debug("Initializing transports");let o=[],a=[],l=e=>{let t=e;for(let e of a){let n=t.map(e).filter(Boolean);if(0===n.length)return[];t=function(e,t){if(t.preserveOriginalError)for(let t of e)"exception"===t.type&&delete t.payload.originalError;return e}(n,i)}return t};return(null==(r=i.batching)?void 0:r.enabled)&&(s=new na(e=>{let i=l(e);if(0!==i.length)for(let e of o)t.debug(`Transporting item using ${e.name} 10`,i),e.isBatched()&&e.send(i)},{sendTimeout:i.batching.sendTimeout,itemLimit:i.batching.itemLimit,paused:i.paused})),{add:(...r)=>{t.debug("Adding transports"),r.forEach(r=>{if(t.debug(`Adding "${r.name}" transport`),o.some(e=>e===r))return void t.warn(`Transport ${r.name} is already added`);r.unpatchedConsole=e,r.internalLogger=t,r.config=i,r.metas=n,o.push(r)})},addBeforeSendHooks:(...e)=>{t.debug("Adding beforeSendHooks\n",a),e.forEach(e=>{e&&a.push(e)})},getBeforeSendHooks:()=>[...a],execute:e=>{var r,a,u,d,c;if(!i.paused&&ek(n).shouldCapture()){if(c=e.meta,!nr.has(c)){let t=null==(a=n.value.session)?void 0:a.id,r=no(n);if(i.paused)return;let s=ep({},e.meta);(null==(u=s.session)?void 0:u.id)===t&&(null==(d=r.session)?void 0:d.id)!==t&&(void 0===r.session?delete s.session:s.session=r.session),e=ep(ep({},e),{},{meta:ns(s)})}(null==(r=i.batching)?void 0:r.enabled)&&(null==s||s.addItem(e)),(e=>{var n,r;if((null==(n=i.batching)?void 0:n.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} 11`,s),e.isBatched()?(null==(r=i.batching)?void 0:r.enabled)||e.send([s]):e.send(s)})(e)}},isPaused:()=>i.paused,pause:()=>{t.debug("Pausing transports"),null==s||s.pause(),i.paused=!0},remove:(...e)=>{t.debug("Removing transports"),e.forEach(e=>{t.debug(`Removing "${e.name}" transport`);let i=o.indexOf(e);if(-1===i)return void t.warn(`Transport "${e.name}" is not added`);o.splice(i,1)})},removeBeforeSendHooks:(...e)=>{t.debug("Removing beforeSendHooks"),a=a.filter(t=>!e.includes(t))},get transports(){return[...o]},unpause:()=>{t.debug("Unpausing transports"),null==s||s.start(),i.paused=!1}}}(n,r,e,s),a=function(e,t,i,n,r){let s;t.debug("Initializing API");let o=null,a=function({transports:e,internalLogger:t,config:i,pushEvent:n}){var r;let s,o=null==(r=i.userActionsInstrumentation)?void 0:r.excludeItem,a=()=>s;return{startUserAction:(i,r,l)=>{if(void 0!==a())return void t.error("Attempted to create a new user action while one is already running. This is not possible.");{let t=new i_({name:i,transports:e,attributes:r,trigger:(null==l?void 0:l.triggerName)||"faroApiCall",importance:(null==l?void 0:l.importance)||iE.Normal,trackUserActionsExcludeItem:o,pushEvent:n});return t.filter(e=>[3,2].includes(e)).first().subscribe(()=>{s=void 0}),iA.notify({type:"user_action_start",userAction:t,initialActivityTimeout:null==l?void 0:l.initialActivityTimeout}),s=t}},getActiveUserAction:a}}({transports:r,config:i,internalLogger:t,pushEvent:(e,i,n,r)=>{o?o(e,i,n,r):t.warn("pushEventImpl is not initialized. Event dropped:",{name:e,attributes:i,domain:n,options:r})}}),l=(t.debug("Initializing traces API"),{getOTEL:()=>s,getTraceContext:()=>{let e=null==s?void 0:s.trace.getSpanContext(s.context.active());return e?{trace_id:e.traceId,span_id:e.spanId}:void 0},initOTEL:(e,i)=>{t.debug("Initializing OpenTelemetry"),s={trace:e,context:i}},isOTELInitialized:()=>!!s,pushTraces:e=>{try{if(!ek(n).shouldCapture())return;let i={type:"trace",payload:e,meta:no(n)};t.debug("Pushing trace\n",i),r.execute(i)}catch(e){t.error("Error pushing trace\n",e)}}}),u={unpatchedConsole:e,internalLogger:t,userActionsApi:a,config:i,metas:n,transports:r,tracesApi:l},d=function({internalLogger:e,config:t,metas:i,transports:n,tracesApi:r,userActionsApi:s}){let o=null;return{pushEvent:(a,l,u,{skipDedupe:d,spanContext:c,timestampOverwriteMs:f,customPayloadTransformer:p=e=>e}={})=>{try{if(!ek(i).shouldCapture())return;let h=eX(l),m=p({name:a,domain:null!=u?u:t.eventDomain,attributes:G(h)?void 0:h,timestamp:f?eB(f):ez(),trace:c?{trace_id:c.traceId,span_id:c.spanId}:r.getTraceContext()}),v={name:m.name,attributes:m.attributes,domain:m.domain};if(!d&&t.dedupe&&!B(o)&&eF(v,o))return void e.debug("Skipping event push because it is the same as the last one\n",m);let g=o,b=no(i);if(o!==g&&!d&&t.dedupe&&eF(v,o))return;o=v;let y={meta:b,payload:m,type:"event"};e.debug("Pushing event\n",y),iM(s.getActiveUserAction(),y)||n.execute(y)}catch(t){e.error("Error pushing event",t)}}}}(u);return o=d.pushEvent,ep(ep(ep(ep(ep(ep(ep({},l),function({internalLogger:e,config:t,metas:i,transports:n,tracesApi:r,userActionsApi:s}){var o;e.debug("Initializing exceptions API");let a=null;C=null!=(o=t.parseStacktrace)?o:C;let l=t=>{e.debug("Changing stacktrace parser"),C=null!=t?t:C},{ignoreErrors:u=[],preserveOriginalError:d}=t;return l(t.parseStacktrace),{changeStacktraceParser:l,getStacktraceParser:()=>C,pushError:(o,{skipDedupe:l,stackFrames:c,type:f,context:p,spanContext:h,timestampOverwriteMs:m,originalError:v,fingerprint:g,fatal:b}={})=>
11{if(!function(e,t){var i;let{message:n,name:r,stack:s}=t;return i=n+" "+r+" "+s,e.some(e=>$(e)?i.includes(e):!!i.match(e))}(u,null!=v?v:o))try{var y,w,S;let u;if(!ek(i).shouldCapture())return;let T=eX(ep(ep({},(u=(S=null!=v?v:o).cause,J(u)?u=S.cause.toString():null!==u&&(F(S.cause)||V(S.cause))?u=eQ(S.cause):null!=u&&(u=S.cause.toString()),null==u?{}:{cause:u})),null!=p?p:{})),k=ep(ep(ep(ep({type:f||o.name||"Error",value:o.message,timestamp:m?eB(m):ez(),trace:h?{trace_id:h.traceId,span_id:h.spanId}:r.getTraceContext()},G(T)?{}:{context:T}),d?{originalError:v}:{}),g?{fingerprint:g}:{}),void 0!==b?{fatal:b}:{});(null==(c=null!=(y=c)?y:o.stack?null==C?void 0:C(o).frames:void 0)?void 0:c.length)&&(k.stacktrace={frames:c});let x={type:k.type,value:k.value,stacktrace:k.stacktrace,context:k.context,fingerprint:k.fingerprint,fatal:null!=(w=k.fatal)&&w};if(!l&&t.dedupe&&!B(a)&&eF(x,a))return void e.debug("Skipping error push because it is the same as the last one\n",k);let E=a,I=no(i);if(a!==E&&!l&&t.dedupe&&eF(x,a))return;a=x;let _={meta:I,payload:k,type:"exception"};e.debug("Pushing exception\n",_),iM(s.getActiveUserAction(),_)||n.execute(_)}catch(t){e.error("Error pushing event",t)}}}}(u)),function({internalLogger:e,metas:t}){let i,n,r,s;e.debug("Initializing meta API");let o=e=>{n&&t.remove(n),n={user:e},t.add(n)},a=(e,n)=>{var r;let s=null==n?void 0:n.overrides,o=s?{overrides:ep(ep({},null==i||null==(r=i.session)?void 0:r.overrides),s)}:{};i&&t.remove(i),i={session:ep(ep({},G(e)?void 0:e),o)},t.add(i)},l=(e,i)=>{ek(t).notifySessionUpdate({type:"replace",session:e,overrides:null==i?void 0:i.overrides}),a(e,i)},u=()=>t.value.session,d=()=>t.value.page;return{setUser:o,resetUser:o,setSession:l,resetSession:l,getSession:u,setView:(e,i)=>{var n;if((null==i?void 0:i.overrides)&&(ek(t).notifySessionUpdate({type:"overrides",overrides:i.overrides}),a(u(),{overrides:i.overrides})),(null==r||null==(n=r.view)?void 0:n.name)===(null==e?void 0:e.name))return;let s=r;r={view:e},t.add(r),s&&t.remove(s)},getView:()=>t.value.view,setPage:e=>{var i;let n=$(e)?ep(ep({},null!=(i=null==s?void 0:s.page)?i:d()),{},{id:e}):e;s&&t.remove(s),s={page:n},t.add(s)},getPage:d}}(u)),function({internalLogger:e,config:t,metas:i,transports:n,tracesApi:r,userActionsApi:s}){var o;e.debug("Initializing logs API");
11let a=null,l=null!=(o=t.logArgsSerializer)?o:tf;return{pushLog:(o,{context:u,level:d,skipDedupe:c,spanContext:f,timestampOverwriteMs:p}={})=>{try{if(!ek(i).shouldCapture())return;let h=eX(u),m={message:l(o),level:null!=d?d:"log",context:G(h)?void 0:h,timestamp:p?eB(p):ez(),trace:f?{trace_id:f.traceId,span_id:f.spanId}:r.getTraceContext()},v={message:m.message,level:m.level,context:m.context};if(!c&&t.dedupe&&!B(a)&&eF(v,a))return void e.debug("Skipping log push because it is the same as the last one\n",m);let g=a,b=no(i);if(a!==g&&!c&&t.dedupe&&eF(v,a))return;a=v;let y={type:"log",payload:m,meta:b};e.debug("Pushing log\n",y),iM(s.getActiveUserAction(),y)||n.execute(y)}catch(t){e.error("Error pushing log\n",t)}}}}(u)),function({internalLogger:e,config:t,metas:i,transports:n,tracesApi:r,userActionsApi:s}){e.debug("Initializing measurements API");let o=null;return{pushMeasurement:(a,{skipDedupe:l,context:u,spanContext:d,timestampOverwriteMs:c}={})=>{try{if(!ek(i).shouldCapture())return;let f=eX(u),p=ep(ep({},a),{},{trace:d?{trace_id:d.traceId,span_id:d.spanId}:r.getTraceContext(),timestamp:c?eB(c):ez(),context:G(f)?void 0:f}),h={type:p.type,values:p.values,context:p.context};if(!l&&t.dedupe&&!B(o)&&eF(h,o))return void e.debug("Skipping measurement push because it is the same as the last one\n",p);let m=o,v=no(i);if(o!==m&&!l&&t.dedupe&&eF(h,o))return;o=h;let g={type:"measurement",payload:p,meta:v};e.debug("Pushing measurement\n",g),iM(s.getActiveUserAction(),g)||n.execute(g)}catch(t){e.error("Error pushing measurement\n",t)}}}}(u)),d),a)}(n,r,e,s,o),l=function(e,t,i,n,r,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=i,a.metas=n,a.transports=r,a.api=s,o.push(a),a.initialize()})},get instrumentations(){return[...o]},remove:(...e)=>{t.debug("Removing instrumentations"),e.forEach(e=>{var i,n;t.debug(`Removing "${e.name}" instrumentation`);let r=o.reduce((t,i,n)=>null===t&&i.name===e.name?n:null,null);if(null===r)return void t.warn(`Instrumentation "${e.name}" is not added`);null==(i=(n=o[r]).destroy)||i.call(n),o.splice(r,1)})}}}(n,r,e,s,o,a),u=(r.debug("Initializing Faro"),(i=eI={api:a,config:e,instrumentations:l,internalLogger:r,metas:s,pause:o.pause,transports:o,unpatchedConsole:n,unpause:o.unpause}).config.isolate?i.internalLogger.debug("Skipping registering internal Faro instance on global object"):(i.internalLogger.debug("Registering internal Faro instance on global object"),Object.defineProperty(en,eE,{configurable:!1,enumerable:!1,writable:!1,value:i})),!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 en)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(en,e.config.globalObjectKey,{configurable:!1,writable:!1,value:e})}}(eI),eI);return!function(e){var t,i;let n=e.config.app.name,r=n?null==en?void 0:en[`__faroGitHash_${n}`]:void 0,s={sdk:{version:eg,name:"faro"},app:ep({bundleId:n&&function(e){let t=`__faroBundleId_${e}`,i=null==en?void 0:en[t];if("string"==typeof i&&""!==i)return i;let n="undefined"!=typeof window?window[t]:void 0;if("string"==typeof n&&""!==n)return n}(n)},void 0!==r?{gitHash:r}:{})},o=null==(t=e.config.sessionTracking)?void 0:t.session;o&&e.api.setSession(o),e.config.app&&(s.app=ep(ep({},e.config.app),s.app)),e.config.user&&(s.user=e.config.user),e.config.view&&(s.view=e.config.view),e.metas.add(s,...null!=(i=e.config.metas)?i:[])}(u),u.transports.add(...u.config.transports),u.transports.addBeforeSendHooks(u.config.beforeSend),u.instrumentations.add(...u.config.instrumentations),u}(t)}},48420:(e,t)=>{"use strict";var i="function"==typeof Symbol&&Symbol.for,n=i?Symbol.for("react.element"):60103,r=i?Symbol.for("react.portal"):60106,s=i?Symbol.for("react.fragment"):60107,o=i?Symbol.for("react.strict_mode"):60108,a=i?Symbol.for("react.profiler"):60114,l=i?Symbol.for("react.provider"):60109,u=i?Symbol.for("react.context"):60110,d=i?Symbol.for("react.async_mode"):60111,c=i?Symbol.for("react.concurrent_mode"):60111,f=i?Symbol.for("react.forward_ref"):60112,p=i?Symbol.for("react.suspense"):60113,h=i?Symbol.for("react.suspense_list"):60120,m=i?Symbol.for("react.memo"):60115,v=i?Symbol.for("react.lazy"):60116,g=i?Symbol.for("react.block"):60121,b=i?Symbol.for("react.fundamental"):60117,y=i?Symbol.for("react.responder"):60118,w=i?Symbol.for("react.scope"):60119;function S(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case d:case c:case s:case a:case o:case p:return e;default:switch(e=e&&e.$$typeof){case u:case f:case v:case m:case l:return e;default:return t}}case r:return t}}}function T(e){return S(e)===c}t.AsyncMode=d,t.ConcurrentMode=c,t.ContextConsumer=u,t.ContextProvider=l,t.Element=n,t.ForwardRef=f,t.Fragment=s,t.Lazy=v,t.Memo=m,t.Portal=r,t.Profiler=a,t.StrictMode=o,t.Suspense=p,t.isAsyncMode=function(e){return T(e)||S(e)===d},t.isConcurrentMode=T,t.isContextConsumer=function(e){return S(e)===u},t.isContextProvider=function(e){return S(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return S(e)===f},t.isFragment=function(e){return S(e)===s},t.isLazy=function(e){return S(e)===v},t.isMemo=function(e){return S(e)===m},t.isPortal=function(e){return S(e)===r},t.isProfiler=function(e){return S(e)===a},t.isStrictMode=function(e){return S(e)===o},t.isSuspense=function(e){return S(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===s||e===c||e===a||e===o||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===m||e.$$typeof===l||e.$$typeof===u||e.$$typeof===f||e.$$typeof===b||e.$$typeof===y||e.$$typeof===w||e.$$typeof===g)},t.typeOf=S},55437:()=>{},72965:(e,t,i)=>{"use strict";i.d(t,{default:()=>r.a});var n=i(1705),r=i.n(n)},82480:(e,t,i)=>{"use strict";var n=i(33408),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},s={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function l(e){return n.isMemo(e)?o:a[e.$$typeof]||r}a[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[n.Memo]=o;var u=Object.defineProperty,d=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,i,n){if("string"!=typeof i){if(h){var r=p(i);r&&r!==h&&e(t,r,n)}var o=d(i);
11c&&(o=o.concat(c(i)));for(var a=l(t),m=l(i),v=0;v<o.length;++v){var g=o[v];if(!s[g]&&!(n&&n[g])&&!(m&&m[g])&&!(a&&a[g])){var b=f(i,g);try{u(t,g,b)}catch(e){}}}}return t}}}]); 12//# sourceMappingURL=9854-5f89aaaadd5ecb7b.js.map
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.