@20minutes/tyr 0.1.87 → 0.1.89

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 (33) 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 +46047 -45764
  27. package/dist/index.umd.js +162 -154
  28. package/dist/js/ads.min.js +1 -1
  29. package/dist/js/awsRum.min.js +4 -4
  30. package/dist/js/main.min.js +37 -37
  31. package/dist/managers/helpers/AdsManager.d.ts +2 -1
  32. package/dist/types/graphql.d.ts +250 -16
  33. package/package.json +11 -8
@@ -1,12 +1,12 @@
1
- (function(){"use strict";var yr=Object.create,be=Object.defineProperty,wr=Object.getOwnPropertyDescriptor,at=Object.getOwnPropertyNames,br=Object.getPrototypeOf,_r=Object.prototype.hasOwnProperty,Er=(t,r)=>function(){return t&&(r=(0,t[at(t)[0]])(t=0)),r},L=(t,r)=>function(){return r||(0,t[at(t)[0]])((r={exports:{}}).exports,r),r.exports},Sr=(t,r)=>{for(var e in r)be(t,e,{get:r[e],enumerable:!0})},Kt=(t,r,e,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of at(r))!_r.call(t,o)&&o!==e&&be(t,o,{get:()=>r[o],enumerable:!(n=wr(r,o))||n.enumerable});return t},st=(t,r,e)=>(e=t!=null?yr(br(t)):{},Kt(r||!t||!t.__esModule?be(e,"default",{value:t,enumerable:!0}):e,t)),$t=t=>Kt(be({},"__esModule",{value:!0}),t),Tr=L({"node_modules/ua-parser-js/src/ua-parser.js"(t,r){(function(e,n){var o="0.7.34",i="",a="?",c="function",u="undefined",s="object",f="string",d="major",l="model",h="name",p="type",v="vendor",g="version",C="architecture",N="console",y="mobile",w="tablet",R="smarttv",F="wearable",Ze="embedded",xt=350,Dt="Amazon",ge="Apple",ar="ASUS",sr="BlackBerry",re="Browser",Qe="Chrome",Xa="Edge",et="Firefox",tt="Google",cr="Huawei",qt="LG",Bt="Microsoft",ur="Motorola",nt="Opera",Ft="Samsung",fr="Sharp",rt="Sony",Vt="Xiaomi",Gt="Zebra",lr="Facebook",dr="Chromium OS",hr="Mac OS",Ka=function(_,E){var b={};for(var S in _)E[S]&&E[S].length%2===0?b[S]=E[S].concat(_[S]):b[S]=_[S];return b},it=function(_){for(var E={},b=0;b<_.length;b++)E[_[b].toUpperCase()]=_[b];return E},pr=function(_,E){return typeof _===f?me(E).indexOf(me(_))!==-1:!1},me=function(_){return _.toLowerCase()},$a=function(_){return typeof _===f?_.replace(/[^\d\.]/g,i).split(".")[0]:n},zt=function(_,E){if(typeof _===f)return _=_.replace(/^\s\s*/,i),typeof E===u?_:_.substring(0,xt)},ye=function(_,E){for(var b=0,S,V,U,m,we,H;b<E.length&&!we;){var Xt=E[b],mr=E[b+1];for(S=V=0;S<Xt.length&&!we&&Xt[S];)if(we=Xt[S++].exec(_),we)for(U=0;U<mr.length;U++)H=we[++V],m=mr[U],typeof m===s&&m.length>0?m.length===2?typeof m[1]==c?this[m[0]]=m[1].call(this,H):this[m[0]]=m[1]:m.length===3?typeof m[1]===c&&!(m[1].exec&&m[1].test)?this[m[0]]=H?m[1].call(this,H,m[2]):n:this[m[0]]=H?H.replace(m[1],m[2]):n:m.length===4&&(this[m[0]]=H?m[3].call(this,H.replace(m[1],m[2])):n):this[m]=H||n;b+=2}},Wt=function(_,E){for(var b in E)if(typeof E[b]===s&&E[b].length>0){for(var S=0;S<E[b].length;S++)if(pr(E[b][S],_))return b===a?n:b}else if(pr(E[b],_))return b===a?n:b;return _},Ya={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},vr={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"},gr={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|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[h,g],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[g,[h,"UC"+re]],[/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"]],[/yabrowser\/([\w\.]+)/i],[g,[h,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[h,/(.+)/,"$1 Secure "+re],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 "+re]],[/fxios\/([-\w\.]+)/i],[g,[h,et]],[/\bqihu|(qi?ho?o?|360)browser/i],[[h,"360 "+re]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[h,/(.+)/,"$1 "+re],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,lr],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"]],[/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 "+re]],[/(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,Wt,Ya]],[/(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],[[C,"amd64"]],[/(ia32(?=;))/i],[[C,me]],[/((?: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,me]],[/(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,me]]],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,Ft],[p,w]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[l,[v,Ft],[p,y]],[/\((ip(?:hone|od)[\w ]*);/i],[l,[v,ge],[p,y]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[l,[v,ge],[p,w]],[/(macintosh);/i],[l,[v,ge]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[l,[v,fr],[p,y]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[l,[v,cr],[p,w]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[l,[v,cr],[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,Vt],[p,y]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[l,/_/g," "],[v,Vt],[p,w]],[/; (\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,ur],[p,y]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[l,[v,ur],[p,w]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[l,[v,qt],[p,w]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[l,[v,qt],[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,w]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[l,/_/g," "],[v,"Nokia"],[p,y]],[/(pixel c)\b/i],[l,[v,tt],[p,w]],[/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,w]],[/ (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)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[l,[v,Dt],[p,w]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[l,/(.+)/g,"Fire Phone $1"],[v,Dt],[p,y]],[/(playbook);[-\w\),; ]+(rim)/i],[l,v,[p,w]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[l,[v,sr],[p,y]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[l,[v,ar],[p,w]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[l,[v,ar],[p,y]],[/(nexus 9)/i],[l,[v,"HTC"],[p,w]],[/(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,w]],[/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,w]],[/(surface duo)/i],[l,[v,Bt],[p,w]],[/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,w]],[/\b(venue[\d ]{2,7}) b/i],[l,[v,"Dell"],[p,w]],[/\b(q(?:mv|ta)\w+) b/i],[l,[v,"Verizon"],[p,w]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[l,[v,"Barnes & Noble"],[p,w]],[/\b(tm\d{3}\w+) b/i],[l,[v,"NuVision"],[p,w]],[/\b(k88) b/i],[l,[v,"ZTE"],[p,w]],[/\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,w]],[/\b((zeki)?tb.*\b) b/i],[l,[v,"Zeki"],[p,w]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[v,"Dragon Touch"],l,[p,w]],[/\b(ns-?\w{0,9}) b/i],[l,[v,"Insignia"],[p,w]],[/\b((nxa|next)-?\w{0,9}) b/i],[l,[v,"NextBook"],[p,w]],[/\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,w]],[/\b(trio[-\w\. ]+) b/i],[l,[v,"MachSpeed"],[p,w]],[/\btu_(1491) b/i],[l,[v,"Rotor"],[p,w]],[/(shield[\w ]+) b/i],[l,[v,"Nvidia"],[p,w]],[/(sprint) (\w+)/i],[v,l,[p,y]],[/(kin\.[onetw]{3})/i],[[l,/\./g," "],[v,Bt],[p,y]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[l,[v,Gt],[p,w]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[l,[v,Gt],[p,y]],[/smart-tv.+(samsung)/i],[v,[p,R]],[/hbbtv.+maple;(\d+)/i],[[l,/^/,"SmartTV"],[v,Ft],[p,R]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[v,qt],[p,R]],[/(apple) ?tv/i],[v,[l,ge+" TV"],[p,R]],[/crkey/i],[[l,Qe+"cast"],[v,tt],[p,R]],[/droid.+aft(\w)( bui|\))/i],[l,[v,Dt],[p,R]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[l,[v,fr],[p,R]],[/(bravia[\w ]+)( bui|\))/i],[l,[v,rt],[p,R]],[/(mitv-\w{5}) bui/i],[l,[v,Vt],[p,R]],[/Hbbtv.*(technisat) (.*);/i],[v,l,[p,R]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[v,zt],[l,zt],[p,R]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[p,R]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[v,l,[p,N]],[/droid.+; (shield) bui/i],[l,[v,"Nvidia"],[p,N]],[/(playstation [345portablevi]+)/i],[l,[v,rt],[p,N]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[l,[v,Bt],[p,N]],[/((pebble))app/i],[v,l,[p,F]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[l,[v,ge],[p,F]],[/droid.+; (glass) \d/i],[l,[v,tt],[p,F]],[/droid.+; (wt63?0{2,3})\)/i],[l,[v,Gt],[p,F]],[/(quest( 2| pro)?)/i],[l,[v,lr],[p,F]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[v,[p,Ze]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[l,[p,y]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[l,[p,w]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[p,w]],[/(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,Xa+"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],[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,Wt,vr]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[h,"Windows"],[g,Wt,vr]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[g,/_/g,"."],[h,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[h,hr],[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,sr]],[/(?: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,dr],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)/i,/(unix) ?([\w\.]*)/i],[h,g]]},M=function(_,E){if(typeof _===s&&(E=_,_=n),!(this instanceof M))return new M(_,E).getResult();var b=typeof e!==u&&e.navigator?e.navigator:n,S=_||(b&&b.userAgent?b.userAgent:i),V=b&&b.userAgentData?b.userAgentData:n,U=E?Ka(gr,E):gr;return this.getBrowser=function(){var m={};return m[h]=n,m[g]=n,ye.call(m,S,U.browser),m[d]=$a(m[g]),b&&b.brave&&typeof b.brave.isBrave==c&&(m[h]="Brave"),m},this.getCPU=function(){var m={};return m[C]=n,ye.call(m,S,U.cpu),m},this.getDevice=function(){var m={};return m[v]=n,m[l]=n,m[p]=n,ye.call(m,S,U.device),!m[p]&&V&&V.mobile&&(m[p]=y),m[l]=="Macintosh"&&b&&typeof b.standalone!==u&&b.maxTouchPoints&&b.maxTouchPoints>2&&(m[l]="iPad",m[p]=w),m},this.getEngine=function(){var m={};return m[h]=n,m[g]=n,ye.call(m,S,U.engine),m},this.getOS=function(){var m={};return m[h]=n,m[g]=n,ye.call(m,S,U.os),!m[h]&&V&&V.platform!="Unknown"&&(m[h]=V.platform.replace(/chrome os/i,dr).replace(/macos/i,hr)),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 S},this.setUA=function(m){return S=typeof m===f&&m.length>xt?zt(m,xt):m,this},this.setUA(S),this};M.VERSION=o,M.BROWSER=it([h,g,d]),M.CPU=it([C]),M.DEVICE=it([l,v,p,N,y,R,w,F,Ze]),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 ie=typeof e!==u&&(e.jQuery||e.Zepto);if(ie&&!ie.ua){var ot=new M;ie.ua=ot.getResult(),ie.ua.get=function(){return ot.getUA()},ie.ua.set=function(_){ot.setUA(_);var E=ot.getResult();for(var b in E)ie.ua[b]=E[b]}}})(typeof window=="object"?window:t)}}),Cr=L({"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={};Sr(ct,{__assign:()=>Ee,__asyncDelegator:()=>xr,__asyncGenerator:()=>Hr,__asyncValues:()=>Dr,__await:()=>oe,__awaiter:()=>Lr,__classPrivateFieldGet:()=>Vr,__classPrivateFieldSet:()=>Gr,__createBinding:()=>Nr,__decorate:()=>Pr,__exportStar:()=>Mr,__extends:()=>Ar,__generator:()=>kr,__importDefault:()=>Fr,__importStar:()=>Br,__makeTemplateObject:()=>qr,__metadata:()=>Rr,__param:()=>Ir,__read:()=>Yt,__rest:()=>Or,__spread:()=>jr,__spreadArrays:()=>Ur,__values:()=>ut});function Ar(t,r){_e(t,r);function e(){this.constructor=t}t.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}function Or(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 Pr(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 Ir(t,r){return function(e,n){r(e,n,t)}}function Rr(t,r){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,r)}function Lr(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 kr(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 Nr(t,r,e,n){n===void 0&&(n=e),t[n]=r[e]}function Mr(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 Yt(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 jr(){for(var t=[],r=0;r<arguments.length;r++)t=t.concat(Yt(arguments[r]));return t}function Ur(){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 oe(t){return this instanceof oe?(this.v=t,this):new oe(t)}function Hr(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 oe?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 xr(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:oe(t[o](a)),done:o==="return"}:i?i(a):a}:i}}function Dr(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 qr(t,r){return Object.defineProperty?Object.defineProperty(t,"raw",{value:r}):t.raw=r,t}function Br(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 Fr(t){return t&&t.__esModule?t:{default:t}}function Vr(t,r){if(!r.has(t))throw new TypeError("attempted to get private field on non-instance");return r.get(t)}function Gr(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,Jt=Er({"node_modules/@aws-crypto/sha256-js/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)}}}),Zt=L({"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}}),zr=L({"node_modules/@aws-crypto/sha256-js/build/RawSha256.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.RawSha256=void 0;var r=Zt(),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],C=(g>>>17|g<<15)^(g>>>19|g<<13)^g>>>10;g=this.temp[v-15];var N=(g>>>7|g<<25)^(g>>>18|g<<14)^g>>>3;this.temp[v]=(C+this.temp[v-7]|0)+(N+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,w=((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+w|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}}),Wr=L({"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}}),Xr=L({"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}}),Kr=L({"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=Wr(),e=Xr(),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}}),$r=L({"node_modules/@aws-crypto/util/build/convertToBuffer.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.convertToBuffer=void 0;var r=Kr(),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}}),Yr=L({"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}}),Jr=L({"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}}),Zr=L({"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}}),Qr=L({"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=$r();Object.defineProperty(t,"convertToBuffer",{enumerable:!0,get:function(){return r.convertToBuffer}});var e=Yr();Object.defineProperty(t,"isEmptyData",{enumerable:!0,get:function(){return e.isEmptyData}});var n=Jr();Object.defineProperty(t,"numToUint8",{enumerable:!0,get:function(){return n.numToUint8}});var o=Zr();Object.defineProperty(t,"uint32ArrayFrom",{enumerable:!0,get:function(){return o.uint32ArrayFrom}})}}),ei=L({"node_modules/@aws-crypto/sha256-js/build/jsSha256.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Sha256=void 0;var r=(Jt(),$t(ct)),e=Zt(),n=zr(),o=Qr(),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}}}),ti=L({"node_modules/@aws-crypto/sha256-js/build/index.js"(t){Object.defineProperty(t,"__esModule",{value:!0});var r=(Jt(),$t(ct));r.__exportStar(ei(),t)}}),Qt;(function(t){t[t.HEADER=0]="HEADER",t[t.TRAILER=1]="TRAILER"})(Qt||(Qt={}));var ae=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 ae({...this,headers:{...this.headers}});return t.query&&(t.query=ni(t.query)),t}};function ni(t){return Object.keys(t).reduce((r,e)=>{const n=t[e];return{...r,[e]:Array.isArray(n)?[...n]:n}},{})}var se=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"}},en=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())})},tn=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}}},ft=function(t){return en(void 0,void 0,void 0,function(){var r;return tn(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))]}})})},ri=function(t){return en(void 0,void 0,void 0,function(){var r;return tn(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)]}})})},lt=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())})},dt=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}}},ii="POST",oi="application/x-amz-json-1.1",ai="https:",si="AWSCognitoIdentityService.GetId",ci="AWSCognitoIdentityService.GetOpenIdToken",ui="AWSCognitoIdentityService.GetCredentialsForIdentity",fi=function(t){return function(){return t.client.getCredentialsForIdentity(t.identityPoolId)}},nn=function(){function t(r){var e=this;this.getId=function(n){return lt(e,void 0,void 0,function(){var o,i,a,c;return dt(this,function(u){switch(u.label){case 0:return u.trys.push([0,3,,4]),o=JSON.stringify(n),i=this.getHttpRequest(si,o),[4,this.fetchRequestHandler.handle(i)];case 1:return a=u.sent().response,[4,ft(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 lt(e,void 0,void 0,function(){var o,i,a,c;return dt(this,function(u){switch(u.label){case 0:return u.trys.push([0,3,,4]),o=JSON.stringify(n),i=this.getHttpRequest(ci,o),[4,this.fetchRequestHandler.handle(i)];case 1:return a=u.sent().response,[4,ft(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 lt(e,void 0,void 0,function(){var o,i,a,c,u,s,f,d,l;return dt(this,function(h){switch(h.label){case 0:return h.trys.push([0,3,,4]),o=JSON.stringify({IdentityId:n}),i=this.getHttpRequest(ui,o),[4,this.fetchRequestHandler.handle(i)];case 1:return a=h.sent().response,[4,ft(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 ae({method:ii,headers:{"content-type":oi,"x-amz-target":n},protocol:ai,hostname:e.hostname,body:o})},this.hostname="cognito-identity.".concat(r.region,".amazonaws.com"),this.fetchRequestHandler=r.fetchRequestHandler}return t}(),G=t=>encodeURIComponent(t).replace(/[!'()*]/g,li),li=t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`;function ht(t){const r=[];for(let e of Object.keys(t).sort()){const n=t[e];if(e=G(e),Array.isArray(n))for(let o=0,i=n.length;o<i;o++)r.push(`${e}=${G(n[o])}`);else{let o=e;(n||typeof n=="string")&&(o+=`=${G(n)}`),r.push(o)}}return r.join("&")}function di(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=ht(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!==void 0?{response:new se({headers:h,statusCode:d.status,body:d.body})}:d.blob().then(v=>({response:new se({headers:h,statusCode:d.status,body:v})}))}),di(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)},hi=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())})},pi=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}}},vi="POST",gi="application/x-www-form-urlencoded",mi="https:",yi="AssumeRoleWithWebIdentity",wi="2011-06-15",bi=function(){function t(r){var e=this;this.assumeRoleWithWebIdentity=function(n){return hi(e,void 0,void 0,function(){var o,i,a,c,u,s;return pi(this,function(f){switch(f.label){case 0:return f.trys.push([0,3,,4]),o=Se(Se({},n),{Action:yi,Version:wi}),i=new URLSearchParams(Object.entries(o)).toString(),a=new ae({method:vi,headers:{"content-type":gi,host:this.hostname},protocol:mi,hostname:this.hostname,body:i}),[4,this.fetchRequestHandler.handle(a)];case 1:return c=f.sent().response,[4,ri(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",rn="cwr_s",on="cwr_u",an=3e4,_i="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}}},Ei=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 bi({fetchRequestHandler:new pt,region:n}),this.cognitoIdentityClient=new nn({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()-an);return new Date>r},t}(),Pe=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())})},Ie=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}}},Si=function(){function t(r){var e=this;this.ChainAnonymousCredentialsProvider=function(){return Pe(e,void 0,void 0,function(){return Ie(this,function(o){return[2,this.AnonymousCredentialsProvider().catch(this.AnonymousStorageCredentialsProvider).catch(this.AnonymousCognitoCredentialsProvider)]})})},this.AnonymousCredentialsProvider=function(){return Pe(e,void 0,void 0,function(){var o=this;return Ie(this,function(i){return[2,new Promise(function(a,c){if(o.renewCredentials())return c();a(o.credentials)})]})})},this.AnonymousStorageCredentialsProvider=function(){return Pe(e,void 0,void 0,function(){var o=this;return Ie(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 Pe(e,void 0,void 0,function(){var o,i=this;return Ie(this,function(a){return o=fi({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 nn({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()-an);return new Date>r},t}(),j="com.amazon.rum",Ti="com.amazonaws.rum",Re="".concat(j,".http_event"),sn="".concat(j,".xray_trace_event"),Ci="".concat(j,".largest_contentful_paint_event"),Ai="".concat(j,".first_input_delay_event"),Oi="".concat(j,".cumulative_layout_shift_event"),vt="".concat(j,".performance_navigation_event"),Pi="".concat(j,".performance_resource_event"),Ii="".concat(j,".dom_event"),Ri="".concat(j,".js_error_event"),Li="".concat(j,".page_view_event"),z=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=Ti,t}(),ki=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(z.generatePluginId(r))},t}(),Ni=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)}}(),W=function(){return W=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},W.apply(this,arguments)},cn="dom-event",Mi={interactionId:function(){return""},enableMutationObserver:!1,events:[]},ji=function(t){Ni(r,t);function r(e){var n=t.call(this,cn)||this;return n.enabled=!1,n.eventListenerMap=new Map,n.config=W(W({},Mi),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=W(W(W({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(Ii,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}(z),Ui=function(t){var r=typeof t;return(r==="object"||r==="function")&&!!t},Hi=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},xi=function(t,r){t.type!=="unhandledrejection"&&(t.type=r.toString()),t.message=r.toString()},Di=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)},un=function(t){return t!==Object(t)&&t!==void 0&&t!==null},gt=function(t,r){var e=Hi(t),n=t.error;return Ui(n)?Di(e,n,r):un(n)&&xi(e,n),e},qi=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)},fn="js-error",Bi={stackTraceLength:1e3,ignore:function(){return!1}},Fi=function(t){qi(r,t);function r(e){var n=t.call(this,fn)||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({},Bi),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(Ri,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}(z),ln=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(Vi(n).toUTCString())),i+="; Domain=".concat(e.domain),i+="; Path=".concat(e.path),i+="; SameSite=".concat(e.sameSite),i+=e.secure?"; Secure":"",document.cookie=i},Vi=function(t){return new Date(new Date().getTime()+t*1e3)},dn=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,Gi=new Uint8Array(16);function zi(){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(Gi)}var Wi=/^(?:[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 Xi(t){return typeof t=="string"&&Wi.test(t)}var Ki=Xi,T=[];for(let t=0;t<256;++t)T.push((t+256).toString(16).slice(1));function hn(t,r=0){return(T[t[r+0]]+T[t[r+1]]+T[t[r+2]]+T[t[r+3]]+"-"+T[t[r+4]]+T[t[r+5]]+"-"+T[t[r+6]]+T[t[r+7]]+"-"+T[t[r+8]]+T[t[r+9]]+"-"+T[t[r+10]]+T[t[r+11]]+T[t[r+12]]+T[t[r+13]]+T[t[r+14]]+T[t[r+15]]).toLowerCase()}function $i(t){if(!Ki(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 Yi=$i;function Ji(t){t=unescape(encodeURIComponent(t));const r=[];for(let e=0;e<t.length;++e)r.push(t.charCodeAt(e));return r}var Zi="6ba7b810-9dad-11d1-80b4-00c04fd430c8",Qi="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function pn(t,r,e){function n(o,i,a,c){var u;if(typeof o=="string"&&(o=Ji(o)),typeof i=="string"&&(i=Yi(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 hn(s)}try{n.name=t}catch{}return n.DNS=Zi,n.URL=Qi,n}function eo(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 to(no(ro(t),t.length*8))}function to(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 vn(t){return(t+64>>>9<<4)+14+1}function no(t,r){t[r>>5]|=128<<r%32,t[vn(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=A(e,n,o,i,t[a],7,-680876936),i=A(i,e,n,o,t[a+1],12,-389564586),o=A(o,i,e,n,t[a+2],17,606105819),n=A(n,o,i,e,t[a+3],22,-1044525330),e=A(e,n,o,i,t[a+4],7,-176418897),i=A(i,e,n,o,t[a+5],12,1200080426),o=A(o,i,e,n,t[a+6],17,-1473231341),n=A(n,o,i,e,t[a+7],22,-45705983),e=A(e,n,o,i,t[a+8],7,1770035416),i=A(i,e,n,o,t[a+9],12,-1958414417),o=A(o,i,e,n,t[a+10],17,-42063),n=A(n,o,i,e,t[a+11],22,-1990404162),e=A(e,n,o,i,t[a+12],7,1804603682),i=A(i,e,n,o,t[a+13],12,-40341101),o=A(o,i,e,n,t[a+14],17,-1502002290),n=A(n,o,i,e,t[a+15],22,1236535329),e=O(e,n,o,i,t[a+1],5,-165796510),i=O(i,e,n,o,t[a+6],9,-1069501632),o=O(o,i,e,n,t[a+11],14,643717713),n=O(n,o,i,e,t[a],20,-373897302),e=O(e,n,o,i,t[a+5],5,-701558691),i=O(i,e,n,o,t[a+10],9,38016083),o=O(o,i,e,n,t[a+15],14,-660478335),n=O(n,o,i,e,t[a+4],20,-405537848),e=O(e,n,o,i,t[a+9],5,568446438),i=O(i,e,n,o,t[a+14],9,-1019803690),o=O(o,i,e,n,t[a+3],14,-187363961),n=O(n,o,i,e,t[a+8],20,1163531501),e=O(e,n,o,i,t[a+13],5,-1444681467),i=O(i,e,n,o,t[a+2],9,-51403784),o=O(o,i,e,n,t[a+7],14,1735328473),n=O(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=I(e,n,o,i,t[a],6,-198630844),i=I(i,e,n,o,t[a+7],10,1126891415),o=I(o,i,e,n,t[a+14],15,-1416354905),n=I(n,o,i,e,t[a+5],21,-57434055),e=I(e,n,o,i,t[a+12],6,1700485571),i=I(i,e,n,o,t[a+3],10,-1894986606),o=I(o,i,e,n,t[a+10],15,-1051523),n=I(n,o,i,e,t[a+1],21,-2054922799),e=I(e,n,o,i,t[a+8],6,1873313359),i=I(i,e,n,o,t[a+15],10,-30611744),o=I(o,i,e,n,t[a+6],15,-1560198380),n=I(n,o,i,e,t[a+13],21,1309151649),e=I(e,n,o,i,t[a+4],6,-145523070),i=I(i,e,n,o,t[a+11],10,-1120210379),o=I(o,i,e,n,t[a+2],15,718787259),n=I(n,o,i,e,t[a+9],21,-343485551),e=x(e,c),n=x(n,u),o=x(o,s),i=x(i,f)}return[e,n,o,i]}function ro(t){if(t.length===0)return[];const r=t.length*8,e=new Uint32Array(vn(r));for(let n=0;n<r;n+=8)e[n>>5]|=(t[n/8]&255)<<n%32;return e}function x(t,r){const e=(t&65535)+(r&65535);return(t>>16)+(r>>16)+(e>>16)<<16|e&65535}function io(t,r){return t<<r|t>>>32-r}function Ne(t,r,e,n,o,i){return x(io(x(x(r,t),x(n,i)),o),e)}function A(t,r,e,n,o,i,a){return Ne(r&e|~r&n,t,r,o,i,a)}function O(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 I(t,r,e,n,o,i,a){return Ne(e^(r|~n),t,r,o,i,a)}var oo=eo;pn("v3",48,oo);var ao=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),gn={randomUUID:ao};function so(t,r,e){if(gn.randomUUID&&!r&&!t)return gn.randomUUID();t=t||{};const n=t.random||(t.rng||zi)();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 hn(n)}var ue=so;function co(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 uo(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)+co(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 fo=uo;pn("v5",80,fo);var lo=st(Tr()),Me=function(){return Me=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},Me.apply(this,arguments)},je="00000000-0000-0000-0000-000000000000",Ue="unknown",ho="desktop",po="web",vo="com.amazon.rum.session_start_event",go=function(){function t(r,e,n,o){this.appMonitorDetails=r,this.config=e,this.record=n,this.pageManager=o,this.session={sessionId:je,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===je?this.createSession():this.session.sessionId!==je&&new Date>this.sessionExpiry&&this.createSession(),this.session},t.prototype.getAttributes=function(){return this.attributes},t.prototype.addSessionAttributes=function(r){this.attributes=Me(Me({},r),this.attributes)},t.prototype.getUserId=function(){return this.useCookies()?this.userId:je},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&&ln(this.sessionCookieName(),btoa(JSON.stringify(r)),this.config.cookieAttributes,void 0,e)},t.prototype.createOrRenewUserCookie=function(r,e){ln(on,r,this.config.cookieAttributes,void 0,e)},t.prototype.getUserIdCookie=function(){return dn(on)},t.prototype.getSessionFromCookie=function(){if(this.useCookies()){var r=dn(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,vo,{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 lo.UAParser(navigator.userAgent).getResult();this.attributes={browserLanguage:navigator.language,browserName:r.browser.name?r.browser.name:Ue,browserVersion:r.browser.version?r.browser.version:Ue,osName:r.os.name?r.os.name:Ue,osVersion:r.os.version?r.os.version:Ue,deviceType:r.device.type?r.device.type:ho,platformType:po,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(rn,"_").concat(this.appMonitorDetails.id):rn},t}(),He=st(Cr()),mo=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){mo(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=He.wrap.bind(He),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=He.unwrap.bind(He),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}(z),yo=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)}}(),wo=function(t){yo(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)},bo=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 wo(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(Li,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)},_o="1.13.6",Eo=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":_o});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 bo(e,this.recordEvent),this.sessionManager=new go(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}(),mn={};for(let t=0;t<256;t++){let r=t.toString(16).toLowerCase();r.length===1&&(r=`0${r}`),mn[t]=r}function X(t){let r="";for(let e=0;e<t.byteLength;e++)r+=mn[t[e]];return r}var yn=t=>{if(typeof t=="function")return t;const r=Promise.resolve(t);return()=>r},So=t=>new TextEncoder().encode(t),le=t=>typeof t=="string"?So(t):ArrayBuffer.isView(t)?new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(t),To="X-Amz-Algorithm",Co="X-Amz-Credential",wn="X-Amz-Date",Ao="X-Amz-SignedHeaders",Oo="X-Amz-Expires",bn="X-Amz-Signature",_n="X-Amz-Security-Token",En="authorization",Sn=wn.toLowerCase(),Po="date",Io=[En,Sn,Po],Ro=bn.toLowerCase(),yt="x-amz-content-sha256",Lo=_n.toLowerCase(),ko={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},No=/^proxy-/,Mo=/^sec-/,wt="AWS4-HMAC-SHA256",jo="AWS4-HMAC-SHA256-PAYLOAD",Uo="UNSIGNED-PAYLOAD",Ho=50,Tn="aws4_request",xo=60*60*24*7,qe={},bt=[],_t=(t,r,e)=>`${t}/${r}/${e}/${Tn}`,Do=async(t,r,e,n,o)=>{const i=await Cn(t,r.secretAccessKey,r.accessKeyId),a=`${e}:${n}:${o}:${X(i)}:${r.sessionToken}`;if(a in qe)return qe[a];for(bt.push(a);bt.length>Ho;)delete qe[bt.shift()];let c=`AWS4${r.secretAccessKey}`;for(const u of[e,n,o,Tn])c=await Cn(t,c,u);return qe[a]=c},Cn=(t,r,e)=>{const n=new t(r);return n.update(le(e)),n.digest()},An=({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 ko||r?.has(i)||No.test(i)||Mo.test(i))&&(!e||e&&!e.has(i))||(n[i]=t[o].trim().replace(/\s+/g," "))}return n},qo=({query:t={}})=>{const r=[],e={};for(const n of Object.keys(t).sort()){if(n.toLowerCase()===Ro)continue;r.push(n);const o=t[n];typeof o=="string"?e[n]=`${G(n)}=${G(o)}`:Array.isArray(o)&&(e[n]=o.slice(0).sort().reduce((i,a)=>i.concat([`${G(n)}=${G(a)}`]),[]).join("&"))}return r.map(n=>e[n]).filter(n=>n).join("&")},Bo=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)||Bo(r)){const n=new e;return n.update(le(r)),X(await n.digest())}return Uo},Fo=(t,r)=>{t=t.toLowerCase();for(const e of Object.keys(r))if(t===e.toLowerCase())return!0;return!1},On=({headers:t,query:r,...e})=>({...e,headers:{...t},query:r?Vo(r):void 0}),Vo=t=>Object.keys(t).reduce((r,e)=>{const n=t[e];return{...r,[e]:Array.isArray(n)?[...n]:n}},{}),Go=(t,r={})=>{const{headers:e,query:n={}}=typeof t.clone=="function"?t.clone():On(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():On(t);for(const r of Object.keys(t.headers))Io.indexOf(r.toLowerCase())>-1&&delete t.headers[r];return t},zo=t=>Wo(t).toISOString().replace(/\.\d{3}Z$/,"Z"),Wo=t=>typeof t=="number"?new Date(t*1e3):typeof t=="string"?Number(t)?new Date(Number(t)*1e3):new Date(t):t,Xo=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:d,shortDate:l}=Be(e);if(n>xo)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=Go(Pn(t),{unhoistableHeaders:i});s.sessionToken&&(p.query[_n]=s.sessionToken),p.query[To]=wt,p.query[Co]=`${s.accessKeyId}/${h}`,p.query[wn]=d,p.query[Oo]=n.toString(10);const v=An(p,o,a);return p.query[Ao]=In(v),p.query[bn]=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=X(await d.digest()),h=[jo,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)),X(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[Sn]=s,a.sessionToken&&(u.headers[Lo]=a.sessionToken);const l=await Et(u,this.sha256);!Fo(yt,u.headers)&&this.applyChecksum&&(u.headers[yt]=l);const h=An(u,n,e),p=await this.getSignature(s,d,this.getSigningKey(a,c,f,i),this.createCanonicalRequest(u,h,l));return u.headers[En]=`${wt} Credential=${a.accessKeyId}/${d}, SignedHeaders=${In(h)}, Signature=${p}`,u}createCanonicalRequest(t,r,e){const n=Object.keys(r).sort();return`${t.method}
1
+ (function(){"use strict";var wr=Object.create,be=Object.defineProperty,yr=Object.getOwnPropertyDescriptor,at=Object.getOwnPropertyNames,br=Object.getPrototypeOf,_r=Object.prototype.hasOwnProperty,Er=(t,r)=>function(){return t&&(r=(0,t[at(t)[0]])(t=0)),r},L=(t,r)=>function(){return r||(0,t[at(t)[0]])((r={exports:{}}).exports,r),r.exports},Sr=(t,r)=>{for(var e in r)be(t,e,{get:r[e],enumerable:!0})},Kt=(t,r,e,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of at(r))!_r.call(t,o)&&o!==e&&be(t,o,{get:()=>r[o],enumerable:!(n=yr(r,o))||n.enumerable});return t},st=(t,r,e)=>(e=t!=null?wr(br(t)):{},Kt(r||!t||!t.__esModule?be(e,"default",{value:t,enumerable:!0}):e,t)),$t=t=>Kt(be({},"__esModule",{value:!0}),t),Tr=L({"node_modules/ua-parser-js/src/ua-parser.js"(t,r){(function(e,n){var o="0.7.34",i="",a="?",c="function",u="undefined",s="object",f="string",d="major",l="model",h="name",p="type",v="vendor",g="version",C="architecture",N="console",w="mobile",y="tablet",R="smarttv",F="wearable",Ze="embedded",xt=350,Dt="Amazon",ge="Apple",ar="ASUS",sr="BlackBerry",re="Browser",Qe="Chrome",Xa="Edge",et="Firefox",tt="Google",cr="Huawei",qt="LG",Bt="Microsoft",ur="Motorola",nt="Opera",Ft="Samsung",fr="Sharp",rt="Sony",Vt="Xiaomi",Gt="Zebra",lr="Facebook",dr="Chromium OS",hr="Mac OS",Ka=function(_,E){var b={};for(var S in _)E[S]&&E[S].length%2===0?b[S]=E[S].concat(_[S]):b[S]=_[S];return b},it=function(_){for(var E={},b=0;b<_.length;b++)E[_[b].toUpperCase()]=_[b];return E},pr=function(_,E){return typeof _===f?me(E).indexOf(me(_))!==-1:!1},me=function(_){return _.toLowerCase()},$a=function(_){return typeof _===f?_.replace(/[^\d\.]/g,i).split(".")[0]:n},zt=function(_,E){if(typeof _===f)return _=_.replace(/^\s\s*/,i),typeof E===u?_:_.substring(0,xt)},we=function(_,E){for(var b=0,S,V,U,m,ye,H;b<E.length&&!ye;){var Xt=E[b],mr=E[b+1];for(S=V=0;S<Xt.length&&!ye&&Xt[S];)if(ye=Xt[S++].exec(_),ye)for(U=0;U<mr.length;U++)H=ye[++V],m=mr[U],typeof m===s&&m.length>0?m.length===2?typeof m[1]==c?this[m[0]]=m[1].call(this,H):this[m[0]]=m[1]:m.length===3?typeof m[1]===c&&!(m[1].exec&&m[1].test)?this[m[0]]=H?m[1].call(this,H,m[2]):n:this[m[0]]=H?H.replace(m[1],m[2]):n:m.length===4&&(this[m[0]]=H?m[3].call(this,H.replace(m[1],m[2])):n):this[m]=H||n;b+=2}},Wt=function(_,E){for(var b in E)if(typeof E[b]===s&&E[b].length>0){for(var S=0;S<E[b].length;S++)if(pr(E[b][S],_))return b===a?n:b}else if(pr(E[b],_))return b===a?n:b;return _},Ya={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},vr={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"},gr={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|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[h,g],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[g,[h,"UC"+re]],[/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"]],[/yabrowser\/([\w\.]+)/i],[g,[h,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[h,/(.+)/,"$1 Secure "+re],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 "+re]],[/fxios\/([-\w\.]+)/i],[g,[h,et]],[/\bqihu|(qi?ho?o?|360)browser/i],[[h,"360 "+re]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[h,/(.+)/,"$1 "+re],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,lr],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"]],[/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 "+re]],[/(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,Wt,Ya]],[/(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],[[C,"amd64"]],[/(ia32(?=;))/i],[[C,me]],[/((?: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,me]],[/(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,me]]],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,Ft],[p,y]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[l,[v,Ft],[p,w]],[/\((ip(?:hone|od)[\w ]*);/i],[l,[v,ge],[p,w]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[l,[v,ge],[p,y]],[/(macintosh);/i],[l,[v,ge]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[l,[v,fr],[p,w]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[l,[v,cr],[p,y]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[l,[v,cr],[p,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,Vt],[p,w]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[l,/_/g," "],[v,Vt],[p,y]],[/; (\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,w]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[l,[v,"Vivo"],[p,w]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[l,[v,"Realme"],[p,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,ur],[p,w]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[l,[v,ur],[p,y]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[l,[v,qt],[p,y]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[l,[v,qt],[p,w]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[l,[v,"Lenovo"],[p,y]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[l,/_/g," "],[v,"Nokia"],[p,w]],[/(pixel c)\b/i],[l,[v,tt],[p,y]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[l,[v,tt],[p,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],[p,w]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[l,"Xperia Tablet"],[v,rt],[p,y]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[l,[v,"OnePlus"],[p,w]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[l,[v,Dt],[p,y]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[l,/(.+)/g,"Fire Phone $1"],[v,Dt],[p,w]],[/(playbook);[-\w\),; ]+(rim)/i],[l,v,[p,y]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[l,[v,sr],[p,w]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[l,[v,ar],[p,y]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[l,[v,ar],[p,w]],[/(nexus 9)/i],[l,[v,"HTC"],[p,y]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[v,[l,/_/g," "],[p,w]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[l,[v,"Acer"],[p,y]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[l,[v,"Meizu"],[p,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,[p,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,[p,y]],[/(surface duo)/i],[l,[v,Bt],[p,y]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[l,[v,"Fairphone"],[p,w]],[/(u304aa)/i],[l,[v,"AT&T"],[p,w]],[/\bsie-(\w*)/i],[l,[v,"Siemens"],[p,w]],[/\b(rct\w+) b/i],[l,[v,"RCA"],[p,y]],[/\b(venue[\d ]{2,7}) b/i],[l,[v,"Dell"],[p,y]],[/\b(q(?:mv|ta)\w+) b/i],[l,[v,"Verizon"],[p,y]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[l,[v,"Barnes & Noble"],[p,y]],[/\b(tm\d{3}\w+) b/i],[l,[v,"NuVision"],[p,y]],[/\b(k88) b/i],[l,[v,"ZTE"],[p,y]],[/\b(nx\d{3}j) b/i],[l,[v,"ZTE"],[p,w]],[/\b(gen\d{3}) b.+49h/i],[l,[v,"Swiss"],[p,w]],[/\b(zur\d{3}) b/i],[l,[v,"Swiss"],[p,y]],[/\b((zeki)?tb.*\b) b/i],[l,[v,"Zeki"],[p,y]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[v,"Dragon Touch"],l,[p,y]],[/\b(ns-?\w{0,9}) b/i],[l,[v,"Insignia"],[p,y]],[/\b((nxa|next)-?\w{0,9}) b/i],[l,[v,"NextBook"],[p,y]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[v,"Voice"],l,[p,w]],[/\b(lvtel\-)?(v1[12]) b/i],[[v,"LvTel"],l,[p,w]],[/\b(ph-1) /i],[l,[v,"Essential"],[p,w]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[l,[v,"Envizen"],[p,y]],[/\b(trio[-\w\. ]+) b/i],[l,[v,"MachSpeed"],[p,y]],[/\btu_(1491) b/i],[l,[v,"Rotor"],[p,y]],[/(shield[\w ]+) b/i],[l,[v,"Nvidia"],[p,y]],[/(sprint) (\w+)/i],[v,l,[p,w]],[/(kin\.[onetw]{3})/i],[[l,/\./g," "],[v,Bt],[p,w]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[l,[v,Gt],[p,y]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[l,[v,Gt],[p,w]],[/smart-tv.+(samsung)/i],[v,[p,R]],[/hbbtv.+maple;(\d+)/i],[[l,/^/,"SmartTV"],[v,Ft],[p,R]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[v,qt],[p,R]],[/(apple) ?tv/i],[v,[l,ge+" TV"],[p,R]],[/crkey/i],[[l,Qe+"cast"],[v,tt],[p,R]],[/droid.+aft(\w)( bui|\))/i],[l,[v,Dt],[p,R]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[l,[v,fr],[p,R]],[/(bravia[\w ]+)( bui|\))/i],[l,[v,rt],[p,R]],[/(mitv-\w{5}) bui/i],[l,[v,Vt],[p,R]],[/Hbbtv.*(technisat) (.*);/i],[v,l,[p,R]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[v,zt],[l,zt],[p,R]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[p,R]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[v,l,[p,N]],[/droid.+; (shield) bui/i],[l,[v,"Nvidia"],[p,N]],[/(playstation [345portablevi]+)/i],[l,[v,rt],[p,N]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[l,[v,Bt],[p,N]],[/((pebble))app/i],[v,l,[p,F]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[l,[v,ge],[p,F]],[/droid.+; (glass) \d/i],[l,[v,tt],[p,F]],[/droid.+; (wt63?0{2,3})\)/i],[l,[v,Gt],[p,F]],[/(quest( 2| pro)?)/i],[l,[v,lr],[p,F]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[v,[p,Ze]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[l,[p,w]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[l,[p,y]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[p,y]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[p,w]],[/(android[-\w\. ]{0,9});.+buil/i],[l,[v,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[g,[h,Xa+"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],[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,Wt,vr]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[h,"Windows"],[g,Wt,vr]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[g,/_/g,"."],[h,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[h,hr],[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,sr]],[/(?: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,dr],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)/i,/(unix) ?([\w\.]*)/i],[h,g]]},M=function(_,E){if(typeof _===s&&(E=_,_=n),!(this instanceof M))return new M(_,E).getResult();var b=typeof e!==u&&e.navigator?e.navigator:n,S=_||(b&&b.userAgent?b.userAgent:i),V=b&&b.userAgentData?b.userAgentData:n,U=E?Ka(gr,E):gr;return this.getBrowser=function(){var m={};return m[h]=n,m[g]=n,we.call(m,S,U.browser),m[d]=$a(m[g]),b&&b.brave&&typeof b.brave.isBrave==c&&(m[h]="Brave"),m},this.getCPU=function(){var m={};return m[C]=n,we.call(m,S,U.cpu),m},this.getDevice=function(){var m={};return m[v]=n,m[l]=n,m[p]=n,we.call(m,S,U.device),!m[p]&&V&&V.mobile&&(m[p]=w),m[l]=="Macintosh"&&b&&typeof b.standalone!==u&&b.maxTouchPoints&&b.maxTouchPoints>2&&(m[l]="iPad",m[p]=y),m},this.getEngine=function(){var m={};return m[h]=n,m[g]=n,we.call(m,S,U.engine),m},this.getOS=function(){var m={};return m[h]=n,m[g]=n,we.call(m,S,U.os),!m[h]&&V&&V.platform!="Unknown"&&(m[h]=V.platform.replace(/chrome os/i,dr).replace(/macos/i,hr)),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 S},this.setUA=function(m){return S=typeof m===f&&m.length>xt?zt(m,xt):m,this},this.setUA(S),this};M.VERSION=o,M.BROWSER=it([h,g,d]),M.CPU=it([C]),M.DEVICE=it([l,v,p,N,w,R,y,F,Ze]),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 ie=typeof e!==u&&(e.jQuery||e.Zepto);if(ie&&!ie.ua){var ot=new M;ie.ua=ot.getResult(),ie.ua.get=function(){return ot.getUA()},ie.ua.set=function(_){ot.setUA(_);var E=ot.getResult();for(var b in E)ie.ua[b]=E[b]}}})(typeof window=="object"?window:t)}}),Cr=L({"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={};Sr(ct,{__assign:()=>Ee,__asyncDelegator:()=>xr,__asyncGenerator:()=>Hr,__asyncValues:()=>Dr,__await:()=>oe,__awaiter:()=>Lr,__classPrivateFieldGet:()=>Vr,__classPrivateFieldSet:()=>Gr,__createBinding:()=>Nr,__decorate:()=>Pr,__exportStar:()=>Mr,__extends:()=>Ar,__generator:()=>kr,__importDefault:()=>Fr,__importStar:()=>Br,__makeTemplateObject:()=>qr,__metadata:()=>Rr,__param:()=>Ir,__read:()=>Yt,__rest:()=>Or,__spread:()=>jr,__spreadArrays:()=>Ur,__values:()=>ut});function Ar(t,r){_e(t,r);function e(){this.constructor=t}t.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}function Or(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 Pr(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 Ir(t,r){return function(e,n){r(e,n,t)}}function Rr(t,r){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,r)}function Lr(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 kr(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 Nr(t,r,e,n){n===void 0&&(n=e),t[n]=r[e]}function Mr(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 Yt(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 jr(){for(var t=[],r=0;r<arguments.length;r++)t=t.concat(Yt(arguments[r]));return t}function Ur(){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 oe(t){return this instanceof oe?(this.v=t,this):new oe(t)}function Hr(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 oe?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 xr(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:oe(t[o](a)),done:o==="return"}:i?i(a):a}:i}}function Dr(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 qr(t,r){return Object.defineProperty?Object.defineProperty(t,"raw",{value:r}):t.raw=r,t}function Br(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 Fr(t){return t&&t.__esModule?t:{default:t}}function Vr(t,r){if(!r.has(t))throw new TypeError("attempted to get private field on non-instance");return r.get(t)}function Gr(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,Jt=Er({"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)}}}),Zt=L({"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}}),zr=L({"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=Zt(),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],C=(g>>>17|g<<15)^(g>>>19|g<<13)^g>>>10;g=this.temp[v-15];var N=(g>>>7|g<<25)^(g>>>18|g<<14)^g>>>3;this.temp[v]=(C+this.temp[v-7]|0)+(N+this.temp[v-16]|0)}var w=(((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,y=((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+w|0,f=s,s=u,u=c,c=w+y|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}}),Wr=L({"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}}),Xr=L({"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}}),Kr=L({"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=Wr(),e=Xr(),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}}),$r=L({"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=Kr(),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}}),Yr=L({"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}}),Jr=L({"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}}),Zr=L({"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}}),Qr=L({"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=$r();Object.defineProperty(t,"convertToBuffer",{enumerable:!0,get:function(){return r.convertToBuffer}});var e=Yr();Object.defineProperty(t,"isEmptyData",{enumerable:!0,get:function(){return e.isEmptyData}});var n=Jr();Object.defineProperty(t,"numToUint8",{enumerable:!0,get:function(){return n.numToUint8}});var o=Zr();Object.defineProperty(t,"uint32ArrayFrom",{enumerable:!0,get:function(){return o.uint32ArrayFrom}})}}),ei=L({"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=(Jt(),$t(ct)),e=Zt(),n=zr(),o=Qr(),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}}}),ti=L({"node_modules/aws-rum-web/node_modules/@aws-crypto/sha256-js/build/index.js"(t){Object.defineProperty(t,"__esModule",{value:!0});var r=(Jt(),$t(ct));r.__exportStar(ei(),t)}}),Qt;(function(t){t[t.HEADER=0]="HEADER",t[t.TRAILER=1]="TRAILER"})(Qt||(Qt={}));var ae=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 ae({...this,headers:{...this.headers}});return t.query&&(t.query=ni(t.query)),t}};function ni(t){return Object.keys(t).reduce((r,e)=>{const n=t[e];return{...r,[e]:Array.isArray(n)?[...n]:n}},{})}var se=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"}},en=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())})},tn=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}}},ft=function(t){return en(void 0,void 0,void 0,function(){var r;return tn(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))]}})})},ri=function(t){return en(void 0,void 0,void 0,function(){var r;return tn(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)]}})})},lt=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())})},dt=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}}},ii="POST",oi="application/x-amz-json-1.1",ai="https:",si="AWSCognitoIdentityService.GetId",ci="AWSCognitoIdentityService.GetOpenIdToken",ui="AWSCognitoIdentityService.GetCredentialsForIdentity",fi=function(t){return function(){return t.client.getCredentialsForIdentity(t.identityPoolId)}},nn=function(){function t(r){var e=this;this.getId=function(n){return lt(e,void 0,void 0,function(){var o,i,a,c;return dt(this,function(u){switch(u.label){case 0:return u.trys.push([0,3,,4]),o=JSON.stringify(n),i=this.getHttpRequest(si,o),[4,this.fetchRequestHandler.handle(i)];case 1:return a=u.sent().response,[4,ft(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 lt(e,void 0,void 0,function(){var o,i,a,c;return dt(this,function(u){switch(u.label){case 0:return u.trys.push([0,3,,4]),o=JSON.stringify(n),i=this.getHttpRequest(ci,o),[4,this.fetchRequestHandler.handle(i)];case 1:return a=u.sent().response,[4,ft(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 lt(e,void 0,void 0,function(){var o,i,a,c,u,s,f,d,l;return dt(this,function(h){switch(h.label){case 0:return h.trys.push([0,3,,4]),o=JSON.stringify({IdentityId:n}),i=this.getHttpRequest(ui,o),[4,this.fetchRequestHandler.handle(i)];case 1:return a=h.sent().response,[4,ft(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 ae({method:ii,headers:{"content-type":oi,"x-amz-target":n},protocol:ai,hostname:e.hostname,body:o})},this.hostname="cognito-identity.".concat(r.region,".amazonaws.com"),this.fetchRequestHandler=r.fetchRequestHandler}return t}(),G=t=>encodeURIComponent(t).replace(/[!'()*]/g,li),li=t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`;function ht(t){const r=[];for(let e of Object.keys(t).sort()){const n=t[e];if(e=G(e),Array.isArray(n))for(let o=0,i=n.length;o<i;o++)r.push(`${e}=${G(n[o])}`);else{let o=e;(n||typeof n=="string")&&(o+=`=${G(n)}`),r.push(o)}}return r.join("&")}function di(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=ht(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!==void 0?{response:new se({headers:h,statusCode:d.status,body:d.body})}:d.blob().then(v=>({response:new se({headers:h,statusCode:d.status,body:v})}))}),di(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)},hi=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())})},pi=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}}},vi="POST",gi="application/x-www-form-urlencoded",mi="https:",wi="AssumeRoleWithWebIdentity",yi="2011-06-15",bi=function(){function t(r){var e=this;this.assumeRoleWithWebIdentity=function(n){return hi(e,void 0,void 0,function(){var o,i,a,c,u,s;return pi(this,function(f){switch(f.label){case 0:return f.trys.push([0,3,,4]),o=Se(Se({},n),{Action:wi,Version:yi}),i=new URLSearchParams(Object.entries(o)).toString(),a=new ae({method:vi,headers:{"content-type":gi,host:this.hostname},protocol:mi,hostname:this.hostname,body:i}),[4,this.fetchRequestHandler.handle(a)];case 1:return c=f.sent().response,[4,ri(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",rn="cwr_s",on="cwr_u",an=3e4,_i="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}}},Ei=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 bi({fetchRequestHandler:new pt,region:n}),this.cognitoIdentityClient=new nn({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()-an);return new Date>r},t}(),Pe=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())})},Ie=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}}},Si=function(){function t(r){var e=this;this.ChainAnonymousCredentialsProvider=function(){return Pe(e,void 0,void 0,function(){return Ie(this,function(o){return[2,this.AnonymousCredentialsProvider().catch(this.AnonymousStorageCredentialsProvider).catch(this.AnonymousCognitoCredentialsProvider)]})})},this.AnonymousCredentialsProvider=function(){return Pe(e,void 0,void 0,function(){var o=this;return Ie(this,function(i){return[2,new Promise(function(a,c){if(o.renewCredentials())return c();a(o.credentials)})]})})},this.AnonymousStorageCredentialsProvider=function(){return Pe(e,void 0,void 0,function(){var o=this;return Ie(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 Pe(e,void 0,void 0,function(){var o,i=this;return Ie(this,function(a){return o=fi({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 nn({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()-an);return new Date>r},t}(),j="com.amazon.rum",Ti="com.amazonaws.rum",Re="".concat(j,".http_event"),sn="".concat(j,".xray_trace_event"),Ci="".concat(j,".largest_contentful_paint_event"),Ai="".concat(j,".first_input_delay_event"),Oi="".concat(j,".cumulative_layout_shift_event"),vt="".concat(j,".performance_navigation_event"),Pi="".concat(j,".performance_resource_event"),Ii="".concat(j,".dom_event"),Ri="".concat(j,".js_error_event"),Li="".concat(j,".page_view_event"),z=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=Ti,t}(),ki=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(z.generatePluginId(r))},t}(),Ni=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)}}(),W=function(){return W=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},W.apply(this,arguments)},cn="dom-event",Mi={interactionId:function(){return""},enableMutationObserver:!1,events:[]},ji=function(t){Ni(r,t);function r(e){var n=t.call(this,cn)||this;return n.enabled=!1,n.eventListenerMap=new Map,n.config=W(W({},Mi),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=W(W(W({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(Ii,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}(z),Ui=function(t){var r=typeof t;return(r==="object"||r==="function")&&!!t},Hi=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},xi=function(t,r){t.type!=="unhandledrejection"&&(t.type=r.toString()),t.message=r.toString()},Di=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)},un=function(t){return t!==Object(t)&&t!==void 0&&t!==null},gt=function(t,r){var e=Hi(t),n=t.error;return Ui(n)?Di(e,n,r):un(n)&&xi(e,n),e},qi=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)},fn="js-error",Bi={stackTraceLength:1e3,ignore:function(){return!1}},Fi=function(t){qi(r,t);function r(e){var n=t.call(this,fn)||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({},Bi),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(Ri,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}(z),ln=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(Vi(n).toUTCString())),i+="; Domain=".concat(e.domain),i+="; Path=".concat(e.path),i+="; SameSite=".concat(e.sameSite),i+=e.secure?"; Secure":"",document.cookie=i},Vi=function(t){return new Date(new Date().getTime()+t*1e3)},dn=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,Gi=new Uint8Array(16);function zi(){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(Gi)}var Wi=/^(?:[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 Xi(t){return typeof t=="string"&&Wi.test(t)}var Ki=Xi,T=[];for(let t=0;t<256;++t)T.push((t+256).toString(16).slice(1));function hn(t,r=0){return(T[t[r+0]]+T[t[r+1]]+T[t[r+2]]+T[t[r+3]]+"-"+T[t[r+4]]+T[t[r+5]]+"-"+T[t[r+6]]+T[t[r+7]]+"-"+T[t[r+8]]+T[t[r+9]]+"-"+T[t[r+10]]+T[t[r+11]]+T[t[r+12]]+T[t[r+13]]+T[t[r+14]]+T[t[r+15]]).toLowerCase()}function $i(t){if(!Ki(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 Yi=$i;function Ji(t){t=unescape(encodeURIComponent(t));const r=[];for(let e=0;e<t.length;++e)r.push(t.charCodeAt(e));return r}var Zi="6ba7b810-9dad-11d1-80b4-00c04fd430c8",Qi="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function pn(t,r,e){function n(o,i,a,c){var u;if(typeof o=="string"&&(o=Ji(o)),typeof i=="string"&&(i=Yi(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 hn(s)}try{n.name=t}catch{}return n.DNS=Zi,n.URL=Qi,n}function eo(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 to(no(ro(t),t.length*8))}function to(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 vn(t){return(t+64>>>9<<4)+14+1}function no(t,r){t[r>>5]|=128<<r%32,t[vn(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=A(e,n,o,i,t[a],7,-680876936),i=A(i,e,n,o,t[a+1],12,-389564586),o=A(o,i,e,n,t[a+2],17,606105819),n=A(n,o,i,e,t[a+3],22,-1044525330),e=A(e,n,o,i,t[a+4],7,-176418897),i=A(i,e,n,o,t[a+5],12,1200080426),o=A(o,i,e,n,t[a+6],17,-1473231341),n=A(n,o,i,e,t[a+7],22,-45705983),e=A(e,n,o,i,t[a+8],7,1770035416),i=A(i,e,n,o,t[a+9],12,-1958414417),o=A(o,i,e,n,t[a+10],17,-42063),n=A(n,o,i,e,t[a+11],22,-1990404162),e=A(e,n,o,i,t[a+12],7,1804603682),i=A(i,e,n,o,t[a+13],12,-40341101),o=A(o,i,e,n,t[a+14],17,-1502002290),n=A(n,o,i,e,t[a+15],22,1236535329),e=O(e,n,o,i,t[a+1],5,-165796510),i=O(i,e,n,o,t[a+6],9,-1069501632),o=O(o,i,e,n,t[a+11],14,643717713),n=O(n,o,i,e,t[a],20,-373897302),e=O(e,n,o,i,t[a+5],5,-701558691),i=O(i,e,n,o,t[a+10],9,38016083),o=O(o,i,e,n,t[a+15],14,-660478335),n=O(n,o,i,e,t[a+4],20,-405537848),e=O(e,n,o,i,t[a+9],5,568446438),i=O(i,e,n,o,t[a+14],9,-1019803690),o=O(o,i,e,n,t[a+3],14,-187363961),n=O(n,o,i,e,t[a+8],20,1163531501),e=O(e,n,o,i,t[a+13],5,-1444681467),i=O(i,e,n,o,t[a+2],9,-51403784),o=O(o,i,e,n,t[a+7],14,1735328473),n=O(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=I(e,n,o,i,t[a],6,-198630844),i=I(i,e,n,o,t[a+7],10,1126891415),o=I(o,i,e,n,t[a+14],15,-1416354905),n=I(n,o,i,e,t[a+5],21,-57434055),e=I(e,n,o,i,t[a+12],6,1700485571),i=I(i,e,n,o,t[a+3],10,-1894986606),o=I(o,i,e,n,t[a+10],15,-1051523),n=I(n,o,i,e,t[a+1],21,-2054922799),e=I(e,n,o,i,t[a+8],6,1873313359),i=I(i,e,n,o,t[a+15],10,-30611744),o=I(o,i,e,n,t[a+6],15,-1560198380),n=I(n,o,i,e,t[a+13],21,1309151649),e=I(e,n,o,i,t[a+4],6,-145523070),i=I(i,e,n,o,t[a+11],10,-1120210379),o=I(o,i,e,n,t[a+2],15,718787259),n=I(n,o,i,e,t[a+9],21,-343485551),e=x(e,c),n=x(n,u),o=x(o,s),i=x(i,f)}return[e,n,o,i]}function ro(t){if(t.length===0)return[];const r=t.length*8,e=new Uint32Array(vn(r));for(let n=0;n<r;n+=8)e[n>>5]|=(t[n/8]&255)<<n%32;return e}function x(t,r){const e=(t&65535)+(r&65535);return(t>>16)+(r>>16)+(e>>16)<<16|e&65535}function io(t,r){return t<<r|t>>>32-r}function Ne(t,r,e,n,o,i){return x(io(x(x(r,t),x(n,i)),o),e)}function A(t,r,e,n,o,i,a){return Ne(r&e|~r&n,t,r,o,i,a)}function O(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 I(t,r,e,n,o,i,a){return Ne(e^(r|~n),t,r,o,i,a)}var oo=eo;pn("v3",48,oo);var ao=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),gn={randomUUID:ao};function so(t,r,e){if(gn.randomUUID&&!r&&!t)return gn.randomUUID();t=t||{};const n=t.random||(t.rng||zi)();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 hn(n)}var ue=so;function co(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 uo(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)+co(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 fo=uo;pn("v5",80,fo);var lo=st(Tr()),Me=function(){return Me=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},Me.apply(this,arguments)},je="00000000-0000-0000-0000-000000000000",Ue="unknown",ho="desktop",po="web",vo="com.amazon.rum.session_start_event",go=function(){function t(r,e,n,o){this.appMonitorDetails=r,this.config=e,this.record=n,this.pageManager=o,this.session={sessionId:je,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===je?this.createSession():this.session.sessionId!==je&&new Date>this.sessionExpiry&&this.createSession(),this.session},t.prototype.getAttributes=function(){return this.attributes},t.prototype.addSessionAttributes=function(r){this.attributes=Me(Me({},r),this.attributes)},t.prototype.getUserId=function(){return this.useCookies()?this.userId:je},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&&ln(this.sessionCookieName(),btoa(JSON.stringify(r)),this.config.cookieAttributes,void 0,e)},t.prototype.createOrRenewUserCookie=function(r,e){ln(on,r,this.config.cookieAttributes,void 0,e)},t.prototype.getUserIdCookie=function(){return dn(on)},t.prototype.getSessionFromCookie=function(){if(this.useCookies()){var r=dn(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,vo,{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 lo.UAParser(navigator.userAgent).getResult();this.attributes={browserLanguage:navigator.language,browserName:r.browser.name?r.browser.name:Ue,browserVersion:r.browser.version?r.browser.version:Ue,osName:r.os.name?r.os.name:Ue,osVersion:r.os.version?r.os.version:Ue,deviceType:r.device.type?r.device.type:ho,platformType:po,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(rn,"_").concat(this.appMonitorDetails.id):rn},t}(),He=st(Cr()),mo=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){mo(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=He.wrap.bind(He),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=He.unwrap.bind(He),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}(z),wo=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)}}(),yo=function(t){wo(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)},bo=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 yo(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(Li,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)},_o="1.13.6",Eo=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":_o});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 bo(e,this.recordEvent),this.sessionManager=new go(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}(),mn={};for(let t=0;t<256;t++){let r=t.toString(16).toLowerCase();r.length===1&&(r=`0${r}`),mn[t]=r}function X(t){let r="";for(let e=0;e<t.byteLength;e++)r+=mn[t[e]];return r}var wn=t=>{if(typeof t=="function")return t;const r=Promise.resolve(t);return()=>r},So=t=>new TextEncoder().encode(t),le=t=>typeof t=="string"?So(t):ArrayBuffer.isView(t)?new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(t),To="X-Amz-Algorithm",Co="X-Amz-Credential",yn="X-Amz-Date",Ao="X-Amz-SignedHeaders",Oo="X-Amz-Expires",bn="X-Amz-Signature",_n="X-Amz-Security-Token",En="authorization",Sn=yn.toLowerCase(),Po="date",Io=[En,Sn,Po],Ro=bn.toLowerCase(),wt="x-amz-content-sha256",Lo=_n.toLowerCase(),ko={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},No=/^proxy-/,Mo=/^sec-/,yt="AWS4-HMAC-SHA256",jo="AWS4-HMAC-SHA256-PAYLOAD",Uo="UNSIGNED-PAYLOAD",Ho=50,Tn="aws4_request",xo=60*60*24*7,qe={},bt=[],_t=(t,r,e)=>`${t}/${r}/${e}/${Tn}`,Do=async(t,r,e,n,o)=>{const i=await Cn(t,r.secretAccessKey,r.accessKeyId),a=`${e}:${n}:${o}:${X(i)}:${r.sessionToken}`;if(a in qe)return qe[a];for(bt.push(a);bt.length>Ho;)delete qe[bt.shift()];let c=`AWS4${r.secretAccessKey}`;for(const u of[e,n,o,Tn])c=await Cn(t,c,u);return qe[a]=c},Cn=(t,r,e)=>{const n=new t(r);return n.update(le(e)),n.digest()},An=({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 ko||r?.has(i)||No.test(i)||Mo.test(i))&&(!e||e&&!e.has(i))||(n[i]=t[o].trim().replace(/\s+/g," "))}return n},qo=({query:t={}})=>{const r=[],e={};for(const n of Object.keys(t).sort()){if(n.toLowerCase()===Ro)continue;r.push(n);const o=t[n];typeof o=="string"?e[n]=`${G(n)}=${G(o)}`:Array.isArray(o)&&(e[n]=o.slice(0).sort().reduce((i,a)=>i.concat([`${G(n)}=${G(a)}`]),[]).join("&"))}return r.map(n=>e[n]).filter(n=>n).join("&")},Bo=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)||Bo(r)){const n=new e;return n.update(le(r)),X(await n.digest())}return Uo},Fo=(t,r)=>{t=t.toLowerCase();for(const e of Object.keys(r))if(t===e.toLowerCase())return!0;return!1},On=({headers:t,query:r,...e})=>({...e,headers:{...t},query:r?Vo(r):void 0}),Vo=t=>Object.keys(t).reduce((r,e)=>{const n=t[e];return{...r,[e]:Array.isArray(n)?[...n]:n}},{}),Go=(t,r={})=>{const{headers:e,query:n={}}=typeof t.clone=="function"?t.clone():On(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():On(t);for(const r of Object.keys(t.headers))Io.indexOf(r.toLowerCase())>-1&&delete t.headers[r];return t},zo=t=>Wo(t).toISOString().replace(/\.\d{3}Z$/,"Z"),Wo=t=>typeof t=="number"?new Date(t*1e3):typeof t=="string"?Number(t)?new Date(Number(t)*1e3):new Date(t):t,Xo=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>xo)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=Go(Pn(t),{unhoistableHeaders:i});s.sessionToken&&(p.query[_n]=s.sessionToken),p.query[To]=yt,p.query[Co]=`${s.accessKeyId}/${h}`,p.query[yn]=d,p.query[Oo]=n.toString(10);const v=An(p,o,a);return p.query[Ao]=In(v),p.query[bn]=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=X(await d.digest()),h=[jo,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)),X(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[Sn]=s,a.sessionToken&&(u.headers[Lo]=a.sessionToken);const l=await Et(u,this.sha256);!Fo(wt,u.headers)&&this.applyChecksum&&(u.headers[wt]=l);const h=An(u,n,e),p=await this.getSignature(s,d,this.getSigningKey(a,c,f,i),this.createCanonicalRequest(u,h,l));return u.headers[En]=`${yt} Credential=${a.accessKeyId}/${d}, SignedHeaders=${In(h)}, Signature=${p}`,u}createCanonicalRequest(t,r,e){const n=Object.keys(r).sort();return`${t.method}
3
3
  ${this.getCanonicalPath(t)}
4
4
  ${qo(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
- ${X(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)),X(await i.digest())}getSigningKey(t,r,e,n){return Do(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=zo(t).replace(/[\-:]/g,"");return{longDate:r,shortDate:r.slice(0,8)}},In=t=>Object.keys(t).sort().join(";"),Rn=st(ti()),$=function(){return $=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},$.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}}},Ko="rum",$o="POST",Yo="application/json",Jo="text/plain;charset=UTF-8",Zo={expiresIn:60},Qo=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,Yo)];case 1:return o=c.sent(),i=new ae(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,Jo)];case 1:return o=c.sent(),i=new ae(o),this.awsSigV4?[4,this.awsSigV4.presign(i,Zo)]:[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(ea(n)),a=this.config.endpoint.pathname.replace(/\/$/,""),c={method:$o,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=[$({},c)],d={},s=[$({},c.headers)],l={},f="X-Amz-Content-Sha256",[4,na(i)]):[3,2];case 1:return[2,$.apply(void 0,u.concat([(d.headers=$.apply(void 0,s.concat([(l[f]=h.sent(),l)])),d)]))];case 2:return[2,c]}})})},this.config=r,r.credentials&&(this.awsSigV4=new Xo({applyChecksum:!0,credentials:r.credentials,region:r.region,service:Ko,uriEscapePath:!0,sha256:Rn.Sha256}))}return t}(),ea=function(t){var r=[];t.RumEvents.forEach(function(n){return r.push(ta(n))});var e={BatchId:t.BatchId,AppMonitorDetails:t.AppMonitorDetails,UserDetails:t.UserDetails,RumEvents:r};return e},ta=function(t){return{id:t.id,timestamp:Math.round(t.timestamp.getTime()/1e3),type:t.type,metadata:t.metadata,details:t.details}},na=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 Rn.Sha256,r.update(t),e=X,[4,r.digest()];case 1:return[2,e.apply(void 0,[n.sent()]).toLowerCase()]}})})},ra=function(){function t(){}return t.prototype.handle=function(r){var e=this.sendBeacon(r);return new Promise(function(n,o){e?n({response:new se({statusCode:200})}):o()})},t.prototype.sendBeacon=function(r){var e=r.path;if(r.query){var n=ht(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}(),ia=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)})},oa=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=ht(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 C=g.headers,N={},y=0,w=C.entries();y<w.length;y++){var R=w[y];N[R[0]]=R[1]}var F=g.body!==void 0;return F?{response:new se({headers:N,statusCode:g.status,body:g.body})}:g.blob().then(function(Ze){return{response:new se({headers:N,statusCode:g.status,body:Ze})}})}),ia(i)];return o&&v.push(new Promise(function(g,C){o.onabort=function(){var N=new Error("Request aborted");N.name="AbortError",C(N)}})),Promise.race(v)},t}(),Ln=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())})},kn=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}}},aa=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 Ln(this,void 0,void 0,function(){var e,n,o;return kn(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 Ln(this,void 0,void 0,function(){return kn(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}}},Nn="CWR: Cannot dispatch; no AWS credentials.",sa=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 Qo({fetchRequestHandler:new aa(new oa({fetchFunction:i.config.fetchFunction}),i.config.retries),beaconRequestHandler:new ra,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(Nn))},sendBeacon:function(){return Promise.reject(new Error(Nn))}}: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}(),ca=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)}}(),ua="navigation",Y="navigation",St="load",fa=function(t){ca(r,t);function r(){var e=t.call(this,ua)||this;return e.eventListener=function(){if(performance.getEntriesByType(Y).length===0)e.performanceNavigationEventHandlerTimingLevel1();else{var n=new PerformanceObserver(function(o){o.getEntries().forEach(function(i){i.entryType===Y&&e.performanceNavigationEventHandlerTimingLevel2(i)})});n.observe({entryTypes:[Y]})}},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(Y).length){var e=window.performance.getEntriesByType(Y)[0];return!!e.loadEventEnd}return!1},r.prototype.onload=function(){if(this.enabled)if(this.hasTheWindowLoadEventFired()){var e=window.performance.getEntriesByType(Y)[0];this.performanceNavigationEventHandlerTimingLevel2(e)}else window.addEventListener(St,this.eventListener)},r}(z),k;(function(t){t.OTHER="other",t.STYLESHEET="stylesheet",t.DOCUMENT="document",t.SCRIPT="script",t.IMAGE="image",t.FONT="font"})(k||(k={}));var la=[{name:k.STYLESHEET,list:["css","less"]},{name:k.DOCUMENT,list:["htm","html","ts","doc","docx","pdf","xls","xlsx"]},{name:k.SCRIPT,list:["js"]},{name:k.IMAGE,list:["ai","bmp","gif","ico","jpeg","jpg","png","ps","psd","svg","tif","tiff"]},{name:k.FONT,list:["fnt","fon","otf","ttf","woff"]}],Mn=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=k.OTHER;return la.forEach(function(o){o.list.indexOf(e)>-1&&(n=o.name)}),n},da=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)},ha="resource",Ct="resource",At="load",pa={eventLimit:10,recordAllTypes:[k.DOCUMENT,k.SCRIPT],sampleTypes:[k.STYLESHEET,k.IMAGE,k.FONT,k.OTHER]},va=function(t){da(r,t);function r(e){var n=t.call(this,ha)||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)}),Mn(i);i.length>0&&c<n.config.eventLimit;)n.recordResourceEvent(i.pop()),c++;for(Mn(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(Pi,u)}},n.config=We(We({},pa),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}(z),D,de,jn,Xe,Un=-1,he=function(t){addEventListener("pageshow",function(r){r.persisted&&(Un=r.timeStamp,t(r))},!0)},Hn=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},Ot=function(){var t=Hn();return t&&t.activationStart||0},q=function(t,r){var e=Hn(),n="navigate";return Un>=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}},Ke=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{}},B=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))}},Pt=function(t){requestAnimationFrame(function(){return requestAnimationFrame(function(){return t()})})},It=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)}},J=-1,xn=function(){return document.visibilityState!=="hidden"||document.prerendering?1/0:0},$e=function(t){document.visibilityState==="hidden"&&J>-1&&(J=t.type==="visibilitychange"?t.timeStamp:0,ga())},Dn=function(){addEventListener("visibilitychange",$e,!0),addEventListener("prerenderingchange",$e,!0)},ga=function(){removeEventListener("visibilitychange",$e,!0),removeEventListener("prerenderingchange",$e,!0)},Lt=function(){return J<0&&(J=xn(),Dn(),he(function(){setTimeout(function(){J=xn(),Dn()},0)})),{get firstHiddenTime(){return J}}},kt=function(t){document.prerendering?addEventListener("prerenderingchange",function(){return t()},!0):t()},qn=[1800,3e3],ma=function(t,r){r=r||{},kt(function(){var e,n=Lt(),o=q("FCP"),i=Ke("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=B(t,o,qn,r.reportAllChanges),he(function(a){o=q("FCP"),e=B(t,o,qn,r.reportAllChanges),Pt(function(){o.value=performance.now()-a.timeStamp,e(!0)})}))})},Bn=[.1,.25],ya=function(t,r){r=r||{},ma(Rt(function(){var e,n=q("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=Ke("layout-shift",a);c&&(e=B(t,n,Bn,r.reportAllChanges),It(function(){a(c.takeRecords()),e(!0)}),he(function(){o=0,n=q("CLS",0),e=B(t,n,Bn,r.reportAllChanges),Pt(function(){return e()})}),setTimeout(e,0))}))},pe={passive:!0,capture:!0},wa=new Date,Fn=function(t,r){D||(D=r,de=t,jn=new Date,Gn(removeEventListener),Vn())},Vn=function(){if(de>=0&&de<jn-wa){var t={entryType:"first-input",name:D.type,target:D.target,cancelable:D.cancelable,startTime:D.timeStamp,processingStart:D.timeStamp+de};Xe.forEach(function(r){r(t)}),Xe=[]}},ba=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(){Fn(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):Fn(r,t)}},Gn=function(t){["mousedown","keydown","touchstart","pointerdown"].forEach(function(r){return t(r,ba,pe)})},zn=[100,300],_a=function(t,r){r=r||{},kt(function(){var e,n=Lt(),o=q("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=Ke("first-input",a);e=B(t,o,zn,r.reportAllChanges),c&&It(Rt(function(){a(c.takeRecords()),c.disconnect()})),c&&he(function(){var u;o=q("FID"),e=B(t,o,zn,r.reportAllChanges),Xe=[],de=-1,D=null,Gn(addEventListener),u=i,Xe.push(u),Vn()})})},Wn=[2500,4e3],Nt={},Ea=function(t,r){r=r||{},kt(function(){var e,n=Lt(),o=q("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=Ke("largest-contentful-paint",i);if(a){e=B(t,o,Wn,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)}),It(c),he(function(u){o=q("LCP"),e=B(t,o,Wn,r.reportAllChanges),Pt(function(){o.value=performance.now()-u.timeStamp,Nt[o.id]=!0,e(!0)})})}})},Sa=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)}}(),Ta="web-vitals",Ca=function(t){Sa(r,t);function r(){return t.call(this,Ta)||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;Ea(function(n){return e.getWebVitalData(n,Ci)}),_a(function(n){return e.getWebVitalData(n,Ai)}),ya(function(n){return e.getWebVitalData(n,Oi)})},r}(z),Xn=function(t){if(crypto)return crypto.getRandomValues(t);if(msCrypto)return msCrypto.getRandomValues(t);throw new Error("No crypto library found.")},Kn=[];for(ve=0;ve<256;ve++)Kn[ve]=(ve+256).toString(16).substr(1);var ve,Mt="X-Amzn-Trace-Id",$n={logicalServiceName:"rum.aws.amazon.com",urlsToInclude:[/.*/],urlsToExclude:[/cognito\-identity\.([^\.]*\.)?amazonaws\.com/,/sts\.([^\.]*\.)?amazonaws\.com/],stackTraceLength:200,recordAllRequests:!1,addXRayTraceIdHeader:!1},Yn=function(t){return Math.floor(t/100)===4},Jn=function(t){return Math.floor(t/100)===5},Zn=function(t){return t===429},Qn=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},Z=function(){return Date.now()/1e3},Aa=function(t,r,e){var n={request:{}};return n.request.method=r?.method?r.method:"GET",n.request.traced=e,n.request.url=Ut(t),n},er=function(t,r,e){var n={version:"1.0.0",name:t,origin:"AWS::RUM::AppMonitor",id:rr(),start_time:r,trace_id:Ia(),end_time:void 0,subsegments:[],in_progress:!1};return e&&(n.http=e),n},tr=function(t,r,e){var n={id:rr(),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},nr=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}},Oa=function(t,r,e){t.headers||(t.headers={}),t.headers[Mt]=jt(r,e)},Pa=function(t,r,e){t.set(Mt,jt(r,e))},jt=function(t,r){return"Root="+t+";Parent="+r+";Sampled=1"},Ut=function(t){return t.url?t.url:t.toString()},Ia=function(){return"1-".concat(Ra(),"-").concat(La())},rr=function(){var t=new Uint8Array(8);return Xn(t),ir(t)},Ra=function(){return Math.floor(Date.now()/1e3).toString(16)},La=function(){var t=new Uint8Array(12);return Xn(t),ir(t)},ir=function(t){for(var r="",e=0;e<t.length;e++)r+=Kn[t[e]];return r},ka=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)}}(),Na=function(t){ka(r,t);function r(e){var n=t.call(this,e)||this;return n.name="XMLHttpRequest error",n}return r}(Error),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)}}(),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)},ja="xhr",Ua=function(t){Ma(r,t);function r(e){var n=t.call(this,ja)||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=Z();a.trace.end_time=c,a.trace.subsegments[0].end_time=c,a.trace.subsegments[0].http.response={status:i.status},Zn(i.status)?(a.trace.subsegments[0].throttle=!0,a.trace.throttle=!0):Yn(i.status)?(a.trace.subsegments[0].error=!0,a.trace.error=!0):Jn(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=Z();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 Na(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=Z();o.trace=er(n.config.logicalServiceName,i),o.trace.subsegments.push(tr(nr(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(Mt,jt(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 Qn(c,o.config)&&o.xhrMap.set(this,{url:c,method:a,async:u}),i.apply(this,arguments)}}},n.config=Ye(Ye({},$n),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=Z();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(sn,e)},r}(xe),Ha=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)},xa="fetch",Da=function(t){Ha(r,t);function r(e){var n=t.call(this,xa)||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=Z(),u=Aa(o,i,!0),s=er(n.config.logicalServiceName,c),f=tr(nr(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 Pa(o.headers,c.trace_id,c.subsegments[0].id);i||(i={},[].push.call(a,i)),Oa(i,c.trace_id,c.subsegments[0].id)},n.endTrace=function(o,i,a){if(o){var c=Z();if(o.subsegments[0].end_time=c,o.end_time=c,i){o.subsegments[0].http.response={status:i.status},Zn(i.status)?(o.subsegments[0].throttle=!0,o.throttle=!0):Yn(i.status)?(o.subsegments[0].error=!0,o.error=!0):Jn(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):un(a)&&n.appendErrorCauseFromPrimitive(o.subsegments[0],a.toString())),n.context.record(sn,o)}},n.createHttpEvent=function(o,i){var a=o;return{version:"1.0.0",request:{url:Ut(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 Qn(Ut(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({},$n),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),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)}}(),Ba="page-view",Fa=function(t){qa(r,t);function r(){var e=t.call(this,Ba)||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 ne.PathAndHash:return e&&n?e+n:e||n||"";case ne.Hash:return n||"";case ne.Path:default:return e||""}},r}(xe),Q=function(){return Q=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},Q.apply(this,arguments)},Va=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},ee=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))},or="us-west-2",Ht="https://dataplane.rum.".concat(or,".amazonaws.com"),te;(function(t){t.Errors="errors",t.Performance="performance",t.Interaction="interaction",t.Http="http"})(te||(te={}));var ne;(function(t){t.Path="PATH",t.Hash="HASH",t.PathAndHash="PATH_AND_HASH"})(ne||(ne={}));var Ga=function(){return{unique:!1,domain:window.location.hostname,path:"/",sameSite:"Strict",secure:!0}},za=function(t){return{allowCookies:!1,batchLimit:100,client:_i,cookieAttributes:t,disableAutoPageView:!1,dispatchInterval:5*1e3,enableRumClient:!0,enableXRay:!1,endpoint:Ht,endpointUrl:new URL(Ht),eventCacheSize:200,eventPluginsToLoad:[],pageIdFormat:ne.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}},Wa=function(){function t(r,e,n,o){o===void 0&&(o={});var i=o.cookieAttributes,a=Va(o,["cookieAttributes"]);typeof n>"u"&&(n="us-west-2");var c=Q(Q({},Ga()),i);this.config=Q(Q({fetchFunction:fetch},za(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(fn,r)},t.prototype.registerDomEvents=function(r){this.pluginManager.updatePlugin(cn,r)},t.prototype.recordEvent=function(r,e){this.eventCache.recordEvent(r,e)},t.prototype.initEventCache=function(r,e){return new Eo({id:r,version:e},this.config)},t.prototype.initDispatch=function(r){var e=new sa(r,this.config.endpointUrl,this.eventCache,this.config);return this.config.identityPoolId&&this.config.guestRoleArn?e.setAwsCredentials(new Ei(this.config).ChainAnonymousCredentialsProvider):this.config.identityPoolId&&e.setAwsCredentials(new Si(this.config).ChainAnonymousCredentialsProvider),e},t.prototype.initPluginManager=function(r,e){var n=this.constructBuiltinPlugins(),o=ee(ee([],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 ki(i);return this.config.disableAutoPageView||a.addPlugin(new Fa),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=ee(ee([],r,!0),e[n.toLowerCase()]({}),!0):Array.isArray(n)&&e[n[0].toLowerCase()]&&(r=ee(ee([],r,!0),e[n[0].toLowerCase()](n[1]),!0))}),r},t.prototype.getDataPlaneEndpoint=function(r,e){return e.endpoint?e.endpoint:Ht.replace(or,r)},t.prototype.telemetryFunctor=function(){var r;return r={},r[te.Errors]=function(e){return[new Fi(e)]},r[te.Performance]=function(e){return[new fa,new va(e),new Ca]},r[te.Interaction]=function(e){return[new ji(e)]},r[te.Http]=function(e){return[new Ua(e),new Da(e)]},r},t}();try{window.awsRum=new Wa(window.awsRumVariables.APPLICATION_ID,window.awsRumVariables.APPLICATION_VERSION,window.awsRumVariables.APPLICATION_REGION,window.awsRumVariables.config)}catch{}})();
12
+ ${X(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)),X(await i.digest())}getSigningKey(t,r,e,n){return Do(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=zo(t).replace(/[\-:]/g,"");return{longDate:r,shortDate:r.slice(0,8)}},In=t=>Object.keys(t).sort().join(";"),Rn=st(ti()),$=function(){return $=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},$.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}}},Ko="rum",$o="POST",Yo="application/json",Jo="text/plain;charset=UTF-8",Zo={expiresIn:60},Qo=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,Yo)];case 1:return o=c.sent(),i=new ae(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,Jo)];case 1:return o=c.sent(),i=new ae(o),this.awsSigV4?[4,this.awsSigV4.presign(i,Zo)]:[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(ea(n)),a=this.config.endpoint.pathname.replace(/\/$/,""),c={method:$o,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=[$({},c)],d={},s=[$({},c.headers)],l={},f="X-Amz-Content-Sha256",[4,na(i)]):[3,2];case 1:return[2,$.apply(void 0,u.concat([(d.headers=$.apply(void 0,s.concat([(l[f]=h.sent(),l)])),d)]))];case 2:return[2,c]}})})},this.config=r,r.credentials&&(this.awsSigV4=new Xo({applyChecksum:!0,credentials:r.credentials,region:r.region,service:Ko,uriEscapePath:!0,sha256:Rn.Sha256}))}return t}(),ea=function(t){var r=[];t.RumEvents.forEach(function(n){return r.push(ta(n))});var e={BatchId:t.BatchId,AppMonitorDetails:t.AppMonitorDetails,UserDetails:t.UserDetails,RumEvents:r};return e},ta=function(t){return{id:t.id,timestamp:Math.round(t.timestamp.getTime()/1e3),type:t.type,metadata:t.metadata,details:t.details}},na=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 Rn.Sha256,r.update(t),e=X,[4,r.digest()];case 1:return[2,e.apply(void 0,[n.sent()]).toLowerCase()]}})})},ra=function(){function t(){}return t.prototype.handle=function(r){var e=this.sendBeacon(r);return new Promise(function(n,o){e?n({response:new se({statusCode:200})}):o()})},t.prototype.sendBeacon=function(r){var e=r.path;if(r.query){var n=ht(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}(),ia=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)})},oa=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=ht(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 C=g.headers,N={},w=0,y=C.entries();w<y.length;w++){var R=y[w];N[R[0]]=R[1]}var F=g.body!==void 0;return F?{response:new se({headers:N,statusCode:g.status,body:g.body})}:g.blob().then(function(Ze){return{response:new se({headers:N,statusCode:g.status,body:Ze})}})}),ia(i)];return o&&v.push(new Promise(function(g,C){o.onabort=function(){var N=new Error("Request aborted");N.name="AbortError",C(N)}})),Promise.race(v)},t}(),Ln=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())})},kn=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}}},aa=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 Ln(this,void 0,void 0,function(){var e,n,o;return kn(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 Ln(this,void 0,void 0,function(){return kn(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}}},Nn="CWR: Cannot dispatch; no AWS credentials.",sa=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 Qo({fetchRequestHandler:new aa(new oa({fetchFunction:i.config.fetchFunction}),i.config.retries),beaconRequestHandler:new ra,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(Nn))},sendBeacon:function(){return Promise.reject(new Error(Nn))}}: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}(),ca=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)}}(),ua="navigation",Y="navigation",St="load",fa=function(t){ca(r,t);function r(){var e=t.call(this,ua)||this;return e.eventListener=function(){if(performance.getEntriesByType(Y).length===0)e.performanceNavigationEventHandlerTimingLevel1();else{var n=new PerformanceObserver(function(o){o.getEntries().forEach(function(i){i.entryType===Y&&e.performanceNavigationEventHandlerTimingLevel2(i)})});n.observe({entryTypes:[Y]})}},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(Y).length){var e=window.performance.getEntriesByType(Y)[0];return!!e.loadEventEnd}return!1},r.prototype.onload=function(){if(this.enabled)if(this.hasTheWindowLoadEventFired()){var e=window.performance.getEntriesByType(Y)[0];this.performanceNavigationEventHandlerTimingLevel2(e)}else window.addEventListener(St,this.eventListener)},r}(z),k;(function(t){t.OTHER="other",t.STYLESHEET="stylesheet",t.DOCUMENT="document",t.SCRIPT="script",t.IMAGE="image",t.FONT="font"})(k||(k={}));var la=[{name:k.STYLESHEET,list:["css","less"]},{name:k.DOCUMENT,list:["htm","html","ts","doc","docx","pdf","xls","xlsx"]},{name:k.SCRIPT,list:["js"]},{name:k.IMAGE,list:["ai","bmp","gif","ico","jpeg","jpg","png","ps","psd","svg","tif","tiff"]},{name:k.FONT,list:["fnt","fon","otf","ttf","woff"]}],Mn=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=k.OTHER;return la.forEach(function(o){o.list.indexOf(e)>-1&&(n=o.name)}),n},da=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)},ha="resource",Ct="resource",At="load",pa={eventLimit:10,recordAllTypes:[k.DOCUMENT,k.SCRIPT],sampleTypes:[k.STYLESHEET,k.IMAGE,k.FONT,k.OTHER]},va=function(t){da(r,t);function r(e){var n=t.call(this,ha)||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)}),Mn(i);i.length>0&&c<n.config.eventLimit;)n.recordResourceEvent(i.pop()),c++;for(Mn(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(Pi,u)}},n.config=We(We({},pa),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}(z),D,de,jn,Xe,Un=-1,he=function(t){addEventListener("pageshow",function(r){r.persisted&&(Un=r.timeStamp,t(r))},!0)},Hn=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},Ot=function(){var t=Hn();return t&&t.activationStart||0},q=function(t,r){var e=Hn(),n="navigate";return Un>=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}},Ke=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{}},B=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))}},Pt=function(t){requestAnimationFrame(function(){return requestAnimationFrame(function(){return t()})})},It=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)}},J=-1,xn=function(){return document.visibilityState!=="hidden"||document.prerendering?1/0:0},$e=function(t){document.visibilityState==="hidden"&&J>-1&&(J=t.type==="visibilitychange"?t.timeStamp:0,ga())},Dn=function(){addEventListener("visibilitychange",$e,!0),addEventListener("prerenderingchange",$e,!0)},ga=function(){removeEventListener("visibilitychange",$e,!0),removeEventListener("prerenderingchange",$e,!0)},Lt=function(){return J<0&&(J=xn(),Dn(),he(function(){setTimeout(function(){J=xn(),Dn()},0)})),{get firstHiddenTime(){return J}}},kt=function(t){document.prerendering?addEventListener("prerenderingchange",function(){return t()},!0):t()},qn=[1800,3e3],ma=function(t,r){r=r||{},kt(function(){var e,n=Lt(),o=q("FCP"),i=Ke("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=B(t,o,qn,r.reportAllChanges),he(function(a){o=q("FCP"),e=B(t,o,qn,r.reportAllChanges),Pt(function(){o.value=performance.now()-a.timeStamp,e(!0)})}))})},Bn=[.1,.25],wa=function(t,r){r=r||{},ma(Rt(function(){var e,n=q("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=Ke("layout-shift",a);c&&(e=B(t,n,Bn,r.reportAllChanges),It(function(){a(c.takeRecords()),e(!0)}),he(function(){o=0,n=q("CLS",0),e=B(t,n,Bn,r.reportAllChanges),Pt(function(){return e()})}),setTimeout(e,0))}))},pe={passive:!0,capture:!0},ya=new Date,Fn=function(t,r){D||(D=r,de=t,jn=new Date,Gn(removeEventListener),Vn())},Vn=function(){if(de>=0&&de<jn-ya){var t={entryType:"first-input",name:D.type,target:D.target,cancelable:D.cancelable,startTime:D.timeStamp,processingStart:D.timeStamp+de};Xe.forEach(function(r){r(t)}),Xe=[]}},ba=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(){Fn(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):Fn(r,t)}},Gn=function(t){["mousedown","keydown","touchstart","pointerdown"].forEach(function(r){return t(r,ba,pe)})},zn=[100,300],_a=function(t,r){r=r||{},kt(function(){var e,n=Lt(),o=q("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=Ke("first-input",a);e=B(t,o,zn,r.reportAllChanges),c&&It(Rt(function(){a(c.takeRecords()),c.disconnect()})),c&&he(function(){var u;o=q("FID"),e=B(t,o,zn,r.reportAllChanges),Xe=[],de=-1,D=null,Gn(addEventListener),u=i,Xe.push(u),Vn()})})},Wn=[2500,4e3],Nt={},Ea=function(t,r){r=r||{},kt(function(){var e,n=Lt(),o=q("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=Ke("largest-contentful-paint",i);if(a){e=B(t,o,Wn,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)}),It(c),he(function(u){o=q("LCP"),e=B(t,o,Wn,r.reportAllChanges),Pt(function(){o.value=performance.now()-u.timeStamp,Nt[o.id]=!0,e(!0)})})}})},Sa=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)}}(),Ta="web-vitals",Ca=function(t){Sa(r,t);function r(){return t.call(this,Ta)||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;Ea(function(n){return e.getWebVitalData(n,Ci)}),_a(function(n){return e.getWebVitalData(n,Ai)}),wa(function(n){return e.getWebVitalData(n,Oi)})},r}(z),Xn=function(t){if(crypto)return crypto.getRandomValues(t);if(msCrypto)return msCrypto.getRandomValues(t);throw new Error("No crypto library found.")},Kn=[];for(ve=0;ve<256;ve++)Kn[ve]=(ve+256).toString(16).substr(1);var ve,Mt="X-Amzn-Trace-Id",$n={logicalServiceName:"rum.aws.amazon.com",urlsToInclude:[/.*/],urlsToExclude:[/cognito\-identity\.([^\.]*\.)?amazonaws\.com/,/sts\.([^\.]*\.)?amazonaws\.com/],stackTraceLength:200,recordAllRequests:!1,addXRayTraceIdHeader:!1},Yn=function(t){return Math.floor(t/100)===4},Jn=function(t){return Math.floor(t/100)===5},Zn=function(t){return t===429},Qn=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},Z=function(){return Date.now()/1e3},Aa=function(t,r,e){var n={request:{}};return n.request.method=r?.method?r.method:"GET",n.request.traced=e,n.request.url=Ut(t),n},er=function(t,r,e){var n={version:"1.0.0",name:t,origin:"AWS::RUM::AppMonitor",id:rr(),start_time:r,trace_id:Ia(),end_time:void 0,subsegments:[],in_progress:!1};return e&&(n.http=e),n},tr=function(t,r,e){var n={id:rr(),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},nr=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}},Oa=function(t,r,e){t.headers||(t.headers={}),t.headers[Mt]=jt(r,e)},Pa=function(t,r,e){t.set(Mt,jt(r,e))},jt=function(t,r){return"Root="+t+";Parent="+r+";Sampled=1"},Ut=function(t){return t.url?t.url:t.toString()},Ia=function(){return"1-".concat(Ra(),"-").concat(La())},rr=function(){var t=new Uint8Array(8);return Xn(t),ir(t)},Ra=function(){return Math.floor(Date.now()/1e3).toString(16)},La=function(){var t=new Uint8Array(12);return Xn(t),ir(t)},ir=function(t){for(var r="",e=0;e<t.length;e++)r+=Kn[t[e]];return r},ka=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)}}(),Na=function(t){ka(r,t);function r(e){var n=t.call(this,e)||this;return n.name="XMLHttpRequest error",n}return r}(Error),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)}}(),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)},ja="xhr",Ua=function(t){Ma(r,t);function r(e){var n=t.call(this,ja)||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=Z();a.trace.end_time=c,a.trace.subsegments[0].end_time=c,a.trace.subsegments[0].http.response={status:i.status},Zn(i.status)?(a.trace.subsegments[0].throttle=!0,a.trace.throttle=!0):Yn(i.status)?(a.trace.subsegments[0].error=!0,a.trace.error=!0):Jn(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=Z();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 Na(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=Z();o.trace=er(n.config.logicalServiceName,i),o.trace.subsegments.push(tr(nr(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(Mt,jt(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 Qn(c,o.config)&&o.xhrMap.set(this,{url:c,method:a,async:u}),i.apply(this,arguments)}}},n.config=Ye(Ye({},$n),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=Z();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(sn,e)},r}(xe),Ha=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)},xa="fetch",Da=function(t){Ha(r,t);function r(e){var n=t.call(this,xa)||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=Z(),u=Aa(o,i,!0),s=er(n.config.logicalServiceName,c),f=tr(nr(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 Pa(o.headers,c.trace_id,c.subsegments[0].id);i||(i={},[].push.call(a,i)),Oa(i,c.trace_id,c.subsegments[0].id)},n.endTrace=function(o,i,a){if(o){var c=Z();if(o.subsegments[0].end_time=c,o.end_time=c,i){o.subsegments[0].http.response={status:i.status},Zn(i.status)?(o.subsegments[0].throttle=!0,o.throttle=!0):Yn(i.status)?(o.subsegments[0].error=!0,o.error=!0):Jn(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):un(a)&&n.appendErrorCauseFromPrimitive(o.subsegments[0],a.toString())),n.context.record(sn,o)}},n.createHttpEvent=function(o,i){var a=o;return{version:"1.0.0",request:{url:Ut(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 Qn(Ut(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({},$n),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),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)}}(),Ba="page-view",Fa=function(t){qa(r,t);function r(){var e=t.call(this,Ba)||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 ne.PathAndHash:return e&&n?e+n:e||n||"";case ne.Hash:return n||"";case ne.Path:default:return e||""}},r}(xe),Q=function(){return Q=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},Q.apply(this,arguments)},Va=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},ee=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))},or="us-west-2",Ht="https://dataplane.rum.".concat(or,".amazonaws.com"),te;(function(t){t.Errors="errors",t.Performance="performance",t.Interaction="interaction",t.Http="http"})(te||(te={}));var ne;(function(t){t.Path="PATH",t.Hash="HASH",t.PathAndHash="PATH_AND_HASH"})(ne||(ne={}));var Ga=function(){return{unique:!1,domain:window.location.hostname,path:"/",sameSite:"Strict",secure:!0}},za=function(t){return{allowCookies:!1,batchLimit:100,client:_i,cookieAttributes:t,disableAutoPageView:!1,dispatchInterval:5*1e3,enableRumClient:!0,enableXRay:!1,endpoint:Ht,endpointUrl:new URL(Ht),eventCacheSize:200,eventPluginsToLoad:[],pageIdFormat:ne.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}},Wa=function(){function t(r,e,n,o){o===void 0&&(o={});var i=o.cookieAttributes,a=Va(o,["cookieAttributes"]);typeof n>"u"&&(n="us-west-2");var c=Q(Q({},Ga()),i);this.config=Q(Q({fetchFunction:fetch},za(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(fn,r)},t.prototype.registerDomEvents=function(r){this.pluginManager.updatePlugin(cn,r)},t.prototype.recordEvent=function(r,e){this.eventCache.recordEvent(r,e)},t.prototype.initEventCache=function(r,e){return new Eo({id:r,version:e},this.config)},t.prototype.initDispatch=function(r){var e=new sa(r,this.config.endpointUrl,this.eventCache,this.config);return this.config.identityPoolId&&this.config.guestRoleArn?e.setAwsCredentials(new Ei(this.config).ChainAnonymousCredentialsProvider):this.config.identityPoolId&&e.setAwsCredentials(new Si(this.config).ChainAnonymousCredentialsProvider),e},t.prototype.initPluginManager=function(r,e){var n=this.constructBuiltinPlugins(),o=ee(ee([],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 ki(i);return this.config.disableAutoPageView||a.addPlugin(new Fa),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=ee(ee([],r,!0),e[n.toLowerCase()]({}),!0):Array.isArray(n)&&e[n[0].toLowerCase()]&&(r=ee(ee([],r,!0),e[n[0].toLowerCase()](n[1]),!0))}),r},t.prototype.getDataPlaneEndpoint=function(r,e){return e.endpoint?e.endpoint:Ht.replace(or,r)},t.prototype.telemetryFunctor=function(){var r;return r={},r[te.Errors]=function(e){return[new Fi(e)]},r[te.Performance]=function(e){return[new fa,new va(e),new Ca]},r[te.Interaction]=function(e){return[new ji(e)]},r[te.Http]=function(e){return[new Ua(e),new Da(e)]},r},t}();try{window.awsRum=new Wa(window.awsRumVariables.APPLICATION_ID,window.awsRumVariables.APPLICATION_VERSION,window.awsRumVariables.APPLICATION_REGION,window.awsRumVariables.config)}catch{}})();