@20minutes/tyr 0.1.113 → 0.1.114

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/dist/css/articlePage-desktop-critical.css +1 -1
  2. package/dist/css/articlePage-desktop-no-critical.css +1 -1
  3. package/dist/css/articlePage-mobile-critical.css +1 -1
  4. package/dist/css/articlePage-mobile-no-critical.css +1 -1
  5. package/dist/css/errorPage-desktop-critical.css +1 -1
  6. package/dist/css/errorPage-desktop-no-critical.css +1 -1
  7. package/dist/css/errorPage-mobile-critical.css +1 -1
  8. package/dist/css/errorPage-mobile-no-critical.css +1 -1
  9. package/dist/css/global.css +1 -1
  10. package/dist/css/horoscopePage-desktop-critical.css +1 -1
  11. package/dist/css/horoscopePage-desktop-no-critical.css +1 -1
  12. package/dist/css/horoscopePage-mobile-critical.css +1 -1
  13. package/dist/css/horoscopePage-mobile-no-critical.css +1 -1
  14. package/dist/css/horoscopehomePage-desktop-critical.css +1 -1
  15. package/dist/css/horoscopehomePage-desktop-no-critical.css +1 -1
  16. package/dist/css/horoscopehomePage-mobile-critical.css +1 -1
  17. package/dist/css/horoscopehomePage-mobile-no-critical.css +1 -1
  18. package/dist/css/searchPage-desktop-critical.css +1 -1
  19. package/dist/css/searchPage-desktop-no-critical.css +1 -1
  20. package/dist/css/searchPage-mobile-critical.css +1 -1
  21. package/dist/css/searchPage-mobile-no-critical.css +1 -1
  22. package/dist/css/tagPage-desktop-critical.css +1 -1
  23. package/dist/css/tagPage-desktop-no-critical.css +1 -1
  24. package/dist/css/tagPage-mobile-critical.css +1 -1
  25. package/dist/css/tagPage-mobile-no-critical.css +1 -1
  26. package/dist/index.es.js +2720 -2711
  27. package/dist/index.umd.js +48 -48
  28. package/dist/js/ads.min.js +2 -2
  29. package/dist/js/awsRum.min.js +4 -4
  30. package/dist/js/main.min.js +2 -2
  31. package/dist/types/graphql.d.ts +239 -13
  32. package/package.json +9 -9
