vendor: 5,542 bytes, line 1
1(()=>{var ah=Object.create;var Ko=Object.defineProperty;var ch=Object.getOwnPropertyDescriptor;var uh=Object.getOwnPropertyNames;var Eh=Object.getPrototypeOf,_h=Object.prototype.hasOwnProperty;var g=(e,t)=>()=>(e&&(t=e(e=0)),t);var P=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Uu=(e,t)=>{for(var r in t)Ko(e,r,{get:t[r],enumerable:!0})},wu=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of uh(t))!_h.call(e,o)&&o!==r&&Ko(e,o,{get:()=>t[o],enumerable:!(n=ch(t,o))||n.enumerable});return e};var qe=(e,t,r)=>(r=e!=null?ah(Eh(e)):{},wu(t||!e||!e.__esModule?Ko(r,"default",{value:e,enumerable:!0}):r,e)),Be=e=>wu(Ko({},"__esModule",{value:!0}),e);var eE=P((Pn,Jo)=>{(function(e,t){"use strict";var r="1.0.40",n="",o="?",i="function",s="undefined",a="object",c="string",E="major",u="model",_="name",p="type",T="vendor",l="version",d="architecture",m="console",f="mobile",A="tablet",L="smarttv",x="wearable",b="embedded",R=500,v="Amazon",Q="Apple",he="ASUS",hu="BlackBerry",Bo="Browser",Go="Chrome",nh="Edge",Ho="Firefox",rn="Google",Nu="Huawei",Ks="LG",Ws="Microsoft",Pu="Motorola",nn="Opera",on="Samsung",Mu="Sharp",Fo="Sony",zs="Xiaomi",qs="Zebra",bu="Facebook",Iu="Chromium OS",Cu="Mac OS",vu=" Browser",oh=function(C,D){var N={};for(var G in C)D[G]&&D[G].length%2===0?N[G]=D[G].concat(C[G]):N[G]=C[G];return N},ko=function(C){for(var D={},N=0;N<C.length;N++)D[C[N].toUpperCase()]=C[N];return D},xu=function(C,D){return typeof C===c?mr(D).indexOf(mr(C))!==-1:!1},mr=function(C){return C.toLowerCase()},ih=function(C){return typeof C===c?C.replace(/[^\d\.]/g,n).split(".")[0]:t},Xs=function(C,D){if(typeof C===c)return C=C.replace(/^\s\s*/,n),typeof D===s?C:C.substring(0,R)},sn=function(C,D){for(var N=0,G,Et,We,w,h,ze;N<D.length&&!h;){var $s=D[N],yu=D[N+1];for(G=Et=0;G<$s.length&&!h&&$s[G];)if(h=$s[G++].exec(C),h)for(We=0;We<yu.length;We++)ze=h[++Et],w=yu[We],typeof w===a&&w.length>0?w.length===2?typeof w[1]==i?this[w[0]]=w[1].call(this,ze):this[w[0]]=w[1]:w.length===3?typeof w[1]===i&&!(w[1].exec&&w[1].test)?this[w[0]]=ze?w[1].call(this,ze,w[2]):t:this[w[0]]=ze?ze.replace(w[1],w[2]):t:w.length===4&&(this[w[0]]=ze?w[3].call(this,ze.replace(w[1],w[2])):t):this[w]=ze||t;N+=2}},Yo=function(C,D){for(var N in D)if(typeof D[N]===a&&D[N].length>0){for(var G=0;G<D[N].length;G++)if(xu(D[N][G],C))return N===o?t:N}else if(xu(D[N],C))return N===o?t:N;return D.hasOwnProperty("*")?D["*"]:C},sh={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},Lu={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"},Du={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[l,[_,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[l,[_,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[_,l],[/opios[\/ ]+([\w\.]+)/i],[l,[_,nn+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[l,[_,nn+" GX"]],[/\bopr\/([\w\.]+)/i],[l,[_,nn]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[l,[_,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[l,[_,"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],[_,l],[/quark(?:pc)?\/([-\w\.]+)/i],[l,[_,"Quark"]],[/\bddg\/([\w\.]+)/i],[l,[_,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[l,[_,"UC"+Bo]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[l,[_,"WeChat"]],[/konqueror\/([\w\.]+)/i],[l,[_,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[l,[_,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[l,[_,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[l,[_,"Smart Lenovo "+Bo]],[/(avast|avg)\/([\w\.]+)/i],[[_,/(.+)/,"$1 Secure "+Bo],l],[/\bfocus\/([\w\.]+)/i],[l,[_,Ho+" Focus"]],[/\bopt\/([\w\.]+)/i],[l,[_,nn+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[l,[_,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[l,[_,"Dolphin"]],[/coast\/([\w\.]+)/i],[l,[_,nn+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[l,[_,"MIUI"+vu]],[/fxios\/([\w\.-]+)/i],[l,[_,Ho]],[/\bqihoobrowser\/?([\w\.]*)/i],[l,[_,"360"]],[/\b(qq)\/([\w\.]+)/i],[[_,/(.+)/,"$1Browser"],l],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[_,/(.+)/,"$1"+vu],l],[/samsungbrowser\/([\w\.]+)/i],[l,[_,on+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[l,[_,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[_,"Sogou Mobile"],l],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[_,l],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[_],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[l,_],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[_,bu],l],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\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],[_,l],[/\bgsa\/([\w\.]+) .*safari\//i],[l,[_,"GSA"]],[/musical_ly(?:.
vendor: 10,804 bytes, line 1
1+app_?version\/|_)([\w\.]+)/i],[l,[_,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[l,[_,Go+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[_,Go+" WebView"],l],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[l,[_,"Android "+Bo]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[_,l],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[l,[_,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[l,_],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[_,[l,Yo,sh]],[/(webkit|khtml)\/([\w\.]+)/i],[_,l],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[_,"Netscape"],l],[/(wolvic|librewolf)\/([\w\.]+)/i],[_,l],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[l,[_,Ho+" 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,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[_,[l,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[_,[l,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[d,"amd64"]],[/(ia32(?=;))/i],[[d,mr]],[/((?:i[346]|x)86)[;\)]/i],[[d,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[d,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[d,"armhf"]],[/windows (ce|mobile); ppc;/i],[[d,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[d,/ower/,n,mr]],[/(sun4\w)[;\)]/i],[[d,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[d,mr]]],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],[u,[T,on],[p,A]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[u,[T,on],[p,f]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[u,[T,Q],[p,f]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[u,[T,Q],[p,A]],[/(macintosh);/i],[u,[T,Q]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[u,[T,Mu],[p,f]],[/(?:honor)([-\w ]+)[;\)]/i],[u,[T,"Honor"],[p,f]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[u,[T,Nu],[p,A]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[u,[T,Nu],[p,f]],[/\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],[[u,/_/g," "],[T,zs],[p,f]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[u,/_/g," "],[T,zs],[p,A]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[u,[T,"OPPO"],[p,f]],[/\b(opd2\d{3}a?) bui/i],[u,[T,"OPPO"],[p,A]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[u,[T,"Vivo"],[p,f]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[u,[T,"Realme"],[p,f]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[u,[T,Pu],[p,f]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[u,[T,Pu],[p,A]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[u,[T,Ks],[p,A]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[u,[T,Ks],[p,f]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[u,[T,"Lenovo"],[p,A]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[u,/_/g," "],[T,"Nokia"],[p,f]],[/(pixel c)\b/i],[u,[T,rn],[p,A]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[u,[T,rn],[p,f]],[/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],[u,[T,Fo],[p,f]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[u,"Xperia Tablet"],[T,Fo],[p,A]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[u,[T,"OnePlus"],[p,f]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[u,[T,v],[p,A]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[u,/(.+)/g,"Fire Phone $1"],[T,v],[p,f]],[/(playbook);[-\w\),; ]+(rim)/i],[u,T,[p,A]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[u,[T,hu],[p,f]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[u,[T,he],[p,A]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[u,[T,he],[p,f]],[/(nexus 9)/i],[u,[T,"HTC"],[p,A]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[T,[u,/_/g," "],[p,f]],[/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],[u,[T,"TCL"],[p,A]],[/(itel) ((\w+))/i],[[T,mr],u,[p,Yo,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[u,[T,"Acer"],[p,A]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[u,[T,"Meizu"],[p,f]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[u,[T,"Ulefone"],[p,f]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[u,[T,"Energizer"],[p,f]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[u,[T,"Cat"],[p,f]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[u,[T,"Smartfren"],[p,f]],[/droid.+; (a(?:015|06[35]|142p?))/i],[u,[T,"Nothing"],[p,f]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (imo) ((?!tab)[\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[T,u,[p,f]],[/(imo) (tab \w+)/i,/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/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],[T,u,[p,A]],[/(surface duo)/i],[u,[T,Ws],[p,A]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[u,[T,"Fairphone"],[p,f]],[/(u304aa)/i],[u,[T,"AT&T"],[p,f]],[/\bsie-(\w*)/i],[u,[T,"Siemens"],[p,f]],[/\b(rct\w+) b/i],[u,[T,"RCA"],[p,A]],[/\b(venue[\d ]{2,7}) b/i],[u,[T,"Dell"],[p,A]],[/\b(q(?:mv|ta)\w+) b/i],[u,[T,"Verizon"],[p,A]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[u,[T,"Barnes & Noble"],[p,A]],[/\b(tm\d{3}\w+) b/i],[u,[T,"NuVision"],[p,A]],[/\b(k88) b/i],[u,[T,"ZTE"],[p,A]],[/\b(nx\d{3}j) b/i],[u,[T,"ZTE"],[p,f]],[/\b(gen\d{3}) b.+49h/i],[u,[T,"Swiss"],[p,f]],[/\b(zur\d{3}) b/i],[u,[T,"Swiss"],[p,A]],[/\b((zeki)?tb.*\b) b/i],[u,[T,"Zeki"],[p,A]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[T,"Dragon Touch"],u,[p,A]],[/\b(ns-?\w{0,9}) b/i],[u,[T,"Insignia"],[p,A]],[/\b((nxa|next)-?\w{0,9}) b/i],[u,[T,"NextBook"],[p,A]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[T,"Voice"],u,[p,f]],[/\b(lvtel\-)?(v1[12]) b/i],[[T,"LvTel"],u,[p,f]],[/\b(ph-1) /i],[u,[T,"Essential"],[p,f]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[u,[T,"Envizen"],[p,A]],[/\b(trio[-\w\. ]+) b/i],[u,[T,"MachSpeed"],[p,A]],[/\btu_(1491) b/i],[u,[T,"Rotor"],[p,A]],[/(shield[\w ]+) b/i],[u,[T,"Nvidia"],[p,A]],[/(sprint) (\w+)/i],[T,u,[p,f]],[/(kin\.[onetw]{3})/i],[[u,/\./g," "],[T,Ws],[p,f]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[u,[T,qs],[p,A]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[u,[T,qs],[p,f]],[/smart-tv.+(samsung)/i],[T,[p,L]],[/hbbtv.+maple;(\d+)/i],[[u,/^/,"SmartTV"],[T,on],[p,L]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[T,Ks],[p,L]],[/(apple) ?tv/i],[T,[u,Q+" TV"],[p,L]],[/crkey/i],[[u,Go+"cast"],[T,rn],[p,L]],[/droid.+aft(\w+)( bui|\))/i],[u,[T,v],[p,L]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[u,[T,Mu],[p,L]],[/(bravia[\w ]+)( bui|\))/i],[u,[T,Fo],[p,L]],[/(mitv-\w{5}) bui/i],[u,[T,zs],[p,L]],[/Hbbtv.*(technisat) (.*);/i],[T,u,[p,L]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[T,Xs],[u,Xs],[p,L]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[p,L]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[T,u,[p,m]],[/droid.+; (shield) bui/i],[u,[T,"Nvidia"],[p,m]],[/(playstation [345portablevi]+)/i],[u,[T,Fo],[p,m]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[u,[T,Ws],[p,m]],[/\b(sm-[lr]\d\d[05][fnuw]?s?)\b/i],[u,[T,on],[p,x]],[/((pebble))app/i],[T,u,[p,x]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[u,[T,Q],[p,x]],[/droid.+; (glass) \d/i],[u,[T,rn],[p,x]],[/droid.+; (wt63?0{2,3})\)/i],[u,[T,qs],[p,x]],[/droid.+; (glass) \d/i],[u,[T,rn],[p,x]],[/(pico) (4|neo3(?: link|pro)?)/i],[T,u,[p,x]],[/; (quest( \d| pro)?)/i],[u,[T,bu],[p,x]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[T,[p,b]],[/(aeobc)\b/i],[u,[T,v],[p,b]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[u,[p,f]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[u,[p,A]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[p,A]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[p,f]],[/(android[-\w\. ]{0,9});.+buil/i],[u,[T,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[l,[_,nh+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[_,l],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[l,[_,"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],[_,l],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[l,_]],os:[[/microsoft (windows) (vista|xp)/i],[_,l],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[_,[l,Yo,Lu]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[l,Yo,Lu],[_,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[l,/_/g,"."],[_,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[_,Cu],[l,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[l,_],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish|openharmony)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[_,l],[/\(bb(10);/i],[l,[_,hu]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[l,[_,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+);
1 rv:.+ gecko\/([\w\.]+)/i],[l,[_,Ho+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[l,[_,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[l,[_,"watchOS"]],[/crkey\/([\d\.]+)/i],[l,[_,Go+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[_,Iu],l],[/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) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[_,l],[/(sunos) ?([\w\.\d]*)/i],[[_,"Solaris"],l],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[_,l]]},fe=function(C,D){if(typeof C===a&&(D=C,C=t),!(this instanceof fe))return new fe(C,D).getResult();var N=typeof e!==s&&e.navigator?e.navigator:t,G=C||(N&&N.userAgent?N.userAgent:n),Et=N&&N.userAgentData?N.userAgentData:t,We=D?oh(Du,D):Du,w=N&&N.userAgent==G;return this.getBrowser=function(){var h={};return h[_]=t,h[l]=t,sn.call(h,G,We.browser),h[E]=ih(h[l]),w&&N&&N.brave&&typeof N.brave.isBrave==i&&(h[_]="Brave"),h},this.getCPU=function(){var h={};return h[d]=t,sn.call(h,G,We.cpu),h},this.getDevice=function(){var h={};return h[T]=t,h[u]=t,h[p]=t,sn.call(h,G,We.device),w&&!h[p]&&Et&&Et.mobile&&(h[p]=f),w&&h[u]=="Macintosh"&&N&&typeof N.standalone!==s&&N.maxTouchPoints&&N.maxTouchPoints>2&&(h[u]="iPad",h[p]=A),h},this.getEngine=function(){var h={};return h[_]=t,h[l]=t,sn.call(h,G,We.engine),h},this.getOS=function(){var h={};return h[_]=t,h[l]=t,sn.call(h,G,We.os),w&&!h[_]&&Et&&Et.platform&&Et.platform!="Unknown"&&(h[_]=Et.platform.replace(/chrome os/i,Iu).replace(/macos/i,Cu)),h},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 G},this.setUA=function(h){return G=typeof h===c&&h.length>R?Xs(h,R):h,this},this.setUA(G),this};fe.VERSION=r,fe.BROWSER=ko([_,l,E]),fe.CPU=ko([d]),fe.DEVICE=ko([u,T,p,m,f,L,A,x,b]),fe.ENGINE=fe.OS=ko([_,l]),typeof Pn!==s?(typeof Jo!==s&&Jo.exports&&(Pn=Jo.exports=fe),Pn.UAParser=fe):typeof define===i&&define.amd?define(function(){return fe}):typeof e!==s&&(e.UAParser=fe);var Ar=typeof e!==s&&(e.jQuery||e.Zepto);if(Ar&&!Ar.ua){var jo=new fe;Ar.ua=jo.getResult(),Ar.ua.get=function(){return jo.getUA()},Ar.ua.set=function(C){jo.setUA(C);var D=jo.getResult();for(var N in D)Ar.ua[N]=D[N]}}})(typeof window=="object"?window:Pn)});var W_,z_=g(()=>{W_=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{}});var q_=g(()=>{z_()});var St,tc=g(()=>{St="1.9.0"});function pN(e){var t=new Set([e]),r=new Set,n=e.match(X_);if(!n)return function(){return!1};var o={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};if(o.prerelease!=null)return function(c){return c===e};function i(a){return r.add(a),!1}function s(a){return t.add(a),!0}return function(c){if(t.has(c))return!0;if(r.has(c))return!1;var E=c.match(X_);if(!E)return i(c);var u={major:+E[1],minor:+E[2],patch:+E[3],prerelease:E[4]};return u.prerelease!=null||o.major!==u.major?i(c):o.major===0?o.minor===u.minor&&o.patch<=u.patch?s(c):i(c):o.minor<=u.minor?s(c):i(c)}}var X_,$_,Q_=g(()=>{tc();X_=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;$_=pN(St)});function Ze(e,t,r,n){var o;n===void 0&&(n=!1);var i=qn[zn]=(o=qn[zn])!==null&&o!==void 0?o:{version:St};if(!n&&i[e]){var s=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return r.error(s.stack||s.message),!1}if(i.version!==St){var s=new Error("@opentelemetry/api: Registration of version v"+i.version+" for "+e+" does not match previously registered API v"+St);return r.error(s.stack||s.message),!1}return i[e]=t,r.debug("@opentelemetry/api: Registered a global for "+e+" v"+St+"."),!0}function Re(e){var t,r,n=(t=qn[zn])===null||t===void 0?void 0:t.ver
vendor: 3,437 bytes, line 1
1sion;if(!(!n||!$_(n)))return(r=qn[zn])===null||r===void 0?void 0:r[e]}function et(e,t){t.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+St+".");var r=qn[zn];r&&delete r[e]}var TN,zn,qn,er=g(()=>{q_();tc();Q_();TN=St.split(".")[0],zn=Symbol.for("opentelemetry.js.api."+TN),qn=W_});function Xn(e,t,r){var n=Re("diag");if(n)return r.unshift(t),n[e].apply(n,SN([],lN(r),!1))}var lN,SN,J_,Z_=g(()=>{er();lN=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return i},SN=function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))},J_=function(){function e(t){this._namespace=t.namespace||"DiagComponentLogger"}return e.prototype.debug=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return Xn("debug",this._namespace,t)},e.prototype.error=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return Xn("error",this._namespace,t)},e.prototype.info=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return Xn("info",this._namespace,t)},e.prototype.warn=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return Xn("warn",this._namespace,t)},e.prototype.verbose=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return Xn("verbose",this._namespace,t)},e}()});var re,Ni=g(()=>{(function(e){e[e.NONE=0]="NONE",e[e.ERROR=30]="ERROR",e[e.WARN=50]="WARN",e[e.INFO=60]="INFO",e[e.DEBUG=70]="DEBUG",e[e.VERBOSE=80]="VERBOSE",e[e.ALL=9999]="ALL"})(re||(re={}))});function ep(e,t){e<re.NONE?e=re.NONE:e>re.ALL&&(e=re.ALL),t=t||{};function r(n,o){var i=t[n];return typeof i=="function"&&e>=o?i.bind(t):function(){}}return{error:r("error",re.ERROR),warn:r("warn",re.WARN),info:r("info",re.INFO),debug:r("debug",re.DEBUG),verbose:r("verbose",re.VERBOSE)}}var tp=g(()=>{Ni()});var dN,fN,mN,se,tr=g(()=>{Z_();tp();Ni();er();dN=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return i},fN=function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))},mN="diag",se=function(){function e(){function t(o){return function(){for(var i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];var a=Re("diag");if(a)return a[o].apply(a,fN([],dN(i),!1))}}var r=this,n=function(o,i){var s,a,c;if(i===void 0&&(i={logLevel:re.INFO}),o===r){var E=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return r.error((s=E.stack)!==null&&s!==void 0?s:E.message),!1}typeof i=="number"&&(i={logLevel:i});var u=Re("diag"),_=ep((a=i.logLevel)!==null&&a!==void 0?a:re.INFO,o);if(u&&!i.suppressOverrideMessage){var p=(c=new Error().stack)!==null&&c!==void 0?c:"<failed to generate stacktrace>";u.warn("Current logger will be overwritten from "+p),_.warn("Current logger will over
1write one already registered from "+p)}return Ze("diag",_,r,!0)};r.setLogger=n,r.disable=function(){et(mN,r)},r.createComponentLogger=function(o){return new J_(o)},r.verbose=t("verbose"),r.debug=t("debug"),r.info=t("info"),r.warn=t("warn"),r.error=t("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e}()});var AN,gN,rp,np=g(()=>{AN=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return i},gN=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},rp=function(){function e(t){this._entries=t?new Map(t):new Map}return e.prototype.getEntry=function(t){var r=this._entries.get(t);if(r)return Object.assign({},r)},e.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(t){var r=AN(t,2),n=r[0],o=r[1];return[n,o]})},e.prototype.setEntry=function(t,r){var n=new e(this._entries);return n._entries.set(t,r),n},e.prototype.removeEntry=function(t){var r=new e(this._entries);return r._entries.delete(t),r},e.prototype.removeEntries=function(){for(var t,r,n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var i=new e(this._entries);try{for(var s=gN(n),a=s.next();!a.done;a=s.next()){var c=a.value;i._entries.delete(c)}}catch(E){t={error:E}}finally{try{a&&!a.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}return i},e.prototype.clear=function(){return new e},e}()});var op,ip=g(()=>{op=Symbol("BaggageEntryMetadata")});function sp(e){return e===void 0&&(e={}),new rp(new Map(Object.entries(e)))}function Pi(e){return typeof e!="string"&&(RN.error("Cannot create baggage metadata from unknown type: "+typeof e),e=""),{__TYPE__:op,toString:function(){return e}}}var RN,rc=g(()=>{tr();np();ip();RN=se.instance()});function Ct(e){return Symbol.for(e)}var ON,tt,$n=g(()=>{ON=function(){function e(t){var r=this;r._currentContext=t?new Map(t):new Map,r.getValue=function(n){return r._currentContext.get(n)},r.setValue=function(n,o){var i=new e(r._currentContext);return i._currentContext.set(n,o),i},r.deleteValue=function(n){var o=new e(r._currentContext);return o._currentContext.delete(n),o}}return e}(),tt=new ON});var nc,ap,cp=g(()=>{nc=[{n:"error",c:"error"},{n:"warn",c:"warn"},{n:"info",c:"info"},{n:"debug",c:"debug"},{n:"verbose",c:"trace"}],ap=function(){function e(){function t(n){return function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];if(console){var s=console[n];if(typeof s!="function"&&(s=console.log),typeof s=="function")return s.apply(console,o)}}}for(var r=0;r<nc.length;r++)this[nc[r].n]=t(nc[r].c)}return e}()});function up(){return ic}var rr,hN,Mi,NN,PN,MN,bN,oc,IN,CN,vN,ic,xN,LN,DN,yN,UN,wN,VN,sc=g(()=>{rr=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),hN=function(){function e(){}return e.prototype.createGauge=function(t,r){return LN},e.prototype.createHistogram=function(t,r){return DN},e.prototype.createCounter=function(t,r){return xN},e.prototype.createUpDownCounter=function(t,r){return yN},e.prototype.createObservableGauge=function(t,r){return wN},e.prototype.createObservableCounter=function(t,r){return UN},e.prototype.createObservableUpDownCounter=function(t,r){return VN},e.prototype.addBatchObservableCallback=function(t,r){},e.prototype.removeBatchObservableCallback=function(t){},e}(),Mi=function(){function e(){}return e}(),NN=function(e){rr(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.add=function(r,n){},t}(Mi),PN=function(e){rr(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.add=function(r,n){},t}(Mi),MN=function(e){rr(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.record=function(r,n){},t}(Mi),bN=function(e){rr(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.record=function(r,n){},t}(Mi),oc=function(){function e(){}return e.prototype.addCallback=function(t){},e.prototype.removeCallback=function(t){},e}(),IN=function(e){rr(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(oc),CN=function(e){rr(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(oc),vN=function(e){rr(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(oc),ic=new hN,xN=new NN,LN=new MN,DN=new bN,yN=new PN,UN=new IN,wN=new CN,VN=new vN});var bi,Ep=g(()=>{(function(e){e[e.INT=0]="INT",e[e.DOUBLE=1]="DOUBLE"})(bi||(bi={}))});var Ii,Ci,ac=g(()=>{Ii={get:function(e,t){if(e!=null)return e[t]},keys:function(e){return e==null?[]:Object.keys(e)}},Ci={set:function(e,t,r){e!=null&&(e[t]=r)}}});var BN,GN,_p,pp=g(()=>{$n();BN=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return i},GN=function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))},_p=function(){function e(){}return e.prototype.active=function(){return tt},e.prototype.with=function(t,r,n){for(var o=[],i=3;i<arguments.length;i++)o[i-3]=arguments[i];return r.call.apply(r,GN([n],BN(o),!1))},e.prototype.bind=function(t,r){return r},e.prototype.enable=function(){return this},e.prototype.disable=function(){return this},e}()});var HN,FN,cc,kN,vt,Qn=g(()=>{pp();er();tr();HN=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return i},FN=function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))},cc="context",kN=new _p,vt=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalContextManager=function(t){return Ze(cc,t,se.instance())},e.prototype.active=function(){return this._getContextManager().active()},e.prototype.with=function(t,r,n){for(var o,i=[],s=3;s<arguments.length;s++)i[s-3]=arguments[s];return(o=this._getContextManager()).with.apply(o,FN([t,r,n],HN(i),!1))},e.prototype.bind=function(t,r){return this._getContextManager().bind(t,r)},e.prototype._getContextManager=function(){return Re(cc)||kN},e.prototype.disable=function(){this._getContextManager().disable(),et(cc,se.instance())},e}()});var ae,uc=g(()=>{(function(e){e[e.NONE=0]="NONE",e[e.SAMPLED=1]="SAMPLED"})(ae||(ae={}))});var Jn,Zn,Gr,vi=g(()=>{uc();Jn="0000000000000000",Zn="00000000000000000000000000000000",Gr={traceId:Zn,spanId:Jn,traceFlags:ae.NONE}});var xt,xi=g(()=>{vi();xt=function(){function e(t){t===void 0&&(t=Gr),this._spanContext=t}return e.prototype.spanContext=function(){return this._spanContext},e.prototype.setAttribute=function(t,r){return this},e.prototype.setAttributes=function(t){return this},e.prototype.addEvent=function(t,r){return this},e.prototype.addLink=function(t){return this},e.prototype.addLinks=function(t){return this},e.prototype.setStatus=function(t){return this},e.prototype.updateName=function(t){return this},e.prototype.end=function(t){},e.prototype.isRecording=function(){return!1},e.prototype.recordException=function(t,r){},e}()});function Li(e){return e.getValue(Ec)||void 0}function Tp(){return Li(vt.getInstance().active())}function eo(e,t){return e.setValue(Ec,t)}function lp(e){return e.deleteValue(Ec)}function Sp(e,t){return eo(e,new xt(t))}function Di(e){var t;return(t=Li(e))===null||t===void 0?void 0:t.spanContext()}var Ec,_c=g(()=>{$n();xi();Qn();Ec=Ct("OpenTelemetry Context Key SPAN")});function to(e){return YN.test(e)&&e!==Zn}function pc(e){return jN.test(e)&&e!==Jn}function rt(e){return to(e.traceId)&&pc(e.spanId)}function dp(e){return new xt(e)}var YN,jN,yi=g(()=>{vi();xi();YN=/^([0-9a-f]{32})$/i,jN=/^[0-9a-f]{16}$/i});function KN(e){return typeof e=="object"&&typeof e.spanId=="string"&&typeof e.traceId=="string"&&typeof e.traceFlags=="number"}var Tc,Ui,lc=g(()=>{Qn();_c();xi();yi();Tc=vt.getInstance(),Ui=function(){function e(){}return e.prototype.startSpan=function(t,r,n){n===void 0&&(n=Tc.active());var o=!!r?.root;if(o)return new xt;var i=n&&Di(n);return KN(i)&&rt(i)?new xt(i):new xt},e.prototype.startActiveSpan=function(t,r,n,o){var i,s,a;if(!(arguments.length<2)){arguments.length===2?a=r:arguments.length===3?(i=r,a=n):(i=r,s=n,a=o);var c=s??Tc.active(),E=this.startSpan(t,i,c),u=eo(c,E);return Tc.with(u,a,void 0,E)}},e}()});var WN,wi,Sc=g(()=>{lc();WN=new Ui,wi=function(){function e(t,r,n,o){this._provider=t,this.name=r,this.version=n,this.options=o}return e.prototype.startSpan=function(t,r,n){return this._getTracer().startSpan(t,r,n)},e.prototype.startActiveSpan=function(t,r,n,o){var i=this._getTracer();return Reflect.apply(i.startActiveSpan,i,arguments)},e.prototype._getTracer=function(){if(this._delegate)return this._delegate;var t=this._provider.getDelegateTracer(this.name,this.version,this.options);return t?(this._delegate=t,this._delegate):WN},e}()});var fp,mp=g(()=>{lc();fp=function(){function e(){}return e.prototype.getTracer=function(t,r,n){return new Ui},e}()});var zN,ro,dc=g(()=>{Sc();mp();zN=new fp,ro=function(){function e(){}return e.prototype.getTracer=function(t,r,n){var o;return(o=this.getDelegateTracer(t,r,n))!==null&&o!==void 0?o:new wi(this,t,r,n)},e.prototype.getDelegate=function(){var t;return(t=this._delegate)!==null&&t!==void 0?t:zN},e.prototype.setDelegate=function(t){this._delegate=t},e.prototype.getDelegateTracer=function(t,r,n){var o;return(o=this._delegate)===null||o===void 0?void 0:o.getTracer(t,r,n)},e}()});var nr,Ap=g(()=>{(function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(nr||(nr={}))});var De,gp=g(()=>{(function(e){e[e.INTERNAL=0]="INTERNAL",e[e.SERVER=1]="SERVER",e[e.CLIENT=2]="CLIENT",e[e.PRODUCER=3]="PRODUCER",e[e.CONSUMER=4]="CONSUMER"})(De||(De={}))});var Oe,Rp=g(()=>{(function(e){e[e.UNSET=0]="UNSET",e[e.OK=1]="OK",e[e.ERROR=2]="ERROR"})(Oe||(Oe={}))});function Op(e){return $N.test(e)}function hp(e){return QN.test(e)&&!JN.test(e)}var fc,qN,XN,$N,QN,JN,Np=g(()=>{fc="[_0-9a-z-*/]",qN="[a-z]"+fc+"{0,255}",XN="[a-z0-9]"+fc+"{0,240}
1@[a-z]"+fc+"{0,13}",$N=new RegExp("^(?:"+qN+"|"+XN+")$"),QN=/^[ -~]{0,255}[!-~]$/,JN=/,|=/});var Pp,ZN,Mp,bp,Ip,Cp=g(()=>{Np();Pp=32,ZN=512,Mp=",",bp="=",Ip=function(){function e(t){this._internalState=new Map,t&&this._parse(t)}return e.prototype.set=function(t,r){var n=this._clone();return n._internalState.has(t)&&n._internalState.delete(t),n._internalState.set(t,r),n},e.prototype.unset=function(t){var r=this._clone();return r._internalState.delete(t),r},e.prototype.get=function(t){return this._internalState.get(t)},e.prototype.serialize=function(){var t=this;return this._keys().reduce(function(r,n){return r.push(n+bp+t.get(n)),r},[]).join(Mp)},e.prototype._parse=function(t){t.length>ZN||(this._internalState=t.split(Mp).reverse().reduce(function(r,n){var o=n.trim(),i=o.indexOf(bp);if(i!==-1){var s=o.slice(0,i),a=o.slice(i+1,n.length);Op(s)&&hp(a)&&r.set(s,a)}return r},new Map),this._internalState.size>Pp&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,Pp))))},e.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},e.prototype._clone=function(){var t=new e;return t._internalState=new Map(this._internalState),t},e}()});function vp(e){return new Ip(e)}var xp=g(()=>{Cp()});var y,Lp=g(()=>{Qn();y=vt.getInstance()});var O,Dp=g(()=>{tr();O=se.instance()});var eP,yp,Up=g(()=>{sc();eP=function(){function e(){}return e.prototype.getMeter=function(t,r,n){return ic},e}(),yp=new eP});var mc,wp,Vp=g(()=>{Up();er();tr();mc="metrics",wp=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalMeterProvider=function(t){return Ze(mc,t,se.instance())},e.prototype.getMeterProvider=function(){return Re(mc)||yp},e.prototype.getMeter=function(t,r,n){return this.getMeterProvider().getMeter(t,r,n)},e.prototype.disable=function(){et(mc,se.instance())},e}()});var or,Bp=g(()=>{Vp();or=wp.getInstance()});var Gp,Hp=g(()=>{Gp=function(){function e(){}return e.prototype.inject=function(t,r){},e.prototype.extract=function(t,r){return t},e.prototype.fields=function(){return[]},e}()});function gc(e){return e.getValue(Ac)||void 0}function Fp(){return gc(vt.getInstance().active())}function kp(e,t){return e.setValue(Ac,t)}function Yp(e){return e.deleteValue(Ac)}var Ac,jp=g(()=>{Qn();$n();Ac=Ct("OpenTelemetry Baggage Key")});var Rc,tP,Kp,Wp=g(()=>{er();Hp();ac();jp();rc();tr();Rc="propagation",tP=new Gp,Kp=function(){function e(){this.createBaggage=sp,this.getBaggage=gc,this.getActiveBaggage=Fp,this.setBaggage=kp,this.deleteBaggage=Yp}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalPropagator=function(t){return Ze(Rc,t,se.instance())},e.prototype.inject=function(t,r,n){return n===void 0&&(n=Ci),this._getGlobalPropagator().inject(t,r,n)},e.prototype.extract=function(t,r,n){return n===void 0&&(n=Ii),this._getGlobalPropagator().extract(t,r,n)},e.prototype.fields=function(){return this._getGlobalPropagator().fields()},e.prototype.disable=function(){et(Rc,se.instance())},e.prototype._getGlobalPropagator=function(){return Re(Rc)||tP},e}()});var $,zp=g(()=>{Wp();$=Kp.getInstance()});var Oc,qp,Xp=g(()=>{er();dc();yi();_c();tr();Oc="trace",qp=function(){function e(){this._proxyTracerProvider=new ro,this.wrapSpanContext=dp,this.isSpanContextValid=rt,this.deleteSpan=lp,this.getSpan=Li,this.getActiveSpan=Tp,this.getSpanContext=Di,this.setSpan=eo,this.setSpanContext=Sp}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalTracerProvider=function(t){var r=Ze(Oc,this._proxyTracerProvider,se.instance());return r&&this._proxyTracerProvider.setDelegate(t),r},e.prototype.getTracerProvider=function(){return Re(Oc)||this._proxyTracerProvider},e.prototype.getTracer=function(t,r){return this.getTracerProvider().getTracer(t,r)},e.prototype.disable=function(){et(Oc,se.instance()),this._proxyTracerProvider=new ro},e}()});var B,$p=g(()=>{Xp();B=qp.getInstance()});var ce={};Uu(ce,{DiagConsoleLogger:()=>ap,DiagLogLevel:()=>re,INVALID_SPANID:()=>Jn,INVALID_SPAN_CONTEXT:()=>Gr,INVALID_TRACEID:()=>Zn,ProxyTracer:()=>wi,ProxyTracerProvider:()=>ro,ROOT_CONTEXT:()=>tt,SamplingDecision:()=>nr,SpanKind:()=>De,SpanStatusCode:()=>Oe,TraceFlags:()=>ae,ValueType:()=>bi,baggageEntryMetadataFromString:()=>Pi,context:()=>y,createContextKey:()=>Ct,createNoopMeter:()=>up,createTraceState:()=>vp,default:()=>rP,defaultTextMapGetter:()=>Ii,defaultTextMapSetter:()=>Ci,diag:()=>O,isSpanContextValid:()=>rt,isValidSpanId:()=>pc,isValidTraceId:()=>to,metrics:()=>or,propagation:()=>$,trace:()=>B});var rP,I=g(()=>{rc();$n();cp();Ni();sc();Ep();ac();Sc();dc();Ap();gp();Rp();uc();xp();yi();vi();Lp();Dp();Bp();zp();$p();rP={context:y,diag:O,metrics:or,propagation:$,trace:B}});function W(e){let t={},r=e.length;for(let n=0;n<r;n++){let o=e[n];
1o&&(t[String(o).toUpperCase().replace(/[-.]/g,"_")]=o)}return t}var Nc=g(()=>{});var iT,sT,aT,cT,uT,ET,_T,pT,TT,lT,ST,dT,fT,mT,AT,gT,RT,OT,hT,NT,PT,MT,bT,IT,CT,vT,xT,LT,DT,yT,UT,wT,VT,BT,GT,HT,FT,kT,YT,jT,KT,WT,zT,qT,XT,$T,QT,JT,ZT,el,tl,rl,nl,ol,il,sl,al,cl,ul,El,_l,pl,Tl,ll,Sl,dl,fl,ml,Al,gl,Rl,Ol,hl,Nl,Pl,Ml,bl,Il,Cl,vl,xl,Ll,Dl,yl,Ul,wl,Vl,Bl,Gl,Hl,Fl,kl,Yl,jl,Kl,Wl,zl,ql,Xl,$l,Ql,Jl,Zl,eS,tS,rS,nS,oS,iS,sS,aS,cS,uS,ES,_S,pS,TS,lS,SS,dS,fS,mS,AS,gS,RS,OS,hS,NS,_P,pP,TP,lP,SP,dP,fP,mP,AP,gP,RP,OP,hP,NP,PP,MP,bP,IP,CP,vP,xP,LP,DP,yP,UP,wP,VP,BP,GP,HP,FP,kP,YP,jP,KP,WP,zP,qP,XP,$P,QP,JP,ZP,eM,tM,rM,nM,oM,iM,sM,aM,cM,uM,EM,_M,pM,TM,lM,SM,dM,fM,mM,AM,gM,RM,OM,hM,NM,PM,MM,bM,IM,CM,vM,xM,LM,DM,yM,UM,wM,VM,BM,GM,HM,FM,kM,YM,jM,KM,WM,zM,qM,XM,$M,QM,JM,ZM,eb,tb,rb,nb,ob,ib,sb,ab,cb,ub,Eb,_b,pb,Tb,lb,Sb,db,fb,mb,Ab,gb,Rb,Ob,hb,Nb,Pb,Mb,bb,Ib,Cb,vb,xb,PS,MS,bS,IS,CS,vS,xS,LS,DS,yS,US,wS,VS,BS,GS,HS,FS,kS,YS,jS,KS,WS,zS,qS,XS,$S,QS,JS,ZS,ed,td,rd,nd,od,id,sd,ad,cd,ud,Ed,_d,pd,Td,ld,Sd,dd,fd,Lb,Db,yb,Ub,wb,Vb,Bb,Gb,Hb,Fb,kb,Yb,jb,Kb,Wb,zb,qb,Xb,$b,Qb,Jb,Zb,eI,tI,rI,nI,oI,iI,sI,aI,cI,uI,EI,_I,pI,TI,lI,SI,dI,fI,mI,AI,gI,RI,OI,hI,NI,PI,md,Ad,gd,Rd,Od,hd,Nd,Pd,Md,bd,Id,MI,bI,II,CI,vI,xI,LI,DI,yI,UI,wI,VI,Cd,vd,xd,Ld,Dd,BI,GI,HI,FI,kI,YI,yd,Ud,wd,jI,KI,WI,zI,Vd,Bd,Gd,Hd,qI,XI,$I,QI,JI,Fd,kd,Yd,jd,Kd,Wd,zd,ZI,eC,tC,rC,nC,oC,iC,sC,qd,Xd,$d,Qd,Jd,aC,cC,uC,EC,_C,pC,Zd,ef,tf,rf,nf,of,sf,af,cf,uf,Ef,_f,pf,Tf,lf,Sf,df,ff,mf,Af,gf,TC,lC,SC,dC,fC,mC,AC,gC,RC,OC,hC,NC,PC,MC,bC,IC,CC,vC,xC,LC,DC,yC,Rf,Of,hf,Nf,Pf,UC,wC,VC,BC,GC,HC,Mf,bf,FC,kC,YC,If,Cf,jC,KC,WC,vf,xf,Lf,Df,yf,Uf,wf,Vf,Bf,Gf,Hf,Ff,kf,Yf,jf,Kf,Wf,zC,qC,XC,$C,QC,JC,ZC,ev,tv,rv,nv,ov,iv,sv,av,cv,uv,Ev,zf,qf,_v,pv,Tv,Xf=g(()=>{Nc();iT="aws.lambda.invoked_arn",sT="db.system",aT="db.connection_string",cT="db.user",uT="db.jdbc.driver_classname",ET="db.name",_T="db.statement",pT="db.operation",TT="db.mssql.instance_name",lT="db.cassandra.keyspace",ST="db.cassandra.page_size",dT="db.cassandra.consistency_level",fT="db.cassandra.table",mT="db.cassandra.idempotence",AT="db.cassandra.speculative_execution_count",gT="db.cassandra.coordinator.id",RT="db.cassandra.coordinator.dc",OT="db.hbase.namespace",hT="db.redis.database_index",NT="db.mongodb.collection",PT="db.sql.table",MT="exception.type",bT="exception.message",IT="exception.stacktrace",CT="exception.escaped",vT="faas.trigger",xT="faas.execution",LT="faas.document.collection",DT="faas.document.operation",yT="faas.document.time",UT="faas.document.name",wT="faas.time",VT="faas.cron",BT="faas.coldstart",GT="faas.invoked_name",HT="faas.invoked_provider",FT="faas.invoked_region",kT="net.transport",YT="net.peer.ip",jT="net.peer.port",KT="net.peer.name",WT="net.host.ip",zT="net.host.port",qT="net.host.name",XT="net.host.connection.type",$T="net.host.connection.subtype",QT="net.host.carrier.name",JT="net.host.carrier.mcc",ZT="net.host.carrier.mnc",el="net.host.carrier.icc",tl="peer.service",rl="enduser.id",nl="enduser.role",ol="enduser.scope",il="thread.id",sl="thread.name",al="code.function",cl="code.namespace",ul="code.filepath",El="code.lineno",_l="http.method",pl="http.url",Tl="http.target",ll="http.host",Sl="http.scheme",dl="http.status_code",fl="http.flavor",ml="http.user_agent",Al="http.request_content_length",gl="http.request_content_length_uncompressed",Rl="http.response_content_length",Ol="http.response_content_length_uncompressed",hl="http.server_name",Nl="http.route",Pl="http.client_ip",Ml="aws.dynamodb.table_names",bl="aws.dynamodb.consumed_capacity",Il="aws.dynamodb.item_collection_metrics",Cl="aws.dynamodb.provisioned_read_capacity",vl="aws.dynamodb.provisioned_write_capacity",xl="aws.dynamodb.consistent_read",Ll="aws.dynamodb.projection",Dl="aws.dynamodb.limit",yl="aws.dynamodb.attributes_to_get",Ul="aws.dynamodb.index_name",wl="aws.dynamodb.select",Vl="aws.dynamodb.global_secondary_indexes",Bl="aws.dynamodb.local_secondary_indexes",Gl="aws.dynamodb.exclusive_start_table",Hl="aws.dynamodb.table_count",Fl="aws.dynamodb.scan_forward",kl="aws.dynamodb.segment",Yl="aws.dynamodb.total_segments",jl="aws.dynamodb.count",Kl="aws.dynamodb.scanned_count",Wl="aws.dynamodb.attribute_definitions",zl="aws.dynamodb.global_secondary_index_updates",ql="messaging.system",Xl="messaging.destination",$l="messaging.destination_kind",Ql="messaging.temp_destination",Jl="messaging.protocol",Zl="messaging.protocol_version",eS="messaging.url",tS="messaging.message_id",rS="messaging.conversation_id",nS="messaging.message_payload_size_bytes",oS="messaging.message_payload_compressed_size_bytes",iS="messaging.operation",sS="messaging.consumer_id",aS="messaging.rabbitmq.routing_key",cS="messaging.kafka.message_key",uS="messaging.kafka.consumer_group",ES="messaging.kafka.client_id",_S="messaging.kafka.partition",pS="messaging.kafka.tombstone",TS="rpc.system",lS="rpc.service",SS="rpc.method",dS="rpc.grpc.status_code",fS="rpc.jsonrpc.version",mS="rpc.jsonrpc.request_id",AS="rpc.jsonrpc.error_code",gS="rpc.jsonrpc.error_message",RS="message.type",OS="message.id",hS="message.compressed_size",NS="message.uncompressed_size",_P=iT,pP=sT,TP=aT,lP=cT,SP=uT,dP=ET,fP=_T,mP=pT,AP=TT,gP=lT,RP=ST,OP=dT,hP=fT,NP=mT,PP=AT,MP=gT,bP=RT,IP=OT,CP=hT,vP=NT,xP=PT,LP=MT,DP=bT,yP=IT,UP=CT,wP=vT,VP=xT,BP=LT,GP=DT,HP=yT,FP=UT,kP=wT,YP=VT,jP=BT,KP=GT,WP=HT,zP=FT,qP=kT,XP=YT,$P=jT,QP=KT,JP=WT,ZP=zT,eM=qT,tM=XT,rM=$T,
1nM=QT,oM=JT,iM=ZT,sM=el,aM=tl,cM=rl,uM=nl,EM=ol,_M=il,pM=sl,TM=al,lM=cl,SM=ul,dM=El,fM=_l,mM=pl,AM=Tl,gM=ll,RM=Sl,OM=dl,hM=fl,NM=ml,PM=Al,MM=gl,bM=Rl,IM=Ol,CM=hl,vM=Nl,xM=Pl,LM=Ml,DM=bl,yM=Il,UM=Cl,wM=vl,VM=xl,BM=Ll,GM=Dl,HM=yl,FM=Ul,kM=wl,YM=Vl,jM=Bl,KM=Gl,WM=Hl,zM=Fl,qM=kl,XM=Yl,$M=jl,QM=Kl,JM=Wl,ZM=zl,eb=ql,tb=Xl,rb=$l,nb=Ql,ob=Jl,ib=Zl,sb=eS,ab=tS,cb=rS,ub=nS,Eb=oS,_b=iS,pb=sS,Tb=aS,lb=cS,Sb=uS,db=ES,fb=_S,mb=pS,Ab=TS,gb=lS,Rb=SS,Ob=dS,hb=fS,Nb=mS,Pb=AS,Mb=gS,bb=RS,Ib=OS,Cb=hS,vb=NS,xb=W([iT,sT,aT,cT,uT,ET,_T,pT,TT,lT,ST,dT,fT,mT,AT,gT,RT,OT,hT,NT,PT,MT,bT,IT,CT,vT,xT,LT,DT,yT,UT,wT,VT,BT,GT,HT,FT,kT,YT,jT,KT,WT,zT,qT,XT,$T,QT,JT,ZT,el,tl,rl,nl,ol,il,sl,al,cl,ul,El,_l,pl,Tl,ll,Sl,dl,fl,ml,Al,gl,Rl,Ol,hl,Nl,Pl,Ml,bl,Il,Cl,vl,xl,Ll,Dl,yl,Ul,wl,Vl,Bl,Gl,Hl,Fl,kl,Yl,jl,Kl,Wl,zl,ql,Xl,$l,Ql,Jl,Zl,eS,tS,rS,nS,oS,iS,sS,aS,cS,uS,ES,_S,pS,TS,lS,SS,dS,fS,mS,AS,gS,RS,OS,hS,NS]),PS="other_sql",MS="mssql",bS="mysql",IS="oracle",CS="db2",vS="postgresql",xS="redshift",LS="hive",DS="cloudscape",yS="hsqldb",US="progress",wS="maxdb",VS="hanadb",BS="ingres",GS="firstsql",HS="edb",FS="cache",kS="adabas",YS="firebird",jS="derby",KS="filemaker",WS="informix",zS="instantdb",qS="interbase",XS="mariadb",$S="netezza",QS="pervasive",JS="pointbase",ZS="sqlite",ed="sybase",td="teradata",rd="vertica",nd="h2",od="coldfusion",id="cassandra",sd="hbase",ad="mongodb",cd="redis",ud="couchbase",Ed="couchdb",_d="cosmosdb",pd="dynamodb",Td="neo4j",ld="geode",Sd="elasticsearch",dd="memcached",fd="cockroachdb",Lb=PS,Db=MS,yb=bS,Ub=IS,wb=CS,Vb=vS,Bb=xS,Gb=LS,Hb=DS,Fb=yS,kb=US,Yb=wS,jb=VS,Kb=BS,Wb=GS,zb=HS,qb=FS,Xb=kS,$b=YS,Qb=jS,Jb=KS,Zb=WS,eI=zS,tI=qS,rI=XS,nI=$S,oI=QS,iI=JS,sI=ZS,aI=ed,cI=td,uI=rd,EI=nd,_I=od,pI=id,TI=sd,lI=ad,SI=cd,dI=ud,fI=Ed,mI=_d,AI=pd,gI=Td,RI=ld,OI=Sd,hI=dd,NI=fd,PI=W([PS,MS,bS,IS,CS,vS,xS,LS,DS,yS,US,wS,VS,BS,GS,HS,FS,kS,YS,jS,KS,WS,zS,qS,XS,$S,QS,JS,ZS,ed,td,rd,nd,od,id,sd,ad,cd,ud,Ed,_d,pd,Td,ld,Sd,dd,fd]),md="all",Ad="each_quorum",gd="quorum",Rd="local_quorum",Od="one",hd="two",Nd="three",Pd="local_one",Md="any",bd="serial",Id="local_serial",MI=md,bI=Ad,II=gd,CI=Rd,vI=Od,xI=hd,LI=Nd,DI=Pd,yI=Md,UI=bd,wI=Id,VI=W([md,Ad,gd,Rd,Od,hd,Nd,Pd,Md,bd,Id]),Cd="datasource",vd="http",xd="pubsub",Ld="timer",Dd="other",BI=Cd,GI=vd,HI=xd,FI=Ld,kI=Dd,YI=W([Cd,vd,xd,Ld,Dd]),yd="insert",Ud="edit",wd="delete",jI=yd,KI=Ud,WI=wd,zI=W([yd,Ud,wd]),Vd="alibaba_cloud",Bd="aws",Gd="azure",Hd="gcp",qI=Vd,XI=Bd,$I=Gd,QI=Hd,JI=W([Vd,Bd,Gd,Hd]),Fd="ip_tcp",kd="ip_udp",Yd="ip",jd="unix",Kd="pipe",Wd="inproc",zd="other",ZI=Fd,eC=kd,tC=Yd,rC=jd,nC=Kd,oC=Wd,iC=zd,sC=W([Fd,kd,Yd,jd,Kd,Wd,zd]),qd="wifi",Xd="wired",$d="cell",Qd="unavailable",Jd="unknown",aC=qd,cC=Xd,uC=$d,EC=Qd,_C=Jd,pC=W([qd,Xd,$d,Qd,Jd]),Zd="gprs",ef="edge",tf="umts",rf="cdma",nf="evdo_0",of="evdo_a",sf="cdma2000_1xrtt",af="hsdpa",cf="hsupa",uf="hspa",Ef="iden",_f="evdo_b",pf="lte",Tf="ehrpd",lf="hspap",Sf="gsm",df="td_scdma",ff="iwlan",mf="nr",Af="nrnsa",gf="lte_ca",TC=Zd,lC=ef,SC=tf,dC=rf,fC=nf,mC=of,AC=sf,gC=af,RC=cf,OC=uf,hC=Ef,NC=_f,PC=pf,MC=Tf,bC=lf,IC=Sf,CC=df,vC=ff,xC=mf,LC=Af,DC=gf,yC=W([Zd,ef,tf,rf,nf,of,sf,af,cf,uf,Ef,_f,pf,Tf,lf,Sf,df,ff,mf,Af,gf]),Rf="1.0",Of="1.1",hf="2.0",Nf="SPDY",Pf="QUIC",UC=Rf,wC=Of,VC=hf,BC=Nf,GC=Pf,HC={HTTP_1_0:Rf,HTTP_1_1:Of,HTTP_2_0:hf,SPDY:Nf,QUIC:Pf},Mf="queue",bf="topic",FC=Mf,kC=bf,YC=W([Mf,bf]),If="receive",Cf="process",jC=If,KC=Cf,WC=W([If,Cf]),vf=0,xf=1,Lf=2,Df=3,yf=4,Uf=5,wf=6,Vf=7,Bf=8,Gf=9,Hf=10,Ff=11,kf=12,Yf=13,jf=14,Kf=15,Wf=16,zC=vf,qC=xf,XC=Lf,$C=Df,QC=yf,JC=Uf,ZC=wf,ev=Vf,tv=Bf,rv=Gf,nv=Hf,ov=Ff,iv=kf,sv=Yf,av=jf,cv=Kf,uv=Wf,Ev={OK:vf,CANCELLED:xf,UNKNOWN:Lf,INVALID_ARGUMENT:Df,DEADLINE_EXCEEDED:yf,NOT_FOUND:Uf,ALREADY_EXISTS:wf,PERMISSION_DENIED:Vf,RESOURCE_EXHAUSTED:Bf,FAILED_PRECONDITION:Gf,ABORTED:Hf,OUT_OF_RANGE:Ff,UNIMPLEMENTED:kf,INTERNAL:Yf,UNAVAILABLE:jf,DATA_LOSS:Kf,UNAUTHENTICATED:Wf},zf="SENT",qf="RECEIVED",_v=zf,pv=qf,Tv=W([zf,qf])});var $f=g(()=>{Xf()});var Qf,Jf,Zf,em,tm,rm,nm,om,im,sm,am,cm,um,Em,_m,pm,Tm,lm,Sm,dm,fm,mm,Am,gm,Rm,Om,hm,Nm,Pm,Mm,bm,Im,Cm,vm,xm,Lm,Dm,ym,Um,wm,Vm,Bm,Gm,Hm,Fm,km,Ym,jm,Km,Wm,zm,qm,Xm,$m,Qm,Jm,Zm,eA,tA,rA,nA,oA,iA,sA,aA,cA,uA,EA,_A,pA,TA,lA,SA,dA,fA,mA,AA,gA,RA,OA,hA,lv,Sv,dv,fv,mv,Av,gv,Rv,Ov,hv,Nv,Pv,Mv,bv,Iv,Cv,vv,xv,Lv,Dv,yv,Pc,Uv,wv,Vv,Bv,Gv,Hv,Fv,kv,Yv,jv,Kv,Wv,zv,qv,Xv,$v,Qv,Jv,Zv,ex,tx,rx,nx,ox,ix,sx,ax,cx,ux,Ex,_x,px,Tx,lx,Sx,dx,fx,mx,Ax,gx,Rx,Ox,hx,Nx,Px,Mx,bx,Ix,Cx,vx,xx,Lx,Dx,yx,Ux,wx,Vx,Bx,Gx,Hx,NA,PA,MA,bA,Fx,kx,Yx,jx,Kx,IA,CA,vA,xA,LA,DA,yA,UA,wA,VA,BA,GA,HA,FA,kA,YA,jA,Wx,zx,qx,Xx,$x,Qx,Jx,Zx,eL,tL,rL,nL,oL,iL,sL,aL,cL,uL,KA,WA,EL,_L,pL,zA,qA,XA,$A,QA,JA,ZA,TL,lL,SL,dL,fL,mL,AL,gL,eg,tg,rg,ng,og,ig,sg,ag,cg,ug,Eg,RL,OL,hL,NL,PL,ML,bL,IL,CL,vL,xL,LL,_g,pg,Tg,lg,Sg,dg,fg,mg,Ag,gg,DL,yL,UL,wL,VL,BL,GL,HL,FL,kL,YL,Rg=g(()=>{Nc();Qf="cloud.provider",Jf="cloud.account.id",Zf="cloud.region",em="cloud.availability_zone",tm="cloud.platform",rm="aws.ecs.container.arn",nm="aws.ecs.cluster.arn",om="aws.ecs.launchtype",im="aws.ecs.task.arn",sm="aws.ecs.task.family",am="aws.ecs.task.revision",cm="aws.eks.cluster.arn",um="aws.log.group.names",Em="aws.log.group.arns",_m="aws.log.stream.names",pm="aws.log.stream.arns",Tm="container.name",lm="container.id",Sm="container.runtime",dm="container.image.name",fm="container.image.tag",mm="deployment.environment",Am="device.id",gm="device.model.identifier",Rm="device.model.name",Om="faas.name",hm="faas.id",Nm="faas.version",Pm="faas.instance",Mm="faas.max_memory",bm="host.id",Im="host.name",Cm="host.type",vm="host.arch",xm="host.image.name",Lm="host.image.id",Dm="host.image.ver
1sion",ym="k8s.cluster.name",Um="k8s.node.name",wm="k8s.node.uid",Vm="k8s.namespace.name",Bm="k8s.pod.uid",Gm="k8s.pod.name",Hm="k8s.container.name",Fm="k8s.replicaset.uid",km="k8s.replicaset.name",Ym="k8s.deployment.uid",jm="k8s.deployment.name",Km="k8s.statefulset.uid",Wm="k8s.statefulset.name",zm="k8s.daemonset.uid",qm="k8s.daemonset.name",Xm="k8s.job.uid",$m="k8s.job.name",Qm="k8s.cronjob.uid",Jm="k8s.cronjob.name",Zm="os.type",eA="os.description",tA="os.name",rA="os.version",nA="process.pid",oA="process.executable.name",iA="process.executable.path",sA="process.command",aA="process.command_line",cA="process.command_args",uA="process.owner",EA="process.runtime.name",_A="process.runtime.version",pA="process.runtime.description",TA="service.name",lA="service.namespace",SA="service.instance.id",dA="service.version",fA="telemetry.sdk.name",mA="telemetry.sdk.language",AA="telemetry.sdk.version",gA="telemetry.auto.version",RA="webengine.name",OA="webengine.version",hA="webengine.description",lv=Qf,Sv=Jf,dv=Zf,fv=em,mv=tm,Av=rm,gv=nm,Rv=om,Ov=im,hv=sm,Nv=am,Pv=cm,Mv=um,bv=Em,Iv=_m,Cv=pm,vv=Tm,xv=lm,Lv=Sm,Dv=dm,yv=fm,Pc=mm,Uv=Am,wv=gm,Vv=Rm,Bv=Om,Gv=hm,Hv=Nm,Fv=Pm,kv=Mm,Yv=bm,jv=Im,Kv=Cm,Wv=vm,zv=xm,qv=Lm,Xv=Dm,$v=ym,Qv=Um,Jv=wm,Zv=Vm,ex=Bm,tx=Gm,rx=Hm,nx=Fm,ox=km,ix=Ym,sx=jm,ax=Km,cx=Wm,ux=zm,Ex=qm,_x=Xm,px=$m,Tx=Qm,lx=Jm,Sx=Zm,dx=eA,fx=tA,mx=rA,Ax=nA,gx=oA,Rx=iA,Ox=sA,hx=aA,Nx=cA,Px=uA,Mx=EA,bx=_A,Ix=pA,Cx=TA,vx=lA,xx=SA,Lx=dA,Dx=fA,yx=mA,Ux=AA,wx=gA,Vx=RA,Bx=OA,Gx=hA,Hx=W([Qf,Jf,Zf,em,tm,rm,nm,om,im,sm,am,cm,um,Em,_m,pm,Tm,lm,Sm,dm,fm,mm,Am,gm,Rm,Om,hm,Nm,Pm,Mm,bm,Im,Cm,vm,xm,Lm,Dm,ym,Um,wm,Vm,Bm,Gm,Hm,Fm,km,Ym,jm,Km,Wm,zm,qm,Xm,$m,Qm,Jm,Zm,eA,tA,rA,nA,oA,iA,sA,aA,cA,uA,EA,_A,pA,TA,lA,SA,dA,fA,mA,AA,gA,RA,OA,hA]),NA="alibaba_cloud",PA="aws",MA="azure",bA="gcp",Fx=NA,kx=PA,Yx=MA,jx=bA,Kx=W([NA,PA,MA,bA]),IA="alibaba_cloud_ecs",CA="alibaba_cloud_fc",vA="aws_ec2",xA="aws_ecs",LA="aws_eks",DA="aws_lambda",yA="aws_elastic_beanstalk",UA="azure_vm",wA="azure_container_instances",VA="azure_aks",BA="azure_functions",GA="azure_app_service",HA="gcp_compute_engine",FA="gcp_cloud_run",kA="gcp_kubernetes_engine",YA="gcp_cloud_functions",jA="gcp_app_engine",Wx=IA,zx=CA,qx=vA,Xx=xA,$x=LA,Qx=DA,Jx=yA,Zx=UA,eL=wA,tL=VA,rL=BA,nL=GA,oL=HA,iL=FA,sL=kA,aL=YA,cL=jA,uL=W([IA,CA,vA,xA,LA,DA,yA,UA,wA,VA,BA,GA,HA,FA,kA,YA,jA]),KA="ec2",WA="fargate",EL=KA,_L=WA,pL=W([KA,WA]),zA="amd64",qA="arm32",XA="arm64",$A="ia64",QA="ppc32",JA="ppc64",ZA="x86",TL=zA,lL=qA,SL=XA,dL=$A,fL=QA,mL=JA,AL=ZA,gL=W([zA,qA,XA,$A,QA,JA,ZA]),eg="windows",tg="linux",rg="darwin",ng="freebsd",og="netbsd",ig="openbsd",sg="dragonflybsd",ag="hpux",cg="aix",ug="solaris",Eg="z_os",RL=eg,OL=tg,hL=rg,NL=ng,PL=og,ML=ig,bL=sg,IL=ag,CL=cg,vL=ug,xL=Eg,LL=W([eg,tg,rg,ng,og,ig,sg,ag,cg,ug,Eg]),_g="cpp",pg="dotnet",Tg="erlang",lg="go",Sg="java",dg="nodejs",fg="php",mg="python",Ag="ruby",gg="webjs",DL=_g,yL=pg,UL=Tg,wL=lg,VL=Sg,BL=dg,GL=fg,HL=mg,FL=Ag,kL=gg,YL=W([_g,pg,Tg,lg,Sg,dg,fg,mg,Ag,gg])});var Og=g(()=>{Rg()});var jL,KL,WL,zL,qL,XL,$L,QL,JL,ZL,eD,tD,rD,nD,oD,iD,sD,aD,cD,uD,ED,_D,pD,TD,lD,SD,dD,fD,mD,AD,gD,RD,OD,hD,ND,PD,MD,bD,ID,CD,vD,xD,LD,DD,Hr,yD,UD,io,Mc,so,wD,ao,VD,BD,GD,HD,FD,kD,YD,jD,KD,WD,co,zD,qD,uo,XD,$D,QD,JD,ZD,ey,ty,ry,ny,oy,iy,sy,ay,cy,uy,Ey,_y,py,Ty,ly,Sy,dy,fy,my,Ay,gy,Ry,Oy,hy,Ny,Py,My,by,Iy,Cy,vy,Eo,_o,po,bc,xy,Ly,Dy,yy,Uy,wy,Vy,By,Fr,Gy,Hy,Fy,ky,Yy,jy,Ky,Wy,zy,qy,Xy,Ic,kr,Yr,$y,To,Qy,Jy,Zy,Cc,hg=g(()=>{jL="aspnetcore.diagnostics.exception.result",KL="aborted",WL="handled",zL="skipped",qL="unhandled",XL="aspnetcore.diagnostics.handler.type",$L="aspnetcore.rate_limiting.policy",QL="aspnetcore.rate_limiting.result",JL="acquired",ZL="endpoint_limiter",eD="global_limiter",tD="request_canceled",rD="aspnetcore.request.is_unhandled",nD="aspnetcore.routing.is_fallback",oD="aspnetcore.routing.match_status",iD="failure",sD="success",aD="aspnetcore.user.is_authenticated",cD="client.address",uD="client.port",ED="code.column.number",_D="code.file.path",pD="code.function.name",TD="code.line.number",lD="code.stacktrace",SD="db.collection.name",dD="db.namespace",fD="db.operation.batch.size",mD="db.operation.name",AD="db.query.summary",gD="db.query.text",RD="db.response.status_code",OD="db.stored_procedure.name",hD="db.system.name",ND="mariadb",PD="microsoft.sql_server",MD="mysql",bD="postgresql",ID="dotnet.gc.heap.generation",CD="gen0",vD="gen1",xD="gen2",LD="loh",DD="poh",Hr="error.type",yD="_OTHER",UD="exception.escaped",io="exception.message",Mc="exception.stacktrace",so="exception.type",wD=e=>`http.request.header.${e}`,ao="http.request.method",VD="_OTHER",BD="CONNECT",GD="DELETE",HD="GET",FD="HEAD",kD="OPTIONS",YD="PATCH",jD="POST",KD="PUT",WD="TRACE",co="http.request.method_original",zD="http.request.resend_count",qD=e=>`http.response.header.${e}
1`,uo="http.response.status_code",XD="http.route",$D="jvm.gc.action",QD="jvm.gc.name",JD="jvm.memory.pool.name",ZD="jvm.memory.type",ey="heap",ty="non_heap",ry="jvm.thread.daemon",ny="jvm.thread.state",oy="blocked",iy="new",sy="runnable",ay="terminated",cy="timed_waiting",uy="waiting",Ey="network.local.address",_y="network.local.port",py="network.peer.address",Ty="network.peer.port",ly="network.protocol.name",Sy="network.protocol.version",dy="network.transport",fy="pipe",my="quic",Ay="tcp",gy="udp",Ry="unix",Oy="network.type",hy="ipv4",Ny="ipv6",Py="otel.scope.name",My="otel.scope.version",by="otel.status_code",Iy="ERROR",Cy="OK",vy="otel.status_description",Eo="server.address",_o="server.port",po="service.name",bc="service.version",xy="signalr.connection.status",Ly="app_shutdown",Dy="normal_closure",yy="timeout",Uy="signalr.transport",wy="long_polling",Vy="server_sent_events",By="web_sockets",Fr="telemetry.sdk.language",Gy="cpp",Hy="dotnet",Fy="erlang",ky="go",Yy="java",jy="nodejs",Ky="php",Wy="python",zy="ruby",qy="rust",Xy="swift",Ic="webjs",kr="telemetry.sdk.name",Yr="telemetry.sdk.version",$y="url.fragment",To="url.full",Qy="url.path",Jy="url.query",Zy="url.scheme",Cc="user_agent.original"});var eU,tU,rU,nU,oU,iU,sU,aU,cU,uU,EU,_U,pU,TU,lU,SU,dU,fU,mU,AU,gU,RU,OU,hU,NU,PU,MU,bU,IU,CU,vU,xU,LU,DU,yU,UU,wU,VU,BU,GU,HU,FU,kU,YU,jU,KU,WU,zU,qU,XU,$U,Ng=g(()=>{eU="aspnetcore.diagnostics.exceptions",tU="aspnetcore.rate_limiting.active_request_leases",rU="aspnetcore.rate_limiting.queued_requests",nU="aspnetcore.rate_limiting.request.time_in_queue",oU="aspnetcore.rate_limiting.request_lease.duration",iU="aspnetcore.rate_limiting.requests",sU="aspnetcore.routing.match_attempts",aU="db.client.operation.duration",cU="dotnet.assembly.count",uU="dotnet.exceptions",EU="dotnet.gc.collections",_U="dotnet.gc.heap.total_allocated",pU="dotnet.gc.last_collection.heap.fragmentation.size",TU="dotnet.gc.last_collection.heap.size",lU="dotnet.gc.last_collection.memory.committed_size",SU="dotnet.gc.pause.time",dU="dotnet.jit.compilation.time",fU="dotnet.jit.compiled_il.size",mU="dotnet.jit.compiled_methods",AU="dotnet.monitor.lock_contentions",gU="dotnet.process.cpu.count",RU="dotnet.process.cpu.time",OU="dotnet.process.memory.working_set",hU="dotnet.thread_pool.queue.length",NU="dotnet.thread_pool.thread.count",PU="dotnet.thread_pool.work_item.count",MU="dotnet.timer.count",bU="http.client.request.duration",IU="http.server.request.duration",CU="jvm.class.count",vU="jvm.class.loaded",xU="jvm.class.unloaded",LU="jvm.cpu.count",DU="jvm.cpu.recent_utilization",yU="jvm.cpu.time",UU="jvm.gc.duration",wU="jvm.memory.committed",VU="jvm.memory.limit",BU="jvm.memory.used",GU="jvm.memory.used_after_last_gc",HU="jvm.thread.count",FU="kestrel.active_connections",kU="kestrel.active_tls_handshakes",YU="kestrel.connection.duration",jU="kestrel.queued_connections",KU="kestrel.queued_requests",WU="kestrel.rejected_connections",zU="kestrel.tls_handshake.duration",qU="kestrel.upgraded_connections",XU="signalr.server.active_connections",$U="signalr.server.connection.duration"});var QU,Pg=g(()=>{QU="exception"});var Mg={};Uu(Mg,{ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_ABORTED:()=>KL,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_HANDLED:()=>WL,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_SKIPPED:()=>zL,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_UNHANDLED:()=>qL,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ACQUIRED:()=>JL,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ENDPOINT_LIMITER:()=>ZL,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_GLOBAL_LIMITER:()=>eD,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_REQUEST_CANCELED:()=>tD,ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_FAILURE:()=>iD,ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_SUCCESS:()=>sD,ATTR_ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT:()=>jL,ATTR_ASPNETCORE_DIAGNOSTICS_HANDLER_TYPE:()=>XL,ATTR_ASPNETCORE_RATE_LIMITING_POLICY:()=>$L,ATTR_ASPNETCORE_RATE_LIMITING_RESULT:()=>QL,ATTR_ASPNETCORE_REQUEST_IS_UNHANDLED:()=>rD,ATTR_ASPNETCORE_ROUTING_IS_FALLBACK:()=>nD,ATTR_ASPNETCORE_ROUTING_MATCH_STATUS:()=>oD,ATTR_ASPNETCORE_USER_IS_AUTHENTICATED:()=>aD,ATTR_CLIENT_ADDRESS:()=>cD,ATTR_CLIENT_PORT:()=>uD,ATTR_CODE_COLUMN_NUMBER:()=>ED,ATTR_CODE_FILE_PATH:()=>_D,ATTR_CODE_FUNCTION_NAME:()=>pD,ATTR_CODE_LINE_NUMBER:()=>TD,ATTR_CODE_STACKTRACE:()=>lD,ATTR_DB_COLLECTION_NAME:()=>SD,ATTR_DB_NAMESPACE:()=>dD,ATTR_DB_OPERATION_BATCH_SIZE:()=>fD,ATTR_DB_OPERATION_NAME:()=>mD,ATTR_DB_QUERY_SUMMARY:()=>AD,ATTR_DB_QUERY_TEXT:()=>gD,ATTR_DB_RESPONSE_STATUS_CODE:()=>RD,ATTR_DB_STORED_PROCEDURE_NAME:()=>OD,ATTR_DB_SYSTEM_NAME:()=>hD,ATTR_DOTNET_GC_HEAP_GENERATION:()=>ID,ATTR_ERROR_TYPE:()=>Hr,ATTR_EXCEPTION_ESCAPED:()=>UD,ATTR_EXCEPTION_MESSAGE:()=>io,ATTR_EXCEPTION_STACKTRACE:()=>Mc,ATTR_EXCEPTION_TYPE:()=>so,ATTR_HTTP_REQUEST_HEADER:()=>wD,ATTR_HTTP_REQUEST_METHOD:()=>ao,ATTR_HTTP_REQUEST_METHOD_ORIGINAL:()=>co,ATTR_HTTP_REQUEST_RESEND_COUNT:()=>zD,ATTR_HTTP_RESPONSE_HEADER:()=>qD,ATTR_HTTP_RESPONSE_STATUS_CODE:()=>uo,ATTR_HTTP_ROUTE:()=>XD,ATTR_JVM_GC_ACTION:()=>$D,ATTR_JVM_GC_NAME:()=>QD,ATTR_JVM_MEMORY_POOL_NAME:()=>JD,ATTR_JVM_MEMORY_TYPE:()=>ZD,ATTR_JVM_THREAD_DAEMON:()=>ry,ATTR_JVM_THREAD_STATE:()=>ny,ATTR_NETWORK_LOCAL_ADDRESS:()=>Ey,ATTR_NETWORK_LOCAL_PORT:()=>_y,ATTR_NETWORK_PEER_ADDRESS:()=>py,ATTR_NETWORK_PEER_PORT:()=>Ty,ATTR_NETWORK_PROTOCOL_NAME:()=>ly,ATTR_NETWORK_PROTOCOL_VERSION:()=>Sy,ATTR_NETWORK_TRANSPORT:()=>dy,ATTR_NETWORK_TYPE:()=>Oy,ATTR_OTEL_SCOPE_NAME:()=>Py,ATTR_OTEL_SCOPE_VERSION:()=>My,ATTR_OTEL_STATUS_CODE:()=>by,ATTR_OTEL_STATUS_DESCRIPTION:()=>vy,ATTR_SERVER_ADDRESS:()=>Eo,ATTR_SERVER_PORT:()=>_o,ATTR_SERVICE_NAME:()=>po,ATTR_SERVICE_VERSION:()=>bc,ATTR_SIGNALR_CONNECTION_STATUS:()=>xy,ATTR_SIGNALR_TRANSPORT:()=>Uy,ATTR_TELEMETRY_SDK_LANGUAGE:()=>Fr,ATTR_TELEMETRY_SDK_NAME:()=>kr,ATTR_TELEMETRY_SDK_VERSION:()=>Yr,ATTR_URL_FRAGMENT:()=>$y,ATTR_URL_FULL:()=>To,ATTR_URL_PATH:()=>Qy,ATTR_URL_QUERY:()=>Jy,ATTR_URL_SCHEME:()=>Zy,ATTR_USER_AGENT_ORIGINAL:()=>Cc,AWSECSLAUNCHTYPEVALUES_EC2:()=>EL,AWSECSLAUNCHTYPEVALUES_FARGATE:()=>_L,AwsEcsLaunchtypeValues:()=>pL,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS:()=>Wx,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC:()=>zx,CLOUDPLATFORMVALUES_AWS_EC2:()=>qx,CLOUDPLATFORMVALUES_AWS_ECS:()=>Xx,CLOUDPLATFORMVALUES_AWS_EKS:()=>$x,CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK:()=>Jx,CLOUDPLATFORMVALUES_AWS_LAMBDA:()=>Qx,CLOUDPLATFORMVALUES_AZURE_AKS:()=>tL,CLOUDPLATFORMVALUES_AZURE_APP_SERVICE:()=>nL,CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES:()=>eL,CLOUDPLATFORMVALUES_AZURE_FUNCTIONS:()=>rL,CLOUDPLATFORMVALUES_AZURE_VM:()=>Zx,CLOUDPLATFORMVALUES_GCP_APP_ENGINE:()=>cL,CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS:()=>aL,CLOUDPLATFORMVALUES_GCP_CLOUD_RUN:()=>iL,CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE:()=>oL,CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE:()=>sL,CLOUDPROVIDERVALUES_ALIBABA_CLOUD:()=>Fx,CLOUDPROVIDERVALUES_AWS:()=>kx,CLOUDPROVIDERVALUES_AZURE:()=>Yx,CLOUDPROVIDERVALUES_GCP:()=>jx,CloudPlatformValues:()=>uL,CloudProviderValues:()=>Kx,DBCASSANDRACONSISTENCYLEVELVALUES_ALL:()=>MI,DBCASSANDRACONSISTENCYLEVELVALUES_ANY:()=>yI,DBCASSANDRACONSISTENCYLEVELVALUES_EACH_QUORUM:()=>bI,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_ONE:()=>DI,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_QUORUM:()=>CI,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_SERIAL:()=>wI,DBCASSANDRACONSISTENCYLEVELVALUES_ONE:()=>vI,DBCASSANDRACONSISTENCYLEVELVALUES_QUORUM:()=>II,DBCASSANDRACONSISTENCYLEVELVALUES_SERIAL:()=>UI,DBCASSANDRACONSISTENCYLEVELVALUES_THREE:()=>LI,DBCASSANDRACONSISTENCYLEVELVALUES_TWO:()=>xI,DBSYSTEMVALUES_ADABAS:()=>Xb,DBSYSTEMVALUES_CACHE:()=>qb,DBSYSTEMVALUES_CASSANDRA:()=>pI,DBSYSTEMVALUES_CLOUDSCAPE:()=>Hb,DBSYSTEMVALUES_COCKROACHDB:()=>NI,DBSYSTEMVALUES_COLDFUSION:()=>_I,DBSYSTEMVALUES_COSMOSDB:()=>mI,DBSYSTEMVALUES_COUCHBASE:()=>dI,DBSYSTEMVALUES_COUCHDB:()=>fI,DBSYSTEMVALUES_DB2:()=>wb,DBSYSTEMVALUES_DERBY:()=>Qb,DBSYSTEMVALUES_DYNAMODB:()=>AI,DBSYSTEMVALUES_EDB:()=>zb,DBSYSTEMVALUES_ELASTICSEARCH:()=>OI,DBSYSTEMVALUES_FILEMAKER:()=>
1Jb,DBSYSTEMVALUES_FIREBIRD:()=>$b,DBSYSTEMVALUES_FIRSTSQL:()=>Wb,DBSYSTEMVALUES_GEODE:()=>RI,DBSYSTEMVALUES_H2:()=>EI,DBSYSTEMVALUES_HANADB:()=>jb,DBSYSTEMVALUES_HBASE:()=>TI,DBSYSTEMVALUES_HIVE:()=>Gb,DBSYSTEMVALUES_HSQLDB:()=>Fb,DBSYSTEMVALUES_INFORMIX:()=>Zb,DBSYSTEMVALUES_INGRES:()=>Kb,DBSYSTEMVALUES_INSTANTDB:()=>eI,DBSYSTEMVALUES_INTERBASE:()=>tI,DBSYSTEMVALUES_MARIADB:()=>rI,DBSYSTEMVALUES_MAXDB:()=>Yb,DBSYSTEMVALUES_MEMCACHED:()=>hI,DBSYSTEMVALUES_MONGODB:()=>lI,DBSYSTEMVALUES_MSSQL:()=>Db,DBSYSTEMVALUES_MYSQL:()=>yb,DBSYSTEMVALUES_NEO4J:()=>gI,DBSYSTEMVALUES_NETEZZA:()=>nI,DBSYSTEMVALUES_ORACLE:()=>Ub,DBSYSTEMVALUES_OTHER_SQL:()=>Lb,DBSYSTEMVALUES_PERVASIVE:()=>oI,DBSYSTEMVALUES_POINTBASE:()=>iI,DBSYSTEMVALUES_POSTGRESQL:()=>Vb,DBSYSTEMVALUES_PROGRESS:()=>kb,DBSYSTEMVALUES_REDIS:()=>SI,DBSYSTEMVALUES_REDSHIFT:()=>Bb,DBSYSTEMVALUES_SQLITE:()=>sI,DBSYSTEMVALUES_SYBASE:()=>aI,DBSYSTEMVALUES_TERADATA:()=>cI,DBSYSTEMVALUES_VERTICA:()=>uI,DB_SYSTEM_NAME_VALUE_MARIADB:()=>ND,DB_SYSTEM_NAME_VALUE_MICROSOFT_SQL_SERVER:()=>PD,DB_SYSTEM_NAME_VALUE_MYSQL:()=>MD,DB_SYSTEM_NAME_VALUE_POSTGRESQL:()=>bD,DOTNET_GC_HEAP_GENERATION_VALUE_GEN0:()=>CD,DOTNET_GC_HEAP_GENERATION_VALUE_GEN1:()=>vD,DOTNET_GC_HEAP_GENERATION_VALUE_GEN2:()=>xD,DOTNET_GC_HEAP_GENERATION_VALUE_LOH:()=>LD,DOTNET_GC_HEAP_GENERATION_VALUE_POH:()=>DD,DbCassandraConsistencyLevelValues:()=>VI,DbSystemValues:()=>PI,ERROR_TYPE_VALUE_OTHER:()=>yD,EVENT_EXCEPTION:()=>QU,FAASDOCUMENTOPERATIONVALUES_DELETE:()=>WI,FAASDOCUMENTOPERATIONVALUES_EDIT:()=>KI,FAASDOCUMENTOPERATIONVALUES_INSERT:()=>jI,FAASINVOKEDPROVIDERVALUES_ALIBABA_CLOUD:()=>qI,FAASINVOKEDPROVIDERVALUES_AWS:()=>XI,FAASINVOKEDPROVIDERVALUES_AZURE:()=>$I,FAASINVOKEDPROVIDERVALUES_GCP:()=>QI,FAASTRIGGERVALUES_DATASOURCE:()=>BI,FAASTRIGGERVALUES_HTTP:()=>GI,FAASTRIGGERVALUES_OTHER:()=>kI,FAASTRIGGERVALUES_PUBSUB:()=>HI,FAASTRIGGERVALUES_TIMER:()=>FI,FaasDocumentOperationValues:()=>zI,FaasInvokedProviderValues:()=>JI,FaasTriggerValues:()=>YI,HOSTARCHVALUES_AMD64:()=>TL,HOSTARCHVALUES_ARM32:()=>lL,HOSTARCHVALUES_ARM64:()=>SL,HOSTARCHVALUES_IA64:()=>dL,HOSTARCHVALUES_PPC32:()=>fL,HOSTARCHVALUES_PPC64:()=>mL,HOSTARCHVALUES_X86:()=>AL,HTTPFLAVORVALUES_HTTP_1_0:()=>UC,HTTPFLAVORVALUES_HTTP_1_1:()=>wC,HTTPFLAVORVALUES_HTTP_2_0:()=>VC,HTTPFLAVORVALUES_QUIC:()=>GC,HTTPFLAVORVALUES_SPDY:()=>BC,HTTP_REQUEST_METHOD_VALUE_CONNECT:()=>BD,HTTP_REQUEST_METHOD_VALUE_DELETE:()=>GD,HTTP_REQUEST_METHOD_VALUE_GET:()=>HD,HTTP_REQUEST_METHOD_VALUE_HEAD:()=>FD,HTTP_REQUEST_METHOD_VALUE_OPTIONS:()=>kD,HTTP_REQUEST_METHOD_VALUE_OTHER:()=>VD,HTTP_REQUEST_METHOD_VALUE_PATCH:()=>YD,HTTP_REQUEST_METHOD_VALUE_POST:()=>jD,HTTP_REQUEST_METHOD_VALUE_PUT:()=>KD,HTTP_REQUEST_METHOD_VALUE_TRACE:()=>WD,HostArchValues:()=>gL,HttpFlavorValues:()=>HC,JVM_MEMORY_TYPE_VALUE_HEAP:()=>ey,JVM_MEMORY_TYPE_VALUE_NON_HEAP:()=>ty,JVM_THREAD_STATE_VALUE_BLOCKED:()=>oy,JVM_THREAD_STATE_VALUE_NEW:()=>iy,JVM_THREAD_STATE_VALUE_RUNNABLE:()=>sy,JVM_THREAD_STATE_VALUE_TERMINATED:()=>ay,JVM_THREAD_STATE_VALUE_TIMED_WAITING:()=>cy,JVM_THREAD_STATE_VALUE_WAITING:()=>uy,MESSAGETYPEVALUES_RECEIVED:()=>pv,MESSAGETYPEVALUES_SENT:()=>_v,MESSAGINGDESTINATIONKINDVALUES_QUEUE:()=>FC,MESSAGINGDESTINATIONKINDVALUES_TOPIC:()=>kC,MESSAGINGOPERATIONVALUES_PROCESS:()=>KC,MESSAGINGOPERATIONVALUES_RECEIVE:()=>jC,METRIC_ASPNETCORE_DIAGNOSTICS_EXCEPTIONS:()=>eU,METRIC_ASPNETCORE_RATE_LIMITING_ACTIVE_REQUEST_LEASES:()=>tU,METRIC_ASPNETCORE_RATE_LIMITING_QUEUED_REQUESTS:()=>rU,METRIC_ASPNETCORE_RATE_LIMITING_REQUESTS:()=>iU,METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_LEASE_DURATION:()=>oU,METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_TIME_IN_QUEUE:()=>nU,METRIC_ASPNETCORE_ROUTING_MATCH_ATTEMPTS:()=>sU,METRIC_DB_CLIENT_OPERATION_DURATION:()=>aU,METRIC_DOTNET_ASSEMBLY_COUNT:()=>cU,METRIC_DOTNET_EXCEPTIONS:()=>uU,METRIC_DOTNET_GC_COLLECTIONS:()=>EU,METRIC_DOTNET_GC_HEAP_TOTAL_ALLOCATED:()=>_U,METRIC_DOTNET_GC_LAST_COLLECTION_HEAP_FRAGMENTATION_SIZE:()=>pU,METRIC_DOTNET_GC_LAST_COLLECTION_HEAP_SIZE:()=>TU,METRIC_DOTNET_GC_LAST_COLLECTION_MEMORY_COMMITTED_SIZE:()=>lU,METRIC_DOTNET_GC_PAUSE_TIME:()=>SU,METRIC_DOTNET_JIT_COMPILATION_TIME:()=>dU,METRIC_DOTNET_JIT_COMPILED_IL_SIZE:()=>fU,METRIC_DOTNET_JIT_COMPILED_METHODS:()=>mU,METRIC_DOTNET_MONITOR_LOCK_CONTENTIONS:()=>AU,METRIC_DOTNET_PROCESS_CPU_COUNT:()=>gU,METRIC_DOTNET_PROCESS_CPU_TIME:()=>RU,METRIC_DOTNET_PROCESS_MEMORY_WORKING_SET:()=>OU,METRIC_DOTNET_THREAD_POOL_QUEUE_LENGTH:()=>hU,METRIC_DOTNET_THREAD_POOL_THREAD_COUNT:()=>NU,METRIC_DOTNET_THREAD_POOL_WORK_ITEM_COUNT:()=>PU,METRIC_DOTNET_TIMER_COUNT:()=>MU,METRIC_HTTP_CLIENT_REQUEST_DURATION:()=>bU,METRIC_HTTP_SERVER_REQUEST_DURATION:()=>IU,METRIC_JVM_CLASS_COUNT:()=>CU,METRIC_JVM_CLASS_LOADED:()=>vU,METRIC_JVM_CLASS_UNLOADED:()=>xU,METRIC_JVM_CPU_COUNT:()=>LU,METRIC_JVM_CPU_RECENT_UTILIZATION:()=>DU,METRIC_JVM_CPU_TIME:()=>yU,METRIC_JVM_GC_DURATION:()=>UU,METRIC_JVM_MEMORY_COMMITTED:()=>wU,METRIC_JVM_MEMORY_LIMIT:()=>VU,METRIC_JVM_MEMORY_USED:()=>BU,METRIC_JVM_MEMORY_USED_AFTER_LAST_GC:()=>GU,METRIC_JVM_THREAD_COUNT:()=>HU,METRIC_KESTREL_ACTIVE_CONNECTIONS:()=>FU,METRIC_KESTREL_ACTIVE_TLS_HANDSHAKES:()=>kU,METRIC_KESTREL_CONNECTION_DURATION:()=>YU,METRIC_KESTREL_QUEUED_CONNECTIONS:()=>jU,METRIC_KESTREL_QUEUED_REQUESTS:()=>KU,METRIC_KESTREL_REJECTED_CONNECTIONS:()=>WU,METRIC_KESTREL_TLS_HANDSHAKE_DURATION:()=>zU,METRIC_KESTREL_UPGRADED_CONNECTIONS:()=>qU,METRIC_SIGNALR_SERVER_ACTIVE_CONNECTIONS:()=>XU,METRIC_SIGNALR_SERVER_CONNECTION_DURATION:()=>$U,MessageTypeValues:()=>Tv,MessagingDestinationKindValues:()=>YC,MessagingOperationValues:()=>WC,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA:()=>dC,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA2000_1XRTT:()=>AC,NETHOSTCONNECTIONSUBTYPEVALUES_EDGE:()=>lC,NETHOSTCONNECTIONSUBTYPEVALUES_EHRPD:()=>MC,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_0:()=>fC,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_A:()=>mC,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_B:()=>NC,NETHOSTCONNECTIONSUBTYPEVALUES_GPRS:()=>TC,NETHOSTCONNECTIONSUBTYPEVALUES_GSM:()=>IC,NETHOSTCONNECTIONSUBTYPEVALUES_HSDPA:()=>gC,NETHOSTCONNECTIONSUBTYPEVALUES_HSPA:()=>OC,NETHOSTCONNECTIONSUBTYPEVALUES_HSPAP:()=>bC,NETHOSTCONNECTIONSUBTYPEVALUES_HSUPA:()=>RC,NETHOSTCONNECTIONSUBTYPEVALUES_IDEN:()=>hC,NETHOSTCONNECTIONSUBTYPEVALUES_IWLAN:()=>vC,NETHOSTCONNECTIONSUBTYPEVALUES_LTE:()=>PC,NETHOSTCONNECTIONSUBTYPEVALUES_LTE_CA:()=>DC,NETHOSTCONNECTIONSUBTYPEVALUES_NR:()=>xC,NETHOSTCONNECTIONSUBTYPEVALUES_NRNSA:()=>LC,NETHOSTCONNECTIONSUBTYPEVALUES_TD_SCDMA:()=>
1CC,NETHOSTCONNECTIONSUBTYPEVALUES_UMTS:()=>SC,NETHOSTCONNECTIONTYPEVALUES_CELL:()=>uC,NETHOSTCONNECTIONTYPEVALUES_UNAVAILABLE:()=>EC,NETHOSTCONNECTIONTYPEVALUES_UNKNOWN:()=>_C,NETHOSTCONNECTIONTYPEVALUES_WIFI:()=>aC,NETHOSTCONNECTIONTYPEVALUES_WIRED:()=>cC,NETTRANSPORTVALUES_INPROC:()=>oC,NETTRANSPORTVALUES_IP:()=>tC,NETTRANSPORTVALUES_IP_TCP:()=>ZI,NETTRANSPORTVALUES_IP_UDP:()=>eC,NETTRANSPORTVALUES_OTHER:()=>iC,NETTRANSPORTVALUES_PIPE:()=>nC,NETTRANSPORTVALUES_UNIX:()=>rC,NETWORK_TRANSPORT_VALUE_PIPE:()=>fy,NETWORK_TRANSPORT_VALUE_QUIC:()=>my,NETWORK_TRANSPORT_VALUE_TCP:()=>Ay,NETWORK_TRANSPORT_VALUE_UDP:()=>gy,NETWORK_TRANSPORT_VALUE_UNIX:()=>Ry,NETWORK_TYPE_VALUE_IPV4:()=>hy,NETWORK_TYPE_VALUE_IPV6:()=>Ny,NetHostConnectionSubtypeValues:()=>yC,NetHostConnectionTypeValues:()=>pC,NetTransportValues:()=>sC,OSTYPEVALUES_AIX:()=>CL,OSTYPEVALUES_DARWIN:()=>hL,OSTYPEVALUES_DRAGONFLYBSD:()=>bL,OSTYPEVALUES_FREEBSD:()=>NL,OSTYPEVALUES_HPUX:()=>IL,OSTYPEVALUES_LINUX:()=>OL,OSTYPEVALUES_NETBSD:()=>PL,OSTYPEVALUES_OPENBSD:()=>ML,OSTYPEVALUES_SOLARIS:()=>vL,OSTYPEVALUES_WINDOWS:()=>RL,OSTYPEVALUES_Z_OS:()=>xL,OTEL_STATUS_CODE_VALUE_ERROR:()=>Iy,OTEL_STATUS_CODE_VALUE_OK:()=>Cy,OsTypeValues:()=>LL,RPCGRPCSTATUSCODEVALUES_ABORTED:()=>nv,RPCGRPCSTATUSCODEVALUES_ALREADY_EXISTS:()=>ZC,RPCGRPCSTATUSCODEVALUES_CANCELLED:()=>qC,RPCGRPCSTATUSCODEVALUES_DATA_LOSS:()=>cv,RPCGRPCSTATUSCODEVALUES_DEADLINE_EXCEEDED:()=>QC,RPCGRPCSTATUSCODEVALUES_FAILED_PRECONDITION:()=>rv,RPCGRPCSTATUSCODEVALUES_INTERNAL:()=>sv,RPCGRPCSTATUSCODEVALUES_INVALID_ARGUMENT:()=>$C,RPCGRPCSTATUSCODEVALUES_NOT_FOUND:()=>JC,RPCGRPCSTATUSCODEVALUES_OK:()=>zC,RPCGRPCSTATUSCODEVALUES_OUT_OF_RANGE:()=>ov,RPCGRPCSTATUSCODEVALUES_PERMISSION_DENIED:()=>ev,RPCGRPCSTATUSCODEVALUES_RESOURCE_EXHAUSTED:()=>tv,RPCGRPCSTATUSCODEVALUES_UNAUTHENTICATED:()=>uv,RPCGRPCSTATUSCODEVALUES_UNAVAILABLE:()=>av,RPCGRPCSTATUSCODEVALUES_UNIMPLEMENTED:()=>iv,RPCGRPCSTATUSCODEVALUES_UNKNOWN:()=>XC,RpcGrpcStatusCodeValues:()=>Ev,SEMATTRS_AWS_DYNAMODB_ATTRIBUTES_TO_GET:()=>HM,SEMATTRS_AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS:()=>JM,SEMATTRS_AWS_DYNAMODB_CONSISTENT_READ:()=>VM,SEMATTRS_AWS_DYNAMODB_CONSUMED_CAPACITY:()=>DM,SEMATTRS_AWS_DYNAMODB_COUNT:()=>$M,SEMATTRS_AWS_DYNAMODB_EXCLUSIVE_START_TABLE:()=>KM,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES:()=>YM,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES:()=>ZM,SEMATTRS_AWS_DYNAMODB_INDEX_NAME:()=>FM,SEMATTRS_AWS_DYNAMODB_ITEM_COLLECTION_METRICS:()=>yM,SEMATTRS_AWS_DYNAMODB_LIMIT:()=>GM,SEMATTRS_AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES:()=>jM,SEMATTRS_AWS_DYNAMODB_PROJECTION:()=>BM,SEMATTRS_AWS_DYNAMODB_PROVISIONED_READ_CAPACITY:()=>UM,SEMATTRS_AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY:()=>wM,SEMATTRS_AWS_DYNAMODB_SCANNED_COUNT:()=>QM,SEMATTRS_AWS_DYNAMODB_SCAN_FORWARD:()=>zM,SEMATTRS_AWS_DYNAMODB_SEGMENT:()=>qM,SEMATTRS_AWS_DYNAMODB_SELECT:()=>kM,SEMATTRS_AWS_DYNAMODB_TABLE_COUNT:()=>WM,SEMATTRS_AWS_DYNAMODB_TABLE_NAMES:()=>LM,SEMATTRS_AWS_DYNAMODB_TOTAL_SEGMENTS:()=>XM,SEMATTRS_AWS_LAMBDA_INVOKED_ARN:()=>_P,SEMATTRS_CODE_FILEPATH:()=>SM,SEMATTRS_CODE_FUNCTION:()=>TM,SEMATTRS_CODE_LINENO:()=>dM,SEMATTRS_CODE_NAMESPACE:()=>lM,SEMATTRS_DB_CASSANDRA_CONSISTENCY_LEVEL:()=>OP,SEMATTRS_DB_CASSANDRA_COORDINATOR_DC:()=>bP,SEMATTRS_DB_CASSANDRA_COORDINATOR_ID:()=>MP,SEMATTRS_DB_CASSANDRA_IDEMPOTENCE:()=>NP,SEMATTRS_DB_CASSANDRA_KEYSPACE:()=>gP,SEMATTRS_DB_CASSANDRA_PAGE_SIZE:()=>RP,SEMATTRS_DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT:()=>PP,SEMATTRS_DB_CASSANDRA_TABLE:()=>hP,SEMATTRS_DB_CONNECTION_STRING:()=>TP,SEMATTRS_DB_HBASE_NAMESPACE:()=>IP,SEMATTRS_DB_JDBC_DRIVER_CLASSNAME:()=>SP,SEMATTRS_DB_MONGODB_COLLECTION:()=>vP,SEMATTRS_DB_MSSQL_INSTANCE_NAME:()=>AP,SEMATTRS_DB_NAME:()=>dP,SEMATTRS_DB_OPERATION:()=>mP,SEMATTRS_DB_REDIS_DATABASE_INDEX:()=>CP,SEMATTRS_DB_SQL_TABLE:()=>xP,SEMATTRS_DB_STATEMENT:()=>fP,SEMATTRS_DB_SYSTEM:()=>pP,SEMATTRS_DB_USER:()=>lP,SEMATTRS_ENDUSER_ID:()=>cM,SEMATTRS_ENDUSER_ROLE:()=>uM,SEMATTRS_ENDUSER_SCOPE:()=>EM,SEMATTRS_EXCEPTION_ESCAPED:()=>UP,SEMATTRS_EXCEPTION_MESSAGE:()=>DP,SEMATTRS_EXCEPTION_STACKTRACE:()=>yP,SEMATTRS_EXCEPTION_TYPE:()=>LP,SEMATTRS_FAAS_COLDSTART:()=>jP,SEMATTRS_FAAS_CRON:()=>YP,SEMATTRS_FAAS_DOCUMENT_COLLECTION:()=>BP,SEMATTRS_FAAS_DOCUMENT_NAME:()=>FP,SEMATTRS_FAAS_DOCUMENT_OPERATION:()=>GP,SEMATTRS_FAAS_DOCUMENT_TIME:()=>HP,SEMATTRS_FAAS_EXECUTION:()=>VP,SEMATTRS_FAAS_INVOKED_NAME:()=>KP,SEMATTRS_FAAS_INVOKED_PROVIDER:()=>WP,SEMATTRS_FAAS_INVOKED_REGION:()=>zP,SEMATTRS_FAAS_TIME:()=>kP,SEMATTRS_FAAS_TRIGGER:()=>wP,SEMATTRS_HTTP_CLIENT_IP:()=>xM,SEMATTRS_HTTP_FLAVOR:()=>hM,SEMATTRS_HTTP_HOST:()=>gM,SEMATTRS_HTTP_METHOD:()=>fM,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH:()=>PM,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED:()=>MM,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH:()=>bM,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED:()=>IM,SEMATTRS_HTTP_ROUTE:()=>vM,SEMATTRS_HTTP_SCHEME:()=>RM,SEMATTRS_HTTP_SERVER_NAME:()=>CM,SEMATTRS_HTTP_STATUS_CODE:()=>OM,SEMATTRS_HTTP_TARGET:()=>AM,SEMATTRS_HTTP_URL:()=>mM,SEMATTRS_HTTP_USER_AGENT:()=>NM,SEMATTRS_MESSAGE_COMPRESSED_SIZE:()=>Cb,SEMATTRS_MESSAGE_ID:()=>Ib,SEMATTRS_MESSAGE_TYPE:()=>bb,SEMATTRS_MESSAGE_UNCOMPRESSED_SIZE:()=>vb,SEMATTRS_MESSAGING_CONSUMER_ID:()=>pb,SEMATTRS_MESSAGING_CONVERSATION_ID:()=>cb,SEMATTRS_MESSAGING_DESTINATION:()=>tb,SEMATTRS_MESSAGING_DESTINATION_KIND:()=>rb,SEMATTRS_MESSAGING_KAFKA_CLIENT_ID:()=>db,SEMATTRS_MESSAGING_KAFKA_CONSUMER_GROUP:()=>Sb,SEMATTRS_MESSAGING_KAFKA_MESSAGE_KEY:()=>lb,SEMATTRS_MESSAGING_KAFKA_PARTITION:()=>fb,SEMATTRS_MESSAGING_KAFKA_TOMBSTONE:()=>mb,SEMATTRS_MESSAGING_MESSAGE_ID:()=>ab,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES:()=>Eb,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES:()=>ub,SEMATTRS_MESSAGING_OPERATION:()=>_b,SEMATTRS_MESSAGING_PROTOCOL:()=>ob,SEMATTRS_MESSAGING_PROTOCOL_VERSION:()=>ib,SEMATTRS_MESSAGING_RABBITMQ_ROUTING_KEY:()=>Tb,SEMATTRS_MESSAGING_SYSTEM:()=>eb,SEMATTRS_MESSAGING_TEMP_DESTINATION:()=>nb,SEMATTRS_MESSAGING_URL:()=>sb,SEMATTRS_NET_HOST_CARRIER_ICC:()=>sM,SEMATTRS_NET_HOST_CARRIER_MCC:()=>oM,SEMATTRS_NET_HOST_CARRIER_MNC:()=>iM,SEMATTRS_NET_HOST_CARRIER_NAME:()=>nM,SEMATTRS_NET_HOST_CONNECTION_SUBTYPE:()=>rM,SEMATTRS_NET_HOST_CONNECTION_TYPE:()=>tM,SEMATTRS_NET_HOST_IP:()=>JP,SEMATTRS_NET_HOST_NAME:()=>eM,SEMATTRS_NET_HOST_PORT:()=>ZP,SEMATTRS_NET_PEER_IP:()=>XP,SEMATTRS_NET_PEER_NAME:()=>QP,SEMATTRS_NET_PEER_PORT:()=>$P,SEMATTRS_NET_TRANSPORT:()=>qP,SEMATTRS_PEER_SERVICE:()=>aM,SEMATTRS_RPC_GRPC_STATUS_CODE:()=>Ob,SEMATTRS_RPC_JSONRPC_ERROR_CODE:()=>
1Pb,SEMATTRS_RPC_JSONRPC_ERROR_MESSAGE:()=>Mb,SEMATTRS_RPC_JSONRPC_REQUEST_ID:()=>Nb,SEMATTRS_RPC_JSONRPC_VERSION:()=>hb,SEMATTRS_RPC_METHOD:()=>Rb,SEMATTRS_RPC_SERVICE:()=>gb,SEMATTRS_RPC_SYSTEM:()=>Ab,SEMATTRS_THREAD_ID:()=>_M,SEMATTRS_THREAD_NAME:()=>pM,SEMRESATTRS_AWS_ECS_CLUSTER_ARN:()=>gv,SEMRESATTRS_AWS_ECS_CONTAINER_ARN:()=>Av,SEMRESATTRS_AWS_ECS_LAUNCHTYPE:()=>Rv,SEMRESATTRS_AWS_ECS_TASK_ARN:()=>Ov,SEMRESATTRS_AWS_ECS_TASK_FAMILY:()=>hv,SEMRESATTRS_AWS_ECS_TASK_REVISION:()=>Nv,SEMRESATTRS_AWS_EKS_CLUSTER_ARN:()=>Pv,SEMRESATTRS_AWS_LOG_GROUP_ARNS:()=>bv,SEMRESATTRS_AWS_LOG_GROUP_NAMES:()=>Mv,SEMRESATTRS_AWS_LOG_STREAM_ARNS:()=>Cv,SEMRESATTRS_AWS_LOG_STREAM_NAMES:()=>Iv,SEMRESATTRS_CLOUD_ACCOUNT_ID:()=>Sv,SEMRESATTRS_CLOUD_AVAILABILITY_ZONE:()=>fv,SEMRESATTRS_CLOUD_PLATFORM:()=>mv,SEMRESATTRS_CLOUD_PROVIDER:()=>lv,SEMRESATTRS_CLOUD_REGION:()=>dv,SEMRESATTRS_CONTAINER_ID:()=>xv,SEMRESATTRS_CONTAINER_IMAGE_NAME:()=>Dv,SEMRESATTRS_CONTAINER_IMAGE_TAG:()=>yv,SEMRESATTRS_CONTAINER_NAME:()=>vv,SEMRESATTRS_CONTAINER_RUNTIME:()=>Lv,SEMRESATTRS_DEPLOYMENT_ENVIRONMENT:()=>Pc,SEMRESATTRS_DEVICE_ID:()=>Uv,SEMRESATTRS_DEVICE_MODEL_IDENTIFIER:()=>wv,SEMRESATTRS_DEVICE_MODEL_NAME:()=>Vv,SEMRESATTRS_FAAS_ID:()=>Gv,SEMRESATTRS_FAAS_INSTANCE:()=>Fv,SEMRESATTRS_FAAS_MAX_MEMORY:()=>kv,SEMRESATTRS_FAAS_NAME:()=>Bv,SEMRESATTRS_FAAS_VERSION:()=>Hv,SEMRESATTRS_HOST_ARCH:()=>Wv,SEMRESATTRS_HOST_ID:()=>Yv,SEMRESATTRS_HOST_IMAGE_ID:()=>qv,SEMRESATTRS_HOST_IMAGE_NAME:()=>zv,SEMRESATTRS_HOST_IMAGE_VERSION:()=>Xv,SEMRESATTRS_HOST_NAME:()=>jv,SEMRESATTRS_HOST_TYPE:()=>Kv,SEMRESATTRS_K8S_CLUSTER_NAME:()=>$v,SEMRESATTRS_K8S_CONTAINER_NAME:()=>rx,SEMRESATTRS_K8S_CRONJOB_NAME:()=>lx,SEMRESATTRS_K8S_CRONJOB_UID:()=>Tx,SEMRESATTRS_K8S_DAEMONSET_NAME:()=>Ex,SEMRESATTRS_K8S_DAEMONSET_UID:()=>ux,SEMRESATTRS_K8S_DEPLOYMENT_NAME:()=>sx,SEMRESATTRS_K8S_DEPLOYMENT_UID:()=>ix,SEMRESATTRS_K8S_JOB_NAME:()=>px,SEMRESATTRS_K8S_JOB_UID:()=>_x,SEMRESATTRS_K8S_NAMESPACE_NAME:()=>Zv,SEMRESATTRS_K8S_NODE_NAME:()=>Qv,SEMRESATTRS_K8S_NODE_UID:()=>Jv,SEMRESATTRS_K8S_POD_NAME:()=>tx,SEMRESATTRS_K8S_POD_UID:()=>ex,SEMRESATTRS_K8S_REPLICASET_NAME:()=>ox,SEMRESATTRS_K8S_REPLICASET_UID:()=>nx,SEMRESATTRS_K8S_STATEFULSET_NAME:()=>cx,SEMRESATTRS_K8S_STATEFULSET_UID:()=>ax,SEMRESATTRS_OS_DESCRIPTION:()=>dx,SEMRESATTRS_OS_NAME:()=>fx,SEMRESATTRS_OS_TYPE:()=>Sx,SEMRESATTRS_OS_VERSION:()=>mx,SEMRESATTRS_PROCESS_COMMAND:()=>Ox,SEMRESATTRS_PROCESS_COMMAND_ARGS:()=>Nx,SEMRESATTRS_PROCESS_COMMAND_LINE:()=>hx,SEMRESATTRS_PROCESS_EXECUTABLE_NAME:()=>gx,SEMRESATTRS_PROCESS_EXECUTABLE_PATH:()=>Rx,SEMRESATTRS_PROCESS_OWNER:()=>Px,SEMRESATTRS_PROCESS_PID:()=>Ax,SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION:()=>Ix,SEMRESATTRS_PROCESS_RUNTIME_NAME:()=>Mx,SEMRESATTRS_PROCESS_RUNTIME_VERSION:()=>bx,SEMRESATTRS_SERVICE_INSTANCE_ID:()=>xx,SEMRESATTRS_SERVICE_NAME:()=>Cx,SEMRESATTRS_SERVICE_NAMESPACE:()=>vx,SEMRESATTRS_SERVICE_VERSION:()=>Lx,SEMRESATTRS_TELEMETRY_AUTO_VERSION:()=>wx,SEMRESATTRS_TELEMETRY_SDK_LANGUAGE:()=>yx,SEMRESATTRS_TELEMETRY_SDK_NAME:()=>Dx,SEMRESATTRS_TELEMETRY_SDK_VERSION:()=>Ux,SEMRESATTRS_WEBENGINE_DESCRIPTION:()=>Gx,SEMRESATTRS_WEBENGINE_NAME:()=>Vx,SEMRESATTRS_WEBENGINE_VERSION:()=>Bx,SIGNALR_CONNECTION_STATUS_VALUE_APP_SHUTDOWN:()=>Ly,SIGNALR_CONNECTION_STATUS_VALUE_NORMAL_CLOSURE:()=>Dy,SIGNALR_CONNECTION_STATUS_VALUE_TIMEOUT:()=>yy,SIGNALR_TRANSPORT_VALUE_LONG_POLLING:()=>wy,SIGNALR_TRANSPORT_VALUE_SERVER_SENT_EVENTS:()=>Vy,SIGNALR_TRANSPORT_VALUE_WEB_SOCKETS:()=>By,SemanticAttributes:()=>xb,SemanticResourceAttributes:()=>Hx,TELEMETRYSDKLANGUAGEVALUES_CPP:()=>DL,TELEMETRYSDKLANGUAGEVALUES_DOTNET:()=>yL,TELEMETRYSDKLANGUAGEVALUES_ERLANG:()=>UL,TELEMETRYSDKLANGUAGEVALUES_GO:()=>wL,TELEMETRYSDKLANGUAGEVALUES_JAVA:()=>VL,TELEMETRYSDKLANGUAGEVALUES_NODEJS:()=>BL,TELEMETRYSDKLANGUAGEVALUES_PHP:()=>GL,TELEMETRYSDKLANGUAGEVALUES_PYTHON:()=>HL,TELEMETRYSDKLANGUAGEVALUES_RUBY:()=>FL,TELEMETRYSDKLANGUAGEVALUES_WEBJS:()=>kL,TELEMETRY_SDK_LANGUAGE_VALUE_CPP:()=>Gy,TELEMETRY_SDK_LANGUAGE_VALUE_DOTNET:()=>Hy,TELEMETRY_SDK_LANGUAGE_VALUE_ERLANG:()=>Fy,TELEMETRY_SDK_LANGUAGE_VALUE_GO:()=>ky,TELEMETRY_SDK_LANGUAGE_VALUE_JAVA:()=>Yy,TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS:()=>jy,TELEMETRY_SDK_LANGUAGE_VALUE_PHP:()=>Ky,TELEMETRY_SDK_LANGUAGE_VALUE_PYTHON:()=>Wy,TELEMETRY_SDK_LANGUAGE_VALUE_RUBY:()=>zy,TELEMETRY_SDK_LANGUAGE_VALUE_RUST:()=>qy,TELEMETRY_SDK_LANGUAGE_VALUE_SWIFT:()=>Xy,TELEMETRY_SDK_LANGUAGE_VALUE_WEBJS:()=>Ic,TelemetrySdkLanguageValues:()=>YL});var Lt=g(()=>{$f();Og();hg();Ng();Pg()});var kg=P(ye=>{"use strict";
1Object.defineProperty(ye,"__esModule",{value:!0});ye.toAnyValue=ye.toKeyValue=ye.toAttributes=ye.createInstrumentationScope=ye.createResource=void 0;function b0(e){return{attributes:Fg(e.attributes),droppedAttributesCount:0}}ye.createResource=b0;function I0(e){return{name:e.name,version:e.version}}ye.createInstrumentationScope=I0;function Fg(e){return Object.keys(e).map(t=>Vc(t,e[t]))}ye.toAttributes=Fg;function Vc(e,t){return{key:e,value:Bc(t)}}ye.toKeyValue=Vc;function Bc(e){let t=typeof e;return t==="string"?{stringValue:e}:t==="number"?Number.isInteger(e)?{intValue:e}:{doubleValue:e}:t==="boolean"?{boolValue:e}:e instanceof Uint8Array?{bytesValue:e}:Array.isArray(e)?{arrayValue:{values:e.map(Bc)}}:t==="object"&&e!=null?{kvlistValue:{values:Object.entries(e).map(([r,n])=>Vc(r,n))}}:{}}ye.toAnyValue=Bc});var mo=P(yt=>{"use strict";Object.defineProperty(yt,"__esModule",{value:!0});yt.isTracingSuppressed=yt.unsuppressTracing=yt.suppressTracing=void 0;var C0=(I(),Be(ce)),Gc=(0,C0.createContextKey)("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function v0(e){return e.setValue(Gc,!0)}yt.suppressTracing=v0;function x0(e){return e.deleteValue(Gc)}yt.unsuppressTracing=x0;function L0(e){return e.getValue(Gc)===!0}yt.isTracingSuppressed=L0});var Hc=P(ue=>{"use strict";Object.defineProperty(ue,"__esModule",{value:!0});ue.BAGGAGE_MAX_TOTAL_LENGTH=ue.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=ue.BAGGAGE_MAX_NAME_VALUE_PAIRS=ue.BAGGAGE_HEADER=ue.BAGGAGE_ITEMS_SEPARATOR=ue.BAGGAGE_PROPERTIES_SEPARATOR=ue.BAGGAGE_KEY_PAIR_SEPARATOR=void 0;ue.BAGGAGE_KEY_PAIR_SEPARATOR="=";ue.BAGGAGE_PROPERTIES_SEPARATOR=";";ue.BAGGAGE_ITEMS_SEPARATOR=",";ue.BAGGAGE_HEADER="baggage";ue.BAGGAGE_MAX_NAME_VALUE_PAIRS=180;ue.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=4096;ue.BAGGAGE_MAX_TOTAL_LENGTH=8192});var Fc=P(ot=>{"use strict";
1Object.defineProperty(ot,"__esModule",{value:!0});ot.parseKeyPairsIntoRecord=ot.parsePairKeyValue=ot.getKeyPairs=ot.serializeKeyPairs=void 0;var D0=(I(),Be(ce)),Er=Hc();function y0(e){return e.reduce((t,r)=>{let n=`${t}${t!==""?Er.BAGGAGE_ITEMS_SEPARATOR:""}${r}`;return n.length>Er.BAGGAGE_MAX_TOTAL_LENGTH?t:n},"")}ot.serializeKeyPairs=y0;function U0(e){return e.getAllEntries().map(([t,r])=>{let n=`${encodeURIComponent(t)}=${encodeURIComponent(r.value)}`;return r.metadata!==void 0&&(n+=Er.BAGGAGE_PROPERTIES_SEPARATOR+r.metadata.toString()),n})}ot.getKeyPairs=U0;function Yg(e){let t=e.split(Er.BAGGAGE_PROPERTIES_SEPARATOR);if(t.length<=0)return;let r=t.shift();if(!r)return;let n=r.indexOf(Er.BAGGAGE_KEY_PAIR_SEPARATOR);if(n<=0)return;let o=decodeURIComponent(r.substring(0,n).trim()),i=decodeURIComponent(r.substring(n+1).trim()),s;return t.length>0&&(s=(0,D0.baggageEntryMetadataFromString)(t.join(Er.BAGGAGE_PROPERTIES_SEPARATOR))),{key:o,value:i,metadata:s}}ot.parsePairKeyValue=Yg;function w0(e){let t={};return typeof e=="string"&&e.length>0&&e.split(Er.BAGGAGE_ITEMS_SEPARATOR).forEach(r=>{let n=Yg(r);n!==void 0&&n.value.length>0&&(t[n.key]=n.value)}),t}ot.parseKeyPairsIntoRecord=w0});var jg=P($i=>{"use strict";Object.defineProperty($i,"__esModule",{value:!0});$i.W3CBaggagePropagator=void 0;var kc=(I(),Be(ce)),V0=mo(),_r=Hc(),Yc=Fc(),jc=class{inject(t,r,n){let o=kc.propagation.getBaggage(t);if(!o||(0,V0.isTracingSuppressed)(t))return;let i=(0,Yc.getKeyPairs)(o).filter(a=>a.length<=_r.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS).slice(0,_r.BAGGAGE_MAX_NAME_VALUE_PAIRS),s=(0,Yc.serializeKeyPairs)(i);s.length>0&&n.set(r,_r.BAGGAGE_HEADER,s)}extract(t,r,n){let o=n.get(r,_r.BAGGAGE_HEADER),i=Array.isArray(o)?o.join(_r.BAGGAGE_ITEMS_SEPARATOR):o;if(!i)return t;let s={};return i.length===0||(i.split(_r.BAGGAGE_ITEMS_SEPARATOR).forEach(c=>{let E=(0,Yc.parsePairKeyValue)(c);if(E){let u={value:E.value};E.metadata&&(u.metadata=E.metadata),s[E.key]=u}}),Object.entries(s).length===0)?t:kc.propagation.setBaggage(t,kc.propagation.createBaggage(s))}fields(){return[_r.BAGGAGE_HEADER]}};$i.W3CBaggagePropagator=jc});var Kg=P(Qi=>{"use strict";Object.defineProperty(Qi,"__esModule",{value:!0});Qi.AnchoredClock=void 0;var Kc=class{_monotonicClock;_epochMillis;_performanceMillis;constructor(t,r){this._monotonicClock=r,this._epochMillis=t.now(),this._performanceMillis=r.now()}now(){let t=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+t}};Qi.AnchoredClock=Kc});var $g=P(Ut=>{"use strict";Object.defineProperty(Ut,"__esModule",{value:!0});Ut.isAttributeValue=Ut.isAttributeKey=Ut.sanitizeAttributes=void 0;var Wg=(I(),Be(ce));function B0(e){let t={};if(typeof e!="object"||e==null)return t;for(let[r,n]of Object.entries(e)){if(!zg(r)){Wg.diag.warn(`Invalid attribute key: ${r}`);continue}if(!qg(n)){Wg.diag.warn(`Invalid attribute value set for key: ${r}`);continue}Array.isArray(n)?t[r]=n.slice():t[r]=n}return t}Ut.sanitizeAttributes=B0;function zg(e){return typeof e=="string"&&e.length>0}Ut.isAttributeKey=zg;function qg(e){return e==null?!0:Array.isArray(e)?G0(e):Xg(e)}Ut.isAttributeValue=qg;function G0(e){let t;for(let r of e)if(r!=null){if(!t){if(Xg(r)){t=typeof r;continue}return!1}if(typeof r!==t)return!1}return!0}function Xg(e){switch(typeof e){case"number":case"boolean":case"string":return!0}return!1}});var Wc=P(Ji=>{"use strict";Object.defineProperty(Ji,"__esModule",{value:!0});Ji.loggingErrorHandler=void 0;var H0=(I(),Be(ce));function F0(){return e=>{H0.diag.error(k0(e))}}Ji.loggingErrorHandler=F0;function k0(e){return typeof e=="string"?e:JSON.stringify(Y0(e))}function Y0(e){let t={},r=e;for(;r!==null;)Object.getOwnPropertyNames(r).forEach(n=>{if(t[n])return;let o=r[n];o&&(t[n]=String(o))}),r=Object.getPrototypeOf(r);return t}});var Jg=P(Kr=>{"use strict";
1Object.defineProperty(Kr,"__esModule",{value:!0});Kr.globalErrorHandler=Kr.setGlobalErrorHandler=void 0;var j0=Wc(),Qg=(0,j0.loggingErrorHandler)();function K0(e){Qg=e}Kr.setGlobalErrorHandler=K0;function W0(e){try{Qg(e)}catch{}}Kr.globalErrorHandler=W0});var Zg=P(it=>{"use strict";Object.defineProperty(it,"__esModule",{value:!0});it.getStringListFromEnv=it.getNumberFromEnv=it.getBooleanFromEnv=it.getStringFromEnv=void 0;function z0(e){}it.getStringFromEnv=z0;function q0(e){}it.getBooleanFromEnv=q0;function X0(e){}it.getNumberFromEnv=X0;function $0(e){}it.getStringListFromEnv=$0});var eR=P(Zi=>{"use strict";Object.defineProperty(Zi,"__esModule",{value:!0});Zi._globalThis=void 0;Zi._globalThis=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{}});var tR=P(es=>{"use strict";Object.defineProperty(es,"__esModule",{value:!0});es.otperformance=void 0;es.otperformance=performance});var rR=P(ts=>{"use strict";Object.defineProperty(ts,"__esModule",{value:!0});ts.VERSION=void 0;ts.VERSION="2.0.1"});var nR=P(rs=>{"use strict";Object.defineProperty(rs,"__esModule",{value:!0});rs.ATTR_PROCESS_RUNTIME_NAME=void 0;rs.ATTR_PROCESS_RUNTIME_NAME="process.runtime.name"});var oR=P(os=>{"use strict";Object.defineProperty(os,"__esModule",{value:!0});os.SDK_INFO=void 0;var Q0=rR(),ns=(Lt(),Be(Mg)),J0=nR();os.SDK_INFO={[ns.ATTR_TELEMETRY_SDK_NAME]:"opentelemetry",[J0.ATTR_PROCESS_RUNTIME_NAME]:"browser",[ns.ATTR_TELEMETRY_SDK_LANGUAGE]:ns.TELEMETRY_SDK_LANGUAGE_VALUE_WEBJS,[ns.ATTR_TELEMETRY_SDK_VERSION]:Q0.VERSION}});var iR=P(is=>{"use strict";Object.defineProperty(is,"__esModule",{value:!0});is.unrefTimer=void 0;function Z0(e){}is.unrefTimer=Z0});var zc=P(Z=>{"use strict";Object.defineProperty(Z,"__esModule",{value:!0});Z.unrefTimer=Z.SDK_INFO=Z.otperformance=Z._globalThis=Z.getStringListFromEnv=Z.getNumberFromEnv=Z.getBooleanFromEnv=Z.getStringFromEnv=void 0;var ss=Zg();Object.defineProperty(Z,"getStringFromEnv",{enumerable:!0,get:function(){return ss.getStringFromEnv}});Object.defineProperty(Z,"getBooleanFromEnv",{enumerable:!0,get:function(){return ss.getBooleanFromEnv}});Object.defineProperty(Z,"getNumberFromEnv",{enumerable:!0,get:function(){return ss.getNumberFromEnv}});Object.defineProperty(Z,"getStringListFromEnv",{enumerable:!0,get:function(){return ss.getStringListFromEnv}});var ew=eR();Object.defineProperty(Z,"_globalThis",{enumerable:!0,get:function(){return ew._globalThis}});var tw=tR();Object.defineProperty(Z,"otperformance",{enumerable:!0,get:function(){return tw.otperformance}});var rw=oR();Object.defineProperty(Z,"SDK_INFO",{enumerable:!0,get:function(){return rw.SDK_INFO}});var nw=iR();Object.defineProperty(Z,"unrefTimer",{enumerable:!0,get:function(){return nw.unrefTimer}})});var uR=P(H=>{"use strict";Object.defineProperty(H,"__esModule",{value:!0});H.addHrTimes=H.isTimeInput=H.isTimeInputHrTime=H.hrTimeToMicroseconds=H.hrTimeToMilliseconds=H.hrTimeToNanoseconds=H.hrTimeToTimeStamp=H.hrTimeDuration=H.timeInputToHrTime=H.hrTime=H.getTimeOrigin=H.millisToHrTime=void 0;var qc=zc(),sR=9,ow=6,iw=Math.pow(10,ow),as=Math.pow(10,sR);function Ao(e){let t=e/1e3,r=Math.trunc(t),n=Math.round(e%1e3*iw);return[r,n]}H.millisToHrTime=Ao;function Xc(){let e=qc.otperformance.timeOrigin;if(typeof e!="number"){let t=qc.otperformance;e=t.timing&&t.timing.fetchStart}return e}H.getTimeOrigin=Xc;function aR(e){let t=Ao(Xc()),r=Ao(typeof e=="number"?e:qc.otperformance.now());return cR(t,r)}H.hrTime=aR;function sw(e){if($c(e))return e;if(typeof e=="number")return e<Xc()?aR(e):Ao(e);if(e instanceof Date)return Ao(e.getTime());throw TypeError("Invalid input type")}H.timeInputToHrTime=sw;function aw(e,t){let r=t[0]-e[0],n=t[1]-e[1];return n<0&&(r-=1,n+=as),[r,n]}H.hrTimeDuration=aw;function cw(e){let t=sR,r=`${"0".repeat(t)}${e[1]}Z`,n=r.substring(r.length-t-1);return new Date(e[0]*1e3).toISOString().replace("000Z",n)}H.hrTimeToTimeStamp=cw;function uw(e){return e[0]*as+e[1]}H.hrTimeToNanoseconds=uw;function Ew(e){return e[0]*1e3+e[1]/1e6}H.hrTimeToMilliseconds=Ew;function _w(e){return e[0]*1e6+e[1]/1e3}H.hrTimeToMicroseconds=_w;function $c(e){return Array.isArray(e)&&e.length===2&&typeof e[0]=="number"&&typeof e[1]=="number"}H.isTimeInputHrTime=$c;function pw(e){return $c(e)||typeof e=="number"||e instanceof Date}H.isTimeInput=pw;function cR(e,t){let r=[e[0]+t[0],e[1]+t[1]];return r[1]>=as&&(r[1]-=as,r[0]+=1),r}H.addHrTimes=cR});var ER=P(go=>{"use strict";Object.defineProperty(go,"__esModule",{value:!0});go.ExportResultCode=void 0;var Tw;(function(e){e[e.SUCCESS=0]="SUCCESS",e[e.FAILED=1]="FAILED"})(Tw=go.ExportResultCode||(go.ExportResultCode={}))});var pR=P(cs=>{"use strict";Object.defineProperty(cs,"__esModule",{value:!0});cs.CompositePropagator=void 0;
1var _R=(I(),Be(ce)),Qc=class{_propagators;_fields;constructor(t={}){this._propagators=t.propagators??[],this._fields=Array.from(new Set(this._propagators.map(r=>typeof r.fields=="function"?r.fields():[]).reduce((r,n)=>r.concat(n),[])))}inject(t,r,n){for(let o of this._propagators)try{o.inject(t,r,n)}catch(i){_R.diag.warn(`Failed to inject with ${o.constructor.name}. Err: ${i.message}`)}}extract(t,r,n){return this._propagators.reduce((o,i)=>{try{return i.extract(o,r,n)}catch(s){_R.diag.warn(`Failed to extract with ${i.constructor.name}. Err: ${s.message}`)}return o},t)}fields(){return this._fields.slice()}};cs.CompositePropagator=Qc});var TR=P(Wr=>{"use strict";Object.defineProperty(Wr,"__esModule",{value:!0});Wr.validateValue=Wr.validateKey=void 0;var Jc="[_0-9a-z-*/]",lw=`[a-z]${Jc}{0,255}`,Sw=`[a-z0-9]${Jc}{0,240}@[a-z]${Jc}{0,13}`,dw=new RegExp(`^(?:${lw}|${Sw})$`),fw=/^[ -~]{0,255}[!-~]$/,mw=/,|=/;function Aw(e){return dw.test(e)}Wr.validateKey=Aw;function gw(e){return fw.test(e)&&!mw.test(e)}Wr.validateValue=gw});var eu=P(us=>{"use strict";Object.defineProperty(us,"__esModule",{value:!0});us.TraceState=void 0;var lR=TR(),SR=32,Rw=512,dR=",",fR="=",Zc=class e{_internalState=new Map;constructor(t){t&&this._parse(t)}set(t,r){let n=this._clone();return n._internalState.has(t)&&n._internalState.delete(t),n._internalState.set(t,r),n}unset(t){let r=this._clone();return r._internalState.delete(t),r}get(t){return this._internalState.get(t)}serialize(){return this._keys().reduce((t,r)=>(t.push(r+fR+this.get(r)),t),[]).join(dR)}_parse(t){t.length>Rw||(this._internalState=t.split(dR).reverse().reduce((r,n)=>{let o=n.trim(),i=o.indexOf(fR);if(i!==-1){let s=o.slice(0,i),a=o.slice(i+1,n.length);(0,lR.validateKey)(s)&&(0,lR.validateValue)(a)&&r.set(s,a)}return r},new Map),this._internalState.size>SR&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,SR))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){let t=new e;return t._internalState=new Map(this._internalState),t}};us.TraceState=Zc});var AR=P(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});Ee.W3CTraceContextPropagator=Ee.parseTraceParent=Ee.TRACE_STATE_HEADER=Ee.TRACE_PARENT_HEADER=void 0;var Es=(I(),Be(ce)),Ow=mo(),hw=eu();Ee.TRACE_PARENT_HEADER="traceparent";Ee.TRACE_STATE_HEADER="tracestate";var Nw="00",Pw="(?!ff)[\\da-f]{2}",Mw="(?![0]{32})[\\da-f]{32}",bw="(?![0]{16})[\\da-f]{16}",Iw="[\\da-f]{2}",Cw=new RegExp(`^\\s?(${Pw})-(${Mw})-(${bw})-(${Iw})(-.*)?\\s?$`);function mR(e){let t=Cw.exec(e);return!t||t[1]==="00"&&t[5]?null:{traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}}Ee.parseTraceParent=mR;var tu=class{inject(t,r,n){let o=Es.trace.getSpanContext(t);if(!o||(0,Ow.isTracingSuppressed)(t)||!(0,Es.isSpanContextValid)(o))return;let i=`${Nw}-${o.traceId}-${o.spanId}-0${Number(o.traceFlags||Es.TraceFlags.NONE).toString(16)}`;n.set(r,Ee.TRACE_PARENT_HEADER,i),o.traceState&&n.set(r,Ee.TRACE_STATE_HEADER,o.traceState.serialize())}extract(t,r,n){let o=n.get(r,Ee.TRACE_PARENT_HEADER);if(!o)return t;let i=Array.isArray(o)?o[0]:o;if(typeof i!="string")return t;let s=mR(i);if(!s)return t;s.isRemote=!0;let a=n.get(r,Ee.TRACE_STATE_HEADER);if(a){let c=Array.isArray(a)?a.join(","):a;s.traceState=new hw.TraceState(typeof c=="string"?c:void 0)}return Es.trace.setSpanContext(t,s)}fields(){return[Ee.TRACE_PARENT_HEADER,Ee.TRACE_STATE_HEADER]}};Ee.W3CTraceContextPropagator=tu});var gR=P(je=>{"use strict";Object.defineProperty(je,"__esModule",{value:!0});je.getRPCMetadata=je.deleteRPCMetadata=je.setRPCMetadata=je.RPCType=void 0;var vw=(I(),Be(ce)),ru=(0,vw.createContextKey)("OpenTelemetry SDK Context Key RPC_METADATA"),xw;(function(e){e.HTTP="http"})(xw=je.RPCType||(je.RPCType={}));function Lw(e,t){return e.setValue(ru,t)}je.setRPCMetadata=Lw;function Dw(e){return e.deleteValue(ru)}je.deleteRPCMetadata=Dw;function yw(e){return e.getValue(ru)}je.getRPCMetadata=yw});var PR=P(_s=>{"use strict";Object.defineProperty(_s,"__esModule",{value:!0});_s.isPlainObject=void 0;
1var Uw="[object Object]",ww="[object Null]",Vw="[object Undefined]",Bw=Function.prototype,RR=Bw.toString,Gw=RR.call(Object),Hw=Object.getPrototypeOf,OR=Object.prototype,hR=OR.hasOwnProperty,pr=Symbol?Symbol.toStringTag:void 0,NR=OR.toString;function Fw(e){if(!kw(e)||Yw(e)!==Uw)return!1;let t=Hw(e);if(t===null)return!0;let r=hR.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&RR.call(r)===Gw}_s.isPlainObject=Fw;function kw(e){return e!=null&&typeof e=="object"}function Yw(e){return e==null?e===void 0?Vw:ww:pr&&pr in Object(e)?jw(e):Kw(e)}function jw(e){let t=hR.call(e,pr),r=e[pr],n=!1;try{e[pr]=void 0,n=!0}catch{}let o=NR.call(e);return n&&(t?e[pr]=r:delete e[pr]),o}function Kw(e){return NR.call(e)}});var vR=P(ls=>{"use strict";Object.defineProperty(ls,"__esModule",{value:!0});ls.merge=void 0;var MR=PR(),Ww=20;function zw(...e){let t=e.shift(),r=new WeakMap;for(;e.length>0;)t=IR(t,e.shift(),0,r);return t}ls.merge=zw;function nu(e){return Ts(e)?e.slice():e}function IR(e,t,r=0,n){let o;if(!(r>Ww)){if(r++,ps(e)||ps(t)||CR(t))o=nu(t);else if(Ts(e)){if(o=e.slice(),Ts(t))for(let i=0,s=t.length;i<s;i++)o.push(nu(t[i]));else if(Ro(t)){let i=Object.keys(t);for(let s=0,a=i.length;s<a;s++){let c=i[s];o[c]=nu(t[c])}}}else if(Ro(e))if(Ro(t)){if(!qw(e,t))return t;o=Object.assign({},e);let i=Object.keys(t);for(let s=0,a=i.length;s<a;s++){let c=i[s],E=t[c];if(ps(E))typeof E>"u"?delete o[c]:o[c]=E;else{let u=o[c],_=E;if(bR(e,c,n)||bR(t,c,n))delete o[c];else{if(Ro(u)&&Ro(_)){let p=n.get(u)||[],T=n.get(_)||[];p.push({obj:e,key:c}),T.push({obj:t,key:c}),n.set(u,p),n.set(_,T)}o[c]=IR(o[c],E,r,n)}}}}else o=t;return o}}function bR(e,t,r){let n=r.get(e[t])||[];for(let o=0,i=n.length;o<i;o++){let s=n[o];if(s.key===t&&s.obj===e)return!0}return!1}function Ts(e){return Array.isArray(e)}function CR(e){return typeof e=="function"}function Ro(e){return!ps(e)&&!Ts(e)&&!CR(e)&&typeof e=="object"}function ps(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e>"u"||e instanceof Date||e instanceof RegExp||e===null}function qw(e,t){return!(!(0,MR.isPlainObject)(e)||!(0,MR.isPlainObject)(t))}});var xR=P(zr=>{"use strict";Object.defineProperty(zr,"__esModule",{value:!0});zr.callWithTimeout=zr.TimeoutError=void 0;var Ss=class e extends Error{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}};zr.TimeoutError=Ss;function Xw(e,t){let r,n=new Promise(function(i,s){r=setTimeout(function(){s(new Ss("Operation timed out."))},t)});return Promise.race([e,n]).then(o=>(clearTimeout(r),o),o=>{throw clearTimeout(r),o})}zr.callWithTimeout=Xw});var DR=P(qr=>{"use strict";Object.defineProperty(qr,"__esModule",{value:!0});qr.isUrlIgnored=qr.urlMatches=void 0;function LR(e,t){return typeof t=="string"?e===t:!!e.match(t)}qr.urlMatches=LR;function $w(e,t){if(!t)return!1;for(let r of t)if(LR(e,r))return!0;return!1}qr.isUrlIgnored=$w});var yR=P(ds=>{"use strict";Object.defineProperty(ds,"__esModule",{value:!0});ds.Deferred=void 0;var ou=class{_promise;_resolve;_reject;constructor(){this._promise=new Promise((t,r)=>{this._resolve=t,this._reject=r})}get promise(){return this._promise}resolve(t){this._resolve(t)}reject(t){this._reject(t)}};ds.Deferred=ou});var UR=P(fs=>{"use strict";Object.defineProperty(fs,"__esModule",{value:!0});fs.BindOnceFuture=void 0;var Qw=yR(),iu=class{_callback;_that;_isCalled=!1;_deferred=new Qw.Deferred;constructor(t,r){this._callback=t,this._that=r}get isCalled(){return this._isCalled}get promise(){return this._deferred.promise}call(...t){if(!this._isCalled){this._isCalled=!0;try{Promise.resolve(this._callback.call(this._that,...t)).then(r=>this._deferred.resolve(r),r=>this._deferred.reject(r))}catch(r){this._deferred.reject(r)}}return this._deferred.promise}};fs.BindOnceFuture=iu});var VR=P(ms=>{"use strict";Object.defineProperty(ms,"__esModule",{value:!0});ms.diagLogLevelFromString=void 0;var dt=(I(),Be(ce)),wR={ALL:dt.DiagLogLevel.ALL,VERBOSE:dt.DiagLogLevel.VERBOSE,DEBUG:dt.DiagLogLevel.DEBUG,INFO:dt.DiagLogLevel.INFO,WARN:dt.DiagLogLevel.WARN,ERROR:dt.DiagLogLevel.ERROR,NONE:dt.DiagLogLevel.NONE};function Jw(e){if(e==null)return;let t=wR[e.toUpperCase()];return t??(dt.diag.warn(`Unknown log level "${e}", expected one of ${Object.keys(wR)}, using default`),dt.DiagLogLevel.INFO)}ms.diagLogLevelFromString=Jw});var GR=P(As=>{"use strict";Object.defineProperty(As,"__esModule",{value:!0});As._export=void 0;var BR=(I(),Be(ce)),Zw=mo();function eV(e,t){return new Promise(r=>{BR.context.with((0,Zw.suppressTracing)(BR.context.active()),()=>{e.export(t,n=>{r(n)})})})}As._export=eV});var Vt=P(S=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0});S.internal=S.diagLogLevelFromString=S.BindOnceFuture=S.urlMatches=S.isUrlIgnored=S.callWithTimeout=S.TimeoutError=S.merge=S.TraceState=S.unsuppressTracing=S.suppressTracing=S.isTracingSuppressed=S.setRPCMetadata=S.getRPCMetadata=S.deleteRPCMetadata=S.RPCType=S.parseTraceParent=S.W3CTraceContextPropagator=S.TRACE_STATE_HEADER=S.TRACE_PARENT_HEADER=S.CompositePropagator=S.unrefTimer=S.otperformance=S.getStringListFromEnv=S.getNumberFromEnv=S.getBooleanFromEnv=S.getStringFromEnv=S._globalThis=S.SDK_INFO=S.parseKeyPairsIntoRecord=S.ExportResultCode=S.timeInputToHrTime=S.millisToHrTime=S.isTimeInputHrTime=S.isTimeInput=S.hrTimeToTimeStamp=S.hrTimeToNanoseconds=S.hrTimeToMilliseconds=S.hrTimeToMicroseconds=S.hrTimeDuration=S.hrTime=S.getTimeOrigin=S.addHrTimes=S.loggingErrorHandler=S.setGlobalErrorHandler=S.globalErrorHandler=S.sanitizeAttributes=S.isAttributeValue=S.AnchoredClock=S.W3CBaggagePropagator=void 0;var tV=jg();Object.defineProperty(S,"W3CBaggagePropagator",{enumerable:!0,get:function(){return tV.W3CBaggagePropagator}});var rV=Kg();Object.defineProperty(S,"AnchoredClock",{enumerable:!0,get:function(){return rV.AnchoredClock}});var HR=$g();Object.defineProperty(S,"isAttributeValue",{enumerable:!0,get:function(){return HR.isAttributeValue}});Object.defineProperty(S,"sanitizeAttributes",{enumerable:!0,get:function(){return HR.sanitizeAttributes}});var FR=Jg();Object.defineProperty(S,"globalErrorHandler",{enumerable:!0,get:function(){return FR.globalErrorHandler}});Object.defineProperty(S,"setGlobalErrorHandler",{enumerable:!0,get:function(){return FR.setGlobalErrorHandler}});var nV=Wc();Object.defineProperty(S,"loggingErrorHandler",{enumerable:!0,get:function(){return nV.loggingErrorHandler}});var Ue=uR();Object.defineProperty(S,"addHrTimes",{enumerable:!0,get:function(){return Ue.addHrTimes}});Object.defineProperty(S,"getTimeOrigin",{enumerable:!0,get:function(){return Ue.getTimeOrigin}});Object.defineProperty(S,"hrTime",{enumerable:!0,get:function(){return Ue.hrTime}});Object.defineProperty(S,"hrTimeDuration",{enumerable:!0,get:function(){return Ue.hrTimeDuration}});Object.defineProperty(S,"hrTimeToMicroseconds",{enumerable:!0,get:function(){return Ue.hrTimeToMicroseconds}});Object.defineProperty(S,"hrTimeToMilliseconds",{enumerable:!0,get:function(){return Ue.hrTimeToMilliseconds}});Object.defineProperty(S,"hrTimeToNanoseconds",{enumerable:!0,get:function(){return Ue.hrTimeToNanoseconds}});Object.defineProperty(S,"hrTimeToTimeStamp",{enumerable:!0,get:function(){return Ue.hrTimeToTimeStamp}});Object.defineProperty(S,"isTimeInput",{enumerable:!0,get:function(){return Ue.isTimeInput}});Object.defineProperty(S,"isTimeInputHrTime",{enumerable:!0,get:function(){return Ue.isTimeInputHrTime}});Object.defineProperty(S,"millisToHrTime",{enumerable:!0,get:function(){return Ue.millisToHrTime}});Object.defineProperty(S,"timeInputToHrTime",{enumerable:!0,get:function(){return Ue.timeInputToHrTime}});var oV=ER();Object.defineProperty(S,"ExportResultCode",{enumerable:!0,get:function(){return oV.ExportResultCode}});var iV=Fc();Object.defineProperty(S,"parseKeyPairsIntoRecord",{enumerable:!0,get:function(){return iV.parseKeyPairsIntoRecord}});var wt=zc();Object.defineProperty(S,"SDK_INFO",{enumerable:!0,get:function(){return wt.SDK_INFO}});Object.defineProperty(S,"_globalThis",{enumerable:!0,get:function(){return wt._globalThis}});Object.defineProperty(S,"getStringFromEnv",{enumerable:!0,get:function(){return wt.getStringFromEnv}});Object.defineProperty(S,"getBooleanFromEnv",{enumerable:!0,get:function(){return wt.getBooleanFromEnv}});Object.defineProperty(S,"getNumberFromEnv",{enumerable:!0,get:function(){return wt.getNumberFromEnv}});Object.defineProperty(S,"getStringListFromEnv",{enumerable:!0,get:function(){return wt.getStringListFromEnv}});Object.defineProperty(S,"otperformance",{enumerable:!0,get:function(){return wt.otperformance}});Object.defineProperty(S,"unrefTimer",{enumerable:!0,get:function(){return wt.unrefTimer}});var sV=pR();Object.defineProperty(S,"CompositePropagator",{enumerable:!0,get:function(){return sV.CompositePropagator}});var gs=AR();Object.defineProperty(S,"TRACE_PARENT_HEADER",{enumerable:!0,get:function(){return gs.TRACE_PARENT_HEADER}});Object.defineProperty(S,"TRACE_STATE_HEADER",{enumerable:!0,get:function(){return gs.TRACE_STATE_HEADER}});Object.defineProperty(S,"W3CTraceContextPropagator",{enumerable:!0,get:function(){return gs.W3CTraceContextPropagator}});Object.defineProperty(S,"parseTraceParent",{enumerable:!0,get:function(){return gs.parseTraceParent}});var Rs=gR();Object.defineProperty(S,"RPCType",{enumerable:!0,get:function(){return Rs.RPCType}});Object.defineProperty(S,"deleteRPCMetadata",{enumerable:!0,get:function(){return Rs.deleteRPCMetadata}});Object.defineProperty(S,"getRPCMetadata",{enumerable:!0,get:function(){return Rs.getRPCMetadata}});Object.defineProperty(S,"setRPCMetadata",{enumerable:!0,get:function(){return Rs.setRPCMetadata}});var su=mo();Object.defineProperty(S,"isTracingSuppressed",{enumerable:!0,get:function(){return su.isTracingSuppressed}});Object.defineProperty(S,"suppressTracing",{enumerable:!0,get:function(){return su.suppressTracing}});Object.defineProperty(S,"unsuppressTracing",{enumerable:!0,get:function(){return su.unsuppressTracing}});var aV=eu();Object.defineProperty(S,"TraceState",{enumerable:!0,get:function(){return aV.TraceState}});var cV=vR();Object.defineProperty(S,"merge",{enumerable:!0,get:function(){return cV.merge}});var kR=xR();Object.defineProperty(S,"TimeoutError",{enumerable:!0,get:function(){return kR.TimeoutError}});Object.defineProperty(S,"callWithTimeout",{enumerable:!0,get:function(){return kR.callWithTimeout}});var YR=DR();Object.defineProperty(S,"isUrlIgnored",{enumerable:!0,get:function(){return YR.isUrlIgnored}});Object.defineProperty(S,"urlMatches",{enumerable:!0,get:function(){return YR.urlMatches}});var uV=UR();Object.defineProperty(S,"BindOnceFuture",{enumerable:!0,get:function(){return uV.BindOnceFuture}});var EV=VR();Object.defineProperty(S,"diagLogLevelFromString",{enumerable:!0,get:function(){return EV.diagLogLevelFromString}});var _V=GR();S.internal={_export:_V._export}}
1);var KR=P(Os=>{"use strict";Object.defineProperty(Os,"__esModule",{value:!0});Os.hexToBinary=void 0;function jR(e){return e>=48&&e<=57?e-48:e>=97&&e<=102?e-87:e-55}function pV(e){let t=new Uint8Array(e.length/2),r=0;for(let n=0;n<e.length;n+=2){let o=jR(e.charCodeAt(n)),i=jR(e.charCodeAt(n+1));t[r++]=o<<4|i}return t}Os.hexToBinary=pV});var $R=P(we=>{"use strict";Object.defineProperty(we,"__esModule",{value:!0});we.getOtlpEncoder=we.encodeAsString=we.encodeAsLongBits=we.toLongBits=we.hrTimeToNanos=void 0;var TV=Vt(),au=KR();function cu(e){let t=BigInt(1e9);return BigInt(e[0])*t+BigInt(e[1])}we.hrTimeToNanos=cu;function zR(e){let t=Number(BigInt.asUintN(32,e)),r=Number(BigInt.asUintN(32,e>>BigInt(32)));return{low:t,high:r}}we.toLongBits=zR;function uu(e){let t=cu(e);return zR(t)}we.encodeAsLongBits=uu;function qR(e){return cu(e).toString()}we.encodeAsString=qR;var lV=typeof BigInt<"u"?qR:TV.hrTimeToNanoseconds;function WR(e){return e}function XR(e){if(e!==void 0)return(0,au.hexToBinary)(e)}var SV={encodeHrTime:uu,encodeSpanContext:au.hexToBinary,encodeOptionalSpanContext:XR};function dV(e){if(e===void 0)return SV;let t=e.useLongBits??!0,r=e.useHex??!1;return{encodeHrTime:t?uu:lV,encodeSpanContext:r?WR:au.hexToBinary,encodeOptionalSpanContext:r?WR:XR}}we.getOtlpEncoder=dV});var eO=P(st=>{"use strict";Object.defineProperty(st,"__esModule",{value:!0});st.createExportTraceServiceRequest=st.toOtlpSpanEvent=st.toOtlpLink=st.sdkSpanToOtlpSpan=void 0;var Oo=kg(),fV=$R();function QR(e,t){let r=e.spanContext(),n=e.status,o=e.parentSpanContext?.spanId?t.encodeSpanContext(e.parentSpanContext?.spanId):void 0;return{traceId:t.encodeSpanContext(r.traceId),spanId:t.encodeSpanContext(r.spanId),parentSpanId:o,traceState:r.traceState?.serialize(),name:e.name,kind:e.kind==null?0:e.kind+1,startTimeUnixNano:t.encodeHrTime(e.startTime),endTimeUnixNano:t.encodeHrTime(e.endTime),attributes:(0,Oo.toAttributes)(e.attributes),droppedAttributesCount:e.droppedAttributesCount,events:e.events.map(i=>ZR(i,t)),droppedEventsCount:e.droppedEventsCount,status:{code:n.code,message:n.message},links:e.links.map(i=>JR(i,t)),droppedLinksCount:e.droppedLinksCount}}st.sdkSpanToOtlpSpan=QR;function JR(e,t){return{attributes:e.attributes?(0,Oo.toAttributes)(e.attributes):[],spanId:t.encodeSpanContext(e.context.spanId),traceId:t.encodeSpanContext(e.context.traceId),traceState:e.context.traceState?.serialize(),droppedAttributesCount:e.droppedAttributesCount||0}}st.toOtlpLink=JR;function ZR(e,t){return{attributes:e.attributes?(0,Oo.toAttributes)(e.attributes):[],name:e.name,timeUnixNano:t.encodeHrTime(e.time),droppedAttributesCount:e.droppedAttributesCount||0}}st.toOtlpSpanEvent=ZR;function mV(e,t){let r=(0,fV.getOtlpEncoder)(t);return{resourceSpans:gV(e,r)}}st.createExportTraceServiceRequest=mV;function AV(e){let t=new Map;for(let r of e){let n=t.get(r.resource);n||(n=new Map,t.set(r.resource,n));let o=`${r.instrumentationScope.name}@${r.instrumentationScope.version||""}:${r.instrumentationScope.schemaUrl||""}`,i=n.get(o);i||(i=[],n.set(o,i)),i.push(r)}return t}function gV(e,t){let r=AV(e),n=[],o=r.entries(),i=o.next();for(;!i.done;){let[s,a]=i.value,c=[],E=a.values(),u=E.next();for(;!u.done;){let p=u.value;if(p.length>0){let T=p.map(l=>QR(l,t));c.push({scope:(0,Oo.createInstrumentationScope)(p[0].instrumentationScope),spans:T,schemaUrl:p[0].instrumentationScope.schemaUrl})}u=E.next()}let _={resource:(0,Oo.createResource)(s),scopeSpans:c,schemaUrl:void 0};n.push(_),i=o.next()}return n}});var tO=P(Bt=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.EStatusCode=Bt.ESpanKind=void 0;var RV;(function(e){e[e.SPAN_KIND_UNSPECIFIED=0]="SPAN_KIND_UNSPECIFIED",e[e.SPAN_KIND_INTERNAL=1]="SPAN_KIND_INTERNAL",e[e.SPAN_KIND_SERVER=2]="SPAN_KIND_SERVER",e[e.SPAN_KIND_CLIENT=3]="SPAN_KIND_CLIENT",e[e.SPAN_KIND_PRODUCER=4]="SPAN_KIND_PRODUCER",e[e.SPAN_KIND_CONSUMER=5]="SPAN_KIND_CONSUMER"})(RV=Bt.ESpanKind||(Bt.ESpanKind={}));var OV;(function(e){e[e.STATUS_CODE_UNSET=0]="STATUS_CODE_UNSET",e[e.STATUS_CODE_OK=1]="STATUS_CODE_OK",e[e.STATUS_CODE_ERROR=2]="STATUS_CODE_ERROR"})(OV=Bt.EStatusCode||(Bt.EStatusCode={}))});var PO=P(z=>{"use strict";
1Object.defineProperty(z,"__esModule",{value:!0});z.ATTR_HTTP_USER_AGENT=z.ATTR_HTTP_URL=z.ATTR_HTTP_STATUS_CODE=z.ATTR_HTTP_SCHEME=z.ATTR_HTTP_RESPONSE_CONTENT_LENGTH=z.ATTR_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED=z.ATTR_HTTP_REQUEST_BODY_SIZE=z.ATTR_HTTP_METHOD=z.ATTR_HTTP_HOST=void 0;z.ATTR_HTTP_HOST="http.host";z.ATTR_HTTP_METHOD="http.method";z.ATTR_HTTP_REQUEST_BODY_SIZE="http.request.body.size";z.ATTR_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED="http.request_content_length_uncompressed";z.ATTR_HTTP_RESPONSE_CONTENT_LENGTH="http.response_content_length";z.ATTR_HTTP_SCHEME="http.scheme";z.ATTR_HTTP_STATUS_CODE="http.status_code";z.ATTR_HTTP_URL="http.url";z.ATTR_HTTP_USER_AGENT="http.user_agent"});function me(e,t){return typeof e===t}function kt(e,t){return Object.prototype.toString.call(e)===`[object ${t}]`}function an(e,t){try{return e instanceof t}catch{return!1}}var Ne=e=>me(e,"null"),Pe=e=>me(e,"string"),cn=e=>me(e,"number")&&!isNaN(e)||me(e,"bigint");var un=e=>me(e,"boolean");var q=e=>!Ne(e)&&me(e,"object"),Me=e=>me(e,"function"),Ae=e=>kt(e,"Array");var En=e=>!q(e)&&!Me(e),Wo=typeof Event<"u",_n=e=>Wo&&an(e,Event),zo=typeof Error<"u",mt=e=>zo&&an(e,Error),pn=e=>kt(e,"ErrorEvent"),Tn=e=>kt(e,"DOMError"),ln=e=>kt(e,"DOMException");function X(e){return e==null?!0:Ae(e)||Pe(e)?e.length===0:q(e)?Object.keys(e).length===0:!1}function oe(e,t){if(e===t)return!0;if(me(e,"number")&&isNaN(e))return me(t,"number")&&isNaN(t);let r=Ae(e),n=Ae(t);if(r!==n)return!1;if(r&&n){let s=e.length;if(s!==t.length)return!1;for(let a=s;a--!==0;)if(!oe(e[a],t[a]))return!1;return!0}let o=q(e),i=q(t);if(o!==i)return!1;if(e&&t&&o&&i){let s=Object.keys(e),a=Object.keys(t),c=s.length,E=a.length;if(c!==E)return!1;for(let u of s)if(!a.includes(u))return!1;for(let u of s)if(!oe(e[u],t[u]))return!1;return!0}return!1}function ge(){return Date.now()}function Ge(){return new Date().toISOString()}function At(e){return new Date(e).toISOString()}var J;(function(e){e.TRACE="trace",e.DEBUG="debug",e.INFO="info",e.LOG="log",e.WARN="warn",e.ERROR="error"})(J||(J={}));var Sn=J.LOG,dn=[J.TRACE,J.DEBUG,J.INFO,J.LOG,J.WARN,J.ERROR];function pe(){}function fn(e){let{size:t,concurrency:r}=e,n=[],o=0,i=()=>{if(o<r&&n.length){let{producer:a,resolve:c,reject:E}=n.shift();o++,a().then(u=>{o--,i(),c(u)},u=>{o--,i(),E(u)})}};return{add:a=>
1{if(n.length+o>=t)throw new Error("Task buffer full");return new Promise((c,E)=>{n.push({producer:a,resolve:c,reject:E}),i()})}}}var Vu="abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ0123456789";function ie(e=10){return Array.from(Array(e)).map(()=>Vu[Math.floor(Math.random()*Vu.length)]).join("")}var be=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:void 0;function Bu(e){return be===null||be===void 0?void 0:be[`__faroBundleId_${e}`]}function Qs(){let e=new WeakSet;return function(t,r){if(q(r)&&r!==null){if(e.has(r))return null;e.add(r)}return r}}function He(e={}){return JSON.stringify(e??{},Qs())}function le(e={}){let t={};for(let[r,n]of Object.entries(e))t[r]=q(n)&&n!==null?He(n):String(n);return t}var ee=class e{constructor(){this.subscribers=[]}subscribe(t){return this.subscribers.push(t),{unsubscribe:()=>this.unsubscribe(t)}}unsubscribe(t){this.subscribers=this.subscribers.filter(r=>r!==t)}notify(t){this.subscribers.forEach(r=>r(t))}first(){let t=new e,r=i=>{t.notify(i),n.unsubscribe()},n=this.subscribe(r),o=t.unsubscribe.bind(t);return this.withUnsubscribeOverride(t,o,r)}takeWhile(t){let r=new e,n=i=>{t(i)?r.notify(i):r.unsubscribe(n)};this.subscribe(n);let o=r.unsubscribe.bind(r);return this.withUnsubscribeOverride(r,o,n)}filter(t){let r=new e,n=i=>{t(i)&&r.notify(i)};this.subscribe(n);let o=r.unsubscribe.bind(r);return this.withUnsubscribeOverride(r,o,n)}merge(...t){let r=new e,n=[];t.forEach(i=>{let s=i.subscribe(a=>{r.notify(a)});n.push(s)});let o=r.unsubscribeAll.bind(r);return r.unsubscribe=()=>{n.forEach(i=>i.unsubscribe()),o()},r}withUnsubscribeOverride(t,r,n){return t.unsubscribe=o=>{r(o),this.unsubscribe(n)},t}unsubscribeAll(){this.subscribers=[]}};var qo=class{constructor(t,r){var n,o;this.signalBuffer=[],this.itemLimit=(n=r?.itemLimit)!==null&&n!==void 0?n:50,this.sendTimeout=(o=r?.sendTimeout)!==null&&o!==void 0?o:250,this.paused=r?.paused||!1,this.sendFn=t,this.flushInterval=-1,this.paused||this.start(),document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&this.flush()})}addItem(t){this.paused||(this.signalBuffer.push(t),this.signalBuffer.length>=this.itemLimit&&this.flush())}start(){this.paused=!1,this.sendTimeout>0&&(this.flushInterval=window.setInterval(()=>this.flush(),this.sendTimeout))}pause(){this.paused=!0,clearInterval(this.flushInterval)}groupItems(t){let r=new Map;return t.forEach(n=>{let o=JSON.stringify(n.meta),i=r.get(o);i===void 0?i=[n]:i=[...i,n],r.set(o,i)}),Array.from(r.values())}flush(){if(this.paused||this.signalBuffer.length===0)return;this.groupItems(this.signalBuffer).forEach(this.sendFn),this.signalBuffer=[]}};var V;(function(e){e.EXCEPTION="exception",e.LOG="log",e.MEASUREMENT="measurement",e.TRACE="trace",e.EVENT="event"})(V||(V={}));var mn={[V.EXCEPTION]:"exceptions",[V.LOG]:"logs",[V.MEASUREMENT]:"measurements",[V.TRACE]:"traces",[V.EVENT]:"events"};function Js(e,t,r,n){var o;t.debug("Initializing transports");let i=[],s=r.paused,a=[],c=(...b)=>{t.debug("Adding transports"),b.forEach(R=>{if(t.debug(`Adding "${R.name}" transport`),i.some(Q=>
1Q===R)){t.warn(`Transport ${R.name} is already added`);return}R.unpatchedConsole=e,R.internalLogger=t,R.config=r,R.metas=n,i.push(R)})},E=(...b)=>{t.debug(`Adding beforeSendHooks 2`,a),b.forEach(R=>{R&&a.push(R)})},u=b=>{let R=b;for(let v of a){let Q=R.map(v).filter(Boolean);if(Q.length===0)return[];R=ph(Q,r)}return R},_=b=>{let R=u(b);if(R.length!==0)for(let v of i)t.debug(`Transporting item using ${v.name} 3`,R),v.isBatched()&&v.send(R)},p=b=>{var R,v;if(!((R=r.batching)===null||R===void 0)&&R.enabled&&i.every(he=>he.isBatched()))return;let[Q]=u([b]);if(Q!==void 0)for(let he of i)t.debug(`Transporting item using ${he.name} 4`,Q),he.isBatched()?!((v=r.batching)===null||v===void 0)&&v.enabled||he.send([Q]):he.send(Q)},T;return!((o=r.batching)===null||o===void 0)&&o.enabled&&(T=new qo(_,{sendTimeout:r.batching.sendTimeout,itemLimit:r.batching.itemLimit,paused:s})),{add:c,addBeforeSendHooks:E,getBeforeSendHooks:()=>[...a],execute:b=>{var R;s||(!((R=r.batching)===null||R===void 0)&&R.enabled&&T?.addItem(b),p(b))},isPaused:()=>s,pause:()=>{t.debug("Pausing transports"),T?.pause(),s=!0},remove:(...b)=>{t.debug("Removing transports"),b.forEach(R=>{t.debug(`Removing "${R.name}" transport`);let v=i.indexOf(R);if(v===-1){t.warn(`Transport "${R.name}" is not added`);return}i.splice(v,1)})},removeBeforeSendHooks:(...b)=>{a.filter(R=>!b.includes(R))},get transports(){return[...i]},unpause:()=>{t.debug("Unpausing transports"),T?.start(),s=!1}}}function ph(e,t){if(t.preserveOriginalError)for(let r of e)r.type===V.EXCEPTION&&delete r.payload.originalError;return e}var Ie;(function(e){e[e.OFF=0]="OFF",e[e.ERROR=1]="ERROR",e[e.WARN=2]="WARN",e[e.INFO=3]="INFO",e[e.VERBOSE=4]="VERBOSE"})(Ie||(Ie={}));var Th="Faro",Yt={debug:pe,error:pe,info:pe,prefix:Th,warn:pe},jt=Ie.ERROR;var Xe=Object.assign({},console);var Xo=Xe;function Zs(e){var t;return Xo=(t=e.unpatchedConsole)!==null&&t!==void 0?t:Xo,Xo}function Kt(e=Xe,t=jt){let r=Yt;return t>Ie.OFF&&(r.error=t>=Ie.ERROR?function(...n){e.error(`${r.prefix} 5`,...n)}:pe,r.warn=t>=Ie.WARN?function(...n){e.warn(`${r.prefix} 6`,...n)}:pe,r.info=t>=Ie.INFO?function(...n){e.info(`${r.prefix} 7`,...n)}:pe,r.debug=t>=Ie.VERBOSE?function(...n){e.debug(`${r.prefix} 8`,...n)}:pe),r}var ea=Yt;function ta(e,t){return ea=Kt(e,t.internalLoggerLevel),ea}var gt=class{constructor(){this.unpatchedConsole=Xe,this.internalLogger=Yt,this.config={},this.metas={}}logDebug(...t){this.internalLogger.debug(`${this.name} 9`,...t)}logInfo(...t){this.internalLogger.info(`${this.name} 10`,...t)}logWarn(...t){this.internalLogger.warn(`${this.name} 11`,...t)}logError(...t){this.internalLogger.error(`${this.name} 12`,...t)}};var Wt=class extends gt{isBatched(){return!1}getIgnoreUrls(){return[]}};function ra(e){e.transports.add(...e.config.transports),e.transports.addBeforeSendHooks(e.config.beforeSend)}function lh(e,t){var r,n;if(t===void 0)return e;if(e===void 0)return{resourceSpans:t};let o=(r=e.resourceSpans)===null||r===void 0?void 0:r[0];if(o===void 0)return e;let i=o?.scopeSpans||[],s=((n=t?.[0])===null||n===void 0?void 0:n.scopeSpans)||[];return Object.assign(Object.assign({},e),{resourceSpans:[Object.assign(Object.assign({},o),{scopeSpans:[...i,...s]})]})}function An(e){let t={meta:{}};return e[0]!==void 0&&(t.meta=e[0].meta),e.forEach(r=>{switch(r.type){case V.LOG:case V.EVENT:case V.EXCEPTION:case V.MEASUREMENT:let n=mn[r.type],o=t[n];t=Object.assign(Object.assign({},t),{[n]:o===void 0?[r.payload]:[...o,r.payload]});break;case V.TRACE:t=Object.assign(Object.assign({},t),{traces:lh(t.traces,r.payload.resourceSpans)});break}}),t}var te="user-action-start",_t="user-action-end",pt="user-action-cancel",Tt="user-action-halt";function na({internalLogger:e,config:t,metas:r,transports:n,tracesApi:o,actionBuffer:i,getMessage:s}){let a=null;return{pushEvent:(E,u,_,{skipDedupe:p,spanContext:T,timestampOverwriteMs:l,customPayloadTransformer:d=m=>m}={})=>{try{let m=le(u),f={meta:r.value,payload:d({name:E,domain:_??t.eventDomain,attributes:X(m)?void 0:m,timestamp:l?At(l):Ge(),trace:T?{trace_id:T.traceId,span_id:T.spanId}:o.getTraceContext()}),type:V.EVENT},A={name:f.payload.name,attributes:f.payload.attributes,domain:f.payload.domain};if(!p&&t.dedupe&&!Ne(a)&&oe(A,a)){e.debug(`Skipping event push because it is the same as the last one 13`,f.payload);return}a=A,e.debug(`Pushing event 14`,f);let L=s();L&&L.type===te?i.addItem(f):n.execute(f)}catch(m){e.error("Error pushing event",m)}}}}var Rt="Error",gr=e=>e.map(t=>q(t)?He(t):String(t)).join(" ");function Xu(e,t){return e.some(r=>Pe(r)?t.includes(r):!!t.match(r))}var Ot;function oa({internalLogger:e,config:t,metas:r,transports:n,tracesApi:o,actionBuffer:i,getMessage:s}){var a;e.debug("Initializing exceptions API");let c=null;Ot=(a=t.parseStacktrace)!==null&&a!==void 0?a:Ot;let E=l=>{e.debug("Changing stacktrace parser"),Ot=l??Ot},u=()=>Ot,{ignoreErrors:_=[],preserveOriginalError:p}=t,T=(l,{skipDedupe:d,stackFrames:m,type:f,context:A,spanContext:L,timestampOverwriteMs:x,originalError:b}={})=>
14{if(!dh(_,b??l))try{let R=le(Object.assign(Object.assign({},Sh(b??l)),A??{})),v={meta:r.value,payload:Object.assign(Object.assign({type:f||l.name||Rt,value:l.message,timestamp:x?At(x):Ge(),trace:L?{trace_id:L.traceId,span_id:L.spanId}:o.getTraceContext()},X(R)?{}:{context:R}),p?{originalError:b}:{}),type:V.EXCEPTION};m=m??(l.stack?Ot?.(l).frames:void 0),m?.length&&(v.payload.stacktrace={frames:m});let Q={type:v.payload.type,value:v.payload.value,stackTrace:v.payload.stacktrace,context:v.payload.context};if(!d&&t.dedupe&&!Ne(c)&&oe(Q,c)){e.debug(`Skipping error push because it is the same as the last one 15`,v.payload);return}c=Q,e.debug(`Pushing exception 16`,v);let he=s();he&&he.type===te?i.addItem(v):n.execute(v)}catch(R){e.error("Error pushing event",R)}};return E(t.parseStacktrace),{changeStacktraceParser:E,getStacktraceParser:u,pushError:T}}function Sh(e){let t=e.cause;return mt(t)?t=e.cause.toString():t!==null&&(q(e.cause)||Ae(e.cause))?t=He(e.cause):t!=null&&(t=e.cause.toString()),t==null?{}:{cause:t}}function dh(e,t){let{message:r,name:n,stack:o}=t;return Xu(e,r+" "+n+" "+o)}var $e=e=>e.map(t=>{try{return String(t)}catch{return""}}).join(" ");function ia({internalLogger:e,config:t,metas:r,transports:n,tracesApi:o,actionBuffer:i,getMessage:s}){var a;e.debug("Initializing logs API");
16let c=null,E=(a=t.logArgsSerializer)!==null&&a!==void 0?a:$e;return{pushLog:(_,{context:p,level:T,skipDedupe:l,spanContext:d,timestampOverwriteMs:m}={})=>{try{let f=le(p),A={type:V.LOG,payload:{message:E(_),level:T??Sn,context:X(f)?void 0:f,timestamp:m?At(m):Ge(),trace:d?{trace_id:d.traceId,span_id:d.spanId}:o.getTraceContext()},meta:r.value},L={message:A.payload.message,level:A.payload.level,context:A.payload.context};if(!l&&t.dedupe&&!Ne(c)&&oe(L,c)){e.debug(`Skipping log push because it is the same as the last one 17`,A.payload);return}c=L,e.debug(`Pushing log 18`,A);let x=s();x&&x.type===te?i.addItem(A):n.execute(A)}catch(f){e.error(`Error pushing log 19`,f)}}}}function sa({internalLogger:e,config:t,metas:r,transports:n,tracesApi:o,actionBuffer:i,getMessage:s}){e.debug("Initializing measurements API");let a=null;return{pushMeasurement:(E,{skipDedupe:u,context:_,spanContext:p,timestampOverwriteMs:T}={})=>{try{let l=le(_),d={type:V.MEASUREMENT,payload:Object.assign(Object.assign({},E),{trace:p?{trace_id:p.traceId,span_id:p.spanId}:o.getTraceContext(),timestamp:T?At(T):Ge(),context:X(l)?void 0:l}),meta:r.value},m={type:d.payload.type,values:d.payload.values,context:d.payload.context};if(!u&&t.dedupe&&!Ne(a)&&oe(m,a)){e.debug(`Skipping measurement push because it is the same as the last one 20`,d.payload);return}a=m,e.debug(`Pushing measurement 21`,d);let f=s();f&&f.type===te?i.addItem(d):n.execute(d)}catch(l){e.error(`Error pushing measurement 22`,l)}}}}function aa({internalLogger:e,metas:t}){e.debug("Initializing meta API");let r,n,o,i,s=T=>{n&&t.remove(n),n={user:T},t.add(n)},a=(T,l)=>{var d;let m=l?.overrides,f=m?{overrides:Object.assign(Object.assign({},(d=r?.session)===null||d===void 0?void 0:d.overrides),m)}:{};r&&t.remove(r),r={session:Object.assign(Object.assign({},X(T)?void 0:T),f)},t.add(r)},c=()=>t.value.session,E=(T,l)=>{var d;if(l?.overrides&&a(c(),{overrides:l.overrides}),((d=o?.view)===null||d===void 0?void 0:d.name)===T?.name)return;let m=o;o={view:T},t.add(o),m&&t.remove(m)},u=()=>t.value.view,_=T=>{var l;let d=Pe(T)?Object.assign(Object.assign({},(l=i?.page)!==null&&l!==void 0?l:p()),{id:T}):T;i&&t.remove(i),i={page:d},t.add(i)},p=()=>t.value.page;return{setUser:s,resetUser:s,setSession:a,resetSession:a,getSession:c,setView:E,getView:u,setPage:_,getPage:p}}function ca(e,t,r,n,o){t.debug("Initializing traces API");let i;return{getOTEL:()=>i,getTraceContext:()=>{let _=i?.trace.getSpanContext(i.context.active());return _?{trace_id:_.traceId,span_id:_.spanId}:void 0},initOTEL:(_,p)=>{t.debug("Initializing OpenTelemetry"),i={trace:_,context:p}},isOTELInitialized:()=>!!i,pushTraces:_=>{try{let p={type:V.TRACE,payload:_,meta:n.value};t.debug(`Pushing trace 23`,p),o.execute(p)}catch(p){t.error(`Error pushing trace 24`,p)}}}}var $o=class{constructor(){this.buffer=[]}addItem(t){this.buffer.push(t)}flushBuffer(t){if(Me(t))for(let r of this.buffer)t(r);this.buffer.length=0}size(){return this.buffer.length}};function $u({apiMessageBus:e,transports:t,config:r}){let n=new $o,o=r.trackUserActionsExcludeItem,i;return e.subscribe(a=>{if(te===a.type||Tt===a.type){i=a;return}if(a.type===_t){let{id:c,name:E}=a;n.flushBuffer(u=>{if(fh(u,o)){t.execute(u);return}let _=Object.assign(Object.assign({},u),{payload:Object.assign(Object.assign({},u.payload),{action:{parentId:c,name:E}})});t.execute(_)}),i=void 0;return}a.type===pt&&(i=void 0,n.flushBuffer(c=>{t.execute(c)}))}),{actionBuffer:n,getMessage:()=>i}}function fh(e,t){return t?.(e)||e.type===V.MEASUREMENT&&e.payload.type==="web-vitals"}var Fe=new ee;function ua(e,t,r,n,o){t.debug("Initializing API");let{actionBuffer:i,getMessage:s}=$u({apiMessageBus:Fe,transports:o,config:r}),a=ca(e,t,r,n,o),c={unpatchedConsole:e,internalLogger:t,config:r,metas:n,transports:o,tracesApi:a,actionBuffer:i,getMessage:s};return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},a),oa(c)),aa(c)),ia(c)),sa(c)),na(c))}var Y=class extends gt{constructor(){super(...arguments),this.api={},this.transports={}}};function Ea(e,t,r,n,o,i){t.debug("Initializing instrumentations");let s=[];return{add:(...E)=>
24{t.debug("Adding instrumentations"),E.forEach(u=>{if(t.debug(`Adding "${u.name}" instrumentation`),s.some(p=>p.name===u.name)){t.warn(`Instrumentation ${u.name} is already added`);return}u.unpatchedConsole=e,u.internalLogger=t,u.config=r,u.metas=n,u.transports=o,u.api=i,s.push(u),u.initialize()})},get instrumentations(){return[...s]},remove:(...E)=>{t.debug("Removing instrumentations"),E.forEach(u=>{var _,p;t.debug(`Removing "${u.name}" instrumentation`);let T=s.reduce((l,d,m)=>l===null&&d.name===u.name?m:null,null);if(T===null){t.warn(`Instrumentation "${u.name}" is not added`);return}(p=(_=s[T]).destroy)===null||p===void 0||p.call(_),s.splice(T,1)})}}}function _a(e){e.instrumentations.add(...e.config.instrumentations)}function pa(e,t,r){let n=[],o=[],i=()=>n.reduce((_,p)=>Object.assign(_,Me(p)?p():p),{}),s=()=>{if(o.length){let _=i();o.forEach(p=>p(_))}};return{add:(..._)=>{t.debug(`Adding metas 25`,_),n.push(..._),s()},remove:(..._)=>{t.debug(`Removing metas 26`,_),n=n.filter(p=>!_.includes(p)),s()},addListener:_=>{t.debug(`Adding metas listener 27`,_),o.push(_)},removeListener:_=>{t.debug(`Removing metas listener 28`,_),o=o.filter(p=>p!==_)},get value(){return i()}}}var k="1.19.0";function Ta(e){var t,r;let n={sdk:{version:k},app:{bundleId:e.config.app.name&&Bu(e.config.app.name)}},o=(t=e.config.sessionTracking)===null||t===void 0?void 0:t.session;o&&e.api.setSession(o),e.config.app&&(n.app=Object.assign(Object.assign({},e.config.app),n.app)),e.config.user&&(n.user=e.config.user),e.config.view&&(n.view=e.config.view),e.metas.add(n,...(r=e.config.metas)!==null&&r!==void 0?r:[])}var gn="_faroInternal";function Qu(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 be){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"`);return}Object.defineProperty(be,e.config.globalObjectKey,{configurable:!1,writable:!1,value:e})}}function Rn(e){e.config.isolate?e.internalLogger.debug("Skipping registering internal Faro instance on global object"):(e.internalLogger.debug("Registering internal Faro instance on global object"),Object.defineProperty(be,gn,{configurable:!1,enumerable:!1,writable:!1,value:e}))}function On(){return gn in be}var M={};function la(e,t,r,n,o,i,s){return t.debug("Initializing Faro"),M={api:i,config:r,instrumentations:s,internalLogger:t,metas:n,pause:o.pause,transports:o,unpatchedConsole:e,unpause:o.unpause},Rn(M),Qu(M),M}function Sa(e){let t=Zs(e),r=ta(t,e);if(On()&&!e.isolate){r.error('Faro is already registered. Either add instrumentations, transports etc. to the global faro instance or use the "isolate" property');return}r.debug("Initializing");let n=pa(t,r,e),o=Js(t,r,e,n),i=ua(t,r,e,n,o),s=Ea(t,r,e,n,o,i),a=la(t,r,e,n,o,i,s);return Ta(a),ra(a),_a(a),a}var hn="faro",Qo={enabled:!0,sendTimeout:250,itemLimit:50};var da="view_changed",Rr="session_start",Nn="session_resume",fa="session_extend",Zu="service_name_override";var j="unknown";var tE=qe(eE());var Zo=()=>{let e=new tE.UAParser,{name:t,version:r}=e.getBrowser(),{name:n,version:o}=e.getOS(),i=e.getUA(),s=navigator.language,a=navigator.userAgent.includes("Mobi"),c=E();return{browser:{name:t??j,version:r??j,os:`${n??j} ${o??j}`,userAgent:i??j,language:s??j,mobile:a,brands:c??j,viewportWidth:`${window.innerWidth}`,viewportHeight:`${window.innerHeight}`}};function E(){if(!(!t||!r)&&"userAgentData"in navigator&&navigator.userAgentData)return navigator.userAgentData.brands}};function ei(e){var t,r,n,o;return{id:(o=(n=(r=(t=M.config)===null||t===void 0?void 0:t.sessionTracking)===null||r===void 0?void 0:r.generateSessionId)===null||n===void 0?void 0:n.call(r))!==null&&o!==void 0?o:ie(),attributes:e}}var Se={session:"sessionStorage",local:"localStorage"};function ma(e){var t;try{let r;r=window[e];let n="__faro_storage_test__";return r.setItem(n,n),r.removeItem(n),!0}catch(r){return(t=M.internalLogger)===null||t===void 0||t.info(`Web storage of type ${e} is not available. Reason: ${r}`),!1}}function lt(e,t){return Aa(t)?window[t].getItem(e):null}function zt(e,t,r){if(Aa(r))try{window[r].setItem(e,t)}catch{}}function Mn(e,t){Aa(t)&&window[t].removeItem(e)}var ti=ma(Se.local),ri=ma(Se.session);function Aa(e){return e===Se.local?ti:e===Se.session?ri:!1}function bn(e,t){let r=!1,n,o=()=>
28{if(n==null){r=!1;return}e(...n),n=null,setTimeout(o,t)};return(...i)=>{if(r){n=i;return}e(...i),r=!0,setTimeout(o,t)}}function rE(){return M.transports.transports.flatMap(e=>e.getIgnoreUrls())}function qt(e=""){return rE().some(t=>e&&e.match(t)!=null)}function In(e){if(Pe(e))return e;if(e instanceof URL)return e.href;if(!X(e)&&Me(e?.toString))return e.toString()}var Qe="com.grafana.faro.session";var ni={enabled:!0,persistent:!1,maxSessionPersistenceTime:9e5};function Xt(){var e,t,r;let o=M.config.sessionTracking,i=(r=(t=(e=o?.sampler)===null||e===void 0?void 0:e.call(o,{metas:M.metas.value}))!==null&&t!==void 0?t:o?.samplingRate)!==null&&r!==void 0?r:1;return typeof i!="number"&&(i=0),Math.random()<i}function Cn({sessionId:e,started:t,lastActivity:r,isSampled:n=!0}={}){var o,i;let s=ge(),a=(i=(o=M.config)===null||o===void 0?void 0:o.sessionTracking)===null||i===void 0?void 0:i.generateSessionId;return e==null&&(e=typeof a=="function"?a():ie()),{sessionId:e,lastActivity:r??s,started:t??s,isSampled:n}}function ga(e){if(e==null)return!1;let t=ge();return t-e.started<144e5?t-e.lastActivity<9e5:!1}function Or({fetchUserSession:e,storeUserSession:t}){return function({forceSessionExtend:n}={forceSessionExtend:!1}){var o,i,s;if(!e||!t)return;let a=M.config.sessionTracking,c=a?.persistent;if(c&&!ti||!c&&!ri)return;let E=e();if(n===!1&&ga(E))t(Object.assign(Object.assign({},E),{lastActivity:ge()}));else{let u=iE(Cn({isSampled:Xt()}),E);t(u),(o=M.api)===null||o===void 0||o.setSession(u.sessionMeta),(i=a?.onSessionChange)===null||i===void 0||i.call(a,(s=E?.sessionMeta)!==null&&s!==void 0?s:null,u.sessionMeta)}}}function iE(e,t){var r,n,o,i,s,a,c;let E=Object.assign(Object.assign({},e),{sessionMeta:{id:e.sessionId,attributes:Object.assign(Object.assign(Object.assign({},(n=(r=M.config.sessionTracking)===null||r===void 0?void 0:r.session)===null||n===void 0?void 0:n.attributes),(i=(o=M.metas.value.session)===null||o===void 0?void 0:o.attributes)!==null&&i!==void 0?i:{}),{isSampled:e.isSampled.toString()})}}),u=(a=(s=M.metas.value.session)===null||s===void 0?void 0:s.overrides)!==null&&a!==void 0?a:(c=t?.sessionMeta)===null||c===void 0?void 0:c.overrides;X(u)||(E.sessionMeta.overrides=u);let _=t?.sessionId;return _!=null&&(E.sessionMeta.attributes.previousSession=_),E}function oi({fetchUserSession:e,storeUserSession:t}){return function(n){let o=n.session,i=e(),s=o?.id,a=o?.attributes,c=o?.overrides,E=i?.sessionMeta,u=E?.overrides,_=!!c&&!oe(c,u),p=!!a&&!oe(a,E?.attributes);if(!!o&&s!==i?.sessionId||p||_){let l=iE(Cn({sessionId:s,isSampled:Xt()}),i);t(l),mh(_,c,u),M.api.setSession(l.sessionMeta)}}}function mh(e,t={},r={}){var n,o,i;if(!e)return;let s=t.serviceName,a=(i=(n=r.serviceName)!==null&&n!==void 0?n:(o=M.metas.value.app)===null||o===void 0?void 0:o.name)!==null&&i!==void 0?i:"";s&&s!==a&&M.api.pushEvent(Zu,{serviceName:s,previousServiceName:a})}var ht=class e{constructor(){this.updateSession=bn(()=>this.updateUserSession(),1e3),this.updateUserSession=Or({fetchUserSession:e.fetchUserSession,storeUserSession:e.storeUserSession}),this.init()}static removeUserSession(){Mn(Qe,e.storageTypeLocal)}static storeUserSession(t){zt(Qe,He(t),e.storageTypeLocal)}static fetchUserSession(){let t=lt(Qe,e.storageTypeLocal);return t?JSON.parse(t):null}init(){document.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&this.updateSession()}),M.metas.addListener(oi({fetchUserSession:e.fetchUserSession,storeUserSession:e.storeUserSession}))}};ht.storageTypeLocal=Se.local;var hr=class e{constructor(){this.updateSession=bn(()=>this.updateUserSession(),1e3),this.updateUserSession=Or({fetchUserSession:e.fetchUserSession,storeUserSession:e.storeUserSession}),this.init()}static removeUserSession(){Mn(Qe,e.storageTypeSession)}static storeUserSession(t){zt(Qe,He(t),e.storageTypeSession)}static fetchUserSession(){let t=lt(Qe,e.storageTypeSession);return t?JSON.parse(t):null}init(){document.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&this.updateSession()}),M.metas.addListener(oi({fetchUserSession:e.fetchUserSession,storeUserSession:e.storeUserSession}))}};hr.storageTypeSession=Se.session;function xn(e){return e?.persistent?ht:hr}var Nr=class extends Y{constructor(){super(...arguments),this.name="@grafana/faro-web-sdk:instrumentation-se
28ssion",this.version=k}sendSessionStartEvent(t){var r,n;let o=t.session;if(o&&o.id!==((r=this.notifiedSession)===null||r===void 0?void 0:r.id)){if(this.notifiedSession&&this.notifiedSession.id===((n=o.attributes)===null||n===void 0?void 0:n.previousSession)){this.api.pushEvent(fa,{},void 0,{skipDedupe:!0}),this.notifiedSession=o;return}this.notifiedSession=o,this.api.pushEvent(Rr,{},void 0,{skipDedupe:!0})}}createInitialSession(t,r){var n,o,i,s,a,c;let E=t.fetchUserSession();if(r.persistent&&r.maxSessionPersistenceTime&&E){let p=ge();E.lastActivity<p-r.maxSessionPersistenceTime&&(ht.removeUserSession(),E=null)}let u,_;if(ga(E)){let p=E?.sessionId;_=Cn({sessionId:p,isSampled:E.isSampled||!1,started:E?.started});let T=E?.sessionMeta,l=Object.assign(Object.assign({},(n=r.session)===null||n===void 0?void 0:n.overrides),T?.overrides);_.sessionMeta=Object.assign(Object.assign({},r.session),{id:p,attributes:Object.assign(Object.assign(Object.assign({},(o=r.session)===null||o===void 0?void 0:o.attributes),T?.attributes),{isSampled:_.isSampled.toString()}),overrides:l}),u=Nn}else{let p=(s=(i=r.session)===null||i===void 0?void 0:i.id)!==null&&s!==void 0?s:ei().id;_=Cn({sessionId:p,isSampled:Xt()});let T=(a=r.session)===null||a===void 0?void 0:a.overrides;_.sessionMeta=Object.assign({id:p,attributes:Object.assign({isSampled:_.isSampled.toString()},(c=r.session)===null||c===void 0?void 0:c.attributes)},T?{overrides:T}:{}),u=Rr}return{initialSession:_,lifecycleType:u}}registerBeforeSendHook(t){var r;let{updateSession:n}=new t;(r=this.transports)===null||r===void 0||r.addBeforeSendHooks(o=>{var i,s,a;n();let c=(i=o.meta.session)===null||i===void 0?void 0:i.attributes;if(c&&c?.isSampled==="true"){let E=JSON.parse(JSON.stringify(o)),u=(s=E.meta.session)===null||s===void 0?void 0:s.attributes;return u==null||delete u.isSampled,Object.keys(u??{}).length===0&&((a=E.meta.session)===null||a===void 0||delete a.attributes),E}return null})}initialize(){this.logDebug("init session instrumentation");let t=this.config.sessionTracking;if(t?.enabled){let r=xn(t);this.registerBeforeSendHook(r);let{initialSession:n,lifecycleType:o}=this.createInitialSession(r,t);r.storeUserSession(n);let i=n.sessionMeta;this.notifiedSession=i,this.api.setSession(i),o===Rr&&this.api.pushEvent(Rr,{},void 0,{skipDedupe:!0}),o===Nn&&this.api.pushEvent(Nn,{},void 0,{skipDedupe:!0})}this.metas.addListener(this.sendSessionStartEvent.bind(this))}};var sE="Non-Error promise rejection captured with value:",aE="UnhandledRejection",cE="DOMError",uE="DOMException",EE="Non-Error exception captured with keys:",_E="?",pE=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;function TE(e){var t,r;let n=e.match(pE),o=(t=n?.[1])!==null&&t!==void 0?t:Rt;return[(r=n?.[2])!==null&&r!==void 0?r:e,o]}var Ra=` 29`,lE="eval",SE="?",Oa="@",dE=/^\s*at (?:(.*?) ?\((?:address at )?)?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,fE=/\((\S*)(?::(\d+))(?::(\d+))\)/,mE="eval",ha="address at ",AE=ha.length,gE=/^\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,RE=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,OE=" > eval",Na="safari-extension",Pa="safari-web-extension",hE=/Minified React error #\d+;/i;function $t(e,t,r,n){let o={filename:e||document.location.href,function:t||SE};return r!==void 0&&(o.lineno=r),n!==void 0&&(o.colno=n),o}function Ln(e,t){let r=e?.includes(Na),n=!r&&e?.includes(Pa);return!r&&!n?[e,t]:[e?.includes(Oa)?e.split(Oa)[0]:e,r?`${Na}:${t}`:`${Pa}:${t}`]}function Nt(e){let t=[];e.stacktrace?t=e.stacktrace.split(Ra).filter((n,o)=>o%2===0):e.stack&&(t=e.stack.split(Ra));let r=t.reduce((n,o,i)=>{let s,a,c,E,u;if(s=dE.exec(o)){if(a=s[1],c=s[2],E=s[3],u=s[4],c?.startsWith(mE)){let _=fE.exec(c);_&&(c=_[1],E=_[2],u=_[3])}c=c?.startsWith(ha)?c.substring(AE):c,[a,c]=Ln(a,c)}else if(s=gE.exec(o)){if(a=s[1],c=s[3],E=s[4],u=s[5],c&&c.includes(OE)){let _=RE.exec(c);_&&(a=a||lE,c=_[1],E=_[2])}else i===0&&!u&&cn(e.columnNumber)&&(u=String(e.columnNumber+1));[a,c]=Ln(a,c)}return(c||a)&&n.push($t(c,a,E?Number(E):void 0,u?Number(u):void 0)),n},[]);return hE.test(e.message)?r.slice(1):r}function Dn(e){return{frames:Nt(e)}}function Ma(e){let t,r,n=[],o,i;if(pn(e)&&e.error)t=e.error.message,r=e.error.name,n=Nt(e.error);
29else if((o=Tn(e))||ln(e)){let{name:s,message:a}=e;r=s??(o?cE:uE),t=a?`${r}: ${a}`:r}else mt(e)?(t=e.message,n=Nt(e)):(q(e)||(i=_n(e)))&&(r=i?e.constructor.name:void 0,t=`${EE} ${Object.keys(e)}`);return[t,r,n]}function ba(e){let[t,r,n,o,i]=e,s,a,c=[],E=Pe(t),u=$t(r,_E,n,o);return i||!E?([s,a,c]=Ma(i??t),c.length===0&&(c=[u])):E&&([s,a]=TE(t),c=[u]),{value:s,type:a,stackFrames:c}}function Ia(e,t){return mt(e[0])?ba(e):{value:t(e)}}var Pt=class e extends Y{constructor(t={}){super(),this.options=t,this.name="@grafana/faro-web-sdk:instrumentation-console",this.version=k,this.errorSerializer=$e}initialize(){var t,r,n,o;this.options=Object.assign(Object.assign({},this.options),this.config.consoleInstrumentation);let i=((t=this.options)===null||t===void 0?void 0:t.serializeErrors)||!!(!((r=this.options)===null||r===void 0)&&r.errorSerializer);this.errorSerializer=i?(o=(n=this.options)===null||n===void 0?void 0:n.errorSerializer)!==null&&o!==void 0?o:gr:$e,dn.filter(s=>{var a,c;return!((c=(a=this.options)===null||a===void 0?void 0:a.disabledLevels)!==null&&c!==void 0?c:e.defaultDisabledLevels).includes(s)}).forEach(s=>{console[s]=(...a)=>{var c,E;try{if(s===J.ERROR&&!(!((c=this.options)===null||c===void 0)&&c.consoleErrorAsLog)){let{value:u,type:_,stackFrames:p}=Ia(a,this.errorSerializer);if(u&&!_&&!p){this.api.pushError(new Error(e.consoleErrorPrefix+u));return}this.api.pushError(new Error(e.consoleErrorPrefix+u),{type:_,stackFrames:p})}else if(s===J.ERROR&&(!((E=this.options)===null||E===void 0)&&E.consoleErrorAsLog)){let{value:u,type:_,stackFrames:p}=Ia(a,this.errorSerializer);this.api.pushLog(u?[e.consoleErrorPrefix+u]:a,{level:s,context:{value:u??"",type:_??"",stackFrames:p?.length?gr(p):""}})}else this.api.pushLog(a,{level:s})}catch(u){this.logError(u)}finally{this.unpatchedConsole[s](...a)}}})}};Pt.defaultDisabledLevels=[J.DEBUG,J.TRACE,J.LOG];Pt.consoleErrorPrefix="console.error: ";function NE(e){let t=window.onerror;window.onerror=(...r)=>{try{let{value:n,type:o,stackFrames:i}=ba(r),s=r[4];if(n){let a={type:o,stackFrames:i};s!=null&&(a.originalError=s),e.pushError(new Error(n),a)}}finally{t?.apply(window,r)}}}function PE(e){window.addEventListener("unhandledrejection",t=>{var r,n;let o=t;o.reason?o=t.reason:!((r=t.detail)===null||r===void 0)&&r.reason&&(o=(n=t.detail)===null||n===void 0?void 0:n.reason);let i,s,a=[];En(o)?(i=`${sE} ${String(o)}`,s=aE):[i,s,a]=Ma(o),i&&e.pushError(new Error(i),{type:s,stackFrames:a})})}var Pr=class extends Y{constructor(){super(...arguments),this.name="@grafana/faro-web-sdk:instrumentation-errors",this.version=k}initialize(){this.logDebug("Initializing"),NE(this.api),PE(this.api)}};var Mr=class extends Y{constructor(){super(...arguments),this.name="@grafana/faro-web-sdk:instrumentation-view",this.version=k}sendViewChangedEvent(t){var r,n,o,i;let s=t.view;s&&s.name!==((r=this.notifiedView)===null||r===void 0?void 0:r.name)&&(this.api.pushEvent(da,{fromView:(o=(n=this.notifiedView)===null||n===void 0?void 0:n.name)!==null&&o!==void 0?o:j,toView:(i=s.name)!==null&&i!==void 0?i:j},void 0,{skipDedupe:!0}),this.notifiedView=s)}initialize(){this.metas.addListener(this.sendViewChangedEvent.bind(this))}};var xa,Mt,Un,UE,ai,wE=-1,Qt=function(e){addEventListener("pageshow",function(t){t.persisted&&(wE=t.timeStamp,e(t))},!0)},La=function(){var e=self.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},ui=function(){var e=La();return e&&e.activationStart||0},Ce=function(e,t){var r=La(),n="navigate";return wE>=0?n="back-forward-cache":r&&(document.prerendering||ui()>0?n="prerender":document.wasDiscarded?n="restore":r.type&&(n=r.type.replace(/_/g,"-"))),{name:e,value:t===void 0?-1:t,rating:"good",delta:0,entries:[],id:"v4-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:n}},Ir=function(e,t,r){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var n=new PerformanceObserver(function(o){Promise.resolve().then(function(){t(o.getEntries())})});return n.observe(Object.assign({type:e,buffered:!0},r||{})),n}}catch{}},ve=function(e,t,r,n){var o,i;return function(s){t.value>=0&&(s||n)&&((i=t.value-(o||0))||o===void 0)&&(o=t.value,t.delta=i,t.rating=function(a,c){return a>c[1]?"poor":a>c[0]?"needs-improvement":"good"}(t.value,r),e(t))}},Da=function(e){requestAnimationFrame(function(){return requestAnimationFrame(function(){return e()})})},wn=function(e){document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&e()})},Ei=function(e){var t=!1;return function(){t||(e(),t=!0)}},br=-1,ME=function(){return document.visibilityState!=="hidden"||document.prerendering?1/0:0},ci=function(e){document.visibilityState==="hidden"&&br>-1&&(br=e.type==="visibilitychange"?e.timeStamp:0,Rh())},bE=function(){addEventListener("visibilitychange",ci,!0),addEventListener("prerenderingchange",ci,!0)},Rh=function(){removeEventListener("visibilitychange",ci,!0),removeEventListener("prerenderingchange",ci,!0)},ya=function(){return br<0&&(br=ME(),bE(),Qt(function(){setTimeout(function(){br=ME(),bE()},0)})),{get firstHiddenTime(){return br}}},Vn=function(e){document.prerendering?addEventListener("prerenderingchange",function(){return e()},!0):e()},IE=[1800,3e3],Ua=function(e,t){t=t||{},Vn(function(){var r,n=ya(),o=Ce("FCP"),i=Ir("paint",function(s){s.forEac
29h(function(a){a.name==="first-contentful-paint"&&(i.disconnect(),a.startTime<n.firstHiddenTime&&(o.value=Math.max(a.startTime-ui(),0),o.entries.push(a),r(!0)))})});i&&(r=ve(e,o,IE,t.reportAllChanges),Qt(function(s){o=Ce("FCP"),r=ve(e,o,IE,t.reportAllChanges),Da(function(){o.value=performance.now()-s.timeStamp,r(!0)})}))})},CE=[.1,.25],VE=function(e,t){t=t||{},Ua(Ei(function(){var r,n=Ce("CLS",0),o=0,i=[],s=function(c){c.forEach(function(E){if(!E.hadRecentInput){var u=i[0],_=i[i.length-1];o&&E.startTime-_.startTime<1e3&&E.startTime-u.startTime<5e3?(o+=E.value,i.push(E)):(o=E.value,i=[E])}}),o>n.value&&(n.value=o,n.entries=i,r())},a=Ir("layout-shift",s);a&&(r=ve(e,n,CE,t.reportAllChanges),wn(function(){s(a.takeRecords()),r(!0)}),Qt(function(){o=0,n=Ce("CLS",0),r=ve(e,n,CE,t.reportAllChanges),Da(function(){return r()})}),setTimeout(r,0))}))},BE=0,Ca=1/0,ii=0,Oh=function(e){e.forEach(function(t){t.interactionId&&(Ca=Math.min(Ca,t.interactionId),ii=Math.max(ii,t.interactionId),BE=ii?(ii-Ca)/7+1:0)})},GE=function(){return xa?BE:performance.interactionCount||0},hh=function(){"interactionCount"in performance||xa||(xa=Ir("event",Oh,{type:"event",buffered:!0,durationThreshold:0}))},Je=[],si=new Map,HE=0,Nh=function(){var e=Math.min(Je.length-1,Math.floor((GE()-HE)/50));return Je[e]},Ph=[],Mh=function(e){if(Ph.forEach(function(o){return o(e)}),e.interactionId||e.entryType==="first-input"){var t=Je[Je.length-1],r=si.get(e.interactionId);if(r||Je.length<10||e.duration>t.latency){if(r)e.duration>r.latency?(r.entries=[e],r.latency=e.duration):e.duration===r.latency&&e.startTime===r.entries[0].startTime&&r.entries.push(e);else{var n={id:e.interactionId,latency:e.duration,entries:[e]};si.set(n.id,n),Je.push(n)}Je.sort(function(o,i){return i.latency-o.latency}),Je.length>10&&Je.splice(10).forEach(function(o){return si.delete(o.id)})}}},FE=function(e){var t=self.requestIdleCallback||self.setTimeout,r=-1;return e=Ei(e),document.visibilityState==="hidden"?e():(r=t(e),wn(e)),r},vE=[200,500],kE=function(e,t){"PerformanceEventTiming"in self&&"interactionId"in PerformanceEventTiming.prototype&&(t=t||{},Vn(function(){var r;hh();var n,o=Ce("INP"),i=function(a){FE(function(){a.forEach(Mh);var c=Nh();c&&c.latency!==o.value&&(o.value=c.latency,o.entries=c.entries,n())})},s=Ir("event",i,{durationThreshold:(r=t.durationThreshold)!==null&&r!==void 0?r:40});n=ve(e,o,vE,t.reportAllChanges),s&&(s.observe({type:"first-input",buffered:!0}),wn(function(){i(s.takeRecords()),n(!0)}),Qt(function(){HE=GE(),Je.length=0,si.clear(),o=Ce("INP"),n=ve(e,o,vE,t.reportAllChanges)}))}))},xE=[2500,4e3],va={},YE=function(e,t){t=t||{},Vn(function(){var r,n=ya(),o=Ce("LCP"),i=function(c){t.reportAllChanges||(c=c.slice(-1)),c.forEach(function(E){E.startTime<n.firstHiddenTime&&(o.value=Math.max(E.startTime-ui(),0),o.entries=[E],r())})},s=Ir("largest-contentful-paint",i);if(s){r=ve(e,o,xE,t.reportAllChanges);var a=Ei(function(){va[o.id]||(i(s.takeRecords()),s.disconnect(),va[o.id]=!0,r(!0))});["keydown","click"].forEach(function(c){addEventListener(c,function(){return FE(a)},{once:!0,capture:!0})}),wn(a),Qt(function(c){o=Ce("LCP"),r=ve(e,o,xE,t.reportAllChanges),Da(function(){o.value=performance.now()-c.timeStamp,va[o.id]=!0,r(!0)})})}})},LE=[800,1800],bh=function e(t){document.prerendering?Vn(function(){return e(t)}):document.readyState!=="complete"?addEventListener("load",function(){return e(t)},!0):setTimeout(t,0)},jE=function(e,t){t=t||{};var r=Ce("TTFB"),n=ve(e,r,LE,t.reportAllChanges);bh(function(){var o=La();o&&(r.value=Math.max(o.responseStart-ui(),0),r.entries=[o],n(!0),Qt(function(){r=Ce("TTFB",0),(n=ve(e,r,LE,t.reportAllChanges))(!0)}))})},yn={passive:!0,capture:!0},Ih=new Date,DE=function(e,t){Mt||(Mt=t,Un=e,UE=new Date,WE(removeEventListener),KE())},KE=function(){if(Un>=0&&Un<UE-Ih){var e={entryType:"first-input",name:Mt.type,target:Mt.target,cancelable:Mt.cancelable,startTime:Mt.timeStamp,processingStart:Mt.timeStamp+Un};ai.forEach(function(t){t(e)}),ai=[]}},Ch=function(e){if(e.cancelable){var t=(e.timeStamp>1e12?new Date:performance.now())-e.timeStamp;e.type=="pointerdown"?function(r,n){var o=function(){DE(r,n),s()},i=function(){s()},s=function(){removeEventListener("pointerup",o,yn),removeEventListener("pointercancel",i,yn)};addEventListener("pointerup",o,yn),addEventListener("pointercancel",i,yn)}(t,e):DE(t,e)}},WE=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach(function(t){return e(t,Ch,yn)})},yE=[100,300],zE=function(e,t){t=t||{},Vn(function(){var r,n=ya(),o=Ce("FID"),i=function(c){c.startTime<n.firstHiddenTime&&(o.value=c.processingStart-c.startTime,o.entries.push(c),r(!0))}
29,s=function(c){c.forEach(i)},a=Ir("first-input",s);r=ve(e,o,yE,t.reportAllChanges),a&&(wn(Ei(function(){s(a.takeRecords()),a.disconnect()})),Qt(function(){var c;o=Ce("FID"),r=ve(e,o,yE,t.reportAllChanges),ai=[],Un=-1,Mt=null,WE(addEventListener),c=i,ai.push(c),KE()}))})};var Bn=class e{constructor(t,r){this.pushMeasurement=t,this.webVitalConfig=r}initialize(){Object.entries(e.mapping).forEach(([t,r])=>{var n;r(o=>{this.pushMeasurement({type:"web-vitals",values:{[t]:o.value}})},{reportAllChanges:(n=this.webVitalConfig)===null||n===void 0?void 0:n.reportAllChanges})})}};Bn.mapping={cls:VE,fcp:Ua,fid:zE,inp:kE,lcp:YE,ttfb:jE};var Ba,qE,Lr=function(){var e=self.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},kn=function(e){if(document.readyState==="loading")return"loading";var t=Lr();if(t){if(e<t.domInteractive)return"loading";if(t.domContentLoadedEventStart===0||e<t.domContentLoadedEventStart)return"dom-interactive";if(t.domComplete===0||e<t.domComplete)return"dom-content-loaded"}return"complete"},vh=function(e){var t=e.nodeName;return e.nodeType===1?t.toLowerCase():t.toUpperCase().replace(/^#/,"")},li=function(e,t){var r="";try{for(;e&&e.nodeType!==9;){var n=e,o=n.id?"#"+n.id:vh(n)+(n.classList&&n.classList.value&&n.classList.value.trim()&&n.classList.value.trim().length?"."+n.classList.value.trim().replace(/\s+/g,"."):"");if(r.length+o.length>(t||100)-1)return r||o;if(r=r?o+">"+r:o,n.id)break;e=n.parentNode}}catch{}return r},o_=-1,i_=function(){return o_},Jt=function(e){addEventListener("pageshow",function(t){t.persisted&&(o_=t.timeStamp,e(t))},!0)},Si=function(){var e=Lr();return e&&e.activationStart||0},xe=function(e,t){var r=Lr(),n="navigate";return i_()>=0?n="back-forward-cache":r&&(document.prerendering||Si()>0?n="prerender":document.wasDiscarded?n="restore":r.type&&(n=r.type.replace(/_/g,"-"))),{name:e,value:t===void 0?-1:t,rating:"good",delta:0,entries:[],id:"v4-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:n}},Zt=function(e,t,r){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var n=new PerformanceObserver(function(o){Promise.resolve().then(function(){t(o.getEntries())})});return n.observe(Object.assign({type:e,buffered:!0},r||{})),n}}catch{}},Le=function(e,t,r,n){var o,i;return function(s){t.value>=0&&(s||n)&&((i=t.value-(o||0))||o===void 0)&&(o=t.value,t.delta=i,t.rating=function(a,c){return a>c[1]?"poor":a>c[0]?"needs-improvement":"good"}(t.value,r),e(t))}},Fa=function(e){requestAnimationFrame(function(){return requestAnimationFrame(function(){return e()})})},Yn=function(e){document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&e()})},di=function(e){var t=!1;return function(){t||(e(),t=!0)}},Cr=-1,XE=function(){return document.visibilityState!=="hidden"||document.prerendering?1/0:0},pi=function(e){document.visibilityState==="hidden"&&Cr>-1&&(Cr=e.type==="visibilitychange"?e.timeStamp:0,xh())},$E=function(){addEventListener("visibilitychange",pi,!0),addEventListener("prerenderingchange",pi,!0)},xh=function(){removeEventListener("visibilitychange",pi,!0),removeEventListener("prerenderingchange",pi,!0)},ka=function(){return Cr<0&&(Cr=XE(),$E(),Jt(function(){setTimeout(function(){Cr=XE(),$E()},0)})),{get firstHiddenTime(){return Cr}}},jn=function(e){document.prerendering?addEventListener("prerenderingchange",function(){return e()},!0):e()},QE=[1800,3e3],s_=function(e,t){t=t||{},jn(function(){var r,n=ka(),o=xe("FCP"),i=Zt("paint",function(s){s.forEach(function(a){a.name==="first-contentful-paint"&&(i.disconnect(),a.startTime<n.firstHiddenTime&&(o.value=Math.max(a.startTime-Si(),0),o.entries.push(a),r(!0)))})});i&&(r=Le(e,o,QE,t.reportAllChanges),Jt(function(s){o=xe("FCP"),r=Le(e,o,QE,t.reportAllChanges),Fa(function(){o.value=performance.now()-s.timeStamp,r(!0)})}))})},JE=[.1,.25],a_=function(e,t){(function(r,n){n=n||{},s_(di(function(){var o,i=xe("CLS",0),s=0,a=[],c=function(u){u.forEach(function(_){if(!_.hadRecentInput){var p=a[0],T=a[a.length-1];s&&_.startTime-T.startTime<1e3&&_.startTime-p.startTime<5e3?(s+=_.value,a.push(_)):(s=_.value,a=[_])}}),s>i.value&&(i.value=s,i.entries=a,o())},E=Zt("layout-shift",c);E&&(o=Le(r,i,JE,n.reportAllChanges),Yn(function(){c(E.takeRecords()),o(!0)}),Jt(function(){s=0,i=xe("CLS",0),o=Le(r,i,JE,n.reportAllChanges),Fa(function(){return o()})}),setTimeout(o,0))}))})(function(r){var n=function(o){var i,s={};
29if(o.entries.length){var a=o.entries.reduce(function(E,u){return E&&E.value>u.value?E:u});if(a&&a.sources&&a.sources.length){var c=(i=a.sources).find(function(E){return E.node&&E.node.nodeType===1})||i[0];c&&(s={largestShiftTarget:li(c.node),largestShiftTime:a.startTime,largestShiftValue:a.value,largestShiftSource:c,largestShiftEntry:a,loadState:kn(a.startTime)})}}return Object.assign(o,{attribution:s})}(r);e(n)},t)},c_=function(e,t){s_(function(r){var n=function(o){var i={timeToFirstByte:0,firstByteToFCP:o.value,loadState:kn(i_())};if(o.entries.length){var s=Lr(),a=o.entries[o.entries.length-1];if(s){var c=s.activationStart||0,E=Math.max(0,s.responseStart-c);i={timeToFirstByte:E,firstByteToFCP:o.value-E,loadState:kn(o.entries[0].startTime),navigationEntry:s,fcpEntry:a}}}return Object.assign(o,{attribution:i})}(r);e(n)},t)},u_=0,wa=1/0,_i=0,Lh=function(e){e.forEach(function(t){t.interactionId&&(wa=Math.min(wa,t.interactionId),_i=Math.max(_i,t.interactionId),u_=_i?(_i-wa)/7+1:0)})},E_=function(){return Ba?u_:performance.interactionCount||0},Dh=function(){"interactionCount"in performance||Ba||(Ba=Zt("event",Lh,{type:"event",buffered:!0,durationThreshold:0}))},ke=[],Hn=new Map,__=0,yh=function(){var e=Math.min(ke.length-1,Math.floor((E_()-__)/50));return ke[e]},p_=[],Uh=function(e){if(p_.forEach(function(o){return o(e)}),e.interactionId||e.entryType==="first-input"){var t=ke[ke.length-1],r=Hn.get(e.interactionId);if(r||ke.length<10||e.duration>t.latency){if(r)e.duration>r.latency?(r.entries=[e],r.latency=e.duration):e.duration===r.latency&&e.startTime===r.entries[0].startTime&&r.entries.push(e);else{var n={id:e.interactionId,latency:e.duration,entries:[e]};Hn.set(n.id,n),ke.push(n)}ke.sort(function(o,i){return i.latency-o.latency}),ke.length>10&&ke.splice(10).forEach(function(o){return Hn.delete(o.id)})}}},Ya=function(e){var t=self.requestIdleCallback||self.setTimeout,r=-1;return e=di(e),document.visibilityState==="hidden"?e():(r=t(e),Yn(e)),r},ZE=[200,500],wh=function(e,t){"PerformanceEventTiming"in self&&"interactionId"in PerformanceEventTiming.prototype&&(t=t||{},jn(function(){var r;Dh();var n,o=xe("INP"),i=function(a){Ya(function(){a.forEach(Uh);var c=yh();c&&c.latency!==o.value&&(o.value=c.latency,o.entries=c.entries,n())})},s=Zt("event",i,{durationThreshold:(r=t.durationThreshold)!==null&&r!==void 0?r:40});n=Le(e,o,ZE,t.reportAllChanges),s&&(s.observe({type:"first-input",buffered:!0}),Yn(function(){i(s.takeRecords()),n(!0)}),Jt(function(){__=E_(),ke.length=0,Hn.clear(),o=xe("INP"),n=Le(e,o,ZE,t.reportAllChanges)}))}))},vr=[],bt=[],Ga=0,ja=new WeakMap,xr=new Map,Ha=-1,Vh=function(e){vr=vr.concat(e),T_()},T_=function(){Ha<0&&(Ha=Ya(Bh))},Bh=function(){xr.size>10&&xr.forEach(function(s,a){Hn.has(a)||xr.delete(a)});var e=ke.map(function(s){return ja.get(s.entries[0])}),t=bt.length-50;bt=bt.filter(function(s,a){return a>=t||e.includes(s)});for(var r=new Set,n=0;n<bt.length;n++){var o=bt[n];S_(o.startTime,o.processingEnd).forEach(function(s){r.add(s)})}var i=vr.length-1-50;vr=vr.filter(function(s,a){return s.startTime>Ga&&a>i||r.has(s)}),Ha=-1};p_.push(function(e){e.interactionId&&e.target&&!xr.has(e.interactionId)&&xr.set(e.interactionId,e.target)},function(e){var t,r=e.startTime+e.duration;Ga=Math.max(Ga,e.processingEnd);for(var n=bt.length-1;n>=0;n--){var o=bt[n];if(Math.abs(r-o.renderTime)<=8){(t=o).startTime=Math.min(e.startTime,t.startTime),t.processingStart=Math.min(e.processingStart,t.processingStart),t.processingEnd=Math.max(e.processingEnd,t.processingEnd),t.entries.push(e);break}}t||(t={startTime:e.startTime,processingStart:e.processingStart,processingEnd:e.processingEnd,renderTime:r,entries:[e]},bt.push(t)),(e.interactionId||e.entryType==="first-input")&&ja.set(e,t),T_()});var It,Fn,l_,Ti,S_=function(e,t){for(var r,n=[],o=0;r=vr[o];o++)if(!(r.startTime+r.duration<e)){if(r.startTime>t)break;n.push(r)}return n},d_=function(e,t){qE||(qE=Zt("long-animation-frame",Vh)),wh(function(r){var n=function(o){var i=o.entries[0],s=ja.get(i),a=i.processingStart,c=s.processingEnd,E=s.entries.sort(function(m,f){return m.processingStart-f.processingStart}),u=S_(i.startTime,c),_=o.entries.find(function(m){return m.target}),p=_&&_.target||xr.get(i.interactionId),T=[i.startTime+i.duration,c].c
29oncat(u.map(function(m){return m.startTime+m.duration})),l=Math.max.apply(Math,T),d={interactionTarget:li(p),interactionTargetElement:p,interactionType:i.name.startsWith("key")?"keyboard":"pointer",interactionTime:i.startTime,nextPaintTime:l,processedEventEntries:E,longAnimationFrameEntries:u,inputDelay:a-i.startTime,processingDuration:c-a,presentationDelay:Math.max(l-c,0),loadState:kn(i.startTime)};return Object.assign(o,{attribution:d})}(r);e(n)},t)},e_=[2500,4e3],Va={},f_=function(e,t){(function(r,n){n=n||{},jn(function(){var o,i=ka(),s=xe("LCP"),a=function(u){n.reportAllChanges||(u=u.slice(-1)),u.forEach(function(_){_.startTime<i.firstHiddenTime&&(s.value=Math.max(_.startTime-Si(),0),s.entries=[_],o())})},c=Zt("largest-contentful-paint",a);if(c){o=Le(r,s,e_,n.reportAllChanges);var E=di(function(){Va[s.id]||(a(c.takeRecords()),c.disconnect(),Va[s.id]=!0,o(!0))});["keydown","click"].forEach(function(u){addEventListener(u,function(){return Ya(E)},{once:!0,capture:!0})}),Yn(E),Jt(function(u){s=xe("LCP"),o=Le(r,s,e_,n.reportAllChanges),Fa(function(){s.value=performance.now()-u.timeStamp,Va[s.id]=!0,o(!0)})})}})})(function(r){var n=function(o){var i={timeToFirstByte:0,resourceLoadDelay:0,resourceLoadDuration:0,elementRenderDelay:o.value};
29if(o.entries.length){var s=Lr();if(s){var a=s.activationStart||0,c=o.entries[o.entries.length-1],E=c.url&&performance.getEntriesByType("resource").filter(function(l){return l.name===c.url})[0],u=Math.max(0,s.responseStart-a),_=Math.max(u,E?(E.requestStart||E.startTime)-a:0),p=Math.max(_,E?E.responseEnd-a:0),T=Math.max(p,c.startTime-a);i={element:li(c.element),timeToFirstByte:u,resourceLoadDelay:_-u,resourceLoadDuration:p-_,elementRenderDelay:T-p,navigationEntry:s,lcpEntry:c},c.url&&(i.url=c.url),E&&(i.lcpResourceEntry=E)}}return Object.assign(o,{attribution:i})}(r);e(n)},t)},t_=[800,1800],Gh=function e(t){document.prerendering?jn(function(){return e(t)}):document.readyState!=="complete"?addEventListener("load",function(){return e(t)},!0):setTimeout(t,0)},Hh=function(e,t){t=t||{};var r=xe("TTFB"),n=Le(e,r,t_,t.reportAllChanges);Gh(function(){var o=Lr();o&&(r.value=Math.max(o.responseStart-Si(),0),r.entries=[o],n(!0),Jt(function(){r=xe("TTFB",0),(n=Le(e,r,t_,t.reportAllChanges))(!0)}))})},m_=function(e,t){Hh(function(r){var n=function(o){var i={waitingDuration:0,cacheDuration:0,dnsDuration:0,connectionDuration:0,requestDuration:0};if(o.entries.length){var s=o.entries[0],a=s.activationStart||0,c=Math.max((s.workerStart||s.fetchStart)-a,0),E=Math.max(s.domainLookupStart-a,0),u=Math.max(s.connectStart-a,0),_=Math.max(s.connectEnd-a,0);i={waitingDuration:c,cacheDuration:E-c,dnsDuration:u-E,connectionDuration:_-u,requestDuration:o.value-_,navigationEntry:s}}return Object.assign(o,{attribution:i})}(r);e(n)},t)},Gn={passive:!0,capture:!0},Fh=new Date,r_=function(e,t){It||(It=t,Fn=e,l_=new Date,g_(removeEventListener),A_())},A_=function(){if(Fn>=0&&Fn<l_-Fh){var e={entryType:"first-input",name:It.type,target:It.target,cancelable:It.cancelable,startTime:It.timeStamp,processingStart:It.timeStamp+Fn};Ti.forEach(function(t){t(e)}),Ti=[]}},kh=function(e){if(e.cancelable){var t=(e.timeStamp>1e12?new Date:performance.now())-e.timeStamp;e.type=="pointerdown"?function(r,n){var o=function(){r_(r,n),s()},i=function(){s()},s=function(){removeEventListener("pointerup",o,Gn),removeEventListener("pointercancel",i,Gn)};addEventListener("pointerup",o,Gn),addEventListener("pointercancel",i,Gn)}(t,e):r_(t,e)}},g_=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach(function(t){return e(t,kh,Gn)})},n_=[100,300],Yh=function(e,t){t=t||{},jn(function(){var r,n=ka(),o=xe("FID"),i=function(c){c.startTime<n.firstHiddenTime&&(o.value=c.processingStart-c.startTime,o.entries.push(c),r(!0))},s=function(c){c.forEach(i)},a=Zt("first-input",s);r=Le(e,o,n_,t.reportAllChanges),a&&(Yn(di(function(){s(a.takeRecords()),a.disconnect()})),Jt(function(){var c;o=xe("FID"),r=Le(e,o,n_,t.reportAllChanges),Ti=[],Fn=-1,It=null,g_(addEventListener),c=i,Ti.push(c),A_()}))})},R_=function(e,t){Yh(function(r){var n=function(o){var i=o.entries[0],s={eventTarget:li(i.target),eventType:i.name,eventTime:i.startTime,eventEntry:i,loadState:kn(i.startTime)};return Object.assign(o,{attribution:s})}(r);e(n)},t)};var Kn="com.grafana.faro.lastNavigationId";var fi="load_state",O_="time_to_first_byte",mi=class{constructor(t,r){this.corePushMeasurement=t,this.webVitalConfig=r}initialize(){this.measureCLS(),this.measureFCP(),this.measureFID(),this.measureINP(),this.measureLCP(),this.measureTTFB()}measureCLS(){var t;a_(r=>{let{loadState:n,largestShiftValue:o,largestShiftTime:i,largestShiftTarget:s}=r.attribution,a=this.buildInitialValues(r);this.addIfPresent(a,"largest_shift_value",o),this.addIfPresent(a,"largest_shift_time",i);let c=this.buildInitialContext(r);this.addIfPresent(c,fi,n),this.addIfPresent(c,"largest_shift_target",s),this.pushMeasurement(a,c)},{reportAllChanges:(t=this.webVitalConfig)===null||t===void 0?void 0:t.reportAllChanges})}measureFCP(){var t;c_(r=>{let{firstByteToFCP:n,timeToFirstByte:o,loadState:i}=r.attribution,s=this.buildInitialValues(r);this.addIfPresent(s,"first_byte_to_fcp",n),this.addIfPresent(s,O_,o);let a=this.buildInitialContext(r);this.addIfPresent(a,fi,i),this.pushMeasurement(s,a)},{reportAllChanges:(t=this.webVitalConfig)===null||t===void 0?void 0:t.reportAllChanges})}measureFID(){var t;R_(r=>{let{eventTime:n,eventTarget:o,eventType:i,loadState:s}=r.attribution,a=this.buildInitialValues(r);this.addIfPresent(a,"event_time",n);let c=this.buildInitialContext(r);this.addIfPresent(c,"event_target",o),this.addIfPresent(c,"event_type",i),this.addIfPresent(c,fi,s),this.pushMeasurement(a,c)},{reportAllChanges:(t=this.webVitalConfig)===null||t===void 0?void 0:t.reportAllChanges})}measureINP(){var t;d_(r=>{let{interactionTime:n,presentationDelay:o,inputDelay:i,processingDuration:s,nextPaintTime:a,loadState:c,interactionTarget:E,interactionType:u}=r.attribution,_=this.buildInitialValues(r);this.addIfPresent(_,"interaction_time",n),this.addIfPresent(_,"presentation_delay",o),this.addIfPresent(_,"input_delay",i),this.addIfPresent(_,"processing_duration",s),this.addIfPresent(_,"next_paint_time",a);let p=this.buildInitialContext(r);this.addIfPresent(p,fi,c),this.addIfPresent(p,"interaction_target",E),this.addIfPresent(p,"interaction_type",u),this.pushMeasurement(_,p)},{reportAllChanges:(t=this.webVitalConfig)===null||t===void 0?void 0:t.reportAllChanges})}measureLCP(){var t;f_(r=>{let{elementRenderDelay:n,resourceLoadDelay:o,resourceLoadDuration:i,timeToFirstByte:s,element:a}=r.attribution,c=this.buildInitialValues(r);this.addIfPresent(c,"element_render_delay",n),this.addIfPresent(c,"resource_load_delay",o),this.addIfPresent(c,"resource_load_duration",i),this.addIfPresent(c,O_,s);let E=this.buildInitialContext(r);this.addIfPresent(E,"element",a),this.pushMeasurement(c,E)},{reportAllChanges:(t=this.webVitalConfig)===null||t===void 0?void 0:t.reportAllChanges})}measureTTFB(){var t;m_(r=>{let{dnsDuration:n,connectionDuration:o,requestDuration:i,waitingDuration:s,cacheDuration:a}=r.attribution,c=this.buildInitialValues(r);this.addIfPresent(c,"dns_duration",n),this.addIfPresent(c,"connection_duration",o),this.addIfPresent(c,"request_duration",i),this.addIfPresent(c,"waiting_duration",s),this.addIfPresent(c,"cac
29he_duration",a);let E=this.buildInitialContext(r);this.pushMeasurement(c,E)},{reportAllChanges:(t=this.webVitalConfig)===null||t===void 0?void 0:t.reportAllChanges})}buildInitialValues(t){return{[t.name.toLowerCase()]:t.value,delta:t.delta}}buildInitialContext(t){var r;let n=(r=lt(Kn,Se.session))!==null&&r!==void 0?r:j;return{id:t.id,rating:t.rating,navigation_type:t.navigationType,navigation_entry_id:n}}pushMeasurement(t,r){this.corePushMeasurement({type:"web-vitals",values:t},{context:r})}addIfPresent(t,r,n){n&&(t[r]=n)}};var Dr=class extends Y{constructor(){super(...arguments),this.name="@grafana/faro-web-sdk:instrumentation-web-vitals",this.version=k}initialize(){this.logDebug("Initializing"),this.intializeWebVitalsInstrumentation().initialize()}intializeWebVitalsInstrumentation(){var t,r,n;return((t=this.config)===null||t===void 0?void 0:t.trackWebVitalsAttribution)===!1||((n=(r=this.config)===null||r===void 0?void 0:r.webVitalsInstrumentation)===null||n===void 0?void 0:n.trackAttribution)===!1?new Bn(this.api.pushMeasurement,this.config.webVitalsInstrumentation):new mi(this.api.pushMeasurement,this.config.webVitalsInstrumentation)}};var h_="navigation",Wn="resource";var jh=/^00-[a-f0-9]{32}-[a-f0-9]{16}-[0-9]{1,2}$/;function Ai(e=[]){for(let t of e)if(t.name==="traceparent"){if(!jh.test(t.description))continue;let[,r,n]=t.description.split("-");if(r!=null&&n!=null)return{traceId:r,spanId:n};break}}function N_(){return"PerformanceObserver"in window}function P_(e){if(document.readyState==="complete")e();else{let t=()=>{document.readyState==="complete"&&(e(),document.removeEventListener("readystatechange",t))};document.addEventListener("readystatechange",t)}}function M_(e,t={}){for(let[r,n]of Object.entries(t)){let o=e[r];return o==null?!1:Ae(n)?n.includes(o):o===n}return!0}function Ka(e){let{connectEnd:t,connectStart:r,decodedBodySize:n,domainLookupEnd:o,domainLookupStart:i,duration:s,encodedBodySize:a,fetchStart:c,initiatorType:E,name:u,nextHopProtocol:_,redirectEnd:p,redirectStart:T,renderBlockingStatus:l,requestStart:d,responseEnd:m,responseStart:f,responseStatus:A,secureConnectionStart:L,transferSize:x,workerStart:b}=e;return{name:u,duration:K(s),tcpHandshakeTime:K(t-r),dnsLookupTime:K(o-i),tlsNegotiationTime:K(t-L),responseStatus:K(A),redirectTime:K(p-T),requestTime:K(f-d),responseTime:K(m-f),fetchTime:K(m-c),serviceWorkerTime:K(c-b),decodedBodySize:K(n),encodedBodySize:K(a),cacheHitStatus:R(),renderBlockingStatus:K(l),protocol:_,initiatorType:E,visibilityState:document.visibilityState,ttfb:K(f-d),transferSize:K(x)};function R(){let v="fullLoad";return x===0?n>0&&(v="cache"):A!=null?A===304&&(v="conditionalFetch"):a>0&&x<a&&(v="conditionalFetch"),v}}function b_(e){let{activationStart:t,domComplete:r,domContentLoadedEventEnd:n,domContentLoadedEventStart:o,domInteractive:i,fetchStart:s,loadEventEnd:a,loadEventStart:c,responseStart:E,type:u}=e,_=Kh();return Object.assign(Object.assign({},Ka(e)),{pageLoadTime:K(r-s),documentParsingTime:K(_?i-_:null),domProcessingTime:K(r-i),domContentLoadHandlerTime:K(n-o),onLoadTime:K(a-c),ttfb:K(Math.max(E-(t??0),0)),type:u})}function Kh(){var e;return((e=performance.timing)===null||e===void 0?void 0:e.domLoading)!=null?performance.timing.domLoading-performance.timeOrigin:null}function K(e){return e==null?j:typeof e=="number"?Math.round(e>0?e:0).toString():e.toString()}function I_(e){let t,r=new Promise(o=>{t=o});return new PerformanceObserver(o=>{var i;let[s]=o.getEntries();if(s==null||qt(s.name))return;let a=s.toJSON(),c=Ai(a?.serverTiming),E=(i=lt(Kn,Se.session))!==null&&i!==void 0?i:j,u=Object.assign(Object.assign({},b_(a)),{faroNavigationId:ie(),faroPreviousNavigationId:E});zt(Kn,u.faroNavigationId,Se.session),e("faro.performance.navigation",u,void 0,{spanContext:c,timestampOverwriteMs:performance.timeOrigin+a.startTime}),t(u)}
29).observe({type:h_,buffered:!0}),r}var Wh={initiatorType:["xmlhttprequest","fetch"]};function C_(e,t,r){let n=M.config.trackResources;new PerformanceObserver(i=>{let s=i.getEntries();for(let a of s){if(qt(a.name))return;let c=a.toJSON(),E=Ai(c?.serverTiming);if(n==null&&M_(c,Wh)||n){let u=Object.assign(Object.assign({},Ka(c)),{faroNavigationId:e,faroResourceId:ie()});M.config.trackUserActionsPreview&&r?.notify({type:Wn}),t("faro.performance.resource",u,void 0,{spanContext:E,timestampOverwriteMs:performance.timeOrigin+c.startTime})}}}).observe({type:Wn,buffered:!0})}var zh=function(e,t,r,n){function o(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function a(u){try{E(n.next(u))}catch(_){s(_)}}function c(u){try{E(n.throw(u))}catch(_){s(_)}}function E(u){u.done?i(u.value):o(u.value).then(a,c)}E((n=n.apply(e,t||[])).next())})},Wa=new ee,yr=class extends Y{constructor(){super(...arguments),this.name="@grafana/faro-web-sdk:instrumentation-performance",this.version=k}initialize(){if(!N_()){this.logDebug("performance observer not supported. Disable performance instrumentation.");return}P_(()=>zh(this,void 0,void 0,function*(){let t=this.api.pushEvent,{faroNavigationId:r}=yield I_(t);r!=null&&C_(r,t,Wa)}))}};var v_="resource-entry",gi="http-request-start",Ri="http-request-end",x_="dom-mutation",L_="faroUserActionName",za="data-faro-user-action-name",D_="faroApiCall";function y_(){let e=new ee;return new MutationObserver((r,n)=>{e.notify({type:x_})}).observe(document,{attributes:!0,childList:!0,subtree:!0,characterData:!0}),e}var qa="fetch",Oi="xhr";function U_(){let e=new ee;function t(n){e.notify({type:gi,request:n})}function r(n){e.notify({type:Ri,request:n})}return Xh({onRequestStart:t,onRequestEnd:r}),qh({onRequestStart:t,onRequestEnd:r}),e}function qh({onRequestStart:e,onRequestEnd:t}){let r=XMLHttpRequest.prototype.open;XMLHttpRequest.prototype.open=function(){let n=arguments[1],o=qt(n),i=arguments[0],s=ie();this.addEventListener("loadstart",function(){o||e({url:n,method:i,requestId:s,apiType:Oi})}),this.addEventListener("load",function(){o||t({url:n,method:i,requestId:s,apiType:Oi})}),this.addEventListener("error",function(){o||t({url:n,method:i,requestId:s,apiType:Oi})}),this.addEventListener("abort",function(){o||t({url:n,method:i,requestId:s,apiType:Oi})}),r.apply(this,arguments)}}function Xh({onRequestEnd:e,onRequestStart:t}){let r=window.fetch;window.fetch=function(){var n,o;let i=(n=In(arguments[0]))!==null&&n!==void 0?n:"",s=qt(i),a=((o=arguments[1])!==null&&o!==void 0?o:{}).method,c=ie();return s||t({url:i,method:a,requestId:c,apiType:qa}),r.apply(this,arguments).then(E=>(s||e({url:i,method:a,requestId:c,apiType:qa}),E)).catch(E=>{throw s||e({url:i,method:a,requestId:c,apiType:qa}),E})}}function w_(){let e=new ee;return Wa.subscribe(t=>{t.type===Wn&&e.notify({type:v_})}),e}function V_(e){let t=e.split("data-")[1],r=t?.replace(/-(.)/g,(n,o)=>o.toUpperCase());return r?.replace(/-/g,"")}var B_=100;function k_(e){let{api:t,config:r}=e,n=U_(),o=y_(),i=w_(),s,a=!1;function c(E){var u;let _,p=Zh(E);if(p?_=E.name:_=$h(E.target,(u=r.trackUserActionsDataAttributeName)!==null&&u!==void 0?u:L_),a||_==null)return;a=!0;let T=ge(),l,d=ie();Fe.notify({type:te,name:_,startTime:T,parentId:d}),s=Xa(s,()=>{l=ge(),a=!1,Qh(_,d)},B_);let m=new Map,f=!1,A,L=new ee().merge(n,o,i).takeWhile(()=>a).filter(x=>!(f&&!(F_(x)&&m.has(x.request.requestId)))).subscribe(x=>{Jh(x)&&m.set(x.request.requestId,x.request),F_(x)&&m.delete(x.request.requestId),s=Xa(s,()=>{l=ge();let b=Object.assign({api:t,userActionName:_,startTime:T,endTime:l,actionId:d,event:E},p?{attributes:E.attributes}:{}),R=m.size>0;f&&!R&&(clearTimeout(A),f=!1),R?(f=!0,Fe.notify({type:Tt,name:_,parentId:d,reason:"pending-requests",haltTime:ge()}),A=Xa(void 0,()=>{H_(L),G_(b),a=!1,f=!1},1e3*10)):(H_(L),G_(b),a=!1,f=!1)},B_)})}return c}function G_(e){let{api:t,userActionName:r,startTime:n,endTime:o,actionId:i,event:s,attributes:a}=e,c=o-n,E=s.type;Fe.notify({type:_t,name:r,id:i,startTime:n,endTime:o,duration:c,eventType:E}),t.pushEvent(r,Object.assign({userActionStartTime:n.toString(),userActionEndTime:o.toString(),userActionDuration:c.toString(),userActionTrigger:E},le(a)),void 0,{timestampOverwriteMs:n,customPayloadTransformer:u=>(u.action={id:i,name:r},u)})}function $h(e,t){let r=V_(t),n=e.dataset;for(let o in n)if(o===r)return n[o]}function Xa(e,t,r){return e&&clearTimeout(e),e=setTimeout(()=>{t()},r),e}function Qh(e,t){Fe.notify({type:pt,name:e,parentId:t})}function H_(e){e?.unsubscribe(),e=void 0}function Jh(e){return e.type===gi}function F_(e){return e.type===Ri}function Zh(e){return e.type===D_&&typeof e.name=="string"}var $a,Ur=class extends Y{constructor(){super(...arguments),this.name="@grafana/faro-web-sdk:instrumentation-user-action",this.version=k}initialize(){$a=k_(M),window.addEventListener("pointerdown",$a),window.addEventListener("keydown",$a)}};var wr=class extends Y{constructor(){super(),this.name="@grafana/faro-web-sdk:instrumentation-csp",this.version=k}initialize(){document.addEventListener("securitypolicyviolation",this.securitypolicyviolationHandler.bind(this))}destroy(){document.removeEventListener("securitypolicyviolation",this.securitypolicyviolationHandler)}securitypolicyviolationHandler(t){this.api.pushEvent("securitypolicyviolation",le(t))}};function Vr(e={}
29){let t=[new Ur,new Pr,new Dr,new Nr,new Mr];return e.enablePerformanceInstrumentation!==!1&&t.unshift(new yr),e.enableContentSecurityPolicyInstrumentation!==!1&&t.push(new wr),e.captureConsole!==!1&&t.push(new Pt({disabledLevels:e.captureConsoleDisabledLevels})),t}var Y_="browser";var Qa=()=>{let e=window.k6;return{k6:Object.assign({isK6Browser:!0},e?.testRunId&&{testRunId:e?.testRunId})}};var j_,Ja;function Za({generatePageId:e,initialPageMeta:t}={}){return()=>{let n=location.href;return Me(e)&&j_!==n&&(j_=n,Ja=e(location)),{page:Object.assign(Object.assign({url:n},Ja?{id:Ja}:{}),t)}}}var K_=function(e,t,r,n){function o(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function a(u){try{E(n.next(u))}catch(_){s(_)}}function c(u){try{E(n.throw(u))}catch(_){s(_)}}function E(u){u.done?i(u.value):o(u.value).then(a,c)}E((n=n.apply(e,t||[])).next())})},tN=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},rN=30,nN=5,oN=5e3,iN=6e4,sN=429,aN=202,Br=class extends Wt{constructor(t){var r,n,o,i;super(),this.options=t,this.name="@grafana/faro-web-sdk:transport-fetch",this.version=k,this.disabledUntil=new Date,this.rateLimitBackoffMs=(r=t.defaultRateLimitBackoffMs)!==null&&r!==void 0?r:oN,this.getNow=(n=t.getNow)!==null&&n!==void 0?n:()=>Date.now(),this.promiseBuffer=fn({size:(o=t.bufferSize)!==null&&o!==void 0?o:rN,concurrency:(i=t.concurrency)!==null&&i!==void 0?i:nN})}send(t){return K_(this,void 0,void 0,function*(){try{if(this.disabledUntil>new Date(this.getNow()))return this.logWarn(`Dropping transport item due to too many requests. Backoff until ${this.disabledUntil}`),Promise.resolve();yield this.promiseBuffer.add(()=>{let r=JSON.stringify(An(t)),{url:n,requestOptions:o,apiKey:i}=this.options,s=o??{},{headers:a}=s,c=tN(s,["headers"]),E,u=this.metas.value.session;return u!=null&&(E=u.id),fetch(n,Object.assign({method:"POST",headers:Object.assign(Object.assign(Object.assign({"Content-Type":"application/json"},a??{}),i?{"x-api-key":i}:{}),E?{"x-faro-session-id":E}:{}),body:r,keepalive:r.length<=iN},c??{})).then(_=>K_(this,void 0,void 0,function*(){return _.status===aN&&_.headers.get("X-Faro-Session-Status")==="invalid"&&this.extendFaroSession(this.config,this.logDebug),_.status===sN&&(this.disabledUntil=this.getRetryAfterDate(_),this.logWarn(`Too many requests, backing off until ${this.disabledUntil}`)),_.text().catch(pe),_})).catch(_=>{this.logError(`Failed sending payload to the receiver 30`,JSON.parse(r),_)})})}catch(r){this.logError(r)}})}getIgnoreUrls(){var t;return[this.options.url].concat((t=this.config.ignoreUrls)!==null&&t!==void 0?t:[])}isBatched(){return!0}getRetryAfterDate(t){let r=this.getNow(),n=t.headers.get("Retry-After");if(n){let o=Number(n);if(!isNaN(o))return new Date(o*1e3+r);let i=Date.parse(n);if(!isNaN(i))return new Date(i)}return new Date(r+this.rateLimitBackoffMs)}extendFaroSession(t,r){let n="Session expired",o=t.sessionTracking;if(o?.enabled){let{fetchUserSession:i,storeUserSession:s}=xn(o);Or({fetchUserSession:i,storeUserSession:s})({forceSessionExtend:!0}),r(`${n} created new session.`)}else r(`${n}.`)}};var cN=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};function hi(e){var t;let r=[],n=Kt(e.unpatchedConsole,e.internalLoggerLevel);e.transports?((e.url||e.apiKey)&&n.error('if "transports" is defined, "url" and "apiKey" should not be defined'),r.push(...e.transports)):e.url?r.push(new Br({url:e.url,apiKey:e.apiKey})):n.error('either "url" or "transports" must be defined');let{dedupe:o=!0,eventDomain:i=Y_,globalObjectKey:s=hn,instrumentations:a=Vr(),internalLoggerLevel:c=jt,isolate:E=!1,logArgsSerializer:u=$e,metas:_=EN(e),paused:p=!1,preventGlobalExposure:T=!1,unpatchedConsole:l=Xe,trackUserActionsPreview:d=!1,trackUserActionsDataAttributeName:m=za,url:f}=e,A=cN(e,["dedupe","eventDomain","globalObjectKey","instrumentations","internalLoggerLevel","isolate","logArg
30sSerializer","metas","paused","preventGlobalExposure","unpatchedConsole","trackUserActionsPreview","trackUserActionsDataAttributeName","url"]);return Object.assign(Object.assign({},A),{batching:Object.assign(Object.assign({},Qo),e.batching),dedupe:o,globalObjectKey:s,instrumentations:uN(a,e),internalLoggerLevel:c,isolate:E,logArgsSerializer:u,metas:_,parseStacktrace:Dn,paused:p,preventGlobalExposure:T,transports:r,unpatchedConsole:l,eventDomain:i,ignoreUrls:[...(t=e.ignoreUrls)!==null&&t!==void 0?t:[],...f?[f]:[],/\/collect(?:\/[\w]*)?$/],sessionTracking:Object.assign(Object.assign(Object.assign({},ni),e.sessionTracking),_N({trackGeolocation:e.trackGeolocation,sessionTracking:e.sessionTracking})),trackUserActionsPreview:d,trackUserActionsDataAttributeName:m})}function uN(e,{trackUserActionsPreview:t}){return e.filter(r=>!(r.name==="@grafana/faro-web-sdk:instrumentation-user-action"&&!t))}function EN(e){var t,r;let{page:n,generatePageId:o}=(t=e?.pageTracking)!==null&&t!==void 0?t:{},i=[Zo,Za({generatePageId:o,initialPageMeta:n}),...(r=e.metas)!==null&&r!==void 0?r:[]];return q(window.k6)?[...i,Qa]:i}function _N({trackGeolocation:e,sessionTracking:t}){var r;let n={};return un(e)&&(n.geoLocationTrackingEnabled=e),X(n)?{}:{session:Object.assign(Object.assign({},(r=t?.session)!==null&&r!==void 0?r:{}),{overrides:n})}}function ec(e){let t=hi(e);if(t)return Sa(t)}I();I();var Qp=Ct("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function hc(e){return e.setValue(Qp,!0)}function ir(e){return e.getValue(Qp)===!0}var Jp="=",Vi=";",no=",",Bi="baggage";I();function Zp(e){return e.reduce((t,r)=>{let n=`${t}${t!==""?no:""}${r}`;return n.length>8192?t:n},"")}function eT(e){return e.getAllEntries().map(([t,r])=>{let n=`${encodeURIComponent(t)}=${encodeURIComponent(r.value)}`;return r.metadata!==void 0&&(n+=Vi+r.metadata.toString()),n})}function tT(e){let t=e.split(Vi);if(t.length<=0)return;let r=t.shift();if(!r)return;let n=r.indexOf(Jp);if(n<=0)return;let o=decodeURIComponent(r.substring(0,n).trim()),i=decodeURIComponent(r.substring(n+1).trim()),s;return t.length>0&&(s=Pi(t.join(Vi))),{key:o,value:i,metadata:s}}var oo=class{inject(t,r,n){let o=$.getBaggage(t);if(!o||ir(t))return;let i=eT(o).filter(a=>a.length<=4096).slice(0,180),s=Zp(i);s.length>0&&n.set(r,Bi,s)}extract(t,r,n){let o=n.get(r,Bi),i=Array.isArray(o)?o.join(no):o;if(!i)return t;let s={};return i.length===0||(i.split(no).forEach(c=>{let E=tT(c);if(E){let u={value:E.value};E.metadata&&(u.metadata=E.metadata),s[E.key]=u}}),Object.entries(s).length===0)?t:$.setBaggage(t,$.createBaggage(s))}fields(){return[Bi]}};I();function sr(e){let t={};if(typeof e!="object"||e==null)return t;for(let[r,n]of Object.entries(e)){if(!sP(r)){O.warn(`Invalid attribute key: ${r}`);continue}if(!Gi(n)){O.warn(`Invalid attribute value set for key: ${r}`);continue}Array.isArray(n)?t[r]=n.slice():t[r]=n}return t}function sP(e){return typeof e=="string"&&e.length>0}function Gi(e){return e==null?!0:Array.isArray(e)?aP(e):rT(e)}function aP(e){let t;for(let r of e)if(r!=null){if(!t){if(rT(r)){t=typeof r;continue}return!1}if(typeof r!==t)return!1}return!0}function rT(e){switch(typeof e){case"number":case"boolean":case"string":return!0}return!1}I();function nT(){return e=>{O.error(cP(e))}}function cP(e){return typeof e=="string"?e:JSON.stringify(uP(e))}function uP(e){let t={},r=e;for(;r!==null;)Object.getOwnPropertyNames(r).forEach(n=>{if(t[n])return;let o=r[n];o&&(t[n]=String(o))}),r=Object.getPrototypeOf(r);return t}var EP=nT();function Ye(e){try{EP(e)}catch{}}var nt=performance;var oT="2.1.0";Lt();var bg="process.runtime.name";var jr={[kr]:"opentelemetry",[bg]:"browser",[Fr]:Ic,[Yr]:oT};var JU=9,ZU=6,e0=Math.pow(10,ZU),vc=Math.pow(10,JU);function Dt(e){let t=e/1e3,r=Math.trunc(t),n=Math.round(e%1e3*e0);return[r,n]}function Hi(){let e=nt.timeOrigin;if(typeof e!="number"){let t=nt;e=t.timing&&t.timing.fetchStart}return e}function xc(e){let t=Dt(Hi()),r=Dt(typeof e=="number"?e:nt.now());return Yi(t,r)}function Lc(e,t){let r=t[0]-e[0],n=t[1]-e[1];return n<0&&(r-=1,n+=vc),[r,n]}function Fi(e){return Array.isArray(e)&&e.length===2&&typeof e[0]=="number"&&typeof e[1]=="number"}function ki(e){return Fi(e)||typeof e=="number"||e instanceof Date}function Yi(e,t){let r=[e[0]+t[0],e[1]+t[1]];return r[1]>=vc&&(r[1]-=vc,r[0]+=1),r}var ar;(function(e){e[e.SUCCESS=0]="SUCCESS",e[e.FAILED=1]="FAILED"})(ar||(ar={}));I();
30var lo=class{_propagators;_fields;constructor(t={}){this._propagators=t.propagators??[],this._fields=Array.from(new Set(this._propagators.map(r=>typeof r.fields=="function"?r.fields():[]).reduce((r,n)=>r.concat(n),[])))}inject(t,r,n){for(let o of this._propagators)try{o.inject(t,r,n)}catch(i){O.warn(`Failed to inject with ${o.constructor.name}. Err: ${i.message}`)}}extract(t,r,n){return this._propagators.reduce((o,i)=>{try{return i.extract(o,r,n)}catch(s){O.warn(`Failed to extract with ${i.constructor.name}. Err: ${s.message}`)}return o},t)}fields(){return this._fields.slice()}};I();var Dc="[_0-9a-z-*/]",t0=`[a-z]${Dc}{0,255}`,r0=`[a-z0-9]${Dc}{0,240}@[a-z]${Dc}{0,13}`,n0=new RegExp(`^(?:${t0}|${r0})$`),o0=/^[ -~]{0,255}[!-~]$/,i0=/,|=/;function Ig(e){return n0.test(e)}function Cg(e){return o0.test(e)&&!i0.test(e)}var vg=32,s0=512,xg=",",Lg="=",ji=class e{_internalState=new Map;constructor(t){t&&this._parse(t)}set(t,r){let n=this._clone();return n._internalState.has(t)&&n._internalState.delete(t),n._internalState.set(t,r),n}unset(t){let r=this._clone();return r._internalState.delete(t),r}get(t){return this._internalState.get(t)}serialize(){return this._keys().reduce((t,r)=>(t.push(r+Lg+this.get(r)),t),[]).join(xg)}_parse(t){t.length>s0||(this._internalState=t.split(xg).reverse().reduce((r,n)=>{let o=n.trim(),i=o.indexOf(Lg);if(i!==-1){let s=o.slice(0,i),a=o.slice(i+1,n.length);Ig(s)&&Cg(a)&&r.set(s,a)}return r},new Map),this._internalState.size>vg&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,vg))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){let t=new e;return t._internalState=new Map(this._internalState),t}};var Ki="traceparent",Wi="tracestate",a0="00",c0="(?!ff)[\\da-f]{2}",u0="(?![0]{32})[\\da-f]{32}",E0="(?![0]{16})[\\da-f]{16}",_0="[\\da-f]{2}",p0=new RegExp(`^\\s?(${c0})-(${u0})-(${E0})-(${_0})(-.*)?\\s?$`);function Dg(e){let t=p0.exec(e);return!t||t[1]==="00"&&t[5]?null:{traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}}var cr=class{inject(t,r,n){let o=B.getSpanContext(t);if(!o||ir(t)||!rt(o))return;let i=`${a0}-${o.traceId}-${o.spanId}-0${Number(o.traceFlags||ae.NONE).toString(16)}`;n.set(r,Ki,i),o.traceState&&n.set(r,Wi,o.traceState.serialize())}extract(t,r,n){let o=n.get(r,Ki);if(!o)return t;let i=Array.isArray(o)?o[0]:o;if(typeof i!="string")return t;let s=Dg(i);if(!s)return t;s.isRemote=!0;let a=n.get(r,Wi);if(a){let c=Array.isArray(a)?a.join(","):a;s.traceState=new ji(typeof c=="string"?c:void 0)}return B.setSpanContext(t,s)}fields(){return[Ki,Wi]}};var T0="[object Object]",l0="[object Null]",S0="[object Undefined]",d0=Function.prototype,yg=d0.toString,f0=yg.call(Object),m0=Object.getPrototypeOf,Ug=Object.prototype,wg=Ug.hasOwnProperty,ur=Symbol?Symbol.toStringTag:void 0,Vg=Ug.toString;function yc(e){if(!A0(e)||g0(e)!==T0)return!1;let t=m0(e);if(t===null)return!0;let r=wg.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&yg.call(r)===f0}function A0(e){return e!=null&&typeof e=="object"}function g0(e){return e==null?e===void 0?S0:l0:ur&&ur in Object(e)?R0(e):O0(e)}function R0(e){let t=wg.call(e,ur),r=e[ur],n=!1;try{e[ur]=void 0,n=!0}catch{}let o=Vg.call(e);return n&&(t?e[ur]=r:delete e[ur]),o}function O0(e){return Vg.call(e)}var h0=20;function wc(...e){let t=e.shift(),r=new WeakMap;for(;e.length>0;)t=Gg(t,e.shift(),0,r);return t}function Uc(e){return qi(e)?e.slice():e}function Gg(e,t,r=0,n){let o;if(!(r>h0)){if(r++,zi(e)||zi(t)||Hg(t))o=Uc(t);else if(qi(e)){if(o=e.slice(),qi(t))for(let i=0,s=t.length;i<s;i++)o.push(Uc(t[i]));else if(So(t)){let i=Object.keys(t);for(let s=0,a=i.length;s<a;s++){let c=i[s];o[c]=Uc(t[c])}}}else if(So(e))if(So(t)){if(!N0(e,t))return t;o=Object.assign({},e);let i=Object.keys(t);for(let s=0,a=i.length;s<a;s++){let c=i[s],E=t[c];if(zi(E))typeof E>"u"?delete o[c]:o[c]=E;else{let u=o[c],_=E;if(Bg(e,c,n)||Bg(t,c,n))delete o[c];else{if(So(u)&&So(_)){let p=n.get(u)||[],T=n.get(_)||[];p.push({obj:e,key:c}),T.push({obj:t,key:c}),n.set(u,p),n.set(_,T)}o[c]=Gg(o[c],E,r,n)}}}}else o=t;return o}}function Bg(e,t,r){let n=r.get(e[t])||[];for(let o=0,i=n.length;o<i;o++){let s=n[o];if(s.key===t&&s.obj===e)return!0}return!1}function qi(e){return Array.isArray(e)}function Hg(e){return typeof e=="function"}function So(e){return!zi(e)&&!qi(e)&&!Hg(e)&&typeof e=="object"}function zi(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e>"u"||e instanceof Date||e instanceof RegExp||e===null}function N0(e,t){return!(!yc(e)||!yc(t))}var Xi=class{_promise;_resolve;_reject;
30constructor(){this._promise=new Promise((t,r)=>{this._resolve=t,this._reject=r})}get promise(){return this._promise}resolve(t){this._resolve(t)}reject(t){this._reject(t)}};var fo=class{_callback;_that;_isCalled=!1;_deferred=new Xi;constructor(t,r){this._callback=t,this._that=r}get isCalled(){return this._isCalled}get promise(){return this._deferred.promise}call(...t){if(!this._isCalled){this._isCalled=!0;try{Promise.resolve(this._callback.call(this._that,...t)).then(r=>this._deferred.resolve(r),r=>this._deferred.reject(r))}catch(r){this._deferred.reject(r)}}return this._deferred.promise}};var oO=qe(eO());var rO=qe(tO());var hV="duration_ns";function nO(e=[]){var t,r;for(let n of e){let{scopeSpans:o}=n;for(let i of o){let{scope:s,spans:a=[]}=i;for(let c of a){if(c.kind!==rO.ESpanKind.SPAN_KIND_CLIENT)continue;let E={traceId:c.traceId.toString(),spanId:c.spanId.toString()},u={};for(let T of c.attributes)u[T.key]=String(Object.values(T.value)[0]);!Number.isNaN(c.endTimeUnixNano)&&!Number.isNaN(c.startTimeUnixNano)&&(u[hV]=String(Number(c.endTimeUnixNano)-Number(c.startTimeUnixNano)));let _=((t=s?.name)!==null&&t!==void 0?t:"").indexOf("-"),p=j;s?.name&&(_===-1&&(p=(r=s.name.split("/")[1])!==null&&r!==void 0?r:s.name),_>-1&&(p=s?.name.substring(_+1))),M.api.pushEvent(`faro.tracing.${p}`,u,void 0,{spanContext:E,timestampOverwriteMs:Number(c.endTimeUnixNano)/1e6,customPayloadTransformer:T=>{var l,d;return u["faro.action.user.name"]!=null&&u["faro.action.user.parentId"]!=null&&(T.action={name:u["faro.action.user.name"],parentId:u["faro.action.user.parentId"]},(l=T.attributes)===null||l===void 0||delete l["faro.action.user.name"],(d=T.attributes)===null||d===void 0||delete d["faro.action.user.parentId"]),T}})}}}}var hs=class{constructor(t){this.config=t}export(t,r){let n=(0,oO.createExportTraceServiceRequest)(t,{useHex:!0,useLongBits:!1});this.config.api.pushTraces(n),nO(n.resourceSpans),r({code:ar.SUCCESS})}shutdown(){return Promise.resolve(void 0)}};var iO="session.id",sO="deployment.environment.name",aO="service.namespace",cO="process.runtime.name",uO="process.runtime.version",EO="telemetry.distro.name",_O="telemetry.distro.version",pO="browser.brands",TO="browser.language",lO="browser.mobile",SO="browser.platform";I();I();var ho=class{emit(t){}},dO=new ho;var Eu=class{getLogger(t,r,n){return new ho}},Ns=new Eu;var Ps=class{constructor(t,r,n,o){this._provider=t,this.name=r,this.version=n,this.options=o}emit(t){this._getLogger().emit(t)}_getLogger(){if(this._delegate)return this._delegate;let t=this._provider.getDelegateLogger(this.name,this.version,this.options);return t?(this._delegate=t,this._delegate):dO}};var No=class{getLogger(t,r,n){var o;return(o=this.getDelegateLogger(t,r,n))!==null&&o!==void 0?o:new Ps(this,t,r,n)}getDelegate(){var t;return(t=this._delegate)!==null&&t!==void 0?t:Ns}setDelegate(t){this._delegate=t}getDelegateLogger(t,r,n){var o;return(o=this._delegate)===null||o===void 0?void 0:o.getLogger(t,r,n)}};var _u=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{};var Po=Symbol.for("io.opentelemetry.js.api.logs"),Xr=_u;function fO(e,t,r){return n=>n===e?t:r}var pu=1;var Ms=class e{constructor(){this._proxyLoggerProvider=new No}static getInstance(){return this._instance||(this._instance=new e),this._instance}setGlobalLoggerProvider(t){return Xr[Po]?this.getLoggerProvider():(Xr[Po]=fO(pu,t,Ns),this._proxyLoggerProvider.setDelegate(t),t)}getLoggerProvider(){var t,r;return(r=(t=Xr[Po])===null||t===void 0?void 0:t.call(Xr,pu))!==null&&r!==void 0?r:this._proxyLoggerProvider}getLogger(t,r,n){return this.getLoggerProvider().getLogger(t,r,n)}disable(){delete Xr[Po],this._proxyLoggerProvider=new No}};var bs=Ms.getInstance();function mO(e,t,r,n){for(let o=0,i=e.length;o<i;o++){let s=e[o];t&&s.setTracerProvider(t),r&&s.setMeterProvider(r),n&&s.setLoggerProvider&&s.setLoggerProvider(n),s.getConfig().enabled||s.enable()}}function AO(e){e.forEach(t=>t.disable())}function Tu(e){let t=e.tracerProvider||B.getTracerProvider(),r=e.meterProvider||or.getMeterProvider(),n=e.loggerProvider||bs.getLoggerProvider(),o=e.instrumentations?.flat()??[];
30return mO(o,t,r,n),()=>{AO(o)}}I();var Te=console.error.bind(console);function Mo(e,t,r){let n=!!e[t]&&Object.prototype.propertyIsEnumerable.call(e,t);Object.defineProperty(e,t,{configurable:!0,enumerable:n,writable:!0,value:r})}var Is=(e,t,r)=>{if(!e||!e[t]){Te("no original function "+String(t)+" to wrap");return}if(!r){Te("no wrapper function"),Te(new Error().stack);return}let n=e[t];if(typeof n!="function"||typeof r!="function"){Te("original object and wrapper must be functions");return}let o=r(n,t);return Mo(o,"__original",n),Mo(o,"__unwrap",()=>{e[t]===o&&Mo(e,t,n)}),Mo(o,"__wrapped",!0),Mo(e,t,o),o},lu=(e,t,r)=>{if(e)Array.isArray(e)||(e=[e]);else{Te("must provide one or more modules to patch"),Te(new Error().stack);return}if(!(t&&Array.isArray(t))){Te("must provide one or more functions to wrap on modules");return}e.forEach(n=>{t.forEach(o=>{Is(n,o,r)})})},Cs=(e,t)=>{if(!e||!e[t]){Te("no function to unwrap."),Te(new Error().stack);return}let r=e[t];if(!r.__unwrap)Te("no original to unwrap to -- has "+String(t)+" already been unwrapped?");else{r.__unwrap();return}},Su=(e,t)=>{if(e)Array.isArray(e)||(e=[e]);else{Te("must provide one or more modules to patch"),Te(new Error().stack);return}if(!(t&&Array.isArray(t))){Te("must provide one or more functions to unwrap on modules");return}e.forEach(r=>{t.forEach(n=>{Cs(r,n)})})};function bo(e){e&&e.logger&&(typeof e.logger!="function"?Te("new logger isn't a function, not replacing"):Te=e.logger)}bo.wrap=Is;bo.massWrap=lu;bo.unwrap=Cs;bo.massUnwrap=Su;var vs=class{instrumentationName;instrumentationVersion;_config={};_tracer;_meter;_logger;_diag;constructor(t,r,n){this.instrumentationName=t,this.instrumentationVersion=r,this.setConfig(n),this._diag=O.createComponentLogger({namespace:t}),this._tracer=B.getTracer(t,r),this._meter=or.getMeter(t,r),this._logger=bs.getLogger(t,r),this._updateMetricInstruments()}_wrap=Is;_unwrap=Cs;_massWrap=lu;_massUnwrap=Su;get meter(){return this._meter}setMeterProvider(t){this._meter=t.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()}get logger(){return this._logger}setLoggerProvider(t){this._logger=t.getLogger(this.instrumentationName,this.instrumentationVersion)}getModuleDefinitions(){let t=this.init()??[];return Array.isArray(t)?t:[t]}_updateMetricInstruments(){}getConfig(){return this._config}setConfig(t){this._config={enabled:!0,...t}}setTracerProvider(t){this._tracer=t.getTracer(this.instrumentationName,this.instrumentationVersion)}get tracer(){return this._tracer}_runSpanCustomizationHook(t,r,n,o){if(t)try{t(n,o)}catch(i){this._diag.error("Error running span customization hook due to exception in handler",{triggerName:r},i)}}};var Gt=class extends vs{constructor(t,r,n){super(t,r,n),this._config.enabled&&this.enable()}};function $r(e,t,r){let n,o;try{o=e()}catch(i){n=i}finally{if(t(n,o),n&&!r)throw n;return o}}function Qr(e){return typeof e=="function"&&typeof e.__original=="function"&&typeof e.__unwrap=="function"&&e.__wrapped===!0}var F;(function(e){e[e.STABLE=1]="STABLE",e[e.OLD=2]="OLD",e[e.DUPLICATE=3]="DUPLICATE"})(F||(F={}));function Io(e,t){let r=F.OLD,n=t?.split(",").map(o=>o.trim()).filter(o=>o!=="");for(let o of n??[])if(o.toLowerCase()===e+"/dup"){r=F.DUPLICATE;break}else o.toLowerCase()===e&&(r=F.STABLE);return r}var lr=qe(Vt());var U;(function(e){e.CONNECT_END="connectEnd",e.CONNECT_START="connectStart",e.DECODED_BODY_SIZE="decodedBodySize",e.DOM_COMPLETE="domComplete",e.DOM_CONTENT_LOADED_EVENT_END="domContentLoadedEventEnd",e.DOM_CONTENT_LOADED_EVENT_START="domContentLoadedEventStart",e.DOM_INTERACTIVE="domInteractive",e.DOMAIN_LOOKUP_END="domainLookupEnd",e.DOMAIN_LOOKUP_START="domainLookupStart",e.ENCODED_BODY_SIZE="encodedBodySize",e.FETCH_START="fetchStart",e.LOAD_EVENT_END="loadEventEnd",e.LOAD_EVENT_START="loadEventStart",e.NAVIGATION_START="navigationStart",e.REDIRECT_END="redirectEnd",e.REDIRECT_START="redirectStart",e.REQUEST_START="requestStart",e.RESPONSE_END="responseEnd",e.RESPONSE_START="responseStart",e.SECURE_CONNECTION_START="secureConnectionStart",e.START_TIME="startTime",e.UNLOAD_EVENT_END="unloadEventEnd",e.UNLOAD_EVENT_START="unloadEventStart"})(U||(U={}));var ne=qe(Vt());var gO="http.response_content_length",RO="http.response_content_length_uncompressed";var du;function PV(){return du||(du=document.createElement("a")),du}function OO(e,t){return t in e}function at(e,t,r,n=!0){if(OO(r,t)&&typeof r[t]=="number"&&!(n&&r[t]===0))return e.addEvent(t,r[t])}function Tr(e,t,r=!1,n,o){if(n===void 0&&(n=t[U.START_TIME]!==0),r||(at(e,U.FETCH_START,t,n
30),at(e,U.DOMAIN_LOOKUP_START,t,n),at(e,U.DOMAIN_LOOKUP_END,t,n),at(e,U.CONNECT_START,t,n),at(e,U.SECURE_CONNECTION_START,t,n),at(e,U.CONNECT_END,t,n),at(e,U.REQUEST_START,t,n),at(e,U.RESPONSE_START,t,n),at(e,U.RESPONSE_END,t,n)),!o){let i=t[U.ENCODED_BODY_SIZE];i!==void 0&&e.setAttribute(gO,i);let s=t[U.DECODED_BODY_SIZE];s!==void 0&&i!==s&&e.setAttribute(RO,s)}}function hO(e){return e.slice().sort((t,r)=>{let n=t[U.FETCH_START],o=r[U.FETCH_START];return n>o?1:n<o?-1:0})}function NO(){return typeof location<"u"?location.origin:void 0}function Co(e,t,r,n,o=new WeakSet,i){let s=Ve(e);e=s.toString();let a=bV(e,t,r,n,o,i);if(a.length===0)return{mainRequest:void 0};if(a.length===1)return{mainRequest:a[0]};let c=hO(a);if(s.origin!==NO()&&c.length>1){let E=c[0],u=MV(c,E[U.RESPONSE_END],r),_=E[U.RESPONSE_END];return u[U.FETCH_START]<_&&(u=E,E=void 0),{corsPreFlightRequest:E,mainRequest:u}}else return{mainRequest:a[0]}}function MV(e,t,r){let n=(0,ne.hrTimeToNanoseconds)(r),o=(0,ne.hrTimeToNanoseconds)((0,ne.timeInputToHrTime)(t)),i=e[1],s,a=e.length;for(let c=1;c<a;c++){let E=e[c],u=(0,ne.hrTimeToNanoseconds)((0,ne.timeInputToHrTime)(E[U.FETCH_START])),_=(0,ne.hrTimeToNanoseconds)((0,ne.timeInputToHrTime)(E[U.RESPONSE_END])),p=n-_;u>=o&&(!s||p<s)&&(s=p,i=E)}return i}function bV(e,t,r,n,o,i){let s=(0,ne.hrTimeToNanoseconds)(t),a=(0,ne.hrTimeToNanoseconds)(r),c=n.filter(E=>{let u=(0,ne.hrTimeToNanoseconds)((0,ne.timeInputToHrTime)(E[U.FETCH_START])),_=(0,ne.hrTimeToNanoseconds)((0,ne.timeInputToHrTime)(E[U.RESPONSE_END]));return E.initiatorType.toLowerCase()===(i||"xmlhttprequest")&&E.name===e&&u>=s&&_<=a});return c.length>0&&(c=c.filter(E=>!o.has(E))),c}function Ve(e){if(typeof URL=="function")return new URL(e,typeof document<"u"?document.baseURI:typeof location<"u"?location.href:void 0);let t=PV();return t.href=e,t}function vo(e,t){let r=t||[];return(typeof r=="string"||r instanceof RegExp)&&(r=[r]),Ve(e).origin===NO()?!0:r.some(o=>(0,ne.urlMatches)(e,o))}var xo;(function(e){e.COMPONENT="component",e.HTTP_STATUS_TEXT="http.status_text"})(xo||(xo={}));var _e=qe(PO());Lt();I();var MO=qe(Vt()),bO=O.createComponentLogger({namespace:"@opentelemetry/opentelemetry-instrumentation-fetch/utils"});function IO(...e){if(e[0]instanceof URL||typeof e[0]=="string"){let t=e[1];if(!t?.body)return Promise.resolve();if(t.body instanceof ReadableStream){let{body:r,length:n}=CV(t.body);return t.body=r,n}else return Promise.resolve(xV(t.body))}else{let t=e[0];return t?.body?t.clone().text().then(r=>fu(r)):Promise.resolve()}}function CV(e){if(!e.pipeThrough)return bO.warn("Platform has ReadableStream but not pipeThrough!"),{body:e,length:Promise.resolve(void 0)};let t=0,r,n=new Promise(i=>{r=i}),o=new TransformStream({start(){},async transform(i,s){let a=await i;t+=a.byteLength,s.enqueue(i)},flush(){r(t)}});return{body:e.pipeThrough(o),length:n}}function vV(e){return typeof Document<"u"&&e instanceof Document}function xV(e){if(vV(e))return new XMLSerializer().serializeToString(document).length;if(typeof e=="string")return fu(e);if(e instanceof Blob)return e.size;if(e instanceof FormData)return DV(e);if(e instanceof URLSearchParams)return fu(e.toString());if(e.byteLength!==void 0)return e.byteLength;bO.warn("unknown body type")}var LV=new TextEncoder;function fu(e){return LV.encode(e).byteLength}function DV(e){let t=0;for(let[r,n]of e.entries())t+=r.length,n instanceof Blob?t+=n.size:t+=n.length;return t}function CO(e){let t=UV(),r=e.toUpperCase();return r in t?r:"_OTHER"}var yV={CONNECT:!0,DELETE:!0,GET:!0,HEAD:!0,OPTIONS:!0,PATCH:!0,POST:!0,PUT:!0,TRACE:!0},Lo;function UV(){if(Lo===void 0){let e=(0,MO.getStringListFromEnv)("OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS");e&&e.length>0?(Lo={},e.forEach(t=>{Lo[t]=!0})):Lo=yV}return Lo}var wV={"https:":"443","http:":"80"};function vO(e){let t=Number(e.port||wV[e.protocol]);if(t&&!isNaN(t))return t}var mu="0.202.0";var xs=qe(Vt()),VV=300,xO=typeof process=="object"&&process.release?.name==="node",Do=class extends Gt{component="fetch";version=mu;moduleName=this.component;_usedResources=new WeakSet;_tasksCount=0;_semconvStability;constructor(t={}){super("@opentelemetry/instrumentation-fetch",mu,t),this._semconvStability=Io("http",t?.semconvStabilityOptIn)}init(){}_addChildSpan(t,r){let n=this.tracer.startSpan("CORS Preflight",{startTime:r[U.FETCH_START]},B.setSpan(y.active(),t)),o=!(this._semconvStability&F.OLD);Tr(n,r,this.getConfig().ignoreNetworkEvents,void 0,o),n.end(r[U.RESPONSE_END])}_addFinalSpanAttributes(t,r){let n=Ve(r.url);if(this._semconvStability&F.OLD&&(t.setAttribute(_e.ATTR_HTTP_STATUS_CODE,r.status),r.statusText!=null&&t.setAttribute(xo.HTTP_STATUS_TEXT,r.statusText),t.setAttribute(_e.ATTR_HTTP_HOST,n.host),t.setAttribute(_e.ATTR_HTTP_SCHEME,n.protocol.replace(":","")),typeof navigator<"u"&&t.setAttribute(_e.ATTR_HTTP_USER_AGENT,navigator.userAgent)),this._semconvStability&F.STABLE){t.setAttribute(uo,r.status),t.setAttribute(Eo,n.hostname);let o=vO(n);o&&t.setAttribute(_o,o)}}_addHeaders(t,r){if(!vo(r,this.getConfig().propagateTraceHeaderCorsUrls)){let n={};$.inject(y.active(),n),Object.keys(n).length>0&&this._diag.debug("headers inject skipped due to CORS policy");return}if(t instanceof Request)$.inject(y.active(),t.headers,{set:(n,o,i)=>n.set(o,typeof i=="string"?i:String(i))});else if(t.headers instanceof Headers)$.inject(y.active(),t.headers,{set:(n,o,i)=>n.set(o,typeof i=="string"?i:String(i))});else if(t.headers instanceof Map)$.inject(y.active(),t.headers,{set:(n,o,i)=>n.set(o,typeof i=="string"?i:String(i))});else{let n={};$.inject(y.active(),n),t.headers=Object.assign({},n,t.headers||{})}}_clearResources(){this._tasksCount===0&&this.getConfig().clearTimingResources&&(performance.clearResourceTimings(),this._usedResources=new WeakSet)}_createSpan(t,r={}){if(lr.isUrlIgnored(t,this.getConfig().ignoreUrls)){this._diag.debug("ignoring span as url matches ignored url");return}let n="",o={};if(this._semconvStability&F.OLD){let i=(r.method||"GET").toUpperCase();n=`HTTP ${i}`,o[xo.COMPONENT]=this.moduleName,o[_e.ATTR_HTTP_METHOD]=i,o[_e.ATTR_HTTP_URL]=t}if(this._semconvStability&F.STABLE){let i=r.method,s=CO(r.method||"GET");
30n||(n=s),o[ao]=s,s!==i&&(o[co]=i),o[To]=t}return this.tracer.startSpan(n,{kind:De.CLIENT,attributes:o})}_findResourceAndAddNetworkEvents(t,r,n){let o=r.entries;if(!o.length){if(!performance.getEntriesByType)return;o=performance.getEntriesByType("resource")}let i=Co(r.spanUrl,r.startTime,n,o,this._usedResources,"fetch");if(i.mainRequest){let s=i.mainRequest;this._markResourceAsUsed(s);let a=i.corsPreFlightRequest;a&&(this._addChildSpan(t,a),this._markResourceAsUsed(a));let c=!(this._semconvStability&F.OLD);Tr(t,s,this.getConfig().ignoreNetworkEvents,void 0,c)}}_markResourceAsUsed(t){this._usedResources.add(t)}_endSpan(t,r,n){let o=lr.millisToHrTime(Date.now()),i=lr.hrTime();this._addFinalSpanAttributes(t,n),this._semconvStability&F.STABLE&&n.status>=400&&(t.setStatus({code:Oe.ERROR}),t.setAttribute(Hr,String(n.status))),setTimeout(()=>{r.observer?.disconnect(),this._findResourceAndAddNetworkEvents(t,r,i),this._tasksCount--,this._clearResources(),t.end(o)},VV)}_patchConstructor(){return t=>{let r=this;return function(...o){let i=this,s=Ve(o[0]instanceof Request?o[0].url:String(o[0])).href,a=o[0]instanceof Request?o[0]:o[1]||{},c=r._createSpan(s,a);if(!c)return t.apply(this,o);let E=r._prepareSpanData(s);r.getConfig().measureRequestSize&&IO(...o).then(l=>{l&&(r._semconvStability&F.OLD&&c.setAttribute(_e.ATTR_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED,l),r._semconvStability&F.STABLE&&c.setAttribute(_e.ATTR_HTTP_REQUEST_BODY_SIZE,l))}).catch(l=>{r._diag.warn("getFetchBodyLength",l)});function u(l,d){r._applyAttributesAfterFetch(l,a,d),r._endSpan(l,E,{status:d.status||0,statusText:d.message,url:s})}function _(l,d){r._applyAttributesAfterFetch(l,a,d),d.status>=200&&d.status<400?r._endSpan(l,E,d):r._endSpan(l,E,{status:d.status,statusText:d.statusText,url:s})}function p(l,d,m){try{let A=m.clone().body;if(A){let L=A.getReader(),x=()=>{L.read().then(({done:b})=>{b?_(l,m):x()},b=>{u(l,b)})};x()}else _(l,m)}finally{d(m)}}function T(l,d,m){try{u(l,m)}finally{d(m)}}return new Promise((l,d)=>y.with(B.setSpan(y.active(),c),()=>(r._addHeaders(a,s),r._callRequestHook(c,a),r._tasksCount++,t.apply(i,a instanceof Request?[a]:[s,a]).then(p.bind(i,c,l),T.bind(i,c,d)))))}}}_applyAttributesAfterFetch(t,r,n){let o=this.getConfig().applyCustomAttributesOnSpan;o&&$r(()=>o(t,r,n),i=>{i&&this._diag.error("applyCustomAttributesOnSpan",i)},!0)}_callRequestHook(t,r){let n=this.getConfig().requestHook;n&&$r(()=>n(t,r),o=>{o&&this._diag.error("requestHook",o)},!0)}_prepareSpanData(t){let r=lr.hrTime(),n=[];if(typeof PerformanceObserver!="function")return{entries:n,startTime:r,spanUrl:t};let o=new PerformanceObserver(i=>{i.getEntries().forEach(a=>{a.initiatorType==="fetch"&&a.name===t&&n.push(a)})});return o.observe({entryTypes:["resource"]}),{entries:n,observer:o,startTime:r,spanUrl:t}}enable(){if(xO){this._diag.warn("this instrumentation is intended for web usage only, it does not instrument Node.js's fetch()");return}Qr(fetch)&&(this._unwrap(xs._globalThis,"fetch"),this._diag.debug("removing previous patch for constructor")),this._wrap(xs._globalThis,"fetch",this._patchConstructor())}disable(){xO||(this._unwrap(xs._globalThis,"fetch"),this._usedResources=new WeakSet)}};I();var Ht=qe(Vt());Lt();var LO="http.host",DO="http.method",yO="http.request.body.size",UO="http.request_content_length_uncompressed";var wO="http.scheme",VO="http.status_code",BO="http.url",GO="http.user_agent";var ct;(function(e){e.METHOD_OPEN="open",e.METHOD_SEND="send",e.EVENT_ABORT="abort",e.EVENT_ERROR="error",e.EVENT_LOAD="loaded",e.EVENT_TIMEOUT="timeout"})(ct||(ct={}));I();var FO=qe(Vt()),BV=O.createComponentLogger({namespace:"@opentelemetry/opentelemetry-instrumentation-xml-http-request/utils"});function GV(e){return typeof Document<"u"&&e instanceof Document}function kO(e){if(GV(e))return new XMLSerializer().serializeToString(document).length;if(typeof e=="string")return HO(e);if(e instanceof Blob)return e.size;if(e instanceof FormData)return FV(e);if(e instanceof URLSearchParams)return HO(e.toString());if(e.byteLength!==void 0)return e.byteLength;BV.warn("unknown body type")}var HV=new TextEncoder;function HO(e){return HV.encode(e).byteLength}function FV(e){let t=0;for(let[r,n]of e.entries())t+=r.length,n instanceof Blob?t+=n.size:t+=n.length;return t}function YO(e){let t=YV(),r=e.toUpperCase();return r in t?r:"_OTHER"}var kV={CONNECT:!0,DELETE:!0,GET:!0,HEAD:!0,OPTIONS:!0,PATCH:!0,POST:!0,PUT:!0,TRACE:!0},yo;function YV(){if(yo===void 0){let e=(0,FO.getStringListFromEnv)("OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS");e&&e.length>0?(yo={},e.forEach(t=>{yo[t]=!0})):yo=kV}return yo}var jV={"https:":"443","http:":"80"};function jO(e){let t=Number(e.port||jV[e.protocol]);if(t&&!isNaN(t))return t}var Au="0.202.0";var Ls;(function(e){e.HTTP_STATUS_TEXT="http.status_text"})(Ls||(Ls={}));var KV=300,Uo=class extends Gt{component="xml-http-request";version=Au;moduleName=this.component;_tasksCount=0;_xhrMem=new WeakMap;_usedResources=new WeakSet;_semconvStability;constructor(t={}){super("@opentelemetry/instrumentation-xml-http-request",Au,t),this._semconvStability=Io("http",t?.semconvStabilityOptIn)}init(){}_addHeaders(t,r){let n=Ve(r).href;if(!vo(n,this.getConfig().propagateTraceHeaderCorsUrls)){let i={};$.inject(y.active(),i),Object.keys(i).length>0&&this._diag.debug("headers inject skipped due to CORS policy");return}let o={};
30$.inject(y.active(),o),Object.keys(o).forEach(i=>{t.setRequestHeader(i,String(o[i]))})}_addChildSpan(t,r){y.with(B.setSpan(y.active(),t),()=>{let n=this.tracer.startSpan("CORS Preflight",{startTime:r[U.FETCH_START]}),o=!(this._semconvStability&F.OLD);Tr(n,r,this.getConfig().ignoreNetworkEvents,void 0,o),n.end(r[U.RESPONSE_END])})}_addFinalSpanAttributes(t,r,n){if(this._semconvStability&F.OLD){if(r.status!==void 0&&t.setAttribute(VO,r.status),r.statusText!==void 0&&t.setAttribute(Ls.HTTP_STATUS_TEXT,r.statusText),typeof n=="string"){let o=Ve(n);t.setAttribute(LO,o.host),t.setAttribute(wO,o.protocol.replace(":",""))}t.setAttribute(GO,navigator.userAgent)}this._semconvStability&F.STABLE&&r.status&&t.setAttribute(uo,r.status)}_applyAttributesAfterXHR(t,r){let n=this.getConfig().applyCustomAttributesOnSpan;typeof n=="function"&&$r(()=>n(t,r),o=>{o&&this._diag.error("applyCustomAttributesOnSpan",o)},!0)}_addResourceObserver(t,r){let n=this._xhrMem.get(t);!n||typeof PerformanceObserver!="function"||typeof PerformanceResourceTiming!="function"||(n.createdResources={observer:new PerformanceObserver(o=>{let i=o.getEntries(),s=Ve(r);i.forEach(a=>{a.initiatorType==="xmlhttprequest"&&a.name===s.href&&n.createdResources&&n.createdResources.entries.push(a)})}),entries:[]},n.createdResources.observer.observe({entryTypes:["resource"]}))}_clearResources(){this._tasksCount===0&&this.getConfig().clearTimingResources&&(Ht.otperformance.clearResourceTimings(),this._xhrMem=new WeakMap,this._usedResources=new WeakSet)}_findResourceAndAddNetworkEvents(t,r,n,o,i){if(!n||!o||!i||!t.createdResources)return;let s=t.createdResources.entries;(!s||!s.length)&&(s=Ht.otperformance.getEntriesByType("resource"));let a=Co(Ve(n).href,o,i,s,this._usedResources);if(a.mainRequest){let c=a.mainRequest;this._markResourceAsUsed(c);let E=a.corsPreFlightRequest;E&&(this._addChildSpan(r,E),this._markResourceAsUsed(E));let u=!(this._semconvStability&F.OLD);Tr(r,c,this.getConfig().ignoreNetworkEvents,void 0,u)}}_cleanPreviousSpanInformation(t){let r=this._xhrMem.get(t);if(r){let n=r.callbackToRemoveEvents;n&&n(),this._xhrMem.delete(t)}}_createSpan(t,r,n){if((0,Ht.isUrlIgnored)(r,this.getConfig().ignoreUrls)){this._diag.debug("ignoring span as url matches ignored url");return}let o="",i=Ve(r),s={};if(this._semconvStability&F.OLD&&(o=n.toUpperCase(),s[DO]=n,s[BO]=i.toString()),this._semconvStability&F.STABLE){let c=n,E=YO(n);o||(o=E),s[ao]=E,E!==c&&(s[co]=c),s[To]=i.toString(),s[Eo]=i.hostname;let u=jO(i);u&&(s[_o]=u)}let a=this.tracer.startSpan(o,{kind:De.CLIENT,attributes:s});return a.addEvent(ct.METHOD_OPEN),this._cleanPreviousSpanInformation(t),this._xhrMem.set(t,{span:a,spanUrl:r}),a}_markResourceAsUsed(t){this._usedResources.add(t)}_patchOpen(){return t=>{let r=this;return function(...o){let i=o[0],s=o[1];return r._createSpan(this,s,i),t.apply(this,o)}}}_patchSend(){let t=this;function r(E,u,_,p){let T=u.callbackToRemoveEvents;typeof T=="function"&&T();let{span:l,spanUrl:d,sendStartTime:m}=u;l&&(t._findResourceAndAddNetworkEvents(u,l,d,m,_),l.addEvent(E,p),t._addFinalSpanAttributes(l,u,d),l.end(p),t._tasksCount--),t._clearResources()}function n(E,u,_,p){let T=t._xhrMem.get(u);if(!T)return;if(T.status=u.status,T.statusText=u.statusText,t._xhrMem.delete(u),T.span){let m=T.span;t._applyAttributesAfterXHR(m,u),t._semconvStability&F.STABLE&&(_?p&&(m.setStatus({code:Oe.ERROR,message:p}),m.setAttribute(Hr,p)):T.status&&T.status>=400&&(m.setStatus({code:Oe.ERROR}),m.setAttribute(Hr,String(T.status))))}let l=(0,Ht.hrTime)(),d=Date.now();setTimeout(()=>{r(E,T,l,d)},KV)}function o(){n(ct.EVENT_ERROR,this,!0,"error")}function i(){n(ct.EVENT_ABORT,this,!1)}function s(){n(ct.EVENT_TIMEOUT,this,!0,"timeout")}function a(){this.status<299?n(ct.EVENT_LOAD,this,!1):n(ct.EVENT_ERROR,this,!1)}function c(E){E.removeEventListener("abort",i),E.removeEventListener("error",o),E.removeEventListener("load",a),E.removeEventListener("timeout",s);let u=t._xhrMem.get(E);u&&(u.callbackToRemoveEvents=void 0)}return E=>function(..._){let p=t._xhrMem.get(this);if(!p)return E.apply(this,_);let T=p.span,l=p.spanUrl;if(T&&l){if(t.getConfig().measureRequestSize&&_?.[0]){let d=_[0],m=kO(d);m!==void 0&&(t._semconvStability&F.OLD&&T.setAttribute(UO,m),t._semconvStability&F.STABLE&&T.setAttribute(yO,m))}y.with(B.setSpan(y.active(),T),()=>{t._tasksCount++,p.sendStartTime=(0,Ht.hrTime)(),T.addEvent(ct.METHOD_SEND),this.addEventListener("abort",i),this.addEventListener("error",o),this.addEventListener("load",a),this.addEventListener("timeout",s),p.callbackToRemoveEvents=()=>{c(this),p.createdResources&&p.createdResources.observer.disconnect()},t._addHeaders(this,l),t._addResourceObserver(this,l)})}return E.apply(this,_)}}enable(){this._diag.debug("applying patch to",this.moduleName,this.version),Qr(XMLHttpRequest.prototype.open)&&(this._unwrap(XMLHttpRequest.prototype,"open"),this._diag.debug("removing previous patch from method open")),Qr(XMLHttpRequest.prototype.send)&&(this._unwrap(XMLHttpRequest.prototype,"send"),this._diag.debug("removing previous patch from method send")),this._wrap(XMLHttpRequest.prototype,"open",this._patchOpen()),this._wrap(XMLHttpRequest.prototype,"send",this._patchSend())}disable(){this._diag.debug("removing patch from",this.moduleName,this.version),this._unwrap(XMLHttpRequest.prototype,"open"),this._unwrap(XMLHttpRequest.prototype,"send"),this._tasksCount=0,this._xhrMem=new WeakMap,this._usedResources=new WeakSet}};var Ds=class extends Uo{constructor(t={}){super(t);let r=this;this.parentCreateSpan=r._createSpan.bind(this)}_patchOpen(){return t=>{let r=this;return function(...o){try{let i=o[0],s=In(o[1]);r.parentCreateSpan(this,s,i)}catch(i){M.internalLogger.error(i)}return t.apply(this,o)}}}};I();function WV(e,t,r){let n=r instanceof Error?0:r.status;KO(e,n)}function zV(e,t){KO(e,t.status)}function KO(e,t){if(t==null)return;let r=t===0,n=t>=400&&t<600;(r||n)&&e.setStatus({code:Oe.ERROR})}function WO(e){return(t,r,n)=>{WV(t,r,n),e?.(t,r,n)}}function zO(e){return(t,r)=>{zV(t,r),e?.(t,r)}}var qV=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};function qO(e={}){let{fetchInstrumentationOptions:t,xhrInstrumentationOptions:r}=e,n=qV(e,["fetchInstrumentationOptions","xhrInstrumentationOptions"]),o=XV(t,n),i=$V(r,n);return[new Do(o),new Ds(i)]}function XV(e,t){return Object.assign(Object.assign(Object.assign(Object.assign({},t),{ignoreNetworkEvents:!0}),e),{applyCustomAttributesOnSpan:WO(e?.applyCustomAttributesOnSpan)})}function $V(e,t){return Object.assign(Object.assign(Object.assign(Object.assign({},t),{ignoreNetworkEvents:!0}),e),{applyCustomAttributesOnSpan:zO(e?.applyCustomAttributesOnSpan)})}I();I();Lt();function gu(){return"unknown_service"}
30var Jr=e=>e!==null&&typeof e=="object"&&typeof e.then=="function";var Ru=class e{_rawAttributes;_asyncAttributesPending=!1;_schemaUrl;_memoizedAttributes;static FromAttributeList(t,r){let n=new e({},r);return n._rawAttributes=XO(t),n._asyncAttributesPending=t.filter(([o,i])=>Jr(i)).length>0,n}constructor(t,r){let n=t.attributes??{};this._rawAttributes=Object.entries(n).map(([o,i])=>(Jr(i)&&(this._asyncAttributesPending=!0),[o,i])),this._rawAttributes=XO(this._rawAttributes),this._schemaUrl=QV(r?.schemaUrl)}get asyncAttributesPending(){return this._asyncAttributesPending}async waitForAsyncAttributes(){if(this.asyncAttributesPending){for(let t=0;t<this._rawAttributes.length;t++){let[r,n]=this._rawAttributes[t];this._rawAttributes[t]=[r,Jr(n)?await n:n]}this._asyncAttributesPending=!1}}get attributes(){if(this.asyncAttributesPending&&O.error("Accessing resource attributes before async attributes settled"),this._memoizedAttributes)return this._memoizedAttributes;let t={};for(let[r,n]of this._rawAttributes){if(Jr(n)){O.debug(`Unsettled resource attribute ${r} skipped`);continue}n!=null&&(t[r]??=n)}return this._asyncAttributesPending||(this._memoizedAttributes=t),t}getRawAttributes(){return this._rawAttributes}get schemaUrl(){return this._schemaUrl}merge(t){if(t==null)return this;let r=JV(this,t),n=r?{schemaUrl:r}:void 0;return e.FromAttributeList([...t.getRawAttributes(),...this.getRawAttributes()],n)}};function ys(e,t){return Ru.FromAttributeList(Object.entries(e),t)}function wo(){return ys({[po]:gu(),[Fr]:jr[Fr],[kr]:jr[kr],[Yr]:jr[Yr]})}function XO(e){return e.map(([t,r])=>Jr(r)?[t,r.catch(n=>{O.debug("promise rejection for resource attribute: %s - %s",t,n)})]:[t,r])}function QV(e){if(typeof e=="string"||e===void 0)return e;O.warn("Schema URL must be string or undefined, got %s. Schema URL will be ignored.",e)}function JV(e,t){let r=e?.schemaUrl,n=t?.schemaUrl,o=r===void 0||r==="",i=n===void 0||n==="";if(o)return n;if(i||r===n)return r;O.warn('Schema URL merge conflict: old resource has "%s", updating resource has "%s". Resulting resource will have undefined Schema URL.',r,n)}I();I();Lt();var $O="exception";var Us=class{_spanContext;kind;parentSpanContext;attributes={};links=[];events=[];startTime;resource;instrumentationScope;_droppedAttributesCount=0;_droppedEventsCount=0;_droppedLinksCount=0;name;status={code:Oe.UNSET};endTime=[0,0];_ended=!1;_duration=[-1,-1];_spanProcessor;_spanLimits;_attributeValueLengthLimit;_performanceStartTime;_performanceOffset;_startTimeProvided;constructor(t){let r=Date.now();this._spanContext=t.spanContext,this._performanceStartTime=nt.now(),this._performanceOffset=r-(this._performanceStartTime+Hi()),this._startTimeProvided=t.startTime!=null,this._spanLimits=t.spanLimits,this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0,this._spanProcessor=t.spanProcessor,this.name=t.name,this.parentSpanContext=t.parentSpanContext,this.kind=t.kind,this.links=t.links||[],this.startTime=this._getTime(t.startTime??r),this.resource=t.resource,this.instrumentationScope=t.scope,t.attributes!=null&&this.setAttributes(t.attributes),this._spanProcessor.onStart(this,t.context)}spanContext(){return this._spanContext}setAttribute(t,r){if(r==null||this._isSpanEnded())return this;if(t.length===0)return O.warn(`Invalid attribute key: ${t}`),this;if(!Gi(r))return O.warn(`Invalid attribute value set for key: ${t}`),this;let{attributeCountLimit:n}=this._spanLimits;return n!==void 0&&Object.keys(this.attributes).length>=n&&!Object.prototype.hasOwnProperty.call(this.attributes,t)?(this._droppedAttributesCount++,this):(this.attributes[t]=this._truncateToSize(r),this)}setAttributes(t){for(let[r,n]of Object.entries(t))this.setAttribute(r,n);return this}addEvent(t,r,n){if(this._isSpanEnded())return this;let{eventCountLimit:o}=this._spanLimits;if(o===0)return O.warn("No events allowed."),this._droppedEventsCount++,this;o!==void 0&&this.events.length>=o&&(this._droppedEventsCount===0&&O.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),ki(r)&&(ki(n)||(n=r),r=void 0);let i=sr(r);return this.events.push({name:t,attributes:i,time:this._getTime(n),droppedAttributesCount:0}),this}addLink(t){return this.links.push(t),this}addLinks(t){return this.links.push(...t),this}setStatus(t){return this._isSpanEnded()?this:(this.status={...t},this.status.message!=null&&typeof t.message!="string"&&(O.warn(`Dropping invalid status.message of type '${typeof t.message}', expected 'string'`),delete this.status.message),this)}updateName(t){return this._isSpanEnded()?this:(this.name=t,this)}end(t){if(this._isSpanEnded()){O.error(`${this.name} ${this._spanContext.traceId}-${this._spanContext.spanId} - You can only call end() on a span once.`);return}this._ended=!0,this.endTime=this._getTime(t),this._duration=Lc(this.startTime,this.endTime),this._duration[0]<0&&(O.warn("Inconsistent start and end time, startTime > endTime. Setting span duration to 0ms.",this.startTime,this.endTime),this.endTime=this.startTime.slice(),this._duration=[0,0]),this._droppedEventsCount>0&&O.warn(`Dropped ${this._droppedEventsCount} events because eventCountLimit reached`),this._spanProcessor.onEnd(this)}_getTime(t){if(typeof t=="number"&&t<=nt.now())return xc(t+this._performanceOffset);if(typeof t=="number")return Dt(t);if(t instanceof Date)return Dt(t.getTime());if(Fi(t))return t;if(this._startTimeProvided)return Dt(Date.now());let r=nt.now()-this._performanceStartTime;return Yi(this.startTime,Dt(r))}isRecording(){return this._ended===!1}
30recordException(t,r){let n={};typeof t=="string"?n[io]=t:t&&(t.code?n[so]=t.code.toString():t.name&&(n[so]=t.name),t.message&&(n[io]=t.message),t.stack&&(n[Mc]=t.stack)),n[so]||n[io]?this.addEvent($O,n,r):O.warn(`Failed to record an exception ${t}`)}get duration(){return this._duration}get ended(){return this._ended}get droppedAttributesCount(){return this._droppedAttributesCount}get droppedEventsCount(){return this._droppedEventsCount}get droppedLinksCount(){return this._droppedLinksCount}_isSpanEnded(){if(this._ended){let t=new Error(`Operation attempted on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`);O.warn(`Cannot execute the operation on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`,t)}return this._ended}_truncateToLimitUtil(t,r){return t.length<=r?t:t.substring(0,r)}_truncateToSize(t){let r=this._attributeValueLengthLimit;return r<=0?(O.warn(`Attribute value limit must be positive, got ${r}`),t):typeof t=="string"?this._truncateToLimitUtil(t,r):Array.isArray(t)?t.map(n=>typeof n=="string"?this._truncateToLimitUtil(n,r):n):t}};I();var de;(function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(de||(de={}));var ft=class{shouldSample(){return{decision:de.NOT_RECORD}}toString(){return"AlwaysOffSampler"}};var Ke=class{shouldSample(){return{decision:de.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}};I();var Ft=class{_root;_remoteParentSampled;_remoteParentNotSampled;_localParentSampled;_localParentNotSampled;constructor(t){this._root=t.root,this._root||(Ye(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new Ke),this._remoteParentSampled=t.remoteParentSampled??new Ke,this._remoteParentNotSampled=t.remoteParentNotSampled??new ft,this._localParentSampled=t.localParentSampled??new Ke,this._localParentNotSampled=t.localParentNotSampled??new ft}shouldSample(t,r,n,o,i,s){let a=B.getSpanContext(t);return!a||!rt(a)?this._root.shouldSample(t,r,n,o,i,s):a.isRemote?a.traceFlags&ae.SAMPLED?this._remoteParentSampled.shouldSample(t,r,n,o,i,s):this._remoteParentNotSampled.shouldSample(t,r,n,o,i,s):a.traceFlags&ae.SAMPLED?this._localParentSampled.shouldSample(t,r,n,o,i,s):this._localParentNotSampled.shouldSample(t,r,n,o,i,s)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}};I();var Zr=class{_ratio;_upperBound;constructor(t=0){this._ratio=t,this._ratio=this._normalize(t),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(t,r){return{decision:to(r)&&this._accumulate(r)<this._upperBound?de.RECORD_AND_SAMPLED:de.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(t){return typeof t!="number"||isNaN(t)?0:t>=1?1:t<=0?0:t}_accumulate(t){let r=0;for(let n=0;n<t.length/8;n++){let o=n*8,i=parseInt(t.slice(o,o+8),16);r=(r^i)>>>0}return r}};var ut;(function(e){e.AlwaysOff="always_off",e.AlwaysOn="always_on",e.ParentBasedAlwaysOff="parentbased_always_off",e.ParentBasedAlwaysOn="parentbased_always_on",e.ParentBasedTraceIdRatio="parentbased_traceidratio",e.TraceIdRatio="traceidratio"})(ut||(ut={}));var ws=1;function Vs(){return{sampler:Ou(),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:void 0??1/0,attributeCountLimit:void 0??128},spanLimits:{attributeValueLengthLimit:void 0??1/0,attributeCountLimit:void 0??128,linkCountLimit:void 0??128,eventCountLimit:void 0??128,attributePerEventCountLimit:void 0??128,attributePerLinkCountLimit:void 0??128}}}function Ou(){let e=void 0??ut.ParentBasedAlwaysOn;switch(e){case ut.AlwaysOn:return new Ke;case ut.AlwaysOff:return new ft;case ut.ParentBasedAlwaysOn:return new Ft({root:new Ke});case ut.ParentBasedAlwaysOff:return new Ft({root:new ft});case ut.TraceIdRatio:return new Zr(QO());case ut.ParentBasedTraceIdRatio:return new Ft({root:new Zr(QO())});default:return O.error(`OTEL_TRACES_SAMPLER value "${e}" invalid, defaulting to "${ut.ParentBasedAlwaysOn}".`),new Ft({root:new Ke})}}function QO(){let e=void 0;return e==null?(O.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${ws}.`),ws):e<0||e>1?(O.error(`OTEL_TRACES_SAMPLER_ARG=${e} was given, but it is out of range ([0..1]), defaulting to ${ws}.`),ws):e}var ZV=128,eB=1/0;function JO(e){let t={sampler:Ou()},r=Vs(),n=Object.assign({},r,t,e);return n.generalLimits=Object.assign({},r.generalLimits,e.generalLimits||{}),n.spanLimits=Object.assign({},r.spanLimits,e.spanLimits||{}),n}function ZO(e){let t=Object.assign({},e.spanLimits);return t.attributeCountLimit=e.spanLimits?.attributeCountLimit??e.generalLimits?.attributeCountLimit??void 0??void 0??ZV,t.attributeValueLengthLimit=e.spanLimits?.attributeValueLengthLimit??e.generalLimits?.attributeValueLengthLimit??void 0??void 0??eB,Object.assign({},e,{spanLimits:t})}I();var Bs=class{_exporter;_maxExportBatchSize;_maxQueueSize;_scheduledDelayMillis;_exportTimeoutMillis;_isExporting=!1;_finishedSpans=[];_timer;_shutdownOnce;_droppedSpansCount=0;constructor(t,r){this._exporter=t,this._maxExportBatchSize=typeof r?.maxExportBatchSize=="number"?r.maxExportBatchSize:void 0??512,this._maxQueueSize=typeof r?.maxQueueSize=="number"?r.maxQueueSize:void 0??2048,this._scheduledDelayMillis=typeof r?.scheduledDelayMillis=="number"?r.scheduledDelayMillis:void 0??5e3,this._exportTimeoutMillis=typeof r?.exportTimeoutMillis=="number"?r.exportTimeoutMillis:void 0??3e4,this._shutdownOnce=new fo(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(O.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize)}forceFlush(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()}onStart(t,r){}onEnd(t){this._shutdownOnce.isCalled||t.spanContext().traceFlags&ae.SAMPLED&&this._addToBuffer(t)}shutdown(){return this._shutdownOnce.call()}_shutdown(){return Promise.resolve().then(()=>this.onShutdown()).then(()=>this._flushAll()).then(()=>this._exporter.shutdown())}_addToBuffer(t){if(this._finishedSpans.length>=this._maxQueueSize){this._droppedSpansCount===0&&O.debug("maxQueueSize reached, dropping spans"),this._droppedSpansCount++;return}this._droppedSpansCount>0&&(O.warn(`Dropped ${this._droppedSpansCount} spans because maxQueueSize reached`),this._droppedSpansCount=0),this._finishedSpans.push(t),this._maybeStartTimer()}_flushAll(){return new Promise((t,r)=>{let n=[],o=Math.ceil(this._finishedSpans.length/this._maxExportBatchSize);for(let i=0,s=o;i<s;i++)n.push(this._flushOneBatch());Promise.all(n).then(()=>{t()}).catch(r)})}_flushOneBatch(){return this._clearTimer(),this._finishedSpans.length===0?Promise.resolve():new Promise((t,r)=>{let n=setTimeout(()=>{r(new Error("Timeout"))},this._exportTimeoutMillis);y.with(hc(y.active()),()=>{let o;this._finishedSpans.length<=this._maxExportBatchSize?(o=this._finishedSpans,this._finishedSpans=[]):o=this._finishedSpans.splice(0,this._maxExportBatchSize);let i=()=>this._exporter.export(o,a=>{clearTimeout(n),a.code===ar.SUCCESS?t():r(a.error??new Error("BatchSpanProcessor: span export failed"))}),s=null;for(let a=0,c=o.length;a<c;a++){let E=o[a];E.resource.asyncAttributesPending&&E.resource.waitForAsyncAttributes&&(s??=[],s.push(E.resource.waitForAsyncAttributes()))}s===null?i():Promise.all(s).then(i,a=>{Ye(a),r(a)})})})}_maybeStartTimer(){if(this._isExporting)return;let t=()=>{this._isExporting=!0,this._flushOneBatch().finally(()=>{this._isExporting=!1,this._finishedSpans.length>0&&(this._clearTimer(),this._maybeStartTimer())}).catch(r=>{this._isExporting=!1,Ye(r)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return t();this._timer===void 0&&(this._timer=setTimeout(()=>t(),this._scheduledDelayMillis),this._timer,void 0)}_clearTimer(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)}};var Sr=class extends Bs{_visibilityChangeListener;_pageHideListener;constructor(t,r){super(t,r),this.onInit(r)}onInit(t){t?.disableAutoFlushOnDocumentHide!==!0&&typeof document<"u"&&(this._visibilityChangeListener=()=>{document.visibilityState==="hidden"&&this.forceFlush().catch(r=>{Ye(r)})},this._pageHideListener=()=>{this.forceFlush().catch(r=>{Ye(r)})},document.addEventListener("visibilitychange",this._visibilityChangeListener),document.addEventListener("pagehide",this._pageHideListener))}onShutdown(){typeof document<"u"&&(this._visibilityChangeListener&&document.removeEventListener("visibilitychange",this._visibilityChangeListener),this._pageHideListener&&document.removeEventListener("pagehide",this._pageHideListener))}};var dr=class{generateTraceId=eh(16);generateSpanId=eh(8)},Gs=Array(32);function eh(e){return function(){for(let r=0;r<e*2;r++)Gs[r]=Math.floor(Math.random()*16)+48,Gs[r]>=58&&(Gs[r]+=39);return String.fromCharCode.apply(null,Gs.slice(0,e*2))}}var Hs=class{_sampler;_generalLimits;_spanLimits;_idGenerator;instrumentationScope;_resource;_spanProcessor;constructor(t,r,n,o){let i=JO(r);this._sampler=i.sampler,this._generalLimits=i.generalLimits,this._spanLimits=i.spanLimits,this._idGenerator=r.idGenerator||new dr,this._resource=n,this._spanProcessor=o,this.instrumentationScope=t}startSpan(t,r={},n=y.active()){r.root&&(n=B.deleteSpan(n));let o=B.getSpan(n);if(ir(n))return O.debug("Instrumentation suppressed, returning Noop Span"),B.wrapSpanContext(Gr);let i=o?.spanContext(),s=this._idGenerator.generateSpanId(),a,c,E;!i||!B.isSpanContextValid(i)?c=this._idGenerator.generateTraceId():(c=i.traceId,E=i.traceState,a=i);let u=r.kind??De.INTERNAL,_=(r.links??[]).map(A=>({context:A.context,attributes:sr(A.attributes)})),p=sr(r.attributes),T=this._sampler.shouldSample(n,c,t,u,p,_);E=T.traceState??E;let l=T.decision===nr.RECORD_AND_SAMPLED?ae.SAMPLED:ae.NONE,d={traceId:c,spanId:s,traceFlags:l,traceState:E};if(T.decision===nr.NOT_RECORD)return O.debug("Recording is off, prop
30agating context in a non-recording span"),B.wrapSpanContext(d);let m=sr(Object.assign(p,T.attributes));return new Us({resource:this._resource,scope:this.instrumentationScope,context:n,spanContext:d,name:t,kind:u,links:_,parentSpanContext:a,attributes:m,startTime:r.startTime,spanProcessor:this._spanProcessor,spanLimits:this._spanLimits})}startActiveSpan(t,r,n,o){let i,s,a;if(arguments.length<2)return;arguments.length===2?a=r:arguments.length===3?(i=r,a=n):(i=r,s=n,a=o);let c=s??y.active(),E=this.startSpan(t,i,c),u=B.setSpan(c,E);return y.with(u,a,void 0,E)}getGeneralLimits(){return this._generalLimits}getSpanLimits(){return this._spanLimits}};var Fs=class{_spanProcessors;constructor(t){this._spanProcessors=t}forceFlush(){let t=[];for(let r of this._spanProcessors)t.push(r.forceFlush());return new Promise(r=>{Promise.all(t).then(()=>{r()}).catch(n=>{Ye(n||new Error("MultiSpanProcessor: forceFlush failed")),r()})})}onStart(t,r){for(let n of this._spanProcessors)n.onStart(t,r)}onEnd(t){for(let r of this._spanProcessors)r.onEnd(t)}shutdown(){let t=[];for(let r of this._spanProcessors)t.push(r.shutdown());return new Promise((r,n)=>{Promise.all(t).then(()=>{r()},n)})}};var fr;(function(e){e[e.resolved=0]="resolved",e[e.timeout=1]="timeout",e[e.error=2]="error",e[e.unresolved=3]="unresolved"})(fr||(fr={}));var en=class{_config;_tracers=new Map;_resource;_activeSpanProcessor;constructor(t={}){let r=wc({},Vs(),ZO(t));this._resource=r.resource??wo(),this._config=Object.assign({},r,{resource:this._resource});let n=[];t.spanProcessors?.length&&n.push(...t.spanProcessors),this._activeSpanProcessor=new Fs(n)}getTracer(t,r,n){let o=`${t}@${r||""}:${n?.schemaUrl||""}`;return this._tracers.has(o)||this._tracers.set(o,new Hs({name:t,version:r,schemaUrl:n?.schemaUrl},this._config,this._resource,this._activeSpanProcessor)),this._tracers.get(o)}forceFlush(){let t=this._config.forceFlushTimeoutMillis,r=this._activeSpanProcessor._spanProcessors.map(n=>new Promise(o=>{let i,s=setTimeout(()=>{o(new Error(`Span processor did not completed within timeout period of ${t} ms`)),i=fr.timeout},t);n.forceFlush().then(()=>{clearTimeout(s),i!==fr.timeout&&(i=fr.resolved,o(i))}).catch(a=>{clearTimeout(s),i=fr.error,o(a)})}));return new Promise((n,o)=>{Promise.all(r).then(i=>{let s=i.filter(a=>a!==fr.resolved);s.length>0?o(s):n()}).catch(i=>o([i]))})}shutdown(){return this._activeSpanProcessor.shutdown()}};I();var ks=class{_enabled=!1;_currentContext=tt;_bindFunction(t=tt,r){let n=this,o=function(...i){return n.with(t,()=>r.apply(this,i))};return Object.defineProperty(o,"length",{enumerable:!1,configurable:!0,writable:!1,value:r.length}),o}active(){return this._currentContext}bind(t,r){return t===void 0&&(t=this.active()),typeof r=="function"?this._bindFunction(t,r):r}disable(){return this._currentContext=tt,this._enabled=!1,this}enable(){return this._enabled?this:(this._enabled=!0,this._currentContext=tt,this)}with(t,r,n,...o){let i=this._currentContext;this._currentContext=t||tt;try{return r.call(n,...o)}finally{this._currentContext=i}}};I();function tB(e){if(e!==null){if(e===void 0){let t=new ks;t.enable(),y.setGlobalContextManager(t);return}e.enable(),y.setGlobalContextManager(e)}}function rB(e){if(e!==null){if(e===void 0){$.setGlobalPropagator(new lo({propagators:[new cr,new oo]}));return}$.setGlobalPropagator(e)}}var Vo=class extends en{constructor(t={}){super(t)}register(t={}){B.setGlobalTracerProvider(this),rB(t.propagator),tB(t.contextManager)}};Lt();var Ys=class{constructor(t,r){this.processor=t,this.metas=r}forceFlush(){return this.processor.forceFlush()}onStart(t,r){var n;let o=this.metas.value.session;o?.id&&(t.attributes[iO]=o.id,t.attributes.session_id=o.id);let i=(n=this.metas.value.user)!==null&&n!==void 0?n:{};i.email&&(t.attributes["user.email"]=i.email),i.id&&(t.attributes["user.id"]=i.id),i.username&&(t.attributes["user.name"]=i.username),i.fullName&&(t.attributes["user.full_name"]=i.fullName),i.roles&&(t.attributes["user.roles"]=i.roles.split(",").map(s=>s.trim())),i.hash&&(t.attributes["user.hash"]=i.hash),this.processor.onStart(t,r)}onEnd(t){this.processor.onEnd(t)}shutdown(){return this.processor.shutdown()}};I();var js=class{constructor(t){this.processor=t,Fe.subscribe(r=>{if(r.type===te){this.message=r;return}[_t,Tt,pt].includes(r.type)&&(this.message=void 0)})}forceFlush(){return this.processor.forceFlush()}onStart(t,r){var n,o;t.kind===De.CLIENT&&this.message&&(t.attributes["faro.action.user.n
30ame"]=(n=this.message)===null||n===void 0?void 0:n.name,t.attributes["faro.action.user.parentId"]=(o=this.message)===null||o===void 0?void 0:o.parentId),this.processor.onStart(t,r)}onEnd(t){this.processor.onEnd(t)}shutdown(){return this.processor.shutdown()}};function th(e={}){var t;return((t=e.attributes)===null||t===void 0?void 0:t.isSampled)==="true"?de.RECORD_AND_SAMPLED:de.NOT_RECORD}var tn=class e extends Y{constructor(t={}){super(),this.options=t,this.name="@grafana/faro-web-tracing",this.version=k}initialize(){var t,r,n,o,i;let s=this.options,a={};this.config.app.name&&(a[po]=this.config.app.name),this.config.app.namespace&&(a[aO]=this.config.app.namespace),this.config.app.version&&(a[bc]=this.config.app.version),this.config.app.environment&&(a[sO]=this.config.app.environment,a[Pc]=this.config.app.environment);let c=this.metas.value.browser;Ae(c?.brands)&&(a[pO]=c.brands.map(l=>l.brand)),c?.language&&(a[TO]=c.language),typeof c?.mobile=="boolean"&&(a[lO]=!!c.mobile),c?.os&&(a[SO]=c.os),c?.userAgent&&(a[Cc]=c.userAgent),a[cO]="browser",a[uO]=(t=this.metas.value.browser)===null||t===void 0?void 0:t.userAgent,a[EO]="faro-web-sdk",a[_O]=k,Object.assign(a,s.resourceAttributes);let E=wo().merge(ys(a));new Vo({resource:E,sampler:{shouldSample:()=>({decision:th(this.api.getSession())})},spanProcessors:[(r=s.spanProcessor)!==null&&r!==void 0?r:new js(new Ys(new Sr(new hs({api:this.api}),{scheduledDelayMillis:e.SCHEDULED_BATCH_DELAY_MS,maxExportBatchSize:30}),this.metas))]}).register({propagator:(n=s.propagator)!==null&&n!==void 0?n:new cr,contextManager:s.contextManager});let{propagateTraceHeaderCorsUrls:_,fetchInstrumentationOptions:p,xhrInstrumentationOptions:T}=(o=this.options.instrumentationOptions)!==null&&o!==void 0?o:{};Tu({instrumentations:(i=s.instrumentations)!==null&&i!==void 0?i:qO({ignoreUrls:this.getIgnoreUrls(),propagateTraceHeaderCorsUrls:_,fetchInstrumentationOptions:p,xhrInstrumentationOptions:T})}),this.api.initOTEL(B,y)}getIgnoreUrls(){return this.transports.transports.flatMap(t=>t.getIgnoreUrls())}};tn.SCHEDULED_BATCH_DELAY_MS=1e3;if("requestIdleCallback"in window)window.requestIdleCallback(()=>{rh()});else{let e=function(){setTimeout(()=>{rh()},500)};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>{e()}):e()}function rh(){if(window.faroDidInit)return!1;window.faroDidInit=!0;let e=ec({url:"https://rum.casinohex.org",apiKey:"api_key",app:{name:hexjs.mhst,version:"1.0.0",environment:"production"},instrumentations:[...Vr(),new tn]}),[t]=performance.getEntriesByType("navigation"),r=t.duration;e.api.pushMeasurement({type:"page_load",values:{load_time_s:r/1e3},attributes:{url:window.location.href,path:window.location.pathname}})}})();
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.