@@ -1,12 +1,12 @@
1
- (function(){"use strict";var br=Object.create,be=Object.defineProperty,_r=Object.getOwnPropertyDescriptor,at=Object.getOwnPropertyNames,Er=Object.getPrototypeOf,Sr=Object.prototype.hasOwnProperty,Tr=(t,r)=>function(){return t&&(r=(0,t[at(t)[0]])(t=0)),r},k=(t,r)=>function(){return r||(0,t[at(t)[0]])((r={exports:{}}).exports,r),r.exports},Cr=(t,r)=>{for(var e in r)be(t,e,{get:r[e],enumerable:!0})},Xt=(t,r,e,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of at(r))!Sr.call(t,o)&&o!==e&&be(t,o,{get:()=>r[o],enumerable:!(n=_r(r,o))||n.enumerable});return t},st=(t,r,e)=>(e=t!=null?br(Er(t)):{},Xt(r||!t||!t.__esModule?be(e,"default",{value:t,enumerable:!0}):e,t)),$t=t=>Xt(be({},"__esModule",{value:!0}),t),Ar=k({"node_modules/ua-parser-js/src/ua-parser.js"(t,r){(function(e,n){var o="0.7.35",i="",a="?",c="function",u="undefined",s="object",f="string",d="major",l="model",h="name",p="type",v="vendor",g="version",A="architecture",j="console",y="mobile",b="tablet",L="smarttv",G="wearable",ge="embedded",xt=350,Ze="Amazon",me="Apple",cr="ASUS",ur="BlackBerry",ie="Browser",Qe="Chrome",Ya="Edge",et="Firefox",tt="Google",fr="Huawei",Dt="LG",qt="Microsoft",lr="Motorola",nt="Opera",Bt="Samsung",dr="Sharp",rt="Sony",Ft="Xiaomi",Vt="Zebra",hr="Facebook",pr="Chromium OS",vr="Mac OS",Ja=function(_,S){var w={};for(var T in _)S[T]&&S[T].length%2===0?w[T]=S[T].concat(_[T]):w[T]=_[T];return w},it=function(_){for(var S={},w=0;w<_.length;w++)S[_[w].toUpperCase()]=_[w];return S},gr=function(_,S){return typeof _===f?ye(S).indexOf(ye(_))!==-1:!1},ye=function(_){return _.toLowerCase()},Za=function(_){return typeof _===f?_.replace(/[^\d\.]/g,i).split(".")[0]:n},Gt=function(_,S){if(typeof _===f)return _=_.replace(/^\s\s*/,i),typeof S===u?_:_.substring(0,xt)},we=function(_,S){for(var w=0,T,z,x,E,m,D;w<S.length&&!m;){var Wt=S[w],wr=S[w+1];for(T=z=0;T<Wt.length&&!m&&Wt[T];)if(m=Wt[T++].exec(_),m)for(x=0;x<wr.length;x++)D=m[++z],E=wr[x],typeof E===s&&E.length>0?E.length===2?typeof E[1]==c?this[E[0]]=E[1].call(this,D):this[E[0]]=E[1]:E.length===3?typeof E[1]===c&&!(E[1].exec&&E[1].test)?this[E[0]]=D?E[1].call(this,D,E[2]):n:this[E[0]]=D?D.replace(E[1],E[2]):n:E.length===4&&(this[E[0]]=D?E[3].call(this,D.replace(E[1],E[2])):n):this[E]=D||n;w+=2}},zt=function(_,S){for(var w in S)if(typeof S[w]===s&&S[w].length>0){for(var T=0;T<S[w].length;T++)if(gr(S[w][T],_))return w===a?n:w}else if(gr(S[w],_))return w===a?n:w;return _},Qa={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},mr={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"},yr={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[g,[h,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[g,[h,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[h,g],[/opios[\/ ]+([\w\.]+)/i],[g,[h,nt+" Mini"]],[/\bopr\/([\w\.]+)/i],[g,[h,nt]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[h,g],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[g,[h,"UC"+ie]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[g,[h,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[g,[h,"WeChat"]],[/konqueror\/([\w\.]+)/i],[g,[h,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[g,[h,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[g,[h,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[h,/(.+)/,"$1 Secure "+ie],g],[/\bfocus\/([\w\.]+)/i],[g,[h,et+" Focus"]],[/\bopt\/([\w\.]+)/i],[g,[h,nt+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[g,[h,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[g,[h,"Dolphin"]],[/coast\/([\w\.]+)/i],[g,[h,nt+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[g,[h,"MIUI "+ie]],[/fxios\/([-\w\.]+)/i],[g,[h,et]],[/\bqihu|(qi?ho?o?|360)browser/i],[[h,"360 "+ie]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[h,/(.+)/,"$1 "+ie],g],[/(comodo_dragon)\/([\w\.]+)/i],[[h,/_/g," "],g],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[h,g],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[h],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[h,hr],g],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[h,g],[/\bgsa\/([\w\.]+) .*safari\//i],[g,[h,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[g,[h,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[g,[h,Qe+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[h,Qe+" WebView"],g],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[g,[h,"Android "+ie]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[h,g],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[g,[h,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[g,h],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[h,[g,zt,Qa]],[/(webkit|khtml)\/([\w\.]+)/i],[h,g],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[h,"Netscape"],g],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[g,[h,et+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\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|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[h,g],[/(cobalt)\/([\w\.]+)/i],[h,[g,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[A,"amd64"]],[/(ia32(?=;))/i],[[A,ye]],[/((?:i[346]|x)86)[;\)]/i],[[A,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[A,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[A,"armhf"]],[/windows (ce|mobile); ppc;/i],[[A,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[A,/ower/,i,ye]],[/(sun4\w)[;\)]/i],[[A,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[A,ye]]],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],[l,[v,Bt],[p,b]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[l,[v,Bt],[p,y]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[l,[v,me],[p,y]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[l,[v,me],[p,b]],[/(macintosh);/i],[l,[v,me]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[l,[v,dr],[p,y]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[l,[v,fr],[p,b]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[l,[v,fr],[p,y]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[l,/_/g," "],[v,Ft],[p,y]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[l,/_/g," "],[v,Ft],[p,b]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[l,[v,"OPPO"],[p,y]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[l,[v,"Vivo"],[p,y]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[l,[v,"Realme"],[p,y]],[/\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],[l,[v,lr],[p,y]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[l,[v,lr],[p,b]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[l,[v,Dt],[p,b]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[l,[v,Dt],[p,y]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[l,[v,"Lenovo"],[p,b]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[l,/_/g," "],[v,"Nokia"],[p,y]],[/(pixel c)\b/i],[l,[v,tt],[p,b]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[l,[v,tt],[p,y]],[/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],[l,[v,rt],[p,y]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[l,"Xperia Tablet"],[v,rt],[p,b]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[l,[v,"OnePlus"],[p,y]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[l,[v,Ze],[p,b]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[l,/(.+)/g,"Fire Phone $1"],[v,Ze],[p,y]],[/(playbook);[-\w\),; ]+(rim)/i],[l,v,[p,b]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[l,[v,ur],[p,y]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[l,[v,cr],[p,b]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[l,[v,cr],[p,y]],[/(nexus 9)/i],[l,[v,"HTC"],[p,b]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[v,[l,/_/g," "],[p,y]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[l,[v,"Acer"],[p,b]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[l,[v,"Meizu"],[p,y]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[v,l,[p,y]],[/(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],[v,l,[p,b]],[/(surface duo)/i],[l,[v,qt],[p,b]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[l,[v,"Fairphone"],[p,y]],[/(u304aa)/i],[l,[v,"AT&T"],[p,y]],[/\bsie-(\w*)/i],[l,[v,"Siemens"],[p,y]],[/\b(rct\w+) b/i],[l,[v,"RCA"],[p,b]],[/\b(venue[\d ]{2,7}) b/i],[l,[v,"Dell"],[p,b]],[/\b(q(?:mv|ta)\w+) b/i],[l,[v,"Verizon"],[p,b]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[l,[v,"Barnes & Noble"],[p,b]],[/\b(tm\d{3}\w+) b/i],[l,[v,"NuVision"],[p,b]],[/\b(k88) b/i],[l,[v,"ZTE"],[p,b]],[/\b(nx\d{3}j) b/i],[l,[v,"ZTE"],[p,y]],[/\b(gen\d{3}) b.+49h/i],[l,[v,"Swiss"],[p,y]],[/\b(zur\d{3}) b/i],[l,[v,"Swiss"],[p,b]],[/\b((zeki)?tb.*\b) b/i],[l,[v,"Zeki"],[p,b]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[v,"Dragon Touch"],l,[p,b]],[/\b(ns-?\w{0,9}) b/i],[l,[v,"Insignia"],[p,b]],[/\b((nxa|next)-?\w{0,9}) b/i],[l,[v,"NextBook"],[p,b]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[v,"Voice"],l,[p,y]],[/\b(lvtel\-)?(v1[12]) b/i],[[v,"LvTel"],l,[p,y]],[/\b(ph-1) /i],[l,[v,"Essential"],[p,y]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[l,[v,"Envizen"],[p,b]],[/\b(trio[-\w\. ]+) b/i],[l,[v,"MachSpeed"],[p,b]],[/\btu_(1491) b/i],[l,[v,"Rotor"],[p,b]],[/(shield[\w ]+) b/i],[l,[v,"Nvidia"],[p,b]],[/(sprint) (\w+)/i],[v,l,[p,y]],[/(kin\.[onetw]{3})/i],[[l,/\./g," "],[v,qt],[p,y]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[l,[v,Vt],[p,b]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[l,[v,Vt],[p,y]],[/smart-tv.+(samsung)/i],[v,[p,L]],[/hbbtv.+maple;(\d+)/i],[[l,/^/,"SmartTV"],[v,Bt],[p,L]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[v,Dt],[p,L]],[/(apple) ?tv/i],[v,[l,me+" TV"],[p,L]],[/crkey/i],[[l,Qe+"cast"],[v,tt],[p,L]],[/droid.+aft(\w)( bui|\))/i],[l,[v,Ze],[p,L]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[l,[v,dr],[p,L]],[/(bravia[\w ]+)( bui|\))/i],[l,[v,rt],[p,L]],[/(mitv-\w{5}) bui/i],[l,[v,Ft],[p,L]],[/Hbbtv.*(technisat) (.*);/i],[v,l,[p,L]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[v,Gt],[l,Gt],[p,L]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[p,L]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[v,l,[p,j]],[/droid.+; (shield) bui/i],[l,[v,"Nvidia"],[p,j]],[/(playstation [345portablevi]+)/i],[l,[v,rt],[p,j]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[l,[v,qt],[p,j]],[/((pebble))app/i],[v,l,[p,G]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[l,[v,me],[p,G]],[/droid.+; (glass) \d/i],[l,[v,tt],[p,G]],[/droid.+; (wt63?0{2,3})\)/i],[l,[v,Vt],[p,G]],[/(quest( 2| pro)?)/i],[l,[v,hr],[p,G]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[v,[p,ge]],[/(aeobc)\b/i],[l,[v,Ze],[p,ge]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[l,[p,y]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[l,[p,b]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[p,b]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[p,y]],[/(android[-\w\. ]{0,9});.+buil/i],[l,[v,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[g,[h,Ya+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[g,[h,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[h,g],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[g,h]],os:[[/microsoft (windows) (vista|xp)/i],[h,g],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[h,[g,zt,mr]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[h,"Windows"],[g,zt,mr]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/ios;fbsv\/([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[g,/_/g,"."],[h,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[h,vr],[g,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[g,h],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[h,g],[/\(bb(10);/i],[g,[h,ur]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[g,[h,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[g,[h,et+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[g,[h,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[g,[h,"watchOS"]],[/crkey\/([\d\.]+)/i],[g,[h,Qe+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[h,pr],g],[/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],[h,g],[/(sunos) ?([\w\.\d]*)/i],[[h,"Solaris"],g],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[h,g]]},M=function(_,S){if(typeof _===s&&(S=_,_=n),!(this instanceof M))return new M(_,S).getResult();var w=typeof e!==u&&e.navigator?e.navigator:n,T=_||(w&&w.userAgent?w.userAgent:i),z=w&&w.userAgentData?w.userAgentData:n,x=S?Ja(yr,S):yr,E=w&&w.userAgent==T;return this.getBrowser=function(){var m={};return m[h]=n,m[g]=n,we.call(m,T,x.browser),m[d]=Za(m[g]),E&&w&&w.brave&&typeof w.brave.isBrave==c&&(m[h]="Brave"),m},this.getCPU=function(){var m={};return m[A]=n,we.call(m,T,x.cpu),m},this.getDevice=function(){var m={};return m[v]=n,m[l]=n,m[p]=n,we.call(m,T,x.device),E&&!m[p]&&z&&z.mobile&&(m[p]=y),E&&m[l]=="Macintosh"&&w&&typeof w.standalone!==u&&w.maxTouchPoints&&w.maxTouchPoints>2&&(m[l]="iPad",m[p]=b),m},this.getEngine=function(){var m={};return m[h]=n,m[g]=n,we.call(m,T,x.engine),m},this.getOS=function(){var m={};return m[h]=n,m[g]=n,we.call(m,T,x.os),E&&!m[h]&&z&&z.platform!="Unknown"&&(m[h]=z.platform.replace(/chrome os/i,pr).replace(/macos/i,vr)),m},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 T},this.setUA=function(m){return T=typeof m===f&&m.length>xt?Gt(m,xt):m,this},this.setUA(T),this};M.VERSION=o,M.BROWSER=it([h,g,d]),M.CPU=it([A]),M.DEVICE=it([l,v,p,j,y,L,b,G,ge]),M.ENGINE=M.OS=it([h,g]),typeof t!==u?(typeof r!==u&&r.exports&&(t=r.exports=M),t.UAParser=M):typeof define===c&&define.amd?define(function(){return M}):typeof e!==u&&(e.UAParser=M);var oe=typeof e!==u&&(e.jQuery||e.Zepto);if(oe&&!oe.ua){var ot=new M;oe.ua=ot.getResult(),oe.ua.get=function(){return ot.getUA()},oe.ua.set=function(_){ot.setUA(_);var S=ot.getResult();for(var w in S)oe.ua[w]=S[w]}}})(typeof window=="object"?window:t)}}),Or=k({"node_modules/shimmer/index.js"(t,r){function e(f){return typeof f=="function"}var n=console.error.bind(console);function o(f,d,l){var h=!!f[d]&&f.propertyIsEnumerable(d);Object.defineProperty(f,d,{configurable:!0,enumerable:h,writable:!0,value:l})}function i(f){f&&f.logger&&(e(f.logger)?n=f.logger:n("new logger isn't a function, not replacing"))}function a(f,d,l){if(!f||!f[d]){n("no original function "+d+" to wrap");return}if(!l){n("no wrapper function"),n(new Error().stack);return}if(!e(f[d])||!e(l)){n("original object and wrapper must be functions");return}var h=f[d],p=l(h,d);return o(p,"__original",h),o(p,"__unwrap",function(){f[d]===p&&o(f,d,h)}),o(p,"__wrapped",!0),o(f,d,p),p}function c(f,d,l){if(f)Array.isArray(f)||(f=[f]);else{n("must provide one or more modules to patch"),n(new Error().stack);return}if(!(d&&Array.isArray(d))){n("must provide one or more functions to wrap on modules");return}f.forEach(function(h){d.forEach(function(p){a(h,p,l)})})}function u(f,d){if(!f||!f[d]){n("no function to unwrap."),n(new Error().stack);return}if(!f[d].__unwrap)n("no original to unwrap to -- has "+d+" already been unwrapped?");else return f[d].__unwrap()}function s(f,d){if(f)Array.isArray(f)||(f=[f]);else{n("must provide one or more modules to patch"),n(new Error().stack);return}if(!(d&&Array.isArray(d))){n("must provide one or more functions to unwrap on modules");return}f.forEach(function(l){d.forEach(function(h){u(l,h)})})}i.wrap=a,i.massWrap=c,i.unwrap=u,i.massUnwrap=s,r.exports=i}}),ct={};Cr(ct,{__assign:()=>Ee,__asyncDelegator:()=>qr,__asyncGenerator:()=>Dr,__asyncValues:()=>Br,__await:()=>ae,__awaiter:()=>Nr,__classPrivateFieldGet:()=>zr,__classPrivateFieldSet:()=>Wr,__createBinding:()=>Mr,__decorate:()=>Rr,__exportStar:()=>Hr,__extends:()=>Ir,__generator:()=>jr,__importDefault:()=>Gr,__importStar:()=>Vr,__makeTemplateObject:()=>Fr,__metadata:()=>kr,__param:()=>Lr,__read:()=>Kt,__rest:()=>Pr,__spread:()=>Ur,__spreadArrays:()=>xr,__values:()=>ut});function Ir(t,r){_e(t,r);function e(){this.constructor=t}t.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}function Pr(t,r){var e={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&r.indexOf(n)<0&&(e[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(t);o<n.length;o++)r.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(e[n[o]]=t[n[o]]);return e}function Rr(t,r,e,n){var o=arguments.length,i=o<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,e):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,r,e,n);else for(var c=t.length-1;c>=0;c--)(a=t[c])&&(i=(o<3?a(i):o>3?a(r,e,i):a(r,e))||i);return o>3&&i&&Object.defineProperty(r,e,i),i}function Lr(t,r){return function(e,n){r(e,n,t)}}function kr(t,r){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,r)}function Nr(t,r,e,n){function o(i){return i instanceof e?i:new e(function(a){a(i)})}return new(e||(e=Promise))(function(i,a){function c(f){try{s(n.next(f))}catch(d){a(d)}}function u(f){try{s(n.throw(f))}catch(d){a(d)}}function s(f){f.done?i(f.value):o(f.value).then(c,u)}s((n=n.apply(t,r||[])).next())})}function jr(t,r){var e={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(s){return function(f){return u([s,f])}}function u(s){if(n)throw new TypeError("Generator is already executing.");for(;e;)try{if(n=1,o&&(i=s[0]&2?o.return:s[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,s[1])).done)return i;switch(o=0,i&&(s=[s[0]&2,i.value]),s[0]){case 0:case 1:i=s;break;case 4:return e.label++,{value:s[1],done:!1};case 5:e.label++,o=s[1],s=[0];continue;case 7:s=e.ops.pop(),e.trys.pop();continue;default:if(i=e.trys,!(i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){e=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){e.label=s[1];break}if(s[0]===6&&e.label<i[1]){e.label=i[1],i=s;break}if(i&&e.label<i[2]){e.label=i[2],e.ops.push(s);break}i[2]&&e.ops.pop(),e.trys.pop();continue}s=r.call(t,e)}catch(f){s=[6,f],o=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}function Mr(t,r,e,n){n===void 0&&(n=e),t[n]=r[e]}function Hr(t,r){for(var e in t)e!=="default"&&!r.hasOwnProperty(e)&&(r[e]=t[e])}function ut(t){var r=typeof Symbol=="function"&&Symbol.iterator,e=r&&t[r],n=0;if(e)return e.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function Kt(t,r){var e=typeof Symbol=="function"&&t[Symbol.iterator];if(!e)return t;var n=e.call(t),o,i=[],a;try{for(;(r===void 0||r-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(c){a={error:c}}finally{try{o&&!o.done&&(e=n.return)&&e.call(n)}finally{if(a)throw a.error}}return i}function Ur(){for(var t=[],r=0;r<arguments.length;r++)t=t.concat(Kt(arguments[r]));return t}function xr(){for(var t=0,r=0,e=arguments.length;r<e;r++)t+=arguments[r].length;for(var n=Array(t),o=0,r=0;r<e;r++)for(var i=arguments[r],a=0,c=i.length;a<c;a++,o++)n[o]=i[a];return n}function ae(t){return this instanceof ae?(this.v=t,this):new ae(t)}function Dr(t,r,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=e.apply(t,r||[]),o,i=[];return o={},a("next"),a("throw"),a("return"),o[Symbol.asyncIterator]=function(){return this},o;function a(l){n[l]&&(o[l]=function(h){return new Promise(function(p,v){i.push([l,h,p,v])>1||c(l,h)})})}function c(l,h){try{u(n[l](h))}catch(p){d(i[0][3],p)}}function u(l){l.value instanceof ae?Promise.resolve(l.value.v).then(s,f):d(i[0][2],l)}function s(l){c("next",l)}function f(l){c("throw",l)}function d(l,h){l(h),i.shift(),i.length&&c(i[0][0],i[0][1])}}function qr(t){var r,e;return r={},n("next"),n("throw",function(o){throw o}),n("return"),r[Symbol.iterator]=function(){return this},r;function n(o,i){r[o]=t[o]?function(a){return(e=!e)?{value:ae(t[o](a)),done:o==="return"}:i?i(a):a}:i}}function Br(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=t[Symbol.asyncIterator],e;return r?r.call(t):(t=typeof ut=="function"?ut(t):t[Symbol.iterator](),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(i){e[i]=t[i]&&function(a){return new Promise(function(c,u){a=t[i](a),o(c,u,a.done,a.value)})}}function o(i,a,c,u){Promise.resolve(u).then(function(s){i({value:s,done:c})},a)}}function Fr(t,r){return Object.defineProperty?Object.defineProperty(t,"raw",{value:r}):t.raw=r,t}function Vr(t){if(t&&t.__esModule)return t;var r={};if(t!=null)for(var e in t)Object.hasOwnProperty.call(t,e)&&(r[e]=t[e]);return r.default=t,r}function Gr(t){return t&&t.__esModule?t:{default:t}}function zr(t,r){if(!r.has(t))throw new TypeError("attempted to get private field on non-instance");return r.get(t)}function Wr(t,r,e){if(!r.has(t))throw new TypeError("attempted to set private field on non-instance");return r.set(t,e),e}var _e,Ee,Yt=Tr({"node_modules/aws-rum-web/node_modules/tslib/tslib.es6.js"(){_e=function(t,r){return _e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var o in n)n.hasOwnProperty(o)&&(e[o]=n[o])},_e(t,r)},Ee=function(){return Ee=Object.assign||function(r){for(var e,n=1,o=arguments.length;n<o;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i])}return r},Ee.apply(this,arguments)}}}),Jt=k({"node_modules/aws-rum-web/node_modules/@aws-crypto/sha256-js/build/constants.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.MAX_HASHABLE_LENGTH=t.INIT=t.KEY=t.DIGEST_LENGTH=t.BLOCK_SIZE=void 0,t.BLOCK_SIZE=64,t.DIGEST_LENGTH=32,t.KEY=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),t.INIT=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],t.MAX_HASHABLE_LENGTH=Math.pow(2,53)-1}}),Xr=k({"node_modules/aws-rum-web/node_modules/@aws-crypto/sha256-js/build/RawSha256.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.RawSha256=void 0;var r=Jt(),e=function(){function n(){this.state=Int32Array.from(r.INIT),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return n.prototype.update=function(o){if(this.finished)throw new Error("Attempted to update an already finished hash.");var i=0,a=o.byteLength;if(this.bytesHashed+=a,this.bytesHashed*8>r.MAX_HASHABLE_LENGTH)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;a>0;)this.buffer[this.bufferLength++]=o[i++],a--,this.bufferLength===r.BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)},n.prototype.digest=function(){if(!this.finished){var o=this.bytesHashed*8,i=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),a=this.bufferLength;if(i.setUint8(this.bufferLength++,128),a%r.BLOCK_SIZE>=r.BLOCK_SIZE-8){for(var c=this.bufferLength;c<r.BLOCK_SIZE;c++)i.setUint8(c,0);this.hashBuffer(),this.bufferLength=0}for(var c=this.bufferLength;c<r.BLOCK_SIZE-8;c++)i.setUint8(c,0);i.setUint32(r.BLOCK_SIZE-8,Math.floor(o/4294967296),!0),i.setUint32(r.BLOCK_SIZE-4,o),this.hashBuffer(),this.finished=!0}for(var u=new Uint8Array(r.DIGEST_LENGTH),c=0;c<8;c++)u[c*4]=this.state[c]>>>24&255,u[c*4+1]=this.state[c]>>>16&255,u[c*4+2]=this.state[c]>>>8&255,u[c*4+3]=this.state[c]>>>0&255;return u},n.prototype.hashBuffer=function(){for(var o=this,i=o.buffer,a=o.state,c=a[0],u=a[1],s=a[2],f=a[3],d=a[4],l=a[5],h=a[6],p=a[7],v=0;v<r.BLOCK_SIZE;v++){if(v<16)this.temp[v]=(i[v*4]&255)<<24|(i[v*4+1]&255)<<16|(i[v*4+2]&255)<<8|i[v*4+3]&255;else{var g=this.temp[v-2],A=(g>>>17|g<<15)^(g>>>19|g<<13)^g>>>10;g=this.temp[v-15];var j=(g>>>7|g<<25)^(g>>>18|g<<14)^g>>>3;this.temp[v]=(A+this.temp[v-7]|0)+(j+this.temp[v-16]|0)}var y=(((d>>>6|d<<26)^(d>>>11|d<<21)^(d>>>25|d<<7))+(d&l^~d&h)|0)+(p+(r.KEY[v]+this.temp[v]|0)|0)|0,b=((c>>>2|c<<30)^(c>>>13|c<<19)^(c>>>22|c<<10))+(c&u^c&s^u&s)|0;p=h,h=l,l=d,d=f+y|0,f=s,s=u,u=c,c=y+b|0}a[0]+=c,a[1]+=u,a[2]+=s,a[3]+=f,a[4]+=d,a[5]+=l,a[6]+=h,a[7]+=p},n}();t.RawSha256=e}}),$r=k({"node_modules/@aws-sdk/util-utf8-browser/dist-cjs/pureJs.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.toUtf8=t.fromUtf8=void 0;var r=n=>{const o=[];for(let i=0,a=n.length;i<a;i++){const c=n.charCodeAt(i);if(c<128)o.push(c);else if(c<2048)o.push(c>>6|192,c&63|128);else if(i+1<n.length&&(c&64512)===55296&&(n.charCodeAt(i+1)&64512)===56320){const u=65536+((c&1023)<<10)+(n.charCodeAt(++i)&1023);o.push(u>>18|240,u>>12&63|128,u>>6&63|128,u&63|128)}else o.push(c>>12|224,c>>6&63|128,c&63|128)}return Uint8Array.from(o)};t.fromUtf8=r;var e=n=>{let o="";for(let i=0,a=n.length;i<a;i++){const c=n[i];if(c<128)o+=String.fromCharCode(c);else if(192<=c&&c<224){const u=n[++i];o+=String.fromCharCode((c&31)<<6|u&63)}else if(240<=c&&c<365){const s="%"+[c,n[++i],n[++i],n[++i]].map(f=>f.toString(16)).join("%");o+=decodeURIComponent(s)}else o+=String.fromCharCode((c&15)<<12|(n[++i]&63)<<6|n[++i]&63)}return o};t.toUtf8=e}}),Kr=k({"node_modules/@aws-sdk/util-utf8-browser/dist-cjs/whatwgEncodingApi.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.toUtf8=t.fromUtf8=void 0;function r(n){return new TextEncoder().encode(n)}t.fromUtf8=r;function e(n){return new TextDecoder("utf-8").decode(n)}t.toUtf8=e}}),Yr=k({"node_modules/@aws-sdk/util-utf8-browser/dist-cjs/index.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.toUtf8=t.fromUtf8=void 0;var r=$r(),e=Kr(),n=i=>typeof TextEncoder=="function"?(0,e.fromUtf8)(i):(0,r.fromUtf8)(i);t.fromUtf8=n;var o=i=>typeof TextDecoder=="function"?(0,e.toUtf8)(i):(0,r.toUtf8)(i);t.toUtf8=o}}),Jr=k({"node_modules/aws-rum-web/node_modules/@aws-crypto/util/build/convertToBuffer.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.convertToBuffer=void 0;var r=Yr(),e=typeof Buffer<"u"&&Buffer.from?function(o){return Buffer.from(o,"utf8")}:r.fromUtf8;function n(o){return o instanceof Uint8Array?o:typeof o=="string"?e(o):ArrayBuffer.isView(o)?new Uint8Array(o.buffer,o.byteOffset,o.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(o)}t.convertToBuffer=n}}),Zr=k({"node_modules/aws-rum-web/node_modules/@aws-crypto/util/build/isEmptyData.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.isEmptyData=void 0;function r(e){return typeof e=="string"?e.length===0:e.byteLength===0}t.isEmptyData=r}}),Qr=k({"node_modules/aws-rum-web/node_modules/@aws-crypto/util/build/numToUint8.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.numToUint8=void 0;function r(e){return new Uint8Array([(e&4278190080)>>24,(e&16711680)>>16,(e&65280)>>8,e&255])}t.numToUint8=r}}),ei=k({"node_modules/aws-rum-web/node_modules/@aws-crypto/util/build/uint32ArrayFrom.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.uint32ArrayFrom=void 0;function r(e){if(!Uint32Array.from){for(var n=new Uint32Array(e.length),o=0;o<e.length;)n[o]=e[o],o+=1;return n}return Uint32Array.from(e)}t.uint32ArrayFrom=r}}),ti=k({"node_modules/aws-rum-web/node_modules/@aws-crypto/util/build/index.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.uint32ArrayFrom=t.numToUint8=t.isEmptyData=t.convertToBuffer=void 0;var r=Jr();Object.defineProperty(t,"convertToBuffer",{enumerable:!0,get:function(){return r.convertToBuffer}});var e=Zr();Object.defineProperty(t,"isEmptyData",{enumerable:!0,get:function(){return e.isEmptyData}});var n=Qr();Object.defineProperty(t,"numToUint8",{enumerable:!0,get:function(){return n.numToUint8}});var o=ei();Object.defineProperty(t,"uint32ArrayFrom",{enumerable:!0,get:function(){return o.uint32ArrayFrom}})}}),ni=k({"node_modules/aws-rum-web/node_modules/@aws-crypto/sha256-js/build/jsSha256.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Sha256=void 0;var r=(Yt(),$t(ct)),e=Jt(),n=Xr(),o=ti(),i=function(){function c(u){if(this.hash=new n.RawSha256,u){this.outer=new n.RawSha256;var s=a(u),f=new Uint8Array(e.BLOCK_SIZE);f.set(s);for(var d=0;d<e.BLOCK_SIZE;d++)s[d]^=54,f[d]^=92;this.hash.update(s),this.outer.update(f);for(var d=0;d<s.byteLength;d++)s[d]=0}}return c.prototype.update=function(u){if(!((0,o.isEmptyData)(u)||this.error))try{this.hash.update((0,o.convertToBuffer)(u))}catch(s){this.error=s}},c.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},c.prototype.digest=function(){return r.__awaiter(this,void 0,void 0,function(){return r.__generator(this,function(u){return[2,this.digestSync()]})})},c}();t.Sha256=i;function a(c){var u=(0,o.convertToBuffer)(c);if(u.byteLength>e.BLOCK_SIZE){var s=new n.RawSha256;s.update(u),u=s.digest()}var f=new Uint8Array(e.BLOCK_SIZE);return f.set(u),f}}}),ri=k({"node_modules/aws-rum-web/node_modules/@aws-crypto/sha256-js/build/index.js"(t){Object.defineProperty(t,"__esModule",{value:!0});var r=(Yt(),$t(ct));r.__exportStar(ni(),t)}}),Zt;(function(t){t[t.HEADER=0]="HEADER",t[t.TRAILER=1]="TRAILER"})(Zt||(Zt={}));var se=class{constructor(t){this.method=t.method||"GET",this.hostname=t.hostname||"localhost",this.port=t.port,this.query=t.query||{},this.headers=t.headers||{},this.body=t.body,this.protocol=t.protocol?t.protocol.slice(-1)!==":"?`${t.protocol}:`:t.protocol:"https:",this.path=t.path?t.path.charAt(0)!=="/"?`/${t.path}`:t.path:"/"}static isInstance(t){if(!t)return!1;const r=t;return"method"in r&&"protocol"in r&&"hostname"in r&&"path"in r&&typeof r.query=="object"&&typeof r.headers=="object"}clone(){const t=new se({...this,headers:{...this.headers}});return t.query&&(t.query=ii(t.query)),t}};function ii(t){return Object.keys(t).reduce((r,e)=>{const n=t[e];return{...r,[e]:Array.isArray(n)?[...n]:n}},{})}var ft=class{constructor(t){this.statusCode=t.statusCode,this.headers=t.headers||{},this.body=t.body}static isInstance(t){if(!t)return!1;const r=t;return typeof r.statusCode=="number"&&typeof r.headers=="object"}},Qt=function(t,r,e,n){function o(i){return i instanceof e?i:new e(function(a){a(i)})}return new(e||(e=Promise))(function(i,a){function c(f){try{s(n.next(f))}catch(d){a(d)}}function u(f){try{s(n.throw(f))}catch(d){a(d)}}function s(f){f.done?i(f.value):o(f.value).then(c,u)}s((n=n.apply(t,r||[])).next())})},en=function(t,r){var e={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(s){return function(f){return u([s,f])}}function u(s){if(n)throw new TypeError("Generator is already executing.");for(;e;)try{if(n=1,o&&(i=s[0]&2?o.return:s[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,s[1])).done)return i;switch(o=0,i&&(s=[s[0]&2,i.value]),s[0]){case 0:case 1:i=s;break;case 4:return e.label++,{value:s[1],done:!1};case 5:e.label++,o=s[1],s=[0];continue;case 7:s=e.ops.pop(),e.trys.pop();continue;default:if(i=e.trys,!(i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){e=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){e.label=s[1];break}if(s[0]===6&&e.label<i[1]){e.label=i[1],i=s;break}if(i&&e.label<i[2]){e.label=i[2],e.ops.push(s);break}i[2]&&e.ops.pop(),e.trys.pop();continue}s=r.call(t,e)}catch(f){s=[6,f],o=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},lt=function(t){return Qt(void 0,void 0,void 0,function(){var r;return en(this,function(e){switch(e.label){case 0:return[4,t.body.getReader().read()];case 1:return r=e.sent().value,[2,JSON.parse(String.fromCharCode.apply(null,r))]}})})},oi=function(t){return Qt(void 0,void 0,void 0,function(){var r;return en(this,function(e){switch(e.label){case 0:return[4,t.body.getReader().read()];case 1:return r=e.sent().value,[2,String.fromCharCode.apply(null,r)]}})})},dt=function(t,r,e,n){function o(i){return i instanceof e?i:new e(function(a){a(i)})}return new(e||(e=Promise))(function(i,a){function c(f){try{s(n.next(f))}catch(d){a(d)}}function u(f){try{s(n.throw(f))}catch(d){a(d)}}function s(f){f.done?i(f.value):o(f.value).then(c,u)}s((n=n.apply(t,r||[])).next())})},ht=function(t,r){var e={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(s){return function(f){return u([s,f])}}function u(s){if(n)throw new TypeError("Generator is already executing.");for(;e;)try{if(n=1,o&&(i=s[0]&2?o.return:s[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,s[1])).done)return i;switch(o=0,i&&(s=[s[0]&2,i.value]),s[0]){case 0:case 1:i=s;break;case 4:return e.label++,{value:s[1],done:!1};case 5:e.label++,o=s[1],s=[0];continue;case 7:s=e.ops.pop(),e.trys.pop();continue;default:if(i=e.trys,!(i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){e=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){e.label=s[1];break}if(s[0]===6&&e.label<i[1]){e.label=i[1],i=s;break}if(i&&e.label<i[2]){e.label=i[2],e.ops.push(s);break}i[2]&&e.ops.pop(),e.trys.pop();continue}s=r.call(t,e)}catch(f){s=[6,f],o=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},ai="POST",si="application/x-amz-json-1.1",ci="https:",ui="AWSCognitoIdentityService.GetId",fi="AWSCognitoIdentityService.GetOpenIdToken",li="AWSCognitoIdentityService.GetCredentialsForIdentity",di=function(t){return function(){return t.client.getCredentialsForIdentity(t.identityPoolId)}},tn=function(){function t(r){var e=this;this.getId=function(n){return dt(e,void 0,void 0,function(){var o,i,a,c;return ht(this,function(u){switch(u.label){case 0:return u.trys.push([0,3,,4]),o=JSON.stringify(n),i=this.getHttpRequest(ui,o),[4,this.fetchRequestHandler.handle(i)];case 1:return a=u.sent().response,[4,lt(a)];case 2:return[2,u.sent()];case 3:throw c=u.sent(),new Error("CWR: Failed to retrieve Cognito identity: ".concat(c));case 4:return[2]}})})},this.getOpenIdToken=function(n){return dt(e,void 0,void 0,function(){var o,i,a,c;return ht(this,function(u){switch(u.label){case 0:return u.trys.push([0,3,,4]),o=JSON.stringify(n),i=this.getHttpRequest(fi,o),[4,this.fetchRequestHandler.handle(i)];case 1:return a=u.sent().response,[4,lt(a)];case 2:return[2,u.sent()];case 3:throw c=u.sent(),new Error("CWR: Failed to retrieve Cognito OpenId token: ".concat(c));case 4:return[2]}})})},this.getCredentialsForIdentity=function(n){return dt(e,void 0,void 0,function(){var o,i,a,c,u,s,f,d,l;return ht(this,function(h){switch(h.label){case 0:return h.trys.push([0,3,,4]),o=JSON.stringify({IdentityId:n}),i=this.getHttpRequest(li,o),[4,this.fetchRequestHandler.handle(i)];case 1:return a=h.sent().response,[4,lt(a)];case 2:return c=h.sent().Credentials,u=c.AccessKeyId,s=c.Expiration,f=c.SecretAccessKey,d=c.SessionToken,[2,{accessKeyId:u,secretAccessKey:f,sessionToken:d,expiration:new Date(s*1e3)}];case 3:throw l=h.sent(),new Error("CWR: Failed to retrieve credentials for Cognito identity: ".concat(l));case 4:return[2]}})})},this.getHttpRequest=function(n,o){return new se({method:ai,headers:{"content-type":si,"x-amz-target":n},protocol:ci,hostname:e.hostname,body:o})},this.hostname="cognito-identity.".concat(r.region,".amazonaws.com"),this.fetchRequestHandler=r.fetchRequestHandler}return t}(),nn;(function(t){t[t.HEADER=0]="HEADER",t[t.TRAILER=1]="TRAILER"})(nn||(nn={}));var rn=class{constructor(t){this.statusCode=t.statusCode,this.headers=t.headers||{},this.body=t.body}static isInstance(t){if(!t)return!1;const r=t;return typeof r.statusCode=="number"&&typeof r.headers=="object"}},H=t=>encodeURIComponent(t).replace(/[!'()*]/g,hi),hi=t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`;function pi(t){const r=[];for(let e of Object.keys(t).sort()){const n=t[e];if(e=H(e),Array.isArray(n))for(let o=0,i=n.length;o<i;o++)r.push(`${e}=${H(n[o])}`);else{let o=e;(n||typeof n=="string")&&(o+=`=${H(n)}`),r.push(o)}}return r.join("&")}function vi(t=0){return new Promise((r,e)=>{t&&setTimeout(()=>{const n=new Error(`Request did not complete within ${t} ms`);n.name="TimeoutError",e(n)},t)})}var pt=class{constructor(t){typeof t=="function"?this.configProvider=t().then(r=>r||{}):(this.config=t??{},this.configProvider=Promise.resolve(this.config))}destroy(){}async handle(t,{abortSignal:r}={}){this.config||(this.config=await this.configProvider);const e=this.config.requestTimeout;if(r?.aborted){const d=new Error("Request aborted");return d.name="AbortError",Promise.reject(d)}let n=t.path;if(t.query){const d=pi(t.query);d&&(n+=`?${d}`)}const{port:o,method:i}=t,a=`${t.protocol}//${t.hostname}${o?`:${o}`:""}${n}`,u={body:i==="GET"||i==="HEAD"?void 0:t.body,headers:new Headers(t.headers),method:i};typeof AbortController<"u"&&(u.signal=r);const s=new Request(a,u),f=[fetch(s).then(d=>{const l=d.headers,h={};for(const v of l.entries())h[v[0]]=v[1];return d.body!=null?{response:new rn({headers:h,statusCode:d.status,body:d.body})}:d.blob().then(v=>({response:new rn({headers:h,statusCode:d.status,body:v})}))}),vi(e)];return r&&f.push(new Promise((d,l)=>{r.onabort=()=>{const h=new Error("Request aborted");h.name="AbortError",l(h)}})),Promise.race(f)}},K={},ce=new Array(64);for(let t=0,r="A".charCodeAt(0),e="Z".charCodeAt(0);t+r<=e;t++){const n=String.fromCharCode(t+r);K[n]=t,ce[t]=n}for(let t=0,r="a".charCodeAt(0),e="z".charCodeAt(0);t+r<=e;t++){const n=String.fromCharCode(t+r),o=t+26;K[n]=o,ce[o]=n}for(let t=0;t<10;t++){K[t.toString(10)]=t+52;const r=t.toString(10),e=t+52;K[r]=e,ce[e]=r}K["+"]=62,ce[62]="+",K["/"]=63,ce[63]="/";var Se=function(){return Se=Object.assign||function(t){for(var r,e=1,n=arguments.length;e<n;e++){r=arguments[e];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},Se.apply(this,arguments)},gi=function(t,r,e,n){function o(i){return i instanceof e?i:new e(function(a){a(i)})}return new(e||(e=Promise))(function(i,a){function c(f){try{s(n.next(f))}catch(d){a(d)}}function u(f){try{s(n.throw(f))}catch(d){a(d)}}function s(f){f.done?i(f.value):o(f.value).then(c,u)}s((n=n.apply(t,r||[])).next())})},mi=function(t,r){var e={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(s){return function(f){return u([s,f])}}function u(s){if(n)throw new TypeError("Generator is already executing.");for(;e;)try{if(n=1,o&&(i=s[0]&2?o.return:s[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,s[1])).done)return i;switch(o=0,i&&(s=[s[0]&2,i.value]),s[0]){case 0:case 1:i=s;break;case 4:return e.label++,{value:s[1],done:!1};case 5:e.label++,o=s[1],s=[0];continue;case 7:s=e.ops.pop(),e.trys.pop();continue;default:if(i=e.trys,!(i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){e=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){e.label=s[1];break}if(s[0]===6&&e.label<i[1]){e.label=i[1],i=s;break}if(i&&e.label<i[2]){e.label=i[2],e.ops.push(s);break}i[2]&&e.ops.pop(),e.trys.pop();continue}s=r.call(t,e)}catch(f){s=[6,f],o=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},yi="POST",wi="application/x-www-form-urlencoded",bi="https:",_i="AssumeRoleWithWebIdentity",Ei="2011-06-15",Si=function(){function t(r){var e=this;this.assumeRoleWithWebIdentity=function(n){return gi(e,void 0,void 0,function(){var o,i,a,c,u,s;return mi(this,function(f){switch(f.label){case 0:return f.trys.push([0,3,,4]),o=Se(Se({},n),{Action:_i,Version:Ei}),i=new URLSearchParams(Object.entries(o)).toString(),a=new se({method:yi,headers:{"content-type":wi,host:this.hostname},protocol:bi,hostname:this.hostname,body:i}),[4,this.fetchRequestHandler.handle(a)];case 1:return c=f.sent().response,[4,oi(c)];case 2:return u=f.sent(),[2,{accessKeyId:u.split("<AccessKeyId>")[1].split("</AccessKeyId>")[0],secretAccessKey:u.split("<SecretAccessKey>")[1].split("</SecretAccessKey>")[0],sessionToken:u.split("<SessionToken>")[1].split("</SessionToken>")[0],expiration:new Date(u.split("<Expiration>")[1].split("</Expiration>")[0])}];case 3:throw s=f.sent(),new Error("CWR: Failed to retrieve credentials from STS: ".concat(s));case 4:return[2]}})})},this.hostname="sts.".concat(r.region,".amazonaws.com"),this.fetchRequestHandler=r.fetchRequestHandler}return t}(),Te="cwr_c",on="cwr_s",an="cwr_u",sn=3e4,Ti="arw-module",Ce=function(){return Ce=Object.assign||function(t){for(var r,e=1,n=arguments.length;e<n;e++){r=arguments[e];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},Ce.apply(this,arguments)},Ae=function(t,r,e,n){function o(i){return i instanceof e?i:new e(function(a){a(i)})}return new(e||(e=Promise))(function(i,a){function c(f){try{s(n.next(f))}catch(d){a(d)}}function u(f){try{s(n.throw(f))}catch(d){a(d)}}function s(f){f.done?i(f.value):o(f.value).then(c,u)}s((n=n.apply(t,r||[])).next())})},Oe=function(t,r){var e={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(s){return function(f){return u([s,f])}}function u(s){if(n)throw new TypeError("Generator is already executing.");for(;e;)try{if(n=1,o&&(i=s[0]&2?o.return:s[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,s[1])).done)return i;switch(o=0,i&&(s=[s[0]&2,i.value]),s[0]){case 0:case 1:i=s;break;case 4:return e.label++,{value:s[1],done:!1};case 5:e.label++,o=s[1],s=[0];continue;case 7:s=e.ops.pop(),e.trys.pop();continue;default:if(i=e.trys,!(i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){e=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){e.label=s[1];break}if(s[0]===6&&e.label<i[1]){e.label=i[1],i=s;break}if(i&&e.label<i[2]){e.label=i[2],e.ops.push(s);break}i[2]&&e.ops.pop(),e.trys.pop();continue}s=r.call(t,e)}catch(f){s=[6,f],o=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},Ci=function(){function t(r){var e=this;this.ChainAnonymousCredentialsProvider=function(){return Ae(e,void 0,void 0,function(){return Oe(this,function(o){return[2,this.AnonymousCredentialsProvider().catch(this.AnonymousStorageCredentialsProvider).catch(this.AnonymousCognitoCredentialsProvider)]})})},this.AnonymousCredentialsProvider=function(){return Ae(e,void 0,void 0,function(){var o=this;return Oe(this,function(i){return[2,new Promise(function(a,c){if(o.renewCredentials())return c();a(o.credentials)})]})})},this.AnonymousStorageCredentialsProvider=function(){return Ae(e,void 0,void 0,function(){var o=this;return Oe(this,function(i){return[2,new Promise(function(a,c){var u;try{u=JSON.parse(localStorage.getItem(Te))}catch{return c()}if(o.credentials=Ce(Ce({},u),{expiration:new Date(u.expiration)}),o.renewCredentials())return c();o.credentials=u,a(u)})]})})},this.AnonymousCognitoCredentialsProvider=function(){return Ae(e,void 0,void 0,function(){var o=this;return Oe(this,function(i){return[2,this.cognitoIdentityClient.getId({IdentityPoolId:this.config.identityPoolId}).then(function(a){return o.cognitoIdentityClient.getOpenIdToken(a)}).then(function(a){return o.stsClient.assumeRoleWithWebIdentity({RoleArn:o.config.guestRoleArn,RoleSessionName:"cwr",WebIdentityToken:a.Token})}).then(function(a){o.credentials=a;try{localStorage.setItem(Te,JSON.stringify(a))}catch{}return a})]})})};var n=r.identityPoolId.split(":")[0];this.config=r,this.stsClient=new Si({fetchRequestHandler:new pt,region:n}),this.cognitoIdentityClient=new tn({fetchRequestHandler:new pt,region:n})}return t.prototype.renewCredentials=function(){if(!this.credentials||!this.credentials.expiration)return!0;var r=new Date(this.credentials.expiration.getTime()-sn);return new Date>r},t}(),Ie=function(t,r,e,n){function o(i){return i instanceof e?i:new e(function(a){a(i)})}return new(e||(e=Promise))(function(i,a){function c(f){try{s(n.next(f))}catch(d){a(d)}}function u(f){try{s(n.throw(f))}catch(d){a(d)}}function s(f){f.done?i(f.value):o(f.value).then(c,u)}s((n=n.apply(t,r||[])).next())})},Pe=function(t,r){var e={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(s){return function(f){return u([s,f])}}function u(s){if(n)throw new TypeError("Generator is already executing.");for(;e;)try{if(n=1,o&&(i=s[0]&2?o.return:s[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,s[1])).done)return i;switch(o=0,i&&(s=[s[0]&2,i.value]),s[0]){case 0:case 1:i=s;break;case 4:return e.label++,{value:s[1],done:!1};case 5:e.label++,o=s[1],s=[0];continue;case 7:s=e.ops.pop(),e.trys.pop();continue;default:if(i=e.trys,!(i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){e=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){e.label=s[1];break}if(s[0]===6&&e.label<i[1]){e.label=i[1],i=s;break}if(i&&e.label<i[2]){e.label=i[2],e.ops.push(s);break}i[2]&&e.ops.pop(),e.trys.pop();continue}s=r.call(t,e)}catch(f){s=[6,f],o=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},Ai=function(){function t(r){var e=this;this.ChainAnonymousCredentialsProvider=function(){return Ie(e,void 0,void 0,function(){return Pe(this,function(o){return[2,this.AnonymousCredentialsProvider().catch(this.AnonymousStorageCredentialsProvider).catch(this.AnonymousCognitoCredentialsProvider)]})})},this.AnonymousCredentialsProvider=function(){return Ie(e,void 0,void 0,function(){var o=this;return Pe(this,function(i){return[2,new Promise(function(a,c){if(o.renewCredentials())return c();a(o.credentials)})]})})},this.AnonymousStorageCredentialsProvider=function(){return Ie(e,void 0,void 0,function(){var o=this;return Pe(this,function(i){return[2,new Promise(function(a,c){var u;try{u=JSON.parse(localStorage.getItem(Te))}catch{c()}if(u.expiration=new Date(u.expiration),o.credentials=u,o.renewCredentials())return c();o.credentials=u,a(u)})]})})},this.AnonymousCognitoCredentialsProvider=function(){return Ie(e,void 0,void 0,function(){var o,i=this;return Pe(this,function(a){return o=di({client:this.cognitoIdentityClient,identityPoolId:this.config.identityPoolId}),[2,o().then(function(c){i.credentials=c;try{localStorage.setItem(Te,JSON.stringify(c))}catch{}return c})]})})};var n=r.identityPoolId.split(":")[0];this.config=r,this.cognitoIdentityClient=new tn({fetchRequestHandler:new pt,region:n})}return t.prototype.renewCredentials=function(){if(!this.credentials||!this.credentials.expiration)return!0;var r=new Date(this.credentials.expiration.getTime()-sn);return new Date>r},t}(),U="com.amazon.rum",Oi="com.amazonaws.rum",Re="".concat(U,".http_event"),cn="".concat(U,".xray_trace_event"),Ii="".concat(U,".largest_contentful_paint_event"),Pi="".concat(U,".first_input_delay_event"),Ri="".concat(U,".cumulative_layout_shift_event"),vt="".concat(U,".performance_navigation_event"),Li="".concat(U,".performance_resource_event"),ki="".concat(U,".dom_event"),Ni="".concat(U,".js_error_event"),ji="".concat(U,".page_view_event"),W=function(){function t(r){this.enabled=!0,this.pluginId=t.generatePluginId(r)}return t.generatePluginId=function(r){return"".concat(t.idPrefix,".").concat(r)},t.prototype.load=function(r){var e;this.context=r,(e=this.onload)===null||e===void 0||e.call(this)},t.prototype.getPluginId=function(){return this.pluginId},t.idPrefix=Oi,t}(),Mi=function(){function t(r){this.context=r,this.plugins=new Map}return t.prototype.addPlugin=function(r){var e=r.getPluginId();if(this.hasPlugin(e))throw new Error('Plugin "'.concat(e,'" already defined in the PluginManager'));this.plugins.set(e,r),r.load(this.context)},t.prototype.updatePlugin=function(r,e){var n,o=this.getPlugin(r);(n=o?.update)===null||n===void 0||n.call(o,e)},t.prototype.enable=function(){this.plugins.forEach(function(r){return r.enable()})},t.prototype.disable=function(){this.plugins.forEach(function(r){return r.disable()})},t.prototype.hasPlugin=function(r){return!!this.getPlugin(r)},t.prototype.record=function(r,e){var n=this.getPlugin(r);if(n?.record instanceof Function)n.record(e);else throw new Error("AWS RUM Client record: Invalid plugin ID")},t.prototype.getPlugin=function(r){var e;return(e=this.plugins.get(r))!==null&&e!==void 0?e:this.plugins.get(W.generatePluginId(r))},t}(),Hi=function(){var t=function(r,e){return t=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])},t(r,e)};return function(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(r,e);function n(){this.constructor=r}r.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),X=function(){return X=Object.assign||function(t){for(var r,e=1,n=arguments.length;e<n;e++){r=arguments[e];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},X.apply(this,arguments)},un="dom-event",Ui={interactionId:function(){return""},enableMutationObserver:!1,events:[]},xi=function(t){Hi(r,t);function r(e){var n=t.call(this,un)||this;return n.enabled=!1,n.eventListenerMap=new Map,n.config=X(X({},Ui),e),n}return r.getElementInfo=function(e){var n={name:"UNKNOWN"};return e.target instanceof Node&&(n.name=e.target.nodeName),e.target instanceof Element&&e.target.id&&(n.id=e.target.id),n},r.prototype.enable=function(){var e=this;if(document.readyState!=="complete"){window.addEventListener("load",function(){return e.enable()});return}this.enabled||(this.addListeners(),this.config.enableMutationObserver&&this.observeDOMMutation(),this.enabled=!0)},r.prototype.disable=function(){this.enabled&&(this.removeListeners(),this.observer&&this.observer.disconnect(),this.enabled=!1)},r.prototype.update=function(e){var n=this;e.forEach(function(o){n.addEventHandler(o),n.config.events.push(o)})},r.prototype.onload=function(){this.enable()},r.prototype.removeListeners=function(){var e=this;this.config.events.forEach(function(n){return e.removeEventHandler(n)})},r.prototype.addListeners=function(){var e=this;this.config.events.forEach(function(n){return e.addEventHandler(n)})},r.prototype.getEventListener=function(e){var n=this;return function(o){var i,a=r.getElementInfo(o),c=n.config.interactionId(o),u=X(X(X({version:"1.1.0",event:o.type,element:a.name},a.id?{elementId:a.id}:{}),c?{interactionId:c}:{}),e?{cssLocator:e}:{});!((i=n.context)===null||i===void 0)&&i.record&&n.context.record(ki,u)}},r.prototype.addEventHandler=function(e){var n=e.event,o=this.getEventListener(e.cssLocator),i=[],a=this.eventListenerMap.has(e)?this.eventListenerMap.get(e):[];if(e.cssLocator){var c=document.querySelectorAll(e.cssLocator);c.forEach(function(s){i.push(s)})}else if(e.elementId){var u=document.getElementById(e.elementId);u&&i.push(u)}else e.element&&i.push(e.element);i.forEach(function(s){s.addEventListener(n,o),a.push({element:s,eventListener:o})}),this.eventListenerMap.set(e,a)},r.prototype.removeEventHandler=function(e){var n=this.eventListenerMap.get(e);n&&(n.forEach(function(o){var i=o.element,a=o.eventListener;i.removeEventListener(e.event,a)}),this.eventListenerMap.delete(e))},r.prototype.observeDOMMutation=function(){var e=this;this.observer=new MutationObserver(function(){e.removeListeners(),e.addListeners()}),this.observer.observe(document,{childList:!0,subtree:!0})},r}(W),Di=function(t){var r=typeof t;return(r==="object"||r==="function")&&!!t},qi=function(t){var r={version:"1.0.0",type:"undefined",message:"undefined"};return t.type!==void 0&&(r.type=t.type),t.message!==void 0&&(r.message=t.message),t.filename!==void 0&&(r.filename=t.filename),t.lineno!==void 0&&(r.lineno=t.lineno),t.colno!==void 0&&(r.colno=t.colno),r},Bi=function(t,r){t.type!=="unhandledrejection"&&(t.type=r.toString()),t.message=r.toString()},Fi=function(t,r,e){r.name&&(t.type=r.name),r.message&&(t.message=r.message),r.fileName&&(t.filename=r.fileName),r.lineNumber&&(t.lineno=r.lineNumber),r.columnNumber&&(t.colno=r.columnNumber),e&&r.stack&&(t.stack=r.stack.length>e?r.stack.substring(0,e)+"...":r.stack)},fn=function(t){return t!==Object(t)&&t!==void 0&&t!==null},gt=function(t,r){var e=qi(t),n=t.error;return Di(n)?Fi(e,n,r):fn(n)&&Bi(e,n),e},Vi=function(){var t=function(r,e){return t=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])},t(r,e)};return function(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(r,e);function n(){this.constructor=r}r.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Le=function(){return Le=Object.assign||function(t){for(var r,e=1,n=arguments.length;e<n;e++){r=arguments[e];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},Le.apply(this,arguments)},ln="js-error",Gi={stackTraceLength:1e3,ignore:function(){return!1}},zi=function(t){Vi(r,t);function r(e){var n=t.call(this,ln)||this;return n.eventHandler=function(o){n.config.ignore(o)||n.recordJsErrorEvent(o)},n.promiseRejectEventHandler=function(o){n.config.ignore(o)||n.recordJsErrorEvent({type:o.type,error:o.reason})},n.config=Le(Le({},Gi),e),n}return r.prototype.enable=function(){this.enabled||(this.addEventHandler(),this.enabled=!0)},r.prototype.disable=function(){this.enabled&&(this.removeEventHandler(),this.enabled=!1)},r.prototype.record=function(e){e instanceof ErrorEvent?this.recordJsErrorEvent(e):this.recordJsErrorEvent({type:"error",error:e})},r.prototype.onload=function(){this.addEventHandler()},r.prototype.recordJsErrorEvent=function(e){var n;(n=this.context)===null||n===void 0||n.record(Ni,gt(e,this.config.stackTraceLength))},r.prototype.addEventHandler=function(){window.addEventListener("error",this.eventHandler),window.addEventListener("unhandledrejection",this.promiseRejectEventHandler)},r.prototype.removeEventHandler=function(){window.removeEventListener("error",this.eventHandler),window.removeEventListener("unhandledrejection",this.promiseRejectEventHandler)},r}(W),dn=function(t,r,e,n,o){var i=t+"=";i+=r||"",o!==void 0?i+="; Expires=".concat(o.toUTCString()):n!==void 0&&(i+="; Expires=".concat(Wi(n).toUTCString())),i+="; Domain=".concat(e.domain),i+="; Path=".concat(e.path),i+="; SameSite=".concat(e.sameSite),i+=e.secure?"; Secure":"",document.cookie=i},Wi=function(t){return new Date(new Date().getTime()+t*1e3)},hn=function(t){for(var r=document.cookie.split("; "),e=0,n=r;e<n.length;e++){var o=n[e],i=o.split("=");if(i[0]===t)return i[1]}return""},ke,Xi=new Uint8Array(16);function $i(){if(!ke&&(ke=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!ke))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ke(Xi)}var Ki=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Yi(t){return typeof t=="string"&&Ki.test(t)}var Ji=Yi,C=[];for(let t=0;t<256;++t)C.push((t+256).toString(16).slice(1));function pn(t,r=0){return(C[t[r+0]]+C[t[r+1]]+C[t[r+2]]+C[t[r+3]]+"-"+C[t[r+4]]+C[t[r+5]]+"-"+C[t[r+6]]+C[t[r+7]]+"-"+C[t[r+8]]+C[t[r+9]]+"-"+C[t[r+10]]+C[t[r+11]]+C[t[r+12]]+C[t[r+13]]+C[t[r+14]]+C[t[r+15]]).toLowerCase()}function Zi(t){if(!Ji(t))throw TypeError("Invalid UUID");let r;const e=new Uint8Array(16);return e[0]=(r=parseInt(t.slice(0,8),16))>>>24,e[1]=r>>>16&255,e[2]=r>>>8&255,e[3]=r&255,e[4]=(r=parseInt(t.slice(9,13),16))>>>8,e[5]=r&255,e[6]=(r=parseInt(t.slice(14,18),16))>>>8,e[7]=r&255,e[8]=(r=parseInt(t.slice(19,23),16))>>>8,e[9]=r&255,e[10]=(r=parseInt(t.slice(24,36),16))/1099511627776&255,e[11]=r/4294967296&255,e[12]=r>>>24&255,e[13]=r>>>16&255,e[14]=r>>>8&255,e[15]=r&255,e}var Qi=Zi;function eo(t){t=unescape(encodeURIComponent(t));const r=[];for(let e=0;e<t.length;++e)r.push(t.charCodeAt(e));return r}var to="6ba7b810-9dad-11d1-80b4-00c04fd430c8",no="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function vn(t,r,e){function n(o,i,a,c){var u;if(typeof o=="string"&&(o=eo(o)),typeof i=="string"&&(i=Qi(i)),((u=i)===null||u===void 0?void 0:u.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let s=new Uint8Array(16+o.length);if(s.set(i),s.set(o,i.length),s=e(s),s[6]=s[6]&15|r,s[8]=s[8]&63|128,a){c=c||0;for(let f=0;f<16;++f)a[c+f]=s[f];return a}return pn(s)}try{n.name=t}catch{}return n.DNS=to,n.URL=no,n}function ro(t){if(typeof t=="string"){const r=unescape(encodeURIComponent(t));t=new Uint8Array(r.length);for(let e=0;e<r.length;++e)t[e]=r.charCodeAt(e)}return io(oo(ao(t),t.length*8))}function io(t){const r=[],e=t.length*32,n="0123456789abcdef";for(let o=0;o<e;o+=8){const i=t[o>>5]>>>o%32&255,a=parseInt(n.charAt(i>>>4&15)+n.charAt(i&15),16);r.push(a)}return r}function gn(t){return(t+64>>>9<<4)+14+1}function oo(t,r){t[r>>5]|=128<<r%32,t[gn(r)-1]=r;let e=1732584193,n=-271733879,o=-1732584194,i=271733878;for(let a=0;a<t.length;a+=16){const c=e,u=n,s=o,f=i;e=O(e,n,o,i,t[a],7,-680876936),i=O(i,e,n,o,t[a+1],12,-389564586),o=O(o,i,e,n,t[a+2],17,606105819),n=O(n,o,i,e,t[a+3],22,-1044525330),e=O(e,n,o,i,t[a+4],7,-176418897),i=O(i,e,n,o,t[a+5],12,1200080426),o=O(o,i,e,n,t[a+6],17,-1473231341),n=O(n,o,i,e,t[a+7],22,-45705983),e=O(e,n,o,i,t[a+8],7,1770035416),i=O(i,e,n,o,t[a+9],12,-1958414417),o=O(o,i,e,n,t[a+10],17,-42063),n=O(n,o,i,e,t[a+11],22,-1990404162),e=O(e,n,o,i,t[a+12],7,1804603682),i=O(i,e,n,o,t[a+13],12,-40341101),o=O(o,i,e,n,t[a+14],17,-1502002290),n=O(n,o,i,e,t[a+15],22,1236535329),e=I(e,n,o,i,t[a+1],5,-165796510),i=I(i,e,n,o,t[a+6],9,-1069501632),o=I(o,i,e,n,t[a+11],14,643717713),n=I(n,o,i,e,t[a],20,-373897302),e=I(e,n,o,i,t[a+5],5,-701558691),i=I(i,e,n,o,t[a+10],9,38016083),o=I(o,i,e,n,t[a+15],14,-660478335),n=I(n,o,i,e,t[a+4],20,-405537848),e=I(e,n,o,i,t[a+9],5,568446438),i=I(i,e,n,o,t[a+14],9,-1019803690),o=I(o,i,e,n,t[a+3],14,-187363961),n=I(n,o,i,e,t[a+8],20,1163531501),e=I(e,n,o,i,t[a+13],5,-1444681467),i=I(i,e,n,o,t[a+2],9,-51403784),o=I(o,i,e,n,t[a+7],14,1735328473),n=I(n,o,i,e,t[a+12],20,-1926607734),e=P(e,n,o,i,t[a+5],4,-378558),i=P(i,e,n,o,t[a+8],11,-2022574463),o=P(o,i,e,n,t[a+11],16,1839030562),n=P(n,o,i,e,t[a+14],23,-35309556),e=P(e,n,o,i,t[a+1],4,-1530992060),i=P(i,e,n,o,t[a+4],11,1272893353),o=P(o,i,e,n,t[a+7],16,-155497632),n=P(n,o,i,e,t[a+10],23,-1094730640),e=P(e,n,o,i,t[a+13],4,681279174),i=P(i,e,n,o,t[a],11,-358537222),o=P(o,i,e,n,t[a+3],16,-722521979),n=P(n,o,i,e,t[a+6],23,76029189),e=P(e,n,o,i,t[a+9],4,-640364487),i=P(i,e,n,o,t[a+12],11,-421815835),o=P(o,i,e,n,t[a+15],16,530742520),n=P(n,o,i,e,t[a+2],23,-995338651),e=R(e,n,o,i,t[a],6,-198630844),i=R(i,e,n,o,t[a+7],10,1126891415),o=R(o,i,e,n,t[a+14],15,-1416354905),n=R(n,o,i,e,t[a+5],21,-57434055),e=R(e,n,o,i,t[a+12],6,1700485571),i=R(i,e,n,o,t[a+3],10,-1894986606),o=R(o,i,e,n,t[a+10],15,-1051523),n=R(n,o,i,e,t[a+1],21,-2054922799),e=R(e,n,o,i,t[a+8],6,1873313359),i=R(i,e,n,o,t[a+15],10,-30611744),o=R(o,i,e,n,t[a+6],15,-1560198380),n=R(n,o,i,e,t[a+13],21,1309151649),e=R(e,n,o,i,t[a+4],6,-145523070),i=R(i,e,n,o,t[a+11],10,-1120210379),o=R(o,i,e,n,t[a+2],15,718787259),n=R(n,o,i,e,t[a+9],21,-343485551),e=q(e,c),n=q(n,u),o=q(o,s),i=q(i,f)}return[e,n,o,i]}function ao(t){if(t.length===0)return[];const r=t.length*8,e=new Uint32Array(gn(r));for(let n=0;n<r;n+=8)e[n>>5]|=(t[n/8]&255)<<n%32;return e}function q(t,r){const e=(t&65535)+(r&65535);return(t>>16)+(r>>16)+(e>>16)<<16|e&65535}function so(t,r){return t<<r|t>>>32-r}function Ne(t,r,e,n,o,i){return q(so(q(q(r,t),q(n,i)),o),e)}function O(t,r,e,n,o,i,a){return Ne(r&e|~r&n,t,r,o,i,a)}function I(t,r,e,n,o,i,a){return Ne(r&n|e&~n,t,r,o,i,a)}function P(t,r,e,n,o,i,a){return Ne(r^e^n,t,r,o,i,a)}function R(t,r,e,n,o,i,a){return Ne(e^(r|~n),t,r,o,i,a)}var co=ro;vn("v3",48,co);var uo=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),mn={randomUUID:uo};function fo(t,r,e){if(mn.randomUUID&&!r&&!t)return mn.randomUUID();t=t||{};const n=t.random||(t.rng||$i)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,r){e=e||0;for(let o=0;o<16;++o)r[e+o]=n[o];return r}return pn(n)}var ue=fo;function lo(t,r,e,n){switch(t){case 0:return r&e^~r&n;case 1:return r^e^n;case 2:return r&e^r&n^e&n;case 3:return r^e^n}}function mt(t,r){return t<<r|t>>>32-r}function ho(t){const r=[1518500249,1859775393,2400959708,3395469782],e=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof t=="string"){const a=unescape(encodeURIComponent(t));t=[];for(let c=0;c<a.length;++c)t.push(a.charCodeAt(c))}else Array.isArray(t)||(t=Array.prototype.slice.call(t));t.push(128);const n=t.length/4+2,o=Math.ceil(n/16),i=new Array(o);for(let a=0;a<o;++a){const c=new Uint32Array(16);for(let u=0;u<16;++u)c[u]=t[a*64+u*4]<<24|t[a*64+u*4+1]<<16|t[a*64+u*4+2]<<8|t[a*64+u*4+3];i[a]=c}i[o-1][14]=(t.length-1)*8/Math.pow(2,32),i[o-1][14]=Math.floor(i[o-1][14]),i[o-1][15]=(t.length-1)*8&4294967295;for(let a=0;a<o;++a){const c=new Uint32Array(80);for(let h=0;h<16;++h)c[h]=i[a][h];for(let h=16;h<80;++h)c[h]=mt(c[h-3]^c[h-8]^c[h-14]^c[h-16],1);let u=e[0],s=e[1],f=e[2],d=e[3],l=e[4];for(let h=0;h<80;++h){const p=Math.floor(h/20),v=mt(u,5)+lo(p,s,f,d)+l+r[p]+c[h]>>>0;l=d,d=f,f=mt(s,30)>>>0,s=u,u=v}e[0]=e[0]+u>>>0,e[1]=e[1]+s>>>0,e[2]=e[2]+f>>>0,e[3]=e[3]+d>>>0,e[4]=e[4]+l>>>0}return[e[0]>>24&255,e[0]>>16&255,e[0]>>8&255,e[0]&255,e[1]>>24&255,e[1]>>16&255,e[1]>>8&255,e[1]&255,e[2]>>24&255,e[2]>>16&255,e[2]>>8&255,e[2]&255,e[3]>>24&255,e[3]>>16&255,e[3]>>8&255,e[3]&255,e[4]>>24&255,e[4]>>16&255,e[4]>>8&255,e[4]&255]}var po=ho;vn("v5",80,po);var vo=st(Ar()),je=function(){return je=Object.assign||function(t){for(var r,e=1,n=arguments.length;e<n;e++){r=arguments[e];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},je.apply(this,arguments)},Me="00000000-0000-0000-0000-000000000000",He="unknown",go="desktop",mo="web",yo="com.amazon.rum.session_start_event",wo=function(){function t(r,e,n,o){this.appMonitorDetails=r,this.config=e,this.record=n,this.pageManager=o,this.session={sessionId:Me,record:this.sample(),eventCount:0},this.initializeUser(),this.collectAttributes(),this.addSessionAttributes(this.config.sessionAttributes),this.getSessionFromCookie()}return t.prototype.getSession=function(){return this.session.sessionId===Me?this.createSession():this.session.sessionId!==Me&&new Date>this.sessionExpiry&&this.createSession(),this.session},t.prototype.getAttributes=function(){return this.attributes},t.prototype.addSessionAttributes=function(r){this.attributes=je(je({},r),this.attributes)},t.prototype.getUserId=function(){return this.useCookies()?this.userId:Me},t.prototype.incrementSessionEventCount=function(){this.session.eventCount++,this.renewSession()},t.prototype.initializeUser=function(){var r="";this.userExpiry=new Date,this.userExpiry.setDate(this.userExpiry.getDate()+this.config.userIdRetentionDays),this.config.userIdRetentionDays<=0?this.userId="00000000-0000-0000-0000-000000000000":this.useCookies()?(r=this.getUserIdCookie(),this.userId=r||ue(),this.createOrRenewUserCookie(r,this.userExpiry)):this.userId=ue()},t.prototype.createOrRenewSessionCookie=function(r,e){btoa&&dn(this.sessionCookieName(),btoa(JSON.stringify(r)),this.config.cookieAttributes,void 0,e)},t.prototype.createOrRenewUserCookie=function(r,e){dn(an,r,this.config.cookieAttributes,void 0,e)},t.prototype.getUserIdCookie=function(){return hn(an)},t.prototype.getSessionFromCookie=function(){if(this.useCookies()){var r=hn(this.sessionCookieName());if(r&&atob)try{this.session=JSON.parse(atob(r)),this.pageManager.resumeSession(this.session.page)}catch{}}},t.prototype.storeSessionAsCookie=function(){this.useCookies()&&this.config.userIdRetentionDays>0&&this.createOrRenewUserCookie(this.userId,this.userExpiry),this.useCookies()&&this.createOrRenewSessionCookie(this.session,this.sessionExpiry)},t.prototype.createSession=function(){this.session={sessionId:ue(),record:this.sample(),eventCount:0},this.session.page=this.pageManager.getPage(),this.sessionExpiry=new Date(new Date().getTime()+this.config.sessionLengthSeconds*1e3),this.storeSessionAsCookie(),this.record(this.session,yo,{version:"1.0.0"})},t.prototype.renewSession=function(){this.sessionExpiry=new Date(new Date().getTime()+this.config.sessionLengthSeconds*1e3),this.session.page=this.pageManager.getPage(),this.storeSessionAsCookie()},t.prototype.collectAttributes=function(){var r=new vo.UAParser(navigator.userAgent).getResult();this.attributes={browserLanguage:navigator.language,browserName:r.browser.name?r.browser.name:He,browserVersion:r.browser.version?r.browser.version:He,osName:r.os.name?r.os.name:He,osVersion:r.os.version?r.os.version:He,deviceType:r.device.type?r.device.type:go,platformType:mo,domain:window.location.hostname}},t.prototype.useCookies=function(){return navigator.cookieEnabled&&this.config.allowCookies},t.prototype.sample=function(){return Math.random()<this.config.sessionSampleRate},t.prototype.sessionCookieName=function(){return this.config.cookieAttributes.unique?"".concat(on,"_").concat(this.appMonitorDetails.id):on},t}(),Ue=st(Or()),bo=function(){var t=function(r,e){return t=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])},t(r,e)};return function(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(r,e);function n(){this.constructor=r}r.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),xe=function(t){bo(r,t);function r(){var e=t!==null&&t.apply(this,arguments)||this;return e.enable=e.patch.bind(e,!0),e.disable=e.patch.bind(e,!1),e.enabled=!1,e}return r.prototype.patchAll=function(){for(var e=Ue.wrap.bind(Ue),n=0,o=this.patches;n<o.length;n++){var i=o[n];e(i.nodule,i.name,i.wrapper())}},r.prototype.unpatchAll=function(){for(var e=Ue.unwrap.bind(Ue),n=0,o=this.patches;n<o.length;n++){var i=o[n];e(i.nodule,i.name)}},r.prototype.patch=function(e){e===void 0&&(e=!0),this.enabled!==e&&(this.enabled=e,e?this.patchAll():this.unpatchAll())},r}(W),_o=function(){var t=function(r,e){return t=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])},t(r,e)};return function(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(r,e);function n(){this.constructor=r}r.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Eo=function(t){_o(r,t);function r(e,n,o){var i=t.call(this,"virtual-page-load-timer")||this;return i.sendWrapper=function(){var a=i;return function(c){return function(){return a.recordXhr(this),this.addEventListener("loadend",a.endTracking),c.apply(this,arguments)}}},i.endTracking=function(a){var c=Date.now(),u=a.target;u.removeEventListener("loadend",i.endTracking),i.removeXhr(u,c)},i.fetch=function(a,c,u){return a.apply(c,u).catch(function(s){throw s}).finally(i.decrementFetchCounter)},i.fetchWrapper=function(){var a=i;return function(c){return function(u,s){return a.fetchCounter+=1,a.fetch(c,this,arguments)}}},i.decrementFetchCounter=function(){i.isPageLoaded||(i.latestEndTime=Date.now()),i.fetchCounter-=1},i.checkLoadStatus=function(){i.ongoingRequests.size===0&&i.fetchCounter===0&&(clearInterval(i.periodicCheckerId),clearTimeout(i.timeoutCheckerId),i.domMutationObserver.disconnect(),i.recordRouteChangeNavigationEvent(i.pageManager.getPage()),i.periodicCheckerId=void 0,i.timeoutCheckerId=void 0,i.isPageLoaded=!0)},i.declareTimeout=function(){clearInterval(i.periodicCheckerId),i.periodicCheckerId=void 0,i.timeoutCheckerId=void 0,i.domMutationObserver.disconnect(),i.isPageLoaded=!0},i.resetInterval=function(){i.latestEndTime=Date.now(),clearInterval(i.periodicCheckerId),i.periodicCheckerId=setInterval(i.checkLoadStatus,i.config.routeChangeComplete)},i.moveItemsFromBuffer=function(a){i.ongoingRequests.add(a)},i.updateLatestInteractionTime=function(a){i.latestInteractionTime=Date.now()},i.periodicCheckerId=void 0,i.timeoutCheckerId=void 0,i.domMutationObserver=new MutationObserver(i.resetInterval),i.ongoingRequests=new Set,i.requestBuffer=new Set,i.fetchCounter=0,i.isPageLoaded=!0,i.latestEndTime=0,i.latestInteractionTime=0,i.config=n,i.pageManager=e,i.record=o,i.enable(),document.addEventListener("mousedown",i.updateLatestInteractionTime),document.addEventListener("keydown",i.updateLatestInteractionTime),i}return Object.defineProperty(r.prototype,"patches",{get:function(){return[{nodule:XMLHttpRequest.prototype,name:"send",wrapper:this.sendWrapper},{nodule:window,name:"fetch",wrapper:this.fetchWrapper}]},enumerable:!1,configurable:!0}),r.prototype.startTiming=function(){this.latestEndTime=Date.now(),this.periodicCheckerId&&clearInterval(this.periodicCheckerId),this.timeoutCheckerId&&clearTimeout(this.timeoutCheckerId),this.domMutationObserver.disconnect(),this.periodicCheckerId=setInterval(this.checkLoadStatus,this.config.routeChangeComplete),this.timeoutCheckerId=setTimeout(this.declareTimeout,this.config.routeChangeTimeout),this.domMutationObserver.observe(document,{subtree:!0,childList:!0,attributes:!1,characterData:!1}),this.isPageLoaded=!1,this.requestBuffer.forEach(this.moveItemsFromBuffer),this.requestBuffer.clear()},r.prototype.recordXhr=function(e){var n=this.pageManager.getPage();n&&this.isPageLoaded===!1?this.ongoingRequests.add(e):this.requestBuffer.add(e)},r.prototype.removeXhr=function(e,n){var o=this.pageManager.getPage();o&&this.ongoingRequests.has(e)?(this.ongoingRequests.delete(e),this.latestEndTime=n):this.requestBuffer.has(e)&&this.requestBuffer.delete(e)},r.prototype.recordRouteChangeNavigationEvent=function(e){var n={version:"1.0.0",initiatorType:"route_change",navigationType:"navigate",startTime:e.start,duration:this.latestEndTime-e.start};this.record&&this.record(vt,n)},r}(xe),De=function(){return De=Object.assign||function(t){for(var r,e=1,n=arguments.length;e<n;e++){r=arguments[e];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},De.apply(this,arguments)},So=function(){function t(r,e){this.TIMEOUT=1e3,this.config=r,this.record=e,this.page=void 0,this.resumed=!1,this.recordInteraction=!1,this.virtualPageLoadTimer=new Eo(this,r,e)}return t.prototype.getPage=function(){return this.page},t.prototype.getAttributes=function(){return this.attributes},t.prototype.resumeSession=function(r){this.recordInteraction=!0,r&&(this.page=r,this.resumed=!0)},t.prototype.recordPageView=function(r){var e;if(typeof r=="string"?e=r:e=r.pageId,this.useCookies()&&(this.recordInteraction=!0),!this.page)this.createLandingPage(e);else if(this.page.pageId!==e)this.createNextPage(this.page,e);else if(this.resumed){this.collectAttributes(this.page,typeof r=="object"?r:void 0);return}else return;this.collectAttributes(this.page,typeof r=="object"?r:void 0),this.recordPageViewEvent(this.page)},t.prototype.createNextPage=function(r,e){var n=Date.now(),o=this.virtualPageLoadTimer.latestInteractionTime;!this.resumed&&n-o<=this.TIMEOUT&&(n=o,this.virtualPageLoadTimer.startTiming()),this.timeOnParentPage=n-r.start,this.resumed=!1,this.page={pageId:e,parentPageId:r.pageId,interaction:r.interaction+1,referrer:document.referrer,referrerDomain:this.getDomainFromReferrer(),start:n}},t.prototype.createLandingPage=function(r){this.page={pageId:r,interaction:0,referrer:document.referrer,referrerDomain:this.getDomainFromReferrer(),start:Date.now()}},t.prototype.collectAttributes=function(r,e){this.attributes={title:document.title,pageId:r.pageId},this.recordInteraction&&(this.attributes.interaction=r.interaction,r.parentPageId!==void 0&&(this.attributes.parentPageId=r.parentPageId)),e?.pageTags&&(this.attributes.pageTags=e.pageTags),e?.pageAttributes&&(this.attributes=De(De({},e.pageAttributes),this.attributes))},t.prototype.createPageViewEvent=function(r){var e={version:"1.0.0",pageId:r.pageId};return this.recordInteraction&&(e.interaction=r.interaction,e.pageInteractionId=r.pageId+"-"+r.interaction,r.parentPageId!==void 0&&(e.parentPageInteractionId=r.parentPageId+"-"+(r.interaction-1),e.timeOnParentPage=this.timeOnParentPage),e.referrer=document.referrer,e.referrerDomain=this.getDomainFromReferrer()),e},t.prototype.recordPageViewEvent=function(r){this.record(ji,this.createPageViewEvent(r))},t.prototype.useCookies=function(){return navigator.cookieEnabled&&this.config.allowCookies},t.prototype.getDomainFromReferrer=function(){try{return new URL(document.referrer).hostname}catch{return document.referrer==="localhost"?document.referrer:""}},t}(),fe=function(){return fe=Object.assign||function(t){for(var r,e=1,n=arguments.length;e<n;e++){r=arguments[e];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},fe.apply(this,arguments)},To="1.13.7",Co=function(){function t(r,e){var n=this;this.events=[],this.recordPageView=function(o){n.isCurrentUrlAllowed()&&n.pageManager.recordPageView(o)},this.recordEvent=function(o,i){if(n.enabled&&n.isCurrentUrlAllowed()){var a=n.sessionManager.getSession();n.sessionManager.incrementSessionEventCount(),n.canRecord(a)&&n.addRecordToCache(o,i)}},this.getSession=function(){if(n.isCurrentUrlAllowed())return n.sessionManager.getSession()},this.recordSessionInitEvent=function(o,i,a){n.enabled&&(n.sessionManager.incrementSessionEventCount(),n.canRecord(o)&&n.addRecordToCache(i,a))},this.canRecord=function(o){return o.record&&(o.eventCount<=n.config.sessionEventLimit||n.config.sessionEventLimit<=0)},this.addRecordToCache=function(o,i){if(n.enabled){n.events.length===n.config.eventCacheSize&&n.events.shift();var a=fe(fe(fe({},n.sessionManager.getAttributes()),n.pageManager.getAttributes()),{version:"1.0.0","aws:client":n.installationMethod,"aws:clientVersion":To});n.events.push({details:JSON.stringify(i),id:ue(),metadata:JSON.stringify(a),timestamp:new Date,type:o})}},this.appMonitorDetails=r,this.config=e,this.enabled=!0,this.pageManager=new So(e,this.recordEvent),this.sessionManager=new wo(r,e,this.recordSessionInitEvent,this.pageManager),this.installationMethod=e.client}return t.prototype.enable=function(){this.enabled=!0},t.prototype.disable=function(){this.enabled=!1},t.prototype.hasEvents=function(){return this.events.length!==0},t.prototype.getEventBatch=function(){var r=[];return this.events.length===0||(this.events.length<=this.config.batchLimit?(r=this.events,this.events=[]):r=this.events.splice(0,this.config.batchLimit)),r},t.prototype.getAppMonitorDetails=function(){return this.appMonitorDetails},t.prototype.getUserDetails=function(){return{userId:this.sessionManager.getUserId(),sessionId:this.sessionManager.getSession().sessionId}},t.prototype.addSessionAttributes=function(r){this.sessionManager.addSessionAttributes(r)},t.prototype.isCurrentUrlAllowed=function(){var r=document.location.toString(),e=this.config.pagesToExclude.some(function(o){return o.test(r)}),n=this.config.pagesToInclude.some(function(o){return o.test(r)});return n&&!e},t}(),yn={};for(let t=0;t<256;t++){let r=t.toString(16).toLowerCase();r.length===1&&(r=`0${r}`),yn[t]=r}function $(t){let r="";for(let e=0;e<t.byteLength;e++)r+=yn[t[e]];return r}var wn=t=>{if(typeof t=="function")return t;const r=Promise.resolve(t);return()=>r},Ao=t=>new TextEncoder().encode(t),le=t=>typeof t=="string"?Ao(t):ArrayBuffer.isView(t)?new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(t),Oo="X-Amz-Algorithm",Io="X-Amz-Credential",bn="X-Amz-Date",Po="X-Amz-SignedHeaders",Ro="X-Amz-Expires",_n="X-Amz-Signature",En="X-Amz-Security-Token",Sn="authorization",Tn=bn.toLowerCase(),Lo="date",ko=[Sn,Tn,Lo],No=_n.toLowerCase(),yt="x-amz-content-sha256",jo=En.toLowerCase(),Mo={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},Ho=/^proxy-/,Uo=/^sec-/,wt="AWS4-HMAC-SHA256",xo="AWS4-HMAC-SHA256-PAYLOAD",Do="UNSIGNED-PAYLOAD",qo=50,Cn="aws4_request",Bo=60*60*24*7,qe={},bt=[],_t=(t,r,e)=>`${t}/${r}/${e}/${Cn}`,Fo=async(t,r,e,n,o)=>{const i=await An(t,r.secretAccessKey,r.accessKeyId),a=`${e}:${n}:${o}:${$(i)}:${r.sessionToken}`;if(a in qe)return qe[a];for(bt.push(a);bt.length>qo;)delete qe[bt.shift()];let c=`AWS4${r.secretAccessKey}`;for(const u of[e,n,o,Cn])c=await An(t,c,u);return qe[a]=c},An=(t,r,e)=>{const n=new t(r);return n.update(le(e)),n.digest()},On=({headers:t},r,e)=>{const n={};for(const o of Object.keys(t).sort()){if(t[o]==null)continue;const i=o.toLowerCase();(i in Mo||r?.has(i)||Ho.test(i)||Uo.test(i))&&(!e||e&&!e.has(i))||(n[i]=t[o].trim().replace(/\s+/g," "))}return n},Vo=({query:t={}})=>{const r=[],e={};for(const n of Object.keys(t).sort()){if(n.toLowerCase()===No)continue;r.push(n);const o=t[n];typeof o=="string"?e[n]=`${H(n)}=${H(o)}`:Array.isArray(o)&&(e[n]=o.slice(0).sort().reduce((i,a)=>i.concat([`${H(n)}=${H(a)}`]),[]).join("&"))}return r.map(n=>e[n]).filter(n=>n).join("&")},Go=t=>typeof ArrayBuffer=="function"&&t instanceof ArrayBuffer||Object.prototype.toString.call(t)==="[object ArrayBuffer]",Et=async({headers:t,body:r},e)=>{for(const n of Object.keys(t))if(n.toLowerCase()===yt)return t[n];if(r==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if(typeof r=="string"||ArrayBuffer.isView(r)||Go(r)){const n=new e;return n.update(le(r)),$(await n.digest())}return Do},zo=(t,r)=>{t=t.toLowerCase();for(const e of Object.keys(r))if(t===e.toLowerCase())return!0;return!1},In=({headers:t,query:r,...e})=>({...e,headers:{...t},query:r?Wo(r):void 0}),Wo=t=>Object.keys(t).reduce((r,e)=>{const n=t[e];return{...r,[e]:Array.isArray(n)?[...n]:n}},{}),Xo=(t,r={})=>{const{headers:e,query:n={}}=typeof t.clone=="function"?t.clone():In(t);for(const o of Object.keys(e)){const i=o.toLowerCase();i.slice(0,6)==="x-amz-"&&!r.unhoistableHeaders?.has(i)&&(n[o]=e[o],delete e[o])}return{...t,headers:e,query:n}},Pn=t=>{t=typeof t.clone=="function"?t.clone():In(t);for(const r of Object.keys(t.headers))ko.indexOf(r.toLowerCase())>-1&&delete t.headers[r];return t},$o=t=>Ko(t).toISOString().replace(/\.\d{3}Z$/,"Z"),Ko=t=>typeof t=="number"?new Date(t*1e3):typeof t=="string"?Number(t)?new Date(Number(t)*1e3):new Date(t):t,Yo=class{constructor({applyChecksum:t,credentials:r,region:e,service:n,sha256:o,uriEscapePath:i=!0}){this.service=n,this.sha256=o,this.uriEscapePath=i,this.applyChecksum=typeof t=="boolean"?t:!0,this.regionProvider=wn(e),this.credentialProvider=wn(r)}async presign(t,r={}){const{signingDate:e=new Date,expiresIn:n=3600,unsignableHeaders:o,unhoistableHeaders:i,signableHeaders:a,signingRegion:c,signingService:u}=r,s=await this.credentialProvider();this.validateResolvedCredentials(s);const f=c??await this.regionProvider(),{longDate:d,shortDate:l}=Be(e);if(n>Bo)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");const h=_t(l,f,u??this.service),p=Xo(Pn(t),{unhoistableHeaders:i});s.sessionToken&&(p.query[En]=s.sessionToken),p.query[Oo]=wt,p.query[Io]=`${s.accessKeyId}/${h}`,p.query[bn]=d,p.query[Ro]=n.toString(10);const v=On(p,o,a);return p.query[Po]=Rn(v),p.query[_n]=await this.getSignature(d,h,this.getSigningKey(s,f,l,u),this.createCanonicalRequest(p,v,await Et(t,this.sha256))),p}async sign(t,r){return typeof t=="string"?this.signString(t,r):t.headers&&t.payload?this.signEvent(t,r):this.signRequest(t,r)}async signEvent({headers:t,payload:r},{signingDate:e=new Date,priorSignature:n,signingRegion:o,signingService:i}){const a=o??await this.regionProvider(),{shortDate:c,longDate:u}=Be(e),s=_t(c,a,i??this.service),f=await Et({headers:{},body:r},this.sha256),d=new this.sha256;d.update(t);const l=$(await d.digest()),h=[xo,u,s,n,l,f].join(`
2
- `);return this.signString(h,{signingDate:e,signingRegion:a,signingService:i})}async signString(t,{signingDate:r=new Date,signingRegion:e,signingService:n}={}){const o=await this.credentialProvider();this.validateResolvedCredentials(o);const i=e??await this.regionProvider(),{shortDate:a}=Be(r),c=new this.sha256(await this.getSigningKey(o,i,a,n));return c.update(le(t)),$(await c.digest())}async signRequest(t,{signingDate:r=new Date,signableHeaders:e,unsignableHeaders:n,signingRegion:o,signingService:i}={}){const a=await this.credentialProvider();this.validateResolvedCredentials(a);const c=o??await this.regionProvider(),u=Pn(t),{longDate:s,shortDate:f}=Be(r),d=_t(f,c,i??this.service);u.headers[Tn]=s,a.sessionToken&&(u.headers[jo]=a.sessionToken);const l=await Et(u,this.sha256);!zo(yt,u.headers)&&this.applyChecksum&&(u.headers[yt]=l);const h=On(u,n,e),p=await this.getSignature(s,d,this.getSigningKey(a,c,f,i),this.createCanonicalRequest(u,h,l));return u.headers[Sn]=`${wt} Credential=${a.accessKeyId}/${d}, SignedHeaders=${Rn(h)}, Signature=${p}`,u}createCanonicalRequest(t,r,e){const n=Object.keys(r).sort();return`${t.method}
1
+ (function(){"use strict";var br=Object.create,be=Object.defineProperty,_r=Object.getOwnPropertyDescriptor,at=Object.getOwnPropertyNames,Er=Object.getPrototypeOf,Sr=Object.prototype.hasOwnProperty,Tr=(t,r)=>function(){return t&&(r=(0,t[at(t)[0]])(t=0)),r},k=(t,r)=>function(){return r||(0,t[at(t)[0]])((r={exports:{}}).exports,r),r.exports},Cr=(t,r)=>{for(var e in r)be(t,e,{get:r[e],enumerable:!0})},Xt=(t,r,e,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of at(r))!Sr.call(t,o)&&o!==e&&be(t,o,{get:()=>r[o],enumerable:!(n=_r(r,o))||n.enumerable});return t},st=(t,r,e)=>(e=t!=null?br(Er(t)):{},Xt(r||!t||!t.__esModule?be(e,"default",{value:t,enumerable:!0}):e,t)),$t=t=>Xt(be({},"__esModule",{value:!0}),t),Ar=k({"node_modules/ua-parser-js/src/ua-parser.js"(t,r){(function(e,n){var o="0.7.35",i="",a="?",c="function",u="undefined",s="object",f="string",p="major",l="model",d="name",h="type",v="vendor",g="version",C="architecture",j="console",w="mobile",b="tablet",L="smarttv",G="wearable",ge="embedded",xt=350,Ze="Amazon",me="Apple",cr="ASUS",ur="BlackBerry",ie="Browser",Qe="Chrome",Ya="Edge",et="Firefox",tt="Google",fr="Huawei",Dt="LG",Bt="Microsoft",lr="Motorola",nt="Opera",qt="Samsung",dr="Sharp",rt="Sony",Ft="Xiaomi",Vt="Zebra",hr="Facebook",pr="Chromium OS",vr="Mac OS",Ja=function(_,S){var y={};for(var T in _)S[T]&&S[T].length%2===0?y[T]=S[T].concat(_[T]):y[T]=_[T];return y},it=function(_){for(var S={},y=0;y<_.length;y++)S[_[y].toUpperCase()]=_[y];return S},gr=function(_,S){return typeof _===f?we(S).indexOf(we(_))!==-1:!1},we=function(_){return _.toLowerCase()},Za=function(_){return typeof _===f?_.replace(/[^\d\.]/g,i).split(".")[0]:n},Gt=function(_,S){if(typeof _===f)return _=_.replace(/^\s\s*/,i),typeof S===u?_:_.substring(0,xt)},ye=function(_,S){for(var y=0,T,z,x,E,m,D;y<S.length&&!m;){var Wt=S[y],yr=S[y+1];for(T=z=0;T<Wt.length&&!m&&Wt[T];)if(m=Wt[T++].exec(_),m)for(x=0;x<yr.length;x++)D=m[++z],E=yr[x],typeof E===s&&E.length>0?E.length===2?typeof E[1]==c?this[E[0]]=E[1].call(this,D):this[E[0]]=E[1]:E.length===3?typeof E[1]===c&&!(E[1].exec&&E[1].test)?this[E[0]]=D?E[1].call(this,D,E[2]):n:this[E[0]]=D?D.replace(E[1],E[2]):n:E.length===4&&(this[E[0]]=D?E[3].call(this,D.replace(E[1],E[2])):n):this[E]=D||n;y+=2}},zt=function(_,S){for(var y in S)if(typeof S[y]===s&&S[y].length>0){for(var T=0;T<S[y].length;T++)if(gr(S[y][T],_))return y===a?n:y}else if(gr(S[y],_))return y===a?n:y;return _},Qa={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},mr={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"},wr={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[g,[d,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[g,[d,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[d,g],[/opios[\/ ]+([\w\.]+)/i],[g,[d,nt+" Mini"]],[/\bopr\/([\w\.]+)/i],[g,[d,nt]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[d,g],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[g,[d,"UC"+ie]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[g,[d,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[g,[d,"WeChat"]],[/konqueror\/([\w\.]+)/i],[g,[d,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[g,[d,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[g,[d,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[d,/(.+)/,"$1 Secure "+ie],g],[/\bfocus\/([\w\.]+)/i],[g,[d,et+" Focus"]],[/\bopt\/([\w\.]+)/i],[g,[d,nt+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[g,[d,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[g,[d,"Dolphin"]],[/coast\/([\w\.]+)/i],[g,[d,nt+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[g,[d,"MIUI "+ie]],[/fxios\/([-\w\.]+)/i],[g,[d,et]],[/\bqihu|(qi?ho?o?|360)browser/i],[[d,"360 "+ie]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[d,/(.+)/,"$1 "+ie],g],[/(comodo_dragon)\/([\w\.]+)/i],[[d,/_/g," "],g],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[d,g],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[d],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[d,hr],g],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[d,g],[/\bgsa\/([\w\.]+) .*safari\//i],[g,[d,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[g,[d,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[g,[d,Qe+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[d,Qe+" WebView"],g],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[g,[d,"Android "+ie]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[d,g],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[g,[d,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[g,d],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[d,[g,zt,Qa]],[/(webkit|khtml)\/([\w\.]+)/i],[d,g],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[d,"Netscape"],g],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[g,[d,et+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\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|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[d,g],[/(cobalt)\/([\w\.]+)/i],[d,[g,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[C,"amd64"]],[/(ia32(?=;))/i],[[C,we]],[/((?:i[346]|x)86)[;\)]/i],[[C,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[C,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[C,"armhf"]],[/windows (ce|mobile); ppc;/i],[[C,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[C,/ower/,i,we]],[/(sun4\w)[;\)]/i],[[C,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[C,we]]],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],[l,[v,qt],[h,b]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[l,[v,qt],[h,w]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[l,[v,me],[h,w]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[l,[v,me],[h,b]],[/(macintosh);/i],[l,[v,me]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[l,[v,dr],[h,w]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[l,[v,fr],[h,b]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[l,[v,fr],[h,w]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[l,/_/g," "],[v,Ft],[h,w]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[l,/_/g," "],[v,Ft],[h,b]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[l,[v,"OPPO"],[h,w]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[l,[v,"Vivo"],[h,w]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[l,[v,"Realme"],[h,w]],[/\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],[l,[v,lr],[h,w]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[l,[v,lr],[h,b]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[l,[v,Dt],[h,b]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[l,[v,Dt],[h,w]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[l,[v,"Lenovo"],[h,b]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[l,/_/g," "],[v,"Nokia"],[h,w]],[/(pixel c)\b/i],[l,[v,tt],[h,b]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[l,[v,tt],[h,w]],[/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],[l,[v,rt],[h,w]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[l,"Xperia Tablet"],[v,rt],[h,b]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[l,[v,"OnePlus"],[h,w]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[l,[v,Ze],[h,b]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[l,/(.+)/g,"Fire Phone $1"],[v,Ze],[h,w]],[/(playbook);[-\w\),; ]+(rim)/i],[l,v,[h,b]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[l,[v,ur],[h,w]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[l,[v,cr],[h,b]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[l,[v,cr],[h,w]],[/(nexus 9)/i],[l,[v,"HTC"],[h,b]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[v,[l,/_/g," "],[h,w]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[l,[v,"Acer"],[h,b]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[l,[v,"Meizu"],[h,w]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[v,l,[h,w]],[/(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],[v,l,[h,b]],[/(surface duo)/i],[l,[v,Bt],[h,b]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[l,[v,"Fairphone"],[h,w]],[/(u304aa)/i],[l,[v,"AT&T"],[h,w]],[/\bsie-(\w*)/i],[l,[v,"Siemens"],[h,w]],[/\b(rct\w+) b/i],[l,[v,"RCA"],[h,b]],[/\b(venue[\d ]{2,7}) b/i],[l,[v,"Dell"],[h,b]],[/\b(q(?:mv|ta)\w+) b/i],[l,[v,"Verizon"],[h,b]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[l,[v,"Barnes & Noble"],[h,b]],[/\b(tm\d{3}\w+) b/i],[l,[v,"NuVision"],[h,b]],[/\b(k88) b/i],[l,[v,"ZTE"],[h,b]],[/\b(nx\d{3}j) b/i],[l,[v,"ZTE"],[h,w]],[/\b(gen\d{3}) b.+49h/i],[l,[v,"Swiss"],[h,w]],[/\b(zur\d{3}) b/i],[l,[v,"Swiss"],[h,b]],[/\b((zeki)?tb.*\b) b/i],[l,[v,"Zeki"],[h,b]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[v,"Dragon Touch"],l,[h,b]],[/\b(ns-?\w{0,9}) b/i],[l,[v,"Insignia"],[h,b]],[/\b((nxa|next)-?\w{0,9}) b/i],[l,[v,"NextBook"],[h,b]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[v,"Voice"],l,[h,w]],[/\b(lvtel\-)?(v1[12]) b/i],[[v,"LvTel"],l,[h,w]],[/\b(ph-1) /i],[l,[v,"Essential"],[h,w]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[l,[v,"Envizen"],[h,b]],[/\b(trio[-\w\. ]+) b/i],[l,[v,"MachSpeed"],[h,b]],[/\btu_(1491) b/i],[l,[v,"Rotor"],[h,b]],[/(shield[\w ]+) b/i],[l,[v,"Nvidia"],[h,b]],[/(sprint) (\w+)/i],[v,l,[h,w]],[/(kin\.[onetw]{3})/i],[[l,/\./g," "],[v,Bt],[h,w]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[l,[v,Vt],[h,b]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[l,[v,Vt],[h,w]],[/smart-tv.+(samsung)/i],[v,[h,L]],[/hbbtv.+maple;(\d+)/i],[[l,/^/,"SmartTV"],[v,qt],[h,L]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[v,Dt],[h,L]],[/(apple) ?tv/i],[v,[l,me+" TV"],[h,L]],[/crkey/i],[[l,Qe+"cast"],[v,tt],[h,L]],[/droid.+aft(\w)( bui|\))/i],[l,[v,Ze],[h,L]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[l,[v,dr],[h,L]],[/(bravia[\w ]+)( bui|\))/i],[l,[v,rt],[h,L]],[/(mitv-\w{5}) bui/i],[l,[v,Ft],[h,L]],[/Hbbtv.*(technisat) (.*);/i],[v,l,[h,L]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[v,Gt],[l,Gt],[h,L]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[h,L]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[v,l,[h,j]],[/droid.+; (shield) bui/i],[l,[v,"Nvidia"],[h,j]],[/(playstation [345portablevi]+)/i],[l,[v,rt],[h,j]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[l,[v,Bt],[h,j]],[/((pebble))app/i],[v,l,[h,G]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[l,[v,me],[h,G]],[/droid.+; (glass) \d/i],[l,[v,tt],[h,G]],[/droid.+; (wt63?0{2,3})\)/i],[l,[v,Vt],[h,G]],[/(quest( 2| pro)?)/i],[l,[v,hr],[h,G]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[v,[h,ge]],[/(aeobc)\b/i],[l,[v,Ze],[h,ge]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[l,[h,w]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[l,[h,b]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[h,b]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[h,w]],[/(android[-\w\. ]{0,9});.+buil/i],[l,[v,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[g,[d,Ya+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[g,[d,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[d,g],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[g,d]],os:[[/microsoft (windows) (vista|xp)/i],[d,g],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[d,[g,zt,mr]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[d,"Windows"],[g,zt,mr]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/ios;fbsv\/([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[g,/_/g,"."],[d,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[d,vr],[g,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[g,d],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[d,g],[/\(bb(10);/i],[g,[d,ur]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[g,[d,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[g,[d,et+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[g,[d,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[g,[d,"watchOS"]],[/crkey\/([\d\.]+)/i],[g,[d,Qe+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[d,pr],g],[/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],[d,g],[/(sunos) ?([\w\.\d]*)/i],[[d,"Solaris"],g],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[d,g]]},M=function(_,S){if(typeof _===s&&(S=_,_=n),!(this instanceof M))return new M(_,S).getResult();var y=typeof e!==u&&e.navigator?e.navigator:n,T=_||(y&&y.userAgent?y.userAgent:i),z=y&&y.userAgentData?y.userAgentData:n,x=S?Ja(wr,S):wr,E=y&&y.userAgent==T;return this.getBrowser=function(){var m={};return m[d]=n,m[g]=n,ye.call(m,T,x.browser),m[p]=Za(m[g]),E&&y&&y.brave&&typeof y.brave.isBrave==c&&(m[d]="Brave"),m},this.getCPU=function(){var m={};return m[C]=n,ye.call(m,T,x.cpu),m},this.getDevice=function(){var m={};return m[v]=n,m[l]=n,m[h]=n,ye.call(m,T,x.device),E&&!m[h]&&z&&z.mobile&&(m[h]=w),E&&m[l]=="Macintosh"&&y&&typeof y.standalone!==u&&y.maxTouchPoints&&y.maxTouchPoints>2&&(m[l]="iPad",m[h]=b),m},this.getEngine=function(){var m={};return m[d]=n,m[g]=n,ye.call(m,T,x.engine),m},this.getOS=function(){var m={};return m[d]=n,m[g]=n,ye.call(m,T,x.os),E&&!m[d]&&z&&z.platform!="Unknown"&&(m[d]=z.platform.replace(/chrome os/i,pr).replace(/macos/i,vr)),m},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 T},this.setUA=function(m){return T=typeof m===f&&m.length>xt?Gt(m,xt):m,this},this.setUA(T),this};M.VERSION=o,M.BROWSER=it([d,g,p]),M.CPU=it([C]),M.DEVICE=it([l,v,h,j,w,L,b,G,ge]),M.ENGINE=M.OS=it([d,g]),typeof t!==u?(typeof r!==u&&r.exports&&(t=r.exports=M),t.UAParser=M):typeof define===c&&define.amd?define(function(){return M}):typeof e!==u&&(e.UAParser=M);var oe=typeof e!==u&&(e.jQuery||e.Zepto);if(oe&&!oe.ua){var ot=new M;oe.ua=ot.getResult(),oe.ua.get=function(){return ot.getUA()},oe.ua.set=function(_){ot.setUA(_);var S=ot.getResult();for(var y in S)oe.ua[y]=S[y]}}})(typeof window=="object"?window:t)}}),Or=k({"node_modules/shimmer/index.js"(t,r){function e(f){return typeof f=="function"}var n=console.error.bind(console);function o(f,p,l){var d=!!f[p]&&f.propertyIsEnumerable(p);Object.defineProperty(f,p,{configurable:!0,enumerable:d,writable:!0,value:l})}function i(f){f&&f.logger&&(e(f.logger)?n=f.logger:n("new logger isn't a function, not replacing"))}function a(f,p,l){if(!f||!f[p]){n("no original function "+p+" to wrap");return}if(!l){n("no wrapper function"),n(new Error().stack);return}if(!e(f[p])||!e(l)){n("original object and wrapper must be functions");return}var d=f[p],h=l(d,p);return o(h,"__original",d),o(h,"__unwrap",function(){f[p]===h&&o(f,p,d)}),o(h,"__wrapped",!0),o(f,p,h),h}function c(f,p,l){if(f)Array.isArray(f)||(f=[f]);else{n("must provide one or more modules to patch"),n(new Error().stack);return}if(!(p&&Array.isArray(p))){n("must provide one or more functions to wrap on modules");return}f.forEach(function(d){p.forEach(function(h){a(d,h,l)})})}function u(f,p){if(!f||!f[p]){n("no function to unwrap."),n(new Error().stack);return}if(!f[p].__unwrap)n("no original to unwrap to -- has "+p+" already been unwrapped?");else return f[p].__unwrap()}function s(f,p){if(f)Array.isArray(f)||(f=[f]);else{n("must provide one or more modules to patch"),n(new Error().stack);return}if(!(p&&Array.isArray(p))){n("must provide one or more functions to unwrap on modules");return}f.forEach(function(l){p.forEach(function(d){u(l,d)})})}i.wrap=a,i.massWrap=c,i.unwrap=u,i.massUnwrap=s,r.exports=i}}),ct={};Cr(ct,{__assign:()=>Ee,__asyncDelegator:()=>Br,__asyncGenerator:()=>Dr,__asyncValues:()=>qr,__await:()=>ae,__awaiter:()=>Nr,__classPrivateFieldGet:()=>zr,__classPrivateFieldSet:()=>Wr,__createBinding:()=>Mr,__decorate:()=>Rr,__exportStar:()=>Hr,__extends:()=>Ir,__generator:()=>jr,__importDefault:()=>Gr,__importStar:()=>Vr,__makeTemplateObject:()=>Fr,__metadata:()=>kr,__param:()=>Lr,__read:()=>Kt,__rest:()=>Pr,__spread:()=>Ur,__spreadArrays:()=>xr,__values:()=>ut});function Ir(t,r){_e(t,r);function e(){this.constructor=t}t.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}function Pr(t,r){var e={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&r.indexOf(n)<0&&(e[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(t);o<n.length;o++)r.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(e[n[o]]=t[n[o]]);return e}function Rr(t,r,e,n){var o=arguments.length,i=o<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,e):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,r,e,n);else for(var c=t.length-1;c>=0;c--)(a=t[c])&&(i=(o<3?a(i):o>3?a(r,e,i):a(r,e))||i);return o>3&&i&&Object.defineProperty(r,e,i),i}function Lr(t,r){return function(e,n){r(e,n,t)}}function kr(t,r){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,r)}function Nr(t,r,e,n){function o(i){return i instanceof e?i:new e(function(a){a(i)})}return new(e||(e=Promise))(function(i,a){function c(f){try{s(n.next(f))}catch(p){a(p)}}function u(f){try{s(n.throw(f))}catch(p){a(p)}}function s(f){f.done?i(f.value):o(f.value).then(c,u)}s((n=n.apply(t,r||[])).next())})}function jr(t,r){var e={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(s){return function(f){return u([s,f])}}function u(s){if(n)throw new TypeError("Generator is already executing.");for(;e;)try{if(n=1,o&&(i=s[0]&2?o.return:s[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,s[1])).done)return i;switch(o=0,i&&(s=[s[0]&2,i.value]),s[0]){case 0:case 1:i=s;break;case 4:return e.label++,{value:s[1],done:!1};case 5:e.label++,o=s[1],s=[0];continue;case 7:s=e.ops.pop(),e.trys.pop();continue;default:if(i=e.trys,!(i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){e=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){e.label=s[1];break}if(s[0]===6&&e.label<i[1]){e.label=i[1],i=s;break}if(i&&e.label<i[2]){e.label=i[2],e.ops.push(s);break}i[2]&&e.ops.pop(),e.trys.pop();continue}s=r.call(t,e)}catch(f){s=[6,f],o=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}function Mr(t,r,e,n){n===void 0&&(n=e),t[n]=r[e]}function Hr(t,r){for(var e in t)e!=="default"&&!r.hasOwnProperty(e)&&(r[e]=t[e])}function ut(t){var r=typeof Symbol=="function"&&Symbol.iterator,e=r&&t[r],n=0;if(e)return e.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function Kt(t,r){var e=typeof Symbol=="function"&&t[Symbol.iterator];if(!e)return t;var n=e.call(t),o,i=[],a;try{for(;(r===void 0||r-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(c){a={error:c}}finally{try{o&&!o.done&&(e=n.return)&&e.call(n)}finally{if(a)throw a.error}}return i}function Ur(){for(var t=[],r=0;r<arguments.length;r++)t=t.concat(Kt(arguments[r]));return t}function xr(){for(var t=0,r=0,e=arguments.length;r<e;r++)t+=arguments[r].length;for(var n=Array(t),o=0,r=0;r<e;r++)for(var i=arguments[r],a=0,c=i.length;a<c;a++,o++)n[o]=i[a];return n}function ae(t){return this instanceof ae?(this.v=t,this):new ae(t)}function Dr(t,r,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=e.apply(t,r||[]),o,i=[];return o={},a("next"),a("throw"),a("return"),o[Symbol.asyncIterator]=function(){return this},o;function a(l){n[l]&&(o[l]=function(d){return new Promise(function(h,v){i.push([l,d,h,v])>1||c(l,d)})})}function c(l,d){try{u(n[l](d))}catch(h){p(i[0][3],h)}}function u(l){l.value instanceof ae?Promise.resolve(l.value.v).then(s,f):p(i[0][2],l)}function s(l){c("next",l)}function f(l){c("throw",l)}function p(l,d){l(d),i.shift(),i.length&&c(i[0][0],i[0][1])}}function Br(t){var r,e;return r={},n("next"),n("throw",function(o){throw o}),n("return"),r[Symbol.iterator]=function(){return this},r;function n(o,i){r[o]=t[o]?function(a){return(e=!e)?{value:ae(t[o](a)),done:o==="return"}:i?i(a):a}:i}}function qr(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=t[Symbol.asyncIterator],e;return r?r.call(t):(t=typeof ut=="function"?ut(t):t[Symbol.iterator](),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(i){e[i]=t[i]&&function(a){return new Promise(function(c,u){a=t[i](a),o(c,u,a.done,a.value)})}}function o(i,a,c,u){Promise.resolve(u).then(function(s){i({value:s,done:c})},a)}}function Fr(t,r){return Object.defineProperty?Object.defineProperty(t,"raw",{value:r}):t.raw=r,t}function Vr(t){if(t&&t.__esModule)return t;var r={};if(t!=null)for(var e in t)Object.hasOwnProperty.call(t,e)&&(r[e]=t[e]);return r.default=t,r}function Gr(t){return t&&t.__esModule?t:{default:t}}function zr(t,r){if(!r.has(t))throw new TypeError("attempted to get private field on non-instance");return r.get(t)}function Wr(t,r,e){if(!r.has(t))throw new TypeError("attempted to set private field on non-instance");return r.set(t,e),e}var _e,Ee,Yt=Tr({"node_modules/aws-rum-web/node_modules/tslib/tslib.es6.js"(){_e=function(t,r){return _e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var o in n)n.hasOwnProperty(o)&&(e[o]=n[o])},_e(t,r)},Ee=function(){return Ee=Object.assign||function(r){for(var e,n=1,o=arguments.length;n<o;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i])}return r},Ee.apply(this,arguments)}}}),Jt=k({"node_modules/aws-rum-web/node_modules/@aws-crypto/sha256-js/build/constants.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.MAX_HASHABLE_LENGTH=t.INIT=t.KEY=t.DIGEST_LENGTH=t.BLOCK_SIZE=void 0,t.BLOCK_SIZE=64,t.DIGEST_LENGTH=32,t.KEY=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),t.INIT=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],t.MAX_HASHABLE_LENGTH=Math.pow(2,53)-1}}),Xr=k({"node_modules/aws-rum-web/node_modules/@aws-crypto/sha256-js/build/RawSha256.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.RawSha256=void 0;var r=Jt(),e=function(){function n(){this.state=Int32Array.from(r.INIT),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return n.prototype.update=function(o){if(this.finished)throw new Error("Attempted to update an already finished hash.");var i=0,a=o.byteLength;if(this.bytesHashed+=a,this.bytesHashed*8>r.MAX_HASHABLE_LENGTH)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;a>0;)this.buffer[this.bufferLength++]=o[i++],a--,this.bufferLength===r.BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)},n.prototype.digest=function(){if(!this.finished){var o=this.bytesHashed*8,i=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),a=this.bufferLength;if(i.setUint8(this.bufferLength++,128),a%r.BLOCK_SIZE>=r.BLOCK_SIZE-8){for(var c=this.bufferLength;c<r.BLOCK_SIZE;c++)i.setUint8(c,0);this.hashBuffer(),this.bufferLength=0}for(var c=this.bufferLength;c<r.BLOCK_SIZE-8;c++)i.setUint8(c,0);i.setUint32(r.BLOCK_SIZE-8,Math.floor(o/4294967296),!0),i.setUint32(r.BLOCK_SIZE-4,o),this.hashBuffer(),this.finished=!0}for(var u=new Uint8Array(r.DIGEST_LENGTH),c=0;c<8;c++)u[c*4]=this.state[c]>>>24&255,u[c*4+1]=this.state[c]>>>16&255,u[c*4+2]=this.state[c]>>>8&255,u[c*4+3]=this.state[c]>>>0&255;return u},n.prototype.hashBuffer=function(){for(var o=this,i=o.buffer,a=o.state,c=a[0],u=a[1],s=a[2],f=a[3],p=a[4],l=a[5],d=a[6],h=a[7],v=0;v<r.BLOCK_SIZE;v++){if(v<16)this.temp[v]=(i[v*4]&255)<<24|(i[v*4+1]&255)<<16|(i[v*4+2]&255)<<8|i[v*4+3]&255;else{var g=this.temp[v-2],C=(g>>>17|g<<15)^(g>>>19|g<<13)^g>>>10;g=this.temp[v-15];var j=(g>>>7|g<<25)^(g>>>18|g<<14)^g>>>3;this.temp[v]=(C+this.temp[v-7]|0)+(j+this.temp[v-16]|0)}var w=(((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+(p&l^~p&d)|0)+(h+(r.KEY[v]+this.temp[v]|0)|0)|0,b=((c>>>2|c<<30)^(c>>>13|c<<19)^(c>>>22|c<<10))+(c&u^c&s^u&s)|0;h=d,d=l,l=p,p=f+w|0,f=s,s=u,u=c,c=w+b|0}a[0]+=c,a[1]+=u,a[2]+=s,a[3]+=f,a[4]+=p,a[5]+=l,a[6]+=d,a[7]+=h},n}();t.RawSha256=e}}),$r=k({"node_modules/@aws-sdk/util-utf8-browser/dist-cjs/pureJs.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.toUtf8=t.fromUtf8=void 0;var r=n=>{const o=[];for(let i=0,a=n.length;i<a;i++){const c=n.charCodeAt(i);if(c<128)o.push(c);else if(c<2048)o.push(c>>6|192,c&63|128);else if(i+1<n.length&&(c&64512)===55296&&(n.charCodeAt(i+1)&64512)===56320){const u=65536+((c&1023)<<10)+(n.charCodeAt(++i)&1023);o.push(u>>18|240,u>>12&63|128,u>>6&63|128,u&63|128)}else o.push(c>>12|224,c>>6&63|128,c&63|128)}return Uint8Array.from(o)};t.fromUtf8=r;var e=n=>{let o="";for(let i=0,a=n.length;i<a;i++){const c=n[i];if(c<128)o+=String.fromCharCode(c);else if(192<=c&&c<224){const u=n[++i];o+=String.fromCharCode((c&31)<<6|u&63)}else if(240<=c&&c<365){const s="%"+[c,n[++i],n[++i],n[++i]].map(f=>f.toString(16)).join("%");o+=decodeURIComponent(s)}else o+=String.fromCharCode((c&15)<<12|(n[++i]&63)<<6|n[++i]&63)}return o};t.toUtf8=e}}),Kr=k({"node_modules/@aws-sdk/util-utf8-browser/dist-cjs/whatwgEncodingApi.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.toUtf8=t.fromUtf8=void 0;function r(n){return new TextEncoder().encode(n)}t.fromUtf8=r;function e(n){return new TextDecoder("utf-8").decode(n)}t.toUtf8=e}}),Yr=k({"node_modules/@aws-sdk/util-utf8-browser/dist-cjs/index.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.toUtf8=t.fromUtf8=void 0;var r=$r(),e=Kr(),n=i=>typeof TextEncoder=="function"?(0,e.fromUtf8)(i):(0,r.fromUtf8)(i);t.fromUtf8=n;var o=i=>typeof TextDecoder=="function"?(0,e.toUtf8)(i):(0,r.toUtf8)(i);t.toUtf8=o}}),Jr=k({"node_modules/aws-rum-web/node_modules/@aws-crypto/util/build/convertToBuffer.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.convertToBuffer=void 0;var r=Yr(),e=typeof Buffer<"u"&&Buffer.from?function(o){return Buffer.from(o,"utf8")}:r.fromUtf8;function n(o){return o instanceof Uint8Array?o:typeof o=="string"?e(o):ArrayBuffer.isView(o)?new Uint8Array(o.buffer,o.byteOffset,o.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(o)}t.convertToBuffer=n}}),Zr=k({"node_modules/aws-rum-web/node_modules/@aws-crypto/util/build/isEmptyData.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.isEmptyData=void 0;function r(e){return typeof e=="string"?e.length===0:e.byteLength===0}t.isEmptyData=r}}),Qr=k({"node_modules/aws-rum-web/node_modules/@aws-crypto/util/build/numToUint8.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.numToUint8=void 0;function r(e){return new Uint8Array([(e&4278190080)>>24,(e&16711680)>>16,(e&65280)>>8,e&255])}t.numToUint8=r}}),ei=k({"node_modules/aws-rum-web/node_modules/@aws-crypto/util/build/uint32ArrayFrom.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.uint32ArrayFrom=void 0;function r(e){if(!Uint32Array.from){for(var n=new Uint32Array(e.length),o=0;o<e.length;)n[o]=e[o],o+=1;return n}return Uint32Array.from(e)}t.uint32ArrayFrom=r}}),ti=k({"node_modules/aws-rum-web/node_modules/@aws-crypto/util/build/index.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.uint32ArrayFrom=t.numToUint8=t.isEmptyData=t.convertToBuffer=void 0;var r=Jr();Object.defineProperty(t,"convertToBuffer",{enumerable:!0,get:function(){return r.convertToBuffer}});var e=Zr();Object.defineProperty(t,"isEmptyData",{enumerable:!0,get:function(){return e.isEmptyData}});var n=Qr();Object.defineProperty(t,"numToUint8",{enumerable:!0,get:function(){return n.numToUint8}});var o=ei();Object.defineProperty(t,"uint32ArrayFrom",{enumerable:!0,get:function(){return o.uint32ArrayFrom}})}}),ni=k({"node_modules/aws-rum-web/node_modules/@aws-crypto/sha256-js/build/jsSha256.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Sha256=void 0;var r=(Yt(),$t(ct)),e=Jt(),n=Xr(),o=ti(),i=function(){function c(u){if(this.hash=new n.RawSha256,u){this.outer=new n.RawSha256;var s=a(u),f=new Uint8Array(e.BLOCK_SIZE);f.set(s);for(var p=0;p<e.BLOCK_SIZE;p++)s[p]^=54,f[p]^=92;this.hash.update(s),this.outer.update(f);for(var p=0;p<s.byteLength;p++)s[p]=0}}return c.prototype.update=function(u){if(!((0,o.isEmptyData)(u)||this.error))try{this.hash.update((0,o.convertToBuffer)(u))}catch(s){this.error=s}},c.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},c.prototype.digest=function(){return r.__awaiter(this,void 0,void 0,function(){return r.__generator(this,function(u){return[2,this.digestSync()]})})},c}();t.Sha256=i;function a(c){var u=(0,o.convertToBuffer)(c);if(u.byteLength>e.BLOCK_SIZE){var s=new n.RawSha256;s.update(u),u=s.digest()}var f=new Uint8Array(e.BLOCK_SIZE);return f.set(u),f}}}),ri=k({"node_modules/aws-rum-web/node_modules/@aws-crypto/sha256-js/build/index.js"(t){Object.defineProperty(t,"__esModule",{value:!0});var r=(Yt(),$t(ct));r.__exportStar(ni(),t)}}),Zt;(function(t){t[t.HEADER=0]="HEADER",t[t.TRAILER=1]="TRAILER"})(Zt||(Zt={}));var se=class{constructor(t){this.method=t.method||"GET",this.hostname=t.hostname||"localhost",this.port=t.port,this.query=t.query||{},this.headers=t.headers||{},this.body=t.body,this.protocol=t.protocol?t.protocol.slice(-1)!==":"?`${t.protocol}:`:t.protocol:"https:",this.path=t.path?t.path.charAt(0)!=="/"?`/${t.path}`:t.path:"/"}static isInstance(t){if(!t)return!1;const r=t;return"method"in r&&"protocol"in r&&"hostname"in r&&"path"in r&&typeof r.query=="object"&&typeof r.headers=="object"}clone(){const t=new se({...this,headers:{...this.headers}});return t.query&&(t.query=ii(t.query)),t}};function ii(t){return Object.keys(t).reduce((r,e)=>{const n=t[e];return{...r,[e]:Array.isArray(n)?[...n]:n}},{})}var ft=class{constructor(t){this.statusCode=t.statusCode,this.headers=t.headers||{},this.body=t.body}static isInstance(t){if(!t)return!1;const r=t;return typeof r.statusCode=="number"&&typeof r.headers=="object"}},Qt=function(t,r,e,n){function o(i){return i instanceof e?i:new e(function(a){a(i)})}return new(e||(e=Promise))(function(i,a){function c(f){try{s(n.next(f))}catch(p){a(p)}}function u(f){try{s(n.throw(f))}catch(p){a(p)}}function s(f){f.done?i(f.value):o(f.value).then(c,u)}s((n=n.apply(t,r||[])).next())})},en=function(t,r){var e={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(s){return function(f){return u([s,f])}}function u(s){if(n)throw new TypeError("Generator is already executing.");for(;e;)try{if(n=1,o&&(i=s[0]&2?o.return:s[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,s[1])).done)return i;switch(o=0,i&&(s=[s[0]&2,i.value]),s[0]){case 0:case 1:i=s;break;case 4:return e.label++,{value:s[1],done:!1};case 5:e.label++,o=s[1],s=[0];continue;case 7:s=e.ops.pop(),e.trys.pop();continue;default:if(i=e.trys,!(i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){e=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){e.label=s[1];break}if(s[0]===6&&e.label<i[1]){e.label=i[1],i=s;break}if(i&&e.label<i[2]){e.label=i[2],e.ops.push(s);break}i[2]&&e.ops.pop(),e.trys.pop();continue}s=r.call(t,e)}catch(f){s=[6,f],o=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},lt=function(t){return Qt(void 0,void 0,void 0,function(){var r;return en(this,function(e){switch(e.label){case 0:return[4,t.body.getReader().read()];case 1:return r=e.sent().value,[2,JSON.parse(String.fromCharCode.apply(null,r))]}})})},oi=function(t){return Qt(void 0,void 0,void 0,function(){var r;return en(this,function(e){switch(e.label){case 0:return[4,t.body.getReader().read()];case 1:return r=e.sent().value,[2,String.fromCharCode.apply(null,r)]}})})},dt=function(t,r,e,n){function o(i){return i instanceof e?i:new e(function(a){a(i)})}return new(e||(e=Promise))(function(i,a){function c(f){try{s(n.next(f))}catch(p){a(p)}}function u(f){try{s(n.throw(f))}catch(p){a(p)}}function s(f){f.done?i(f.value):o(f.value).then(c,u)}s((n=n.apply(t,r||[])).next())})},ht=function(t,r){var e={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(s){return function(f){return u([s,f])}}function u(s){if(n)throw new TypeError("Generator is already executing.");for(;e;)try{if(n=1,o&&(i=s[0]&2?o.return:s[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,s[1])).done)return i;switch(o=0,i&&(s=[s[0]&2,i.value]),s[0]){case 0:case 1:i=s;break;case 4:return e.label++,{value:s[1],done:!1};case 5:e.label++,o=s[1],s=[0];continue;case 7:s=e.ops.pop(),e.trys.pop();continue;default:if(i=e.trys,!(i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){e=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){e.label=s[1];break}if(s[0]===6&&e.label<i[1]){e.label=i[1],i=s;break}if(i&&e.label<i[2]){e.label=i[2],e.ops.push(s);break}i[2]&&e.ops.pop(),e.trys.pop();continue}s=r.call(t,e)}catch(f){s=[6,f],o=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},ai="POST",si="application/x-amz-json-1.1",ci="https:",ui="AWSCognitoIdentityService.GetId",fi="AWSCognitoIdentityService.GetOpenIdToken",li="AWSCognitoIdentityService.GetCredentialsForIdentity",di=function(t){return function(){return t.client.getCredentialsForIdentity(t.identityPoolId)}},tn=function(){function t(r){var e=this;this.getId=function(n){return dt(e,void 0,void 0,function(){var o,i,a,c;return ht(this,function(u){switch(u.label){case 0:return u.trys.push([0,3,,4]),o=JSON.stringify(n),i=this.getHttpRequest(ui,o),[4,this.fetchRequestHandler.handle(i)];case 1:return a=u.sent().response,[4,lt(a)];case 2:return[2,u.sent()];case 3:throw c=u.sent(),new Error("CWR: Failed to retrieve Cognito identity: ".concat(c));case 4:return[2]}})})},this.getOpenIdToken=function(n){return dt(e,void 0,void 0,function(){var o,i,a,c;return ht(this,function(u){switch(u.label){case 0:return u.trys.push([0,3,,4]),o=JSON.stringify(n),i=this.getHttpRequest(fi,o),[4,this.fetchRequestHandler.handle(i)];case 1:return a=u.sent().response,[4,lt(a)];case 2:return[2,u.sent()];case 3:throw c=u.sent(),new Error("CWR: Failed to retrieve Cognito OpenId token: ".concat(c));case 4:return[2]}})})},this.getCredentialsForIdentity=function(n){return dt(e,void 0,void 0,function(){var o,i,a,c,u,s,f,p,l;return ht(this,function(d){switch(d.label){case 0:return d.trys.push([0,3,,4]),o=JSON.stringify({IdentityId:n}),i=this.getHttpRequest(li,o),[4,this.fetchRequestHandler.handle(i)];case 1:return a=d.sent().response,[4,lt(a)];case 2:return c=d.sent().Credentials,u=c.AccessKeyId,s=c.Expiration,f=c.SecretAccessKey,p=c.SessionToken,[2,{accessKeyId:u,secretAccessKey:f,sessionToken:p,expiration:new Date(s*1e3)}];case 3:throw l=d.sent(),new Error("CWR: Failed to retrieve credentials for Cognito identity: ".concat(l));case 4:return[2]}})})},this.getHttpRequest=function(n,o){return new se({method:ai,headers:{"content-type":si,"x-amz-target":n},protocol:ci,hostname:e.hostname,body:o})},this.hostname="cognito-identity.".concat(r.region,".amazonaws.com"),this.fetchRequestHandler=r.fetchRequestHandler}return t}(),nn;(function(t){t[t.HEADER=0]="HEADER",t[t.TRAILER=1]="TRAILER"})(nn||(nn={}));var rn=class{constructor(t){this.statusCode=t.statusCode,this.reason=t.reason,this.headers=t.headers||{},this.body=t.body}static isInstance(t){if(!t)return!1;const r=t;return typeof r.statusCode=="number"&&typeof r.headers=="object"}},H=t=>encodeURIComponent(t).replace(/[!'()*]/g,hi),hi=t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`;function pi(t){const r=[];for(let e of Object.keys(t).sort()){const n=t[e];if(e=H(e),Array.isArray(n))for(let o=0,i=n.length;o<i;o++)r.push(`${e}=${H(n[o])}`);else{let o=e;(n||typeof n=="string")&&(o+=`=${H(n)}`),r.push(o)}}return r.join("&")}function vi(t=0){return new Promise((r,e)=>{t&&setTimeout(()=>{const n=new Error(`Request did not complete within ${t} ms`);n.name="TimeoutError",e(n)},t)})}var pt=class{constructor(t){typeof t=="function"?this.configProvider=t().then(r=>r||{}):(this.config=t??{},this.configProvider=Promise.resolve(this.config))}destroy(){}async handle(t,{abortSignal:r}={}){this.config||(this.config=await this.configProvider);const e=this.config.requestTimeout;if(r?.aborted){const d=new Error("Request aborted");return d.name="AbortError",Promise.reject(d)}let n=t.path;const o=pi(t.query||{});o&&(n+=`?${o}`),t.fragment&&(n+=`#${t.fragment}`);let i="";if(t.username!=null||t.password!=null){const d=t.username??"",h=t.password??"";i=`${d}:${h}@`}const{port:a,method:c}=t,u=`${t.protocol}//${i}${t.hostname}${a?`:${a}`:""}${n}`,f={body:c==="GET"||c==="HEAD"?void 0:t.body,headers:new Headers(t.headers),method:c};typeof AbortController<"u"&&(f.signal=r);const p=new Request(u,f),l=[fetch(p).then(d=>{const h=d.headers,v={};for(const C of h.entries())v[C[0]]=C[1];return d.body!=null?{response:new rn({headers:v,reason:d.statusText,statusCode:d.status,body:d.body})}:d.blob().then(C=>({response:new rn({headers:v,reason:d.statusText,statusCode:d.status,body:C})}))}),vi(e)];return r&&l.push(new Promise((d,h)=>{r.onabort=()=>{const v=new Error("Request aborted");v.name="AbortError",h(v)}})),Promise.race(l)}},K={},ce=new Array(64);for(let t=0,r="A".charCodeAt(0),e="Z".charCodeAt(0);t+r<=e;t++){const n=String.fromCharCode(t+r);K[n]=t,ce[t]=n}for(let t=0,r="a".charCodeAt(0),e="z".charCodeAt(0);t+r<=e;t++){const n=String.fromCharCode(t+r),o=t+26;K[n]=o,ce[o]=n}for(let t=0;t<10;t++){K[t.toString(10)]=t+52;const r=t.toString(10),e=t+52;K[r]=e,ce[e]=r}K["+"]=62,ce[62]="+",K["/"]=63,ce[63]="/";var Se=function(){return Se=Object.assign||function(t){for(var r,e=1,n=arguments.length;e<n;e++){r=arguments[e];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},Se.apply(this,arguments)},gi=function(t,r,e,n){function o(i){return i instanceof e?i:new e(function(a){a(i)})}return new(e||(e=Promise))(function(i,a){function c(f){try{s(n.next(f))}catch(p){a(p)}}function u(f){try{s(n.throw(f))}catch(p){a(p)}}function s(f){f.done?i(f.value):o(f.value).then(c,u)}s((n=n.apply(t,r||[])).next())})},mi=function(t,r){var e={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(s){return function(f){return u([s,f])}}function u(s){if(n)throw new TypeError("Generator is already executing.");for(;e;)try{if(n=1,o&&(i=s[0]&2?o.return:s[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,s[1])).done)return i;switch(o=0,i&&(s=[s[0]&2,i.value]),s[0]){case 0:case 1:i=s;break;case 4:return e.label++,{value:s[1],done:!1};case 5:e.label++,o=s[1],s=[0];continue;case 7:s=e.ops.pop(),e.trys.pop();continue;default:if(i=e.trys,!(i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){e=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){e.label=s[1];break}if(s[0]===6&&e.label<i[1]){e.label=i[1],i=s;break}if(i&&e.label<i[2]){e.label=i[2],e.ops.push(s);break}i[2]&&e.ops.pop(),e.trys.pop();continue}s=r.call(t,e)}catch(f){s=[6,f],o=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},wi="POST",yi="application/x-www-form-urlencoded",bi="https:",_i="AssumeRoleWithWebIdentity",Ei="2011-06-15",Si=function(){function t(r){var e=this;this.assumeRoleWithWebIdentity=function(n){return gi(e,void 0,void 0,function(){var o,i,a,c,u,s;return mi(this,function(f){switch(f.label){case 0:return f.trys.push([0,3,,4]),o=Se(Se({},n),{Action:_i,Version:Ei}),i=new URLSearchParams(Object.entries(o)).toString(),a=new se({method:wi,headers:{"content-type":yi,host:this.hostname},protocol:bi,hostname:this.hostname,body:i}),[4,this.fetchRequestHandler.handle(a)];case 1:return c=f.sent().response,[4,oi(c)];case 2:return u=f.sent(),[2,{accessKeyId:u.split("<AccessKeyId>")[1].split("</AccessKeyId>")[0],secretAccessKey:u.split("<SecretAccessKey>")[1].split("</SecretAccessKey>")[0],sessionToken:u.split("<SessionToken>")[1].split("</SessionToken>")[0],expiration:new Date(u.split("<Expiration>")[1].split("</Expiration>")[0])}];case 3:throw s=f.sent(),new Error("CWR: Failed to retrieve credentials from STS: ".concat(s));case 4:return[2]}})})},this.hostname="sts.".concat(r.region,".amazonaws.com"),this.fetchRequestHandler=r.fetchRequestHandler}return t}(),Te="cwr_c",on="cwr_s",an="cwr_u",sn=3e4,Ti="arw-module",Ce=function(){return Ce=Object.assign||function(t){for(var r,e=1,n=arguments.length;e<n;e++){r=arguments[e];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},Ce.apply(this,arguments)},Ae=function(t,r,e,n){function o(i){return i instanceof e?i:new e(function(a){a(i)})}return new(e||(e=Promise))(function(i,a){function c(f){try{s(n.next(f))}catch(p){a(p)}}function u(f){try{s(n.throw(f))}catch(p){a(p)}}function s(f){f.done?i(f.value):o(f.value).then(c,u)}s((n=n.apply(t,r||[])).next())})},Oe=function(t,r){var e={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(s){return function(f){return u([s,f])}}function u(s){if(n)throw new TypeError("Generator is already executing.");for(;e;)try{if(n=1,o&&(i=s[0]&2?o.return:s[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,s[1])).done)return i;switch(o=0,i&&(s=[s[0]&2,i.value]),s[0]){case 0:case 1:i=s;break;case 4:return e.label++,{value:s[1],done:!1};case 5:e.label++,o=s[1],s=[0];continue;case 7:s=e.ops.pop(),e.trys.pop();continue;default:if(i=e.trys,!(i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){e=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){e.label=s[1];break}if(s[0]===6&&e.label<i[1]){e.label=i[1],i=s;break}if(i&&e.label<i[2]){e.label=i[2],e.ops.push(s);break}i[2]&&e.ops.pop(),e.trys.pop();continue}s=r.call(t,e)}catch(f){s=[6,f],o=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},Ci=function(){function t(r){var e=this;this.ChainAnonymousCredentialsProvider=function(){return Ae(e,void 0,void 0,function(){return Oe(this,function(o){return[2,this.AnonymousCredentialsProvider().catch(this.AnonymousStorageCredentialsProvider).catch(this.AnonymousCognitoCredentialsProvider)]})})},this.AnonymousCredentialsProvider=function(){return Ae(e,void 0,void 0,function(){var o=this;return Oe(this,function(i){return[2,new Promise(function(a,c){if(o.renewCredentials())return c();a(o.credentials)})]})})},this.AnonymousStorageCredentialsProvider=function(){return Ae(e,void 0,void 0,function(){var o=this;return Oe(this,function(i){return[2,new Promise(function(a,c){var u;try{u=JSON.parse(localStorage.getItem(Te))}catch{return c()}if(o.credentials=Ce(Ce({},u),{expiration:new Date(u.expiration)}),o.renewCredentials())return c();o.credentials=u,a(u)})]})})},this.AnonymousCognitoCredentialsProvider=function(){return Ae(e,void 0,void 0,function(){var o=this;return Oe(this,function(i){return[2,this.cognitoIdentityClient.getId({IdentityPoolId:this.config.identityPoolId}).then(function(a){return o.cognitoIdentityClient.getOpenIdToken(a)}).then(function(a){return o.stsClient.assumeRoleWithWebIdentity({RoleArn:o.config.guestRoleArn,RoleSessionName:"cwr",WebIdentityToken:a.Token})}).then(function(a){o.credentials=a;try{localStorage.setItem(Te,JSON.stringify(a))}catch{}return a})]})})};var n=r.identityPoolId.split(":")[0];this.config=r,this.stsClient=new Si({fetchRequestHandler:new pt,region:n}),this.cognitoIdentityClient=new tn({fetchRequestHandler:new pt,region:n})}return t.prototype.renewCredentials=function(){if(!this.credentials||!this.credentials.expiration)return!0;var r=new Date(this.credentials.expiration.getTime()-sn);return new Date>r},t}(),Ie=function(t,r,e,n){function o(i){return i instanceof e?i:new e(function(a){a(i)})}return new(e||(e=Promise))(function(i,a){function c(f){try{s(n.next(f))}catch(p){a(p)}}function u(f){try{s(n.throw(f))}catch(p){a(p)}}function s(f){f.done?i(f.value):o(f.value).then(c,u)}s((n=n.apply(t,r||[])).next())})},Pe=function(t,r){var e={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(s){return function(f){return u([s,f])}}function u(s){if(n)throw new TypeError("Generator is already executing.");for(;e;)try{if(n=1,o&&(i=s[0]&2?o.return:s[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,s[1])).done)return i;switch(o=0,i&&(s=[s[0]&2,i.value]),s[0]){case 0:case 1:i=s;break;case 4:return e.label++,{value:s[1],done:!1};case 5:e.label++,o=s[1],s=[0];continue;case 7:s=e.ops.pop(),e.trys.pop();continue;default:if(i=e.trys,!(i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){e=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){e.label=s[1];break}if(s[0]===6&&e.label<i[1]){e.label=i[1],i=s;break}if(i&&e.label<i[2]){e.label=i[2],e.ops.push(s);break}i[2]&&e.ops.pop(),e.trys.pop();continue}s=r.call(t,e)}catch(f){s=[6,f],o=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},Ai=function(){function t(r){var e=this;this.ChainAnonymousCredentialsProvider=function(){return Ie(e,void 0,void 0,function(){return Pe(this,function(o){return[2,this.AnonymousCredentialsProvider().catch(this.AnonymousStorageCredentialsProvider).catch(this.AnonymousCognitoCredentialsProvider)]})})},this.AnonymousCredentialsProvider=function(){return Ie(e,void 0,void 0,function(){var o=this;return Pe(this,function(i){return[2,new Promise(function(a,c){if(o.renewCredentials())return c();a(o.credentials)})]})})},this.AnonymousStorageCredentialsProvider=function(){return Ie(e,void 0,void 0,function(){var o=this;return Pe(this,function(i){return[2,new Promise(function(a,c){var u;try{u=JSON.parse(localStorage.getItem(Te))}catch{c()}if(u.expiration=new Date(u.expiration),o.credentials=u,o.renewCredentials())return c();o.credentials=u,a(u)})]})})},this.AnonymousCognitoCredentialsProvider=function(){return Ie(e,void 0,void 0,function(){var o,i=this;return Pe(this,function(a){return o=di({client:this.cognitoIdentityClient,identityPoolId:this.config.identityPoolId}),[2,o().then(function(c){i.credentials=c;try{localStorage.setItem(Te,JSON.stringify(c))}catch{}return c})]})})};var n=r.identityPoolId.split(":")[0];this.config=r,this.cognitoIdentityClient=new tn({fetchRequestHandler:new pt,region:n})}return t.prototype.renewCredentials=function(){if(!this.credentials||!this.credentials.expiration)return!0;var r=new Date(this.credentials.expiration.getTime()-sn);return new Date>r},t}(),U="com.amazon.rum",Oi="com.amazonaws.rum",Re="".concat(U,".http_event"),cn="".concat(U,".xray_trace_event"),Ii="".concat(U,".largest_contentful_paint_event"),Pi="".concat(U,".first_input_delay_event"),Ri="".concat(U,".cumulative_layout_shift_event"),vt="".concat(U,".performance_navigation_event"),Li="".concat(U,".performance_resource_event"),ki="".concat(U,".dom_event"),Ni="".concat(U,".js_error_event"),ji="".concat(U,".page_view_event"),W=function(){function t(r){this.enabled=!0,this.pluginId=t.generatePluginId(r)}return t.generatePluginId=function(r){return"".concat(t.idPrefix,".").concat(r)},t.prototype.load=function(r){var e;this.context=r,(e=this.onload)===null||e===void 0||e.call(this)},t.prototype.getPluginId=function(){return this.pluginId},t.idPrefix=Oi,t}(),Mi=function(){function t(r){this.context=r,this.plugins=new Map}return t.prototype.addPlugin=function(r){var e=r.getPluginId();if(this.hasPlugin(e))throw new Error('Plugin "'.concat(e,'" already defined in the PluginManager'));this.plugins.set(e,r),r.load(this.context)},t.prototype.updatePlugin=function(r,e){var n,o=this.getPlugin(r);(n=o?.update)===null||n===void 0||n.call(o,e)},t.prototype.enable=function(){this.plugins.forEach(function(r){return r.enable()})},t.prototype.disable=function(){this.plugins.forEach(function(r){return r.disable()})},t.prototype.hasPlugin=function(r){return!!this.getPlugin(r)},t.prototype.record=function(r,e){var n=this.getPlugin(r);if(n?.record instanceof Function)n.record(e);else throw new Error("AWS RUM Client record: Invalid plugin ID")},t.prototype.getPlugin=function(r){var e;return(e=this.plugins.get(r))!==null&&e!==void 0?e:this.plugins.get(W.generatePluginId(r))},t}(),Hi=function(){var t=function(r,e){return t=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])},t(r,e)};return function(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(r,e);function n(){this.constructor=r}r.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),X=function(){return X=Object.assign||function(t){for(var r,e=1,n=arguments.length;e<n;e++){r=arguments[e];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},X.apply(this,arguments)},un="dom-event",Ui={interactionId:function(){return""},enableMutationObserver:!1,events:[]},xi=function(t){Hi(r,t);function r(e){var n=t.call(this,un)||this;return n.enabled=!1,n.eventListenerMap=new Map,n.config=X(X({},Ui),e),n}return r.getElementInfo=function(e){var n={name:"UNKNOWN"};return e.target instanceof Node&&(n.name=e.target.nodeName),e.target instanceof Element&&e.target.id&&(n.id=e.target.id),n},r.prototype.enable=function(){var e=this;if(document.readyState!=="complete"){window.addEventListener("load",function(){return e.enable()});return}this.enabled||(this.addListeners(),this.config.enableMutationObserver&&this.observeDOMMutation(),this.enabled=!0)},r.prototype.disable=function(){this.enabled&&(this.removeListeners(),this.observer&&this.observer.disconnect(),this.enabled=!1)},r.prototype.update=function(e){var n=this;e.forEach(function(o){n.addEventHandler(o),n.config.events.push(o)})},r.prototype.onload=function(){this.enable()},r.prototype.removeListeners=function(){var e=this;this.config.events.forEach(function(n){return e.removeEventHandler(n)})},r.prototype.addListeners=function(){var e=this;this.config.events.forEach(function(n){return e.addEventHandler(n)})},r.prototype.getEventListener=function(e){var n=this;return function(o){var i,a=r.getElementInfo(o),c=n.config.interactionId(o),u=X(X(X({version:"1.1.0",event:o.type,element:a.name},a.id?{elementId:a.id}:{}),c?{interactionId:c}:{}),e?{cssLocator:e}:{});!((i=n.context)===null||i===void 0)&&i.record&&n.context.record(ki,u)}},r.prototype.addEventHandler=function(e){var n=e.event,o=this.getEventListener(e.cssLocator),i=[],a=this.eventListenerMap.has(e)?this.eventListenerMap.get(e):[];if(e.cssLocator){var c=document.querySelectorAll(e.cssLocator);c.forEach(function(s){i.push(s)})}else if(e.elementId){var u=document.getElementById(e.elementId);u&&i.push(u)}else e.element&&i.push(e.element);i.forEach(function(s){s.addEventListener(n,o),a.push({element:s,eventListener:o})}),this.eventListenerMap.set(e,a)},r.prototype.removeEventHandler=function(e){var n=this.eventListenerMap.get(e);n&&(n.forEach(function(o){var i=o.element,a=o.eventListener;i.removeEventListener(e.event,a)}),this.eventListenerMap.delete(e))},r.prototype.observeDOMMutation=function(){var e=this;this.observer=new MutationObserver(function(){e.removeListeners(),e.addListeners()}),this.observer.observe(document,{childList:!0,subtree:!0})},r}(W),Di=function(t){var r=typeof t;return(r==="object"||r==="function")&&!!t},Bi=function(t){var r={version:"1.0.0",type:"undefined",message:"undefined"};return t.type!==void 0&&(r.type=t.type),t.message!==void 0&&(r.message=t.message),t.filename!==void 0&&(r.filename=t.filename),t.lineno!==void 0&&(r.lineno=t.lineno),t.colno!==void 0&&(r.colno=t.colno),r},qi=function(t,r){t.type!=="unhandledrejection"&&(t.type=r.toString()),t.message=r.toString()},Fi=function(t,r,e){r.name&&(t.type=r.name),r.message&&(t.message=r.message),r.fileName&&(t.filename=r.fileName),r.lineNumber&&(t.lineno=r.lineNumber),r.columnNumber&&(t.colno=r.columnNumber),e&&r.stack&&(t.stack=r.stack.length>e?r.stack.substring(0,e)+"...":r.stack)},fn=function(t){return t!==Object(t)&&t!==void 0&&t!==null},gt=function(t,r){var e=Bi(t),n=t.error;return Di(n)?Fi(e,n,r):fn(n)&&qi(e,n),e},Vi=function(){var t=function(r,e){return t=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])},t(r,e)};return function(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(r,e);function n(){this.constructor=r}r.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Le=function(){return Le=Object.assign||function(t){for(var r,e=1,n=arguments.length;e<n;e++){r=arguments[e];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},Le.apply(this,arguments)},ln="js-error",Gi={stackTraceLength:1e3,ignore:function(){return!1}},zi=function(t){Vi(r,t);function r(e){var n=t.call(this,ln)||this;return n.eventHandler=function(o){n.config.ignore(o)||n.recordJsErrorEvent(o)},n.promiseRejectEventHandler=function(o){n.config.ignore(o)||n.recordJsErrorEvent({type:o.type,error:o.reason})},n.config=Le(Le({},Gi),e),n}return r.prototype.enable=function(){this.enabled||(this.addEventHandler(),this.enabled=!0)},r.prototype.disable=function(){this.enabled&&(this.removeEventHandler(),this.enabled=!1)},r.prototype.record=function(e){e instanceof ErrorEvent?this.recordJsErrorEvent(e):this.recordJsErrorEvent({type:"error",error:e})},r.prototype.onload=function(){this.addEventHandler()},r.prototype.recordJsErrorEvent=function(e){var n;(n=this.context)===null||n===void 0||n.record(Ni,gt(e,this.config.stackTraceLength))},r.prototype.addEventHandler=function(){window.addEventListener("error",this.eventHandler),window.addEventListener("unhandledrejection",this.promiseRejectEventHandler)},r.prototype.removeEventHandler=function(){window.removeEventListener("error",this.eventHandler),window.removeEventListener("unhandledrejection",this.promiseRejectEventHandler)},r}(W),dn=function(t,r,e,n,o){var i=t+"=";i+=r||"",o!==void 0?i+="; Expires=".concat(o.toUTCString()):n!==void 0&&(i+="; Expires=".concat(Wi(n).toUTCString())),i+="; Domain=".concat(e.domain),i+="; Path=".concat(e.path),i+="; SameSite=".concat(e.sameSite),i+=e.secure?"; Secure":"",document.cookie=i},Wi=function(t){return new Date(new Date().getTime()+t*1e3)},hn=function(t){for(var r=document.cookie.split("; "),e=0,n=r;e<n.length;e++){var o=n[e],i=o.split("=");if(i[0]===t)return i[1]}return""},ke,Xi=new Uint8Array(16);function $i(){if(!ke&&(ke=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!ke))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ke(Xi)}var Ki=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Yi(t){return typeof t=="string"&&Ki.test(t)}var Ji=Yi,A=[];for(let t=0;t<256;++t)A.push((t+256).toString(16).slice(1));function pn(t,r=0){return(A[t[r+0]]+A[t[r+1]]+A[t[r+2]]+A[t[r+3]]+"-"+A[t[r+4]]+A[t[r+5]]+"-"+A[t[r+6]]+A[t[r+7]]+"-"+A[t[r+8]]+A[t[r+9]]+"-"+A[t[r+10]]+A[t[r+11]]+A[t[r+12]]+A[t[r+13]]+A[t[r+14]]+A[t[r+15]]).toLowerCase()}function Zi(t){if(!Ji(t))throw TypeError("Invalid UUID");let r;const e=new Uint8Array(16);return e[0]=(r=parseInt(t.slice(0,8),16))>>>24,e[1]=r>>>16&255,e[2]=r>>>8&255,e[3]=r&255,e[4]=(r=parseInt(t.slice(9,13),16))>>>8,e[5]=r&255,e[6]=(r=parseInt(t.slice(14,18),16))>>>8,e[7]=r&255,e[8]=(r=parseInt(t.slice(19,23),16))>>>8,e[9]=r&255,e[10]=(r=parseInt(t.slice(24,36),16))/1099511627776&255,e[11]=r/4294967296&255,e[12]=r>>>24&255,e[13]=r>>>16&255,e[14]=r>>>8&255,e[15]=r&255,e}var Qi=Zi;function eo(t){t=unescape(encodeURIComponent(t));const r=[];for(let e=0;e<t.length;++e)r.push(t.charCodeAt(e));return r}var to="6ba7b810-9dad-11d1-80b4-00c04fd430c8",no="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function vn(t,r,e){function n(o,i,a,c){var u;if(typeof o=="string"&&(o=eo(o)),typeof i=="string"&&(i=Qi(i)),((u=i)===null||u===void 0?void 0:u.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let s=new Uint8Array(16+o.length);if(s.set(i),s.set(o,i.length),s=e(s),s[6]=s[6]&15|r,s[8]=s[8]&63|128,a){c=c||0;for(let f=0;f<16;++f)a[c+f]=s[f];return a}return pn(s)}try{n.name=t}catch{}return n.DNS=to,n.URL=no,n}function ro(t){if(typeof t=="string"){const r=unescape(encodeURIComponent(t));t=new Uint8Array(r.length);for(let e=0;e<r.length;++e)t[e]=r.charCodeAt(e)}return io(oo(ao(t),t.length*8))}function io(t){const r=[],e=t.length*32,n="0123456789abcdef";for(let o=0;o<e;o+=8){const i=t[o>>5]>>>o%32&255,a=parseInt(n.charAt(i>>>4&15)+n.charAt(i&15),16);r.push(a)}return r}function gn(t){return(t+64>>>9<<4)+14+1}function oo(t,r){t[r>>5]|=128<<r%32,t[gn(r)-1]=r;let e=1732584193,n=-271733879,o=-1732584194,i=271733878;for(let a=0;a<t.length;a+=16){const c=e,u=n,s=o,f=i;e=O(e,n,o,i,t[a],7,-680876936),i=O(i,e,n,o,t[a+1],12,-389564586),o=O(o,i,e,n,t[a+2],17,606105819),n=O(n,o,i,e,t[a+3],22,-1044525330),e=O(e,n,o,i,t[a+4],7,-176418897),i=O(i,e,n,o,t[a+5],12,1200080426),o=O(o,i,e,n,t[a+6],17,-1473231341),n=O(n,o,i,e,t[a+7],22,-45705983),e=O(e,n,o,i,t[a+8],7,1770035416),i=O(i,e,n,o,t[a+9],12,-1958414417),o=O(o,i,e,n,t[a+10],17,-42063),n=O(n,o,i,e,t[a+11],22,-1990404162),e=O(e,n,o,i,t[a+12],7,1804603682),i=O(i,e,n,o,t[a+13],12,-40341101),o=O(o,i,e,n,t[a+14],17,-1502002290),n=O(n,o,i,e,t[a+15],22,1236535329),e=I(e,n,o,i,t[a+1],5,-165796510),i=I(i,e,n,o,t[a+6],9,-1069501632),o=I(o,i,e,n,t[a+11],14,643717713),n=I(n,o,i,e,t[a],20,-373897302),e=I(e,n,o,i,t[a+5],5,-701558691),i=I(i,e,n,o,t[a+10],9,38016083),o=I(o,i,e,n,t[a+15],14,-660478335),n=I(n,o,i,e,t[a+4],20,-405537848),e=I(e,n,o,i,t[a+9],5,568446438),i=I(i,e,n,o,t[a+14],9,-1019803690),o=I(o,i,e,n,t[a+3],14,-187363961),n=I(n,o,i,e,t[a+8],20,1163531501),e=I(e,n,o,i,t[a+13],5,-1444681467),i=I(i,e,n,o,t[a+2],9,-51403784),o=I(o,i,e,n,t[a+7],14,1735328473),n=I(n,o,i,e,t[a+12],20,-1926607734),e=P(e,n,o,i,t[a+5],4,-378558),i=P(i,e,n,o,t[a+8],11,-2022574463),o=P(o,i,e,n,t[a+11],16,1839030562),n=P(n,o,i,e,t[a+14],23,-35309556),e=P(e,n,o,i,t[a+1],4,-1530992060),i=P(i,e,n,o,t[a+4],11,1272893353),o=P(o,i,e,n,t[a+7],16,-155497632),n=P(n,o,i,e,t[a+10],23,-1094730640),e=P(e,n,o,i,t[a+13],4,681279174),i=P(i,e,n,o,t[a],11,-358537222),o=P(o,i,e,n,t[a+3],16,-722521979),n=P(n,o,i,e,t[a+6],23,76029189),e=P(e,n,o,i,t[a+9],4,-640364487),i=P(i,e,n,o,t[a+12],11,-421815835),o=P(o,i,e,n,t[a+15],16,530742520),n=P(n,o,i,e,t[a+2],23,-995338651),e=R(e,n,o,i,t[a],6,-198630844),i=R(i,e,n,o,t[a+7],10,1126891415),o=R(o,i,e,n,t[a+14],15,-1416354905),n=R(n,o,i,e,t[a+5],21,-57434055),e=R(e,n,o,i,t[a+12],6,1700485571),i=R(i,e,n,o,t[a+3],10,-1894986606),o=R(o,i,e,n,t[a+10],15,-1051523),n=R(n,o,i,e,t[a+1],21,-2054922799),e=R(e,n,o,i,t[a+8],6,1873313359),i=R(i,e,n,o,t[a+15],10,-30611744),o=R(o,i,e,n,t[a+6],15,-1560198380),n=R(n,o,i,e,t[a+13],21,1309151649),e=R(e,n,o,i,t[a+4],6,-145523070),i=R(i,e,n,o,t[a+11],10,-1120210379),o=R(o,i,e,n,t[a+2],15,718787259),n=R(n,o,i,e,t[a+9],21,-343485551),e=B(e,c),n=B(n,u),o=B(o,s),i=B(i,f)}return[e,n,o,i]}function ao(t){if(t.length===0)return[];const r=t.length*8,e=new Uint32Array(gn(r));for(let n=0;n<r;n+=8)e[n>>5]|=(t[n/8]&255)<<n%32;return e}function B(t,r){const e=(t&65535)+(r&65535);return(t>>16)+(r>>16)+(e>>16)<<16|e&65535}function so(t,r){return t<<r|t>>>32-r}function Ne(t,r,e,n,o,i){return B(so(B(B(r,t),B(n,i)),o),e)}function O(t,r,e,n,o,i,a){return Ne(r&e|~r&n,t,r,o,i,a)}function I(t,r,e,n,o,i,a){return Ne(r&n|e&~n,t,r,o,i,a)}function P(t,r,e,n,o,i,a){return Ne(r^e^n,t,r,o,i,a)}function R(t,r,e,n,o,i,a){return Ne(e^(r|~n),t,r,o,i,a)}var co=ro;vn("v3",48,co);var uo=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),mn={randomUUID:uo};function fo(t,r,e){if(mn.randomUUID&&!r&&!t)return mn.randomUUID();t=t||{};const n=t.random||(t.rng||$i)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,r){e=e||0;for(let o=0;o<16;++o)r[e+o]=n[o];return r}return pn(n)}var ue=fo;function lo(t,r,e,n){switch(t){case 0:return r&e^~r&n;case 1:return r^e^n;case 2:return r&e^r&n^e&n;case 3:return r^e^n}}function mt(t,r){return t<<r|t>>>32-r}function ho(t){const r=[1518500249,1859775393,2400959708,3395469782],e=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof t=="string"){const a=unescape(encodeURIComponent(t));t=[];for(let c=0;c<a.length;++c)t.push(a.charCodeAt(c))}else Array.isArray(t)||(t=Array.prototype.slice.call(t));t.push(128);const n=t.length/4+2,o=Math.ceil(n/16),i=new Array(o);for(let a=0;a<o;++a){const c=new Uint32Array(16);for(let u=0;u<16;++u)c[u]=t[a*64+u*4]<<24|t[a*64+u*4+1]<<16|t[a*64+u*4+2]<<8|t[a*64+u*4+3];i[a]=c}i[o-1][14]=(t.length-1)*8/Math.pow(2,32),i[o-1][14]=Math.floor(i[o-1][14]),i[o-1][15]=(t.length-1)*8&4294967295;for(let a=0;a<o;++a){const c=new Uint32Array(80);for(let d=0;d<16;++d)c[d]=i[a][d];for(let d=16;d<80;++d)c[d]=mt(c[d-3]^c[d-8]^c[d-14]^c[d-16],1);let u=e[0],s=e[1],f=e[2],p=e[3],l=e[4];for(let d=0;d<80;++d){const h=Math.floor(d/20),v=mt(u,5)+lo(h,s,f,p)+l+r[h]+c[d]>>>0;l=p,p=f,f=mt(s,30)>>>0,s=u,u=v}e[0]=e[0]+u>>>0,e[1]=e[1]+s>>>0,e[2]=e[2]+f>>>0,e[3]=e[3]+p>>>0,e[4]=e[4]+l>>>0}return[e[0]>>24&255,e[0]>>16&255,e[0]>>8&255,e[0]&255,e[1]>>24&255,e[1]>>16&255,e[1]>>8&255,e[1]&255,e[2]>>24&255,e[2]>>16&255,e[2]>>8&255,e[2]&255,e[3]>>24&255,e[3]>>16&255,e[3]>>8&255,e[3]&255,e[4]>>24&255,e[4]>>16&255,e[4]>>8&255,e[4]&255]}var po=ho;vn("v5",80,po);var vo=st(Ar()),je=function(){return je=Object.assign||function(t){for(var r,e=1,n=arguments.length;e<n;e++){r=arguments[e];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},je.apply(this,arguments)},Me="00000000-0000-0000-0000-000000000000",He="unknown",go="desktop",mo="web",wo="com.amazon.rum.session_start_event",yo=function(){function t(r,e,n,o){this.appMonitorDetails=r,this.config=e,this.record=n,this.pageManager=o,this.session={sessionId:Me,record:this.sample(),eventCount:0},this.initializeUser(),this.collectAttributes(),this.addSessionAttributes(this.config.sessionAttributes),this.getSessionFromCookie()}return t.prototype.getSession=function(){return this.session.sessionId===Me?this.createSession():this.session.sessionId!==Me&&new Date>this.sessionExpiry&&this.createSession(),this.session},t.prototype.getAttributes=function(){return this.attributes},t.prototype.addSessionAttributes=function(r){this.attributes=je(je({},r),this.attributes)},t.prototype.getUserId=function(){return this.useCookies()?this.userId:Me},t.prototype.incrementSessionEventCount=function(){this.session.eventCount++,this.renewSession()},t.prototype.initializeUser=function(){var r="";this.userExpiry=new Date,this.userExpiry.setDate(this.userExpiry.getDate()+this.config.userIdRetentionDays),this.config.userIdRetentionDays<=0?this.userId="00000000-0000-0000-0000-000000000000":this.useCookies()?(r=this.getUserIdCookie(),this.userId=r||ue(),this.createOrRenewUserCookie(r,this.userExpiry)):this.userId=ue()},t.prototype.createOrRenewSessionCookie=function(r,e){btoa&&dn(this.sessionCookieName(),btoa(JSON.stringify(r)),this.config.cookieAttributes,void 0,e)},t.prototype.createOrRenewUserCookie=function(r,e){dn(an,r,this.config.cookieAttributes,void 0,e)},t.prototype.getUserIdCookie=function(){return hn(an)},t.prototype.getSessionFromCookie=function(){if(this.useCookies()){var r=hn(this.sessionCookieName());if(r&&atob)try{this.session=JSON.parse(atob(r)),this.pageManager.resumeSession(this.session.page)}catch{}}},t.prototype.storeSessionAsCookie=function(){this.useCookies()&&this.config.userIdRetentionDays>0&&this.createOrRenewUserCookie(this.userId,this.userExpiry),this.useCookies()&&this.createOrRenewSessionCookie(this.session,this.sessionExpiry)},t.prototype.createSession=function(){this.session={sessionId:ue(),record:this.sample(),eventCount:0},this.session.page=this.pageManager.getPage(),this.sessionExpiry=new Date(new Date().getTime()+this.config.sessionLengthSeconds*1e3),this.storeSessionAsCookie(),this.record(this.session,wo,{version:"1.0.0"})},t.prototype.renewSession=function(){this.sessionExpiry=new Date(new Date().getTime()+this.config.sessionLengthSeconds*1e3),this.session.page=this.pageManager.getPage(),this.storeSessionAsCookie()},t.prototype.collectAttributes=function(){var r=new vo.UAParser(navigator.userAgent).getResult();this.attributes={browserLanguage:navigator.language,browserName:r.browser.name?r.browser.name:He,browserVersion:r.browser.version?r.browser.version:He,osName:r.os.name?r.os.name:He,osVersion:r.os.version?r.os.version:He,deviceType:r.device.type?r.device.type:go,platformType:mo,domain:window.location.hostname}},t.prototype.useCookies=function(){return navigator.cookieEnabled&&this.config.allowCookies},t.prototype.sample=function(){return Math.random()<this.config.sessionSampleRate},t.prototype.sessionCookieName=function(){return this.config.cookieAttributes.unique?"".concat(on,"_").concat(this.appMonitorDetails.id):on},t}(),Ue=st(Or()),bo=function(){var t=function(r,e){return t=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])},t(r,e)};return function(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(r,e);function n(){this.constructor=r}r.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),xe=function(t){bo(r,t);function r(){var e=t!==null&&t.apply(this,arguments)||this;return e.enable=e.patch.bind(e,!0),e.disable=e.patch.bind(e,!1),e.enabled=!1,e}return r.prototype.patchAll=function(){for(var e=Ue.wrap.bind(Ue),n=0,o=this.patches;n<o.length;n++){var i=o[n];e(i.nodule,i.name,i.wrapper())}},r.prototype.unpatchAll=function(){for(var e=Ue.unwrap.bind(Ue),n=0,o=this.patches;n<o.length;n++){var i=o[n];e(i.nodule,i.name)}},r.prototype.patch=function(e){e===void 0&&(e=!0),this.enabled!==e&&(this.enabled=e,e?this.patchAll():this.unpatchAll())},r}(W),_o=function(){var t=function(r,e){return t=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])},t(r,e)};return function(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(r,e);function n(){this.constructor=r}r.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Eo=function(t){_o(r,t);function r(e,n,o){var i=t.call(this,"virtual-page-load-timer")||this;return i.sendWrapper=function(){var a=i;return function(c){return function(){return a.recordXhr(this),this.addEventListener("loadend",a.endTracking),c.apply(this,arguments)}}},i.endTracking=function(a){var c=Date.now(),u=a.target;u.removeEventListener("loadend",i.endTracking),i.removeXhr(u,c)},i.fetch=function(a,c,u){return a.apply(c,u).catch(function(s){throw s}).finally(i.decrementFetchCounter)},i.fetchWrapper=function(){var a=i;return function(c){return function(u,s){return a.fetchCounter+=1,a.fetch(c,this,arguments)}}},i.decrementFetchCounter=function(){i.isPageLoaded||(i.latestEndTime=Date.now()),i.fetchCounter-=1},i.checkLoadStatus=function(){i.ongoingRequests.size===0&&i.fetchCounter===0&&(clearInterval(i.periodicCheckerId),clearTimeout(i.timeoutCheckerId),i.domMutationObserver.disconnect(),i.recordRouteChangeNavigationEvent(i.pageManager.getPage()),i.periodicCheckerId=void 0,i.timeoutCheckerId=void 0,i.isPageLoaded=!0)},i.declareTimeout=function(){clearInterval(i.periodicCheckerId),i.periodicCheckerId=void 0,i.timeoutCheckerId=void 0,i.domMutationObserver.disconnect(),i.isPageLoaded=!0},i.resetInterval=function(){i.latestEndTime=Date.now(),clearInterval(i.periodicCheckerId),i.periodicCheckerId=setInterval(i.checkLoadStatus,i.config.routeChangeComplete)},i.moveItemsFromBuffer=function(a){i.ongoingRequests.add(a)},i.updateLatestInteractionTime=function(a){i.latestInteractionTime=Date.now()},i.periodicCheckerId=void 0,i.timeoutCheckerId=void 0,i.domMutationObserver=new MutationObserver(i.resetInterval),i.ongoingRequests=new Set,i.requestBuffer=new Set,i.fetchCounter=0,i.isPageLoaded=!0,i.latestEndTime=0,i.latestInteractionTime=0,i.config=n,i.pageManager=e,i.record=o,i.enable(),document.addEventListener("mousedown",i.updateLatestInteractionTime),document.addEventListener("keydown",i.updateLatestInteractionTime),i}return Object.defineProperty(r.prototype,"patches",{get:function(){return[{nodule:XMLHttpRequest.prototype,name:"send",wrapper:this.sendWrapper},{nodule:window,name:"fetch",wrapper:this.fetchWrapper}]},enumerable:!1,configurable:!0}),r.prototype.startTiming=function(){this.latestEndTime=Date.now(),this.periodicCheckerId&&clearInterval(this.periodicCheckerId),this.timeoutCheckerId&&clearTimeout(this.timeoutCheckerId),this.domMutationObserver.disconnect(),this.periodicCheckerId=setInterval(this.checkLoadStatus,this.config.routeChangeComplete),this.timeoutCheckerId=setTimeout(this.declareTimeout,this.config.routeChangeTimeout),this.domMutationObserver.observe(document,{subtree:!0,childList:!0,attributes:!1,characterData:!1}),this.isPageLoaded=!1,this.requestBuffer.forEach(this.moveItemsFromBuffer),this.requestBuffer.clear()},r.prototype.recordXhr=function(e){var n=this.pageManager.getPage();n&&this.isPageLoaded===!1?this.ongoingRequests.add(e):this.requestBuffer.add(e)},r.prototype.removeXhr=function(e,n){var o=this.pageManager.getPage();o&&this.ongoingRequests.has(e)?(this.ongoingRequests.delete(e),this.latestEndTime=n):this.requestBuffer.has(e)&&this.requestBuffer.delete(e)},r.prototype.recordRouteChangeNavigationEvent=function(e){var n={version:"1.0.0",initiatorType:"route_change",navigationType:"navigate",startTime:e.start,duration:this.latestEndTime-e.start};this.record&&this.record(vt,n)},r}(xe),De=function(){return De=Object.assign||function(t){for(var r,e=1,n=arguments.length;e<n;e++){r=arguments[e];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},De.apply(this,arguments)},So=function(){function t(r,e){this.TIMEOUT=1e3,this.config=r,this.record=e,this.page=void 0,this.resumed=!1,this.recordInteraction=!1,this.virtualPageLoadTimer=new Eo(this,r,e)}return t.prototype.getPage=function(){return this.page},t.prototype.getAttributes=function(){return this.attributes},t.prototype.resumeSession=function(r){this.recordInteraction=!0,r&&(this.page=r,this.resumed=!0)},t.prototype.recordPageView=function(r){var e;if(typeof r=="string"?e=r:e=r.pageId,this.useCookies()&&(this.recordInteraction=!0),!this.page)this.createLandingPage(e);else if(this.page.pageId!==e)this.createNextPage(this.page,e);else if(this.resumed){this.collectAttributes(this.page,typeof r=="object"?r:void 0);return}else return;this.collectAttributes(this.page,typeof r=="object"?r:void 0),this.recordPageViewEvent(this.page)},t.prototype.createNextPage=function(r,e){var n=Date.now(),o=this.virtualPageLoadTimer.latestInteractionTime;!this.resumed&&n-o<=this.TIMEOUT&&(n=o,this.virtualPageLoadTimer.startTiming()),this.timeOnParentPage=n-r.start,this.resumed=!1,this.page={pageId:e,parentPageId:r.pageId,interaction:r.interaction+1,referrer:document.referrer,referrerDomain:this.getDomainFromReferrer(),start:n}},t.prototype.createLandingPage=function(r){this.page={pageId:r,interaction:0,referrer:document.referrer,referrerDomain:this.getDomainFromReferrer(),start:Date.now()}},t.prototype.collectAttributes=function(r,e){this.attributes={title:document.title,pageId:r.pageId},this.recordInteraction&&(this.attributes.interaction=r.interaction,r.parentPageId!==void 0&&(this.attributes.parentPageId=r.parentPageId)),e?.pageTags&&(this.attributes.pageTags=e.pageTags),e?.pageAttributes&&(this.attributes=De(De({},e.pageAttributes),this.attributes))},t.prototype.createPageViewEvent=function(r){var e={version:"1.0.0",pageId:r.pageId};return this.recordInteraction&&(e.interaction=r.interaction,e.pageInteractionId=r.pageId+"-"+r.interaction,r.parentPageId!==void 0&&(e.parentPageInteractionId=r.parentPageId+"-"+(r.interaction-1),e.timeOnParentPage=this.timeOnParentPage),e.referrer=document.referrer,e.referrerDomain=this.getDomainFromReferrer()),e},t.prototype.recordPageViewEvent=function(r){this.record(ji,this.createPageViewEvent(r))},t.prototype.useCookies=function(){return navigator.cookieEnabled&&this.config.allowCookies},t.prototype.getDomainFromReferrer=function(){try{return new URL(document.referrer).hostname}catch{return document.referrer==="localhost"?document.referrer:""}},t}(),fe=function(){return fe=Object.assign||function(t){for(var r,e=1,n=arguments.length;e<n;e++){r=arguments[e];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},fe.apply(this,arguments)},To="1.13.7",Co=function(){function t(r,e){var n=this;this.events=[],this.recordPageView=function(o){n.isCurrentUrlAllowed()&&n.pageManager.recordPageView(o)},this.recordEvent=function(o,i){if(n.enabled&&n.isCurrentUrlAllowed()){var a=n.sessionManager.getSession();n.sessionManager.incrementSessionEventCount(),n.canRecord(a)&&n.addRecordToCache(o,i)}},this.getSession=function(){if(n.isCurrentUrlAllowed())return n.sessionManager.getSession()},this.recordSessionInitEvent=function(o,i,a){n.enabled&&(n.sessionManager.incrementSessionEventCount(),n.canRecord(o)&&n.addRecordToCache(i,a))},this.canRecord=function(o){return o.record&&(o.eventCount<=n.config.sessionEventLimit||n.config.sessionEventLimit<=0)},this.addRecordToCache=function(o,i){if(n.enabled){n.events.length===n.config.eventCacheSize&&n.events.shift();var a=fe(fe(fe({},n.sessionManager.getAttributes()),n.pageManager.getAttributes()),{version:"1.0.0","aws:client":n.installationMethod,"aws:clientVersion":To});n.events.push({details:JSON.stringify(i),id:ue(),metadata:JSON.stringify(a),timestamp:new Date,type:o})}},this.appMonitorDetails=r,this.config=e,this.enabled=!0,this.pageManager=new So(e,this.recordEvent),this.sessionManager=new yo(r,e,this.recordSessionInitEvent,this.pageManager),this.installationMethod=e.client}return t.prototype.enable=function(){this.enabled=!0},t.prototype.disable=function(){this.enabled=!1},t.prototype.hasEvents=function(){return this.events.length!==0},t.prototype.getEventBatch=function(){var r=[];return this.events.length===0||(this.events.length<=this.config.batchLimit?(r=this.events,this.events=[]):r=this.events.splice(0,this.config.batchLimit)),r},t.prototype.getAppMonitorDetails=function(){return this.appMonitorDetails},t.prototype.getUserDetails=function(){return{userId:this.sessionManager.getUserId(),sessionId:this.sessionManager.getSession().sessionId}},t.prototype.addSessionAttributes=function(r){this.sessionManager.addSessionAttributes(r)},t.prototype.isCurrentUrlAllowed=function(){var r=document.location.toString(),e=this.config.pagesToExclude.some(function(o){return o.test(r)}),n=this.config.pagesToInclude.some(function(o){return o.test(r)});return n&&!e},t}(),wn={};for(let t=0;t<256;t++){let r=t.toString(16).toLowerCase();r.length===1&&(r=`0${r}`),wn[t]=r}function $(t){let r="";for(let e=0;e<t.byteLength;e++)r+=wn[t[e]];return r}var yn=t=>{if(typeof t=="function")return t;const r=Promise.resolve(t);return()=>r},Ao=t=>new TextEncoder().encode(t),le=t=>typeof t=="string"?Ao(t):ArrayBuffer.isView(t)?new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(t),Oo="X-Amz-Algorithm",Io="X-Amz-Credential",bn="X-Amz-Date",Po="X-Amz-SignedHeaders",Ro="X-Amz-Expires",_n="X-Amz-Signature",En="X-Amz-Security-Token",Sn="authorization",Tn=bn.toLowerCase(),Lo="date",ko=[Sn,Tn,Lo],No=_n.toLowerCase(),wt="x-amz-content-sha256",jo=En.toLowerCase(),Mo={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},Ho=/^proxy-/,Uo=/^sec-/,yt="AWS4-HMAC-SHA256",xo="AWS4-HMAC-SHA256-PAYLOAD",Do="UNSIGNED-PAYLOAD",Bo=50,Cn="aws4_request",qo=60*60*24*7,Be={},bt=[],_t=(t,r,e)=>`${t}/${r}/${e}/${Cn}`,Fo=async(t,r,e,n,o)=>{const i=await An(t,r.secretAccessKey,r.accessKeyId),a=`${e}:${n}:${o}:${$(i)}:${r.sessionToken}`;if(a in Be)return Be[a];for(bt.push(a);bt.length>Bo;)delete Be[bt.shift()];let c=`AWS4${r.secretAccessKey}`;for(const u of[e,n,o,Cn])c=await An(t,c,u);return Be[a]=c},An=(t,r,e)=>{const n=new t(r);return n.update(le(e)),n.digest()},On=({headers:t},r,e)=>{const n={};for(const o of Object.keys(t).sort()){if(t[o]==null)continue;const i=o.toLowerCase();(i in Mo||r?.has(i)||Ho.test(i)||Uo.test(i))&&(!e||e&&!e.has(i))||(n[i]=t[o].trim().replace(/\s+/g," "))}return n},Vo=({query:t={}})=>{const r=[],e={};for(const n of Object.keys(t).sort()){if(n.toLowerCase()===No)continue;r.push(n);const o=t[n];typeof o=="string"?e[n]=`${H(n)}=${H(o)}`:Array.isArray(o)&&(e[n]=o.slice(0).sort().reduce((i,a)=>i.concat([`${H(n)}=${H(a)}`]),[]).join("&"))}return r.map(n=>e[n]).filter(n=>n).join("&")},Go=t=>typeof ArrayBuffer=="function"&&t instanceof ArrayBuffer||Object.prototype.toString.call(t)==="[object ArrayBuffer]",Et=async({headers:t,body:r},e)=>{for(const n of Object.keys(t))if(n.toLowerCase()===wt)return t[n];if(r==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if(typeof r=="string"||ArrayBuffer.isView(r)||Go(r)){const n=new e;return n.update(le(r)),$(await n.digest())}return Do},zo=(t,r)=>{t=t.toLowerCase();for(const e of Object.keys(r))if(t===e.toLowerCase())return!0;return!1},In=({headers:t,query:r,...e})=>({...e,headers:{...t},query:r?Wo(r):void 0}),Wo=t=>Object.keys(t).reduce((r,e)=>{const n=t[e];return{...r,[e]:Array.isArray(n)?[...n]:n}},{}),Xo=(t,r={})=>{const{headers:e,query:n={}}=typeof t.clone=="function"?t.clone():In(t);for(const o of Object.keys(e)){const i=o.toLowerCase();i.slice(0,6)==="x-amz-"&&!r.unhoistableHeaders?.has(i)&&(n[o]=e[o],delete e[o])}return{...t,headers:e,query:n}},Pn=t=>{t=typeof t.clone=="function"?t.clone():In(t);for(const r of Object.keys(t.headers))ko.indexOf(r.toLowerCase())>-1&&delete t.headers[r];return t},$o=t=>Ko(t).toISOString().replace(/\.\d{3}Z$/,"Z"),Ko=t=>typeof t=="number"?new Date(t*1e3):typeof t=="string"?Number(t)?new Date(Number(t)*1e3):new Date(t):t,Yo=class{constructor({applyChecksum:t,credentials:r,region:e,service:n,sha256:o,uriEscapePath:i=!0}){this.service=n,this.sha256=o,this.uriEscapePath=i,this.applyChecksum=typeof t=="boolean"?t:!0,this.regionProvider=yn(e),this.credentialProvider=yn(r)}async presign(t,r={}){const{signingDate:e=new Date,expiresIn:n=3600,unsignableHeaders:o,unhoistableHeaders:i,signableHeaders:a,signingRegion:c,signingService:u}=r,s=await this.credentialProvider();this.validateResolvedCredentials(s);const f=c??await this.regionProvider(),{longDate:p,shortDate:l}=qe(e);if(n>qo)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");const d=_t(l,f,u??this.service),h=Xo(Pn(t),{unhoistableHeaders:i});s.sessionToken&&(h.query[En]=s.sessionToken),h.query[Oo]=yt,h.query[Io]=`${s.accessKeyId}/${d}`,h.query[bn]=p,h.query[Ro]=n.toString(10);const v=On(h,o,a);return h.query[Po]=Rn(v),h.query[_n]=await this.getSignature(p,d,this.getSigningKey(s,f,l,u),this.createCanonicalRequest(h,v,await Et(t,this.sha256))),h}async sign(t,r){return typeof t=="string"?this.signString(t,r):t.headers&&t.payload?this.signEvent(t,r):this.signRequest(t,r)}async signEvent({headers:t,payload:r},{signingDate:e=new Date,priorSignature:n,signingRegion:o,signingService:i}){const a=o??await this.regionProvider(),{shortDate:c,longDate:u}=qe(e),s=_t(c,a,i??this.service),f=await Et({headers:{},body:r},this.sha256),p=new this.sha256;p.update(t);const l=$(await p.digest()),d=[xo,u,s,n,l,f].join(`
2
+ `);return this.signString(d,{signingDate:e,signingRegion:a,signingService:i})}async signString(t,{signingDate:r=new Date,signingRegion:e,signingService:n}={}){const o=await this.credentialProvider();this.validateResolvedCredentials(o);const i=e??await this.regionProvider(),{shortDate:a}=qe(r),c=new this.sha256(await this.getSigningKey(o,i,a,n));return c.update(le(t)),$(await c.digest())}async signRequest(t,{signingDate:r=new Date,signableHeaders:e,unsignableHeaders:n,signingRegion:o,signingService:i}={}){const a=await this.credentialProvider();this.validateResolvedCredentials(a);const c=o??await this.regionProvider(),u=Pn(t),{longDate:s,shortDate:f}=qe(r),p=_t(f,c,i??this.service);u.headers[Tn]=s,a.sessionToken&&(u.headers[jo]=a.sessionToken);const l=await Et(u,this.sha256);!zo(wt,u.headers)&&this.applyChecksum&&(u.headers[wt]=l);const d=On(u,n,e),h=await this.getSignature(s,p,this.getSigningKey(a,c,f,i),this.createCanonicalRequest(u,d,l));return u.headers[Sn]=`${yt} Credential=${a.accessKeyId}/${p}, SignedHeaders=${Rn(d)}, Signature=${h}`,u}createCanonicalRequest(t,r,e){const n=Object.keys(r).sort();return`${t.method}
3
3
  ${this.getCanonicalPath(t)}
4
4
  ${Vo(t)}
5
5
  ${n.map(o=>`${o}:${r[o]}`).join(`
6
6
  `)}
7
7
 
8
8
  ${n.join(";")}
9
- ${e}`}async createStringToSign(t,r,e){const n=new this.sha256;n.update(le(e));const o=await n.digest();return`${wt}
9
+ ${e}`}async createStringToSign(t,r,e){const n=new this.sha256;n.update(le(e));const o=await n.digest();return`${yt}
10
10
  ${t}
11
11
  ${r}
12
- ${$(o)}`}getCanonicalPath({path:t}){if(this.uriEscapePath){const r=[];for(const o of t.split("/"))o?.length!==0&&o!=="."&&(o===".."?r.pop():r.push(o));const e=`${t?.startsWith("/")?"/":""}${r.join("/")}${r.length>0&&t?.endsWith("/")?"/":""}`;return encodeURIComponent(e).replace(/%2F/g,"/")}return t}async getSignature(t,r,e,n){const o=await this.createStringToSign(t,r,n),i=new this.sha256(await e);return i.update(le(o)),$(await i.digest())}getSigningKey(t,r,e,n){return Fo(this.sha256,t,e,r,n||this.service)}validateResolvedCredentials(t){if(typeof t!="object"||typeof t.accessKeyId!="string"||typeof t.secretAccessKey!="string")throw new Error("Resolved credential object is not valid")}},Be=t=>{const r=$o(t).replace(/[\-:]/g,"");return{longDate:r,shortDate:r.slice(0,8)}},Rn=t=>Object.keys(t).sort().join(";"),Ln=st(ri()),Y=function(){return Y=Object.assign||function(t){for(var r,e=1,n=arguments.length;e<n;e++){r=arguments[e];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},Y.apply(this,arguments)},Fe=function(t,r,e,n){function o(i){return i instanceof e?i:new e(function(a){a(i)})}return new(e||(e=Promise))(function(i,a){function c(f){try{s(n.next(f))}catch(d){a(d)}}function u(f){try{s(n.throw(f))}catch(d){a(d)}}function s(f){f.done?i(f.value):o(f.value).then(c,u)}s((n=n.apply(t,r||[])).next())})},Ve=function(t,r){var e={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(s){return function(f){return u([s,f])}}function u(s){if(n)throw new TypeError("Generator is already executing.");for(;e;)try{if(n=1,o&&(i=s[0]&2?o.return:s[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,s[1])).done)return i;switch(o=0,i&&(s=[s[0]&2,i.value]),s[0]){case 0:case 1:i=s;break;case 4:return e.label++,{value:s[1],done:!1};case 5:e.label++,o=s[1],s=[0];continue;case 7:s=e.ops.pop(),e.trys.pop();continue;default:if(i=e.trys,!(i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){e=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){e.label=s[1];break}if(s[0]===6&&e.label<i[1]){e.label=i[1],i=s;break}if(i&&e.label<i[2]){e.label=i[2],e.ops.push(s);break}i[2]&&e.ops.pop(),e.trys.pop();continue}s=r.call(t,e)}catch(f){s=[6,f],o=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},Jo="rum",Zo="POST",Qo="application/json",ea="text/plain;charset=UTF-8",ta={expiresIn:60},na=function(){function t(r){var e=this;this.sendFetch=function(n){return Fe(e,void 0,void 0,function(){var o,i,a;return Ve(this,function(c){switch(c.label){case 0:return[4,this.getHttpRequestOptions(n,Qo)];case 1:return o=c.sent(),i=new se(o),this.awsSigV4?[4,this.awsSigV4.sign(i)]:[3,3];case 2:i=c.sent(),c.label=3;case 3:return a=this.config.fetchRequestHandler.handle(i),[2,a]}})})},this.sendBeacon=function(n){return Fe(e,void 0,void 0,function(){var o,i,a;return Ve(this,function(c){switch(c.label){case 0:return[4,this.getHttpRequestOptions(n,ea)];case 1:return o=c.sent(),i=new se(o),this.awsSigV4?[4,this.awsSigV4.presign(i,ta)]:[3,3];case 2:i=c.sent(),c.label=3;case 3:return a=this.config.beaconRequestHandler.handle(i),[2,a]}})})},this.getHttpRequestOptions=function(n,o){return Fe(e,void 0,void 0,function(){var i,a,c,u,s,f,d,l;return Ve(this,function(h){switch(h.label){case 0:return i=JSON.stringify(ra(n)),a=this.config.endpoint.pathname.replace(/\/$/,""),c={method:Zo,protocol:this.config.endpoint.protocol,headers:{"content-type":o,host:this.config.endpoint.host},hostname:this.config.endpoint.hostname,path:"".concat(a,"/appmonitors/").concat(n.AppMonitorDetails.id),body:i},this.awsSigV4?(u=[Y({},c)],d={},s=[Y({},c.headers)],l={},f="X-Amz-Content-Sha256",[4,oa(i)]):[3,2];case 1:return[2,Y.apply(void 0,u.concat([(d.headers=Y.apply(void 0,s.concat([(l[f]=h.sent(),l)])),d)]))];case 2:return[2,c]}})})},this.config=r,r.credentials&&(this.awsSigV4=new Yo({applyChecksum:!0,credentials:r.credentials,region:r.region,service:Jo,uriEscapePath:!0,sha256:Ln.Sha256}))}return t}(),ra=function(t){var r=[];t.RumEvents.forEach(function(n){return r.push(ia(n))});var e={BatchId:t.BatchId,AppMonitorDetails:t.AppMonitorDetails,UserDetails:t.UserDetails,RumEvents:r};return e},ia=function(t){return{id:t.id,timestamp:Math.round(t.timestamp.getTime()/1e3),type:t.type,metadata:t.metadata,details:t.details}},oa=function(t){return Fe(void 0,void 0,void 0,function(){var r,e;return Ve(this,function(n){switch(n.label){case 0:return r=new Ln.Sha256,r.update(t),e=$,[4,r.digest()];case 1:return[2,e.apply(void 0,[n.sent()]).toLowerCase()]}})})};function kn(t){const r=[];for(let e of Object.keys(t).sort()){const n=t[e];if(e=H(e),Array.isArray(n))for(let o=0,i=n.length;o<i;o++)r.push(`${e}=${H(n[o])}`);else{let o=e;(n||typeof n=="string")&&(o+=`=${H(n)}`),r.push(o)}}return r.join("&")}var aa=function(){function t(){}return t.prototype.handle=function(r){var e=this.sendBeacon(r);return new Promise(function(n,o){e?n({response:new ft({statusCode:200})}):o()})},t.prototype.sendBeacon=function(r){var e=r.path;if(r.query){var n=kn(r.query);n&&(e+="?".concat(n))}var o=r.port,i="".concat(r.protocol,"//").concat(r.hostname).concat(o?":".concat(o):"").concat(e);return navigator.sendBeacon(i,r.body)},t}(),sa=function(t){return t===void 0&&(t=0),new Promise(function(r,e){t&&setTimeout(function(){var n=new Error("Request did not complete within ".concat(t," ms"));n.name="TimeoutError",e(n)},t)})},ca=function(){function t(r){var e=r===void 0?{}:r,n=e.fetchFunction,o=e.requestTimeout;this.requestTimeout=o,this.fetchFunction=n}return t.prototype.destroy=function(){},t.prototype.handle=function(r,e){var n=e===void 0?{}:e,o=n.abortSignal,i=this.requestTimeout;if(o?.aborted){var a=new Error("Request aborted");return a.name="AbortError",Promise.reject(a)}var c=r.path;if(r.query){var u=kn(r.query);u&&(c+="?".concat(u))}var s=r.port,f=r.method,d="".concat(r.protocol,"//").concat(r.hostname).concat(s?":".concat(s):"").concat(c),l=f==="GET"||f==="HEAD"?void 0:r.body,h={body:l,headers:new Headers(r.headers),method:f};typeof AbortController<"u"&&(h.signal=o);var p=new Request(d,h),v=[this.fetchFunction.apply(window,[p]).then(function(g){for(var A=g.headers,j={},y=0,b=A.entries();y<b.length;y++){var L=b[y];j[L[0]]=L[1]}var G=g.body!==void 0;return G?{response:new ft({headers:j,statusCode:g.status,body:g.body})}:g.blob().then(function(ge){return{response:new ft({headers:j,statusCode:g.status,body:ge})}})}),sa(i)];return o&&v.push(new Promise(function(g,A){o.onabort=function(){var j=new Error("Request aborted");j.name="AbortError",A(j)}})),Promise.race(v)},t}(),Nn=function(t,r,e,n){function o(i){return i instanceof e?i:new e(function(a){a(i)})}return new(e||(e=Promise))(function(i,a){function c(f){try{s(n.next(f))}catch(d){a(d)}}function u(f){try{s(n.throw(f))}catch(d){a(d)}}function s(f){f.done?i(f.value):o(f.value).then(c,u)}s((n=n.apply(t,r||[])).next())})},jn=function(t,r){var e={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(s){return function(f){return u([s,f])}}function u(s){if(n)throw new TypeError("Generator is already executing.");for(;e;)try{if(n=1,o&&(i=s[0]&2?o.return:s[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,s[1])).done)return i;switch(o=0,i&&(s=[s[0]&2,i.value]),s[0]){case 0:case 1:i=s;break;case 4:return e.label++,{value:s[1],done:!1};case 5:e.label++,o=s[1],s=[0];continue;case 7:s=e.ops.pop(),e.trys.pop();continue;default:if(i=e.trys,!(i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){e=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){e.label=s[1];break}if(s[0]===6&&e.label<i[1]){e.label=i[1],i=s;break}if(i&&e.label<i[2]){e.label=i[2],e.ops.push(s);break}i[2]&&e.ops.pop(),e.trys.pop();continue}s=r.call(t,e)}catch(f){s=[6,f],o=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},ua=function(){function t(r,e,n){n===void 0&&(n=function(o){return o*2e3}),this.isStatusCode2xx=function(o){return o>=200&&o<300},this.handler=r,this.retries=e,this.backoff=n}return t.prototype.handle=function(r){return Nn(this,void 0,void 0,function(){var e,n,o;return jn(this,function(i){switch(i.label){case 0:e=this.retries,i.label=1;case 1:i.label=2;case 2:return i.trys.push([2,4,,6]),[4,this.handler.handle(r)];case 3:if(n=i.sent(),this.isStatusCode2xx(n.response.statusCode))return[2,n];throw new Error("".concat(n.response.statusCode));case 4:if(o=i.sent(),!e)throw o;return e--,[4,this.sleep(this.backoff(this.retries-e))];case 5:return i.sent(),[3,6];case 6:return[3,1];case 7:return[2]}})})},t.prototype.sleep=function(r){return Nn(this,void 0,void 0,function(){return jn(this,function(e){return[2,new Promise(function(n){return setTimeout(n,r)})]})})},t}(),Ge=function(t,r,e,n){function o(i){return i instanceof e?i:new e(function(a){a(i)})}return new(e||(e=Promise))(function(i,a){function c(f){try{s(n.next(f))}catch(d){a(d)}}function u(f){try{s(n.throw(f))}catch(d){a(d)}}function s(f){f.done?i(f.value):o(f.value).then(c,u)}s((n=n.apply(t,r||[])).next())})},ze=function(t,r){var e={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(s){return function(f){return u([s,f])}}function u(s){if(n)throw new TypeError("Generator is already executing.");for(;e;)try{if(n=1,o&&(i=s[0]&2?o.return:s[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,s[1])).done)return i;switch(o=0,i&&(s=[s[0]&2,i.value]),s[0]){case 0:case 1:i=s;break;case 4:return e.label++,{value:s[1],done:!1};case 5:e.label++,o=s[1],s=[0];continue;case 7:s=e.ops.pop(),e.trys.pop();continue;default:if(i=e.trys,!(i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){e=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){e.label=s[1];break}if(s[0]===6&&e.label<i[1]){e.label=i[1],i=s;break}if(i&&e.label<i[2]){e.label=i[2],e.ops.push(s);break}i[2]&&e.ops.pop(),e.trys.pop();continue}s=r.call(t,e)}catch(f){s=[6,f],o=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},Mn="CWR: Cannot dispatch; no AWS credentials.",fa=function(){function t(r,e,n,o){var i=this;this.dispatchFetch=function(){return Ge(i,void 0,void 0,function(){return ze(this,function(a){return this.doRequest()?[2,this.rum.sendFetch(this.createRequest()).catch(this.handleReject)]:[2]})})},this.dispatchBeacon=function(){return Ge(i,void 0,void 0,function(){var a,c=this;return ze(this,function(u){return this.doRequest()?(a=this.createRequest(),[2,this.rum.sendBeacon(a).catch(function(){return c.rum.sendFetch(a)})]):[2]})})},this.dispatchFetchFailSilent=function(){return Ge(i,void 0,void 0,function(){return ze(this,function(a){return[2,this.dispatchFetch().catch(function(){})]})})},this.dispatchBeaconFailSilent=function(){return Ge(i,void 0,void 0,function(){return ze(this,function(a){return[2,this.dispatchBeacon().catch(function(){})]})})},this.handleReject=function(a){throw i.disable(),a},this.defaultClientBuilder=function(a,c,u){return new na({fetchRequestHandler:new ua(new ca({fetchFunction:i.config.fetchFunction}),i.config.retries),beaconRequestHandler:new aa,endpoint:a,region:c,credentials:u})},this.region=r,this.endpoint=e,this.eventCache=n,this.enabled=!0,this.buildClient=o.clientBuilder||this.defaultClientBuilder,this.config=o,this.startDispatchTimer(),o.signing?this.rum={sendFetch:function(){return Promise.reject(new Error(Mn))},sendBeacon:function(){return Promise.reject(new Error(Mn))}}:this.rum=this.buildClient(this.endpoint,this.region,void 0)}return t.prototype.enable=function(){this.enabled=!0,this.startDispatchTimer()},t.prototype.disable=function(){this.stopDispatchTimer(),this.enabled=!1},t.prototype.setAwsCredentials=function(r){this.rum=this.buildClient(this.endpoint,this.region,r),typeof r=="function"&&r()},t.prototype.startDispatchTimer=function(){document.addEventListener("visibilitychange",this.config.useBeacon?this.dispatchBeaconFailSilent:this.dispatchFetchFailSilent),document.addEventListener("pagehide",this.config.useBeacon?this.dispatchBeaconFailSilent:this.dispatchFetchFailSilent),!(this.config.dispatchInterval<=0||this.dispatchTimerId)&&(this.dispatchTimerId=window.setInterval(this.dispatchFetchFailSilent,this.config.dispatchInterval))},t.prototype.stopDispatchTimer=function(){document.removeEventListener("visibilitychange",this.config.useBeacon?this.dispatchBeaconFailSilent:this.dispatchFetchFailSilent),document.removeEventListener("pagehide",this.config.useBeacon?this.dispatchBeaconFailSilent:this.dispatchFetchFailSilent),this.dispatchTimerId&&(window.clearInterval(this.dispatchTimerId),this.dispatchTimerId=void 0)},t.prototype.doRequest=function(){return this.enabled&&this.eventCache.hasEvents()},t.prototype.createRequest=function(){return{BatchId:ue(),AppMonitorDetails:this.eventCache.getAppMonitorDetails(),UserDetails:this.eventCache.getUserDetails(),RumEvents:this.eventCache.getEventBatch()}},t}(),la=function(){var t=function(r,e){return t=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])},t(r,e)};return function(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(r,e);function n(){this.constructor=r}r.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),da="navigation",J="navigation",St="load",ha=function(t){la(r,t);function r(){var e=t.call(this,da)||this;return e.eventListener=function(){if(performance.getEntriesByType(J).length===0)e.performanceNavigationEventHandlerTimingLevel1();else{var n=new PerformanceObserver(function(o){o.getEntries().forEach(function(i){i.entryType===J&&e.performanceNavigationEventHandlerTimingLevel2(i)})});n.observe({entryTypes:[J]})}},e.performanceNavigationEventHandlerTimingLevel1=function(){var n=function(){var o,i=performance.timing,a=i.navigationStart,c={version:"1.0.0",initiatorType:"navigation",startTime:0,unloadEventStart:i.unloadEventStart>0?i.unloadEventStart-a:0,promptForUnload:i.unloadEventEnd-i.unloadEventStart,redirectStart:i.redirectStart>0?i.redirectStart-a:0,redirectTime:i.redirectEnd-i.redirectStart,fetchStart:i.fetchStart>0?i.fetchStart-a:0,domainLookupStart:i.domainLookupStart>0?i.domainLookupStart-a:0,dns:i.domainLookupEnd-i.domainLookupStart,connectStart:i.connectStart>0?i.connectStart-a:0,connect:i.connectEnd-i.connectStart,secureConnectionStart:i.secureConnectionStart>0?i.secureConnectionStart-a:0,tlsTime:i.secureConnectionStart>0?i.connectEnd-i.secureConnectionStart:0,requestStart:i.requestStart>0?i.requestStart-a:0,timeToFirstByte:i.responseStart-i.requestStart,responseStart:i.responseStart>0?i.responseStart-a:0,responseTime:i.responseStart>0?i.responseEnd-i.responseStart:0,domInteractive:i.domInteractive>0?i.domInteractive-a:0,domContentLoadedEventStart:i.domContentLoadedEventStart>0?i.domContentLoadedEventStart-a:0,domContentLoaded:i.domContentLoadedEventEnd-i.domContentLoadedEventStart,domComplete:i.domComplete>0?i.domComplete-a:0,domProcessingTime:i.loadEventStart-i.responseEnd,loadEventStart:i.loadEventStart>0?i.loadEventStart-a:0,loadEventTime:i.loadEventEnd-i.loadEventStart,duration:i.loadEventEnd-i.navigationStart,navigationTimingLevel:1};!((o=e.context)===null||o===void 0)&&o.record&&e.context.record(vt,c)};setTimeout(n,0)},e.performanceNavigationEventHandlerTimingLevel2=function(n){var o,i={version:"1.0.0",initiatorType:n.initiatorType,navigationType:n.type,startTime:n.startTime,unloadEventStart:n.unloadEventStart,promptForUnload:n.unloadEventEnd-n.unloadEventStart,redirectCount:n.redirectCount,redirectStart:n.redirectStart,redirectTime:n.redirectEnd-n.redirectStart,workerStart:n.workerStart,workerTime:n.workerStart>0?n.fetchStart-n.workerStart:0,fetchStart:n.fetchStart,domainLookupStart:n.domainLookupStart,dns:n.domainLookupEnd-n.domainLookupStart,nextHopProtocol:n.nextHopProtocol,connectStart:n.connectStart,connect:n.connectEnd-n.connectStart,secureConnectionStart:n.secureConnectionStart,tlsTime:n.secureConnectionStart>0?n.connectEnd-n.secureConnectionStart:0,requestStart:n.requestStart,timeToFirstByte:n.responseStart-n.requestStart,responseStart:n.responseStart,responseTime:n.responseStart>0?n.responseEnd-n.responseStart:0,domInteractive:n.domInteractive,domContentLoadedEventStart:n.domContentLoadedEventStart,domContentLoaded:n.domContentLoadedEventEnd-n.domContentLoadedEventStart,domComplete:n.domComplete,domProcessingTime:n.loadEventStart-n.responseEnd,loadEventStart:n.loadEventStart,loadEventTime:n.loadEventEnd-n.loadEventStart,duration:n.duration,headerSize:n.transferSize-n.encodedBodySize,transferSize:n.transferSize,compressionRatio:n.encodedBodySize>0?n.decodedBodySize/n.encodedBodySize:0,navigationTimingLevel:2};!((o=e.context)===null||o===void 0)&&o.record&&e.context.record(vt,i)},e}return r.prototype.enable=function(){this.enabled||(this.enabled=!0,window.addEventListener(St,this.eventListener))},r.prototype.disable=function(){this.enabled&&(this.enabled=!1,this.eventListener&&window.removeEventListener(St,this.eventListener))},r.prototype.hasTheWindowLoadEventFired=function(){if(window.performance&&window.performance.getEntriesByType(J).length){var e=window.performance.getEntriesByType(J)[0];return!!e.loadEventEnd}return!1},r.prototype.onload=function(){if(this.enabled)if(this.hasTheWindowLoadEventFired()){var e=window.performance.getEntriesByType(J)[0];this.performanceNavigationEventHandlerTimingLevel2(e)}else window.addEventListener(St,this.eventListener)},r}(W),N;(function(t){t.OTHER="other",t.STYLESHEET="stylesheet",t.DOCUMENT="document",t.SCRIPT="script",t.IMAGE="image",t.FONT="font"})(N||(N={}));var pa=[{name:N.STYLESHEET,list:["css","less"]},{name:N.DOCUMENT,list:["htm","html","ts","doc","docx","pdf","xls","xlsx"]},{name:N.SCRIPT,list:["js"]},{name:N.IMAGE,list:["ai","bmp","gif","ico","jpeg","jpg","png","ps","psd","svg","tif","tiff"]},{name:N.FONT,list:["fnt","fon","otf","ttf","woff"]}],Hn=function(t){for(var r=t.length-1;r>0;r--){var e=Math.floor(Math.random()*(r+1)),n=t[r];t[r]=t[e],t[e]=n}},Tt=function(t){var r=t.substring(t.lastIndexOf("/")+1),e=r.substring(r.lastIndexOf(".")+1).split(/[?#]/)[0],n=N.OTHER;return pa.forEach(function(o){o.list.indexOf(e)>-1&&(n=o.name)}),n},va=function(){var t=function(r,e){return t=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])},t(r,e)};return function(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(r,e);function n(){this.constructor=r}r.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),We=function(){return We=Object.assign||function(t){for(var r,e=1,n=arguments.length;e<n;e++){r=arguments[e];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},We.apply(this,arguments)},ga="resource",Ct="resource",At="load",ma={eventLimit:10,recordAllTypes:[N.DOCUMENT,N.SCRIPT],sampleTypes:[N.STYLESHEET,N.IMAGE,N.FONT,N.OTHER]},ya=function(t){va(r,t);function r(e){var n=t.call(this,ga)||this;return n.resourceEventListener=function(o){var i=[],a=[],c=0,u=new PerformanceObserver(function(f){f.getEntries().filter(function(d){return d.entryType===Ct}).forEach(function(d){var l=Tt(d.name);n.config.recordAllTypes.includes(l)?i.push(d):n.config.sampleTypes.includes(l)&&a.push(d)})});u.observe({entryTypes:[Ct]});var s=performance.getEntriesByType(Ct);for(s!==void 0&&s.length>0&&s.forEach(function(f){var d=Tt(f.name);n.config.recordAllTypes.includes(d)?i.push(f):n.config.sampleTypes.includes(d)&&a.push(f)}),Hn(i);i.length>0&&c<n.config.eventLimit;)n.recordResourceEvent(i.pop()),c++;for(Hn(a);a.length>0&&c<n.config.eventLimit;)n.recordResourceEvent(a.pop()),c++},n.recordResourceEvent=function(o){var i,a=/.*\/application\/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\/events/,c=new URL(o.name);if(!(c.host===n.context.config.endpointUrl.host&&a.test(c.pathname))&&!((i=n.context)===null||i===void 0)&&i.record){var u={version:"1.0.0",initiatorType:o.initiatorType,duration:o.duration,fileType:Tt(o.name),transferSize:o.transferSize};n.context.config.recordResourceUrl&&(u.targetUrl=o.name),n.context.record(Li,u)}},n.config=We(We({},ma),e),n}return r.prototype.enable=function(){this.enabled||(this.enabled=!0,window.addEventListener(At,this.resourceEventListener))},r.prototype.disable=function(){this.enabled&&(this.enabled=!1,this.resourceEventListener&&window.removeEventListener(At,this.resourceEventListener))},r.prototype.onload=function(){window.addEventListener(At,this.resourceEventListener)},r}(W),B,de,Un,Xe,xn=-1,he=function(t){addEventListener("pageshow",function(r){r.persisted&&(xn=r.timeStamp,t(r))},!0)},Dn=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},Ot=function(){var t=Dn();return t&&t.activationStart||0},F=function(t,r){var e=Dn(),n="navigate";return xn>=0?n="back-forward-cache":e&&(n=document.prerendering||Ot()>0?"prerender":document.wasDiscarded?"restore":e.type.replace(/_/g,"-")),{name:t,value:r===void 0?-1:r,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:n}},$e=function(t,r,e){try{if(PerformanceObserver.supportedEntryTypes.includes(t)){var n=new PerformanceObserver(function(o){Promise.resolve().then(function(){r(o.getEntries())})});return n.observe(Object.assign({type:t,buffered:!0},e||{})),n}}catch{}},V=function(t,r,e,n){var o,i;return function(a){r.value>=0&&(a||n)&&((i=r.value-(o||0))||o===void 0)&&(o=r.value,r.delta=i,r.rating=function(c,u){return c>u[1]?"poor":c>u[0]?"needs-improvement":"good"}(r.value,e),t(r))}},It=function(t){requestAnimationFrame(function(){return requestAnimationFrame(function(){return t()})})},Pt=function(t){var r=function(e){e.type!=="pagehide"&&document.visibilityState!=="hidden"||t(e)};addEventListener("visibilitychange",r,!0),addEventListener("pagehide",r,!0)},Rt=function(t){var r=!1;return function(e){r||(t(e),r=!0)}},Z=-1,qn=function(){return document.visibilityState!=="hidden"||document.prerendering?1/0:0},Ke=function(t){document.visibilityState==="hidden"&&Z>-1&&(Z=t.type==="visibilitychange"?t.timeStamp:0,wa())},Bn=function(){addEventListener("visibilitychange",Ke,!0),addEventListener("prerenderingchange",Ke,!0)},wa=function(){removeEventListener("visibilitychange",Ke,!0),removeEventListener("prerenderingchange",Ke,!0)},Lt=function(){return Z<0&&(Z=qn(),Bn(),he(function(){setTimeout(function(){Z=qn(),Bn()},0)})),{get firstHiddenTime(){return Z}}},kt=function(t){document.prerendering?addEventListener("prerenderingchange",function(){return t()},!0):t()},Fn=[1800,3e3],ba=function(t,r){r=r||{},kt(function(){var e,n=Lt(),o=F("FCP"),i=$e("paint",function(a){a.forEach(function(c){c.name==="first-contentful-paint"&&(i.disconnect(),c.startTime<n.firstHiddenTime&&(o.value=Math.max(c.startTime-Ot(),0),o.entries.push(c),e(!0)))})});i&&(e=V(t,o,Fn,r.reportAllChanges),he(function(a){o=F("FCP"),e=V(t,o,Fn,r.reportAllChanges),It(function(){o.value=performance.now()-a.timeStamp,e(!0)})}))})},Vn=[.1,.25],_a=function(t,r){r=r||{},ba(Rt(function(){var e,n=F("CLS",0),o=0,i=[],a=function(u){u.forEach(function(s){if(!s.hadRecentInput){var f=i[0],d=i[i.length-1];o&&s.startTime-d.startTime<1e3&&s.startTime-f.startTime<5e3?(o+=s.value,i.push(s)):(o=s.value,i=[s])}}),o>n.value&&(n.value=o,n.entries=i,e())},c=$e("layout-shift",a);c&&(e=V(t,n,Vn,r.reportAllChanges),Pt(function(){a(c.takeRecords()),e(!0)}),he(function(){o=0,n=F("CLS",0),e=V(t,n,Vn,r.reportAllChanges),It(function(){return e()})}),setTimeout(e,0))}))},pe={passive:!0,capture:!0},Ea=new Date,Gn=function(t,r){B||(B=r,de=t,Un=new Date,Wn(removeEventListener),zn())},zn=function(){if(de>=0&&de<Un-Ea){var t={entryType:"first-input",name:B.type,target:B.target,cancelable:B.cancelable,startTime:B.timeStamp,processingStart:B.timeStamp+de};Xe.forEach(function(r){r(t)}),Xe=[]}},Sa=function(t){if(t.cancelable){var r=(t.timeStamp>1e12?new Date:performance.now())-t.timeStamp;t.type=="pointerdown"?function(e,n){var o=function(){Gn(e,n),a()},i=function(){a()},a=function(){removeEventListener("pointerup",o,pe),removeEventListener("pointercancel",i,pe)};addEventListener("pointerup",o,pe),addEventListener("pointercancel",i,pe)}(r,t):Gn(r,t)}},Wn=function(t){["mousedown","keydown","touchstart","pointerdown"].forEach(function(r){return t(r,Sa,pe)})},Xn=[100,300],Ta=function(t,r){r=r||{},kt(function(){var e,n=Lt(),o=F("FID"),i=function(u){u.startTime<n.firstHiddenTime&&(o.value=u.processingStart-u.startTime,o.entries.push(u),e(!0))},a=function(u){u.forEach(i)},c=$e("first-input",a);e=V(t,o,Xn,r.reportAllChanges),c&&Pt(Rt(function(){a(c.takeRecords()),c.disconnect()})),c&&he(function(){var u;o=F("FID"),e=V(t,o,Xn,r.reportAllChanges),Xe=[],de=-1,B=null,Wn(addEventListener),u=i,Xe.push(u),zn()})})},$n=[2500,4e3],Nt={},Ca=function(t,r){r=r||{},kt(function(){var e,n=Lt(),o=F("LCP"),i=function(u){var s=u[u.length-1];s&&s.startTime<n.firstHiddenTime&&(o.value=Math.max(s.startTime-Ot(),0),o.entries=[s],e())},a=$e("largest-contentful-paint",i);if(a){e=V(t,o,$n,r.reportAllChanges);var c=Rt(function(){Nt[o.id]||(i(a.takeRecords()),a.disconnect(),Nt[o.id]=!0,e(!0))});["keydown","click"].forEach(function(u){addEventListener(u,c,!0)}),Pt(c),he(function(u){o=F("LCP"),e=V(t,o,$n,r.reportAllChanges),It(function(){o.value=performance.now()-u.timeStamp,Nt[o.id]=!0,e(!0)})})}})},Aa=function(){var t=function(r,e){return t=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])},t(r,e)};return function(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(r,e);function n(){this.constructor=r}r.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Oa="web-vitals",Ia=function(t){Aa(r,t);function r(){return t.call(this,Oa)||this}return r.prototype.enable=function(){},r.prototype.disable=function(){},r.prototype.configure=function(e){},r.prototype.getWebVitalData=function(e,n){var o,i={version:"1.0.0",value:e.value};(o=this.context)===null||o===void 0||o.record(n,i)},r.prototype.onload=function(){var e=this;Ca(function(n){return e.getWebVitalData(n,Ii)}),Ta(function(n){return e.getWebVitalData(n,Pi)}),_a(function(n){return e.getWebVitalData(n,Ri)})},r}(W),Kn=function(t){if(crypto)return crypto.getRandomValues(t);if(msCrypto)return msCrypto.getRandomValues(t);throw new Error("No crypto library found.")},Yn=[];for(ve=0;ve<256;ve++)Yn[ve]=(ve+256).toString(16).substr(1);var ve,jt="X-Amzn-Trace-Id",Jn={logicalServiceName:"rum.aws.amazon.com",urlsToInclude:[/.*/],urlsToExclude:[/cognito\-identity\.([^\.]*\.)?amazonaws\.com/,/sts\.([^\.]*\.)?amazonaws\.com/],stackTraceLength:200,recordAllRequests:!1,addXRayTraceIdHeader:!1},Zn=function(t){return Math.floor(t/100)===4},Qn=function(t){return Math.floor(t/100)===5},er=function(t){return t===429},tr=function(t,r){var e=r.urlsToInclude.some(function(o){return o.test(t)}),n=r.urlsToExclude.some(function(o){return o.test(t)});return e&&!n},Q=function(){return Date.now()/1e3},Pa=function(t,r,e){var n={request:{}};return n.request.method=r?.method?r.method:"GET",n.request.traced=e,n.request.url=Ht(t),n},nr=function(t,r,e){var n={version:"1.0.0",name:t,origin:"AWS::RUM::AppMonitor",id:or(),start_time:r,trace_id:ka(),end_time:void 0,subsegments:[],in_progress:!1};return e&&(n.http=e),n},rr=function(t,r,e){var n={id:or(),name:t,start_time:r,end_time:void 0,in_progress:!1,namespace:t.endsWith("amazonaws.com")?"aws":"remote"};return e&&(n.http=e),n},ir=function(t){try{return t.hostname?t.hostname:t.url?new URL(t.url).hostname:new URL(t.toString()).hostname}catch{return window.location.hostname}},Ra=function(t,r,e){t.headers||(t.headers={}),t.headers[jt]=Mt(r,e)},La=function(t,r,e){t.set(jt,Mt(r,e))},Mt=function(t,r){return"Root="+t+";Parent="+r+";Sampled=1"},Ht=function(t){return t.url?t.url:t.toString()},ka=function(){return"1-".concat(Na(),"-").concat(ja())},or=function(){var t=new Uint8Array(8);return Kn(t),ar(t)},Na=function(){return Math.floor(Date.now()/1e3).toString(16)},ja=function(){var t=new Uint8Array(12);return Kn(t),ar(t)},ar=function(t){for(var r="",e=0;e<t.length;e++)r+=Yn[t[e]];return r},Ma=function(){var t=function(r,e){return t=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])},t(r,e)};return function(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(r,e);function n(){this.constructor=r}r.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ha=function(t){Ma(r,t);function r(e){var n=t.call(this,e)||this;return n.name="XMLHttpRequest error",n}return r}(Error),Ua=function(){var t=function(r,e){return t=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])},t(r,e)};return function(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(r,e);function n(){this.constructor=r}r.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ye=function(){return Ye=Object.assign||function(t){for(var r,e=1,n=arguments.length;e<n;e++){r=arguments[e];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},Ye.apply(this,arguments)},xa="xhr",Da=function(t){Ua(r,t);function r(e){var n=t.call(this,xa)||this;return n.addXRayTraceIdHeader=function(){return n.config.addXRayTraceIdHeader},n.isTracingEnabled=function(){return n.context.config.enableXRay},n.isSessionRecorded=function(){var o;return((o=n.context.getSession())===null||o===void 0?void 0:o.record)||!1},n.handleXhrLoadEvent=function(o){var i=o.target,a=n.xhrMap.get(i);if(a){var c=Q();a.trace.end_time=c,a.trace.subsegments[0].end_time=c,a.trace.subsegments[0].http.response={status:i.status},er(i.status)?(a.trace.subsegments[0].throttle=!0,a.trace.throttle=!0):Zn(i.status)?(a.trace.subsegments[0].error=!0,a.trace.error=!0):Qn(i.status)&&(a.trace.subsegments[0].fault=!0,a.trace.fault=!0);var u=i.getResponseHeader("Content-Length"),s=u?parseInt(u,10):NaN;isNaN(s)||(a.trace.subsegments[0].http.response.content_length=s),n.recordTraceEvent(a.trace),n.recordHttpEventWithResponse(a,i)}},n.handleXhrErrorEvent=function(o){var i=o.target,a=n.xhrMap.get(i),c="XMLHttpRequest error",u=i.statusText?i.status.toString()+": "+i.statusText:i.status.toString();if(a){var s=Q();a.trace.fault=!0,a.trace.end_time=s,a.trace.subsegments[0].end_time=s,a.trace.subsegments[0].fault=!0,a.trace.subsegments[0].cause={exceptions:[{type:c,message:u}]},n.recordTraceEvent(a.trace),n.recordHttpEventWithError(a,new Ha(u))}},n.handleXhrAbortEvent=function(o){var i=o.target,a=n.xhrMap.get(i),c="XMLHttpRequest abort";n.handleXhrDetailsOnError(a,c)},n.handleXhrTimeoutEvent=function(o){var i=o.target,a=n.xhrMap.get(i),c="XMLHttpRequest timeout";n.handleXhrDetailsOnError(a,c)},n.initializeTrace=function(o){var i=Q();o.trace=nr(n.config.logicalServiceName,i),o.trace.subsegments.push(rr(ir(o.url),i,{request:{method:o.method,url:o.url,traced:!0}}))},n.sendWrapper=function(){var o=n;return function(i){return function(){var a=o.xhrMap.get(this);return a&&(this.addEventListener("load",o.handleXhrLoadEvent),this.addEventListener("error",o.handleXhrErrorEvent),this.addEventListener("abort",o.handleXhrAbortEvent),this.addEventListener("timeout",o.handleXhrTimeoutEvent),o.initializeTrace(a),o.isTracingEnabled()&&o.addXRayTraceIdHeader()&&o.isSessionRecorded()&&this.setRequestHeader(jt,Mt(a.trace.trace_id,a.trace.subsegments[0].id))),i.apply(this,arguments)}}},n.openWrapper=function(){var o=n;return function(i){return function(a,c,u){return tr(c,o.config)&&o.xhrMap.set(this,{url:c,method:a,async:u}),i.apply(this,arguments)}}},n.config=Ye(Ye({},Jn),e),n.xhrMap=new Map,n}return r.prototype.onload=function(){this.enable()},Object.defineProperty(r.prototype,"patches",{get:function(){return[{nodule:XMLHttpRequest.prototype,name:"send",wrapper:this.sendWrapper},{nodule:XMLHttpRequest.prototype,name:"open",wrapper:this.openWrapper}]},enumerable:!1,configurable:!0}),r.prototype.handleXhrDetailsOnError=function(e,n){if(e){var o=Q();e.trace.end_time=o,e.trace.subsegments[0].end_time=o,e.trace.subsegments[0].error=!0,e.trace.subsegments[0].cause={exceptions:[{type:n}]},this.recordTraceEvent(e.trace),this.recordHttpEventWithError(e,n)}},r.prototype.statusOk=function(e){return e>=200&&e<300},r.prototype.recordHttpEventWithResponse=function(e,n){(this.config.recordAllRequests||!this.statusOk(n.status))&&this.context.record(Re,{version:"1.0.0",request:{method:e.method,url:e.url},response:{status:n.status,statusText:n.statusText}})},r.prototype.recordHttpEventWithError=function(e,n){var o={version:"1.0.0",request:{method:e.method,url:e.url}};o.error=gt({type:"error",error:n},this.config.stackTraceLength),this.context.record(Re,o)},r.prototype.recordTraceEvent=function(e){this.isTracingEnabled()&&this.isSessionRecorded()&&this.context.record(cn,e)},r}(xe),qa=function(){var t=function(r,e){return t=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])},t(r,e)};return function(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(r,e);function n(){this.constructor=r}r.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Je=function(){return Je=Object.assign||function(t){for(var r,e=1,n=arguments.length;e<n;e++){r=arguments[e];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},Je.apply(this,arguments)},Ba="fetch",Fa=function(t){qa(r,t);function r(e){var n=t.call(this,Ba)||this;return n.isTracingEnabled=function(){return n.context.config.enableXRay},n.isSessionRecorded=function(){var o;return((o=n.context.getSession())===null||o===void 0?void 0:o.record)||!1},n.beginTrace=function(o,i,a){var c=Q(),u=Pa(o,i,!0),s=nr(n.config.logicalServiceName,c),f=rr(ir(o),c,u);return s.subsegments.push(f),n.config.addXRayTraceIdHeader&&n.addXRayTraceIdHeader(o,i,a,s),s},n.addXRayTraceIdHeader=function(o,i,a,c){if(o.headers)return La(o.headers,c.trace_id,c.subsegments[0].id);i||(i={},[].push.call(a,i)),Ra(i,c.trace_id,c.subsegments[0].id)},n.endTrace=function(o,i,a){if(o){var c=Q();if(o.subsegments[0].end_time=c,o.end_time=c,i){o.subsegments[0].http.response={status:i.status},er(i.status)?(o.subsegments[0].throttle=!0,o.throttle=!0):Zn(i.status)?(o.subsegments[0].error=!0,o.error=!0):Qn(i.status)&&(o.subsegments[0].fault=!0,o.fault=!0);var u=i.headers.get("Content-Length"),s=u?parseInt(u,10):NaN;isNaN(s)||(o.subsegments[0].http.response.content_length=s)}a&&(o.fault=!0,o.subsegments[0].fault=!0,a instanceof Object?n.appendErrorCauseFromObject(o.subsegments[0],a):fn(a)&&n.appendErrorCauseFromPrimitive(o.subsegments[0],a.toString())),n.context.record(cn,o)}},n.createHttpEvent=function(o,i){var a=o;return{version:"1.0.0",request:{url:Ht(o),method:i?.method?i.method:a.method?a.method:"GET"}}},n.recordHttpEventWithResponse=function(o,i){(n.config.recordAllRequests||!i.ok)&&(o.response={status:i.status,statusText:i.statusText},n.context.record(Re,o))},n.recordHttpEventWithError=function(o,i){o.error=gt({type:"error",error:i},n.config.stackTraceLength),n.context.record(Re,o)},n.fetch=function(o,i,a,c,u){var s=n.createHttpEvent(c,u),f;return tr(Ht(c),n.config)?(n.isTracingEnabled()&&n.isSessionRecorded()&&(f=n.beginTrace(c,u,a)),o.apply(i,a).then(function(d){return n.endTrace(f,d,void 0),n.recordHttpEventWithResponse(s,d),d}).catch(function(d){throw n.endTrace(f,void 0,d),n.recordHttpEventWithError(s,d),d})):o.apply(i,a)},n.fetchWrapper=function(){var o=n;return function(i){return function(a,c){return o.fetch(i,this,arguments,a,c)}}},n.config=Je(Je({},Jn),e),n}return Object.defineProperty(r.prototype,"patches",{get:function(){return[{nodule:window,name:"fetch",wrapper:this.fetchWrapper}]},enumerable:!1,configurable:!0}),r.prototype.onload=function(){this.enable()},r.prototype.appendErrorCauseFromPrimitive=function(e,n){e.cause={exceptions:[{type:n}]}},r.prototype.appendErrorCauseFromObject=function(e,n){e.cause={exceptions:[{type:n.name,message:n.message}]}},r}(xe),Va=function(){var t=function(r,e){return t=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])},t(r,e)};return function(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(r,e);function n(){this.constructor=r}r.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ga="page-view",za=function(t){Va(r,t);function r(){var e=t.call(this,Ga)||this;return e.pushState=function(){var n=e;return function(o){return function(i,a,c){var u=o.apply(this,arguments);return n.recordPageView(),u}}},e.replaceState=function(){var n=e;return function(o){return function(i,a,c){var u=o.apply(this,arguments);return n.recordPageView(),u}}},e.popstateListener=function(n){e.recordPageView()},e.recordPageView=function(){e.context.recordPageView(e.createIdForCurrentPage())},e.enable(),e}return r.prototype.onload=function(){this.addListener(),this.recordPageView()},Object.defineProperty(r.prototype,"patches",{get:function(){return[{nodule:History.prototype,name:"pushState",wrapper:this.pushState},{nodule:History.prototype,name:"replaceState",wrapper:this.replaceState}]},enumerable:!1,configurable:!0}),r.prototype.addListener=function(){window.addEventListener("popstate",this.popstateListener)},r.prototype.createIdForCurrentPage=function(){var e=window.location.pathname,n=window.location.hash;switch(this.context.config.pageIdFormat){case re.PathAndHash:return e&&n?e+n:e||n||"";case re.Hash:return n||"";case re.Path:default:return e||""}},r}(xe),ee=function(){return ee=Object.assign||function(t){for(var r,e=1,n=arguments.length;e<n;e++){r=arguments[e];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},ee.apply(this,arguments)},Wa=function(t,r){var e={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&r.indexOf(n)<0&&(e[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(t);o<n.length;o++)r.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(e[n[o]]=t[n[o]]);return e},te=function(t,r,e){if(e||arguments.length===2)for(var n=0,o=r.length,i;n<o;n++)(i||!(n in r))&&(i||(i=Array.prototype.slice.call(r,0,n)),i[n]=r[n]);return t.concat(i||Array.prototype.slice.call(r))},sr="us-west-2",Ut="https://dataplane.rum.".concat(sr,".amazonaws.com"),ne;(function(t){t.Errors="errors",t.Performance="performance",t.Interaction="interaction",t.Http="http"})(ne||(ne={}));var re;(function(t){t.Path="PATH",t.Hash="HASH",t.PathAndHash="PATH_AND_HASH"})(re||(re={}));var Xa=function(){return{unique:!1,domain:window.location.hostname,path:"/",sameSite:"Strict",secure:!0}},$a=function(t){return{allowCookies:!1,batchLimit:100,client:Ti,cookieAttributes:t,disableAutoPageView:!1,dispatchInterval:5*1e3,enableRumClient:!0,enableXRay:!1,endpoint:Ut,endpointUrl:new URL(Ut),eventCacheSize:200,eventPluginsToLoad:[],pageIdFormat:re.Path,pagesToExclude:[],pagesToInclude:[/.*/],signing:!0,recordResourceUrl:!0,retries:2,routeChangeComplete:100,routeChangeTimeout:1e4,sessionAttributes:{},sessionEventLimit:200,sessionLengthSeconds:60*30,sessionSampleRate:1,telemetries:[],useBeacon:!0,userIdRetentionDays:30}},Ka=function(){function t(r,e,n,o){o===void 0&&(o={});var i=o.cookieAttributes,a=Wa(o,["cookieAttributes"]);typeof n>"u"&&(n="us-west-2");var c=ee(ee({},Xa()),i);this.config=ee(ee({fetchFunction:fetch},$a(c)),a),this.config.endpoint=this.getDataPlaneEndpoint(n,a),this.config.endpointUrl=new URL(this.config.endpoint),this.eventCache=this.initEventCache(r,e),this.dispatchManager=this.initDispatch(n),this.pluginManager=this.initPluginManager(r,e),this.config.enableRumClient?this.enable():this.disable()}return t.prototype.setAwsCredentials=function(r){this.dispatchManager.setAwsCredentials(r)},t.prototype.addSessionAttributes=function(r){this.eventCache.addSessionAttributes(r)},t.prototype.addPlugin=function(r){this.pluginManager.addPlugin(r)},t.prototype.dispatch=function(){this.dispatchManager.dispatchFetch()},t.prototype.dispatchBeacon=function(){this.dispatchManager.dispatchBeacon()},t.prototype.enable=function(){this.eventCache.enable(),this.pluginManager.enable(),this.dispatchManager.enable()},t.prototype.disable=function(){this.dispatchManager.disable(),this.pluginManager.disable(),this.eventCache.disable()},t.prototype.allowCookies=function(r){this.config.allowCookies=r},t.prototype.recordPageView=function(r){this.eventCache.recordPageView(r)},t.prototype.recordError=function(r){this.pluginManager.record(ln,r)},t.prototype.registerDomEvents=function(r){this.pluginManager.updatePlugin(un,r)},t.prototype.recordEvent=function(r,e){this.eventCache.recordEvent(r,e)},t.prototype.initEventCache=function(r,e){return new Co({id:r,version:e},this.config)},t.prototype.initDispatch=function(r){var e=new fa(r,this.config.endpointUrl,this.eventCache,this.config);return this.config.identityPoolId&&this.config.guestRoleArn?e.setAwsCredentials(new Ci(this.config).ChainAnonymousCredentialsProvider):this.config.identityPoolId&&e.setAwsCredentials(new Ai(this.config).ChainAnonymousCredentialsProvider),e},t.prototype.initPluginManager=function(r,e){var n=this.constructBuiltinPlugins(),o=te(te([],n,!0),this.config.eventPluginsToLoad,!0),i={applicationId:r,applicationVersion:e,config:this.config,record:this.eventCache.recordEvent,recordPageView:this.eventCache.recordPageView,getSession:this.eventCache.getSession},a=new Mi(i);return this.config.disableAutoPageView||a.addPlugin(new za),o.forEach(function(c){a.addPlugin(c)}),a},t.prototype.constructBuiltinPlugins=function(){var r=[],e=this.telemetryFunctor();return this.config.telemetries.forEach(function(n){typeof n=="string"&&e[n.toLowerCase()]?r=te(te([],r,!0),e[n.toLowerCase()]({}),!0):Array.isArray(n)&&e[n[0].toLowerCase()]&&(r=te(te([],r,!0),e[n[0].toLowerCase()](n[1]),!0))}),r},t.prototype.getDataPlaneEndpoint=function(r,e){return e.endpoint?e.endpoint:Ut.replace(sr,r)},t.prototype.telemetryFunctor=function(){var r;return r={},r[ne.Errors]=function(e){return[new zi(e)]},r[ne.Performance]=function(e){return[new ha,new ya(e),new Ia]},r[ne.Interaction]=function(e){return[new xi(e)]},r[ne.Http]=function(e){return[new Da(e),new Fa(e)]},r},t}();try{window.awsRum=new Ka(window.awsRumVariables.APPLICATION_ID,window.awsRumVariables.APPLICATION_VERSION,window.awsRumVariables.APPLICATION_REGION,window.awsRumVariables.config)}catch{}})();
12
+ ${$(o)}`}getCanonicalPath({path:t}){if(this.uriEscapePath){const r=[];for(const o of t.split("/"))o?.length!==0&&o!=="."&&(o===".."?r.pop():r.push(o));const e=`${t?.startsWith("/")?"/":""}${r.join("/")}${r.length>0&&t?.endsWith("/")?"/":""}`;return encodeURIComponent(e).replace(/%2F/g,"/")}return t}async getSignature(t,r,e,n){const o=await this.createStringToSign(t,r,n),i=new this.sha256(await e);return i.update(le(o)),$(await i.digest())}getSigningKey(t,r,e,n){return Fo(this.sha256,t,e,r,n||this.service)}validateResolvedCredentials(t){if(typeof t!="object"||typeof t.accessKeyId!="string"||typeof t.secretAccessKey!="string")throw new Error("Resolved credential object is not valid")}},qe=t=>{const r=$o(t).replace(/[\-:]/g,"");return{longDate:r,shortDate:r.slice(0,8)}},Rn=t=>Object.keys(t).sort().join(";"),Ln=st(ri()),Y=function(){return Y=Object.assign||function(t){for(var r,e=1,n=arguments.length;e<n;e++){r=arguments[e];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},Y.apply(this,arguments)},Fe=function(t,r,e,n){function o(i){return i instanceof e?i:new e(function(a){a(i)})}return new(e||(e=Promise))(function(i,a){function c(f){try{s(n.next(f))}catch(p){a(p)}}function u(f){try{s(n.throw(f))}catch(p){a(p)}}function s(f){f.done?i(f.value):o(f.value).then(c,u)}s((n=n.apply(t,r||[])).next())})},Ve=function(t,r){var e={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(s){return function(f){return u([s,f])}}function u(s){if(n)throw new TypeError("Generator is already executing.");for(;e;)try{if(n=1,o&&(i=s[0]&2?o.return:s[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,s[1])).done)return i;switch(o=0,i&&(s=[s[0]&2,i.value]),s[0]){case 0:case 1:i=s;break;case 4:return e.label++,{value:s[1],done:!1};case 5:e.label++,o=s[1],s=[0];continue;case 7:s=e.ops.pop(),e.trys.pop();continue;default:if(i=e.trys,!(i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){e=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){e.label=s[1];break}if(s[0]===6&&e.label<i[1]){e.label=i[1],i=s;break}if(i&&e.label<i[2]){e.label=i[2],e.ops.push(s);break}i[2]&&e.ops.pop(),e.trys.pop();continue}s=r.call(t,e)}catch(f){s=[6,f],o=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},Jo="rum",Zo="POST",Qo="application/json",ea="text/plain;charset=UTF-8",ta={expiresIn:60},na=function(){function t(r){var e=this;this.sendFetch=function(n){return Fe(e,void 0,void 0,function(){var o,i,a;return Ve(this,function(c){switch(c.label){case 0:return[4,this.getHttpRequestOptions(n,Qo)];case 1:return o=c.sent(),i=new se(o),this.awsSigV4?[4,this.awsSigV4.sign(i)]:[3,3];case 2:i=c.sent(),c.label=3;case 3:return a=this.config.fetchRequestHandler.handle(i),[2,a]}})})},this.sendBeacon=function(n){return Fe(e,void 0,void 0,function(){var o,i,a;return Ve(this,function(c){switch(c.label){case 0:return[4,this.getHttpRequestOptions(n,ea)];case 1:return o=c.sent(),i=new se(o),this.awsSigV4?[4,this.awsSigV4.presign(i,ta)]:[3,3];case 2:i=c.sent(),c.label=3;case 3:return a=this.config.beaconRequestHandler.handle(i),[2,a]}})})},this.getHttpRequestOptions=function(n,o){return Fe(e,void 0,void 0,function(){var i,a,c,u,s,f,p,l;return Ve(this,function(d){switch(d.label){case 0:return i=JSON.stringify(ra(n)),a=this.config.endpoint.pathname.replace(/\/$/,""),c={method:Zo,protocol:this.config.endpoint.protocol,headers:{"content-type":o,host:this.config.endpoint.host},hostname:this.config.endpoint.hostname,path:"".concat(a,"/appmonitors/").concat(n.AppMonitorDetails.id),body:i},this.awsSigV4?(u=[Y({},c)],p={},s=[Y({},c.headers)],l={},f="X-Amz-Content-Sha256",[4,oa(i)]):[3,2];case 1:return[2,Y.apply(void 0,u.concat([(p.headers=Y.apply(void 0,s.concat([(l[f]=d.sent(),l)])),p)]))];case 2:return[2,c]}})})},this.config=r,r.credentials&&(this.awsSigV4=new Yo({applyChecksum:!0,credentials:r.credentials,region:r.region,service:Jo,uriEscapePath:!0,sha256:Ln.Sha256}))}return t}(),ra=function(t){var r=[];t.RumEvents.forEach(function(n){return r.push(ia(n))});var e={BatchId:t.BatchId,AppMonitorDetails:t.AppMonitorDetails,UserDetails:t.UserDetails,RumEvents:r};return e},ia=function(t){return{id:t.id,timestamp:Math.round(t.timestamp.getTime()/1e3),type:t.type,metadata:t.metadata,details:t.details}},oa=function(t){return Fe(void 0,void 0,void 0,function(){var r,e;return Ve(this,function(n){switch(n.label){case 0:return r=new Ln.Sha256,r.update(t),e=$,[4,r.digest()];case 1:return[2,e.apply(void 0,[n.sent()]).toLowerCase()]}})})};function kn(t){const r=[];for(let e of Object.keys(t).sort()){const n=t[e];if(e=H(e),Array.isArray(n))for(let o=0,i=n.length;o<i;o++)r.push(`${e}=${H(n[o])}`);else{let o=e;(n||typeof n=="string")&&(o+=`=${H(n)}`),r.push(o)}}return r.join("&")}var aa=function(){function t(){}return t.prototype.handle=function(r){var e=this.sendBeacon(r);return new Promise(function(n,o){e?n({response:new ft({statusCode:200})}):o()})},t.prototype.sendBeacon=function(r){var e=r.path;if(r.query){var n=kn(r.query);n&&(e+="?".concat(n))}var o=r.port,i="".concat(r.protocol,"//").concat(r.hostname).concat(o?":".concat(o):"").concat(e);return navigator.sendBeacon(i,r.body)},t}(),sa=function(t){return t===void 0&&(t=0),new Promise(function(r,e){t&&setTimeout(function(){var n=new Error("Request did not complete within ".concat(t," ms"));n.name="TimeoutError",e(n)},t)})},ca=function(){function t(r){var e=r===void 0?{}:r,n=e.fetchFunction,o=e.requestTimeout;this.requestTimeout=o,this.fetchFunction=n}return t.prototype.destroy=function(){},t.prototype.handle=function(r,e){var n=e===void 0?{}:e,o=n.abortSignal,i=this.requestTimeout;if(o?.aborted){var a=new Error("Request aborted");return a.name="AbortError",Promise.reject(a)}var c=r.path;if(r.query){var u=kn(r.query);u&&(c+="?".concat(u))}var s=r.port,f=r.method,p="".concat(r.protocol,"//").concat(r.hostname).concat(s?":".concat(s):"").concat(c),l=f==="GET"||f==="HEAD"?void 0:r.body,d={body:l,headers:new Headers(r.headers),method:f};typeof AbortController<"u"&&(d.signal=o);var h=new Request(p,d),v=[this.fetchFunction.apply(window,[h]).then(function(g){for(var C=g.headers,j={},w=0,b=C.entries();w<b.length;w++){var L=b[w];j[L[0]]=L[1]}var G=g.body!==void 0;return G?{response:new ft({headers:j,statusCode:g.status,body:g.body})}:g.blob().then(function(ge){return{response:new ft({headers:j,statusCode:g.status,body:ge})}})}),sa(i)];return o&&v.push(new Promise(function(g,C){o.onabort=function(){var j=new Error("Request aborted");j.name="AbortError",C(j)}})),Promise.race(v)},t}(),Nn=function(t,r,e,n){function o(i){return i instanceof e?i:new e(function(a){a(i)})}return new(e||(e=Promise))(function(i,a){function c(f){try{s(n.next(f))}catch(p){a(p)}}function u(f){try{s(n.throw(f))}catch(p){a(p)}}function s(f){f.done?i(f.value):o(f.value).then(c,u)}s((n=n.apply(t,r||[])).next())})},jn=function(t,r){var e={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(s){return function(f){return u([s,f])}}function u(s){if(n)throw new TypeError("Generator is already executing.");for(;e;)try{if(n=1,o&&(i=s[0]&2?o.return:s[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,s[1])).done)return i;switch(o=0,i&&(s=[s[0]&2,i.value]),s[0]){case 0:case 1:i=s;break;case 4:return e.label++,{value:s[1],done:!1};case 5:e.label++,o=s[1],s=[0];continue;case 7:s=e.ops.pop(),e.trys.pop();continue;default:if(i=e.trys,!(i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){e=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){e.label=s[1];break}if(s[0]===6&&e.label<i[1]){e.label=i[1],i=s;break}if(i&&e.label<i[2]){e.label=i[2],e.ops.push(s);break}i[2]&&e.ops.pop(),e.trys.pop();continue}s=r.call(t,e)}catch(f){s=[6,f],o=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},ua=function(){function t(r,e,n){n===void 0&&(n=function(o){return o*2e3}),this.isStatusCode2xx=function(o){return o>=200&&o<300},this.handler=r,this.retries=e,this.backoff=n}return t.prototype.handle=function(r){return Nn(this,void 0,void 0,function(){var e,n,o;return jn(this,function(i){switch(i.label){case 0:e=this.retries,i.label=1;case 1:i.label=2;case 2:return i.trys.push([2,4,,6]),[4,this.handler.handle(r)];case 3:if(n=i.sent(),this.isStatusCode2xx(n.response.statusCode))return[2,n];throw new Error("".concat(n.response.statusCode));case 4:if(o=i.sent(),!e)throw o;return e--,[4,this.sleep(this.backoff(this.retries-e))];case 5:return i.sent(),[3,6];case 6:return[3,1];case 7:return[2]}})})},t.prototype.sleep=function(r){return Nn(this,void 0,void 0,function(){return jn(this,function(e){return[2,new Promise(function(n){return setTimeout(n,r)})]})})},t}(),Ge=function(t,r,e,n){function o(i){return i instanceof e?i:new e(function(a){a(i)})}return new(e||(e=Promise))(function(i,a){function c(f){try{s(n.next(f))}catch(p){a(p)}}function u(f){try{s(n.throw(f))}catch(p){a(p)}}function s(f){f.done?i(f.value):o(f.value).then(c,u)}s((n=n.apply(t,r||[])).next())})},ze=function(t,r){var e={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(s){return function(f){return u([s,f])}}function u(s){if(n)throw new TypeError("Generator is already executing.");for(;e;)try{if(n=1,o&&(i=s[0]&2?o.return:s[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,s[1])).done)return i;switch(o=0,i&&(s=[s[0]&2,i.value]),s[0]){case 0:case 1:i=s;break;case 4:return e.label++,{value:s[1],done:!1};case 5:e.label++,o=s[1],s=[0];continue;case 7:s=e.ops.pop(),e.trys.pop();continue;default:if(i=e.trys,!(i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){e=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){e.label=s[1];break}if(s[0]===6&&e.label<i[1]){e.label=i[1],i=s;break}if(i&&e.label<i[2]){e.label=i[2],e.ops.push(s);break}i[2]&&e.ops.pop(),e.trys.pop();continue}s=r.call(t,e)}catch(f){s=[6,f],o=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},Mn="CWR: Cannot dispatch; no AWS credentials.",fa=function(){function t(r,e,n,o){var i=this;this.dispatchFetch=function(){return Ge(i,void 0,void 0,function(){return ze(this,function(a){return this.doRequest()?[2,this.rum.sendFetch(this.createRequest()).catch(this.handleReject)]:[2]})})},this.dispatchBeacon=function(){return Ge(i,void 0,void 0,function(){var a,c=this;return ze(this,function(u){return this.doRequest()?(a=this.createRequest(),[2,this.rum.sendBeacon(a).catch(function(){return c.rum.sendFetch(a)})]):[2]})})},this.dispatchFetchFailSilent=function(){return Ge(i,void 0,void 0,function(){return ze(this,function(a){return[2,this.dispatchFetch().catch(function(){})]})})},this.dispatchBeaconFailSilent=function(){return Ge(i,void 0,void 0,function(){return ze(this,function(a){return[2,this.dispatchBeacon().catch(function(){})]})})},this.handleReject=function(a){throw i.disable(),a},this.defaultClientBuilder=function(a,c,u){return new na({fetchRequestHandler:new ua(new ca({fetchFunction:i.config.fetchFunction}),i.config.retries),beaconRequestHandler:new aa,endpoint:a,region:c,credentials:u})},this.region=r,this.endpoint=e,this.eventCache=n,this.enabled=!0,this.buildClient=o.clientBuilder||this.defaultClientBuilder,this.config=o,this.startDispatchTimer(),o.signing?this.rum={sendFetch:function(){return Promise.reject(new Error(Mn))},sendBeacon:function(){return Promise.reject(new Error(Mn))}}:this.rum=this.buildClient(this.endpoint,this.region,void 0)}return t.prototype.enable=function(){this.enabled=!0,this.startDispatchTimer()},t.prototype.disable=function(){this.stopDispatchTimer(),this.enabled=!1},t.prototype.setAwsCredentials=function(r){this.rum=this.buildClient(this.endpoint,this.region,r),typeof r=="function"&&r()},t.prototype.startDispatchTimer=function(){document.addEventListener("visibilitychange",this.config.useBeacon?this.dispatchBeaconFailSilent:this.dispatchFetchFailSilent),document.addEventListener("pagehide",this.config.useBeacon?this.dispatchBeaconFailSilent:this.dispatchFetchFailSilent),!(this.config.dispatchInterval<=0||this.dispatchTimerId)&&(this.dispatchTimerId=window.setInterval(this.dispatchFetchFailSilent,this.config.dispatchInterval))},t.prototype.stopDispatchTimer=function(){document.removeEventListener("visibilitychange",this.config.useBeacon?this.dispatchBeaconFailSilent:this.dispatchFetchFailSilent),document.removeEventListener("pagehide",this.config.useBeacon?this.dispatchBeaconFailSilent:this.dispatchFetchFailSilent),this.dispatchTimerId&&(window.clearInterval(this.dispatchTimerId),this.dispatchTimerId=void 0)},t.prototype.doRequest=function(){return this.enabled&&this.eventCache.hasEvents()},t.prototype.createRequest=function(){return{BatchId:ue(),AppMonitorDetails:this.eventCache.getAppMonitorDetails(),UserDetails:this.eventCache.getUserDetails(),RumEvents:this.eventCache.getEventBatch()}},t}(),la=function(){var t=function(r,e){return t=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])},t(r,e)};return function(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(r,e);function n(){this.constructor=r}r.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),da="navigation",J="navigation",St="load",ha=function(t){la(r,t);function r(){var e=t.call(this,da)||this;return e.eventListener=function(){if(performance.getEntriesByType(J).length===0)e.performanceNavigationEventHandlerTimingLevel1();else{var n=new PerformanceObserver(function(o){o.getEntries().forEach(function(i){i.entryType===J&&e.performanceNavigationEventHandlerTimingLevel2(i)})});n.observe({entryTypes:[J]})}},e.performanceNavigationEventHandlerTimingLevel1=function(){var n=function(){var o,i=performance.timing,a=i.navigationStart,c={version:"1.0.0",initiatorType:"navigation",startTime:0,unloadEventStart:i.unloadEventStart>0?i.unloadEventStart-a:0,promptForUnload:i.unloadEventEnd-i.unloadEventStart,redirectStart:i.redirectStart>0?i.redirectStart-a:0,redirectTime:i.redirectEnd-i.redirectStart,fetchStart:i.fetchStart>0?i.fetchStart-a:0,domainLookupStart:i.domainLookupStart>0?i.domainLookupStart-a:0,dns:i.domainLookupEnd-i.domainLookupStart,connectStart:i.connectStart>0?i.connectStart-a:0,connect:i.connectEnd-i.connectStart,secureConnectionStart:i.secureConnectionStart>0?i.secureConnectionStart-a:0,tlsTime:i.secureConnectionStart>0?i.connectEnd-i.secureConnectionStart:0,requestStart:i.requestStart>0?i.requestStart-a:0,timeToFirstByte:i.responseStart-i.requestStart,responseStart:i.responseStart>0?i.responseStart-a:0,responseTime:i.responseStart>0?i.responseEnd-i.responseStart:0,domInteractive:i.domInteractive>0?i.domInteractive-a:0,domContentLoadedEventStart:i.domContentLoadedEventStart>0?i.domContentLoadedEventStart-a:0,domContentLoaded:i.domContentLoadedEventEnd-i.domContentLoadedEventStart,domComplete:i.domComplete>0?i.domComplete-a:0,domProcessingTime:i.loadEventStart-i.responseEnd,loadEventStart:i.loadEventStart>0?i.loadEventStart-a:0,loadEventTime:i.loadEventEnd-i.loadEventStart,duration:i.loadEventEnd-i.navigationStart,navigationTimingLevel:1};!((o=e.context)===null||o===void 0)&&o.record&&e.context.record(vt,c)};setTimeout(n,0)},e.performanceNavigationEventHandlerTimingLevel2=function(n){var o,i={version:"1.0.0",initiatorType:n.initiatorType,navigationType:n.type,startTime:n.startTime,unloadEventStart:n.unloadEventStart,promptForUnload:n.unloadEventEnd-n.unloadEventStart,redirectCount:n.redirectCount,redirectStart:n.redirectStart,redirectTime:n.redirectEnd-n.redirectStart,workerStart:n.workerStart,workerTime:n.workerStart>0?n.fetchStart-n.workerStart:0,fetchStart:n.fetchStart,domainLookupStart:n.domainLookupStart,dns:n.domainLookupEnd-n.domainLookupStart,nextHopProtocol:n.nextHopProtocol,connectStart:n.connectStart,connect:n.connectEnd-n.connectStart,secureConnectionStart:n.secureConnectionStart,tlsTime:n.secureConnectionStart>0?n.connectEnd-n.secureConnectionStart:0,requestStart:n.requestStart,timeToFirstByte:n.responseStart-n.requestStart,responseStart:n.responseStart,responseTime:n.responseStart>0?n.responseEnd-n.responseStart:0,domInteractive:n.domInteractive,domContentLoadedEventStart:n.domContentLoadedEventStart,domContentLoaded:n.domContentLoadedEventEnd-n.domContentLoadedEventStart,domComplete:n.domComplete,domProcessingTime:n.loadEventStart-n.responseEnd,loadEventStart:n.loadEventStart,loadEventTime:n.loadEventEnd-n.loadEventStart,duration:n.duration,headerSize:n.transferSize-n.encodedBodySize,transferSize:n.transferSize,compressionRatio:n.encodedBodySize>0?n.decodedBodySize/n.encodedBodySize:0,navigationTimingLevel:2};!((o=e.context)===null||o===void 0)&&o.record&&e.context.record(vt,i)},e}return r.prototype.enable=function(){this.enabled||(this.enabled=!0,window.addEventListener(St,this.eventListener))},r.prototype.disable=function(){this.enabled&&(this.enabled=!1,this.eventListener&&window.removeEventListener(St,this.eventListener))},r.prototype.hasTheWindowLoadEventFired=function(){if(window.performance&&window.performance.getEntriesByType(J).length){var e=window.performance.getEntriesByType(J)[0];return!!e.loadEventEnd}return!1},r.prototype.onload=function(){if(this.enabled)if(this.hasTheWindowLoadEventFired()){var e=window.performance.getEntriesByType(J)[0];this.performanceNavigationEventHandlerTimingLevel2(e)}else window.addEventListener(St,this.eventListener)},r}(W),N;(function(t){t.OTHER="other",t.STYLESHEET="stylesheet",t.DOCUMENT="document",t.SCRIPT="script",t.IMAGE="image",t.FONT="font"})(N||(N={}));var pa=[{name:N.STYLESHEET,list:["css","less"]},{name:N.DOCUMENT,list:["htm","html","ts","doc","docx","pdf","xls","xlsx"]},{name:N.SCRIPT,list:["js"]},{name:N.IMAGE,list:["ai","bmp","gif","ico","jpeg","jpg","png","ps","psd","svg","tif","tiff"]},{name:N.FONT,list:["fnt","fon","otf","ttf","woff"]}],Hn=function(t){for(var r=t.length-1;r>0;r--){var e=Math.floor(Math.random()*(r+1)),n=t[r];t[r]=t[e],t[e]=n}},Tt=function(t){var r=t.substring(t.lastIndexOf("/")+1),e=r.substring(r.lastIndexOf(".")+1).split(/[?#]/)[0],n=N.OTHER;return pa.forEach(function(o){o.list.indexOf(e)>-1&&(n=o.name)}),n},va=function(){var t=function(r,e){return t=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])},t(r,e)};return function(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(r,e);function n(){this.constructor=r}r.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),We=function(){return We=Object.assign||function(t){for(var r,e=1,n=arguments.length;e<n;e++){r=arguments[e];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},We.apply(this,arguments)},ga="resource",Ct="resource",At="load",ma={eventLimit:10,recordAllTypes:[N.DOCUMENT,N.SCRIPT],sampleTypes:[N.STYLESHEET,N.IMAGE,N.FONT,N.OTHER]},wa=function(t){va(r,t);function r(e){var n=t.call(this,ga)||this;return n.resourceEventListener=function(o){var i=[],a=[],c=0,u=new PerformanceObserver(function(f){f.getEntries().filter(function(p){return p.entryType===Ct}).forEach(function(p){var l=Tt(p.name);n.config.recordAllTypes.includes(l)?i.push(p):n.config.sampleTypes.includes(l)&&a.push(p)})});u.observe({entryTypes:[Ct]});var s=performance.getEntriesByType(Ct);for(s!==void 0&&s.length>0&&s.forEach(function(f){var p=Tt(f.name);n.config.recordAllTypes.includes(p)?i.push(f):n.config.sampleTypes.includes(p)&&a.push(f)}),Hn(i);i.length>0&&c<n.config.eventLimit;)n.recordResourceEvent(i.pop()),c++;for(Hn(a);a.length>0&&c<n.config.eventLimit;)n.recordResourceEvent(a.pop()),c++},n.recordResourceEvent=function(o){var i,a=/.*\/application\/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\/events/,c=new URL(o.name);if(!(c.host===n.context.config.endpointUrl.host&&a.test(c.pathname))&&!((i=n.context)===null||i===void 0)&&i.record){var u={version:"1.0.0",initiatorType:o.initiatorType,duration:o.duration,fileType:Tt(o.name),transferSize:o.transferSize};n.context.config.recordResourceUrl&&(u.targetUrl=o.name),n.context.record(Li,u)}},n.config=We(We({},ma),e),n}return r.prototype.enable=function(){this.enabled||(this.enabled=!0,window.addEventListener(At,this.resourceEventListener))},r.prototype.disable=function(){this.enabled&&(this.enabled=!1,this.resourceEventListener&&window.removeEventListener(At,this.resourceEventListener))},r.prototype.onload=function(){window.addEventListener(At,this.resourceEventListener)},r}(W),q,de,Un,Xe,xn=-1,he=function(t){addEventListener("pageshow",function(r){r.persisted&&(xn=r.timeStamp,t(r))},!0)},Dn=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},Ot=function(){var t=Dn();return t&&t.activationStart||0},F=function(t,r){var e=Dn(),n="navigate";return xn>=0?n="back-forward-cache":e&&(n=document.prerendering||Ot()>0?"prerender":document.wasDiscarded?"restore":e.type.replace(/_/g,"-")),{name:t,value:r===void 0?-1:r,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:n}},$e=function(t,r,e){try{if(PerformanceObserver.supportedEntryTypes.includes(t)){var n=new PerformanceObserver(function(o){Promise.resolve().then(function(){r(o.getEntries())})});return n.observe(Object.assign({type:t,buffered:!0},e||{})),n}}catch{}},V=function(t,r,e,n){var o,i;return function(a){r.value>=0&&(a||n)&&((i=r.value-(o||0))||o===void 0)&&(o=r.value,r.delta=i,r.rating=function(c,u){return c>u[1]?"poor":c>u[0]?"needs-improvement":"good"}(r.value,e),t(r))}},It=function(t){requestAnimationFrame(function(){return requestAnimationFrame(function(){return t()})})},Pt=function(t){var r=function(e){e.type!=="pagehide"&&document.visibilityState!=="hidden"||t(e)};addEventListener("visibilitychange",r,!0),addEventListener("pagehide",r,!0)},Rt=function(t){var r=!1;return function(e){r||(t(e),r=!0)}},Z=-1,Bn=function(){return document.visibilityState!=="hidden"||document.prerendering?1/0:0},Ke=function(t){document.visibilityState==="hidden"&&Z>-1&&(Z=t.type==="visibilitychange"?t.timeStamp:0,ya())},qn=function(){addEventListener("visibilitychange",Ke,!0),addEventListener("prerenderingchange",Ke,!0)},ya=function(){removeEventListener("visibilitychange",Ke,!0),removeEventListener("prerenderingchange",Ke,!0)},Lt=function(){return Z<0&&(Z=Bn(),qn(),he(function(){setTimeout(function(){Z=Bn(),qn()},0)})),{get firstHiddenTime(){return Z}}},kt=function(t){document.prerendering?addEventListener("prerenderingchange",function(){return t()},!0):t()},Fn=[1800,3e3],ba=function(t,r){r=r||{},kt(function(){var e,n=Lt(),o=F("FCP"),i=$e("paint",function(a){a.forEach(function(c){c.name==="first-contentful-paint"&&(i.disconnect(),c.startTime<n.firstHiddenTime&&(o.value=Math.max(c.startTime-Ot(),0),o.entries.push(c),e(!0)))})});i&&(e=V(t,o,Fn,r.reportAllChanges),he(function(a){o=F("FCP"),e=V(t,o,Fn,r.reportAllChanges),It(function(){o.value=performance.now()-a.timeStamp,e(!0)})}))})},Vn=[.1,.25],_a=function(t,r){r=r||{},ba(Rt(function(){var e,n=F("CLS",0),o=0,i=[],a=function(u){u.forEach(function(s){if(!s.hadRecentInput){var f=i[0],p=i[i.length-1];o&&s.startTime-p.startTime<1e3&&s.startTime-f.startTime<5e3?(o+=s.value,i.push(s)):(o=s.value,i=[s])}}),o>n.value&&(n.value=o,n.entries=i,e())},c=$e("layout-shift",a);c&&(e=V(t,n,Vn,r.reportAllChanges),Pt(function(){a(c.takeRecords()),e(!0)}),he(function(){o=0,n=F("CLS",0),e=V(t,n,Vn,r.reportAllChanges),It(function(){return e()})}),setTimeout(e,0))}))},pe={passive:!0,capture:!0},Ea=new Date,Gn=function(t,r){q||(q=r,de=t,Un=new Date,Wn(removeEventListener),zn())},zn=function(){if(de>=0&&de<Un-Ea){var t={entryType:"first-input",name:q.type,target:q.target,cancelable:q.cancelable,startTime:q.timeStamp,processingStart:q.timeStamp+de};Xe.forEach(function(r){r(t)}),Xe=[]}},Sa=function(t){if(t.cancelable){var r=(t.timeStamp>1e12?new Date:performance.now())-t.timeStamp;t.type=="pointerdown"?function(e,n){var o=function(){Gn(e,n),a()},i=function(){a()},a=function(){removeEventListener("pointerup",o,pe),removeEventListener("pointercancel",i,pe)};addEventListener("pointerup",o,pe),addEventListener("pointercancel",i,pe)}(r,t):Gn(r,t)}},Wn=function(t){["mousedown","keydown","touchstart","pointerdown"].forEach(function(r){return t(r,Sa,pe)})},Xn=[100,300],Ta=function(t,r){r=r||{},kt(function(){var e,n=Lt(),o=F("FID"),i=function(u){u.startTime<n.firstHiddenTime&&(o.value=u.processingStart-u.startTime,o.entries.push(u),e(!0))},a=function(u){u.forEach(i)},c=$e("first-input",a);e=V(t,o,Xn,r.reportAllChanges),c&&Pt(Rt(function(){a(c.takeRecords()),c.disconnect()})),c&&he(function(){var u;o=F("FID"),e=V(t,o,Xn,r.reportAllChanges),Xe=[],de=-1,q=null,Wn(addEventListener),u=i,Xe.push(u),zn()})})},$n=[2500,4e3],Nt={},Ca=function(t,r){r=r||{},kt(function(){var e,n=Lt(),o=F("LCP"),i=function(u){var s=u[u.length-1];s&&s.startTime<n.firstHiddenTime&&(o.value=Math.max(s.startTime-Ot(),0),o.entries=[s],e())},a=$e("largest-contentful-paint",i);if(a){e=V(t,o,$n,r.reportAllChanges);var c=Rt(function(){Nt[o.id]||(i(a.takeRecords()),a.disconnect(),Nt[o.id]=!0,e(!0))});["keydown","click"].forEach(function(u){addEventListener(u,c,!0)}),Pt(c),he(function(u){o=F("LCP"),e=V(t,o,$n,r.reportAllChanges),It(function(){o.value=performance.now()-u.timeStamp,Nt[o.id]=!0,e(!0)})})}})},Aa=function(){var t=function(r,e){return t=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])},t(r,e)};return function(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(r,e);function n(){this.constructor=r}r.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Oa="web-vitals",Ia=function(t){Aa(r,t);function r(){return t.call(this,Oa)||this}return r.prototype.enable=function(){},r.prototype.disable=function(){},r.prototype.configure=function(e){},r.prototype.getWebVitalData=function(e,n){var o,i={version:"1.0.0",value:e.value};(o=this.context)===null||o===void 0||o.record(n,i)},r.prototype.onload=function(){var e=this;Ca(function(n){return e.getWebVitalData(n,Ii)}),Ta(function(n){return e.getWebVitalData(n,Pi)}),_a(function(n){return e.getWebVitalData(n,Ri)})},r}(W),Kn=function(t){if(crypto)return crypto.getRandomValues(t);if(msCrypto)return msCrypto.getRandomValues(t);throw new Error("No crypto library found.")},Yn=[];for(ve=0;ve<256;ve++)Yn[ve]=(ve+256).toString(16).substr(1);var ve,jt="X-Amzn-Trace-Id",Jn={logicalServiceName:"rum.aws.amazon.com",urlsToInclude:[/.*/],urlsToExclude:[/cognito\-identity\.([^\.]*\.)?amazonaws\.com/,/sts\.([^\.]*\.)?amazonaws\.com/],stackTraceLength:200,recordAllRequests:!1,addXRayTraceIdHeader:!1},Zn=function(t){return Math.floor(t/100)===4},Qn=function(t){return Math.floor(t/100)===5},er=function(t){return t===429},tr=function(t,r){var e=r.urlsToInclude.some(function(o){return o.test(t)}),n=r.urlsToExclude.some(function(o){return o.test(t)});return e&&!n},Q=function(){return Date.now()/1e3},Pa=function(t,r,e){var n={request:{}};return n.request.method=r?.method?r.method:"GET",n.request.traced=e,n.request.url=Ht(t),n},nr=function(t,r,e){var n={version:"1.0.0",name:t,origin:"AWS::RUM::AppMonitor",id:or(),start_time:r,trace_id:ka(),end_time:void 0,subsegments:[],in_progress:!1};return e&&(n.http=e),n},rr=function(t,r,e){var n={id:or(),name:t,start_time:r,end_time:void 0,in_progress:!1,namespace:t.endsWith("amazonaws.com")?"aws":"remote"};return e&&(n.http=e),n},ir=function(t){try{return t.hostname?t.hostname:t.url?new URL(t.url).hostname:new URL(t.toString()).hostname}catch{return window.location.hostname}},Ra=function(t,r,e){t.headers||(t.headers={}),t.headers[jt]=Mt(r,e)},La=function(t,r,e){t.set(jt,Mt(r,e))},Mt=function(t,r){return"Root="+t+";Parent="+r+";Sampled=1"},Ht=function(t){return t.url?t.url:t.toString()},ka=function(){return"1-".concat(Na(),"-").concat(ja())},or=function(){var t=new Uint8Array(8);return Kn(t),ar(t)},Na=function(){return Math.floor(Date.now()/1e3).toString(16)},ja=function(){var t=new Uint8Array(12);return Kn(t),ar(t)},ar=function(t){for(var r="",e=0;e<t.length;e++)r+=Yn[t[e]];return r},Ma=function(){var t=function(r,e){return t=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])},t(r,e)};return function(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(r,e);function n(){this.constructor=r}r.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ha=function(t){Ma(r,t);function r(e){var n=t.call(this,e)||this;return n.name="XMLHttpRequest error",n}return r}(Error),Ua=function(){var t=function(r,e){return t=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])},t(r,e)};return function(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(r,e);function n(){this.constructor=r}r.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ye=function(){return Ye=Object.assign||function(t){for(var r,e=1,n=arguments.length;e<n;e++){r=arguments[e];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},Ye.apply(this,arguments)},xa="xhr",Da=function(t){Ua(r,t);function r(e){var n=t.call(this,xa)||this;return n.addXRayTraceIdHeader=function(){return n.config.addXRayTraceIdHeader},n.isTracingEnabled=function(){return n.context.config.enableXRay},n.isSessionRecorded=function(){var o;return((o=n.context.getSession())===null||o===void 0?void 0:o.record)||!1},n.handleXhrLoadEvent=function(o){var i=o.target,a=n.xhrMap.get(i);if(a){var c=Q();a.trace.end_time=c,a.trace.subsegments[0].end_time=c,a.trace.subsegments[0].http.response={status:i.status},er(i.status)?(a.trace.subsegments[0].throttle=!0,a.trace.throttle=!0):Zn(i.status)?(a.trace.subsegments[0].error=!0,a.trace.error=!0):Qn(i.status)&&(a.trace.subsegments[0].fault=!0,a.trace.fault=!0);var u=i.getResponseHeader("Content-Length"),s=u?parseInt(u,10):NaN;isNaN(s)||(a.trace.subsegments[0].http.response.content_length=s),n.recordTraceEvent(a.trace),n.recordHttpEventWithResponse(a,i)}},n.handleXhrErrorEvent=function(o){var i=o.target,a=n.xhrMap.get(i),c="XMLHttpRequest error",u=i.statusText?i.status.toString()+": "+i.statusText:i.status.toString();if(a){var s=Q();a.trace.fault=!0,a.trace.end_time=s,a.trace.subsegments[0].end_time=s,a.trace.subsegments[0].fault=!0,a.trace.subsegments[0].cause={exceptions:[{type:c,message:u}]},n.recordTraceEvent(a.trace),n.recordHttpEventWithError(a,new Ha(u))}},n.handleXhrAbortEvent=function(o){var i=o.target,a=n.xhrMap.get(i),c="XMLHttpRequest abort";n.handleXhrDetailsOnError(a,c)},n.handleXhrTimeoutEvent=function(o){var i=o.target,a=n.xhrMap.get(i),c="XMLHttpRequest timeout";n.handleXhrDetailsOnError(a,c)},n.initializeTrace=function(o){var i=Q();o.trace=nr(n.config.logicalServiceName,i),o.trace.subsegments.push(rr(ir(o.url),i,{request:{method:o.method,url:o.url,traced:!0}}))},n.sendWrapper=function(){var o=n;return function(i){return function(){var a=o.xhrMap.get(this);return a&&(this.addEventListener("load",o.handleXhrLoadEvent),this.addEventListener("error",o.handleXhrErrorEvent),this.addEventListener("abort",o.handleXhrAbortEvent),this.addEventListener("timeout",o.handleXhrTimeoutEvent),o.initializeTrace(a),o.isTracingEnabled()&&o.addXRayTraceIdHeader()&&o.isSessionRecorded()&&this.setRequestHeader(jt,Mt(a.trace.trace_id,a.trace.subsegments[0].id))),i.apply(this,arguments)}}},n.openWrapper=function(){var o=n;return function(i){return function(a,c,u){return tr(c,o.config)&&o.xhrMap.set(this,{url:c,method:a,async:u}),i.apply(this,arguments)}}},n.config=Ye(Ye({},Jn),e),n.xhrMap=new Map,n}return r.prototype.onload=function(){this.enable()},Object.defineProperty(r.prototype,"patches",{get:function(){return[{nodule:XMLHttpRequest.prototype,name:"send",wrapper:this.sendWrapper},{nodule:XMLHttpRequest.prototype,name:"open",wrapper:this.openWrapper}]},enumerable:!1,configurable:!0}),r.prototype.handleXhrDetailsOnError=function(e,n){if(e){var o=Q();e.trace.end_time=o,e.trace.subsegments[0].end_time=o,e.trace.subsegments[0].error=!0,e.trace.subsegments[0].cause={exceptions:[{type:n}]},this.recordTraceEvent(e.trace),this.recordHttpEventWithError(e,n)}},r.prototype.statusOk=function(e){return e>=200&&e<300},r.prototype.recordHttpEventWithResponse=function(e,n){(this.config.recordAllRequests||!this.statusOk(n.status))&&this.context.record(Re,{version:"1.0.0",request:{method:e.method,url:e.url},response:{status:n.status,statusText:n.statusText}})},r.prototype.recordHttpEventWithError=function(e,n){var o={version:"1.0.0",request:{method:e.method,url:e.url}};o.error=gt({type:"error",error:n},this.config.stackTraceLength),this.context.record(Re,o)},r.prototype.recordTraceEvent=function(e){this.isTracingEnabled()&&this.isSessionRecorded()&&this.context.record(cn,e)},r}(xe),Ba=function(){var t=function(r,e){return t=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])},t(r,e)};return function(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(r,e);function n(){this.constructor=r}r.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Je=function(){return Je=Object.assign||function(t){for(var r,e=1,n=arguments.length;e<n;e++){r=arguments[e];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},Je.apply(this,arguments)},qa="fetch",Fa=function(t){Ba(r,t);function r(e){var n=t.call(this,qa)||this;return n.isTracingEnabled=function(){return n.context.config.enableXRay},n.isSessionRecorded=function(){var o;return((o=n.context.getSession())===null||o===void 0?void 0:o.record)||!1},n.beginTrace=function(o,i,a){var c=Q(),u=Pa(o,i,!0),s=nr(n.config.logicalServiceName,c),f=rr(ir(o),c,u);return s.subsegments.push(f),n.config.addXRayTraceIdHeader&&n.addXRayTraceIdHeader(o,i,a,s),s},n.addXRayTraceIdHeader=function(o,i,a,c){if(o.headers)return La(o.headers,c.trace_id,c.subsegments[0].id);i||(i={},[].push.call(a,i)),Ra(i,c.trace_id,c.subsegments[0].id)},n.endTrace=function(o,i,a){if(o){var c=Q();if(o.subsegments[0].end_time=c,o.end_time=c,i){o.subsegments[0].http.response={status:i.status},er(i.status)?(o.subsegments[0].throttle=!0,o.throttle=!0):Zn(i.status)?(o.subsegments[0].error=!0,o.error=!0):Qn(i.status)&&(o.subsegments[0].fault=!0,o.fault=!0);var u=i.headers.get("Content-Length"),s=u?parseInt(u,10):NaN;isNaN(s)||(o.subsegments[0].http.response.content_length=s)}a&&(o.fault=!0,o.subsegments[0].fault=!0,a instanceof Object?n.appendErrorCauseFromObject(o.subsegments[0],a):fn(a)&&n.appendErrorCauseFromPrimitive(o.subsegments[0],a.toString())),n.context.record(cn,o)}},n.createHttpEvent=function(o,i){var a=o;return{version:"1.0.0",request:{url:Ht(o),method:i?.method?i.method:a.method?a.method:"GET"}}},n.recordHttpEventWithResponse=function(o,i){(n.config.recordAllRequests||!i.ok)&&(o.response={status:i.status,statusText:i.statusText},n.context.record(Re,o))},n.recordHttpEventWithError=function(o,i){o.error=gt({type:"error",error:i},n.config.stackTraceLength),n.context.record(Re,o)},n.fetch=function(o,i,a,c,u){var s=n.createHttpEvent(c,u),f;return tr(Ht(c),n.config)?(n.isTracingEnabled()&&n.isSessionRecorded()&&(f=n.beginTrace(c,u,a)),o.apply(i,a).then(function(p){return n.endTrace(f,p,void 0),n.recordHttpEventWithResponse(s,p),p}).catch(function(p){throw n.endTrace(f,void 0,p),n.recordHttpEventWithError(s,p),p})):o.apply(i,a)},n.fetchWrapper=function(){var o=n;return function(i){return function(a,c){return o.fetch(i,this,arguments,a,c)}}},n.config=Je(Je({},Jn),e),n}return Object.defineProperty(r.prototype,"patches",{get:function(){return[{nodule:window,name:"fetch",wrapper:this.fetchWrapper}]},enumerable:!1,configurable:!0}),r.prototype.onload=function(){this.enable()},r.prototype.appendErrorCauseFromPrimitive=function(e,n){e.cause={exceptions:[{type:n}]}},r.prototype.appendErrorCauseFromObject=function(e,n){e.cause={exceptions:[{type:n.name,message:n.message}]}},r}(xe),Va=function(){var t=function(r,e){return t=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])},t(r,e)};return function(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(r,e);function n(){this.constructor=r}r.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ga="page-view",za=function(t){Va(r,t);function r(){var e=t.call(this,Ga)||this;return e.pushState=function(){var n=e;return function(o){return function(i,a,c){var u=o.apply(this,arguments);return n.recordPageView(),u}}},e.replaceState=function(){var n=e;return function(o){return function(i,a,c){var u=o.apply(this,arguments);return n.recordPageView(),u}}},e.popstateListener=function(n){e.recordPageView()},e.recordPageView=function(){e.context.recordPageView(e.createIdForCurrentPage())},e.enable(),e}return r.prototype.onload=function(){this.addListener(),this.recordPageView()},Object.defineProperty(r.prototype,"patches",{get:function(){return[{nodule:History.prototype,name:"pushState",wrapper:this.pushState},{nodule:History.prototype,name:"replaceState",wrapper:this.replaceState}]},enumerable:!1,configurable:!0}),r.prototype.addListener=function(){window.addEventListener("popstate",this.popstateListener)},r.prototype.createIdForCurrentPage=function(){var e=window.location.pathname,n=window.location.hash;switch(this.context.config.pageIdFormat){case re.PathAndHash:return e&&n?e+n:e||n||"";case re.Hash:return n||"";case re.Path:default:return e||""}},r}(xe),ee=function(){return ee=Object.assign||function(t){for(var r,e=1,n=arguments.length;e<n;e++){r=arguments[e];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},ee.apply(this,arguments)},Wa=function(t,r){var e={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&r.indexOf(n)<0&&(e[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(t);o<n.length;o++)r.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(e[n[o]]=t[n[o]]);return e},te=function(t,r,e){if(e||arguments.length===2)for(var n=0,o=r.length,i;n<o;n++)(i||!(n in r))&&(i||(i=Array.prototype.slice.call(r,0,n)),i[n]=r[n]);return t.concat(i||Array.prototype.slice.call(r))},sr="us-west-2",Ut="https://dataplane.rum.".concat(sr,".amazonaws.com"),ne;(function(t){t.Errors="errors",t.Performance="performance",t.Interaction="interaction",t.Http="http"})(ne||(ne={}));var re;(function(t){t.Path="PATH",t.Hash="HASH",t.PathAndHash="PATH_AND_HASH"})(re||(re={}));var Xa=function(){return{unique:!1,domain:window.location.hostname,path:"/",sameSite:"Strict",secure:!0}},$a=function(t){return{allowCookies:!1,batchLimit:100,client:Ti,cookieAttributes:t,disableAutoPageView:!1,dispatchInterval:5*1e3,enableRumClient:!0,enableXRay:!1,endpoint:Ut,endpointUrl:new URL(Ut),eventCacheSize:200,eventPluginsToLoad:[],pageIdFormat:re.Path,pagesToExclude:[],pagesToInclude:[/.*/],signing:!0,recordResourceUrl:!0,retries:2,routeChangeComplete:100,routeChangeTimeout:1e4,sessionAttributes:{},sessionEventLimit:200,sessionLengthSeconds:60*30,sessionSampleRate:1,telemetries:[],useBeacon:!0,userIdRetentionDays:30}},Ka=function(){function t(r,e,n,o){o===void 0&&(o={});var i=o.cookieAttributes,a=Wa(o,["cookieAttributes"]);typeof n>"u"&&(n="us-west-2");var c=ee(ee({},Xa()),i);this.config=ee(ee({fetchFunction:fetch},$a(c)),a),this.config.endpoint=this.getDataPlaneEndpoint(n,a),this.config.endpointUrl=new URL(this.config.endpoint),this.eventCache=this.initEventCache(r,e),this.dispatchManager=this.initDispatch(n),this.pluginManager=this.initPluginManager(r,e),this.config.enableRumClient?this.enable():this.disable()}return t.prototype.setAwsCredentials=function(r){this.dispatchManager.setAwsCredentials(r)},t.prototype.addSessionAttributes=function(r){this.eventCache.addSessionAttributes(r)},t.prototype.addPlugin=function(r){this.pluginManager.addPlugin(r)},t.prototype.dispatch=function(){this.dispatchManager.dispatchFetch()},t.prototype.dispatchBeacon=function(){this.dispatchManager.dispatchBeacon()},t.prototype.enable=function(){this.eventCache.enable(),this.pluginManager.enable(),this.dispatchManager.enable()},t.prototype.disable=function(){this.dispatchManager.disable(),this.pluginManager.disable(),this.eventCache.disable()},t.prototype.allowCookies=function(r){this.config.allowCookies=r},t.prototype.recordPageView=function(r){this.eventCache.recordPageView(r)},t.prototype.recordError=function(r){this.pluginManager.record(ln,r)},t.prototype.registerDomEvents=function(r){this.pluginManager.updatePlugin(un,r)},t.prototype.recordEvent=function(r,e){this.eventCache.recordEvent(r,e)},t.prototype.initEventCache=function(r,e){return new Co({id:r,version:e},this.config)},t.prototype.initDispatch=function(r){var e=new fa(r,this.config.endpointUrl,this.eventCache,this.config);return this.config.identityPoolId&&this.config.guestRoleArn?e.setAwsCredentials(new Ci(this.config).ChainAnonymousCredentialsProvider):this.config.identityPoolId&&e.setAwsCredentials(new Ai(this.config).ChainAnonymousCredentialsProvider),e},t.prototype.initPluginManager=function(r,e){var n=this.constructBuiltinPlugins(),o=te(te([],n,!0),this.config.eventPluginsToLoad,!0),i={applicationId:r,applicationVersion:e,config:this.config,record:this.eventCache.recordEvent,recordPageView:this.eventCache.recordPageView,getSession:this.eventCache.getSession},a=new Mi(i);return this.config.disableAutoPageView||a.addPlugin(new za),o.forEach(function(c){a.addPlugin(c)}),a},t.prototype.constructBuiltinPlugins=function(){var r=[],e=this.telemetryFunctor();return this.config.telemetries.forEach(function(n){typeof n=="string"&&e[n.toLowerCase()]?r=te(te([],r,!0),e[n.toLowerCase()]({}),!0):Array.isArray(n)&&e[n[0].toLowerCase()]&&(r=te(te([],r,!0),e[n[0].toLowerCase()](n[1]),!0))}),r},t.prototype.getDataPlaneEndpoint=function(r,e){return e.endpoint?e.endpoint:Ut.replace(sr,r)},t.prototype.telemetryFunctor=function(){var r;return r={},r[ne.Errors]=function(e){return[new zi(e)]},r[ne.Performance]=function(e){return[new ha,new wa(e),new Ia]},r[ne.Interaction]=function(e){return[new xi(e)]},r[ne.Http]=function(e){return[new Da(e),new Fa(e)]},r},t}();try{window.awsRum=new Ka(window.awsRumVariables.APPLICATION_ID,window.awsRumVariables.APPLICATION_VERSION,window.awsRumVariables.APPLICATION_REGION,window.awsRumVariables.config)}catch{}})();